const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const startIdx = 1286622; // index of n==="settings"
const sub = content.substring(startIdx, startIdx + 8000);

// Find all h3 tags (card titles) in settings
const regex = /children:"([^"]+)"/g;
let match;
while ((match = regex.exec(sub)) !== null) {
  if (match[0].includes('Sistem') || match[0].includes('WhatsApp') || match[0].includes('Tripay') || match[0].includes('Template') || match[0].includes('Billing') || match[0].includes('Pengaturan') || match[0].includes('Keuntungan')) {
    console.log(`Found setting heading/label: ${match[1]} at relative index ${match.index}`);
  }
}
