{"version":3,"file":"@south-paw-DR5WVZB8.js","sources":["../../node_modules/@south-paw/react-vector-maps/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n VectorMap: () => VectorMap\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// lib/react-shim.js\nvar React = __toESM(require(\"react\"));\n\n// src/VectorMap.tsx\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nfunction VectorMap({\n id,\n name,\n layers,\n tabIndex = 0,\n layerProps,\n checkedLayers,\n currentLayers,\n children,\n ...other\n}) {\n if (!layers || layers.length === 0) {\n console.error(\n `[@south-paw/react-vector-maps] No 'layers' prop provided. Did you spread a map object onto the component?`\n );\n return null;\n }\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-label\": name,\n ...other,\n children: [\n children,\n layers.map((layer) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"path\", {\n tabIndex,\n \"aria-label\": layer.name,\n \"aria-checked\": checkedLayers && checkedLayers.includes(layer.id),\n \"aria-current\": currentLayers && currentLayers.includes(layer.id),\n ...layer,\n ...layerProps\n }, layer.id))\n ]\n }, id);\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n VectorMap\n});\n//# sourceMappingURL=index.js.map"],"names":["__create","__defProp","__getOwnPropDesc","__getOwnPropNames","__getProtoOf","__hasOwnProp","__export","target","all","name","__copyProps","to","from","except","desc","key","__toESM","mod","isNodeMode","__toCommonJS","src_exports","VectorMap","dist","require$$0","import_jsx_runtime","require$$1","id","layers","tabIndex","layerProps","checkedLayers","currentLayers","children","other","layer"],"mappings":"+CACA,IAAIA,EAAW,OAAO,OAClBC,EAAY,OAAO,eACnBC,EAAmB,OAAO,yBAC1BC,EAAoB,OAAO,oBAC3BC,EAAe,OAAO,eACtBC,EAAe,OAAO,UAAU,eAChCC,EAAW,CAACC,EAAQC,IAAQ,CAC9B,QAASC,KAAQD,EACfP,EAAUM,EAAQE,EAAM,CAAE,IAAKD,EAAIC,CAAI,EAAG,WAAY,EAAI,CAAE,CAChE,EACIC,EAAc,CAACC,EAAIC,EAAMC,EAAQC,IAAS,CAC5C,GAAIF,GAAQ,OAAOA,GAAS,UAAY,OAAOA,GAAS,WACtD,QAASG,KAAOZ,EAAkBS,CAAI,EAChC,CAACP,EAAa,KAAKM,EAAII,CAAG,GAAKA,IAAQF,GACzCZ,EAAUU,EAAII,EAAK,CAAE,IAAK,IAAMH,EAAKG,CAAG,EAAG,WAAY,EAAED,EAAOZ,EAAiBU,EAAMG,CAAG,IAAMD,EAAK,UAAU,CAAE,EAEvH,OAAOH,CACT,EACIK,EAAU,CAACC,EAAKC,EAAYX,KAAYA,EAASU,GAAO,KAAOjB,EAASI,EAAaa,CAAG,CAAC,EAAI,CAAE,EAAEP,EACrF,CAACO,GAAO,CAACA,EAAI,WAAahB,EAAUM,EAAQ,UAAW,CAAE,MAA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