import { DynamicPropertyMetadata } from '@anglr/dynamic';
import { extend } from '@jscrpt/common';
import { LayoutPropertyMetadata } from '../../misc/types';
/**
 * Adds object metadata to component property for designer
 * @param type - Type containing metadata for nested object
 * @param metadataSymbols - Array of symbols that are storing metadata
 */
export function LayoutPropertyObject(type, metadataSymbols) {
    const objMetadata = {};
    for (const metaSymbol of metadataSymbols) {
        const typeMetadata = Reflect.get(type.prototype, metaSymbol);
        extend(true, objMetadata, typeMetadata);
    }
    return DynamicPropertyMetadata({ object: objMetadata }, LayoutPropertyMetadata);
}
//# sourceMappingURL=propertyObject.decorator.js.map