https://www.abf.se/wp-content/themes/abf-wp/build/assets/get-similar-courses-by-location-6-zqS6vE.js
1import{h as r}from"./htmx.min-BZUFxl1-.js";import{i as a,g as n}from"./app-CHTT3Rax.js";window.htmx=r;async function t(i){const e=i.closest("[data-similar-courses-section]"),o=e==null?void 0:e.querySelector('[data-target="similar-courses"]');if(!o)return!1;const s=await n();a(s)&&window.htmx.ajax("GET","/wp-json/abf/v1/similar-courses",{target:o,values:{coords:s,slug:e.dataset.slug}}),i.remove()}async function d(i){const e=document.querySelectorAll(i);(!navigator.geolocation||a(window.geolocation_coordinates))&&e.forEach(o=>o.remove()),e.forEach(o=>{window.geolocation_permission==="granted"?t(o):window.geolocation_permission==="denied"?o.remove():o.addEventListener("click",s=>{s.preventDefault(),t(o)})})}export{d as default}; 2//# sourceMappingURL=get-similar-courses-by-location-6-zqS6vE.js.map
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.