"use strict";(globalThis.webpackChunkblocksy_companion=globalThis.webpackChunkblocksy_companion||[]).push([[208],{208(e,t,n){n.d(t,{O:function(){return c},u:function(){return a}});const a=function(){const e=JSON.parse(localStorage.getItem("blocksyPastPopups"));let 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,n){const{isExpired:a,...c}=t[n];return{...e,[n]:{...c,...c.closed?{}:{closed:a?{reason:"cancel",timestamp:(new Date).getTime()}:null}}}},{}),t||{}},c=function(e){let t=e.id.replace("ct-popup-","");const n=a()[t];if(e.dataset.popupRelaunch){if("always"===e.dataset.popupRelaunch)return!1;if(e.dataset.popupRelaunch.indexOf("custom")>-1&&n){const t=e.dataset.popupRelaunch.split(":");let a=0,c=0;t.length>1&&(a=parseInt(t[1]),c=a),t.length>2&&(c=parseInt(t[2]));const{closed:s}=n;if(!s||!s.timestamp)return!1;const o=("cancel"===s.reason?a:c)/60/24;return!((new Date-new Date(s.timestamp))/864e5>o)}}return n&&n.closed}}}]);