var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { VegaSlimmer, MapToComponentField } from 'vega-slimmer/core';
import triangleExclamation from '../../../../global/icons/triangle-exclamation';
import circleCheck from '../../../../global/icons/circle-check';
import circleInfo from '../../../../global/icons/circle-info';
import circleQuestion from '../../../../global/icons/circle-question';
import xmarkLarge from '../../../../global/icons/xmark-large';
import { VegaInternalIconManager } from '../../../../helpers/icon/internal-icon-manager';
export var VegaBannerIconMap;
(function (VegaBannerIconMap) {
  VegaBannerIconMap["warning"] = "triangle-exclamation";
  VegaBannerIconMap["success"] = "circle-check";
  VegaBannerIconMap["error"] = "circle-question";
  VegaBannerIconMap["info"] = "circle-info";
})(VegaBannerIconMap || (VegaBannerIconMap = {}));
/** The VegaBannerIconController class in TypeScript extends VegaSlimmer and provides a method to retrieve an icon based on the type of VegaBanner. */
export class VegaBannerIconController extends VegaSlimmer {
  /**
   * The function `getIconByType` returns the icon corresponding to the type from the `VegaBannerIconMap`.
   *
   * @returns {string} The function `getIconByType` is returning the icon associated with the `type` from the `VegaBannerIconMap`.
   */
  getIconByType() {
    return VegaInternalIconManager.getIconKey(VegaBannerIconMap[this.type]);
  }
  /**
   * Get the close button icon
   *
   * @returns {string} the internal icon key
   */
  getCloseIcon() {
    return VegaInternalIconManager.getIconKey('xmark-large');
  }
}
(() => {
  VegaInternalIconManager.register({
    'triangle-exclamation': triangleExclamation,
    'circle-check': circleCheck,
    'circle-question': circleQuestion,
    'circle-info': circleInfo,
    'xmark-large': xmarkLarge,
  });
})();
__decorate([
  MapToComponentField()
], VegaBannerIconController.prototype, "type", void 0);
