{"version":3,"sources":["../../index.js","features/flightRequest/flightRequestDetails.js","../node_modules/react-select/dist/useAsync-ba7c6b77.esm.js","../node_modules/react-select/async/dist/react-select-async.esm.js","features/shared/asyncSelectAirport.js","features/shared/stepper.js","features/flightRequest/flightRequestRow.js","features/api/vistajetSalesforceAPI.js","features/flightRequest/flightRequest.js","../node_modules/date-fns/esm/formatISO/index.js"],"names":["module","exports","fn","wait","options","lastCallAt","deferred","timer","pendingArgs","currentWait","getWait","currentTime","Date","getTime","isCold","args","leading","accumulate","Promise","resolve","call","this","then","result","clearTimeout","promise","reject","defer","push","setTimeout","flush","bind","argsIndex","length","results","thisDeferred","apply","FlightRequestDetails","_ref","_details$titleOther","details","handleSubmit","handleUpdateDetails","isLegsValid","privacyPolicyUrl","stateCountries","phoneNumberRef","useRef","lastNameFocused","setLastNameFocused","useState","showSalutation","setShowSalutation","showCustomSalutation","setShowCustomSalutation","isPhoneNumberValid","setIsPhoneNumberValid","phoneNumber","form","setForm","isValid","fields","title","hasFocus","message","showValidation","titleOther","firstName","lastName","salutation","email","stateCode","currentFlyingSolution","howDidYouHear","howOftenDoYouFly","useEffect","handleShowSalutation","_details$lastName","_details$salutation","canShow","trim","handleOnChange","value","property","produce","draft","undefined","handleOnFocus","handleOnBlur","validateForm","validateTitleOtherResponse","validateTitleOther","validateFirstNameResponse","validateFirstName","validateLastNameResponse","validateLastName","validateEmailResponse","validateEmail","validatePhoneNumberResponse","validatePhoneAndCountry","countryCode","validateStateCodeResponse","validateStateCountries","validateCurrentFlyingSolutionResponse","validateCurrentFlyingSolution","validateHowDidYouHearResponse","validateHowDidYouHear","validateHowOftenDoYouFlyResponse","validateHowOftenDoYouFly","isError","_jsx","children","_jsxs","className","concat","name","onChange","e","target","onFocus","onBlur","type","placeholder","maxLength","getSalutation","_details$salutation2","onClick","handleShowCustomSalutation","IntlTelephoneInput","id","ref","containerClassName","inputClassName","handlePhoneOnChange","status","country","iso2","toUpperCase","onFlagSelected","handlePhoneSelectedFlag","onLoaded","intlTelInput","_intlTelInput$selecte","_intlTelInput$selecte2","selectedCountryData","hintText","autoPlaceholder","some","o","disabled","hidden","Object","entries","find","list","map","_ref2","code","marketingOptIn","href","rel","handleInnerSubmit","_excluded","AsyncSelect$1","forwardRef","props","stateManagedProps","_ref$defaultOptions","defaultOptions","propsDefaultOptions","_ref$cacheOptions","cacheOptions","propsLoadOptions","loadOptions","_ref$isLoading","isLoading","propsIsLoading","propsOnInputChange","onInputChange","_ref$filterOption","filterOption","restSelectProps","_objectWithoutProperties","propsInputValue","inputValue","lastRequest","mounted","_useState","Array","isArray","_useState2","_slicedToArray","setDefaultOptions","_useState3","_useState4","stateInputValue","setStateInputValue","_useState5","_useState6","setIsLoading","_useState7","_useState8","loadedInputValue","setLoadedInputValue","_useState9","_useState10","loadedOptions","setLoadedOptions","_useState11","_useState12","passEmptyOptions","setPassEmptyOptions","_useState13","_useState14","optionsCache","setOptionsCache","_useState15","_useState16","prevDefaultOptions","setPrevDefaultOptions","_useState17","_useState18","prevCacheOptions","setPrevCacheOptions","current","useCallback","callback","loader","newValue","actionMeta","handleInputChange","request","_objectSpread","_defineProperty","useAsync","selectProps","useStateManager","React","Select","_extends","AsyncSelectAirport","inputId","innerRef","source","onMenuOpen","onMenuClose","debouncedLoadOptions","useMemo","debounce","getLabelClassName","classNames","AsyncSelect","classNamePrefix","formatOptionLabel","context","isIataSearch","includes","has_multiple_airports","icao","ma_name","city","country_code","toLowerCase","iata","formatGroupLabel","data","label","openMenuOnFocus","Stepper","placeholderText","minValue","maxValue","increment","FlightRequestRow","_leg$departure","_leg$departure2","_ref3","_leg$return","count","index","leg","allowMultiFlight","allowReturn","isDetailsOpen","handleNext","handleUpdateLeg","handleRemoveLeg","nearestAirports","popularAirports","searchAirports","toRef","fromRef","departureRef","returnRef","fromIsOpen","setFromIsOpen","params","URLSearchParams","window","location","search","origin","get","destination","console","log","updates","fetchOrigin","selectedOrigin","from","catch","error","fetchDestination","selectedDestination","to","all","keys","airportsEqual","a1","a2","metropolitan_area_id","CustomDateInput","placeholderClass","legLocation","legTime","today","date","parse","getFullYear","format","handleChange","newLeg","focus","setFocus","departure","departure_time","return","return_time","setOpen","passengers","parseInt","hasTimeString","time","getTimeString","htmlFor","getDepartureAirports","filter","getArrivalAirports","style","position","DatePicker","customInput","dateFormat","dateFormatCalendar","minDate","setHours","setMinutes","openToDate","selected","selectsStart","shouldCloseOnSelect","showPopperArrow","startDate","popperPlacement","popperModifiers","fallbackPlacements","flipVariations","allowedAutoPlacements","reference","document","getElementsByClassName","offset","mainAxis","altAxis","altBoundary","tether","calendarClassName","endDate","isClearable","selectsEnd","min","url","leadTemplate","getExtraData","utmData","pathname","FlightRequest","_user$user$firstName","_user$user$lastName","_user$user$salutation","_user$user$phoneNumbe","_user$user$username","allowmultiflight","multiflighturl","privacypolicyurl","allowreturn","customjson","dispatch","useDispatch","successResponse","errorResponse","user","useSelector","state","selectNearestAirports","selectPopularAirports","setIsDetailsOpen","getNearestAirports","getPopularAirports","initialLeg","initialDetails","isLoggedIn","username","stateList","brazilStateList","canadaStateList","chinaStateList","indiaStateList","irelandStateList","italyStateList","mexicoStateList","legs","setLegs","setDetails","isMultiple","setIsMultiple","isSubmitted","setIsSubmitted","setIsError","delay","ms","async","scrollIntoView","behavior","successScroll","errorScroll","findIndex","draftLeg","forEach","isLegValid","hasTime","formatDate","parts","split","addHours","addMinutes","_options$format","_options$representati","requiredArgs","arguments","originalDate","toDate","isNaN","RangeError","String","representation","tzOffset","dateDelimiter","timeDelimiter","day","addLeadingZeros","getDate","month","getMonth","year","getTimezoneOffset","absoluteOffset","Math","abs","hourOffset","floor","minuteOffset","separator","getHours","getMinutes","getSeconds","join","formatISO","formatTime","detailFieldMap","mapDetailField","_detailFieldMap$prope","handleReset","splice","i","handleAddLeg","class","lead","mapLegs","formatAirport","airport","direction","formatName","flights","JSON","stringify","normalizedDetails","output","assign","warn","extraData","axios","post","headers","token","submitLead","dataLayer","event","enquiryType"],"mappings":"4HAEAA,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MmBvC,YAAaA,GACbC,iBAAkB8V,EAClB7V,eAAgBA,QAO5C,C","file":"static/js/flightRequest.c65f5e3f.chunk.js","sourcesContent":["/* global setTimeout, clearTimeout */\n\nmodule.exports = function debounce (fn, wait = 0, options = {}) {\n let lastCallAt\n let deferred\n let timer\n let pendingArgs = []\n return function debounced (...args) {\n const currentWait = getWait(wait)\n const currentTime = new Date().getTime()\n\n const isCold = !lastCallAt || (currentTime - lastCallAt) > currentWait\n\n lastCallAt = currentTime\n\n if (isCold && options.leading) {\n return options.accumulate\n ? Promise.resolve(fn.call(this, [args])).then(result => result[0])\n : Promise.resolve(fn.call(this, ...args))\n }\n\n if (deferred) {\n clearTimeout(timer)\n } else {\n deferred = defer()\n }\n\n pendingArgs.push(args)\n timer = setTimeout(flush.bind(this), currentWait)\n\n if (options.accumulate) {\n const argsIndex = pendingArgs.length - 1\n return deferred.promise.then(results => results[argsIndex])\n }\n\n return deferred.promise\n }\n\n function flush () {\n const thisDeferred = deferred\n clearTimeout(timer)\n\n Promise.resolve(\n options.accumulate\n ? fn.call(this, pendingArgs)\n : fn.apply(this, pendingArgs[pendingArgs.length - 1])\n )\n .then(thisDeferred.resolve, thisDeferred.reject)\n\n pendingArgs = []\n deferred = null\n }\n}\n\nfunction getWait (wait) {\n return (typeof wait === 'function') ? wait() : wait\n}\n\nfunction defer () {\n const deferred = {}\n deferred.promise = new Promise((resolve, reject) => {\n deferred.resolve = resolve\n deferred.reject = reject\n })\n return deferred\n}\n","import React, { useState, useRef, useEffect } from 'react';\r\nimport produce from 'immer';\r\nimport IntlTelephoneInput from 'components/shared/PhoneNumberSelector';\r\nimport {\r\n validateFirstName,\r\n validateLastName,\r\n validateEmail,\r\n validatePhoneAndCountry,\r\n validateStateCountries,\r\n validateTitleOther,\r\n // validateTypeOfFlying,\r\n validateCurrentFlyingSolution,\r\n validateHowDidYouHear,\r\n validateHowOftenDoYouFly\r\n} from 'utils/Validators/Validators';\r\n\r\nexport default function FlightRequestDetails(\r\n {\r\n details,\r\n handleSubmit,\r\n handleUpdateDetails,\r\n isLegsValid,\r\n privacyPolicyUrl,\r\n stateCountries\r\n }) {\r\n\r\n const phoneNumberRef = useRef(null);\r\n\r\n const [lastNameFocused, setLastNameFocused] = useState(false);\r\n const [showSalutation, setShowSalutation] = useState(false);\r\n const [showCustomSalutation, setShowCustomSalutation] = useState(false);\r\n const [isPhoneNumberValid, setIsPhoneNumberValid] = useState(details.phoneNumber.length > 0);\r\n\r\n const [form, setForm] = useState({\r\n isValid: false,\r\n fields: {\r\n title: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: true,\r\n showValidation: false\r\n },\r\n titleOther: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: true,\r\n showValidation: false\r\n },\r\n firstName: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n lastName: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n salutation: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n email: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n phoneNumber: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n stateCode: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: false,\r\n showValidation: false\r\n },\r\n // typeOfFlying: {\r\n // hasFocus: false,\r\n // message: \"\",\r\n // isValid: true,\r\n // showValidation: false\r\n // },\r\n currentFlyingSolution: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: true,\r\n showValidation: false\r\n },\r\n howDidYouHear: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: true,\r\n showValidation: false\r\n },\r\n howOftenDoYouFly: {\r\n hasFocus: false,\r\n message: \"\",\r\n isValid: true,\r\n showValidation: false\r\n }, \r\n }\r\n });\r\n\r\n const handleShowSalutation = () => {\r\n // Prevents the salutation suddenly jumping in whilst typing last name by making it wait until the last name has lost focus\r\n const canShow = (details.lastName ?? \"\").trim() !== \"\" || (details.salutation ?? \"\").trim() !== \"\";\r\n if (!canShow)\r\n setShowSalutation(false);\r\n if (lastNameFocused)\r\n return;\r\n setShowSalutation(canShow);\r\n }\r\n\r\n useEffect(handleShowSalutation, [lastNameFocused, details]);\r\n\r\n const handleShowCustomSalutation = () => {\r\n if (!showCustomSalutation.value)\r\n setShowCustomSalutation(true);\r\n }\r\n\r\n const getSalutation = () => {\r\n if ((details.salutation ?? \"\").trim() !== \"\")\r\n return details.salutation;\r\n return ((details.title !== \"Other\") ? details.title : details.titleOther) + \" \" + details.lastName;\r\n }\r\n\r\n const handleOnChange = (value, property) => {\r\n setForm(produce((draft) => {\r\n if (draft.fields[property] === null || draft.fields[property] === undefined)\r\n return;\r\n draft.fields[property].value = value;\r\n if (draft.fields[property].hasFocus)\r\n draft.fields[property].showValidation = false;\r\n }));\r\n\r\n handleUpdateDetails(value, property);\r\n }\r\n\r\n const handleOnFocus = (property) => {\r\n setForm(produce((draft) => {\r\n if (draft.fields[property] === null || draft.fields[property] === undefined)\r\n return;\r\n draft.fields[property].hasFocus = true;\r\n }));\r\n }\r\n\r\n const handleOnBlur = (property) => {\r\n setForm(produce((draft) => {\r\n if (draft.fields[property] === null || draft.fields[property] === undefined)\r\n return;\r\n draft.fields[property].hasFocus = false;\r\n draft.fields[property].showValidation = true;\r\n }));\r\n }\r\n\r\n const handlePhoneOnChange = (status, phoneNumber, country) => {\r\n if (country.iso2) {\r\n handleOnChange(phoneNumber, \"phoneNumber\");\r\n if (country.iso2.toUpperCase() !== details.countryCode) {\r\n handleOnChange(\"\", \"stateCode\");\r\n }\r\n handleOnChange(country.iso2.toUpperCase(), \"countryCode\");\r\n setIsPhoneNumberValid(status);\r\n } else {\r\n handleOnChange(phoneNumber, \"phoneNumber\");\r\n setIsPhoneNumberValid(status);\r\n }\r\n }\r\n\r\n const handlePhoneSelectedFlag = (phoneNumber, country) => {\r\n if (country.iso2) {\r\n handleOnChange(phoneNumber, \"phoneNumber\");\r\n if (country.iso2.toUpperCase() !== details.countryCode) {\r\n handleOnChange(\"\", \"stateCode\");\r\n }\r\n handleOnChange(country.iso2.toUpperCase(), \"countryCode\");\r\n } else {\r\n handleOnChange(phoneNumber, \"phoneNumber\");\r\n }\r\n }\r\n\r\n const handlePhoneNumberOnLoaded = (intlTelInput) => {\r\n intlTelInput && handleOnChange(intlTelInput?.selectedCountryData?.iso2?.toUpperCase(), \"countryCode\");\r\n }\r\n\r\n const validateForm = () => {\r\n const validateTitleOtherResponse = validateTitleOther(details.title, details.titleOther);\r\n const validateFirstNameResponse = validateFirstName(details.firstName)\r\n const validateLastNameResponse = validateLastName(details.lastName);\r\n const validateEmailResponse = validateEmail(details.email);\r\n const validatePhoneNumberResponse = validatePhoneAndCountry(details.phoneNumber, isPhoneNumberValid, details.countryCode);\r\n const validateStateCodeResponse = validateStateCountries(stateCountries, details.stateCode, details.countryCode);\r\n // const validateTypeOfFlyingResponse = validateTypeOfFlying(details.typeOfFlying);\r\n const validateCurrentFlyingSolutionResponse = validateCurrentFlyingSolution(details.currentFlyingSolution);\r\n const validateHowDidYouHearResponse = validateHowDidYouHear(details.howDidYouHear);\r\n const validateHowOftenDoYouFlyResponse = validateHowOftenDoYouFly(details.howOftenDoYouFly);\r\n\r\n let isError =\r\n validateTitleOtherResponse.isError ||\r\n validateFirstNameResponse.isError ||\r\n validateLastNameResponse.isError ||\r\n validateEmailResponse.isError ||\r\n validatePhoneNumberResponse.isError ||\r\n validateStateCodeResponse.isError ||\r\n // validateTypeOfFlyingResponse.isError ||\r\n validateCurrentFlyingSolutionResponse.isError ||\r\n validateHowDidYouHearResponse.isError ||\r\n validateHowOftenDoYouFlyResponse.isError;\r\n\r\n setForm(\r\n produce((draft) => {\r\n draft.isValid = !isError;\r\n draft.fields.titleOther.isValid = !validateTitleOtherResponse.isError;\r\n draft.fields.titleOther.message = validateTitleOtherResponse.message;\r\n draft.fields.firstName.isValid = !validateFirstNameResponse.isError;\r\n draft.fields.firstName.message = validateFirstNameResponse.message;\r\n draft.fields.lastName.isValid = !validateLastNameResponse.isError;\r\n draft.fields.lastName.message = validateLastNameResponse.message;\r\n draft.fields.email.isValid = !validateEmailResponse.isError;\r\n draft.fields.email.message = validateEmailResponse.message;\r\n draft.fields.phoneNumber.isValid = !validatePhoneNumberResponse.isError;\r\n draft.fields.phoneNumber.message = validatePhoneNumberResponse.message;\r\n draft.fields.stateCode.isValid = !validateStateCodeResponse.isError;\r\n draft.fields.stateCode.message = validateStateCodeResponse.message;\r\n // draft.fields.typeOfFlying.isValid = !validateTypeOfFlyingResponse.isError;\r\n // draft.fields.typeOfFlying.message = validateTypeOfFlyingResponse.message;\r\n draft.fields.currentFlyingSolution.isValid = !validateCurrentFlyingSolutionResponse.isError;\r\n draft.fields.currentFlyingSolution.message = validateCurrentFlyingSolutionResponse.message;\r\n draft.fields.howDidYouHear.isValid = !validateHowDidYouHearResponse.isError;\r\n draft.fields.howDidYouHear.message = validateHowDidYouHearResponse.message;\r\n draft.fields.howOftenDoYouFly.isValid = !validateHowOftenDoYouFlyResponse.isError;\r\n draft.fields.howOftenDoYouFly.message = validateHowOftenDoYouFlyResponse.message;\r\n })\r\n )\r\n }\r\n\r\n useEffect(validateForm, [details, isPhoneNumberValid]);\r\n\r\n const handleInnerSubmit = () => {\r\n // we validate the component elements to decide if valid to pass up to the parent\r\n if (!form.isValid)\r\n return;\r\n handleSubmit();\r\n }\r\n\r\n return (\r\n
By submitting this form you consent to the processing of your personal data in accordance with the VistaJet Privacy Notice.
\r\n{data.label}
\r\n )\r\n };\r\n\r\n const handleOnChange = (value) => {\r\n onChange(value, source);\r\n };\r\n\r\n return (\r\nYour flight request has been received. A member of the VistaJet team will be in contact with you soon.
\r\n \r\n