(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217383"],{c693:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("b-row",{staticClass:"mt-5"},[s("b-col",{staticClass:"mb-5 mb-xl-0",attrs:{xl:"6",lg:"6",md:"12"}},[s("b-card",{staticClass:"shadow",scopedSlots:t._u([{key:"header",fn:function(){return[s("b-row",{staticClass:"align-items-center"},[s("b-col",[s("h3",{staticClass:"mb-0"},[t._v("Recent Submissions")])]),s("b-col",{staticClass:"text-right"},[s("router-link",{staticClass:"btn btn-sm btn-primary",attrs:{to:"/submissions"}},[t._v("See all")])],1)],1)]},proxy:!0}])},[s("recent-questions",{attrs:{recentQuestions:t.recentSubmissions,tableBusy:t.loadingRecentSubmissions,routerLinkName:"SubmissionDetail"}})],1)],1),s("b-col",{staticClass:"mb-5 mb-xl-0",attrs:{xl:"6",lg:"6",md:"12"}},[s("b-card",{staticClass:"shadow",scopedSlots:t._u([{key:"header",fn:function(){return[s("b-row",{staticClass:"align-items-center"},[s("b-col",[s("h3",{staticClass:"mb-0"},[t._v("Recent Questions")])]),s("b-col",{staticClass:"text-right"},[s("router-link",{staticClass:"btn btn-sm btn-primary",attrs:{to:"/questions"}},[t._v("See all")])],1)],1)]},proxy:!0}])},[s("recent-questions",{attrs:{recentQuestions:t.recentQuestions,tableBusy:t.loadingRecentQuestions,routerLinkName:"SubmissionDetail"}})],1)],1)],1)},a=[],i=(s("d3b7"),s("3ca3"),s("ddb0"),s("96cf"),s("1da1")),r=s("d4ec"),o=s("bee2"),c=s("262e"),l=s("2caf"),u=s("9ab4"),b=s("60a3"),d=s("4bb5"),m=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("b-table",{attrs:{responsive:"",hover:"",items:t.recentQuestions,fields:t.fields,"head-variant":"light",busy:t.tableBusy,"table-class":"align-items-center table-flush"},scopedSlots:t._u([{key:"head()",fn:function(e){return[t._v(t._s(e.label.toUpperCase()))]}},{key:"table-busy",fn:function(){return[s("div",{staticClass:"text-center my-2"},[s("b-spinner",{staticClass:"align-middle"}),s("br"),s("strong",[t._v("Loading...")])],1)]},proxy:!0},{key:"cell(id)",fn:function(e){return[s("router-link",{attrs:{to:{name:t.routerLinkName,params:{submissionId:e.item.id}}}},[t._v(t._s(e.item.id))])]}}])})},p=[],_=function(t){Object(c["a"])(s,t);var e=Object(l["a"])(s);function s(){var t;return Object(r["a"])(this,s),t=e.apply(this,arguments),t.fields=[{key:"id",label:"Submission Id"},"message"],t}return s}(b["e"]);Object(u["__decorate"])([Object(b["c"])()],_.prototype,"recentQuestions",void 0),Object(u["__decorate"])([Object(b["c"])()],_.prototype,"tableBusy",void 0),Object(u["__decorate"])([Object(b["c"])()],_.prototype,"routerLinkName",void 0),_=Object(u["__decorate"])([b["a"]],_);var v=_,y=v,f=s("2877"),h=Object(f["a"])(y,m,p,!1,null,null,null),j=h.exports,O=Object(d["a"])("submission"),g=Object(d["a"])("question"),S=function(t){Object(c["a"])(s,t);var e=Object(l["a"])(s);function s(){return Object(r["a"])(this,s),e.apply(this,arguments)}return Object(o["a"])(s,[{key:"created",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.getRecentSubmissions(),s=this.getRecentQuestions(),t.next=4,Promise.all([e,s]);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),s}(b["e"]);Object(u["__decorate"])([O.State],S.prototype,"recentSubmissions",void 0),Object(u["__decorate"])([O.State],S.prototype,"loadingRecentSubmissions",void 0),Object(u["__decorate"])([g.State],S.prototype,"recentQuestions",void 0),Object(u["__decorate"])([g.State],S.prototype,"loadingRecentQuestions",void 0),Object(u["__decorate"])([O.Action],S.prototype,"getRecentSubmissions",void 0),Object(u["__decorate"])([g.Action],S.prototype,"getRecentQuestions",void 0),S=Object(u["__decorate"])([Object(b["a"])({components:{RecentQuestions:j}})],S);var k=S,C=k,w=Object(f["a"])(C,n,a,!1,null,null,null);e["default"]=w.exports}}]); //# sourceMappingURL=chunk-2d217383.59b67479.js.map