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