import{a as e,t}from"./react-DK-MTtD8.js";import{s as n}from"./utils-CXcsdpX-.js";import{t as r}from"./clock-BHoDQnT_.js";import{Ao as i,Jo as a,Ko as o,Lo as s,Mo as c,Ra as l,Ro as u,So as d,To as f,Xo as p,_o as m,ao as h,bo as g,do as _,go as v,ko as y,lo as b,oo as x,qo as S,rs as C,uo as w,wo as T,yo as E}from"./index-Ct5uU080.js";import{t as D}from"./page-content-Bh5Zxb_Y.js";import{a as O,i as k,r as A,t as j}from"./card-CCLQVS9k.js";var M=e(t(),1),N=n();function P(){let e=C(),[t,n]=(0,M.useState)(``),P=[{title:`Countries`,description:`Manage country master data`,icon:i,path:`/masters/countries`},{title:`Customers`,description:`Manage customer master data`,icon:x,path:`/masters/clients`},{title:`Branches`,description:`Manage branch master data`,icon:S,path:`/masters/branches`},{title:`Items`,description:`Manage item master data`,icon:d,path:`/masters/items`},{title:`Units of Measure`,description:`Manage UOM master data`,icon:E,path:`/masters/uom`},{title:`Cost Components`,description:`Manage cost component types`,icon:y,path:`/masters/cost-components`},{title:`Locations`,description:`Manage project locations`,icon:f,path:`/masters/locations`},{title:`States`,description:`Manage state/province data`,icon:T,path:`/masters/states`},{title:`Cities`,description:`Manage city data`,icon:o,path:`/masters/cities`},{title:`Vendors`,description:`Manage vendor/supplier data`,icon:_,path:`/masters/vendors`},{title:`Taxes`,description:`Manage tax types and rates`,icon:g,path:`/masters/taxes`},{title:`Payment Terms`,description:`Manage payment terms`,icon:u,path:`/masters/payment-terms`},{title:`Delivery Terms`,description:`Manage delivery terms`,icon:b,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:w,path:`/masters/price-basis`},{title:`Margin Thresholds`,description:`Configure minimum margin requirements`,icon:w,path:`/masters/margin-thresholds`},{title:`Warehouses`,description:`Manage warehouse / store locations`,icon:h,path:`/masters/warehouses`},{title:`Designations`,description:`Manage designation master data`,icon:p,path:`/masters/designations`},{title:`Price Books`,description:`Manage price book master data`,icon:a,path:`/masters/price-books`},{title:`Item Specifications`,description:`Manage all specification masters (Make, Valve Type, Size, Class, Body, etc.)`,icon:v,path:`/masters/item-specifications`},{title:`Expenses`,description:`Manage service expense types`,icon:g,path:`/masters/expenses`},{title:`Manpower Rates`,description:`Manage service manpower rates`,icon:x,path:`/service-manpower-rates`},{title:`Currencies`,description:`Manage currency master and exchange rates`,icon:s,path:`/masters/currencies`},{title:`Terms & Conditions`,description:`Manage terms and conditions clauses`,icon:c,path:`/masters/terms-and-conditions`},{title:`Document Types`,description:`Manage document type definitions for uploads`,icon:c,path:`/masters/document-types`}].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)(m,{className:`absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground`}),(0,N.jsx)(l,{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};