import { Pipe } from '@angular/core';
import * as i0 from "@angular/core";
/**
 * Transforms step into readable name
 */
export class StepNameSAPipe {
    /**
     * Transforms step into readable name
     * @param value - Step data
     */
    transform(value) {
        if (!value) {
            return '---';
        }
        if (value.componentRegistration) {
            return 'registration';
        }
        if (value.componentUnregistration) {
            return 'unregistration';
        }
        if (value.dataTransfer) {
            return 'data transfer';
        }
        return 'unkown';
    }
}
StepNameSAPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: StepNameSAPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
StepNameSAPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: StepNameSAPipe, isStandalone: true, name: "stepName" });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: StepNameSAPipe, decorators: [{
            type: Pipe,
            args: [{ name: 'stepName', standalone: true, }]
        }] });
//# sourceMappingURL=stepName.pipe.js.map