@mindbill/react 0.42.2 → 0.42.4
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 +68 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2260,6 +2260,18 @@ function cloneInitialBill(bill) {
|
|
|
2260
2260
|
cloned.diagnoses = applyBillSubmissionEvaluationDiagnoses(cloned.diagnoses, initialEvaluationType(bill));
|
|
2261
2261
|
return cloned;
|
|
2262
2262
|
}
|
|
2263
|
+
function stableInitializationValue(value) {
|
|
2264
|
+
if (Array.isArray(value)) return value.map(stableInitializationValue);
|
|
2265
|
+
if (!value || typeof value !== "object") return typeof value === "function" ? void 0 : value;
|
|
2266
|
+
return Object.fromEntries(Object.entries(value).filter(([, entry]) => typeof entry !== "function").sort(([left], [right]) => left.localeCompare(right)).map(([key, entry]) => [key, stableInitializationValue(entry)]));
|
|
2267
|
+
}
|
|
2268
|
+
function billSubmissionInitializationKey(initialBill, attachments = EMPTY_ATTACHMENTS, sourceClaimsAdministratorName = "") {
|
|
2269
|
+
return JSON.stringify(stableInitializationValue({
|
|
2270
|
+
attachments,
|
|
2271
|
+
initialBill,
|
|
2272
|
+
sourceClaimsAdministratorName
|
|
2273
|
+
}));
|
|
2274
|
+
}
|
|
2263
2275
|
function submittedLines(lines) {
|
|
2264
2276
|
return lines.filter(lineHasContent).map((line) => ({ ...line, code: line.code.trim(), modifiers: [...line.modifiers ?? []] }));
|
|
2265
2277
|
}
|
|
@@ -2600,6 +2612,11 @@ function BillSubmissionForm({
|
|
|
2600
2612
|
const procedures = useMemo3(() => mergeOptions(DEFAULT_BILL_SUBMISSION_PROCEDURES, procedureOptions), [procedureOptions]);
|
|
2601
2613
|
const orderedClaimsAdministratorSources = useMemo3(() => [...claimsAdministratorSources ?? []].filter((source) => source.name.trim()).sort((left, right) => Number(right.source.toLowerCase() === "eams") - Number(left.source.toLowerCase() === "eams")), [claimsAdministratorSources]);
|
|
2602
2614
|
const sourceClaimsAdministratorName = orderedClaimsAdministratorSources[0]?.name.trim() ?? "";
|
|
2615
|
+
const initializationKey = useMemo3(
|
|
2616
|
+
() => billSubmissionInitializationKey(initialBill, attachments, sourceClaimsAdministratorName),
|
|
2617
|
+
[initialBill, attachments, sourceClaimsAdministratorName]
|
|
2618
|
+
);
|
|
2619
|
+
const previousInitializationKey = useRef2(initializationKey);
|
|
2603
2620
|
const modifiers = useMemo3(() => mergeOptions(DEFAULT_BILL_SUBMISSION_MODIFIERS, modifierOptions), [modifierOptions]);
|
|
2604
2621
|
const taxonomies = useMemo3(() => mergeOptions(DEFAULT_BILL_SUBMISSION_TAXONOMIES, taxonomyOptions), [taxonomyOptions]);
|
|
2605
2622
|
const [evaluationType, setEvaluationType] = useState5(() => initialEvaluationType(initialBill));
|
|
@@ -2612,6 +2629,8 @@ function BillSubmissionForm({
|
|
|
2612
2629
|
const reportTypeOptions = useMemo3(() => attachmentReportTypes.map((item) => ({ id: item.code, label: item.code.replace(/^OZ:/, ""), detail: item.label })), [attachmentReportTypes]);
|
|
2613
2630
|
const missingAttachmentReportType = showAttachmentReportTypes && (selectedIds.some((id) => !(sourceAttachmentReportTypes[id] || attachments.find((item) => item.id === id)?.reportTypeCode || defaultAttachmentReportType)) || uploads.some((upload) => !(upload.reportTypeCode || defaultAttachmentReportType)));
|
|
2614
2631
|
useEffect5(() => {
|
|
2632
|
+
if (previousInitializationKey.current === initializationKey) return;
|
|
2633
|
+
previousInitializationKey.current = initializationKey;
|
|
2615
2634
|
setBill(cloneInitialBill(initialBill));
|
|
2616
2635
|
setEvaluationType(initialEvaluationType(initialBill));
|
|
2617
2636
|
setSelectedIds(attachments.map((item) => item.id));
|
|
@@ -2633,7 +2652,7 @@ function BillSubmissionForm({
|
|
|
2633
2652
|
setPayerHasMore(true);
|
|
2634
2653
|
payerRequest.current += 1;
|
|
2635
2654
|
payerAppendPending.current = false;
|
|
2636
|
-
}, [initialBill, attachments,
|
|
2655
|
+
}, [initialBill, attachments, initializationKey]);
|
|
2637
2656
|
useEffect5(() => {
|
|
2638
2657
|
if (!validationActive) return;
|
|
2639
2658
|
const next = validateBillSubmission(bill).fieldErrors;
|
|
@@ -5393,16 +5412,18 @@ function useBillLifecycle({
|
|
|
5393
5412
|
}
|
|
5394
5413
|
function LifecycleDialog({ children, title, wide = false, onClose }) {
|
|
5395
5414
|
const dialog = useRef5(null);
|
|
5415
|
+
const onCloseRef = useRef5(onClose);
|
|
5416
|
+
onCloseRef.current = onClose;
|
|
5396
5417
|
useEffect9(() => {
|
|
5397
5418
|
const previous = document.activeElement;
|
|
5398
5419
|
dialog.current?.focus();
|
|
5399
|
-
const onKeyDown = (event) => event.key === "Escape" &&
|
|
5420
|
+
const onKeyDown = (event) => event.key === "Escape" && onCloseRef.current();
|
|
5400
5421
|
document.addEventListener("keydown", onKeyDown);
|
|
5401
5422
|
return () => {
|
|
5402
5423
|
document.removeEventListener("keydown", onKeyDown);
|
|
5403
5424
|
previous?.focus();
|
|
5404
5425
|
};
|
|
5405
|
-
}, [
|
|
5426
|
+
}, []);
|
|
5406
5427
|
return /* @__PURE__ */ jsx14("div", { className: "mb-lifecycle-dialog-backdrop", onMouseDown: (event) => event.currentTarget === event.target && onClose(), children: /* @__PURE__ */ jsxs14("div", { ref: dialog, className: ["mb-lifecycle-dialog", wide ? "wide" : ""].filter(Boolean).join(" "), role: "dialog", "aria-modal": "true", "aria-label": title, tabIndex: -1, children: [
|
|
5407
5428
|
/* @__PURE__ */ jsx14("button", { type: "button", className: "mb-lifecycle-dialog-close", "aria-label": "Close", onClick: onClose, children: "\xD7" }),
|
|
5408
5429
|
children
|
|
@@ -5422,6 +5443,46 @@ function uniqueContactValues(values) {
|
|
|
5422
5443
|
return [trimmed];
|
|
5423
5444
|
});
|
|
5424
5445
|
}
|
|
5446
|
+
function correctionRejectionSummary(rejection) {
|
|
5447
|
+
const reason = rejection.reason.trim();
|
|
5448
|
+
const encodedReason = reason.match(/^([A-Z0-9]+:[A-Z0-9-]+)(?:\s+(\d{8}\s+[A-Z]\s+\d{4}))?\s*[:-]?\s+(.+)$/i);
|
|
5449
|
+
if (encodedReason?.[1] && encodedReason[3]) {
|
|
5450
|
+
return {
|
|
5451
|
+
code: encodedReason[1],
|
|
5452
|
+
clearinghouseDetail: encodedReason[2]?.trim() || null,
|
|
5453
|
+
description: encodedReason[3].trim()
|
|
5454
|
+
};
|
|
5455
|
+
}
|
|
5456
|
+
const code = rejection.code?.trim() || null;
|
|
5457
|
+
const description = code && reason.toLocaleLowerCase().startsWith(code.toLocaleLowerCase()) ? reason.slice(code.length).replace(/^\s*[:-]?\s*/, "").trim() : reason;
|
|
5458
|
+
return {
|
|
5459
|
+
code,
|
|
5460
|
+
clearinghouseDetail: null,
|
|
5461
|
+
description: description || reason || "The clearinghouse rejected this submission."
|
|
5462
|
+
};
|
|
5463
|
+
}
|
|
5464
|
+
function CorrectionRejectionReason({ rejection }) {
|
|
5465
|
+
const summary = correctionRejectionSummary(rejection);
|
|
5466
|
+
const details = rejection.issues?.filter((issue) => issue.description.trim() !== summary.description || Boolean(issue.code?.trim() && issue.code.trim() !== summary.code)) ?? [];
|
|
5467
|
+
return /* @__PURE__ */ jsxs14("div", { className: "mb-lifecycle-correction-reason", role: "alert", children: [
|
|
5468
|
+
summary.code ? /* @__PURE__ */ jsxs14("div", { className: "mb-lifecycle-correction-reason-code", children: [
|
|
5469
|
+
/* @__PURE__ */ jsx14("span", { children: "Rejection code" }),
|
|
5470
|
+
/* @__PURE__ */ jsx14("code", { children: summary.code }),
|
|
5471
|
+
summary.clearinghouseDetail ? /* @__PURE__ */ jsxs14("small", { children: [
|
|
5472
|
+
/* @__PURE__ */ jsx14("span", { children: "Clearinghouse detail" }),
|
|
5473
|
+
summary.clearinghouseDetail
|
|
5474
|
+
] }) : null
|
|
5475
|
+
] }) : null,
|
|
5476
|
+
/* @__PURE__ */ jsxs14("div", { className: "mb-lifecycle-correction-reason-description", children: [
|
|
5477
|
+
/* @__PURE__ */ jsx14("span", { children: "Reason" }),
|
|
5478
|
+
/* @__PURE__ */ jsx14("strong", { children: summary.description })
|
|
5479
|
+
] }),
|
|
5480
|
+
details.length ? /* @__PURE__ */ jsx14("ul", { "aria-label": "Additional rejection details", children: details.map((issue, index) => /* @__PURE__ */ jsxs14("li", { children: [
|
|
5481
|
+
issue.code ? /* @__PURE__ */ jsx14("code", { children: issue.code }) : null,
|
|
5482
|
+
/* @__PURE__ */ jsx14("span", { children: issue.description })
|
|
5483
|
+
] }, `${issue.code || "issue"}-${index}`)) }) : null
|
|
5484
|
+
] });
|
|
5485
|
+
}
|
|
5425
5486
|
function CorrectionVerificationContact({ delivery }) {
|
|
5426
5487
|
const directory = delivery.directory;
|
|
5427
5488
|
const billReview = directory?.billReview ?? [];
|
|
@@ -5468,10 +5529,7 @@ function CorrectionVerificationContact({ delivery }) {
|
|
|
5468
5529
|
] }),
|
|
5469
5530
|
/* @__PURE__ */ jsx14("dl", { children: methods.map((method) => /* @__PURE__ */ jsxs14("div", { children: [
|
|
5470
5531
|
/* @__PURE__ */ jsx14("dt", { children: method.label }),
|
|
5471
|
-
/* @__PURE__ */ jsx14("dd", { children: method.values.map((value
|
|
5472
|
-
index ? " \xB7 " : "",
|
|
5473
|
-
method.href ? /* @__PURE__ */ jsx14("a", { href: method.href(value), ...method.label === "Portal" ? { target: "_blank", rel: "noreferrer" } : {}, children: value }) : value
|
|
5474
|
-
] }, value)) })
|
|
5532
|
+
/* @__PURE__ */ jsx14("dd", { children: /* @__PURE__ */ jsx14("ul", { children: method.values.map((value) => /* @__PURE__ */ jsx14("li", { children: method.href ? /* @__PURE__ */ jsx14("a", { href: method.href(value), ...method.label === "Portal" ? { target: "_blank", rel: "noreferrer" } : {}, children: value }) : value }, value)) }) })
|
|
5475
5533
|
] }, method.label)) })
|
|
5476
5534
|
] });
|
|
5477
5535
|
}
|
|
@@ -5776,13 +5834,7 @@ function ConnectedBillLifecycle({ appearance, actorName, claimsAdministratorHint
|
|
|
5776
5834
|
/* @__PURE__ */ jsx14("strong", { children: "Live clearinghouse submission" }),
|
|
5777
5835
|
/* @__PURE__ */ jsx14("span", { children: "Resubmitting sends a real bill. Confirm the corrected information before continuing." })
|
|
5778
5836
|
] }) : null,
|
|
5779
|
-
data.rejection ? /* @__PURE__ */
|
|
5780
|
-
/* @__PURE__ */ jsx14("strong", { children: data.rejection.reason }),
|
|
5781
|
-
data.rejection.issues?.map((issue, index) => /* @__PURE__ */ jsxs14("span", { children: [
|
|
5782
|
-
issue.code ? `${issue.code}: ` : "",
|
|
5783
|
-
issue.description
|
|
5784
|
-
] }, `${issue.code || "issue"}-${index}`))
|
|
5785
|
-
] }) : null,
|
|
5837
|
+
data.rejection ? /* @__PURE__ */ jsx14(CorrectionRejectionReason, { rejection: data.rejection }) : null,
|
|
5786
5838
|
/* @__PURE__ */ jsx14(CorrectionVerificationContact, { delivery: data.delivery }),
|
|
5787
5839
|
/* @__PURE__ */ jsxs14("label", { className: "mb-lifecycle-correction-note", children: [
|
|
5788
5840
|
/* @__PURE__ */ jsx14("span", { children: "Correction note (optional)" }),
|
|
@@ -6000,10 +6052,10 @@ function ConnectedBillLifecycle({ appearance, actorName, claimsAdministratorHint
|
|
|
6000
6052
|
var CONNECTED_LIFECYCLE_STYLES = `
|
|
6001
6053
|
.mb-lifecycle-simulator{display:grid;gap:14px;padding:18px;border:1px solid #b8dadd;border-radius:var(--mb-radius,14px);background:#f2fbfb}.mb-lifecycle-simulator>div:first-child>span{color:var(--mb-accent);font-size:.72rem;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.mb-lifecycle-simulator h3{margin:3px 0 0;font-size:1.05rem}.mb-lifecycle-simulator p{margin:4px 0 0;color:var(--mb-muted)}.mb-lifecycle-simulator-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.mb-lifecycle-simulator-actions button{min-height:76px;border:1px solid #a9cccf;border-radius:10px;background:var(--mb-surface);color:var(--mb-text);cursor:pointer;padding:12px 14px;text-align:left;font:inherit}.mb-lifecycle-simulator-actions button:hover{border-color:var(--mb-accent);box-shadow:0 3px 14px rgba(23,108,112,.1)}.mb-lifecycle-simulator-actions button:disabled{cursor:not-allowed;opacity:.55}.mb-lifecycle-simulator-actions button strong,.mb-lifecycle-simulator-actions button span{display:block}.mb-lifecycle-simulator-actions button span{margin-top:3px;color:var(--mb-muted);font-size:.83rem}.mb-lifecycle-simulator-idle{padding:10px 12px;border-radius:8px;background:rgba(255,255,255,.72)}
|
|
6002
6054
|
.mb-connected-lifecycle{--mb-accent:#176c70;--mb-text:#17282d;--mb-muted:#607176;--mb-border:#d7e0df;--mb-soft:#f4f7f6;--mb-surface:#fff;display:grid;gap:18px;color:var(--mb-text);font:14px/1.45 var(--mb-font,Inter,ui-sans-serif,system-ui,sans-serif)}.mb-connected-lifecycle *{box-sizing:border-box}.mb-lifecycle-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.mb-lifecycle-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.mb-lifecycle-title h2{margin:0;font-size:1.7rem}.mb-lifecycle-head p{margin:3px 0 0;color:var(--mb-muted)}.mb-lifecycle-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--mb-border);border-radius:12px;background:var(--mb-surface);padding:6px}.mb-lifecycle-tabs button{min-height:46px;border:0;border-radius:8px;background:transparent;color:var(--mb-muted);font:inherit;font-size:1rem;font-weight:750;cursor:pointer}.mb-lifecycle-tabs button[aria-selected=true]{background:var(--mb-accent);color:white}.mb-lifecycle-tabpanel{display:grid;gap:18px}.mb-lifecycle-button{min-height:40px;border:1px solid var(--mb-border);border-radius:var(--mb-control-radius,8px);background:var(--mb-input,#fff);color:var(--mb-text);cursor:pointer;font:inherit;font-weight:750;padding:9px 14px}.mb-lifecycle-button.primary{border-color:var(--mb-accent);background:var(--mb-accent);color:var(--mb-accent-contrast,#fff)}.mb-lifecycle-button:disabled{cursor:not-allowed;opacity:.5}.mb-lifecycle-actions-sheet{position:sticky;bottom:12px;z-index:24;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px;padding:10px;border:1px solid var(--mb-border);border-radius:12px;background:color-mix(in srgb,var(--mb-surface) 94%,transparent);box-shadow:0 10px 34px rgba(18,35,43,.16);backdrop-filter:blur(12px)}.mb-lifecycle-card,.mb-lifecycle-panel{padding:20px;border:1px solid var(--mb-border);border-radius:var(--mb-radius,14px);background:var(--mb-surface)}.mb-lifecycle-card header{display:flex;align-items:center;justify-content:space-between;gap:20px}.mb-lifecycle-card h3,.mb-lifecycle-panel h3{margin:0;font-size:1.08rem}.mb-lifecycle-card p,.mb-lifecycle-panel p{margin:3px 0 0;color:var(--mb-muted)}.mb-lifecycle-card header>span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:999px;background:var(--mb-soft);font-weight:750}.mb-lifecycle-documents{list-style:none;margin:14px 0 0;padding:0}.mb-lifecycle-documents li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--mb-border)}.mb-lifecycle-documents li>div{display:grid;gap:3px;min-width:0}.mb-lifecycle-documents li span{color:var(--mb-muted);font-size:.85rem}.mb-lifecycle-dialog-backdrop{position:fixed;z-index:2147483000;inset:0;display:grid;place-items:center;padding:20px;background:rgba(18,35,43,.56);backdrop-filter:blur(3px)}.mb-lifecycle-dialog{position:relative;width:min(760px,100%);max-height:calc(100dvh - 40px);overflow:auto;outline:0}.mb-lifecycle-dialog-close{position:absolute;z-index:1;top:12px;right:12px;width:44px;height:44px;border:1px solid var(--mb-border);border-radius:10px;background:var(--mb-surface);color:var(--mb-text);cursor:pointer;font:24px/1 inherit}.mb-lifecycle-panel{display:grid;gap:17px;padding-top:24px;box-shadow:0 24px 70px rgba(18,35,43,.22)}.mb-lifecycle-panel label{display:grid;gap:6px;font-size:.85rem;font-weight:750}.mb-lifecycle-panel label small{color:var(--mb-muted);font-weight:500}.mb-lifecycle-panel input,.mb-lifecycle-panel select,.mb-lifecycle-panel textarea{width:100%;min-height:44px;border:1px solid var(--mb-border);border-radius:var(--mb-control-radius,8px);background:var(--mb-input,#fff);color:var(--mb-text);font:inherit;padding:10px 12px}.mb-lifecycle-panel textarea{min-height:100px;resize:vertical}.mb-lifecycle-fields{display:grid;gap:13px}.mb-lifecycle-fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-lifecycle-fields .full{grid-column:1/-1}.mb-lifecycle-panel-actions{display:flex;justify-content:flex-end;gap:8px}.mb-lifecycle-packet{display:grid;gap:0;margin:0;padding:0;border:0}.mb-lifecycle-packet legend{margin-bottom:7px;font-size:.85rem;font-weight:800}.mb-lifecycle-packet>label{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px 2px;border-top:1px solid var(--mb-border)}.mb-lifecycle-packet>label>input{width:16px;min-height:16px}.mb-lifecycle-packet>label>span{display:grid}.mb-lifecycle-packet button{border:0;background:transparent;color:var(--mb-accent);cursor:pointer;font:inherit}.mb-lifecycle-message,.mb-lifecycle-error,.mb-lifecycle-loading{padding:12px 14px;border-radius:9px}.mb-lifecycle-message.success{background:#edf9f2;color:#217449}.mb-lifecycle-message.error,.mb-lifecycle-error{background:#fff0ef;color:#9d3029}.mb-lifecycle-error{display:flex;align-items:center;gap:12px}.mb-lifecycle-error span{flex:1}.mb-lifecycle-error button{border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;padding:7px 10px}
|
|
6003
|
-
.mb-lifecycle-dialog.wide{width:min(1280px,100%)}.mb-lifecycle-correction{display:grid;gap:16px;padding:22px;border-radius:var(--mb-radius,14px);background:var(--mb-surface);box-shadow:0 24px 70px rgba(18,35,43,.22)}.mb-lifecycle-correction>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:56px}.mb-lifecycle-correction h3{margin:0;font-size:1.2rem}.mb-lifecycle-correction header p{margin:4px 0 0;color:var(--mb-muted)}.mb-lifecycle-live-warning,.mb-lifecycle-correction-reason,.mb-lifecycle-correction-contact{display:grid;gap:4px;padding:13px 15px;border-radius:10px}.mb-lifecycle-live-warning{border-left:4px solid #b97716;background:#fff8e8;color:#6f470e}.mb-lifecycle-correction-reason{border-left:4px solid #c5443f;background:#fff2f1;color:#812d29}.mb-lifecycle-correction-contact{border:1px solid color-mix(in srgb,var(--mb-accent) 35%,var(--mb-border));background:color-mix(in srgb,var(--mb-accent) 7%,var(--mb-surface))}.mb-lifecycle-correction-contact dl{display:grid;gap:
|
|
6055
|
+
.mb-lifecycle-dialog.wide{width:min(1280px,100%)}.mb-lifecycle-correction{display:grid;gap:16px;padding:22px;border-radius:var(--mb-radius,14px);background:var(--mb-surface);box-shadow:0 24px 70px rgba(18,35,43,.22)}.mb-lifecycle-correction>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:56px}.mb-lifecycle-correction h3{margin:0;font-size:1.2rem}.mb-lifecycle-correction header p{margin:4px 0 0;color:var(--mb-muted)}.mb-lifecycle-live-warning,.mb-lifecycle-correction-reason,.mb-lifecycle-correction-contact{display:grid;gap:4px;padding:13px 15px;border-radius:10px}.mb-lifecycle-live-warning{border-left:4px solid #b97716;background:#fff8e8;color:#6f470e}.mb-lifecycle-correction-reason{grid-template-columns:max-content minmax(0,1fr);align-items:start;column-gap:18px;row-gap:10px;border-left:4px solid #c5443f;background:#fff2f1;color:#812d29}.mb-lifecycle-correction-reason-code,.mb-lifecycle-correction-reason-description{display:grid;gap:4px}.mb-lifecycle-correction-reason-code>span,.mb-lifecycle-correction-reason-description>span,.mb-lifecycle-correction-reason-code small>span{color:#9b514d;font-size:.7rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.mb-lifecycle-correction-reason code{width:max-content;border:1px solid #e8b4b0;border-radius:6px;background:rgba(255,255,255,.66);color:#812d29;font:750 .84rem/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;padding:3px 7px}.mb-lifecycle-correction-reason-code small{display:grid;gap:1px;margin-top:3px;color:#9b514d;font:500 .72rem/1.35 ui-monospace,SFMono-Regular,Menlo,monospace}.mb-lifecycle-correction-reason-description strong{font-size:.94rem}.mb-lifecycle-correction-reason>ul{grid-column:1/-1;display:grid;gap:5px;margin:0;padding:8px 0 0 18px;border-top:1px solid #ecc7c4}.mb-lifecycle-correction-reason li{padding-left:3px}.mb-lifecycle-correction-reason li code{margin-right:7px}.mb-lifecycle-correction-contact{border:1px solid color-mix(in srgb,var(--mb-accent) 35%,var(--mb-border));background:color-mix(in srgb,var(--mb-accent) 7%,var(--mb-surface))}.mb-lifecycle-correction-contact dl{display:grid;gap:10px;margin:8px 0 0}.mb-lifecycle-correction-contact dl>div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:10px}.mb-lifecycle-correction-contact dt{padding-top:2px;color:var(--mb-muted);font-size:.78rem;font-weight:800;text-transform:uppercase}.mb-lifecycle-correction-contact dd{min-width:0;margin:0;overflow-wrap:anywhere}.mb-lifecycle-correction-contact dd ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}.mb-lifecycle-correction-contact dd li{min-width:0}.mb-lifecycle-correction-contact a{color:var(--mb-accent);text-underline-offset:2px}.mb-lifecycle-correction-note{display:grid;gap:6px;font-size:.85rem;font-weight:750}.mb-lifecycle-correction-note textarea{min-height:76px;border:1px solid var(--mb-border);border-radius:var(--mb-control-radius,8px);background:var(--mb-input,#fff);color:var(--mb-text);font:inherit;padding:10px 12px;resize:vertical}
|
|
6004
6056
|
.mb-payment-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:9px;background:var(--mb-soft)}.mb-payment-total strong{font-size:1.12rem}
|
|
6005
6057
|
.mb-lifecycle-deadline-hint{margin:0;padding:10px 12px;border-radius:9px;background:color-mix(in srgb,var(--mb-warning,#8a5c17) 10%,var(--mb-surface));color:var(--mb-warning,#8a5c17);font-size:.85rem}
|
|
6006
|
-
@media(max-width:700px){.mb-lifecycle-head,.mb-lifecycle-card header{align-items:stretch;flex-direction:column}.mb-lifecycle-head>.mb-lifecycle-button{width:100%}.mb-lifecycle-actions-sheet{bottom:calc(var(--mb-host-bottom-offset,72px) + env(safe-area-inset-bottom) + 8px);grid-template-columns:repeat(2,minmax(0,1fr))}.mb-lifecycle-actions-sheet .mb-lifecycle-button:last-child:nth-child(odd){grid-column:1/-1}.mb-lifecycle-fields.two{grid-template-columns:1fr}.mb-lifecycle-fields .full{grid-column:auto}.mb-lifecycle-dialog-backdrop{align-items:end;padding:0}.mb-lifecycle-dialog{max-height:calc(100dvh - 12px)}.mb-lifecycle-dialog .mb-lifecycle-panel,.mb-lifecycle-correction{border-radius:18px 18px 0 0}.mb-lifecycle-correction{padding:18px 12px calc(18px + env(safe-area-inset-bottom))}.mb-lifecycle-correction>header{align-items:stretch;flex-direction:column;padding-right:56px}.mb-lifecycle-correction-contact dl>div{grid-template-columns:1fr;gap:2px}.mb-lifecycle-tabs button{font-size:.9rem}.mb-lifecycle-title h2{font-size:1.4rem}}
|
|
6058
|
+
@media(max-width:700px){.mb-lifecycle-head,.mb-lifecycle-card header{align-items:stretch;flex-direction:column}.mb-lifecycle-head>.mb-lifecycle-button{width:100%}.mb-lifecycle-actions-sheet{bottom:calc(var(--mb-host-bottom-offset,72px) + env(safe-area-inset-bottom) + 8px);grid-template-columns:repeat(2,minmax(0,1fr))}.mb-lifecycle-actions-sheet .mb-lifecycle-button:last-child:nth-child(odd){grid-column:1/-1}.mb-lifecycle-fields.two{grid-template-columns:1fr}.mb-lifecycle-fields .full{grid-column:auto}.mb-lifecycle-dialog-backdrop{align-items:end;padding:0}.mb-lifecycle-dialog{max-height:calc(100dvh - 12px)}.mb-lifecycle-dialog .mb-lifecycle-panel,.mb-lifecycle-correction{border-radius:18px 18px 0 0}.mb-lifecycle-correction{padding:18px 12px calc(18px + env(safe-area-inset-bottom))}.mb-lifecycle-correction>header{align-items:stretch;flex-direction:column;padding-right:56px}.mb-lifecycle-correction-reason{grid-template-columns:1fr}.mb-lifecycle-correction-reason>ul{grid-column:auto}.mb-lifecycle-correction-contact dl>div{grid-template-columns:1fr;gap:2px}.mb-lifecycle-tabs button{font-size:.9rem}.mb-lifecycle-title h2{font-size:1.4rem}}
|
|
6007
6059
|
`;
|
|
6008
6060
|
|
|
6009
6061
|
// src/index.tsx
|