// Client CRM screen — table + selectable profile panel. (() => { const { Card, Badge, Avatar, Tabs, Input } = window.TechyFuelOSDesignSystem_be0222; const TF_STATUS = { active: { tone: 'success', label: 'Active client' }, inactive: { tone: 'neutral', label: 'Inactive' }, lead: { tone: 'brand', label: 'Lead' }, }; // Capitalize the first letter of each word as the user types. function titleCase(s) { return String(s).replace(/(^|\s)([a-z])/g, (m, p, c) => p + c.toUpperCase()); } const CLIENT_CURRENCIES = ['PKR', 'USD', 'EUR', 'GBP', 'AED', 'INR']; const CURRENCY_SYMBOL = { PKR: 'Rs', USD: '$', EUR: '€', GBP: '£', AED: 'AED', INR: '₹' }; function fmtValue(n, currency) { const sym = CURRENCY_SYMBOL[currency || 'USD'] || ''; if (!n) return sym + '0/mo'; return sym + Number(n).toLocaleString() + '/mo'; } function Th({ children, w }) { return
{clients.length} {clients.length === 1 ? 'client' : 'clients'}{activeCount ? ` · ${activeCount} active` : ''}
| Company | Contact | Status | Industry | Value |
|---|