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

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

ob_start();
?>
InteractRunner.addActionConfig({confetti:{initAction:e=>{e.initActionFunction(()=>{var n={x:.5,y:.65},t=e.getTargets();let i=t.length?t[0]:window;(i=0===i.clientHeight&&0===i.clientWidth?window:i)!==window&&i!==document&&(t=i.getBoundingClientRect(),n.x=(t.left+t.width/2)/window.innerWidth,n.y=(t.top+t.height/2+20)/window.innerHeight),window.interactions.confetti(n)})}}});
<?php
return ob_get_clean();
	