PageSourceSearch

https://bluerevolution-cc.manus.space/assets/MapPage-DnHGavjz.js

js bluerevolution-cc.manus.space collected 2026-10-03 05:02:07 UTC 5,830 bytes, 8 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Globe3D-BOKP6bZZ.js","assets/editor-BhGk7_S1.js","assets/leaflet-DcfcX7a_.js","assets/mapbox-BPFQ-Sfv.js","assets/mapbox-gl-DEKaLS0d.js","assets/mapbox-gl-vV3jbIp0.css","assets/index-BjIHAQhU.js","assets/trpc-DqtxhgQo.js","assets/index-DsdD9fV2.css","assets/countryTranslations--xXtAg9U.js","assets/check-DFqoFjW9.js","assets/copy-XdjMT1NJ.js"])))=>i.map(i=>d[i]);
2import{b as i,a as b,_ as h}from"./index-BjIHAQhU.js";import{j as e}from"./editor-BhGk7_S1.js";import{b as l}from"./leaflet-DcfcX7a_.js";import"./trpc-DqtxhgQo.js";import"./mapbox-BPFQ-Sfv.js";const m=l.lazy(()=>h(()=>import("./Globe3D-BOKP6bZZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])));function P(){const{data:d=[]}=i.countries.list.useQuery(),[s,p]=l.useState(["sure","very_probable","probable","uncertain"]),{data:n}=i.contactLeads.byCountry.useQuery({statuses:["sure","very_probable","probable","uncertain"]},{refetchOnWindowFocus:!1}),u=a=>{p({sure:["sure"],very_probable:["sure","very_probable"],probable:["sure","very_probable","probable"],uncertain:["sure","very_probable","probable","uncertain"]}[a])},o=l.useMemo(()=>s.length===4?"uncertain":s.length===3?"probable":s.length===2?"very_probable":"sure",[s]),x=l.useMemo(()=>{if(!n)return{};const a={};for(const[t,r]of Object.entries(n)){const c=r.filter(g=>s.includes(g.status));c.length>0&&(a[t]=c)}return a},[n,s]);return e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:50",className:"w-screen min-h-screen bg-[#000814] flex flex-col",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:52",className:"h-screen relative overflow-hidden",children:e.jsx(l.Suspense,{"data-loc":"client/src/pages/MapPage.tsx:53",fallback:e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:54",className:"w-full h-full flex items-center justify-center",children:e.jsx(b,{"data-loc":"client/src/pages/MapPage.tsx:55",className:"w-12 h-12 animate-spin text-[#0047FF]"})}),children:e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:58",className:"w-full h-full",children:[e.jsx("style",{"data-loc":"client/src/pages/MapPage.tsx:59",children:`
3              /* Force Globe3D to fill entire screen */
4              .globe-fullscreen > div {
5                height: 100% !important;
6                max-height: none !important;
7              }
8            `}),e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:66",className:"globe-fullscreen w-full h-full",children:e.jsx(m,{"data-loc":"client/src/pages/MapPage.tsx:67",countries:d,contactLeadsByCountry:x||{},selectedStatuses:s})})]})})}),e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:78",className:"w-full p-4 bg-[#000814]",children:e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:79",className:"max-w-2xl mx-auto bg-[#001a3d]/90 backdrop-blur-md rounded-lg p-4 border border-white/10",children:[e.jsx("h3",{"data-loc":"client/src/pages/MapPage.tsx:80",className:"text-sm font-semibold text-white mb-3 text-center",children:"Show Potential Countries"}),e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:83",className:"max-w-md mx-auto px-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:84",className:"relative pt-1 pb-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:86",className:"relative h-2 bg-gray-700 rounded-full",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:88",className:"absolute top-0 left-0 h-full w-1/3 bg-[#2563EB] rounded-l-full"}),e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:89",className:"absolute top-0 left-1/3 h-full w-1/3 bg-[#3B82F6]"}),e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:90",className:"absolute top-0 left-2/3 h-full w-1/3 bg-[#60A5FA] rounded-r-full"}),["sure","very_probable","probable","uncertain"].map((a,t)=>{const r=o===a,c=["0%","33.33%","66.66%","100%"];return e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:97",className:`absolute top-1/2 -translate-y-1/2 rounded-full bg-white border-2 border-white shadow-md transition-all duration-200 ${r?"w-4 h-4":"w-3 h-3"}`,style:{left:c[t],marginLeft:r?"-8px":"-6px"}},a)})]}),e.jsx("input",{"data-loc":"client/src/pages/MapPage.tsx:109",type:"range",min:"0",max:"3",step:"1",value:["sure","very_probable","probable","uncertain"].indexOf(o),onChange:a=>{u(["sure","very_probable","probable","uncertain"][parseInt(a.target.value)])},className:"absolute -top-2 -left-2 w-[calc(100%+16px)] h-12 opacity-0 cursor-pointer",style:{margin:0}}),e.jsxs("div",{"data-loc":"client/src/pages/MapPage.tsx:122",className:"flex justify-between mt-2 text-xs",children:[e.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:123",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:124",className:"w-3 h-3 rounded",style:{backgroundColor:"#2563EB"}}),"Sure"]}),e.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:127",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:128",className:"w-3 h-3 rounded",style:{backgroundColor:"#3B82F6"}}),"Very Probable"]}),e.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:131",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:132",className:"w-3 h-3 rounded",style:{backgroundColor:"#60A5FA"}}),"Probable"]}),e.jsxs("span",{"data-loc":"client/src/pages/MapPage.tsx:135",className:"text-white flex items-center gap-1",children:[e.jsx("div",{"data-loc":"client/src/pages/MapPage.tsx:136",className:"w-3 h-3 rounded",style:{backgroundColor:"#93C5FD"}}),"Uncertain"]})]})]}),e.jsx("p",{"data-loc":"client/src/pages/MapPage.tsx:141",className:"text-xs text-gray-400 mt-2 text-center",children:"Move the slider to adjust the confidence threshold"})]})]})})]})}export{P 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.