!function(){"use strict";!function(){const e=()=>document.getElementById("hostinger-reach-add-form-notice");document.addEventListener("DOMContentLoaded",()=>{const t=e();if(!t||!hostinger_reach_add_form_notice_data)return;const n=t.querySelectorAll(".hostinger-reach-action-button");n?.length&&n.forEach(t=>{t.addEventListener("click",function(t){(t=>{const n=new FormData;n.append("action",hostinger_reach_add_form_notice_data.action),n.append("nonce",hostinger_reach_add_form_notice_data.nonce),n.append("choice",t),fetch(hostinger_reach_add_form_notice_data.ajaxurl,{method:"POST",body:n}).then(e=>e.json()).then(t=>{t?.success&&t.data?.redirect_url&&(window.location.href=t.data.redirect_url);const n=e(),o=e().querySelector(".notice-dismiss");o&&o.click(),n&&(n.style.display="none")})})(t.target.dataset.action)})})})}()}();