!function(){"use strict";function t(){document.querySelectorAll(".wp-block-axvart-accordion-block").forEach(function(t){t.querySelectorAll("[data-accordion-toggle]").forEach(function(t){const n=t.closest(".accordion-item"),r=n.querySelector(".accordion-answer");if(r){const t=r.getAttribute("data-padding-top")||"20px",e=r.getAttribute("data-padding-bottom")||"20px",o=r.getAttribute("data-padding-left")||"20px",i=r.getAttribute("data-padding-right")||"20px";r.dataset.paddingTop=t,r.dataset.paddingBottom=e,r.dataset.paddingLeft=o,r.dataset.paddingRight=i,r.style.setProperty("--answer-padding-top",t),r.style.setProperty("--answer-padding-bottom",e),r.style.setProperty("--answer-padding-left",o),r.style.setProperty("--answer-padding-right",i),n.classList.contains("is-open")&&(r.style.maxHeight="none")}t.removeEventListener("click",e),t.removeEventListener("keydown",o),t.addEventListener("click",e),t.addEventListener("keydown",o)})})}function e(t){t.preventDefault();const e=t.currentTarget.closest(".accordion-item"),o=e.classList.contains("is-open");e.closest(".wp-block-axvart-accordion-block").querySelectorAll(".accordion-item").forEach(function(t){t!==e&&n(t)}),o?n(e):function(t){t.classList.add("is-open");const e=t.querySelector("[data-accordion-toggle]"),o=t.querySelector(".accordion-answer"),n=t.querySelector(".accordion-icon");if(e&&e.setAttribute("aria-expanded","true"),o){o.setAttribute("aria-hidden","false"),o.style.maxHeight=o.scrollHeight+"px";const e=function(){t.classList.contains("is-open")&&(o.style.maxHeight="none"),o.removeEventListener("transitionend",e)};o.addEventListener("transitionend",e)}n&&r(n,!0)}(e)}function o(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(t))}function n(t){t.classList.remove("is-open");const e=t.querySelector("[data-accordion-toggle]"),o=t.querySelector(".accordion-answer"),n=t.querySelector(".accordion-icon");e&&e.setAttribute("aria-expanded","false"),o&&(o.setAttribute("aria-hidden","true"),"none"!==o.style.maxHeight&&o.style.maxHeight||(o.style.maxHeight=o.scrollHeight+"px"),o.offsetHeight,o.style.maxHeight="0"),n&&r(n,!1)}function r(t,e){const o=t.getAttribute("data-icon-style")||"plus-minus",n=t.getAttribute("data-icon-size")||"24";let r="";switch(o){case"plus-minus":default:r=e?`<svg width="${n}" height="${n}" 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="${n}" height="${n}" 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":r=`<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${e?"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":r=`<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${e?"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":r=`<svg width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="transform: ${e?"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>`}t.innerHTML=r}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t(),void 0!==window.wp&&window.wp.domReady&&wp.domReady(t)}();