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

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

ob_start();
?>
InteractRunner.addActionConfig({toggleVideo:{initAction:o=>{o.initActionFunction(()=>{var e=o.getTargets();let a=parseFloat(o.getValue("startTime"));const t=o.getValue("mode"),n=e[0]?.querySelector("video");n&&(n.preload="auto",e=()=>{switch(a=Math.min(a,n.duration),t){case"play":a&&(n.currentTime=a),n.play();break;case"pause":n.pause();break;case"toggle":n.paused?n.play():n.pause()}},1<=n.readyState?e():n.addEventListener("loadedmetadata",e,{once:!0}))})}}});
<?php
return ob_get_clean();
	