UNPKG

material-components-vue

Version:
2 lines 51.9 kB
/*! For license information please see tabs.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 o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return c});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 o=function(){return(o=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 a(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,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function c(){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"],o={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 o})},10:function(t,e,n){"use strict";var i=n(0),r=n(2),o={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"},a={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},c=n(6);n.d(e,"a",function(){return p});var l,u=["touchstart","pointerdown","mousedown","keydown"],d=["touchend","pointerup","mouseup","contextmenu"],f=[],p=(l=r.a,i.b(h,l),Object.defineProperty(h,"cssClasses",{get:function(){return o},enumerable:!0,configurable:!0}),Object.defineProperty(h,"strings",{get:function(){return a},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&&(u.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_):d.forEach(function(t){e.adapter_.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},h.prototype.deregisterRootHandlers_=function(){var t=this;u.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_),d.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<f.length&&f.some(function(t){return e.adapter_.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(f.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){f=[],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,o=r.FG_DEACTIVATION,a=r.FG_ACTIVATION,s=h.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",l="";if(!this.adapter_.isUnbounded()){var u=this.getFgTranslationCoordinates_(),d=u.startPoint,f=u.endPoint;c=d.x+"px, "+d.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter_.updateCssVariable(n,c),this.adapter_.updateCssVariable(i,l),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(o),this.adapter_.computeBoundingRect(),this.adapter_.addClass(a),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(c.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=l.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 l});var i,r=n(0),o=n(5),a=n(8),s=n(10),c=n(6),l=(i=o.a,r.b(u,i),u.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new u(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},u.createAdapter=function(t){return{addClass:function(e){return t.root_.classList.add(e)},browserSupportsCssVars:function(){return c.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,c.a())},deregisterInteractionHandler:function(e,n){return t.root_.removeEventListener(e,n,c.a())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return Object(a.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,c.a())},registerInteractionHandler:function(e,n){return t.root_.addEventListener(e,n,c.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(u.prototype,"unbounded",{get:function(){return Boolean(this.unbounded_)},set:function(t){this.unbounded_=Boolean(t),this.setUnbounded_()},enumerable:!0,configurable:!0}),u.prototype.activate=function(){this.foundation_.activate()},u.prototype.deactivate=function(){this.foundation_.deactivate()},u.prototype.layout=function(){this.foundation_.layout()},u.prototype.getDefaultFoundation=function(){return new s.a(u.createAdapter(this))},u.prototype.initialSyncWithDOM=function(){var t=this.root_;this.unbounded="mdcRippleIsUnbounded"in t.dataset},u.prototype.setUnbounded_=function(){this.foundation_.setUnbounded(Boolean(this.unbounded_))},u);function u(){var t=null!==i&&i.apply(this,arguments)||this;return t.disabled=!1,t}},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}},4:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=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(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}n.d(e,"a",function(){return i})},5:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n(0),r=n(2),o=(a.attachTo=function(t){return new a(t,new r.a({}))},a.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},a.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},a.prototype.initialSyncWithDOM=function(){},a.prototype.destroy=function(){this.foundation_.destroy()},a.prototype.listen=function(t,e){this.root_.addEventListener(t,e)},a.prototype.unlisten=function(t,e){this.root_.removeEventListener(t,e)},a.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)},a);function a(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()}},52:function(t,e,n){},58:function(t,e,n){"use strict";n.r(e);var i,r=n(0),o=n(5),a=n(12),s=n(10),c=n(2),l={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},u={CONTENT_SELECTOR:".mdc-tab-indicator__content"},d=(i=c.a,r.b(f,i),Object.defineProperty(f,"cssClasses",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(f,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(f,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!0,configurable:!0}),f.prototype.computeContentClientRect=function(){return this.adapter_.computeContentClientRect()},f);function f(t){return i.call(this,r.a({},f.defaultAdapter,t))||this}var p,h=(p=d,r.b(_,p),_.prototype.activate=function(){this.adapter_.addClass(d.cssClasses.ACTIVE)},_.prototype.deactivate=function(){this.adapter_.removeClass(d.cssClasses.ACTIVE)},_);function _(){return null!==p&&p.apply(this,arguments)||this}var v,m=(v=d,r.b(b,v),b.prototype.activate=function(t){if(t){var e=this.computeContentClientRect(),n=t.width/e.width,i=t.left-e.left;this.adapter_.addClass(d.cssClasses.NO_TRANSITION),this.adapter_.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+n+")"),this.computeContentClientRect(),this.adapter_.removeClass(d.cssClasses.NO_TRANSITION),this.adapter_.addClass(d.cssClasses.ACTIVE),this.adapter_.setContentStyleProperty("transform","")}else this.adapter_.addClass(d.cssClasses.ACTIVE)},b.prototype.deactivate=function(){this.adapter_.removeClass(d.cssClasses.ACTIVE)},b);function b(){return null!==v&&v.apply(this,arguments)||this}var g,y=(g=o.a,r.b(T,g),T.attachTo=function(t){return new T(t)},T.prototype.initialize=function(){this.content_=this.root_.querySelector(d.strings.CONTENT_SELECTOR)},T.prototype.computeContentClientRect=function(){return this.foundation_.computeContentClientRect()},T.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)},computeContentClientRect:function(){return t.content_.getBoundingClientRect()},setContentStyleProperty:function(e,n){return t.content_.style.setProperty(e,n)}};return this.root_.classList.contains(d.cssClasses.FADE)?new h(e):new m(e)},T.prototype.activate=function(t){this.foundation_.activate(t)},T.prototype.deactivate=function(){this.foundation_.deactivate()},T);function T(){return null!==g&&g.apply(this,arguments)||this}var A,S={ACTIVE:"mdc-tab--active"},C={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"},E=(A=c.a,r.b(O,A),Object.defineProperty(O,"cssClasses",{get:function(){return S},enumerable:!0,configurable:!0}),Object.defineProperty(O,"strings",{get:function(){return C},enumerable:!0,configurable:!0}),Object.defineProperty(O,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!0,configurable:!0}),O.prototype.handleClick=function(){this.adapter_.notifyInteracted()},O.prototype.isActive=function(){return this.adapter_.hasClass(S.ACTIVE)},O.prototype.setFocusOnActivate=function(t){this.focusOnActivate_=t},O.prototype.activate=function(t){this.adapter_.addClass(S.ACTIVE),this.adapter_.setAttr(C.ARIA_SELECTED,"true"),this.adapter_.setAttr(C.TABINDEX,"0"),this.adapter_.activateIndicator(t),this.focusOnActivate_&&this.adapter_.focus()},O.prototype.deactivate=function(){this.isActive()&&(this.adapter_.removeClass(S.ACTIVE),this.adapter_.setAttr(C.ARIA_SELECTED,"false"),this.adapter_.setAttr(C.TABINDEX,"-1"),this.adapter_.deactivateIndicator())},O.prototype.computeDimensions=function(){var t=this.adapter_.getOffsetWidth(),e=this.adapter_.getOffsetLeft(),n=this.adapter_.getContentOffsetWidth(),i=this.adapter_.getContentOffsetLeft();return{contentLeft:e+i,contentRight:e+i+n,rootLeft:e,rootRight:e+t}},O);function O(t){var e=A.call(this,r.a({},O.defaultAdapter,t))||this;return e.focusOnActivate_=!0,e}var R,I=(R=o.a,r.b(L,R),L.attachTo=function(t){return new L(t)},L.prototype.initialize=function(t,e){void 0===t&&(t=function(t,e){return new a.a(t,e)}),void 0===e&&(e=function(t){return new y(t)}),this.id=this.root_.id;var n=this.root_.querySelector(E.strings.RIPPLE_SELECTOR),i=r.a({},a.a.createAdapter(this),{addClass:function(t){return n.classList.add(t)},removeClass:function(t){return n.classList.remove(t)},updateCssVariable:function(t,e){return n.style.setProperty(t,e)}}),o=new s.a(i);this.ripple_=t(this.root_,o);var c=this.root_.querySelector(E.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator_=e(c),this.content_=this.root_.querySelector(E.strings.CONTENT_SELECTOR)},L.prototype.initialSyncWithDOM=function(){var t=this;this.handleClick_=function(){return t.foundation_.handleClick()},this.listen("click",this.handleClick_)},L.prototype.destroy=function(){this.unlisten("click",this.handleClick_),this.ripple_.destroy(),R.prototype.destroy.call(this)},L.prototype.getDefaultFoundation=function(){var t=this;return new E({setAttr:function(e,n){return t.root_.setAttribute(e,n)},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)},activateIndicator:function(e){return t.tabIndicator_.activate(e)},deactivateIndicator:function(){return t.tabIndicator_.deactivate()},notifyInteracted:function(){return t.emit(E.strings.INTERACTED_EVENT,{tabId:t.id},!0)},getOffsetLeft:function(){return t.root_.offsetLeft},getOffsetWidth:function(){return t.root_.offsetWidth},getContentOffsetLeft:function(){return t.content_.offsetLeft},getContentOffsetWidth:function(){return t.content_.offsetWidth},focus:function(){return t.root_.focus()}})},Object.defineProperty(L.prototype,"active",{get:function(){return this.foundation_.isActive()},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"focusOnActivate",{set:function(t){this.foundation_.setFocusOnActivate(t)},enumerable:!0,configurable:!0}),L.prototype.activate=function(t){this.foundation_.activate(t)},L.prototype.deactivate=function(){this.foundation_.deactivate()},L.prototype.computeIndicatorClientRect=function(){return this.tabIndicator_.computeContentClientRect()},L.prototype.computeDimensions=function(){return this.foundation_.computeDimensions()},L.prototype.focus=function(){this.root_.focus()},L);function L(){return null!==R&&R.apply(this,arguments)||this}function D(t){this.adapter_=t}var w,P=n(1),x={mixins:[P.a,P.b],model:{prop:"active",event:"change"},props:{active:{type:Boolean,default:!1},spanningOnlyContent:{type:Boolean,default:!1},focusOnActivate:{type:Boolean,default:!0},stacked:{type:Boolean,default:!1},minWidth:{type:Boolean,default:!1}},data:function(){return{mdcTab:void 0,slotObserver:void 0,classObserver:void 0}},computed:{classes:function(){return{"mdc-tab--active":this.active,"mdc-tab--stacked":this.stacked,"mdc-tab--min-width":this.minWidth}},indicatorClasses:function(){return{"mdc-tab-indicator--active":this.active}},tabindex:function(){return this.active?"0":"-1"},model:{get:function(){return this.active},set:function(t){this.$emit("change",t)}}},watch:{focusOnActivate:function(){this.mdcTab.focusOnActivate=this.focusOnActivate}},mounted:function(){var t=this;this.updateSlot(),this.slotObserver=new MutationObserver(function(){return t.updateSlot()}),this.slotObserver.observe(this.$el,{childList:!0,subtree:!0}),this.classObserver=new MutationObserver(function(){return t.updateActive()}),this.classObserver.observe(this.$el,{attributes:!0}),this.mdcTab=I.attachTo(this.$el),this.mdcTab.focusOnActivate=this.focusOnActivate},beforeDestroy:function(){this.slotObserver.disconnect(),this.classObserver.disconnect(),this.mdcTab.destroy()},methods:{updateSlot:function(){var t=this;this.$slots.icon&&this.$slots.icon.map(function(e){e.elm.classList.add("mdc-tab__icon"),t.label?e.elm.setAttribute("aria-label",!0):e.elm.setAttribute("aria-hidden",!0)})},updateActive:function(){this.$el.classList.contains("mdc-tab--active")&&!this.active?this.$emit("change",!0):this.active&&!this.$el.classList.contains("mdc-tab--active")&&this.$emit("change",!1)},onInteracted:function(t){this.$emit("interacted",t.detail)}}},N=n(4),V=Object(N.a)(x,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"mdc-tab",class:t.classes,attrs:{"aria-selected":t.active,tabindex:t.tabindex,role:"tab"},on:{"MDCTab:interacted":t.onInteracted}},[n("span",{staticClass:"mdc-tab__content"},[t._t("icon"),t._v(" "),n("span",{staticClass:"mdc-tab__text-label"},[t._t("default")],2),t._v(" "),t.spanningOnlyContent?n("span",{staticClass:"mdc-tab-indicator",class:t.indicatorClasses},[n("span",{staticClass:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})]):t._e()],2),t._v(" "),t.spanningOnlyContent?t._e():n("span",{staticClass:"mdc-tab-indicator",class:t.indicatorClasses},[n("span",{staticClass:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})]),t._v(" "),n("span",{staticClass:"mdc-tab__ripple"})])},[],!1,null,null,null).exports,M=n(8),H={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},F={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},B=(w=D,r.b(W,w),W.prototype.getScrollPositionRTL=function(){var t=this.adapter_.getScrollAreaScrollLeft(),e=this.calculateScrollEdges_().right;return Math.round(e-t)},W.prototype.scrollToRTL=function(t){var e=this.calculateScrollEdges_(),n=this.adapter_.getScrollAreaScrollLeft(),i=this.clampScrollValue_(e.right-t);return{finalScrollPosition:i,scrollDelta:i-n}},W.prototype.incrementScrollRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},W.prototype.getAnimatingScrollPosition=function(t){return t},W.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth()}},W.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.left,t),e.right)},W);function W(){return null!==w&&w.apply(this,arguments)||this}var j,K=(j=D,r.b(U,j),U.prototype.getScrollPositionRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft();return Math.round(t-e)},U.prototype.scrollToRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft(),n=this.clampScrollValue_(-t);return{finalScrollPosition:n,scrollDelta:n-e}},U.prototype.incrementScrollRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e-t);return{finalScrollPosition:n,scrollDelta:n-e}},U.prototype.getAnimatingScrollPosition=function(t,e){return t-e},U.prototype.calculateScrollEdges_=function(){var t=this.adapter_.getScrollContentOffsetWidth();return{left:this.adapter_.getScrollAreaOffsetWidth()-t,right:0}},U.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.max(Math.min(e.right,t),e.left)},U);function U(){return null!==j&&j.apply(this,arguments)||this}var Y,k=(Y=D,r.b(G,Y),G.prototype.getScrollPositionRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft();return Math.round(e-t)},G.prototype.scrollToRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft(),n=this.clampScrollValue_(t);return{finalScrollPosition:n,scrollDelta:e-n}},G.prototype.incrementScrollRTL=function(t){var e=this.adapter_.getScrollAreaScrollLeft(),n=this.clampScrollValue_(e+t);return{finalScrollPosition:n,scrollDelta:e-n}},G.prototype.getAnimatingScrollPosition=function(t,e){return t+e},G.prototype.calculateScrollEdges_=function(){return{left:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth(),right:0}},G.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.right,t),e.left)},G);function G(){return null!==Y&&Y.apply(this,arguments)||this}var z,$,X=(z=c.a,r.b(q,z),Object.defineProperty(q,"cssClasses",{get:function(){return H},enumerable:!0,configurable:!0}),Object.defineProperty(q,"strings",{get:function(){return F},enumerable:!0,configurable:!0}),Object.defineProperty(q,"defaultAdapter",{get:function(){return{eventTargetMatchesSelector:function(){return!1},addClass:function(){},removeClass:function(){},addScrollAreaClass:function(){},setScrollAreaStyleProperty:function(){},setScrollContentStyleProperty:function(){},getScrollContentStyleValue:function(){return""},setScrollAreaScrollLeft:function(){},getScrollAreaScrollLeft:function(){return 0},getScrollContentOffsetWidth:function(){return 0},getScrollAreaOffsetWidth:function(){return 0},computeScrollAreaClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function(){return 0}}},enumerable:!0,configurable:!0}),q.prototype.init=function(){var t=this.adapter_.computeHorizontalScrollbarHeight();this.adapter_.setScrollAreaStyleProperty("margin-bottom",-t+"px"),this.adapter_.addScrollAreaClass(q.cssClasses.SCROLL_AREA_SCROLL)},q.prototype.getScrollPosition=function(){if(this.isRTL_())return this.computeCurrentScrollPositionRTL_();var t=this.calculateCurrentTranslateX_();return this.adapter_.getScrollAreaScrollLeft()-t},q.prototype.handleInteraction=function(){this.isAnimating_&&this.stopScrollAnimation_()},q.prototype.handleTransitionEnd=function(t){var e=t.target;this.isAnimating_&&this.adapter_.eventTargetMatchesSelector(e,q.strings.CONTENT_SELECTOR)&&(this.isAnimating_=!1,this.adapter_.removeClass(q.cssClasses.ANIMATING))},q.prototype.incrementScroll=function(t){if(0!==t)return this.isRTL_()?this.incrementScrollRTL_(t):void this.incrementScroll_(t)},q.prototype.scrollTo=function(t){if(this.isRTL_())return this.scrollToRTL_(t);this.scrollTo_(t)},q.prototype.getRTLScroller=function(){return this.rtlScrollerInstance_||(this.rtlScrollerInstance_=this.rtlScrollerFactory_()),this.rtlScrollerInstance_},q.prototype.calculateCurrentTranslateX_=function(){var t=this.adapter_.getScrollContentStyleValue("transform");if("none"===t)return 0;var e=/\((.+?)\)/.exec(t);if(!e)return 0;var n=e[1],i=r.c(n.split(","),6),o=(i[0],i[1],i[2],i[3],i[4]);return i[5],parseFloat(o)},q.prototype.clampScrollValue_=function(t){var e=this.calculateScrollEdges_();return Math.min(Math.max(e.left,t),e.right)},q.prototype.computeCurrentScrollPositionRTL_=function(){var t=this.calculateCurrentTranslateX_();return this.getRTLScroller().getScrollPositionRTL(t)},q.prototype.calculateScrollEdges_=function(){return{left:0,right:this.adapter_.getScrollContentOffsetWidth()-this.adapter_.getScrollAreaOffsetWidth()}},q.prototype.scrollTo_=function(t){var e=this.getScrollPosition(),n=this.clampScrollValue_(t),i=n-e;this.animate_({finalScrollPosition:n,scrollDelta:i})},q.prototype.scrollToRTL_=function(t){var e=this.getRTLScroller().scrollToRTL(t);this.animate_(e)},q.prototype.incrementScroll_=function(t){var e=this.getScrollPosition(),n=t+e,i=this.clampScrollValue_(n),r=i-e;this.animate_({finalScrollPosition:i,scrollDelta:r})},q.prototype.incrementScrollRTL_=function(t){var e=this.getRTLScroller().incrementScrollRTL(t);this.animate_(e)},q.prototype.animate_=function(t){var e=this;0!==t.scrollDelta&&(this.stopScrollAnimation_(),this.adapter_.setScrollAreaScrollLeft(t.finalScrollPosition),this.adapter_.setScrollContentStyleProperty("transform","translateX("+t.scrollDelta+"px)"),this.adapter_.computeScrollAreaClientRect(),requestAnimationFrame(function(){e.adapter_.addClass(q.cssClasses.ANIMATING),e.adapter_.setScrollContentStyleProperty("transform","none")}),this.isAnimating_=!0)},q.prototype.stopScrollAnimation_=function(){this.isAnimating_=!1;var t=this.getAnimatingScrollPosition_();this.adapter_.removeClass(q.cssClasses.ANIMATING),this.adapter_.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter_.setScrollAreaScrollLeft(t)},q.prototype.getAnimatingScrollPosition_=function(){var t=this.calculateCurrentTranslateX_(),e=this.adapter_.getScrollAreaScrollLeft();return this.isRTL_()?this.getRTLScroller().getAnimatingScrollPosition(e,t):e-t},q.prototype.rtlScrollerFactory_=function(){var t=this.adapter_.getScrollAreaScrollLeft();this.adapter_.setScrollAreaScrollLeft(t-1);var e=this.adapter_.getScrollAreaScrollLeft();if(e<0)return this.adapter_.setScrollAreaScrollLeft(t),new K(this.adapter_);var n=this.adapter_.computeScrollAreaClientRect(),i=this.adapter_.computeScrollContentClientRect(),r=Math.round(i.right-n.right);return this.adapter_.setScrollAreaScrollLeft(t),r===e?new k(this.adapter_):new B(this.adapter_)},q.prototype.isRTL_=function(){return"rtl"===this.adapter_.getScrollContentStyleValue("direction")},q);function q(t){var e=z.call(this,r.a({},q.defaultAdapter,t))||this;return e.isAnimating_=!1,e}var Z,J=(Z=o.a,r.b(Q,Z),Q.attachTo=function(t){return new Q(t)},Q.prototype.initialize=function(){this.area_=this.root_.querySelector(X.strings.AREA_SELECTOR),this.content_=this.root_.querySelector(X.strings.CONTENT_SELECTOR)},Q.prototype.initialSyncWithDOM=function(){var t=this;this.handleInteraction_=function(){return t.foundation_.handleInteraction()},this.handleTransitionEnd_=function(e){return t.foundation_.handleTransitionEnd(e)},this.area_.addEventListener("wheel",this.handleInteraction_),this.area_.addEventListener("touchstart",this.handleInteraction_),this.area_.addEventListener("pointerdown",this.handleInteraction_),this.area_.addEventListener("mousedown",this.handleInteraction_),this.area_.addEventListener("keydown",this.handleInteraction_),this.content_.addEventListener("transitionend",this.handleTransitionEnd_)},Q.prototype.destroy=function(){Z.prototype.destroy.call(this),this.area_.removeEventListener("wheel",this.handleInteraction_),this.area_.removeEventListener("touchstart",this.handleInteraction_),this.area_.removeEventListener("pointerdown",this.handleInteraction_),this.area_.removeEventListener("mousedown",this.handleInteraction_),this.area_.removeEventListener("keydown",this.handleInteraction_),this.content_.removeEventListener("transitionend",this.handleTransitionEnd_)},Q.prototype.getDefaultFoundation=function(){var t=this;return new X({eventTargetMatchesSelector:function(t,e){return Object(M.b)(t,e)},addClass:function(e){return t.root_.classList.add(e)},removeClass:function(e){return t.root_.classList.remove(e)},addScrollAreaClass:function(e){return t.area_.classList.add(e)},setScrollAreaStyleProperty:function(e,n){return t.area_.style.setProperty(e,n)},setScrollContentStyleProperty:function(e,n){return t.content_.style.setProperty(e,n)},getScrollContentStyleValue:function(e){return window.getComputedStyle(t.content_).getPropertyValue(e)},setScrollAreaScrollLeft:function(e){return t.area_.scrollLeft=e},getScrollAreaScrollLeft:function(){return t.area_.scrollLeft},getScrollContentOffsetWidth:function(){return t.content_.offsetWidth},getScrollAreaOffsetWidth:function(){return t.area_.offsetWidth},computeScrollAreaClientRect:function(){return t.area_.getBoundingClientRect()},computeScrollContentClientRect:function(){return t.content_.getBoundingClientRect()},computeHorizontalScrollbarHeight:function(){return function(t,e){if(void 0===e&&(e=!0),e&&void 0!==$)return $;var n=t.createElement("div");n.classList.add(H.SCROLL_TEST),t.body.appendChild(n);var i=n.offsetHeight-n.clientHeight;return t.body.removeChild(n),e&&($=i),i}(document)}})},Q.prototype.getScrollPosition=function(){return this.foundation_.getScrollPosition()},Q.prototype.getScrollContentWidth=function(){return this.content_.offsetWidth},Q.prototype.incrementScroll=function(t){this.foundation_.incrementScroll(t)},Q.prototype.scrollTo=function(t){this.foundation_.scrollTo(t)},Q);function Q(){return null!==Z&&Z.apply(this,arguments)||this}var tt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},et={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},nt=new Set;nt.add(tt.ARROW_LEFT_KEY),nt.add(tt.ARROW_RIGHT_KEY),nt.add(tt.END_KEY),nt.add(tt.HOME_KEY),nt.add(tt.ENTER_KEY),nt.add(tt.SPACE_KEY);var it=new Map;it.set(et.ARROW_LEFT_KEYCODE,tt.ARROW_LEFT_KEY),it.set(et.ARROW_RIGHT_KEYCODE,tt.ARROW_RIGHT_KEY),it.set(et.END_KEYCODE,tt.END_KEY),it.set(et.HOME_KEYCODE,tt.HOME_KEY),it.set(et.ENTER_KEYCODE,tt.ENTER_KEY),it.set(et.SPACE_KEYCODE,tt.SPACE_KEY);var rt,ot=(rt=c.a,r.b(at,rt),Object.defineProperty(at,"strings",{get:function(){return tt},enumerable:!0,configurable:!0}),Object.defineProperty(at,"numbers",{get:function(){return et},enumerable:!0,configurable:!0}),Object.defineProperty(at,"defaultAdapter",{get:function(){return{scrollTo:function(){},incrementScroll:function(){},getScrollPosition:function(){return 0},getScrollContentWidth:function(){return 0},getOffsetWidth:function(){return 0},isRTL:function(){return!1},setActiveTab:function(){},activateTabAtIndex:function(){},deactivateTabAtIndex:function(){},focusTabAtIndex:function(){},getTabIndicatorClientRectAtIndex:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function(){return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function(){return-1},getFocusedTabIndex:function(){return-1},getIndexOfTabById:function(){return-1},getTabListLength:function(){return 0},notifyTabActivated:function(){}}},enumerable:!0,configurable:!0}),at.prototype.setUseAutomaticActivation=function(t){this.useAutomaticActivation_=t},at.prototype.activateTab=function(t){var e,n=this.adapter_.getPreviousActiveTabIndex();this.indexIsInRange_(t)&&t!==n&&(-1!==n&&(this.adapter_.deactivateTabAtIndex(n),e=this.adapter_.getTabIndicatorClientRectAtIndex(n)),this.adapter_.activateTabAtIndex(t,e),this.scrollIntoView(t),this.adapter_.notifyTabActivated(t))},at.prototype.handleKeyDown=function(t){var e=this.getKeyFromEvent_(t);if(void 0!==e)if(this.isActivationKey_(e)||t.preventDefault(),this.useAutomaticActivation_){if(this.isActivationKey_(e))return;var n=this.determineTargetFromKey_(this.adapter_.getPreviousActiveTabIndex(),e);this.adapter_.setActiveTab(n),this.scrollIntoView(n)}else{var i=this.adapter_.getFocusedTabIndex();this.isActivationKey_(e)?this.adapter_.setActiveTab(i):(n=this.determineTargetFromKey_(i,e),this.adapter_.focusTabAtIndex(n),this.scrollIntoView(n))}},at.prototype.handleTabInteraction=function(t){this.adapter_.setActiveTab(this.adapter_.getIndexOfTabById(t.detail.tabId))},at.prototype.scrollIntoView=function(t){if(this.indexIsInRange_(t))return 0===t?this.adapter_.scrollTo(0):t===this.adapter_.getTabListLength()-1?this.adapter_.scrollTo(this.adapter_.getScrollContentWidth()):this.isRTL_()?this.scrollIntoViewRTL_(t):void this.scrollIntoView_(t)},at.prototype.determineTargetFromKey_=function(t,e){var n=this.isRTL_(),i=this.adapter_.getTabListLength()-1,r=t;return e===tt.END_KEY?r=i:e===tt.ARROW_LEFT_KEY&&!n||e===tt.ARROW_RIGHT_KEY&&n?r-=1:e===tt.ARROW_RIGHT_KEY&&!n||e===tt.ARROW_LEFT_KEY&&n?r+=1:r=0,r<0?r=i:i<r&&(r=0),r},at.prototype.calculateScrollIncrement_=function(t,e,n,i){var r=this.adapter_.getTabDimensionsAtIndex(e),o=r.contentLeft-n-i,a=r.contentRight-n-et.EXTRA_SCROLL_AMOUNT,s=o+et.EXTRA_SCROLL_AMOUNT;return e<t?Math.min(a,0):Math.max(s,0)},at.prototype.calculateScrollIncrementRTL_=function(t,e,n,i,r){var o=this.adapter_.getTabDimensionsAtIndex(e),a=r-o.contentLeft-n,s=r-o.contentRight-n-i+et.EXTRA_SCROLL_AMOUNT,c=a-et.EXTRA_SCROLL_AMOUNT;return t<e?Math.max(s,0):Math.min(c,0)},at.prototype.findAdjacentTabIndexClosestToEdge_=function(t,e,n,i){var r=e.rootLeft-n,o=e.rootRight-n-i,a=r+o;return r<0||a<0?t-1:0<o||0<a?t+1:-1},at.prototype.findAdjacentTabIndexClosestToEdgeRTL_=function(t,e,n,i,r){var o=r-e.rootLeft-i-n,a=r-e.rootRight-n,s=o+a;return 0<o||0<s?t+1:a<0||s<0?t-1:-1},at.prototype.getKeyFromEvent_=function(t){return nt.has(t.key)?t.key:it.get(t.keyCode)},at.prototype.isActivationKey_=function(t){return t===tt.SPACE_KEY||t===tt.ENTER_KEY},at.prototype.indexIsInRange_=function(t){return 0<=t&&t<this.adapter_.getTabListLength()},at.prototype.isRTL_=function(){return this.adapter_.isRTL()},at.prototype.scrollIntoView_=function(t){var e=this.adapter_.getScrollPosition(),n=this.adapter_.getOffsetWidth(),i=this.adapter_.getTabDimensionsAtIndex(t),r=this.findAdjacentTabIndexClosestToEdge_(t,i,e,n);if(this.indexIsInRange_(r)){var o=this.calculateScrollIncrement_(t,r,e,n);this.adapter_.incrementScroll(o)}},at.prototype.scrollIntoViewRTL_=function(t){var e=this.adapter_.getScrollPosition(),n=this.adapter_.getOffsetWidth(),i=this.adapter_.getTabDimensionsAtIndex(t),r=this.adapter_.getScrollContentWidth(),o=this.findAdjacentTabIndexClosestToEdgeRTL_(t,i,e,n,r);if(this.indexIsInRange_(o)){var a=this.calculateScrollIncrementRTL_(t,o,e,n,r);this.adapter_.incrementScroll(a)}},at);function at(t){var e=rt.call(this,r.a({},at.defaultAdapter,t))||this;return e.useAutomaticActivation_=!1,e}var st,ct=ot.strings,lt=0,ut=(st=o.a,r.b(dt,st),dt.attachTo=function(t){return new dt(t)},Object.defineProperty(dt.prototype,"focusOnActivate",{set:function(t){this.tabList_.forEach(function(e){return e.focusOnActivate=t})},enumerable:!0,configurable:!0}),Object.defineProperty(dt.prototype,"useAutomaticActivation",{set:function(t){this.foundation_.setUseAutomaticActivation(t)},enumerable:!0,configurable:!0}),dt.prototype.initialize=function(t,e){void 0===t&&(t=function(t){return new I(t)}),void 0===e&&(e=function(t){return new J(t)}),this.tabList_=this.instantiateTabs_(t),this.tabScroller_=this.instantiateTabScroller_(e)},dt.prototype.initialSyncWithDOM=function(){var t=this;this.handleTabInteraction_=function(e){return t.foundation_.handleTabInteraction(e)},this.handleKeyDown_=function(e){return t.foundation_.handleKeyDown(e)},this.listen(E.strings.INTERACTED_EVENT,this.handleTabInteraction_),this.listen("keydown",this.handleKeyDown_);for(var e=0;e<this.tabList_.length;e++)if(this.tabList_[e].active){this.scrollIntoView(e);break}},dt.prototype.destroy=function(){st.prototype.destroy.call(this),this.unlisten(E.strings.INTERACTED_EVENT,this.handleTabInteraction_),this.unlisten("keydown",this.handleKeyDown_),this.tabList_.forEach(function(t){return t.destroy()}),this.tabScroller_&&this.tabScroller_.destroy()},dt.prototype.getDefaultFoundation=function(){var t=this;return new ot({scrollTo:function(e){return t.tabScroller_.scrollTo(e)},incrementScroll:function(e){return t.tabScroller_.incrementScroll(e)},getScrollPosition:function(){return t.tabScroller_.getScrollPosition()},getScrollContentWidth:function(){return t.tabScroller_.getScrollContentWidth()},getOffsetWidth:function(){return t.root_.offsetWidth},isRTL:function(){return"rtl"===window.getComputedStyle(t.root_).getPropertyValue("direction")},setActiveTab:function(e){return t.foundation_.activateTab(e)},activateTabAtIndex:function(e,n){return t.tabList_[e].activate(n)},deactivateTabAtIndex:function(e){return t.tabList_[e].deactivate()},focusTabAtIndex:function(e){return t.tabList_[e].focus()},getTabIndicatorClientRectAtIndex:function(e){return t.tabList_[e].computeIndicatorClientRect()},getTabDimensionsAtIndex:function(e){return t.tabList_[e].computeDimensions()},getPreviousActiveTabIndex:function(){for(var e=0;e<t.tabList_.length;e++)if(t.tabList_[e].active)return e;return-1},getFocusedTabIndex:function(){var e=t.getTabElements_(),n=document.activeElement;return e.indexOf(n)},getIndexOfTabById:function(e){for(var n=0;n<t.tabList_.length;n++)if(t.tabList_[n].id===e)return n;return-1},getTabListLength:function(){return t.tabList_.length},notifyTabActivated:function(e){return t.emit(ct.TAB_ACTIVATED_EVENT,{index:e},!0)}})},dt.prototype.activateTab=function(t){this.foundation_.activateTab(t)},dt.prototype.scrollIntoView=function(t){this.foundation_.scrollIntoView(t)},dt.prototype.getTabElements_=function(){return[].slice.call(this.root_.querySelectorAll(ct.TAB_SELECTOR))},dt.prototype.instantiateTabs_=function(t){return this.getTabElements_().map(function(e){return e.id=e.id||"mdc-tab-"+ ++lt,t(e)})},dt.prototype.instantiateTabScroller_=function(t){var e=this.root_.querySelector(ct.TAB_SCROLLER_SELECTOR);return e?t(e):null},dt);function dt(){return null!==st&&st.apply(this,arguments)||this}var ft={mixins:[P.a,P.b],props:{focusOnActivate:{type:Boolean,default:!0},useAutomaticActivation:{type:Boolean,default:!0},activateTab:{type:Number,default:0},scrollIntoView:{type:Number,default:0}},data:function(){return{mdcTabBar:void 0}},watch:{focusOnActivate:function(){this.mdcTabBar.focusOnActivate=this.focusOnActivate},useAutomaticActivation:function(){this.mdcTabBar.useAutomaticActivation=this.useAutomaticActivation},activateTab:function(){this.mdcTabBar.activateTab(this.activateTab)},scrollIntoView:function(){this.mdcTabBar.scrollIntoView(this.scrollIntoView)}},mounted:function(){console.log(this.$slots.default[0].tag),this.mdcTabBar=ut.attachTo(this.$el),this.mdcTabBar.focusOnActivate=this.focusOnActivate,this.mdcTabBar.useAutomaticActivation=this.useAutomaticActivation},beforeDestroy:function(){void 0!==this.mdcTabBar&&this.mdcTabBar.destroy()},methods:{onActivated:function(t){this.$emit("activated",t.detail)}}},pt=Object(N.a)(ft,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mdc-tab-bar",attrs:{role:"tablist"},on:{"MDCTabBar:activated":t.onActivated}},[t.$slots.default[0].tag.includes("m-tab-scroller")?t._t("default"):n("div",{staticClass:"mdc-tab-scroller"},[n("div",{staticClass:"mdc-tab-scroller__scroll-area"},[n("div",{staticClass:"mdc-tab-scroller__scroll-content"},[t._t("default")],2)])])],2)},[],!1,null,null,null).exports,ht={mixins:[P.a,P.b],props:{fade:{type:Boolean,default:!1},icon:{type:String,default:""},active:{type:Boolean,default:!1}},data:function(){return{mdcTabIndicator:void 0}},computed:{contentClasses:function(){return{"mdc-tab-indicator__content--underline":""===this.icon,"mdc-tab-indicator__content--icon":""!==this.icon,"material-icons":""!==this.icon}},classes:function(){return{"mdc-tab-indicator--fade":this.fade}}},watch:{active:function(){this.active?this.mdcTabIndicator.activate():this.mdcTabIndicator.deactivate()}},mounted:function(){this.mdcTabIndicator=y.attachTo(this.$el),this.active?this.mdcTabIndicator.activate():this.mdcTabIndicator.deactivate()},beforeDestroy:function(){this.mdcTabIndicator.destroy()}},_t=Object(N.a)(ht,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"mdc-tab-indicator",class:t.classes},[n("span",{staticClass:"mdc-tab-indicator__content",class:t.contentClasses},[t._v(t._s(t.icon))])])},[],!1,null,"41484524",null).exports,vt={mixins:[P.a,P.b],data:function(){return{mdcTabScroller:void 0}},mounted:function(){this.mdcTabScroller=J.attachTo(this.$el)},beforeDestroy:function(){this.mdcTabScroller.destroy()}},mt=Object(N.a)(vt,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mdc-tab-scroller"},[e("div",{staticClass:"mdc-tab-scroller__scroll-area"},[e("div",{staticClass:"mdc-tab-scroller__scroll-content"},[this._t("default")],2)])])},[],!1,null,"6167376e",null).exports,bt=(n(52),n(7)),gt={install:function(t){t.component("m-tab",V),t.component("m-tab-bar",pt),t.component("m-tab-indicator",_t),t.component("m-tab-scroller",mt)}};e.default=gt,Object(bt.a)(gt)},6:function(t,e,n){"use strict";var i,r;function o(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 o=r.supports("--css-vars","yes"),a=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=!(!o&&!a||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.removeChil