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