(this.webpackJsonpimonitornextgen=this.webpackJsonpimonitornextgen||[]).push([[121],{2014:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var l=a(8),n=a(53),r=a(199),i=[{dataField:"userId",text:"User ID",sort:!0},{dataField:"userName",text:"Username",sort:!0},{dataField:"noOfReportsRaised",text:"No. of Reports Raised",sort:!0}],o={getReportStatisticData:function(e,t,a,l,i){var o,c,s,m,d={communityId:e,globalFilters:{dateFilter:{from:(null===t||void 0===t||null===(o=t.dateFilter)||void 0===o?void 0:o.from)?(null===t||void 0===t||null===(c=t.dateFilter)||void 0===c?void 0:c.from)+"T00:00:00":null,to:(null===t||void 0===t||null===(s=t.dateFilter)||void 0===s?void 0:s.toDate)?(null===t||void 0===t||null===(m=t.dateFilter)||void 0===m?void 0:m.toDate)+"T23:59:59":null}},limitFrom:"LoadAll"==i?null:0,limitTo:"LoadAll"==i?null:99,roleType:["Admin","Health Worker","SuperAdmin"]};r.a.post(n.assistedUserSurveyCount,d).then((function(e){l(!1),a(e.data.data)})).catch((function(e){l(!1),a([])}))},renderTableColumn:function(e){!function(e,t){t.map((function(t){return Object(l.a)(Object(l.a)({},t),{},{text:e(t.text)})}))}(e,i.slice());return i.map((function(e,t){return e}))}}},2069:function(e,t,a){"use strict";a.r(t),function(e){var l=a(26),n=a(0),r=a.n(n),i=a(196),o=a(194),c=a(271),s=a.n(c),m=a(280),d=a.n(m),u=a(239),f=a.n(u),p=a(191),b=a(2045),v=a(2046),g=a(30),h=(a(830),a(509)),x=a(2014),E=a(200),N=u.Search.SearchBar;t.default=function(){var t=Object(n.useState)([]),a=Object(l.a)(t,2),m=a[0],u=a[1],O=Object(g.d)((function(e){return e.communityData.communityId?e.communityData.communityId:null})),F=Object(p.a)(),S=Object(l.a)(F,1)[0],j=Object(n.useState)(!0),P=Object(l.a)(j,2),y=P[0],D=P[1],T=Object(g.d)((function(e){return e.globalFilters})),k=Object(n.useState)(!1),w=Object(l.a)(k,2),A=w[0],R=w[1],C=Object(n.useState)(!1),I=Object(l.a)(C,2),L=I[0],z=I[1];Object(n.useEffect)((function(){D(!0),x.a.getReportStatisticData(O,T,u,D)}),[T]);var M={page:1,sizePerPageList:[{text:"50",value:50},{text:"100",value:100},{text:"All",value:m&&m.length}],sizePerPage:20,pageStartIndex:1,paginationSize:3,prePageText:S("Prev"),nextPageText:S("Next"),firstPageText:S("First"),lastPageText:S("Last"),showTotal:!0,sizePerPageOptionRenderer:B},B=function(e){var t=e.text,a=e.page,l=e.onSizePerPageChange;return r.a.createElement("li",{key:t,role:"presentation",className:"dropdown-item"},r.a.createElement("a",{href:"#",tabIndex:"-1",role:"menuitem","data-page":a,onMouseDown:function(e){e.preventDefault(),l(a)}},t))},U=function(){z((function(e){return!e}))};return r.a.createElement(r.a.Fragment,null,r.a.createElement(E.default,{isLoading:y}),r.a.createElement("div",{className:"mapdivholder"},r.a.createElement("div",{className:"row cltableholdermain mt-4 MainReportSection"},r.a.createElement("div",{className:"col-12 linelisttabsmainholder caseStatisticsMainholder"},r.a.createElement(b.a,{className:"border-0 p-20px"},r.a.createElement(v.a,{className:"table_react_bootstrap responsive_table table-striped table-hover p-0px"},r.a.createElement("div",{className:"d-flex facilityFilterDiv float-right"}),m&&r.a.createElement(f.a,{keyField:"forumid",data:m,columns:x.a.renderTableColumn(S),search:!0},(function(t){return r.a.createElement("div",null,r.a.createElement(i.a,{className:"mt-lg-n3"},r.a.createElement(o.a,{sm:"3",className:"text-right"},r.a.createElement("div",{className:"row tabactionbtnholder"},r.a.createElement("div",{className:"col-12"}))),r.a.createElement(o.a,{sm:"9",className:"text-right searchbtnfix mb-1"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-12 table-toolkit-justify-right"},r.a.createElement(N,t.searchProps),r.a.createElement("p",{className:"mb-0"},r.a.createElement("a",{href:"#",className:"dexcelbtn listfilterbtn",onClick:function(){return x.a.getReportStatisticData(O,e,u,D,"LoadAll")}},S("Load All Data")," ",r.a.createElement("i",{className:"fa fa-table","aria-hidden":"true"})),r.a.createElement("a",{href:"#",className:A?"filterapplied ml-1 filterBtn dexcelbtn":"ml-1 filterBtn dexcelbtn",onClick:function(e){return U()}},S("Advanced Filters")," ",r.a.createElement("i",{className:"fas fa-filter"}))))))),r.a.createElement("div",{className:"py-0 text-center"}),r.a.createElement(s.a,Object.assign({},t.baseProps,{bootstrap4:!0,pagination:d()(M),striped:!0,hover:!0,responsive:!0,defaultSorted:c.defaultSorted,wrapperClasses:"table-responsive",keyField:"forumid"})))}))))))),r.a.createElement(h.a,{setDateFilter:!0,filterApplied:function(e){R(e)},isOpen:L,toggleModal:U}))}}.call(this,a(22))}}]);
//# sourceMappingURL=121.f0b6267c.chunk.js.map