'use strict';

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

var __chunk_1 = require('./chunk-cc325129.js');
var __chunk_2 = require('./chunk-d8f887e2.js');
var __chunk_7 = require('./chunk-29761f59.js');

//
var SIZE_DEFAULT_STROKE = 188.4;
var script = {
  name: 'VProgressCircle',
  props: {
    progress: {
      type: [Number, String],
      default: 0
    },
    isLabelVisible: {
      type: Boolean,
      default: false
    },
    r: {
      type: String,
      default: '30px'
    },
    cx: {
      type: String,
      default: '41px'
    },
    cy: {
      type: String,
      default: '41px'
    },
    stroke: {
      type: String,
      default: '#6e32c9'
    }
  },
  computed: {
    strokeDasharray: function strokeDasharray() {
      var toStroke = Math.floor((this.progress - 0) * (SIZE_DEFAULT_STROKE / 100));
      return "".concat(toStroke, ", ").concat(SIZE_DEFAULT_STROKE);
    },
    progressText: function progressText() {
      return "".concat(this.progress, "%");
    }
  },
  mixins: [__chunk_2.ThemeMixin],
  components: {
    FieldAtom: __chunk_7.FieldAtom
  }
};

/* 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('field-atom',{staticClass:"v-progress-circle",class:_vm.themeCssClass},[_c('svg',{staticClass:"v-progress-circle-back"},[_c('circle',{attrs:{"r":_vm.r,"cx":_vm.cx,"cy":_vm.cy}})]),_vm._v(" "),_c('svg',{staticClass:"v-progress-circle-over",style:({ strokeDasharray: _vm.strokeDasharray })},[_c('circle',{attrs:{"r":_vm.r,"cx":_vm.cx,"cy":_vm.cy,"stroke":_vm.stroke}})]),_vm._v(" "),(_vm.isLabelVisible)?_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 = __chunk_1.__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;
