/*!
 * KoliBri - The accessible HTML-Standard
 */
import{q as o,r as t,w as s,F as i,a3 as c}from"./index-0489af72.js";import{I as e}from"./controller-19ccfc94.js";const n=(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 r extends e{constructor(o,t,e){super(o,t,e),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(e){o(e,(()=>{try{e=t(e)}catch(o){}s(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(i(o.left,1)||c(o.left)||i(o.right,1)||c(o.right))),new Set(["KoliBriHorizontalIcon"]),e,{hooks:{beforePatch:n},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{r as I};