PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
← All changes | _inc/blocks/google-docs-embed/view.js +1 -1 13.7.2 → 16.3-beta View file →
@@ -1 +1 @@
1 -(()=>{var t={80425:(t,e,r)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(r.p=window.Jetpack_Block_Assets_Base_Url)},47701:t=>{"use strict";t.exports=window.wp.domReady}},e={};function r(o){var s=e[o];if(void 0!==s)return s.exports;var c=e[o]={exports:{}};return t[o](c,c.exports,r),c.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");o.length&&(t=o[o.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t+"../"})(),(()=>{"use strict";r(80425)})(),(()=>{"use strict";var t=r(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 r=`<p class="wp-block-jetpack-google-docs-embed__error-msg">${e}</p>`;t.forEach((t=>{const e=t.querySelector("iframe"),o=t.querySelector(".loader");if(!e)return;const s=e.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 e.addEventListener("load",(function(){0===Object.keys(this.contentWindow).length&&(t.innerHTML=r)}));const c=s[3],n=`https://docs.google.com/presentation/d/${c}/edit`,i=`https://docs.google.com/presentation/d/${c}/embed`;e.setAttribute("src",n),e.addEventListener("load",(function(){i!==e.getAttribute("src")&&n===e.getAttribute("src")?0===Object.keys(this.contentWindow).length?t.innerHTML=r:e.setAttribute("src",i):o.classList.remove("is-active")}))}))};r.n(t)()((()=>{e()}))})()})();
1 +(()=>{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=`<p class="wp-block-jetpack-google-docs-embed__error-msg">${t}</p>`;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()})})()})();