(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c4deb"],{"3d59":function(a,e,s){"use strict";s.r(e);var t=function(){var a=this,e=a.$createElement,s=a._self._c||e;return s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-12"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[a._v(" Analys banksoal ")]),s("div",{staticClass:"card-body"},[a._m(0),s("br"),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6"},[s("b-form-group",{attrs:{label:"Filter","label-cols-sm":"3","label-align-sm":"right","label-size":"sm","label-for":"filterInput"}},[s("b-input-group",{attrs:{size:"sm"}},[s("b-form-input",{attrs:{type:"search",id:"filterInput",placeholder:"Cari kode banksoal"},model:{value:a.search,callback:function(e){a.search=e},expression:"search"}}),s("b-input-group-append",[s("b-button",{attrs:{disabled:!a.search},on:{click:function(e){a.search=""}}},[a._v("Clear")])],1)],1)],1),s("b-form-group",{attrs:{label:"Per page","label-cols-sm":"6","label-cols-md":"4","label-cols-lg":"3","label-align-sm":"right","label-size":"sm","label-for":"perPageSelect"}},[s("b-form-select",{attrs:{id:"perPageSelect",size:"sm",options:a.pageOptions},model:{value:a.perPage,callback:function(e){a.perPage=e},expression:"perPage"}})],1)],1)]),"undefined"!=typeof a.banksoals.data?s("div",{staticClass:"table-responsive-md"},[s("b-table",{staticClass:"mb-2",attrs:{striped:"",hover:"",bordered:"",small:"",fields:a.fields,items:a.banksoals.data,"show-empty":""},scopedSlots:a._u([{key:"cell(no)",fn:function(e){return[a._v(" "+a._s(e.index+1)+" ")]}},{key:"cell(actions)",fn:function(e){return[s("b-button",{attrs:{to:{name:"kelola.analys.kesulitan.banksoal",params:{banksoal:e.item.id}},variant:"primary",size:"sm"}},[s("i",{staticClass:"flaticon-graphic"}),a._v(" Hasil analisa ")])]}}],null,!1,3739277177)}),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6"},[a.banksoals.data?s("p",[s("i",{staticClass:"fa fa-bars"}),a._v(" "+a._s(a.banksoals.data.length)+" item dari "+a._s(a.banksoals.total)+" total data")]):a._e()]),s("div",{staticClass:"col-md-6"},[s("div",{staticClass:"float-right"},[s("b-pagination",{attrs:{size:"sm","total-rows":a.banksoals.total,"per-page":a.banksoals.per_page,disabled:a.isLoading},model:{value:a.page,callback:function(e){a.page=e},expression:"page"}})],1)])])],1):[s("div",{staticClass:"text-center my-2"},[a._v(" Loading... ")])]],2),s("div",{staticClass:"card-footer"})])])])},l=[function(){var a=this,e=a.$createElement,s=a._self._c||e;return s("div",{staticClass:"row"},[s("div",{staticClass:"col-sm-5"},[s("h4",{staticClass:"card-title mb-0",attrs:{id:"traffic"}},[a._v("Analys banksoal")]),s("div",{staticClass:"small text-muted"},[a._v("Pilih soal yang akan dilihat analysanya")])])])}],n=(s("ac1f"),s("841c"),s("96cf"),s("1da1")),i=s("5530"),r=s("2f62"),o=s("cecb"),c=s("2ef0"),b=s.n(c),d={name:"DataBanksoal",data:function(){return{fields:[{key:"no",label:"#"},{key:"kode_banksoal",label:"Kode banksoal"},{key:"matpel.nama",label:"Mata pelajaran"},{key:"actions",label:"Aksi"}],perPage:20,pageOptions:[20,50,100],search:""}},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(r["c"])(["isLoading"])),Object(r["e"])("banksoal",{banksoals:function(a){return a.banksoals}})),{},{page:{get:function(){return this.$store.state.banksoal.page},set:function(a){this.$store.commit("banksoal/SET_PAGE",a)}}}),methods:Object(i["a"])({},Object(r["b"])("banksoal",["getBanksoals"])),created:function(){var a=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a.getBanksoals({perPage:a.perPage});case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),a.$bvToast.toast(e.t0.message,Object(o["a"])());case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))()},watch:{page:function(){this.getBanksoals({perPage:this.perPage})},search:b.a.debounce((function(a){this.getBanksoals({search:this.search,perPage:this.perPage})}),500),perPage:function(){this.getBanksoals({search:this.search,perPage:this.perPage})}}},p=d,u=s("2877"),g=Object(u["a"])(p,t,l,!1,null,null,null);e["default"]=g.exports}}]);
//# sourceMappingURL=chunk-2d0c4deb.caf1a96b.js.map