1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["src_main_webpack_components_uikit_DxDrawer_DxDrawer_ts"],{95841:function(e,t,n){n.d(t,{A:function(){return h}});var r=n(43305),o=n(12285);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function l(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(null,arguments)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var h=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(n=l(this,t,[c(c({},{size:"default",disableBackdropClick:!1,mountElement:document.body,blockInteraction:!1,orientation:"right-to-left",closeLabel:""}),e)]),"drawer",void 0),b(n,"backdrop",void 0),b(n,"contentContainer",void 0),b(n,"closeButton",void 0),b(n,"mutationObserver",void 0),b(n,"keyDownHandler",void 0),b(n,"_triggerElement",null),b(n,"focu
1sGuard",void 0),b(n,"focusGuardHandler",void 0),n.init(n.options),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"init",value:function(e){var n,r,o,i,a,c,u=this.buildElement(e);e.className&&u.classList.add(e.className),null===(n=e.mountElement)||void 0===n||n.appendChild(u),e.disableBackdropClick||this.backdrop.addEventListener("click",this.closeDrawer.bind(this)),(r=t,o="init",i=this,c=f(d(1&(a=3)?r.prototype:r),o,i),2&a&&"function"==typeof c?function(e){return c.apply(i,e)}:c)([u])}},{key:"openDrawer",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0;this._triggerElement=null!=n?n:document.activeElement instanceof HTMLElement?document.activeElement:null,this.element.addEventListener("transitionend",function(n){n.target===e.drawer&&"transform"===n.propertyName&&e.isOpen()&&(e.options.showCloseButton&&e.closeButton&&e.closeButton.focus(),t&&e.trapFocus())}),this.toggleDrawer(!0),this.element.dispatchEvent(new CustomEvent("DxDrawer::open",{detail:{element:this.element}}))}},{key:"closeDrawer",value:function(){var e;this.toggleDrawer(!1),this.element.dispatchEvent(new CustomEvent("DxDrawer::close",{detail:{element:this.element}})),this.element.removeEventListener("keydown",this.keyDownHandler),null===(e=this.mutationObserver)||void 0===e||e.disconnect(),this._triggerElement&&document.body.contains(this._triggerElement)&&this._triggerElement.focus(),this._triggerElement=null,this.focusGuard&&this.focusGuardHandler&&this.focusGuard.removeEventListener("focus",this.focusGuardHandler)}},{key:"toggleDrawer",value:function(e){if(this.element.setAttribute("aria-expanded",(null!=e?e:!this.isOpen()).toString()),this.element.toggleAttribute("inert"),"boolean"==typeof e)return(e?!e:this.isOpen())?this.element.setAttribute("inert",""):this.element.removeAttribute("inert"),void this.element.classList.toggle("DxDrawer--open",e);this.element.classList.toggle("DxDrawer--open")}},{key:"isOpen",value:function(){return this.element.classList.contains("DxDrawer--open")}},{key:"isFocusable",value:function(e){if(!e)return!1;var t=window.getComputedStyle(e),n="none"!==t.display&&"hidden"!==t.visibility&&"0"!==t.opacity,r=document.body.contains(e),o=e.offsetWidth>0||e.offsetHeight>0,i=!e.disabled,a=!e.readOnly,c=e.tabIndex>=0;return n&&r&&o&&i&&a&&c}},{key:"trapFocus",value:function(){var e=this,t=function(){var t=Array.from(e.drawer.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])')).filter(e.isFocusable);return e.options.showCloseButton&&e.closeButton&&t.unshift(e.closeButton),t},n=t(),r=this.getFirstFocusableEl(n);null==r||r.focus(),this.focusGuard&&(this.focusGuardHandler=function(){var t=e.getFirstFocusableEl(n);null==t||t.focus()},this.focusGuard.addEventListener("focus",this.focusGuardHandler)),this.mutationObserver=new MutationObserver(function(){n=t()}),this.mutationObserver.observe(this.drawer,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","tabindex","style","class"]}),this.keyDownHandler=function(t){var r="Tab"===t.key,o="Escape"===t.key;if(r||o)if(o)e.closeDrawer();else{var i=e.getFirstFocusableEl(n),a=n[n.length-1];i&&a?t.shiftKey?document.activeElement===i&&(a.focus(),t.preventDefault()):document.activeElement===a&&(i.focus(),t.preventDefault()):t.preventDefault()}},this.element.addEventListener("keydown",this.keyDownHandler)}},{key:"injectContent",value:function(e){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.contentContainer.innerHTML=""),"string"==typeof e&&(this.contentContainer.innerHTML=e),e instanceof Element&&this.contentContainer.appendChild(e)}},{key:"on",value:function(e,t,n,r){this.element.addEventListener("DxDrawer::".concat(e),function(n){r&&r.trackEvent({eventAction:"click",eventCategory:"navigation",eventLabel:"drawer_".concat(e)}),t(n.detail)},n)}},{key:"buildElement",value:function(e){if(this.element=document.createElement("div"),this.element.classList.add("DxDrawer"),this.element.classList.add("DxDrawer--".concat(e.orientation)),e.blockInteraction&&this.element.classList.add("DxDrawer--block-interaction"),this.element.setAttribute("role","dialog"),this.element.setAttribute("aria-modal","true"),this.element.setAttribute("inert",""),this.element.setAttribute("aria-expanded","fal
1se"),this.drawer=document.createElement("div"),this.drawer.classList.add("DxDrawer__drawer","DxDrawer__content"),this.backdrop=document.createElement("div"),this.backdrop.classList.add("DxDrawer__backdrop"),e.showCloseButton){var t=document.createElement("button");t.classList.add("DxDrawer__close"),e.closeLabel&&t.setAttribute("aria-label",e.closeLabel);var n=document.createElement("span");n.classList.add("icon-close"),t.appendChild(n);var r=document.querySelector('meta[name="backdrop.close"]');if(r){var i=r.getAttribute("content")||"";t.setAttribute("aria-label",i)}t.addEventListener("click",this.closeDrawer.bind(this)),this.drawer.appendChild(t),this.closeButton=t}this.contentContainer=document.createElement("div"),this.contentContainer.classList.add("DxDrawer__content-container"),this.drawer.appendChild(this.contentContainer);var a=(0,o.Kp)("div",["DxDrawer__focus-guard"],{tabindex:"0",ariaHidden:"true"});return this.focusGuard=a,this.drawer.appendChild(a),this.element.appendChild(this.backdrop),this.element.appendChild(this.drawer),this.element}},{key:"addClass",value:function(e){this.drawer.classList.toggle(e,!0)}},{key:"getFirstFocusableEl",value:function(e){var t=this;return null==e?void 0:e.find(function(e){return e!==t.focusGuard&&!e.inert})}}],r&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A)},80746:function(e,t,n){n.d(t,{H:function(){return c}});var r=n(61799);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var c=function(){return e=function e(){var t,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="emitter",o=new r.n,(n=a(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o},(t=[{key:"onEvent",value:function(e,t){this.emitter.on(e,t)}},{key:"offEvent",value:function(e,t){this.emitter.off(e,t)}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},43305:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function l(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:function(){return y}});var y=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=l(this,t),"options",void 0),p(n,"element",void 0),(this instanceof t?this.constructor:void 0)===t)throw new TypeError("Cannot construct DxModalBase instances directly");return n.options=c(c({},{showCloseButton:!0,fullScreen:!1,hidden:!1,size:"default"}),e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(r=[{key:"init",value:function(e){this.element=e,this.handleFullscreen(this.options.fullScreen),this.handleHidden(this.options.hidden),this.handleCloseButtonVisibility(this.options.showCloseButton)}},{key:"getBreakpointClass",value:function(e,t){if("boolean"!=typeof t){var n=["xs","sm","md","lg","xl"];if("string"==typeof t&&n.includes(t)){var r,i=o(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.element.classList.toggle("".concat(e,"-").concat(a),t===a)}}catch(e){i.e(e)}finally{i.f()}}}else this.element.classList.toggle(e,t)}},{key:"handleFullscreen",value:function(e){void 0!==e&&this.getBreakpointClass("DxModalBase--fullScreen",e)}},{key:"handleHidden",value:function(e){void 0!==e&&this.getBreakpointClass("DxModalBase--hidden",e)}},{key:"handleCloseButtonVisibility",value:function(e){var t=this.element.querySelectorAll("button"),n=Array.from(t).find(function(e){var t=window.getComputedStyle(e);return t.width===t.height&&"none"!==t.content});if(n){var r=Array.from(n.classList).some(function(e){return e.includes("close")});!e&&r&&n.remove()}}}])&&u(n.prototype,r),i&&u(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(n(80746).H)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.