import re

# Read file
with open('assets/js/app.js', 'r', encoding='utf-8') as f:
    content = f.read()

# Map of replacements
replacements = {
    # Icons in toasts and popups
    'âœ"': '✓',
    'âœ•': '✕',
    'â„¹': 'ⓘ',
    'âš ': '⚠',
    'ðŸ"': '📍',
    'ðŸ›£ï¸': '🛣️',
    'â¬ ': '⬜',
    'ðŸ'¤': '👥',
    'ðŸ—'': '🗑️',
    'ðŸ•Œ': '🏢',
    'ðŸ\"¡': '📍',
    'â€"': '–',
    'â€™': "'",
    'Â©': '©',
    'Â²': '²',
    'â³': '⏳',
}

# Apply replacements
for old, new in replacements.items():
    content = content.replace(old, new)

# Write back
with open('assets/js/app.js', 'w', encoding='utf-8') as f:
    f.write(content)

print("✓ File app.js berhasil diperbaiki!")
