!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=622)}({622:function(e,t,n){e.exports=n(623)},623:function(e,t){jQuery(document).ready((function(e){var t=e('a[id="deactivate-wp-payment-form"]'),n=jQuery("#wpf-skip-deactivate");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"block";document.querySelector(".validation-message").style.display=e}function a(e){jQuery("#wpf-feedback-submit").attr("disabled",!0),jQuery("#wpf-feedback-submit").text("Submitting..."),jQuery("#wpf-skip-deactivate").attr("disabled",!0).css("pointer-events","none").css("color","gray").on("click",(function(e){e.preventDefault()})),jQuery.ajax({url:"https://demo.paymattic.com/?feedback-collector=yes&route=collect-feedback",type:"POST",data:e,success:function(e){document.getElementById("wpf-feedback").style.display="none";var n=t.attr("href");window.location.href=n},error:function(e){document.getElementById("wpf-feedback").style.display="none";var n=t.attr("href");window.location.href=n}})}jQuery("#wpf-btn-close").on("click",(function(e){document.getElementById("wpf-feedback").style.display="none"})),n.attr("href",t.attr("href")),n.on("click",(function(e){e.preventDefault();a(JSON.stringify({message:"No feedback submitted!",others:[],nonce:"nononce",better_plugin_name:"",feature_missing:""}))})),t.on("click",(function(e){e.preventDefault(),document.getElementById("wpf-feedback").style.display="block",jQuery('input[name="reason"]').on("change",(function(){jQuery('input[name="reason"]:checked').length>0&&r("none"),jQuery("#wpf_feature_missing").is(":checked")?jQuery(".wpf_feature_missing").removeClass("wpf-hide"):jQuery(".wpf_feature_missing").addClass("wpf-hide"),jQuery("#wpf_better_plugin_name").is(":checked")?jQuery(".wpf_better_plugin_name").removeClass("wpf-hide"):jQuery(".wpf_better_plugin_name").addClass("wpf-hide"),jQuery("#wpf_other_option").is(":checked")?jQuery(".wpf_other_message").removeClass("wpf-hide"):jQuery(".wpf_other_message").addClass("wpf-hide")})),document.getElementById("wpf-feedback").addEventListener("submit",(function(e){e.preventDefault();var t=document.getElementById("wpf-feedback-description").value.trim(),n="",i="",o=!1;if(jQuery("#wpf_better_plugin_name").is(":checked")&&((n=jQuery('input[name="wpf_better_plugin_name"]').val().trim())||(alert("Please specify the name of the better plugin."),o=!0)),jQuery("#wpf_feature_missing").is(":checked")&&((i=jQuery('input[name="wpf_feature_missing"]').val().trim())||(alert("Please specify the missing feature name."),o=!0)),jQuery("#wpf_other_option").is(":checked")&&!t&&(alert("Please provide additional details in the message box."),o=!0),!o){for(var u=document.getElementsByName("reason"),c=document.getElementsByName("paymattic_deactivation_nonce"),f=jQuery(c).attr("value"),s=[],l=0;l<u.length;l++)u[l].checked&&s.push(u[l].value);if(0!==s.length){var d={message:t,others:s,nonce:f,better_plugin_name:n,feature_missing:i};a(JSON.stringify(d))}else r()}}))}))}))}});