import { Pipe } from '@angular/core';
import * as i0 from "@angular/core";
/**
 * Gets indication whether is property selected
 */
export class PropertySelectedSAPipe {
    /**
     * Gets indication whether is property selected
     * @param value - Stores selected properties in their models and components
     * @param component - Name of component
     * @param model - Name of model
     * @param property - Name of property
     */
    transform(value, component, model, property) {
        if (!value[component]?.[model]) {
            return false;
        }
        return value[component][model].indexOf(property) >= 0;
    }
}
PropertySelectedSAPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PropertySelectedSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
PropertySelectedSAPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: PropertySelectedSAPipe, isStandalone: true, name: "propertySelected" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PropertySelectedSAPipe, decorators: [{
            type: Pipe,
            args: [{ name: 'propertySelected', standalone: true }]
        }] });
//# sourceMappingURL=propertySelected.pipe.js.map