(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24b1bec4"],{"0b4b":function(e,s,a){},2026:function(e,s,a){"use strict";a.r(s);var t=function(){var e=this,s=e.$createElement,a=e._self._c||s;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("router-link",{staticClass:"btn btn-light btn-sm",attrs:{to:{name:"guru.data"}}},[e._v("kembali")])],1),a("div",{staticClass:"card-body"},[a("guru-form"),a("div",{staticClass:"form-group"},[a("b-button",{attrs:{size:"sm",variant:"primary",disabled:e.isLoading},on:{click:e.submit}},[a("b-spinner",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}],attrs:{small:"",type:"grow"}}),e._v("Simpan")],1)],1)],1),a("div",{staticClass:"card-footer"})])])])},r=[],o=a("5530"),i=a("2f62"),n=a("cecb"),l=a("9387"),u={name:"AddGuru",data:function(){return{}},computed:Object(o["a"])({},Object(i["c"])(["isLoading"])),methods:Object(o["a"])(Object(o["a"])({},Object(i["b"])("user",["storeUser"])),{},{submit:function(){var e=this;this.storeUser().then((function(s){e.$bvToast.toast("Data user berhasil disimpan.",Object(n["c"])()),e.$router.push({name:"guru.data"})})).catch((function(s){e.$bvToast.toast(s.message,Object(n["b"])())}))}}),components:{"guru-form":l["a"]}},c=u,m=a("2877"),d=Object(m["a"])(c,t,r,!1,null,null,null);s["default"]=d.exports},"60bc":function(e,s,a){"use strict";var t=a("0b4b"),r=a.n(t);r.a},9387:function(e,s,a){"use strict";var t=function(){var e=this,s=e.$createElement,a=e._self._c||s;return a("div",[a("div",{staticClass:"form-group"},[a("label",[e._v("Akses")]),a("select",{directives:[{name:"model",rawName:"v-model",value:e.user.role,expression:"user.role"}],staticClass:"form-control",class:{"is-invalid":e.errors.role},on:{change:function(s){var a=Array.prototype.filter.call(s.target.options,(function(e){return e.selected})).map((function(e){var s="_value"in e?e._value:e.value;return s}));e.$set(e.user,"role",s.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"admin"}},[e._v("Admin")]),a("option",{attrs:{value:"guru"}},[e._v("Guru")]),a("option",{attrs:{value:"operator"}},[e._v("Operator")])]),e.errors.role?a("p",{staticClass:"text-danger"},[e._v(e._s(e.errors.role[0]))]):e._e()]),a("div",{staticClass:"form-group"},[a("label",[e._v("Nama")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.name,expression:"user.name"}],staticClass:"form-control",class:{"is-invalid":e.errors.name},attrs:{type:"text",placeholder:"Nama",autofocus:""},domProps:{value:e.user.name},on:{input:function(s){s.target.composing||e.$set(e.user,"name",s.target.value)}}}),e.errors.name?a("p",{staticClass:"text-danger"},[e._v(e._s(e.errors.name[0]))]):e._e()]),a("div",{staticClass:"form-group"},[a("label",[e._v("Email")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.email,expression:"user.email"}],staticClass:"form-control",class:{"is-invalid":e.errors.email},attrs:{type:"email",placeholder:"Email",autofocus:""},domProps:{value:e.user.email},on:{input:function(s){s.target.composing||e.$set(e.user,"email",s.target.value)}}}),e.errors.email?a("p",{staticClass:"text-danger"},[e._v(e._s(e.errors.email[0]))]):e._e()]),a("div",{staticClass:"form-group"},[a("label",[e._v("Password")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-control",class:{"is-invalid":e.errors.password},attrs:{type:"password",placeholder:"Password",autofocus:""},domProps:{value:e.user.password},on:{input:function(s){s.target.composing||e.$set(e.user,"password",s.target.value)}}}),e.errors.password?a("p",{staticClass:"text-danger"},[e._v(e._s(e.errors.password[0]))]):e._e()])])},r=[],o=a("5530"),i=a("2f62"),n={name:"FormMatpel",created:function(){},data:function(){return{}},computed:Object(o["a"])(Object(o["a"])({},Object(i["e"])(["errors"])),Object(i["e"])("user",{user:function(e){return e.user}}))},l=n,u=(a("60bc"),a("2877")),c=Object(u["a"])(l,t,r,!1,null,null,null);s["a"]=c.exports}}]);
//# sourceMappingURL=chunk-24b1bec4.js.map