import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs2/core-js/object/get-own-property-descriptor";
import _inheritsLoose from "../../inheritsLoose";
import _defineProperty from "@babel/runtime-corejs2/helpers/defineProperty";
import _applyDecoratedDescriptor from "@babel/runtime-corejs2/helpers/applyDecoratedDescriptor";

var _dec, _class, _init, _class2, _temp;

import Intact from 'intact-angular';
import template from './index.vdt';
import '../../styles/kpc.css';
import './index.css';
var Tag = (_dec = Intact.template(), (_class = (_temp = _class2 =
/*#__PURE__*/
function (_Intact) {
  _inheritsLoose(Tag, _Intact);

  function Tag() {
    return _Intact.apply(this, arguments) || this;
  }

  var _proto = Tag.prototype;

  _proto.defaults = function defaults() {
    return {
      type: 'default',
      closable: false,
      closed: false,
      disabled: false,
      size: 'default'
    };
  };

  _proto._close = function _close() {
    this.set('closed', true);
    this.trigger('close');
  };

  return Tag;
}(Intact), _defineProperty(_class2, "template", template), _defineProperty(_class2, "propTypes", {
  type: ['default', 'primary', 'danger', 'success', 'warning'],
  closable: Boolean,
  closed: Boolean,
  disabled: Boolean,
  size: ['large', 'default', 'small', 'mini']
}), _defineProperty(_class2, "events", {
  close: true
}), _temp), (_applyDecoratedDescriptor(_class, "template", [_dec], (_init = _Object$getOwnPropertyDescriptor(_class, "template"), _init = _init ? _init.value : undefined, {
  enumerable: true,
  configurable: true,
  writable: true,
  initializer: function initializer() {
    return _init;
  }
}), _class)), _class));
export { Tag as default };
export { Tag };