import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { isNullOrUndefined } from '@ironsource/fusion-ui/utils';
import { EmptyStateComponent } from '@ironsource/fusion-ui/components/empty-state/v4';
import { DynamicComponentsModule } from '@ironsource/fusion-ui/components/dynamic-components/v1';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
const _c0 = ["fusionTableEmpty", ""];
function TableEmptyComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainer(0, 0);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngComponentOutlet", ctx_r0.customContent == null ? null : ctx_r0.customContent.component == null ? null : ctx_r0.customContent.component.type)("ngComponentOutletInputs", ctx_r0.customContent == null ? null : ctx_r0.customContent.component == null ? null : ctx_r0.customContent.component.data);
} }
function TableEmptyComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "fusion-empty-state", 1);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("type", ctx_r0.type)("title", ctx_r0.header)("description", ctx_r0.subHeader);
} }
export class TableEmptyComponent {
    constructor() {
        this._type = 'noData';
    }
    set type(value) {
        if (!isNullOrUndefined(value)) {
            this._type = value;
        }
    }
    get type() {
        return this._type;
    }
    static { this.ɵfac = function TableEmptyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TableEmptyComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableEmptyComponent, selectors: [["", "fusionTableEmpty", ""]], inputs: { fusionTableEmpty: "fusionTableEmpty", customContent: "customContent", header: "header", subHeader: "subHeader", type: "type" }, standalone: true, features: [i0.ɵɵStandaloneFeature], attrs: _c0, decls: 4, vars: 2, consts: [[3, "ngComponentOutlet", "ngComponentOutletInputs"], [3, "type", "title", "description"]], template: function TableEmptyComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "tr")(1, "td");
            i0.ɵɵtemplate(2, TableEmptyComponent_Conditional_2_Template, 1, 2, "ng-container", 0)(3, TableEmptyComponent_Conditional_3_Template, 1, 3, "fusion-empty-state", 1);
            i0.ɵɵelementEnd()();
        } if (rf & 2) {
            i0.ɵɵadvance();
            i0.ɵɵattribute("colspan", ctx.fusionTableEmpty);
            i0.ɵɵadvance();
            i0.ɵɵconditional(!!(ctx.customContent == null ? null : ctx.customContent.component == null ? null : ctx.customContent.component.type) ? 2 : 3);
        } }, dependencies: [CommonModule, i1.NgComponentOutlet, EmptyStateComponent, DynamicComponentsModule], styles: ["[_nghost-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:var(--table-empty-state-padding, 48px)}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableEmptyComponent, [{
        type: Component,
        args: [{ selector: '[fusionTableEmpty]', standalone: true, imports: [CommonModule, EmptyStateComponent, DynamicComponentsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<tr>\n    <td [attr.colspan]=\"fusionTableEmpty\">\n        @if (!!customContent?.component?.type) {\n            <ng-container\n                    [ngComponentOutlet]=\"customContent?.component?.type\"\n                    [ngComponentOutletInputs]=\"customContent?.component?.data\"\n            ></ng-container>\n        } @else {\n            <fusion-empty-state [type]=\"type\" [title]=\"header\" [description]=\"subHeader\"></fusion-empty-state>\n        }\n    </td>\n</tr>\n", styles: [":host tr td{padding:var(--table-empty-state-padding, 48px)}\n"] }]
    }], null, { fusionTableEmpty: [{
            type: Input
        }], customContent: [{
            type: Input
        }], header: [{
            type: Input
        }], subHeader: [{
            type: Input
        }], type: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableEmptyComponent, { className: "TableEmptyComponent", filePath: "components/table-empty/table-empty.component.ts", lineNumber: 17 }); })();
//# sourceMappingURL=data:application/json;base64, 