synapse-react-client 3.3.7 → 3.3.8
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.cjs +23 -23
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7347 -7319
- package/dist/style/base/_core.scss +0 -43
- package/dist/style/components/_query-wrapper-plot-nav.scss +1 -0
- package/dist/umd/synapse-react-client.development.css +1 -36
- package/dist/umd/synapse-react-client.development.js +962 -845
- package/dist/umd/synapse-react-client.production.min.css +1 -1
- package/dist/umd/synapse-react-client.production.min.js +187 -187
- package/package.json +3 -3
|
@@ -20,7 +20,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20
20
|
return __privateGet(obj, member, getter);
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
/*! SRC v3.3.
|
|
23
|
+
/*! SRC v3.3.8 */
|
|
24
24
|
|
|
25
25
|
var _focused, _cleanup, _setup, _a2, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _Query_instances, setOptions_fn, dispatch_fn, _d, _queries, _e2, _observers2, _defaultOptions2, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i, _client2, _result, _queries2, _observers3, _options, _combinedResult, _QueriesObserver_instances, setResult_fn, combineResult_fn, findMatchingObservers_fn, onUpdate_fn, notify_fn2, _j, _client3, _currentResult2, _currentMutation, _mutateOptions, _MutationObserver_instances, updateResult_fn, notify_fn3, _k, _l;
|
|
26
26
|
function _interopNamespaceDefault(e2) {
|
|
@@ -40861,6 +40861,26 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
40861
40861
|
RestrictionLevel2["CONTROLLED_BY_ACT"] = "CONTROLLED_BY_ACT";
|
|
40862
40862
|
return RestrictionLevel2;
|
|
40863
40863
|
})(RestrictionLevel || {});
|
|
40864
|
+
var SearchFieldName = /* @__PURE__ */ ((SearchFieldName2) => {
|
|
40865
|
+
SearchFieldName2["ID"] = "Id";
|
|
40866
|
+
SearchFieldName2["NAME"] = "Name";
|
|
40867
|
+
SearchFieldName2["DESCRIPTION"] = "Description";
|
|
40868
|
+
SearchFieldName2["ENTITY_TYPE"] = "EntityType";
|
|
40869
|
+
SearchFieldName2["MODIFIED_BY"] = "ModifiedBy";
|
|
40870
|
+
SearchFieldName2["MODIFIED_ON"] = "ModifiedOn";
|
|
40871
|
+
SearchFieldName2["CREATED_BY"] = "CreatedBy";
|
|
40872
|
+
SearchFieldName2["CREATED_ON"] = "CreatedOn";
|
|
40873
|
+
SearchFieldName2["CONSORTIUM"] = "Consortium";
|
|
40874
|
+
SearchFieldName2["DIAGNOSIS"] = "Diagnosis";
|
|
40875
|
+
SearchFieldName2["ORGAN"] = "Organ";
|
|
40876
|
+
SearchFieldName2["TISSUE"] = "Tissue";
|
|
40877
|
+
return SearchFieldName2;
|
|
40878
|
+
})(SearchFieldName || {});
|
|
40879
|
+
var SearchFacetSort = /* @__PURE__ */ ((SearchFacetSort2) => {
|
|
40880
|
+
SearchFacetSort2["ALPHA"] = "ALPHA";
|
|
40881
|
+
SearchFacetSort2["COUNT"] = "COUNT";
|
|
40882
|
+
return SearchFacetSort2;
|
|
40883
|
+
})(SearchFacetSort || {});
|
|
40864
40884
|
var SubscriptionObjectType = /* @__PURE__ */ ((SubscriptionObjectType2) => {
|
|
40865
40885
|
SubscriptionObjectType2["FORUM"] = "FORUM";
|
|
40866
40886
|
SubscriptionObjectType2["THREAD"] = "THREAD";
|
|
@@ -53624,9 +53644,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
53624
53644
|
return response.responseBody;
|
|
53625
53645
|
};
|
|
53626
53646
|
const getQueryTableAsyncJobResults = async (queryBundleRequest, accessToken, setCurrentAsyncStatus) => {
|
|
53627
|
-
console.log(
|
|
53628
|
-
`Querying ${getEndpoint(BackendDestinationEnum.PORTAL_ENDPOINT)}Synapse:${queryBundleRequest.entityId}`
|
|
53629
|
-
);
|
|
53630
53647
|
const asyncJobId = await doPost(
|
|
53631
53648
|
TABLE_QUERY_ASYNC_START(queryBundleRequest.entityId),
|
|
53632
53649
|
queryBundleRequest,
|
|
@@ -94680,650 +94697,6 @@ ${e2.message}`);
|
|
|
94680
94697
|
)
|
|
94681
94698
|
] });
|
|
94682
94699
|
};
|
|
94683
|
-
var resizeObservers = [];
|
|
94684
|
-
var hasActiveObservations = function() {
|
|
94685
|
-
return resizeObservers.some(function(ro) {
|
|
94686
|
-
return ro.activeTargets.length > 0;
|
|
94687
|
-
});
|
|
94688
|
-
};
|
|
94689
|
-
var hasSkippedObservations = function() {
|
|
94690
|
-
return resizeObservers.some(function(ro) {
|
|
94691
|
-
return ro.skippedTargets.length > 0;
|
|
94692
|
-
});
|
|
94693
|
-
};
|
|
94694
|
-
var msg = "ResizeObserver loop completed with undelivered notifications.";
|
|
94695
|
-
var deliverResizeLoopError = function() {
|
|
94696
|
-
var event;
|
|
94697
|
-
if (typeof ErrorEvent === "function") {
|
|
94698
|
-
event = new ErrorEvent("error", {
|
|
94699
|
-
message: msg
|
|
94700
|
-
});
|
|
94701
|
-
} else {
|
|
94702
|
-
event = document.createEvent("Event");
|
|
94703
|
-
event.initEvent("error", false, false);
|
|
94704
|
-
event.message = msg;
|
|
94705
|
-
}
|
|
94706
|
-
window.dispatchEvent(event);
|
|
94707
|
-
};
|
|
94708
|
-
var ResizeObserverBoxOptions;
|
|
94709
|
-
(function(ResizeObserverBoxOptions2) {
|
|
94710
|
-
ResizeObserverBoxOptions2["BORDER_BOX"] = "border-box";
|
|
94711
|
-
ResizeObserverBoxOptions2["CONTENT_BOX"] = "content-box";
|
|
94712
|
-
ResizeObserverBoxOptions2["DEVICE_PIXEL_CONTENT_BOX"] = "device-pixel-content-box";
|
|
94713
|
-
})(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));
|
|
94714
|
-
var freeze = function(obj) {
|
|
94715
|
-
return Object.freeze(obj);
|
|
94716
|
-
};
|
|
94717
|
-
var ResizeObserverSize = /* @__PURE__ */ function() {
|
|
94718
|
-
function ResizeObserverSize2(inlineSize, blockSize) {
|
|
94719
|
-
this.inlineSize = inlineSize;
|
|
94720
|
-
this.blockSize = blockSize;
|
|
94721
|
-
freeze(this);
|
|
94722
|
-
}
|
|
94723
|
-
return ResizeObserverSize2;
|
|
94724
|
-
}();
|
|
94725
|
-
var DOMRectReadOnly$1 = function() {
|
|
94726
|
-
function DOMRectReadOnly2(x2, y2, width2, height2) {
|
|
94727
|
-
this.x = x2;
|
|
94728
|
-
this.y = y2;
|
|
94729
|
-
this.width = width2;
|
|
94730
|
-
this.height = height2;
|
|
94731
|
-
this.top = this.y;
|
|
94732
|
-
this.left = this.x;
|
|
94733
|
-
this.bottom = this.top + this.height;
|
|
94734
|
-
this.right = this.left + this.width;
|
|
94735
|
-
return freeze(this);
|
|
94736
|
-
}
|
|
94737
|
-
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
94738
|
-
var _a3 = this, x2 = _a3.x, y2 = _a3.y, top2 = _a3.top, right2 = _a3.right, bottom2 = _a3.bottom, left2 = _a3.left, width2 = _a3.width, height2 = _a3.height;
|
|
94739
|
-
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width: width2, height: height2 };
|
|
94740
|
-
};
|
|
94741
|
-
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
94742
|
-
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
94743
|
-
};
|
|
94744
|
-
return DOMRectReadOnly2;
|
|
94745
|
-
}();
|
|
94746
|
-
var isSVG = function(target) {
|
|
94747
|
-
return target instanceof SVGElement && "getBBox" in target;
|
|
94748
|
-
};
|
|
94749
|
-
var isHidden = function(target) {
|
|
94750
|
-
if (isSVG(target)) {
|
|
94751
|
-
var _a3 = target.getBBox(), width2 = _a3.width, height2 = _a3.height;
|
|
94752
|
-
return !width2 && !height2;
|
|
94753
|
-
}
|
|
94754
|
-
var _b2 = target, offsetWidth = _b2.offsetWidth, offsetHeight = _b2.offsetHeight;
|
|
94755
|
-
return !(offsetWidth || offsetHeight || target.getClientRects().length);
|
|
94756
|
-
};
|
|
94757
|
-
var isElement$1 = function(obj) {
|
|
94758
|
-
var _a3;
|
|
94759
|
-
if (obj instanceof Element) {
|
|
94760
|
-
return true;
|
|
94761
|
-
}
|
|
94762
|
-
var scope2 = (_a3 = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a3 === void 0 ? void 0 : _a3.defaultView;
|
|
94763
|
-
return !!(scope2 && obj instanceof scope2.Element);
|
|
94764
|
-
};
|
|
94765
|
-
var isReplacedElement = function(target) {
|
|
94766
|
-
switch (target.tagName) {
|
|
94767
|
-
case "INPUT":
|
|
94768
|
-
if (target.type !== "image") {
|
|
94769
|
-
break;
|
|
94770
|
-
}
|
|
94771
|
-
case "VIDEO":
|
|
94772
|
-
case "AUDIO":
|
|
94773
|
-
case "EMBED":
|
|
94774
|
-
case "OBJECT":
|
|
94775
|
-
case "CANVAS":
|
|
94776
|
-
case "IFRAME":
|
|
94777
|
-
case "IMG":
|
|
94778
|
-
return true;
|
|
94779
|
-
}
|
|
94780
|
-
return false;
|
|
94781
|
-
};
|
|
94782
|
-
var global$1 = typeof window !== "undefined" ? window : {};
|
|
94783
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
94784
|
-
var scrollRegexp = /auto|scroll/;
|
|
94785
|
-
var verticalRegexp = /^tb|vertical/;
|
|
94786
|
-
var IE = /msie|trident/i.test(global$1.navigator && global$1.navigator.userAgent);
|
|
94787
|
-
var parseDimension = function(pixel) {
|
|
94788
|
-
return parseFloat(pixel || "0");
|
|
94789
|
-
};
|
|
94790
|
-
var size$1 = function(inlineSize, blockSize, switchSizes) {
|
|
94791
|
-
if (inlineSize === void 0) {
|
|
94792
|
-
inlineSize = 0;
|
|
94793
|
-
}
|
|
94794
|
-
if (blockSize === void 0) {
|
|
94795
|
-
blockSize = 0;
|
|
94796
|
-
}
|
|
94797
|
-
if (switchSizes === void 0) {
|
|
94798
|
-
switchSizes = false;
|
|
94799
|
-
}
|
|
94800
|
-
return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);
|
|
94801
|
-
};
|
|
94802
|
-
var zeroBoxes = freeze({
|
|
94803
|
-
devicePixelContentBoxSize: size$1(),
|
|
94804
|
-
borderBoxSize: size$1(),
|
|
94805
|
-
contentBoxSize: size$1(),
|
|
94806
|
-
contentRect: new DOMRectReadOnly$1(0, 0, 0, 0)
|
|
94807
|
-
});
|
|
94808
|
-
var calculateBoxSizes = function(target, forceRecalculation) {
|
|
94809
|
-
if (forceRecalculation === void 0) {
|
|
94810
|
-
forceRecalculation = false;
|
|
94811
|
-
}
|
|
94812
|
-
if (cache.has(target) && !forceRecalculation) {
|
|
94813
|
-
return cache.get(target);
|
|
94814
|
-
}
|
|
94815
|
-
if (isHidden(target)) {
|
|
94816
|
-
cache.set(target, zeroBoxes);
|
|
94817
|
-
return zeroBoxes;
|
|
94818
|
-
}
|
|
94819
|
-
var cs = getComputedStyle(target);
|
|
94820
|
-
var svg2 = isSVG(target) && target.ownerSVGElement && target.getBBox();
|
|
94821
|
-
var removePadding = !IE && cs.boxSizing === "border-box";
|
|
94822
|
-
var switchSizes = verticalRegexp.test(cs.writingMode || "");
|
|
94823
|
-
var canScrollVertically = !svg2 && scrollRegexp.test(cs.overflowY || "");
|
|
94824
|
-
var canScrollHorizontally = !svg2 && scrollRegexp.test(cs.overflowX || "");
|
|
94825
|
-
var paddingTop = svg2 ? 0 : parseDimension(cs.paddingTop);
|
|
94826
|
-
var paddingRight = svg2 ? 0 : parseDimension(cs.paddingRight);
|
|
94827
|
-
var paddingBottom = svg2 ? 0 : parseDimension(cs.paddingBottom);
|
|
94828
|
-
var paddingLeft = svg2 ? 0 : parseDimension(cs.paddingLeft);
|
|
94829
|
-
var borderTop2 = svg2 ? 0 : parseDimension(cs.borderTopWidth);
|
|
94830
|
-
var borderRight2 = svg2 ? 0 : parseDimension(cs.borderRightWidth);
|
|
94831
|
-
var borderBottom2 = svg2 ? 0 : parseDimension(cs.borderBottomWidth);
|
|
94832
|
-
var borderLeft2 = svg2 ? 0 : parseDimension(cs.borderLeftWidth);
|
|
94833
|
-
var horizontalPadding = paddingLeft + paddingRight;
|
|
94834
|
-
var verticalPadding = paddingTop + paddingBottom;
|
|
94835
|
-
var horizontalBorderArea = borderLeft2 + borderRight2;
|
|
94836
|
-
var verticalBorderArea = borderTop2 + borderBottom2;
|
|
94837
|
-
var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;
|
|
94838
|
-
var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;
|
|
94839
|
-
var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;
|
|
94840
|
-
var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;
|
|
94841
|
-
var contentWidth = svg2 ? svg2.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;
|
|
94842
|
-
var contentHeight = svg2 ? svg2.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;
|
|
94843
|
-
var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;
|
|
94844
|
-
var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;
|
|
94845
|
-
var boxes = freeze({
|
|
94846
|
-
devicePixelContentBoxSize: size$1(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),
|
|
94847
|
-
borderBoxSize: size$1(borderBoxWidth, borderBoxHeight, switchSizes),
|
|
94848
|
-
contentBoxSize: size$1(contentWidth, contentHeight, switchSizes),
|
|
94849
|
-
contentRect: new DOMRectReadOnly$1(paddingLeft, paddingTop, contentWidth, contentHeight)
|
|
94850
|
-
});
|
|
94851
|
-
cache.set(target, boxes);
|
|
94852
|
-
return boxes;
|
|
94853
|
-
};
|
|
94854
|
-
var calculateBoxSize = function(target, observedBox, forceRecalculation) {
|
|
94855
|
-
var _a3 = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a3.borderBoxSize, contentBoxSize = _a3.contentBoxSize, devicePixelContentBoxSize = _a3.devicePixelContentBoxSize;
|
|
94856
|
-
switch (observedBox) {
|
|
94857
|
-
case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:
|
|
94858
|
-
return devicePixelContentBoxSize;
|
|
94859
|
-
case ResizeObserverBoxOptions.BORDER_BOX:
|
|
94860
|
-
return borderBoxSize;
|
|
94861
|
-
default:
|
|
94862
|
-
return contentBoxSize;
|
|
94863
|
-
}
|
|
94864
|
-
};
|
|
94865
|
-
var ResizeObserverEntry = /* @__PURE__ */ function() {
|
|
94866
|
-
function ResizeObserverEntry2(target) {
|
|
94867
|
-
var boxes = calculateBoxSizes(target);
|
|
94868
|
-
this.target = target;
|
|
94869
|
-
this.contentRect = boxes.contentRect;
|
|
94870
|
-
this.borderBoxSize = freeze([boxes.borderBoxSize]);
|
|
94871
|
-
this.contentBoxSize = freeze([boxes.contentBoxSize]);
|
|
94872
|
-
this.devicePixelContentBoxSize = freeze([boxes.devicePixelContentBoxSize]);
|
|
94873
|
-
}
|
|
94874
|
-
return ResizeObserverEntry2;
|
|
94875
|
-
}();
|
|
94876
|
-
var calculateDepthForNode = function(node2) {
|
|
94877
|
-
if (isHidden(node2)) {
|
|
94878
|
-
return Infinity;
|
|
94879
|
-
}
|
|
94880
|
-
var depth = 0;
|
|
94881
|
-
var parent2 = node2.parentNode;
|
|
94882
|
-
while (parent2) {
|
|
94883
|
-
depth += 1;
|
|
94884
|
-
parent2 = parent2.parentNode;
|
|
94885
|
-
}
|
|
94886
|
-
return depth;
|
|
94887
|
-
};
|
|
94888
|
-
var broadcastActiveObservations = function() {
|
|
94889
|
-
var shallowestDepth = Infinity;
|
|
94890
|
-
var callbacks2 = [];
|
|
94891
|
-
resizeObservers.forEach(function processObserver(ro) {
|
|
94892
|
-
if (ro.activeTargets.length === 0) {
|
|
94893
|
-
return;
|
|
94894
|
-
}
|
|
94895
|
-
var entries = [];
|
|
94896
|
-
ro.activeTargets.forEach(function processTarget(ot) {
|
|
94897
|
-
var entry = new ResizeObserverEntry(ot.target);
|
|
94898
|
-
var targetDepth = calculateDepthForNode(ot.target);
|
|
94899
|
-
entries.push(entry);
|
|
94900
|
-
ot.lastReportedSize = calculateBoxSize(ot.target, ot.observedBox);
|
|
94901
|
-
if (targetDepth < shallowestDepth) {
|
|
94902
|
-
shallowestDepth = targetDepth;
|
|
94903
|
-
}
|
|
94904
|
-
});
|
|
94905
|
-
callbacks2.push(function resizeObserverCallback() {
|
|
94906
|
-
ro.callback.call(ro.observer, entries, ro.observer);
|
|
94907
|
-
});
|
|
94908
|
-
ro.activeTargets.splice(0, ro.activeTargets.length);
|
|
94909
|
-
});
|
|
94910
|
-
for (var _i2 = 0, callbacks_1 = callbacks2; _i2 < callbacks_1.length; _i2++) {
|
|
94911
|
-
var callback = callbacks_1[_i2];
|
|
94912
|
-
callback();
|
|
94913
|
-
}
|
|
94914
|
-
return shallowestDepth;
|
|
94915
|
-
};
|
|
94916
|
-
var gatherActiveObservationsAtDepth = function(depth) {
|
|
94917
|
-
resizeObservers.forEach(function processObserver(ro) {
|
|
94918
|
-
ro.activeTargets.splice(0, ro.activeTargets.length);
|
|
94919
|
-
ro.skippedTargets.splice(0, ro.skippedTargets.length);
|
|
94920
|
-
ro.observationTargets.forEach(function processTarget(ot) {
|
|
94921
|
-
if (ot.isActive()) {
|
|
94922
|
-
if (calculateDepthForNode(ot.target) > depth) {
|
|
94923
|
-
ro.activeTargets.push(ot);
|
|
94924
|
-
} else {
|
|
94925
|
-
ro.skippedTargets.push(ot);
|
|
94926
|
-
}
|
|
94927
|
-
}
|
|
94928
|
-
});
|
|
94929
|
-
});
|
|
94930
|
-
};
|
|
94931
|
-
var process = function() {
|
|
94932
|
-
var depth = 0;
|
|
94933
|
-
gatherActiveObservationsAtDepth(depth);
|
|
94934
|
-
while (hasActiveObservations()) {
|
|
94935
|
-
depth = broadcastActiveObservations();
|
|
94936
|
-
gatherActiveObservationsAtDepth(depth);
|
|
94937
|
-
}
|
|
94938
|
-
if (hasSkippedObservations()) {
|
|
94939
|
-
deliverResizeLoopError();
|
|
94940
|
-
}
|
|
94941
|
-
return depth > 0;
|
|
94942
|
-
};
|
|
94943
|
-
var trigger;
|
|
94944
|
-
var callbacks = [];
|
|
94945
|
-
var notify = function() {
|
|
94946
|
-
return callbacks.splice(0).forEach(function(cb) {
|
|
94947
|
-
return cb();
|
|
94948
|
-
});
|
|
94949
|
-
};
|
|
94950
|
-
var queueMicroTask = function(callback) {
|
|
94951
|
-
if (!trigger) {
|
|
94952
|
-
var toggle_1 = 0;
|
|
94953
|
-
var el_1 = document.createTextNode("");
|
|
94954
|
-
var config2 = { characterData: true };
|
|
94955
|
-
new MutationObserver(function() {
|
|
94956
|
-
return notify();
|
|
94957
|
-
}).observe(el_1, config2);
|
|
94958
|
-
trigger = function() {
|
|
94959
|
-
el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++);
|
|
94960
|
-
};
|
|
94961
|
-
}
|
|
94962
|
-
callbacks.push(callback);
|
|
94963
|
-
trigger();
|
|
94964
|
-
};
|
|
94965
|
-
var queueResizeObserver = function(cb) {
|
|
94966
|
-
queueMicroTask(function ResizeObserver2() {
|
|
94967
|
-
requestAnimationFrame(cb);
|
|
94968
|
-
});
|
|
94969
|
-
};
|
|
94970
|
-
var watching = 0;
|
|
94971
|
-
var isWatching = function() {
|
|
94972
|
-
return !!watching;
|
|
94973
|
-
};
|
|
94974
|
-
var CATCH_PERIOD = 250;
|
|
94975
|
-
var observerConfig = { attributes: true, characterData: true, childList: true, subtree: true };
|
|
94976
|
-
var events = [
|
|
94977
|
-
"resize",
|
|
94978
|
-
"load",
|
|
94979
|
-
"transitionend",
|
|
94980
|
-
"animationend",
|
|
94981
|
-
"animationstart",
|
|
94982
|
-
"animationiteration",
|
|
94983
|
-
"keyup",
|
|
94984
|
-
"keydown",
|
|
94985
|
-
"mouseup",
|
|
94986
|
-
"mousedown",
|
|
94987
|
-
"mouseover",
|
|
94988
|
-
"mouseout",
|
|
94989
|
-
"blur",
|
|
94990
|
-
"focus"
|
|
94991
|
-
];
|
|
94992
|
-
var time = function(timeout2) {
|
|
94993
|
-
if (timeout2 === void 0) {
|
|
94994
|
-
timeout2 = 0;
|
|
94995
|
-
}
|
|
94996
|
-
return Date.now() + timeout2;
|
|
94997
|
-
};
|
|
94998
|
-
var scheduled = false;
|
|
94999
|
-
var Scheduler = function() {
|
|
95000
|
-
function Scheduler2() {
|
|
95001
|
-
var _this = this;
|
|
95002
|
-
this.stopped = true;
|
|
95003
|
-
this.listener = function() {
|
|
95004
|
-
return _this.schedule();
|
|
95005
|
-
};
|
|
95006
|
-
}
|
|
95007
|
-
Scheduler2.prototype.run = function(timeout2) {
|
|
95008
|
-
var _this = this;
|
|
95009
|
-
if (timeout2 === void 0) {
|
|
95010
|
-
timeout2 = CATCH_PERIOD;
|
|
95011
|
-
}
|
|
95012
|
-
if (scheduled) {
|
|
95013
|
-
return;
|
|
95014
|
-
}
|
|
95015
|
-
scheduled = true;
|
|
95016
|
-
var until = time(timeout2);
|
|
95017
|
-
queueResizeObserver(function() {
|
|
95018
|
-
var elementsHaveResized = false;
|
|
95019
|
-
try {
|
|
95020
|
-
elementsHaveResized = process();
|
|
95021
|
-
} finally {
|
|
95022
|
-
scheduled = false;
|
|
95023
|
-
timeout2 = until - time();
|
|
95024
|
-
if (!isWatching()) {
|
|
95025
|
-
return;
|
|
95026
|
-
}
|
|
95027
|
-
if (elementsHaveResized) {
|
|
95028
|
-
_this.run(1e3);
|
|
95029
|
-
} else if (timeout2 > 0) {
|
|
95030
|
-
_this.run(timeout2);
|
|
95031
|
-
} else {
|
|
95032
|
-
_this.start();
|
|
95033
|
-
}
|
|
95034
|
-
}
|
|
95035
|
-
});
|
|
95036
|
-
};
|
|
95037
|
-
Scheduler2.prototype.schedule = function() {
|
|
95038
|
-
this.stop();
|
|
95039
|
-
this.run();
|
|
95040
|
-
};
|
|
95041
|
-
Scheduler2.prototype.observe = function() {
|
|
95042
|
-
var _this = this;
|
|
95043
|
-
var cb = function() {
|
|
95044
|
-
return _this.observer && _this.observer.observe(document.body, observerConfig);
|
|
95045
|
-
};
|
|
95046
|
-
document.body ? cb() : global$1.addEventListener("DOMContentLoaded", cb);
|
|
95047
|
-
};
|
|
95048
|
-
Scheduler2.prototype.start = function() {
|
|
95049
|
-
var _this = this;
|
|
95050
|
-
if (this.stopped) {
|
|
95051
|
-
this.stopped = false;
|
|
95052
|
-
this.observer = new MutationObserver(this.listener);
|
|
95053
|
-
this.observe();
|
|
95054
|
-
events.forEach(function(name) {
|
|
95055
|
-
return global$1.addEventListener(name, _this.listener, true);
|
|
95056
|
-
});
|
|
95057
|
-
}
|
|
95058
|
-
};
|
|
95059
|
-
Scheduler2.prototype.stop = function() {
|
|
95060
|
-
var _this = this;
|
|
95061
|
-
if (!this.stopped) {
|
|
95062
|
-
this.observer && this.observer.disconnect();
|
|
95063
|
-
events.forEach(function(name) {
|
|
95064
|
-
return global$1.removeEventListener(name, _this.listener, true);
|
|
95065
|
-
});
|
|
95066
|
-
this.stopped = true;
|
|
95067
|
-
}
|
|
95068
|
-
};
|
|
95069
|
-
return Scheduler2;
|
|
95070
|
-
}();
|
|
95071
|
-
var scheduler = new Scheduler();
|
|
95072
|
-
var updateCount = function(n2) {
|
|
95073
|
-
!watching && n2 > 0 && scheduler.start();
|
|
95074
|
-
watching += n2;
|
|
95075
|
-
!watching && scheduler.stop();
|
|
95076
|
-
};
|
|
95077
|
-
var skipNotifyOnElement = function(target) {
|
|
95078
|
-
return !isSVG(target) && !isReplacedElement(target) && getComputedStyle(target).display === "inline";
|
|
95079
|
-
};
|
|
95080
|
-
var ResizeObservation = function() {
|
|
95081
|
-
function ResizeObservation2(target, observedBox) {
|
|
95082
|
-
this.target = target;
|
|
95083
|
-
this.observedBox = observedBox || ResizeObserverBoxOptions.CONTENT_BOX;
|
|
95084
|
-
this.lastReportedSize = {
|
|
95085
|
-
inlineSize: 0,
|
|
95086
|
-
blockSize: 0
|
|
95087
|
-
};
|
|
95088
|
-
}
|
|
95089
|
-
ResizeObservation2.prototype.isActive = function() {
|
|
95090
|
-
var size2 = calculateBoxSize(this.target, this.observedBox, true);
|
|
95091
|
-
if (skipNotifyOnElement(this.target)) {
|
|
95092
|
-
this.lastReportedSize = size2;
|
|
95093
|
-
}
|
|
95094
|
-
if (this.lastReportedSize.inlineSize !== size2.inlineSize || this.lastReportedSize.blockSize !== size2.blockSize) {
|
|
95095
|
-
return true;
|
|
95096
|
-
}
|
|
95097
|
-
return false;
|
|
95098
|
-
};
|
|
95099
|
-
return ResizeObservation2;
|
|
95100
|
-
}();
|
|
95101
|
-
var ResizeObserverDetail = /* @__PURE__ */ function() {
|
|
95102
|
-
function ResizeObserverDetail2(resizeObserver, callback) {
|
|
95103
|
-
this.activeTargets = [];
|
|
95104
|
-
this.skippedTargets = [];
|
|
95105
|
-
this.observationTargets = [];
|
|
95106
|
-
this.observer = resizeObserver;
|
|
95107
|
-
this.callback = callback;
|
|
95108
|
-
}
|
|
95109
|
-
return ResizeObserverDetail2;
|
|
95110
|
-
}();
|
|
95111
|
-
var observerMap = /* @__PURE__ */ new WeakMap();
|
|
95112
|
-
var getObservationIndex = function(observationTargets, target) {
|
|
95113
|
-
for (var i2 = 0; i2 < observationTargets.length; i2 += 1) {
|
|
95114
|
-
if (observationTargets[i2].target === target) {
|
|
95115
|
-
return i2;
|
|
95116
|
-
}
|
|
95117
|
-
}
|
|
95118
|
-
return -1;
|
|
95119
|
-
};
|
|
95120
|
-
var ResizeObserverController = function() {
|
|
95121
|
-
function ResizeObserverController2() {
|
|
95122
|
-
}
|
|
95123
|
-
ResizeObserverController2.connect = function(resizeObserver, callback) {
|
|
95124
|
-
var detail = new ResizeObserverDetail(resizeObserver, callback);
|
|
95125
|
-
observerMap.set(resizeObserver, detail);
|
|
95126
|
-
};
|
|
95127
|
-
ResizeObserverController2.observe = function(resizeObserver, target, options2) {
|
|
95128
|
-
var detail = observerMap.get(resizeObserver);
|
|
95129
|
-
var firstObservation = detail.observationTargets.length === 0;
|
|
95130
|
-
if (getObservationIndex(detail.observationTargets, target) < 0) {
|
|
95131
|
-
firstObservation && resizeObservers.push(detail);
|
|
95132
|
-
detail.observationTargets.push(new ResizeObservation(target, options2 && options2.box));
|
|
95133
|
-
updateCount(1);
|
|
95134
|
-
scheduler.schedule();
|
|
95135
|
-
}
|
|
95136
|
-
};
|
|
95137
|
-
ResizeObserverController2.unobserve = function(resizeObserver, target) {
|
|
95138
|
-
var detail = observerMap.get(resizeObserver);
|
|
95139
|
-
var index2 = getObservationIndex(detail.observationTargets, target);
|
|
95140
|
-
var lastObservation = detail.observationTargets.length === 1;
|
|
95141
|
-
if (index2 >= 0) {
|
|
95142
|
-
lastObservation && resizeObservers.splice(resizeObservers.indexOf(detail), 1);
|
|
95143
|
-
detail.observationTargets.splice(index2, 1);
|
|
95144
|
-
updateCount(-1);
|
|
95145
|
-
}
|
|
95146
|
-
};
|
|
95147
|
-
ResizeObserverController2.disconnect = function(resizeObserver) {
|
|
95148
|
-
var _this = this;
|
|
95149
|
-
var detail = observerMap.get(resizeObserver);
|
|
95150
|
-
detail.observationTargets.slice().forEach(function(ot) {
|
|
95151
|
-
return _this.unobserve(resizeObserver, ot.target);
|
|
95152
|
-
});
|
|
95153
|
-
detail.activeTargets.splice(0, detail.activeTargets.length);
|
|
95154
|
-
};
|
|
95155
|
-
return ResizeObserverController2;
|
|
95156
|
-
}();
|
|
95157
|
-
var ResizeObserver$2 = function() {
|
|
95158
|
-
function ResizeObserver2(callback) {
|
|
95159
|
-
if (arguments.length === 0) {
|
|
95160
|
-
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
95161
|
-
}
|
|
95162
|
-
if (typeof callback !== "function") {
|
|
95163
|
-
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
95164
|
-
}
|
|
95165
|
-
ResizeObserverController.connect(this, callback);
|
|
95166
|
-
}
|
|
95167
|
-
ResizeObserver2.prototype.observe = function(target, options2) {
|
|
95168
|
-
if (arguments.length === 0) {
|
|
95169
|
-
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
95170
|
-
}
|
|
95171
|
-
if (!isElement$1(target)) {
|
|
95172
|
-
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
95173
|
-
}
|
|
95174
|
-
ResizeObserverController.observe(this, target, options2);
|
|
95175
|
-
};
|
|
95176
|
-
ResizeObserver2.prototype.unobserve = function(target) {
|
|
95177
|
-
if (arguments.length === 0) {
|
|
95178
|
-
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
95179
|
-
}
|
|
95180
|
-
if (!isElement$1(target)) {
|
|
95181
|
-
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
95182
|
-
}
|
|
95183
|
-
ResizeObserverController.unobserve(this, target);
|
|
95184
|
-
};
|
|
95185
|
-
ResizeObserver2.prototype.disconnect = function() {
|
|
95186
|
-
ResizeObserverController.disconnect(this);
|
|
95187
|
-
};
|
|
95188
|
-
ResizeObserver2.toString = function() {
|
|
95189
|
-
return "function ResizeObserver () { [polyfill code] }";
|
|
95190
|
-
};
|
|
95191
|
-
return ResizeObserver2;
|
|
95192
|
-
}();
|
|
95193
|
-
const usePassiveLayoutEffect = React$2[typeof document !== "undefined" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"];
|
|
95194
|
-
const useLatest = (current) => {
|
|
95195
|
-
const storedValue = React__namespace.useRef(current);
|
|
95196
|
-
React__namespace.useEffect(() => {
|
|
95197
|
-
storedValue.current = current;
|
|
95198
|
-
});
|
|
95199
|
-
return storedValue;
|
|
95200
|
-
};
|
|
95201
|
-
const ResizeObserver$1 = typeof window !== "undefined" && "ResizeObserver" in window ? (
|
|
95202
|
-
// @ts-ignore
|
|
95203
|
-
window.ResizeObserver
|
|
95204
|
-
) : ResizeObserver$2;
|
|
95205
|
-
function _ref$1() {
|
|
95206
|
-
}
|
|
95207
|
-
function useResizeObserver(target, callback) {
|
|
95208
|
-
const resizeObserver = getResizeObserver();
|
|
95209
|
-
const storedCallback = useLatest(callback);
|
|
95210
|
-
usePassiveLayoutEffect(() => {
|
|
95211
|
-
let didUnsubscribe = false;
|
|
95212
|
-
const targetEl = target && "current" in target ? target.current : target;
|
|
95213
|
-
if (!targetEl) return _ref$1;
|
|
95214
|
-
function cb(entry, observer) {
|
|
95215
|
-
if (didUnsubscribe) return;
|
|
95216
|
-
storedCallback.current(entry, observer);
|
|
95217
|
-
}
|
|
95218
|
-
resizeObserver.subscribe(targetEl, cb);
|
|
95219
|
-
return () => {
|
|
95220
|
-
didUnsubscribe = true;
|
|
95221
|
-
resizeObserver.unsubscribe(targetEl, cb);
|
|
95222
|
-
};
|
|
95223
|
-
}, [target, resizeObserver, storedCallback]);
|
|
95224
|
-
return resizeObserver.observer;
|
|
95225
|
-
}
|
|
95226
|
-
function createResizeObserver() {
|
|
95227
|
-
let ticking = false;
|
|
95228
|
-
let allEntries = [];
|
|
95229
|
-
const callbacks2 = /* @__PURE__ */ new Map();
|
|
95230
|
-
const observer = new ResizeObserver$1((entries, obs) => {
|
|
95231
|
-
allEntries = allEntries.concat(entries);
|
|
95232
|
-
function _ref22() {
|
|
95233
|
-
const triggered = /* @__PURE__ */ new Set();
|
|
95234
|
-
for (let i2 = 0; i2 < allEntries.length; i2++) {
|
|
95235
|
-
if (triggered.has(allEntries[i2].target)) continue;
|
|
95236
|
-
triggered.add(allEntries[i2].target);
|
|
95237
|
-
const cbs = callbacks2.get(allEntries[i2].target);
|
|
95238
|
-
cbs === null || cbs === void 0 ? void 0 : cbs.forEach((cb) => cb(allEntries[i2], obs));
|
|
95239
|
-
}
|
|
95240
|
-
allEntries = [];
|
|
95241
|
-
ticking = false;
|
|
95242
|
-
}
|
|
95243
|
-
if (!ticking) {
|
|
95244
|
-
window.requestAnimationFrame(_ref22);
|
|
95245
|
-
}
|
|
95246
|
-
ticking = true;
|
|
95247
|
-
});
|
|
95248
|
-
return {
|
|
95249
|
-
observer,
|
|
95250
|
-
subscribe(target, callback) {
|
|
95251
|
-
var _callbacks$get;
|
|
95252
|
-
observer.observe(target);
|
|
95253
|
-
const cbs = (_callbacks$get = callbacks2.get(target)) !== null && _callbacks$get !== void 0 ? _callbacks$get : [];
|
|
95254
|
-
cbs.push(callback);
|
|
95255
|
-
callbacks2.set(target, cbs);
|
|
95256
|
-
},
|
|
95257
|
-
unsubscribe(target, callback) {
|
|
95258
|
-
var _callbacks$get2;
|
|
95259
|
-
const cbs = (_callbacks$get2 = callbacks2.get(target)) !== null && _callbacks$get2 !== void 0 ? _callbacks$get2 : [];
|
|
95260
|
-
if (cbs.length === 1) {
|
|
95261
|
-
observer.unobserve(target);
|
|
95262
|
-
callbacks2.delete(target);
|
|
95263
|
-
return;
|
|
95264
|
-
}
|
|
95265
|
-
const cbIndex = cbs.indexOf(callback);
|
|
95266
|
-
if (cbIndex !== -1) cbs.splice(cbIndex, 1);
|
|
95267
|
-
callbacks2.set(target, cbs);
|
|
95268
|
-
}
|
|
95269
|
-
};
|
|
95270
|
-
}
|
|
95271
|
-
let _resizeObserver;
|
|
95272
|
-
const getResizeObserver = () => !_resizeObserver ? _resizeObserver = createResizeObserver() : _resizeObserver;
|
|
95273
|
-
function ExpandCollapseButton(props) {
|
|
95274
|
-
const { isExpanded, ...buttonProps } = props;
|
|
95275
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { ...buttonProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
95276
|
-
IconSvg,
|
|
95277
|
-
{
|
|
95278
|
-
icon: isExpanded ? "minusBoxOutline" : "addBoxOutline",
|
|
95279
|
-
sx: {
|
|
95280
|
-
color: "grey.600",
|
|
95281
|
-
height: "16px",
|
|
95282
|
-
verticalAlign: "top",
|
|
95283
|
-
"&:hover": {
|
|
95284
|
-
color: "grey.700"
|
|
95285
|
-
}
|
|
95286
|
-
}
|
|
95287
|
-
}
|
|
95288
|
-
) });
|
|
95289
|
-
}
|
|
95290
|
-
function ExpandableTableDataCell(props) {
|
|
95291
|
-
const [isExpanded, setIsExpanded] = React$2.useState(false);
|
|
95292
|
-
const [isOverflowingWhenNotExpanded, setIsOverflowingWhenNotExpanded] = React$2.useState(false);
|
|
95293
|
-
const tdRef = React$2.useRef(null);
|
|
95294
|
-
useResizeObserver(tdRef, ({ target }) => {
|
|
95295
|
-
if (!isExpanded) {
|
|
95296
|
-
if (target) {
|
|
95297
|
-
const contentElement = target.getElementsByTagName("p")[0];
|
|
95298
|
-
if (contentElement) {
|
|
95299
|
-
setIsOverflowingWhenNotExpanded(
|
|
95300
|
-
contentElement.scrollHeight > contentElement.clientHeight || contentElement.scrollWidth > contentElement.clientWidth
|
|
95301
|
-
);
|
|
95302
|
-
}
|
|
95303
|
-
}
|
|
95304
|
-
}
|
|
95305
|
-
});
|
|
95306
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
95307
|
-
"td",
|
|
95308
|
-
{
|
|
95309
|
-
...props,
|
|
95310
|
-
className: `ExpandableTableData ${props.className ? props.className : ""}`,
|
|
95311
|
-
"aria-expanded": isExpanded,
|
|
95312
|
-
ref: tdRef,
|
|
95313
|
-
children: [
|
|
95314
|
-
isOverflowingWhenNotExpanded && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
95315
|
-
ExpandCollapseButton,
|
|
95316
|
-
{
|
|
95317
|
-
isExpanded,
|
|
95318
|
-
className: "ExpandableTableData__expandButton",
|
|
95319
|
-
onClick: () => setIsExpanded(!isExpanded)
|
|
95320
|
-
}
|
|
95321
|
-
),
|
|
95322
|
-
props.children
|
|
95323
|
-
]
|
|
95324
|
-
}
|
|
95325
|
-
);
|
|
95326
|
-
}
|
|
95327
94700
|
/**
|
|
95328
94701
|
* table-core
|
|
95329
94702
|
*
|
|
@@ -99677,7 +99050,7 @@ ${e2.message}`);
|
|
|
99677
99050
|
})(typeof window === "object" ? window : commonjsGlobal);
|
|
99678
99051
|
})(uaParser, uaParser.exports);
|
|
99679
99052
|
var uaParserExports = uaParser.exports;
|
|
99680
|
-
|
|
99053
|
+
const DirectDownloadIcon = React$2.forwardRef(function DirectDownloadIcon2(props, ref2) {
|
|
99681
99054
|
const {
|
|
99682
99055
|
isExternalFile,
|
|
99683
99056
|
onClick,
|
|
@@ -99693,6 +99066,7 @@ ${e2.message}`);
|
|
|
99693
99066
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99694
99067
|
"button",
|
|
99695
99068
|
{
|
|
99069
|
+
ref: ref2,
|
|
99696
99070
|
className: "btn-download-icon",
|
|
99697
99071
|
onClick: (event) => {
|
|
99698
99072
|
if (onClick) {
|
|
@@ -99717,6 +99091,7 @@ ${e2.message}`);
|
|
|
99717
99091
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
99718
99092
|
"button",
|
|
99719
99093
|
{
|
|
99094
|
+
ref: ref2,
|
|
99720
99095
|
className: "btn-download-icon",
|
|
99721
99096
|
onClick: (event) => {
|
|
99722
99097
|
getDownloadLink();
|
|
@@ -99730,7 +99105,7 @@ ${e2.message}`);
|
|
|
99730
99105
|
);
|
|
99731
99106
|
}
|
|
99732
99107
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
99733
|
-
}
|
|
99108
|
+
});
|
|
99734
99109
|
function DirectDownload(props) {
|
|
99735
99110
|
var _a3;
|
|
99736
99111
|
const { accessToken } = useSynapseContext();
|
|
@@ -99833,7 +99208,7 @@ ${e2.message}`);
|
|
|
99833
99208
|
title: isExternalFile ? "Navigate to external link" : "Download this file individually",
|
|
99834
99209
|
enterNextDelay: TOOLTIP_DELAY_SHOW,
|
|
99835
99210
|
placement: "left",
|
|
99836
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99211
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
99837
99212
|
DirectDownloadIcon,
|
|
99838
99213
|
{
|
|
99839
99214
|
isExternalFile,
|
|
@@ -99846,7 +99221,7 @@ ${e2.message}`);
|
|
|
99846
99221
|
fileName,
|
|
99847
99222
|
iconSvgPropOverrides
|
|
99848
99223
|
}
|
|
99849
|
-
)
|
|
99224
|
+
)
|
|
99850
99225
|
}
|
|
99851
99226
|
);
|
|
99852
99227
|
}
|
|
@@ -102438,7 +101813,7 @@ ${e2.message}`);
|
|
|
102438
101813
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$2() {
|
|
102439
101814
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
102440
101815
|
}
|
|
102441
|
-
var _ref = dist$1.process.env.NODE_ENV === "production" ? {
|
|
101816
|
+
var _ref$1 = dist$1.process.env.NODE_ENV === "production" ? {
|
|
102442
101817
|
name: "7pg0cj-a11yText",
|
|
102443
101818
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
|
|
102444
101819
|
} : {
|
|
@@ -102449,7 +101824,7 @@ ${e2.message}`);
|
|
|
102449
101824
|
};
|
|
102450
101825
|
var A11yText = function A11yText2(props) {
|
|
102451
101826
|
return jsx("span", _extends$3({
|
|
102452
|
-
css: _ref
|
|
101827
|
+
css: _ref$1
|
|
102453
101828
|
}, props));
|
|
102454
101829
|
};
|
|
102455
101830
|
var A11yText$1 = A11yText;
|
|
@@ -113037,6 +112412,23 @@ ${e2.message}`);
|
|
|
113037
112412
|
}
|
|
113038
112413
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: String(value) });
|
|
113039
112414
|
}
|
|
112415
|
+
function ExpandCollapseButton(props) {
|
|
112416
|
+
const { isExpanded, ...buttonProps } = props;
|
|
112417
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { ...buttonProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
112418
|
+
IconSvg,
|
|
112419
|
+
{
|
|
112420
|
+
icon: isExpanded ? "minusBoxOutline" : "addBoxOutline",
|
|
112421
|
+
sx: {
|
|
112422
|
+
color: "grey.600",
|
|
112423
|
+
height: "16px",
|
|
112424
|
+
verticalAlign: "top",
|
|
112425
|
+
"&:hover": {
|
|
112426
|
+
color: "grey.700"
|
|
112427
|
+
}
|
|
112428
|
+
}
|
|
112429
|
+
}
|
|
112430
|
+
) });
|
|
112431
|
+
}
|
|
113040
112432
|
function JSONArrayRenderer(props) {
|
|
113041
112433
|
const { value } = props;
|
|
113042
112434
|
const [expanded, setExpanded] = React$2.useState(false);
|
|
@@ -114779,21 +114171,22 @@ ${e2.message}`);
|
|
|
114779
114171
|
}
|
|
114780
114172
|
});
|
|
114781
114173
|
const getEntityOrRowId = (props) => {
|
|
114782
|
-
var _a3;
|
|
114174
|
+
var _a3, _b2;
|
|
114783
114175
|
const { row, table: table2 } = props;
|
|
114784
|
-
const rowEntityIDColumnIndex = table2.options.meta.rowEntityIDColumnIndex;
|
|
114785
|
-
const entityId = rowEntityIDColumnIndex !== void 0 ? row.original.values[rowEntityIDColumnIndex] : (
|
|
114176
|
+
const rowEntityIDColumnIndex = (_a3 = table2.options.meta) == null ? void 0 : _a3.rowEntityIDColumnIndex;
|
|
114177
|
+
const entityId = rowEntityIDColumnIndex !== void 0 ? row.original.values[rowEntityIDColumnIndex] : (_b2 = row.original.rowId) == null ? void 0 : _b2.toString();
|
|
114786
114178
|
return entityId;
|
|
114787
114179
|
};
|
|
114788
114180
|
const isRowEntityColumn = (props) => {
|
|
114181
|
+
var _a3;
|
|
114789
114182
|
const { table: table2 } = props;
|
|
114790
|
-
return table2.options.meta.rowEntityVersionColumnIndex !== void 0;
|
|
114183
|
+
return ((_a3 = table2.options.meta) == null ? void 0 : _a3.rowEntityVersionColumnIndex) !== void 0;
|
|
114791
114184
|
};
|
|
114792
114185
|
const getEntityOrRowVersion = (props) => {
|
|
114793
|
-
var _a3;
|
|
114186
|
+
var _a3, _b2;
|
|
114794
114187
|
const { row, table: table2 } = props;
|
|
114795
|
-
const rowEntityVersionColumnIndex = table2.options.meta.rowEntityVersionColumnIndex;
|
|
114796
|
-
const versionNumber = rowEntityVersionColumnIndex !== void 0 ? row.original.values[rowEntityVersionColumnIndex] : (
|
|
114188
|
+
const rowEntityVersionColumnIndex = (_a3 = table2.options.meta) == null ? void 0 : _a3.rowEntityVersionColumnIndex;
|
|
114189
|
+
const versionNumber = rowEntityVersionColumnIndex !== void 0 ? row.original.values[rowEntityVersionColumnIndex] : (_b2 = row.original.versionNumber) == null ? void 0 : _b2.toString();
|
|
114797
114190
|
return versionNumber;
|
|
114798
114191
|
};
|
|
114799
114192
|
function AccessCell(props) {
|
|
@@ -115039,6 +114432,762 @@ ${e2.message}`);
|
|
|
115039
114432
|
dataHasBeenPrefetched: !isLoadingEntityData && !isLoadingFileHandleData && !isLoadingUserGroupData
|
|
115040
114433
|
};
|
|
115041
114434
|
}
|
|
114435
|
+
const StyledTableContainer = styled(Box)(({ theme: theme3, density = "default" }) => ({
|
|
114436
|
+
overflow: "auto",
|
|
114437
|
+
paddingLeft: "2px",
|
|
114438
|
+
th: {
|
|
114439
|
+
height: "38px",
|
|
114440
|
+
backgroundColor: theme3.palette.grey[200],
|
|
114441
|
+
borderRight: "1px solid",
|
|
114442
|
+
borderColor: theme3.palette.grey[400]
|
|
114443
|
+
},
|
|
114444
|
+
["th:first-of-type"]: {
|
|
114445
|
+
paddingLeft: "10px"
|
|
114446
|
+
},
|
|
114447
|
+
["td:first-of-type"]: {
|
|
114448
|
+
paddingLeft: "10px"
|
|
114449
|
+
},
|
|
114450
|
+
["tr:nth-of-type(2n)"]: {
|
|
114451
|
+
backgroundColor: theme3.palette.grey[100]
|
|
114452
|
+
},
|
|
114453
|
+
["th,td"]: {
|
|
114454
|
+
position: "relative",
|
|
114455
|
+
paddingLeft: theme3.spacing(density === "compact" ? 0 : 1),
|
|
114456
|
+
paddingRight: theme3.spacing(density === "compact" ? 0 : 1)
|
|
114457
|
+
},
|
|
114458
|
+
td: {
|
|
114459
|
+
paddingTop: theme3.spacing(density === "compact" ? 0 : 1),
|
|
114460
|
+
paddingBottom: theme3.spacing(density === "compact" ? 0 : 1)
|
|
114461
|
+
},
|
|
114462
|
+
".resizer": {
|
|
114463
|
+
position: "absolute",
|
|
114464
|
+
right: 0,
|
|
114465
|
+
top: 0,
|
|
114466
|
+
height: "100%",
|
|
114467
|
+
width: "3px",
|
|
114468
|
+
padding: 0,
|
|
114469
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
114470
|
+
cursor: "col-resize",
|
|
114471
|
+
userSelect: "none",
|
|
114472
|
+
touchAction: "none"
|
|
114473
|
+
},
|
|
114474
|
+
".resizer.isResizing": {
|
|
114475
|
+
background: theme3.palette.primary.main,
|
|
114476
|
+
opacity: 1
|
|
114477
|
+
},
|
|
114478
|
+
"@media (hover: hover)": {
|
|
114479
|
+
".resizer": {
|
|
114480
|
+
opacity: 0,
|
|
114481
|
+
"*:hover > .resizer": {
|
|
114482
|
+
opacity: 1
|
|
114483
|
+
}
|
|
114484
|
+
}
|
|
114485
|
+
}
|
|
114486
|
+
}));
|
|
114487
|
+
function getColumnSizeCssVariable(columnId) {
|
|
114488
|
+
return `--col-${columnId}-size`;
|
|
114489
|
+
}
|
|
114490
|
+
function getHeaderSizeCssVariable(headerId) {
|
|
114491
|
+
return `--header-${headerId}-size`;
|
|
114492
|
+
}
|
|
114493
|
+
var resizeObservers = [];
|
|
114494
|
+
var hasActiveObservations = function() {
|
|
114495
|
+
return resizeObservers.some(function(ro) {
|
|
114496
|
+
return ro.activeTargets.length > 0;
|
|
114497
|
+
});
|
|
114498
|
+
};
|
|
114499
|
+
var hasSkippedObservations = function() {
|
|
114500
|
+
return resizeObservers.some(function(ro) {
|
|
114501
|
+
return ro.skippedTargets.length > 0;
|
|
114502
|
+
});
|
|
114503
|
+
};
|
|
114504
|
+
var msg = "ResizeObserver loop completed with undelivered notifications.";
|
|
114505
|
+
var deliverResizeLoopError = function() {
|
|
114506
|
+
var event;
|
|
114507
|
+
if (typeof ErrorEvent === "function") {
|
|
114508
|
+
event = new ErrorEvent("error", {
|
|
114509
|
+
message: msg
|
|
114510
|
+
});
|
|
114511
|
+
} else {
|
|
114512
|
+
event = document.createEvent("Event");
|
|
114513
|
+
event.initEvent("error", false, false);
|
|
114514
|
+
event.message = msg;
|
|
114515
|
+
}
|
|
114516
|
+
window.dispatchEvent(event);
|
|
114517
|
+
};
|
|
114518
|
+
var ResizeObserverBoxOptions;
|
|
114519
|
+
(function(ResizeObserverBoxOptions2) {
|
|
114520
|
+
ResizeObserverBoxOptions2["BORDER_BOX"] = "border-box";
|
|
114521
|
+
ResizeObserverBoxOptions2["CONTENT_BOX"] = "content-box";
|
|
114522
|
+
ResizeObserverBoxOptions2["DEVICE_PIXEL_CONTENT_BOX"] = "device-pixel-content-box";
|
|
114523
|
+
})(ResizeObserverBoxOptions || (ResizeObserverBoxOptions = {}));
|
|
114524
|
+
var freeze = function(obj) {
|
|
114525
|
+
return Object.freeze(obj);
|
|
114526
|
+
};
|
|
114527
|
+
var ResizeObserverSize = /* @__PURE__ */ function() {
|
|
114528
|
+
function ResizeObserverSize2(inlineSize, blockSize) {
|
|
114529
|
+
this.inlineSize = inlineSize;
|
|
114530
|
+
this.blockSize = blockSize;
|
|
114531
|
+
freeze(this);
|
|
114532
|
+
}
|
|
114533
|
+
return ResizeObserverSize2;
|
|
114534
|
+
}();
|
|
114535
|
+
var DOMRectReadOnly$1 = function() {
|
|
114536
|
+
function DOMRectReadOnly2(x2, y2, width2, height2) {
|
|
114537
|
+
this.x = x2;
|
|
114538
|
+
this.y = y2;
|
|
114539
|
+
this.width = width2;
|
|
114540
|
+
this.height = height2;
|
|
114541
|
+
this.top = this.y;
|
|
114542
|
+
this.left = this.x;
|
|
114543
|
+
this.bottom = this.top + this.height;
|
|
114544
|
+
this.right = this.left + this.width;
|
|
114545
|
+
return freeze(this);
|
|
114546
|
+
}
|
|
114547
|
+
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
114548
|
+
var _a3 = this, x2 = _a3.x, y2 = _a3.y, top2 = _a3.top, right2 = _a3.right, bottom2 = _a3.bottom, left2 = _a3.left, width2 = _a3.width, height2 = _a3.height;
|
|
114549
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width: width2, height: height2 };
|
|
114550
|
+
};
|
|
114551
|
+
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
114552
|
+
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
114553
|
+
};
|
|
114554
|
+
return DOMRectReadOnly2;
|
|
114555
|
+
}();
|
|
114556
|
+
var isSVG = function(target) {
|
|
114557
|
+
return target instanceof SVGElement && "getBBox" in target;
|
|
114558
|
+
};
|
|
114559
|
+
var isHidden = function(target) {
|
|
114560
|
+
if (isSVG(target)) {
|
|
114561
|
+
var _a3 = target.getBBox(), width2 = _a3.width, height2 = _a3.height;
|
|
114562
|
+
return !width2 && !height2;
|
|
114563
|
+
}
|
|
114564
|
+
var _b2 = target, offsetWidth = _b2.offsetWidth, offsetHeight = _b2.offsetHeight;
|
|
114565
|
+
return !(offsetWidth || offsetHeight || target.getClientRects().length);
|
|
114566
|
+
};
|
|
114567
|
+
var isElement$1 = function(obj) {
|
|
114568
|
+
var _a3;
|
|
114569
|
+
if (obj instanceof Element) {
|
|
114570
|
+
return true;
|
|
114571
|
+
}
|
|
114572
|
+
var scope2 = (_a3 = obj === null || obj === void 0 ? void 0 : obj.ownerDocument) === null || _a3 === void 0 ? void 0 : _a3.defaultView;
|
|
114573
|
+
return !!(scope2 && obj instanceof scope2.Element);
|
|
114574
|
+
};
|
|
114575
|
+
var isReplacedElement = function(target) {
|
|
114576
|
+
switch (target.tagName) {
|
|
114577
|
+
case "INPUT":
|
|
114578
|
+
if (target.type !== "image") {
|
|
114579
|
+
break;
|
|
114580
|
+
}
|
|
114581
|
+
case "VIDEO":
|
|
114582
|
+
case "AUDIO":
|
|
114583
|
+
case "EMBED":
|
|
114584
|
+
case "OBJECT":
|
|
114585
|
+
case "CANVAS":
|
|
114586
|
+
case "IFRAME":
|
|
114587
|
+
case "IMG":
|
|
114588
|
+
return true;
|
|
114589
|
+
}
|
|
114590
|
+
return false;
|
|
114591
|
+
};
|
|
114592
|
+
var global$1 = typeof window !== "undefined" ? window : {};
|
|
114593
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
114594
|
+
var scrollRegexp = /auto|scroll/;
|
|
114595
|
+
var verticalRegexp = /^tb|vertical/;
|
|
114596
|
+
var IE = /msie|trident/i.test(global$1.navigator && global$1.navigator.userAgent);
|
|
114597
|
+
var parseDimension = function(pixel) {
|
|
114598
|
+
return parseFloat(pixel || "0");
|
|
114599
|
+
};
|
|
114600
|
+
var size$1 = function(inlineSize, blockSize, switchSizes) {
|
|
114601
|
+
if (inlineSize === void 0) {
|
|
114602
|
+
inlineSize = 0;
|
|
114603
|
+
}
|
|
114604
|
+
if (blockSize === void 0) {
|
|
114605
|
+
blockSize = 0;
|
|
114606
|
+
}
|
|
114607
|
+
if (switchSizes === void 0) {
|
|
114608
|
+
switchSizes = false;
|
|
114609
|
+
}
|
|
114610
|
+
return new ResizeObserverSize((switchSizes ? blockSize : inlineSize) || 0, (switchSizes ? inlineSize : blockSize) || 0);
|
|
114611
|
+
};
|
|
114612
|
+
var zeroBoxes = freeze({
|
|
114613
|
+
devicePixelContentBoxSize: size$1(),
|
|
114614
|
+
borderBoxSize: size$1(),
|
|
114615
|
+
contentBoxSize: size$1(),
|
|
114616
|
+
contentRect: new DOMRectReadOnly$1(0, 0, 0, 0)
|
|
114617
|
+
});
|
|
114618
|
+
var calculateBoxSizes = function(target, forceRecalculation) {
|
|
114619
|
+
if (forceRecalculation === void 0) {
|
|
114620
|
+
forceRecalculation = false;
|
|
114621
|
+
}
|
|
114622
|
+
if (cache.has(target) && !forceRecalculation) {
|
|
114623
|
+
return cache.get(target);
|
|
114624
|
+
}
|
|
114625
|
+
if (isHidden(target)) {
|
|
114626
|
+
cache.set(target, zeroBoxes);
|
|
114627
|
+
return zeroBoxes;
|
|
114628
|
+
}
|
|
114629
|
+
var cs = getComputedStyle(target);
|
|
114630
|
+
var svg2 = isSVG(target) && target.ownerSVGElement && target.getBBox();
|
|
114631
|
+
var removePadding = !IE && cs.boxSizing === "border-box";
|
|
114632
|
+
var switchSizes = verticalRegexp.test(cs.writingMode || "");
|
|
114633
|
+
var canScrollVertically = !svg2 && scrollRegexp.test(cs.overflowY || "");
|
|
114634
|
+
var canScrollHorizontally = !svg2 && scrollRegexp.test(cs.overflowX || "");
|
|
114635
|
+
var paddingTop = svg2 ? 0 : parseDimension(cs.paddingTop);
|
|
114636
|
+
var paddingRight = svg2 ? 0 : parseDimension(cs.paddingRight);
|
|
114637
|
+
var paddingBottom = svg2 ? 0 : parseDimension(cs.paddingBottom);
|
|
114638
|
+
var paddingLeft = svg2 ? 0 : parseDimension(cs.paddingLeft);
|
|
114639
|
+
var borderTop2 = svg2 ? 0 : parseDimension(cs.borderTopWidth);
|
|
114640
|
+
var borderRight2 = svg2 ? 0 : parseDimension(cs.borderRightWidth);
|
|
114641
|
+
var borderBottom2 = svg2 ? 0 : parseDimension(cs.borderBottomWidth);
|
|
114642
|
+
var borderLeft2 = svg2 ? 0 : parseDimension(cs.borderLeftWidth);
|
|
114643
|
+
var horizontalPadding = paddingLeft + paddingRight;
|
|
114644
|
+
var verticalPadding = paddingTop + paddingBottom;
|
|
114645
|
+
var horizontalBorderArea = borderLeft2 + borderRight2;
|
|
114646
|
+
var verticalBorderArea = borderTop2 + borderBottom2;
|
|
114647
|
+
var horizontalScrollbarThickness = !canScrollHorizontally ? 0 : target.offsetHeight - verticalBorderArea - target.clientHeight;
|
|
114648
|
+
var verticalScrollbarThickness = !canScrollVertically ? 0 : target.offsetWidth - horizontalBorderArea - target.clientWidth;
|
|
114649
|
+
var widthReduction = removePadding ? horizontalPadding + horizontalBorderArea : 0;
|
|
114650
|
+
var heightReduction = removePadding ? verticalPadding + verticalBorderArea : 0;
|
|
114651
|
+
var contentWidth = svg2 ? svg2.width : parseDimension(cs.width) - widthReduction - verticalScrollbarThickness;
|
|
114652
|
+
var contentHeight = svg2 ? svg2.height : parseDimension(cs.height) - heightReduction - horizontalScrollbarThickness;
|
|
114653
|
+
var borderBoxWidth = contentWidth + horizontalPadding + verticalScrollbarThickness + horizontalBorderArea;
|
|
114654
|
+
var borderBoxHeight = contentHeight + verticalPadding + horizontalScrollbarThickness + verticalBorderArea;
|
|
114655
|
+
var boxes = freeze({
|
|
114656
|
+
devicePixelContentBoxSize: size$1(Math.round(contentWidth * devicePixelRatio), Math.round(contentHeight * devicePixelRatio), switchSizes),
|
|
114657
|
+
borderBoxSize: size$1(borderBoxWidth, borderBoxHeight, switchSizes),
|
|
114658
|
+
contentBoxSize: size$1(contentWidth, contentHeight, switchSizes),
|
|
114659
|
+
contentRect: new DOMRectReadOnly$1(paddingLeft, paddingTop, contentWidth, contentHeight)
|
|
114660
|
+
});
|
|
114661
|
+
cache.set(target, boxes);
|
|
114662
|
+
return boxes;
|
|
114663
|
+
};
|
|
114664
|
+
var calculateBoxSize = function(target, observedBox, forceRecalculation) {
|
|
114665
|
+
var _a3 = calculateBoxSizes(target, forceRecalculation), borderBoxSize = _a3.borderBoxSize, contentBoxSize = _a3.contentBoxSize, devicePixelContentBoxSize = _a3.devicePixelContentBoxSize;
|
|
114666
|
+
switch (observedBox) {
|
|
114667
|
+
case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:
|
|
114668
|
+
return devicePixelContentBoxSize;
|
|
114669
|
+
case ResizeObserverBoxOptions.BORDER_BOX:
|
|
114670
|
+
return borderBoxSize;
|
|
114671
|
+
default:
|
|
114672
|
+
return contentBoxSize;
|
|
114673
|
+
}
|
|
114674
|
+
};
|
|
114675
|
+
var ResizeObserverEntry = /* @__PURE__ */ function() {
|
|
114676
|
+
function ResizeObserverEntry2(target) {
|
|
114677
|
+
var boxes = calculateBoxSizes(target);
|
|
114678
|
+
this.target = target;
|
|
114679
|
+
this.contentRect = boxes.contentRect;
|
|
114680
|
+
this.borderBoxSize = freeze([boxes.borderBoxSize]);
|
|
114681
|
+
this.contentBoxSize = freeze([boxes.contentBoxSize]);
|
|
114682
|
+
this.devicePixelContentBoxSize = freeze([boxes.devicePixelContentBoxSize]);
|
|
114683
|
+
}
|
|
114684
|
+
return ResizeObserverEntry2;
|
|
114685
|
+
}();
|
|
114686
|
+
var calculateDepthForNode = function(node2) {
|
|
114687
|
+
if (isHidden(node2)) {
|
|
114688
|
+
return Infinity;
|
|
114689
|
+
}
|
|
114690
|
+
var depth = 0;
|
|
114691
|
+
var parent2 = node2.parentNode;
|
|
114692
|
+
while (parent2) {
|
|
114693
|
+
depth += 1;
|
|
114694
|
+
parent2 = parent2.parentNode;
|
|
114695
|
+
}
|
|
114696
|
+
return depth;
|
|
114697
|
+
};
|
|
114698
|
+
var broadcastActiveObservations = function() {
|
|
114699
|
+
var shallowestDepth = Infinity;
|
|
114700
|
+
var callbacks2 = [];
|
|
114701
|
+
resizeObservers.forEach(function processObserver(ro) {
|
|
114702
|
+
if (ro.activeTargets.length === 0) {
|
|
114703
|
+
return;
|
|
114704
|
+
}
|
|
114705
|
+
var entries = [];
|
|
114706
|
+
ro.activeTargets.forEach(function processTarget(ot) {
|
|
114707
|
+
var entry = new ResizeObserverEntry(ot.target);
|
|
114708
|
+
var targetDepth = calculateDepthForNode(ot.target);
|
|
114709
|
+
entries.push(entry);
|
|
114710
|
+
ot.lastReportedSize = calculateBoxSize(ot.target, ot.observedBox);
|
|
114711
|
+
if (targetDepth < shallowestDepth) {
|
|
114712
|
+
shallowestDepth = targetDepth;
|
|
114713
|
+
}
|
|
114714
|
+
});
|
|
114715
|
+
callbacks2.push(function resizeObserverCallback() {
|
|
114716
|
+
ro.callback.call(ro.observer, entries, ro.observer);
|
|
114717
|
+
});
|
|
114718
|
+
ro.activeTargets.splice(0, ro.activeTargets.length);
|
|
114719
|
+
});
|
|
114720
|
+
for (var _i2 = 0, callbacks_1 = callbacks2; _i2 < callbacks_1.length; _i2++) {
|
|
114721
|
+
var callback = callbacks_1[_i2];
|
|
114722
|
+
callback();
|
|
114723
|
+
}
|
|
114724
|
+
return shallowestDepth;
|
|
114725
|
+
};
|
|
114726
|
+
var gatherActiveObservationsAtDepth = function(depth) {
|
|
114727
|
+
resizeObservers.forEach(function processObserver(ro) {
|
|
114728
|
+
ro.activeTargets.splice(0, ro.activeTargets.length);
|
|
114729
|
+
ro.skippedTargets.splice(0, ro.skippedTargets.length);
|
|
114730
|
+
ro.observationTargets.forEach(function processTarget(ot) {
|
|
114731
|
+
if (ot.isActive()) {
|
|
114732
|
+
if (calculateDepthForNode(ot.target) > depth) {
|
|
114733
|
+
ro.activeTargets.push(ot);
|
|
114734
|
+
} else {
|
|
114735
|
+
ro.skippedTargets.push(ot);
|
|
114736
|
+
}
|
|
114737
|
+
}
|
|
114738
|
+
});
|
|
114739
|
+
});
|
|
114740
|
+
};
|
|
114741
|
+
var process = function() {
|
|
114742
|
+
var depth = 0;
|
|
114743
|
+
gatherActiveObservationsAtDepth(depth);
|
|
114744
|
+
while (hasActiveObservations()) {
|
|
114745
|
+
depth = broadcastActiveObservations();
|
|
114746
|
+
gatherActiveObservationsAtDepth(depth);
|
|
114747
|
+
}
|
|
114748
|
+
if (hasSkippedObservations()) {
|
|
114749
|
+
deliverResizeLoopError();
|
|
114750
|
+
}
|
|
114751
|
+
return depth > 0;
|
|
114752
|
+
};
|
|
114753
|
+
var trigger;
|
|
114754
|
+
var callbacks = [];
|
|
114755
|
+
var notify = function() {
|
|
114756
|
+
return callbacks.splice(0).forEach(function(cb) {
|
|
114757
|
+
return cb();
|
|
114758
|
+
});
|
|
114759
|
+
};
|
|
114760
|
+
var queueMicroTask = function(callback) {
|
|
114761
|
+
if (!trigger) {
|
|
114762
|
+
var toggle_1 = 0;
|
|
114763
|
+
var el_1 = document.createTextNode("");
|
|
114764
|
+
var config2 = { characterData: true };
|
|
114765
|
+
new MutationObserver(function() {
|
|
114766
|
+
return notify();
|
|
114767
|
+
}).observe(el_1, config2);
|
|
114768
|
+
trigger = function() {
|
|
114769
|
+
el_1.textContent = "".concat(toggle_1 ? toggle_1-- : toggle_1++);
|
|
114770
|
+
};
|
|
114771
|
+
}
|
|
114772
|
+
callbacks.push(callback);
|
|
114773
|
+
trigger();
|
|
114774
|
+
};
|
|
114775
|
+
var queueResizeObserver = function(cb) {
|
|
114776
|
+
queueMicroTask(function ResizeObserver2() {
|
|
114777
|
+
requestAnimationFrame(cb);
|
|
114778
|
+
});
|
|
114779
|
+
};
|
|
114780
|
+
var watching = 0;
|
|
114781
|
+
var isWatching = function() {
|
|
114782
|
+
return !!watching;
|
|
114783
|
+
};
|
|
114784
|
+
var CATCH_PERIOD = 250;
|
|
114785
|
+
var observerConfig = { attributes: true, characterData: true, childList: true, subtree: true };
|
|
114786
|
+
var events = [
|
|
114787
|
+
"resize",
|
|
114788
|
+
"load",
|
|
114789
|
+
"transitionend",
|
|
114790
|
+
"animationend",
|
|
114791
|
+
"animationstart",
|
|
114792
|
+
"animationiteration",
|
|
114793
|
+
"keyup",
|
|
114794
|
+
"keydown",
|
|
114795
|
+
"mouseup",
|
|
114796
|
+
"mousedown",
|
|
114797
|
+
"mouseover",
|
|
114798
|
+
"mouseout",
|
|
114799
|
+
"blur",
|
|
114800
|
+
"focus"
|
|
114801
|
+
];
|
|
114802
|
+
var time = function(timeout2) {
|
|
114803
|
+
if (timeout2 === void 0) {
|
|
114804
|
+
timeout2 = 0;
|
|
114805
|
+
}
|
|
114806
|
+
return Date.now() + timeout2;
|
|
114807
|
+
};
|
|
114808
|
+
var scheduled = false;
|
|
114809
|
+
var Scheduler = function() {
|
|
114810
|
+
function Scheduler2() {
|
|
114811
|
+
var _this = this;
|
|
114812
|
+
this.stopped = true;
|
|
114813
|
+
this.listener = function() {
|
|
114814
|
+
return _this.schedule();
|
|
114815
|
+
};
|
|
114816
|
+
}
|
|
114817
|
+
Scheduler2.prototype.run = function(timeout2) {
|
|
114818
|
+
var _this = this;
|
|
114819
|
+
if (timeout2 === void 0) {
|
|
114820
|
+
timeout2 = CATCH_PERIOD;
|
|
114821
|
+
}
|
|
114822
|
+
if (scheduled) {
|
|
114823
|
+
return;
|
|
114824
|
+
}
|
|
114825
|
+
scheduled = true;
|
|
114826
|
+
var until = time(timeout2);
|
|
114827
|
+
queueResizeObserver(function() {
|
|
114828
|
+
var elementsHaveResized = false;
|
|
114829
|
+
try {
|
|
114830
|
+
elementsHaveResized = process();
|
|
114831
|
+
} finally {
|
|
114832
|
+
scheduled = false;
|
|
114833
|
+
timeout2 = until - time();
|
|
114834
|
+
if (!isWatching()) {
|
|
114835
|
+
return;
|
|
114836
|
+
}
|
|
114837
|
+
if (elementsHaveResized) {
|
|
114838
|
+
_this.run(1e3);
|
|
114839
|
+
} else if (timeout2 > 0) {
|
|
114840
|
+
_this.run(timeout2);
|
|
114841
|
+
} else {
|
|
114842
|
+
_this.start();
|
|
114843
|
+
}
|
|
114844
|
+
}
|
|
114845
|
+
});
|
|
114846
|
+
};
|
|
114847
|
+
Scheduler2.prototype.schedule = function() {
|
|
114848
|
+
this.stop();
|
|
114849
|
+
this.run();
|
|
114850
|
+
};
|
|
114851
|
+
Scheduler2.prototype.observe = function() {
|
|
114852
|
+
var _this = this;
|
|
114853
|
+
var cb = function() {
|
|
114854
|
+
return _this.observer && _this.observer.observe(document.body, observerConfig);
|
|
114855
|
+
};
|
|
114856
|
+
document.body ? cb() : global$1.addEventListener("DOMContentLoaded", cb);
|
|
114857
|
+
};
|
|
114858
|
+
Scheduler2.prototype.start = function() {
|
|
114859
|
+
var _this = this;
|
|
114860
|
+
if (this.stopped) {
|
|
114861
|
+
this.stopped = false;
|
|
114862
|
+
this.observer = new MutationObserver(this.listener);
|
|
114863
|
+
this.observe();
|
|
114864
|
+
events.forEach(function(name) {
|
|
114865
|
+
return global$1.addEventListener(name, _this.listener, true);
|
|
114866
|
+
});
|
|
114867
|
+
}
|
|
114868
|
+
};
|
|
114869
|
+
Scheduler2.prototype.stop = function() {
|
|
114870
|
+
var _this = this;
|
|
114871
|
+
if (!this.stopped) {
|
|
114872
|
+
this.observer && this.observer.disconnect();
|
|
114873
|
+
events.forEach(function(name) {
|
|
114874
|
+
return global$1.removeEventListener(name, _this.listener, true);
|
|
114875
|
+
});
|
|
114876
|
+
this.stopped = true;
|
|
114877
|
+
}
|
|
114878
|
+
};
|
|
114879
|
+
return Scheduler2;
|
|
114880
|
+
}();
|
|
114881
|
+
var scheduler = new Scheduler();
|
|
114882
|
+
var updateCount = function(n2) {
|
|
114883
|
+
!watching && n2 > 0 && scheduler.start();
|
|
114884
|
+
watching += n2;
|
|
114885
|
+
!watching && scheduler.stop();
|
|
114886
|
+
};
|
|
114887
|
+
var skipNotifyOnElement = function(target) {
|
|
114888
|
+
return !isSVG(target) && !isReplacedElement(target) && getComputedStyle(target).display === "inline";
|
|
114889
|
+
};
|
|
114890
|
+
var ResizeObservation = function() {
|
|
114891
|
+
function ResizeObservation2(target, observedBox) {
|
|
114892
|
+
this.target = target;
|
|
114893
|
+
this.observedBox = observedBox || ResizeObserverBoxOptions.CONTENT_BOX;
|
|
114894
|
+
this.lastReportedSize = {
|
|
114895
|
+
inlineSize: 0,
|
|
114896
|
+
blockSize: 0
|
|
114897
|
+
};
|
|
114898
|
+
}
|
|
114899
|
+
ResizeObservation2.prototype.isActive = function() {
|
|
114900
|
+
var size2 = calculateBoxSize(this.target, this.observedBox, true);
|
|
114901
|
+
if (skipNotifyOnElement(this.target)) {
|
|
114902
|
+
this.lastReportedSize = size2;
|
|
114903
|
+
}
|
|
114904
|
+
if (this.lastReportedSize.inlineSize !== size2.inlineSize || this.lastReportedSize.blockSize !== size2.blockSize) {
|
|
114905
|
+
return true;
|
|
114906
|
+
}
|
|
114907
|
+
return false;
|
|
114908
|
+
};
|
|
114909
|
+
return ResizeObservation2;
|
|
114910
|
+
}();
|
|
114911
|
+
var ResizeObserverDetail = /* @__PURE__ */ function() {
|
|
114912
|
+
function ResizeObserverDetail2(resizeObserver, callback) {
|
|
114913
|
+
this.activeTargets = [];
|
|
114914
|
+
this.skippedTargets = [];
|
|
114915
|
+
this.observationTargets = [];
|
|
114916
|
+
this.observer = resizeObserver;
|
|
114917
|
+
this.callback = callback;
|
|
114918
|
+
}
|
|
114919
|
+
return ResizeObserverDetail2;
|
|
114920
|
+
}();
|
|
114921
|
+
var observerMap = /* @__PURE__ */ new WeakMap();
|
|
114922
|
+
var getObservationIndex = function(observationTargets, target) {
|
|
114923
|
+
for (var i2 = 0; i2 < observationTargets.length; i2 += 1) {
|
|
114924
|
+
if (observationTargets[i2].target === target) {
|
|
114925
|
+
return i2;
|
|
114926
|
+
}
|
|
114927
|
+
}
|
|
114928
|
+
return -1;
|
|
114929
|
+
};
|
|
114930
|
+
var ResizeObserverController = function() {
|
|
114931
|
+
function ResizeObserverController2() {
|
|
114932
|
+
}
|
|
114933
|
+
ResizeObserverController2.connect = function(resizeObserver, callback) {
|
|
114934
|
+
var detail = new ResizeObserverDetail(resizeObserver, callback);
|
|
114935
|
+
observerMap.set(resizeObserver, detail);
|
|
114936
|
+
};
|
|
114937
|
+
ResizeObserverController2.observe = function(resizeObserver, target, options2) {
|
|
114938
|
+
var detail = observerMap.get(resizeObserver);
|
|
114939
|
+
var firstObservation = detail.observationTargets.length === 0;
|
|
114940
|
+
if (getObservationIndex(detail.observationTargets, target) < 0) {
|
|
114941
|
+
firstObservation && resizeObservers.push(detail);
|
|
114942
|
+
detail.observationTargets.push(new ResizeObservation(target, options2 && options2.box));
|
|
114943
|
+
updateCount(1);
|
|
114944
|
+
scheduler.schedule();
|
|
114945
|
+
}
|
|
114946
|
+
};
|
|
114947
|
+
ResizeObserverController2.unobserve = function(resizeObserver, target) {
|
|
114948
|
+
var detail = observerMap.get(resizeObserver);
|
|
114949
|
+
var index2 = getObservationIndex(detail.observationTargets, target);
|
|
114950
|
+
var lastObservation = detail.observationTargets.length === 1;
|
|
114951
|
+
if (index2 >= 0) {
|
|
114952
|
+
lastObservation && resizeObservers.splice(resizeObservers.indexOf(detail), 1);
|
|
114953
|
+
detail.observationTargets.splice(index2, 1);
|
|
114954
|
+
updateCount(-1);
|
|
114955
|
+
}
|
|
114956
|
+
};
|
|
114957
|
+
ResizeObserverController2.disconnect = function(resizeObserver) {
|
|
114958
|
+
var _this = this;
|
|
114959
|
+
var detail = observerMap.get(resizeObserver);
|
|
114960
|
+
detail.observationTargets.slice().forEach(function(ot) {
|
|
114961
|
+
return _this.unobserve(resizeObserver, ot.target);
|
|
114962
|
+
});
|
|
114963
|
+
detail.activeTargets.splice(0, detail.activeTargets.length);
|
|
114964
|
+
};
|
|
114965
|
+
return ResizeObserverController2;
|
|
114966
|
+
}();
|
|
114967
|
+
var ResizeObserver$2 = function() {
|
|
114968
|
+
function ResizeObserver2(callback) {
|
|
114969
|
+
if (arguments.length === 0) {
|
|
114970
|
+
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
114971
|
+
}
|
|
114972
|
+
if (typeof callback !== "function") {
|
|
114973
|
+
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
114974
|
+
}
|
|
114975
|
+
ResizeObserverController.connect(this, callback);
|
|
114976
|
+
}
|
|
114977
|
+
ResizeObserver2.prototype.observe = function(target, options2) {
|
|
114978
|
+
if (arguments.length === 0) {
|
|
114979
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
114980
|
+
}
|
|
114981
|
+
if (!isElement$1(target)) {
|
|
114982
|
+
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
114983
|
+
}
|
|
114984
|
+
ResizeObserverController.observe(this, target, options2);
|
|
114985
|
+
};
|
|
114986
|
+
ResizeObserver2.prototype.unobserve = function(target) {
|
|
114987
|
+
if (arguments.length === 0) {
|
|
114988
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
114989
|
+
}
|
|
114990
|
+
if (!isElement$1(target)) {
|
|
114991
|
+
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
114992
|
+
}
|
|
114993
|
+
ResizeObserverController.unobserve(this, target);
|
|
114994
|
+
};
|
|
114995
|
+
ResizeObserver2.prototype.disconnect = function() {
|
|
114996
|
+
ResizeObserverController.disconnect(this);
|
|
114997
|
+
};
|
|
114998
|
+
ResizeObserver2.toString = function() {
|
|
114999
|
+
return "function ResizeObserver () { [polyfill code] }";
|
|
115000
|
+
};
|
|
115001
|
+
return ResizeObserver2;
|
|
115002
|
+
}();
|
|
115003
|
+
const usePassiveLayoutEffect = React$2[typeof document !== "undefined" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"];
|
|
115004
|
+
const useLatest = (current) => {
|
|
115005
|
+
const storedValue = React__namespace.useRef(current);
|
|
115006
|
+
React__namespace.useEffect(() => {
|
|
115007
|
+
storedValue.current = current;
|
|
115008
|
+
});
|
|
115009
|
+
return storedValue;
|
|
115010
|
+
};
|
|
115011
|
+
const ResizeObserver$1 = typeof window !== "undefined" && "ResizeObserver" in window ? (
|
|
115012
|
+
// @ts-ignore
|
|
115013
|
+
window.ResizeObserver
|
|
115014
|
+
) : ResizeObserver$2;
|
|
115015
|
+
function _ref() {
|
|
115016
|
+
}
|
|
115017
|
+
function useResizeObserver(target, callback) {
|
|
115018
|
+
const resizeObserver = getResizeObserver();
|
|
115019
|
+
const storedCallback = useLatest(callback);
|
|
115020
|
+
usePassiveLayoutEffect(() => {
|
|
115021
|
+
let didUnsubscribe = false;
|
|
115022
|
+
const targetEl = target && "current" in target ? target.current : target;
|
|
115023
|
+
if (!targetEl) return _ref;
|
|
115024
|
+
function cb(entry, observer) {
|
|
115025
|
+
if (didUnsubscribe) return;
|
|
115026
|
+
storedCallback.current(entry, observer);
|
|
115027
|
+
}
|
|
115028
|
+
resizeObserver.subscribe(targetEl, cb);
|
|
115029
|
+
return () => {
|
|
115030
|
+
didUnsubscribe = true;
|
|
115031
|
+
resizeObserver.unsubscribe(targetEl, cb);
|
|
115032
|
+
};
|
|
115033
|
+
}, [target, resizeObserver, storedCallback]);
|
|
115034
|
+
return resizeObserver.observer;
|
|
115035
|
+
}
|
|
115036
|
+
function createResizeObserver() {
|
|
115037
|
+
let ticking = false;
|
|
115038
|
+
let allEntries = [];
|
|
115039
|
+
const callbacks2 = /* @__PURE__ */ new Map();
|
|
115040
|
+
const observer = new ResizeObserver$1((entries, obs) => {
|
|
115041
|
+
allEntries = allEntries.concat(entries);
|
|
115042
|
+
function _ref22() {
|
|
115043
|
+
const triggered = /* @__PURE__ */ new Set();
|
|
115044
|
+
for (let i2 = 0; i2 < allEntries.length; i2++) {
|
|
115045
|
+
if (triggered.has(allEntries[i2].target)) continue;
|
|
115046
|
+
triggered.add(allEntries[i2].target);
|
|
115047
|
+
const cbs = callbacks2.get(allEntries[i2].target);
|
|
115048
|
+
cbs === null || cbs === void 0 ? void 0 : cbs.forEach((cb) => cb(allEntries[i2], obs));
|
|
115049
|
+
}
|
|
115050
|
+
allEntries = [];
|
|
115051
|
+
ticking = false;
|
|
115052
|
+
}
|
|
115053
|
+
if (!ticking) {
|
|
115054
|
+
window.requestAnimationFrame(_ref22);
|
|
115055
|
+
}
|
|
115056
|
+
ticking = true;
|
|
115057
|
+
});
|
|
115058
|
+
return {
|
|
115059
|
+
observer,
|
|
115060
|
+
subscribe(target, callback) {
|
|
115061
|
+
var _callbacks$get;
|
|
115062
|
+
observer.observe(target);
|
|
115063
|
+
const cbs = (_callbacks$get = callbacks2.get(target)) !== null && _callbacks$get !== void 0 ? _callbacks$get : [];
|
|
115064
|
+
cbs.push(callback);
|
|
115065
|
+
callbacks2.set(target, cbs);
|
|
115066
|
+
},
|
|
115067
|
+
unsubscribe(target, callback) {
|
|
115068
|
+
var _callbacks$get2;
|
|
115069
|
+
const cbs = (_callbacks$get2 = callbacks2.get(target)) !== null && _callbacks$get2 !== void 0 ? _callbacks$get2 : [];
|
|
115070
|
+
if (cbs.length === 1) {
|
|
115071
|
+
observer.unobserve(target);
|
|
115072
|
+
callbacks2.delete(target);
|
|
115073
|
+
return;
|
|
115074
|
+
}
|
|
115075
|
+
const cbIndex = cbs.indexOf(callback);
|
|
115076
|
+
if (cbIndex !== -1) cbs.splice(cbIndex, 1);
|
|
115077
|
+
callbacks2.set(target, cbs);
|
|
115078
|
+
}
|
|
115079
|
+
};
|
|
115080
|
+
}
|
|
115081
|
+
let _resizeObserver;
|
|
115082
|
+
const getResizeObserver = () => !_resizeObserver ? _resizeObserver = createResizeObserver() : _resizeObserver;
|
|
115083
|
+
function ExpandableTableDataCell(props) {
|
|
115084
|
+
const [isExpanded, setIsExpanded] = React$2.useState(false);
|
|
115085
|
+
const [isOverflowingWhenNotExpanded, setIsOverflowingWhenNotExpanded] = React$2.useState(false);
|
|
115086
|
+
const tdRef = React$2.useRef(null);
|
|
115087
|
+
useResizeObserver(tdRef, ({ target }) => {
|
|
115088
|
+
if (!isExpanded) {
|
|
115089
|
+
if (target) {
|
|
115090
|
+
const contentElement = target.getElementsByTagName("p")[0];
|
|
115091
|
+
if (contentElement) {
|
|
115092
|
+
setIsOverflowingWhenNotExpanded(
|
|
115093
|
+
contentElement.scrollHeight > contentElement.clientHeight || contentElement.scrollWidth > contentElement.clientWidth
|
|
115094
|
+
);
|
|
115095
|
+
}
|
|
115096
|
+
}
|
|
115097
|
+
}
|
|
115098
|
+
});
|
|
115099
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
115100
|
+
"td",
|
|
115101
|
+
{
|
|
115102
|
+
...props,
|
|
115103
|
+
className: `ExpandableTableData ${props.className ? props.className : ""}`,
|
|
115104
|
+
"aria-expanded": isExpanded,
|
|
115105
|
+
ref: tdRef,
|
|
115106
|
+
children: [
|
|
115107
|
+
isOverflowingWhenNotExpanded && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115108
|
+
ExpandCollapseButton,
|
|
115109
|
+
{
|
|
115110
|
+
isExpanded,
|
|
115111
|
+
className: "ExpandableTableData__expandButton",
|
|
115112
|
+
onClick: () => setIsExpanded(!isExpanded)
|
|
115113
|
+
}
|
|
115114
|
+
),
|
|
115115
|
+
props.children
|
|
115116
|
+
]
|
|
115117
|
+
}
|
|
115118
|
+
);
|
|
115119
|
+
}
|
|
115120
|
+
function CellRenderer(cell) {
|
|
115121
|
+
var _a3, _b2, _c2;
|
|
115122
|
+
const getWrapInExpandableTd = (_a3 = cell.getContext().table.options.meta) == null ? void 0 : _a3.getWrapInExpandableTd;
|
|
115123
|
+
const wrapInExpandableTd = getWrapInExpandableTd && getWrapInExpandableTd(cell);
|
|
115124
|
+
const TableDataCellElement = wrapInExpandableTd ? ExpandableTableDataCell : "td";
|
|
115125
|
+
const renderPlaceholderData = (_b2 = cell.getContext().table.options.meta) == null ? void 0 : _b2.renderPlaceholderData;
|
|
115126
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115127
|
+
TableDataCellElement,
|
|
115128
|
+
{
|
|
115129
|
+
style: {
|
|
115130
|
+
width: `calc(var(${getColumnSizeCssVariable(cell.column.id)}) * 1px)`,
|
|
115131
|
+
textAlign: (_c2 = cell.column.columnDef.meta) == null ? void 0 : _c2.textAlign
|
|
115132
|
+
},
|
|
115133
|
+
children: renderPlaceholderData ? /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { width: "80%", height: "20px" }) }) : flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
115134
|
+
},
|
|
115135
|
+
cell.id
|
|
115136
|
+
);
|
|
115137
|
+
}
|
|
115138
|
+
function TableBody(props) {
|
|
115139
|
+
const { table: table2 } = props;
|
|
115140
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: table2.getRowModel().rows.map((row) => /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: row.getVisibleCells().map(CellRenderer) }, row.id)) });
|
|
115141
|
+
}
|
|
115142
|
+
const MemoizedTableBody = React$2.memo(TableBody, (prev2, next2) => {
|
|
115143
|
+
return prev2.table.options.data === next2.table.options.data;
|
|
115144
|
+
});
|
|
115145
|
+
function StyledTanStackTable(props) {
|
|
115146
|
+
const { table: table2, styledTableContainerProps, fullWidth = true } = props;
|
|
115147
|
+
const columnSizeVars = React$2.useMemo(() => {
|
|
115148
|
+
const headers = table2.getFlatHeaders();
|
|
115149
|
+
const colSizes = {};
|
|
115150
|
+
for (let i2 = 0; i2 < headers.length; i2++) {
|
|
115151
|
+
const header = headers[i2];
|
|
115152
|
+
colSizes[getHeaderSizeCssVariable(header.id)] = header.getSize();
|
|
115153
|
+
colSizes[getColumnSizeCssVariable(header.column.id)] = header.column.getSize();
|
|
115154
|
+
}
|
|
115155
|
+
return colSizes;
|
|
115156
|
+
}, [table2.getState().columnSizingInfo, table2.getState().columnSizing]);
|
|
115157
|
+
const tableWidth = fullWidth ? "100%" : table2.getTotalSize();
|
|
115158
|
+
const TableBodyElement = table2.getState().columnSizingInfo.isResizingColumn ? MemoizedTableBody : TableBody;
|
|
115159
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTableContainer, { ...styledTableContainerProps, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { style: { ...columnSizeVars, width: tableWidth }, children: [
|
|
115160
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { children: table2.getHeaderGroups().map((headerGroup) => {
|
|
115161
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
115162
|
+
"th",
|
|
115163
|
+
{
|
|
115164
|
+
colSpan: header.colSpan,
|
|
115165
|
+
style: {
|
|
115166
|
+
width: `calc(var(${getHeaderSizeCssVariable(
|
|
115167
|
+
header.id
|
|
115168
|
+
)}) * 1px)`
|
|
115169
|
+
},
|
|
115170
|
+
children: [
|
|
115171
|
+
header.isPlaceholder ? null : flexRender(
|
|
115172
|
+
header.column.columnDef.header,
|
|
115173
|
+
header.getContext()
|
|
115174
|
+
),
|
|
115175
|
+
header.column.getCanResize() && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115176
|
+
"div",
|
|
115177
|
+
{
|
|
115178
|
+
className: `resizer ${header.column.getIsResizing() ? "isResizing" : ""}`,
|
|
115179
|
+
onMouseDown: header.getResizeHandler(),
|
|
115180
|
+
onTouchStart: header.getResizeHandler()
|
|
115181
|
+
}
|
|
115182
|
+
)
|
|
115183
|
+
]
|
|
115184
|
+
},
|
|
115185
|
+
header.id
|
|
115186
|
+
)) }, headerGroup.id);
|
|
115187
|
+
}) }),
|
|
115188
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableBodyElement, { table: table2 })
|
|
115189
|
+
] }) });
|
|
115190
|
+
}
|
|
115042
115191
|
const columnHelper$3 = createColumnHelper();
|
|
115043
115192
|
function SynapseTable(props) {
|
|
115044
115193
|
var _a3, _b2, _c2, _d2;
|
|
@@ -115118,14 +115267,16 @@ ${e2.message}`);
|
|
|
115118
115267
|
]
|
|
115119
115268
|
);
|
|
115120
115269
|
const columnVisibility = React$2.useMemo(
|
|
115121
|
-
() =>
|
|
115270
|
+
() => selectColumns.reduce((prev2, curr) => {
|
|
115122
115271
|
return {
|
|
115123
115272
|
...prev2,
|
|
115124
115273
|
[curr.name]: columnsToShowInTable.includes(curr.name)
|
|
115125
115274
|
};
|
|
115126
115275
|
}, prependColumnVisibility),
|
|
115127
|
-
[columnsToShowInTable,
|
|
115276
|
+
[columnsToShowInTable, selectColumns, prependColumnVisibility]
|
|
115128
115277
|
);
|
|
115278
|
+
const { dataHasBeenPrefetched } = usePrefetchTableData();
|
|
115279
|
+
const renderTableDataPlaceholder = !dataHasBeenPrefetched;
|
|
115129
115280
|
const table2 = useReactTable({
|
|
115130
115281
|
data: ((_c2 = data == null ? void 0 : data.queryResult) == null ? void 0 : _c2.queryResults.rows) ?? [],
|
|
115131
115282
|
columns: columns2,
|
|
@@ -115142,10 +115293,19 @@ ${e2.message}`);
|
|
|
115142
115293
|
meta: {
|
|
115143
115294
|
// make the rowEntityIDColumnIndex available to all cell renderers
|
|
115144
115295
|
rowEntityIDColumnIndex,
|
|
115145
|
-
rowEntityVersionColumnIndex
|
|
115296
|
+
rowEntityVersionColumnIndex,
|
|
115297
|
+
renderPlaceholderData: renderTableDataPlaceholder,
|
|
115298
|
+
getWrapInExpandableTd: (cell) => {
|
|
115299
|
+
const selectColumn = selectColumns.find(
|
|
115300
|
+
(cm) => cm.name === cell.column.id
|
|
115301
|
+
);
|
|
115302
|
+
return Boolean(
|
|
115303
|
+
selectColumn && /* JSON handles its own overflow*/
|
|
115304
|
+
selectColumn.columnType !== ColumnTypeEnum.JSON
|
|
115305
|
+
);
|
|
115306
|
+
}
|
|
115146
115307
|
}
|
|
115147
115308
|
});
|
|
115148
|
-
const { dataHasBeenPrefetched } = usePrefetchTableData();
|
|
115149
115309
|
if (!data && isLoadingNewBundle) {
|
|
115150
115310
|
return loadingScreen;
|
|
115151
115311
|
} else if (!data) {
|
|
@@ -115166,59 +115326,15 @@ ${e2.message}`);
|
|
|
115166
115326
|
}
|
|
115167
115327
|
),
|
|
115168
115328
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115169
|
-
|
|
115329
|
+
StyledTanStackTable,
|
|
115170
115330
|
{
|
|
115171
|
-
|
|
115172
|
-
|
|
115173
|
-
|
|
115174
|
-
|
|
115175
|
-
|
|
115176
|
-
|
|
115177
|
-
|
|
115178
|
-
colSpan: header.colSpan,
|
|
115179
|
-
style: { width: header.getSize() },
|
|
115180
|
-
children: [
|
|
115181
|
-
header.isPlaceholder ? null : flexRender(
|
|
115182
|
-
header.column.columnDef.header,
|
|
115183
|
-
header.getContext()
|
|
115184
|
-
),
|
|
115185
|
-
header.column.getCanResize() && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115186
|
-
"div",
|
|
115187
|
-
{
|
|
115188
|
-
className: `resizer ${header.column.getIsResizing() ? "isResizing" : ""}`,
|
|
115189
|
-
onMouseDown: header.getResizeHandler(),
|
|
115190
|
-
onTouchStart: header.getResizeHandler()
|
|
115191
|
-
}
|
|
115192
|
-
)
|
|
115193
|
-
]
|
|
115194
|
-
},
|
|
115195
|
-
header.id
|
|
115196
|
-
)) }, headerGroup.id);
|
|
115197
|
-
}) }),
|
|
115198
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: table2.getRowModel().rows.map((row) => /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: row.getVisibleCells().map((cell) => {
|
|
115199
|
-
var _a4;
|
|
115200
|
-
const selectColumn = selectColumns.find(
|
|
115201
|
-
(cm) => cm.name === cell.column.id
|
|
115202
|
-
);
|
|
115203
|
-
const shouldWrapInExpandable = selectColumn && selectColumn.columnType !== ColumnTypeEnum.JSON;
|
|
115204
|
-
const TableDataCellElement = shouldWrapInExpandable ? ExpandableTableDataCell : "td";
|
|
115205
|
-
const renderPlaceholder = !dataHasBeenPrefetched;
|
|
115206
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
115207
|
-
TableDataCellElement,
|
|
115208
|
-
{
|
|
115209
|
-
style: {
|
|
115210
|
-
width: cell.column.getSize(),
|
|
115211
|
-
textAlign: (_a4 = cell.column.columnDef.meta) == null ? void 0 : _a4.textAlign
|
|
115212
|
-
},
|
|
115213
|
-
children: renderPlaceholder ? /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { width: "80%", height: "20px" }) }) : flexRender(
|
|
115214
|
-
cell.column.columnDef.cell,
|
|
115215
|
-
cell.getContext()
|
|
115216
|
-
)
|
|
115217
|
-
},
|
|
115218
|
-
cell.id
|
|
115219
|
-
);
|
|
115220
|
-
}) }, row.id)) })
|
|
115221
|
-
] })
|
|
115331
|
+
styledTableContainerProps: {
|
|
115332
|
+
className: "SynapseTable",
|
|
115333
|
+
["data-testid"]: "SynapseTable",
|
|
115334
|
+
density: "default"
|
|
115335
|
+
},
|
|
115336
|
+
table: table2,
|
|
115337
|
+
fullWidth: false
|
|
115222
115338
|
}
|
|
115223
115339
|
),
|
|
115224
115340
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: { mt: 2, textAlign: "right" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(TablePagination, {}) })
|
|
@@ -116367,8 +116483,7 @@ ${e2.message}`);
|
|
|
116367
116483
|
accessType
|
|
116368
116484
|
),
|
|
116369
116485
|
onRemove: () => removeResourceAccessItem(resourceAccess.principalId)
|
|
116370
|
-
}
|
|
116371
|
-
resourceAccess.principalId
|
|
116486
|
+
}
|
|
116372
116487
|
) }, resourceAccess.principalId);
|
|
116373
116488
|
}) })
|
|
116374
116489
|
] }),
|
|
@@ -116519,10 +116634,15 @@ ${e2.message}`);
|
|
|
116519
116634
|
};
|
|
116520
116635
|
}
|
|
116521
116636
|
const PRINCIPAL_ALREADY_ADDED_ERROR_MESSAGE = "User or team already has permissions.";
|
|
116637
|
+
const EMPTY_ARRAY$2 = [];
|
|
116522
116638
|
function useUpdateAcl(options2 = {}) {
|
|
116523
|
-
const {
|
|
116639
|
+
const {
|
|
116640
|
+
initialResourceAccessList = EMPTY_ARRAY$2,
|
|
116641
|
+
onChange = noop$9,
|
|
116642
|
+
onError = noop$9
|
|
116643
|
+
} = options2;
|
|
116524
116644
|
const [isDirty2, setIsDirty] = React$2.useState(false);
|
|
116525
|
-
const [resourceAccessList, setResourceAccessList] = React$2.useState(
|
|
116645
|
+
const [resourceAccessList, setResourceAccessList] = React$2.useState(initialResourceAccessList);
|
|
116526
116646
|
const [hasSorted, setHasSorted] = React$2.useState(false);
|
|
116527
116647
|
const { sortedResourceAccessList, isLoading: isLoadingSortedList } = useSortResourceAccessList(resourceAccessList);
|
|
116528
116648
|
React$2.useEffect(() => {
|
|
@@ -116839,11 +116959,11 @@ ${getEndpoint(
|
|
|
116839
116959
|
updateResourceAccessItem,
|
|
116840
116960
|
removeResourceAccessItem,
|
|
116841
116961
|
resetDirtyState
|
|
116842
|
-
} = useUpdateAcl();
|
|
116962
|
+
} = useUpdateAcl({ initialResourceAccessList: originalResourceAccess });
|
|
116843
116963
|
React$2.useEffect(() => {
|
|
116844
116964
|
if (originalResourceAccess) {
|
|
116845
116965
|
resetDirtyState();
|
|
116846
|
-
setResourceAccessList(originalResourceAccess);
|
|
116966
|
+
setResourceAccessList([...originalResourceAccess]);
|
|
116847
116967
|
}
|
|
116848
116968
|
}, [originalResourceAccess, resetDirtyState, setResourceAccessList]);
|
|
116849
116969
|
React$2.useEffect(() => {
|
|
@@ -125385,13 +125505,13 @@ query = syn.tableQuery("${clientSql}")${"\n"}query.asDataFrame()`
|
|
|
125385
125505
|
}
|
|
125386
125506
|
) }, requester.userId))
|
|
125387
125507
|
] }),
|
|
125388
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: item.accessRequirementReviewerIds.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(UserOrTeamBadge, { principalId: ACT_TEAM_ID }) : item.accessRequirementReviewerIds.map((reviewerId2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
125508
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Stack$6, { gap: 1, children: item.accessRequirementReviewerIds.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(UserOrTeamBadge, { principalId: ACT_TEAM_ID }) : item.accessRequirementReviewerIds.map((reviewerId2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
125389
125509
|
UserOrTeamBadge,
|
|
125390
125510
|
{
|
|
125391
125511
|
principalId: reviewerId2
|
|
125392
125512
|
},
|
|
125393
125513
|
reviewerId2
|
|
125394
|
-
)) }),
|
|
125514
|
+
)) }) }),
|
|
125395
125515
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: formatDate(dayjs(item.createdOn)) })
|
|
125396
125516
|
] }, item.id);
|
|
125397
125517
|
}) })
|
|
@@ -154231,72 +154351,6 @@ query = syn.tableQuery("${clientSql}")${"\n"}query.asDataFrame()`
|
|
|
154231
154351
|
});
|
|
154232
154352
|
return { table: table2, isLoading, hasNextPage: hasNextPage2, fetchNextPage };
|
|
154233
154353
|
}
|
|
154234
|
-
const StyledTableContainer = styled(Box)(({ theme: theme3, density = "default" }) => ({
|
|
154235
|
-
overflow: "auto",
|
|
154236
|
-
paddingLeft: "2px",
|
|
154237
|
-
th: {
|
|
154238
|
-
height: "38px",
|
|
154239
|
-
backgroundColor: theme3.palette.grey[200]
|
|
154240
|
-
},
|
|
154241
|
-
["th:first-of-type"]: {
|
|
154242
|
-
paddingLeft: "10px"
|
|
154243
|
-
},
|
|
154244
|
-
["td:first-of-type"]: {
|
|
154245
|
-
paddingLeft: "10px"
|
|
154246
|
-
},
|
|
154247
|
-
["tr:nth-of-type(2n)"]: {
|
|
154248
|
-
backgroundColor: theme3.palette.grey[100]
|
|
154249
|
-
},
|
|
154250
|
-
["th,td"]: {
|
|
154251
|
-
paddingLeft: theme3.spacing(density === "compact" ? 0 : 1),
|
|
154252
|
-
paddingRight: theme3.spacing(density === "compact" ? 0 : 1)
|
|
154253
|
-
},
|
|
154254
|
-
td: {
|
|
154255
|
-
paddingTop: theme3.spacing(density === "compact" ? 0 : 1),
|
|
154256
|
-
paddingBottom: theme3.spacing(density === "compact" ? 0 : 1)
|
|
154257
|
-
}
|
|
154258
|
-
}));
|
|
154259
|
-
function StyledTanStackTable(props) {
|
|
154260
|
-
const { table: table2, styledTableContainerProps } = props;
|
|
154261
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTableContainer, { ...styledTableContainerProps, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { style: { width: "100%" }, children: [
|
|
154262
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("thead", { children: table2.getHeaderGroups().map((headerGroup) => {
|
|
154263
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
154264
|
-
"th",
|
|
154265
|
-
{
|
|
154266
|
-
colSpan: header.colSpan,
|
|
154267
|
-
style: { width: header.getSize() },
|
|
154268
|
-
children: [
|
|
154269
|
-
header.isPlaceholder ? null : flexRender(
|
|
154270
|
-
header.column.columnDef.header,
|
|
154271
|
-
header.getContext()
|
|
154272
|
-
),
|
|
154273
|
-
header.column.getCanResize() && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
154274
|
-
"div",
|
|
154275
|
-
{
|
|
154276
|
-
className: `resizer ${header.column.getIsResizing() ? "isResizing" : ""}`,
|
|
154277
|
-
onMouseDown: header.getResizeHandler(),
|
|
154278
|
-
onTouchStart: header.getResizeHandler()
|
|
154279
|
-
}
|
|
154280
|
-
)
|
|
154281
|
-
]
|
|
154282
|
-
},
|
|
154283
|
-
header.id
|
|
154284
|
-
)) }, headerGroup.id);
|
|
154285
|
-
}) }),
|
|
154286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: table2.getRowModel().rows.map((row) => /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: row.getVisibleCells().map((cell) => {
|
|
154287
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
154288
|
-
"td",
|
|
154289
|
-
{
|
|
154290
|
-
style: {
|
|
154291
|
-
width: cell.column.getSize()
|
|
154292
|
-
},
|
|
154293
|
-
children: flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
154294
|
-
},
|
|
154295
|
-
cell.id
|
|
154296
|
-
);
|
|
154297
|
-
}) }, row.id)) })
|
|
154298
|
-
] }) });
|
|
154299
|
-
}
|
|
154300
154354
|
function AccessRequirementTable(props) {
|
|
154301
154355
|
const {
|
|
154302
154356
|
nameOrID,
|
|
@@ -154996,7 +155050,7 @@ query = syn.tableQuery("${clientSql}")${"\n"}query.asDataFrame()`
|
|
|
154996
155050
|
parseInt(submission == null ? void 0 : submission.accessRequirementId),
|
|
154997
155051
|
{ enabled: !!submission }
|
|
154998
155052
|
);
|
|
154999
|
-
const { data: acl } = useGetAccessRequirementACL(
|
|
155053
|
+
const { data: acl, isLoading: isLoadingACL } = useGetAccessRequirementACL(
|
|
155000
155054
|
submission == null ? void 0 : submission.accessRequirementId,
|
|
155001
155055
|
{ enabled: !!submission, throwOnError: true }
|
|
155002
155056
|
);
|
|
@@ -155007,6 +155061,7 @@ query = syn.tableQuery("${clientSql}")${"\n"}query.asDataFrame()`
|
|
|
155007
155061
|
newState: SubmissionState.APPROVED
|
|
155008
155062
|
});
|
|
155009
155063
|
}
|
|
155064
|
+
const reviewerIds = acl == null ? void 0 : acl.resourceAccess.filter((ra) => ra.accessType.includes(ACCESS_TYPE.REVIEW_SUBMISSIONS)).map((ra) => ra.principalId);
|
|
155010
155065
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "SubmissionPage", children: [
|
|
155011
155066
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
155012
155067
|
ApproveConfirmationModal,
|
|
@@ -155066,15 +155121,13 @@ query = syn.tableQuery("${clientSql}")${"\n"}query.asDataFrame()`
|
|
|
155066
155121
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "smallText1", children: (accessRequirement == null ? void 0 : accessRequirement.name) ?? /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { width: 100 }) }),
|
|
155067
155122
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
155068
155123
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "dataFieldKey", children: "Assigned Reviewer" }),
|
|
155069
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
155070
|
-
|
|
155071
|
-
|
|
155072
|
-
{
|
|
155073
|
-
|
|
155074
|
-
|
|
155075
|
-
|
|
155076
|
-
);
|
|
155077
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UserOrTeamBadge, { principalId: ACT_TEAM_ID }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { width: 100 }) }),
|
|
155124
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography, { variant: "smallText1", children: [
|
|
155125
|
+
isLoadingACL && /* @__PURE__ */ jsxRuntimeExports.jsx(Skeleton, { width: 100 }),
|
|
155126
|
+
!isLoadingACL && !isEmpty$1(reviewerIds) && reviewerIds.map((id2) => {
|
|
155127
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(UserOrTeamBadge, { principalId: id2 }, id2);
|
|
155128
|
+
}),
|
|
155129
|
+
!isLoadingACL && isEmpty$1(reviewerIds) && /* @__PURE__ */ jsxRuntimeExports.jsx(UserOrTeamBadge, { principalId: ACT_TEAM_ID })
|
|
155130
|
+
] }),
|
|
155078
155131
|
/* @__PURE__ */ jsxRuntimeExports.jsx("br", {}),
|
|
155079
155132
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "dataFieldKey", children: "Conditions" }),
|
|
155080
155133
|
accessRequirement ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "smallText1", component: "div", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
@@ -162692,7 +162745,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
162692
162745
|
(selectColumn) => selectColumn.name == "N_UNIQUE_USERS"
|
|
162693
162746
|
);
|
|
162694
162747
|
const egressSizeColIndex = headers == null ? void 0 : headers.findIndex(
|
|
162695
|
-
(selectColumn) => selectColumn.name == "
|
|
162748
|
+
(selectColumn) => selectColumn.name == "ESTIMATED_PROJECT_SIZE_IN_GIB"
|
|
162696
162749
|
);
|
|
162697
162750
|
if (!rowSet || rowSet.rows.length == 0) {
|
|
162698
162751
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
@@ -162710,7 +162763,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
162710
162763
|
children: [
|
|
162711
162764
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", sx: { ml: "15px" }, children: "Rank" }),
|
|
162712
162765
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", children: "Project" }),
|
|
162713
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", children: "Data
|
|
162766
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", children: "Project Data" }),
|
|
162714
162767
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", children: "Unique Teams" }),
|
|
162715
162768
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, {})
|
|
162716
162769
|
]
|
|
@@ -164260,19 +164313,101 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
164260
164313
|
width: "16px",
|
|
164261
164314
|
transition: "fill 1s ease-in-out"
|
|
164262
164315
|
}));
|
|
164316
|
+
const searchValues = [
|
|
164317
|
+
"Alzheimer's Disease",
|
|
164318
|
+
"Neurofibromatosis mouse models",
|
|
164319
|
+
"Cancer",
|
|
164320
|
+
"UK Biobank",
|
|
164321
|
+
"Single-cell analysis of breast cancer",
|
|
164322
|
+
"ROSMAP Religious Orders Study and Memory and Aging Project",
|
|
164323
|
+
"Retinal regeneration studies",
|
|
164324
|
+
"Machine Learning datasets"
|
|
164325
|
+
];
|
|
164326
|
+
const projectKeyValue = {
|
|
164327
|
+
key: "node_type",
|
|
164328
|
+
value: "project",
|
|
164329
|
+
not: false
|
|
164330
|
+
};
|
|
164331
|
+
const SynapseSearchChips = ({ gotoPlace }) => {
|
|
164332
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: searchValues.map((value) => {
|
|
164333
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164334
|
+
Chip,
|
|
164335
|
+
{
|
|
164336
|
+
label: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164337
|
+
Typography,
|
|
164338
|
+
{
|
|
164339
|
+
variant: "body1",
|
|
164340
|
+
sx: {
|
|
164341
|
+
fontSize: "18px",
|
|
164342
|
+
fontWeight: 400,
|
|
164343
|
+
p: "10px"
|
|
164344
|
+
},
|
|
164345
|
+
children: value
|
|
164346
|
+
}
|
|
164347
|
+
),
|
|
164348
|
+
onClick: () => {
|
|
164349
|
+
const searchQuery = {
|
|
164350
|
+
queryTerm: [value],
|
|
164351
|
+
booleanQuery: value == "Cancer" ? [projectKeyValue] : void 0,
|
|
164352
|
+
// match existing facet options in SWC search
|
|
164353
|
+
facetOptions: [
|
|
164354
|
+
{
|
|
164355
|
+
name: SearchFieldName.ENTITY_TYPE,
|
|
164356
|
+
maxResultCount: 300,
|
|
164357
|
+
sortType: SearchFacetSort.COUNT
|
|
164358
|
+
},
|
|
164359
|
+
{
|
|
164360
|
+
name: SearchFieldName.CONSORTIUM,
|
|
164361
|
+
maxResultCount: 300,
|
|
164362
|
+
sortType: SearchFacetSort.COUNT
|
|
164363
|
+
},
|
|
164364
|
+
{
|
|
164365
|
+
name: SearchFieldName.MODIFIED_ON,
|
|
164366
|
+
maxResultCount: 300,
|
|
164367
|
+
sortType: SearchFacetSort.COUNT
|
|
164368
|
+
},
|
|
164369
|
+
{
|
|
164370
|
+
name: SearchFieldName.MODIFIED_BY,
|
|
164371
|
+
maxResultCount: 300,
|
|
164372
|
+
sortType: SearchFacetSort.COUNT
|
|
164373
|
+
},
|
|
164374
|
+
{
|
|
164375
|
+
name: SearchFieldName.CREATED_ON,
|
|
164376
|
+
maxResultCount: 300,
|
|
164377
|
+
sortType: SearchFacetSort.COUNT
|
|
164378
|
+
},
|
|
164379
|
+
{
|
|
164380
|
+
name: SearchFieldName.TISSUE,
|
|
164381
|
+
maxResultCount: 300,
|
|
164382
|
+
sortType: SearchFacetSort.COUNT
|
|
164383
|
+
},
|
|
164384
|
+
{
|
|
164385
|
+
name: SearchFieldName.CREATED_BY,
|
|
164386
|
+
maxResultCount: 300,
|
|
164387
|
+
sortType: SearchFacetSort.COUNT
|
|
164388
|
+
}
|
|
164389
|
+
],
|
|
164390
|
+
start: 0,
|
|
164391
|
+
size: 30
|
|
164392
|
+
};
|
|
164393
|
+
gotoPlace(`/Search:${JSON.stringify(searchQuery)}`);
|
|
164394
|
+
},
|
|
164395
|
+
variant: "outlined",
|
|
164396
|
+
sx: {
|
|
164397
|
+
color: "secondary.600",
|
|
164398
|
+
backgroundColor: "secondary.100",
|
|
164399
|
+
borderWidth: "0px",
|
|
164400
|
+
"&:hover": { backgroundColor: "#B5D3CE !important" }
|
|
164401
|
+
}
|
|
164402
|
+
},
|
|
164403
|
+
value
|
|
164404
|
+
);
|
|
164405
|
+
}) });
|
|
164406
|
+
};
|
|
164263
164407
|
const synapseInActionTable = "syn61670075";
|
|
164264
164408
|
const past30DaysDownloadMetricsTable = "syn61597084";
|
|
164265
164409
|
const generalStatsMetricsTable = "syn61588163";
|
|
164266
164410
|
const featuredDatasetsTable = "syn61609402";
|
|
164267
|
-
const popularSearches = [
|
|
164268
|
-
"Alzheimer's Disease",
|
|
164269
|
-
"Parkinson",
|
|
164270
|
-
"Neurofibromatosis",
|
|
164271
|
-
"HTAN",
|
|
164272
|
-
"ukb-ppp",
|
|
164273
|
-
"ROSMAP",
|
|
164274
|
-
"GENIE"
|
|
164275
|
-
];
|
|
164276
164411
|
const darkTextColor = "#22252A";
|
|
164277
164412
|
const homepageBodyText = {
|
|
164278
164413
|
fontSize: "24px",
|
|
@@ -164453,34 +164588,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
164453
164588
|
mt: "30px",
|
|
164454
164589
|
flexWrap: "wrap"
|
|
164455
164590
|
},
|
|
164456
|
-
children:
|
|
164457
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164458
|
-
Chip,
|
|
164459
|
-
{
|
|
164460
|
-
label: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
164461
|
-
Typography,
|
|
164462
|
-
{
|
|
164463
|
-
variant: "body1",
|
|
164464
|
-
sx: {
|
|
164465
|
-
fontSize: "18px",
|
|
164466
|
-
fontWeight: 400,
|
|
164467
|
-
p: "10px"
|
|
164468
|
-
},
|
|
164469
|
-
children: value
|
|
164470
|
-
}
|
|
164471
|
-
),
|
|
164472
|
-
onClick: () => gotoPlace(`/Search:${encodeURIComponent(value)}`),
|
|
164473
|
-
variant: "outlined",
|
|
164474
|
-
sx: {
|
|
164475
|
-
color: "secondary.600",
|
|
164476
|
-
backgroundColor: "secondary.100",
|
|
164477
|
-
borderWidth: "0px",
|
|
164478
|
-
"&:hover": { backgroundColor: "#B5D3CE !important" }
|
|
164479
|
-
}
|
|
164480
|
-
},
|
|
164481
|
-
value
|
|
164482
|
-
);
|
|
164483
|
-
})
|
|
164591
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SynapseSearchChips, { gotoPlace })
|
|
164484
164592
|
}
|
|
164485
164593
|
),
|
|
164486
164594
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -165256,7 +165364,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
165256
165364
|
{
|
|
165257
165365
|
className: "synapseIcon",
|
|
165258
165366
|
rel: "noopener noreferrer",
|
|
165259
|
-
onClick: () => gotoPlace("/Home:
|
|
165367
|
+
onClick: () => gotoPlace("/Home:x"),
|
|
165260
165368
|
"aria-label": "Synapse Home",
|
|
165261
165369
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SynapseIconWhite, {})
|
|
165262
165370
|
}
|
|
@@ -179482,7 +179590,9 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
179482
179590
|
}(React$2.Component);
|
|
179483
179591
|
a.defaultProps = { disabled: false, offColor: "#888", onColor: "#080", offHandleColor: "#fff", onHandleColor: "#fff", uncheckedIcon: n, checkedIcon: o, boxShadow: null, activeBoxShadow: "0 0 2px 3px #3bf", height: 28, width: 56 };
|
|
179484
179592
|
const experimentalModeText = "This mode gives you early access to features that are still in development. Please note that we do not guarantee an absence of errors, and that the data created using these features may be lost during product upgrade.";
|
|
179485
|
-
const ExperimentalMode = (
|
|
179593
|
+
const ExperimentalMode = ({
|
|
179594
|
+
onExperimentalModeToggle
|
|
179595
|
+
}) => {
|
|
179486
179596
|
const [isExperimentalModeOn, setIsExperimentalModeOn] = React$2.useState(false);
|
|
179487
179597
|
const cookies2 = new UniversalCookies();
|
|
179488
179598
|
let mounted = true;
|
|
@@ -179500,10 +179610,16 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
179500
179610
|
const createExperimentalModeCookie = () => {
|
|
179501
179611
|
cookies2.set(EXPERIMENTAL_MODE_COOKIE, { path: "/" });
|
|
179502
179612
|
setIsExperimentalModeOn(true);
|
|
179613
|
+
if (onExperimentalModeToggle) {
|
|
179614
|
+
onExperimentalModeToggle(true);
|
|
179615
|
+
}
|
|
179503
179616
|
};
|
|
179504
179617
|
const deleteExperimentalModeCookie = () => {
|
|
179505
179618
|
document.cookie = `${EXPERIMENTAL_MODE_COOKIE}= ; expires = Thu, 01 Jan 1970 00:00:00 GMT`;
|
|
179506
179619
|
setIsExperimentalModeOn(false);
|
|
179620
|
+
if (onExperimentalModeToggle) {
|
|
179621
|
+
onExperimentalModeToggle(false);
|
|
179622
|
+
}
|
|
179507
179623
|
};
|
|
179508
179624
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
179509
179625
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "body1", children: "Experimental Mode" }),
|
|
@@ -179535,7 +179651,8 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
179535
179651
|
portalVersion,
|
|
179536
179652
|
srcVersion,
|
|
179537
179653
|
repoVersion,
|
|
179538
|
-
gotoPlace
|
|
179654
|
+
gotoPlace,
|
|
179655
|
+
onExperimentalModeToggle
|
|
179539
179656
|
}) => {
|
|
179540
179657
|
const { accessToken } = useSynapseContext();
|
|
179541
179658
|
const registrationUrl = useOneSageURL("/register1");
|
|
@@ -179878,7 +179995,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
179878
179995
|
]
|
|
179879
179996
|
}
|
|
179880
179997
|
),
|
|
179881
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ExperimentalMode, {})
|
|
179998
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ExperimentalMode, { onExperimentalModeToggle })
|
|
179882
179999
|
]
|
|
179883
180000
|
}
|
|
179884
180001
|
)
|
|
@@ -180083,7 +180200,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
180083
180200
|
)
|
|
180084
180201
|
] });
|
|
180085
180202
|
};
|
|
180086
|
-
const version = "3.3.
|
|
180203
|
+
const version = "3.3.8";
|
|
180087
180204
|
const SynapseEnums = {
|
|
180088
180205
|
BackendDestinationEnum
|
|
180089
180206
|
};
|