'use strict';

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

var normalizeComponent = require('./normalize-component-6fa50395.js');
var ThemeMixin = require('./ThemeMixin-f20d59f0.js');
var closeByKeyAtom = require('./close-by-key-atom-e64406ef.js');

var closeSvgIcon = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 17 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M15.5 1.5L1.5 15.5\" stroke=\"#242A2E\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M15.5 15.5L1.5 1.5\" stroke=\"#242A2E\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n";

var backSvgIcon = "<svg width=\"23\" height=\"17\" viewBox=\"0 0 23 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M21.5 8.5H1.5\" stroke=\"#111111\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<path d=\"M8.5 15.5L1.5 8.5L8.5 1.5\" stroke=\"#111111\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n";

//
var script = {
  name: 'VModalCard',
  props: {
    isClosable: {
      type: Boolean,
      default: false
    },
    isReturnable: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      closeSvgIcon: closeSvgIcon,
      backSvgIcon: backSvgIcon
    };
  },
  methods: {
    onClose: function onClose($event) {
      this.$emit('close', $event);
    }
  },
  mixins: [ThemeMixin.ThemeMixin],
  components: {
    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,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"},domProps:{"innerHTML":_vm._s(_vm.backSvgIcon)},on:{"click":function($event){return _vm.$emit('return', $event)}}}):_vm._e(),_vm._v(" "),(_vm.isClosable)?_c('button',{staticClass:"v-modal-card-close",attrs:{"data-test":"modal-card-button-close"},domProps:{"innerHTML":_vm._s(_vm.closeSvgIcon)},on:{"click":_vm.onClose}}):_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;
