(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(e){var r=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==t(r)?r:r+""}var i=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r.settings.id;this.$form=e,this.formInstance=r,this.formId=n},o=[{key:"init",value:function(){var t=this;this.$form.on("fluentform_next_action_paystack",(function(e,r){var n=r.response;t.$form.parent().find(".ff_paystack_text").remove(),jQuery("<div/>",{id:"form_success",class:"ff-message-success ff_paystck_text"}).html(n.data.message).insertAfter(t.$form),"initPaystackModal"===n.data.actionName?t.initPaystackModal(n.data):alert("No method found")}))}},{key:"initPaystackModal",value:function(t){var n=this,o=t.modal_data;o.callback=function(o){n.formInstance.hideFormSubmissionProgress(n.$form);var i=function(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({action:"fluentform_paystack_confirm_payment",form_id:n.formId},o);n.$form.parent().find(".ff_paystck_text").remove(),jQuery("<div/>",{id:n.formId+"_success",class:"ff-message-success ff_msg_temp ff_razorpay_text"}).html(t.confirming_text).insertAfter(n.$form),n.formInstance.showFormSubmissionProgress(n.$form),n.formInstance.sendData(n.$form,i)},o.onClose=function(t){n.$form.parent().find(".ff_paystck_text").remove()},PaystackPop.setup(o).openIframe()}}],o&&n(t.prototype,o),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o,i}();function f(t){t.each(t("form.fluentform_has_payment"),(function(){var e=t(this);function r(t,r){new i(e,r).init()}e.off("fluentform_init_single","",r),e.on("fluentform_init_single",r)}))}f(jQuery),jQuery(document).ready((function(t){f(t)}))})();