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

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

ob_start();
?>
InteractRunner.addInteractionConfig({enterViewport:{initTimeline:t=>{let n=null;var e=t.getCurrentTrigger(),i=e.getBoundingClientRect(),i=Math.min(window.innerHeight,i.height)/i.height-.01,r=parseFloat(t.getOption("threshold",.3)),r=Math.min(Math.max(r,0),i);const o=new IntersectionObserver(e=>{e.forEach(e=>{e=e.isIntersecting?0:1;t.timelines[e].hasActions&&(n?.destroy(!1),(n=t.createTimelineInstance(e))?.play())})},{threshold:r});return o.observe(e),()=>{n?.destroy(),o.disconnect()}}}});
<?php
return ob_get_clean();
	