PageSourceSearch

https://www.bendix.com.au/_next/static/chunks/4522.940cd567bfccb75c.js

js bendix.com.au collected 2026-10-07 07:04:42 UTC 2,014 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4522],{14522:(e,o,l)=>{"use strict";l.r(o),l.d(o,{MapSearchBox:()=>d});var n=l(73365),t=l(44080),a=l(1521),s=l(99783),r=l(82154),i=l.n(r),u=l(10646);let c=e=>{let{options:o,placeholder:l,className:t,onChange:a,hideCaret:r=!1,showValue:c=!0,isFilter:d=!1,loadOptions:p}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(u.A,{inputId:"select",className:(0,s.A)(i().combobox,t),options:o,placeholder:null!=l?l:"Please select",onChange:a,loadOptions:p,controlShouldRenderValue:c,styles:{control:(e,o)=>({...e,padding:"0.25rem 1rem",border:o.isFocused||o.menuIsOpen?"1px solid grey":"",fontFamily:"var(--combobox-font)"}),placeholder:e=>({...e}),input:e=>({...e,caretColor:r?"transparent":""}),singleValue:e=>({...e}),indicatorSeparator:()=>({display:"none"}),menu:(e,o)=>({...e,display:o.options.length<1?"none":""}),option:e=>({...e}),clearIndicator:e=>({...e})},theme:e=>({...e})})})},d=e=>{let{country:o="",updateMap:l,onLocationSearch:s}=e,[r,i]=(0,a.useState)([]),[u,d]=(0,a.useState)(""),p=new Set(["country","region","postcode","district","place","locality"]),m=(0,t.wS)({accessToken:"pk.eyJ1IjoiZm1wZ3JvdXAiLCJhIjoiY21yOG9hc2NlMWpmNjJ5cTRuZXh2YTJieSJ9.Ye_E0p2gNUnY1i0sqUGbsw"});(0,a.useEffect)(()=>{d(new Date().toString())},[]);let b=async e=>{var l;
1let n=await m.suggest(e,{sessionToken:u,types:p,country:(null==o?void 0:o.length)>0?o:void 0}),t=(null==(l=n.suggestions)?void 0:l.map(e=>({label:e.name,value:e.mapbox_id})))||[];return i(n.suggestions),t},g=async e=>{let o=r.find(o=>o.mapbox_id===e.value);if(o){var n,t,a,i,c,d;let e=await m.retrieve(o,{sessionToken:u});if(null==e||null==(a=e.features)||null==(t=a[0])||null==(n=t.geometry)?void 0:n.coordinates){let o=null==e||null==(d=e.features)||null==(c=d[0])||null==(i=c.geometry)?void 0:i.coordinates;null==s||s(),l([o[0],o[1]])}}};return(0,n.jsx)(c,{loadOptions:b,showValue:!0,onChange:g,placeholder:"Enter suburb or postcode"})}},82154:e=>{e.exports={combobox:"combobox_combobox__X43HI"}}}]);

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.