@mindbill/react 0.77.60 → 0.77.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -11419,7 +11419,7 @@ function rfaDecisionSummary(rfa) {
11419
11419
  if (decided.every((item) => item.outcome === "modified")) return { label: "Modified", tone: "warn" };
11420
11420
  return { label: "Partially approved", tone: "warn" };
11421
11421
  }
11422
- var FAX_FAILURES = { busy: "The line was busy", no_answer: "No answer", not_a_fax_machine: "The number did not answer as a fax machine", invalid_number: "The number is not in service", rejected: "The call was rejected", carrier_error: "The fax carrier could not complete the call" };
11422
+ var FAX_FAILURES = { busy: "The line was busy", no_answer: "No answer", not_a_fax_machine: "The number did not answer as a fax machine", invalid_number: "The number is not in service", rejected: "The call was rejected", carrier_error: "The fax carrier could not complete the call", email_rejected: "The e-mail address was refused" };
11423
11423
  function rfaFailureReason(transmission) {
11424
11424
  const reason = transmission.metadata?.failureReason;
11425
11425
  return transmission.status === "failed" && typeof reason === "string" ? FAX_FAILURES[reason] ?? "" : "";
@@ -14260,7 +14260,7 @@ function RfaSendDialog({ rfa, client, documentIds, diagnosisDescriptions, direct
14260
14260
  const reason = caught instanceof Error ? caught.message : "";
14261
14261
  if (!alive.current) return;
14262
14262
  if (/saved.signature/i.test(reason)) setSignatureRefused(true);
14263
- else setError(reason || "The request could not be sent. Nothing was sent; try again.");
14263
+ else setError(/email_rejected/i.test(reason) ? "The mail service refused that e-mail address. Check it, or send another way. Nothing was sent." : /return_fax/i.test(reason) ? "Faxing needs your organization\u2019s return fax line, which is not set up yet. Send by e-mail, or ask MindBill to set up the fax line." : reason || "The request could not be sent. Nothing was sent; try again.");
14264
14264
  } finally {
14265
14265
  if (alive.current) setBusy("");
14266
14266
  }
@@ -15108,7 +15108,8 @@ function FollowUpForm({ task, selected, editable, disabled, onSave, onReview, ha
15108
15108
  ] }),
15109
15109
  /* @__PURE__ */ jsxs45("label", { children: [
15110
15110
  "Next follow-up",
15111
- /* @__PURE__ */ jsx47("input", { type: "datetime-local", name: "snoozedUntil", required: true })
15111
+ /* @__PURE__ */ jsx47("input", { type: "datetime-local", name: "snoozedUntil", required: true, defaultValue: localDateTime(new Date(Date.now() + 2 * 864e5).toISOString()) }),
15112
+ /* @__PURE__ */ jsx47("small", { children: "Two days from now unless you change it." })
15112
15113
  ] })
15113
15114
  ] }) : /* @__PURE__ */ jsxs45("label", { children: [
15114
15115
  /* @__PURE__ */ jsx47("input", { type: "checkbox", required: true, checked: confirmed, onChange: (event) => setConfirmed(event.target.checked) }),