text: (window.webpackJsonp=window.webpackJsonp||[]).push([[134,223],{1179:function(t,o,s){"use strict";s.r(o);var r=s(2),e=s.n(r),a=s(0);s(62);e.a.component(a.HasError.name,a.HasError);var n={created:function(){this.$store.dispatch("general_setting")},data:function(){return{form:new a.Form({phone:""})}},methods:{submit:function(){var t=this;this.form.post("/api/merchant/new/password/set/"+this.$route.params.phone).then((function(o){console.log(o),"SUCCESS"==o.data.status?(t.$toasted.show(o.data.message,{type:"success",position:"top-center",duration:2e3}),t.$router.push({name:"merchant_login"})):t.$toasted.show(o.data.message,{type:"error",position:"top-center",duration:3e3})})).catch((function(o){console.log(o),t.$toasted.show("some thing want to wrong",{type:"error",position:"top-center",duration:2e3})}))}},computed:{general_setting:function(){return this.$store.getters.general_setting}}};document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementsByClassName("main-sidebar")[0],o=document.getElementsByClassName("main-footer")[0];"http://127.0.0.1:8000/merchant/backend/login"==window.location.href&&(t.classList.add("none"),o.classList.add("none"))}));var i=n,l=(s(593),s(1)),c=Object(l.a)(i,(function(){var t=this,o=t.$createElement,s=t._self._c||o;return s("div",[s("div",{staticClass:"container"},[s("div",{staticClass:"text-center"},[s("h2",{staticClass:"logo_mohasagor"},[s("a",[s("b",{staticStyle:{color:"#000"}},[t._v(" "+t._s(t.general_setting.title)+" ")])])])]),t._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4 col-sm-12"}),t._v(" "),s("div",{staticClass:"col-md-4 col-sm-12 form_column bg-white"},[s("div",{staticClass:"form-wrapper "},[s("h3",{staticStyle:{"padding-top":"10px","text-align":"center"}},[t._v("\n              Update Password\n           ")]),t._v(" "),s("form",{on:{submit:function(o){return o.preventDefault(),t.submit(o)}}},[s("div",{staticClass:"form-grop"},[s("label",{staticClass:"control-label",attrs:{for:"input-email"}},[t._v("New Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("password")},attrs:{type:"password",name:"password",placeholder:"xxxxx",autocomplete:"off",autofocus:""},domProps:{value:t.form.password},on:{input:function(o){o.target.composing||t.$set(t.form,"password",o.target.value)}}}),t._v(" "),s("has-error",{attrs:{form:t.form,field:"password"}})],1),t._v(" "),s("br"),t._v(" "),s("div",{staticClass:"form-group"},[s("button",{staticClass:"btn btn-block btn-primary",attrs:{disabled:t.form.busy,type:"submit"}},[t.form.busy?s("i",{staticClass:"fa fa-spinner fa-spin"}):t._e(),t._v("Update Password\n               ")])])])])]),t._v(" "),s("div",{staticClass:"col-md-4 col-sm-12"})])])])}),[],!1,null,null,null);o.default=c.exports},125:function(t,o,s){var r=s(594);"string"==typeof r&&(r=[[t.i,r,""]]);var e={hmr:!0,transform:void 0,insertInto:void 0};s(5)(r,e);r.locals&&(t.exports=r.locals)},593:function(t,o,s){"use strict";var r=s(125);s.n(r).a},594:function(t,o,s){(t.exports=s(4)(!1)).push([t.i,"\n.none {\r\n  display: none !important;\n}\n.form-wrapper {\r\n\r\n    margin: 0px 10px;\n}\n.form_column{\r\n     margin-bottom: 20px;\r\n     box-shadow: 1px 1px 5px 1px #2e2e2e;\n}\n.btn_group{\r\n    margin-bottom: 16px;\r\n    margin-top: 10px;\n}\n.logo_mohasagor{\r\n  margin-top: 50px;\r\n  margin-bottom: 5px !important;\n}\n.btn_register{\r\n  background:#00acd6;\r\n  color:#fff;\n}\r\n",""])},62:function(t,o,s){"use strict";s.r(o);var r=s(12),e=s.n(r),a=(s(21),s(0)),n={created:function(){},data:function(){return{form:new a.Form({mobile_no:"",password:""}),pre_route:null,isLoading:!0,fullPage:!0}},methods:{login:function(){var t=this;this.form.post("/_public/userToLogin").then((function(o){"SUCCESS"==o.data.status?(localStorage.setItem("user_token",o.data.token),t.$store.dispatch("user"),t.$router.push({name:"Chekout"}),t.$toasted.show(o.data.message,{type:"success",position:"top-center",duration:2e3})):t.$toasted.show("Your given credintial don not match our records",{type:"error",position:"top-center",duration:2e3})})).catch((function(o){console.log(o),t.$toasted.show("some thing went to wrong",{type:"error",position:"top-center",duration:2e3})}))}},beforeRouteEnter:function(t,o,s){s((function(t){console.log(),t.pre_route=o.name}))},components:{Loading:e.a,HasError:a.HasError}},i=s(1),l=Object(i.a)(n,(function(){var t=this,o=t.$createElement,s=t._self._c||o;return s("div",{staticClass:"wrapper-wide"},[s("div",[s("frontend-header"),t._v(" "),s("div",{attrs:{id:"container"}},[s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-3"}),t._v(" "),s("div",{staticClass:"col-sm-10 col-lg-5",attrs:{id:"content"}},[s("div",{staticClass:"custom-box",staticStyle:{height:"auto"}},[s("h2",{staticClass:"title"},[t._v("welcome back")]),t._v(" "),s("br"),t._v(" "),s("form",{on:{submit:function(o){return o.preventDefault(),t.login(o)}}},[s("div",{staticClass:"form-group"},[s("label",{staticClass:"control-label",attrs:{for:"input-email"}},[t._v("Mobile Number")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.mobile_no,expression:"form.mobile_no"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("mobile_no")},attrs:{type:"text",name:"mobile_no",placeholder:"01xxx-xxxxx",autocomplete:"off",maxlength:"11",autofocus:""},domProps:{value:t.form.mobile_no},on:{input:function(o){o.target.composing||t.$set(t.form,"mobile_no",o.target.value)}}}),t._v(" "),s("has-error",{attrs:{form:t.form,field:"mobile_no"}})],1),t._v(" "),s("div",{staticClass:"form-group"},[s("label",{staticClass:"control-label",attrs:{for:"input-password"}},[t._v("Password")]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"form-control",class:{"is-invalid":t.form.errors.has("password")},attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:t.form.password},on:{input:function(o){o.target.composing||t.$set(t.form,"password",o.target.value)}}}),t._v(" "),s("has-error",{attrs:{form:t.form,field:"password"}}),t._v(" "),s("br"),t._v(" "),s("router-link",{attrs:{to:{name:"UserPasswordReset"}}},[t._v("Forgotten Password")])],1),t._v(" "),s("button",{staticClass:"btn btn-block btn-primary",attrs:{disabled:t.form.busy,type:"submit"}},[t.form.busy?s("i",{staticClass:"fa fa-spinner fa-spin"}):t._e(),t._v("LOGIN\n              ")])]),t._v(" "),s("br"),t._v(" "),s("br"),t._v(" "),s("br"),t._v("\n                  Don't have an account?   "),s("router-link",{attrs:{to:{name:"UserRegister"}}},[t._v(" Register here")])],1)])])])])],1),t._v(" "),s("frontend-footer")],1)}),[],!1,null,null,null);o.default=l.exports}}]);