(()=>{"use strict";let e=e=>{let t=e.currentTarget.closest(".ea-block-accordion");t&&(t.classList.toggle("ea-active"),e.currentTarget.ariaPressed="true"==e.currentTarget.ariaPressed?"false":"true")},t=(e,t)=>{let s=t.currentTarget.closest(".ea-item-slider-container").querySelector(".ea-item-slider");s.classList.contains("wp-block-group")&&s.classList.contains("easl-wp-version-below-6")&&(s=s.firstElementChild);let r=s;s.childNodes.length>0&&(r=s.firstElementChild);let n=s.scrollLeft,o=r.offsetWidth,l=s.scrollWidth,i=s.offsetWidth;e?l-n-i<1?(s.firstElementChild,s.scrollTo({left:0,behavior:"smooth"})):s.scrollBy({left:o,behavior:"smooth"}):n>1&&s.scrollBy({left:-1*o,behavior:"smooth"})};document.addEventListener("DOMContentLoaded",(function(s){let r=document.getElementsByClassName("ea-item-slider");r&&[...r].map((e=>{e.classList.contains("wp-block-group")&&e.firstElementChild.classList.contains("wp-block-group__inner-container")&&e.classList.add("easl-wp-version-below-6")})),[...document.getElementsByClassName("ea-item-slider-control-next")].map((e=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("pointerdown",(e=>(e.preventDefault(),t(!0,e),!1))),e.addEventListener("keydown",(e=>{"39"==e.keyCode&&(e.preventDefault(),t(!0,e))}))})),[...document.getElementsByClassName("ea-item-slider-control-prev")].map((e=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("pointerdown",((e,s)=>{e.preventDefault(),t(!1,e)})),e.addEventListener("keydown",(e=>{"37"==e.keyCode&&(e.preventDefault(),move_slider_item(!1,e))}))})),[...document.getElementsByClassName("ea-block-accordion-btn")].map((t=>{t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.setAttribute("aria-pressed","false"),t.addEventListener("pointerdown",(t=>{e(t)})),t.addEventListener("keydown",(t=>{"38"!=t.keyCode&&"40"!=t.keyCode||(t.preventDefault(),e(t))}))}))}))})();