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/cookie-consent/view.js +1 -1 12.1.3 → 16.3-beta View file →
@@ -1 +1 @@
1 -!function(){var t={80425:function(t,e,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)},47701:function(t){"use strict";t.exports=window.wp.domReady}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;n.g.importScripts&&(t=n.g.location+"");var e=n.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(/\/[^\/]+$/,"/"),n.p=t+"../"}(),function(){"use strict";n(80425)}(),function(){"use strict";var t=n(47701);n.n(t)()((function(){const t=document.querySelector(".wp-block-jetpack-cookie-consent"),e=t.querySelector("span"),n=parseInt(e.textContent),r=new Date(Date.now()+864e5*n),o=t.querySelector(".wp-block-button a");o.setAttribute("role","button"),o.setAttribute("href","javascript:void(0)"),o.addEventListener("click",(function(){try{document.cookie=`eucookielaw=${r.getTime()};path=/;expires=${r.toGMTString()}`,t.classList.add("is-dismissed"),t.addEventListener("transitionend",(()=>t.remove()));const e=new Event("eucookielaw-dismissed");document.dispatchEvent(e)}catch(t){}}))}))}()}();
1 +(()=>{var e={44036(){},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(n){const s=t[n];if(void 0!==s)return s.exports;const c=t[n]={exports:{}};return e[n](c,c.exports,o),c.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 n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";o(79366)})(),(()=>{"use strict";var e=o(98490),t=o.n(e);o(44036);t()(function(){const e=document.querySelector(".wp-block-jetpack-cookie-consent");if(!e)return;const t=e.querySelector("span"),o=parseInt(t.textContent),n=new Date(Date.now()+864e5*o),s=e.querySelector(".wp-block-button a");s.setAttribute("role","button"),s.setAttribute("href","#"),s.addEventListener("click",e=>{s.closest(".wp-block-jetpack-cookie-consent")&&e.preventDefault()}),s.addEventListener("click",function(){try{document.cookie=`eucookielaw=${n.getTime()};path=/;expires=${n.toGMTString()}`,e.classList.add("is-dismissed"),e.addEventListener("transitionend",()=>e.remove());const t=new Event("eucookielaw-dismissed");document.dispatchEvent(t)}catch{}})})})()})();