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

@mcwv/textfield

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/textfield - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

101

dist/mcwv.textfield.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.textfield=e():(t.mcwv=t.mcwv||{},t.mcwv.textfield=e())}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=71)}({1:function(t,e,i){"use strict";function n(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.textfield=e():(t.mcwv=t.mcwv||{},t.mcwv.textfield=e())}(window,function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=82)}({82:function(t,e,i){i(88),t.exports=i(83)},83:function(t,e,i){},88:function(t,e,i){"use strict";function n(t){return{version:"__VERSION__",install:e=>{Object.entries(t).forEach(([t,i])=>{const n=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[a,...s]=n.split("-"),r=["mdc",...s].join("-"),o=["mcw",...s].join("-"),l=e.extend(i);e.component(o,l),e.component(r,l)})},components:t}}
/*! *****************************************************************************

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

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

@@ -39,6 +39,6 @@ * @license

*/
var s,o,l=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}(),d={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},u={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},c={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};function h(t,e){if(void 0===t&&(t=window),void 0===e&&(e=!1),void 0===o||e){var i=!1;try{t.document.addEventListener("test",function(){},{get passive(){return i=!0}})}catch(t){}o=i}return!!o&&{passive:!0}}
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}(),l={ARIA_CONTROLS:"aria-controls",ICON_SELECTOR:".mdc-text-field__icon",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline"},d={DENSE:"mdc-text-field--dense",DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",FULLWIDTH:"mdc-text-field--fullwidth",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},u={DENSE_LABEL_SCALE:.923,LABEL_SCALE:.75},c=["pattern","min","max","required","step","minlength","maxlength"],h=["color","date","datetime-local","month","range","time","week"],p=["mousedown","touchstart"],f=["click","keydown"],_=function(t){function e(i,n){void 0===n&&(n={});var a=t.call(this,r({},e.defaultAdapter,i))||this;return a.isFocused_=!1,a.receivedUserInput_=!1,a.isValid_=!0,a.useNativeValidation_=!0,a.helperText_=n.helperText,a.characterCounter_=n.characterCounter,a.leadingIcon_=n.leadingIcon,a.trailingIcon_=n.trailingIcon,a.inputFocusHandler_=function(){return a.activateFocus()},a.inputBlurHandler_=function(){return a.deactivateFocus()},a.inputInputHandler_=function(){return a.handleInput()},a.setPointerXOffset_=function(t){return a.setTransformOrigin(t)},a.textFieldInteractionHandler_=function(){return a.handleTextFieldInteraction()},a.validationAttributeChangeHandler_=function(t){return a.handleValidationAttributeChange(t)},a}return s(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat_",{get:function(){var t=this.getNativeInput_().type;return h.indexOf(t)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||Boolean(this.getValue())||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&Boolean(this.getValue())},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this;this.adapter_.isFocused()?this.inputFocusHandler_():this.adapter_.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter_.floatLabel(!0)),this.adapter_.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.registerInputInteractionHandler("input",this.inputInputHandler_),p.forEach(function(e){t.adapter_.registerInputInteractionHandler(e,t.setPointerXOffset_)}),f.forEach(function(e){t.adapter_.registerTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter_.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},e.prototype.destroy=function(){var t=this;this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_),p.forEach(function(e){t.adapter_.deregisterInputInteractionHandler(e,t.setPointerXOffset_)}),f.forEach(function(e){t.adapter_.deregisterTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.adapter_.deregisterValidationAttributeChangeHandler(this.validationObserver_)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter_.getNativeInput();t&&t.disabled||(this.receivedUserInput_=!0)},e.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return c.indexOf(t)>-1&&(e.styleValidity_(!0),!0)}),t.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter_.hasOutline())if(t){var e=this.adapter_.hasClass(d.DENSE)?u.DENSE_LABEL_SCALE:u.LABEL_SCALE,i=this.adapter_.getLabelWidth()*e;this.adapter_.notchOutline(i)}else this.adapter_.closeOutline()},e.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter_.activateLineRipple(),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake)),this.helperText_&&this.helperText_.showToScreenReader()},e.prototype.setTransformOrigin=function(t){var e=t.touches,i=e?e[0]:t,n=i.target.getBoundingClientRect(),a=i.clientX-n.left;this.adapter_.setLineRippleTransformOrigin(a)},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter_.deactivateLineRipple();var t=this.isValid();this.styleValidity_(t),this.styleFocused_(this.isFocused_),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},e.prototype.getValue=function(){return this.getNativeInput_().value},e.prototype.setValue=function(t){this.getValue()!==t&&(this.getNativeInput_().value=t,this.setCharacterCounter_(t.length));var e=this.isValid();this.styleValidity_(e),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},e.prototype.setValid=function(t){this.isValid_=t,this.styleValidity_(t);var e=!t&&!this.isFocused_;this.adapter_.hasLabel()&&this.adapter_.shakeLabel(e)},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation_=t},e.prototype.isDisabled=function(){return this.getNativeInput_().disabled},e.prototype.setDisabled=function(t){this.getNativeInput_().disabled=t,this.styleDisabled_(t)},e.prototype.setHelperTextContent=function(t){this.helperText_&&this.helperText_.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon_&&this.leadingIcon_.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon_&&this.trailingIcon_.setContent(t)},e.prototype.setCharacterCounter_=function(t){if(this.characterCounter_){var e=this.getNativeInput_().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(t,e)}},e.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},e.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},e.prototype.styleValidity_=function(t){var i=e.cssClasses.INVALID;t?this.adapter_.removeClass(i):this.adapter_.addClass(i),this.helperText_&&this.helperText_.setValidity(t)},e.prototype.styleFocused_=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.styleDisabled_=function(t){var i=e.cssClasses,n=i.DISABLED,a=i.INVALID;t?(this.adapter_.addClass(n),this.adapter_.removeClass(a)):this.adapter_.removeClass(n),this.leadingIcon_&&this.leadingIcon_.setDisabled(t),this.trailingIcon_&&this.trailingIcon_.setDisabled(t)},e.prototype.getNativeInput_=function(){return(this.adapter_?this.adapter_.getNativeInput():null)||{disabled:!1,maxLength:-1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(o);const v={data:()=>({hasFocus:!1}),methods:{onMouseDown(){this._active=!0},onMouseUp(){this._active=!1},onFocusEvent(){setTimeout(()=>this.dispatchFocusEvent(),0)},onBlurEvent(){this._active||setTimeout(()=>this.dispatchFocusEvent(),0)},dispatchFocusEvent(){const t=this.$el===document.activeElement||this.$el.contains(document.activeElement);t!=this.hasFocus&&(this.$emit(t?"focus":"blur"),this.hasFocus=t)}},mounted(){this.$el.addEventListener("focusin",this.onFocusEvent),this.$el.addEventListener("focusout",this.onBlurEvent),this.$el.addEventListener("mousedown",this.onMouseDown),this.$el.addEventListener("mouseup",this.onMouseUp)},beforeDestroy(){this.$el.removeEventListener("focusin",this.onFocusEvent),this.$el.removeEventListener("focusout",this.onBlurEvent),this.$el.removeEventListener("mousedown",this.onMouseDown),this.$el.removeEventListener("mouseup",this.onMouseUp)}},m=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",g={beforeCreate(){this.vma_uid_=m+this._uid}};let b;function E(t=window,e=!1){if(void 0===b||e){let e=!1;try{t.document.addEventListener("test",null,{get passive(){return e={passive:!0}}})}catch(t){}b=e}return b}
/**
* @license
* Copyright 2016 Google Inc.
* Copyright 2018 Google Inc.
*

@@ -62,18 +62,3 @@ * Permission is hereby granted, free of charge, to any person obtaining a copy

* THE SOFTWARE.
*/
var p=["touchstart","pointerdown","mousedown","keydown"],f=["touchend","pointerup","mouseup","contextmenu"],_=[],v=function(t){function e(i){var n=t.call(this,a({},e.defaultAdapter,i))||this;return n.activationAnimationHasEnded_=!1,n.activationTimer_=0,n.fgDeactivationRemovalTimer_=0,n.fgScale_="0",n.frame_={width:0,height:0},n.initialSize_=0,n.layoutFrame_=0,n.maxRadius_=0,n.unboundedCoords_={left:0,top:0},n.activationState_=n.defaultActivationState_(),n.activationTimerCallback_=function(){n.activationAnimationHasEnded_=!0,n.runDeactivationUXLogicIfReady_()},n.activateHandler_=function(t){return n.activate_(t)},n.deactivateHandler_=function(){return n.deactivate_()},n.focusHandler_=function(){return n.handleFocus()},n.blurHandler_=function(){return n.handleBlur()},n.resizeHandler_=function(){return n.layout()},n}return function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return c},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,i=this.supportsPressRipple_();if(this.registerRootHandlers_(i),i){var n=e.cssClasses,r=n.ROOT,a=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.addClass(r),t.adapter_.isUnbounded()&&(t.adapter_.addClass(a),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 i=e.cssClasses,n=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.removeClass(n),t.adapter_.removeClass(r),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 i=e.cssClasses.UNBOUNDED;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},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&&(p.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_):f.forEach(function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},e.prototype.deregisterRootHandlers_=function(){var t=this;p.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_),f.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})},e.prototype.removeCssVars_=function(){var t=this,i=e.strings;Object.keys(i).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(i[e],null)})},e.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var i=this.activationState_;if(!i.isActivated){var n=this.previousActivationEvent_;if(!(n&&void 0!==t&&n.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&_.length>0&&_.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(_.push(t.target),this.registerDeactivationHandlers_(t)),i.wasElementMadeActive=this.checkElementMadeActive_(t),i.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){_=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive_(t),i.wasElementMadeActive&&e.animateActivation_()),i.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,i=e.strings,n=i.VAR_FG_TRANSLATE_START,r=i.VAR_FG_TRANSLATE_END,a=e.cssClasses,s=a.FG_DEACTIVATION,o=a.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var d="",u="";if(!this.adapter_.isUnbounded()){var c=this.getFgTranslationCoordinates_(),h=c.startPoint,p=c.endPoint;d=h.x+"px, "+h.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter_.updateCssVariable(n,d),this.adapter_.updateCssVariable(r,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(s),this.adapter_.computeBoundingRect(),this.adapter_.addClass(o),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},l)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var n,r,a=e.x,s=e.y,o=a+i.left,l=s+i.top;if("touchstart"===t.type){var d=t;n=d.changedTouches[0].pageX-o,r=d.changedTouches[0].pageY-l}else{var u=t;n=u.pageX-o,r=u.pageY-l}return{x:n,y:r}}(i,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,i=e.cssClasses.FG_DEACTIVATION,n=this.activationState_,r=n.hasDeactivationUXRun,a=n.isActivated;(r||!a)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(i),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter_.removeClass(i)},c.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 i=a({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(i)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(i),t.resetActivationState_()}))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter_.computeBoundingRect();var i=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?i:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING,this.initialSize_=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE),this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,i=t.VAR_FG_SIZE,n=t.VAR_LEFT,r=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(i,this.initialSize_+"px"),this.adapter_.updateCssVariable(a,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(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(r,this.unboundedCoords_.top+"px"))},e}(l);class m extends v{constructor(t,e){super({addClass(e){t.$set(t.classes,e,!0)},browserSupportsCssVars:()=>(function(t,e){void 0===e&&(e=!1);var i=t.CSS,n=s;if("boolean"==typeof s&&!e)return s;if(!i||"function"!=typeof i.supports)return!1;var r=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=!(!r&&!a||function(t){var e=t.document,i=e.createElement("div");i.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(i);var n=t.getComputedStyle(i),r=null!==n&&"solid"===n.borderTopStyle;return i.remove(),r}(t)),e||(s=n),n})(window),computeBoundingRect:()=>t.$el.getBoundingClientRect(),containsEventTarget:e=>t.$el.contains(e),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,h()),deregisterInteractionHandler:(e,i)=>{t.$el.removeEventListener(e,i,h())},deregisterResizeHandler:t=>window.removeEventListener("resize",t),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>n(t.$el,":active"),isSurfaceDisabled:()=>t.disabled,isUnbounded:()=>!1,registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,h()),registerInteractionHandler:(e,i)=>{t.$el.addEventListener(e,i,h())},registerResizeHandler:t=>window.addEventListener("resize",t),removeClass(e){t.$delete(t.classes,e)},updateCssVariable:(e,i)=>{t.$set(t.styles,e,i)},...e})}}const g={data:()=>({classes:{},styles:{}}),mounted(){this.ripple=new m(this),this.ripple.init()},beforeDestroy(){this.ripple.destroy()}};i.d(e,"RippleBase",function(){return m}),i.d(e,"RippleMixin",function(){return g})},10:function(t,e,i){"use strict";let n;function r(t=window,e=!1){if(void 0===n||e){let e=!1;try{t.document.addEventListener("test",null,{get passive(){return e={passive:!0}}})}catch(t){}n=e}return n}i.d(e,"a",function(){return r})},14:function(t,e,i){"use strict";i.r(e);var n=i(2),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var a=function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
*/function y(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}
/**

@@ -100,18 +85,3 @@ * @license

* THE SOFTWARE.
*/
var s=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}(),o={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},l=function(t){function e(i){var n=t.call(this,a({},e.defaultAdapter,i))||this;return n.transitionEndHandler_=function(t){return n.handleTransitionEnd(t)},n}return function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.activate=function(){this.adapter_.removeClass(o.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(o.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter_.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter_.addClass(o.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter_.hasClass(o.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter_.removeClass(o.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(o.LINE_RIPPLE_DEACTIVATING))},e}(s),d={name:"mcw-line-ripple",props:{rippleCenter:{type:[Number,String],default:0},active:Boolean},data:()=>({lineClasses:{"mdc-line-ripple":1},lineStyles:{}}),mounted(){const t={addClass:t=>{this.$set(this.lineClasses,t,!0)},removeClass:t=>{this.$delete(this.lineClasses,t)},hasClass:t=>Boolean(this.lineClasses[t]),setStyle:(t,e)=>{this.$set(this.lineStyles,t,e)}};this.foundation_=new l(t),this.foundation_.init()},beforeDestroy(){this.foundation_.destroy()},methods:{setRippleCenter(t){this.foundation_.setRippleCenter(t)},activate(){this.foundation_.activate()},deactivate(){this.foundation_.deactivate()}},render(t){return t("div",{class:this.lineClasses,style:this.lineStyles,on:{transitionend:t=>this.foundation_.handleTransitionEnd(t)}})}};i.d(e,"mcwLineRipple",function(){return d});e.default=Object(n.a)({mcwLineRipple:d})},15:function(t,e,i){"use strict";i.r(e);var n=i(2),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var a=function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
*/var C,I,A={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},T={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},L={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};function O(t,e){if(void 0===t&&(t=window),void 0===e&&(e=!1),void 0===I||e){var i=!1;try{t.document.addEventListener("test",function(){},{get passive(){return i=!0}})}catch(t){}I=i}return!!I&&{passive:!0}}
/**

@@ -139,17 +109,3 @@ * @license

*/
var s=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}(),o={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},l={NOTCH_ELEMENT_PADDING:8},d={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},u=function(t){function e(i){return t.call(this,a({},e.defaultAdapter,i))||this}return function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"strings",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{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(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),e.prototype.notch=function(t){var i=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=l.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(i)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},e}(s),c=i(6),h={name:"mcw-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0},notchStyles:{}}),mounted(){const{OUTLINE_UPGRADED:t,NO_LABEL:e}=u.cssClasses,i={addClass:t=>{this.$set(this.outlinedClasses,t,!0)},removeClass:t=>{this.$delete(this.outlinedClasses,t)},setNotchWidthProperty:t=>this.$set(this.notchStyles,"width",`${t}px`),removeNotchWidthProperty:()=>this.$delete(this.notchStyles,"width")};this.foundation=new u(i),this.foundation.init();const n=this.$slots.default?t:e;this.$set(this.outlinedClasses,n,!0)},beforeDestroy(){this.foundation.destroy()},methods:{notch(t){this.foundation.notch(t)},closeNotch(){this.foundation.closeNotch()},float(t){this.$refs.labelEl&&this.$refs.labelEl.float(t)},shake(t){this.$refs.labelEl&&this.$refs.labelEl.shake(t)},getWidth(){return this.$refs.labelEl.getWidth()}},render(t){const{$scopedSlots:e}=this,i=t("div",{class:"mdc-notched-outline__notch",style:this.notchStyles},[e.default&&t(c.mcwFloatingLabel,{ref:"labelEl"},e.default())]);return t("div",{class:this.outlinedClasses},[t("div",{class:"mdc-notched-outline__leading"}),i,t("div",{class:"mdc-notched-outline__trailing"})])}};i.d(e,"mcwNotchedOutline",function(){return h});e.default=Object(n.a)({mcwNotchedOutline:h})},2:function(t,e,i){"use strict";function n(t){return{version:"__VERSION__",install:e=>{Object.entries(t).forEach(([t,i])=>{const n=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[r,...a]=n.split("-"),s=["mdc",...a].join("-"),o=["mcw",...a].join("-"),l=e.extend(i);e.component(o,l),e.component(s,l)})},components:t}}i.d(e,"a",function(){return n})},5:function(t,e,i){"use strict";i.d(e,"a",function(){return r});const n=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",r={beforeCreate(){this.vma_uid_=n+this._uid}}},6:function(t,e,i){"use strict";i.r(e);var n=i(2),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var a=function(){return(a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
var x=["touchstart","pointerdown","mousedown","keydown"],H=["touchend","pointerup","mouseup","contextmenu"],S=[],N=function(t){function e(i){var n=t.call(this,r({},e.defaultAdapter,i))||this;return n.activationAnimationHasEnded_=!1,n.activationTimer_=0,n.fgDeactivationRemovalTimer_=0,n.fgScale_="0",n.frame_={width:0,height:0},n.initialSize_=0,n.layoutFrame_=0,n.maxRadius_=0,n.unboundedCoords_={left:0,top:0},n.activationState_=n.defaultActivationState_(),n.activationTimerCallback_=function(){n.activationAnimationHasEnded_=!0,n.runDeactivationUXLogicIfReady_()},n.activateHandler_=function(t){return n.activate_(t)},n.deactivateHandler_=function(){return n.deactivate_()},n.focusHandler_=function(){return n.handleFocus()},n.blurHandler_=function(){return n.handleBlur()},n.resizeHandler_=function(){return n.layout()},n}return s(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return A},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return T},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,i=this.supportsPressRipple_();if(this.registerRootHandlers_(i),i){var n=e.cssClasses,a=n.ROOT,s=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.addClass(a),t.adapter_.isUnbounded()&&(t.adapter_.addClass(s),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 i=e.cssClasses,n=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.removeClass(n),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 i=e.cssClasses.UNBOUNDED;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},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&&(x.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;x.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,i=e.strings;Object.keys(i).forEach(function(e){0===e.indexOf("VAR_")&&t.adapter_.updateCssVariable(i[e],null)})},e.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var i=this.activationState_;if(!i.isActivated){var n=this.previousActivationEvent_;if(!(n&&void 0!==t&&n.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&S.length>0&&S.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(S.push(t.target),this.registerDeactivationHandlers_(t)),i.wasElementMadeActive=this.checkElementMadeActive_(t),i.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){S=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive_(t),i.wasElementMadeActive&&e.animateActivation_()),i.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,i=e.strings,n=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,s=e.cssClasses,r=s.FG_DEACTIVATION,o=s.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var d="",u="";if(!this.adapter_.isUnbounded()){var c=this.getFgTranslationCoordinates_(),h=c.startPoint,p=c.endPoint;d=h.x+"px, "+h.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter_.updateCssVariable(n,d),this.adapter_.updateCssVariable(a,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(r),this.adapter_.computeBoundingRect(),this.adapter_.addClass(o),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},l)},e.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var n,a,s=e.x,r=e.y,o=s+i.left,l=r+i.top;if("touchstart"===t.type){var d=t;n=d.changedTouches[0].pageX-o,a=d.changedTouches[0].pageY-l}else{var u=t;n=u.pageX-o,a=u.pageY-l}return{x:n,y:a}}(i,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,i=e.cssClasses.FG_DEACTIVATION,n=this.activationState_,a=n.hasDeactivationUXRun,s=n.isActivated;(a||!s)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(i),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter_.removeClass(i)},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 i=r({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(i)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(i),t.resetActivationState_()}))}},e.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady_()},e.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter_.computeBoundingRect();var i=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?i:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+e.numbers.PADDING,this.initialSize_=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE),this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},e.prototype.updateLayoutCssVars_=function(){var t=e.strings,i=t.VAR_FG_SIZE,n=t.VAR_LEFT,a=t.VAR_TOP,s=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(i,this.initialSize_+"px"),this.adapter_.updateCssVariable(s,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(n,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(a,this.unboundedCoords_.top+"px"))},e}(o);class R extends N{constructor(t,e){super({addClass(e){t.$set(t.classes,e,!0)},browserSupportsCssVars:()=>(function(t,e){void 0===e&&(e=!1);var i=t.CSS,n=C;if("boolean"==typeof C&&!e)return C;if(!i||"function"!=typeof i.supports)return!1;var a=i.supports("--css-vars","yes"),s=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=!(!a&&!s||function(t){var e=t.document,i=e.createElement("div");i.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(i);var n=t.getComputedStyle(i),a=null!==n&&"solid"===n.borderTopStyle;return i.remove(),a}(t)),e||(C=n),n})(window),computeBoundingRect:()=>t.$el.getBoundingClientRect(),containsEventTarget:e=>t.$el.contains(e),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,O()),deregisterInteractionHandler:(e,i)=>{t.$el.removeEventListener(e,i,O())},deregisterResizeHandler:t=>window.removeEventListener("resize",t),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>y(t.$el,":active"),isSurfaceDisabled:()=>t.disabled,isUnbounded:()=>!1,registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,O()),registerInteractionHandler:(e,i)=>{t.$el.addEventListener(e,i,O())},registerResizeHandler:t=>window.addEventListener("resize",t),removeClass(e){t.$delete(t.classes,e)},updateCssVariable:(e,i)=>{t.$set(t.styles,e,i)},...e})}}
/**

@@ -177,17 +133,3 @@ * @license

*/
var s=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}(),o={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},l=function(t){function e(i){var n=t.call(this,a({},e.defaultAdapter,i))||this;return n.shakeAnimationEndHandler_=function(){return n.handleShakeAnimationEnd_()},n}return function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.getWidth=function(){return this.adapter_.getWidth()},e.prototype.shake=function(t){var i=e.cssClasses.LABEL_SHAKE;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.float=function(t){var i=e.cssClasses,n=i.LABEL_FLOAT_ABOVE,r=i.LABEL_SHAKE;t?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(r))},e.prototype.handleShakeAnimationEnd_=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(t)},e}(s),d={name:"mcw-floating-label",data:()=>({labelClasses:{"mdc-floating-label":!0}}),mounted(){this.foundation=new l({addClass:t=>{this.$set(this.labelClasses,t,!0)},removeClass:t=>{this.$delete(this.labelClasses,t)},getWidth:()=>this.$el.scrollWidth,registerInteractionHandler:(t,e)=>{this.$el.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.$el.removeEventListener(t,e)}}),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},methods:{getWidth(){return this.foundation.getWidth()},float(t){this.foundation.float(t)},shake(t){this.foundation.shake(t)}},render(t){const{$scopedSlots:e}=this;return t("label",{class:this.labelClasses},e.default&&e.default())}};i.d(e,"mcwFloatingLabel",function(){return d});e.default=Object(n.a)({mcwFloatingLabel:d})},7:function(t,e,i){"use strict";function n(t,e,i,n=!1){let r;"function"==typeof CustomEvent?r=new CustomEvent(e,{detail:i,bubbles:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,i),t.dispatchEvent(r)}i.d(e,"a",function(){return n})},71:function(t,e,i){i(83),t.exports=i(72)},72:function(t,e,i){},83:function(t,e,i){"use strict";i.r(e);var n=i(2),r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function a(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var s=function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};
var D={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},w={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+D.ROOT},P=function(t){function e(i){return t.call(this,r({},e.defaultAdapter,i))||this}return s(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return D},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return w},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),e.prototype.setContent=function(t){this.adapter_.setContent(t)},e.prototype.setPersistent=function(t){t?this.adapter_.addClass(D.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(D.HELPER_TEXT_PERSISTENT)},e.prototype.setValidation=function(t){t?this.adapter_.addClass(D.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(D.HELPER_TEXT_VALIDATION_MSG)},e.prototype.showToScreenReader=function(){this.adapter_.removeAttr(w.ARIA_HIDDEN)},e.prototype.setValidity=function(t){var e=this.adapter_.hasClass(D.HELPER_TEXT_PERSISTENT),i=this.adapter_.hasClass(D.HELPER_TEXT_VALIDATION_MSG)&&!t;i?this.adapter_.setAttr(w.ROLE,"alert"):this.adapter_.removeAttr(w.ROLE),e||i||this.hide_()},e.prototype.hide_=function(){this.adapter_.setAttr(w.ARIA_HIDDEN,"true")},e}(o),V={name:"textfield-helper-text",props:{persistent:Boolean,validation:Boolean,helptext:String},data(){return{classes:{"mdc-text-field-helper-text":!0,"mdc-text-field-helper-text--persistent":this.persistent,"mdc-text-field-helper-text--validation-msg":this.validation}}},watch:{persistent(){this.foundation.setPersistent(this.persistent)},validation(){this.foundation.setValidation(this.validation)}},mounted(){this.foundation=new P({addClass:t=>this.$set(this.classes,t,!0),removeClass:t=>this.$delete(this.classes,t),hasClass:t=>Boolean(this.classes[t]),setAttr:(t,e)=>{this.$el.setAttribute(t,e)},removeAttr:t=>{this.$el.removeAttribute(t)},setContent:()=>{}}),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},render(t){const{$scopedSlots:e}=this,i=e.default&&e.default(),n=function t(){const e=[];for(let i=0;i<arguments.length;i++){const n=arguments[i];if(!n)continue;const a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){const i=t.apply(null,n);i&&e.push(i)}else if("object"===a)for(const t in n)$.call(n,t)&&n[t]&&e.push(t)}return e.join(" ")}
/**

@@ -214,4 +156,3 @@ * @license

* THE SOFTWARE.
*/
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}(),l={ARIA_CONTROLS:"aria-controls",ICON_SELECTOR:".mdc-text-field__icon",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline"},d={DENSE:"mdc-text-field--dense",DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon"},u={DENSE_LABEL_SCALE:.923,LABEL_SCALE:.75},c=["pattern","min","max","required","step","minlength","maxlength"],h=["color","date","datetime-local","month","range","time","week"],p=["mousedown","touchstart"],f=["click","keydown"],_=function(t){function e(i,n){void 0===n&&(n={});var r=t.call(this,s({},e.defaultAdapter,i))||this;return r.isFocused_=!1,r.receivedUserInput_=!1,r.isValid_=!0,r.useNativeValidation_=!0,r.helperText_=n.helperText,r.characterCounter_=n.characterCounter,r.leadingIcon_=n.leadingIcon,r.trailingIcon_=n.trailingIcon,r.inputFocusHandler_=function(){return r.activateFocus()},r.inputBlurHandler_=function(){return r.deactivateFocus()},r.inputInputHandler_=function(){return r.handleInput()},r.setPointerXOffset_=function(t){return r.setTransformOrigin(t)},r.textFieldInteractionHandler_=function(){return r.handleTextFieldInteraction()},r.validationAttributeChangeHandler_=function(t){return r.handleValidationAttributeChange(t)},r}return a(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return d},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat_",{get:function(){var t=this.getNativeInput_().type;return h.indexOf(t)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||Boolean(this.getValue())||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&Boolean(this.getValue())},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this;this.adapter_.isFocused()?this.inputFocusHandler_():this.adapter_.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter_.floatLabel(!0)),this.adapter_.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.registerInputInteractionHandler("input",this.inputInputHandler_),p.forEach(function(e){t.adapter_.registerInputInteractionHandler(e,t.setPointerXOffset_)}),f.forEach(function(e){t.adapter_.registerTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter_.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},e.prototype.destroy=function(){var t=this;this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_),p.forEach(function(e){t.adapter_.deregisterInputInteractionHandler(e,t.setPointerXOffset_)}),f.forEach(function(e){t.adapter_.deregisterTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.adapter_.deregisterValidationAttributeChangeHandler(this.validationObserver_)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter_.getNativeInput();t&&t.disabled||(this.receivedUserInput_=!0)},e.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return c.indexOf(t)>-1&&(e.styleValidity_(!0),!0)}),t.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter_.hasOutline())if(t){var e=this.adapter_.hasClass(d.DENSE)?u.DENSE_LABEL_SCALE:u.LABEL_SCALE,i=this.adapter_.getLabelWidth()*e;this.adapter_.notchOutline(i)}else this.adapter_.closeOutline()},e.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter_.activateLineRipple(),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake)),this.helperText_&&this.helperText_.showToScreenReader()},e.prototype.setTransformOrigin=function(t){var e=t.touches,i=e?e[0]:t,n=i.target.getBoundingClientRect(),r=i.clientX-n.left;this.adapter_.setLineRippleTransformOrigin(r)},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter_.deactivateLineRipple();var t=this.isValid();this.styleValidity_(t),this.styleFocused_(this.isFocused_),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},e.prototype.getValue=function(){return this.getNativeInput_().value},e.prototype.setValue=function(t){this.getValue()!==t&&(this.getNativeInput_().value=t,this.setCharacterCounter_(t.length));var e=this.isValid();this.styleValidity_(e),this.adapter_.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter_.floatLabel(this.shouldFloat),this.adapter_.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},e.prototype.setValid=function(t){this.isValid_=t,this.styleValidity_(t);var e=!t&&!this.isFocused_;this.adapter_.hasLabel()&&this.adapter_.shakeLabel(e)},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation_=t},e.prototype.isDisabled=function(){return this.getNativeInput_().disabled},e.prototype.setDisabled=function(t){this.getNativeInput_().disabled=t,this.styleDisabled_(t)},e.prototype.setHelperTextContent=function(t){this.helperText_&&this.helperText_.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon_&&this.leadingIcon_.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon_&&this.trailingIcon_.setContent(t)},e.prototype.setCharacterCounter_=function(t){if(this.characterCounter_){var e=this.getNativeInput_().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(t,e)}},e.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},e.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},e.prototype.styleValidity_=function(t){var i=e.cssClasses.INVALID;t?this.adapter_.removeClass(i):this.adapter_.addClass(i),this.helperText_&&this.helperText_.setValidity(t)},e.prototype.styleFocused_=function(t){var i=e.cssClasses.FOCUSED;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.styleDisabled_=function(t){var i=e.cssClasses,n=i.DISABLED,r=i.INVALID;t?(this.adapter_.addClass(n),this.adapter_.removeClass(r)):this.adapter_.removeClass(n),this.leadingIcon_&&this.leadingIcon_.setDisabled(t),this.trailingIcon_&&this.trailingIcon_.setDisabled(t)},e.prototype.getNativeInput_=function(){return(this.adapter_?this.adapter_.getNativeInput():null)||{disabled:!1,maxLength:-1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(o),v=i(9),m=i(5),g=i(10),b=i(1),y={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},E={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+y.ROOT},C=function(t){function e(i){return t.call(this,s({},e.defaultAdapter,i))||this}return a(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return y},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return E},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),e.prototype.setContent=function(t){this.adapter_.setContent(t)},e.prototype.setPersistent=function(t){t?this.adapter_.addClass(y.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(y.HELPER_TEXT_PERSISTENT)},e.prototype.setValidation=function(t){t?this.adapter_.addClass(y.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(y.HELPER_TEXT_VALIDATION_MSG)},e.prototype.showToScreenReader=function(){this.adapter_.removeAttr(E.ARIA_HIDDEN)},e.prototype.setValidity=function(t){var e=this.adapter_.hasClass(y.HELPER_TEXT_PERSISTENT),i=this.adapter_.hasClass(y.HELPER_TEXT_VALIDATION_MSG)&&!t;i?this.adapter_.setAttr(E.ROLE,"alert"):this.adapter_.removeAttr(E.ROLE),e||i||this.hide_()},e.prototype.hide_=function(){this.adapter_.setAttr(E.ARIA_HIDDEN,"true")},e}(o),A={name:"textfield-helper-text",props:{persistent:Boolean,validation:Boolean,helptext:String},data(){return{classes:{"mdc-text-field-helper-text":!0,"mdc-text-field-helper-text--persistent":this.persistent,"mdc-text-field-helper-text--validation-msg":this.validation}}},watch:{persistent(){this.foundation.setPersistent(this.persistent)},validation(){this.foundation.setValidation(this.validation)}},mounted(){this.foundation=new C({addClass:t=>this.$set(this.classes,t,!0),removeClass:t=>this.$delete(this.classes,t),hasClass:t=>Boolean(this.classes[t]),setAttr:(t,e)=>{this.$el.setAttribute(t,e)},removeAttr:t=>{this.$el.removeAttribute(t)},setContent:()=>{}}),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},render(t){const{$scopedSlots:e}=this,i=e.default&&e.default(),n=function t(){const e=[];for(let i=0;i<arguments.length;i++){const n=arguments[i];if(!n)continue;const r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){const i=t.apply(null,n);i&&e.push(i)}else if("object"===r)for(const t in n)I.call(n,t)&&n[t]&&e.push(t)}return e.join(" ")}
*/(this.classes);return i?i[0]:t("div",{class:"mdc-text-field-helper-line"},[t("div",{class:n,attrs:this.$attrs},this.helptext)])}};const $={}.hasOwnProperty;var F={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},B={ROOT:"mdc-text-field__icon"},M=["click","keydown"],j=function(t){function e(i){var n=t.call(this,r({},e.defaultAdapter,i))||this;return n.savedTabIndex_=null,n.interactionHandler_=function(t){return n.handleInteraction(t)},n}return s(e,t),Object.defineProperty(e,"strings",{get:function(){return F},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return B},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex"),M.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.interactionHandler_)})},e.prototype.destroy=function(){var t=this;M.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.interactionHandler_)})},e.prototype.setDisabled=function(t){this.savedTabIndex_&&(t?(this.adapter_.setAttr("tabindex","-1"),this.adapter_.removeAttr("role")):(this.adapter_.setAttr("tabindex",this.savedTabIndex_),this.adapter_.setAttr("role",F.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter_.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter_.setContent(t)},e.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;("click"===t.type||e)&&this.adapter_.notifyIconAction()},e}(o);var U={name:"textfield-icon",functional:!0,props:{disabled:Boolean},mounted(){this.foundation=new j(Object.assign({getAttr:t=>this.$el.getAttribute(t),setAttr:(t,e)=>this.$el.setAttribute(t,e),removeAttr:t=>this.$el.removeAttribute(t),setContent:t=>{this.$el.textContent=t},registerInteractionHandler:(t,e)=>this.$el.addEventListener(t,e),deregisterInteractionHandler:(t,e)=>this.$el.removeEventListener(t,e),notifyIconAction:()=>{this.$emit("click"),function(t,e,i,n=!1){let a;"function"==typeof CustomEvent?a=new CustomEvent(e,{detail:i,bubbles:n}):(a=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,i),t.dispatchEvent(a)}(this.$el,j.strings.ICON_EVENT,{},!0)}})),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},render(t,e){const i=e.children[0];return i.data.class="mdc-text-field__icon",i}},k={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},G=function(t){function e(i){var n=t.call(this,r({},e.defaultAdapter,i))||this;return n.shakeAnimationEndHandler_=function(){return n.handleShakeAnimationEnd_()},n}return s(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},e.prototype.getWidth=function(){return this.adapter_.getWidth()},e.prototype.shake=function(t){var i=e.cssClasses.LABEL_SHAKE;t?this.adapter_.addClass(i):this.adapter_.removeClass(i)},e.prototype.float=function(t){var i=e.cssClasses,n=i.LABEL_FLOAT_ABOVE,a=i.LABEL_SHAKE;t?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(a))},e.prototype.handleShakeAnimationEnd_=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(t)},e}(o),W={name:"mcw-floating-label",data:()=>({labelClasses:{"mdc-floating-label":!0}}),mounted(){this.foundation=new G({addClass:t=>{this.$set(this.labelClasses,t,!0)},removeClass:t=>{this.$delete(this.labelClasses,t)},getWidth:()=>this.$el.scrollWidth,registerInteractionHandler:(t,e)=>{this.$el.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.$el.removeEventListener(t,e)}}),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},methods:{getWidth(){return this.foundation.getWidth()},float(t){this.foundation.float(t)},shake(t){this.foundation.shake(t)}},render(t){const{$scopedSlots:e}=this;return t("label",{class:this.labelClasses},e.default&&e.default())}},z=(n({mcwFloatingLabel:W}),{NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"}),X={NOTCH_ELEMENT_PADDING:8},q={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},Y=function(t){function e(i){return t.call(this,r({},e.defaultAdapter,i))||this}return s(e,t),Object.defineProperty(e,"strings",{get:function(){return z},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return X},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),e.prototype.notch=function(t){var i=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=X.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(i)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},e}(o),K={name:"mcw-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0},notchStyles:{}}),mounted(){const{OUTLINE_UPGRADED:t,NO_LABEL:e}=Y.cssClasses,i={addClass:t=>{this.$set(this.outlinedClasses,t,!0)},removeClass:t=>{this.$delete(this.outlinedClasses,t)},setNotchWidthProperty:t=>this.$set(this.notchStyles,"width",`${t}px`),removeNotchWidthProperty:()=>this.$delete(this.notchStyles,"width")};this.foundation=new Y(i),this.foundation.init();const n=this.$slots.default?t:e;this.$set(this.outlinedClasses,n,!0)},beforeDestroy(){this.foundation.destroy()},methods:{notch(t){this.foundation.notch(t)},closeNotch(){this.foundation.closeNotch()},float(t){this.$refs.labelEl&&this.$refs.labelEl.float(t)},shake(t){this.$refs.labelEl&&this.$refs.labelEl.shake(t)},getWidth(){return this.$refs.labelEl.getWidth()}},render(t){const{$scopedSlots:e}=this,i=t("div",{class:"mdc-notched-outline__notch",style:this.notchStyles},[e.default&&t(W,{ref:"labelEl"},e.default())]);return t("div",{class:this.outlinedClasses},[t("div",{class:"mdc-notched-outline__leading"}),i,t("div",{class:"mdc-notched-outline__trailing"})])}},Z=(n({mcwNotchedOutline:K}),{LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"}),J=function(t){function e(i){var n=t.call(this,r({},e.defaultAdapter,i))||this;return n.transitionEndHandler_=function(t){return n.handleTransitionEnd(t)},n}return s(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Z},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.destroy=function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)},e.prototype.activate=function(){this.adapter_.removeClass(Z.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(Z.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter_.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter_.addClass(Z.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var e=this.adapter_.hasClass(Z.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter_.removeClass(Z.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(Z.LINE_RIPPLE_DEACTIVATING))},e}(o),Q={name:"mcw-line-ripple",props:{rippleCenter:{type:[Number,String],default:0},active:Boolean},data:()=>({lineClasses:{"mdc-line-ripple":1},lineStyles:{}}),mounted(){const t={addClass:t=>{this.$set(this.lineClasses,t,!0)},removeClass:t=>{this.$delete(this.lineClasses,t)},hasClass:t=>Boolean(this.lineClasses[t]),setStyle:(t,e)=>{this.$set(this.lineStyles,t,e)}};this.foundation_=new J(t),this.foundation_.init()},beforeDestroy(){this.foundation_.destroy()},methods:{setRippleCenter(t){this.foundation_.setRippleCenter(t)},activate(){this.foundation_.activate()},deactivate(){this.foundation_.deactivate()}},render(t){return t("div",{class:this.lineClasses,style:this.lineStyles,on:{transitionend:t=>this.foundation_.handleTransitionEnd(t)}})}},tt=(n({mcwLineRipple:Q}),{name:"mcw-textfield",mixins:[v,g],inheritAttrs:!1,model:{prop:"value",event:"model"},props:{value:[String,Number],type:{type:String,default:"text",validator:function(t){return-1!==["text","email","search","password","tel","url","number"].indexOf(t)}},dense:Boolean,label:String,outline:Boolean,disabled:Boolean,required:Boolean,valid:{type:Boolean,default:void 0},fullwidth:Boolean,multiline:Boolean,size:{type:[Number,String],default:20},minlength:{type:[Number,String],default:void 0},maxlength:{type:[Number,String],default:void 0},rows:{type:[Number,String],default:8},cols:{type:[Number,String],default:40},id:{type:String},helptext:String,helptextPersistent:Boolean,helptextValidation:Boolean},data:function(){return{text:this.value,rootClasses:{"mdc-textfield":!0,"mdc-text-field":!0,"mdc-text-field--upgraded":!0,"mdc-text-field--disabled":this.disabled,"mdc-text-field--dense":this.dense,"mdc-text-field--fullwidth":this.fullwidth,"mdc-text-field--textarea":this.multiline,"mdc-text-field--outlined":!this.fullwidth&&this.outline,"mdc-text-field--with-leading-icon":Boolean(this.$slots.leadingIcon),"mdc-text-field--with-trailing-icon":Boolean(this.$slots.trailingIcon),"mdc-text-field--no-label":!this.label},inputClasses:{"mdc-text-field__input":!0},labelClasses:{"mdc-floating-label":!0},lineRippleClasses:{"mdc-line-ripple":!0},lineRippleStyles:{},outlineClasses:{},notchStyles:{}}},components:{TextfieldHelperText:V,TextfieldIcon:U},computed:{inputPlaceHolder(){return this.fullwidth?this.label:void 0},inputAriaControls(){return this.help?"help-"+this.vma_uid_:void 0},hasLabel(){return!this.fullwidth&&!this.outline&&this.label},hasOutlineLabel(){return this.hasOutline&&this.label},hasOutline(){return!this.fullwidth&&this.outline},hasLineRipple(){return!this.hasOutline&&!this.multiline},hasHelptext(){const{$scopedSlots:t}=this;return t.helpText&&t.helpText()||this.helptext}},watch:{disabled(){this.foundation&&this.foundation.setDisabled(this.disabled)},required(){this.$refs.input&&(this.$refs.input.required=this.required)},valid(){void 0!==this.valid&&this.foundation&&this.foundation.setValid(this.valid)},dense(){this.$set(this.rootClasses,"mdc-text-field--dense",this.dense)},value(t){this.foundation&&t!==this.foundation.getValue()&&this.foundation.setValue(t)}},mounted(){this.foundation=new _(Object.assign({addClass:t=>{this.$set(this.rootClasses,t,!0)},removeClass:t=>{this.$delete(this.rootClasses,t)},hasClass:t=>{this.$refs.root.classList.contains(t)},registerTextFieldInteractionHandler:(t,e)=>{this.$refs.root.addEventListener(t,e)},deregisterTextFieldInteractionHandler:(t,e)=>{this.$refs.root.removeEventListener(t,e)},isFocused:()=>document.activeElement===this.$refs.input,registerValidationAttributeChangeHandler:t=>{const e=new MutationObserver(e=>t((t=>t.map(t=>t.attributeName))(e))),i=this.$refs.input;return e.observe(i,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:t=>{t.disconnect()}},this.getInputAdapterMethods(),this.getLabelAdapterMethods(),this.getLineRippleAdapterMethods(),this.getOutlineAdapterMethods()),{helperText:this.$refs.helpertextEl?this.$refs.helpertextEl.foundation:void 0,leadingIcon:this.$refs.leadingIconEl?this.$refs.leadingIconEl.foundation:void 0,trailingIcon:this.$refs.trailingIconEl?this.$refs.trailingIconEl.foundation:void 0}),this.foundation.init(),this.foundation.setValue(this.value),this.foundation.setDisabled(this.disabled),this.$refs.input&&(this.$refs.input.required=this.required),void 0!==this.valid&&this.foundation.setValid(this.valid),this.textbox&&(this.ripple=new R(this),this.ripple.init())},beforeDestroy(){this.foundation&&this.foundation.destroy(),this.ripple&&this.ripple.destroy()},methods:{getInputAdapterMethods(){return{registerInputInteractionHandler:(t,e)=>{this.$refs.input.addEventListener(t,e,E())},deregisterInputInteractionHandler:(t,e)=>{this.$refs.input.removeEventListener(t,e,E())},getNativeInput:()=>this.$refs.input}},getLabelAdapterMethods(){return{shakeLabel:t=>{this.$refs.labelEl&&this.$refs.labelEl.shake(t)},floatLabel:t=>{this.$refs.labelEl&&this.$refs.labelEl.float(t)},hasLabel:()=>!!this.$refs.labelEl||!!this.$refs.notchedEl,getLabelWidth:()=>this.$refs.labelEl&&this.$refs.labelEl.getWidth()}},getLineRippleAdapterMethods(){return{deactivateLineRipple:()=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.deactivate()},activateLineRipple:()=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.activate()},setLineRippleTransformOrigin:t=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.setRippleCenter(t)}}},getOutlineAdapterMethods(){return{hasOutline:()=>!!this.hasOutline,notchOutline:(t,e)=>this.$refs.labelEl.notch(t,e),closeOutline:()=>this.$refs.labelEl.closeNotch()}},updateValue(t){this.$emit("model",t)},focus(){this.$refs.input&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur()}},render(t){const{$scopedSlots:e}=this,i=[],n=e.leadingIcon&&e.leadingIcon();n&&i.push(t("textfield-icon",{ref:"leadingIconEl"},n)),this.multiline?i.push(t("textarea",{class:this.inputClasses,attrs:{...this.$attrs,id:this.vma_uid_,minlength:this.minlength,maxlength:this.maxlength,placeholder:this.inputPlaceHolder,"aria-label":this.inputPlaceHolder,"aria-controls":this.inputAriaControls,rows:this.rows,cols:this.cols},ref:"input",on:{...this.$listeners,input:t=>this.updateValue(t.target.value)}})):i.push(t("input",{class:this.inputClasses,attrs:{...this.$attrs,id:this.vma_uid_,type:this.type,minlength:this.minlength,maxlength:this.maxlength,placeholder:this.inputPlaceHolder,"aria-label":this.inputPlaceHolder,"aria-controls":this.inputAriaControls},ref:"input",on:{...this.$listeners,input:t=>this.updateValue(t.target.value)}})),this.hasLabel&&i.push(t(W,{attrs:{for:this.vma_uid_},ref:"labelEl"},this.label));const a=e.trailingIcon&&e.trailingIcon();a&&i.push(t("textfield-icon",{ref:"trailingIconEl"},a)),this.hasOutline&&i.push(t(K,{ref:"labelEl"},this.label)),this.hasLineRipple&&i.push(t(Q,{ref:"lineRippleEl"}));const s=[t("div",{class:this.rootClasses,ref:"root"},i)],r=e.helpText&&e.helpText();return this.hasHelptext&&s.push(t("textfield-helper-text",{attrs:{id:`help${this.vma_uid_}`,helptext:this.helpText,persistent:this.helptextPersistent,validation:this.helptextValidation},ref:"helpertextEl"},r)),t("div",{style:{width:this.fullwidth?"100%":void 0},attrs:{id:this.id}},s)}});
/**

@@ -238,25 +179,3 @@ * @license

* THE SOFTWARE.
*/(this.classes);return i?i[0]:t("div",{class:"mdc-text-field-helper-line"},[t("div",{class:n,attrs:this.$attrs},this.helptext)])}};const I={}.hasOwnProperty;var O={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},T=["click","keydown"],L=function(t){function e(i){var n=t.call(this,s({},e.defaultAdapter,i))||this;return n.savedTabIndex_=null,n.interactionHandler_=function(t){return n.handleInteraction(t)},n}return a(e,t),Object.defineProperty(e,"strings",{get:function(){return O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),e.prototype.init=function(){var t=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex"),T.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.interactionHandler_)})},e.prototype.destroy=function(){var t=this;T.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.interactionHandler_)})},e.prototype.setDisabled=function(t){this.savedTabIndex_&&(t?(this.adapter_.setAttr("tabindex","-1"),this.adapter_.removeAttr("role")):(this.adapter_.setAttr("tabindex",this.savedTabIndex_),this.adapter_.setAttr("role",O.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter_.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter_.setContent(t)},e.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;("click"===t.type||e)&&this.adapter_.notifyIconAction()},e}(o),x=i(7),H={name:"textfield-icon",functional:!0,props:{disabled:Boolean},mounted(){this.foundation=new L(Object.assign({getAttr:t=>this.$el.getAttribute(t),setAttr:(t,e)=>this.$el.setAttribute(t,e),removeAttr:t=>this.$el.removeAttribute(t),setContent:t=>{this.$el.textContent=t},registerInteractionHandler:(t,e)=>this.$el.addEventListener(t,e),deregisterInteractionHandler:(t,e)=>this.$el.removeEventListener(t,e),notifyIconAction:()=>{this.$emit("click"),Object(x.a)(this.$el,L.strings.ICON_EVENT,{},!0)}})),this.foundation.init()},beforeDestroy(){this.foundation.destroy()},render(t,e){const i=e.children[0];return i.data.class="mdc-text-field__icon",i}},S=i(6),P=i(15),R=i(14),N={name:"mcw-textfield",mixins:[v.a,m.a],inheritAttrs:!1,model:{prop:"value",event:"model"},props:{value:[String,Number],type:{type:String,default:"text",validator:function(t){return-1!==["text","email","search","password","tel","url","number"].indexOf(t)}},dense:Boolean,label:String,outline:Boolean,disabled:Boolean,required:Boolean,valid:{type:Boolean,default:void 0},fullwidth:Boolean,multiline:Boolean,size:{type:[Number,String],default:20},minlength:{type:[Number,String],default:void 0},maxlength:{type:[Number,String],default:void 0},rows:{type:[Number,String],default:8},cols:{type:[Number,String],default:40},id:{type:String},helptext:String,helptextPersistent:Boolean,helptextValidation:Boolean},data:function(){return{text:this.value,rootClasses:{"mdc-textfield":!0,"mdc-text-field":!0,"mdc-text-field--upgraded":!0,"mdc-text-field--disabled":this.disabled,"mdc-text-field--dense":this.dense,"mdc-text-field--fullwidth":this.fullwidth,"mdc-text-field--textarea":this.multiline,"mdc-text-field--outlined":!this.fullwidth&&this.outline,"mdc-text-field--with-leading-icon":Boolean(this.$slots.leadingIcon),"mdc-text-field--with-trailing-icon":Boolean(this.$slots.trailingIcon),"mdc-text-field--no-label":!this.label},inputClasses:{"mdc-text-field__input":!0},labelClasses:{"mdc-floating-label":!0},lineRippleClasses:{"mdc-line-ripple":!0},lineRippleStyles:{},outlineClasses:{},notchStyles:{}}},components:{TextfieldHelperText:A,TextfieldIcon:H},computed:{inputPlaceHolder(){return this.fullwidth?this.label:void 0},inputAriaControls(){return this.help?"help-"+this.vma_uid_:void 0},hasLabel(){return!this.fullwidth&&!this.outline&&this.label},hasOutlineLabel(){return this.hasOutline&&this.label},hasOutline(){return!this.fullwidth&&this.outline},hasLineRipple(){return!this.hasOutline&&!this.multiline},hasHelptext(){const{$scopedSlots:t}=this;return t.helpText&&t.helpText()||this.helptext}},watch:{disabled(){this.foundation&&this.foundation.setDisabled(this.disabled)},required(){this.$refs.input&&(this.$refs.input.required=this.required)},valid(){void 0!==this.valid&&this.foundation&&this.foundation.setValid(this.valid)},dense(){this.$set(this.rootClasses,"mdc-text-field--dense",this.dense)},value(t){this.foundation&&t!==this.foundation.getValue()&&this.foundation.setValue(t)}},mounted(){this.foundation=new _(Object.assign({addClass:t=>{this.$set(this.rootClasses,t,!0)},removeClass:t=>{this.$delete(this.rootClasses,t)},hasClass:t=>{this.$refs.root.classList.contains(t)},registerTextFieldInteractionHandler:(t,e)=>{this.$refs.root.addEventListener(t,e)},deregisterTextFieldInteractionHandler:(t,e)=>{this.$refs.root.removeEventListener(t,e)},isFocused:()=>document.activeElement===this.$refs.input,registerValidationAttributeChangeHandler:t=>{const e=new MutationObserver(e=>t((t=>t.map(t=>t.attributeName))(e))),i=this.$refs.input;return e.observe(i,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:t=>{t.disconnect()}},this.getInputAdapterMethods(),this.getLabelAdapterMethods(),this.getLineRippleAdapterMethods(),this.getOutlineAdapterMethods()),{helperText:this.$refs.helpertextEl?this.$refs.helpertextEl.foundation:void 0,leadingIcon:this.$refs.leadingIconEl?this.$refs.leadingIconEl.foundation:void 0,trailingIcon:this.$refs.trailingIconEl?this.$refs.trailingIconEl.foundation:void 0}),this.foundation.init(),this.foundation.setValue(this.value),this.foundation.setDisabled(this.disabled),this.$refs.input&&(this.$refs.input.required=this.required),void 0!==this.valid&&this.foundation.setValid(this.valid),this.textbox&&(this.ripple=new b.RippleBase(this),this.ripple.init())},beforeDestroy(){this.foundation&&this.foundation.destroy(),this.ripple&&this.ripple.destroy()},methods:{getInputAdapterMethods(){return{registerInputInteractionHandler:(t,e)=>{this.$refs.input.addEventListener(t,e,Object(g.a)())},deregisterInputInteractionHandler:(t,e)=>{this.$refs.input.removeEventListener(t,e,Object(g.a)())},getNativeInput:()=>this.$refs.input}},getLabelAdapterMethods(){return{shakeLabel:t=>{this.$refs.labelEl&&this.$refs.labelEl.shake(t)},floatLabel:t=>{this.$refs.labelEl&&this.$refs.labelEl.float(t)},hasLabel:()=>!!this.$refs.labelEl||!!this.$refs.notchedEl,getLabelWidth:()=>this.$refs.labelEl&&this.$refs.labelEl.getWidth()}},getLineRippleAdapterMethods(){return{deactivateLineRipple:()=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.deactivate()},activateLineRipple:()=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.activate()},setLineRippleTransformOrigin:t=>{this.$refs.lineRippleEl&&this.$refs.lineRippleEl.setRippleCenter(t)}}},getOutlineAdapterMethods(){return{hasOutline:()=>!!this.hasOutline,notchOutline:(t,e)=>this.$refs.labelEl.notch(t,e),closeOutline:()=>this.$refs.labelEl.closeNotch()}},updateValue(t){this.$emit("model",t)},focus(){this.$refs.input&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur()}},render(t){const{$scopedSlots:e}=this,i=[],n=e.leadingIcon&&e.leadingIcon();n&&i.push(t("textfield-icon",{ref:"leadingIconEl"},n)),this.multiline?i.push(t("textarea",{class:this.inputClasses,attrs:{...this.$attrs,id:this.vma_uid_,minlength:this.minlength,maxlength:this.maxlength,placeholder:this.inputPlaceHolder,"aria-label":this.inputPlaceHolder,"aria-controls":this.inputAriaControls,rows:this.rows,cols:this.cols},ref:"input",on:{...this.$listeners,input:t=>this.updateValue(t.target.value)}})):i.push(t("input",{class:this.inputClasses,attrs:{...this.$attrs,id:this.vma_uid_,type:this.type,minlength:this.minlength,maxlength:this.maxlength,placeholder:this.inputPlaceHolder,"aria-label":this.inputPlaceHolder,"aria-controls":this.inputAriaControls},ref:"input",on:{...this.$listeners,input:t=>this.updateValue(t.target.value)}})),this.hasLabel&&i.push(t(S.mcwFloatingLabel,{attrs:{for:this.vma_uid_},ref:"labelEl"},this.label));const r=e.trailingIcon&&e.trailingIcon();r&&i.push(t("textfield-icon",{ref:"trailingIconEl"},r)),this.hasOutline&&i.push(t(P.mcwNotchedOutline,{ref:"labelEl"},this.label)),this.hasLineRipple&&i.push(t(R.mcwLineRipple,{ref:"lineRippleEl"}));const a=[t("div",{class:this.rootClasses,ref:"root"},i)],s=e.helpText&&e.helpText();return this.hasHelptext&&a.push(t("textfield-helper-text",{attrs:{id:`help${this.vma_uid_}`,helptext:this.helpText,persistent:this.helptextPersistent,validation:this.helptextValidation},ref:"helpertextEl"},s)),t("div",{style:{width:this.fullwidth?"100%":void 0},attrs:{id:this.id}},a)}};
/**
* @license
* Copyright 2017 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/i.d(e,"mcwTextfield",function(){return N});e.default=Object(n.a)({mcwTextfield:N})},9:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n={data:()=>({hasFocus:!1}),methods:{onMouseDown(){this._active=!0},onMouseUp(){this._active=!1},onFocusEvent(){setTimeout(()=>this.dispatchFocusEvent(),0)},onBlurEvent(){this._active||setTimeout(()=>this.dispatchFocusEvent(),0)},dispatchFocusEvent(){const t=this.$el===document.activeElement||this.$el.contains(document.activeElement);t!=this.hasFocus&&(this.$emit(t?"focus":"blur"),this.hasFocus=t)}},mounted(){this.$el.addEventListener("focusin",this.onFocusEvent),this.$el.addEventListener("focusout",this.onBlurEvent),this.$el.addEventListener("mousedown",this.onMouseDown),this.$el.addEventListener("mouseup",this.onMouseUp)},beforeDestroy(){this.$el.removeEventListener("focusin",this.onFocusEvent),this.$el.removeEventListener("focusout",this.onBlurEvent),this.$el.removeEventListener("mousedown",this.onMouseDown),this.$el.removeEventListener("mouseup",this.onMouseUp)}}}})});
*/i.d(e,"mcwTextfield",function(){return tt});e.default=n({mcwTextfield:tt})}})});
//# sourceMappingURL=mcwv.textfield.min.js.map

16

package.json
{
"name": "@mcwv/textfield",
"description": "The Vue Material Adapter for the web textfield component",
"version": "0.5.0",
"version": "0.6.0",
"license": "MIT",

@@ -19,10 +19,10 @@ "main": "dist/mcwv.textfield.min.js",

"dependencies": {
"@material/textfield": "^1.1.1",
"@mcwv/base": "^0.5.0",
"@mcwv/floating-label": "^0.5.0",
"@mcwv/line-ripple": "^0.5.0",
"@mcwv/notched-outline": "^0.5.0",
"@mcwv/ripple": "^0.5.0"
"@material/textfield": "^2.0.0",
"@mcwv/base": "^0.6.0",
"@mcwv/floating-label": "^0.6.0",
"@mcwv/line-ripple": "^0.6.0",
"@mcwv/notched-outline": "^0.6.0",
"@mcwv/ripple": "^0.6.0"
},
"gitHead": "01c129112cab2a105f8f0b44bda616813bce6a04"
"gitHead": "b4b5320b2cf791973fd7f1a8e10f13bc8ee2fbda"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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