function d(){function o(){const e=document.createElement("div");e.className="flex items-center gap-2",e.innerHTML=`
          <input type="text" placeholder="Header-Name" class="w-1/3 px-3 py-2 border border-paper-200 rounded-lg bg-white text-[12.5px] font-mono focus:outline-none focus:border-wa-deep">
          <input type="text" placeholder="value" class="flex-1 px-3 py-2 border border-paper-200 rounded-lg bg-white text-[12.5px] font-mono focus:outline-none focus:border-wa-deep">
          <button type="button" class="w-9 h-9 rounded-lg hover:bg-accent-coral/15 text-accent-coral grid place-items-center"><svg viewBox="0 0 16 16" class="w-3.5 h-3.5" fill="none" stroke="currentColor" stroke-width="1.7"><path d="M4 4l8 8M12 4l-8 8"/></svg></button>`,e.querySelector("button").onclick=()=>e.remove(),document.getElementById("hdr-list").appendChild(e)}window.addHeader=o;const t=document.querySelectorAll(".ev");function n(){const e=[...t].filter(c=>c.checked);document.getElementById("ev-count").textContent=e.length,document.getElementById("rv-events").textContent=e.length,e[0]&&(document.getElementById("rv-event").textContent=e[0].dataset.ev)}t.forEach(e=>e.addEventListener("change",n)),document.getElementById("ev-all").addEventListener("click",()=>{t.forEach(e=>e.checked=!0),n()}),document.getElementById("ev-none").addEventListener("click",()=>{t.forEach(e=>e.checked=!1),n()})}export{d as default};
