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) {
        var _a, _b, _c, _d, _e;
        return (_e = (_d = (_c = (_b = (_a = metadata === null || metadata === void 0 ? void 0 : metadata.editorMetadata.metaInfo) === null || _a === void 0 ? void 0 : _a.optionsMetadata) === null || _b === void 0 ? void 0 : _b.propertiesMetadata) === null || _c === void 0 ? void 0 : _c.find(itm => itm.modelType.name == value)) === null || _d === void 0 ? void 0 : _d.propertiesControls) !== null && _e !== void 0 ? _e : [];
    }
}
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