(self.webpackChunkInstiKit=self.webpackChunkInstiKit||[]).push([[5404],{67304:(t,e,s)=>{"use strict";s.d(e,{Z:()=>o});const r={methods:{getConfig:function(t){return helper.getConfig(t)}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("p",{staticClass:"text-center"},[s("small",[t._v("Designed with ❤️ by "),s("a",{attrs:{href:"https://scriptmint.com",target:"_blank"}},[t._v("ScriptMint")]),t._v(" "+t._s(t.trans("general.version")+" "+t.getConfig("v")))])])])}),[],!1,null,null,null).exports},13133:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});const r={components:{guestFooter:s(67304).Z},data:function(){return{lockScreenForm:new Form({password:""})}},mounted:function(){helper.getConfig("lock_screen")&&helper.isScreenLocked()||this.$router.push("/dashboard"),helper.getConfig("mode")||(this.lockScreenForm.password="abcd1234")},methods:{logout:function(){var t=this;helper.logout().then((function(){t.$router.push("/login")}))},submit:function(){var t=this,e=this.$loading.show();this.lockScreenForm.post("/api/auth/lock").then((function(s){t.$store.dispatch("setLastActivity"),toastr.success(s.message),e.hide(),t.$router.push("/dashboard")})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getAuthUser:function(t){return helper.getAuthUser(t)}},computed:{getLogo:function(){return helper.getLogo()}}};const o=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{attrs:{id:"wrapper"}},[s("div",{staticClass:"login-register guest-page"},[s("div",{staticClass:"login-box card guest-box"},[s("div",{staticClass:"card-body p-4"},[s("img",{staticClass:"mx-auto d-block",staticStyle:{"max-width":"250px"},attrs:{src:t.getLogo}}),t._v(" "),s("center",{staticClass:"m-t-30"},[s("h4",{staticClass:"card-title m-t-10"},[t._v(t._s(t.getAuthUser("name")))])]),t._v(" "),s("form",{staticClass:"form-horizontal form-material",attrs:{id:"lockScreenForm"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)},keydown:function(e){return t.lockScreenForm.errors.clear(e.target.name)}}},[s("h3",{staticClass:"box-title m-b-20 text-center"},[t._v(t._s(t.trans("auth.password")))]),t._v(" "),s("div",{staticClass:"form-group "},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.lockScreenForm.password,expression:"lockScreenForm.password"}],staticClass:"form-control text-center",attrs:{type:"password",name:"password",placeholder:t.trans("auth.password")},domProps:{value:t.lockScreenForm.password},on:{input:function(e){e.target.composing||t.$set(t.lockScreenForm,"password",e.target.value)}}}),t._v(" "),s("show-error",{attrs:{"form-name":t.lockScreenForm,"prop-name":"password"}})],1),t._v(" "),s("div",{staticClass:"form-group text-center m-t-20"},[s("button",{staticClass:"btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light",attrs:{type:"submit"}},[t._v(t._s(t.trans("auth.confirm")))])]),t._v(" "),s("div",{staticClass:"form-group m-b-0"},[s("div",{staticClass:"col-sm-12 text-center"},[s("p",[s("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.logout.apply(null,arguments)}}},[s("i",{staticClass:"fas fa-power-off"}),t._v(" "+t._s(t.trans("auth.logout")))])])])])])],1),t._v(" "),s("guest-footer")],1)])])}),[],!1,null,null,null).exports}}]);
//# sourceMappingURL=lock.js.map?id=da5835dd079bcc6f74b6