(()=>{"use strict";var e,o={5688(){},8977(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&&window.scrollTo({top:e.offset().top-100,behavior:"smooth"})}}},8687(e,o,t){(0,t(8977).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,s=0;s<t.length;s++)(!1&c||n>=c)&&Object.keys(r.O).every(e=>r.O[e](t[s]))?t.splice(s--,1):(i=!1,c<n&&(n=c));if(i){e.splice(d--,1);var u=a();void 0!==u&&(o=u)}}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,s]=t,u=0;if(n.some(o=>0!==e[o])){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(s)var d=s(r)}for(o&&o(t);u<n.length;u++)c=n[u],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(5688)),r.O(void 0,[941,434],()=>r(986));var a=r.O(void 0,[941,434],()=>r(8687));a=r.O(a)})();