(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8568],{18568:(n,t,e)=>{"use strict";e.r(t),e.d(t,{MapComponent:()=>i});var r=e(95155),o=e(12115),c=e(85752),a=e.n(c);function i(n){let{countries:t,onCountrySelect:e,selectedCountry:c}=n,i=(0,o.useRef)(null),u=(0,o.useRef)(null);return(0,o.useEffect)(()=>(!i.current&&u.current&&(i.current=a().map(u.current).setView([20,0],2),a().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(i.current),a().control.zoom({position:"bottomright"}).addTo(i.current)),()=>{i.current&&(i.current.remove(),i.current=null)}),[]),(0,o.useEffect)(()=>{i.current&&(i.current.eachLayer(n=>{if(n instanceof a().Marker){var t;null==(t=i.current)||t.removeLayer(n)}}),t.forEach(n=>{let t=Math.min(Math.max(20,5*n.count),40),r=a().divIcon({html:'