/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const index=require("./index-7215e5f8.js"),controller=require("./controller-3ebac0f5.js"),beforePatchIcons=(n,o)=>{const t=n;"object"==typeof t&&null!==t&&(index.isString(t.right,1)&&(t.right={icon:t.right}),index.isString(t.left,1)&&(t.left={icon:t.left}),o.set("_icons",t))};class InputIconController extends controller.InputController{constructor(n,o,t){super(n,o,t),this.component=n}validateIcon(n){this.validateIcons(n)}validateIcons(n){index.objectObjectHandler(n,(()=>{try{n=index.parseJson(n)}catch(n){}index.watchValidator(this.component,"_icons",(n=>"object"==typeof n&&null!==n&&(index.isString(n.left,1)||index.isIcon(n.left)||index.isString(n.right,1)||index.isIcon(n.right))),new Set(["KoliBriHorizontalIcon"]),n,{hooks:{beforePatch:beforePatchIcons},required:!0})}))}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons||this.component._icon)}}exports.InputIconController=InputIconController;