1import{e as u,X as vt,Y as ft,a1 as yt,B as _t,t as ce,T as Ce,v as ue,a3 as bt,a6 as kt,a4 as wt,aL as St,o as Ct,R as Ht,g as Pt,ak as xt,bd as Et,c9 as Rt,ca as le,ba as It,$ as qe,cb as Lt,h as _,af as H,bt as Ge,bK as Dt,c3 as Bt,aK as Ot,n as At,bj as Ue}from"./main-kBzK4eIG.js";import{P as Ft}from"./ProductHero-BwyZrV-3.js";import{B as Qe,P as He,H as Pe}from"./HighlightsSection-9wAABklZ.js";import{P as jt,R as Nt}from"./RecentSearchesSection-Dmh3Bqdr.js";import{D as Xe,b as Tt}from"./destinationCollectionSearch-1S47UWhg.js";import{g as Mt,b as Vt,H as be}from"./flightsDestinationPrefill-BWFpsOmB.js";import{u as Se,h as ze}from"./index-_Wgz898U.js";import{G as Ye}from"./index-CNkSL6Qc.js";import{d as de,c as f,o as xe,z as l,u as e,W as m,f as n,O as p,A as i,r as v,a3 as $t,Z as g,G as O,D as qt,C as t,E as x,N as X,w as Z,b as Gt,F as V,V as Q}from"./vendor-primevue-CeEACqX_.js";import{B as Ut,E as zt}from"./ExperiencesPlacesCarousel-BP70I5EG.js";import{N as Wt}from"./NoHotelImage-Bo4zjMQU.js";import{C as Kt,u as Qt}from"./useCollectionRates-_feoNmvb.js";import{w as Xt}from"./bunny-BFgfExvG.js";import{u as Ze}from"./vendor-i18n-G4dYfk6F.js";import{s as B}from"./socket-D7UBviuq.js";import{D as ae}from"./vendor-luxon-D-syak89.js";import{H as We}from"./HomeHotelCardInterface-CgfsRZUq.js";import{B as re}from"./PlacesCarousel.vue_vue_type_style_index_0_scoped_9ff658d5_lang-qHcabAzd.js";import{R as Ke}from"./RecentSearchCard-BGOy6d39.js";import{R as $}from"./ImageWithFallback-raoQ1sx0.js";import{u as Yt}from"./LoyaltyLabelBanner-b4_DrhEs.js";import{a as Zt,b as Jt,n as ke,i as es}from"./grab-sso-D0qtCZ4E.js";import"./vendor-fontawesome-CHTXNQM2.js";import"./vendor-pako-DwGzBETv.js";import"./vendor-posthog-B2YXpdD_.js";import"./vendor-query-B7KhvNMU.js";import"./HeroSearch-BgEuZTs4.js";import"./PlacesCarousel-DCTVTMtK.js";import"./useDestinationsQuery-zNjMzVaH.js";import"./defaultPlaceBg-44PyOaOo.js";import"./flightsNearbyAirport-C-yGIJCN.js";import"./vendor-socket-YTJ-CyAn.js";import"./HotelCardImage-DEtelr5M.js";import"./chevron-right-6aEiQEcc.js";import"./grab-payment-C4PWhscV.js";import"./index.esm-D3z_6957.js";const ts="/perkHomePageBanner.webp",ss="/perkHomePageBannerMobile.webp",os={class:"v-flights-home-content","data-testid":"flights-home-content"},is=de({__name:"FlightsHomeContent",setup(E){const b=[{key:"bestPrices",icon:Qe},{key:"worldwideCoverage",icon:Ye},{key:"support247",icon:He}],R=["flightsHighlights","popularDestinations","recentSearches","destinationCollections"],h=f(()=>{const r=u.project.settings.flights?.sectionsOrder??u.project.settings.flightsSectionsOrder;return(r?.length?r:R).reduce((F,he,G)=>(F[he]=G,F),{})}),k=ce(),w=Ce(),S=vt();xe(()=>{ft(yt.HOMEPAGE_VIEWED,{page:"flights_home"}),C.value&&P().catch(()=>{})});const C=f(()=>u.project.settings.flights?.showDestinationCollections!==!1),{collections:N,fetchPublishedCollections:P}=Se("destination"),I=f(()=>N.value.filter(r=>(r.items??[]).some(d=>d.iata))),A=async r=>{const d=await Vt(r);return d?(S.setLastSearch(d.request,d.airportLabels),d):null},y=async r=>{const d=await A(r.destinationIata);if(!d)return;const F=_t(w.query,d.flightQueryParams);await k.replace({query:F})},q=async r=>{const d=await A(r.iata??null);d&&await Mt(k,w,d)};return(r,d)=>(i(),l("div",os,[(e(u).project.settings.flights?.showHighlights??e(u).project.settings.showFlightsHighlights)!==!1?(i(),l("div",{key:0,class:"section-wrap",style:m({order:h.value.flightsHighlights??0})},[n(Pe,{"test-id":"flights-highlights-section","translation-base-key":"flightsPage.highlights","highlight-items":b})],4)):p("",!0),(e(u).project.settings.flights?.showPopularDestinations??e(u).project.settings.showPopularDestinations)!==!1?(i(),l("div",{key:1,class:"section-wrap",style:m({order:h.value.popularDestinations??1})},[n(jt,{onSelect:y})],4)):p("",!0),(e(u).project.settings.flights?.showRecentSearches??e(u).project.settings.showFlightsRecentSearches)!==!1?(i(),l("div",{key:2,class:"section-wrap",style:m({order:h.value.recentSearches??2})},[n(Nt)],4)):p("",!0),C.value&&I.value.length?(i(),l("div",{key:3,class:"section-wrap",style:m({order:h.value.destinationCollections??3})},[n(Xe,{collections:I.value,product:"flights",onSelect:q},null,8,["collections"])],4)):p("",!0)]))}}),ns=ue(is,[["__scopeId","data-v-fc70debb"],["__file","FlightsHomeContent.vue"]]),ls={class:"v-experiences-home-content","data-testid":"experiences-home-content"},as=de({__name:"ExperiencesHomeContent",setup(E){const b=[{key:"expertLocalGuides",icon:Ut},{key:"destinations",icon:kt},{key:"support247",icon:He}],R=["experiencesHighlights","experiencesPlaces"],h=f(()=>{const k=u.project.settings.experiences?.sectionsOrder??u.project.settings.experiencesSectionsOrder;return(k?.length?k:R).reduce((S,C,N)=>(S[C]=N,S),{})});return xe(()=>{bt(wt.HOMEPAGE_VIEWED,{page:"experiences_home"})}),(k,w)=>(i(),l("div",ls,[(e(u).project.settings.experiences?.showHighlights??e(u).project.settings.showExperiencesHighlights)!==!1?(i(),l("div",{key:0,class:"section-wrap",style:m({order:h.value.experiencesHighlights??0})},[n(Pe,{"test-id":"experiences-highlights-section","translation-base-key":"experiencesPage.highlights","highlight-items":b})],4)):p("",!0),(e(u).project.settings.experiences?.showPlaces??e(u).project.settings.showExperiencesPlaces)!==!1?(i(),l("div",{key:1,class:"section-wrap",style:m({order:h.value.experiencesPlaces??1})},[n(zt)],4)):p("",!0)]))}}
1),rs=ue(as,[["__scopeId","data-v-5558f88b"],["__file","ExperiencesHomeContent.vue"]]),cs={key:0,class:"collection-card-skeleton"},us={class:"skeleton-content"},ds={class:"skeleton-info"},hs={class:"collection-content"},ms={class:"collection-info"},gs={class:"collection-title"},ps={class:"collection-count"},vs={class:"collection-meta-right"},fs=de({__name:"CollectionCard",props:{collection:{},loading:{type:Boolean},minPrice:{},priceLoading:{type:Boolean}},setup(E){const{t:b}=Ze(),R=ce(),h=E,k=f(()=>St()&&u.project.settings.hidePrices!==!0),w=f(()=>{const P=h.collection?.items?.length||0;return P===1?b("collections.oneProperty"):b("collections.properties",{number:P})}),S=v(!1),C=()=>{h.collection?.id&&R.push(`/collections/${h.collection.id}`)},N=f(()=>{const A=(h.collection?.items?.find(y=>y.order===1)||h.collection?.items?.[0])?.main_photo;return A?Xt(A,{height:560,quality:80}):Wt});return(P,I)=>(i(),l("div",{class:"collection-link",onClick:C,role:"button",tabindex:"0",onKeyup:$t(C,["enter"])},[h.loading?(i(),l("div",cs,[n(e(g),{height:"280px",class:"mb-2","border-radius":"16px"},{default:O(()=>[t("div",us,[t("div",ds,[n(e(g),{width:"60%",height:"24px",class:"mb-2"}),n(e(g),{width:"40%",height:"16px"})]),n(e(g),{shape:"circle",size:"32px"})])]),_:1})])):(i(),l("div",{key:1,class:qt(["collection-card",{loading:S.value}]),style:m({backgroundImage:`linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%), url(${N.value})`})},[t("div",hs,[t("div",ms,[t("h3",gs,x(h.collection?.title),1),t("p",ps,x(w.value),1)]),t("div",vs,[k.value?(i(),X(Kt,{key:0,amount:P.minPrice,loading:P.priceLoading,variant:"overlay",align:"right"},null,8,["amount","loading"])):p("",!0),I[0]||(I[0]=t("div",{class:"collection-arrow"},[t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))])])],6))],32))}}),we=ue(fs,[["__scopeId","data-v-6a2076fb"],["__file","CollectionCard.vue"]]),ys="magicLogin";function _s(){const E=ce(),b=Ce();async function R(){if(!Ct()||b.query[ys]!=="true")return!1;const{bookingId:h,email:k,cartPath:w,hotelId:S,redirectPath:C}=await Zt();return h?(await Jt(E,h,k),!0):w?(await ke(E,w),!0):S?(await ke(E,{name:Ht.HOTEL,params:{id:S}}),!0):es(C)?(await ke(E,C),!0):(Pt().hideLoader(),!1)}return{handlePostAuthRedirect:R}}const bs={key:2,class:"home-sections"},ks={key:0,class:"grid-container"},ws={class:"content-container"},Ss={class:"content-container-inner"},Cs=["src"],Hs={key:1,class:"loyalty-program-name"},Ps={class:"content-container-description"},xs={key:0,class:"grid-container"},Es={class:"skeleton-section-header"},Rs={class:"skeleton-track skeleton-track--collections"},Is={key:0,class:"single-collection"},Ls={class:"p-carousel-header__flex"},Ds={class:"flex gap-2 align-items-center"},Bs={class:"collection-wrapper"},Os={key:1,class:"two-collections"},As={class:"p-carousel-header__flex"},Fs={class:"flex gap-2 align-items-center"},js={class:"collections-wrapper"},Ns={class:"hotel-card-slider"},Ts={class:"grid-container"},Ms={key:0,class:"grid-container"},Vs={class:"skeleton-section-header"},$s={class:"p-3 h-11rem flex flex-column justify-content-between"},qs={class:"flex flex-column gap-2"},Gs={class:"flex flex-row justify-content-between"},Us={class:"hotel-card-slider"},zs={key:0,class:"single-item-container"},Ws={class:"p-carousel-header__flex"},Ks={class:"flex gap-2 align-items-center"},Qs={class:"single-recent-search"},Xs={class:"hotel-card-slider"},Ys={key:0,class:"grid-container"},Zs={class:"skeleton-section-header"},Js={class:"p-3 h-11rem flex flex-column justify-content-between"},eo={class:"flex flex-column gap-2"},to={class:"flex flex-row justify-content-between"},so={class:"hotel-card-slider"},oo=de({__name:"Home",setup(E){const{isGrabPreset:b}=xt(),{handlePostAuthRedirect:R}=_s(),h=Ce(),k=ce(),{homeActiveProduct:w,setHomeProduct:S,resetToStays:C}=Dt();{const s=h.query.product,a=Array.isArray(s)?s[0]:s;a==="flights"&&u.project.settings.enableFlights===!0?S("flights"):a==="experiences"&&u.project.settings.enableExperiences===!0&&S("experiences")}const N=[{key:"bestStayDeals",icon:Qe}
1,{key:"globalNetwork",icon:Ye},{key:"support247",icon:He}];Yt();function P(){return b.value?ae.now().toISODate():H.checkin}function I(){return b.value?ae.now().plus({days:1}).toISODate():H.checkout}const A=u.project.appearance.pages?.home?.components?.homeHotelCard?.id||"homeHotelCard1",{t:y}=Ze(),q=Et(),r=v(u.project?.settings||{}),{collections:d,isLoading:F,fetchPublishedCollections:he}=Se(),{isLiveRatesEnabled:G,isStaticRatesEnabled:Je,mergeRateResponse:et,fetchCollectionHomeLiveRates:tt,resolveStaticPricesForCollections:st,getMinPrice:me,getPropertyHotelIdsFromCollections:ot,isCollectionCardPriceLoading:ge,markLiveRatesFetchComplete:Ee,sortCollectionsForHome:it,ratesById:Re,isFetchingLiveRates:Ie,hasHomeLiveRatesCache:nt}=Qt(),T=f(()=>(G.value&&(Ie.value,Re.value),it(d.value))),J=f(()=>Rt(y("home.collections.header"))),lt=f(()=>le()&&(!j.value||d.value.length>0)),Le=s=>{!G.value||d.value.length===0||!s?.force&&nt(d.value)||tt(d.value,s)},pe=async s=>{d.value.length!==0&&(G.value?Le(s):Je.value&&await st(d.value))},ee=()=>{if(!le()||!j.value||d.value.length===0||!G.value||Ie.value)return;const s=ot(d.value);if(s.length===0)return;s.some(o=>{const c=Re.value.get(o)?.price;return typeof c=="number"&&c>0})||Le({force:!0})},at=[{breakpoint:"2000px",numVisible:3.5,numScroll:3},{breakpoint:"1199px",numVisible:2.6,numScroll:2},{breakpoint:"1031px",numVisible:2,numScroll:2},{breakpoint:"767px",numVisible:2,numScroll:1},{breakpoint:"614px",numVisible:1.4,numScroll:1},{breakpoint:"425px",numVisible:1.15,numScroll:1},{breakpoint:"335px",numVisible:1,numScroll:1}],Y=v([]),rt=[],U=v([]),L=v(rt),De=v(!0),te=v(!1),z=v(!1),j=v(ze()),Be=v(null),ve=v(null),Oe=v(null),fe=new Set,W=v([]),ct=f(()=>new Set(W.value)),ye=new Set,K=v([]),ut=f(()=>new Set(K.value)),se=v(null),M=v(3),_e=()=>{const s=window.innerWidth;s<=335?M.value=1:s<=425||s<=614?M.value=1.2:s<=1031?M.value=2:s<=1199?M.value=2.6:M.value=3},Ae=f(()=>({"--base-carousel-visible":M.value}));xe(async()=>{await R()||(_e(),window.addEventListener("resize",_e),B.on("hotels:fetch-rates:rate",Fe),B.on("hotels:fetch-rates:error",Ne),B.on("hotels:fetch-rates:complete",Te),B.on("connect",ee),window.addEventListener("pageshow",je),Ve.value&&mt().catch(()=>{}),q.hasDraggedMap=!1,q.isMapLayout=!1,le()?(ze()&&pe(),he().then(()=>{j.value=!0,pe()}).catch(a=>{console.error("Error fetching collections:",a),j.value=!0})):j.value=!0,U.value=(It()||[]).slice(0,10),qe().then(a=>{a&&(oe=`${a.latitude},${a.longitude}`),ie()}).catch(()=>{ie()}))});const Fe=s=>{if(s.requestId==="collections-home"){et(s);return}s.requestId==="nearby"&&(Array.isArray(s.result)&&s.result.forEach(a=>{!a||L.value.find(c=>c.id===a.id)||L.value.push(a)}),De.value=!1)};let oe="";const ie=async()=>{Y.value=[],L.value=[],fe.clear(),ye.clear(),K.value=[],W.value=[];const s=60*24;(r.value.stays?.showRecommendedHotel??r.value.showRecommendedHotel)!==!1?Lt(_.currency||"USD").then(a=>{const o=Array.isArray(a)?[...a]:[];for(let c=o.length-1;c>0;c--){const ne=Math.floor(Math.random()*(c+1));[o[c],o[ne]]=[o[ne],o[c]]}Y.value=o,z.value=!0}).catch(()=>{z.value=!0}):z.value=!0,(r.value.stays?.showNearByHotel??r.value.showNearByHotel)!==!1?B.emit("hotels:fetch-rates",{requestId:"nearby",pool:"nearby",placeId:oe||void 0,checkin:P(),checkout:I(),rooms:H.rooms,adults:H.adults,children:H.children,currency:_.currency,guestNationality:_.guestNationality,domain:u.project.domain,timeout:4,occupancies:H.occupancies,roomMapping:!1,cacheDuration:s,isGuestUser:_.isGuestUser}):te.value=!0};Z(()=>_.currency||_.guestNationality,()=>{ie(),le()&&j.value&&pe({force:!0})}),Z(()=>_.agentMargin,(s,a)=>{a!==void 0&&At&&_.guest?.isAgent&&ie()}),Z(()=>[j.value,d.value.length],()=>{ee()});const je=s=>{s.persisted&&ee()};function Ne(s){if(s.requestId==="collections-home"){Ee("collections-home");return}s.requestId==="nearby"&&(L.value=[],De.value=!1)}Z(()=>L.value.length,async()=>{const s=L.value.filter(o=>o.id&&!fe.has(o.id));if(s.length===0)return;const a=s.map(o=>o.id);a.forEach(o=>fe.add(o)),W.value=[...W.value,...a],await Ue(s,_.currency),W.value=W.value.filter(o=>!a.includes(o))}),Z(Y,async s=>{const a=s.filter(c=>c.id&&!ye.has(c.id));if(a.length===0)return;const o=a.map(c=>c.id);o.forEach(c=>ye.add(c)),K.value=[...K.value,...o],await Ue(a,_.currency),K.value=K.value.filter(c=>!o.includes(c))});const Te=s=>{if(s.requestId==="collections-home"){Ee("collections-home");return}s.requestId==="nearby"&&(te.value=!0)},Me=f(()=>q.occupancies.length>0?q.occupancies:H.occupancies),dt=["loyaltyBanner","staysHighlights","perkBanner","collections","recommendedHotels","re
1centSearches","nearbyHotels","destinationCollections"],D=f(()=>{const s=r.value.stays?.sectionsOrder??r.value.homeSectionsOrder;return(s?.length?s:dt).reduce((o,c,ne)=>(o[c]=ne,o),{})}),ht=()=>{const s=u.loyalty?.program?.appearance?.banner;if(!s)return"none";if(_.isMobile){const a=s.mobileBackgroundImage||s.backgroundImage;return a?`url('${a}')`:"none"}return s.backgroundImage?`url('${s.backgroundImage}')`:"none"},Ve=f(()=>r.value.stays?.showDestinationCollections!==!1),{collections:$e,fetchPublishedCollections:mt}=Se("destination"),gt=s=>{k.push(Tt(s))},pt=async()=>{if(!r.value.hasClickEvent)return;const s=ae.now().toISODate(),a=ae.now().plus({days:1}).toISODate();let o=oe;if(!o){const c=await qe();c?o=`${c.latitude},${c.longitude}`:u.geo?.ll&&(o=`${u.geo.ll[0]},${u.geo.ll[1]}`)}k.push({path:"/hotels",query:{...o?{placeId:o}:{pool:"nearby"},placeTypes:"nearby",checkin:s,checkout:a,rooms:H.rooms,adults:H.adults,children:"",name:y("search.aroundLabel"),occupancies:Ot(H.occupancies),sorting:Bt.DISTANCE_ASC}})};return Gt(()=>{window.removeEventListener("resize",_e),window.removeEventListener("pageshow",je),B.off("hotels:fetch-rates:rate",Fe),B.off("hotels:fetch-rates:error",Ne),B.off("hotels:fetch-rates:complete",Te),B.off("connect",ee),C()}),(s,a)=>(i(),l(V,null,[n(Ft),e(w)==="flights"?(i(),X(ns,{key:0})):e(w)==="experiences"?(i(),X(rs,{key:1})):(i(),l("div",bs,[(r.value.stays?.showHighlights??r.value.showHighlights)!==!1?(i(),l("div",{key:0,class:"stays-highlights-wrap",style:m({order:D.value.staysHighlights??0})},[n(Pe,{"test-id":"stays-highlights-section","translation-base-key":"home.highlights","highlight-items":N})],4)):p("",!0),r.value.perkHomePageBanner&&!e(_).isMobile&&(r.value.stays?.showPerkBanner??r.value.showPerkBanner)!==!1?(i(),l("div",{key:1,class:"hotels-list base-container",style:m({order:D.value.perkBanner??1})},[e(_).isMobile?p("",!0):(i(),l("div",ks,a[0]||(a[0]=[t("div",{class:"grid"},[t("div",{class:"col-12"},[t("img",{src:ts,alt:"Payment Card Perk Mode",style:{width:"100%",height:"auto",display:"block"}})])],-1)])))],4)):p("",!0),e(_).isMobile&&r.value.perkHomePageBanner&&(r.value.stays?.showPerkBanner??r.value.showPerkBanner)!==!1?(i(),l("div",{key:2,class:"grid-container perk-home-page-banner-mobile",style:m({order:D.value.perkBanner??1})},a[1]||(a[1]=[t("div",{class:"content"},[t("img",{src:ss,alt:"Payment Card Perk Mode",style:{width:"100%",height:"auto",display:"block"}})],-1)]),4)):p("",!0),e(Ge)("appearance.banner.isVisible")&&(r.value.stays?.showLoyaltyBanner??r.value.showLoyaltyBanner)!==!1?(i(),l("div",{key:3,class:"hotels-list base-container loyalty-program-banner-container",style:m({order:D.value.loyaltyBanner??2})},[t("div",{class:"grid-container loyalty-program-banner radius_md",onClick:pt},[t("div",{class:"content",style:m({backgroundImage:ht(),backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",position:"relative"})},[a[2]||(a[2]=t("div",{class:"gradient-overlay"},null,-1)),t("div",ws,[t("div",Ss,[e(Ge)("appearance.logo")?(i(),l("img",{key:0,src:e(u).loyalty?.program?.appearance?.logo,alt:"Loyalty Program Logo",class:"loyalty-program-logo"},null,8,Cs)):(i(),l("h2",Hs,x(e(u).loyalty?.program?.name),1))]),t("div",Ps,[t("span",null,x(e(u).loyalty?.program?.appearance?.banner?.title),1),t("p",null,x(e(u).loyalty?.program?.appearance?.banner?.description),1)])])],4)])],4)):p("",!0),lt.value&&(r.value.stays?.showCollections??r.value.showCollections)!==!1?(i(),l("div",{key:4,class:"hotels-list base-container",style:m({order:D.value.collections??3})},[j.value?(i(),l("div",{key:1,class:"grid-container collections-section",ref_key:"collectionsSection",ref:se},[T.value.length===1?(i(),l("div",Is,[t("div",Ls,[t("div",Ds,[t("h2",null,x(J.value),1),n($,{"ref-section":se.value,type:"bug",labelDiv:"collectionsSection"},null,8,["ref-section"])])]),t("div",Bs,[n(we,{collection:T.value[0],loading:e(F),minPrice:e(me)(T.value[0]),priceLoading:e(ge)(T.value[0])},null,8,["collection","loading","minPrice","priceLoading"])])])):T.value.length===2?(i(),l("div",Os,[t("div",As,[t("div",Fs,[t("h2",null,x(J.value),1),n($,{"ref-section":se.value,type:"bug",labelDiv:"collectionsSection"},null,8,["ref-section"])])]),t("div",js,[(i(!0),l(V,null,Q(T.value,o=>(i(),X(we,{key:o.id,collection:o,loading:e(F),minPrice:e(me)(o),priceLoading:e(ge)(o)},null,8,["collection","loading","minPrice","priceLoading"]))),128))])])):(i(),X(re,{key:2,title:J.value,items:T.value,responsiveOptions:at,defaultVisible:3,defaultScroll:3},{"title-extra":O(()=>[n($,{"ref-section":se.value,type:"bug",labelDiv:"collectionsSection"},null,8,["ref-section"])]),item:O(({data:o})=>[t("div",Ns,[n(we,{collection:o,loading:e(F),minPrice:e(me)(o),priceLoading:e(ge)(o)},null,8,["collection","loading","minPrice","priceLoading"])])]),_:1},8,["title","items"]))],512)):(i(),l("div",xs,[t("div",Es,[t("h2",null,x(J.value),1)]),t("div",Rs,[(i(),l(V,null,Q(3,o=>t("div",{key:o,class:"skeleton-track__item"},[n(e(g),{height:"280px","border-radius":"16px"})])),64))])]))],4)):p("",!0),Ve.value&&e($e).length?(i(),l("div",{key:5,class:"hotels-list base-container",style:m({order:D.value.destinationCollections??7})},[t("div",Ts,[n(Xe,{collections:e($e),product:"stays",onSelect:gt},null,8,["collections"])])],4)):p("",!0),(r.value.stays?.showRecommendedHotel??r.value.showRecommendedHotel)!==!1&&!z.value||z.value&&Y.value.length?(i(),l("div",{key:6,class:"hotels-list base-container",style:m({order:D.value.recommendedHotels??4})},[z.value?(i(),l("div",{key:1,class:"grid-container",ref_key:"recommendedHotelsSection",ref:Be},[n(re,{title:e(y)("home.recommendedHotels.header"),items:Y.value.slice(0,10),responsiveOptions:e(be),defaultVisible:3,defaultScroll:3},{"title-extra":O(()=>[n($,{"ref-section":Be.value,type:"bug",labelDiv:"recommendedHotelsSection"},null,8,["ref-section"])]),item:O(({data:o})=>[t("div",Us,[n(We,{variant:e(A),"has-likes":!1,hotel:o,checkin:e(H).checkin,checkout:e(H).checkout,sameTab:!0,occupancies:Me.value,source:"home_recommended","is-loyalty-loading":ut.value.has(o.id)},null,8,["variant","hotel","checkin","checkout","occupancies","is-loyalty-loading"])])]),_:1},8,["title","items","responsiveOptions"])],512)):(i(),l("div",Ms,[t("div",Vs,[t("h2",null,x(e(y)("home.recommendedHotels.header")),1)]),t("div",{class:"skeleton-track",style:m(Ae.value)},[(i(),l(V,null,Q(3,o=>t("div",{key:o,class:"skeleton-track__item"},[n(e(g),{height:"190px",class:"mb-2","border-radius":"0"}),t("div",$s,[t("div",qs,[t("div",null,[(i(),l(V,null,Q(5,c=>n(e(g),{key:c,height:"1rem",width:"1rem",class:"mr-1 inline-block"})),64))]),n(e(g),{width:"80%",height:"1.5rem"}),n(e(g),{width:"60%",height:".75rem"})]),t("div",Gs,[n(e(g),{width:"2rem",height:"2rem",shape:"circle"}),n(e(g),{width:"40%",height:"2rem"})])])])),64))],4)]))],4)):p("",!0),U.value&&U.value.length>0&&(r.value.stays?.showRecentSearches??r.value.showRecentSearches)!==!1?(i(),l("div",{key:7,class:"hotels-list base-container",style:m({order:D.value.recentSearches??5})},[t("div",{class:"grid-container",ref_key:"recentSearchsSection",ref:ve},[U.value.length===1?(i(),l("div",zs,[t("div",Ws,[t("div",Ks,[t("h2",null,x(e(y)("home.recentSearches.header")),1),n($,{"ref-section":ve.value,type:"bug",labelDiv:"recentSearchsSection"},null,8,["ref-section"])])]),t("div",Qs,[n(Ke,{searchItem:U.value[0],source:"recent_search_home"},null,8,["searchItem"])])])):(i(),X(re,{key:1,title:e(y)("home.recentSearches.header"),items:U.value,responsiveOptions:e(be),defaultVisible:3,defaultScroll:1},{"title-extra":O(()=>[n($,{"ref-section":ve.value,type:"bug",labelDiv:"recentSearchsSection"},null,8,["ref-section"])]),item:O(({data:o})=>[t("div",Xs,[n(Ke,{searchItem:o,source:"recent_search"},null,8,["searchItem"])])]),_:1},8,["title","items","responsiveOptions"]))],512)],4)):p("",!0),(r.value.stays?.showNearByHotel??r.value.showNearByHotel)!==!1&&!te.value||te.value&&L.value.length?(i(),l("div",{key:8,class:"hotels-list base-container",style:m({order:D.value.nearbyHotels??6})},[L.value.length?(i(),l("div",{key:1,class:"grid-container",ref_key:"nearbyHotelsSection",ref:Oe},[n(re,{title:e(b)?e(y)("home.nearbyHotels.grab_header"):e(y)("home.nearbyHotels.header"),items:L.value.slice(0,10),responsiveOptions:e(be),defaultVisible:3,defaultScroll:3},{"title-extra":O(()=>[n($,{"ref-section":Oe.value,type:"bug",labelDiv:"nearbyHotelsSection"},null,8,["ref-section"])]),item:O(({data:o})=>[t("div",so,[n(We,{variant:e(A),"has-likes":!1,hotel:o,checkin:P(),checkout:I(),sameTab:!0,occupancies:Me.value,source:"home_nearby","is-loyalty-loading":ct.value.has(o.id)},null,8,["variant","hotel","checkin","checkout","occupancies","is-loyalty-loading"])])]),_:1},8,["title","items","responsiveOptions"])],512)):(i(),l("div",Ys,[t("div",Zs,[t("h2",null,x(e(b)?e(y)("home.nearbyHotels.grab_header"):e(y)("home.nearbyHotels.header")),1)]),t("div",{class:"skeleton-track",style:m(Ae.value)},[(i(),l(V,null,Q(3,o=>t("div",{key:o,class:"skeleton-track__item"},[n(e(g),{height:"190px",class:"mb-2","border-radius":"0"}),t("div",Js,[t("div",eo,[t("div",null,[(i(),l(V,null,Q(5,c=>n(e(g),{key:c,height:"1rem",width:"1rem",class:"mr-1 inline-block"})),64))]),n(e(g),{width:"80%",height:"1.5rem"}),n(e(g),{width:"60%",height:".75rem"})]),t("div",to,[n(e(g),{width:"2rem",height:"2rem",shape:"circle"}),n(e(g),{width:"40%",height:"2rem"})])])])),64))],4)]))],4)):p("",!0)]))],64))}}),$o=ue(oo,[["__scopeId","data-v-0e1a93c9"],["__file","Home.vue"]]);export{$o 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.