!function(){"use strict";var s=window.ctFrontend;(0,s.registerDynamicChunk)("blocksy_ext_newsletter_subscribe",{mount:function(s,{event:e}){!function(s){const e=new FormData(s);e.append("action","blc_newsletter_subscribe_process_ajax_subscribe"),e.append("GROUP",s.dataset.provider.split(":")[1]),s.classList.remove("subscribe-error","subscribe-success"),s.classList.add("subscribe-loading"),fetch(ct_localizations.ajax_url,{method:"POST",body:e}).then(function(s){return s.json()}).then(function({success:e,data:t}){s.classList.remove("subscribe-loading"),s.classList.add("no"===t.result?"subscribe-error":"subscribe-success"),s.querySelector(".ct-newsletter-subscribe-message").innerHTML=t.message})}(e.target)}})}();