synapse-react-client 3.1.37 → 3.1.38-SWC-6490
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/index.d.ts +9 -2
- package/dist/index.js +696 -517
- package/dist/index.mjs +1090 -911
- package/dist/umd/synapse-react-client.development.js +710 -517
- package/dist/umd/synapse-react-client.development.js.map +4 -4
- package/dist/umd/synapse-react-client.production.min.js +110 -110
- package/package.json +1 -1
|
@@ -34258,7 +34258,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
34258
34258
|
return x3 === y2 && (x3 !== 0 || 1 / x3 === 1 / y2) || x3 !== x3 && y2 !== y2;
|
|
34259
34259
|
}
|
|
34260
34260
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
34261
|
-
var
|
|
34261
|
+
var useState154 = React666.useState, useEffect120 = React666.useEffect, useLayoutEffect4 = React666.useLayoutEffect, useDebugValue5 = React666.useDebugValue;
|
|
34262
34262
|
var didWarnOld18Alpha = false;
|
|
34263
34263
|
var didWarnUncachedGetSnapshot = false;
|
|
34264
34264
|
function useSyncExternalStore2(subscribe, getSnapshot, getServerSnapshot) {
|
|
@@ -34280,7 +34280,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
34280
34280
|
}
|
|
34281
34281
|
}
|
|
34282
34282
|
}
|
|
34283
|
-
var _useState =
|
|
34283
|
+
var _useState = useState154({
|
|
34284
34284
|
inst: {
|
|
34285
34285
|
value,
|
|
34286
34286
|
getSnapshot
|
|
@@ -34295,7 +34295,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
34295
34295
|
});
|
|
34296
34296
|
}
|
|
34297
34297
|
}, [subscribe, value, getSnapshot]);
|
|
34298
|
-
|
|
34298
|
+
useEffect120(function() {
|
|
34299
34299
|
if (checkIfSnapshotChanged(inst)) {
|
|
34300
34300
|
forceUpdate({
|
|
34301
34301
|
inst
|
|
@@ -34368,7 +34368,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
34368
34368
|
}
|
|
34369
34369
|
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
34370
34370
|
var useSyncExternalStore2 = shim.useSyncExternalStore;
|
|
34371
|
-
var useRef69 = React666.useRef,
|
|
34371
|
+
var useRef69 = React666.useRef, useEffect120 = React666.useEffect, useMemo68 = React666.useMemo, useDebugValue5 = React666.useDebugValue;
|
|
34372
34372
|
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual4) {
|
|
34373
34373
|
var instRef = useRef69(null);
|
|
34374
34374
|
var inst;
|
|
@@ -34425,7 +34425,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
34425
34425
|
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
34426
34426
|
}, [getSnapshot, getServerSnapshot, selector, isEqual4]), getSelection2 = _useMemo[0], getServerSelection = _useMemo[1];
|
|
34427
34427
|
var value = useSyncExternalStore2(subscribe, getSelection2, getServerSelection);
|
|
34428
|
-
|
|
34428
|
+
useEffect120(function() {
|
|
34429
34429
|
inst.hasValue = true;
|
|
34430
34430
|
inst.value = value;
|
|
34431
34431
|
}, [value]);
|
|
@@ -59546,7 +59546,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
|
59546
59546
|
"package.json"(exports2, module2) {
|
|
59547
59547
|
module2.exports = {
|
|
59548
59548
|
name: "synapse-react-client",
|
|
59549
|
-
version: "3.1.
|
|
59549
|
+
version: "3.1.38-SWC-6490",
|
|
59550
59550
|
private: false,
|
|
59551
59551
|
main: "./dist/index.js",
|
|
59552
59552
|
module: "./dist/index.mjs",
|
|
@@ -95455,6 +95455,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95455
95455
|
getSchema: () => getSchema,
|
|
95456
95456
|
getSchemaBinding: () => getSchemaBinding,
|
|
95457
95457
|
getSchemaValidationResults: () => getSchemaValidationResults,
|
|
95458
|
+
getSubjects: () => getSubjects,
|
|
95458
95459
|
getSubmissionById: () => getSubmissionById,
|
|
95459
95460
|
getSubmissionTeams: () => getSubmissionTeams,
|
|
95460
95461
|
getSubscribers: () => getSubscribers,
|
|
@@ -95668,7 +95669,35 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95668
95669
|
}
|
|
95669
95670
|
}
|
|
95670
95671
|
|
|
95671
|
-
// ../synapse-types/
|
|
95672
|
+
// ../synapse-types/dist/index.mjs
|
|
95673
|
+
var ApprovalState = /* @__PURE__ */ ((ApprovalState2) => {
|
|
95674
|
+
ApprovalState2["APPROVED"] = "APPROVED";
|
|
95675
|
+
ApprovalState2["REVOKED"] = "REVOKED";
|
|
95676
|
+
return ApprovalState2;
|
|
95677
|
+
})(ApprovalState || {});
|
|
95678
|
+
var AccessApprovalSortField = /* @__PURE__ */ ((AccessApprovalSortField2) => {
|
|
95679
|
+
AccessApprovalSortField2["MODIFIED_ON"] = "MODIFIED_ON";
|
|
95680
|
+
AccessApprovalSortField2["EXPIRED_ON"] = "EXPIRED_ON";
|
|
95681
|
+
return AccessApprovalSortField2;
|
|
95682
|
+
})(AccessApprovalSortField || {});
|
|
95683
|
+
var SubmissionSortField = /* @__PURE__ */ ((SubmissionSortField2) => {
|
|
95684
|
+
SubmissionSortField2["MODIFIED_ON"] = "MODIFIED_ON";
|
|
95685
|
+
SubmissionSortField2["CREATED_ON"] = "CREATED_ON";
|
|
95686
|
+
return SubmissionSortField2;
|
|
95687
|
+
})(SubmissionSortField || {});
|
|
95688
|
+
var AccessType = /* @__PURE__ */ ((AccessType2) => {
|
|
95689
|
+
AccessType2["GAIN_ACCESS"] = "GAIN_ACCESS";
|
|
95690
|
+
AccessType2["RENEW_ACCESS"] = "RENEW_ACCESS";
|
|
95691
|
+
AccessType2["REVOKE_ACCESS"] = "REVOKE_ACCESS";
|
|
95692
|
+
return AccessType2;
|
|
95693
|
+
})(AccessType || {});
|
|
95694
|
+
var SubmissionState = /* @__PURE__ */ ((SubmissionState22) => {
|
|
95695
|
+
SubmissionState22["SUBMITTED"] = "SUBMITTED";
|
|
95696
|
+
SubmissionState22["APPROVED"] = "APPROVED";
|
|
95697
|
+
SubmissionState22["REJECTED"] = "REJECTED";
|
|
95698
|
+
SubmissionState22["CANCELLED"] = "CANCELLED";
|
|
95699
|
+
return SubmissionState22;
|
|
95700
|
+
})(SubmissionState || {});
|
|
95672
95701
|
var scopeDescriptions = {
|
|
95673
95702
|
openid: {
|
|
95674
95703
|
displayName: "OpenID",
|
|
@@ -95695,34 +95724,33 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95695
95724
|
description: "Permission to access the resources authorized here when you are not logged in, until you explicitly revoke access"
|
|
95696
95725
|
}
|
|
95697
95726
|
};
|
|
95698
|
-
|
|
95699
|
-
// ../synapse-types/src/CertificationQuiz/Questions.ts
|
|
95700
95727
|
var MULTICHOICE_RESPONSE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.quiz.MultichoiceResponse";
|
|
95701
|
-
|
|
95702
|
-
|
|
95728
|
+
var DiscussionThreadOrder = /* @__PURE__ */ ((DiscussionThreadOrder2) => {
|
|
95729
|
+
DiscussionThreadOrder2["NUMBER_OF_REPLIES"] = "NUMBER_OF_REPLIES";
|
|
95730
|
+
DiscussionThreadOrder2["NUMBER_OF_VIEWS"] = "NUMBER_OF_VIEWS";
|
|
95731
|
+
DiscussionThreadOrder2["PINNED_AND_LAST_ACTIVITY"] = "PINNED_AND_LAST_ACTIVITY";
|
|
95732
|
+
DiscussionThreadOrder2["THREAD_TITLE"] = "THREAD_TITLE";
|
|
95733
|
+
return DiscussionThreadOrder2;
|
|
95734
|
+
})(DiscussionThreadOrder || {});
|
|
95735
|
+
var DiscussionReplyOrder = /* @__PURE__ */ ((DiscussionReplyOrder2) => {
|
|
95736
|
+
DiscussionReplyOrder2["CREATED_ON"] = "CREATED_ON";
|
|
95737
|
+
return DiscussionReplyOrder2;
|
|
95738
|
+
})(DiscussionReplyOrder || {});
|
|
95739
|
+
var DiscussionFilter = /* @__PURE__ */ ((DiscussionFilter2) => {
|
|
95740
|
+
DiscussionFilter2["NO_FILTER"] = "NO_FILTER";
|
|
95741
|
+
DiscussionFilter2["DELETED_ONLY"] = "DELETED_ONLY";
|
|
95742
|
+
DiscussionFilter2["EXCLUDE_DELETED"] = "EXCLUDE_DELETED";
|
|
95743
|
+
return DiscussionFilter2;
|
|
95744
|
+
})(DiscussionFilter || {});
|
|
95703
95745
|
var DOCKER_REPOSITORY_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.docker.DockerRepository";
|
|
95704
|
-
|
|
95705
|
-
// ../synapse-types/src/Entity/FileEntity.ts
|
|
95706
95746
|
var FILE_ENTITY_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.FileEntity";
|
|
95707
|
-
|
|
95708
|
-
// ../synapse-types/src/Table/MaterializedView.ts
|
|
95709
95747
|
var MATERIALIZED_VIEW_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.MaterializedView";
|
|
95710
|
-
|
|
95711
|
-
// ../synapse-types/src/Table/EntityView.ts
|
|
95712
95748
|
var ENTITY_VIEW_TYPE_MASK_FILE = 1;
|
|
95713
95749
|
var ENTITY_VIEW_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.EntityView";
|
|
95714
|
-
|
|
95715
|
-
// ../synapse-types/src/Table/SubmissionView.ts
|
|
95716
95750
|
var SUBMISSION_VIEW_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.SubmissionView";
|
|
95717
|
-
|
|
95718
|
-
// ../synapse-types/src/Table/Dataset.ts
|
|
95719
95751
|
var DATASET_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.Dataset";
|
|
95720
95752
|
var DATASET_COLLECTION_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.DatasetCollection";
|
|
95721
|
-
|
|
95722
|
-
// ../synapse-types/src/Table/VirtualTable.ts
|
|
95723
95753
|
var VIRTUAL_TABLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.VirtualTable";
|
|
95724
|
-
|
|
95725
|
-
// ../synapse-types/src/Table/ConcreteType.ts
|
|
95726
95754
|
var TABLE_ENTITY_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.TableEntity";
|
|
95727
95755
|
var VIEW_CONCRETE_TYPE_VALUES = [
|
|
95728
95756
|
ENTITY_VIEW_CONCRETE_TYPE_VALUE,
|
|
@@ -95736,23 +95764,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95736
95764
|
MATERIALIZED_VIEW_CONCRETE_TYPE_VALUE,
|
|
95737
95765
|
VIRTUAL_TABLE_CONCRETE_TYPE_VALUE
|
|
95738
95766
|
];
|
|
95739
|
-
|
|
95740
|
-
// ../synapse-types/src/Entity/Entity.ts
|
|
95741
95767
|
var VERSIONABLE_ENTITY_CONCRETE_TYPE_VALUES = [
|
|
95742
95768
|
FILE_ENTITY_CONCRETE_TYPE_VALUE,
|
|
95743
95769
|
...TABLE_CONCRETE_TYPE_VALUES
|
|
95744
95770
|
];
|
|
95745
|
-
|
|
95746
|
-
// ../synapse-types/src/Entity/Folder.ts
|
|
95747
95771
|
var FOLDER_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.Folder";
|
|
95748
|
-
|
|
95749
|
-
// ../synapse-types/src/Entity/Link.ts
|
|
95750
95772
|
var LINK_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.Link";
|
|
95751
|
-
|
|
95752
|
-
// ../synapse-types/src/Entity/Project.ts
|
|
95753
95773
|
var PROJECT_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.Project";
|
|
95754
|
-
|
|
95755
|
-
// ../synapse-types/src/EntityBundle.ts
|
|
95756
95774
|
var ALL_ENTITY_BUNDLE_FIELDS = {
|
|
95757
95775
|
includeEntity: true,
|
|
95758
95776
|
includeEntityPath: true,
|
|
@@ -95769,40 +95787,69 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95769
95787
|
includeThreadCount: true,
|
|
95770
95788
|
includeRestrictionInformation: true
|
|
95771
95789
|
};
|
|
95772
|
-
|
|
95773
|
-
|
|
95774
|
-
|
|
95775
|
-
|
|
95776
|
-
|
|
95777
|
-
|
|
95778
|
-
|
|
95779
|
-
|
|
95780
|
-
|
|
95781
|
-
|
|
95782
|
-
|
|
95783
|
-
|
|
95784
|
-
|
|
95785
|
-
|
|
95786
|
-
|
|
95787
|
-
|
|
95790
|
+
var SortBy = /* @__PURE__ */ ((SortBy2) => {
|
|
95791
|
+
SortBy2["NAME"] = "NAME";
|
|
95792
|
+
SortBy2["CREATED_ON"] = "CREATED_ON";
|
|
95793
|
+
SortBy2["MODIFIED_ON"] = "MODIFIED_ON";
|
|
95794
|
+
return SortBy2;
|
|
95795
|
+
})(SortBy || {});
|
|
95796
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
95797
|
+
Direction2["ASC"] = "ASC";
|
|
95798
|
+
Direction2["DESC"] = "DESC";
|
|
95799
|
+
return Direction2;
|
|
95800
|
+
})(Direction || {});
|
|
95801
|
+
var EntityType = /* @__PURE__ */ ((EntityType22) => {
|
|
95802
|
+
EntityType22["PROJECT"] = "project";
|
|
95803
|
+
EntityType22["FOLDER"] = "folder";
|
|
95804
|
+
EntityType22["FILE"] = "file";
|
|
95805
|
+
EntityType22["TABLE"] = "table";
|
|
95806
|
+
EntityType22["LINK"] = "link";
|
|
95807
|
+
EntityType22["ENTITY_VIEW"] = "entityview";
|
|
95808
|
+
EntityType22["DOCKER_REPO"] = "dockerrepo";
|
|
95809
|
+
EntityType22["SUBMISSION_VIEW"] = "submissionview";
|
|
95810
|
+
EntityType22["DATASET"] = "dataset";
|
|
95811
|
+
EntityType22["DATASET_COLLECTION"] = "datasetcollection";
|
|
95812
|
+
EntityType22["MATERIALIZED_VIEW"] = "materializedview";
|
|
95813
|
+
EntityType22["VIRTUAL_TABLE"] = "virtualtable";
|
|
95814
|
+
return EntityType22;
|
|
95788
95815
|
})(EntityType || {});
|
|
95789
|
-
|
|
95790
|
-
|
|
95816
|
+
var ErrorResponseCode = /* @__PURE__ */ ((ErrorResponseCode2) => {
|
|
95817
|
+
ErrorResponseCode2["PASSWORD_RESET_VIA_EMAIL_REQUIRED"] = "PASSWORD_RESET_VIA_EMAIL_REQUIRED";
|
|
95818
|
+
ErrorResponseCode2["USER_CERTIFICATION_REQUIRED"] = "USER_CERTIFICATION_REQUIRED";
|
|
95819
|
+
ErrorResponseCode2["INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST"] = "INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST";
|
|
95820
|
+
ErrorResponseCode2["OAUTH_CLIENT_NOT_VERIFIED"] = "OAUTH_CLIENT_NOT_VERIFIED";
|
|
95821
|
+
ErrorResponseCode2["TWO_FA_REQUIRED"] = "TWO_FA_REQUIRED";
|
|
95822
|
+
return ErrorResponseCode2;
|
|
95823
|
+
})(ErrorResponseCode || {});
|
|
95791
95824
|
var S3_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.S3FileHandle";
|
|
95792
|
-
|
|
95793
|
-
// ../synapse-types/src/File/GoogleCloudFileHandle.ts
|
|
95794
95825
|
var GOOGLE_CLOUD_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.GoogleCloudFileHandle";
|
|
95795
|
-
|
|
95796
|
-
// ../synapse-types/src/File/ExternalFileHandle.ts
|
|
95797
95826
|
var EXTERNAL_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.ExternalFileHandle";
|
|
95798
|
-
|
|
95799
|
-
// ../synapse-types/src/File/ExternalObjectStoreFileHandle.ts
|
|
95800
95827
|
var EXTERNAL_OBJECT_STORE_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.ExternalObjectStoreFileHandle";
|
|
95801
|
-
|
|
95802
|
-
// ../synapse-types/src/File/ProxyFileHandle.ts
|
|
95803
95828
|
var PROXY_FILE_HANDLE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.file.ProxyFileHandle";
|
|
95804
|
-
|
|
95805
|
-
|
|
95829
|
+
var UploadType = /* @__PURE__ */ ((UploadType2) => {
|
|
95830
|
+
UploadType2["S3"] = "S3";
|
|
95831
|
+
UploadType2["GOOGLECLOUDSTORAGE"] = "GOOGLECLOUDSTORAGE";
|
|
95832
|
+
UploadType2["SFTP"] = "SFTP";
|
|
95833
|
+
UploadType2["HTTPS"] = "HTTPS";
|
|
95834
|
+
UploadType2["PROXYLOCAL"] = "PROXYLOCAL";
|
|
95835
|
+
UploadType2["NONE"] = "NONE";
|
|
95836
|
+
return UploadType2;
|
|
95837
|
+
})(UploadType || {});
|
|
95838
|
+
var FileHandleAssociateType = /* @__PURE__ */ ((FileHandleAssociateType2) => {
|
|
95839
|
+
FileHandleAssociateType2["FileEntity"] = "FileEntity";
|
|
95840
|
+
FileHandleAssociateType2["TableEntity"] = "TableEntity";
|
|
95841
|
+
FileHandleAssociateType2["WikiAttachment"] = "WikiAttachment";
|
|
95842
|
+
FileHandleAssociateType2["WikiMarkdown"] = "WikiMarkdown";
|
|
95843
|
+
FileHandleAssociateType2["UserProfileAttachment"] = "UserProfileAttachment";
|
|
95844
|
+
FileHandleAssociateType2["MessageAttachment"] = "MessageAttachment";
|
|
95845
|
+
FileHandleAssociateType2["TeamAttachment"] = "TeamAttachment";
|
|
95846
|
+
FileHandleAssociateType2["SubmissionAttachment"] = "SubmissionAttachment";
|
|
95847
|
+
FileHandleAssociateType2["VerificationSubmission"] = "VerificationSubmission";
|
|
95848
|
+
FileHandleAssociateType2["AccessRequirementAttachment"] = "AccessRequirementAttachment";
|
|
95849
|
+
FileHandleAssociateType2["DataAccessRequestAttachment"] = "DataAccessRequestAttachment";
|
|
95850
|
+
FileHandleAssociateType2["DataAccessSubmissionAttachment"] = "DataAccessSubmissionAttachment";
|
|
95851
|
+
return FileHandleAssociateType2;
|
|
95852
|
+
})(FileHandleAssociateType || {});
|
|
95806
95853
|
var ObjectType = /* @__PURE__ */ ((ObjectType2) => {
|
|
95807
95854
|
ObjectType2["ENTITY"] = "ENTITY";
|
|
95808
95855
|
ObjectType2["ENTITY_CONTAINER"] = "ENTITY_CONTAINER";
|
|
@@ -95836,38 +95883,97 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95836
95883
|
ObjectType2["MEMBERSHIP_INVITATION"] = "MEMBERSHIP_INVITATION";
|
|
95837
95884
|
return ObjectType2;
|
|
95838
95885
|
})(ObjectType || {});
|
|
95839
|
-
|
|
95840
|
-
|
|
95886
|
+
var AliasType = /* @__PURE__ */ ((AliasType2) => {
|
|
95887
|
+
AliasType2["USER_NAME"] = "USER_NAME";
|
|
95888
|
+
AliasType2["TEAM_NAME"] = "TEAM_NAME";
|
|
95889
|
+
AliasType2["USER_EMAIL"] = "USER_EMAIL";
|
|
95890
|
+
AliasType2["USER_OPEN_ID"] = "USER_OPEN_ID";
|
|
95891
|
+
AliasType2["USER_ORCID"] = "USER_ORCID";
|
|
95892
|
+
return AliasType2;
|
|
95893
|
+
})(AliasType || {});
|
|
95841
95894
|
var USED_ENTITY_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.provenance.UsedEntity";
|
|
95842
|
-
|
|
95843
|
-
|
|
95895
|
+
var RestrictableObjectType = /* @__PURE__ */ ((RestrictableObjectType2) => {
|
|
95896
|
+
RestrictableObjectType2["ENTITY"] = "ENTITY";
|
|
95897
|
+
RestrictableObjectType2["EVALUATION"] = "EVALUATION";
|
|
95898
|
+
RestrictableObjectType2["TEAM"] = "TEAM";
|
|
95899
|
+
return RestrictableObjectType2;
|
|
95900
|
+
})(RestrictableObjectType || {});
|
|
95901
|
+
var RestrictionLevel = /* @__PURE__ */ ((RestrictionLevel2) => {
|
|
95902
|
+
RestrictionLevel2["OPEN"] = "OPEN";
|
|
95903
|
+
RestrictionLevel2["RESTRICTED_BY_TERMS_OF_USE"] = "RESTRICTED_BY_TERMS_OF_USE";
|
|
95904
|
+
RestrictionLevel2["CONTROLLED_BY_ACT"] = "CONTROLLED_BY_ACT";
|
|
95905
|
+
return RestrictionLevel2;
|
|
95906
|
+
})(RestrictionLevel || {});
|
|
95844
95907
|
var MEMBERSHIP_INVITATION_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.MembershipInvtnSignedToken";
|
|
95845
95908
|
var JOIN_TEAM_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.JoinTeamSignedToken";
|
|
95846
95909
|
var INVITEE_VERIFICATION_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.InviteeVerificationSignedToken";
|
|
95847
|
-
|
|
95848
|
-
// ../synapse-types/src/util/IsType.ts
|
|
95849
95910
|
function isTypeViaConcreteTypeFactory(...expectedConcreteTypes) {
|
|
95850
95911
|
return (object) => !!(object && typeof object === "object" && "concreteType" in object && expectedConcreteTypes.includes(object["concreteType"]));
|
|
95851
95912
|
}
|
|
95852
|
-
|
|
95853
|
-
// ../synapse-types/src/SignedToken/JoinTeamSignedToken.ts
|
|
95854
95913
|
var isJoinTeamSignedToken = isTypeViaConcreteTypeFactory(
|
|
95855
95914
|
JOIN_TEAM_CONCRETE_TYPE_VALUE
|
|
95856
95915
|
);
|
|
95857
|
-
|
|
95858
|
-
// ../synapse-types/src/SignedToken/MembershipInvtnSignedToken.ts
|
|
95859
95916
|
var isMembershipInvtnSignedToken = isTypeViaConcreteTypeFactory(
|
|
95860
95917
|
MEMBERSHIP_INVITATION_CONCRETE_TYPE_VALUE
|
|
95861
95918
|
);
|
|
95862
|
-
|
|
95863
|
-
|
|
95919
|
+
var SubscriptionObjectType = /* @__PURE__ */ ((SubscriptionObjectType22) => {
|
|
95920
|
+
SubscriptionObjectType22["FORUM"] = "FORUM";
|
|
95921
|
+
SubscriptionObjectType22["THREAD"] = "THREAD";
|
|
95922
|
+
SubscriptionObjectType22["DATA_ACCESS_SUBMISSION"] = "DATA_ACCESS_SUBMISSION";
|
|
95923
|
+
SubscriptionObjectType22["DATA_ACCESS_SUBMISSION_STATUS"] = "DATA_ACCESS_SUBMISSION_STATUS";
|
|
95924
|
+
return SubscriptionObjectType22;
|
|
95925
|
+
})(SubscriptionObjectType || {});
|
|
95926
|
+
var SortByType = /* @__PURE__ */ ((SortByType2) => {
|
|
95927
|
+
SortByType2["SUBSCRIPTION_ID"] = "SUBSCRIPTION_ID";
|
|
95928
|
+
SortByType2["SUBSCRIBER_ID"] = "SUBSCRIBER_ID";
|
|
95929
|
+
SortByType2["OBJECT_ID"] = "OBJECT_ID";
|
|
95930
|
+
SortByType2["OBJECT_TYPE"] = "OBJECT_TYPE";
|
|
95931
|
+
SortByType2["CREATED_ON"] = "CREATED_ON";
|
|
95932
|
+
return SortByType2;
|
|
95933
|
+
})(SortByType || {});
|
|
95934
|
+
var ColumnTypeEnum = /* @__PURE__ */ ((ColumnTypeEnum2) => {
|
|
95935
|
+
ColumnTypeEnum2["STRING"] = "STRING";
|
|
95936
|
+
ColumnTypeEnum2["DOUBLE"] = "DOUBLE";
|
|
95937
|
+
ColumnTypeEnum2["BOOLEAN"] = "BOOLEAN";
|
|
95938
|
+
ColumnTypeEnum2["INTEGER"] = "INTEGER";
|
|
95939
|
+
ColumnTypeEnum2["DATE"] = "DATE";
|
|
95940
|
+
ColumnTypeEnum2["FILEHANDLEID"] = "FILEHANDLEID";
|
|
95941
|
+
ColumnTypeEnum2["ENTITYID"] = "ENTITYID";
|
|
95942
|
+
ColumnTypeEnum2["LINK"] = "LINK";
|
|
95943
|
+
ColumnTypeEnum2["MEDIUMTEXT"] = "MEDIUMTEXT";
|
|
95944
|
+
ColumnTypeEnum2["LARGETEXT"] = "LARGETEXT";
|
|
95945
|
+
ColumnTypeEnum2["USERID"] = "USERID";
|
|
95946
|
+
ColumnTypeEnum2["STRING_LIST"] = "STRING_LIST";
|
|
95947
|
+
ColumnTypeEnum2["INTEGER_LIST"] = "INTEGER_LIST";
|
|
95948
|
+
ColumnTypeEnum2["BOOLEAN_LIST"] = "BOOLEAN_LIST";
|
|
95949
|
+
ColumnTypeEnum2["DATE_LIST"] = "DATE_LIST";
|
|
95950
|
+
ColumnTypeEnum2["USERID_LIST"] = "USERID_LIST";
|
|
95951
|
+
ColumnTypeEnum2["ENTITYID_LIST"] = "ENTITYID_LIST";
|
|
95952
|
+
ColumnTypeEnum2["EVALUATIONID"] = "EVALUATIONID";
|
|
95953
|
+
return ColumnTypeEnum2;
|
|
95954
|
+
})(ColumnTypeEnum || {});
|
|
95864
95955
|
var FACET_COLUMN_VALUES_REQUEST_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.FacetColumnValuesRequest";
|
|
95865
95956
|
var FACET_COLUMN_RANGE_REQUEST_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.FacetColumnRangeRequest";
|
|
95866
|
-
|
|
95867
|
-
|
|
95957
|
+
var ColumnSingleValueFilterOperator = /* @__PURE__ */ ((ColumnSingleValueFilterOperator2) => {
|
|
95958
|
+
ColumnSingleValueFilterOperator2["LIKE"] = "LIKE";
|
|
95959
|
+
ColumnSingleValueFilterOperator2["EQUAL"] = "EQUAL";
|
|
95960
|
+
ColumnSingleValueFilterOperator2["IN"] = "IN";
|
|
95961
|
+
return ColumnSingleValueFilterOperator2;
|
|
95962
|
+
})(ColumnSingleValueFilterOperator || {});
|
|
95963
|
+
var ColumnMultiValueFunction = /* @__PURE__ */ ((ColumnMultiValueFunction2) => {
|
|
95964
|
+
ColumnMultiValueFunction2["HAS"] = "HAS";
|
|
95965
|
+
ColumnMultiValueFunction2["HAS_LIKE"] = "HAS_LIKE";
|
|
95966
|
+
return ColumnMultiValueFunction2;
|
|
95967
|
+
})(ColumnMultiValueFunction || {});
|
|
95868
95968
|
var COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter";
|
|
95869
95969
|
var COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter";
|
|
95870
95970
|
var TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.TextMatchesQueryFilter";
|
|
95971
|
+
var TYPE_FILTER = /* @__PURE__ */ ((TYPE_FILTER2) => {
|
|
95972
|
+
TYPE_FILTER2["USERS_ONLY"] = "USERS_ONLY";
|
|
95973
|
+
TYPE_FILTER2["TEAMS_ONLY"] = "TEAMS_ONLY";
|
|
95974
|
+
TYPE_FILTER2["ALL"] = "ALL";
|
|
95975
|
+
return TYPE_FILTER2;
|
|
95976
|
+
})(TYPE_FILTER || {});
|
|
95871
95977
|
|
|
95872
95978
|
// src/utils/SynapseClientError.ts
|
|
95873
95979
|
var SynapseClientError = class extends Error {
|
|
@@ -95939,7 +96045,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
95939
96045
|
try {
|
|
95940
96046
|
response = yield fn();
|
|
95941
96047
|
} catch (e3) {
|
|
95942
|
-
if (e3 instanceof SynapseClientError && e3.status === 401 && e3.errorResponse && "errorCode" in e3.errorResponse && e3.errorResponse.errorCode ===
|
|
96048
|
+
if (e3 instanceof SynapseClientError && e3.status === 401 && e3.errorResponse && "errorCode" in e3.errorResponse && e3.errorResponse.errorCode === ErrorResponseCode.TWO_FA_REQUIRED && e3.errorResponse.concreteType === "org.sagebionetworks.repo.model.auth.TwoFactorAuthErrorResponse") {
|
|
95943
96049
|
return e3.errorResponse;
|
|
95944
96050
|
} else {
|
|
95945
96051
|
throw e3;
|
|
@@ -96308,7 +96414,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
96308
96414
|
0 /* REPO_ENDPOINT */
|
|
96309
96415
|
);
|
|
96310
96416
|
};
|
|
96311
|
-
var getUserGroupHeaders = (prefix2 = "", typeFilter =
|
|
96417
|
+
var getUserGroupHeaders = (prefix2 = "", typeFilter = TYPE_FILTER.ALL, offset = 0, limit = 20) => {
|
|
96312
96418
|
return doGet(
|
|
96313
96419
|
USER_GROUP_HEADERS + `?prefix=${prefix2}&typeFilter=${typeFilter}&offset=${offset}&limit=${limit}`,
|
|
96314
96420
|
void 0,
|
|
@@ -96450,7 +96556,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
96450
96556
|
function getObjectTypeToString(key) {
|
|
96451
96557
|
return ObjectType[key];
|
|
96452
96558
|
}
|
|
96453
|
-
var getEntityWiki = (accessToken, ownerId, wikiId = "", objectType =
|
|
96559
|
+
var getEntityWiki = (accessToken, ownerId, wikiId = "", objectType = ObjectType.ENTITY) => {
|
|
96454
96560
|
const objectTypeString = getObjectTypeToString(objectType);
|
|
96455
96561
|
const url = `/repo/v1/${objectTypeString == null ? void 0 : objectTypeString.toLocaleLowerCase()}/${ownerId}/wiki/${wikiId}`;
|
|
96456
96562
|
return doGet(url, accessToken, 0 /* REPO_ENDPOINT */);
|
|
@@ -96649,7 +96755,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
96649
96755
|
0 /* REPO_ENDPOINT */
|
|
96650
96756
|
);
|
|
96651
96757
|
};
|
|
96652
|
-
var getWikiAttachmentsFromEntity = (accessToken, id2, wikiId, objectType =
|
|
96758
|
+
var getWikiAttachmentsFromEntity = (accessToken, id2, wikiId, objectType = ObjectType.ENTITY) => {
|
|
96653
96759
|
const objectTypeString = getObjectTypeToString(objectType);
|
|
96654
96760
|
const url = `/repo/v1/${objectTypeString.toLocaleLowerCase()}/${id2}/wiki2/${wikiId}/attachmenthandles`;
|
|
96655
96761
|
return doGet(url, accessToken, 0 /* REPO_ENDPOINT */);
|
|
@@ -96658,7 +96764,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
96658
96764
|
const url = `/repo/v1/evaluation/${id2}/wiki/${wikiId}/attachmenthandles`;
|
|
96659
96765
|
return doGet(url, accessToken, 0 /* REPO_ENDPOINT */);
|
|
96660
96766
|
};
|
|
96661
|
-
var getPresignedUrlForWikiAttachment = (accessToken, id2, wikiId, fileName, objectType =
|
|
96767
|
+
var getPresignedUrlForWikiAttachment = (accessToken, id2, wikiId, fileName, objectType = ObjectType.ENTITY) => {
|
|
96662
96768
|
const objectTypeString = getObjectTypeToString(objectType);
|
|
96663
96769
|
const url = `/repo/v1/${objectTypeString.toLocaleLowerCase()}/${id2}/wiki2/${wikiId}/attachment?fileName=${fileName}&redirect=false`;
|
|
96664
96770
|
return doGet(url, accessToken, 0 /* REPO_ENDPOINT */);
|
|
@@ -96949,7 +97055,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
96949
97055
|
const fileHandleAssociationList = [
|
|
96950
97056
|
{
|
|
96951
97057
|
associateObjectId: fileEntity.id,
|
|
96952
|
-
associateObjectType:
|
|
97058
|
+
associateObjectType: FileHandleAssociateType.FileEntity,
|
|
96953
97059
|
fileHandleId: fileEntity.dataFileHandleId
|
|
96954
97060
|
}
|
|
96955
97061
|
];
|
|
@@ -97898,7 +98004,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
97898
98004
|
0 /* REPO_ENDPOINT */
|
|
97899
98005
|
);
|
|
97900
98006
|
};
|
|
97901
|
-
var getReplies = (accessToken, threadId, limit = 30, offset = 0, sort2 =
|
|
98007
|
+
var getReplies = (accessToken, threadId, limit = 30, offset = 0, sort2 = DiscussionReplyOrder.CREATED_ON, ascending2 = true, filter5 = DiscussionFilter.EXCLUDE_DELETED) => {
|
|
97902
98008
|
const params = new URLSearchParams();
|
|
97903
98009
|
params.set("offset", offset.toString());
|
|
97904
98010
|
params.set("limit", limit.toString());
|
|
@@ -98013,7 +98119,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
98013
98119
|
0 /* REPO_ENDPOINT */
|
|
98014
98120
|
);
|
|
98015
98121
|
};
|
|
98016
|
-
var getForumThread = (accessToken, forumId, offset = 0, limit = 20, sort2 =
|
|
98122
|
+
var getForumThread = (accessToken, forumId, offset = 0, limit = 20, sort2 = DiscussionThreadOrder.PINNED_AND_LAST_ACTIVITY, ascending2 = true, filter5 = DiscussionFilter.EXCLUDE_DELETED) => {
|
|
98017
98123
|
const params = new URLSearchParams();
|
|
98018
98124
|
params.set("offset", offset.toString());
|
|
98019
98125
|
params.set("limit", limit == null ? void 0 : limit.toString());
|
|
@@ -98222,6 +98328,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
98222
98328
|
0 /* REPO_ENDPOINT */
|
|
98223
98329
|
);
|
|
98224
98330
|
};
|
|
98331
|
+
function getSubjects(accessToken, requirementId, nextPageToken) {
|
|
98332
|
+
const params = new URLSearchParams();
|
|
98333
|
+
if (nextPageToken) {
|
|
98334
|
+
params.set("nextPageToken", nextPageToken);
|
|
98335
|
+
}
|
|
98336
|
+
return doGet(
|
|
98337
|
+
`/repo/v1/accessRequirement/${requirementId}/subjects?${params.toString()}`,
|
|
98338
|
+
accessToken,
|
|
98339
|
+
0 /* REPO_ENDPOINT */
|
|
98340
|
+
);
|
|
98341
|
+
}
|
|
98225
98342
|
|
|
98226
98343
|
// src/utils/hooks/useDetectSSOCode.ts
|
|
98227
98344
|
var import_react30 = __toESM(require_react());
|
|
@@ -105311,7 +105428,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105311
105428
|
}
|
|
105312
105429
|
return value;
|
|
105313
105430
|
}
|
|
105314
|
-
var getAdditionalFilters = (entityId, searchParams, operator =
|
|
105431
|
+
var getAdditionalFilters = (entityId, searchParams, operator = ColumnSingleValueFilterOperator.LIKE) => {
|
|
105315
105432
|
const localStorageQueryFiltersString = localStorage.getItem(
|
|
105316
105433
|
QUERY_FILTERS_LOCAL_STORAGE_KEY(entityId)
|
|
105317
105434
|
);
|
|
@@ -105330,7 +105447,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105330
105447
|
additionalFilters = additionalFilters.concat(
|
|
105331
105448
|
Object.keys(searchParams || {}).filter((key) => !isQueryWrapperKey(key)).map((key) => {
|
|
105332
105449
|
switch (operator) {
|
|
105333
|
-
case
|
|
105450
|
+
case ColumnSingleValueFilterOperator.EQUAL: {
|
|
105334
105451
|
const filter5 = {
|
|
105335
105452
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
105336
105453
|
columnName: key,
|
|
@@ -105339,7 +105456,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105339
105456
|
};
|
|
105340
105457
|
return filter5;
|
|
105341
105458
|
}
|
|
105342
|
-
case
|
|
105459
|
+
case ColumnSingleValueFilterOperator.IN: {
|
|
105343
105460
|
const filter5 = {
|
|
105344
105461
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
105345
105462
|
columnName: key,
|
|
@@ -105348,7 +105465,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105348
105465
|
};
|
|
105349
105466
|
return filter5;
|
|
105350
105467
|
}
|
|
105351
|
-
case
|
|
105468
|
+
case ColumnMultiValueFunction.HAS: {
|
|
105352
105469
|
const filter5 = {
|
|
105353
105470
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter",
|
|
105354
105471
|
columnName: key,
|
|
@@ -105357,7 +105474,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105357
105474
|
};
|
|
105358
105475
|
return filter5;
|
|
105359
105476
|
}
|
|
105360
|
-
case
|
|
105477
|
+
case ColumnSingleValueFilterOperator.LIKE: {
|
|
105361
105478
|
const filter5 = {
|
|
105362
105479
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter",
|
|
105363
105480
|
columnName: key,
|
|
@@ -105367,7 +105484,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
105367
105484
|
};
|
|
105368
105485
|
return filter5;
|
|
105369
105486
|
}
|
|
105370
|
-
case
|
|
105487
|
+
case ColumnMultiValueFunction.HAS_LIKE: {
|
|
105371
105488
|
const filter5 = {
|
|
105372
105489
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter",
|
|
105373
105490
|
columnName: key,
|
|
@@ -110465,7 +110582,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110465
110582
|
const { data: fetchedPrincipalId, isLoading: isLoadingAliasLookup } = useGetPrincipalIdForAlias(
|
|
110466
110583
|
{
|
|
110467
110584
|
alias,
|
|
110468
|
-
type:
|
|
110585
|
+
type: AliasType.USER_NAME
|
|
110469
110586
|
},
|
|
110470
110587
|
{ enabled: !!alias }
|
|
110471
110588
|
);
|
|
@@ -110547,7 +110664,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110547
110664
|
fill: "none",
|
|
110548
110665
|
xmlns: "http://www.w3.org/2000/svg"
|
|
110549
110666
|
}),
|
|
110550
|
-
direction.toUpperCase() ===
|
|
110667
|
+
direction.toUpperCase() === Direction.DESC ? /* @__PURE__ */ import_react91.default.createElement(
|
|
110551
110668
|
"path",
|
|
110552
110669
|
{
|
|
110553
110670
|
className: "SRC-Sort-Path",
|
|
@@ -110582,8 +110699,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110582
110699
|
var AccessApprovalsTable = ({ accessorId, accessRequirementId }) => {
|
|
110583
110700
|
var _a;
|
|
110584
110701
|
const [sort2, setSort] = (0, import_react92.useState)({
|
|
110585
|
-
field:
|
|
110586
|
-
direction:
|
|
110702
|
+
field: AccessApprovalSortField.MODIFIED_ON,
|
|
110703
|
+
direction: Direction.DESC
|
|
110587
110704
|
});
|
|
110588
110705
|
const searchRequest = (0, import_react92.useMemo)(
|
|
110589
110706
|
() => ({
|
|
@@ -110599,27 +110716,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110599
110716
|
if (sort2.field === field) {
|
|
110600
110717
|
setSort({
|
|
110601
110718
|
field,
|
|
110602
|
-
direction: sort2.direction ===
|
|
110719
|
+
direction: sort2.direction === Direction.DESC ? Direction.ASC : Direction.DESC
|
|
110603
110720
|
});
|
|
110604
110721
|
} else {
|
|
110605
|
-
setSort({ field, direction:
|
|
110722
|
+
setSort({ field, direction: Direction.DESC });
|
|
110606
110723
|
}
|
|
110607
110724
|
};
|
|
110608
110725
|
return /* @__PURE__ */ import_react92.default.createElement("div", { className: "AccessApprovalsTable bootstrap-4-backport" }, /* @__PURE__ */ import_react92.default.createElement(import_react_bootstrap.Table, { striped: true, borderless: true, bordered: false }, /* @__PURE__ */ import_react92.default.createElement("thead", null, /* @__PURE__ */ import_react92.default.createElement("tr", null, /* @__PURE__ */ import_react92.default.createElement("th", null, "AR ID"), /* @__PURE__ */ import_react92.default.createElement("th", null, "Access Requirement Name"), /* @__PURE__ */ import_react92.default.createElement("th", null, "Submitter"), /* @__PURE__ */ import_react92.default.createElement("th", null, "Status"), /* @__PURE__ */ import_react92.default.createElement("th", null, /* @__PURE__ */ import_react92.default.createElement("span", { className: "SRC-split" }, /* @__PURE__ */ import_react92.default.createElement("span", null, "Modified Date"), /* @__PURE__ */ import_react92.default.createElement(
|
|
110609
110726
|
Sort_default,
|
|
110610
110727
|
{
|
|
110611
110728
|
role: "button",
|
|
110612
|
-
active: sort2.field ===
|
|
110613
|
-
direction: sort2.field === "MODIFIED_ON" ? sort2.direction === "DESC" ?
|
|
110614
|
-
onClick: () => onSort(
|
|
110729
|
+
active: sort2.field === AccessApprovalSortField.MODIFIED_ON,
|
|
110730
|
+
direction: sort2.field === "MODIFIED_ON" ? sort2.direction === "DESC" ? Direction.DESC : Direction.ASC : Direction.DESC,
|
|
110731
|
+
onClick: () => onSort(AccessApprovalSortField.MODIFIED_ON)
|
|
110615
110732
|
}
|
|
110616
110733
|
))), /* @__PURE__ */ import_react92.default.createElement("th", null, /* @__PURE__ */ import_react92.default.createElement("span", { className: "SRC-split" }, /* @__PURE__ */ import_react92.default.createElement("span", null, "Expires"), /* @__PURE__ */ import_react92.default.createElement(
|
|
110617
110734
|
Sort_default,
|
|
110618
110735
|
{
|
|
110619
110736
|
role: "button",
|
|
110620
|
-
active: sort2.field ===
|
|
110621
|
-
direction: sort2.field === "EXPIRED_ON" ? sort2.direction === "DESC" ?
|
|
110622
|
-
onClick: () => onSort(
|
|
110737
|
+
active: sort2.field === AccessApprovalSortField.EXPIRED_ON,
|
|
110738
|
+
direction: sort2.field === "EXPIRED_ON" ? sort2.direction === "DESC" ? Direction.DESC : Direction.ASC : Direction.DESC,
|
|
110739
|
+
onClick: () => onSort(AccessApprovalSortField.EXPIRED_ON)
|
|
110623
110740
|
}
|
|
110624
110741
|
))))), /* @__PURE__ */ import_react92.default.createElement("tbody", null, accessApprovals.map((item) => {
|
|
110625
110742
|
return /* @__PURE__ */ import_react92.default.createElement("tr", { key: item.id }, /* @__PURE__ */ import_react92.default.createElement("td", null, /* @__PURE__ */ import_react92.default.createElement(
|
|
@@ -110703,7 +110820,17 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110703
110820
|
const queryClient = useQueryClient();
|
|
110704
110821
|
const { accessToken, keyFactory } = useSynapseContext();
|
|
110705
110822
|
return useMutation(
|
|
110706
|
-
(
|
|
110823
|
+
(_0) => __async(this, [_0], function* ({ request, accessRequirementId }) {
|
|
110824
|
+
if (request.subjectId == null || request.subjectType == null) {
|
|
110825
|
+
const { subjects } = yield synapse_client_default.getSubjects(
|
|
110826
|
+
accessToken,
|
|
110827
|
+
accessRequirementId
|
|
110828
|
+
);
|
|
110829
|
+
request.subjectId = subjects[0].id;
|
|
110830
|
+
request.subjectType = subjects[0].type;
|
|
110831
|
+
}
|
|
110832
|
+
return synapse_client_default.submitDataAccessRequest(request, accessToken);
|
|
110833
|
+
}),
|
|
110707
110834
|
__spreadProps(__spreadValues({}, options2), {
|
|
110708
110835
|
onSuccess: (data, variables, ctx) => __async(this, null, function* () {
|
|
110709
110836
|
yield queryClient.invalidateQueries(
|
|
@@ -110858,8 +110985,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110858
110985
|
}) => {
|
|
110859
110986
|
var _a;
|
|
110860
110987
|
const [sort2, setSort] = (0, import_react95.useState)({
|
|
110861
|
-
field:
|
|
110862
|
-
direction:
|
|
110988
|
+
field: SubmissionSortField.CREATED_ON,
|
|
110989
|
+
direction: Direction.DESC
|
|
110863
110990
|
});
|
|
110864
110991
|
const searchRequest = (0, import_react95.useMemo)(
|
|
110865
110992
|
() => ({
|
|
@@ -110896,7 +111023,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
110896
111023
|
active: sort2.field === "CREATED_ON",
|
|
110897
111024
|
"aria-label": "Sort by Created On",
|
|
110898
111025
|
direction: sort2.field === "CREATED_ON" ? sort2.direction === "DESC" ? "DESC" : "ASC" : "DESC",
|
|
110899
|
-
onClick: () => onSort(
|
|
111026
|
+
onClick: () => onSort(SubmissionSortField.CREATED_ON)
|
|
110900
111027
|
}
|
|
110901
111028
|
)))), /* @__PURE__ */ import_react95.default.createElement("tbody", null, accessSubmissions.map((item) => {
|
|
110902
111029
|
return /* @__PURE__ */ import_react95.default.createElement("tr", { key: item.id }, /* @__PURE__ */ import_react95.default.createElement("td", null, /* @__PURE__ */ import_react95.default.createElement(import_react_router_dom3.Link, { to: `/Submissions/${item.id}` }, item.id)), /* @__PURE__ */ import_react95.default.createElement("td", null, item.accessRequirementName), showSubmitter && /* @__PURE__ */ import_react95.default.createElement("td", null, /* @__PURE__ */ import_react95.default.createElement(UserOrTeamBadge, { principalId: item.submitterId })), showStatus && /* @__PURE__ */ import_react95.default.createElement("td", null, upperFirst_default(item.state.toLocaleLowerCase())), showRequesters && /* @__PURE__ */ import_react95.default.createElement("td", null, /* @__PURE__ */ import_react95.default.createElement(UserOrTeamBadge, { principalId: item.submitterId }), item.accessorChanges.filter((user) => item.submitterId !== user.userId).map((requester) => /* @__PURE__ */ import_react95.default.createElement("li", { key: requester.userId }, /* @__PURE__ */ import_react95.default.createElement(
|
|
@@ -115223,23 +115350,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
115223
115350
|
if (header.node_type) {
|
|
115224
115351
|
return header.node_type;
|
|
115225
115352
|
}
|
|
115226
|
-
return header.type === void 0 ?
|
|
115353
|
+
return header.type === void 0 ? EntityType.PROJECT : convertToEntityType(header.type);
|
|
115227
115354
|
}
|
|
115228
115355
|
function isContainerType(type) {
|
|
115229
115356
|
switch (type) {
|
|
115230
|
-
case
|
|
115231
|
-
case
|
|
115357
|
+
case EntityType.PROJECT:
|
|
115358
|
+
case EntityType.FOLDER:
|
|
115232
115359
|
return true;
|
|
115233
|
-
case
|
|
115234
|
-
case
|
|
115235
|
-
case
|
|
115236
|
-
case
|
|
115237
|
-
case
|
|
115238
|
-
case
|
|
115239
|
-
case
|
|
115240
|
-
case
|
|
115241
|
-
case
|
|
115242
|
-
case
|
|
115360
|
+
case EntityType.LINK:
|
|
115361
|
+
case EntityType.DOCKER_REPO:
|
|
115362
|
+
case EntityType.FILE:
|
|
115363
|
+
case EntityType.TABLE:
|
|
115364
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115365
|
+
case EntityType.ENTITY_VIEW:
|
|
115366
|
+
case EntityType.DATASET:
|
|
115367
|
+
case EntityType.DATASET_COLLECTION:
|
|
115368
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115369
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115243
115370
|
return false;
|
|
115244
115371
|
default:
|
|
115245
115372
|
throw new Error(`Unknown entity type: ${type}`);
|
|
@@ -115247,19 +115374,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
115247
115374
|
}
|
|
115248
115375
|
function isTableType(type) {
|
|
115249
115376
|
switch (type) {
|
|
115250
|
-
case
|
|
115251
|
-
case
|
|
115252
|
-
case
|
|
115253
|
-
case
|
|
115254
|
-
case
|
|
115377
|
+
case EntityType.PROJECT:
|
|
115378
|
+
case EntityType.FOLDER:
|
|
115379
|
+
case EntityType.LINK:
|
|
115380
|
+
case EntityType.DOCKER_REPO:
|
|
115381
|
+
case EntityType.FILE:
|
|
115255
115382
|
return false;
|
|
115256
|
-
case
|
|
115257
|
-
case
|
|
115258
|
-
case
|
|
115259
|
-
case
|
|
115260
|
-
case
|
|
115261
|
-
case
|
|
115262
|
-
case
|
|
115383
|
+
case EntityType.TABLE:
|
|
115384
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115385
|
+
case EntityType.ENTITY_VIEW:
|
|
115386
|
+
case EntityType.DATASET:
|
|
115387
|
+
case EntityType.DATASET_COLLECTION:
|
|
115388
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115389
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115263
115390
|
return true;
|
|
115264
115391
|
default:
|
|
115265
115392
|
throw new Error(`Unknown entity type: ${type}`);
|
|
@@ -115267,29 +115394,29 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
115267
115394
|
}
|
|
115268
115395
|
function entityTypeToFriendlyName(entityType) {
|
|
115269
115396
|
switch (entityType) {
|
|
115270
|
-
case
|
|
115397
|
+
case EntityType.PROJECT:
|
|
115271
115398
|
return "Project";
|
|
115272
|
-
case
|
|
115399
|
+
case EntityType.FOLDER:
|
|
115273
115400
|
return "Folder";
|
|
115274
|
-
case
|
|
115401
|
+
case EntityType.FILE:
|
|
115275
115402
|
return "File";
|
|
115276
|
-
case
|
|
115403
|
+
case EntityType.TABLE:
|
|
115277
115404
|
return "Table";
|
|
115278
|
-
case
|
|
115405
|
+
case EntityType.LINK:
|
|
115279
115406
|
return "Link";
|
|
115280
|
-
case
|
|
115407
|
+
case EntityType.ENTITY_VIEW:
|
|
115281
115408
|
return "View";
|
|
115282
|
-
case
|
|
115409
|
+
case EntityType.DOCKER_REPO:
|
|
115283
115410
|
return "Docker Repository";
|
|
115284
|
-
case
|
|
115411
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115285
115412
|
return "Submission View";
|
|
115286
|
-
case
|
|
115413
|
+
case EntityType.DATASET:
|
|
115287
115414
|
return "Dataset";
|
|
115288
|
-
case
|
|
115415
|
+
case EntityType.DATASET_COLLECTION:
|
|
115289
115416
|
return "Dataset Collection";
|
|
115290
|
-
case
|
|
115417
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115291
115418
|
return "Materialized View";
|
|
115292
|
-
case
|
|
115419
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115293
115420
|
return "Virtual Table";
|
|
115294
115421
|
default:
|
|
115295
115422
|
console.warn("Entity type could not be mapped to name:", entityType);
|
|
@@ -115298,71 +115425,71 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
115298
115425
|
}
|
|
115299
115426
|
function convertToEntityType(typeString) {
|
|
115300
115427
|
switch (typeString) {
|
|
115301
|
-
case
|
|
115428
|
+
case EntityType.PROJECT:
|
|
115302
115429
|
case "org.sagebionetworks.repo.model.Project":
|
|
115303
|
-
return
|
|
115304
|
-
case
|
|
115430
|
+
return EntityType.PROJECT;
|
|
115431
|
+
case EntityType.FOLDER:
|
|
115305
115432
|
case "org.sagebionetworks.repo.model.Folder":
|
|
115306
|
-
return
|
|
115307
|
-
case
|
|
115433
|
+
return EntityType.FOLDER;
|
|
115434
|
+
case EntityType.FILE:
|
|
115308
115435
|
case FILE_ENTITY_CONCRETE_TYPE_VALUE:
|
|
115309
|
-
return
|
|
115310
|
-
case
|
|
115436
|
+
return EntityType.FILE;
|
|
115437
|
+
case EntityType.LINK:
|
|
115311
115438
|
case "org.sagebionetworks.repo.model.Link":
|
|
115312
|
-
return
|
|
115313
|
-
case
|
|
115439
|
+
return EntityType.LINK;
|
|
115440
|
+
case EntityType.DOCKER_REPO:
|
|
115314
115441
|
case "org.sagebionetworks.repo.model.docker.DockerRepository":
|
|
115315
|
-
return
|
|
115316
|
-
case
|
|
115442
|
+
return EntityType.DOCKER_REPO;
|
|
115443
|
+
case EntityType.TABLE:
|
|
115317
115444
|
case TABLE_ENTITY_CONCRETE_TYPE_VALUE:
|
|
115318
|
-
return
|
|
115319
|
-
case
|
|
115445
|
+
return EntityType.TABLE;
|
|
115446
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115320
115447
|
case "org.sagebionetworks.repo.model.table.SubmissionView":
|
|
115321
|
-
return
|
|
115322
|
-
case
|
|
115448
|
+
return EntityType.SUBMISSION_VIEW;
|
|
115449
|
+
case EntityType.ENTITY_VIEW:
|
|
115323
115450
|
case ENTITY_VIEW_CONCRETE_TYPE_VALUE:
|
|
115324
|
-
return
|
|
115325
|
-
case
|
|
115451
|
+
return EntityType.ENTITY_VIEW;
|
|
115452
|
+
case EntityType.DATASET:
|
|
115326
115453
|
case DATASET_CONCRETE_TYPE_VALUE:
|
|
115327
|
-
return
|
|
115328
|
-
case
|
|
115454
|
+
return EntityType.DATASET;
|
|
115455
|
+
case EntityType.DATASET_COLLECTION:
|
|
115329
115456
|
case DATASET_COLLECTION_CONCRETE_TYPE_VALUE:
|
|
115330
|
-
return
|
|
115331
|
-
case
|
|
115457
|
+
return EntityType.DATASET_COLLECTION;
|
|
115458
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115332
115459
|
case MATERIALIZED_VIEW_CONCRETE_TYPE_VALUE:
|
|
115333
|
-
return
|
|
115334
|
-
case
|
|
115460
|
+
return EntityType.MATERIALIZED_VIEW;
|
|
115461
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115335
115462
|
case VIRTUAL_TABLE_CONCRETE_TYPE_VALUE:
|
|
115336
|
-
return
|
|
115463
|
+
return EntityType.VIRTUAL_TABLE;
|
|
115337
115464
|
default:
|
|
115338
115465
|
throw new Error(`Unknown entity type: ${typeString}`);
|
|
115339
115466
|
}
|
|
115340
115467
|
}
|
|
115341
115468
|
function convertToConcreteEntityType(type) {
|
|
115342
115469
|
switch (type) {
|
|
115343
|
-
case
|
|
115470
|
+
case EntityType.PROJECT:
|
|
115344
115471
|
return "org.sagebionetworks.repo.model.Project";
|
|
115345
|
-
case
|
|
115472
|
+
case EntityType.FOLDER:
|
|
115346
115473
|
return "org.sagebionetworks.repo.model.Folder";
|
|
115347
|
-
case
|
|
115474
|
+
case EntityType.FILE:
|
|
115348
115475
|
return "org.sagebionetworks.repo.model.FileEntity";
|
|
115349
|
-
case
|
|
115476
|
+
case EntityType.LINK:
|
|
115350
115477
|
return "org.sagebionetworks.repo.model.Link";
|
|
115351
|
-
case
|
|
115478
|
+
case EntityType.DOCKER_REPO:
|
|
115352
115479
|
return "org.sagebionetworks.repo.model.docker.DockerRepository";
|
|
115353
|
-
case
|
|
115480
|
+
case EntityType.TABLE:
|
|
115354
115481
|
return "org.sagebionetworks.repo.model.table.TableEntity";
|
|
115355
|
-
case
|
|
115482
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115356
115483
|
return "org.sagebionetworks.repo.model.table.SubmissionView";
|
|
115357
|
-
case
|
|
115484
|
+
case EntityType.ENTITY_VIEW:
|
|
115358
115485
|
return "org.sagebionetworks.repo.model.table.EntityView";
|
|
115359
|
-
case
|
|
115486
|
+
case EntityType.DATASET:
|
|
115360
115487
|
return "org.sagebionetworks.repo.model.table.Dataset";
|
|
115361
|
-
case
|
|
115488
|
+
case EntityType.DATASET_COLLECTION:
|
|
115362
115489
|
return "org.sagebionetworks.repo.model.table.DatasetCollection";
|
|
115363
|
-
case
|
|
115490
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115364
115491
|
return "org.sagebionetworks.repo.model.table.MaterializedView";
|
|
115365
|
-
case
|
|
115492
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115366
115493
|
return "org.sagebionetworks.repo.model.table.VirtualTable";
|
|
115367
115494
|
default:
|
|
115368
115495
|
throw new Error(`Unknown entity type: ${type}`);
|
|
@@ -115370,19 +115497,19 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
115370
115497
|
}
|
|
115371
115498
|
function isVersionableEntityType(type) {
|
|
115372
115499
|
switch (type) {
|
|
115373
|
-
case
|
|
115374
|
-
case
|
|
115375
|
-
case
|
|
115376
|
-
case
|
|
115377
|
-
case
|
|
115378
|
-
case
|
|
115379
|
-
case
|
|
115500
|
+
case EntityType.PROJECT:
|
|
115501
|
+
case EntityType.FOLDER:
|
|
115502
|
+
case EntityType.LINK:
|
|
115503
|
+
case EntityType.DOCKER_REPO:
|
|
115504
|
+
case EntityType.SUBMISSION_VIEW:
|
|
115505
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
115506
|
+
case EntityType.VIRTUAL_TABLE:
|
|
115380
115507
|
return false;
|
|
115381
|
-
case
|
|
115382
|
-
case
|
|
115383
|
-
case
|
|
115384
|
-
case
|
|
115385
|
-
case
|
|
115508
|
+
case EntityType.FILE:
|
|
115509
|
+
case EntityType.TABLE:
|
|
115510
|
+
case EntityType.ENTITY_VIEW:
|
|
115511
|
+
case EntityType.DATASET:
|
|
115512
|
+
case EntityType.DATASET_COLLECTION:
|
|
115386
115513
|
return true;
|
|
115387
115514
|
default:
|
|
115388
115515
|
throw new Error(`Unknown entity type: ${type}`);
|
|
@@ -116361,7 +116488,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
116361
116488
|
input: {
|
|
116362
116489
|
gridArea: "1 / 2 / 4 / 4 !important"
|
|
116363
116490
|
}
|
|
116364
|
-
})
|
|
116491
|
+
}),
|
|
116492
|
+
menu: (base) => __spreadProps(__spreadValues({}, base), { zIndex: 2 })
|
|
116365
116493
|
},
|
|
116366
116494
|
components: customSelectComponents,
|
|
116367
116495
|
onChange: (option) => {
|
|
@@ -116679,7 +116807,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
116679
116807
|
onChange: onAccessorChange,
|
|
116680
116808
|
defaultValue: accessorId,
|
|
116681
116809
|
placeholder: "Search for a user name",
|
|
116682
|
-
typeFilter:
|
|
116810
|
+
typeFilter: TYPE_FILTER.USERS_ONLY
|
|
116683
116811
|
}
|
|
116684
116812
|
)), accessorId && /* @__PURE__ */ import_react109.default.createElement("div", null, /* @__PURE__ */ import_react109.default.createElement(
|
|
116685
116813
|
Typography_default,
|
|
@@ -117186,7 +117314,7 @@ ${e3.message}`);
|
|
|
117186
117314
|
fileHandleAssociation: {
|
|
117187
117315
|
fileHandleId: dataFileHandleId,
|
|
117188
117316
|
associateObjectId: bundle.entity.id,
|
|
117189
|
-
associateObjectType:
|
|
117317
|
+
associateObjectType: FileHandleAssociateType.FileEntity
|
|
117190
117318
|
},
|
|
117191
117319
|
previewType
|
|
117192
117320
|
}
|
|
@@ -117209,7 +117337,7 @@ ${e3.message}`);
|
|
|
117209
117337
|
fileHandleAssociation: {
|
|
117210
117338
|
fileHandleId: previewFileHandle.id,
|
|
117211
117339
|
associateObjectId: bundle.entity.id,
|
|
117212
|
-
associateObjectType:
|
|
117340
|
+
associateObjectType: FileHandleAssociateType.FileEntity
|
|
117213
117341
|
},
|
|
117214
117342
|
previewType
|
|
117215
117343
|
}
|
|
@@ -124219,18 +124347,18 @@ ${e3.message}`);
|
|
|
124219
124347
|
var import_react123 = __toESM(require_react());
|
|
124220
124348
|
var getIconTypeForEntity = (type) => {
|
|
124221
124349
|
switch (type) {
|
|
124222
|
-
case
|
|
124223
|
-
case
|
|
124224
|
-
case
|
|
124225
|
-
case
|
|
124226
|
-
case
|
|
124227
|
-
case
|
|
124228
|
-
case
|
|
124229
|
-
case
|
|
124230
|
-
case
|
|
124231
|
-
case
|
|
124232
|
-
case
|
|
124233
|
-
case
|
|
124350
|
+
case EntityType.PROJECT:
|
|
124351
|
+
case EntityType.FOLDER:
|
|
124352
|
+
case EntityType.FILE:
|
|
124353
|
+
case EntityType.TABLE:
|
|
124354
|
+
case EntityType.LINK:
|
|
124355
|
+
case EntityType.ENTITY_VIEW:
|
|
124356
|
+
case EntityType.DOCKER_REPO:
|
|
124357
|
+
case EntityType.SUBMISSION_VIEW:
|
|
124358
|
+
case EntityType.DATASET:
|
|
124359
|
+
case EntityType.DATASET_COLLECTION:
|
|
124360
|
+
case EntityType.MATERIALIZED_VIEW:
|
|
124361
|
+
case EntityType.VIRTUAL_TABLE:
|
|
124234
124362
|
return type2SvgIconName[type];
|
|
124235
124363
|
default:
|
|
124236
124364
|
return "";
|
|
@@ -124308,7 +124436,7 @@ ${e3.message}`);
|
|
|
124308
124436
|
const { entityHeader } = props;
|
|
124309
124437
|
if (entityHeader) {
|
|
124310
124438
|
const entityType = convertToEntityType(entityHeader == null ? void 0 : entityHeader.type);
|
|
124311
|
-
if (entityType ==
|
|
124439
|
+
if (entityType == EntityType.FILE) {
|
|
124312
124440
|
const lastPeriodIndex = entityHeader.name.lastIndexOf(".");
|
|
124313
124441
|
if (lastPeriodIndex > -1) {
|
|
124314
124442
|
const extension = entityHeader.name.slice(lastPeriodIndex);
|
|
@@ -124320,7 +124448,7 @@ ${e3.message}`);
|
|
|
124320
124448
|
return /* @__PURE__ */ import_react124.default.createElement(EntityTypeIcon, { type: entityType, includeTooltip: false });
|
|
124321
124449
|
}
|
|
124322
124450
|
}
|
|
124323
|
-
return /* @__PURE__ */ import_react124.default.createElement(EntityTypeIcon, { type:
|
|
124451
|
+
return /* @__PURE__ */ import_react124.default.createElement(EntityTypeIcon, { type: EntityType.FILE, includeTooltip: false });
|
|
124324
124452
|
};
|
|
124325
124453
|
|
|
124326
124454
|
// src/components/ProvenanceGraph/EntityNodeLabel.tsx
|
|
@@ -124989,7 +125117,7 @@ ${e3.message}`);
|
|
|
124989
125117
|
const fileHandleAssociationList = [
|
|
124990
125118
|
{
|
|
124991
125119
|
associateObjectId: synapseId,
|
|
124992
|
-
associateObjectType:
|
|
125120
|
+
associateObjectType: FileHandleAssociateType.FileEntity,
|
|
124993
125121
|
fileHandleId: data.dataFileHandleId
|
|
124994
125122
|
}
|
|
124995
125123
|
];
|
|
@@ -125025,7 +125153,7 @@ ${e3.message}`);
|
|
|
125025
125153
|
const fileHandleAssociationList = [
|
|
125026
125154
|
{
|
|
125027
125155
|
associateObjectId: this.props.wikiId,
|
|
125028
|
-
associateObjectType:
|
|
125156
|
+
associateObjectType: FileHandleAssociateType.WikiAttachment,
|
|
125029
125157
|
fileHandleId: id2
|
|
125030
125158
|
}
|
|
125031
125159
|
];
|
|
@@ -125260,7 +125388,7 @@ ${e3.message}`);
|
|
|
125260
125388
|
const fileHandleAssociationList = [
|
|
125261
125389
|
{
|
|
125262
125390
|
associateObjectId: fileEntity.id,
|
|
125263
|
-
associateObjectType:
|
|
125391
|
+
associateObjectType: FileHandleAssociateType.FileEntity,
|
|
125264
125392
|
fileHandleId: fileEntity.dataFileHandleId
|
|
125265
125393
|
}
|
|
125266
125394
|
];
|
|
@@ -125523,7 +125651,7 @@ ${e3.message}`);
|
|
|
125523
125651
|
parentId: folderId,
|
|
125524
125652
|
includeSumFileSizes: true,
|
|
125525
125653
|
includeTotalChildCount: true,
|
|
125526
|
-
includeTypes: [
|
|
125654
|
+
includeTypes: [EntityType.FILE]
|
|
125527
125655
|
});
|
|
125528
125656
|
useDeepCompareEffect(() => {
|
|
125529
125657
|
if (isSuccess && entityChildrenData && downloadListStatistics) {
|
|
@@ -126035,13 +126163,13 @@ ${e3.message}`);
|
|
|
126035
126163
|
return SynapseConstants_exports.FRIENDLY_VALUE_NOT_SET;
|
|
126036
126164
|
}
|
|
126037
126165
|
switch (columnType) {
|
|
126038
|
-
case
|
|
126039
|
-
case
|
|
126166
|
+
case ColumnTypeEnum.ENTITYID:
|
|
126167
|
+
case ColumnTypeEnum.ENTITYID_LIST:
|
|
126040
126168
|
return getDisplayValueForEntityColumn(value);
|
|
126041
|
-
case
|
|
126042
|
-
case
|
|
126169
|
+
case ColumnTypeEnum.USERID:
|
|
126170
|
+
case ColumnTypeEnum.USERID_LIST:
|
|
126043
126171
|
return getDisplayValueUserIdColumn(value);
|
|
126044
|
-
case
|
|
126172
|
+
case ColumnTypeEnum.EVALUATIONID:
|
|
126045
126173
|
return getDisplayValueEvaluationIdColumn(value);
|
|
126046
126174
|
default:
|
|
126047
126175
|
return value;
|
|
@@ -133244,24 +133372,13 @@ ${e3.message}`);
|
|
|
133244
133372
|
// src/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm.tsx
|
|
133245
133373
|
function ResearchProjectForm(props) {
|
|
133246
133374
|
const { onSave, managedACTAccessRequirement, onHide } = props;
|
|
133247
|
-
const [projectLead, setProjectLead] = (0, import_react171.useState)(
|
|
133248
|
-
const [institution, setInstitution] = (0, import_react171.useState)(
|
|
133249
|
-
const [intendedDataUseStatement, setIntendedDataUseStatement] = (0, import_react171.useState)(
|
|
133375
|
+
const [projectLead, setProjectLead] = (0, import_react171.useState)(void 0);
|
|
133376
|
+
const [institution, setInstitution] = (0, import_react171.useState)(void 0);
|
|
133377
|
+
const [intendedDataUseStatement, setIntendedDataUseStatement] = (0, import_react171.useState)(void 0);
|
|
133250
133378
|
const [alert, setAlert] = (0, import_react171.useState)();
|
|
133251
133379
|
const { data: existingResearchProject, isLoading: isLoadingInitialData } = useGetResearchProject(String(managedACTAccessRequirement.id), {
|
|
133252
133380
|
// Infinite staleTime ensures this won't be refetched unless explicitly invalidated by the mutation
|
|
133253
133381
|
staleTime: Infinity,
|
|
133254
|
-
onSuccess: (data) => {
|
|
133255
|
-
if (data == null ? void 0 : data.projectLead) {
|
|
133256
|
-
setProjectLead(data == null ? void 0 : data.projectLead);
|
|
133257
|
-
}
|
|
133258
|
-
if (data == null ? void 0 : data.institution) {
|
|
133259
|
-
setInstitution(data == null ? void 0 : data.institution);
|
|
133260
|
-
}
|
|
133261
|
-
if (data == null ? void 0 : data.intendedDataUseStatement) {
|
|
133262
|
-
setIntendedDataUseStatement(data == null ? void 0 : data.intendedDataUseStatement);
|
|
133263
|
-
}
|
|
133264
|
-
},
|
|
133265
133382
|
onError: (e3) => {
|
|
133266
133383
|
console.log(
|
|
133267
133384
|
"RequestDataAccessStep1: Error getting research project data: ",
|
|
@@ -133269,6 +133386,26 @@ ${e3.message}`);
|
|
|
133269
133386
|
);
|
|
133270
133387
|
}
|
|
133271
133388
|
});
|
|
133389
|
+
(0, import_react171.useEffect)(() => {
|
|
133390
|
+
if (projectLead == void 0 && (existingResearchProject == null ? void 0 : existingResearchProject.projectLead)) {
|
|
133391
|
+
setProjectLead(existingResearchProject == null ? void 0 : existingResearchProject.projectLead);
|
|
133392
|
+
}
|
|
133393
|
+
if (institution == void 0 && (existingResearchProject == null ? void 0 : existingResearchProject.institution)) {
|
|
133394
|
+
setInstitution(existingResearchProject == null ? void 0 : existingResearchProject.institution);
|
|
133395
|
+
}
|
|
133396
|
+
if (intendedDataUseStatement == void 0 && (existingResearchProject == null ? void 0 : existingResearchProject.intendedDataUseStatement)) {
|
|
133397
|
+
setIntendedDataUseStatement(
|
|
133398
|
+
existingResearchProject == null ? void 0 : existingResearchProject.intendedDataUseStatement
|
|
133399
|
+
);
|
|
133400
|
+
}
|
|
133401
|
+
}, [
|
|
133402
|
+
existingResearchProject == null ? void 0 : existingResearchProject.institution,
|
|
133403
|
+
existingResearchProject == null ? void 0 : existingResearchProject.intendedDataUseStatement,
|
|
133404
|
+
existingResearchProject == null ? void 0 : existingResearchProject.projectLead,
|
|
133405
|
+
institution,
|
|
133406
|
+
intendedDataUseStatement,
|
|
133407
|
+
projectLead
|
|
133408
|
+
]);
|
|
133272
133409
|
const { mutate, isLoading: isLoadingUpdate } = useUpdateResearchProject({
|
|
133273
133410
|
onSuccess: (data) => {
|
|
133274
133411
|
if (onSave) {
|
|
@@ -133400,7 +133537,7 @@ ${e3.message}`);
|
|
|
133400
133537
|
if (!currentAccessorIds.includes(ugh.ownerId)) {
|
|
133401
133538
|
const selectedAccessor = {
|
|
133402
133539
|
userId: ugh.ownerId,
|
|
133403
|
-
type:
|
|
133540
|
+
type: AccessType.GAIN_ACCESS
|
|
133404
133541
|
};
|
|
133405
133542
|
previousValue.push(selectedAccessor);
|
|
133406
133543
|
}
|
|
@@ -133434,7 +133571,7 @@ ${e3.message}`);
|
|
|
133434
133571
|
UserSearchBoxV2_default,
|
|
133435
133572
|
{
|
|
133436
133573
|
inputId: "requesters",
|
|
133437
|
-
typeFilter:
|
|
133574
|
+
typeFilter: TYPE_FILTER.USERS_ONLY,
|
|
133438
133575
|
onChange: onSelectUserCallback,
|
|
133439
133576
|
filterPredicate: (userGroupHeader) => !accessorChanges.map((ac) => ac.userId).includes(userGroupHeader.ownerId),
|
|
133440
133577
|
value: null
|
|
@@ -133454,7 +133591,7 @@ ${e3.message}`);
|
|
|
133454
133591
|
}
|
|
133455
133592
|
),
|
|
133456
133593
|
// only display delete button if the user profile is not the current user and has not had access before
|
|
133457
|
-
(user == null ? void 0 : user.ownerId) !== ac.userId && ac.type ===
|
|
133594
|
+
(user == null ? void 0 : user.ownerId) !== ac.userId && ac.type === AccessType.GAIN_ACCESS && /* @__PURE__ */ import_react173.default.createElement(
|
|
133458
133595
|
Button_default,
|
|
133459
133596
|
{
|
|
133460
133597
|
"aria-label": `Remove user`,
|
|
@@ -133468,7 +133605,8 @@ ${e3.message}`);
|
|
|
133468
133605
|
/* @__PURE__ */ import_react173.default.createElement(IconSvg_default, { icon: "clear" })
|
|
133469
133606
|
),
|
|
133470
133607
|
// Renewal/Revoke data access, only display if isRenewal is true
|
|
133471
|
-
|
|
133608
|
+
// TODO: It's possible to that the accessors list is in an illegal state with no way to recover -- see PLFM-7893
|
|
133609
|
+
isRenewal && (user == null ? void 0 : user.ownerId) !== ac.userId && ac.type !== AccessType.GAIN_ACCESS && /* @__PURE__ */ import_react173.default.createElement(import_react173.default.Fragment, null, /* @__PURE__ */ import_react173.default.createElement(
|
|
133472
133610
|
RadioGroup3,
|
|
133473
133611
|
{
|
|
133474
133612
|
id: `accessor-renewal-${ac.userId}`,
|
|
@@ -133476,11 +133614,11 @@ ${e3.message}`);
|
|
|
133476
133614
|
options: [
|
|
133477
133615
|
{
|
|
133478
133616
|
label: "Renew",
|
|
133479
|
-
value:
|
|
133617
|
+
value: AccessType.RENEW_ACCESS
|
|
133480
133618
|
},
|
|
133481
133619
|
{
|
|
133482
133620
|
label: "Revoke",
|
|
133483
|
-
value:
|
|
133621
|
+
value: AccessType.REVOKE_ACCESS
|
|
133484
133622
|
}
|
|
133485
133623
|
],
|
|
133486
133624
|
onChange: (value) => onAccessorAccessTypeChange(
|
|
@@ -133500,7 +133638,8 @@ ${e3.message}`);
|
|
|
133500
133638
|
id: id2,
|
|
133501
133639
|
buttonProps = { variant: "contained" },
|
|
133502
133640
|
label = "Browse...",
|
|
133503
|
-
|
|
133641
|
+
onUploadStart,
|
|
133642
|
+
onComplete
|
|
133504
133643
|
} = props;
|
|
133505
133644
|
const { accessToken } = useSynapseContext();
|
|
133506
133645
|
const hiddenFileInput = import_react174.default.useRef(null);
|
|
@@ -133512,6 +133651,9 @@ ${e3.message}`);
|
|
|
133512
133651
|
};
|
|
133513
133652
|
const changeHandler = (e3) => __async(void 0, null, function* () {
|
|
133514
133653
|
if (e3.target.files && e3.target.files.length > 0) {
|
|
133654
|
+
if (onUploadStart) {
|
|
133655
|
+
onUploadStart();
|
|
133656
|
+
}
|
|
133515
133657
|
const file = e3.target.files[0];
|
|
133516
133658
|
try {
|
|
133517
133659
|
const resp = yield uploadFile(
|
|
@@ -133519,16 +133661,16 @@ ${e3.message}`);
|
|
|
133519
133661
|
file.name,
|
|
133520
133662
|
file
|
|
133521
133663
|
);
|
|
133522
|
-
if (
|
|
133523
|
-
|
|
133664
|
+
if (onComplete) {
|
|
133665
|
+
onComplete({
|
|
133524
133666
|
success: true,
|
|
133525
133667
|
resp
|
|
133526
133668
|
});
|
|
133527
133669
|
}
|
|
133528
133670
|
} catch (e4) {
|
|
133529
133671
|
console.log("FileUpload: fail to upload file", e4);
|
|
133530
|
-
if (
|
|
133531
|
-
|
|
133672
|
+
if (onComplete) {
|
|
133673
|
+
onComplete({
|
|
133532
133674
|
success: false,
|
|
133533
133675
|
error: e4
|
|
133534
133676
|
});
|
|
@@ -133564,16 +133706,12 @@ ${e3.message}`);
|
|
|
133564
133706
|
includeFileHandles: false,
|
|
133565
133707
|
includePreviewPreSignedURLs: false
|
|
133566
133708
|
};
|
|
133567
|
-
|
|
133568
|
-
|
|
133569
|
-
|
|
133570
|
-
|
|
133571
|
-
|
|
133572
|
-
|
|
133573
|
-
window.open(preSignedURL);
|
|
133574
|
-
}
|
|
133575
|
-
} catch (e3) {
|
|
133576
|
-
console.log("Fail to get file download link", e3);
|
|
133709
|
+
const file = yield getFiles(batchFileRequest, accessToken);
|
|
133710
|
+
const preSignedURL = file.requestedFiles[0].preSignedURL;
|
|
133711
|
+
if (!preSignedURL) {
|
|
133712
|
+
console.log("Fail to get file download link");
|
|
133713
|
+
} else {
|
|
133714
|
+
window.open(preSignedURL);
|
|
133577
133715
|
}
|
|
133578
133716
|
});
|
|
133579
133717
|
return /* @__PURE__ */ import_react175.default.createElement(
|
|
@@ -133597,8 +133735,10 @@ ${e3.message}`);
|
|
|
133597
133735
|
id: id2,
|
|
133598
133736
|
documentName,
|
|
133599
133737
|
isMultiFileUpload = false,
|
|
133600
|
-
onClearAttachment
|
|
133738
|
+
onClearAttachment,
|
|
133739
|
+
isLoading = false
|
|
133601
133740
|
} = props;
|
|
133741
|
+
const [isUploading, setIsUploading] = (0, import_react176.useState)(false);
|
|
133602
133742
|
const { data: fileData } = useGetFileBatch(
|
|
133603
133743
|
{
|
|
133604
133744
|
includeFileHandles: true,
|
|
@@ -133623,9 +133763,14 @@ ${e3.message}`);
|
|
|
133623
133763
|
FileUpload_default,
|
|
133624
133764
|
{
|
|
133625
133765
|
id: `${id2}-upload`,
|
|
133626
|
-
|
|
133766
|
+
onUploadStart: () => setIsUploading(true),
|
|
133767
|
+
onComplete: (res) => {
|
|
133768
|
+
setIsUploading(false);
|
|
133769
|
+
uploadCallback(res);
|
|
133770
|
+
},
|
|
133627
133771
|
label: `Upload ${documentName}`,
|
|
133628
133772
|
buttonProps: {
|
|
133773
|
+
disabled: isLoading,
|
|
133629
133774
|
variant: "outlined",
|
|
133630
133775
|
endIcon: /* @__PURE__ */ import_react176.default.createElement(IconSvg_default, { icon: "upload", wrap: false })
|
|
133631
133776
|
}
|
|
@@ -133660,7 +133805,16 @@ ${e3.message}`);
|
|
|
133660
133805
|
},
|
|
133661
133806
|
/* @__PURE__ */ import_react176.default.createElement(IconSvg_default, { icon: "clear" })
|
|
133662
133807
|
));
|
|
133663
|
-
})
|
|
133808
|
+
}),
|
|
133809
|
+
isUploading && /* @__PURE__ */ import_react176.default.createElement(
|
|
133810
|
+
Button_default,
|
|
133811
|
+
{
|
|
133812
|
+
disabled: true,
|
|
133813
|
+
variant: "text",
|
|
133814
|
+
endIcon: /* @__PURE__ */ import_react176.default.createElement(IconSvg_default, { icon: "download", wrap: false })
|
|
133815
|
+
},
|
|
133816
|
+
"Uploading..."
|
|
133817
|
+
)
|
|
133664
133818
|
);
|
|
133665
133819
|
}
|
|
133666
133820
|
|
|
@@ -133710,6 +133864,22 @@ ${e3.message}`);
|
|
|
133710
133864
|
}
|
|
133711
133865
|
|
|
133712
133866
|
// src/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm.tsx
|
|
133867
|
+
function AccessorRequirementHelpText(props) {
|
|
133868
|
+
const { managedACTAccessRequirement } = props;
|
|
133869
|
+
let link = "";
|
|
133870
|
+
let msg2 = "";
|
|
133871
|
+
if (managedACTAccessRequirement.isCertifiedUserRequired && managedACTAccessRequirement.isValidatedProfileRequired) {
|
|
133872
|
+
link = "https://help.synapse.org/docs/User-Types.2007072795.html";
|
|
133873
|
+
msg2 = "All data requesters must be certified users and have a validated user profile.";
|
|
133874
|
+
} else if (managedACTAccessRequirement.isCertifiedUserRequired) {
|
|
133875
|
+
link = "https://help.synapse.org/docs/User-Types.2007072795.html#UserAccountTiers-CertifiedUsers";
|
|
133876
|
+
msg2 = "All data requesters must be a certified user.";
|
|
133877
|
+
} else if (managedACTAccessRequirement.isValidatedProfileRequired) {
|
|
133878
|
+
link = "https://help.synapse.org/docs/User-Types.2007072795.html#UserAccountTiers-ValidatedUsers";
|
|
133879
|
+
msg2 = "All data requesters must have a validated user profile.";
|
|
133880
|
+
}
|
|
133881
|
+
return link && msg2 ? /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, managedACTAccessRequirement.isDUCRequired ? /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, "This list should match those listed on your DUC.", /* @__PURE__ */ import_react178.default.createElement("br", null)) : "", msg2, " ", /* @__PURE__ */ import_react178.default.createElement(Link_default, { href: link, target: "_blank", rel: "noreferrer" }, "Learn more")) : /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null);
|
|
133882
|
+
}
|
|
133713
133883
|
function DataAccessRequestAccessorsFilesForm(props) {
|
|
133714
133884
|
var _a;
|
|
133715
133885
|
const {
|
|
@@ -133719,45 +133889,19 @@ ${e3.message}`);
|
|
|
133719
133889
|
researchProjectId,
|
|
133720
133890
|
onCancel
|
|
133721
133891
|
} = props;
|
|
133722
|
-
const {
|
|
133892
|
+
const { accessToken } = useSynapseContext();
|
|
133893
|
+
const isLoggedIn = Boolean(accessToken);
|
|
133894
|
+
const { data: user } = useGetCurrentUserProfile({ enabled: isLoggedIn });
|
|
133723
133895
|
const [alert, setAlert] = (0, import_react178.useState)();
|
|
133724
|
-
const [
|
|
133725
|
-
|
|
133726
|
-
|
|
133727
|
-
|
|
133896
|
+
const [accessorChanges, setAccessorChanges] = (0, import_react178.useState)();
|
|
133897
|
+
const [summaryOfUse, setSummaryOfUse] = (0, import_react178.useState)();
|
|
133898
|
+
const [publication, setPublication] = (0, import_react178.useState)();
|
|
133899
|
+
const { data: dataAccessRequest, isLoading: isLoadingGetDataAccessRequest } = useGetDataAccessRequestForUpdate(String(managedACTAccessRequirement.id), {
|
|
133900
|
+
enabled: isLoggedIn,
|
|
133728
133901
|
// Infinite staleTime ensures this won't get re-fetched unless explicitly invalidated by the mutation
|
|
133729
133902
|
staleTime: Infinity,
|
|
133730
|
-
|
|
133731
|
-
|
|
133732
|
-
const currentUserWithGainAccess = {
|
|
133733
|
-
userId: user.ownerId,
|
|
133734
|
-
type: isRenewal2 ? "RENEW_ACCESS" /* RENEW_ACCESS */ : "GAIN_ACCESS" /* GAIN_ACCESS */
|
|
133735
|
-
};
|
|
133736
|
-
if (!data.accessorChanges) {
|
|
133737
|
-
data.accessorChanges = [currentUserWithGainAccess];
|
|
133738
|
-
} else {
|
|
133739
|
-
data.accessorChanges = [
|
|
133740
|
-
currentUserWithGainAccess,
|
|
133741
|
-
...data.accessorChanges
|
|
133742
|
-
];
|
|
133743
|
-
}
|
|
133744
|
-
const seen = /* @__PURE__ */ new Set();
|
|
133745
|
-
data.accessorChanges = data.accessorChanges.filter((accessorChange) => {
|
|
133746
|
-
return seen.has(accessorChange.userId) ? false : seen.add(accessorChange.userId);
|
|
133747
|
-
});
|
|
133748
|
-
data.researchProjectId = researchProjectId;
|
|
133749
|
-
return data;
|
|
133750
|
-
},
|
|
133751
|
-
onSuccess: (data) => {
|
|
133752
|
-
setAlert(void 0);
|
|
133753
|
-
setDataAccessRequest(data);
|
|
133754
|
-
},
|
|
133755
|
-
onError: (err) => {
|
|
133756
|
-
setAlert({
|
|
133757
|
-
key: "error",
|
|
133758
|
-
message: err.reason
|
|
133759
|
-
});
|
|
133760
|
-
}
|
|
133903
|
+
// This call should never fail, so if we run into an error, throwing to an error boundary is acceptable
|
|
133904
|
+
useErrorBoundary: true
|
|
133761
133905
|
});
|
|
133762
133906
|
const isRenewal = (dataAccessRequest == null ? void 0 : dataAccessRequest.concreteType) === "org.sagebionetworks.repo.model.dataaccess.Renewal";
|
|
133763
133907
|
function onError(e3) {
|
|
@@ -133767,25 +133911,93 @@ ${e3.message}`);
|
|
|
133767
133911
|
message: getErrorMessage(e3.reason)
|
|
133768
133912
|
});
|
|
133769
133913
|
}
|
|
133770
|
-
const { mutate: submit } = useSubmitDataAccessRequest({
|
|
133914
|
+
const { mutate: submit, isLoading: isLoadingSubmitDataAccessRequest } = useSubmitDataAccessRequest({
|
|
133771
133915
|
onSuccess: () => {
|
|
133772
133916
|
onSubmissionCreated();
|
|
133773
133917
|
},
|
|
133774
133918
|
onError
|
|
133775
133919
|
});
|
|
133776
|
-
const {
|
|
133920
|
+
const {
|
|
133921
|
+
mutateAsync: updateRequestAsync,
|
|
133922
|
+
isLoading: isLoadingUpdateDataAccessRequest
|
|
133923
|
+
} = useUpdateDataAccessRequest({
|
|
133777
133924
|
onError
|
|
133778
133925
|
});
|
|
133926
|
+
const isLoading = isLoadingGetDataAccessRequest || isLoadingUpdateDataAccessRequest || isLoadingSubmitDataAccessRequest;
|
|
133927
|
+
(0, import_react178.useEffect)(() => {
|
|
133928
|
+
if (dataAccessRequest && user) {
|
|
133929
|
+
let shouldUpdate = false;
|
|
133930
|
+
if (!dataAccessRequest.researchProjectId) {
|
|
133931
|
+
dataAccessRequest.researchProjectId = researchProjectId;
|
|
133932
|
+
shouldUpdate = true;
|
|
133933
|
+
}
|
|
133934
|
+
const currentUserWithGainAccess = {
|
|
133935
|
+
userId: user.ownerId,
|
|
133936
|
+
type: isRenewal ? AccessType.RENEW_ACCESS : AccessType.GAIN_ACCESS
|
|
133937
|
+
};
|
|
133938
|
+
if (!dataAccessRequest.accessorChanges || !dataAccessRequest.accessorChanges.find(
|
|
133939
|
+
(item) => deepEquals(item, currentUserWithGainAccess)
|
|
133940
|
+
)) {
|
|
133941
|
+
dataAccessRequest.accessorChanges = [
|
|
133942
|
+
currentUserWithGainAccess,
|
|
133943
|
+
...dataAccessRequest.accessorChanges || []
|
|
133944
|
+
];
|
|
133945
|
+
shouldUpdate = true;
|
|
133946
|
+
}
|
|
133947
|
+
const seen = /* @__PURE__ */ new Set();
|
|
133948
|
+
const uniqueAccessorChanges = dataAccessRequest.accessorChanges.filter(
|
|
133949
|
+
(accessorChange) => {
|
|
133950
|
+
return seen.has(accessorChange.userId) ? false : seen.add(accessorChange.userId);
|
|
133951
|
+
}
|
|
133952
|
+
);
|
|
133953
|
+
if (uniqueAccessorChanges.length !== dataAccessRequest.accessorChanges.length) {
|
|
133954
|
+
dataAccessRequest.accessorChanges = uniqueAccessorChanges;
|
|
133955
|
+
shouldUpdate = true;
|
|
133956
|
+
}
|
|
133957
|
+
if (shouldUpdate) {
|
|
133958
|
+
updateRequestAsync(dataAccessRequest);
|
|
133959
|
+
}
|
|
133960
|
+
}
|
|
133961
|
+
}, [
|
|
133962
|
+
dataAccessRequest,
|
|
133963
|
+
isRenewal,
|
|
133964
|
+
researchProjectId,
|
|
133965
|
+
updateRequestAsync,
|
|
133966
|
+
user
|
|
133967
|
+
]);
|
|
133968
|
+
(0, import_react178.useEffect)(() => {
|
|
133969
|
+
if (dataAccessRequest) {
|
|
133970
|
+
if (dataAccessRequest.accessorChanges && accessorChanges == void 0) {
|
|
133971
|
+
setAccessorChanges(dataAccessRequest.accessorChanges);
|
|
133972
|
+
}
|
|
133973
|
+
if (isRenewal && dataAccessRequest.publication && publication == void 0) {
|
|
133974
|
+
setPublication(dataAccessRequest.publication);
|
|
133975
|
+
}
|
|
133976
|
+
if (isRenewal && dataAccessRequest.summaryOfUse && summaryOfUse == void 0) {
|
|
133977
|
+
setSummaryOfUse(dataAccessRequest.summaryOfUse);
|
|
133978
|
+
}
|
|
133979
|
+
}
|
|
133980
|
+
}, [dataAccessRequest]);
|
|
133981
|
+
function getDataAccessRequestWithLocalState() {
|
|
133982
|
+
return __spreadProps(__spreadValues({}, dataAccessRequest), {
|
|
133983
|
+
// append local state to the request
|
|
133984
|
+
accessorChanges,
|
|
133985
|
+
publication,
|
|
133986
|
+
summaryOfUse
|
|
133987
|
+
});
|
|
133988
|
+
}
|
|
133779
133989
|
function handleSubmit() {
|
|
133780
133990
|
return __async(this, null, function* () {
|
|
133781
133991
|
if (dataAccessRequest) {
|
|
133782
|
-
const requestObject = yield updateRequestAsync(
|
|
133992
|
+
const requestObject = yield updateRequestAsync(
|
|
133993
|
+
getDataAccessRequestWithLocalState()
|
|
133994
|
+
);
|
|
133783
133995
|
submit({
|
|
133784
133996
|
request: {
|
|
133785
133997
|
requestId: requestObject.id,
|
|
133786
133998
|
requestEtag: requestObject.etag,
|
|
133787
133999
|
subjectId: entityId,
|
|
133788
|
-
subjectType:
|
|
134000
|
+
subjectType: RestrictableObjectType.ENTITY
|
|
133789
134001
|
},
|
|
133790
134002
|
accessRequirementId: String(managedACTAccessRequirement.id)
|
|
133791
134003
|
});
|
|
@@ -133796,36 +134008,26 @@ ${e3.message}`);
|
|
|
133796
134008
|
return /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement("strong", null, "Sorry, there is an error in submitting your request."), /* @__PURE__ */ import_react178.default.createElement("br", null), reason);
|
|
133797
134009
|
};
|
|
133798
134010
|
const onAccessorChange = (updater) => {
|
|
133799
|
-
|
|
133800
|
-
// Copy the array so the caller doesn't have to worry about immutability
|
|
133801
|
-
accessorChanges: [...updater(req.accessorChanges || [])]
|
|
133802
|
-
}));
|
|
134011
|
+
setAccessorChanges([...updater(accessorChanges || [])]);
|
|
133803
134012
|
};
|
|
133804
134013
|
const onClearAttachment = (fid) => {
|
|
133805
|
-
|
|
133806
|
-
|
|
133807
|
-
|
|
133808
|
-
|
|
133809
|
-
attachments: (_a2 = req.attachments) == null ? void 0 : _a2.filter((item) => item !== fid)
|
|
133810
|
-
});
|
|
133811
|
-
}
|
|
133812
|
-
return req;
|
|
133813
|
-
});
|
|
134014
|
+
var _a2;
|
|
134015
|
+
updateRequestAsync(__spreadProps(__spreadValues({}, dataAccessRequest), {
|
|
134016
|
+
attachments: (_a2 = dataAccessRequest.attachments) == null ? void 0 : _a2.filter((item) => item !== fid)
|
|
134017
|
+
}));
|
|
133814
134018
|
};
|
|
133815
134019
|
const uploadCallback = (data, context) => {
|
|
133816
134020
|
if (data.resp && data.success) {
|
|
133817
134021
|
const uploadResponse = data.resp;
|
|
133818
134022
|
if (context === "attachments") {
|
|
133819
|
-
|
|
133820
|
-
|
|
133821
|
-
attachments
|
|
133822
|
-
|
|
133823
|
-
|
|
133824
|
-
|
|
133825
|
-
});
|
|
133826
|
-
});
|
|
134023
|
+
updateRequestAsync(__spreadProps(__spreadValues({}, dataAccessRequest), {
|
|
134024
|
+
attachments: [
|
|
134025
|
+
...dataAccessRequest.attachments || [],
|
|
134026
|
+
uploadResponse.fileHandleId
|
|
134027
|
+
]
|
|
134028
|
+
}));
|
|
133827
134029
|
} else {
|
|
133828
|
-
|
|
134030
|
+
updateRequestAsync(__spreadProps(__spreadValues({}, dataAccessRequest), {
|
|
133829
134031
|
[context]: uploadResponse.fileHandleId
|
|
133830
134032
|
}));
|
|
133831
134033
|
}
|
|
@@ -133840,45 +134042,24 @@ ${e3.message}`);
|
|
|
133840
134042
|
});
|
|
133841
134043
|
}
|
|
133842
134044
|
};
|
|
133843
|
-
const handleTextAreaInputChange = (e3, key) => {
|
|
133844
|
-
const value = e3.target.value;
|
|
133845
|
-
setDataAccessRequest((req) => __spreadProps(__spreadValues({}, req), {
|
|
133846
|
-
[key]: value
|
|
133847
|
-
}));
|
|
133848
|
-
};
|
|
133849
|
-
const AccessorRequirementHelpText = () => {
|
|
133850
|
-
let link = "";
|
|
133851
|
-
let msg2 = "";
|
|
133852
|
-
if (managedACTAccessRequirement.isCertifiedUserRequired && managedACTAccessRequirement.isValidatedProfileRequired) {
|
|
133853
|
-
link = "https://help.synapse.org/docs/User-Types.2007072795.html";
|
|
133854
|
-
msg2 = "All data requesters must be certified users and have a validated user profile.";
|
|
133855
|
-
} else if (managedACTAccessRequirement.isCertifiedUserRequired) {
|
|
133856
|
-
link = "https://help.synapse.org/docs/User-Types.2007072795.html#UserAccountTiers-CertifiedUsers";
|
|
133857
|
-
msg2 = "All data requesters must be a certified user.";
|
|
133858
|
-
} else if (managedACTAccessRequirement.isValidatedProfileRequired) {
|
|
133859
|
-
link = "https://help.synapse.org/docs/User-Types.2007072795.html#UserAccountTiers-ValidatedUsers";
|
|
133860
|
-
msg2 = "All data requesters must have a validated user profile.";
|
|
133861
|
-
}
|
|
133862
|
-
return link && msg2 ? /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, managedACTAccessRequirement.isDUCRequired ? /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, "This list should match those listed on your DUC.", /* @__PURE__ */ import_react178.default.createElement("br", null)) : "", msg2, " ", /* @__PURE__ */ import_react178.default.createElement(Link_default, { href: link, target: "_blank", rel: "noreferrer" }, "Learn more")) : /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null);
|
|
133863
|
-
};
|
|
133864
134045
|
const ducFileHandleAssociation = (dataAccessRequest == null ? void 0 : dataAccessRequest.ducFileHandleId) ? [
|
|
133865
134046
|
{
|
|
133866
134047
|
fileHandleId: dataAccessRequest == null ? void 0 : dataAccessRequest.ducFileHandleId,
|
|
133867
|
-
associateObjectType:
|
|
133868
|
-
associateObjectId: String(
|
|
134048
|
+
associateObjectType: FileHandleAssociateType.DataAccessRequestAttachment,
|
|
134049
|
+
associateObjectId: String(dataAccessRequest.id)
|
|
133869
134050
|
}
|
|
133870
134051
|
] : [];
|
|
133871
134052
|
const irbFileHandleAssociation = (dataAccessRequest == null ? void 0 : dataAccessRequest.irbFileHandleId) ? [
|
|
133872
134053
|
{
|
|
133873
134054
|
fileHandleId: dataAccessRequest.irbFileHandleId,
|
|
133874
|
-
associateObjectType:
|
|
133875
|
-
associateObjectId: String(
|
|
134055
|
+
associateObjectType: FileHandleAssociateType.DataAccessRequestAttachment,
|
|
134056
|
+
associateObjectId: String(dataAccessRequest.id)
|
|
133876
134057
|
}
|
|
133877
134058
|
] : [];
|
|
133878
134059
|
const attachmentFileHandleAssociations = (_a = ((dataAccessRequest == null ? void 0 : dataAccessRequest.attachments) || []).map((attachmentFileHandleId) => ({
|
|
133879
134060
|
fileHandleId: attachmentFileHandleId,
|
|
133880
|
-
associateObjectType:
|
|
133881
|
-
associateObjectId: String(
|
|
134061
|
+
associateObjectType: FileHandleAssociateType.DataAccessRequestAttachment,
|
|
134062
|
+
associateObjectId: String(dataAccessRequest.id)
|
|
133882
134063
|
}))) != null ? _a : [];
|
|
133883
134064
|
return /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(DialogTitle_default, null, /* @__PURE__ */ import_react178.default.createElement(Stack_default, { direction: "row", alignItems: "center", gap: "5px" }, "Request Access", /* @__PURE__ */ import_react178.default.createElement(Box_default, { sx: { flexGrow: 1 } }), /* @__PURE__ */ import_react178.default.createElement(IconButton_default, { onClick: props.onHide }, /* @__PURE__ */ import_react178.default.createElement(IconSvg_default, { icon: "close", wrap: false, sx: { color: "grey.700" } })))), /* @__PURE__ */ import_react178.default.createElement(DialogContent_default, null, /* @__PURE__ */ import_react178.default.createElement(
|
|
133884
134065
|
ManagedACTAccessRequirementFormWikiWrapper,
|
|
@@ -133896,13 +134077,18 @@ ${e3.message}`);
|
|
|
133896
134077
|
onSubmit: (e3) => e3.preventDefault()
|
|
133897
134078
|
},
|
|
133898
134079
|
/* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { mb: 2 } }, "Please provide the information below to submit the request for access."),
|
|
133899
|
-
dataAccessRequest && /* @__PURE__ */ import_react178.default.createElement(
|
|
134080
|
+
dataAccessRequest && user && /* @__PURE__ */ import_react178.default.createElement(
|
|
133900
134081
|
DataAccessRequestAccessorsEditor,
|
|
133901
134082
|
{
|
|
133902
|
-
accessorChanges:
|
|
134083
|
+
accessorChanges: accessorChanges || [],
|
|
133903
134084
|
onChange: onAccessorChange,
|
|
133904
134085
|
isRenewal,
|
|
133905
|
-
helpText: /* @__PURE__ */ import_react178.default.createElement(
|
|
134086
|
+
helpText: /* @__PURE__ */ import_react178.default.createElement(
|
|
134087
|
+
AccessorRequirementHelpText,
|
|
134088
|
+
{
|
|
134089
|
+
managedACTAccessRequirement
|
|
134090
|
+
}
|
|
134091
|
+
)
|
|
133906
134092
|
}
|
|
133907
134093
|
),
|
|
133908
134094
|
((managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isDUCRequired) || (managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isIRBApprovalRequired) || (managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) || isRenewal) && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } }),
|
|
@@ -133913,61 +134099,66 @@ ${e3.message}`);
|
|
|
133913
134099
|
description: "As a first step, you will need to download the most current version of the Data Use Certificate.",
|
|
133914
134100
|
fileHandleAssociation: {
|
|
133915
134101
|
fileHandleId: managedACTAccessRequirement.ducTemplateFileHandleId,
|
|
133916
|
-
associateObjectType:
|
|
134102
|
+
associateObjectType: FileHandleAssociateType.AccessRequirementAttachment,
|
|
133917
134103
|
associateObjectId: String(managedACTAccessRequirement.id)
|
|
133918
134104
|
},
|
|
133919
134105
|
downloadButtonText: "Download DUC Template"
|
|
133920
134106
|
}
|
|
133921
|
-
), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { mt: 4, mb: 2 } }, "Fill out and upload a Data Use Certificate"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "You must download and fill out a Data Use Certificate (DUC). Be sure to upload the completed DUC below once you've completed it."), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", component: "ol" }, /* @__PURE__ */ import_react178.default.createElement("li", null, "Download the DUC template file."), /* @__PURE__ */ import_react178.default.createElement("li", null, "Fill out the DUC template, following the instructions in the file."), /* @__PURE__ */ import_react178.default.createElement("li", null, "Upload the completed certificate using the button below:")), /* @__PURE__ */ import_react178.default.createElement(
|
|
134107
|
+
), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { mt: 4, mb: 2 } }, "Fill out and upload a Data Use Certificate"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "You must download and fill out a Data Use Certificate (DUC). Be sure to upload the completed DUC below once you've completed it."), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", component: "ol" }, /* @__PURE__ */ import_react178.default.createElement("li", null, "Download the DUC template file."), /* @__PURE__ */ import_react178.default.createElement("li", null, "Fill out the DUC template, following the instructions in the file."), /* @__PURE__ */ import_react178.default.createElement("li", null, "Upload the completed certificate using the button below:")), /* @__PURE__ */ import_react178.default.createElement(SynapseErrorBoundary, null, /* @__PURE__ */ import_react178.default.createElement(
|
|
133922
134108
|
UploadDocumentField,
|
|
133923
134109
|
{
|
|
133924
134110
|
id: "duc",
|
|
134111
|
+
isLoading,
|
|
133925
134112
|
uploadCallback: (resp) => uploadCallback(resp, "ducFileHandleId"),
|
|
133926
134113
|
documentName: "Data Use Certificate",
|
|
133927
134114
|
fileHandleAssociations: ducFileHandleAssociation
|
|
133928
134115
|
}
|
|
133929
|
-
), ((managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isIRBApprovalRequired) || (managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) || isRenewal) && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
133930
|
-
(managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isIRBApprovalRequired) && /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { my: 2 } }, "IRB Approval"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "Upload a signed IRB letter on institutional letterhead. The letter must include the names of all the datasets requested, as well as the names of the data requesters above. Use the button below to upload the document."), /* @__PURE__ */ import_react178.default.createElement(
|
|
134116
|
+
)), ((managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isIRBApprovalRequired) || (managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) || isRenewal) && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
134117
|
+
(managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.isIRBApprovalRequired) && /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { my: 2 } }, "IRB Approval"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "Upload a signed IRB letter on institutional letterhead. The letter must include the names of all the datasets requested, as well as the names of the data requesters above. Use the button below to upload the document."), /* @__PURE__ */ import_react178.default.createElement(SynapseErrorBoundary, null, /* @__PURE__ */ import_react178.default.createElement(
|
|
133931
134118
|
UploadDocumentField,
|
|
133932
134119
|
{
|
|
133933
134120
|
id: "irb",
|
|
134121
|
+
isLoading,
|
|
133934
134122
|
documentName: "IRB Approval Letter",
|
|
133935
134123
|
uploadCallback: (resp) => uploadCallback(resp, "irbFileHandleId"),
|
|
133936
134124
|
fileHandleAssociations: irbFileHandleAssociation
|
|
133937
134125
|
}
|
|
133938
|
-
), ((managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) || isRenewal) && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
134126
|
+
)), ((managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) || isRenewal) && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
133939
134127
|
/* Attachments */
|
|
133940
|
-
(managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) && /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { my: 2 } }, "Upload other required documents"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "You must upload other required documents. Please review the instructions to gain data access to determine which documents must also be uploaded."), /* @__PURE__ */ import_react178.default.createElement(
|
|
134128
|
+
(managedACTAccessRequirement == null ? void 0 : managedACTAccessRequirement.areOtherAttachmentsRequired) && /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "headline3", sx: { my: 2 } }, "Upload other required documents"), /* @__PURE__ */ import_react178.default.createElement(Typography_default, { variant: "body1", sx: { my: 2 } }, "You must upload other required documents. Please review the instructions to gain data access to determine which documents must also be uploaded."), /* @__PURE__ */ import_react178.default.createElement(SynapseErrorBoundary, null, /* @__PURE__ */ import_react178.default.createElement(
|
|
133941
134129
|
UploadDocumentField,
|
|
133942
134130
|
{
|
|
133943
134131
|
id: "file-attachment",
|
|
134132
|
+
isLoading,
|
|
133944
134133
|
documentName: "Attachment",
|
|
133945
134134
|
uploadCallback: (res) => uploadCallback(res, "attachments"),
|
|
133946
134135
|
isMultiFileUpload: true,
|
|
133947
134136
|
fileHandleAssociations: attachmentFileHandleAssociations,
|
|
133948
134137
|
onClearAttachment
|
|
133949
134138
|
}
|
|
133950
|
-
), isRenewal && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
134139
|
+
)), isRenewal && /* @__PURE__ */ import_react178.default.createElement(Divider_default, { sx: { my: 4 } })),
|
|
133951
134140
|
// Publications & Summary of Use
|
|
133952
134141
|
isRenewal && /* @__PURE__ */ import_react178.default.createElement(import_react178.default.Fragment, null, /* @__PURE__ */ import_react178.default.createElement(
|
|
133953
134142
|
TextField3,
|
|
133954
134143
|
{
|
|
133955
134144
|
id: "publications",
|
|
133956
134145
|
label: "Publication(s)",
|
|
134146
|
+
disabled: isLoadingSubmitDataAccessRequest,
|
|
133957
134147
|
multiline: true,
|
|
133958
134148
|
rows: 3,
|
|
133959
|
-
value:
|
|
133960
|
-
onChange: (e3) =>
|
|
134149
|
+
value: publication,
|
|
134150
|
+
onChange: (e3) => setPublication(e3.target.value)
|
|
133961
134151
|
}
|
|
133962
134152
|
), /* @__PURE__ */ import_react178.default.createElement(
|
|
133963
134153
|
TextField3,
|
|
133964
134154
|
{
|
|
133965
134155
|
id: "summaryOfUse",
|
|
133966
134156
|
label: "Summary of use",
|
|
133967
|
-
value:
|
|
134157
|
+
value: summaryOfUse,
|
|
134158
|
+
disabled: isLoadingSubmitDataAccessRequest,
|
|
133968
134159
|
multiline: true,
|
|
133969
134160
|
rows: 3,
|
|
133970
|
-
onChange: (e3) =>
|
|
134161
|
+
onChange: (e3) => setSummaryOfUse(e3.target.value)
|
|
133971
134162
|
}
|
|
133972
134163
|
))
|
|
133973
134164
|
)
|
|
@@ -133975,9 +134166,10 @@ ${e3.message}`);
|
|
|
133975
134166
|
Button_default,
|
|
133976
134167
|
{
|
|
133977
134168
|
variant: "outlined",
|
|
134169
|
+
disabled: isLoadingSubmitDataAccessRequest,
|
|
133978
134170
|
onClick: () => {
|
|
133979
134171
|
if (dataAccessRequest) {
|
|
133980
|
-
onCancel(
|
|
134172
|
+
onCancel(getDataAccessRequestWithLocalState());
|
|
133981
134173
|
}
|
|
133982
134174
|
}
|
|
133983
134175
|
},
|
|
@@ -133986,6 +134178,7 @@ ${e3.message}`);
|
|
|
133986
134178
|
Button_default,
|
|
133987
134179
|
{
|
|
133988
134180
|
variant: "contained",
|
|
134181
|
+
disabled: isLoadingSubmitDataAccessRequest,
|
|
133989
134182
|
onClick: () => {
|
|
133990
134183
|
handleSubmit();
|
|
133991
134184
|
}
|
|
@@ -134632,7 +134825,7 @@ ${e3.message}`);
|
|
|
134632
134825
|
});
|
|
134633
134826
|
const [hideMarkdown, setHideMarkdown] = (0, import_react192.useState)(true);
|
|
134634
134827
|
const [alert, setAlert] = (0, import_react192.useState)();
|
|
134635
|
-
const isApproved = ((_a = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _a.state) ===
|
|
134828
|
+
const isApproved = ((_a = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _a.state) === SubmissionState.APPROVED;
|
|
134636
134829
|
let markdown = /* @__PURE__ */ import_react191.default.createElement(import_react191.default.Fragment, null);
|
|
134637
134830
|
if (wikiPage) {
|
|
134638
134831
|
markdown = /* @__PURE__ */ import_react191.default.createElement(
|
|
@@ -134655,8 +134848,8 @@ ${e3.message}`);
|
|
|
134655
134848
|
},
|
|
134656
134849
|
alert.message
|
|
134657
134850
|
),
|
|
134658
|
-
((_b = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _b.state) ===
|
|
134659
|
-
((_c = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _c.state) ===
|
|
134851
|
+
((_b = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _b.state) === SubmissionState.SUBMITTED && /* @__PURE__ */ import_react191.default.createElement(Alert_default, { className: "access-requirement-list-alert", severity: "info" }, /* @__PURE__ */ import_react191.default.createElement("strong", null, "You have submitted a data access request.")),
|
|
134852
|
+
((_c = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _c.state) === SubmissionState.APPROVED && /* @__PURE__ */ import_react191.default.createElement(
|
|
134660
134853
|
Alert_default,
|
|
134661
134854
|
{
|
|
134662
134855
|
className: "access-requirement-list-alert",
|
|
@@ -134664,8 +134857,8 @@ ${e3.message}`);
|
|
|
134664
134857
|
},
|
|
134665
134858
|
/* @__PURE__ */ import_react191.default.createElement("strong", null, "Your data access request has been approved.")
|
|
134666
134859
|
),
|
|
134667
|
-
((_d = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _d.state) ===
|
|
134668
|
-
((_e = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _e.state) ===
|
|
134860
|
+
((_d = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _d.state) === SubmissionState.REJECTED && /* @__PURE__ */ import_react191.default.createElement(Alert_default, { className: "access-requirement-list-alert", severity: "error" }, /* @__PURE__ */ import_react191.default.createElement(import_react191.default.Fragment, null, /* @__PURE__ */ import_react191.default.createElement("strong", null, "Your data access request has been rejected."), /* @__PURE__ */ import_react191.default.createElement("br", null), (accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus.rejectedReason) || "")),
|
|
134861
|
+
((_e = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _e.state) === SubmissionState.CANCELLED && /* @__PURE__ */ import_react191.default.createElement(
|
|
134669
134862
|
Alert_default,
|
|
134670
134863
|
{
|
|
134671
134864
|
className: "access-requirement-list-alert",
|
|
@@ -134689,16 +134882,16 @@ ${e3.message}`);
|
|
|
134689
134882
|
children: "I do not accept"
|
|
134690
134883
|
});
|
|
134691
134884
|
} else if ([
|
|
134692
|
-
|
|
134693
|
-
|
|
134694
|
-
|
|
134885
|
+
SubmissionState.APPROVED,
|
|
134886
|
+
SubmissionState.REJECTED,
|
|
134887
|
+
SubmissionState.CANCELLED
|
|
134695
134888
|
].includes(accessRequirementStatus.currentSubmissionStatus.state)) {
|
|
134696
134889
|
actions.push({
|
|
134697
134890
|
variant: "outlined",
|
|
134698
134891
|
onClick: onRequestAccess,
|
|
134699
134892
|
children: "Update Request"
|
|
134700
134893
|
});
|
|
134701
|
-
} else if (accessRequirementStatus.currentSubmissionStatus.state ===
|
|
134894
|
+
} else if (accessRequirementStatus.currentSubmissionStatus.state === SubmissionState.SUBMITTED) {
|
|
134702
134895
|
actions.push({
|
|
134703
134896
|
variant: "outlined",
|
|
134704
134897
|
onClick: () => {
|
|
@@ -134714,14 +134907,14 @@ ${e3.message}`);
|
|
|
134714
134907
|
let requirementItemState = "LOADING" /* LOADING */;
|
|
134715
134908
|
if (!isLoading) {
|
|
134716
134909
|
switch ((_f = accessRequirementStatus == null ? void 0 : accessRequirementStatus.currentSubmissionStatus) == null ? void 0 : _f.state) {
|
|
134717
|
-
case
|
|
134910
|
+
case SubmissionState.APPROVED:
|
|
134718
134911
|
requirementItemState = "COMPLETE" /* COMPLETE */;
|
|
134719
134912
|
break;
|
|
134720
|
-
case
|
|
134913
|
+
case SubmissionState.SUBMITTED:
|
|
134721
134914
|
requirementItemState = "PENDING" /* PENDING */;
|
|
134722
134915
|
break;
|
|
134723
|
-
case
|
|
134724
|
-
case
|
|
134916
|
+
case SubmissionState.REJECTED:
|
|
134917
|
+
case SubmissionState.CANCELLED:
|
|
134725
134918
|
default:
|
|
134726
134919
|
requirementItemState = "LOCKED" /* LOCKED */;
|
|
134727
134920
|
}
|
|
@@ -134783,7 +134976,7 @@ ${e3.message}`);
|
|
|
134783
134976
|
requirementId: accessRequirement == null ? void 0 : accessRequirement.id,
|
|
134784
134977
|
submitterId: user == null ? void 0 : user.ownerId,
|
|
134785
134978
|
accessorId: user == null ? void 0 : user.ownerId,
|
|
134786
|
-
state:
|
|
134979
|
+
state: ApprovalState.APPROVED
|
|
134787
134980
|
};
|
|
134788
134981
|
createAccessApproval2(accessApprovalRequest);
|
|
134789
134982
|
};
|
|
@@ -136182,7 +136375,7 @@ ${e3.message}`);
|
|
|
136182
136375
|
if (columnModel == null ? void 0 : columnModel.columnType.endsWith("_LIST")) {
|
|
136183
136376
|
const columnMultiValueQueryFilter = {
|
|
136184
136377
|
columnName,
|
|
136185
|
-
function:
|
|
136378
|
+
function: ColumnMultiValueFunction.HAS_LIKE,
|
|
136186
136379
|
values: [`%${searchText}%`],
|
|
136187
136380
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter"
|
|
136188
136381
|
};
|
|
@@ -136190,7 +136383,7 @@ ${e3.message}`);
|
|
|
136190
136383
|
} else {
|
|
136191
136384
|
const columnSingleValueQueryFilter = {
|
|
136192
136385
|
columnName,
|
|
136193
|
-
operator:
|
|
136386
|
+
operator: ColumnSingleValueFilterOperator.LIKE,
|
|
136194
136387
|
values: [`%${searchText}%`],
|
|
136195
136388
|
concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter"
|
|
136196
136389
|
};
|
|
@@ -136210,11 +136403,11 @@ ${e3.message}`);
|
|
|
136210
136403
|
});
|
|
136211
136404
|
__publicField(this, "isSupportedColumn", (columnModel) => {
|
|
136212
136405
|
switch (columnModel == null ? void 0 : columnModel.columnType) {
|
|
136213
|
-
case
|
|
136214
|
-
case
|
|
136215
|
-
case
|
|
136216
|
-
case
|
|
136217
|
-
case
|
|
136406
|
+
case ColumnTypeEnum.FILEHANDLEID:
|
|
136407
|
+
case ColumnTypeEnum.ENTITYID:
|
|
136408
|
+
case ColumnTypeEnum.DATE:
|
|
136409
|
+
case ColumnTypeEnum.DATE_LIST:
|
|
136410
|
+
case ColumnTypeEnum.USERID:
|
|
136218
136411
|
return false;
|
|
136219
136412
|
default:
|
|
136220
136413
|
return true;
|
|
@@ -137703,17 +137896,17 @@ ${e3.message}`);
|
|
|
137703
137896
|
const selectedValuesMap = {};
|
|
137704
137897
|
let timer2;
|
|
137705
137898
|
const allIsSelected = facetValues.filter((item) => item.isSelected).length === 0;
|
|
137706
|
-
const userIds = (columnModel == null ? void 0 : columnModel.columnType) ===
|
|
137899
|
+
const userIds = (columnModel == null ? void 0 : columnModel.columnType) === ColumnTypeEnum.USERID || (columnModel == null ? void 0 : columnModel.columnType) === ColumnTypeEnum.USERID_LIST ? facetValues.map((facet) => facet.value) : [];
|
|
137707
137900
|
const userGroupHeaders = useGetInfoFromIds({
|
|
137708
137901
|
ids: userIds,
|
|
137709
137902
|
type: "USER_PROFILE"
|
|
137710
137903
|
});
|
|
137711
|
-
const entityIds = (columnModel == null ? void 0 : columnModel.columnType) ===
|
|
137904
|
+
const entityIds = (columnModel == null ? void 0 : columnModel.columnType) === ColumnTypeEnum.ENTITYID || (columnModel == null ? void 0 : columnModel.columnType) === ColumnTypeEnum.ENTITYID_LIST ? facetValues.map((facet) => facet.value) : [];
|
|
137712
137905
|
const entityHeaders = useGetInfoFromIds({
|
|
137713
137906
|
ids: entityIds,
|
|
137714
137907
|
type: "ENTITY_HEADER"
|
|
137715
137908
|
});
|
|
137716
|
-
const evaluationIds = (columnModel == null ? void 0 : columnModel.columnType) ===
|
|
137909
|
+
const evaluationIds = (columnModel == null ? void 0 : columnModel.columnType) === ColumnTypeEnum.EVALUATIONID ? facetValues.map((facet) => facet.value) : [];
|
|
137717
137910
|
const evaluations = useGetInfoFromIds({
|
|
137718
137911
|
ids: evaluationIds,
|
|
137719
137912
|
type: "EVALUATION_QUEUE"
|
|
@@ -138706,7 +138899,7 @@ ${e3.message}`);
|
|
|
138706
138899
|
SynapseConstants_exports.FRIENDLY_VALUE_NOT_SET
|
|
138707
138900
|
);
|
|
138708
138901
|
const filteredValues = facetValues.map((value) => value.value).filter((val) => val !== SynapseConstants_exports.VALUE_NOT_SET);
|
|
138709
|
-
if (columnType2 ===
|
|
138902
|
+
if (columnType2 === ColumnTypeEnum.ENTITYID || columnType2 === ColumnTypeEnum.ENTITYID_LIST) {
|
|
138710
138903
|
const response = yield synapse_client_default.getEntityHeadersByIds(
|
|
138711
138904
|
filteredValues,
|
|
138712
138905
|
accessToken2
|
|
@@ -138714,7 +138907,7 @@ ${e3.message}`);
|
|
|
138714
138907
|
for (const header of response.results) {
|
|
138715
138908
|
map3.set(header.id, header.name);
|
|
138716
138909
|
}
|
|
138717
|
-
} else if (columnType2 ===
|
|
138910
|
+
} else if (columnType2 === ColumnTypeEnum.USERID || columnType2 === ColumnTypeEnum.USERID_LIST) {
|
|
138718
138911
|
const response = yield synapse_client_default.getGroupHeadersBatch(
|
|
138719
138912
|
filteredValues,
|
|
138720
138913
|
accessToken2
|
|
@@ -139706,13 +139899,13 @@ ${e3.message}`);
|
|
|
139706
139899
|
fileHandleAssociation = {
|
|
139707
139900
|
fileHandleId,
|
|
139708
139901
|
associateObjectId: (_a = table == null ? void 0 : table.id) != null ? _a : "",
|
|
139709
|
-
associateObjectType:
|
|
139902
|
+
associateObjectType: FileHandleAssociateType.TableEntity
|
|
139710
139903
|
};
|
|
139711
139904
|
} else if (rowSynapseId) {
|
|
139712
139905
|
fileHandleAssociation = {
|
|
139713
139906
|
fileHandleId,
|
|
139714
139907
|
associateObjectId: rowSynapseId,
|
|
139715
|
-
associateObjectType:
|
|
139908
|
+
associateObjectType: FileHandleAssociateType.FileEntity
|
|
139716
139909
|
};
|
|
139717
139910
|
}
|
|
139718
139911
|
}
|
|
@@ -139799,7 +139992,7 @@ ${e3.message}`);
|
|
|
139799
139992
|
if (isHeader) {
|
|
139800
139993
|
newClassName = className == null ? void 0 : className.concat(" ", "SRC-lightLink");
|
|
139801
139994
|
}
|
|
139802
|
-
if (columnModelType ===
|
|
139995
|
+
if (columnModelType === ColumnTypeEnum.USERID_LIST && strList) {
|
|
139803
139996
|
return /* @__PURE__ */ import_react278.default.createElement("p", null, strList.map((val, index3) => {
|
|
139804
139997
|
return /* @__PURE__ */ import_react278.default.createElement(import_react278.default.Fragment, { key: val }, /* @__PURE__ */ import_react278.default.createElement(
|
|
139805
139998
|
UserCard_default,
|
|
@@ -139811,7 +140004,7 @@ ${e3.message}`);
|
|
|
139811
140004
|
), index3 < strList.length - 1 && ",\xA0\xA0");
|
|
139812
140005
|
}));
|
|
139813
140006
|
}
|
|
139814
|
-
if (columnModelType ===
|
|
140007
|
+
if (columnModelType === ColumnTypeEnum.USERID && str) {
|
|
139815
140008
|
return /* @__PURE__ */ import_react278.default.createElement(UserCard_default, { ownerId: str, size: SMALL_USER_CARD, className: newClassName });
|
|
139816
140009
|
}
|
|
139817
140010
|
if (!labelLink) {
|
|
@@ -140228,7 +140421,7 @@ ${e3.message}`);
|
|
|
140228
140421
|
className: "SRC-boldText SRC-blackText",
|
|
140229
140422
|
style: { margin: "none" }
|
|
140230
140423
|
},
|
|
140231
|
-
!titleLinkConfig && titleColumnType ===
|
|
140424
|
+
!titleLinkConfig && titleColumnType === ColumnTypeEnum.FILEHANDLEID && fileHandleAssociation ? /* @__PURE__ */ import_react278.default.createElement(
|
|
140232
140425
|
FileHandleLink,
|
|
140233
140426
|
{
|
|
140234
140427
|
fileHandleAssociation,
|
|
@@ -140501,7 +140694,7 @@ ${e3.message}`);
|
|
|
140501
140694
|
(el) => el.name === "institution"
|
|
140502
140695
|
);
|
|
140503
140696
|
const ownerId = data.queryResult.queryResults.headers.findIndex(
|
|
140504
|
-
(el) => el.columnType ===
|
|
140697
|
+
(el) => el.columnType === ColumnTypeEnum.USERID
|
|
140505
140698
|
);
|
|
140506
140699
|
const nullOwnerIdsRows = data.queryResult.queryResults.rows.filter(
|
|
140507
140700
|
(el) => !el.values[ownerId]
|
|
@@ -140638,7 +140831,7 @@ ${e3.message}`);
|
|
|
140638
140831
|
let cards;
|
|
140639
140832
|
if (type === MEDIUM_USER_CARD) {
|
|
140640
140833
|
const userIdColumnIndex = data.queryResult.queryResults.headers.findIndex(
|
|
140641
|
-
(el) => el.columnType ===
|
|
140834
|
+
(el) => el.columnType === ColumnTypeEnum.USERID
|
|
140642
140835
|
);
|
|
140643
140836
|
if (userIdColumnIndex === -1) {
|
|
140644
140837
|
throw Error(
|
|
@@ -140779,7 +140972,7 @@ ${e3.message}`);
|
|
|
140779
140972
|
safariDownloadWindow.document.body.innerHTML = "Downloading file on Safari...";
|
|
140780
140973
|
}
|
|
140781
140974
|
try {
|
|
140782
|
-
if (associatedObjectType ===
|
|
140975
|
+
if (associatedObjectType === FileHandleAssociateType.TableEntity) {
|
|
140783
140976
|
const files = yield getTableEntityFileHandle(true);
|
|
140784
140977
|
preSignedURL = files.requestedFiles[0].preSignedURL;
|
|
140785
140978
|
} else {
|
|
@@ -140853,7 +141046,7 @@ ${e3.message}`);
|
|
|
140853
141046
|
}).catch((err) => {
|
|
140854
141047
|
console.log("Error on getFileEntityFileHandle = ", err);
|
|
140855
141048
|
});
|
|
140856
|
-
} else if (associatedObjectType ===
|
|
141049
|
+
} else if (associatedObjectType === FileHandleAssociateType.TableEntity) {
|
|
140857
141050
|
const files = yield getTableEntityFileHandle();
|
|
140858
141051
|
const fh = files.requestedFiles[0].fileHandle;
|
|
140859
141052
|
if (displayFileName && fh && hasFileHandle(fh)) {
|
|
@@ -140983,7 +141176,7 @@ ${e3.message}`);
|
|
|
140983
141176
|
);
|
|
140984
141177
|
const restrictionInformationRequest = import_react286.default.useMemo(
|
|
140985
141178
|
() => ({
|
|
140986
|
-
restrictableObjectType:
|
|
141179
|
+
restrictableObjectType: RestrictableObjectType.ENTITY,
|
|
140987
141180
|
objectId: entityId
|
|
140988
141181
|
}),
|
|
140989
141182
|
[entityId]
|
|
@@ -141029,7 +141222,7 @@ ${e3.message}`);
|
|
|
141029
141222
|
const { accessToken } = useSynapseContext();
|
|
141030
141223
|
const restrictionInformationRequest = import_react286.default.useMemo(
|
|
141031
141224
|
() => ({
|
|
141032
|
-
restrictableObjectType:
|
|
141225
|
+
restrictableObjectType: RestrictableObjectType.ENTITY,
|
|
141033
141226
|
objectId: entityId
|
|
141034
141227
|
}),
|
|
141035
141228
|
[entityId]
|
|
@@ -141063,7 +141256,7 @@ ${e3.message}`);
|
|
|
141063
141256
|
let linkText = "";
|
|
141064
141257
|
if (hasUnmetAccessRequirement) {
|
|
141065
141258
|
linkText = "Request Access";
|
|
141066
|
-
} else if (
|
|
141259
|
+
} else if (RestrictionLevel.OPEN === restrictionLevel) {
|
|
141067
141260
|
return /* @__PURE__ */ import_react286.default.createElement(import_react286.default.Fragment, null);
|
|
141068
141261
|
} else {
|
|
141069
141262
|
linkText = "View Terms";
|
|
@@ -141372,7 +141565,7 @@ ${e3.message}`);
|
|
|
141372
141565
|
));
|
|
141373
141566
|
}
|
|
141374
141567
|
switch (columnType) {
|
|
141375
|
-
case
|
|
141568
|
+
case ColumnTypeEnum.ENTITYID:
|
|
141376
141569
|
return /* @__PURE__ */ import_react292.default.createElement("p", null, /* @__PURE__ */ import_react292.default.createElement(
|
|
141377
141570
|
EntityLink,
|
|
141378
141571
|
{
|
|
@@ -141382,49 +141575,49 @@ ${e3.message}`);
|
|
|
141382
141575
|
}
|
|
141383
141576
|
));
|
|
141384
141577
|
break;
|
|
141385
|
-
case
|
|
141578
|
+
case ColumnTypeEnum.DATE_LIST: {
|
|
141386
141579
|
const jsonData = JSON.parse(columnValue);
|
|
141387
141580
|
return /* @__PURE__ */ import_react292.default.createElement("p", null, jsonData.map((val, index3) => {
|
|
141388
141581
|
return /* @__PURE__ */ import_react292.default.createElement("span", { key: index3, className: isBold }, formatDate((0, import_dayjs9.default)(Number(val))), index3 !== jsonData.length - 1 ? ", " : "");
|
|
141389
141582
|
}), " ");
|
|
141390
141583
|
}
|
|
141391
|
-
case
|
|
141584
|
+
case ColumnTypeEnum.BOOLEAN_LIST: {
|
|
141392
141585
|
const jsonData = JSON.parse(columnValue);
|
|
141393
141586
|
return /* @__PURE__ */ import_react292.default.createElement("p", null, jsonData.map((val, index3) => {
|
|
141394
141587
|
return /* @__PURE__ */ import_react292.default.createElement("span", { key: index3, className: isBold }, val ? "true" : "false", index3 !== jsonData.length - 1 ? ", " : "");
|
|
141395
141588
|
}));
|
|
141396
141589
|
}
|
|
141397
|
-
case
|
|
141590
|
+
case ColumnTypeEnum.FILEHANDLEID:
|
|
141398
141591
|
return /* @__PURE__ */ import_react292.default.createElement(import_react292.default.Fragment, null, entity && /* @__PURE__ */ import_react292.default.createElement(
|
|
141399
141592
|
DirectDownload_default,
|
|
141400
141593
|
{
|
|
141401
141594
|
associatedObjectId: entity.id,
|
|
141402
|
-
associatedObjectType:
|
|
141595
|
+
associatedObjectType: FileHandleAssociateType.TableEntity,
|
|
141403
141596
|
fileHandleId: columnValue,
|
|
141404
141597
|
displayFileName: true
|
|
141405
141598
|
}
|
|
141406
141599
|
));
|
|
141407
|
-
case
|
|
141600
|
+
case ColumnTypeEnum.ENTITYID_LIST: {
|
|
141408
141601
|
const jsonData = JSON.parse(columnValue);
|
|
141409
141602
|
return /* @__PURE__ */ import_react292.default.createElement("p", null, /* @__PURE__ */ import_react292.default.createElement(EntityIdList_default, { entityIdList: jsonData }));
|
|
141410
141603
|
}
|
|
141411
|
-
case
|
|
141604
|
+
case ColumnTypeEnum.USERID_LIST: {
|
|
141412
141605
|
const jsonData = JSON.parse(columnValue);
|
|
141413
141606
|
return /* @__PURE__ */ import_react292.default.createElement(UserIdList_default, { userIds: jsonData });
|
|
141414
141607
|
}
|
|
141415
|
-
case
|
|
141416
|
-
case
|
|
141608
|
+
case ColumnTypeEnum.STRING_LIST:
|
|
141609
|
+
case ColumnTypeEnum.INTEGER_LIST: {
|
|
141417
141610
|
const jsonData = JSON.parse(columnValue);
|
|
141418
141611
|
return /* @__PURE__ */ import_react292.default.createElement("p", { className: isBold }, jsonData.map((val, index3) => {
|
|
141419
141612
|
return /* @__PURE__ */ import_react292.default.createElement(import_react292.default.Fragment, { key: val }, val, index3 !== jsonData.length - 1 ? ", " : "");
|
|
141420
141613
|
}));
|
|
141421
141614
|
}
|
|
141422
|
-
case
|
|
141615
|
+
case ColumnTypeEnum.EVALUATIONID: {
|
|
141423
141616
|
return /* @__PURE__ */ import_react292.default.createElement(EvaluationIdRenderer_default, { evaluationId: columnValue });
|
|
141424
141617
|
}
|
|
141425
|
-
case
|
|
141618
|
+
case ColumnTypeEnum.DATE:
|
|
141426
141619
|
return /* @__PURE__ */ import_react292.default.createElement("p", { className: isBold }, formatDate((0, import_dayjs9.default)(Number(columnValue))));
|
|
141427
|
-
case
|
|
141620
|
+
case ColumnTypeEnum.USERID:
|
|
141428
141621
|
if (Object.prototype.hasOwnProperty.call(mapUserIdToHeader, columnValue)) {
|
|
141429
141622
|
const cachedData = mapUserIdToHeader[columnValue];
|
|
141430
141623
|
const { ownerId, userName } = cachedData;
|
|
@@ -141456,14 +141649,14 @@ ${e3.message}`);
|
|
|
141456
141649
|
}
|
|
141457
141650
|
}
|
|
141458
141651
|
break;
|
|
141459
|
-
case
|
|
141652
|
+
case ColumnTypeEnum.LINK:
|
|
141460
141653
|
return /* @__PURE__ */ import_react292.default.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: columnValue }, columnValue);
|
|
141461
|
-
case
|
|
141462
|
-
case
|
|
141463
|
-
case
|
|
141464
|
-
case
|
|
141465
|
-
case
|
|
141466
|
-
case
|
|
141654
|
+
case ColumnTypeEnum.STRING:
|
|
141655
|
+
case ColumnTypeEnum.DOUBLE:
|
|
141656
|
+
case ColumnTypeEnum.INTEGER:
|
|
141657
|
+
case ColumnTypeEnum.BOOLEAN:
|
|
141658
|
+
case ColumnTypeEnum.MEDIUMTEXT:
|
|
141659
|
+
case ColumnTypeEnum.LARGETEXT: {
|
|
141467
141660
|
return /* @__PURE__ */ import_react292.default.createElement("p", { className: isBold }, columnValue);
|
|
141468
141661
|
}
|
|
141469
141662
|
default:
|
|
@@ -142524,11 +142717,11 @@ ${e3.message}`);
|
|
|
142524
142717
|
const mapUserIdToHeader = cloneDeep_default(this.state.mapUserIdToHeader);
|
|
142525
142718
|
const entityIdColumnIndicies = getColumnIndicesWithType(
|
|
142526
142719
|
data,
|
|
142527
|
-
|
|
142720
|
+
ColumnTypeEnum.ENTITYID
|
|
142528
142721
|
);
|
|
142529
142722
|
const userIdColumnIndicies = getColumnIndicesWithType(
|
|
142530
142723
|
data,
|
|
142531
|
-
|
|
142724
|
+
ColumnTypeEnum.USERID
|
|
142532
142725
|
);
|
|
142533
142726
|
const distinctEntityIds = getUniqueEntities(
|
|
142534
142727
|
data,
|
|
@@ -142820,15 +143013,15 @@ ${e3.message}`);
|
|
|
142820
143013
|
}
|
|
142821
143014
|
isSortableColumn(column2) {
|
|
142822
143015
|
switch (column2) {
|
|
142823
|
-
case
|
|
142824
|
-
case
|
|
142825
|
-
case
|
|
142826
|
-
case
|
|
142827
|
-
case
|
|
142828
|
-
case
|
|
142829
|
-
case
|
|
142830
|
-
case
|
|
142831
|
-
case
|
|
143016
|
+
case ColumnTypeEnum.USERID:
|
|
143017
|
+
case ColumnTypeEnum.ENTITYID:
|
|
143018
|
+
case ColumnTypeEnum.FILEHANDLEID:
|
|
143019
|
+
case ColumnTypeEnum.STRING_LIST:
|
|
143020
|
+
case ColumnTypeEnum.INTEGER_LIST:
|
|
143021
|
+
case ColumnTypeEnum.BOOLEAN_LIST:
|
|
143022
|
+
case ColumnTypeEnum.DATE_LIST:
|
|
143023
|
+
case ColumnTypeEnum.USERID_LIST:
|
|
143024
|
+
case ColumnTypeEnum.ENTITYID_LIST:
|
|
142832
143025
|
return false;
|
|
142833
143026
|
default:
|
|
142834
143027
|
return true;
|
|
@@ -142862,7 +143055,7 @@ ${e3.message}`);
|
|
|
142862
143055
|
);
|
|
142863
143056
|
const columnModel = columnModels.find((el) => el.name === column2.name);
|
|
142864
143057
|
const isLockedColumn = column2.name.toLowerCase() === ((_a = lockedColumn == null ? void 0 : lockedColumn.columnName) == null ? void 0 : _a.toLowerCase());
|
|
142865
|
-
const isEntityIDColumn = columnModel && columnModel.name == "id" && columnModel.columnType ==
|
|
143058
|
+
const isEntityIDColumn = columnModel && columnModel.name == "id" && columnModel.columnType == ColumnTypeEnum.ENTITYID;
|
|
142866
143059
|
return /* @__PURE__ */ import_react298.default.createElement("th", { key: column2.name }, /* @__PURE__ */ import_react298.default.createElement("div", { className: "SRC-split" }, /* @__PURE__ */ import_react298.default.createElement("span", { style: { whiteSpace: "nowrap" } }, displayColumnName), /* @__PURE__ */ import_react298.default.createElement("div", { className: "SRC-centerContent" }, isFacetSelection && !isLockedColumn && this.configureFacetDropdown(
|
|
142867
143060
|
facet,
|
|
142868
143061
|
columnModel,
|
|
@@ -143400,7 +143593,7 @@ ${e3.message}`);
|
|
|
143400
143593
|
const fileHandleAssociationList = [
|
|
143401
143594
|
{
|
|
143402
143595
|
associateObjectId: videoKey,
|
|
143403
|
-
associateObjectType:
|
|
143596
|
+
associateObjectType: FileHandleAssociateType.FileEntity,
|
|
143404
143597
|
fileHandleId: data.dataFileHandleId
|
|
143405
143598
|
}
|
|
143406
143599
|
];
|
|
@@ -151776,36 +151969,36 @@ ${e3.message}`);
|
|
|
151776
151969
|
var import_clsx115 = __toESM(require_clsx());
|
|
151777
151970
|
|
|
151778
151971
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/components/icons/index.js
|
|
151779
|
-
var
|
|
151972
|
+
var import_utils269 = __toESM(require_utils4());
|
|
151780
151973
|
var React486 = __toESM(require_react());
|
|
151781
151974
|
var import_jsx_runtime327 = __toESM(require_jsx_runtime());
|
|
151782
151975
|
var import_jsx_runtime328 = __toESM(require_jsx_runtime());
|
|
151783
|
-
var ArrowDropDown = (0,
|
|
151976
|
+
var ArrowDropDown = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151784
151977
|
d: "M7 10l5 5 5-5z"
|
|
151785
151978
|
}), "ArrowDropDown");
|
|
151786
|
-
var ArrowLeft = (0,
|
|
151979
|
+
var ArrowLeft = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151787
151980
|
d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"
|
|
151788
151981
|
}), "ArrowLeft");
|
|
151789
|
-
var ArrowRight = (0,
|
|
151982
|
+
var ArrowRight = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151790
151983
|
d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
|
|
151791
151984
|
}), "ArrowRight");
|
|
151792
|
-
var Calendar = (0,
|
|
151985
|
+
var Calendar = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151793
151986
|
d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"
|
|
151794
151987
|
}), "Calendar");
|
|
151795
|
-
var Clock = (0,
|
|
151988
|
+
var Clock = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(React486.Fragment, {
|
|
151796
151989
|
children: [/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151797
151990
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
151798
151991
|
}), /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151799
151992
|
d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"
|
|
151800
151993
|
})]
|
|
151801
151994
|
}), "Clock");
|
|
151802
|
-
var DateRange = (0,
|
|
151995
|
+
var DateRange = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151803
151996
|
d: "M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"
|
|
151804
151997
|
}), "DateRange");
|
|
151805
|
-
var Pen = (0,
|
|
151998
|
+
var Pen = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151806
151999
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
151807
152000
|
}), "Pen");
|
|
151808
|
-
var Time = (0,
|
|
152001
|
+
var Time = (0, import_utils269.createSvgIcon)(/* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(React486.Fragment, {
|
|
151809
152002
|
children: [/* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
151810
152003
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
151811
152004
|
}), /* @__PURE__ */ (0, import_jsx_runtime327.jsx)("path", {
|
|
@@ -152141,7 +152334,7 @@ ${e3.message}`);
|
|
|
152141
152334
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/components/wrappers/DesktopWrapper.js
|
|
152142
152335
|
init_extends();
|
|
152143
152336
|
var React493 = __toESM(require_react());
|
|
152144
|
-
var
|
|
152337
|
+
var import_utils272 = __toESM(require_utils4());
|
|
152145
152338
|
|
|
152146
152339
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/components/wrappers/WrapperVariantContext.js
|
|
152147
152340
|
var React490 = __toESM(require_react());
|
|
@@ -152150,7 +152343,7 @@ ${e3.message}`);
|
|
|
152150
152343
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js
|
|
152151
152344
|
init_extends();
|
|
152152
152345
|
var React492 = __toESM(require_react());
|
|
152153
|
-
var
|
|
152346
|
+
var import_utils270 = __toESM(require_utils4());
|
|
152154
152347
|
|
|
152155
152348
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js
|
|
152156
152349
|
init_extends();
|
|
@@ -152294,13 +152487,13 @@ ${e3.message}`);
|
|
|
152294
152487
|
activatedRef.current = false;
|
|
152295
152488
|
};
|
|
152296
152489
|
}, [active]);
|
|
152297
|
-
const handleClickAway = (0,
|
|
152490
|
+
const handleClickAway = (0, import_utils270.useEventCallback)((event) => {
|
|
152298
152491
|
if (!activatedRef.current) {
|
|
152299
152492
|
return;
|
|
152300
152493
|
}
|
|
152301
152494
|
const insideReactTree = syntheticEventRef.current;
|
|
152302
152495
|
syntheticEventRef.current = false;
|
|
152303
|
-
const doc2 = (0,
|
|
152496
|
+
const doc2 = (0, import_utils270.ownerDocument)(nodeRef.current);
|
|
152304
152497
|
if (!nodeRef.current || // is a TouchEvent?
|
|
152305
152498
|
"clientX" in event && clickedRootScrollbar(event, doc2)) {
|
|
152306
152499
|
return;
|
|
@@ -152324,7 +152517,7 @@ ${e3.message}`);
|
|
|
152324
152517
|
};
|
|
152325
152518
|
React492.useEffect(() => {
|
|
152326
152519
|
if (active) {
|
|
152327
|
-
const doc2 = (0,
|
|
152520
|
+
const doc2 = (0, import_utils270.ownerDocument)(nodeRef.current);
|
|
152328
152521
|
const handleTouchMove = () => {
|
|
152329
152522
|
movedRef.current = true;
|
|
152330
152523
|
};
|
|
@@ -152339,7 +152532,7 @@ ${e3.message}`);
|
|
|
152339
152532
|
}, [active, handleClickAway]);
|
|
152340
152533
|
React492.useEffect(() => {
|
|
152341
152534
|
if (active) {
|
|
152342
|
-
const doc2 = (0,
|
|
152535
|
+
const doc2 = (0, import_utils270.ownerDocument)(nodeRef.current);
|
|
152343
152536
|
doc2.addEventListener("click", handleClickAway);
|
|
152344
152537
|
return () => {
|
|
152345
152538
|
doc2.removeEventListener("click", handleClickAway);
|
|
@@ -152403,8 +152596,8 @@ ${e3.message}`);
|
|
|
152403
152596
|
}, [open, role]);
|
|
152404
152597
|
const [clickAwayRef, onPaperClick, onPaperTouchStart] = useClickAwayListener(open, onBlur != null ? onBlur : onClose);
|
|
152405
152598
|
const paperRef = React492.useRef(null);
|
|
152406
|
-
const handleRef = (0,
|
|
152407
|
-
const handlePaperRef = (0,
|
|
152599
|
+
const handleRef = (0, import_utils270.useForkRef)(paperRef, containerRef);
|
|
152600
|
+
const handlePaperRef = (0, import_utils270.useForkRef)(handleRef, clickAwayRef);
|
|
152408
152601
|
const ownerState = props;
|
|
152409
152602
|
const classes = useUtilityClasses117(ownerState);
|
|
152410
152603
|
const {
|
|
@@ -152495,7 +152688,7 @@ ${e3.message}`);
|
|
|
152495
152688
|
componentsProps
|
|
152496
152689
|
} = props;
|
|
152497
152690
|
const ownInputRef = React493.useRef(null);
|
|
152498
|
-
const inputRef = (0,
|
|
152691
|
+
const inputRef = (0, import_utils272.useForkRef)(DateInputProps.inputRef, ownInputRef);
|
|
152499
152692
|
return /* @__PURE__ */ (0, import_jsx_runtime338.jsxs)(WrapperVariantContext.Provider, {
|
|
152500
152693
|
value: "desktop",
|
|
152501
152694
|
children: [/* @__PURE__ */ (0, import_jsx_runtime337.jsx)(KeyboardDateInputComponent, _extends({}, DateInputProps, {
|
|
@@ -152525,7 +152718,7 @@ ${e3.message}`);
|
|
|
152525
152718
|
|
|
152526
152719
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/hooks/useViews.js
|
|
152527
152720
|
var React494 = __toESM(require_react());
|
|
152528
|
-
var
|
|
152721
|
+
var import_utils273 = __toESM(require_utils4());
|
|
152529
152722
|
function useViews({
|
|
152530
152723
|
onChange: onChange2,
|
|
152531
152724
|
onViewChange,
|
|
@@ -152534,7 +152727,7 @@ ${e3.message}`);
|
|
|
152534
152727
|
views
|
|
152535
152728
|
}) {
|
|
152536
152729
|
var _views, _views2;
|
|
152537
|
-
const [openView, setOpenView] = (0,
|
|
152730
|
+
const [openView, setOpenView] = (0, import_utils273.useControlled)({
|
|
152538
152731
|
name: "Picker",
|
|
152539
152732
|
state: "view",
|
|
152540
152733
|
controlled: view,
|
|
@@ -152576,13 +152769,13 @@ ${e3.message}`);
|
|
|
152576
152769
|
var React501 = __toESM(require_react());
|
|
152577
152770
|
var import_clsx121 = __toESM(require_clsx());
|
|
152578
152771
|
var import_prop_types157 = __toESM(require_prop_types());
|
|
152579
|
-
var
|
|
152772
|
+
var import_utils276 = __toESM(require_utils4());
|
|
152580
152773
|
|
|
152581
152774
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/ClockPicker/Clock.js
|
|
152582
152775
|
init_extends();
|
|
152583
152776
|
var React496 = __toESM(require_react());
|
|
152584
152777
|
var import_clsx118 = __toESM(require_clsx());
|
|
152585
|
-
var
|
|
152778
|
+
var import_utils275 = __toESM(require_utils());
|
|
152586
152779
|
|
|
152587
152780
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/ClockPicker/ClockPointer.js
|
|
152588
152781
|
init_extends();
|
|
@@ -152763,7 +152956,7 @@ ${e3.message}`);
|
|
|
152763
152956
|
amButton: ["amButton"],
|
|
152764
152957
|
pmButton: ["pmButton"]
|
|
152765
152958
|
};
|
|
152766
|
-
return (0,
|
|
152959
|
+
return (0, import_utils275.unstable_composeClasses)(slots, getClockUtilityClass, classes);
|
|
152767
152960
|
};
|
|
152768
152961
|
var ClockRoot = styled_default("div", {
|
|
152769
152962
|
name: "MuiClock",
|
|
@@ -152959,7 +153152,7 @@ ${e3.message}`);
|
|
|
152959
153152
|
}, [type, value]);
|
|
152960
153153
|
const keyboardControlStep = type === "minutes" ? minutesStep : 1;
|
|
152961
153154
|
const listboxRef = React496.useRef(null);
|
|
152962
|
-
(0,
|
|
153155
|
+
(0, import_utils275.unstable_useEnhancedEffect)(() => {
|
|
152963
153156
|
if (autoFocus) {
|
|
152964
153157
|
listboxRef.current.focus();
|
|
152965
153158
|
}
|
|
@@ -153591,7 +153784,7 @@ ${e3.message}`);
|
|
|
153591
153784
|
throw new Error("not supported");
|
|
153592
153785
|
}
|
|
153593
153786
|
}, [ampm, dateOrMidnight, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils]);
|
|
153594
|
-
const selectedId = (0,
|
|
153787
|
+
const selectedId = (0, import_utils276.unstable_useId)();
|
|
153595
153788
|
const viewProps = React501.useMemo(() => {
|
|
153596
153789
|
switch (openView) {
|
|
153597
153790
|
case "hours": {
|
|
@@ -153848,7 +154041,7 @@ ${e3.message}`);
|
|
|
153848
154041
|
var React514 = __toESM(require_react());
|
|
153849
154042
|
var import_prop_types161 = __toESM(require_prop_types());
|
|
153850
154043
|
var import_clsx129 = __toESM(require_clsx());
|
|
153851
|
-
var
|
|
154044
|
+
var import_utils284 = __toESM(require_utils4());
|
|
153852
154045
|
|
|
153853
154046
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/MonthPicker/MonthPicker.js
|
|
153854
154047
|
init_extends();
|
|
@@ -153860,7 +154053,7 @@ ${e3.message}`);
|
|
|
153860
154053
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/MonthPicker/PickersMonth.js
|
|
153861
154054
|
init_extends();
|
|
153862
154055
|
var React502 = __toESM(require_react());
|
|
153863
|
-
var
|
|
154056
|
+
var import_utils277 = __toESM(require_utils4());
|
|
153864
154057
|
|
|
153865
154058
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/MonthPicker/pickersMonthClasses.js
|
|
153866
154059
|
function getPickersMonthUtilityClass(slot) {
|
|
@@ -153940,7 +154133,7 @@ ${e3.message}`);
|
|
|
153940
154133
|
onSelect(value);
|
|
153941
154134
|
};
|
|
153942
154135
|
const ref = React502.useRef(null);
|
|
153943
|
-
(0,
|
|
154136
|
+
(0, import_utils277.unstable_useEnhancedEffect)(() => {
|
|
153944
154137
|
if (hasFocus) {
|
|
153945
154138
|
var _ref$current;
|
|
153946
154139
|
(_ref$current = ref.current) == null ? void 0 : _ref$current.focus();
|
|
@@ -154463,8 +154656,8 @@ ${e3.message}`);
|
|
|
154463
154656
|
var React508 = __toESM(require_react());
|
|
154464
154657
|
var import_prop_types159 = __toESM(require_prop_types());
|
|
154465
154658
|
var import_clsx124 = __toESM(require_clsx());
|
|
154466
|
-
var
|
|
154467
|
-
var
|
|
154659
|
+
var import_utils279 = __toESM(require_utils());
|
|
154660
|
+
var import_utils280 = __toESM(require_utils4());
|
|
154468
154661
|
|
|
154469
154662
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js
|
|
154470
154663
|
function getPickersDayUtilityClass(slot) {
|
|
@@ -154602,8 +154795,8 @@ ${e3.message}`);
|
|
|
154602
154795
|
const classes = useUtilityClasses126(ownerState);
|
|
154603
154796
|
const utils = useUtils();
|
|
154604
154797
|
const ref = React508.useRef(null);
|
|
154605
|
-
const handleRef = (0,
|
|
154606
|
-
(0,
|
|
154798
|
+
const handleRef = (0, import_utils280.useForkRef)(ref, forwardedRef);
|
|
154799
|
+
(0, import_utils279.unstable_useEnhancedEffect)(() => {
|
|
154607
154800
|
if (autoFocus && !disabled && !isAnimating && !outsideCurrentMonth) {
|
|
154608
154801
|
ref.current.focus();
|
|
154609
154802
|
}
|
|
@@ -155345,14 +155538,14 @@ ${e3.message}`);
|
|
|
155345
155538
|
var React513 = __toESM(require_react());
|
|
155346
155539
|
var import_prop_types160 = __toESM(require_prop_types());
|
|
155347
155540
|
var import_clsx128 = __toESM(require_clsx());
|
|
155348
|
-
var
|
|
155349
|
-
var
|
|
155541
|
+
var import_utils282 = __toESM(require_utils4());
|
|
155542
|
+
var import_utils283 = __toESM(require_utils());
|
|
155350
155543
|
|
|
155351
155544
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/YearPicker/PickersYear.js
|
|
155352
155545
|
init_extends();
|
|
155353
155546
|
var React512 = __toESM(require_react());
|
|
155354
155547
|
var import_clsx127 = __toESM(require_clsx());
|
|
155355
|
-
var
|
|
155548
|
+
var import_utils281 = __toESM(require_utils4());
|
|
155356
155549
|
|
|
155357
155550
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/YearPicker/pickersYearClasses.js
|
|
155358
155551
|
function getPickersYearUtilityClass(slot) {
|
|
@@ -155371,7 +155564,7 @@ ${e3.message}`);
|
|
|
155371
155564
|
classes
|
|
155372
155565
|
} = ownerState;
|
|
155373
155566
|
const slots = {
|
|
155374
|
-
root: ["root", wrapperVariant && `mode${(0,
|
|
155567
|
+
root: ["root", wrapperVariant && `mode${(0, import_utils281.capitalize)(wrapperVariant)}`],
|
|
155375
155568
|
yearButton: ["yearButton", disabled && "disabled", selected && "selected"]
|
|
155376
155569
|
};
|
|
155377
155570
|
return (0, import_composeClasses3.default)(slots, getPickersYearUtilityClass, classes);
|
|
@@ -155445,7 +155638,7 @@ ${e3.message}`);
|
|
|
155445
155638
|
onBlur = noop10
|
|
155446
155639
|
} = props, other = _objectWithoutPropertiesLoose(props, _excluded166);
|
|
155447
155640
|
const ref = React512.useRef(null);
|
|
155448
|
-
const refHandle = (0,
|
|
155641
|
+
const refHandle = (0, import_utils281.useForkRef)(ref, forwardedRef);
|
|
155449
155642
|
const wrapperVariant = React512.useContext(WrapperVariantContext);
|
|
155450
155643
|
const ownerState = _extends({}, props, {
|
|
155451
155644
|
wrapperVariant
|
|
@@ -155558,7 +155751,7 @@ ${e3.message}`);
|
|
|
155558
155751
|
const wrapperVariant = React513.useContext(WrapperVariantContext);
|
|
155559
155752
|
const selectedYearRef = React513.useRef(null);
|
|
155560
155753
|
const [focusedYear, setFocusedYear] = React513.useState(() => currentYear || utils.getYear(now3));
|
|
155561
|
-
const [internalHasFocus, setInternalHasFocus] = (0,
|
|
155754
|
+
const [internalHasFocus, setInternalHasFocus] = (0, import_utils283.unstable_useControlled)({
|
|
155562
155755
|
name: "YearPicker",
|
|
155563
155756
|
state: "hasFocus",
|
|
155564
155757
|
controlled: hasFocus,
|
|
@@ -155638,7 +155831,7 @@ ${e3.message}`);
|
|
|
155638
155831
|
}, [focusedYear, changeHasFocus]);
|
|
155639
155832
|
const nowYear = utils.getYear(now3);
|
|
155640
155833
|
const scrollerRef = React513.useRef(null);
|
|
155641
|
-
const handleRef = (0,
|
|
155834
|
+
const handleRef = (0, import_utils282.useForkRef)(ref, scrollerRef);
|
|
155642
155835
|
React513.useEffect(() => {
|
|
155643
155836
|
if (autoFocus || scrollerRef.current === null) {
|
|
155644
155837
|
return;
|
|
@@ -155788,7 +155981,7 @@ ${e3.message}`);
|
|
|
155788
155981
|
})({});
|
|
155789
155982
|
var CalendarPicker = /* @__PURE__ */ React514.forwardRef(function CalendarPicker2(inProps, ref) {
|
|
155790
155983
|
const utils = useUtils();
|
|
155791
|
-
const id2 = (0,
|
|
155984
|
+
const id2 = (0, import_utils284.unstable_useId)();
|
|
155792
155985
|
const props = useCalendarPickerDefaultizedProps(inProps, "MuiCalendarPicker");
|
|
155793
155986
|
const {
|
|
155794
155987
|
autoFocus,
|
|
@@ -155914,14 +156107,14 @@ ${e3.message}`);
|
|
|
155914
156107
|
disabled
|
|
155915
156108
|
};
|
|
155916
156109
|
const gridLabelId = `${id2}-grid-label`;
|
|
155917
|
-
const [internalFocusedView, setInternalFocusedView] = (0,
|
|
156110
|
+
const [internalFocusedView, setInternalFocusedView] = (0, import_utils284.useControlled)({
|
|
155918
156111
|
name: "DayPicker",
|
|
155919
156112
|
state: "focusedView",
|
|
155920
156113
|
controlled: focusedView,
|
|
155921
156114
|
default: autoFocus ? openView : null
|
|
155922
156115
|
});
|
|
155923
156116
|
const hasFocus = internalFocusedView !== null;
|
|
155924
|
-
const handleFocusedViewChange = (0,
|
|
156117
|
+
const handleFocusedViewChange = (0, import_utils284.useEventCallback)((eventView) => (newHasFocus) => {
|
|
155925
156118
|
if (onFocusedViewChange) {
|
|
155926
156119
|
onFocusedViewChange(eventView)(newHasFocus);
|
|
155927
156120
|
return;
|
|
@@ -156537,7 +156730,7 @@ ${e3.message}`);
|
|
|
156537
156730
|
|
|
156538
156731
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js
|
|
156539
156732
|
var React517 = __toESM(require_react());
|
|
156540
|
-
var
|
|
156733
|
+
var import_utils285 = __toESM(require_utils());
|
|
156541
156734
|
function getOrientation2() {
|
|
156542
156735
|
if (typeof window === "undefined") {
|
|
156543
156736
|
return "portrait";
|
|
@@ -156552,7 +156745,7 @@ ${e3.message}`);
|
|
|
156552
156745
|
}
|
|
156553
156746
|
var useIsLandscape = (views, customOrientation) => {
|
|
156554
156747
|
const [orientation, setOrientation] = React517.useState(getOrientation2);
|
|
156555
|
-
(0,
|
|
156748
|
+
(0, import_utils285.unstable_useEnhancedEffect)(() => {
|
|
156556
156749
|
const eventHandler = () => {
|
|
156557
156750
|
setOrientation(getOrientation2());
|
|
156558
156751
|
};
|
|
@@ -157715,7 +157908,7 @@ ${e3.message}`);
|
|
|
157715
157908
|
// ../../node_modules/.pnpm/@mui+x-date-pickers@5.0.20_@emotion+react@11.10.6_@emotion+styled@11.10.6_@mui+material@5.11._r4bur2rmcrov43c5haocdz6eey/node_modules/@mui/x-date-pickers/internals/components/PureDateInput.js
|
|
157716
157909
|
init_extends();
|
|
157717
157910
|
var React526 = __toESM(require_react());
|
|
157718
|
-
var
|
|
157911
|
+
var import_utils287 = __toESM(require_utils4());
|
|
157719
157912
|
var PureDateInput = /* @__PURE__ */ React526.forwardRef(function PureDateInput2(props, ref) {
|
|
157720
157913
|
const {
|
|
157721
157914
|
disabled,
|
|
@@ -157738,7 +157931,7 @@ ${e3.message}`);
|
|
|
157738
157931
|
readOnly: true
|
|
157739
157932
|
}), [InputProps]);
|
|
157740
157933
|
const inputValue = getDisplayDate(utils, rawValue, inputFormat);
|
|
157741
|
-
const handleOnClick = (0,
|
|
157934
|
+
const handleOnClick = (0, import_utils287.useEventCallback)((event) => {
|
|
157742
157935
|
event.stopPropagation();
|
|
157743
157936
|
onOpen();
|
|
157744
157937
|
});
|
|
@@ -159642,7 +159835,7 @@ ${e3.message}`);
|
|
|
159642
159835
|
}
|
|
159643
159836
|
function getDataFileHandle(entityBundle) {
|
|
159644
159837
|
let dataFileHandle = void 0;
|
|
159645
|
-
if (entityBundle.entityType ===
|
|
159838
|
+
if (entityBundle.entityType === EntityType.FILE) {
|
|
159646
159839
|
dataFileHandle = entityBundle.fileHandles.filter(
|
|
159647
159840
|
(fh) => fh.id === entityBundle.entity.dataFileHandleId
|
|
159648
159841
|
)[0];
|
|
@@ -159658,7 +159851,7 @@ ${e3.message}`);
|
|
|
159658
159851
|
break;
|
|
159659
159852
|
case "org.sagebionetworks.repo.model.file.ExternalUploadDestination":
|
|
159660
159853
|
uploadDestinationString = uploadDestination.url;
|
|
159661
|
-
if (uploadDestination.uploadType ===
|
|
159854
|
+
if (uploadDestination.uploadType === UploadType.SFTP) {
|
|
159662
159855
|
const indexOfLastSlash = uploadDestinationString.lastIndexOf("/");
|
|
159663
159856
|
if (indexOfLastSlash) {
|
|
159664
159857
|
uploadDestinationString = uploadDestinationString.substring(
|
|
@@ -160028,7 +160221,7 @@ ${e3.message}`);
|
|
|
160028
160221
|
"data-testid": "discussion-icon"
|
|
160029
160222
|
}
|
|
160030
160223
|
)
|
|
160031
|
-
), showUnlink && bundle.entityType ===
|
|
160224
|
+
), showUnlink && bundle.entityType === EntityType.LINK && ((_c = bundle.permissions) == null ? void 0 : _c.canDelete) && /* @__PURE__ */ import_react364.default.createElement(import_react364.default.Fragment, null, /* @__PURE__ */ import_react364.default.createElement(
|
|
160032
160225
|
WarningDialog_default,
|
|
160033
160226
|
{
|
|
160034
160227
|
open: showUnlinkConfirmModal,
|
|
@@ -160268,7 +160461,7 @@ ${e3.message}`);
|
|
|
160268
160461
|
let versionDisplay = "Latest";
|
|
160269
160462
|
let snapshotDisplay = "";
|
|
160270
160463
|
if (isTableType(entityType)) {
|
|
160271
|
-
if (entityType ===
|
|
160464
|
+
if (entityType === EntityType.DATASET) {
|
|
160272
160465
|
versionDisplay = "Draft";
|
|
160273
160466
|
snapshotDisplay = "Stable Version";
|
|
160274
160467
|
} else {
|
|
@@ -160680,7 +160873,7 @@ ${e3.message}`);
|
|
|
160680
160873
|
if (sort2 && setSort) {
|
|
160681
160874
|
setSort(
|
|
160682
160875
|
key,
|
|
160683
|
-
order === "asc" ?
|
|
160876
|
+
order === "asc" ? Direction.ASC : Direction.DESC
|
|
160684
160877
|
);
|
|
160685
160878
|
}
|
|
160686
160879
|
},
|
|
@@ -160743,7 +160936,7 @@ ${e3.message}`);
|
|
|
160743
160936
|
/* @__PURE__ */ import_react367.default.createElement(
|
|
160744
160937
|
Column_default,
|
|
160745
160938
|
{
|
|
160746
|
-
key:
|
|
160939
|
+
key: SortBy.NAME,
|
|
160747
160940
|
title: "Name",
|
|
160748
160941
|
width: 800,
|
|
160749
160942
|
sortable: sort2 != null,
|
|
@@ -160792,7 +160985,7 @@ ${e3.message}`);
|
|
|
160792
160985
|
/* @__PURE__ */ import_react367.default.createElement(
|
|
160793
160986
|
Column_default,
|
|
160794
160987
|
{
|
|
160795
|
-
key:
|
|
160988
|
+
key: SortBy.CREATED_ON,
|
|
160796
160989
|
sortable: sort2 != null,
|
|
160797
160990
|
title: "Created On",
|
|
160798
160991
|
width: 220,
|
|
@@ -160803,7 +160996,7 @@ ${e3.message}`);
|
|
|
160803
160996
|
/* @__PURE__ */ import_react367.default.createElement(
|
|
160804
160997
|
Column_default,
|
|
160805
160998
|
{
|
|
160806
|
-
key:
|
|
160999
|
+
key: SortBy.MODIFIED_ON,
|
|
160807
161000
|
title: "Modified On",
|
|
160808
161001
|
width: 220,
|
|
160809
161002
|
minWidth: 170,
|
|
@@ -160828,8 +161021,8 @@ ${e3.message}`);
|
|
|
160828
161021
|
var EntityChildrenDetails = (_a) => {
|
|
160829
161022
|
var _b = _a, { parentContainerId } = _b, sharedProps = __objRest(_b, ["parentContainerId"]);
|
|
160830
161023
|
var _a2;
|
|
160831
|
-
const [sortBy3, setSortBy] = (0, import_react368.useState)(
|
|
160832
|
-
const [sortDirection, setSortDirection] = (0, import_react368.useState)(
|
|
161024
|
+
const [sortBy3, setSortBy] = (0, import_react368.useState)(SortBy.NAME);
|
|
161025
|
+
const [sortDirection, setSortDirection] = (0, import_react368.useState)(Direction.ASC);
|
|
160833
161026
|
const getChildrenInfiniteRequestObject = {
|
|
160834
161027
|
parentId: parentContainerId,
|
|
160835
161028
|
includeTotalChildCount: true,
|
|
@@ -161910,7 +162103,7 @@ ${e3.message}`);
|
|
|
161910
162103
|
initialContainer = null,
|
|
161911
162104
|
currentContainer,
|
|
161912
162105
|
setCurrentContainer,
|
|
161913
|
-
visibleTypes = [
|
|
162106
|
+
visibleTypes = [EntityType.PROJECT, EntityType.FOLDER],
|
|
161914
162107
|
toggleSelection,
|
|
161915
162108
|
selectedEntities,
|
|
161916
162109
|
setDetailsViewConfiguration,
|
|
@@ -166755,7 +166948,7 @@ ${e3.message}`);
|
|
|
166755
166948
|
// src/components/EntityFinder/EntityFinder.tsx
|
|
166756
166949
|
var DEFAULT_SELECTABLE_TYPES = Object.values(EntityType);
|
|
166757
166950
|
var TABLE_DEFAULT_VISIBLE_TYPES = Object.values(EntityType);
|
|
166758
|
-
var TREE_DEFAULT_VISIBLE_TYPES = [
|
|
166951
|
+
var TREE_DEFAULT_VISIBLE_TYPES = [EntityType.PROJECT, EntityType.FOLDER];
|
|
166759
166952
|
var NO_VERSION_NUMBER = -1;
|
|
166760
166953
|
var searchForOnlyTypesBooleanQuery = (entityTypes) => {
|
|
166761
166954
|
const allTypes = Object.values(EntityType);
|
|
@@ -167266,7 +167459,7 @@ ${e3.message}`);
|
|
|
167266
167459
|
initialScope: "All Projects" /* ALL_PROJECTS */,
|
|
167267
167460
|
initialContainer: null,
|
|
167268
167461
|
selectMultiple: false,
|
|
167269
|
-
selectableTypes: [
|
|
167462
|
+
selectableTypes: [EntityType.PROJECT]
|
|
167270
167463
|
},
|
|
167271
167464
|
show: showEntityFinder,
|
|
167272
167465
|
onCancel: () => {
|
|
@@ -167357,7 +167550,7 @@ ${e3.message}`);
|
|
|
167357
167550
|
accessorId,
|
|
167358
167551
|
reviewerId,
|
|
167359
167552
|
showRequesters: true,
|
|
167360
|
-
submissionState:
|
|
167553
|
+
submissionState: SubmissionState.SUBMITTED
|
|
167361
167554
|
});
|
|
167362
167555
|
const location = (0, import_react_router_dom6.useLocation)();
|
|
167363
167556
|
const history = (0, import_react_router_dom6.useHistory)();
|
|
@@ -167412,7 +167605,7 @@ ${e3.message}`);
|
|
|
167412
167605
|
accessorId,
|
|
167413
167606
|
reviewerId,
|
|
167414
167607
|
showRequesters: true,
|
|
167415
|
-
submissionState:
|
|
167608
|
+
submissionState: SubmissionState.SUBMITTED
|
|
167416
167609
|
});
|
|
167417
167610
|
},
|
|
167418
167611
|
[accessRequirementId, accessorId, reviewerId, history, location.pathname],
|
|
@@ -167448,7 +167641,7 @@ ${e3.message}`);
|
|
|
167448
167641
|
placeholder: "Search for a user name",
|
|
167449
167642
|
defaultValue: accessorId,
|
|
167450
167643
|
onChange: onRequesterChange,
|
|
167451
|
-
typeFilter:
|
|
167644
|
+
typeFilter: TYPE_FILTER.USERS_ONLY
|
|
167452
167645
|
}
|
|
167453
167646
|
)), /* @__PURE__ */ import_react384.default.createElement("div", null, /* @__PURE__ */ import_react384.default.createElement(
|
|
167454
167647
|
Typography_default,
|
|
@@ -167643,7 +167836,7 @@ ${e3.message}`);
|
|
|
167643
167836
|
mutate(
|
|
167644
167837
|
{
|
|
167645
167838
|
submissionId: submissionId.toString(),
|
|
167646
|
-
newState:
|
|
167839
|
+
newState: SubmissionState.REJECTED,
|
|
167647
167840
|
rejectedReason: reason
|
|
167648
167841
|
},
|
|
167649
167842
|
{
|
|
@@ -167701,7 +167894,7 @@ ${e3.message}`);
|
|
|
167701
167894
|
() => ({
|
|
167702
167895
|
fileHandleId,
|
|
167703
167896
|
associateObjectId: submissionId,
|
|
167704
|
-
associateObjectType:
|
|
167897
|
+
associateObjectType: FileHandleAssociateType.DataAccessSubmissionAttachment
|
|
167705
167898
|
}),
|
|
167706
167899
|
[fileHandleId, submissionId]
|
|
167707
167900
|
);
|
|
@@ -167767,7 +167960,7 @@ ${e3.message}`);
|
|
|
167767
167960
|
var _a2;
|
|
167768
167961
|
return mutateAsync({
|
|
167769
167962
|
submissionId: (_a2 = submission == null ? void 0 : submission.id) != null ? _a2 : "",
|
|
167770
|
-
newState:
|
|
167963
|
+
newState: SubmissionState.APPROVED
|
|
167771
167964
|
});
|
|
167772
167965
|
}
|
|
167773
167966
|
return /* @__PURE__ */ import_react386.default.createElement("div", { className: "SubmissionPage" }, /* @__PURE__ */ import_react386.default.createElement(
|
|
@@ -168081,7 +168274,7 @@ filepath = ${entityId}.path`;
|
|
|
168081
168274
|
role: "button",
|
|
168082
168275
|
style: { height: "20px" },
|
|
168083
168276
|
active: (sort2 == null ? void 0 : sort2.field) === columnSortBy,
|
|
168084
|
-
direction: (sort2 == null ? void 0 : sort2.field) === columnSortBy ? sort2.direction === "DESC" ?
|
|
168277
|
+
direction: (sort2 == null ? void 0 : sort2.field) === columnSortBy ? sort2.direction === "DESC" ? Direction.DESC : Direction.ASC : Direction.DESC,
|
|
168085
168278
|
onClick: () => {
|
|
168086
168279
|
const direction = columnSortBy === (sort2 == null ? void 0 : sort2.field) ? sort2.direction === "ASC" ? "DESC" : "ASC" : "DESC";
|
|
168087
168280
|
setSort({
|
|
@@ -168167,7 +168360,7 @@ filepath = ${entityId}.path`;
|
|
|
168167
168360
|
DirectDownload_default,
|
|
168168
168361
|
{
|
|
168169
168362
|
associatedObjectId: item.fileEntityId,
|
|
168170
|
-
associatedObjectType:
|
|
168363
|
+
associatedObjectType: FileHandleAssociateType.FileEntity,
|
|
168171
168364
|
entityVersionNumber: item.versionNumber.toString(),
|
|
168172
168365
|
displayFileName: false,
|
|
168173
168366
|
onClickCallback: (isExternalLink) => {
|
|
@@ -169760,7 +169953,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
169760
169953
|
role: "button",
|
|
169761
169954
|
style: { height: "20px" },
|
|
169762
169955
|
active: (sort2 == null ? void 0 : sort2.field) === columnSortBy,
|
|
169763
|
-
direction: (sort2 == null ? void 0 : sort2.field) === columnSortBy ? sort2.direction === "DESC" ?
|
|
169956
|
+
direction: (sort2 == null ? void 0 : sort2.field) === columnSortBy ? sort2.direction === "DESC" ? Direction.DESC : Direction.ASC : Direction.DESC,
|
|
169764
169957
|
onClick: () => {
|
|
169765
169958
|
const direction = columnSortBy === (sort2 == null ? void 0 : sort2.field) ? sort2.direction === "ASC" ? "DESC" : "ASC" : "DESC";
|
|
169766
169959
|
setSort({
|
|
@@ -171954,11 +172147,11 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
171954
172147
|
const numberOfFilesInDownloadList = downloadListStatistics == null ? void 0 : downloadListStatistics.totalNumberOfFiles;
|
|
171955
172148
|
const { data: openSubmissionData } = useSearchAccessSubmissionsInfinite(
|
|
171956
172149
|
{
|
|
171957
|
-
submissionState:
|
|
172150
|
+
submissionState: SubmissionState.SUBMITTED,
|
|
171958
172151
|
sort: [
|
|
171959
172152
|
{
|
|
171960
|
-
field:
|
|
171961
|
-
direction:
|
|
172153
|
+
field: SubmissionSortField.CREATED_ON,
|
|
172154
|
+
direction: Direction.DESC
|
|
171962
172155
|
}
|
|
171963
172156
|
]
|
|
171964
172157
|
},
|
|
@@ -172308,9 +172501,9 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
172308
172501
|
var import_react439 = __toESM(require_react());
|
|
172309
172502
|
function getSelectableTypes(entity) {
|
|
172310
172503
|
if (isDataset(entity)) {
|
|
172311
|
-
return [
|
|
172504
|
+
return [EntityType.FILE];
|
|
172312
172505
|
} else if (isDatasetCollection(entity)) {
|
|
172313
|
-
return [
|
|
172506
|
+
return [EntityType.DATASET];
|
|
172314
172507
|
} else {
|
|
172315
172508
|
console.error(
|
|
172316
172509
|
"Cannot determine selectable types for entity type: " + entity.concreteType
|
|
@@ -172323,10 +172516,10 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
172323
172516
|
let itemName = "Item";
|
|
172324
172517
|
let currentVersionName = "Current Version";
|
|
172325
172518
|
if (entity && isDataset(entity)) {
|
|
172326
|
-
itemName = entityTypeToFriendlyName(
|
|
172519
|
+
itemName = entityTypeToFriendlyName(EntityType.FILE);
|
|
172327
172520
|
currentVersionName = "Draft";
|
|
172328
172521
|
} else if (entity && isDatasetCollection(entity)) {
|
|
172329
|
-
itemName = entityTypeToFriendlyName(
|
|
172522
|
+
itemName = entityTypeToFriendlyName(EntityType.DATASET);
|
|
172330
172523
|
}
|
|
172331
172524
|
const entityFinderPopover = entity && isDataset(entity) ? `Use the left pane to browse projects and folders. Select ${(0, import_pluralize4.default)(
|
|
172332
172525
|
itemName
|
|
@@ -174988,7 +175181,7 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
174988
175181
|
const isLoading = isLoadingBundle || isLoadingIsACT;
|
|
174989
175182
|
const isRestrictableEntityType = (entityBundle == null ? void 0 : entityBundle.entity) && !isEntityView(entityBundle.entity) && !isEntityRefCollectionView(entityBundle.entity);
|
|
174990
175183
|
const hasAdministrativeAccess = entityBundle == null ? void 0 : entityBundle.permissions.canChangePermissions;
|
|
174991
|
-
const hasNoExistingRestrictions = ((_a = entityBundle == null ? void 0 : entityBundle.restrictionInformation) == null ? void 0 : _a.restrictionLevel) ===
|
|
175184
|
+
const hasNoExistingRestrictions = ((_a = entityBundle == null ? void 0 : entityBundle.restrictionInformation) == null ? void 0 : _a.restrictionLevel) === RestrictionLevel.OPEN;
|
|
174992
175185
|
const showButton = !isLoading && hasNoExistingRestrictions && isRestrictableEntityType && (hasAdministrativeAccess || isActMember);
|
|
174993
175186
|
return /* @__PURE__ */ import_react465.default.createElement(import_react465.default.Fragment, null, /* @__PURE__ */ import_react465.default.createElement(
|
|
174994
175187
|
ImposeRestrictionDialog,
|
|
@@ -175863,8 +176056,8 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
175863
176056
|
const subscriptionRequest = {
|
|
175864
176057
|
objectType,
|
|
175865
176058
|
idList: [objectId],
|
|
175866
|
-
sortByType:
|
|
175867
|
-
sortDirection:
|
|
176059
|
+
sortByType: SortByType.OBJECT_ID,
|
|
176060
|
+
sortDirection: Direction.ASC
|
|
175868
176061
|
};
|
|
175869
176062
|
const subscriptionList = yield synapse_client_default.postSubscriptionList(
|
|
175870
176063
|
accessToken,
|
|
@@ -176065,7 +176258,7 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
176065
176258
|
});
|
|
176066
176259
|
const { isSubscribed, isLoading, toggleSubscribed } = useSubscription(
|
|
176067
176260
|
subscription.objectId,
|
|
176068
|
-
|
|
176261
|
+
SubscriptionObjectType.FORUM
|
|
176069
176262
|
);
|
|
176070
176263
|
let href;
|
|
176071
176264
|
if (forum) {
|
|
@@ -176187,7 +176380,7 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
176187
176380
|
const { threadData } = useGetThread(subscription.objectId);
|
|
176188
176381
|
const { isSubscribed, isLoading, toggleSubscribed } = useSubscription(
|
|
176189
176382
|
subscription.objectId,
|
|
176190
|
-
|
|
176383
|
+
SubscriptionObjectType.THREAD
|
|
176191
176384
|
);
|
|
176192
176385
|
let href;
|
|
176193
176386
|
if (threadData) {
|
|
@@ -176210,9 +176403,9 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
176210
176403
|
function SubscriptionItem2(props) {
|
|
176211
176404
|
const { subscription } = props;
|
|
176212
176405
|
switch (subscription.objectType) {
|
|
176213
|
-
case
|
|
176406
|
+
case SubscriptionObjectType.FORUM:
|
|
176214
176407
|
return /* @__PURE__ */ import_react483.default.createElement(ForumTopic, { subscription });
|
|
176215
|
-
case
|
|
176408
|
+
case SubscriptionObjectType.THREAD:
|
|
176216
176409
|
return /* @__PURE__ */ import_react483.default.createElement(SubscriptionItem, { subscription });
|
|
176217
176410
|
default:
|
|
176218
176411
|
console.warn(
|
|
@@ -176322,13 +176515,13 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
176322
176515
|
];
|
|
176323
176516
|
function SubscriptionPage() {
|
|
176324
176517
|
const [objectType, setObjectType] = (0, import_react485.useState)(
|
|
176325
|
-
|
|
176518
|
+
SubscriptionObjectType.FORUM
|
|
176326
176519
|
);
|
|
176327
176520
|
const [sortDirection, setSortDirection] = (0, import_react485.useState)(sortOptions[0]);
|
|
176328
176521
|
const instanceSpecificQueryKey = (0, import_react485.useId)();
|
|
176329
176522
|
const currentFilter = {
|
|
176330
176523
|
objectType,
|
|
176331
|
-
sortBy:
|
|
176524
|
+
sortBy: SortByType.CREATED_ON,
|
|
176332
176525
|
sortDirection: sortDirection.value
|
|
176333
176526
|
};
|
|
176334
176527
|
const { data, hasNextPage: hasNextPage2, isFetchingNextPage, fetchNextPage } = useGetAllSubscriptions(
|
|
@@ -176360,8 +176553,8 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
176360
176553
|
textColor: "secondary",
|
|
176361
176554
|
indicatorColor: "secondary"
|
|
176362
176555
|
},
|
|
176363
|
-
/* @__PURE__ */ import_react485.default.createElement(Tab_default, { value:
|
|
176364
|
-
/* @__PURE__ */ import_react485.default.createElement(Tab_default, { value:
|
|
176556
|
+
/* @__PURE__ */ import_react485.default.createElement(Tab_default, { value: SubscriptionObjectType.FORUM, label: "Project Forums" }),
|
|
176557
|
+
/* @__PURE__ */ import_react485.default.createElement(Tab_default, { value: SubscriptionObjectType.THREAD, label: "Threads" })
|
|
176365
176558
|
), /* @__PURE__ */ import_react485.default.createElement(Stack_default, { gap: 0.5 }, data == null ? void 0 : data.pages.map((subscription) => /* @__PURE__ */ import_react485.default.createElement(
|
|
176366
176559
|
SubscriptionItem2,
|
|
176367
176560
|
{
|