'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var normalizeComponent = require('./normalize-component-6fa50395.js');
var ThemeMixin = require('./ThemeMixin-a2f817cd.js');
var svgAtom = require('./svg-atom-d2541b7d.js');
var iconAtom = require('./icon-atom-65241b51.js');

var script = {
  name: 'VTag',
  inheritAttrs: false,
  props: {
    isClosable: {
      type: Boolean,
      default: false
    },
    skin: {
      type: String,
      default: 'default',
      validator: function validator(value) {
        return ['default', 'cyan', 'red', 'magenta', 'purple', 'blue', 'teal', 'green', 'gray', 'light-gray', 'dark-gray', 'white'].indexOf(value) !== -1;
      }
    }
  },
  computed: {
    tagCssClass: function tagCssClass() {
      return ThemeMixin._objectSpread2(ThemeMixin._objectSpread2({}, this.themeCssClass), {}, ThemeMixin._defineProperty({
        'is-closable': this.isClosable
      }, "skin-".concat(this.skin), true));
    }
  },
  mixins: [ThemeMixin.ThemeMixin],
  components: {
    IconAtom: iconAtom.IconAtom,
    SvgAtom: svgAtom.SvgAtom
  }
};

/* script */
const __vue_script__ = script;

/* template */
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',_vm._g(_vm._b({staticClass:"v-tag",class:_vm.tagCssClass},'div',_vm.$attrs,false),_vm.$listeners),[_vm._t("default"),_vm._v(" "),(_vm.isClosable)?_c('icon-atom',{staticClass:"v-tag-close"},[_c('svg-atom',{attrs:{"name":"close"}})],1):_vm._e()],2)};
var __vue_staticRenderFns__ = [];

  /* style */
  const __vue_inject_styles__ = undefined;
  /* scoped */
  const __vue_scope_id__ = undefined;
  /* module identifier */
  const __vue_module_identifier__ = undefined;
  /* functional template */
  const __vue_is_functional_template__ = false;
  /* style inject */
  
  /* style inject SSR */
  

  
  var VTag = normalizeComponent.__vue_normalize__(
    { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
    __vue_inject_styles__,
    __vue_script__,
    __vue_scope_id__,
    __vue_is_functional_template__,
    __vue_module_identifier__,
    undefined,
    undefined
  );

exports.default = VTag;
