import { Component, ElementRef, HostBinding } from '@angular/core';
import { EclBreadcrumbSegmentComponent } from '../common/ecl-breadcrumb-segment.component';
import * as i0 from "@angular/core";
import * as i1 from "../../ecl-icon/ecl-icon.component";
import * as i2 from "@angular/common";
import * as i3 from "../../ecl-link/ecl-link.directive";
import * as i4 from "@angular/router";
export class EclBreadcrumbStandardisedSegmentComponent extends EclBreadcrumbSegmentComponent {
    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: "13.3.11", ngImport: i0, type: EclBreadcrumbStandardisedSegmentComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
/** @nocollapse */ EclBreadcrumbStandardisedSegmentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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", components: [{ type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "ariaHidden", "focusable"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.EclLinkDirective, selector: "[eclLink]", inputs: ["variant", "isNegative", "isNoVisited"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWNsLWJyZWFkY3J1bWItc3RhbmRhcmRpc2VkLXNlZ21lbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2VjbC1icmVhZGNydW1iL2VjbC1icmVhZGNydW1iLXN0YW5kYXJkaXNlZC9lY2wtYnJlYWRjcnVtYi1zdGFuZGFyZGlzZWQtc2VnbWVudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvZWNsLWJyZWFkY3J1bWIvZWNsLWJyZWFkY3J1bWItc3RhbmRhcmRpc2VkL2VjbC1icmVhZGNydW1iLXN0YW5kYXJkaXNlZC1zZWdtZW50LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRSxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQzs7Ozs7O0FBTTNGLE1BQU0sT0FBTyx5Q0FBMEMsU0FBUSw2QkFBNkI7SUFDeEYsWUFBbUIsRUFBYztRQUM3QixLQUFLLENBQUMsRU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