"use strict";var t=require("./index.cjs");const e=(t,e)=>s=>{t.setAttribute(e,s)},s=(t,e)=>{console.log("TODO")};exports.attributeSink=e,exports.attributesSink=n=>i=>{(Object.entries(i)??[]).forEach((([i,r])=>0==r||void 0===r?n.removeAttribute(i):"on"==i.substring(0,2)&&"function"==typeof(r.next??r)?n.addEventListener(i.substring(2),r.next?.bind(r)??r,{capture:!0}):"function"==typeof r.subscribe?r.subscribe((t.DOMSinks.get(i)||e)(n,i)):"function"==typeof r.then?r.then((t.DOMSinks.get(i)||e)(n,i)):"class"==i?r.then?r.then((t=>s())):r.subscribe?r.subscribe((t=>s())):s():"style"==i?((t,e)=>{const s=t.style;Object.entries(e).forEach((([t,e])=>s[t]=e))})(n,r):"value"==i?n.value=r:n.setAttribute(i,r)))};
//# sourceMappingURL=attribute-sink.cjs.map
