import { Component, ElementRef, HostBinding } from '@angular/core';
import { EclBreadcrumbSegmentComponentBase } from '../common/ecl-breadcrumb-segment.component';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/router";
import * as i3 from "../../../ecl-link/ecl-link.directive";
import * as i4 from "../../../ecl-icon/ecl-icon.component";
/**
 * @deprecated Please use EclBreadcrumbSegmentComponent instead
 */
export class EclBreadcrumbStandardisedSegmentComponent extends EclBreadcrumbSegmentComponentBase {
    constructor(el) {
        super(el);
        this.el = el;
    }
    get cssClasses() {
        return [
            super.getCssClasses('ecl-breadcrumb-standardised__segment'),
            this.isCurrentPage ? 'ecl-breadcrumb-standardised__current-page' : ''
        ].join(' ').trim();
    }
}
/** @nocollapse */ EclBreadcrumbStandardisedSegmentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclBreadcrumbStandardisedSegmentComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclBreadcrumbStandardisedSegmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: EclBreadcrumbStandardisedSegmentComponent, selector: "ecl-breadcrumb-standardised-segment", host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<a *ngIf=\"!isCurrentPage && href\"\n   eclLink\n   variant=\"standalone\"\n   [isNoVisited]=\"true\"\n   [href]=\"href\"\n   (click)=\"onSegmentClick($event)\"\n   class=\"ecl-breadcrumb-standardised__link\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</a>\n<a *ngIf=\"!isCurrentPage && !href\"\n   eclLink\n   [routerLink]=\"routerLink\"\n   [queryParams]=\"queryParams\"\n   variant=\"standalone\"\n   [isNoVisited]=\"true\"\n   [href]=\"href\"\n   (click)=\"onSegmentClick($event)\"\n   class=\"ecl-breadcrumb-standardised__link\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</a>\n\n<ng-container *ngIf=\"isCurrentPage\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-container>\n<ecl-icon *ngIf=\"!isCurrentPage\" \n    role=\"presentation\" \n    icon=\"corner-arrow\" \n    size=\"2xs\"\n    class=\"ecl-breadcrumb-standardised__icon ecl-icon--rotate-90\">\n</ecl-icon>\n\n<ng-template #content><ng-content></ng-content></ng-template>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i3.EclLinkDirective, selector: "[eclLink]", inputs: ["variant", "isNegative", "isNoVisited"] }, { kind: "component", type: i4.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: EclBreadcrumbStandardisedSegmentComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ecl-breadcrumb-standardised-segment', template: "<a *ngIf=\"!isCurrentPage && href\"\n   eclLink\n   variant=\"standalone\"\n   [isNoVisited]=\"true\"\n   [href]=\"href\"\n   (click)=\"onSegmentClick($event)\"\n   class=\"ecl-breadcrumb-standardised__link\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</a>\n<a *ngIf=\"!isCurrentPage && !href\"\n   eclLink\n   [routerLink]=\"routerLink\"\n   [queryParams]=\"queryParams\"\n   variant=\"standalone\"\n   [isNoVisited]=\"true\"\n   [href]=\"href\"\n   (click)=\"onSegmentClick($event)\"\n   class=\"ecl-breadcrumb-standardised__link\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</a>\n\n<ng-container *ngIf=\"isCurrentPage\">\n    <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-container>\n<ecl-icon *ngIf=\"!isCurrentPage\" \n    role=\"presentation\" \n    icon=\"corner-arrow\" \n    size=\"2xs\"\n    class=\"ecl-breadcrumb-standardised__icon ecl-icon--rotate-90\">\n</ecl-icon>\n\n<ng-template #content><ng-content></ng-content></ng-template>\n" }]
        }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { cssClasses: [{
                type: HostBinding,
                args: ['class']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWJyZWFkY3J1bWItc3RhbmRhcmRpc2VkLXNlZ21lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1icmVhZGNydW1iL2RlcHJlY2F0ZWQvZWNsLWJyZWFkY3J1bWItc3RhbmRhcmRpc2VkL2VjbC1icmVhZGNydW1iLXN0YW5kYXJkaXNlZC1zZWdtZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9lY2wtYnJlYWRjcnVtYi9kZXByZWNhdGVkL2VjbC1icmVhZGNydW1iLXN0YW5kYXJkaXNlZC9lY2wtYnJlYWRjcnVtYi1zdGFuZGFyZGlzZWQtc2VnbWVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkUsT0FBTyxFQUFFLGlDQUFpQyxFQUFFL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