|
1
|
|
-!function(){var t={80425:function(t,e,o){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(o.p=window.Jetpack_Block_Assets_Base_Url.url)},47701:function(t){"use strict";t.exports=window.wp.domReady}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var c=e[r]={exports:{}};return t[r](c,c.exports,o),c.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t+"../"}(),function(){"use strict";o(80425)}(),function(){"use strict";var t=o(47701);const e=()=>{const t=document.querySelectorAll(".wp-block-jetpack-google-docs-embed");if(!t)return;const e=window.Jetpack_Google_Docs.error_msg;if(!e)return;const o=`<p class="wp-block-jetpack-google-docs-embed__error-msg">${e}</p>`;t.forEach((t=>{const e=t.querySelector("iframe"),r=t.querySelector(".loader");if(!e)return;const n=e.getAttribute("src").match(/^(http|https):\/\/(docs\.google.com)\/presentation\/d\/([A-Za-z0-9_-]+).*?$/i);if(null===n||void 0===n[1]||void 0===n[2]||void 0===n[3])return r.classList.remove("is-active"),void e.addEventListener("load",(function(){0===Object.keys(this.contentWindow).length&&(t.innerHTML=o)}));const c=n[3],i=`https://docs.google.com/presentation/d/${c}/edit`,s=`https://docs.google.com/presentation/d/${c}/embed`;e.setAttribute("src",i),e.addEventListener("load",(function(){s!==e.getAttribute("src")&&i===e.getAttribute("src")?0===Object.keys(this.contentWindow).length?t.innerHTML=o:e.setAttribute("src",s):r.classList.remove("is-active")}))}))};o.n(t)()((()=>{e()}))}()}(); |
|
1
|
+(()=>{var e={86048(){},79366(e,t,r){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)},98490(e){"use strict";e.exports=window.wp.domReady}},t={};function r(o){var s=t[o];if(void 0!==s)return s.exports;var c=t[o]={exports:{}};return e[o](c,c.exports,r),c.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 e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var s=o.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=o[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e+"../"})(),(()=>{"use strict";r(79366)})(),(()=>{"use strict";r(86048);var e=r(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 r=`<p class="wp-block-jetpack-google-docs-embed__error-msg">${t}</p>`;e.forEach(e=>{const t=e.querySelector("iframe");if(!t)return;const o=e.querySelector(".loader"),s=t.getAttribute("src").match(/^(http|https):\/\/(docs\.google.com)\/presentation\/d\/([A-Za-z0-9_-]+).*?$/i);if(null===s||void 0===s[1]||void 0===s[2]||void 0===s[3])return o.classList.remove("is-active"),void t.addEventListener("load",function(){setTimeout(()=>{0===Object.keys(this.contentWindow).length&&(e.innerHTML=r)},100)});const c=s[3],i=`https://docs.google.com/presentation/d/${c}/edit`,n=`https://docs.google.com/presentation/d/${c}/embed`;t.setAttribute("src",i),t.addEventListener("load",function(){n!==t.getAttribute("src")&&i===t.getAttribute("src")?0===Object.keys(this.contentWindow).length?e.innerHTML=r:t.setAttribute("src",n):o.classList.remove("is-active")})})};r.n(e)()(()=>{t()})})()})(); |