import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
export class BannerInfoComponent {
    constructor() {
        this.smallSize = true;
        this.textBanner = false;
        this.showIcon = true;
        this.showCloseButton = true;
        this.textInfo = '';
        this.status = 'info';
        this.bannerWrapperClass = '';
        this.showBanner = true;
    }
    getIconName() {
        return this.status === 'success' ? 'check_circle' : this.status;
    }
    closeBanner() {
        this.showBanner = false;
    }
}
BannerInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BannerInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
BannerInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BannerInfoComponent, selector: "app-banner-info", inputs: { smallSize: "smallSize", textBanner: "textBanner", showIcon: "showIcon", showCloseButton: "showCloseButton", textInfo: "textInfo", status: "status", bannerWrapperClass: "bannerWrapperClass" }, ngImport: i0, template: "<div\n  *ngIf=\"showBanner\"\n  class=\"info-banner {{ status }} {{ bannerWrapperClass }}\"\n  [ngClass]=\"{small: smallSize, 'text-banner': textBanner}\"\n>\n  <span *ngIf=\"showIcon\" class=\"status material-icons\">{{ getIconName() }}</span>\n  <span [innerHTML]=\"textInfo\"></span>\n  <span *ngIf=\"showCloseButton\" (click)=\"closeBanner()\" class=\"material-icons close-button\">close</span>\n</div>\n", styles: ["div.info-banner{display:flex;padding:16px;align-items:flex-start;gap:16px;flex:1 0 0;border-radius:4px;width:-moz-fit-content;width:fit-content;line-height:20px;font-weight:var(--font-weight-regular);font-size:var(--font-body-2);max-width:720px;color:var(--neutral-on-main-neutral-color)}div.info-banner.small{gap:4px;padding:4px 8px;line-height:18px;font-size:var(--font-caption)}div.info-banner.text-banner{padding:0;background-color:transparent;font-size:var(--font-caption);line-height:21px}.info{background:var(--on-themePrimButtonsBg-color)}.info .material-icons.status{color:var(--themePrimButtonsBg-color)}.success{background:var(--success-container-color)}.success .material-icons.status{color:var(--success-default-color)}.warning{background:var(--warning-container-color)}.warning .material-icons.status{color:var(--warning-default-color)}.error{background:var(--error-container-color)}.error .material-icons.status{color:var(--error-default-color)}.material-icons{font-size:var(--font-body-1);line-height:21px}.material-icons.close-button{cursor:pointer;color:var(--neutral-outline-color)}div.info-banner.warning-wrapper{padding:4px 8px}div.info-banner.warning-wrapper-warning{background:var(--warning-container-color)}div.info-banner.warning-wrapper-info{background:var(--info-container-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BannerInfoComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-banner-info', template: "<div\n  *ngIf=\"showBanner\"\n  class=\"info-banner {{ status }} {{ bannerWrapperClass }}\"\n  [ngClass]=\"{small: smallSize, 'text-banner': textBanner}\"\n>\n  <span *ngIf=\"showIcon\" class=\"status material-icons\">{{ getIconName() }}</span>\n  <span [innerHTML]=\"textInfo\"></span>\n  <span *ngIf=\"showCloseButton\" (click)=\"closeBanner()\" class=\"material-icons close-button\">close</span>\n</div>\n", styles: ["div.info-banner{display:flex;padding:16px;align-items:flex-start;gap:16px;flex:1 0 0;border-radius:4px;width:-moz-fit-content;width:fit-content;line-height:20px;font-weight:var(--font-weight-regular);font-size:var(--font-body-2);max-width:720px;color:var(--neutral-on-main-neutral-color)}div.info-banner.small{gap:4px;padding:4px 8px;line-height:18px;font-size:var(--font-caption)}div.info-banner.text-banner{padding:0;background-color:transparent;font-size:var(--font-caption);line-height:21px}.info{background:var(--on-themePrimButtonsBg-color)}.info .material-icons.status{color:var(--themePrimButtonsBg-color)}.success{background:var(--success-container-color)}.success .material-icons.status{color:var(--success-default-color)}.warning{background:var(--warning-container-color)}.warning .material-icons.status{color:var(--warning-default-color)}.error{background:var(--error-container-color)}.error .material-icons.status{color:var(--error-default-color)}.material-icons{font-size:var(--font-body-1);line-height:21px}.material-icons.close-button{cursor:pointer;color:var(--neutral-outline-color)}div.info-banner.warning-wrapper{padding:4px 8px}div.info-banner.warning-wrapper-warning{background:var(--warning-container-color)}div.info-banner.warning-wrapper-info{background:var(--info-container-color)}\n"] }]
        }], propDecorators: { smallSize: [{
                type: Input,
                args: ['smallSize']
            }], textBanner: [{
                type: Input,
                args: ['textBanner']
            }], showIcon: [{
                type: Input,
                args: ['showIcon']
            }], showCloseButton: [{
                type: Input,
                args: ['showCloseButton']
            }], textInfo: [{
                type: Input,
                args: ['textInfo']
            }], status: [{
                type: Input,
                args: ['status']
            }], bannerWrapperClass: [{
                type: Input,
                args: ['bannerWrapperClass']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFubmVyLWluZm8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2Vwb20tbmcyLXVpLWZvdW5kYXRpb24vc3JjL2xpYi9iYW5uZXItaW5mby9iYW5uZXItaW5mby5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvZXBvbS1uZzItdWktZm91bmRhdGlvbi9zcmMvbGliL2Jhbm5lci1pbmZvL2Jhbm5lci1pbmZvLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7QUFRL0MsTUFBTSxPQUFPLG1CQUFtQjtJQUxoQztRQU1zQixjQUFTLEdBQVksSUFBSSxDQUFDO1FBQ3pCLGVBQVUsR0FBWSxLQUFLLENBQUM7UUFDOUIsYUFBUSxHQUFZLElBQUksQ0FBQztRQUNsQixvQkFBZSxHQUFZLElBQU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