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 "@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    <ng-container *ngIf=\"iconTemplateRef\" [ngTemplateOutlet]=\"iconTemplateRef\"\n      [ngTemplateOutletContext]=\"{$implicit:item}\">\n    </ng-container>\n  </spn-home-tile>\n</spn-home-tiles>", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.SpnHomeTile, selector: "spn-home-tile", inputs: ["spfClass", "spfClassObject", "spfTitle"] }, { kind: "component", type: i2.SpnHomeTiles, selector: "spn-home-tiles" }, { kind: "pipe", type: i3.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    <ng-container *ngIf=\"iconTemplateRef\" [ngTemplateOutlet]=\"iconTemplateRef\"\n      [ngTemplateOutletContext]=\"{$implicit:item}\">\n    </ng-container>\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhLW5hdmlnYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NwYS1uYXZpZ2F0aW9uL3NwYS1uYXZpZ2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9zcGEtbmF2aWdhdGlvbi9zcGEtbmF2aWdhdGlvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBZSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFPbEcsTUFBTSxPQUFPLHNCQUFzQjtJQUtqQztRQUhTLGFBQVEsR0FBeUIsRUFBRSxDQUFDO1FBQ25DLGFBQVEsR0FBeUIsSUFBSSxZ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