(()=>{"use strict";var e,t={932:()=>{const e={unclear_how_to_use:["text_field_unclear","unclear_details"],switched_solution:["text_field_switched","switched_details"],other:["text_field_other","other_details"]};class t{constructor(){this.deactivationLink=document.getElementById("deactivate-pojo-accessibility"),this.deactivationLink&&(this.originalDeactivationLink=this.deactivationLink.getAttribute("href"),this.init())}modal(e,t,i){window.tb_show?.(e,t),setTimeout(()=>document.getElementById("TB_window")?.classList.add(i),5)}hideFields(){document.querySelectorAll(".ea11y-feedback-text-field").forEach(e=>e.style.display="none")}toggleField(t){this.hideFields();const i=e[t]?.[0];i&&(document.getElementById(i).style.display="block")}sendRequest(e,t){fetch(window?.ea11yDeactivationFeedback?.ajaxurl||"",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(e)}).finally(t)}handleSubmit(){const t=document.querySelector('input[name="ea11y_deactivation_reason"]:checked')?.value,i=e[t]?.[1],a=i&&document.getElementById(i)?.value||"";t?this.sendRequest({action:"ea11y_deactivation_feedback",reason:t,additional_data:a,nonce:window?.ea11yDeactivationFeedback?.nonce||""},()=>this.deactivate()):this.deactivate()}deactivate(){window.tb_remove?.(),window.location.href=this.originalDeactivationLink}init(){this.deactivationLink.addEventListener("click",e=>{e.preventDefault(),this.modal("QUICK FEEDBACK","#TB_inline?width=550&height=auto&inlineId=ea11y-deactivation-modal","ea11y-feedback-thickbox")}),document.addEventListener("change",e=>{"ea11y_deactivation_reason"===e.target?.name&&this.toggleField(e.target.value)}),document.addEventListener("click",e=>{"ea11y-submit-deactivate"===e.target?.id&&(e.preventDefault(),this.handleSubmit()),"ea11y-skip-deactivate"===e.target?.id&&(e.preventDefault(),this.deactivate())})}}document.addEventListener("DOMContentLoaded",()=>new t)}},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.m=t,e=[],a.O=(t,i,n,o)=>{if(!i){var d=1/0;for(r=0;r<e.length;r++){for(var[i,n,o]=e[r],c=!0,s=0;s<i.length;s++)(!1&o||d>=o)&&Object.keys(a.O).every(e=>a.O[e](i[s]))?i.splice(s--,1):(c=!1,o<d&&(d=o));if(c){e.splice(r--,1);var l=n();void 0!==l&&(t=l)}}return t}o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[i,n,o]},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={653:0,942:0};a.O.j=t=>0===e[t];var t=(t,i)=>{var n,o,[d,c,s]=i,l=0;if(d.some(t=>0!==e[t])){for(n in c)a.o(c,n)&&(a.m[n]=c[n]);if(s)var r=s(a)}for(t&&t(i);l<d.length;l++)o=d[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(r)},i=globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=a.O(void 0,[942],()=>a(932));n=a.O(n)})();