(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b166f"],{2061:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-app",{attrs:{id:"inspire"}},[o("v-main",[o("v-container",{staticClass:"fill-height",attrs:{fluid:""}},[o("v-row",{attrs:{align:"center",justify:"center"}},[o("v-col",{attrs:{cols:"12",sm:"8",md:"6",lg:"4"}},[o("v-card",{staticClass:"elevation-12 "},[o("v-toolbar",{attrs:{color:"indigo",dark:"",flat:""}},[o("v-toolbar-title",[e._v(e._s(e.$ml.get("memberJoinTitle")))])],1),!e.token||e.timeout?o("v-card-text",[e._v(" "+e._s(e.$ml.get("memberJoinTokenTimeout"))+" ")]):o("v-form",{ref:"form",attrs:{"lazy-validation":!0},model:{value:e.valid,callback:function(t){e.valid=t},expression:"valid"}},[o("v-card-text",[o("v-text-field",{attrs:{rules:[e.rules.required],name:"name",label:e.$ml.get("formUserNameLabel")},model:{value:e.obj.name,callback:function(t){e.$set(e.obj,"name",t)},expression:"obj.name"}}),o("v-text-field",{attrs:{"append-icon":e.show1?"mdi-eye":"mdi-eye-off",rules:[e.rules.required,e.rules.min],type:e.show1?"text":"password",name:"pass-1",label:e.$ml.get("formPasswordLabel")},on:{"click:append":function(t){e.show1=!e.show1}},model:{value:e.obj.password,callback:function(t){e.$set(e.obj,"password",t)},expression:"obj.password"}}),o("v-text-field",{attrs:{"append-icon":e.show2?"mdi-eye":"mdi-eye-off",rules:[e.rules.required,e.rules.repeat],type:e.show2?"text":"password",name:"pass-2",label:e.$ml.get("formPassword2Label")},on:{"click:append":function(t){e.show2=!e.show2}},model:{value:e.obj.password2,callback:function(t){e.$set(e.obj,"password2",t)},expression:"obj.password2"}})],1),o("v-card-actions",[o("v-spacer"),o("v-btn",{staticStyle:{color:"white"},attrs:{type:"submit",color:"indigo",loading:e.loading,disabled:!e.valid||e.loading},on:{submit:function(t){return t.preventDefault(),e.onSubmit(t)},click:function(t){return t.preventDefault(),e.onSubmit(t)}}},[e._v(e._s(e.$ml.get("formSubmitButton"))+" ")])],1)],1)],1)],1)],1)],1)],1)],1)},r=[],s=(o("b0c0"),o("2ef0")),n=o.n(s),i=o("3eeb"),l=o("d6dd"),d={name:"MemberJoin",data:function(){var e=this;return{token:"",obj:{name:"",password:"",password2:""},jwtInfo:{},timeout:!1,show1:!1,show2:!1,valid:!1,rules:{required:function(t){return!!t||e.$ml.get("formRuleRequired")},min:function(t){return t.length>=8||e.$ml.get("formRulePassMin")},repeat:function(t){return t===e.obj.password||e.$ml.get("resetPasswordPassRepeatErr")}}}},computed:{loading:function(){return!1}},mounted:function(){if(this.token=this.$router.currentRoute.query.token,this.token){this.jwtInfo=Object(l["a"])(this.token);var e=(new Date).getTime()/1e3;this.timeout=e>this.jwtInfo.exp}},methods:{onSubmit:function(){var e=this;if(this.$refs.form.validate()){var t={name:this.obj.name,password:this.obj.password,token:this.token};i["a"].joinMember(this.$router.currentRoute.params.orgId,t).then((function(){e.$message.success(e.$ml.get("memberJoinSuccessMsg")),e.$router.push("/login")})).catch((function(t){var o=n.a.get(t,"response.data.detail");o?e.$message.error(o):e.$message.error(e.$ml.get("memberJoinErrorMsg"))}))}}}},u=d,c=o("2877"),m=o("6544"),f=o.n(m),p=o("7496"),b=o("8336"),v=o("b0af"),w=o("99d9"),h=o("62ad"),g=o("a523"),$=o("4bd4"),j=o("f6c4"),k=o("0fd9"),x=o("2fa4"),V=o("8654"),y=o("71d9"),T=o("2a7f"),_=Object(c["a"])(u,a,r,!1,null,"4729389c",null);t["default"]=_.exports;f()(_,{VApp:p["a"],VBtn:b["a"],VCard:v["a"],VCardActions:w["a"],VCardText:w["c"],VCol:h["a"],VContainer:g["a"],VForm:$["a"],VMain:j["a"],VRow:k["a"],VSpacer:x["a"],VTextField:V["a"],VToolbar:y["a"],VToolbarTitle:T["a"]})}}]); //# sourceMappingURL=chunk-2d0b166f.36f140c7.js.map