(this.webpackJsonpimonitornextgen=this.webpackJsonpimonitornextgen||[]).push([[126],{2113:function(e,t,a){"use strict";a.r(t);var n=a(0),c=a.n(n),i=a(26),m=a(191),o=a(30),l=a(199),r=a(200),s=a(53),u=a(201),d=Object(o.b)((function(e){var t=e.communityData;return{UUID:t.communityId?t.communityId:null}}),null)((function(e){var t=e.UUID,a=e.title,o=e.subtitle,d=e.withComments,p=Object(n.useState)(!1),b=Object(i.a)(p,2),h=b[0],f=b[1],v=Object(m.a)(),E=Object(i.a)(v,1)[0];return c.a.createElement(c.a.Fragment,null,c.a.createElement(r.default,{isLoading:h}),c.a.createElement("div",{className:"list-group-item list-group-item-action my-1 border-top card-header",onClick:function(e){f(!0),e.preventDefault();var a={communityId:t},n=d?s.casereportsWithComments:s.casereportsWithWithoutComments;l.a.post(n,a).then((function(e){var t=e.data.data.path,a=t?t.split("/excel")[1]:"",n="";a&&(n="".concat(s.baseUrl,"/excel").concat(a),window.open(n)),f(!1)})).catch((function(e){console.log(e),Object(u.a)(),f(!1)}))}},c.a.createElement("div",{className:"d-flex w-100 justify-content-between"},c.a.createElement("h5",{className:"mb-1"},E(a))),c.a.createElement("small",null,E(o))))}));t.default=function(){return c.a.createElement("div",{className:"my-4 inbox container-fluid"},c.a.createElement("div",{className:"bg-white animated fadeIn mx-0 row"},c.a.createElement("div",{className:"col-12 p-0"},c.a.createElement("div",{className:"card border-0"},c.a.createElement("div",{className:"card-header bg-transparent font-weight-bold"},"Reports"),c.a.createElement("div",{className:"card-body"},c.a.createElement("div",{className:"list-group"},c.a.createElement(d,{withComments:!1,title:"Community Snapshot Report",subtitle:"without comments"}),c.a.createElement(d,{withComments:!0,title:"Community Snapshot Report",subtitle:"including comments"})))))))}}}]);
//# sourceMappingURL=126.9b6f3c1f.chunk.js.map