'use strict';

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

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

var script = {
  name: 'VSidebar',
  props: {
    direction: {
      type: String,
      default: 'left',
      validator: function validator(value) {
        return ['right', 'left'].indexOf(value) !== -1;
      }
    },
    isOpen: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    sideBarCssClass: function sideBarCssClass() {
      return ThemeMixin._objectSpread2(ThemeMixin._objectSpread2({}, this.themeCssClass), {}, {
        'is-open': this.isOpen,
        'is-closed': this.isOpen === false
      });
    },
    containerCssClass: function containerCssClass() {
      return ThemeMixin._objectSpread2(ThemeMixin._objectSpread2({}, this.themeCssClass), {}, {
        'is-right': this.direction === 'right',
        'is-left': this.direction === 'left'
      });
    }
  },
  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('div',{staticClass:"v-sidebar",class:_vm.sideBarCssClass},[_c('div',{staticClass:"v-sidebar-wrapper",class:_vm.containerCssClass},[_c('aside',{staticClass:"v-sidebar-aside"},[_vm._t("default")],2)]),_vm._v(" "),_vm._t("overlay")],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 VSidebar = 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 = VSidebar;
