(()=>{"use strict";var e,o={805(){},4604(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.cfwDomReady=function(e){if("loading"!==document.readyState)e();else{const o=()=>{e(),document.removeEventListener("DOMContentLoaded",o)};document.addEventListener("DOMContentLoaded",o)}},o.cfwDefineScrollToNotices=function(){jQuery.scroll_to_notices=e=>{e.length&&jQuery("html, body").animate({scrollTop:e.offset().top-100},1e3)}}},2476(e,o,t){(0,t(4604).cfwDomReady)(()=>{const e=jQuery("a#deactivate-checkout-for-woocommerce, a#deactivate-checkoutwc-lite");e.addClass("cfw-deactivate-link");const o=e.attr("href"),t=e.modaal({content_source:"#cfw-deactivation-survey",hide_close:!0,is_locked:!0,custom_class:"cfw-tw"});jQuery(document.body).on("change",'#cfw-deactivation-survey-form input[name="reason"]',e=>{"other"===jQuery(e.target).val()?jQuery("#cfw-deactivation-survey-form #cfw_reason_other").show():jQuery("#cfw-deactivation-survey-form #cfw_reason_other").hide(),jQuery("#cfw_deactivate_submit").show(),jQuery("#cfw_skip_deactivate").hide()}),jQuery(document.body).on("submit","form#cfw-deactivation-survey-form",e=>{e.preventDefault();const r=jQuery("form#cfw-deactivation-survey-form").serializeArray(),a={};jQuery.each(r,(e,o)=>{a[o.name]=o.value}),jQuery.ajax({type:"POST",url:cfwAdminPluginsScreenData.remote_url,beforeSend(e){e.setRequestHeader("x-api-key","5fPiyDFwGrnZjiCHnLXAU6CLvLbM5vfOOaAa3xwQ")},data:Object.assign({},a),complete(){window.location.replace(o),t.modaal("close")}})}),jQuery(document.body).on("click","#cfw_skip_deactivate",e=>{e.preventDefault(),window.location.replace(o)}),jQuery(document.body).on("click","#cfw_skip_deactivate, #cfw_deactivation_survey_close_button",e=>{e.preventDefault(),t.modaal("close")})})}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return o[e](c,c.exports,r),c.exports}r.m=o,e=[],r.O=(o,t,a,c)=>{if(!t){var n=1/0;for(d=0;d<e.length;d++){for(var[t,a,c]=e[d],i=!0,u=0;u<t.length;u++)(!1&c||n>=c)&&Object.keys(r.O).every(e=>r.O[e](t[u]))?t.splice(u--,1):(i=!1,c<n&&(n=c));if(i){e.splice(d--,1);var s=a();void 0!==s&&(o=s)}}return o}c=c||0;for(var d=e.length;d>0&&e[d-1][2]>c;d--)e[d]=e[d-1];e[d]=[t,a,c]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={763:0,434:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,c,[n,i,u]=t,s=0;if(n.some(o=>0!==e[o])){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(u)var d=u(r)}for(o&&o(t);s<n.length;s++)c=n[s],r.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return r.O(d)},t=globalThis.webpackChunkcheckout_for_woocommerce=globalThis.webpackChunkcheckout_for_woocommerce||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})(),r.O(void 0,[941,434],()=>r(805)),r.O(void 0,[941,434],()=>r(986));var a=r.O(void 0,[941,434],()=>r(2476));a=r.O(a)})();