function r(){const i=document.querySelectorAll("[data-engine]"),c=document.querySelectorAll("[data-engine-pane]"),o=document.querySelectorAll("[data-guide]"),n=document.querySelector("[data-guide-title]"),l={twilio:"Twilio service","wa-api":"WhatsApp API","business-api":"Business API"};function s(t){i.forEach(e=>{const a=e.dataset.engine===t;a?e.dataset.active="true":delete e.dataset.active,e.classList.toggle("border-wa-deep/40",a),e.classList.toggle("border-paper-200",!a)}),c.forEach(e=>e.hidden=e.dataset.enginePane!==t),o.forEach(e=>e.hidden=e.dataset.guide!==t),n&&(n.textContent=l[t]||"")}i.forEach(t=>t.addEventListener("click",()=>s(t.dataset.engine)));const d=document.querySelector('[data-engine][data-active="true"]');d&&s(d.dataset.engine)}export{r as default};
