!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}({1:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},19:function(e,t){},6:function(e,t,r){"use strict";r.r(t);r(19);var n=r(1),i=r.n(n);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={set template(e){this._template=e},get template(){return this._template},set form(e){this._form=jQuery("#"+e)},get form(){return this._form},init(e){this.trigger=e,this.form.html(this.template),this._attachEvents()},_submitFeedback(e){var t=this,r=a(a({},e),{},{nonce:this.nonce});this.form.addClass("process-response"),this.form.find(".deactivating-spinner").fadeIn(),jQuery.ajax({type:"POST",data:{action:this.slug+"_uninstall_feedback",args:r},dataType:"json",url:ajaxurl,success:function(e){return window.location.href=t.deactivateUrl},error:function(e){return console.warn(e)}})},_showForm(){var e=this;jQuery("body").toggleClass(this.slug+"-deactivate-form-active"),this.form.fadeIn({complete:function(){var t=e.form.offset();t.top<50&&jQuery(e).parent().css("top",50-t.top+"px"),jQuery("html,body").animate({scrollTop:Math.max(0,t.top-50)})}})},_attachEvents(){var e=this,t=this;this.trigger.on("click",(function(t){t.preventDefault(),e._showForm()})),this.form.on("change","input[type=radio]",(function(){var e=t.form.find("#"+t.slug+"-deactivate-details-label strong"),r=t.form.find('p[id="'+t.slug+'-anonymous"]')[0],n=t.form.find("#"+t.slug+"-deactivate-submit-form span")[0],i=t.form.find('input[name="'+t.slug+'-deactivate-reason"]:checked').val();e.text(t.translations[i]),r.style.display="inline-block",n.style.display="inline-block"})),this.form.on("click","#"+t.slug+"-deactivate-submit-form",(function(r){r.preventDefault();var n={reason:e.form.find('input[name="'+t.slug+'-deactivate-reason"]:checked').val(),details:e.form.find("#"+t.slug+"-deactivate-details").val(),anonymous:!!e.form.find("#"+t.slug+"-anonymous:checked").length||userSettings.uid};void 0===n.reason?window.location.href=e.deactivateUrl:e._submitFeedback(n)})),jQuery("."+this.slug+"-deactivate-form-bg").on("click",(function(){e.form.fadeOut(),jQuery("body").removeClass(e.slug+"-deactivate-form-active")}))}},c=wp.i18n.__;jQuery(document).ready((function(e){var t=s;t.slug="kaliforms",t.template=KaliFormsPluginDeactivationObject.modalHtml,t.form="kaliforms-deactivate-form",t.deactivateUrl=jQuery("#kaliforms-deactivate-link-kaliforms").attr("href"),t.deactivate=!1,t.translations={setup:c("What was the dificult part ?","kaliforms"),docs:c("What can we describe more ?","kaliforms"),features:c("How could we improve ?","kaliforms"),"better-plugin":c("Can you mention it ?","kaliforms"),incompatibility:c("With what plugin or theme is incompatible ?","kaliforms"),maintenance:c("Please specify","kaliforms")},t.nonce=KaliFormsPluginDeactivationObject.ajax_nonce,t.init(jQuery("#kaliforms-deactivate-link-kaliforms"))}))}});