(window["webpackJsonpLIS"] = window["webpackJsonpLIS"] || []).push([[2],{

/***/ "./node_modules/@nimius/target-enhancement/src/plugins/focus-blur.js":
/*!***************************************************************************!*\
  !*** ./node_modules/@nimius/target-enhancement/src/plugins/focus-blur.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 TargetEnhancementFocusBlurPlugin; });\n/* harmony import */ var _abstract_target_enhancement_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../abstract-target-enhancement.plugin */ \"./node_modules/@nimius/target-enhancement/src/abstract-target-enhancement.plugin.js\");\n/* harmony import */ var _nimius_event_utility_src_fire_event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nimius/event-utility/src/fire-event */ \"./node_modules/@nimius/event-utility/src/fire-event.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 _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 * @description Plugin/Extension for target enhancement that enables opening the first target when the toggling\n * element receives focus. While opening, focus is set to the first target and an event listener is attached for\n * the blur event, so the focused target is closed as soon as it loses focus.\n *\n * @example <caption>Initializes behavior attribute for [data-target-enhancement] elements</caption>\n * // <a href=\"#element\" data-target-enhancement data-target-enhancement-plugins.0.name=\"focus-blur-behavior\">show</a>\n * // <div id=\"element\">content</div>\n */\n\nvar TargetEnhancementFocusBlurPlugin = /*#__PURE__*/function (_AbstractTargetEnhanc) {\n  _inherits(TargetEnhancementFocusBlurPlugin, _AbstractTargetEnhanc);\n\n  var _super = _createSuper(TargetEnhancementFocusBlurPlugin);\n\n  function TargetEnhancementFocusBlurPlugin() {\n    _classCallCheck(this, TargetEnhancementFocusBlurPlugin);\n\n    return _super.apply(this, arguments);\n  }\n\n  _createClass(TargetEnhancementFocusBlurPlugin, [{\n    key: \"initialize\",\n    value: function initialize(element, targets) {\n      var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n      element.addEventListener('focus', function () {\n        setTimeout(function () {\n          return Object(_nimius_event_utility_src_fire_event__WEBPACK_IMPORTED_MODULE_1__[\"fireEvent\"])(element, 'target-enhancement.open');\n        }, options.delay || 150);\n      });\n      element.addEventListener('target-enhancement.open', function (event) {\n        targets[0].setAttribute('tabindex', 0);\n        targets[0].focus();\n\n        var fireCloseEvent = function fireCloseEvent() {\n          targets[0].removeEventListener('blur', fireCloseEvent, false);\n          setTimeout(function () {\n            return Object(_nimius_event_utility_src_fire_event__WEBPACK_IMPORTED_MODULE_1__[\"fireEvent\"])(event.target, 'target-enhancement.close');\n          }, options.delay || 150);\n        };\n\n        targets[0].addEventListener('blur', fireCloseEvent);\n      });\n    }\n  }]);\n\n  return TargetEnhancementFocusBlurPlugin;\n}(_abstract_target_enhancement_plugin__WEBPACK_IMPORTED_MODULE_0__[\"AbstractTargetEnhancementPlugin\"]);\n\n\n\n//# sourceURL=webpack://LIS/./node_modules/@nimius/target-enhancement/src/plugins/focus-blur.js?");

/***/ })

}]);