(()=>{"use strict";var t={n:e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a}),a},d:(e,a)=>{for(var s in a)t.o(a,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:a[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=jQuery;var a=t.n(e);const s=devowlWp_utils;let r;const o={path:"/newsletter/subscribe",method:s.RouteHttpVerb.POST};async function n(t){await((...t)=>(r||(r=(0,s.createRequestFactory)(window[s.BaseOptions.getPureSlug("real-utils",!0)]))).request(...t))({location:o,request:t})}let c;const l=(...t)=>(c||(c=(0,s.createLocalizationFactory)("".concat("devowl-wp","-").concat("real-utils")))).__(...t);a()(document).on("click",".about-wrap .real-utils-newsletter-box .button-hero",(async function(t){t.preventDefault();const e=a()(this).parents(".real-utils-newsletter-box"),s=a()(this).parents(".wrap").data("slug"),r="".concat(a()("input[name='newsletter-email']").val()),o=e.find("input[type='checkbox']").is(":checked"),c=e.find(".error-msg").hide();a()(this).html(l("Loading…")).addClass("button-primary");try{await n({slug:s,email:r,privacy:o}),a()(this).html(l("Successfully subscribed!")).removeClass("button-primary")}catch(t){a()(this).html(l("Subscribe")),c.html(t.responseJSON.message).show()}}))})();
//# sourceMappingURL=welcome.js.map