(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["account"],{"0832":function(t,e,n){},"0a49":function(t,e,n){var i=n("9b43"),r=n("626a"),s=n("4bf8"),a=n("9def"),o=n("cd1c");t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,l=4==t,h=6==t,d=5==t||h,f=e||o;return function(e,o,v){for(var p,m,g=s(e),b=r(g),w=i(o,v,3),k=a(b.length),x=0,y=n?f(e,k):c?f(e,0):void 0;k>x;x++)if((d||x in b)&&(p=b[x],m=w(p,x,g),t))if(n)y[x]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return x;case 2:y.push(p)}else if(l)return!1;return h?-1:u||l?l:y}}},"0df7":function(t,e,n){},1169:function(t,e,n){var i=n("2d95");t.exports=Array.isArray||function(t){return"Array"==i(t)}},"20d6":function(t,e,n){"use strict";var i=n("5ca1"),r=n("0a49")(6),s="findIndex",a=!0;s in[]&&Array(1)[s](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(s)},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},"452a":function(t,e,n){},"55dd":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d8e8"),s=n("4bf8"),a=n("79e5"),o=[].sort,c=[1,2,3];i(i.P+i.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n("2f21")(o)),"Array",{sort:function(t){return void 0===t?o.call(s(this)):o.call(s(this),r(t))}})},"58dbb":function(t,e,n){},"77be":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-container",{staticClass:"elevation-6"},[n("v-snackbar",{staticClass:"text-capitalize",attrs:{timeout:3e3,top:"",color:t.snackColor},model:{value:t.snack,callback:function(e){t.snack=e},expression:"snack"}},[t._v("\n "+t._s(t.snackText)+"\n "),n("v-btn",{attrs:{outline:""},on:{click:function(e){t.snack=!1}}},[n("v-icon",[t._v("close")])],1)],1),n("v-tabs",{attrs:{"fixed-tabs":"",color:"secondary",dark:"","icons-and-text":""}},[n("v-tabs-slider",{attrs:{color:"accent"}}),n("v-tab",{attrs:{href:"#account"}},[t._v("Account\n "),n("v-icon",[t._v("account_box")])],1),n("v-tab",{attrs:{href:"#token"}},[t._v("Token\n "),n("v-icon",[t._v("vpn_key")])],1),n("v-tab-item",{attrs:{value:"account"}},[t.editing?n("v-toolbar",[n("v-spacer"),n("v-btn",{on:{click:t.cancelEdit}},[t._v("Cancel")]),n("v-btn",{attrs:{color:"warning"},on:{click:t.updateAccount}},[t._v("Save")])],1):t._e(),n("v-container",[n("v-form",{ref:"accountForm"},[n("v-text-field",{attrs:{label:"Name",rules:t.nameRules},model:{value:t.editAccount.name,callback:function(e){t.$set(t.editAccount,"name",e)},expression:"editAccount.name"}}),n("v-text-field",{attrs:{label:"Email",rules:t.emailRules},model:{value:t.editAccount.email,callback:function(e){t.$set(t.editAccount,"email",e)},expression:"editAccount.email"}})],1),n("div",t._l(t.account.roles,function(e){return n("v-chip",{key:e},[t._v(t._s(e))])}),1),n("div",[n("v-btn",{attrs:{flat:"",color:"warning"},on:{click:t.deleteAccount}},[t._v("Delete Account")])],1)],1)],1),n("v-tab-item",{attrs:{value:"token"}},[n("Token",{attrs:{token:t.account.token},on:{"update-token":t.updateToken,"delete-token":t.deleteToken}})],1)],1)],1)},r=[],s=(n("20d6"),n("96cf"),n("1da1")),a=n("be94"),o=(n("7f7f"),n("d4ec")),c=n("99de"),u=n("7e84"),l=n("262e"),h=n("9072"),d=n("c5fa"),f=function(t){function e(t,n,i){var r;return Object(o["a"])(this,e),r=Object(c["a"])(this,Object(u["a"])(e).call(this,n)),r.name=r.constructor.name,r.errorCode=t,r.message=n,r.fields=JSON.parse(i),r}return Object(l["a"])(e,t),e}(Object(h["a"])(Error)),v={getAccount:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].get("/api/account");case 3:return e=t.sent,t.abrupt("return",e.data);case 7:throw t.prev=7,t.t0=t["catch"](0),new f(t.t0.response.status,t.t0.response.data.error);case 10:case"end":return t.stop()}},t,this,[[0,7]])}));function e(){return t.apply(this,arguments)}return e}(),updateAccount:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].put("/api/account",e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:throw t.prev=7,t.t0=t["catch"](0),new f(t.t0.response.status,t.t0.response.data.error,t.t0.response.data.errors);case 10:case"end":return t.stop()}},t,this,[[0,7]])}));function e(e){return t.apply(this,arguments)}return e}(),deleteAccount:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].delete("/api/account");case 3:return e=t.sent,t.abrupt("return",e.data);case 7:throw t.prev=7,t.t0=t["catch"](0),new f(t.t0.response.status,t.t0.response.data.error);case 10:case"end":return t.stop()}},t,this,[[0,7]])}));function e(){return t.apply(this,arguments)}return e}(),updateToken:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].put("/api/account/token/".concat(e.id),e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:throw t.prev=7,t.t0=t["catch"](0),new f(t.t0.response.status,t.t0.response.data.error);case 10:case"end":return t.stop()}},t,this,[[0,7]])}));function e(e){return t.apply(this,arguments)}return e}(),deleteToken:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["a"].delete("/api/account/token/".concat(e));case 3:return n=t.sent,t.abrupt("return",n.data);case 7:throw t.prev=7,t.t0=t["catch"](0),new f(t.t0.response.status,t.t0.response.data.error);case 10:case"end":return t.stop()}},t,this,[[0,7]])}));function e(e){return t.apply(this,arguments)}return e}()},p=v,m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-container",[n("v-card",[n("v-data-table",{attrs:{headers:t.headers,items:t.token,"custom-sort":t.sortByDate,"hide-actions":""},scopedSlots:t._u([{key:"items",fn:function(e){return[n("tr",{class:{accent:e.item.id==t.localTokenID}},[n("td",{staticClass:"justify-center layout px-0"},[n("v-icon",[t._v(t._s(e.item.mobile?"phone_iphone":"desktop_mac"))])],1),n("td",[n("v-edit-dialog",{attrs:{"return-value":e.item.identifier,large:"",lazy:"",persistent:""},on:{"update:returnValue":function(n){t.$set(e.item,"identifier",n)},save:function(n){t.save(e.item)}}},[n("div",{staticClass:"subheading"},[t._v(t._s(e.item.identifier))]),n("v-text-field",{attrs:{slot:"input",rules:[t.max60chars],label:"Edit","single-line":"",counter:"60",autofocus:""},slot:"input",model:{value:e.item.identifier,callback:function(n){t.$set(e.item,"identifier",n)},expression:"props.item.identifier"}})],1)],1),n("td",{staticClass:"subheading"},[t._v(t._s(t._f("formatDate")(e.item.created_at)))]),n("td",{staticClass:"justify-center"},[e.item.id!=t.localTokenID?n("v-tooltip",{attrs:{top:""}},[n("v-icon",{attrs:{slot:"activator"},on:{click:function(n){t.deleteItem(e.item)}},slot:"activator"},[t._v("delete")]),n("span",[t._v("Delete")])],1):n("v-tooltip",{attrs:{top:""}},[n("v-icon",{attrs:{slot:"activator"},slot:"activator"},[t._v("location_on")]),n("span",[t._v("This Device")])],1)],1)])]}}])})],1)],1)},g=[],b=(n("55dd"),{props:{token:Array},data:function(){return{headers:[{text:"",value:"mobile",sortable:!1},{text:"Identifier",value:"identifier",sortable:!1},{text:"Created At",value:"create_at"}],max60chars:function(t){return t.length<=60||"Input too long!"}}},computed:{localTokenID:function(){return this.$store.getters.localTokenID}},methods:{sortByDate:function(t,e,n){return t.sort(function(t,e){var i=new Date(t.created_at),r=new Date(e.created_at);return n?i-r:r-i})},save:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.updateToken({id:e.id,identifier:e.identifier});case 3:this.$emit("update-token",e),t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),console.log("failed to update token",t.t0);case 9:case"end":return t.stop()}},t,this,[[0,6]])}));function e(e){return t.apply(this,arguments)}return e}(),deleteItem:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,n=this.token.indexOf(e),!confirm("Are you sure you want to delete this token?")){t.next=6;break}return t.next=5,p.deleteToken(this.token[n].id);case 5:this.$emit("delete-token",this.token[n].id);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log("failed to delete token",t.t0);case 11:case"end":return t.stop()}},t,this,[[0,8]])}));function e(e){return t.apply(this,arguments)}return e}(),cancel:function(){},open:function(){},close:function(){}}}),w=b,k=(n("ffe6"),n("2877")),x=n("6544"),y=n.n(x),T=n("b0af"),_=n("a523"),V=n("8fea"),$=(n("97b8"),n("e949")),I=n("6a18"),O=n("80d2"),A=n("afdd"),C=n("326d"),S={name:"v-edit-dialog",mixins:[$["a"],I["a"]],props:{cancelText:{default:"Cancel"},large:Boolean,lazy:Boolean,persistent:Boolean,saveText:{default:"Save"},transition:{type:String,default:"slide-x-reverse-transition"}},data:function(){return{isActive:!1}},watch:{isActive:function(t){t?(this.$emit("open"),setTimeout(this.focus,50)):this.$emit("close")}},methods:{cancel:function(){this.isActive=!1,this.$emit("cancel")},focus:function(){var t=this.$refs.content.querySelector("input");t&&t.focus()},genButton:function(t,e){return this.$createElement(A["a"],{props:{flat:!0,color:"primary",light:!0},on:{click:t}},e)},genActions:function(){var t=this;return this.$createElement("div",{class:"v-small-dialog__actions"},[this.genButton(this.cancel,this.cancelText),this.genButton(function(){t.save(t.returnValue),t.$emit("save")},this.saveText)])},genContent:function(){var t=this;return this.$createElement("div",{on:{keydown:function(e){var n=t.$refs.content.querySelector("input");e.keyCode===O["n"].esc&&t.cancel(),e.keyCode===O["n"].enter&&n&&(t.save(n.value),t.$emit("save"))}},ref:"content"},[this.$slots.input])}},render:function(t){var e=this;return t(C["a"],{staticClass:"v-small-dialog",class:this.themeClasses,props:{contentClass:"v-small-dialog__content",transition:this.transition,origin:"top right",right:!0,value:this.isActive,closeOnClick:!this.persistent,closeOnContentClick:!1,lazy:this.lazy,light:this.light,dark:this.dark},on:{input:function(t){return e.isActive=t}}},[t("a",{slot:"activator"},this.$slots.default),this.genContent(),this.large?this.genActions():null])}},R=n("132d"),E=n("2677"),B=n("3a2f"),j=Object(k["a"])(w,m,g,!1,null,null,null);j.options.__file="Token.vue";var z=j.exports;y()(j,{VCard:T["a"],VContainer:_["a"],VDataTable:V["a"],VEditDialog:S,VIcon:R["a"],VTextField:E["a"],VTooltip:B["a"]});var D={name:"account",components:{Token:z},data:function(){var t=this;return{account:{},editAccount:{},editing:!1,errors:{},snack:!1,snackColor:"",snackText:"",nameRules:[function(t){return!!t||"Name is required"},function(t){return t&&t.length<=100||"Name must be less than 100 characters"},function(){return!t.errors.name||t.errors.name}],emailRules:[function(t){return!!t||"E-mail is required"},function(t){return/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(t)||"E-mail must be valid"},function(){return!t.errors.email||t.errors.email}]}},computed:{origAccount:function(){return{name:this.account.name,email:this.account.email}}},watch:{origAccount:function(){this.cancelEdit()},editAccount:{handler:function(){this.editing=!0},deep:!0}},methods:{cancelEdit:function(){var t=this;this.editAccount=Object(a["a"])({},this.origAccount),this.errors={},setTimeout(function(){t.editing=!1},50)},updateAccount:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,this.errors={},!this.$refs.accountForm.validate()){t.next=7;break}return t.next=5,v.updateAccount(this.editAccount);case 5:this.account=t.sent,this.snackSuccess("Account updated");case 7:t.next=14;break;case 9:t.prev=9,t.t0=t["catch"](0),this.errors=Object(a["a"])({},t.t0.fields),this.$refs.accountForm.validate(),this.snackError(t.t0.message);case 14:case"end":return t.stop()}},t,this,[[0,9]])}));function e(){return t.apply(this,arguments)}return e}(),deleteAccount:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!confirm("Delete Account can not be undone! Are you sure?")){t.next=4;break}return t.next=4,v.deleteAccount();case 4:t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),this.snackError(t.t0.message);case 9:case"end":return t.stop()}},t,this,[[0,6]])}));function e(){return t.apply(this,arguments)}return e}(),updateToken:function(t){var e=this.account.token.findIndex(function(e){return e.id===t.id});this.$set(this.account.token,e,t),this.snackSuccess("Token updated")},deleteToken:function(t){this.account.token=this.account.token.filter(function(e){return e.id!==t}),this.snackSuccess("Token deleted")},snackSuccess:function(t){this.snack=!0,this.snackColor="success",this.snackText=t},snackError:function(t){this.snack=!0,this.snackColor="error",this.snackText=t}},created:function(){var t=Object(s["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.getAccount();case 3:this.account=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t["catch"](0),console.log("could not get account data");case 9:case"end":return t.stop()}},t,this,[[0,6]])}));function e(){return t.apply(this,arguments)}return e}()},L=D,M=(n("90c7"),n("8336")),P=n("cc20"),W=n("4bd4"),N=n("2db4"),G=n("9910"),q=n("2464"),F=n("0d01"),H=Object.assign||function(t){for(var e=1;e-1&&t.preventDefault(),this.$emit("click",t),this.to||this.toggle()},onRouteChange:function(){var t=this;if(this.to&&this.$refs.link){var e="_vnode.data.class."+this.activeClass;this.$nextTick(function(){Object(O["i"])(t.$refs.link,e)&&t.toggle()})}}},render:function(t){var e=this.generateRouteLink(this.classes),n=e.data,i=this.disabled?"div":e.tag;return n.ref="link",t("div",{staticClass:"v-tabs__div"},[t(i,n,this.$slots.default)])}},J=n("3e79"),K=n("c341"),Q=n("58df"),U=Object(Q["a"])(J["a"],Object(q["a"])("windowGroup","v-window-item","v-window")).extend({name:"v-window-item",directives:{Touch:K["a"]},props:{reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data:function(){return{done:null,isActive:!1,wasCancelled:!1}},computed:{computedTransition:function(){return this.windowGroup.internalReverse?"undefined"!==typeof this.reverseTransition?this.reverseTransition||"":this.windowGroup.computedTransition:"undefined"!==typeof this.transition?this.transition||"":this.windowGroup.computedTransition}},mounted:function(){this.$el.addEventListener("transitionend",this.onTransitionEnd,!1)},beforeDestroy:function(){this.$el.removeEventListener("transitionend",this.onTransitionEnd,!1)},methods:{genDefaultSlot:function(){return this.$slots.default},onAfterEnter:function(){var t=this;this.wasCancelled?this.wasCancelled=!1:requestAnimationFrame(function(){t.windowGroup.internalHeight=void 0,t.windowGroup.isActive=!1})},onBeforeEnter:function(){this.windowGroup.isActive=!0},onLeave:function(t){this.windowGroup.internalHeight=Object(O["b"])(t.clientHeight)},onEnterCancelled:function(){this.wasCancelled=!0},onEnter:function(t,e){var n=this,i=this.windowGroup.isBooted;i&&(this.done=e),requestAnimationFrame(function(){if(!n.computedTransition)return e();n.windowGroup.internalHeight=Object(O["b"])(t.clientHeight),!i&&setTimeout(e,100)})},onTransitionEnd:function(t){"transform"===t.propertyName&&t.target===this.$el&&this.done&&(this.done(),this.done=null)}},render:function(t){var e=t("div",{staticClass:"v-window-item",directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.showLazyContent(this.genDefaultSlot()));return t("transition",{props:{name:this.computedTransition},on:{afterEnter:this.onAfterEnter,beforeEnter:this.onBeforeEnter,leave:this.onLeave,enter:this.onEnter,enterCancelled:this.onEnterCancelled}},[e])}}),Y=n("d9bd"),Z=U.extend({name:"v-tab-item",props:{id:String},render:function(t){var e=U.options.render.call(this,t);return this.id&&(Object(Y["d"])("id","value",this),e.data.domProps=e.data.domProps||{},e.data.domProps.id=this.id),e}}),tt=(n("f413"),n("58dbb"),n("2b0e"));function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change";return tt["a"].extend({name:"proxyable",model:{prop:t,event:e},props:et({},t,{required:!1}),data:function(){return{internalLazyValue:this[t]}},computed:{internalValue:{get:function(){return this.internalLazyValue},set:function(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:et({},t,function(t){this.internalLazyValue=t})})}var it=nt(),rt=it,st=Object.assign||function(t){for(var e=1;e-1&&n.length-1<1||null!=this.max&&i<0&&n.length+1>this.max||(i>-1?n.splice(i,1):n.push(t),this.internalValue=n)},updateSingle:function(t){var e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render:function(t){return t("div",{staticClass:"v-item-group",class:this.classes},this.$slots.default)}}),ot=(at.extend({name:"v-item-group",provide:function(){return{itemGroup:this}}}),{computed:{activeTab:function(){if(this.selectedItems.length)return this.selectedItems[0]},containerStyles:function(){return this.height?{height:parseInt(this.height,10)+"px"}:null},hasArrows:function(){return(this.showArrows||!this.isMobile)&&this.isOverflowing},isMobile:function(){return this.$vuetify.breakpoint.width0?t:e.length?this.$createElement(ut,e):null},genTransition:function(t){return this.$createElement("transition",{props:{name:"fade-transition"}},[this.genIcon(t)])},genWrapper:function(t){var e=this;return this.$createElement("div",{staticClass:"v-tabs__wrapper",class:{"v-tabs__wrapper--show-arrows":this.hasArrows},ref:"wrapper",directives:[{name:"touch",value:{start:function(t){return e.overflowCheck(t,e.onTouchStart)},move:function(t){return e.overflowCheck(t,e.onTouchMove)},end:function(t){return e.overflowCheck(t,e.onTouchEnd)}}}]},[t])},genSlider:function(t){return t.length||(t=[this.$createElement(ht,{props:{color:this.sliderColor}})]),this.$createElement("div",{staticClass:"v-tabs__slider-wrapper",style:this.sliderStyles},t)}}},vt={props:{activeClass:{type:String,default:"v-tabs__item--active"},alignWithTitle:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0,validator:function(t){return!isNaN(parseInt(t))}},hideSlider:Boolean,iconsAndText:Boolean,mandatory:{type:Boolean,default:!0},mobileBreakPoint:{type:[Number,String],default:1264,validator:function(t){return!isNaN(parseInt(t))}},nextIcon:{type:String,default:"$vuetify.icons.next"},prevIcon:{type:String,default:"$vuetify.icons.prev"},right:Boolean,showArrows:Boolean,sliderColor:{type:String,default:"accent"},value:[Number,String]}},pt={methods:{newOffset:function(t){var e=this.$refs.wrapper.clientWidth;return"prev"===t?Math.max(this.scrollOffset-e,0):Math.min(this.scrollOffset+e,this.$refs.container.clientWidth-e)},onTouchStart:function(t){this.startX=this.scrollOffset+t.touchstartX,this.$refs.container.style.transition="none",this.$refs.container.style.willChange="transform"},onTouchMove:function(t){this.scrollOffset=this.startX-t.touchmoveX},onTouchEnd:function(){var t=this.$refs.container,e=this.$refs.wrapper,n=t.clientWidth-e.clientWidth;t.style.transition=null,t.style.willChange=null,this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=n&&(this.scrollOffset=n)}}},mt={watch:{activeTab:function(t,e){this.setOverflow(),t&&(this.tabItems&&this.tabItems(this.getValue(t,this.items.indexOf(t))),null!=e&&this.updateTabsView())},alignWithTitle:"callSlider",centered:"callSlider",fixedTabs:"callSlider",hasArrows:function(t){t||(this.scrollOffset=0)},internalValue:function(t){this.$listeners["input"]&&this.$emit("input",t)},lazyValue:"updateTabs",right:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize",scrollOffset:function(t){this.$refs.container.style.transform="translateX("+-t+"px)",this.hasArrows&&(this.prevIconVisible=this.checkPrevIcon(),this.nextIconVisible=this.checkNextIcon())}}},gt=n("b57a"),bt=n("0d3d"),wt=n("bfc5"),kt=at.extend({name:"v-tabs",directives:{Resize:bt["a"],Touch:K["a"]},mixins:[lt["a"],gt["a"],ot,vt,ft,pt,mt,I["a"]],provide:function(){return{tabGroup:this,tabProxy:this.tabProxy,registerItems:this.registerItems,unregisterItems:this.unregisterItems}},data:function(){return{bar:[],content:[],isOverflowing:!1,nextIconVisible:!1,prevIconVisible:!1,resizeTimeout:null,scrollOffset:0,sliderWidth:null,sliderLeft:null,startX:0,tabItems:null,transitionTime:300,widths:{bar:0,container:0,wrapper:0}}},watch:{items:"onResize",tabs:"onResize"},mounted:function(){this.init()},methods:{checkIcons:function(){this.prevIconVisible=this.checkPrevIcon(),this.nextIconVisible=this.checkNextIcon()},checkPrevIcon:function(){return this.scrollOffset>0},checkNextIcon:function(){return this.widths.container>this.scrollOffset+this.widths.wrapper},callSlider:function(){var t=this;if(this.hideSlider||!this.activeTab)return!1;var e=this.activeTab;this.$nextTick(function(){e&&e.$el&&(t.sliderWidth=e.$el.scrollWidth,t.sliderLeft=e.$el.offsetLeft)})},init:function(){this.$listeners["input"]&&Object(Y["d"])("@input","@change",this)},onResize:function(){if(!this._isDestroyed){this.setWidths();var t=this.isBooted?this.transitionTime:0;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.updateTabsView,t)}},overflowCheck:function(t,e){this.isOverflowing&&e(t)},scrollTo:function(t){this.scrollOffset=this.newOffset(t)},setOverflow:function(){this.isOverflowing=this.widths.bar