1import{_ as Dn}from"./DkdO6WAh.js";import{d as X,J as Y,l as $,k as O,K as te,L as oe,M as ue,h as P,o as w,g as L,N as le,e as W,O as Q,f as d,m as G,P as ne,y as z,p as c,F as Z,r as V,t as H,Q as ae,R as Gr,S as Fr,T as fn,U as de,V as Or,W as Lr,X as pn,c as J,Y as On,Z as Ln,i as Wr,n as Gn,$ as Fn,a0 as Ur,a1 as _n,a2 as vn,a3 as Un,a4 as Bn,a5 as Kn,a6 as jn,a7 as Nn,a8 as ee,a9 as Br,aa as fe,ab as Hn,ac as zn,ad as Kr,ae as Wn,af as Xn,ag as Yn,ah as Qn,w as ce,ai as Zn,aj as he,ak as Vn,al as Jn,b as ea,_ as ra,u as ge,a as ta,am as na,an as aa,ao as sa,ap as ia}from"#entry";import{g as oa}from"./c4PFTV-3.js";import{g as be}from"./CLL4PHZ3.js";import{q as ua}from"./BBAlVfyg.js";import{s as la}from"./CC7DA5fG.js";import"./B4rvOObD.js";import"./Cr-gjc2P.js";const ca={class:"relative"},da={key:0,class:"marketplace__accordion-content"},fa=["data-analytics"],pa=["checked","value","onClick"],_a={class:"marketplace__input-text"},va=X({__name:"TravelStyles",props:{travelStyles:null},setup(a){const e=Y(),t=$(()=>e.chosenTravelStyle),r=$(()=>e.travelStylesArr),s=O(!1),n=O(null),i=O(null);te(()=>{oe(()=>{i.value?.forEach(f=>{t.value.some(o=>f.value===o.name)&&f.setAttribute("checked","true")})})});function u(){s.value=!s.value}return(f,o)=>{const p=ne,_=le,l=ue("click-away");return w(),P("div",null,[L(_,null,{default:W(()=>[Q(d("div",ca,[d("div",{class:"marketplace__accordion-title data-analytics","data-analytics":"marketplace_filter_travel_styles",onClick:o[0]||(o[0]=v=>u())},[o[1]||(o[1]=d("span",null,"Travel style",-1)),L(p,{class:z([{"is-open":c(s)},"marketplace__accordion-title-arrow"]),filled:"",name:"chevron-down"},null,8,["class"])]),c(s)?(w(),P("div",da,[d("div",{ref_key:"innerRef",ref:n,class:"marketplace__accordion-body"},[(w(!0),P(Z,null,V(c(r),v=>(w(),P("div",{key:v.id,class:"marketplace__label-wrap"},[d("label",{class:"marketplace__label data-analytics","data-analytics":`marketplace_styles_${v.id.replaceAll("predefined_","")}`},[d("input",{ref_for:!0,ref_key:"checkboxInputs",ref:i,checked:c(t).some(m=>v.id===m.id),value:v.name,class:"marketplace__input-check",type:"checkbox",onClick:m=>m.target?.checked?c(e).setChosenTravelStyle(v):c(e).removeChosenTravelStyle(v)},null,8,pa),d("span",_a,H(v.name),1)],8,fa)]))),128))],512)])):G("",!0)],512),[[l,()=>s.value=!1]])]),_:1})])}}});var xe,Xr;function ma(){if(Xr)return xe;Xr=1;var a=ae(),e=function(){return a.Date.now()};return xe=e,xe}var ke,Yr;function ya(){if(Yr)return ke;Yr=1;var a=/\s/;function e(t){for(var r=t.length;r--&&a.test(t.charAt(r)););return r}return ke=e,ke}var we,Qr;function ha(){if(Qr)return we;Qr=1;var a=ya(),e=/^\s+/;function t(r){return r&&r.slice(0,a(r)+1).replace(e,"")}return we=t,we}var qe,Zr;function ga(){if(Zr)return qe;Zr=1;var a=ha(),e=Gr(),t=Fr(),r=NaN,s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;function f(o){if(typeof o=="number")return o;if(t(o))return r;if(e(o)){var p=typeof o.valueOf=="function"?o.valueOf():o;o=e(p)?p+"":p}if(typeof o!="string")return o===0?o:+o;o=a(o);var _=n.test(o);return _||i.test(o)?u(o.slice(2),_?2:8):s.test(o)?r:+o}return qe=f,qe}var Te,Vr;function ba(){if(Vr)return Te;Vr=1;var a=Gr(),e=ma(),t=ga(),r="Expected a function",s=Math.max,n=Math.min;function i(u,f,o){var p,_,l,v,m,y,g=0,A=!1,x=!1,q=!0;if(typeof u!="function")throw new TypeError(r);f=t(f)||0,a(o)&&(A=!!o.leading,x="maxWait"in o,l=x?s(t(o.maxWait)||0,f):l,q="trailing"in o?!!o.trailing:q);function b(S){var K=p,N=_;return p=_=void 0,g=S,v=u.apply(N,K),v}function M(S){return g=S,m=setTimeout(E,f),A?b(S):v}function C(S){var K=S-y,N=S-g,re=f-K;return x?n(re,l-N):re}function T(S){var K=S-y,N=S-g;return y===void 0||K>=f||K<0||x&&N>=l}function E(){var S=e();if(T(S))return F(S);m=setTimeout(E,C(S))}function F(S){return m=void 0,q&&p?b(S):(p=_=void 0,v)}function U(){m!==void 0&&clearTimeout(m),g=0,p=y=_=m=void 0}function R(){return m===void 0?v:F(e())}function B(){var S=e(),K=T(S);if(p=arguments,_=this,y=S,K){if(m===void 0)return M(y);if(x)return clearTimeout(m),m=setTimeout(E,f),b(y)}return m===void 0&&(m=setTimeout(E,f)),v}return B.cancel=U,B.flush=R,B}return Te=i,Te}var xa=ba();const mn=fn(xa),ka={class:"w-full relative"},wa={key:0,class:"marketplace__accordion-content"},qa={class:"flex items-center"},Ta={class:"flex items-center"},Aa=X({__name:"Price",setup(a){const e=Y(),t=$(()=>e.chosenMinPrice),r=$(()=>e.chosenMaxPrice),s=O(t.value??void 0),n=O(r.value??void 0);function i(_){return _&&Number.isInteger(_)}const u=mn(()=>
1{if(s.value&&n.value&&i(s.value)&&i(n.value)){if(s.value<=n.value){e.setChosenMinPrice(s.value),e.setChosenMaxPrice(n.value);return}if(s.value>n.value){e.setChosenMaxPrice(void 0);return}}if(s.value&&i(s.value)){e.setChosenMinPrice(s.value),e.setChosenMaxPrice(void 0);return}if(n.value&&i(n.value)){e.setChosenMinPrice(void 0),e.setChosenMaxPrice(n.value);return}if(!s.value&&!n.value){e.setChosenMinPrice(void 0),e.setChosenMaxPrice(void 0);return}},300);de(t,()=>{s.value=t.value}),de(r,()=>{n.value=r.value});const f=O(!1),o=O(null);function p(){f.value=!f.value}return(_,l)=>{const v=ne,m=le,y=ue("click-away");return w(),P("div",null,[L(m,null,{default:W(()=>[Q(d("div",ka,[d("div",{class:"marketplace__accordion-title data-analytics","data-analytics":"marketplace_filter_price",onClick:l[0]||(l[0]=g=>p())},[l[5]||(l[5]=d("span",null,"Budget",-1)),L(v,{class:z([{"is-open":c(f)},"marketplace__accordion-title-arrow"]),filled:"",name:"chevron-down"},null,8,["class"])]),c(f)?(w(),P("div",wa,[d("div",{ref_key:"innerRef",ref:o,class:"marketplace__accordion-body flex items-center"},[d("div",{class:z([{"border-red":c(s)&&(c(n)&&c(s)>c(n)||!i(c(s)))},"flex flex-col bg-white border border-grey-light py-1.5 px-2 rounded-xl flex-grow"])},[l[7]||(l[7]=d("span",{class:"text-12 text-grey-dark font-medium"},"Min budget",-1)),d("div",qa,[l[6]||(l[6]=d("span",{class:"text-14 font-bold mr-0.5"},"$",-1)),Q(d("input",{"onUpdate:modelValue":l[1]||(l[1]=g=>Or(s)?s.value=g:null),class:"text-14 font-bold w-full min-w-[68px]",type:"number",onKeyup:l[2]||(l[2]=g=>c(u)())},null,544),[[Lr,c(s)]])])],2),l[10]||(l[10]=d("div",{class:"w-1.5 h-0.5 bg-black-real mx-2.5 flex-shrink-0"},null,-1)),d("div",{class:z([{"border-red":c(n)&&(c(s)&&c(s)>c(n)||!i(c(n)))},"flex flex-col bg-white border border-grey-light py-1.5 px-2 rounded-xl flex-grow"])},[l[9]||(l[9]=d("span",{class:"text-12 text-grey-dark font-medium"},"Max budget",-1)),d("div",Ta,[l[8]||(l[8]=d("span",{class:"text-14 font-bold mr-0.5"},"$",-1)),Q(d("input",{"onUpdate:modelValue":l[3]||(l[3]=g=>Or(n)?n.value=g:null),class:"text-14 font-bold w-full min-w-[68px]",type:"number",onKeyup:l[4]||(l[4]=g=>c(u)())},null,544),[[Lr,c(n)]])])],2)],512)])):G("",!0)],512),[[y,()=>f.value=!1]])]),_:1})])}}}),Ca=pn(Aa,[["__scopeId","data-v-2eafc5a7"]]),Ia={class:"relative"},Pa={key:0,class:"marketplace__accordion-content"},Ra={class:"marketplace__label"},Sa=["checked","value","onClick"],Ma={class:"marketplace__input-text"},$a=X({__name:"Durations",setup(a){const e=Y(),t=$(()=>e.chosenDuration),r=$(()=>e.durationArr),s=O(!1),n=O(null),i=O(null);te(()=>{oe(()=>{i.value?.forEach(f=>{t.value.some(o=>f.value===o.name)&&f.setAttribute("checked","true")})})});function u(){s.value=!s.value}return(f,o)=>{const p=ne,_=le,l=ue("click-away");return w(),P("div",null,[L(_,null,{default:W(()=>[Q(d("div",Ia,[d("div",{class:"marketplace__accordion-title data-analytics","data-analytics":"marketplace_filter_duration",onClick:o[0]||(o[0]=v=>u())},[o[1]||(o[1]=d("span",null,"Duration",-1)),L(p,{class:z([{"is-open":c(s)},"marketplace__accordion-title-arrow"]),filled:"",name:"chevron-down"},null,8,["class"])]),c(s)?(w(),P("div",Pa,[d("div",{ref_key:"innerRef",ref:n,class:"marketplace__accordion-body"},[(w(!0),P(Z,null,V(c(r),v=>(w(),P("div",{key:v.name,class:"marketplace__label-wrap"},[d("label",Ra,[d("input",{ref_for:!0,ref_key:"checkboxInputs",ref:i,checked:c(t).some(m=>v.name===m.name),value:v.name,class:"marketplace__input-check",type:"checkbox",onClick:m=>m.target?.checked?c(e).setChosenDuration(v):c(e).removeChosenDuration(v)},null,8,Sa),d("span",Ma,H(v.name),1)])]))),128))],512)])):G("",!0)],512),[[l,()=>s.value=!1]])]),_:1})])}}}),Ea={class:"relative"},Da={key:0,class:"marketplace__accordion-content"},Oa={class:"marketplace__label"},La=["checked","value","onClick"],Ga={class:"marketplace__input-text"},Fa=X({__name:"Continents",props:{continents:null},setup(a){const e=Y(),t=$(()=>e.chosenContinent),r=O(!1),s=O(null),n=O(null);te(()=>{oe(()=>{n.value?.forEach(u=>{t.value?.name===u.value&&u.setAttribute("checked","true")})})});function i(){r.value=!r.value}return(u,f)=>{const o=ne,p=le,_=ue("click-away");return w(),P("div",null,[L(p,null,{default:W(()=>[Q(d("div",Ea,[d("div",{class:"marketplace__accordion-title data-analytics",onClick:i,"data-analytics":"marketplace_filter_continents"},[f[0]||(f[0]=d("span",null,"Continents",-1)),L(o,{class:z([{"is-open":c(r)},"marketplace__accordion-title-arrow"]),filled:"",name:"chevron-down"},null,8,["class"])]),c(r)?(w(),P("div",Da,[d("div",{ref_key:"innerRef",ref:s,class:"marketplace__accordion-body"},[(w(!0),P(Z,null,V(a.continents,l=>(w(),P("div",{key:l.name,class:"marketplace__label-wrap"},[d("label",Oa,[d("input",{ref_for:!0,ref_key:"radioInputs",ref:n,checked:c(t)?.name===l.name,value:l.name,class:"marketplace__input-radio",name:"continent",type:"radio",onClick:v=>c(e).setChosenContinent(l)},null,8,La),d("span",Ga,H(l.name),1)])]))),128))],512)])):G("",!0)],512),[[_,()=>r.value=!1]])]),_:1})])}}}),Ua={class:"relative"},Ba={key:0,class:"marketplace__accordion-content"},Ka={class:"flex mb-4"},ja={class:"marketplace__label"},Na=["checked","value","onClick"],Ha={class:"marketplace__input-text"},za=X({__name:"Countries",props:{countries:null},setup(a){const e=a,t=Y(),r=$(()=>t.chosenContinent),s=$(()=>t.chosenCountries);function n(m){return m.filter(y=>y.name.toLowerCase().includes(i.value.toLowerCase()))}const i=O(""),u=O(!1),f=O(null),o=O(null),p=O(!(n(r.value?r.value?.countries:e.countries).length>20)),_=$(()=>p.value?n(r.value?r.value?.countries:e.countries):n(r.value?r.value?.countries.slice(0,20):e.countries.slice(0,20)));te(()=>{oe(()=>{o.value?.forEach(m=>{s.value.some(y=>m.value===y.name)&&m.setAttribute("checked","true")})})}),de([r,i],()=>{p.value=!(n(r.value?r.value?.countries:e.countries).length>20)});function l(){u.value=!u.value}function v(m){t.setChosenCountries(m)}return(m,y)=>{const g=ne,A=le,x=ue("click-away");return w(),P("div",null,[L(A,null,{default:W(()=>[Q(d("div",Ua,[d("div",{class:"marketplace__accordion-title data-analytics","data-analytics":"marketplace_filter_countries",onClick:l},[y[3]||(y[3]=d("span",null,"Countries",-1)),L(g,{class:z([{"is-open":c(u)},"marketplace__accordion-title-arrow"]),filled:"",name:"chevron-down"},null,8,["class"])]),c(u)?(w(),P("div",Ba,[d("div",{ref_key:"innerRef",ref:f,class:"marketplace__accordion-body"},[d("div",Ka,[Q(d("input",{"onUpdate:modelValue":y[0]||(y[0]=q=>Or(i)?i.value=q:null),class:"w-full rounded px-2 py-1 outline-none border border-grey hover:border-primary focus:border-primary min-w-[160px]",placeholder:"Find country"},null,512),[[Lr,c(i)]]),d("span",{class:z([c(i)?"border-primary text-primary curs
1or-pointer bg-white":"border-grey text-grey","uppercase w-auto flex items-center justify-center font-bold text-12 ml-2 py-0.5 px-3 border rounded"]),onClick:y[1]||(y[1]=q=>i.value="")},"X",2)]),(w(!0),P(Z,null,V(c(_),q=>(w(),P("div",{key:q.name,class:"marketplace__label-wrap"},[d("label",ja,[d("input",{ref_for:!0,ref_key:"checkboxInputs",ref:o,checked:c(s).some(b=>q.name===b.name),value:q.name,class:"marketplace__input-check",type:"checkbox",onClick:b=>b.target?.checked?v(q):c(t).setChosenCountries(q)},null,8,Na),d("span",Ha,H(q.name),1)])]))),128)),c(p)?G("",!0):(w(),P("div",{key:0,class:"flex items-center text-16 font-bold mt-4 cursor-pointer",onMouseup:y[2]||(y[2]=q=>p.value=!0)},[y[4]||(y[4]=d("span",null,"show more",-1)),L(g,{class:"ml-2 w-6 h-6 text-black-real",filled:"",name:"chevron-down"})],32))],512)])):G("",!0)],512),[[x,()=>u.value=!1]])]),_:1})])}}});var j=(a=>(a.PriceLow="Budget low to high",a.PriceHigh="Budget high to low",a.DurationLow="Duration low to high",a.DurationHigh="Duration high to low",a.RecentlyAdded="Recently Added",a))(j||{});const Wa={class:"h-full"},Xa=["data-analytics","onClick"],yn=X({__name:"Sorting",props:{sortingItems:null},setup(a){const e=O(j.RecentlyAdded),t=Y();t.setChosenSorting(e.value);function r(s){e.value=s,t.setChosenSorting(s)}return(s,n)=>{const i=On;return w(),P("div",Wa,[a.sortingItems.length?(w(),J(i,{key:0,items:a.sortingItems,value:c(e),class:"marketplace__sort-dropdown flex items-stretch data-analytics","data-analytics":"marketplace_sorting",placeholder:"Filter by country"},{"header-text":W(()=>[...n[0]||(n[0]=[d("span",{class:"font-normal mr-2"},"Sort by:",-1)])]),option:W(({item:u})=>[d("p",{class:z([{"is-active":c(e)===u},"data-analytics"]),"data-analytics":`marketplace_filter_sorting_${c(Ln)(u)}`,onClick:f=>r(u)},H(u),11,Xa)]),_:1},8,["items","value"])):G("",!0)])}}}),Ya={key:0,class:"mb-5 xl:hidden"},Qa={class:"flex flex-col -order-1 xl:order-none xl:px-2"},Za={class:"flex mt-5 xl:mt-0 flex-col xl:px-2"},Va={class:"flex mt-5 xl:mt-0 flex-col xl:px-2"},Ja={class:"flex mt-5 xl:mt-0 flex-col -order-1 xl:order-none xl:px-2"},es={class:"flex mt-5 xl:mt-0 flex-col -order-1 xl:order-none xl:px-2"},rs={class:"flex mt-5 xl:mt-0 flex-col xl:px-2"},ts=X({__name:"Filter",props:{continents:null,countries:null,sortingItems:null,travelStyles:null},setup(a){const t=a.countries.sort((s,n)=>s.name.localeCompare(n.name)),r=O(!1);return(s,n)=>{const i=ne,u=va,f=Ca,o=$a,p=Fa,_=za,l=yn;return w(),P("div",null,[n[3]||(n[3]=d("span",{class:"hidden xl:block font-bold text-16 mb-3"},"Filter trip ideas",-1)),d("div",null,[c(r)?G("",!0):(w(),P("div",Ya,[d("div",{class:"flex items-center btn btn-ghost cursor-pointer max-w-[296px] mx-auto py-4",onClick:n[0]||(n[0]=v=>r.value=!0)},[L(i,{class:"w-3 h-3 mr-2 text-primary",filled:"",name:"filter"}),n[2]||(n[2]=d("span",{class:"uppercase text-12 font-bold text-primary leading-4"},"FILTERS",-1))])]))]),d("div",{class:z([c(r)?"top-0 h-full py-12 px-8":"bottom-0","fixed left-0 overflow-y-auto xl:overflow-visible bg-white w-full z-50 xl:relative xl:border-none xl:p-0"])},[d("div",{class:z([c(r)?"flex":"hidden","xl:flex flex-col xl:flex-row xl:-mx-2"])},[d("div",Qa,[L(u,{"travel-styles":a.travelStyles,class:"bg-grey-lighter rounded-xl"},null,8,["travel-styles"])]),d("div",Za,[L(f,{class:"bg-grey-lighter rounded-xl"})]),d("div",Va,[L(o,{class:"bg-grey-lighter rounded-xl"})]),d("div",Ja,[L(p,{continents:a.continents,class:"bg-grey-lighter rounded-xl"},null,8,["continents"])]),d("div",es,[L(_,{countries:c(t),class:"bg-grey-lighter rounded-xl"},null,8,["countries"])]),d("div",rs,[L(l,{sortingItems:a.sortingItems,class:"-order-1 mb-2 ml-auto sm:order-none sm:mb-0 bg-grey-lighter rounded-xl hidden"},null,8,["sortingItems"])]),d("span",{class:"btn btn-ghost border-black-real text-black-real text-12 font-bold rounded-6 py-1.5 w-[80px] mx-auto mt-12 xl:hidden",onClick:n[1]||(n[1]=v=>r.value=!1)}," accept ")],2)],2)])}}}),ns=pn(ts,[["__scopeId","data-v-a3033355"]]),as={class:"flex flex-wrap -m-1"},ss={key:0,class:"p-1"},is={class:"text-12 font-bold whitespace-nowrap"},os=["onClick"],us={class:"text-12 font-bold whitespace-nowrap"},ls=["onClick"],cs={class:"text-12 font-bold whitespace-nowrap"},ds=["onClick"],fs={class:"text-12 font-bold whitespace-nowrap"}
1,ps={key:4,class:"p-1"},_s={class:"text-12 font-bold whitespace-nowrap"},vs={key:5,class:"p-1"},ms={class:"text-12 font-bold whitespace-nowrap"},ys=X({__name:"FilterChips",setup(a){const e=Y(),t=$(()=>e.chosenContinent),r=$(()=>e.chosenCountries),s=$(()=>e.chosenDuration),n=$(()=>e.chosenTravelStyle),i=$(()=>e.chosenMinPrice),u=$(()=>e.chosenMaxPrice);return(f,o)=>(w(),P("div",null,[d("div",as,[c(t)&&!c(r).length?(w(),P("div",ss,[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:o[0]||(o[0]=p=>c(e).setChosenContinent(void 0))},[d("span",is,H(c(t).name),1),o[3]||(o[3]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))])])):G("",!0),c(r).length?(w(!0),P(Z,{key:1},V(c(r),p=>(w(),P("div",{key:p.name,class:"p-1"},[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:_=>c(e).setChosenCountries(p)},[d("span",us,H(p.name),1),o[4]||(o[4]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))],8,os)]))),128)):G("",!0),c(n).length?(w(!0),P(Z,{key:2},V(c(n),p=>(w(),P("div",{key:p.id,class:"p-1"},[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:_=>c(e).removeChosenTravelStyle(p)},[d("span",cs,H(p.name),1),o[5]||(o[5]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))],8,ls)]))),128)):G("",!0),c(s).length?(w(!0),P(Z,{key:3},V(c(s),p=>(w(),P("div",{key:p.name,class:"p-1"},[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:_=>c(e).removeChosenDuration(p)},[d("span",fs,H(p.name),1),o[6]||(o[6]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))],8,ds)]))),128)):G("",!0),c(i)?(w(),P("div",ps,[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:o[1]||(o[1]=p=>c(e).setChosenMinPrice(void 0))},[d("span",_s,"Min. price: "+H(c(i)),1),o[7]||(o[7]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))])])):G("",!0),c(u)?(w(),P("div",vs,[d("div",{class:"flex justify-between border border-black rounded-full px-2 py-1.5 cursor-pointer group hover:text-primary duration-150",onClick:o[2]||(o[2]=p=>c(e).setChosenMaxPrice(void 0))},[d("span",ms,"Max. price: "+H(c(u)),1),o[8]||(o[8]=d("span",{class:"flex items-center justify-center w-4 h-4 rounded-full bg-black text-white text-[10px] ml-2.5 group-hover:bg-primary transition-all duration-150"}," X ",-1))])])):G("",!0)])]))}}),hs={key:0},gs={class:"flex flex-col sm:flex-row sm:justify-between sm:items-center"},bs={class:"text-14 mr-8"},xs={class:"font-bold"},ks={class:"mt-3"},ws={class:"flex flex-wrap items-stretch -mx-2 -mb-2"},qs={key:0,class:"flex justify-center mt-10 w-full"},Ts=X({__name:"Trips",props:{trips:null,sortingItems:null},setup(a){const e=a,t=O(!1),r=O(e.trips),s=Y(),n=O(12),i=$(()=>s.loadMoreCountForTrips),u=$(()=>n.value*i.value);return te(()=>{oe(()=>{t.value=n.value*i.value<(e.trips?.length||0),r.value=e.trips})}),de([()=>e.trips,i],()=>{t.value=n.value*i.value<(e.trips?.length||0),r.value=e.trips}),(f,o)=>{const p=yn,_=Gn,l=Fn;return w(),P("div",null,[c(r)?.length?(w(),P("div",hs,[d("div",gs,[d("p",bs,[d("span",xs,H(c(r).length),1),o[1]||(o[1]=Wr(" curated tailor-made trips ",-1))]),L(p,{sortingItems:a.sortingItems,class:"-order-1 mb-2 ml-auto sm:order-none sm:mb-0"},null,8,["sortingItems"])]),d("div",ks,[d("div",ws,[(w(!0),P(Z,null,V(c(r).slice(0,c(u)),(v,m)=>(w(),P("div",{key:v.title+m,class:"w-full sm:w-1/2 md:w-1/3 xl:w-1/4 p-2"},[(w(),J(_,{itinerary:v,key:v.title+m},null,8,["itinerary"]))]))),128))]),c(t)?(w(),P("div",qs,[d("button",{class:"btn btn-ghost w-80","data-analytics":"cta_load_more",onClick:o[0]||(o[0]=v=>
vendor: 14,666 bytes, line 1
1c(s).setLoadMoreCountForTrips(c(i)+1))}," Load more ⤠")])):G("",!0)])])):G("",!0),!c(r)?.length||!c(t)?(w(),J(l,{key:1,class:"btn btn-primary mx-auto mt-12 py-4 max-w-[296px]","data-analytics":"btn_cta_trip_no_found"},{default:W(()=>[...o[2]||(o[2]=[Wr(" Can't find a trip? Click here ",-1)])]),_:1})):G("",!0)])}}});var Ae,Jr;function As(){if(Jr)return Ae;Jr=1;var a=Ur();function e(){this.__data__=new a,this.size=0}return Ae=e,Ae}var Ce,et;function Cs(){if(et)return Ce;et=1;function a(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}return Ce=a,Ce}var Ie,rt;function Is(){if(rt)return Ie;rt=1;function a(e){return this.__data__.get(e)}return Ie=a,Ie}var Pe,tt;function Ps(){if(tt)return Pe;tt=1;function a(e){return this.__data__.has(e)}return Pe=a,Pe}var Re,nt;function Rs(){if(nt)return Re;nt=1;var a=Ur(),e=_n(),t=vn(),r=200;function s(n,i){var u=this.__data__;if(u instanceof a){var f=u.__data__;if(!e||f.length<r-1)return f.push([n,i]),this.size=++u.size,this;u=this.__data__=new t(f)}return u.set(n,i),this.size=u.size,this}return Re=s,Re}var Se,at;function hn(){if(at)return Se;at=1;var a=Ur(),e=As(),t=Cs(),r=Is(),s=Ps(),n=Rs();function i(u){var f=this.__data__=new a(u);this.size=f.size}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=s,i.prototype.set=n,Se=i,Se}var Me,st;function Ss(){if(st)return Me;st=1;function a(e,t){for(var r=-1,s=e==null?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}return Me=a,Me}var $e,it;function gn(){if(it)return $e;it=1;var a=Un(),e=Ss(),t=Bn(),r=1,s=2;function n(i,u,f,o,p,_){var l=f&r,v=i.length,m=u.length;if(v!=m&&!(l&&m>v))return!1;var y=_.get(i),g=_.get(u);if(y&&g)return y==u&&g==i;var A=-1,x=!0,q=f&s?new a:void 0;for(_.set(i,u),_.set(u,i);++A<v;){var b=i[A],M=u[A];if(o)var C=l?o(M,b,A,u,i,_):o(b,M,A,i,u,_);if(C!==void 0){if(C)continue;x=!1;break}if(q){if(!e(u,function(T,E){if(!t(q,E)&&(b===T||p(b,T,f,o,_)))return q.push(E)})){x=!1;break}}else if(!(b===M||p(b,M,f,o,_))){x=!1;break}}return _.delete(i),_.delete(u),x}return $e=n,$e}var Ee,ot;function Ms(){if(ot)return Ee;ot=1;var a=ae(),e=a.Uint8Array;return Ee=e,Ee}var De,ut;function $s(){if(ut)return De;ut=1;function a(e){var t=-1,r=Array(e.size);return e.forEach(function(s,n){r[++t]=[n,s]}),r}return De=a,De}var Oe,lt;function Es(){if(lt)return Oe;lt=1;var a=Kn(),e=Ms(),t=jn(),r=gn(),s=$s(),n=Nn(),i=1,u=2,f="[object Boolean]",o="[object Date]",p="[object Error]",_="[object Map]",l="[object Number]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object Symbol]",A="[object ArrayBuffer]",x="[object DataView]",q=a?a.prototype:void 0,b=q?q.valueOf:void 0;function M(C,T,E,F,U,R,B){switch(E){case x:if(C.byteLength!=T.byteLength||C.byteOffset!=T.byteOffset)return!1;C=C.buffer,T=T.buffer;case A:return!(C.byteLength!=T.byteLength||!R(new e(C),new e(T)));case f:case o:case l:return t(+C,+T);case p:return C.name==T.name&&C.message==T.message;case v:case y:return C==T+"";case _:var S=s;case m:var K=F&i;if(S||(S=n),C.size!=T.size&&!K)return!1;var N=B.get(C);if(N)return N==T;F|=u,B.set(C,T);var re=r(S(C),S(T),F,U,R,B);return B.delete(C),re;case g:if(b)return b.call(C)==b.call(T)}return!1}return Oe=M,Oe}var Le,ct;function Ds(){if(ct)return Le;ct=1;function a(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}return Le=a,Le}var Ge,dt;function Os(){if(dt)return Ge;dt=1;var a=Ds(),e=ee();function t(r,s,n){var i=s(r);return e(r)?i:a(i,n(r))}return Ge=t,Ge}var Fe,ft;function Ls(){if(ft)return Fe;ft=1;function a(e,t){for(var r=-1,s=e==null?0:e.length,n=0,i=[];++r<s;){var u=e[r];t(u,r,e)&&(i[n++]=u)}return i}return Fe=a,Fe}var Ue,pt;function Gs(){if(pt)return Ue;pt=1;function a(){return[]}return Ue=a,Ue}var Be,_t;function Fs(){if(_t)return Be;_t=1;var a=Ls(),e=Gs(),t=Object.prototype,r=t.propertyIsEnumerable,s=Object.getOwnPropertySymbols,n=s?function(i){return i==null?[]:(i=Object(i),a(s(i),function(u){return r.call(i,u)}))}:e;return Be=n,Be}var Ke,vt;function Us(){if(vt)return Ke;vt=1;function a(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}return Ke=a,Ke}var je,mt;function Bs(){if(mt)return je;mt=1;var a=Br(),e=fe(),t="[object Arguments]";function r(s){return e(s)&&a(s)==t}return je=r,je}var Ne,yt;function bn(){if(yt)return Ne;yt=1;var a=Bs(),e=fe(),t=Object.prototype,r=t.hasOwnProperty,s=t.propertyIsEnumerable,n=a((function(){return arguments})())?a:function(i){return e(i)&&r.call(i,"callee")&&!s.call(i,"callee")};return Ne=n,Ne}var se={exports:{}},He,ht;function Ks(){if(ht)return He;ht=1;function a(){return!1}return He=a,He}se.exports;var gt;function xn(){return gt||(gt=1,(function(a,e){var t=ae(),r=Ks(),s=e&&!e.nodeType&&e,n=s&&!0&&a&&!a.nodeType&&a,i=n&&n.exports===s,u=i?t.Buffer:void 0,f=u?u.isBuffer:void 0,o=f||r;a.exports=o})(se,se.exports)),se.exports}var ze,bt;function kn(){if(bt)return ze;bt=1;var a=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(r,s){var n=typeof r;return s=s??a,!!s&&(n=="number"||n!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<s}return ze=t,ze}var We,xt;function jr(){if(xt)return We;xt=1;var a=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=a}return We=e,We}var Xe,kt;function js(){if(kt)return Xe;kt=1;var a=Br(),e=jr(),t=fe(),r="[object Arguments]",s="[object Array]",n="[object Boolean]",i="[object Date]",u="[object Error]",f="[object Function]",o="[object Map]",p="[object Number]",_="[object Object]",l="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",g="[object ArrayBuffer]",A="[object DataView]",x="[object Float32Array]",q="[object Float64Array]",b="[object Int8Array]",M="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",E="[object Uint8ClampedArray]",F="[object Uint16Array]",U="[object Uint32Array]",R={};R[x]=R[q]=R[b]=R[M]=R[C]=R[T]=R[E]=R[F]=R[U]=!0,R[r]=R[s]=R[g]=R[n]=R[A]=R[i]=R[u]=R[f]=R[o]=R[p]=R[_]=R[l]=R[v]=R[m]=R[y]=!1;function B(S){return t(S)&&e(S.length)&&!!R[a(S)]}return Xe=B,Xe}var Ye,wt;function Ns(){if(wt)return Ye;wt=1;function a(e){return function(t){return e(t)}}return Ye=a,Ye}var ie={exports:{}};ie.exports;var qt;function Hs(){return qt||(qt=1,(function(a,e){var t=Hn(),r=e&&!e.nodeType&&e,s=r&&!0&&a&&!a.nodeType&&a,n=s&&s.exports===r,i=n&&t.process,u=(function(){try{var f=s&&s.require&&s.require("util").types;return f||i&&i.binding&&i.binding("util")}catch{}})();a.exports=u})(ie,ie.exports)),ie.exports}var Qe,Tt;function wn(){if(Tt)return Qe;Tt=1;var a=js(),e=Ns(),t=Hs(),r=t&&t.isTypedArray,s=r?e(r):a;return Qe=s,Qe}var Ze,At;function zs(){if(At)return Ze;At=1;var a=Us(),e=bn(),t=ee(),r=xn(),s=kn(),n=wn(),i=Object.prototype,u=i.hasOwnProperty;function f(o,p){var _=t(o),l=!_&&e(o),v=!_&&!l&&r(o),m=!_&&!l&&!v&&n(o),y=_||l||v||m,g=y?a(o.length,String):[],A=g.length;for(var x in o)(p||u.call(o,x))&&!(y&&(x=="length"||v&&(x=="offset"||x=="parent")||m&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||s(x,A)))&&g.push(x);return g}return Ze=f,Ze}var Ve,Ct;function Ws(){if(Ct)return Ve;Ct=1;var a=Object.prototype;function e(t){var r=t&&t.constructor,s=typeof r=="function"&&r.prototype||a;return t===s}return Ve=e,Ve}var Je,It;function Xs(){if(It)return Je;It=1;function a(e,t){return function(r){return e(t(r))}}return Je=a,Je}var er,Pt;function Ys(){if(Pt)return er;Pt=1;var a=Xs(),e=a(Object.keys,Object);return er=e,er}var rr,Rt;function Qs(){if(Rt)return rr;Rt=1;var a=Ws(),e=Ys(),t=Object.prototype,r=t.hasOwnProperty;function s(n){if(!a(n))return e(n);var i=[];for(var u in Object(n))r.call(n,u)&&u!="constructor"&&i.push(u);return i}return rr=s,rr}var tr,St;function Zs(){if(St)return tr;St=1;var a=zn(),e=jr();function t(r){return r!=null&&e(r.length)&&!a(r)}return tr=t,tr}var nr,Mt;function qn(){if(Mt)return nr;Mt=1;var a=zs(),e=Qs(),t=Zs();function r(s){return t(s)?a(s):e(s)}return nr=r,nr}var ar,$t;function Vs(){if($t)return ar;$t=1;var a=Os(),e=Fs(),t=qn();function r(s){return a(s,t,e)}return ar=r,ar}var sr,Et;function Js(){if(Et)return sr;Et=1;var a=Vs(),e=1,t=Object.prototype,r=t.hasOwnProperty;function s(n,i,u,f,o,p){var _=u&e,l=a(n),v=l.length,m=a(i),y=m.length;if(v!=y&&!_)return!1;for(var g=v;g--;){var A=l[g];if(!(_?A in i:r.call(i,A)))return!1}var x=p.get(n),q=p.get(i);if(x&&q)return x==i&&q==n;var b=!0;p.set(n,i),p.set(i,n);for(var M=_;++g<v;){A=l[g];var C=n[A],T=i[A];if(f)var E=_?f(T,C,A,i,n,p):f(C,T,A,n,i,p);if(!(E===void 0?C===T||o(C,T,u,f,p):E)){b=!1;break}M||(M=A=="constructor")}if(b&&!M){var F=n.constructor,U=i.constructor;F!=U&&"constructor"in n&&"constructor"in i&&!(typeof F=="function"&&F instanceof F&&typeof U=="function"&&U instanceof U)&&(b=!1)}return p.delete(n),p.delete(i),b}return sr=s,sr}var ir,Dt;function ei(){if(Dt)return ir;Dt=1;var a=Kr(),e=ae(),t=a(e,"DataView");return ir=t,ir}var or,Ot;function ri(){if(Ot)return or;Ot=1;var a=Kr(),e=ae(),t=a(e,"Promise");return or=t,or}var ur,Lt;function ti(){if(Lt)return ur;Lt=1;var a=Kr(),e=ae(),t=a(e,"WeakMap");return ur=t,ur}var lr,Gt;function ni(){if(Gt)return lr;Gt=1;var a=ei(),e=_n(),t=ri(),r=Wn(),s=ti(),n=Br(),i=Xn(),u="[object Map]",f="[object Object]",o="[object Promise]",p="[object Set]",_="[object WeakMap]",l="[object DataView]",v=i(a),m=i(e),y=i(t),g=i(r),A=i(s),x=n;return(a&&x(new a(new ArrayBuffer(1)))!=l||e&&x(new e)!=u||t&&x(t.resolve())!=o||r&&x(new r)!=p||s&&x(new s)!=_)&&(x=function(q){var b=n(q),M=b==f?q.constructor:void 0,C=M?i(M):"";if(C)switch(C){case v:return l;case m:return u;case y:return o;case g:return p;case A:return _}return b}),lr=x,lr}var cr,Ft;function ai(){if(Ft)return cr;Ft=1;var a=hn(),e=gn(),t=Es(),r=Js(),s=ni(),n=ee(),i=xn(),u=wn(),f=1,o="[object Arguments]",p="[object Array]",_="[object Object]",l=Object.prototype,v=l.hasOwnProperty;function m(y,g,A,x,q,b){var M=n(y),C=n(g),T=M?p:s(y),E=C?p:s(g);T=T==o?_:T,E=E==o?_:E;var F=T==_,U=E==_,R=T==E;if(R&&i(y)){if(!i(g))return!1;M=!0,F=!1}if(R&&!F)return b||(b=new a),M||u(y)?e(y,g,A,x,q,b):t(y,g,T,A,x,q,b);if(!(A&f)){var B=F&&v.call(y,"__wrapped__"),S=U&&v.call(g,"__wrapped__");if(B||S){var K=B?y.value():y,N=S?g.value():g;return b||(b=new a),q(K,N,A,x,b)}}return R?(b||(b=new a),r(y,g,A,x,q,b)):!1}return cr=m,cr}var dr,Ut;function Tn(){if(Ut)return dr;Ut=1;var a=ai(),e=fe();function t(r,s,n,i,u){return r===s?!0:r==null||s==null||!e(r)&&!e(s)?r!==r&&s!==s:a(r,s,n,i,t,u)}return dr=t,dr}var fr,Bt;function si(){if(Bt)return fr;Bt=1;var a=hn(),e=Tn(),t=1,r=2;function s(n,i,u,f){var o=u.length,p=o,_=!f;if(n==null)return!p;for(n=Object(n);o--;){var l=u[o];if(_&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++o<p;){l=u[o];var v=l[0],m=n[v],y=l[1];if(_&&l[2]){if(m===void 0&&!(v in n))return!1}else{var g=new a;if(f)var A=f(m,y,v,n,i,g);if(!(A===void 0?e(y,m,t|r,f,g):A))return!1}}return!0}return fr=s,fr}var pr,Kt;function An(){if(Kt)return pr;Kt=1;var a=Gr();function e(t){return t===t&&!a(t)}return pr=e,pr}var _r,jt;function ii(){if(jt)return _r;jt=1;var a=An(),e=qn();function t(r){for(var s=e(r),n=s.length;n--;){var i=s[n],u=r[i];s[n]=[i,u,a(u)]}return s}return _r=t,_r}var vr,Nt;function Cn(){if(Nt)return vr;Nt=1;function a(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}return vr=a,vr}var mr,Ht;function oi(){if(Ht)return mr;Ht=1;var a=si(),e=ii(),t=Cn();function r(s){var n=e(s);return n.length==1&&n[0][2]?t(n[0][0],n[0][1]):function(i){return i===s||a(i,s,n)}}return mr=r,mr}var yr,zt;function Nr(){if(zt)return yr;zt=1;var a=ee(),e=Fr(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function s(n,i){if(a(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||e(n)?!0:r.test(n)||!t.test(n)||i!=null&&n in Object(i)}return yr=s,yr}var hr,Wt;function ui(){if(Wt)return hr;Wt=1;var a=vn(),e="Expected a function";function t(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError(e);var n=function(){var i=arguments,u=s?s.apply(this,i):i[0],f=n.cache;if(f.has(u))return f.get(u);var o=r.apply(this,i);return n.cache=f.set(u,o)||f,o};return n.cache=new(t.Cache||a),n}return t.Cache=a,hr=t,hr}var gr,Xt;function li(){if(Xt)return gr;Xt=1;var a=ui(),e=500;function t(r){var s=a(r,function(i){return n.size===e&&n.clear(),i}),n=s.cache;return s}return gr=t,gr}var br,Yt;function ci(){if(Yt)return br;Yt=1;var a=li(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,r=a(function(s){var n=[];return s.charCodeAt(0)===46&&n.push(""),s.replace(e,function(i,u,f,o){n.push(f?o.replace(t,"$1"):u||i)}),n});return br=r,br}var xr,Qt;function In(){if(Qt)return xr;Qt=1;var a=ee(),e=Nr(),t=ci(),r=Yn();function s(n,i){return a(n)?n:e(n,i)?[n]:t(r(n))}return xr=s,xr}var kr,Zt;function pe(){if(Zt)return kr;Zt=1;var a=Fr();function e(t){if(typeof t=="string"||a(t))return t;var r=t+"";return r=="0"&&1/t==-1/0?"-0":r}return kr=e,kr}var wr,Vt;function Pn(){if(Vt)return wr;Vt=1;var a=In(),e=pe();function t(r,s){s=a(s,r);for(var n=0,i=s.length;r!=null&&n<i;)r=r[e(s[n++])];return n&&n==i?r:void 0}return wr=t,wr}var qr,Jt;function di(){if(Jt)return qr;Jt=1;var a=Pn();function e(t,r,s){var n=t==null?void 0:a(t,r);return n===void 0?s:n}return qr=e,qr}var Tr,en;function fi(){if(en)return Tr;en=1;function a(e,t){return e!=null&&t in Object(e)}return Tr=a,Tr}var Ar,rn;function pi(){if(rn)return Ar;rn=1;var a=In(),e=bn(),t=ee(),r=kn(),s=jr(),n=pe();function i(u,f,o){f=a(f,u);for(var p=-1,_=f.length,l=!1;++p<_;){var v=n(f[p]);if(!(l=u!=null&&o(u,v)))break;u=u[v]}return l||++p!=_?l:(_=u==null?0:u.length,!!_&&s(_)&&r(v,_)&&(t(u)||e(u)))}return Ar=i,Ar}var Cr,tn;function _i(){if(tn)return Cr;tn=1;var a=fi(),e=pi();function t(r,s){return r!=null&&e(r,s,a)}return Cr=t,Cr}var Ir,nn;function vi(){if(nn)return Ir;nn=1;var a=Tn(),e=di(),t=_i(),r=Nr(),s=An(),n=Cn(),i=pe(),u=1,f=2;function o(p,_){return r(p)&&s(_)?n(i(p),_):function(l){var v=e(l,p);return v===void 0&&v===_?t(l,p):a(_,v,u|f)}}return Ir=o,Ir}var Pr,an;function mi(){if(an)return Pr;an=1;function a(e){return e}return Pr=a,Pr}var Rr,sn;function yi(){if(sn)return Rr;sn=1;function a(e){return function(t){return t?.[e]}}return Rr=a,Rr}var Sr,on;function hi(){if(on)return Sr;on=1;var a=Pn();function e(t){return function(r){return a(r,t)}}return Sr=e,Sr}var Mr,un;function gi(){if(un)return Mr;un=1;var a=yi(),e=hi(),t=Nr(),r=pe();function s(n){return t(n)?a(r(n)):e(n)}return Mr=s,Mr}var $r,ln;function bi(){if(ln)return $r;ln=1;var a=oi(),e=vi(),t=mi(),r=ee(),s=gi();function n(i){return typeof i=="function"?i:i==null?t:typeof i=="object"?r(i)?e(i[0],i[1]):a(i):s(i)}return $r=n,$r}var Er,cn;function xi(){if(cn)return Er;cn=1;var a=bi(),e=Qn();function t(r,s){return r&&r.length?e(r,a(s,2)):[]}return Er=t,Er}var ki=xi();const dn=fn(ki),Dr=a=>
1a?.replace(/"/g,"").split(", ").filter(e=>e.length),wi={class:"marketplace__header-factory"},qi={class:"content-container wide lg:px-20"},Ti={class:"flex flex-col xl:flex-row mt-12"},Ai={class:"w-full"},Ci={class:"content-container wide mt-8"},Ii="FAQs About trips",Li=X({__name:"trips",async setup(a){let e,t;const r=ta();let{data:s}=([e,t]=ce(()=>ge("trips-marketplace",()=>r.getUploadFile("22732"))),e=await e,t(),e);const n=Zn(),{data:i}=([e,t]=ce(()=>ge("countries-with-top-images",()=>na("continentsWithCountriesAndTopImages",{countriesSort:["name:asc"],continentsSort:["popularityRating:asc"],countriesPagination:{pageSize:100},tripsPagination:{pageSize:100}}).then(h=>h.data?.continents?.data.map(k=>({name:k.attributes?.name,countries:k.attributes?.countries?.data.filter(I=>I.attributes?.trips?.data?.length).map(I=>({name:I.attributes?.name,countryCode:I.attributes?.countryCode,trips:aa(I.attributes?.trips?.data.map(D=>D.attributes))}))}))))),e=await e,t(),e),u=$(()=>{let h=[];return i.value?.forEach(k=>{k.countries&&(h=[...h,...k.countries])}),h}),f=$(()=>{let h=[];return u.value?.forEach(k=>{k?.trips&&(h=[...h,...k.trips])}),dn(h,"meteorId")}),o=[j.PriceLow,j.PriceHigh,j.DurationLow,j.DurationHigh,j.RecentlyAdded],p=[{id:he.PredefinedTrip,name:"Privately Guided Trip"},{id:he.PredefinedSelfGuided,name:"Self-Guided Trip"},{id:he.PredefinedGroupTours,name:"Group Trip"}],_=[{name:"1-3 Days",duration:[1,3]},{name:"4-7 Days",duration:[4,7]},{name:"8-14 Days",duration:[8,14]},{name:"15 Days+",duration:[15]}],l=Y();l.setChosenSorting(j.RecentlyAdded),l.setDurationArr(_),l.setTravelStylesArr(p);const v=be(n.query.continent),m=Dr(n.query.countries),y=be(n.query.minPrice),g=be(n.query.maxPrice),A=Dr(n.query.duration),x=Dr(n.query.travelStyle),q=$(()=>l.chosenContinent),b=$(()=>l.chosenCountries),M=$(()=>l.chosenDuration),C=$(()=>l.chosenTravelStyle),T=$(()=>l.chosenMinPrice),E=$(()=>l.chosenMaxPrice),F=$(()=>l.chosenSorting);function U(h,k){let I="";return h.forEach(D=>{I+=`${D[k]}, `}),I}te(()=>{!T.value&&y&&l.setChosenMinPrice(Number(y)),!E.value&&g&&l.setChosenMaxPrice(Number(g)),!q.value&&v&&i.value?.forEach(h=>{h.name===v&&l.setChosenContinent(h)}),!b.value.length&&m&&m.forEach(h=>{l.setChosenCountries(u.value.find(k=>k.name===h))}),!M.value.length&&A&&A.forEach(h=>{const k=_.find(I=>I.name===h);k&&l.setChosenDuration(k)}),!C.value.length&&x&&x.forEach(h=>{const k=p.find(I=>I.name===h);k&&l.setChosenTravelStyle(k)})});function R(h,k){return k.length?h.filter(I=>k.some(D=>D.duration[1]?I.durationInDays>=D.duration[0]&&I.durationInDays<=D.duration[1]:I.durationInDays>=D.duration[0])):h}function B(h,k){return k.length?h.filter(I=>k.some(D=>I.tripType===D.id)):h}function S(h,k,I){return h.filter(D=>{const me=k?D.price>=k:!0,ye=I?D.price<=I:!0;return me&&ye})}function K(h,k){return k?.length?k.flatMap(I=>I.trips):h}function N(h,k){return k?.countries?.length?k.countries.flatMap(I=>I.trips):h}function re(h,k){switch(k){case j.PriceLow:return[...h].sort((I,D)=>I.price-D.price);case j.PriceHigh:return[...h].sort((I,D)=>D.price-I.price);case j.DurationLow:return[...h].sort((I,D)=>I.durationInDays-D.durationInDays);case j.DurationHigh:return[...h].sort((I,D)=>D.durationInDays-I.durationInDays);case j.RecentlyAdded:return[...h].sort((I,D)=>new Date(D.createdAt).getTime()-new Date(I.createdAt).getTime());default:return[...h]}}const Rn=$(()=>{let h=f.value;return h=N(h,q.value),h=K(h,b.value),h=R(h,M.value),h=B(h,C.value),h=S(h,T.value,E.value),h=dn(h,"meteorId"),re(h,F.value)}),_e=mn(()=>{l.setLoadMoreCountForTrips(1);const k=["/trips/",`${q.value?`&continent=${encodeURIComponent(q.value.name)}`:""}`,`${b.value.length?`&countries=${encodeURIComponent(U(b.value,"name"))}`:""}`,`${M.value.length?`&duration=${encodeURIComponent(U(M.value,"name"))}`:""}`,`${C.value.length?`&travelStyle=${encodeURIComponent(U(C.value,"name"))}`:""}`,`${T.value?`&minPrice=${encodeURIComponent(T.value)}`:""}`,`${E.value?`&maxPrice=${encodeURIComponent(E.value)}`:""}`].join("").split("/trips/").join("/trips/?").replaceAll("?&","?");Vn(k)},300),{data:Hr}=([e,t]=ce(()=>
1ge("head-params-trips-marketplace",()=>ua("/head-params/trips").findOne())),e=await e,t(),e),ve=([e,t]=ce(()=>oa({uri:`${Hr.value?.uri}`,title:Hr.value.title},s.value)),e=await e,t(),e);Jn({title:ve.title||"",ogTitle:ve.title||""}),ea({...ve}),la("trip-marketplace");const Sn=[{question:"What kinds of trips can I find on Rough Guides?",response:'<span class="mb-2 block">Not everyone travels the same way, and our trips reflect that. Maybe youâre planning a week of great food, a slow escape somewhere quiet, or a big family trip that keeps everyone happy. We cover 90+ destinations around the world, and whatever your style, youâll find ideas here.</span><span class="mb-2 block">Each of the 700+ trips you see listed here is created by real people who are local to the area. You can browse by destination, trip type, or length of the trip.</span><span class="mb-2 block">Once you find something that interests you, one of our Rough Guides local travel experts can tweak the details to fit exactly what youâre looking for.</span><span class="mb-2 block">Because these trips are built by locals, youâll skip the tourist traps and connect with the places you visit, while supporting independent guides, small businesses, and family-run stays.</span>'},{question:"Can I customize the trips shown on Rough Guides?",response:`<span class="mb-2 block">Yes, every trip is fully customizable. The trips you see here are starting points, built by Rough Guidesâ local experts to give you a sense of whatâs possible. Once youâve found a trip you like, you can tweak it as much or as little as you want.</span><span class="mb-2 block">You might swap a mountain hike for a cooking class, add an extra beach day, upgrade your hotels, or slow the pace to give yourself more downtime. Some travelers ask for more active days, others want to focus on food, or plan around family needs. Whatever you're imagining, your local expert will adjust the plan to fit.</span><span class="mb-2 block">Youâll receive your first personalized itinerary within minutes of sending an inquiry. After that, you can speak directly with up to three local experts to compare ideas, ask questions, and keep refining the plan until it feels like your trip.</span><span class="mb-2 block">The process is flexible and collaborative, with real local knowledge behind every suggestion.</span>`},{question:"How do I book a Rough Guides trip I like?",response:`<span class="mb-2 block">Start by choosing a trip and sending an inquiry. Within minutes, youâll receive a sample itinerary created using 40 years of Rough Guides experience to give you a sense of what your trip could look like.</span><span class="mb-2 block">Shortly after, weâll connect you with up to three local travel experts who live in your destination. Each one will design a personalized trip from scratch, based on your interests, pace, and budget. You can compare their ideas, message them directly, and shape the itinerary together.</span><span class="mb-2 block">Once it feels right, you confirm the booking with a deposit. You can pay in full or spread it out in installments.</span><span class="mb-2 block">From there, your expert handles the rest. Theyâll take care of the bookings, stay in touch, and help out if anything changes while you're away.</span>`},{question:"What's included in a Rough Guides trip package?",response:'<span class="mb-2 block">Every Rough Guides trip is different, but most packages include your accommodation, in-country transport, activities, and 24/7 support from your local expert. Some trips also include airport transfers, entrance fees, guided tours, and a few meals. It depends on the itinerary.</span><span class="mb-2 block">International flights and travel insurance are usually not included. Youâll book those separately to keep flexibility with airlines, timing, and loyalty points.</span><span class="mb-2 block">When you get your personalized quote, your local expert will clearly outline whatâs included and whatâs not. There are no hidden fees or surprises. Youâll see exactly what youâre paying for before you book.</span><span class="mb-2 block">Your payment is held securely by Rough Guides and only released to your expert shortly before your trip begins. So you can book with confidence, knowing youâre fully supported from the moment you book to the moment you return.</span>'},{question:"Can I combine different Rough Guides trips into one itinerary?",response:'<span class="mb-2 block">Yes, you absolutely can. Your expert can merge highlights from multiple Rough Guides trips into one cohesive itinerary, fine-tuning pacing, routes, and accommodation so it all fits together.</sp
1an><span class="mb-2 block">The only real limit is logistics. Two countries in two weeks usually feels just right, enough variety without spending too much time in transit. Some regions, like Central Europe, are easy to link by train. Others need a bit more coordination, which might mean more time at airports or on the road.</span><span class="mb-2 block">Thatâs where your local expert makes a real difference. Theyâll handle the planning so you donât have to think about connections or transfers, just where you want to go next.</span>'}];return(h,k)=>{const I=Dn,D=ns,me=ys,ye=Ts,Mn=sa,$n=ia,En=ra;return w(),J(En,null,{header:W(()=>[d("div",wi,[L(I,{title:"Private trips & tours by local experts",subtitle:"Customize or have an expert craft one from scratch"})])]),default:W(()=>[c(i)&&c(f)?(w(),J(Mn,{key:0,class:"page-type-trips-marketplace"},{default:W(()=>[d("div",qi,[d("div",null,[c(i)?(w(),J(D,{key:0,continents:c(i),countries:c(q)?c(q).countries:c(u),"sorting-items":o,"travel-styles":p,onClick:k[0]||(k[0]=zr=>c(_e)()),onKeyup:k[1]||(k[1]=zr=>c(_e)())},null,8,["continents","countries"])):G("",!0)]),d("div",Ti,[d("div",Ai,[c(q)||c(b)?.length||c(M).length||c(C).length||c(T)||c(E)?(w(),J(me,{key:0,class:z({"mb-4 md:mb-8":c(q)||c(b)?.length||c(M).length||c(T)||c(E)}),onClick:k[2]||(k[2]=zr=>c(_e)())},null,8,["class"])):G("",!0),L(ye,{"sorting-items":o,trips:c(Rn)},null,8,["trips"])])])])]),_:1})):G("",!0),d("div",Ci,[L($n,{questions:Sn,title:Ii})])]),_:1})}}});
1export{Li 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.