import{o as h,p,w as y,t as i,T as j,U as _}from"./index-DscFWUNz.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const f=(t,e,s)=>{_(s)?t[e]=s:i(s,1)&&(t[e]={icon:s})},g=t=>{let e={};return i(t,1)?e={left:{icon:t}}:typeof t=="object"&&t!==null&&(f(e,"top",t.top),f(e,"right",t.right),f(e,"bottom",t.bottom),f(e,"left",t.left)),e},I=t=>{var e,s,c;if(!((e=t.nextState)===null||e===void 0)&&e.has("_icons")){const o=(s=t.nextState)===null||s===void 0?void 0:s.get("_icons");(c=t.nextState)===null||c===void 0||c.set("_icons",g(o))}},n=t=>typeof t=="object"&&t!==null&&(typeof t.style>"u"||j(t.style))&&(typeof t.label>"u"||i(t.label))&&i(t.icon,1),S=(t,e,s={})=>{h(e,()=>{var c;try{e=p(e)}catch{}y(t,"_icons",o=>{const r=typeof o=="object"&&o!==null&&Object.keys(o).length===0;return o===null||r||i(o,1)||typeof o=="object"&&o!==null&&(i(o.left,1)||n(o.left)||i(o.right,1)||n(o.right)||i(o.top,1)||n(o.top)||i(o.bottom,1)||n(o.bottom))},new Set(["KoliBriIcon"]),e,Object.assign(Object.assign({},s),{defaultValue:{},hooks:{afterPatch:(c=s.hooks)===null||c===void 0?void 0:c.afterPatch,beforePatch:(o,r,d,a)=>{var b,l;typeof((b=s.hooks)===null||b===void 0?void 0:b.beforePatch)=="function"&&((l=s.hooks)===null||l===void 0||l.beforePatch(o,r,d,a)),I(d)}}}))})};export{S as v};
//# sourceMappingURL=icons-72ER78AW-BvK8yAOn.js.map
