Mini Shell

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

!function(){var e={63166:function(e,t,n){"use strict";n.d(t,{O8:function(){return r},mO:function(){return s}});const o=function(e,t,n){const o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),r=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+n+"$2"):e+r+t+"="+n},r=function(e){const t=new Date;t.setTime(t.getTime()+31536e6),document.cookie="jp-premium-content-session="+e+"; expires="+t.toGMTString()+"; path=/"},s=function(e,t){let n=o(document.location.href,"token",e);t&&Object.keys(t).forEach((e=>{n=o(n,e,t[e])})),document.location.href=n}},80425:function(e,t,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(e){"use strict";e.exports=window.wp.domReady}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"}(),function(){"use strict";n(80425)}(),function(){"use strict";var e=n(47701),t=n.n(e),o=n(63166);t()((function(){const e=document.querySelector(".wp-block-jetpack-subscriptions__container form");if(!e)return;let t="";e.payments_attached||(e.payments_attached=!0,e.addEventListener("submit",(function(n){const r=e.querySelector("input[type=email]").value;if(e.resubmitted||!r)return;n.preventDefault();const s="https://subscribe.wordpress.com/memberships/?blog="+e.dataset.blog+"&plan=newsletter&source=jetpack_subscribe&post_access_level="+e.dataset.post_access_level+"&display=alternate&email="+encodeURIComponent(r);window.scrollTo(0,0),tb_show(null,s+"&TB_iframe=true",null);const c=function(e){if("https://subscribe.wordpress.com"===e.origin&&e.data){const n=JSON.parse(e.data);n&&n.result&&n.result.jwt_token?(t=n.result.jwt_token,(0,o.O8)(t)):n&&"close"===n.action&&t?(0,o.mO)(t,{subscribe:"success"}):n&&"close"===n.action&&(window.removeEventListener("message",c),tb_remove())}};window.addEventListener("message",c,!1);document.querySelector("#TB_window").classList.add("jetpack-memberships-modal"),window.scrollTo(0,0)})))}))}()}();

Zerion Mini Shell 1.0