import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@ironsource/fusion-ui/components/icon/v1";
import * as i3 from "@ironsource/fusion-ui/components/dynamic-components/v1";
const _c0 = ["fusionTableEmpty", ""];
function TableEmptyComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "fusion-dynamic-components", 2);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("configuration", ctx_r0.customContent);
} }
function TableEmptyComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵelement(1, "fusion-icon", 7);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance();
    i0.ɵɵproperty("name", ctx_r2.icon);
} }
function TableEmptyComponent_ng_container_3_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 8);
} }
function TableEmptyComponent_ng_container_3_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 9);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance();
    i0.ɵɵtextInterpolate(ctx_r4.subHeader);
} }
function TableEmptyComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, TableEmptyComponent_ng_container_3_div_1_Template, 2, 1, "div", 3)(2, TableEmptyComponent_ng_container_3_div_2_Template, 1, 0, "div", 4);
    i0.ɵɵelementStart(3, "label");
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, TableEmptyComponent_ng_container_3_div_5_Template, 2, 1, "div", 5);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r1.icon);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r1.showNoDataImage);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r1.header);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r1.subHeader);
} }
export class TableEmptyComponent {
    constructor() {
        this.showNoDataImage = true;
    }
    static { this.ɵfac = function TableEmptyComponent_Factory(t) { return new (t || TableEmptyComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableEmptyComponent, selectors: [["", "fusionTableEmpty", ""]], inputs: { fusionTableEmpty: "fusionTableEmpty", customContent: "customContent", header: "header", subHeader: "subHeader", icon: "icon", showNoDataImage: "showNoDataImage" }, attrs: _c0, decls: 4, vars: 3, consts: [[1, "is-nodata"], [4, "ngIf"], [3, "configuration"], ["class", "icon-container", 4, "ngIf"], ["class", "no-data-img", 4, "ngIf"], ["class", "is-nodata-sub", 4, "ngIf"], [1, "icon-container"], [1, "empty-table-icon", 3, "name"], [1, "no-data-img"], [1, "is-nodata-sub"]], template: function TableEmptyComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "tr")(1, "td", 0);
            i0.ɵɵtemplate(2, TableEmptyComponent_ng_container_2_Template, 2, 1, "ng-container", 1)(3, TableEmptyComponent_ng_container_3_Template, 6, 4, "ng-container", 1);
            i0.ɵɵelementEnd()();
        } if (rf & 2) {
            i0.ɵɵadvance();
            i0.ɵɵattribute("colspan", ctx.fusionTableEmpty);
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", ctx.customContent);
            i0.ɵɵadvance();
            i0.ɵɵproperty("ngIf", !ctx.customContent);
        } }, dependencies: [i1.NgIf, i2.IconComponent, i3.DynamicComponentsComponent], styles: ["[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]{font-size:22px;font-family:var(--black-font-family, \"NHaasGroteskDSPro-75Bd\");font-weight:600}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .is-nodata-sub[_ngcontent-%COMP%]{font-size:13px;font-family:var(--body-font-family, \"HelveticaNeue\");font-weight:400}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]{text-align:center;color:var(--light-color-700, #95A6B8);padding:65px 0}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]:hover{background-color:#fff}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .is-nodata-sub[_ngcontent-%COMP%]{padding-top:5px}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{padding-bottom:24px}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   fusion-icon[class^=empty-table-icon][_ngcontent-%COMP%]     svg{height:51px;width:42px}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   fusion-icon[class^=empty-table-icon][_ngcontent-%COMP%]     svg *{fill:var(--light-color-600, #C2CDD7)}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{color:var(--light-color-600, #C2CDD7)}[_nghost-%COMP%]   .is-nodata[_ngcontent-%COMP%]   .no-data-img[_ngcontent-%COMP%]{display:none}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableEmptyComponent, [{
        type: Component,
        args: [{ selector: '[fusionTableEmpty]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<tr>\n    <td class=\"is-nodata\" [attr.colspan]=\"fusionTableEmpty\">\n        <ng-container *ngIf=\"customContent\">\n            <fusion-dynamic-components [configuration]=\"customContent\"></fusion-dynamic-components>\n        </ng-container>\n        <ng-container *ngIf=\"!customContent\">\n            <div class=\"icon-container\" *ngIf=\"icon\">\n                <fusion-icon class=\"empty-table-icon\" [name]=\"icon\"></fusion-icon>\n            </div>\n            <div *ngIf=\"showNoDataImage\" class=\"no-data-img\"></div>\n            <label>{{ header }}</label>\n            <div class=\"is-nodata-sub\" *ngIf=\"subHeader\">{{ subHeader }}</div>\n        </ng-container>\n    </td>\n</tr>\n", styles: [":host .is-nodata{font-size:22px;font-family:var(--black-font-family, \"NHaasGroteskDSPro-75Bd\");font-weight:600}:host .is-nodata .is-nodata-sub{font-size:13px;font-family:var(--body-font-family, \"HelveticaNeue\");font-weight:400}:host .is-nodata{text-align:center;color:var(--light-color-700, #95A6B8);padding:65px 0}:host .is-nodata:hover{background-color:#fff}:host .is-nodata .is-nodata-sub{padding-top:5px}:host .is-nodata .icon-container{padding-bottom:24px}:host .is-nodata .icon-container fusion-icon[class^=empty-table-icon] ::ng-deep svg{height:51px;width:42px}:host .is-nodata .icon-container fusion-icon[class^=empty-table-icon] ::ng-deep svg *{fill:var(--light-color-600, #C2CDD7)}:host .is-nodata .icon-container+label{color:var(--light-color-600, #C2CDD7)}:host .is-nodata .no-data-img{display:none}\n"] }]
    }], null, { fusionTableEmpty: [{
            type: Input
        }], customContent: [{
            type: Input
        }], header: [{
            type: Input
        }], subHeader: [{
            type: Input
        }], icon: [{
            type: Input
        }], showNoDataImage: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableEmptyComponent, { className: "TableEmptyComponent", filePath: "components/table-empty/table-empty.component.ts", lineNumber: 11 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtZW1wdHkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvdGFibGUvdjEvY29tcG9uZ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