(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5bcc"],{9681:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("router-link",{staticClass:"btn btn-light btn-sm  ",attrs:{to:{name:"kelola.koreksi.argument"}}},[t._v("Kembali")])],1),a("div",{staticClass:"card-body"},[t._m(0),a("br"),a("div",{staticClass:"table-responsive-md"},[a("b-table",{attrs:{striped:"",hover:"",bordered:"",small:"",fields:t.fields,items:t.argues.data,"show-empty":""},scopedSlots:t._u([{key:"cell(no)",fn:function(e){return[t._v(" "+t._s((t.page-1)*t.argues.per_page+e.index+1)+" ")]}},{key:"cell(show_details)",fn:function(t){return[a("b-button",{attrs:{size:"sm",variant:t.detailsShowing?"danger":"info"},on:{click:t.toggleDetails}},[a("i",{class:t.detailsShowing?"flaticon-circle":"flaticon2-add"})])]}},{key:"row-details",fn:function(e){return[a("b-card",[a("div",{domProps:{innerHTML:t._s(e.item.pertanyaan)}}),a("table",{staticClass:"table table-sm table-bordered"},[a("tr",[a("th",[t._v("Pernyataan")]),a("th",[t._v("Setuju/tidak")]),a("th",[t._v("Argumen")])]),t._l(e.item.setuju_tidak,(function(e,n){return a("tr",{attrs:{index:"list_argument_index_"+n}},[a("td",{domProps:{innerHTML:t._s(e.detil.text_jawaban)}}),a("td",[1==e.val?a("strong",[t._v("Setuju")]):t._e(),0==e.val?a("strong",[t._v("Tidak Setuju")]):t._e()]),a("td",[t._v(t._s(e.argument))])])}))],2),a("strong",[t._v("Beri point")]),a("div",{staticClass:"input-group mb-2",staticStyle:{"max-width":"240px"}},[a("input",{directives:[{name:"model",rawName:"v-model.number",value:t.argues.data[e.index]["point"],expression:"argues.data[row.index]['point']",modifiers:{number:!0}}],staticClass:"form-control border-primary",class:{"is-invalid":e.item.val>1||e.item.val<0},attrs:{type:"number",placeholder:"Point",step:"0.1",max:"1",min:"0"},domProps:{value:t.argues.data[e.index]["point"]},on:{input:function(a){a.target.composing||t.$set(t.argues.data[e.index],"point",t._n(a.target.value))},blur:function(e){return t.$forceUpdate()}}}),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.isLoading},on:{click:function(a){return t._sendNilaiArgument(e.index)}}},[t._v("Submit")])])]),a("small",[t._v("* maksimal point adalah 1, minimal 0, boleh menggunakan decimal, 0, 0.1, 0.2, ...1")])])]}}])})],1)]),a("div",{staticClass:"card-footer"})])])])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-5"},[a("h4",{staticClass:"card-title mb-0",attrs:{id:"traffic"}},[t._v("Koreksi")]),a("div",{staticClass:"small text-muted"},[t._v("Objektif dalam menilai, perhatikan juga argument peserta")])])])}],s=(a("96cf"),a("1da1")),r=a("5530"),o=a("2f62"),l=a("cecb"),c={name:"ArgumentNilai",data:function(){return{fields:[{key:"no",label:"#"},{key:"show_details",label:"Detail"}]}},computed:Object(r["a"])(Object(r["a"])(Object(r["a"])({},Object(o["c"])(["isLoading"])),Object(o["e"])("ujian",["argues"])),{},{page:{get:function(){return this.$store.state.ujian.koreksi_argument_page},set:function(t){this.$store.commit("ujian/_set_page_koreksi_argument",t)}}}),methods:Object(r["a"])(Object(r["a"])(Object(r["a"])({},Object(o["b"])("ujian",["getKoreksiArgumentByBanksoal"])),Object(o["b"])("penilaian",["sendNilaiArgument"])),{},{_getKoreksiArgumentByBanksoal:function(){var t=this;return Object(s["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,t.getKoreksiArgumentByBanksoal(t.$route.params.banksoal);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e["catch"](0),t.$bvToast.toast(e.t0.message,Object(l["b"])());case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))()},_sendNilaiArgument:function(t){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,n=e.argues.data[t],a.next=4,e.sendNilaiArgument({val:n.point,id:n.id});case 4:e.$bvToast.toast("Nilai argment siswa berhasil disimpan",Object(l["c"])()),e._getKoreksiArgumentByBanksoal(),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](0),e.$bvToast.toast(a.t0.message,Object(l["b"])());case 11:case"end":return a.stop()}}),a,null,[[0,8]])})))()}}),created:function(){this._getKoreksiArgumentByBanksoal()}},u=c,d=a("2877"),m=Object(d["a"])(u,n,i,!1,null,"1638bb5a",null);e["default"]=m.exports}}]);
//# sourceMappingURL=chunk-2d0e5bcc.js.map