"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[5115],{55115:(e,a,s)=>{s.r(a),s.d(a,{default:()=>x});var r=s(65043),t=s(68493),n=s(5835),i=s(47419),p=s(11645),o=s(26655),c=s(5397),l=s(83003),d=s(60273),h=s(16876),g=s(97829),m=s(20541),u=s(85949),w=s(70579);const x=function(){const e=(0,l.wA)(),a=(0,d.MD)("masters","worktype").worktypelist,s=((0,l.d4)((e=>e.masters.worktype.noofpages)),(0,l.d4)((e=>e.masters.worktype.listCount))),x=(0,l.d4)((e=>e.masters.worktype.worktypeParams)),k=(0,l.d4)((e=>e.masters.worktype.loading)),[f]=((0,l.d4)((e=>e.system.userAccessList)),t.A.useForm());(0,r.useEffect)((()=>{e((0,g.u)({page:1,search:"",page_size:10}))}),[]);const A=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Name",render:e=>(0,w.jsx)("span",{children:e.name}),filterMode:"tree",filterSearch:!0,width:"30%"}],j=null===a||void 0===a?void 0:a.map(((e,a)=>({...e,index:(x.page-1)*x.page_size+a+1}))),{Search:y}=n.A;return(0,w.jsxs)(i.A,{gutter:[12,12],className:"hp-mt-32",children:[(0,w.jsx)(h.A,{prefix:"Masters",postfix:"worktype",pageTitle:"Work Type",goBack:!0}),(0,w.jsx)(p.A,{span:24,children:(0,w.jsx)(o.A,{children:(0,w.jsxs)(i.A,{children:[(0,w.jsx)(p.A,{span:12,xs:24,sm:24,md:12,className:"hp-mb-12",children:(0,w.jsx)(y,{placeholder:"Search...",allowClear:!0,onChange:a=>{""==a.target.value&&(e((0,g.u)({...x,page:1,search:""})),e((0,u.Ws)({...x,page:1,search:""})))},onSearch:a=>{var s;s=a,e((0,u.Ws)({...x,page:1,search:s})),e((0,g.u)({...x,page:1,search:s}))}})}),(0,w.jsx)(p.A,{span:24,children:(0,w.jsx)(c.A,{tip:"Loading...",spinning:k,delay:500,children:(0,w.jsx)(m.A,{page:x.page,count:s,pageSize:x.page_size,columns:A,data:j,loading:k,onPageChange:function(a,s){e((0,u.Ws)({...x,page_size:s,page:0==a?1:a})),e((0,g.u)({...x,page_size:s,page:0==a?1:a}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})})})]})})})]})}}}]);
//# sourceMappingURL=5115.70d7dbad.chunk.js.map