<?php
namespace NeoAnimateBeta\NeoAnimate; if (!defined("ABSPATH")) { die("neoWP direct access not allowed"); }






\NeoAnimateBeta\NeoGlobal\add_action_hook("wp_head", function () {
    ?>
    <style type="text/css">

        img[src*="neo-animate--animated=true"]:not(.neo-animate--suppress-flash-prevention) { --neo-animate--visibility: hidden; visibility: var(--neo-animate--visibility) !important;}

        .neo-animate--unpacked-svg * { animation-iteration-count: 1!important; }

        @keyframes showElement { from { --neo-animate--visibility: hidden; } to { --neo-animate--visibility: visible; } };
        img[src*="neo-animate--animated=true"]:not(.neo-animate--suppress-flash-prevention) { animation: showElement 0.1s forwards 20s; }
    </style><?php
});
\NeoAnimateBeta\NeoGlobal\frontend_image_hook_register_callback(function ($get_attr, $set_attr, $image_file_path) {
    if (!\NeoAnimateBeta\NeoGlobal\is_neodraw_image_path($image_file_path)) { return; }
    $neodraw_metadata = \NeoAnimateBeta\NeoGlobal\get_image_metadata_by_path($image_file_path); if ($neodraw_metadata === false) { return; }
    $set_attr("src", \NeoAnimateBeta\NeoGlobal\add_or_update_query_params($get_attr("src"), ["neo-animate--animated" => ($neodraw_metadata["isAnimated"] ?? false) ? "true" : "false"]));
});
\NeoAnimateBeta\NeoGlobal\add_action_hook("neo_init", function () {
    \NeoAnimateBeta\NeoGlobal\enqueue_js_variable_backend("neoAnimatePluginVersion", \NeoAnimateBeta\NeoGlobal\plugin_version());
    \NeoAnimateBeta\NeoGlobal\enqueue_js_variable_backend("neoAnimateEditorUrl", \NeoAnimateBeta\NeoGlobal\get_backend_page_url("neo-animate--editor"));
    \NeoAnimateBeta\NeoGlobal\call_interface_func_implemented('\NeoAnimateBeta\NeoPlayground\interface_run_plugin_demo_redirect_20260604')("neo-animate", \NeoAnimateBeta\NeoGlobal\add_or_update_query_params(admin_url("upload.php"), ["mode" => "list", "force-old-media-lib" => "true"]));
});
function interface_get_neo_draw_editor_head_html_20260611() {
    return \NeoAnimateBeta\NeoGlobal\get_code_for_js_variables("backend");
}
function interface_get_neo_draw_editor_web_component_importer_url_20260615() {
    return \NeoAnimateBeta\NeoGlobal\plugin_url() . "/_global-web-component-importer.js";
}
