'use strict';

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

var normalizeComponent = require('./normalize-component-6fa50395.js');
var ThemeMixin = require('./ThemeMixin-a2f817cd.js');
require('./field-atom-fe4b7c7b.js');
var circularLoaderAtom = require('./circular-loader-atom-eaeb2277.js');

//
// But if progress have `0` value, circle will be static and '0%' title.
// Soo default behavior is always show animated circle without label
// and if progress more than `1`, show progress title

var MIN_PROGRESS_VALUE = 1;
var script = {
  name: 'VProgressCircle',
  props: {
    progress: {
      type: [Number, String],
      default: 0
    },
    lineThickness: {
      type: [Number, String],
      default: 4
    },
    isLabelVisible: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    themeCssClass: function themeCssClass() {
      return {
        'v-progress-circle': true,
        animated: this.animated
      };
    },
    progressText: function progressText() {
      return "".concat(this.progress, "%");
    },
    isShowProgress: function isShowProgress() {
      return this.isLabelVisible && this.progress > MIN_PROGRESS_VALUE;
    }
  },
  mixins: [ThemeMixin.ThemeMixin],
  components: {
    CircularLoaderAtom: circularLoaderAtom.CircularLoaderAtom
  }
};

/* 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('circular-loader-atom',{class:_vm.themeCssClass,attrs:{"progress":_vm.progress,"line-thickness":_vm.lineThickness}},[(_vm.isShowProgress)?_c('span',{staticClass:"v-progress-circle-text"},[_vm._v("\n    "+_vm._s(_vm.progressText)+"\n  ")]):_vm._e()])};
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 VProgressCircle = 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 = VProgressCircle;
