import { defineComponent as _, mergeDefaults as m, useSlots as p, useAttrs as u, createBlock as f, openBlock as o, mergeProps as h, unref as t, withCtx as k, createElementBlock as a, createCommentVNode as n, createElementVNode as i, renderSlot as l } from "vue";
/* empty css                    */
import y from "./PlPureSlideModal.vue.js";
import { defaultProps as B } from "./props.js";
const $ = {
  key: 0,
  class: "pl-slide-modal__title"
}, C = { class: "pl-slide-modal__title-content" }, v = { class: "pl-slide-modal__content" }, w = {
  key: 1,
  class: "pl-slide-modal__actions"
}, P = {
  name: "PlSlideModal",
  inheritAttrs: !1
}, N = /* @__PURE__ */ _({
  ...P,
  props: /* @__PURE__ */ m({
    modelValue: { type: Boolean },
    width: {},
    shadow: { type: Boolean },
    closeOnOutsideClick: { type: Boolean }
  }, B),
  setup(c) {
    const e = p(), r = u(), d = c;
    return (s, S) => (o(), f(y, h({ ...d, ...t(r) }, {
      class: [s.$style.root, { "has-title": t(e).title, "has-actions": t(e).actions }]
    }), {
      default: k(() => [
        t(e).title ? (o(), a("div", $, [
          i("span", C, [
            l(s.$slots, "title")
          ])
        ])) : n("", !0),
        i("div", v, [
          l(s.$slots, "default")
        ]),
        t(e).actions ? (o(), a("div", w, [
          l(s.$slots, "actions")
        ])) : n("", !0)
      ]),
      _: 3
    }, 16, ["class"]));
  }
});
export {
  N as default
};
//# sourceMappingURL=PlSlideModal.vue2.js.map
