1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
!function(){var e={5630:function(e,t,r){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(r.p=window.Jetpack_Block_Assets_Base_Url.url)}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"}();var o={};!function(){"use strict";r(5630)}(),function(){"use strict";r.r(o);var e=window.wp.domReady,t=r.n(e),n=window.wp.data;const i="jetpack/media-source";t()((function(){var e;const t=null===(e=(0,n.select)(i))||void 0===e?void 0:e.getDefaultMediaSource();var r;t||(null===(r=document)||void 0===r||r.body.classList.add("no-media-source"));document.body.addEventListener("click",(e=>{var r,o,c,a,u;if(null==e||null===(r=e.target)||void 0===r||null===(o=r.classList)||void 0===o||!o.contains("wp-block-jetpack-dialogue__timestamp_link"))return;const l=null===(c=e.target)||void 0===c||null===(a=c.href)||void 0===a||null===(u=a.split("#"))||void 0===u?void 0:u[1];l&&t&&(e.preventDefault(),(0,n.dispatch)(i).setMediaSourceCurrentTime(t.id,l),(0,n.dispatch)(i).playMediaSource(t.id,l))}))}))}();var n=window;for(var i in o)n[i]=o[i];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})}(); |