1"use strict";(self.webpackChunkweb_admin=self.webpackChunkweb_admin||[]).push([[1365],{78492:function(e,n,t){t.r(n);var r=t(32723),a=t(33028),o=t(34795),i=t(56666),c=t(96234),s=t(30969),u=t(69405),l=t(86822),h=t(30734),d=t(13697),f=t(78181),p=t(62584),m=t(47400),g=t(78643),k=t(16619),v=t(4628),C=t(37574);n.default=function(e){var n=e.isCompany,t=(0,l.lr)(),Z=(0,c.Z)(t,2),w=Z[0],S=Z[1],y=(0,s.useState)({category:{equals:g.M_.HealthCheckForm}}),x=(0,c.Z)(y,2),b=x[0],T=x[1],E=(0,d.$G)().t,R=w.get("page")||1,j=(0,h.TH)(),F=s.useState({createdAt:g.As.Desc}),H=(0,c.Z)(F,2),P=H[0],_=H[1],B=(0,u.I0)(),O=(0,u.v9)((function(e){return e.healthCheck.loading}));(0,s.useEffect)((function(){B((0,v.jT)({pagination:{page:Number(R),perPage:m.aQ},where:b,orderBy:P.itemsName?void 0:P})).then((function(e){null!==e&&void 0!==e&&e.error&&(0,k.S3)(e,E("common.error"))}))}),[R,j.pathname,b,P]);var Q=(0,u.v9)((function(e){return e.healthCheck.listHealthCheck})),W=Q.data,A=Q.pagination,D=function(e){w.set("page",e.toString()),S(w),window.scrollTo({top:0,behavior:"smooth"})},M=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.Z.confirm({title:(0,C.jsx)("span",{style:{fontWeight:300},children:E("healthCheck.list.modalTitle")}),okText:E("common.ok"),cancelText:E("common.cancel"),okButtonProps:{},cancelButtonProps:{},onOk:function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B((0,v.Oy)({id:n,category:g.M_.HealthCheckForm}));case 2:null!==(t=e.sent)&&void 0!==t&&t.error?(0,k.S3)(t,E("healthCheck.delete.failure"),(function(e){return(0,k.h4)(m.WV.ERROR,null===e||void 0===e?void 0:e.message)})):(T((0,a.Z)({},b)),(0,k.h4)(m.WV.SUCCESS,E("healthCheck.delete.success")));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(p.Z,{isCompany:n,handleChangePage:D,setFilters:T,handleSort:function(e){var n=e.columnKey,t=e.order;P[n]!==m.ER[t]&&(_((0,i.Z)({},n,m.ER[t]||void 0)),D(1))},dataSource:W,loading:O,pagination:A,isQuestionnaireScreen:!1,handleDeleteQuestionnaire:M,filters:b})})}}}]); 2//# sourceMappingURL=1365.0898e10d.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.