import { openBlock as o, createBlock as d, withCtx as n, withDirectives as c, createBaseVNode as i, createVNode as u, TransitionGroup as f, createElementBlock as a, createCommentVNode as s, normalizeStyle as m, renderSlot as p, vShow as b, Transition as k, pushScopeId as y, popScopeId as v } from "./composables-Ci32s3jE.js";
import { _export_sfc as h } from "./_plugin-vue_export-helper-DueaC3du.js";
const B = (e) => (y("data-v-84b63989"), e = e(), v(), e), S = { class: "fixed w-full h-full top-0 left-0 z-500 flex flex-col items-end" }, w = /* @__PURE__ */ B(() => /* @__PURE__ */ i("div", { class: "i-la-times" }, null, -1)), g = [
  w
], x = {
  __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: $ }) {
    return (l, t) => (o(), d(k, { name: "fade" }, {
      default: n(() => [
        c(i("div", S, [
          u(f, { name: "slide" }, {
            default: n(() => [
              e.open && e.back ? (o(), a("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] = (r) => l.$emit("close"))
              })) : s("", !0),
              e.open ? (o(), a("div", {
                class: "layer mr-2",
                key: "layer",
                style: m({ top: e.offset || "8vh" })
              }, [
                e.closeButton ? (o(), a("button", {
                  key: 0,
                  class: "button fixed right-4 top-4",
                  onClick: t[1] || (t[1] = (r) => l.$emit("close"))
                }, g)) : s("", !0),
                p(l.$slots, "default", {}, void 0, !0)
              ], 4)) : s("", !0)
            ]),
            _: 3
          })
        ], 512), [
          [b, e.open]
        ])
      ]),
      _: 3
    }));
  }
}, _ = /* @__PURE__ */ h(x, [["__scopeId", "data-v-84b63989"]]);
export {
  _ as default
};
//# sourceMappingURL=UiPanel-CB9pT2OI.js.map
