@eka-care/medical-records-ui 1.2.3 → 1.2.7
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/{OriginalRecordPanel-4R3V6JTK.mjs → OriginalRecordPanel-73TCQNOL.mjs} +9 -11
- package/dist/OriginalRecordPanel-73TCQNOL.mjs.map +1 -0
- package/dist/{OriginalRecordPanel-CVP7VB64.js → OriginalRecordPanel-EVUSV2YL.js} +22 -24
- package/dist/OriginalRecordPanel-EVUSV2YL.js.map +1 -0
- package/dist/{SmartUploadModal-HKQCKBS5.mjs → SmartUploadModal-IOLZU6YA.mjs} +3 -3
- package/dist/SmartUploadModal-RQ5W33OE.js +11 -0
- package/dist/{SmartUploadModal-PAQGNH3C.js.map → SmartUploadModal-RQ5W33OE.js.map} +1 -1
- package/dist/VitalHistoryPanel-R3ESXVWP.mjs +12 -0
- package/dist/VitalHistoryPanel-ZJX65DHI.js +12 -0
- package/dist/VitalHistoryPanel-ZJX65DHI.js.map +1 -0
- package/dist/{chunk-3Z6JIL3A.js → chunk-265WCJC7.js} +57 -12
- package/dist/chunk-265WCJC7.js.map +1 -0
- package/dist/{chunk-BDCKJUPC.mjs → chunk-36KDDCWU.mjs} +2 -2
- package/dist/{chunk-AYUXXGPV.mjs → chunk-6EN4LTIT.mjs} +616 -460
- package/dist/chunk-6EN4LTIT.mjs.map +1 -0
- package/dist/{chunk-TAUICEVA.js → chunk-7XNJKV4H.js} +228 -72
- package/dist/chunk-7XNJKV4H.js.map +1 -0
- package/dist/{chunk-4OSRKXYT.js → chunk-CSPJZ4QF.js} +14 -18
- package/dist/chunk-CSPJZ4QF.js.map +1 -0
- package/dist/{chunk-JMTPJPSF.mjs → chunk-HRCUY4GM.mjs} +57 -12
- package/dist/chunk-HRCUY4GM.mjs.map +1 -0
- package/dist/{chunk-7VCJAGOR.js → chunk-LG6SPPD4.js} +21 -21
- package/dist/{chunk-7VCJAGOR.js.map → chunk-LG6SPPD4.js.map} +1 -1
- package/dist/{chunk-6HC4JPEG.mjs → chunk-TSP2SC74.mjs} +5 -9
- package/dist/{chunk-6HC4JPEG.mjs.map → chunk-TSP2SC74.mjs.map} +1 -1
- package/dist/index.css +535 -231
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +25 -121
- package/dist/index.d.ts +25 -121
- package/dist/index.js +2644 -1142
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2764 -1262
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +535 -231
- package/dist/styles.css.map +1 -1
- package/dist/widgets-3MZCYTPF.js +51 -0
- package/dist/widgets-3MZCYTPF.js.map +1 -0
- package/dist/{widgets-DBIDTSKI.mjs → widgets-NJ2AXABO.mjs} +6 -2
- package/package.json +2 -2
- package/dist/OriginalRecordPanel-4R3V6JTK.mjs.map +0 -1
- package/dist/OriginalRecordPanel-CVP7VB64.js.map +0 -1
- package/dist/SmartUploadModal-PAQGNH3C.js +0 -11
- package/dist/VisitDayPanel-H4S7MSB7.mjs +0 -17
- package/dist/VisitDayPanel-UUV4ZEMW.js +0 -17
- package/dist/VisitDayPanel-UUV4ZEMW.js.map +0 -1
- package/dist/VisitOriginalPanel-QVVSBTAG.js +0 -12
- package/dist/VisitOriginalPanel-QVVSBTAG.js.map +0 -1
- package/dist/VisitOriginalPanel-SE6E5GE6.mjs +0 -12
- package/dist/VisitRecordPanel-QXN52IHI.js +0 -13
- package/dist/VisitRecordPanel-QXN52IHI.js.map +0 -1
- package/dist/VisitRecordPanel-WE7ALBUN.mjs +0 -13
- package/dist/VisitRecordPanel-WE7ALBUN.mjs.map +0 -1
- package/dist/VitalHistoryPanel-MXTECLVK.js +0 -14
- package/dist/VitalHistoryPanel-MXTECLVK.js.map +0 -1
- package/dist/VitalHistoryPanel-TKO7TFBB.mjs +0 -14
- package/dist/VitalHistoryPanel-TKO7TFBB.mjs.map +0 -1
- package/dist/chunk-3Z6JIL3A.js.map +0 -1
- package/dist/chunk-4OSRKXYT.js.map +0 -1
- package/dist/chunk-AYUXXGPV.mjs.map +0 -1
- package/dist/chunk-B6QXGDQZ.mjs +0 -19
- package/dist/chunk-B6QXGDQZ.mjs.map +0 -1
- package/dist/chunk-BXHDMBMR.mjs +0 -896
- package/dist/chunk-BXHDMBMR.mjs.map +0 -1
- package/dist/chunk-COAFLW4O.js +0 -36
- package/dist/chunk-COAFLW4O.js.map +0 -1
- package/dist/chunk-H3CRIWJR.mjs +0 -247
- package/dist/chunk-H3CRIWJR.mjs.map +0 -1
- package/dist/chunk-JIBO2OH3.mjs +0 -36
- package/dist/chunk-JIBO2OH3.mjs.map +0 -1
- package/dist/chunk-JMTPJPSF.mjs.map +0 -1
- package/dist/chunk-KJMAPORM.js +0 -1102
- package/dist/chunk-KJMAPORM.js.map +0 -1
- package/dist/chunk-NQXDAXN5.js +0 -896
- package/dist/chunk-NQXDAXN5.js.map +0 -1
- package/dist/chunk-PA6BAC4L.js +0 -247
- package/dist/chunk-PA6BAC4L.js.map +0 -1
- package/dist/chunk-S3TDB7TZ.mjs +0 -1102
- package/dist/chunk-S3TDB7TZ.mjs.map +0 -1
- package/dist/chunk-TAUICEVA.js.map +0 -1
- package/dist/chunk-ZJMFXE5R.js +0 -19
- package/dist/chunk-ZJMFXE5R.js.map +0 -1
- package/dist/widgets-DBIDTSKI.mjs.map +0 -1
- package/dist/widgets-QILBH4YE.js +0 -47
- package/dist/widgets-QILBH4YE.js.map +0 -1
- /package/dist/{SmartUploadModal-HKQCKBS5.mjs.map → SmartUploadModal-IOLZU6YA.mjs.map} +0 -0
- /package/dist/{VisitDayPanel-H4S7MSB7.mjs.map → VitalHistoryPanel-R3ESXVWP.mjs.map} +0 -0
- /package/dist/{chunk-BDCKJUPC.mjs.map → chunk-36KDDCWU.mjs.map} +0 -0
- /package/dist/{VisitOriginalPanel-SE6E5GE6.mjs.map → widgets-NJ2AXABO.mjs.map} +0 -0
|
@@ -193,26 +193,225 @@ var Badge_default = Badge;
|
|
|
193
193
|
// src/widgets/date-tile/DateTile.tsx
|
|
194
194
|
import { memo as memo3 } from "react";
|
|
195
195
|
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
196
|
-
var DateTile = memo3(function DateTile2({ epoch }) {
|
|
196
|
+
var DateTile = memo3(function DateTile2({ epoch, sub = "weekday" }) {
|
|
197
197
|
const date = new Date(epoch);
|
|
198
198
|
const day = String(date.getDate()).padStart(2, "0");
|
|
199
|
-
const
|
|
199
|
+
const label = date.toLocaleString("en", sub === "month" ? { month: "short" } : { weekday: "short" }).toUpperCase();
|
|
200
200
|
return /* @__PURE__ */ jsxs6("div", { className: "mr-date-tile", children: [
|
|
201
201
|
/* @__PURE__ */ jsx7("span", { className: "mr-date-tile__day", children: day }),
|
|
202
|
-
/* @__PURE__ */ jsx7("span", { className: "mr-sidebar-item__weekday", children:
|
|
202
|
+
/* @__PURE__ */ jsx7("span", { className: "mr-sidebar-item__weekday", children: label })
|
|
203
203
|
] });
|
|
204
204
|
});
|
|
205
205
|
var DateTile_default = DateTile;
|
|
206
206
|
|
|
207
|
+
// src/widgets/calendar/Calendar.tsx
|
|
208
|
+
import { memo as memo4, useCallback, useMemo, useState } from "react";
|
|
209
|
+
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
210
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
211
|
+
var WEEKDAYS = ["S", "M", "T", "W", "T", "F", "S"];
|
|
212
|
+
var startOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
213
|
+
var sameDay = (a, b) => !!a && a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
214
|
+
function monthCells(year, month) {
|
|
215
|
+
const first = new Date(year, month, 1);
|
|
216
|
+
const start = new Date(year, month, 1 - first.getDay());
|
|
217
|
+
return Array.from({ length: 42 }, (_, i) => new Date(start.getFullYear(), start.getMonth(), start.getDate() + i));
|
|
218
|
+
}
|
|
219
|
+
var Calendar = memo4(function Calendar2({ value, onSelect, onClear, min, max }) {
|
|
220
|
+
const initial = value ?? /* @__PURE__ */ new Date();
|
|
221
|
+
const [view, setView] = useState({ year: initial.getFullYear(), month: initial.getMonth() });
|
|
222
|
+
const today = useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
|
|
223
|
+
const cells = useMemo(() => monthCells(view.year, view.month), [view]);
|
|
224
|
+
const caption = new Date(view.year, view.month, 1).toLocaleString("en", { month: "long", year: "numeric" });
|
|
225
|
+
const prev = useCallback(() => setView((v) => v.month === 0 ? { year: v.year - 1, month: 11 } : { ...v, month: v.month - 1 }), []);
|
|
226
|
+
const next = useCallback(() => setView((v) => v.month === 11 ? { year: v.year + 1, month: 0 } : { ...v, month: v.month + 1 }), []);
|
|
227
|
+
const isDisabled = useCallback(
|
|
228
|
+
(d) => !!min && d < startOfDay(min) || !!max && d > startOfDay(max),
|
|
229
|
+
[min, max]
|
|
230
|
+
);
|
|
231
|
+
const handleDay = useCallback(
|
|
232
|
+
(e) => onSelect(new Date(Number(e.currentTarget.value))),
|
|
233
|
+
[onSelect]
|
|
234
|
+
);
|
|
235
|
+
const handleToday = useCallback(() => {
|
|
236
|
+
setView({ year: today.getFullYear(), month: today.getMonth() });
|
|
237
|
+
onSelect(today);
|
|
238
|
+
}, [onSelect, today]);
|
|
239
|
+
return /* @__PURE__ */ jsxs7("div", { className: "mr-cal", children: [
|
|
240
|
+
/* @__PURE__ */ jsxs7("div", { className: "mr-cal__nav", children: [
|
|
241
|
+
/* @__PURE__ */ jsx8("button", { type: "button", className: "mr-cal__nav-btn", "aria-label": "Previous month", onClick: prev, children: /* @__PURE__ */ jsx8(ChevronLeft, { size: 16, "aria-hidden": true }) }),
|
|
242
|
+
/* @__PURE__ */ jsx8("span", { className: "mr-cal__caption", children: caption }),
|
|
243
|
+
/* @__PURE__ */ jsx8("button", { type: "button", className: "mr-cal__nav-btn", "aria-label": "Next month", onClick: next, children: /* @__PURE__ */ jsx8(ChevronRight, { size: 16, "aria-hidden": true }) })
|
|
244
|
+
] }),
|
|
245
|
+
/* @__PURE__ */ jsxs7("div", { className: "mr-cal__grid", role: "grid", children: [
|
|
246
|
+
WEEKDAYS.map((w, i) => /* @__PURE__ */ jsx8("span", { className: "mr-cal__weekday", "aria-hidden": true, children: w }, i)),
|
|
247
|
+
cells.map((d) => {
|
|
248
|
+
const outside = d.getMonth() !== view.month;
|
|
249
|
+
const cls = [
|
|
250
|
+
"mr-cal__day",
|
|
251
|
+
outside && "mr-cal__day--outside",
|
|
252
|
+
sameDay(value, d) && "mr-cal__day--selected",
|
|
253
|
+
sameDay(today, d) && "mr-cal__day--today"
|
|
254
|
+
].filter(Boolean).join(" ");
|
|
255
|
+
return /* @__PURE__ */ jsx8("button", { type: "button", className: cls, value: d.getTime(), disabled: isDisabled(d), "aria-selected": sameDay(value, d), onClick: handleDay, children: d.getDate() }, d.getTime());
|
|
256
|
+
})
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ jsxs7("div", { className: "mr-cal__footer", children: [
|
|
259
|
+
onClear && /* @__PURE__ */ jsx8("button", { type: "button", className: "mr-sv__ghost-link-btn", onClick: onClear, children: "Clear" }),
|
|
260
|
+
/* @__PURE__ */ jsx8("button", { type: "button", className: "mr-sv__ghost-link-btn", onClick: handleToday, children: "Today" })
|
|
261
|
+
] })
|
|
262
|
+
] });
|
|
263
|
+
});
|
|
264
|
+
var Calendar_default = Calendar;
|
|
265
|
+
|
|
266
|
+
// src/widgets/date-field/DateField.tsx
|
|
267
|
+
import { memo as memo5, useCallback as useCallback2, useEffect, useRef, useState as useState2 } from "react";
|
|
268
|
+
import { Calendar as CalendarIcon } from "lucide-react";
|
|
269
|
+
|
|
270
|
+
// src/constants/index.ts
|
|
271
|
+
var CASE_TYPE_OPTIONS = [
|
|
272
|
+
{ value: "OP", label: "Out-patient" },
|
|
273
|
+
{ value: "IP", label: "In-patient" },
|
|
274
|
+
{ value: "EM", label: "Emergency" },
|
|
275
|
+
{ value: "HH", label: "Home Health" },
|
|
276
|
+
{ value: "DC", label: "Day Care" }
|
|
277
|
+
];
|
|
278
|
+
var ACCEPTED_FILE_TYPES = ".pdf,.jpg,.jpeg,.png,image/*,application/pdf";
|
|
279
|
+
var DATE_PRESET_OPTIONS = [
|
|
280
|
+
{ value: "anytime", label: "Any time" },
|
|
281
|
+
{ value: "last30", label: "Last 30 days" },
|
|
282
|
+
{ value: "last6m", label: "Last 6 months" },
|
|
283
|
+
{ value: "lastYear", label: "Last year" },
|
|
284
|
+
{ value: "custom", label: "Custom range" }
|
|
285
|
+
];
|
|
286
|
+
|
|
287
|
+
// src/helpers/formatters.ts
|
|
288
|
+
function todayISO() {
|
|
289
|
+
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
290
|
+
}
|
|
291
|
+
function fileKey(f) {
|
|
292
|
+
return `${f.name}::${f.size}::${f.lastModified}`;
|
|
293
|
+
}
|
|
294
|
+
var KB = 1024;
|
|
295
|
+
var MB = KB * 1024;
|
|
296
|
+
var GB = MB * 1024;
|
|
297
|
+
function formatFileSize(bytes) {
|
|
298
|
+
if (bytes < KB) return `${bytes} B`;
|
|
299
|
+
if (bytes < MB) return `${(bytes / KB).toFixed(1)} KB`;
|
|
300
|
+
if (bytes < GB) return `${(bytes / MB).toFixed(1)} MB`;
|
|
301
|
+
return `${(bytes / GB).toFixed(1)} GB`;
|
|
302
|
+
}
|
|
303
|
+
var MONTH_ABBR = [
|
|
304
|
+
"Jan",
|
|
305
|
+
"Feb",
|
|
306
|
+
"Mar",
|
|
307
|
+
"Apr",
|
|
308
|
+
"May",
|
|
309
|
+
"June",
|
|
310
|
+
"July",
|
|
311
|
+
"Aug",
|
|
312
|
+
"Sept",
|
|
313
|
+
"Oct",
|
|
314
|
+
"Nov",
|
|
315
|
+
"Dec"
|
|
316
|
+
];
|
|
317
|
+
function epochToDisplay(epochMs) {
|
|
318
|
+
const d = new Date(epochMs);
|
|
319
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
320
|
+
const month = MONTH_ABBR[d.getMonth()];
|
|
321
|
+
const year = String(d.getFullYear()).slice(-2);
|
|
322
|
+
return `${day} ${month} ${year}`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// src/helpers/datePresets.ts
|
|
326
|
+
var startOfDay2 = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime();
|
|
327
|
+
function presetRange(preset, now = Date.now()) {
|
|
328
|
+
const d = new Date(now);
|
|
329
|
+
if (preset === "last30") d.setDate(d.getDate() - 30);
|
|
330
|
+
else if (preset === "last6m") d.setMonth(d.getMonth() - 6);
|
|
331
|
+
else if (preset === "lastYear") d.setFullYear(d.getFullYear() - 1);
|
|
332
|
+
else return { from: null, to: null };
|
|
333
|
+
return { from: startOfDay2(d), to: null };
|
|
334
|
+
}
|
|
335
|
+
function presetLabel(preset) {
|
|
336
|
+
return DATE_PRESET_OPTIONS.find((o) => o.value === preset)?.label ?? preset;
|
|
337
|
+
}
|
|
338
|
+
function customRangeLabel(from, to) {
|
|
339
|
+
if (from !== null && to !== null) return `${epochToDisplay(from)} \u2013 ${epochToDisplay(to)}`;
|
|
340
|
+
if (from !== null) return `From ${epochToDisplay(from)}`;
|
|
341
|
+
if (to !== null) return `Until ${epochToDisplay(to)}`;
|
|
342
|
+
return presetLabel("custom");
|
|
343
|
+
}
|
|
344
|
+
function dateInputToEpoch(value) {
|
|
345
|
+
const [y, m, d] = value.split("-").map(Number);
|
|
346
|
+
if (!y || !m || !d) return null;
|
|
347
|
+
return new Date(y, m - 1, d).getTime();
|
|
348
|
+
}
|
|
349
|
+
function endOfDay(epochMs) {
|
|
350
|
+
const d = new Date(epochMs);
|
|
351
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate(), 23, 59, 59, 999).getTime();
|
|
352
|
+
}
|
|
353
|
+
function epochToDateInput(epochMs) {
|
|
354
|
+
if (epochMs === null) return "";
|
|
355
|
+
const d = new Date(epochMs);
|
|
356
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
357
|
+
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// src/widgets/date-field/DateField.tsx
|
|
361
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
362
|
+
var toDate = (value) => {
|
|
363
|
+
const epoch = value ? dateInputToEpoch(value) : null;
|
|
364
|
+
return epoch === null ? null : new Date(epoch);
|
|
365
|
+
};
|
|
366
|
+
var DateField = memo5(function DateField2({ label, value, onChange, min, max }) {
|
|
367
|
+
const [open, setOpen] = useState2(false);
|
|
368
|
+
const rootRef = useRef(null);
|
|
369
|
+
useEffect(() => {
|
|
370
|
+
if (!open) return;
|
|
371
|
+
const onMouseDown = (e) => {
|
|
372
|
+
if (!rootRef.current?.contains(e.target)) setOpen(false);
|
|
373
|
+
};
|
|
374
|
+
document.addEventListener("mousedown", onMouseDown);
|
|
375
|
+
return () => document.removeEventListener("mousedown", onMouseDown);
|
|
376
|
+
}, [open]);
|
|
377
|
+
const toggle = useCallback2(() => setOpen((o) => !o), []);
|
|
378
|
+
const handleSelect = useCallback2(
|
|
379
|
+
(date) => {
|
|
380
|
+
onChange(epochToDateInput(date.getTime()));
|
|
381
|
+
setOpen(false);
|
|
382
|
+
},
|
|
383
|
+
[onChange]
|
|
384
|
+
);
|
|
385
|
+
const handleClear = useCallback2(() => {
|
|
386
|
+
onChange("");
|
|
387
|
+
setOpen(false);
|
|
388
|
+
}, [onChange]);
|
|
389
|
+
const handleKeyDown = useCallback2((e) => {
|
|
390
|
+
if (e.key === "Escape") {
|
|
391
|
+
e.stopPropagation();
|
|
392
|
+
setOpen(false);
|
|
393
|
+
}
|
|
394
|
+
}, []);
|
|
395
|
+
const selected = toDate(value);
|
|
396
|
+
return /* @__PURE__ */ jsxs8("div", { className: "mr-date-field", ref: rootRef, onKeyDown: handleKeyDown, children: [
|
|
397
|
+
/* @__PURE__ */ jsxs8("button", { type: "button", className: `mr-date-field__btn${open ? " mr-date-field__btn--open" : ""}`, "aria-label": label, "aria-haspopup": "dialog", "aria-expanded": open, onClick: toggle, children: [
|
|
398
|
+
/* @__PURE__ */ jsx9("span", { className: `mr-date-field__value${selected ? "" : " mr-date-field__value--placeholder"}`, children: selected ? epochToDisplay(selected.getTime()) : "Select date" }),
|
|
399
|
+
/* @__PURE__ */ jsx9(CalendarIcon, { size: 14, "aria-hidden": true })
|
|
400
|
+
] }),
|
|
401
|
+
open && /* @__PURE__ */ jsx9("div", { className: "mr-date-field__popover", role: "dialog", "aria-label": `${label} date`, children: /* @__PURE__ */ jsx9(Calendar_default, { value: selected, min: toDate(min) ?? void 0, max: toDate(max) ?? void 0, onSelect: handleSelect, onClear: handleClear }) })
|
|
402
|
+
] });
|
|
403
|
+
});
|
|
404
|
+
var DateField_default = DateField;
|
|
405
|
+
|
|
207
406
|
// src/widgets/tooltip/Tooltip.tsx
|
|
208
|
-
import { jsx as
|
|
407
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
209
408
|
function Tooltip({ content, children }) {
|
|
210
409
|
const tip = typeof content === "string" ? content : void 0;
|
|
211
|
-
return /* @__PURE__ */
|
|
410
|
+
return /* @__PURE__ */ jsx10("span", { className: "mr-tooltip", "data-tip": tip, tabIndex: 0, children });
|
|
212
411
|
}
|
|
213
412
|
|
|
214
413
|
// src/widgets/icon-button/IconButton.tsx
|
|
215
|
-
import { jsx as
|
|
414
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
216
415
|
function IconButton({
|
|
217
416
|
icon,
|
|
218
417
|
label,
|
|
@@ -233,25 +432,25 @@ function IconButton({
|
|
|
233
432
|
sublabel && "mr-sv__icon-btn--with-sublabel",
|
|
234
433
|
className
|
|
235
434
|
].filter(Boolean).join(" ");
|
|
236
|
-
const btn = /* @__PURE__ */
|
|
435
|
+
const btn = /* @__PURE__ */ jsxs9("button", { type: "button", "aria-label": label, className: cls, ...rest, children: [
|
|
237
436
|
icon,
|
|
238
|
-
sublabel && /* @__PURE__ */
|
|
437
|
+
sublabel && /* @__PURE__ */ jsx11("span", { className: "mr-sv__icon-btn__sublabel", children: sublabel })
|
|
239
438
|
] });
|
|
240
439
|
if (!tooltipContent) return btn;
|
|
241
|
-
return /* @__PURE__ */
|
|
440
|
+
return /* @__PURE__ */ jsx11(Tooltip, { content: tooltipContent, children: btn });
|
|
242
441
|
}
|
|
243
442
|
|
|
244
443
|
// src/widgets/filter-chip/FilterChip.tsx
|
|
245
|
-
import { memo as
|
|
246
|
-
import { jsx as
|
|
247
|
-
var FilterChip =
|
|
444
|
+
import { memo as memo6 } from "react";
|
|
445
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
446
|
+
var FilterChip = memo6(function FilterChip2({
|
|
248
447
|
id,
|
|
249
448
|
label,
|
|
250
449
|
count,
|
|
251
450
|
active,
|
|
252
451
|
onSelect
|
|
253
452
|
}) {
|
|
254
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ jsx12(
|
|
255
454
|
"button",
|
|
256
455
|
{
|
|
257
456
|
type: "button",
|
|
@@ -265,9 +464,9 @@ var FilterChip = memo4(function FilterChip2({
|
|
|
265
464
|
var FilterChip_default = FilterChip;
|
|
266
465
|
|
|
267
466
|
// src/widgets/sidebar-item/SidebarItem.tsx
|
|
268
|
-
import { memo as
|
|
269
|
-
import { jsx as
|
|
270
|
-
var SidebarItem =
|
|
467
|
+
import { memo as memo7 } from "react";
|
|
468
|
+
import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
469
|
+
var SidebarItem = memo7(function SidebarItem2({
|
|
271
470
|
id,
|
|
272
471
|
dayNumber,
|
|
273
472
|
weekday,
|
|
@@ -276,7 +475,7 @@ var SidebarItem = memo5(function SidebarItem2({
|
|
|
276
475
|
selected,
|
|
277
476
|
onSelect
|
|
278
477
|
}) {
|
|
279
|
-
return /* @__PURE__ */
|
|
478
|
+
return /* @__PURE__ */ jsxs10(
|
|
280
479
|
"button",
|
|
281
480
|
{
|
|
282
481
|
type: "button",
|
|
@@ -284,15 +483,15 @@ var SidebarItem = memo5(function SidebarItem2({
|
|
|
284
483
|
"aria-pressed": selected,
|
|
285
484
|
onClick: () => onSelect(id),
|
|
286
485
|
children: [
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
486
|
+
/* @__PURE__ */ jsxs10("span", { className: "mr-sidebar-item__date", children: [
|
|
487
|
+
/* @__PURE__ */ jsx13("span", { className: "mr-sidebar-item__day-num", children: dayNumber }),
|
|
488
|
+
/* @__PURE__ */ jsx13("span", { className: "mr-sidebar-item__weekday", children: weekday })
|
|
290
489
|
] }),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ jsxs10("span", { className: "mr-sidebar-item__text", children: [
|
|
491
|
+
/* @__PURE__ */ jsx13("span", { className: "mr-sidebar-item__count", children: countLabel }),
|
|
492
|
+
/* @__PURE__ */ jsx13("span", { className: "mr-sidebar-item__summary", children: summary })
|
|
294
493
|
] }),
|
|
295
|
-
selected && /* @__PURE__ */
|
|
494
|
+
selected && /* @__PURE__ */ jsx13("span", { className: "mr-sidebar-item__indicator", "aria-hidden": true })
|
|
296
495
|
]
|
|
297
496
|
}
|
|
298
497
|
);
|
|
@@ -300,7 +499,7 @@ var SidebarItem = memo5(function SidebarItem2({
|
|
|
300
499
|
var SidebarItem_default = SidebarItem;
|
|
301
500
|
|
|
302
501
|
// src/widgets/case-picker/CasePicker.tsx
|
|
303
|
-
import { useEffect as
|
|
502
|
+
import { useEffect as useEffect4, useMemo as useMemo2, useRef as useRef4, useState as useState4 } from "react";
|
|
304
503
|
import { createPortal as createPortal2 } from "react-dom";
|
|
305
504
|
import { useStore } from "zustand";
|
|
306
505
|
import { Search as Search2, Check as Check2, Plus, ChevronDown, X } from "lucide-react";
|
|
@@ -321,18 +520,8 @@ function useSdk() {
|
|
|
321
520
|
return ctx;
|
|
322
521
|
}
|
|
323
522
|
|
|
324
|
-
// src/constants/index.ts
|
|
325
|
-
var CASE_TYPE_OPTIONS = [
|
|
326
|
-
{ value: "OP", label: "Out-patient" },
|
|
327
|
-
{ value: "IP", label: "In-patient" },
|
|
328
|
-
{ value: "EM", label: "Emergency" },
|
|
329
|
-
{ value: "HH", label: "Home Health" },
|
|
330
|
-
{ value: "DC", label: "Day Care" }
|
|
331
|
-
];
|
|
332
|
-
var ACCEPTED_FILE_TYPES = ".pdf,.jpg,.jpeg,.png,image/*,application/pdf";
|
|
333
|
-
|
|
334
523
|
// src/connection/useCasesConnection.ts
|
|
335
|
-
import { useCallback, useEffect, useRef } from "react";
|
|
524
|
+
import { useCallback as useCallback3, useEffect as useEffect2, useRef as useRef2 } from "react";
|
|
336
525
|
|
|
337
526
|
// src/workers/shared/coreTypes.ts
|
|
338
527
|
import {
|
|
@@ -453,9 +642,6 @@ function getCore() {
|
|
|
453
642
|
}
|
|
454
643
|
return core;
|
|
455
644
|
}
|
|
456
|
-
function isWorkerReady() {
|
|
457
|
-
return core != null;
|
|
458
|
-
}
|
|
459
645
|
function setAuthToken(token) {
|
|
460
646
|
core?.setAuthToken(token);
|
|
461
647
|
}
|
|
@@ -541,58 +727,20 @@ function fileToQueueItem(localId, file) {
|
|
|
541
727
|
};
|
|
542
728
|
}
|
|
543
729
|
|
|
544
|
-
// src/helpers/formatters.ts
|
|
545
|
-
function todayISO() {
|
|
546
|
-
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
547
|
-
}
|
|
548
|
-
function fileKey(f) {
|
|
549
|
-
return `${f.name}::${f.size}::${f.lastModified}`;
|
|
550
|
-
}
|
|
551
|
-
var KB = 1024;
|
|
552
|
-
var MB = KB * 1024;
|
|
553
|
-
var GB = MB * 1024;
|
|
554
|
-
function formatFileSize(bytes) {
|
|
555
|
-
if (bytes < KB) return `${bytes} B`;
|
|
556
|
-
if (bytes < MB) return `${(bytes / KB).toFixed(1)} KB`;
|
|
557
|
-
if (bytes < GB) return `${(bytes / MB).toFixed(1)} MB`;
|
|
558
|
-
return `${(bytes / GB).toFixed(1)} GB`;
|
|
559
|
-
}
|
|
560
|
-
var MONTH_ABBR = [
|
|
561
|
-
"Jan",
|
|
562
|
-
"Feb",
|
|
563
|
-
"Mar",
|
|
564
|
-
"Apr",
|
|
565
|
-
"May",
|
|
566
|
-
"June",
|
|
567
|
-
"July",
|
|
568
|
-
"Aug",
|
|
569
|
-
"Sept",
|
|
570
|
-
"Oct",
|
|
571
|
-
"Nov",
|
|
572
|
-
"Dec"
|
|
573
|
-
];
|
|
574
|
-
function epochToDisplay(epochMs) {
|
|
575
|
-
const d = new Date(epochMs);
|
|
576
|
-
const day = String(d.getDate()).padStart(2, "0");
|
|
577
|
-
const month = MONTH_ABBR[d.getMonth()];
|
|
578
|
-
const year = String(d.getFullYear()).slice(-2);
|
|
579
|
-
return `${day} ${month} ${year}`;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
730
|
// src/helpers/validators.ts
|
|
583
731
|
var MAX_UPLOAD_BYTES = 50 * 1024 * 1024;
|
|
584
732
|
|
|
585
733
|
// src/connection/useCasesConnection.ts
|
|
586
734
|
function useCasesConnection(enabled = true) {
|
|
587
735
|
const { bid, patientId, store } = useSdk();
|
|
588
|
-
const loadedKeyRef =
|
|
589
|
-
const applyItems =
|
|
736
|
+
const loadedKeyRef = useRef2(null);
|
|
737
|
+
const applyItems = useCallback3(
|
|
590
738
|
(items) => {
|
|
591
739
|
store.getState().cases.setAll(items.map(caseItemToUi));
|
|
592
740
|
},
|
|
593
741
|
[store]
|
|
594
742
|
);
|
|
595
|
-
const load =
|
|
743
|
+
const load = useCallback3(async () => {
|
|
596
744
|
const cases = store.getState().cases;
|
|
597
745
|
cases.setStatus("loading");
|
|
598
746
|
try {
|
|
@@ -610,14 +758,14 @@ function useCasesConnection(enabled = true) {
|
|
|
610
758
|
cases.setError(e instanceof Error ? e.message : "Failed to load cases");
|
|
611
759
|
}
|
|
612
760
|
}, [bid, patientId, store, applyItems]);
|
|
613
|
-
|
|
761
|
+
useEffect2(() => {
|
|
614
762
|
if (!enabled) return;
|
|
615
763
|
const key = `${bid}::${patientId}`;
|
|
616
764
|
if (loadedKeyRef.current === key) return;
|
|
617
765
|
loadedKeyRef.current = key;
|
|
618
766
|
void load();
|
|
619
767
|
}, [enabled, bid, patientId, load]);
|
|
620
|
-
|
|
768
|
+
useEffect2(() => {
|
|
621
769
|
if (!enabled) return;
|
|
622
770
|
const unsubscribe = getCore().subscribe("cases:changed", () => {
|
|
623
771
|
void getCore().listLocalCases({ bid, patientId }).then(applyItems).catch(() => {
|
|
@@ -625,7 +773,7 @@ function useCasesConnection(enabled = true) {
|
|
|
625
773
|
});
|
|
626
774
|
return unsubscribe;
|
|
627
775
|
}, [enabled, bid, patientId, applyItems]);
|
|
628
|
-
const createCase =
|
|
776
|
+
const createCase = useCallback3(
|
|
629
777
|
async (data) => {
|
|
630
778
|
const id = data.id ?? crypto.randomUUID();
|
|
631
779
|
const res = await getCore().createCase({ data: { ...data, id }, bid, patientId });
|
|
@@ -633,13 +781,13 @@ function useCasesConnection(enabled = true) {
|
|
|
633
781
|
},
|
|
634
782
|
[bid, patientId]
|
|
635
783
|
);
|
|
636
|
-
const updateCase =
|
|
784
|
+
const updateCase = useCallback3(
|
|
637
785
|
async (caseId, data) => {
|
|
638
786
|
await getCore().updateCase({ caseId, data, bid, patientId });
|
|
639
787
|
},
|
|
640
788
|
[bid, patientId]
|
|
641
789
|
);
|
|
642
|
-
const deleteCase =
|
|
790
|
+
const deleteCase = useCallback3(
|
|
643
791
|
async (caseId) => {
|
|
644
792
|
await getCore().deleteCase({ caseId, bid, patientId });
|
|
645
793
|
store.getState().cases.remove(caseId);
|
|
@@ -650,10 +798,10 @@ function useCasesConnection(enabled = true) {
|
|
|
650
798
|
}
|
|
651
799
|
|
|
652
800
|
// src/widgets/preset-select/PresetSelect.tsx
|
|
653
|
-
import { useEffect as
|
|
801
|
+
import { useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
|
|
654
802
|
import { createPortal } from "react-dom";
|
|
655
803
|
import { ChevronsUpDown, Check } from "lucide-react";
|
|
656
|
-
import { jsx as
|
|
804
|
+
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
657
805
|
var MENU_MAX_H = 240;
|
|
658
806
|
function PresetSelect({
|
|
659
807
|
value,
|
|
@@ -662,9 +810,9 @@ function PresetSelect({
|
|
|
662
810
|
active,
|
|
663
811
|
placeholder
|
|
664
812
|
}) {
|
|
665
|
-
const [menu, setMenu] =
|
|
666
|
-
const fieldRef =
|
|
667
|
-
const menuRef =
|
|
813
|
+
const [menu, setMenu] = useState3(null);
|
|
814
|
+
const fieldRef = useRef3(null);
|
|
815
|
+
const menuRef = useRef3(null);
|
|
668
816
|
const open = menu !== null;
|
|
669
817
|
const selected = options.find((o) => o.value === value);
|
|
670
818
|
const place = () => {
|
|
@@ -680,7 +828,7 @@ function PresetSelect({
|
|
|
680
828
|
maxH: Math.min(MENU_MAX_H, spaceBelow)
|
|
681
829
|
});
|
|
682
830
|
};
|
|
683
|
-
|
|
831
|
+
useEffect3(() => {
|
|
684
832
|
if (!open) return;
|
|
685
833
|
const onDown = (e) => {
|
|
686
834
|
const n = e.target;
|
|
@@ -701,8 +849,8 @@ function PresetSelect({
|
|
|
701
849
|
window.removeEventListener("resize", onResize);
|
|
702
850
|
};
|
|
703
851
|
}, [open]);
|
|
704
|
-
return /* @__PURE__ */
|
|
705
|
-
/* @__PURE__ */
|
|
852
|
+
return /* @__PURE__ */ jsxs11("div", { className: "mr-preset-select", children: [
|
|
853
|
+
/* @__PURE__ */ jsxs11(
|
|
706
854
|
"button",
|
|
707
855
|
{
|
|
708
856
|
ref: fieldRef,
|
|
@@ -712,14 +860,14 @@ function PresetSelect({
|
|
|
712
860
|
"aria-expanded": open,
|
|
713
861
|
onClick: () => open ? setMenu(null) : place(),
|
|
714
862
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ jsx14(
|
|
716
864
|
"span",
|
|
717
865
|
{
|
|
718
866
|
className: `mr-preset-select__value${selected ? "" : " mr-preset-select__value--placeholder"}`,
|
|
719
867
|
children: selected?.label ?? placeholder ?? ""
|
|
720
868
|
}
|
|
721
869
|
),
|
|
722
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ jsx14(
|
|
723
871
|
ChevronsUpDown,
|
|
724
872
|
{
|
|
725
873
|
size: 16,
|
|
@@ -731,7 +879,7 @@ function PresetSelect({
|
|
|
731
879
|
}
|
|
732
880
|
),
|
|
733
881
|
open && typeof document !== "undefined" && createPortal(
|
|
734
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ jsx14(
|
|
735
883
|
"ul",
|
|
736
884
|
{
|
|
737
885
|
ref: menuRef,
|
|
@@ -745,7 +893,7 @@ function PresetSelect({
|
|
|
745
893
|
bottom: menu.bottom,
|
|
746
894
|
maxHeight: menu.maxH
|
|
747
895
|
},
|
|
748
|
-
children: options.map((o) => /* @__PURE__ */
|
|
896
|
+
children: options.map((o) => /* @__PURE__ */ jsx14("li", { children: /* @__PURE__ */ jsxs11(
|
|
749
897
|
"button",
|
|
750
898
|
{
|
|
751
899
|
type: "button",
|
|
@@ -757,8 +905,8 @@ function PresetSelect({
|
|
|
757
905
|
setMenu(null);
|
|
758
906
|
},
|
|
759
907
|
children: [
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
o.value === value && /* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ jsx14("span", { children: o.label }),
|
|
909
|
+
o.value === value && /* @__PURE__ */ jsx14(Check, { size: 14, "aria-hidden": true })
|
|
762
910
|
]
|
|
763
911
|
}
|
|
764
912
|
) }, o.value))
|
|
@@ -770,7 +918,7 @@ function PresetSelect({
|
|
|
770
918
|
}
|
|
771
919
|
|
|
772
920
|
// src/widgets/case-picker/CasePicker.tsx
|
|
773
|
-
import { Fragment, jsx as
|
|
921
|
+
import { Fragment, jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
774
922
|
function CasePicker({
|
|
775
923
|
selected,
|
|
776
924
|
onChange,
|
|
@@ -783,22 +931,22 @@ function CasePicker({
|
|
|
783
931
|
const { createCase } = useCasesConnection();
|
|
784
932
|
const caseIds = useStore(store, (s) => s.cases.ids);
|
|
785
933
|
const casesById = useStore(store, (s) => s.cases.byId);
|
|
786
|
-
const cases =
|
|
934
|
+
const cases = useMemo2(
|
|
787
935
|
() => caseIds.map((id) => casesById[id]).filter(Boolean),
|
|
788
936
|
[caseIds, casesById]
|
|
789
937
|
);
|
|
790
938
|
const selectedCase = cases.find((c) => c.id === selected) ?? null;
|
|
791
|
-
const [creating, setCreating] =
|
|
792
|
-
const [newName, setNewName] =
|
|
793
|
-
const [newType, setNewType] =
|
|
794
|
-
const [newDate, setNewDate] =
|
|
795
|
-
const [saving, setSaving] =
|
|
796
|
-
const [query, setQuery] =
|
|
797
|
-
const [menuPos, setMenuPos] =
|
|
798
|
-
const fieldRef =
|
|
799
|
-
const menuRef =
|
|
939
|
+
const [creating, setCreating] = useState4(defaultCreating);
|
|
940
|
+
const [newName, setNewName] = useState4("");
|
|
941
|
+
const [newType, setNewType] = useState4("OP");
|
|
942
|
+
const [newDate, setNewDate] = useState4(todayISO());
|
|
943
|
+
const [saving, setSaving] = useState4(false);
|
|
944
|
+
const [query, setQuery] = useState4("");
|
|
945
|
+
const [menuPos, setMenuPos] = useState4(null);
|
|
946
|
+
const fieldRef = useRef4(null);
|
|
947
|
+
const menuRef = useRef4(null);
|
|
800
948
|
const open = menuPos !== null;
|
|
801
|
-
const filtered =
|
|
949
|
+
const filtered = useMemo2(() => {
|
|
802
950
|
const q = query.trim().toLowerCase();
|
|
803
951
|
return q ? cases.filter((c) => c.name.toLowerCase().includes(q)) : cases;
|
|
804
952
|
}, [cases, query]);
|
|
@@ -824,7 +972,7 @@ function CasePicker({
|
|
|
824
972
|
});
|
|
825
973
|
}
|
|
826
974
|
};
|
|
827
|
-
|
|
975
|
+
useEffect4(() => {
|
|
828
976
|
if (!open) {
|
|
829
977
|
setQuery("");
|
|
830
978
|
setCreating(defaultCreating);
|
|
@@ -876,8 +1024,8 @@ function CasePicker({
|
|
|
876
1024
|
};
|
|
877
1025
|
const listContent = creating ? (
|
|
878
1026
|
// Create mode — replace list entirely with the create form
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
1027
|
+
/* @__PURE__ */ jsxs12("div", { className: "mr-case-picker__create-form", children: [
|
|
1028
|
+
/* @__PURE__ */ jsx15(
|
|
881
1029
|
"input",
|
|
882
1030
|
{
|
|
883
1031
|
type: "text",
|
|
@@ -892,7 +1040,7 @@ function CasePicker({
|
|
|
892
1040
|
}
|
|
893
1041
|
}
|
|
894
1042
|
),
|
|
895
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ jsx15(
|
|
896
1044
|
PresetSelect,
|
|
897
1045
|
{
|
|
898
1046
|
value: newType,
|
|
@@ -901,7 +1049,7 @@ function CasePicker({
|
|
|
901
1049
|
active: newType !== "OP"
|
|
902
1050
|
}
|
|
903
1051
|
),
|
|
904
|
-
/* @__PURE__ */
|
|
1052
|
+
/* @__PURE__ */ jsx15(
|
|
905
1053
|
"input",
|
|
906
1054
|
{
|
|
907
1055
|
type: "date",
|
|
@@ -911,8 +1059,8 @@ function CasePicker({
|
|
|
911
1059
|
onChange: (e) => setNewDate(e.target.value)
|
|
912
1060
|
}
|
|
913
1061
|
),
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ jsxs12("div", { className: "mr-case-picker__create-actions", children: [
|
|
1063
|
+
/* @__PURE__ */ jsx15(
|
|
916
1064
|
"button",
|
|
917
1065
|
{
|
|
918
1066
|
type: "button",
|
|
@@ -921,7 +1069,7 @@ function CasePicker({
|
|
|
921
1069
|
children: "Cancel"
|
|
922
1070
|
}
|
|
923
1071
|
),
|
|
924
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ jsx15(
|
|
925
1073
|
"button",
|
|
926
1074
|
{
|
|
927
1075
|
type: "button",
|
|
@@ -935,8 +1083,8 @@ function CasePicker({
|
|
|
935
1083
|
] })
|
|
936
1084
|
) : (
|
|
937
1085
|
// List mode — show cases + footer button
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
1086
|
+
/* @__PURE__ */ jsxs12(Fragment, { children: [
|
|
1087
|
+
/* @__PURE__ */ jsx15("ul", { className: "mr-case-picker__list", children: filtered.length === 0 ? /* @__PURE__ */ jsx15("li", { className: "mr-case-picker__empty text-center", children: "No cases found" }) : filtered.map((c) => /* @__PURE__ */ jsx15("li", { children: /* @__PURE__ */ jsxs12(
|
|
940
1088
|
"button",
|
|
941
1089
|
{
|
|
942
1090
|
type: "button",
|
|
@@ -946,19 +1094,19 @@ function CasePicker({
|
|
|
946
1094
|
if (mode === "dropdown") setMenuPos(null);
|
|
947
1095
|
},
|
|
948
1096
|
children: [
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
selected === c.id && /* @__PURE__ */
|
|
1097
|
+
/* @__PURE__ */ jsx15("span", { children: c.name }),
|
|
1098
|
+
selected === c.id && /* @__PURE__ */ jsx15(Check2, { size: 14, "aria-hidden": true })
|
|
951
1099
|
]
|
|
952
1100
|
}
|
|
953
1101
|
) }, c.id)) }),
|
|
954
|
-
/* @__PURE__ */
|
|
1102
|
+
/* @__PURE__ */ jsx15("div", { className: "mr-case-picker__footer", children: /* @__PURE__ */ jsxs12(
|
|
955
1103
|
"button",
|
|
956
1104
|
{
|
|
957
1105
|
type: "button",
|
|
958
1106
|
className: "mr-case-picker__create-btn",
|
|
959
1107
|
onClick: () => setCreating(true),
|
|
960
1108
|
children: [
|
|
961
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ jsx15(Plus, { size: 14, "aria-hidden": true }),
|
|
962
1110
|
"New care context"
|
|
963
1111
|
]
|
|
964
1112
|
}
|
|
@@ -966,8 +1114,8 @@ function CasePicker({
|
|
|
966
1114
|
] })
|
|
967
1115
|
);
|
|
968
1116
|
if (mode === "inline") {
|
|
969
|
-
return /* @__PURE__ */
|
|
970
|
-
/* @__PURE__ */
|
|
1117
|
+
return /* @__PURE__ */ jsx15("div", { className: "mr-case-picker mr-case-picker--inline", children: creating ? /* @__PURE__ */ jsxs12("div", { className: "mr-case-picker__create-form", children: [
|
|
1118
|
+
/* @__PURE__ */ jsx15(
|
|
971
1119
|
"input",
|
|
972
1120
|
{
|
|
973
1121
|
type: "text",
|
|
@@ -981,7 +1129,7 @@ function CasePicker({
|
|
|
981
1129
|
}
|
|
982
1130
|
}
|
|
983
1131
|
),
|
|
984
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ jsx15(
|
|
985
1133
|
PresetSelect,
|
|
986
1134
|
{
|
|
987
1135
|
value: newType,
|
|
@@ -990,7 +1138,7 @@ function CasePicker({
|
|
|
990
1138
|
active: newType !== "OP"
|
|
991
1139
|
}
|
|
992
1140
|
),
|
|
993
|
-
/* @__PURE__ */
|
|
1141
|
+
/* @__PURE__ */ jsx15(
|
|
994
1142
|
"input",
|
|
995
1143
|
{
|
|
996
1144
|
type: "date",
|
|
@@ -1000,8 +1148,8 @@ function CasePicker({
|
|
|
1000
1148
|
onChange: (e) => setNewDate(e.target.value)
|
|
1001
1149
|
}
|
|
1002
1150
|
),
|
|
1003
|
-
/* @__PURE__ */
|
|
1004
|
-
/* @__PURE__ */
|
|
1151
|
+
/* @__PURE__ */ jsxs12("div", { className: "mr-case-picker__create-actions", children: [
|
|
1152
|
+
/* @__PURE__ */ jsx15(
|
|
1005
1153
|
"button",
|
|
1006
1154
|
{
|
|
1007
1155
|
type: "button",
|
|
@@ -1010,7 +1158,7 @@ function CasePicker({
|
|
|
1010
1158
|
children: "Cancel"
|
|
1011
1159
|
}
|
|
1012
1160
|
),
|
|
1013
|
-
/* @__PURE__ */
|
|
1161
|
+
/* @__PURE__ */ jsx15(
|
|
1014
1162
|
"button",
|
|
1015
1163
|
{
|
|
1016
1164
|
type: "button",
|
|
@@ -1021,22 +1169,22 @@ function CasePicker({
|
|
|
1021
1169
|
}
|
|
1022
1170
|
)
|
|
1023
1171
|
] })
|
|
1024
|
-
] }) : /* @__PURE__ */
|
|
1172
|
+
] }) : /* @__PURE__ */ jsxs12(
|
|
1025
1173
|
"button",
|
|
1026
1174
|
{
|
|
1027
1175
|
type: "button",
|
|
1028
1176
|
className: "mr-case-picker__create-btn",
|
|
1029
1177
|
onClick: () => setCreating(true),
|
|
1030
1178
|
children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ jsx15(Plus, { size: 14, "aria-hidden": true }),
|
|
1032
1180
|
"New care context"
|
|
1033
1181
|
]
|
|
1034
1182
|
}
|
|
1035
1183
|
) });
|
|
1036
1184
|
}
|
|
1037
1185
|
if (triggerLabel && !selected) {
|
|
1038
|
-
return /* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1186
|
+
return /* @__PURE__ */ jsxs12(Fragment, { children: [
|
|
1187
|
+
/* @__PURE__ */ jsxs12(
|
|
1040
1188
|
"button",
|
|
1041
1189
|
{
|
|
1042
1190
|
ref: fieldRef,
|
|
@@ -1044,13 +1192,13 @@ function CasePicker({
|
|
|
1044
1192
|
className: "mr-case-picker__create-btn",
|
|
1045
1193
|
onClick: () => open ? setMenuPos(null) : place(),
|
|
1046
1194
|
children: [
|
|
1047
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ jsx15(Plus, { size: 14, "aria-hidden": true }),
|
|
1048
1196
|
triggerLabel
|
|
1049
1197
|
]
|
|
1050
1198
|
}
|
|
1051
1199
|
),
|
|
1052
1200
|
open && typeof document !== "undefined" && createPortal2(
|
|
1053
|
-
/* @__PURE__ */
|
|
1201
|
+
/* @__PURE__ */ jsx15(
|
|
1054
1202
|
"div",
|
|
1055
1203
|
{
|
|
1056
1204
|
ref: menuRef,
|
|
@@ -1070,8 +1218,8 @@ function CasePicker({
|
|
|
1070
1218
|
)
|
|
1071
1219
|
] });
|
|
1072
1220
|
}
|
|
1073
|
-
return /* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsxs12(Fragment, { children: [
|
|
1222
|
+
/* @__PURE__ */ jsxs12(
|
|
1075
1223
|
"button",
|
|
1076
1224
|
{
|
|
1077
1225
|
ref: fieldRef,
|
|
@@ -1079,15 +1227,15 @@ function CasePicker({
|
|
|
1079
1227
|
className: `mr-case-picker__field${open ? " mr-case-picker__field--open" : ""}${selected ? " mr-case-picker__field--active" : ""}`,
|
|
1080
1228
|
onClick: () => open ? setMenuPos(null) : place(),
|
|
1081
1229
|
children: [
|
|
1082
|
-
/* @__PURE__ */
|
|
1083
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ jsx15(Search2, { size: 14, "aria-hidden": true, className: "mr-case-picker__field-icon" }),
|
|
1231
|
+
/* @__PURE__ */ jsx15(
|
|
1084
1232
|
"span",
|
|
1085
1233
|
{
|
|
1086
1234
|
className: selectedCase ? "mr-case-picker__field-value" : "mr-case-picker__field-placeholder",
|
|
1087
1235
|
children: selectedCase?.name ?? "Select case\u2026"
|
|
1088
1236
|
}
|
|
1089
1237
|
),
|
|
1090
|
-
selected ? /* @__PURE__ */
|
|
1238
|
+
selected ? /* @__PURE__ */ jsx15(
|
|
1091
1239
|
X,
|
|
1092
1240
|
{
|
|
1093
1241
|
size: 14,
|
|
@@ -1098,7 +1246,7 @@ function CasePicker({
|
|
|
1098
1246
|
onChange(null);
|
|
1099
1247
|
}
|
|
1100
1248
|
}
|
|
1101
|
-
) : /* @__PURE__ */
|
|
1249
|
+
) : /* @__PURE__ */ jsx15(
|
|
1102
1250
|
ChevronDown,
|
|
1103
1251
|
{
|
|
1104
1252
|
size: 14,
|
|
@@ -1110,7 +1258,7 @@ function CasePicker({
|
|
|
1110
1258
|
}
|
|
1111
1259
|
),
|
|
1112
1260
|
open && typeof document !== "undefined" && createPortal2(
|
|
1113
|
-
/* @__PURE__ */
|
|
1261
|
+
/* @__PURE__ */ jsxs12(
|
|
1114
1262
|
"div",
|
|
1115
1263
|
{
|
|
1116
1264
|
ref: menuRef,
|
|
@@ -1123,7 +1271,7 @@ function CasePicker({
|
|
|
1123
1271
|
maxHeight: menuPos.maxH
|
|
1124
1272
|
},
|
|
1125
1273
|
children: [
|
|
1126
|
-
!creating && /* @__PURE__ */
|
|
1274
|
+
!creating && /* @__PURE__ */ jsx15(
|
|
1127
1275
|
SearchInput_default,
|
|
1128
1276
|
{
|
|
1129
1277
|
className: "mr-case-picker__search-row",
|
|
@@ -1144,12 +1292,12 @@ function CasePicker({
|
|
|
1144
1292
|
var CasePicker_default = CasePicker;
|
|
1145
1293
|
|
|
1146
1294
|
// src/widgets/delete-modal/DeleteConfirmModal.tsx
|
|
1147
|
-
import { useEffect as
|
|
1295
|
+
import { useEffect as useEffect5 } from "react";
|
|
1148
1296
|
import { createPortal as createPortal3 } from "react-dom";
|
|
1149
1297
|
|
|
1150
1298
|
// src/widgets/typography/Typography.tsx
|
|
1151
|
-
import { memo as
|
|
1152
|
-
import { jsx as
|
|
1299
|
+
import { memo as memo8 } from "react";
|
|
1300
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1153
1301
|
var DEFAULT_TAG = {
|
|
1154
1302
|
heading: "p",
|
|
1155
1303
|
subheading: "p",
|
|
@@ -1163,12 +1311,12 @@ var DEFAULT_TAG = {
|
|
|
1163
1311
|
function Typography({ variant, as, className, ...props }) {
|
|
1164
1312
|
const Tag = as ?? DEFAULT_TAG[variant];
|
|
1165
1313
|
const cls = `mr-text mr-text--${variant}${className ? ` ${className}` : ""}`;
|
|
1166
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ jsx16(Tag, { className: cls, ...props });
|
|
1167
1315
|
}
|
|
1168
|
-
var Typography_default =
|
|
1316
|
+
var Typography_default = memo8(Typography);
|
|
1169
1317
|
|
|
1170
1318
|
// src/widgets/delete-modal/DeleteConfirmModal.tsx
|
|
1171
|
-
import { jsx as
|
|
1319
|
+
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1172
1320
|
function DeleteConfirmModal({
|
|
1173
1321
|
recordLabel,
|
|
1174
1322
|
patientName,
|
|
@@ -1177,7 +1325,7 @@ function DeleteConfirmModal({
|
|
|
1177
1325
|
onCancel,
|
|
1178
1326
|
container
|
|
1179
1327
|
}) {
|
|
1180
|
-
|
|
1328
|
+
useEffect5(() => {
|
|
1181
1329
|
const onKey = (e) => {
|
|
1182
1330
|
if (e.key === "Escape") onCancel();
|
|
1183
1331
|
};
|
|
@@ -1187,7 +1335,7 @@ function DeleteConfirmModal({
|
|
|
1187
1335
|
if (typeof document === "undefined") return null;
|
|
1188
1336
|
const portalTarget = container ?? document.body;
|
|
1189
1337
|
return createPortal3(
|
|
1190
|
-
/* @__PURE__ */
|
|
1338
|
+
/* @__PURE__ */ jsx17("div", { className: "mr-delete-modal", role: "presentation", onClick: onCancel, children: /* @__PURE__ */ jsxs13(
|
|
1191
1339
|
"div",
|
|
1192
1340
|
{
|
|
1193
1341
|
className: "mr-delete-modal__dialog",
|
|
@@ -1196,12 +1344,12 @@ function DeleteConfirmModal({
|
|
|
1196
1344
|
"aria-label": "Delete this record?",
|
|
1197
1345
|
onClick: (e) => e.stopPropagation(),
|
|
1198
1346
|
children: [
|
|
1199
|
-
/* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ jsxs13("div", { className: "mr-delete-modal__content", children: [
|
|
1348
|
+
/* @__PURE__ */ jsx17(Typography_default, { variant: "heading", children: "Delete this record?" }),
|
|
1349
|
+
/* @__PURE__ */ jsxs13(Typography_default, { variant: "muted", className: "mr-delete-modal__desc", children: [
|
|
1350
|
+
/* @__PURE__ */ jsx17("strong", { children: recordLabel }),
|
|
1203
1351
|
" will be permanently removed from ",
|
|
1204
|
-
patientName ? /* @__PURE__ */
|
|
1352
|
+
patientName ? /* @__PURE__ */ jsxs13("strong", { children: [
|
|
1205
1353
|
patientName,
|
|
1206
1354
|
"\u2019s"
|
|
1207
1355
|
] }) : "these",
|
|
@@ -1209,8 +1357,8 @@ function DeleteConfirmModal({
|
|
|
1209
1357
|
"records. This action cannot be undone."
|
|
1210
1358
|
] })
|
|
1211
1359
|
] }),
|
|
1212
|
-
/* @__PURE__ */
|
|
1213
|
-
/* @__PURE__ */
|
|
1360
|
+
/* @__PURE__ */ jsxs13("div", { className: "mr-delete-modal__footer", children: [
|
|
1361
|
+
/* @__PURE__ */ jsx17(
|
|
1214
1362
|
"button",
|
|
1215
1363
|
{
|
|
1216
1364
|
type: "button",
|
|
@@ -1220,7 +1368,7 @@ function DeleteConfirmModal({
|
|
|
1220
1368
|
children: "Cancel"
|
|
1221
1369
|
}
|
|
1222
1370
|
),
|
|
1223
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ jsx17(
|
|
1224
1372
|
"button",
|
|
1225
1373
|
{
|
|
1226
1374
|
type: "button",
|
|
@@ -1239,10 +1387,10 @@ function DeleteConfirmModal({
|
|
|
1239
1387
|
}
|
|
1240
1388
|
|
|
1241
1389
|
// src/widgets/multi-select/MultiSelect.tsx
|
|
1242
|
-
import { useEffect as
|
|
1390
|
+
import { useEffect as useEffect6, useMemo as useMemo3, useRef as useRef5, useState as useState5 } from "react";
|
|
1243
1391
|
import { createPortal as createPortal4 } from "react-dom";
|
|
1244
1392
|
import { ChevronsUpDown as ChevronsUpDown2, Check as Check3, Plus as Plus2, X as X2, Search as Search3 } from "lucide-react";
|
|
1245
|
-
import { jsx as
|
|
1393
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1246
1394
|
function MultiSelect({
|
|
1247
1395
|
value,
|
|
1248
1396
|
options,
|
|
@@ -1254,10 +1402,10 @@ function MultiSelect({
|
|
|
1254
1402
|
max,
|
|
1255
1403
|
noun = "tag"
|
|
1256
1404
|
}) {
|
|
1257
|
-
const [query, setQuery] =
|
|
1258
|
-
const [menu, setMenu] =
|
|
1259
|
-
const fieldRef =
|
|
1260
|
-
const menuRef =
|
|
1405
|
+
const [query, setQuery] = useState5("");
|
|
1406
|
+
const [menu, setMenu] = useState5(null);
|
|
1407
|
+
const fieldRef = useRef5(null);
|
|
1408
|
+
const menuRef = useRef5(null);
|
|
1261
1409
|
const open = menu !== null;
|
|
1262
1410
|
const MENU_MAX_H2 = 260;
|
|
1263
1411
|
const place = () => {
|
|
@@ -1273,7 +1421,7 @@ function MultiSelect({
|
|
|
1273
1421
|
maxH: Math.min(MENU_MAX_H2, spaceBelow)
|
|
1274
1422
|
});
|
|
1275
1423
|
};
|
|
1276
|
-
|
|
1424
|
+
useEffect6(() => {
|
|
1277
1425
|
if (!open) return;
|
|
1278
1426
|
const onDown = (e) => {
|
|
1279
1427
|
const n = e.target;
|
|
@@ -1294,7 +1442,7 @@ function MultiSelect({
|
|
|
1294
1442
|
window.removeEventListener("resize", onResize);
|
|
1295
1443
|
};
|
|
1296
1444
|
}, [open]);
|
|
1297
|
-
|
|
1445
|
+
useEffect6(() => {
|
|
1298
1446
|
if (!open) setQuery("");
|
|
1299
1447
|
}, [open]);
|
|
1300
1448
|
const atMax = max != null && value.length >= max;
|
|
@@ -1303,7 +1451,7 @@ function MultiSelect({
|
|
|
1303
1451
|
else if (!atMax) onChange([...value, v]);
|
|
1304
1452
|
};
|
|
1305
1453
|
const q = query.trim();
|
|
1306
|
-
const filtered =
|
|
1454
|
+
const filtered = useMemo3(() => {
|
|
1307
1455
|
const ql = q.toLowerCase();
|
|
1308
1456
|
return ql ? options.filter((o) => o.toLowerCase().includes(ql)) : options;
|
|
1309
1457
|
}, [options, q]);
|
|
@@ -1312,8 +1460,8 @@ function MultiSelect({
|
|
|
1312
1460
|
onChange([...value, q]);
|
|
1313
1461
|
setQuery("");
|
|
1314
1462
|
};
|
|
1315
|
-
return /* @__PURE__ */
|
|
1316
|
-
/* @__PURE__ */
|
|
1463
|
+
return /* @__PURE__ */ jsxs14("div", { className: "mr-multi-select", children: [
|
|
1464
|
+
/* @__PURE__ */ jsxs14(
|
|
1317
1465
|
"button",
|
|
1318
1466
|
{
|
|
1319
1467
|
ref: fieldRef,
|
|
@@ -1323,7 +1471,7 @@ function MultiSelect({
|
|
|
1323
1471
|
"aria-expanded": open,
|
|
1324
1472
|
onClick: () => open ? setMenu(null) : place(),
|
|
1325
1473
|
children: [
|
|
1326
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ jsx18(
|
|
1327
1475
|
Search3,
|
|
1328
1476
|
{
|
|
1329
1477
|
size: 14,
|
|
@@ -1331,14 +1479,14 @@ function MultiSelect({
|
|
|
1331
1479
|
className: "mr-multi-select__field-search-icon"
|
|
1332
1480
|
}
|
|
1333
1481
|
),
|
|
1334
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ jsx18(
|
|
1335
1483
|
"span",
|
|
1336
1484
|
{
|
|
1337
1485
|
className: `mr-multi-select__value${value.length ? "" : " mr-multi-select__value--placeholder"}`,
|
|
1338
1486
|
children: value.length === 0 ? placeholder : `${value.length} ${value.length === 1 ? noun : `${noun}s`} selected`
|
|
1339
1487
|
}
|
|
1340
1488
|
),
|
|
1341
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx18(
|
|
1342
1490
|
ChevronsUpDown2,
|
|
1343
1491
|
{
|
|
1344
1492
|
size: 16,
|
|
@@ -1349,21 +1497,21 @@ function MultiSelect({
|
|
|
1349
1497
|
]
|
|
1350
1498
|
}
|
|
1351
1499
|
),
|
|
1352
|
-
value.length > 0 && /* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1500
|
+
value.length > 0 && /* @__PURE__ */ jsx18("div", { className: "mr-multi-select__selected", children: value.map((v) => /* @__PURE__ */ jsxs14("span", { className: "mr-multi-select__chip", children: [
|
|
1501
|
+
/* @__PURE__ */ jsx18("span", { className: "mr-multi-select__chip-label", children: v }),
|
|
1502
|
+
/* @__PURE__ */ jsx18(
|
|
1355
1503
|
"button",
|
|
1356
1504
|
{
|
|
1357
1505
|
type: "button",
|
|
1358
1506
|
"aria-label": `Remove ${v}`,
|
|
1359
1507
|
className: "mr-multi-select__chip-x",
|
|
1360
1508
|
onClick: () => onChange(value.filter((x) => x !== v)),
|
|
1361
|
-
children: /* @__PURE__ */
|
|
1509
|
+
children: /* @__PURE__ */ jsx18(X2, { size: 11, "aria-hidden": true })
|
|
1362
1510
|
}
|
|
1363
1511
|
)
|
|
1364
1512
|
] }, v)) }),
|
|
1365
1513
|
open && typeof document !== "undefined" && createPortal4(
|
|
1366
|
-
/* @__PURE__ */
|
|
1514
|
+
/* @__PURE__ */ jsxs14(
|
|
1367
1515
|
"div",
|
|
1368
1516
|
{
|
|
1369
1517
|
ref: menuRef,
|
|
@@ -1379,7 +1527,7 @@ function MultiSelect({
|
|
|
1379
1527
|
maxHeight: menu.maxH
|
|
1380
1528
|
},
|
|
1381
1529
|
children: [
|
|
1382
|
-
/* @__PURE__ */
|
|
1530
|
+
/* @__PURE__ */ jsx18("div", { className: "mr-multi-select__search", children: /* @__PURE__ */ jsx18(
|
|
1383
1531
|
"input",
|
|
1384
1532
|
{
|
|
1385
1533
|
type: "text",
|
|
@@ -1396,10 +1544,10 @@ function MultiSelect({
|
|
|
1396
1544
|
}
|
|
1397
1545
|
}
|
|
1398
1546
|
) }),
|
|
1399
|
-
/* @__PURE__ */
|
|
1547
|
+
/* @__PURE__ */ jsxs14("ul", { className: "mr-multi-select__options", children: [
|
|
1400
1548
|
filtered.map((o) => {
|
|
1401
1549
|
const selected = value.includes(o);
|
|
1402
|
-
return /* @__PURE__ */
|
|
1550
|
+
return /* @__PURE__ */ jsx18("li", { children: /* @__PURE__ */ jsxs14(
|
|
1403
1551
|
"button",
|
|
1404
1552
|
{
|
|
1405
1553
|
type: "button",
|
|
@@ -1409,27 +1557,27 @@ function MultiSelect({
|
|
|
1409
1557
|
disabled: !selected && atMax,
|
|
1410
1558
|
onClick: () => toggle(o),
|
|
1411
1559
|
children: [
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
selected && /* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ jsx18("span", { className: "mr-multi-select__option-label", children: o }),
|
|
1561
|
+
selected && /* @__PURE__ */ jsx18(Check3, { size: 14, "aria-hidden": true })
|
|
1414
1562
|
]
|
|
1415
1563
|
}
|
|
1416
1564
|
) }, o);
|
|
1417
1565
|
}),
|
|
1418
|
-
canCreate && /* @__PURE__ */
|
|
1566
|
+
canCreate && /* @__PURE__ */ jsx18("li", { children: /* @__PURE__ */ jsxs14(
|
|
1419
1567
|
"button",
|
|
1420
1568
|
{
|
|
1421
1569
|
type: "button",
|
|
1422
1570
|
className: "mr-multi-select__option mr-multi-select__create",
|
|
1423
1571
|
onClick: create,
|
|
1424
1572
|
children: [
|
|
1425
|
-
/* @__PURE__ */
|
|
1573
|
+
/* @__PURE__ */ jsx18(Plus2, { size: 14, "aria-hidden": true }),
|
|
1426
1574
|
"Add \u201C",
|
|
1427
1575
|
q,
|
|
1428
1576
|
"\u201D"
|
|
1429
1577
|
]
|
|
1430
1578
|
}
|
|
1431
1579
|
) }),
|
|
1432
|
-
filtered.length === 0 && !canCreate && /* @__PURE__ */
|
|
1580
|
+
filtered.length === 0 && !canCreate && /* @__PURE__ */ jsx18("li", { className: "mr-multi-select__empty text-center", children: "No data" })
|
|
1433
1581
|
] })
|
|
1434
1582
|
]
|
|
1435
1583
|
}
|
|
@@ -1441,15 +1589,15 @@ function MultiSelect({
|
|
|
1441
1589
|
|
|
1442
1590
|
// src/widgets/overflow-menu/OverflowMenu.tsx
|
|
1443
1591
|
import {
|
|
1444
|
-
useCallback as
|
|
1445
|
-
useEffect as
|
|
1592
|
+
useCallback as useCallback4,
|
|
1593
|
+
useEffect as useEffect7,
|
|
1446
1594
|
useLayoutEffect,
|
|
1447
|
-
useRef as
|
|
1448
|
-
useState as
|
|
1595
|
+
useRef as useRef6,
|
|
1596
|
+
useState as useState6
|
|
1449
1597
|
} from "react";
|
|
1450
1598
|
import { createPortal as createPortal5 } from "react-dom";
|
|
1451
|
-
import { ChevronLeft, EllipsisVertical } from "lucide-react";
|
|
1452
|
-
import { Fragment as Fragment2, jsx as
|
|
1599
|
+
import { ChevronLeft as ChevronLeft2, EllipsisVertical } from "lucide-react";
|
|
1600
|
+
import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1453
1601
|
var ITEM_HEIGHT = 36;
|
|
1454
1602
|
var MENU_PADDING = 8;
|
|
1455
1603
|
var GAP = 4;
|
|
@@ -1457,21 +1605,21 @@ function OverflowMenu({
|
|
|
1457
1605
|
items,
|
|
1458
1606
|
"aria-label": ariaLabel = "More options"
|
|
1459
1607
|
}) {
|
|
1460
|
-
const [coords, setCoords] =
|
|
1461
|
-
const [activeSubPanel, setActiveSubPanel] =
|
|
1462
|
-
const [panelStack, setPanelStack] =
|
|
1463
|
-
const triggerRef =
|
|
1464
|
-
const menuRef =
|
|
1608
|
+
const [coords, setCoords] = useState6(null);
|
|
1609
|
+
const [activeSubPanel, setActiveSubPanel] = useState6(null);
|
|
1610
|
+
const [panelStack, setPanelStack] = useState6([]);
|
|
1611
|
+
const triggerRef = useRef6(null);
|
|
1612
|
+
const menuRef = useRef6(null);
|
|
1465
1613
|
const open = coords !== null;
|
|
1466
1614
|
const close = () => {
|
|
1467
1615
|
setCoords(null);
|
|
1468
1616
|
setActiveSubPanel(null);
|
|
1469
1617
|
setPanelStack([]);
|
|
1470
1618
|
};
|
|
1471
|
-
const pushPanel =
|
|
1619
|
+
const pushPanel = useCallback4((panel) => {
|
|
1472
1620
|
setPanelStack((prev) => [...prev, panel]);
|
|
1473
1621
|
}, []);
|
|
1474
|
-
const popPanel =
|
|
1622
|
+
const popPanel = useCallback4(() => {
|
|
1475
1623
|
setPanelStack((prev) => prev.slice(0, -1));
|
|
1476
1624
|
}, []);
|
|
1477
1625
|
const place = () => {
|
|
@@ -1500,7 +1648,7 @@ function OverflowMenu({
|
|
|
1500
1648
|
setCoords({ right, top: r.bottom + GAP });
|
|
1501
1649
|
}
|
|
1502
1650
|
}, [open, activeSubPanel, panelStack.length]);
|
|
1503
|
-
|
|
1651
|
+
useEffect7(() => {
|
|
1504
1652
|
if (!open) return;
|
|
1505
1653
|
const onDown = (e) => {
|
|
1506
1654
|
const node = e.target;
|
|
@@ -1534,8 +1682,8 @@ function OverflowMenu({
|
|
|
1534
1682
|
setPanelStack([]);
|
|
1535
1683
|
}
|
|
1536
1684
|
};
|
|
1537
|
-
return /* @__PURE__ */
|
|
1538
|
-
/* @__PURE__ */
|
|
1685
|
+
return /* @__PURE__ */ jsxs15(Fragment2, { children: [
|
|
1686
|
+
/* @__PURE__ */ jsx19(
|
|
1539
1687
|
"button",
|
|
1540
1688
|
{
|
|
1541
1689
|
ref: triggerRef,
|
|
@@ -1549,11 +1697,11 @@ function OverflowMenu({
|
|
|
1549
1697
|
if (open) close();
|
|
1550
1698
|
else place();
|
|
1551
1699
|
},
|
|
1552
|
-
children: /* @__PURE__ */
|
|
1700
|
+
children: /* @__PURE__ */ jsx19(EllipsisVertical, { size: 16, "aria-hidden": true })
|
|
1553
1701
|
}
|
|
1554
1702
|
),
|
|
1555
1703
|
open && typeof document !== "undefined" && createPortal5(
|
|
1556
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsx19(
|
|
1557
1705
|
"div",
|
|
1558
1706
|
{
|
|
1559
1707
|
ref: menuRef,
|
|
@@ -1565,26 +1713,26 @@ function OverflowMenu({
|
|
|
1565
1713
|
right: coords.right
|
|
1566
1714
|
},
|
|
1567
1715
|
onClick: (e) => e.stopPropagation(),
|
|
1568
|
-
children: activeItem?.subPanel ? /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1716
|
+
children: activeItem?.subPanel ? /* @__PURE__ */ jsxs15("div", { className: "mr-overflow-subpanel", children: [
|
|
1717
|
+
/* @__PURE__ */ jsx19("div", { className: "mr-overflow-subpanel__back", children: /* @__PURE__ */ jsxs15(
|
|
1570
1718
|
"button",
|
|
1571
1719
|
{
|
|
1572
1720
|
type: "button",
|
|
1573
1721
|
className: "mr-overflow-subpanel__back-btn",
|
|
1574
1722
|
onClick: handleBack,
|
|
1575
1723
|
children: [
|
|
1576
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx19(ChevronLeft2, { size: 16, "aria-hidden": true }),
|
|
1577
1725
|
"Back"
|
|
1578
1726
|
]
|
|
1579
1727
|
}
|
|
1580
1728
|
) }),
|
|
1581
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ jsx19("div", { style: { display: panelStack.length === 0 ? void 0 : "none" }, children: activeItem.subPanel(
|
|
1582
1730
|
() => setActiveSubPanel(null),
|
|
1583
1731
|
close,
|
|
1584
1732
|
pushPanel,
|
|
1585
1733
|
popPanel
|
|
1586
1734
|
) }),
|
|
1587
|
-
panelStack.map((panel, i) => /* @__PURE__ */
|
|
1735
|
+
panelStack.map((panel, i) => /* @__PURE__ */ jsx19(
|
|
1588
1736
|
"div",
|
|
1589
1737
|
{
|
|
1590
1738
|
style: { display: i === panelStack.length - 1 ? void 0 : "none" },
|
|
@@ -1592,7 +1740,7 @@ function OverflowMenu({
|
|
|
1592
1740
|
},
|
|
1593
1741
|
i
|
|
1594
1742
|
))
|
|
1595
|
-
] }) : /* @__PURE__ */
|
|
1743
|
+
] }) : /* @__PURE__ */ jsx19("ul", { className: "mr-overflow-menu", role: "menu", children: items.map((item) => /* @__PURE__ */ jsx19("li", { children: /* @__PURE__ */ jsxs15(
|
|
1596
1744
|
"button",
|
|
1597
1745
|
{
|
|
1598
1746
|
type: "button",
|
|
@@ -1610,7 +1758,7 @@ function OverflowMenu({
|
|
|
1610
1758
|
}
|
|
1611
1759
|
},
|
|
1612
1760
|
children: [
|
|
1613
|
-
item.icon && /* @__PURE__ */
|
|
1761
|
+
item.icon && /* @__PURE__ */ jsx19("span", { className: "mr-overflow-menu__icon", children: item.icon }),
|
|
1614
1762
|
item.label
|
|
1615
1763
|
]
|
|
1616
1764
|
}
|
|
@@ -1623,9 +1771,9 @@ function OverflowMenu({
|
|
|
1623
1771
|
}
|
|
1624
1772
|
|
|
1625
1773
|
// src/widgets/search-select/SearchSelect.tsx
|
|
1626
|
-
import { useEffect as
|
|
1774
|
+
import { useEffect as useEffect8, useMemo as useMemo4, useRef as useRef7, useState as useState7 } from "react";
|
|
1627
1775
|
import { ChevronsUpDown as ChevronsUpDown3, Check as Check4 } from "lucide-react";
|
|
1628
|
-
import { jsx as
|
|
1776
|
+
import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1629
1777
|
function SearchSelect({
|
|
1630
1778
|
value,
|
|
1631
1779
|
options,
|
|
@@ -1634,11 +1782,11 @@ function SearchSelect({
|
|
|
1634
1782
|
searchPlaceholder = "Search\u2026",
|
|
1635
1783
|
footer
|
|
1636
1784
|
}) {
|
|
1637
|
-
const [open, setOpen] =
|
|
1638
|
-
const [query, setQuery] =
|
|
1639
|
-
const ref =
|
|
1785
|
+
const [open, setOpen] = useState7(false);
|
|
1786
|
+
const [query, setQuery] = useState7("");
|
|
1787
|
+
const ref = useRef7(null);
|
|
1640
1788
|
const selected = options.find((o) => o.value === value);
|
|
1641
|
-
|
|
1789
|
+
useEffect8(() => {
|
|
1642
1790
|
if (!open) return;
|
|
1643
1791
|
const onDown = (e) => {
|
|
1644
1792
|
if (ref.current && !ref.current.contains(e.target))
|
|
@@ -1647,15 +1795,15 @@ function SearchSelect({
|
|
|
1647
1795
|
document.addEventListener("mousedown", onDown);
|
|
1648
1796
|
return () => document.removeEventListener("mousedown", onDown);
|
|
1649
1797
|
}, [open]);
|
|
1650
|
-
|
|
1798
|
+
useEffect8(() => {
|
|
1651
1799
|
if (!open) setQuery("");
|
|
1652
1800
|
}, [open]);
|
|
1653
|
-
const filtered =
|
|
1801
|
+
const filtered = useMemo4(() => {
|
|
1654
1802
|
const q = query.trim().toLowerCase();
|
|
1655
1803
|
return q ? options.filter((o) => o.label.toLowerCase().includes(q)) : options;
|
|
1656
1804
|
}, [options, query]);
|
|
1657
|
-
return /* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1805
|
+
return /* @__PURE__ */ jsxs16("div", { className: "mr-search-select", ref, children: [
|
|
1806
|
+
/* @__PURE__ */ jsxs16(
|
|
1659
1807
|
"button",
|
|
1660
1808
|
{
|
|
1661
1809
|
type: "button",
|
|
@@ -1664,14 +1812,14 @@ function SearchSelect({
|
|
|
1664
1812
|
"aria-expanded": open,
|
|
1665
1813
|
onClick: () => setOpen((o) => !o),
|
|
1666
1814
|
children: [
|
|
1667
|
-
/* @__PURE__ */
|
|
1815
|
+
/* @__PURE__ */ jsx20(
|
|
1668
1816
|
"span",
|
|
1669
1817
|
{
|
|
1670
1818
|
className: `mr-search-select__value${selected ? "" : " mr-search-select__value--placeholder"}`,
|
|
1671
1819
|
children: selected?.label ?? placeholder
|
|
1672
1820
|
}
|
|
1673
1821
|
),
|
|
1674
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ jsx20(
|
|
1675
1823
|
ChevronsUpDown3,
|
|
1676
1824
|
{
|
|
1677
1825
|
size: 16,
|
|
@@ -1682,8 +1830,8 @@ function SearchSelect({
|
|
|
1682
1830
|
]
|
|
1683
1831
|
}
|
|
1684
1832
|
),
|
|
1685
|
-
open && /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1833
|
+
open && /* @__PURE__ */ jsxs16("div", { className: "mr-search-select__menu", role: "listbox", children: [
|
|
1834
|
+
/* @__PURE__ */ jsx20(
|
|
1687
1835
|
SearchInput_default,
|
|
1688
1836
|
{
|
|
1689
1837
|
className: "mr-search-select__search",
|
|
@@ -1693,7 +1841,7 @@ function SearchSelect({
|
|
|
1693
1841
|
onChange: setQuery
|
|
1694
1842
|
}
|
|
1695
1843
|
),
|
|
1696
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ jsx20("ul", { className: "mr-search-select__options", children: filtered.length === 0 ? /* @__PURE__ */ jsx20("li", { className: "mr-search-select__empty", children: "No matches" }) : filtered.map((o) => /* @__PURE__ */ jsx20("li", { children: /* @__PURE__ */ jsxs16(
|
|
1697
1845
|
"button",
|
|
1698
1846
|
{
|
|
1699
1847
|
type: "button",
|
|
@@ -1705,18 +1853,18 @@ function SearchSelect({
|
|
|
1705
1853
|
setOpen(false);
|
|
1706
1854
|
},
|
|
1707
1855
|
children: [
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
o.value === value && /* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ jsx20("span", { className: "mr-search-select__option-label", children: o.label }),
|
|
1857
|
+
o.value === value && /* @__PURE__ */ jsx20(Check4, { size: 14, "aria-hidden": true })
|
|
1710
1858
|
]
|
|
1711
1859
|
}
|
|
1712
1860
|
) }, o.value)) }),
|
|
1713
|
-
footer && /* @__PURE__ */
|
|
1861
|
+
footer && /* @__PURE__ */ jsx20("div", { className: "mr-search-select__footer", children: footer })
|
|
1714
1862
|
] })
|
|
1715
1863
|
] });
|
|
1716
1864
|
}
|
|
1717
1865
|
|
|
1718
1866
|
// src/widgets/status-badge/StatusBadge.tsx
|
|
1719
|
-
import { jsx as
|
|
1867
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1720
1868
|
var STATUS_LABEL = {
|
|
1721
1869
|
high: "HIGH",
|
|
1722
1870
|
low: "LOW",
|
|
@@ -1726,36 +1874,36 @@ var STATUS_LABEL = {
|
|
|
1726
1874
|
function StatusBadge({ status }) {
|
|
1727
1875
|
const label = STATUS_LABEL[status];
|
|
1728
1876
|
if (!label) return null;
|
|
1729
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsx21("span", { className: `mr-sv__vital-badge mr-sv__vital-badge--${status}`, children: label });
|
|
1730
1878
|
}
|
|
1731
1879
|
|
|
1732
1880
|
// src/illustrations/no-record.tsx
|
|
1733
|
-
import { jsx as
|
|
1881
|
+
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1734
1882
|
function NoRecordsIllustration() {
|
|
1735
|
-
return /* @__PURE__ */
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
/* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsxs17("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
1884
|
+
/* @__PURE__ */ jsxs17("g", { clipPath: "url(#clip0_sv_nrec)", children: [
|
|
1885
|
+
/* @__PURE__ */ jsx22(
|
|
1738
1886
|
"path",
|
|
1739
1887
|
{
|
|
1740
1888
|
d: "M73.92 0H22.08C9.88555 0 0 9.88555 0 22.08V73.92C0 86.1144 9.88555 96 22.08 96H73.92C86.1144 96 96 86.1144 96 73.92V22.08C96 9.88555 86.1144 0 73.92 0Z",
|
|
1741
1889
|
fill: "#E8F0FF"
|
|
1742
1890
|
}
|
|
1743
1891
|
),
|
|
1744
|
-
/* @__PURE__ */
|
|
1892
|
+
/* @__PURE__ */ jsx22("g", { opacity: "0.75", filter: "url(#filter0_sv_nrec)", children: /* @__PURE__ */ jsx22(
|
|
1745
1893
|
"path",
|
|
1746
1894
|
{
|
|
1747
1895
|
d: "M74.4 12.4805H31.2C27.2235 12.4805 24 15.704 24 19.6805V56.1605C24 60.1369 27.2235 63.3605 31.2 63.3605H74.4C78.3764 63.3605 81.6 60.1369 81.6 56.1605V19.6805C81.6 15.704 78.3764 12.4805 74.4 12.4805Z",
|
|
1748
1896
|
fill: "white"
|
|
1749
1897
|
}
|
|
1750
1898
|
) }),
|
|
1751
|
-
/* @__PURE__ */
|
|
1899
|
+
/* @__PURE__ */ jsx22("g", { filter: "url(#filter1_sv_nrec)", children: /* @__PURE__ */ jsx22(
|
|
1752
1900
|
"path",
|
|
1753
1901
|
{
|
|
1754
1902
|
d: "M66.7203 20.1602H23.5203C19.5439 20.1602 16.3203 23.3837 16.3203 27.3602V63.8402C16.3203 67.8166 19.5439 71.0402 23.5203 71.0402H66.7203C70.6968 71.0402 73.9203 67.8166 73.9203 63.8402V27.3602C73.9203 23.3837 70.6968 20.1602 66.7203 20.1602Z",
|
|
1755
1903
|
fill: "white"
|
|
1756
1904
|
}
|
|
1757
1905
|
) }),
|
|
1758
|
-
/* @__PURE__ */
|
|
1906
|
+
/* @__PURE__ */ jsx22(
|
|
1759
1907
|
"path",
|
|
1760
1908
|
{
|
|
1761
1909
|
opacity: "0.5",
|
|
@@ -1763,7 +1911,7 @@ function NoRecordsIllustration() {
|
|
|
1763
1911
|
fill: "#DDE9F5"
|
|
1764
1912
|
}
|
|
1765
1913
|
),
|
|
1766
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ jsx22(
|
|
1767
1915
|
"path",
|
|
1768
1916
|
{
|
|
1769
1917
|
opacity: "0.5",
|
|
@@ -1771,14 +1919,14 @@ function NoRecordsIllustration() {
|
|
|
1771
1919
|
fill: "#DDE9F5"
|
|
1772
1920
|
}
|
|
1773
1921
|
),
|
|
1774
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ jsx22("g", { filter: "url(#filter2_sv_nrec)", children: /* @__PURE__ */ jsx22(
|
|
1775
1923
|
"path",
|
|
1776
1924
|
{
|
|
1777
1925
|
d: "M67.2002 79.2013C74.3578 79.2013 80.1602 73.3989 80.1602 66.2413C80.1602 59.0836 74.3578 53.2812 67.2002 53.2812C60.0426 53.2812 54.2402 59.0836 54.2402 66.2413C54.2402 73.3989 60.0426 79.2013 67.2002 79.2013Z",
|
|
1778
1926
|
fill: "#2563EB"
|
|
1779
1927
|
}
|
|
1780
1928
|
) }),
|
|
1781
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ jsx22(
|
|
1782
1930
|
"path",
|
|
1783
1931
|
{
|
|
1784
1932
|
d: "M71.5 71L69.35 68.85M70.5 66C70.5 68.2091 68.7091 70 66.5 70C64.2909 70 62.5 68.2091 62.5 66C62.5 63.7909 64.2909 62 66.5 62C68.7091 62 70.5 63.7909 70.5 66Z",
|
|
@@ -1787,7 +1935,7 @@ function NoRecordsIllustration() {
|
|
|
1787
1935
|
strokeLinejoin: "round"
|
|
1788
1936
|
}
|
|
1789
1937
|
),
|
|
1790
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ jsx22(
|
|
1791
1939
|
"path",
|
|
1792
1940
|
{
|
|
1793
1941
|
d: "M54 41.5V45.5C54 46.0304 53.7893 46.5391 53.4142 46.9142C53.0391 47.2893 52.5304 47.5 52 47.5H38C37.4696 47.5 36.9609 47.2893 36.5858 46.9142C36.2107 46.5391 36 46.0304 36 45.5V41.5M40 34.5L45 29.5L50 34.5M45 29.5V41.5",
|
|
@@ -1798,8 +1946,8 @@ function NoRecordsIllustration() {
|
|
|
1798
1946
|
}
|
|
1799
1947
|
)
|
|
1800
1948
|
] }),
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
/* @__PURE__ */
|
|
1949
|
+
/* @__PURE__ */ jsxs17("defs", { children: [
|
|
1950
|
+
/* @__PURE__ */ jsxs17(
|
|
1803
1951
|
"filter",
|
|
1804
1952
|
{
|
|
1805
1953
|
id: "filter0_sv_nrec",
|
|
@@ -1810,8 +1958,8 @@ function NoRecordsIllustration() {
|
|
|
1810
1958
|
filterUnits: "userSpaceOnUse",
|
|
1811
1959
|
colorInterpolationFilters: "sRGB",
|
|
1812
1960
|
children: [
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1961
|
+
/* @__PURE__ */ jsx22("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1962
|
+
/* @__PURE__ */ jsx22(
|
|
1815
1963
|
"feColorMatrix",
|
|
1816
1964
|
{
|
|
1817
1965
|
in: "SourceAlpha",
|
|
@@ -1820,7 +1968,7 @@ function NoRecordsIllustration() {
|
|
|
1820
1968
|
result: "hardAlpha"
|
|
1821
1969
|
}
|
|
1822
1970
|
),
|
|
1823
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ jsx22(
|
|
1824
1972
|
"feMorphology",
|
|
1825
1973
|
{
|
|
1826
1974
|
radius: "1",
|
|
@@ -1829,17 +1977,17 @@ function NoRecordsIllustration() {
|
|
|
1829
1977
|
result: "effect1_dropShadow_sv_nrec"
|
|
1830
1978
|
}
|
|
1831
1979
|
),
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
1981
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1" }),
|
|
1982
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
1983
|
+
/* @__PURE__ */ jsx22(
|
|
1836
1984
|
"feColorMatrix",
|
|
1837
1985
|
{
|
|
1838
1986
|
type: "matrix",
|
|
1839
1987
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1840
1988
|
}
|
|
1841
1989
|
),
|
|
1842
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ jsx22(
|
|
1843
1991
|
"feBlend",
|
|
1844
1992
|
{
|
|
1845
1993
|
mode: "normal",
|
|
@@ -1847,7 +1995,7 @@ function NoRecordsIllustration() {
|
|
|
1847
1995
|
result: "effect1_dropShadow_sv_nrec"
|
|
1848
1996
|
}
|
|
1849
1997
|
),
|
|
1850
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ jsx22(
|
|
1851
1999
|
"feColorMatrix",
|
|
1852
2000
|
{
|
|
1853
2001
|
in: "SourceAlpha",
|
|
@@ -1856,17 +2004,17 @@ function NoRecordsIllustration() {
|
|
|
1856
2004
|
result: "hardAlpha"
|
|
1857
2005
|
}
|
|
1858
2006
|
),
|
|
1859
|
-
/* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
2007
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
2008
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2009
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2010
|
+
/* @__PURE__ */ jsx22(
|
|
1863
2011
|
"feColorMatrix",
|
|
1864
2012
|
{
|
|
1865
2013
|
type: "matrix",
|
|
1866
2014
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1867
2015
|
}
|
|
1868
2016
|
),
|
|
1869
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx22(
|
|
1870
2018
|
"feBlend",
|
|
1871
2019
|
{
|
|
1872
2020
|
mode: "normal",
|
|
@@ -1874,7 +2022,7 @@ function NoRecordsIllustration() {
|
|
|
1874
2022
|
result: "effect2_dropShadow_sv_nrec"
|
|
1875
2023
|
}
|
|
1876
2024
|
),
|
|
1877
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ jsx22(
|
|
1878
2026
|
"feBlend",
|
|
1879
2027
|
{
|
|
1880
2028
|
mode: "normal",
|
|
@@ -1886,7 +2034,7 @@ function NoRecordsIllustration() {
|
|
|
1886
2034
|
]
|
|
1887
2035
|
}
|
|
1888
2036
|
),
|
|
1889
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsxs17(
|
|
1890
2038
|
"filter",
|
|
1891
2039
|
{
|
|
1892
2040
|
id: "filter1_sv_nrec",
|
|
@@ -1897,8 +2045,8 @@ function NoRecordsIllustration() {
|
|
|
1897
2045
|
filterUnits: "userSpaceOnUse",
|
|
1898
2046
|
colorInterpolationFilters: "sRGB",
|
|
1899
2047
|
children: [
|
|
1900
|
-
/* @__PURE__ */
|
|
1901
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ jsx22("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2049
|
+
/* @__PURE__ */ jsx22(
|
|
1902
2050
|
"feColorMatrix",
|
|
1903
2051
|
{
|
|
1904
2052
|
in: "SourceAlpha",
|
|
@@ -1907,7 +2055,7 @@ function NoRecordsIllustration() {
|
|
|
1907
2055
|
result: "hardAlpha"
|
|
1908
2056
|
}
|
|
1909
2057
|
),
|
|
1910
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsx22(
|
|
1911
2059
|
"feMorphology",
|
|
1912
2060
|
{
|
|
1913
2061
|
radius: "1",
|
|
@@ -1916,17 +2064,17 @@ function NoRecordsIllustration() {
|
|
|
1916
2064
|
result: "effect1_dropShadow_sv_nrec"
|
|
1917
2065
|
}
|
|
1918
2066
|
),
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
2068
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1" }),
|
|
2069
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2070
|
+
/* @__PURE__ */ jsx22(
|
|
1923
2071
|
"feColorMatrix",
|
|
1924
2072
|
{
|
|
1925
2073
|
type: "matrix",
|
|
1926
2074
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1927
2075
|
}
|
|
1928
2076
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
2077
|
+
/* @__PURE__ */ jsx22(
|
|
1930
2078
|
"feBlend",
|
|
1931
2079
|
{
|
|
1932
2080
|
mode: "normal",
|
|
@@ -1934,7 +2082,7 @@ function NoRecordsIllustration() {
|
|
|
1934
2082
|
result: "effect1_dropShadow_sv_nrec"
|
|
1935
2083
|
}
|
|
1936
2084
|
),
|
|
1937
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ jsx22(
|
|
1938
2086
|
"feColorMatrix",
|
|
1939
2087
|
{
|
|
1940
2088
|
in: "SourceAlpha",
|
|
@@ -1943,17 +2091,17 @@ function NoRecordsIllustration() {
|
|
|
1943
2091
|
result: "hardAlpha"
|
|
1944
2092
|
}
|
|
1945
2093
|
),
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
2095
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2096
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2097
|
+
/* @__PURE__ */ jsx22(
|
|
1950
2098
|
"feColorMatrix",
|
|
1951
2099
|
{
|
|
1952
2100
|
type: "matrix",
|
|
1953
2101
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1954
2102
|
}
|
|
1955
2103
|
),
|
|
1956
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ jsx22(
|
|
1957
2105
|
"feBlend",
|
|
1958
2106
|
{
|
|
1959
2107
|
mode: "normal",
|
|
@@ -1961,7 +2109,7 @@ function NoRecordsIllustration() {
|
|
|
1961
2109
|
result: "effect2_dropShadow_sv_nrec"
|
|
1962
2110
|
}
|
|
1963
2111
|
),
|
|
1964
|
-
/* @__PURE__ */
|
|
2112
|
+
/* @__PURE__ */ jsx22(
|
|
1965
2113
|
"feBlend",
|
|
1966
2114
|
{
|
|
1967
2115
|
mode: "normal",
|
|
@@ -1973,7 +2121,7 @@ function NoRecordsIllustration() {
|
|
|
1973
2121
|
]
|
|
1974
2122
|
}
|
|
1975
2123
|
),
|
|
1976
|
-
/* @__PURE__ */
|
|
2124
|
+
/* @__PURE__ */ jsxs17(
|
|
1977
2125
|
"filter",
|
|
1978
2126
|
{
|
|
1979
2127
|
id: "filter2_sv_nrec",
|
|
@@ -1984,8 +2132,8 @@ function NoRecordsIllustration() {
|
|
|
1984
2132
|
filterUnits: "userSpaceOnUse",
|
|
1985
2133
|
colorInterpolationFilters: "sRGB",
|
|
1986
2134
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx22("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2136
|
+
/* @__PURE__ */ jsx22(
|
|
1989
2137
|
"feColorMatrix",
|
|
1990
2138
|
{
|
|
1991
2139
|
in: "SourceAlpha",
|
|
@@ -1994,7 +2142,7 @@ function NoRecordsIllustration() {
|
|
|
1994
2142
|
result: "hardAlpha"
|
|
1995
2143
|
}
|
|
1996
2144
|
),
|
|
1997
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ jsx22(
|
|
1998
2146
|
"feMorphology",
|
|
1999
2147
|
{
|
|
2000
2148
|
radius: "1",
|
|
@@ -2003,17 +2151,17 @@ function NoRecordsIllustration() {
|
|
|
2003
2151
|
result: "effect1_dropShadow_sv_nrec"
|
|
2004
2152
|
}
|
|
2005
2153
|
),
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
2155
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1" }),
|
|
2156
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2157
|
+
/* @__PURE__ */ jsx22(
|
|
2010
2158
|
"feColorMatrix",
|
|
2011
2159
|
{
|
|
2012
2160
|
type: "matrix",
|
|
2013
2161
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2014
2162
|
}
|
|
2015
2163
|
),
|
|
2016
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ jsx22(
|
|
2017
2165
|
"feBlend",
|
|
2018
2166
|
{
|
|
2019
2167
|
mode: "normal",
|
|
@@ -2021,7 +2169,7 @@ function NoRecordsIllustration() {
|
|
|
2021
2169
|
result: "effect1_dropShadow_sv_nrec"
|
|
2022
2170
|
}
|
|
2023
2171
|
),
|
|
2024
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx22(
|
|
2025
2173
|
"feColorMatrix",
|
|
2026
2174
|
{
|
|
2027
2175
|
in: "SourceAlpha",
|
|
@@ -2030,17 +2178,17 @@ function NoRecordsIllustration() {
|
|
|
2030
2178
|
result: "hardAlpha"
|
|
2031
2179
|
}
|
|
2032
2180
|
),
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ jsx22("feOffset", { dy: "1" }),
|
|
2182
|
+
/* @__PURE__ */ jsx22("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2183
|
+
/* @__PURE__ */ jsx22("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2184
|
+
/* @__PURE__ */ jsx22(
|
|
2037
2185
|
"feColorMatrix",
|
|
2038
2186
|
{
|
|
2039
2187
|
type: "matrix",
|
|
2040
2188
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2041
2189
|
}
|
|
2042
2190
|
),
|
|
2043
|
-
/* @__PURE__ */
|
|
2191
|
+
/* @__PURE__ */ jsx22(
|
|
2044
2192
|
"feBlend",
|
|
2045
2193
|
{
|
|
2046
2194
|
mode: "normal",
|
|
@@ -2048,7 +2196,7 @@ function NoRecordsIllustration() {
|
|
|
2048
2196
|
result: "effect2_dropShadow_sv_nrec"
|
|
2049
2197
|
}
|
|
2050
2198
|
),
|
|
2051
|
-
/* @__PURE__ */
|
|
2199
|
+
/* @__PURE__ */ jsx22(
|
|
2052
2200
|
"feBlend",
|
|
2053
2201
|
{
|
|
2054
2202
|
mode: "normal",
|
|
@@ -2060,42 +2208,42 @@ function NoRecordsIllustration() {
|
|
|
2060
2208
|
]
|
|
2061
2209
|
}
|
|
2062
2210
|
),
|
|
2063
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx22("clipPath", { id: "clip0_sv_nrec", children: /* @__PURE__ */ jsx22("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2064
2212
|
] })
|
|
2065
2213
|
] });
|
|
2066
2214
|
}
|
|
2067
2215
|
var no_record_default = NoRecordsIllustration;
|
|
2068
2216
|
|
|
2069
2217
|
// src/widgets/states/NoRecordsState.tsx
|
|
2070
|
-
import { jsx as
|
|
2218
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2071
2219
|
function NoRecordsState({
|
|
2072
2220
|
onUpload
|
|
2073
2221
|
}) {
|
|
2074
|
-
return /* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
/* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ jsxs18("div", { className: "mr-sv__empty", children: [
|
|
2223
|
+
/* @__PURE__ */ jsx23(no_record_default, {}),
|
|
2224
|
+
/* @__PURE__ */ jsxs18("div", { className: "mr-sv__empty-text", children: [
|
|
2225
|
+
/* @__PURE__ */ jsx23(Typography_default, { variant: "heading", children: "No records found" }),
|
|
2226
|
+
/* @__PURE__ */ jsx23(Typography_default, { variant: "muted", children: "We could not find any records for this patient." })
|
|
2079
2227
|
] })
|
|
2080
2228
|
] });
|
|
2081
2229
|
}
|
|
2082
2230
|
|
|
2083
2231
|
// src/widgets/states/RecordsLoadingState.tsx
|
|
2084
2232
|
import { LoaderCircle } from "lucide-react";
|
|
2085
|
-
import { jsx as
|
|
2233
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2086
2234
|
function RecordsLoadingState({
|
|
2087
2235
|
patientName
|
|
2088
2236
|
}) {
|
|
2089
|
-
return /* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
2094
|
-
/* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ jsxs19("div", { className: "mr-sv__loading-body", children: [
|
|
2238
|
+
/* @__PURE__ */ jsx24("div", { className: "mr-sv__loading-sidebar", children: Array.from({ length: 14 }).map((_, i) => /* @__PURE__ */ jsxs19("div", { className: "mr-sv__loading-skeleton-row", children: [
|
|
2239
|
+
/* @__PURE__ */ jsx24("div", { className: "mr-sv__loading-skeleton-thumb" }),
|
|
2240
|
+
/* @__PURE__ */ jsxs19("div", { className: "mr-sv__loading-skeleton-text", children: [
|
|
2241
|
+
/* @__PURE__ */ jsx24("div", { className: "mr-sv__loading-skeleton-title" }),
|
|
2242
|
+
/* @__PURE__ */ jsx24("div", { className: "mr-sv__loading-skeleton-sub" })
|
|
2095
2243
|
] })
|
|
2096
2244
|
] }, i)) }),
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsxs19("div", { className: "mr-sv__loading-panel", children: [
|
|
2246
|
+
/* @__PURE__ */ jsx24(
|
|
2099
2247
|
LoaderCircle,
|
|
2100
2248
|
{
|
|
2101
2249
|
size: 44,
|
|
@@ -2103,41 +2251,41 @@ function RecordsLoadingState({
|
|
|
2103
2251
|
"aria-hidden": true
|
|
2104
2252
|
}
|
|
2105
2253
|
),
|
|
2106
|
-
/* @__PURE__ */
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
/* @__PURE__ */
|
|
2254
|
+
/* @__PURE__ */ jsxs19("div", { className: "mr-sv__empty-text", children: [
|
|
2255
|
+
/* @__PURE__ */ jsx24(Typography_default, { variant: "heading", children: "Loading records..." }),
|
|
2256
|
+
/* @__PURE__ */ jsx24(Typography_default, { variant: "muted", children: patientName ? `Fetching ${patientName}'s medical history` : "Fetching medical history" })
|
|
2109
2257
|
] })
|
|
2110
2258
|
] })
|
|
2111
2259
|
] });
|
|
2112
2260
|
}
|
|
2113
2261
|
|
|
2114
2262
|
// src/illustrations/empty-state.tsx
|
|
2115
|
-
import { jsx as
|
|
2263
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2116
2264
|
function EmptyIllustration() {
|
|
2117
|
-
return /* @__PURE__ */
|
|
2118
|
-
/* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2265
|
+
return /* @__PURE__ */ jsxs20("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
2266
|
+
/* @__PURE__ */ jsxs20("g", { clipPath: "url(#clip0_sv_empty)", children: [
|
|
2267
|
+
/* @__PURE__ */ jsx25(
|
|
2120
2268
|
"path",
|
|
2121
2269
|
{
|
|
2122
2270
|
d: "M73.92 0H22.08C9.88555 0 0 9.88555 0 22.08V73.92C0 86.1144 9.88555 96 22.08 96H73.92C86.1144 96 96 86.1144 96 73.92V22.08C96 9.88555 86.1144 0 73.92 0Z",
|
|
2123
2271
|
fill: "#E8F0FF"
|
|
2124
2272
|
}
|
|
2125
2273
|
),
|
|
2126
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ jsx25("g", { opacity: "0.75", filter: "url(#filter0_sv_empty)", children: /* @__PURE__ */ jsx25(
|
|
2127
2275
|
"path",
|
|
2128
2276
|
{
|
|
2129
2277
|
d: "M74.4 12.4805H31.2C27.2235 12.4805 24 15.704 24 19.6805V56.1605C24 60.1369 27.2235 63.3605 31.2 63.3605H74.4C78.3764 63.3605 81.6 60.1369 81.6 56.1605V19.6805C81.6 15.704 78.3764 12.4805 74.4 12.4805Z",
|
|
2130
2278
|
fill: "white"
|
|
2131
2279
|
}
|
|
2132
2280
|
) }),
|
|
2133
|
-
/* @__PURE__ */
|
|
2281
|
+
/* @__PURE__ */ jsx25("g", { filter: "url(#filter1_sv_empty)", children: /* @__PURE__ */ jsx25(
|
|
2134
2282
|
"path",
|
|
2135
2283
|
{
|
|
2136
2284
|
d: "M66.7203 20.1602H23.5203C19.5439 20.1602 16.3203 23.3837 16.3203 27.3602V63.8402C16.3203 67.8166 19.5439 71.0402 23.5203 71.0402H66.7203C70.6968 71.0402 73.9203 67.8166 73.9203 63.8402V27.3602C73.9203 23.3837 70.6968 20.1602 66.7203 20.1602Z",
|
|
2137
2285
|
fill: "white"
|
|
2138
2286
|
}
|
|
2139
2287
|
) }),
|
|
2140
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ jsx25(
|
|
2141
2289
|
"path",
|
|
2142
2290
|
{
|
|
2143
2291
|
opacity: "0.5",
|
|
@@ -2145,7 +2293,7 @@ function EmptyIllustration() {
|
|
|
2145
2293
|
fill: "#DDE9F5"
|
|
2146
2294
|
}
|
|
2147
2295
|
),
|
|
2148
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ jsx25(
|
|
2149
2297
|
"path",
|
|
2150
2298
|
{
|
|
2151
2299
|
opacity: "0.5",
|
|
@@ -2153,14 +2301,14 @@ function EmptyIllustration() {
|
|
|
2153
2301
|
fill: "#DDE9F5"
|
|
2154
2302
|
}
|
|
2155
2303
|
),
|
|
2156
|
-
/* @__PURE__ */
|
|
2304
|
+
/* @__PURE__ */ jsx25("g", { filter: "url(#filter2_sv_empty)", children: /* @__PURE__ */ jsx25(
|
|
2157
2305
|
"path",
|
|
2158
2306
|
{
|
|
2159
2307
|
d: "M67.2002 79.2013C74.3578 79.2013 80.1602 73.3989 80.1602 66.2413C80.1602 59.0836 74.3578 53.2812 67.2002 53.2812C60.0426 53.2812 54.2402 59.0836 54.2402 66.2413C54.2402 73.3989 60.0426 79.2013 67.2002 79.2013Z",
|
|
2160
2308
|
fill: "#2563EB"
|
|
2161
2309
|
}
|
|
2162
2310
|
) }),
|
|
2163
|
-
/* @__PURE__ */
|
|
2311
|
+
/* @__PURE__ */ jsx25(
|
|
2164
2312
|
"path",
|
|
2165
2313
|
{
|
|
2166
2314
|
d: "M66 65.5V65C66 64.7348 66.1054 64.4804 66.2929 64.2929C66.4804 64.1054 66.7348 64 67 64C67.2652 64 67.5196 64.1054 67.7071 64.2929C67.8946 64.4804 68 64.7348 68 65V65.5C68 65.2348 68.1054 64.9804 68.2929 64.7929C68.4804 64.6054 68.7348 64.5 69 64.5C69.2652 64.5 69.5196 64.6054 69.7071 64.7929C69.8946 64.9804 70 65.2348 70 65.5V66C70 65.7348 70.1054 65.4804 70.2929 65.2929C70.4805 65.1054 70.7348 65 71.0001 65C71.2653 65 71.5196 65.1054 71.7072 65.2929C71.8947 65.4804 72.0001 65.7348 72.0001 66L72 67.5C72 68.5609 71.5786 69.5783 70.8284 70.3284C70.0783 71.0786 69.0609 71.5 68 71.5H67.0001C65.6001 71.5 64.7501 71.07 64.0051 70.33L62.2051 68.53C62.033 68.3395 61.9408 68.0901 61.9476 67.8335C61.9544 67.5769 62.0596 67.3327 62.2414 67.1515C62.4232 66.9703 62.6678 66.866 62.9244 66.8601C63.1811 66.8542 63.4301 66.9473 63.6201 67.12L64.5001 68M66 65.25V62.5C66 62.2348 65.8946 61.9804 65.7071 61.7929C65.5196 61.6054 65.2652 61.5 65 61.5C64.7348 61.5 64.4804 61.6054 64.2929 61.7929C64.1054 61.9804 64 62.2348 64 62.5V67.5",
|
|
@@ -2169,7 +2317,7 @@ function EmptyIllustration() {
|
|
|
2169
2317
|
strokeLinejoin: "round"
|
|
2170
2318
|
}
|
|
2171
2319
|
),
|
|
2172
|
-
/* @__PURE__ */
|
|
2320
|
+
/* @__PURE__ */ jsx25(
|
|
2173
2321
|
"path",
|
|
2174
2322
|
{
|
|
2175
2323
|
d: "M47 28.5V32.5C47 33.0304 47.2107 33.5391 47.5858 33.9142C47.9609 34.2893 48.4696 34.5 49 34.5H53M43 35.5H41M49 39.5H41M49 43.5H41M48 28.5H39C38.4696 28.5 37.9609 28.7107 37.5858 29.0858C37.2107 29.4609 37 29.9696 37 30.5V46.5C37 47.0304 37.2107 47.5391 37.5858 47.9142C37.9609 48.2893 38.4696 48.5 39 48.5H51C51.5304 48.5 52.0391 48.2893 52.4142 47.9142C52.7893 47.5391 53 47.0304 53 46.5V33.5L48 28.5Z",
|
|
@@ -2180,8 +2328,8 @@ function EmptyIllustration() {
|
|
|
2180
2328
|
}
|
|
2181
2329
|
)
|
|
2182
2330
|
] }),
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ jsxs20("defs", { children: [
|
|
2332
|
+
/* @__PURE__ */ jsxs20(
|
|
2185
2333
|
"filter",
|
|
2186
2334
|
{
|
|
2187
2335
|
id: "filter0_sv_empty",
|
|
@@ -2192,8 +2340,8 @@ function EmptyIllustration() {
|
|
|
2192
2340
|
filterUnits: "userSpaceOnUse",
|
|
2193
2341
|
colorInterpolationFilters: "sRGB",
|
|
2194
2342
|
children: [
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2344
|
+
/* @__PURE__ */ jsx25(
|
|
2197
2345
|
"feColorMatrix",
|
|
2198
2346
|
{
|
|
2199
2347
|
in: "SourceAlpha",
|
|
@@ -2202,7 +2350,7 @@ function EmptyIllustration() {
|
|
|
2202
2350
|
result: "hardAlpha"
|
|
2203
2351
|
}
|
|
2204
2352
|
),
|
|
2205
|
-
/* @__PURE__ */
|
|
2353
|
+
/* @__PURE__ */ jsx25(
|
|
2206
2354
|
"feMorphology",
|
|
2207
2355
|
{
|
|
2208
2356
|
radius: "1",
|
|
@@ -2211,17 +2359,17 @@ function EmptyIllustration() {
|
|
|
2211
2359
|
result: "effect1_dropShadow"
|
|
2212
2360
|
}
|
|
2213
2361
|
),
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2362
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2363
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2364
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2365
|
+
/* @__PURE__ */ jsx25(
|
|
2218
2366
|
"feColorMatrix",
|
|
2219
2367
|
{
|
|
2220
2368
|
type: "matrix",
|
|
2221
2369
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2222
2370
|
}
|
|
2223
2371
|
),
|
|
2224
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx25(
|
|
2225
2373
|
"feBlend",
|
|
2226
2374
|
{
|
|
2227
2375
|
mode: "normal",
|
|
@@ -2229,7 +2377,7 @@ function EmptyIllustration() {
|
|
|
2229
2377
|
result: "effect1_dropShadow"
|
|
2230
2378
|
}
|
|
2231
2379
|
),
|
|
2232
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ jsx25(
|
|
2233
2381
|
"feColorMatrix",
|
|
2234
2382
|
{
|
|
2235
2383
|
in: "SourceAlpha",
|
|
@@ -2238,17 +2386,17 @@ function EmptyIllustration() {
|
|
|
2238
2386
|
result: "hardAlpha"
|
|
2239
2387
|
}
|
|
2240
2388
|
),
|
|
2241
|
-
/* @__PURE__ */
|
|
2242
|
-
/* @__PURE__ */
|
|
2243
|
-
/* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2390
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2391
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2392
|
+
/* @__PURE__ */ jsx25(
|
|
2245
2393
|
"feColorMatrix",
|
|
2246
2394
|
{
|
|
2247
2395
|
type: "matrix",
|
|
2248
2396
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2249
2397
|
}
|
|
2250
2398
|
),
|
|
2251
|
-
/* @__PURE__ */
|
|
2399
|
+
/* @__PURE__ */ jsx25(
|
|
2252
2400
|
"feBlend",
|
|
2253
2401
|
{
|
|
2254
2402
|
mode: "normal",
|
|
@@ -2256,7 +2404,7 @@ function EmptyIllustration() {
|
|
|
2256
2404
|
result: "effect2_dropShadow"
|
|
2257
2405
|
}
|
|
2258
2406
|
),
|
|
2259
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ jsx25(
|
|
2260
2408
|
"feBlend",
|
|
2261
2409
|
{
|
|
2262
2410
|
mode: "normal",
|
|
@@ -2268,7 +2416,7 @@ function EmptyIllustration() {
|
|
|
2268
2416
|
]
|
|
2269
2417
|
}
|
|
2270
2418
|
),
|
|
2271
|
-
/* @__PURE__ */
|
|
2419
|
+
/* @__PURE__ */ jsxs20(
|
|
2272
2420
|
"filter",
|
|
2273
2421
|
{
|
|
2274
2422
|
id: "filter1_sv_empty",
|
|
@@ -2279,8 +2427,8 @@ function EmptyIllustration() {
|
|
|
2279
2427
|
filterUnits: "userSpaceOnUse",
|
|
2280
2428
|
colorInterpolationFilters: "sRGB",
|
|
2281
2429
|
children: [
|
|
2282
|
-
/* @__PURE__ */
|
|
2283
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2431
|
+
/* @__PURE__ */ jsx25(
|
|
2284
2432
|
"feColorMatrix",
|
|
2285
2433
|
{
|
|
2286
2434
|
in: "SourceAlpha",
|
|
@@ -2289,7 +2437,7 @@ function EmptyIllustration() {
|
|
|
2289
2437
|
result: "hardAlpha"
|
|
2290
2438
|
}
|
|
2291
2439
|
),
|
|
2292
|
-
/* @__PURE__ */
|
|
2440
|
+
/* @__PURE__ */ jsx25(
|
|
2293
2441
|
"feMorphology",
|
|
2294
2442
|
{
|
|
2295
2443
|
radius: "1",
|
|
@@ -2298,17 +2446,17 @@ function EmptyIllustration() {
|
|
|
2298
2446
|
result: "effect1_dropShadow"
|
|
2299
2447
|
}
|
|
2300
2448
|
),
|
|
2301
|
-
/* @__PURE__ */
|
|
2302
|
-
/* @__PURE__ */
|
|
2303
|
-
/* @__PURE__ */
|
|
2304
|
-
/* @__PURE__ */
|
|
2449
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2450
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2451
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2452
|
+
/* @__PURE__ */ jsx25(
|
|
2305
2453
|
"feColorMatrix",
|
|
2306
2454
|
{
|
|
2307
2455
|
type: "matrix",
|
|
2308
2456
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2309
2457
|
}
|
|
2310
2458
|
),
|
|
2311
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ jsx25(
|
|
2312
2460
|
"feBlend",
|
|
2313
2461
|
{
|
|
2314
2462
|
mode: "normal",
|
|
@@ -2316,7 +2464,7 @@ function EmptyIllustration() {
|
|
|
2316
2464
|
result: "effect1_dropShadow"
|
|
2317
2465
|
}
|
|
2318
2466
|
),
|
|
2319
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ jsx25(
|
|
2320
2468
|
"feColorMatrix",
|
|
2321
2469
|
{
|
|
2322
2470
|
in: "SourceAlpha",
|
|
@@ -2325,17 +2473,17 @@ function EmptyIllustration() {
|
|
|
2325
2473
|
result: "hardAlpha"
|
|
2326
2474
|
}
|
|
2327
2475
|
),
|
|
2328
|
-
/* @__PURE__ */
|
|
2329
|
-
/* @__PURE__ */
|
|
2330
|
-
/* @__PURE__ */
|
|
2331
|
-
/* @__PURE__ */
|
|
2476
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2477
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2478
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2479
|
+
/* @__PURE__ */ jsx25(
|
|
2332
2480
|
"feColorMatrix",
|
|
2333
2481
|
{
|
|
2334
2482
|
type: "matrix",
|
|
2335
2483
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2336
2484
|
}
|
|
2337
2485
|
),
|
|
2338
|
-
/* @__PURE__ */
|
|
2486
|
+
/* @__PURE__ */ jsx25(
|
|
2339
2487
|
"feBlend",
|
|
2340
2488
|
{
|
|
2341
2489
|
mode: "normal",
|
|
@@ -2343,7 +2491,7 @@ function EmptyIllustration() {
|
|
|
2343
2491
|
result: "effect2_dropShadow"
|
|
2344
2492
|
}
|
|
2345
2493
|
),
|
|
2346
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsx25(
|
|
2347
2495
|
"feBlend",
|
|
2348
2496
|
{
|
|
2349
2497
|
mode: "normal",
|
|
@@ -2355,7 +2503,7 @@ function EmptyIllustration() {
|
|
|
2355
2503
|
]
|
|
2356
2504
|
}
|
|
2357
2505
|
),
|
|
2358
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ jsxs20(
|
|
2359
2507
|
"filter",
|
|
2360
2508
|
{
|
|
2361
2509
|
id: "filter2_sv_empty",
|
|
@@ -2366,8 +2514,8 @@ function EmptyIllustration() {
|
|
|
2366
2514
|
filterUnits: "userSpaceOnUse",
|
|
2367
2515
|
colorInterpolationFilters: "sRGB",
|
|
2368
2516
|
children: [
|
|
2369
|
-
/* @__PURE__ */
|
|
2370
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2518
|
+
/* @__PURE__ */ jsx25(
|
|
2371
2519
|
"feColorMatrix",
|
|
2372
2520
|
{
|
|
2373
2521
|
in: "SourceAlpha",
|
|
@@ -2376,7 +2524,7 @@ function EmptyIllustration() {
|
|
|
2376
2524
|
result: "hardAlpha"
|
|
2377
2525
|
}
|
|
2378
2526
|
),
|
|
2379
|
-
/* @__PURE__ */
|
|
2527
|
+
/* @__PURE__ */ jsx25(
|
|
2380
2528
|
"feMorphology",
|
|
2381
2529
|
{
|
|
2382
2530
|
radius: "1",
|
|
@@ -2385,17 +2533,17 @@ function EmptyIllustration() {
|
|
|
2385
2533
|
result: "effect1_dropShadow"
|
|
2386
2534
|
}
|
|
2387
2535
|
),
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
/* @__PURE__ */
|
|
2391
|
-
/* @__PURE__ */
|
|
2536
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2537
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2538
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2539
|
+
/* @__PURE__ */ jsx25(
|
|
2392
2540
|
"feColorMatrix",
|
|
2393
2541
|
{
|
|
2394
2542
|
type: "matrix",
|
|
2395
2543
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2396
2544
|
}
|
|
2397
2545
|
),
|
|
2398
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ jsx25(
|
|
2399
2547
|
"feBlend",
|
|
2400
2548
|
{
|
|
2401
2549
|
mode: "normal",
|
|
@@ -2403,7 +2551,7 @@ function EmptyIllustration() {
|
|
|
2403
2551
|
result: "effect1_dropShadow"
|
|
2404
2552
|
}
|
|
2405
2553
|
),
|
|
2406
|
-
/* @__PURE__ */
|
|
2554
|
+
/* @__PURE__ */ jsx25(
|
|
2407
2555
|
"feColorMatrix",
|
|
2408
2556
|
{
|
|
2409
2557
|
in: "SourceAlpha",
|
|
@@ -2412,17 +2560,17 @@ function EmptyIllustration() {
|
|
|
2412
2560
|
result: "hardAlpha"
|
|
2413
2561
|
}
|
|
2414
2562
|
),
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
/* @__PURE__ */
|
|
2418
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2564
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2565
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2566
|
+
/* @__PURE__ */ jsx25(
|
|
2419
2567
|
"feColorMatrix",
|
|
2420
2568
|
{
|
|
2421
2569
|
type: "matrix",
|
|
2422
2570
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2423
2571
|
}
|
|
2424
2572
|
),
|
|
2425
|
-
/* @__PURE__ */
|
|
2573
|
+
/* @__PURE__ */ jsx25(
|
|
2426
2574
|
"feBlend",
|
|
2427
2575
|
{
|
|
2428
2576
|
mode: "normal",
|
|
@@ -2430,7 +2578,7 @@ function EmptyIllustration() {
|
|
|
2430
2578
|
result: "effect2_dropShadow"
|
|
2431
2579
|
}
|
|
2432
2580
|
),
|
|
2433
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ jsx25(
|
|
2434
2582
|
"feBlend",
|
|
2435
2583
|
{
|
|
2436
2584
|
mode: "normal",
|
|
@@ -2442,54 +2590,54 @@ function EmptyIllustration() {
|
|
|
2442
2590
|
]
|
|
2443
2591
|
}
|
|
2444
2592
|
),
|
|
2445
|
-
/* @__PURE__ */
|
|
2593
|
+
/* @__PURE__ */ jsx25("clipPath", { id: "clip0_sv_empty", children: /* @__PURE__ */ jsx25("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2446
2594
|
] })
|
|
2447
2595
|
] });
|
|
2448
2596
|
}
|
|
2449
2597
|
|
|
2450
2598
|
// src/widgets/states/EmptyState.tsx
|
|
2451
|
-
import { jsx as
|
|
2599
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2452
2600
|
function EmptyState() {
|
|
2453
|
-
return /* @__PURE__ */
|
|
2454
|
-
/* @__PURE__ */
|
|
2455
|
-
/* @__PURE__ */
|
|
2456
|
-
/* @__PURE__ */
|
|
2457
|
-
/* @__PURE__ */
|
|
2601
|
+
return /* @__PURE__ */ jsxs21("div", { className: "mr-sv__empty", children: [
|
|
2602
|
+
/* @__PURE__ */ jsx26(EmptyIllustration, {}),
|
|
2603
|
+
/* @__PURE__ */ jsxs21("div", { className: "mr-sv__empty-text", children: [
|
|
2604
|
+
/* @__PURE__ */ jsx26(Typography_default, { variant: "heading", children: "Select a record or search" }),
|
|
2605
|
+
/* @__PURE__ */ jsx26(Typography_default, { variant: "muted", children: "Pick a record on the left to see its vitals or use the search bar." })
|
|
2458
2606
|
] })
|
|
2459
2607
|
] });
|
|
2460
2608
|
}
|
|
2461
2609
|
|
|
2462
2610
|
// src/widgets/states/TabLoadError.tsx
|
|
2463
|
-
import { useState as
|
|
2611
|
+
import { useState as useState8 } from "react";
|
|
2464
2612
|
import { RotateCcw } from "lucide-react";
|
|
2465
2613
|
|
|
2466
2614
|
// src/illustrations/error.tsx
|
|
2467
|
-
import { jsx as
|
|
2615
|
+
import { jsx as jsx27, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2468
2616
|
function ErrorIllustration() {
|
|
2469
|
-
return /* @__PURE__ */
|
|
2470
|
-
/* @__PURE__ */
|
|
2471
|
-
/* @__PURE__ */
|
|
2617
|
+
return /* @__PURE__ */ jsxs22("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
2618
|
+
/* @__PURE__ */ jsxs22("g", { clipPath: "url(#clip0_sv_terr)", children: [
|
|
2619
|
+
/* @__PURE__ */ jsx27(
|
|
2472
2620
|
"path",
|
|
2473
2621
|
{
|
|
2474
2622
|
d: "M73.92 0H22.08C9.88555 0 0 9.88555 0 22.08V73.92C0 86.1144 9.88555 96 22.08 96H73.92C86.1144 96 96 86.1144 96 73.92V22.08C96 9.88555 86.1144 0 73.92 0Z",
|
|
2475
2623
|
fill: "#FFEBED"
|
|
2476
2624
|
}
|
|
2477
2625
|
),
|
|
2478
|
-
/* @__PURE__ */
|
|
2626
|
+
/* @__PURE__ */ jsx27("g", { opacity: "0.75", filter: "url(#filter0_sv_terr)", children: /* @__PURE__ */ jsx27(
|
|
2479
2627
|
"path",
|
|
2480
2628
|
{
|
|
2481
2629
|
d: "M73.0797 15H29.8797C25.9032 15 22.6797 18.2235 22.6797 22.2V58.68C22.6797 62.6565 25.9032 65.88 29.8797 65.88H73.0797C77.0561 65.88 80.2797 62.6565 80.2797 58.68V22.2C80.2797 18.2235 77.0561 15 73.0797 15Z",
|
|
2482
2630
|
fill: "white"
|
|
2483
2631
|
}
|
|
2484
2632
|
) }),
|
|
2485
|
-
/* @__PURE__ */
|
|
2633
|
+
/* @__PURE__ */ jsx27("g", { filter: "url(#filter1_sv_terr)", children: /* @__PURE__ */ jsx27(
|
|
2486
2634
|
"path",
|
|
2487
2635
|
{
|
|
2488
2636
|
d: "M65.4 22.6797H22.2C18.2235 22.6797 15 25.9032 15 29.8797V66.3597C15 70.3361 18.2235 73.5597 22.2 73.5597H65.4C69.3764 73.5597 72.6 70.3361 72.6 66.3597V29.8797C72.6 25.9032 69.3764 22.6797 65.4 22.6797Z",
|
|
2489
2637
|
fill: "white"
|
|
2490
2638
|
}
|
|
2491
2639
|
) }),
|
|
2492
|
-
/* @__PURE__ */
|
|
2640
|
+
/* @__PURE__ */ jsx27(
|
|
2493
2641
|
"path",
|
|
2494
2642
|
{
|
|
2495
2643
|
d: "M43.7998 33.7188V40.4387",
|
|
@@ -2498,14 +2646,14 @@ function ErrorIllustration() {
|
|
|
2498
2646
|
strokeLinecap: "round"
|
|
2499
2647
|
}
|
|
2500
2648
|
),
|
|
2501
|
-
/* @__PURE__ */
|
|
2649
|
+
/* @__PURE__ */ jsx27(
|
|
2502
2650
|
"path",
|
|
2503
2651
|
{
|
|
2504
2652
|
d: "M43.8001 46.4381C44.728 46.4381 45.4801 45.686 45.4801 44.7581C45.4801 43.8303 44.728 43.0781 43.8001 43.0781C42.8723 43.0781 42.1201 43.8303 42.1201 44.7581C42.1201 45.686 42.8723 46.4381 43.8001 46.4381Z",
|
|
2505
2653
|
fill: "#EF4444"
|
|
2506
2654
|
}
|
|
2507
2655
|
),
|
|
2508
|
-
/* @__PURE__ */
|
|
2656
|
+
/* @__PURE__ */ jsx27(
|
|
2509
2657
|
"path",
|
|
2510
2658
|
{
|
|
2511
2659
|
opacity: "0.55",
|
|
@@ -2513,7 +2661,7 @@ function ErrorIllustration() {
|
|
|
2513
2661
|
fill: "#FECACA"
|
|
2514
2662
|
}
|
|
2515
2663
|
),
|
|
2516
|
-
/* @__PURE__ */
|
|
2664
|
+
/* @__PURE__ */ jsx27(
|
|
2517
2665
|
"path",
|
|
2518
2666
|
{
|
|
2519
2667
|
opacity: "0.55",
|
|
@@ -2521,14 +2669,14 @@ function ErrorIllustration() {
|
|
|
2521
2669
|
fill: "#FECACA"
|
|
2522
2670
|
}
|
|
2523
2671
|
),
|
|
2524
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ jsx27("g", { filter: "url(#filter2_sv_terr)", children: /* @__PURE__ */ jsx27(
|
|
2525
2673
|
"path",
|
|
2526
2674
|
{
|
|
2527
2675
|
d: "M65.6397 81.4395C72.7973 81.4395 78.5997 75.6371 78.5997 68.4795C78.5997 61.3219 72.7973 55.5195 65.6397 55.5195C58.4821 55.5195 52.6797 61.3219 52.6797 68.4795C52.6797 75.6371 58.4821 81.4395 65.6397 81.4395Z",
|
|
2528
2676
|
fill: "#DC2626"
|
|
2529
2677
|
}
|
|
2530
2678
|
) }),
|
|
2531
|
-
/* @__PURE__ */
|
|
2679
|
+
/* @__PURE__ */ jsx27(
|
|
2532
2680
|
"path",
|
|
2533
2681
|
{
|
|
2534
2682
|
d: "M59.6797 68.5195C59.6797 69.7062 60.0316 70.8663 60.6909 71.853C61.3502 72.8396 62.2872 73.6087 63.3836 74.0628C64.4799 74.5169 65.6863 74.6358 66.8502 74.4042C68.0141 74.1727 69.0832 73.6013 69.9223 72.7622C70.7614 71.9231 71.3329 70.854 71.5644 69.6901C71.7959 68.5262 71.6771 67.3198 71.223 66.2234C70.7688 65.1271 69.9998 64.19 69.0131 63.5307C68.0264 62.8714 66.8664 62.5195 65.6797 62.5195C64.0023 62.5258 62.3923 63.1803 61.1864 64.3462L59.6797 65.8529M63.013 65.8529H59.6797V62.5195",
|
|
@@ -2538,8 +2686,8 @@ function ErrorIllustration() {
|
|
|
2538
2686
|
}
|
|
2539
2687
|
)
|
|
2540
2688
|
] }),
|
|
2541
|
-
/* @__PURE__ */
|
|
2542
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ jsxs22("defs", { children: [
|
|
2690
|
+
/* @__PURE__ */ jsxs22(
|
|
2543
2691
|
"filter",
|
|
2544
2692
|
{
|
|
2545
2693
|
id: "filter0_sv_terr",
|
|
@@ -2550,8 +2698,8 @@ function ErrorIllustration() {
|
|
|
2550
2698
|
filterUnits: "userSpaceOnUse",
|
|
2551
2699
|
colorInterpolationFilters: "sRGB",
|
|
2552
2700
|
children: [
|
|
2553
|
-
/* @__PURE__ */
|
|
2554
|
-
/* @__PURE__ */
|
|
2701
|
+
/* @__PURE__ */ jsx27("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2702
|
+
/* @__PURE__ */ jsx27(
|
|
2555
2703
|
"feColorMatrix",
|
|
2556
2704
|
{
|
|
2557
2705
|
in: "SourceAlpha",
|
|
@@ -2560,7 +2708,7 @@ function ErrorIllustration() {
|
|
|
2560
2708
|
result: "hardAlpha"
|
|
2561
2709
|
}
|
|
2562
2710
|
),
|
|
2563
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ jsx27(
|
|
2564
2712
|
"feMorphology",
|
|
2565
2713
|
{
|
|
2566
2714
|
radius: "1",
|
|
@@ -2569,17 +2717,17 @@ function ErrorIllustration() {
|
|
|
2569
2717
|
result: "effect1_ds_sv_terr"
|
|
2570
2718
|
}
|
|
2571
2719
|
),
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
/* @__PURE__ */
|
|
2574
|
-
/* @__PURE__ */
|
|
2575
|
-
/* @__PURE__ */
|
|
2720
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2721
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1" }),
|
|
2722
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2723
|
+
/* @__PURE__ */ jsx27(
|
|
2576
2724
|
"feColorMatrix",
|
|
2577
2725
|
{
|
|
2578
2726
|
type: "matrix",
|
|
2579
2727
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2580
2728
|
}
|
|
2581
2729
|
),
|
|
2582
|
-
/* @__PURE__ */
|
|
2730
|
+
/* @__PURE__ */ jsx27(
|
|
2583
2731
|
"feBlend",
|
|
2584
2732
|
{
|
|
2585
2733
|
mode: "normal",
|
|
@@ -2587,7 +2735,7 @@ function ErrorIllustration() {
|
|
|
2587
2735
|
result: "effect1_ds_sv_terr"
|
|
2588
2736
|
}
|
|
2589
2737
|
),
|
|
2590
|
-
/* @__PURE__ */
|
|
2738
|
+
/* @__PURE__ */ jsx27(
|
|
2591
2739
|
"feColorMatrix",
|
|
2592
2740
|
{
|
|
2593
2741
|
in: "SourceAlpha",
|
|
@@ -2596,17 +2744,17 @@ function ErrorIllustration() {
|
|
|
2596
2744
|
result: "hardAlpha"
|
|
2597
2745
|
}
|
|
2598
2746
|
),
|
|
2599
|
-
/* @__PURE__ */
|
|
2600
|
-
/* @__PURE__ */
|
|
2601
|
-
/* @__PURE__ */
|
|
2602
|
-
/* @__PURE__ */
|
|
2747
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2748
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2749
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2750
|
+
/* @__PURE__ */ jsx27(
|
|
2603
2751
|
"feColorMatrix",
|
|
2604
2752
|
{
|
|
2605
2753
|
type: "matrix",
|
|
2606
2754
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2607
2755
|
}
|
|
2608
2756
|
),
|
|
2609
|
-
/* @__PURE__ */
|
|
2757
|
+
/* @__PURE__ */ jsx27(
|
|
2610
2758
|
"feBlend",
|
|
2611
2759
|
{
|
|
2612
2760
|
mode: "normal",
|
|
@@ -2614,7 +2762,7 @@ function ErrorIllustration() {
|
|
|
2614
2762
|
result: "effect2_ds_sv_terr"
|
|
2615
2763
|
}
|
|
2616
2764
|
),
|
|
2617
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ jsx27(
|
|
2618
2766
|
"feBlend",
|
|
2619
2767
|
{
|
|
2620
2768
|
mode: "normal",
|
|
@@ -2626,7 +2774,7 @@ function ErrorIllustration() {
|
|
|
2626
2774
|
]
|
|
2627
2775
|
}
|
|
2628
2776
|
),
|
|
2629
|
-
/* @__PURE__ */
|
|
2777
|
+
/* @__PURE__ */ jsxs22(
|
|
2630
2778
|
"filter",
|
|
2631
2779
|
{
|
|
2632
2780
|
id: "filter1_sv_terr",
|
|
@@ -2637,8 +2785,8 @@ function ErrorIllustration() {
|
|
|
2637
2785
|
filterUnits: "userSpaceOnUse",
|
|
2638
2786
|
colorInterpolationFilters: "sRGB",
|
|
2639
2787
|
children: [
|
|
2640
|
-
/* @__PURE__ */
|
|
2641
|
-
/* @__PURE__ */
|
|
2788
|
+
/* @__PURE__ */ jsx27("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2789
|
+
/* @__PURE__ */ jsx27(
|
|
2642
2790
|
"feColorMatrix",
|
|
2643
2791
|
{
|
|
2644
2792
|
in: "SourceAlpha",
|
|
@@ -2647,7 +2795,7 @@ function ErrorIllustration() {
|
|
|
2647
2795
|
result: "hardAlpha"
|
|
2648
2796
|
}
|
|
2649
2797
|
),
|
|
2650
|
-
/* @__PURE__ */
|
|
2798
|
+
/* @__PURE__ */ jsx27(
|
|
2651
2799
|
"feMorphology",
|
|
2652
2800
|
{
|
|
2653
2801
|
radius: "1",
|
|
@@ -2656,17 +2804,17 @@ function ErrorIllustration() {
|
|
|
2656
2804
|
result: "effect1_ds_sv_terr"
|
|
2657
2805
|
}
|
|
2658
2806
|
),
|
|
2659
|
-
/* @__PURE__ */
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
/* @__PURE__ */
|
|
2662
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2808
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1" }),
|
|
2809
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2810
|
+
/* @__PURE__ */ jsx27(
|
|
2663
2811
|
"feColorMatrix",
|
|
2664
2812
|
{
|
|
2665
2813
|
type: "matrix",
|
|
2666
2814
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2667
2815
|
}
|
|
2668
2816
|
),
|
|
2669
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ jsx27(
|
|
2670
2818
|
"feBlend",
|
|
2671
2819
|
{
|
|
2672
2820
|
mode: "normal",
|
|
@@ -2674,7 +2822,7 @@ function ErrorIllustration() {
|
|
|
2674
2822
|
result: "effect1_ds_sv_terr"
|
|
2675
2823
|
}
|
|
2676
2824
|
),
|
|
2677
|
-
/* @__PURE__ */
|
|
2825
|
+
/* @__PURE__ */ jsx27(
|
|
2678
2826
|
"feColorMatrix",
|
|
2679
2827
|
{
|
|
2680
2828
|
in: "SourceAlpha",
|
|
@@ -2683,17 +2831,17 @@ function ErrorIllustration() {
|
|
|
2683
2831
|
result: "hardAlpha"
|
|
2684
2832
|
}
|
|
2685
2833
|
),
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2835
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2836
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2837
|
+
/* @__PURE__ */ jsx27(
|
|
2690
2838
|
"feColorMatrix",
|
|
2691
2839
|
{
|
|
2692
2840
|
type: "matrix",
|
|
2693
2841
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2694
2842
|
}
|
|
2695
2843
|
),
|
|
2696
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ jsx27(
|
|
2697
2845
|
"feBlend",
|
|
2698
2846
|
{
|
|
2699
2847
|
mode: "normal",
|
|
@@ -2701,7 +2849,7 @@ function ErrorIllustration() {
|
|
|
2701
2849
|
result: "effect2_ds_sv_terr"
|
|
2702
2850
|
}
|
|
2703
2851
|
),
|
|
2704
|
-
/* @__PURE__ */
|
|
2852
|
+
/* @__PURE__ */ jsx27(
|
|
2705
2853
|
"feBlend",
|
|
2706
2854
|
{
|
|
2707
2855
|
mode: "normal",
|
|
@@ -2713,7 +2861,7 @@ function ErrorIllustration() {
|
|
|
2713
2861
|
]
|
|
2714
2862
|
}
|
|
2715
2863
|
),
|
|
2716
|
-
/* @__PURE__ */
|
|
2864
|
+
/* @__PURE__ */ jsxs22(
|
|
2717
2865
|
"filter",
|
|
2718
2866
|
{
|
|
2719
2867
|
id: "filter2_sv_terr",
|
|
@@ -2724,8 +2872,8 @@ function ErrorIllustration() {
|
|
|
2724
2872
|
filterUnits: "userSpaceOnUse",
|
|
2725
2873
|
colorInterpolationFilters: "sRGB",
|
|
2726
2874
|
children: [
|
|
2727
|
-
/* @__PURE__ */
|
|
2728
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ jsx27("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2876
|
+
/* @__PURE__ */ jsx27(
|
|
2729
2877
|
"feColorMatrix",
|
|
2730
2878
|
{
|
|
2731
2879
|
in: "SourceAlpha",
|
|
@@ -2734,7 +2882,7 @@ function ErrorIllustration() {
|
|
|
2734
2882
|
result: "hardAlpha"
|
|
2735
2883
|
}
|
|
2736
2884
|
),
|
|
2737
|
-
/* @__PURE__ */
|
|
2885
|
+
/* @__PURE__ */ jsx27(
|
|
2738
2886
|
"feMorphology",
|
|
2739
2887
|
{
|
|
2740
2888
|
radius: "1",
|
|
@@ -2743,17 +2891,17 @@ function ErrorIllustration() {
|
|
|
2743
2891
|
result: "effect1_ds_sv_terr"
|
|
2744
2892
|
}
|
|
2745
2893
|
),
|
|
2746
|
-
/* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */
|
|
2748
|
-
/* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */
|
|
2894
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2895
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1" }),
|
|
2896
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2897
|
+
/* @__PURE__ */ jsx27(
|
|
2750
2898
|
"feColorMatrix",
|
|
2751
2899
|
{
|
|
2752
2900
|
type: "matrix",
|
|
2753
2901
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2754
2902
|
}
|
|
2755
2903
|
),
|
|
2756
|
-
/* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ jsx27(
|
|
2757
2905
|
"feBlend",
|
|
2758
2906
|
{
|
|
2759
2907
|
mode: "normal",
|
|
@@ -2761,7 +2909,7 @@ function ErrorIllustration() {
|
|
|
2761
2909
|
result: "effect1_ds_sv_terr"
|
|
2762
2910
|
}
|
|
2763
2911
|
),
|
|
2764
|
-
/* @__PURE__ */
|
|
2912
|
+
/* @__PURE__ */ jsx27(
|
|
2765
2913
|
"feColorMatrix",
|
|
2766
2914
|
{
|
|
2767
2915
|
in: "SourceAlpha",
|
|
@@ -2770,17 +2918,17 @@ function ErrorIllustration() {
|
|
|
2770
2918
|
result: "hardAlpha"
|
|
2771
2919
|
}
|
|
2772
2920
|
),
|
|
2773
|
-
/* @__PURE__ */
|
|
2774
|
-
/* @__PURE__ */
|
|
2775
|
-
/* @__PURE__ */
|
|
2776
|
-
/* @__PURE__ */
|
|
2921
|
+
/* @__PURE__ */ jsx27("feOffset", { dy: "1" }),
|
|
2922
|
+
/* @__PURE__ */ jsx27("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2923
|
+
/* @__PURE__ */ jsx27("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2924
|
+
/* @__PURE__ */ jsx27(
|
|
2777
2925
|
"feColorMatrix",
|
|
2778
2926
|
{
|
|
2779
2927
|
type: "matrix",
|
|
2780
2928
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2781
2929
|
}
|
|
2782
2930
|
),
|
|
2783
|
-
/* @__PURE__ */
|
|
2931
|
+
/* @__PURE__ */ jsx27(
|
|
2784
2932
|
"feBlend",
|
|
2785
2933
|
{
|
|
2786
2934
|
mode: "normal",
|
|
@@ -2788,7 +2936,7 @@ function ErrorIllustration() {
|
|
|
2788
2936
|
result: "effect2_ds_sv_terr"
|
|
2789
2937
|
}
|
|
2790
2938
|
),
|
|
2791
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ jsx27(
|
|
2792
2940
|
"feBlend",
|
|
2793
2941
|
{
|
|
2794
2942
|
mode: "normal",
|
|
@@ -2800,18 +2948,18 @@ function ErrorIllustration() {
|
|
|
2800
2948
|
]
|
|
2801
2949
|
}
|
|
2802
2950
|
),
|
|
2803
|
-
/* @__PURE__ */
|
|
2951
|
+
/* @__PURE__ */ jsx27("clipPath", { id: "clip0_sv_terr", children: /* @__PURE__ */ jsx27("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2804
2952
|
] })
|
|
2805
2953
|
] });
|
|
2806
2954
|
}
|
|
2807
2955
|
var error_default = ErrorIllustration;
|
|
2808
2956
|
|
|
2809
2957
|
// src/widgets/states/TabLoadError.tsx
|
|
2810
|
-
import { jsx as
|
|
2958
|
+
import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2811
2959
|
function TabLoadError({
|
|
2812
2960
|
onRetry
|
|
2813
2961
|
}) {
|
|
2814
|
-
const [retrying, setRetrying] =
|
|
2962
|
+
const [retrying, setRetrying] = useState8(false);
|
|
2815
2963
|
const handleRetry = async () => {
|
|
2816
2964
|
if (!onRetry || retrying) return;
|
|
2817
2965
|
setRetrying(true);
|
|
@@ -2822,13 +2970,13 @@ function TabLoadError({
|
|
|
2822
2970
|
setRetrying(false);
|
|
2823
2971
|
}
|
|
2824
2972
|
};
|
|
2825
|
-
return /* @__PURE__ */
|
|
2826
|
-
/* @__PURE__ */
|
|
2827
|
-
/* @__PURE__ */
|
|
2828
|
-
/* @__PURE__ */
|
|
2829
|
-
/* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsxs23("div", { className: "mr-sv__empty", children: [
|
|
2974
|
+
/* @__PURE__ */ jsx28(error_default, {}),
|
|
2975
|
+
/* @__PURE__ */ jsxs23("div", { className: "mr-sv__empty-text", children: [
|
|
2976
|
+
/* @__PURE__ */ jsx28(Typography_default, { variant: "heading", children: "Something went wrong" }),
|
|
2977
|
+
/* @__PURE__ */ jsx28(Typography_default, { variant: "muted", children: "We ran into an error when fetching records. Please retry or contact support if the problem persists." })
|
|
2830
2978
|
] }),
|
|
2831
|
-
onRetry && /* @__PURE__ */
|
|
2979
|
+
onRetry && /* @__PURE__ */ jsxs23(
|
|
2832
2980
|
"button",
|
|
2833
2981
|
{
|
|
2834
2982
|
type: "button",
|
|
@@ -2836,7 +2984,7 @@ function TabLoadError({
|
|
|
2836
2984
|
disabled: retrying,
|
|
2837
2985
|
onClick: handleRetry,
|
|
2838
2986
|
children: [
|
|
2839
|
-
/* @__PURE__ */
|
|
2987
|
+
/* @__PURE__ */ jsx28(
|
|
2840
2988
|
RotateCcw,
|
|
2841
2989
|
{
|
|
2842
2990
|
size: 16,
|
|
@@ -2859,7 +3007,6 @@ export {
|
|
|
2859
3007
|
CORE_SDK_AVAILABLE,
|
|
2860
3008
|
initWorkerClient,
|
|
2861
3009
|
getCore,
|
|
2862
|
-
isWorkerReady,
|
|
2863
3010
|
setAuthToken,
|
|
2864
3011
|
teardownWorkerClient,
|
|
2865
3012
|
logoutMedicalRecords,
|
|
@@ -2871,18 +3018,27 @@ export {
|
|
|
2871
3018
|
Skeleton,
|
|
2872
3019
|
Badge_default,
|
|
2873
3020
|
DateTile_default,
|
|
2874
|
-
|
|
2875
|
-
IconButton,
|
|
2876
|
-
FilterChip_default,
|
|
2877
|
-
SidebarItem_default,
|
|
3021
|
+
Calendar_default,
|
|
2878
3022
|
CASE_TYPE_OPTIONS,
|
|
2879
3023
|
ACCEPTED_FILE_TYPES,
|
|
2880
|
-
|
|
2881
|
-
fileToQueueItem,
|
|
3024
|
+
DATE_PRESET_OPTIONS,
|
|
2882
3025
|
todayISO,
|
|
2883
3026
|
fileKey,
|
|
2884
3027
|
formatFileSize,
|
|
2885
3028
|
epochToDisplay,
|
|
3029
|
+
presetRange,
|
|
3030
|
+
presetLabel,
|
|
3031
|
+
customRangeLabel,
|
|
3032
|
+
dateInputToEpoch,
|
|
3033
|
+
endOfDay,
|
|
3034
|
+
epochToDateInput,
|
|
3035
|
+
DateField_default,
|
|
3036
|
+
Tooltip,
|
|
3037
|
+
IconButton,
|
|
3038
|
+
FilterChip_default,
|
|
3039
|
+
SidebarItem_default,
|
|
3040
|
+
documentItemToUi,
|
|
3041
|
+
fileToQueueItem,
|
|
2886
3042
|
useCasesConnection,
|
|
2887
3043
|
PresetSelect,
|
|
2888
3044
|
CasePicker_default,
|
|
@@ -2897,4 +3053,4 @@ export {
|
|
|
2897
3053
|
EmptyState,
|
|
2898
3054
|
TabLoadError
|
|
2899
3055
|
};
|
|
2900
|
-
//# sourceMappingURL=chunk-
|
|
3056
|
+
//# sourceMappingURL=chunk-6EN4LTIT.mjs.map
|