PageSourceSearch

https://earthroulette.com/_nuxt/CZVUWdQQ.js

js earthroulette.com collected 2026-09-24 10:30:32 UTC 825 bytes, 1 lines download raw bytes

1import{s as a}from"./BCUYHeYk.js";function f(){const o=a(!1),t=a(null),r=a(null);async function u(){if(typeof window>"u"||!("geolocation"in navigator))return t.value="Geolocation not available in this environment.",null;o.value=!0,t.value=null;try{const n=await new Promise((c,s)=>{navigator.geolocation.getCurrentPosition(c,s,{enableHighAccuracy:!0,timeout:1e4,maximumAge:12e4})}),{latitude:i,longitude:l}=n.coords;r.value={lat:i,lon:l};const e=await $fetch("/api/airports/nearest",{params:{lat:i,lon:l,limit:1}});return e&&e.length>0&&e[0]?.code?{code:e[0].code,city:e[0].city,country:e[0].country}:(t.value="Could not determine your nearest airport.",null)}catch(n){return t.value=n?.message||"Failed to acquire geolocation.",null}finally{o.value=!1}}return{loading:o,error:t,coords:r,detectNearestIata:u}}export{f 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.