1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9139],{38098:function(e,t,n){var r,l=n(73006);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=function(e){return l.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0244 2.46873C16.731 2.17636 16.2561 2.1772 15.9637 2.47061L6.96873 11.4976C6.67641 11.791 6.67719 12.2657 6.97047 12.5581L15.9705 21.5311C16.2638 21.8236 16.7387 21.8229 17.0311 21.5295C17.3236 21.2362 17.3229 20.7613 17.0295 20.4689L8.56051 12.0253L17.0263 3.52939C17.3186 3.23597 17.3178 2.7611 17.0244 2.46873Z",fill:"#323232"})))}},93796:function(e,t,n){var r,l=n(73006);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.Z=function(e){return l.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),r||(r=l.createElement("path",{d:"M 1.0023016,0.00471379 A 0.99769046,0.99769023 0 0 0 0.3067159,1.7173739 L 4.5893416,5.9999987 0.3067159,10.282624 a 0.99769046,0.99769023 0 1 0 1.4106555,1.410655 l 4.2826258,-4.282625 4.2826258,4.282625 a 0.99769046,0.99769023 0 1 0 1.410655,-1.410655 L 7.4106528,5.9999987 11.693278,1.7173739 A 0.99769046,0.99769023 0 1 0 10.282623,0.30671873 L 5.9999972,4.5893434 1.7173714,0.30671873 A 0.99769046,0.99769023 0 0 0 1.0023016,0.00471379 Z"})))}},35178:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(33188),l=n(99021),o=n(7653),i=n(71498),a=n(19017),c=n(57816),s=n(42865),u=n(93796),d=n(23003),p=n(99007),f=n(87617),g=n(14080),h=n(43646);function v(){let e=(0,r._)(["\n background: ",";\n "]);return v=function(){return e},e}let b=(0,i.Z)("ul",{target:"e1tn18m80"})(h.$n,";"),m=(0,i.Z)("li",{target:"e1tn18m81"})(e=>{let{isHighlighted:t}=e;return t&&(0,a.iv)(v(),(0,p.z)("--gray-january-dawn"))}," &:hover{background:",(0,p.z)("--gray-january-dawn"),";}"),w=(0,i.Z)("button",{target:"e1tn18m82"})(h.d$,";--focus-color-rgb:",(0,p.z)("--primary-color-rgb"),";padding:20px;border-bottom:1px solid ",(0,p.z)("--gray-january-dawn"),";text-align:left;width:100%;cursor:pointer;&:focus-visible{outline:rgba(var(--focus-color-rgb),0.2);}"),y=e=>{let{predictions:t}=e;return 0===t.length?null:(0,l.tZ)(b,{children:t.map((t,n)=>(0,l.tZ)(m,{"aria-label":t.description,isHighlighted:e.selectedIndex===n,children:(0,l.tZ)(w,{onClick:()=>e.onSelect(t),children:t.description})},t.place_id))})};var x=n(66848),Z=n(37861);function C(){let e=(0,r._)(["\n padding-inline-end: 54px;\n\n "," {\n padding-inline-end: 75px;\n }\n "]);return C=function(){return e},e}function _(){let e=(0,r._)(["\n padding-inline-start: 54px;\n\n "," {\n padding-inline-end: 54px;\n }\n "]);return _=function(){return e},e}function k(){let e=(0,r._)(["\n box-shadow: 0 4px 12px rgba(81, 81, 81, 0.12);\n "]);return k=function(){return e},e}function R(){let e=(0,r._)(["\n inset-inline-start: 24px;\n inset-inline-end: auto;\n\n "," {\n inset-inline-start: 20px;\n inset-inline-end: auto;\n }\n "]);return R=function(){return e},e}let O=(0,i.Z)("div",{target:"ecbs3qq0"})("width:100%;"),q=(0,i.Z)("div",{target:"ecbs3qq1"})("position:relative;display:inline-block;width:100%;"),S=(0,i.Z)("input",{target:"ecbs3qq2"})("--focus-color-rgb:",(0,p.z)("--primary-color-rgb"),";width:100%;height:50px;line-height:20px;font-size:14px;font-weight:600;border-radius:",(0,p.z)("--form-control-border-radius"),";border:none;padding-inline-start:24px;padding-inline-end:24px;text-overflow:ellipsis;",f.b,";&::placeholder{color:",(0,p.z)("--text-color"),";font-size:14px;font-style:normal;font-weight:400;line-height:normal;}&::-webkit-search-cancel-button{display:none;-webkit-appearance:none;}",e=>{let{withAfter:t}=e;return t&&(0,a.iv)(C(),g.py)}," ",e=>{let{withBefore:t}=e;return t&&(0,a.iv)(_(),g.py)}," ",e=>{let{mode:t}=e;return"inline"===t&&(0,a.iv)(k())}),E=(0,i.Z)("div",{target:"ecbs3qq3"})("inset-inline-end:24px;position:absolute;top:50%;transform:translateY(-50%);display:flex;flex-flow:row nowrap;align-items:center;gap:4px;",g.py,"{inset-inline-end:20px;}",e=>{let{position:t}=e;return"before"===t&&(0,a.iv)(R(),g.py)}),j=(0,a.iv)("display:flex;svg{width:1em;height:1em;fill:lightgrey;}"),z=(0,a.iv)("display:none;"),A=e=>{let t=(0,o.useRef)(null),[n,r,i]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,o.useState)([]),[r,l]=(0,o.useState)(),i=(0,o.useRef)();return[t,(0,o.useCallback)(async t=>{if(l(t),!t){n([]);return}try{if(!i.current){var r;if("undefined"==typeof google||!(null===(r=google.maps)||void 0===r?void 0:r.importLibrary)){n([]);return}let e=await google.maps.importLibrary("places");
1i.current=new e.AutocompleteService}i.current.getPlacePredictions({input:t,...(null==e?void 0:e.getRequest)?null==e?void 0:e.getRequest():{}},(e,t)=>(function(e,t,n){if(t!=google.maps.places.PlacesServiceStatus.OK||!e){console.error(t),n([]);return}n(e)})(e,t,n))}catch(e){console.error("Failed to load Google autocomplete service",e),n([])}},[e,i]),r]}({getRequest:e.getAcRequest}),[a,p]=(0,o.useState)(e.value||""),f=(0,c.d)({}),{overlayProps:g}=(0,s.I)({type:"dialog"},f,t);(0,o.useEffect)(()=>{f.isOpen&&t.current.focus()},[f]);let h=(0,o.useCallback)(t=>{p(t.structured_formatting.main_text),r(t.structured_formatting.main_text),f.close();try{new google.maps.places.Place({id:t.place_id}).fetchFields({fields:["id","displayName","location","viewport","types","formattedAddress"]}).then(t=>{var n,l;let{place:o}=t;r(o.displayName),p(o.displayName),null===(n=e.onSelect)||void 0===n||n.call(e,o),null===(l=e.onChange)||void 0===l||l.call(e,o)}).catch(t=>{var n;console.error("Failed to fetch Google place details",t),null===(n=e.onChange)||void 0===n||n.call(e,null)})}catch(t){var n;console.error("Failed to create Google place instance",t),null===(n=e.onChange)||void 0===n||n.call(e,null)}},[e,r]),[v,b]=function(e){let{elements:t,onSelect:n,onHighlight:r}=e,[l,i]=(0,o.useState)(-1),[a,c]=(0,o.useState)(!1),s=(0,o.useCallback)(e=>{i(e),r&&r(t[e])},[t,r]),u=(0,o.useCallback)(e=>{let r=e.code;if("Enter"===r&&a&&t[l])return n&&n(t[l]),e.preventDefault();switch(r){case"ArrowUp":return s(l>=0?l-1:t.length-1),e.preventDefault();case"ArrowDown":return s(l<t.length-1?l+1:0),e.preventDefault()}},[l,a,t,n,s]);return(0,o.useEffect)(()=>{i(-1)},[t]),[l,{onFocus:()=>c(!0),onBlur:()=>c(!1),onKeyDown:e=>u(e)},a]}({elements:n,onSelect:h,onHighlight:e=>{p(e?e.structured_formatting.main_text:i)}});(0,o.useEffect)(()=>{p(e.value||""),e.value&&r(e.value)},[e.value]);let m=(0,l.tZ)(y,{predictions:n,onSelect:h,selectedIndex:v});return(0,l.BX)(O,{children:[(0,l.BX)(q,{children:[(0,l.tZ)(E,{position:"before",children:e.before}),(0,l.tZ)(S,{...b,onChange:t=>{var n;let l=t.target.value;r(l),p(l),null===(n=e.onChange)||void 0===n||n.call(e,null),f.open()},type:"search",autoComplete:"off",value:a,placeholder:e.placeholder,ref:t,withBefore:!!e.before,withAfter:!!e.after,mode:e.mode,autoFocus:e.autoFocus,className:e.className,onMouseDown:()=>{(null==n?void 0:n.length)&&f.open()}}),(0,l.BX)(E,{position:"after",children:[e.after,(0,l.tZ)(d.Z,{use:"icon",type:"button",title:Z.ag._({id:"xCJdfg"}),onClick:()=>{var n,l;r(""),p(""),t.current.focus(),null===(n=e.onClear)||void 0===n||n.call(e),null===(l=e.onChange)||void 0===l||l.call(e,null)},css:[j,0===a.length&&z],children:(0,l.tZ)(d.Z.Addon,{children:(0,l.tZ)(u.Z,{})})})]})]}),"dropdown"===e.mode&&f.isOpen&&(0,l.tZ)(x.s,{state:f,targetRef:t,overlayProps:g,children:m}),"inline"===e.mode&&m]})}},66848:function(e,t,n){n.d(t,{s:function(){return w}});var r=n(99021),l=n(7653),o=n(19947),i=n(6233),a=n(19017),c=n(33188),s=n(18433),u=n(66744),d=n(80914),p=n(86136),f=n(485);function g(){let e=(0,c._)(["\n outline: none;\n "]);return g=function(){return e},e}let h=(0,l.forwardRef)((e,t)=>{let{title:n,children:o,isOpen:c,onClose:h,style:v,...b}=e,m=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,()=>m.current);let{overlayProps:w}=(0,s.I)({onClose:h,isOpen:c,isDismissable:!0},m),{modalProps:y}=(0,u.dd)(),{dialogProps:x,titleProps:Z}=(0,p.R)({},m);return(0,r.tZ)(u.Xj,{children:(0,r.tZ)(f.MT,{restoreFocus:!0,children:(0,r.BX)("div",{css:(0,a.iv)(g()),...(0,i.d)(w,x,b,y),ref:m,style:v,children:[n&&"string"!=typeof n&&(0,l.cloneElement)(n,Z),o,(0,r.tZ)(d.U,{onDismiss:h})]})})})});h.displayName="Popover";var v=n(87617),b=n(99007);let m=(0,a.iv)("--focus-color-rgb:",(0,b.z)("--primary-color-rgb"),";background:white;border-radius:8px;box-shadow:0px 4px 20px rgba(0,0,0,0.12);overflow:hidden;",v.b,";"),w=e=>{let t=(0,l.useRef)(null),n=e.targetRef.current.clientWidth,{overlayProps:c}=(0,o.t)({targetRef:e.targetRef,overlayRef:t,placement:"bottom start",offset:5,isOpen:e.state.isOpen});return(0,r.tZ)(h,{css:[(0,a.iv)("width:",n,"px;"),m],...(0,i.d)(e.overlayProps,c),ref:t,isOpen:e.state.isOpen,onClose:e.state.close,children:e.children})}}}]);
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.