1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b7763671-b489-497f-8350-2d938b3680c4",e._sentryDebugIdIdentifier="sentry-dbid-b7763671-b489-497f-8350-2d938b3680c4")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1679],{11679:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>b});var r=l(95155),s=l(12115),d=l(93268),a=l(34540),i=l(29300),n=l.n(i),o=l(61432),c=l(17652),w=l(61797);function m(e){let t=(0,a.wA)();return(0,r.jsx)("div",{className:(0,w.cx)({"break-word w-[100%] max-w-[100%] cursor-pointer whitespace-normal text-stone-700 wd:px-2 wd:text-md wd:hover:bg-[#F3F3F3] wd:hover:text-primary wd:hover:underline wm:px-1 wm:pl-[14px] wm:pr-[14px] wm:text-lg wm:font-medium wm:active:bg-primary-lightened wm:active:text-primary":e.searchWizard,"break-word dl:hover:bg-[#F3F3F3] w-[100%] max-w-[100%] cursor-pointer whitespace-normal text-stone-700 wdl:px-2 wdl:hover:text-primary wdl:hover:underline wml:px-1 wml:pl-[14px] wml:pr-[14px] wml:active:bg-primary-lightened wml:active:text-primary":!e.searchWizard,"wdl:text-sm wml:text-lg":!e.searchWizard,"wd:bg-[#F3F3F3] wd:text-primary wd:underline":e.highlighted&&e.searchWizard&&!e.highlightWithIndex,"wdl:bg-[#F3F3F3] wdl:text-primary wdl:underline":e.highlighted&&!e.searchWizard&&!e.highlightWithIndex,"py-[3px] wdl:py-[3px] wml:py-[5px]":!e.searchWizard,"py-[3px] wd:py-[3px] wm:py-[5px]":e.searchWizard}),onClick:function(){t(e.setSelectedItems([...e.selectedItems,{type:e.type,value:e.value,label:e.label,text:e.text}]))},children:e.text})}function p(e,t){return e?e.filter(e=>!t.find(t=>e.value===t.value&&e.type===t.type)):[]}function x(e){let t=p(e.results,e.selectedItems),l=(0,c.c3)("Wizard");return 0===t.length?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,w.cx)("font-bold",{"text-stone-700 wd:px-2 wd:text-sm wm:ml-[14px] wm:mr-[14px]":e.searchWizard,"text-stone-700 wdl:px-2 wdl:text-sm wml:ml-[14px] wml:mr-[14px] wml:text-lg":!e.searchWizard,"wm:text-lg":e.searchWizard,"wml:text-lg":!e.searchWizard,"mt-1":e.totalStartIndex>0}),children:l(e.type)}),t.map((t,l)=>(0,r.jsx)(m,{highlighted:e.totalStartIndex+l===e.highlightedSearchResultIndex,...t,selectedItems:e.selectedItems,setSelectedItems:e.setSelectedItems,searchWizard:e.searchWizard,highlightWithIndex:e.highlightWithIndex},t.value+t.type))]})}function h(e){let t=(0,a.wA)();return(0,r.jsxs)("div",{className:"relative mb-2 mr-2 inline-block cursor-pointer truncate rounded-md bg-primary-lightened px-2 py-1 pl-[24px] pr-3 font-medium text-primary wd:text-sm wm:mb-2 wm:max-w-full wm:text-md",onClick:()=>{var l;return l=e.value,void t(e.setSelectedItems(e.selectedItems.filter(e=>e.value!==l)))},children:[(0,r.jsx)("div",{className:"absolute -bottom-[50%] -left-[10px] -top-[19%] flex h-[44px] w-[44px] flex-row items-center justify-center",children:(0,r.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",className:"fill-primary",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.90381 11.0962C0.68482 9.87721 0 8.22391 0 6.5C0 4.77609 0.68482 3.12279 1.90381 1.90381C3.12279 0.68482 4.77609 0 6.5 0C8.22391 0 9.87721 0.68482 11.0962 1.90381C12.3152 3.12279 13 4.77609 13 6.5C13 8.22391 12.3152 9.87721 11.0962 11.0962C9.87721 12.3152 8.22391 13 6.5 13C4.77609 13 3.12279 12.3152 1.90381 11.0962ZM8.84048 4.15601C9.05213 4.36505 9.05332 4.70515 8.84314 4.91565L7.26116 6.5L8.84314 8.08435C9.05332 8.29485 9.05213 8.63496 8.84048 8.84399C8.62882 9.05303 8.28686 9.05185 8.07667 8.84135L6.5 7.26231L4.92333 8.84135C4.71315 9.05185 4.37118 9.05303 4.15952 8.84399C3.94787 8.63496 3.94668 8.29485 4.15686 8.08435L5.73884 6.5L4.15686 4.91565C3.94668 4.70515 3.94787 4.36505 4.15952 4.15601C4.37118 3.94697 4.71315 3.94815 4.92333 4.15865L6.5 5.73769L8.07667 4.15865C8.28686 3.94815 8.62882 3.94697 8.84048 4.15601Z",fill:""})})}),e.text||e.label]})}function u(e,t){return t?.flatMap(t=>p(t.results,e))??[]}function f(e,t){return u(e,t).length??0}
1function b(e){let[t,l]=(0,s.useState)(0),i=(0,a.wA)(),[w,m]=(0,s.useState)(!1),b=(0,c.c3)("Wizard"),g=s.useRef(null),[v,y]=(0,s.useState)(!1);if((0,s.useEffect)(()=>{function r(r){let s=u(e.selectedItems,e.searchResults||[]),d=f(e.selectedItems,e.searchResults||[]);if("ArrowDown"===r.detail.key&&(null===t||t<d-1)&&l(null===t?0:t+1),"ArrowUp"===r.detail.key&&null!==t&&t>=1&&l(null===t?0:t-1),"Enter"===r.detail.key&&null!==t){let l=s[t];l&&i(e.setSelectedItems([...e.selectedItems,{...l}]))}}return window.addEventListener(o.Q$,r),()=>window.removeEventListener(o.Q$,r)},[t,e.searchResults,e.selectedItems]),(0,s.useEffect)(()=>{let r=f(e.selectedItems,e.searchResults||[]);null!==t&&t>=r&&l(r-1)}),(0,s.useEffect)(()=>{function e(){l(0)}return window.addEventListener("WIZARD_INPUT_BLUR",e),()=>window.removeEventListener("WIZARD_INPUT_BLUR",e)},[]),(0,s.useEffect)(()=>{function e(){if(g.current){let e=g.current.scrollHeight>g.current.clientHeight,t=g.current.scrollTop,l=g.current.scrollHeight-g.current.clientHeight;y(e&&t<100&&!(t>l-25))}}function t(){e(),document.activeElement instanceof HTMLElement&&document.activeElement.blur()}e(),window.addEventListener("resize",e),g.current&&g.current.addEventListener("scroll",t);let l=new ResizeObserver(e);return g.current&&l.observe(g.current),()=>{window.removeEventListener("resize",e),g.current&&g.current.removeEventListener("scroll",t),l.disconnect()}}),!e.searchWizard||e.searchResults?.length||e.selectedItems?.length)return e.searchResults?(0,r.jsxs)(d.A,{setHovered:m,...e,className:n()({"left-0 right-0 w-full wd:max-h-[calc(100vh-150px)] wd:w-[450px] wd:max-w-[450px]":e.searchWizard,"left-0 right-0 w-full wdl:w-[450px] wdl:max-w-[450px]":!e.searchWizard}),contentScrollable:v,scrollableRef:g,bookmarksPage:e.bookmarksPage,children:[(0,r.jsx)("div",{className:n()({"visible flex flex-wrap wd:bg-white wd:px-[7px] wm:pb-2 wm:pl-[14px] wm:pr-[14px] wm:pt-3.5":e.searchWizard,"visible flex flex-wrap wdl:bg-white wdl:px-[7px] wml:pb-2 wml:pl-[14px] wml:pr-[14px] wml:pt-3.5":!e.searchWizard}),children:e.selectedItems.map(t=>(0,r.jsx)(h,{...t,selectedItems:e.selectedItems,setSelectedItems:e.setSelectedItems},t.value))}),0===e.searchResults.flatMap(e=>e.results).length&&""!==e.resultSearchTerm&&(0,r.jsxs)("div",{className:n()("ml-4",{"flex flex-wrap pb-6 text-stone-400 wd:px-4 wd:pt-3":e.searchWizard,"flex flex-wrap pb-6 text-stone-400 wdl:px-4 wdl:pt-3":!e.searchWizard}),children:[b("noResults"),":"," ",(0,r.jsxs)("div",{className:"ml-1 inline-block w-auto max-w-[400px] truncate font-medium text-stone-500",children:['"',e.resultSearchTerm,'"']})," "]}),(0,r.jsx)("div",{id:"search-results",className:n()("flex flex-col",{"search min-h-0 flex-1 overflow-y-auto wd:max-h-[500px] wd:bg-white wm:h-[calc(100vh_-_230px)] wm:overflow-y-scroll wm:pb-[100px]":e.searchWizard,"landing-page min-h-0 flex-1 overflow-y-auto wdl:max-h-[500px] wdl:bg-white wml:h-[calc(100vh_-_230px)] wml:overflow-y-scroll wml:pb-[100px]":!e.searchWizard}),ref:g,children:e.searchResults.map((l,s)=>(0,r.jsx)(x,{totalStartIndex:s>0&&e.searchResults?.slice(0,s).flatMap(t=>p(t.results,e.selectedItems)).length||0,highlightedSearchResultIndex:t,...l,selectedItems:e.selectedItems,setSelectedItems:e.setSelectedItems,searchWizard:e.searchWizard,highlightWithIndex:w},l.type))})]}):null}},15929:()=>{},93268:(e,t,l)=>{"use strict";l.d(t,{A:()=>y});var r=l(95155);l(15929);var s=l(12115),d=l(34540),a=l(87462),i=l(29300),n=l.n(i),o=l(55028),c=l(73143),w=l(61797),m=l(9198),p=l(7120),x=l(86204),h=l(17652),u=l(87390),f=l(51826);let b=(0,o.default)(()=>Promise.all([l.e(654),l.e(8904)]).then(l.bind(l,38904)),{loadableGenerated:{webpack:()=>[38904]},loading:()=>null});function g(e){return(0,r.jsx)("button",{className:(0,w.cx)("absolute -top-12 left-1/2 flex h-11 w-16 -translate-x-1/2 items-center justify-center rounded-xl border border-stone-200 bg-black/30 shadow-sm transition-all duration-300 ease-in-out hover:shadow-md lg:hidden",{"pointer-events-none opacity-0":e.hidden,"opacity-100":!e.hidden}),onClick:e.onClick,"aria-label":"Scroll down to wizard",children:(0,r.jsx)(u.default,{className:"h-7 w-7 fill-white stroke-[8px]"})})}function v({hideSkipButton:e,...t}){let l=(0,d.wA)(),i=(0,a.Ct)(e=>
1e.activeStep),[o,u]=(0,s.useState)(!1),v=(0,h.c3)("Wizard"),y=(0,f.xX)(),W=!y;function z(){l((0,p.Fz)(t.step+1))}function I(){l((0,p.Fz)(-1))}function E(){return(t.searchWizard||t.nextButtonActiveLandingPage)&&t.inputIsValid}function R(){return!!(e||t.searchWizard&&!(0,w.pj)())}function j(){let e=t.scrollableRef?.current;if(e){let t=document.getElementById("wizard-footer");if(e&&t&&e){let l=t.getBoundingClientRect().top,r=Array.from(e.children),[s,d]=function(e,t){for(let l=0;l<e.length;l++){let r=e[l].getBoundingClientRect();if(r.top<=t&&r.bottom>=t)return[l,r.bottom-t]}return[-1,0]}(r,l),a=s+3;if(-1!==s&&a<r.length&&a<r.length-1){let t=Array.from(e.children),l=d;for(let e=s+1;e<=a;e++){let r=t[e].getBoundingClientRect().height;e===a?l=l+r/2+2:l+=r}e.scrollTo({top:e.scrollTop+l,behavior:"smooth"})}else{let t=r[r.length-1];if(t){let r=t.getBoundingClientRect(),s=e.scrollTop,d=r.bottom-l;e.scrollTo({top:s+d,behavior:"smooth"})}}}}}return(0,r.jsxs)("div",{id:"wizard-footer",className:(0,w.cx)("wizard-container relative left-0 right-0 z-[10000] flex items-center justify-between border-t-[1px] border-t-[rgba(0,0,0,0.1)] text-stone-700",{"search z-20 wd:flex wd:rounded-b-lg wd:bg-white wd:py-3 wm:fixed wm:h-[auto] wm:flex-col wm:bg-white wm:pb-4 wm:pt-4 wm:shadow-[0_-10px_15px_-3px_rgba(0,0,0,0.1)]":t.searchWizard,"landing-page wdl:flex wdl:rounded-b-lg wdl:bg-white wdl:py-3 wml:fixed wml:h-[auto] wml:flex-col wml:bg-white wml:pb-4 wml:pt-4 wml:shadow-[0_-10px_15px_-3px_rgba(0,0,0,0.1)]":!t.searchWizard,"items-start px-4":W&&t.step===m.Wu.TRAVEL_PERIOD}),children:[(0,r.jsx)(g,{hidden:!t.contentScrollable,onClick:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),setTimeout(j,100)}}),!t.searchWizard&&(0,r.jsx)("div",{className:n()("wml:row-1 absolute left-0 top-0 h-[5px] bg-primary duration-200 wdl:invisible wml:visible",{"w-[calc(100vw_*0.33)]":i===m.Wu.DESTINATION,"w-[calc(100vw_*0.66)]":i===m.Wu.TOPIC,"w-[100vw]":i===m.Wu.TRAVEL_PERIOD})}),t.options&&(0,r.jsx)("div",{tabIndex:0,className:n()("no-scrollbar relative mx-3 mb-[10px] w-full flex-grow",{"wm:row-2 wd:mt-[7px] wm:border-b-[1px]":t.searchWizard,"wml:row-2 wdl:mt-[7px] wml:border-b-[1px]":!t.searchWizard,"overflow-x-scroll":!W}),children:(0,r.jsx)("div",{className:n()("flex w-full min-w-min gap-x-2 gap-y-3.5 text-center",{"wm:mx-2 wm:mb-3 wm:mt-1 wm:w-[100%] wm:justify-center":t.searchWizard,"wml:mx-2 wml:mb-3 wml:mt-1 wml:w-[100%] wml:justify-center":!t.searchWizard}),children:t.options})}),(0,r.jsxs)("div",{className:(0,w.cx)("flex",{"justify-between px-4":!R(),"justify-center":R()&&!W,"justify-end":R()&&(W&&t.step===m.Wu.TRAVEL_PERIOD||y),"justify-end px-4":R()&&W&&t.step!==m.Wu.TRAVEL_PERIOD,"w-full":!t.options,"wm:w-full":t.searchWizard,"px-0 wml:w-full":!t.searchWizard,"wd:pt-10":W&&t.searchWizard&&t.step===m.Wu.TRAVEL_PERIOD,"wdl:pt-10":W&&!t.searchWizard&&t.step===m.Wu.TRAVEL_PERIOD}),children:[!R()&&(0,r.jsx)("button",{className:n()("row-3 bottom-[
112px] left-[12px] col-start-1 flex h-[44px] items-center pr-[10px] font-medium leading-[0px] text-primary wml:ml-2 wml:pl-[10px]",{"ml-3 pl-[10px]":!t.options||!t.searchWizard,"wdl:mr-4 wdl:text-md wml:text-xl":!t.searchWizard,"wd:mr-4 wd:text-md wm:text-xl":t.searchWizard}),onClick:e=>{t.specialNextAction?t.specialNextAction(e):t.searchWizard&&(0,w.pj)()?I():z()},children:v(t.searchWizard&&(!t.searchWizard||(0,w.pj)())?"closeButton":"skipButtonLabel")}),t.resetAction&&(0,r.jsx)("div",{className:"w-30 -wml:mb-1.5",children:(0,r.jsx)(c.default,{className:n()("wdl:h-[36px] wml:h-[44px]",{"ml-5":!t.options}),buttonType:x.V.SECONDARY,onClick:t.resetAction,children:v("filterOptionReset")})}),(0,r.jsxs)("button",{disabled:!E(),className:n()("z-[5100] w-max overflow-hidden rounded-md font-semibold",{"wm:row-3 h-[44px] wd:px-7 wd:py-1 wd:text-md wm:col-start-2 wm:translate-y-0.5 wm:px-12 wm:py-2 wm:text-xl":t.searchWizard,"wml:row-3 h-[44px] wdl:px-7 wdl:py-1 wdl:text-md wml:col-start-2 wml:translate-y-0.5 wml:px-12 wml:py-2 wml:text-xl":!t.searchWizard,"bg-primary text-white":E(),"cursor-default bg-[#EDEDED] text-[#ADADAD]":!E(),"bg-primary ":o,"mr-5":y||W&&t.step!==m.Wu.TRAVEL_PERIOD}),onClick:e=>{E()&&(u(!0),t.specialNextAction?t.specialNextAction(e):t.searchWizard?I():z())},children:[v(t.primaryActionLabel?t.primaryActionLabel:t.searchWizard?"closeButton":"nextButtonLabel"),o&&(0,r.jsx)(b,{className:"absolute scale-75 bg-primary wdl:-top-[17px] wdl:left-[12%] wml:-top-[40%] wml:left-[25%]"})]})]})]})}function y({inputIsValid:e,...t}){return(0,s.useEffect)(()=>(document.querySelector("body")?.classList.add("drop-down-open"),()=>document.querySelector("body")?.classList.remove("drop-down-open"))),(0,r.jsxs)("div",{onMouseEnter:()=>t.setHovered?.(!0),onMouseLeave:()=>t.setHovered?.(!1),className:(0,w.cx)("z-50 h-screen md:h-auto",{"wd:mt-2.5 wd:inline-block wd:h-auto wd:w-[830px] wd:rounded-md wd:bg-white wd:pt-2 wd:text-md wd:shadow-[0_2px_20px_rgba(0,0,0,0.3)] wm:h-full":t.searchWizard&&!t.absolutePositioned,"wd:w-[700px]":t.bookmarksPage,"lg:top-0 wd:left-0":t.searchWizard&&!t.absolutePositioned&&!t.searchWizard,"wdl:left-0 wdl:top-[-3px] wdl:mt-2.5 wdl:inline-block wdl:rounded-md wdl:bg-white wdl:pt-2 wdl:text-md wdl:shadow-[0_2px_20px_rgba(0,0,0,0.3)] wml:h-full":!t.searchWizard&&!t.absolutePositioned,relative:!t.absolutePositioned&&!t.searchWizard,absolute:t.searchWizard&&!1,"left-0 z-50 lg:top-[0px] wd:mt-2.5 wd:inline-block wd:rounded-md wd:bg-white wd:pt-2 wd:text-md wd:shadow-[0_2px_20px_rgba(0,0,0,0.3)] wm:w-[100vw]":t.absolutePositioned},t.className),onClick:e=>e.stopPropagation(),ref:t.ref,children:[t.children,(0,r.jsx)(v,{...t,inputIsValid:e,options:t.footerOptions,contentScrollable:t.contentScrollable,scrollableRef:t.scrollableRef,onCommitChanges:t.onCommitChanges})]})}}}]); 2//# sourceMappingURL=1679.182e07cc5c2d4adb.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.