import { defineComponent as p, ref as v, resolveComponent as l, createBlock as a, openBlock as n, withCtx as c, createElementVNode as _, renderSlot as r, createCommentVNode as i, withModifiers as y, nextTick as B, createElementBlock as u, normalizeClass as C, createTextVNode as h, toDisplayString as k } from "vue";
const F = /* @__PURE__ */ p({
  __name: "BottomSheetMenu",
  setup(m) {
    const e = v(!1);
    async function t() {
      await B(), e.value = !e.value;
    }
    return (s, o) => {
      const f = l("FmButton"), b = l("FmBottomSheet");
      return n(), a(b, {
        modelValue: e.value,
        "onUpdate:modelValue": o[1] || (o[1] = (d) => e.value = d),
        "dismiss-away": "",
        "no-header": "",
        "z-index": 110
      }, {
        "bottom-sheet-button": c(() => [
          s.$slots.button ? i("", !0) : (n(), a(f, {
            key: 0,
            icon: "more_vert",
            variant: "tertiary",
            onClick: y(t, ["stop"])
          })),
          r(s.$slots, "button")
        ]),
        default: c(() => [
          _("div", {
            onClick: o[0] || (o[0] = (d) => e.value = !1)
          }, [
            r(s.$slots, "default")
          ])
        ]),
        _: 3
      }, 8, ["modelValue"]);
    };
  }
}), $ = { class: "py-8 px-12 hover:bg-fm-color-neutral-gray-100" }, S = /* @__PURE__ */ p({
  __name: "BottomSheetMenuItem",
  props: {
    label: {},
    icon: {},
    disabled: { type: Boolean },
    itemClass: {}
  },
  setup(m) {
    const e = m;
    return (t, s) => {
      const o = l("FmIcon");
      return n(), u("div", $, [
        t.$slots.content ? i("", !0) : (n(), u("div", {
          key: 0,
          class: C(["flex items-center", {
            "text-fm-color-typo-disabled": e.disabled,
            "cursor-pointer": !e.disabled,
            "cursor-not-allowed": e.disabled,
            [e.itemClass || ""]: e.itemClass && !e.disabled
          }])
        }, [
          t.icon ? (n(), a(o, {
            key: 0,
            name: t.icon
          }, null, 8, ["name"])) : i("", !0),
          h(" " + k(t.label), 1)
        ], 2)),
        r(t.$slots, "content")
      ]);
    };
  }
});
export {
  F as _,
  S as a
};
