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





\NeoMotionBeta\NeoGlobal\add_action_hook("wp_enqueue_scripts", function () { \NeoMotionBeta\NeoGlobal\enqueue_js("neo-motion--frontend-reload-stopmotion-image-in-viewport.frontend.js"); });
\NeoMotionBeta\NeoGlobal\frontend_image_hook_register_callback(function ($get_attr, $set_attr, $image_file_path) {
    if (!\NeoMotionBeta\NeoGlobal\is_neodraw_image_path($image_file_path)) { return; }
    $neodraw_metadata = \NeoMotionBeta\NeoGlobal\get_image_metadata_by_path($image_file_path); if ($neodraw_metadata === false) { return; }
    $set_attr("src", \NeoMotionBeta\NeoGlobal\add_or_update_query_params($get_attr("src"), ["neo-motion" => ($neodraw_metadata["isMotion"] ?? false) ? "true" : "false"]));
});
\NeoMotionBeta\NeoGlobal\add_action_hook("neo_init", function () {
    $settings_render_callback = function () {
        ?><neo-setting-neo-motion-beta>
            <div slot="left">
                <h3><?php \NeoMotionBeta\NeoGlobal\echo_neo__("New stop-motion graphic", "Neue Stop-Motion Grafik") ?></h3>
                <p><?php \NeoMotionBeta\NeoGlobal\echo_neo__("Start with a prepared neoMotion template to create a stop-motion animation yourself. Preview in the editor via the play button at the top right.", "Starte mit einer vorbereiteten neoMotion-Vorlage, um eine Stop-Motion-Animation selbst zu erstellen. Vorschau im Editor über den Play-Button oben rechts.") ?></p>
            </div>
            <div slot="right">
                <neo-button-neo-motion-beta class="neo-motion--create-starter-button"><?php \NeoMotionBeta\NeoGlobal\echo_neo__("Create new", "Neu erstellen"); ?></neo-button-neo-motion-beta>
            </div>
        </neo-setting-neo-motion-beta>
        <?php
    };
    \NeoMotionBeta\NeoGlobal\call_interface_func_implemented('\NeoMotionBeta\NeoSettings\interface_add_neo_setting_20260326')("neo-motion", $settings_render_callback);
    $assets_callback = function () { \NeoMotionBeta\NeoGlobal\call_interface_func_implemented('\NeoMotionBeta\NeoDraw\interface_draw_editor_dialog_init_20250302')(); \NeoMotionBeta\NeoGlobal\enqueue_js_variable_backend("neoMotionStarterImageUrl", "data:image/svg+xml;base64," . base64_encode(\NeoMotionBeta\NeoGlobal\fs_file_get_contents(\NeoMotionBeta\NeoGlobal\plugin_path() . "/img/neo-motion--starter-image.svg"))); \NeoMotionBeta\NeoGlobal\enqueue_js_variable_backend("neoMotionMediaLibraryUrl", admin_url("upload.php")); \NeoMotionBeta\NeoGlobal\enqueue_js("neo-motion--settings.js"); };
    \NeoMotionBeta\NeoGlobal\call_interface_func_implemented('\NeoMotionBeta\NeoSettings\interface_add_neo_settings_asset_loading_callback_20250918')($assets_callback);
    [$neo_motion_settings_section_url, $interface_ok] = \NeoMotionBeta\NeoGlobal\call_interface_func_implemented('\NeoMotionBeta\NeoSettings\interface_get_neo_settings_section_url_20260613')("neo-motion"); if (!$interface_ok) { return; }
    \NeoMotionBeta\NeoGlobal\call_interface_func_implemented('\NeoMotionBeta\NeoPlayground\interface_run_plugin_demo_redirect_20260604')("neo-motion", $neo_motion_settings_section_url);
});
function interface_get_neo_draw_editor_head_html_20260615() {
    return \NeoMotionBeta\NeoGlobal\get_code_for_js_variables("backend");
}
function interface_get_neo_draw_editor_web_component_importer_url_20260615() {
    return \NeoMotionBeta\NeoGlobal\plugin_url() . "/_global-web-component-importer.js";
}
