PageSourceSearch

https://www.starlight.org/_next/static/chunks/8861.acafd6643a3a4b20.js

js starlight.org collected 2026-09-24 18:20:33 UTC 2,214 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8861],{28861:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CitySearch:()=>u});var a=r(41996),o=r(41728),l=r(91272),s=r(47845),n=r(19952);function i(e){let{className:t}=e;return(0,a.jsxs)("svg",{className:(0,n.cn)("h-6 w-6 animate-spin",t),fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"11",stroke:"currentColor",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M2.98933 18.3093C1.82574 16.6476 1.14436 14.6964 1.02052 12.6715C0.896671 10.6467 1.33518 8.627 2.28758 6.83581C3.23997 5.04463 4.66914 3.5517 6.41708 2.52208C8.16502 1.49246 10.1636 0.966271 12.192 1.00168",stroke:"currentColor",strokeWidth:"2"})]})}var c=r(41775),d=r.n(c);function u(e){let{onSelectCity:t,onClear:r}=e,[c,u]=o.useState(""),[p,h]=o.useState(!1),{placesService:m,placePredictions:g,getPlacePredictions:y,isPlacePredictionsLoading:v}=(0,l.A)({apiKey:"AIzaSyD3RybA20TLuAV28cUjHs4gfOUNQrjaG7g",debounce:1e3,options:{types:["(regions)"],componentRestrictions:{country:"us"}}}),x=e=>{u(e.description),h(!1),null==m||m.getDetails({placeId:e.place_id},e=>{var r;let a=null==(r=e.address_components.filter(e=>e.types.includes("administrative_area_level_1")))?void 0:r[0];t({name:e.vicinity,administrative:a?a.long_name:"",latlng:{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}})})};return o.useEffect(()=>{""===c&&r()},[r,c]),(0,a.jsxs)("div",{className:(0,n.cn)("mx-auto max-w-md",d().root),children:[(0,a.jsx)(s.p,{id:"city-search",onChange:e=>{y({input:e.target.value}),u(e.target.value),h(!0)},placeholder:"Type a city or zip code",value:c.replace(", USA","")}),p&&(0,a.jsxs)("div",{className:"border-border/50 mt-2 flex flex-col overflow-hidden rounded-lg border p-1 shadow-lg",children:[v&&(0,a.jsx)(i,{className:"text-blue mx-auto my-3"}),null==g?void 0:g.map(e=>(0,a.jsx)("button",{className:"font-greycliff-bold point hover:bg-secondary/5 w-full justify-start rounded px-5 py-3",onClick:()=>x(e),children:e.description.replace(", USA","")},e.place_id))]})]})}},41775:e=>{e.exports={root:"city-search_root__BK5IR"}}}]);
2//# sourceMappingURL=8861.acafd6643a3a4b20.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.