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) {
        return metadata?.editorMetadata.metaInfo?.optionsMetadata?.propertiesMetadata?.find(itm => itm.modelType.name == value)?.modelType ?? 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