"use strict";(self["webpackChunklinshare_ui_upload_request"]=self["webpackChunklinshare_ui_upload_request"]||[]).push([[607],{7607:function(s,t,e){e.r(t),e.d(t,{default:function(){return g}});var r=e(7314),a=e(1484),i=e(2938),o=e(174),n=e(9549),d=function(){var s=this,t=s._self._c;return t("div",[t("theHeader"),t("div",{staticClass:"password-page"},[t("div",{staticClass:"password-page-first-background"}),t("div",{staticClass:"password-page-content"},[t(a.A,{staticClass:"password-page__card-container",attrs:{elevation:"2"}},[t(o.A,{ref:"form",on:{submit:s.submitPassword}},[t(i.ri,[s._v(s._s(s.$t("PASSWORD.TITLE")))]),t("div",{staticClass:"password-page__input-container"},[t(n.A,{attrs:{"append-icon":s.showPassword?"mdi-eye":"mdi-eye-off",rules:[s.rules.required],type:s.showPassword?"text":"password",error:!!s.errorMessage,"error-messages":s.$t(s.errorMessage),autofocus:"",name:"input-password",label:s.$t("PASSWORD.ENTER_PASSWORD")},on:{"click:append":function(t){s.showPassword=!s.showPassword},change:function(t){s.errorMessage=""},click:function(t){s.errorMessage=""}},scopedSlots:s._u([{key:"message",fn:function({message:t}){return[s._v(" "+s._s(s.$t(t))+" ")]}}]),model:{value:s.password,callback:function(t){s.password=t},expression:"password"}})],1),t(i.SL,{staticClass:"password-page__action-container"},[t(r.A,{attrs:{color:"#1976D2",text:"",type:"submit"}},[s._v(" "+s._s(s.$t("PASSWORD.CONFIRM"))+" ")])],1)],1)],1)],1)]),t("theFooter"),t("AppAlert")],1)},u=[],h=(e(4114),e(4518)),l=e(7848),c=e(2457),p=e(4993),_=e(4946),w={name:"CreatePassword",components:{theHeader:h.A,theFooter:l.A},data(){return{password:"",errorMessage:"",showPassword:!1,rules:{required:s=>(0,p.gx)(s)||"MESSAGE.REQUIRED"}}},methods:{async submitPassword(s){s.preventDefault();const t=this.$route.params.id;if(this.$refs.form.validate()){const s=await c.Iv.checkPasswordError(t,this.password);s?this.errorMessage="MESSAGE.INCORRECT_PASSWORD":(this.$store.dispatch("setPassword",this.password),_.A.push({name:"home",params:{id:t}}))}}}},f=w,m=e(1656),v=(0,m.A)(f,d,u,!1,null,"1e4f8cdc",null),g=v.exports},2938:function(s,t,e){var r=e(4152);const a=(0,r.Gn)("v-card__actions"),i=(0,r.Gn)("v-card__subtitle"),o=((0,r.Gn)("v-card__text"),(0,r.Gn)("v-card__title"));e.d(t,["SL",0,a,"ZR",0,i,"ri",0,o])},174:function(s,t,e){e(4423),e(4114),e(8992),e(4520),e(2577),e(3949);var r=e(5803),a=e(7717),i=e(7540),o=e(4152);t.A=(0,r.A)(a.A,(0,i.G)("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(s){const t=Object.values(s).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput(s){const t=s=>s.$watch("hasError",t=>{this.$set(this.errorBag,s._uid,t)},{immediate:!0}),e={_uid:s._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?e.shouldValidate=s.$watch("shouldValidate",r=>{r&&(this.errorBag.hasOwnProperty(s._uid)||(e.valid=t(s)))}):e.valid=t(s),e},validate(){return 0===this.inputs.filter(s=>!s.validate(!0)).length},reset(){this.inputs.forEach(s=>s.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(s=>s.resetValidation()),this.resetErrorBag()},register(s){this.inputs.push(s),this.watchers.push(this.watchInput(s))},unregister(s){const t=this.inputs.find(t=>t._uid===s._uid);if(!t)return;const e=this.watchers.find(s=>s._uid===t._uid);e&&(e.valid(),e.shouldValidate()),this.watchers=this.watchers.filter(s=>s._uid!==t._uid),this.inputs=this.inputs.filter(s=>s._uid!==t._uid),this.$delete(this.errorBag,t._uid)}},render(s){return s("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:s=>this.$emit("submit",s)}},(0,o.$c)(this))}})}}]);
//# sourceMappingURL=607.8bde1935.js.map