UNPKG

material-components-vue

Version:
2 lines 54.3 kB
/*! For license information please see text-field.min.js.LICENSE */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(window,function(){return n={},t.m=e={0:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return u});var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function o(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(i=a.next()).done;)o.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}},1:function(t,e,n){"use strict";var i={inheritAttrs:!1},r=["primary","secondary","background","surface","on-primary","on-secondary","on-surface","primary-bg","secondary-bg","text-primary-on-light","text-secondary-on-light","text-hint-on-light","text-disabled-on-light","text-icon-on-light","text-primary-on-dark","text-secondary-on-dark","text-hint-on-dark","text-disabled-on-dark","text-icon-on-dark"],a={props:{theming:{type:String,default:""}},mounted:function(){-1<r.indexOf(this.theming)&&this.$el.classList.add("mdc-theme--"+this.theming)}};n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a})},10:function(t,e,n){"use strict";var i=n(0),r=n(2),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"},o={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"},s={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},u=n(6);n.d(e,"a",function(){return f});var c,d=["touchstart","pointerdown","mousedown","keydown"],l=["touchend","pointerup","mouseup","contextmenu"],p=[],f=(c=r.a,i.b(h,c),Object.defineProperty(h,"cssClasses",{get:function(){return a},enumerable:!0,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(h,"numbers",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(h,"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}),h.prototype.init=function(){var t=this,e=this.supportsPressRipple_();if(this.registerRootHandlers_(e),e){var n=h.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.addClass(i),t.adapter_.isUnbounded()&&(t.adapter_.addClass(r),t.layoutInternal_())})}},h.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(h.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(h.cssClasses.FG_DEACTIVATION));var e=h.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter_.removeClass(n),t.adapter_.removeClass(i),t.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},h.prototype.activate=function(t){this.activate_(t)},h.prototype.deactivate=function(){this.deactivate_()},h.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},h.prototype.setUnbounded=function(t){var e=h.cssClasses.UNBOUNDED;t?this.adapter_.addClass(e):this.adapter_.removeClass(e)},h.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.addClass(h.cssClasses.BG_FOCUSED)})},h.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter_.removeClass(h.cssClasses.BG_FOCUSED)})},h.prototype.supportsPressRipple_=function(){return this.adapter_.browserSupportsCssVars()},h.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},h.prototype.registerRootHandlers_=function(t){var e=this;t&&(d.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_)},h.prototype.registerDeactivationHandlers_=function(t){var e=this;"keydown"===t.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):l.forEach(function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},h.prototype.deregisterRootHandlers_=function(){var t=this;d.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_)},h.prototype.deregisterDeactivationHandlers_=function(){var t=this;this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),l.forEach(function(e){t.adapter_.deregisterDocumentInteractionHandler(e,t.deactivateHandler_)})},h.prototype.removeCssVars_=function(){var t=this,e=h.strings;Object.keys(e).forEach(function(n){0===n.indexOf("VAR_")&&t.adapter_.updateCssVariable(e[n],null)})},h.prototype.activate_=function(t){var e=this;if(!this.adapter_.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<p.length&&p.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(p.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){p=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())})))}}},h.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter_.isSurfaceActive()},h.prototype.animateActivation_=function(){var t=this,e=h.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=h.cssClasses,a=r.FG_DEACTIVATION,o=r.FG_ACTIVATION,s=h.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var u="",c="";if(!this.adapter_.isUnbounded()){var d=this.getFgTranslationCoordinates_(),l=d.startPoint,p=d.endPoint;u=l.x+"px, "+l.y+"px",c=p.x+"px, "+p.y+"px"}this.adapter_.updateCssVariable(n,u),this.adapter_.updateCssVariable(i,c),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(a),this.adapter_.computeBoundingRect(),this.adapter_.addClass(o),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},s)},h.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?Object(u.b)(n,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},h.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,e=h.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter_.addClass(e),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter_.removeClass(e)},s.FG_DEACTIVATION_MS))},h.prototype.rmBoundedActivationClasses_=function(){var t=h.cssClasses.FG_ACTIVATION;this.adapter_.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()},h.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return t.previousActivationEvent_=void 0},h.numbers.TAP_DELAY_MS)},h.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=i.a({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()}))}},h.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},h.prototype.layoutInternal_=function(){this.frame_=this.adapter_.computeBoundingRect();var t=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?t:Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+h.numbers.PADDING,this.initialSize_=Math.floor(t*h.numbers.INITIAL_ORIGIN_SCALE),this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},h.prototype.updateLayoutCssVars_=function(){var t=h.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter_.updateCssVariable(e,this.initialSize_+"px"),this.adapter_.updateCssVariable(r,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(i,this.unboundedCoords_.top+"px"))},h);function h(t){var e=c.call(this,i.a({},h.defaultAdapter,t))||this;return e.activationAnimationHasEnded_=!1,e.activationTimer_=0,e.fgDeactivationRemovalTimer_=0,e.fgScale_="0",e.frame_={width:0,height:0},e.initialSize_=0,e.layoutFrame_=0,e.maxRadius_=0,e.unboundedCoords_={left:0,top:0},e.activationState_=e.defaultActivationState_(),e.activationTimerCallback_=function(){e.activationAnimationHasEnded_=!0,e.runDeactivationUXLogicIfReady_()},e.activateHandler_=function(t){return e.activate_(t)},e.deactivateHandler_=function(){return e.deactivate_()},e.focusHandler_=function(){return e.handleFocus()},e.blurHandler_=function(){return e.handleBlur()},e.resizeHandler_=function(){return e.layout()},e}},12:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i,r=n(0),a=n(5),o=n(8),s=n(10),u=n(6),c=(i=a.a,r.b(d,i),d.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new d(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},d.createAdapter=function(t){return{addClass:function(e){return t.root_.classList.add(e)},browserSupportsCssVars:function(){return u.c(window)},computeBoundingRect:function(){return t.root_.getBoundingClientRect()},containsEventTarget:function(e){return t.root_.contains(e)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,u.a())},deregisterInteractionHandler:function(e,n){return t.root_.removeEventListener(e,n,u.a())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return Object(o.b)(t.root_,":active")},isSurfaceDisabled:function(){return Boolean(t.disabled)},isUnbounded:function(){return Boolean(t.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,u.a())},registerInteractionHandler:function(e,n){return t.root_.addEventListener(e,n,u.a())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(e){return t.root_.classList.remove(e)},updateCssVariable:function(e,n){return t.root_.style.setProperty(e,n)}}},Object.defineProperty(d.prototype,"unbounded",{get:function(){return Boolean(this.unbounded_)},set:function(t){this.unbounded_=Boolean(t),this.setUnbounded_()},enumerable:!0,configurable:!0}),d.prototype.activate=function(){this.foundation_.activate()},d.prototype.deactivate=function(){this.foundation_.deactivate()},d.prototype.layout=function(){this.foundation_.layout()},d.prototype.getDefaultFoundation=function(){return new s.a(d.createAdapter(this))},d.prototype.initialSyncWithDOM=function(){var t=this.root_;this.unbounded="mdcRippleIsUnbounded"in t.dataset},d.prototype.setUnbounded_=function(){this.foundation_.setUnbounded(Boolean(this.unbounded_))},d);function d(){var t=null!==i&&i.apply(this,arguments)||this;return t.disabled=!1,t}},15:function(t,e,n){"use strict";var i=n(0),r=n(2),a={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};n.d(e,"a",function(){return s});var o,s=(o=r.a,i.b(u,o),Object.defineProperty(u,"cssClasses",{get:function(){return a},enumerable:!0,configurable:!0}),Object.defineProperty(u,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),u.prototype.init=function(){this.adapter_.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},u.prototype.destroy=function(){this.adapter_.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},u.prototype.getWidth=function(){return this.adapter_.getWidth()},u.prototype.shake=function(t){var e=u.cssClasses.LABEL_SHAKE;t?this.adapter_.addClass(e):this.adapter_.removeClass(e)},u.prototype.float=function(t){var e=u.cssClasses,n=e.LABEL_FLOAT_ABOVE,i=e.LABEL_SHAKE;t?this.adapter_.addClass(n):(this.adapter_.removeClass(n),this.adapter_.removeClass(i))},u.prototype.handleShakeAnimationEnd_=function(){var t=u.cssClasses.LABEL_SHAKE;this.adapter_.removeClass(t)},u);function u(t){var e=o.call(this,i.a({},u.defaultAdapter,t))||this;return e.shakeAnimationEndHandler_=function(){return e.handleShakeAnimationEnd_()},e}},19:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i,r=n(0),a=n(5),o=n(15),s=(i=a.a,r.b(u,i),u.attachTo=function(t){return new u(t)},u.prototype.shake=function(t){this.foundation_.shake(t)},u.prototype.float=function(t){this.foundation_.float(t)},u.prototype.getWidth=function(){return this.foundation_.getWidth()},u.prototype.getDefaultFoundation=function(){var t=this,e={addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},getWidth:function(){return t.root_.scrollWidth},registerInteractionHandler:function(e,n){return t.listen(e,n)},deregisterInteractionHandler:function(e,n){return t.unlisten(e,n)}};return new o.a(e)},u);function u(){return null!==i&&i.apply(this,arguments)||this}},2:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter_=t}},20:function(t,e,n){"use strict";var i,r=n(0),a=n(5),o=n(15),s={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},u={NOTCH_ELEMENT_PADDING:8},c={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},d=n(2),l=(i=d.a,r.b(p,i),Object.defineProperty(p,"strings",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(p,"cssClasses",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(p,"numbers",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(p,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),p.prototype.notch=function(t){var e=p.cssClasses.OUTLINE_NOTCHED;0<t&&(t+=u.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(e)},p.prototype.closeNotch=function(){var t=p.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},p);function p(t){return i.call(this,r.a({},p.defaultAdapter,t))||this}n.d(e,"a",function(){return h});var f,h=(f=a.a,r.b(_,f),_.attachTo=function(t){return new _(t)},_.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root_.querySelector(s.NOTCH_ELEMENT_SELECTOR);var t=this.root_.querySelector("."+o.a.cssClasses.ROOT);t?(t.style.transitionDuration="0s",this.root_.classList.add(c.OUTLINE_UPGRADED),requestAnimationFrame(function(){t.style.transitionDuration=""})):this.root_.classList.add(c.NO_LABEL)},_.prototype.notch=function(t){this.foundation_.notch(t)},_.prototype.closeNotch=function(){this.foundation_.closeNotch()},_.prototype.getDefaultFoundation=function(){var t=this;return new l({addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},setNotchWidthProperty:function(e){return t.notchElement_.style.setProperty("width",e+"px")},removeNotchWidthProperty:function(){return t.notchElement_.style.removeProperty("width")}})},_);function _(){return null!==f&&f.apply(this,arguments)||this}},21:function(t,e,n){"use strict";var i,r=n(0),a=n(5),o=n(2),s={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},u=(i=o.a,r.b(c,i),Object.defineProperty(c,"cssClasses",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(c,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),c.prototype.init=function(){this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_)},c.prototype.destroy=function(){this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_)},c.prototype.activate=function(){this.adapter_.removeClass(s.LINE_RIPPLE_DEACTIVATING),this.adapter_.addClass(s.LINE_RIPPLE_ACTIVE)},c.prototype.setRippleCenter=function(t){this.adapter_.setStyle("transform-origin",t+"px center")},c.prototype.deactivate=function(){this.adapter_.addClass(s.LINE_RIPPLE_DEACTIVATING)},c.prototype.handleTransitionEnd=function(t){var e=this.adapter_.hasClass(s.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter_.removeClass(s.LINE_RIPPLE_ACTIVE),this.adapter_.removeClass(s.LINE_RIPPLE_DEACTIVATING))},c);function c(t){var e=i.call(this,r.a({},c.defaultAdapter,t))||this;return e.transitionEndHandler_=function(t){return e.handleTransitionEnd(t)},e}n.d(e,"a",function(){return l});var d,l=(d=a.a,r.b(p,d),p.attachTo=function(t){return new p(t)},p.prototype.activate=function(){this.foundation_.activate()},p.prototype.deactivate=function(){this.foundation_.deactivate()},p.prototype.setRippleCenter=function(t){this.foundation_.setRippleCenter(t)},p.prototype.getDefaultFoundation=function(){var t=this;return new u({addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},hasClass:function(e){return t.root_.classList.contains(e)},setStyle:function(e,n){return t.root_.style.setProperty(e,n)},registerEventHandler:function(e,n){return t.listen(e,n)},deregisterEventHandler:function(e,n){return t.unlisten(e,n)}})},p);function p(){return null!==d&&d.apply(this,arguments)||this}},4:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(c.functional){c._injectStyles=u;var d=c.render;c.render=function(t,e){return u.call(e),d(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}n.d(e,"a",function(){return i})},5:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n(0),r=n(2),a=(o.attachTo=function(t){return new o(t,new r.a({}))},o.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},o.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},o.prototype.initialSyncWithDOM=function(){},o.prototype.destroy=function(){this.foundation_.destroy()},o.prototype.listen=function(t,e){this.root_.addEventListener(t,e)},o.prototype.unlisten=function(t,e){this.root_.removeEventListener(t,e)},o.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root_.dispatchEvent(i)},o);function o(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root_=t,this.initialize.apply(this,i.d(n)),this.foundation_=void 0===e?this.getDefaultFoundation():e,this.foundation_.init(),this.initialSyncWithDOM()}},53:function(t,e,n){},6:function(t,e,n){"use strict";var i,r;function a(t,e){void 0===e&&(e=!1);var n,r=t.CSS;if("boolean"==typeof i&&!e)return i;if(!r||"function"!=typeof r.supports)return!1;var a=r.supports("--css-vars","yes"),o=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=!(!a&&!o||function(t){var e=t.document,n=e.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(n);var i=t.getComputedStyle(n),r=null!==i&&"solid"===i.borderTopStyle;return n.parentNode&&n.parentNode.removeChild(n),r}(t)),e||(i=n),n}function o(t,e){if(void 0===t&&(t=window),void 0===e&&(e=!1),void 0===r||e){var n=!1;try{t.document.addEventListener("test",function(){},{get passive(){return n=!0}})}catch(t){}r=n}return!!r&&{passive:!0}}function s(t,e,n){if(!t)return{x:0,y:0};var i,r,a=e.x,o=e.y,s=a+n.left,u=o+n.top;if("touchstart"===t.type){var c=t;i=c.changedTouches[0].pageX-s,r=c.changedTouches[0].pageY-u}else{var d=t;i=d.pageX-s,r=d.pageY-u}return{x:i,y:r}}n.d(e,"c",function(){return a}),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s})},61:function(t,e,n){"use strict";n.r(e);var i,r=n(0),a=n(5),o=n(8),s=n(19),u=n(21),c=n(20),d=n(12),l=n(10),p=n(2),f={ROOT:"mdc-text-field-character-counter"},h={ROOT_SELECTOR:"."+f.ROOT},_=(i=p.a,r.b(v,i),Object.defineProperty(v,"cssClasses",{get:function(){return f},enumerable:!0,configurable:!0}),Object.defineProperty(v,"strings",{get:function(){return h},enumerable:!0,configurable:!0}),Object.defineProperty(v,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),v.prototype.setCounterValue=function(t,e){t=Math.min(t,e),this.adapter_.setContent(t+" / "+e)},v);function v(t){return i.call(this,r.a({},v.defaultAdapter,t))||this}var m,g=(m=a.a,r.b(y,m),y.attachTo=function(t){return new y(t)},Object.defineProperty(y.prototype,"foundation",{get:function(){return this.foundation_},enumerable:!0,configurable:!0}),y.prototype.getDefaultFoundation=function(){var t=this;return new _({setContent:function(e){t.root_.textContent=e}})},y);function y(){return null!==m&&m.apply(this,arguments)||this}var b,C={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"},E={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"},I={DENSE_LABEL_SCALE:.923,LABEL_SCALE:.75},T=["pattern","min","max","required","step","minlength","maxlength"],A=["color","date","datetime-local","month","range","time","week"],L=["mousedown","touchstart"],O=["click","keydown"],x=(b=p.a,r.b(R,b),Object.defineProperty(R,"cssClasses",{get:function(){return E},enumerable:!0,configurable:!0}),Object.defineProperty(R,"strings",{get:function(){return C},enumerable:!0,configurable:!0}),Object.defineProperty(R,"numbers",{get:function(){return I},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"shouldAlwaysFloat_",{get:function(){var t=this.getNativeInput_().type;return 0<=A.indexOf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||Boolean(this.getValue())||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&Boolean(this.getValue())},enumerable:!0,configurable:!0}),Object.defineProperty(R,"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}),R.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_),L.forEach(function(e){t.adapter_.registerInputInteractionHandler(e,t.setPointerXOffset_)}),O.forEach(function(e){t.adapter_.registerTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter_.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},R.prototype.destroy=function(){var t=this;this.adapter_.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter_.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter_.deregisterInputInteractionHandler("input",this.inputInputHandler_),L.forEach(function(e){t.adapter_.deregisterInputInteractionHandler(e,t.setPointerXOffset_)}),O.forEach(function(e){t.adapter_.deregisterTextFieldInteractionHandler(e,t.textFieldInteractionHandler_)}),this.adapter_.deregisterValidationAttributeChangeHandler(this.validationObserver_)},R.prototype.handleTextFieldInteraction=function(){var t=this.adapter_.getNativeInput();t&&t.disabled||(this.receivedUserInput_=!0)},R.prototype.handleValidationAttributeChange=function(t){var e=this;t.some(function(t){return-1<T.indexOf(t)&&(e.styleValidity_(!0),!0)}),-1<t.indexOf("maxlength")&&this.setCharacterCounter_(this.getValue().length)},R.prototype.notchOutline=function(t){if(this.adapter_.hasOutline())if(t){var e=this.adapter_.hasClass(E.DENSE)?I.DENSE_LABEL_SCALE:I.LABEL_SCALE,n=this.adapter_.getLabelWidth()*e;this.adapter_.notchOutline(n)}else this.adapter_.closeOutline()},R.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()},R.prototype.setTransformOrigin=function(t){var e=t.touches,n=e?e[0]:t,i=n.target.getBoundingClientRect(),r=n.clientX-i.left;this.adapter_.setLineRippleTransformOrigin(r)},R.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},R.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},R.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)},R.prototype.getValue=function(){return this.getNativeInput_().value},R.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))},R.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},R.prototype.setValid=function(t){this.isValid_=t,this.styleValidity_(t);var e=!t&&!this.isFocused_;this.adapter_.hasLabel()&&this.adapter_.shakeLabel(e)},R.prototype.setUseNativeValidation=function(t){this.useNativeValidation_=t},R.prototype.isDisabled=function(){return this.getNativeInput_().disabled},R.prototype.setDisabled=function(t){this.getNativeInput_().disabled=t,this.styleDisabled_(t)},R.prototype.setHelperTextContent=function(t){this.helperText_&&this.helperText_.setContent(t)},R.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(t)},R.prototype.setLeadingIconContent=function(t){this.leadingIcon_&&this.leadingIcon_.setContent(t)},R.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(t)},R.prototype.setTrailingIconContent=function(t){this.trailingIcon_&&this.trailingIcon_.setContent(t)},R.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)}},R.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},R.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},R.prototype.styleValidity_=function(t){var e=R.cssClasses.INVALID;t?this.adapter_.removeClass(e):this.adapter_.addClass(e),this.helperText_&&this.helperText_.setValidity(t)},R.prototype.styleFocused_=function(t){var e=R.cssClasses.FOCUSED;t?this.adapter_.addClass(e):this.adapter_.removeClass(e)},R.prototype.styleDisabled_=function(t){var e=R.cssClasses,n=e.DISABLED,i=e.INVALID;t?(this.adapter_.addClass(n),this.adapter_.removeClass(i)):this.adapter_.removeClass(n),this.leadingIcon_&&this.leadingIcon_.setDisabled(t),this.trailingIcon_&&this.trailingIcon_.setDisabled(t)},R.prototype.getNativeInput_=function(){return(this.adapter_?this.adapter_.getNativeInput():null)||{disabled:!1,maxLength:-1,type:"input",validity:{badInput:!1,valid:!0},value:""}},R);function R(t,e){void 0===e&&(e={});var n=b.call(this,r.a({},R.defaultAdapter,t))||this;return n.isFocused_=!1,n.receivedUserInput_=!1,n.isValid_=!0,n.useNativeValidation_=!0,n.helperText_=e.helperText,n.characterCounter_=e.characterCounter,n.leadingIcon_=e.leadingIcon,n.trailingIcon_=e.trailingIcon,n.inputFocusHandler_=function(){return n.activateFocus()},n.inputBlurHandler_=function(){return n.deactivateFocus()},n.inputInputHandler_=function(){return n.handleInput()},n.setPointerXOffset_=function(t){return n.setTransformOrigin(t)},n.textFieldInteractionHandler_=function(){return n.handleTextFieldInteraction()},n.validationAttributeChangeHandler_=function(t){return n.handleValidationAttributeChange(t)},n}var S,H={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"},N={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+H.ROOT},P=(S=p.a,r.b(F,S),Object.defineProperty(F,"cssClasses",{get:function(){return H},enumerable:!0,configurable:!0}),Object.defineProperty(F,"strings",{get:function(){return N},enumerable:!0,configurable:!0}),Object.defineProperty(F,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),F.prototype.setContent=function(t){this.adapter_.setContent(t)},F.prototype.setPersistent=function(t){t?this.adapter_.addClass(H.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(H.HELPER_TEXT_PERSISTENT)},F.prototype.setValidation=function(t){t?this.adapter_.addClass(H.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(H.HELPER_TEXT_VALIDATION_MSG)},F.prototype.showToScreenReader=function(){this.adapter_.removeAttr(N.ARIA_HIDDEN)},F.prototype.setValidity=function(t){var e=this.adapter_.hasClass(H.HELPER_TEXT_PERSISTENT),n=this.adapter_.hasClass(H.HELPER_TEXT_VALIDATION_MSG)&&!t;n?this.adapter_.setAttr(N.ROLE,"alert"):this.adapter_.removeAttr(N.ROLE),e||n||this.hide_()},F.prototype.hide_=function(){this.adapter_.setAttr(N.ARIA_HIDDEN,"true")},F);function F(t){return S.call(this,r.a({},F.defaultAdapter,t))||this}var D,V=(D=a.a,r.b(w,D),w.attachTo=function(t){return new w(t)},Object.defineProperty(w.prototype,"foundation",{get:function(){return this.foundation_},enumerable:!0,configurable:!0}),w.prototype.getDefaultFoundation=function(){var t=this;return new P({addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},hasClass:function(e){return t.root_.classList.contains(e)},setAttr:function(e,n){return t.root_.setAttribute(e,n)},removeAttr:function(e){return t.root_.removeAttribute(e)},setContent:function(e){t.root_.textContent=e}})},w);function w(){return null!==D&&D.apply(this,arguments)||this}var j,B={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},M={ROOT:"mdc-text-field__icon"},U=["click","keydown"],k=(j=p.a,r.b(G,j),Object.defineProperty(G,"strings",{get:function(){return B},enumerable:!0,configurable:!0}),Object.defineProperty(G,"cssClasses",{get:function(){return M},enumerable:!0,configurable:!0}),Object.defineProperty(G,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),G.prototype.init=function(){var t=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex"),U.forEach(function(e){t.adapter_.registerInteractionHandler(e,t.interactionHandler_)})},G.prototype.destroy=function(){var t=this;U.forEach(function(e){t.adapter_.deregisterInteractionHandler(e,t.interactionHandler_)})},G.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",B.ICON_ROLE)))},G.prototype.setAriaLabel=function(t){this.adapter_.setAttr("aria-label",t)},G.prototype.setContent=function(t){this.adapter_.setContent(t)},G.prototype.handleInteraction=function(t){var e="Enter"===t.key||13===t.keyCode;"click"!==t.type&&!e||this.adapter_.notifyIconAction()},G);function G(t){var e=j.call(this,r.a({},G.defaultAdapter,t))||this;return e.savedTabIndex_=null,e.interactionHandler_=function(t){return e.handleInteraction(t)},e}var $,W=($=a.a,r.b(q,$),q.attachTo=function(t){return new q(t)},Object.defineProperty(q.prototype,"foundation",{get:function(){return this.foundation_},enumerable:!0,configurable:!0}),q.prototype.getDefaultFoundation=function(){var t=this;return new k({getAttr:function(e){return t.root_.getAttribute(e)},setAttr:function(e,n){return t.root_.setAttribute(e,n)},removeAttr:function(e){return t.root_.removeAttribute(e)},setContent:function(e){t.root_.textContent=e},registerInteractionHandler:function(e,n){return t.listen(e,n)},deregisterInteractionHandler:function(e,n){return t.unlisten(e,n)},notifyIconAction:function(){return t.emit(k.strings.ICON_EVENT,{},!0)}})},q);function q(){return null!==$&&$.apply(this,arguments)||this}var z,X=(z=a.a,r.b(Y,z),Y.attachTo=function(t){return new Y(t)},Y.prototype.initialize=function(t,e,n,i,r,a,o){void 0===t&&(t=function(t,e){return new d.a(t,e)}),void 0===e&&(e=function(t){return new u.a(t)}),void 0===n&&(n=function(t){return new V(t)}),void 0===i&&(i=function(t){return new g(t)}),void 0===r&&(r=function(t){return new W(t)}),void 0===a&&(a=function(t){return new s.a(t)}),void 0===o&&(o=function(t){return new c.a(t)}),this.input_=this.root_.querySelector(C.INPUT_SELECTOR);var l=this.root_.querySelector(C.LABEL_SELECTOR);this.label_=l?a(l):null;var p=this.root_.querySelector(C.LINE_RIPPLE_SELECTOR);this.lineRipple_=p?e(p):null;var f=this.root_.querySelector(C.OUTLINE_SELECTOR);this.outline_=f?o(f):null;var h=P.strings,v=this.root_.nextElementSibling,m=v&&v.classList.contains(E.HELPER_LINE),y=m&&v&&v.querySelector(h.ROOT_SELECTOR);this.helperText_=y?n(y):null;var b=_.strings,I=this.root_.querySelector(b.ROOT_SELECTOR);!I&&m&&v&&(I=v.querySelector(b.ROOT_SELECTOR)),this.characterCounter_=I?i(I):null,this.leadingIcon_=null,this.trailingIcon_=null;var T=this.root_.querySelectorAll(C.ICON_SELECTOR);0<T.length&&(1<T.length?(this.leadingIcon_=r(T[0]),this.trailingIcon_=r(T[1])):this.root_.classList.contains(E.WITH_LEADING_ICON)?this.leadingIcon_=r(T[0]):this.trailingIcon_=r(T[0])),this.ripple=this.createRipple_(t)},Y.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.characterCounter_&&this.characterCounter_.destroy(),this.leadingIcon_&&this.leadingIcon_.destroy(),this.trailingIcon_&&this.trailingIcon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),z.prototype.destroy.call(this)},Y.prototype.initialSyncWithDOM=function(){this.disabled=this.input_.disabled},Object.defineProperty(Y.prototype,"value",{get:function(){return this.foundation_.getValue()},set:function(t){this.foundation_.setValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"disabled",{get:function(){return this.foundation_.isDisabled()},set:function(t){this.foundation_.setDisabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"valid",{get:function(){return this.foundation_.isValid()},set:function(t){this.foundation_.setValid(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"required",{get:function(){return this.input_.required},set:function(t){this.input_.required=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"pattern",{get:function(){return this.input_.pattern},set:function(t){this.input_.pattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"minLength",{get:function(){return this.input_.minLength},set:function(t){this.input_.minLength=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"maxLength",{get:function(){return this.input_.maxLength},set:function(t){t<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"min",{get:function(){return this.input_.min},set:function(t){this.input_.min=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"max",{get:function(){return this.input_.max},set:function(t){this.input_.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"step",{get:function(){return this.input_.step},set:function(t){this.input_.step=t},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"helperTextContent",{set:function(t){this.foundation_.setHelperTextContent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"leadingIconAriaLabel",{set:function(t){this.foundation_.setLeadingIconAriaLabel(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"leadingIconContent",{set:function(t){this.foundation_.setLeadingIconContent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"trailingIconAriaLabel",{set:function(t){this.foundation_.setTrailingIconAriaLabel(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"trailingIconContent",{set:function(t){this.foundation_.setTrailingIconContent(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"useNativeValidation",{set:function(t){this.foundation_.setUseNativeValidation(t)},enumerable:!0,configurable:!0}),Y.prototype.focus=function(){this.input_.focus()},Y.prototype.layout=function(){var t=this.foundation_.shouldFloat;this.foundation_.notchOutline(t)},Y.prototype.getDefaultFoundation=function(){var t=r.a({},this.getRootAdapterMethods_(),this.getInputAdapterMethods_(),this.getLabelAdapterMethods_(),this.getLineRippleAdapterMethods_(),this.getOutlineAdapterMethods_());return new x(t,this.getFoundationMap_())},Y.prototype.getRootAdapterMethods_=function(){var t=this;return{addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},hasClass:function(e){return t.root_.classList.contains(e)},registerTextFieldInteractionHandler:function(e,n){return t.listen(e,n)},deregisterTextFieldInteractionHandler:function(e,n){return t.unlisten(e,n)},registerValidationAttributeChangeHandler:function(e){var n=new MutationObserver(function(t){return e(function(t){return t.map(function(t){return t.attributeName}).filter(function(t){return t})}(t))});return n.observe(t.input_,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(t){return t.disconnect()}}},Y.prototype.getInputAdapterMethods_=function(){var t=this;return{getNativeInput:function(){return t.input_},isFocused:function(){return document.activeElement===t.input_},registerInputInteractionHandler:function(e,n){return t.input_.addEventListener(e,n)},deregisterInputInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n)}}},Y.prototype.getLabelAdapterMethods_=function(){var t=this;return{floatLabel:function(e){return t.label_&&t.label_.float(e)},getLabelWidth:function(){return t.label_?t.label_.getWidth():0},hasLabel:function(){return Boolean(t.label_)},shakeLabel:function(e){return t.label_&&t.label_.shake(e)}}},Y.prototype.getLineRippleAdapterMethods_=function(){var t=this;return{activateLineRipple:function(){t.lineRipple_&&t.lineRipple_.activate()},deactivateLineRipple:function(){t.lineRipple_&&t.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(e){t.lineRipple_&&t.lineRipple_.setRippleCenter(e)}}},Y.prototype.getOutlineAdapterMethods_=function(){var t=this;return{closeOutline:function(){return t.outline_&&t.outline_.closeNotch()},hasOutline:function(){return Boolean(t.outline_)},notchOutline:function(e){return t.outline_&&t.outline_.notch(e)}}},Y.prototype.getFoundationMap_=function(){return{characterCounter:this.characterCounter_?this.characterCounter_.foundation:void 0,helperText:this.helperText_?this.helperText_.foundation:void 0,leadingIcon:this.leadingIcon_?this.leadingIcon_.foundation:void 0,trailingIcon:this.trailingIcon_?this.trailingIcon_.foundation:void 0}},Y.prototype.createRipple_=function(t){var e=this,n=this.root_.classList.contains(E.TEXTAREA),i=this.root_.classList.contains(E.OUTLINED);if(n||i)return null;var a=r.a({},d.a.createAdapter(this),{isSurfaceActive:function(){return o.b(e.input_,":active")},registerInteractionHandler:function(t,n){return e.input_.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){return e.input_.removeEventListener(t,n)}});return t(this.root_,new l.a(a))},Y);function Y(){return null!==z&&z.apply(this,arguments)||this}var K=n(1),Z={mixins:[K.a,K.b],model:{prop:"value",event:"model"},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1},upgraded:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},textarea:{type:Boolean,default:!1},useNativeValidation:{type:Boolean,default:!0},valid:{type:Boolean,default:!0}},data:function(){return{mdcTextField:void 0,slotObserver:void 0}},computed:{classes:function(){return{"mdc-text-field--upgraded":this.upgraded,"mdc-text-field--fullwidth":this.fullWidth,"mdc-text-field--with-leading-icon":this.$slots.leadingIcon,"mdc-text-field--with-trailing-icon":this.$slots.trailingIcon,"mdc-text-field--outlined":this.outlined,"mdc-text-field--dense":this.dense,"mdc-text-field--focused":this.focused,"mdc-text-field--textarea":this.textarea,"mdc-text-field--no-label":!this.$slots.default&&!this.fullWidth}}},watch:{useNativeValidation:function(){this.mdcTextField.useNativeValidation=this.useNativeValidation},valid:function(){this.mdcTextField.valid=this.valid},value:function(){this.mdcTextField.value=this.value},disabled:function(){this.mdcTextField.disabled=this.disabled}},mounted:function(){this.mdcTextField=X.attachTo(this.$el),this.mdcTextField.useNativeValidation=this.useNativeValidation,this.mdcTextField.valid=this.valid,this.mdcTextField.disabled=this.disabled},beforeDestroy:function(){this.mdcTextField.destroy()}},J=n(4),Q=Object(J.a)(Z,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mdc-text-field",class:t.classes},[t._t("leadingIcon"),t._v(" "),t.textarea?t._e():n("input",t._g(t._b({staticClass:"mdc-text-field__input",domProps:{value:t.value},on:{input:function(e){return t.$emit("model",e.target.value)}}},"input",t.$attrs,!1),t.$listeners)),t._v(" "),t.textarea?n("textarea",t._g(t._b({staticClass:"mdc-text-field__input",domProps:{value:t.value},on:{input:function(e){return t.$emit("model",e.target.value)}}},"textarea",t.$attrs,!1),t.$listeners)):t._e(),t._v(" "),t.textarea||t.outlined?n("div",{staticClass:"mdc-notched-outline"},[n("div",{staticClass:"mdc-notched-outline__leading"}),t._v(" "),t.$slots.default?n("div",{staticClass:"mdc-notched-outline__notch"},[t._t("default")],2):t._e(),t._v(" "),n("div",{staticClass:"mdc-notched-outline__trailing"})]):t._e(),t._v(" "),!t.$slots.default||t.fullWidth||t.textarea||t.outlined?t._e():t._t("default"),t._v(" "),t._t("trailingIcon"),t._v(" "),t.outlined?t._e():t._t("bottomLine")],2)},[],!1,null,null,null).exports,tt={mixins:[K.a,K.b],props:{persistent:{type:Boolean,default:!1},validationMsg:{type:Boolean,default:!1}},data:function(){return{mdcTextFieldHelperText:void 0}},watch:{persistent:function(){this.mdcTextFieldHelperText.foundation.setPersistent(this.persistent)},validationMsg:function(){this.mdcTextFieldHelp