UNPKG

avlmap-npm

Version:
132 lines (121 loc) 5.62 MB
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./index.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "../node_modules/classnames/index.js": /*!*******************************************!*\ !*** ../node_modules/classnames/index.js ***! \*******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif ( true && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {}\n}());\n\n\n//# sourceURL=webpack:///../node_modules/classnames/index.js?"); /***/ }), /***/ "./components/AccordianSelector.js": /*!*****************************************!*\ !*** ./components/AccordianSelector.js ***! \*****************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react_onclickoutside__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-onclickoutside */ \"./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js\");\nfunction _templateObject2() {\n var data = _taggedTemplateLiteral([\"\\n background-color: \", \";\\n color: \", \";\\n cursor: pointer;\\n position: absolute;\\n left: \", \"px;\\n height: 40px;\\n width: calc(100% - \", \"px - 2px);\\n display: flex;\\n flex-direction: row;\\n overflow: hidden;\\n border-right: 2px solid \", \";\\n transition: top 0.5s, color 0.15s, background-color 0.15s, border-color 0.15s;\\n\\n &.selected.open {\\n border-right-color: \", \";\\n color: \", \";\\n }\\n\\n :hover {\\n border-right-color: \", \";\\n background-color: \", \";\\n color: \", \";\\n }\\n\\n > * {\\n :first-child {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n width: 60px;\\n height: 40px;\\n }\\n :last-child {\\n display: flex;\\n justify-content: flex-start;\\n align-items: center;\\n width: calc(100% - \", \"px);\\n padding-left: 10px;\\n }\\n }\\n\"]);\n\n _templateObject2 = function _templateObject2() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n position: relative;\\n width: 100%;\\n transition: height 0.5s;\\n background-color: \", \";\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\nvar PADDING = 10;\n\nvar AccordionSelector = /*#__PURE__*/function (_React$Component) {\n _inherits(AccordionSelector, _React$Component);\n\n var _super = _createSuper(AccordionSelector);\n\n function AccordionSelector() {\n var _this;\n\n _classCallCheck(this, AccordionSelector);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this.state = {\n open: false\n };\n _this.timeout = null;\n return _this;\n }\n\n _createClass(AccordionSelector, [{\n key: \"componentsWillUnmount\",\n value: function componentsWillUnmount() {\n clearTimeout(this.timeout);\n }\n }, {\n key: \"onSelect\",\n value: function onSelect(e, value) {\n e.stopPropagation();\n\n if (!this.state.open) {\n return this.toggleAccordion();\n }\n\n if (value !== this.props.value) {\n this.props.onSelect(value);\n }\n\n this.toggleAccordion();\n }\n }, {\n key: \"toggleAccordion\",\n value: function toggleAccordion() {\n var open = !this.state.open;\n this.setState({\n open: open\n });\n }\n }, {\n key: \"handleClickOutside\",\n value: function handleClickOutside() {\n this.state.open && this.toggleAccordion();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var open = this.state.open,\n _this$props = this.props,\n options = _this$props.options,\n value = _this$props.value;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(AccordionContainer, {\n style: {\n height: \"\".concat(open ? options.length * 40 + (options.length - 1) * 10 + PADDING * 2 : 40 + PADDING * 2, \"px\")\n }\n }, options.map(function (_ref, i) {\n var label = _ref.label,\n Icon = _ref.Icon;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(AccordionOption, {\n key: label,\n hasIcon: Boolean(Icon),\n className: classnames__WEBPACK_IMPORTED_MODULE_2___default()({\n open: open,\n selected: label === value\n }),\n style: {\n top: \"\".concat(open ? i * 50 + PADDING : PADDING, \"px\"),\n zIndex: label === value ? 10 : 5 - i\n },\n onClick: function onClick(e) {\n return _this2.onSelect(e, label);\n },\n top: i * 50 + PADDING\n }, !Boolean(Icon) ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Icon, null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", null, label));\n }));\n }\n }]);\n\n return AccordionSelector;\n}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);\n\nAccordionSelector.defaultProps = {\n value: null,\n options: [],\n onSelect: function onSelect() {}\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(react_onclickoutside__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(AccordionSelector));\nvar AccordionContainer = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div(_templateObject(), function (props) {\n return props.theme.sidePanelHeaderBg;\n});\nvar AccordionOption = styled_components__WEBPACK_IMPORTED_MODULE_1__[\"default\"].div(_templateObject2(), function (props) {\n return props.theme.sidePanelBg;\n}, function (props) {\n return props.theme.textColor;\n}, PADDING, PADDING * 2, function (props) {\n return props.theme.sidePanelBg;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.theme.panelBackgroundHover;\n}, function (props) {\n return props.theme.panelBackgroundHover;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.hasIcon ? 60 : 0;\n});\n\n//# sourceURL=webpack:///./components/AccordianSelector.js?"); /***/ }), /***/ "./components/DraggableModal.js": /*!**************************************!*\ !*** ./components/DraggableModal.js ***! \**************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return DraggableModal; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _common_icons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/icons */ \"./components/common/icons/index.js\");\n/* harmony import */ var _common_icons__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_icons__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _common_styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./common/styled-components */ \"./components/common/styled-components.js\");\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.get */ \"./node_modules/lodash.get/index.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-selection */ \"./node_modules/d3-selection/src/index.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _templateObject5() {\n var data = _taggedTemplateLiteral([\"\\n\\tdisplay: inline-block;\\n\\tcolor: \", \";\\n\\tposition: absolute;\\n\\tright: 5px;\\n\\ttop: 5px;\\n\\tcursor: pointer;\\n\\tpadding: 0px 4px 0px 4px;\\n\\tborder-radius: 4px;\\n\\n\\t:hover {\\n\\t\\tcolor: \", \";\\n\\t\\tbackground-color: \", \";\\n\\t}\\n\"]);\n\n _templateObject5 = function _templateObject5() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject4() {\n var data = _taggedTemplateLiteral([\"\\n\\tposition: absolute;\\n\\tbottom: 5px;\\n\\tright: 5px;\\n\\twidth: 25px;\\n\\theight: 25px;\\n\\tborder-right: 2px solid \", \";\\n\\tborder-bottom: 2px solid \", \";\\n\\tz-index: 50;\\n\\ttransition: color 0.15s, background-color 0.15s;\\n\\n\\t:hover {\\n\\t\\tborder-right: 3px solid \", \";\\n\\t\\tborder-bottom: 3px solid \", \";\\n\\t}\\n\"]);\n\n _templateObject4 = function _templateObject4() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject3() {\n var data = _taggedTemplateLiteral([\"\\n\\tposition: absolute;\\n\\ttop: 5px;\\n\\tleft: 5px;\\n\\tborder-radius: 4px;\\n\\tcolor: \", \";\\n\\tz-index: 50;\\n\\ttransition: color 0.15s, background-color 0.15s;\\n\\n\\tsvg {\\n\\t\\tdisplay: block;\\n\\t}\\n\\n\\t:hover {\\n\\t\\tcolor: \", \";\\n\\t\\tbackground-color: \", \";\\n\\t}\\n\"]);\n\n _templateObject3 = function _templateObject3() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject2() {\n var data = _taggedTemplateLiteral([\"\\n\\t\", \";\\n\\toverflow: auto;\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tpadding-top: 35px;\\n\"]);\n\n _templateObject2 = function _templateObject2() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n\\tposition: absolute;\\n\\tz-index: 500;\\n\\tbackground-color: \", \";\\n\\tcolor: \", \";\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\n\n\n\n\n\n\nvar DraggableContainer = styled_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"].div(_templateObject(), function (props) {\n return props.theme.sidePanelBg;\n}, function (props) {\n return props.theme.textColor;\n});\nvar DraggableInner = styled_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"].div(_templateObject2(), function (props) {\n return props.theme.scrollBar;\n});\nvar DragHandle = styled_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"].div(_templateObject3(), function (props) {\n return props.theme.textColor;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.theme.panelBackgroundHover;\n});\nvar ResizeHandle = styled_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"].div(_templateObject4(), function (props) {\n return props.theme.textColor;\n}, function (props) {\n return props.theme.textColor;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.theme.textColorHl;\n});\nvar CloseWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3__[\"default\"].div(_templateObject5(), function (props) {\n return props.theme.textColor;\n}, function (props) {\n return props.theme.textColorHl;\n}, function (props) {\n return props.theme.panelBackgroundHover;\n});\n\nvar noop = function noop() {};\n\nvar DraggableModal = /*#__PURE__*/function (_React$Component) {\n _inherits(DraggableModal, _React$Component);\n\n var _super = _createSuper(DraggableModal);\n\n function DraggableModal() {\n var _this;\n\n _classCallCheck(this, DraggableModal);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this.container = null;\n _this.dragHandle = null;\n _this.resizeHandle = null;\n _this.state = {\n pos: [0, 0],\n dragging: false,\n resizing: false,\n prevPos: [0, 0],\n size: _toConsumableArray(_this.props.startSize)\n };\n return _this;\n }\n\n _createClass(DraggableModal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"select\"](this.dragHandle).on(\"mousedown.avl\", function () {\n return _this2.startDragOrResize(\"dragging\");\n }, {\n bubbles: false\n });\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"select\"](this.resizeHandle).on(\"mousedown.avl\", function () {\n return _this2.startDragOrResize(\"resizing\");\n }, {\n bubbles: false\n });\n this.setState(function (state, props) {\n if (!_this2.container) return null;\n if (_this2.resizeOnIdChange()) return null;\n\n var _state$size = _slicedToArray(state.size, 2),\n width = _state$size[0],\n height = _state$size[1],\n parent = _this2.container.parentElement,\n clientWidth = parent.clientWidth,\n clientHeight = parent.clientHeight;\n\n if (typeof props.startPos === \"string\") {\n switch (props.startPos) {\n case \"top\":\n return {\n pos: [clientWidth * 0.5 - width * 0.5, 20]\n };\n\n case \"bottom\":\n return {\n pos: [clientWidth * 0.5 - width * 0.5, clientHeight - height - 20]\n };\n\n case \"bottom-right\":\n return {\n pos: [clientWidth - width - 50, clientHeight - height - 20]\n };\n }\n } else {\n return {\n pos: _toConsumableArray(props.startPos)\n };\n }\n\n return null;\n });\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"select\"](document.body).on(\"mousemove.avl\", null).on(\"mouseleave.avl\", null).on(\"mouseup.avl\", null);\n }\n }, {\n key: \"resizeOnIdChange\",\n value: function resizeOnIdChange(oldProps) {\n if (this.props.show && this.props.resizeOnIdChange && lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(oldProps, 'meta.id', undefined) !== lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(this.props, 'meta.id', undefined)) {\n var size = _toConsumableArray(lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(this.props, 'meta.startSize', this.state.size)),\n startPos = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(this.props, 'meta.startPos', this.props.startPos);\n\n var pos = _toConsumableArray(this.state.pos);\n\n var _size = _slicedToArray(size, 2),\n width = _size[0],\n height = _size[1],\n parent = this.container.parentElement,\n clientWidth = parent.clientWidth,\n clientHeight = parent.clientHeight;\n\n if (typeof startPos === \"string\") {\n switch (startPos) {\n case \"top\":\n {\n pos = [clientWidth * 0.5 - width * 0.5, 20];\n break;\n }\n\n case \"bottom\":\n {\n pos = [clientWidth * 0.5 - width * 0.5, clientHeight - height - 20];\n break;\n }\n\n case \"bottom-right\":\n pos = [clientWidth - width - 50, clientHeight - height - 20];\n break;\n }\n } else {\n pos = _toConsumableArray(startPos);\n }\n\n this.setState({\n size: size,\n pos: pos\n });\n return true;\n }\n\n return false;\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(oldProps) {\n this.resizeOnIdChange(oldProps);\n }\n }, {\n key: \"startDragOrResize\",\n value: function startDragOrResize(type) {\n var _this$setState;\n\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"select\"](document.body).on(\"mousemove.avl\", this.dragOrResize.bind(this)).on(\"mouseleave.avl\", this.endDragOrResize.bind(this)).on(\"mouseup.avl\", this.endDragOrResize.bind(this));\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].stopPropagation();\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].preventDefault();\n var prevPos = d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"mouse\"](document.body);\n this.setState((_this$setState = {}, _defineProperty(_this$setState, type, true), _defineProperty(_this$setState, \"prevPos\", prevPos), _this$setState));\n }\n }, {\n key: \"dragOrResize\",\n value: function dragOrResize() {\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].stopPropagation();\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].preventDefault();\n\n var _this$state$prevPos = _slicedToArray(this.state.prevPos, 2),\n x1 = _this$state$prevPos[0],\n y1 = _this$state$prevPos[1],\n _d3selection$mouse = d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"mouse\"](document.body),\n _d3selection$mouse2 = _slicedToArray(_d3selection$mouse, 2),\n x2 = _d3selection$mouse2[0],\n y2 = _d3selection$mouse2[1];\n\n if (this.state.dragging) {\n var _this$state$pos = _slicedToArray(this.state.pos, 2),\n x = _this$state$pos[0],\n y = _this$state$pos[1];\n\n var newState = {\n pos: [Math.max(0, x + (x2 - x1)), Math.max(0, y + (y2 - y1))],\n prevPos: [x2, y2]\n };\n this.setState(newState);\n } else if (this.state.resizing) {\n var _this$state$size = _slicedToArray(this.state.size, 2),\n width = _this$state$size[0],\n height = _this$state$size[1];\n\n var _this$props = this.props,\n minWidth = _this$props.minWidth,\n minHeight = _this$props.minHeight;\n var _newState = {\n size: [Math.max(minWidth, width + (x2 - x1)), Math.max(minHeight, height + (y2 - y1))],\n prevPos: [x2, y2]\n };\n this.setState(_newState);\n }\n }\n }, {\n key: \"endDragOrResize\",\n value: function endDragOrResize() {\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"select\"](document.body).on(\"mousemove.avl\", null).on(\"mouseleave.avl\", null).on(\"mouseup.avl\", null);\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].stopPropagation();\n d3_selection__WEBPACK_IMPORTED_MODULE_5__[\"event\"].preventDefault();\n this.setState({\n dragging: false,\n resizing: false\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var _this$state = this.state,\n _this$state$pos2 = _slicedToArray(_this$state.pos, 2),\n left = _this$state$pos2[0],\n top = _this$state$pos2[1],\n _this$state$size2 = _slicedToArray(_this$state.size, 2),\n width = _this$state$size2[0],\n height = _this$state$size2[1];\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(DraggableContainer, {\n style: {\n left: \"\".concat(Math.max(0, left), \"px\"),\n top: \"\".concat(Math.max(0, top), \"px\"),\n width: \"\".concat(width, \"px\"),\n height: \"\".concat(height, \"px\"),\n display: this.props.show ? \"block\" : \"none\"\n },\n ref: function ref(comp) {\n return _this3.container = comp;\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(DraggableInner, null, this.props.children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CloseWrapper, {\n onClick: this.props.onClose\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"fa fa-2x fa-close\",\n \"data-tip\": true,\n \"data-for\": \"close-modal-btn\"\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_common_styled_components__WEBPACK_IMPORTED_MODULE_2__[\"Tooltip\"], {\n id: \"close-modal-btn\",\n effect: \"solid\",\n delayShow: 500\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, \"Close Modal\"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(DragHandle, {\n ref: function ref(comp) {\n return _this3.dragHandle = comp;\n },\n style: {\n cursor: this.state.dragging ? \"grabbing\" : \"grab\"\n },\n onMouseDown: function onMouseDown(e) {\n return e.stopPropagation();\n }\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_common_icons__WEBPACK_IMPORTED_MODULE_1__[\"VertDots\"], {\n height: \"26px\"\n })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(ResizeHandle, {\n ref: function ref(comp) {\n return _this3.resizeHandle = comp;\n },\n style: {\n cursor: \"nwse-resize\"\n }\n }));\n }\n }]);\n\n return DraggableModal;\n}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);\n\nDraggableModal.defaultProps = {\n startPos: \"bottom\",\n startSize: [800, 500],\n minWidth: 200,\n minHeight: 200,\n onClose: noop,\n meta: null,\n resizeOnIdChange: false\n};\n\n\n//# sourceURL=webpack:///./components/DraggableModal.js?"); /***/ }), /***/ "./components/MapActions/index.js": /*!****************************************!*\ !*** ./components/MapActions/index.js ***! \****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireDefault(__webpack_require__(/*! react */ \"react\"));\n\nvar _styledComponents = _interopRequireDefault(__webpack_require__(/*! styled-components */ \"./node_modules/styled-components/dist/styled-components.browser.esm.js\"));\n\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../node_modules/classnames/index.js\"));\n\nvar _styledComponents2 = __webpack_require__(/*! ../common/styled-components */ \"./components/common/styled-components.js\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _templateObject2() {\n var data = _taggedTemplateLiteral([\"\\n\\tposition: relative;\\n\\n\\tcolor: #ccc;\\n\\tbackground-color: #999;\\n border: 2px solid #999;\\n\\n\\twidth: 40px;\\n\\theight: 40px;\\n\\tborder-radius: 20px;\\n\\n\\tmargin-top 10px;\\n\\t:first-child {\\n\\t\\tmargin-top 0px;\\n\\t}\\n\\n\\tdisplay: flex;\\n justify-content: center;\\n align-items: center;\\n\\n cursor: pointer;\\n\\n transition: border-color 0.15s, color 0.15s, background-color 0.15s;\\n\\n :hover {\\n \\tborder: 2px solid #fff;\\n\\t\\tcolor: #fff;\\n\\t\\tbackground-color: #aaa;\\n }\\n &.disabled {\\n \\tpointer-events: all;\\n \\tcursor: not-allowed;\\n \\tcolor: #aaa;\\n\\t\\tbackground-color: #888;\\n\\t\\tborder-color: #888;\\n }\\n &.disabled:hover {\\n \\tborder-color: \", \";\\n }\\n\\n\\tsvg {\\n\\t\\twidth: 40px;\\n\\t\\theight: 40px;\\n\\t\\tborder-radius: 20px;\\n\\n\\t\\tdisplay: block;\\n\\t\\tposition: absolute;\\n\\t\\ttop: -2px;\\n\\t\\tleft: -2px;\\n\\n\\t\\tline {\\n\\t\\t\\tstroke: \", \";\\n\\t\\t\\tstroke-width: 4px;\\n\\t\\t\\ttransition: stroke 0.15s;\\n\\t\\t}\\n\\t\\t:hover line {\\n\\t\\t\\tstroke: \", \";\\n\\t\\t}\\n\\t}\\n\"]);\n\n _templateObject2 = function _templateObject2() {\n return data;\n };\n\n return data;\n}\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n\\tposition: absolute;\\n\\ttop: \", \"px;\\n\\tleft: \", \"px;\\n\\ttransition: left 0.25s;\\n\\tz-index: 50;\\n\\tdisplay: flex;\\n\\tflex-direction: column;\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) {\n if (!raw) {\n raw = strings.slice(0);\n }\n\n return Object.freeze(Object.defineProperties(strings, {\n raw: {\n value: Object.freeze(raw)\n }\n }));\n}\n\nvar ActionContainer = _styledComponents[\"default\"].div(_templateObject(), function (props) {\n return props.sidebar ? 50 : 20;\n}, function (props) {\n return props.sidebar && props.isOpen ? 340 : props.sidebar && !props.isOpen ? 40 : 20;\n});\n\nvar ActionItem = _styledComponents[\"default\"].div(_templateObject2(), function (props) {\n return props.theme.errorColor;\n}, function (props) {\n return props.theme.errorColor;\n}, function (props) {\n return props.theme.errorColor;\n});\n\nvar NO_OP = function NO_OP() {};\n\nvar MapActions = /*#__PURE__*/function (_React$Component) {\n _inherits(MapActions, _React$Component);\n\n var _super = _createSuper(MapActions);\n\n function MapActions() {\n var _this;\n\n _classCallCheck(this, MapActions);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n _this.MOUNTED = false;\n _this.state = {\n waitingActions: []\n };\n return _this;\n }\n\n _createClass(MapActions, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.MOUNTED = true;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.MOUNTED = false;\n }\n }, {\n key: \"doAndPauseAction\",\n value: function doAndPauseAction(e, disableFor, action, id) {\n var _this2 = this;\n\n action(e);\n var waitingActions = [].concat(_toConsumableArray(this.state.waitingActions), [id]);\n this.setState({\n waitingActions: waitingActions\n });\n setTimeout(function () {\n var waitingActions = _this2.state.waitingActions.filter(function (d) {\n return d !== id;\n });\n\n _this2.MOUNTED && _this2.setState({\n waitingActions: waitingActions\n });\n }, disableFor);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var actions = this.props.layers.filter(function (l) {\n return _this3.props.activeLayers.includes(l.name);\n }).reduce(function (actions, layer) {\n if (layer.active) {\n actions.push.apply(actions, _toConsumableArray(Object.keys(layer.mapActions).map(function (actionName) {\n var id = \"\".concat(layer.name, \"-\").concat(actionName);\n\n var _layer$mapActions$act = layer.mapActions[actionName],\n _layer$mapActions$act2 = _layer$mapActions$act.action,\n action = _layer$mapActions$act2 === void 0 ? NO_OP : _layer$mapActions$act2,\n _layer$mapActions$act3 = _layer$mapActions$act.disabled,\n disabled = _layer$mapActions$act3 === void 0 ? false : _layer$mapActions$act3,\n _layer$mapActions$act4 = _layer$mapActions$act.disableFor,\n disableFor = _layer$mapActions$act4 === void 0 ? 0 : _layer$mapActions$act4,\n rest = _objectWithoutProperties(_layer$mapActions$act, [\"action\", \"disabled\", \"disableFor\"]);\n\n var isDisabled = disabled || _this3.state.waitingActions.includes(id);\n\n var boundAction = NO_OP.bind(layer);\n\n if (Array.isArray(action)) {\n var a = action[0];\n\n if (a in _this3.props.actionMap) {\n var _this3$props$actionMa;\n\n boundAction = (_this3$props$actionMa = _this3.props.actionMap[a]).bind.apply(_this3$props$actionMa, [layer, layer.name].concat(_toConsumableArray(action.slice(1))));\n }\n } else {\n boundAction = action.bind(layer);\n }\n\n return _objectSpread({\n action: disableFor ? function (e) {\n