!function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach(function(e){r(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./rolldown-runtime-legacy-Djb2rrqm.js","./index-legacy-Bbj6l0yZ.js","./index.modern-legacy-DpYSJnkR.js","./utils-CjIvvA5e-legacy-BArgSH63.js"],function(e,r){var n,o,i,l,c,u,a;function s(e,t,r){switch(e){case"fill":return{fillColor:t,fillOpacity:.25};case"line":return{strokeColor:t,strokeWeight:"LineString"===r?6:2};default:return{}}}return e("default",function({sources:e}){let[r,n]=(0,u.useState)(null),[o,i]=(0,u.useState)([]),f=(0,u.useContext)(l);return(0,u.useEffect)(()=>{f&&n(f.map)},[f]),(0,u.useEffect)(()=>{if(o.forEach(e=>{null==e||e.setMap(null)}),!r||void 0===e||0===e.length)return;let n=e.map(e=>{let n={type:e.type||"MultiPolygon",clickable:!1};if(Array.isArray(e.layer))e.layer.forEach(t=>{let r=s(t.type,t.color,e.type);Object.assign(n,r)});else{let t=s(e.layer.type,e.layer.color,e.type);Object.assign(n,t)}let o,i=c(e.geometry,n.type);return o="LineString"===e.type?new google.maps.Polyline(t({strokeWeight:6,path:i},n)):new google.maps.Polygon(t({strokeWeight:0,fillOpacity:0,paths:i},n)),o.setMap(r),o});return i(n),n.forEach(e=>{e.setMap(r)}),()=>{n.forEach(e=>{null==e||e.setMap(null)})}},[r,e]),(0,a.jsx)(a.Fragment,{})}),{setters:[function(e){n=e.a},function(e){o=e.St,i=e.q},function(e){l=e.i},function(e){c=e.n}],execute:function(){u=n(o(),1),a=i()}}})}();
//# sourceMappingURL=Google-qvGtRAuh-legacy-B5vmNpdj.js.map