import { defineStore as i } from "pinia";
import { ref as a } from "vue";
const m = "mf-reportmessage-dialog", g = i(m, () => {
  const e = a(!1), t = a(""), l = a(""), s = a(null);
  function r(o) {
    return e.value = !1, t.value = o.message, l.value = o.title || "", e.value = !0, new Promise((f) => {
      s.value = f;
    });
  }
  function u() {
    e.value = !1, s.value && s.value(!1);
  }
  function n() {
    e.value = !1, s.value && s.value(!0);
  }
  return { isOpened: e, message: t, title: l, promptMessage: r, dismiss: u, confirm: n };
});
export {
  g as u
};
