import { ref as a, resolveComponent as o, openBlock as m, createElementBlock as p, Fragment as c, createElementVNode as l, createVNode as r, withCtx as d } from "vue";
const v = { class: "p-2" }, g = {
  __name: "GiftButton",
  props: {
    gift: {
      type: Object,
      default: () => ({
        project: "",
        from: "",
        to: "",
        qn: 0,
        ql: ""
      })
    }
  },
  emits: ["sent"],
  setup(s) {
    const e = a();
    return (u, t) => {
      const f = o("gift-form"), i = o("ui-layer");
      return m(), p(c, null, [
        l("button", {
          class: "button",
          onClick: t[0] || (t[0] = (n) => e.value = !0)
        }, "Fund it now!"),
        r(i, {
          open: e.value,
          onClose: t[2] || (t[2] = (n) => e.value = !1)
        }, {
          default: d(() => [
            l("div", v, [
              r(f, {
                gift: s.gift,
                onSent: t[1] || (t[1] = (n) => {
                  e.value = !1, u.$emit("sent", n);
                })
              }, null, 8, ["gift"])
            ])
          ]),
          _: 1
        }, 8, ["open"])
      ], 64);
    };
  }
};
export {
  g as default
};
//# sourceMappingURL=GiftButton-449fc3f4.js.map
