Файловый менеджер - Редактировать - /home/bean7936/perfect-community.com/442aa3/dist.zip
Назад
PK 늞\��2�� � blocks/cta-buttons.block.jsonnu �[��� { "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "popup-maker/cta-buttons", "title": "Call to Action Buttons", "category": "popup-maker", "allowedBlocks": [ "popup-maker/cta-button", "core/button" ], "description": "Prompt visitors to take action with a group of button-style links.", "keywords": [ "link", "button", "call to action", "cta", "conversion" ], "textdomain": "popup-maker", "attributes": {}, "supports": { "anchor": true, "align": [ "wide", "full" ], "html": false, "__experimentalExposeControlsToChildren": true, "color": { "gradients": true, "text": false, "__experimentalDefaultControls": { "background": true } }, "spacing": { "blockGap": [ "horizontal", "vertical" ], "padding": true, "margin": [ "top", "bottom" ], "__experimentalDefaultControls": { "padding": true, "blockGap": true } }, "typography": { "fontSize": true, "lineHeight": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, "__experimentalTextTransform": true, "__experimentalTextDecoration": true, "__experimentalLetterSpacing": true, "__experimentalDefaultControls": { "fontSize": true } }, "__experimentalBorder": { "color": true, "radius": true, "style": true, "width": true, "__experimentalDefaultControls": { "color": true, "radius": true, "style": true, "width": true } }, "layout": { "allowSwitching": false, "allowInheriting": false, "default": { "type": "flex" } }, "interactivity": { "clientNavigation": true } }, "editorStyle": "popup-maker-block-library", "style": "popup-maker-block-library-style" } PK 늞\��z z blocks/cta-button.block.jsonnu �[��� { "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "popup-maker/cta-button", "title": "Call to Action Button", "category": "popup-maker", "parent": [ "popup-maker/cta-buttons", "core/buttons" ], "description": "Prompt visitors to take action with a button-style link.", "keywords": [ "link", "button", "call to action", "cta", "conversion" ], "textdomain": "popup-maker", "attributes": { "tagName": { "type": "string", "enum": [ "a", "button" ], "default": "a" }, "type": { "type": "string", "default": "button" }, "textAlign": { "type": "string" }, "url": { "type": "string", "source": "attribute", "selector": "a", "attribute": "href", "role": "content" }, "title": { "type": "string", "source": "attribute", "selector": "a,button", "attribute": "title", "role": "content" }, "text": { "type": "rich-text", "source": "rich-text", "selector": "a,button", "role": "content" }, "linkTarget": { "type": "string", "source": "attribute", "selector": "a", "attribute": "target", "role": "content" }, "rel": { "type": "string", "source": "attribute", "selector": "a", "attribute": "rel", "role": "content" }, "placeholder": { "type": "string" }, "backgroundColor": { "type": "string" }, "textColor": { "type": "string" }, "gradient": { "type": "string" }, "width": { "type": "number" }, "ctaId": { "type": "number" } }, "supports": { "anchor": true, "splitting": true, "align": false, "alignWide": false, "color": { "__experimentalSkipSerialization": true, "gradients": true, "__experimentalDefaultControls": { "background": true, "text": true } }, "typography": { "__experimentalSkipSerialization": [ "fontSize", "lineHeight", "fontFamily", "fontWeight", "fontStyle", "textTransform", "textDecoration", "letterSpacing" ], "fontSize": true, "lineHeight": true, "__experimentalFontFamily": true, "__experimentalFontWeight": true, "__experimentalFontStyle": true, "__experimentalTextTransform": true, "__experimentalTextDecoration": true, "__experimentalLetterSpacing": true, "__experimentalWritingMode": true, "__experimentalDefaultControls": { "fontSize": true } }, "reusable": false, "shadow": { "__experimentalSkipSerialization": true }, "spacing": { "__experimentalSkipSerialization": true, "padding": [ "horizontal", "vertical" ], "__experimentalDefaultControls": { "padding": true } }, "__experimentalBorder": { "color": true, "radius": true, "style": true, "width": true, "__experimentalSkipSerialization": true, "__experimentalDefaultControls": { "color": true, "radius": true, "style": true, "width": true } }, "__experimentalSelector": ".wp-block-popup-maker-cta-button .wp-block-popup-maker-cta-button__link", "interactivity": { "clientNavigation": true } }, "styles": [ { "name": "fill", "label": "Fill", "isDefault": true }, { "name": "outline", "label": "Outline" } ], "editorStyle": "popup-maker-block-library", "style": "popup-maker-block-library-style", "selectors": { "root": ".wp-block-popup-maker-cta-button .wp-block-popup-maker-cta-button__link", "typography": { "writingMode": ".wp-block-popup-maker-cta-button" } } } PK 늞\�>]�Y �Y assets/admin-settings-page.jsnu �[��� (()=>{var t={2639:()=>{!function(t){"use strict";function n(){const n=t("#popup_maker_pro_license_key");if(!n.length)return;const e=n.closest(".pum-license-input-wrapper").find(".pum-license-activate, .button-primary");function o(){const t=32===n.val().trim().length,o=!0===e.data("processing");e.length&&e.prop("disabled",!t||o)}n.on("paste",function(){setTimeout(function(){32===n.val().trim().length&&e.length&&!e.prop("disabled")&&e.trigger("click")},100)}),n.on("keypress",function(t){13!==t.which&&13!==t.keyCode||(t.preventDefault(),32===n.val().trim().length&&e.length&&!e.prop("disabled")&&e.trigger("click"))}),n.on("input keyup",o),e.on("click",function(){const n=t(this);setTimeout(function(){n.data("processing",!0);const t=n.val()||n.text();n.data("original-text",t),n.val(t+"...").prop("disabled",!0)},50)}),o()}window.PUM_Admin=window.PUM_Admin||{},t(function(){n()}),t(document).on("pum_init",function(){n()})}(jQuery)},6229:()=>{!function(t){"use strict";window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.ProUpgradeFlow={};const n={popupWindow:null,isMonitoring:!1,monitorInterval:null,isInitialized:!1,popupConfig:{width:580,height:600,name:"popup-maker-license-connect",features:"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"},init:function(){this.isInitialized||(this.isInitialized=!0,this.bindEvents())},bindEvents:function(){t(document).on("click",".pum-license-connect-trigger",this.handleUpgradeClick.bind(this)),t(window).on("focus",this.handleWindowFocus.bind(this)),t(window).on("beforeunload",this.cleanup.bind(this))},handleUpgradeClick:async function(n){n.preventDefault();const e=t(n.currentTarget);try{if(e.data("original-text")||e.data("original-text",e.html()),e.prop("disabled",!0),e.html().includes("ACTIVATE PRO NOW"))return void await this.handleProActivation(e);this.openLoadingPopup();const t=await this.extractConnectInfo(e);if(!this.validateConnectInfo(t))return console.error("Invalid connection info:",t),this.showError("Invalid connection parameters. Please try again."),void this.closePopup();this.navigatePopupToFinalUrl(t)}catch(t){console.error("Error getting connection info:",t),this.showError("Failed to prepare connection. Please try again."),this.closePopup(),e.prop("disabled",!1)}},handleProActivation:async function(n){try{this.showMessage("Activating Pro plugin...","info");const n=await t.ajax({url:window.location.origin+"/wp-json/popup-maker/v2/license/activate-plugin",type:"POST",data:{},headers:{"X-WP-Nonce":window.pum_admin_vars?.rest_nonce||window.wpApiSettings?.nonce||""}});if(!n.success)throw new Error(n.message||"Activation failed");this.showSuccess(n.message||"Pro plugin activated successfully!"),setTimeout(()=>{window.location.reload()},1500)}catch(t){console.error("Pro activation error:",t);let e="Failed to activate Pro plugin. Please try again.";t.responseJSON&&t.responseJSON.message?e=t.responseJSON.message:t.message&&(e=t.message),this.showError(e),n.prop("disabled",!1)}},extractConnectInfo:async function(n){const e=t("#popup_maker_pro_license_key"),o=e.length?e.val().trim():"",i={product:n.data("product")||"popup-maker-pro",source:n.data("source")||"settings-page",campaign:n.data("campaign")||"upgrade-flow",existing_license:o};try{const n=await t.ajax({url:window.location.origin+"/wp-json/popup-maker/v2/license/connect-info",type:"GET",data:{license_key:o,context:JSON.stringify(i)},headers:{"X-WP-Nonce":window.pum_admin_vars?.rest_nonce||window.wpApiSettings?.nonce||""}});if(n.success&&n.data)return console.log("Got server-generated connection info:",n.data),n.data;throw new Error(n.data?.message||"Failed to get connection info")}catch(t){return console.error("Failed to get server connection info:",t),console.warn("Using fallback client-side connection info - may not work properly"),{site_url:window.location.origin||"",admin_url:window.ajaxurl?window.ajaxurl.replace("admin-ajax.php",""):"",return_url:window.location.href,product:i.product,source:i.source,campaign:i.campaign,existing_license:i.existing_license,nonce:window.pum_admin_vars?.nonce||window.pum_settings_editor?.nonce||""}}},validateConnectInfo:function(t){return["key","token","nonce","full_url"].every(n=>{const e=t[n];return e&&"string"==typeof e&&e.trim().length>0})},openLicensePopup:function(t){this.closePopup();const n=this.buildPopupUrl(t),e=Math.round((window.screen.width-this.popupConfig.width)/2),o=Math.round((window.screen.height-this.popupConfig.height)/2),i=`${this.popupConfig.features},width=${this.popupConfig.width},height=${this.popupConfig.height},left=${e},top=${o}`;if(console.log("Opening license popup:",n),console.log("Popup config:",{name:this.popupConfig.name,features:i}),this.popupWindow=window.open(n,this.popupConfig.name,i),console.log("Popup window result:",this.popupWindow),!this.popupWindow)return console.error("Failed to open popup window - likely blocked by browser"),void this.showError("Popup blocked! Please allow popups for this site and try again.");try{if(this.popupWindow.closed)return console.error("Popup window was immediately closed"),this.showError("Popup was blocked or closed. Please allow popups for this site."),void(this.popupWindow=null)}catch(t){console.log("Cannot access popup window properties (normal for cross-origin):",t.message)}this.startPopupMonitoring(),this.showPopupOpenState()},buildPopupUrl:function(t){if(t.full_url)return console.log("Using server-generated full URL:",t.full_url),t.full_url;const n=t.base_url||"https://upgrade.wppopupmaker.com",e=new URLSearchParams,o=["product","source","campaign","base_url","full_url","back_url","existing_license"];Object.keys(t).forEach(n=>{t[n]&&!o.includes(n)&&e.append(n,t[n])});const i=`${n}?${e.toString()}`;return console.log("Built fallback URL from parameters:",i),i},openLoadingPopup:function(){this.popupWindow&&!this.popupWindow.closed&&this.popupWindow.close(),this.popupWindow=null;const t=Math.round((window.screen.width-this.popupConfig.width)/2),n=Math.round((window.screen.height-this.popupConfig.height)/2),e=`${this.popupConfig.features},width=${this.popupConfig.width},height=${this.popupConfig.height},left=${t},top=${n}`,o="data:text/html;charset=utf-8,"+encodeURIComponent('\n\t\t\t\t<!DOCTYPE html>\n\t\t\t\t<html>\n\t\t\t\t<head>\n\t\t\t\t\t<title>Connecting to Popup Maker Pro</title>\n\t\t\t\t\t<style>\n\t\t\t\t\t\tbody {\n\t\t\t\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\tjustify-content: center;\n\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\theight: 100vh;\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\tbackground: #f1f1f1;\n\t\t\t\t\t\t\tcolor: #333;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.loading { text-align: center; }\n\t\t\t\t\t\t.spinner {\n\t\t\t\t\t\t\tborder: 4px solid #e1e1e1;\n\t\t\t\t\t\t\tborder-left: 4px solid #0073aa;\n\t\t\t\t\t\t\tborder-radius: 50%;\n\t\t\t\t\t\t\twidth: 40px;\n\t\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t\t\tanimation: spin 1s linear infinite;\n\t\t\t\t\t\t\tmargin: 20px auto;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t</style>\n\t\t\t\t</head>\n\t\t\t\t<body>\n\t\t\t\t\t<div class="loading">\n\t\t\t\t\t\t<div class="spinner"></div>\n\t\t\t\t\t\t<h2>Connecting to Popup Maker Pro</h2>\n\t\t\t\t\t\t<p>Please wait while we prepare your upgrade...</p>\n\t\t\t\t\t</div>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t');if(console.log("Opening loading popup immediately from user gesture"),this.popupWindow=window.open(o,this.popupConfig.name,e),!this.popupWindow)return console.error("Failed to open popup window - likely blocked by browser"),this.showError("Popup blocked! Please allow popups for this site and try again."),!1;try{if(this.popupWindow.closed)return console.error("Popup window was immediately closed"),this.showError("Popup was blocked or closed. Please allow popups for this site."),this.popupWindow=null,!1}catch(t){console.log("Cannot access popup window properties (normal for cross-origin):",t.message)}return this.startPopupMonitoring(),this.showPopupOpenState(),!0},navigatePopupToFinalUrl:function(t){if(!this.popupWindow||this.popupWindow.closed)return console.error("Cannot navigate popup - window not available"),void this.showError("Popup window was closed. Please try again.");const n=this.buildPopupUrl(t);console.log("Navigating existing popup to final URL:",n);try{this.popupWindow.location.href=n}catch(n){console.warn("Could not navigate popup directly, attempting to open new window:",n.message),this.closePopup(),this.openLicensePopup(t)}},startPopupMonitoring:function(){this.isMonitoring||(this.isMonitoring=!0,this.monitoringStartTime=Date.now(),this.scheduleNextCheck(),console.log("Started popup monitoring"))},scheduleNextCheck:function(){if(!this.isMonitoring)return;const t=Date.now()-this.monitoringStartTime;let n=500;t>3e4?n=2e3:t>1e4&&(n=1e3),this.monitorTimeout=setTimeout(()=>{this.checkPopupState(),this.scheduleNextCheck()},n)},stopPopupMonitoring:function(){this.isMonitoring&&(this.isMonitoring=!1,this.monitorInterval&&(clearInterval(this.monitorInterval),this.monitorInterval=null),this.monitorTimeout&&(clearTimeout(this.monitorTimeout),this.monitorTimeout=null),console.log("Stopped popup monitoring"))},checkPopupState:function(){if(!this.popupWindow)return console.log("checkPopupState: popupWindow is null"),void this.handlePopupClosed();try{if(this.popupWindow.closed)return console.log("checkPopupState: popup window was closed"),void this.handlePopupClosed()}catch(t){return console.log("checkPopupState: Error checking popup.closed, treating as closed:",t.message),void this.handlePopupClosed()}try{if(0===this.popupWindow.location.href.indexOf(window.location.origin)){const t=new URLSearchParams(this.popupWindow.location.search);if("1"===t.get("pum_license_connected"))return void this.handleConnectionSuccess(t);t.get("pum_license_error")&&this.handleConnectionError(t.get("pum_license_error"))}}catch(t){}},handlePopupClosed:function(){console.log("License popup closed"),this.stopPopupMonitoring(),this.popupWindow=null,this.hidePopupOpenState(),t(".pum-install-pro-button, .pum-license-connect-trigger").each(function(){const n=t(this);n.prop("disabled",!1);const e=n.data("original-text");e&&n.html(e)}),t(document).trigger("pum_license_popup_closed"),window.PUM_Admin.LicenseStatusPolling&&window.PUM_Admin.LicenseStatusPolling.startPolling()},handleConnectionSuccess:function(n){console.log("License connection successful");const e=n.get("license_key"),o=n.get("license_status");if(this.closePopup(),t(".pum-install-pro-button, .pum-license-connect-trigger").each(function(){const n=t(this);n.prop("disabled",!1);const e=n.data("original-text");e&&n.html(e)}),e){const n=t("#popup_maker_pro_license_key");n.length&&(n.val(e),n.trigger("change"))}this.showSuccess("License connected successfully!"),t(document).trigger("pum_license_connected",{license_key:e,license_status:o}),setTimeout(()=>{window.location.reload()},1500)},handleConnectionError:function(n){console.error("License connection error:",n),this.closePopup(),t(".pum-install-pro-button, .pum-license-connect-trigger").each(function(){const n=t(this);n.prop("disabled",!1);const e=n.data("original-text");e&&n.html(e)}),this.showError(`Connection failed: ${n}`),t(document).trigger("pum_license_connection_error",{error:n})},handleWindowFocus:function(){setTimeout(()=>{this.isMonitoring&&this.popupWindow&&this.popupWindow.closed&&this.handlePopupClosed()},100)},closePopup:function(){this.popupWindow&&!this.popupWindow.closed&&this.popupWindow.close(),this.stopPopupMonitoring(),this.popupWindow=null,this.hidePopupOpenState()},showPopupOpenState:function(){t(".pum-pro-upgrade-trigger, .pum-license-connect-trigger").addClass("pum-popup-open"),this.showMessage("Opening license connection window...","info")},hidePopupOpenState:function(){t(".pum-pro-upgrade-trigger, .pum-license-connect-trigger").removeClass("pum-popup-open")},showSuccess:function(t){this.showMessage(t,"success")},showError:function(t){this.showMessage(t,"error")},showMessage:function(n,e="info"){let o=t("#pum-upgrade-flow-messages");o.length||(o=t('<div id="pum-upgrade-flow-messages" class="pum-upgrade-messages"></div>'),t("#pum-settings-container").prepend(o)),o.empty();const i=t(`\n\t\t\t\t<div class="notice notice-${e} is-dismissible">\n\t\t\t\t\t<p>${n}</p>\n\t\t\t\t\t<button type="button" class="notice-dismiss">\n\t\t\t\t\t\t<span class="screen-reader-text">Dismiss this notice.</span>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t`);o.append(i),"error"!==e&&setTimeout(()=>{i.fadeOut(300,function(){t(this).remove()})},3e3),i.find(".notice-dismiss").on("click",function(){i.fadeOut(300,function(){t(this).remove()})})},cleanup:function(){this.closePopup()}};window.PUM_Admin.ProUpgradeFlow=n,t(function(){n.init()}),t(document).on("pum_init",function(){n.init()}),t(window).on("beforeunload unload",function(){window.PUM_Admin&&window.PUM_Admin.ProUpgradeFlow&&window.PUM_Admin.ProUpgradeFlow.cleanup(),window.PUM_Admin&&window.PUM_Admin.LicenseStatusPolling&&window.PUM_Admin.LicenseStatusPolling.cleanup()})}(jQuery)},9010:()=>{!function(t){"use strict";window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.LicenseStatusPolling={};const n={isPolling:!1,pollInterval:null,pollTimeout:null,config:{initialInterval:3e3,normalInterval:5e3,slowInterval:1e4,maxDuration:12e4,maxAttempts:24,fastPollDuration:2e4},state:{attempts:0,startTime:null,currentInterval:null,lastResponse:null,consecutiveErrors:0},apiConfig:{endpoint:"",nonce:"",namespace:"popup-maker/v2",route:"license"},init:function(){this.setupApiConfig()?this.bindEvents():console.error("License Status Polling: Failed to setup API configuration")},setupApiConfig:function(){if(window.wpApiSettings&&window.wpApiSettings.root)this.apiConfig.endpoint=`${window.wpApiSettings.root}${this.apiConfig.namespace}/${this.apiConfig.route}`,this.apiConfig.nonce=window.wpApiSettings.nonce;else{const t=window.location.origin+"/wp-json/";this.apiConfig.endpoint=`${t}${this.apiConfig.namespace}/${this.apiConfig.route}`,this.apiConfig.nonce=window.pum_admin_vars?.rest_nonce||window.pum_admin_vars?.nonce||""}return!!this.apiConfig.endpoint.includes("/wp-json/")||(console.error("License Status Polling: Invalid REST API endpoint configured"),!1)},bindEvents:function(){t(document).on("pum_license_popup_closed",this.startPolling.bind(this)),t(document).on("pum_license_connected",this.handleLicenseConnected.bind(this)),t(document).on("visibilitychange",this.handleVisibilityChange.bind(this)),t(window).on("focus",this.handleWindowFocus.bind(this)),t(window).on("beforeunload",this.stopPolling.bind(this))},shouldStartPolling:async function(){try{const n=await t.ajax({url:this.apiConfig.endpoint,type:"GET",headers:{"X-WP-Nonce":this.apiConfig.nonce},timeout:1e4});console.log("Pre-flight license check:",n);const e=n.is_active&&(!n.is_pro_installed||!n.is_pro_active);return e||console.log("License Status Polling: No polling needed",{is_active:n.is_active,is_pro_installed:n.is_pro_installed,is_pro_active:n.is_pro_active}),e}catch(t){return console.warn("License Status Polling: Pre-flight check failed, will attempt polling:",t),!0}},startPolling:async function(){this.isPolling?console.log("License Status Polling: Already polling"):await this.shouldStartPolling()?(console.log("Starting license status polling"),this.resetState(),this.isPolling=!0,this.state.currentInterval=this.config.initialInterval,this.state.startTime=Date.now(),this.performPoll(),this.scheduleNextPoll()):console.log("License Status Polling: Polling not needed, skipping")},stopPolling:function(){this.isPolling&&(console.log("Stopping license status polling"),this.pollInterval&&(clearInterval(this.pollInterval),this.pollInterval=null),this.pollTimeout&&(clearTimeout(this.pollTimeout),this.pollTimeout=null),this.isPolling=!1)},resetState:function(){this.state={attempts:0,startTime:null,currentInterval:null,lastResponse:null,consecutiveErrors:0}},scheduleNextPoll:function(){if(!this.isPolling)return;const t=Date.now()-this.state.startTime;if(t>this.config.maxDuration||this.state.attempts>=this.config.maxAttempts)return console.log("License Status Polling: Maximum duration/attempts reached, stopping"),void this.stopPolling();this.adjustPollingInterval(t),this.pollTimeout=setTimeout(()=>{this.performPoll(),this.scheduleNextPoll()},this.state.currentInterval)},adjustPollingInterval:function(t){if(t<this.config.fastPollDuration?this.state.currentInterval=this.config.initialInterval:t<2*this.config.fastPollDuration?this.state.currentInterval=this.config.normalInterval:this.state.currentInterval=this.config.slowInterval,this.state.consecutiveErrors>0){const t=Math.min(Math.pow(2,this.state.consecutiveErrors),64),n=.1*Math.random();this.state.currentInterval*=t*(1+n)}this.state.currentInterval=Math.min(this.state.currentInterval,6e4)},performPoll:function(){if(!this.isPolling)return;this.state.attempts++,console.log(`License Status Poll #${this.state.attempts}`);const n=this.prepareRequestData();t.ajax({url:this.apiConfig.endpoint,type:"GET",data:n,dataType:"json",timeout:1e4,beforeSend:this.setRequestHeaders.bind(this),success:this.handlePollSuccess.bind(this),error:this.handlePollError.bind(this)})},prepareRequestData:function(){return{timestamp:Date.now()}},setRequestHeaders:function(t){this.apiConfig.nonce&&t.setRequestHeader("X-WP-Nonce",this.apiConfig.nonce),t.setRequestHeader("Content-Type","application/json")},handlePollSuccess:function(t){console.log("License status poll success:",t),this.state.consecutiveErrors=0,this.state.lastResponse=t,this.hasLicenseStatusChanged(t)&&this.handleStatusChange(t),this.shouldContinuePolling(t)||this.stopPolling()},handlePollError:function(t,n,e){console.warn("License status poll error:",{status:n,error:e,xhr:t}),this.state.consecutiveErrors++,this.state.consecutiveErrors>=5&&(console.error("License Status Polling: Too many consecutive errors, stopping"),this.stopPolling(),this.showError("Unable to check license status. Please refresh the page."))},hasLicenseStatusChanged:function(t){if(!this.state.lastResponse)return!1;const n=this.extractStatusData(t),e=this.extractStatusData(this.state.lastResponse);return JSON.stringify(n)!==JSON.stringify(e)},extractStatusData:function(t){return{is_active:t.is_active||!1,license_key:t.license_key||"",status:t.status||"",is_pro_installed:t.is_pro_installed||!1,is_pro_active:t.is_pro_active||!1}},handleStatusChange:function(n){console.log("License status changed:",n),t(document).trigger("pum_license_status_changed",n),this.updateLicenseUI(n),n.is_active&&!n.is_pro_installed&&this.triggerProInstallation(n)},updateLicenseUI:function(n){this._cachedElements||(this._cachedElements={licenseField:t("#popup_maker_pro_license_key"),statusContainer:t(".pum-license-status")});const e=this._cachedElements.licenseField,o=this._cachedElements.statusContainer;n.license_key&&e.length&&e.val(n.license_key),o.length&&(o.removeClass("valid invalid"),o.addClass(n.is_active?"valid":"invalid"),o.find(".pum-license-status-text").text(n.status||"Unknown")),n.is_active?this.showSuccess("License activated successfully!"):n.status&&this.showError(`License issue: ${n.status}`)},triggerProInstallation:function(n){console.log("Triggering Pro plugin installation"),this.showInfo("Valid license detected! Installing Popup Maker Pro..."),t(document).trigger("pum_install_pro_plugin",n),window.PUM_Admin.ProUpgrader&&window.PUM_Admin.ProUpgrader.installProPlugin(n.license_key)},shouldContinuePolling:function(t){return t.is_active&&t.is_pro_installed&&t.is_pro_active?(console.log("License valid and Pro installed & active, stopping polling"),!1):t.is_active?(console.log("Continuing polling - Pro installation pending",{is_active:t.is_active,is_pro_installed:t.is_pro_installed,is_pro_active:t.is_pro_active}),!0):(console.log("License is no longer active, stopping polling"),!1)},handleLicenseConnected:function(t,n){console.log("License connected event received:",n),this.stopPolling(),setTimeout(()=>{this.startPolling()},1e3)},handleVisibilityChange:function(){this.isPolling&&(document.hidden?(console.log("Page hidden, reducing polling frequency"),this.state.currentInterval=2*this.config.slowInterval):(console.log("Page visible, resuming normal polling"),this.adjustPollingInterval(Date.now()-this.state.startTime)))},handleWindowFocus:function(){this.isPolling&&(console.log("Window focused - checking if Pro plugin was installed"),this.performImmediateStatusCheck())},performImmediateStatusCheck:function(){const n=this.prepareRequestData();t.ajax({url:this.apiConfig.endpoint,type:"GET",data:n,dataType:"json",timeout:5e3,beforeSend:this.setRequestHeaders.bind(this),success:t=>{console.log("Immediate status check result:",t),t.is_pro_installed&&t.is_pro_active?(console.log("Pro plugin detected as installed and active - reloading page"),this.showSuccess("Popup Maker Pro installed successfully! Reloading page..."),this.stopPolling(),setTimeout(()=>{window.location.reload()},2e3)):t.is_pro_installed&&!t.is_pro_active?(console.log("Pro plugin installed but not active - attempting activation"),this.showInfo("Pro plugin installed but not activated. Please activate it manually.")):console.log("Pro plugin not yet installed - continuing normal polling")},error:(t,n,e)=>{console.warn("Immediate status check failed:",{status:n,error:e})}})},showSuccess:function(t){this.showMessage(t,"success")},showError:function(t){this.showMessage(t,"error")},showInfo:function(t){this.showMessage(t,"info")},showMessage:function(t,n="info"){window.PUM_Admin.ProUpgradeFlow&&window.PUM_Admin.ProUpgradeFlow.showMessage?window.PUM_Admin.ProUpgradeFlow.showMessage(t,n):console.log(`License Status: [${n.toUpperCase()}] ${t}`)},cleanup:function(){this.stopPolling(),this._cachedElements=null,t(window).off("focus",this.handleWindowFocus)}};window.PUM_Admin.LicenseStatusPolling=n,t(function(){n.init()}),t(document).on("pum_init",function(){n.init()})}(jQuery)}},n={};function e(o){var i=n[o];if(void 0!==i)return i.exports;var s=n[o]={exports:{}};return t[o](s,s.exports,e),s.exports}(()=>{"use strict";var t;e(2639),e(9010),e(6229),t=jQuery,window.PUM_Admin=window.PUM_Admin||{},t(function(){function n(){const n=window.location.hash.replace("#","");if(n){let e=t(`a[href="#${n}"]`);e.length||(e=t(`a[href="#pum-settings_${n}"]`)),e.length&&setTimeout(()=>e.trigger("click"),100)}}var e=t("#pum-settings-container"),o=pum_settings_editor.form_args||{},i=pum_settings_editor.current_values||{};e.length&&(e.find(".pum-no-js").hide(),PUM_Admin.forms.render(o,i,e),n(),t(window).on("hashchange",n),e.on("click",'.pum-tabs-container a[href^="#"]',function(){setTimeout(()=>{window.location.hash&&history.replaceState(null,null,window.location.pathname+window.location.search)},50)}))})})()})();PK 늞\>��A_ _ assets/admin-support-page.cssnu �[��� .popmake-support-links{list-style:none}.popmake-support-links li{margin-bottom:10px}.popmake-support-links a{color:#20252b;font-size:1.25em;text-decoration:none;text-transform:uppercase}.popmake-support-links a span{margin-left:10px}.popmake-support-links a img{max-height:24px;max-width:24px;min-height:24px;min-width:24px;position:relative;top:6px} PK 늞\��T T assets/admin-pointer.asset.phpnu �[��� <?php return array('dependencies' => array(), 'version' => 'a9688b7555cae461511b'); PK 늞\�^�� � assets/admin-batch.jsnu �[��� (()=>{"use strict";var a,e,t;a=jQuery,e={form:{beforeSubmit:function(e){var t=e.find('.pum-field-submit input[type="submit"]'),s=e.find(".pum-upgrade-messages"),r=e.find(".pum-batch-progress"),n=e.data("ays");return!(t.hasClass("button-disabled")||void 0!==n&&!confirm(n)||(r.removeClass("pum-batch-progress--active"),r.find("progress").prop("value",null),s.html(""),t.addClass("button-disabled"),a('<span class="spinner is-active"></span>').insertAfter(t),0))}},complete:function(e){var t=e.parents(".pum-alert");e.find(".pum-field-submit, progress").hide(),a("p.pum-upgrade-notice").hide(),t.removeClass("pum-alert__warning").addClass("pum-alert__success"),t.prepend("<h2>"+pum_batch_vars.complete+"</h2>")},action:"pum_process_batch_request",process_step:function(e,t){var s=this;a.ajax({type:"POST",url:ajaxurl,data:{batch_id:t.batch_id,action:s.action,nonce:t.nonce,form:t.form,step:parseInt(e),data:t},dataType:"json",success:function(e){if(e.data.done||e.data.error){var r=e.data.mapping?".pum-batch-import-form":".pum-batch-form",n=a(r),d=n.find(".spinner"),o=n.find(".notice-wrap");n.find(".button-disabled").removeClass("button-disabled"),e.data.error?(d.remove(),o.html('<div class="updated error"><p>'+e.data.error+"</p></div>")):e.data.done?(d.remove(),o.html('<div id="pum-batch-success" class="updated notice"><p class="pum-batch-success">'+e.data.message+"</p></div>"),e.data.url&&(window.location=e.data.url)):o.remove()}else a(".pum-batch-progress div").animate({width:e.data.percentage+"%"},50),s.process_step(e.data.step,t)}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}},t=a.extend(!0,{},e,{action:"pum_process_upgrade_request",process_step:function(t,s){var r=this;a.ajax({type:"POST",url:ajaxurl,data:{upgrade_id:s.upgrade_id,action:r.action,nonce:s.nonce,form:s.form,step:parseInt(t),data:s},dataType:"json",success:function(t){var n=a(".pum-upgrade-form"),d=n.find(".spinner"),o=n.find(".button-disabled"),i=n.find(".pum-upgrade-messages");t.data.done||t.data.error?(o.removeClass("button-disabled"),t.data.error?(d.remove(),i.prepend('<div class="notice notice-error notice-alt"><p>'+t.data.error+"</p></div>")):t.data.done?(i.prepend('<div class="notice notice-success"><p><strong>'+t.data.message+"</strong></p></div>"),t.data.next?(n.data("upgrade_id",t.data.next).data("step",1).data("ays",!1),r.process_step(1,{upgrade_id:t.data.next,nonce:s.nonce,form:s.form})):(o.parent().hide(),d.remove(),e.complete(n)),t.data.url&&(window.location=t.data.url)):""!==t.data.message&&i.prepend('<div class="notice"><p class="">'+t.data.message+"</p></div>")):(""!==t.data.message&&i.prepend('<div class="notice"><p class="">'+t.data.message+"</p></div>"),a(".pum-batch-progress").addClass("pum-batch-progress--active"),a(".pum-batch-progress progress.pum-task-progress").addClass("active").val(t.data.percentage),r.process_step(t.data.step,s))}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}}),window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.batch=e,window.PUM_Admin.batch_upgrades=t,a(document).on("submit",".pum-batch-form[data-batch_id]",function(t){var s=a(this),r=s.find('input[type="submit"]'),n=s.data("ays"),d={batch_id:s.data("batch_id"),nonce:s.data("nonce"),form:s.serializeAssoc(),test:s.pumSerializeObject()};if(t.preventDefault(),!r.hasClass("button-disabled")){if(void 0!==n&&!confirm(n))return;s.find(".notice-wrap").remove(),s.append(a('<div class="notice-wrap"><div class="pum-batch-progress"><div></div>')),r.addClass("button-disabled"),r.parent().append('<span class="spinner is-active"></span>'),e.process_step(1,d)}}).on("submit",".pum-batch-form.pum-upgrade-form[data-upgrade_id]",function(e){var s=a(this),r={upgrade_id:s.data("upgrade_id"),nonce:s.data("nonce"),form:s.serializeAssoc(),test:s.pumSerializeObject()};e.preventDefault(),t.form.beforeSubmit(s)&&t.process_step(s.data("step")||1,r)}),jQuery(function(a){a.extend({arrayMerge:function(){for(var e={},t=0,s=a.arrayMerge.arguments,r=0;r<s.length;r++)if(Array.isArray(s[r])){for(var n=0;n<s[r].length;n++)e[t++]=s[r][n];e=a.makeArray(e)}else for(var d in s[r])if(s[r].hasOwnProperty(d))if(isNaN(d)){var o=s[r][d];"object"==typeof o&&e[d]&&(o=a.arrayMerge(e[d],o)),e[d]=o}else e[t++]=s[r][d];return e},count:function(a){return Array.isArray(a)?a.length:"object"==typeof a&&Object.keys(a).length}}),a.fn.extend({serializeAssoc:function(){for(var e={aa:{},add:function(e,t){var s=e.match(/^(.*)\[([^\]]*)]$/),r={};s?(s[2]?r[s[2]]=t:r[a.count(r)]=t,this.add(s[1],r)):"object"==typeof t?("object"!=typeof this.aa[e]&&(this.aa[e]={}),this.aa[e]=a.arrayMerge(this.aa[e],t)):this.aa[e]=t}},t=a(this).serializeArray(),s=0;s<t.length;s++)e.add(t[s].name,t[s].value);return e.aa}})})})();PK 늞\���(j j assets/mce-buttons.jsnu �[��� !function(t,e){"use strict";"undefined"!=typeof pum_shortcode_ui_vars&&e.PluginManager.add("pum_shortcodes",function(t){var e=pum_shortcode_ui_vars.shortcodes||{},o=[];_.each(e,function(e,n){o.push({text:e.label,value:n,onclick:function(){var o,u="["+n+"]",c={};e.has_content&&(u+=t.selection.getContent()+"[/"+n+"]"),o=wp.mce.views.get(n),c.text=u,c.encodedText=encodeURIComponent(u),(o=new o(c)).renderForm({},function(t){send_to_editor(t)})}})}),t.addButton("pum_shortcodes",{type:"menubutton",icon:"pum_shortcodes",tooltip:pum_shortcode_ui_vars.I10n.shortcode_ui_button_tooltip||"",menu:o})})}(jQuery,tinymce||{});PK 늞\�L�C\ \ assets/admin-general.asset.phpnu �[��� <?php return array('dependencies' => array('jquery'), 'version' => '14cce8879a87bdea3bba'); PK 늞\����!� !� "