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