synapse-react-client 4.0.10 → 4.0.11
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/SWC.index.js +1 -1
- package/dist/assets/icons/CloudWarning.d.ts +5 -0
- package/dist/assets/icons/CloudWarning.d.ts.map +1 -0
- package/dist/assets/icons/CloudWarning.js +47 -0
- package/dist/assets/icons/CloudWarning.js.map +1 -0
- package/dist/components/ChallengeSubmission/SubmissionDirectoryList.d.ts.map +1 -1
- package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js +143 -140
- package/dist/components/ChallengeSubmission/SubmissionDirectoryList.js.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteColumn.d.ts.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteColumn.js +66 -55
- package/dist/components/DataGrid/columns/AutocompleteColumn.js.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteMultipleEnumColumn.d.ts.map +1 -1
- package/dist/components/DataGrid/columns/AutocompleteMultipleEnumColumn.js +1 -1
- package/dist/components/DataGrid/columns/AutocompleteMultipleEnumColumn.js.map +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.d.ts +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/applyModelChange.js +27 -24
- package/dist/components/DataGrid/utils/applyModelChange.js.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.d.ts +8 -0
- package/dist/components/DataGrid/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/columnFactory.js +47 -44
- package/dist/components/DataGrid/utils/columnFactory.js.map +1 -1
- package/dist/components/DataGrid/utils/getEmptyValue.d.ts +2 -0
- package/dist/components/DataGrid/utils/getEmptyValue.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getEmptyValue.js +8 -0
- package/dist/components/DataGrid/utils/getEmptyValue.js.map +1 -0
- package/dist/components/DataGrid/utils/modelColsToGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/utils/modelColsToGrid.js +2 -1
- package/dist/components/DataGrid/utils/modelColsToGrid.js.map +1 -1
- package/dist/components/DataGrid/utils/schemaAwarePasteValue.d.ts +32 -0
- package/dist/components/DataGrid/utils/schemaAwarePasteValue.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/schemaAwarePasteValue.js +22 -0
- package/dist/components/DataGrid/utils/schemaAwarePasteValue.js.map +1 -0
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.css +1 -0
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.d.ts.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +199 -132
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.js +22 -0
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.js.map +1 -0
- package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.module.scss +170 -0
- package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js +1 -0
- package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.d.ts.map +1 -1
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.js +15 -14
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.js.map +1 -1
- package/dist/components/Forum/DiscussionReply.d.ts +1 -0
- package/dist/components/Forum/DiscussionReply.d.ts.map +1 -1
- package/dist/components/Forum/DiscussionReply.js +19 -19
- package/dist/components/Forum/DiscussionReply.js.map +1 -1
- package/dist/components/Forum/DiscussionThread.d.ts +1 -0
- package/dist/components/Forum/DiscussionThread.d.ts.map +1 -1
- package/dist/components/Forum/DiscussionThread.js +73 -72
- package/dist/components/Forum/DiscussionThread.js.map +1 -1
- package/dist/components/GenericCard/BioregistryRules.d.ts.map +1 -1
- package/dist/components/GenericCard/BioregistryRules.js +7 -3
- package/dist/components/GenericCard/BioregistryRules.js.map +1 -1
- package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
- package/dist/components/IconSvg/IconSvg.js +2 -1
- package/dist/components/IconSvg/IconSvg.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.d.ts.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +157 -148
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.d.ts.map +1 -1
- package/dist/components/doi/CreateOrUpdateDoiModal.js +20 -19
- package/dist/components/doi/CreateOrUpdateDoiModal.js.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.d.ts.map +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js +1 -1
- package/dist/features/entity/metadata-task/components/MetadataTasksTableAssigneeCell.js.map +1 -1
- package/dist/synapse-queries/KeyFactory.d.ts +1 -0
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +3 -0
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/forum/useThread.d.ts +1 -0
- package/dist/synapse-queries/forum/useThread.d.ts.map +1 -1
- package/dist/synapse-queries/forum/useThread.js +19 -12
- package/dist/synapse-queries/forum/useThread.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +1 -0
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js +2 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.d.ts.map +1 -1
- package/dist/utils/AppUtils/session/ApplicationSessionManager.js +7 -4
- package/dist/utils/AppUtils/session/ApplicationSessionManager.js.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.d.ts.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.js +15 -4
- package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,107 +3,111 @@ import "../../../utils/SynapseConstants.js";
|
|
|
3
3
|
import { SynapseErrorBoundary as t } from "../../error/ErrorBanner.js";
|
|
4
4
|
import { useGetUserAccessApproval as n } from "../../../synapse-queries/dataaccess/useAccessApprovals.js";
|
|
5
5
|
import r from "../../../synapse-queries/dataaccess/useDataAccessSubmission.js";
|
|
6
|
-
import { useGetAccessRequirementACL as
|
|
7
|
-
import { useGetCurrentUserProfile as
|
|
6
|
+
import { useGetAccessRequirementACL as ee, useGetAccessRequirementWikiPageKey as i, useGetAccessRequirements as a } from "../../../synapse-queries/dataaccess/useAccessRequirements.js";
|
|
7
|
+
import { useGetCurrentUserProfile as te } from "../../../synapse-queries/user/useUserBundle.js";
|
|
8
8
|
import "../../../synapse-queries/user/index.js";
|
|
9
|
-
import { Markdown as
|
|
9
|
+
import { Markdown as o } from "../../Markdown/MarkdownSynapse.js";
|
|
10
10
|
import "../../ToastMessage/index.js";
|
|
11
|
-
import { formatDate as
|
|
12
|
-
import { FileHandleLink as
|
|
13
|
-
import { UserBadge as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import f from "
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
11
|
+
import { formatDate as s } from "../../../utils/functions/DateFormatter.js";
|
|
12
|
+
import { FileHandleLink as c } from "../../widgets/FileHandleLink.js";
|
|
13
|
+
import { UserBadge as l } from "../../UserCard/UserBadge.js";
|
|
14
|
+
import u from "../../UserOrTeamBadge/UserOrTeamBadge.js";
|
|
15
|
+
import d from "../../AccessRequirementList/AccessRequirementList.js";
|
|
16
|
+
import { useGetThreadForSubmission as f } from "../../../synapse-queries/forum/useThread.js";
|
|
17
|
+
import { DiscussionThread as p } from "../../Forum/DiscussionThread.js";
|
|
18
|
+
import "../../Forum/index.js";
|
|
19
|
+
import m from "../RejectDataAccessRequestModal.js";
|
|
20
|
+
import { CancelDataAccessRequestConfirmationModal as h } from "./CancelDataAccessRequestConfirmationModal.js";
|
|
21
|
+
import { ApproveSubmissionConfirmationModal as g } from "./ApproveSubmissionConfirmationModal.js";
|
|
22
|
+
import { Fragment as _, useMemo as v, useState as y } from "react";
|
|
23
|
+
import { isEmpty as b, toLower as ne, upperFirst as re } from "lodash-es";
|
|
24
|
+
import { Button as x, Grid as S, Skeleton as C, Stack as w, Typography as T } from "@mui/material";
|
|
25
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
26
|
+
import { ACCESS_TYPE as k, FileHandleAssociateType as A, SubmissionState as j } from "@sage-bionetworks/synapse-types";
|
|
27
|
+
import { useNavigate as ie } from "react-router";
|
|
25
28
|
import M from "dayjs";
|
|
26
29
|
import N from "dayjs/plugin/duration";
|
|
27
30
|
//#region src/components/dataaccess/SubmissionPage/SubmissionPage.tsx
|
|
28
31
|
M.extend(N);
|
|
29
|
-
|
|
32
|
+
var P = "Use this thread to communicate with the reviewers about this access request.";
|
|
33
|
+
function F(e) {
|
|
30
34
|
let { submissionId: t, fileHandleId: n } = e;
|
|
31
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ D(c, {
|
|
32
36
|
showDownloadIcon: !0,
|
|
33
|
-
fileHandleAssociation:
|
|
37
|
+
fileHandleAssociation: v(() => ({
|
|
34
38
|
fileHandleId: n,
|
|
35
39
|
associateObjectId: t,
|
|
36
|
-
associateObjectType:
|
|
40
|
+
associateObjectType: A.DataAccessSubmissionAttachment
|
|
37
41
|
}), [n, t])
|
|
38
42
|
}, n);
|
|
39
43
|
}
|
|
40
|
-
function
|
|
41
|
-
let { data: t } =
|
|
42
|
-
return t ? /* @__PURE__ */
|
|
44
|
+
function I(e) {
|
|
45
|
+
let { data: t } = i(e.accessRequirementId, { throwOnError: !0 });
|
|
46
|
+
return t ? /* @__PURE__ */ D("div", {
|
|
43
47
|
className: "AccessRequirementWikiContainer",
|
|
44
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ O("div", {
|
|
45
49
|
className: "AccessRequirementWikiContent",
|
|
46
50
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ D(T, {
|
|
48
52
|
variant: "headline1",
|
|
49
53
|
children: "Access Requirement"
|
|
50
54
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ D("hr", {}),
|
|
56
|
+
/* @__PURE__ */ D(o, {
|
|
53
57
|
wikiId: t?.wikiPageId,
|
|
54
58
|
ownerId: t?.ownerObjectId,
|
|
55
59
|
objectType: t?.ownerObjectType
|
|
56
60
|
})
|
|
57
61
|
]
|
|
58
62
|
})
|
|
59
|
-
}) : /* @__PURE__ */
|
|
63
|
+
}) : /* @__PURE__ */ D(C, {
|
|
60
64
|
width: "100%",
|
|
61
65
|
height: "600px"
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
|
-
function
|
|
68
|
+
function L(e, t) {
|
|
65
69
|
return t.submittedBy === e || !!t.accessorChanges.find((t) => t.userId === e);
|
|
66
70
|
}
|
|
67
|
-
function
|
|
68
|
-
let { submissionId:
|
|
69
|
-
enabled: !!
|
|
71
|
+
function R(i) {
|
|
72
|
+
let { submissionId: o, isReviewer: c } = i, [A, N] = y(!1), { data: R } = te(), { data: z, isLoading: B } = r(o, { throwOnError: !0 }), V = !!(z && R && L(R.ownerId, z)), { data: H, isLoading: U } = n(String(o), { enabled: V && z && z.state === j.APPROVED }), W = !!(H && M(H.expiredOn).isBefore(M())), G = z && z.submittedBy === R?.ownerId, { data: K } = a(parseInt(z?.accessRequirementId), { enabled: !!z }), { data: q, isLoading: J } = ee(z?.accessRequirementId, {
|
|
73
|
+
enabled: !!z,
|
|
70
74
|
throwOnError: !0
|
|
71
|
-
}), [
|
|
75
|
+
}), { data: Y } = f(o), [ae, X] = y(!1), [oe, Z] = y(!1), [se, Q] = y(!1), ce = ie(), $ = q?.resourceAccess.filter((e) => e.accessType.includes(k.REVIEW_SUBMISSIONS)).map((e) => e.principalId), le = v(() => z && !U ? W ? "Expired" : z.state : /* @__PURE__ */ D(C, { width: 100 }), [
|
|
76
|
+
W,
|
|
72
77
|
U,
|
|
73
|
-
|
|
74
|
-
R
|
|
78
|
+
z
|
|
75
79
|
]);
|
|
76
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ O(S, {
|
|
77
81
|
container: !0,
|
|
78
82
|
spacing: 4,
|
|
79
83
|
className: "SubmissionPage",
|
|
80
84
|
children: [
|
|
81
|
-
|
|
85
|
+
ae && K && /* @__PURE__ */ D(d, {
|
|
82
86
|
renderAsModal: !0,
|
|
83
|
-
accessRequirementFromProps: [
|
|
84
|
-
onHide: () =>
|
|
87
|
+
accessRequirementFromProps: [K],
|
|
88
|
+
onHide: () => X(!1),
|
|
85
89
|
onSubmissionCreated: (t) => {
|
|
86
|
-
|
|
90
|
+
X(!1), e("Data access request submitted", "success", { primaryButtonConfig: {
|
|
87
91
|
text: "View Request",
|
|
88
92
|
onClick: () => {
|
|
89
|
-
|
|
93
|
+
ce("/submissions/" + t);
|
|
90
94
|
}
|
|
91
95
|
} });
|
|
92
96
|
}
|
|
93
97
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
open:
|
|
98
|
+
/* @__PURE__ */ D(g, {
|
|
99
|
+
open: se,
|
|
96
100
|
onClose: () => {
|
|
97
101
|
Q(!1);
|
|
98
102
|
},
|
|
99
|
-
submissionId: String(
|
|
103
|
+
submissionId: String(o)
|
|
100
104
|
}),
|
|
101
|
-
|
|
102
|
-
submissionId:
|
|
103
|
-
open:
|
|
105
|
+
A && /* @__PURE__ */ D(m, {
|
|
106
|
+
submissionId: o,
|
|
107
|
+
open: A,
|
|
104
108
|
onClose: () => N(!1)
|
|
105
109
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ O(S, {
|
|
107
111
|
className: "SubmissionSummary",
|
|
108
112
|
size: {
|
|
109
113
|
xs: 12,
|
|
@@ -111,29 +115,29 @@ function L(a) {
|
|
|
111
115
|
lg: 3
|
|
112
116
|
},
|
|
113
117
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ D(T, {
|
|
115
119
|
variant: "dataFieldKey",
|
|
116
120
|
gutterBottom: !0,
|
|
117
121
|
children: "Status"
|
|
118
122
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ D(T, {
|
|
120
124
|
variant: "headline3",
|
|
121
125
|
sx: { textTransform: "uppercase" },
|
|
122
126
|
gutterBottom: !0,
|
|
123
|
-
children:
|
|
127
|
+
children: le
|
|
124
128
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
/* @__PURE__ */ D("br", {}),
|
|
130
|
+
B && /* @__PURE__ */ D(C, { width: 200 }),
|
|
131
|
+
z && c && z.state === j.SUBMITTED && /* @__PURE__ */ O("div", {
|
|
128
132
|
className: "ButtonContainer",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
133
|
+
children: [/* @__PURE__ */ D(x, {
|
|
130
134
|
onClick: () => {
|
|
131
135
|
Q(!0);
|
|
132
136
|
},
|
|
133
137
|
color: "success",
|
|
134
138
|
variant: "contained",
|
|
135
139
|
children: "Approve"
|
|
136
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ D(x, {
|
|
137
141
|
onClick: () => {
|
|
138
142
|
N(!0);
|
|
139
143
|
},
|
|
@@ -142,16 +146,16 @@ function L(a) {
|
|
|
142
146
|
children: "Reject"
|
|
143
147
|
})]
|
|
144
148
|
}),
|
|
145
|
-
|
|
149
|
+
z && G && /* @__PURE__ */ O("div", {
|
|
146
150
|
className: "ButtonContainer",
|
|
147
151
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
open:
|
|
150
|
-
submissionId: String(
|
|
151
|
-
accessRequirementId:
|
|
152
|
+
/* @__PURE__ */ D(h, {
|
|
153
|
+
open: oe,
|
|
154
|
+
submissionId: String(o),
|
|
155
|
+
accessRequirementId: z?.accessRequirementId || "",
|
|
152
156
|
onClose: () => Z(!1)
|
|
153
157
|
}),
|
|
154
|
-
|
|
158
|
+
z.state === j.SUBMITTED && /* @__PURE__ */ D(x, {
|
|
155
159
|
onClick: () => {
|
|
156
160
|
Z(!0);
|
|
157
161
|
},
|
|
@@ -159,217 +163,222 @@ function L(a) {
|
|
|
159
163
|
variant: "outlined",
|
|
160
164
|
children: "Cancel Request"
|
|
161
165
|
}),
|
|
162
|
-
|
|
166
|
+
z.state !== j.SUBMITTED && /* @__PURE__ */ O(x, {
|
|
163
167
|
onClick: () => {
|
|
164
|
-
|
|
168
|
+
X(!0);
|
|
165
169
|
},
|
|
166
170
|
color: "primary",
|
|
167
171
|
variant: "outlined",
|
|
168
172
|
children: [
|
|
169
|
-
|
|
173
|
+
z.state === j.APPROVED ? "Update" : "Modify",
|
|
170
174
|
" ",
|
|
171
175
|
"Request"
|
|
172
176
|
]
|
|
173
177
|
})
|
|
174
178
|
]
|
|
175
179
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ D(T, {
|
|
177
181
|
variant: "dataFieldKey",
|
|
178
182
|
gutterBottom: !0,
|
|
179
183
|
children: "Access Requirement Name"
|
|
180
184
|
}),
|
|
181
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ D(T, {
|
|
182
186
|
variant: "smallText1",
|
|
183
187
|
gutterBottom: !0,
|
|
184
|
-
children:
|
|
188
|
+
children: K?.name ?? /* @__PURE__ */ D(C, { width: 100 })
|
|
185
189
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
187
|
-
|
|
188
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ D("br", {}),
|
|
191
|
+
c && /* @__PURE__ */ O(E, { children: [
|
|
192
|
+
/* @__PURE__ */ D(T, {
|
|
189
193
|
variant: "dataFieldKey",
|
|
190
194
|
gutterBottom: !0,
|
|
191
195
|
children: "Assigned Reviewer"
|
|
192
196
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
|
|
195
|
-
!
|
|
196
|
-
!
|
|
197
|
+
/* @__PURE__ */ O(w, { children: [
|
|
198
|
+
J && /* @__PURE__ */ D(C, { width: 100 }),
|
|
199
|
+
!J && !b($) && $.map((e) => /* @__PURE__ */ D(u, { principalId: e }, e)),
|
|
200
|
+
!J && b($) && /* @__PURE__ */ D(u, { principalId: 464532 })
|
|
197
201
|
] }),
|
|
198
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ D("br", {})
|
|
199
203
|
] }),
|
|
200
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ D(T, {
|
|
201
205
|
variant: "dataFieldKey",
|
|
202
206
|
gutterBottom: !0,
|
|
203
207
|
children: "Conditions"
|
|
204
208
|
}),
|
|
205
|
-
|
|
209
|
+
K ? /* @__PURE__ */ D(T, {
|
|
206
210
|
variant: "smallText1",
|
|
207
211
|
component: "div",
|
|
208
212
|
gutterBottom: !0,
|
|
209
|
-
children: /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ O("ul", { children: [
|
|
214
|
+
/* @__PURE__ */ O("li", { children: [
|
|
211
215
|
"Expiration period:",
|
|
212
216
|
" ",
|
|
213
|
-
M.duration({ milliseconds:
|
|
217
|
+
M.duration({ milliseconds: K.expirationPeriod }).asDays(),
|
|
214
218
|
" ",
|
|
215
219
|
"day(s)",
|
|
216
|
-
|
|
220
|
+
K.expirationPeriod === 0 && " (no expiration)"
|
|
217
221
|
] }),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
K.isCertifiedUserRequired && /* @__PURE__ */ D("li", { children: "User must be Certified" }),
|
|
223
|
+
K.isValidatedProfileRequired && /* @__PURE__ */ D("li", { children: "User Profile must be Validated" }),
|
|
224
|
+
K.isDUCRequired && /* @__PURE__ */ D("li", { children: "DUC is required" }),
|
|
225
|
+
K.isIDURequired && /* @__PURE__ */ D("li", { children: "IDU is required" }),
|
|
226
|
+
K.isIDUPublic && /* @__PURE__ */ D("li", { children: "IDU will be made public" }),
|
|
227
|
+
K.isIRBApprovalRequired && /* @__PURE__ */ D("li", { children: "IRB Approval is required" }),
|
|
228
|
+
K.areOtherAttachmentsRequired && /* @__PURE__ */ D("li", { children: "Other attachments are required" })
|
|
225
229
|
] })
|
|
226
|
-
}) : /* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
230
|
+
}) : /* @__PURE__ */ D(C, { width: 100 }),
|
|
231
|
+
/* @__PURE__ */ D("br", {}),
|
|
232
|
+
/* @__PURE__ */ O("div", {
|
|
229
233
|
className: "SubmissionSummaryGrid",
|
|
230
234
|
children: [
|
|
231
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ D(T, {
|
|
232
236
|
variant: "dataFieldKey",
|
|
233
237
|
children: "Submitted By"
|
|
234
238
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ D(T, {
|
|
236
240
|
variant: "smallText1",
|
|
237
|
-
children:
|
|
241
|
+
children: z ? /* @__PURE__ */ D(l, { userId: z.submittedBy }) : /* @__PURE__ */ D(C, { width: 100 })
|
|
238
242
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ D(T, {
|
|
240
244
|
variant: "dataFieldKey",
|
|
241
245
|
children: "Submitted On"
|
|
242
246
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ D(T, {
|
|
244
248
|
variant: "smallText1",
|
|
245
|
-
children:
|
|
249
|
+
children: z ? s(M(z.submittedOn)) : /* @__PURE__ */ D(C, { width: 100 })
|
|
246
250
|
}),
|
|
247
|
-
|
|
251
|
+
c && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(T, {
|
|
248
252
|
variant: "dataFieldKey",
|
|
249
253
|
children: "Modified By"
|
|
250
|
-
}), /* @__PURE__ */
|
|
254
|
+
}), /* @__PURE__ */ D(T, {
|
|
251
255
|
variant: "smallText1",
|
|
252
|
-
children:
|
|
256
|
+
children: z ? /* @__PURE__ */ D(l, { userId: z.modifiedBy }) : /* @__PURE__ */ D(C, { width: 100 })
|
|
253
257
|
})] }),
|
|
254
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ D(T, {
|
|
255
259
|
variant: "dataFieldKey",
|
|
256
260
|
children: "Modified On"
|
|
257
261
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ D(T, {
|
|
259
263
|
variant: "smallText1",
|
|
260
|
-
children:
|
|
264
|
+
children: z ? s(M(z.modifiedOn)) : /* @__PURE__ */ D(C, { width: 100 })
|
|
261
265
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ O(T, {
|
|
263
267
|
className: "Key",
|
|
264
268
|
variant: "dataFieldKey",
|
|
265
|
-
children: ["Data Requesters", `${
|
|
269
|
+
children: ["Data Requesters", `${z ? ` (${z.accessorChanges.length})` : ""}`]
|
|
266
270
|
}),
|
|
267
|
-
|
|
271
|
+
z ? z.accessorChanges.map((e) => /* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(T, {
|
|
268
272
|
className: "Key DataAccessor",
|
|
269
273
|
variant: "smallText1",
|
|
270
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ D("span", {
|
|
271
275
|
style: { whiteSpace: "nowrap" },
|
|
272
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ D(l, { userId: e.userId }, e.userId)
|
|
273
277
|
})
|
|
274
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ D(T, {
|
|
275
279
|
className: "Value DataAccessor",
|
|
276
280
|
variant: "smallText1",
|
|
277
|
-
children:
|
|
278
|
-
})] }, e.userId)) : /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
281
|
+
children: re(ne(e.type.substring(0, e.type.indexOf("_"))))
|
|
282
|
+
})] }, e.userId)) : /* @__PURE__ */ D(C, { width: 100 }),
|
|
283
|
+
/* @__PURE__ */ D(T, {
|
|
280
284
|
className: "Key",
|
|
281
285
|
variant: "dataFieldKey",
|
|
282
286
|
children: "Institution"
|
|
283
287
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ D(T, {
|
|
285
289
|
className: "Value",
|
|
286
290
|
variant: "smallText1",
|
|
287
|
-
children:
|
|
291
|
+
children: z ? z.researchProjectSnapshot.institution : /* @__PURE__ */ D(C, { width: 100 })
|
|
288
292
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ D(T, {
|
|
290
294
|
className: "Key",
|
|
291
295
|
variant: "dataFieldKey",
|
|
292
296
|
children: "Project Lead"
|
|
293
297
|
}),
|
|
294
|
-
/* @__PURE__ */
|
|
298
|
+
/* @__PURE__ */ D(T, {
|
|
295
299
|
className: "Value",
|
|
296
300
|
variant: "smallText1",
|
|
297
|
-
children:
|
|
301
|
+
children: z ? z.researchProjectSnapshot.projectLead : /* @__PURE__ */ D(C, { width: 100 })
|
|
298
302
|
})
|
|
299
303
|
]
|
|
300
304
|
})
|
|
301
305
|
]
|
|
302
306
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ D(S, {
|
|
304
308
|
size: {
|
|
305
309
|
xs: 12,
|
|
306
310
|
sm: 8,
|
|
307
311
|
lg: 9
|
|
308
312
|
},
|
|
309
|
-
children: /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ O(w, {
|
|
310
314
|
sx: { gap: 2 },
|
|
311
315
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
|
|
314
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ D(t, { children: z ? /* @__PURE__ */ D(I, { accessRequirementId: z.accessRequirementId }) : /* @__PURE__ */ D(E, {}) }),
|
|
317
|
+
z?.rejectedReason && /* @__PURE__ */ O("section", { children: [
|
|
318
|
+
/* @__PURE__ */ D(T, {
|
|
315
319
|
variant: "headline1",
|
|
316
320
|
gutterBottom: !0,
|
|
317
321
|
children: "Reason for rejection given by reviewer"
|
|
318
322
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ D("hr", {}),
|
|
324
|
+
/* @__PURE__ */ D(T, {
|
|
321
325
|
variant: "body1",
|
|
322
326
|
style: { whiteSpace: "pre-line" },
|
|
323
327
|
gutterBottom: !0,
|
|
324
|
-
children:
|
|
328
|
+
children: z.rejectedReason
|
|
325
329
|
})
|
|
326
330
|
] }),
|
|
327
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ O("section", { children: [/* @__PURE__ */ O(T, {
|
|
328
332
|
variant: "headline1",
|
|
329
|
-
children: ["Contents of the Access Request", /* @__PURE__ */
|
|
330
|
-
}), /* @__PURE__ */
|
|
333
|
+
children: ["Contents of the Access Request", /* @__PURE__ */ D("hr", {})]
|
|
334
|
+
}), /* @__PURE__ */ O(w, {
|
|
331
335
|
sx: { gap: 2 },
|
|
332
336
|
children: [
|
|
333
|
-
|
|
337
|
+
z?.researchProjectSnapshot?.intendedDataUseStatement && /* @__PURE__ */ O("section", { children: [/* @__PURE__ */ D(T, {
|
|
334
338
|
variant: "headline2",
|
|
335
339
|
gutterBottom: !0,
|
|
336
340
|
children: "Intended Data Use Statement"
|
|
337
|
-
}), /* @__PURE__ */
|
|
341
|
+
}), /* @__PURE__ */ D(T, {
|
|
338
342
|
variant: "body1",
|
|
339
343
|
style: { whiteSpace: "pre-line" },
|
|
340
344
|
gutterBottom: !0,
|
|
341
|
-
children:
|
|
345
|
+
children: z.researchProjectSnapshot.intendedDataUseStatement
|
|
342
346
|
})] }),
|
|
343
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ D(T, {
|
|
344
348
|
variant: "headline2",
|
|
345
349
|
gutterBottom: !0,
|
|
346
350
|
children: "Documents"
|
|
347
351
|
}),
|
|
348
|
-
|
|
352
|
+
z?.ducFileHandleId && /* @__PURE__ */ O("section", { children: [/* @__PURE__ */ D(T, {
|
|
349
353
|
variant: "smallText2",
|
|
350
354
|
children: "Data Use Certificate (DUC)"
|
|
351
|
-
}), /* @__PURE__ */
|
|
352
|
-
submissionId:
|
|
353
|
-
fileHandleId:
|
|
355
|
+
}), /* @__PURE__ */ D(F, {
|
|
356
|
+
submissionId: z.id,
|
|
357
|
+
fileHandleId: z.ducFileHandleId
|
|
354
358
|
})] }),
|
|
355
|
-
|
|
359
|
+
z?.irbFileHandleId && /* @__PURE__ */ O("section", { children: [/* @__PURE__ */ D(T, {
|
|
356
360
|
variant: "smallText2",
|
|
357
361
|
gutterBottom: !0,
|
|
358
362
|
children: "IRB Approval Letter"
|
|
359
|
-
}), /* @__PURE__ */
|
|
360
|
-
submissionId:
|
|
361
|
-
fileHandleId:
|
|
363
|
+
}), /* @__PURE__ */ D(F, {
|
|
364
|
+
submissionId: z.id,
|
|
365
|
+
fileHandleId: z.irbFileHandleId
|
|
362
366
|
})] }),
|
|
363
|
-
|
|
367
|
+
z?.attachments && /* @__PURE__ */ O("section", { children: [/* @__PURE__ */ D(T, {
|
|
364
368
|
variant: "smallText2",
|
|
365
369
|
gutterBottom: !0,
|
|
366
370
|
children: "Other Attachments"
|
|
367
|
-
}),
|
|
368
|
-
submissionId:
|
|
371
|
+
}), z.attachments.map((e) => /* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(F, {
|
|
372
|
+
submissionId: z.id,
|
|
369
373
|
fileHandleId: e
|
|
370
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ D("br", {})] }, e))] })
|
|
371
375
|
]
|
|
372
|
-
})] })
|
|
376
|
+
})] }),
|
|
377
|
+
Y?.id && /* @__PURE__ */ D(p, {
|
|
378
|
+
threadId: Y.id,
|
|
379
|
+
limit: 25,
|
|
380
|
+
emptyBodyContent: P
|
|
381
|
+
})
|
|
373
382
|
]
|
|
374
383
|
})
|
|
375
384
|
})
|
|
@@ -377,6 +386,6 @@ function L(a) {
|
|
|
377
386
|
});
|
|
378
387
|
}
|
|
379
388
|
//#endregion
|
|
380
|
-
export {
|
|
389
|
+
export { R as default };
|
|
381
390
|
|
|
382
391
|
//# sourceMappingURL=SubmissionPage.js.map
|