PageSourceSearch

https://autoskola-abc.lv/assets/use-google-maps-tV6Jx437.js

js autoskola-abc.lv collected 2026-10-09 22:01:30 UTC 1,333 bytes, 1 lines download raw bytes

1import{a as f,b as p,r}from"./index-CC7LeppY.js";const u=f({method:"GET"}).handler(p("edef5286c29228e39110d26bd010dfb868f99ced9f4787fa3fa8ea680fc470ef")),g="AIzaSyA3EPFO1OwXjJRvbZh3LlAegVzbFFfDnPY",w="82ccd35bc85924b23e1e12dc7a461faa";function y(){const[l,s]=r.useState(()=>typeof window<"u"&&!!window.google?.maps),[d,a]=r.useState(null);return r.useEffect(()=>{if(typeof window>"u")return;if(window.google?.maps){s(!0);return}let t=!1;return(async()=>{let o=g,n=w;try{const e=await u();e?.key&&(o=e.key),e?.channel&&(n=e.channel)}catch{}if(!t){if(!o){a("Google Maps API atslēga nav konfigurēta");return}if(!window.__gmapsInitPromise){window.__gmapsInitPromise=new Promise(c=>{window.__gmapsInitResolve=c,window.initGoogleMaps=()=>c()});const e=document.createElement("script"),i=new URLSearchParams({key:o,loading:"async",callback:"initGoogleMaps"});n&&i.set("channel",n),e.src=`https://maps.googleapis.com/maps/api/js?${i.toString()}`,e.async=!0,e.onerror=()=>a("Neizdevās ielādēt Google Maps"),window.gm_authFailure=()=>a("Google Maps atslēgai nav atļauta šī vietne (RefererNotAllowedMapError). Google Cloud Console → API atslēgas → pievieno šo domēnu atļautajiem HTTP referrer."),document.head.appendChild(e)}window.__gmapsInitPromise.then(()=>{t||s(!0)})}})(),()=>{t=!0}},[]),{ready:l,error:d}}export{y as u};

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.