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AM,WAAY,KAAK,SAAS,GAC/D,SAAS,iBAAiB,KAAK,MAAM,WAAY,KAAK,SAAS,EACjE,GACC,CACD,IAAK,uBACL,MAAO,WACL,SAAS,oBAAoB,UAAW,KAAK,UAC7C,SAAS,oBAAoB,KAAK,MAAM,WAAY,KAAK,SAAS,GAClE,SAAS,oBAAoB,KAAK,MAAM,WAAY,KAAK,SAAS,EACpE,GACC,CACD,IAAK,WACL,MAAO,SAAkB,GACL,KAAd,EAAE,SAAgB,KAAK,MAAM,iBACnC,GACC,CACD,IAAK,UACL,MAAO,SAAiB,GAClB,KAAK,MAAQ,KAAK,IAAI,SAAS,EAAE,SAAS,KAAK,MAAM,gBAAgB,EAC3E,GACC,CACD,IAAK,SACL,MAAO,SAAgB,GACrB,KAAK,IAAM,CACb,GACC,CACD,IAAK,SACL,MAAO,WACL,IAAI,EAAQ,OAAO,OAAO,CAAC,EAAG,KAAK,OAC/B,EAAW,EAAM,SAKrB,cAJO,EAAM,uBACN,EAAM,gBACN,EAAM,kBACN,EAAM,WACO,OAAgB,QAAE,cAAc,MAAO,SAAS,CAClE,IAAK,KAAK,QACT,GAAQ,EACb,KAGK,CACT,CA9DiC,GAgEjC,QAAiB,QAAI,cAErB,gBAAgB,cAAe,YAAa,CAC1C,SAAU,WAAoB,QAAE,QAAQ,WACxC,gBAAiB,WAAoB,QAAE,KAAK,WAC5C,WAAY,WAAoB,QAAE,OAClC,WAAY,WAAoB,QAAE,SAGpC,gBAAgB,cAAe,eAAgB,CAC7C,WAAY,QACZ,WAAY","file":"/npm/react-escape-outside@0.1.2/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-escape-outside@0.1.2/dist/index.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  value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\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 _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\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) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { 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 _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\nvar EscapeOutside = /*#__PURE__*/function (_Component) {\n  _inherits(EscapeOutside, _Component);\n\n  var _super = _createSuper(EscapeOutside);\n\n  function EscapeOutside() {\n    var _this;\n\n    _classCallCheck(this, EscapeOutside);\n\n    _this = _super.call(this);\n    _this.onEscape = _this.onEscape.bind(_assertThisInitialized(_this));\n    _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n    _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  _createClass(EscapeOutside, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      document.addEventListener(\"keydown\", this.onEscape);\n      document.addEventListener(this.props.mouseEvent, this.onClick, true);\n      document.addEventListener(this.props.touchEvent, this.onClick, true);\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      document.removeEventListener(\"keydown\", this.onEscape);\n      document.removeEventListener(this.props.mouseEvent, this.onClick, true);\n      document.removeEventListener(this.props.touchEvent, this.onClick, true);\n    }\n  }, {\n    key: \"onEscape\",\n    value: function onEscape(e) {\n      if (e.keyCode === 27) this.props.onEscapeOutside();\n    }\n  }, {\n    key: \"onClick\",\n    value: function onClick(e) {\n      if (this.ref && !this.ref.contains(e.target)) this.props.onEscapeOutside(e);\n    }\n  }, {\n    key: \"getRef\",\n    value: function getRef(ref) {\n      this.ref = ref;\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var props = Object.assign({}, this.props);\n      var children = props.children;\n      delete props.onEscapeOutside;\n      delete props.children;\n      delete props.mouseEvent;\n      delete props.touchEvent;\n      return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({\n        ref: this.getRef\n      }, props), children);\n    }\n  }]);\n\n  return EscapeOutside;\n}(_react.Component);\n\nexports[\"default\"] = EscapeOutside;\n\n_defineProperty(EscapeOutside, \"propTypes\", {\n  children: _propTypes[\"default\"].element.isRequired,\n  onEscapeOutside: _propTypes[\"default\"].func.isRequired,\n  mouseEvent: _propTypes[\"default\"].string,\n  touchEvent: _propTypes[\"default\"].string\n});\n\n_defineProperty(EscapeOutside, \"defaultProps\", {\n  mouseEvent: \"click\",\n  touchEvent: \"touchend\"\n});"]}