(()=>{"use strict";var e={7966(){},943(e,t,r){function o(e){const t="preview"===e;return{bigPlayButton:t,playPauseAnimation:!t,controlBar:!t,shareButton:!t,showPoster:t,title:!t}}function s(){const e=document.querySelectorAll(".wp-block-jetpack-videopress");0!==e.length&&e.forEach(function(e){const t=e.querySelector("iframe");if(!t)return;if(!window?.VideoPressIframeApi)return;const r=e.querySelector('script[type="application/json"]');if(!r)return;let s;try{s=JSON.parse(r.innerHTML)}catch(e){return void console.error(e)}r.remove();let n=!1;const i=window.VideoPressIframeApi(t,()=>{i.status.onPlayerStatusChanged((e,t)=>{"ready"===e&&"playing"===t&&(i.controls.pause(),i.controls.seek(s.previewAtTime),i.customize?.set(o("preview")))}),i.status.onTimeUpdate(e=>{if(n)return;const t=1e3*e,r=s.previewAtTime,o=r+s.previewLoopDuration;(t<r||t>o)&&i.controls.seek(r)})}),a=e.querySelector(".jetpack-videopress-player__overlay");a&&(s.showControls&&a.addEventListener("click",()=>{n=!0,a.remove(),i.customize?.set(o("playback")),i.controls.seek(0)}),a.addEventListener("mouseenter",()=>{i.customize?.set({playPauseAnimation:!1,showPoster:!1,title:!1}),i.controls.play()}),a.addEventListener("mouseleave",()=>{i.customize?.set({playPauseAnimation:!1,showPoster:!0,title:!1}),i.controls.pause()}))})}r.d(t,{Z:()=>s})},8490(e){e.exports=window.wp.domReady}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(8490),s=r.n(o),n=r(943);r(7966);s()(n.Z)})();