1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5681],{25681:(e,r,t)=>{t.d(r,{$n:()=>n.Button,D0:()=>a.Field,PY:()=>i.PredictionCombobox});var n=t(2095);t(33776);var a=t(77225),i=t(91509)},33776:(e,r,t)=>{t.d(r,{ErrorMessage:()=>d});var n=t(54568);t(7620);var a=t(36645),i=t(71723),o=t(2095);function l({className:e,knockout:r="white"}){return(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,"aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("path",{d:"M12 7v6",stroke:r,strokeWidth:"2",strokeLinecap:"round",fill:"none"}),(0,n.jsx)("circle",{cx:"12",cy:"16.5",r:"1.25",fill:r})]})}let s={inline:"text-sm text-[var(--ext-terracotta-deep)]",block:"rounded-[var(--radius-inner)] bg-[var(--surface-300)] px-3 py-2 text-sm text-[var(--ext-terracotta-deep)]",banner:"w-full rounded-[var(--radius-card)] bg-[var(--ext-terracotta)] text-base leading-6 text-[var(--white)]"},c={inline:"h-4 w-4",block:"h-4 w-4",banner:"h-5 w-5"};function d({variant:e="inline",children:r,action:t,onDismiss:u,className:p,...x}){let v="banner"===e,h=v&&!!t&&!!u;return(0,n.jsxs)("div",{role:"alert",className:(0,i.cn)("flex gap-2",v?"flex-col items-stretch gap-3 rail:flex-row rail:items-center rail:gap-2":"items-start",s[e],v&&(t||h?"p-4":"px-3 py-2"),p),...x,children:[(0,n.jsxs)("span",{className:(0,i.cn)("flex min-w-0 gap-2",v?"items-center":"contents"),children:[(0,n.jsx)(l,{className:(0,i.cn)("shrink-0 translate-y-[1px]",v?"text-[var(--white)]":"text-[var(--ext-terracotta)]",c[e]),knockout:v?"var(--ext-terracotta)":"white"}),(0,n.jsx)("span",{className:"leading-snug",children:r})]}),t||h?(0,n.jsxs)("span",{className:(0,i.cn)("shrink-0",v?"flex justify-end gap-2 [&>*]:hit-44 rail:ml-auto":"ml-auto"),children:[t,h?(0,n.jsx)(o.Button,{variant:"white-secondary",size:"sm",onClick:u,children:"Dismiss"}):null]}):null,u&&!h?(0,n.jsx)("button",{type:"button",onClick:u,"aria-label":"Dismiss",className:(0,i.cn)("inline-flex shrink-0 items-center justify-center",v?"hit-44 size-6 self-center rounded-full text-[var(--white)] rail:ml-auto":"-my-3 -mr-1 h-11 w-11 rounded-[var(--radius-inner)] text-[var(--ext-terracotta-deep)]",!v&&!t&&"ml-auto","opacity-70 transition-opacity duration-200 ease-out hover:opacity-100","motion-reduce:transition-none","focus-ring"),children:(0,n.jsx)(a.A,{className:"h-4 w-4","aria-hidden":"true"})}):null]})}},77225:(e,r,t)=>{t.d(r,{Field:()=>u});var n=t(54568),a=t(7620),i=t(71723);function o({className:e,type:r,...t}){return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,i.cn)("h-8 w-full min-w-0 rounded-[var(--radius-inner)] border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...t})}var l=t(6913);function s({className:e,...r}){return(0,n.jsx)(l.b,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}var c=t(33776);let d={md:"h-11 px-4 py-2.5 text-base",lg:"h-14 px-5 py-3.5 text-base"};function u({label:e,labelMode:r="above",hideLabel:t=!1,fieldSize:l="md",helpText:p,error:x,wrapperClassName:v,id:h,name:f,className:m,required:b,placeholder:g,...w}){let y=a.useId(),k=h??f??y,j=p?`${k}-help`:void 0,N=x?`${k}-error`:void 0,C=[N,j].filter(Boolean).join(" ")||void 0,D="floating"===r,$=(0,n.jsx)(s,{htmlFor:k,className:(0,i.cn)("pointer-events-none absolute left-5 z-10 origin-left font-normal","text-[var(--ink-olive-icon)] transition-all duration-150","top-1/2 -translate-y-1/2 text-base","peer-focus:top-2 peer-focus:translate-y-0 peer-focus:text-xs","peer-focus:text-[var(--forest-green)]","peer-[&:not(:placeholder-shown)]:top-2","peer-[&:not(:placeholder-shown)]:translate-y-0","peer-[&:not(:placeholder-shown)]:text-xs","peer-[&:not(:placeholder-shown)]:text-[var(--ink-olive-secondary)]"),children:e});return(0,n.jsxs)("div",{className:(0,i.cn)("w-full",D&&"relative",v),children:[!D&&(0,n.jsx)(s,{htmlFor:k,className:(0,i.cn)(t?"sr-only":"mb-1.5 text-base font-normal text-black"),children:e}),(0,n.jsx)(o,{id:k,name:f,required:b,placeholder:D?g??" ":g,"aria-invalid":!!x||void 0,"aria-describedby":C,className:(0,i.cn)(D&&"peer placeholder:text-transparent","w-full rounded-[var(--radius-card)] border-[1.5px] border-[var(--stroke-element)] bg-[var(--surface-100)] text-black transition-colors duration-150",d[l],D&&("lg"===l?"pt-[22px] pb-[10px]":"pt-5 pb-1"),"placeholder:text-[var(--ink-olive-secondary)]","hover:border-[var(--surface-600)]","focus-visible:border-[var(--forest-green)] focus-visible:ring-0 focus-visible:outline-none","disabled:opacity-50 disabled:cursor-not-allowed","aria-invalid:border-[var(--ext-terracotta)]",m),...w}),D&&$,p&&!x&&(0,n.jsx)("p",{id:j,className:"mt-1.5 text-xs text-[var(--ink-olive-secondary)]",children:p}),x&&(0,n.jsx)(c.ErrorMessage,{id:N,variant:"inline",className:"mt-4",children:x})]})}},91509:(e,r,t)=>{t.d(r,{PredictionCombobox:()=>s});var n=t(54568),a=t(7620),i=t(77225);function o(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22s8-6 8-12a8 8 0 1 0-16 0c0 6 8 12 8 12Zm0-9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"})})}function l(){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 21V4.5A1.5 1.5 0 0 1 5.5 3h13A1.5 1.5 0 0 1 20 4.5V21h1a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2h1Zm4-14.5h2.5V9H8V6.5Zm5.5 0H16V9h-2.5V6.5ZM8 11h2.5v2.5H8V11Zm5.5 0H16v2.5h-2.5V11ZM10 21v-4h4v4h-4Z"})})}function s({endpoint:e,value:r,onChange:t,onPick:c,emptyState:d,icon:u="location",...p}){let[x,v]=(0,a.useState)([]),[h,f]=(0,a.useState)(!1),[m,b]=(0,a.useState)(!1),[g,w]=(0,a.useState)(-1),[y,k]=(0,a.useState)(!1),j=(0,a.useRef)(0),N=(0,a.useRef)(null),C=(0,a.useRef)(null),D=(0,a.useId)(),$=r.trim(),E=$.length>=3&&!y;(0,a.useEffect)(()=>{if(!E){j.current+=1;return}let r=++j.current,t=setTimeout(async()=>{try{let t=await fetch(`${e}?q=${encodeURIComponent($)}`),n=t.ok?await t.json():{predictions:[]},a=Array.isArray(n.predictions)?n.predictions??[]:[];if(r!==j.current)return;v(a.slice(0,5)),f(!0),b(!0),w(-1)}catch{if(r!==j.current)return;v([]),f(!0)}},220);return()=>clearTimeout(t)},[e,$,E]),(0,a.useEffect)(()=>{if(!m)return;let e=e=>{N.current?.contains(e.target)||b(!1)};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[m]);let M=(0,a.useCallback)(e=>{t(e.description),c?.(e),k(!0),j.current+=1,b(!1),w(-1)},[t,c]),V=m&&(x.length>0||h&&!!d);return(0,n.jsxs)("div",{ref:N,className:"relative",children:[(0,n.jsx)(i.Field,{...p,value:r,onChange:e=>{let r=e.target.value;t(r),k(!1),r.trim().length<3&&(j.current+=1,b(!1))},onKeyDown:e=>{if(!m||0===x.length){"ArrowDown"===e.key&&x.length&&b(!0);return}if("ArrowDown"===e.key){e.preventDefault();let r=(g+1)%x.length;w(r),C.current?.children[r]?.scrollIntoView({block:"nearest"})}else if("ArrowUp"===e.key){e.preventDefault();let r=g<=0?x.length-1:g-1;w(r),C.current?.children[r]?.scrollIntoView({block:"nearest"})}else"Enter"===e.key&&g>=0?(e.preventDefault(),M(x[g])):"Escape"===e.key&&(b(!1),w(-1))},onFocus:()=>{x.length&&b(!0)},role:"combobox","aria-expanded":V,"aria-controls":D,"aria-autocomplete":"list","aria-activedescendant":g>=0?`${D}-${g}`:void 0,autoComplete:"off",className:y?"border-[var(--forest-green)]":void 0}),V&&(0,n.jsxs)("div",{ref:C,id:D,role:"listbox",className:"absolute top-[calc(100%+6px)] right-0 left-0 z-20 max-h-[186px] overflow-y-auto overscroll-contain touch-pan-y rounded-[var(--radius-web-card)] border-[1.5px] border-[var(--stroke-element)] bg-[var(--surface-100)] p-1.5",children:[x.map((e,r)=>{let t=e.structured_formatting?.main_text??e.description,a=e.structured_formatting?.secondary_text??e.description.slice(t.length).replace(/^,\s*/,"");return(0,n.jsxs)("div",{id:`${D}-${r}`,role:"option","aria-selected":r===g,onMouseDown:e=>e.preventDefault(),onClick:()=>M(e),onMouseMove:()=>w(r),className:`flex cursor-pointer items-start gap-3 rounded-[var(--radius-web-inner)] px-3 py-2.5 transition-colors duration-150 ease-in-out ${r===g?"bg-[var(--surface-hover)]":""}`,children:[(0,n.jsx)("span",{className:`flex size-8 flex-none items-center justify-center rounded-full text-[color-mix(in_srgb,var(--ink-olive-icon),var(--ink-olive-secondary))] transition-colors duration-150 ease-in-out ${r===g?"bg-[var(--surface-100)]":"bg-[var(--surface-350)]"}`,children:"hotel"===u?(0,n.jsx)(l,{}):(0,n.jsx)(o,{})}),(0,n.jsxs)("span",{className:"min-w-0",children:[(0,n.jsx)("span",{className:"block truncate text-[14.5px] leading-[18px] font-medium",children:t}),a&&(0,n.jsx)("span",{className:"mt-[2px] block truncate text-[12.5px] leading-[16px] text-[var(--ink-olive-icon)]",children:a})]})]},e.place_id||e.description)}),0===x.length&&h&&(0,n.jsx)("div",{className:"px-3 py-3 text-[13.5px] leading-relaxed text-[var(--ink-olive-secondary)]",children:d})]})]})}}}]);
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.