"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[2890],{12890:(e,a,s)=>{s.r(a),s.d(a,{default:()=>_});var r=s(65043),t=s(68493),n=s(5835),i=s(47419),l=s(11645),c=s(26655),d=s(5397),o=s(83003),p=s(60273),h=s(16876),g=s(20541),m=s(40517),u=s(45085),x=s(94406),A=s(11670),f=(s(30657),s(72517),s(44474),s(53623),s(55881),s(70579));const{Dragger:j}=A.A,{Option:S}=x.A;const _=function(){const e=(0,o.wA)(),a=(0,p.MD)("masters","area").lotlist,s=((0,o.d4)((e=>e.masters.area.noofpages)),(0,o.d4)((e=>e.masters.area.listCount))),x=(0,o.d4)((e=>e.masters.area.lotParams)),A=(0,o.d4)((e=>e.masters.area.loading)),j=(0,o.d4)((e=>e.masters.area.model)),[S]=((0,o.d4)((e=>e.system.userAccessList)),t.A.useForm());(0,r.useEffect)((()=>{e((0,m.Sr)({page:1,search:"",page_size:10}))}),[]);const _=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Name",render:e=>(0,f.jsx)("span",{children:e.name}),filterMode:"tree",filterSearch:!0},{title:"Code",render:e=>(0,f.jsx)("span",{children:e.code}),filterMode:"tree",filterSearch:!0}],w=null===a||void 0===a?void 0:a.map(((e,a)=>({...e,index:(x.page-1)*x.page_size+a+1}))),{Search:C}=n.A;return(0,f.jsx)(i.A,{gutter:[12,12],className:"hp-mt-32",children:(0,f.jsxs)(l.A,{span:24,children:[(0,f.jsx)(h.A,{prefix:"Masters",postfix:"area",pageTitle:"Area",goBack:!0,setIsModalVisible:a=>{e((0,u.q2)(a))},isModalVisible:j}),(0,f.jsx)(c.A,{children:(0,f.jsxs)(i.A,{children:[(0,f.jsx)(l.A,{span:12,xs:24,sm:24,md:12,className:"hp-mb-12",children:(0,f.jsx)(C,{placeholder:"Search...",allowClear:!0,onChange:a=>{""==a.target.value&&(e((0,m.Sr)({...x,page:1,search:""})),e((0,u.yc)({...x,page:1,search:""})))},onSearch:a=>{var s;s=a,e((0,u.yc)({...x,page:1,search:s})),e((0,m.Sr)({...x,page:1,search:s}))}})}),(0,f.jsx)(l.A,{span:24,children:(0,f.jsx)(d.A,{tip:"Loading...",spinning:A,delay:500,children:(0,f.jsx)(g.A,{page:x.page,count:s,pageSize:x.page_size,columns:_,data:w,loading:A,onPageChange:function(a,s){e((0,u.yc)({...x,page_size:s,page:0==a?1:a})),e((0,m.Sr)({...x,page_size:s,page:0==a?1:a}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})})})]})})]})})}}}]);
//# sourceMappingURL=2890.7b9c52b9.chunk.js.map