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

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

ob_start();
?>
InteractRunner.addInteractionConfig({mousePress:{initTimeline:t=>{const n=t.getOption("preventDefault",!1);let r=null,i=null,o=!1;const e=e=>{n&&e.preventDefault(),o=!0,t.timelines[0].hasActions&&(e.preventDefault(),i?.destroy(!1),r?.destroy(!1),(r=t.createTimelineInstance(0))?.play())},s=()=>{o=!1,t.timelines[1].hasActions&&(i?.destroy(!1),r?.destroy(!1),(i=t.createTimelineInstance(1))?.play())},a=e=>{o&&(n&&e.preventDefault(),s())},d=()=>{o&&s()},p=t.getCurrentTrigger();return p.addEventListener("pointerdown",e),p.addEventListener("pointerup",a),p.addEventListener("pointercancel",a),document.addEventListener("pointerup",d),()=>{r?.destroy(),i?.destroy(),p.removeEventListener("pointerdown",e),p.removeEventListener("pointerup",a),p.removeEventListener("pointercancel",a),document.removeEventListener("pointerup",d)}}}});
<?php
return ob_get_clean();
	