import { h as c, render as t } from "vue";
import l from "../components/PlConfirmDialog.vue.js";
function u(e) {
  return () => new Promise((i) => {
    const m = c(l, {
      opened: !0,
      title: e.title,
      message: e.message,
      confirmLabel: e.confirmLabel ?? "Confirm",
      cancelLabel: e.cancelLabel ?? "Cancel",
      onConfirm: () => o(!0),
      onCancel: () => o(!1)
    }), n = document.createElement("div");
    document.body.appendChild(n), t(m, n);
    function o(r) {
      i(r), t(null, n), n.remove();
    }
  });
}
export {
  u as useConfirm
};
//# sourceMappingURL=useConfirm.js.map
