text: "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[113],{4113:(s,e,r)=>{r.r(e),r.d(e,{default:()=>a});const t={data:function(){return{valid:!0,password:"",passwordRules:[function(s){return!!s||"Name is required"}]}},methods:{validate:function(){var s=this;this.$refs.form.validate()&&axios.patch("/api/couriers/"+this.$route.params.id,{password:this.password}).then((function(e){s.$store.dispatch("showAlert",{isVisible:!0,msg:e.data.message,color:e.data.status?"green":"error",type:e.data.status?"success":"error"}),s.$router.push("/couriers")})).catch((function(e){s.$store.commit("SET_ALERT",{isVisible:!0,msg:e.message,color:"error",type:"error"})}))}}};const a=(0,r(1900).Z)(t,(function(){var s=this,e=s.$createElement,r=s._self._c||e;return r("v-form",{ref:"form",attrs:{"lazy-validation":""},model:{value:s.valid,callback:function(e){s.valid=e},expression:"valid"}},[r("v-text-field",{attrs:{counter:10,rules:s.passwordRules,label:"Пароль",required:""},model:{value:s.password,callback:function(e){s.password=e},expression:"password"}}),s._v(" "),r("v-btn",{staticClass:"mt-4",attrs:{disabled:!s.valid,color:"success"},on:{click:s.validate}},[s._v("\n        Сохранить\n    ")])],1)}),[],!1,null,null,null).exports}}]);