!function(){"use strict";function e(){document.querySelectorAll(".wp-block-eryndo-accordion-block").forEach((function(e){e.querySelectorAll("[data-accordion-toggle]").forEach((function(e){e.removeEventListener("click",t),e.removeEventListener("keydown",o),e.addEventListener("click",t),e.addEventListener("keydown",o)}))}))}function t(e){e.preventDefault();const t=e.currentTarget.closest(".accordion-item"),o=t.classList.contains("is-open");t.closest(".wp-block-eryndo-accordion-block").querySelectorAll(".accordion-item").forEach((function(e){e!==t&&r(e)})),o?r(t):function(e){e.classList.add("is-open");const t=e.querySelector("[data-accordion-toggle]"),o=e.querySelector(".accordion-answer"),r=e.querySelector(".accordion-icon");t&&t.setAttribute("aria-expanded","true"),o&&o.setAttribute("aria-hidden","false"),r&&n(r,!0)}(t)}function o(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t(e))}function r(e){e.classList.remove("is-open");const t=e.querySelector("[data-accordion-toggle]"),o=e.querySelector(".accordion-answer"),r=e.querySelector(".accordion-icon");t&&t.setAttribute("aria-expanded","false"),o&&o.setAttribute("aria-hidden","true"),r&&n(r,!1)}function n(e,t){const o=e.getAttribute("data-icon-style")||"plus-minus",r=e.getAttribute("data-icon-size")||"24";let n="";switch(o){case"plus-minus":default:n=t?`<svg width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`:`<svg width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 5V19M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;break;case"arrow-down":n=`<svg width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${t?"rotate(180deg)":"rotate(0deg)"}; transition: transform 0.3s ease;"><path d="M6 9L12 15L18 9" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;break;case"chevron-down":n=`<svg width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${t?"rotate(180deg)":"rotate(0deg)"}; transition: transform 0.3s ease;"><path d="M8 10L12 14L16 10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;break;case"triangle":n=`<svg width="${r}" height="${r}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${t?"rotate(90deg)":"rotate(0deg)"}; transition: transform 0.3s ease;"><path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`}e.innerHTML=n}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e(),void 0!==window.wp&&window.wp.domReady&&wp.domReady(e)}();