PageSourceSearch

https://parking.edinburghairport.com/assets/root-CSpsaRyV.js

js edinburghairport.com collected 2026-09-24 17:59:33 UTC 55,324 bytes, 13 lines download raw bytes

1import{b as Ct,r as g,R,L as X,u as ge,x as It,g as $t,C as Tt,S as st,w as Pt,z as Dt,a as Rt,M as _t,D as At,E as Mt,O as Ft,i as Ut}from"./chunk-62JRHF6Z-CmKjBxfa.js";import{j as n}from"./jsx-runtime-BjG_zV1W.js";import{F as V,m as Bt,n as Kt,o as Gt}from"./index-DF6Op-Kg.js";import{r as zt,n as Xt,o as ne,w as Ie,aE as Vt,y as Yt,B as he,a as $,D as P,u as F,b as De,aF as Ht,aG as qt,aH as Qt,aI as Wt,aJ as Zt,aK as Jt,aL as en,aM as tn}from"./user-kRqMnSfw.js";import{aN as nn,aO as ke,ao as it,aP as on,a3 as J,aQ as sn,ab as rn,bQ as an,Z as oe,bR as ln,_ as se,aS as cn,aR as un,ap as A,a2 as dn,Q as G,Y as I,bS as fn,bT as pn,bU as mn,aT as gn,aU as hn,aV as xn,au as ee,aW as rt,aX as vn,a8 as ie,aY as bn,a0 as Ge,aj as yn,a$ as wn,ak as me,as as jn,ar as kn,aZ as Ln,a_ as Nn,a7 as Sn,ag as On,b0 as En,a6 as ze,b2 as Cn,b3 as In,ax as $n,bV as Tn,M as $e,O as Pn,bW as Dn,bX as Rn,bY as _n,bZ as An,aq as Mn,b4 as Fn,b6 as Un,b7 as Bn,b_ as Kn,aA as Xe,b5 as Gn,b9 as zn,c as z,k as at,bf as lt,g as re,b$ as ct,aC as ut,bh as Xn,bm as Vn,m as Yn,c0 as Hn,u as Re,i as Z,H as qn,bp as Qn,c1 as Wn,c2 as Zn,P as Jn}from"./Page-C0G44iKu.js";import{L as dt}from"./index-BO8FLjyh.js";import{r as Te}from"./index-DUEFzQeB.js";import{p as eo,c as de,a as O,b as ce,d as to,L as no,S as ue,s as oo,e as so,u as io,l as ro,f as ao,y as lo,g as co}from"./menu-eORhHIHx.js";import{y as uo}from"./Modal-DBNlEBss.js";import{d as ft,e as pt,g as mt,h as fo,i as po,j as mo,k as go}from"./index-g5zJfsiL.js";import{C as gt,a as ht}from"./Card-C1vwb9Uz.js";import"./index-zXU9hBIZ.js";import"./errors-BWVWU5cP.js";import"./index-Dt0n41Dd.js";import"./email-Blmk6JPa.js";function xt(e){return zt(1,arguments),Xt(e).getFullYear()}function ho({children:e}){const{insiderWebBehaviorTracking:o}=ne(),t=!!(o!=null&&o.partnerId&&(o!=null&&o.accountId)),{pathname:s}=Ct(),i=g.useRef(null),r=g.useRef(!1),l=g.useCallback(()=>{if(typeof window<"u"){const c=Ie();window.insiderFlow=c?3:1}},[]);return g.useEffect(()=>{if(!t)return;l();const c=()=>{l()};if(typeof window<"u")return window.addEventListener("CookiebotOnConsentReady",c),window.addEventListener("CookiebotOnAccept",c),window.addEventListener("CookiebotOnDecline",c),()=>{window.removeEventListener("CookiebotOnConsentReady",c),window.removeEventListener("CookiebotOnAccept",c),window.removeEventListener("CookiebotOnDecline",c)}},[l,t]),g.useEffect(()=>{var c;!t||i.current===s||(i.current=s,r.current&&(Vt(),r.current=!1),Yt(),(c=window.InsiderQueue)!=null&&c.some(u=>u.type==="purchase")&&(r.current=!0))},[s,t]),n.jsx(n.Fragment,{children:e})}function xo({config:e}){const{partnerId:o,accountId:t}=e.insiderWebBehaviorTracking;return g.useEffect(()=>{if(!o||!t||!/^[a-zA-Z0-9-]+$/.test(o))return;window.InsiderQueue=window.InsiderQueue||[];const s="insider-web-tracking",i=`https://${o}.api.useinsider.com/ins.js`;function r(u){const p=document.getElementById(s);p&&p.remove();const m=document.createElement("script");m.id=s,m.async=!0,m.src=u?`${i}?id=${t}`:`${i}?c=0`,document.head.appendChild(m)}function l(){const u=Ie();r(u)}const c=Ie();return r(c),window.addEventListener("CookiebotOnConsentReady",l),window.addEventListener("CookiebotOnAccept",l),window.addEventListener("CookiebotOnDecline",l),()=>{window.removeEventListener("CookiebotOnConsentReady",l),window.removeEventListener("CookiebotOnAccept",l),window.removeEventListener("CookiebotOnDecline",l)}},[o,t]),null}function vo({gtmObject:e}){if(!e)return null;const{gtmId:o,tagGatewayUrl:t,auth:s=null,preview:i=null}=e;if(!o&&!t)return null;const r=t||"https://www.googletagmanager.com/gtm.js",l=new URLSearchParams;o&&l.set("id",o),s&&l.set("gtm_auth",s),i&&l.set("gtm_preview",i);const c=l.toString(),u=`${r}?${c}`;return n.jsx("script",{id:"google-tag-manager",dangerouslySetInnerHTML:{__html:`
2    (function(w,d,s,l){w[l]=w[l]||[];w[l].push({'gtm.start':
3new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5'${u}'+dl;var n=d.querySelector('[nonce]');
6n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f);
7})(window,document,'script','dataLayer');
8  `}})}function bo({projectId:e}){return n.jsx("script",{id:"optimizely-script",src:"/optimizely.js","data-
8project-id":e})}function yo({speedCurveId:e}){return n.jsxs(n.Fragment,{children:[n.jsx("script",{id:"speed-curve-1",dangerouslySetInnerHTML:{__html:'LUX=function(){function n(){return Date.now?Date.now():+new Date}var r,e=n(),t=window.performance||{},a=t.timing||{navigationStart:(null===(r=window.LUX)||void 0===r?void 0:r.ns)||e};function o(){return t.now?(r=t.now(),Math.floor(r)):n()-a.navigationStart;var r}(LUX=window.LUX||{}).ac=[],LUX.addData=function(n,r){return LUX.cmd(["addData",n,r])},LUX.cmd=function(n){return LUX.ac.push(n)},LUX.getDebug=function(){return[[e,0,[]]]},LUX.init=function(){return LUX.cmd(["init"])},LUX.mark=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t.mark)return t.mark.apply(t,n);var e=n[0],a=n[1]||{};void 0===a.startTime&&(a.startTime=o());LUX.cmd(["mark",e,a])},LUX.markLoadTime=function(){return LUX.cmd(["markLoadTime",o()])},LUX.measure=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t.measure)return t.measure.apply(t,n);var e,a=n[0],i=n[1],u=n[2];e="object"==typeof i?n[1]:{start:i,end:u};e.duration||e.end||(e.end=o());LUX.cmd(["measure",a,e])},LUX.send=function(){return LUX.cmd(["send"])},LUX.ns=e;var i=LUX;if(window.LUX_ae=[],window.addEventListener("error",(function(n){window.LUX_ae.push(n)})),window.LUX_al=[],"function"==typeof PerformanceObserver&&"function"==typeof PerformanceLongTaskTiming){var u=new PerformanceObserver((function(n){for(var r=n.getEntries(),e=0;e<r.length;e++)window.LUX_al.push(r[e])}));try{u.observe({type:"longtask"})}catch(n){}}return i}();'}}),n.jsx("script",{id:"speed-curve-2",src:`https://cdn.speedcurve.com/js/lux.js?id=${e}`,defer:!0,crossOrigin:"anonymous"})]})}function wo({config:e}){const{gtmObject:o=null,optimizelyProjectId:t,webLoyaltyId:s,cookiebotId:i,speedCurveId:r,insiderWebBehaviorTracking:l}=e;return n.jsxs(n.Fragment,{children:[t&&n.jsx(bo,{projectId:t}),n.jsx(vo,{gtmObject:o}),s&&n.jsx("script",{id:"web-loyalty",src:"/assets/scripts/webLoyalty.js"}),i&&n.jsx("script",{id:"Cookiebot",src:"https://consent.cookiebot.com/uc.js","data-cbid":`${i}`}),r&&n.jsx(yo,{speedCurveId:r}),l&&n.jsx(xo,{config:e})]})}function jo({children:e,freeze:o},t){let s=vt(o,e);return g.isValidElement(s)?g.cloneElement(s,{ref:t}):R.createElement(R.Fragment,null,s)}R.forwardRef(jo);function vt(e,o){let[t,s]=g.useState(o);return!e&&t!==o&&s(o),e?t:o}var ko=Object.defineProperty,Lo=(e,o,t)=>o in e?ko(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ve=(e,o,t)=>(Lo(e,typeof o!="symbol"?o+"":o,t),t),T=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(T||{}),q=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(q||{}),fe=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(fe||{}),bt=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(bt||{});function Ye(e,o=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,s=sn(o(e.options.slice()),r=>r.dataRef.current.domRef.current),i=t?s.indexOf(t):null;return i===-1&&(i=null),{options:s,activeOptionIndex:i}}let No={1(e){if(e.dataRef.current.disabled||e.listboxState===1)return e;let o=e.buttonElement?de.Tracked(to(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:O.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:o}},0(e,o){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,i=e.options.findIndex(r=>s(r.dataRef.current.value));return i!==-1&&(t=i),{...e,frozenValue:!1,pendingFocus:o.focus,listboxState:0,activeOptionIndex:t,__demoMode:!1,buttonPositionState:de.Idle}},2(e,o){var t,s,i,r,l;if(e.dataRef.current.disabled||e.listboxState===1)return e;let c={...e,searchQuery:"",activationTrigger:(t=o.trigger)!=null?t:1,__demoMode:!1};if(o.focus===O.Nothing)return{...c,activeOptionIndex:null};if(o.focus===O.Specific)return{...c,activeOptionIndex:e.options.findIndex(m=>m.id===o.id)};if(o.focus===O.Previous){let m=e.activeOptionIndex;if(m!==null){let v=e.options[m].dataRef.current.domRef,h=ce(o,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(h!==null){let d=e.options[h].dataRef.current.domRef;if(((s=v.current)==null?void 0:s.previousElementSibling)===d.current||((i=d.current)==null?void 0:i.previousElementSibling)===null)return{...c,activeOptionIndex:h}}}}else if(o.focus===O.Next){let m=e.activeOptionIndex;if(m!==null){let v=e.options[m].dataRef.current.domRef,h=ce(o,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});if(h!==null){let d=e.options[h].dataRef.current.domRef;if(((r=v.current)==null?void 0:r.nextElementSibling)===d.current||((l=d.current)==null?void 0:l.nextElementSibling)===null)return{...c,activeOptionIndex:h}}}}let u=Ye(e),p=ce(o,{resolveItems:()=>u.options,resolveActiveIndex:()=>u.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});return{...c,...u,activeOptionIndex:p}},3:(e,o)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let t=e.searchQuery!==""?0:1,s=e.searchQuery+o.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+t).concat(e.options.slice(0,e.activeOptionIndex+t)):e.options).find(l=>{var c;return!l.dataRef.current.disabled&&((c=l.dataRef.current.textValue)==null?void 0:c.startsWith(s))}),r=i?e.options.indexOf(i):-1;return r===-1||r===e.activeOptionIndex?{...e,searchQuery:s}:{...e,searchQuery:s,activeOptionIndex:r,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5(e){return e.dataRef.current.mode===0?{...e,frozenValue:!0}:{...e}},6:(e,o)=>{let t=e.options.concat(o.options),s=e.activeOptionIndex;if(e.pendingFocus.focus!==O.Nothing&&(s=ce(e.pendingFocus,{resolveItems:()=>t,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:i=>i.id,resolveDisabled:i=>i.dataRef.current.disabled})),e.activeOptionIndex===null){let{isSelected:i}=e.dataRef.current;if(i){let r=t.findIndex(l=>i==null?void 0:i(l.dataRef.current.value));r!==-1&&(s=r)}}return{...e,options:t,activeOptionIndex:s,pendingFocus:{focus:O.Nothing},pendingShouldSort:!0}},7:(e,o)=>{let t=e.options,s=[],i=new Set(o.options);for(let[r,l]of t.entries())if(i.has(l.id)&&(s.push(r),i.delete(l.id),i.size===0))break;if(s.length>0){t=t.slice();for(let r of s.reverse())t.splice(r,1)}return{...e,options:t,activationTrigger:1}},8:(e,o)=>e.buttonElement===o.element?e:{...e,buttonElement:o.element},9:(e,o)=>e.optionsElement===o.element?e:{...e,optionsElement:o.element},10:e=>e.pendingShouldSort?{...e,...Ye(e),pendingShouldSort:!1}:e,11(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:de.Moved}}};class _e extends nn{constructor(o){super(o),Ve(this,"actions",{onChange:t=>{let{onChange:s,compare:i,mode:r,value:l}=this.state.dataRef.current;return J(r,{0:()=>s==null?void 0:s(t),1:()=>{let c=l.slice(),u=c.findIndex(p=>i(p,t));return u===-1?c.push(t):c.splice(u,1),s==null?void 0:s(c)}})},registerOption:ke(()=>{let t=[],s=new Set;return[(i,r)=>{s.has(r)||(s.add(r),t.push({id:i,dataRef:r}))},()=>(s.clear(),this.send({type:6,options:t.splice(0)}))]}),unregisterOption:ke(()=>{let t=[];return[s=>t.push(s),()=>{this.send({type:7,options:t.splice(0)})}]}),goToOption:ke(()=>{let t=null;return[(s,i)=>{t={type:2,...s,trigger:i}},()=>t&&this.send(t)]}),closeListbox:()=>{this.send({type:1})},openListbox:t=>{this.send({type:0,focus:t})},selectActiveOption:()=>{var t;if(this.state.activeOptionIndex!==null){let{dataRef:s}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(s.current.value)}else this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(t=this.state.buttonElement)==null||t.focus({preventScroll:!0}))},selectOption:t=>{this.send({type:5,value:t})},search:t=>{this.send({type:3,value:t})},clearSearch:()=>{this.send({type:4})},setButtonElement:t=>{this.send({type:8,element:t})},setOptionsElement:t=>{this.send({type:9,element:t})}}),Ve(this,"selectors",{activeDescendantId(t){var s;let i=t.activeOptionIndex,r=t.options;return i===null||(s=r[i])==null?void 0:s.id},isActive(t,s){var i;let r=t.activeOptionIndex,l=t.options;return r!==null?((i=l[r])==null?void 0:i.id)===s:!1}
8,hasFrozenValue(t){return t.frozenValue},shouldScrollIntoView(t,s){return t.__demoMode||t.listboxState!==0||t.activationTrigger===0?!1:this.isActive(t,s)},didButtonMove(t){return t.buttonPositionState.kind==="Moved"}}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let t=this.state.id,s=it.get(null);this.disposables.add(s.on(on.Push,i=>{!s.selectors.isTop(i,t)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>s.actions.push(t)),this.on(1,()=>s.actions.pop(t))}this.disposables.group(t=>{this.on(1,s=>{s.buttonElement&&(t.dispose(),t.add(eo(s.buttonElement,s.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(t,s)=>{var i;this.actions.onChange(s.value),this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(i=this.state.buttonElement)==null||i.focus({preventScroll:!0}))})}static new({id:o,__demoMode:t=!1}){return new _e({id:o,dataRef:{current:{}},listboxState:t?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:O.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:de.Idle})}reduce(o,t){return J(t.type,No,o,t)}}const yt=g.createContext(null);function Ae(e){let o=g.useContext(yt);if(o===null){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wt),t}return o}function wt({id:e,__demoMode:o=!1}){let t=g.useMemo(()=>_e.new({id:e,__demoMode:o}),[]);return rn(()=>t.dispose()),t}let xe=g.createContext(null);xe.displayName="ListboxDataContext";function ae(e){let o=g.useContext(xe);if(o===null){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ae),t}return o}let So=g.Fragment;function Oo(e,o){let t=g.useId(),s=Dn(),{value:i,defaultValue:r,form:l,name:c,onChange:u,by:p,invalid:m=!1,disabled:v=s||!1,horizontal:h=!1,multiple:d=!1,__demoMode:a=!1,...f}=e;const x=h?"horizontal":"vertical";let k=se(o),S=Rn(r),[N=d?[]:void 0,y]=_n(i,u,S),w=wt({id:t,__demoMode:a}),E=g.useRef({static:!1,hold:!1}),D=g.useRef(new Map),C=An(p),Q=g.useCallback(_=>J(j.mode,{[q.Multi]:()=>N.some(te=>C(te,_)),[q.Single]:()=>C(N,_)}),[N]),j=ee({value:N,disabled:v,invalid:m,mode:d?q.Multi:q.Single,orientation:x,onChange:y,compare:C,isSelected:Q,optionsPropsRef:E,listRef:D});$e(()=>{w.state.dataRef.current=j},[j]);let M=A(w,_=>_.listboxState),U=it.get(null),W=A(U,g.useCallback(_=>U.selectors.isTop(_,t),[U,t])),[B,L]=A(w,_=>[_.buttonElement,_.optionsElement]);Mn(W,[B,L],(_,te)=>{w.send({type:bt.CloseListbox}),Gn(te,zn.Loose)||(_.preventDefault(),B==null||B.focus())});let K=ee({open:M===T.Open,disabled:v,invalid:m,value:N}),[ve,be]=Fn({inherit:!0}),le={ref:k},ye=g.useCallback(()=>{if(S!==void 0)return y==null?void 0:y(S)},[y,S]),we=ie();return R.createElement(be,{value:ve,props:{htmlFor:B==null?void 0:B.id},slot:{open:M===T.Open,disabled:v}},R.createElement(Un,null,R.createElement(yt.Provider,{value:w},R.createElement(xe.Provider,{value:j},R.createElement(Bn,{value:J(M,{[T.Open]:me.Open,[T.Closed]:me.Closed})},c!=null&&N!=null&&R.createElement(Kn,{disabled:v,data:{[c]:N},form:l,onReset:ye}),we({ourProps:le,theirProps:f,slot:K,defaultTag:So,name:"Listbox"}))))))}let Eo="button";function Co(e,o){let t=g.useId(),s=ln(),i=ae("Listbox.Button"),r=Ae("Listbox.Button"),{id:l=s||`headlessui-listbox-button-${t}`,disabled:c=i.disabled||!1,autoFocus:u=!1,...p}=e,m=se(o,cn(),r.actions.setButtonElement),v=un(),[h,d,a]=A(r,L=>[L.listboxState,L.buttonElement,L.optionsElement]),f=h===T.Open;no(f,{trigger:d,action:g.useCallback(L=>{if(d!=null&&d.contains(L.target))return ue.Ignore;let K=L.target.closest('[role="option"]:not([data-disabled])');return dn(K)?ue.Select(K):a!=null&&a.contains(L.target)?ue.Ignore:ue.Close},[d,a]),close:r.actions.closeListbox,select:r.actions.selectActiveOption});let x=G(L=>{switch(L.key){case I.Enter:fn(L.currentTarget);break;case I.Space:case I.ArrowDown:L.preventDefault(),r.actions.openListbox({focus:i.value?O.Nothing:O.First});break;case I.ArrowUp:L.preventDefault(),r.actions.openListbox({focus:i.value?O.Nothing:O.Last});break}}),k=G(L=>{switch(L.key){case I.Space:L.preventDefault();break}}),S=oo(L=>{var K;r.state.listboxState===T.Open?(Te.flushSync(()=>r.actions.closeListbox()),(K=r.state.buttonElement)==null||K.focus({preventScroll:!0})):(L.preventDefault(),r.actions.openListbox({focus:O.Nothing}))}),N=G(L=>L.preventDefault()),y=pn([l]),w=mn(),{isFocusVisible:E,focusProps:D}=gn({autoFocus:u}),{isHovered:C,hoverProps:Q}=hn({isDisabled:c}),{pressed:j,pressProps:M}=xn({disabled:c}),U=ee({open:h===T.Open,active:j||h===T.Open,disabled:c,invalid:i.invalid,value:i.value,hover:C,focus:E,autofocus:u}),W=A(r,L=>L.listboxState===T.Open),B=rt(v(),{ref:m,id:l,type:vn(e,d),"aria-haspopup":"listbox","aria-controls":a==null?void 0:a.id,"aria-expanded":W,"aria-labelledby":y,"aria-describedby":w,disabled:c||void 0,autoFocus:u,onKeyDown:x,onKeyUp:k,onKeyPress:N},S,D,Q,M);return ie()({ourProps:B,theirProps:p,slot:U,defaultTag:Eo,name:"Listbox.Button"})}let jt=g.createContext(!1),Io="div",$o=Xe.RenderStrategy|Xe.Static;function To(e,o){let t=g.useId(),{id:s=`headlessui-listbox-options-${t}`,anchor:i,portal:r=!1,modal:l=!0,transition:c=!1,...u}=e,p=bn(i),[m,v]=g.useState(null);p&&(r=!0);let h=ae("Listbox.Options"),d=Ae("Listbox.Options"),[a,f,x,k]=A(d,b=>[b.listboxState,b.buttonElement,b.optionsElement,b.__demoMode]),S=Ge(f),N=Ge(x),y=yn(),[w,E]=wn(c,m,y!==null?(y&me.Open)===me.Open:a===T.Open);jn(w,f,d.actions.closeListbox);let D=k?!1:l&&a===T.Open;kn(D,N);let C=k?!1:l&&a===T.Open;uo(C,{allowed:g.useCallback(()=>[f,x],[f,x])});let Q=A(d,d.selectors.didButtonMove)?!1:w,j=A(d,d.selectors.hasFrozenValue)&&!e.static,M=vt(j,h.value),U=g.useCallback(b=>h.compare(M,b),[h.compare,M]),W=A(d,b=>{var Y;if(p==null||!((Y=p==null?void 0:p.to)!=null&&Y.includes("selection")))return null;let je=b.options.findIndex(Et=>U(Et.dataRef.current.value));return je===-1&&(je=0),je}),B=(()=>
8{if(p==null)return;if(W===null)return{...p,inner:void 0};let b=Array.from(h.listRef.current.values());return{...p,inner:{listRef:{current:b},index:W}}})(),[L,K]=Ln(B),ve=Nn(),be=se(o,p?L:null,d.actions.setOptionsElement,v),le=Sn();g.useEffect(()=>{let b=x;b&&a===T.Open&&(On(b)||b==null||b.focus({preventScroll:!0}))},[a,x]);let ye=G(b=>{var Y;switch(le.dispose(),b.key){case I.Space:if(d.state.searchQuery!=="")return b.preventDefault(),b.stopPropagation(),d.actions.search(b.key);case I.Enter:b.preventDefault(),b.stopPropagation(),d.actions.selectActiveOption();break;case J(h.orientation,{vertical:I.ArrowDown,horizontal:I.ArrowRight}):return b.preventDefault(),b.stopPropagation(),d.actions.goToOption({focus:O.Next});case J(h.orientation,{vertical:I.ArrowUp,horizontal:I.ArrowLeft}):return b.preventDefault(),b.stopPropagation(),d.actions.goToOption({focus:O.Previous});case I.Home:case I.PageUp:return b.preventDefault(),b.stopPropagation(),d.actions.goToOption({focus:O.First});case I.End:case I.PageDown:return b.preventDefault(),b.stopPropagation(),d.actions.goToOption({focus:O.Last});case I.Escape:b.preventDefault(),b.stopPropagation(),Te.flushSync(()=>d.actions.closeListbox()),(Y=d.state.buttonElement)==null||Y.focus({preventScroll:!0});return;case I.Tab:b.preventDefault(),b.stopPropagation(),Te.flushSync(()=>d.actions.closeListbox()),En(d.state.buttonElement,b.shiftKey?ze.Previous:ze.Next);break;default:b.key.length===1&&(d.actions.search(b.key),le.setTimeout(()=>d.actions.clearSearch(),350));break}}),we=A(d,b=>{var Y;return(Y=b.buttonElement)==null?void 0:Y.id}),_=ee({open:a===T.Open}),te=rt(p?ve():{},{id:s,ref:be,"aria-activedescendant":A(d,d.selectors.activeDescendantId),"aria-multiselectable":h.mode===q.Multi?!0:void 0,"aria-labelledby":we,"aria-orientation":h.orientation,onKeyDown:ye,role:"listbox",tabIndex:a===T.Open?0:void 0,style:{...u.style,...K,"--button-width":In(w,f,!0).width},...Cn(E)}),St=ie(),Ot=g.useMemo(()=>h.mode===q.Multi?h:{...h,isSelected:U},[h,U]);return R.createElement($n,{enabled:r?e.static||w:!1,ownerDocument:S},R.createElement(xe.Provider,{value:Ot},St({ourProps:te,theirProps:u,slot:_,defaultTag:Io,features:$o,visible:Q,name:"Listbox.Options"}
8)))}let Po="div";function Do(e,o){let t=g.useId(),{id:s=`headlessui-listbox-option-${t}`,disabled:i=!1,value:r,...l}=e,c=g.useContext(jt)===!0,u=ae("Listbox.Option"),p=Ae("Listbox.Option"),m=A(p,j=>p.selectors.isActive(j,s)),v=u.isSelected(r),h=g.useRef(null),d=so(h),a=Tn({disabled:i,value:r,domRef:h,get textValue(){return d()}}),f=se(o,h,j=>{j?u.listRef.current.set(s,j):u.listRef.current.delete(s)}),x=A(p,j=>p.selectors.shouldScrollIntoView(j,s));$e(()=>{if(x)return Pn().requestAnimationFrame(()=>{var j,M;(M=(j=h.current)==null?void 0:j.scrollIntoView)==null||M.call(j,{block:"nearest"})})},[x,h]),$e(()=>{if(!c)return p.actions.registerOption(s,a),()=>p.actions.unregisterOption(s)},[a,s,c]);let k=G(j=>{if(i)return j.preventDefault();p.actions.selectOption(r)}),S=G(()=>{if(i)return p.actions.goToOption({focus:O.Nothing});p.actions.goToOption({focus:O.Specific,id:s})}),N=io(),y=G(j=>N.update(j)),w=G(j=>{N.wasMoved(j)&&(i||m&&p.state.activationTrigger===fe.Pointer||p.actions.goToOption({focus:O.Specific,id:s},fe.Pointer))}),E=G(j=>{N.wasMoved(j)&&(i||m&&p.state.activationTrigger===fe.Pointer&&p.actions.goToOption({focus:O.Nothing}))}),D=ee({active:m,focus:m,selected:v,disabled:i,selectedOption:v&&c}),C=c?{}:{id:s,ref:f,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":v,disabled:void 0,onClick:k,onFocus:S,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:E,onMouseLeave:E},Q=ie();return!v&&c?null:Q({ourProps:C,theirProps:l,slot:D,defaultTag:Po,name:"Listbox.Option"})}let Ro=g.Fragment;function _o(e,o){let{options:t,placeholder:s,...i}=e,r={ref:se(o)},l=ae("ListboxSelectedOption"),c=ee({}),u=l.value===void 0||l.value===null||l.mode===q.Multi&&Array.isArray(l.value)&&l.value.length===0,p=ie();return R.createElement(jt.Provider,{value:!0},p({ourProps:r,theirProps:{...i,children:R.createElement(R.Fragment,null,s&&u?s:t)},slot:c,defaultTag:Ro,name:"ListboxSelectedOption"}))}let Ao=oe(Oo),Me=oe(Co),Fe=an,Ue=oe(To),Be=oe(Do),Mo=oe(_o),kt=Object.assign(Ao,{Button:Me,Label:Fe,Options:Ue,Option:Be,SelectedOption:Mo});function He({src:e,width:o,height:t,alt:s,className:i=""}){return n.jsx(X,{to:"/",children:n.jsx("img",{src:e,width:o,height:t,alt:s,className:z("object-contain object-left",i)})})}function Ke({src:e,alt:o,desktopClassName:t="",mobileClassName:s=""}){return n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"hidden md:block",children:n.jsx(He,{src:e,width:200,height:60,alt:o,className:t})}),n.jsx("span",{className:"md:hidden",children:n.jsx(He,{src:e,width:150,height:50,alt:o,className:s})})]})}function Fo({showModal:e,setShowModal:o,linkTitle:t}){return n.jsxs(n.Fragment,{children:[n.jsx(at,{small:!0,bold:!1,onClick:()=>o(!e),id:"login-modal-toggle",children:t}),n.jsx(dt,{showModal:e,setShowModal:o})]})}function qe({language:e,options:o}){const t=o.find(r=>r.code===e.toLowerCase());if(!t)return null;const{name:s,flagFile:i}=t;return n.jsxs("div",{className:"text-sm flex items-center gap-3",children:[n.jsx("img",{src:`/assets/images/i18n/flags/${i}`,height:12,width:16,alt:`${e} flag`}),n.jsx("span",{children:s})]})}function Qe(){var p;const{language:e,setLanguage:o}=he(),{languages:t}=ne(),{A11Y_LANGUAGE:s}=$(),i=ge(),r=t.map(m=>m.code),l=(p=t.find(m=>m.isDefault))==null?void 0:p.code,c=r.includes(e)?e:l;function u(m){o(m),i(0)}return t.length<2?null:n.jsx(kt,{as:"div",className:"relative justify-self-start",value:c,onChange:u,children:({open:m})=>n.jsxs(n.Fragment,{children:[n.jsx(Fe,{className:"sr-only",children:s}),n.jsxs(Me,{className:"bg-transparent rounded-xs p-2 border border-gray-200 text-header flex items-center gap-3 hover:text-gray-700 hover:bg-gray-100 hover:border-gray-300 focus:ring focus:ring-primary focus:outline-none focus:border-primary",children:[n.jsx(qe,{language:c,options:t}),n.jsx(V,{icon:lt,className:z("transition-transform",{"-rotate-180":m})})]}),n.jsx(Ue,{className:"bg-white border border-gray-200 rounded-xs grid absolute right-0 top-full mt-1 shadow-lg min-w-[130px] z-[15]",unmount:!1,children:r.map(v=>n.jsx(Be,{value:v,className:"bg-white hover:bg-gray-100 cursor-pointer first-of-type:rounded-t-md last:rounded-b-md px-4 py-3 text-gray-700",children:n.jsx(qe,{language:v,options:t})},v))})]})})}
8const Uo={link:"/account/register",titleDictionaryKey:P.REGISTER},We={link:"/account/login",titleDictionaryKey:P.LOG_IN,button:!0},Le={link:"/booking/manage/login",titleDictionaryKey:P.MANAGE_A_BOOKING},Ze={link:"/account",titleDictionaryKey:P.MY_ACCOUNT},Ne={link:"/account/logout",titleDictionaryKey:P.LOG_OUT};function Bo(){const{firebaseUser:e,isSingleBookingUser:o}=De(),{isAgentChannel:t}=F();return o?[{link:`/booking/manage?id=${e.bookingRef}`,titleDictionaryKey:P.MANAGE_BOOKING},Ne]:e?t?[Le,Ze,Ne]:[Ze,Ne]:t?[Le,We]:[Le,Uo,We]}const Ko=g.forwardRef(function({link:o,onClick:t},s){const r=$()[o.titleDictionaryKey];return n.jsx(X,{to:o.link,onClick:t,className:"text-left w-full block px-4 py-2 text-sm cursor-pointer btn btn-none hover:bg-gray-100",ref:s,children:r})});function Go({links:e,showModal:o,setShowModal:t}){const s=$();return n.jsxs(ro,{as:"div",className:"md:hidden relative inline-block text-left",children:[n.jsx(ao,{className:"flex items-center w-full justify-center rounded-md aspect-square p-3 text-header focus:outline-hidden focus:ring-2 focus:ring-primary focus:ring-offset-2 focus:ring-offset-[var(--header)]",name:"dropdown-menu",children:n.jsx(V,{icon:ct})}),n.jsx(ut,{as:g.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:n.jsx(lo,{className:"absolute right-0 z-10 mt-2 w-56 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-hidden text-black",children:n.jsx("div",{className:"py-1",children:e.map(i=>{const r=s[i.titleDictionaryKey];return i.titleDictionaryKey==="LOG_IN"?n.jsx("a",{className:"text-left w-full block px-4 py-2 cursor-pointer btn btn-none hover:bg-gray-100",role:"button",onClick:()=>t(!o),onKeyDown:l=>{l.key==="Enter"&&t(!o)},children:r},i.titleDictionaryKey):n.jsx(co,{children:({close:l})=>n.jsx(Ko,{link:i,onClick:()=>l()})},i.titleDictionaryKey)})})})})]})}function zo({link:e}){const{button:o}=e,t=o?"rounded-md bg-secondary text-accessible-secondary px-4 py-2":"text-header",i=$()[e.titleDictionaryKey];return n.jsx("li",{children:n.jsxs(X,{to:e.link,className:z("flex items-center gap-2 active:no-underline visited:no-underline hover:no-underline opacity-90 hover:opacity-100 transition-all text-sm md:text-base whitespace-nowrap",t),children:[i,!o&&n.jsx(V,{icon:Xn,className:"opacity-40 text-xs"})]})})}function Xo({links:e,showModal:o,setShowModal:t}){const s=$();return n.jsx("ul",{className:"list-none hidden md:flex flex-wrap items-center gap-4 w-full sm:w-auto print:hidden",children:e.map(i=>{const r=s[i.titleDictionaryKey];return i.titleDictionaryKey==="LOG_IN"?n.jsx(Fo,{showModal:o,setShowModal:t,linkTitle:r},r):n.jsx(zo,{link:i},r)})})}function Vo({logo:e,title:o}){const{isInstantBookingChannel:t}=F(),s=Bo(),[i,r]=g.useState(!1);return n.jsx("header",{className:"bg-header text-header shrink-0 p-4 xl:px-0 print:p-0 print:mb-4 w-full",children:n.jsx(re,{children:n.jsxs("nav",{className:"flex justify-between items-center gap-8",children:[n.jsx(Ke,{src:e,alt:o,desktopClassName:"max-h-(--header-desktop-logo-max-height,60px)",mobileClassName:"max-h-(--header-mobile-logo-max-height,50px)"}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"md:hidden",children:n.jsx(Qe,{})}),!t&&n.jsxs(n.Fragment,{children:[n.jsx(Go,{links:s,showModal:i,setShowModal:r}),n.jsx(Xo,{links:s,showModal:i,setShowModal:r})]}),n.jsx("div",{className:"hidden md:block",children:n.jsx(Qe,{})})]})]})})})}function Je({channelName:e,src:o,width:t,height:s,alt:i,className:r=""}){const{A11Y_GO_TO_HOMEPAGE:l}=$(),c=(l==null?void 0:l.replace("{name}",e))||i;return n.jsx(X,{to:"/","aria-label":c,className:"inline-block rounded focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none",children:n.jsx("img",{src:o,width:t,height:s,alt:i,className:z("object-contain object-left",r)})})}function Lt({channelName:e,src:o,alt:t,desktopClassName:s="",mobileClassName:i=""}){return n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"hidden md:block",children:n.jsx(Je,{channelName:e,src:o,width:200,height:60,alt:t,className:s})}),n.jsx("span",{className:"md:hidden",children:n.jsx(Je,{channelName:e,src:o,width:150,height:50,alt:t,className:i})})]})}function et({language:e,options:o,compact:t=!1}){const s=o.find(l=>l.code===e.toLowerCase());if(!s)return null;const{name:i,flagFile:r}=s;return n.jsxs("div",{className:"text-sm flex items-center gap-3",children:[n.jsx("img",{src:`/assets/images/i18
8n/flags/${r}`,height:15,width:20,alt:"","aria-hidden":"true",className:"shrink-0 w-5 h-[15px]"}),!t&&n.jsx("span",{children:i})]})}function Pe({compact:e=!1}){var m;const{language:o,setLanguage:t}=he(),{languages:s}=ne(),i=ge(),{A11Y_LANGUAGE:r}=$(),l=s.map(v=>v.code),c=(m=s.find(v=>v.isDefault))==null?void 0:m.code,u=l.includes(o)?o:c;function p(v){document.documentElement.lang=v,t(v),i(0)}return s.length<2?null:n.jsx(kt,{as:"div",className:"relative justify-self-start",value:u,onChange:p,children:({open:v})=>n.jsxs(n.Fragment,{children:[n.jsx(Fe,{className:"sr-only",children:r}),n.jsxs(Me,{className:z("bg-parkle-primary rounded-lg p-2 border border-parkle-border-primary text-parkle-primary flex items-center justify-center hover:bg-parkle-secondary focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none",e?"gap-2 w-[60px] shrink-0":"gap-3"),children:[n.jsx(et,{language:u,options:s,compact:e}),n.jsx(V,{icon:lt,className:z("motion-safe:transition-transform",{"-rotate-180":v})})]}),n.jsx(Ue,{className:"bg-parkle-primary border border-parkle-border-primary rounded-lg grid absolute right-0 top-full mt-1 shadow-parkle-lg-border-primary min-w-[130px] z-10",unmount:!1,children:l.map(h=>n.jsx(Be,{value:h,className:"bg-parkle-primary hover:bg-parkle-secondary cursor-pointer first-of-type:rounded-t-md last:rounded-b-md px-4 py-3 text-parkle-primary focus-visible:bg-parkle-secondary focus-visible:outline-none",children:n.jsx(et,{language:h,options:s})},h))})]})})}function Yo(e){return g.useEffect(()=>(e?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),()=>document.body.classList.remove("overflow-hidden")),[e])}function Ho(e){g.useEffect(()=>{function o(t){t.key==="Escape"&&e()}return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e])}function qo(e,o){g.useEffect(()=>{function t(s){e.current&&!e.current.contains(s.target)&&o(s)}return document.addEventListener("focusin",t),document.addEventListener("pointerdown",t),()=>{document.removeEventListener("focusin",t),document.removeEventListener("pointerdown",t)}},[o,e])}function Qo({links:e,setShowLoginModal:o}){const t=g.useRef(null),s=g.useRef(null),[i,r]=g.useState(!1),l=$();return Yo(i),Ho(g.useCallback(()=>r(!1),[])),qo(s,g.useCallback(c=>{i&&t.current&&!t.current.contains(c.target)&&r(!1)},[i])),n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",ref:t,id:"mobile-menu-toggle",name:"dropdown-menu","aria-expanded":i?"true":"false","aria-controls":"mobile-menu","aria-haspopup":"true","aria-label":i?l.A11Y_CLOSE_MENU:l.A11Y_OPEN_MENU,className:"flex items-center justify-center rounded-lg aspect-square p-3 w-11 h-11 text-parkle-icon-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none",onClick:()=>r(!i),children:n.jsx(V,{"aria-hidden":"true",icon:ct})}),n.jsx(ut,{as:"nav",id:"mobile-menu",show:i,"aria-label":l.A11Y_MAIN_MENU,enter:"transition ease-out duration-100 motion-reduce:duration-0",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75 motion-reduce:duration-0",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",className:"fixed right-4 top-14 z-50 rounded-lg w-2xs origin-top-right shadow-parkle-lg-border-primary text-parkle-primary font-bold bg-parkle-primary",children:n.jsx("ul",{ref:s,className:"divide-y divide-parkle-primary focus:outline-none",children:i&&e.map(c=>{const u=l[c.titleDictionaryKey];return c.titleDictionaryKey===P.LOG_IN?n.jsx("li",{className:"bg-parkle-primary p-3",children:n.jsx("button",{type:"button",className:"text-left w-full block p-3 text-sm cursor-pointer text-parkle-primary rounded-lg hover:bg-parkle-secondary focus-visible:bg-parkle-secondary focus-visible:outline-none",id:"dropdown-login-button",onClick:()=>{r(!1),o(!0)},"aria-label":l.LOG_IN,children:u})},c.titleDictionaryKey):n.jsx("li",{className:"p-3 bg-parkle-primary first:rounded-t-lg last:rounded-b-lg",children:n.jsx(X,{to:c.link,onClick:()=>r(!1),className:"text-left w-full block p-3 text-sm cursor-pointer text-parkle-primary rounded-lg hover:bg-parkle-secondary focus-visible:bg-parkle-secondary focus-visible:outline-none",children:u})},c.titleDictionaryKey)})})})]})}function Wo({link:e}){const{button:o,titleDictionaryKey:t}=e,i=$()[t],r=o?"rounded-md bg-parkle-brand-secondary text-parkle-accessible-brand-secondary px-4 py-2":"text-header";return n.jsx("li",{children:n.jsx(X,{to:e.link,className:z("flex items-center gap-2 active:no-underline visited:no-underline hover:no-underline opacity-90 hover:opacity-100 transition-opacity text-sm md:text-base whitespace-nowrap font-bold rounded focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none",r),children:i})})}function Zo({setShowModal:e,linkTitle:o}){return n.jsx("li",{children:n.jsx(Vn,{variant:"secondary",compact:!0,onClick:()=>e(!0),id:"login-modal-toggle",iconLeft:{icon:Yn},children:o})})}function Jo({links:e,setShowLoginModal:o}){const t=$();return n.jsx("ul",{className:"list-none hidden lg:flex flex-wrap items-center gap-4 lg:gap-8 xl:gap-12 w-auto print:hidden font-bold",children:e.map(s=>{const{titleDictionaryKey:i}=s,r=t[i];return i===P.LOG_IN?n.jsx(Zo,{setShowModal:o,linkTitle:r},i):n.jsx(Wo,{link:s},i)})})}
8const es={link:"/account/register",titleDictionaryKey:P.REGISTER},tt={link:"/account/login",titleDictionaryKey:P.LOG_IN,button:!0},Se={link:"/booking/manage/login",titleDictionaryKey:P.MANAGE_A_BOOKING},nt={link:"/account",titleDictionaryKey:P.MY_ACCOUNT},Oe={link:"/account/logout",titleDictionaryKey:P.LOG_OUT};function ts({setShowLoginModal:e,accountLink:o,loggedIn:t=!1}){const{MY_ACCOUNT:s,LOG_IN:i}=$(),r=ge();return n.jsx("button",{type:"button",className:"flex items-center justify-center rounded-lg p-3 w-11 h-11 text-parkle-icon-primary focus-visible:ring-2 focus-visible:ring-primary focus-visible:outline-none",onClick:t&&o?()=>r(o):()=>e(!0),name:"user-action-button","aria-label":t?s:i,children:n.jsx(V,{"aria-hidden":"true",icon:Hn})})}function ns(){const{firebaseUser:e,isSingleBookingUser:o}=De(),{isAgentChannel:t}=F();return o?[{link:`/booking/manage?id=${e.bookingRef}`,titleDictionaryKey:P.MANAGE_BOOKING},Oe]:e?t?[Se,nt,Oe]:[nt,Oe]:t?[Se,tt]:[Se,es,tt]}function os({logo:e,title:o}){var m;const{isInstantBookingChannel:t}=F(),{A11Y_MAIN_MENU:s}=$(),i=ns(),{loggedIn:r}=De(),[l,c]=g.useState(!1),u=(m=i.find(v=>v.titleDictionaryKey===P.MY_ACCOUNT))==null?void 0:m.link,p=!r||!!u;return n.jsxs(n.Fragment,{children:[n.jsx("header",{className:"bg-header text-header shrink-0 p-4 xl:px-0 lg:py-6 print:p-0 print:mb-4 w-full",children:n.jsx(re,{children:n.jsxs("nav",{className:"flex justify-between items-center gap-8","aria-label":`${o} ${s}`,children:[n.jsx(Lt,{channelName:o,src:e,alt:o,desktopClassName:"max-h-(--header-desktop-logo-max-height,50px)",mobileClassName:"max-h-(--header-mobile-logo-max-height,32px)"}),n.jsxs("div",{className:"flex items-center gap-4",children:[!t&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex flex-row lg:hidden gap-4",children:[p&&n.jsx(ts,{loggedIn:r,accountLink:u,setShowLoginModal:c}),n.jsx(Qo,{links:i,setShowLoginModal:c})]}),n.jsx(Jo,{links:i,setShowLoginModal:c})]}),n.jsx("div",{className:"lg:hidden shrink-0",children:n.jsx(Pe,{compact:!0})}),n.jsx("div",{className:"hidden lg:block",children:n.jsx(Pe,{})})]})]})})}),n.jsx(dt,{showModal:l,setShowModal:c})]})}function ss(e){const{isParkle:o}=Re();return o?n.jsx(os,{...e}):n.jsx(Vo,{...e})}function is({content:e}){var r;const o=((r=e==null?void 0:e.footer)==null?void 0:r.social)||[],t=o.find(l=>l.socialNetwork===Z.SocialNetwork.FACEBOOK),s=o.find(l=>l.socialNetwork===Z.SocialNetwork.TWITTER),i=o.find(l=>l.socialNetwork===Z.SocialNetwork.INSTAGRAM);return n.jsxs("ul",{className:"list-none flex items-center md:justify-end gap-4",children:[t&&n.jsx("li",{children:n.jsx(Ee,{href:`https://facebook.com/${t.link}`,icon:ft,alt:"Follow us on Facebook"})}),i&&n.jsx("li",{children:n.jsx(Ee,{href:`https://instagram.com/${i.link}`,icon:pt,alt:"Follow us on Instagram"})}),s&&n.jsx("li",{children:n.jsx(Ee,{href:`https://x.com/${s.link}`,icon:mt,alt:"Follow us on X"})})]})}function Ee({href:e,icon:o,alt:t}){return n.jsxs(X,{to:e,className:"inline-block no-underline hover:no-underline active:no-underline visited:no-underline text-white/50 hover:text-white/60 transition-all",children:[n.jsx(V,{icon:o,size:"2x"}),n.jsx("span",{className:"sr-only",children:t})]})}function rs(){const{name:e,channelTheme:{logo:o,footerLogo:t=null,additionalFooterLogo:s=null,additionalFooterLogoAlt:i=null}}=F(),r=t||o;return n.jsxs("div",{className:"space-y-6 shrink-0",children:[n.jsx("div",{children:n.jsx(Ke,{src:r,alt:e,desktopClassName:"max-h-(--footer-desktop-logo-max-height,60px)",mobileClassName:"max-h-(--footer-mobile-logo-max-height,50px)"})}),s&&n.jsx("div",{children:n.jsx("img",{src:s,alt:i||e,className:"inline h-[30px] w-auto"})})]})}function as(){const{code:e}=F(),{POWERED_BY:o}=$(),t=g.useMemo(()=>{const s=new URL("https://airportx.com");return s.searchParams.set("utm_medium","footer"),s.searchParams.set("utm_source",e),s.toString()},[e]);return n.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"group inline-flex items-center gap-1 hover:text-white/60",children:[n.jsx("span",{children:o}),n.jsx("img",{src:"/assets/images/airportx.svg",width:66,height:15,alt:"AirportX logo",className:"opacity-50 group-hover:opacity-60 mt-0.5"})]})}function ls(){var v,h;const e=xt(new Date),{content:o,languages:t}=ne(),{publicName:s}=F(),{language:i}=he(),r=((v=o==null?void 0:o.footer)==null?void 0:v.links)||[],l=r.filter(d=>d.language.languageCode===i),c=r.filter(d=>d.language.languageCode===t.find(a=>
8a.isDefault).code),u=l.length>0?l:c,p=u&&u.length>0,m=(h=o==null?void 0:o.translations.find(d=>d.language.languageCode===i))==null?void 0:h.footerText;return n.jsx("footer",{className:"bg-gray-800 shrink-0 text-white w-full p-8 md:py-16 lg:px-0 print:hidden",children:n.jsxs(re,{children:[n.jsxs("div",{className:"flex flex-col gap-8 items-start content-start justify-between md:flex-row md:items-center",children:[n.jsx(rs,{}),n.jsxs("div",{className:"grid gap-8 w-full md:gap-4 md:items-center md:h-full md:justify-end md:justify-items-end",children:[p&&n.jsx("ul",{className:"list-none flex flex-col md:flex-row md:items-center flex-wrap gap-4 text-sm",children:u.map(d=>n.jsx("li",{children:n.jsx(X,{to:d.link,className:"inline-block no-underline hover:no-underline active:no-underline visited:no-underline text-white hover:text-white opacity-80 hover:opacity-100 transition-all font-normal whitespace-nowrap",children:d.text})},d.text))}),n.jsxs("div",{className:"flex items-center justify-between flex-wrap md:justify-end gap-8",children:[n.jsxs("div",{className:"text-xs text-white/50",children:["© ",e," ",s," • ",n.jsx(as,{})]}),n.jsx(is,{content:o})]})]})]}),m&&n.jsx("div",{className:"text-xs text-white/50 mt-2",children:m})]})})}function cs({content:e}){var u;const{A11Y_FOLLOW_US_ON_FACEBOOK:o,A11Y_FOLLOW_US_ON_INSTAGRAM:t,A11Y_FOLLOW_US_ON_X:s}=$(),i=((u=e==null?void 0:e.footer)==null?void 0:u.social)||[],r=i.find(p=>p.socialNetwork===Z.SocialNetwork.FACEBOOK),l=i.find(p=>p.socialNetwork===Z.SocialNetwork.TWITTER),c=i.find(p=>p.socialNetwork===Z.SocialNetwork.INSTAGRAM);return n.jsxs("ul",{className:"list-none flex items-center md:justify-end gap-4",children:[r&&n.jsx("li",{children:n.jsx(Ce,{href:`https://facebook.com/${r.link}`,icon:ft,alt:o})}),c&&n.jsx("li",{children:n.jsx(Ce,{href:`https://instagram.com/${c.link}`,icon:pt,alt:t})}),l&&n.jsx("li",{children:n.jsx(Ce,{href:`https://x.com/${l.link}`,icon:mt,alt:s})})]})}function Ce({href:e,icon:o,alt:t}){return n.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"inline-block no-underline hover:no-underline active:no-underline visited:no-underline text-parkle-invert/70 hover:text-parkle-invert/90 transition-opacity rounded focus-visible:ring-2 focus-visible:ring-white focus-visible:outline-none",children:[n.jsx(V,{"aria-hidden":"true",icon:o,size:"2x"}),n.jsx("span",{className:"sr-only",children:t})]})}const ot={Vinci:{src:"/assets/images/edi/powered-by-vinci.svg",width:300,height:30,altDictionaryKey:P.A11Y_VINCI_LOGO}},us={"1:edi":[ot.Vinci],"1:eo":[ot.Vinci]};function ds(){const e=$(),{name:o,orgId:t,code:s,channelTheme:{logo:i,footerLogo:r=null}}=F(),l=r||i,c=g.useMemo(()=>us[`${t}:${s}`]||[],[t,s]);return n.jsxs("div",{className:"space-y-6 shrink-0",children:[n.jsx(Lt,{src:l,alt:o,channelName:o,desktopClassName:"max-h-(--footer-desktop-logo-max-height,60px)",mobileClassName:"max-h-(--footer-mobile-logo-max-height,50px)"}),c.map(u=>n.jsx("div",{children:n.jsx("img",{src:u.src,width:u.width,height:u.height,alt:e[u.altDictionaryKey]})},`channel-footer-logo-${u.src}`))]})}function fs(){const{code:e}=F(),{POWERED_BY:o,A11Y_AIRPORTX_LOGO:t,A11Y_VISIT_AIRPORTX_WEBSITE:s}=$(),i=g.useMemo(()=>{const r=new URL("https://airportx.com");return r.searchParams.set("utm_medium","footer"),r.searchParams.set("utm_source",e),r.toString()},[e]);return n.jsxs("a",{href:i,target:"_blank",rel:"noreferrer",className:"group inline-flex items-center gap-1 hover:text-parkle-invert/90 rounded focus-visible:ring-2 focus-visible:ring-white focus-visible:outline-none","aria-label":s,children:[n.jsx("span",{children:o}),n.jsx("img",{src:"/assets/images/airportx.svg",width:66,height:15,alt:t,className:"opacity-70 group-hover:opacity-90 mt-0.5"})]})}function ps(){var v,h;const e=xt(new Date),{content:o,languages:t}=ne(),{publicName:s}=F(),{language:i}=he(),r=((v=o==null?void 0:o.footer)==null?void 0:v.links)||[],l=r.filter(d=>d.language.languageCode===i),c=r.filter(d=>{var a;return d.language.languageCode===((a=t.find(f=>f.isDefault))==null?void 0:a.code)}),u=l.length>0?l:c,p=u&&u.length>0,m=(h=o==null?void 0:o.translations.find(d=>d.language.languageCode===i))==null?void 0:h.footerText;return n.jsx("footer",{className:"bg-parkle-invert shrink-0 text-parkle-invert w-full p-8 md:py-16 lg:px-0 print:hidden",children:n.jsxs(re,{children:[n.jsxs("div",{className:"flex flex-col gap-8 items-start content-start justify-between md:flex-row md:items-center",children:[n.jsx(ds,{}),n.jsxs("div",{className:"grid gap-8 w-full md:gap-4 md:items-center md:h-full md:justify-end md:justify-items-end",children:[p&&n.jsx("ul",{className:"list-none flex flex-col md:flex-row md:items-center flex-wrap gap-4 text-sm",children:u.map(d=>
8n.jsx("li",{children:n.jsx(X,{to:d.link,className:"inline-block no-underline hover:no-underline active:no-underline visited:no-underline text-parkle-invert hover:text-parkle-invert opacity-90 hover:opacity-100 transition-opacity font-normal whitespace-nowrap rounded focus-visible:ring-2 focus-visible:ring-white focus-visible:outline-none",children:d.text})},d.text))}),n.jsxs("div",{className:"flex items-center justify-between flex-wrap md:justify-end gap-8",children:[n.jsxs("div",{className:"text-xs text-parkle-invert/70",children:["© ",e," ",s," • ",n.jsx(fs,{})]}),n.jsx(Pe,{}),n.jsx(cs,{content:o})]})]})]}),m&&n.jsx("div",{className:"text-xs text-parkle-invert/70 mt-2",children:m})]})})}function ms(){const{isParkle:e}=Re();return e?n.jsx(ps,{}):n.jsx(ls,{})}function gs({children:e}){const{isParkle:o}=Re();return n.jsx("main",{id:"main-content",className:z("flex-1 shrink-0",{"shadow-parkle-inset-border-t-primary bg-parkle-primary bg-linear-to-b from-parkle-brand-secondary/40 bg-size-[100%_500px] lg:bg-size-[100%_700px] bg-top-left bg-no-repeat":o}),children:e})}function H(e,{hue:o,saturation:t,lightness:s}){return{[`--${e}-h`]:o,[`--${e}-s`]:`${t}%`,[`--${e}-l`]:`${s}%`,[`--${e}`]:`hsl(
9      var(--${e}-h),
10      var(--${e}-s),
11      var(--${e}-l)
12    )`}}function hs(e,o){return{"--logo":`url('${e.channelTheme.logo}')`,"--body-font-size":`${e.channelTheme.bodyFontSize}px`,"--body-font-family":e.channelTheme.bodyFontFamily,...H("primary",o.primary),...H("secondary",o.secondary),...H("brand",o.brand),...H("header",o.header),...H("header-text",o.headerText),...H("hero",o.hero),...H("hero-accent",o.heroAccent??o.primary),...H("hero-text",o.heroText)}}function xs(e){const{code:o,config:{orgCode:t}}=e,s=z("airportx",`org--${t}`,`channel--${o}`).split(" ");g.useEffect(()=>{const i=e.channelTheme.palette;document.body.classList.add(...s);const r=hs(e,i);return Object.entries(r).forEach(([l,c])=>document.body.style.setProperty(l,c)),()=>{document.body.classList.remove(...s),document.body.style.removeProperty("--logo")}},[s,e])}var Nt={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
13 * @license MIT */(function(e,o){(function(t,s){e.exports=s()})(It,function(){var t={};t.version="0.2.0";var s=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(a){var f,x;for(f in a)x=a[f],x!==void 0&&a.hasOwnProperty(f)&&(s[f]=x);return this},t.status=null,t.set=function(a){var f=t.isStarted();a=i(a,s.minimum,1),t.status=a===1?null:a;var x=t.render(!f),k=x.querySelector(s.barSelector),S=s.speed,N=s.easing;return x.offsetWidth,c(function(y){s.positionUsing===""&&(s.positionUsing=t.getPositioningCSS()),u(k,l(a,S,N)),a===1?(u(x,{transition:"none",opacity:1}),x.offsetWidth,setTimeout(function(){u(x,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){t.remove(),y()},S)},S)):setTimeout(y,S)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var a=function(){setTimeout(function(){t.status&&(t.trickle(),a())},s.trickleSpeed)};return s.trickle&&a(),this},t.done=function(a){return!a&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(a){var f=t.status;return f?(typeof a!="number"&&(a=(1-f)*i(Math.random()*f,.1,.95)),f=i(f+a,0,.994),t.set(f)):t.start()},t.trickle=function(){return t.inc(Math.random()*s.trickleRate)},function(){var a=0,f=0;t.promise=function(x){return!x||x.state()==="resolved"?this:(f===0&&t.start(),a++,f++,x.always(function(){f--,f===0?(a=0,t.done()):t.set((a-f)/a)}),this)}}(),t.render=function(a){if(t.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var f=document.createElement("div");f.id="nprogress",f.innerHTML=s.template;var x=f.querySelector(s.barSelector),k=a?"-100":r(t.status||0),S=document.querySelector(s.parent),N;return u(x,{transition:"all 0 linear",transform:"translate3d("+k+"%,0,0)"}),s.showSpinner||(N=f.querySelector(s.spinnerSelector),N&&d(N)),S!=document.body&&m(S,"nprogress-custom-parent"),S.appendChild(f),f},t.remove=function(){v(document.documentElement,"nprogress-busy"),v(document.querySelector(s.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&d(a)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var a=document.body.style,f="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return f+"Perspective"in a?"translate3d":f+"Transform"in a?"translate":"margin"};function i(a,f,x){return a<f?f:a>x?x:a}function r(a){return(-1+a)*100}function l(a,f,x){var k;return s.positionUsing==="translate3d"?k={transform:"translate3d("+r(a)+"%,0,0)"}:s.positionUsing==="translate"?k={transform:"translate("+r(a)+"%,0)"}:k={"margin-left":r(a)+"%"},k.transition="all "+f+"ms "+x,k}var c=function(){var a=[];function f(){var x=a.shift();x&&x(f)}return function(x){a.push(x),a.length==1&&f()}}(),u=function(){var a=["Webkit","O","Moz","ms"],f={};function x(y){return y.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(w,E){return E.toUpperCase()})}function k(y){var w=document.body.style;if(y in w)return y;for(var E=a.length,D=y.charAt(0).toUpperCase()+y.slice(1),C;E--;)if(C=a[E]+D,C in w)return C;return y}function S(y){return y=x(y),f[y]||(f[y]=k(y))}function N(y,w,E){w=S(w),y.style[w]=E}return function(y,w){var E=arguments,D,C;if(E.length==2)for(D in w)C=w[D],C!==void 0&&w.hasOwnProperty(D)&&N(y,D,C);else N(y,E[1],E[2])}}();
13function p(a,f){var x=typeof a=="string"?a:h(a);return x.indexOf(" "+f+" ")>=0}function m(a,f){var x=h(a),k=x+f;p(x,f)||(a.className=k.substring(1))}function v(a,f){var x=h(a),k;p(a,f)&&(k=x.replace(" "+f+" "," "),a.className=k.substring(1,k.length-1))}function h(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function d(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return t})})(Nt);var vs=Nt.exports;const pe=$t(vs);pe.configure({showSpinner:!1,trickleSpeed:100,easing:"ease",speed:500,minimum:.1});function bs(){const e=Tt();function o(){e.state==="loading"||e.state==="submitting"?pe.start():pe.done()}function t(){pe.done()}return g.useEffect(()=>(o(),()=>t()),[e.state]),null}const ys=[{title:"Chrome",href:"https://www.google.com/chrome",icon:fo},{title:"Firefox",href:"https://www.mozilla.org/firefox",icon:po},{title:"Edge",href:"https://www.microsoft.com/edge",icon:mo},{title:"Opera",href:"https://www.opera.com/download",icon:go}];function ws({channel:e}){const{name:o,channelTheme:t}=e,{logo:s}=t;return n.jsx("html",{lang:"en",children:n.jsxs("body",{className:"airportx",children:[n.jsx(re,{children:n.jsx(gt,{children:n.jsxs(ht,{children:[n.jsx(Ke,{src:s,alt:o}),n.jsx(qn,{level:1,children:o}),n.jsx("p",{children:"Your browser is not supported by this website."}),n.jsx("p",{children:"To access this website we recommend the latest version of one of of the following browsers:"}),n.jsx("ul",{className:"list-none flex gap-4 flex-wrap",children:ys.map(i=>n.jsx("li",{children:n.jsxs("a",{href:i.href,target:"__blank",title:`Download ${i.title} to access this website`,className:"p-4 flex flex-col gap-2 items-center justify-center hover:bg-gray-50 rounded-md",children:[n.jsx(V,{icon:i.icon,className:"opacity-40 w-10"}),i.title]})},i.title))})]})})}),n.jsx(st,{})]})})}Bt.autoAddCss=!1;function Bs({children:e}){const{channel:o,csrfToken:t,language:s,isIe:i,statsig:r}=Rt(),{publicName:l,config:c}=o,{seo:u}=c,{channelTheme:p}=o,{logo:m,favicon:v=""}=p,{groupName:h}=Qn(Wn);return xs(o),i?n.jsx(ws,{channel:o}):n.jsxs("html",{lang:s||"en",children:[n.jsxs("head",{children:[n.jsx("meta",{charSet:"utf-8"}),n.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),n.jsx("link",{rel:"preconnect",href:"https://cdn.optimizely.com"}),n.jsx("link",{rel:"preconnect",href:"https://apis.google.com"}),n.jsx("link",{rel:"preconnect",href:"https://connect.facebook.net"}),v&&n.jsx("link",{rel:"shortcut icon",href:v}),n.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),n.jsx("style",{children:Kt.css()}),u&&u.noIndex&&u.noFollow&&n.jsx("meta",{name:"robots",content:"noindex, nofollow"}),u&&!u.noIndex&&u.noFollow&&n.jsx("meta",{name:"robots",content:"nofollow"}),u&&u.noIndex&&!u.noFollow&&n.jsx("meta",{name:"robots",content:"noindex"}),n.jsx(_t,{}),n.jsx(At,{})]}),n.jsxs("body",{className:"airportx min-h-screen bg-gray-50 print:bg-white font-body text-body",children:[n.jsx(bs,{}),n.jsxs(Ns,{providerData:{config:c,channel:o,statsig:r},children:[n.jsx(js,{}),n.jsxs("div",{id:"app",className:"flex flex-col min-h-screen print:m
13-0",children:[n.jsx(ss,{logo:m,title:l}),n.jsx(Ht,{children:n.jsx(gs,{children:e})}),n.jsx(ms,{})]})]}),n.jsx(wo,{config:c}),n.jsx(Mt,{}),t&&n.jsx("input",{type:"hidden",name:"csrfToken",id:"csrfToken",value:t}),h&&n.jsx("input",{type:"hidden",name:"serverExperimentGroup",value:h}),n.jsx(st,{})]})]})}const Ks=Pt(function(){return n.jsx(Ft,{})}),Gs=Dt(function({error:o}){const t=ge();let s,i;if(Ut(o)){const r=o.status===404;s=r?"Page not found":"Something went wrong",i=r?"The page you tried to load does not exist.":"Something went wrong while trying to load the page."}return n.jsx(Jn,{title:s,children:n.jsx(gt,{children:n.jsxs(ht,{children:[n.jsx("p",{children:i}),n.jsx(at,{icon:Gt,onClick:()=>t("/"),children:"Go home"})]})})})});function js(){const{A11Y_SKIP_TO_CONTENT:e}=$();return n.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-100 focus:bg-white focus:text-black focus:px-4 focus:py-2 focus:rounded-lg focus:shadow-lg focus:text-sm focus:font-bold",children:e})}function ks({children:e,statsig:o}){return n.jsx(en,{stableId:o.stableId,bootstrapData:o.bootstrap,environment:o.environment,serverExperiments:o.experiments,children:n.jsx(Zn,{children:e})})}function Ls({children:e}){return n.jsx(ho,{children:n.jsx(tn,{children:e})})}function Ns({providerData:e,children:o}){const{config:t,channel:s,statsig:i}=e;return n.jsx(qt,{config:t,children:n.jsx(ks,{statsig:i,children:n.jsx(Qt,{children:n.jsx(Wt,{channel:s,children:n.jsx(Zt,{children:n.jsx(Jt,{children:n.jsx(Ls,{children:o})})})})})})})}export{Gs as ErrorBoundary,Bs as Layout,Ks as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.