@eka-care/medical-records-ui 1.1.2 → 1.2.2
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-RJOJBAWO.mjs → OriginalRecordPanel-AUP6VLET.mjs} +8 -8
- package/dist/{OriginalRecordPanel-FNPO366E.js → OriginalRecordPanel-SFWXUBXU.js} +25 -25
- package/dist/{OriginalRecordPanel-FNPO366E.js.map → OriginalRecordPanel-SFWXUBXU.js.map} +1 -1
- package/dist/{SmartUploadModal-5ZMGXEKD.mjs → SmartUploadModal-HKQCKBS5.mjs} +3 -3
- package/dist/SmartUploadModal-PAQGNH3C.js +11 -0
- package/dist/{SmartUploadModal-QR7P7NNS.js.map → SmartUploadModal-PAQGNH3C.js.map} +1 -1
- package/dist/VisitDayPanel-CHYCA3SZ.mjs +17 -0
- package/dist/VisitDayPanel-M5DMZSRU.js +17 -0
- package/dist/VisitDayPanel-M5DMZSRU.js.map +1 -0
- package/dist/VisitOriginalPanel-F5RCWGHG.js +12 -0
- package/dist/{VisitOriginalPanel-YT4MBCCZ.js.map → VisitOriginalPanel-F5RCWGHG.js.map} +1 -1
- package/dist/VisitOriginalPanel-UQBFTG76.mjs +12 -0
- package/dist/VisitRecordPanel-MLIDU4M5.js +13 -0
- package/dist/{VisitRecordPanel-K65UXFIO.js.map → VisitRecordPanel-MLIDU4M5.js.map} +1 -1
- package/dist/VisitRecordPanel-YVLIJOQV.mjs +13 -0
- package/dist/VitalHistoryPanel-OQYGCHDW.mjs +14 -0
- package/dist/VitalHistoryPanel-S6KUHCK4.js +14 -0
- package/dist/VitalHistoryPanel-S6KUHCK4.js.map +1 -0
- package/dist/{chunk-3SRQS62J.js → chunk-3Z6JIL3A.js} +9 -36
- package/dist/chunk-3Z6JIL3A.js.map +1 -0
- package/dist/chunk-6APN3BLJ.mjs +1067 -0
- package/dist/chunk-6APN3BLJ.mjs.map +1 -0
- package/dist/chunk-7TCJUFMK.js +1067 -0
- package/dist/chunk-7TCJUFMK.js.map +1 -0
- package/dist/{chunk-KRHLIXZT.js → chunk-7VCJAGOR.js} +21 -21
- package/dist/{chunk-KRHLIXZT.js.map → chunk-7VCJAGOR.js.map} +1 -1
- package/dist/{chunk-LOQUQSRF.mjs → chunk-AYUXXGPV.mjs} +355 -340
- package/dist/chunk-AYUXXGPV.mjs.map +1 -0
- package/dist/{chunk-B4WXWTGZ.mjs → chunk-BDCKJUPC.mjs} +2 -2
- package/dist/{chunk-WAODIWKW.mjs → chunk-BVOZVBTG.mjs} +5 -5
- package/dist/chunk-BVOZVBTG.mjs.map +1 -0
- package/dist/chunk-COAFLW4O.js +36 -0
- package/dist/chunk-COAFLW4O.js.map +1 -0
- package/dist/{chunk-Z2GVLZNU.mjs → chunk-CQYOLK77.mjs} +7 -5
- package/dist/{chunk-Z2GVLZNU.mjs.map → chunk-CQYOLK77.mjs.map} +1 -1
- package/dist/{chunk-ORUXK4R3.mjs → chunk-GAB2FVV2.mjs} +1 -1
- package/dist/chunk-GAB2FVV2.mjs.map +1 -0
- package/dist/chunk-JIBO2OH3.mjs +36 -0
- package/dist/chunk-JIBO2OH3.mjs.map +1 -0
- package/dist/{chunk-3VUQSZYC.mjs → chunk-JMTPJPSF.mjs} +9 -36
- package/dist/chunk-JMTPJPSF.mjs.map +1 -0
- package/dist/{chunk-KTUSTTBO.js → chunk-KCEHGEHV.js} +1 -1
- package/dist/chunk-KCEHGEHV.js.map +1 -0
- package/dist/{chunk-2YRSRC3L.mjs → chunk-KIC2MTOE.mjs} +3 -3
- package/dist/{chunk-YZWWBBEB.js → chunk-L5BDCHZM.js} +21 -21
- package/dist/chunk-L5BDCHZM.js.map +1 -0
- package/dist/{chunk-6H66NMA5.js → chunk-MVWFPQXZ.js} +39 -2
- package/dist/chunk-MVWFPQXZ.js.map +1 -0
- package/dist/{chunk-WVDUZPBO.js → chunk-PMB6SGPM.js} +13 -13
- package/dist/{chunk-WVDUZPBO.js.map → chunk-PMB6SGPM.js.map} +1 -1
- package/dist/{chunk-BITCJRX6.js → chunk-TAUICEVA.js} +17 -2
- package/dist/chunk-TAUICEVA.js.map +1 -0
- package/dist/{chunk-SGBLNZK3.mjs → chunk-UEAMBR6N.mjs} +38 -1
- package/dist/chunk-UEAMBR6N.mjs.map +1 -0
- package/dist/{chunk-PTHDPF47.js → chunk-YMGWHNBK.js} +17 -15
- package/dist/chunk-YMGWHNBK.js.map +1 -0
- package/dist/index.css +64 -37
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +264 -1272
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +461 -1469
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +64 -37
- package/dist/styles.css.map +1 -1
- package/dist/{widgets-EG67R3LP.mjs → widgets-DBIDTSKI.mjs} +4 -2
- package/dist/widgets-QILBH4YE.js +47 -0
- package/dist/widgets-QILBH4YE.js.map +1 -0
- package/package.json +1 -1
- package/dist/SmartUploadModal-QR7P7NNS.js +0 -11
- package/dist/VisitDayPanel-OL2X6QBL.js +0 -15
- package/dist/VisitDayPanel-OL2X6QBL.js.map +0 -1
- package/dist/VisitDayPanel-QTTS7XXT.mjs +0 -15
- package/dist/VisitOriginalPanel-VPXAOQIF.mjs +0 -12
- package/dist/VisitOriginalPanel-YT4MBCCZ.js +0 -12
- package/dist/VisitRecordPanel-K65UXFIO.js +0 -13
- package/dist/VisitRecordPanel-QR7C2RRU.mjs +0 -13
- package/dist/VitalHistoryPanel-KYCLLJQF.mjs +0 -13
- package/dist/VitalHistoryPanel-WCQFFLL2.js +0 -13
- package/dist/VitalHistoryPanel-WCQFFLL2.js.map +0 -1
- package/dist/chunk-3SRQS62J.js.map +0 -1
- package/dist/chunk-3VUQSZYC.mjs.map +0 -1
- package/dist/chunk-6H66NMA5.js.map +0 -1
- package/dist/chunk-7QUBQ2O6.mjs +0 -42
- package/dist/chunk-7QUBQ2O6.mjs.map +0 -1
- package/dist/chunk-BCNRJCIT.js +0 -264
- package/dist/chunk-BCNRJCIT.js.map +0 -1
- package/dist/chunk-BITCJRX6.js.map +0 -1
- package/dist/chunk-KTUSTTBO.js.map +0 -1
- package/dist/chunk-LOQUQSRF.mjs.map +0 -1
- package/dist/chunk-ORUXK4R3.mjs.map +0 -1
- package/dist/chunk-PTHDPF47.js.map +0 -1
- package/dist/chunk-QZUO5TD4.mjs +0 -264
- package/dist/chunk-QZUO5TD4.mjs.map +0 -1
- package/dist/chunk-SGBLNZK3.mjs.map +0 -1
- package/dist/chunk-W2CNXZYT.js +0 -42
- package/dist/chunk-W2CNXZYT.js.map +0 -1
- package/dist/chunk-WAODIWKW.mjs.map +0 -1
- package/dist/chunk-YZWWBBEB.js.map +0 -1
- package/dist/widgets-5ZSFD7OJ.js +0 -45
- package/dist/widgets-5ZSFD7OJ.js.map +0 -1
- /package/dist/{OriginalRecordPanel-RJOJBAWO.mjs.map → OriginalRecordPanel-AUP6VLET.mjs.map} +0 -0
- /package/dist/{SmartUploadModal-5ZMGXEKD.mjs.map → SmartUploadModal-HKQCKBS5.mjs.map} +0 -0
- /package/dist/{VisitDayPanel-QTTS7XXT.mjs.map → VisitDayPanel-CHYCA3SZ.mjs.map} +0 -0
- /package/dist/{VisitOriginalPanel-VPXAOQIF.mjs.map → VisitOriginalPanel-UQBFTG76.mjs.map} +0 -0
- /package/dist/{VisitRecordPanel-QR7C2RRU.mjs.map → VisitRecordPanel-YVLIJOQV.mjs.map} +0 -0
- /package/dist/{VitalHistoryPanel-KYCLLJQF.mjs.map → VitalHistoryPanel-OQYGCHDW.mjs.map} +0 -0
- /package/dist/{chunk-B4WXWTGZ.mjs.map → chunk-BDCKJUPC.mjs.map} +0 -0
- /package/dist/{chunk-2YRSRC3L.mjs.map → chunk-KIC2MTOE.mjs.map} +0 -0
- /package/dist/{widgets-EG67R3LP.mjs.map → widgets-DBIDTSKI.mjs.map} +0 -0
|
@@ -190,15 +190,29 @@ var Badge = memo2(function Badge2({ variant, label }) {
|
|
|
190
190
|
});
|
|
191
191
|
var Badge_default = Badge;
|
|
192
192
|
|
|
193
|
+
// src/widgets/date-tile/DateTile.tsx
|
|
194
|
+
import { memo as memo3 } from "react";
|
|
195
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
196
|
+
var DateTile = memo3(function DateTile2({ epoch }) {
|
|
197
|
+
const date = new Date(epoch);
|
|
198
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
199
|
+
const weekday = date.toLocaleString("en", { weekday: "short" }).toUpperCase();
|
|
200
|
+
return /* @__PURE__ */ jsxs6("div", { className: "mr-date-tile", children: [
|
|
201
|
+
/* @__PURE__ */ jsx7("span", { className: "mr-date-tile__day", children: day }),
|
|
202
|
+
/* @__PURE__ */ jsx7("span", { className: "mr-sidebar-item__weekday", children: weekday })
|
|
203
|
+
] });
|
|
204
|
+
});
|
|
205
|
+
var DateTile_default = DateTile;
|
|
206
|
+
|
|
193
207
|
// src/widgets/tooltip/Tooltip.tsx
|
|
194
|
-
import { jsx as
|
|
208
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
195
209
|
function Tooltip({ content, children }) {
|
|
196
210
|
const tip = typeof content === "string" ? content : void 0;
|
|
197
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ jsx8("span", { className: "mr-tooltip", "data-tip": tip, tabIndex: 0, children });
|
|
198
212
|
}
|
|
199
213
|
|
|
200
214
|
// src/widgets/icon-button/IconButton.tsx
|
|
201
|
-
import { jsx as
|
|
215
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
202
216
|
function IconButton({
|
|
203
217
|
icon,
|
|
204
218
|
label,
|
|
@@ -219,25 +233,25 @@ function IconButton({
|
|
|
219
233
|
sublabel && "mr-sv__icon-btn--with-sublabel",
|
|
220
234
|
className
|
|
221
235
|
].filter(Boolean).join(" ");
|
|
222
|
-
const btn = /* @__PURE__ */
|
|
236
|
+
const btn = /* @__PURE__ */ jsxs7("button", { type: "button", "aria-label": label, className: cls, ...rest, children: [
|
|
223
237
|
icon,
|
|
224
|
-
sublabel && /* @__PURE__ */
|
|
238
|
+
sublabel && /* @__PURE__ */ jsx9("span", { className: "mr-sv__icon-btn__sublabel", children: sublabel })
|
|
225
239
|
] });
|
|
226
240
|
if (!tooltipContent) return btn;
|
|
227
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ jsx9(Tooltip, { content: tooltipContent, children: btn });
|
|
228
242
|
}
|
|
229
243
|
|
|
230
244
|
// src/widgets/filter-chip/FilterChip.tsx
|
|
231
|
-
import { memo as
|
|
232
|
-
import { jsx as
|
|
233
|
-
var FilterChip =
|
|
245
|
+
import { memo as memo4 } from "react";
|
|
246
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
247
|
+
var FilterChip = memo4(function FilterChip2({
|
|
234
248
|
id,
|
|
235
249
|
label,
|
|
236
250
|
count,
|
|
237
251
|
active,
|
|
238
252
|
onSelect
|
|
239
253
|
}) {
|
|
240
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ jsx10(
|
|
241
255
|
"button",
|
|
242
256
|
{
|
|
243
257
|
type: "button",
|
|
@@ -251,9 +265,9 @@ var FilterChip = memo3(function FilterChip2({
|
|
|
251
265
|
var FilterChip_default = FilterChip;
|
|
252
266
|
|
|
253
267
|
// src/widgets/sidebar-item/SidebarItem.tsx
|
|
254
|
-
import { memo as
|
|
255
|
-
import { jsx as
|
|
256
|
-
var SidebarItem =
|
|
268
|
+
import { memo as memo5 } from "react";
|
|
269
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
270
|
+
var SidebarItem = memo5(function SidebarItem2({
|
|
257
271
|
id,
|
|
258
272
|
dayNumber,
|
|
259
273
|
weekday,
|
|
@@ -262,7 +276,7 @@ var SidebarItem = memo4(function SidebarItem2({
|
|
|
262
276
|
selected,
|
|
263
277
|
onSelect
|
|
264
278
|
}) {
|
|
265
|
-
return /* @__PURE__ */
|
|
279
|
+
return /* @__PURE__ */ jsxs8(
|
|
266
280
|
"button",
|
|
267
281
|
{
|
|
268
282
|
type: "button",
|
|
@@ -270,15 +284,15 @@ var SidebarItem = memo4(function SidebarItem2({
|
|
|
270
284
|
"aria-pressed": selected,
|
|
271
285
|
onClick: () => onSelect(id),
|
|
272
286
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ jsxs8("span", { className: "mr-sidebar-item__date", children: [
|
|
288
|
+
/* @__PURE__ */ jsx11("span", { className: "mr-sidebar-item__day-num", children: dayNumber }),
|
|
289
|
+
/* @__PURE__ */ jsx11("span", { className: "mr-sidebar-item__weekday", children: weekday })
|
|
276
290
|
] }),
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ jsxs8("span", { className: "mr-sidebar-item__text", children: [
|
|
292
|
+
/* @__PURE__ */ jsx11("span", { className: "mr-sidebar-item__count", children: countLabel }),
|
|
293
|
+
/* @__PURE__ */ jsx11("span", { className: "mr-sidebar-item__summary", children: summary })
|
|
280
294
|
] }),
|
|
281
|
-
selected && /* @__PURE__ */
|
|
295
|
+
selected && /* @__PURE__ */ jsx11("span", { className: "mr-sidebar-item__indicator", "aria-hidden": true })
|
|
282
296
|
]
|
|
283
297
|
}
|
|
284
298
|
);
|
|
@@ -639,7 +653,7 @@ function useCasesConnection(enabled = true) {
|
|
|
639
653
|
import { useEffect as useEffect2, useRef as useRef2, useState } from "react";
|
|
640
654
|
import { createPortal } from "react-dom";
|
|
641
655
|
import { ChevronsUpDown, Check } from "lucide-react";
|
|
642
|
-
import { jsx as
|
|
656
|
+
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
643
657
|
var MENU_MAX_H = 240;
|
|
644
658
|
function PresetSelect({
|
|
645
659
|
value,
|
|
@@ -687,8 +701,8 @@ function PresetSelect({
|
|
|
687
701
|
window.removeEventListener("resize", onResize);
|
|
688
702
|
};
|
|
689
703
|
}, [open]);
|
|
690
|
-
return /* @__PURE__ */
|
|
691
|
-
/* @__PURE__ */
|
|
704
|
+
return /* @__PURE__ */ jsxs9("div", { className: "mr-preset-select", children: [
|
|
705
|
+
/* @__PURE__ */ jsxs9(
|
|
692
706
|
"button",
|
|
693
707
|
{
|
|
694
708
|
ref: fieldRef,
|
|
@@ -698,14 +712,14 @@ function PresetSelect({
|
|
|
698
712
|
"aria-expanded": open,
|
|
699
713
|
onClick: () => open ? setMenu(null) : place(),
|
|
700
714
|
children: [
|
|
701
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ jsx12(
|
|
702
716
|
"span",
|
|
703
717
|
{
|
|
704
718
|
className: `mr-preset-select__value${selected ? "" : " mr-preset-select__value--placeholder"}`,
|
|
705
719
|
children: selected?.label ?? placeholder ?? ""
|
|
706
720
|
}
|
|
707
721
|
),
|
|
708
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ jsx12(
|
|
709
723
|
ChevronsUpDown,
|
|
710
724
|
{
|
|
711
725
|
size: 16,
|
|
@@ -717,7 +731,7 @@ function PresetSelect({
|
|
|
717
731
|
}
|
|
718
732
|
),
|
|
719
733
|
open && typeof document !== "undefined" && createPortal(
|
|
720
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ jsx12(
|
|
721
735
|
"ul",
|
|
722
736
|
{
|
|
723
737
|
ref: menuRef,
|
|
@@ -731,7 +745,7 @@ function PresetSelect({
|
|
|
731
745
|
bottom: menu.bottom,
|
|
732
746
|
maxHeight: menu.maxH
|
|
733
747
|
},
|
|
734
|
-
children: options.map((o) => /* @__PURE__ */
|
|
748
|
+
children: options.map((o) => /* @__PURE__ */ jsx12("li", { children: /* @__PURE__ */ jsxs9(
|
|
735
749
|
"button",
|
|
736
750
|
{
|
|
737
751
|
type: "button",
|
|
@@ -743,8 +757,8 @@ function PresetSelect({
|
|
|
743
757
|
setMenu(null);
|
|
744
758
|
},
|
|
745
759
|
children: [
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
o.value === value && /* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ jsx12("span", { children: o.label }),
|
|
761
|
+
o.value === value && /* @__PURE__ */ jsx12(Check, { size: 14, "aria-hidden": true })
|
|
748
762
|
]
|
|
749
763
|
}
|
|
750
764
|
) }, o.value))
|
|
@@ -756,7 +770,7 @@ function PresetSelect({
|
|
|
756
770
|
}
|
|
757
771
|
|
|
758
772
|
// src/widgets/case-picker/CasePicker.tsx
|
|
759
|
-
import { Fragment, jsx as
|
|
773
|
+
import { Fragment, jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
760
774
|
function CasePicker({
|
|
761
775
|
selected,
|
|
762
776
|
onChange,
|
|
@@ -862,8 +876,8 @@ function CasePicker({
|
|
|
862
876
|
};
|
|
863
877
|
const listContent = creating ? (
|
|
864
878
|
// Create mode — replace list entirely with the create form
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ jsxs10("div", { className: "mr-case-picker__create-form", children: [
|
|
880
|
+
/* @__PURE__ */ jsx13(
|
|
867
881
|
"input",
|
|
868
882
|
{
|
|
869
883
|
type: "text",
|
|
@@ -878,7 +892,7 @@ function CasePicker({
|
|
|
878
892
|
}
|
|
879
893
|
}
|
|
880
894
|
),
|
|
881
|
-
/* @__PURE__ */
|
|
895
|
+
/* @__PURE__ */ jsx13(
|
|
882
896
|
PresetSelect,
|
|
883
897
|
{
|
|
884
898
|
value: newType,
|
|
@@ -887,7 +901,7 @@ function CasePicker({
|
|
|
887
901
|
active: newType !== "OP"
|
|
888
902
|
}
|
|
889
903
|
),
|
|
890
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ jsx13(
|
|
891
905
|
"input",
|
|
892
906
|
{
|
|
893
907
|
type: "date",
|
|
@@ -897,8 +911,8 @@ function CasePicker({
|
|
|
897
911
|
onChange: (e) => setNewDate(e.target.value)
|
|
898
912
|
}
|
|
899
913
|
),
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
-
/* @__PURE__ */
|
|
914
|
+
/* @__PURE__ */ jsxs10("div", { className: "mr-case-picker__create-actions", children: [
|
|
915
|
+
/* @__PURE__ */ jsx13(
|
|
902
916
|
"button",
|
|
903
917
|
{
|
|
904
918
|
type: "button",
|
|
@@ -907,7 +921,7 @@ function CasePicker({
|
|
|
907
921
|
children: "Cancel"
|
|
908
922
|
}
|
|
909
923
|
),
|
|
910
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ jsx13(
|
|
911
925
|
"button",
|
|
912
926
|
{
|
|
913
927
|
type: "button",
|
|
@@ -921,8 +935,8 @@ function CasePicker({
|
|
|
921
935
|
] })
|
|
922
936
|
) : (
|
|
923
937
|
// List mode — show cases + footer button
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ jsxs10(Fragment, { children: [
|
|
939
|
+
/* @__PURE__ */ jsx13("ul", { className: "mr-case-picker__list", children: filtered.length === 0 ? /* @__PURE__ */ jsx13("li", { className: "mr-case-picker__empty text-center", children: "No cases found" }) : filtered.map((c) => /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsxs10(
|
|
926
940
|
"button",
|
|
927
941
|
{
|
|
928
942
|
type: "button",
|
|
@@ -932,19 +946,19 @@ function CasePicker({
|
|
|
932
946
|
if (mode === "dropdown") setMenuPos(null);
|
|
933
947
|
},
|
|
934
948
|
children: [
|
|
935
|
-
/* @__PURE__ */
|
|
936
|
-
selected === c.id && /* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ jsx13("span", { children: c.name }),
|
|
950
|
+
selected === c.id && /* @__PURE__ */ jsx13(Check2, { size: 14, "aria-hidden": true })
|
|
937
951
|
]
|
|
938
952
|
}
|
|
939
953
|
) }, c.id)) }),
|
|
940
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ jsx13("div", { className: "mr-case-picker__footer", children: /* @__PURE__ */ jsxs10(
|
|
941
955
|
"button",
|
|
942
956
|
{
|
|
943
957
|
type: "button",
|
|
944
958
|
className: "mr-case-picker__create-btn",
|
|
945
959
|
onClick: () => setCreating(true),
|
|
946
960
|
children: [
|
|
947
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ jsx13(Plus, { size: 14, "aria-hidden": true }),
|
|
948
962
|
"New care context"
|
|
949
963
|
]
|
|
950
964
|
}
|
|
@@ -952,8 +966,8 @@ function CasePicker({
|
|
|
952
966
|
] })
|
|
953
967
|
);
|
|
954
968
|
if (mode === "inline") {
|
|
955
|
-
return /* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
969
|
+
return /* @__PURE__ */ jsx13("div", { className: "mr-case-picker mr-case-picker--inline", children: creating ? /* @__PURE__ */ jsxs10("div", { className: "mr-case-picker__create-form", children: [
|
|
970
|
+
/* @__PURE__ */ jsx13(
|
|
957
971
|
"input",
|
|
958
972
|
{
|
|
959
973
|
type: "text",
|
|
@@ -967,7 +981,7 @@ function CasePicker({
|
|
|
967
981
|
}
|
|
968
982
|
}
|
|
969
983
|
),
|
|
970
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ jsx13(
|
|
971
985
|
PresetSelect,
|
|
972
986
|
{
|
|
973
987
|
value: newType,
|
|
@@ -976,7 +990,7 @@ function CasePicker({
|
|
|
976
990
|
active: newType !== "OP"
|
|
977
991
|
}
|
|
978
992
|
),
|
|
979
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ jsx13(
|
|
980
994
|
"input",
|
|
981
995
|
{
|
|
982
996
|
type: "date",
|
|
@@ -986,8 +1000,8 @@ function CasePicker({
|
|
|
986
1000
|
onChange: (e) => setNewDate(e.target.value)
|
|
987
1001
|
}
|
|
988
1002
|
),
|
|
989
|
-
/* @__PURE__ */
|
|
990
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ jsxs10("div", { className: "mr-case-picker__create-actions", children: [
|
|
1004
|
+
/* @__PURE__ */ jsx13(
|
|
991
1005
|
"button",
|
|
992
1006
|
{
|
|
993
1007
|
type: "button",
|
|
@@ -996,7 +1010,7 @@ function CasePicker({
|
|
|
996
1010
|
children: "Cancel"
|
|
997
1011
|
}
|
|
998
1012
|
),
|
|
999
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ jsx13(
|
|
1000
1014
|
"button",
|
|
1001
1015
|
{
|
|
1002
1016
|
type: "button",
|
|
@@ -1007,22 +1021,22 @@ function CasePicker({
|
|
|
1007
1021
|
}
|
|
1008
1022
|
)
|
|
1009
1023
|
] })
|
|
1010
|
-
] }) : /* @__PURE__ */
|
|
1024
|
+
] }) : /* @__PURE__ */ jsxs10(
|
|
1011
1025
|
"button",
|
|
1012
1026
|
{
|
|
1013
1027
|
type: "button",
|
|
1014
1028
|
className: "mr-case-picker__create-btn",
|
|
1015
1029
|
onClick: () => setCreating(true),
|
|
1016
1030
|
children: [
|
|
1017
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ jsx13(Plus, { size: 14, "aria-hidden": true }),
|
|
1018
1032
|
"New care context"
|
|
1019
1033
|
]
|
|
1020
1034
|
}
|
|
1021
1035
|
) });
|
|
1022
1036
|
}
|
|
1023
1037
|
if (triggerLabel && !selected) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1025
|
-
/* @__PURE__ */
|
|
1038
|
+
return /* @__PURE__ */ jsxs10(Fragment, { children: [
|
|
1039
|
+
/* @__PURE__ */ jsxs10(
|
|
1026
1040
|
"button",
|
|
1027
1041
|
{
|
|
1028
1042
|
ref: fieldRef,
|
|
@@ -1030,13 +1044,13 @@ function CasePicker({
|
|
|
1030
1044
|
className: "mr-case-picker__create-btn",
|
|
1031
1045
|
onClick: () => open ? setMenuPos(null) : place(),
|
|
1032
1046
|
children: [
|
|
1033
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ jsx13(Plus, { size: 14, "aria-hidden": true }),
|
|
1034
1048
|
triggerLabel
|
|
1035
1049
|
]
|
|
1036
1050
|
}
|
|
1037
1051
|
),
|
|
1038
1052
|
open && typeof document !== "undefined" && createPortal2(
|
|
1039
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ jsx13(
|
|
1040
1054
|
"div",
|
|
1041
1055
|
{
|
|
1042
1056
|
ref: menuRef,
|
|
@@ -1056,8 +1070,8 @@ function CasePicker({
|
|
|
1056
1070
|
)
|
|
1057
1071
|
] });
|
|
1058
1072
|
}
|
|
1059
|
-
return /* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ jsxs10(Fragment, { children: [
|
|
1074
|
+
/* @__PURE__ */ jsxs10(
|
|
1061
1075
|
"button",
|
|
1062
1076
|
{
|
|
1063
1077
|
ref: fieldRef,
|
|
@@ -1065,15 +1079,15 @@ function CasePicker({
|
|
|
1065
1079
|
className: `mr-case-picker__field${open ? " mr-case-picker__field--open" : ""}${selected ? " mr-case-picker__field--active" : ""}`,
|
|
1066
1080
|
onClick: () => open ? setMenuPos(null) : place(),
|
|
1067
1081
|
children: [
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1082
|
+
/* @__PURE__ */ jsx13(Search2, { size: 14, "aria-hidden": true, className: "mr-case-picker__field-icon" }),
|
|
1083
|
+
/* @__PURE__ */ jsx13(
|
|
1070
1084
|
"span",
|
|
1071
1085
|
{
|
|
1072
1086
|
className: selectedCase ? "mr-case-picker__field-value" : "mr-case-picker__field-placeholder",
|
|
1073
1087
|
children: selectedCase?.name ?? "Select case\u2026"
|
|
1074
1088
|
}
|
|
1075
1089
|
),
|
|
1076
|
-
selected ? /* @__PURE__ */
|
|
1090
|
+
selected ? /* @__PURE__ */ jsx13(
|
|
1077
1091
|
X,
|
|
1078
1092
|
{
|
|
1079
1093
|
size: 14,
|
|
@@ -1084,7 +1098,7 @@ function CasePicker({
|
|
|
1084
1098
|
onChange(null);
|
|
1085
1099
|
}
|
|
1086
1100
|
}
|
|
1087
|
-
) : /* @__PURE__ */
|
|
1101
|
+
) : /* @__PURE__ */ jsx13(
|
|
1088
1102
|
ChevronDown,
|
|
1089
1103
|
{
|
|
1090
1104
|
size: 14,
|
|
@@ -1096,7 +1110,7 @@ function CasePicker({
|
|
|
1096
1110
|
}
|
|
1097
1111
|
),
|
|
1098
1112
|
open && typeof document !== "undefined" && createPortal2(
|
|
1099
|
-
/* @__PURE__ */
|
|
1113
|
+
/* @__PURE__ */ jsxs10(
|
|
1100
1114
|
"div",
|
|
1101
1115
|
{
|
|
1102
1116
|
ref: menuRef,
|
|
@@ -1109,7 +1123,7 @@ function CasePicker({
|
|
|
1109
1123
|
maxHeight: menuPos.maxH
|
|
1110
1124
|
},
|
|
1111
1125
|
children: [
|
|
1112
|
-
!creating && /* @__PURE__ */
|
|
1126
|
+
!creating && /* @__PURE__ */ jsx13(
|
|
1113
1127
|
SearchInput_default,
|
|
1114
1128
|
{
|
|
1115
1129
|
className: "mr-case-picker__search-row",
|
|
@@ -1134,8 +1148,8 @@ import { useEffect as useEffect4 } from "react";
|
|
|
1134
1148
|
import { createPortal as createPortal3 } from "react-dom";
|
|
1135
1149
|
|
|
1136
1150
|
// src/widgets/typography/Typography.tsx
|
|
1137
|
-
import { memo as
|
|
1138
|
-
import { jsx as
|
|
1151
|
+
import { memo as memo6 } from "react";
|
|
1152
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1139
1153
|
var DEFAULT_TAG = {
|
|
1140
1154
|
heading: "p",
|
|
1141
1155
|
subheading: "p",
|
|
@@ -1149,12 +1163,12 @@ var DEFAULT_TAG = {
|
|
|
1149
1163
|
function Typography({ variant, as, className, ...props }) {
|
|
1150
1164
|
const Tag = as ?? DEFAULT_TAG[variant];
|
|
1151
1165
|
const cls = `mr-text mr-text--${variant}${className ? ` ${className}` : ""}`;
|
|
1152
|
-
return /* @__PURE__ */
|
|
1166
|
+
return /* @__PURE__ */ jsx14(Tag, { className: cls, ...props });
|
|
1153
1167
|
}
|
|
1154
|
-
var Typography_default =
|
|
1168
|
+
var Typography_default = memo6(Typography);
|
|
1155
1169
|
|
|
1156
1170
|
// src/widgets/delete-modal/DeleteConfirmModal.tsx
|
|
1157
|
-
import { jsx as
|
|
1171
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1158
1172
|
function DeleteConfirmModal({
|
|
1159
1173
|
recordLabel,
|
|
1160
1174
|
patientName,
|
|
@@ -1173,7 +1187,7 @@ function DeleteConfirmModal({
|
|
|
1173
1187
|
if (typeof document === "undefined") return null;
|
|
1174
1188
|
const portalTarget = container ?? document.body;
|
|
1175
1189
|
return createPortal3(
|
|
1176
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ jsx15("div", { className: "mr-delete-modal", role: "presentation", onClick: onCancel, children: /* @__PURE__ */ jsxs11(
|
|
1177
1191
|
"div",
|
|
1178
1192
|
{
|
|
1179
1193
|
className: "mr-delete-modal__dialog",
|
|
@@ -1182,12 +1196,12 @@ function DeleteConfirmModal({
|
|
|
1182
1196
|
"aria-label": "Delete this record?",
|
|
1183
1197
|
onClick: (e) => e.stopPropagation(),
|
|
1184
1198
|
children: [
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1188
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ jsxs11("div", { className: "mr-delete-modal__content", children: [
|
|
1200
|
+
/* @__PURE__ */ jsx15(Typography_default, { variant: "heading", children: "Delete this record?" }),
|
|
1201
|
+
/* @__PURE__ */ jsxs11(Typography_default, { variant: "muted", className: "mr-delete-modal__desc", children: [
|
|
1202
|
+
/* @__PURE__ */ jsx15("strong", { children: recordLabel }),
|
|
1189
1203
|
" will be permanently removed from ",
|
|
1190
|
-
patientName ? /* @__PURE__ */
|
|
1204
|
+
patientName ? /* @__PURE__ */ jsxs11("strong", { children: [
|
|
1191
1205
|
patientName,
|
|
1192
1206
|
"\u2019s"
|
|
1193
1207
|
] }) : "these",
|
|
@@ -1195,8 +1209,8 @@ function DeleteConfirmModal({
|
|
|
1195
1209
|
"records. This action cannot be undone."
|
|
1196
1210
|
] })
|
|
1197
1211
|
] }),
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ jsxs11("div", { className: "mr-delete-modal__footer", children: [
|
|
1213
|
+
/* @__PURE__ */ jsx15(
|
|
1200
1214
|
"button",
|
|
1201
1215
|
{
|
|
1202
1216
|
type: "button",
|
|
@@ -1206,7 +1220,7 @@ function DeleteConfirmModal({
|
|
|
1206
1220
|
children: "Cancel"
|
|
1207
1221
|
}
|
|
1208
1222
|
),
|
|
1209
|
-
/* @__PURE__ */
|
|
1223
|
+
/* @__PURE__ */ jsx15(
|
|
1210
1224
|
"button",
|
|
1211
1225
|
{
|
|
1212
1226
|
type: "button",
|
|
@@ -1228,7 +1242,7 @@ function DeleteConfirmModal({
|
|
|
1228
1242
|
import { useEffect as useEffect5, useMemo as useMemo2, useRef as useRef4, useState as useState3 } from "react";
|
|
1229
1243
|
import { createPortal as createPortal4 } from "react-dom";
|
|
1230
1244
|
import { ChevronsUpDown as ChevronsUpDown2, Check as Check3, Plus as Plus2, X as X2, Search as Search3 } from "lucide-react";
|
|
1231
|
-
import { jsx as
|
|
1245
|
+
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1232
1246
|
function MultiSelect({
|
|
1233
1247
|
value,
|
|
1234
1248
|
options,
|
|
@@ -1298,8 +1312,8 @@ function MultiSelect({
|
|
|
1298
1312
|
onChange([...value, q]);
|
|
1299
1313
|
setQuery("");
|
|
1300
1314
|
};
|
|
1301
|
-
return /* @__PURE__ */
|
|
1302
|
-
/* @__PURE__ */
|
|
1315
|
+
return /* @__PURE__ */ jsxs12("div", { className: "mr-multi-select", children: [
|
|
1316
|
+
/* @__PURE__ */ jsxs12(
|
|
1303
1317
|
"button",
|
|
1304
1318
|
{
|
|
1305
1319
|
ref: fieldRef,
|
|
@@ -1309,7 +1323,7 @@ function MultiSelect({
|
|
|
1309
1323
|
"aria-expanded": open,
|
|
1310
1324
|
onClick: () => open ? setMenu(null) : place(),
|
|
1311
1325
|
children: [
|
|
1312
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ jsx16(
|
|
1313
1327
|
Search3,
|
|
1314
1328
|
{
|
|
1315
1329
|
size: 14,
|
|
@@ -1317,14 +1331,14 @@ function MultiSelect({
|
|
|
1317
1331
|
className: "mr-multi-select__field-search-icon"
|
|
1318
1332
|
}
|
|
1319
1333
|
),
|
|
1320
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ jsx16(
|
|
1321
1335
|
"span",
|
|
1322
1336
|
{
|
|
1323
1337
|
className: `mr-multi-select__value${value.length ? "" : " mr-multi-select__value--placeholder"}`,
|
|
1324
1338
|
children: value.length === 0 ? placeholder : `${value.length} ${value.length === 1 ? noun : `${noun}s`} selected`
|
|
1325
1339
|
}
|
|
1326
1340
|
),
|
|
1327
|
-
/* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ jsx16(
|
|
1328
1342
|
ChevronsUpDown2,
|
|
1329
1343
|
{
|
|
1330
1344
|
size: 16,
|
|
@@ -1335,21 +1349,21 @@ function MultiSelect({
|
|
|
1335
1349
|
]
|
|
1336
1350
|
}
|
|
1337
1351
|
),
|
|
1338
|
-
value.length > 0 && /* @__PURE__ */
|
|
1339
|
-
/* @__PURE__ */
|
|
1340
|
-
/* @__PURE__ */
|
|
1352
|
+
value.length > 0 && /* @__PURE__ */ jsx16("div", { className: "mr-multi-select__selected", children: value.map((v) => /* @__PURE__ */ jsxs12("span", { className: "mr-multi-select__chip", children: [
|
|
1353
|
+
/* @__PURE__ */ jsx16("span", { className: "mr-multi-select__chip-label", children: v }),
|
|
1354
|
+
/* @__PURE__ */ jsx16(
|
|
1341
1355
|
"button",
|
|
1342
1356
|
{
|
|
1343
1357
|
type: "button",
|
|
1344
1358
|
"aria-label": `Remove ${v}`,
|
|
1345
1359
|
className: "mr-multi-select__chip-x",
|
|
1346
1360
|
onClick: () => onChange(value.filter((x) => x !== v)),
|
|
1347
|
-
children: /* @__PURE__ */
|
|
1361
|
+
children: /* @__PURE__ */ jsx16(X2, { size: 11, "aria-hidden": true })
|
|
1348
1362
|
}
|
|
1349
1363
|
)
|
|
1350
1364
|
] }, v)) }),
|
|
1351
1365
|
open && typeof document !== "undefined" && createPortal4(
|
|
1352
|
-
/* @__PURE__ */
|
|
1366
|
+
/* @__PURE__ */ jsxs12(
|
|
1353
1367
|
"div",
|
|
1354
1368
|
{
|
|
1355
1369
|
ref: menuRef,
|
|
@@ -1365,7 +1379,7 @@ function MultiSelect({
|
|
|
1365
1379
|
maxHeight: menu.maxH
|
|
1366
1380
|
},
|
|
1367
1381
|
children: [
|
|
1368
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ jsx16("div", { className: "mr-multi-select__search", children: /* @__PURE__ */ jsx16(
|
|
1369
1383
|
"input",
|
|
1370
1384
|
{
|
|
1371
1385
|
type: "text",
|
|
@@ -1382,10 +1396,10 @@ function MultiSelect({
|
|
|
1382
1396
|
}
|
|
1383
1397
|
}
|
|
1384
1398
|
) }),
|
|
1385
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ jsxs12("ul", { className: "mr-multi-select__options", children: [
|
|
1386
1400
|
filtered.map((o) => {
|
|
1387
1401
|
const selected = value.includes(o);
|
|
1388
|
-
return /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs12(
|
|
1389
1403
|
"button",
|
|
1390
1404
|
{
|
|
1391
1405
|
type: "button",
|
|
@@ -1395,27 +1409,27 @@ function MultiSelect({
|
|
|
1395
1409
|
disabled: !selected && atMax,
|
|
1396
1410
|
onClick: () => toggle(o),
|
|
1397
1411
|
children: [
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
selected && /* @__PURE__ */
|
|
1412
|
+
/* @__PURE__ */ jsx16("span", { className: "mr-multi-select__option-label", children: o }),
|
|
1413
|
+
selected && /* @__PURE__ */ jsx16(Check3, { size: 14, "aria-hidden": true })
|
|
1400
1414
|
]
|
|
1401
1415
|
}
|
|
1402
1416
|
) }, o);
|
|
1403
1417
|
}),
|
|
1404
|
-
canCreate && /* @__PURE__ */
|
|
1418
|
+
canCreate && /* @__PURE__ */ jsx16("li", { children: /* @__PURE__ */ jsxs12(
|
|
1405
1419
|
"button",
|
|
1406
1420
|
{
|
|
1407
1421
|
type: "button",
|
|
1408
1422
|
className: "mr-multi-select__option mr-multi-select__create",
|
|
1409
1423
|
onClick: create,
|
|
1410
1424
|
children: [
|
|
1411
|
-
/* @__PURE__ */
|
|
1425
|
+
/* @__PURE__ */ jsx16(Plus2, { size: 14, "aria-hidden": true }),
|
|
1412
1426
|
"Add \u201C",
|
|
1413
1427
|
q,
|
|
1414
1428
|
"\u201D"
|
|
1415
1429
|
]
|
|
1416
1430
|
}
|
|
1417
1431
|
) }),
|
|
1418
|
-
filtered.length === 0 && !canCreate && /* @__PURE__ */
|
|
1432
|
+
filtered.length === 0 && !canCreate && /* @__PURE__ */ jsx16("li", { className: "mr-multi-select__empty text-center", children: "No data" })
|
|
1419
1433
|
] })
|
|
1420
1434
|
]
|
|
1421
1435
|
}
|
|
@@ -1435,7 +1449,7 @@ import {
|
|
|
1435
1449
|
} from "react";
|
|
1436
1450
|
import { createPortal as createPortal5 } from "react-dom";
|
|
1437
1451
|
import { ChevronLeft, EllipsisVertical } from "lucide-react";
|
|
1438
|
-
import { Fragment as Fragment2, jsx as
|
|
1452
|
+
import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1439
1453
|
var ITEM_HEIGHT = 36;
|
|
1440
1454
|
var MENU_PADDING = 8;
|
|
1441
1455
|
var GAP = 4;
|
|
@@ -1520,8 +1534,8 @@ function OverflowMenu({
|
|
|
1520
1534
|
setPanelStack([]);
|
|
1521
1535
|
}
|
|
1522
1536
|
};
|
|
1523
|
-
return /* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1537
|
+
return /* @__PURE__ */ jsxs13(Fragment2, { children: [
|
|
1538
|
+
/* @__PURE__ */ jsx17(
|
|
1525
1539
|
"button",
|
|
1526
1540
|
{
|
|
1527
1541
|
ref: triggerRef,
|
|
@@ -1535,11 +1549,11 @@ function OverflowMenu({
|
|
|
1535
1549
|
if (open) close();
|
|
1536
1550
|
else place();
|
|
1537
1551
|
},
|
|
1538
|
-
children: /* @__PURE__ */
|
|
1552
|
+
children: /* @__PURE__ */ jsx17(EllipsisVertical, { size: 16, "aria-hidden": true })
|
|
1539
1553
|
}
|
|
1540
1554
|
),
|
|
1541
1555
|
open && typeof document !== "undefined" && createPortal5(
|
|
1542
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ jsx17(
|
|
1543
1557
|
"div",
|
|
1544
1558
|
{
|
|
1545
1559
|
ref: menuRef,
|
|
@@ -1551,26 +1565,26 @@ function OverflowMenu({
|
|
|
1551
1565
|
right: coords.right
|
|
1552
1566
|
},
|
|
1553
1567
|
onClick: (e) => e.stopPropagation(),
|
|
1554
|
-
children: activeItem?.subPanel ? /* @__PURE__ */
|
|
1555
|
-
/* @__PURE__ */
|
|
1568
|
+
children: activeItem?.subPanel ? /* @__PURE__ */ jsxs13("div", { className: "mr-overflow-subpanel", children: [
|
|
1569
|
+
/* @__PURE__ */ jsx17("div", { className: "mr-overflow-subpanel__back", children: /* @__PURE__ */ jsxs13(
|
|
1556
1570
|
"button",
|
|
1557
1571
|
{
|
|
1558
1572
|
type: "button",
|
|
1559
1573
|
className: "mr-overflow-subpanel__back-btn",
|
|
1560
1574
|
onClick: handleBack,
|
|
1561
1575
|
children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ jsx17(ChevronLeft, { size: 16, "aria-hidden": true }),
|
|
1563
1577
|
"Back"
|
|
1564
1578
|
]
|
|
1565
1579
|
}
|
|
1566
1580
|
) }),
|
|
1567
|
-
/* @__PURE__ */
|
|
1581
|
+
/* @__PURE__ */ jsx17("div", { style: { display: panelStack.length === 0 ? void 0 : "none" }, children: activeItem.subPanel(
|
|
1568
1582
|
() => setActiveSubPanel(null),
|
|
1569
1583
|
close,
|
|
1570
1584
|
pushPanel,
|
|
1571
1585
|
popPanel
|
|
1572
1586
|
) }),
|
|
1573
|
-
panelStack.map((panel, i) => /* @__PURE__ */
|
|
1587
|
+
panelStack.map((panel, i) => /* @__PURE__ */ jsx17(
|
|
1574
1588
|
"div",
|
|
1575
1589
|
{
|
|
1576
1590
|
style: { display: i === panelStack.length - 1 ? void 0 : "none" },
|
|
@@ -1578,7 +1592,7 @@ function OverflowMenu({
|
|
|
1578
1592
|
},
|
|
1579
1593
|
i
|
|
1580
1594
|
))
|
|
1581
|
-
] }) : /* @__PURE__ */
|
|
1595
|
+
] }) : /* @__PURE__ */ jsx17("ul", { className: "mr-overflow-menu", role: "menu", children: items.map((item) => /* @__PURE__ */ jsx17("li", { children: /* @__PURE__ */ jsxs13(
|
|
1582
1596
|
"button",
|
|
1583
1597
|
{
|
|
1584
1598
|
type: "button",
|
|
@@ -1596,7 +1610,7 @@ function OverflowMenu({
|
|
|
1596
1610
|
}
|
|
1597
1611
|
},
|
|
1598
1612
|
children: [
|
|
1599
|
-
item.icon && /* @__PURE__ */
|
|
1613
|
+
item.icon && /* @__PURE__ */ jsx17("span", { className: "mr-overflow-menu__icon", children: item.icon }),
|
|
1600
1614
|
item.label
|
|
1601
1615
|
]
|
|
1602
1616
|
}
|
|
@@ -1611,7 +1625,7 @@ function OverflowMenu({
|
|
|
1611
1625
|
// src/widgets/search-select/SearchSelect.tsx
|
|
1612
1626
|
import { useEffect as useEffect7, useMemo as useMemo3, useRef as useRef6, useState as useState5 } from "react";
|
|
1613
1627
|
import { ChevronsUpDown as ChevronsUpDown3, Check as Check4 } from "lucide-react";
|
|
1614
|
-
import { jsx as
|
|
1628
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1615
1629
|
function SearchSelect({
|
|
1616
1630
|
value,
|
|
1617
1631
|
options,
|
|
@@ -1640,8 +1654,8 @@ function SearchSelect({
|
|
|
1640
1654
|
const q = query.trim().toLowerCase();
|
|
1641
1655
|
return q ? options.filter((o) => o.label.toLowerCase().includes(q)) : options;
|
|
1642
1656
|
}, [options, query]);
|
|
1643
|
-
return /* @__PURE__ */
|
|
1644
|
-
/* @__PURE__ */
|
|
1657
|
+
return /* @__PURE__ */ jsxs14("div", { className: "mr-search-select", ref, children: [
|
|
1658
|
+
/* @__PURE__ */ jsxs14(
|
|
1645
1659
|
"button",
|
|
1646
1660
|
{
|
|
1647
1661
|
type: "button",
|
|
@@ -1650,14 +1664,14 @@ function SearchSelect({
|
|
|
1650
1664
|
"aria-expanded": open,
|
|
1651
1665
|
onClick: () => setOpen((o) => !o),
|
|
1652
1666
|
children: [
|
|
1653
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ jsx18(
|
|
1654
1668
|
"span",
|
|
1655
1669
|
{
|
|
1656
1670
|
className: `mr-search-select__value${selected ? "" : " mr-search-select__value--placeholder"}`,
|
|
1657
1671
|
children: selected?.label ?? placeholder
|
|
1658
1672
|
}
|
|
1659
1673
|
),
|
|
1660
|
-
/* @__PURE__ */
|
|
1674
|
+
/* @__PURE__ */ jsx18(
|
|
1661
1675
|
ChevronsUpDown3,
|
|
1662
1676
|
{
|
|
1663
1677
|
size: 16,
|
|
@@ -1668,8 +1682,8 @@ function SearchSelect({
|
|
|
1668
1682
|
]
|
|
1669
1683
|
}
|
|
1670
1684
|
),
|
|
1671
|
-
open && /* @__PURE__ */
|
|
1672
|
-
/* @__PURE__ */
|
|
1685
|
+
open && /* @__PURE__ */ jsxs14("div", { className: "mr-search-select__menu", role: "listbox", children: [
|
|
1686
|
+
/* @__PURE__ */ jsx18(
|
|
1673
1687
|
SearchInput_default,
|
|
1674
1688
|
{
|
|
1675
1689
|
className: "mr-search-select__search",
|
|
@@ -1679,7 +1693,7 @@ function SearchSelect({
|
|
|
1679
1693
|
onChange: setQuery
|
|
1680
1694
|
}
|
|
1681
1695
|
),
|
|
1682
|
-
/* @__PURE__ */
|
|
1696
|
+
/* @__PURE__ */ jsx18("ul", { className: "mr-search-select__options", children: filtered.length === 0 ? /* @__PURE__ */ jsx18("li", { className: "mr-search-select__empty", children: "No matches" }) : filtered.map((o) => /* @__PURE__ */ jsx18("li", { children: /* @__PURE__ */ jsxs14(
|
|
1683
1697
|
"button",
|
|
1684
1698
|
{
|
|
1685
1699
|
type: "button",
|
|
@@ -1691,18 +1705,18 @@ function SearchSelect({
|
|
|
1691
1705
|
setOpen(false);
|
|
1692
1706
|
},
|
|
1693
1707
|
children: [
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
o.value === value && /* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ jsx18("span", { className: "mr-search-select__option-label", children: o.label }),
|
|
1709
|
+
o.value === value && /* @__PURE__ */ jsx18(Check4, { size: 14, "aria-hidden": true })
|
|
1696
1710
|
]
|
|
1697
1711
|
}
|
|
1698
1712
|
) }, o.value)) }),
|
|
1699
|
-
footer && /* @__PURE__ */
|
|
1713
|
+
footer && /* @__PURE__ */ jsx18("div", { className: "mr-search-select__footer", children: footer })
|
|
1700
1714
|
] })
|
|
1701
1715
|
] });
|
|
1702
1716
|
}
|
|
1703
1717
|
|
|
1704
1718
|
// src/widgets/status-badge/StatusBadge.tsx
|
|
1705
|
-
import { jsx as
|
|
1719
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1706
1720
|
var STATUS_LABEL = {
|
|
1707
1721
|
high: "HIGH",
|
|
1708
1722
|
low: "LOW",
|
|
@@ -1712,36 +1726,36 @@ var STATUS_LABEL = {
|
|
|
1712
1726
|
function StatusBadge({ status }) {
|
|
1713
1727
|
const label = STATUS_LABEL[status];
|
|
1714
1728
|
if (!label) return null;
|
|
1715
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx19("span", { className: `mr-sv__vital-badge mr-sv__vital-badge--${status}`, children: label });
|
|
1716
1730
|
}
|
|
1717
1731
|
|
|
1718
1732
|
// src/illustrations/no-record.tsx
|
|
1719
|
-
import { jsx as
|
|
1733
|
+
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1720
1734
|
function NoRecordsIllustration() {
|
|
1721
|
-
return /* @__PURE__ */
|
|
1722
|
-
/* @__PURE__ */
|
|
1723
|
-
/* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ jsxs15("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
1736
|
+
/* @__PURE__ */ jsxs15("g", { clipPath: "url(#clip0_sv_nrec)", children: [
|
|
1737
|
+
/* @__PURE__ */ jsx20(
|
|
1724
1738
|
"path",
|
|
1725
1739
|
{
|
|
1726
1740
|
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",
|
|
1727
1741
|
fill: "#E8F0FF"
|
|
1728
1742
|
}
|
|
1729
1743
|
),
|
|
1730
|
-
/* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsx20("g", { opacity: "0.75", filter: "url(#filter0_sv_nrec)", children: /* @__PURE__ */ jsx20(
|
|
1731
1745
|
"path",
|
|
1732
1746
|
{
|
|
1733
1747
|
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",
|
|
1734
1748
|
fill: "white"
|
|
1735
1749
|
}
|
|
1736
1750
|
) }),
|
|
1737
|
-
/* @__PURE__ */
|
|
1751
|
+
/* @__PURE__ */ jsx20("g", { filter: "url(#filter1_sv_nrec)", children: /* @__PURE__ */ jsx20(
|
|
1738
1752
|
"path",
|
|
1739
1753
|
{
|
|
1740
1754
|
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",
|
|
1741
1755
|
fill: "white"
|
|
1742
1756
|
}
|
|
1743
1757
|
) }),
|
|
1744
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ jsx20(
|
|
1745
1759
|
"path",
|
|
1746
1760
|
{
|
|
1747
1761
|
opacity: "0.5",
|
|
@@ -1749,7 +1763,7 @@ function NoRecordsIllustration() {
|
|
|
1749
1763
|
fill: "#DDE9F5"
|
|
1750
1764
|
}
|
|
1751
1765
|
),
|
|
1752
|
-
/* @__PURE__ */
|
|
1766
|
+
/* @__PURE__ */ jsx20(
|
|
1753
1767
|
"path",
|
|
1754
1768
|
{
|
|
1755
1769
|
opacity: "0.5",
|
|
@@ -1757,14 +1771,14 @@ function NoRecordsIllustration() {
|
|
|
1757
1771
|
fill: "#DDE9F5"
|
|
1758
1772
|
}
|
|
1759
1773
|
),
|
|
1760
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ jsx20("g", { filter: "url(#filter2_sv_nrec)", children: /* @__PURE__ */ jsx20(
|
|
1761
1775
|
"path",
|
|
1762
1776
|
{
|
|
1763
1777
|
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",
|
|
1764
1778
|
fill: "#2563EB"
|
|
1765
1779
|
}
|
|
1766
1780
|
) }),
|
|
1767
|
-
/* @__PURE__ */
|
|
1781
|
+
/* @__PURE__ */ jsx20(
|
|
1768
1782
|
"path",
|
|
1769
1783
|
{
|
|
1770
1784
|
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",
|
|
@@ -1773,7 +1787,7 @@ function NoRecordsIllustration() {
|
|
|
1773
1787
|
strokeLinejoin: "round"
|
|
1774
1788
|
}
|
|
1775
1789
|
),
|
|
1776
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ jsx20(
|
|
1777
1791
|
"path",
|
|
1778
1792
|
{
|
|
1779
1793
|
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",
|
|
@@ -1784,8 +1798,8 @@ function NoRecordsIllustration() {
|
|
|
1784
1798
|
}
|
|
1785
1799
|
)
|
|
1786
1800
|
] }),
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ jsxs15("defs", { children: [
|
|
1802
|
+
/* @__PURE__ */ jsxs15(
|
|
1789
1803
|
"filter",
|
|
1790
1804
|
{
|
|
1791
1805
|
id: "filter0_sv_nrec",
|
|
@@ -1796,8 +1810,8 @@ function NoRecordsIllustration() {
|
|
|
1796
1810
|
filterUnits: "userSpaceOnUse",
|
|
1797
1811
|
colorInterpolationFilters: "sRGB",
|
|
1798
1812
|
children: [
|
|
1799
|
-
/* @__PURE__ */
|
|
1800
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ jsx20("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1814
|
+
/* @__PURE__ */ jsx20(
|
|
1801
1815
|
"feColorMatrix",
|
|
1802
1816
|
{
|
|
1803
1817
|
in: "SourceAlpha",
|
|
@@ -1806,7 +1820,7 @@ function NoRecordsIllustration() {
|
|
|
1806
1820
|
result: "hardAlpha"
|
|
1807
1821
|
}
|
|
1808
1822
|
),
|
|
1809
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ jsx20(
|
|
1810
1824
|
"feMorphology",
|
|
1811
1825
|
{
|
|
1812
1826
|
radius: "1",
|
|
@@ -1815,17 +1829,17 @@ function NoRecordsIllustration() {
|
|
|
1815
1829
|
result: "effect1_dropShadow_sv_nrec"
|
|
1816
1830
|
}
|
|
1817
1831
|
),
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
/* @__PURE__ */
|
|
1821
|
-
/* @__PURE__ */
|
|
1832
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
1833
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1" }),
|
|
1834
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
1835
|
+
/* @__PURE__ */ jsx20(
|
|
1822
1836
|
"feColorMatrix",
|
|
1823
1837
|
{
|
|
1824
1838
|
type: "matrix",
|
|
1825
1839
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1826
1840
|
}
|
|
1827
1841
|
),
|
|
1828
|
-
/* @__PURE__ */
|
|
1842
|
+
/* @__PURE__ */ jsx20(
|
|
1829
1843
|
"feBlend",
|
|
1830
1844
|
{
|
|
1831
1845
|
mode: "normal",
|
|
@@ -1833,7 +1847,7 @@ function NoRecordsIllustration() {
|
|
|
1833
1847
|
result: "effect1_dropShadow_sv_nrec"
|
|
1834
1848
|
}
|
|
1835
1849
|
),
|
|
1836
|
-
/* @__PURE__ */
|
|
1850
|
+
/* @__PURE__ */ jsx20(
|
|
1837
1851
|
"feColorMatrix",
|
|
1838
1852
|
{
|
|
1839
1853
|
in: "SourceAlpha",
|
|
@@ -1842,17 +1856,17 @@ function NoRecordsIllustration() {
|
|
|
1842
1856
|
result: "hardAlpha"
|
|
1843
1857
|
}
|
|
1844
1858
|
),
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1859
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
1860
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
1861
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
1862
|
+
/* @__PURE__ */ jsx20(
|
|
1849
1863
|
"feColorMatrix",
|
|
1850
1864
|
{
|
|
1851
1865
|
type: "matrix",
|
|
1852
1866
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1853
1867
|
}
|
|
1854
1868
|
),
|
|
1855
|
-
/* @__PURE__ */
|
|
1869
|
+
/* @__PURE__ */ jsx20(
|
|
1856
1870
|
"feBlend",
|
|
1857
1871
|
{
|
|
1858
1872
|
mode: "normal",
|
|
@@ -1860,7 +1874,7 @@ function NoRecordsIllustration() {
|
|
|
1860
1874
|
result: "effect2_dropShadow_sv_nrec"
|
|
1861
1875
|
}
|
|
1862
1876
|
),
|
|
1863
|
-
/* @__PURE__ */
|
|
1877
|
+
/* @__PURE__ */ jsx20(
|
|
1864
1878
|
"feBlend",
|
|
1865
1879
|
{
|
|
1866
1880
|
mode: "normal",
|
|
@@ -1872,7 +1886,7 @@ function NoRecordsIllustration() {
|
|
|
1872
1886
|
]
|
|
1873
1887
|
}
|
|
1874
1888
|
),
|
|
1875
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ jsxs15(
|
|
1876
1890
|
"filter",
|
|
1877
1891
|
{
|
|
1878
1892
|
id: "filter1_sv_nrec",
|
|
@@ -1883,8 +1897,8 @@ function NoRecordsIllustration() {
|
|
|
1883
1897
|
filterUnits: "userSpaceOnUse",
|
|
1884
1898
|
colorInterpolationFilters: "sRGB",
|
|
1885
1899
|
children: [
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ jsx20("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1901
|
+
/* @__PURE__ */ jsx20(
|
|
1888
1902
|
"feColorMatrix",
|
|
1889
1903
|
{
|
|
1890
1904
|
in: "SourceAlpha",
|
|
@@ -1893,7 +1907,7 @@ function NoRecordsIllustration() {
|
|
|
1893
1907
|
result: "hardAlpha"
|
|
1894
1908
|
}
|
|
1895
1909
|
),
|
|
1896
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ jsx20(
|
|
1897
1911
|
"feMorphology",
|
|
1898
1912
|
{
|
|
1899
1913
|
radius: "1",
|
|
@@ -1902,17 +1916,17 @@ function NoRecordsIllustration() {
|
|
|
1902
1916
|
result: "effect1_dropShadow_sv_nrec"
|
|
1903
1917
|
}
|
|
1904
1918
|
),
|
|
1905
|
-
/* @__PURE__ */
|
|
1906
|
-
/* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
1920
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1" }),
|
|
1921
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
1922
|
+
/* @__PURE__ */ jsx20(
|
|
1909
1923
|
"feColorMatrix",
|
|
1910
1924
|
{
|
|
1911
1925
|
type: "matrix",
|
|
1912
1926
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1913
1927
|
}
|
|
1914
1928
|
),
|
|
1915
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ jsx20(
|
|
1916
1930
|
"feBlend",
|
|
1917
1931
|
{
|
|
1918
1932
|
mode: "normal",
|
|
@@ -1920,7 +1934,7 @@ function NoRecordsIllustration() {
|
|
|
1920
1934
|
result: "effect1_dropShadow_sv_nrec"
|
|
1921
1935
|
}
|
|
1922
1936
|
),
|
|
1923
|
-
/* @__PURE__ */
|
|
1937
|
+
/* @__PURE__ */ jsx20(
|
|
1924
1938
|
"feColorMatrix",
|
|
1925
1939
|
{
|
|
1926
1940
|
in: "SourceAlpha",
|
|
@@ -1929,17 +1943,17 @@ function NoRecordsIllustration() {
|
|
|
1929
1943
|
result: "hardAlpha"
|
|
1930
1944
|
}
|
|
1931
1945
|
),
|
|
1932
|
-
/* @__PURE__ */
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
1947
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
1948
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
1949
|
+
/* @__PURE__ */ jsx20(
|
|
1936
1950
|
"feColorMatrix",
|
|
1937
1951
|
{
|
|
1938
1952
|
type: "matrix",
|
|
1939
1953
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
1940
1954
|
}
|
|
1941
1955
|
),
|
|
1942
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx20(
|
|
1943
1957
|
"feBlend",
|
|
1944
1958
|
{
|
|
1945
1959
|
mode: "normal",
|
|
@@ -1947,7 +1961,7 @@ function NoRecordsIllustration() {
|
|
|
1947
1961
|
result: "effect2_dropShadow_sv_nrec"
|
|
1948
1962
|
}
|
|
1949
1963
|
),
|
|
1950
|
-
/* @__PURE__ */
|
|
1964
|
+
/* @__PURE__ */ jsx20(
|
|
1951
1965
|
"feBlend",
|
|
1952
1966
|
{
|
|
1953
1967
|
mode: "normal",
|
|
@@ -1959,7 +1973,7 @@ function NoRecordsIllustration() {
|
|
|
1959
1973
|
]
|
|
1960
1974
|
}
|
|
1961
1975
|
),
|
|
1962
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ jsxs15(
|
|
1963
1977
|
"filter",
|
|
1964
1978
|
{
|
|
1965
1979
|
id: "filter2_sv_nrec",
|
|
@@ -1970,8 +1984,8 @@ function NoRecordsIllustration() {
|
|
|
1970
1984
|
filterUnits: "userSpaceOnUse",
|
|
1971
1985
|
colorInterpolationFilters: "sRGB",
|
|
1972
1986
|
children: [
|
|
1973
|
-
/* @__PURE__ */
|
|
1974
|
-
/* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx20("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
1988
|
+
/* @__PURE__ */ jsx20(
|
|
1975
1989
|
"feColorMatrix",
|
|
1976
1990
|
{
|
|
1977
1991
|
in: "SourceAlpha",
|
|
@@ -1980,7 +1994,7 @@ function NoRecordsIllustration() {
|
|
|
1980
1994
|
result: "hardAlpha"
|
|
1981
1995
|
}
|
|
1982
1996
|
),
|
|
1983
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ jsx20(
|
|
1984
1998
|
"feMorphology",
|
|
1985
1999
|
{
|
|
1986
2000
|
radius: "1",
|
|
@@ -1989,17 +2003,17 @@ function NoRecordsIllustration() {
|
|
|
1989
2003
|
result: "effect1_dropShadow_sv_nrec"
|
|
1990
2004
|
}
|
|
1991
2005
|
),
|
|
1992
|
-
/* @__PURE__ */
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
2007
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1" }),
|
|
2008
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2009
|
+
/* @__PURE__ */ jsx20(
|
|
1996
2010
|
"feColorMatrix",
|
|
1997
2011
|
{
|
|
1998
2012
|
type: "matrix",
|
|
1999
2013
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2000
2014
|
}
|
|
2001
2015
|
),
|
|
2002
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ jsx20(
|
|
2003
2017
|
"feBlend",
|
|
2004
2018
|
{
|
|
2005
2019
|
mode: "normal",
|
|
@@ -2007,7 +2021,7 @@ function NoRecordsIllustration() {
|
|
|
2007
2021
|
result: "effect1_dropShadow_sv_nrec"
|
|
2008
2022
|
}
|
|
2009
2023
|
),
|
|
2010
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx20(
|
|
2011
2025
|
"feColorMatrix",
|
|
2012
2026
|
{
|
|
2013
2027
|
in: "SourceAlpha",
|
|
@@ -2016,17 +2030,17 @@ function NoRecordsIllustration() {
|
|
|
2016
2030
|
result: "hardAlpha"
|
|
2017
2031
|
}
|
|
2018
2032
|
),
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx20("feOffset", { dy: "1" }),
|
|
2034
|
+
/* @__PURE__ */ jsx20("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2035
|
+
/* @__PURE__ */ jsx20("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2036
|
+
/* @__PURE__ */ jsx20(
|
|
2023
2037
|
"feColorMatrix",
|
|
2024
2038
|
{
|
|
2025
2039
|
type: "matrix",
|
|
2026
2040
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2027
2041
|
}
|
|
2028
2042
|
),
|
|
2029
|
-
/* @__PURE__ */
|
|
2043
|
+
/* @__PURE__ */ jsx20(
|
|
2030
2044
|
"feBlend",
|
|
2031
2045
|
{
|
|
2032
2046
|
mode: "normal",
|
|
@@ -2034,7 +2048,7 @@ function NoRecordsIllustration() {
|
|
|
2034
2048
|
result: "effect2_dropShadow_sv_nrec"
|
|
2035
2049
|
}
|
|
2036
2050
|
),
|
|
2037
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ jsx20(
|
|
2038
2052
|
"feBlend",
|
|
2039
2053
|
{
|
|
2040
2054
|
mode: "normal",
|
|
@@ -2046,42 +2060,42 @@ function NoRecordsIllustration() {
|
|
|
2046
2060
|
]
|
|
2047
2061
|
}
|
|
2048
2062
|
),
|
|
2049
|
-
/* @__PURE__ */
|
|
2063
|
+
/* @__PURE__ */ jsx20("clipPath", { id: "clip0_sv_nrec", children: /* @__PURE__ */ jsx20("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2050
2064
|
] })
|
|
2051
2065
|
] });
|
|
2052
2066
|
}
|
|
2053
2067
|
var no_record_default = NoRecordsIllustration;
|
|
2054
2068
|
|
|
2055
2069
|
// src/widgets/states/NoRecordsState.tsx
|
|
2056
|
-
import { jsx as
|
|
2070
|
+
import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2057
2071
|
function NoRecordsState({
|
|
2058
2072
|
onUpload
|
|
2059
2073
|
}) {
|
|
2060
|
-
return /* @__PURE__ */
|
|
2061
|
-
/* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2064
|
-
/* @__PURE__ */
|
|
2074
|
+
return /* @__PURE__ */ jsxs16("div", { className: "mr-sv__empty", children: [
|
|
2075
|
+
/* @__PURE__ */ jsx21(no_record_default, {}),
|
|
2076
|
+
/* @__PURE__ */ jsxs16("div", { className: "mr-sv__empty-text", children: [
|
|
2077
|
+
/* @__PURE__ */ jsx21(Typography_default, { variant: "heading", children: "No records found" }),
|
|
2078
|
+
/* @__PURE__ */ jsx21(Typography_default, { variant: "muted", children: "We could not find any records for this patient." })
|
|
2065
2079
|
] })
|
|
2066
2080
|
] });
|
|
2067
2081
|
}
|
|
2068
2082
|
|
|
2069
2083
|
// src/widgets/states/RecordsLoadingState.tsx
|
|
2070
2084
|
import { LoaderCircle } from "lucide-react";
|
|
2071
|
-
import { jsx as
|
|
2085
|
+
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2072
2086
|
function RecordsLoadingState({
|
|
2073
2087
|
patientName
|
|
2074
2088
|
}) {
|
|
2075
|
-
return /* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
/* @__PURE__ */
|
|
2079
|
-
/* @__PURE__ */
|
|
2080
|
-
/* @__PURE__ */
|
|
2089
|
+
return /* @__PURE__ */ jsxs17("div", { className: "mr-sv__loading-body", children: [
|
|
2090
|
+
/* @__PURE__ */ jsx22("div", { className: "mr-sv__loading-sidebar", children: Array.from({ length: 14 }).map((_, i) => /* @__PURE__ */ jsxs17("div", { className: "mr-sv__loading-skeleton-row", children: [
|
|
2091
|
+
/* @__PURE__ */ jsx22("div", { className: "mr-sv__loading-skeleton-thumb" }),
|
|
2092
|
+
/* @__PURE__ */ jsxs17("div", { className: "mr-sv__loading-skeleton-text", children: [
|
|
2093
|
+
/* @__PURE__ */ jsx22("div", { className: "mr-sv__loading-skeleton-title" }),
|
|
2094
|
+
/* @__PURE__ */ jsx22("div", { className: "mr-sv__loading-skeleton-sub" })
|
|
2081
2095
|
] })
|
|
2082
2096
|
] }, i)) }),
|
|
2083
|
-
/* @__PURE__ */
|
|
2084
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ jsxs17("div", { className: "mr-sv__loading-panel", children: [
|
|
2098
|
+
/* @__PURE__ */ jsx22(
|
|
2085
2099
|
LoaderCircle,
|
|
2086
2100
|
{
|
|
2087
2101
|
size: 44,
|
|
@@ -2089,41 +2103,41 @@ function RecordsLoadingState({
|
|
|
2089
2103
|
"aria-hidden": true
|
|
2090
2104
|
}
|
|
2091
2105
|
),
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
2094
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ jsxs17("div", { className: "mr-sv__empty-text", children: [
|
|
2107
|
+
/* @__PURE__ */ jsx22(Typography_default, { variant: "heading", children: "Loading records..." }),
|
|
2108
|
+
/* @__PURE__ */ jsx22(Typography_default, { variant: "muted", children: patientName ? `Fetching ${patientName}'s medical history` : "Fetching medical history" })
|
|
2095
2109
|
] })
|
|
2096
2110
|
] })
|
|
2097
2111
|
] });
|
|
2098
2112
|
}
|
|
2099
2113
|
|
|
2100
2114
|
// src/illustrations/empty-state.tsx
|
|
2101
|
-
import { jsx as
|
|
2115
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2102
2116
|
function EmptyIllustration() {
|
|
2103
|
-
return /* @__PURE__ */
|
|
2104
|
-
/* @__PURE__ */
|
|
2105
|
-
/* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ jsxs18("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
2118
|
+
/* @__PURE__ */ jsxs18("g", { clipPath: "url(#clip0_sv_empty)", children: [
|
|
2119
|
+
/* @__PURE__ */ jsx23(
|
|
2106
2120
|
"path",
|
|
2107
2121
|
{
|
|
2108
2122
|
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",
|
|
2109
2123
|
fill: "#E8F0FF"
|
|
2110
2124
|
}
|
|
2111
2125
|
),
|
|
2112
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ jsx23("g", { opacity: "0.75", filter: "url(#filter0_sv_empty)", children: /* @__PURE__ */ jsx23(
|
|
2113
2127
|
"path",
|
|
2114
2128
|
{
|
|
2115
2129
|
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",
|
|
2116
2130
|
fill: "white"
|
|
2117
2131
|
}
|
|
2118
2132
|
) }),
|
|
2119
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ jsx23("g", { filter: "url(#filter1_sv_empty)", children: /* @__PURE__ */ jsx23(
|
|
2120
2134
|
"path",
|
|
2121
2135
|
{
|
|
2122
2136
|
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",
|
|
2123
2137
|
fill: "white"
|
|
2124
2138
|
}
|
|
2125
2139
|
) }),
|
|
2126
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ jsx23(
|
|
2127
2141
|
"path",
|
|
2128
2142
|
{
|
|
2129
2143
|
opacity: "0.5",
|
|
@@ -2131,7 +2145,7 @@ function EmptyIllustration() {
|
|
|
2131
2145
|
fill: "#DDE9F5"
|
|
2132
2146
|
}
|
|
2133
2147
|
),
|
|
2134
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ jsx23(
|
|
2135
2149
|
"path",
|
|
2136
2150
|
{
|
|
2137
2151
|
opacity: "0.5",
|
|
@@ -2139,14 +2153,14 @@ function EmptyIllustration() {
|
|
|
2139
2153
|
fill: "#DDE9F5"
|
|
2140
2154
|
}
|
|
2141
2155
|
),
|
|
2142
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ jsx23("g", { filter: "url(#filter2_sv_empty)", children: /* @__PURE__ */ jsx23(
|
|
2143
2157
|
"path",
|
|
2144
2158
|
{
|
|
2145
2159
|
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",
|
|
2146
2160
|
fill: "#2563EB"
|
|
2147
2161
|
}
|
|
2148
2162
|
) }),
|
|
2149
|
-
/* @__PURE__ */
|
|
2163
|
+
/* @__PURE__ */ jsx23(
|
|
2150
2164
|
"path",
|
|
2151
2165
|
{
|
|
2152
2166
|
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",
|
|
@@ -2155,7 +2169,7 @@ function EmptyIllustration() {
|
|
|
2155
2169
|
strokeLinejoin: "round"
|
|
2156
2170
|
}
|
|
2157
2171
|
),
|
|
2158
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx23(
|
|
2159
2173
|
"path",
|
|
2160
2174
|
{
|
|
2161
2175
|
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",
|
|
@@ -2166,8 +2180,8 @@ function EmptyIllustration() {
|
|
|
2166
2180
|
}
|
|
2167
2181
|
)
|
|
2168
2182
|
] }),
|
|
2169
|
-
/* @__PURE__ */
|
|
2170
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ jsxs18("defs", { children: [
|
|
2184
|
+
/* @__PURE__ */ jsxs18(
|
|
2171
2185
|
"filter",
|
|
2172
2186
|
{
|
|
2173
2187
|
id: "filter0_sv_empty",
|
|
@@ -2178,8 +2192,8 @@ function EmptyIllustration() {
|
|
|
2178
2192
|
filterUnits: "userSpaceOnUse",
|
|
2179
2193
|
colorInterpolationFilters: "sRGB",
|
|
2180
2194
|
children: [
|
|
2181
|
-
/* @__PURE__ */
|
|
2182
|
-
/* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ jsx23("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2196
|
+
/* @__PURE__ */ jsx23(
|
|
2183
2197
|
"feColorMatrix",
|
|
2184
2198
|
{
|
|
2185
2199
|
in: "SourceAlpha",
|
|
@@ -2188,7 +2202,7 @@ function EmptyIllustration() {
|
|
|
2188
2202
|
result: "hardAlpha"
|
|
2189
2203
|
}
|
|
2190
2204
|
),
|
|
2191
|
-
/* @__PURE__ */
|
|
2205
|
+
/* @__PURE__ */ jsx23(
|
|
2192
2206
|
"feMorphology",
|
|
2193
2207
|
{
|
|
2194
2208
|
radius: "1",
|
|
@@ -2197,17 +2211,17 @@ function EmptyIllustration() {
|
|
|
2197
2211
|
result: "effect1_dropShadow"
|
|
2198
2212
|
}
|
|
2199
2213
|
),
|
|
2200
|
-
/* @__PURE__ */
|
|
2201
|
-
/* @__PURE__ */
|
|
2202
|
-
/* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2215
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1" }),
|
|
2216
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2217
|
+
/* @__PURE__ */ jsx23(
|
|
2204
2218
|
"feColorMatrix",
|
|
2205
2219
|
{
|
|
2206
2220
|
type: "matrix",
|
|
2207
2221
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2208
2222
|
}
|
|
2209
2223
|
),
|
|
2210
|
-
/* @__PURE__ */
|
|
2224
|
+
/* @__PURE__ */ jsx23(
|
|
2211
2225
|
"feBlend",
|
|
2212
2226
|
{
|
|
2213
2227
|
mode: "normal",
|
|
@@ -2215,7 +2229,7 @@ function EmptyIllustration() {
|
|
|
2215
2229
|
result: "effect1_dropShadow"
|
|
2216
2230
|
}
|
|
2217
2231
|
),
|
|
2218
|
-
/* @__PURE__ */
|
|
2232
|
+
/* @__PURE__ */ jsx23(
|
|
2219
2233
|
"feColorMatrix",
|
|
2220
2234
|
{
|
|
2221
2235
|
in: "SourceAlpha",
|
|
@@ -2224,17 +2238,17 @@ function EmptyIllustration() {
|
|
|
2224
2238
|
result: "hardAlpha"
|
|
2225
2239
|
}
|
|
2226
2240
|
),
|
|
2227
|
-
/* @__PURE__ */
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
/* @__PURE__ */
|
|
2241
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2242
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2243
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2244
|
+
/* @__PURE__ */ jsx23(
|
|
2231
2245
|
"feColorMatrix",
|
|
2232
2246
|
{
|
|
2233
2247
|
type: "matrix",
|
|
2234
2248
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2235
2249
|
}
|
|
2236
2250
|
),
|
|
2237
|
-
/* @__PURE__ */
|
|
2251
|
+
/* @__PURE__ */ jsx23(
|
|
2238
2252
|
"feBlend",
|
|
2239
2253
|
{
|
|
2240
2254
|
mode: "normal",
|
|
@@ -2242,7 +2256,7 @@ function EmptyIllustration() {
|
|
|
2242
2256
|
result: "effect2_dropShadow"
|
|
2243
2257
|
}
|
|
2244
2258
|
),
|
|
2245
|
-
/* @__PURE__ */
|
|
2259
|
+
/* @__PURE__ */ jsx23(
|
|
2246
2260
|
"feBlend",
|
|
2247
2261
|
{
|
|
2248
2262
|
mode: "normal",
|
|
@@ -2254,7 +2268,7 @@ function EmptyIllustration() {
|
|
|
2254
2268
|
]
|
|
2255
2269
|
}
|
|
2256
2270
|
),
|
|
2257
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ jsxs18(
|
|
2258
2272
|
"filter",
|
|
2259
2273
|
{
|
|
2260
2274
|
id: "filter1_sv_empty",
|
|
@@ -2265,8 +2279,8 @@ function EmptyIllustration() {
|
|
|
2265
2279
|
filterUnits: "userSpaceOnUse",
|
|
2266
2280
|
colorInterpolationFilters: "sRGB",
|
|
2267
2281
|
children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */
|
|
2282
|
+
/* @__PURE__ */ jsx23("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2283
|
+
/* @__PURE__ */ jsx23(
|
|
2270
2284
|
"feColorMatrix",
|
|
2271
2285
|
{
|
|
2272
2286
|
in: "SourceAlpha",
|
|
@@ -2275,7 +2289,7 @@ function EmptyIllustration() {
|
|
|
2275
2289
|
result: "hardAlpha"
|
|
2276
2290
|
}
|
|
2277
2291
|
),
|
|
2278
|
-
/* @__PURE__ */
|
|
2292
|
+
/* @__PURE__ */ jsx23(
|
|
2279
2293
|
"feMorphology",
|
|
2280
2294
|
{
|
|
2281
2295
|
radius: "1",
|
|
@@ -2284,17 +2298,17 @@ function EmptyIllustration() {
|
|
|
2284
2298
|
result: "effect1_dropShadow"
|
|
2285
2299
|
}
|
|
2286
2300
|
),
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2302
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1" }),
|
|
2303
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2304
|
+
/* @__PURE__ */ jsx23(
|
|
2291
2305
|
"feColorMatrix",
|
|
2292
2306
|
{
|
|
2293
2307
|
type: "matrix",
|
|
2294
2308
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2295
2309
|
}
|
|
2296
2310
|
),
|
|
2297
|
-
/* @__PURE__ */
|
|
2311
|
+
/* @__PURE__ */ jsx23(
|
|
2298
2312
|
"feBlend",
|
|
2299
2313
|
{
|
|
2300
2314
|
mode: "normal",
|
|
@@ -2302,7 +2316,7 @@ function EmptyIllustration() {
|
|
|
2302
2316
|
result: "effect1_dropShadow"
|
|
2303
2317
|
}
|
|
2304
2318
|
),
|
|
2305
|
-
/* @__PURE__ */
|
|
2319
|
+
/* @__PURE__ */ jsx23(
|
|
2306
2320
|
"feColorMatrix",
|
|
2307
2321
|
{
|
|
2308
2322
|
in: "SourceAlpha",
|
|
@@ -2311,17 +2325,17 @@ function EmptyIllustration() {
|
|
|
2311
2325
|
result: "hardAlpha"
|
|
2312
2326
|
}
|
|
2313
2327
|
),
|
|
2314
|
-
/* @__PURE__ */
|
|
2315
|
-
/* @__PURE__ */
|
|
2316
|
-
/* @__PURE__ */
|
|
2317
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2329
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2330
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2331
|
+
/* @__PURE__ */ jsx23(
|
|
2318
2332
|
"feColorMatrix",
|
|
2319
2333
|
{
|
|
2320
2334
|
type: "matrix",
|
|
2321
2335
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2322
2336
|
}
|
|
2323
2337
|
),
|
|
2324
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ jsx23(
|
|
2325
2339
|
"feBlend",
|
|
2326
2340
|
{
|
|
2327
2341
|
mode: "normal",
|
|
@@ -2329,7 +2343,7 @@ function EmptyIllustration() {
|
|
|
2329
2343
|
result: "effect2_dropShadow"
|
|
2330
2344
|
}
|
|
2331
2345
|
),
|
|
2332
|
-
/* @__PURE__ */
|
|
2346
|
+
/* @__PURE__ */ jsx23(
|
|
2333
2347
|
"feBlend",
|
|
2334
2348
|
{
|
|
2335
2349
|
mode: "normal",
|
|
@@ -2341,7 +2355,7 @@ function EmptyIllustration() {
|
|
|
2341
2355
|
]
|
|
2342
2356
|
}
|
|
2343
2357
|
),
|
|
2344
|
-
/* @__PURE__ */
|
|
2358
|
+
/* @__PURE__ */ jsxs18(
|
|
2345
2359
|
"filter",
|
|
2346
2360
|
{
|
|
2347
2361
|
id: "filter2_sv_empty",
|
|
@@ -2352,8 +2366,8 @@ function EmptyIllustration() {
|
|
|
2352
2366
|
filterUnits: "userSpaceOnUse",
|
|
2353
2367
|
colorInterpolationFilters: "sRGB",
|
|
2354
2368
|
children: [
|
|
2355
|
-
/* @__PURE__ */
|
|
2356
|
-
/* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ jsx23("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2370
|
+
/* @__PURE__ */ jsx23(
|
|
2357
2371
|
"feColorMatrix",
|
|
2358
2372
|
{
|
|
2359
2373
|
in: "SourceAlpha",
|
|
@@ -2362,7 +2376,7 @@ function EmptyIllustration() {
|
|
|
2362
2376
|
result: "hardAlpha"
|
|
2363
2377
|
}
|
|
2364
2378
|
),
|
|
2365
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ jsx23(
|
|
2366
2380
|
"feMorphology",
|
|
2367
2381
|
{
|
|
2368
2382
|
radius: "1",
|
|
@@ -2371,17 +2385,17 @@ function EmptyIllustration() {
|
|
|
2371
2385
|
result: "effect1_dropShadow"
|
|
2372
2386
|
}
|
|
2373
2387
|
),
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2377
|
-
/* @__PURE__ */
|
|
2388
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2389
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1" }),
|
|
2390
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2391
|
+
/* @__PURE__ */ jsx23(
|
|
2378
2392
|
"feColorMatrix",
|
|
2379
2393
|
{
|
|
2380
2394
|
type: "matrix",
|
|
2381
2395
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2382
2396
|
}
|
|
2383
2397
|
),
|
|
2384
|
-
/* @__PURE__ */
|
|
2398
|
+
/* @__PURE__ */ jsx23(
|
|
2385
2399
|
"feBlend",
|
|
2386
2400
|
{
|
|
2387
2401
|
mode: "normal",
|
|
@@ -2389,7 +2403,7 @@ function EmptyIllustration() {
|
|
|
2389
2403
|
result: "effect1_dropShadow"
|
|
2390
2404
|
}
|
|
2391
2405
|
),
|
|
2392
|
-
/* @__PURE__ */
|
|
2406
|
+
/* @__PURE__ */ jsx23(
|
|
2393
2407
|
"feColorMatrix",
|
|
2394
2408
|
{
|
|
2395
2409
|
in: "SourceAlpha",
|
|
@@ -2398,17 +2412,17 @@ function EmptyIllustration() {
|
|
|
2398
2412
|
result: "hardAlpha"
|
|
2399
2413
|
}
|
|
2400
2414
|
),
|
|
2401
|
-
/* @__PURE__ */
|
|
2402
|
-
/* @__PURE__ */
|
|
2403
|
-
/* @__PURE__ */
|
|
2404
|
-
/* @__PURE__ */
|
|
2415
|
+
/* @__PURE__ */ jsx23("feOffset", { dy: "1" }),
|
|
2416
|
+
/* @__PURE__ */ jsx23("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2417
|
+
/* @__PURE__ */ jsx23("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2418
|
+
/* @__PURE__ */ jsx23(
|
|
2405
2419
|
"feColorMatrix",
|
|
2406
2420
|
{
|
|
2407
2421
|
type: "matrix",
|
|
2408
2422
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2409
2423
|
}
|
|
2410
2424
|
),
|
|
2411
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ jsx23(
|
|
2412
2426
|
"feBlend",
|
|
2413
2427
|
{
|
|
2414
2428
|
mode: "normal",
|
|
@@ -2416,7 +2430,7 @@ function EmptyIllustration() {
|
|
|
2416
2430
|
result: "effect2_dropShadow"
|
|
2417
2431
|
}
|
|
2418
2432
|
),
|
|
2419
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ jsx23(
|
|
2420
2434
|
"feBlend",
|
|
2421
2435
|
{
|
|
2422
2436
|
mode: "normal",
|
|
@@ -2428,19 +2442,19 @@ function EmptyIllustration() {
|
|
|
2428
2442
|
]
|
|
2429
2443
|
}
|
|
2430
2444
|
),
|
|
2431
|
-
/* @__PURE__ */
|
|
2445
|
+
/* @__PURE__ */ jsx23("clipPath", { id: "clip0_sv_empty", children: /* @__PURE__ */ jsx23("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2432
2446
|
] })
|
|
2433
2447
|
] });
|
|
2434
2448
|
}
|
|
2435
2449
|
|
|
2436
2450
|
// src/widgets/states/EmptyState.tsx
|
|
2437
|
-
import { jsx as
|
|
2451
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2438
2452
|
function EmptyState() {
|
|
2439
|
-
return /* @__PURE__ */
|
|
2440
|
-
/* @__PURE__ */
|
|
2441
|
-
/* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2453
|
+
return /* @__PURE__ */ jsxs19("div", { className: "mr-sv__empty", children: [
|
|
2454
|
+
/* @__PURE__ */ jsx24(EmptyIllustration, {}),
|
|
2455
|
+
/* @__PURE__ */ jsxs19("div", { className: "mr-sv__empty-text", children: [
|
|
2456
|
+
/* @__PURE__ */ jsx24(Typography_default, { variant: "heading", children: "Select a record or search" }),
|
|
2457
|
+
/* @__PURE__ */ jsx24(Typography_default, { variant: "muted", children: "Pick a record on the left to see its vitals or use the search bar." })
|
|
2444
2458
|
] })
|
|
2445
2459
|
] });
|
|
2446
2460
|
}
|
|
@@ -2450,32 +2464,32 @@ import { useState as useState6 } from "react";
|
|
|
2450
2464
|
import { RotateCcw } from "lucide-react";
|
|
2451
2465
|
|
|
2452
2466
|
// src/illustrations/error.tsx
|
|
2453
|
-
import { jsx as
|
|
2467
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2454
2468
|
function ErrorIllustration() {
|
|
2455
|
-
return /* @__PURE__ */
|
|
2456
|
-
/* @__PURE__ */
|
|
2457
|
-
/* @__PURE__ */
|
|
2469
|
+
return /* @__PURE__ */ jsxs20("svg", { width: "96", height: "96", viewBox: "0 0 96 96", fill: "none", "aria-hidden": true, children: [
|
|
2470
|
+
/* @__PURE__ */ jsxs20("g", { clipPath: "url(#clip0_sv_terr)", children: [
|
|
2471
|
+
/* @__PURE__ */ jsx25(
|
|
2458
2472
|
"path",
|
|
2459
2473
|
{
|
|
2460
2474
|
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",
|
|
2461
2475
|
fill: "#FFEBED"
|
|
2462
2476
|
}
|
|
2463
2477
|
),
|
|
2464
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ jsx25("g", { opacity: "0.75", filter: "url(#filter0_sv_terr)", children: /* @__PURE__ */ jsx25(
|
|
2465
2479
|
"path",
|
|
2466
2480
|
{
|
|
2467
2481
|
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",
|
|
2468
2482
|
fill: "white"
|
|
2469
2483
|
}
|
|
2470
2484
|
) }),
|
|
2471
|
-
/* @__PURE__ */
|
|
2485
|
+
/* @__PURE__ */ jsx25("g", { filter: "url(#filter1_sv_terr)", children: /* @__PURE__ */ jsx25(
|
|
2472
2486
|
"path",
|
|
2473
2487
|
{
|
|
2474
2488
|
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",
|
|
2475
2489
|
fill: "white"
|
|
2476
2490
|
}
|
|
2477
2491
|
) }),
|
|
2478
|
-
/* @__PURE__ */
|
|
2492
|
+
/* @__PURE__ */ jsx25(
|
|
2479
2493
|
"path",
|
|
2480
2494
|
{
|
|
2481
2495
|
d: "M43.7998 33.7188V40.4387",
|
|
@@ -2484,14 +2498,14 @@ function ErrorIllustration() {
|
|
|
2484
2498
|
strokeLinecap: "round"
|
|
2485
2499
|
}
|
|
2486
2500
|
),
|
|
2487
|
-
/* @__PURE__ */
|
|
2501
|
+
/* @__PURE__ */ jsx25(
|
|
2488
2502
|
"path",
|
|
2489
2503
|
{
|
|
2490
2504
|
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",
|
|
2491
2505
|
fill: "#EF4444"
|
|
2492
2506
|
}
|
|
2493
2507
|
),
|
|
2494
|
-
/* @__PURE__ */
|
|
2508
|
+
/* @__PURE__ */ jsx25(
|
|
2495
2509
|
"path",
|
|
2496
2510
|
{
|
|
2497
2511
|
opacity: "0.55",
|
|
@@ -2499,7 +2513,7 @@ function ErrorIllustration() {
|
|
|
2499
2513
|
fill: "#FECACA"
|
|
2500
2514
|
}
|
|
2501
2515
|
),
|
|
2502
|
-
/* @__PURE__ */
|
|
2516
|
+
/* @__PURE__ */ jsx25(
|
|
2503
2517
|
"path",
|
|
2504
2518
|
{
|
|
2505
2519
|
opacity: "0.55",
|
|
@@ -2507,14 +2521,14 @@ function ErrorIllustration() {
|
|
|
2507
2521
|
fill: "#FECACA"
|
|
2508
2522
|
}
|
|
2509
2523
|
),
|
|
2510
|
-
/* @__PURE__ */
|
|
2524
|
+
/* @__PURE__ */ jsx25("g", { filter: "url(#filter2_sv_terr)", children: /* @__PURE__ */ jsx25(
|
|
2511
2525
|
"path",
|
|
2512
2526
|
{
|
|
2513
2527
|
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",
|
|
2514
2528
|
fill: "#DC2626"
|
|
2515
2529
|
}
|
|
2516
2530
|
) }),
|
|
2517
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ jsx25(
|
|
2518
2532
|
"path",
|
|
2519
2533
|
{
|
|
2520
2534
|
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",
|
|
@@ -2524,8 +2538,8 @@ function ErrorIllustration() {
|
|
|
2524
2538
|
}
|
|
2525
2539
|
)
|
|
2526
2540
|
] }),
|
|
2527
|
-
/* @__PURE__ */
|
|
2528
|
-
/* @__PURE__ */
|
|
2541
|
+
/* @__PURE__ */ jsxs20("defs", { children: [
|
|
2542
|
+
/* @__PURE__ */ jsxs20(
|
|
2529
2543
|
"filter",
|
|
2530
2544
|
{
|
|
2531
2545
|
id: "filter0_sv_terr",
|
|
@@ -2536,8 +2550,8 @@ function ErrorIllustration() {
|
|
|
2536
2550
|
filterUnits: "userSpaceOnUse",
|
|
2537
2551
|
colorInterpolationFilters: "sRGB",
|
|
2538
2552
|
children: [
|
|
2539
|
-
/* @__PURE__ */
|
|
2540
|
-
/* @__PURE__ */
|
|
2553
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2554
|
+
/* @__PURE__ */ jsx25(
|
|
2541
2555
|
"feColorMatrix",
|
|
2542
2556
|
{
|
|
2543
2557
|
in: "SourceAlpha",
|
|
@@ -2546,7 +2560,7 @@ function ErrorIllustration() {
|
|
|
2546
2560
|
result: "hardAlpha"
|
|
2547
2561
|
}
|
|
2548
2562
|
),
|
|
2549
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ jsx25(
|
|
2550
2564
|
"feMorphology",
|
|
2551
2565
|
{
|
|
2552
2566
|
radius: "1",
|
|
@@ -2555,17 +2569,17 @@ function ErrorIllustration() {
|
|
|
2555
2569
|
result: "effect1_ds_sv_terr"
|
|
2556
2570
|
}
|
|
2557
2571
|
),
|
|
2558
|
-
/* @__PURE__ */
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
2572
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2573
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2574
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2575
|
+
/* @__PURE__ */ jsx25(
|
|
2562
2576
|
"feColorMatrix",
|
|
2563
2577
|
{
|
|
2564
2578
|
type: "matrix",
|
|
2565
2579
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2566
2580
|
}
|
|
2567
2581
|
),
|
|
2568
|
-
/* @__PURE__ */
|
|
2582
|
+
/* @__PURE__ */ jsx25(
|
|
2569
2583
|
"feBlend",
|
|
2570
2584
|
{
|
|
2571
2585
|
mode: "normal",
|
|
@@ -2573,7 +2587,7 @@ function ErrorIllustration() {
|
|
|
2573
2587
|
result: "effect1_ds_sv_terr"
|
|
2574
2588
|
}
|
|
2575
2589
|
),
|
|
2576
|
-
/* @__PURE__ */
|
|
2590
|
+
/* @__PURE__ */ jsx25(
|
|
2577
2591
|
"feColorMatrix",
|
|
2578
2592
|
{
|
|
2579
2593
|
in: "SourceAlpha",
|
|
@@ -2582,17 +2596,17 @@ function ErrorIllustration() {
|
|
|
2582
2596
|
result: "hardAlpha"
|
|
2583
2597
|
}
|
|
2584
2598
|
),
|
|
2585
|
-
/* @__PURE__ */
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2599
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2600
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2601
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2602
|
+
/* @__PURE__ */ jsx25(
|
|
2589
2603
|
"feColorMatrix",
|
|
2590
2604
|
{
|
|
2591
2605
|
type: "matrix",
|
|
2592
2606
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2593
2607
|
}
|
|
2594
2608
|
),
|
|
2595
|
-
/* @__PURE__ */
|
|
2609
|
+
/* @__PURE__ */ jsx25(
|
|
2596
2610
|
"feBlend",
|
|
2597
2611
|
{
|
|
2598
2612
|
mode: "normal",
|
|
@@ -2600,7 +2614,7 @@ function ErrorIllustration() {
|
|
|
2600
2614
|
result: "effect2_ds_sv_terr"
|
|
2601
2615
|
}
|
|
2602
2616
|
),
|
|
2603
|
-
/* @__PURE__ */
|
|
2617
|
+
/* @__PURE__ */ jsx25(
|
|
2604
2618
|
"feBlend",
|
|
2605
2619
|
{
|
|
2606
2620
|
mode: "normal",
|
|
@@ -2612,7 +2626,7 @@ function ErrorIllustration() {
|
|
|
2612
2626
|
]
|
|
2613
2627
|
}
|
|
2614
2628
|
),
|
|
2615
|
-
/* @__PURE__ */
|
|
2629
|
+
/* @__PURE__ */ jsxs20(
|
|
2616
2630
|
"filter",
|
|
2617
2631
|
{
|
|
2618
2632
|
id: "filter1_sv_terr",
|
|
@@ -2623,8 +2637,8 @@ function ErrorIllustration() {
|
|
|
2623
2637
|
filterUnits: "userSpaceOnUse",
|
|
2624
2638
|
colorInterpolationFilters: "sRGB",
|
|
2625
2639
|
children: [
|
|
2626
|
-
/* @__PURE__ */
|
|
2627
|
-
/* @__PURE__ */
|
|
2640
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2641
|
+
/* @__PURE__ */ jsx25(
|
|
2628
2642
|
"feColorMatrix",
|
|
2629
2643
|
{
|
|
2630
2644
|
in: "SourceAlpha",
|
|
@@ -2633,7 +2647,7 @@ function ErrorIllustration() {
|
|
|
2633
2647
|
result: "hardAlpha"
|
|
2634
2648
|
}
|
|
2635
2649
|
),
|
|
2636
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ jsx25(
|
|
2637
2651
|
"feMorphology",
|
|
2638
2652
|
{
|
|
2639
2653
|
radius: "1",
|
|
@@ -2642,17 +2656,17 @@ function ErrorIllustration() {
|
|
|
2642
2656
|
result: "effect1_ds_sv_terr"
|
|
2643
2657
|
}
|
|
2644
2658
|
),
|
|
2645
|
-
/* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2647
|
-
/* @__PURE__ */
|
|
2648
|
-
/* @__PURE__ */
|
|
2659
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2660
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2661
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2662
|
+
/* @__PURE__ */ jsx25(
|
|
2649
2663
|
"feColorMatrix",
|
|
2650
2664
|
{
|
|
2651
2665
|
type: "matrix",
|
|
2652
2666
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2653
2667
|
}
|
|
2654
2668
|
),
|
|
2655
|
-
/* @__PURE__ */
|
|
2669
|
+
/* @__PURE__ */ jsx25(
|
|
2656
2670
|
"feBlend",
|
|
2657
2671
|
{
|
|
2658
2672
|
mode: "normal",
|
|
@@ -2660,7 +2674,7 @@ function ErrorIllustration() {
|
|
|
2660
2674
|
result: "effect1_ds_sv_terr"
|
|
2661
2675
|
}
|
|
2662
2676
|
),
|
|
2663
|
-
/* @__PURE__ */
|
|
2677
|
+
/* @__PURE__ */ jsx25(
|
|
2664
2678
|
"feColorMatrix",
|
|
2665
2679
|
{
|
|
2666
2680
|
in: "SourceAlpha",
|
|
@@ -2669,17 +2683,17 @@ function ErrorIllustration() {
|
|
|
2669
2683
|
result: "hardAlpha"
|
|
2670
2684
|
}
|
|
2671
2685
|
),
|
|
2672
|
-
/* @__PURE__ */
|
|
2673
|
-
/* @__PURE__ */
|
|
2674
|
-
/* @__PURE__ */
|
|
2675
|
-
/* @__PURE__ */
|
|
2686
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2687
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2688
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2689
|
+
/* @__PURE__ */ jsx25(
|
|
2676
2690
|
"feColorMatrix",
|
|
2677
2691
|
{
|
|
2678
2692
|
type: "matrix",
|
|
2679
2693
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2680
2694
|
}
|
|
2681
2695
|
),
|
|
2682
|
-
/* @__PURE__ */
|
|
2696
|
+
/* @__PURE__ */ jsx25(
|
|
2683
2697
|
"feBlend",
|
|
2684
2698
|
{
|
|
2685
2699
|
mode: "normal",
|
|
@@ -2687,7 +2701,7 @@ function ErrorIllustration() {
|
|
|
2687
2701
|
result: "effect2_ds_sv_terr"
|
|
2688
2702
|
}
|
|
2689
2703
|
),
|
|
2690
|
-
/* @__PURE__ */
|
|
2704
|
+
/* @__PURE__ */ jsx25(
|
|
2691
2705
|
"feBlend",
|
|
2692
2706
|
{
|
|
2693
2707
|
mode: "normal",
|
|
@@ -2699,7 +2713,7 @@ function ErrorIllustration() {
|
|
|
2699
2713
|
]
|
|
2700
2714
|
}
|
|
2701
2715
|
),
|
|
2702
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsxs20(
|
|
2703
2717
|
"filter",
|
|
2704
2718
|
{
|
|
2705
2719
|
id: "filter2_sv_terr",
|
|
@@ -2710,8 +2724,8 @@ function ErrorIllustration() {
|
|
|
2710
2724
|
filterUnits: "userSpaceOnUse",
|
|
2711
2725
|
colorInterpolationFilters: "sRGB",
|
|
2712
2726
|
children: [
|
|
2713
|
-
/* @__PURE__ */
|
|
2714
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
2728
|
+
/* @__PURE__ */ jsx25(
|
|
2715
2729
|
"feColorMatrix",
|
|
2716
2730
|
{
|
|
2717
2731
|
in: "SourceAlpha",
|
|
@@ -2720,7 +2734,7 @@ function ErrorIllustration() {
|
|
|
2720
2734
|
result: "hardAlpha"
|
|
2721
2735
|
}
|
|
2722
2736
|
),
|
|
2723
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ jsx25(
|
|
2724
2738
|
"feMorphology",
|
|
2725
2739
|
{
|
|
2726
2740
|
radius: "1",
|
|
@@ -2729,17 +2743,17 @@ function ErrorIllustration() {
|
|
|
2729
2743
|
result: "effect1_ds_sv_terr"
|
|
2730
2744
|
}
|
|
2731
2745
|
),
|
|
2732
|
-
/* @__PURE__ */
|
|
2733
|
-
/* @__PURE__ */
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2747
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
|
|
2748
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2749
|
+
/* @__PURE__ */ jsx25(
|
|
2736
2750
|
"feColorMatrix",
|
|
2737
2751
|
{
|
|
2738
2752
|
type: "matrix",
|
|
2739
2753
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2740
2754
|
}
|
|
2741
2755
|
),
|
|
2742
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ jsx25(
|
|
2743
2757
|
"feBlend",
|
|
2744
2758
|
{
|
|
2745
2759
|
mode: "normal",
|
|
@@ -2747,7 +2761,7 @@ function ErrorIllustration() {
|
|
|
2747
2761
|
result: "effect1_ds_sv_terr"
|
|
2748
2762
|
}
|
|
2749
2763
|
),
|
|
2750
|
-
/* @__PURE__ */
|
|
2764
|
+
/* @__PURE__ */ jsx25(
|
|
2751
2765
|
"feColorMatrix",
|
|
2752
2766
|
{
|
|
2753
2767
|
in: "SourceAlpha",
|
|
@@ -2756,17 +2770,17 @@ function ErrorIllustration() {
|
|
|
2756
2770
|
result: "hardAlpha"
|
|
2757
2771
|
}
|
|
2758
2772
|
),
|
|
2759
|
-
/* @__PURE__ */
|
|
2760
|
-
/* @__PURE__ */
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
/* @__PURE__ */
|
|
2773
|
+
/* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
|
|
2774
|
+
/* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1.5" }),
|
|
2775
|
+
/* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2776
|
+
/* @__PURE__ */ jsx25(
|
|
2763
2777
|
"feColorMatrix",
|
|
2764
2778
|
{
|
|
2765
2779
|
type: "matrix",
|
|
2766
2780
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
2767
2781
|
}
|
|
2768
2782
|
),
|
|
2769
|
-
/* @__PURE__ */
|
|
2783
|
+
/* @__PURE__ */ jsx25(
|
|
2770
2784
|
"feBlend",
|
|
2771
2785
|
{
|
|
2772
2786
|
mode: "normal",
|
|
@@ -2774,7 +2788,7 @@ function ErrorIllustration() {
|
|
|
2774
2788
|
result: "effect2_ds_sv_terr"
|
|
2775
2789
|
}
|
|
2776
2790
|
),
|
|
2777
|
-
/* @__PURE__ */
|
|
2791
|
+
/* @__PURE__ */ jsx25(
|
|
2778
2792
|
"feBlend",
|
|
2779
2793
|
{
|
|
2780
2794
|
mode: "normal",
|
|
@@ -2786,14 +2800,14 @@ function ErrorIllustration() {
|
|
|
2786
2800
|
]
|
|
2787
2801
|
}
|
|
2788
2802
|
),
|
|
2789
|
-
/* @__PURE__ */
|
|
2803
|
+
/* @__PURE__ */ jsx25("clipPath", { id: "clip0_sv_terr", children: /* @__PURE__ */ jsx25("rect", { width: "96", height: "96", fill: "white" }) })
|
|
2790
2804
|
] })
|
|
2791
2805
|
] });
|
|
2792
2806
|
}
|
|
2793
2807
|
var error_default = ErrorIllustration;
|
|
2794
2808
|
|
|
2795
2809
|
// src/widgets/states/TabLoadError.tsx
|
|
2796
|
-
import { jsx as
|
|
2810
|
+
import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2797
2811
|
function TabLoadError({
|
|
2798
2812
|
onRetry
|
|
2799
2813
|
}) {
|
|
@@ -2808,13 +2822,13 @@ function TabLoadError({
|
|
|
2808
2822
|
setRetrying(false);
|
|
2809
2823
|
}
|
|
2810
2824
|
};
|
|
2811
|
-
return /* @__PURE__ */
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
/* @__PURE__ */
|
|
2814
|
-
/* @__PURE__ */
|
|
2815
|
-
/* @__PURE__ */
|
|
2825
|
+
return /* @__PURE__ */ jsxs21("div", { className: "mr-sv__empty", children: [
|
|
2826
|
+
/* @__PURE__ */ jsx26(error_default, {}),
|
|
2827
|
+
/* @__PURE__ */ jsxs21("div", { className: "mr-sv__empty-text", children: [
|
|
2828
|
+
/* @__PURE__ */ jsx26(Typography_default, { variant: "heading", children: "Something went wrong" }),
|
|
2829
|
+
/* @__PURE__ */ jsx26(Typography_default, { variant: "muted", children: "We ran into an error when fetching records. Please retry or contact support if the problem persists." })
|
|
2816
2830
|
] }),
|
|
2817
|
-
onRetry && /* @__PURE__ */
|
|
2831
|
+
onRetry && /* @__PURE__ */ jsxs21(
|
|
2818
2832
|
"button",
|
|
2819
2833
|
{
|
|
2820
2834
|
type: "button",
|
|
@@ -2822,7 +2836,7 @@ function TabLoadError({
|
|
|
2822
2836
|
disabled: retrying,
|
|
2823
2837
|
onClick: handleRetry,
|
|
2824
2838
|
children: [
|
|
2825
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ jsx26(
|
|
2826
2840
|
RotateCcw,
|
|
2827
2841
|
{
|
|
2828
2842
|
size: 16,
|
|
@@ -2856,6 +2870,7 @@ export {
|
|
|
2856
2870
|
SearchInput_default,
|
|
2857
2871
|
Skeleton,
|
|
2858
2872
|
Badge_default,
|
|
2873
|
+
DateTile_default,
|
|
2859
2874
|
Tooltip,
|
|
2860
2875
|
IconButton,
|
|
2861
2876
|
FilterChip_default,
|
|
@@ -2882,4 +2897,4 @@ export {
|
|
|
2882
2897
|
EmptyState,
|
|
2883
2898
|
TabLoadError
|
|
2884
2899
|
};
|
|
2885
|
-
//# sourceMappingURL=chunk-
|
|
2900
|
+
//# sourceMappingURL=chunk-AYUXXGPV.mjs.map
|