import create from '../utils/create-basic';
export default create({
  render: function render() {
    var _vm = this;

    var _h = _vm.$createElement;

    var _c = _vm._self._c || _h;

    return _c('div', {
      class: _vm.b([_vm.type]),
      style: _vm.style
    }, [_c('span', {
      class: _vm.b('container', _vm.type)
    }, [_vm._l(_vm.type === 'spinner' ? 12 : 0, function (item, index) {
      return _c('i', {
        key: index
      });
    }), _vm.type === 'circular' ? _c('svg', {
      class: _vm.b('circle'),
      attrs: {
        "viewBox": "25 25 50 50"
      }
    }, [_c('circle', {
      attrs: {
        "cx": "50",
        "cy": "50",
        "r": "20",
        "fill": "none"
      }
    })]) : _vm._e()], 2)]);
  },
  name: 'loading',
  props: {
    size: String,
    type: {
      type: String,
      default: 'circular'
    },
    color: {
      type: String,
      default: '#c9c9c9'
    },
    background: String,
    backgroundSize: {
      type: String,
      default: '10px'
    }
  },
  computed: {
    style: function style() {
      return {
        color: this.color,
        background: this.background,
        padding: this.background ? this.backgroundSize : '',
        borderRadius: this.background ? '4px' : '',
        width: this.size,
        height: this.size
      };
    }
  }
});