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KAAK,MAAM,UAAW,MAAO,GAC1C,EACA,QAAQ,QAAQ,cAAc,MAAO,CAAE,UAAW,iBAAkB,MAAO,EAAoB,YAAa,KAAK,aACjH,KAAK,MAAM,SAEb,KAGM,CACR,CApQyB,GAsQzB,mBAAmB,aAAe,CACjC,QAAS,CAAC,EACV,UAAW,IAEX,OAAQ,GACR,MAAO,IAEP,eAAgB,GAChB,aAAc,IAGf,QAAQ,QAAU","file":"/npm/react-resizable-component@1.1.0/dist/ResizableComponent.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-resizable-component@1.1.0/dist/ResizableComponent.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ResizableComponent = function (_Component) {\n\t_inherits(ResizableComponent, _Component);\n\n\tfunction ResizableComponent(props) {\n\t\t_classCallCheck(this, ResizableComponent);\n\n\t\tvar _this2 = _possibleConstructorReturn(this, (ResizableComponent.__proto__ || Object.getPrototypeOf(ResizableComponent)).call(this, props));\n\n\t\t_this2._startDrag = function (e) {\n\t\t\t_this2.makeParentHighlightable(false);\n\t\t\t_this2.setState({\n\t\t\t\tmouseHeldDown: true,\n\t\t\t\toriginalY: e.clientY,\n\t\t\t\toriginalX: e.clientX\n\t\t\t}, function () {\n\t\t\t\tif (this.props.onStartResize) this.props.onStartResize((this.state.boxWidth - this.state.originalBoxWidth) / this.state.step, (this.state.boxHeight - this.state.originalBoxHeight) / this.state.step);\n\t\t\t});\n\t\t};\n\n\t\t_this2._stopDrag = function (e) {\n\t\t\t_this2.makeParentHighlightable(true);\n\t\t\t// Only invoke onStopResize if this component has started resizing\n\t\t\tif (_this2.state.mouseHeldDown && _this2.props.onStopResize) {\n\t\t\t\t_this2.props.onStopResize((_this2.state.boxWidth - _this2.state.originalBoxWidth) / _this2.state.step, (_this2.state.boxHeight - _this2.state.originalBoxHeight) / _this2.state.step);\n\t\t\t}\n\t\t\tif (!_this2.state.allowGhostResize) {\n\t\t\t\t_this2.setState({\n\t\t\t\t\tmouseHeldDown: false,\n\t\t\t\t\tinitialBoxHeight: _this2.state.boxHeight,\n\t\t\t\t\tinitialBoxWidth: _this2.state.boxWidth\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t// Ghost resizing\n\t\t\t\t// Change the dimensions back to the original\n\t\t\t\t_this2.setState({\n\t\t\t\t\tmouseHeldDown: false,\n\t\t\t\t\tboxHeight: _this2.state.originalBoxHeight,\n\t\t\t\t\tboxWidth: _this2.state.originalBoxWidth\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t_this2._resizeDiv = function (e) {\n\t\t\tif (_this2.state.mouseHeldDown) {\n\t\t\t\tvar distanceY = e.clientY - _this2.state.originalY;\n\t\t\t\tvar distanceX = e.clientX - _this2.state.originalX;\n\n\t\t\t\tvar newHeight = _this2.state.initialBoxHeight + distanceY;\n\t\t\t\tvar newWidth = _this2.state.initialBoxWidth + distanceX;\n\n\t\t\t\tvar steppingRemainderY = distanceY % _this2.state.step;\n\t\t\t\tvar steppingRemainderX = distanceX % _this2.state.step;\n\n\t\t\t\t// NOTE: For checking whether the new dimensions violates the minimum constraints,\n\t\t\t\t// The steeping margin is given as allowance so that the box can be re-sized to the smallest\n\t\t\t\t// dimension smoothly.\n\t\t\t\tvar heightCanChange = newHeight >= _this2.state.minHeight - _this2.state.steppingMargin && newHeight <= _this2.state.maxHeight + _this2.state.steppingMargin // newHeight is below maxHeight\n\t\t\t\t&& steppingRemainderY <= _this2.state.steppingMargin // A little allowance is given for stepping\n\t\t\t\t&& _this2.state.direction.indexOf('s') > -1;\n\n\t\t\t\tvar widthCanChange = newWidth >= _this2.state.minWidth - _this2.state.steppingMargin && newWidth <= _this2.state.maxWidth + _this2.state.steppingMargin && steppingRemainderX <= _this2.state.steppingMargin && _this2.state.direction.indexOf('e') > -1;\n\n\t\t\t\t// If new dimensions are indeed lesser than the minimum constraint or greater than the maximum constraint,\n\t\t\t\t// set the dimension to the minimum/maximum respectively\n\t\t\t\tnewHeight = newHeight - steppingRemainderY;\n\t\t\t\tnewWidth = newWidth - steppingRemainderX;\n\t\t\t\tif (newHeight < _this2.state.minHeight) newHeight = _this2.state.minHeight;\n\t\t\t\tif (newWidth < _this2.state.minWidth) newWidth = _this2.state.minWidth;\n\t\t\t\tif (newHeight > _this2.state.maxHeight) newHeight = _this2.state.maxHeight;\n\t\t\t\tif (newWidth > _this2.state.maxWidth) newWidth = _this2.state.maxWidth;\n\n\t\t\t\t// If lockAspectRatio is true, we programatically calculate the width\n\t\t\t\tif (_this2.state.direction === 'se' && _this2.state.lockAspectRatio) {\n\t\t\t\t\tvar aspectRatio = _this2.state.originalBoxHeight / _this2.state.originalBoxWidth;\n\t\t\t\t\tnewWidth = newHeight / aspectRatio;\n\t\t\t\t}\n\n\t\t\t\t_this2.setState({\n\t\t\t\t\tboxHeight: heightCanChange ? newHeight : _this2.state.boxHeight,\n\t\t\t\t\tboxWidth: widthCanChange ? newWidth : _this2.state.boxWidth\n\t\t\t\t}, function () {\n\n\t\t\t\t\t// Callback for onDuringResize\n\t\t\t\t\t// Not called when step is active\n\t\t\t\t\tif (this.props.onDuringResize && this.state.step === 1) {\n\t\t\t\t\t\tthis.props.onDuringResize(this.state.boxWidth, this.state.boxHeight);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Callback for onEachStep\n\t\t\t\t\t// Only when step size has changed, then we invoke to callback\n\t\t\t\t\tif ((this.state.boxHeight !== this.state.currStepY || this.state.boxWidth !== this.state.currStepX) && this.props.onEachStep && this.state.step > 1) {\n\t\t\t\t\t\tthis.props.onEachStep((this.state.boxWidth - this.state.originalBoxWidth) / this.state.step, (this.state.boxHeight - this.state.originalBoxHeight) / this.state.step);\n\t\t\t\t\t\tthis.setState({\n\t\t\t\t\t\t\tcurrStepY: this.state.boxHeight,\n\t\t\t\t\t\t\tcurrStepX: this.state.boxWidth\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\t_this2.getResizeHandlerStyle = function () {\n\t\t\tvar resizeHandlerStyle = {};\n\n\t\t\tif (_this2.state.direction === 's') {\n\t\t\t\tresizeHandlerStyle = {\n\t\t\t\t\twidth: _this2.state.boxWidth + 'px',\n\t\t\t\t\theight: _this2.state.cursorMargin + 'px',\n\t\t\t\t\tcursor: 's-resize',\n\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\tbottom: '0px',\n\t\t\t\t\tleft: '0px'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (_this2.state.direction === 'e') {\n\t\t\t\tresizeHandlerStyle = {\n\t\t\t\t\twidth: _this2.state.cursorMargin + 'px',\n\t\t\t\t\theight: _this2.state.boxHeight + 'px',\n\t\t\t\t\tcursor: 'e-resize',\n\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\tbottom: '0px',\n\t\t\t\t\tright: '0px'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (_this2.state.direction === 'se') {\n\t\t\t\tresizeHandlerStyle = {\n\t\t\t\t\twidth: _this2.state.cursorMargin + 'px',\n\t\t\t\t\theight: _this2.state.cursorMargin + 'px',\n\t\t\t\t\tcursor: 'se-resize',\n\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\tbottom: '0px',\n\t\t\t\t\tright: '0px'\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tresizeHandlerStyle['zIndex'] = 1;\n\t\t\treturn resizeHandlerStyle;\n\t\t};\n\n\t\t_this2.makeParentHighlightable = function (highlight) {\n\t\t\t(0, _reactDom.findDOMNode)(_this2).parentNode.style.userSelect = highlight ? 'all' : 'none';\n\t\t\t(0, _reactDom.findDOMNode)(_this2).parentNode.style.mozUserSelect = highlight ? 'all' : 'none';\n\t\t\t(0, _reactDom.findDOMNode)(_this2).parentNode.style.webkitUserSelect = highlight ? 'all' : 'none';\n\t\t};\n\n\t\t_this2.state = {\n\t\t\t// Mouse events\n\t\t\tmouseHeldDown: false,\n\t\t\toriginalY: 0,\n\t\t\toriginalX: 0,\n\n\t\t\t// Dimensions of box\n\t\t\tdirection: _this2.props.direction,\n\t\t\tinitialBoxHeight: _this2.props.height,\n\t\t\tinitialBoxWidth: _this2.props.width,\n\t\t\tboxHeight: _this2.props.height,\n\t\t\tboxWidth: _this2.props.width,\n\t\t\tminHeight: _this2.props.options.minHeight || _this2.props.height,\n\t\t\tminWidth: _this2.props.options.minWidth || _this2.props.width,\n\t\t\tmaxHeight: _this2.props.options.maxHeight || Infinity,\n\t\t\tmaxWidth: _this2.props.options.maxWidth || Infinity,\n\t\t\tlockAspectRatio: _this2.props.options.lockAspectRatio || false,\n\t\t\tfullWidth: _this2.props.options.fullWidth || false,\n\n\t\t\t// Stepping of resizing\n\t\t\tstep: _this2.props.options.step || 1,\n\t\t\tcurrStepY: 0,\n\t\t\tcurrStepX: 0,\n\t\t\tsteppingMargin: _this2.props.steppingMargin,\n\t\t\toriginalBoxWidth: _this2.props.width,\n\t\t\toriginalBoxHeight: _this2.props.height,\n\n\t\t\t// Width of resizable handle\n\t\t\tcursorMargin: _this2.props.options.cursorMargin || _this2.props.cursorMargin,\n\n\t\t\t// Ghost Resizing\n\t\t\tallowGhostResize: _this2.props.options.allowGhostResize || false\n\t\t};\n\t\treturn _this2;\n\t}\n\n\t_createClass(ResizableComponent, [{\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tvar _this = this;\n\n\t\t\t(0, _reactDom.findDOMNode)(this).parentNode.addEventListener('mousemove', function (e) {\n\t\t\t\t_this._resizeDiv(e);\n\t\t\t});\n\t\t\t(0, _reactDom.findDOMNode)(this).parentNode.addEventListener('mouseup', function (e) {\n\t\t\t\t_this._stopDrag(e);\n\t\t\t});\n\t\t\t(0, _reactDom.findDOMNode)(this).parentNode.addEventListener('mouseleave', function (e) {\n\t\t\t\t_this._stopDrag(e);\n\t\t\t});\n\t\t}\n\n\t\t// Styles the resize handler according to the direction given\n\n\n\t\t// Helper function to make the all components in parent non-highlight-able\n\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar outerDivStyle = {\n\t\t\t\tbackgroundColor: 'transparent',\n\t\t\t\twidth: !this.state.allowGhostResize ? this.state.boxWidth + 'px' : this.state.fullWidth ? '100%' : this.state.originalBoxWidth,\n\t\t\t\theight: !this.state.allowGhostResize ? this.state.boxHeight + 'px' : this.state.originalBoxHeight,\n\t\t\t\tcursor: 'default',\n\t\t\t\tposition: 'relative'\n\t\t\t};\n\n\t\t\t// Merge in any custom styles and overwrite existing styles (if any)\n\t\t\tif (this.props.style) {\n\t\t\t\tvar customStyles = this.props.style;\n\t\t\t\tfor (var prop in customStyles) {\n\t\t\t\t\touterDivStyle[prop] = customStyles[prop];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar resizeHandlerStyle = this.getResizeHandlerStyle();\n\n\t\t\t// For ghostResizing\n\t\t\tvar highlightDiv;\n\t\t\tif (this.state.allowGhostResize) {\n\t\t\t\tvar ghostDivStyles = {\n\t\t\t\t\tzIndex: '1',\n\t\t\t\t\tdisplay: this.state.mouseHeldDown ? 'block' : 'none',\n\t\t\t\t\tbackgroundColor: '#000000',\n\t\t\t\t\topacity: '0.3',\n\t\t\t\t\twidth: this.state.fullWidth ? '100%' : this.state.boxWidth + 'px',\n\t\t\t\t\theight: this.state.boxHeight + 'px',\n\t\t\t\t\tcursor: 'default',\n\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\ttop: '0px',\n\t\t\t\t\tleft: '0px'\n\t\t\t\t};\n\t\t\t\tif (this.props.ghostCssStyles) {\n\t\t\t\t\tvar css = this.props.ghostCssStyles;\n\t\t\t\t\tfor (var prop in css) {\n\t\t\t\t\t\tghostDivStyles[prop] = css[prop];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thighlightDiv = _react2.default.createElement('div', { className: 'ghostDiv', style: ghostDivStyles });\n\t\t\t}\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ className: this.props.className, style: outerDivStyle },\n\t\t\t\thighlightDiv,\n\t\t\t\t_react2.default.createElement('div', { className: 'resize-handler', style: resizeHandlerStyle, onMouseDown: this._startDrag }),\n\t\t\t\tthis.props.children\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn ResizableComponent;\n}(_react.Component);\n\nResizableComponent.defaultProps = {\n\toptions: {},\n\tdirection: 's',\n\n\theight: 50,\n\twidth: 250,\n\n\tsteppingMargin: 20,\n\tcursorMargin: 10\n};\n\nexports.default = ResizableComponent;"]}