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

const targetStr = 'Generate kode voucher';
const idx = content.indexOf(targetStr);
if (idx !== -1) {
  console.log("Found generate section:", idx);
  console.log(content.substring(idx - 500, idx + 1500));
} else {
  console.log("Generate section not found");
}
