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

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

ob_start();
?>
InteractRunner.addActionConfig({toggleClass:{initAction:t=>{t.initActionFunction(()=>{const e=t.getValue("class"),s=t.getValue("action");e&&t.getTargets().forEach(t=>{"toggle"===s?t.classList.toggle(e):"add"===s?t.classList.add(e):"remove"===s&&t.classList.remove(e)})})}}});
<?php
return ob_get_clean();
	