'use strict';

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

var normalizeComponent = require('./normalize-component-6fa50395.js');
var ThemeMixin = require('./ThemeMixin-a2f817cd.js');
var svgAtom = require('./svg-atom-d2541b7d.js');
var closeByKeyAtom = require('./close-by-key-atom-6ca8a461.js');

//
var script = {
  name: 'VModalCard',
  props: {
    isClosable: {
      type: Boolean,
      default: false
    },
    isReturnable: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    onClose: function onClose($event) {
      this.$emit('close', $event);
    }
  },
  mixins: [ThemeMixin.ThemeMixin],
  components: {
    SvgAtom: svgAtom.SvgAtom,
    CloseByKeyAtom: closeByKeyAtom.CloseByKeyAtom
  }
};

/* 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('close-by-key-atom',{staticClass:"v-modal-card",class:_vm.themeCssClass,attrs:{"stop-propagation-elements":['input', 'textarea']},on:{"close":_vm.onClose}},[_c('div',{staticClass:"v-modal-card-controls"},[(_vm.isReturnable)?_c('button',{staticClass:"v-modal-card-back",attrs:{"data-test":"modal-card-button-back"},on:{"click":function($event){return _vm.$emit('return', $event)}}},[_c('svg-atom',{attrs:{"name":"arrow-left","width":"23px","height":"17px"}})],1):_vm._e(),_vm._v(" "),(_vm.isClosable)?_c('button',{staticClass:"v-modal-card-close",attrs:{"data-test":"modal-card-button-close"},on:{"click":_vm.onClose}},[_c('svg-atom',{attrs:{"name":"close","width":"17px","height":"17px"}})],1):_vm._e()]),_vm._v(" "),(_vm.$slots.title || _vm.$slots.icon || _vm.$slots.description)?_c('header',{staticClass:"v-modal-card-header"},[(_vm.$slots.icon)?_c('div',{staticClass:"v-modal-card-icon"},[_vm._t("icon")],2):_vm._e(),_vm._v(" "),(_vm.$slots.title)?_c('h3',{staticClass:"v-modal-card-title"},[_vm._t("title")],2):_vm._e(),_vm._v(" "),(_vm.$slots.description)?_c('div',{staticClass:"v-modal-card-description"},[_vm._t("description")],2):_vm._e()]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"v-modal-card-body"},[_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 VModalCard = 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 = VModalCard;
