<?php
/**
 * This is an auto-generated script from src/action-types/frontend/visibility.js.
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

ob_start();
?>
InteractRunner.addActionConfig({visibility:{initAction:t=>{t.initActionFunction(()=>{const i=t.getValue("visibility"),r=t=>{t.removeAttribute("hidden"),t.setAttribute("aria-hidden",!1),t.style.removeProperty("display")},n=t=>{t.setAttribute("hidden",!0),t.setAttribute("aria-hidden",!0),t.style.setProperty("display","none","important")};t.getTargets().forEach(t=>{var e=t.hasAttribute("hidden");"toggle"===i?(e?r:n)(t):"show"===i&&e?r(t):"hide"!==i||e||n(t)})})},initialStyles:t=>{t=t.getValue("visibility");if("hide"===t||"toggle"===t)return"display: none !important;"},runInitialScript:(t,e)=>{const n=t.getValue("visibility");e.forEach(t=>{var e=t=>{t.removeAttribute("hidden"),t.setAttribute("aria-hidden",!1),t.style.removeProperty("display")},i=t=>{t.setAttribute("hidden",!0),t.setAttribute("aria-hidden",!0),t.style.setProperty("display","none","important")},r=t.hasAttribute("hidden");"toggle"===n?(r?e:i)(t):"show"===n&&r?e(t):"hide"!==n||r||i(t)}),t.removeStartingStyles()}}});
<?php
return ob_get_clean();
	