import { toLowerFirstChar } from '../input/StringUtilities';
export const useDefaultFormValues = (initialObjectSchema, filterPropertyName = 'name', excludePropertyName = 'identifier') => {
    const result = initialObjectSchema === null || initialObjectSchema === void 0 ? void 0 : initialObjectSchema.filter((x) => {
        var _a, _b, _c;
        return !((x === null || x === void 0 ? void 0 : x.extendedProperties[excludePropertyName]) ||
            x.name === 'clusterId' ||
            ((_c = (_b = (_a = x === null || x === void 0 ? void 0 : x.extendedProperties) === null || _a === void 0 ? void 0 : _a.udpFieldProperties) === null || _b === void 0 ? void 0 : _b.maintainenceConfig) === null || _c === void 0 ? void 0 : _c.hiddenForm));
    }).map((x) => {
        return [toLowerFirstChar(x[filterPropertyName]), ''];
    });
    const defaultFormValues = !!result ? Object.fromEntries(result) : {};
    return {
        defaultFormValues
    };
};
export default useDefaultFormValues;
//# sourceMappingURL=useDefaultFormValues.js.map