Mini Shell

Direktori : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/cookie-consent/
Upload File :
Current File : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/blocks/cookie-consent/view.js

!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="eucookielaw",i=t.querySelector(".wp-block-button a");i.setAttribute("role","button"),i.setAttribute("href","javascript:void(0)"),i.addEventListener("click",(function(){try{document.cookie=`${o}=${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){}}))}))}()}();

Zerion Mini Shell 1.0