1import{_ as Ae}from"./D5Y674EY.js";import{_ as G}from"./DyMj4wt7.js";import{d as T,m as o,y as Me,b as v,n as a,q as f,a as s,A as x,k as U,t as O,e as t,j as i,w as I,z as p,F as X,v as J,aG as Oe,u as Ue,aH as Fe,aI as Ne,a2 as De,f as Ee,s as k,l as je,G as b,o as He,I as Pe,L as qe,c as q,X as ze}from"./v2o05Z3A.js";import{_ as Ge,a as Xe,b as Je,c as Ke,d as Qe,e as We,f as Ye}from"./DPIk1lxA.js";import{_ as Ze}from"./BHkdbRC_.js";import{_ as K}from"./B6WKR8Ry.js";import{_ as et}from"./DIVfnkpL.js";import{_ as tt}from"./OpD80vvH.js";import{_ as at}from"./BrPrGXLq.js";import{e as $}from"./dRWvvzk9.js";import{u as st,h as z}from"./rjFetZdW.js";import{u as ot}from"./-_HN0fY4.js";import{u as nt}from"./T-N3oRCC.js";import{u as ct}from"./BzqcoHo9.js";import"./Dw1aCN9m.js";import"./Cf8y9ntY.js";import"./CZ45u21C.js";import"./C8CN9hr5.js";import"./CQ4br8Tg.js";import"./Z8Ur0xYn.js";import"./QvZngDZT.js";import"./oyN0GVKj.js";import"./BwHehzwn.js";import"./Dnx_wSVK.js";import"./_uhdW_6e.js";import"./Bxd_n14z.js";import"./DzF-5WMK.js";import"./Cw0iAXCO.js";import"./Hi9mVeRJ.js";import"./Dwhi1jtM.js";import"./D2u-Zi9U.js";import"./BlReEQNx.js";import"./BF0IMKqz.js";import"./DtWXvSPS.js";import"./CQkmADNp.js";import"./BSg2E1J4.js";import"./DPYn0R2M.js";import"./CnHEpK1A.js";import"./DkDMk_O2.js";const it={class:"tui-search-bar-loading__input"},rt={key:0,class:"tui-search-bar-loading__input-button"},_t={key:0,class:"tui-search-bar-loading__button"},lt=T({__name:"BarLoading",props:{withButton:{type:Boolean,default:!1}},setup(n){return(l,c)=>{const _=G;return s(),o("div",{class:Me(["tui-search-bar-loading",{"tui-search-bar-loading--with-button":n.withButton}])},[v("div",it,[a(_),n.withButton?(s(),o("div",rt)):f("",!0)]),n.withButton?(s(),o("div",_t)):f("",!0)],2)}}}),ut=Object.assign(x(lt,[["__scopeId","data-v-775bd53d"]]),{__name:"SearchBarLoading"}),dt={class:"tui-matched-search-loading"},ht={key:0,class:"tui-matched-search-loading__title"},mt={class:"tui-matched-search-loading__content"},pt=T({__name:"Loading",props:{matchedCity:{default:""},showTitle:{type:Boolean,default:!1}},setup(n){const{t:l}=U(),c=i(()=>n.matchedCity?l("similar.search.title__city",{usersearch:n.matchedCity}):l("similar.search.title"));return(_,u)=>{const d=G;return s(),o("div",dt,[n.showTitle?(s(),o("h4",ht,O(t(c)),1)):f("",!0),v("div",mt,[a(d)])])}}}),vt=Object.assign(x(pt,[["__scopeId","data-v-a23f999b"]]),{__name:"SearchMatchedLoading"}),gt={class:"tui-matched-search"},yt={class:"tui-matched-search__title"},ft=["onClick"],St={class:"tui-matched-search__text"},Ct=T({__name:"Matched",props:{results:{default:()=>[]},matchedCity:{default:""}},emits:["matchedsearch:click"],setup(n,{emit:l}){const c=l,{t:_}=U(),u=i(()=>n.matchedCity.length?_("similar.search.title__city",{usersearch:n.matchedCity}):_("similar.search.title")),d=(r,g)=>{p.SearchActionsTrackingService.clickMatchedSearchCard({code:r,index:g,hasMatchedCity:!!n.matchedCity.length}),c("matchedsearch:click",r)},S=r=>{n.matchedCity.length&&p.SearchActionsTrackingService.clickMatchedSearchCarousel({direction:r})};return(r,g)=>{const V=Oe,L=K;return s(),o("div",gt,[v("h4",yt,O(t(u)),1),a(L,{"data-test-id":"tui-matched-search-carousel","onCarousel:click":S},{default:I(()=>[(s(!0),o(X,null,J(n.results,(h,C)=>(s(),o("div",{key:`matched-search-${h.code}-${C}`,class:"tui-matched-search__result",onClick:F=>d(h.code,C)},[a(V,{name:"pin",class:"tui-matched-search__icon",alt:"pin"}),v("span",St,O(h.name),1)],8,ft))),128))]),_:1})])}}}),kt=Object.assign(x(Ct,[["__scopeId","data-v-71fb6775"]]),{__name:"SearchMatched"}),bt={class:"tui-top-venues-carousel-loading"},Tt=T({__name:"TopVenuesCarouselLoading",setup(n){return(l,c)=>{const _=et,u=tt,d=K;return s(),o("div",bt,[a(_,{class:"tui-top-venues-carousel-loading__title"}),a(d,{"enable-navigation":!1,class:"tui-top-venues-carousel-loading__carousel"},{default:I(()=>[(s(),o(X,null,J(4,S=>a(u,{key:`top-venues-carousel-loading-${S}`})),64))]),_:1})])}}}),xt=Object.assign(x(Tt,[["__scopeId","data-v-758108b2"]]),{__name:"TopVenuesCarouselLoading"}),Lt={key:0},$t={class:"tui-search-page__loading-wrapper tui-search-page__header-wrapper"},It={key:1,class:"search-page-layout"},Vt={class:"search-page-layout__banner"},Bt={key:0,class:"tui-search-page__before-content search-page-layout__before-content"},Rt={key:0,class:"tui-search-page__matched-search"},wt={key:1,class:"tui-search-page__top-venues"},At={class:"tui-search-page__sidebar search-page-layout__sidebar","data-test-id":"tui-search-component-filters"},Mt={class:"tui-search-page__main-content search-page-layout__main-content"},Ot=T({__name:"index",setup(n,{expose:l}){const{t:c,locale:_}=U(),u=Ue(),d=Fe(),S=ot(),r=Ne(),g=De(),V=Ee(),{city:L,topVenuesFiltered:h,topVenuesLoading:C}=k(d),{nearCitiesData:F}=k(S),{fetchedActivities:Q,fetchedActivitiesPage:W,matchedCities:B,redirectLoading:Y,searchValue:Z}=k(r),{isSearchComponentLoading:ee,noResult:te}=k(g),{currencyCode:N}=k(V),{isDesktop:ae}=je(),D=b(!1),R=b(u.query.search_nearby),m=i(()=>{const{text:e,country_title:y}=u.query;return e||y}),w=i(()=>m.value?c("search.header.titleSearched",{usersearch:m.value}):c("search.header.titleSearched.noSearch")),se=i(()=>ae.value?"column":"row"),oe=i(()=>m.value?c("search.meta.page_title",{search:m.value}):c("search.header.titleSearched.noSearch"));nt(),ct(oe);const ne=i(()=>te.value?c("search.body.no_result_text.subtitle"):""),ce=i(()=>h.value?.length&&!R.value),ie=i(()=>L.value?.editorialData?.cityCarouselTitle||c("city.reccomendation_for.title",{city:L.value?.name??""})),A=i(()=>[...F.value].sort((e,y)=>
1y.event_count-e.event_count).map(e=>({name:e.name,code:`${e.id}`}))),re=i(()=>R.value?.length?Z.value:""),_e=i(()=>R.value?.length?A.value:B.value),le=e=>{g.setSearchOnHeaderVisibility(!e)},E=async e=>{r.setFetchedActivities({activities:e,page:W.value+1}),D.value&&H()},j=e=>{g.setNoResult(e)},ue=e=>{p.SearchActionsTrackingService.clickNearbyVenuesCarousel({direction:e})},de=e=>{p.SearchActionsTrackingService.clickTopVenuesCarouselCard({venueId:e.venueId,index:e.index})},he=e=>{if(!Y.value)return r.redirectToCity(`${e}`,_.value)},H=()=>{z({itemListId:p.ActivityListId.searchResults,itemListNameValue:m.value,currencyCode:N.value,activities:Q.value})},me=e=>{p.SearchLayoutTrackingExtensionService.activityCardAddTrackingDetailsNoIndex(e)},M=e=>{D.value=!0,globalThis.history.replaceState(globalThis.history.state,"",`${u.path}?${new URLSearchParams(e).toString()}`)},P=({activities:e,offset:y})=>{z({itemListId:p.ActivityListId.searchResults,itemListNameValue:m.value,currencyCode:N.value,activities:e,offset:y})};He(()=>{$.$on("NO_RESULT",j),$.$on("onFetchActivities",E),r.setSearchValue(m.value)}),Pe(()=>{$.$off("NO_RESULT",j),$.$off("onFetchActivities",E)}),st(r);const pe=b(),ve=b(),ge=b();return l({filtersRef:pe,resultsListRef:ve,matchedSearchRef:ge,handleFiltersUpdate:M,handleLoadMore:P}),(e,y)=>{const ye=Ae,fe=ut,Se=vt,Ce=Ge,ke=Ze,be=Ye,Te=Xe,xe=kt,Le=xt,$e=at,Ie=Je,Ve=Ke,Be=Qe,Re=We,we=ze("observe-visibility");return t(ee)?(s(),o("div",Lt,[v("div",$t,[a(ye,{tag:"h1",text:t(w),class:"tui-search-page__header-title"},null,8,["text"]),a(fe)]),a(Se,{class:"tui-search-page__loading-wrapper tui-search-page__matched-loading"}),a(Ce,{"card-layout":t(se),"cards-num":6,"data-test-id":"tui-search-component-filters"},null,8,["card-layout"])])):(s(),o("section",It,[qe((s(),o("div",Vt,[a(Te,{alt:t(w),text:t(w),subtitle:t(ne)},{searchbar:I(()=>[a(ke,{"with-button":"","full-store-reset":""})]),calendar:I(()=>[a(be)]),_:1},8,["alt","text","subtitle"])])),[[we,le]]),t(B).length||t(A).length||t(ce)?(s(),o("div",Bt,[t(B).length||t(A).length?(s(),o("div",Rt,[a(xe,{"matched-city":t(re),results:t(_e),"onMatchedsearch:click":he},null,8,["matched-city","results"])])):f("",!0),t(C)||t(h)?.length?(s(),o("div",wt,[t(C)?(s(),q(Le,{key:0})):(s(),q($e,{key:1,venues:t(h),title:t(ie),"onCarousel:click":ue,"onCard:click":de},null,8,["venues","title"]))])):f("",!0)])):f("",!0),v("div",At,[a(Ie,{onOnFiltersUpdate:M})]),v("div",Mt,[a(Ve),a(Be,{onOnFiltersUpdate:M}),a(Re,{"trk-impression":{callback:H,threshold:.1},"trk-add-detail":me,onOnLoadMore:P},null,8,["trk-impression"])])]))}}}),Ca=x(Ot,[["__scopeId","data-v-64b61c5b"]]);export{Ca 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.