1const __vite__mapDeps=(e,t=__vite__mapDeps,n=t.f||(t.f=["_astro/lottie.DWJKTg2t.js","_astro/rolldown-runtime.DIol1n-R.js"]))=>e.map(e=>n[e]);globalThis.process??={},globalThis.process.env??={};import{o as e}from"./rolldown-runtime.DIol1n-R.js";import{At as t,jt as n}from"./a-withfaye-ui-core.CjHharLG.js";import{b as r,j as i,ln as a,pn as o,x as s}from"./misc.BsptW5zG.js";import{t as c}from"./compiler-runtime.C3XETJ2Y.js";import{n as l}from"./api.J5s7_UPG.js";import{i as u,l as d,u as f}from"./helpers.CL8VcDVQ.js";var p=c(),m=e(n(),1),h={};function g(t){return h.lottie??=new Promise(e=>{window.setTimeout(e,t??0)}).then(async()=>await o(()=>import("./lottie.DWJKTg2t.js").then(t=>e(t.default,1)).then(e=>e.default),__vite__mapDeps([0,1]))),h.lottie}function _(e,t,{delay:n,...a},r){let o=!1,s={addEventListener:(e,t)=>{s.item?.then(n=>{n.addEventListener(e,t)})},removeEventListener:(e,t)=>{s.item?.then(n=>{n.removeEventListener(e,t)})},load:()=>{let i=e.current;i&&(s.item=g(n).then(e=>{let n=e.loadAnimation({...a,autoplay:!1,container:i,path:t});return n.addEventListener("DOMLoaded",()=>{o=!0,r()}),n}))},pause:()=>{s.item?.then(e=>{e.isPaused||e.pause()})},play:e=>{new Promise(e=>{window.setTimeout(e,o&&n||0)}).then(async()=>{await(s.item?.then(t=>{t.isPaused&&(e&&t.stop(),t.play())}))})}};return s}function v(e,t,n={}){let[a,r]=(0,m.useState)(!1),[o]=(0,m.useState)(()=>_(e,t,n,()=>r(!0)));return{...o,get item(){return o.item},ready:a}}var y=t(),b=(0,m.forwardRef)(function(e,t){let n,a,r,o,s,i,u,l,c=(0,p.c)(34);c[0]===e?(n=c[1],a=c[2],r=c[3],o=c[4],s=c[5],i=c[6],u=c[7],l=c[8]):(({onComplete:n,onReady:r,options:o,play:u,preload:s,url:l,onLoadError:a,...i}=e),c[0]=e,c[1]=n,c[2]=a,c[3]=r,c[4]=o,c[5]=s,c[6]=i,c[7]=u,c[8]=l);let f,d,h=void 0!==u&&u,w=(0,m.useRef)(null),_=(0,m.useRef)(n),g=(0,m.useRef)(r),E=(0,m.useRef)(a);c[9]!==n||c[10]!==a||c[11]!==r?(f=()=>{_.current=n,g.current=r,E.current=a},d=[n,r,a],c[9]=n,c[10]=a,c[11]=r,c[12]=f,c[13]=d):(f=c[12],d=c[13]),(0,m.useEffect)(f,d);let j,S,D,L,T,N,R,b,C,x,P,k=v(w,l,o);return c[14]===k?(j=c[15],S=c[16]):(j=()=>k,S=[k],c[14]=k,c[15]=j,c[16]=S),(0,m.useImperativeHandle)(t,j,S),c[17]===k?D=c[18]:(D=()=>{if("function"==typeof E?.current){let e=function(){E.current?.()};return k.addEventListener("data_failed",e),()=>{k.removeEventListener("data_failed",e)}}},c[17]=k,c[18]=D),c[19]===Symbol.for("react.memo_cache_sentinel")?(L=[],c[19]=L):L=c[19],(0,m.useEffect)(D,L),c[20]===k.ready?(T=c[21],N=c[22]):(T=()=>{k.ready&&g.current?.()},N=[k.ready],c[20]=k.ready,c[21]=T,c[22]=N),(0,m.useEffect)(T,N),c[23]===k?R=c[24]:(R=()=>{if(k.ready&&_.current){let e=function(e){_.current?.(e)};return k.addEventListener("complete",e),()=>{k.removeEventListener("complete",e)}}},c[23]=k,c[24]=R),c[25]===k.ready?b=c[26]:(b=[k.ready],c[25]=k.ready,c[26]=b),(0,m.useEffect)(R,b),c[27]!==k||c[28]!==h||c[29]!==s?(C=()=>{k.ready?h?k.play("restart"===h):k.pause():(h||s)&&!k.item&&k.load()},x=[k,h,s],c[27]=k,c[28]=h,c[29]=s,c[30]=C,c[31]=x):(C=c[30],x=c[31]),(0,m.useEffect)(C,x),c[32]===i?P=c[33]:(P=(0,y.jsx)("div",{ref:w,...i}),c[32]=i,c[33]=P),P}),x="zug79w0",S="/_astro/done-animation.C7nvB-b4.json";function C(e){let t,n,a,r,o=(0,p.c)(12);o[0]===e?(t=o[1],n=o[2],a=o[3],r=o[4]):(({options:t,play:a,className:r,...n}=e),o[0]=e,o[1]=t,o[2]=n,o[3]=a,o[4]=r);let s,i=void 0===a||a,u=void 0===r?"":r;o[5]===t?s=o[6]:(s={...t,loop:!1},o[5]=t,o[6]=s);let l,c=`${x} ${u}`;return o[7]!==i||o[8]!==n||o[9]!==s||o[10]!==c?(l=(0,y.jsx)(b,{options:s,play:i,url:S,className:c,...n}),o[7]=i,o[8]=n,o[9]=s,o[10]=c,o[11]=l):l=o[11],l}var w="/_astro/lottie.DYqIVtpW.json",T="pn34wi0",E="pn34wi1",D="pn34wi2",O="That destination isn't on our map (yet). Check the spelling and try again.";function k(e){let t,n=(0,p.c)(5);n[0]===e?t=n[1]:(t=void 0===e?{}:e,n[0]=e,n[1]=t);let a,r,{text:o}=t,s=void 0===o?O:o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,y.jsx)(b,{className:E,url:w,play:!0,options:{loop:!0}}),n[2]=a):a=n[2],n[3]===s?r=n[4]:(r=(0,y.jsxs)("div",{className:T,children:[a,(0,y.jsx)("div",{className:D,children:s})]}),n[3]=s,n[4]=r),r}var A="PR-STANDARD-01",j={destinations:[],tripStartDate:"",tripEndDate:"",effectiveStartDate:"",effectiveEndDate:"",travellers:[],noOfTravelers:1,residency:{country:"US",label:""},tripCost:0,product:A,email:"",quoteHash:null,addonSelections:{},initialDepositDate:null,carDates:null,carsCount:null};function M(){if(typeof window>"u")return j;let e=(a("funnelState").get()??{}).funnel??{};return{...j,...e}}function N(e){if(typeof window>"u")return;let t=a("funnelState"),n=t.get()??{};t.set({...n,funnel:e})}function P(e){let t={...M(),...e};return N(t),t}var F="https://assets.withfaye.com";function I(e){return`${F}/${e.replace(/^\/+/,"")}`}async function L(e){let t=await fetch(I(e));if(!t.ok)throw Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);return t.json()}function R(e){let t,n=(0,p.c)(21),{funnelName:a,initialState:r,initState:o,serialize:s,persist:i,loaders:l}=e,c=void 0===i||i;n[0]!==a||n[1]!==o||n[2]!==r||n[3]!==l?(t=()=>{let e=u(a,r);return l&&l.forEach(t=>{let n=t.readCache?.()??null;n&&(e={...e,...n})}),o?o(e):e},n[0]=a,n[1]=o,n[2]=r,n[3]=l,n[4]=t):t=n[4];let d,[h,y]=(0,m.useState)(t);n[5]===l?d=n[6]:(d=()=>l??[],n[5]=l,n[6]=d);let v,w,_,g,E,j,S,[D]=(0,m.useState)(d),L=(0,m.useRef)(h);return n[7]===h?(v=n[8],w=n[9]):(v=()=>{L.current=h},w=[h],n[7]=h,n[8]=v,n[9]=w),(0,m.useEffect)(v,w),n[10]!==a||n[11]!==c||n[12]!==s||n[13]!==h?(_=()=>{if(!1===c||typeof window>"u")return;if("function"==typeof c)return void c(h);let e=s?s(h):h;f(a,e)},g=[h,c,s,a],n[10]=a,n[11]=c,n[12]=s,n[13]=h,n[14]=_,n[15]=g):(_=n[14],g=n[15]),(0,m.useEffect)(_,g),n[16]===D?(E=n[17],j=n[18]):(E=()=>{let e=!1;return D.forEach(t=>{t.shouldLoad&&!t.shouldLoad(L.current)||t.load().then(n=>{e||(t.persist?.(n),y(e=>({...e,...n})))})}),()=>{e=!0}},j=[D],n[16]=D,n[17]=E,n[18]=j),(0,m.useEffect)(E,j),n[19]===h?S=n[20]:(S={state:h,setState:y,stateRef:L},n[19]=h,n[20]=S),S}function z({field:e,fetchValue:t,transform:n,onValue:a,onFetched:r,onError:o}){let s=null;function i(t){f("shared",{...d("shared",{}),[e]:t})}return function(){return{readCache:()=>{let t=d("shared",{})[e];if(!t)return null;let r=n?n(t):t;return r!==t&&i(r),a?.(r),{[e]:r}},shouldLoad:t=>!t[e],load:async()=>({[e]:await(s||=t().then(e=>{let t=n?n(e):e;return i(t),r?.(t),a?.(t),t}).catch(e=>{if(!o)throw e;return s=null,o(e)}),s)})}}}var B={medical:{id:"medical",gate:"segmented_funnel_medical_lp",funnel:{tips:!0},offer:{ordering:"healthFirst"}}};function V(e){return"healthFirst"===e?.offer.ordering}function H(e){return e?Object.values(B).find(t=>
1t.id===e)??null:null}function U(e){let t=e.segment??new URLSearchParams(window.location.search).get("segment");return t?{...e,segment:t}:e}function W(e){e.chatToken&&(document.body.dataset.quackToken=e.chatToken,window.dispatchEvent(new Event("quackTokenReady")))}async function G(e,t){let n=new URLSearchParams;e.utm_campaign&&n.append("utm_campaign",e.utm_campaign),e.utm_source&&n.append("utm_source",e.utm_source),t&&n.append("hash",t);let{attributionName:a,companyName:r,referralName:o,partnershipType:s,...i}=await l(`quote/flow-config?${n.toString()}`),u={attributionName:a,companyName:r,referralName:o,partnershipType:s};return{...Object.values(u).some(Boolean)&&{attribution:u},...i}}var K=z({field:"flowConfiguration",fetchValue:()=>{let e=i(),t=new URLSearchParams(window.location.search);return G(e??{},t.get("hash")??t.get("h"))},transform:U,onValue:e=>{W(e),e.segment&&s(e.segment)},onFetched:e=>{e.productName&&r(e.productName)}});export{R as a,A as c,N as d,P as f,z as i,j as l,C as m,V as n,I as o,k as p,H as r,L as s,K as t,M as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.