summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/blocks/premium-content/view.js')
-rw-r--r--plugins/jetpack/_inc/blocks/premium-content/view.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/blocks/premium-content/view.js b/plugins/jetpack/_inc/blocks/premium-content/view.js
new file mode 100644
index 00000000..d37af8a6
--- /dev/null
+++ b/plugins/jetpack/_inc/blocks/premium-content/view.js
@@ -0,0 +1 @@
+!function(){var t={57836: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)}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](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 o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},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 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(/\/[^\/]+$/,"/"),n.p=t+"../"}(),function(){"use strict";n(57836)}(),function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){let t="";"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("https://subscribe.wordpress.com"===e.origin&&e.data){const n=JSON.parse(e.data);if(n&&n.result&&n.result.jwt_token){t=n.result.jwt_token;const e=new Date;e.setTime(e.getTime()+31536e6),document.cookie="jp-premium-content-session="+t+"; expires="+e.toGMTString()+"; path=/"}n&&"close"===n.action&&t&&(document.location.href=function(t,e,n){const o=new RegExp("([?&])"+e+"=.*?(&|$)","i"),r=-1!==t.indexOf("?")?"&":"?";return t.match(o)?t.replace(o,"$1"+e+"="+n+"$2"):t+r+e+"="+n}(document.location.href,"token",t))}}),!1)}))}()}(); \ No newline at end of file