@gen-epix/ui-client-casedb 4.0.1 → 4.1.0
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/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseDbDownloadUtil.js +1 -1
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
- package/dist/_chunks/CaseInfoDialog.js +4 -4
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +4 -4
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
- package/dist/_chunks/Dashboard.js +3 -2
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +6 -6
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/HomePageTrends.js.map +1 -1
- package/dist/_chunks/LineListWidget.js +46 -45
- package/dist/_chunks/LineListWidget.js.map +1 -1
- package/dist/_chunks/Upload.js +308 -304
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/UploadUtil.js +44 -40
- package/dist/_chunks/UploadUtil.js.map +1 -1
- package/dist/_chunks/dashboardStore.js.map +1 -1
- package/dist/classes/services/EventBusService/EventBusService.d.ts +9 -2
- package/dist/classes/services/EventBusService/index.js.map +1 -1
- package/dist/components/ui/MapWidget/index.js.map +1 -1
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
- package/dist/components/ui/SequenceDownloadDialog/index.js +53 -40
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
- package/dist/components/ui/TreeWidget/index.js +8 -2
- package/dist/components/ui/TreeWidget/index.js.map +1 -1
- package/dist/locale/en.json +0 -11
- package/dist/locale/nl.json +0 -11
- package/dist/models/config.d.ts +2 -0
- package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -0
- package/package.json +23 -23
- package/dist/components/ui/FileSelector/FileSelector.d.ts +0 -7
- package/dist/components/ui/FileSelector/index.d.ts +0 -1
- package/dist/components/ui/FileSelector/index.js +0 -206
- package/dist/components/ui/FileSelector/index.js.map +0 -1
- package/dist/utils/FileUtil/FileUtil.d.ts +0 -5
- package/dist/utils/FileUtil/index.d.ts +0 -1
- package/dist/utils/FileUtil/index.js +0 -15
- package/dist/utils/FileUtil/index.js.map +0 -1
package/dist/_chunks/Upload.js
CHANGED
|
@@ -16,49 +16,49 @@ import { useCaseTypeOptionsQuery as _, useCaseTypesQuery as v } from "../dataHoo
|
|
|
16
16
|
import { useDataCollectionOptionsQuery as y } from "../dataHooks/useDataCollectionsQuery/index.js";
|
|
17
17
|
import { useColMapQuery as b, useColsQuery as x } from "../dataHooks/useColsQuery/index.js";
|
|
18
18
|
import { CaseContentFormDialog as S } from "../components/ui/CaseContentFormDialog/index.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { CaseDbCaseApi as k, CaseDbDataIssueType as A, CaseDbEtlStatus as j, CaseDbUploadAction as M } from "@gen-epix/api-casedb";
|
|
19
|
+
import { useSequencingProtocolOptionsQuery as C } from "../dataHooks/useSequencingProtocolsQuery/index.js";
|
|
20
|
+
import { useAssemblyProtocolOptionsQuery as w } from "../dataHooks/useAssemblyProtocolsQuery/index.js";
|
|
21
|
+
import { mixed as T, object as E, string as D } from "yup";
|
|
22
|
+
import { CaseDbCaseApi as O, CaseDbDataIssueType as k, CaseDbEtlStatus as A, CaseDbUploadAction as j } from "@gen-epix/api-casedb";
|
|
24
23
|
import { QueryClientService as ee } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
|
|
25
|
-
import { ObjectUtil as
|
|
26
|
-
import { FORM_FIELD_DEFINITION_TYPE as
|
|
24
|
+
import { ObjectUtil as M } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
25
|
+
import { FORM_FIELD_DEFINITION_TYPE as N } from "@gen-epix/ui-core-form/models/form";
|
|
27
26
|
import { ConfigService as te } from "@gen-epix/ui-client-common/classes/services/ConfigService";
|
|
28
|
-
import { Alert as
|
|
29
|
-
import { use as W, useCallback as G, useEffect as K, useId as
|
|
27
|
+
import { Alert as P, AlertTitle as F, Autocomplete as ne, Box as I, Button as L, Container as R, ListItemIcon as z, ListItemText as B, MenuItem as re, Table as V, TableBody as H, TableCell as U, TableHead as ie, TableRow as ae, TextField as oe, Tooltip as se, Typography as ce, useTheme as le } from "@mui/material";
|
|
28
|
+
import { use as W, useCallback as G, useEffect as K, useId as ue, useMemo as q, useRef as J, useState as Y } from "react";
|
|
30
29
|
import { useTranslation as X } from "react-i18next";
|
|
31
|
-
import { TableStoreContextProvider as
|
|
30
|
+
import { TableStoreContextProvider as de, createTableStore as fe, useTableStoreContext as pe } from "@gen-epix/ui-client-common/stores/tableStore";
|
|
32
31
|
import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
33
|
-
import { ResponseHandler as
|
|
34
|
-
import { useItemQuery as
|
|
35
|
-
import { useArray as
|
|
36
|
-
import
|
|
37
|
-
import { Stepper as
|
|
38
|
-
import { GenericForm as
|
|
39
|
-
import { useQueryMemo as
|
|
40
|
-
import { useIdentifierIssuerOwnOrganizationOptionsQuery as
|
|
41
|
-
import { Select as
|
|
42
|
-
import { BackdropSpinner as
|
|
43
|
-
import { Confirmation as
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import { Table as
|
|
48
|
-
import { TABLE_COLUMN_FROZEN as
|
|
49
|
-
import { TableUtil as
|
|
50
|
-
import { useInitializeTableStore as
|
|
51
|
-
import { withDialog as
|
|
52
|
-
import { TestIdUtil as
|
|
53
|
-
import { FormUtil as
|
|
54
|
-
import { GenericErrorMessage as
|
|
55
|
-
import { InactivityService as
|
|
56
|
-
import { LinearProgressWithLabel as
|
|
57
|
-
import { RouterService as
|
|
32
|
+
import { ResponseHandler as me } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
|
|
33
|
+
import { useItemQuery as he } from "@gen-epix/ui-client-common/hooks/useItemQuery";
|
|
34
|
+
import { useArray as ge } from "@gen-epix/ui-core/hooks/useArray";
|
|
35
|
+
import _e from "@mui/material/Box";
|
|
36
|
+
import { Stepper as ve } from "@gen-epix/ui-core-components/components/Stepper";
|
|
37
|
+
import { GenericForm as ye } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
38
|
+
import { useQueryMemo as be } from "@gen-epix/ui-client-common/hooks/useQueryMemo";
|
|
39
|
+
import { useIdentifierIssuerOwnOrganizationOptionsQuery as xe } from "@gen-epix/ui-client-common/dataHooks/useIdentifierIssuerOwnOrganizationQuery";
|
|
40
|
+
import { Select as Se } from "@gen-epix/ui-core-form/components/fields/Select";
|
|
41
|
+
import { BackdropSpinner as Ce } from "@gen-epix/ui-core-components/components/BackdropSpinner";
|
|
42
|
+
import { Confirmation as we } from "@gen-epix/ui-core-components/components/Confirmation";
|
|
43
|
+
import Te from "@mui/icons-material/Edit";
|
|
44
|
+
import Ee from "@mui/icons-material/ErrorOutlined";
|
|
45
|
+
import De from "@mui/icons-material/Add";
|
|
46
|
+
import { Table as Oe, TableMenu as ke } from "@gen-epix/ui-client-common/components/ui/Table";
|
|
47
|
+
import { TABLE_COLUMN_FROZEN as Ae } from "@gen-epix/ui-client-common/models/table";
|
|
48
|
+
import { TableUtil as je } from "@gen-epix/ui-client-common/utils/TableUtil";
|
|
49
|
+
import { useInitializeTableStore as Me } from "@gen-epix/ui-client-common/hooks/useInitializeTableStore";
|
|
50
|
+
import { withDialog as Ne } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
51
|
+
import { TestIdUtil as Pe } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
52
|
+
import { FormUtil as Fe } from "@gen-epix/ui-core-form/utils/FormUtil";
|
|
53
|
+
import { GenericErrorMessage as Ie } from "@gen-epix/ui-client-common/components/ui/GenericErrorMessage";
|
|
54
|
+
import { InactivityService as Le } from "@gen-epix/ui-client-common/classes/services/InactivityService";
|
|
55
|
+
import { LinearProgressWithLabel as Re } from "@gen-epix/ui-core-components/components/LinearProgressWithLabel";
|
|
56
|
+
import { RouterService as ze } from "@gen-epix/ui-client-common/classes/services/RouterService";
|
|
57
|
+
import { MultiFileUploader as Be } from "@gen-epix/ui-core-components/components/MultiFileUploader";
|
|
58
58
|
//#region src/components/ui/Upload/UploadNavigation.tsx
|
|
59
59
|
var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proceedDisabled: r, proceedLabel: i }) => {
|
|
60
60
|
let { t: a } = X(), o = W(p), s = l(o, (e) => e.stepOrder), c = l(o, (e) => e.activeStep), u = l(o, (e) => e.goBackFromFirstStepCallback), d = l(o, (e) => e.goBackFromFirstStepLabel), f = c === s[0], m = f ? u ?? t : t;
|
|
61
|
-
return /* @__PURE__ */ $(
|
|
61
|
+
return /* @__PURE__ */ $(I, {
|
|
62
62
|
sx: {
|
|
63
63
|
borderTop: (e) => `1px solid ${e.palette.divider}`,
|
|
64
64
|
display: "flex",
|
|
@@ -67,11 +67,11 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
67
67
|
marginTop: 1,
|
|
68
68
|
paddingTop: 1
|
|
69
69
|
},
|
|
70
|
-
children: [m && /* @__PURE__ */ Q(
|
|
70
|
+
children: [m && /* @__PURE__ */ Q(L, {
|
|
71
71
|
onClick: m,
|
|
72
72
|
variant: "outlined",
|
|
73
73
|
children: (f ? d ?? e : e) ?? a`Go back`
|
|
74
|
-
}), n && /* @__PURE__ */ Q(
|
|
74
|
+
}), n && /* @__PURE__ */ Q(L, {
|
|
75
75
|
color: "secondary",
|
|
76
76
|
disabled: r,
|
|
77
77
|
onClick: n,
|
|
@@ -80,12 +80,16 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
80
80
|
})]
|
|
81
81
|
});
|
|
82
82
|
}, He = () => {
|
|
83
|
-
let { t: e } = X(), n = v(), r = _(), a = y(), o = x(), s =
|
|
84
|
-
caseTypeId:
|
|
85
|
-
createdInDataCollectionId:
|
|
86
|
-
fileList:
|
|
87
|
-
sheet:
|
|
88
|
-
|
|
83
|
+
let { t: e } = X(), n = v(), r = _(), a = y(), o = x(), s = ue(), c = W(p), u = l(c, (e) => e.caseTypeId), d = l(c, (e) => e.fileList), f = l(c, (e) => e.fileName), m = l(c, (e) => e.fileParsingError), b = l(c, (e) => e.goToNextStep), S = l(c, (e) => e.createdInDataCollectionOptions), C = l(c, (e) => e.rawData), w = l(c, (e) => e.setCols), k = l(c, (e) => e.setCaseTypeId), A = l(c, (e) => e.setCompleteCaseType), j = l(c, (e) => e.setCreatedInDataCollectionId), ee = l(c, (e) => e.setFileList), M = l(c, (e) => e.setSheet), te = l(c, (e) => e.setDataCollectionOptions), ne = l(c, (e) => e.sheet), I = l(c, (e) => e.sheetOptions), L = q(() => E().shape({
|
|
84
|
+
caseTypeId: D().uuid4().required(),
|
|
85
|
+
createdInDataCollectionId: D().uuid4().required(),
|
|
86
|
+
fileList: T().required(e`File is required`),
|
|
87
|
+
sheet: D().when("fileList", {
|
|
88
|
+
is: t.isXlsxFile(f),
|
|
89
|
+
otherwise: (e) => e.notRequired(),
|
|
90
|
+
then: (t) => t.required(e`Sheet is required`)
|
|
91
|
+
})
|
|
92
|
+
}), [f, e]), z = h({
|
|
89
93
|
defaultValues: {
|
|
90
94
|
caseTypeId: null,
|
|
91
95
|
createdInDataCollectionId: null,
|
|
@@ -99,47 +103,47 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
99
103
|
fileList: c.getState().fileList ?? null,
|
|
100
104
|
sheet: c.getState().sheet ?? null
|
|
101
105
|
}
|
|
102
|
-
}), { handleSubmit:
|
|
106
|
+
}), { handleSubmit: B, setError: re, setValue: V } = z;
|
|
103
107
|
K(() => {
|
|
104
108
|
Array.isArray(o?.data) && w(o.data);
|
|
105
109
|
}, [o.data, w]), K(() => {
|
|
106
|
-
a?.options?.length &&
|
|
107
|
-
}, [a?.options,
|
|
108
|
-
let { data:
|
|
110
|
+
a?.options?.length && te(a.options);
|
|
111
|
+
}, [a?.options, te]);
|
|
112
|
+
let { data: H, error: U, isLoading: ie } = he({
|
|
109
113
|
baseQueryKey: i.COMPLETE_CASE_TYPES,
|
|
110
114
|
itemId: u,
|
|
111
115
|
useQueryOptions: {
|
|
112
116
|
enabled: !!u,
|
|
113
|
-
queryFn: async ({ signal: e }) => (await
|
|
117
|
+
queryFn: async ({ signal: e }) => (await O.getInstance().completeCaseTypesGetOne(u, { signal: e })).data
|
|
114
118
|
}
|
|
115
119
|
});
|
|
116
120
|
K(() => {
|
|
117
|
-
|
|
118
|
-
}, [
|
|
121
|
+
H && A(H);
|
|
122
|
+
}, [H, A]);
|
|
119
123
|
let ae = G(async (e) => {
|
|
120
|
-
await M(e);
|
|
121
|
-
}, [M]), oe = G(async (e) => {
|
|
122
124
|
await ee(e);
|
|
123
|
-
}, [ee]),
|
|
124
|
-
|
|
125
|
-
}, [
|
|
125
|
+
}, [ee]), oe = G(async (e) => {
|
|
126
|
+
await M(e);
|
|
127
|
+
}, [M]), se = G((e) => {
|
|
128
|
+
k(e);
|
|
129
|
+
}, [k]), le = G((e) => {
|
|
126
130
|
j(e);
|
|
127
|
-
}, [j]),
|
|
131
|
+
}, [j]), J = q(() => {
|
|
128
132
|
let n = [{
|
|
129
133
|
accept: ".csv,.tsv,.txt,.xlsx",
|
|
130
|
-
definition:
|
|
134
|
+
definition: N.FILE,
|
|
131
135
|
label: e`File`,
|
|
132
136
|
name: "fileList",
|
|
133
137
|
onChange: ae
|
|
134
138
|
}];
|
|
135
139
|
return t.isXlsxFile(f) && n.push({
|
|
136
|
-
definition:
|
|
140
|
+
definition: N.SELECT,
|
|
137
141
|
label: e`Sheet`,
|
|
138
142
|
name: "sheet",
|
|
139
143
|
onChange: oe,
|
|
140
|
-
options:
|
|
144
|
+
options: I
|
|
141
145
|
}), n.push({
|
|
142
|
-
definition:
|
|
146
|
+
definition: N.AUTOCOMPLETE,
|
|
143
147
|
disabled: !d,
|
|
144
148
|
label: e`Case type`,
|
|
145
149
|
loading: r.isLoading,
|
|
@@ -147,12 +151,12 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
147
151
|
onChange: se,
|
|
148
152
|
options: r.options
|
|
149
153
|
}, {
|
|
150
|
-
definition:
|
|
154
|
+
definition: N.SELECT,
|
|
151
155
|
disabled: !d || !u,
|
|
152
156
|
label: e`Create in data collection`,
|
|
153
|
-
loading: a.isLoading ||
|
|
157
|
+
loading: a.isLoading || ie,
|
|
154
158
|
name: "createdInDataCollectionId",
|
|
155
|
-
onChange:
|
|
159
|
+
onChange: le,
|
|
156
160
|
options: S
|
|
157
161
|
}), n;
|
|
158
162
|
}, [
|
|
@@ -165,32 +169,32 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
165
169
|
se,
|
|
166
170
|
S,
|
|
167
171
|
a.isLoading,
|
|
168
|
-
|
|
172
|
+
ie,
|
|
169
173
|
u,
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
le,
|
|
175
|
+
I,
|
|
172
176
|
oe
|
|
173
177
|
]);
|
|
174
178
|
K(() => {
|
|
175
|
-
m ?
|
|
179
|
+
m ? re("fileList", {
|
|
176
180
|
message: m,
|
|
177
181
|
type: "manual"
|
|
178
|
-
}) :
|
|
182
|
+
}) : re("fileList", void 0);
|
|
179
183
|
}, [
|
|
180
184
|
m,
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
re,
|
|
186
|
+
V
|
|
183
187
|
]);
|
|
184
|
-
let
|
|
188
|
+
let Y = G(async () => {
|
|
185
189
|
await b();
|
|
186
|
-
}, [b]),
|
|
190
|
+
}, [b]), de = ge([
|
|
187
191
|
n,
|
|
188
192
|
r,
|
|
189
193
|
a,
|
|
190
194
|
o
|
|
191
195
|
]), fe = G(async () => {
|
|
192
|
-
await
|
|
193
|
-
}, [
|
|
196
|
+
await B(Y)();
|
|
197
|
+
}, [B, Y]), pe = q(() => !(o.isLoading === !1 && o.data?.length === 0 || r.isLoading === !1 && r.options?.length === 0 || a.isLoading === !1 && a.options?.length === 0), [
|
|
194
198
|
o.data?.length,
|
|
195
199
|
o.isLoading,
|
|
196
200
|
r.isLoading,
|
|
@@ -198,32 +202,32 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
198
202
|
a.isLoading,
|
|
199
203
|
a.options?.length
|
|
200
204
|
]);
|
|
201
|
-
return /* @__PURE__ */ Q(
|
|
202
|
-
error:
|
|
205
|
+
return /* @__PURE__ */ Q(me, {
|
|
206
|
+
error: U,
|
|
203
207
|
inlineSpinner: !0,
|
|
204
|
-
loadables:
|
|
205
|
-
children: /* @__PURE__ */ $(
|
|
208
|
+
loadables: de,
|
|
209
|
+
children: /* @__PURE__ */ $(R, {
|
|
206
210
|
maxWidth: "lg",
|
|
207
|
-
children: [!pe && /* @__PURE__ */ Q(
|
|
211
|
+
children: [!pe && /* @__PURE__ */ Q(P, {
|
|
208
212
|
severity: "warning",
|
|
209
213
|
sx: { mb: 2 },
|
|
210
214
|
children: e("Upload is disabled because you have insufficient data access to proceed. Contact your organization administrator for assistance.")
|
|
211
215
|
}), pe && /* @__PURE__ */ $(Z, { children: [
|
|
212
|
-
C && C.length > 0 && /* @__PURE__ */ $(
|
|
216
|
+
C && C.length > 0 && /* @__PURE__ */ $(P, {
|
|
213
217
|
severity: "info",
|
|
214
218
|
sx: { mb: 2 },
|
|
215
219
|
children: [
|
|
216
|
-
/* @__PURE__ */ Q(
|
|
217
|
-
|
|
218
|
-
/* @__PURE__ */ Q(
|
|
219
|
-
/* @__PURE__ */ Q(
|
|
220
|
+
/* @__PURE__ */ Q(F, { children: e("{{fileName}} loaded successfully", { fileName: f }) }),
|
|
221
|
+
ne && /* @__PURE__ */ Q(ce, { children: e("Sheet name: {{sheet}}", { sheet: ne || "" }) }),
|
|
222
|
+
/* @__PURE__ */ Q(ce, { children: e("Number of columns: {{columnCount}}", { columnCount: C[0].length }) }),
|
|
223
|
+
/* @__PURE__ */ Q(ce, { children: e("Number of data rows: {{rowCount}}", { rowCount: C.length - 1 }) })
|
|
220
224
|
]
|
|
221
225
|
}),
|
|
222
|
-
/* @__PURE__ */ Q(
|
|
223
|
-
formFieldDefinitions:
|
|
226
|
+
/* @__PURE__ */ Q(ye, {
|
|
227
|
+
formFieldDefinitions: J,
|
|
224
228
|
formId: s,
|
|
225
|
-
formMethods:
|
|
226
|
-
onSubmit:
|
|
229
|
+
formMethods: z,
|
|
230
|
+
onSubmit: B(Y),
|
|
227
231
|
schema: L
|
|
228
232
|
}),
|
|
229
233
|
/* @__PURE__ */ Q(Ve, { onProceedButtonClick: fe })
|
|
@@ -231,7 +235,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
231
235
|
})
|
|
232
236
|
});
|
|
233
237
|
}, Ue = /* @__PURE__ */ e(r(), 1), We = /* @__PURE__ */ e(o(), 1), Ge = () => {
|
|
234
|
-
let { t: e } = X(), n = b(), r =
|
|
238
|
+
let { t: e } = X(), n = b(), r = xe(), i = W(p), a = l(i, (e) => e.completeCaseType), o = l(i, (e) => e.rawData), s = l(i, (e) => e.fileName), c = l(i, (e) => e.goToNextStep), u = l(i, (e) => e.goToPreviousStep), d = l(i, (e) => e.setMappedColumns), f = ge([n, r]), _ = ue(), v = q(() => t.getColumnMappingSchema(o, a), [a, o]), y = q(() => t.getDefaultColumnMappingFormValues(o[0], i.getState().mappedColumns, r.options), [
|
|
235
239
|
o,
|
|
236
240
|
i,
|
|
237
241
|
r.options
|
|
@@ -280,15 +284,15 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
280
284
|
a
|
|
281
285
|
]), k = q(() => t.getSampleIdColIds(a), [a]), A = G((t, n) => {
|
|
282
286
|
let i = parseInt(t.name, 10), a = (0, Ue.default)(o.slice(1).map((e) => e[i] ?? "")).filter((e) => !!e).slice(0, 5).join(", ").trim() || e("<no data>"), s = n, c = T[t.name];
|
|
283
|
-
return k.includes(c) && (s = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
287
|
+
return k.includes(c) && (s = /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(I, { children: n }), /* @__PURE__ */ Q(I, {
|
|
284
288
|
sx: { marginTop: 1 },
|
|
285
|
-
children: /* @__PURE__ */ Q(
|
|
289
|
+
children: /* @__PURE__ */ Q(Se, {
|
|
286
290
|
label: e("{{columnLabel}}: Identifier issuer", { columnLabel: t.label }),
|
|
287
291
|
loading: r.isLoading,
|
|
288
292
|
name: c,
|
|
289
293
|
options: r.options
|
|
290
294
|
})
|
|
291
|
-
})] })), /* @__PURE__ */ $(
|
|
295
|
+
})] })), /* @__PURE__ */ $(ae, { children: [
|
|
292
296
|
/* @__PURE__ */ Q(U, { children: t.label }),
|
|
293
297
|
/* @__PURE__ */ Q(U, { children: s }),
|
|
294
298
|
/* @__PURE__ */ Q(U, { children: a })
|
|
@@ -302,14 +306,14 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
302
306
|
e
|
|
303
307
|
]), j = G((t) => /* @__PURE__ */ $(V, {
|
|
304
308
|
size: "small",
|
|
305
|
-
children: [/* @__PURE__ */ Q(
|
|
309
|
+
children: [/* @__PURE__ */ Q(ie, {
|
|
306
310
|
sx: {
|
|
307
311
|
backgroundColor: (e) => e.palette.background.paper,
|
|
308
312
|
position: "sticky",
|
|
309
313
|
top: 0,
|
|
310
314
|
zIndex: (e) => e.zIndex.appBar - 1
|
|
311
315
|
},
|
|
312
|
-
children: /* @__PURE__ */ $(
|
|
316
|
+
children: /* @__PURE__ */ $(ae, { children: [
|
|
313
317
|
/* @__PURE__ */ Q(U, {
|
|
314
318
|
sx: { width: "33%" },
|
|
315
319
|
children: e`Source`
|
|
@@ -324,34 +328,34 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
324
328
|
})
|
|
325
329
|
] })
|
|
326
330
|
}), /* @__PURE__ */ Q(H, { children: t })]
|
|
327
|
-
}), [e]),
|
|
331
|
+
}), [e]), ee = G(async () => {
|
|
328
332
|
await w(O)();
|
|
329
|
-
}, [w, O]),
|
|
333
|
+
}, [w, O]), M = G(() => {
|
|
330
334
|
u();
|
|
331
335
|
}, [u]);
|
|
332
|
-
return /* @__PURE__ */ Q(
|
|
336
|
+
return /* @__PURE__ */ Q(me, {
|
|
333
337
|
loadables: f,
|
|
334
|
-
children: /* @__PURE__ */ $(
|
|
338
|
+
children: /* @__PURE__ */ $(I, {
|
|
335
339
|
sx: {
|
|
336
340
|
display: "grid",
|
|
337
341
|
gridTemplateRows: "max-content auto max-content",
|
|
338
342
|
height: "100%"
|
|
339
343
|
},
|
|
340
344
|
children: [
|
|
341
|
-
/* @__PURE__ */ Q(
|
|
345
|
+
/* @__PURE__ */ Q(R, {
|
|
342
346
|
maxWidth: "lg",
|
|
343
347
|
sx: { marginBottom: 2 },
|
|
344
|
-
children: /* @__PURE__ */ $(
|
|
348
|
+
children: /* @__PURE__ */ $(P, {
|
|
345
349
|
severity: D.length === 0 ? "info" : "warning",
|
|
346
350
|
children: [
|
|
347
|
-
/* @__PURE__ */ Q(
|
|
351
|
+
/* @__PURE__ */ Q(F, { children: D.length === 0 ? e("All columns in {{fileName}} have been mapped to known columns in {{applicationName}}", {
|
|
348
352
|
applicationName: te.getInstance().config.applicationName,
|
|
349
353
|
fileName: s
|
|
350
354
|
}) : e("{{numUnmappedColumns}} column(s) in {{fileName}} are not mapped", {
|
|
351
355
|
fileName: s,
|
|
352
356
|
numUnmappedColumns: D.length
|
|
353
357
|
}) }),
|
|
354
|
-
D.map((t) => /* @__PURE__ */ Q(
|
|
358
|
+
D.map((t) => /* @__PURE__ */ Q(I, { children: e("The column \"{{columnName}}\" (column {{columnIndex}}) has not been mapped.", {
|
|
355
359
|
columnIndex: t.originalIndex + 1,
|
|
356
360
|
columnName: t.originalLabel
|
|
357
361
|
}) }, t.originalIndex)),
|
|
@@ -359,12 +363,12 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
359
363
|
]
|
|
360
364
|
})
|
|
361
365
|
}),
|
|
362
|
-
/* @__PURE__ */ Q(
|
|
366
|
+
/* @__PURE__ */ Q(I, {
|
|
363
367
|
sx: {
|
|
364
368
|
overflowY: "auto",
|
|
365
369
|
position: "relative"
|
|
366
370
|
},
|
|
367
|
-
children: /* @__PURE__ */ Q(
|
|
371
|
+
children: /* @__PURE__ */ Q(I, {
|
|
368
372
|
sx: {
|
|
369
373
|
bottom: 0,
|
|
370
374
|
left: 0,
|
|
@@ -372,7 +376,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
372
376
|
right: 0,
|
|
373
377
|
top: 0
|
|
374
378
|
},
|
|
375
|
-
children: /* @__PURE__ */ Q(
|
|
379
|
+
children: /* @__PURE__ */ Q(R, { children: /* @__PURE__ */ Q(ye, {
|
|
376
380
|
formFieldDefinitions: E,
|
|
377
381
|
formId: _,
|
|
378
382
|
formMethods: x,
|
|
@@ -383,9 +387,9 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
383
387
|
}) })
|
|
384
388
|
})
|
|
385
389
|
}),
|
|
386
|
-
/* @__PURE__ */ Q(
|
|
387
|
-
onGoBackButtonClick:
|
|
388
|
-
onProceedButtonClick:
|
|
390
|
+
/* @__PURE__ */ Q(I, { children: /* @__PURE__ */ Q(Ve, {
|
|
391
|
+
onGoBackButtonClick: M,
|
|
392
|
+
onProceedButtonClick: ee
|
|
389
393
|
}) })
|
|
390
394
|
]
|
|
391
395
|
})
|
|
@@ -399,8 +403,8 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
399
403
|
onCompleteCaseTypeLoaded: i,
|
|
400
404
|
children: n && /* @__PURE__ */ Q(e, { ...t })
|
|
401
405
|
});
|
|
402
|
-
}, qe =
|
|
403
|
-
let { t: a } = X(), o =
|
|
406
|
+
}, qe = Ne(({ onActionsChange: e, onClose: t, onSubmit: n, onTitleChange: r, openProps: i }) => {
|
|
407
|
+
let { t: a } = X(), o = ue(), s = q(() => i.completeCaseType.cols[i.colId], [i.completeCaseType.cols, i.colId]);
|
|
404
408
|
K(() => {
|
|
405
409
|
r(a("Edit values for {{colLabel}} (for selected rows)", { colLabel: s.label }));
|
|
406
410
|
}, [
|
|
@@ -415,7 +419,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
415
419
|
completeCaseType: i.completeCaseType,
|
|
416
420
|
includedColIds: [i.colId]
|
|
417
421
|
}), [i.completeCaseType, i.colId]), p = G((e) => {
|
|
418
|
-
n(
|
|
422
|
+
n(Fe.createStringValuesFromFormValues(f, e)), t();
|
|
419
423
|
}, [
|
|
420
424
|
f,
|
|
421
425
|
t,
|
|
@@ -423,7 +427,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
423
427
|
]);
|
|
424
428
|
return K(() => {
|
|
425
429
|
e([{
|
|
426
|
-
...
|
|
430
|
+
...Pe.createAttributes("UploadEditColumnValuesDialog-submitButton"),
|
|
427
431
|
color: "primary",
|
|
428
432
|
form: o,
|
|
429
433
|
label: a`Save and revalidate`,
|
|
@@ -434,13 +438,13 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
434
438
|
o,
|
|
435
439
|
e,
|
|
436
440
|
a
|
|
437
|
-
]), /* @__PURE__ */ $(
|
|
441
|
+
]), /* @__PURE__ */ $(I, { children: [i.shouldShowRightsWarning && /* @__PURE__ */ Q(I, {
|
|
438
442
|
sx: { marginBottom: 2 },
|
|
439
|
-
children: /* @__PURE__ */ $(
|
|
443
|
+
children: /* @__PURE__ */ $(P, {
|
|
440
444
|
severity: "warning",
|
|
441
|
-
children: [/* @__PURE__ */ Q(
|
|
445
|
+
children: [/* @__PURE__ */ Q(F, { children: a`You do not have the necessary rights to edit all rows in this column.` }), a`Only the cases that you have write access to for this column will be updated. Please review the changes carefully before submitting.`]
|
|
442
446
|
})
|
|
443
|
-
}), /* @__PURE__ */ Q(
|
|
447
|
+
}), /* @__PURE__ */ Q(ye, {
|
|
444
448
|
formFieldDefinitions: f,
|
|
445
449
|
formId: o,
|
|
446
450
|
formMethods: u,
|
|
@@ -453,14 +457,14 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
453
457
|
maxWidth: "md",
|
|
454
458
|
testId: "UploadEditColumnValuesDialog"
|
|
455
459
|
}), Je = ({ caseRightsColMap: e, caseUploadResults: t, completeCaseType: n, getOriginalCellValue: r, onCaseContentEditSubmit: i, onColContentEditSubmit: o, tableStore: s }) => {
|
|
456
|
-
let c =
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
], []), p = q(() => [
|
|
460
|
+
let c = le(), { t: l } = X(), u = J(null), d = J(null), f = q(() => [
|
|
461
|
+
k.UNAUTHORIZED,
|
|
462
|
+
k.INVALID,
|
|
463
|
+
k.CONFLICT,
|
|
464
|
+
k.MISSING,
|
|
465
|
+
k.DERIVED,
|
|
466
|
+
k.TRANSFORMED
|
|
467
|
+
], []), p = q(() => [k.UNAUTHORIZED, k.INVALID], []), m = q(() => [k.MISSING, k.CONFLICT], []), h = G((r) => {
|
|
464
468
|
d.current?.open({
|
|
465
469
|
colId: r.column.id,
|
|
466
470
|
completeCaseType: n,
|
|
@@ -493,23 +497,23 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
493
497
|
}), t;
|
|
494
498
|
}, [n.cols]), y = G((e) => {
|
|
495
499
|
let t = v(e);
|
|
496
|
-
return /* @__PURE__ */ Q(Z, { children: t.map(({ key: e, message: t }, n) => /* @__PURE__ */ Q(
|
|
500
|
+
return /* @__PURE__ */ Q(Z, { children: t.map(({ key: e, message: t }, n) => /* @__PURE__ */ Q(I, {
|
|
497
501
|
sx: { marginTop: +(n > 0) },
|
|
498
502
|
children: t
|
|
499
503
|
}, e)) });
|
|
500
|
-
}, [v]), b = G((e) => v(e).map((e) => e.message).join(", "), [v]), x = G((e, t, n) => t.filter((t) => !(t.col_id !== e || t.data_issue_type ===
|
|
504
|
+
}, [v]), b = G((e) => v(e).map((e) => e.message).join(", "), [v]), x = G((e, t, n) => t.filter((t) => !(t.col_id !== e || t.data_issue_type === k.TRANSFORMED && t.original_value === n)).sort((e, t) => f.indexOf(e.data_issue_type) - f.indexOf(t.data_issue_type)), [f]), C = G(() => /* @__PURE__ */ Q(se, {
|
|
501
505
|
"aria-hidden": !1,
|
|
502
506
|
arrow: !0,
|
|
503
507
|
title: l("Indicates if there are any issues with the case"),
|
|
504
|
-
children: /* @__PURE__ */ Q(
|
|
508
|
+
children: /* @__PURE__ */ Q(Ee, { fontSize: "small" })
|
|
505
509
|
}), [l]), w = G(({ row: e }) => {
|
|
506
|
-
let t = e.data_issues.filter((e) => e.data_issue_type ===
|
|
507
|
-
if (t.length > 0) return /* @__PURE__ */ Q(
|
|
510
|
+
let t = e.data_issues.filter((e) => e.data_issue_type === k.INVALID || e.data_issue_type === k.UNAUTHORIZED);
|
|
511
|
+
if (t.length > 0) return /* @__PURE__ */ Q(se, {
|
|
508
512
|
"aria-hidden": !1,
|
|
509
513
|
"aria-label": b(t),
|
|
510
514
|
arrow: !0,
|
|
511
515
|
title: y(t),
|
|
512
|
-
children: /* @__PURE__ */ Q(
|
|
516
|
+
children: /* @__PURE__ */ Q(Ee, {
|
|
513
517
|
fontSize: "small",
|
|
514
518
|
sx: {
|
|
515
519
|
color: c.palette.error.main,
|
|
@@ -521,12 +525,12 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
521
525
|
y,
|
|
522
526
|
b,
|
|
523
527
|
c.palette.error.main
|
|
524
|
-
]), T = G(() => /* @__PURE__ */ Q(
|
|
528
|
+
]), T = G(() => /* @__PURE__ */ Q(se, {
|
|
525
529
|
"aria-hidden": !1,
|
|
526
530
|
arrow: !0,
|
|
527
531
|
title: l("Indicates if case is new (will be created)"),
|
|
528
|
-
children: /* @__PURE__ */ Q(
|
|
529
|
-
}), [l]), E = G(({ row: e }) => e.id ? null : /* @__PURE__ */ Q(
|
|
532
|
+
children: /* @__PURE__ */ Q(De, { fontSize: "small" })
|
|
533
|
+
}), [l]), E = G(({ row: e }) => e.id ? null : /* @__PURE__ */ Q(De, {
|
|
530
534
|
"aria-hidden": !1,
|
|
531
535
|
"aria-label": l`This case does not have an ID and will be created`,
|
|
532
536
|
fontSize: "small",
|
|
@@ -540,12 +544,12 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
540
544
|
let o = c.palette.info.main;
|
|
541
545
|
p.includes(i[0].data_issue_type) ? o = c.palette.error.main : m.includes(i[0].data_issue_type) && (o = c.palette.warning.main);
|
|
542
546
|
let s = i.find((e) => e.original_value)?.original_value || "", l = /* @__PURE__ */ $(Z, { children: [s && r && s !== r && /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("s", { children: s }), "\xA0"] }), r && /* @__PURE__ */ Q(Z, { children: r })] });
|
|
543
|
-
return /* @__PURE__ */ $(
|
|
547
|
+
return /* @__PURE__ */ $(I, {
|
|
544
548
|
sx: {
|
|
545
549
|
alignItems: "center",
|
|
546
550
|
display: "flex"
|
|
547
551
|
},
|
|
548
|
-
children: [/* @__PURE__ */ Q(
|
|
552
|
+
children: [/* @__PURE__ */ Q(I, {
|
|
549
553
|
sx: {
|
|
550
554
|
height: c.spacing(2),
|
|
551
555
|
marginRight: c.spacing(1),
|
|
@@ -554,10 +558,10 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
554
558
|
position: "relative",
|
|
555
559
|
width: c.spacing(2)
|
|
556
560
|
},
|
|
557
|
-
children: /* @__PURE__ */ Q(
|
|
561
|
+
children: /* @__PURE__ */ Q(se, {
|
|
558
562
|
arrow: !0,
|
|
559
563
|
title: y(i),
|
|
560
|
-
children: /* @__PURE__ */ Q(
|
|
564
|
+
children: /* @__PURE__ */ Q(Ee, {
|
|
561
565
|
fontSize: "small",
|
|
562
566
|
sx: {
|
|
563
567
|
color: o,
|
|
@@ -566,7 +570,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
566
570
|
}
|
|
567
571
|
})
|
|
568
572
|
})
|
|
569
|
-
}), /* @__PURE__ */ Q(
|
|
573
|
+
}), /* @__PURE__ */ Q(I, {
|
|
570
574
|
sx: {
|
|
571
575
|
overflow: "hidden",
|
|
572
576
|
textOverflow: "ellipsis",
|
|
@@ -585,9 +589,9 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
585
589
|
]), O = q(() => {
|
|
586
590
|
let i = [];
|
|
587
591
|
if (!t?.length) return i;
|
|
588
|
-
i.push(
|
|
592
|
+
i.push(je.createReadableIndexColumn()), i.push(je.createSelectableColumn()), i.push({
|
|
589
593
|
disableEllipsis: !0,
|
|
590
|
-
frozen:
|
|
594
|
+
frozen: Ae.LEFT,
|
|
591
595
|
headerName: "",
|
|
592
596
|
hideInFilter: !0,
|
|
593
597
|
id: "gen-epix-ui-issue",
|
|
@@ -600,7 +604,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
600
604
|
widthPx: 38
|
|
601
605
|
}), i.push({
|
|
602
606
|
disableEllipsis: !0,
|
|
603
|
-
frozen:
|
|
607
|
+
frozen: Ae.LEFT,
|
|
604
608
|
headerName: "",
|
|
605
609
|
hideInFilter: !0,
|
|
606
610
|
id: "gen-epix-ui-id",
|
|
@@ -617,7 +621,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
617
621
|
Object.keys(e.validated_content || {}).forEach((e) => o.add(e)), e.data_issues.forEach((e) => o.add(e.col_id));
|
|
618
622
|
}), n.ordered_col_ids.forEach((s) => {
|
|
619
623
|
if (!o.has(s)) return;
|
|
620
|
-
let c = n.cols[s], u = t.flatMap((e) => e.data_issues.filter((e) => e.col_id === c.id)), d = u.length === 0 || u.some((e) => e.data_issue_type !==
|
|
624
|
+
let c = n.cols[s], u = t.flatMap((e) => e.data_issues.filter((e) => e.col_id === c.id)), d = u.length === 0 || u.some((e) => e.data_issue_type !== k.DERIVED), f = e[c.id]?.length;
|
|
621
625
|
c && i.push({
|
|
622
626
|
cellTitleGetter: (e) => {
|
|
623
627
|
let t = e.row.data_issues.find((e) => e.col_id === c.id);
|
|
@@ -631,7 +635,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
631
635
|
return "";
|
|
632
636
|
},
|
|
633
637
|
customHeaderIcon: f ? {
|
|
634
|
-
iconElement: /* @__PURE__ */ Q(
|
|
638
|
+
iconElement: /* @__PURE__ */ Q(Te, { fontSize: "inherit" }),
|
|
635
639
|
label: l("Edit values for {{colLabel}} (for selected rows)", { colLabel: c.label }),
|
|
636
640
|
onClick: h
|
|
637
641
|
} : void 0,
|
|
@@ -652,10 +656,10 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
652
656
|
type: "text",
|
|
653
657
|
valueGetter: (e) => e.row.id || "",
|
|
654
658
|
widthPx: 250
|
|
655
|
-
}), i.push(
|
|
659
|
+
}), i.push(je.createActionsColumn({
|
|
656
660
|
getActions: (e) => {
|
|
657
661
|
let t = [];
|
|
658
|
-
return t.push(/* @__PURE__ */ $(
|
|
662
|
+
return t.push(/* @__PURE__ */ $(re, {
|
|
659
663
|
onClick: () => {
|
|
660
664
|
u.current?.open({
|
|
661
665
|
caseContent: e.row.validated_content,
|
|
@@ -665,7 +669,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
665
669
|
formId: "edit-case-form"
|
|
666
670
|
});
|
|
667
671
|
},
|
|
668
|
-
children: [/* @__PURE__ */ Q(z, { children: /* @__PURE__ */ Q(
|
|
672
|
+
children: [/* @__PURE__ */ Q(z, { children: /* @__PURE__ */ Q(Te, {}) }), /* @__PURE__ */ Q(B, { children: l`Edit` })]
|
|
669
673
|
}, "editCase")), t;
|
|
670
674
|
},
|
|
671
675
|
t: l
|
|
@@ -683,17 +687,17 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
683
687
|
D,
|
|
684
688
|
r
|
|
685
689
|
]);
|
|
686
|
-
return
|
|
690
|
+
return Me({
|
|
687
691
|
columns: O,
|
|
688
692
|
createFiltersFromColumns: !0,
|
|
689
693
|
rows: t,
|
|
690
694
|
store: s
|
|
691
695
|
}), /* @__PURE__ */ $(Z, { children: [
|
|
692
|
-
/* @__PURE__ */ Q(
|
|
696
|
+
/* @__PURE__ */ Q(I, { children: /* @__PURE__ */ Q(ke, { ContainerProps: { sx: {
|
|
693
697
|
display: "inline-block",
|
|
694
698
|
float: "right"
|
|
695
699
|
} } }) }),
|
|
696
|
-
/* @__PURE__ */ Q(
|
|
700
|
+
/* @__PURE__ */ Q(Oe, { font: c["gen-epix-ui-client-casedb"].lineList.font }),
|
|
697
701
|
/* @__PURE__ */ Q(S, {
|
|
698
702
|
onSubmit: g,
|
|
699
703
|
ref: u
|
|
@@ -704,7 +708,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
704
708
|
})
|
|
705
709
|
] });
|
|
706
710
|
}, Ye = ({ onGoBackButtonClick: e, onProceedButtonClick: t }) => {
|
|
707
|
-
let { t: n } = X(), r =
|
|
711
|
+
let { t: n } = X(), r = pe(), i = W(p), a = l(i, (e) => e.completeCaseType), o = l(r, (e) => e.selectedIds), s = !o.length || o.length > a.props.create_max_n_cases;
|
|
708
712
|
return /* @__PURE__ */ Q(Ve, {
|
|
709
713
|
onGoBackButtonClick: e,
|
|
710
714
|
onProceedButtonClick: t,
|
|
@@ -712,14 +716,14 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
712
716
|
proceedLabel: o.length ? n("Proceed with {{count}} selected cases", { count: o.length }) : n("Proceed")
|
|
713
717
|
});
|
|
714
718
|
}, Xe = Ke(({ caseTypeId: e }) => {
|
|
715
|
-
let { t } = X(), n = W(p), r = l(n, (e) => e.goToNextStep), i = l(n, (e) => e.goToPreviousStep), o = l(n, (e) => e.completeCaseType), s = l(n, (e) => e.casesForVerificationFromSourceData), c = l(n, (e) => e.createdInDataCollectionId), u = l(n, (e) => e.validateCasesQueryKey), f = l(n, (e) => e.caseRightsColMap), [m, h] = Y(!1), [g, _] = Y(!1), [v, y] = Y(null), b = J([]), x = J(null), S = J(null), C = G((e, t, n) => s[t.rowIndex]?.case?.content[e.id] ?? "", [s]), w =
|
|
719
|
+
let { t } = X(), n = W(p), r = l(n, (e) => e.goToNextStep), i = l(n, (e) => e.goToPreviousStep), o = l(n, (e) => e.completeCaseType), s = l(n, (e) => e.casesForVerificationFromSourceData), c = l(n, (e) => e.createdInDataCollectionId), u = l(n, (e) => e.validateCasesQueryKey), f = l(n, (e) => e.caseRightsColMap), [m, h] = Y(!1), [g, _] = Y(!1), [v, y] = Y(null), b = J([]), x = J(null), S = J(null), C = G((e, t, n) => s[t.rowIndex]?.case?.content[e.id] ?? "", [s]), w = be({
|
|
716
720
|
enabled: s.length > 0,
|
|
717
721
|
gcTime: Infinity,
|
|
718
|
-
queryFn: async ({ signal: t }) => (await
|
|
722
|
+
queryFn: async ({ signal: t }) => (await O.getInstance().uploadCases(M.deepNullifyEmptyStrings({
|
|
719
723
|
case_batch: { cases: s },
|
|
720
724
|
case_type_id: e,
|
|
721
725
|
default_created_in_data_collection_id: c ?? void 0,
|
|
722
|
-
on_exists:
|
|
726
|
+
on_exists: j.UPDATE,
|
|
723
727
|
verify_only: !0
|
|
724
728
|
}), { signal: t })).data,
|
|
725
729
|
queryKey: u,
|
|
@@ -728,10 +732,10 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
728
732
|
id: s[t].id
|
|
729
733
|
})),
|
|
730
734
|
staleTime: Infinity
|
|
731
|
-
}), T =
|
|
735
|
+
}), T = ge([w]), E = q(() => fe({ idSelectorCallback: (e) => e.id }), []), D = l(E, d((e) => e.setSelectedIds)), N = G(async (t) => {
|
|
732
736
|
_(!0);
|
|
733
737
|
try {
|
|
734
|
-
let n = (await
|
|
738
|
+
let n = (await O.getInstance().uploadCases(M.deepNullifyEmptyStrings({
|
|
735
739
|
case_batch: { cases: t.map(({ content: e, row: t }, n) => {
|
|
736
740
|
let r = s.find((e) => e.id === t.id);
|
|
737
741
|
return { case: {
|
|
@@ -748,7 +752,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
748
752
|
}) },
|
|
749
753
|
case_type_id: e,
|
|
750
754
|
default_created_in_data_collection_id: c ?? void 0,
|
|
751
|
-
on_exists:
|
|
755
|
+
on_exists: j.UPDATE,
|
|
752
756
|
verify_only: !0
|
|
753
757
|
}))).data, r = new Map(t.map(({ row: e }, t) => [e.id, n.cases[t]]));
|
|
754
758
|
ee.getInstance().queryClient.setQueryData(u, { cases: w.data.map((e) => {
|
|
@@ -761,7 +765,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
761
765
|
let i = [];
|
|
762
766
|
if (t.forEach(({ row: e }, t) => {
|
|
763
767
|
let r = n.cases[t];
|
|
764
|
-
r.status !==
|
|
768
|
+
r.status !== A.SKIPPED && r.status !== A.SUCCESS && r.status !== A.UPDATED && (b.current.includes(e.id) || (b.current.push(e.id), i.push(e.id)));
|
|
765
769
|
}), i.length > 0) {
|
|
766
770
|
let e = E.getState().selectedIds, t = i.filter((t) => !e.includes(t));
|
|
767
771
|
t.length > 0 && D([...e, ...t]);
|
|
@@ -780,9 +784,9 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
780
784
|
D,
|
|
781
785
|
E,
|
|
782
786
|
u
|
|
783
|
-
]),
|
|
787
|
+
]), te = G(async (e) => {
|
|
784
788
|
let t = E.getState().selectedIds;
|
|
785
|
-
await
|
|
789
|
+
await N(w.data.filter((e) => t.includes(e.id)).map((t) => ({
|
|
786
790
|
content: {
|
|
787
791
|
...t.validated_content,
|
|
788
792
|
...e[t.id]
|
|
@@ -791,15 +795,15 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
791
795
|
})));
|
|
792
796
|
}, [
|
|
793
797
|
w.data,
|
|
794
|
-
|
|
798
|
+
N,
|
|
795
799
|
E
|
|
796
|
-
]),
|
|
800
|
+
]), ne = G(async (e, t) => {
|
|
797
801
|
let n = w.data.find((t) => t.id === e);
|
|
798
|
-
await
|
|
802
|
+
await N([{
|
|
799
803
|
content: t,
|
|
800
804
|
row: n
|
|
801
805
|
}]);
|
|
802
|
-
}, [w.data,
|
|
806
|
+
}, [w.data, N]);
|
|
803
807
|
K(() => {
|
|
804
808
|
let e = E.subscribe((e, t) => {
|
|
805
809
|
if (e.selectedIds === t.selectedIds) return;
|
|
@@ -811,11 +815,11 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
811
815
|
e();
|
|
812
816
|
};
|
|
813
817
|
}, [o.props.create_max_n_cases, E]), K(() => {
|
|
814
|
-
let e = (w.data ?? []).filter((e) => !e.data_issues.some((e) => e.data_issue_type ===
|
|
818
|
+
let e = (w.data ?? []).filter((e) => !e.data_issues.some((e) => e.data_issue_type === k.INVALID || e.data_issue_type === k.UNAUTHORIZED)).map((e) => e.id);
|
|
815
819
|
D(e);
|
|
816
820
|
}, [w.data, D]);
|
|
817
|
-
let
|
|
818
|
-
let e = E.getState().selectedIds, t = w.data.filter((t) => e.includes(t.id) && !t.data_issues.some((e) => e.data_issue_type ===
|
|
821
|
+
let L = G(async () => {
|
|
822
|
+
let e = E.getState().selectedIds, t = w.data.filter((t) => e.includes(t.id) && !t.data_issues.some((e) => e.data_issue_type === k.INVALID));
|
|
819
823
|
n.setState((e) => ({
|
|
820
824
|
...e,
|
|
821
825
|
selectedIdsForUpload: t.map((e) => e.id),
|
|
@@ -836,12 +840,12 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
836
840
|
r,
|
|
837
841
|
w.data,
|
|
838
842
|
n
|
|
839
|
-
]),
|
|
840
|
-
if (w.data.some((e) => E.getState().selectedIds.includes(e.id) && (e.data_issues.some((e) => e.data_issue_type ===
|
|
843
|
+
]), z = G(async () => {
|
|
844
|
+
if (w.data.some((e) => E.getState().selectedIds.includes(e.id) && (e.data_issues.some((e) => e.data_issue_type === k.INVALID) || e.status === A.FAILED))) {
|
|
841
845
|
x.current?.open();
|
|
842
846
|
return;
|
|
843
847
|
}
|
|
844
|
-
if (w.data.some((e) => !E.getState().selectedIds.includes(e.id) && !e.data_issues.some((e) => e.data_issue_type ===
|
|
848
|
+
if (w.data.some((e) => !E.getState().selectedIds.includes(e.id) && !e.data_issues.some((e) => e.data_issue_type === k.INVALID))) {
|
|
845
849
|
S.current?.open();
|
|
846
850
|
return;
|
|
847
851
|
}
|
|
@@ -850,10 +854,10 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
850
854
|
w.data,
|
|
851
855
|
R,
|
|
852
856
|
E
|
|
853
|
-
]),
|
|
857
|
+
]), B = G(() => {
|
|
854
858
|
i();
|
|
855
859
|
}, [i]);
|
|
856
|
-
return /* @__PURE__ */ $(
|
|
860
|
+
return /* @__PURE__ */ $(I, {
|
|
857
861
|
sx: {
|
|
858
862
|
display: "grid",
|
|
859
863
|
gridTemplateRows: `${m ? "max-content" : ""} max-content auto max-content`,
|
|
@@ -862,20 +866,20 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
862
866
|
width: "100%"
|
|
863
867
|
},
|
|
864
868
|
children: [
|
|
865
|
-
/* @__PURE__ */ Q(
|
|
869
|
+
/* @__PURE__ */ Q(de, {
|
|
866
870
|
store: E,
|
|
867
|
-
children: /* @__PURE__ */ $(
|
|
871
|
+
children: /* @__PURE__ */ $(me, {
|
|
868
872
|
error: v,
|
|
869
873
|
inlineSpinner: !0,
|
|
870
874
|
loadables: T,
|
|
871
875
|
loadingMessage: t("Validating cases"),
|
|
872
876
|
takingLongerTimeoutMs: 1e4,
|
|
873
877
|
children: [
|
|
874
|
-
m && /* @__PURE__ */ Q(
|
|
878
|
+
m && /* @__PURE__ */ Q(I, {
|
|
875
879
|
sx: { marginY: 2 },
|
|
876
|
-
children: /* @__PURE__ */ Q(
|
|
880
|
+
children: /* @__PURE__ */ Q(P, {
|
|
877
881
|
severity: "error",
|
|
878
|
-
children: /* @__PURE__ */ Q(
|
|
882
|
+
children: /* @__PURE__ */ Q(F, { children: t("You have exceeded the maximum number of {{maxCases}} cases for this case type. Please reduce the number of selected cases before proceeding.", { maxCases: o.props.create_max_n_cases }) })
|
|
879
883
|
})
|
|
880
884
|
}),
|
|
881
885
|
/* @__PURE__ */ Q(Je, {
|
|
@@ -883,30 +887,30 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
883
887
|
caseUploadResults: w.data || [],
|
|
884
888
|
completeCaseType: o,
|
|
885
889
|
getOriginalCellValue: C,
|
|
886
|
-
onCaseContentEditSubmit:
|
|
887
|
-
onColContentEditSubmit:
|
|
890
|
+
onCaseContentEditSubmit: ne,
|
|
891
|
+
onColContentEditSubmit: te,
|
|
888
892
|
tableStore: E
|
|
889
893
|
}),
|
|
890
894
|
/* @__PURE__ */ Q(Ye, {
|
|
891
|
-
onGoBackButtonClick:
|
|
892
|
-
onProceedButtonClick:
|
|
895
|
+
onGoBackButtonClick: B,
|
|
896
|
+
onProceedButtonClick: z
|
|
893
897
|
})
|
|
894
898
|
]
|
|
895
899
|
})
|
|
896
900
|
}),
|
|
897
|
-
/* @__PURE__ */ Q(
|
|
901
|
+
/* @__PURE__ */ Q(Ce, {
|
|
898
902
|
label: t("Revalidating cases"),
|
|
899
903
|
open: g
|
|
900
904
|
}),
|
|
901
|
-
/* @__PURE__ */ Q(
|
|
905
|
+
/* @__PURE__ */ Q(we, {
|
|
902
906
|
body: t`Some of the selected cases contain issues. If you proceed, these cases will be excluded. Are you sure you want to proceed without them?`,
|
|
903
907
|
cancelLabel: t`Cancel`,
|
|
904
908
|
confirmLabel: t`Proceed`,
|
|
905
|
-
onConfirm:
|
|
909
|
+
onConfirm: L,
|
|
906
910
|
ref: x,
|
|
907
911
|
title: t`Issues found with selected cases`
|
|
908
912
|
}),
|
|
909
|
-
/* @__PURE__ */ Q(
|
|
913
|
+
/* @__PURE__ */ Q(we, {
|
|
910
914
|
body: t`Not all cases are selected. Do you want to proceed without them?`,
|
|
911
915
|
cancelLabel: t`Cancel`,
|
|
912
916
|
confirmLabel: t`Proceed`,
|
|
@@ -920,9 +924,9 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
920
924
|
let { t: e } = X(), r = W(p), i = l(r, (e) => e.reset), a = l(r, (e) => e.goToPreviousStep), o = l(r, (e) => e.sequenceMapping), c = l(r, (e) => e.sequenceFilesDataTransfer), u = l(r, (e) => e.validatedCases), d = l(r, (e) => e.selectedIdsForUpload), f = l(r, (e) => e.casesForVerificationFromSourceData), m = l(r, (e) => e.uploadCompleteButtonCallback), h = l(r, (e) => e.uploadCompleteButtonLabel), g = l(r, (e) => e.onUploadComplete), _ = l(r, (e) => e.completeCaseType), [v, y] = Y(0), [b, x] = Y(""), [S, C] = Y(!1), [w, T] = Y(!1), [E, D] = Y(void 0), O = q(() => t.getSequenceMappingStats(o, c), [c, o]), k = q(() => u.filter((e) => d.includes(e.id)), [u, d]);
|
|
921
925
|
K(() => {
|
|
922
926
|
let e = new AbortController(), { signal: n } = e, i = () => {
|
|
923
|
-
e.abort(),
|
|
927
|
+
e.abort(), Le.getInstance().resume();
|
|
924
928
|
};
|
|
925
|
-
return S ? (
|
|
929
|
+
return S ? (Le.getInstance().pause(), (async () => {
|
|
926
930
|
let e = await t.createCasesAndUploadFiles({
|
|
927
931
|
assemblyProtocolId: r.getState().assemblyProtocolId,
|
|
928
932
|
casesForVerificationFromSourceData: f,
|
|
@@ -963,19 +967,19 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
963
967
|
await i();
|
|
964
968
|
}, [i]), j = G(() => {
|
|
965
969
|
C(!0);
|
|
966
|
-
}, []),
|
|
970
|
+
}, []), ee = G(() => {
|
|
967
971
|
a();
|
|
968
|
-
}, [a]),
|
|
972
|
+
}, [a]), M = G(async () => {
|
|
969
973
|
let e = n.createCaseTypeLink(_);
|
|
970
|
-
await
|
|
974
|
+
await ze.getInstance().router.navigate(e);
|
|
971
975
|
}, [_]), N;
|
|
972
|
-
return N = E ? /* @__PURE__ */ $(
|
|
976
|
+
return N = E ? /* @__PURE__ */ $(I, { children: [E instanceof s && /* @__PURE__ */ $(P, {
|
|
973
977
|
severity: "error",
|
|
974
|
-
children: [/* @__PURE__ */ Q(
|
|
975
|
-
}), /* @__PURE__ */ Q(
|
|
978
|
+
children: [/* @__PURE__ */ Q(F, { children: e("Failed to create cases during upload.") }), e("An error occurred while creating cases. Please try again or contact support if the issue persists. Cases may have been partially created. No files were uploaded.")]
|
|
979
|
+
}), /* @__PURE__ */ Q(Ie, { error: E })] }) : w ? /* @__PURE__ */ $(I, { children: [/* @__PURE__ */ Q(I, { children: /* @__PURE__ */ Q(P, {
|
|
976
980
|
severity: "success",
|
|
977
|
-
children: /* @__PURE__ */ Q(
|
|
978
|
-
}) }), /* @__PURE__ */ Q(
|
|
981
|
+
children: /* @__PURE__ */ Q(F, { children: e("Upload completed.") })
|
|
982
|
+
}) }), /* @__PURE__ */ Q(I, {
|
|
979
983
|
sx: {
|
|
980
984
|
display: "flex",
|
|
981
985
|
gap: 2,
|
|
@@ -983,123 +987,123 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
983
987
|
marginBottom: 1,
|
|
984
988
|
marginTop: 2
|
|
985
989
|
},
|
|
986
|
-
children: m && h ? /* @__PURE__ */ Q(
|
|
990
|
+
children: m && h ? /* @__PURE__ */ Q(L, {
|
|
987
991
|
onClick: m,
|
|
988
992
|
variant: "contained",
|
|
989
993
|
children: h
|
|
990
|
-
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(
|
|
994
|
+
}) : /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(L, {
|
|
991
995
|
onClick: A,
|
|
992
996
|
variant: "outlined",
|
|
993
997
|
children: e("Upload more cases")
|
|
994
|
-
}), /* @__PURE__ */ Q(
|
|
995
|
-
onClick:
|
|
998
|
+
}), /* @__PURE__ */ Q(L, {
|
|
999
|
+
onClick: M,
|
|
996
1000
|
variant: "contained",
|
|
997
1001
|
children: e("View uploaded cases")
|
|
998
1002
|
})] })
|
|
999
|
-
})] }) : S ? /* @__PURE__ */ $(
|
|
1000
|
-
/* @__PURE__ */ Q(
|
|
1003
|
+
})] }) : S ? /* @__PURE__ */ $(I, { children: [
|
|
1004
|
+
/* @__PURE__ */ Q(I, {
|
|
1001
1005
|
sx: { marginBottom: 4 },
|
|
1002
|
-
children: /* @__PURE__ */ $(
|
|
1006
|
+
children: /* @__PURE__ */ $(P, {
|
|
1003
1007
|
severity: "info",
|
|
1004
|
-
children: [/* @__PURE__ */ Q(
|
|
1008
|
+
children: [/* @__PURE__ */ Q(F, { children: e("Uploading cases and files.") }), e("Please wait while the cases and associated files are being uploaded. This may take a while depending on the number and size of the files being uploaded.")]
|
|
1005
1009
|
})
|
|
1006
1010
|
}),
|
|
1007
|
-
/* @__PURE__ */ Q(
|
|
1011
|
+
/* @__PURE__ */ Q(I, {
|
|
1008
1012
|
sx: {
|
|
1009
1013
|
marginBottom: 2,
|
|
1010
1014
|
marginTop: 4
|
|
1011
1015
|
},
|
|
1012
|
-
children: /* @__PURE__ */ Q(
|
|
1016
|
+
children: /* @__PURE__ */ Q(Re, { value: v })
|
|
1013
1017
|
}),
|
|
1014
|
-
/* @__PURE__ */ Q(
|
|
1018
|
+
/* @__PURE__ */ Q(I, {
|
|
1015
1019
|
sx: { fontWeight: 700 },
|
|
1016
1020
|
children: b
|
|
1017
1021
|
})
|
|
1018
|
-
] }) : /* @__PURE__ */ $(
|
|
1019
|
-
/* @__PURE__ */ Q(
|
|
1022
|
+
] }) : /* @__PURE__ */ $(I, { children: [/* @__PURE__ */ $(I, { children: [
|
|
1023
|
+
/* @__PURE__ */ Q(I, {
|
|
1020
1024
|
sx: { marginY: 2 },
|
|
1021
|
-
children: /* @__PURE__ */ Q(
|
|
1025
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1022
1026
|
severity: "info",
|
|
1023
|
-
children: /* @__PURE__ */ Q(
|
|
1027
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{numCases}} cases are ready to be uploaded.", { numCases: k.length }) })
|
|
1024
1028
|
})
|
|
1025
1029
|
}),
|
|
1026
|
-
O.mappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(
|
|
1030
|
+
O.mappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(I, {
|
|
1027
1031
|
sx: { marginY: 2 },
|
|
1028
|
-
children: /* @__PURE__ */ Q(
|
|
1032
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1029
1033
|
severity: "info",
|
|
1030
|
-
children: /* @__PURE__ */ Q(
|
|
1034
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{numSequenceFiles}} genome files are ready to be uploaded.", { numSequenceFiles: O.mappedSequenceFiles.length }) })
|
|
1031
1035
|
})
|
|
1032
1036
|
}),
|
|
1033
|
-
O.mappedReadsFiles.length > 0 && /* @__PURE__ */ Q(
|
|
1037
|
+
O.mappedReadsFiles.length > 0 && /* @__PURE__ */ Q(I, {
|
|
1034
1038
|
sx: { marginY: 2 },
|
|
1035
|
-
children: /* @__PURE__ */ Q(
|
|
1039
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1036
1040
|
severity: "info",
|
|
1037
|
-
children: /* @__PURE__ */ Q(
|
|
1041
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{numReadsFiles}} reads files are ready to be uploaded.", { numReadsFiles: O.mappedReadsFiles.length }) })
|
|
1038
1042
|
})
|
|
1039
1043
|
}),
|
|
1040
|
-
u.length - k.length > 0 && /* @__PURE__ */ Q(
|
|
1044
|
+
u.length - k.length > 0 && /* @__PURE__ */ Q(I, {
|
|
1041
1045
|
sx: { marginY: 2 },
|
|
1042
|
-
children: /* @__PURE__ */ Q(
|
|
1046
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1043
1047
|
severity: "warning",
|
|
1044
|
-
children: /* @__PURE__ */ Q(
|
|
1048
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{numCases}} cases were not selected and will not be uploaded.", { numCases: u.length - k.length }) })
|
|
1045
1049
|
})
|
|
1046
1050
|
}),
|
|
1047
|
-
O.unmappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(
|
|
1051
|
+
O.unmappedSequenceFiles.length > 0 && /* @__PURE__ */ Q(I, {
|
|
1048
1052
|
sx: { marginY: 2 },
|
|
1049
|
-
children: /* @__PURE__ */ Q(
|
|
1053
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1050
1054
|
severity: "warning",
|
|
1051
|
-
children: /* @__PURE__ */ Q(
|
|
1055
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{unmappedSequenceFiles}} unmapped genome files will not be uploaded.", { unmappedSequenceFiles: O.unmappedSequenceFiles.length }) })
|
|
1052
1056
|
})
|
|
1053
1057
|
}),
|
|
1054
|
-
O.unmappedReadsFiles.length > 0 && /* @__PURE__ */ Q(
|
|
1058
|
+
O.unmappedReadsFiles.length > 0 && /* @__PURE__ */ Q(I, {
|
|
1055
1059
|
sx: { marginY: 2 },
|
|
1056
|
-
children: /* @__PURE__ */ Q(
|
|
1060
|
+
children: /* @__PURE__ */ Q(P, {
|
|
1057
1061
|
severity: "warning",
|
|
1058
|
-
children: /* @__PURE__ */ Q(
|
|
1062
|
+
children: /* @__PURE__ */ Q(F, { children: e("{{unmappedReadsFiles}} unmapped reads files will not be uploaded.", { unmappedReadsFiles: O.unmappedReadsFiles.length }) })
|
|
1059
1063
|
})
|
|
1060
1064
|
})
|
|
1061
1065
|
] }), /* @__PURE__ */ Q(Ve, {
|
|
1062
|
-
onGoBackButtonClick:
|
|
1066
|
+
onGoBackButtonClick: ee,
|
|
1063
1067
|
onProceedButtonClick: j,
|
|
1064
1068
|
proceedLabel: "Start upload"
|
|
1065
|
-
})] }), /* @__PURE__ */ Q(
|
|
1069
|
+
})] }), /* @__PURE__ */ Q(R, {
|
|
1066
1070
|
maxWidth: "xl",
|
|
1067
1071
|
sx: { height: "100%" },
|
|
1068
1072
|
children: N
|
|
1069
1073
|
});
|
|
1070
|
-
}, Qe = (e) => Array.from(e?.files ?? []), $e = ({ hasGenomeFiles: e, hasReadsFiles: t, hasSelectedFiles: n }) =>
|
|
1071
|
-
assemblyProtocolId: e ?
|
|
1072
|
-
sampleIdColId: n ?
|
|
1073
|
-
sequencingProtocolId: t ?
|
|
1074
|
+
}, Qe = (e) => Array.from(e?.files ?? []), $e = ({ hasGenomeFiles: e, hasReadsFiles: t, hasSelectedFiles: n }) => E().shape({
|
|
1075
|
+
assemblyProtocolId: e ? D().uuid4().required() : D().nullable().notRequired(),
|
|
1076
|
+
sampleIdColId: n ? D().uuid4().required() : D().nullable().notRequired(),
|
|
1077
|
+
sequencingProtocolId: t ? D().uuid4().required() : D().nullable().notRequired()
|
|
1074
1078
|
}), et = () => {
|
|
1075
|
-
let { t: e } = X(), n =
|
|
1079
|
+
let { t: e } = X(), n = le(), r = W(p), i = l(r, (e) => e.completeCaseType), a = l(r, (e) => e.mappedColumns), o = l(r, (e) => e.validatedCases), s = l(r, (e) => e.goToNextStep), c = l(r, (e) => e.goToPreviousStep), u = l(r, (e) => e.setSequenceFilesDataTransfer), d = l(r, (e) => e.sampleIdColId), f = l(r, (e) => e.sequenceFilesDataTransfer), [m, _] = Y(f), v = ue(), y = C(), b = w(), x = ge([y, b]), S = q(() => a.filter((e) => e.isSampleIdColumn).map((e) => ({
|
|
1076
1080
|
label: e.col.label,
|
|
1077
1081
|
value: e.col.id
|
|
1078
|
-
})), [a]),
|
|
1079
|
-
hasGenomeFiles:
|
|
1080
|
-
hasReadsFiles:
|
|
1081
|
-
hasSelectedFiles:
|
|
1082
|
+
})), [a]), T = q(() => Qe(m), [m]), E = T.length > 0, D = q(() => T.some((e) => t.isGenomeFile(e.name)), [T]), O = q(() => T.some((e) => t.isReadsFile(e.name)), [T]), k = q(() => $e({
|
|
1083
|
+
hasGenomeFiles: D,
|
|
1084
|
+
hasReadsFiles: O,
|
|
1085
|
+
hasSelectedFiles: E
|
|
1082
1086
|
}), [
|
|
1087
|
+
D,
|
|
1083
1088
|
O,
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
]), j = q(() => ({
|
|
1089
|
+
E
|
|
1090
|
+
]), A = q(() => ({
|
|
1087
1091
|
assemblyProtocolId: r.getState().assemblyProtocolId ?? null,
|
|
1088
1092
|
sampleIdColId: r.getState().sampleIdColId ?? null,
|
|
1089
1093
|
sequencingProtocolId: r.getState().sequencingProtocolId ?? null
|
|
1090
|
-
}), [r]),
|
|
1091
|
-
defaultValues:
|
|
1092
|
-
resolver: g(
|
|
1093
|
-
values:
|
|
1094
|
-
}), { handleSubmit: ee, setValue:
|
|
1094
|
+
}), [r]), j = h({
|
|
1095
|
+
defaultValues: A,
|
|
1096
|
+
resolver: g(k),
|
|
1097
|
+
values: A
|
|
1098
|
+
}), { handleSubmit: ee, setValue: M } = j;
|
|
1095
1099
|
K(() => {
|
|
1096
|
-
y.isLoading || b.isLoading || (r.getState().sequencingProtocolId || (
|
|
1100
|
+
y.isLoading || b.isLoading || (r.getState().sequencingProtocolId || (M("sequencingProtocolId", y.options[0]?.value || null), r.setState({ sequencingProtocolId: y.options[0]?.value || null })), r.getState().assemblyProtocolId || (M("assemblyProtocolId", b.options[0]?.value || null), r.setState({ assemblyProtocolId: b.options[0]?.value || null })), r.getState().sampleIdColId || (M("sampleIdColId", S[0]?.value || null), r.setState({ sampleIdColId: S[0]?.value || null })));
|
|
1097
1101
|
}, [
|
|
1098
1102
|
b.isLoading,
|
|
1099
1103
|
b.options,
|
|
1100
1104
|
y.isLoading,
|
|
1101
1105
|
y.options,
|
|
1102
|
-
|
|
1106
|
+
M,
|
|
1103
1107
|
r,
|
|
1104
1108
|
S
|
|
1105
1109
|
]);
|
|
@@ -1107,11 +1111,11 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1107
1111
|
r.setState({ sequencingProtocolId: e });
|
|
1108
1112
|
}, [r]), ne = G((e) => {
|
|
1109
1113
|
r.setState({ assemblyProtocolId: e });
|
|
1110
|
-
}, [r]),
|
|
1114
|
+
}, [r]), L = G((e) => {
|
|
1111
1115
|
r.setState({ sampleIdColId: e });
|
|
1112
|
-
}, [r]),
|
|
1116
|
+
}, [r]), R = q(() => [
|
|
1113
1117
|
{
|
|
1114
|
-
definition:
|
|
1118
|
+
definition: N.SELECT,
|
|
1115
1119
|
label: e`Genome files: assembly protocol`,
|
|
1116
1120
|
loading: b.isLoading,
|
|
1117
1121
|
name: "assemblyProtocolId",
|
|
@@ -1119,7 +1123,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1119
1123
|
options: b.options
|
|
1120
1124
|
},
|
|
1121
1125
|
{
|
|
1122
|
-
definition:
|
|
1126
|
+
definition: N.SELECT,
|
|
1123
1127
|
label: e`Reads files: sequencing protocol`,
|
|
1124
1128
|
loading: y.isLoading,
|
|
1125
1129
|
name: "sequencingProtocolId",
|
|
@@ -1127,31 +1131,31 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1127
1131
|
options: y.options
|
|
1128
1132
|
},
|
|
1129
1133
|
{
|
|
1130
|
-
definition:
|
|
1134
|
+
definition: N.SELECT,
|
|
1131
1135
|
label: e`Sample ID column`,
|
|
1132
1136
|
name: "sampleIdColId",
|
|
1133
|
-
onChange:
|
|
1137
|
+
onChange: L,
|
|
1134
1138
|
options: S
|
|
1135
1139
|
}
|
|
1136
1140
|
], [
|
|
1137
1141
|
b.isLoading,
|
|
1138
1142
|
b.options,
|
|
1139
1143
|
ne,
|
|
1140
|
-
|
|
1144
|
+
L,
|
|
1141
1145
|
te,
|
|
1142
1146
|
S,
|
|
1143
1147
|
y.isLoading,
|
|
1144
1148
|
y.options,
|
|
1145
1149
|
e
|
|
1146
|
-
]), z = q(() => a.some((e) => e.isSampleIdColumn && e.sampleIdentifierIssuerId), [a]), B = q(() => d ? o.some((e) => e.validated_content[d]?.trim().length > 0) : !1, [d, o]),
|
|
1150
|
+
]), z = q(() => a.some((e) => e.isSampleIdColumn && e.sampleIdentifierIssuerId), [a]), B = q(() => d ? o.some((e) => e.validated_content[d]?.trim().length > 0) : !1, [d, o]), re = q(() => t.getCompleteCaseTypeColStats(i), [i]), V = q(() => re.sequenceColumns.length > 0, [re]), H = q(() => re.readsColumns.length > 0, [re]), U = q(() => z && B && (V || H), [
|
|
1147
1151
|
z,
|
|
1148
1152
|
B,
|
|
1149
1153
|
V,
|
|
1150
1154
|
H
|
|
1151
|
-
]),
|
|
1155
|
+
]), ie = q(() => {
|
|
1152
1156
|
let e = "";
|
|
1153
1157
|
return V && (e += ".fa,.fasta,.fa.gz,.fasta.gz,"), H && (e += ".fq,.fastq,.fq.gz,.fastq.gz,"), e;
|
|
1154
|
-
}, [H, V]),
|
|
1158
|
+
}, [H, V]), ae = G(async () => {
|
|
1155
1159
|
u(U ? m : new DataTransfer()), await ee(async () => {
|
|
1156
1160
|
await s();
|
|
1157
1161
|
})();
|
|
@@ -1161,11 +1165,11 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1161
1165
|
s,
|
|
1162
1166
|
ee,
|
|
1163
1167
|
u
|
|
1164
|
-
]),
|
|
1168
|
+
]), oe = G(() => {
|
|
1165
1169
|
c();
|
|
1166
|
-
}, [c]),
|
|
1170
|
+
}, [c]), se = G((e) => {
|
|
1167
1171
|
_(e), u(e);
|
|
1168
|
-
}, [u]),
|
|
1172
|
+
}, [u]), ce = G((e) => /* @__PURE__ */ Q(I, {
|
|
1169
1173
|
sx: {
|
|
1170
1174
|
display: "grid",
|
|
1171
1175
|
gap: n.spacing(1),
|
|
@@ -1190,10 +1194,10 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1190
1194
|
B,
|
|
1191
1195
|
z,
|
|
1192
1196
|
e
|
|
1193
|
-
]),
|
|
1194
|
-
return /* @__PURE__ */ Q(
|
|
1197
|
+
]), de = G(() => {}, []);
|
|
1198
|
+
return /* @__PURE__ */ Q(me, {
|
|
1195
1199
|
loadables: x,
|
|
1196
|
-
children: /* @__PURE__ */ $(
|
|
1200
|
+
children: /* @__PURE__ */ $(I, {
|
|
1197
1201
|
sx: {
|
|
1198
1202
|
display: "grid",
|
|
1199
1203
|
gridTemplateRows: `${U ? "" : "max-content "}max-content auto max-content`,
|
|
@@ -1201,46 +1205,46 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1201
1205
|
position: "relative"
|
|
1202
1206
|
},
|
|
1203
1207
|
children: [
|
|
1204
|
-
!U && /* @__PURE__ */ Q(
|
|
1208
|
+
!U && /* @__PURE__ */ Q(I, {
|
|
1205
1209
|
sx: { marginBottom: 2 },
|
|
1206
|
-
children: /* @__PURE__ */ $(
|
|
1210
|
+
children: /* @__PURE__ */ $(P, {
|
|
1207
1211
|
severity: "error",
|
|
1208
|
-
children: [/* @__PURE__ */ Q(
|
|
1212
|
+
children: [/* @__PURE__ */ Q(F, { children: J.title }), J.message]
|
|
1209
1213
|
})
|
|
1210
1214
|
}),
|
|
1211
|
-
/* @__PURE__ */ $(
|
|
1215
|
+
/* @__PURE__ */ $(I, {
|
|
1212
1216
|
sx: { borderBottom: `1px solid ${n.palette.divider}` },
|
|
1213
1217
|
children: [
|
|
1214
|
-
/* @__PURE__ */ Q(
|
|
1218
|
+
/* @__PURE__ */ Q(I, {
|
|
1215
1219
|
sx: { maxWidth: n.spacing(128) },
|
|
1216
|
-
children: /* @__PURE__ */ Q(
|
|
1217
|
-
formFieldDefinitions:
|
|
1220
|
+
children: /* @__PURE__ */ Q(ye, {
|
|
1221
|
+
formFieldDefinitions: R,
|
|
1218
1222
|
formId: v,
|
|
1219
|
-
formMethods:
|
|
1220
|
-
onSubmit:
|
|
1221
|
-
schema:
|
|
1222
|
-
wrapForm:
|
|
1223
|
+
formMethods: j,
|
|
1224
|
+
onSubmit: de,
|
|
1225
|
+
schema: k,
|
|
1226
|
+
wrapForm: ce
|
|
1223
1227
|
})
|
|
1224
1228
|
}),
|
|
1225
|
-
!V && /* @__PURE__ */ Q(
|
|
1229
|
+
!V && /* @__PURE__ */ Q(I, {
|
|
1226
1230
|
sx: { marginY: 1 },
|
|
1227
|
-
children: /* @__PURE__ */ $(
|
|
1231
|
+
children: /* @__PURE__ */ $(P, {
|
|
1228
1232
|
severity: "info",
|
|
1229
|
-
children: [/* @__PURE__ */ Q(
|
|
1233
|
+
children: [/* @__PURE__ */ Q(F, { children: e("Uploading of sequences has been disabled.") }), /* @__PURE__ */ Q(I, { children: e("Uploading of sequences is not supported for the selected case type.") })]
|
|
1230
1234
|
})
|
|
1231
1235
|
}),
|
|
1232
|
-
!H && /* @__PURE__ */ Q(
|
|
1236
|
+
!H && /* @__PURE__ */ Q(I, {
|
|
1233
1237
|
sx: { marginY: 1 },
|
|
1234
|
-
children: /* @__PURE__ */ $(
|
|
1238
|
+
children: /* @__PURE__ */ $(P, {
|
|
1235
1239
|
severity: "info",
|
|
1236
|
-
children: [/* @__PURE__ */ Q(
|
|
1240
|
+
children: [/* @__PURE__ */ Q(F, { children: e("Uploading of read files has been disabled.") }), /* @__PURE__ */ Q(I, { children: e("Uploading of read files is not supported for the selected case type.") })]
|
|
1237
1241
|
})
|
|
1238
1242
|
})
|
|
1239
1243
|
]
|
|
1240
1244
|
}),
|
|
1241
|
-
/* @__PURE__ */ Q(
|
|
1245
|
+
/* @__PURE__ */ Q(I, {
|
|
1242
1246
|
sx: { position: "relative" },
|
|
1243
|
-
children: /* @__PURE__ */ Q(
|
|
1247
|
+
children: /* @__PURE__ */ Q(I, {
|
|
1244
1248
|
sx: {
|
|
1245
1249
|
bottom: 0,
|
|
1246
1250
|
height: "100%",
|
|
@@ -1249,27 +1253,27 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1249
1253
|
right: 0,
|
|
1250
1254
|
top: 0
|
|
1251
1255
|
},
|
|
1252
|
-
children: U && /* @__PURE__ */ Q(
|
|
1253
|
-
accept:
|
|
1256
|
+
children: U && /* @__PURE__ */ Q(Be, {
|
|
1257
|
+
accept: ie,
|
|
1254
1258
|
initialDataTransfer: f,
|
|
1255
1259
|
numFilesAllowed: Infinity,
|
|
1256
|
-
onDataTransferChange:
|
|
1260
|
+
onDataTransferChange: se
|
|
1257
1261
|
})
|
|
1258
1262
|
})
|
|
1259
1263
|
}),
|
|
1260
1264
|
/* @__PURE__ */ Q(Ve, {
|
|
1261
|
-
onGoBackButtonClick:
|
|
1262
|
-
onProceedButtonClick:
|
|
1265
|
+
onGoBackButtonClick: oe,
|
|
1266
|
+
onProceedButtonClick: ae,
|
|
1263
1267
|
proceedLabel: U ? void 0 : e`Proceed`
|
|
1264
1268
|
})
|
|
1265
1269
|
]
|
|
1266
1270
|
})
|
|
1267
1271
|
});
|
|
1268
1272
|
}, tt = () => {
|
|
1269
|
-
let { t: e } = X(), n =
|
|
1273
|
+
let { t: e } = X(), n = le(), r = W(p), i = l(r, (e) => e.goToNextStep), o = l(r, (e) => e.goToPreviousStep), s = l(r, (e) => e.completeCaseType), c = l(r, (e) => e.sampleIdColId), u = l(r, (e) => e.sequenceFilesDataTransfer), f = l(r, d((e) => {
|
|
1270
1274
|
let t = e.selectedIdsForUpload;
|
|
1271
1275
|
return e.validatedCases.filter((e) => t.includes(e.id));
|
|
1272
|
-
})), m = l(r, (e) => e.setSequenceMapping), h = q(() => t.getCompleteCaseTypeColStats(s), [s]), g =
|
|
1276
|
+
})), m = l(r, (e) => e.setSequenceMapping), h = q(() => t.getCompleteCaseTypeColStats(s), [s]), g = ue(), _ = ue(), v = J(r.getState().sequenceMapping), y = G(async () => {
|
|
1273
1277
|
m(v.current), await i();
|
|
1274
1278
|
}, [m, i]), b = G(() => {
|
|
1275
1279
|
o();
|
|
@@ -1290,7 +1294,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1290
1294
|
K(() => {
|
|
1291
1295
|
x();
|
|
1292
1296
|
}, [x]);
|
|
1293
|
-
let S = q(() =>
|
|
1297
|
+
let S = q(() => fe({ idSelectorCallback: (e) => e.id }), []), C = G((e, t) => e.some((e) => {
|
|
1294
1298
|
let n = a.getRowValue(e.validated_content, t, s);
|
|
1295
1299
|
return n && !n?.isMissing;
|
|
1296
1300
|
}), [s]), w = q(() => Array.from(u.files).map((e) => e.name).filter((e) => e.endsWith(".fasta") || e.endsWith(".fa") || e.endsWith(".fa.gz") || e.endsWith(".fasta.gz")), [u.files]), T = q(() => Array.from(u.files).map((e) => e.name).filter((e) => e.endsWith(".fastq") || e.endsWith(".fq") || e.endsWith(".fq.gz") || e.endsWith(".fastaq.gz")), [u.files]), E = G((e) => {
|
|
@@ -1302,7 +1306,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1302
1306
|
i(t), m(v.current), x();
|
|
1303
1307
|
},
|
|
1304
1308
|
options: t,
|
|
1305
|
-
renderInput: (e) => /* @__PURE__ */ Q(
|
|
1309
|
+
renderInput: (e) => /* @__PURE__ */ Q(oe, {
|
|
1306
1310
|
...e,
|
|
1307
1311
|
label: r,
|
|
1308
1312
|
size: "small"
|
|
@@ -1312,7 +1316,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1312
1316
|
});
|
|
1313
1317
|
}, [m, x]), D = G((e) => {
|
|
1314
1318
|
let t = s.cols[e.id], n = e.row.id, r = v.current?.[e.row.id]?.sequenceFileNames[t.id] || "";
|
|
1315
|
-
return /* @__PURE__ */ Q(
|
|
1319
|
+
return /* @__PURE__ */ Q(I, {
|
|
1316
1320
|
sx: {
|
|
1317
1321
|
alignItems: "center",
|
|
1318
1322
|
display: "flex",
|
|
@@ -1335,7 +1339,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1335
1339
|
w
|
|
1336
1340
|
]), O = G((e) => {
|
|
1337
1341
|
let t = s.cols[e.id], n = h.sequenceColumns.includes(t), r = e.row.id, i = v.current?.[r]?.readsFileNames?.[t.id]?.fwd || "", a = v.current?.[r]?.readsFileNames?.[t.id]?.rev || "";
|
|
1338
|
-
return /* @__PURE__ */ $(
|
|
1342
|
+
return /* @__PURE__ */ $(I, {
|
|
1339
1343
|
sx: {
|
|
1340
1344
|
alignItems: "center",
|
|
1341
1345
|
display: "flex",
|
|
@@ -1368,7 +1372,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1368
1372
|
T
|
|
1369
1373
|
]), k = q(() => {
|
|
1370
1374
|
let e = [];
|
|
1371
|
-
e.push(
|
|
1375
|
+
e.push(je.createReadableIndexColumn());
|
|
1372
1376
|
let t = [
|
|
1373
1377
|
...h.sampleIdColumns,
|
|
1374
1378
|
...h.sequenceColumns,
|
|
@@ -1440,26 +1444,26 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1440
1444
|
c,
|
|
1441
1445
|
f
|
|
1442
1446
|
]);
|
|
1443
|
-
return
|
|
1447
|
+
return Me({
|
|
1444
1448
|
columns: k,
|
|
1445
1449
|
createFiltersFromColumns: !0,
|
|
1446
1450
|
rows: f,
|
|
1447
1451
|
store: S
|
|
1448
|
-
}), /* @__PURE__ */ $(
|
|
1452
|
+
}), /* @__PURE__ */ $(I, {
|
|
1449
1453
|
sx: {
|
|
1450
1454
|
display: "grid",
|
|
1451
1455
|
gridTemplateRows: "max-content auto max-content",
|
|
1452
1456
|
height: "100%"
|
|
1453
1457
|
},
|
|
1454
|
-
children: [/* @__PURE__ */ Q(
|
|
1458
|
+
children: [/* @__PURE__ */ Q(I, {
|
|
1455
1459
|
sx: { paddingBottom: 1 },
|
|
1456
|
-
children: /* @__PURE__ */ $(
|
|
1460
|
+
children: /* @__PURE__ */ $(P, {
|
|
1457
1461
|
severity: "info",
|
|
1458
|
-
children: [/* @__PURE__ */ Q(
|
|
1462
|
+
children: [/* @__PURE__ */ Q(F, { id: g }), /* @__PURE__ */ Q(I, { id: _ })]
|
|
1459
1463
|
})
|
|
1460
|
-
}), /* @__PURE__ */ $(
|
|
1464
|
+
}), /* @__PURE__ */ $(de, {
|
|
1461
1465
|
store: S,
|
|
1462
|
-
children: [/* @__PURE__ */ Q(
|
|
1466
|
+
children: [/* @__PURE__ */ Q(Oe, {
|
|
1463
1467
|
font: n["gen-epix-ui-client-casedb"].lineList.font,
|
|
1464
1468
|
rowHeight: 7
|
|
1465
1469
|
}), /* @__PURE__ */ Q(Ve, {
|
|
@@ -1469,7 +1473,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1469
1473
|
})]
|
|
1470
1474
|
});
|
|
1471
1475
|
}, nt = () => {
|
|
1472
|
-
let { t: e } = X(), t =
|
|
1476
|
+
let { t: e } = X(), t = le(), n = W(p), r = l(n, (e) => e.completeCaseType), i = l(n, (e) => e.activeStep), a = l(n, (e) => e.stepOrder), o = q(() => ({
|
|
1473
1477
|
[f.CREATE_CASES]: e`Submit`,
|
|
1474
1478
|
[f.MAP_COLUMNS]: e`Map columns`,
|
|
1475
1479
|
[f.MAP_SEQUENCES]: e`Map sequences`,
|
|
@@ -1485,7 +1489,7 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1485
1489
|
o,
|
|
1486
1490
|
a
|
|
1487
1491
|
]);
|
|
1488
|
-
return /* @__PURE__ */ $(
|
|
1492
|
+
return /* @__PURE__ */ $(_e, {
|
|
1489
1493
|
sx: {
|
|
1490
1494
|
display: "grid",
|
|
1491
1495
|
gridTemplateRows: "max-content auto",
|
|
@@ -1493,11 +1497,11 @@ var Ve = ({ backLabel: e, onGoBackButtonClick: t, onProceedButtonClick: n, proce
|
|
|
1493
1497
|
position: "relative",
|
|
1494
1498
|
width: "100%"
|
|
1495
1499
|
},
|
|
1496
|
-
children: [/* @__PURE__ */ Q(
|
|
1500
|
+
children: [/* @__PURE__ */ Q(R, { children: /* @__PURE__ */ Q(ve, {
|
|
1497
1501
|
activeStep: String(i),
|
|
1498
1502
|
steps: c,
|
|
1499
1503
|
sx: { marginY: 2 }
|
|
1500
|
-
}) }), /* @__PURE__ */ $(
|
|
1504
|
+
}) }), /* @__PURE__ */ $(_e, {
|
|
1501
1505
|
sx: {
|
|
1502
1506
|
height: `calc(100% - ${t.spacing(4)})`,
|
|
1503
1507
|
marginBottom: 2,
|