Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mcwv/dialog

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcwv/dialog - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dialog-button.js

13

dist/mcwv.dialog.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dialog=e():(t.mcwv=t.mcwv||{},t.mcwv.dialog=e())}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=23)}({0:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dialog=e():(t.mcwv=t.mcwv||{},t.mcwv.dialog=e())}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=27)}({1:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
/*! *****************************************************************************

@@ -61,3 +61,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

*/
var f=["touchstart","pointerdown","mousedown","keydown"],h=["touchend","pointerup","mouseup","contextmenu"],m=[],_=function(t){function e(n){var i=t.call(this,o({},e.defaultAdapter,n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(t){return i.activate_(t)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=e.cssClasses,a=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.addClass(a),t.adapter_.isUnbounded()&&(t.adapter_.addClass(o),t.layoutInternal_())})}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,i=n.ROOT,a=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.removeClass(i),t.adapter_.removeClass(a),t.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},e.prototype.activate=function(t){this.activate_(t)},e.prototype.deactivate=function(){this.deactivate_()},e.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},e.prototype.setUnbounded=function(t){var n=e.cssClasses.UNBOUNDED;t?this.adapter_.addClass(n):this.adapter_.removeClass(n)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},e.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers_=function(t){var e=this;t&&(f.forEach(function(t){e.adapter_.registerInteractionHandler(t,e.activateHandler_)}),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)},e.prototype.registerDeactivationHandlers_=function(t){var e=this;"keydown"===t.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):h.forEach(function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},e.prototype.deregisterRootHandlers_=function(){var t=this;f.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)},e.prototype.deregisterDeactivationHandlers_=function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),h.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})},e.prototype.removeCssVars_=function(){var t=this,n=e.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})},e.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==t&&i.type!==t.type))n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&m.length>0&&m.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(m.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){m=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())}))}}},e.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter_.isSurfaceActive()},e.prototype.animateActivation_=function(){var t=this,n=e.strings,i=n.VAR_FG_TRANSLATE_START,a=n.VAR_FG_TRANSLATE_END,o=e.cssClasses,r=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var u="",d="";if(!this.adapter_.isUnbounded()){var l=this.getFgTranslationCoordinates_(),p=l.startPoint,f=l.endPoint;u=p.x+"px, "+p.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter_.updateCssVariable(i,u),this.adapter_.updateCssVariable(a,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(r),this.adapter_.computeBoundingRect(),this.adapter_.addClass(s),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},c)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,n){if(!t)return{x:0,y:0};var i,a,o=e.x,r=e.y,s=o+n.left,c=r+n.top;if("touchstart"===t.type){var u=t;i=u.changedTouches[0].pageX-s,a=u.changedTouches[0].pageY-c}else{var d=t;i=d.pageX-s,a=d.pageY-c}return{x:i,y:a}}(n,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},e.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,i=this.activationState_,a=i.hasDeactivationUXRun,o=i.isActivated;(a||!o)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter_.removeClass(n)},l.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses_=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},e.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return t.previousActivationEvent_=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()}))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter_.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?n:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING,this.initialSize_=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE),this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,n=t.VAR_FG_SIZE,i=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(n,this.initialSize_+"px"),this.adapter_.updateCssVariable(o,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(a,this.unboundedCoords_.top+"px"))},e}(c);class v extends _{constructor(t,e){super({addClass(e){t.$set(t.classes,e,!0)},browserSupportsCssVars:()=>(function(t,e){void 0===e&&(e=!1);var n=t.CSS,i=r;if("boolean"==typeof r&&!e)return r;if(!n||"function"!=typeof n.supports)return!1;var a=n.supports("--css-vars","yes"),o=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=!(!a&&!o||function(t){var e=t.document,n=e.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(n);var i=t.getComputedStyle(n),a=null!==i&&"solid"===i.borderTopStyle;return n.remove(),a}(t)),e||(r=i),i})(window),computeBoundingRect:()=>t.$el.getBoundingClientRect(),containsEventTarget:e=>t.$el.contains(e),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,p()),deregisterInteractionHandler:(e,n)=>{t.$el.removeEventListener(e,n,p())},deregisterResizeHandler:t=>window.removeEventListener("resize",t),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>i(t.$el,":active"),isSurfaceDisabled:()=>t.disabled,isUnbounded:()=>!1,registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,p()),registerInteractionHandler:(e,n)=>{t.$el.addEventListener(e,n,p())},registerResizeHandler:t=>window.addEventListener("resize",t),removeClass(e){t.$delete(t.classes,e)},updateCssVariable:(e,n)=>{t.$set(t.styles,e,n)},...e})}}const g={data:()=>({classes:{},styles:{}}),mounted(){this.ripple=new v(this),this.ripple.init()},beforeDestroy(){this.ripple.destroy()}};n.d(e,"RippleBase",function(){return v}),n.d(e,"RippleMixin",function(){return g})},12:function(t,e,n){"use strict";n.r(e);var i=n(2),a=n(4),o=n(9),r=n(0),s={name:"mdc-button-base",mixins:[a.a,o.b,r.RippleMixin],render(t){const e=[t("span",{class:{"mdc-button__label":1}},this.$slots.default)];return(this.$slots.icon||this.icon)&&e.unshift(this.$slots.icon||t("i",{class:{"material-icons":1,"mdc-button__icon":1},attrs:{"aria-hidden":!0}},this.icon)),(this.$slots.trailingIcon||this.trailingIcon)&&e.push(this.$slots.trailingIcon||t("i",{class:{"material-icons":1,"mdc-button__icon":1},attrs:{"aria-hidden":!0}},this.trailingIcon)),t("custom-button",{class:this.classes,style:this.styles,attrs:{disabled:this.disabled},props:{href:this.href,link:this.link},on:this.listeners,ref:"root"},e)}};n.d(e,"mdcButton",function(){return c}),n.d(e,"mdcButtonBase",function(){return s});const c={name:"mdc-button",extends:s,props:{raised:Boolean,unelevated:Boolean,outlined:Boolean,dense:Boolean,icon:String,trailingIcon:String},data(){return{classes:{"mdc-button":!0,"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated&&!this.raised,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}},watch:{raised(){this.$set(this.classes,"mdc-button--raised",this.raised)},unelevated(){this.$set(this.classes,"mdc-button--unelevated",this.unelevated)},outlined(){this.$set(this.classes,"mdc-button--outlined",this.outlined)},dense(){this.$set(this.classes,"mdc-button--dense",this.dense)}}};e.default=Object(i.a)({mdcButton:c})},13:function(t,e,n){var i,a=n(24),o=n(25),r=(i=[],{activateTrap:function(t){if(i.length>0){var e=i[i.length-1];e!==t&&e.pause()}var n=i.indexOf(t);-1===n?i.push(t):(i.splice(n,1),i.push(t))},deactivateTrap:function(t){var e=i.indexOf(t);-1!==e&&i.splice(e,1),i.length>0&&i[i.length-1].unpause()}});function s(t){return setTimeout(t,0)}t.exports=function(t,e){var n=document,i="string"==typeof t?n.querySelector(t):t,c=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0},e),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(t){if(!u.active){b(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var e=t&&t.onActivate?t.onActivate:c.onActivate;return e&&e(),p(),d}},deactivate:l,pause:function(){!u.paused&&u.active&&(u.paused=!0,f())},unpause:function(){u.paused&&u.active&&(u.paused=!1,p())}};return d;function l(t){if(u.active){f(),u.active=!1,u.paused=!1,r.deactivateTrap(d);var e=t&&void 0!==t.onDeactivate?t.onDeactivate:c.onDeactivate;return e&&e(),(t&&void 0!==t.returnFocus?t.returnFocus:c.returnFocusOnDeactivate)&&s(function(){E(u.nodeFocusedBeforeActivation)}),d}}function p(){if(u.active)return r.activateTrap(d),b(),s(function(){E(m())}),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",_,!0),n.addEventListener("touchstart",_,!0),n.addEventListener("click",y,!0),n.addEventListener("keydown",g,!0),d}function f(){if(u.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",_,!0),n.removeEventListener("touchstart",_,!0),n.removeEventListener("click",y,!0),n.removeEventListener("keydown",g,!0),d}function h(t){var e=c[t],i=e;if(!e)return null;if("string"==typeof e&&!(i=n.querySelector(e)))throw new Error("`"+t+"` refers to no known node");if("function"==typeof e&&!(i=e()))throw new Error("`"+t+"` did not return a node");return i}function m(){var t;if(!(t=null!==h("initialFocus")?h("initialFocus"):i.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||h("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return t}function _(t){i.contains(t.target)||(c.clickOutsideDeactivates?l({returnFocus:!a.isFocusable(t.target)}):t.preventDefault())}function v(t){i.contains(t.target)||t.target instanceof Document||(t.stopImmediatePropagation(),E(u.mostRecentlyFocusedNode||m()))}function g(t){if(!1!==c.escapeDeactivates&&function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t))return t.preventDefault(),void l();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){if(b(),t.shiftKey&&t.target===u.firstTabbableNode)return t.preventDefault(),void E(u.lastTabbableNode);t.shiftKey||t.target!==u.lastTabbableNode||(t.preventDefault(),E(u.firstTabbableNode))}(t)}function y(t){c.clickOutsideDeactivates||i.contains(t.target)||(t.preventDefault(),t.stopImmediatePropagation())}function b(){var t=a(i);u.firstTabbableNode=t[0]||m(),u.lastTabbableNode=t[t.length-1]||m()}function E(t){t!==n.activeElement&&(t&&t.focus?(t.focus(),u.mostRecentlyFocusedNode=t,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(t)&&t.select()):E(m()))}}},2:function(t,e,n){"use strict";function i(t){return{version:"__VERSION__",install:e=>{Object.values(t).forEach(t=>e.component(t.name,t))},components:t}}n.d(e,"a",function(){return i})},23:function(t,e,n){n(78),t.exports=n(26)},24:function(t,e){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],i=n.join(","),a="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(t,e){e=e||{};var n,o,s,c=[],l=[],f=new p(t.ownerDocument||t),h=t.querySelectorAll(i);for(e.includeContainer&&a.call(t,i)&&(h=Array.prototype.slice.apply(h)).unshift(t),n=0;n<h.length;n++)r(o=h[n],f)&&(0===(s=u(o))?c.push(o):l.push({documentOrder:n,tabIndex:s,node:o}));return l.sort(d).map(function(t){return t.node}).concat(c)}function r(t,e){return!(!s(t,e)||function(t){return function(t){return l(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e=function(t){for(var e=0;e<t.length;e++)if(t[e].checked)return t[e]}(t.ownerDocument.querySelectorAll('input[type="radio"][name="'+t.name+'"]'));return!e||e===t}(t)}(t)||u(t)<0)}function s(t,e){return e=e||new p(t.ownerDocument||t),!(t.disabled||function(t){return l(t)&&"hidden"===t.type}(t)||e.isUntouchable(t))}o.isTabbable=function(t,e){if(!t)throw new Error("No node provided");return!1!==a.call(t,i)&&r(t,e)},o.isFocusable=function(t,e){if(!t)throw new Error("No node provided");return!1!==a.call(t,c)&&s(t,e)};var c=n.concat("iframe").join(",");function u(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:t.tabIndex:e}function d(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex}function l(t){return"INPUT"===t.tagName}function p(t){this.doc=t,this.cache=[]}p.prototype.hasDisplayNone=function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(t,e){for(var n=0,i=t.length;n<i;n++)if(e(t[n]))return t[n]}(this.cache,function(e){return e===t});if(n)return n[1];var i=!1;return"none"===(e=e||this.doc.defaultView.getComputedStyle(t)).display?i=!0:t.parentNode&&(i=this.hasDisplayNone(t.parentNode)),this.cache.push([t,i]),i},p.prototype.isUntouchable=function(t){if(t===this.doc.documentElement)return!1;var e=this.doc.defaultView.getComputedStyle(t);return!!this.hasDisplayNone(t,e)||"hidden"===e.visibility},t.exports=o},25:function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var i=arguments[e];for(var a in i)n.call(i,a)&&(t[a]=i[a])}return t};var n=Object.prototype.hasOwnProperty},26:function(t,e,n){},4:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i={props:{event:String,"event-target":Object,"event-args":Array},methods:{dispatchEvent(t){if(t&&this.$emit(t.type,t),this.event){const t=this.eventTarget||this.$root,e=this.eventArgs||[];t.$emit(this.event,...e)}}},computed:{listeners(){return{...this.$listeners,click:t=>this.dispatchEvent(t)}}}}},5:function(t,e,n){"use strict";n.d(e,"a",function(){return a});const i=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",a={beforeCreate(){this.vma_uid_=i+this._uid}}},78:function(t,e,n){"use strict";n.r(e);
var f=["touchstart","pointerdown","mousedown","keydown"],h=["touchend","pointerup","mouseup","contextmenu"],m=[],_=function(t){function e(n){var i=t.call(this,o({},e.defaultAdapter,n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(t){return i.activate_(t)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=e.cssClasses,a=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.addClass(a),t.adapter_.isUnbounded()&&(t.adapter_.addClass(o),t.layoutInternal_())})}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,i=n.ROOT,a=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.removeClass(i),t.adapter_.removeClass(a),t.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},e.prototype.activate=function(t){this.activate_(t)},e.prototype.deactivate=function(){this.deactivate_()},e.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},e.prototype.setUnbounded=function(t){var n=e.cssClasses.UNBOUNDED;t?this.adapter_.addClass(n):this.adapter_.removeClass(n)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},e.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers_=function(t){var e=this;t&&(f.forEach(function(t){e.adapter_.registerInteractionHandler(t,e.activateHandler_)}),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)},e.prototype.registerDeactivationHandlers_=function(t){var e=this;"keydown"===t.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):h.forEach(function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},e.prototype.deregisterRootHandlers_=function(){var t=this;f.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)},e.prototype.deregisterDeactivationHandlers_=function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),h.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})},e.prototype.removeCssVars_=function(){var t=this,n=e.strings;Object.keys(n).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(n[e],null)})},e.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==t&&i.type!==t.type))n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&m.length>0&&m.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(m.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){m=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())}))}}},e.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter_.isSurfaceActive()},e.prototype.animateActivation_=function(){var t=this,n=e.strings,i=n.VAR_FG_TRANSLATE_START,a=n.VAR_FG_TRANSLATE_END,o=e.cssClasses,r=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var u="",d="";if(!this.adapter_.isUnbounded()){var l=this.getFgTranslationCoordinates_(),p=l.startPoint,f=l.endPoint;u=p.x+"px, "+p.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter_.updateCssVariable(i,u),this.adapter_.updateCssVariable(a,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(r),this.adapter_.computeBoundingRect(),this.adapter_.addClass(s),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},c)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,n){if(!t)return{x:0,y:0};var i,a,o=e.x,r=e.y,s=o+n.left,c=r+n.top;if("touchstart"===t.type){var u=t;i=u.changedTouches[0].pageX-s,a=u.changedTouches[0].pageY-c}else{var d=t;i=d.pageX-s,a=d.pageY-c}return{x:i,y:a}}(n,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},e.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,i=this.activationState_,a=i.hasDeactivationUXRun,o=i.isActivated;(a||!o)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter_.removeClass(n)},l.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses_=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},e.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return t.previousActivationEvent_=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=o({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()}))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter_.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?n:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING,this.initialSize_=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE),this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,n=t.VAR_FG_SIZE,i=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(n,this.initialSize_+"px"),this.adapter_.updateCssVariable(o,this.fgScale_),this.adapter_.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter_.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(a,this.unboundedCoords_.top+"px"))},e}(c);class v extends _{constructor(t,e){super({addClass(e){t.$set(t.classes,e,!0)},browserSupportsCssVars:()=>(function(t,e){void 0===e&&(e=!1);var n=t.CSS,i=r;if("boolean"==typeof r&&!e)return r;if(!n||"function"!=typeof n.supports)return!1;var a=n.supports("--css-vars","yes"),o=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=!(!a&&!o||function(t){var e=t.document,n=e.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(n);var i=t.getComputedStyle(n),a=null!==i&&"solid"===i.borderTopStyle;return n.remove(),a}(t)),e||(r=i),i})(window),computeBoundingRect:()=>t.$el.getBoundingClientRect(),containsEventTarget:e=>t.$el.contains(e),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,p()),deregisterInteractionHandler:(e,n)=>{t.$el.removeEventListener(e,n,p())},deregisterResizeHandler:t=>window.removeEventListener("resize",t),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>i(t.$el,":active"),isSurfaceDisabled:()=>t.disabled,isUnbounded:()=>!1,registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,p()),registerInteractionHandler:(e,n)=>{t.$el.addEventListener(e,n,p())},registerResizeHandler:t=>window.addEventListener("resize",t),removeClass(e){t.$delete(t.classes,e)},updateCssVariable:(e,n)=>{t.$set(t.styles,e,n)},...e})}}const g={data:()=>({classes:{},styles:{}}),mounted(){this.ripple=new v(this),this.ripple.init()},beforeDestroy(){this.ripple.destroy()}};n.d(e,"RippleBase",function(){return v}),n.d(e,"RippleMixin",function(){return g})},11:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a});const i={name:"custom-button",functional:!0,props:{link:Object},render(t,{children:e,data:n,props:{link:i,tag:a},parent:{$router:o,$root:r}}){let s;return i&&o?(s=r.$options.components.RouterLink,n.props={tag:a,...i},n.attrs.role="button",n.on.click&&(n.nativeOn={click:n.on.click})):n.attrs&&n.attrs.href?(s="a",n.attrs.role="button"):s="button",t(s,n,e)}},a={props:{href:String,disabled:Boolean,to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomButton:i}}},16:function(t,e,n){"use strict";n.r(e);var i=n(2),a=n(4),o=n(11),r=n(1),s={name:"mcw-button-base",mixins:[a.a,o.b,r.RippleMixin],render(t){const e=[t("span",{class:{"mdc-button__label":1}},this.$slots.default)];return(this.$slots.icon||this.icon)&&e.unshift(this.$slots.icon||t("i",{class:{"material-icons":1,"mdc-button__icon":1},attrs:{"aria-hidden":!0}},this.icon)),(this.$slots.trailingIcon||this.trailingIcon)&&e.push(this.$slots.trailingIcon||t("i",{class:{"material-icons":1,"mdc-button__icon":1},attrs:{"aria-hidden":!0}},this.trailingIcon)),t("custom-button",{class:this.classes,style:this.styles,attrs:{disabled:this.disabled},props:{href:this.href,link:this.link},on:this.listeners,ref:"root"},e)}},c={name:"mcw-button",extends:s,props:{raised:Boolean,unelevated:Boolean,outlined:Boolean,dense:Boolean,icon:String,trailingIcon:String},data(){return{classes:{"mdc-button":!0,"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated&&!this.raised,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}},watch:{raised(){this.$set(this.classes,"mdc-button--raised",this.raised)},unelevated(){this.$set(this.classes,"mdc-button--unelevated",this.unelevated)},outlined(){this.$set(this.classes,"mdc-button--outlined",this.outlined)},dense(){this.$set(this.classes,"mdc-button--dense",this.dense)}}};n.d(e,"mcwButtonBase",function(){return s}),n.d(e,"mcwButton",function(){return c});e.default=Object(i.a)({mcwButton:c})},17:function(t,e,n){var i,a=n(28),o=n(29),r=(i=[],{activateTrap:function(t){if(i.length>0){var e=i[i.length-1];e!==t&&e.pause()}var n=i.indexOf(t);-1===n?i.push(t):(i.splice(n,1),i.push(t))},deactivateTrap:function(t){var e=i.indexOf(t);-1!==e&&i.splice(e,1),i.length>0&&i[i.length-1].unpause()}});function s(t){return setTimeout(t,0)}t.exports=function(t,e){var n=document,i="string"==typeof t?n.querySelector(t):t,c=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0},e),u={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(t){if(!u.active){b(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=n.activeElement;var e=t&&t.onActivate?t.onActivate:c.onActivate;return e&&e(),p(),d}},deactivate:l,pause:function(){!u.paused&&u.active&&(u.paused=!0,f())},unpause:function(){u.paused&&u.active&&(u.paused=!1,p())}};return d;function l(t){if(u.active){f(),u.active=!1,u.paused=!1,r.deactivateTrap(d);var e=t&&void 0!==t.onDeactivate?t.onDeactivate:c.onDeactivate;return e&&e(),(t&&void 0!==t.returnFocus?t.returnFocus:c.returnFocusOnDeactivate)&&s(function(){E(u.nodeFocusedBeforeActivation)}),d}}function p(){if(u.active)return r.activateTrap(d),b(),s(function(){E(m())}),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",_,!0),n.addEventListener("touchstart",_,!0),n.addEventListener("click",y,!0),n.addEventListener("keydown",g,!0),d}function f(){if(u.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",_,!0),n.removeEventListener("touchstart",_,!0),n.removeEventListener("click",y,!0),n.removeEventListener("keydown",g,!0),d}function h(t){var e=c[t],i=e;if(!e)return null;if("string"==typeof e&&!(i=n.querySelector(e)))throw new Error("`"+t+"` refers to no known node");if("function"==typeof e&&!(i=e()))throw new Error("`"+t+"` did not return a node");return i}function m(){var t;if(!(t=null!==h("initialFocus")?h("initialFocus"):i.contains(n.activeElement)?n.activeElement:u.firstTabbableNode||h("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return t}function _(t){i.contains(t.target)||(c.clickOutsideDeactivates?l({returnFocus:!a.isFocusable(t.target)}):t.preventDefault())}function v(t){i.contains(t.target)||t.target instanceof Document||(t.stopImmediatePropagation(),E(u.mostRecentlyFocusedNode||m()))}function g(t){if(!1!==c.escapeDeactivates&&function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t))return t.preventDefault(),void l();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){if(b(),t.shiftKey&&t.target===u.firstTabbableNode)return t.preventDefault(),void E(u.lastTabbableNode);t.shiftKey||t.target!==u.lastTabbableNode||(t.preventDefault(),E(u.firstTabbableNode))}(t)}function y(t){c.clickOutsideDeactivates||i.contains(t.target)||(t.preventDefault(),t.stopImmediatePropagation())}function b(){var t=a(i);u.firstTabbableNode=t[0]||m(),u.lastTabbableNode=t[t.length-1]||m()}function E(t){t!==n.activeElement&&(t&&t.focus?(t.focus(),u.mostRecentlyFocusedNode=t,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(t)&&t.select()):E(m()))}}},2:function(t,e,n){"use strict";function i(t){return{version:"__VERSION__",install:e=>{Object.entries(t).forEach(([t,n])=>{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[a,...o]=i.split("-"),r=["mdc",...o].join("-"),s=["mcw",...o].join("-"),c=e.extend(n);e.component(s,c),e.component(r,c)})},components:t}}n.d(e,"a",function(){return i})},27:function(t,e,n){n(80),t.exports=n(30)},28:function(t,e){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],i=n.join(","),a="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(t,e){e=e||{};var n,o,s,c=[],l=[],f=new p(t.ownerDocument||t),h=t.querySelectorAll(i);for(e.includeContainer&&a.call(t,i)&&(h=Array.prototype.slice.apply(h)).unshift(t),n=0;n<h.length;n++)r(o=h[n],f)&&(0===(s=u(o))?c.push(o):l.push({documentOrder:n,tabIndex:s,node:o}));return l.sort(d).map(function(t){return t.node}).concat(c)}function r(t,e){return!(!s(t,e)||function(t){return function(t){return l(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e=function(t){for(var e=0;e<t.length;e++)if(t[e].checked)return t[e]}(t.ownerDocument.querySelectorAll('input[type="radio"][name="'+t.name+'"]'));return!e||e===t}(t)}(t)||u(t)<0)}function s(t,e){return e=e||new p(t.ownerDocument||t),!(t.disabled||function(t){return l(t)&&"hidden"===t.type}(t)||e.isUntouchable(t))}o.isTabbable=function(t,e){if(!t)throw new Error("No node provided");return!1!==a.call(t,i)&&r(t,e)},o.isFocusable=function(t,e){if(!t)throw new Error("No node provided");return!1!==a.call(t,c)&&s(t,e)};var c=n.concat("iframe").join(",");function u(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:t.tabIndex:e}function d(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex}function l(t){return"INPUT"===t.tagName}function p(t){this.doc=t,this.cache=[]}p.prototype.hasDisplayNone=function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(t,e){for(var n=0,i=t.length;n<i;n++)if(e(t[n]))return t[n]}(this.cache,function(e){return e===t});if(n)return n[1];var i=!1;return"none"===(e=e||this.doc.defaultView.getComputedStyle(t)).display?i=!0:t.parentNode&&(i=this.hasDisplayNone(t.parentNode)),this.cache.push([t,i]),i},p.prototype.isUntouchable=function(t){if(t===this.doc.documentElement)return!1;var e=this.doc.defaultView.getComputedStyle(t);return!!this.hasDisplayNone(t,e)||"hidden"===e.visibility},t.exports=o},29:function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var i=arguments[e];for(var a in i)n.call(i,a)&&(t[a]=i[a])}return t};var n=Object.prototype.hasOwnProperty},30:function(t,e,n){},4:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i={props:{event:String,"event-target":Object,"event-args":Array},methods:{dispatchEvent(t){if(t&&this.$emit(t.type,t),this.event){const t=this.eventTarget||this.$root,e=this.eventArgs||[];t.$emit(this.event,...e)}}},computed:{listeners(){return{...this.$listeners,click:t=>this.dispatchEvent(t)}}}}},5:function(t,e,n){"use strict";n.d(e,"a",function(){return a});const i=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",a={beforeCreate(){this.vma_uid_=i+this._uid}}},80:function(t,e,n){"use strict";n.r(e);var i=n(2),a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
/*! *****************************************************************************

@@ -76,4 +76,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

and limitations under the License.
***************************************************************************** */
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};
***************************************************************************** */var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};
/**

@@ -101,3 +100,3 @@ * @license

*/
var o=function(){function t(t){void 0===t&&(t={}),this.adapter_=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),r={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked"},s={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DEFAULT_BUTTON_SELECTOR:".mdc-dialog__button--default",DESTROY_ACTION:"destroy",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},c={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150},u=function(t){function e(n){var i=t.call(this,a({},e.defaultAdapter,n))||this;return i.isOpen_=!1,i.animationFrame_=0,i.animationTimer_=0,i.layoutFrame_=0,i.escapeKeyAction_=s.CLOSE_ACTION,i.scrimClickAction_=s.CLOSE_ACTION,i.autoStackButtons_=!0,i.areButtonsStacked_=!1,i}return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return r},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.hasClass(r.STACKED)&&this.setAutoStackButtons(!1)},e.prototype.destroy=function(){this.isOpen_&&this.close(s.DESTROY_ACTION),this.animationTimer_&&(clearTimeout(this.animationTimer_),this.handleAnimationTimerEnd_()),this.layoutFrame_&&(cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=0)},e.prototype.open=function(){var t=this;this.isOpen_=!0,this.adapter_.notifyOpening(),this.adapter_.addClass(r.OPENING),this.runNextAnimationFrame_(function(){t.adapter_.addClass(r.OPEN),t.adapter_.addBodyClass(r.SCROLL_LOCK),t.layout(),t.animationTimer_=setTimeout(function(){t.handleAnimationTimerEnd_(),t.adapter_.trapFocus(),t.adapter_.notifyOpened()},c.DIALOG_ANIMATION_OPEN_TIME_MS)})},e.prototype.close=function(t){var e=this;void 0===t&&(t=""),this.isOpen_&&(this.isOpen_=!1,this.adapter_.notifyClosing(t),this.adapter_.addClass(r.CLOSING),this.adapter_.removeClass(r.OPEN),this.adapter_.removeBodyClass(r.SCROLL_LOCK),cancelAnimationFrame(this.animationFrame_),this.animationFrame_=0,clearTimeout(this.animationTimer_),this.animationTimer_=setTimeout(function(){e.adapter_.releaseFocus(),e.handleAnimationTimerEnd_(),e.adapter_.notifyClosed(t)},c.DIALOG_ANIMATION_CLOSE_TIME_MS))},e.prototype.isOpen=function(){return this.isOpen_},e.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction_},e.prototype.setEscapeKeyAction=function(t){this.escapeKeyAction_=t},e.prototype.getScrimClickAction=function(){return this.scrimClickAction_},e.prototype.setScrimClickAction=function(t){this.scrimClickAction_=t},e.prototype.getAutoStackButtons=function(){return this.autoStackButtons_},e.prototype.setAutoStackButtons=function(t){this.autoStackButtons_=t},e.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},e.prototype.handleInteraction=function(t){var e="click"===t.type,n="Enter"===t.key||13===t.keyCode,i="Space"===t.key||32===t.keyCode,a=this.adapter_.eventTargetMatches(t.target,s.SCRIM_SELECTOR),o=!this.adapter_.eventTargetMatches(t.target,s.SUPPRESS_DEFAULT_PRESS_SELECTOR);if(e&&a&&""!==this.scrimClickAction_)this.close(this.scrimClickAction_);else if(e||i||n){var r=this.adapter_.getActionFromEvent(t);r?this.close(r):n&&o&&this.adapter_.clickDefaultButton()}},e.prototype.handleDocumentKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&""!==this.escapeKeyAction_&&this.close(this.escapeKeyAction_)},e.prototype.layoutInternal_=function(){this.autoStackButtons_&&this.detectStackedButtons_(),this.detectScrollableContent_()},e.prototype.handleAnimationTimerEnd_=function(){this.animationTimer_=0,this.adapter_.removeClass(r.OPENING),this.adapter_.removeClass(r.CLOSING)},e.prototype.runNextAnimationFrame_=function(t){var e=this;cancelAnimationFrame(this.animationFrame_),this.animationFrame_=requestAnimationFrame(function(){e.animationFrame_=0,clearTimeout(e.animationTimer_),e.animationTimer_=setTimeout(t,0)})},e.prototype.detectStackedButtons_=function(){this.adapter_.removeClass(r.STACKED);var t=this.adapter_.areButtonsStacked();t&&this.adapter_.addClass(r.STACKED),t!==this.areButtonsStacked_&&(this.adapter_.reverseButtons(),this.areButtonsStacked_=t)},e.prototype.detectScrollableContent_=function(){this.adapter_.removeClass(r.SCROLLABLE),this.adapter_.isContentScrollable()&&this.adapter_.addClass(r.SCROLLABLE)},e}(o),d=n(13),l=n.n(d);function p(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}var f=n(5),h=n(2),m=n(12);const _="mdc-dialog",v={BASE:_,CONTAINER:`${_}__container`,SURFACE:`${_}__surface`,TITLE:`${_}__title`,CONTENT:`${_}__content`,ACTIONS:`${_}__actions`,BUTTON:`${_}__button`,DEFAULT_BUTTON:`${_}__button--default`,SCRIM:`${_}__scrim`},g=["resize","orientationchange"];var y={name:"mdc-dialog-button",functional:!0,props:{action:String,isDefault:Boolean},render:(t,{props:{action:e,isDefault:n},data:{staticClass:i,attrs:a},scopedSlots:o})=>t("mdc-button",{class:[i,v.BUTTON,{[v.DEFAULT_BUTTON]:n}],attrs:{...a,"data-mdc-dialog-action":e}},o.default&&o.default())},b={name:"mdc-dialog-content",functional:!0,props:{tag:{type:String,default:()=>"div"}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.content){const e=t(a,{class:o,attrs:s},n.default());return n.content({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-content"},attrs:s,class:[r,v.CONTENT]},n.default&&n.default())}},E={name:"mdc-dialog-footer",functional:!0,props:{tag:{type:String,default:()=>"footer"}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.footer){const e=t(a,{class:o,attrs:s},n.default());return n.footer({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-footer"},attrs:s,class:[r,v.ACTIONS]},n.default&&n.default())}},A={name:"mdc-dialog-title",functional:!0,props:{tag:{type:String,default:()=>"h2"},id:{}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.title){const e=t(a,{class:o,attrs:s},n.default());return n.title({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-title"},attrs:s,class:[r,v.TITLE]},n.default&&n.default())}};n.d(e,"mdcDialog",function(){return T}),n.d(e,"mdcDialogTitle",function(){return A}),n.d(e,"mdcDialogFooter",function(){return E}),n.d(e,"mdcDialogButton",function(){return y}),n.d(e,"mdcDialogContent",function(){return b});const T={name:"mdc-dialog",components:{mdcButton:m.mdcButton},mixins:[f.a],model:{prop:"open",event:"change"},props:{autoStackButtons:Boolean,escapeKeyAction:String,scrollable:Boolean,open:Boolean,role:String,scrimClickAction:{type:String,default:"close"},tag:{type:String,default:"div"},id:{type:String,default:"mdc-dialog"}},data:()=>({labelledBy:null,describedBy:null,classes:{"mdc-dialog":1},styles:{}}),watch:{open:"onOpen_"},render(t){const e=this.$scopedSlots.default&&this.$scopedSlots.default()||[];return e.forEach(({tag:n,data:{props:i,class:a,attrs:o}={}},r)=>{if("template"===n&&i.tag){const n=i.tag.split("-").pop();e[r]=t(i.tag,{class:a,attrs:o,scopedSlots:{[n]:({id:t,content:e})=>{if("title"===n||"content"===n){const i=e.data||(e.data={}),a=i.attrs||(i.attrs={});a.id=t||`${this.id}-${n}`,this["title"===n?"labelledBy":"describedBy"]=a.id}if("content"===n){(e.data||(e.data={})).ref="contentEl"}return e}}},e[r].children)}}),t("div",{class:this.classes,style:this.styles,attrs:{id:this.id,"aria-modal":"true","aria-labelledby":this.labelledBy,"aria-describedby":this.describedBy,role:"alertdialog"},ref:"root",on:{click:t=>this.foundation.handleInteraction(t),keydown:t=>this.foundation.handleInteraction(t)}},[t("div",{class:v.CONTAINER,ref:"container"},[t("div",{class:v.SURFACE},this.$scopedSlots.default&&this.$scopedSlots.default())]),t("div",{class:"mdc-dialog__scrim"})])},mounted(){const t=u.strings,{open:e,autoStackButtons:n,escapeKeyAction:i,scrimClickAction:a}=this;this.buttons_=[].slice.call(this.$el.querySelectorAll(v.BUTTON)),this.defaultButton=this.$el.querySelector(`.${v.DEFAULT_BUTTON}`);const o={addClass:t=>this.$set(this.classes,t,!0),removeClass:t=>this.$delete(this.classes,t),hasClass:t=>this.$el.classList.contains(t),addBodyClass:t=>document.body.classList.add(t),removeBodyClass:t=>document.body.classList.remove(t),eventTargetMatches:(t,e)=>p(t,e),trapFocus:()=>this.focusTrap&&this.focusTrap.activate(),releaseFocus:()=>this.focusTrap&&this.focusTrap.deactivate(),isContentScrollable:()=>!!this.$refs.contentEl&&function(t){return!!t&&t.scrollHeight>t.offsetHeight}(this.$refs.contentEl),areButtonsStacked:()=>(function(t){var e=new Set;return[].forEach.call(t,function(t){return e.add(t.offsetTop)}),e.size>1}
var r=function(){function t(t){void 0===t&&(t={}),this.adapter_=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),s={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked"},c={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DEFAULT_BUTTON_SELECTOR:".mdc-dialog__button--default",DESTROY_ACTION:"destroy",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},u={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150},d=function(t){function e(n){var i=t.call(this,o({},e.defaultAdapter,n))||this;return i.isOpen_=!1,i.animationFrame_=0,i.animationTimer_=0,i.layoutFrame_=0,i.escapeKeyAction_=c.CLOSE_ACTION,i.scrimClickAction_=c.CLOSE_ACTION,i.autoStackButtons_=!0,i.areButtonsStacked_=!1,i}return function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.hasClass(s.STACKED)&&this.setAutoStackButtons(!1)},e.prototype.destroy=function(){this.isOpen_&&this.close(c.DESTROY_ACTION),this.animationTimer_&&(clearTimeout(this.animationTimer_),this.handleAnimationTimerEnd_()),this.layoutFrame_&&(cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=0)},e.prototype.open=function(){var t=this;this.isOpen_=!0,this.adapter_.notifyOpening(),this.adapter_.addClass(s.OPENING),this.runNextAnimationFrame_(function(){t.adapter_.addClass(s.OPEN),t.adapter_.addBodyClass(s.SCROLL_LOCK),t.layout(),t.animationTimer_=setTimeout(function(){t.handleAnimationTimerEnd_(),t.adapter_.trapFocus(),t.adapter_.notifyOpened()},u.DIALOG_ANIMATION_OPEN_TIME_MS)})},e.prototype.close=function(t){var e=this;void 0===t&&(t=""),this.isOpen_&&(this.isOpen_=!1,this.adapter_.notifyClosing(t),this.adapter_.addClass(s.CLOSING),this.adapter_.removeClass(s.OPEN),this.adapter_.removeBodyClass(s.SCROLL_LOCK),cancelAnimationFrame(this.animationFrame_),this.animationFrame_=0,clearTimeout(this.animationTimer_),this.animationTimer_=setTimeout(function(){e.adapter_.releaseFocus(),e.handleAnimationTimerEnd_(),e.adapter_.notifyClosed(t)},u.DIALOG_ANIMATION_CLOSE_TIME_MS))},e.prototype.isOpen=function(){return this.isOpen_},e.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction_},e.prototype.setEscapeKeyAction=function(t){this.escapeKeyAction_=t},e.prototype.getScrimClickAction=function(){return this.scrimClickAction_},e.prototype.setScrimClickAction=function(t){this.scrimClickAction_=t},e.prototype.getAutoStackButtons=function(){return this.autoStackButtons_},e.prototype.setAutoStackButtons=function(t){this.autoStackButtons_=t},e.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},e.prototype.handleInteraction=function(t){var e="click"===t.type,n="Enter"===t.key||13===t.keyCode,i="Space"===t.key||32===t.keyCode,a=this.adapter_.eventTargetMatches(t.target,c.SCRIM_SELECTOR),o=!this.adapter_.eventTargetMatches(t.target,c.SUPPRESS_DEFAULT_PRESS_SELECTOR);if(e&&a&&""!==this.scrimClickAction_)this.close(this.scrimClickAction_);else if(e||i||n){var r=this.adapter_.getActionFromEvent(t);r?this.close(r):n&&o&&this.adapter_.clickDefaultButton()}},e.prototype.handleDocumentKeydown=function(t){("Escape"===t.key||27===t.keyCode)&&""!==this.escapeKeyAction_&&this.close(this.escapeKeyAction_)},e.prototype.layoutInternal_=function(){this.autoStackButtons_&&this.detectStackedButtons_(),this.detectScrollableContent_()},e.prototype.handleAnimationTimerEnd_=function(){this.animationTimer_=0,this.adapter_.removeClass(s.OPENING),this.adapter_.removeClass(s.CLOSING)},e.prototype.runNextAnimationFrame_=function(t){var e=this;cancelAnimationFrame(this.animationFrame_),this.animationFrame_=requestAnimationFrame(function(){e.animationFrame_=0,clearTimeout(e.animationTimer_),e.animationTimer_=setTimeout(t,0)})},e.prototype.detectStackedButtons_=function(){this.adapter_.removeClass(s.STACKED);var t=this.adapter_.areButtonsStacked();t&&this.adapter_.addClass(s.STACKED),t!==this.areButtonsStacked_&&(this.adapter_.reverseButtons(),this.areButtonsStacked_=t)},e.prototype.detectScrollableContent_=function(){this.adapter_.removeClass(s.SCROLLABLE),this.adapter_.isContentScrollable()&&this.adapter_.addClass(s.SCROLLABLE)},e}(r),l=n(17),p=n.n(l);function f(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}var h=n(5),m=n(16);const _="mdc-dialog",v={BASE:_,CONTAINER:`${_}__container`,SURFACE:`${_}__surface`,TITLE:`${_}__title`,CONTENT:`${_}__content`,ACTIONS:`${_}__actions`,BUTTON:`${_}__button`,DEFAULT_BUTTON:`${_}__button--default`,SCRIM:`${_}__scrim`},g=["resize","orientationchange"];var y={name:"mcw-dialog",components:{mcwButton:m.mcwButton},mixins:[h.a],model:{prop:"open",event:"change"},props:{autoStackButtons:Boolean,escapeKeyAction:String,scrollable:Boolean,open:Boolean,role:String,scrimClickAction:{type:String,default:"close"},tag:{type:String,default:"div"},id:{type:String,default:"mcw-dialog"}},data:()=>({labelledBy:null,describedBy:null,classes:{"mdc-dialog":1},styles:{}}),watch:{open:"onOpen_"},mounted(){const t=d.strings,{open:e,autoStackButtons:n,escapeKeyAction:i,scrimClickAction:a}=this;this.buttons_=[].slice.call(this.$el.querySelectorAll(v.BUTTON)),this.defaultButton=this.$el.querySelector(`.${v.DEFAULT_BUTTON}`);const o={addClass:t=>this.$set(this.classes,t,!0),removeClass:t=>this.$delete(this.classes,t),hasClass:t=>this.$el.classList.contains(t),addBodyClass:t=>document.body.classList.add(t),removeBodyClass:t=>document.body.classList.remove(t),eventTargetMatches:(t,e)=>f(t,e),trapFocus:()=>this.focusTrap&&this.focusTrap.activate(),releaseFocus:()=>this.focusTrap&&this.focusTrap.deactivate(),isContentScrollable:()=>!!this.$refs.contentEl&&function(t){return!!t&&t.scrollHeight>t.offsetHeight}(this.$refs.contentEl),areButtonsStacked:()=>(function(t){var e=new Set;return[].forEach.call(t,function(t){return e.add(t.offsetTop)}),e.size>1}
/**

@@ -124,3 +123,3 @@ * @license

* THE SOFTWARE.
*/)(this.buttons_),getActionFromEvent:e=>{const n=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(p(n,e))return n;n=n.parentElement}return null}(e.target,`[${t.ACTION_ATTRIBUTE}]`);return n&&n.getAttribute(t.ACTION_ATTRIBUTE)},clickDefaultButton:()=>{const t=this.defaultButton;t&&t.click()},reverseButtons:()=>{const t=this.buttons_;return t&&t.reverse().forEach(t=>t.parentElement&&t.parentElement.appendChild(t))},notifyOpening:()=>{this.$emit(t.OPENING_EVENT,{}),g.forEach(t=>window.addEventListener(t,this.handleLayout)),document.addEventListener("keydown",this.handleDocumentKeyDown)},notifyOpened:()=>this.$emit(t.OPENED_EVENT,{}),notifyClosing:e=>{this.$emit("change",!1),this.$emit(t.CLOSING_EVENT,e?{action:e}:{}),g.forEach(t=>window.removeEventListener(t,this.handleLayout)),document.removeEventListener("keydown",this.handleDocumentKeyDown)},notifyClosed:e=>{this.$emit(t.CLOSED_EVENT,e?{action:e}:{})}};this.foundation=new u(o),this.foundation.init(),n||this.foundation.setAutoStackButtons(n),"string"==typeof i&&this.foundation.setEscapeKeyAction(i),"string"==typeof a&&this.foundation.setScrimClickAction(a),this.onOpen_(e)},beforeDestroy(){this.foundation.destroy()},methods:{handleLayout(){this.foundation.layout()},handleDocumentKeyDown(t){this.foundation.handleDocumentKeydown(t)},onOpen_(t){
*/)(this.buttons_),getActionFromEvent:e=>{const n=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(f(n,e))return n;n=n.parentElement}return null}(e.target,`[${t.ACTION_ATTRIBUTE}]`);return n&&n.getAttribute(t.ACTION_ATTRIBUTE)},clickDefaultButton:()=>{const t=this.defaultButton;t&&t.click()},reverseButtons:()=>{const t=this.buttons_;return t&&t.reverse().forEach(t=>t.parentElement&&t.parentElement.appendChild(t))},notifyOpening:()=>{this.$emit(t.OPENING_EVENT,{}),g.forEach(t=>window.addEventListener(t,this.handleLayout)),document.addEventListener("keydown",this.handleDocumentKeyDown)},notifyOpened:()=>this.$emit(t.OPENED_EVENT,{}),notifyClosing:e=>{this.$emit("change",!1),this.$emit(t.CLOSING_EVENT,e?{action:e}:{}),g.forEach(t=>window.removeEventListener(t,this.handleLayout)),document.removeEventListener("keydown",this.handleDocumentKeyDown)},notifyClosed:e=>{this.$emit(t.CLOSED_EVENT,e?{action:e}:{})}};this.foundation=new d(o),this.foundation.init(),n||this.foundation.setAutoStackButtons(n),"string"==typeof i&&this.foundation.setEscapeKeyAction(i),"string"==typeof a&&this.foundation.setScrimClickAction(a),this.onOpen_(e)},beforeDestroy(){this.foundation.destroy()},methods:{handleLayout(){this.foundation.layout()},handleDocumentKeyDown(t){this.foundation.handleDocumentKeydown(t)},onOpen_(t){
/**

@@ -148,3 +147,3 @@ * @license

*/
var e,n,i;t?(this.$refs.container&&(this.focusTrap=(e=this.$el,void 0===(n=l.a)&&(n=l.a),n(e,{clickOutsideDeactivates:!0,escapeDeactivates:!1,initialFocus:i}))),this.foundation.open()):this.foundation.close()},onCancel(){this.$listeners.validateCancel?this.$emit("validateCancel",{cancel:(t=!0)=>{t||this.$emit("change",!1),this.foundation.cancel(t)}}):this.foundation.cancel(!0)},onAccept(){this.$listeners.validate?this.$emit("validate",{accept:(t=!0)=>{t||this.$emit("change",!1),this.foundation.accept(t)}}):this.foundation.accept(!0)}}};e.default=Object(h.a)({mdcDialog:T,mdcDialogTitle:A,mdcDialogFooter:E,mdcDialogButton:y,mdcDialogContent:b})},9:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a});const i={name:"custom-button",functional:!0,props:{link:Object},render(t,{children:e,data:n,props:{link:i,tag:a},parent:{$router:o,$root:r}}){let s;return i&&o?(s=r.$options.components.RouterLink,n.props={tag:a,...i},n.attrs.role="button",n.on.click&&(n.nativeOn={click:n.on.click})):n.attrs&&n.attrs.href?(s="a",n.attrs.role="button"):s="button",t(s,n,e)}},a={props:{href:String,disabled:Boolean,to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomButton:i}}}})});
var e,n,i;t?(this.$refs.container&&(this.focusTrap=(e=this.$el,void 0===(n=p.a)&&(n=p.a),n(e,{clickOutsideDeactivates:!0,escapeDeactivates:!1,initialFocus:i}))),this.foundation.open()):this.foundation.close()},onCancel(){this.$listeners.validateCancel?this.$emit("validateCancel",{cancel:(t=!0)=>{t||this.$emit("change",!1),this.foundation.cancel(t)}}):this.foundation.cancel(!0)},onAccept(){this.$listeners.validate?this.$emit("validate",{accept:(t=!0)=>{t||this.$emit("change",!1),this.foundation.accept(t)}}):this.foundation.accept(!0)}},render(t){const e=this.$scopedSlots.default&&this.$scopedSlots.default()||[];return e.forEach(({tag:n,data:{props:i,class:a,attrs:o}={}},r)=>{if("template"===n&&i.tag){const n=i.tag.split("-").pop();e[r]=t(i.tag,{class:a,attrs:o,scopedSlots:{[n]:({id:t,content:e})=>{if("title"===n||"content"===n){const i=e.data||(e.data={}),a=i.attrs||(i.attrs={});a.id=t||`${this.id}-${n}`,this["title"===n?"labelledBy":"describedBy"]=a.id}if("content"===n){(e.data||(e.data={})).ref="contentEl"}return e}}},e[r].children)}}),t("div",{class:this.classes,style:this.styles,attrs:{id:this.id,"aria-modal":"true","aria-labelledby":this.labelledBy,"aria-describedby":this.describedBy,role:"alertdialog"},ref:"root",on:{click:t=>this.foundation.handleInteraction(t),keydown:t=>this.foundation.handleInteraction(t)}},[t("div",{class:v.CONTAINER,ref:"container"},[t("div",{class:v.SURFACE},this.$scopedSlots.default&&this.$scopedSlots.default())]),t("div",{class:"mdc-dialog__scrim"})])}},b={name:"mcw-dialog-button",functional:!0,props:{action:String,isDefault:Boolean},render:(t,{props:{action:e,isDefault:n},data:{staticClass:i,attrs:a},scopedSlots:o})=>t("mcw-button",{class:[i,v.BUTTON,{[v.DEFAULT_BUTTON]:n}],attrs:{...a,"data-mdc-dialog-action":e}},o.default&&o.default())},E={name:"mcw-dialog-content",functional:!0,props:{tag:{type:String,default:()=>"div"}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.content){const e=t(a,{class:o,attrs:s},n.default());return n.content({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-content"},attrs:s,class:[r,v.CONTENT]},n.default&&n.default())}},A={name:"mcw-dialog-footer",functional:!0,props:{tag:{type:String,default:()=>"footer"}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.footer){const e=t(a,{class:o,attrs:s},n.default());return n.footer({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-footer"},attrs:s,class:[r,v.ACTIONS]},n.default&&n.default())}},T={name:"mcw-dialog-title",functional:!0,props:{tag:{type:String,default:()=>"h2"},id:{}},render(t,e){const{scopedSlots:n,props:{id:i,tag:a},data:{class:o,staticClass:r,attrs:s}}=e;if(n.title){const e=t(a,{class:o,attrs:s},n.default());return n.title({id:i,content:e})}return t("template",{props:{tag:"mdc-dialog-title"},attrs:s,class:[r,v.TITLE]},n.default&&n.default())}};n.d(e,"mcwDialog",function(){return y}),n.d(e,"mcwDialogTitle",function(){return T}),n.d(e,"mcwDialogFooter",function(){return A}),n.d(e,"mcwDialogButton",function(){return b}),n.d(e,"mcwDialogContent",function(){return E});e.default=Object(i.a)({mcwDialog:y,mcwDialogTitle:T,mcwDialogFooter:A,mcwDialogButton:b,mcwDialogContent:E})}})});
//# sourceMappingURL=mcwv.dialog.min.js.map

@@ -1,290 +0,22 @@

/* eslint-disable quote-props */
import MDCDialogFoundation from '@material/dialog/foundation';
import * as util from '@material/dialog/util';
import { closest, matches } from '@material/dom/ponyfill';
import { BasePlugin, VMAUniqueIdMixin } from '@mcwv/base';
import { mdcButton } from '@mcwv/button';
import createFocusTrap from 'focus-trap';
import { cssClasses, LAYOUT_EVENTS } from './constants';
import mdcDialogButton from './mdc-dialog-button.js';
import mdcDialogContent from './mdc-dialog-content.js';
import mdcDialogFooter from './mdc-dialog-footer.js';
import mdcDialogTitle from './mdc-dialog-title.js';
import { BasePlugin } from '@mcwv/base';
import mcwDialog from './dialog.js';
import mcwDialogButton from './dialog-button.js';
import mcwDialogContent from './dialog-content.js';
import mcwDialogFooter from './dialog-footer.js';
import mcwDialogTitle from './dialog-title.js';
const mdcDialog = {
name: 'mdc-dialog',
components: {
mdcButton: mdcButton,
},
mixins: [VMAUniqueIdMixin],
model: {
prop: 'open',
event: 'change',
},
props: {
autoStackButtons: Boolean,
escapeKeyAction: String,
scrollable: Boolean,
open: Boolean,
role: String,
scrimClickAction: { type: String, default: 'close' },
tag: { type: String, default: 'div' },
id: { type: String, default: 'mdc-dialog' },
},
data() {
return {
labelledBy: null,
describedBy: null,
classes: { 'mdc-dialog': 1 },
styles: {},
};
},
watch: {
open: 'onOpen_',
},
render(createElement) {
const mdt =
(this.$scopedSlots.default && this.$scopedSlots.default()) || [];
mdt.forEach(
({ tag: childTag, data: { props, class: classes, attrs } = {} }, i) => {
if (childTag === 'template' && props.tag) {
const kind = props.tag.split('-').pop();
mdt[i] = createElement(
props.tag,
{
class: classes,
attrs,
scopedSlots: {
[kind]: ({ id, content }) => {
if (kind === 'title' || kind === 'content') {
const cdata = content.data || (content.data = {});
const cattrs = cdata.attrs || (cdata.attrs = {});
cattrs.id = id || `${this.id}-${kind}`;
this[kind === 'title' ? 'labelledBy' : 'describedBy'] =
cattrs.id;
}
if (kind === 'content') {
const cdata = content.data || (content.data = {});
cdata.ref = 'contentEl';
}
return content;
},
},
},
mdt[i].children,
);
}
},
);
return createElement(
'div',
{
class: this.classes,
style: this.styles,
attrs: {
id: this.id,
'aria-modal': 'true',
'aria-labelledby': this.labelledBy,
'aria-describedby': this.describedBy,
role: 'alertdialog',
},
ref: 'root',
on: {
click: evt => this.foundation.handleInteraction(evt),
keydown: evt => this.foundation.handleInteraction(evt),
},
},
[
createElement(
'div',
{
class: cssClasses.CONTAINER,
ref: 'container',
},
[
createElement(
'div',
{ class: cssClasses.SURFACE },
this.$scopedSlots.default && this.$scopedSlots.default(),
),
],
),
createElement('div', { class: 'mdc-dialog__scrim' }),
],
);
},
mounted() {
const strings = MDCDialogFoundation.strings;
const { open, autoStackButtons, escapeKeyAction, scrimClickAction } = this;
this.buttons_ = [].slice.call(this.$el.querySelectorAll(cssClasses.BUTTON));
this.defaultButton = this.$el.querySelector(
`.${cssClasses.DEFAULT_BUTTON}`,
);
const adapter = {
addClass: className => this.$set(this.classes, className, true),
removeClass: className => this.$delete(this.classes, className),
hasClass: className => this.$el.classList.contains(className),
addBodyClass: className => document.body.classList.add(className),
removeBodyClass: className => document.body.classList.remove(className),
eventTargetMatches: (target, selector) => matches(target, selector),
trapFocus: () => this.focusTrap && this.focusTrap.activate(),
releaseFocus: () => this.focusTrap && this.focusTrap.deactivate(),
isContentScrollable: () =>
!!this.$refs.contentEl && util.isScrollable(this.$refs.contentEl),
areButtonsStacked: () => util.areTopsMisaligned(this.buttons_),
getActionFromEvent: event => {
const elem = closest(event.target, `[${strings.ACTION_ATTRIBUTE}]`);
return elem && elem.getAttribute(strings.ACTION_ATTRIBUTE);
},
clickDefaultButton: () => {
const defaultButton = this.defaultButton;
if (defaultButton) {
defaultButton.click();
}
},
reverseButtons: () => {
const buttons = this.buttons_;
return (
buttons &&
buttons
.reverse()
.forEach(
button =>
button.parentElement &&
button.parentElement.appendChild(button),
)
);
},
notifyOpening: () => {
this.$emit(strings.OPENING_EVENT, {});
LAYOUT_EVENTS.forEach(evt =>
window.addEventListener(evt, this.handleLayout),
);
document.addEventListener('keydown', this.handleDocumentKeyDown);
},
notifyOpened: () => this.$emit(strings.OPENED_EVENT, {}),
notifyClosing: action => {
this.$emit('change', false);
// console.log(action)
this.$emit(strings.CLOSING_EVENT, action ? { action } : {});
LAYOUT_EVENTS.forEach(evt =>
window.removeEventListener(evt, this.handleLayout),
);
document.removeEventListener('keydown', this.handleDocumentKeyDown);
},
notifyClosed: action => {
this.$emit(strings.CLOSED_EVENT, action ? { action } : {});
},
};
this.foundation = new MDCDialogFoundation(adapter);
this.foundation.init();
if (!autoStackButtons) {
this.foundation.setAutoStackButtons(autoStackButtons);
}
if (typeof escapeKeyAction === 'string') {
// set even if empty string
this.foundation.setEscapeKeyAction(escapeKeyAction);
}
if (typeof scrimClickAction === 'string') {
// set even if empty string
this.foundation.setScrimClickAction(scrimClickAction);
}
this.onOpen_(open);
},
beforeDestroy() {
this.foundation.destroy();
},
methods: {
handleLayout() {
this.foundation.layout();
},
handleDocumentKeyDown(e) {
this.foundation.handleDocumentKeydown(e);
},
onOpen_(value) {
if (value) {
if (this.$refs.container) {
this.focusTrap = util.createFocusTrapInstance(
this.$el,
createFocusTrap,
);
}
this.foundation.open();
} else {
this.foundation.close();
}
},
onCancel() {
if (this.$listeners['validateCancel']) {
this.$emit('validateCancel', {
cancel: (notify = true) => {
// if notify = false, the dialog will close
// but the notifyAccept method will not be called
// so we need to notify listeners the open state
// is changing.
if (!notify) {
this.$emit('change', false);
}
this.foundation.cancel(notify);
},
});
} else {
this.foundation.cancel(true);
}
},
onAccept() {
if (this.$listeners['validate']) {
this.$emit('validate', {
accept: (notify = true) => {
// if notify = false, the dialog will close
// but the notifyAccept method will not be called
// so we need to notify listeners the open state
// is changing.
if (!notify) {
this.$emit('change', false);
}
this.foundation.accept(notify);
},
});
} else {
this.foundation.accept(true);
}
},
// show() {
// this.foundation.open();
// },
// close() {
// this.foundation.close();
// },
},
};
export {
mdcDialog,
mdcDialogTitle,
mdcDialogFooter,
mdcDialogButton,
mdcDialogContent,
mcwDialog,
mcwDialogTitle,
mcwDialogFooter,
mcwDialogButton,
mcwDialogContent,
};
export default BasePlugin({
mdcDialog,
mdcDialogTitle,
mdcDialogFooter,
mdcDialogButton,
mdcDialogContent,
mcwDialog,
mcwDialogTitle,
mcwDialogFooter,
mcwDialogButton,
mcwDialogContent,
});
{
"name": "@mcwv/dialog",
"description": "The Vue Material Adapter for the web dialog component",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",

@@ -20,6 +20,6 @@ "main": "dist/mcwv.dialog.min.js",

"@material/dialog": "^1.1.1",
"@mcwv/base": "^0.4.0",
"@mcwv/button": "^0.4.0"
"@mcwv/base": "^0.5.0",
"@mcwv/button": "^0.5.0"
},
"gitHead": "18ce29b68e90ce14bdc0f9e9e579904a9968cfd2"
"gitHead": "01c129112cab2a105f8f0b44bda616813bce6a04"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc