(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-692b4b48"],{"107d":function(t,e,a){},5090:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{staticStyle:{"enable-background":"new 0 0 426.667 426.667"},attrs:{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 426.667 426.667","xml:space":"preserve"}},[a("polygon",{staticStyle:{fill:"#FAC917"},attrs:{points:"213.333,10.441 279.249,144.017 426.667,165.436 320,269.41 345.173,416.226 213.333,346.91 \n\t81.485,416.226 106.667,269.41 0,165.436 147.409,144.017 "}}),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g"),a("g")])},n=[],r=a("2877"),l={},i=Object(r["a"])(l,s,n,!1,null,null,null);e["a"]=i.exports},a978:function(t,e,a){"use strict";a.r(e);var s=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 mr-1",attrs:{to:{name:"banksoal.soal",params:{banksoal_id:t.$route.params.banksoal_id}}}},[t._v("Kembali")]),a("button",{staticClass:"btn float-right btn-primary btn-sm mx-1",on:{click:t.print}},[a("i",{staticClass:"flaticon2-print"}),t._v(" Print")])],1),a("div",{staticClass:"card-body back",attrs:{id:"printSoal"}},[a("div",{staticClass:"paper"},[a("div",{staticClass:"d-flex"},[a("div",{staticStyle:{width:"100px"}},["undefined"!=typeof t.sekolah.value?a("img",{staticStyle:{"max-width":"100px"},attrs:{src:""!=t.sekolah.value.logo?t.sekolah.value.logo:"/admin-system/img/logo.jpg",alt:"Logo"}}):t._e()]),a("div",{staticClass:"flex-fill text-center"},t._l(t.lines,(function(e){return a("div",{domProps:{innerHTML:t._s(e)}})})),0),a("div",{staticStyle:{width:"100px"}})]),a("hr",{staticStyle:{height:"2px",border:"none",color:"#333","background-color":"#333","margin-bottom":"1px"}}),a("hr",{staticStyle:{height:"1px",border:"none",color:"#333","background-color":"#333","margin-top":"0"}}),a("div",{staticClass:"table-responsive-md"},[a("table",{staticClass:"table table-sm"},t._l(t.soals,(function(e,s){return a("tr",{key:e.id},[a("td",[a("div",{staticClass:"table-responsive-md"},[a("table",{staticClass:"table-sm table-mx table-borderless"},[a("tr",[a("td",{attrs:{width:"20px"}},[t._v(t._s(s+1)+".")]),a("td",{domProps:{innerHTML:t._s(e.pertanyaan)}})]),a("tr",[a("td",{attrs:{colspan:"2"}},[a("div",{staticClass:"table-responsive-md"},[a("table",{staticClass:"table-sm"},t._l(e.jawabans,(function(e,s){return a("tr",{key:e.id},[a("td",{attrs:{width:"20px"}}),a("td",{class:{corect:"1"==e.correct},staticStyle:{"text-transform":"uppercase"}},[t._v(" "+t._s(t._f("charIndex")(s))+" ) "),a("StarFillineYellow",{directives:[{name:"show",rawName:"v-show",value:"1"==e.correct,expression:"jawaban.correct == '1'"}],staticStyle:{height:"15px"}})],1),a("td",{domProps:{innerHTML:t._s(e.text_jawaban)}})])})),0)])])])])])])])})),0)])])])])])])},n=[],r=(a("96cf"),a("1da1")),l=a("5530"),i=a("2f62"),o=a("cecb"),c=a("5090"),d={name:"SoalBanksoal",data:function(){return{lines:[]}},components:{StarFillineYellow:c["a"]},created:function(){this.getAllSoalPaper(),this.getKopHeader()},computed:Object(l["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(i["c"])(["isLoading"])),Object(i["e"])("setting",{sekolah:function(t){return t.set_sekolah}})),Object(i["e"])("soal",{soals:function(t){return t.allSoals}})),{},{page:{get:function(){return this.$store.state.soal.page},set:function(t){this.$store.commit("soal/SET_PAGE",t)}}}),filters:{charIndex:function(t){return String.fromCharCode(97+t)}},methods:Object(l["a"])(Object(l["a"])(Object(l["a"])({},Object(i["b"])("soal",["getSoals","getAllSoal","removeSoal"])),Object(i["b"])("setting",["getSettingHeaderKop"])),{},{getAllSoalPaper:function(){var t=this;this.getAllSoal({banksoal_id:this.$route.params.banksoal_id}).then((function(){})).catch((function(e){t.$bvToast.toast(e.message,Object(o["b"])())}))},print:function(){this.$htmlToPaper("printSoal")},getKopHeader:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.getSettingHeaderKop();case 3:a=e.sent,a.data&&(s=JSON.parse(null==a.data.value||""==a.data.value?"[]":a.data.value),s.length>1&&(t.lines=s)),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$bvToast.toast(e.t0.message,Object(o["b"])());case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()}})},u=d,b=(a("d9ec"),a("2877")),p=Object(b["a"])(u,s,n,!1,null,null,null);e["default"]=p.exports},d9ec:function(t,e,a){"use strict";var s=a("107d"),n=a.n(s);n.a}}]);
//# sourceMappingURL=chunk-692b4b48.js.map