(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.pl-slide-modal{--padding-top: 0;--padding-bottom: 0;position:absolute;top:var(--title-bar-height);right:0;bottom:0;z-index:var(--z-slide-dialog);display:flex;flex-direction:column;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);min-width:368px;width:368px;max-width:100%;will-change:transform;background-color:#fff;border-left:1px solid var(--div-grey);box-shadow:0 8px 16px -4px #0f244d29,0 12px 32px -4px #0f244d29}.pl-slide-modal .close-dialog-btn{position:absolute;z-index:1;top:12px;right:12px;cursor:pointer;background-color:#d3d7e0;mask-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.99954%2018L11.9995%2012M11.9995%2012L17.9995%206M11.9995%2012L5.99954%206M11.9995%2012L17.9995%2018'%20stroke='%23110529'%20stroke-width='1.5'/%3e%3c/svg%3e");-webkit-mask-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.99954%2018L11.9995%2012M11.9995%2012L17.9995%206M11.9995%2012L5.99954%206M11.9995%2012L17.9995%2018'%20stroke='%23110529'%20stroke-width='1.5'/%3e%3c/svg%3e");mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:24px;-webkit-mask-size:24px;width:24px;height:24px}.pl-slide-modal .close-dialog-btn:hover{background-color:var(--main-dark-color)}.pl-slide-modal.has-title{--padding-top: 0}.pl-slide-modal.has-actions{--padding-bottom: 0}.pl-slide-modal__title{display:flex;align-items:center;font-family:var(--font-family-base);font-size:28px;font-style:normal;font-weight:500;line-height:40px;letter-spacing:-.56px;padding:24px;width:100%;overflow:hidden}.pl-slide-modal__title-content{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.pl-slide-modal__actions{display:flex;align-items:center;gap:6px;min-height:88px;padding:0 24px}.pl-slide-modal__actions button{min-width:160px}.pl-slide-modal__content{flex:1;display:flex;flex-direction:column;gap:24px;padding:16px calc(24px - var(--scrollbar-width)) 16px 24px;margin:0;--thumb-color: var(--ic-02);overflow-y:auto;scrollbar-gutter:stable}.pl-slide-modal__content::-webkit-scrollbar{width:var(--scrollbar-width, 6px);height:5px;background-color:transparent;display:block}.pl-slide-modal__content::-webkit-scrollbar-thumb{background:var(--thumb-color);border-radius:5px}.pl-slide-modal__content::-webkit-scrollbar-thumb:hover{--thumb-color: var(--border-color-focus)}.pl-slide-modal__shadow{position:absolute;z-index:var(--z-slide-shadow);top:var(--title-bar-height);left:0;right:0;bottom:0;background-color:#000000a3}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
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";

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
