import{a as e,t}from"./react-D0JuimcS.js";import{o as n}from"./utils-Dac180Gn.js";import{t as r}from"./clock-B4hZAtOK.js";import{Eo as i,Fo as a,Ha as o,Ja as s,La as c,Oo as l,Qa as u,Ra as d,To as f,Ua as p,Va as m,Ya as h,Za as g,co as _,eo as v,ha as y,ho as b,mo as x,no as S,so as C,to as w,uo as T,wo as E}from"./index-BP3TYB4i.js";import{t as D}from"./page-content-DDtdeMxM.js";import{a as O,i as k,r as A,t as j}from"./card-BVFw-jgA.js";var M=e(t(),1),N=n();function P(){let e=a(),[t,n]=(0,M.useState)(``),P=[{title:`Countries`,description:`Manage country master data`,icon:_,path:`/masters/countries`},{title:`Customers`,description:`Manage customer master data`,icon:d,path:`/masters/clients`},{title:`Branches`,description:`Manage branch master data`,icon:f,path:`/masters/branches`},{title:`Items`,description:`Manage item master data`,icon:v,path:`/masters/items`},{title:`Units of Measure`,description:`Manage UOM master data`,icon:g,path:`/masters/uom`},{title:`Cost Components`,description:`Manage cost component types`,icon:C,path:`/masters/cost-components`},{title:`Locations`,description:`Manage project locations`,icon:S,path:`/masters/locations`},{title:`States`,description:`Manage state/province data`,icon:w,path:`/masters/states`},{title:`Cities`,description:`Manage city data`,icon:E,path:`/masters/cities`},{title:`Vendors`,description:`Manage vendor/supplier data`,icon:p,path:`/masters/vendors`},{title:`Taxes`,description:`Manage tax types and rates`,icon:u,path:`/masters/taxes`},{title:`Payment Terms`,description:`Manage payment terms`,icon:b,path:`/masters/payment-terms`},{title:`Delivery Terms`,description:`Manage delivery terms`,icon:m,path:`/masters/delivery-terms`},{title:`Delivery Periods`,description:`Manage delivery period options`,icon:r,path:`/masters/delivery-periods`},{title:`Price Basis`,description:`Manage price basis options (Ex-Works, FOR, CIF)`,icon:o,path:`/masters/price-basis`},{title:`Margin Thresholds`,description:`Configure minimum margin requirements`,icon:o,path:`/masters/margin-thresholds`},{title:`Warehouses`,description:`Manage warehouse / store locations`,icon:c,path:`/masters/warehouses`},{title:`Designations`,description:`Manage designation master data`,icon:l,path:`/masters/designations`},{title:`Price Books`,description:`Manage price book master data`,icon:i,path:`/masters/price-books`},{title:`Item Specifications`,description:`Manage all specification masters (Make, Valve Type, Size, Class, Body, etc.)`,icon:s,path:`/masters/item-specifications`},{title:`Expenses`,description:`Manage service expense types`,icon:u,path:`/masters/expenses`},{title:`Manpower Rates`,description:`Manage service manpower rates`,icon:d,path:`/service-manpower-rates`},{title:`Currencies`,description:`Manage currency master and exchange rates`,icon:x,path:`/masters/currencies`},{title:`Terms & Conditions`,description:`Manage terms and conditions clauses`,icon:T,path:`/masters/terms-and-conditions`}].filter(e=>{if(!t)return!0;let n=t.toLowerCase();return e.title.toLowerCase().includes(n)||e.description.toLowerCase().includes(n)});return(0,N.jsxs)(D,{children:[(0,N.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,N.jsxs)(`div`,{children:[(0,N.jsx)(`h1`,{className:`text-3xl font-bold`,children:`Masters`}),(0,N.jsx)(`p`,{className:`text-muted-foreground`,children:`Manage master data for the system`})]}),(0,N.jsxs)(`div`,{className:`relative w-64 shrink-0`,children:[(0,N.jsx)(h,{className:`absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground`}),(0,N.jsx)(y,{placeholder:`Search masters...`,value:t,onChange:e=>n(e.target.value),className:`pl-9`})]})]}),(0,N.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4`,children:[P.map(t=>(0,N.jsx)(j,{className:`cursor-pointer hover:shadow-lg transition-shadow`,onClick:()=>e(t.path),children:(0,N.jsx)(k,{children:(0,N.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,N.jsx)(t.icon,{className:`h-8 w-8 text-[#1a3c6e]`}),(0,N.jsxs)(`div`,{children:[(0,N.jsx)(O,{children:t.title}),(0,N.jsx)(A,{children:t.description})]})]})})},t.path)),P.length===0&&(0,N.jsxs)(`p`,{className:`col-span-full text-center text-muted-foreground py-8`,children:[`No masters found matching "`,t,`"`]})]})]})}export{P as default};