/**
 * @license
 * Copyright 2025-2026 Open Home Foundation
 * SPDX-License-Identifier: Apache-2.0
 */
const showDialogBox = async (type, dialogParams) => {
  await import("./dialog-box.js");
  return new Promise((resolve) => {
    const dialog = document.createElement("dialog-box");
    dialog.params = dialogParams;
    dialog.dialogResult = resolve;
    dialog.type = type;
    document.body.appendChild(dialog);
  });
};
const showAlertDialog = (dialogParams) => showDialogBox("alert", dialogParams);
const showPromptDialog = (dialogParams) => showDialogBox("prompt", dialogParams);
export {
  showAlertDialog,
  showPromptDialog
};
//# sourceMappingURL=show-dialog-box.js.map
