/*! For license information please see vendors-node_modules_vaadin_vaadin-button_theme_lumo_vaadin-button_js-node_modules_vaadin_vaa-a9acbb.bundle.js.LICENSE.txt */
(self.webpackChunkwakelet_web=self.webpackChunkwakelet_web||[]).push([["vendors-node_modules_vaadin_vaadin-button_theme_lumo_vaadin-button_js-node_modules_vaadin_vaa-a9acbb"],{93648:(e,t,n)=>{"use strict";var o=n(29231),r=n(8872),i=n(24064),a=n(36786),l=n(61524),s=n(34370),u=n(47513);function c(e){return(c="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})(e)}function d(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n
\n \n'],['\n \n \n \n']);return d=function(){return e},e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n=0&&e.setAttribute("active","")})),this.addEventListener("keyup",(function(){return e.removeAttribute("active")})),this.addEventListener("blur",(function(){return e.removeAttribute("active")}))}},{key:"focusElement",get:function(){return this.$.button}}])&&h(t.prototype,n),o&&h(t,o),i}((0,l.S)((0,a.$)((0,i.T)((0,r._)(o.H3)))));customElements.define(g.is,g)},45780:(e,t,n)=>{"use strict";n(26636),n(25681),n(47026),n(63684),n(92667);function o(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n \n']);return o=function(){return e},e}var r=(0,n(34370).d)(o());document.head.appendChild(r.content);n(93648)},36786:(e,t,n)=>{"use strict";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})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;nf});var h=!1;window.addEventListener("keydown",(function(){h=!0}),{capture:!0}),window.addEventListener("mousedown",(function(){h=!1}),{capture:!0});var f=function(e){return function(e){s(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return l(n,[{key:"ready",value:function(){var e=this;this.addEventListener("focusin",(function(t){t.composedPath()[0]===e?e.contains(t.relatedTarget)||e._focus():-1===t.composedPath().indexOf(e.focusElement)||e.disabled||e._setFocused(!0)})),this.addEventListener("focusout",(function(t){return e._setFocused(!1)})),r(p(n.prototype),"ready",this).call(this);var t=function(e){e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",t),this.shadowRoot.addEventListener("focusout",t),this.addEventListener("keydown",(function(t){if(!t.defaultPrevented&&9===t.keyCode)if(t.shiftKey)e._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(e),e._setFocused(!1),setTimeout((function(){return e._isShiftTabbing=!1}),0);else{var n=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(n&&parseFloat(n[1])>=63&&parseFloat(n[1])<66&&e.parentNode&&e.nextSibling){var o=document.createElement("input");o.style.position="absolute",o.style.opacity="0",o.tabIndex=e.tabIndex,e.parentNode.insertBefore(o,e.nextSibling),o.focus(),o.addEventListener("focusout",(function(){return e.parentNode.removeChild(o)}))}}})),this.autofocus&&!this.disabled&&window.requestAnimationFrame((function(){e._focus(),e._setFocused(!0),e.setAttribute("focus-ring","")}))}},{key:"disconnectedCallback",value:function(){r(p(n.prototype),"disconnectedCallback",this).call(this),this.hasAttribute("focused")&&this._setFocused(!1)}},{key:"_setFocused",value:function(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&h?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}},{key:"_focus",value:function(){this.focusElement&&!this._isShiftTabbing&&(this.focusElement.focus(),this._setFocused(!0))}},{key:"focus",value:function(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}},{key:"blur",value:function(){this.focusElement&&(this.focusElement.blur(),this._setFocused(!1))}},{key:"_disabledChanged",value:function(e){this.focusElement.disabled=e,e?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}},{key:"_tabindexChanged",value:function(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}},{key:"click",value:function(){this.disabled||r(p(n.prototype),"click",this).call(this)}},{key:"focusElement",get:function(){return window.console.warn("Please implement the 'focusElement' property in <".concat(this.localName,">")),this}}],[{key:"properties",get:function(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}}]),n}(function(e){return function(e){s(n,e);var t=c(n);function n(){return i(this,n),t.apply(this,arguments)}return l(n,null,[{key:"properties",get:function(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}]),n}(e)}(e))}},2915:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var o=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,r=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function i(e,t){if("function"==typeof e){var n=o.exec(e.toString());if(n)try{e=new Function(n[1])}catch(e){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",e)}return e(t)}}window.Vaadin=window.Vaadin||{};var a=function(e,t){if(window.Vaadin.developmentMode)return i(e,t)};void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(r?!(r&&Object.keys(r).map((function(e){return r[e]})).filter((function(e){return e.productionMode})).length>0):!i((function(){return!0})))}catch(e){return!1}}())},18551:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;nb});var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"detectScrollType",value:function(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}},{key:"getNormalizedScrollLeft",value:function(e,t,n){var o=n.scrollLeft;if("rtl"!==t||!e)return o;switch(e){case"negative":return n.scrollWidth-n.clientWidth+o;case"reverse":return n.scrollWidth-n.clientWidth-o}return o}},{key:"setNormalizedScrollLeft",value:function(e,t,n,o){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+o;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-o;break;default:n.scrollLeft=o}else n.scrollLeft=o}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0];e?-1===f.indexOf(this)&&f.push(this):f.indexOf(this)>-1&&f.splice(f.indexOf(this),1)}},{key:"__getNormalizedScrollLeft",value:function(e){return r.getNormalizedScrollLeft(h,this.getAttribute("dir")||"ltr",e)}},{key:"__setNormalizedScrollLeft",value:function(e,t){return r.setNormalizedScrollLeft(h,this.getAttribute("dir")||"ltr",e,t)}}])&&l(t.prototype,n),o&&l(t,o),d}(e)}},61524:(e,t,n)=>{"use strict";n.d(t,{S:()=>g});var o=n(86924),r=n(47375),i=n(74864),a=n(18551),l=n(2915);function s(){}var u,c=function(){if("function"==typeof l.L)return(0,l.L)(s)};function d(e){return(d="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})(e)}function p(e,t){for(var n=0;n to the HTML document.'),e}return t=s,a=[{key:"finalize",value:function(){v(b(s),"finalize",this).call(this);var e=this.is;e&&!y.has(e)&&(window.Vaadin.registrations.push(this),y.add(e),window.Vaadin.developmentModeCallback&&(u=r.dx.debounce(u,o.t$,(function(){window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,i.E)(u)))}}],(n=null)&&p(t.prototype,n),a&&p(t,a),s}((0,a.U)(e))}},26636:(e,t,n)=>{"use strict";n(76123),n(9680),n(30716);var o=document.createElement("template");o.innerHTML='\n \n\n \n \n \n\n \n \n \n',document.head.appendChild(o.content)},39582:(e,t,n)=>{"use strict";n(9680),n(76123);var o=document.createElement("template");o.innerHTML='\n \n',document.head.appendChild(o.content)},14690:(e,t,n)=>{"use strict";n(26636),n(39582),n(25681),n(63684);var o=document.createElement("template");o.innerHTML='\n \n \n \n',document.head.appendChild(o.content)},54725:(e,t,n)=>{"use strict";n(26636),n(47026),n(63684),n(92667);var o=document.createElement("template");o.innerHTML='\n \n \n \n',document.head.appendChild(o.content)},25681:(e,t,n)=>{"use strict";n(76123),n(9680);var o=document.createElement("template");o.innerHTML="\n \n",document.head.appendChild(o.content)},47026:(e,t,n)=>{"use strict";n(76123),n(9680);var o=document.createElement("template");o.innerHTML="\n \n",document.head.appendChild(o.content)},63684:(e,t,n)=>{"use strict";n(76123),n(9680);var o=document.createElement("template");o.innerHTML="\n \n",document.head.appendChild(o.content)},92667:(e,t,n)=>{"use strict";n(76123),n(9680),n(30716);var o=document.createElement("template");o.innerHTML='\n \n\n \n \n \n',document.head.appendChild(o.content)},76123:(e,t,n)=>{"use strict";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})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n{"use strict";n.d(t,{G:()=>j});var o=n(29231),r=n(34029),i=n(39046),a=n(64560),l=n(24064),s=n(18551);function u(e,t){for(var n=0;n0;if(r>=0&&t.push(o),n="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children)for(var a=0;a0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)}},{key:"_hasLowerTabOrder",value:function(e,t){var n=Math.max(e.tabIndex,0),o=Math.max(t.tabIndex,0);return 0===n||0===o?o>n:n>o}}],(n=null)&&u(t.prototype,n),o&&u(t,o),e}(),h=n(34370);function f(e){return(f="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})(e)}function m(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \n \n'],['\n \n\n \n \n']);return m=function(){return e},e}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;ne,n=document.documentElement.clientHeight;t&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",n-e+"px"):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}}},{key:"_setTemplateFromNodes",value:function(e){this.template=e.filter((function(e){return e.localName&&"template"===e.localName}))[0]||this.template}},{key:"close",value:function(e){var t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}},{key:"connectedCallback",value:function(){v(z(n.prototype),"connectedCallback",this).call(this),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}},{key:"disconnectedCallback",value:function(){v(z(n.prototype),"disconnectedCallback",this).call(this),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}},{key:"_ironOverlayCanceled",value:function(e){e.preventDefault()}},{key:"_mouseDownListener",value:function(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}},{key:"_mouseUpListener",value:function(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}},{key:"_outsideClickListener",value:function(e){if(-1!==e.composedPath().indexOf(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(this._last){var t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},{key:"_keydownListener",value:function(e){if(this._last)if("Tab"===e.key&&this.focusTrap&&!e.defaultPrevented)this._cycleTab(e.shiftKey?-1:1),e.preventDefault();else if("Escape"===e.key||"Esc"===e.key){var t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},{key:"_ensureTemplatized",value:function(){this._setTemplateFromNodes(Array.from(this.children))}},{key:"_openedChanged",value:function(e,t){var n=this;this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),(0,i.T8)(this,(function(){n.focusTrap&&!n.contains(document._activeElement||document.activeElement)&&n._cycleTab(0,0);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});n.dispatchEvent(e)})),this.modeless||this._addGlobalListeners()):t&&(this._animatedClosing(),this.modeless||this._removeGlobalListeners())}},{key:"_hiddenChanged",value:function(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}},{key:"_shouldAnimate",value:function(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!=e}},{key:"_enqueueAnimation",value:function(e,t){var n=this,o="__".concat(e,"Handler"),r=function e(r){r&&r.target!==n||(t(),n.removeEventListener("animationend",e),delete n[o])};this[o]=r,this.addEventListener("animationend",r)}},{key:"_flushAnimation",value:function(e){var t="__".concat(e,"Handler");"function"==typeof this[t]&&this[t]()}},{key:"_animatedOpening",value:function(){var e=this;this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening","");var t=function(){document.addEventListener("iron-overlay-canceled",e._boundIronOverlayCanceledListener),e.removeAttribute("opening")};this._shouldAnimate()?this._enqueueAnimation("opening",t):t()}},{key:"_attachOverlay",value:function(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}},{key:"_animatedClosing",value:function(){var e=this;if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){if(this._exitModalState(),this.restoreFocusOnClose&&this.__restoreFocusNode){var t=this._getActiveElement();(t===document.body||this._deepContains(t))&&this.__restoreFocusNode.focus(),this.__restoreFocusNode=null}this.setAttribute("closing","");var n=function(){document.removeEventListener("iron-overlay-canceled",e._boundIronOverlayCanceledListener),e._detachOverlay(),e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.removeAttribute("closing")};this._shouldAnimate()?this._enqueueAnimation("closing",n):n()}}},{key:"_detachOverlay",value:function(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}},{key:"_modelessChanged",value:function(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}},{key:"_addGlobalListeners",value:function(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0),document.addEventListener("keydown",this._boundKeydownListener)}},{key:"_enterModalState",value:function(){var e=this;"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),n.__attachedInstances.forEach((function(t){t!==e&&(t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")}))}},{key:"_removeGlobalListeners",value:function(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0),document.removeEventListener("keydown",this._boundKeydownListener)}},{key:"_exitModalState",value:function(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=n.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}},{key:"_removeOldContent",value:function(){var e=this;this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach((function(t){t.parentNode===e.content&&e.content.removeChild(t)})),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}},{key:"_stampOverlayTemplate",value:function(e,t){this._removeOldContent(),e._Templatizer||(e._Templatizer=(0,r.Uv)(e,this,{instanceProps:t,forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new e._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);var n,o,i=e._templateRoot||(e._templateRoot=e.getRootNode());if(i!==document){var a=window.ShadyCSS&&!window.ShadyCSS.nativeShadow;this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});var l=Array.from(i.querySelectorAll("style")).reduce((function(e,t){return e+t.textContent}),"");if(a){var s=window.ShadyCSS.ScopingShim._styleInfoForNode(i.host);s&&(l+=s._getStyleRules().parsedCssText,l+="}")}if(l=l.replace(/:host/g,":host-nomatch"))if(a){var u=(o=T[n=l]||I(n),document.createElement(o));u.id="content",u.setAttribute("part","content"),this.$.content.parentNode.replaceChild(u,this.$.content),u.className=this.$.content.className,this._originalContentPart=this.$.content,this.$.content=u}else{var c=document.createElement("style");c.textContent=l,this.$.content.shadowRoot.appendChild(c),this._contentNodes.unshift(c)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}},{key:"_removeNewRendererOrTemplate",value:function(e,t,n,o){e!==t?this.template=void 0:n!==o&&(this.renderer=void 0)}},{key:"render",value:function(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}},{key:"_templateOrRendererChanged",value:function(e,t,n,o,r,i){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var a=this._oldOwner!==n||this._oldModel!==o;this._oldModel=o,this._oldOwner=n;var l=this._oldInstanceProps!==r||this._oldTemplate!==e;this._oldInstanceProps=r,this._oldTemplate=e;var s=this._oldRenderer!==t;this._oldRenderer=t;var u=this._oldOpened!==i;if(this._oldOpened=i,e&&l)this._stampOverlayTemplate(e,r);else if(t&&(s||u||a)){if(this.content=this,s)for(;this.content.firstChild;)this.content.removeChild(this.content.firstChild);i&&this.render()}}},{key:"_isFocused",value:function(e){return e&&e.getRootNode().activeElement===e}},{key:"_focusedIndex",value:function(e){return(e=e||this._getFocusableElements()).indexOf(e.filter(this._isFocused).pop())}},{key:"_cycleTab",value:function(e,t){var n=this._getFocusableElements();void 0===t&&(t=this._focusedIndex(n)),(t+=e)>=n.length?t=0:t<0&&(t=n.length-1),n[t].focus()}},{key:"_getFocusableElements",value:function(){return p.getTabbableNodes(this.$.overlay)}},{key:"_getActiveElement",value:function(){var e=document._activeElement||document.activeElement;for(e&&e!==document.documentElement&&e instanceof Element!=!1||(e=document.body);e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}},{key:"_deepContains",value:function(e){if(this.contains(e))return!0;for(var t=e,n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}},{key:"bringToFront",value:function(){var e=this,t="",o=n.__attachedInstances.filter((function(t){return t!==e})).pop();o&&(t=o.__zIndex+1);this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}},{key:"_last",get:function(){return this===n.__attachedInstances.pop()}}],[{key:"__attachedInstances",get:function(){return Array.from(document.body.children).filter((function(e){return e instanceof n&&!e.hasAttribute("closing")})).sort((function(e,t){return e.__zIndex-t.__zIndex||0}))}}]),n}((0,l.T)((0,s.U)(o.H3)));customElements.define(j.is,j)},69186:(e,t,n)=>{"use strict";n.d(t,{S:()=>C});var o=n(29231),r=n(86924),i=n(47375),a=n(34370);function l(e){return(l="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})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n\n \n \n \n'],['\n \n \n \n']);return m=function(){return e},e}var v=(0,a.d)(m());document.head.appendChild(v.content);var b={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},y={DEFAULT:"default",ACCESSIBLE:"accessible"},g=n(36786),x=n(24064);function w(e){return(w="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})(e)}function _(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n\n \n\n
\n\n
\n\n
\n [[helperText]]\n
\n\n
[[errorMessage]]
\n\n
\n'],['\n \n\n \n\n
\n\n
\n\n
\n [[helperText]]\n
\n\n
[[errorMessage]]
\n\n
\n']);return _=function(){return e},e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n0&&!this.checkValidity())return n.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=i.dx.debounce(this._inputDebouncer,r.Wc.after(200),(function(){t.removeAttribute("input-prevented")})))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}},{key:"_stateChanged",value:function(e,t,n,o){!e&&!t&&n&&o?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}},{key:"_onChange",value:function(e){if(!this._valueClearing){var t=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable});this.dispatchEvent(t)}}},{key:"_valueChanged",value:function(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}},{key:"_labelChanged",value:function(e){this._setOrToggleAttribute("has-label",!!e,this)}},{key:"_helperTextChanged",value:function(e){this._setOrToggleAttribute("has-helper",!!e,this)}},{key:"_errorMessageChanged",value:function(e){this._setOrToggleAttribute("has-error-message",!!e,this)}},{key:"_onHelperSlotChange",value:function(){var e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter((function(e){return 3!==e.nodeType})).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}},{key:"_onSlotChange",value:function(){var e=this,t=this.querySelector("".concat(this._slottedTagName,'[slot="').concat(this._slottedTagName,'"]'));this.value&&(this.inputElement.value=this.value,this.validate()),t&&!this._slottedInput?(this._validateSlottedValue(t),this._addInputListeners(t),this._addIEListeners(t),this._slottedInput=t):!t&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(y).map((function(e){return y[e]})).forEach((function(t){return e._propagateHostAttributes(b[t].map((function(t){return e[t]})),t)}))}},{key:"_hostPropsChanged",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n(26636),n(25681),n(47026),n(63684),n(92667);var o=document.createElement("template");o.innerHTML='\n \n \n \n',document.head.appendChild(o.content);n(39582),n(14690);function r(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n \n'],['\n \n \n \n']);return r=function(){return e},e}var i=(0,n(34370).d)(r());document.head.appendChild(i.content);n(69186)},24064:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var o=n(30716),r=n(45172);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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0,a=r.filter((function(e){return 0===t.indexOf(e)})).length>0;return n!==o?n?-1:1:i!==a?i?-1:1:0})).forEach((function(o){if(o!==i){var a=n[o].getAttribute("theme-for");a&&a.split(" ").forEach((function(n){new RegExp("^"+n.split("*").join(".*")+"$").test(t.is)&&(r=!0,t._includeStyle(o,e))}))}})),!r&&n[i]&&this._includeStyle(i,e)}},{key:"_includeStyle",value:function(e,t){if(t&&!t.content.querySelector('style[include="'.concat(e,'"]'))){var n=document.createElement("style");n.setAttribute("include",e),t.content.appendChild(n)}}}],(n=null)&&l(t.prototype,n),r&&l(t,r),d}((0,r.I)(e))}},45172:(e,t,n)=>{"use strict";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})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;nd});var d=function(e){return function(e){!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}}),t&&l(e,t)}(d,e);var t,n,o,u=s(d);function d(){return r(this,d),u.apply(this,arguments)}return t=d,o=[{key:"properties",get:function(){return{theme:{type:String,readOnly:!0}}}}],(n=[{key:"attributeChangedCallback",value:function(e,t,n){a(c(d.prototype),"attributeChangedCallback",this).call(this,e,t,n),"theme"===e&&this._setTheme(n)}}])&&i(t.prototype,n),o&&i(t,o),d}(e)}}}]);
//# sourceMappingURL=vendors-node_modules_vaadin_vaadin-button_theme_lumo_vaadin-button_js-node_modules_vaadin_vaa-a9acbb.bundle.js.map