/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";var common=require("./common-Cd2qH809.js");const validateHasSettingsMenu=(e,a)=>{common.watchBoolean(e,"_hasSettingsMenu",a)},validateTableCallbacks=(e,a)=>{common.watchValidator(e,"_on",e=>"object"==typeof e&&null!==e,new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),a)},validateTableStatefulCallbacks=(e,a)=>{common.watchValidator(e,"_on",e=>"object"==typeof e&&null!==e,new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),a)},validateTableData=(e,a,t)=>{common.emptyStringByArrayHandler(a,()=>{common.objectObjectHandler(a,()=>{void 0===a&&(a=[]);try{a=common.parseJson(a)}catch(e){}Array.isArray(a)&&a.every(e=>"object"==typeof e&&null!==e)&&common.setState(e,"_data",a,t)})})},validateTableDataFoot=(e,a,t)=>{common.emptyStringByArrayHandler(a,()=>{common.objectObjectHandler(a,()=>{void 0===a&&(a=[]);try{a=common.parseJson(a)}catch(e){}Array.isArray(a)&&a.every(e=>"object"==typeof e&&null!==e)&&common.setState(e,"_dataFoot",a,t)})})},validateTableSelection=(e,a)=>{(e=>e&&common.isObject(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys)))("string"==typeof a?(()=>{try{return common.parseJson(a)}catch(e){return}})():a)&&common.setState(e,"_selection",a)},validateTableSettings=(e,a)=>{common.watchValidator(e,"_tableSettings",e=>"object"==typeof e&&null!==e,new Set(["TableSettings"]),a)};exports.validateHasSettingsMenu=validateHasSettingsMenu,exports.validateTableCallbacks=validateTableCallbacks,exports.validateTableData=validateTableData,exports.validateTableDataFoot=validateTableDataFoot,exports.validateTableSelection=validateTableSelection,exports.validateTableSettings=validateTableSettings,exports.validateTableStatefulCallbacks=validateTableStatefulCallbacks;