@mindbill/react 0.77.28 → 0.77.30

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
@@ -10307,7 +10307,7 @@ function TreatmentDraftShell({ title, description, children, hideHeading = false
10307
10307
  .mbtd .mbrfa-request-details:disabled .mbrfa-check{cursor:default;opacity:.6}
10308
10308
  .mbtd .mbrfa-form-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}
10309
10309
  .mbtd .mbrfa-s1{grid-column:span 1}.mbtd .mbrfa-s2{grid-column:span 2}.mbtd .mbrfa-s3{grid-column:span 3}.mbtd .mbrfa-s4{grid-column:span 4}.mbtd .mbrfa-s6{grid-column:1/-1}
10310
- .mbtd .mbrfa-form-grid input[readonly]{background:var(--mb-soft);cursor:default}
10310
+ .mbtd .mbrfa-saved{display:grid;gap:3px;min-width:0;align-content:start}.mbtd .mbrfa-saved>span{font-size:12px;color:var(--mb-muted)}.mbtd .mbrfa-saved>strong{font-size:14px;font-weight:500;line-height:20px;overflow-wrap:anywhere}
10311
10311
  .mbtd .mbrfa-pickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--mb-border)}
10312
10312
  .mbtd .mbrfa-pickers[data-columns="1"]{grid-template-columns:minmax(0,1fr)}.mbtd .mbrfa-pickers[data-columns="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
10313
10313
  .mbtd .mbrfa-picker{display:grid;gap:5px;min-width:0;font-size:13px;align-content:start}.mbtd .mbrfa-picker>span:first-child{font-weight:600}
@@ -12532,9 +12532,9 @@ function RfaPicker({ label: label5, children }) {
12532
12532
  ] });
12533
12533
  }
12534
12534
  function RfaSavedField({ label: label5, value, span }) {
12535
- return /* @__PURE__ */ jsxs35("label", { className: `mbrfa-s${span}`, children: [
12536
- label5,
12537
- /* @__PURE__ */ jsx37("input", { readOnly: true, tabIndex: -1, value: value ?? "", placeholder: "\u2014" })
12535
+ return /* @__PURE__ */ jsxs35("div", { className: `mbrfa-s${span} mbrfa-saved`, children: [
12536
+ /* @__PURE__ */ jsx37("span", { children: label5 }),
12537
+ /* @__PURE__ */ jsx37("strong", { children: value || "\u2014" })
12538
12538
  ] });
12539
12539
  }
12540
12540
  function RfaEmployeeFields({ name, dateOfInjury, claimNumber, details }) {
@@ -12863,7 +12863,6 @@ function validateRfaDraft(draft2) {
12863
12863
  for (const value of [draft2.employeeName, draft2.providerName]) if (!value.trim() || value.length > 200) return "Employee and provider names are required (up to 200 characters).";
12864
12864
  if (draft2.requestType !== void 0 && !["new", "resubmission_material_change", "oral_authorization_confirmation"].includes(draft2.requestType)) return "Choose a valid request type.";
12865
12865
  if (draft2.reviewType !== void 0 && !["prospective", "concurrent", "retrospective"].includes(draft2.reviewType)) return "Choose a valid review type.";
12866
- if (draft2.requestType === "resubmission_material_change" && !draft2.materialChange?.trim()) return "Describe the material change for this resubmission.";
12867
12866
  if ((draft2.rationale?.length ?? 0) > 2e4 || (draft2.materialChange?.length ?? 0) > 2e4) return "Rationale and material change must each be at most 20,000 characters.";
12868
12867
  if (draft2.placeOfServiceCode !== void 0 && !/^\d{2}$/.test(draft2.placeOfServiceCode)) return "Place of service must contain two digits.";
12869
12868
  if ((draft2.providerNpi?.length ?? 0) > 20 || (draft2.providerPhone?.length ?? 0) > 30 || (draft2.claimNumber?.length ?? 0) > 100) return "Check provider contact and claim number lengths.";
@@ -13015,11 +13014,7 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
13015
13014
  /* @__PURE__ */ jsxs39("label", { className: "mbrfa-check", children: [
13016
13015
  /* @__PURE__ */ jsx41("input", { type: "checkbox", checked: draft2.writtenConfirmation ?? false, onChange: (event) => update({ writtenConfirmation: event.target.checked }) }),
13017
13016
  "Check box if request is a written confirmation of a prior oral request"
13018
- ] }),
13019
- draft2.requestType === "resubmission_material_change" ? /* @__PURE__ */ jsxs39("label", { children: [
13020
- "Material change (required)",
13021
- /* @__PURE__ */ jsx41("textarea", { required: true, maxLength: 2e4, value: draft2.materialChange ?? "", onChange: (event) => update({ materialChange: event.target.value }) })
13022
- ] }) : null
13017
+ ] })
13023
13018
  ] })
13024
13019
  ] }),
13025
13020
  /* @__PURE__ */ jsxs39("fieldset", { children: [
@@ -13137,8 +13132,8 @@ function RfaDraftForm({ initialDraft, identity, officialForm = false, formDetail
13137
13132
  /* @__PURE__ */ jsx41("textarea", { maxLength: 2e4, value: draft2.rationale ?? "", onChange: (event) => update({ rationale: event.target.value }) })
13138
13133
  ] }),
13139
13134
  draft2.requestType === "resubmission_material_change" ? /* @__PURE__ */ jsxs39("label", { className: "mbtd-wide", children: [
13140
- "Material change (required)",
13141
- /* @__PURE__ */ jsx41("textarea", { required: true, maxLength: 2e4, value: draft2.materialChange ?? "", onChange: (event) => update({ materialChange: event.target.value }) })
13135
+ "Material change (optional)",
13136
+ /* @__PURE__ */ jsx41("textarea", { maxLength: 2e4, value: draft2.materialChange ?? "", onChange: (event) => update({ materialChange: event.target.value }) })
13142
13137
  ] }) : null
13143
13138
  ] })
13144
13139
  ] }),