PageSourceSearch

https://bluecode.com/_next/static/chunks/1489.d468fd56ce50aa20.js

js bluecode.com collected 2026-10-01 11:54:35 UTC 2,055 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1489],{3870:(e,r,t)=>{t.r(r),t.d(r,{GlobeV2:()=>c});var l=t(9792),o=t(2332),n=t(6899),u=t(1840);let a={backgroundColor:"#112953",highlightedColor:"#00A1FF",defaultColor:"rgba(0,161,255,0.5)"},c=e=>{let{countries:r}=e,t=(0,o.useRef)(null),c=(0,o.useRef)(null),[i,s]=(0,o.useState)(null),f=()=>{let e=t.current;return e&&e.offsetWidth?1.5*e.offsetWidth:550},h=((e,r)=>{let t=(0,o.useRef)(e),l=(0,o.useRef)(null);(0,o.useEffect)(()=>{t.current=e},[e]);let n=(0,o.useCallback)(function(){for(var e=arguments.length,o=Array(e),n=0;n<e;n++)o[n]=arguments[n];l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>t.current(...o),r)},[r]);return(0,o.useEffect)(()=>()=>{l.current&&window.clearTimeout(l.current)},[]),n})(()=>{if(!c.current)return;let e=f();c.current.width(e),c.current.height(e)},200),d=(0,o.useCallback)(e=>{var t;return(null==r?void 0:r.includes(null!=(t=e.properties.ISO_A2)?t:""))?a.highlightedColor:a.defaultColor},[r]);return((0,o.useEffect)(()=>{if(!r)return;let e=!0;return(async()=>{try{let t=await fetch("/api/globe-data",{cache:"force-cache"});if(!t.ok)throw Error("Failed to fetch globe data");let l=await t.json();if(e){var r;s(null!=(r=l.features)?r:[])}}catch(r){e&&s([])}})(),()=>{e=!1}},[r]),(0,o.useEffect)(()=>{let e=t.current;if(!e||!(null==i?void 0:i.length))return;let r=f();try{let t=new u.A(e,{}).width(r).height(r).hexPolygonsData(i).hexPolygonResolution(3).hexPolygonMargin(.3).hexPolygonUseDots(!0).backgroundColor(a.backgroundColor).hexPolygonColor(d),l=t.controls();l.enableZoom=!1,l.autoRotate=!0,l.autoRotateSpeed=1,c.current=t,h(),window.addEventListener("resize",h)}catch(e){console.error(e)}return()=>{window.removeEventListener("resize",h),c.current=null,e.innerHTML=""}},[h,d,i]),(0,o.useEffect)(()=>{c.current&&c.current.hexPolygonColor(d)},[d]),r)?(0,l.jsx)("div",{ref:t,className:(0,n.A)("relative [&>div>div]:flex [&>div>div]:justify-center","w-[350px] shrink-0 aspect-square sm:w-[450px] md:w-[550px]")}):null}}}]);

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.