import { Pipe } from '@angular/core';
import * as i0 from "@angular/core";
/**
 * Gets properties model using its name
 */
export class GetModelSAPipe {
    /**
     * Gets properties model using its name
     * @param value - Name of model class
     * @param metadata - Metadata containing 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.modelType) !== null && _e !== void 0 ? _e : null;
    }
}
GetModelSAPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: GetModelSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
GetModelSAPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: GetModelSAPipe, isStandalone: true, name: "getModel" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: GetModelSAPipe, decorators: [{
            type: Pipe,
            args: [{ name: 'getModel', standalone: true }]
        }] });
//# sourceMappingURL=getModel.pipe.js.map