1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,128995,e=>{"use strict";e.i(744593);var t=e.i(164309),r=e.i(784544),a=e.i(273339),i=e.i(750369),n=e.i(842566),s=e.i(100747),l=e.i(850832),o=e.i(431981),c=e.i(774072),u=e.i(238096),d=e.i(609675),h=e.i(595985),p=e.i(483835),m=e.i(328953),g=e.i(560661),f=e.i(285238),v=e.i(706009),x=e.i(373150),y=e.i(374929),b=["children"];function j(e){var t,r,a,i,n,s,l,o,u,j=e.children,S=(t=function(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,b),r=(0,g.useInstantSearchServerContext)(),i=null==(a=(0,f.useInstantSearchSSRContext)())?void 0:a.initialResults,n=(0,m.useIndexContext)(),s=(0,x.useStableValue)(t),o=(l=(0,c.useMemo)(function(){return(0,h.default)(s)},[s])).getHelper(),u=(0,p.useForceUpdate)(),(0,v.useIsomorphicLayoutEffect)(function(){u()},[o,u]),(0,y.useWidget)({widget:l,parentIndex:n,props:s,shouldSsr:!!(r||i)}),l);return null===S.getHelper()?null:c.default.createElement(d.IndexContext.Provider,{value:S},j)}var S=e.i(830441),w=e.i(791240),C=e.i(115923),N=e.i(307121);let T=(0,o.liteClient)("5LKP67PRY2","267892693e01cd8dd6369d966afdceb4"),E="amaSitesSearch";function I(e){let{indexName:t,onResults:r}=e,{results:a}=(0,w.useHits)();return(0,c.useEffect)(()=>{r(t,a)},[a,t,r]),null}function O(e){let{onReady:t}=e,{refine:r}=(0,C.useSearchBox)(),a=(0,c.useRef)(r);a.current=r;let i=(0,c.useCallback)(e=>a.current(e),[]);return(0,c.useEffect)(()=>{t(i)},[t,i]),null}function P(e){var i,s;let{clearData:o,inputValue:d,hasSearched:h,storedSets:p,setStoredSets:m,loading:g,setLoading:f,content:v,setContent:x,results:y,setResults:b,hasResultsIncoming:S,setHasResultsIncoming:w,showContent:T,setShowContent:O,siteConfig:P}=e,{refine:k}=(0,C.useSearchBox)(),R=(0,c.useRef)(k);R.current=k;let A=(0,c.useCallback)(e=>R.current(e),[]);(0,c.useEffect)(()=>{o&&A("")},[o,A]);let H=(0,c.useCallback)((e,a)=>{b(i=>(0,r._)((0,t._)({},i),{[e]:{hits:((null==a?void 0:a.hits)||[]).map(e=>e.cardType?e:(0,r._)((0,t._)({},e),{cardType:"others"})),nbHits:(null==a?void 0:a.nbHits)||0}}))},[b]),D=(0,c.useCallback)(()=>{if(!h)return;let e=Object.values(y).filter(e=>e.nbHits>0&&e.hits.length>0).sort((e,t)=>t.nbHits-e.nbHits).flatMap(e=>e.hits).sort((e,t)=>{if("itinerary"===e.cardType&&"itinerary"===t.cardType){let r=!e.themes||0===e.themes.length,a=!t.themes||0===t.themes.length;if(r&&!a)return -1;if(!r&&a)return 1}return 0}).slice(0,4);if(e.length>0){let t=e.map((e,t)=>(0,a.jsx)("div",{className:"pb-2",role:"listitem",children:(0,a.jsx)(n.SearchCard,{description:(null==e?void 0:e.searchCardDescription)||"",cardMedia:{media:e.searchCardImage||P.noImageAvailable,altText:e.searchCardTitle||P.defaultGlobalAltText},slug:e.slug,title:(null==e?void 0:e.searchCardTitle)||""},"".concat(e.cardType||"hit","-").concat(e.objectID))},t));try{let t=e.map(e=>({slug:e.slug,title:e.searchCardTitle||"",description:e.searchCardDescription||"",image:e.searchCardImage||P.noImageAvailable,cardType:e.cardType}));(0,N.addResultsSet)(d,t),m((0,N.getStoredResults)())}catch(e){}w(!0),f(!1),O(!1),setTimeout(()=>{x(t.length?t:null),O(!0),w(!1)},350)}else f(!1),x(null)},[h,y,w,f,O,x,d,m,P.defaultGlobalAltText,P.noImageAvailable]);(0,c.useEffect)(()=>{D()},[y,D]);let L=p.length>0&&!h,F=h&&d.length>0?"Top Results":"Previously searched";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{id:"site-search-results",role:"region","aria-label":"Search results","aria-live":"polite","aria-busy":g,className:"mt-6",tabIndex:-1,children:[g&&!S&&(0,a.jsx)(l.SiteSearchSkeleton,{}),!g&&F&&(!h||T)&&(0,a.jsx)("span",{className:"pt-padding-06 title-06 text-[var(--text-on-light-tertiary,rgba(0,0,0,0.50))]",children:F}),(h&&T||L)&&(0,a.jsx)("div",{className:"pt-padding-05",role:"list",children:h?v:(0,a.jsx)("div",{children:null==(s=p[0])||null==(i=s.hits)?void 0:i.slice(0,4).map((e,t)=>(0,a.jsx)("div",{className:"pb-2",role:"listitem",children:(0,a.jsx)(n.SearchCard,{description:e.description,cardMedia:{media:e.image,altText:e.title||""},slug:e.slug,title:e.title},"".concat(e.cardType||"stored","-").concat(e.slug,"-").concat(t))},"".concat(e.slug,"-").concat(t)))})})]}),h&&(0,a.jsx)("div",{style:{display:"none"}
1,children:(0,a.jsxs)(j,{indexName:E,children:[(0,a.jsx)(u.Configure,{hitsPerPage:300}),(0,a.jsx)(I,{indexName:E,onResults:H})]})})]})}e.s(["default",0,function(e){let{clearData:t,onStateChange:r,onSubmitSearch:n,siteConfig:l}=e,o=(0,i.useMediaQuery)("(max-width: 767px)"),[u,d]=(0,c.useState)({}),[h,p]=(0,c.useState)(null),[m,g]=(0,c.useState)(!1),[f,v]=(0,c.useState)(""),[x,y]=(0,c.useState)(!1),[b,j]=(0,c.useState)((0,N.getStoredResults)()),[w,C]=(0,c.useState)(!1),[I,k]=(0,c.useState)(!1),R=(0,c.useRef)(null),A=(0,c.useRef)(null),H=(0,c.useRef)(!1),D=(0,c.useRef)(null),L=(0,c.useRef)(null);(0,c.useEffect)(()=>()=>{L.current&&clearTimeout(L.current)},[]);let F=()=>{if(H.current)return;let e=()=>{var e;return null==(e=R.current)?void 0:e.focus()};requestAnimationFrame(()=>{requestAnimationFrame(()=>{e(),setTimeout(e,50),setTimeout(e,150),setTimeout(e,300),setTimeout(()=>{let t,r;e(),t=0,r=setInterval(()=>{if(document.activeElement===R.current){H.current=!0,clearInterval(r);return}t>40?clearInterval(r):(e(),t++)},25)},500)})}),D.current||(D.current=setTimeout(()=>{H.current=!0,D.current&&(clearTimeout(D.current),D.current=null)},700))};(0,c.useEffect)(()=>{F()},[]),(0,c.useEffect)(()=>{let e=A.current;if(!e)return;let t=null;try{(t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&F()},{threshold:.01})).observe(e)}catch(t){let e=setTimeout(()=>{var e;return null==(e=R.current)?void 0:e.focus()},0);return()=>clearTimeout(e)}return()=>{null==t||t.disconnect()}},[]),(0,c.useEffect)(()=>{let e=()=>{A.current&&null!==A.current.offsetParent&&document.activeElement!==R.current&&F()},t=()=>{A.current&&null!==A.current.offsetParent&&document.activeElement!==R.current&&setTimeout(F,0)},r=A.current,a=()=>F(),i=()=>F();return window.addEventListener("pointerup",e,!0),window.addEventListener("click",t,!0),null==r||r.addEventListener("transitionend",a),null==r||r.addEventListener("animationend",i),()=>{window.removeEventListener("pointerup",e,!0),window.removeEventListener("click",t,!0),null==r||r.removeEventListener("transitionend",a),null==r||r.removeEventListener("animationend",i)}},[]),(0,c.useEffect)(()=>{let e=e=>{let t=A.current;if(!t)return;let r=e.target;r&&t.contains(r)&&r!==R.current&&setTimeout(F,0)};return document.addEventListener("focusin",e,!0),()=>document.removeEventListener("focusin",e,!0)},[]);let M=(0,c.useRef)(null),W=async e=>{let t=(0,N.getHistory)();if(e||x&&f!==t[0]){var r;g(!0),await (null==(r=M.current)?void 0:r.call(M,e||f)),sessionStorage.setItem("siteSearchFilter",e||f),y(!0),(0,N.addToHistory)(e||f)}},U=async()=>{0!==f.length&&(L.current&&(clearTimeout(L.current),L.current=null),await W(f),null==n||n())};(0,c.useEffect)(()=>{j((0,N.getStoredResults)())},[]),(0,c.useEffect)(()=>{x||(d({}),p(null),g(!1))},[x]),(0,c.useEffect)(()=>{null==r||r({hasResults:!!h||I,hasHistory:b.length>0,hasSearched:x,hasInput:f.length>0,term:f})},[h,I,b,x,f,r]),(0,c.useEffect)(()=>{t&&(v(""),y(!1),d({}),p(null),C(!1),g(!1),sessionStorage.setItem("siteSearchFilter",""),j((0,N.getStoredResults)()))},[t]);let _=!f&&0===b.length&&!x;return(0,a.jsxs)(S.InstantSearch,{insights:!0,indexName:E,searchClient:T,children:[(0,a.jsx)(O,{onReady:e=>M.current=e}),(0,a.jsx)("div",{className:"z-sticky relative w-full bg-white md:sticky md:top-0",children:(0,a.jsxs)("div",{role:"search",ref:A,className:"".concat(_?"pb-0":"pb-padding-02"," z-sticky relative w-full max-w-[83%] border-t border-white bg-white px-4 pt-4 md:sticky md:-top-px md:max-w-[91%] md:px-0 md:pt-0"),children:[(0,a.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 top-[-2px] h-[2px] bg-white"}),(0,a.jsx)("input",{ref:R,className:"focus:border-primary-02 w-full rounded border border-gray-300 p-3 pr-12 text-base focus:ring-[var(--color-primary-02)]",placeholder:"Start your search","aria-label":"Site search","aria-controls":"site-search-results","data-autofocus":"true",autoFocus:!0,t
1ype:"text",value:f,onChange:e=>{let t=e.target.value;v(t),L.current&&clearTimeout(L.current),L.current=setTimeout(()=>{L.current=null,W(t).catch(e=>{console.error("Site search failed:",e)})},350*(t.length>0))},onKeyDown:e=>{"Enter"===e.key&&U()}}),f.length>0&&(0,a.jsx)("button",{"aria-label":"Clear search term","data-slot":"site-search-clear","data-cta":"Clear search term",onClick:()=>{var e;v(""),null==(e=R.current)||e.focus()},className:"interactive-02-regular right-19 absolute top-1/2 -translate-y-1/2 rounded p-2 text-[var(--text-on-light-primary,#121212)] underline decoration-solid decoration-[1.4px] underline-offset-[1.68px] [text-decoration-skip-ink:auto] focus:outline-none focus:ring-2 focus:ring-[var(--color-primary-02)] focus:ring-offset-2 md:right-14",children:"Clear"}),f.length>0&&(0,a.jsx)("button",{"aria-label":"Search",className:"bg-primary-02 absolute right-6 mt-1 size-9 cursor-pointer rounded p-3 text-white focus:outline-none focus:ring-2 focus:ring-[var(--color-primary-02)] focus:ring-offset-2 md:right-2 md:mt-2",type:"button","data-slot":"site-search-submit","data-cta":"Search",onClick:()=>void U(),children:(0,a.jsx)(s.default,{height:12,id:"search",width:12,"aria-hidden":"true",focusable:"false"})})]})}),(0,a.jsx)("div",{className:o?"px-4":void 0,children:(0,a.jsx)(P,{clearData:t,inputValue:f,hasSearched:x,storedSets:b,setStoredSets:j,loading:m,setLoading:g,content:h,setContent:p,results:u,setResults:d,hasResultsIncoming:I,setHasResultsIncoming:k,showContent:w,setShowContent:C,siteConfig:l})})]})}],128995)},522354,e=>{"use strict";var t=e.i(273339),r=e.i(750369),a=e.i(774072),i=e.i(705598),n=e.i(737085),s=e.i(477088),l=e.i(888699),o=e.i(307121),c=e.i(128995);e.s(["default",0,e=>{let{routerUpdate:u,setDialogOpen:d,siteConfig:h}=e,p=(0,r.useMediaQuery)("(max-width: 767px)"),[m,g]=(0,a.useState)(!1),f=(0,a.useRef)(null),v=(0,a.useCallback)(e=>{f.current=e,e&&(e.scrollTop=0)},[]),[x,y]=(0,a.useState)({hasResults:!1,hasHistory:!1,hasSearched:!1,hasInput:!1,term:""}),b=()=>{let e="";try{if(e=sessionStorage.getItem("siteSearchFilter")||x.term||"",!x.hasResults&&!x.hasInput){var t;let r=(0,o.getStoredResults)();e=e||(null==r||null==(t=r[0])?void 0:t.term)||""}e&&sessionStorage.setItem("siteSearchFilter",e),window.dispatchEvent(new CustomEvent("site-search:apply",{detail:{term:e}}))}catch(e){}u("/search"),d(!1)};return(0,t.jsxs)(s.DialogContentAnimated,{disableEntryAnimation:p,onOpenAutoFocus:e=>e.preventDefault(),"aria-label":"Search results","aria-modal":"true",role:"dialog",tooltipVariant:"dark",variant:"secondaryDark",className:(0,i.cn)("md:component-wrapper items-centre !rounded-radius-04 ! !md:w-[720px] search-dialog-content","flex w-full flex-col",p?"fixed inset-0 h-dvh w-screen bg-white !left-0 !translate-x-0 !max-w-none !rounded-none !border-0 !shadow-none !p-0 min-h-dvh":"inset-y-0 my-auto !max-w-[720px] p-2","overflow-hidden rounded-none border-none transition-[height] duration-200","ease-in-out [will-change:height]",!p&&"max-h-[calc(100dvh-4rem)]",!p&&(x.hasSearched&&x.hasResults||x.hasHistory)?"h-[519px]":p?"":"h-[66px]"),children:[(0,t.jsx)("div",{ref:v,"data-slot":"site-search-scroll",className:(0,i.cn)("scroll-hidden overflow-y-auto",x.hasResults||x.hasHistory?"flex-1":"flex-none"),onClickCapture:e=>{e.target instanceof HTMLElement&&e.target.closest('[data-slot="search-card"]')&&d(!1)},onFocus:e=>{e.target instanceof HTMLElement&&"true"===e.target.dataset.autofocus&&f.current&&(f.current.scrollTop=0)},children:(0,t.jsx)(c.default,{clearData:m,onStateChange:y,onSubmitSearch:b,siteConfig:h})}),(x.hasResults||x.hasHistory)&&(0,t.jsxs)("div",{className:"sticky bottom-0 flex items-center border-t bg-white p-2",children:[(0,t.jsx)("div",{className:"flex-1",children:x.hasHistory&&(0,t.jsx)(n.Button,{type:"button",variant:"tertiary",size:"sm","aria-label":"Clear search history","data-slot":"site-search-clear-history","data-cta":"Clear search history",onClick:()=>{(0,o.clearHistory)(),g(!0),setTimeout(()=>g(!1),100)},children:"Clear All"})}),(0,t.jsx)("div",{className:"flex flex-1 justify-end",children:(x.hasResults||x.hasHistory)&&(0,t.jsx)(l.AnimatedTextButton,{caption:"View All Results",className:"rounded focus:outline-none focus:ring-2 focus:ring-[var(--color-primary-02)] focu
1s:ring-offset-2",variant:"primary",onClick:b})})]})]})}])},759256,e=>{"use strict";e.i(744593);var t=e.i(273339);e.i(563995);var r=e.i(53232),a=e.i(800332),i=e.i(888699),n=e.i(100747),s=e.i(522354),l=e.i(53839),o=e.i(830441),c=e.i(449347),u=e.i(36170),d=e.i(84148),h=e.i(178962),p=e.i(248939),m=e.i(726821),g=e.i(784386),f=e.i(431510),v=e.i(920247);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=["page"],b=["clickAnalytics","userToken"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t,r){var a;return(a=function(e,t){if("object"!=x(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=x(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==x(a)?a:String(a))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return N(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return N(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function T(e,t){if(null==e)return{};var r,a,i=function(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var E=(0,d.createDocumentationMessageGenerator)({name:"infinite-hits",connector:!0});function I(e){var t=e||{};return t.page,T(t,y)}function O(e){var t=e||{};return t.clickAnalytics,t.userToken,T(t,b)}let P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.noop;return(0,u.checkRendering)(e,E()),function(r){var a,i,n,s,l,o,u=r||{},d=u.escapeHTML,g=void 0===d||d,x=u.transformItems,y=void 0===x?function(e){return e}:x,b=u.cache,j=void 0===b?(a=null,i=null,{read:function(e){var t=e.state;return(0,h.isEqual)(i,I(t))?a:null},write:function(e){var t=e.state,r=e.hits;i=I(t),a=r}}):b,N=function(e,t){var r=e.page,a=void 0===r?0:r,i=Object.keys(t).map(Number);return 0===i.length?a:Math.min.apply(Math,[a].concat(C(i)))},T=function(e,t){var r=e.page,a=void 0===r?0:r,i=Object.keys(t).map(Number);return 0===i.length?a:Math.max.apply(Math,[a].concat(C(i)))};return{$$type:"ais.infiniteHits",init:function(t){e(S(S({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=t.instantSearchInstance,a=this.getWidgetRenderState(t);e(S(S({},a),{},{instantSearchInstance:r}),!1),l("view:internal",a.currentPageHits)},getRenderState:function(e,t){return S(S({},e),{},{infiniteHits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,a=e.helper,i=e.parent,u=e.state,d=e.instantSearchInstance,h=[],x=i.getPreviousState()||u,b=j.read({state:O(x)})||{},w=null==t||null==(C=t.renderingContent)||null==(E=C.widgets)||null==(I=E.banners)?void 0:I[0];if(n||(n=function(){a.overrideStateWithoutTriggeringChangeEvent(S(S({},a.state),{},{page:N(a.state,j.read({state:O(a.state)})||{})-1})).searchWithoutTriggeringOnStateChange()},s=function(){a.setPage(T(a.state,j.read({state:O(a.state)})||{})+1).search()}),l||(l=(0,f.createSendEventForHits)({instantSearchInstance:d,helper:a,widgetType:this.$$type}
1),o=(0,f.createBindEventForHits)({helper:a,widgetType:this.$$type,instantSearchInstance:d})),t){var C,E,I,P,k,R,A=x.page,H=void 0===A?0:A;g&&t.hits.length>0&&(t.hits=(0,c.escapeHits)(t.hits));var D=(0,p.addAbsolutePosition)(t.hits,t.page,t.hitsPerPage),L=y((0,m.addQueryID)(D,t.queryID),{results:t}),F=!1;!function e(t,r){r(t),t.getWidgets().forEach(function(t){(0,v.isIndexWidget)(t)&&e(t,r)})}(d.mainIndex,function(e){!F&&e.getWidgets().some(function(e){return"ais.dynamicWidgets"===e.$$type})&&(F=!0)});var M=!(null!=(k=x.disjunctiveFacets)&&k.length)&&!(x.facets||[]).filter(function(e){return"*"!==e}).length&&!(null!=(R=x.hierarchicalFacets)&&R.length);void 0!==b[H]||t.__isArtificial||"idle"!==d.status||F&&M||(b[H]=L,j.write({state:O(x),hits:b})),h=L,P=0===N(x,b)}else P=void 0===x.page||0===N(x,b);var W=Object.keys(b).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(b[t])},[]),U=!t||t.nbPages<=T(x,b)+1;return{hits:W,items:W,currentPageHits:h,sendEvent:l,bindEvent:o,banner:w,results:t||void 0,showPrevious:n,showMore:s,isFirstPage:P,isLastPage:U,widgetParams:r}},dispose:function(e){var r=e.state;t();var a=r.setQueryParameter("page",void 0);return g?a.setQueryParameters(Object.keys(c.TAG_PLACEHOLDER).reduce(function(e,t){return S(S({},e),{},w({},t,void 0))},{})):a},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?S(S({},e),{},{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,a=e;g&&(a=e.setQueryParameters(c.TAG_PLACEHOLDER));var i=r.page?r.page-1:0;return a.setQueryParameter("page",i)}}}};var k=e.i(862853),R=e.i(115923),A=e.i(393219),H=e.i(842566),D=e.i(774072);let L=(0,l.algoliasearch)("5LKP67PRY2","267892693e01cd8dd6369d966afdceb4"),F=["itinerary","ship","river","country","interest","offers","other"];function M(){let{query:e,refine:r}=(0,R.useSearchBox)();return(0,t.jsx)("input",{type:"search",value:e,onChange:e=>r(e.currentTarget.value),placeholder:"Search...",className:"w-full rounded border border-gray-300 p-2"})}function W(e){let{selectedFacet:r,setSelectedFacet:a}=e;return(0,t.jsx)("div",{className:"mb-4 flex gap-4",children:F.map(e=>(0,t.jsx)("button",{"data-slot":"site-search-facet","data-cta":e,onClick:()=>a(e),className:"rounded px-4 py-2 ".concat(r===e?"bg-blue-600 text-white":"bg-gray-200 text-gray-700"),children:e.charAt(0).toUpperCase()+e.slice(1)},e))})}function U(e){let{selectedFacet:r}=e,{hits:a,showMore:i,isLastPage:n}=(0,k.useConnector)(P,void 0,void 0),[s,l]=(0,D.useState)([]),[o,c]=(0,D.useState)([]);return(0,D.useEffect)(()=>{let e=[...a.filter(e=>"itinerary"===e.cardType)].sort((e,t)=>{let r=!e.themes||0===e.themes.length,a=!t.themes||0===t.themes.length;return r&&!a?-1:!r&&a?1:0});"itinerary"===r?(l(e.slice(0,3)),c(e.slice(3))):(l([]),c(a.filter(e=>e.cardType===r)))},[a,r]),(0,t.jsxs)("div",{children:[s.length>0&&(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"mb-2 text-lg font-bold",children:"Top Itineraries"}),s.map(e=>(0,t.jsx)(H.SearchCard,{description:e.searchCardDescription,cardMedia:void 0,slug:e.slug,title:e.searchCardTitle,variant:"searchLists",duration:(0,A.resolveDisplayNights)(e.duration),countries:e.countries,ships:e.ships,themes:e.themes,prices:e.prices,type:e.cardType,categoryType:e.cardType},e.objectID))]}),(0,t.jsx)("div",{children:o.map(e=>(0,t.jsx)(H.SearchCard,{description:e.searchCardDescription,cardMedia:void 0,slug:e.slug,title:e.searchCardTitle,variant:"searchLists",duration:(0,A.resolveDisplayNights)(e.duration),countries:e.countries,ships:e.ships,themes:e.themes,prices:e.prices,type:e.cardType,categoryType:e.cardType},e.objectID))}),!n&&(0,t.jsx)("div",{className:"mt-6 text-center",children:(0,t.jsx)("button",{onClick:i,"data-slot":"site-search-load-more","data-cta":"Load more results",className:"rounded bg-blue-600 px-4 py-2 text-white hover:bg-blue-700",children:"Load More Data"})})]})}function _(){let[e,r]=(0,D.useState)("itinerary");return(0,t.jsx)(o.InstantSearch,{insights:!0,searchClient:L,indexName:"amaSitesSearch",children:(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)(M,{}),(0,t.jsx)(W,{selectedFacet:e,setSelectedFacet:r}),(0,t.jsx)(U,{selectedFacet:e})]})})}var z=e.i(442773),B=e.i(487046),$=e.i(609488),Q=e.i(477088),q=e.i(893549),G=e.i(240283),K=e.i(393345);let V={title:"Let us help you choose the right cruise",description:"Not sure where to start? Our river cruise experts are here to help you find the perfect journey, tailored to your interests and travel dreams.",buttons:[{label:"Request a Quote",variant:"primary"},{label:"Contact Us",variant:"secondary",url:"/help/contact-us"}],Image:{image:"",altText:""}};function Y(e){let{title:r="Title",description:a="Description lorem ipsum dolor sit amet consectetur. Risus tristique pellentesqueâ¦",slug:i="/not-found",imageUrl:n="https://cdn.builder.io/api/v1/image/assets%2Feddad68ed57b4f8fb3d8a9411b32c38a%2F3369c87fb04748bcac5"}=e,s=(0,G.useAmaRouterPush)();return(0,t.jsxs)("div",{className:"rounded-radius-03 gap-padding-03 bg-section-primary p-padding-01 hover:border-card-interactive-background-selected flex h-[80px] w-full max-w-[18.75rem] flex-row overflow-hidden transition-shadow hover:border hover:shadow-md lg:max-w-full lg:cursor-pointer lg:overflow-hidden",role:"listitem",onClick:()=>{s(i)},children:[(0,t.jsx)("div",{className:"rounded-l-radius-03 h-full w-[80px] shrink-0 bg-black",children:(0,t.jsx)(B.default,{alt:"Featured image for ".concat(r),className:"size-full object-fill",src:n})}),(0,t.jsxs)("div",{className:"gap-padding-03 flex min-w-0 flex-1 flex-col gap-[12px] overflow-hidden",children:[(0,t.jsx)("div",{className:"interactive-01-medium",children:r}),(0,t.jsx)($.CardDescription,{className:"interactive-03-regular text-text-light-tertiary line-clamp-2",children:(0,t.jsx)("span",{children:a})})]})]})}e.s(["default",0,function(){let e=(0,G.useAmaRouterPush)(),l=(0,q.useSiteConfig)(),[o,c]=(0,D.useState)(!1),u=(0,G.useAmaRouterPush)(),[d,h]=(0,D.useState)(!1),[p,m]=(0,D.useState)([]),[g,f]=(0,D.useState)(!0),[v,x]=(0,D.useState)(null);(0,D.useEffect)(()=>{document.title="Page Not Found | AmaWaterways"},[]),(0,D.useEffect)(()=>{let e=window;e.dataLayer=e.dataLayer||[];let t={event:"page_not_found",statusCode:404,path:window.location.pathname,page:(0,a.getSecureCurrentUrl)(),search:window.location.search||void 0,pageTitle:document.title||void 0,referrer:document.referrer||void 0};e.dataLayer.push(t)},[]);let y=e=>{c(e)};return(0,D.useEffect)(()=>{(async()=>{try{f(!0);let e=await (0,r.findAll)({model:"featured-pages",limit:4});m(e||[])}catch(e){console.error("Error fetching featured pages:",e),x("Failed to load featured pages")}finally{f(!1)}})()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"aria-labelledby":"error-heading",className:"my-margin-y-03 px-padding-04 lg:my-margin-y-03 lg:pb-margin-y-04 lg:padding-05 lg:px-margin-x-01 flex flex-col lg:py-0",role:"main",children:[(0,t.jsxs)("div",{className:"py-padding-07 lg:pt-margin-y-04 lg:pb-padding-07",children:[(0,t.jsxs)("div",{className:"mb-padding-07 lg:mb-padding-07 gap-padding-05 flex flex-col",children:[" ",(0,t.jsx)(z.HighlightTag,{className:"py-padding-02",role:"status",variant:"generic",children:"Error Code 404"}),(0,t.jsx)("div",{className:"title-01",id:"error-heading",children:"Oops! This page took the scenic route"}),(0,t.jsx)("div",{className:"title-05",children:"Here's how to get you back on route to your dream destination."})]}),(0,t.jsxs)("div",{className:"mb-padding-04 lg:mb-padding-07",children:[(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsxs)("div",{className:"relative w-full max-w-[21.5625rem] lg:max-w-[21.875rem]",children:[(0,t.jsx)("input",{"aria-label":"Search the site",className:" py-padding-02 pl-padding-04 pr-padding-02 lg:py-
1padding-02 lg:pl-padding-04 text-text-light-secondary interactive-02-medium-capsize lg:pr-padding-02 input-font min-h-[3.375rem] w-full rounded border text-sm md:text-base lg:min-h-[3.4rem] lg:max-w-full ",id:"site-search",placeholder:"You can search what you need",type:"text",onClick:()=>c(!0),onKeyDown:e=>{"Enter"===e.key&&c(!0)}}),(0,t.jsx)("button",{"aria-label":"Search",className:" bg-primary-02 absolute right-3 top-1/2 hidden size-9 -translate-y-1/2 cursor-pointer rounded p-3 text-white lg:flex ",tabIndex:0,type:"button",onClick:()=>c(!0),children:(0,t.jsx)(n.default,{height:12,id:"search",width:12})}),(0,t.jsx)("button",{"aria-label":"Search",className:" bg-primary-02 absolute right-3 top-1/2 flex size-9 -translate-y-1/2 cursor-pointer items-center justify-center rounded p-3 text-white lg:hidden ",tabIndex:0,type:"button",onClick:()=>c(!0),children:(0,t.jsx)(n.default,{height:12,id:"search",width:12})})]})}),(0,t.jsxs)("div",{className:"relative",id:"dialog-wrapper",children:[(0,t.jsx)(Q.Dialog,{open:o,onOpenChange:y,children:(0,t.jsx)(s.default,{routerUpdate:()=>{u("/search"),c(!1)},setDialogOpen:y,siteConfig:l})}),(0,t.jsx)(Q.Dialog,{open:d,onOpenChange:e=>{h(e)},children:(0,t.jsx)(Q.DialogContentAnimated,{"aria-label":"Search results","aria-modal":"true",className:"md:component-wrapper items-centre gap-padding-07 !rounded-radius-04 search-dialog-content size-full !max-w-full flex-col overflow-visible rounded-none border-none p-2",role:"dialog",tooltipVariant:"dark",variant:"secondaryDark",children:(0,t.jsx)("div",{className:"scroll-hidden flex-1 overflow-y-auto bg-[#E9F0F4]",children:(0,t.jsx)(_,{})})})})]})]}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(i.AnimatedTextButton,{"aria-label":"Go to Homepage",caption:(0,t.jsxs)("span",{className:"gap-padding-02 flex items-start",children:[(0,t.jsx)(n.default,{"aria-hidden":"true",className:"mr-2",height:16,id:"arrow-left",width:16}),"Go to Homepage"]}),className:"rounded-radius-03 hover:border-primary-02 group relative overflow-hidden border",variant:"secondary",onClick:()=>e("/")})})]}),(0,t.jsx)("div",{className:"mb-padding-05 lg:mb-0"}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-[24px] border-t pt-[24px]",children:[(0,t.jsxs)("div",{className:"gap-padding-04 flex flex-col",children:[(0,t.jsx)("div",{className:"title-05-medium text-text-light-primary",children:"Need Inspiration?"}),(0,t.jsx)("div",{className:"body-02-regular text-text-light-tertiary",children:"Try these popular pages"})]}),g?(0,t.jsx)("div",{"aria-live":"polite",className:"py-6 text-center",children:"Loading featured pages..."}):v?(0,t.jsx)("div",{"aria-live":"assertive",className:"text-destructive py-6 text-center",role:"alert",children:v}):(0,t.jsx)("div",{"aria-label":"Featured pages",className:"grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",role:"list",children:p.map(e=>{var r,a,i,n,s;return(0,t.jsx)(Y,{description:null==(r=e.data)?void 0:r.description,imageUrl:null==(i=e.data)||null==(a=i.featuredImage)?void 0:a.image,slug:null==(n=e.data)?void 0:n.slug,title:null==(s=e.data)?void 0:s.title},e.id)})})]})]}),(0,t.jsx)(K.default,{calloutContent:V})]})}],759256)}]); 2 3//# sourceMappingURL=3v198bq4s5u_b.js.map
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.