import { Component, EventEmitter, Input, Output } 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";
const _c0 = a0 => ({ "no-border-bottom": a0 });
const _c1 = () => ({ iconName: "close", iconVersion: "v2" });
function ModalHeaderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    const _r2 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 1)(1, "div")(2, "span");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "fusion-icon", 2);
    i0.ɵɵlistener("click", function ModalHeaderComponent_div_0_Template_fusion_icon_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closed.emit()); });
    i0.ɵɵelementEnd()()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0, ctx_r0.noHeaderBorder));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r0.headerText);
    i0.ɵɵadvance();
    i0.ɵɵproperty("name", i0.ɵɵpureFunction0(5, _c1));
} }
export class ModalHeaderComponent {
    constructor() {
        this.noHeaderBorder = false;
        this.closed = new EventEmitter();
    }
    static { this.ɵfac = function ModalHeaderComponent_Factory(t) { return new (t || ModalHeaderComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ModalHeaderComponent, selectors: [["fusion-modal-header"]], inputs: { headerText: "headerText", noHeaderBorder: "noHeaderBorder" }, outputs: { closed: "closed" }, decls: 1, vars: 1, consts: [["class", "modal-header", 3, "ngClass", 4, "ngIf"], [1, "modal-header", 3, "ngClass"], [1, "close", 3, "name", "click"]], template: function ModalHeaderComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, ModalHeaderComponent_div_0_Template, 5, 6, "div", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.headerText);
        } }, dependencies: [i1.NgClass, i1.NgIf, i2.IconComponent], styles: ["[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]{font-size:15px;font-family:NHaasGroteskDSPro-75Bd,sans-serif;font-weight:400}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]{box-sizing:border-box;color:var(--fu-dark-300, #313d91);height:49px;padding:15px 32px;border-bottom:solid 1px var(--fu-light-300, #e5e7e9)}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=close][_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:23px;top:18px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=close][_ngcontent-%COMP%]     svg{width:15px;height:15px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=close][_ngcontent-%COMP%]     svg *{fill:var(--fu-light-700, #a9afb4)}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=close][_ngcontent-%COMP%]:hover     svg{width:15px;height:15px}[_nghost-%COMP%]   .modal-header[_ngcontent-%COMP%]   fusion-icon[class^=close][_ngcontent-%COMP%]:hover     svg *{fill:var(--fu-light-900, #7b838c)}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ModalHeaderComponent, [{
        type: Component,
        args: [{ selector: 'fusion-modal-header', template: "<div class=\"modal-header\" [ngClass]=\"{'no-border-bottom': noHeaderBorder}\" *ngIf=\"headerText\">\n    <div>\n        <span>{{ headerText }}</span>\n        <fusion-icon class=\"close\" [name]=\"{iconName: 'close', iconVersion: 'v2'}\" (click)=\"closed.emit()\"></fusion-icon>\n    </div>\n</div>\n", styles: [":host .modal-header{font-size:15px;font-family:NHaasGroteskDSPro-75Bd,sans-serif;font-weight:400}:host *{box-sizing:border-box}:host .modal-header{box-sizing:border-box;color:var(--fu-dark-300, #313d91);height:49px;padding:15px 32px;border-bottom:solid 1px var(--fu-light-300, #e5e7e9)}:host .modal-header fusion-icon[class^=close]{cursor:pointer;position:absolute;right:23px;top:18px}:host .modal-header fusion-icon[class^=close] ::ng-deep svg{width:15px;height:15px}:host .modal-header fusion-icon[class^=close] ::ng-deep svg *{fill:var(--fu-light-700, #a9afb4)}:host .modal-header fusion-icon[class^=close]:hover ::ng-deep svg{width:15px;height:15px}:host .modal-header fusion-icon[class^=close]:hover ::ng-deep svg *{fill:var(--fu-light-900, #7b838c)}\n"] }]
    }], null, { headerText: [{
            type: Input
        }], noHeaderBorder: [{
            type: Input
        }], closed: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ModalHeaderComponent, { className: "ModalHeaderComponent", filePath: "components/modal-header/modal-header.component.ts", lineNumber: 8 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaGVhZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Z1c2lvbi11aS9jb21wb25lbnRzL21vZGFsL3YyL2NvbXBvbmVudHMvbW9kYWwtaGVhZGVyL21vZGFsLWhlYWRlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mdXNpb24tdWkvY29tcG9uZW50cy9tb2RhbC92Mi9jb21wb25lbnRzL21vZGFsLWhlYWRlci9tb2RhbC1oZWFkZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7SUNBckU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