/*!
 * KoliBri - The accessible HTML-Standard
 */
import { emptyStringByArrayHandler, objectObjectHandler, parseJson, setState } from "../utils";
export const validateTableDataFoot = (component, value, setStateHooks) => {
    emptyStringByArrayHandler(value, () => {
        objectObjectHandler(value, () => {
            if (typeof value === 'undefined') {
                value = [];
            }
            try {
                value = parseJson(value);
            }
            catch (_a) {
            }
            if (Array.isArray(value) && value.every((data) => typeof data === 'object' && data !== null)) {
                setState(component, '_dataFoot', value, setStateHooks);
            }
        });
    });
};
//# sourceMappingURL=table-data-foot.js.map
