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