(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-118a2096"],{c975:function(t,e,a){"use strict";var n=a("23e7"),s=a("4d64").indexOf,i=a("a640"),r=a("ae40"),c=[].indexOf,o=!!c&&1/[1].indexOf(1,-0)<0,u=i("indexOf"),l=r("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:o||!u||!l},{indexOf:function(t){return o?c.apply(this,arguments)||0:s(this,t,arguments.length>1?arguments[1]:void 0)}})},d1ba: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-md-12"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[t._v(" Ujian yang dilaksanakan ")]),a("div",{staticClass:"card-body"},[a("div",{staticClass:"mb-2"},[a("span",{staticClass:"badge badge-light"},[t._v(t._s(0==t.token.status?"Tidak aktif":"Aktif"))]),a("h1",[t._v(t._s(t.token.token))]),0==t.token.status?a("button",{staticClass:"btn btn-sm btn-primary",attrs:{disabled:t.isLoading},on:{click:t.rilis}},[t._v("Relese token")]):t._e()]),a("div",{staticClass:"table-responsive"},[a("table",{staticClass:"table table-sm table-bordered table-hover table-striped"},[t._m(0),a("tbody",t._l(t.jadwals,(function(e,n){return a("tr",{key:e.id},[a("td",[t._v(t._s(n+1))]),a("td",[t._v(t._s(e.alias))]),a("td",[t._v(t._s(e.tanggal))]),a("td",[t._v(t._s(e.mulai))]),a("td",[a("div",{staticClass:"input-group input-group-sm"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.sesi,expression:"jadwal.sesi"}],staticClass:"custom-select",on:{change:function(a){var n=Array.prototype.filter.call(a.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(e,"sesi",a.target.multiple?n:n[0])}}},[a("option",{attrs:{value:"1"}},[t._v("1")]),a("option",{attrs:{value:"2"}},[t._v("2")]),a("option",{attrs:{value:"3"}},[t._v("3")]),a("option",{attrs:{value:"4"}},[t._v("4")])]),a("div",{staticClass:"input-group-append"},[a("button",{staticClass:"btn btn-info",attrs:{type:"button",disabled:t.isLoading},on:{click:function(a){return t.sesiChange(e.id)}}},[t._v(" Simpan ")])])])])])})),0)])])]),a("div",{staticClass:"card-footer"},[t._v(" Silakan ganti sesi untuk mengubah sesi tekan Simpan ")])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th",[t._v("#")]),a("th",[t._v("Nama ujian")]),a("th",[t._v("Tanggal")]),a("th",[t._v("Mulai")]),a("th",[t._v("Sesi")])])])}],i=(a("c975"),a("d81d"),a("96cf"),a("1da1")),r=a("5530"),c=a("2f62"),o=a("cecb"),u={name:"StatusUjian",data:function(){return{}},computed:Object(r["a"])(Object(r["a"])({},Object(c["c"])(["isLoading"])),Object(c["e"])("ujian",{jadwals:function(t){return t.ujianActive},token:function(t){return t.token}})),methods:Object(r["a"])(Object(r["a"])({},Object(c["b"])("ujian",["getUjianActive","changeSesi","getToken","rilisToken"])),{},{rilis:function(){var t=this;return Object(i["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.rilisToken();case 3:return e.next=5,t.getToken();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$bvToast.toast(e.t0.message,Object(o["a"])());case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},sesiChange:function(t){var e=this;return Object(i["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.jadwals.map((function(t){return t.id})).indexOf(t),a.next=4,e.changeSesi({id:t,data:{sesi:e.jadwals[n].sesi}});case 4:e.getUjianActive(),e.$bvToast.toast("Sesi berhasil diubah",Object(o["b"])()),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](0),e.$bvToast.toast(a.t0.message,Object(o["a"])());case 11:case"end":return a.stop()}}),a,null,[[0,8]])})))()}}),created:function(){var t=this;return Object(i["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.getUjianActive();case 3:return e.next=5,t.getToken();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$bvToast.toast(e.t0.message,Object(o["a"])());case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()}},l=u,d=a("2877"),v=Object(d["a"])(l,n,s,!1,null,null,null);e["default"]=v.exports},d81d:function(t,e,a){"use strict";var n=a("23e7"),s=a("b727").map,i=a("1dde"),r=a("ae40"),c=i("map"),o=r("map");n({target:"Array",proto:!0,forced:!c||!o},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})}}]);
//# sourceMappingURL=chunk-118a2096.c51508fc.js.map