1import{C as gt}from"./ContentLayout-BiwKvq4s.js";import{cu as ft,cv as ht,v as X,I as ae,a3 as G,cw as mt,cx as bt,a4 as Y,h as ne,E as xt,F as yt,a7 as Ye,H as Ct,bp as kt,T as St,cy as Dt,cz as wt,cA as Ft,cB as $t,cC as Ot,t as Et,cD as Rt,cE as Tt}from"./main-kBzK4eIG.js";import{d as H,N as z,u as s,G as ce,C as o,f as O,A as d,r as E,c as k,o as Ie,_ as Le,z as h,Z as se,E as C,F as M,V as B,D as re,O as R,w as ie,n as It,aa as Ve,m as Lt}from"./vendor-primevue-CeEACqX_.js";import{u as j}from"./vendor-i18n-G4dYfk6F.js";import{g as Se,E as Xe,T as Mt,n as De,f as Pt,a as He,b as je,c as Je,F as Ze,d as _e,R as At,e as et,p as Nt,h as Ut,i as Bt,j as Vt,k as qt,s as qe,D as zt,l as Kt}from"./query-BzF6d9i6.js";import{h as Wt}from"./index-CR_Y1Yp8.js";import{b as Qt}from"./shared-BzrwLmtI.js";import"./vendor-fontawesome-CHTXNQM2.js";import"./vendor-luxon-D-syak89.js";import"./vendor-pako-DwGzBETv.js";import"./vendor-posthog-B2YXpdD_.js";import"./vendor-query-B7KhvNMU.js";import"./presentation-ByQKK81l.js";import"./file-download-idIKGCAR.js";import"./http-CCRDJRhH.js";const Gt={class:"v-experiences-mobile-search-drawer","data-testid":"experiences-mobile-search-drawer"},Yt=H({__name:"MobileSearchDrawer",props:{visible:{type:Boolean}},emits:["update:visible"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j(),e=()=>{r("update:visible",!1)};return(a,v)=>(d(),z(ft,{visible:t.visible,header:s(n)("search.editYourSearch"),direction:"top",closeOnClickOutside:!0,headerClass:"v-experiences-mobile-search-drawer__header","onUpdate:visible":v[0]||(v[0]=c=>r("update:visible",c)),onOnClose:e},{default:ce(()=>[o("section",Gt,[O(ht,{onSubmit:e})])]),_:1},8,["visible","header"]))}}),Xt=X(Yt,[["__scopeId","data-v-9c0d5736"],["__file","MobileSearchDrawer.vue"]]),Ht={key:1,class:"v-experiences-results-toolbar__summary","data-testid":"experiences-results-summary"},jt={class:"v-experiences-results-toolbar__sort"},Jt={class:"v-experiences-results-toolbar__sort-label"},Zt=["aria-expanded","aria-label"],es=["aria-label"],ts=["aria-checked","data-testid","onClick"],ze=500,ss=H({__name:"ResultsToolbar",props:{count:{},loading:{type:Boolean},searchLabel:{},selectedSortOptionId:{}},emits:["updateSort"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j(),e=E(null),a=E(!1),v=k(()=>n("experiencesPage.tours.resultsSummary",{count:t.count>=ze?`${ze}+`:new Intl.NumberFormat().format(t.count),search:t.searchLabel})),c=k(()=>Se(t.selectedSortOptionId)),m=k(()=>n(c.value.labelKey)),S=()=>{a.value=!a.value},$=()=>{a.value=!1},D=_=>{_!==t.selectedSortOptionId&&r("updateSort",_),$()},y=_=>{!a.value||!e.value||_.target instanceof Node&&(e.value.contains(_.target)||$())};return Ie(()=>{document.addEventListener("pointerdown",y)}),Le(()=>{document.removeEventListener("pointerdown",y)}),(_,w)=>(d(),h("section",{ref_key:"rootRef",ref:e,class:re(["v-experiences-results-toolbar",{"v-experiences-results-toolbar--skeleton":t.loading}]),"data-testid":"experiences-results-toolbar"},[t.loading?(d(),z(s(se),{key:0,width:"15rem",height:"1.5rem","data-testid":"experiences-results-summary-skeleton"})):(d(),h("p",Ht,C(v.value),1)),o("div",jt,[o("span",Jt,C(s(n)("experiencesPage.tours.sort.label"))+" : ",1),o("button",{type:"button",class:"v-experiences-results-toolbar__sort-trigger","aria-expanded":a.value,"aria-label":s(n)("experiencesPage.tours.sort.triggerAriaLabel"),"data-testid":"experiences-sort-trigger",onClick:S},[o("span",null,C(m.value),1),O(ae,{name:"chevron-down",width:10,height:8,"aria-hidden":"true",class:"v-experiences-results-toolbar__sort-icon"})],8,Zt),a.value?(d(),h("div",{key:0,class:"v-experiences-results-toolbar__menu",role:"menu","aria-label":s(n)("experiencesPage.tours.sort.menuAriaLabel"),"data-testid":"experiences-sort-menu"},[(d(!0),h(M,null,B(s(Xe),T=>(d(),h("button",{key:T.id,type:"button",class:re(["v-experiences-results-toolbar__menu-option",{"is-active":T.id===_.selectedSortOptionId}]),role:"menuitemradio","aria-checked":T.id===_.selectedSortOptionId,"data-testid":`experiences-sort-option-${T.id}`,onClick:I=>D(T.id)},C(s(n)(T.labelKey)),11,ts))),128))],8,es)):R("",!0)])],2))}}),as=X(ss,[["__scopeId","data-v-98826157"],["__file","ResultsToolbar.vue"]]),rs={class:"v-experiences-filter-chip-row","data-testid":"experiences-filter-chip-row"},is={key:0,class:"v-experiences-filter-chip-row__count","data-testid":"experiences-filter-count"},os={key:0,class:"v-experiences-filter-chip-row__applied","data-testid":"experiences-applied-filters"},ls=["aria-label","data-testid","onClick"],ns={key:1,class:"v-experiences-filter-chip-row__categories","data-testid":"experiences-category-quick-filters"},cs=["data-testid","onClick"],us=["aria-label"],ds=["aria-label"],Te=1,ps=160,Ke=350,vs=H({__name:"ToursFilterChipRow",props:{activeNonDateFilterCount:{},appliedChips:{},categoryChips:{},dateLabel:{},hasActiveDateFilter:{type:Boolean}},emits:["openDateFilter","openFilters","removeAppliedChip","toggleCategory"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j(),e=E(null),a=E(!1),v=E(!1);let c=null;const m=()=>{const y=e.value;if(!y){a.value=!1,v.value=!1;return}const _=y.scrollWidth-y.clientWidth,w=_>Te;a.value=w&&y.scrollLeft>Te,v.value=w&&_-y.scrollLeft>Te},S=()=>{It(m)},$=y=>{const _=e.value;if(!_)return;const w=Math.max(_.clientWidth*.8,ps),T=y*w;typeof _.scrollBy=="function"?_.scrollBy({behavior:"smooth",left:T}):(_.scrollLeft+=T,m()),window.setTimeout(m,Ke)},D=()=>{const y=e.value;y&&(typeof y.scrollTo=="function"?y.scrollTo({behavior:"smooth",left:0}):(y.scrollLeft=0,m()),window.setTimeout(m,Ke))};return ie(()=>[...t.appliedChips.map(y=>`${y.id}:${y.label}`),...t.categoryChips.map(y=>`${y.id}:${y.label}`)].join("|"),()=>{D(),S()},{flush:"post"}),ie(e,(y,_)=>{_&&c?.unobserve(_),y&&c?.observe(y),S()},{flush:"post"}),Ie(()=>{S(),typeof ResizeObserver<"u"&&(c=new ResizeObserver(m),e.value&&c.observe(e.value)),window.addEventListener("resize",S)}),Le(()=>{c?.disconnect(),window.removeEventListener("resize",S)}),(y,_)=>(d(),h("div",rs,[o("button",{type:"button",class:"v-experiences-filter-chip-row__chip v-ex
1periences-filter-chip-row__chip--control","data-testid":"experiences-filters-trigger",onClick:_[0]||(_[0]=w=>r("openFilters"))},[O(ae,{name:"filter",width:17,height:16,"aria-hidden":"true",class:"v-experiences-filter-chip-row__icon"}),o("span",null,C(s(n)("experiencesPage.tours.filters.trigger")),1),t.activeNonDateFilterCount?(d(),h("span",is,C(t.activeNonDateFilterCount),1)):R("",!0)]),o("button",{type:"button",class:re(["v-experiences-filter-chip-row__chip v-experiences-filter-chip-row__chip--control",{"v-experiences-filter-chip-row__chip--active":t.hasActiveDateFilter}]),"data-testid":"experiences-date-trigger",onClick:_[1]||(_[1]=w=>r("openDateFilter"))},[_[4]||(_[4]=o("i",{class:"pi pi-calendar v-experiences-filter-chip-row__icon"},null,-1)),o("span",null,C(t.dateLabel),1)],2),t.appliedChips.length||t.categoryChips.length?(d(),h("div",{key:0,class:re(["v-experiences-filter-chip-row__scroll-shell",{"v-experiences-filter-chip-row__scroll-shell--can-scroll-left":a.value,"v-experiences-filter-chip-row__scroll-shell--can-scroll-right":v.value}])},[o("div",{ref_key:"scrollableChipsRef",ref:e,class:"v-experiences-filter-chip-row__scrollable","data-testid":"experiences-scrollable-filter-chips",onScrollPassive:m},[t.appliedChips.length?(d(),h("div",os,[(d(!0),h(M,null,B(t.appliedChips,w=>(d(),h("button",{key:w.id,type:"button",class:"v-experiences-filter-chip-row__chip v-experiences-filter-chip-row__chip--applied","aria-label":s(n)("experiencesPage.tours.filters.removeChipAriaLabel",{filter:w.label}),"data-testid":`applied-filter-chip-${w.id}`,onClick:T=>r("removeAppliedChip",w.id)},[o("span",null,C(w.label),1),_[5]||(_[5]=o("span",{"aria-hidden":"true",class:"v-experiences-filter-chip-row__remove"}," Ã ",-1))],8,ls))),128))])):R("",!0),t.categoryChips.length?(d(),h("div",ns,[(d(!0),h(M,null,B(t.categoryChips,w=>(d(),h("button",{key:w.id,type:"button",class:"v-experiences-filter-chip-row__chip v-experiences-filter-chip-row__chip--suggestion","data-testid":`category-quick-filter-${w.id}`,onClick:T=>r("toggleCategory",w.id)},C(w.label),9,cs))),128))])):R("",!0)],544),a.value?(d(),h("button",{key:0,type:"button",class:"v-experiences-filter-chip-row__scroll-button v-experiences-filter-chip-row__scroll-button--left","aria-label":s(n)("experiencesPage.tours.filters.scrollLeftAriaLabel"),"data-testid":"experiences-filter-chips-scroll-left",onClick:_[2]||(_[2]=w=>$(-1))},[O(ae,{name:"chevron-left",width:18,height:18,"aria-hidden":"true"})],8,us)):R("",!0),v.value?(d(),h("button",{key:1,type:"button",class:"v-experiences-filter-chip-row__scroll-button v-experiences-filter-chip-row__scroll-button--right","aria-label":s(n)("experiencesPage.tours.filters.scrollRightAriaLabel"),"data-testid":"experiences-filter-chips-scroll-right",onClick:_[3]||(_[3]=w=>$(1))},[O(ae,{name:"chevron-right",width:18,height:18,"aria-hidden":"true"})],8,ds)):R("",!0)],2)):R("",!0)]))}}),_s=X(vs,[["__scopeId","data-v-7cd5b0b1"],["__file","ToursFilterChipRow.vue"]]),gs=["disabled","aria-expanded","aria-label"],fs=["aria-label"],hs=["data-testid","aria-checked","onClick"],ms={key:0,class:"pi pi-check","aria-hidden":"true"},bs=H({__name:"MobileSortDropdown",props:{disabled:{type:Boolean},selectedSortOptionId:{}},emits:["updateSort"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j(),e=E(null),a=E(!1),v=k(()=>Se(t.selectedSortOptionId)),c=()=>{t.disabled||(a.value=!a.value)},m=()=>{a.value=!1},S=D=>{m(),r("updateSort",D)},$=D=>{!a.value||!e.value||D.target instanceof Node&&(e.value.contains(D.target)||m())};return Ie(()=>{document.addEventListener("pointerdown",$)}),Le(()=>{document.removeEventListener("pointerdown",$)}),(D,y)=>(d(),h("div",{ref_key:"rootRef",ref:e,class:"v-experiences-mobile-sort-dropdown"},[o("button",{type:"button",class:"v-experiences-mobile-sort-dropdown__trigger",disabled:t.disabled,"aria-expanded":a.value,"aria-label":s(n)("experiencesPage.tours.mobile.sortAriaLabel"),"data-testid":"experiences-mobile-sort-trigger",onClick:c},[y[0]||(y[0]=o("i",{class:"pi pi-sort-alt","aria-hidden":"true"},null,-1)),o("span",null,C(s(n)("sort.labelShort")),1)],8,gs),a.value?(d(),h("div",{key:0,class:"v-experiences-mobile-sort-dropdown__menu","aria-label":s(n)("experiencesPage.tours.sort.menuAriaLabel"),"data-testid":"experiences-mobile-sort-menu",role:"menu"},[(d(!0),h(M,null,B(s(Xe),_=>
1(d(),h("button",{key:_.id,type:"button",class:re(["v-experiences-mobile-sort-dropdown__option",{"is-active":_.id===v.value.id}]),"data-testid":`experiences-mobile-sort-option-${_.id}`,role:"menuitemradio","aria-checked":_.id===v.value.id,onClick:w=>S(_.id)},[o("span",null,C(s(n)(_.labelKey)),1),_.id===v.value.id?(d(),h("i",ms)):R("",!0)],10,hs))),128))],8,fs)):R("",!0)],512))}}),xs=X(bs,[["__scopeId","data-v-af76c0ae"],["__file","MobileSortDropdown.vue"]]),ys={class:"v-experiences-tours-mobile-controls","data-testid":"experiences-mobile-controls"},Cs=["aria-label"],ks={class:"v-experiences-tours-mobile-controls__search-copy"},Ss={class:"v-experiences-tours-mobile-controls__search-value"},Ds={class:"v-experiences-tours-mobile-controls__search-label"},ws={class:"v-experiences-tours-mobile-controls__actions"},Fs={key:0,class:"v-experiences-tours-mobile-controls__action-count","data-testid":"experiences-mobile-filter-count"},$s=H({__name:"ToursMobileControls",props:{activeNonDateFilterCount:{},hasActiveDateFilter:{type:Boolean},hasTours:{type:Boolean},loading:{type:Boolean},selectedSortOptionId:{},textSearch:{}},emits:["openSearch","openDateFilter","openFilters","updateSort"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j();return(e,a)=>(d(),h("section",ys,[o("button",{type:"button",class:"v-experiences-tours-mobile-controls__search-card","aria-label":s(n)("experiencesPage.tours.mobile.searchSummaryAriaLabel"),"data-testid":"experiences-mobile-search-summary",onClick:a[0]||(a[0]=v=>r("openSearch"))},[o("div",ks,[o("strong",Ss,C(t.textSearch||s(n)("experiencesPage.search.placeholder")),1),o("span",Ds,C(s(n)("experiencesPage.tours.mobile.searchLabel")),1)]),O(ae,{name:"edit",width:18,height:18,"aria-hidden":"true",class:"v-experiences-tours-mobile-controls__search-icon"})],8,Cs),o("div",ws,[o("button",{type:"button",class:re(["v-experiences-tours-mobile-controls__action-button",{"v-experiences-tours-mobile-controls__action-button--active":t.hasActiveDateFilter}]),"data-testid":"experiences-mobile-date-trigger",onClick:a[1]||(a[1]=v=>r("openDateFilter"))},[O(ae,{name:"calendar",width:16,height:16,"aria-hidden":"true",class:"v-experiences-tours-mobile-controls__toolbar-icon"}),o("span",null,C(s(n)("experiencesPage.tours.filters.date.trigger")),1)],2),o("button",{type:"button",class:"v-experiences-tours-mobile-controls__action-button","data-testid":"experiences-mobile-filters-trigger",onClick:a[2]||(a[2]=v=>r("openFilters"))},[O(ae,{name:"filter",width:16,height:16,"aria-hidden":"true",class:"v-experiences-tours-mobile-controls__toolbar-icon"}),o("span",null,C(s(n)("experiencesPage.tours.filters.trigger")),1),t.activeNonDateFilterCount?(d(),h("span",Fs,C(t.activeNonDateFilterCount),1)):R("",!0)]),O(xs,{disabled:t.loading||!t.hasTours,"selected-sort-option-id":t.selectedSortOptionId,onUpdateSort:a[3]||(a[3]=v=>r("updateSort",v))},null,8,["disabled","selected-sort-option-id"])])]))}}),Os=X($s,[["__scopeId","data-v-30b642f8"],["__file","ToursMobileControls.vue"]]),Es={key:0,class:"v-experiences-tours-results-state__error",role:"alert"},Rs={key:1,class:"v-experiences-tours-results-state__grid"},Ts=["data-testid"],Is={class:"v-experiences-tours-results-state__skeleton-media"},Ls={class:"v-experiences-tours-results-state__skeleton-body"},Ms={class:"v-experiences-tours-results-state__skeleton-content"},Ps={class:"v-experiences-tours-results-state__skeleton-title"},As={class:"v-experiences-tours-results-state__skeleton-footer","data-testid":"experiences-results-skeleton-footer"},Ns={class:"v-experiences-tours-results-state__skeleton-rating"},Us={class:"v-experiences-tours-results-state__skeleton-price"},Bs={key:2,class:"v-experiences-tours-results-state__empty"},Vs={key:3,class:"v-experiences-tours-results-state__grid"},qs={key:4,class:"v-experiences-tours-results-state__load-more"},zs=["disabled"],Ks=H({__name:"ToursResultsState",props:{currency:{},error:{},hasMore:{type:Boolean},loading:{type:Boolean},loadingMore:{type:Boolean},tourContextQuery:{},tours:{}},emits:["loadMore"],setup(f,{emit:p}){const t=f,r=p,{t:n}=j(),e=(a,v)=>{G(Y.TOUR_CARD_CLICKED,{...bt(t.tourContextQuery.textSearch),...mt(a),currency:a.price?.currency||t.currency,rank_position:v+1})};return(a,v)=>(d(),h(M,null,[t.error?(d(),h("p",Es,C(t.error),1)):t.loading?(d(),h("div",Rs,[(d(),h(M,null,B(6,c=>o("div",{key:`sk-${c}`,class:"v-experiences-tours-results-state__skeleton-card","data-testid":`experiences-results-skeleton-card-${
1c}`},[o("div",Is,[O(s(se),{width:"100%",height:"100%",borderRadius:"0","data-testid":"experiences-results-skeleton-media"})]),o("div",Ls,[o("div",Ms,[o("div",Ps,[O(s(se),{width:"88%",height:"1.25rem"}),O(s(se),{width:"68%",height:"1.25rem"})])]),o("div",As,[o("div",Ns,[O(s(se),{width:"2rem",height:"0.875rem"}),O(s(se),{shape:"circle",size:"0.8125rem"}),O(s(se),{width:"3.5rem",height:"0.875rem"})]),o("div",Us,[O(s(se),{width:"5.5rem",height:"1.5rem"})])])])],8,Ts)),64))])):t.tours.length?(d(),h("div",Vs,[(d(!0),h(M,null,B(t.tours,(c,m)=>(d(),z(Mt,{key:c.id,tour:c,currency:t.currency,to:{name:"experiences-tour",params:{id:String(c.id)},query:t.tourContextQuery},onClick:S=>e(c,m)},null,8,["tour","currency","to","onClick"]))),128))])):(d(),h("p",Bs,C(s(n)("experiencesPage.tours.empty")),1)),!t.loading&&!t.error&&t.tours.length&&t.hasMore?(d(),h("div",qs,[o("button",{type:"button",class:"v-experiences-tours-results-state__load-more-button",disabled:t.loadingMore,"data-testid":"experiences-load-more",onClick:v[0]||(v[0]=c=>r("loadMore"))},[o("span",null,C(t.loadingMore?s(n)("experiencesPage.tours.loadMore.loading"):s(n)("experiencesPage.tours.loadMore.label")),1),t.loadingMore?R("",!0):(d(),z(ae,{key:0,name:"chevron-down",width:8,height:4,"aria-hidden":"true",class:"v-experiences-tours-results-state__load-more-icon"}))],8,zs)])):R("",!0)],64))}}),Ws=X(Ks,[["__scopeId","data-v-2d873fb2"],["__file","ToursResultsState.vue"]]),Qs={key:0,class:"v-experiences-date-filter-dialog","data-testid":"experiences-date-filter-modal"},Gs={class:"v-experiences-date-filter-dialog__shortcuts"},Ys={key:0,class:"v-experiences-date-filter-dialog__footer"},Xs=H({__name:"DateFilterDialog",props:{visible:{type:Boolean},dateRange:{}},emits:["update:visible","apply"],setup(f,{emit:p}){const{locale:t,t:r}=j(),n=f,e=p,a=E(void 0),v=l=>{const u=l.getFullYear(),i=`${l.getMonth()+1}`.padStart(2,"0"),F=`${l.getDate()}`.padStart(2,"0");return`${u}-${i}-${F}`},c=l=>{if(!l)return null;const[u,i,F]=l.split("-").map(Number);return!u||!i||!F?null:new Date(u,i-1,F)},m=()=>{const l=new Date;return new Date(l.getFullYear(),l.getMonth(),l.getDate())},S=()=>{const l=m();return l.setDate(l.getDate()+1),l},$=k(()=>v(m())),D=k(()=>v(S())),y=k(()=>m()),_=k(()=>ne.isMobile?1:2),w=k(()=>({id:t.value,masks:{weekdays:yt(t.value)?"WWWW":"WW"},firstDayOfWeek:xt(t.value)})),T=k(()=>a.value?.start?v(a.value.start):""),I=k(()=>a.value?.end?v(a.value.end):""),A=()=>{const l=c(n.dateRange.from),u=c(n.dateRange.to||n.dateRange.from);a.value=l&&u?{start:l,end:u}:void 0};ie(()=>n.visible,l=>{l&&A()},{immediate:!0}),ie(()=>n.dateRange,()=>{n.visible||A()},{deep:!0});const P=l=>{a.value={start:l,end:l}},V=()=>{a.value=void 0,e("apply",{})},Z=()=>{const l=a.value?.start,u=a.value?.end||l,i=l?v(l):"",F=u?v(u):"";if(i&&F&&i>F){e("apply",{from:F,to:i});return}e("apply",{...i?{from:i}:{},...F?{to:F}:{}})};return(l,u)=>(d(),z(s(Ye),{visible:n.visible,title:s(r)("experiencesPage.tours.filters.date.title"),bodyClass:"v-experiences-date-filter-dialog__body-shell",contentClass:"v-experiences-date-filter-dialog__content-shell",desktopWidthPx:760,"onUpdate:visible":u[3]||(u[3]=i=>e("update:visible",i))},{footer:ce(()=>[n.visible?(d(),h("div",Ys,[o("button",{type:"button",class:"v-experiences-date-filter-dialog__footer-button v-experiences-date-filter-dialog__footer-button--secondary","data-testid":"experiences-date-filter-clear",onClick:V},C(s(r)("filters.clearAll")),1),o("button",{type:"button",class:"v-experiences-date-filter-dialog__footer-button v-experiences-date-filter-dialog__footer-button--primary","data-testid":"experiences-date-filter-apply",onClick:Z},C(s(r)("filters.apply")),1)])):R("",!0)]),default:ce(()=>[n.visible?(d(),h("section",Qs,[o("div",Gs,[o("button",{type:"button",class:re(["v-experiences-date-filter-dialog__shortcut",{"v-experiences-date-filter-dialog__shortcut--active":T.value===$.value&&I.value===$.value}]),"data-testid":"experiences-date-filter-today",onClick:u[0]||(u[0]=i=>P(m()))},C(s(r)("experiencesPage.tours.filters.date.today")),3),o("button",{type:"button",class:re(["v-ex
1periences-date-filter-dialog__shortcut",{"v-experiences-date-filter-dialog__shortcut--active":T.value===D.value&&I.value===D.value}]),"data-testid":"experiences-date-filter-tomorrow",onClick:u[1]||(u[1]=i=>P(S()))},C(s(r)("experiencesPage.tours.filters.date.tomorrow")),3)]),O(s(Ct),{modelValue:a.value,"onUpdate:modelValue":u[2]||(u[2]=i=>a.value=i),modelModifiers:{range:!0},class:"v-experiences-date-filter-dialog__calendar",mode:"range","is-inline":"","is-expanded":"","min-date":y.value,columns:_.value,range:!0,locale:w.value,"first-day-of-week":2,lazy:!0,"data-testid":"experiences-date-filter-calendar"},null,8,["modelValue","min-date","columns","locale"])])):R("",!0)]),_:1},8,["visible","title"]))}}),Hs=X(Xs,[["__scopeId","data-v-a99b4386"],["__file","DateFilterDialog.vue"]]),js=10,Ce=" â ",Js=({language:f,currency:p,textSearch:t,filters:r,sort:n,pagination:e={limit:24,offset:0}})=>{const a=De(r),v={language:f,currency:p,textSearch:t,sort:n,pagination:e};(a.dateRange.from||a.dateRange.to)&&(v.dateRange=a.dateRange),a.languages.length&&(v.languages=a.languages),a.categoryIds.length&&(v.categories=a.categoryIds),a.flags.length&&(v.flags=a.flags),a.minRating!==null&&(v.rating={min:a.minRating,max:5});const c=Je(a.durationOptionId);if(c&&(v.duration=c.range),a.priceMin!==null||a.priceMax!==null){const m={};a.priceMin!==null&&(m.min=a.priceMin),a.priceMax!==null&&(m.max=a.priceMax),v.price=m}return v},We=f=>{if(!f)return null;const[p,t,r]=f.split("-").map(Number);return!p||!t||!r?null:new Date(p,t-1,r)},ke=(f,p)=>new Intl.DateTimeFormat(p,{day:"numeric",month:"short"}).format(f),Qe=(f,p)=>new Intl.DateTimeFormat(p,{day:"numeric",month:"short",year:"numeric"}).format(f),Zs=(f,p)=>new Intl.DateTimeFormat(p,{day:"numeric"}).format(f),tt=(f,p="en")=>{const t=f.from,r=f.to;if(!t&&!r)return"";const n=We(t),e=We(r),a=(v,c)=>c?ke(c,p):v||"";return!t||!r||t===r?a(t||r,n||e):!n||!e?[t,r].filter(Boolean).join(Ce):n.getFullYear()!==e.getFullYear()?`${Qe(n,p)}${Ce}${Qe(e,p)}`:n.getMonth()===e.getMonth()?`${ke(n,p)}${Ce}${Zs(e,p)}`:`${ke(n,p)}${Ce}${ke(e,p)}`},ea=({dateRange:f,fallbackLabel:p,locale:t="en"})=>tt(f,t)||p,ta=({tours:f,t:p,limit:t=js})=>{const r=new Map;for(const n of f)for(const e of n.categories??[]){if(e.id==null)continue;const a=p("experiencesPage.tours.filters.categories.fallback",{id:e.id}),v=(e.name||"").trim(),c=!v,m=v||a,S=r.get(e.id);r.set(e.id,{count:(S?.count??0)+1,name:S&&!S.usesFallbackName?S.name:m,usesFallbackName:S?S.usesFallbackName&&c:c})}return[...r.entries()].map(([n,e])=>({id:n,name:e.name,count:e.count})).sort((n,e)=>e.count-n.count||n.name.localeCompare(e.name)).slice(0,t).map(({id:n,name:e})=>({id:n,name:e}))},sa=({categoryOptions:f,appliedCategoryIds:p})=>{const t=new Set(p);return f.map(r=>({id:r.id,label:r.name,applied:t.has(r.id)}))},st=({appliedFilters:f,categoryLabelMap:p,numberFormatter:t,locale:r,t:n})=>{const e=De(f),a=[],v=tt(e.dateRange,r);v&&a.push({id:"date",label:n("experiencesPage.tours.filters.date.chip",{date:v}),type:"date"});for(const c of e.categoryIds)a.push({id:`category-${c}`,label:p[c]||n("experiencesPage.tours.filters.categories.fallback",{id:c}),type:"category",value:c});for(const c of e.languages)a.push({id:`language-${c}`,label:Pt(c,r),type:"language",value:c});if(e.priceMin!==null||e.priceMax!==null){const{priceMin:c,priceMax:m}=e;let S="";c!==null&&m!==null?S=`${t.format(c)} - ${t.format(m)}`:c!==null?S=`${t.format(c)}+`:m!==null&&(S=n("experiencesPage.tours.filters.price.upTo",{max:t.format(m)})),a.push({id:"price",label:S,type:"price"})}if(e.minRating!==null&&a.push({id:"rating",label:n(He,{rating:je(e.minRating)}),type:"rating"}),e.durationOptionId!==null){const c=Je(e.durationOptionId);c&&a.push({id:"duration",label:n(c.label),type:"duration"})}for(const c of e.flags){const m=Ze.find(S=>S.id===c);m&&a.push({id:`feature-${c}`,label:n(m.label),type:"feature",value:c})}return a},aa={key:0,class:"v-experiences-tours-dialog","data-testid":"experiences-filters-modal"},ra={class:"v-experiences-tours-dialog__body","data-testid":"experiences-filters-drawer"},ia={class:"v-experiences-tours-dialog__section-title"},oa={class:"v-experiences-tours-dialog__applied-chips","data-testid":"experiences-dialog-applied-filters"},la=["aria-label","data-testid","onClick"],na={class:"v-experiences-tours-dialog__section"},ca={class:"v-experiences-tours-dialog__section-title"},ua=["aria-label"],da=["for"],pa={class:"v-experiences-tours-dialog__section"},va={class:"v-experiences-tours-dialog__section-title"},_a={class:"v-experiences-tours-dialog__price-inputs"},ga={class:"v-experiences-tours-dialog__price-field"},fa=["value","placeholder","aria-label"],ha={class:"v-experiences-tours-dialog__price-field"},ma=["value","placeholder","aria-label"],ba={class:"v-experiences-tours-dialog__section"},xa={class:"v-experiences-tours-dialog__section-title"},ya={class:"v-experiences-tours-dialog__checkbox-list"},Ca=["checked","data-testid","onChange"],ka={key:1,class:"v-experiences-tours-dialog__section"},Sa={class:"v-experiences-tours-dialog__section-title"},Da={class:"v-experiences-tours-dialog__checkbox-list"},wa=["checked","data-testid","onChange"],Fa={class:"v-experiences-tours-dialog__section"},$a={class:"v-experiences-tours-dialog__section-title"},Oa=["aria-label"],Ea=["for"],Ra={class:"v-experiences-tours-dialog__section"},Ta={class:"v-experiences-tours-dialog__section-title"},Ia={class:"v-experiences-tours-dialog__checkbox-list"},La=["checked","data-testid","onChange"],Ma={key:0,class:"v-experiences-tours-dialog__footer"},Pa=H({__name:"FiltersDialog",props:{visible:{type:Boolean},appliedFilters:{},categoryOptions:{},currency:{default:"USD"},durationOptions:{},featureOptions:{},languageOptions:{},locale:{default:"en"}},emits:["update:visible","apply"],setup(f,{emit:p}){const{t}
1=j(),r=f,n=p,e=E(_e(r.appliedFilters)),a=k(()=>Object.fromEntries(r.categoryOptions.map(l=>[l.id,l.name]))),v=k(()=>new Intl.NumberFormat(r.locale,{style:"currency",currency:r.currency,maximumFractionDigits:0})),c=k(()=>st({appliedFilters:e.value,categoryLabelMap:a.value,numberFormatter:v.value,locale:r.locale,t}));ie(()=>r.visible,l=>{l&&(e.value=_e(r.appliedFilters))}),ie(()=>r.appliedFilters,l=>{r.visible||(e.value=_e(l))},{deep:!0});const m=()=>{n("apply",De(e.value))},S=()=>{const l={...et(),dateRange:{...e.value.dateRange}};e.value=_e(l)},$=l=>{e.value.minRating=e.value.minRating===l?null:l},D=l=>{e.value.minRating=l},y=l=>t(He,{rating:je(l)}),_=(l,u)=>{l.value=u===null?"":String(u)},w=(l,u)=>{const i=u.target,F=l==="min"?"priceMin":"priceMax",K=e.value[F],ee=i.value.trim();if(ee===""){e.value[F]=null,i.value="";return}if(!/^\d+$/.test(ee)){_(i,K);return}const N=Number(ee);if(!Number.isFinite(N)){_(i,K);return}e.value[F]=N,i.value=String(N)},T=l=>{const u=new Set(e.value.languages);u.has(l)?u.delete(l):u.add(l),e.value.languages=[...u].sort()},I=l=>{const u=new Set(e.value.categoryIds);u.has(l)?u.delete(l):u.add(l),e.value.categoryIds=[...u].sort((i,F)=>i-F)},A=l=>{e.value.durationOptionId=e.value.durationOptionId===l?null:l},P=l=>{e.value.durationOptionId=l},V=l=>{const u=new Set(e.value.flags);u.has(l)?u.delete(l):u.add(l),e.value.flags=[...u].sort()},Z=l=>{switch(l.type){case"date":e.value.dateRange={};break;case"category":e.value.categoryIds=e.value.categoryIds.filter(u=>u!==l.value);break;case"language":e.value.languages=e.value.languages.filter(u=>u!==l.value);break;case"price":e.value.priceMin=null,e.value.priceMax=null;break;case"rating":e.value.minRating=null;break;case"duration":e.value.durationOptionId=null;break;case"feature":e.value.flags=e.value.flags.filter(u=>u!==l.value);break}};return(l,u)=>(d(),z(s(Ye),{visible:r.visible,title:s(t)("experiencesPage.tours.filters.allFilters"),bodyClass:"v-experiences-tours-dialog__body-shell",contentClass:"v-experiences-tours-dialog__content-shell",desktopWidthPx:463,"onUpdate:visible":u[2]||(u[2]=i=>n("update:visible",i))},{footer:ce(()=>[r.visible?(d(),h("div",Ma,[o("button",{type:"button",class:"v-experiences-tours-dialog__footer-button v-experiences-tours-dialog__footer-button--secondary","data-testid":"experiences-filters-clear-all",onClick:S},C(s(t)("filters.clearAll")),1),o("button",{type:"button",class:"v-experiences-tours-dialog__footer-button v-experiences-tours-dialog__footer-button--primary","data-testid":"experiences-filters-apply",onClick:m},C(s(t)("filters.apply")),1)])):R("",!0)]),default:ce(()=>[r.visible?(d(),h("section",aa,[o("div",ra,[c.value.length?(d(),h(M,{key:0},[o("h3",ia,C(s(t)("experiencesPage.tours.filters.appliedFilters")),1),o("div",oa,[(d(!0),h(M,null,B(c.value,i=>(d(),h("button",{key:i.id,type:"button",class:"v-experiences-tours-dialog__applied-chip","aria-label":s(t)("experiencesPage.tours.filters.removeChipAriaLabel",{filter:i.label}),"data-testid":`dialog-applied-filter-chip-${i.id}`,onClick:F=>Z(i)},[o("span",null,C(i.label),1),u[3]||(u[3]=o("span",{"aria-hidden":"true",class:"v-experiences-tours-dialog__applied-chip-remove"}," Ã ",-1))],8,la))),128))])],64)):R("",!0),o("section",na,[o("h3",ca,C(s(t)("experiencesPage.tours.filters.rating.title")),1),o("div",{class:"v-experiences-tours-dialog__rating-list",role:"radiogroup","aria-label":s(t)("experiencesPage.tours.filters.rating.title")},[(d(!0),h(M,null,B(s(At),i=>(d(),h("div",{key:i.testId,class:"v-experiences-tours-dialog__rating-item"},[O(s(Ve),{inputId:i.testId,name:"experiences-tour-rating",modelValue:e.value.minRating,value:i.value,"data-testid":i.testId,"onUpdate:modelValue":F=>D(i.value),onClick:F=>e.value.minRating===i.value&&$(i.value)},null,8,["inputId","modelValue","value","data-testid","onUpdate:modelValue","onClick"]),o("label",{for:i.testId,class:"v-experiences-tours-dialog__rating-label"},C(y(i.value)),9,da)]))),128))],8,ua)]),o("section",pa,[o("h3",va,C(s(t)("experiencesPage.tours.filters.price.title")),1),o("div",_a,[o("div",ga,[o("input",{type:"text",inputmode:"numeric",pattern:"[0-9]*",autocomplete:"off","data-testid":"price-filter-min",value:e.value.priceMin??"",placeholder:s(t)("experiencesPage.tours.filters.price.minimum"),"aria-label":s(t)("experiencesPage.tours.filters.price.minimumAriaLabel"),onInput:u[0]||(u[0]=i=>w("min",i))},null,40,fa)]),o("div",ha,[o("input",{type:"text",inputmode:"numeric",pattern:"[0-9]*",autocomplete:"off","data-testid":"price-filter-max",value:e.value.priceMax??"",placeholder:s(t)("experiencesPage.tours.filters.price.maximum"),"aria-label":s(t)("experiencesPage.tours.filters.price.maximumAriaLabel"),onInput:u[1]||(u[1]=i=>w("max",i))},null,40,ma)])])]),o("section",ba,[o("h3",xa,C(s(t)("experiencesPage.tours.filters.languages.title")),1),o("div",ya,[(d(!0),h(M,null,B(r.languageOptions,i=>(d(),h("label",{key:i.code,class:"v-experiences-tours-dialog__checkbox-item"},[o("input",{type:"checkbox",checked:e.value.languages.includes(i.code),"data-testid":`language-filter-${i.code}`,onChange:F=>T(i.code)},null,40,Ca),o("span",null,C(i.name),1)]))),128))])]),r.categoryOptions.length?(d(),h("section",ka,[o("h3",Sa,
1C(s(t)("experiencesPage.tours.filters.categories.title")),1),o("div",Da,[(d(!0),h(M,null,B(r.categoryOptions,i=>(d(),h("label",{key:i.id,class:"v-experiences-tours-dialog__checkbox-item"},[o("input",{type:"checkbox",checked:e.value.categoryIds.includes(i.id),"data-testid":`category-filter-${i.id}`,onChange:F=>I(i.id)},null,40,wa),o("span",null,C(i.name),1)]))),128))])])):R("",!0),o("section",Fa,[o("h3",$a,C(s(t)("experiencesPage.tours.filters.duration.title")),1),o("div",{class:"v-experiences-tours-dialog__rating-list",role:"radiogroup","aria-label":s(t)("experiencesPage.tours.filters.duration.title")},[(d(!0),h(M,null,B(r.durationOptions,i=>(d(),h("div",{key:i.id,class:"v-experiences-tours-dialog__rating-item"},[O(s(Ve),{inputId:`duration-filter-${i.id}`,name:"experiences-tour-duration",modelValue:e.value.durationOptionId,value:i.id,"data-testid":`duration-filter-${i.id}`,"onUpdate:modelValue":F=>P(i.id),onClick:F=>e.value.durationOptionId===i.id&&A(i.id)},null,8,["inputId","modelValue","value","data-testid","onUpdate:modelValue","onClick"]),o("label",{for:`duration-filter-${i.id}`,class:"v-experiences-tours-dialog__rating-label"},C(s(t)(i.label)),9,Ea)]))),128))],8,Oa)]),o("section",Ra,[o("h3",Ta,C(s(t)("experiencesPage.tours.filters.features.title")),1),o("div",Ia,[(d(!0),h(M,null,B(r.featureOptions,i=>(d(),h("label",{key:i.id,class:"v-experiences-tours-dialog__checkbox-item"},[o("input",{type:"checkbox",checked:e.value.flags.includes(i.id),"data-testid":`feature-filter-${i.id}`,onChange:F=>V(i.id)},null,40,La),o("span",null,C(s(t)(i.label)),1)]))),128))])])])])):R("",!0)]),_:1}
1,8,["visible","title"]))}}),Aa=X(Pa,[["__scopeId","data-v-4d141bed"],["__file","FiltersDialog.vue"]]),Na=24,Ua=800,Ge=f=>JSON.stringify(f??null),Ba=(f,p)=>["dateRange","categoryIds","languages","priceMin","priceMax","minRating","durationOptionId","flags"].filter(t=>Ge(f[t])!==Ge(p[t])),Va=()=>{const{t:f}=j(),p=St(),t=Et(),r=E([]),n=E(!0),e=E(!1),a=E(null),v=E(!1),c=E(0),m=E(0),S=k(()=>Nt(p.query)),$=k(()=>S.value.sortOptionId),D=k(()=>S.value.filters);let y=Promise.resolve(),_=0,w=!0;const T=p.path,I=()=>w&&p.path===T;let A;const P=()=>{clearTimeout(A),A=void 0};Lt(()=>{w=!1,P(),K+=1});const V=b=>{const g=_,x=y.then(async()=>{I()&&g===_&&await b()});return y=x.catch(()=>{}),x},Z=async(b,g=$.value)=>{const x={...p.query};for(const U of Kt)delete x[U];const L=await t.replace({query:{...x,...qe(b,g,u.value)},hash:p.hash});return Rt(L,Tt.cancelled)&&(_+=1),L},l=E({}),u=k(()=>({...S.value.categoryLabels,...l.value})),i=E([]),F=E(!1);let K=0,ee=!1;const N=k(()=>p.query.language||ne.language||"en"),W=k(()=>kt(p.query.currency,ne.experiencesCurrency)),oe=k(()=>{const b=p.query.textSearch;return b?((Array.isArray(b)?b[0]:b)||"").trim():""}),we=k(()=>{const b=new Map(D.value.categoryIds.map(g=>[g,u.value[g]||f("experiencesPage.tours.filters.categories.fallback",{id:g})]));for(const g of r.value)for(const x of g.categories??[]){if(x.id==null)continue;const L=(x.name||"").trim()||u.value[x.id]||f("experiencesPage.tours.filters.categories.fallback",{id:x.id});b.set(x.id,L)}return[...b.entries()].map(([g,x])=>({id:g,name:x})).sort((g,x)=>g.name.localeCompare(x.name))}),ue=k(()=>!Ut(D.value,et())),de=k(()=>new Intl.NumberFormat(N.value||"en",{style:"currency",currency:W.value||"USD",maximumFractionDigits:0})),Fe=k(()=>Se($.value).sort),ge=k(()=>Bt(N.value||"en")),pe=k(()=>Vt(D.value)),fe=k(()=>qt(D.value)),he=k(()=>c.value||r.value.length),me=k(()=>m.value<he.value),$e=k(()=>st({appliedFilters:D.value,categoryLabelMap:u.value,numberFormatter:de.value,locale:N.value||"en",t:f})),be=k(()=>sa({categoryOptions:i.value,appliedCategoryIds:D.value.categoryIds})),Oe=()=>{for(const b of r.value)for(const g of b.categories??[]){const x=(g.name||"").trim();g.id!=null&&x&&(l.value[g.id]=x)}},Q=()=>{i.value=[],F.value=!1,l.value={}},q=(b,g)=>{g||F.value||(i.value=ta({tours:b,t:f}),F.value=!0)},J=(b,g,x)=>{c.value=b.meta?.totalCount??g.length,m.value=x+g.length},Ee=async(b,g={})=>{const x=++K,L=()=>x===K,U=g.append??!1,Re=g.offset??0,dt=N.value,pt=W.value,Pe=oe.value,vt=Fe.value;if(!Pe){r.value=[],n.value=!1,e.value=!1,a.value=null,c.value=0,m.value=0;return}U?e.value=!0:(n.value=!0,e.value=!1,a.value=null);const ye=Js({language:dt,currency:pt,textSearch:Pe,filters:b,sort:vt,pagination:{limit:Na,offset:Re}}),Ae=Dt(ye),Ne=wt(Ae),_t=Ft(ye,{experiencesSessionId:Ne}),le=$t(ye,{experiences_request_key:_t}),Ue=Date.now();U||(ee||(G(Y.RESULTS_PAGE_VIEWED,{page:"experiences_results",...le}),ee=!0),Ot(Ae)&&G(Y.SEARCH_SUBMITTED,{...le,source:"results_page",experiences_session_id:Ne}));try{const ve=await Wt(ye);if(!L())return;const te=ve.tours??[];U?r.value=[...r.value,...te]:r.value=te,q(te,U),J(ve,te,Re),Oe();const Be=ve.meta?.totalCount??te.length;G(Y.RESULTS_LOADED,{...le,append:U,results_count:te.length,total_count:Be,results_latency_ms:Date.now()-Ue}),!U&&te.length===0&&G(Y.RESULTS_EMPTY,{...le}),U&&G(Y.LOAD_MORE_LOADED,{...le,loaded_count:te.length,total_count:Be,offset:Re})}catch(ve){if(!L()||U)return;a.value=f("experiencesPage.featured.loadError"),r.value=[],c.value=0,m.value=0,G(Y.SEARCH_FAILED,{...le,...Qt(ve),results_latency_ms:Date.now()-Ue})}finally{L()&&(U?e.value=!1:n.value=!1)}},at=()=>{v.value=!0},Me=()=>{v.value=!1},xe=async(b,g)=>{const x=De(b),L=Ba(D.value,x);await Z(x)||!I()||!L.length||G(Y.FILTER_APPLIED,{changed_filter_keys:L,changed_filter_count:L.length,source:g})},rt=b=>(Me(),V(()=>xe(b,"filters_dialog"))),it=b=>V(()=>xe({...D.value,dateRange:b},"date_filter")),ot=b=>V(async()=>{const g=new Set(D.value.categoryIds);g.has(b)?g.delete(b):g.add(b),await xe({...D.value,categoryIds:[...g]},"category_quick_chip")}),lt=b=>V(async()=>{const g=_e(D.value);switch(b.type){case"date":g.dateRange={};break;case"category":g.categoryIds=g.categoryIds.filter(x=>x!==b.value);break;case"language":g.languages=g.languages.filter(x=>x!==b.value);break;case"price":g.priceMin=null,g.priceMax=null;break;case"rating":g.minRating=null;break;case"duration":g.durationOptionId=null;break;case"feature":g.flags=g.flags.filter(x=>x!==b.value);break}await xe(g,"applied_chip_remove")}),nt=b=>V(async()=>
1{if(b===$.value||await Z(D.value,b)||!I())return;const x=Se(b);G(Y.SORT_CHANGED,{sort_option_id:b,sort_field:x.sort?.field,sort_direction:x.sort?.direction})}),ct=async()=>{A!==void 0||n.value||e.value||a.value||!me.value||!r.value.length||(G(Y.LOAD_MORE_CLICKED,{offset:m.value,total_count:c.value,loaded_count:r.value.length}),await Ee(D.value,{append:!0,offset:m.value}))};ie([N,W,oe,()=>JSON.stringify([D.value,$.value])],async(b,g)=>{if(P(),K+=1,!!I()){if(b.slice(0,3).some((x,L)=>x!==g[L])){Q(),await Ee(D.value);return}A=setTimeout(()=>{A=void 0,I()&&Ee(D.value)},Ua)}},{immediate:!0});const ut=k(()=>{const b=qe(D.value,$.value,u.value);for(const g of["language","currency","textSearch","nationality","clientReference"]){const x=p.query[g];typeof x=="string"&&x&&(b[g]=x)}return b.currency=W.value,b});return{activeNonDateFilterCount:pe,appliedFilterChips:$e,appliedFilters:D,applyDateFilter:it,applyFilters:rt,categoryOptions:we,categoryQuickFilterChips:be,closeFilterDrawer:Me,currency:W,durationOptions:zt,error:a,featureOptions:Ze,hasActiveDateFilter:fe,hasActiveFilters:ue,hasMore:me,isFilterDrawerOpen:v,loading:n,loadingMore:e,language:N,languageOptions:ge,loadMore:ct,openFilterDrawer:at,resultsCount:he,removeAppliedChip:lt,selectedSortOptionId:$,textSearch:oe,tourContextQuery:ut,toggleCategoryFilter:ot,tours:r,updateSort:nt}},qa={"data-testid":"experiences-tours-page"},za={"data-testid":"experiences-tours-results"},Ka={class:"grid-container"},Wa=H({__name:"Page",setup(f){const{activeNonDateFilterCount:p,appliedFilterChips:t,appliedFilters:r,applyDateFilter:n,applyFilters:e,categoryOptions:a,categoryQuickFilterChips:v,closeFilterDrawer:c,currency:m,durationOptions:S,error:$,featureOptions:D,hasActiveDateFilter:y,hasActiveFilters:_,hasMore:w,isFilterDrawerOpen:T,language:I,languageOptions:A,loading:P,loadingMore:V,loadMore:Z,openFilterDrawer:l,removeAppliedChip:u,resultsCount:i,selectedSortOptionId:F,textSearch:K,toggleCategoryFilter:ee,tourContextQuery:N,tours:W,updateSort:oe}=Va(),{t:we}=j(),ue=E(!1),de=E(!1),Fe=k(()=>t.value.filter(Q=>Q.type!=="date")),ge=k(()=>v.value.filter(Q=>!Q.applied)),pe=()=>{ue.value=!0},fe=()=>{ue.value=!1},he=async Q=>{fe(),await n(Q)},me=async Q=>{const q=t.value.find(J=>J.id===Q);q&&await u(q)},$e=k(()=>ea({dateRange:r.value.dateRange,fallbackLabel:we("experiencesPage.tours.filters.date.trigger"),locale:I.value})),be=()=>{de.value=!0},Oe=()=>{de.value=!1};return(Q,q)=>(d(),z(gt,null,{default:ce(()=>[o("div",qa,[o("section",za,[o("div",Ka,[s(ne).isMobile?(d(),z(Os,{key:0,"active-non-date-filter-count":s(p),"has-active-date-filter":s(y),"has-tours":!!s(W).length,loading:s(P),"selected-sort-option-id":s(F),"text-search":s(K),onOpenSearch:be,onOpenDateFilter:pe,onOpenFilters:s(l),onUpdateSort:s(oe)},null,8,["active-non-date-filter-count","has-active-date-filter","has-tours","loading","selected-sort-option-id","text-search","onOpenFilters","onUpdateSort"])):R("",!0),!s(ne).isMobile&&(s(P)||s(W).length||s(_)||ge.value.length)?(d(),z(_s,{key:1,"active-non-date-filter-count":s(p),"applied-chips":Fe.value,"category-chips":ge.value,"date-label":$e.value,"has-active-date-filter":s(y),onOpenDateFilter:pe,onOpenFilters:s(l),onRemoveAppliedChip:me,onToggleCategory:s(ee)},null,8,["active-non-date-filter-count","applied-chips","category-chips","date-label","has-active-date-filter","onOpenFilters","onToggleCategory"])):R("",!0),!s(ne).isMobile&&!s($)&&(s(P)||s(W).length)?(d(),z(as,{key:2,count:s(i),loading:s(P),"search-label":s(K),"selected-sort-option-id":s(F),onUpdateSort:s(oe)},null,8,["count","loading","search-label","selected-sort-option-id","onUpdateSort"])):R("",!0),O(Ws,{currency:s(m),error:s($),"has-more":s(w),loading:s(P),"loading-more":s(V),"tour-context-query":s(N),tours:s(W),onLoadMore:s(Z)},null,8,["currency","error","has-more","loading","loading-more","tour-context-query","tours","onLoadMore"])])])]),O(Aa,{visible:s(T),appliedFilters:s(r),currency:s(m),locale:s(I),categoryOptions:s(a),durationOptions:s(S),featureOptions:s(D),"language-options":s(A),"onUpdate:visible":q[0]||(q[0]=J=>J?s(l)():s(c)()),onApply:s(e)},null,8,["visible","appliedFilters","currency","locale","categoryOptions","durationOptions","featureOptions","language-options","onApply"]),O(Hs,{visible:ue.value,"date-range":s(r).dateRange,"onUpdate:visible":q[1]||(q[1]=J=>J?pe():fe()),onApply:he},null,8,["visible","date-range"]),O(Xt,{visible:de.value,"onUpdate:visible":q[2]||(q[2]=J=>J?be():Oe())},null,8,["visible"])]),_:1}))}}),Qa=X(Wa,[["__file","Page.vue"]]),Ga=H({__name:"ExperiencesTours",setup(f){return(p,t)=>
1(d(),z(s(Qa)))}}),cr=X(Ga,[["__file","ExperiencesTours.vue"]]);export{cr 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.