| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34c32446"],{"0fd9":function(t,e,s){"use strict";s("4b85");var i=s("2b0e"),n=s("d9f7"),a=s("80d2");const r=["sm","md","lg","xl"],o=["start","end","center"];function l(t,e){return r.reduce((s,i)=>(s[t+Object(a["E"])(i)]=e(),s),{})}const c=t=>[...o,"baseline","stretch"].includes(t),h=l("align",()=>({type:String,default:null,validator:c})),u=t=>[...o,"space-between","space-around"].includes(t),d=l("justify",()=>({type:String,default:null,validator:u})),p=t=>[...o,"space-between","space-around","stretch"].includes(t),f=l("alignContent",()=>({type:String,default:null,validator:p})),v={align:Object.keys(h),justify:Object.keys(d),alignContent:Object.keys(f)},g={align:"align",justify:"justify",alignContent:"align-content"};function m(t,e,s){let i=g[t];if(null!=s){if(e){const s=e.replace(t,"");i+="-"+s}return i+="-"+s,i.toLowerCase()}}const b=new Map;e["a"]=i["default"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:c},...h,justify:{type:String,default:null,validator:u},...d,alignContent:{type:String,default:null,validator:p},...f},render(t,{props:e,data:s,children:i}){let a="";for(const n in e)a+=String(e[n]);let r=b.get(a);if(!r){let t;for(t in r=[],v)v[t].forEach(s=>{const i=e[s],n=m(t,s,i);n&&r.push(n)});r.push({"no-gutters":e.noGutters,"row--dense":e.dense,["align-"+e.align]:e.align,["justify-"+e.justify]:e.justify,["align-content-"+e.alignContent]:e.alignContent}),b.set(a,r)}return t(e.tag,Object(n["a"])(s,{staticClass:"row",class:r}),i)}})},"13b3":function(t,e,s){},"166a":function(t,e,s){},1681:function(t,e,s){},"1bfb":function(t,e,s){},"23a7":function(t,e,s){"use strict";s("5803");var i=s("2677"),n=s("cc20"),a=s("80d2"),r=s("d9bd"),o=s("d9f7");e["a"]=i["a"].extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:t=>"boolean"===typeof t||[1e3,1024].includes(t)},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:t=>Object(a["F"])(t).every(t=>null!=t&&"object"===typeof t)}},computed:{classes(){return{...i["a"].options.computed.classes.call(this),"v-file-input":!0}},computedCounterValue(){const t=this.isMultiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,t);const e=this.internalArrayValue.reduce((t,{size:e=0})=>t+e,0);return this.$vuetify.lang.t(this.counterSizeString,t,Object(a["v"])(e,1024===this.base))},internalArrayValue(){return Object(a["F"])(this.internalValue)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("change",this.lazyValue)}},isDirty(){return this.internalArrayValue.length>0},isLabelActive(){return this.isDirty},isMultiple(){return this.$attrs.hasOwnProperty("multiple")},text(){return this.isDirty?this.internalArrayValue.map(t=>{const{name:e="",size:s=0}=t,i=this.truncateText(e);return this.showSize?`${i} (${Object(a["v"])(s,1024===this.base)})`:i}):[this.placeholder]},base(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips(){return this.chips||this.smallChips}},watch:{readonly:{handler(t){!0===t&&Object(r["b"])("readonly is not supported on <v-file-input>",this)},immediate:!0},value(t){const e=this.isMultiple?t:t?[t]:[];Object(a["i"])(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback(){this.internalValue=this.isMultiple?[]:void 0,this.$refs.input.value=""},genChips(){return this.isDirty?this.text.map((t,e)=>this.$createElement(n["a"],{props:{small:this.smallChips},on:{"click:close":()=>{const t=this.internalValue;t.splice(e,1),this.internalValue=t}}},[t])):[]},genControl(){const t=i["a"].options.methods.genControl.call(this);return this.hideInput&&(t.data.style=Object(o["c"])(t.data.style,{display:"none"})),t},genInput(){const t=i["a"].options.methods.genInput.call(this);return delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot(){if(!this.prependIcon)return null;const t=this.genIcon("prepend",()=>{this.$refs.input.click()});return this.genSlot("prepend","outer",[t])},genSelectionText(){const t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections(){const t=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((e,s)=>{this.$scopedSlots.selection&&t.push(this.$scopedSlots.selection({text:this.text[s],file:e,index:s}))}):t.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},t)},genTextFieldSlot(){const t=i["a"].options.methods.genTextFieldSlot.call(this);return t.data.on={...t.data.on||{},click:()=>this.$refs.input.click()},t},onInput(t){const e=[...t.target.files||[]];this.internalValue=this.isMultiple?e:e[0],this.initialValue=this.internalValue},onKeyDown(t){this.$emit("keydown",t)},truncateText(t){if(t.length<Number(this.truncateLength))return t;const e=Math.floor((Number(this.truncateLength)-1)/2);return`${t.slice(0,e)}…${t.slice(t.length-e)}`}}})},2677:function(t,e,s){"use strict";var i=s("8654");e["a"]=i["a"]},"2db4":function(t,e,s){"use strict";s("ca71");var i=s("8dd9"),n=s("a9ad"),a=s("7560"),r=s("f2e7"),o=s("fe6c"),l=s("58df"),c=s("80d2"),h=s("d9bd");e["a"]=Object(l["a"])(i["a"],n["a"],r["a"],Object(o["b"])(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:t=>"string"===typeof t||!1===t},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:a["a"].options.computed.isDark.call(this)},styles(){if(this.absolute)return{};const{bar:t,bottom:e,footer:s,insetFooter:i,left:n,right:a,top:r}=this.$vuetify.application;return{paddingBottom:Object(c["g"])(e+s+i),paddingLeft:this.app?Object(c["g"])(n):void 0,paddingRight:this.app?Object(c["g"])(a):void 0,paddingTop:Object(c["g"])(t+r)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&Object(h["e"])("auto-height",this),0==this.timeout&&Object(h["d"])('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[Object(c["r"])(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[Object(c["r"])(this)])},genWrapper(){const t=this.hasBackground?this.setBackgroundColor:this.setTextColor,e=t(this.color,{staticClass:"v-snack__wrapper",class:i["a"].options.computed.classes.call(this),directives:[{name:"show",value:this.isActive}]});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const t=Number(this.timeout);this.isActive&&![0,-1].includes(t)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},t))}},render(t){return t("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}})},3408:function(t,e,s){},3490:function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",[s("h2",[t._v("手机换绑")])])}]},"36a7":function(t,e,s){},"3ce3":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",{attrs:{"fill-height":""}},[s("v-tabs",[s("v-tab",{on:{click:function(e){return t.setType(0)}}},[t._v("基本信息")]),s("v-tab",{on:{click:function(e){return t.setType(1)}}},[t._v("头像设置")]),s("v-tab",{on:{click:function(e){return t.setType(2)}}},[t._v("首页背景")]),s("v-tab",{on:{click:function(e){return t.setType(3)}}},[t._v("密码修改")]),s("v-tab",{on:{click:function(e){return t.setType(4)}}},[t._v("手机修改")])],1),0===t.type?s("BaseSetting"):t._e(),1===t.type?s("HeadSetting"):t._e(),2===t.type?s("TopSetting"):t._e(),3===t.type?s("PasswordSetting"):t._e(),4===t.type?s("LoginLog"):t._e()],1)},n=[],a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{attrs:{justify:"center",align:"center"}},[s("v-col",[s("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("h2",[t._v("基本信息修改")])])],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-text-field",{attrs:{placeholder:"用户名",label:"用户名(25字以内)",clearable:"",rules:[function(){return null!=t.userInfo.username||"标题不能为空"}],disabled:t.usernameAlter},model:{value:t.userInfo.username,callback:function(e){t.$set(t.userInfo,"username",e)},expression:"userInfo.username"}})],1),s("v-col",{attrs:{cols:"2"}},[s("v-btn",{attrs:{color:"primary"},on:{click:function(e){t.usernameAlter=!t.usernameAlter}}},[t._v("修改")])],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"8"}},[s("v-textarea",{attrs:{label:"简介",clearable:"",placeholder:"填写个人简介,让更多人认识你!",disabled:t.introductionAlter},model:{value:t.userInfo.intro,callback:function(e){t.$set(t.userInfo,"intro",e)},expression:"userInfo.intro"}})],1),s("v-col",{attrs:{cols:"2"}},[s("v-btn",{attrs:{color:"primary"},on:{click:function(e){t.introductionAlter=!t.introductionAlter}}},[t._v("修改")])],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"2"}},[s("v-btn",{attrs:{color:"primary"},on:{click:t.save}},[t._v("保存")])],1),s("v-col",{attrs:{cols:"8"}},[t._v(" 说明: 点击保存后才会最终修改成功 ")])],1)],1)],1),s("v-snackbar",{attrs:{top:!0,timeout:3e3},scopedSlots:t._u([{key:"action",fn:function(e){var i=e.attrs;return[s("v-btn",t._b({attrs:{color:"pink",text:""},on:{click:function(e){t.showMessage=!1}}},"v-btn",i,!1),[t._v(" 关闭 ")])]}}]),model:{value:t.showMessage,callback:function(e){t.showMessage=e},expression:"showMessage"}},[t._v(" "+t._s(t.message)+" ")])],1)},r=[],o=(s("d3b7"),{name:"UserSetting",data:function(){return{userInfo:{username:""},usernameAlter:!0,introductionAlter:!0,message:"",showMessage:!1}},created:function(){this.userInfo=this.$store.state.user.userInfo},methods:{save:function(){var t=this;fetch("/api/user/update/info",{headers:{"Content-Type":"application/json; charset=UTF-8","X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:JSON.stringify(this.userInfo)}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.$store.commit("user/SET_USER_INFO",t.userInfo),t.message="修改成功",t.showMessage=!0):(t.message="修改失败!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))}}}),l=o,c=s("2877"),h=s("6544"),u=s.n(h),d=s("8336"),p=s("b0af"),f=s("62ad"),v=s("0fd9"),g=s("2db4"),m=s("8654"),b=s("a844"),y=Object(c["a"])(l,a,r,!1,null,null,null),w=y.exports;u()(y,{VBtn:d["a"],VCard:p["a"],VCol:f["a"],VRow:v["a"],VSnackbar:g["a"],VTextField:m["a"],VTextarea:b["a"]});var S=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{attrs:{justify:"center",align:"center"}},[s("v-col",[s("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("h2",[t._v("头像修改")])])],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-avatar",{attrs:{size:"100"}},[s("v-img",{attrs:{src:t.userInfo.avatarUrl}})],1)],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-file-input",{attrs:{rules:t.rules,accept:"image/png, image/jpeg, image/bmp",placeholder:"选择头像","prepend-icon":"mdi-camera",label:"头像"},on:{change:t.setFile}}),s("v-btn",{attrs:{color:"primary"},on:{click:t.uploadFile}},[t._v(" 上传 ")])],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-btn",{attrs:{color:"primary"},on:{click:t.save}},[t._v(" 保存 ")])],1)],1)],1)],1),s("v-snackbar",{attrs:{top:!0,timeout:3e3},scopedSlots:t._u([{key:"action",fn:function(e){var i=e.attrs;return[s("v-btn",t._b({attrs:{color:"pink",text:""},on:{click:function(e){t.showMessage=!1}}},"v-btn",i,!1),[t._v(" 关闭 ")])]}}]),model:{value:t.showMessage,callback:function(e){t.showMessage=e},expression:"showMessage"}},[t._v(" "+t._s(t.message)+" ")])],1)},x=[],$={name:"UserSetting",data:function(){return{userInfo:{username:""},files:[],rules:[function(t){return!t||t.size<2e6||"头像大小必须在2MB以内!"}],showMessage:!1,message:""}},created:function(){this.userInfo=this.$store.state.user.userInfo},methods:{setFile:function(t){this.files=[],this.files.push(t)},uploadFile:function(){var t=this;if(0===this.files.length)return this.message="请先选择图片,然后上传!",void(this.showMessage=!0);for(var e=new FormData,s=0;s<this.files.length;s++)e.append("file[]",this.files[s]);fetch("/api/upload/avatar",{headers:{"X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:e}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.userInfo.avatarUrl=e.data[0].fileUrl,t.message="上传成功,请点击保存,保存头像设置!",t.showMessage=!0):(t.message="上传失败,请重试!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))},save:function(){var t=this;fetch("/api/user/update/avatar",{headers:{"Content-Type":"application/json; charset=UTF-8","X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:JSON.stringify(this.userInfo)}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.$store.commit("user/SET_USER_INFO",t.userInfo),t.message="保存成功!",t.showMessage=!0):(t.message="保存失败!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))}}},k=$,C=s("8212"),_=s("23a7"),O=s("adda"),I=Object(c["a"])(k,S,x,!1,null,null,null),j=I.exports;u()(I,{VAvatar:C["a"],VBtn:d["a"],VCard:p["a"],VCol:f["a"],VFileInput:_["a"],VImg:O["a"],VRow:v["a"],VSnackbar:g["a"]});var B=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{attrs:{justify:"center",align:"center"}},[s("v-col",[s("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("h2",[t._v("首页顶部大图修改")])])],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-img",{attrs:{src:t.userInfo.backgroundUrl,"aspect-ratio":5.98}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-file-input",{attrs:{rules:t.rules,accept:"image/png, image/jpeg, image/bmp",placeholder:"选择图片","prepend-icon":"mdi-camera",label:"首页顶部大图"},on:{change:t.setFile}}),s("v-btn",{attrs:{color:"primary"},on:{click:t.uploadFile}},[t._v(" 上传 ")])],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-btn",{attrs:{color:"primary"},on:{click:t.save}},[t._v(" 保存 ")])],1)],1)],1)],1),s("v-snackbar",{attrs:{top:!0,timeout:3e3},scopedSlots:t._u([{key:"action",fn:function(e){var i=e.attrs;return[s("v-btn",t._b({attrs:{color:"pink",text:""},on:{click:function(e){t.showMessage=!1}}},"v-btn",i,!1),[t._v(" 关闭 ")])]}}]),model:{value:t.showMessage,callback:function(e){t.showMessage=e},expression:"showMessage"}},[t._v(" "+t._s(t.message)+" ")])],1)},T=[],V={name:"UserTopSetting",data:function(){return{userInfo:{username:""},files:[],rules:[function(t){return!t||t.size<2e6||"图片大小必须在2MB以内!"}],showMessage:!1,message:""}},created:function(){this.userInfo=this.$store.state.user.userInfo},methods:{setFile:function(t){this.files=[],this.files.push(t)},uploadFile:function(){var t=this;if(0===this.files.length)return this.message="请先选择图片,然后上传!",void(this.showMessage=!0);for(var e=new FormData,s=0;s<this.files.length;s++)e.append("file[]",this.files[s]);fetch("/api/upload/top",{headers:{"X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:e}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.userInfo.backgroundUrl=e.data[0].fileUrl,t.message="上传成功,请点击保存,保存设置!",t.showMessage=!0):(t.message="上传失败,请重试!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))},save:function(){var t=this;fetch("/api/user/update/top",{headers:{"Content-Type":"application/json; charset=UTF-8","X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:JSON.stringify(this.userInfo)}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.$store.commit("user/SET_USER_INFO",t.userInfo),t.message="保存成功!",t.showMessage=!0):(t.message="保存失败!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))}}},A=V,E=Object(c["a"])(A,B,T,!1,null,null,null),M=E.exports;u()(E,{VBtn:d["a"],VCard:p["a"],VCol:f["a"],VFileInput:_["a"],VImg:O["a"],VRow:v["a"],VSnackbar:g["a"]});var N=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-row",{attrs:{justify:"center",align:"center"}},[s("v-col",[s("v-card",{staticClass:"mx-auto",attrs:{outlined:""}},[s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("h2",[t._v("密码修改")])])],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{placeholder:"原始密码",label:"原始密码",clearable:"",type:"password",rules:[function(){return null!=t.passoword.oldPassword||"原始密码不能为空"}]},model:{value:t.passoword.oldPassword,callback:function(e){t.$set(t.passoword,"oldPassword",e)},expression:"passoword.oldPassword"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{placeholder:"新密码",label:"新密码",clearable:"",type:"password",rules:[function(){return null!=t.passoword.newPassword||"新密码不能为空"}]},model:{value:t.passoword.newPassword,callback:function(e){t.$set(t.passoword,"newPassword",e)},expression:"passoword.newPassword"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"10"}},[s("v-text-field",{attrs:{placeholder:"请再输入一遍",label:"请再输入一遍",clearable:"",type:"password",rules:[function(){return t.temp==t.passoword.newPassword||"两次密码不相同"}]},model:{value:t.temp,callback:function(e){t.temp=e},expression:"temp"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"5"}},[s("v-img",{staticStyle:{cursor:"pointer"},attrs:{src:t.captchaUrl,alt:"验证码",title:"点击刷新","max-width":"200"},on:{click:t.getCaptcha}})],1),s("v-col",{attrs:{cols:"5"}},[s("v-text-field",{attrs:{placeholder:"验证码",label:"验证码",rules:[function(){return null!=t.passoword.verifyCode||"验证码不能为空"}],clearable:""},model:{value:t.passoword.verifyCode,callback:function(e){t.$set(t.passoword,"verifyCode",e)},expression:"passoword.verifyCode"}})],1)],1),s("v-row",{attrs:{justify:"center"}},[s("v-col",{attrs:{cols:"2"}},[s("v-btn",{attrs:{color:"primary"},on:{click:t.save}},[t._v("保存")])],1),s("v-col",{attrs:{cols:"8"}},[t._v(" 说明: 修改密码后需要重新登录 ")])],1)],1)],1),s("v-snackbar",{attrs:{top:!0,timeout:3e3},scopedSlots:t._u([{key:"action",fn:function(e){var i=e.attrs;return[s("v-btn",t._b({attrs:{color:"pink",text:""},on:{click:function(e){t.showMessage=!1}}},"v-btn",i,!1),[t._v(" 关闭 ")])]}}]),model:{value:t.showMessage,callback:function(e){t.showMessage=e},expression:"showMessage"}},[t._v(" "+t._s(t.message)+" ")])],1)},z=[],R={name:"UserSetting",data:function(){return{passoword:{oldPassword:"",newPassword:"",verifyCode:""},temp:"",captchaUrl:"//api.reghao.cn/api/account/captcha",showMessage:!1,message:""}},created:function(){},methods:{getCaptcha:function(){this.captchaUrl="//api.reghao.cn/api/account/captcha?t="+(new Date).getTime()},save:function(){var t=this;""!==this.passoword.oldPassword&&""!==this.passoword.newPassword&&this.passoword.newPassword===this.temp&&""!==this.passoword.verifyCode&&fetch("/api/user/update/password",{headers:{"Content-Type":"application/json; charset=UTF-8","X-XSRF-TOKEN":this.$cookies.get("XSRF-TOKEN")},method:"POST",credentials:"include",body:JSON.stringify(this.passoword)}).then((function(t){return t.json()})).then((function(e){200===e.status?(t.message="修改成功,即将跳转,请重新登录!",t.showMessage=!0,t.$store.commit("user/SET_USER_INFO",null),t.$router.push("/login")):(t.message="修改失败!"+e.message,t.showMessage=!0)})).catch((function(t){return null}))}}},P=R,F=Object(c["a"])(P,N,z,!1,null,null,null),L=F.exports;u()(F,{VBtn:d["a"],VCard:p["a"],VCol:f["a"],VImg:O["a"],VRow:v["a"],VSnackbar:g["a"],VTextField:m["a"]});var X=s("c8c0"),D={name:"UserSetting",components:{BaseSetting:w,HeadSetting:j,TopSetting:M,PasswordSetting:L,LoginLog:X["default"]},data:function(){return{type:0}},created:function(){},methods:{setType:function(t){this.type=t}}},W=D,H=s("a523"),U=s("71a3"),G=s("fe57"),Y=Object(c["a"])(W,i,n,!1,null,null,null);e["default"]=Y.exports;u()(Y,{VContainer:H["a"],VTab:U["a"],VTabs:G["a"]})},5803:function(t,e,s){},"604c":function(t,e,s){"use strict";s.d(e,"a",(function(){return o}));s("166a");var i=s("a452"),n=s("7560"),a=s("58df"),r=s("d9bd");const o=Object(a["a"])(i["a"],n["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean},data(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((t,e)=>this.toggleMethod(this.getValue(t,e)))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return t=>this.internalValue===t;const t=this.internalValue;return Array.isArray(t)?e=>t.includes(e):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&Object(r["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(t,e){return null==t.value||""===t.value?e:t.value},onClick(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register(t){const e=this.items.push(t)-1;t.$on("change",()=>this.onClick(t)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,e)},unregister(t){if(this._isDestroyed)return;const e=this.items.indexOf(t),s=this.getValue(t,e);this.items.splice(e,1);const i=this.selectedValues.indexOf(s);if(!(i<0)){if(!this.mandatory)return this.updateInternalValue(s);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(t=>t!==s):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(t,e){const s=this.getValue(t,e);t.isActive=this.toggleMethod(s)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory(t){if(!this.items.length)return;const e=this.items.slice();t&&e.reverse();const s=e.find(t=>!t.disabled);if(!s)return;const i=this.items.indexOf(s);this.updateInternalValue(this.getValue(s,i))},updateMultiple(t){const e=Array.isArray(this.internalValue)?this.internalValue:[],s=e.slice(),i=s.findIndex(e=>e===t);this.mandatory&&i>-1&&s.length-1<1||null!=this.max&&i<0&&s.length+1>this.max||(i>-1?s.splice(i,1):s.push(t),this.internalValue=s)},updateSingle(t){const e=t===this.internalValue;this.mandatory&&e||(this.internalValue=e?void 0:t)}},render(t){return t("div",this.genData(),this.$slots.default)}});o.extend({name:"v-item-group",provide(){return{itemGroup:this}}})},"608c":function(t,e,s){},"615b":function(t,e,s){},"62ad":function(t,e,s){"use strict";s("4b85");var i=s("2b0e"),n=s("d9f7"),a=s("80d2");const r=["sm","md","lg","xl"],o=(()=>r.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),l=(()=>r.reduce((t,e)=>(t["offset"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),c=(()=>r.reduce((t,e)=>(t["order"+Object(a["E"])(e)]={type:[String,Number],default:null},t),{}))(),h={col:Object.keys(o),offset:Object.keys(l),order:Object.keys(c)};function u(t,e,s){let i=t;if(null!=s&&!1!==s){if(e){const s=e.replace(t,"");i+="-"+s}return"col"!==t||""!==s&&!0!==s?(i+="-"+s,i.toLowerCase()):i.toLowerCase()}}const d=new Map;e["a"]=i["default"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...l,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:t=>["auto","start","end","center","baseline","stretch"].includes(t)},tag:{type:String,default:"div"}},render(t,{props:e,data:s,children:i,parent:a}){let r="";for(const n in e)r+=String(e[n]);let o=d.get(r);if(!o){let t;for(t in o=[],h)h[t].forEach(s=>{const i=e[s],n=u(t,s,i);n&&o.push(n)});const s=o.some(t=>t.startsWith("col-"));o.push({col:!s||!e.cols,["col-"+e.cols]:e.cols,["offset-"+e.offset]:e.offset,["order-"+e.order]:e.order,["align-self-"+e.alignSelf]:e.alignSelf}),d.set(r,o)}return t(e.tag,Object(n["a"])(s,{class:o}),i)}})},"65b7":function(t,e){},"71a3":function(t,e,s){"use strict";var i=s("4e82"),n=s("1c87"),a=s("7560"),r=s("80d2"),o=s("58df");const l=Object(o["a"])(n["a"],Object(i["a"])("tabsBar"),a["a"]);e["a"]=l.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0}},data:()=>({proxyClass:"v-tab--active"}),computed:{classes(){return{"v-tab":!0,...n["a"].options.computed.classes.call(this),"v-tab--disabled":this.disabled,...this.groupClasses}},value(){let t=this.to||this.href||"";if(this.$router&&this.to===Object(this.to)){const e=this.$router.resolve(this.to,this.$route,this.append);t=e.href}return t.replace("#","")}},mounted(){this.onRouteChange()},methods:{click(t){this.href&&this.href.indexOf("#")>-1&&t.preventDefault(),t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.attrs={...s.attrs,"aria-selected":String(this.isActive),role:"tab",tabindex:0},s.on={...s.on,keydown:t=>{t.keyCode===r["x"].enter&&this.click(t),this.$emit("keydown",t)}},t(e,s,this.$slots.default)}})},8212:function(t,e,s){"use strict";s("3408");var i=s("a9ad"),n=s("24b2"),a=s("a236"),r=s("80d2"),o=s("58df");e["a"]=Object(o["a"])(i["a"],n["a"],a["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:Object(r["g"])(this.size),minWidth:Object(r["g"])(this.size),width:Object(r["g"])(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),this.$slots.default)}})},"8adc":function(t,e,s){},"8efc":function(t,e,s){},a844:function(t,e,s){"use strict";s("1681");var i=s("8654"),n=s("58df");const a=Object(n["a"])(i["a"]);e["a"]=a.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:t=>!isNaN(parseFloat(t))},rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseInt(t,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...i["a"].options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const t=this.$refs.input;if(!t)return;t.style.height="0";const e=t.scrollHeight,s=parseInt(this.rows,10)*parseFloat(this.rowHeight);t.style.height=Math.max(s,e)+"px"},genInput(){const t=i["a"].options.methods.genInput.call(this);return t.tag="textarea",delete t.data.attrs.type,t.data.attrs.rows=this.rows,t},onInput(t){i["a"].options.methods.onInput.call(this,t),this.autoGrow&&this.calculateInputHeight()},onKeyDown(t){this.isFocused&&13===t.keyCode&&t.stopPropagation(),this.$emit("keydown",t)}}})},adda:function(t,e,s){"use strict";s("8efc");var i=s("90a2"),n=(s("36a7"),s("24b2")),a=s("58df"),r=Object(a["a"])(n["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number]},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content"},this.$slots.default)}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),o=r,l=s("7560"),c=s("d9f7"),h=s("d9bd");const u="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(a["a"])(o,l["a"]).extend({name:"v-img",directives:{intersect:i["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const s=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[s]):s}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,s){if(!u||s||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(h["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,t.src=this.normalisedSrc.src,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const s=()=>{const{naturalHeight:i,naturalWidth:n}=t;i||n?(this.naturalWidth=n,this.calculatedAspectRatio=n/i):null!=e&&!this.hasError&&setTimeout(s,e)};s()},genContent(){const t=o.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){if(this.$slots.placeholder){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},this.$slots.placeholder)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(t){const e=o.options.render.call(this,t),s=Object(c["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:u?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,s,e.children)}})},afdd:function(t,e,s){"use strict";var i=s("8336");e["a"]=i["a"]},b0af:function(t,e,s){"use strict";s("615b");var i=s("10d2"),n=s("297c"),a=s("1c87"),r=s("58df");e["a"]=Object(r["a"])(n["a"],a["a"],i["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...a["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...i["a"].options.computed.classes.call(this)}},styles(){const t={...i["a"].options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.style=this.styles,this.isClickable&&(s.attrs=s.attrs||{},s.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,s),[this.genProgress(),this.$slots.default])}})},c3f0:function(t,e,s){"use strict";var i=s("80d2");const n=t=>{const{touchstartX:e,touchendX:s,touchstartY:i,touchendY:n}=t,a=.5,r=16;t.offsetX=s-e,t.offsetY=n-i,Math.abs(t.offsetY)<a*Math.abs(t.offsetX)&&(t.left&&s<e-r&&t.left(t),t.right&&s>e+r&&t.right(t)),Math.abs(t.offsetX)<a*Math.abs(t.offsetY)&&(t.up&&n<i-r&&t.up(t),t.down&&n>i+r&&t.down(t))};function a(t,e){const s=t.changedTouches[0];e.touchstartX=s.clientX,e.touchstartY=s.clientY,e.start&&e.start(Object.assign(t,e))}function r(t,e){const s=t.changedTouches[0];e.touchendX=s.clientX,e.touchendY=s.clientY,e.end&&e.end(Object.assign(t,e)),n(e)}function o(t,e){const s=t.changedTouches[0];e.touchmoveX=s.clientX,e.touchmoveY=s.clientY,e.move&&e.move(Object.assign(t,e))}function l(t){const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:t=>a(t,e),touchend:t=>r(t,e),touchmove:t=>o(t,e)}}function c(t,e,s){const n=e.value,a=n.parent?t.parentElement:t,r=n.options||{passive:!0};if(!a)return;const o=l(e.value);a._touchHandlers=Object(a._touchHandlers),a._touchHandlers[s.context._uid]=o,Object(i["y"])(o).forEach(t=>{a.addEventListener(t,o[t],r)})}function h(t,e,s){const n=e.value.parent?t.parentElement:t;if(!n||!n._touchHandlers)return;const a=n._touchHandlers[s.context._uid];Object(i["y"])(a).forEach(t=>{n.removeEventListener(t,a[t])}),delete n._touchHandlers[s.context._uid]}const u={inserted:c,unbind:h};e["a"]=u},c8c0:function(t,e,s){"use strict";var i=s("3490"),n=s("f3b4"),a=s("2877"),r=Object(a["a"])(n["default"],i["a"],i["b"],!1,null,null,null);e["default"]=r.exports},ca71:function(t,e,s){},cc20:function(t,e,s){"use strict";s("8adc");var i=s("58df"),n=s("0789"),a=s("9d26"),r=s("a9ad"),o=s("4e82"),l=s("7560"),c=s("f2e7"),h=s("1c87"),u=s("af2b"),d=s("d9bd");e["a"]=Object(i["a"])(r["a"],u["a"],h["a"],l["a"],Object(o["a"])("chipGroup"),Object(c["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...h["a"].options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(h["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(d["a"])(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(a["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(n["b"],t)},genClose(){return this.$createElement(a["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),this.$slots.default,this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:s,data:i}=this.generateRouteLink();i.attrs={...i.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:i.attrs.tabindex},i.directives.push({name:"show",value:this.active}),i=this.setBackgroundColor(this.color,i);const n=this.textColor||this.outlined&&this.color;return t(s,this.setTextColor(n,i),e)}})},d10f:function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["default"].extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame(()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0})}})},e4cd:function(t,e,s){"use strict";var i=s("d9bd"),n=s("2b0e");e["a"]=n["default"].extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:t=>!isNaN(Number(t))||["xs","sm","md","lg","xl"].includes(String(t))}},computed:{isMobile(){const{mobile:t,width:e,name:s,mobileBreakpoint:i}=this.$vuetify.breakpoint;if(i===this.mobileBreakpoint)return t;const n=parseInt(this.mobileBreakpoint,10),a=!isNaN(n);return a?e<n:s===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&Object(i["d"])("mobile-break-point","mobile-breakpoint",this)}})},f3b4:function(t,e,s){"use strict";var i=s("65b7"),n=s.n(i);e["default"]=n.a},fe57:function(t,e,s){"use strict";s("1bfb"),s("608c");var i=s("9d26"),n=s("0789"),a=s("604c"),r=s("e4cd"),o=s("dc22"),l=s("c3f0"),c=s("58df");const h=Object(c["a"])(a["a"],r["a"]).extend({name:"base-slide-group",directives:{Resize:o["a"],Touch:l["a"]},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>"boolean"===typeof t||["always","desktop","mobile"].includes(t)}},data:()=>({internalItemsLength:0,isOverflowing:!1,resizeTimeout:0,startX:0,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...a["a"].options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing;case"mobile":return this.isMobile||this.isOverflowing;default:return!this.isMobile&&this.isOverflowing}},hasNext(){if(!this.hasAffixes)return!1;const{content:t,wrapper:e}=this.widths;return t>Math.abs(this.scrollOffset)+e},hasPrev(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(t){this.$refs.content.style.transform=`translateX(${-t}px)`}},beforeUpdate(){this.internalItemsLength=(this.$children||[]).length},updated(){this.internalItemsLength!==(this.$children||[]).length&&this.setWidths()},methods:{genNext(){const t=this.$scopedSlots.next?this.$scopedSlots.next({}):this.$slots.next||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[t])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content"},this.$slots.default)},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(t){let e=t;this.$vuetify.rtl&&"prev"===t?e="next":this.$vuetify.rtl&&"next"===t&&(e="prev");const s=`${t[0].toUpperCase()}${t.slice(1)}`,n=this["has"+s];return this.showArrows||n?this.$createElement(i["a"],{props:{disabled:!n}},this[e+"Icon"]):null},genPrev(){const t=this.$scopedSlots.prev?this.$scopedSlots.prev({}):this.$slots.prev||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[t])},genTransition(t){return this.$createElement(n["d"],[this.genIcon(t)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:t=>this.overflowCheck(t,this.onTouchStart),move:t=>this.overflowCheck(t,this.onTouchMove),end:t=>this.overflowCheck(t,this.onTouchEnd)}}],ref:"wrapper"},[this.genContent()])},calculateNewOffset(t,e,s,i){const n=s?-1:1,a=n*i+("prev"===t?-1:1)*e.wrapper;return n*Math.max(Math.min(a,e.content-e.wrapper),0)},onAffixClick(t){this.$emit("click:"+t),this.scrollTo(t)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(t){const{content:e}=this.$refs;this.startX=this.scrollOffset+t.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove(t){this.scrollOffset=this.startX-t.touchmoveX},onTouchEnd(){const{content:t,wrapper:e}=this.$refs,s=t.clientWidth-e.clientWidth;t.style.setProperty("transition",null),t.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-s&&(this.scrollOffset=-s):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=s&&(this.scrollOffset=s)},overflowCheck(t,e){t.stopPropagation(),this.isOverflowing&&e(t)},scrollIntoView(){this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=this.calculateCenteredOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=this.calculateUpdatedOffset(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},calculateUpdatedOffset(t,e,s,i){const n=t.clientWidth,a=s?e.content-t.offsetLeft-n:t.offsetLeft;s&&(i=-i);const r=e.wrapper+i,o=n+a,l=.4*n;return a<=i?i=Math.max(a-l,0):r<=o&&(i=Math.min(i-(r-o-l),e.content-e.wrapper)),s?-i:i},calculateCenteredOffset(t,e,s){const{offsetLeft:i,clientWidth:n}=t;if(s){const t=e.content-i-n/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,t))}{const t=i+n/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,t))}},scrollTo(t){this.scrollOffset=this.calculateNewOffset(t,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{const{content:t,wrapper:e}=this.$refs;this.widths={content:t?t.clientWidth:0,wrapper:e?e.clientWidth:0},this.isOverflowing=this.widths.wrapper<this.widths.content,this.scrollIntoView()})}},render(t){return t("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});h.extend({name:"v-slide-group",provide(){return{slideGroup:this}}});var u=s("7560"),d=s("d10f"),p=Object(c["a"])(h,d["a"],u["a"]).extend({name:"v-tabs-bar",provide(){return{tabsBar:this}},computed:{classes(){return{...h.options.computed.classes.call(this),"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows,...this.themeClasses}}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider(){this.isBooted&&this.$emit("call:slider")},genContent(){const t=h.options.methods.genContent.call(this);return t.data=t.data||{},t.data.staticClass+=" v-tabs-bar__content",t},onRouteChange(t,e){if(this.mandatory)return;const s=this.items,i=t.path,n=e.path;let a=!1,r=!1;for(const o of s)if(o.to===i?a=!0:o.to===n&&(r=!0),a&&r)break;!a&&r&&(this.internalValue=void 0)}},render(t){const e=h.options.render.call(this,t);return e.data.attrs={role:"tablist"},e}}),f=(s("13b3"),s("afdd")),v=a["a"].extend({name:"v-window",provide(){return{windowGroup:this}},directives:{Touch:l["a"]},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:{type:Boolean,default:void 0},showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive(){return this.transitionCount>0},classes(){return{...a["a"].options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const t=this.vertical?"y":"x",e=this.$vuetify.rtl&&"x"===t?!this.internalReverse:this.internalReverse,s=e?"-reverse":"";return`v-window-${t}${s}-transition`},hasActiveItems(){return Boolean(this.items.find(t=>!t.disabled))},hasNext(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev(){return this.continuous||this.internalIndex>0},internalIndex(){return this.items.findIndex((t,e)=>this.internalValue===this.getValue(t,e))},internalReverse(){return this.reverse?!this.isReverse:this.isReverse}},watch:{internalIndex:"updateReverse"},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genContainer(){const t=[this.$slots.default];return this.showArrows&&t.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},t)},genIcon(t,e,s){return this.$createElement("div",{staticClass:"v-window__"+t},[this.$createElement(f["a"],{props:{icon:!0},attrs:{"aria-label":this.$vuetify.lang.t("$vuetify.carousel."+t)},on:{click:()=>{this.changedByDelimiters=!0,s()}}},[this.$createElement(i["a"],{props:{large:!0}},e)])])},genControlIcons(){const t=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&"string"===typeof e){const s=this.genIcon("prev",e,this.prev);s&&t.push(s)}const s=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&s&&"string"===typeof s){const e=this.genIcon("next",s,this.next);e&&t.push(e)}return t},getNextIndex(t){const e=(t+1)%this.items.length,s=this.items[e];return s.disabled?this.getNextIndex(e):e},getPrevIndex(t){const e=(t+this.items.length-1)%this.items.length,s=this.items[e];return s.disabled?this.getPrevIndex(e):e},next(){if(this.isReverse=this.$vuetify.rtl,!this.hasActiveItems||!this.hasNext)return;const t=this.getNextIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},prev(){if(this.isReverse=!this.$vuetify.rtl,!this.hasActiveItems||!this.hasPrev)return;const t=this.getPrevIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},updateReverse(t,e){this.changedByDelimiters?this.changedByDelimiters=!1:this.isReverse=t<e}},render(t){const e={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){const t=this.touch||{left:()=>{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:t=>{t.stopPropagation()},start:t=>{t.stopPropagation()}};e.directives.push({name:"touch",value:t})}return t("div",e,[this.genContainer()])}}),g=v.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes(){return{...v.options.computed.classes.call(this),"v-tabs-items":!0}},isDark(){return this.rootIsDark}},methods:{getValue(t,e){return t.id||a["a"].options.methods.getValue.call(this,t,e)}}}),m=s("a9ad"),b=Object(c["a"])(m["a"]).extend({name:"v-tabs-slider",render(t){return t("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),y=s("a452"),w=s("80d2");const S=Object(c["a"])(m["a"],y["a"],u["a"]);e["a"]=S.extend().extend({name:"v-tabs",directives:{Resize:o["a"]},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes(){return{"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical,...this.themeClasses}},isReversed(){return this.$vuetify.rtl&&this.vertical},sliderStyles(){return{height:Object(w["g"])(this.slider.height),left:this.isReversed?void 0:Object(w["g"])(this.slider.left),right:this.isReversed?Object(w["g"])(this.slider.right):void 0,top:this.vertical?Object(w["g"])(this.slider.top):void 0,transition:null!=this.slider.left?null:"none",width:Object(w["g"])(this.slider.width)}},computedColor(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted(){this.$nextTick(()=>{window.setTimeout(this.callSlider,30)})},methods:{callSlider(){return!this.hideSlider&&this.$refs.items&&this.$refs.items.selectedItems.length?(this.$nextTick(()=>{const t=this.$refs.items.selectedItems[0];if(!t||!t.$el)return this.slider.width=0,void(this.slider.left=0);const e=t.$el;this.slider={height:this.vertical?e.scrollHeight:Number(this.sliderSize),left:this.vertical?0:e.offsetLeft,right:this.vertical?0:e.offsetLeft+e.offsetWidth,top:e.offsetTop,width:this.vertical?Number(this.sliderSize):e.scrollWidth}}),!0):(this.slider.width=0,!1)},genBar(t,e){const s={style:{height:Object(w["g"])(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:t=>{this.internalValue=t}},ref:"items"};return this.setTextColor(this.computedColor,s),this.setBackgroundColor(this.backgroundColor,s),this.$createElement(p,s,[this.genSlider(e),t])},genItems(t,e){return t||(e.length?this.$createElement(g,{props:{value:this.internalValue},on:{change:t=>{this.internalValue=t}}},e):null)},genSlider(t){return this.hideSlider?null:(t||(t=this.$createElement(b,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[t]))},onResize(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes(){let t=null,e=null;const s=[],i=[],n=this.$slots.default||[],a=n.length;for(let r=0;r<a;r++){const a=n[r];if(a.componentOptions)switch(a.componentOptions.Ctor.options.name){case"v-tabs-slider":e=a;break;case"v-tabs-items":t=a;break;case"v-tab-item":s.push(a);break;default:i.push(a)}else i.push(a)}return{tab:i,slider:e,items:t,item:s}}},render(t){const{tab:e,slider:s,items:i,item:n}=this.parseNodes();return t("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(e,s),this.genItems(i,n)])}})}}]);
|