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