(function(e){function t(t){for(var r,i,o=t[0],u=t[1],c=t[2],l=0,b=[];l0&&void 0!==i[0]?i[0]:null,n=i.length>1&&void 0!==i[1]?i[1]:10,r=i.length>2&&void 0!==i[2]&&i[2],a={limit:n,backwardSearch:r},t&&(a.paginationToken=t),e.next=7,this.api.get("/submission",{params:a});case 7:return s=e.sent,e.abrupt("return",s.data);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSubmission",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.api.get("/submission/".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"moveSubmission",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.api.post("/submission/move",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"archiveSubmission",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.api.delete("/submission/".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(R),Q=n("bd5e"),T=new x,L=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){var e;return Object(o["a"])(this,n),e=t.apply(this,arguments),e.submissionState=null,e.isSaving=!1,e.loadingRecentSubmissions=!1,e.recentSubmissions=[],e.loadingSubmissions=!1,e.submissions=[],e.paginationToken=null,e.backwardSearch=!1,e.submission=null,e.loadingSubmission=!1,e.totalRows=0,e}return Object(u["a"])(n,[{key:"setSubmissionState",value:function(e){this.submissionState=e}},{key:"setIsSaving",value:function(e){this.isSaving=e}},{key:"setLoadingRecentSubmissions",value:function(e){this.loadingRecentSubmissions=e}},{key:"setRecentSubmissions",value:function(e){this.recentSubmissions=e}},{key:"setLoadingSubmissions",value:function(e){this.loadingSubmissions=e}},{key:"setSubmissions",value:function(e){var t;(t=this.submissions).push.apply(t,Object(y["a"])(e))}},{key:"setBackwordSearch",value:function(e){e!=this.backwardSearch&&(this.submissions=[],this.paginationToken=null),this.backwardSearch=e}},{key:"setPaginationToken",value:function(e){this.paginationToken=e}},{key:"resetSubmissions",value:function(){this.submissions=[],this.paginationToken=null}},{key:"setSubmission",value:function(e){this.submission=e}},{key:"setLoadingSubmission",value:function(e){this.loadingSubmission=e}},{key:"setTotalRows",value:function(e){this.totalRows=e}},{key:"saveSubmission",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.setIsSaving(!0),e.next=4,T.addSubmission(t);case 4:this.setSubmissionState(Q["a"].SUCCESS),e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](0),console.error(e.t0),this.setSubmissionState(Q["a"].ERROR);case 11:this.setIsSaving(!1);case 12:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getRecentSubmissions",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setRecentSubmissions([]),this.setLoadingRecentSubmissions(!0),e.prev=2,e.next=5,T.getSubmissions(null,5,!0);case 5:t=e.sent,this.setRecentSubmissions(t.result),e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](2),console.error(e.t0),this.setRecentSubmissions([]);case 13:this.setLoadingRecentSubmissions(!1);case 14:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getSubmissions",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,s,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.currentPage,r=t.perPage,a=t.backwardSearch,this.setLoadingSubmissions(!0),this.setBackwordSearch(a),e.prev=3,s=n*r,!(this.submissions.length0&&void 0!==i[0]?i[0]:null,n=i.length>1&&void 0!==i[1]?i[1]:10,r=i.length>2&&void 0!==i[2]&&i[2],a={limit:n,backwardSearch:r},t&&(a.paginationToken=t),e.next=7,this.api.get("/question",{params:a});case 7:return s=e.sent,e.abrupt("return",s.data);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getQuestion",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.api.get("/question/".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),n}(R),E=new q,P=function(e){Object(c["a"])(n,e);var t=Object(l["a"])(n);function n(){var e;return Object(o["a"])(this,n),e=t.apply(this,arguments),e.loadingRecentQuestions=!1,e.recentQuestions=[],e.loadingQuestions=!1,e.questions=[],e.paginationToken=null,e.backwardSearch=!1,e.question=null,e.loadingQuestion=!1,e.totalRows=0,e.questionState=null,e}return Object(u["a"])(n,[{key:"setLoadingRecentQuestions",value:function(e){this.loadingRecentQuestions=e}},{key:"setRecentQuestions",value:function(e){this.recentQuestions=e}},{key:"setLoadingQuestions",value:function(e){this.loadingQuestions=e}},{key:"setQuestions",value:function(e){var t;(t=this.questions).push.apply(t,Object(y["a"])(e))}},{key:"setBackwordSearch",value:function(e){e!=this.backwardSearch&&(this.questions=[],this.paginationToken=null),this.backwardSearch=e}},{key:"setPaginationToken",value:function(e){this.paginationToken=e}},{key:"resetQuestions",value:function(){this.questions=[],this.paginationToken=null}},{key:"setQuestion",value:function(e){this.question=e}},{key:"setLoadingQuestion",value:function(e){this.loadingQuestion=e}},{key:"setTotalRows",value:function(e){this.totalRows=e}},{key:"setQuestionState",value:function(e){this.questionState=e}},{key:"getRecentQuestions",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setRecentQuestions([]),this.setLoadingRecentQuestions(!0),e.prev=2,e.next=5,E.getQuestions(null,5,!0);case 5:t=e.sent,this.setRecentQuestions(t.result),e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](2),console.error(e.t0),this.setRecentQuestions([]);case 13:this.setLoadingRecentQuestions(!1);case 14:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getQuestions",value:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var n,r,a,s,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.currentPage,r=t.perPage,a=t.backwardSearch,this.setLoadingRecentQuestions(!0),this.setBackwordSearch(a),e.prev=3,s=n*r,!(this.questions.length