PageSourceSearch

https://www.hrs.com/_next/static/chunks/18296-de913b1abb93497a.js

js hrs.com collected 2026-10-02 03:06:42 UTC 24,408 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,waitForSelectionBeforeClose:g=!1,onQueryChange:w,filter:y=!0,width:j=1152,defaultOpen:k=!1,open:N,hideTrigger:z=!1,defaultQuery:C="",defaultSelectedLabel:M="",defaultSelectedSecondaryLabel:H="",showCurrentLocation:E=!1,currentLocationLabel:L="Use current location",mobileTitle:S="Search",onUseCurrentLocation:A,onOpenChange:O,lockScroll:R=!0,getAutoSelectItem:V,showNoResults:P=!0,noResultsLabel:D="No results found for:",resultsLabel:I="Search results",triggerWidth:W,panelOffsetX:q,panelOffsetY:B,panelAnchorElementId:_,panelAnchorEdge:T="top",panelMatchAnchorWidth:K=!1,layoutOverride:F,label:G="Search",hideLabel:U=!1,placeholder:X="Location, hotel, region, address, post code",renderSelectedItem:J,...Q}=e,Y=(0,a.useId)(),Z="destination-trigger-".concat(Y),$="destination-listbox-".concat(Y),ee="".concat($,"-opt"),et=(0,a.useRef)(null),el=(0,a.useRef)(null),[en,er]=(0,a.useState)(k),ea=null!=N?N:en,ei=void 0!==N,[es,eo]=(0,a.useState)(C),[ec,ed]=(0,a.useState)(M?{name:M,secondary:H||void 0}:void 0),[eu,eh]=(0,a.useState)(-1),em=(0,a.useRef)(!1),ef=(0,a.useRef)({query:C,selectedLabel:M,selectedSecondaryLabel:H}),[ev,ex]=(0,a.useState)(),[ep,eb]=(0,a.useState)(!1),eg=(0,a.useRef)(null),[ew,ey]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e={query:C,selectedLabel:M,selectedSecondaryLabel:H};(ef.current.query!==e.query||ef.current.selectedLabel!==e.selectedLabel||ef.current.selectedSecondaryLabel!==e.selectedSecondaryLabel)&&(ef.current=e,em.current||(eo(C),ed(M?{name:M,secondary:H||void 0}:void 0),eh(-1),null==w||w(C)))},[C,M,H,w]);let ej=(0,i.x)(),ek=F?"mobile"===F:ej.isMobile,eN=F?"tablet"===F:ej.isTablet,ez=F?"desktop"===F:ej.isDesktop;(0,a.useLayoutEffect)(()=>{var e;ea&&ek&&(null==(e=el.current)||e.focus({preventScroll:!0}))},[ea,ek]);let eC=(0,a.useCallback)(()=>{var e,t,l,n;let r=null==(e=et.current)?void 0:e.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight,s=_?null==(t=document.getElementById(_))?void 0:t.getBoundingClientRect():void 0;if(!r&&!z&&!s)return;let o=Math.min(s&&K?s.width:j,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"===T?s.bottom:null!=(n=null!=(l=null==r?void 0:r.top)?l:null==s?void 0:s.top)?n:0,u=ez&&null!=q?c+q:c,h=ez&&null!=B?d+B:d;ex({position:"fixed",top:h,left:u,width:o,maxHeight:i-h-8})},[j,q,B,ez,z,_,T,K]);(0,a.useLayoutEffect)(()=>{ea&&ez&&eC()},[ea,ez,eC]),(0,a.useEffect)(()=>
1{if(ea&&ez)return window.addEventListener("resize",eC),window.addEventListener("scroll",eC,!0),()=>{window.removeEventListener("resize",eC),window.removeEventListener("scroll",eC,!0)}},[ea,ez,eC]);let eM=ec?ec.secondary?"".concat(ec.name," ").concat(ec.secondary):ec.name:"string"==typeof X?X:"";(0,a.useLayoutEffect)(()=>{let e=eg.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=()=>ey(e.scrollWidth-e.clientWidth>1);t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[eM]);let eH=(0,a.useCallback)(e=>{ei||er(e),null==O||O(e)},[ei,O]),eE=(0,a.useCallback)(()=>{var e;null==(e=el.current)||e.blur(),eH(!1),eh(-1)},[eH]),eL=(0,a.useCallback)(()=>{ea||eH(!0)},[eH,ea]),eS=(0,a.useCallback)(async()=>{if(A&&!ep){em.current=!0,eb(!0);try{let e=await A();e&&(ed({name:e,secondary:void 0}),eo(e),eE())}catch(e){}finally{eb(!1)}}},[A,ep,eE]),eA=(0,a.useMemo)(()=>{if(E)return{id:"__current-location",fullWidth:!0,items:[{id:"__current-location-item",name:L,iconRight:ep?(0,n.jsx)(h.y,{}):(0,n.jsx)(m.q,{}),onSelect:eS}]}},[E,L,ep,eS]),eO=(0,a.useMemo)(()=>{let e=null!=p?p:l;return eA?[eA,...e]:e},[p,l,eA]),eR=es.trim().toLowerCase(),eV=(0,a.useMemo)(()=>{let e=x(l);return y?e.map(e=>({...e,items:e.items.filter(e=>f(e.name).toLowerCase().includes(eR))})).filter(e=>e.items.length>0):e},[eR,l,y]),eP=""===eR?eO.length>0:eV.length>0,eD=(0,a.useMemo)(()=>""===eR?x(eO):eA?[x([eA])[0],...eV]:eV,[eR,eO,eV,eA]),eI=(0,a.useMemo)(()=>{if(eP)return eD;let e=x(eO),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:D}),(0,n.jsx)("span",{className:"text-body-sm-semibold text-default",children:es.trim()})]})}]};return[...e.filter(e=>e.fullWidth),...P?[t]:[],...e.filter(e=>!e.fullWidth).map(e=>P?{...e,column:2}:e)]},[eP,eD,eO,es,P,D]),eW=ez&&eI.some(e=>e.fullWidth||2===e.column)?2:1,eq=(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)]})(eI,eW).filter(e=>"no-results-item"!==e.id),[eI,eW]),eB=eu>=0?null==(t=eq[eu])?void 0:t.id:void 0,e_=(0,a.useMemo)(()=>eq.filter(e=>"__current-location-item"!==e.id),[eq]),eT=(0,a.useCallback)(e=>{em.current=!0;let t=()=>{ed({name:f(e.name),secondary:e.secondary?f(e.secondary):void 0}),eo(e?e.secondary?"".concat(f(e.name),", ").concat(f(e.secondary)):f(e.name):"")};if(!g){t(),eE(),null==b||b(e);return}(async()=>{try{await (null==b?void 0:b(e))}catch(e){}finally{t(),eE()}})()},[eE,b,g]),eK=(0,a.useMemo)(()=>eI.map(e=>({...e,items:e.items.map(e=>"no-results-item"===e.id||"__current-location-item"===e.id?e:{...e,onSelect:()=>eT(e)})})),[eI,eT]),eF=(0,a.useRef)(null),[eG,eU]=(0,a.useState)({top:!1,bottom:!1}),eX=(0,a.useCallback)(()=>{let e=eF.current;if(!e)return;let t=e.scrollTop>4,l=e.scrollTop+e.clientHeight<e.scrollHeight-4;eU(e=>e.top===t&&e.bottom===l?e:{top:t,bottom:l})},[]);(0,a.useLayoutEffect)(()=>{ea&&!ek&&eX()},[ea,ek,eK,eW,eX]);let eJ=(0,n.jsx)("div",{className:"shrink-0 px-24 pt-24",children:(0,n.jsx)(d.D,{...Q,ref:el,label:G,hideLabel:U,placeholder:X,autoFocus:!ek,value:es,onChange:e=>{em.current=!0,eo(e.target.value),eh(-1),null==w||w(e.target.value)},onClear:()=>{var e;em.current=!0,eo(""),eh(-1),null==(e=el.current)||e.focus(ek?{preventScroll:!0}:void 0),null==w||w("")},onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),eh(e=>Math.min(e+1,eq.length-1));else if("ArrowUp"===e.key)e.preventDefault(),eh(e=>Math.max(e-1,0));else if("Enter"===e.key){if(eu>=0&&eq[eu])e.preventDefault(),eT(eq[eu]);else if(""!==eR&&eP){let t=V?V(e_,es.trim()):e_[0];t&&(e.preventDefault(),eT(t))}}else"Escape"===e.key&&(e.preventDefault(),eE())},role:"combobox","aria-expanded":!0,"aria-controls":$,"aria-autocomplete":"list","aria-activedescendant":eB?"".concat(ee,"-").concat(eB):void 0})}),eQ=(0,n.jsx)(u.L,{sections:eK,device:ek?"mobile":"desktop",columns:eW,card:!1,idPrefix:ee,activeKey:eB}),eY=ek?(0,n.jsx)("div",{id:$,role:"listbox","aria-label":I,className:"py-12",children:eQ}):(0,n.jsx)(c.F,{id:$,role:"listbox","aria-label":I,ref:eF,onScroll:eX,className:"min-h-0 flex-1 py-12",children:eQ}),eZ=(0,n.jsxs)("div",{style:eN?void 0:ev,className:(0,r.A)("flex flex-col overflow-hidden rounded-16 bg-container shadow-popover",eN&&"fixed left-1/2 top-[7dvh] max-h-[86dvh] w-[min(680px,calc(100vw-2rem))] -translate-x-1/2"),children:[eJ,(0,n.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[eY,(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:+!!eG.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:+!!eG.bottom,transition:"opacity 150ms"}})]})]});return(0,n.jsxs)(n.Fragment,{children:[!z&&(0,n.jsxs)("button",{id:Z,ref:et,type:"button",onClick:eL,title:ew?eM:void 0,style:ez&&W?{width:W}: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",U?"h-auto":"h-46"),children:[!U&&(0,n.jsx)("span",{className:"w-full truncate text-label-sm text-label",children:G}),ec?J?(0,n.jsx)("span",{ref:eg,className:"block w-full min-w-0 overflow-hidden",children:J(ec)}):(0,n.jsxs)("span",{ref:eg,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:ec.name}),ec.secondary?(0,n.jsx)("span",{className:"shrink-0 whitespace-nowrap text-caption-md-semibold text-default",children:ec.secondary}):null]}):(0,n.jsx)("span",{ref:eg,className:"block w-full truncate text-subheading-sm text-subtle",children:X})]}),ek?(0,n.jsxs)(o.X,{open:ea,modal:!0,lockBodyScroll:R,scrollLockMode:"overflow",fitVisualViewport:!0,preventFocusScroll:!0,scrollable:!0,showDragHandle:!0,swipeToClose:!0,title:S,padding:"none",onClose:eE,triggerElementId:Z,"aria-label":"string"==typeof G?G:"Destination search",className:"h-[98dvh]",children:[(0,n.jsx)("div",{className:"sticky top-0 z-10 shrink-0 bg-container",children:eJ}),eY]}):(0,n.jsx)(s.z,{open:ea,onClose:eE,center:!1,lockScroll:R,triggerElementId:Z,children:eZ})]})}},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.