import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{t}from"./react-BatatxyT.js";import{s as n}from"./utils-BO1RPuol.js";import{$o as r,Ao as i,Bo as a,Co as o,Eo as s,No as c,Ra as l,Ro as u,To as d,Xo as f,Yo as p,Zo as m,_o as h,ao as g,bo as _,do as v,fo as y,jo as b,lo as x,oo as S,os as C,vo as w,xo as T,zo as E}from"./index-CsuVxiRQ.js";import{t as D}from"./page-content-DdXVZwik.js";import{a as O,i as k,r as A,t as j}from"./card-CBaLHc_f.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:b,path:`/masters/countries`},{title:`Customers`,description:`Manage customer master data`,icon:S,path:`/masters/clients`},{title:`Branches`,description:`Manage branch master data`,icon:f,path:`/masters/branches`},{title:`Items`,description:`Manage item master data`,icon:o,path:`/masters/items`},{title:`Units of Measure`,description:`Manage UOM master data`,icon:_,path:`/masters/uom`},{title:`Cost Components`,description:`Manage cost component types`,icon:i,path:`/masters/cost-components`},{title:`Locations`,description:`Manage project locations`,icon:s,path:`/masters/locations`},{title:`States`,description:`Manage state/province data`,icon:d,path:`/masters/states`},{title:`Cities`,description:`Manage city data`,icon:p,path:`/masters/cities`},{title:`Vendors`,description:`Manage vendor/supplier data`,icon:y,path:`/masters/vendors`},{title:`Taxes`,description:`Manage tax types and rates`,icon:T,path:`/masters/taxes`},{title:`Payment Terms`,description:`Manage payment terms`,icon:E,path:`/masters/payment-terms`},{title:`Delivery Terms`,description:`Manage delivery terms`,icon:x,path:`/masters/delivery-terms`},{title:`Delivery Periods`,description:`Manage delivery period options`,icon:a,path:`/masters/delivery-periods`},{title:`Price Basis`,description:`Manage price basis options (Ex-Works, FOR, CIF)`,icon:v,path:`/masters/price-basis`},{title:`Margin Thresholds`,description:`Configure minimum margin requirements`,icon:v,path:`/masters/margin-thresholds`},{title:`Warehouses`,description:`Manage warehouse / store locations`,icon:g,path:`/masters/warehouses`},{title:`Designations`,description:`Manage designation master data`,icon:r,path:`/masters/designations`},{title:`Price Books`,description:`Manage price book master data`,icon:m,path:`/masters/price-books`},{title:`Item Specifications`,description:`Manage all specification masters (Make, Valve Type, Size, Class, Body, etc.)`,icon:h,path:`/masters/item-specifications`},{title:`Expenses`,description:`Manage service expense types`,icon:T,path:`/masters/expenses`},{title:`Manpower Rates`,description:`Manage service manpower rates`,icon:S,path:`/service-manpower-rates`},{title:`Currencies`,description:`Manage currency master and exchange rates`,icon:u,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)(w,{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};