'use strict';

var normalizeComponent = require('./normalize-component-6fa50395.js');
var ThemeMixin = require('./ThemeMixin-a2f817cd.js');

var script = {
  name: 'TooltipAtom',
  inheritAttrs: false,
  props: {
    show: {
      type: Boolean,
      default: false
    },
    position: {
      type: String,
      default: 'top-left',
      validator: function validator(value) {
        return ['top-left', 'top-right', 'bottom-left', 'bottom-right'].includes(value);
      }
    },
    width: {
      type: Number,
      default: 172
    }
  },
  computed: {
    tooltipCssClass: function tooltipCssClass() {
      return ThemeMixin._objectSpread2(ThemeMixin._objectSpread2({}, this.themeCssClass), {}, ThemeMixin._defineProperty({}, "position-".concat(this.position), true));
    },
    tooltipContainerStyles: function tooltipContainerStyles() {
      return {
        'min-width': "".concat(this.width, "px")
      };
    }
  },
  mixins: [ThemeMixin.ThemeMixin]
};

/* 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('transition',{attrs:{"name":"tooltip-atom-fade"}},[_c('div',_vm._b({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"tooltip-atom",class:_vm.tooltipCssClass},'div',_vm.$attrs,false),[_c('div',{staticClass:"tooltip-atom-container",style:(_vm.tooltipContainerStyles)},[_vm._t("default")],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 TooltipAtom = 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.TooltipAtom = TooltipAtom;
