PageSourceSearch

https://www.hrs.com/_next/static/chunks/18296-b7bdca32eed6ae82.js?dpl=dpl_9iDdr5MT7qwppHi4eF9XC79FtQRt

js hrs.com collected 2026-09-24 17:41:21 UTC 24,181 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18296],{11509:(e,t,l)=>{l.d(t,{r:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:23,height:22,fill:"none",viewBox:"0 0 23 22",ref:t},e),n||(n=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.667,d:"M10.583 17.417a7.333 7.333 0 1 0 0-14.667 7.333 7.333 0 0 0 0 14.667M19.75 19.25l-3.988-3.987"})))});let s=(0,l(10600).w)(i,"SearchThinIcon")},26215:(e,t,l)=>{l.d(t,{g:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",ref:t},e),n||(n=r.createElement("path",{fill:"currentColor",d:"M10.5 0C14.1 0 17 2.8 17 6.3c0 2.2-1.9 6.3-5.7 12.5l-.8 1.2C6.2 13.2 4 8.6 4 6.3 4 2.8 6.9 0 10.5 0m0 1C7.5 1 5 3.4 5 6.3q0 2.55 4.5 10.2l.5.8.5.8C14.2 12.2 16 8.2 16 6.3 16 3.4 13.5 1 10.5 1m2.4 3-.4 2.6 1.9 1.9-2.6.4-1.2 2.4-1.3-2.4-2.6-.4 1.9-1.9L8.1 4l2.4 1.2zm-1.4 1.8-1 .5-1-.5.2 1.2-.9.8 1.2.1.5 1 .5-1 1.1-.2-.8-.7z"})))});let s=(0,l(10600).w)(i,"PoiIcon")},32016:(e,t,l)=>{l.d(t,{u:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",ref:t},e),n||(n=r.createElement("path",{fill:"currentColor",d:"M20 12v.63H8.07a10 10 0 0 0-4.36 1.51h.34a1.3 1.3 0 0 1 .84.29 1 1 0 0 1 .36.73v.9a.94.94 0 0 1-.36.72 1.3 1.3 0 0 1-.84.29H.63c.095.355.31.667.61.88.407.274.89.414 1.38.4H20V19h-3.49q-.077.222-.23.4H20v.6H1.42v-.63h2.74a1 1 0 0 1-.22-.4H2.4a2.78 2.78 0 0 1-1.7-.69 2 2 0 0 1-.7-1.49v-.12c0-.71 1.41-2 3.26-3.08A10.7 10.7 0 0 1 8.07 12zm-8.55 7H9a1.2 1.2 0 0 1-.23.41h2.92a1.4 1.4 0 0 1-.23-.41zm4.29 0h-1.3q.076.096.18.16a.9.9 0 0 0 .47.13 1 1 0 0 0 .48-.13.9.9 0 0 0 .17-.16m-2.22 0h-1.3q.076.096.18.16a.91.91 0 0 0 .94 0 .7.7 0 0 0 .18-.16m-5.3 0H6.93a.5.5 0 0 0 .17.16.93.93 0 0 0 .95 0 .7.7 0 0 0 .17-.16M6 19H4.7a.7.7 0 0 0 .18.16.9.9 0 0 0 .47.13 1 1 0 0 0 .48-.13A.9.9 0 0 0 6 19m11.3-4.82a1.3 1.3 0 0 1 .85.31 1 1 0 0 1 .35.77v.68a1 1 0 0 1-.35.77 1.3 1.3 0 0 1-.85.32H8.78a1.28 1.28 0 0 1-.84-.32 1 1 0 0 1-.35-.77v-.68a1 1 0 0 1 .35-.77 1.27 1.27 0 0 1 .84-.31zm-13.25.62H2.66a5.9 5.9 0 0 0-1.92 1.65h3.31a.57.57 0 0 0 .35-.12.35.35 0 0 0 .14-.27v-.9a.33.33 0 0 0-.14-.27.5.5 0 0 0-.35-.12zm6.07 0H8.78a.54.54 0 0 0-.35.13.43.43 0 0 0-.14.3v.68a.43.43 0 0 0 .14.3.54.54 0 0 0 .35.13h1.34zm2.57 0h-1.86v1.54h1.86zm2.57 0H13.4v1.54h1.86zm2 0H16v1.54h1.3a.52.52 0 0 0 .35-.13.39.39 0 0 0 .14-.3v-.68a.39.39 0 0 0-.14-.3.52.52 0 0 0-.35-.13zM17.24 0a1.68 1.68 0 0 1 1.18.48c1 .35 1.55.81 1.58 1.36 0 .33-.14.8-1 1.25l-.17.09L15 5l-1.3 3.72-.06.09L11 10.74a.3.3 0 0 1-.18.06.4.4 0 0 1-.18-.05.35.35 0 0 1-.14-.27v-.07l.71-3.6-3.72 1.75a.29.29 0 0 1-.27 0h-.06L4.1 6.06a.32.32 0 0 1-.1-.31.34.34 0 0 1 .15-.22h.06l2-.67a.3.3 0 0 1 .14 0h.08l1.07.46 2.3-1.4.23-.14-1.81-1a.34.34 0 0 1-.16-.32.34.34 0 0 1 .16-.24h.06l2.13-.69h.13l2.74.3h.1c1-.61 1.83-1.08 2.05-1.17l.3-.13A3.5 3.5 0 0 1 17.24 0M.47 5.29h.05a.15.15 0 0 1 .1.15S-.16 8 1.09 9c.434.32.96.492 1.5.49A7.45 7.45 0 0 0 6 8.5a.31.31 0 0 1 .43.13.34.34 0 0 1-.13.44 9.3 9.3 0 0 1-2.87.93C.84 10.19.28 8.68.23 8.53A5 5 0 0 1 .32 5.4a.13.13 0 0 1 .1-.1zM17.24.64A3.2 3.2 0 0 0 16 1l-.32.15c-.54.22-5.94 3.51-8 4.75a.3.3 0 0 1-.21 0l-.04.1-1.11-.53L5 5.93l2.44 2 4.11-1.95a.4.4 0 0 1 .14 0 .32.32 0 0 1 .2.08.3.3 0 0 1 .11.25v.07l-.67 3.41 1.88-1.35 1.3-3.84a.3.3 0 0 1 .09-.11h.06l3.91-1.89c.6-.29.81-.56.8-.72s-.25-.43-.87-.68l-1.5.73a.3.3 0 0 1-.13 0 .31.31 0 0 1-.29-.19.33.33 0 0 1 .09-.39h.06l1.09-.53a1 1 0 0 0-.58-.18m-6.13 4.24a.32.32 0 0 1-.08.39h-.06l-.81.43h-.14a.32.32 0 0 1-.29-.17.32.32 0 0 1 .08-.39h.06l.81-.42a.32.32 0 0 1 .43.16M12.74 4a.32.32 0 0 1-.08.39h-.06l-.81.43a.4.4 0 0 1-.15 0 .32.32 0 0 1-.28-.17.34.34 0 0 1 .08-.4h.06l.81-.42a.32.32 0 0 1 .43.17m1.63-.86a.35.35 0 0 1-.08.4h-.06l-.81.46a.3.3 0 0 1-.15 0 .31.31 0 0 1-.27-.11.34.34 0 0 1 .07-.39h.07l.8-.5a.32.32 0 0 1 .43.17zm-3.8-1.12-1.38.48 1.46.85 1.23-.75.61-.36zm5.43.3a.32.32 0 0 1-.07.39h-.06l-.87.47a.23.23 0 0 1-.14 0 .3
11.31 0 0 1-.24-.18.32.32 0 0 1 .07-.39h.06l.82-.43a.31.31 0 0 1 .43.14"})))});let s=(0,l(10600).w)(i,"CombinedTransportIcon")},33735:(e,t,l)=>{l.d(t,{q:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",ref:t},e),n||(n=r.createElement("path",{fill:"currentColor",d:"M9.5 17.5v-2.024A5.5 5.5 0 0 1 4.524 10.5H2.5a.5.5 0 1 1 0-1h2.024A5.5 5.5 0 0 1 9.5 4.523V2.5a.5.5 0 1 1 1 0v2.023A5.5 5.5 0 0 1 15.477 9.5H17.5a.5.5 0 0 1 0 1h-2.023a5.5 5.5 0 0 1-4.977 4.976V17.5a.5.5 0 1 1-1 0m.5-12a4.5 4.5 0 1 0 0 9.001A4.5 4.5 0 0 0 10 5.5m1.5 4.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m1 0A2.5 2.5 0 1 1 7.5 10a2.5 2.5 0 0 1 5.001 0"})))});let s=(0,l(10600).w)(i,"LocationTargetIcon")},36367:(e,t,l)=>{l.d(t,{G:()=>o});var n=l(54568),r=l(72902),a=l(7620),i=l(46339);let s=e=>e?(0,n.jsx)("span",{"aria-hidden":!0,className:"flex size-[20px] shrink-0 items-center justify-center text-icon-default [&_svg]:size-full",children:e}):null,o=(0,a.memo)(function(e){let{type:t="section",device:l="desktop",icon:a,iconRight:o,label:c,badge:d,name:u,secondary:h,noDivider:m=!1,active:f=!1,onClick:v,id:x,className:p}=e,b="section"!==t&&!!v,g=s(a),w=s(o);if("section"===t)return(0,n.jsxs)("div",{className:(0,r.A)("flex w-full flex-col overflow-clip bg-container-subtle",p),children:[(0,n.jsxs)("div",{className:"flex h-[36px] w-full items-center gap-[24px] px-[24px]",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-[8px]",children:[g,(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-body-md-semibold text-default",children:c})]}),d]}),m?null:(0,n.jsx)(i.c,{})]});let y="longText"===t,j=(0,r.A)("flex w-full items-center gap-[8px] px-[24px] text-left outline-none","border-none bg-transparent p-0",y?"py-[12px]":"mobile"===l?"min-h-[46px] py-[13px]":"min-h-[36px] py-[8px]",b&&"cursor-pointer hover:bg-container-subtle",b&&"focus-visible:bg-container-subtle focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-tertiary-focus",f&&"bg-container-subtle ring-2 ring-inset ring-tertiary-focus"),k=(0,n.jsxs)("span",{className:(0,r.A)("flex min-w-0 flex-1",y?"flex-col items-start gap-[8px]":"flex-wrap items-baseline gap-x-[8px]"),children:[(0,n.jsxs)("span",{className:(0,r.A)("text-label-md-regular text-default [overflow-wrap:anywhere]",y&&"min-w-0"),children:[u,y&&h?(0,n.jsxs)("span",{className:"text-caption-md-semibold text-subtle",children:["  ",h]}):null]}),!y&&h?(0,n.jsx)("span",{className:"text-caption-md-semibold text-subtle",children:h}):null]}),N=(0,n.jsxs)(n.Fragment,{children:[g,k,w]});return(0,n.jsxs)("div",{className:(0,r.A)("flex w-full flex-col overflow-clip bg-container",p),children:[b?(0,n.jsx)("button",{type:"button",id:x,onClick:v,className:j,role:"option","aria-selected":f,children:N}):(0,n.jsx)("div",{id:x,className:j,children:N}),m?null:(0,n.jsx)(i.c,{className:"ml-[24px]",style:{width:"calc(100% - 48px)"}})]})})},37151:(e,t,l)=>{l.d(t,{q:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",ref:t},e),n||(n=r.createElement("path",{fill:"currentColor",d:"M10.4 5.92V4.3a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v1.89l.7.09V2.5c-.82-.36-2.91-.6-6.08-.6s-5.29.24-6.12.6v3.81l.8-.1V4.3a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v1.62zm.9 0c1.12 0 2.21.07 3.2.16V4.7h-3.2zm-2.5 0V4.7H5.6v1.42C6.61 6 7.69 6 8.8 5.94zm8.88 2.55 1.53 1.81h.29a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V16.3H2v1.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h.29l1.56-1.83c-.35-1.06-.16-1.73.65-2V2q1.11-1 7-1c3.92 0 6.24.34 7 1v4.46c.85.26 1.07.93.68 2.03zm-.94.43H3.27l-1.15 1.4h15.77zm2.36 2.3H.9v6.2h.2v-2h17.8v2h.2zM16.9 8c.18-.54.09-.64-.31-.72a46.3 46.3 0 0 0-13.14 0C3 7.36 3 7.47 3.14 8z"})))});let s=(0,l(10600).w)(i,"HotelIcon")},37515:(e,t,l)=>{l.d(t,{D:()=>o});var n=l(54568),r=l(72902),a=l(7620),i=l(83963),s=l(82913);let o=(0,a.forwardRef)(function(e,t){let{label:l="Search",hideLabel:o=!1,placeholder:c="Location, hotel, region, address, post code",errorText:d,onClear:u,clearLabel:h="Clear",fullWidth:m=!0,wrapperClassName:f,className:v,id:x,disabled:p,value:b,defaultValue:g,onChange:w,onFocus:y,onBlur:j,"aria-describedby":k,...N}=e,z=(0,a.useId)(),C=null!=x?x:"search-".concat(z),M="".concat(C,"-error"),H=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,()=>H.current,[]);let E=void 0!==b,[L,S]=(0,a.useState)("string"==typeof g?g:""),[A,O]=(0,a.useState)(!1),R=(E?String(null!=b?b:""):L).length>0,V=!!d;return(0,n.jsxs)("div",{className:(0,r.A)("flex flex-col gap-2",m?"w-full":"w-[320px]",f),children:[l&&!o?(0,n.jsx)("label",{htmlFor:C,className:(0,r.A)("text-label-sm",p?"text-disabled":V?"text-error-text":A?"text-headline":"text-label"),children:l}):null,(0,n.jsxs)("div",{className:(0,r.A)("flex h-46 items-center gap-8 border-b pb-px transition-colors",p?"border-border-subtle":V?"border-error-outline":A?"border-border-strong":"border-border-subtle"),children:[(0,n.jsx)("input",{ref:H,id:C,disabled:p,placeholder:c,value:E?b:void 0,defaultValue:E?void 0:g,"aria-invalid":V||void 0,"aria-describedby":[k,V?M:null].filter(
1Boolean).join(" ")||void 0,onChange:e=>{E||S(e.target.value),null==w||w(e)},onFocus:e=>{O(!0),null==y||y(e)},onBlur:e=>{O(!1),null==j||j(e)},className:(0,r.A)("min-w-0 flex-1 border-none bg-transparent outline-none","text-subheading-sm-semibold text-default","placeholder:text-subtle","disabled:cursor-not-allowed disabled:text-disabled",v),...N}),R&&!p?(0,n.jsx)(i.A,{icon:(0,n.jsx)(s.r,{}),onClick:()=>{var e;!E&&(S(""),H.current&&(H.current.value="")),null==u||u(),null==(e=H.current)||e.focus()},"aria-label":h,tabIndex:-1}):null]}),d?(0,n.jsx)("p",{id:M,className:"text-body-sm-semibold text-error-text",children:d}):null]})})},59545:(e,t,l)=>{l.d(t,{P:()=>s});var n,r=l(7620);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var i=(0,r.forwardRef)(function(e,t){return r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",ref:t},e),n||(n=r.createElement("path",{fill:"currentColor",d:"M12 19h4V4h-4zm0-16V1h1v2h1V2h1v1h2v16h1v-1.59a1.5 1.5 0 1 1 1 0V19h1v1H0v-1h1v-1.59a1.5 1.5 0 1 1 1 0V19h1V0h5v19h3v-7H8v7H7v-8h2V8h1v3h2v8h-1V3zM4 1.11v17.78h3V1.11zM1.5 16.8a.75.75 0 1 0-.75-.75.76.76 0 0 0 .75.75m17 0a.75.75 0 1 0-.75-.75.76.76 0 0 0 .75.75M5 4h1v1H5zm0 2h1v1H5zm0 2h1v1H5zm0 2h1v1H5zm0 2h1v1H5zm0 2h1v1H5zm4-1h1v1H9zm0 2h1v1H9zm4-10h2v1h-2zm0 2h2v1h-2zm0 2h2v1h-2zm0 2h2v1h-2zm0 4h2v1h-2zm0-2h2v1h-2z"})))});let s=(0,l(10600).w)(i,"CityIcon")},69975:(e,t,l)=>{l.d(t,{P:()=>p});var n=l(54568),r=l(72902),a=l(7620),i=l(48954),s=l(4285),o=l(55819),c=l(49549),d=l(37515),u=l(95371),h=l(67899),m=l(33735);function f(e){return"string"==typeof e?e:null==e?"":String(e)}let v=e=>2===e.column?2:1;function x(e){return e.map((e,t)=>{var l;return{...e,id:null!=(l=e.id)?l:"s".concat(t),items:e.items.map((e,l)=>{var n;return{...e,id:null!=(n=e.id)?n:"s".concat(t,"-i").concat(l)}})}})}function p(e){var t;let{sections:l,suggestions:p,onSelect:b,onQueryChange:g,filter:w=!0,width:y=1152,defaultOpen:j=!1,open:k,hideTrigger:N=!1,defaultQuery:z="",defaultSelectedLabel:C="",defaultSelectedSecondaryLabel:M="",showCurrentLocation:H=!1,currentLocationLabel:E="Use current location",mobileTitle:L="Search",onUseCurrentLocation:S,onOpenChange:A,lockScroll:O=!0,getAutoSelectItem:R,showNoResults:V=!0,noResultsLabel:P="No results found for:",triggerWidth:I,panelOffsetX:W,panelOffsetY:q,panelAnchorElementId:B,panelAnchorEdge:D="top",panelMatchAnchorWidth:_=!1,label:T="Search",hideLabel:K=!1,placeholder:F="Location, hotel, region, address, post code",renderSelectedItem:G,...U}=e,X=(0,a.useId)(),J="destination-trigger-".concat(X),Q="destination-listbox-".concat(X),Y="".concat(Q,"-opt"),Z=(0,a.useRef)(null),$=(0,a.useRef)(null),[ee,et]=(0,a.useState)(j),el=null!=k?k:ee,en=void 0!==k,[er,ea]=(0,a.useState)(z),[ei,es]=(0,a.useState)(C?{name:C,secondary:M||void 0}:void 0),[eo,ec]=(0,a.useState)(-1),ed=(0,a.useRef)(!1),eu=(0,a.useRef)({query:z,selectedLabel:C,selectedSecondaryLabel:M}),[eh,em]=(0,a.useState)(),[ef,ev]=(0,a.useState)(!1),ex=(0,a.useRef)(null),[ep,eb]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e={query:z,selectedLabel:C,selectedSecondaryLabel:M};(eu.current.query!==e.query||eu.current.selectedLabel!==e.selectedLabel||eu.current.selectedSecondaryLabel!==e.selectedSecondaryLabel)&&(eu.current=e,ed.current||(ea(z),es(C?{name:C,secondary:M||void 0}:void 0),ec(-1),null==g||g(z)))},[z,C,M,g]);let{isMobile:eg,isTablet:ew,isDesktop:ey}=(0,i.x)();(0,a.useLayoutEffect)(()=>{var e;el&&eg&&(null==(e=$.current)||e.focus({preventScroll:!0}))},[el,eg]);let ej=(0,a.useCallback)(()=>{var e,t,l,n;let r=null==(e=Z.current)?void 0:e.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight,s=B?null==(t=document.getElementById(B))?void 0:t.getBoundingClientRect():void 0;if(!r&&!N&&!s)return;let o=Math.min(s&&_?s.width:y,a-16),c=s?Math.min(Math.max(8,s.left),Math.max(8,a-o-8)):Math.max(8,(a-o)/2),d=s&&"bottom"===D?s.bottom:null!=(n=null!=(l=null==r?void 0:r.top)?l:null==s?void 0:s.top)?n:0,u=ey&&null!=W?c+W:c,h=ey&&null!=q?d+q:d;em({position:"fixed",top:h,left:u,width:o,maxHeight:i-h-8})},[y,W,q,ey,N,B,D,_]);(0,a.useLayoutEffect)(()=>{el&&ey&&ej()},[el,ey,ej]),(0,a.useEffect)(()=>
1{if(el&&ey)return window.addEventListener("resize",ej),window.addEventListener("scroll",ej,!0),()=>{window.removeEventListener("resize",ej),window.removeEventListener("scroll",ej,!0)}},[el,ey,ej]);let ek=ei?ei.secondary?"".concat(ei.name," ").concat(ei.secondary):ei.name:"string"==typeof F?F:"";(0,a.useLayoutEffect)(()=>{let e=ex.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=()=>eb(e.scrollWidth-e.clientWidth>1);t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[ek]);let eN=(0,a.useCallback)(e=>{en||et(e),null==A||A(e)},[en,A]),ez=(0,a.useCallback)(()=>{var e;null==(e=$.current)||e.blur(),eN(!1),ec(-1)},[eN]),eC=(0,a.useCallback)(()=>{el||eN(!0)},[eN,el]),eM=(0,a.useCallback)(async()=>{if(S&&!ef){ed.current=!0,ev(!0);try{let e=await S();e&&(es({name:e,secondary:void 0}),ea(e),ez())}catch(e){}finally{ev(!1)}}},[S,ef,ez]),eH=(0,a.useMemo)(()=>{if(H)return{id:"__current-location",fullWidth:!0,items:[{id:"__current-location-item",name:E,iconRight:ef?(0,n.jsx)(h.y,{}):(0,n.jsx)(m.q,{}),onSelect:eM}]}},[H,E,ef,eM]),eE=(0,a.useMemo)(()=>{let e=null!=p?p:l;return eH?[eH,...e]:e},[p,l,eH]),eL=er.trim().toLowerCase(),eS=(0,a.useMemo)(()=>{let e=x(l);return w?e.map(e=>({...e,items:e.items.filter(e=>f(e.name).toLowerCase().includes(eL))})).filter(e=>e.items.length>0):e},[eL,l,w]),eA=""===eL?eE.length>0:eS.length>0,eO=(0,a.useMemo)(()=>""===eL?x(eE):eH?[x([eH])[0],...eS]:eS,[eL,eE,eS,eH]),eR=(0,a.useMemo)(()=>{if(eA)return eO;let e=x(eE),t={id:"no-results",column:1,items:[{id:"no-results-item",longText:!0,name:(0,n.jsxs)("span",{className:"flex flex-col items-start gap-2",children:[(0,n.jsx)("span",{className:"text-body-md text-default",children:P}),(0,n.jsx)("span",{className:"text-body-sm-semibold text-default",children:er.trim()})]})}]};return[...e.filter(e=>e.fullWidth),...V?[t]:[],...e.filter(e=>!e.fullWidth).map(e=>V?{...e,column:2}:e)]},[eA,eO,eE,er,V,P]),eV=ey&&eR.some(e=>e.fullWidth||2===e.column)?2:1,eP=(0,a.useMemo)(()=>(function(e,t){if(1===t)return e.flatMap(e=>e.items);let l=e.filter(e=>e.fullWidth).flatMap(e=>e.items);return[...l,...e.filter(e=>!e.fullWidth&&1===v(e)).flatMap(e=>e.items),...e.filter(e=>!e.fullWidth&&2===v(e)).flatMap(e=>e.items)]})(eR,eV).filter(e=>"no-results-item"!==e.id),[eR,eV]),eI=eo>=0?null==(t=eP[eo])?void 0:t.id:void 0,eW=(0,a.useMemo)(()=>eP.filter(e=>"__current-location-item"!==e.id),[eP]),eq=(0,a.useCallback)(e=>{ed.current=!0,es({name:f(e.name),secondary:e.secondary?f(e.secondary):void 0}),ea(e?e.secondary?"".concat(f(e.name),", ").concat(f(e.secondary)):f(e.name):""),ez(),null==b||b(e)},[ez,b]),eB=(0,a.useMemo)(()=>eR.map(e=>({...e,items:e.items.map(e=>"no-results-item"===e.id||"__current-location-item"===e.id?e:{...e,onSelect:()=>eq(e)})})),[eR,eq]),eD=(0,a.useRef)(null),[e_,eT]=(0,a.useState)({top:!1,bottom:!1}),eK=(0,a.useCallback)(()=>{let e=eD.current;if(!e)return;let t=e.scrollTop>4,l=e.scrollTop+e.clientHeight<e.scrollHeight-4;eT(e=>e.top===t&&e.bottom===l?e:{top:t,bottom:l})},[]);(0,a.useLayoutEffect)(()=>{el&&!eg&&eK()},[el,eg,eB,eV,eK]);let eF=(0,n.jsx)("div",{className:"shrink-0 px-24 pt-24",children:(0,n.jsx)(d.D,{...U,ref:$,label:T,hideLabel:K,placeholder:F,autoFocus:!eg,value:er,onChange:e=>{ed.current=!0,ea(e.target.value),ec(-1),null==g||g(e.target.value)},onClear:()=>{var e;ed.current=!0,ea(""),ec(-1),null==(e=$.current)||e.focus(eg?{preventScroll:!0}:void 0),null==g||g("")},onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),ec(e=>Math.min(e+1,eP.length-1));else if("ArrowUp"===e.key)e.preventDefault(),ec(e=>Math.max(e-1,0));else if("Enter"===e.key){if(eo>=0&&eP[eo])e.preventDefault(),eq(eP[eo]);else if(""!==eL&&eA){let t=R?R(eW,er.trim()):eW[0];t&&(e.preventDefault(),eq(t))}}else"Escape"===e.key&&(e.preventDefault(),ez())},role:"combobox","aria-expanded":!0,"aria-controls":Q,"aria-autocomplete":"list","aria-activedescendant":eI?"".concat(Y,"-").concat(eI):void 0})}),eG=(0,n.jsx)(u.L,{sections:eB,device:eg?"mobile":"desktop",columns:eV,card:!1,idPrefix:Y,activeKey:eI}),eU=eg?(0,n.jsx)("div",{id:Q,role:"listbox","aria-label":"Search results",className:"py-12",children:eG}):(0,n.jsx)(c.F,{id:Q,role:"listbox","aria-label":"Search results",ref:eD,onScroll:eK,className:"min-h-0 flex-1 py-12",children:eG}),eX=(0,n.jsxs)("div",{style:ew?void 0:eh,className:(0,r.A)("flex flex-col overflow-hidden rounded-16 bg-container shadow-popover",ew&&"fixed left-1/2 top-[7dvh] max-h-[86dvh] w-[min(680px,calc(100vw-2rem))] -translate-x-1/2"),children:[eF,(0,n.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[eU,(0,n.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-x-0 top-0 h-24",style:{background:"linear-gradient(to bottom, var(--color-container), transparent)",opacity:+!!e_.top,transition:"opacity 150ms"}}),(0,n.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[40px]",style:{background:"linear-gradient(to top, var(--color-container), transparent)",opacity:+!!e_.bottom,transition:"opacity 150ms"}})]})]});return(0,n.jsxs)(n.Fragment,{children:[!N&&(0,n.jsxs)("button",{id:J,ref:Z,type:"button",onClick:eC,title:ep?ek:void 0,style:ey&&I?{width:I}:void 0,className:(0,r.A)("flex w-full min-w-0 flex-col items-start justify-center gap-2 border-none bg-transparent p-0 text-left",K?"h-auto":"h-46"),children:[!K&&(0,n.jsx)("span",{className:"w-full truncate text-label-sm text-label",children:T}),ei?G?(0,n.jsx)("span",{ref:ex,className:"block w-full min-w-0 overflow-hidden",children:G(ei)}):(0,n.jsxs)("span",{ref:ex,className:"flex w-full min-w-0 items-baseline gap-4 overflow-hidden",children:[(0,n.jsx)("span",{className:"min-w-0 truncate text-subheading-sm-semibold text-default",children:ei.name}),ei.secondary?(0,n.jsx)("span",{className:"shrink-0 whitespace-nowrap text-caption-md-semibold text-default",children:ei.secondary}):null]}):(0,n.jsx)("span",{ref:ex,className:"block w-full truncate text-subheading-sm text-subtle",children:F})]}),eg?(0,n.jsxs)(o.X,{open:el,modal:!0,lockBodyScroll:O,scrollLockMode:"overflow",fitVisualViewport:!0,preventFocusScroll:!0,scrollable:!0,showDragHandle:!0,swipeToClose:!0,title:L,padding:"none",onClose:ez,triggerElementId:J,"aria-label":"string"==typeof T?T:"Destination search",className:"h-[98dvh]",children:[(0,n.jsx)("div",{className:"sticky top-0 z-10 shrink-0 bg-container",children:eF}),eU]}):(0,n.jsx)(s.z,{open:el,onClose:ez,center:!1,lockScroll:O,triggerElementId:J,children:eX})]})}},92919:(e,t,l)=>{l.d(t,{K:()=>o});var n,r,a=l(7620);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(null,arguments)}var s=(0,a.forwardRef)(function(e,t){return a.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 20 20",ref:t},e),n||(n=a.createElement("path",{fill:"currentColor",d:"M8 6a2 2 0 1 1 4 0 2 2 0 0 1-4 0M17.5 18v1h-15v-1z"})),r||(r=a.createElement("path",{fill:"currentColor",d:"M10 1c2.77 0 5 2.24 5 5.04 0 1.76-1.461 5.04-4.385 10L10 17C6.692 11.56 5 7.88 5 6.04 5 3.24 7.23 1 10 1m0 .8c-2.308 0-4.23 1.92-4.23 4.24q0 2.04 3.46 8.16l.77 1.28c2.846-4.72 4.23-7.92 4.23-9.44 0-2.32-1.922-4.24-4.23-4.24"})))});let o=(0,l(10600).w)(s,"AddressIcon")},95371:(e,t,l)=>{l.d(t,{L:()=>s});var n=l(54568),r=l(72902),a=l(36367);function i(e){let{sections:t,device:l,idPrefix:i,activeKey:s,className:o}=e,c=function(e){let t=[];return e.forEach((e,l)=>{var n;let r=null!=(n=e.id)?n:"s".concat(l);null!=e.label&&t.push({kind:"header",key:"".concat(r,"-h"),section:e}),e.items.forEach((l,n)=>{var a;let i=null!=(a=l.id)?a:"".concat(r,"-i").concat(n);t.push({kind:"item",key:i,itemKey:i,section:e,item:l})})}),t}(t);return(0,n.jsx)("div",{className:(0,r.A)("flex min-w-0 flex-col",o),children:c.map((e,t)=>{var r;let o=t===c.length-1||(null==(r=c[t+1])?void 0:r.kind)==="header";if("header"===e.kind)return(0,n.jsx)(a.G,{type:"section",icon:e.section.icon,label:e.section.label,badge:e.section.badge,noDivider:o},e.key);let{item:d}=e;return(0,n.jsx)(a.G,{id:i?"".concat(i,"-").concat(e.itemKey):void 0,type:d.longText?"longText":"result",device:l,icon:d.icon,iconRight:d.iconRight,name:d.name,secondary:d.secondary,onClick:d.onSelect,active:null!=s&&e.itemKey===s,noDivider:o},e.key)})})}function s(e){let{sections:t,device:l="desktop",columns:a,idPrefix:s,activeKey:o,card:c=!0,className:d}=e,u=c?"overflow-clip rounded-[12px] border border-border-subtle bg-container":"";if(1===(null!=a?a:"desktop"===l?2:1))return(0,n.jsx)("div",{className:(0,r.A)(u,d),children:(0,n.jsx)(i,{sections:t,device:l,idPrefix:s,activeKey:o})});let h=t.filter(e=>e.fullWidth),m=t.filter(e=>{var t;return!e.fullWidth&&(null!=(t=e.column)?t:1)===1}),f=t.filter(e=>!e.fullWidth&&2===e.column);return m.length||(m=[...f],f=[]),(0,n.jsxs)("div",{className:(0,r.A)(u,"flex flex-col",d),children:[h.length>0?(0,n.jsx)(i,{sections:h,device:l,idPrefix:s,activeKey:o,className:"border-b border-border-divider"}):null,(0,n.jsxs)("div",{className:"flex items-stretch",children:[(0,n.jsx)(i,{sections:m,device:"desktop",idPrefix:s,activeKey:o,className:"flex-1"}),(0,n.jsx)(i,{sections:f,device:"desktop",idPrefix:s,activeKey:o,className:"flex-1"})]})]})}}}]);

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.