/* eslint-disable */
/* © 2026 K2B NETWORK SOLUTIONS LLC. All rights reserved.
Proprietary and confidential. Unauthorized copying, distribution, or use of
this file, via any medium, is strictly prohibited. Original work product. */
// JBREWS DMS — MenuLanding.
// One reusable "department menu" screen that matches the modern shell:
// a titled content area with grouped cards. Each card routes to a real
// working screen via go(target). Mirrors the legacy K2B module menus
// (GL Reports, General Ledger, Parts Inventory, Service Invoices, Vehicle
// Inventory, Sales Manager) one-for-one.
const MenuCard = ({ item, go }) => {
const disabled = !item.target;
return (
);
};
// groups: [{ label, items: [{ label, desc, icon, target, pre }] }]
const MenuLanding = ({ title, legacyName, subtitle, groups, go, onClose, columns = 4 }) => {
return (
MODULE MENU
{legacyName ? {legacyName} : null}
{title}
{subtitle ?
{subtitle}
: null}
{onClose ? (
) : null}
{groups.map((g) => (
{g.label ? {g.label}
: null}
{g.items.map((it) => )}
))}
);
};
/* ─────────────────────────────────────────────────────────────
Menu configurations — faithful to the scanned legacy screens.
Every button routes to a real working screen in this kit.
───────────────────────────────────────────────────────────── */
// helper: set a tab hint a destination screen reads on mount
const _acctTab = (t) => () => { window.__acctTab = t; };
const _aoTab = (t) => () => { window.__aoTab = t; };
// ── GL Reports Menu (scan 1) — 4 report families ──
const GLReportsMenu = ({ go, onClose }) => (
);
// ── General Ledger Menu (scan 2) ──
const GeneralLedgerMenu = ({ go, onClose }) => (
);
// ── Parts Inventory Menu (scan 6) ──
const PartsInventoryMenu = ({ go, onClose }) => (
);
// ── Service Invoices Menu (scan 7) ──
const ServiceInvoicesMenu = ({ go, onClose }) => (
);
// ── Vehicle Inventory Menu (scan 8) ──
const VehicleInventoryMenu = ({ go, onClose }) => (
);
// ── Sales Manager Menu (scan 9) ──
const SalesManagerMenu = ({ go, onClose }) => (
);
Object.assign(window, {
MenuLanding, MenuCard,
GLReportsMenu, GeneralLedgerMenu, PartsInventoryMenu,
ServiceInvoicesMenu, VehicleInventoryMenu, SalesManagerMenu,
});