// Static config: categories, integrations stub, cleaner-form schema, today's date.
// Houses moved to Supabase (loaded via the store); the seed script in
// scripts/seed.mjs holds the canonical seed values.

const CATEGORIES = {
  income: ['Airbnb', 'Lodgify', 'Direct booking', 'Additional guest fee', 'Other fee'],
  expense: [
    'Mortgage',
    'Property Taxes',
    'Property Insurance',
    'Property Management',
    'Repairs and Maintenance',
    'Electricity',
    'Gas/Heating',
    'Water',
    'Internet',
    'Cleaning',
    'Laundry',
    'Spa Cleaning',
    'Booking Software',
    'Accounting Fees',
    'Landscaping',
    'Cleaning Supplies',
    'Hospitality Items',
    'Decor and Furniture',
    'Channel Tax',
    'Misc. Expenses',
  ],
};

const TODAY = '2026-04-24';

const CONNECTIONS = [
  {
    id: 'airbnb',
    provider: 'Airbnb',
    status: 'connected',
    lastSynced: '2026-04-24T08:14:00',
    accountLabel: 'host@example.com',
    imported: 284,
  },
  {
    id: 'lodgify',
    provider: 'Lodgify',
    status: 'connected',
    lastSynced: '2026-04-24T06:02:00',
    accountLabel: 'API key ••••••7f2a',
    imported: 96,
  },
  {
    id: 'stripe',
    provider: 'Stripe',
    status: 'disconnected',
    lastSynced: null,
    accountLabel: null,
    imported: 0,
  },
  {
    id: 'quickbooks',
    provider: 'QuickBooks',
    status: 'disconnected',
    lastSynced: null,
    accountLabel: null,
    imported: 0,
  },
];

// Default cleaner-portal form fields. Users can reorder / edit / add to these
// in Portal Settings. The two 'system' fields (property + date) are always
// required and can't be removed.
const DEFAULT_CLEANER_FIELDS = [
  { id: 'houseId',        kind: 'property', label: 'Property',            required: true,  system: true },
  { id: 'date',           kind: 'date',     label: 'Date cleaned',        required: true,  system: true },
  { id: 'laundryAmount',  kind: 'money',    label: 'Laundry bill',        hint: 'From the laundromat receipt', required: true },
  { id: 'laundryReceipt', kind: 'photo',    label: 'Laundry receipt',     required: false },
  {
    id: 'restock',
    kind: 'checklist',
    label: 'Restock needed',
    hint: 'Check anything that needs to be replaced',
    items: ['Coffee pods', 'Paper towels', 'Dish soap', 'Hand soap', 'Toilet paper', 'Trash bags', 'Shampoo/conditioner', 'Bottled water'],
    required: false,
  },
  { id: 'damage',         kind: 'yesno',    label: 'Any damage to report?', required: true },
  { id: 'notes',          kind: 'longtext', label: 'Notes (optional)',    hint: 'Anything else you want us to know', required: false },
];

Object.assign(window, { CATEGORIES, TODAY, CONNECTIONS, DEFAULT_CLEANER_FIELDS });
