import { openBlock as o, createBlock as r, Transition as c, withCtx as s, withDirectives as u, createElementVNode as i, createVNode as f, TransitionGroup as p, createElementBlock as n, createCommentVNode as a, normalizeStyle as m, renderSlot as b, vShow as y, pushScopeId as k, popScopeId as v } from "vue";
import { _export_sfc as _ } from "./_plugin-vue_export-helper-6a641814.js";
const h = (e) => (k("data-v-84b63989"), e = e(), v(), e), B = { class: "fixed w-full h-full top-0 left-0 z-500 flex flex-col items-end" }, S = /* @__PURE__ */ h(() => /* @__PURE__ */ i("div", { class: "i-la-times" }, null, -1)), g = [
  S
], w = {
  __name: "UiPanel",
  props: {
    open: { type: Boolean, default: !1 },
    offset: { type: String, default: "" },
    closeButton: { type: Boolean, default: !0 },
    back: { type: Boolean, default: !0 }
  },
  emits: ["close"],
  setup(e, { emit: x }) {
    return (l, t) => (o(), r(c, { name: "fade" }, {
      default: s(() => [
        u(i("div", B, [
          f(p, { name: "slide" }, {
            default: s(() => [
              e.open && e.back ? (o(), n("div", {
                class: "bg-dark-200 bg-opacity-30 w-full h-full absolute z-2 cursor-pointer backdrop-filter backdrop-blur-sm",
                key: "bg",
                onClick: t[0] || (t[0] = (d) => l.$emit("close"))
              })) : a("", !0),
              e.open ? (o(), n("div", {
                class: "layer mr-2",
                key: "layer",
                style: m({ top: e.offset || "8vh" })
              }, [
                e.closeButton ? (o(), n("button", {
                  key: 0,
                  class: "button fixed right-4 top-4",
                  onClick: t[1] || (t[1] = (d) => l.$emit("close"))
                }, g)) : a("", !0),
                b(l.$slots, "default", {}, void 0, !0)
              ], 4)) : a("", !0)
            ]),
            _: 3
          })
        ], 512), [
          [y, e.open]
        ])
      ]),
      _: 3
    }));
  }
}, I = /* @__PURE__ */ _(w, [["__scopeId", "data-v-84b63989"]]);
export {
  I as default
};
//# sourceMappingURL=UiPanel-a83cc493.js.map
