"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[3124],{18534:(e,s,a)=>{a.d(s,{A:()=>l});a(65043);const l=a.p+"static/media/empty-list.6fd5c5d1fceac81a14359bdcffbb13db.svg"},93124:(e,s,a)=>{a.r(s),a.d(s,{default:()=>p});var l=a(65043),i=a(83003),n=a(18534),d=a(5835),t=a(47419),c=a(11645),r=a(85421),m=a(5397),o=a(79797),h=a(62582),u=a(69346),x=(a(60273),a(70579));const p=function(){const[e,s]=(0,l.useState)([]),{Search:a}=d.A,p=(0,i.wA)(),v=(0,i.d4)((e=>e.system.masterMenuItemsList)),j=(0,i.d4)((e=>e.system.loading)),g=(0,l.useCallback)((()=>{p((0,u.gL)({from:"masters",code:"MENU0003"}))}),[]);(0,l.useEffect)((()=>{g()}),[]),(0,l.useMemo)((()=>{s(null===v||void 0===v?void 0:v.menuitems)}),[null===v||void 0===v?void 0:v.menuitems]);const[b,f]=(0,l.useState)({});return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(t.A,{gutter:[24,24],className:"hp-mt-32",children:[(0,x.jsx)(o.A,{pageTitle:"Masters Dashboard"}),(0,x.jsx)(c.A,{span:24,children:(0,x.jsxs)("div",{className:"Master-dashboard",children:[(0,x.jsxs)("div",{className:"Master-dashboard-menu",children:[(0,x.jsx)(c.A,{span:24,md:12,children:(0,x.jsx)(a,{className:"hp-mb-12",placeholder:"Search...",allowClear:!0,onChange:e=>{(e=>{var a;const l=null===v||void 0===v||null===(a=v.menuitems)||void 0===a?void 0:a.filter((s=>s.name.toLowerCase().includes(e.toLowerCase())));console.log(l),s(""===e?null===v||void 0===v?void 0:v.menuitems:l)})(e.target.value)}})}),(0,x.jsx)(t.A,{children:0!=(null===e||void 0===e?void 0:e.length)?(0,x.jsx)(x.Fragment,{children:null===e||void 0===e?void 0:e.map(((e,s)=>(0,x.jsx)(l.Fragment,{children:(0,x.jsx)(c.A,{xl:8,xxl:6,md:12,span:24,children:(0,x.jsxs)("div",{className:"Master-dashboard-item hp-m-12 ",children:[(0,x.jsx)("div",{className:"title-box hp-d-inline-block ",children:(0,x.jsx)("span",{className:"mt-4",children:e.name})}),(0,x.jsx)("div",{className:"view-box hp-d-inline-block hp-float-right",children:(0,x.jsx)(h.N_,{onClick:()=>{console.log(e.link)},to:e.link,replace:!0,className:"waves-effect ml-2 hp-pt-12",children:(0,x.jsx)("i",{className:"ri-menu-fill"})})})]})})},s)))}):(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(c.A,{span:24,children:(0,x.jsx)(r.A,{className:"hp-mb-32",image:n.A,imageStyle:{height:130},description:(0,x.jsx)("h5",{children:"No Data Found"})})})})})]}),(0,x.jsx)(m.A,{tip:"Loading...",spinning:j,delay:500})]})})]})})}}}]);
//# sourceMappingURL=3124.74b75ebb.chunk.js.map