import { Pipe } from '@angular/core';
import * as i0 from "@angular/core";
/**
 * Gets properties controls that are used for setting model value
 */
export class GetControlsSAPipe {
    /**
     * Gets properties controls that are used for setting model value
     * @param value - Name of model class
     * @param metadata - Metadata containing properties controls for model
     */
    transform(value, metadata) {
        return metadata?.editorMetadata.metaInfo?.optionsMetadata?.propertiesMetadata?.find(itm => itm.modelType.name == value)?.propertiesControls ?? [];
    }
}
GetControlsSAPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: GetControlsSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
GetControlsSAPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: GetControlsSAPipe, isStandalone: true, name: "getControls" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: GetControlsSAPipe, decorators: [{
            type: Pipe,
            args: [{ name: 'getControls', standalone: true }]
        }] });
//# sourceMappingURL=getControls.pipe.js.map