var l=Object.defineProperty;var o=(t,e,s)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>o(t,typeof e!="symbol"?e+"":e,s);class i{constructor(e){n(this,"_elements",{parent:null,container:null,header:null,body:null});n(this,"_opened",!0);this._elements.parent=e,this._elements.header=e.querySelector(".faq-list__header"),this._elements.body=e.querySelector(".faq-list__body"),window.addEventListener("resize",()=>{this.toggle(),this.toggle()}),this._elements.header.addEventListener("click",()=>{this.toggle()}),this.close(),setTimeout(()=>{this._opened=!0,this.close()},750)}open(){this._opened||(this._opened=!0,this._elements.parent.classList.add("faq-list__item--opened"))}close(){this._opened&&(this._opened=!1,this._elements.parent.classList.remove("faq-list__item--opened"))}toggle(){this[this._opened?"close":"open"]()}}document.addEventListener("DOMContentLoaded",()=>{for(let t of document.querySelectorAll(".faq-list__item"))new i(t)});