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