import { ChangeDetectionStrategy, Component } from '@angular/core';
import { AlertBaseComponent } from '@ironsource/fusion-ui/components/alert/common/base';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@ironsource/fusion-ui/components/icon/v1";
function AlertComponent_div_0_a_3_Template(rf, ctx) { if (rf & 1) {
    const _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 5);
    i0.ɵɵlistener("click", function AlertComponent_div_0_a_3_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.onDontShowClicked($event)); });
    i0.ɵɵtext(1, "Don't show again");
    i0.ɵɵelementEnd();
} }
const _c0 = () => ({ iconName: "close", iconVersion: "v1" });
function AlertComponent_div_0_fusion_icon_4_Template(rf, ctx) { if (rf & 1) {
    const _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "fusion-icon", 6);
    i0.ɵɵlistener("click", function AlertComponent_div_0_fusion_icon_4_Template_fusion_icon_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.onCloseClicked()); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵproperty("name", i0.ɵɵpureFunction0(1, _c0));
} }
const _c1 = a0 => ({ iconName: a0, iconVersion: "v1" });
function AlertComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵelement(1, "fusion-icon", 2);
    i0.ɵɵprojection(2);
    i0.ɵɵtemplate(3, AlertComponent_div_0_a_3_Template, 2, 0, "a", 3)(4, AlertComponent_div_0_fusion_icon_4_Template, 1, 2, "fusion-icon", 4);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngClass", ctx_r0.alertCssClasses);
    i0.ɵɵadvance();
    i0.ɵɵproperty("name", i0.ɵɵpureFunction1(4, _c1, ctx_r0.alertIcon));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.showDoNotShowAgainButton);
    i0.ɵɵadvance();
    i0.ɵɵproperty("ngIf", ctx_r0.showCloseButton);
} }
const _c2 = ["*"];
export class AlertComponent extends AlertBaseComponent {
    static { this.ɵfac = /*@__PURE__*/ (() => { let ɵAlertComponent_BaseFactory; return function AlertComponent_Factory(t) { return (ɵAlertComponent_BaseFactory || (ɵAlertComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AlertComponent)))(t || AlertComponent); }; })(); }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["fusion-alert"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2, decls: 1, vars: 1, consts: [["class", "is-alert", 3, "ngClass", 4, "ngIf"], [1, "is-alert", 3, "ngClass"], [1, "alert-type-icon", 3, "name"], ["href", "#", "class", "is-do-not-show", 3, "click", 4, "ngIf"], ["class", "is-close-button", 3, "name", "click", 4, "ngIf"], ["href", "#", 1, "is-do-not-show", 3, "click"], [1, "is-close-button", 3, "name", "click"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵtemplate(0, AlertComponent_div_0_Template, 5, 6, "div", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.shown);
        } }, dependencies: [i1.NgClass, i1.NgIf, i2.IconComponent], styles: ["[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]{font-size:12px;font-family:var(--regular-font-family, \"Open Sans\");font-weight:400}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   .is-do-not-show[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.fc-header[_ngcontent-%COMP%]{font-size:12px;font-family:var(--body-font-family, \"HelveticaNeue\");font-weight:700}[_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]{margin:0;padding:0;vertical-align:initial;text-align:initial}[_nghost-%COMP%]{display:block}[data-alert-content=mainPageAlert][_nghost-%COMP%]{right:0}[data-alert-content=mainPageAlert].is-fixed-position[_nghost-%COMP%]{position:fixed;z-index:1003;top:110px}@media (min-width: 1280px) and (max-width: 1919.98px){[data-alert-content=mainPageAlert].is-fixed-position[_nghost-%COMP%]{top:66px}}@media (min-width: 1024px) and (max-width: 1279.98px){[data-alert-content=mainPageAlert].is-fixed-position[_nghost-%COMP%]{top:60px}}@media (max-width: 1023.98px){[data-alert-content=mainPageAlert].is-fixed-position[_nghost-%COMP%]{top:100px;width:100%}}@media (max-width: 1279.98px){[data-alert-content=mainPageAlert].left-menu-collapsed[_nghost-%COMP%]{width:100%}}@media (max-width: 1023.98px){[data-alert-content=mainPageAlert].left-menu-collapsed[_nghost-%COMP%]{width:100%}}[data-alert-content=modalAlert][_nghost-%COMP%]{margin:-28px -40px 20px -30px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]{position:relative;padding:7px 23px 3px 5px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]     fusion-icon{vertical-align:sub;margin:5px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]     fusion-icon svg{width:15px;height:15px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]     fusion-icon svg *{fill:currentColor}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{margin-right:2px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%]{visibility:hidden;position:absolute;right:5px;top:3px;cursor:pointer}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%]     svg{width:8px;height:8px}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%]     svg *{fill:currentColor}[_nghost-%COMP%]   .is-alert.info[_ngcontent-%COMP%]{color:var(--dark-color-100, #224574)}[_nghost-%COMP%]   .is-alert.error[_ngcontent-%COMP%]{color:var(--negative-color, #e1174c)}[_nghost-%COMP%]   .is-alert.warning[_ngcontent-%COMP%]{color:var(--neutral-color-700, #FF9403)}[_nghost-%COMP%]   .is-alert.success[_ngcontent-%COMP%]{color:var(--positive-color, #13C7C8)}[_nghost-%COMP%]   .is-alert.header[_ngcontent-%COMP%]{border-bottom:solid 1px}[_nghost-%COMP%]   .is-alert.large[_ngcontent-%COMP%]{padding:20px 20px 15px;border:solid 1px}[_nghost-%COMP%]   .is-alert.large[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%]{top:14px;right:14px}[_nghost-%COMP%]   .is-alert.header[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.fc-header[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.large[_ngcontent-%COMP%]   .is-close-button[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%]   .is-alert.header.info[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.large.info[_ngcontent-%COMP%]{background-color:var(--alert-info-background-color, var(--primary-color-100, #F3F9FF));border-color:var(--primary-color-200, #C3DFFC)}[_nghost-%COMP%]   .is-alert.header.error[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.large.error[_ngcontent-%COMP%]{background-color:var(--negative-color-100, #FDEFF3);border-color:var(--negative-color-200, #F59CB3)}[_nghost-%COMP%]   .is-alert.header.warning[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.large.warning[_ngcontent-%COMP%]{background-color:var(--neutral-color-100, #FFFCF8);border-color:var(--neutral-color-200, #FFE6C5)}[_nghost-%COMP%]   .is-alert.header.success[_ngcontent-%COMP%], [_nghost-%COMP%]   .is-alert.large.success[_ngcontent-%COMP%]{background-color:var(--positive-color-100, #DEFCFC);border-color:var(--positive-color-200, #B0F7F7)}[_nghost-%COMP%]   .is-alert.fc-header[_ngcontent-%COMP%]{color:#fff;border:none;box-shadow:0 2px 3px #0000001a;text-align:center}[_nghost-%COMP%]   .is-alert.fc-header.info[_ngcontent-%COMP%]{background-color:var(--primary-color, #3091F6)}[_nghost-%COMP%]   .is-alert.fc-header.success[_ngcontent-%COMP%]{background-color:var(--positive-color, #13C7C8)}[_nghost-%COMP%]   .is-alert.fc-header.warning[_ngcontent-%COMP%]{background-color:var(--neutral-color-700, #FF9403)}[_nghost-%COMP%]   .is-alert.fc-header.error[_ngcontent-%COMP%]{background-color:var(--negative-color, #e1174c)}[_nghost-%COMP%]   .is-alert[_ngcontent-%COMP%]   .is-do-not-show[_ngcontent-%COMP%]{color:#fff;margin-left:5px;text-decoration:underline}"], changeDetection: 0 }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertComponent, [{
        type: Component,
        args: [{ selector: 'fusion-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"is-alert\" [ngClass]=\"alertCssClasses\" *ngIf=\"shown\">\n    <fusion-icon class=\"alert-type-icon\" [name]=\"{iconName: alertIcon, iconVersion: 'v1'}\"></fusion-icon>\n    <ng-content></ng-content>\n    <a href=\"#\" class=\"is-do-not-show\" (click)=\"onDontShowClicked($event)\" *ngIf=\"showDoNotShowAgainButton\">Don't show again</a>\n    <fusion-icon class=\"is-close-button\" [name]=\"{iconName: 'close', iconVersion: 'v1'}\" (click)=\"onCloseClicked()\" *ngIf=\"showCloseButton\"></fusion-icon>\n</div>\n", styles: [":host .is-alert{font-size:12px;font-family:var(--regular-font-family, \"Open Sans\");font-weight:400}:host .is-alert .is-do-not-show,:host .is-alert.fc-header{font-size:12px;font-family:var(--body-font-family, \"HelveticaNeue\");font-weight:700}:host *{box-sizing:border-box}:host{margin:0;padding:0;vertical-align:initial;text-align:initial}:host{display:block}:host[data-alert-content=mainPageAlert]{right:0}:host[data-alert-content=mainPageAlert].is-fixed-position{position:fixed;z-index:1003;top:110px}@media (min-width: 1280px) and (max-width: 1919.98px){:host[data-alert-content=mainPageAlert].is-fixed-position{top:66px}}@media (min-width: 1024px) and (max-width: 1279.98px){:host[data-alert-content=mainPageAlert].is-fixed-position{top:60px}}@media (max-width: 1023.98px){:host[data-alert-content=mainPageAlert].is-fixed-position{top:100px;width:100%}}@media (max-width: 1279.98px){:host[data-alert-content=mainPageAlert].left-menu-collapsed{width:100%}}@media (max-width: 1023.98px){:host[data-alert-content=mainPageAlert].left-menu-collapsed{width:100%}}:host[data-alert-content=modalAlert]{margin:-28px -40px 20px -30px}:host .is-alert{position:relative;padding:7px 23px 3px 5px}:host .is-alert ::ng-deep fusion-icon{vertical-align:sub;margin:5px}:host .is-alert ::ng-deep fusion-icon svg{width:15px;height:15px}:host .is-alert ::ng-deep fusion-icon svg *{fill:currentColor}:host .is-alert strong{margin-right:2px}:host .is-alert .is-close-button{visibility:hidden;position:absolute;right:5px;top:3px;cursor:pointer}:host .is-alert .is-close-button ::ng-deep svg{width:8px;height:8px}:host .is-alert .is-close-button ::ng-deep svg *{fill:currentColor}:host .is-alert.info{color:var(--dark-color-100, #224574)}:host .is-alert.error{color:var(--negative-color, #e1174c)}:host .is-alert.warning{color:var(--neutral-color-700, #FF9403)}:host .is-alert.success{color:var(--positive-color, #13C7C8)}:host .is-alert.header{border-bottom:solid 1px}:host .is-alert.large{padding:20px 20px 15px;border:solid 1px}:host .is-alert.large .is-close-button{top:14px;right:14px}:host .is-alert.header .is-close-button,:host .is-alert.fc-header .is-close-button,:host .is-alert.large .is-close-button{visibility:visible}:host .is-alert.header.info,:host .is-alert.large.info{background-color:var(--alert-info-background-color, var(--primary-color-100, #F3F9FF));border-color:var(--primary-color-200, #C3DFFC)}:host .is-alert.header.error,:host .is-alert.large.error{background-color:var(--negative-color-100, #FDEFF3);border-color:var(--negative-color-200, #F59CB3)}:host .is-alert.header.warning,:host .is-alert.large.warning{background-color:var(--neutral-color-100, #FFFCF8);border-color:var(--neutral-color-200, #FFE6C5)}:host .is-alert.header.success,:host .is-alert.large.success{background-color:var(--positive-color-100, #DEFCFC);border-color:var(--positive-color-200, #B0F7F7)}:host .is-alert.fc-header{color:#fff;border:none;box-shadow:0 2px 3px #0000001a;text-align:center}:host .is-alert.fc-header.info{background-color:var(--primary-color, #3091F6)}:host .is-alert.fc-header.success{background-color:var(--positive-color, #13C7C8)}:host .is-alert.fc-header.warning{background-color:var(--neutral-color-700, #FF9403)}:host .is-alert.fc-header.error{background-color:var(--negative-color, #e1174c)}:host .is-alert .is-do-not-show{color:#fff;margin-left:5px;text-decoration:underline}\n"] }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertComponent, { className: "AlertComponent", filePath: "alert.component.ts", lineNumber: 10 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvYWxlcnQvdjEvYWxlcnQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvYWxlcnQvdjEvYWxlcnQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNqRSxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSxvREFBb0QsQ0FBQzs7Ozs7O0lDRWxGLDRCQUF3RztJQUFyRSxpS0FBUyxlQUFBLGdDQUF5QixDQUFBLElBQUM7SUFBa0MsZ0NBQWdCO0lBQUEsaUJBQUk7Ozs7O0lBQzVILHNDQUF3STtJQUFuRCwrS0FBUyxlQUFBLHVCQUFnQixDQUFBLElBQUM7S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