[
    {
        "id": "api",
        "component": "component_api",
        "ws_domain": ""
    },
    {
        "id": "div_head",
        "component": "component_div",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "default"
        },
        "content": ["include:*application*/superadmin/zlib_mod/front/head/head"]
    },
    {
        "id": "migration_title",
        "component": "component_messagehtml",
        "html": "<h2 style='margin:30px auto 20px auto;max-width:900px;color:#333;font-size:24px;font-weight:600;'>Migration des Emails</h2>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_description",
        "component": "component_messagehtml",
        "html": "<p style='margin:0 auto 20px auto;max-width:900px;color:#666;line-height:1.5;'>Cet outil permet de migrer les emails existants des tickets vers les nouvelles tables email et ticket_email_participant pour ameliorer la recherche et la conformite RGPD.</p>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_password_field",
        "component": "component_form_field_text",
        "label": "Mot de passe de securite",
        "placeholder": "Entrez le mot de passe de migration",
        "value": "",
        "adjust": {
            "align": "center",
            "top": "10px",
            "left": "",
            "right": "",
            "bottom": "10px",
            "width": "900px"
        }
    },
    {
        "id": "migration_options",
        "component": "component_messagehtml",
        "html": "<div style='margin:10px auto 20px auto;max-width:900px;'><label style='display:flex;align-items:center;gap:10px;cursor:pointer;'><input type='checkbox' id='dry_run_checkbox' checked style='width:18px;height:18px;'> <span>Mode simulation (DRY RUN) - Aucune modification ne sera effectuee</span></label></div>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_buttons",
        "component": "component_messagehtml",
        "html": "<div style='margin:10px auto 20px auto;max-width:900px;display:flex;gap:15px;'><button type='button' onclick='checkMigrationStatus()' style='padding:12px 24px;background:#6c757d;color:white;border:none;border-radius:6px;cursor:pointer;font-size:14px;'>Verifier l etat</button><button type='button' onclick='runMigration()' style='padding:12px 24px;background:#198754;color:white;border:none;border-radius:6px;cursor:pointer;font-size:14px;'>Lancer la migration</button></div>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_status_title",
        "component": "component_messagehtml",
        "html": "<h3 style='margin:30px auto 10px auto;max-width:900px;color:#444;font-size:18px;'>Etat actuel</h3>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_status_content",
        "component": "component_messagehtml",
        "html": "<div id='status_content' style='margin:0 auto;max-width:900px;min-height:100px;padding:20px;background:#f8f9fa;border-radius:8px;'><div style='text-align:center;color:#6c757d;'>Cliquez sur Verifier l etat pour voir les statistiques</div></div>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_progress",
        "component": "component_messagehtml",
        "html": "<div id='progress_section' style='display:none;margin:30px auto;max-width:900px;padding:20px;background:#e7f3ff;border:1px solid #b6d4fe;border-radius:8px;'><h3 style='margin:0 0 15px 0;color:#0c63e4;'>Progression</h3><div id='progress_bar_container'></div><div id='progress_log' style='max-height:300px;overflow-y:auto;background:#1e1e1e;color:#d4d4d4;padding:15px;border-radius:6px;font-family:monospace;font-size:12px;margin-top:15px;'></div></div>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_results",
        "component": "component_messagehtml",
        "html": "<div id='results_section' style='display:none;margin:30px auto;max-width:900px;padding:20px;background:#d1e7dd;border:1px solid #badbcc;border-radius:8px;'><h3 style='margin:0 0 15px 0;color:#0f5132;'>Resultats</h3><div id='results_content'></div></div>",
        "adjust": {
            "align": "center",
            "top": "",
            "left": "",
            "right": "",
            "bottom": "",
            "width": "900px"
        }
    },
    {
        "id": "migration_js",
        "component": "component_js",
        "src": "*application*/superadmin/migration_email/migration_email.js"
    },
    {
        "id": "migration_css",
        "component": "component_css",
        "src": "*application*/superadmin/migration_email/migration_email.css"
    }
]
