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




function interface_freemius_pricing_page_slug_20250613()    { return \NeoDuplicateFull\NeoGlobal\plugin_settings_page_slug() . "-pricing"; }
function interface_freemius_pricing_page_url_20260131()     { return menu_page_url(interface_freemius_pricing_page_slug_20250613(), display: false) ?: null; }
function interface_freemius_settings_section_url_20251005() { return admin_url("admin.php?page=" . \NeoDuplicateFull\NeoGlobal\plugin_settings_page_slug() . "#neo-settings--section-neo-pro"); }


\NeoDuplicateFull\NeoGlobal\add_action_hook("admin_footer", function () {
    if (!(\NeoDuplicateFull\NeoGlobal\query_param("page") === interface_freemius_pricing_page_slug_20250613())) { return; }
    $pricing_page_freemius_hint_url = \NeoDuplicateFull\NeoGlobal\get_neo_pricing_page_freemius_hint_url(); /* phpcs:ignore PluginCheck.CodeAnalysis.Offloading.OffloadedContent */ /* The image must be loaded from our server to ensure that the displayed information is always consistent with the current data from the Freemius pricing table. This is necessary to prevent users from being misled by outdated or inconsistent content. */
    ?><script type="module">
        import { observeOnce } from "<?php echo esc_url(\NeoDuplicateFull\NeoGlobal\plugin_url()) ?>/_global--observer.js";
        observeOnce(".fs-section.fs-section--packages", (packagesSectionNode) => {
            const newSectionNode = document.createElement("section");
            newSectionNode.classList.add("fs-section");
            newSectionNode.innerHTML = `<img src="<?php echo esc_url($pricing_page_freemius_hint_url); ?>" alt="Pricing Hint" style="width: 80%; max-width: 600px; margin: 0 auto; margin-bottom: 30px; display: block;">`;  
            packagesSectionNode.parentNode.insertBefore(newSectionNode, packagesSectionNode.nextSibling);
        });
    </script><?php
});


\NeoDuplicateFull\NeoGlobal\add_action_hook("admin_footer", function () {
    if (!(\NeoDuplicateFull\NeoGlobal\query_param("page") === interface_freemius_pricing_page_slug_20250613())) { return; }
    ?><style>.fs-testimonial>:is(header, section) { height: auto !important; }</style><?php 
});
