text: !function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},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=1)}([function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.number=1}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t||(t="m"+this.number),this.modals[t]=e,this.number++,e}},{key:"get",value:function(e){return!!this.modals[e]&&this.modals[e]}}],[{key:"init",value:function(){return void 0===AdminColumns.Modals&&(AdminColumns.Modals=new this),AdminColumns.Modals}}]),e}();e.exports=a},function(e,t,n){"use strict";var o=i(n(0)),a=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}o.default.init().register(new a.default(document.getElementById("ac-modal-feedback")),"feedback"),new(function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.form=t,this.$form=jQuery(t),this.$error=this.$form.find(".ac-feedback__error"),this.$button=this.$form.find("[name=frm_ac_fb_submit]"),this.initEvents()}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"initEvents",value:function(){var e=this;this.$form.submit(function(e){e.preventDefault()}),this.$button.on("click",function(){e._sendData().done(function(t){t.success?(e.$form.find(".ac-modal__dialog__footer").remove(),e.$form.find(".ac-modal__dialog__content").html(t.data)):e.$error.html(t.data)})})}},{key:"_sendData",value:function(){return jQuery.ajax({url:ajaxurl,method:"post",data:{action:"acp-send-feedback",email:this.$form.find("[name=name]").val(),feedback:this.$form.find("[name=feedback]").val(),_ajax_nonce:this.$form.find("[name=_ajax_nonce]").val()}})}},{key:"show",value:function(){AC_Feedback.Modals.get("feedback").open()}}]),e}())(document.getElementById("frm-ac-feedback"))},function(e,t,n){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(e,[{key:"initEvents",value:function(){var t=this,n=this;document.addEventListener("keydown",function(e){var n=event.key;t.isOpen()&&"Escape"===n&&t.close()});var o=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');o.length>0&&o.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),n.close()})}),this.el.addEventListener("click",function(){n.close()}),this.el.querySelector(".ac-modal__dialog").addEventListener("click",function(e){e.stopPropagation()}),void 0===document.querySelector("body").dataset.ac_modal_init&&(e.initGlobalEvents(),document.querySelector("body").dataset.ac_modal_init=1),this.el.AC_MODAL=n}},{key:"isOpen",value:function(){return this.el.classList.contains("-active")}},{key:"close",value:function(){this.onClose(),this.el.classList.remove("-active")}},{key:"open",value:function(){this.onOpen(),this.el.classList.add("-active")}},{key:"onClose",value:function(){}},{key:"onOpen",value:function(){}}],[{key:"initGlobalEvents",value:function(){jQuery(document).on("click","[data-ac-open-modal]",function(e){e.preventDefault();var t=e.target.dataset.acOpenModal,n=document.querySelector(t);n&&n.AC_MODAL&&n.AC_MODAL.open()}),jQuery(document).on("click","[data-ac-modal]",function(e){e.preventDefault();var t=jQuery(this).data("ac-modal");o.default.init().get(t)&&o.default.init().get(t).open()})}}]),e}();e.exports=i}]);