/*!
 * KoliBri - The accessible HTML-Standard
 */
import{t as o,u as t,w as s,H as i,a5 as e}from"./index-c3ae175d.js";import{I as a}from"./controller-a5087ab9.js";const c=(o,t)=>{const e=o;"object"==typeof e&&null!==e&&(i(e.right,1)&&(e.right={icon:e.right}),i(e.left,1)&&(e.left={icon:e.left}),t.set("_icons",e))};class n extends a{constructor(o,t,e){super(o,t,e),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(n){o(n,(()=>{try{n=t(n)}catch(o){}s(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(i(o.left,1)||e(o.left)||i(o.right,1)||e(o.right))),new Set(["KoliBriHorizontalIcon"]),n,{hooks:{beforePatch:c},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{n as I};