import { Component, EventEmitter, Injector, Input, Output } from '@angular/core';
import { ModalTestIdModifiers } from '@ironsource/fusion-ui/entities';
import { TestIdsService } from '@ironsource/fusion-ui/services/test-ids';
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/tooltip/v3";
import * as i4 from "@ironsource/fusion-ui/pipes/generic";
function ModalHeaderComponent_div_0_fusion_icon_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "fusion-icon", 5);
} if (rf & 2) {
    const ctx_r1 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("name", ctx_r1.infoIcon)("fusionTooltip", ctx_r1.infoText);
} }
function ModalHeaderComponent_div_0_fusion_icon_5_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "fusion-icon", 6);
    i0.ɵɵlistener("click", function ModalHeaderComponent_div_0_fusion_icon_5_Template_fusion_icon_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.closeModal.emit()); });
    i0.ɵɵpipe(1, "generic");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("name", ctx_r2.closeButtonIcon);
    i0.ɵɵattribute("data-testid", i0.ɵɵpipeBind3(1, 2, ctx_r2.testIdsService.getTestAttribute.bind(ctx_r2), ctx_r2.testId, ctx_r2.modalTestIdModifiers.MODAL_CLOSE_BUTTON));
} }
function ModalHeaderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
    i0.ɵɵpipe(2, "generic");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, ModalHeaderComponent_div_0_fusion_icon_4_Template, 1, 2, "fusion-icon", 3)(5, ModalHeaderComponent_div_0_fusion_icon_5_Template, 2, 6, "fusion-icon", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵattribute("data-testid", i0.ɵɵpipeBind3(2, 4, ctx_r0.testIdsService.getTestAttribute.bind(ctx_r0), ctx_r0.testId, ctx_r0.modalTestIdModifiers.MODAL_TITLE));
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r0.headerText);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r0.infoText);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r0.showCloseButton);
} }
export class ModalHeaderComponent {
    set infoText(value) {
        this._infoText = value;
    }
    get infoText() {
        return this._infoText;
    }
    constructor(injector) {
        this.injector = injector;
        this.showCloseButton = true;
        /** @internal */
        this.modalTestIdModifiers = ModalTestIdModifiers;
        /** @internal */
        this.testIdsService = this.injector.get(TestIdsService);
        /** @internal */
        this.closeButtonIcon = { iconName: 'close', iconVersion: 'v3' };
        /** @internal */
        this.infoIcon = { iconName: 'info', iconVersion: 'v3' };
        this.closeModal = new EventEmitter();
    }
    static { this.ɵfac = function ModalHeaderComponent_Factory(t) { return new (t || ModalHeaderComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalHeaderComponent, selectors: [["fusion-modal-header"]], inputs: { headerText: "headerText", showCloseButton: "showCloseButton", testId: "testId", infoText: "infoText" }, outputs: { closeModal: "closeModal" }, decls: 1, vars: 1, consts: [["class", "modal-header", 4, "ngIf"], [1, "modal-header"], [1, "modal-header-title"], ["class", "fu-info", 3, "name", "fusionTooltip", 4, "ngIf"], ["class", "fu-close", 3, "name", "click", 4, "ngIf"], [1, "fu-info", 3, "name", "fusionTooltip"], [1, "fu-close", 3, "name", "click"]], template: function ModalHeaderComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, ModalHeaderComponent_div_0_Template, 6, 8, "div", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.headerText);
        } }, dependencies: [i1.NgIf, i2.IconComponent, i3.TooltipDirective, i4.GenericPipe], styles: ["@font-face{font-family:NHaasGroteskDSPro;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.ttf) format(\"truetype\")}@font-face{font-family:NHaasGroteskDSPro-65Md;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue-Medium;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.ttf) format(\"truetype\")}.font-heading-6[_ngcontent-%COMP%], .font-heading-5[_ngcontent-%COMP%], .font-heading-4[_ngcontent-%COMP%], .font-heading-3[_ngcontent-%COMP%], .font-heading-2[_ngcontent-%COMP%], .font-heading-1[_ngcontent-%COMP%]{font-family:NHaasGroteskDSPro,sans-serif}.font-heading-1[_ngcontent-%COMP%]{font-size:60px}.font-heading-2[_ngcontent-%COMP%]{font-size:32px}.font-heading-3[_ngcontent-%COMP%]{font-size:22px}.font-heading-4[_ngcontent-%COMP%]{font-size:18px}.font-heading-5[_ngcontent-%COMP%]{font-size:15px}.font-heading-6[_ngcontent-%COMP%]{font-size:13px}.font-heading-label[_ngcontent-%COMP%]{font-size:11px;font-family:NHaasGroteskDSPro-65Md,sans-serif;letter-spacing:.25px}.font-caption[_ngcontent-%COMP%], .font-bodyXSmall[_ngcontent-%COMP%], .font-bodySmall[_ngcontent-%COMP%], .font-bodyMedium[_ngcontent-%COMP%], .font-bodyLarge[_ngcontent-%COMP%]{font-family:HelveticaNeue,helvetica,sans-serif;line-height:1.5}.font-bodyXSmallStrong[_ngcontent-%COMP%], .font-bodySmallStrong[_ngcontent-%COMP%], [_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%], .font-bodyMediumStrong[_ngcontent-%COMP%], .font-bodyLargeStrong[_ngcontent-%COMP%]{font-family:HelveticaNeue-Medium,helvetica,sans-serif;line-height:1.5}.font-bodyLarge[_ngcontent-%COMP%], .font-bodyLargeStrong[_ngcontent-%COMP%]{font-size:16px}.font-bodyMedium[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%], .font-bodyMediumStrong[_ngcontent-%COMP%]{font-size:14px}.font-bodySmall[_ngcontent-%COMP%], .font-bodySmallStrong[_ngcontent-%COMP%]{font-size:13px;letter-spacing:.24px}.font-bodyXSmall[_ngcontent-%COMP%], .font-bodyXSmallStrong[_ngcontent-%COMP%]{font-size:12px;letter-spacing:.24px}.font-caption[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;color:var(--fu-black-500, #53575B);height:56px;padding:18px 18px 18px 24px;border-bottom:1px solid var(--fu-light-400, #DDDFE1)}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-close][_ngcontent-%COMP%]{width:20px;height:19px;cursor:pointer;margin-left:auto}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-close][_ngcontent-%COMP%]     svg{width:20px;height:20px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-close][_ngcontent-%COMP%]     svg *{fill:var(--fu-light-600, #B7BBC0)}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-close][_ngcontent-%COMP%]:hover     svg{width:20px;height:20px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-close][_ngcontent-%COMP%]:hover     svg *{fill:var(--fu-light-800, #8E959D)}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-info][_ngcontent-%COMP%]{width:16px;height:18px;cursor:pointer}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-info][_ngcontent-%COMP%]     svg{width:16px;height:16px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=fu-info][_ngcontent-%COMP%]     svg *{fill:var(--fu-light-500, #D2D5D8)}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalHeaderComponent, [{
        type: Component,
        args: [{ selector: 'fusion-modal-header', template: "<div class=\"modal-header\" *ngIf=\"headerText\">\n    <div class=\"modal-header-title\" [attr.data-testid]=\"testIdsService.getTestAttribute.bind(this) | generic:testId:modalTestIdModifiers.MODAL_TITLE\">{{ headerText }}</div>\n    <fusion-icon class=\"fu-info\"\n                 *ngIf=\"infoText\"\n                 [name]=\"infoIcon\"\n                 [fusionTooltip]=\"infoText\"\n    ></fusion-icon>\n    <fusion-icon class=\"fu-close\"\n                 *ngIf=\"showCloseButton\"\n                 [name]=\"closeButtonIcon\"\n                 [attr.data-testid]=\"testIdsService.getTestAttribute.bind(this) | generic:testId:modalTestIdModifiers.MODAL_CLOSE_BUTTON\"\n                 (click)=\"closeModal.emit()\"\n    ></fusion-icon>\n</div>\n", styles: ["@font-face{font-family:NHaasGroteskDSPro;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-75Bd.ttf) format(\"truetype\")}@font-face{font-family:NHaasGroteskDSPro-65Md;src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot);src:url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/NHaasGroteskDSPro-65Md.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue.ttf) format(\"truetype\")}@font-face{font-family:HelveticaNeue-Medium;src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot);src:url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.eot?#iefix) format(\"embedded-opentype\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff2) format(\"woff2\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.woff) format(\"woff\"),url(https://fusion.ironsrc.net/assets/fonts/HelveticaNeue-Medium.ttf) format(\"truetype\")}.font-heading-6,.font-heading-5,.font-heading-4,.font-heading-3,.font-heading-2,.font-heading-1{font-family:NHaasGroteskDSPro,sans-serif}.font-heading-1{font-size:60px}.font-heading-2{font-size:32px}.font-heading-3{font-size:22px}.font-heading-4{font-size:18px}.font-heading-5{font-size:15px}.font-heading-6{font-size:13px}.font-heading-label{font-size:11px;font-family:NHaasGroteskDSPro-65Md,sans-serif;letter-spacing:.25px}.font-caption,.font-bodyXSmall,.font-bodySmall,.font-bodyMedium,.font-bodyLarge{font-family:HelveticaNeue,helvetica,sans-serif;line-height:1.5}.font-bodyXSmallStrong,.font-bodySmallStrong,:host .modal-header,.font-bodyMediumStrong,.font-bodyLargeStrong{font-family:HelveticaNeue-Medium,helvetica,sans-serif;line-height:1.5}.font-bodyLarge,.font-bodyLargeStrong{font-size:16px}.font-bodyMedium{font-size:14px}:host .modal-header,.font-bodyMediumStrong{font-size:14px}.font-bodySmall,.font-bodySmallStrong{font-size:13px;letter-spacing:.24px}.font-bodyXSmall,.font-bodyXSmallStrong{font-size:12px;letter-spacing:.24px}.font-caption{font-size:11px}:host *{box-sizing:border-box}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}:host .modal-header{display:flex;align-items:center;gap:4px;color:var(--fu-black-500, #53575B);height:56px;padding:18px 18px 18px 24px;border-bottom:1px solid var(--fu-light-400, #DDDFE1)}:host .modal-header fusion-icon[class^=fu-close]{width:20px;height:19px;cursor:pointer;margin-left:auto}:host .modal-header fusion-icon[class^=fu-close] ::ng-deep svg{width:20px;height:20px}:host .modal-header fusion-icon[class^=fu-close] ::ng-deep svg *{fill:var(--fu-light-600, #B7BBC0)}:host .modal-header fusion-icon[class^=fu-close]:hover ::ng-deep svg{width:20px;height:20px}:host .modal-header fusion-icon[class^=fu-close]:hover ::ng-deep svg *{fill:var(--fu-light-800, #8E959D)}:host .modal-header fusion-icon[class^=fu-info]{width:16px;height:18px;cursor:pointer}:host .modal-header fusion-icon[class^=fu-info] ::ng-deep svg{width:16px;height:16px}:host .modal-header fusion-icon[class^=fu-info] ::ng-deep svg *{fill:var(--fu-light-500, #D2D5D8)}\n"] }]
    }], () => [{ type: i0.Injector }], { headerText: [{
            type: Input
        }], showCloseButton: [{
            type: Input
        }], testId: [{
            type: Input
        }], infoText: [{
            type: Input
        }], closeModal: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalHeaderComponent, { className: "ModalHeaderComponent", filePath: "components/modal-header/modal-header.component.ts", lineNumber: 10 }); })();
//# sourceMappingURL=data:application/json;base64, 