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