import { openBlock as l, createBlock as n, withCtx as a, createElementBlock as r, createBaseVNode as t, renderSlot as d, createCommentVNode as c, Transition as f } from "./composables-Ci32s3jE.js";
const u = {
  key: 0,
  class: "fixed w-full h-full flex items-start justify-center top-12vh left-0 z-200"
}, m = { class: "bg-light-100 dark-bg-dark-200 rounded-3xl flex flex-col z-202 text-center relative shadow-2xl overflow-hidden p-6 bottom-0 top-0 overflow-y-scroll max-h-70vh min-w-80" }, p = /* @__PURE__ */ t("div", { class: "i-la-times" }, null, -1), h = [
  p
], b = {
  __name: "UiModal",
  props: {
    open: { type: Boolean, default: !1 }
  },
  emits: ["close"],
  setup(s, { emit: v }) {
    return (o, e) => (l(), n(f, { name: "fade" }, {
      default: a(() => [
        s.open ? (l(), r("div", u, [
          t("div", {
            class: "bg-dark-200 bg-opacity-30 w-full h-full absolute z-2 cursor-pointer",
            onClick: e[0] || (e[0] = (i) => o.$emit("close"))
          }),
          t("div", m, [
            t("button", {
              class: "button absolute right-0 top-0",
              onClick: e[1] || (e[1] = (i) => o.$emit("close"))
            }, h),
            d(o.$slots, "default")
          ])
        ])) : c("", !0)
      ]),
      _: 3
    }));
  }
};
export {
  b as default
};
//# sourceMappingURL=UiModal-BKJd2jyn.js.map
