/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const prop_validators=require("./prop.validators-96dfedce.js"),common=require("./common-1ab929ac.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&&common.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.Callback=void 0,function(e){e.onBlur="onBlur",e.onChange="onChange",e.onChangePage="onChangePage",e.onClick="onClick",e.onClose="onClose",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.onSelectionChange="onSelectionChange",e.onChangePageSize="onChangePageSize",e.onSort="onSort",e.onSubmit="onSubmit",e.onToggle="onToggle"}(exports.Callback||(exports.Callback={})),exports.validateTableCallbacks=validateTableCallbacks,exports.validateTableData=validateTableData,exports.validateTableDataFoot=validateTableDataFoot,exports.validateTableSelection=validateTableSelection,exports.validateTableStatefulCallbacks=validateTableStatefulCallbacks;