1import{aD as we,aE as Rt,aa as Lt,a9 as Kt,a as L,cR as Mt,j as _,A as M,cp as Ue,bF as ve,d as Ce,r as Ye,t as jt,E as pe,u as Ne,g as Ut,J as Yt,c9 as At,af as U,cS as Pe,b as De,ae as Vt,x as Ht,D as Gt,a4 as Jt,_ as Zt,cB as Qt,cC as Xt}from"./Bna4rN2y.js";import{k as Ae}from"./D37CLZKB.js";import{M as es}from"./D-IkaSZD.js";import{V as r,F as u,a0 as s,ac as ue,Z as m,a1 as B,L as T,$ as K,ab as I,am as Ve,al as ts,ag as re,q as He,l as $e,W as k,u as me,a4 as ss,j as is,x as Se,y as Ge,a5 as S,_ as $,M as g,ah as Oe,Y,ad as ee,aj as Je,X as b,at as Re,aa as ns,T as R,k as os}from"./sMZahMtk.js";import{d as C}from"./Drzd7dtL.js";import{_ as rs}from"./WhOYCUNG.js";import{_ as as}from"./Bwc3nCeC.js";import{_ as ls}from"./BROQ7_yp.js";import{i as ke}from"./Cc2odJ0Z.js";import{i as Ze}from"./DiaRde4V.js";import{i as ds}from"./HnG01HDA.js";import{_ as ps}from"./RLWv5JTP.js";import{g as Qe}from"./aNa9IVVH.js";import{_ as Xe}from"./D0Gw4WrQ.js";import{s as us}from"./CqfODGi6.js";import{f as ms}from"./CxdRl82K.js";import"./BpDYDEdF.js";import"./BEdbQD2A.js";import"./-ZUACt7S.js";var _e,Le;function cs(){if(Le)return _e;Le=1;var e=200,t="__lodash_hash_undefined__",n=9007199254740991,d="[object Arguments]",h="[object Function]",y="[object GeneratorFunction]",l=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,f=typeof we=="object"&&we&&we.Object===Object&&we,z=typeof self=="object"&&self&&self.Object===Object&&self,F=f||z||Function("return this")();function x(i,o,c){switch(c.length){case 0:return i.call(o);case 1:return i.call(o,c[0]);case 2:return i.call(o,c[0],c[1]);case 3:return i.call(o,c[0],c[1],c[2])}return i.apply(o,c)}function N(i,o){var c=i?i.length:0;return!!c&&A(i,o,0)>-1}function W(i,o){for(var c=-1,v=o.length,E=i.length;++c<v;)i[E+c]=o[c];return i}function j(i,o,c,v){for(var E=i.length,O=c+-1;++O<E;)if(o(i[O],O,i))return O;return-1}function A(i,o,c){if(o!==o)return j(i,V,c);for(var v=c-1,E=i.length;++v<E;)if(i[v]===o)return v;return-1}function V(i){return i!==i}function J(i,o){return i.has(o)}function w(i,o){return i?.[o]}function D(i){var o=!1;if(i!=null&&typeof i.toString!="function")try{o=!!(i+"")}catch{}return o}var a=Array.prototype,q=Function.prototype,Z=Object.prototype,H=F["__core-js_shared__"],Q=(function(){var i=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),se=q.toString,P=Z.hasOwnProperty,ze=Z.toString,st=RegExp("^"+se.call(P).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=F.Symbol,it=Z.propertyIsEnumerable,nt=a.splice,qe=Fe?Fe.isConcatSpreadable:void 0,Ee=Math.max,ot=Be(F,"Map"),le=Be(Object,"create");function X(i){var o=-1,c=i?i.length:0;for(this.clear();++o<c;){var v=i[o];this.set(v[0],v[1])}}function rt(){this.__data__=le?le(null):{}}function at(i){return this.has(i)&&delete this.__data__[i]}function lt(i){var o=this.__data__;if(le){var c=o[i];return c===t?void 0:c}return P.call(o,i)?o[i]:void 0}function dt(i){var o=this.__data__;return le?o[i]!==void 0:P.call(o,i)}function pt(i,o){var c=this.__data__;return c[i]=le&&o===void 0?t:o,this}X.prototype.clear=rt,X.prototype.delete=at,X.prototype.get=lt,X.prototype.has=dt,X.prototype.set=pt;function ie(i){var o=-1,c=i?i.length:0;for(this.clear();++o<c;){var v=i[o];this.set(v[0],v[1])}}function ut(){this.__data__=[]}function mt(i){var o=this.__data__,c=fe(o,i);if(c<0)return!1;var v=o.length-1;return c==v?o.pop():nt.call(o,c,1),!0}function ct(i){var o=this.__data__,c=fe(o,i);return c<0?void 0:o[c][1]}function ht(i){return fe(this.__data__,i)>-1}function ft(i,o){var c=this.__data__,v=fe(c,i);return v<0?c.push([i,o]):c[v][1]=o,this}ie.prototype.clear=ut,ie.prototype.delete=mt,ie.prototype.get=ct,ie.prototype.has=ht,ie.prototype.set=ft;function ne(i){var o=-1,c=i?i.length:0;for(this.clear();++o<c;){var v=i[o];this.set(v[0],v[1])}}function gt(){this.__data__={hash:new X,map:new(ot||ie),string:new X}}function yt(i){return ge(this,i).delete(i)}function bt(i){return ge(this,i).get(i)}function wt(i){return ge(this,i).has(i)}function $t(i,o){return ge(this,i).set(i,o),this}ne.prototype.clear=gt,ne.prototype.delete=yt,ne.prototype.get=bt,ne.prototype.has=wt,ne.prototype.set=$t;function he(i){var o=-1,c=i?i.length:0;for(this.__data__=new ne;++o<c;)this.add(i[o])}function vt(i){return this.__data__.set(i,t),this}function St(i){return this.__data__.has(i)}he.prototype.add=he.prototype.push=vt,he.prototype.has=St;function fe(i,o){for(var c=i.length;c--;)if(Et(i[c][0],o))return c;return-1}function xt(i,o,c,v){var E=-1,O=N,G=!0,de=i.length,ye=[],Ot=o.length;if(!de)return ye;o.length>=e&&(O=J,G=!1,o=new he(o));e:for(;++E<de;){var oe=i[E],be=oe;if(oe=oe!==0?oe:0,G&&be===be){for(var Ie=Ot;Ie--;)if(o[Ie]===be)continue e;
1ye.push(oe)}else O(o,be,v)||ye.push(oe)}return ye}function Dt(i,o,c,v,E){var O=-1,G=i.length;for(c||(c=Ct),E||(E=[]);++O<G;){var de=i[O];c(de)&&W(E,de)}return E}function _t(i){if(!We(i)||zt(i))return!1;var o=Te(i)||D(i)?st:p;return o.test(Ft(i))}function kt(i,o){return o=Ee(o===void 0?i.length-1:o,0),function(){for(var c=arguments,v=-1,E=Ee(c.length-o,0),O=Array(E);++v<E;)O[v]=c[o+v];v=-1;for(var G=Array(o+1);++v<o;)G[v]=c[v];return G[o]=O,x(i,this,G)}}function ge(i,o){var c=i.__data__;return Nt(o)?c[typeof o=="string"?"string":"hash"]:c.map}function Be(i,o){var c=w(i,o);return _t(c)?c:void 0}function Ct(i){return Tt(i)||Bt(i)||!!(qe&&i&&i[qe])}function Nt(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function zt(i){return!!Q&&Q in i}function Ft(i){if(i!=null){try{return se.call(i)}catch{}try{return i+""}catch{}}return""}var qt=kt(function(i,o){return xe(i)?xt(i,Dt(o,1,xe)):[]});function Et(i,o){return i===o||i!==i&&o!==o}function Bt(i){return xe(i)&&P.call(i,"callee")&&(!it.call(i,"callee")||ze.call(i)==d)}var Tt=Array.isArray;function Wt(i){return i!=null&&It(i.length)&&!Te(i)}function xe(i){return Pt(i)&&Wt(i)}function Te(i){var o=We(i)?ze.call(i):"";return o==h||o==y}function It(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}function We(i){var o=typeof i;return!!i&&(o=="object"||o=="function")}function Pt(i){return!!i&&typeof i=="object"}return _e=qt,_e}var hs=cs();const fs=Rt(hs),ce=Lt("tripPlanningStore",{state:()=>({destinations:[],budgets:{basic:500,fancy:25e3,currency:"EUR"},isSubmitting:!1,submissionResults:{},submissionError:""}),getters:{getBudgets:e=>e.budgets,getIsSubmitting:e=>e.isSubmitting,getSubmissionResults:e=>e.submissionResults,getSubmissionError:e=>e.submissionError},actions:{async fetchBudgets(e){const t=L(),n=await Mt({currency:e||t.currency?.code});return this.budgets=n.budgetFilter,this.budgets},clearSubmissionResults(){this.submissionResults=null,this.submissionError=null,this.isSubmitting=!1},async postTripEnquiry(e,t){this.isSubmitting=!0,this.submissionError="",Kt(e).then(async d=>{if(this.submissionResults=d.makeWizardEnquiry,this.isSubmitting=!1,d.makeWizardEnquiry?.ok&&d.makeWizardEnquiry?.quote)try{await $fetch("/api/metrics/quote-generated",{method:"POST",body:{destinations:e.enquiry?.destinations?.selectedDestinations||[],currency:e.userPreferences?.currency||"EUR",quoteValue:d.makeWizardEnquiry.quote.chfValue||0,quoteReference:d.makeWizardEnquiry.quote.reference||"",userType:"anonymous"}})}catch(h){console.error("Failed to track quote generation:",h)}}).catch(d=>{this.submissionError=t("w.submitError"),this.isSubmitting=!1})}}}),gs=new Set(["authors","autoren","auteurs","autori","autores"]);function et(e){let t;try{t=new URL(e).pathname}catch{t=e.split("?")[0]?.split("#")[0]||""}return t.split("/").filter(Boolean)}function Ke(e){if(!e)return!1;const t=et(e),n=t.findIndex(d=>d.toLowerCase()==="blog");return n===0||n===1&&/^[a-z]{2}$/i.test(t[0]||"")}function ys(e){if(!e)return null;const t=et(e),n=t.findIndex(y=>y.toLowerCase()==="blog");if(n===-1||n!==0&&(n!==1||!/^[a-z]{2}$/i.test(t[0]||""))||t.length!==n+3)return null;const d=t[n+1],h=t[n+2];return!d||!h||gs.has(d.toLowerCase())?null:h}const bs=C({name:"WizardHeader",components:{},props:{step:{type:Number,required:!0},stepLength:{type:Number,default:6}},methods:{}},"$anTlPsLikk"),ws={class:"header flex flex-col w-full"},$s={class:"w-full mt-[24px]"},vs={class:"justify-center"},Ss={class:"bg-[#E1E3DE] rounded-full h-2.5 dark:bg-gray-700 md:max-w-[260px] md:mx-auto"},xs={class:"w-full flex justify-center mt-[10px] md:mt-[20px] text-[16px]",style:{color:"#656565"}};function Ds(e,t,n,d,h,y){return r(),u("div",ws,[t[0]||(t[0]=s("div",{class:"w-full flex justify-center mt-[10px] md:mt-0"},[s("img",{class:"w-[120px]",src:rs,alt:"viatu logo"})],-1)),s("div",$s,[s("div",vs,[s("div",Ss,[s("div",{class:"bg-[#1C4147] h-2.5 rounded-full",style:ue({width:`${e.step/e.stepLength*100}%`})},null,4)])]),s("div",xs,m(e.$t("w.stepsOf",{step:e.step,stepLength:e.stepLength})),1)])])}const tt=Object.assign(_(bs,[["render",Ds]]),{__name:"WizardEnquiryHeader"}),_s=M("/img/wizard_icon_tooltip_bulb.svg"),ks=C({name:"WizardTooltip",props:{message:{type:String,default:null},biggerText:{type:Boolean,default:!1}}},"$4BAEod0PNz"),Cs={class:"w-full lg:w-[465px] py-[10px] h-auto md:py-0 md:h-[82px] rounded-[4px] md:rounded-[17px] bg-[#1C414714] md:bg-[#E1E3DECC]"},Ns={class:"flex w-full h-full items-center"};function zs(e,t,n,d,h,y){return r(),u("div",Cs,[s("div",Ns,[t[0]||(t[0]=s("div",{class:"md:w-[100px]"},[s("div",{class:"rounded-full flex justify-center items-center md:bg-white md:h-[58px] md:w-[58px] h-[32px] w-[32px] ml-[8px] md:ml-[14px]"},[s("img",{src:_s,class:"md:h-[18px] h-[18px] w-full","aria-hidden":"true"})])],-1)),s("div",{class:B(["text-[13px] md:px-[14px] px-[8px]",{"md:text-[16
1px]":e.biggerText}])},m(e.message),3)])])}const te=Object.assign(_(ks,[["render",zs]]),{__name:"WizardEnquiryTooltip"}),Fs=C({name:"WizardDestinations",components:{WizardTooltip:te},emits:["nextStep","update:selectedDestinations"],props:{selectedDestinations:{type:Array,required:!0},presetDestinations:{type:Array,required:!0}},computed:{selectedDestinationsForm:{get(){return this.selectedDestinations},set(e){this.$emit("update:selectedDestinations",e)}}},watch:{}},"$rrltJCo9bS"),qs={class:"flex flex-col items-center w-[674px] max-w-full mx-auto pb-[10px] h-full"},Es={class:"w-full h-full flex flex-col"},Bs={class:"text-[25px] md:mt-[32px] mx-[40px] text-center"},Ts={class:"text-[16px] mt-[10px] md:mt-[32px] font-light text-center"},Ws={class:"w-full flex-1 my-6 grid grid-container body-xl",style:{"column-gap":"16px","row-gap":"16px"}},Is=["for"],Ps={class:"relative h-full w-full checkbox-container"},Os=["id","value"],Rs={class:"text-center w-full p-2 rounded-b-[15px] text-[13px] bottom-label bg-platinum bottom-0"};function Ls(e,t,n,d,h,y){return r(),u("div",qs,[s("div",Es,[s("h3",Bs,m(e.$t("w.stepWhere.title")),1),s("h3",Ts,m(e.$t("w.stepWhere.subTitle")),1),s("div",Ws,[(r(!0),u(T,null,K(e.presetDestinations,(l,p)=>(r(),u("div",null,[s("label",{class:"flex flex-col w-full justify-end items-center body-l md:body-xl cursor-pointer h-[120px] md:h-auto bg-platinum text-black peer-checked:bg-sangria peer-checked:text-white rounded-[17px]",for:"presetpDst"+p},[s("div",Ps,[I(s("input",{class:"bg-platinum peer absolute group top-[10px] right-[10px]",style:{border:"none"},"onUpdate:modelValue":t[0]||(t[0]=f=>e.selectedDestinationsForm=f),name:"destination",type:"checkbox",id:"presetpDst"+p,value:l.id},null,8,Os),[[Ve,e.selectedDestinationsForm]]),s("div",{class:"w-full md:h-[115px] h-[87px] rounded-t-[17px]",style:ue([{"background-repeat":"no-repeat","background-size":"cover","background-position":"center center"},{"background-image":`url(/wizard_country_${(l.canonicalName||l.countryName).toLowerCase().replaceAll(" ","")}.png)`}])},null,4),s("div",Rs,m(l.name),1)])],8,Is)]))),256))])])])}const Ks=Object.assign(_(Fs,[["render",Ls]]),{__name:"WizardEnquiryDestinations"}),Ms=C({name:"WizardExperiences",components:{WizardTooltip:te},emits:["nextStep","update:selectedExperiences"],props:{presetExperiences:{type:Array,required:!0},selectedExperiences:{type:Array,required:!0}},methods:{kebabcase:Ae},computed:{selectedExperiencesForm:{get(){return this.selectedExperiences},set(e){this.$emit("update:selectedExperiences",e)}}},watch:{}},"$N9usLXQN1q"),js={class:"flex flex-col items-center w-[674px] max-w-full mx-auto"},Us={class:"w-full h-full"},Ys={class:"text-[25px] md:mt-[32px] text-center"},As={class:"body-xl mt-[24px] w-full grid grid-cols-3",style:{"column-gap":"10px","row-gap":"10px"}},Vs=["id","value"],Hs=["for"],Gs=["src","alt"],Js=["src","alt"],Zs={class:"mt-[6px] md:mt-[0px] px-2 text-center text-[13px] md:text-[16px] leading-tight"};function Qs(e,t,n,d,h,y){return r(),u("div",js,[s("div",Us,[s("h3",Ys,m(e.$t("w.stepThemeTitle")),1),s("div",As,[(r(!0),u(T,null,K(e.presetExperiences,(l,p)=>(r(),u("div",null,[I(s("input",{class:"absolute opacity-0 peer group","onUpdate:modelValue":t[0]||(t[0]=f=>e.selectedExperiencesForm=f),name:"epxerience",type:"checkbox",id:"exp"+p,value:l.id},null,8,Vs),[[Ve,e.selectedExperiencesForm]]),s("label",{for:"exp"+p,class:"experience-label w-full h-[84px] md:min-h-[100px] px-3 py-2 rounded-[17px] flex flex-col justify-center items-center body-l md:body-xl cursor-pointer bg-platinum text-black peer-checked:bg-sangria peer-checked:text-white"},[s("img",{class:B(["hide-checked w-[24px] md:w-[32px]",{hidden:e.selectedExperiencesForm.indexOf(l.id)!==-1,flex:e.selectedExperiencesForm.indexOf(l.id)===-1}]),src:"/img/icon-"+e.kebabcase(l.verboseId)+"-sangria.svg",alt:l.name},null,10,Gs),s("img",{class:B(["show-checked w-[24px] md:w-[32px]",{hidden:e.selectedExperiencesForm.indexOf(l.id)===-1,flex:e.selectedExperiencesForm.indexOf(l.id)!==-1}]),src:"/img/icon-"+e.kebabcase(l.verboseId)+"-white.svg",alt:l.name},null,10,Js),s("div",Zs,m(l.name),1)],8,Hs)]))),256))])])])}const Xs=Object.assign(_(Ms,[["render",Qs]]),{__name:"WizardEnquiryExperiences"}),ei=C({name:"WizardBudget",components:{WizardTooltip:te},props:{selectedCurrencyCode:{type:String,required:!0},maxBudget:{type:[Number,null],required:!0}},data(){return{keyboardOpened:!1}},emits:["nextStep","update:maxBudget","update:selectedCurrencyCode"],computed:{budgetCurrency(){return ve.find(e=>this.selectedCurrencyCode===e.code)},currenciesList(){return ve},maxBudgetForm:{get(){return this.maxBudget},set(e){this.$emit("update:maxBudget",e)}},selectedCurrencyCodeForm:{get(){return this.selectedCurrencyCode},set(e){this.$emit("update:selectedCurrencyCode",e)}}},methods:{...Ue(ce,["fetchBudgets"]),onCurrencyChange(e){}},mounted(){setTimeout(()=>{this.$refs.budgetInput&&this.$refs.budgetInput.focus()},500)}},"$vPx0Q3hKO4"),ti={class:"flex flex-col items-center w-[674px] max-w-full mx-auto"},si={class:"text-[25px] md:mt-[32px] text-center"},ii={class:"w-full mt-[12px]"},ni={class:"body-m mb-[10px]"},oi={class:"relative border-[2px] border-sangria rounded-[4px]"},ri=["value"],ai={class:"w-full mt-[26px]"},li={class:"body-m mb-[10px]"},di={class:"relative border-[2px] border-sangria rounded-[4px]"},pi={class:"absolute body-l text-black/50 left-[20px] bottom-[20px]"};function ui(e,t,n,d,h,y){return r(),u("div",ti,[s("h3",si,m(e.$t("w.stepBudget.title")),1),s("div",ii,[s("p",ni,m(e.$t("w.stepBudget.currency")),1),s("div",oi,[I(s("select",{name:"current","onUpdate:modelValue":t[0]||(t[0]=l=>e.selectedCurrencyCodeForm=l),class:"w-full p-[20px] body-l"},[(r(!0),u(T,null,K(e.currenciesList,l=>(r(),u("option",{value:l.code},m(l.code)+" ⢠"+m(l.symbol),9,ri))),256))],512),[[ts,e.selectedCurrencyCodeForm]]),t[2]||(t[2]=s("img",{class:"absolute my-auto top-[18px] bottom-[
118px] right-[16px] pointer-events-none",src:as,"aria-hidden":"true"},null,-1))])]),s("div",ai,[s("p",li,m(e.$t("w.stepBudget.maxBudget")),1),s("div",di,[I(s("input",{type:"number",ref:"budgetInput",name:"miniBudgetPP","onUpdate:modelValue":t[1]||(t[1]=l=>e.maxBudgetForm=l),class:"w-full pl-[47px] py-[20px] rounded-[4px] body-l outline-offset-[6px]"},null,512),[[re,e.maxBudgetForm]]),s("div",pi,m(e.budgetCurrency.symbol),1)])])])}const mi=Object.assign(_(ei,[["render",ui]]),{__name:"WizardEnquiryBudget"}),ci=C({name:"WizardComments",emits:["nextStep","update:comments"],props:{comments:{type:String,required:!0}},computed:{commentsForm:{get(){return this.comments},set(e){this.$emit("update:comments",e)}}},mounted(){setTimeout(()=>{this.$refs.commentsInput&&this.$refs.commentsInput.focus()},500)}},"$E9ennWtBFW"),hi={class:"flex flex-col items-center w-[674px] max-w-full mx-auto"},fi={class:"w-full h-full"},gi={class:"text-[25px] md:mt-[32px] text-center"},yi={class:"col-span-full mt-[24px] md:mt-[24px]"},bi={class:"body-m mb-[10px]"},wi=["placeholder"];function $i(e,t,n,d,h,y){return r(),u("div",hi,[s("div",fi,[s("h3",gi,m(e.$t("w.stepComment.title")),1),s("div",yi,[s("p",bi,m(e.$t("w.stepComment.label")),1),I(s("textarea",{type:"text",name:"comments",ref:"commentsInput","onUpdate:modelValue":t[0]||(t[0]=l=>e.commentsForm=l),rows:"4",placeholder:e.$t("w.stepComment.placeholder"),class:"w-full p-[20px] body-l border-[2px] border-sangria rounded-[4px] h-[140px]"},null,8,wi),[[re,e.commentsForm]])])])])}const vi=Object.assign(_(ci,[["render",$i]]),{__name:"WizardEnquiryComments"}),Si=M("/img/wizard/confirmation_icon_success.svg"),xi={class:"bg-white text-black px-[20px] py-[32px] md:py-[60px] rounded-2xl"},Di={class:"w-full text-center text-[32px] font-bold mb-[20px]"},_i={class:"w-full text-center text-[18px] mb-[40px]"},ki={class:"w-full flex justify-center mb-[40px]"},Ci={class:"w-full bg-platinum max-w-[260px] text-center py-[20px] reference"},Ni=["data-reservation-code","data-reservation-value","data-ip"],zi={class:"w-full flex justify-center"},Fi=["href"],qi=He({__name:"ConfirmationModal",props:{open:{type:Boolean},reference:{},chfValue:{}},emits:["update:open"],setup(e,{emit:t}){const n=e,d=Ce(),h=Ye(),y=jt(),l=L(),p=is(null),f=Se(()=>y("/")?.fullPath||"/"),z=Se(()=>l.clientIP),F=x=>{x.key==="Escape"&&(x.preventDefault(),x.stopPropagation())};return $e(()=>n.open,async x=>{if(await Ge(),x)p.value?.showModal(),h.replace({query:{...d.query,personalising:"true"}});else{p.value?.close();const{personalising:N,...W}=d.query;h.replace({query:W})}},{immediate:!0}),(x,N)=>(r(),k(ss,{to:"body"},[s("dialog",{ref_key:"dialogRef",ref:p,class:"w-[calc(100%-40px)] max-w-[520px] p-0 backdrop:bg-black/60 rounded-2xl",onKeydown:F},[s("div",xi,[N[0]||(N[0]=s("div",{class:"flex w-full justify-center mb-[40px]"},[s("img",{src:Si,alt:"success"})],-1)),s("div",Di,m(x.$t("w.confirm.title")),1),s("div",_i,m(x.$t("w.confirm.subTitle")),1),s("div",ki,[s("div",Ci,[s("p",{id:"reservation-id","data-reservation-code":e.reference,"data-reservation-value":e.chfValue,"data-ip":me(z)},m(e.reference),9,Ni)])]),s("div",zi,[s("a",{href:me(f),class:"btn"},[s("span",null,m(x.$t("w.confirm.back")),1)],8,Fi)])])],544)]))}}),Ei=Object.assign(_(qi,[["__scopeId","data-v-9c9f07d2"]]),{__name:"WizardEnquiryConfirmationModal"}),Bi=C({name:"WizardDetails",components:{ConfirmationModal:Ei,WizardTooltip:te},emits:["update:phone","update:firstName","update:lastName","update:email","update:communication","update:promoCode"],data(){return{firstNameError:"",lastNameError:"",emailError:"",phoneError:""}},props:{getSubmissionResults:{type:[Object,null],required:!0},getIsSubmitting:{type:Boolean,required:!0},getSubmissionError:{type:[String,null],required:!0},firstName:{type:String,required:!0},lastName:{type:String,required:!0},email:{type:String,required:!0},communication:{type:String,required:!0},phone:{type:String,required:!0},promoCode:{type:String,required:!0}},computed:{...pe(L,["langUrl"]),phoneForm:{get(){return this.phone},set(e){this.$emit("update:phone",e)}},firstNameForm:{get(){return this.firstName},set(e){this.$emit("update:firstName",e)}},lastNameForm:{get(){return this.lastName},set(e){this.$emit("update:lastName",e)}},communicationForm:{get(){return this.communication},set(e){this.$emit("update:communication",e)}},emailForm:{get(){return this.email},set(e){this.$emit("update:email",e)}},promoCodeForm:{get(){return this.promoCode},set(e){this.$emit("update:promoCode",e)}}},watch:{firstNameForm(e){e.length>0&&(this.firstNameError="")},lastNameForm(e){e.length>0&&(this.lastNameError="")},emailForm(e){ke(e)&&(this.emailError="")},phoneForm(e){Ze(e)&&(this.phoneError="")}},methods:{validateFirstName(){this.firstName.length===0?this.firstNameError="required":this.firstNameError=""},validateLastName(){this.lastName.length===0?this.lastNameError="required":this.lastNameError=""},validateEmail(){this.emailForm.length===0?this.emailError="required":ke(this.emailForm)?this.emailError="":this.emailError="formatEmail"},validatePhoneNumber(e){e.phoneNumber.length===0?this.phoneError="required":e.isValid?this.phoneError="":this.phoneError="formatPhone"}},mounted(){setTimeout(()=>{this.$refs.firstNameInput&&this.$refs.firstNameInput.focus()},500)}},"$iAkOPGOthc"),Ti={class:"flex flex-col items-center w-[674px] max-w-full mx-auto h-full"}
1,Wi={class:"text-[25px] md:mt-[32px] mx-[40px] text-center"},Ii={ref:"form",class:"md:col-span-7 grid md:grid-cols-2 gap-y-4 md:gap-y-0 md:gap-x-5 mt-7 flex-1 details-form"},Pi={class:"body-m mb-[10px]"},Oi=["placeholder"],Ri={class:"body-m mb-[10px]"},Li=["placeholder"],Ki={class:"mt-1 md:mt-4 md:col-span-2"},Mi={class:"body-m mb-[10px]"},ji=["placeholder"],Ui={class:"mt-1 md:mt-4 md:col-span-2"},Yi={class:"body-m mb-[10px]"},Ai={class:"mt-1 md:mt-4 md:col-span-2"},Vi={class:"body-m mb-[10px]"},Hi={class:"col-span-full mt-1 md:mt-4 mb-[72px] md:mb-[40px]"},Gi={class:"body-m mb-[10px]"},Ji={class:"flex flex-row mt-[10px] body-l"},Zi={class:"flex flex-row items-center"},Qi={for:"contact-email",class:"ml-[8px]"},Xi={class:"flex flex-row items-center ml-[24px]"},en={for:"contact-phone",class:"ml-[8px]"};function tn(e,t,n,d,h,y){const l=S("ConfirmationModal"),p=ls;return r(),u(T,null,[e.getSubmissionResults&&e.getSubmissionResults.ok?(r(),k(l,{key:0,open:!0,"chf-value":e.getSubmissionResults.quote.chfValue,reference:e.getSubmissionResults.quote.reference},null,8,["chf-value","reference"])):$("",!0),s("div",Ti,[s("div",{class:B(["w-full h-full flex flex-col md:mb-0",{"mb-[150px]":e.getSubmissionResults&&e.getSubmissionResults.ok,"mb-[120px]":e.getSubmissionError}])},[s("h3",Wi,m(e.$t("w.form.title")),1),s("form",Ii,[s("div",null,[s("p",Pi,m(e.$t("w.form.firstName")),1),I(s("input",{type:"text",name:"firstName",ref:"firstNameInput","onUpdate:modelValue":t[0]||(t[0]=f=>e.firstNameForm=f),placeholder:e.$t("w.form.firstNameTip"),required:"",class:"w-full p-[20px] body-l border-[2px] border-sangria rounded-[4px]",onBlur:t[1]||(t[1]=(...f)=>e.validateFirstName&&e.validateFirstName(...f))},null,40,Oi),[[re,e.firstNameForm]]),s("p",{class:B(["min-h-6 mt-1.5 text-[14px] text-red",{"opacity-0":!e.firstNameError}])},m(e.firstNameError?e.$t(`w.form.error.${e.firstNameError}`):""),3)]),s("div",null,[s("p",Ri,m(e.$t("w.form.lastName")),1),I(s("input",{type:"text",name:"lastName",ref:"lastNameInput","onUpdate:modelValue":t[2]||(t[2]=f=>e.lastNameForm=f),placeholder:e.$t("w.form.lastNameTip"),required:"",class:"w-full p-[20px] body-l border-[2px] border-sangria rounded-[4px]",onBlur:t[3]||(t[3]=(...f)=>e.validateLastName&&e.validateLastName(...f))},null,40,Li),[[re,e.lastNameForm]]),s("p",{class:B(["min-h-6 mt-1.5 text-[14px] text-red",{"opacity-0":!e.lastNameError}])},m(e.lastNameError?e.$t(`w.form.error.${e.lastNameError}`):""),3)]),s("div",Ki,[s("p",Mi,m(e.$t("w.form.email")),1),I(s("input",{type:"email",name:"email",ref:"emailInput","onUpdate:modelValue":t[4]||(t[4]=f=>e.emailForm=f),placeholder:e.$t("w.form.emailTip"),required:"",class:"w-full p-[20px] body-l border-[2px] border-sangria rounded-[4px]",onBlur:t[5]||(t[5]=(...f)=>e.validateEmail&&e.validateEmail(...f))},null,40,ji),[[re,e.emailForm]]),s("p",{class:B(["min-h-6 mt-1.5 text-[14px] text-red",{"opacity-0":!e.emailError}])},m(e.emailError?e.$t(`w.form.error.${e.emailError}`):""),3)]),s("div",Ui,[s("p",Yi,m(e.$t("w.form.phone")),1),g(p,{name:"phone",ref:"phoneInput",disableErrorBorder:!0,placeholder:e.$t("w.form.phoneTipShort"),modelValue:e.phoneForm,"onUpdate:modelValue":t[6]||(t[6]=f=>e.phoneForm=f),onBlur:e.validatePhoneNumber},null,8,["placeholder","modelValue","onBlur"]),s("p",{class:B(["min-h-6 mt-1.5 text-[14px] text-red",{"opacity-0":!e.phoneError}])},m(e.phoneError?e.$t(`w.form.error.${e.phoneError}`):""),3)]),s("div",Ai,[s("p",Vi,m(e.$t("w.form.promo")),1),I(s("input",{type:"text",name:"promoCode",ref:"promoCodeInput","onUpdate:modelValue":t[7]||(t[7]=f=>e.promoCodeForm=f),placeholder:"",class:"w-full p-[20px] body-l border-[2px] border-sangria rounded-[4px]"},null,512),[[re,e.promoCodeForm]])]),s("fieldset",Hi,[s("legend",Gi,m(e.$t("w.form.preference")),1),s("div",Ji,[s("div",Zi,[I(s("input",{type:"radio",name:"communication",id:"contact-email",value:"email","onUpdate:modelValue":t[8]||(t[8]=f=>e.communicationForm=f),class:"w-[20px] h-[20px]"},null,512),[[Oe,e.communicationForm]]),s("label",Qi,m(e.$t("w.form.preferenceEmail")),1)]),s("div",Xi,[I(s("input",{type:"radio",name:"communication",id:"contact-phone",value:"phone","onUpdate:modelValue":t[9]||(t[9]=f=>e.communicationForm=f),class:"w-[20px] h-[20px]"},null,512),[[Oe,e.communicationForm]]),s("label",en,m(e.$t("w.form.preferencePhone")),1)])])])],512)],2)])],64)}const sn=Object.assign(_(Bi,[["render",tn],["__scopeId","data-v-cd014810"]]),{__name:"WizardEnquiryDetails"}),nn=M("/img/barbara_mobile.png"),on=C({name:"WizardFirstStepTooltip",props:{isMobile:{type:Boolean,default:!1}},computed:{getImage(){return this.isMobile?"/img/wizard_first_step_tooltip_mobile.svg":"/img/wizard_first_step_tooltip_desktop.svg"}}},"$m7N1F2OZwf"),rn={class:"flex lg:w-[475px] items-center rounded-[17px] mb-[10px] w-full py-[10px] relative h-full"},an=["src"],ln={class:"md:mb-[10px] flex items-center"},dn={class:"text-[13px] px-[14px] z-10"},pn={class:"mt-[10px]"};function un(e,t,n,d,h,y){return r(),u("div",rn,[s("img",{class:B(["absolute lg:h-auto w-full h-full object-cover",{"rounded-[17px]":"isMobile"in e?e.isMobile:me(ds)}]),src:e.getImage,alt:"first step tooltip"},null,10,an),s("div",ln,[t[0]||(t[0]=s("div",{class:"w-[100px] md:ml-[26px] ml-[12px] z-10"},[s("div",{class:"rounded-full flex justify-center items-center bg-white h-[68px] w-[68px]"},[s("img",{src:nn,class:"w-full rounded-full",alt:"Bárbara, Founder at Viatu"})])],-1)),s("div",dn,[s("b",null,m(e.$t("w.stepDates.tooltip")),1),s("div",pn,m(e.$t("w.stepDates.tooltipTitle")),1)])])])}const mn=Object.assign(_(on,[["render",un]]),{__name:"WizardEnquiryFirstStepTooltip"}),cn=M("/img/wizard/review_reviews-io.png"),hn=M("/img/wizard/review_avatar.png"),fn=M("/img/wizard_icon_verified_traveller.svg"),gn=C({name:"WizardReviewsComponent",components:{},computed:{...pe(L,["reviewsIo"])},data(){return{currentReviewIndex:0}},setup(){L().fetchReviewsIo();const t=Qe(),{t:n}=Ne();return{wizardReviews:[0,1,2].map(h=>({title:n(`w.reviews[${h}].title`),description:n(`w.reviews[${h}].description`),name:n(`w.reviews[${h}].name`)})),logos:t.reviewsIo.logos}}},"$2oTSSgAp9W"),yn={class:"flex flex-col w-full h-full px-8 py-[100px] justify-center items-center"},bn={class:"flex items-center space-x-[40px]"},wn={class:"flex items-center body-m"},$n={class:"flex items-center gap-[8px] text-[16px] ml-[40px]"},vn={class:"flex items-center max-w-[500px] flex-grow my-[80px] review"},Sn={class:"flex-col"},xn={class:"font-bold text-[32px]"},Dn={class:"text-[16px] mt-[30px]"},_n={class:"text-[16px] mt-[30px] items-center flex"},kn={class:"text-[16px] font-medium"},Cn={class:"font-medium"},Nn={class:"flex flex-row"},zn={class:"text-[16px] font-medium"},Fn={key:0,class:"flex w-full space-x-[10px] mt-[40px] reviews-nav"},qn=["onClick"],En={class:"flex flex-col gap-8 w-full items-center opacity-65 max-w-[730px]"},Bn={class:"body-l"},Tn={class:"w-full flex justify-between items-center gap-4"},Wn=["src","width","height","alt"];function In(e,t,n,d,h,y){const l=ps;return r(),u("div",yn,[s("div",bn,[t[1]||(t[1]=s("a",{href:"https://www.reviews.io/company-reviews/store/viatu.com",target:"_blank",class:"hidden lg:flex"},[s("img",{src:cn,width:"144",height:"22",class:"w-full h-auto grayscale-[1]",alt:"Reviews.io",loading:"lazy"})],-1)),s("div",wn,[g(l,{src:"/img/wizard/review_icon_star.svg",rating:e.reviewsIo.rating},null,8,["rating"]),s("span",$n,[Y(m(e.reviewsIo.rating.toFixed(1))+" "+m(e.$t("home.reviewsIo.rating"))+" ",1),t[0]||(t[0]=s("span",{class:"w-[1px] h-[15px] bg-platinum"},null,-1)),Y(" "+m(e.reviewsIo.numberOfReviews)+" "+m(e.$t("home.reviewsIo.reviews")),1)])])]),s("div",vn,[s("div",Sn,[s("div",xn," â"+m(e.wizardReviews[e.currentReviewIndex].title)+"â ",1),s("div",Dn,m(e.wizardReviews[e.currentReviewIndex].description),1),s("div",_n,[t[3]||(t[3]=s("img",{src:hn,width:"48",height:"48","aria-hidden":"true",alt:"Reviewer avatar",loading:"lazy",class:"mr-[20px]",decoding:"async"},null,-1)),s("div",kn,[s("p",Cn,m(e.wizardReviews[e.currentReviewIndex].name),1),s("div",Nn,[t[2]||(t[2]=s("img",{src:fn,width:"16",height:"16",alt:"verified traveler",loading:"lazy",class:"mr-[5px]",decoding:"async"},null,-1)),s("span",zn,m(e.$t("home.recentReviews.verifiedTraveller")),1)])])]),e.wizardReviews.length>1?(r(),u("div",Fn,[(r(!0),u(T,null,K(e.wizardReviews,(p,f)=>(r(),u("div",{class:B(["review-btn",{"review-btn-active":e.currentReviewIndex===f}]),onClick:z=>e.currentReviewIndex=f},null,10,qn))),256))])):$("",!0)])]),s("div",En,[s("span",Bn,m(e.$t("home.reviewsIo.title")),1),s("div",Tn,[(r(!0),u(T,null,K(e.logos,p=>(r(),u(T,null,[s("img",{src:p.url,width:p.width,height:p.height,alt:p.alt,loading:"lazy"},null,8,Wn),t[4]||(t[4]=s("div",{class:"h-4/5 w-1px border-solid border-white border-r-[1px] opacity-25 line-separator"},null,-1))],64))),256))])])])}const Pn=Object.assign(_(gn,[["render",In]]),{__name:"WizardEnquiryReviewsComponent"}),On=C({name:"WizardLastStepSubmit",components:{WizardTooltip:te},emits:["submit"],props:{getSubmissionResults:{type:[Object,null],required:!0},getIsSubmitting:{type:Boolean,required:!0},getSubmissionError:{type:[String,null],required:!0}
1,validForm:{type:[Boolean,Number,null],required:!0}}},"$ikz2mBLqsn"),Rn={class:"flex flex-col items-center max-w-full mx-auto"},Ln=["disabled"],Kn={key:0},Mn={key:1};function jn(e,t,n,d,h,y){const l=S("WizardTooltip");return r(),u("div",Rn,[!e.getSubmissionResults||!e.getSubmissionResults.ok?(r(),u("button",{key:0,class:B(["btn w-full md:w-[420px]",{"animate-pulse":e.getIsSubmitting}]),onClick:t[0]||(t[0]=ee(p=>e.$emit("submit"),["prevent"])),disabled:e.getIsSubmitting||!e.validForm},[e.getIsSubmitting?$("",!0):(r(),u("div",Kn,m(e.$t("w.form.cta")),1)),e.getIsSubmitting?(r(),u("div",Mn,[...t[1]||(t[1]=[s("img",{class:"m-auto w-[20px] h-[20px] rotate-forever",src:Xe},null,-1)])])):$("",!0)],10,Ln)):$("",!0),e.getSubmissionError?(r(),k(l,{key:1,class:"mt-[20px] w-full md:mb-[10px]",message:e.getSubmissionError,"bigger-text":!0},null,8,["message"])):$("",!0)])}const Un=Object.assign(_(On,[["render",jn]]),{__name:"WizardEnquiryLastStepSubmit"}),Yn=C({name:"WizardStepContainer",components:{WizardLastStepSubmit:Un,WizardReviewsComponent:Pn,WizardTooltip:te,WizardFirstStepTooltip:mn,WizardHeader:tt},emits:["nextStep"],props:{step:{type:Number,required:!0},stepLength:{type:Number,required:!0},image:{type:String,required:!0},imageTitle:{type:String,required:!0},imageTitleColour:{type:String,default:"white"},tooltip:{type:String,default:null},reviewsStep:{type:Boolean,default:!1},isSubStep:{type:Boolean,default:!1},hasNextStep:{type:Boolean,default:!1},disableBtn:{type:Boolean,default:!1},getSubmissionResults:{type:[Object,null]},getIsSubmitting:{type:Boolean},getSubmissionError:{type:[String,null]},validForm:{type:[Boolean,Number,null]}}},"$LsP1x2pxD7"),An={class:"w-full flex flex-col lg:flex-row lg:h-[calc(100dvh)] overflow-hidden"},Vn={class:"sr-only"},Hn={class:"flex flex-col h-full"},Gn={class:"flex-grow flex flex-col min-h-0"},Jn={class:"pt-[12px] w-full flex-1 flex flex-col min-h-0"},Zn={key:0,class:"bg-white py-[10px] w-full px-[20px] hidden lg:flex justify-center"},Qn={key:0,class:"w-[500px]"},Xn=["disabled"],eo={key:1,class:"w-[500px]"},to={class:"lg:flex overflow-hidden hidden lg:w-[57.5%] image-container"},so={key:0,class:"relative w-full h-full bg-lightgrey"},io={key:0,class:"absolute left-[20px] bottom-[20px] w-[475px]"},no={key:1,class:"absolute left-[20px] bottom-[20px]"},oo={class:"absolute right-[20px] top-[30px] mr-[20px]"},ro=["src"],ao={key:1,class:"relative w-full bg-sangria h-screen last-step"},lo={class:"w-full items-center flex text-white h-full"},po={class:"px-[20px] pb-[20px] lg:hidden w-full flex justify-center"},uo={class:"md:max-w-[500px] w-full"},mo={key:0,class:"fixed flex lg:hidden bottom-0 w-full px-5 py-3 justify-center bg-white shadow-top-md"},co={key:0,class:"w-[500px]"},ho=["disabled"],fo={key:1,class:"w-[500px]"};function go(e,t,n,d,h,y){const l=S("WizardHeader"),p=S("WizardLastStepSubmit"),f=S("WizardFirstStepTooltip"),z=S("WizardTooltip"),F=Ut,x=S("WizardReviewsComponent");return r(),u(T,null,[s("div",An,[s("h1",Vn,m(e.$t("nav.planYourTrip")),1),s("div",{class:B(["w-full lg:w-[42.5%] flex-grow justify-center md:px-[42px] lg:px-[52px] xl:px-[62px] md:py-[32px] p-[20px] overflow-auto",{"md:!px-0":e.step===2||e.step===e.stepLength}])},[s("div",Hn,[s("div",Gn,[g(l,{step:e.step,"step-length":e.stepLength},null,8,["step","step-length"]),s("div",Jn,[Je(e.$slots,"default",{},void 0,!0)])]),e.hasNextStep||e.step===e.stepLength?(r(),u("div",Zn,[e.step!==e.stepLength?(r(),u("div",Qn,[s("button",{disabled:e.disableBtn,class:"btn w-full",onClick:t[0]||(t[0]=ee(N=>e.$emit("nextStep"),["prevent"]))},m(e.$t("w.nextStep")),9,Xn)])):$("",!0),e.step===e.stepLength?(r(),u("div",eo,[g(p,{"get-submission-error":e.getSubmissionError,"get-is-submitting":e.getIsSubmitting,"get-submission-results":e.getSubmissionResults,"valid-form":e.validForm,onSubmit:t[1]||(t[1]=N=>e.$emit("nextStep"))},null,8,["get-submission-error","get-is-submitting","get-submission-results","valid-form"])])):$("",!0)])):$("",!0)])],2),s("div",to,[e.reviewsStep?$("",!0):(r(),u("div",so,[e.step===1&&!e.isSubStep?(r(),u("div",io,[g(f)])):$("",!0),e.tooltip&&e.step-1!==e.stepLength&&(e.step!==1||e.step===1&&e.isSubStep)?(r(),u("div",no,[g(z,{message:e.tooltip},null,8,["message"])])):$("",!0),s("div",oo,[s("div",{class:"text-white text-[16px] flex items-center",style:ue({color:e.imageTitleColour})},[s("img",{src:e.imageTitleColour==="white"?"/img/wizard_icon_bino_white.svg":"/img/wizard_icon_bino_gray.svg",class:"h-[16px] mr-[10px]","aria-hidden":"true"},null,8,ro),Y(m(e.imageTitle),1)],4)]),g(F,{src:`https://dpu9z4r46dtyt.cloudfront.net/public${e.image}`,alt:e.imageTitle,"picture-class":"h-full w-full",loading:"eager",fetchpriority:"high",sources:[{media:"(orientation: portrait)",sizes:"100vw",widths:[400,500,600],ratio:1.67},{sizes:"100vw",widths:[900,1200,1500,2e3],ratio:.67}]},null,8,["src","alt"])])),e.reviewsStep?(r(),u("div",ao,[s("div",lo,[g(x)])])):$("",!0)]),s("div",po,[s("div",uo,[e.step===1&&!e.isSubStep?(r(),k(f,{key:0,"is-mobile":!0})):$("",!0),s("div",{class:B({"pb-[76px]":e.hasNextStep})},[e.tooltip&&e.step-1!==e.stepLength&&(e.step!==1||e.step===1&&e.isSubStep)?(r(),k(z,{key:0,message:e.tooltip},null,8,["message"])):$("",!0)],2)])])]),e.hasNextStep||e.step===e.stepLength?(r(),u("div",mo,[e.step!==e.stepLength?(r(),u("div",co,[s("button",{disabled:e.disableBtn,class:"btn w-full",onClick:t[2]||(t[2]=ee(N=>e.$emit("nextStep"),["prevent"]))},m(e.$t("w.nextStep")),9,ho)])):$("",!0),e.step===e.stepLength?(r(),u("div",fo,[g(p,{"get-submission-error":e.getSubmissionError,"get-is-submitting":e.getIsSubmitting,"get-submission-results":e.getSubmissionResults,"valid-form":e.validForm,onSubmit:t[3]||(t[3]=N=>e.$emit("nextStep"))},null,8,["get-submission-error","get-is-submitting","get-submission-results","valid-form"])])):$("",!0)])):$("",!0)],64)}const yo=Object.assign(_(Yn,[["render",go],["__scopeId","data-v-e6b1b330"]]),{__name:"WizardEnquiryWizardStepContainer"}),bo=C({props:{active:{type:Boolean,default:!1},icon:{type:[String,null],default:null},iconRepeat:{type:Number,default:1},iconSize:{type:String,default:"25px"},activeIcon:{type:[String,null],default:null},addClass:{type:String,default:""}},name:"WizardButton",emits:["btnClick"],data(){return{isAnimating:!1,isAnimationReverse:!1}},methods:{btnClick(){this.isAnimating||(this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1,this.$emit("btnClick")},200))}}},"$9V8Ukt3CIo"),wo={key:0,class:"flex justify-center items-center mb-[10px] space-x-[5px]"},$o=["src"],vo=["src"];function So(e,t,n,d,h,y){const l=Yt;return r(),k(l,null,{fallback:b(()=>[s("div",{class:B(["skeleton p-[10px] text-center cursor-pointer rounded-[17px] animate-pulse",e.addClass])},[...t[1]||(t[1]=[s("div",{class:"flex items-center h-full justify-center text-sangria"},[s("img",{class:"m-auto w-[20px] h-[20px] rotate-forever",src:Xe})],-1)])],2)]),default:b(()=>[s("button",{class:B(["p-[10px] text-center cursor-pointer rounded-[17px] fade-in",[e.isAnimating?"glisten":"",e.active&&!e.isAnimating?"bg-sangria text-white":"",!e.active&&!e.isAnimating?"bg-platinum text-sangria":"",e.addClass]]),onClick:t[0]||(t[0]=(...p)=>e.btnClick&&e.btnClick(...p))}
1,[e.icon&&e.activeIcon?(r(),u("div",wo,[(r(!0),u(T,null,K(e.iconRepeat,p=>I((r(),u("img",{src:e.icon,style:ue({width:e.iconSize}),"aria-hidden":"true"},null,12,$o)),[[Re,!e.isAnimating&&!e.active]])),256)),(r(!0),u(T,null,K(e.iconRepeat,p=>I((r(),u("img",{src:e.activeIcon,style:ue({width:e.iconSize}),"aria-hidden":"true"},null,12,vo)),[[Re,e.isAnimating||e.active]])),256))])):$("",!0),s("div",{class:B(["full-width text-[16px] md:text-[18px] font-medium",{"md:mt-[30px]":e.icon&&e.activeIcon}])},[Je(e.$slots,"default",{},void 0,!0)],2)],2)]),_:3})}const ae=Object.assign(_(bo,[["render",So],["__scopeId","data-v-c44d4b52"]]),{__name:"WizardEnquiryButton"}),xo=C({name:"WizardDatesExact",components:{WizardButton:ae},props:{hasSpecificDates:{type:[Boolean,null],required:!0}},emits:["update:hasSpecificDates","nextStep"],methods:{buttonClick(e){this.hasSpecificDatesForm=e,this.$emit("nextStep")}},computed:{hasSpecificDatesForm:{get(){return this.hasSpecificDates},set(e){this.$emit("update:hasSpecificDates",e)}},tripTitle(){const e=L();return e.personalise.title?` ${e.personalise.title}`:""}}},"$2wSeyppVCw"),Do={class:"flex flex-col items-center max-w-full mx-auto"},_o={class:"w-full h-full"},ko={class:"w-full"},Co={class:"text-[25px] mt-[10px] md:mt-[38px] text-center"},No=["innerHTML"],zo={class:"body-xl mt-[24px] w-full grid grid-cols-2",style:{"column-gap":"20px","row-gap":"20px"}};function Fo(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",Do,[s("div",_o,[s("div",ko,[s("h3",Co,[s("span",{innerHTML:e.$t("w.stepDates.startPlanTrip",{tripTitle:e.tripTitle})},null,8,No)]),s("div",zo,[g(l,{"add-class":"h-[168px] md:h-[200px]",active:e.hasSpecificDatesForm===!0,icon:"/img/wizard/icon_date_specific_sangria.svg","active-icon":"/img/wizard/icon_date_specific_white.svg",onBtnClick:t[0]||(t[0]=p=>e.buttonClick(!0))},{default:b(()=>[Y(m(e.$t("w.stepDates.exactDates")),1)]),_:1},8,["active"]),g(l,{"add-class":"h-[168px] md:h-[200px]",active:e.hasSpecificDatesForm===!1,icon:"/img/wizard/icon_date_idk_sangria.svg","active-icon":"/img/wizard/icon_date_idk_white.svg",onBtnClick:t[1]||(t[1]=p=>e.buttonClick(!1))},{default:b(()=>[Y(m(e.$t("w.stepDates.dontKnow")),1)]),_:1},8,["active"])])])])])}const qo=Object.assign(_(xo,[["render",Fo]]),{__name:"WizardEnquiryDatesExact"}),Eo=C({name:"WizardDatesSpecific",props:{fromDate:{type:[Date,null],required:!0},toDate:{type:[Date,null],required:!0},isValid:{type:Boolean,default:!1}},emits:["nextStep","update:toDate","update:fromDate","update:isValid"],methods:{checkValid(){const e=this.$refs.fromDate.checkValidity()&&this.$refs.toDate.checkValidity();this.$emit("update:isValid",e)}},computed:{numberOfNights(){return L().personalise.numberOfNights},toDateForm:{get(){return this.toDate},set(e){this.$emit("update:toDate",e),this.checkValid()}},fromDateForm:{get(){return this.fromDate},set(e){this.$emit("update:fromDate",e),this.checkValid()}},minStartDate(){return new Date().toISOString().split("T")[0]},maxStartDate(){let e=this.toDate||new Date,t=new Date(e.valueOf());return t.setFullYear(t.getFullYear()+4),t.toISOString().split("T")[0]},minEndDate(){return(this.fromDate||new Date).toISOString().split("T")[0]},maxEndDate(){let e=this.fromDate||new Date,t=new Date(e.valueOf());return t.setFullYear(t.getFullYear()+4),t.toISOString().split("T")[0]}},watch:{fromDateForm(e){const t=L();if(t.personalise.numberOfNights){const n=new Date(e);n.setDate(n.getDate()+t.personalise.numberOfNights),this.toDateForm=n,this.$refs.toDate.value=n.toISOString().split("T")[0]}this.toDate!=null&&e>this.toDate&&setTimeout(()=>{this.fromDate=new Date(this.toDate),this.$refs.fromDate.value=this.toDate.toISOString().split("T")[0]},0)},toDateForm(e){this.fromDate!=null&&e<this.fromDate&&setTimeout(()=>{this.toDate=new Date(this.fromDate),this.$refs.toDate.value=this.fromDate.toISOString().split("T")[0]},0)}}},"$rdKldkMTND"),Bo={class:"flex flex-col items-center"},To={class:"text-[25px] mt-[10px] md:mt-[32px] text-center"},Wo={class:"flex flex-col md:flex-row mt-[16px] md:mt-[36px] w-full"},Io={class:"block grow md:mr-[22px]"},Po={class:"body-m mb-[10px]",for:"fromDate"},Oo={class:"relative w-full"},Ro=["min","max"],Lo={class:"block grow mt-[24px] md:mt-0"},Ko={class:"body-m mb-[10px]",for:"toDate"},Mo={class:"relative w-full"},jo=["min","max","disabled"];function Uo(e,t,n,d,h,y){return r(),u("div",Bo,[s("h3",To,m(e.$t("w.stepDates.exactTitle")),1),s("div",Wo,[s("div",Io,[s("label",Po,m(e.$t("w.stepDates.startDate")),1),s("div",Oo,[s("input",{ref:"fromDate",class:"body-l px-[20px] py-[20.5px] w-full border-[2px] border-sangria rounded-[4px] h-[60px]",id:"fromDate",name:"from-date",type:"date",min:e.minStartDate,max:e.maxStartDate,required:"",onCh
1ange:t[0]||(t[0]=l=>e.fromDateForm=new Date(l.target.value))},null,40,Ro)])]),s("div",Lo,[s("label",Ko,m(e.$t("w.stepDates.endDate")),1),s("div",Mo,[s("input",{ref:"toDate",class:"body-l px-[20px] py-[20.5px] w-full border-[2px] border-sangria rounded-[4px] h-[60px]",id:"toDate",name:"to-date",type:"date",required:"",min:e.minEndDate,max:e.maxEndDate,onChange:t[1]||(t[1]=l=>e.toDateForm=new Date(l.target.value)),onKeydown:t[2]||(t[2]=l=>{if(l.key!="ArrowDown")return!0;new Date(l.target.value).getFullYear()<=new Date(e.minEndDate).getFullYear()&&l.preventDefault()}),disabled:e.numberOfNights},null,40,jo)])])])])}const Yo=Object.assign(_(Eo,[["render",Uo]]),{__name:"WizardEnquiryDatesSpecific"}),Ao=C({name:"WizardDatesFlights",components:{WizardButton:ae},props:{bookedFlights:{type:[Boolean,null],required:!0}},emits:["update:bookedFlights","nextStep"],methods:{buttonClick(e){this.bookedFlightsForm=e,this.$emit("nextStep",e)}},computed:{bookedFlightsForm:{get(){return this.bookedFlights},set(e){this.$emit("update:bookedFlights",e)}}}},"$D4oEFD72gN"),Vo={class:"flex flex-col items-center max-w-full mx-auto"},Ho={class:"w-full h-full"},Go={class:"w-full"},Jo={class:"text-[25px] md:mt-[32px] text-center mb-[20px]"},Zo={class:"body-xl mt-[24px] w-full grid grid-cols-2",style:{"column-gap":"16px","row-gap":"16px"}},Qo={class:"full-width text-[16px] font-medium"},Xo={class:"full-width text-[16px] font-medium"};function er(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",Vo,[s("div",Ho,[s("div",Go,[s("h3",Jo,m(e.$t("w.stepDates.flightTitle")),1),s("div",Zo,[g(l,{"add-class":"h-[168px] md:h-[200px]",active:e.bookedFlightsForm===!0,onBtnClick:t[0]||(t[0]=p=>e.buttonClick(!0))},{default:b(()=>[s("span",Qo,m(e.$t("w.stepDates.flightYes")),1)]),_:1},8,["active"]),g(l,{"add-class":"h-[168px] md:h-[200px]",active:e.bookedFlightsForm===!1,onBtnClick:t[1]||(t[1]=p=>e.buttonClick(!1))},{default:b(()=>[s("span",Xo,m(e.$t("w.stepDates.flightNo")),1)]),_:1},8,["active"])])])])])}const tr=Object.assign(_(Ao,[["render",er]]),{__name:"WizardEnquiryDatesFlight"}),sr=C({name:"WizardDatesYear",components:{WizardButton:ae},props:{dontKnowYear:{type:[Number,null],required:!0}},emits:["update:dontKnowYear","nextStep"],methods:{buttonClick(e){this.dontKnowYearForm=e,this.$emit("nextStep",e)}},computed:{dontKnowYearForm:{get(){return this.dontKnowYear},set(e){this.$emit("update:dontKnowYear",e)}}}},"$57fDnvYkkP"),ir={class:"flex flex-col items-center max-w-full mx-auto"},nr={class:"w-full h-full flex justify-center"},or={class:"w-full max-w-[460px]"},rr={class:"text-[25px] mt-[10px] md:mt-[32px] text-center mb-[20px]"},ar={class:"body-xl mt-[24px] w-full grid grid-cols-1",style:{"column-gap":"16px","row-gap":"16px"}},lr={class:"full-width text-[16px] font-medium"};function dr(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",ir,[s("div",nr,[s("div",or,[s("h3",rr,m(e.$t("w.stepDates.dontKnowTitle")),1),s("div",ar,[(r(),u(T,null,K(3,p=>g(l,{"add-class":"h-[72px]",active:e.dontKnowYearForm===new Date().getFullYear()+p-1,onBtnClick:f=>e.buttonClick(new Date().getFullYear()+p-1)},{default:b(()=>[s("span",lr,m(new Date().getFullYear()+p-1),1)]),_:2},1032,["active","onBtnClick"])),64))])])])])}const pr=Object.assign(_(sr,[["render",dr]]),{__name:"WizardEnquiryDatesYear"}),ur=M("/img/wizard_icon_star.svg"),mr=C({name:"WizardDatesMonth",components:{WizardButton:ae},props:{dontKnowYear:{type:[Number,null],required:!0},dontKnowMonth:{type:[Number,null],required:!0}},emits:["update:dontKnowMonth","nextStep"],data(){return{bestMonths:[],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},methods:{selectMonth(e){const t=new Date().getFullYear(),n=new Date().getMonth();this.dontKnowYear===t&&(e+=n),this.dontKnowMonthForm=e,this.$emit("nextStep")},checkActive(e){const t=new Date().getFullYear();if(this.dontKnowYear===t){const n=new Date().getMonth();e+=n}return this.dontKnowMonthForm===e}},computed:{dontKnowMonthForm:{get(){return this.dontKnowMonth},set(e){this.$emit("update:dontKnowMonth",e)}},getMonthList(){const e=new Date().getFullYear(),t=[...Array(12).keys()],n=d=>this.months[d];if(this.dontKnowYear===e){const d=new Date().getMonth();return t.slice(d).map(n)}return t.map(n)}}},"$xG0b4ed-Gz"),cr={class:"flex flex-col items-center max-w-full mx-auto"},hr={class:"w-full h-full"},fr={class:"w-full"},gr={class:"text-[25px] mt-[10px] md:mt-[32px] text-center mb-[20px]"},yr={class:"body-xl mt-[24px] w-full grid grid-cols-3 md:grid-cols-4",style:{"column-gap":"10px","row-gap":"10px"}},br={key:0,class:"relative top-[-12px]"},wr={class:"full-width text-[16px] font-medium"};function $r(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",cr,[s("div",hr,[s("div",fr,[s("h3",gr,m(e.$t("w.stepDates.dontKnowMonth",{year:e.dontKnowYear})),1),s("div",yr,[(r(!0),u(T,null,K(e.getMonthList,(p,f)=>(r(),k(l,{"add-class":"h-[72px]",key:p,active:e.checkActive(f),onBtnClick:z=>e.selectMonth(f)},{default:b(()=>[e.bestMonths.indexOf(p)!==-1?(r(),u("div",br,[...t[0]||(t[0]=[s("div",{class:"absolute right-[0px] top-[0px]"},[s("img",{src:ur,class:"w-[12px] h-[12px] md:w-[16px] md:h-[16x]",alt:"star"})],-1)])])):$("",!0),s("span",wr,m(e.$t(`c.months.${p}`)),1)]),_:2},1032,["active","onBtnClick"]))),128))])])])])}const vr=Object.assign(_(mr,[["render",$r]]),{__name:"WizardEnquiryDatesMonth"}),Sr=C({name:"WizardDatesDuration",components:{WizardButton:ae},props:{dontKnowYear:{type:[Number,null],required:!0},dontKnowMonth:{type:[Number,null],required:!0},dontKnowDuration:{type:[String,null],required:!0}},setup(){const{t:e}=Ne();return{t:e}},methods:{buttonClick(e){this.dontKnowDurationForm=e,this.$emit("nextStep",e)}},emits:["update:dontKnowDuration","nextStep"],computed:{dontKnowDurationForm:{get(){return this.dontKnowDuration},set(e){this.$emit("update:dontKnowDuration",e)}},months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},getDurationList(){return[this.t("w.stepDates.d.week1"),this.t("w.stepDates.d.week2"),this.t("w.stepDates.d.week3"),this.t("w.stepDates.d.week4")]}}},"$xdThC4uYNV"),xr={class:"flex flex-col items-center max-w-full mx-auto"},Dr={class:"w-full h-full"},_r={class:"w-full"},kr={class:"text-[25px] mt-[10px] md:mt-[32px] text-center mb-[20px]"},Cr={class:"body-xl mt-[24px] w-full grid grid-cols-2",style:{"column-gap":"16px","row-gap":"16px"}},Nr={class:"full-width text-[16px] font-medium"};function zr(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",xr,[s("div",Dr,[s("div",_r,[s("h3",kr,m(e.$t("w.stepDates.durationTitle",{month:e.$t(`c.months.${("months"in e?e.months:me(At))[e.dontKnowMonth]}`),year:e.dontKnowYear})),1),s("div",Cr,[(r(!0),u(T,null,K(e.getDurationList,p=>(r(),k(l,{"add-class":"h-[100px] md:h-[120px]",active:e.dontKnowDurationForm===p,onBtnClick:f=>e.buttonClick(p)},{default:b(()=>[s("span",Nr,m(p),1)]),_:2},1032,["active","onBtnClick"]))),256))])])])])}const Fr=Object.assign(_(Sr,[["render",zr]]),{__name:"WizardEnquiryDatesDuration"}),qr=C({name:"WizardPeopleGroupType",components:{WizardButton:ae},props:{children:{type:Number,required:!0},adults:{type:Number,required:!0},groupType:{type:String,required:!0}},emits:["nextStep","nextPeopleStep","update:adults","update:children","update:groupType"],methods:{byMyselfClick(){this.groupTypeForm="By Myself",this.adultsForm=1,this.childrenForm=0,this.$emit("nextStep")},withPartner(){this.groupTypeForm="With Partner",this.adultsForm=2,this.childrenForm=0,this.$emit("nextStep")}},computed:{adultsForm:{get(){return this.adults},set(e){this.$emit("update:adults",e)}},childrenForm:{get(){return this.children},set(e){this.$emit("update:children",e)}},groupTypeForm:{get(){return this.groupType},set(e){this.$emit("update:groupType",e)}}}},"$P1d-59S0xw"),Er={class:"flex flex-col items-center w-[674px] max-w-full mx-auto"},Br={class:"w-full h-full"},Tr={class:"text-[25px] md:mt-[32px] text-center"},Wr={class:"body-xl mt-[24px] w-full grid grid-cols-2",style:{"column-gap":"10px","row-gap":"10px"}};function Ir(e,t,n,d,h,y){const l=S("WizardButton");return r(),u("div",Er,[s("div",Br,[s("h3",Tr,m(e.$t("w.stepPeople.title2")),1),s("div",Wr,[g(l,{"add-class":"h-[120px] md:h-[160px]",active:e.groupTypeForm==="By Myself",icon:"/img/wizard/icon_group_person_sangria.svg","active-icon":"/img/wizard/icon_group_person_white.svg",onBtnClick:e.byMyselfClick},{default:b(()=>[Y(m(e.$t("w.stepPeople.myself")),1)]),_:1},8,["active","onBtnClick"]),g(l,{"add-class":"h-[120px] md:h-[160px]",active:e.groupTypeForm==="With Partner",icon:"/img/wizard/icon_group_person_sangria.svg","active-icon":"/img/wizard/icon_group_person_white.svg","icon-repeat":2,onBtnClick:e.withPartner},{default:b(()=>[Y(m(e.$t("w.stepPeople.partner")),1)]),_:1},8,["active","onBtnClick"]),g(l,{"add-class":"h-[120px] md:h-[160px]",active:e.groupTypeForm==="With Family",icon:"/img/wizard/icon_group_family_black.svg","icon-size":"66px","active-icon":"/img/wizard/icon_group_family_white.svg",onBtnClick:t[0]||(t[0]=p=>{e.groupTypeForm="With Family",e.$emit("nextPeopleStep")})},{default:b(()=>[Y(m(e.$t("w.stepPeople.family")),1)]),_:1},8,["active"]),g(l,{"add-class":"h-[120px] md:h-[160px]",active:e.groupTypeForm==="With Group",icon:"/img/wizard/icon_group_person_sangria.svg","active-icon":"/img/wizard/icon_group_person_white.svg","icon-repeat":3,onBtnClick:t[1]||(t[1]=p=>{e.groupTypeForm="With Group",e.$emit("nextPeopleStep")})},{default:b(()=>[Y(m(e.$t("w.stepPeople.group")),1)]),_:1},8,["active"])])])])}
1const Pr=Object.assign(_(qr,[["render",Ir]]),{__name:"WizardEnquiryPeopleGroupType"}),Or=M("/img/wizard_icon_adults.svg"),Me=M("/img/wizard_icon_minus.svg"),je=M("/img/wizard_icon_plus.svg"),Rr=M("/img/wizard_icon_children.svg"),Lr=C({name:"WizardPeopleCounter",components:{WizardTooltip:te},props:{children:{type:Number,required:!0},adults:{type:Number,required:!0},childrenDOB:{type:Array,default:()=>[]}},emits:["nextStep","update:adults","update:children"],methods:{updateAdults(e=!1){e?this.adultsForm<50&&this.adultsForm++:this.adultsForm>1&&this.adultsForm--},updateChildren(e=!1){e?this.childrenForm<=10&&this.childrenForm++:this.childrenForm>=1&&this.childrenForm--}},watch:{children(e){e>this.childrenDOB.length?this.childrenDOB.push(""):this.childrenDOB.pop()}},computed:{minDate(){const e=us(new Date,{years:18});return ms(e,"yyyy-MM-dd")},maxDate(){return new Date().toISOString().split("T")[0]},adultsForm:{get(){return this.adults},set(e){this.$emit("update:adults",e)}},childrenForm:{get(){return this.children},set(e){this.$emit("update:children",e)}},childrenDobForm:{get(){return this.childrenDOB},set(e){this.$emit("update:childrenDOB",e)}}}},"$emgyY2C2uz"),Kr={class:"flex flex-col items-center w-[674px] max-w-full mx-auto"},Mr={class:"w-full h-full"},jr={class:"text-[25px] md:mt-[32px] text-center"},Ur={class:"w-full bg-platinum flex items-center p-[20px] justify-between my-[20px] rounded-[17px]"},Yr={class:"flex"},Ar={class:"text-[16px]"},Vr={class:"flex items-center"},Hr={class:"w-[30px] text-center"},Gr={class:"w-full bg-platinum flex items-center p-[20px] justify-between my-[20px] rounded-[17px]"},Jr={class:"flex"},Zr={class:"text-[16px]"},Qr={class:"flex items-center"},Xr={class:"w-[30px] text-center"},ea={key:0,class:"grid md:grid-cols-2 gap-[24px] border-t border-platinum py-[20px]"},ta=["for"],sa={class:"relative w-full"},ia=["id","name","min","max","value","onChange"];function na(e,t,n,d,h,y){const l=ns("show-picker");return r(),u("div",Kr,[s("div",Mr,[s("h3",jr,m(e.$t("w.stepPeople.howManyTitle2")),1),s("div",Ur,[s("div",Yr,[t[4]||(t[4]=s("img",{class:"mr-[10px]",src:Or},null,-1)),s("div",Ar,m(e.$t("w.stepPeople.adult")),1)]),s("div",Vr,[s("img",{src:Me,class:"h-[48px] cursor-pointer",onClick:t[0]||(t[0]=ee(p=>e.updateAdults(!1),["prevent"])),alt:"minus"}),s("div",Hr,m(e.adults),1),s("img",{src:je,class:"h-[48px]",onClick:t[1]||(t[1]=ee(p=>e.updateAdults(!0),["prevent"])),alt:"plus"})])]),s("div",Gr,[s("div",Jr,[t[5]||(t[5]=s("img",{class:"mr-[10px]",src:Rr,"aria-hidden":"true"},null,-1)),s("div",Zr,m(e.$t("w.stepPeople.children")),1)]),s("div",Qr,[s("img",{src:Me,class:"h-[48px]",onClick:t[2]||(t[2]=ee(p=>e.updateChildren(!1),["prevent"])),alt:"minus"}),s("div",Xr,m(e.children),1),s("img",{src:je,class:"h-[48px]",onClick:t[3]||(t[3]=ee(p=>e.updateChildren(!0),["prevent"])),alt:"plus"})])]),e.childrenDOB.length>0?(r(),u("div",ea,[(r(!0),u(T,null,K(e.childrenDOB,(p,f)=>(r(),u("div",null,[s("label",{class:"body-m mb-[10px]",for:"childDate"+f},m(e.$t("w.stepPeople.childDOB",f+1)),9,ta),s("div",sa,[I(s("input",{class:"w-full body-l p-[20px] border-[2px] border-black rounded-[4px]",id:"childDate"+f,name:"childDate"+f,type:"date",min:e.minDate,max:e.maxDate,value:e.childrenDOB[f],onChange:z=>e.childrenDOB[f]=z.target.value},null,40,ia),[[l]])])]))),256))])):$("",!0)])])}const oa=Object.assign(_(Lr,[["render",na]]),{__name:"WizardEnquiryPeopleCounter"}),ra=C({fetchKey:"plan-enquiry",components:{WizardPeopleCounter:oa,WizardPeopleGroupType:Pr,WizardDatesDuration:Fr,WizardDatesMonth:vr,WizardDatesYear:pr,WizardDatesFlights:tr,WizardDatesSpecific:Yo,WizardDatesExact:qo,WizardStepContainer:yo,WizardDetails:sn,WizardComments:vi,WizardBudget:mi,WizardExperiences:Xs,WizardDestinations:Ks,WizardHeader:tt,MultiRangeSlider:es},props:{class:{type:String,default:""},stepList:{type:Array,default:[]}},setup(){const{t:e,locale:t}=Ne(),n=Se(()=>({fr:"Chutes Victoria, Zambie",de:"Victoriafälle, Sambia",it:"Cascate Vittoria, Zambia",es:"Cataratas Victoria, Zambia"})[t.value]||"Victoria Falls, Zambia");return{t:e,victoriaFallsCaption:n}},async asyncData({$pinia:e}){let t,n;const d=De(e);return{experiences:([t,n]=Vt(()=>
1d.fetchExperiences()),t=await t,n(),t)}},data(){const e=L(),t=De(),n=Ce();let d=null,h=null,y=null,l=1,p=null,f=null;const z=n.query.tf||null,F=n.query.r||null,x=n.query.y||null,N=n.query.m||null,W=n.query.lp||!1,j=n.query.co||null;let A=n.query.tripId||null;const V=n.query.templateId||null;let J=2,w=0,D=1,a=[],q=[],Z=!1;n.query.trip&&(A=n.query.trip,J=parseInt(n.query.adults),w=parseInt(n.query.children),D=parseInt(n.query.rooms),a=n.query.childrenDOB,q=n.query.dates,Z=!0),!A&&!V&&(e.personalise.title="",e.personalise.id=null),x&&(d=x),N&&(h=N-1),F&&(p=F),z&&(f=z);const H=["5-7 days","10-12 days","14-17 days","21+ days"],Q=[];if(j){const se=t.getCountries.find(P=>P.name.toLowerCase()===j.toLowerCase());se&&Q.push(se.id)}return{searchString:"",foundDestinations:[],step:l,dateStep:1,secondaryDateStep:1,peopleStep:1,groupType:"",hasSpecificDates:Z,fromDate:q.length?new Date(q[0]):null,toDate:q.length?new Date(q[1]):null,dontKnowYear:d,dontKnowMonth:h,dontKnowDuration:y,bookedFlights:null,selectedDestinations:Q,selectedExperiences:[],selectedDestinationItems:[],adultCount:J,childrenCount:w,roomCount:D,childrenDOB:a,minBudget:500,maxBudget:null,selectedCurrencyCode:e.currency?.code||"EUR",firstName:"",lastName:"",email:"",phone:"",promocode:e.referralCode||"",comments:"",communication:"email",presetDestinationRoute:p,presetExperienceRoute:f,isLandingPage:W,durationList:H,presetCountry:j,dateValid:!1}},computed:{...pe(L,{langUrl:"langUrl",currentCurrency:"currency",getReferralCode:"referralCode",getBrowsingHistory:"browsingHistory",getUserPreferences:"getUserPreferences",clientIP:"clientIP",source:"source",medium:"medium",countryCode:"countryCode",personalise:"personalise"}),...pe(De,["getCountries"]),...pe(ce,["getDestinations","getBudgets","getIsSubmitting","getSubmissionResults","getSubmissionError"]),currentStepKey(){return`${this.step}-${this.dateStep}-${this.secondaryDateStep}-${this.hasSpecificDates}`},budgetCurrency(){return ve.find(e=>this.selectedCurrencyCode===e.code)},currenciesList(){return ve},checkBudgetValid(){return this.maxBudget>0},checkChildrenDOB(){return this.childrenCount?this.childrenDOB.filter(e=>e==="").length>0:!1},validForm(){const e=this.firstName!==null&&this.firstName.length,t=this.lastName!==null&&this.lastName.length,n=ke(this.email),d=Ze(this.phone);return e&&t&&n&&d},presetDestinations(){const e=(d,h)=>d.canonicalName.toLowerCase().includes(h.toLowerCase())||d.countryName.toLowerCase().includes(h.toLowerCase()),t=this.getDestinationsWithCountries.filter(d=>(this.presetDestinationRoute&&e(d,this.presetDestinationRoute)&&this.selectedDestinations.findIndex(h=>h===d.id)===-1&&this.selectedDestinations.push(d.id),this.presetCountry&&e(d,this.presetCountry)&&this.selectedDestinations.findIndex(h=>h===d.id)===-1&&this.selectedDestinations.push(d.id),Pe.includes(d.canonicalName))),n=[];for(const d of Pe){const h=t.find(y=>y.canonicalName===d);h&&n.push(h)}return n},getDestinationsWithCountries(){let e=[];return this.getCountries.forEach(t=>{e.push({id:t.id,name:t.name,countryName:t.countryName,canonicalName:t.canonicalName||t.countryName,cardImage:t.cardImage})}),e},presetExperiences(){const e=[];return this.experiences.forEach(t=>{this.presetExperienceRoute&&t&&t.name&&t.name.toLowerCase().includes(this.presetExperienceRoute.toLowerCase())&&(this.selectedExperiences.find(n=>n===t.id)||this.selectedExperiences.push(t.id)),e.push(t)}),e},getFormattedBrowsingHistory(){const e=this.getBrowsingHistory.map(t=>`From: ${t.from||""} To: ${t.to}`).join(` 2`);return this.getBrowsingHistory.length>0?` 3BROWSING HISTORY: 4`+e:""}},watch:{getBudgets(e){e&&(this.minBudget=e.basic,this.maxBudget=null)},selectedDestinations(e,t){if(e.length>t.length){const n=e[e.length-1];if(this.foundDestinations.length>0){const d=this.foundDestinations.find(h=>h.id==n);d&&this.selectedDestinationItems.push(d)}else{const d=this.presetDestinations.find(h=>h.id==n);d&&this.selectedDestinationItems.push(d)}}else{const n=fs(t,e)[0];this.selectedDestinationItems=this.selectedDestinationItems.filter(d=>d.id!=n)}},searchString(e){if(e.length<3)this.foundDestinations=[];else{const t=this.searcher.search(e,{returnMatchData:!0});this.foundDestinations=t.map(n=>n.item)}},$route(e,t){e.query.step?this.step=parseInt(e.query.step):this.step=1,this.step===1&&this.clearSubmissionResults(),this.stepList[this.step-1]==="Dates"&&((e.query.subStepName==="Year"||e.query.subStepName==="SpecificDates")&&(this.dateStep=2,this.secondary
4DateStep=1),(e.query.subStepName==="Month"||e.query.subStepName==="Flights")&&(this.dateStep=2,this.secondaryDateStep=2),e.query.subStepName==="Duration"&&(this.dateStep=2,this.secondaryDateStep=3),e.query.subStepName==="DontKnowChoice"&&(this.dateStep=1,this.secondaryDateStep=1)),this.stepList[this.step-1]==="People"&&(e.query.subStepName==="GroupType"&&(this.peopleStep=1),e.query.subStepName==="PeopleCounter"&&(this.peopleStep=2))}},methods:{...Ue(ce,["initTripPlanning","fetchBudgets","postTripEnquiry","clearSubmissionResults"]),onCurrencyChange(e){},kebabcase:Ae,setRouteParams(){const e={...(this._.provides[U]||this.$route).query};e.step=this.step,e.stepName=this.stepList[e.step-1],this.stepList[this.step-1]==="Dates"?(e.subStep=1,e.subStepName="DontKnowChoice"):this.stepList[this.step-1]==="People"?(e.subStep=1,e.subStepName="GroupType"):(e.subStep&&(e.subStep=null),e.subStepName&&(e.subStepName=null)),this.$router.replace({query:e}),window.history.pushState({},"",this.$router.currentRoute.fullPath)},gotoNextStep(){this.step++,this.setRouteParams(),window.scrollTo({top:0,behavior:"smooth"})},dateDontKnowClick(){this.dateStep++;const e={...(this._.provides[U]||this.$route).query};e.subStep=2,e.subStepName=this.hasSpecificDates?"SpecificDates":"Year",this.$router.replace({query:e}),window.history.pushState({},"",this.$router.currentRoute.fullPath)},secondaryDateClick(e){this.secondaryDateStep++;const t={...(this._.provides[U]||this.$route).query};t.subStep=parseInt(t.subStep)+1,t.subStepName=e,this.$router.replace({query:t}),window.history.pushState({},"",this.$router.currentRoute.fullPath)},peopleNextStep(){this.peopleStep=2;const e={...(this._.provides[U]||this.$route).query};e.subStep=2,e.subStepName="PeopleCounter",this.$router.replace({query:e}),window.history.pushState({},"",this.$router.currentRoute.fullPath)},submit(){const e=this.getBrowsingHistory[this.getBrowsingHistory.length-1],t=(this._.provides[U]||this.$route).query.blogPageSlug||ys(e?.from),n=["wizard"];((this._.provides[U]||this.$route).query.templateId||(this._.provides[U]||this.$route).query.tripId)&&n.push("template"),(t||this.getBrowsingHistory.some(y=>Ke(y.from)||Ke(y.to)))&&n.push("blog");const h={enquiry:{tripId:(this._.provides[U]||this.$route).query.tripId,templateId:(this._.provides[U]||this.$route).query.templateId,sources:n,...t?{blogPageSlug:t}:{},budget:{budgetFrom:this.minBudget,budgetTo:this.maxBudget,selectedBudget:"medium"},dates:{endDate:this.toDate?this.toDate.toISOString().split("T")[0]:null,hasSpecificDates:this.hasSpecificDates,selectedYear:this.dontKnowYear??null,selectedMonth:this.dontKnowMonth??null,startDate:this.fromDate?this.fromDate.toISOString().split("T")[0]:null,duration:this.dontKnowDuration??null},destinations:{selectedDestinations:this.selectedDestinations},enquiryData:{bookedFlights:this.bookedFlights,comments:this.comments+this.getFormattedBrowsingHistory,communicationPreferredMethod:this.communication,country:this.countryCode||null,email:this.email,includeCar:!1,lastname:this.lastName,name:this.firstName,onlyFlexibleCancellation:!1,phone:this.phone,promoCode:this.promocode},experiences:{selectedExperiences:this.selectedExperiences},travellers:{adults:this.adultCount,children:this.childrenDOB,rooms:this.roomCount},source:this.source,medium:this.medium},referralCode:this.getReferralCode,userPreferences:{...this.getUserPreferences(),currency:this.selectedCurrencyCode}};this.postTripEnquiry(h,this.t)}}},"$ZlSFHwwK_X"),aa={key:0,class:"h-full"},la={key:0,class:"h-full"},da={key:1,class:"h-full"},pa={key:1,class:"h-full"};function ua(e,t,n,d,h,y){const l=S("WizardDatesExact"),p=S("WizardStepContainer"),f=S("WizardDatesYear"),z=S("WizardDatesMonth"),F=S("WizardDatesDuration"),x=S("WizardDatesSpecific"),N=S("WizardDatesFlights"),W=S("WizardDestinations"),j=S("WizardExperiences"),A=S("WizardPeopleGroupType"),V=S("WizardPeopleCounter"),J=S("WizardBudget"),w=S("WizardComments"),D=S("WizardDetails");return r(),u("div",null,[e.stepList[e.step-1]==="Dates"?(r(),u("div",aa,[g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.dateStep===1?(r(),k(p,{key:0,"step-length":e.stepList.length,step:e.step,image:"/wizard_dates.webp","image-title":e.victoriaFallsCaption},{default:b(()=>[g(l,{"has-specific-dates":e.hasSpecificDates,"onUpdate:hasSpecificDates":t[0]||(t[0]=a=>e.hasSpecificDates=a),onNextStep:e.dateDontKnowClick},null,8,["has-specific-dates","onNextStep"])]),_:1},8,["step-length","step","image-title"])):$("",!0)]))]),_:1}),e.dateStep===2&&!e.hasSpecificDates?(r(),u("div",la,[g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"}
4,[e.secondaryDateStep===1?(r(),k(p,{key:0,"step-length":e.stepList.length,"image-title":"Sossusvlei, Namibia",step:e.step,image:"/wizard_date_year.webp","is-sub-step":!0},{default:b(()=>[g(f,{"dont-know-year":e.dontKnowYear,"onUpdate:dontKnowYear":t[1]||(t[1]=a=>e.dontKnowYear=a),onNextStep:t[2]||(t[2]=a=>e.secondaryDateClick("Month"))},null,8,["dont-know-year"])]),_:1},8,["step-length","step"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.secondaryDateStep===2?(r(),k(p,{key:0,"is-sub-step":!0,"step-length":e.stepList.length,"image-title":"Kwazulu Natal, South Africa",step:e.step,image:"/wizard_date_month.webp",tooltip:e.$t("w.stepDates.tooltipMonth")},{default:b(()=>[g(z,{"dont-know-year":e.dontKnowYear,"onUpdate:dontKnowYear":t[3]||(t[3]=a=>e.dontKnowYear=a),"dont-know-month":e.dontKnowMonth,"onUpdate:dontKnowMonth":t[4]||(t[4]=a=>e.dontKnowMonth=a),onNextStep:t[5]||(t[5]=a=>e.secondaryDateClick("Duration"))},null,8,["dont-know-year","dont-know-month"])]),_:1},8,["step-length","step","tooltip"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.secondaryDateStep===3?(r(),k(p,{key:0,"is-sub-step":!0,"step-length":e.stepList.length,"image-title":"Eastern Cape, South Africa",step:e.step,image:"/wizard_date_duration.webp",tooltip:e.$t("w.stepDates.d.tooltip")},{default:b(()=>[g(F,{"dont-know-year":e.dontKnowYear,"dont-know-month":e.dontKnowMonth,"dont-know-duration":e.dontKnowDuration,"onUpdate:dontKnowDuration":t[6]||(t[6]=a=>e.dontKnowDuration=a),onNextStep:t[7]||(t[7]=a=>e.gotoNextStep())},null,8,["dont-know-year","dont-know-month","dont-know-duration"])]),_:1},8,["step-length","step","tooltip"])):$("",!0)]))]),_:1})])):$("",!0),e.dateStep===2&&e.hasSpecificDates?(r(),u("div",da,[g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.secondaryDateStep===1?(r(),k(p,{key:0,"is-sub-step":!0,"step-length":e.stepList.length,"image-title":"Kruger National Park, South Africa",step:e.step,tooltip:e.$t("w.stepDates.exactTooltip"),image:"/wizard_dates_specific.webp","has-next-step":!0,onNextStep:t[11]||(t[11]=a=>e.secondaryDateClick("Flights")),"disable-btn":!e.dateValid},{default:b(()=>[g(x,{"from-date":e.fromDate,"onUpdate:fromDate":t[8]||(t[8]=a=>e.fromDate=a),"to-date":e.toDate,"onUpdate:toDate":t[9]||(t[9]=a=>e.toDate=a),"is-valid":e.dateValid,"onUpdate:isValid":t[10]||(t[10]=a=>e.dateValid=a)},null,8,["from-date","to-date","is-valid"])]),_:1},8,["step-length","step","tooltip","disable-btn"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.secondaryDateStep===2?(r(),k(p,{"step-length":e.stepList.length,step:e.step,"is-sub-step":!0,image:"/wizard_flights.webp","image-title":"Walvis Bay, Namibia",key:e.currentStepKey},{default:b(()=>[g(N,{"booked-flights":e.bookedFlights,"onUpdate:bookedFlights":t[12]||(t[12]=a=>e.bookedFlights=a),onNextStep:e.gotoNextStep},null,8,["booked-flights","onNextStep"])]),_:1},8,["step-length","step"])):$("",!0)]))]),_:1})])):$("",!0)])):$("",!0),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.stepList[e.step-1]==="Destinations"?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_destinations.webp","image-title":"Zanzibar Island, Tanzania",tooltip:e.$t("w.stepWhere.tooltip"),"has-next-step":!0,onNextStep:e.gotoNextStep,key:e.currentStepKey,"disable-btn":e.selectedDestinations.length===0},{default:b(()=>[g(W,{"selected-destinations":e.selectedDestinations,"onUpdate:selectedDestinations":t[13]||(t[13]=a=>e.selectedDestinations=a),"preset-destinations":e.presetDestinations},null,8,["selected-destinations","preset-destinations"])]),_:1},8,["step-length","step","tooltip","onNextStep","disable-btn"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.stepList[e.step-1]==="Experiences"?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_experiences.webp","image-title":"Cape Town, South Africa","has-next-step":!0,tooltip:e.$t("w.stepThemeTooltip"),key:e.currentStepKey,onNextStep:e.gotoNextStep},{default:b(()=>[g(j,{"preset-experiences":e.presetExperiences,"selected-experiences":e.selectedExperiences,"onUpdate:selectedExperiences":t[14]||(t[14]=a=>e.selectedExperiences=a)},null,8,["preset-experiences","selected-experiences"])]),_:1},8,["step-length","step","tooltip","onNextStep"])):$("",!0)]))]),_:1}),e.stepList[e.step-1]==="People"?(r(),u("div",pa,[g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.peopleStep===1?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_people_group_type.webp","image-title":"Serengeti, Tanzania",key:e.currentStepKey},{default:b(()=>[g(A,{adults:e.adultCount,"onUpdate:adults":t[15]||(t[15]=a=>e.adultCount=a),children:e.childrenCount,"onUpdate:children":t[16]||(t[16]=a=>e.childrenCount=a),"group-type":e.groupType,"onUpdate:groupType":t[17]||(t[17]=a=>e.groupType=a),onNextStep:e.gotoNextStep,onNextPeopleStep:e.peopleNextStep},null,8,["adults","children","group-type","onNextStep","onNextPeopleStep"])]),_:1},8,["step-length","step"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.peopleStep===2?(r(),k(p,{"step-length":e.stepList.length,step:e.step,"is-sub-step":!0,image:"/wizard_people_counter.webp","image-title":"Masai Mara, Kenya",tooltip:e.$t("w.stepPeople.tooltip"),"has-next-step":!0,onNextStep:e.gotoNextStep,key:e.currentStepKey,"disable-btn":e.checkChildrenDOB},{default:b(()=>[g(V,{adults:e.adultCount,"onUpdate:adults":t[18]||(t[18]=a=>e.adultCount=a),children:e.childrenCount,"onUpdate:children":t[19]||(t[19]=a=>e.childrenCount=a),childrenDOB:e.childrenDOB,"onUpdate:childrenDOB":t[20]||(t[20]=a=>e.childrenDOB=a)},null,8,["adults","children","childrenDOB"])]),_:1},8,["step-length","step","tooltip","onNextStep","disable-btn"])):$("",!0)]))]),_:1})])):$("",!0),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.stepList[e.step-1]==="Budget"?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_budget.webp","image-title":"Nxabega Okavango Tented Camp, Botswana",tooltip:e.$t("w.stepBudget.tooltip"),"has-next-step":!0,"disable-btn":!e.checkBudgetValid,onNextStep:e.gotoNextStep,key:e.currentStepKey},{default:b(()=>[g(J,{"max-budget":e.maxBudget,"onUpdate:maxBudget":t[21]||(t[21]=a=>e.maxBudget=a),"selected-currency-code":e.selectedCurrencyCode,"onUpdate:selectedCurrencyCode":t[22]||(t[22]=a=>
4e.selectedCurrencyCode=a)},null,8,["max-budget","selected-currency-code"])]),_:1},8,["step-length","step","tooltip","disable-btn","onNextStep"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.stepList[e.step-1]==="Personalize"?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_comments.webp","image-title":"Nyungwe Forest National Park, Rwanda",tooltip:e.$t("w.stepComment.tooltip"),"has-next-step":!0,onNextStep:e.gotoNextStep,key:e.currentStepKey},{default:b(()=>[g(w,{comments:e.comments,"onUpdate:comments":t[23]||(t[23]=a=>e.comments=a)},null,8,["comments"])]),_:1},8,["step-length","step","tooltip","onNextStep"])):$("",!0)]))]),_:1}),g(R,{name:"fade-in"},{default:b(()=>[(r(),u("div",{key:e.currentStepKey,class:"fade-in-component"},[e.stepList[e.step-1]==="Your Details"?(r(),k(p,{"step-length":e.stepList.length,step:e.step,image:"/wizard_comments.webp","image-title":"Nyungwe Forest National Park, Rwanda","reviews-step":!0,key:e.currentStepKey,"valid-form":e.validForm,"get-submission-results":e.getSubmissionResults,"get-is-submitting":e.getIsSubmitting,"get-submission-error":e.getSubmissionError,onNextStep:e.submit},{default:b(()=>[g(D,{"first-name":e.firstName,"onUpdate:firstName":t[24]||(t[24]=a=>e.firstName=a),"last-name":e.lastName,"onUpdate:lastName":t[25]||(t[25]=a=>e.lastName=a),communication:e.communication,"onUpdate:communication":t[26]||(t[26]=a=>e.communication=a),email:e.email,"onUpdate:email":t[27]||(t[27]=a=>e.email=a),phone:e.phone,"onUpdate:phone":t[28]||(t[28]=a=>e.phone=a),"promo-code":e.promocode,"onUpdate:promoCode":t[29]||(t[29]=a=>e.promocode=a),"get-submission-results":e.getSubmissionResults,"get-is-submitting":e.getIsSubmitting,"get-submission-error":e.getSubmissionError},null,8,["first-name","last-name","communication","email","phone","promo-code","get-submission-results","get-is-submitting","get-submission-error"])]),_:1},8,["step-length","step","valid-form","get-submission-results","get-is-submitting","get-submission-error","onNextStep"])):$("",!0)]))]),_:1})])}const ma=Object.assign(_(ra,[["render",ua]]),{__name:"PlanEnquiry"}),ca=()=>({trackBookingStep:async(n,d="",h="viewed",y="anonymous")=>{try{await $fetch("/api/metrics/booking-step",{method:"POST",body:{stepName:n,subStepName:d,action:h,userType:y}})}catch(l){console.error("Failed to track booking step:",l)}},trackQuoteGenerated:async(n,d="EUR",h=0,y="",l="anonymous")=>{try{await $fetch("/api/metrics/quote-generated",{method:"POST",body:{destinations:n,currency:d,quoteValue:h,quoteReference:y,userType:l}})}catch(p){console.error("Failed to track quote generation:",p)}}}),Ba=He({__name:"plan-my-trip",setup(e){Ht({bodyAttrs:{class:"hide-nav"}}),ce();const t=L(),n=Ce(),d=Ye(),h=!!n.query.lp,y=n.query.tripId||null,l=n.query.templateId||null,p=!!y||!!l;$e(()=>[n.query.tripId,n.query.templateId],([w,D])=>{const a=w||null,q=D||null;if(!(!!a||!!q)){t.personalise.numberOfNights&&(t.personalise.numberOfNights=null);return}const H=q||a||"",Q=t.personalise.id?String(t.personalise.id):"";if(!H||Q===H)return;(q?Qt({id:q}):Xt({id:a})).then(({data:P})=>{P&&(t.personalise.title=P.title||"",t.personalise.id=P.id,t.personalise.numberOfNights=P.numberOfNights??null)}).catch(P=>{console.error("[plan-my-trip] failed to preload trip context",P)})},{immediate:!0});const f=["Dates","Destinations","Experiences","People","Budget","Personalize","Your Details"],{data:z}=Gt(p?l?`tripTemplate-${l}`:`inspirationalTrip-${y}`:"plan-no-personalise-source",()=>Promise.resolve(null),{getCachedData:Jt,default:()=>null}),F=Se(()=>{let w=[...f];w=w.filter(a=>!(h&&a==="Destinations"));let D=!1;if(p){const a=z.value?.data;if(a){const q=a.overrideTotal||a.monthRate?.rate;D=Number(q)>0}}return w=w.filter(a=>!(!t.usePersonalization&&p&&(["Destinations","Experiences"].includes(a)||a==="Budget"&&D))),w=w.filter(a=>!(t.usePersonalization&&p&&(["Dates","Destinations","Experiences","People"].includes(a)||a==="Budget"&&D))),w.length?w:[...f]}),x=()=>{const w={...n.query};w.step=1;const D=F.value[0];return w.stepName=D,D==="Dates"&&(w.subStep=1,w.subStepName="DontKnowChoice"),D==="People"&&(w.subStep=1,w.subStepName="GroupType"),w};let N=!1,W=null;n.query.step?n.query.step>
4=2?(N=!0,W=x()):(F.value[n.query.step-1]==="Dates"&&(!n.query.stepName||n.query.stepName!=="Dates"||!n.query.subStep||parseInt(n.query.subStep)!==1||!n.query.subStepName||n.query.subStepName!=="DontKnowChoice")&&(N=!0,W=x()),F.value[n.query.step-1]==="People"&&(!n.query.stepName||n.query.stepName!=="People"||!n.query.subStep||parseInt(n.query.subStep)!==1||!n.query.subStepName||n.query.subStepName!=="GroupType")&&(N=!0,W=x())):(N=!0,W=x());const{trackBookingStep:j}=ca(),A=ce(),V=()=>{if(!n.query.stepName)return;const w=n.query.stepName,D=n.query.subStepName||"";if(t.hasTrackedBookingStep(w,D,"viewed"))return;j(w,D,"viewed","anonymous"),t.markBookingStepTracked(w,D,"viewed")};return os(()=>{N&&W&&d.replace({query:W}),Ge(()=>{V()})}),$e(()=>n.query,(w,D)=>{w.stepName!==D?.stepName&&w.stepName&&V()},{deep:!0}),$e(()=>A.getSubmissionResults,w=>{w?.ok&&w?.quote&&(t.hasTrackedBookingStep("Your Details","","completed")||(console.log("Track booking step completion"),j("Your Details","","completed","anonymous"),t.markBookingStepTracked("Your Details","","completed")))},{deep:!0}),Qe().recentReviews,(w,D)=>{const a=Zt,q=ma;return r(),u(T,null,[g(a,{title:w.$t("w.pageTitle"),description:w.$t("w.pageDescription")},null,8,["title","description"]),g(q,{"step-list":me(F)},null,8,["step-list"])],64)}}});export{Ba as default};
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.