/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const controller=require("./controller-ef1a645a.js"),icons=require("./icons-3917f9e0.js"),prop_validators=require("./prop.validators-37d21dea.js"),common=require("./common-1ab929ac.js"),beforePatchIcons=(o,t)=>{const n=o;"object"==typeof n&&null!==n&&(common.isString(n.right,1)&&(n.right={icon:n.right}),common.isString(n.left,1)&&(n.left={icon:n.left}),t.set("_icons",n))};class InputIconController extends controller.InputController{constructor(o,t,n){super(o,t,n),this.component=o}validateIcons(o){prop_validators.objectObjectHandler(o,(()=>{try{o=prop_validators.parseJson(o)}catch(o){}prop_validators.watchValidator(this.component,"_icons",(o=>"object"==typeof o&&null!==o&&(common.isString(o.left,1)||icons.isIcon(o.left)||common.isString(o.right,1)||icons.isIcon(o.right))),new Set(["KoliBriHorizontalIcon"]),o,{hooks:{beforePatch:beforePatchIcons},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}exports.InputIconController=InputIconController;