/*!
 * KoliBri - The accessible HTML-Standard
 */
import{I as o}from"./controller-ec60cfa6.js";import{i as s}from"./icons-b0b05e20.js";import{o as t,p as i,w as r}from"./prop.validators-5a58fa40.js";import{i as c}from"./common-54bf85ba.js";const a=(o,t)=>{const s=o;"object"==typeof s&&null!==s&&(c(s.right,1)&&(s.right={icon:s.right}),c(s.left,1)&&(s.left={icon:s.left}),t.set("_icons",s))};class e extends o{constructor(o,t,s){super(o,t,s),this.component=o}validateIcon(o){this.validateIcons(o)}validateIcons(o){t(o,(()=>{try{o=i(o)}catch(o){}r(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(c(o.left,1)||s(o.left)||c(o.right,1)||s(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:a},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}export{e as I};