1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3658],{3658:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(95155),o=s(88661),r=s.n(o),n=s(12115),l=s(4755),c=s(5384),i=s(46845);s(35603),s(51644);var d=s(55027),p=s.n(d),x=s(17237);function m(){let[e,t]=(0,n.useState)(null),[s,o]=(0,n.useState)(!0),[d,p]=(0,n.useState)(null);(0,n.useEffect)(()=>{(async()=>{try{o(!0);let e=null;for(let t of["https://raw.githubusercontent.com/PublicaMundi/MappingAPI/master/data/geojson/us-counties.json","https://raw.githubusercontent.com/plotly/datasets/master/geojson-counties-fips.json"])try{let s=await fetch(t);if(s.ok){e=await s.json();break}}catch(e){continue}if(!e)throw Error("All data sources failed");t(e)}catch(e){console.error("Error fetching county data:",e),p("Failed to load map data. Please check your internet connection and try again.")}finally{o(!1)}})()},[]);let m={fillColor:"#f0f0f0",weight:1,opacity:1,color:"#999",fillOpacity:.1},b=e=>{let t=e.name||e.county||e.NAME||e.county_name||"Unknown County";return t.includes(",")&&(t=t.split(",")[0].trim()),t},u=e=>{let t=e.state||e.STATE||e.state_name||"Unknown State";return t.includes(",")&&(t=t.split(",")[0].trim()),t};return s?(0,a.jsx)("div",{className:"w-full h-screen flex items-center justify-center bg-gray-100",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(x.A,{size:48}),(0,a.jsx)("p",{className:"text-gray-600",children:"Loading county map..."}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"This may take a moment"})]})}):d?(0,a.jsx)("div",{className:"w-full h-screen flex items-center justify-center bg-gray-100",children:(0,a.jsxs)("div",{className:"text-center max-w-md mx-auto px-4",children:[(0,a.jsx)("div",{className:"text-red-600 text-4xl mb-4",children:"\uD83D\uDDFAï¸"}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-800 mb-2",children:"Map Unavailable"}),(0,a.jsx)("p",{className:"text-gray-600 mb-4",children:d}),(0,a.jsx)("button",{onClick:()=>window.location.reload(),className:"px-6 py-3 bg-[#e2c752]-600 text-white rounded-lg hover:bg-[#e2c752]-700 transition-colors",children:"Try Again"})]})}):(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8 w-full h-screen relative",children:[(0,a.jsx)("div",{className:"jsx-df6da735bbe14c8 absolute top-0 left-0 right-0 z-[1000] bg-white/90 backdrop-blur-sm border-b border-gray-200 px-6 py-4",children:(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8",children:[(0,a.jsx)("h1",{className:"jsx-df6da735bbe14c8 text-2xl font-bold text-gray-800",children:"US County Map"}),(0,a.jsx)("p",{className:"jsx-df6da735bbe14c8 text-sm text-gray-600",children:"Hover over counties to see names"})]}),(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8 flex items-center space-x-4",children:[(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8 text-sm text-gray-600",children:[(0,a.jsx)("span",{className:"jsx-df6da735bbe14c8 inline-block w-3 h-3 bg-[#e2c752]-500 rounded mr-2"}),"Counties"]}),(0,a.jsxs)("div",{className:"jsx-df6da735bbe14c8 text-sm text-gray-600",children:[(0,a.jsx)("span",{style:{backgroundColor:"#bf6206"},className:"jsx-df6da735bbe14c8 inline-block w-3 h-3 rounded mr-2"}),"Hovered"]})]})]})}),(0,a.jsxs)(l.W,{center:[39.8283,-98.5795],zoom:4,style:{height:"100vh",width:"100%"},zoomControl:!0,scrollWheelZoom:!0,doubleClickZoom:!0,boxZoom:!0,dragging:!0,children:[(0,a.jsx)(c.e,{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),e&&(0,a.jsx)(i.k,{data:e,style:m,onEachFeature:(e,t)=>{if(e.properties){let s=b(e.properties),a=u(e.properties);t.bindTooltip("".concat(s,", ").concat(a),{permanent:!1,direction:"top",className:"custom-tooltip"}),t.on({mouseover:e=>{e.target.setStyle({fillColor:"#e0e0e0",weight:2,opacity:1,color:"#666",fillOpacity:.3})},mouseout:e=>{e.target.setStyle(m)},click:t=>{let s=t.target,a=b(e.properties),o=u(e.properties);s.bindPopup('\n <div class="popup-content">\n <h3 class="font-bold text-lg mb-2">'.concat(a,'</h3>\n <p class="text-gray-600">').concat(o,'</p>\n <div class="mt-3">\n <button class="bg-[#e2c752]-600 text-white px-3 py-1 rounded text-sm hover:bg-[#e2c752]-700">\n View Details\n </button>\n </div>\n </div>\n ')).openPopup()}})}}})]}),(0,a.jsx)(r(),{id:"df6da735bbe14c8",children:'.custom-tooltip{background:rgba(0,0,0,.9);color:white;border:none;border-radius:6px;padding:8px 12px;font-size:14px;font-weight:500;box-shadow:0 4px 12px rgba(0,0,0,.3);white-space:nowrap}.custom-tooltip::before{border-top-color:rgba(0,0,0,.9)}.leaflet-popup-content-wrapper{border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15)}.leaflet-popup-content{margin:12px;
1min-width:200px}.popup-content{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}.leaflet-tile-pane{filter:grayscale(100%)brightness(1.2)contrast(.8)}'})]})}delete p().Icon.Default.prototype._getIconUrl,p().Icon.Default.mergeOptions({iconRetinaUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon-2x.png",iconUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-icon.png",shadowUrl:"https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/images/marker-shadow.png"})}}]);
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.