/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const prop_validators=require("./prop.validators-476ef807.js"),reuse=require("./reuse-daa2baf3.js"),validateTableCallbacks=(e,a)=>{prop_validators.watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),a)},validateTableStatefulCallbacks=(e,a)=>{prop_validators.watchValidator(e,"_on",(e=>"object"==typeof e&&null!==e),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),a)},validateTableData=(e,a,o)=>{prop_validators.emptyStringByArrayHandler(a,(()=>{prop_validators.objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=prop_validators.parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&prop_validators.setState(e,"_data",a,o)}))}))},validateTableDataFoot=(e,a,o)=>{prop_validators.emptyStringByArrayHandler(a,(()=>{prop_validators.objectObjectHandler(a,(()=>{void 0===a&&(a=[]);try{a=prop_validators.parseJson(a)}catch(e){}Array.isArray(a)&&a.every((e=>"object"==typeof e&&null!==e))&&prop_validators.setState(e,"_dataFoot",a,o)}))}))},validateTableSelection=(e,a)=>{(e=>e&&reuse.isObject(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys)))("string"==typeof a?(()=>{try{return prop_validators.parseJson(a)}catch(e){return}})():a)&&prop_validators.setState(e,"_selection",a)};exports.Events=void 0,function(e){e.onBlur="onBlur",e.onChange="onChange",e.onClick="onClick",e.onDblClick="onDblClick",e.onFocus="onFocus",e.onInput="onInput",e.onKeyDown="onKeyDown",e.onKeyPress="onKeyPress",e.onKeyUp="onKeyUp",e.onMouseDown="onMouseDown",e.onMouseMove="onMouseMove",e.onMouseOut="onMouseOut",e.onMouseOver="onMouseOver",e.onMouseUp="onMouseUp",e.onReset="onReset",e.onSelect="onSelect",e.onSort="onSort",e.onSelectionChange="onSelectionChange",e.onSubmit="onSubmit"}(exports.Events||(exports.Events={})),exports.validateTableCallbacks=validateTableCallbacks,exports.validateTableData=validateTableData,exports.validateTableDataFoot=validateTableDataFoot,exports.validateTableSelection=validateTableSelection,exports.validateTableStatefulCallbacks=validateTableStatefulCallbacks;