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

// Search for useMemo or variables list before the cards
const searchStr = 'Total Omset Terfilter';
const idx = content.indexOf(searchStr);
if (idx !== -1) {
  console.log("Found card title at index", idx);
  console.log(content.substring(idx - 10000, idx));
} else {
  console.log("Card title not found");
}
