PageSourceSearch

https://app.coax.com.au/_next/static/chunks/4025.561ee32fc9de1982.js

js coax.com.au collected 2026-09-24 12:18:51 UTC 3,022 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb7c99c9-d740-4bf0-a984-faa97eabc5f0",e._sentryDebugIdIdentifier="sentry-dbid-bb7c99c9-d740-4bf0-a984-faa97eabc5f0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4025,6120],{36120:function(e,t,a){a.r(t);var n=a(85893),l=a(67294),r=a(17669),c=a(33311),s=a(53907),o=a(36492),i=a(54053);let d={street_number:"address1",route:"address1",locality:"city",administrative_area_level_2:"city",administrative_area_level_1:"province",postal_code:"zip",country:"country"};t.default=e=>{let{onChange:t,value:a,onAddressSelect:u,...f}=e,{businessCountry:p}=(0,i.Z)(),[y,b]=(0,l.useState)([]),[_,g]=(0,l.useState)(!1),[v]=(0,s.c)(a,300);(0,o.a)({queryKey:["address-location",v],queryFn:async()=>{let e={input:v,...p&&{includedRegionCodes:[p]}},{suggestions:t}=await google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions(e);return b(t.filter(e=>e.placePrediction).map(e=>({label:e.placePrediction.text.text,value:e.placePrediction.text.text,placeId:e.placePrediction.placeId}))),t},enabled:_&&!!v}),(0,l.useEffect)(()=>{let e=new c.aN({apiKey:"AIzaSyAUHWQ7pOr4EMfN9nM-qQdMttw9cFpxYVY",libraries:["places"]});e.load().then(()=>{g(!0)})},[]);let m=(0,l.useCallback)(async(e,t)=>{if(!t.placeId||!u)return;let a=new google.maps.places.Place({id:t.placeId});await a.fetchFields({fields:["addressComponents"]}),a.addressComponents&&u(function(e){let t={address1:"",city:"",province:"",zip:"",country:""},a="",n="";for(let u of e){var l,r,c,s,o,i;let e=u.types.find(e=>e in d);if(e)switch(e){case"street_number":a=null!==(l=u.longText)&&void 0!==l?l:"";break;case"route":n=null!==(r=u.longText)&&void 0!==r?r:"";break;case"locality":case"administrative_area_level_2":t.city||(t.city=null!==(c=u.longText)&&void 0!==c?c:"");break;case"administrative_area_level_1":t.province=null!==(s=u.shortText)&&void 0!==s?s:"";break;case"postal_code":t.zip=null!==(o=u.longText)&&void 0!==o?o:"";break;case"country":t.country=null!==(i=u.shortText)&&void 0!==i?i:""}}return t.address1=[a,n].filter(Boolean).join(" "),t}(a.addressComponents))},[u]);return(0,n.jsx)(r.Z,{options:y,placeholder:"Search address",onChange:t,onSelect:m,value:a,style:{width:"100%"},...f,"data-sentry-element":"AutoComplete","data-sentry-component":"AddressAutocomplete","data-sentry-source-file":"AddressAutocomplete.tsx"})}},53907:function(e,t,a){a.d(t,{c:function(){return useDebouncedValue}});var n=a(67294);function useDebouncedValue(e,t,a={leading:!1}){let[l,r]=(0,n.useState)(e),c=(0,n.useRef)(!1),s=(0,n.useRef)(null),o=(0,n.useRef)(!1),cancel=()=>window.clearTimeout(s.current);return(0,n.useEffect)(()=>{c.current&&(!o.current&&a.leading?(o.current=!0,r(e)):(cancel(),s.current=window.setTimeout(()=>{o.current=!1,r(e)},t)))},[e,a.leading,t]),(0,n.useEffect)(()=>(c.current=!0,cancel),[]),[l,cancel]}}}]);

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.