import{o as h,p,w as y,q as i,S as j,T as _}from"./index-B6uGkrgD.js";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},S=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),P=(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,0)||n(o.left)||i(o.right,0)||n(o.right)||i(o.top,0)||n(o.top)||i(o.bottom,0)||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)),S(d)}}}))})};export{P as v};
//# sourceMappingURL=icons-CmA8Oww0-B3CW7Bon.js.map
