import { ReportFileType } from './../reports-container-models/reports-container-enums';
import { ReportGroup } from '../reports-container-models/report-group';
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/icon";
function ReportGroupComponent_ng_container_4_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "mat-icon", 9);
} }
function ReportGroupComponent_ng_container_4_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "mat-icon", 10);
} }
function ReportGroupComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
    const _r5 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelementStart(1, "div", 4);
    i0.ɵɵlistener("click", function ReportGroupComponent_ng_container_4_Template_div_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const report_r1 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.exportReportEvent.emit(report_r1); });
    i0.ɵɵelementStart(2, "div", 5);
    i0.ɵɵtemplate(3, ReportGroupComponent_ng_container_4_mat_icon_3_Template, 1, 0, "mat-icon", 6);
    i0.ɵɵtemplate(4, ReportGroupComponent_ng_container_4_mat_icon_4_Template, 1, 0, "mat-icon", 7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 8);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const report_r1 = ctx.$implicit;
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", report_r1.fileType === ctx_r0.filetype.pdf);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", report_r1.fileType === ctx_r0.filetype.xlsx);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(report_r1.name);
} }
export class ReportGroupComponent {
    //<----------------------< Component Variable >------------------>
    //<------------------------------------------------------------>
    constructor() {
        //<---------------------------------------------------------->
        //<-------------------------< Outputs >---------------------->
        this.exportReportEvent = new EventEmitter();
        //<---------------------------------------------------------->
        this.filetype = ReportFileType;
    }
    /**
     * On init life cycle hook
     */
    ngOnInit() {
    }
}
ReportGroupComponent.ɵfac = function ReportGroupComponent_Factory(t) { return new (t || ReportGroupComponent)(); };
ReportGroupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReportGroupComponent, selectors: [["lib-report-group"]], inputs: { reportGroup: "reportGroup" }, outputs: { exportReportEvent: "exportReportEvent" }, decls: 5, vars: 2, consts: [[1, "report-list-row"], [1, "report-list-title"], [1, "reports-container", "customscroll"], [4, "ngFor", "ngForOf"], [1, "report-box", 3, "click"], [1, "report-icon"], ["svgIcon", "axo-PDF", "class", "axo-icon", 4, "ngIf"], ["svgIcon", "axo_XLS", "class", "axo-icon", 4, "ngIf"], ["mat-button", "", 1, "report-name"], ["svgIcon", "axo-PDF", 1, "axo-icon"], ["svgIcon", "axo_XLS", 1, "axo-icon"]], template: function ReportGroupComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵtext(2);
        i0.ɵɵelementEnd();
        i0.ɵɵelementStart(3, "div", 2);
        i0.ɵɵtemplate(4, ReportGroupComponent_ng_container_4_Template, 7, 3, "ng-container", 3);
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵadvance(2);
        i0.ɵɵtextInterpolate(ctx.reportGroup.title);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("ngForOf", ctx.reportGroup == null ? null : ctx.reportGroup.reports);
    } }, directives: [i1.NgForOf, i1.NgIf, i2.MatIcon], styles: [""], encapsulation: 2 });
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReportGroupComponent, [{
        type: Component,
        args: [{ selector: 'lib-report-group', encapsulation: ViewEncapsulation.None, template: "<div class=\"report-list-row\">\n    <div class=\"report-list-title\">{{reportGroup.title}}</div>\n    <div class=\"reports-container customscroll\">\n        <ng-container *ngFor=\"let report of reportGroup?.reports\">\n            <div class=\"report-box\" (click)=\"exportReportEvent.emit(report)\">\n                <div class=\"report-icon\">\n                    <mat-icon *ngIf=\"report.fileType === filetype.pdf \" svgIcon=\"axo-PDF\" class=\"axo-icon\"></mat-icon>\n                    <mat-icon *ngIf=\"report.fileType === filetype.xlsx \" svgIcon=\"axo_XLS\" class=\"axo-icon\"></mat-icon>\n                </div>\n                <div mat-button  class=\"report-name\" >{{report.name}}</div>\n            </div>\n        </ng-container>\n    </div>\n</div>\n", styles: [""] }]
    }], function () { return []; }, { reportGroup: [{
            type: Input
        }], exportReportEvent: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 