import { Component, Input } from "@angular/core";
import { PageElement } from "../page-element";
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class BreadcrumbComponent {
}
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: BreadcrumbComponent, selector: "path-breadcrumb", inputs: { app: "app" }, ngImport: i0, template: "<div class=\"col-md-12\">\r\n    <h4>\r\n        <ol class=\"breadcrumb mt-2 mb-0 pb-0\">\r\n            <li *ngFor='let page of app[\"_pageStack\"]; let currentIndex = index; let last = last' class=\"breadcrumb-item {{last ? 'active': ''}}\">\r\n                <a href=\"#\" *ngIf='!last' (click)=\"app.navigateToPage(currentIndex)\">{{page.getShortName()}}</a>{{last ? page.getShortName() : ''}}\r\n            </li>\r\n        </ol>\r\n    </h4>\r\n</div>\r\n", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: BreadcrumbComponent, decorators: [{
            type: Component,
            args: [{ selector: "path-breadcrumb", template: "<div class=\"col-md-12\">\r\n    <h4>\r\n        <ol class=\"breadcrumb mt-2 mb-0 pb-0\">\r\n            <li *ngFor='let page of app[\"_pageStack\"]; let currentIndex = index; let last = last' class=\"breadcrumb-item {{last ? 'active': ''}}\">\r\n                <a href=\"#\" *ngIf='!last' (click)=\"app.navigateToPage(currentIndex)\">{{page.getShortName()}}</a>{{last ? page.getShortName() : ''}}\r\n            </li>\r\n        </ol>\r\n    </h4>\r\n</div>\r\n" }]
        }], propDecorators: { app: [{
                type: Input,
                args: ["app"]
            }] } });
// breadcrumb is a special element since it uses app directly
export class Breadcrumb extends PageElement {
    constructor(app) {
        super(app);
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJlYWRjcnVtYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9hcHAvcGF0aC1mcmFtZXdvcmsvcGFnZS9lbGVtZW50L2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9hcHAvcGF0aC1mcmFtZXdvcmsvcGFnZS9lbGVtZW50L2JyZWFkY3J1bWIvYnJlYWRjcnVtYi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMvQyxPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0saUJBQWlCLENBQUM7OztBQU81QyxNQUFNLE9BQU8sbUJBQW1COztnSEFBbkIsbUJBQW1CO29HQUFuQixtQkFBbUIsK0VDUmhDLGlkQVNBOzJGRERhLG1CQUFtQjtrQkFKL0IsU0FBUzsrQkFDSSxpQkFBaUI7OEJBSzNCLEdBQUc7c0JBREYsS0FBSzt1QkFBQyxLQUFLOztBQUloQiw2REFBNkQ7QUFDN0QsTUFBTSxPQUFPLFVBQVcsU0FBUSxXQUFXO0lBSXZDLFlBQVksR0FBcUI7UUFDN0IsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ2YsQ0FBQztDQUVKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtDb21wb25lbnQsIElucHV0fSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5pbXBvcnQge1BhZ2VFbGVtZW50fSBmcm9tIFwiLi4vcGFnZS1lbGVtZW50XCI7X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