PageSourceSearch

https://www.interlaken.swiss/dist/js/geolocation-BZTRVG2v.js

js interlaken.swiss collected 2026-09-25 00:14:43 UTC 966 bytes, 1 lines download raw bytes

1import{t as e}from"./helperLib-B7ilb_e4.js";var t=null,n=!1;function r(){if(e()){let e=localStorage.getItem(`ndsmetasearch_userLocation`);return e&&e.length>0?JSON.parse(localStorage.getItem(`ndsmetasearch_userLocation`)):!1}return!1}function i(r){if(e()){let e={lat:r.coords.latitude,lon:r.coords.longitude};localStorage.setItem(`ndsmetasearch_userLocation`,JSON.stringify(e)),n?t.dispatchEvent(new CustomEvent(`userLocationChange`)):t.emit(`userLocationChange`)}}function a(r){if(e()){let e={lat:r.coords.latitude,lon:r.coords.longitude};localStorage.setItem(`ndsmetasearch_userLocation`,JSON.stringify(e)),n?t.dispatchEvent(new CustomEvent(`userLocationChange`)):t.emit(`userLocationChange`)}}function o(){console.log(`ndsmetasearch: error on geolocation`),t&&t.emit(`userLocationError`)}function s(s,c=!1){return n=c,e()?(!t&&s&&(t=s),r()||(navigator.geolocation.getCurrentPosition(i,o),navigator.geolocation.watchPosition(a,o),!1)):void 0}export{s as n,r as t};

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.