/*!
 * KoliBri - The accessible HTML-Standard
 */
import{I as o}from"./controller-ae3a41a0.js";import{i as s}from"./icons-f3b7aabd.js";import{o as t,p as i,w as r}from"./prop.validators-c5e6ad2d.js";import{i as a}from"./common-54bf85ba.js";const c=(o,t)=>{const s=o;"object"==typeof s&&null!==s&&(a(s.right,1)&&(s.right={icon:s.right}),a(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}validateIcons(o){t(o,(()=>{try{o=i(o)}catch(o){}r(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(a(o.left,1)||s(o.left)||a(o.right,1)||s(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:c},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{e as I};