
/* ─────────────────────────────────────────────────────────────────
   DEMO PROFILE — single source of truth.
   Edit this object to swap the borrower profile for a different demo.
   Every field below pre-fills the form with a green left border.
   
   Updated based on MTW Bot Instructions PDF requirements.
   ───────────────────────────────────────────────────────────────── */

const DEMO_PROFILE = {
  // ── Personal Information ──────────────────────────────────────
  fullName:              '',  // From PAN (OCR)
  dob:                   '',  // From Documents (OCR)
  gender:                'Male',  // Hardcoded (read-only)
  pan:                   '',  // From PAN (OCR)
  mobile:                '9910988218',  // Hardcoded (read-only)
  email:                 'dushyant@gargautoparts.in',  // Hardcoded (read-only)
  
  // Residential Address (split into components)
  addressLine1:          '',  // Pre-filled from ITR
  addressLine2:          '',  // Optional
  pincode:               '',  // Pre-filled from ITR
  district:              '',  // Auto-filled based on pincode
  state:                 '',  // Auto-filled based on pincode

  // ── Business Information ──────────────────────────────────────
  businessName:          '',  // From Documents (OCR)
  constitution:          '',  // From Documents (OCR)
  dateEstablished:       '',  // From Documents (OCR)
  natureOfBusiness:      '',  // From Documents (OCR)
  sector:                '',  // From Documents (OCR)
  gstin:                 '',  // From GST Certificate (OCR)
  udyam:                 '',  // From Udyam Certificate (OCR)
  
  // Business Address (split into components)
  businessAddressLine1:  '',  // Pre-filled from ITR
  businessAddressLine2:  '',  // Optional
  businessPincode:       '',  // Pre-filled from ITR
  businessDistrict:      '',  // Auto-filled based on pincode
  businessState:         '',  // Auto-filled based on pincode
  
  employees:             '',  // From call

  // ── Bank Details (NEW SECTION) ────────────────────────────────
  bankName:              '',  // From Bank Statement (OCR)
  branchName:            '',  // From Bank Statement (OCR)
  accountNumber:         '',  // From Bank Statement (OCR)
  accountType:           '',  // From Bank Statement (Current/Savings/CC/OD)
  ifscCode:              '',  // From Bank Statement (OCR)

  // ── Financial Information ─────────────────────────────────────
  turnoverLY:            '',  // From Documents (OCR) - Last Year
  netProfitLY:           '',  // From Documents (OCR) - Last Year
  gstFiled:              '',  // From Documents (OCR)
  itrFiled:              '',  // From Documents (OCR) - Last 1 Year
  avgBankBalance:        '',  // From Bank Statement (OCR)
  
  existingLoans:         '',  // From call
  existingLoanAmount:    '',  // From call
  creditCardOD:          '',  // From call
  creditCardLimit:       '',  // From call

  // ── Loan Requirements ─────────────────────────────────────────
  loanAmount:            '40,00,000',  // Hardcoded to 40 lakhs
  loanPurpose:           '',  // Text description
  tenure:                '',  // Preferred loan tenure
  urgency:               '',  // Funding urgency
  expectedDisbursement:  '',  // Expected disbursement timeline
  collateralPreference:  '',  // Secured/Unsecured
  collateralType:        '',  // If collateral = Yes
  collateralValue:       '',  // If collateral = Yes
};

/* Visual treatment helper — every field in this map carries the
   green pre-fill border. Anything missing falls back to amber/red. */
const PREFILLED_KEYS = new Set(Object.keys(DEMO_PROFILE).filter(k => DEMO_PROFILE[k] !== ''));

/* Read-only fields that should be greyed out and uneditable */
const READONLY_KEYS = new Set(['gender', 'mobile', 'email']);

window.DEMO_PROFILE = DEMO_PROFILE;
window.PREFILLED_KEYS = PREFILLED_KEYS;
window.READONLY_KEYS = READONLY_KEYS;
