import { openBlock as o, createBlock as d, Transition as c, withCtx as s, withDirectives as u, createElementVNode as i, createVNode as f, TransitionGroup as p, createElementBlock as a, createCommentVNode as n, normalizeStyle as m, renderSlot as y, vShow as k, pushScopeId as v, popScopeId as b } from "vue";
import { _export_sfc as _ } from "./_plugin-vue_export-helper-6a641814.js";
const h = (e) => (v("data-v-4114d342"), e = e(), b(), e), B = { class: "fixed w-full h-full top-0 left-0 z-500 flex flex-col items-center" }, S = /* @__PURE__ */ h(() => /* @__PURE__ */ i("div", { class: "i-la-times" }, null, -1)), g = [
  S
], w = {
  __name: "UiLayer",
  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(), d(c, { name: "fade" }, {
      default: s(() => [
        u(i("div", B, [
          f(p, { name: "fade" }, {
            default: s(() => [
              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"))
              })) : n("", !0),
              e.open ? (o(), a("div", {
                class: "layer",
                key: "layer",
                style: m({ top: e.offset || "10vh" })
              }, [
                e.closeButton ? (o(), a("button", {
                  key: 0,
                  class: "button fixed right-4 top-4",
                  onClick: t[1] || (t[1] = (r) => l.$emit("close"))
                }, g)) : n("", !0),
                y(l.$slots, "default", {}, void 0, !0)
              ], 4)) : n("", !0)
            ]),
            _: 3
          })
        ], 512), [
          [k, e.open]
        ])
      ]),
      _: 3
    }));
  }
}, I = /* @__PURE__ */ _(w, [["__scopeId", "data-v-4114d342"]]);
export {
  I as default
};
//# sourceMappingURL=UiLayer-51207ab4.js.map
