import e from"./BmcFormHandler-Cy_z0FMb.js";var t={};(function(n){t={forms:{},general:window.buymecoffee_general,formData:{},initiated:!1,init(){this.forms=n(`.buymecoffee_form`),n.each(this.forms,function(t){let r=n(this),i=window.buymecoffee_settings;new e(r,i).initForm()}),this.initOther(),this.initiated=!0},initOther(){n(`.buymecoffee_form input`).on(`keypress`,function(e){return e?.which!==13}),n(`.buymecoffee_form`).find(`input[data-required="yes"][data-type="input"],textarea[data-required="yes"],select[data-required="yes"]`).on(`keypress blur`,function(e){n(this).val()&&n(this).removeClass(`wpf_has_error`)})}},n(window).on(`load`,function(){t?.initiated||t.init()}),n(document).ready(function(){let e=n(`#bmc_modal_wrapper`),t=n(`#bmc_open_modal_btn`),r=n(`.close`);t.click(function(){e.show()}),r.click(function(){e.hide()}),n(window).click(function(t){t.target==e[0]&&e.hide()})})})(jQuery);