import { Component, ContentChild, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@softpak/frontend-components-ng/dist/frontend-components-ng";
import * as i3 from "@fortawesome/angular-fontawesome";
import * as i4 from "@ngx-translate/core";
export class SpaNavigationComponent {
    constructor() {
        this.navItems = [];
        this.spaClick = new EventEmitter();
    }
    onNavigate(link) {
        this.spaClick.emit(link);
    }
}
SpaNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
SpaNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SpaNavigationComponent, selector: "spa-navigation", inputs: { navItems: "navItems" }, outputs: { spaClick: "spaClick" }, queries: [{ propertyName: "iconTemplateRef", first: true, predicate: ["icon"], descendants: true }], ngImport: i0, template: "<spn-home-tiles>\n  <spn-home-tile *ngFor=\"let item of navItems\" (click)=\"onNavigate(item.routerLink)\"\n    [attr.spn-home-tile--code]=\"item.code\" [spfTitle]=\"item.title | translate\">\n    <fa-icon [icon]=\"item.icon\"></fa-icon>\n  </spn-home-tile>\n</spn-home-tiles>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.SpnHomeTile, selector: "spn-home-tile", inputs: ["spfClass", "spfClassObject", "spfTitle"] }, { kind: "component", type: i2.SpnHomeTiles, selector: "spn-home-tiles" }, { kind: "component", type: i3.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaNavigationComponent, decorators: [{
            type: Component,
            args: [{ selector: 'spa-navigation', template: "<spn-home-tiles>\n  <spn-home-tile *ngFor=\"let item of navItems\" (click)=\"onNavigate(item.routerLink)\"\n    [attr.spn-home-tile--code]=\"item.code\" [spfTitle]=\"item.title | translate\">\n    <fa-icon [icon]=\"item.icon\"></fa-icon>\n  </spn-home-tile>\n</spn-home-tiles>" }]
        }], ctorParameters: function () { return []; }, propDecorators: { iconTemplateRef: [{
                type: ContentChild,
                args: ['icon', { static: false }]
            }], navItems: [{
                type: Input
            }], spaClick: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhLW5hdmlnYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NwYS1uYXZpZ2F0aW9uL3NwYS1uYXZpZ2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9zcGEtbmF2aWdhdGlvbi9zcGEtbmF2aWdhdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBZSxNQUFNLGVBQWUsQ0FBQzs7Ozs7O0FBT2xHLE1BQU0sT0FBTyxzQkFBc0I7SUFLakM7UUFIUyxhQUFRLEdBQXlCLEVBQUUsQ0FBQztRQUNuQyxhQUFRLEdBQXlCLElBQUksWUFBWSxFQUFVLENBQUM7SUFHbkUsQ0FBQztJQUVHLFVBQVUsQ0FBQyxJQUFZO1FBQzVCLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ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