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