(()=>{"use strict";var e={n:o=>{var n=o&&o.__esModule?()=>o.default:()=>o;return e.d(n,{a:n}),n},d:(o,n)=>{for(var t in n)e.o(n,t)&&!e.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:n[t]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o)};const o=jQuery;e.n(o)()(document).ready((function(e){e("#deactivate-devellux-sales-countdown-timer-builder").on("click",(function(o){o.preventDefault();var n=e('\n        <div id="develux-popup" class="develux-popup">\n            <div id="develux-popup-dialog" class="develux-popup-dialog" >\n                <p><strong>Do you want to delete all plugin data on deactivation?</strong></p>\n                <button id="develux-popup-yes" class="develux-red-bg">Yes, clear all data created by the plugin</button>\n                <button id="develux-popup-no" class="develux-orange-bg">No, just deactivate the plugin</button>\n                <button id="develux-popup-cancel" class="develux-green-bg">Cancel</button>\n            </div>\n        </div>\n    ');e("body").append(n);var t=e(this).attr("href");e("#develux-popup-cancel").on("click",(function(){t="",e("#develux-popup").remove()}));var l=' <div class="develux-spinner"></div>';e("#develux-popup-yes").on("click",(function(){e("#develux-popup-dialog").html(l),e.ajax({url:ajaxurl,method:"POST",data:{action:develuxsct_develuxTimerDeactivateConfirm.action,nonce:develuxsct_develuxTimerDeactivateConfirm.nonce,delete_data:"yes"},success:function(e){console.log(e),window.location.href=t}})})),e("#develux-popup-no").on("click",(function(){e("#develux-popup-dialog").html(l),window.location.href=t}))}))}))})();