document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".smb-read-more-box");[].slice.call(e).forEach((e=>{const t=e.querySelector(".smb-read-more-box__content");if(!t)return;const r=e.querySelector(".smb-read-more-box__button");if(!r)return;const a=e.querySelector(".smb-read-more-box__label");a&&(r.addEventListener("click",(()=>{const e=r.getAttribute("aria-controls"),t=document.getElementById(e);if(t)return"false"===r.getAttribute("aria-expanded")?(t.style.height=`${t.scrollHeight}px`,r.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false")):(t.style.height="",r.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")),!1})),t.addEventListener("transitionend",(()=>{const e=r.getAttribute("aria-expanded");a.textContent="false"===e?r.getAttribute("data-label"):r.getAttribute("data-close-label")})))}))}));