"use strict";(globalThis.webpackChunkblocksy_companion=globalThis.webpackChunkblocksy_companion||[]).push([[726],{726:function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Q:function(){return i},R:function(){return u}});var i=function(){var e=JSON.parse(localStorage.getItem("blocksyPastPopups")),t={};return Array.isArray(e)?e.forEach((function(e){t[e]={closed:{reason:"cancel",timestamp:(new Date).getTime()},pages:[]}})):t=e,(t=Object.keys(t||{}).reduce((function(e,r){var n=t[r],i=n.isExpired,u=a(n,["isExpired"]);return o(o({},e),{},c({},r,o(o({},u),u.closed?{}:{closed:i?{reason:"cancel",timestamp:(new Date).getTime()}:null})))}),{}))||{}},u=function(e){var t=e.id.replace("ct-popup-",""),r=i()[t];if(e.dataset.popupRelaunch&&e.dataset.popupRelaunch.indexOf("custom")>-1&&r){var n=e.dataset.popupRelaunch.split(":"),o=0,c=0;n.length>1&&(c=o=parseInt(n[1])),n.length>2&&(c=parseInt(n[2]));var a=r.closed;if(!a||!a.timestamp)return!1;var u="cancel"===a.reason?o:c;return!((new Date-new Date(a.timestamp))/864e5>u)}return r&&r.closed}}}]);