(()=>{"use strict";var e={932(){document.addEventListener("DOMContentLoaded",(function(){function e(e){const t=document.getElementById(e);t&&(t.style.display="block")}const t=document.getElementById("deactivate-site-mailer");if(t){const n=t.getAttribute("href");t.addEventListener("click",(function(e){var t;return e.preventDefault(),t="site-mailer-feedback-thickbox",window.tb_show&&window.tb_show("QUICK FEEDBACK","#TB_inline?width=550&height=auto&inlineId=site-mailer-deactivation-modal"),setTimeout((function(){if(t){const e=document.getElementById("TB_window");e&&e.classList.add(t)}}),5),!1})),document.addEventListener("change",(function(t){if(t.target&&"site_mailer_deactivation_reason"===t.target.name){document.querySelectorAll(".site-mailer-feedback-text-field").forEach((function(e){e.style.display="none"}));const n=t.target.value;"unclear_how_to_use"===n?e("text_field_unclear"):"switched_solution"===n?e("text_field_switched"):"other"===n&&e("text_field_other")}})),document.addEventListener("click",(function(e){if(e.target&&"site-mailer-submit-deactivate"===e.target.id){e.preventDefault();const t=document.querySelector('input[name="site_mailer_deactivation_reason"]:checked'),i=t?t.value:"";let o="";if("unclear_how_to_use"===i){const e=document.getElementById("unclear_details");o=e?e.value:""}else if("switched_solution"===i){const e=document.getElementById("switched_details");o=e?e.value:""}else if("other"===i){const e=document.getElementById("other_details");o=e?e.value:""}i?function(e,t){const n=new URLSearchParams(e);fetch(window?.siteMailerDeactivationFeedback?.ajaxurl||"",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n}).then((()=>{t&&t()})).catch((e=>{console.warn("Feedback submission failed:",e),t&&t()}))}({action:"site_mailer_deactivation_feedback",reason:i,additional_data:o,nonce:window?.siteMailerDeactivationFeedback?.nonce||""},(function(){window.tb_remove&&window.tb_remove(),window.location.href=n})):(window.tb_remove&&window.tb_remove(),window.location.href=n)}})),document.addEventListener("click",(function(e){e.target&&"site-mailer-skip-deactivate"===e.target.id&&(e.preventDefault(),window.tb_remove&&window.tb_remove(),window.location.href=n)}))}}))}};const t={};function n(i){const o=t[i];if(void 0!==o)return o.exports;const a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.m=e,(()=>{const e=[];n.O=(t,i,o,a)=>{if(i){a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];return void(e[c]=[i,o,a])}let d=1/0;for(c=0;c<e.length;c++){let[i,o,a]=e[c],l=!0;for(var r=0;r<i.length;r++)(!1&a||d>=a)&&Object.keys(n.O).every((e=>n.O[e](i[r])))?i.splice(r--,1):(l=!1,a<d&&(d=a));if(l){e.splice(c--,1);const n=o();void 0!==n&&(t=n)}}return t}})(),n.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={879:0,666:0};n.O.j=t=>0===e[t];const t=(t,i)=>{let[o,a,c]=i;var d,r,l=0;if(o.some((t=>0!==e[t]))){for(d in a)n.o(a,d)&&(n.m[d]=a[d]);if(c)var s=c(n)}for(t&&t(i);l<o.length;l++)r=o[l],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(s)},i=globalThis.webpackChunksite_mailer||=[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();let i=n.O(void 0,[666],(()=>n(932)));i=n.O(i)})();