(()=>{var e={86048(){},79366(e,t,o){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(o.p=window.Jetpack_Block_Assets_Base_Url)},98490(e){"use strict";e.exports=window.wp.domReady}};const t={};function o(s){const r=t[s];if(void 0!==r)return r.exports;const n=t[s]={exports:{}};return e[s](n,n.exports,o),n.exports}o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";o(79366)})(),(()=>{"use strict";o(86048);var e=o(98490);const t=()=>{const e=document.querySelectorAll(".wp-block-jetpack-google-docs-embed");if(!e)return;const t=window.Jetpack_Google_Docs.error_msg;if(!t)return;const o=`

${t}

`;e.forEach(e=>{const t=e.querySelector("iframe");if(!t)return;const s=e.querySelector(".loader"),r=t.getAttribute("src").match(/^(http|https):\/\/(docs\.google.com)\/presentation\/d\/([A-Za-z0-9_-]+).*?$/i);if(null===r||void 0===r[1]||void 0===r[2]||void 0===r[3])return s.classList.remove("is-active"),void t.addEventListener("load",function(){setTimeout(()=>{0===Object.keys(this.contentWindow).length&&(e.innerHTML=o)},100)});const n=r[3],c=`https://docs.google.com/presentation/d/${n}/edit`,i=`https://docs.google.com/presentation/d/${n}/embed`;t.setAttribute("src",c),t.addEventListener("load",function(){i!==t.getAttribute("src")&&c===t.getAttribute("src")?0===Object.keys(this.contentWindow).length?e.innerHTML=o:t.setAttribute("src",i):s.classList.remove("is-active")})})};o.n(e)()(()=>{t()})})()})();