(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-124c7bb7"],{1297:function(a,s,t){"use strict";var e=function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("div",[t("div",{staticClass:"form-group"},[t("label",[a._v("Kode jurusan")]),t("input",{directives:[{name:"model",rawName:"v-model",value:a.jurusan.kode,expression:"jurusan.kode"}],staticClass:"form-control",class:{"is-invalid":a.errors.nama},attrs:{type:"text",placeholder:"Kode jurusan"},domProps:{value:a.jurusan.kode},on:{input:function(s){s.target.composing||a.$set(a.jurusan,"kode",s.target.value)}}}),a.errors.kode?t("p",{staticClass:"text-danger"},[a._v(a._s(a.errors.kode[0]))]):a._e()]),t("div",{staticClass:"form-group"},[t("label",[a._v("Nama jurusan")]),t("input",{directives:[{name:"model",rawName:"v-model",value:a.jurusan.nama,expression:"jurusan.nama"}],staticClass:"form-control",class:{"is-invalid":a.errors.nama},attrs:{type:"text",placeholder:"Nama jurusan"},domProps:{value:a.jurusan.nama},on:{input:function(s){s.target.composing||a.$set(a.jurusan,"nama",s.target.value)}}}),a.errors.nama?t("p",{staticClass:"text-danger"},[a._v(a._s(a.errors.nama[0]))]):a._e()])])},r=[],n=t("5530"),u=t("2f62"),o={name:"FormJurusan",computed:Object(n["a"])(Object(n["a"])({},Object(u["e"])(["errors"])),Object(u["e"])("jurusan",{jurusan:function(a){return a.jurusan}}))},i=o,c=t("2877"),l=Object(c["a"])(i,e,r,!1,null,null,null);s["a"]=l.exports},"4d78":function(a,s,t){"use strict";t.r(s);var e=function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12"},[t("div",{staticClass:"card"},[t("div",{staticClass:"card-header"},[t("router-link",{staticClass:"btn btn-light btn-sm",attrs:{to:{name:"jurusan.data"}}},[a._v("kembali")])],1),t("div",{staticClass:"card-body"},[t("form",{on:{submit:function(s){return s.preventDefault(),a.submit(s)}}},[t("jurusan-form"),t("div",{staticClass:"form-group"},[t("b-button",{attrs:{size:"sm",variant:"primary",type:"submit",disabled:a.isLoading}},[t("b-spinner",{directives:[{name:"show",rawName:"v-show",value:a.isLoading,expression:"isLoading"}],attrs:{small:"",type:"grow"}}),a._v("Simpan")],1)],1)],1)]),t("div",{staticClass:"card-footer"})])])])},r=[],n=t("5530"),u=t("2f62"),o=t("cecb"),i=t("1297"),c={name:"AddJurusan",computed:Object(n["a"])({},Object(u["c"])(["isLoading"])),methods:Object(n["a"])(Object(n["a"])({},Object(u["b"])("jurusan",["submitJurusan"])),{},{submit:function(){var a=this;this.submitJurusan().then((function(){a.$bvToast.toast("Data jurusan berhasil disimpan.",Object(o["c"])()),a.$router.push({name:"jurusan.data"})})).catch((function(s){a.$bvToast.toast(s.message,Object(o["b"])())}))}}),components:{"jurusan-form":i["a"]}},l=c,d=t("2877"),m=Object(d["a"])(l,e,r,!1,null,null,null);s["default"]=m.exports}}]);
//# sourceMappingURL=chunk-124c7bb7.js.map