import{l as e,t}from"./vendor-react-CAGJwf-T.js";import{t as n}from"./arrow-right-lxz0iUkq.js";import{t as r}from"./car-W7kVO97r.js";import{t as i}from"./map-pin-NW0F6hp4.js";import{t as a}from"./utils-Dk_44zMo.js";import{It as o}from"./index-Z_bdWDpJ.js";import{t as s}from"./PageHeader-UI75nV23.js";var c=t(),l=[{label:`Geography & Operations`,description:`Locations, delivery infrastructure, and logistics`,items:[{name:`Area Management`,description:`States, districts, cities, pincodes, zones, and service areas.`,icon:i,href:`/admin/masters/areas`,ready:!0}]},{label:`Vehicle Catalog`,description:`Vehicle make, model, and variant master used for loan collateral`,items:[{name:`Vehicle Master`,description:`Makes, models, and variants with ex-showroom pricing.`,icon:r,href:`/admin/masters/vehicles`,ready:!0}]},{label:`Loan Catalog`,description:`Loan products and their versioned schemes used for origination`,items:[{name:`Loan Products`,description:`Loan products and versioned schemes — rates, tenure, LTV, and fees.`,icon:o,href:`/admin/masters/loan-products`,ready:!0}]}];function u(){let t=e();return(0,c.jsxs)(`div`,{children:[(0,c.jsx)(s,{title:`Master Management`,description:`Configure master data used across the platform. These records power dropdowns, filters, and business logic throughout the system.`}),(0,c.jsx)(`div`,{className:`space-y-8`,children:l.map(e=>(0,c.jsxs)(`section`,{children:[(0,c.jsxs)(`div`,{className:`mb-3`,children:[(0,c.jsx)(`h2`,{className:`text-[13px] font-semibold text-[var(--color-text-primary)]`,children:e.label}),(0,c.jsx)(`p`,{className:`text-[12px] text-[var(--color-text-muted)] mt-0.5`,children:e.description})]}),(0,c.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3`,children:e.items.map(e=>(0,c.jsx)(d,{item:e,onClick:()=>t(e.href)},e.href))})]},e.label))})]})}function d({item:e,onClick:t}){let r=e.ready!==!1;return(0,c.jsxs)(`button`,{onClick:t,className:a(`group relative flex items-start gap-4 w-full text-left`,`px-4 py-4 rounded-xl border transition-all duration-150`,`bg-[var(--color-surface)] border-[var(--color-border)]`,`hover:border-[var(--color-primary)]/20 hover:shadow-[var(--shadow-sm)]`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-primary)]/30 focus-visible:ring-offset-1`),children:[(0,c.jsx)(`div`,{className:a(`flex items-center justify-center w-10 h-10 rounded-lg flex-shrink-0 transition-colors duration-150`,`bg-slate-100 dark:bg-slate-800 text-[var(--color-text-muted)]`,`group-hover:bg-[var(--color-primary)]/[0.08] group-hover:text-[var(--color-primary)]`),children:(0,c.jsx)(e.icon,{className:`w-[18px] h-[18px]`})}),(0,c.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`h3`,{className:`text-[13px] font-semibold text-[var(--color-text-primary)] truncate`,children:e.name}),!r&&(0,c.jsx)(`span`,{className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-medium bg-amber-50 dark:bg-amber-950/40 text-amber-600 border border-amber-100 whitespace-nowrap`,children:`Coming soon`}),e.count!==void 0&&(0,c.jsxs)(`span`,{className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-semibold bg-slate-100 dark:bg-slate-800 text-[var(--color-text-muted)] tabular-nums whitespace-nowrap`,children:[e.count,` records`]})]}),(0,c.jsx)(`p`,{className:`text-[12px] text-[var(--color-text-muted)] leading-relaxed mt-0.5 line-clamp-2`,children:e.description})]}),(0,c.jsx)(n,{className:a(`w-4 h-4 flex-shrink-0 mt-3 text-[var(--color-text-muted)]`,`opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0`,`transition-all duration-150`)})]})}export{u as default};