const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["appearance-modal-CV-RI2yW-v01.js","getyourguide-compass-BmnthY3P-v01.js","vendors-vue-framework-CKAxvAVK-v01.js","vendors-D9JpCmDw-v01.js","assets/vendors-DugBFrWN-v01.css","assets/getyourguide-compass-CBRSyBJf-v01.css","commons-store-D34gg_jG-v01.js","getyourguide-framework-CqQZ_RvY-v01.js","vendors-framework-StFOZgBK-v01.js","assets/index-0plDJhsy.js","vendors-sentry-Cc8i_4oM-v01.js","assets/appearance-modal-BWksjmcz-v01.css","login-context-menu-BzXrZsXp-v01.js","currency-picker-ciiec-eS-v01.js","list-picker-C1ctv9o3-v01.js","assets/currency-picker-ohCktgs8-v01.css","modal-Cgs-lv7d-v01.js","assets/modal-IOSz0NAq-v01.css","language-picker-DNV6r1SV-v01.js","assets/language-picker-BZtrzJin-v01.css","recommendation-card-metadata-DbgsOU5c-v01.js","assets/login-context-menu-DVlnMT5p-v01.css","language-picker-modal-B5cmkd88-v01.js","assets/language-picker-modal-C2EZifnv-v01.css","currency-picker-modal-b2uzWBZ0-v01.js","assets/currency-picker-modal-Ci44_iCe-v01.css","currency-picker-bottom-sheet-DQNGXF6q-v01.js","assets/currency-picker-bottom-sheet-ShlkoRKY-v01.css","global-main-menu-CGsW4bP9-v01.js","assets/global-main-menu-Cu7JG8in-v01.css","locales.ar-BOPYZOGX-v01.js","locales.bg-DSaT7Kdk-v01.js","locales.ca-BRQnJkrP-v01.js","locales.cs-BFo5B2LQ-v01.js","locales.da-Adj491V5-v01.js","locales.de-B2Cwn1Ct-v01.js","locales.el-DChhokKp-v01.js","locales.es-DYoRnmHK-v01.js","locales.et-kFx9kTiX-v01.js","locales.fi-U1vTAPSn-v01.js","locales.fr-DTbYRQAg-v01.js","locales.he-CUo3nAz2-v01.js","locales.hr-Crv0m-yD-v01.js","locales.hu-r5p-kcaZ-v01.js","locales.id-3iNet4bc-v01.js","locales.it-COyBetL9-v01.js","locales.ja-DNTrafRd-v01.js","locales.ko-DwrpRQ1l-v01.js","locales.lt-D-ZEBnjo-v01.js","locales.lv-COcAByDX-v01.js","locales.ms-B70Xe7vJ-v01.js","locales.nl-CKodBKiK-v01.js","locales.nn-B_d9f0k--v01.js","locales.pl-D8GoScpg-v01.js","locales.pt-Dwvgot0H-v01.js","locales.ro-DLAcWkUo-v01.js","locales.ru-pFodg3l--v01.js","locales.sk-DpEAwTTO-v01.js","locales.sl-B97iJI6c-v01.js","locales.sr-DXWYP2FT-v01.js","locales.sv-Dx8zaRpM-v01.js","locales.th-Vs7C6r3N-v01.js","locales.tr-DEAjudYt-v01.js","locales.uk-ChpWdGAr-v01.js","locales.zh-Ni38BF-H-v01.js","newsletter-banner-DpTfmtOd-v01.js","track-visibility-v2-DSKS9Yrf-v01.js","assets/newsletter-banner-B7JKAjrI-v01.css","notification-login-CtP3Eib--v01.js","assets/notification-login-CdHW0Q0L-v01.css","endpoints-redirect-bqZ5q9GH-v01.js","assets/endpoints-redirect-Cqj5nbbg-v01.css","authentication-form-CHcj1A3m-v01.js","assets/authentication-form-XkyNgbCC-v01.css","app-banner-BMA3EVr4-v01.js","rating-star-BCdDxeQ5-v01.js","assets/rating-star-DSpLotKn-v01.css","assets/app-banner-BOKMbya8-v01.css","promotions-CQhAUzxj-v01.js","assets/promotions-BiZcnhHV-v01.css","partner-footer-notification-DdaUj8WU-v01.js","dismiss-partner-notifications-BxhEnXfO-v01.js","assets/partner-footer-notification-DF3Zw0EG-v01.css","partner-header-notification-DiYowiq5-v01.js","partner-footer-BOh0Vyv6-v01.js","assets/partner-footer-D7tNSgCn-v01.css"])))=>i.map(i=>d[i]);
var to=Object.defineProperty;var oo=(e,t,o)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Q=(e,t,o)=>oo(e,typeof t!="symbol"?t+"":t,o);import{a as b,C as mt,_ as y,g as V,d as F,l as ao,b as ro,m as io,n as so,k as no,j as lo,h as co,c as uo}from"./getyourguide-compass-BmnthY3P-v01.js";import{d as C,a8 as $,x as _e,f as d,o as r,c as u,i as h,w as f,r as D,n as w,e as n,y as H,P as Se,p as B,j as _,b as g,ae as N,af as z,ai as de,l as ho,t as S,T as gt,m as q,F as L,ap as ie,s as O,g as ae,h as we,a as T,q as te,aq as ne,ah as ft,v as po,ad as Ce,z as mo,ag as ke,a6 as go,u as qe,M as x,ar as fo,Q as yo,Y as _o,a0 as vo}from"./vendors-vue-framework-CKAxvAVK-v01.js";import{c as P,ao as yt,ap as _t,aq as vt,e as G,a1 as So,ar as ee,as as X,ak as Ve,a0 as St,at as ce,au as wt,av as be,an as Ct,l as A,m as Z,aw as tt,ax as wo,a2 as Me,ad as Co,ay as kt,az as De,aA as ko,aB as bo,aC as ot,aD as To,aE as $o,aF as Io,aG as Ee,aH as Do,aI as Eo,aJ as Po}from"./commons-store-D34gg_jG-v01.js";import{g as U,j as bt,a5 as Lo,a6 as Tt,a7 as Ao,a8 as Bo,a9 as K,aa as Mo,s as ze,ab as Ro,ac as J,ad as ue,ae as Fo,af as Oo,ag as No,ah as Uo,ai as Ho,aj as qo,ak as Vo,al as zo,am as Go}from"./assets/index-0plDJhsy.js";import{k as Te,o as Wo,j as Qo,y as jo,z as Yo,A as Ko}from"./vendors-D9JpCmDw-v01.js";import{x as Re,a as ve,f as $t,p as Fe}from"./vendors-framework-StFOZgBK-v01.js";const It=C({name:"PartnerStyleOverrideMixin",computed:{...$({partnerSearchBgColor:"partnerCustomizations/searchBgColor",partnerButtonColor:"partnerCustomizations/buttonColor",partnerDisplayGygLogo:"partnerCustomizations/displayGygLogo"}),partnerCustomizations(){return this.partnerButtonColor?{"--button-color":this.partnerButtonColor}:void 0}}}),Jo="#1A2B49",Xo=C({name:"PartnerThemingMixin",data(){return{}},computed:{...$({isWebView:"context/isWebView",partnerButtonColor:"partnerCustomizations/buttonColor"})},mounted(){if(this.partnerHash&&!this.isWebView){const e=document.documentElement;if(!e)return;if(e.setAttribute("data-theme",`partner-${this.partnerHash}`),this.partnerButtonColor){e.style.setProperty("--interactive-primary",this.partnerButtonColor);const t=this.getColorValues(this.partnerButtonColor);e.style.setProperty("--interactive-primary-hovered",this.lightenDarkenColor(t,32)),e.style.setProperty("--interactive-primary-pressed",this.lightenDarkenColor(t,64)),this.shouldLightenOrDarken(t)&&e.style.setProperty("--on-interactive-primary",Jo)}}},methods:{lightenDarkenColor(e,t){const o=m=>(m>255?m=255:m<0&&(m=0),m),a=this.shouldLightenOrDarken(e)?-t:t,s=o(e.red+a),l=o(e.green+a),c=(o(e.blue+a)|l<<8|s<<16).toString(16);return"#"+(c.length<6?"0"+c:c)},shouldLightenOrDarken(e){return(e.red*299+e.green*587+e.blue*114)/1e3>=128},getColorValues(e){if(e.length!==6&&e.length!==7)return{red:0,green:0,blue:0};e[0]==="#"&&(e=e.slice(1));const t=parseInt(e,16),o=t>>16,a=t>>8&255,s=t&255;return{red:o,green:a,blue:s}}}}),Dt=e=>({sendClickLogoEvent:(o,a)=>{const s="gyg_logo",l=Number(a),c={action:"click",id:s,target:s,container_name:o,metadata:a===void 0?{}:{location_id:l}};e.logTravelerUIClick(c.target,c.id,c.metadata)}}),ye="LOGIN_MODAL",Zo="SIGNUP_MODAL",Et="SIGNUP_SOCIAL_MODAL",xo={"data-hj-suppress":!0};var Pt=(e=>(e.DARK="dark",e.LIGHT="light",e.SYSTEM="system",e))(Pt||{});const Pe="gygTheme",ea="gygThemeFollowSystem",ta=365*24*60*60;class at{constructor(){Q(this,"cookies");this.cookies=P(),this.cookies.expire(ea)}getTheme(){return this.cookies.get(Pe)||"light"}setTheme(t){const o=document.documentElement;o&&(o.setAttribute("data-theme",t),this.cookies.set(Pe,t,{maxAge:ta}))}reset(){this.cookies.expire(Pe)}}var R=(e=>(e.default="default",e.checkout="checkout",e.shoppingCartHeader="shopping_cart_header",e.none="none",e))(R||{}),ge=(e=>(e.none="none",e.full="full",e))(ge||{}),me=(e=>(e.none="none",e.standalone="standalone",e.full="full",e))(me||{});const fe=C({name:"ListenOnRootMixin",inject:["rootEmitter"],data(){return{rootEmitterHandlersToCleanup:[]}},beforeUnmount(){this.rootEmitterHandlersToCleanup.forEach(e=>e()),this.rootEmitterHandlersToCleanup=[]},methods:{listenOnRoot(e,t){const o=this.rootEmitter.on(e,t);this.rootEmitterHandlersToCleanup.push(o)},emitOnRoot(e,...t){this.rootEmitter.emit(e,...t)}}});var Lt=(e=>(e.light="light",e.dark="dark",e.transparent="transparent",e))(Lt||{});const oa=()=>({authLocalStorageAvailable:_e(()=>{try{return!!window?.localStorage}catch{return!1}})}),aa={class:"li__link__icon"},ra=C({__name:"navigation-item",props:{title:{},url:{},target:{},selected:{type:Boolean},rel:{},alwaysShowLabel:{type:Boolean}},emits:["mouseenter","mouseleave","click"],setup(e){return(t,o)=>{const a=d("Link");return r(),u("li",{class:w(["li",{"li--selected":t.selected}]),onMouseenter:o[1]||(o[1]=s=>t.$emit("mouseenter",s)),onMouseleave:o[2]||(o[2]=s=>t.$emit("mouseleave",s))},[h(a,{class:"li__link",title:t.title,href:t.url,target:t.target,rel:t.rel,onClick:o[0]||(o[0]=s=>t.$emit("click",s))},{default:f(()=>[n("span",aa,[D(t.$slots,"icon",{},void 0,!0)]),n("span",{class:w(["li__link__text",{"li__link__text--always-visible":t.alwaysShowLabel}])},[D(t.$slots,"default",{},void 0,!0)],2)]),_:3},8,["title","href","target","rel"]),D(t.$slots,"hidden-content",{},void 0,!0)],34)}}}),ia=b(ra,[["__scopeId","data-v-f5df436d"]]),Oe=e=>{typeof localStorage<"u"&&localStorage?.removeItem(e)},sa=(e,t)=>typeof localStorage<"u"&&localStorage.getItem(e)||t,Ge=(e,t)=>{const o=sa(e,t);return JSON.parse(o)},na=()=>{const e=da();return new Date(e)<new Date&&e?(la(),!0):!1},la=()=>{typeof localStorage<"u"&&(Oe(yt),Oe(_t),ca())},ca=()=>{typeof localStorage<"u"&&(Oe(vt),document.querySelector(".notification-dot")?.remove())},da=()=>Ge(yt,"0"),Dd=()=>Ge(_t,"{}"),ua=()=>!na()&&!!Ge(vt,"0"),ha="chk-currency-picker-experiment-header-click",pa="chk-currency-picker-experiment-footer-click",At=(e,t)=>{const{showSeconds:o,showHours:a}=ma(t),s=Math.floor(e/3600),l=a?Math.floor((e-s*3600)/60)%60:Math.floor(e/60),i=Math.floor(e-s*3600-l*60)%60;let c="";return a&&s>0&&(c+=s<10?"0"+s:s,c+=":"),c+=l<10&&(o||s>0)?"0"+l:l,o&&(c+=":",c+=i<10?"0"+i:i),c},ma=e=>({showSeconds:!0,showHours:!0,...e}),ga=H(null),fa=H(null),ya=H(""),We=e=>{H(null),H(null),H("");const t=ga,o=fa,a=ya,{cartExpiration:s,forceUpdateCountdown:l,onCountdownEnd:i}=e||{},c=()=>{if(!t.value){a.value="";return}const p=t.value.getTime()-new Date().getTime();if(p<=0){a.value="",o.value=null,i?.();return}a.value=At(p/1e3),o.value=setTimeout(c,1e3)},m=()=>{o.value&&clearTimeout(o.value)},v=(p,k)=>{p&&(k||!t.value)&&(t.value=new Date(p),m(),c())};return v(s,l),{cartExpirationCountdownTime:a,updateCartExpirationIfNotSet:v}},_a=B(()=>y(()=>import("./appearance-modal-CV-RI2yW-v01.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),va=B(()=>y(()=>import("./login-context-menu-BzXrZsXp-v01.js"),__vite__mapDeps([12,2,3,4,6,7,8,13,14,1,5,9,10,15,16,17,18,19,20,21]))),Sa=B(()=>y(()=>import("./modal-Cgs-lv7d-v01.js"),__vite__mapDeps([16,1,2,3,4,5,17]))),wa=B(()=>y(()=>Promise.resolve().then(()=>ai),void 0)),Ca=B(()=>y(()=>import("./language-picker-modal-B5cmkd88-v01.js"),__vite__mapDeps([22,1,2,3,4,5,23]))),ka=B(()=>y(()=>import("./currency-picker-modal-b2uzWBZ0-v01.js"),__vite__mapDeps([24,1,2,3,4,5,25]))),ba=B(()=>y(()=>import("./currency-picker-bottom-sheet-DQNGXF6q-v01.js"),__vite__mapDeps([26,1,2,3,4,5,27]))),Ta=B(()=>y(()=>import("./global-main-menu-CGsW4bP9-v01.js"),__vite__mapDeps([28,16,1,2,3,4,5,17,6,7,8,9,10,29]))),$a=C({name:"Navigation",components:{CIconButton:mt,AppearanceModal:_a,LoginContextMenu:va,Modal:Sa,SearchAutocomplete:wa,LanguagePickerModal:Ca,CurrencyPickerModal:ka,CurrencyPickerBottomSheet:ba,NavigationItem:ia,GlobalMainMenu:Ta},mixins:[fe],inject:["rootEmitter"],props:{parent:{type:String,required:!1,default:null},headerType:{type:String,required:!1,default:Lt.light},shouldRenderSearch:{type:Boolean,default:!0},shouldRenderAuthActions:{type:Boolean,default:!0},shouldRenderWishlist:{type:Boolean,default:!0},shouldRenderCart:{type:Boolean,default:!0},currencySwitcherHeaderLayout:{type:String,required:!1,default:ge.none},showCountdownOnCart:{type:Boolean,required:!1,default:!1},layoutType:{type:String,required:!1,default:R.default},dense:{type:Boolean,required:!1,default:!1},showProfileSectionTitle:{type:Boolean,required:!1,default:!1}},setup(){const e=H(!1),{authLocalStorageAvailable:t}=oa(),{cartExpirationCountdownTime:o}=We();return Se(()=>{e.value=!0}),{authLocalStorageAvailable:t,hasMounted:e,cartExpirationCountdownTime:o}},data(){return{hidePII:xo,showCurrencyPickerModal:!1,showLanguagePickerModal:!1,showLoginContextMenuModal:!1,showLoginContextMenuDropdown:!1,showAppearanceModal:!1,showSearchModal:!1,showLoginContextCurrencyPickerModal:!1,showLoginContextLanguagePickerModal:!1,themeSelected:Pt.LIGHT,dropdownTimeout:null,showNotificationDot:!1}},computed:{...$({currentCurrencyItem:"context/currentCurrencyItem",currentLocaleItem:"context/currentLocaleItem",localePath:"context/localePath",showWishlistNotification:"wishlist/showWishlistNotification",currentLocaleIso:"context/locale",domainLocaleUrls:"context/domainLocaleUrls",shoppingCartMeta:"context/shoppingCartMeta",isMobileDevice:"context/isMobileDevice",isTabletDevice:"context/isTabletDevice",isRobot:"context/isRobot",isLoggedIn:"auth/isLoggedIn",isAmexPartnerCustomization:"partnerCustomizations/isAmexPartnerCustomization",partnerHash:"partnerCustomizations/hash",hideHeaderSupplierAdvertising:"partnerCustomizations/hideHeaderSupplierAdvertising",globalNav:"globalNav/globalNavigation"}),customersFirstName(){return this.$store.state.auth.customer.firstName},containerName(){return U(this.$route)},shouldRenderHeaderPickers(){return this.isMobileDevice?this.isTabletDevice:!0},shoppingCartItemCount(){let e=this.shoppingCartMeta?.itemCount??0;return Math.min(e,99)},shoppingCartHeader(){return this.layoutType===R.shoppingCartHeader},isBookingsPage(){return this.$route.name==="MyBookings"},isAccountProfilePage(){return this.$route.name==="AccountProfile"},isWishlistPage(){return this.$route.name==="Wishlist"},isCartPage(){return this.$route.name==="ShoppingCart"},supplyPartnerUrl(){return`https://supplier.getyourguide.com/?utm_source=inbound&utm_medium=b2c_website_supply&utm_campaign=navbar_${this.utmCampaignForSuppliers}_versionb`},utmCampaignForSuppliers(){switch(this.$route.name){case"Home":return"home";case"Activity":return"adp";case"Trips":case"Location":return"tripitem";default:return"other"}},showBecomeASupplier(){return!this.isCartPage&&!this.isLoggedIn&&!this.hideHeaderSupplierAdvertising},showProfileSection(){return this.shouldRenderAuthActions&&(!this.hasMounted||this.authLocalStorageAvailable)},currencySwitcherNavigationLabel(){const e=this.currentCurrencyItem.iso??"";let t=this.currentCurrencyItem.symbol??"";return(t.includes("$")||e==="MXN")&&(t="$"),t.includes("¥")&&(t="¥"),t.includes("£")&&(t="£"),["DKK","NOK","SEK"].includes(e)&&(t="kr"),e==="CHF"?e:`${e} ${t}`},shouldShowCurrencySwitcher(){return this.currencySwitcherHeaderLayout===ge.full},shouldCurrencySwitcherBeBottomSheet(){return this.shouldShowCurrencySwitcher&&this.isMobileDevice},profileIcon(){return this.isMobileDevice?"menu-list":"user"},isCountdownOnCartVisible(){return!!this.cartExpirationCountdownTime&&this.showCountdownOnCart},cartLabel(){return this.isCountdownOnCartVisible?this.cartExpirationCountdownTime:this.$t("pModules_Header cart")}},mounted(){const e=new at;this.themeSelected=e.getTheme(),this.listenOnRoot("currency-selected",()=>{this.showCurrencyPickerModal=!1,this.showLoginContextMenuModal=!1}),this.listenOnRoot("hide:loginContextModal",()=>{this.showLoginContextMenuModal=!1}),ua()&&(this.showNotificationDot=!0),this.emitCartIconPosition(),window.addEventListener("resize",this.emitCartIconPosition)},beforeDestroy(){window.removeEventListener("resize",this.emitCartIconPosition)},methods:{createRelativeUrlPath:G,emitCartIconPosition(){Te(()=>{const e=this.$refs.navCartIcon;this.rootEmitter.emit("cart-icon-position",e)},300)()},handleThemeChange(e){this.themeSelected=e,new at().setTheme(e);const o={id:e,target:"appearanceThemeSelected",action:"click",container_name:this.containerName};this.$analyticsLogger.logTravelerUIClick(o.target,o.id)},isModalShown(){return this.showCurrencyPickerModal||this.showLanguagePickerModal||this.showAppearanceModal||this.showSearchModal},openAppearanceModal(){this.showLoginContextMenuDropdown=!1,this.showAppearanceModal=!0;const e={id:"appearance-modal",target:"showAppearanceModal",action:"click",container_name:this.containerName};this.$analyticsLogger.logTravelerUIClick(e.target,e.id)},openLanguageModal(){this.showLoginContextMenuDropdown=!1,this.showLoginContextLanguagePickerModal=!0},onCurrencyPickerNavigationClick(){this.$analyticsLogger.logTravelerUIClick("checkout-currency-picker-v1","header"),bt.event(ha),this.openCurrencyModal()},openCurrencyModal(){this.showLoginContextMenuDropdown=!1,this.showLoginContextCurrencyPickerModal=!0},clickLoginContextMenu(){this.shouldDisplayModal()&&(this.globalNav||this.$store.dispatch("globalNav/fetchGlobalNavigation"),this.showLoginContextMenuModal=!0)},shouldDisplayModal(){return window.matchMedia("(max-width: 1023px)").matches},mountRedirectPartnerUrl(e,t){const o=`${this.domainLocaleUrls[this.currentLocaleIso]}`,a=`${o}${window.location.pathname}${window.location.search}`;return`${o}/${t}?next=${a}&partner_id=${e}`},onLoginSignupClick(e){const t=So(window.location.host);if(t){const o=this.mountRedirectPartnerUrl(t,e);window.location.replace(o)}else{const o=e==="login"?ye:Et;this.rootEmitter.emit("show:modal",o)}},onBecomeASupplierLinkClick(){this.$analyticsLogger.logTravelerUIClick("becomeASupplierBanner")},onHoverLoginDropdown(){this.isModalShown()||(this.dropdownTimeout&&clearTimeout(this.dropdownTimeout),this.showLoginContextMenuDropdown=!0)},onHoverLoginDropdownLeave(){this.dropdownTimeout=setTimeout(()=>{this.showLoginContextMenuDropdown=!1},200)},updateBodyOverflow(e=""){const t=document.querySelector("body");t&&(t.style.overflow=e)},openSearchModal(){this.showSearchModal=!0,this.updateBodyOverflow("hidden")},closeSearchModal(){this.showSearchModal=!1,this.updateBodyOverflow()}}}),Ia={class:"become-supplier"},Da={"data-test-id":"wishlist-header"},Ea={ref:"navCartIcon",class:"item__cart--icon"},Pa={"data-test-id":"header-bookings"},La={class:"notification-dot"},Aa={"data-test-id":"header-login-nav"},Ba={key:0};function Ma(e,t,o,a,s,l){const i=d("NavigationItem"),c=d("CIconButton"),m=d("SearchAutocomplete"),v=d("LoginContextMenu"),p=d("GlobalMainMenu"),k=d("Modal"),E=d("LanguagePickerModal"),W=d("AppearanceModal");return r(),u("nav",{class:w(["navigation",e.parent,e.headerType])},[n("ul",{class:w(["navigation__list navigation__list-become-supplier",{"navigation__list--with-countdown":e.isCountdownOnCartVisible}])},[e.showBecomeASupplier?(r(),_(i,{key:0,class:"item__become-supplier",title:"Become a supplier",target:"_blank",url:e.supplyPartnerUrl,onClick:e.onBecomeASupplierLinkClick},{default:f(()=>[n("span",Ia,S(e.$t("pHome_cHeader_become_supplier")),1)]),_:1},8,["url","onClick"])):g("",!0),e.shouldRenderSearch?(r(),_(i,{key:1,title:e.$t("pModules_header submit search"),"data-test-id":"header-navigation-search",class:"item__search"},{icon:f(()=>[h(c,{icon:"search-magnifier",variant:"transparent",color:"tertiary",title:e.$t("pModules_header submit search"),onClick:e.openSearchModal},null,8,["title","onClick"])]),"hidden-content":f(()=>[e.showSearchModal?(r(),_(m,{key:0,"is-panel-open":!0,"show-auto-complete-search-box":!1,onPanelClosed:e.closeSearchModal},null,8,["onPanelClosed"])):g("",!0)]),_:1},8,["title"])):g("",!0),e.shouldRenderWishlist?N((r(),_(i,{key:2,"data-test-id":"header-navigation-wishlist",class:w({"item__wishlist-notification-enabled":e.showWishlistNotification,"item__wishlist-notification-disabled":!e.showWishlistNotification}),title:e.$t("pwishlist_header"),url:e.createRelativeUrlPath(e.localePath,"/wishlists/"),selected:e.isWishlistPage},{icon:f(()=>[h(c,{icon:"heart",variant:"transparent",color:"tertiary","aria-label":e.$t("pwishlist_header")},null,8,["aria-label"])]),default:f(()=>[n("span",Da,S(e.$t("pwishlist_header")),1)]),_:1},8,["class","title","url","selected"])),[[z,!e.hasMounted||e.authLocalStorageAvailable]]):g("",!0),e.shouldShowCurrencySwitcher?(r(),_(i,{key:3,class:"item__checkout-currency-picker",title:e.$t("pcheckout_currency_switcher_title"),onClick:de(e.onCurrencyPickerNavigationClick,["prevent"])},{icon:f(()=>[h(c,{icon:"globe",variant:"transparent",color:"tertiary","aria-label":e.$t("pcheckout_currency_switcher_title")},null,8,["aria-label"])]),default:f(()=>[n("span",null,S(e.currencySwitcherNavigationLabel),1)]),_:1},8,["title","onClick"])):g("",!0),e.shouldRenderCart?(r(),_(i,{key:4,"data-test-id":"header-navigation-cart",title:e.$t("pModules_Header cart"),url:e.createRelativeUrlPath(e.localePath,"/cart/"),selected:e.isCartPage,"always-show-label":e.isCountdownOnCartVisible},{icon:f(()=>[n("div",Ea,[h(c,{icon:"cart",variant:"transparent",color:"tertiary","aria-label":e.$t("pModules_Header cart")},null,8,["aria-label"]),h(gt,{mode:"out-in",name:"fade"},{default:f(()=>[e.shoppingCartItemCount?(r(),u("span",{key:0,class:w(["item__cart--icon--count",{"item__cart--icon--count--wide":e.shoppingCartItemCount>9}])},S(e.shoppingCartItemCount),3)):g("",!0)]),_:1})],512)]),default:f(()=>[n("span",null,S(e.cartLabel),1)]),_:1},8,["title","url","selected","always-show-label"])):g("",!0),e.isLoggedIn?(r(),_(i,{key:5,url:e.createRelativeUrlPath(e.localePath,"/customer-bookings/?referrer_source=site_header"),title:e.$t("pModules_Header bookings"),"data-test-id":"header-navigation-bookings",selected:e.isBookingsPage},{icon:f(()=>[h(c,{icon:"tickets",variant:"transparent",color:"tertiary","aria-label":e.$t("pModules_Header bookings")},null,8,["aria-label"])]),default:f(()=>[n("span",Pa,S(e.$t("pModules_Header bookings")),1)]),_:1},8,["url","title","selected"])):g("",!0),N(h(i,{"data-test-id":"header-login-btn",url:"#",selected:e.isAccountProfilePage,title:e.$t("adr_navigation_bottombar_profile"),onMouseenter:e.onHoverLoginDropdown,onMouseleave:e.onHoverLoginDropdownLeave,onClick:de(e.clickLoginContextMenu,["prevent"])},{icon:f(()=>[N(n("span",La,null,512),[[z,e.showNotificationDot]]),h(c,{icon:e.profileIcon,class:"icon",variant:"transparent",color:"tertiary","aria-label":e.$t("adr_navigation_bottombar_profile")},null,8,["icon","aria-label"])]),"hidden-content":f(()=>[e.shouldRenderHeaderPickers&&e.showLoginContextMenuDropdown?(r(),_(v,{key:0,class:w(["item-picker",{"dropdown-item-picker--visible":e.showLoginContextMenuDropdown}]),parent:"login-context-menu",onOnLoginClick:t[0]||(t[0]=M=>e.onLoginSignupClick("login")),onShowAppearanceModal:e.openAppearanceModal,onShowLanguageModal:e.openLanguageModal,onShowCurrencyModal:e.openCurrencyModal,"theme-selected":e.themeSelected},null,8,["onShowAppearanceModal","onShowLanguageModal","onShowCurrencyModal","theme-selected","class"])):g("",!0),e.showLoginContextMenuModal||e.globalNav?(r(),_(k,{key:1,show:e.showLoginContextMenuModal,"additional-class":"full-screen-modal login-context-menu-modal","include-markup-in-dom":!!e.globalNav&&e.isRobot,title:e.$t("pModules_Header Menu"),onCloseModal:t[2]||(t[2]=M=>e.showLoginContextMenuModal=!1)},{default:f(()=>[e.globalNav?(r(),_(p,{key:0,"destination-menu":e.globalNav},null,8,["destination-menu"])):g("",!0),e.showLoginContextMenuModal?(r(),_(v,{key:1,parent:"item__dropdown-modal",onOnLoginClick:t[1]||(t[1]=M=>e.onLoginSignupClick("login")),onShowAppearanceModal:e.openAppearanceModal,onShowLanguageModal:e.openLanguageModal,onShowCurrencyModal:e.openCurrencyModal,"theme-selected":e.themeSelected,"show-profile-section-title":e.showProfileSectionTitle||!!e.globalNav},null,8,["onShowAppearanceModal","onShowLanguageModal","onShowCurrencyModal","theme-selected","show-profile-section-title"])):g("",!0)]),_:1},8,["show","include-markup-in-dom","title"])):g("",!0)]),default:f(()=>[n("span",Aa,[e.isLoggedIn?g("",!0):(r(),u("span",Ba,S(e.$t("adr_navigation_bottombar_profile")),1)),e.isLoggedIn?(r(),u("span",q({key:1,"data-test-id":"header-nav-customer-name"},e.hidePII),S(e.customersFirstName),17)):g("",!0)])]),_:1},8,["selected","title","onMouseenter","onMouseleave","onClick"]),[[z,e.showProfileSection]])],2),e.showLoginContextLanguagePickerModal?(r(),_(E,{key:0,onClose:t[3]||(t[3]=M=>e.showLoginContextLanguagePickerModal=!1)})):g("",!0),e.showLoginContextCurrencyPickerModal?(r(),_(ho(e.shouldCurrencySwitcherBeBottomSheet?"CurrencyPickerBottomSheet":"CurrencyPickerModal"),{key:1,onClose:t[4]||(t[4]=M=>e.showLoginContextCurrencyPickerModal=!1)},null,32)):g("",!0),e.showAppearanceModal?(r(),_(W,{key:2,"theme-selected":e.themeSelected,onChange:e.handleThemeChange,onClose:t[5]||(t[5]=M=>e.showAppearanceModal=!1)},null,8,["theme-selected","onChange"])):g("",!0)],2)}const Bt=b($a,[["render",Ma]]);var oe=(e=>(e[e.Enter=13]="Enter",e[e.Caps=20]="Caps",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e))(oe||{});const Le=e=>e.map(t=>Mt(t)),Mt=e=>({suggestion:e.suggestion,suggestion_id:e.suggestionId,type:e.type,location_type:e.locationType,location_id:e.locationId,country_id:e.countryId,category_id:e.categoryId,position:e.position}),Rt=e=>({shouldNotFetchSuggestions:l=>l===oe.Enter||l===oe.Caps||l===oe.ArrowLeft||l===oe.ArrowUp||l===oe.ArrowRight||l===oe.ArrowDown,sendSubmitEvent:({searchedTerm:l,selectedSuggestion:i,suggestions:c,searchPanelSubmit:m})=>{const p={action:"SearchBarSubmit",target:"SearchBarSubmission",id:"search-bar",searched_term:l,metadata:{searchPanelSubmit:m}};i!==void 0&&(p.selected_suggestion=Mt(i)),c&&(p.suggestions=Le(c));const k={...p,metadata:JSON.stringify(p.metadata)};e.log("WebSearchBarSubmit",k)},sendNonSubmittedTermEvent:({searchedTerm:l,suggestions:i,searchPanelSubmit:c})=>{const m="SearchBarExit",v=Array.isArray(i)&&i.length?Le(i):[],p={action:m,target:m,id:"search-bar",searched_term:l,suggestions:v,metadata:{searchPanelSubmit:c}},k={...p,metadata:JSON.stringify(p.metadata)};e.log("WebSearchBarExit",k)},seeAllResultsTracking:({searchedTerm:l,suggestions:i})=>{const m={action:"SearchBarSubmit",target:"see_all_autocomplete",id:"search-bar",searched_term:l};i&&(m.suggestions=Le(i));const v={...m,metadata:void 0};e.log("WebSearchBarSubmit",v)}}),Ra=C({name:"LazyLoadedImage",props:{imageSrc:{type:String,required:!0},placeHolderImageSrc:{type:String,required:!1,default:""},altText:{type:String,required:!1,default:""},title:{type:String,required:!1,default:""},imageWidth:{type:String,required:!1,default:"100%"},imageHeight:{type:String,required:!1,default:"auto"}},watch:{imageSrc(e,t){if(e!==t){const o=this.$refs?.image;o.src=e}},imageHeight(e,t){e!==t&&this.setImageAttributes("height",e)},imageWidth(e,t){e!==t&&this.setImageAttributes("width",e)}},mounted(){this.setImageAttributes("height",this.imageHeight),this.setImageAttributes("width",this.imageWidth)},methods:{setImageAttributes(e,t){const o=this.$refs?.image;o&&o.setAttribute(e,t)}},computed:{...$({assetsCdnUrl:"context/assetsCdnUrl"}),placeHolder(){return this.$props.placeHolderImageSrc!==""?this.$props.placeHolderImageSrc:`${this.assetsCdnUrl}/assets/static/miscellaneous/transparent.png`}}}),Fa=["alt","src","title"];function Oa(e,t,o,a,s,l){return r(),u("img",q({ref:"image",alt:e.altText,src:e.imageSrc,title:e.title},e.$attrs,{loading:"lazy"}),null,16,Fa)}const $e=b(Ra,[["render",Oa]]),Ae=e=>{if(!e)return"";let t=e?.slice(0,e.lastIndexOf("."))+".webp";const o=e.split("?")?.[1];return o&&(t+=`?${o}`),t},rt=Object.freeze({auto:"auto",high:"high",low:"low"}),Na=C({name:"SmartPicture",components:{LazyLoadImage:$e},props:{genericImageUrl:{type:String,required:!0},format:{type:String,required:!1,default:null},forceFormat:{type:Boolean,required:!1,default:!1},mobileFormat:{type:String,required:!1,default:null},additionalClass:{type:String,required:!1,default:null},altText:{type:String,required:!1,default:null},dataTestId:{type:String,required:!1,default:null},priorityType:{type:String,required:!1,default:null},lazyImage:{type:Boolean,required:!1,default:!1},preloadImage:{type:Boolean,required:!1,default:!1},externalCdnImageUrls:{type:Object,required:!1,default:()=>({})},imageWidth:{type:String,required:!1,default:void 0},imageHeight:{type:String,required:!1,default:void 0}},data(){return{isCustomFormatPassed:!1}},computed:{genericWebp(){return Ae(this.genericImageUrl??"")||""},webpMobileImage(){return this.externalCdnImageUrls?.mobile?.includes("webp")?this.externalCdnImageUrls.mobile:ee(this.genericWebp,this.mobileFormat,this.forceFormat)},webpImage(){return this.externalCdnImageUrls?.desktop?.includes("webp")?this.externalCdnImageUrls.desktop:ee(this.genericWebp,this.format,this.forceFormat)},fallbackImage(){return ee(this.genericImageUrl??"",this.format,this.forceFormat)},metaInfo(){let e=[];if(this.preloadImage){const t=Ae(this.genericImageUrl??""),o=ee(t,this.mobileFormat,this.forceFormat),a=ee(t,this.format,this.forceFormat);e.push({rel:"preload",href:o,as:"image",media:"(max-width: 768px)"},{rel:"preload",href:a,as:"image",media:"(min-width: 769px)"},{rel:"preload",href:t,as:"image"})}return{link:e}},priority(){return Object.values(rt).includes(this.priorityType)?this.priorityType:rt.auto}},created(){this.format&&this.mobileFormat&&(this.isCustomFormatPassed=!0)},metaInfo(){let e=[];if(this.preloadImage){const t=Ae(this.genericImageUrl??""),o=ee(t,this.mobileFormat,this.forceFormat),a=ee(t,this.format,this.forceFormat);e.push({rel:"preload",href:o,as:"image",media:"(max-width: 768px)"},{rel:"preload",href:a,as:"image",media:"(min-width: 769px)"},{rel:"preload",href:t,as:"image"})}return{link:e}}}),Ua={key:0},Ha=["srcset"],qa=["srcset"],Va=["srcset"],za={key:1},Ga=["srcset"],Wa=["srcset"],Qa=["srcset","fetchpriority"],ja=["src","alt","data-test-id","fetchpriority"];function Ya(e,t,o,a,s,l){const i=d("LazyLoadImage");return e.lazyImage&&!e.preloadImage?(r(),u("picture",Ua,[e.isCustomFormatPassed?(r(),u(L,{key:0},[n("source",{srcset:e.webpImage,media:"(min-width: 769px)",type:"image/webp"},null,8,Ha),n("source",{srcset:e.webpMobileImage,media:"(max-width: 768px)",type:"image/webp"},null,8,qa)],64)):(r(),u("source",{key:1,srcset:e.webpImage,type:"image/webp"},null,8,Va)),h(i,{class:w(e.additionalClass),"image-src":e.fallbackImage,"alt-text":e.altText,"data-test-id":e.dataTestId,"image-height":e.imageHeight,"image-width":e.imageWidth},null,8,["class","image-src","alt-text","data-test-id","image-height","image-width"])])):(r(),u("picture",za,[e.isCustomFormatPassed?(r(),u(L,{key:0},[n("source",{srcset:e.webpImage,media:"(min-width: 769px)",type:"image/webp"},null,8,Ga),n("source",{srcset:e.webpMobileImage,media:"(max-width: 768px)",type:"image/webp"},null,8,Wa)],64)):(r(),u("source",{key:1,srcset:e.webpImage,type:"image/webp",fetchpriority:e.priority},null,8,Qa)),n("img",{src:e.fallbackImage,alt:e.altText,class:w(e.additionalClass),"data-test-id":e.dataTestId,fetchpriority:e.priority},null,10,ja)]))}const Qe=b(Na,[["render",Ya]]),Ft=(e,t,o)=>{const a={building:"building",nature:"mountain",giftCard:"gift",activity:"tickets",default:"pin"};return e===X.GiftCard?a.giftCard:e===X.Activity?a.activity:je(t)||!a[o]?a.default:a[o]},je=e=>["area","city","country"].includes(e),Ka=C({name:"PanelHistory",components:{CButton:V,CIcon:F,CIconButton:mt,SmartPicture:Qe},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},currentSelection:{type:Number,required:!1,default:null},movingSelection:{type:Boolean,required:!1,default:!1},onSubmit:{type:Function,default:()=>({})}},computed:{...$({history:"topLevelSearch/history"}),resultsItemClass(){return this.movingSelection?"panel-history__result--moving":typeof this.currentSelection!="number"&&"panel-history__result--static"},imageFormat(){return Ve.THUMB_SQUARED}},methods:{...ie({clearHistory:"topLevelSearch/clearHistory",removeHistoryByIndex:"topLevelSearch/removeHistoryByIndex"}),getResultIcon(e){return Ft("",e.locationType,e.subTypeGroup)},usePicture(e){return e.picture&&!je(e.locationType)},sendAnalyticsShowEvent(){const e={target:"AutocompletePanelHistory",id:"autocomplete-panel-history",metadata:{history:this.history}};this.$analyticsLogger.logTravelerUIShow(e.target,e.id,e.metadata)},sendAnalyticsClickEvent(e){const t={target:"AutocompletePanelHistory",id:"autocomplete-panel-history-remove",metadata:{history:this.history[e]}};this.$analyticsLogger.logTravelerUIShow(t.target,t.id,t.metadata)},sendAnalyticsClearEvent(){const e={target:"AutocompletePanelHistory",id:"autocomplete-panel-history-clear"};this.$analyticsLogger.logTravelerUIClick(e.target,e.id)},onRemove(e){this.removeHistoryByIndex(e),this.sendAnalyticsClickEvent(e)},onClear(){this.sendAnalyticsClearEvent(),this.clearHistory()}},mounted(){this.sendAnalyticsShowEvent()}}),Ja={key:0,class:"panel-history"},Xa={class:"panel-history__header"},Za=["data-index","onClick"],xa={class:"panel-history__image panel-history__image--spacing-right"},er={class:"panel-history__result-grow"},tr=["onClick"];function or(e,t,o,a,s,l){const i=d("CButton"),c=d("SmartPicture"),m=d("CIcon"),v=d("CIconButton");return e.history.length?(r(),u("div",Ja,[n("div",Xa,[n("div",null,S(e.title),1),h(i,{variant:"text",onClick:e.onClear},{default:f(()=>[T(S(e.$t("pDaterangepicker Add Dates Button Clear")),1)]),_:1},8,["onClick"])]),n("ul",ae(we(e.$attrs)),[(r(!0),u(L,null,O(e.history,(p,k)=>(r(),u("li",{"data-name":"item.suggestion",key:k,"data-index":k,class:w(["panel-history__result",e.resultsItemClass,{"panel-history__result--selected":k===e.currentSelection}]),onClick:E=>e.onSubmit(p.suggestion),tabindex:"0"},[n("div",xa,[e.usePicture(p)?(r(),_(c,{key:0,format:e.imageFormat,"generic-image-url":p.picture,"alt-text":p.suggestion,"additional-class":"panel-history__image"},null,8,["format","generic-image-url","alt-text"])):(r(),_(m,{key:1,name:e.getResultIcon(p)},null,8,["name"]))]),n("p",er,S(p.suggestion),1),n("div",{onClick:E=>e.onRemove(k)},[h(v,{class:"panel-history__result-close",icon:"cross",size:"small",color:"tertiary",variant:"transparent"})],8,tr)],10,Za))),128))],16)])):g("",!0)}const ar=b(Ka,[["render",or],["__scopeId","data-v-fa56e595"]]),rr=["success","error","info","warning"],ir=["far","fab","fas"],sr={success:"checkmark-in-circle-solid",error:"clear",info:"info-solid",warning:"warning-solid"},nr=C({name:"GygIcon",props:{additionalClass:{default:"",type:String},name:{type:String,required:!0},status:{type:String,default:null,validator:e=>rr.includes(e)}},computed:{iconId(){return this.name&&ir.some(e=>this.name.startsWith(`${e}-`))?`#${this.name}`:`#ic-${this.name}`},statusIcon(){return sr[this.status]}}});function lr(e,t,o,a,s,l){const i=d("GygIcon",!0);return r(),u("span",{class:w(["gyg-icon svg-icon",[e.additionalClass,{"gyg-icon--with-status":e.status}]])},[D(e.$slots,"icon",{},()=>[(r(),u("svg",null,[n("use",ae(we({"xlink:href":e.iconId})),null,16)]))]),e.status?(r(),u("span",{key:0,class:w(["gyg-icon__status",[`gyg-icon__status--${e.status}`,`gyg-icon__status--${e.name}`]])},[D(e.$slots,"status",{},()=>[h(i,{name:e.statusIcon},null,8,["name"])])],2)):g("",!0)],2)}const cr=b(nr,[["render",lr]]),dr=C({name:"GygContainer",props:{fluid:{type:Boolean,default:!1,required:!1}},computed:{getContainerType(){return this.fluid?"gyg-container-fluid":"gyg-container"}}});function ur(e,t,o,a,s,l){return r(),u("section",{class:w(e.getContainerType)},[D(e.$slots,"default")],2)}const hr=b(dr,[["render",ur]]),pr=C({name:"GygColumn",props:{cols:{type:String,default:"",required:!1},offset:{type:String,default:"",required:!1},breakpoint:{type:String,default:"",required:!1}},computed:{getClasses(){const e={};this.cols&&(e[`gyg-column-${this.cols}`]=!0),this.offset&&(e[`gyg-column-offset-${this.offset}`]=!0);const t=this.$parent,o=t&&t.breakpoint;return o&&(e[`gyg-column-breakpoint-${o}`]=!0),e}}});function mr(e,t,o,a,s,l){return r(),u("div",{class:w([e.getClasses,"gyg-column"])},[D(e.$slots,"default")],2)}const gr=b(pr,[["render",mr]]),fr=C({name:"GygRow",props:{breakpoint:{type:String,default:"sm",required:!1}},computed:{}}),yr={class:"gyg-row"};function _r(e,t,o,a,s,l){return r(),u("div",yr,[D(e.$slots,"default")])}const vr=b(fr,[["render",_r]]),Sr=["small","medium"],wr=["info","warning","success","error"],Cr=["block","inline","toast"],kr=C({name:"GygAlert",components:{GygIcon:cr},props:{size:{default:"medium",type:String,validator:e=>Sr.includes(e)},modifier:{default:"info",type:String,validator:e=>wr.includes(e)},closable:{default:!0,type:Boolean},showIcon:{default:!0,type:Boolean},type:{default:"block",type:String,validator:e=>Cr.includes(e)}},emits:["close"],data(){return{isVisible:!0}},computed:{alertIcon(){switch(this.modifier){case"warning":return"warning";case"success":return"confirmation";case"error":return"error";default:return"info"}}},methods:{closeAlert(){this.$emit("close"),this.isVisible=!1}}}),br={class:"gyg-alert-content"},Tr={key:0,class:"gyg-alert-icon"},$r={class:"gyg-alert-text"};function Ir(e,t,o,a,s,l){const i=d("GygIcon");return e.isVisible?(r(),u("div",{key:0,class:w(`gyg-alert gyg-alert-${e.modifier} gyg-alert-${e.size} gyg-alert-${e.type}`)},[n("div",br,[e.showIcon?(r(),u("span",Tr,[D(e.$slots,"icon",{},()=>[h(i,{name:e.alertIcon},null,8,["name"])])])):g("",!0),n("span",$r,[D(e.$slots,"default")])]),e.closable?(r(),u("div",{key:0,class:"gyg-alert-close",onClick:t[0]||(t[0]=(...c)=>e.closeAlert&&e.closeAlert(...c))},[h(i,{name:"close"})])):g("",!0)],2)):g("",!0)}const Dr=b(kr,[["render",Ir]]),Er=C({name:"GygTitle2"});function Pr(e,t,o,a,s,l){return r(),u("h2",q({class:"gyg-title2"},e.$attrs),[D(e.$slots,"default")],16)}const Lr=b(Er,[["render",Pr]]),Ne=7,Ar=C({name:"PanelResults",components:{GygTitle2:Lr,SmartPicture:Qe,CIcon:F},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},currentSelection:{type:Number,required:!1,default:null},movingSelection:{type:Boolean,required:!1,default:!1},results:{type:Array,default:()=>[]},onSelection:{type:Function,default:()=>({})}},methods:{...ie({addToHistory:"topLevelSearch/addToHistory"}),getResultIcon(e){return Ft(e.type,e.locationType,e.subTypeGroup)},usePicture(e){return e.picture&&!je(e.locationType)&&e.type!==X.Activity},onClickSuggestion(e,t,o){t.type!==X.GiftCard&&this.addToHistory(t),this.onSelection(e,o)},getDescriptorAttribute(e){return!Array.isArray(e)||!(e.length>0)?void 0:e.find(o=>o.attribute==="descriptor")?.value},getSmartPictureClassList(e){const t=["panel-results__image"];return this.usePicture(e)&&t.push("panel-results__image--rounded"),t.join(" ")}},computed:{imageFormat(){return Ve.THUMB_SQUARED},filteredResults(){return this.results?this.results.slice(0,Ne):this.results},resultsItemClass(){return this.movingSelection?"panel-results__result--moving":typeof this.currentSelection!="number"&&"panel-results__result--static"}}}),Br={key:0,class:"panel-results"},Mr=["data-index","onClick","onKeyup"],Rr={class:"panel-results__suggestion"},Fr={key:0,class:"panel-results__descriptor"};function Or(e,t,o,a,s,l){const i=d("GygTitle2"),c=d("SmartPicture"),m=d("CIcon");return e.filteredResults.length?(r(),u("div",Br,[e.title?(r(),_(i,{key:0},{default:f(()=>[T(S(e.title),1)]),_:1})):g("",!0),n("ul",ae(we(e.$attrs)),[(r(!0),u(L,null,O(e.filteredResults,(v,p)=>(r(),u("li",{tabindex:"0","data-name":"item",key:v.locationId,"data-index":p,onClick:k=>e.onClickSuggestion(p,v,k),onKeyup:te(k=>e.onClickSuggestion(p,v,k),["enter"]),"data-test-id":"panel-results__result",class:w(["panel-results__result","panel-results__result--top-aligned","panel-results__result--bottom-border",e.resultsItemClass,{"panel-results__result--selected":p===e.currentSelection}])},[n("div",{class:w({"panel-results__image":!0,"panel-results__image--spacing":!0,"panel-results__image--rounded":e.usePicture(v)})},[e.usePicture(v)?(r(),_(c,{key:0,format:e.imageFormat,"generic-image-url":v.picture,"alt-text":v.suggestion,"additional-class":e.getSmartPictureClassList(v)},null,8,["format","generic-image-url","alt-text","additional-class"])):(r(),_(m,{key:1,name:e.getResultIcon(v)},null,8,["name"]))],2),n("div",null,[n("p",Rr,S(v.suggestion),1),e.getDescriptorAttribute(v.attributes)?(r(),u("small",Fr,S(e.getDescriptorAttribute(v.attributes)),1)):g("",!0)])],42,Mr))),128))],16)])):g("",!0)}const Nr=b(Ar,[["render",Or],["__scopeId","data-v-cbf9ef15"]]),Ur=C({name:"PanelFooter",components:{CIcon:F},props:{searchQuery:{type:String,required:!1,default:""},onSubmit:{type:Function,default:()=>({})}},data(){return{seeAllResults:!0}},computed:{...$({isMobileDevice:"context/isMobileDevice"}),computedSearchResult(){return this.$t("pSearch autocomplete footer results",[this.searchQuery])}}}),Hr={class:"panel-footer__input"};function qr(e,t,o,a,s,l){const i=d("CIcon");return e.searchQuery?(r(),u("footer",{key:0,class:"panel-footer",onClick:t[2]||(t[2]=c=>e.onSubmit(e.searchQuery,e.seeAllResults))},[t[0]||(ne(-1),(t[0]=e.isMobileDevice?(r(),_(i,{key:0,class:"panel-footer__icon panel-footer__icon-mobile",name:"search-magnifier"})):g("",!0)).cacheIndex=0,ne(1),t[0]),n("p",Hr,S(e.computedSearchResult),1),t[1]||(ne(-1),(t[1]=h(i,{class:"panel-footer__icon",name:"arrow-right"})).cacheIndex=1,ne(1),t[1])])):g("",!0)}const Vr=b(Ur,[["render",qr],["__scopeId","data-v-c6014ffa"]]),zr=C({name:"AutocompletePanel",components:{PanelResults:Nr,PanelFooter:Vr,PanelHistory:ar,GygContainer:hr,GygColumn:gr,GygRow:vr},props:{searchQuery:{type:String,default:""},currentSelection:{type:Number,required:!1,default:0},selectionHandler:{type:Function,default:()=>({})},submissionHandler:{type:Function,default:()=>({})},navigatingWithArrows:{type:Boolean,required:!1,default:!1},suggestions:{type:Array,required:!1,default:()=>[]}},emits:["update:userInput","update:searchQuery","update:currentSelection"],data(){return{userMovingMouse:!1,panelSelection:null,currentPanelSource:this.searchQuery?"suggestions":"history",userMovingMouseTimer:void 0}},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice",history:"topLevelSearch/history"}),hasSearchQuery(){return!!this.searchQuery},showAutocompletePanel(){const e=!!this.history.length;return this.hasSearchQuery||!this.hasSearchQuery&&e},suggestionsLength(){return this.suggestions?.length>Ne?Ne:this.suggestions?.length??0},shouldShowFooter(){return this.hasSearchQuery&&this.currentPanelSource==="suggestions"}},watch:{currentSelection(e){if(typeof e!="number"||this.userMovingMouse&&!this.navigatingWithArrows){this.panelSelection=null;return}const t=(s,l)=>s?(e%l+l)%l:null,o=this.currentPanelSource!=="history"&&this.searchQuery,a=o?t(!!this.suggestions?.length,this.suggestionsLength):t(!!this.history?.length,this.history?.length);if(this.currentPanelSource=o?"suggestions":"history",typeof a=="number"&&this.navigatingWithArrows){const s=o?this.suggestions?.[a]?.suggestion:this.history?.[a].suggestion;this.$emit("update:searchQuery",s),this.$emit("update:userInput",s)}this.panelSelection=a},searchQuery(){this.navigatingWithArrows||(this.currentPanelSource=this.searchQuery===""?"history":"suggestions")}},mounted(){this.$store.commit("topLevelSearch/initialiseHistory")},methods:{handleMouseout(){this.userMovingMouse=!1,this.$emit("update:currentSelection",null)},handleMousemove(e){if(!this.navigatingWithArrows){window.clearTimeout(this.userMovingMouseTimer),this.userMovingMouse=!0;const{clientX:t,clientY:o}=e;let a=document.elementFromPoint(t,o);for(;a&&a.tagName.toLowerCase()!=="ul";){if(a.dataset?.name==="item"&&typeof a.dataset?.index<"u"){const s=parseInt(a.dataset.index,10);this.$emit("update:currentSelection",s);break}a=a.parentElement}this.userMovingMouseTimer=window.setTimeout(()=>this.userMovingMouse=!1,300)}}}});function Gr(e,t,o,a,s,l){const i=d("PanelHistory"),c=d("GygColumn"),m=d("GygRow"),v=d("PanelResults"),p=d("PanelFooter"),k=d("GygContainer");return e.showAutocompletePanel?(r(),_(k,{key:0,ref:"autocomplete-panel",class:w(["autocomplete-panel",{"autocomplete-panel__desktop":!e.isMobileOrTabletDevice,"autocomplete-panel__mobile":e.isMobileOrTabletDevice}])},{default:f(()=>[e.currentPanelSource==="history"?(r(),_(m,{key:0},{default:f(()=>[e.history.length?(r(),_(c,{key:0},{default:f(()=>[h(i,{"on-submit":e.submissionHandler,title:e.$t("pSearch autocomplete recent searches"),"current-selection":e.panelSelection,"moving-selection":e.navigatingWithArrows,onMousemove:e.handleMousemove,onMouseout:e.handleMouseout},null,8,["on-submit","title","current-selection","moving-selection","onMousemove","onMouseout"])]),_:1})):g("",!0)]),_:1})):(r(),_(m,{key:1},{default:f(()=>[h(c,null,{default:f(()=>[h(v,{results:e.suggestions,"on-selection":e.selectionHandler,"current-selection":e.panelSelection,"moving-selection":e.navigatingWithArrows,onMousemove:e.handleMousemove,onMouseout:e.handleMouseout},null,8,["results","on-selection","current-selection","moving-selection","onMousemove","onMouseout"])]),_:1})]),_:1})),e.shouldShowFooter?(r(),_(m,{key:2,class:"autocomplete-panel__footer"},{default:f(()=>[h(c,null,{default:f(()=>[h(p,{"search-query":e.searchQuery,"on-submit":e.submissionHandler},null,8,["search-query","on-submit"])]),_:1})]),_:1})):g("",!0)]),_:1},8,["class"])):g("",!0)}const Wr=b(zr,[["render",Gr],["__scopeId","data-v-1cf94686"]]),j="persist_date_date_from",Y="persist_date_date_to";class re{constructor(t,o,a){Q(this,"_state");Q(this,"_route");Q(this,"_ref");Q(this,"_date_from","");Q(this,"_date_to","");if(this._state=t,this._route=o,this._ref=a,this._route?.query){const{query:{date_from:s="",date_to:l=""}}=this._route;this._date_from=s,this._date_to=l}this.validateExperiment()}validateExperiment(){this.isPersistDateExperimentActive()&&(this.removePersistCookieIfIsBeforeToday(),this.savePersistDateCookie(),this.setDateParamOnCurrentLinks())}isPersistDateExperimentActive(){return["Search","Activity","Home","Destination","Location","LocationCountry","LocationCategory","DayTrips","LocationCountryCategory"].includes(U(this._route))?St(this._state,Lo,"B"):!1}savePersistDateCookie(){this.isValidSavePersistDateCookie()&&(P().get(j)||P().set(j,this._date_from),P().get(Y)||P().set(Y,this._date_to?this._date_to:this._date_from))}isValidSavePersistDateCookie(){return U(this._route)==="Home"?(this.resetPersistDateCookie(),!1):this._date_from?P().get(j)&&!P().get(Y)?(this.resetPersistDateCookie(),!1):new Date(this._date_from)>new Date(this._date_to)?(this.resetPersistDateCookie(),!1):!(P().get(j)&&P().get(Y)):!1}removePersistCookieIfIsBeforeToday(){const t=P().get(j)||"",o=P().get(Y)||"",a=new Date;a.setUTCHours(0,0,0,0),t&&a>new Date(t)&&this.expireCookie(j),o&&a>new Date(o)&&this.expireCookie(Y)}resetPersistDateCookie(){this.isPersistDateExperimentActive()&&(this.expireCookie(j),this.expireCookie(Y))}expireCookie(t){P().expire(t)}setDateParamOnCurrentLinks(){if(!this._ref)return;const t={date_from:P().get(j),date_to:P().get(Y)};Array.from(this._ref?.querySelectorAll('a[href*="-l" i], a[href*="-t" i]')).filter(o=>o.href!==window.location.pathname).forEach(o=>{o.href=re.applyDateParams(o.href,t)})}updateRedirectHref(t){return this.isPersistDateExperimentActive()?re.applyDateParams(t,{date_from:P().get(j),date_to:P().get(Y)}):t||""}static applyDateParams(t,o){const[a,s=""]=t.split("?"),l=new URLSearchParams(s);(o.date_from||l.get("date_from"))&&l.set("date_from",o.date_from||""),(o.date_to||l.get("date_to"))&&l.set("date_to",o.date_to||"");const i=l.toString();return`${a}${i?`?${i}`:""}`}}const Ye=C({name:"SearchHistoryMixin",computed:{...$({history:"topLevelSearch/history"})},methods:{...ie({updateHistoryItem:"topLevelSearch/updateHistoryItem"}),async shouldUpdateHistorySuggestions(e){const t=e.suggestion?.toLowerCase();if(!t)return;const o=(this.history||[]).findIndex(a=>a?.suggestion?.toLowerCase()===t);o!==-1&&(this.updateHistoryItem({newSuggestion:e,index:o}),await this.$nextTick())}}}),Qr=C({name:"SearchBox",components:{CButton:V,CIcon:F,CInput:ao,AutocompletePanel:Wr},mixins:[Ye],props:{autoFocus:{type:Boolean,default:!1},filterByLocationType:{type:String,required:!1,default:""},searchBoxPlaceholder:{type:String,required:!1,default:""},isSearchPanel:{type:Boolean,default:!1,required:!1},searchQuery:{type:String,default:""},searchSource:{type:Number,default:ce.SEARCH_BOX},minimal:{type:Boolean,default:!1},hideSuggestions:{required:!1,type:Boolean,default:!1},ctaText:{type:String,default:""},showCta:{type:Boolean,default:!0},isRounded:{type:Boolean,default:!1},short:{type:Boolean,default:!1},showClear:{type:Boolean,default:!1},shouldPropagateSearchSelection:{type:Boolean,default:!1}},emits:["update:searchQuery","term-selected","selected-suggestion","input-focus","input-focus-out","update:selected-suggestion-link"],data(){return{userInput:this.searchQuery,formErrors:[],displayDropdown:!1,currentSelection:null,dispatchedOnFirstFocus:!1,userIsNavigatingWithArrows:!1,seeAllResultsBoolean:!1,enterKeySubmit:!1,selection:void 0,preFilledSelection:void 0,searchBoxService:void 0,userArrowNavigationTime:void 0,debouncedFetchSuggestions:void 0,isFocus:!1}},computed:{getSearchAction(){return this.selectedSuggestion?.onClickLink?.link?this.selectedSuggestion.onClickLink.link:this.suggestionsPayload?.searchAction?.onSearchLink?.link||null},getSeeAll(){return this.suggestionsPayload?.seeAll?.onClickLink?.link||null},...$({availability:"availability/dates",localePath:"context/localePath",isMobileOrTabletDevice:"context/isMobileOrTabletDevice",locationData:"location/locationData",suggestionsPayload:"topLevelSearch/suggestions",history:"topLevelSearch/history"}),containerName(){return U(this.$route)},locationId(){return this.$route.params.poiId},selectedSuggestion(){return this.suggestionsPayload?.suggestions?.find(e=>e?.suggestion?.toLowerCase()===this.userInput?.toLowerCase())},searchUrl(){if(this.selectedSuggestion?.type===X.GiftCard)return G(this.localePath,"/giftcard");const e={...wt(this.selectedSuggestion),...this.userInput&&{q:this.userInput}};return this.selectedSuggestion?.onClickLink?.link?this.selectedSuggestion?.onClickLink?.link:be(e,this.availability,this.searchSource,this.localePath)},isNaviSearchUxRedesignExperimentActive(){return!this.isMobileOrTabletDevice&&this.$isExperimentActive(this.$store.state,Ct,"B")},searchPlaceholder(){const e=this.isNaviSearchUxRedesignExperimentActive?this.$t("psearch_search_placeholder_attractions"):this.$t("psearchbar_ghostcopy_label_empty_B");return this.searchBoxPlaceholder.length>0?this.searchBoxPlaceholder:e},listOfSuggestions(){return this.suggestionsPayload?.suggestions}},mounted(){this.debouncedFetchSuggestions=Te(this.fetchSuggestions,300),this.searchBoxService=Rt(this.$analyticsLogger),this.preFilledSelection="",this.userInput=this.userInput||this.$route?.query?.q||(this.locationData?.parentLocations?.[0].name??""),this.$nextTick(()=>{this.autoFocus&&this.triggerInputAutoFocus()})},methods:{...ie({addToHistory:"topLevelSearch/addToHistory",updateHistoryItem:"topLevelSearch/updateHistoryItem"}),async dispatchFetchSuggestions(e){const t=["location","activity","synthetic_trip_item","trip_item_group"];await this.$store.dispatch("topLevelSearch/fetchSuggestions",{searchTerm:e,locationType:this.filterByLocationType??"",suggestEntities:t})},resetSuggestions(){this.$store.commit("topLevelSearch/setSuggestions",{suggestions:[],searchAction:{onSearchLink:{}},seeAll:{onClickLink:{}}})},onUserTyping(e){this.showDropdown();const o=["metaKey","altKey","ctrlKey","shiftKey"].some(l=>e[l])||this.searchBoxService?.shouldNotFetchSuggestions(e.keyCode?e.keyCode:e.which),a=this.$refs?.searchBoxInput?.value==="";!(o||a||this.userIsNavigatingWithArrows)&&(this.debouncedFetchSuggestions(this.userInput),this.preFilledSelection=this.userInput)},resetErrors(){window.setTimeout(()=>{this.formErrors=[]},1500)},onHandleArrowNavigation(e){this.hideSuggestions||(window.clearTimeout(this.userArrowNavigationTime),this.userIsNavigatingWithArrows=!0,this.currentSelection===null?this.currentSelection=e==="up"?-1:0:this.currentSelection+=e==="up"?-1:1,this.userArrowNavigationTime=window.setTimeout(()=>this.userIsNavigatingWithArrows=!1,300))},async onSearchSubmit(e,t=!1,o=!1,a=!1){if(!e){this.formErrors.push("query required"),this.resetErrors();return}if(this.currentSelection){const c=this.listOfSuggestions[this.currentSelection];if(c?.onClickLink?.link){c.type!==X.GiftCard&&this.addToHistory(c),this.navigateToPage(c.onClickLink?.link);return}}this.userInput=e,await this.$nextTick(),this.seeAllResultsBoolean=t,this.enterKeySubmit=o,this.hideDropdown();const s=this.history.some(c=>c?.suggestion?.toLowerCase()===e?.toLowerCase()||c?.suggestion?.toLowerCase()===this.selectedSuggestion?.suggestion.toLowerCase());!s&&this.suggestionsPayload?.suggestions?.length&&this.selectedSuggestion&&this.selectedSuggestion?.type!==X.GiftCard?this.addToHistory(this.selectedSuggestion??{suggestion:this.userInput}):s&&this.selectedSuggestion&&await this.shouldUpdateHistorySuggestions(this.selectedSuggestion),this.$store.commit("search/setSrpTitles",{}),t?this.searchBoxService?.seeAllResultsTracking({searchedTerm:this.userInput,suggestions:this.suggestionsPayload?.suggestions}):this.searchBoxService?.sendSubmitEvent({searchedTerm:e,suggestions:this.suggestionsPayload?.suggestions,searchPanelSubmit:this.isSearchPanel});const l=this.history.find(c=>c.suggestion===e&&c?.locationType),i=this.getSuggestionClickLink(l)??this.getSuggestionClickLink(this.selectedSuggestion);i?this.navigateToPage(i):t||o||a?(await this.fetchSuggestions(this.userInput),await this.$nextTick(),this.$emit("term-selected"),this.getSearchAction||this.getSeeAll?this.getSearchAction&&!t?this.navigateToPage(this.getSearchAction):this.getSeeAll&&t?this.navigateToPage(this.getSeeAll):this.navigateToPage():this.navigateToSearchPage()):(this.$emit("term-selected"),this.navigateToSearchPage())},navigateToSearchPage(){if(this.resetSuggestions(),this.shouldPropagateSearchSelection){this.$emit("update:selected-suggestion-link",this.searchUrl),this.hideDropdown();return}window.location.assign(this.searchUrl)},async fetchSuggestions(e){await this.dispatchFetchSuggestions(e),this.currentSelection=null},getSuggestionClickLink(e){const t=e?.onClickLink?.link;return t||""},navigateToPage(e){const t=this.persistDateExperiment(e||this.searchUrl);if(this.shouldPropagateSearchSelection){this.$emit("update:selected-suggestion-link",t),this.hideDropdown();return}window.location.assign(t)},persistDateExperiment(e){return new re(this.$store.state,this.$route).updateRedirectHref(e)},resetInput(){this.isFocus=!1,this.userInput="",this.$emit("update:searchQuery",""),this.resetSuggestions()},fillSelection(e,t){t&&t.stopPropagation(),this.selection=this.suggestionsPayload?.suggestions?.[e],this.hideDropdown(),this.searchBoxService?.sendSubmitEvent({searchedTerm:this.userInput,selectedSuggestion:this.selection,suggestions:this.suggestionsPayload?.suggestions,searchPanelSubmit:this.isSearchPanel});const o=this.selection?.onClickLink?.link;this.userInput=this.selection?.suggestion??"",this.$store.commit("search/setSrpTitles",{}),this.$emit("update:searchQuery",this.selection?.suggestion),this.$emit("selected-suggestion",this.selection),o?this.navigateToPage(o):(this.$emit("term-selected"),this.navigateToSearchPage())},hideDropdown(){this.isFocus&&(this.isFocus=!1,this.$emit("input-focus-out")),this.displayDropdown&&(this.displayDropdown=!1,this.currentSelection=null,this.triggerNonSearchedTermTracking())},triggerNonSearchedTermTracking(){const e=!!(this.userInput&&this.userInput===this.preFilledSelection);!this.selection&&e&&!this.seeAllResultsBoolean&&!this.enterKeySubmit&&(this.searchBoxService?.sendNonSubmittedTermEvent({searchedTerm:this.userInput,suggestions:this.suggestionsPayload?.suggestions,searchPanelSubmit:!1}),this.preFilledSelection="")},showDropdown(){this.displayDropdown=!0},onInputFocus(){this.isFocus=!0,this.$emit("input-focus"),!this.dispatchedOnFirstFocus&&this.userInput&&(this.autoFocus||!this.isMobileOrTabletDevice)&&(this.dispatchFetchSuggestions(this.userInput),this.dispatchedOnFirstFocus=!0),this.showDropdown()},onSearchInput(e){this.userInput=e.target?.value??""},updateUserInput(e){this.userInput=e},getInputRef(){return this.isRounded?this.$refs?.searchBoxInput?.$refs?.input:this.$refs?.searchBoxInput},triggerInputAutoFocus(){const e=this.getInputRef();if(e){const t=e.value.length;this.dispatchedOnFirstFocus=!1,e.focus(),this.$nextTick(()=>{e.setSelectionRange(t,t),e.scrollLeft=e.scrollWidth})}}},watch:{searchQuery(e){this.userInput=e},userInput(e){this.$emit("update:searchQuery",e)},autoFocus(e){e&&!this.isFocus&&setTimeout(()=>{this.triggerInputAutoFocus()})}}}),jr=["title"],Yr={class:"form-group form-control-input c-input-wrapper"},Kr={class:"form-group autocomplete-improvements__search-button-container"},Jr={key:1,class:"form-group form-control-input input-wrapper"},Xr=["readonly","value","placeholder"];function Zr(e,t,o,a,s,l){const i=d("CIcon"),c=d("CInput"),m=d("CButton"),v=d("AutocompletePanel"),p=ft("click-outside");return N((r(),u("section",null,[n("div",{class:w(["search-box js-search-box",{"search-box__minimal":e.minimal,"search-box__modal":!e.minimal,"search-box--short":e.short}]),title:e.$t("psearchbar_ghostcopy_label_empty"),"data-test-id":"search-box"},[e.isRounded?(r(),u(L,{key:0},[n("div",Yr,[h(c,{readonly:e.hideSuggestions,modelValue:e.userInput,"onUpdate:modelValue":t[0]||(t[0]=k=>e.userInput=k),modelModifiers:{lazy:!0},class:w(["autocomplete-improvements__input","search-box-field","js-search-box-field",{"error-animation":e.formErrors.includes("query required")},{"search-box-field--short":e.short}]),"data-test-id":"search-box-field",ref:"searchBoxInput",placeholder:e.searchPlaceholder,autocomplete:"off",name:"q",required:"",type:"text",enterkeyhint:"search",onFocus:e.onInputFocus,onKeyup:[e.onUserTyping,t[1]||(t[1]=te(k=>e.onSearchSubmit(e.userInput,!1,!0),["enter"]))],onKeydown:[t[2]||(t[2]=te(k=>e.onHandleArrowNavigation("up"),["up"])),t[3]||(t[3]=te(k=>e.onHandleArrowNavigation("down"),["down"]))]},po({preicon:f(()=>[h(i,{class:"autocomplete-improvements__search-icon",name:"search-magnifier"})]),_:2},[e.userInput?.length&&e.showClear&&e.isFocus?{name:"posticon",fn:f(()=>[h(i,{name:"cross",onClick:e.resetInput,ref:"iconClear",class:"icon-clear"},null,8,["onClick"])]),key:"0"}:void 0]),1032,["readonly","modelValue","class","placeholder","onFocus","onKeyup"])]),n("div",Kr,[!e.isMobileOrTabletDevice&&e.showCta?(r(),_(m,{key:0,type:"button","data-test-id":"search-box-submit",class:"autocomplete-improvements__search-button",title:e.$t("pModules_header submit search"),onClick:t[4]||(t[4]=k=>e.onSearchSubmit(e.userInput,!1,!1,!0))},{default:f(()=>[T(S(e.ctaText),1)]),_:1},8,["title"])):g("",!0)])],64)):(r(),u("div",Jr,[t[5]||(ne(-1),(t[5]=h(i,{name:"search-magnifier",class:"icon-search-minimal"})).cacheIndex=5,ne(1),t[5]),n("input",{readonly:e.hideSuggestions,value:e.userInput,onInput:t[6]||(t[6]=(...k)=>e.onSearchInput&&e.onSearchInput(...k)),class:w(["search-box-field","js-search-box-field",{"error-animation":e.formErrors.includes("query required"),"search-box-field__modal-focus":!e.minimal&&e.isMobileOrTabletDevice&&e.isFocus},{"search-box-field--short":e.short}]),"data-test-id":"search-box-field",ref:"searchBoxInput",placeholder:e.searchPlaceholder,autocomplete:"off",name:"q",required:"",type:"text",enterkeyhint:"search",onFocus:t[7]||(t[7]=(...k)=>e.onInputFocus&&e.onInputFocus(...k)),onKeyup:[t[8]||(t[8]=(...k)=>e.onUserTyping&&e.onUserTyping(...k)),t[9]||(t[9]=te(k=>e.onSearchSubmit(e.userInput,!1,!0),["enter"]))],onKeydown:[t[10]||(t[10]=te(k=>e.onHandleArrowNavigation("up"),["up"])),t[11]||(t[11]=te(k=>e.onHandleArrowNavigation("down"),["down"]))]},null,42,Xr),e.userInput&&e.userInput.length&&!e.minimal?(r(),_(i,{key:0,name:"cross",onClick:e.resetInput,ref:"iconClear",class:"icon-clear"},null,8,["onClick"])):g("",!0)]))],10,jr),e.hideSuggestions?g("",!0):N((r(),_(v,{key:0,"search-query":e.userInput,"selection-handler":e.fillSelection,"submission-handler":e.onSearchSubmit,"current-selection":e.currentSelection,"navigating-with-arrows":e.userIsNavigatingWithArrows,suggestions:e.listOfSuggestions,"onUpdate:userInput":e.updateUserInput},null,8,["search-query","selection-handler","submission-handler","current-selection","navigating-with-arrows","suggestions","onUpdate:userInput"])),[[z,e.displayDropdown||e.isMobileOrTabletDevice]])])),[[p,e.hideDropdown]])}const xr=b(Qr,[["render",Zr],["__scopeId","data-v-5c79e1c2"]]);class ei{constructor(t){Q(this,"analyticsLogger");this.analyticsLogger=t}logSearchInputFocus(t){this.analyticsLogger.logTravelerUIClick("SearchInputFocus",t)}}const ti=C({name:"SearchAutocomplete",components:{SearchBox:xr,CBottomSheet:ro},props:{filterByLocationType:{type:String,required:!1,default:""},searchBoxPlaceholder:{type:String,required:!1,default:""},panelTitle:{type:String,required:!1,default:""},isPanelOpen:{type:Boolean,required:!1,default:!1},isSearchPanel:{type:Boolean,default:!1,required:!1},searchQuery:{type:String,default:""},isRounded:{type:Boolean,default:!1},ctaText:{type:String,default:""},minimal:{required:!1,type:Boolean,default:!1},isDesktop:{required:!1,type:Boolean,default:void 0},insideModal:{required:!1,type:Boolean},thinBorder:{type:Boolean,default:!1},short:{type:Boolean,default:!1},showAutoCompleteSearchBox:{type:Boolean,default:!0},showCta:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!1},showClear:{type:Boolean,default:!0},shouldPropagateSearchSelection:{type:Boolean,default:!1}},emits:["update:searchQuery","panelClosed","selected-suggestion","term-selected","input-focus-out","update:selected-suggestion-link"],data(){return{searchBoxClass:"autocomplete-search-box",searchAutocompleteEventService:void 0,visible:!1,isFocus:!1,userInput:this.searchQuery}},watch:{searchQuery(e){this.userInput=e}},beforeMount(){this.searchAutocompleteEventService=new ei(this.$analyticsLogger)},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice"}),searchSource(){return this.isDestinationPage?ce.DESTINATION_QUERY_CHANGE:ce.SEARCH_BOX},isPanelVisible(){return this.isPanelOpen?!0:this.isMobileOrTabletDevice&&this.visible},isDestinationPage(){return this.container==="Destination"},container(){return this.$route?U(this.$route):""},isDesktopDevice(){return this.isDesktop!==void 0?this.isDesktop:!this.isMobileOrTabletDevice},hideSuggestions(){return this.isInsideModal?!1:!this.isDesktopDevice},renderModal(){return this.isInsideModal?!1:!this.isDesktopDevice},isInsideModal(){return this.insideModal===!0},modalTitle(){return this.panelTitle.length>0?this.panelTitle:this.$t("pModules_header submit search")}},methods:{inputFocusOut(){this.isFocus=!1,this.$emit("input-focus-out")},onSearchBoxEntered(){this.isFocus=!0,this.searchAutocompleteEventService.logSearchInputFocus(this.searchBoxClass)},handleClosedPanel(){this.closeModal(),this.$emit("panelClosed")},openModal(){this.visible=!0},closeModal(){this.visible=!1},handleUserInputChange(e){this.$emit("update:searchQuery",e)},handleSuggestionSelection(e){this.$emit("selected-suggestion",e)},updateSelectedSuggestionLink(e){this.$emit("update:selected-suggestion-link",e)}}});function oi(e,t,o,a,s,l){const i=d("SearchBox"),c=d("CBottomSheet");return r(),u("div",{class:w(["search-autocomplete",{"search-autocomplete__minimal":e.minimal}])},[e.showAutoCompleteSearchBox?(r(),_(i,{key:0,class:w(["autocomplete-search-box",{"autocomplete-search-box--active":e.isFocus,"autocomplete-search-box--thin-border":e.thinBorder,"autocomplete-search-box--short":e.short}]),"auto-focus":e.autoFocus||e.isInsideModal,"cta-text":e.ctaText,"is-search-panel":e.isSearchPanel,"is-rounded":e.isRounded,onClick:e.openModal,onInputFocus:e.onSearchBoxEntered,onInputFocusOut:e.inputFocusOut,"search-query":e.userInput,minimal:e.minimal,"hide-suggestions":e.hideSuggestions,"search-source":e.searchSource,short:e.short,"show-cta":e.showCta,"show-clear":e.showClear,"search-box-placeholder":e.searchBoxPlaceholder,"should-propagate-search-selection":e.shouldPropagateSearchSelection,onTermSelected:t[0]||(t[0]=m=>e.$emit("term-selected")),onSelectedSuggestion:e.handleSuggestionSelection,"onUpdate:selectedSuggestionLink":e.updateSelectedSuggestionLink,"onUpdate:searchQuery":e.handleUserInputChange},null,8,["auto-focus","cta-text","is-search-panel","is-rounded","onClick","onInputFocus","onInputFocusOut","class","search-query","minimal","hide-suggestions","search-source","short","show-cta","show-clear","search-box-placeholder","should-propagate-search-selection","onSelectedSuggestion","onUpdate:selectedSuggestionLink","onUpdate:searchQuery"])):g("",!0),e.isPanelVisible?(r(),_(c,{key:1,onClose:e.handleClosedPanel,class:"full-screen-modal search-autocomplete-modal",title:e.modalTitle,"close-btn-aria-label":e.$t("aria_close_c_modal")},{default:f(()=>[h(i,{"auto-focus":!0,"is-search-panel":e.isSearchPanel,"search-query":e.userInput,"search-source":e.searchSource,"filter-by-location-type":e.filterByLocationType,"search-box-placeholder":e.searchBoxPlaceholder,onTermSelected:t[1]||(t[1]=m=>e.$emit("term-selected")),onSelectedSuggestion:e.handleSuggestionSelection,"onUpdate:searchQuery":e.handleUserInputChange},null,8,["is-search-panel","search-query","search-source","filter-by-location-type","search-box-placeholder","onSelectedSuggestion","onUpdate:searchQuery"])]),_:1},8,["onClose","title","close-btn-aria-label"])):g("",!0)],2)}const se=b(ti,[["render",oi]]),ai=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"})),Ke=C({name:"SduiBlock",mixins:[fe],data(){return{shouldRenderComponent:!0,loadingBlockHeight:0}},computed:{hasLoadingTriggers(){const{loadingStateTriggers:e}=this.block||{loadingStateTriggers:[]};return!!e&&Array.isArray(e)&&!!e.length},eventTypes(){return this.block.loadingStateTriggers?.map(({eventType:e})=>e)},isLoading(){if(this.hasLoadingTriggers){const e=this.$store.getters["sdui/loading"];return e&&this.eventTypes?.reduce((t,o)=>t||e[o],!1)}else return!1}},watch:{isLoading(){this.hasLoadingTriggers&&(this.loadingBlockHeight=this.$refs?.loadingRef?.getBoundingClientRect()?.height||0)}},created(){this.checkBlockValidation()},methods:{checkBlockValidation(){if(this.invalidProps&&this.invalidProps.length>0){A.error({...this.$store.getters["sdui/logTags"],block:{id:this.block.id,type:this.block.type,invalidProps:this.invalidProps.join(","),rawData:JSON.stringify(this.block)},context:{visitorId:this.globalProps.visitorId}},`[SDUI] Skip rendering of block ${this.block.id}. Invalid properties: ${this.invalidProps.join(",")}`);const e={...this.$store.getters["sdui/invalidBlockMetricTags"],block_type:this.block.type,handled_error:!0};Z.increment("sdui.invalid_block",e),this.shouldRenderComponent=!1}},async saveParamsInUrl(e){const t={...this.$route.query,...e};Object.keys(t).forEach(o=>{t[o]||delete t[o]}),JSON.stringify(t)!==JSON.stringify(this.$route.query)&&await this.$router.push({query:t,params:{preventScrollTop:"true"}})}}});async function ri(e){switch(e){case"ar-EG":return(await y(async()=>{const{ar:t}=await import("./locales.ar-BOPYZOGX-v01.js").then(o=>o.a);return{ar:t}},__vite__mapDeps([30,8]))).ar;case"bg-BG":return(await y(async()=>{const{bg:t}=await import("./locales.bg-DSaT7Kdk-v01.js").then(o=>o.b);return{bg:t}},__vite__mapDeps([31,8]))).bg;case"ca-ES":return(await y(async()=>{const{ca:t}=await import("./locales.ca-BRQnJkrP-v01.js").then(o=>o.c);return{ca:t}},__vite__mapDeps([32,8]))).ca;case"cs-CZ":return(await y(async()=>{const{cs:t}=await import("./locales.cs-BFo5B2LQ-v01.js").then(o=>o.c);return{cs:t}},__vite__mapDeps([33,8]))).cs;case"da-DK":return(await y(async()=>{const{da:t}=await import("./locales.da-Adj491V5-v01.js").then(o=>o.d);return{da:t}},__vite__mapDeps([34,8]))).da;case"de-AT":case"de-CH":case"de-DE":return(await y(async()=>{const{de:t}=await import("./locales.de-B2Cwn1Ct-v01.js").then(o=>o.d);return{de:t}},__vite__mapDeps([35,8]))).de;case"el-GR":return(await y(async()=>{const{el:t}=await import("./locales.el-DChhokKp-v01.js");return{el:t}},__vite__mapDeps([36,8]))).el;case"en-AU":return(await y(async()=>{const{enAU:t}=await import("./vendors-framework-StFOZgBK-v01.js").then(o=>o.y);return{enAU:t}},[])).enAU;case"en-GB":return(await y(async()=>{const{enGB:t}=await import("./vendors-framework-StFOZgBK-v01.js").then(o=>o.z);return{enGB:t}},[])).enGB;case"en-US":return Re;case"es-ES":case"es-MX":return(await y(async()=>{const{es:t}=await import("./locales.es-DYoRnmHK-v01.js").then(o=>o.e);return{es:t}},__vite__mapDeps([37,8]))).es;case"et-EE":return(await y(async()=>{const{et:t}=await import("./locales.et-kFx9kTiX-v01.js").then(o=>o.e);return{et:t}},__vite__mapDeps([38,8]))).et;case"fi-FI":return(await y(async()=>{const{fi:t}=await import("./locales.fi-U1vTAPSn-v01.js").then(o=>o.f);return{fi:t}},__vite__mapDeps([39,8]))).fi;case"fr-FR":return(await y(async()=>{const{fr:t}=await import("./locales.fr-DTbYRQAg-v01.js").then(o=>o.f);return{fr:t}},__vite__mapDeps([40,8]))).fr;case"he-IL":return(await y(async()=>{const{he:t}=await import("./locales.he-CUo3nAz2-v01.js").then(o=>o.h);return{he:t}},__vite__mapDeps([41,8]))).he;case"hr-HR":return(await y(async()=>{const{hr:t}=await import("./locales.hr-Crv0m-yD-v01.js").then(o=>o.h);return{hr:t}},__vite__mapDeps([42,8]))).hr;case"hu-HU":return(await y(async()=>{const{hu:t}=await import("./locales.hu-r5p-kcaZ-v01.js").then(o=>o.h);return{hu:t}},__vite__mapDeps([43,8]))).hu;case"id-ID":return(await y(async()=>{const{id:t}=await import("./locales.id-3iNet4bc-v01.js").then(o=>o.i);return{id:t}},__vite__mapDeps([44,8]))).id;case"it-IT":return(await y(async()=>{const{it:t}=await import("./locales.it-COyBetL9-v01.js").then(o=>o.i);return{it:t}},__vite__mapDeps([45,8]))).it;case"ja-JP":return(await y(async()=>{const{ja:t}=await import("./locales.ja-DNTrafRd-v01.js").then(o=>o.j);return{ja:t}},__vite__mapDeps([46,8]))).ja;case"ko-KR":return(await y(async()=>{const{ko:t}=await import("./locales.ko-DwrpRQ1l-v01.js").then(o=>o.k);return{ko:t}},__vite__mapDeps([47,8]))).ko;case"lt-LT":return(await y(async()=>{const{lt:t}=await import("./locales.lt-D-ZEBnjo-v01.js").then(o=>o.l);return{lt:t}},__vite__mapDeps([48,8]))).lt;case"lv-LV":return(await y(async()=>{const{lv:t}=await import("./locales.lv-COcAByDX-v01.js").then(o=>o.l);return{lv:t}},__vite__mapDeps([49,8]))).lv;case"ms-MY":return(await y(async()=>{const{ms:t}=await import("./locales.ms-B70Xe7vJ-v01.js").then(o=>o.m);return{ms:t}},__vite__mapDeps([50,8]))).ms;case"nl-NL":return(await y(async()=>{const{nl:t}=await import("./locales.nl-CKodBKiK-v01.js").then(o=>o.n);return{nl:t}},__vite__mapDeps([51,8]))).nl;case"no-NO":return(await y(async()=>{const{nn:t}=await import("./locales.nn-B_d9f0k--v01.js");return{nn:t}},__vite__mapDeps([52,8]))).nn;case"pl-PL":return(await y(async()=>{const{pl:t}=await import("./locales.pl-D8GoScpg-v01.js").then(o=>o.p);return{pl:t}},__vite__mapDeps([53,8]))).pl;case"pt-BR":case"pt-PT":return(await y(async()=>{const{pt:t}=await import("./locales.pt-Dwvgot0H-v01.js").then(o=>o.p);return{pt:t}},__vite__mapDeps([54,8]))).pt;case"ro-RO":return(await y(async()=>{const{ro:t}=await import("./locales.ro-DLAcWkUo-v01.js").then(o=>o.r);return{ro:t}},__vite__mapDeps([55,8]))).ro;case"ru-RU":return(await y(async()=>{const{ru:t}=await import("./locales.ru-pFodg3l--v01.js").then(o=>o.r);return{ru:t}},__vite__mapDeps([56,8]))).ru;case"sk-SK":return(await y(async()=>{const{sk:t}=await import("./locales.sk-DpEAwTTO-v01.js").then(o=>o.s);return{sk:t}},__vite__mapDeps([57,8]))).sk;case"sl-SI":return(await y(async()=>{const{sl:t}=await import("./locales.sl-B97iJI6c-v01.js").then(o=>o.s);return{sl:t}},__vite__mapDeps([58,8]))).sl;case"sr-RS":return(await y(async()=>{const{sr:t}=await import("./locales.sr-DXWYP2FT-v01.js").then(o=>o.s);return{sr:t}},__vite__mapDeps([59,8]))).sr;case"sv-SE":return(await y(async()=>{const{sv:t}=await import("./locales.sv-Dx8zaRpM-v01.js").then(o=>o.s);return{sv:t}},__vite__mapDeps([60,8]))).sv;case"th-TH":return(await y(async()=>{const{th:t}=await import("./locales.th-Vs7C6r3N-v01.js").then(o=>o.t);return{th:t}},__vite__mapDeps([61,8]))).th;case"tr-TR":return(await y(async()=>{const{tr:t}=await import("./locales.tr-DEAjudYt-v01.js").then(o=>o.t);return{tr:t}},__vite__mapDeps([62,8]))).tr;case"uk-UA":return(await y(async()=>{const{uk:t}=await import("./locales.uk-ChpWdGAr-v01.js").then(o=>o.u);return{uk:t}},__vite__mapDeps([63,8]))).uk;case"zh-CN":return(await y(async()=>{const{zhCN:t}=await import("./locales.zh-Ni38BF-H-v01.js").then(o=>o.z);return{zhCN:t}},__vite__mapDeps([64,8]))).zhCN;case"zh-HK":case"zh-TW":return(await y(async()=>{const{zhTW:t}=await import("./locales.zh-Ni38BF-H-v01.js").then(o=>o.a);return{zhTW:t}},__vite__mapDeps([64,8]))).zhTW;default:return Re}}async function Ot(e){try{return await ri(e)}catch(t){return A.error({error:t},`Failed to load locale for date-fns: ${e}`),Re}}async function ii(e,t){switch(e){case"ar-EG":return(await y(async()=>{const{default:o}=await import("./locales.ar-BOPYZOGX-v01.js").then(a=>a.b);return{default:o}},__vite__mapDeps([30,8]))).default.ar;case"bg-BG":return(await y(async()=>{const{default:o}=await import("./locales.bg-DSaT7Kdk-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([31,8]))).default.bg;case"ca-ES":return(await y(async()=>{const{default:o}=await import("./locales.ca-BRQnJkrP-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([32,8]))).default.ca;case"cs-CZ":return(await y(async()=>{const{default:o}=await import("./locales.cs-BFo5B2LQ-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([33,8]))).default.cs;case"da-DK":return(await y(async()=>{const{default:o}=await import("./locales.da-Adj491V5-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([34,8]))).default.da;case"de-DE":case"de-AT":case"de-CH":return(await y(async()=>{const{default:o}=await import("./locales.de-B2Cwn1Ct-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([35,8]))).default.de;case"el-GR":return(await y(async()=>{const{default:o}=await import("./locales.gr-mj5FapvA-v01.js");return{default:o}},[])).default.gr;case"en-US":case"en-GB":case"en-AU":return t;case"es-ES":case"es-MX":return(await y(async()=>{const{default:o}=await import("./locales.es-DYoRnmHK-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([37,8]))).default.es;case"et-EE":return(await y(async()=>{const{default:o}=await import("./locales.et-kFx9kTiX-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([38,8]))).default.et;case"fi-FI":return(await y(async()=>{const{default:o}=await import("./locales.fi-U1vTAPSn-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([39,8]))).default.fi;case"fr-FR":return(await y(async()=>{const{default:o}=await import("./locales.fr-DTbYRQAg-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([40,8]))).default.fr;case"he-IL":return(await y(async()=>{const{default:o}=await import("./locales.he-CUo3nAz2-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([41,8]))).default.he;case"hr-HR":return(await y(async()=>{const{default:o}=await import("./locales.hr-Crv0m-yD-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([42,8]))).default.hr;case"hu-HU":return(await y(async()=>{const{default:o}=await import("./locales.hu-r5p-kcaZ-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([43,8]))).default.hu;case"id-ID":return(await y(async()=>{const{default:o}=await import("./locales.id-3iNet4bc-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([44,8]))).default.id;case"it-IT":return(await y(async()=>{const{default:o}=await import("./locales.it-COyBetL9-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([45,8]))).default.it;case"ja-JP":return(await y(async()=>{const{default:o}=await import("./locales.ja-DNTrafRd-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([46,8]))).default.ja;case"ko-KR":return(await y(async()=>{const{default:o}=await import("./locales.ko-DwrpRQ1l-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([47,8]))).default.ko;case"lt-LT":return(await y(async()=>{const{default:o}=await import("./locales.lt-D-ZEBnjo-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([48,8]))).default.lt;case"lv-LV":return(await y(async()=>{const{default:o}=await import("./locales.lv-COcAByDX-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([49,8]))).default.lv;case"ms-MY":return(await y(async()=>{const{default:o}=await import("./locales.ms-B70Xe7vJ-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([50,8]))).default.ms;case"nl-NL":return(await y(async()=>{const{default:o}=await import("./locales.nl-CKodBKiK-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([51,8]))).default.nl;case"no-NO":return(await y(async()=>{const{default:o}=await import("./locales.no-Czg8Mbx8-v01.js");return{default:o}},[])).default.no;case"pl-PL":return(await y(async()=>{const{default:o}=await import("./locales.pl-D8GoScpg-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([53,8]))).default.pl;case"pt-BR":case"pt-PT":return(await y(async()=>{const{default:o}=await import("./locales.pt-Dwvgot0H-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([54,8]))).default.pt;case"ro-RO":return(await y(async()=>{const{default:o}=await import("./locales.ro-DLAcWkUo-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([55,8]))).default.ro;case"sk-SK":return(await y(async()=>{const{default:o}=await import("./locales.sk-DpEAwTTO-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([57,8]))).default.sk;case"sl-SI":return(await y(async()=>{const{default:o}=await import("./locales.sl-B97iJI6c-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([58,8]))).default.sl;case"sr-RS":return(await y(async()=>{const{default:o}=await import("./locales.sr-DXWYP2FT-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([59,8]))).default.sr;case"sv-SE":return(await y(async()=>{const{default:o}=await import("./locales.sv-Dx8zaRpM-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([60,8]))).default.sv;case"ru-RU":return(await y(async()=>{const{default:o}=await import("./locales.ru-pFodg3l--v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([56,8]))).default.ru;case"th-TH":return(await y(async()=>{const{default:o}=await import("./locales.th-Vs7C6r3N-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([61,8]))).default.th;case"tr-TR":return(await y(async()=>{const{default:o}=await import("./locales.tr-DEAjudYt-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([62,8]))).default.tr;case"uk-UA":return(await y(async()=>{const{default:o}=await import("./locales.uk-ChpWdGAr-v01.js").then(a=>a.a);return{default:o}},__vite__mapDeps([63,8]))).default.uk;case"zh-CN":return(await y(async()=>{const{default:o}=await import("./locales.zh-Ni38BF-H-v01.js").then(a=>a.b);return{default:o}},__vite__mapDeps([64,8]))).default.zh;case"zh-HK":case"zh-TW":return(await y(async()=>{const{default:o}=await import("./locales.zh-Ni38BF-H-v01.js").then(a=>a.c);return{default:o}},__vite__mapDeps([64,8]))).default.zh;default:return t}}async function si(e){const t=(await y(async()=>{const{default:o}=await import("./default-D2TRw_JW-v01.js");return{default:o}},[])).default;try{return await ii(e,t)}catch(o){return A.error({error:o},`Failed to load locale for flatpickr: ${e}`),t}}var I=(e=>(e.changed="changed",e.cleared="cleared",e.todaySelected="today-selected",e.tomorrowSelected="tomorrow-selected",e.applySelected="apply-selected",e.pickerClosed="picker-closed",e.pickerToggled="picker-toggled",e))(I||{});const ni=(e,t)=>{if(!it(e)||!it(t))return!1;const o=new Date,a=st(e),s=st(t);return!a||!s?!1:a.toDateString()===o.toDateString()&&s.toDateString()===o.toDateString()},it=e=>!!e,st=e=>e?e instanceof Date?e:new Date(e):!1;class Nt{constructor(t){Q(this,"analyticsLogger");this.analyticsLogger=t}buildCalendarEventPayload(t,o,a,s,l){return{metadata:{...o&&{location_id:o},...a&&{category_id:a},...s&&{location_type:s},...l&&{date_from:l.from,date_to:l.to}},id:t,target:"CalendarOpen"}}logCalendarClick(t,o,a,s,l){const i=this.buildCalendarEventPayload(t,o,a,s,l);this.analyticsLogger.logTravelerUIClick(i.target,i.id,i.metadata)}logCalendarSubmit(t,o,a,s,l){const i=this.buildCalendarEventPayload(t,o,a,s,l);i.target="CalendarSelection",this.analyticsLogger.logTravelerUIClick(i.target,i.id,i.metadata)}logCalendarAutoOpen(t,o,a,s,l){const i=this.buildCalendarEventPayload(t,o,a,s,l);this.analyticsLogger.logTravelerUIShow(i.target,i.id,i.metadata)}logCalendarClose(t,o,a,s,l){const i=this.buildCalendarEventPayload(t,o,a,s,l);i.target="CalendarClose",this.analyticsLogger.logTravelerUIClick(i.target,i.id,i?.metadata)}logCalendarUIEnteredDisplayPort(t,o,a,s){const l=this.buildCalendarEventPayload(t,o,a,s);this.analyticsLogger.logTravelerUIEnteredViewport(l.target,l.id,l?.metadata)}logTodayBtnClick(t=!1,o="search-bar"){const a={id:o,target:"CalendarTodaySelected",metadata:{outsideDatepicker:t}};this.analyticsLogger.logTravelerUIClick(a.target,a.id,a?.metadata)}logTomorrowBtnClick(t=!1,o="search-bar"){const a={id:o,target:"CalendarTomorrowSelected",metadata:{outsideDatepicker:t}};this.analyticsLogger.logTravelerUIClick(a.target,a.id,a?.metadata)}}const li=C({name:"CDatepickerWrapper",components:{CDatepickerMobile:io,CDatepickerDesktop:so},props:{show:{type:Boolean,required:!1,default:!1},rangeStart:{type:String,required:!1,default:""},rangeEnd:{type:String,required:!1,default:""},availabilities:{type:Array,required:!1,default:void 0},showPriceInfo:{type:Boolean,required:!1,default:!0},allowRangeSelection:{type:Boolean,required:!1,default:!0},suggestValues:{type:Boolean,required:!1,default:!0},hasFooter:{type:Boolean,required:!1,default:!0},offsetMonth:{type:Number,default:2},renderMobile:{type:Boolean,required:!1,default:!1}},emits:{close:()=>!0,clear:()=>!0,"change-dates":e=>!0,"today-selected":()=>!0,"tomorrow-selected":()=>!0,"date-click":e=>!0,toggle:e=>!0},data(){return{localizedLabels:{headline:this.$t("compass_datepicker_label_headline"),specialOffer:this.$t("compass_datepicker_label_special_offer"),clearButton:this.$t("compass_datepicker_button_clear"),doneButton:this.$t("compass_datepicker_button_done"),todayFilter:this.$t("compass_datepicker_filters_today"),tomorrowFilter:this.$t("compass_datepicker_filters_tomorrow"),nextButtonAriaLabel:this.$t("compass_datepicker_aria_next"),prevButtonAriaLabel:this.$t("compass_datepicker_aria_prev")},selectedRangeStart:this.rangeStart,selectedRangeEnd:this.rangeEnd}},computed:{...$({locale:"context/locale"})},watch:{rangeStart:{handler(e){this.selectedRangeStart=e},immediate:!0},rangeEnd:{handler(e){this.selectedRangeEnd=e},immediate:!0}},methods:{setSelectedRange(e){this.selectedRangeStart=e.start,this.selectedRangeEnd=e.end,this.selectedRangeStart.length&&this.selectedRangeEnd.length?this.$emit("change-dates",[new Date(`${this.selectedRangeStart}T00:00:00`),new Date(`${this.selectedRangeEnd}T00:00:00`)]):this.$emit("change-dates",[]),this.$emit("close")},handleToggle(e){this.$emit("toggle",e)},changeSelectedRange(e){this.$emit("date-click",e)},onTodaySelected(){this.$emit("today-selected")},onTomorrowSelected(){this.$emit("tomorrow-selected")}}}),ci={key:0},di={key:1};function ui(e,t,o,a,s,l){const i=d("CDatepickerMobile"),c=d("CDatepickerDesktop");return e.renderMobile?(r(),u("div",ci,[D(e.$slots,"label"),e.show?(r(),_(i,q({key:0},e.$props,{locale:e.locale,"localized-labels":e.localizedLabels,onConfirmSelectedRange:e.setSelectedRange,onChangeSelectedRange:e.changeSelectedRange,onClear:t[0]||(t[0]=m=>e.$emit("clear")),onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onToggle:e.handleToggle}),null,16,["locale","localized-labels","onConfirmSelectedRange","onChangeSelectedRange","onTodaySelected","onTomorrowSelected","onToggle"])):g("",!0)])):(r(),u("div",di,[h(c,q({locale:e.locale,"localized-labels":e.localizedLabels,show:e.show},e.$props,{onConfirmSelectedRange:e.setSelectedRange,onChangeSelectedRange:e.changeSelectedRange,onClear:t[1]||(t[1]=m=>e.$emit("clear")),onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onToggle:e.handleToggle}),{label:f(()=>[D(e.$slots,"label")]),_:3},16,["locale","localized-labels","show","onConfirmSelectedRange","onChangeSelectedRange","onTodaySelected","onTomorrowSelected","onToggle"])]))}const hi=b(li,[["render",ui]]);async function pi(){return new Promise(e=>{setTimeout(e,0)})}const mi=C({name:"Datepicker",components:{CIcon:F,CDatepickerWrapper:hi,CButton:V},inject:["rootEmitter"],props:{open:{required:!1,default:!1,type:Boolean},isDesktop:{required:!1,default:!0,type:Boolean},dateFrom:{required:!1,type:String},dateTo:{required:!1,type:String},locale:{required:!1,default:"en",type:String},options:{required:!1,type:Object,default:()=>({})},short:{default:!1,type:Boolean},scrollToSelectorOnChange:{type:String,default:""},selectDateButtonText:{type:String,required:!1,default:""},showMinimal:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},shouldCommitDatesOnSelection:{type:Boolean,default:!1},showClearIcon:{type:Boolean,default:!1},showCompactDropdownArrow:{type:Boolean,default:!1}},emits:["update:open","change-navigation-tab",I.applySelected,I.pickerClosed,I.changed,I.cleared,I.todaySelected,I.tomorrowSelected],computed:{...$({locationData:"location/locationData",availability:"availability/dates"}),dateFromValue(){return this.getValidDate(this.picker.dateFrom)},dateToValue(){return this.getValidDate(this.picker.dateTo)},buttonText(){return this.picker.dateFrom?this.formattedDates:this.selectDateButtonText?this.selectDateButtonText:this.$t("pdaterangepicker_adddates_label")},datepickerLabel(){return this.hasAnyDate?this.formattedDates:this.noDateSelectedLabel},hasAnyDate(){return this.hasDateFrom||this.hasDateTo},hasDateFrom(){return!!this.dateFromValue||!!this.picker.tempDateFrom},hasDateTo(){return!!this.dateToValue||!!this.picker.tempDateTo},dateFromFormatted(){return this.picker.opened&&this.picker.tempDateFrom?this.getFormattedDate(this.picker.tempDateFrom):this.dateFromValue?this.getFormattedDate(this.dateFromValue):""},dateToFormatted(){return this.picker.opened&&this.picker.tempDateTo?this.getFormattedDate(this.picker.tempDateTo??""):this.dateToValue?this.getFormattedDate(this.dateToValue):""},formattedDates(){if(this.dateFromFormatted===this.dateToFormatted){const e=this.getFormattedDate(ve(new Date,1)),{dateFrom:t,dateTo:o}=this.picker;return ni(t,o)?this.$t("compass_datepicker_filters_today")??"Today":this.dateFromFormatted===e?this.$t("compass_datepicker_filters_tomorrow")??"Tomorrow":`${this.dateFromFormatted}`}return this.hasDateFrom&&this.hasDateTo?`${this.dateFromFormatted} - ${this.dateToFormatted}`:`${this.dateFromFormatted??this.dateToFormatted}`},noDateSelectedLabel(){return this.selectDateButtonText||this.$t("compass_datepicker_label_headline")}},watch:{"picker.opened":function(){this.trackCalendarToggle()},open:function(e){this.$props.open&&(this.ignoreNextCloseWatch=!0),this.picker.opened=e,e&&this.$nextTick(()=>{this.makePanelVisibleInViewport()})},dateFrom:function(){this.loadFromProps()},dateTo:function(){this.loadFromProps()},picker:{deep:!0,handler:function(){this.loadPanel||(this.loadPanel=this.picker.opened)}}},async mounted(){this.loadPanel||(this.loadPanel=this.$props.open),this.picker.opened=this.$props.open,this.loadFromProps(),await this.loadLocales(),window.addEventListener("resize",this.makePanelVisibleInViewport),this.makePanelVisibleInViewport(),this.picker.options={...this.picker.options,...this.$props.options}},beforeMount(){this.searchPanelEventService=new Nt(this.$analyticsLogger)},created(){this.picker.opened=this.$props.open,this.picker.options={...this.picker.options,...this.$props.options}},async unmounted(){window.removeEventListener("resize",this.makePanelVisibleInViewport)},methods:{getValidDate(e=""){if(!e)return null;const t=e instanceof Date?e:new Date(e);return!isNaN(t.getDate())?t:null},formatNumber(e){return e.toString().padStart(2,"0")},formatDate(e){const t=!isNaN(e?.getDate());return!e||!t?"":e.getFullYear()+"-"+this.formatNumber(e.getMonth()+1)+"-"+this.formatNumber(e.getDate())},async loadLocales(){this.dateFnsLocaleObject=await Ot(this.locale)},loadFromProps(){let e,t;this.$props.dateFrom&&(e=typeof this.$props.dateFrom=="string"?this.convertStringToDate(this.$props.dateFrom,this.picker.options?.dateFormat):this.$props.dateFrom),this.$props.dateTo&&(t=typeof this.$props.dateTo=="string"?this.convertStringToDate(this.$props.dateTo,this.picker.options?.dateFormat):this.$props.dateTo),this.setDates(e,t,!0)},async togglePicker(e,t){this.openingDatePicker=!0,await pi(),t&&t.preventDefault(),e?this.picker.opened=!this.picker.opened:this.closePicker(),this.$nextTick(()=>{this.makePanelVisibleInViewport()})},closePicker(){this.openingDatePicker=!1,this.picker.tempDateFrom=void 0,this.picker.tempDateTo=void 0,this.picker.opened&&(this.picker.opened=!1,this.$emit(I.pickerClosed))},onTodaySelected(){const e=new Date,t=this.getFormattedDate(e,this.picker.options?.dateFormat),o={today:e,formattedDate:t};this.$emit(I.todaySelected,o),this.setDates(e,e,!0),this.scrollToElement()},onTomorrowSelected(){const e=ve(new Date,1),t=this.getFormattedDate(e,this.picker.options?.dateFormat),o={tomorrow:e,formattedDate:t};this.$emit(I.tomorrowSelected,o),this.setDates(e,e,!0),this.scrollToElement()},onClearSelected(){const e={clearedDateFrom:this.picker.dateFrom,clearedDateTo:this.picker.dateTo};this.picker.tempDateFrom=void 0,this.picker.tempDateTo=void 0,this.setDates(void 0,void 0,!0),this.$emit(I.cleared,e),this.scrollToElement()},onApplySelected(e=[]){this.onChange(e);const{from:t}=this.availability;t?new re(this.$store.state,this.$route):new re(this.$store.state,this.$route).resetPersistDateCookie(),this.$emit(I.applySelected),this.closePicker(),this.scrollToElement()},onChange(e=[]){const[t,o]=e;this.setDates(t,o),this.scrollToElement()},scrollToElement(){this.scrollToSelectorOnChange&&document.querySelector(this.scrollToSelectorOnChange)?.scrollIntoView({behavior:"smooth",block:"start"})},setDates(e,t,o=!1){let a=!1;const s=this.picker.options?.dateFormat,l=e?this.getFormattedDate(e,s):void 0,i=t?this.getFormattedDate(t,s):void 0;if(this.picker.dateFrom!==e&&(a=this.picker.dateFrom&&e?this.picker?.dateFrom.getTime()!==e.getTime():this.picker?.dateFrom&&!e||!this.picker?.dateFrom&&e,this.picker.dateFrom=e),this.picker.dateTo!==t&&(a=this.picker.dateTo&&t?this.picker.dateTo.getTime()!==t.getTime():this.picker.dateTo&&!t||!this.picker.dateTo&&t,this.picker.dateTo=t),a){const c={dateFrom:e,dateTo:t,dateFromFormatted:l,dateToFormatted:i,formattedDate:this.formattedDates};this.$emit(I.changed,c)}o&&(this.datesSelected=[this.picker.dateFrom,this.picker.dateTo])},getFormattedDate(e,t){return $t(e,t??this.picker.options?.dateFormatUI,{locale:this.dateFnsLocaleObject})},convertStringToDate(e,t){return Fe(e,t,new Date)},isPanelVisible(){const e=window.innerWidth||document.documentElement.clientWidth,t=this.$refs[this.panelRef],o=this.$refs[this.infoRef];return typeof this.$refs[this.infoRef]>"u"?!1:o.getBoundingClientRect().right+t.offsetWidth<=e},makePanelVisibleInViewport(){if(!this.isDesktop)return;const e=this.$refs[this.panelRef];if(typeof e>"u")return;if(!this.isPanelVisible()){e.classList?.add("datepicker__panel__right");return}e.classList?.remove("datepicker__panel__right")},datePanelClick(e){e&&e.stopPropagation()},trackCalendarToggle(){const{id:e="",type:t="",category:o={}}=this.locationData||{};this.picker.opened?this.searchPanelEventService.logCalendarClick("search-bar",e,o?.id??"",t):this.searchPanelEventService.logCalendarClose("search-bar",e,o?.id??"",t)},updateSelectedDates(e){const t=new Date(`${e.start}T00:00:00`),o=new Date(`${e.end}T00:00:00`);this.shouldCommitDatesOnSelection?this.setDates(t,o,!0):(this.picker.tempDateFrom=t,this.picker.tempDateTo=o)},handleDatepickerDropdownClick(e){this.isDesktop||(e.stopPropagation(),this.togglePicker(!0,e))}},data:()=>({openingDatePicker:!1,searchPanelEventService:{},infoRef:"datepickerInfo",panelRef:"datepickerPanel",loadPanel:!1,dateFnsLocaleObject:void 0,datesSelected:[],ignoreNextCloseWatch:!1,picker:{opened:!1,dateFrom:null,dateTo:null,tempDateFrom:void 0,tempDateTo:void 0,options:{showHeader:!0,dateFormat:"yyyy-MM-dd",dateFormatUI:"MMM d",dateFromInput:"date-from",dateToInput:"date-to"}}})}),gi={key:1,class:"datepicker__icon ic-chevron down datepicker__icon--down"},fi={class:"datepicker-box__button-cta-label"},yi=["name","value"],_i=["name","value"];function vi(e,t,o,a,s,l){const i=d("CIcon"),c=d("CButton"),m=d("CDatepickerWrapper");return r(),_(m,{class:"datepicker__wrapper datepicker-range-input",ref:e.panelRef,show:e.picker.opened,"show-price-info":!1,"has-footer":e.showFooter,"range-start":e.formatDate(e.picker.dateFrom),"range-end":e.formatDate(e.picker.dateTo),"render-mobile":!e.isDesktop,onChangeDates:e.onApplySelected,onClear:e.onClearSelected,onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onToggle:e.togglePicker,onDateClick:e.updateSelectedDates},{label:f(()=>[e.isDesktop?(r(),u("div",{key:0,ref:e.infoRef,"data-test-id":"datepicker",class:w(["datepicker__info",{"datepicker__info--active":e.picker.opened}]),onClick:t[0]||(t[0]=(...v)=>e.handleDatepickerDropdownClick&&e.handleDatepickerDropdownClick(...v))},[h(i,{class:w(["datepicker__icon ic-calendar",{"datepicker__icon--short":e.short}]),name:"calendar",title:"Toggle","data-toggle":""},null,8,["class"]),n("span",{class:w(["datepicker__label",{"datepicker__label--short":e.short,"datepicker__label--placeholder":!e.hasAnyDate}])},S(e.datepickerLabel!=="undefined"?e.datepickerLabel:e.noDateSelectedLabel),3),e.showClearIcon&&(e.dateFrom||e.picker.tempDateFrom)?(r(),_(c,{key:0,class:"datepicker__clear-btn",variant:"text",onClick:e.onClearSelected},{icon:f(()=>[h(i,{class:"datepicker__icon-clear",name:"compact-cross"})]),_:1},8,["onClick"])):e.showMinimal?g("",!0):(r(),u("div",gi,[h(i,{name:e.showCompactDropdownArrow?"compact-chevron-down":"chevron-down"},null,8,["name"])]))],2)):(r(),u("div",{key:1,class:w(["datepicker-box__button-cta-container",{"datepicker-box__button-cta-container--short":e.short}])},[h(c,{onClick:t[1]||(t[1]=de(v=>e.togglePicker(!0,v),["stop"])),variant:"text","data-test-id":"datepicker",class:w({loading:e.openingDatePicker})},{icon:f(()=>[h(i,{name:"calendar"})]),default:f(()=>[n("span",fi,S(e.buttonText),1)]),_:1},8,["class"])],2)),n("input",{type:"hidden",readonly:"",name:e.picker.options.dateFromInput,value:e.picker.dateFrom},null,8,yi),n("input",{type:"hidden",readonly:"",name:e.picker.options.dateToInput,value:e.picker.dateTo},null,8,_i)]),_:1},8,["show","has-footer","range-start","range-end","render-mobile","onChangeDates","onClear","onTodaySelected","onTomorrowSelected","onToggle","onDateClick"])}const Ut=b(mi,[["render",vi]]);function Si(e={},t={},o){const{metadata:a}=e;let s=a||"{}";if(typeof s=="string"){try{s=JSON.parse(s)}catch(c){return A.error({...Tt,eventName:o},`[SDUI] Error parsing tracking metadata for event "${o}": ${c.message}`),e}const l=Qo(!0,{...e,metadata:s},t);return{...l,metadata:JSON.stringify(l.metadata)}}return e}function wi(e,t,o){if(t?.eventName==="DestinationGTM")return;if(!e){A.error({...Tt,eventName:t?.eventName},`[SDUI] Trying to dispatch a tracking event from the server: ${t?.eventName}`);return}if(!t?.eventName)return;const{eventName:a}=t,s=o?Si(t.properties,o,t.eventName):t.properties||{},l={...t.containerName?{web_frontend:{container_name:t.containerName}}:{},...t.properties?.producer_properties?.context?{context:t.properties.producer_properties.context}:{}};e.log(a,{...s,producer_properties:Wo(l)?void 0:l})}const Ci={attachPositionToActivityList:e=>e.map((t,o)=>({...t,position:o+1})),attachPositionToCollections:e=>{let t=1;const o={...e};return o.collections.forEach(a=>{let s=1;a.activities.forEach(l=>{l.position=t,l.relativePosition=s,s+=1,t+=1})}),o},isInViewport:(e,t=!1)=>{if(!e.getBoundingClientRect)return!1;const o=e.getBoundingClientRect(),a=e.tagName==="svg"?e.parentElement?.offsetHeight:e.offsetHeight;return a!==void 0&&a>window.innerHeight||t?o.top<window.innerHeight&&o.bottom>0:o.top<=window.innerHeight-(a||0)&&o.top>0},sendUIEnteredDisplayPort:(e,t,o,a,s)=>{const l=t.querySelector("a")||t,{id:i,metadata:c={},...m}=e,v={id:i||`t${l.dataset.activityId}`,metadata:{page_type:o,tour_id:l.dataset.activityId,position:l.dataset.position,is_available:l.dataset.isAvailable,...c},...m};a.logTravelerUIEnteredViewport(v.target,v.id,v.metadata,s)},sendSduiImpressionTrackingEvent:(e,t)=>{wi(e,t)}};var Ue=(e=>(e.Desktop="desktop",e.Mobile="mobile",e))(Ue||{});const Ht=C({name:"DatepickerMixin",components:{CButton:V},mixins:[It],inject:["rootEmitter"],props:{showActions:{type:Boolean,required:!1,default:!0},searchQuery:{type:String,required:!1,default:""},hasLocation:{type:Boolean,required:!1,default:!1},requiresLocation:{type:Boolean,required:!1,default:!1},searchSource:{type:String,required:!1,default:""},areDatesRequired:{type:Boolean,required:!1,default:!0},isCountry:{type:Boolean,required:!1,default:!1},inlineDatepicker:{type:Boolean,required:!1,default:!0},defaultDatepickerOpen:{type:Boolean,required:!1,default:!1},isTripItem:{type:Boolean,default:!1},dates:{type:Object,required:!1,default:()=>{}},shouldEmitDatesSelectedEvent:{type:Boolean,default:!1},preventAutoSubmit:{type:Boolean,required:!1,default:!1},isSearchAddDatesEnable:{type:Boolean,required:!1,default:!1},locationData:{type:Object,required:!1},collectionId:{type:String,required:!1,default:""}},emits:["on-dates-change",I.applySelected,I.todaySelected,I.tomorrowSelected,"top-bar-apply-selected"],data(){return{searchPanelEventService:{},datepickerClass:"datepicker-range-input",location:{},searchBoxService:{},selectedSuggestion:{},trackVisibilityHandler:Te(this.trackVisibility,300),datepickerOptions:{localization:{addDates:this.$t("pdaterangepicker_adddates_label")||"Add dates",today:this.$t("app_filters_date_today_btn")||"Today",tomorrow:this.$t("app_filters_date_tomorrow_btn")||"Tomorrow",clear:this.$t("pDaterangepicker Add Dates Button Clear")||"Clear",apply:this.$t("pDaterangepicker Add Dates Button Apply")||"Apply"},showHeader:!0},form:{dateFrom:"",dateTo:"",query:""},formErrors:[],dateToSelected:null,dateFromSelected:null,formattedDate:"",dateFnsLocaleObject:void 0,datepickerLocaleObject:{},today:{},tomorrow:{},searchTerm:"",onTodaySelectedBoolean:!1,onTomorrowSelectedBoolean:!1,datepickerOpen:!1,locationDataUtil:{}}},created(){this.location=this.locationData?this.locationData:this.hasLocation?this.$store.getters[Ao.locationData]:!1,this.datepickerOpen=this.defaultDatepickerOpen,this.searchQuery?this.form.query=this.searchQuery:this.location&&(this.form.query=this.locationName),this.locationDataUtil=new Bo(this.location,this.$route)},beforeMount(){this.searchPanelEventService=new Nt(this.$analyticsLogger),this.searchBoxService=Rt(this.$analyticsLogger)},async mounted(){this.listenDatesSelectedEmitter(),this.rootEmitter.on("apply-selected-button",()=>this.onApplySelectedButton()),this.rootEmitter.on("toggle:datepicker",this.toggleDatepicker),this.registerUIEnteredViewport(),this.today=new Date(new Date().setHours(0,0,0,0)),this.tomorrow=ve(this.today,1);const e=this.getDatesFromQuery();await this.loadLocales(),this.setDates(e),!this.isTripItem&&this.commitDates(e)},unmounted(){this.unregisterUIEnteredViewport()},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice",availability:"availability/dates",localePath:"context/localePath",locale:"context/locale"}),searchUrl(){const{cmp:e="",partner_id:t=""}=this.$route.query;if(this.selectedSuggestion&&this.selectedSuggestion?.type===X.GiftCard)return G(this.localePath,"/giftcard");const o={q:this.searchQuery||this.selectedSuggestion?.suggestion||this.form.query||this.locationName||"",...wt(this.selectedSuggestion),...this.locationId&&!this.isCountry&&{lc:`${this.locationId}`},...this.categoryId&&!this.isCountry&&{ct:`${this.categoryId}`},...e&&{cmp:`${e}`},...t&&{partner_id:`${t}`},...this.collectionId&&{collectionId:this.collectionId}};let a=jo(this.searchSource)?ce[this.searchSource]:ce.DATEPICKER;return(!this.searchSource||this.searchSource==="DATEPICKER")&&this.hasInitialLocation&&this.hasUserChangedLocation&&(a=ce.DESTINATION_QUERY_CHANGE),be(o,{from:this.form.dateFrom,to:this.form.dateTo},a,this.localePath,this.location?.locationTo?.id)},locationName(){if(this.location&&this.location?.type){const{name:e=""}=this.getLocationData(this.location.type);return e}return null},hasInitialLocation(){return this.locationName!==null},hasUserChangedLocation(){return this.selectedSuggestion&&this.location?this.selectedSuggestion.locationId!==this.location.id:this.locationName!==this.form.query},locationId(){return this.hasInitialLocation&&this.hasUserChangedLocation?null:this.location?this.location.id:null},categoryId(){return this.hasInitialLocation&&this.hasUserChangedLocation?null:this.location&&this.location.category?this.location.category.id:null},openDatePicker(){return!!(!this.form.dateFrom&&!this.form.dateTo&&this.areDatesRequired)},platform(){return this.isMobileOrTabletDevice?Ue.Mobile:Ue.Desktop},isDesktopDevice(){return!this.isMobileOrTabletDevice},formattedDates(){const e=this.form.dateFrom?this.getFormattedDate(Fe(this.form.dateFrom,"yyyy-MM-dd",new Date)):void 0,t=this.form.dateTo?this.getFormattedDate(Fe(this.form.dateTo,"yyyy-MM-dd",new Date)):void 0;if(e===t){const o=this.getFormattedDate(new Date),a=this.getFormattedDate(ve(new Date,1));return e===o?this.datepickerOptions?.localization?.today??"Today":e===a?this.datepickerOptions?.localization?.tomorrow??"Tomorrow":`${e}`}return this.form.dateFrom&&this.form.dateTo?`${e} - ${t}`:`${e??t}`}},methods:{getDatesFromQuery(){const e=this.$route,t=tt(e?e?.query:{});return this.dates?.dateFrom?(t.from=this.dates?.dateFrom,t.to=this.dates?.dateTo):t.to=t.to||t.from,t},listenDatesSelectedEmitter(){this.rootEmitter.on("datesSelected",e=>{const t={from:e.fromDate,to:e.toDate};this.setDates(t),this.commitDates(t)})},registerUIEnteredViewport(){this.trackVisibility(),window.addEventListener("scroll",this.trackVisibilityHandler),window.addEventListener("resize",this.trackVisibilityHandler)},unregisterUIEnteredViewport(){window.removeEventListener("scroll",this.trackVisibilityHandler),window.removeEventListener("resize",this.trackVisibilityHandler)},trackVisibility(){const e=document.querySelector(`.${this.datepickerClass}:not(.viewport-entered)`);e&&Ci.isInViewport(e)&&(this.searchPanelEventService.logCalendarUIEnteredDisplayPort(e.classList.value,this.locationId,this.categoryId,this.location?.type),e.classList.add("viewport-entered"))},onDaterangeChange({dateTo:e,dateFrom:t,dateFromFormatted:o,dateToFormatted:a,formattedDate:s}){this.dateFromSelected=t,this.dateToSelected=e,this.form.dateFrom=o,this.form.dateTo=a,s&&(this.formattedDate=s),(this.onTodaySelectedBoolean||this.onTomorrowSelectedBoolean)&&(this.logDatesApplied({}),this.onTodaySelectedBoolean=!1,this.onTomorrowSelectedBoolean=!1),this.$emit("on-dates-change")},async loadLocales(){const[e,t]=await Promise.all([Ot(this.locale),si(this.locale)]);this.dateFnsLocaleObject=e,this.datepickerLocaleObject=t},isDatesFormatValid(e){const t=/^\d{4}-\d{2}-\d{2}$/,{from:o="",to:a=""}=e,s=t.test(o)||o==="",l=t.test(a)||a==="";return s&&l},setDates(e){this.isDatesFormatValid(e)?this.form={...this.form,dateFrom:e.from,dateTo:e.to}:console.error(`Error: setDates: The dates provided are not in the correct format "yyyy-MM-dd", ${e.from,e.to}.`)},onTodaySelected(){this.onTodaySelectedBoolean=!0,this.searchPanelEventService.logTodayBtnClick(!1),this.$emit(I.todaySelected),this.handleAutoSubmit()},onTomorrowSelected(){this.onTomorrowSelectedBoolean=!0,this.searchPanelEventService.logTomorrowBtnClick(!1),this.$emit(I.tomorrowSelected),this.handleAutoSubmit()},onApplySelectedButton(){this.logDatesApplied({}),this.handleAutoSubmit()},triggerDatepickerOpen(){this.datepickerOpen=!0;const{location:{type:e},categoryId:t}=this,o=this.$route?.params?.locationId;this.searchPanelEventService.logCalendarAutoOpen(this.datepickerClass,o,t,e)},handleAutoSubmit(){this.$nextTick(()=>{const e=this.form.dateFrom||this.availability?.from,t=this.form.dateTo||e;if(this.shouldEmitDatesSelectedEvent&&this.isDatesFormatValid({from:e,to:t})){const o={fromDate:e,toDate:t};this.rootEmitter.emit("datesSelected",o),this.commitDates({from:e,to:t});return}if(!this.preventAutoSubmit){if(this.openDatePicker){this.formErrors.push("dates required"),this.triggerDatepickerOpen();return}this.onSubmit()}})},onSubmit(e){e&&e.preventDefault(),this.hasLocation&&!this.form.query&&(this.form.query=this.locationName||""),this.canSubmit()&&this.updateDates()},canSubmit(){if(!this.form.dateFrom&&this.areDatesRequired||!this.form.dateFrom&&this.hasLocation&&this.areDatesRequired)return this.triggerDatepickerOpen(),this.formErrors.push("dates required"),this.resetErrors(),!1;if(this.form.query===""&&!this.areDatesRequired)return this.formErrors.push("query required"),this.resetErrors(),!1;const e=this.$route,t=tt(e?e?.query:{});return this.form.dateFrom===t?.from&&this.form.dateTo===t?.to?!1:(this.datepickerOpen=!1,!0)},resetErrors(){setTimeout(()=>{this.formErrors=[]},1500)},logDatesApplied({id:e="search-bar"}){const{cmp:t="",partner_id:o="",q:a=""}=this.$route.query,s={...this.getFormDates(),...a&&{q:a},...t&&{cmp:t},...o&&{partner_id:o},...this.collectionId&&{collectionId:this.collectionId}},{location:{type:l},locationId:i,categoryId:c}=this;this.searchPanelEventService?.logCalendarSubmit(e,i,c,l,s)},getFormDates(){return{from:this.form.dateFrom??"",to:(this.form.dateTo||this.form.dateFrom)??""}},updateDates(){const e={...this.getFormDates(),...this.isSearchAddDatesEnable&&{searchUrl:this.searchUrl}};this.commitDates(e);const{isNearby:t}=this.locationDataUtil;t&&this.rootEmitter.emit("apply-selected")},async commitDates(e){await this.$store.commit("availability/setDates",e),this.setDatesOnCookies(e),this.$emit("top-bar-apply-selected",this.dateFromSelected&&this.formattedDate)},setDatesOnCookies(e){const t=P();e.from&&t.set("dateFrom",e.from),e.to&&t.set("dateTo",e.to)},getLocationData(e){const t=wo(e,this.location.parentLocations||[]);return t||{name:""}},getFormattedDate(e){try{return $t(e,"MMM d",{locale:this.dateFnsLocaleObject})}catch(t){return console.error("Error formatting date in getFormattedDate:",t.message),""}},toggleDatepicker(){this.datepickerOpen=!this.datepickerOpen},closeDatepicker(){this.datepickerOpen=!1}}}),ki=()=>typeof window>"u"||typeof document>"u"?!1:!document?.referrer?.startsWith(window.location?.origin),pe="gyg-backwards-nav-referers";var Je=(e=>(e.UP="up",e.DOWN="down",e.NONE="none",e))(Je||{});const le={clear(){try{window&&localStorage&&window.localStorage.removeItem(pe)}catch(e){if(Me(e))A.error("Error accessing localStorage",e);else throw e}},create(e){try{window.localStorage.setItem(pe,JSON.stringify([e]))}catch{A.error(`Backwards Navigation parsing error [create], referrers: [${e}]`)}},get(){try{if(!window||!localStorage)return null;const e=window.localStorage.getItem(pe);if(e)try{return JSON.parse(e)}catch{return this.clear(),A.error(`Backwards Navigation parsing error [get], referrers: ${e}`),null}else return null}catch(e){if(Me(e))return A.error("Error accessing localStorage",e),null;throw e}},push(e){const t=this.get();if(t){t.push(e);try{window.localStorage.setItem(pe,JSON.stringify(t))}catch{A.error(`Backwards Navigation parsing error [push], referrers: ${t}`),this.clear()}}else this.create(e)},pop(){const e=this.get();if(e&&Array.isArray(e)&&e.length>0){const t=e.pop();try{window.localStorage.setItem(pe,JSON.stringify(e))}catch{A.error(`Backwards Navigation parsing error [pop], backwardsHistoryData: ${e}`)}return t}return null}};function Ed(e){if(e)return;if(ki()){le.clear();return}const t=document.referrer,o=le.get();o&&Array.isArray(o)?o[o.length-1]===t||le.push(t):le.create(t)}function bi(){const e=le.get();return!(e&&Array.isArray(e)&&e.length>0)}function Ti(e,t){const o=Math.round(window.scrollY||document.documentElement.scrollTop);let a=t;return o>e&&t!=="down"?a="down":o<e&&t!=="up"&&(a="up"),{newScrollPosition:o,newScrollDirection:a}}const $i=C({name:"BackwardNavigationButton",components:{CIcon:F},props:{isRounded:{type:Boolean,required:!1,default:!1},absolute:{type:Boolean,required:!1,default:!0},scrollDirection:{type:String,required:!1,default:Je.NONE}},methods:{backwardNavigateTo(e){this.$analyticsLogger.logTravelerUIClick("backward-button",this.isRounded?"backward-button-gallery":"backward-button-nav",{navigateTo:e,scrollDirection:this.scrollDirection});let t=new URL(e),o=new URLSearchParams(t.search);o.get("backwards")||(o.append("backwards","true"),t.search=o.toString()),window.location.replace(this.getUrlForPersistDates(t.toString()))},goBack(){const e=le.pop();e?this.backwardNavigateTo(e):window.history.back()},getUrlForPersistDates(e){return new re(this.$store.state,this.$route).updateRedirectHref(e)}}}),Ii=["aria-label"];function Di(e,t,o,a,s,l){const i=d("CIcon");return r(),u("button",{class:w(["backward-navigation-button",{"backward-navigation-button--rounded":e.isRounded,"backward-navigation-button--absolute":e.isRounded&&e.absolute}]),"data-test-id":"backward-navigation-button",onClick:t[0]||(t[0]=(...c)=>e.goBack&&e.goBack(...c)),"aria-label":e.$t("backwards_navigation_back")},[D(e.$slots,"default",{},()=>[h(i,{name:"chevron-left",class:"backward-navigation-button_icon"})],!0)],10,Ii)}const Ei=b($i,[["render",Di],["__scopeId","data-v-e2e2a703"]]),Pi=C({name:"FixerNav",props:{threshold:{type:Number,default:140},centerContentFixed:{type:Boolean,default:!1},disabled:{type:Boolean,default:!0}},data(){return{fixerActive:!1,fixerActiveVisible:!1,scrollDirection:Je.NONE,containerHeight:"auto",previousScrollPosition:0}},mounted(){this.disabled||(this.calculateContainerHeight(),this.handleScroll(),window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.calculateContainerHeight))},destroyed(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.calculateContainerHeight)},methods:{handleScroll(){window.requestAnimationFrame(()=>{window.scrollY>=this.threshold&&!this.fixerActive?(this.calculateContainerHeight(),this.fixerActive=!0,setTimeout(()=>{this.fixerActiveVisible=!0},1)):window.scrollY<this.threshold&&this.fixerActive&&(this.fixerActive=!1,this.fixerActiveVisible=!1),this.fixerActive&&this.checkScrollDirection()})},calculateContainerHeight(){const e=this.$el.querySelector(".fixer-nav__content");if(e){const t=e.getBoundingClientRect().height,o=window.getComputedStyle(e.children[0])||{},a=parseFloat(o.marginTop)+parseFloat(o.marginBottom)||0;this.containerHeight=t+a+"px"}else this.containerHeight="auto"},checkScrollDirection(){const{newScrollPosition:e,newScrollDirection:t}=Ti(this.previousScrollPosition,this.scrollDirection);this.previousScrollPosition=e,this.scrollDirection=t}}});function Li(e,t,o,a,s,l){return r(),u("div",{"data-test-id":"fixer-nav",class:"fixer-nav__container",style:Ce({height:e.containerHeight})},[n("div",{class:w(["fixer-nav__content",{"fixer-nav__content--fixed":e.fixerActive,"fixer-nav__content--fixed-visible":e.fixerActiveVisible,"fixer-nav__content--center-content-fixed":e.fixerActive&&e.centerContentFixed}])},[D(e.$slots,"default",ae(we({fixerActive:e.fixerActive,scrollDirection:e.scrollDirection})),void 0,!0)],2)],4)}const Ai=b(Pi,[["render",Li],["__scopeId","data-v-5d7119d7"]]),Bi=C({name:"SearchPanel",components:{BackwardNavigationButton:Ei,SearchAutocomplete:se,Datepicker:Ut,CButton:V,CChip:no,CChipGroup:lo,CIcon:F,FixerNav:Ai},mixins:[Ht],props:{showAutoComplete:{type:Boolean,required:!1,default:!1},wrapped:{type:Boolean,required:!1,default:!1},useSearchLabel:{type:Boolean,required:!1,default:!1},dateChangeHandler:{type:Function,required:!1,default:()=>({})},ctaText:{type:String,required:!1,default:""},inlineTodayTomorrow:{type:Boolean,required:!1,default:!1},showDates:{type:Boolean,required:!1,default:!0},transparentBackground:{type:Boolean,default:!1},scrollToSelectorOnChange:{type:String,default:""},isSearchAddDatesEnable:{type:Boolean,default:!1},shouldEmitDatesSelectedEvent:{type:Boolean,default:!1},searchQuery:{type:String,required:!1,default:""}},emits:["on-term-selected","on-selected-suggestion","today-triggered","tomorrow-triggered"],data(){return{}},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice",suggestionsPayload:"topLevelSearch/suggestions"}),isTodaySelected(){if(this.dateFromSelected&&this.dateToSelected&&this.today){const e=this.today.getTime();return this.dateFromSelected.getTime()===e&&this.dateToSelected.getTime()===e}return!1},isTomorrowSelected(){if(this.dateFromSelected&&this.dateToSelected&&this.tomorrow){const e=this.tomorrow.getTime();return this.dateFromSelected.getTime()===e&&this.dateToSelected.getTime()===e}return!1},showLocationSearchInput(){return this.showAutoComplete||!this.hasLocation&&this.requiresLocation},cta(){return this.$props?.ctaText?this.$props?.ctaText:this.showAutoComplete?this.$t("pModules_header submit search"):this.$t("pDatepicker check availability")},renderPanelOptions(){return!!(this.inlineTodayTomorrow||this.$slots["options-prepend"]||this.$slots["options-append"])},isBackwardsEntryPoint(){return bi()}},methods:{onClearDateRange(){this.shouldEmitDatesSelectedEvent&&this.$store.commit("availability/setDates",{from:void 0,to:void 0}),this.dateChangeHandler({})},onSelectedSuggestion(e){this.$emit("on-selected-suggestion",e),this.selectedSuggestion=e,this.handleAutoDatepickerOpen()},clearCalendarDates(){this.form.dateFrom=null,this.form.dateTo=null},triggerTodaySelected(){if(this.$emit("today-triggered"),this.isTodaySelected){this.clearCalendarDates();return}this.form.dateFrom=this.today,this.form.dateTo=this.today,this.searchPanelEventService.logTodayBtnClick(!0)},triggerTomorrowSelected(){if(this.$emit("tomorrow-triggered"),this.isTomorrowSelected){this.clearCalendarDates();return}this.form.dateFrom=this.tomorrow,this.form.dateTo=this.tomorrow,this.searchPanelEventService.logTomorrowBtnClick(!0)},handleAutoDatepickerOpen(){return this.openDatePicker&&this.triggerDatepickerOpen(),this.openDatePicker},canSubmit(){return!this.form.dateFrom&&this.areDatesRequired?(this.triggerDatepickerOpen(),this.formErrors.push("dates required"),this.resetErrors(),!1):this.form.query===""&&!this.areDatesRequired?(this.formErrors.push("query required"),this.resetErrors(),!1):!0},onTermSelected(){const t=(this.suggestionsPayload?.suggestions||[])?.find(o=>o?.suggestion?.toLowerCase()===this.form.query?.toLowerCase());t&&(this.selectedSuggestion=t),this.$emit("on-term-selected",t),this.handleAutoDatepickerOpen()||this.onSubmit()}}}),Mi={key:1,class:"search-panel__group__mobile"},Ri={key:1,class:"input-group search-panel__group"},Fi={key:2,class:"input-group search-panel__options"},Oi={class:"search-panel__options__container"},Ni={key:3,class:"search-panel__actions"};function Ui(e,t,o,a,s,l){const i=d("BackwardNavigationButton"),c=d("SearchAutocomplete"),m=d("Datepicker"),v=d("FixerNav"),p=d("CChip"),k=d("CChipGroup"),E=d("CIcon"),W=d("CButton");return r(),u("div",{class:w(["search-panel",{"search-panel--search-add-dates-experiment":e.isSearchAddDatesEnable,"search-panel__wrapped":e.wrapped}]),"data-test-id":"search-panel"},[n("section",{class:w(`search-panel__container search-panel__${e.platform}`),style:Ce(`background-color: ${e.transparentBackground||e.isMobileOrTabletDevice?"transparent":e.partnerSearchBgColor}`)},[n("div",{class:w(["form-group search-panel__form-container",{"has-location":e.hasLocation,"requires-location":e.requiresLocation,"show-suggestions":e.showLocationSearchInput}])},[e.inlineDatepicker?(r(),_(v,{key:0,"center-content-fixed":e.isBackwardsEntryPoint,disabled:!1},{default:f(({fixerActive:M,scrollDirection:Ie})=>[M&&!e.isBackwardsEntryPoint?(r(),_(i,{key:0,"scroll-direction":Ie},null,8,["scroll-direction"])):g("",!0),n("div",{class:w(["input-group search-panel__group",{"error-animation":e.formErrors.includes("query required"),"search-panel__group__inline":e.inlineDatepicker,"search-panel__group__inline--fixed":M}])},[e.showLocationSearchInput?(r(),_(c,{key:0,minimal:!0,"is-search-panel":!0,"search-query":e.form.query,"is-desktop":e.isDesktopDevice,short:M,onTermSelected:e.onTermSelected,onSelectedSuggestion:e.onSelectedSuggestion},null,8,["search-query","is-desktop","short","onTermSelected","onSelectedSuggestion"])):g("",!0),e.showDates?(r(),_(m,{key:1,"data-test-id":"datepicker-search-panel",class:"datepicker-range-input","is-desktop":e.isDesktopDevice,open:e.datepickerOpen,"date-from":e.form.dateFrom,"date-to":e.form.dateTo,locale:e.locale,options:e.datepickerOptions,short:M,"scroll-to-selector-on-change":M?e.scrollToSelectorOnChange:"",onChanged:e.onDaterangeChange,onCleared:e.onClearDateRange,onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onApplySelected:e.onApplySelectedButton,onPickerClosed:e.closeDatepicker},null,8,["is-desktop","open","date-from","date-to","locale","options","short","scroll-to-selector-on-change","onChanged","onCleared","onTodaySelected","onTomorrowSelected","onApplySelected","onPickerClosed"])):g("",!0)],2)]),_:1},8,["center-content-fixed"])):(r(),u("div",Mi,[e.showLocationSearchInput?(r(),u("div",{key:0,class:w(["input-group search-panel__group",{"error-animation":e.formErrors.includes("query required")}])},[h(c,{minimal:!0,"search-query":e.form.query,"is-search-panel":!0,"is-desktop":e.isDesktopDevice,onTermSelected:e.onTermSelected,onSelectedSuggestion:e.onSelectedSuggestion},null,8,["search-query","is-desktop","onTermSelected","onSelectedSuggestion"])],2)):g("",!0),e.showDates?(r(),u("div",Ri,[h(m,{class:"datepicker-range-input","is-desktop":e.isDesktopDevice,open:e.datepickerOpen,"date-from":e.form.dateFrom,"date-to":e.form.dateTo,locale:e.locale,options:e.datepickerOptions,onChanged:e.onDaterangeChange,onCleared:e.onClearDateRange,onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onApplySelected:e.onApplySelectedButton,onPickerClosed:e.closeDatepicker},null,8,["is-desktop","open","date-from","date-to","locale","options","onChanged","onCleared","onTodaySelected","onTomorrowSelected","onApplySelected","onPickerClosed"])])):g("",!0)])),e.renderPanelOptions?(r(),u("div",Fi,[n("div",Oi,[e.inlineTodayTomorrow?(r(),_(k,{key:0},{default:f(()=>[h(p,{onChange:e.triggerTodaySelected,class:w({"c-chip--checked":e.isTodaySelected})},{default:f(()=>[T(S(e.$t("app_filters_date_today_btn")),1)]),_:1},8,["onChange","class"]),h(p,{onChange:e.triggerTomorrowSelected,class:w({"c-chip--checked":e.isTomorrowSelected})},{default:f(()=>[T(S(e.$t("app_filters_date_tomorrow_btn")),1)]),_:1},8,["onChange","class"])]),_:1})):g("",!0),D(e.$slots,"options-prepend",{},void 0,!0),D(e.$slots,"options-append",{},void 0,!0)])])):g("",!0),e.showActions?(r(),u("div",Ni,[h(W,{onClick:e.onSubmit,class:"check-availability gtm-trigger__check-availability-btn","data-test-id":"search-panel__check-availability-cta"},{icon:f(()=>[e.showLocationSearchInput?(r(),_(E,{key:0,name:"search-magnifier"})):g("",!0)]),default:f(()=>[T(" "+S(e.cta),1)]),_:1},8,["onClick"])])):g("",!0)],2)],6)],2)}const Hi=b(Bi,[["render",Ui],["__scopeId","data-v-f45cc895"]]),qi="isDatePickerClosed",Vi=C({name:"DatepickerBox",components:{Datepicker:Ut},mixins:[Ht],props:{collectionId:{type:String,required:!1,default:""},dates:{type:Object,required:!1,default:()=>{}},isRounded:{type:Boolean,default:!1},preventAutoSubmit:{type:Boolean,required:!1,default:!1},displayFormattedDates:{type:Boolean,required:!1,default:!1},selectDateButtonText:{type:String,required:!1,default:""},locationData:{type:Object,required:!1},short:{type:Boolean,required:!1,default:!1},searchQuery:{type:String,default:""},scrollToSelectorOnChange:{type:String,default:""},buttonVariant:{type:String,required:!1,default:void 0},isDatepickerOpenDesktop:{type:Boolean,required:!1,default:!1},showMinimal:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},shouldCommitDatesOnSelection:{type:Boolean,default:!1},showClearIcon:{type:Boolean,default:!1},showCompactDropdownArrow:{type:Boolean,default:!1}},emits:[I.changed,I.applySelected,I.todaySelected,I.tomorrowSelected],data(){return{logOpenEventFired:!1}},computed:{buttonText(){return this.displayFormattedDates&&this.form.dateFrom?this.formattedDates:this.selectDateButtonText?this.selectDateButtonText:this.$t("pdaterangepicker_adddates_label")},ctaText(){return this.location?this.$t("pModules_header submit search"):this.$t("pdaterangepicker_adddates_label")},containerName(){return U(this.$route)}},watch:{isDatepickerOpenDesktop(e){e&&!this.datepickerOpen?setTimeout(()=>{this.triggerDatepickerOpen();const t=this.getDatesFromQuery();this.setDates(t)}):e||this.closeDatepicker()}},async mounted(){this.datepickerOptions?.localization?.apply&&(this.datepickerOptions.localization.apply=this.$t("pdatepicker_calendar_button_search")),(this.datepickerOpen||this.isDatepickerOpenDesktop)&&this.triggerDatepickerOpen(),this.containerName==="AddedToCartExperience"&&this.$analyticsLogger.logTravelerUIEnteredViewport("AddedToCartExperience","recommendation_date_filter")},methods:{onDateRangeChange({dateTo:e,dateFrom:t,dateFromFormatted:o,dateToFormatted:a,formattedDate:s}){this.dateFromSelected=t,this.dateToSelected=e||t,this.form.dateFrom=o,this.form.dateTo=a,s&&(this.formattedDate=s),this.showActions||this.updateDates(),(this.onTodaySelectedBoolean||this.onTomorrowSelectedBoolean)&&(this.logDatesApplied({id:this.datepickerClass}),this.onTodaySelectedBoolean=!1,this.onTomorrowSelectedBoolean=!1),this.$emit(I.changed,{dateTo:e,dateFrom:t,dateFromFormatted:o,dateToFormatted:a,formattedDate:s}),this.shouldCommitDatesOnSelection&&this.commitDates({from:o,to:a})},onTomorrowSelected({formattedDate:e}){this.onTomorrowSelectedBoolean=!0,this.searchPanelEventService.logTomorrowBtnClick(!1,this.datepickerClass),this.handleAutoSubmit(),this.shouldCommitDatesOnSelection&&this.commitDates({from:e,to:e}),this.$emit(I.tomorrowSelected,{formattedDate:e})},onTodaySelected({formattedDate:e}){this.onTodaySelectedBoolean=!0,this.searchPanelEventService.logTodayBtnClick(!1,this.datepickerClass),this.handleAutoSubmit(),this.shouldCommitDatesOnSelection&&this.commitDates({from:e,to:e}),this.$emit(I.todaySelected,{formattedDate:e})},onApplySelectedButton(){this.logDatesApplied({id:this.datepickerClass}),this.onPickerClosed(),this.handleAutoSubmit(),this.$emit(I.applySelected)},onClearDates(){(this.isTripItem||this.shouldEmitDatesSelectedEvent)&&this.$store.commit("availability/setDates",{from:void 0,to:void 0})},onPickerClosed(){try{this.datepickerOpen&&localStorage&&localStorage.setItem(qi,JSON.stringify(!0))}catch(e){Me(e)&&A.error("Error setting local storage",e)}this.datepickerOpen=!1},updateDatePickerOpen(e){this.datepickerOpen=e}}});function zi(e,t,o,a,s,l){const i=d("Datepicker");return r(),_(i,{ref:"datepicker","show-icon-cta":!e.isMobileOrTabletDevice,"is-desktop":!e.isMobileOrTabletDevice,short:e.short,"scroll-to-selector-on-change":e.isMobileOrTabletDevice?e.scrollToSelectorOnChange:"",open:e.datepickerOpen,"date-from":e.form.dateFrom,"date-to":e.form.dateTo,locale:e.locale,options:e.datepickerOptions,"show-minimal":e.showMinimal,"show-footer":e.showFooter,"select-date-button-text":e.selectDateButtonText,"should-commit-dates-on-selection":e.shouldCommitDatesOnSelection,"show-clear-icon":e.showClearIcon,"show-compact-dropdown-arrow":e.showCompactDropdownArrow,onCleared:e.onClearDates,onChanged:e.onDateRangeChange,onTodaySelected:e.onTodaySelected,onTomorrowSelected:e.onTomorrowSelected,onApplySelected:e.onApplySelectedButton,onPickerClosed:e.onPickerClosed,"onUpdate:open":t[0]||(t[0]=c=>e.isMobileOrTabletDevice?void 0:e.updateDatePickerOpen)},null,8,["show-icon-cta","is-desktop","short","scroll-to-selector-on-change","open","date-from","date-to","locale","options","show-minimal","show-footer","select-date-button-text","should-commit-dates-on-selection","show-clear-icon","show-compact-dropdown-arrow","onCleared","onChanged","onTodaySelected","onTomorrowSelected","onApplySelected","onPickerClosed"])}const Xe=b(Vi,[["render",zi]]),Gi=(e,t,o,a)=>o*(e/=a)*e*e+t,Wi=()=>window.requestAnimationFrame,Qi=e=>{const t=document.body.parentNode;document.documentElement.scrollTop=e,t.scrollTop=e,document.body.scrollTop=e},ji=()=>{const e=document.body.parentNode;return document.documentElement.scrollTop||e.scrollTop||document.body.scrollTop},Yi=(e,t=500,o=0,a=()=>{})=>{const s=ji(),l=e.offsetTop-o-s,i=20,c=Wi();let m=0;const v=()=>{m+=i;const p=Gi(m,s,l,t);if(Qi(p),m<t){c(v);return}a()};v()},Ki=C({name:"FloatingSearchBarBase",components:{SearchPanel:Hi,SearchAutocomplete:se,DatepickerBox:Xe},mixins:[Ke],props:{searchQuery:{type:String,required:!0},searchSource:{type:String,required:!0},isMobile:{type:Boolean,required:!0},showDatePicker:{type:Boolean,required:!0},headerText:{type:String,required:!0},dates:{type:Object,required:!0}},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice"})},methods:{getSearchBodyElement(){return document?.querySelector("search-container")??null},scrollPageToSection(e=0,t){t!==null&&Yi(t,e)}}}),Ji={key:0,class:"floating-bar-search-block"};function Xi(e,t,o,a,s,l){const i=d("SearchAutocomplete"),c=d("DatepickerBox"),m=d("SearchPanel");return e.shouldRenderComponent?(r(),u("div",{key:0,class:w({container:!e.isMobileOrTabletDevice})},[e.isMobileOrTabletDevice?(r(),_(m,{key:1,class:"search-container__wide floating-bar-search-block__mobile","search-query":e.searchQuery,"search-source":e.searchSource,"should-emit-dates-selected-event":!0,"show-actions":!1,"has-location":!1,"requires-location":!0,"show-auto-complete":!0,"inline-datepicker":!0,"are-dates-required":!1,"inline-today-tomorrow":!1,"scroll-to-selector-on-change":".search-panel__options__container",onTodayTriggered:t[0]||(t[0]=v=>e.scrollPageToSection(500,e.getSearchBodyElement())),onTomorrowTriggered:t[1]||(t[1]=v=>e.scrollPageToSection(500,e.getSearchBodyElement()))},null,8,["search-query","search-source"])):(r(),u("div",Ji,[h(i,{"cta-text":e.$t("pModules_header submit search"),class:"autocomplete-improvements","is-rounded":!0,"search-query":e.searchQuery},null,8,["cta-text","search-query"]),h(c,{"search-query":e.searchQuery,"search-source":e.searchSource,"has-location":!1,"requires-location":!0,"should-emit-dates-selected-event":!0,"inline-datepicker":!1,"are-dates-required":!1,"default-datepicker-open":e.showDatePicker,"is-rounded":!0},null,8,["search-query","search-source","default-datepicker-open"])]))],2)):g("",!0)}const Zi=b(Ki,[["render",Xi],["__scopeId","data-v-9a62475c"]]);function xi(e,t){return{searchQuery:e.displayedSearchQuery??"",searchSource:"8",isMobile:t.isMobile,showDatePicker:e.showDatePicker,dates:e.dates||null,headerText:e.headerText||"Find incredible experiences"}}const es=C({name:"FloatingSearchBarInfo",components:{CButton:V,CIcon:F},props:{searchQuery:{type:String,required:!0},dates:{type:Object,required:!0},label:{type:String,required:!1},isVisible:{type:Boolean,default:!1}},emits:["open-form"],data:function(){return{datepickerOptions:{localization:{addDates:this.$t("compass_datepicker_label_headline")||"Add dates"}}}},computed:{searchButtonLabel(){return this.searchQuery||this.$t("pModules_header submit search")},formattedDates(){return this.label?this.label:this.datepickerOptions.localization?.addDates??"Add dates"}},methods:{handleClick(e){this.$emit("open-form",e)},async handleSearchClick(){this.$analyticsLogger.logTravelerUIClick("SearchButtonClick","floating-search-bar"),this.$emit("open-form","none")}}});function ts(e,t,o,a,s,l){const i=d("CIcon"),c=d("CButton");return r(),u("div",{class:w(["floating-search-bar-info",{"floating-search-bar-info--visible":e.isVisible}])},[h(c,{"fix-icon":!0,size:"small",variant:"text",class:"floating-search-bar-info__search-input",onClick:t[0]||(t[0]=()=>e.handleClick("searchInput"))},{icon:f(()=>[h(i,{name:"search-magnifier"})]),default:f(()=>[T(S(e.searchButtonLabel)+" ",1)]),_:1}),t[2]||(t[2]=n("span",{class:"floating-search-bar-info__separator"},null,-1)),h(c,{"fix-icon":!0,size:"small",variant:"text",class:w({"floating-search-bar-info__datepicker":!0,"floating-search-bar-info__datepicker--placeholder":!e.label}),onClick:t[1]||(t[1]=()=>e.handleClick("datepicker"))},{icon:f(()=>[h(i,{name:"calendar"})]),default:f(()=>[T(S(e.formattedDates)+" ",1)]),_:1},8,["class"]),h(c,{size:"small",class:"floating-search-bar-info__search-btn",onClick:e.handleSearchClick},{default:f(()=>[T(S(e.$t("pModules_header submit search")),1)]),_:1},8,["onClick"])],2)}const os=b(es,[["render",ts],["__scopeId","data-v-067b63f6"]]),Ze=C({name:"FloatingSearchBarForm",components:{DatepickerBox:Xe,SearchAutocomplete:se,CButton:V},mixins:[Ye],inject:["getFloatingSearchBarRef"],props:{autoFocusInput:{type:String,required:!0,validator(e){return["searchInput","datepicker","none"].includes(e)}},searchQuery:{type:String,required:!0},searchSource:{type:String,required:!0},headerText:{type:String,required:!0},isVisible:{type:Boolean,default:!1}},emits:["close-form","top-bar-apply-selected"],data:function(){return{currentSearchQuery:this.searchQuery,leftPadding:"0px"}},computed:{...$({availability:"availability/dates",localePath:"context/localePath",history:"topLevelSearch/history",suggestionsPayload:"topLevelSearch/suggestions"})},mounted(){window.addEventListener("resize",this.setHorizontalPadding),this.setHorizontalPadding()},beforeUnmount(){window.removeEventListener("resize",this.setHorizontalPadding)},methods:{...ie({addToHistory:"topLevelSearch/addToHistory",updateHistoryItem:"topLevelSearch/updateHistoryItem"}),setHorizontalPadding(){const e=typeof this.getFloatingSearchBarRef=="function"?this.getFloatingSearchBarRef():void 0;if(e){const t=e.offsetLeft;this.leftPadding=!isNaN(t)&&isFinite(t)?`${t}px`:"0px"}},handleClickOutside(){this.$emit("close-form")},emitLabel(e=""){this.$emit("top-bar-apply-selected",e)},async handleSearchClick(){let e="";const t=this.history.find(a=>a?.suggestion?.toLowerCase()===this.currentSearchQuery?.toLowerCase()),o=(this.suggestionsPayload?.suggestions||[]).find(a=>a?.suggestion?.toLowerCase()===this.currentSearchQuery?.toLowerCase()&&a?.locationType);if(o?.onClickLink?.link)t?await this.shouldUpdateHistorySuggestions(o):this.addToHistory(o),e=o.onClickLink.link;else if(t?.onClickLink?.link)e=t.onClickLink.link;else{const a={...this.currentSearchQuery&&{q:this.currentSearchQuery}};e=be(a,this.availability,Number(this.searchSource),this.localePath),e&&this.addToHistory({suggestion:this.currentSearchQuery,locationType:"search",onClickLink:{link:e}})}this.$analyticsLogger.logTravelerUIClick("SearchButtonClickFormOpen","floating-search-bar"),e&&window.location.assign(e)}}}),nt=()=>{mo(e=>({"0cd2a3a8":e.leftPadding}))},lt=Ze.setup;Ze.setup=lt?(e,t)=>(nt(),lt(e,t)):nt;const as={class:"floating-search-bar-form__header"},rs={class:"floating-search-bar-block"};function is(e,t,o,a,s,l){const i=d("SearchAutocomplete"),c=d("DatepickerBox"),m=d("CButton"),v=ft("click-outside");return N((r(),u("div",{class:w(["floating-search-bar-form",{"floating-search-bar-form--visible":e.isVisible}])},[n("div",as,S(e.headerText),1),n("div",rs,[h(i,{"cta-text":e.$t("pModules_header submit search"),class:"autocomplete-improvements","is-rounded":!0,"search-query":e.isVisible?e.searchQuery:void 0,"show-cta":!1,"auto-focus":e.autoFocusInput==="searchInput","show-clear":!0,"onUpdate:searchQuery":t[0]||(t[0]=p=>e.currentSearchQuery=p)},null,8,["cta-text","search-query","auto-focus"]),t[1]||(t[1]=n("span",{class:"floating-search-bar-block__separator"},null,-1)),h(c,{"search-query":e.searchQuery,"search-source":e.searchSource,"has-location":!1,"requires-location":!0,"should-emit-dates-selected-event":!0,"inline-datepicker":!1,"are-dates-required":!1,"is-datepicker-open-desktop":e.autoFocusInput==="datepicker","is-rounded":!0,"show-minimal":!0,onTopBarApplySelected:e.emitLabel},null,8,["search-query","search-source","is-datepicker-open-desktop","onTopBarApplySelected"]),h(m,{onClick:e.handleSearchClick,disabled:!e.currentSearchQuery?.trim()},{default:f(()=>[T(S(e.$t("pModules_header submit search")),1)]),_:1},8,["onClick","disabled"])])],2)),[[v,e.handleClickOutside]])}const ss=b(Ze,[["render",is],["__scopeId","data-v-c07d1b12"]]),ns=C({name:"FloatingSearchBarBaseB",components:{FloatingSearchBarInfo:os,FloatingSearchBarForm:ss},mixins:[Ke],inject:["rootEmitter"],provide(){return{getFloatingSearchBarRef:()=>this.$refs.floatingSearchBar}},props:{searchQuery:{type:String,required:!0},dates:{type:Object,required:!0},searchSource:{type:String,required:!0},headerText:{type:String,required:!0}},data:function(){return{showSearchForm:!1,autoFocusInput:"none",formattedDate:""}},mounted(){this.rootEmitter.on("open-search-suggestions-panel",this.handleOpenSearchSuggestionsPanelEvent),this.rootEmitter.on("toggle:datepicker",()=>{this.handleOpenForm("datepicker")})},methods:{handleOpenSearchSuggestionsPanelEvent(){this.$nextTick(()=>{this.handleOpenForm("searchInput")})},handleOpenForm(e){this.showSearchForm=!0,this.autoFocusInput=e},handleCloseForm(){this.showSearchForm=!1,this.autoFocusInput="none"},updateFormattedDate(e=""){this.formattedDate=e,this.handleCloseForm()}}}),ls={class:"floating-search-bar__overlay__header"},cs={class:"floating-search-bar__overlay__content"};function ds(e,t,o,a,s,l){const i=d("FloatingSearchBarInfo"),c=d("FloatingSearchBarForm");return r(),u("div",{class:w(["floating-search-bar",{"floating-search-bar--focused":e.showSearchForm}]),ref:"floatingSearchBar"},[h(i,{"is-visible":!e.showSearchForm,dates:e.dates,"search-query":e.searchQuery,label:e.formattedDate,onOpenForm:e.handleOpenForm},null,8,["is-visible","dates","search-query","label","onOpenForm"]),h(c,{"is-visible":e.showSearchForm,"auto-focus-input":e.autoFocusInput,"search-query":e.searchQuery,"search-source":e.searchSource,"header-text":e.headerText,onCloseForm:e.handleCloseForm,onTopBarApplySelected:e.updateFormattedDate},null,8,["is-visible","auto-focus-input","search-query","search-source","header-text","onCloseForm","onTopBarApplySelected"]),N(n("div",ls,null,512),[[z,e.showSearchForm]]),N(n("div",cs,null,512),[[z,e.showSearchForm]])],2)}const us=b(ns,[["render",ds],["__scopeId","data-v-9f716dff"]]),hs=C({name:"SearchBar",components:{DatepickerBox:Xe,SearchAutocomplete:se,CButton:V},mixins:[Ye],inject:["rootEmitter"],props:{isElevated:{type:Boolean,default:!0},searchQuery:{type:String,required:!0},searchSource:{type:String,required:!0},dates:{type:Object,required:!0}},data(){return{currentSearchQuery:this.searchQuery,placeholders:[this.$t("psearch_search_placeholder_attractions"),this.$t("psearch_search_placeholder_activities"),this.$t("psearch_search_placeholder_destinations"),this.$t("psearch_search_placeholder_shows_and_events")],currentIndex:0,intervalId:void 0,selectedSuggestionUrl:null,shouldAskForDateSelection:!1,shouldOpenDatePicker:!1,formattedDate:"",shouldOpenSearch:!1}},computed:{...$({availability:"availability/dates",localePath:"context/localePath",history:"topLevelSearch/history",suggestionsPayload:"topLevelSearch/suggestions"}),currentPlaceholderText(){return this.placeholders[this.currentIndex]},isFirstTimeVisitor(){return!this.formattedDate&&this.shouldAskForDateSelection}},watch:{currentSearchQuery:{handler(e){typeof window>"u"||(this.clearRotationInterval(),e?this.currentIndex=0:this.intervalId=window.setInterval(()=>this.rotateSearchPlaceholder(),1500))},immediate:!0}},mounted(){this.shouldAskForDateSelection=window.localStorage.getItem("gyg-dateSelectionPopupOpened")!=="true",this.rootEmitter.on("open-search-suggestions-panel",this.handleOpenSearchSuggestionsPanelEvent)},beforeUnmount(){this.clearRotationInterval()},methods:{...ie({addToHistory:"topLevelSearch/addToHistory",updateHistoryItem:"topLevelSearch/updateHistoryItem"}),handleOpenSearchSuggestionsPanelEvent(){this.shouldOpenSearch=!0},handleCloseSearchSuggestionsPanelEvent(){this.shouldOpenSearch=!1},clearRotationInterval(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0)},emitDatesSelected(){this.rootEmitter.emit("datesSelected",{fromDate:this.getValidDateString(this.availability.from),toDate:this.getValidDateString(this.availability.to)})},async handleSearchClick(){if(this.$analyticsLogger.logTravelerUIClick("SearchButtonClick","search-bar"),this.selectedSuggestionUrl){this.navigateToSearch(this.selectedSuggestionUrl);return}if(this.searchQuery&&this.currentSearchQuery===this.searchQuery){this.emitDatesSelected();return}let e="";const t=this.history.find(a=>a?.suggestion?.toLowerCase()===this.currentSearchQuery?.toLowerCase()),o=(this.suggestionsPayload?.suggestions||[]).find(a=>a?.suggestion?.toLowerCase()===this.currentSearchQuery?.toLowerCase()&&a?.locationType);if(o?.onClickLink?.link)t?await this.updateHistoryItem(o):this.addToHistory(o),e=o.onClickLink.link;else if(t?.onClickLink?.link)e=t.onClickLink.link;else{const a={...this.currentSearchQuery&&{q:this.currentSearchQuery}};e=be(a,this.availability,Number(this.searchSource),this.localePath),e&&this.addToHistory({suggestion:this.currentSearchQuery,locationType:"search",onClickLink:{link:e}})}e&&this.navigateToSearch(e)},getUrlWithDateParams(e){const t=this.getValidDateString(this.availability.from),o=this.getValidDateString(this.availability.to),[a,s=""]=e.split("?"),l=new URLSearchParams(s);t&&l.set("date_from",t||""),o&&l.set("date_to",o||"");const i=l.toString();return`${a}${i?`?${i}`:""}`},navigateToSearch(e){const t=this.getUrlWithDateParams(e);window.location.assign(t)},handleSuggestionSelection(e){this.isFirstTimeVisitor?(window.localStorage.setItem("gyg-dateSelectionPopupOpened","true"),this.selectedSuggestionUrl=e,this.shouldAskForDateSelection=!1,this.shouldOpenDatePicker=!0):this.navigateToSearch(e)},updateFormattedDate(e=""){this.formattedDate=e},rotateSearchPlaceholder(){this.currentIndex=(this.currentIndex+1)%this.placeholders.length},getValidDateString(e=""){return typeof e=="string"?e:""},handleTodaySelected(){this.currentSearchQuery&&this.emitDatesSelected()},handleTomorrowSelected(){this.currentSearchQuery&&this.emitDatesSelected()}}}),ps={class:"search-bar"};function ms(e,t,o,a,s,l){const i=d("SearchAutocomplete"),c=d("DatepickerBox"),m=d("CButton");return r(),u("div",ps,[n("div",{class:w(["search-bar__form",{"search-bar__form--elevated":e.isElevated}])},[h(i,{"search-query":e.searchQuery||"","show-cta":!1,"search-box-placeholder":e.currentPlaceholderText,"cta-text":e.$t("pModules_header submit search"),"should-propagate-search-selection":!0,"auto-focus":e.shouldOpenSearch,onInputFocusOut:e.handleCloseSearchSuggestionsPanelEvent,"onUpdate:searchQuery":t[0]||(t[0]=v=>e.currentSearchQuery=v),"onUpdate:selectedSuggestionLink":e.handleSuggestionSelection},null,8,["search-query","search-box-placeholder","cta-text","auto-focus","onInputFocusOut","onUpdate:selectedSuggestionLink"]),t[1]||(t[1]=n("span",{class:"search-bar__separator"},null,-1)),h(c,{class:"search-bar__datepicker","select-date-button-text":e.$t("psearch_datepicker_anytime_label"),"search-query":e.searchQuery,"search-source":e.searchSource,"requires-location":!0,"should-emit-dates-selected-event":!1,"inline-datepicker":!1,"are-dates-required":!1,"is-datepicker-open-desktop":e.shouldOpenDatePicker,"show-footer":!1,"prevent-auto-submit":!0,"should-commit-dates-on-selection":!0,"show-clear-icon":!0,"show-compact-dropdown-arrow":!0,onTopBarApplySelected:e.updateFormattedDate,onTodaySelected:e.handleTodaySelected,onTomorrowSelected:e.handleTomorrowSelected},null,8,["select-date-button-text","search-query","search-source","is-datepicker-open-desktop","onTopBarApplySelected","onTodaySelected","onTomorrowSelected"]),h(m,{class:"search-bar__submit-btn",size:"small",onClick:e.handleSearchClick,disabled:!e.currentSearchQuery?.trim()},{default:f(()=>[T(S(e.$t("pModules_header submit search")),1)]),_:1},8,["onClick","disabled"])],2)])}const xe=b(hs,[["render",ms],["__scopeId","data-v-e073a004"]]),gs=C({name:"SearchBarBase",components:{SearchBar:xe},props:{searchQuery:{type:String,required:!0},searchSource:{type:String,required:!0},dates:{type:Object,required:!0}}}),fs={class:"search-bar-base"};function ys(e,t,o,a,s,l){const i=d("SearchBar");return r(),u("div",fs,[h(i,{"search-query":e.searchQuery,"search-source":e.searchSource,dates:e.dates},null,8,["search-query","search-source","dates"])])}const _s=b(gs,[["render",ys]]),vs=C({name:"FloatingSearchBarBlock",components:{SearchBarBase:_s,FloatingSearchBarBase:Zi,FloatingSearchBarBaseB:us},mixins:[Ke],props:{block:{type:Object,required:!0},globalProps:{type:Object,required:!0},shouldRenderVariantB:{type:Boolean,default:!1}},data(){return{floatingSearchBarProps:xi(this.block,this.globalProps)}},computed:{...$({isMobileOrTabletDevice:"context/isMobileOrTabletDevice"}),isSearchRedesignEnabled(){return!this.isMobileOrTabletDevice&&this.$isExperimentActive(this.$store.state,Ct,"B")},invalidProps(){let e=[];return!this.block.id&&e.push("id"),!this.block.onDatesSelected&&e.push("onDatesSelected"),e}},mounted(){this.listenOnRoot("datesSelected",e=>{const t={date_from:e.fromDate,date_to:e.toDate};this.saveParamsInUrl(t)})}});function Ss(e,t,o,a,s,l){const i=d("SearchBarBase"),c=d("FloatingSearchBarBaseB"),m=d("FloatingSearchBarBase");return e.isSearchRedesignEnabled&&e.shouldRenderComponent?(r(),_(i,ae(q({key:0},e.floatingSearchBarProps)),null,16)):e.shouldRenderComponent&&e.shouldRenderVariantB?(r(),_(c,ae(q({key:1},e.floatingSearchBarProps)),null,16)):e.shouldRenderComponent?(r(),_(m,ae(q({key:2},e.floatingSearchBarProps)),null,16)):g("",!0)}const qt=b(vs,[["render",Ss]]),ws=C({name:"PageHeader",components:{SearchBar:xe,Navigation:Bt,SearchAutocomplete:se,FloatingSearchBar:qt},props:{layoutType:{type:String,required:!1,default:R.default},headerType:{type:String,required:!0},localePath:{type:String,default:void 0},shouldRenderSearch:{type:Boolean,default:!0},shouldRenderAuthActions:{type:Boolean,default:!0},currencySwitcherHeaderLayout:{type:String,required:!1,default:ge.none},showCountdownOnCart:{type:Boolean,required:!1,default:!1},autocomplete:{type:Object,default:()=>({})},dense:{type:Boolean,required:!1,default:!1},useNaviRedesignedSearchBar:{type:Boolean,default:!1}},data(){return{globalProps:{}}},computed:{...$({isMobile:"context/isMobileDevice",isTablet:"context/isTabletDevice",assetsCdnUrl:"context/assetsCdnUrl",locale:"context/locale",topBar:"sdui/topBar",globalNav:"globalNav/globalNavigation",isMobileOrTabletDevice:"context/isMobileOrTabletDevice"}),defaultLayout(){return this.layoutType===R.default},shouldRenderNavigation(){return this.layoutType!==R.checkout},shoppingCartHeader(){return this.layoutType===R.shoppingCartHeader},containerName(){return U(this.$route)},gygLogoUrl(){return this.layoutType===R.checkout?G(this.localePath,"/cart"):G(this.localePath,"/")},locationId(){return this.$route.params.locationId||""},shouldDisplayTopBar(){return this.shouldRenderSearch&&(this.defaultLayout||this.shoppingCartHeader)&&!!this.topBar},pageHeaderClasses(){return{[this.$props.headerType]:!0,"page-header--top-bar-active":this.shouldDisplayTopBar,"page-header--global-nav-active":this.isGlobalNavActiveForDesktop}},floatingSearchBarBlockProps(){return this.topBar},isGlobalNavActiveForDesktop(){return!this.isMobile&&!!this.globalNav},shouldUseNaviRedesignedSearchBar(){return!this.isMobileOrTabletDevice&&this.useNaviRedesignedSearchBar}},created(){this.globalProps={isMobile:this.isMobile,isTablet:this.isTablet,locale:this.locale,assetsCdnUrl:this.assetsCdnUrl}},beforeMount(){this.eventService=Dt(this.$analyticsLogger)},methods:{onLogoClick(){this.eventService.sendClickLogoEvent(this.containerName,this.locationId),window.location.assign(this.gygLogoUrl)}}}),Cs={class:"page-header__content"},ks={key:1,class:"page-header__search-top-bar"};function bs(e,t,o,a,s,l){const i=d("Link"),c=d("SearchBar"),m=d("SearchAutocomplete"),v=d("FloatingSearchBar"),p=d("Navigation");return r(),u("header",{class:w(["page-header",e.pageHeaderClasses]),"data-test-id":"page-header"},[n("div",Cs,[h(i,{href:e.gygLogoUrl,class:"page-header__logo-link","data-test-id":"page-header-logo",title:"GetYourGuide",onClick:de(e.onLogoClick,["prevent"])},{default:f(()=>[D(e.$slots,"gyg-logo")]),_:3},8,["href","onClick"]),e.shouldRenderSearch&&(e.defaultLayout||e.shoppingCartHeader)&&!e.topBar?(r(),u("div",{key:0,class:w({"page-header__search-autocomplete":!e.shouldUseNaviRedesignedSearchBar,"page-header__redesigned-search-bar":e.shouldUseNaviRedesignedSearchBar})},[e.shouldUseNaviRedesignedSearchBar?(r(),_(c,{key:0,dates:{},"search-source":"","search-query":""})):(r(),_(m,q({key:1},e.autocomplete,{"data-test-id":"search-box-header"}),null,16))],2)):g("",!0),e.shouldDisplayTopBar&&e.topBar?(r(),u("div",ks,[h(v,{block:e.floatingSearchBarBlockProps,"global-props":e.globalProps,"should-render-variant-b":""},null,8,["block","global-props"])])):g("",!0),D(e.$slots,"step-navigation"),e.shouldRenderNavigation?(r(),_(p,{key:2,"layout-type":e.layoutType,"header-type":e.headerType,"should-render-search":e.shouldRenderSearch,"should-render-auth-actions":e.shouldRenderAuthActions,"currency-switcher-header-layout":e.currencySwitcherHeaderLayout,"show-countdown-on-cart":e.showCountdownOnCart,dense:e.dense,parent:"page-header__navigation","data-test-id":"page-header-nav"},null,8,["layout-type","header-type","should-render-search","should-render-auth-actions","currency-switcher-header-layout","show-countdown-on-cart","dense"])):g("",!0)])],2)}const Ts=b(ws,[["render",bs]]),$s=C({name:"PartnerHeader",components:{SearchBar:xe,FloatingSearchBar:qt,Navigation:Bt,SearchAutocomplete:se},props:{layoutType:{type:String,required:!1,default:R.default},partnerHash:{type:String,required:!1,default:""},partnerHeaderLayout:{type:String,required:!1,default:K.Left},partnerImageUrl:{type:String,required:!1,default:""},partnerHomepageUrl:{type:String,required:!1,default:""},partnerBrandName:{type:String,required:!1,default:""},partnerBackgroundColor:{type:String,required:!1,default:""},partnerBackToHomeText:{type:String,required:!1,default:""},partnerBackToHomeColor:{type:String,required:!1,default:""},partnerDisplayGygLogo:{type:Boolean,required:!1,default:!0},partnerCustomHomepagePath:{type:String,required:!1,default:""},localePath:{type:String,default:void 0},shouldRenderSearch:{type:Boolean,default:!0},shouldRenderAuthActions:{type:Boolean,default:!0},autocomplete:{type:Object,default:()=>({})},shouldRenderWishlist:{type:Boolean,default:!0},shouldRenderCart:{type:Boolean,default:!0},showCountdownOnCart:{type:Boolean,required:!1,default:!1},dense:{type:Boolean,required:!1,default:!1},headerType:{type:String,required:!0},useNaviRedesignedSearchBar:{type:Boolean,default:!1}},data(){return{globalProps:{},eventService:Dt(this.$analyticsLogger)}},computed:{...$({topBar:"sdui/topBar",assetsCdnUrl:"context/assetsCdnUrl",isMobile:"context/isMobileDevice",isTablet:"context/isTabletDevice",locale:"context/locale",isMobileOrTabletDevice:"context/isMobileOrTabletDevice"}),logoURL(){const e="original";return this.partnerImageUrl?Co(this.partnerImageUrl,e):""},partnerBackToHomeMessage(){return this.partnerBackToHomeText?this.$t("pWhiteLabel back to",[this.partnerBackToHomeText]):""},shouldRenderTopHeader(){return(this.partnerHeaderLayout===K.Left||this.partnerHeaderLayout===K.Right||this.partnerHeaderLayout===K.Center)&&!!this.logoURL},shouldRenderInlineLayout(){return this.partnerHeaderLayout===K.Inline&&!!this.logoURL},shouldRenderRibbonLayout(){return this.partnerHeaderLayout===K.Ribbon&&!!this.logoURL},topHeaderLayout(){switch(this.partnerHeaderLayout){case K.Right:return"flex-end";case K.Center:return"center";default:return"flex-start"}},computedStyles(){return[{"--partner-top-header-layout":this.topHeaderLayout},{"--partner-header-back-ground-color":this.partnerBackgroundColor},{"--partner-ribbon-back-to-home-color":this.partnerBackToHomeColor},{"--partner-ribbon-image-url":`url(${this.logoURL})`},{"--partner-inline-divider-spacing":this.partnerHash===Mo?"22px":"8px"}]},homepageUrl(){return this.partnerCustomHomepagePath?G(this.localePath,this.partnerCustomHomepagePath):G(this.localePath,"/")},defaultLayout(){return this.layoutType===R.default},shouldRenderNavigation(){return this.layoutType!==R.checkout},colorScheme(){return{[this.$props.headerType]:!0}},containerName(){return U(this.$route)},locationId(){return this.$route.params.locationId||""},shouldDisplaySearch(){return this.shouldRenderSearch&&this.defaultLayout},floatingSearchBarBlockProps(){return this.topBar},shouldUseNaviRedesignedSearchBar(){return!this.isMobileOrTabletDevice&&this.useNaviRedesignedSearchBar}},created(){this.globalProps={isMobile:this.isMobile,isTablet:this.isTablet,locale:this.locale,assetsCdnUrl:this.assetsCdnUrl}},methods:{onGygLogoClick(){this.eventService.sendClickLogoEvent(this.containerName,this.locationId),window.location.assign(this.homepageUrl)}}}),Is={key:0,"data-test-id":"partner-header-top",class:"partner-header__top"},Ds={class:"partner-header__content top-layout"},Es={key:0,"data-test-id":"partner-header-logo"},Ps=["src","alt"],Ls=["src","alt"],As={key:1,class:"partner-header__middle","data-test-id":"partner-header-middle"},Bs={class:"partner-header__content"},Ms={key:0,class:"back-to-home-slogan"},Rs={class:"partner-header__content"},Fs={key:0,class:"ribbon","data-test-id":"partner-ribbon"},Os={key:0,class:"inline","data-test-id":"partner-inline"},Ns=["src","alt"],Us=["src","alt"],Hs={key:4,class:"partner-header__search-top-bar"};function qs(e,t,o,a,s,l){const i=d("Link"),c=d("SearchBar"),m=d("SearchAutocomplete"),v=d("FloatingSearchBar"),p=d("Navigation");return r(),u("header",{class:w(["partner-header",{"partner-header--top-bar-active":e.shouldDisplaySearch&&!!e.topBar}]),style:Ce(e.computedStyles),"data-test-id":"partner-header"},[e.shouldRenderTopHeader?(r(),u("div",Is,[n("div",Ds,[e.defaultLayout?(r(),_(i,{key:1,href:e.partnerHomepageUrl,class:"data-testid-partner-header-logo partner-header__top__logo__link","data-test-id":"partner-header-top-logo"},{default:f(()=>[n("img",{src:e.logoURL,class:"partner-header__top__logo__image",alt:e.partnerBrandName},null,8,Ls)]),_:1},8,["href"])):(r(),u("span",Es,[n("img",{src:e.logoURL,class:"partner-header__top__logo__image",alt:e.partnerBrandName},null,8,Ps)]))])])):g("",!0),e.shouldRenderRibbonLayout?(r(),u("div",As,[n("div",Bs,[e.defaultLayout?(r(),_(i,{key:1,href:e.partnerHomepageUrl,class:"back-to-home-slogan data-testid-partner-header-logo"},{default:f(()=>[T(S(e.partnerBackToHomeMessage),1)]),_:1},8,["href"])):(r(),u("span",Ms,S(e.partnerBackToHomeMessage),1))])])):g("",!0),n("div",{"data-test-id":"partner-header-bottom",class:w(["partner-header__bottom",{offset:e.shouldRenderRibbonLayout},e.colorScheme])},[n("div",Rs,[e.shouldRenderRibbonLayout?(r(),u(L,{key:0},[e.defaultLayout?(r(),_(i,{key:1,class:"ribbon data-testid-partner-header-logo","data-test-id":"partner-ribbon",href:e.partnerHomepageUrl,title:e.partnerBrandName},null,8,["href","title"])):(r(),u("span",Fs))],64)):g("",!0),e.shouldRenderInlineLayout?(r(),u(L,{key:1},[e.defaultLayout?(r(),_(i,{key:1,class:"inline data-testid-partner-header-logo","data-test-id":"partner-inline",href:e.partnerHomepageUrl},{default:f(()=>[n("img",{src:e.logoURL,class:"inline__image",alt:e.partnerBrandName},null,8,Us)]),_:1},8,["href"])):(r(),u("span",Os,[n("img",{src:e.logoURL,class:"inline__image",alt:e.partnerBrandName},null,8,Ns)])),t[0]||(t[0]=n("span",{class:"inline__divider"},null,-1))],64)):g("",!0),e.partnerDisplayGygLogo?(r(),u(L,{key:2},[e.defaultLayout?(r(),_(i,{key:1,href:e.homepageUrl,class:"gyg-logo__link data-testid-partner-header-logo data-testid-gyg-header-logo",title:"GetYourGuide",onClick:de(e.onGygLogoClick,["prevent"]),"data-test-id":"partner-header-gyg-logo"},{default:f(()=>[D(e.$slots,"gyg-logo",{},void 0,!0)]),_:3},8,["href","onClick"])):D(e.$slots,"gyg-logo",{key:0},void 0,!0)],64)):g("",!0),e.shouldDisplaySearch&&!e.topBar?(r(),u("div",{key:3,class:w({"partner-header__search-autocomplete":!e.shouldUseNaviRedesignedSearchBar,"partner-header__redesigned-search-bar":e.shouldUseNaviRedesignedSearchBar})},[e.shouldUseNaviRedesignedSearchBar?(r(),_(c,{key:0,dates:{},"search-source":"","search-query":""})):(r(),_(m,q({key:1},e.autocomplete,{"data-test-id":"search-box-header"}),null,16))],2)):g("",!0),e.shouldDisplaySearch&&e.topBar?(r(),u("div",Hs,[h(v,{block:e.floatingSearchBarBlockProps,"global-props":e.globalProps,"should-render-variant-b":""},null,8,["block","global-props"])])):g("",!0),D(e.$slots,"step-navigation",{},void 0,!0),e.shouldRenderNavigation?(r(),_(p,{key:5,"layout-type":e.layoutType,"header-type":e.headerType,"should-render-search":e.shouldRenderSearch,"should-render-auth-actions":e.shouldRenderAuthActions,"should-render-wishlist":e.shouldRenderWishlist,"should-render-cart":e.shouldRenderCart,"show-countdown-on-cart":e.showCountdownOnCart,parent:"partner-header__navigation",dense:e.dense},null,8,["layout-type","header-type","should-render-search","should-render-auth-actions","should-render-wishlist","should-render-cart","show-countdown-on-cart","dense"])):g("",!0)])],2)],6)}const Vs=b($s,[["render",qs],["__scopeId","data-v-7d7f32c1"]]),zs=C({name:"WebToAppIconIos",components:{LazyLoadedImage:$e},props:{iconUrl:{type:String,required:!0}},computed:{...$({locale:"context/locale",assetsCdnUrl:"context/assetsCdnUrl"}),getSvg(){return`${this.assetsCdnUrl}/assets/static/badges/app-store-badge-${this.locale.toLowerCase()}.svg`},containerName(){return U(this.$route)}},methods:{trackAppClick(){this.$analyticsLogger.logTravelerUIClick("app-card-ios",this.$options.name,{container_name:this.containerName})}}});function Gs(e,t,o,a,s,l){const i=d("LazyLoadedImage"),c=d("Link");return r(),_(c,{"data-test-id":"icon-ios",href:e.iconUrl,title:e.$t("pApps download app store"),rel:"noopener",onClick:e.trackAppClick},{default:f(()=>[h(i,{"image-src":e.getSvg,"alt-text":e.$t("pApps download app store"),"image-width":"150px","image-height":"50px"},null,8,["image-src","alt-text"])]),_:1},8,["href","title","onClick"])}const Ws=b(zs,[["render",Gs]]),Qs=C({name:"WebToAppIconAndroid",components:{LazyLoadedImage:$e},props:{iconUrl:{type:String,required:!0}},computed:{...$({locale:"context/locale",assetsCdnUrl:"context/assetsCdnUrl"}),getSvg(){return`${this.assetsCdnUrl}/assets/static/badges/google-play-badge-${this.locale.toLowerCase()}.svg`},containerName(){return U(this.$route)}},methods:{trackAppClick(){this.$analyticsLogger.logTravelerUIClick("app-card-ios",this.$options.name,{container_name:this.containerName})}}});function js(e,t,o,a,s,l){const i=d("LazyLoadedImage"),c=d("Link");return r(),_(c,{"data-test-id":"icon-android",href:e.iconUrl,title:e.$t("pApps download on google play"),rel:"noopener",onClick:e.trackAppClick},{default:f(()=>[h(i,{"image-src":e.getSvg,"alt-text":e.$t("pApps download on google play"),"image-width":"150px","image-height":"47px"},null,8,["image-src","alt-text"])]),_:1},8,["href","title","onClick"])}const Ys=b(Qs,[["render",js]]),Ks=C({name:"WebToAppIcons",components:{WebToAppIconIos:Ws,WebToAppIconAndroid:Ys},props:{componentName:{type:String,required:!1,default:"component_sitewide"},showAndroid:{type:Boolean,required:!1,default:!0},showIos:{type:Boolean,required:!1,default:!0},androidClass:{type:String,required:!1,default:""},iosClass:{type:String,required:!1,default:""}},data(){return{androidAttributionLink:"",iosAttributionLink:""}},async mounted(){const e={component:this.componentName,pageType:this.containerName,platform:this.isMobileDevice?"mweb":"desktop",partnerId:this.partnerId??""},{ios:t,android:o}=await this.$store.dispatch("webToApp/getAttributionLinks",e);this.iosAttributionLink=t,this.androidAttributionLink=o},computed:{...$({isMobileDevice:"context/isMobileDevice",partnerId:"context/partnerHash"}),containerName(){return U(this.$route)}}});function Js(e,t,o,a,s,l){const i=d("WebToAppIconAndroid"),c=d("WebToAppIconIos");return r(),u("div",null,[e.showAndroid?(r(),_(i,{key:0,class:w(e.androidClass),"icon-url":e.androidAttributionLink,"component-name":e.componentName},null,8,["class","icon-url","component-name"])):g("",!0),e.showIos?(r(),_(c,{key:1,class:w(e.iosClass),"component-name":e.componentName,"icon-url":e.iosAttributionLink},null,8,["class","component-name","icon-url"])):g("",!0)])}const Xs=b(Ks,[["render",Js]]),Zs=C({name:"TriggerCurrencySelectionMixin",mixins:[fe],methods:{triggerCurrencySelection(e,t){this.emitOnRoot("currency-selected",e,t)}}});var Vt=(e=>(e.discountPage="apps_discount_page",e.customerBookings="customer_bookings",e.footerSitewide="footer_sitewide",e.appsPageHero="apps_page_hero",e.componentSitewide="component_sitewide",e))(Vt||{}),zt=(e=>(e.legal="/c/legal",e.privacy="/c/privacy-policy",e.privacyCCPA="/c/tc-ccpa",e.terms="/c/general-terms-and-conditions",e.amexTerms="/c/amex-terms-and-conditions",e.security="/c/security",e.rightOfWithdrawal="/c/right-of-withdrawal",e.travelLaw="/c/tc-travel-law",e))(zt||{});const{mapActions:xs}=ke("context"),en=C({name:"PageFooter",components:{WebToAppIcons:Xs,LazyLoadedImage:$e,CIcon:F},mixins:[Zs],props:{noNavigation:{type:Boolean,default:!1},currentCurrencyIso:{type:String,required:!0},currentLocaleIso:{type:String,required:!0},partnerHash:{type:String,required:!1,default:""},contactUrl:{type:String,required:!0},currencySwitcherFooterLayout:{type:String,required:!1,default:me.full}},data(){return{policyPage:zt,utmCampaign:"footer",currentYear:new Date().getFullYear()}},computed:{...$({assetsCdnUrl:"context/assetsCdnUrl",currencies:"context/currencies",localePath:"context/localePath",locales:"context/locales",topPaymentMethods:"context/topPaymentMethods",isMobile:"context/isMobileDevice"}),availableCurrencies(){return this.currencies.filter(e=>e.iso!=="RUB")},flattenedPaymentMethods(){let e=[];return(this.topPaymentMethods??[]).forEach(t=>e=e.concat(t,t.brands??[])),e.filter(t=>t.isTop&&t.iconImgSrc)},componentName(){return Vt.footerSitewide},copyrightDisclaimer(){const e="GetYourGuide. "+this.$t("pModules_Footer made")+" "+this.$t("pModules_Footer zurich_berlin");return this.noNavigation?e:e+"."},isPartnerTraffic(){return!!this.partnerHash},utmCampaignForSuppliers(){switch(this.$route.name){case"Home":return"home";case"Activity":return"adp";case"Trips":case"Location":return"tripitem";default:return"other"}},supplyPartnerUrl(){return`https://supplier.getyourguide.com/?utm_source=inbound&utm_medium=b2c_website_supply&utm_campaign=footer_link_${this.utmCampaignForSuppliers}`},contentCreatorUrl(){return"https://partner.getyourguide.com/en-us/content-creators/?partner_id=VPFQWBY&cmp=gyg_footer_creator"},affiliatePartnerUrl(){return"https://partner.getyourguide.com/en-us/content-creators/?partner_id=VPFQWBY&cmp=gyg_footer_affiliate"},shouldRenderFullCurrencySwitcher(){return this.currencySwitcherFooterLayout===me.full},shouldRenderStandaloneCurrencySwitcher(){return this.currencySwitcherFooterLayout===me.standalone}},methods:{...xs(["changeLocale"]),createRelativeUrlPath:G,triggerLanguageSelection(e){const t=e.target.value;this.changeLocale(t)},onStandaloneCurrencySwitcherClick(){this.$analyticsLogger.logTravelerUIClick("checkout-currency-picker-v1","footer"),bt.event(pa)},currencySelected(e){const t=e.target.value;this.triggerCurrencySelection(t,e)},toggleOneTrustInfo(){this.$isExperimentActive(this.$store.state,kt,"B")?window.__ucCmp?.showSecondLayer():window.OneTrust?.ToggleInfoDisplay()},emitAnalyticsEventForClick(e){this.$analyticsLogger.logTravelerUIClick(e)}}}),tn={class:"page-footer"},on={class:"page-footer__content"},an={class:"navigation page-footer__navigation"},rn={key:0,class:"navigation__links"},sn={class:"navigation__item navigation__item-section_preferences"},nn=["title"],ln={for:"footer-language-selector",class:"navigation__item-label"},cn={class:"navigation__item-selector-select-field"},dn=["selected","value"],un=["title"],hn={for:"footer-currency-selector",class:"navigation__item-label"},pn={class:"navigation__item-selector-select-field"},mn=["selected","value"],gn={class:"navigation__item navigation__item-section_mobile"},fn={class:"navigation__item-label navigation__item-section_mobile-label"},yn={class:"navigation__item navigation__item-section_support"},_n={for:"navigation__item-section_support-trigger",class:"navigation__item-label"},vn={class:"navigation__item-list"},Sn={class:"navigation__item-list-item"},wn={class:"navigation__item-list-item"},Cn={class:"navigation__item-list-item"},kn={class:"navigation__item-list-item"},bn={class:"navigation__item-list-item"},Tn={class:"navigation__item-list-item"},$n={class:"navigation__item-list-item"},In={class:"navigation__item-list-item"},Dn={class:"navigation__item navigation__item-section_company"},En={for:"navigation__item-section_company-trigger",class:"navigation__item-label"},Pn={class:"navigation__item-list"},Ln={class:"navigation__item-list-item"},An={class:"navigation__item-list-item"},Bn={class:"navigation__item-list-item"},Mn={class:"navigation__item-list-item"},Rn={class:"navigation__item-list-item"},Fn={class:"navigation__item-list-item"},On={class:"navigation__item navigation__item-section_work_with_us"},Nn={for:"navigation__item-section_work_with_us-trigger",class:"navigation__item-label"},Un={class:"navigation__item-list"},Hn={class:"navigation__item-list-item"},qn={class:"navigation__item-list-item"},Vn={class:"navigation__item-list-item"},zn={class:"navigation__item-section_ways_you_can_pay",id:"navigation__item-section_ways_you_can_pay"},Gn={class:"navigation__item-label"},Wn={class:"navigation__item-section_ways_you_can_pay-images"},Qn={class:"navigation__directory"},jn={class:"navigation__item navigation__item-section_copyright"},Yn={class:"navigation__item navigation__item-section_social_media"},Kn={key:0,class:"navigation__item navigation__item-section_preferences only-currency-switcher"},Jn=["title"],Xn={class:"navigation__item-selector-select-field"},Zn=["selected","value"];function xn(e,t,o,a,s,l){const i=d("CIcon"),c=d("WebToAppIcons"),m=d("Link"),v=d("LazyLoadedImage");return r(),u("footer",tn,[n("div",on,[n("nav",an,[e.noNavigation?g("",!0):(r(),u("div",rn,[n("form",sn,[n("fieldset",{class:"navigation__item-selector-container navigation__item-selector--language",title:e.$t("pModules_Header Select Language")},[n("label",ln,S(e.$t("pModules_Header language")),1),n("div",cn,[n("select",{onChange:t[0]||(t[0]=(...p)=>e.triggerLanguageSelection&&e.triggerLanguageSelection(...p)),class:"navigation__item-selector gtm-trigger__footer-change-language",id:"footer-language-selector",name:"footer-language-selector"},[(r(!0),u(L,null,O(e.locales,p=>(r(),u("option",{key:p.iso,selected:p.iso===e.currentLocaleIso,value:p.iso,class:"gtm-trigger__footer-change-language"},S(e.$t(`languageDisplay ${p.iso}`)),9,dn))),128))],32),h(i,{class:"navigation__item-selector-arrow icon",name:"chevron-down"})])],8,nn),e.shouldRenderFullCurrencySwitcher?(r(),u("fieldset",{key:0,class:"navigation__item-selector-container navigation__item-selector--currency",title:e.$t("pModules_Header Select Currency")},[n("label",hn,S(e.$t("pModules_Header currency")),1),n("div",pn,[n("select",{onChange:t[1]||(t[1]=(...p)=>e.currencySelected&&e.currencySelected(...p)),class:"navigation__item-selector gtm-trigger__footer-change-currency",id:"footer-currency-selector",name:"footer-currency-selector"},[(r(!0),u(L,null,O(e.availableCurrencies,p=>(r(),u("option",{key:p.iso,selected:p.iso===e.currentCurrencyIso,value:p.iso,class:"gtm-trigger__footer-change-currency"},S(e.$t(`currencyDisplay ${p.iso}`))+" ("+S(p.symbol)+") ",9,mn))),128))],32),h(i,{class:"navigation__item-selector-arrow icon",name:"chevron-down"})])],8,un)):g("",!0)]),n("div",gn,[n("label",fn,S(e.$t("pModules_Footer mobile")),1),h(c,{class:"navigation__item navigation__item-section_mobile-icons","component-name":e.componentName,"ios-class":"navigation__item-section_mobile-app-logo","android-class":"navigation__item-section_mobile-app-logo"},null,8,["component-name"])]),n("div",yn,[h(i,{class:"icon",name:"chevron-down"}),n("label",_n,S(e.$t("pModules_FooterSupport")),1),t[7]||(t[7]=n("input",{type:"checkbox",id:"navigation__item-section_support-trigger",class:"navigation__item-trigger navigation__item-section_support-trigger"},null,-1)),n("ul",vn,[n("li",Sn,[h(m,{href:e.contactUrl,"data-test-id":"footer-contact"},{default:f(()=>[T(S(e.$t("pModules_Footer Contact Us")),1)]),_:1},8,["href"])]),n("li",wn,[h(m,{href:e.policyPage.legal},{default:f(()=>[T(S(e.$t("pModules_Footer impressum")),1)]),_:1},8,["href"])]),n("li",Cn,[h(m,{href:e.policyPage.privacy},{default:f(()=>[T(S(e.$t("pModules_Footer privacy policy")),1)]),_:1},8,["href"])]),n("li",kn,[h(m,{href:"#",onClick:de(e.toggleOneTrustInfo,["prevent"])},{default:f(()=>[T(S(e.$t("pModules_Footer_cookies_marketing_preferences")),1)]),_:1},8,["onClick"])]),n("li",bn,[h(m,{href:e.policyPage.terms},{default:f(()=>[T(S(e.$t("pModules_Footer terms of use")),1)]),_:1},8,["href"])]),n("li",Tn,[h(m,{href:"/c/dsa"},{default:f(()=>[T(S(e.$t("pModules_Footer_DSA")),1)]),_:1})]),n("li",$n,[h(m,{href:"/"+e.$t("pBreadcrumb destination")},{default:f(()=>[T(S(e.$t("pModules_Footer sitemap")),1)]),_:1},8,["href"])]),n("li",In,[h(m,{href:e.policyPage.privacyCCPA},{default:f(()=>[T(S(e.$t("pModules_Footer_ccpa_privacy_policy")),1)]),_:1},8,["href"])])])]),n("div",Dn,[h(i,{class:"icon",name:"chevron-down"}),n("label",En,S(e.$t("pModules_FooterCompany")),1),t[9]||(t[9]=n("input",{type:"checkbox",id:"navigation__item-section_company-trigger",class:"navigation__item-trigger navigation__item-section_company-trigger"},null,-1)),n("ul",Pn,[n("li",Ln,[h(m,{href:"/about"},{default:f(()=>[T(S(e.$t("pModules_Footer company")),1)]),_:1})]),n("li",An,[h(m,{href:"https://careers.getyourguide.com/"},{default:f(()=>[T(S(e.$t("pModules_Footer jobs")),1)]),_:1})]),n("li",Bn,[h(m,{href:"https://inside.getyourguide.com/"},{default:f(()=>[T(S(e.$t("pModules_Footer Blog")),1)]),_:1})]),n("li",Mn,[h(m,{href:"https://press.getyourguide.com/"},{default:f(()=>[T(S(e.$t("pModules_Footer press")),1)]),_:1})]),n("li",Rn,[h(m,{href:e.createRelativeUrlPath(e.localePath,"/coupon/")},{default:f(()=>[T(S(e.$t("pModules_Footer Gift cards")),1)]),_:1},8,["href"])]),n("li",Fn,[h(m,{href:"https://www.getyourguide.com/explorer/travel-guides/"},{default:f(()=>t[8]||(t[8]=[T("Explorer")])),_:1})])])]),n("div",On,[h(i,{class:"icon",name:"chevron-down"}),n("label",Nn,S(e.$t("pModules_FooterWorkWithUs")),1),t[10]||(t[10]=n("input",{type:"checkbox",id:"navigation__item-section_work_with_us-trigger",class:"navigation__item-trigger navigation__item-section_work_with_us-trigger"},null,-1)),n("ul",Un,[n("li",Hn,[h(m,{target:"_blank",href:e.supplyPartnerUrl,onClick:t[2]||(t[2]=p=>e.emitAnalyticsEventForClick("supply_footer_click"))},{default:f(()=>[T(S(e.$t("pHome_cFooter_supply_partner")),1)]),_:1},8,["href"])]),n("li",qn,[h(m,{target:"_blank",href:e.contentCreatorUrl,onClick:t[3]||(t[3]=p=>e.emitAnalyticsEventForClick("creator_footer_click"))},{default:f(()=>[T(S(e.$t("pHome_cFooter_content_creator")),1)]),_:1},8,["href"])]),n("li",Vn,[h(m,{href:e.affiliatePartnerUrl,onClick:t[4]||(t[4]=p=>e.emitAnalyticsEventForClick("affiliate_footer_click"))},{default:f(()=>[T(S(e.$t("pHome_cFooter_affiliate_partner")),1)]),_:1},8,["href"])])]),n("div",zn,[n("label",Gn,S(e.$t("pModules_Footer Payment methods")),1),n("div",Wn,[(r(!0),u(L,null,O(e.flattenedPaymentMethods,(p,k)=>(r(),u("div",{key:k},[h(v,{class:"navigation__item-section_ways_you_can_pay-image","image-src":`${e.assetsCdnUrl}/assets/static/payment-methods/${p.iconImgSrc}`,"alt-text":p.name,"image-width":"31px","image-height":"20px"},null,8,["image-src","alt-text"])]))),128))])])])])),n("div",Qn,[n("p",jn,[n("span",null,[t[12]||(t[12]=T(" © ")),t[13]||(t[13]=n("time",null,"2008",-1)),t[14]||(t[14]=T(" – ")),n("time",null,S(e.currentYear),1),T(" "+S(e.copyrightDisclaimer)+" ",1),e.noNavigation?(r(),_(m,{key:0,href:e.policyPage.privacy,target:"_blank",rel:"noopener"},{default:f(()=>[t[11]||(t[11]=T(" – ")),n("u",null,S(e.$t("pModules_Footer privacy policy")),1)]),_:1},8,["href"])):g("",!0)])]),n("div",Yn,[h(m,{class:"navigation__item-section_social_media-icon",href:"https://www.facebook.com/GetYourGuide",title:"Facebook"},{default:f(()=>[h(i,{class:"icon",name:"logo-facebook"}),t[15]||(t[15]=T(" Facebook "))]),_:1}),h(m,{class:"navigation__item-section_social_media-icon",href:"https://www.instagram.com/getyourguide/",title:"Instagram"},{default:f(()=>[h(i,{class:"icon",name:"logo-instagram"}),t[16]||(t[16]=T(" Instagram "))]),_:1}),h(m,{class:"navigation__item-section_social_media-icon",href:"https://www.twitter.com/GetYourGuide",title:"Twitter"},{default:f(()=>[h(i,{class:"icon",name:"logo-x"}),t[17]||(t[17]=T(" Twitter "))]),_:1}),h(m,{class:"navigation__item-section_social_media-icon",href:"https://pinterest.com/getyourguide/",title:"Pinterest"},{default:f(()=>[h(i,{class:"icon",name:"logo-pinterest"}),t[18]||(t[18]=T(" Pinterest "))]),_:1}),h(m,{class:"navigation__item-section_social_media-icon",href:"https://www.linkedin.com/company/getyourguide-ag/",title:"LinkedIn"},{default:f(()=>[h(i,{class:"icon",name:"logo-linkedin"}),t[19]||(t[19]=T(" LinkedIn "))]),_:1})]),e.shouldRenderStandaloneCurrencySwitcher?(r(),u("form",Kn,[n("fieldset",{class:"navigation__item-selector-container navigation__item-selector--currency",title:e.$t("pModules_Header Select Currency")},[n("div",Xn,[n("select",{onChange:t[5]||(t[5]=(...p)=>e.currencySelected&&e.currencySelected(...p)),onClick:t[6]||(t[6]=(...p)=>e.onStandaloneCurrencySwitcherClick&&e.onStandaloneCurrencySwitcherClick(...p)),class:"navigation__item-selector gtm-trigger__footer-change-currency",id:"footer-currency-selector",name:"footer-currency-selector"},[(r(!0),u(L,null,O(e.availableCurrencies,p=>(r(),u("option",{key:p.iso,selected:p.iso===e.currentCurrencyIso,value:p.iso,class:"gtm-trigger__footer-change-currency"},S(e.$t(`currencyDisplay ${p.iso}`))+" ("+S(p.symbol)+") ",9,Zn))),128))],32),h(i,{class:"navigation__item-selector-arrow icon",name:"chevron-down"})])],8,Jn)])):g("",!0)])])])])}const el=b(en,[["render",xn]]),tl=120,ol=C({name:"PromoNotifications",components:{GygAlert:Dr},props:{redeemCodeExpiryDate:{type:String,default:""}},data(){return{redeemedCodes:[],hasPromoCode:!1,promoCodeMessageParams:{description:""},promotionType:De.None}},computed:{shouldShowPromoCodeMessage(){return this.hasPromoCode&&this.promotionType===De.CustomerEngagementPromotion}},watch:{redeemCodeExpiryDate(){this.setPromoCode()}},mounted(){this.setPromoCode()},methods:{dismissPromoCode(){ko(),this.hasPromoCode=!1},async setPromoCode(){if(this.promotionType=bo(),this.promotionType!==De.CustomerEngagementPromotion)return;this.redeemedCodes=ot(),this.hasPromoCode=!!this.redeemedCodes.length;const e=this.redeemedCodes[0];if(e&&this.hasPromoCode&&To(tl)){const[o,a]=await this.validateAndApplyRedeemCode(e.giftCardHash);this.redeemedCodes=o,this.hasPromoCode=a}if(this.hasPromoCode){const o=this.getPromoCodeDiscount(e);this.promoCodeMessageParams.description=this.$t("pBranding discount notification",[`${o}%`])}},async validateAndApplyRedeemCode(e){const{dispatch:t}=this.$store;await t("promotions/applyPromotion",{promoCode:e});const o=ot(),a=!!o.length;return[o,a]},getPromoCodeDiscount(e){return e.value.amount+""}}});function al(e,t,o,a,s,l){const i=d("GygAlert");return e.shouldShowPromoCodeMessage?(r(),_(i,{key:0,"data-test-id":"promo",closable:!0,onClose:t[0]||(t[0]=c=>e.dismissPromoCode()),modifier:"info"},{default:f(()=>[T(S(e.promoCodeMessageParams.description),1)]),_:1})):g("",!0)}const rl=b(ol,[["render",al]]),il=/^on[A-Z].+$/,sl=C({name:"Vue2CompatSupportListenersMixin",inheritAttrs:!1,computed:{compatVue2Listeners(){return"$listeners"in this?this.$listeners:Object.entries(this.$attrs).reduce((t,[o,a])=>{if(il.test(o)){const s=a,l=Yo(o.slice(2));t[l]=s}return t},{})}}}),nl=C({name:"Broadcast",components:{CIcon:F},mixins:[sl],props:{type:{type:String,required:!0},description:{type:String,required:!0},id:{type:Number,required:!1,default:null},isDismissible:{default:!1,type:Boolean,required:!1}},methods:{sanitizeHtml:ze,dismissBroadcast(e,t){typeof t=="function"&&t(e?.toString())},renderedDescription(e){return e?Ko(e):""}}}),ll={class:"container"},cl={class:"broadcast__container"},dl={class:"broadcast__description"},ul=["innerHTML"];function hl(e,t,o,a,s,l){const i=d("CIcon");return r(),u("section",{class:w(["broadcast",`broadcast--${e.type}`]),"data-test-id":"broadcast"},[n("div",ll,[n("div",cl,[e.type==="success"?(r(),_(i,{key:0,name:"checkmark-in-circle",class:"broadcast__alert-icon"})):(r(),_(i,{key:1,name:"info-in-circle",class:"broadcast__alert-icon"})),n("div",dl,[n("div",{innerHTML:e.sanitizeHtml(e.renderedDescription(e.description),{allowedTags:{a:["href","target"]}})},null,8,ul)]),e.isDismissible?(r(),u("div",{key:2,onClick:t[0]||(t[0]=c=>e.dismissBroadcast(e.id,e.compatVue2Listeners.dismissBroadcast)),class:"broadcast__close-icon"},[h(i,{class:"broadcast__close-icon-svg",name:"cross"})])):g("",!0)])])],2)}const pl=b(nl,[["render",hl]]),ml=B(()=>y(()=>import("./newsletter-banner-DpTfmtOd-v01.js"),__vite__mapDeps([65,2,3,4,6,7,8,66,9,1,5,10,67]))),gl=B(()=>y(()=>import("./notification-login-CtP3Eib--v01.js"),__vite__mapDeps([68,9,6,3,2,4,7,8,1,5,10,69]))),{mapActions:fl,mapState:yl,mapMutations:_l}=ke("context"),vl=C({name:"Notifications",components:{Broadcast:pl,NewsletterBanner:ml,PromoNotifications:rl,NotificationLogin:gl},data(){return{fetchingMarketingEnabled:!0}},created(){this.setSessionMessage(this.sessionMessage||this.$route.query.notification)},mounted(){this.showNewsletterBanner||(this.fetchingMarketingEnabled=!1),window.history&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual")},computed:{...yl(["sessionMessage"]),...$({notificationMessage:"notifications/message",isProduction:"context/isProduction"}),messageParams(){const e={login:{description:this.$t("pNotifications login successful"),type:"success",showNewsletterBanner:!0},signup:{description:this.$t("pNotifications signup successful"),type:"success",showNewsletterBanner:!0},logout:{description:this.$t("pNotifications logout successful"),type:"success"},competitionConfirmationSuccess:{description:this.$t("Competition_confirmation success"),type:"success"},competitionConfirmationError:{description:this.$t("Competition_confirmation error"),type:"error"},newsletterConfirmationSuccess:{description:this.$t("dbNewsletter_confirmation success"),type:"success"},newsletterConfirmationError:{description:this.$t("dbNewsletter_confirmation error"),type:"error"},newsletterSubscribed:{description:this.$t("pNotifications newsletter subscribed"),type:"success",showNewsletterBanner:!0},emailValidated:{description:this.$t("pNotifications_Email_confirmation_successful"),type:"success",showNewsletterBanner:!1},emailValidatedError:{description:this.$t("pNotifications_Email_confirmation_failed Confirmation of new email failed. Your confirmation code is not valid."),type:"urgent",showNewsletterBanner:!1},loginFailed:{description:this.$t("pNotifications login failed"),type:"urgent",showNewsletterBanner:!1},loginExpired:{description:this.$t("pNotifications login expired"),type:"urgent"},passwordReset:{description:this.$t("pNotifications_Password_changed Your password was changed successfully."),type:"success"},offlineError:{description:this.$t("adr_bookings_manage_cancelerror_offline"),type:"error"},genericPlannerError:{description:this.$t("pWishlist grouping error general createlist"),type:"error"},genericPaymentError:{description:this.$t("pNotifications payment_failed generic"),type:"error broadcast--follow"},subscribeSuccessful:{description:this.$t("cNotification Subscription Confirmation"),type:"success"}},t=this.hasNotificationMessage()?this.notificationMessage:this.sessionMessage??"";return e[t]?e[t]:this.isProduction?void 0:{description:t,type:"error"}},showNewsletterBanner(){return this.$store.state.auth.customer?.id&&this.messageParams?.showNewsletterBanner},shouldShowMessage(){return this.hasNotificationMessage()||!!this.sessionMessage},isNotificationLoginEnabled(){return this.sessionMessage==="notificationLogin"}},methods:{...fl(["clearSessionMessage"]),..._l(["setSessionMessage"]),...ie({unsetMessage:"notifications/unsetMessage"}),hasNotificationMessage(){return this.notificationMessage.trim()!==""},dismiss(){this.clearSessionMessage(),this.unsetMessage()},onFetchingMarketingEnabledFinished(){this.fetchingMarketingEnabled=!1}}}),Sl={key:0,class:"notifications"};function wl(e,t,o,a,s,l){const i=d("PromoNotifications"),c=d("Broadcast"),m=d("NewsletterBanner"),v=d("NotificationLogin");return e.fetchingMarketingEnabled?g("",!0):(r(),u("div",Sl,[h(i),e.shouldShowMessage&&e.messageParams?(r(),_(c,q({key:0},e.messageParams,{"is-dismissible":!0,onDismissBroadcast:t[0]||(t[0]=p=>e.dismiss())}),null,16)):g("",!0),e.showNewsletterBanner?(r(),_(m,{key:1,onOnFetchingFinished:e.onFetchingMarketingEnabledFinished},null,8,["onOnFetchingFinished"])):g("",!0),e.isNotificationLoginEnabled?(r(),_(v,{key:2})):g("",!0)]))}const Cl=b(vl,[["render",wl],["__scopeId","data-v-e994e3ea"]]),{mapActions:kl}=ke("notifications"),bl=C({name:"ErrorModalComponent",inject:["rootEmitter"],mounted(){this.rootEmitter.emit("hide-all-modals"),this.setMessage("offlineError")},methods:{...kl(["setMessage"])}});function Tl(e,t,o,a,s,l){return r(),u("p")}const $l=b(bl,[["render",Tl]]),Il={key:0,width:"56",height:"64",src:"data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 382 302' width='56' height='64'%3E%3Cpath d='M98.273 125.538c-5.904 0-10.574 4.553-10.574 10.574s4.67 10.574 10.574 10.574 10.574-4.553 10.574-10.574-4.67-10.574-10.574-10.574zm60.37-51.987h-37.392V55.594h33.329V37.637h-33.329V19.925h36.775V1.84h-56.944v89.795h57.561V73.551zm-41.668 54.2c5.904 0 10.574-4.553 10.574-10.574s-4.67-10.574-10.574-10.574-10.575 4.553-10.575 10.574 4.671 10.574 10.575 10.574zM38.498 93.475c13.042 0 24.478-6.638 31.243-16.85v15.01h17.713V41.701H39.977v17.222h19.925c-1.84 9.223-9.968 16.362-19.808 16.362-10.947 0-19.808-8.862-19.808-21.776V40.222c0-12.67 9.468-22.02 22.754-22.02 10.33 0 19.553 5.659 22.627 13.903l18.702-6.52C79.199 9.84 62.476 0 43.168 0 18.818 0 .606 16.361.606 40.222v13.287c.01 22.988 16.978 39.966 37.892 39.966zm172.909-66.401h-19.903v28.69h19.903v-28.69zM235.396 1.84h-68.147v18.085h68.147V1.84zM33.829 195.887h20.17v-34.063l33.817-55.721H65.061l-21.275 36.775-21.032-36.775H0l33.829 55.966v33.818zM211.407 62.923h-19.903v28.68h19.903v-28.68zM364.87 195.887l-24.478-34.318c11.936-3.692 20.297-14.149 20.297-26.935 0-16.234-13.403-28.542-30.382-28.542h-11.808v18.201h11.074c5.904 0 10.457 4.671 10.457 10.819 0 6.149-4.553 10.83-10.457 10.83h-11.074v17.222l21.893 32.723h24.478zm-99.964 14.35h-29.648v89.912h29.648c27.796 0 47.477-19.063 47.477-44.892 0-25.829-19.681-45.02-47.477-45.02zm1.595 71.827h-11.074v-53.753h11.074c15.01 0 25.212 11.563 25.212 26.935 0 15.372-10.202 26.818-25.212 26.818zm78.104-17.956h33.328v-17.957h-33.328v-17.712h36.775v-18.074h-56.945v89.784h57.562v-18.085h-37.392v-17.956zm-32.137-98.582-10.426-14.776 10.287-14.946-10.425-14.766 10.298-14.935-20.797.01-10.298 15.095 10.436 14.777-10.298 14.946 10.436 14.765-10.297 14.957 11.074 15.372h21.02l-11.308-15.542 10.298-14.957zm-45.924-4.564v-54.859h-20.053v55.232c0 10.329-7.383 17.957-17.467 17.957-10.085 0-17.468-7.628-17.468-17.957v-55.232h-20.052v54.859c0 21.159 15.872 36.776 37.52 36.776 21.648 0 37.52-15.627 37.52-36.776zM156.452 265.586c0 10.33-7.383 17.957-17.468 17.957-10.084 0-17.467-7.627-17.467-17.957v-55.232h-20.053v54.86c0 21.159 15.872 36.775 37.52 36.775 21.649 0 37.52-15.616 37.52-36.775v-54.86h-20.052v55.232zm-116.475 1.851h19.925c-1.84 9.223-9.968 16.361-19.808 16.361-10.946 0-19.807-8.861-19.807-21.775v-13.287c0-12.67 9.467-22.021 22.754-22.021 10.33 0 19.553 5.66 22.627 13.904l18.701-6.521c-5.17-15.744-21.892-25.584-41.2-25.584-24.35 0-42.563 16.361-42.563 40.222v13.287C.606 285.022 17.584 302 38.488 302c13.042 0 24.478-6.638 31.244-16.85v15.01h17.712v-49.935H39.977v17.212z' fill='%23FFF'/%3E%3Cpath d='M132.102 104.252v18.946c14.765 0 26.446 12.053 26.446 27.797s-11.681 27.797-26.446 27.797c-14.755 0-26.446-12.053-26.446-27.797h-20.67c0 26.201 20.915 46.743 47.105 46.743 26.201 0 47.105-20.542 47.105-46.743 0-26.202-20.893-46.743-47.094-46.743zm82.497 148.377c2.978-2.691 7.968-7.191 7.968-15.435 0-8.245-4.99-12.744-7.968-15.436a9.787 9.787 0 0 0-.373-.33c-1.489-1.563-1.744-3.808-1.776-4.872v-6.319h-20.201v8.404h.01c0 .107-.01.202-.01.309 0 8.244 4.989 12.744 7.967 15.435 2.139 1.936 2.139 2.032 2.139 2.809 0 .776 0 .872-2.139 2.808-2.861 2.585-7.574 6.862-7.925 14.532h-.021c0 .148-.021.287-.021.425 0 .085.01.16.01.234 0 .085-.01.16-.01.234 0 .149.01.287.021.426h.021c.351 7.67 5.064 11.946 7.925 14.531 2.139 1.936 2.139 2.032 2.139 2.808 0 .777 0 .873-2.139 2.809-2.978 2.691-7.967 7.191-7.967 15.435 0 .107 0 .213.01.309h-.01v8.404h20.201v-6.319c.032-1.053.287-3.308 1.776-4.872.117-.107.234-.213.373-.33 2.978-2.691 7.968-7.191 7.968-15.436 0-8.244-4.99-12.744-7.968-15.435-1.904-1.713-2.117-1.989-2.138-2.564.021-.574.234-.851 2.138-2.564z' fill='%23FFF'/%3E%3C/svg%3E",alt:""},Dl={key:1,width:"56",height:"64",src:'data:image/svg+xml,%3Csvg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 382 302" width="56" height="64"%3E%3Cpath d="M98.273 125.538c-5.904 0-10.574 4.553-10.574 10.574s4.67 10.574 10.574 10.574 10.574-4.553 10.574-10.574-4.67-10.574-10.574-10.574zm60.37-51.987h-37.392V55.594h33.329V37.637h-33.329V19.925h36.775V1.84h-56.944v89.795h57.561V73.551zm-41.668 54.2c5.904 0 10.574-4.553 10.574-10.574s-4.67-10.574-10.574-10.574-10.575 4.553-10.575 10.574 4.671 10.574 10.575 10.574zM38.498 93.475c13.042 0 24.478-6.638 31.243-16.85v15.01h17.713V41.701H39.977v17.222h19.925c-1.84 9.223-9.968 16.362-19.808 16.362-10.947 0-19.808-8.862-19.808-21.776V40.222c0-12.67 9.468-22.02 22.754-22.02 10.33 0 19.553 5.659 22.627 13.903l18.702-6.52C79.199 9.84 62.476 0 43.168 0 18.818 0 .606 16.361.606 40.222v13.287c.01 22.988 16.978 39.966 37.892 39.966zm172.909-66.401h-19.903v28.69h19.903v-28.69zM235.396 1.84h-68.147v18.085h68.147V1.84zM33.829 195.887h20.17v-34.063l33.817-55.721H65.061l-21.275 36.775-21.032-36.775H0l33.829 55.966v33.818zM211.407 62.923h-19.903v28.68h19.903v-28.68zM364.87 195.887l-24.478-34.318c11.936-3.692 20.297-14.149 20.297-26.935 0-16.234-13.403-28.542-30.382-28.542h-11.808v18.201h11.074c5.904 0 10.457 4.671 10.457 10.819 0 6.149-4.553 10.83-10.457 10.83h-11.074v17.222l21.893 32.723h24.478zm-99.964 14.35h-29.648v89.912h29.648c27.796 0 47.477-19.063 47.477-44.892 0-25.829-19.681-45.02-47.477-45.02zm1.595 71.827h-11.074v-53.753h11.074c15.01 0 25.212 11.563 25.212 26.935 0 15.372-10.202 26.818-25.212 26.818zm78.104-17.956h33.328v-17.957h-33.328v-17.712h36.775v-18.074h-56.945v89.784h57.562v-18.085h-37.392v-17.956zm-32.137-98.582-10.426-14.776 10.287-14.946-10.425-14.766 10.298-14.935-20.797.01-10.298 15.095 10.436 14.777-10.298 14.946 10.436 14.765-10.297 14.957 11.074 15.372h21.02l-11.308-15.542 10.298-14.957zm-45.924-4.564v-54.859h-20.053v55.232c0 10.329-7.383 17.957-17.467 17.957-10.085 0-17.468-7.628-17.468-17.957v-55.232h-20.052v54.859c0 21.159 15.872 36.776 37.52 36.776 21.648 0 37.52-15.627 37.52-36.776zM156.452 265.586c0 10.33-7.383 17.957-17.468 17.957-10.084 0-17.467-7.627-17.467-17.957v-55.232h-20.053v54.86c0 21.159 15.872 36.775 37.52 36.775 21.649 0 37.52-15.616 37.52-36.775v-54.86h-20.052v55.232zm-116.475 1.851h19.925c-1.84 9.223-9.968 16.361-19.808 16.361-10.946 0-19.807-8.861-19.807-21.775v-13.287c0-12.67 9.467-22.021 22.754-22.021 10.33 0 19.553 5.66 22.627 13.904l18.701-6.521c-5.17-15.744-21.892-25.584-41.2-25.584-24.35 0-42.563 16.361-42.563 40.222v13.287C.606 285.022 17.584 302 38.488 302c13.042 0 24.478-6.638 31.244-16.85v15.01h17.712v-49.935H39.977v17.212z" fill="%23F53"/%3E%3Cpath d="M132.102 104.252v18.946c14.765 0 26.446 12.053 26.446 27.797s-11.681 27.797-26.446 27.797c-14.755 0-26.446-12.053-26.446-27.797h-20.67c0 26.201 20.915 46.743 47.105 46.743 26.201 0 47.105-20.542 47.105-46.743 0-26.202-20.893-46.743-47.094-46.743zm82.497 148.377c2.978-2.691 7.968-7.191 7.968-15.435 0-8.245-4.99-12.744-7.968-15.436a9.787 9.787 0 0 0-.373-.33c-1.489-1.563-1.744-3.808-1.776-4.872v-6.319h-20.201v8.404h.01c0 .107-.01.202-.01.309 0 8.244 4.989 12.744 7.967 15.435 2.139 1.936 2.139 2.032 2.139 2.809 0 .776 0 .872-2.139 2.808-2.861 2.585-7.574 6.862-7.925 14.532h-.021c0 .148-.021.287-.021.425 0 .085.01.16.01.234 0 .085-.01.16-.01.234 0 .149.01.287.021.426h.021c.351 7.67 5.064 11.946 7.925 14.531 2.139 1.936 2.139 2.032 2.139 2.808 0 .777 0 .873-2.139 2.809-2.978 2.691-7.967 7.191-7.967 15.435 0 .107 0 .213.01.309h-.01v8.404h20.201v-6.319c.032-1.053.287-3.308 1.776-4.872.117-.107.234-.213.373-.33 2.978-2.691 7.968-7.191 7.968-15.436 0-8.244-4.99-12.744-7.968-15.435-1.904-1.713-2.117-1.989-2.138-2.564.021-.574.234-.851 2.138-2.564z" fill="%23F53"/%3E%3C/svg%3E',alt:""},El=C({__name:"icon-logo",props:{color:{type:String,default:"orange"}},setup(e){return(t,o)=>(r(),u("div",{class:w(["gyg-logo",{"gyg-logo--white":e.color==="white"}]),role:"img","aria-label":"GetYourGuide logo"},[e.color==="white"?(r(),u("img",Il)):(r(),u("img",Dl))],2))}}),Pl=C({name:"GlobalMainMenuListItemDesktop",components:{CIcon:F},props:{menuItem:{type:Object,required:!0},isActive:{type:Boolean,required:!0}}}),Ll={class:"item-container"};function Al(e,t,o,a,s,l){const i=d("CIcon");return r(),u("li",{class:w({active:e.isActive})},[n("div",Ll,[n("span",null,S(e.menuItem?.title),1),h(i,{name:"compact-chevron-down",class:"expand-icon"})])],2)}const Bl=b(Pl,[["render",Al],["__scopeId","data-v-24469fc6"]]),Ml=C({name:"GlobalMainMenuThirdLevelDesktop",components:{CIcon:F,SmartPicture:Qe,CButton:V},props:{menuItems:{type:Array,required:!1,default:()=>[]},menus:{type:Array,required:!1,default:()=>[]},footerLink:{type:Object,required:!1,default:()=>{}},level1TrackingTarget:{type:String,required:!1,default:void 0},level2TrackingTarget:{type:String,required:!1,default:void 0}},data(){return{imageFormat:Ve.THREE}},computed:{...$({globalNavLocationId:"globalNav/locationId"}),displayAsList(){return this.menuItems.length<7}},methods:{showTwoColumns(e){return(e??[]).length>6&&(e??[]).length<=12},showThreeColumns(e){return(e??[]).length>12},dispatchMenuItemTrackingEvent(e,t){const o=e.metadata?.trackingTarget;if(!o||!this.level1TrackingTarget||!this.level2TrackingTarget)return;const a={location_id:this.globalNavLocationId,target:o,url_canonical:e.url?.replace(/\/[^/]*(-l\d+)\//,"/$1/")?.replace(/\/[^/]*(-tc\d+)\//,"/$1/"),position:t+1,level_one_option:this.level1TrackingTarget,level_two_option:this.level2TrackingTarget};this.$analyticsLogger.log("TravelerWebGlobalNavLevelThreeClick",a)},dispatchButtonTrackingEvent(e){const t=Number(this.$route.params?.locationId);if(isNaN(t)||!e||!this.level1TrackingTarget||!this.level2TrackingTarget)return;const o={location_id:this.globalNavLocationId,target:e,position:null,url_canonical:null,level_one_option:this.level1TrackingTarget,level_two_option:this.level2TrackingTarget};this.$analyticsLogger.log("TravelerWebGlobalNavLevelThreeClick",o)}}}),Rl={class:"navigation-desktop-menu-container"},Fl={key:0},Ol={key:0,class:"list-item__icon-container"},Nl={key:1,class:"list-item__image"},Ul={class:"list-item__label"},Hl={key:0,class:"subtitle"},ql={class:"menu-list__cta-content"},Vl={key:1,class:"sub-menu-container"},zl={class:"sub-menu-container__title"},Gl={key:0,class:"list-item__icon-container"},Wl={class:"list-item__label"},Ql={key:0,class:"subtitle"},jl={class:"menu-list__cta-content"};function Yl(e,t,o,a,s,l){const i=d("CIcon"),c=d("SmartPicture"),m=d("Link"),v=d("CButton");return r(),u("div",Rl,[e.menuItems.length?(r(),u("div",Fl,[n("div",{class:w(["navigation-desktop-menu__item-list-container",{"vertical-list":e.displayAsList,"two-columns":e.showTwoColumns(e.menuItems),"three-columns":e.showThreeColumns(e.menuItems)}])},[(r(!0),u(L,null,O(e.menuItems,(p,k)=>(r(),u("div",{key:k},[h(m,{href:p.url,class:"list-item",onClick:E=>e.dispatchMenuItemTrackingEvent(p,k)},{default:f(()=>[p.icon?(r(),u("div",Ol,[h(i,{name:p.icon},null,8,["name"])])):p.imageUrl?(r(),u("div",Nl,[h(c,{"generic-image-url":p.imageUrl,format:e.imageFormat,"lazy-image":!0,alt:p.title},null,8,["generic-image-url","format","alt"])])):g("",!0),n("p",Ul,[n("span",null,S(p.title),1),p.subtitle?(r(),u("span",Hl,S(p.subtitle),1)):g("",!0)])]),_:2},1032,["href","onClick"])]))),128))],2),e.footerLink?(r(),_(v,{key:0,class:"menu-list__cta",variant:"text",href:e.footerLink.url,onClick:t[0]||(t[0]=p=>e.dispatchButtonTrackingEvent(e.footerLink.metadata?.trackingTarget))},{default:f(()=>[n("div",ql,[n("p",null,S(e.footerLink.text),1),h(i,{class:"arrow-icon",name:"arrow-right"})])]),_:1},8,["href"])):g("",!0)])):e.menus.length?(r(),u("div",Vl,[(r(!0),u(L,null,O(e.menus,(p,k)=>(r(),u("div",{key:k},[n("h2",zl,S(p.title),1),n("div",{class:w(["navigation-desktop__item-list",{"two-columns":e.showTwoColumns(p?.menuItems),"three-columns":e.showThreeColumns(p?.menuItems)}])},[(r(!0),u(L,null,O(p?.menuItems,(E,W)=>(r(),_(m,{href:E.url,key:W,class:"list-item",onClick:M=>e.dispatchMenuItemTrackingEvent(E,W)},{default:f(()=>[E.icon?(r(),u("div",Gl,[h(i,{name:E.icon},null,8,["name"])])):E.imageUrl?(r(),u("div",{key:1,class:w(["list-item__image",{"list-item__image__square":k==0}])},[h(c,{"generic-image-url":E.imageUrl,format:e.imageFormat,"lazy-image":!0,alt:E.title},null,8,["generic-image-url","format","alt"])],2)):g("",!0),n("p",Wl,[n("span",null,S(E.title),1),E.subtitle?(r(),u("span",Ql,S(E.subtitle),1)):g("",!0)])]),_:2},1032,["href","onClick"]))),128))],2),p.link?(r(),_(v,{key:0,class:"menu-list__cta",variant:"text",href:p.link.url,onClick:E=>e.dispatchButtonTrackingEvent(p.link.metadata?.trackingTarget)},{default:f(()=>[n("div",jl,[n("p",null,S(p.link.text),1),h(i,{class:"arrow-icon",name:"arrow-right"})])]),_:2},1032,["href","onClick"])):g("",!0)]))),128))])):g("",!0)])}const Kl=b(Ml,[["render",Yl],["__scopeId","data-v-979b2d31"]]),Jl={},Xl={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zl(e,t){return r(),u("svg",Xl,t[0]||(t[0]=[n("circle",{cx:"8",cy:"8",r:"7.5",stroke:"#F4CDD7"},null,-1),n("circle",{cx:"8",cy:"8",r:"5",fill:"#FF5533"},null,-1)]))}const xl=b(Jl,[["render",Zl]]),ec=C({name:"GlobalMainMenuModalDesktop",components:{HighlighterDot:xl,GlobalMainMenuThirdLevelDesktop:Kl},props:{showDropdown:{type:Boolean,required:!0},menu:{type:Object,required:!0}},data(){return{activeItem:0,timeoutId:0}},computed:{...$({globalNavLocationId:"globalNav/locationId"}),activeMenuLink(){return this.activeMenu?.link},activeMenu(){return this.menu.menus?.[this.activeItem]}},methods:{handleMouseEnter(e,t=!0){clearTimeout(this.timeoutId),t&&(this.activeItem=e,this.dispatchTrackingEvent(this.activeMenu))},handleMouseLeave(){this.timeoutId=setTimeout(()=>{this.activeItem=0},300)},dispatchTrackingEvent(e){const t=e?.metadata?.trackingTarget;if(!t||!this.menu.metadata?.trackingTarget)return;const o={location_id:this.globalNavLocationId,target:t,level_one_option:this.menu.metadata?.trackingTarget};this.$analyticsLogger.log("TravelerWebGlobalNavLevelTwoHover",o)},showThirdLevelNav(e,t){return(!!e.menuItems?.length||!!e.menus?.length)&&this.activeItem===t}}}),tc={class:"container"},oc={class:"menu-content"},ac={class:"side-nav"},rc=["onMouseenter"],ic={class:"content__items"};function sc(e,t,o,a,s,l){const i=d("HighlighterDot"),c=d("GlobalMainMenuThirdLevelDesktop");return r(),u("div",{class:w(["desktop-menu-dropdown",{active:e.showDropdown}])},[n("div",tc,[n("div",oc,[n("section",ac,[n("ul",null,[(r(!0),u(L,null,O(e.menu.menus,(m,v)=>(r(),u("li",{class:w({active:e.activeItem===v}),key:v,onMouseenter:p=>e.handleMouseEnter(v),onMouseleave:t[0]||(t[0]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[h(i,{class:"dot"}),n("span",null,S(m.title),1)],42,rc))),128))])]),n("section",{class:"content",onMouseenter:t[1]||(t[1]=m=>e.handleMouseEnter(0,!1)),onMouseleave:t[2]||(t[2]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m))},[n("div",ic,[(r(!0),u(L,null,O(e.menu.menus,(m,v)=>N((r(),_(c,{key:v,"menu-items":m.menuItems,menus:m.menus,"footer-link":e.activeMenuLink,"level1-tracking-target":e.menu.metadata?.trackingTarget,"level2-tracking-target":m?.metadata?.trackingTarget},null,8,["menu-items","menus","footer-link","level1-tracking-target","level2-tracking-target"])),[[z,e.showThirdLevelNav(m,v)]])),128))])],32)])])],2)}const nc=b(ec,[["render",sc],["__scopeId","data-v-c4fde74d"]]),lc={},cc={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dc(e,t){return r(),u("svg",cc,t[0]||(t[0]=[n("circle",{cx:"3",cy:"3",r:"3",fill:"currentColor"},null,-1)]))}const uc=b(lc,[["render",dc]]),hc=C({name:"GlobalMainMenuDesktop",components:{GlobalMainMenuListItemDesktop:Bl,GlobalMainMenuModalDesktop:nc,SeparatorDot:uc},props:{destinationMenu:{type:Object,required:!0}},data(){return{timeoutId:0,showDropdown:!1,isMouseOver:!1,activeTab:-1,hoveredMenu:null,hoverTimeoutId:void 0}},computed:{...$({isRobot:"context/isRobot",globalNavLocationId:"globalNav/locationId"}),activeMenu(){return this.$props.destinationMenu?.menus[this.activeTab]??null},highlightedMenu(){if(this.hoveredMenu!==null)return this.hoveredMenu;if(this.activeTab!==-1)return this.activeTab;const e=this.$props.destinationMenu?.menus.findIndex(t=>t.active)??-1;return e!==-1?e:this.$props.destinationMenu?.active?-1:null}},methods:{handleMouseEnter(e,t=!0){this.isMouseOver=!0,t&&(this.activeTab=e,this.setHoveredMenu(e)),clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isMouseOver&&(this.showDropdown=!0,this.activeMenu&&this.dispatchTrackingEvent(this.activeMenu))},300)},handleMouseLeave(){this.isMouseOver=!1,this.setHoveredMenu(null),this.timeoutId=setTimeout(()=>{this.isMouseOver||(this.showDropdown=!1,this.activeTab=-1)},300)},setHoveredMenu(e){clearTimeout(this.hoverTimeoutId),e!==null?this.hoveredMenu=e:this.hoverTimeoutId=setTimeout(()=>{this.hoveredMenu=null},300)},dispatchTrackingEvent(e){const t=e.metadata?.trackingTarget;if(!t)return;const o={location_id:this.globalNavLocationId,target:t};this.$analyticsLogger.log("TravelerWebGlobalNavLevelOneHover",o)}}}),pc={class:"desktop-navigation"},mc={class:"container"},gc={class:"desktop-navigation__main-items"},fc={key:1},yc={class:"desktop-navigation__separator-dot"};function _c(e,t,o,a,s,l){const i=d("Link"),c=d("SeparatorDot"),m=d("GlobalMainMenuListItemDesktop"),v=d("GlobalMainMenuModalDesktop");return r(),u("div",pc,[n("div",mc,[n("ul",gc,[e.destinationMenu?.title?(r(),u("li",{key:0,class:w(["base-tab",{active:e.highlightedMenu===-1}]),onMouseenter:t[0]||(t[0]=p=>e.setHoveredMenu(-1)),onMouseleave:t[1]||(t[1]=p=>e.setHoveredMenu(null))},[h(i,{href:e.destinationMenu?.url},{default:f(()=>[n("span",null,S(e.destinationMenu?.title),1)]),_:1},8,["href"])],34)):g("",!0),e.destinationMenu?.title?(r(),u("li",fc,[n("span",yc,[h(c)])])):g("",!0),(r(!0),u(L,null,O(e.destinationMenu?.menus,(p,k)=>(r(),_(m,{key:k,"menu-item":p,"is-active":e.highlightedMenu===k,onMouseenter:E=>e.handleMouseEnter(k),onMouseleave:e.handleMouseLeave},null,8,["menu-item","is-active","onMouseenter","onMouseleave"]))),128))])]),e.isRobot?(r(!0),u(L,{key:0},O(e.destinationMenu?.menus,(p,k)=>N((r(),_(v,{key:k,"show-dropdown":e.showDropdown,menu:p,onMouseenter:t[2]||(t[2]=E=>e.handleMouseEnter(0,!1)),onMouseleave:e.handleMouseLeave},null,8,["show-dropdown","menu","onMouseleave"])),[[z,e.activeTab===k&&p]])),128)):(r(),u(L,{key:1},[e.activeMenu?(r(),_(v,{key:0,"show-dropdown":e.showDropdown,menu:e.activeMenu,onMouseenter:t[3]||(t[3]=p=>e.handleMouseEnter(0,!1)),onMouseleave:e.handleMouseLeave},null,8,["show-dropdown","menu","onMouseleave"])):g("",!0)],64))])}const vc=b(hc,[["render",_c],["__scopeId","data-v-fb3510d3"]]),Sc=C({name:"CartExpirationNotification",components:{CIcon:F},inject:["rootEmitter"],setup(){const e=H(""),t=H({"--cart-icon-position":"-9999px"}),o=H(!0);return{durationLeftInMilliseconds:H(0),cartExpirationCountdownTime:e,cssPositionVariable:t,isVisible:o}},computed:{...$({headerLayout:"partnerCustomizations/headerLayout",shoppingCartExpiration:"context/shoppingCartExpiration"}),cartExpirationText(){return this.$t("padded_to_cart__success_countdown",[this.cartExpirationCountdownTime])},containerClasses(){return{"cart-expiration-notification--ribbon":this.headerLayout===K.Ribbon}}},created(){this.setCartExpirationTime(),this.setCartIconPosition()},mounted(){this.setCartExpirationTime()},methods:{sanitizeHtml:ze,setCartExpirationTime(){if(!this.shoppingCartExpiration)return;const e=new Date(this.shoppingCartExpiration).getTime()-new Date().getTime();if(e<=0){this.expireCartExpirationNotification();return}this.durationLeftInMilliseconds=e,this.cartExpirationCountdownTime=At(e/1e3),setTimeout(()=>this.setCartExpirationTime(),1e3)},setCartIconPosition(){this.rootEmitter.on("cart-icon-position",e=>{this.cssPositionVariable={"--cart-icon-position":`${(e?.getBoundingClientRect()?.left??9999)+16}px`}})},closeCartExpirationNotification(){this.isVisible=!1,this.$store.dispatch("context/setShoppingCartExpiration",null),P().expire("shoppingCartExpiration");const e={id:"cart-expiration-notification",target:"CartExpirationNotificationClose"};this.$analyticsLogger.logTravelerUIClick(e.target,e.id,{},{owner:"category-expansion"})},expireCartExpirationNotification(){this.cartExpirationCountdownTime="",this.isVisible=!1,this.$store.dispatch("context/fetchShoppingCartMeta"),this.$store.dispatch("context/setShoppingCartExpiration",null);{P().expire("shoppingCartExpiration");const e={id:"cart-expiration-notification",target:"CartExpirationNotificationExpired"};this.$analyticsLogger.logTravelerUIClick(e.target,e.id,{},{owner:"category-expansion"})}}}}),wc=["innerHTML"];function Cc(e,t,o,a,s,l){const i=d("CIcon");return N((r(),u("aside",{role:"cart-expiration-notification",class:w(["cart-expiration-notification",e.containerClasses])},[n("div",{style:Ce(e.cssPositionVariable),class:"cart-expiration-notification__pointer"},null,4),n("div",{class:"cart-expiration-notification__text",innerHTML:e.sanitizeHtml(e.cartExpirationText)},null,8,wc),h(i,{class:"cart-expiration-notification__close",name:"cross",onClick:e.closeCartExpirationNotification},null,8,["onClick"])],2)),[[z,e.isVisible]])}const kc=b(Sc,[["render",Cc]]);function Gt(){return go()}const bc=()=>{const e=qe("$t");if(!e)throw new Error("Gettext function ($t) is not provided.");return e},Pd=()=>{const e=qe("$tp");if(!e)throw new Error("Gettext plural function ($tp) is not provided.");return e},Tc=()=>{const e=Gt(),t=_e(()=>e.getters["context/locale"]),o=_e(()=>e.getters["context/localePath"]);return{locale:t,localePath:o}},$c={key:0,class:"container cart-expiration-banner"},Ic=["innerHTML"],Dc=C({__name:"cart-expiration-banner",setup(e){const{localePath:t}=Tc(),o=Gt(),{cartExpirationCountdownTime:a}=We({cartExpiration:o.getters["context/shoppingCartExpiration"]}),s=bc(),l=_e(()=>{const m=`<span class="duration">${a.value}</span>`;return s("padp_countdown_banner_body",[m])}),i=()=>{const m=G(t.value,"/cart");Ro(m,fo())},c=()=>{o.dispatch("context/setShoppingCartExpiration",null)};return(m,v)=>x(a)?(r(),u("div",$c,[h(x(co),{variant:"critical","fit-content":!0,closeable:!0,"action-label":x(s)("padp_countdown_banner_cta"),onClose:c},{icon:f(()=>[h(x(F),{name:"cart"})]),content:f(()=>[n("span",{class:"cart-expiration-banner__text",innerHTML:x(ze)(l.value,{allowedTags:{span:["class"]}})},null,8,Ic),h(x(V),{class:"cart-expiration-banner__action",variant:"text",onClick:i},{default:f(()=>[T(S(x(s)("padp_countdown_banner_cta")),1)]),_:1})]),_:1},8,["action-label"])])):g("",!0)}}),Ec=b(Dc,[["__scopeId","data-v-4c962955"]]),ct=new Map([["AddedToCartExperience",["/cart?experiments=0","/checkout?experiments=0"]]]),Pc=(e,t,o)=>{if(!(!t.name||!ct.has(String(t.name)))&&St(e,$o,"B"))for(const a of ct.get(String(t.name??""))??[]){const s=document.createElement("link");s.rel="prefetch",s.href=a,document.body.append(s),o.resolve(a).matched.forEach(l=>{Object.values(l.components??{}).forEach(i=>{typeof i=="function"&&i()})})}},Be=["Activity","Checkout","PaymentInformation","ShoppingCart"],Lc="StartSessionAction",Ac="StartSessionActionV2",Bc="CityPageView",Mc="ExitIntentAction",Rc=["RemoveFromAbandonedSearch"],Fc="RequestCityItinerary",Oc=30*60*1e3,dt=["utm_source","utm_campaign","utm_medium","utm_content","utm_term","partner_id"],Nc=()=>{const e=window?.location.search?Object.fromEntries(new URL(window?.location.href).searchParams):{},t=window?.localStorage?Io(window?.localStorage,dt):{},o=Object.entries(e).reduce((a,[s,l])=>dt.includes(s)?{...a,[s]:l}:a,{});return{...t,...o,url_domain:window?.location?.host,url_path:window?.location?.pathname}},he=async(e,t={})=>{try{Object.assign(t,Nc()),await No(e,t)}catch(o){const a=o?.name??"unknown-type";Z.increment("braze.events.sendCustomEventFailed",{name:e,reason:a}),A.error({message:`Failed to log Braze event to Braze: ${e}`,error:o})}},Uc=({containerName:e})=>{if(J("active_visitor")||(he(Lc,{page_name:e}),ue("active_visitor",!0)),!Fo("active_visitor_session")){he(Ac,{page_name:e});const t=new Date().getTime()+Oc;Oo("active_visitor_session",t,!0)}},Ld=e=>{e&&he(Bc,{city_id:e})},Ad=(e,t,o)=>{he(Fc,{location_id:e,location_name:t,location_image:o})},Hc=({sessionDurationSeconds:e,containerName:t})=>{he(Mc,{session_duration_seconds:e,page_name:t})},qc=()=>{const e=new URLSearchParams(window.location.search)?.get("braze_custom_tags")?.split(",");e?.length&&e.forEach(t=>{Rc.includes(t)&&he(t)})},ut="current_visitor_id",Vc="currency_code",zc="partner_id",et=async(e,t)=>{try{await Ho(e,t)}catch(o){const a=o?.name??"unknown-type";Z.increment("braze.attributes.sendCustomAttributeFailed",{name:e,reason:a}),A.error({message:`Failed to set Braze attribute: ${e}`,error:o})}},Gc=async(e,t)=>{try{await qo(t,e)}catch(o){const a=o?.name??"unknown-type";Z.increment("braze.attributes.addAliasFailed",{reason:a}),A.error({message:`Failed to set Braze alias: ${e}`,error:o})}},Wc=(e,t,o,a,s,l)=>{try{const i=!!o,c=parseInt(J("customer_id"))===o,m=J("visitor_id")===l&&J("alias_visitor_id")===l,k=!J("active_visitor")||["Activity","Cart","Checkout","Confirmation"].indexOf(e)!==-1,E=i||k;(i&&!c||!i&&!m&&k)&&(Qc(o),jc(l),ht(t),pt(a),Yc(s)),E&&(J("currency_code")!==t&&ht(t),J("language")!==a&&pt(a))}catch(i){const c=i?.name??"unknown-type";Z.increment("braze.attributes.setAttributesFailed",{reason:c}),A.error({message:"Failed to set Braze attributes",error:i})}},Qc=e=>{e&&!J("customer_id")&&ue("customer_id",e)},jc=e=>{et(ut,e),Gc(ut,e),ue("visitor_id",e),ue("alias_visitor_id",e)},ht=e=>{et(Vc,e),ue("currency_code",e)},Yc=e=>{et(zc,e)},pt=async e=>{try{await Uo(e),ue("language",e)}catch(t){const o=t?.name??"unknown-type";Z.increment("braze.attributes.setLanguageFailed",{reason:o}),A.error({message:`Failed to set Braze langauge: ${e}`,error:t})}},Kc=C({name:"BrazeMasterMixin",data(){return{sessionStartTime:null}},computed:{...$({customerId:"auth/customerId",visitorId:"context/visitorId"})},mounted(){this.initBraze(),this.dispatchBrazeActions(),this.sessionStartTime=new Date,qc()},methods:{async initBraze(){try{await Vo(this.$store?.state?.context?.cspNonce)}catch(e){Z.increment("braze.mixin.initBrazeFailed"),A.error({message:`Failed to init Braze on Master layout [Container: ${this.containerName}]`,error:e})}},dispatchBrazeActions(){try{this.setBrazeAttributes(),this.sendBrazeEvents()}catch(e){Z.increment("braze.mixin.dispatchBrazeActionsFailed"),A.error({message:`Failed to dispatch Braze Actions on Master layout [Container: ${this.containerName}]`,error:e})}},sendBrazeEvents(){const e=this.containerName;Uc({containerName:e})},setBrazeAttributes(){const e=this.containerName,t=this.currency,o=this.customerId,a=this.locale,s=this.partnerId,l=this.visitorId;Wc(e,t,o,a,s,l)},exitIntentAction(e){if(e?.clientY<=0){const t=new Date,o=this.containerName,a=Math.floor((t.getTime()-this.sessionStartTime.getTime())/1e3);Hc({sessionDurationSeconds:a,containerName:o})}}}}),Jc=C({name:"LoadingOverlay",props:{isVisible:{type:Boolean},showSpinner:{type:Boolean},hasCustomClass:{type:Boolean,default:!1,required:!1}}}),Xc={key:0,class:"loading__spinner"};function Zc(e,t,o,a,s,l){return r(),u("div",{class:w(["overlay",{loading:e.isVisible,overlay__custom:e.hasCustomClass}])},[e.showSpinner?(r(),u("div",Xc)):g("",!0),D(e.$slots,"default")],2)}const xc=b(Jc,[["render",Zc]]),ed=C({name:"CurrencySelectionTrigger",components:{CButton:V,CModal:uo,LoadingOverlay:xc},mixins:[fe],data(){return{modalVisible:!1,desiredCurrency:null,isChanging:!1,isDeletingGiftCards:!1}},computed:$({currentCurrency:"context/currency"}),mounted(){this.listenOnRoot("currency-selected",this.triggerCurrencySelection)},methods:{async triggerCurrencySelection(e,t,o=!1){if(t?.stopPropagation(),t?.preventDefault(),!e||this.isChanging||e===this.currentCurrency)return Promise.resolve();this.desiredCurrency=e;try{const a=this.currentCurrency;this.isChanging=!0,await this.$store.dispatch("context/changeCurrency",{selectedCurrencyIso:e,enforceGiftCardRemoval:o}),P().set("currency",e),this.logCurrencySwitchAction(a,e)}catch(a){if(a?.status===409)return this.isChanging=!1,this.modalVisible=!0,this.isDeletingGiftCards=!1,Promise.resolve()}return this.isChanging=!1,this.desiredCurrency=null,this.modalVisible=!1,this.isDeletingGiftCards=!1,window?.location?.reload(),Promise.resolve()},cancelCurrencySwitch(){this.modalVisible=!1},async confirmCurrencySwitch(){this.isDeletingGiftCards=!0,this.triggerCurrencySelection(this.desiredCurrency??"",void 0,!0)},logCurrencySwitchAction(e,t){const o={old_currency:e,new_currency:t};this.$analyticsLogger.log("CurrencyChangeAction",o)}}}),td={class:"currency-selection-trigger__button currency-selection-trigger__button--confirm"},od={class:"currency-selection-trigger__button currency-selection-trigger__button--cancel"};function ad(e,t,o,a,s,l){const i=d("CButton"),c=d("LoadingOverlay"),m=d("CModal");return e.modalVisible?(r(),_(m,{key:0,"close-btn-aria-label":e.$t("aria_close_c_modal"),onClose:e.cancelCurrencySwitch,class:"currency-selection-trigger",size:"medium",title:e.$t("pCheckout currency change incompatible gift code message modal")},{default:f(()=>[h(c,{"is-visible":e.isDeletingGiftCards,"show-spinner":e.isDeletingGiftCards},{default:f(()=>[n("div",td,[h(i,{variant:"text",onClick:e.confirmCurrencySwitch},{default:f(()=>[T(S(e.$t("pCheckout currency change incompatible gift code modal positive CTA")),1)]),_:1},8,["onClick"])]),n("div",od,[h(i,{variant:"filled",onClick:e.cancelCurrencySwitch},{default:f(()=>[T(S(e.$t("pCheckout currency change incompatible gift code modal negative CTA")),1)]),_:1},8,["onClick"])])]),_:1},8,["is-visible","show-spinner"])]),_:1},8,["close-btn-aria-label","onClose","title"])):g("",!0)}const rd=b(ed,[["render",ad]]),He="unknown",id="opt_out";function sd(){const e=P().get("optanonConsent");if(e){const t=e.match(/version=([\w.]+)/);if(t&&t[1])return t[1]}return He}const nd=C({name:"OneTrustConsent",mounted(){document.querySelector("html")?.addEventListener("otloadbanner",this.triggerInitEvent),window.addEventListener("consent.onetrust",this.onConsentUpdated)},beforeUnmount(){window.removeEventListener("consent.onetrust",this.onConsentUpdated),document.querySelector("html")?.removeEventListener("otloadbanner",this.triggerInitEvent)},methods:{getConsentEventPayload(e,t){const o=window.OnetrustActiveGroups;if(e?.ConsentIntegrationData?.consentPayload){const{identifier:a,dsDataElements:s}=e.ConsentIntegrationData.consentPayload,l=s?.ConsentModel||id,i=sd(),c={necessary:o?.includes("C0001")||!1,analytics:o?.includes("C0002")??null,functional:o?.includes("C0003")??null,marketing:o?.includes("C0004")??null};return{action_type:t,consent_id:a||He,consent_mode:l.replace(/-/g,"_"),policy_version:i,privacy_consent:c}}return null},triggerInitEvent(){const e=window.Optanon,t=e?.IsAlertBoxClosed();if(e&&!t){const o=e.GetDomainData();if(o){const a=o.ConsentIntegrationData?.consentPayload?.dsDataElements?.ConsentModel;if(!window.OnetrustActiveGroups?.includes("C0004")||a==="opt-out"){const l=this.getConsentEventPayload(o,"init");l&&this.$analyticsLogger.log("TravelerWebConsentAction",l)}}}},onConsentUpdated(){const e=window.Optanon?.GetDomainData();if(e?.ConsentIntegrationData?.consentPayload?.dsDataElements?.InteractionType){const{dsDataElements:t}=e.ConsentIntegrationData.consentPayload,o=t?.InteractionType||He;let a;if(o.includes("Banner"))a="banner";else if(o.includes("Preference"))a="manage_preferences";else return;const s=this.getConsentEventPayload(e,a);s&&this.$analyticsLogger.log("TravelerWebConsentAction",s)}}}}),ld=C({__name:"hydration-marker",setup(e){return Se(async()=>{await yo(),window.isHydrationCompleted=!0}),(t,o)=>g("",!0)}}),cd=()=>{const e=async(o,a,s)=>console.error("$analyticsLogger not yet ready. Can only be used after onMounted.",{target:o,id:a,metadata:s}),t=_o({log:async(o,a)=>console.error("$analyticsLogger not yet ready. Can only be used after onMounted.",{eventType:o,partialEvent:a}),logPageRequest:async(o,a,s)=>console.error("$analyticsLogger not yet ready. Can only be used after onMounted.",{eventType:o,partialEvent:a,context:s}),logTravelerUIClick:e,logTravelerUIEnteredViewport:e,logTravelerUIFetch:e,logTravelerUIDrag:e,logTravelerUIZoom:e,logTravelerUISlide:e,logTravelerUISelect:e,logTravelerUIShow:e,logTravelerUIChange:e,logTravelerUISubmit:e});return Se(()=>{const o=qe("$analyticsLogger");if(!o)throw new Error("$analyticsLogger is not provided.");t.log=o.log,t.logPageRequest=o.logPageRequest,t.logTravelerUIClick=o.logTravelerUIClick,t.logTravelerUIEnteredViewport=o.logTravelerUIEnteredViewport,t.logTravelerUIFetch=o.logTravelerUIFetch,t.logTravelerUIDrag=o.logTravelerUIDrag,t.logTravelerUIZoom=o.logTravelerUIZoom,t.logTravelerUISlide=o.logTravelerUISlide,t.logTravelerUISelect=o.logTravelerUISelect,t.logTravelerUIShow=o.logTravelerUIShow,t.logTravelerUIChange=o.logTravelerUIChange,t.logTravelerUISubmit=o.logTravelerUISubmit}),t};function dd(){const e=cd(),t=async()=>{const i=await window.__ucCmp.getConsentDetails();return{categories:{essential:i.categories.essential,marketing:i.categories.marketing,analytics:i.categories["customcategory-01705b23-e8aa-4d8b-8a32-9699d5b31fd5"]},consent:i.consent,services:i.services}},o=(i,c)=>{const m={necessary:c.categories.essential.state==="ALL_ACCEPTED",analytics:c.categories.analytics.state==="ALL_ACCEPTED",functional:null,marketing:c.categories.marketing.state==="ALL_ACCEPTED"},v={action_type:i,consent_id:c.consent.controllerId,consent_mode:c.consent.setting.id==="dndyzAtNJ0XP5s"?"opt_in":"opt_out",policy_version:c.consent.setting.version,privacy_consent:m},p=new CustomEvent("brazeConsentChange",{detail:{marketingConsent:c.categories.marketing.state}});window.dispatchEvent(p),e.log("TravelerWebConsentAction",v)},a=async()=>{window.UC_UI_SUPPRESS_CMP_DISPLAY&&window.UC_UI_SUPPRESS_CMP_DISPLAY===!0&&(window.UC_UI.acceptAllConsents(),window.__ucCmp.saveConsents());const i=await t();i.consent.updatedBy==="onInitialPageLoad"&&o("init",i)},s=async i=>{const c=await t();o(i,c)},l=async i=>{const c=i;c.detail.previousView==="SECOND_LAYER"?await s("manage_preferences"):c.detail.previousView==="FIRST_LAYER"&&await s("banner")};return Se(()=>{window.UC_UI&&window.UC_UI.isInitialized()?a():window.addEventListener("UC_UI_INITIALIZED",a),window.addEventListener("UC_UI_VIEW_CHANGED",l)}),vo(()=>{window.removeEventListener("UC_UI_INITIALIZED",a),window.removeEventListener("UC_UI_VIEW_CHANGED",l)}),{onCMPInitEvent:a,handleViewChange:l}}const ud=B(()=>y(()=>import("./endpoints-redirect-bqZ5q9GH-v01.js"),__vite__mapDeps([70,9,6,3,2,4,7,8,1,5,10,71]))),hd=B({loader:()=>y(()=>import("./authentication-form-CHcj1A3m-v01.js").then(e=>e.a),__vite__mapDeps([72,2,3,4,1,5,9,6,7,8,10,73])),errorComponent:$l}),pd=B(()=>y(()=>import("./app-banner-BMA3EVr4-v01.js"),__vite__mapDeps([74,2,3,4,75,1,5,76,77]))),md=B(()=>y(()=>import("./promotions-CQhAUzxj-v01.js"),__vite__mapDeps([78,2,3,4,66,9,6,7,8,1,5,10,79]))),gd=B(()=>y(()=>import("./partner-footer-notification-DdaUj8WU-v01.js"),__vite__mapDeps([80,2,3,4,81,9,6,7,8,1,5,10,82]))),fd=B(()=>y(()=>import("./partner-header-notification-DiYowiq5-v01.js"),__vite__mapDeps([83,2,3,4,9,6,7,8,1,5,10,81]))),yd=B(()=>y(()=>import("./partner-footer-BOh0Vyv6-v01.js"),__vite__mapDeps([84,9,6,3,2,4,7,8,1,5,10,85]))),{mapActions:_d}=ke("auth"),vd=C({name:"MasterLayout",components:{PageHeader:Ts,IconLogo:El,Notifications:Cl,CurrencySelectionTrigger:rd,AuthenticationForm:hd,AppBanner:pd,HydrationMarker:ld,Promotions:md,PartnerFooter:yd,PartnerHeader:Vs,PartnerFooterNotification:gd,PartnerHeaderNotification:fd,PageFooter:el,CartExpirationBanner:Ec,CartExpirationNotification:kc,EndpointsRedirect:ud,GlobalMainMenuDesktop:vc},mixins:[It,Xo,Kc,fe,nd],props:{headerType:{type:String,default:"light"},pageClass:{type:String,default:""},pageContainer:{type:String,default:""},autocomplete:{type:Object,default:()=>({})},layoutType:{type:String,required:!1,default:R.default},shouldShowSearch:{type:Boolean,required:!1,default:void 0},currencySwitcherLayout:{type:Object,required:!1,default:()=>({header:ge.none,footer:me.full})},hideGlobalNav:{type:Boolean,required:!1,default:!1},useNaviRedesignedSearchBar:{type:Boolean,default:!1},displayStickyHeaderForDesktop:{type:Boolean,default:!1}},emits:["logoClick"],setup(){dd()},data(){return{SIGNUP_SOCIAL_MODAL_ID:Et,LOGIN_MODAL_ID:ye,SIGNUP_MODAL_ID:Zo,modalToShow:null,consentPollingInterval:null,consentPollingFrequencyInMs:1e3,consentPollingCount:0,consentPollingMaxCount:15,userConsentsFunctional:!1,displayEndpointsRedirect:!1,isPageHeaderShadowEnabled:!1}},computed:{...$({isLoggedIn:"auth/isLoggedIn",mobileDeviceOS:"context/mobileDeviceOS",currency:"context/currency",hasAppBanner:"context/hasAppBanner",locale:"context/locale",localePath:"context/localePath",isMobileDevice:"context/isMobileDevice",partnerId:"context/partnerHash",isWebView:"context/isWebView",shouldRenderWishlist:"partnerCustomizations/displayWishlist",shouldRenderCart:"partnerCustomizations/displayCart",displayLoginSignUp:"partnerCustomizations/displayLoginSignUp",displayHeader:"partnerCustomizations/displayHeader",partnerHash:"partnerCustomizations/hash",headerLayout:"partnerCustomizations/headerLayout",imageURL:"partnerCustomizations/imageURL",homepageURL:"partnerCustomizations/homepageURL",brandName:"partnerCustomizations/brandName",headerBackgroundColor:"partnerCustomizations/headerBgColor",backToHomeText:"partnerCustomizations/backToHomeText",backToHomeColor:"partnerCustomizations/backToHomeColor",displayPartnerFooter:"partnerCustomizations/displayCustomFooter",footerBackgroundColor:"partnerCustomizations/footerBackgroundColor",displayAppCallout:"partnerCustomizations/displayAppCallout",partnerCustomHomepagePath:"partnerCustomizations/customHomepagePath",notificationMessage:"notifications/message",sessionMessage:"context/sessionMessage",promotionMessage:"promotions/promotionMessage",shoppingCartExpiration:"context/shoppingCartExpiration",shoppingCartMeta:"context/shoppingCartMeta",brandedDomain:"context/brandedDomain",isDevelopment:"context/isDevelopment",isProduction:"context/isProduction",isMobile:"context/isMobileDevice",isMobileOrTabletDevice:"context/isMobileOrTabletDevice",globalNav:"globalNav/globalNavigation"}),noFooterNav(){return this.layoutType!==R.default&&this.layoutType!==R.none},metaData(){const e=this.$t("pIndex Title");return{description:this.$t("pIndex meta description"),title:`${e} | GetYourGuide`}},shouldRenderSearch(){return this.shouldShowSearch!==void 0?this.shouldShowSearch:!(this.$route.meta?.hideSearchField??!1)},shouldRenderAuthActions(){return(!(this.$route.meta?.hideAuthActions??!1)||this.isLoggedIn)&&this.displayLoginSignUp},containerName(){return U(this.$route)},partnerLayout(){return this.headerLayout?`partner-${this.headerLayout.toLowerCase()}-layout`:""},isHeaderVisible(){return this.layoutType!==R.none},displayPartnerHeader(){return!!this.partnerHash},smartBannerExperimentVariant(){if(this.isSupportedMobileOs&&!Be.includes(this.containerName)){if(this.$isExperimentActive(this.$store.state,Ee,"A"))return null;if(this.$isExperimentActive(this.$store.state,Ee,"B"))return"B";if(this.$isExperimentActive(this.$store.state,Ee,"C"))return"C"}return null},isReservationCountdownBannerExperimentActive(){return this.$isExperimentActive(this.$store.state,Do,"B")},shouldShowCountdownOnCart(){return this.isRouteEligibleForCartExpirationNotification&&!this.showCartExpirationNotification&&(this.shoppingCartMeta?.expirationTimeDeltaInSeconds??0)>0},showCountdownOnCart(){return this.shouldShowCountdownOnCart&&this.isReservationCountdownBannerExperimentActive},pageName(){return this.$route?.name??""},appSmartbannerGettextKeys(){return{smartBannerTitleV1:this.$t("App SmartBanner Title v1"),smartBannerSubtitleV1:this.$t("App SmartBanner SubTitle v1"),smartBannerInstallCTAV1:this.$t("App SmartBanner InstallCTA v1"),smartBannerContinueCTAV1:this.$t("App SmartBanner ContinueCTA v1"),smartBannerTitleV2:this.$t("App SmartBanner Title v2")}},isSupportedMobileOs(){return this.mobileDeviceOS==="android"||this.mobileDeviceOS==="ios"},showNotificationsComponent(){return!!this.sessionMessage||!!this.notificationMessage||!!this.promotionMessage},showPromotionsComponent(){return!!this.$route?.query?.promoCode||!!this.$route.query?.partner_id},isRouteEligibleForCartExpirationNotification(){return!["AdditionalPaymentInformation","ActivityConfiguration","PersonalDetails","Checkout","Confirmation","PaymentInformation","ShoppingCart","FlexibilityUpgrades","AddedToCartExperience","Additions","Home"].includes(this.containerName)},showCartExpirationNotification(){return!!(this.isRouteEligibleForCartExpirationNotification&&this.shoppingCartExpiration)},showGlobalNav(){return!this.hideGlobalNav&&!this.isPartnerTraffic&&!this.isMobile&&!!this.globalNav},isPartnerTraffic(){return!!this.partnerHash},shouldDisplayStickyHeaderForDesktop(){return!this.isMobileOrTabletDevice&&!this.isPartnerTraffic&&this.displayStickyHeaderForDesktop},wrapperClasses(){return{"main-wrapper":!0,[this.pageContainer]:!0,[this.partnerLayout]:!0,"main-wrapper__page-header--sticky":this.shouldDisplayStickyHeaderForDesktop,"main-wrapper__page-header--shadowed":this.isPageHeaderShadowEnabled,"main-wrapper--redesigned-search-bar":this.useNaviRedesignedSearchBar}}},watch:{shoppingCartMeta(e){e?.expirationTimeDeltaInSeconds&&We().updateCartExpirationIfNotSet(new Date(Date.now()+e.expirationTimeDeltaInSeconds*1e3))}},beforeUnmount(){clearInterval(this.consentPollingInterval),window.removeEventListener("scroll",this.debouncedScroll)},beforeMount(){window.addEventListener("show-login-modal",e=>{e.detail?.optOutOfForcedLogin||(this.$store.dispatch("notifications/setMessage","loginExpired"),this.showHandler(ye))}),window.document.addEventListener("iam:open-login",()=>{this.showHandler(ye)})},async mounted(){this.storeUtms(),this.$store.dispatch("context/fetchShoppingCartMeta"),this.listenOnRoot("show:modal",this.showHandler),this.listenOnRoot("hide-all-modals",this.hideHandler),this.listenOnRoot("hide:modal",this.hideHandler),this.isLoggedIn&&(await this.$store.dispatch("auth/checkSessionValidity"),await this.$store.dispatch("auth/restoreSession"));const e=P();e.get("forceLogout")&&(e.expire("forceLogout"),await this.$store.dispatch("auth/logout")),this.isSupportedMobileOs&&this.pollUserConsentForSmartBanner(),this.startAppBanner(),!zo(e,this.isWebView,this.isLoggedIn,this.containerName)&&(!this.isMobileDevice||await this.isCookieBannerClosed(e))&&this.$store.dispatch("auth/initializeOneTap",{analyticsLogger:this.$analyticsLogger}),this.showRedirectModal(e),this.shouldDisplayStickyHeaderForDesktop&&window.addEventListener("scroll",this.debouncedScroll),Pc(this.$store.state,this.$route,this.$router)},methods:{createRelativeUrlPath:G,..._d(["logout"]),debouncedScroll(){Te(()=>this.setPageHeaderShadow(),250)()},setPageHeaderShadow(){const e=this.$el.querySelector(".page-header")??null;this.isPageHeaderShadowEnabled=window.scrollY>e?.offsetHeight},showHandler(e){this.modalToShow=e},hideHandler(){this.modalToShow=null},startAppBanner(){const e=this.getAppBannerStatus();e==="open"&&!Be.includes(this.containerName)&&this.$store.dispatch("context/setAppBannerStatus",!0),!this.partnerId||Eo.includes(this.partnerId)?e==="ready"&&this.smartBannerExperimentVariant&&!Be.includes(this.containerName)&&setTimeout(()=>{this.$store.dispatch("context/setAppBannerStatus",!0);const t={status:"open"};localStorage.setItem("appBannerStatus",JSON.stringify(t))},5e3):this.$store.dispatch("context/setAppBannerStatus",!1)},showRedirectModal(e){!this.isProduction&&e.get(Go)&&(this.displayEndpointsRedirect=!0)},getAppBannerStatus(){if(!localStorage)return"";const e=localStorage.getItem("appBannerStatus");if(!e)return"ready";const t=JSON.parse(e);if(t.status==="closed"){if(new Date().getTime()>t.expiry)return localStorage.removeItem("appBannerStatus"),"ready"}else if(t.status==="open")return"open";return""},storeUtms(){const e=window?.location?.search??"";if(!e)return;const t=["utm_source","utm_campaign","utm_medium","utm_content","utm_term","partner_id"],o=Po(e);for(const a of Object.keys(o)){const s=o[a];t.includes(a)&&s!==void 0&&window?.localStorage?.setItem(a,s)}},pollUserConsentForSmartBanner(){this.consentPollingInterval=setInterval(()=>{++this.consentPollingCount>this.consentPollingMaxCount&&clearInterval(this.consentPollingInterval);let e="C0003",t="C0002",o=window.OnetrustActiveGroups;this.userConsentsFunctional=this.isDevelopment||((o?.includes(e)||o?.includes(t)||window.UC_UI?.areAllConsentsAccepted())??!1),this.userConsentsFunctional&&clearInterval(this.consentPollingInterval)},this.consentPollingFrequencyInMs)},onLogoClick(){this.$emit("logoClick")},async isCookieBannerClosed(e){return this.$isExperimentActive(this.$store.state,kt,"B")?!(await window.__ucCmp?.getConsentDetails())?.consent?.required:e.get("optanonAlertBoxClosed")!==void 0}}});function Sd(e,t,o,a,s,l){const i=d("HydrationMarker"),c=d("PartnerHeaderNotification"),m=d("Notifications"),v=d("IconLogo"),p=d("PartnerHeader"),k=d("PageHeader"),E=d("EndpointsRedirect"),W=d("Link"),M=d("CartExpirationBanner"),Ie=d("CartExpirationNotification"),Wt=d("GlobalMainMenuDesktop"),Qt=d("AuthenticationForm"),jt=d("CurrencySelectionTrigger"),Yt=d("PartnerFooter"),Kt=d("PageFooter"),Jt=d("AppBanner"),Xt=d("portal-target"),Zt=d("PartnerFooterNotification"),xt=d("Promotions");return r(),u("div",{class:w(e.wrapperClasses),onMouseleave:t[0]||(t[0]=eo=>e.exitIntentAction(eo))},[h(i),e.partnerHash?(r(),_(c,{key:0})):g("",!0),e.showNotificationsComponent?(r(),_(m,{key:1})):g("",!0),e.displayHeader&&e.displayPartnerHeader&&e.isHeaderVisible?(r(),_(p,{key:2,"partner-hash":e.partnerHash,"partner-header-layout":e.headerLayout,"partner-image-url":e.imageURL,"partner-homepage-url":e.homepageURL,"partner-brand-name":e.brandName,"partner-background-color":e.headerBackgroundColor,"partner-back-to-home-text":e.backToHomeText,"partner-back-to-home-color":e.backToHomeColor,"partner-display-gyg-logo":e.partnerDisplayGygLogo,"partner-custom-homepage-path":e.partnerCustomHomepagePath,"layout-type":e.layoutType,"locale-path":e.localePath,"should-render-auth-actions":e.shouldRenderAuthActions,"should-render-search":e.shouldRenderSearch,"should-render-wishlist":e.shouldRenderWishlist,"should-render-cart":e.shouldRenderCart,"show-countdown-on-cart":e.showCountdownOnCart,"header-type":e.headerType,autocomplete:e.autocomplete,"use-navi-redesigned-search-bar":e.useNaviRedesignedSearchBar},{"gyg-logo":f(()=>[h(v,{class:"page-header__logo-image"})]),"step-navigation":f(()=>[D(e.$slots,"step-navigation")]),_:3},8,["partner-hash","partner-header-layout","partner-image-url","partner-homepage-url","partner-brand-name","partner-background-color","partner-back-to-home-text","partner-back-to-home-color","partner-display-gyg-logo","partner-custom-homepage-path","layout-type","locale-path","should-render-auth-actions","should-render-search","should-render-wishlist","should-render-cart","show-countdown-on-cart","header-type","autocomplete","use-navi-redesigned-search-bar"])):g("",!0),e.displayHeader&&!e.displayPartnerHeader&&e.isHeaderVisible?(r(),_(k,{key:3,"layout-type":e.layoutType,"is-logged-in":e.isLoggedIn,"locale-path":e.localePath,"should-render-auth-actions":e.shouldRenderAuthActions,"should-render-search":e.shouldRenderSearch,"currency-switcher-header-layout":e.currencySwitcherLayout.header,"show-countdown-on-cart":e.showCountdownOnCart,"header-type":e.headerType,autocomplete:e.autocomplete,"use-navi-redesigned-search-bar":e.useNaviRedesignedSearchBar},{"gyg-logo":f(()=>[h(v,{class:"page-header__logo-image"})]),"step-navigation":f(()=>[D(e.$slots,"step-navigation")]),_:3},8,["layout-type","is-logged-in","locale-path","should-render-auth-actions","should-render-search","currency-switcher-header-layout","show-countdown-on-cart","header-type","autocomplete","use-navi-redesigned-search-bar"])):g("",!0),e.displayEndpointsRedirect?(r(),_(E,{key:4})):g("",!0),h(W,{href:"#main-content",class:"skip-link"},{default:f(()=>t[1]||(t[1]=[T("Skip to content")])),_:1}),e.showCartExpirationNotification&&e.isReservationCountdownBannerExperimentActive?(r(),_(M,{key:5})):N((r(),_(Ie,{key:6},null,512)),[[z,e.showCartExpirationNotification]]),e.showGlobalNav?(r(),_(Wt,{key:7,"destination-menu":e.globalNav},null,8,["destination-menu"])):g("",!0),n("main",{id:"main-content",class:w(e.pageClass)},[[e.LOGIN_MODAL_ID,e.SIGNUP_MODAL_ID,e.SIGNUP_SOCIAL_MODAL_ID].includes(`${e.modalToShow}`)?(r(),_(Qt,{key:0,"in-modal":"",onClose:e.hideHandler},null,8,["onClose"])):g("",!0),h(jt),D(e.$slots,"default")],2),e.displayPartnerFooter?(r(),_(Yt,{key:8,"current-currency-iso":e.currency,"current-locale-iso":e.locale,"partner-footer-background-color":e.footerBackgroundColor,"partner-hash":e.partnerHash,"layout-type":e.layoutType},null,8,["current-currency-iso","current-locale-iso","partner-footer-background-color","partner-hash","layout-type"])):g("",!0),e.displayPartnerFooter?g("",!0):(r(),_(Kt,{key:9,"no-navigation":e.noFooterNav,"current-currency-iso":e.currency,"current-locale-iso":e.locale,"partner-hash":e.partnerHash,"contact-url":e.createRelativeUrlPath(e.localePath,"/contact/?referrer_source=site_footer"),"currency-switcher-footer-layout":e.currencySwitcherLayout.footer},null,8,["no-navigation","current-currency-iso","current-locale-iso","partner-hash","contact-url","currency-switcher-footer-layout"])),e.displayAppCallout?(r(),_(gt,{key:10,name:"app-banner"},{default:f(()=>[n("div",null,[e.hasAppBanner&&e.isSupportedMobileOs?(r(),_(Jt,{key:0,"smart-banner-experiment-variant":e.smartBannerExperimentVariant||"",locale:e.locale},null,8,["smart-banner-experiment-variant","locale"])):g("",!0)])]),_:1})):g("",!0),h(Xt,{name:"modal-container"}),e.partnerHash?(r(),_(Zt,{key:11})):g("",!0),e.showPromotionsComponent?(r(),_(xt,{key:12})):g("",!0),t[2]||(t[2]=n("div",{id:"braze-iam-container"},null,-1))],34)}const Bd=b(vd,[["render",Sd]]);export{la as A,Ei as B,at as C,Qe as D,$l as E,wi as F,cr as G,Ot as H,Ad as I,et as J,Ke as K,$e as L,Bd as M,pl as N,oe as O,re as P,ai as Q,fe as R,Je as S,Zs as T,sl as V,bc as a,Gt as b,Pd as c,xc as d,Yi as e,si as f,Ti as g,Ed as h,bi as i,Dr as j,Tc as k,Ld as l,zt as m,Lr as n,hr as o,vr as p,gr as q,R as r,Ci as s,Pt as t,cd as u,na as v,Dd as w,ca as x,pi as y,da as z};
//# sourceMappingURL=master-9FoxLK0k-v01.js.map
