PageSourceSearch

https://www.ahk-colombia.com/build/assets/globe-teaser-CgHQFnxY.js

js ahk-colombia.com collected 2026-10-02 17:16:52 UTC 2,241 bytes, 1 lines download raw bytes

1import{d as x,o as E,a as L,b as S,c as _,e as z,r as G}from"./app-BQ-43nIL.js";import{g as M,a as O,b as C}from"./globeBackgroundImage-DwiFMXCX.js";import"./_commonjsHelpers-CqkleIqs.js";const V=527,U=x({__name:"globe-teaser",props:{pins:{}},setup(h){const s=G(null);let a=null,u=!1;const d=h;E(()=>{v(),L(s,([{isIntersecting:e}])=>{e&&!u&&(u=!0,w())})});const f={mobile:16,tablet:48},b=()=>{const e=window.outerWidth;let t=0,n,o;return e<768?(t=f.mobile,n=250,o=e-2*t):e>=768&&e<992?(t=f.tablet,n=420,o=e-2*t):(n=477,o=V),{width:o,height:n}};async function v(){if(!s.value){console.error("Globe container is not found.");return}a=new M(s.value).globeImageUrl(O).backgroundImageUrl(C).showAtmosphere(!0).atmosphereColor("#cce6ff").atmosphereAltitude(.25),m(),window.addEventListener("resize",m),a.controls().enableZoom=!1,a.controls().enableRotate=!1,a.controls().enablePan=!1;const e=s.value.querySelector("canvas");e&&(e.style.touchAction="auto"),await I()}function w(){y(10,40,1.6,1.6,370)}async function I(){if(!d.pins||d.pins.length===0){console.error("No marker data available.");return}a?.htmlElementsData(d.pins).htmlElement(e=>{const t=document.createElement("div");t.classList.add("marker"),t.style.position="relative",t.style.pointerEvents="auto",t.style.display="flex",t.style.flexDirection="column",t.style.alignItems="center";const n=document.createElement("div");return n.classList.add("marker-wrapper"),n.style.width="20px",n.style.height="20px",t.appendChild(n),t})}function y(e,t,n,o,i){let l=null;const k=()=>{l&&clearInterval(l)};l=setInterval(()=>{let g=!0;i>e&&(i=Math.max(i-.2,e),g=!1),a?.pointOfView({lat:10,lng:i,altitude:o},0),g&&(k(),A(t+5,e,.6))},20)}function A(e,t,n){let i=a?.pointOfView().lat,r=a?.pointOfView().lng,c=a?.pointOfView().altitude;const p=setInterval(()=>{let l=!0;Math.abs(i-e)>.1&&(i+=(e-i)*.01,l=!1),Math.abs(r-t)>.1&&(r+=(t-r)*.01,l=!1),Math.abs(c-n)>.01&&(c+=(n-c)*.01,l=!1),a?.pointOfView({lat:i,lng:r,altitude:c},0),l&&(clearInterval(p),u=!1)},20)}function m(){const{width:e,height:t}=b();a.width(e).height(t)}return S(()=>{window.removeEventListener("resize",m)}),(e,t)=>(_(),z("div",{ref_key:"globeContainer",ref:s,class:"globe-teaser-visualisation"},null,512))}});export{U as default};

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.