@copart/ops-tool-kit 1.10.3-alpha.1 → 1.10.4-alpha.1
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/ops-tool-kit.js +1166 -453
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.10.
|
|
36
|
+
const version$5 = "1.10.4-alpha.1";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -10448,7 +10448,7 @@ var flatten$1 = flatten;
|
|
|
10448
10448
|
* @symb R.flip(f)(a, b, c) = f(b, a, c)
|
|
10449
10449
|
*/
|
|
10450
10450
|
|
|
10451
|
-
var flip$
|
|
10451
|
+
var flip$2 =
|
|
10452
10452
|
/*#__PURE__*/
|
|
10453
10453
|
_curry1(function flip(fn) {
|
|
10454
10454
|
return curryN$1(fn.length, function (a, b) {
|
|
@@ -10459,7 +10459,7 @@ _curry1(function flip(fn) {
|
|
|
10459
10459
|
});
|
|
10460
10460
|
});
|
|
10461
10461
|
|
|
10462
|
-
var flip$
|
|
10462
|
+
var flip$3 = flip$2;
|
|
10463
10463
|
|
|
10464
10464
|
/**
|
|
10465
10465
|
* Iterate over an input `object`, calling a provided function `fn` for each
|
|
@@ -30514,7 +30514,7 @@ function () {
|
|
|
30514
30514
|
}();
|
|
30515
30515
|
|
|
30516
30516
|
var filterRoles = function filterRoles(roles, invalidCodes) {
|
|
30517
|
-
return compose(uniqBy$1(prop$1('roleName')), filter$1(compose(not$1, flip$
|
|
30517
|
+
return compose(uniqBy$1(prop$1('roleName')), filter$1(compose(not$1, flip$3(includes$1)(invalidCodes), prop$1('countryCode'))))(roles);
|
|
30518
30518
|
};
|
|
30519
30519
|
|
|
30520
30520
|
var SettingsView =
|
|
@@ -38160,6 +38160,11 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38160
38160
|
ideaNoteToken = _useState14[0],
|
|
38161
38161
|
setIdeaNoteToken = _useState14[1];
|
|
38162
38162
|
|
|
38163
|
+
var _useState15 = React.useState(null),
|
|
38164
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
38165
|
+
viewPortHeight = _useState16[0],
|
|
38166
|
+
setViewPortHeight = _useState16[1];
|
|
38167
|
+
|
|
38163
38168
|
var isLoggedOn = props.isLoggedOn,
|
|
38164
38169
|
moduleName = props.moduleName,
|
|
38165
38170
|
forceUpdate = props.forceUpdate,
|
|
@@ -38175,12 +38180,15 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38175
38180
|
showMihelpDot = props.showMihelpDot;
|
|
38176
38181
|
|
|
38177
38182
|
var _useWindowSize = useWindowSize(),
|
|
38178
|
-
width = _useWindowSize.width
|
|
38183
|
+
width = _useWindowSize.width,
|
|
38184
|
+
height = _useWindowSize.height;
|
|
38179
38185
|
|
|
38180
|
-
|
|
38181
|
-
|
|
38182
|
-
|
|
38183
|
-
|
|
38186
|
+
console.log('+++viewPortHeight==', viewPortHeight);
|
|
38187
|
+
|
|
38188
|
+
var _useState17 = React.useState(0),
|
|
38189
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
38190
|
+
count = _useState18[0],
|
|
38191
|
+
setCount = _useState18[1];
|
|
38184
38192
|
|
|
38185
38193
|
var mihelpRef = React.useRef(null);
|
|
38186
38194
|
var mihelpIconRef = React.useRef(null);
|
|
@@ -38192,6 +38200,11 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38192
38200
|
setNotificationsVisible(false);
|
|
38193
38201
|
}
|
|
38194
38202
|
}, [mihelpVisible]);
|
|
38203
|
+
React.useEffect(function () {
|
|
38204
|
+
if (isCalloutVisible) {
|
|
38205
|
+
setViewPortHeight(height);
|
|
38206
|
+
}
|
|
38207
|
+
}, [isCalloutVisible]);
|
|
38195
38208
|
React.useEffect(function () {
|
|
38196
38209
|
if (ideaNoteVisible) {
|
|
38197
38210
|
setMihelpVisible(false);
|
|
@@ -38322,6 +38335,28 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38322
38335
|
}
|
|
38323
38336
|
};
|
|
38324
38337
|
|
|
38338
|
+
var hasTouchSupport = function hasTouchSupport() {
|
|
38339
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0;
|
|
38340
|
+
};
|
|
38341
|
+
|
|
38342
|
+
var handleCallOutDismiss = function handleCallOutDismiss() {
|
|
38343
|
+
console.log('+++hasTouchSupport=', hasTouchSupport());
|
|
38344
|
+
|
|
38345
|
+
if (hasTouchSupport()) {
|
|
38346
|
+
setTimeout(function () {
|
|
38347
|
+
var newViewportHeight = window.innerHeight;
|
|
38348
|
+
|
|
38349
|
+
if (newViewportHeight < viewPortHeight) {
|
|
38350
|
+
return;
|
|
38351
|
+
} else {
|
|
38352
|
+
setCalloutVisible(false);
|
|
38353
|
+
}
|
|
38354
|
+
}, 300);
|
|
38355
|
+
} else {
|
|
38356
|
+
setCalloutVisible(false);
|
|
38357
|
+
}
|
|
38358
|
+
};
|
|
38359
|
+
|
|
38325
38360
|
var stack = ((_window$toolkitEnv4 = window.toolkitEnv) === null || _window$toolkitEnv4 === void 0 ? void 0 : _window$toolkitEnv4.STACK) ? window.toolkitEnv.STACK : process.env.STACK;
|
|
38326
38361
|
return React__default["default"].createElement("div", {
|
|
38327
38362
|
"data-e2e": "cc-AppBar",
|
|
@@ -38384,9 +38419,7 @@ var AppBar$1 = function AppBar(props) {
|
|
|
38384
38419
|
role: "dialog",
|
|
38385
38420
|
gapSpace: 0,
|
|
38386
38421
|
target: "#".concat(calloutTarget),
|
|
38387
|
-
onDismiss:
|
|
38388
|
-
return setCalloutVisible(false);
|
|
38389
|
-
},
|
|
38422
|
+
onDismiss: handleCallOutDismiss,
|
|
38390
38423
|
isBeakVisible: false
|
|
38391
38424
|
}, React__default["default"].createElement("div", null, !stack || stack === 'c' ? React__default["default"].createElement(SettingsView$1, {
|
|
38392
38425
|
onSave: onSave
|
|
@@ -38509,7 +38542,7 @@ var b$1 = "function" === typeof Symbol && Symbol.for,
|
|
|
38509
38542
|
m = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
|
|
38510
38543
|
n = b$1 ? Symbol.for("react.forward_ref") : 60112,
|
|
38511
38544
|
p = b$1 ? Symbol.for("react.suspense") : 60113,
|
|
38512
|
-
q = b$1 ? Symbol.for("react.suspense_list") : 60120,
|
|
38545
|
+
q$1 = b$1 ? Symbol.for("react.suspense_list") : 60120,
|
|
38513
38546
|
r = b$1 ? Symbol.for("react.memo") : 60115,
|
|
38514
38547
|
t = b$1 ? Symbol.for("react.lazy") : 60116,
|
|
38515
38548
|
v = b$1 ? Symbol.for("react.block") : 60121,
|
|
@@ -38622,7 +38655,7 @@ var isSuspense = function (a) {
|
|
|
38622
38655
|
};
|
|
38623
38656
|
|
|
38624
38657
|
var isValidElementType = function (a) {
|
|
38625
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g$1 || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h$1 || a.$$typeof === k$1 || a.$$typeof === n || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y || a.$$typeof === v);
|
|
38658
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g$1 || a === f || a === p || a === q$1 || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h$1 || a.$$typeof === k$1 || a.$$typeof === n || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y || a.$$typeof === v);
|
|
38626
38659
|
};
|
|
38627
38660
|
|
|
38628
38661
|
var typeOf = z$1;
|
|
@@ -43162,6 +43195,15 @@ function Snippet(_ref) {
|
|
|
43162
43195
|
})))));
|
|
43163
43196
|
}
|
|
43164
43197
|
|
|
43198
|
+
/**
|
|
43199
|
+
* Custom positioning reference element.
|
|
43200
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
43201
|
+
*/
|
|
43202
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
43203
|
+
const alignments = ['start', 'end'];
|
|
43204
|
+
const placements =
|
|
43205
|
+
/*#__PURE__*/
|
|
43206
|
+
sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
43165
43207
|
const min = Math.min;
|
|
43166
43208
|
const max = Math.max;
|
|
43167
43209
|
const round = Math.round;
|
|
@@ -43374,7 +43416,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
43374
43416
|
}
|
|
43375
43417
|
/**
|
|
43376
43418
|
* Computes the `x` and `y` coordinates that will place the floating element
|
|
43377
|
-
* next to a reference element
|
|
43419
|
+
* next to a given reference element.
|
|
43378
43420
|
*
|
|
43379
43421
|
* This export does not have any `platform` interface logic. You will need to
|
|
43380
43422
|
* write one for the platform you are using Floating UI with.
|
|
@@ -43458,7 +43500,6 @@ const computePosition$1 = async (reference, floating, config) => {
|
|
|
43458
43500
|
}
|
|
43459
43501
|
|
|
43460
43502
|
i = -1;
|
|
43461
|
-
continue;
|
|
43462
43503
|
}
|
|
43463
43504
|
}
|
|
43464
43505
|
|
|
@@ -43524,6 +43565,7 @@ async function detectOverflow(state, options) {
|
|
|
43524
43565
|
y: 1
|
|
43525
43566
|
};
|
|
43526
43567
|
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
43568
|
+
elements,
|
|
43527
43569
|
rect,
|
|
43528
43570
|
offsetParent,
|
|
43529
43571
|
strategy
|
|
@@ -43542,7 +43584,7 @@ async function detectOverflow(state, options) {
|
|
|
43542
43584
|
*/
|
|
43543
43585
|
|
|
43544
43586
|
|
|
43545
|
-
const arrow = options => ({
|
|
43587
|
+
const arrow$1 = options => ({
|
|
43546
43588
|
name: 'arrow',
|
|
43547
43589
|
options,
|
|
43548
43590
|
|
|
@@ -43603,7 +43645,7 @@ const arrow = options => ({
|
|
|
43603
43645
|
// floating element itself. To ensure `shift()` continues to take action,
|
|
43604
43646
|
// a single reset is performed when this is true.
|
|
43605
43647
|
|
|
43606
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center
|
|
43648
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
43607
43649
|
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
43608
43650
|
return {
|
|
43609
43651
|
[axis]: coords[axis] + alignmentOffset,
|
|
@@ -43619,6 +43661,117 @@ const arrow = options => ({
|
|
|
43619
43661
|
}
|
|
43620
43662
|
|
|
43621
43663
|
});
|
|
43664
|
+
|
|
43665
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
43666
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
43667
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
43668
|
+
if (alignment) {
|
|
43669
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
43670
|
+
}
|
|
43671
|
+
|
|
43672
|
+
return true;
|
|
43673
|
+
});
|
|
43674
|
+
}
|
|
43675
|
+
/**
|
|
43676
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
43677
|
+
* that has the most space available automatically, without needing to specify a
|
|
43678
|
+
* preferred placement. Alternative to `flip`.
|
|
43679
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
43680
|
+
*/
|
|
43681
|
+
|
|
43682
|
+
|
|
43683
|
+
const autoPlacement = function (options) {
|
|
43684
|
+
if (options === void 0) {
|
|
43685
|
+
options = {};
|
|
43686
|
+
}
|
|
43687
|
+
|
|
43688
|
+
return {
|
|
43689
|
+
name: 'autoPlacement',
|
|
43690
|
+
options,
|
|
43691
|
+
|
|
43692
|
+
async fn(state) {
|
|
43693
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
43694
|
+
|
|
43695
|
+
const {
|
|
43696
|
+
rects,
|
|
43697
|
+
middlewareData,
|
|
43698
|
+
placement,
|
|
43699
|
+
platform,
|
|
43700
|
+
elements
|
|
43701
|
+
} = state;
|
|
43702
|
+
const {
|
|
43703
|
+
crossAxis = false,
|
|
43704
|
+
alignment,
|
|
43705
|
+
allowedPlacements = placements,
|
|
43706
|
+
autoAlignment = true,
|
|
43707
|
+
...detectOverflowOptions
|
|
43708
|
+
} = evaluate(options, state);
|
|
43709
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
43710
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
43711
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
43712
|
+
const currentPlacement = placements$1[currentIndex];
|
|
43713
|
+
|
|
43714
|
+
if (currentPlacement == null) {
|
|
43715
|
+
return {};
|
|
43716
|
+
}
|
|
43717
|
+
|
|
43718
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)))); // Make `computeCoords` start from the right place.
|
|
43719
|
+
|
|
43720
|
+
if (placement !== currentPlacement) {
|
|
43721
|
+
return {
|
|
43722
|
+
reset: {
|
|
43723
|
+
placement: placements$1[0]
|
|
43724
|
+
}
|
|
43725
|
+
};
|
|
43726
|
+
}
|
|
43727
|
+
|
|
43728
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
43729
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
43730
|
+
placement: currentPlacement,
|
|
43731
|
+
overflows: currentOverflows
|
|
43732
|
+
}];
|
|
43733
|
+
const nextPlacement = placements$1[currentIndex + 1]; // There are more placements to check.
|
|
43734
|
+
|
|
43735
|
+
if (nextPlacement) {
|
|
43736
|
+
return {
|
|
43737
|
+
data: {
|
|
43738
|
+
index: currentIndex + 1,
|
|
43739
|
+
overflows: allOverflows
|
|
43740
|
+
},
|
|
43741
|
+
reset: {
|
|
43742
|
+
placement: nextPlacement
|
|
43743
|
+
}
|
|
43744
|
+
};
|
|
43745
|
+
}
|
|
43746
|
+
|
|
43747
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
43748
|
+
const alignment = getAlignment(d.placement);
|
|
43749
|
+
return [d.placement, alignment && crossAxis ? // Check along the mainAxis and main crossAxis side.
|
|
43750
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) : // Check only the mainAxis.
|
|
43751
|
+
d.overflows[0], d.overflows];
|
|
43752
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
43753
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0, // Aligned placements should not check their opposite crossAxis
|
|
43754
|
+
// side.
|
|
43755
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
43756
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
43757
|
+
|
|
43758
|
+
if (resetPlacement !== placement) {
|
|
43759
|
+
return {
|
|
43760
|
+
data: {
|
|
43761
|
+
index: currentIndex + 1,
|
|
43762
|
+
overflows: allOverflows
|
|
43763
|
+
},
|
|
43764
|
+
reset: {
|
|
43765
|
+
placement: resetPlacement
|
|
43766
|
+
}
|
|
43767
|
+
};
|
|
43768
|
+
}
|
|
43769
|
+
|
|
43770
|
+
return {};
|
|
43771
|
+
}
|
|
43772
|
+
|
|
43773
|
+
};
|
|
43774
|
+
};
|
|
43622
43775
|
/**
|
|
43623
43776
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
43624
43777
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -43627,7 +43780,7 @@ const arrow = options => ({
|
|
|
43627
43780
|
*/
|
|
43628
43781
|
|
|
43629
43782
|
|
|
43630
|
-
const flip = function (options) {
|
|
43783
|
+
const flip$1 = function (options) {
|
|
43631
43784
|
if (options === void 0) {
|
|
43632
43785
|
options = {};
|
|
43633
43786
|
}
|
|
@@ -43750,6 +43903,229 @@ const flip = function (options) {
|
|
|
43750
43903
|
|
|
43751
43904
|
};
|
|
43752
43905
|
};
|
|
43906
|
+
|
|
43907
|
+
function getSideOffsets(overflow, rect) {
|
|
43908
|
+
return {
|
|
43909
|
+
top: overflow.top - rect.height,
|
|
43910
|
+
right: overflow.right - rect.width,
|
|
43911
|
+
bottom: overflow.bottom - rect.height,
|
|
43912
|
+
left: overflow.left - rect.width
|
|
43913
|
+
};
|
|
43914
|
+
}
|
|
43915
|
+
|
|
43916
|
+
function isAnySideFullyClipped(overflow) {
|
|
43917
|
+
return sides.some(side => overflow[side] >= 0);
|
|
43918
|
+
}
|
|
43919
|
+
/**
|
|
43920
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
43921
|
+
* when it is not in the same clipping context as the reference element.
|
|
43922
|
+
* @see https://floating-ui.com/docs/hide
|
|
43923
|
+
*/
|
|
43924
|
+
|
|
43925
|
+
|
|
43926
|
+
const hide = function (options) {
|
|
43927
|
+
if (options === void 0) {
|
|
43928
|
+
options = {};
|
|
43929
|
+
}
|
|
43930
|
+
|
|
43931
|
+
return {
|
|
43932
|
+
name: 'hide',
|
|
43933
|
+
options,
|
|
43934
|
+
|
|
43935
|
+
async fn(state) {
|
|
43936
|
+
const {
|
|
43937
|
+
rects
|
|
43938
|
+
} = state;
|
|
43939
|
+
const {
|
|
43940
|
+
strategy = 'referenceHidden',
|
|
43941
|
+
...detectOverflowOptions
|
|
43942
|
+
} = evaluate(options, state);
|
|
43943
|
+
|
|
43944
|
+
switch (strategy) {
|
|
43945
|
+
case 'referenceHidden':
|
|
43946
|
+
{
|
|
43947
|
+
const overflow = await detectOverflow(state, { ...detectOverflowOptions,
|
|
43948
|
+
elementContext: 'reference'
|
|
43949
|
+
});
|
|
43950
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
43951
|
+
return {
|
|
43952
|
+
data: {
|
|
43953
|
+
referenceHiddenOffsets: offsets,
|
|
43954
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
43955
|
+
}
|
|
43956
|
+
};
|
|
43957
|
+
}
|
|
43958
|
+
|
|
43959
|
+
case 'escaped':
|
|
43960
|
+
{
|
|
43961
|
+
const overflow = await detectOverflow(state, { ...detectOverflowOptions,
|
|
43962
|
+
altBoundary: true
|
|
43963
|
+
});
|
|
43964
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
43965
|
+
return {
|
|
43966
|
+
data: {
|
|
43967
|
+
escapedOffsets: offsets,
|
|
43968
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
43969
|
+
}
|
|
43970
|
+
};
|
|
43971
|
+
}
|
|
43972
|
+
|
|
43973
|
+
default:
|
|
43974
|
+
{
|
|
43975
|
+
return {};
|
|
43976
|
+
}
|
|
43977
|
+
}
|
|
43978
|
+
}
|
|
43979
|
+
|
|
43980
|
+
};
|
|
43981
|
+
};
|
|
43982
|
+
|
|
43983
|
+
function getBoundingRect(rects) {
|
|
43984
|
+
const minX = min(...rects.map(rect => rect.left));
|
|
43985
|
+
const minY = min(...rects.map(rect => rect.top));
|
|
43986
|
+
const maxX = max(...rects.map(rect => rect.right));
|
|
43987
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
|
43988
|
+
return {
|
|
43989
|
+
x: minX,
|
|
43990
|
+
y: minY,
|
|
43991
|
+
width: maxX - minX,
|
|
43992
|
+
height: maxY - minY
|
|
43993
|
+
};
|
|
43994
|
+
}
|
|
43995
|
+
|
|
43996
|
+
function getRectsByLine(rects) {
|
|
43997
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
43998
|
+
const groups = [];
|
|
43999
|
+
let prevRect = null;
|
|
44000
|
+
|
|
44001
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
|
44002
|
+
const rect = sortedRects[i];
|
|
44003
|
+
|
|
44004
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
44005
|
+
groups.push([rect]);
|
|
44006
|
+
} else {
|
|
44007
|
+
groups[groups.length - 1].push(rect);
|
|
44008
|
+
}
|
|
44009
|
+
|
|
44010
|
+
prevRect = rect;
|
|
44011
|
+
}
|
|
44012
|
+
|
|
44013
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
44014
|
+
}
|
|
44015
|
+
/**
|
|
44016
|
+
* Provides improved positioning for inline reference elements that can span
|
|
44017
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
44018
|
+
* @see https://floating-ui.com/docs/inline
|
|
44019
|
+
*/
|
|
44020
|
+
|
|
44021
|
+
|
|
44022
|
+
const inline = function (options) {
|
|
44023
|
+
if (options === void 0) {
|
|
44024
|
+
options = {};
|
|
44025
|
+
}
|
|
44026
|
+
|
|
44027
|
+
return {
|
|
44028
|
+
name: 'inline',
|
|
44029
|
+
options,
|
|
44030
|
+
|
|
44031
|
+
async fn(state) {
|
|
44032
|
+
const {
|
|
44033
|
+
placement,
|
|
44034
|
+
elements,
|
|
44035
|
+
rects,
|
|
44036
|
+
platform,
|
|
44037
|
+
strategy
|
|
44038
|
+
} = state; // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
44039
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
44040
|
+
// padding of 2 seems to handle this issue.
|
|
44041
|
+
|
|
44042
|
+
const {
|
|
44043
|
+
padding = 2,
|
|
44044
|
+
x,
|
|
44045
|
+
y
|
|
44046
|
+
} = evaluate(options, state);
|
|
44047
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
44048
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
|
44049
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
44050
|
+
const paddingObject = getPaddingObject(padding);
|
|
44051
|
+
|
|
44052
|
+
function getBoundingClientRect() {
|
|
44053
|
+
// There are two rects and they are disjoined.
|
|
44054
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
44055
|
+
// Find the first rect in which the point is fully inside.
|
|
44056
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
44057
|
+
} // There are 2 or more connected rects.
|
|
44058
|
+
|
|
44059
|
+
|
|
44060
|
+
if (clientRects.length >= 2) {
|
|
44061
|
+
if (getSideAxis(placement) === 'y') {
|
|
44062
|
+
const firstRect = clientRects[0];
|
|
44063
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
44064
|
+
const isTop = getSide(placement) === 'top';
|
|
44065
|
+
const top = firstRect.top;
|
|
44066
|
+
const bottom = lastRect.bottom;
|
|
44067
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
44068
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
44069
|
+
const width = right - left;
|
|
44070
|
+
const height = bottom - top;
|
|
44071
|
+
return {
|
|
44072
|
+
top,
|
|
44073
|
+
bottom,
|
|
44074
|
+
left,
|
|
44075
|
+
right,
|
|
44076
|
+
width,
|
|
44077
|
+
height,
|
|
44078
|
+
x: left,
|
|
44079
|
+
y: top
|
|
44080
|
+
};
|
|
44081
|
+
}
|
|
44082
|
+
|
|
44083
|
+
const isLeftSide = getSide(placement) === 'left';
|
|
44084
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
44085
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
44086
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
44087
|
+
const top = measureRects[0].top;
|
|
44088
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
44089
|
+
const left = minLeft;
|
|
44090
|
+
const right = maxRight;
|
|
44091
|
+
const width = right - left;
|
|
44092
|
+
const height = bottom - top;
|
|
44093
|
+
return {
|
|
44094
|
+
top,
|
|
44095
|
+
bottom,
|
|
44096
|
+
left,
|
|
44097
|
+
right,
|
|
44098
|
+
width,
|
|
44099
|
+
height,
|
|
44100
|
+
x: left,
|
|
44101
|
+
y: top
|
|
44102
|
+
};
|
|
44103
|
+
}
|
|
44104
|
+
|
|
44105
|
+
return fallback;
|
|
44106
|
+
}
|
|
44107
|
+
|
|
44108
|
+
const resetRects = await platform.getElementRects({
|
|
44109
|
+
reference: {
|
|
44110
|
+
getBoundingClientRect
|
|
44111
|
+
},
|
|
44112
|
+
floating: elements.floating,
|
|
44113
|
+
strategy
|
|
44114
|
+
});
|
|
44115
|
+
|
|
44116
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
|
44117
|
+
return {
|
|
44118
|
+
reset: {
|
|
44119
|
+
rects: resetRects
|
|
44120
|
+
}
|
|
44121
|
+
};
|
|
44122
|
+
}
|
|
44123
|
+
|
|
44124
|
+
return {};
|
|
44125
|
+
}
|
|
44126
|
+
|
|
44127
|
+
};
|
|
44128
|
+
}; // For type backwards-compatibility, the `OffsetOptions` type was also
|
|
43753
44129
|
// Derivable.
|
|
43754
44130
|
|
|
43755
44131
|
|
|
@@ -43765,8 +44141,7 @@ async function convertValueToCoords(state, options) {
|
|
|
43765
44141
|
const isVertical = getSideAxis(placement) === 'y';
|
|
43766
44142
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
43767
44143
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
43768
|
-
const rawValue = evaluate(options, state);
|
|
43769
|
-
|
|
44144
|
+
const rawValue = evaluate(options, state);
|
|
43770
44145
|
let {
|
|
43771
44146
|
mainAxis,
|
|
43772
44147
|
crossAxis,
|
|
@@ -43813,15 +44188,27 @@ const offset = function (options) {
|
|
|
43813
44188
|
options,
|
|
43814
44189
|
|
|
43815
44190
|
async fn(state) {
|
|
44191
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
44192
|
+
|
|
43816
44193
|
const {
|
|
43817
44194
|
x,
|
|
43818
|
-
y
|
|
44195
|
+
y,
|
|
44196
|
+
placement,
|
|
44197
|
+
middlewareData
|
|
43819
44198
|
} = state;
|
|
43820
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
44199
|
+
const diffCoords = await convertValueToCoords(state, options); // If the placement is the same and the arrow caused an alignment offset
|
|
44200
|
+
// then we don't need to change the positioning coordinates.
|
|
44201
|
+
|
|
44202
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
44203
|
+
return {};
|
|
44204
|
+
}
|
|
44205
|
+
|
|
43821
44206
|
return {
|
|
43822
44207
|
x: x + diffCoords.x,
|
|
43823
44208
|
y: y + diffCoords.y,
|
|
43824
|
-
data: diffCoords
|
|
44209
|
+
data: { ...diffCoords,
|
|
44210
|
+
placement
|
|
44211
|
+
}
|
|
43825
44212
|
};
|
|
43826
44213
|
}
|
|
43827
44214
|
|
|
@@ -43834,7 +44221,7 @@ const offset = function (options) {
|
|
|
43834
44221
|
*/
|
|
43835
44222
|
|
|
43836
44223
|
|
|
43837
|
-
const shift = function (options) {
|
|
44224
|
+
const shift$1 = function (options) {
|
|
43838
44225
|
if (options === void 0) {
|
|
43839
44226
|
options = {};
|
|
43840
44227
|
}
|
|
@@ -43906,6 +44293,178 @@ const shift = function (options) {
|
|
|
43906
44293
|
|
|
43907
44294
|
};
|
|
43908
44295
|
};
|
|
44296
|
+
/**
|
|
44297
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
44298
|
+
*/
|
|
44299
|
+
|
|
44300
|
+
|
|
44301
|
+
const limitShift = function (options) {
|
|
44302
|
+
if (options === void 0) {
|
|
44303
|
+
options = {};
|
|
44304
|
+
}
|
|
44305
|
+
|
|
44306
|
+
return {
|
|
44307
|
+
options,
|
|
44308
|
+
|
|
44309
|
+
fn(state) {
|
|
44310
|
+
const {
|
|
44311
|
+
x,
|
|
44312
|
+
y,
|
|
44313
|
+
placement,
|
|
44314
|
+
rects,
|
|
44315
|
+
middlewareData
|
|
44316
|
+
} = state;
|
|
44317
|
+
const {
|
|
44318
|
+
offset = 0,
|
|
44319
|
+
mainAxis: checkMainAxis = true,
|
|
44320
|
+
crossAxis: checkCrossAxis = true
|
|
44321
|
+
} = evaluate(options, state);
|
|
44322
|
+
const coords = {
|
|
44323
|
+
x,
|
|
44324
|
+
y
|
|
44325
|
+
};
|
|
44326
|
+
const crossAxis = getSideAxis(placement);
|
|
44327
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
44328
|
+
let mainAxisCoord = coords[mainAxis];
|
|
44329
|
+
let crossAxisCoord = coords[crossAxis];
|
|
44330
|
+
const rawOffset = evaluate(offset, state);
|
|
44331
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
44332
|
+
mainAxis: rawOffset,
|
|
44333
|
+
crossAxis: 0
|
|
44334
|
+
} : {
|
|
44335
|
+
mainAxis: 0,
|
|
44336
|
+
crossAxis: 0,
|
|
44337
|
+
...rawOffset
|
|
44338
|
+
};
|
|
44339
|
+
|
|
44340
|
+
if (checkMainAxis) {
|
|
44341
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
44342
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
44343
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
44344
|
+
|
|
44345
|
+
if (mainAxisCoord < limitMin) {
|
|
44346
|
+
mainAxisCoord = limitMin;
|
|
44347
|
+
} else if (mainAxisCoord > limitMax) {
|
|
44348
|
+
mainAxisCoord = limitMax;
|
|
44349
|
+
}
|
|
44350
|
+
}
|
|
44351
|
+
|
|
44352
|
+
if (checkCrossAxis) {
|
|
44353
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
44354
|
+
|
|
44355
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
44356
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
44357
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
44358
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
44359
|
+
|
|
44360
|
+
if (crossAxisCoord < limitMin) {
|
|
44361
|
+
crossAxisCoord = limitMin;
|
|
44362
|
+
} else if (crossAxisCoord > limitMax) {
|
|
44363
|
+
crossAxisCoord = limitMax;
|
|
44364
|
+
}
|
|
44365
|
+
}
|
|
44366
|
+
|
|
44367
|
+
return {
|
|
44368
|
+
[mainAxis]: mainAxisCoord,
|
|
44369
|
+
[crossAxis]: crossAxisCoord
|
|
44370
|
+
};
|
|
44371
|
+
}
|
|
44372
|
+
|
|
44373
|
+
};
|
|
44374
|
+
};
|
|
44375
|
+
/**
|
|
44376
|
+
* Provides data that allows you to change the size of the floating element —
|
|
44377
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
44378
|
+
* width of the reference element.
|
|
44379
|
+
* @see https://floating-ui.com/docs/size
|
|
44380
|
+
*/
|
|
44381
|
+
|
|
44382
|
+
|
|
44383
|
+
const size = function (options) {
|
|
44384
|
+
if (options === void 0) {
|
|
44385
|
+
options = {};
|
|
44386
|
+
}
|
|
44387
|
+
|
|
44388
|
+
return {
|
|
44389
|
+
name: 'size',
|
|
44390
|
+
options,
|
|
44391
|
+
|
|
44392
|
+
async fn(state) {
|
|
44393
|
+
const {
|
|
44394
|
+
placement,
|
|
44395
|
+
rects,
|
|
44396
|
+
platform,
|
|
44397
|
+
elements
|
|
44398
|
+
} = state;
|
|
44399
|
+
const {
|
|
44400
|
+
apply = () => {},
|
|
44401
|
+
...detectOverflowOptions
|
|
44402
|
+
} = evaluate(options, state);
|
|
44403
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
44404
|
+
const side = getSide(placement);
|
|
44405
|
+
const alignment = getAlignment(placement);
|
|
44406
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
44407
|
+
const {
|
|
44408
|
+
width,
|
|
44409
|
+
height
|
|
44410
|
+
} = rects.floating;
|
|
44411
|
+
let heightSide;
|
|
44412
|
+
let widthSide;
|
|
44413
|
+
|
|
44414
|
+
if (side === 'top' || side === 'bottom') {
|
|
44415
|
+
heightSide = side;
|
|
44416
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
44417
|
+
} else {
|
|
44418
|
+
widthSide = side;
|
|
44419
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
44420
|
+
}
|
|
44421
|
+
|
|
44422
|
+
const overflowAvailableHeight = height - overflow[heightSide];
|
|
44423
|
+
const overflowAvailableWidth = width - overflow[widthSide];
|
|
44424
|
+
const noShift = !state.middlewareData.shift;
|
|
44425
|
+
let availableHeight = overflowAvailableHeight;
|
|
44426
|
+
let availableWidth = overflowAvailableWidth;
|
|
44427
|
+
|
|
44428
|
+
if (isYAxis) {
|
|
44429
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
44430
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
44431
|
+
} else {
|
|
44432
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
44433
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
44434
|
+
}
|
|
44435
|
+
|
|
44436
|
+
if (noShift && !alignment) {
|
|
44437
|
+
const xMin = max(overflow.left, 0);
|
|
44438
|
+
const xMax = max(overflow.right, 0);
|
|
44439
|
+
const yMin = max(overflow.top, 0);
|
|
44440
|
+
const yMax = max(overflow.bottom, 0);
|
|
44441
|
+
|
|
44442
|
+
if (isYAxis) {
|
|
44443
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
44444
|
+
} else {
|
|
44445
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
44446
|
+
}
|
|
44447
|
+
}
|
|
44448
|
+
|
|
44449
|
+
await apply({ ...state,
|
|
44450
|
+
availableWidth,
|
|
44451
|
+
availableHeight
|
|
44452
|
+
});
|
|
44453
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
44454
|
+
|
|
44455
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
44456
|
+
return {
|
|
44457
|
+
reset: {
|
|
44458
|
+
rects: true
|
|
44459
|
+
}
|
|
44460
|
+
};
|
|
44461
|
+
}
|
|
44462
|
+
|
|
44463
|
+
return {};
|
|
44464
|
+
}
|
|
44465
|
+
|
|
44466
|
+
};
|
|
44467
|
+
};
|
|
43909
44468
|
|
|
43910
44469
|
function getNodeName(node) {
|
|
43911
44470
|
if (isNode$1(node)) {
|
|
@@ -43921,7 +44480,7 @@ function getNodeName(node) {
|
|
|
43921
44480
|
function getWindow(node) {
|
|
43922
44481
|
var _node$ownerDocument;
|
|
43923
44482
|
|
|
43924
|
-
return (node == null
|
|
44483
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
43925
44484
|
}
|
|
43926
44485
|
|
|
43927
44486
|
function getDocumentElement(node) {
|
|
@@ -44180,9 +44739,10 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
44180
44739
|
if (domElement) {
|
|
44181
44740
|
const win = getWindow(domElement);
|
|
44182
44741
|
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
44183
|
-
let
|
|
44742
|
+
let currentWin = win;
|
|
44743
|
+
let currentIFrame = currentWin.frameElement;
|
|
44184
44744
|
|
|
44185
|
-
while (currentIFrame && offsetParent && offsetWin !==
|
|
44745
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
44186
44746
|
const iframeScale = getScale(currentIFrame);
|
|
44187
44747
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
44188
44748
|
const css = getComputedStyle$1(currentIFrame);
|
|
@@ -44194,7 +44754,8 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
44194
44754
|
height *= iframeScale.y;
|
|
44195
44755
|
x += left;
|
|
44196
44756
|
y += top;
|
|
44197
|
-
|
|
44757
|
+
currentWin = getWindow(currentIFrame);
|
|
44758
|
+
currentIFrame = currentWin.frameElement;
|
|
44198
44759
|
}
|
|
44199
44760
|
}
|
|
44200
44761
|
|
|
@@ -44206,16 +44767,30 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
44206
44767
|
});
|
|
44207
44768
|
}
|
|
44208
44769
|
|
|
44770
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
44771
|
+
|
|
44772
|
+
function isTopLayer(floating) {
|
|
44773
|
+
return topLayerSelectors.some(selector => {
|
|
44774
|
+
try {
|
|
44775
|
+
return floating.matches(selector);
|
|
44776
|
+
} catch (e) {
|
|
44777
|
+
return false;
|
|
44778
|
+
}
|
|
44779
|
+
});
|
|
44780
|
+
}
|
|
44781
|
+
|
|
44209
44782
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
44210
44783
|
let {
|
|
44784
|
+
elements,
|
|
44211
44785
|
rect,
|
|
44212
44786
|
offsetParent,
|
|
44213
44787
|
strategy
|
|
44214
44788
|
} = _ref;
|
|
44215
|
-
const
|
|
44789
|
+
const isFixed = strategy === 'fixed';
|
|
44216
44790
|
const documentElement = getDocumentElement(offsetParent);
|
|
44791
|
+
const topLayer = elements ? isTopLayer(elements.floating) : false;
|
|
44217
44792
|
|
|
44218
|
-
if (offsetParent === documentElement) {
|
|
44793
|
+
if (offsetParent === documentElement || topLayer && isFixed) {
|
|
44219
44794
|
return rect;
|
|
44220
44795
|
}
|
|
44221
44796
|
|
|
@@ -44225,8 +44800,9 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
44225
44800
|
};
|
|
44226
44801
|
let scale = createCoords(1);
|
|
44227
44802
|
const offsets = createCoords(0);
|
|
44803
|
+
const isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
44228
44804
|
|
|
44229
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement &&
|
|
44805
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
44230
44806
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
44231
44807
|
scroll = getNodeScroll(offsetParent);
|
|
44232
44808
|
}
|
|
@@ -44425,7 +45001,14 @@ function getClippingRect(_ref) {
|
|
|
44425
45001
|
}
|
|
44426
45002
|
|
|
44427
45003
|
function getDimensions(element) {
|
|
44428
|
-
|
|
45004
|
+
const {
|
|
45005
|
+
width,
|
|
45006
|
+
height
|
|
45007
|
+
} = getCssDimensions(element);
|
|
45008
|
+
return {
|
|
45009
|
+
width,
|
|
45010
|
+
height
|
|
45011
|
+
};
|
|
44429
45012
|
}
|
|
44430
45013
|
|
|
44431
45014
|
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
@@ -44453,9 +45036,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
44453
45036
|
}
|
|
44454
45037
|
}
|
|
44455
45038
|
|
|
45039
|
+
const x = rect.left + scroll.scrollLeft - offsets.x;
|
|
45040
|
+
const y = rect.top + scroll.scrollTop - offsets.y;
|
|
44456
45041
|
return {
|
|
44457
|
-
x
|
|
44458
|
-
y
|
|
45042
|
+
x,
|
|
45043
|
+
y,
|
|
44459
45044
|
width: rect.width,
|
|
44460
45045
|
height: rect.height
|
|
44461
45046
|
};
|
|
@@ -44478,7 +45063,7 @@ function getTrueOffsetParent(element, polyfill) {
|
|
|
44478
45063
|
function getOffsetParent(element, polyfill) {
|
|
44479
45064
|
const window = getWindow(element);
|
|
44480
45065
|
|
|
44481
|
-
if (!isHTMLElement(element)) {
|
|
45066
|
+
if (!isHTMLElement(element) || isTopLayer(element)) {
|
|
44482
45067
|
return window;
|
|
44483
45068
|
}
|
|
44484
45069
|
|
|
@@ -44495,20 +45080,15 @@ function getOffsetParent(element, polyfill) {
|
|
|
44495
45080
|
return offsetParent || getContainingBlock(element) || window;
|
|
44496
45081
|
}
|
|
44497
45082
|
|
|
44498
|
-
const getElementRects = async function (
|
|
44499
|
-
let {
|
|
44500
|
-
reference,
|
|
44501
|
-
floating,
|
|
44502
|
-
strategy
|
|
44503
|
-
} = _ref;
|
|
45083
|
+
const getElementRects = async function (data) {
|
|
44504
45084
|
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
44505
45085
|
const getDimensionsFn = this.getDimensions;
|
|
44506
45086
|
return {
|
|
44507
|
-
reference: getRectRelativeToOffsetParent(reference, (await getOffsetParentFn(floating)), strategy),
|
|
45087
|
+
reference: getRectRelativeToOffsetParent(data.reference, (await getOffsetParentFn(data.floating)), data.strategy),
|
|
44508
45088
|
floating: {
|
|
44509
45089
|
x: 0,
|
|
44510
45090
|
y: 0,
|
|
44511
|
-
...(await getDimensionsFn(floating))
|
|
45091
|
+
...(await getDimensionsFn(data.floating))
|
|
44512
45092
|
}
|
|
44513
45093
|
};
|
|
44514
45094
|
};
|
|
@@ -44536,8 +45116,10 @@ function observeMove(element, onMove) {
|
|
|
44536
45116
|
const root = getDocumentElement(element);
|
|
44537
45117
|
|
|
44538
45118
|
function cleanup() {
|
|
45119
|
+
var _io;
|
|
45120
|
+
|
|
44539
45121
|
clearTimeout(timeoutId);
|
|
44540
|
-
io
|
|
45122
|
+
(_io = io) == null || _io.disconnect();
|
|
44541
45123
|
io = null;
|
|
44542
45124
|
}
|
|
44543
45125
|
|
|
@@ -44658,7 +45240,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
44658
45240
|
resizeObserver.unobserve(floating);
|
|
44659
45241
|
cancelAnimationFrame(reobserveFrame);
|
|
44660
45242
|
reobserveFrame = requestAnimationFrame(() => {
|
|
44661
|
-
|
|
45243
|
+
var _resizeObserver;
|
|
45244
|
+
|
|
45245
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
44662
45246
|
});
|
|
44663
45247
|
}
|
|
44664
45248
|
|
|
@@ -44692,12 +45276,14 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
44692
45276
|
|
|
44693
45277
|
update();
|
|
44694
45278
|
return () => {
|
|
45279
|
+
var _resizeObserver2;
|
|
45280
|
+
|
|
44695
45281
|
ancestors.forEach(ancestor => {
|
|
44696
45282
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
44697
45283
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
44698
45284
|
});
|
|
44699
|
-
cleanupIo
|
|
44700
|
-
resizeObserver
|
|
45285
|
+
cleanupIo == null || cleanupIo();
|
|
45286
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
44701
45287
|
resizeObserver = null;
|
|
44702
45288
|
|
|
44703
45289
|
if (animationFrame) {
|
|
@@ -44706,11 +45292,67 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
44706
45292
|
};
|
|
44707
45293
|
}
|
|
44708
45294
|
/**
|
|
44709
|
-
*
|
|
44710
|
-
*
|
|
44711
|
-
*
|
|
45295
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
45296
|
+
* that has the most space available automatically, without needing to specify a
|
|
45297
|
+
* preferred placement. Alternative to `flip`.
|
|
45298
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
45299
|
+
*/
|
|
45300
|
+
|
|
45301
|
+
|
|
45302
|
+
autoPlacement;
|
|
45303
|
+
/**
|
|
45304
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
45305
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
45306
|
+
* @see https://floating-ui.com/docs/shift
|
|
45307
|
+
*/
|
|
45308
|
+
|
|
45309
|
+
const shift = shift$1;
|
|
45310
|
+
/**
|
|
45311
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
45312
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
45313
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
45314
|
+
* @see https://floating-ui.com/docs/flip
|
|
45315
|
+
*/
|
|
45316
|
+
|
|
45317
|
+
const flip = flip$1;
|
|
45318
|
+
/**
|
|
45319
|
+
* Provides data that allows you to change the size of the floating element —
|
|
45320
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
45321
|
+
* width of the reference element.
|
|
45322
|
+
* @see https://floating-ui.com/docs/size
|
|
45323
|
+
*/
|
|
45324
|
+
|
|
45325
|
+
size;
|
|
45326
|
+
/**
|
|
45327
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
45328
|
+
* when it is not in the same clipping context as the reference element.
|
|
45329
|
+
* @see https://floating-ui.com/docs/hide
|
|
45330
|
+
*/
|
|
45331
|
+
|
|
45332
|
+
hide;
|
|
45333
|
+
/**
|
|
45334
|
+
* Provides data to position an inner element of the floating element so that it
|
|
45335
|
+
* appears centered to the reference element.
|
|
45336
|
+
* @see https://floating-ui.com/docs/arrow
|
|
45337
|
+
*/
|
|
45338
|
+
|
|
45339
|
+
const arrow = arrow$1;
|
|
45340
|
+
/**
|
|
45341
|
+
* Provides improved positioning for inline reference elements that can span
|
|
45342
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
45343
|
+
* @see https://floating-ui.com/docs/inline
|
|
44712
45344
|
*/
|
|
44713
45345
|
|
|
45346
|
+
inline;
|
|
45347
|
+
/**
|
|
45348
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
45349
|
+
*/
|
|
45350
|
+
|
|
45351
|
+
limitShift;
|
|
45352
|
+
/**
|
|
45353
|
+
* Computes the `x` and `y` coordinates that will place the floating element
|
|
45354
|
+
* next to a given reference element.
|
|
45355
|
+
*/
|
|
44714
45356
|
|
|
44715
45357
|
const computePosition = (reference, floating, options) => {
|
|
44716
45358
|
// This caches the expensive `getClippingElementAncestors` function so that
|
|
@@ -44742,38 +45384,57 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
44742
45384
|
var hasOwn = {}.hasOwnProperty;
|
|
44743
45385
|
|
|
44744
45386
|
function classNames() {
|
|
44745
|
-
var classes =
|
|
45387
|
+
var classes = '';
|
|
44746
45388
|
|
|
44747
45389
|
for (var i = 0; i < arguments.length; i++) {
|
|
44748
45390
|
var arg = arguments[i];
|
|
44749
|
-
if (!arg) continue;
|
|
44750
|
-
var argType = typeof arg;
|
|
44751
45391
|
|
|
44752
|
-
if (
|
|
44753
|
-
classes
|
|
44754
|
-
}
|
|
44755
|
-
|
|
44756
|
-
var inner = classNames.apply(null, arg);
|
|
45392
|
+
if (arg) {
|
|
45393
|
+
classes = appendClass(classes, parseValue(arg));
|
|
45394
|
+
}
|
|
45395
|
+
}
|
|
44757
45396
|
|
|
44758
|
-
|
|
44759
|
-
|
|
44760
|
-
}
|
|
44761
|
-
}
|
|
44762
|
-
} else if (argType === 'object') {
|
|
44763
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
44764
|
-
classes.push(arg.toString());
|
|
44765
|
-
continue;
|
|
44766
|
-
}
|
|
45397
|
+
return classes;
|
|
45398
|
+
}
|
|
44767
45399
|
|
|
44768
|
-
|
|
44769
|
-
|
|
44770
|
-
|
|
44771
|
-
|
|
44772
|
-
|
|
45400
|
+
function parseValue(arg) {
|
|
45401
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
45402
|
+
return arg;
|
|
45403
|
+
}
|
|
45404
|
+
|
|
45405
|
+
if (typeof arg !== 'object') {
|
|
45406
|
+
return '';
|
|
45407
|
+
}
|
|
45408
|
+
|
|
45409
|
+
if (Array.isArray(arg)) {
|
|
45410
|
+
return classNames.apply(null, arg);
|
|
45411
|
+
}
|
|
45412
|
+
|
|
45413
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
45414
|
+
return arg.toString();
|
|
45415
|
+
}
|
|
45416
|
+
|
|
45417
|
+
var classes = '';
|
|
45418
|
+
|
|
45419
|
+
for (var key in arg) {
|
|
45420
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
45421
|
+
classes = appendClass(classes, key);
|
|
44773
45422
|
}
|
|
44774
45423
|
}
|
|
44775
45424
|
|
|
44776
|
-
return classes
|
|
45425
|
+
return classes;
|
|
45426
|
+
}
|
|
45427
|
+
|
|
45428
|
+
function appendClass(value, newClass) {
|
|
45429
|
+
if (!newClass) {
|
|
45430
|
+
return value;
|
|
45431
|
+
}
|
|
45432
|
+
|
|
45433
|
+
if (value) {
|
|
45434
|
+
return value + ' ' + newClass;
|
|
45435
|
+
}
|
|
45436
|
+
|
|
45437
|
+
return value + newClass;
|
|
44777
45438
|
}
|
|
44778
45439
|
|
|
44779
45440
|
if (module.exports) {
|
|
@@ -44802,78 +45463,32 @@ function S({
|
|
|
44802
45463
|
css: e,
|
|
44803
45464
|
id: t = w,
|
|
44804
45465
|
type: o = "base",
|
|
44805
|
-
ref:
|
|
45466
|
+
ref: r
|
|
44806
45467
|
}) {
|
|
44807
|
-
var
|
|
45468
|
+
var l, n;
|
|
44808
45469
|
if (!e || "undefined" == typeof document || b[o]) return;
|
|
44809
|
-
if ("core" === o && "undefined" != typeof process && (null === (
|
|
45470
|
+
if ("core" === o && "undefined" != typeof process && (null === (l = null === process || void 0 === process ? void 0 : process.env) || void 0 === l ? void 0 : l.REACT_TOOLTIP_DISABLE_CORE_STYLES)) return;
|
|
44810
45471
|
if ("base" !== o && "undefined" != typeof process && (null === (n = null === process || void 0 === process ? void 0 : process.env) || void 0 === n ? void 0 : n.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
|
|
44811
|
-
"core" === o && (t = h),
|
|
45472
|
+
"core" === o && (t = h), r || (r = {});
|
|
44812
45473
|
const {
|
|
44813
45474
|
insertAt: c
|
|
44814
|
-
} =
|
|
45475
|
+
} = r;
|
|
44815
45476
|
if (document.getElementById(t)) return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);
|
|
44816
45477
|
const i = document.head || document.getElementsByTagName("head")[0],
|
|
44817
45478
|
s = document.createElement("style");
|
|
44818
45479
|
s.id = t, s.type = "text/css", "top" === c && i.firstChild ? i.insertBefore(s, i.firstChild) : i.appendChild(s), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e)), b[o] = !0;
|
|
44819
45480
|
}
|
|
44820
45481
|
|
|
44821
|
-
const g = (
|
|
44822
|
-
let l = null;
|
|
44823
|
-
return function (...r) {
|
|
44824
|
-
const n = () => {
|
|
44825
|
-
l = null, o || e.apply(this, r);
|
|
44826
|
-
};
|
|
44827
|
-
|
|
44828
|
-
o && !l && (e.apply(this, r), l = setTimeout(n, t)), o || (l && clearTimeout(l), l = setTimeout(n, t));
|
|
44829
|
-
};
|
|
44830
|
-
},
|
|
44831
|
-
_ = "DEFAULT_TOOLTIP_ID",
|
|
44832
|
-
A = {
|
|
44833
|
-
anchorRefs: new Set(),
|
|
44834
|
-
activeAnchor: {
|
|
44835
|
-
current: null
|
|
44836
|
-
},
|
|
44837
|
-
attach: () => {},
|
|
44838
|
-
detach: () => {},
|
|
44839
|
-
setActiveAnchor: () => {}
|
|
44840
|
-
},
|
|
44841
|
-
O = React.createContext({
|
|
44842
|
-
getTooltipData: () => A
|
|
44843
|
-
});
|
|
44844
|
-
|
|
44845
|
-
function k(e = _) {
|
|
44846
|
-
return React.useContext(O).getTooltipData(e);
|
|
44847
|
-
}
|
|
44848
|
-
|
|
44849
|
-
const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect,
|
|
44850
|
-
R = e => {
|
|
44851
|
-
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
44852
|
-
const t = getComputedStyle(e);
|
|
44853
|
-
return ["overflow", "overflow-x", "overflow-y"].some(e => {
|
|
44854
|
-
const o = t.getPropertyValue(e);
|
|
44855
|
-
return "auto" === o || "scroll" === o;
|
|
44856
|
-
});
|
|
44857
|
-
},
|
|
44858
|
-
x = e => {
|
|
44859
|
-
if (!e) return null;
|
|
44860
|
-
let t = e.parentElement;
|
|
44861
|
-
|
|
44862
|
-
for (; t;) {
|
|
44863
|
-
if (R(t)) return t;
|
|
44864
|
-
t = t.parentElement;
|
|
44865
|
-
}
|
|
44866
|
-
|
|
44867
|
-
return document.scrollingElement || document.documentElement;
|
|
44868
|
-
},
|
|
44869
|
-
N = async ({
|
|
45482
|
+
const g = async ({
|
|
44870
45483
|
elementReference: e = null,
|
|
44871
45484
|
tooltipReference: t = null,
|
|
44872
45485
|
tooltipArrowReference: o = null,
|
|
44873
|
-
place:
|
|
44874
|
-
offset:
|
|
45486
|
+
place: r = "top",
|
|
45487
|
+
offset: l = 10,
|
|
44875
45488
|
strategy: n = "absolute",
|
|
44876
|
-
middlewares: c = [offset(Number(
|
|
45489
|
+
middlewares: c = [offset(Number(l)), flip({
|
|
45490
|
+
fallbackAxisSideDirection: "start"
|
|
45491
|
+
}), shift({
|
|
44877
45492
|
padding: 5
|
|
44878
45493
|
})],
|
|
44879
45494
|
border: i
|
|
@@ -44881,28 +45496,28 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
44881
45496
|
if (!e) return {
|
|
44882
45497
|
tooltipStyles: {},
|
|
44883
45498
|
tooltipArrowStyles: {},
|
|
44884
|
-
place:
|
|
45499
|
+
place: r
|
|
44885
45500
|
};
|
|
44886
45501
|
if (null === t) return {
|
|
44887
45502
|
tooltipStyles: {},
|
|
44888
45503
|
tooltipArrowStyles: {},
|
|
44889
|
-
place:
|
|
45504
|
+
place: r
|
|
44890
45505
|
};
|
|
44891
45506
|
const s = c;
|
|
44892
45507
|
return o ? (s.push(arrow({
|
|
44893
45508
|
element: o,
|
|
44894
45509
|
padding: 5
|
|
44895
45510
|
})), computePosition(e, t, {
|
|
44896
|
-
placement:
|
|
45511
|
+
placement: r,
|
|
44897
45512
|
strategy: n,
|
|
44898
45513
|
middleware: s
|
|
44899
45514
|
}).then(({
|
|
44900
45515
|
x: e,
|
|
44901
45516
|
y: t,
|
|
44902
45517
|
placement: o,
|
|
44903
|
-
middlewareData:
|
|
45518
|
+
middlewareData: r
|
|
44904
45519
|
}) => {
|
|
44905
|
-
var
|
|
45520
|
+
var l, n;
|
|
44906
45521
|
const c = {
|
|
44907
45522
|
left: `${e}px`,
|
|
44908
45523
|
top: `${t}px`,
|
|
@@ -44911,17 +45526,17 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
44911
45526
|
{
|
|
44912
45527
|
x: s,
|
|
44913
45528
|
y: a
|
|
44914
|
-
} = null !== (
|
|
45529
|
+
} = null !== (l = r.arrow) && void 0 !== l ? l : {
|
|
44915
45530
|
x: 0,
|
|
44916
45531
|
y: 0
|
|
44917
45532
|
},
|
|
44918
|
-
|
|
45533
|
+
u = null !== (n = {
|
|
44919
45534
|
top: "bottom",
|
|
44920
45535
|
right: "left",
|
|
44921
45536
|
bottom: "top",
|
|
44922
45537
|
left: "right"
|
|
44923
45538
|
}[o.split("-")[0]]) && void 0 !== n ? n : "bottom",
|
|
44924
|
-
|
|
45539
|
+
d = i && {
|
|
44925
45540
|
borderBottom: i,
|
|
44926
45541
|
borderRight: i
|
|
44927
45542
|
};
|
|
@@ -44939,8 +45554,8 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
44939
45554
|
top: null != a ? `${a}px` : "",
|
|
44940
45555
|
right: "",
|
|
44941
45556
|
bottom: "",
|
|
44942
|
-
...
|
|
44943
|
-
[
|
|
45557
|
+
...d,
|
|
45558
|
+
[u]: `-${4 + p}px`
|
|
44944
45559
|
},
|
|
44945
45560
|
place: o
|
|
44946
45561
|
};
|
|
@@ -44960,9 +45575,72 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
44960
45575
|
tooltipArrowStyles: {},
|
|
44961
45576
|
place: o
|
|
44962
45577
|
}));
|
|
44963
|
-
}
|
|
45578
|
+
},
|
|
45579
|
+
A = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t),
|
|
45580
|
+
_ = (e, t, o) => {
|
|
45581
|
+
let r = null;
|
|
44964
45582
|
|
|
44965
|
-
|
|
45583
|
+
const l = function (...l) {
|
|
45584
|
+
const n = () => {
|
|
45585
|
+
r = null, o || e.apply(this, l);
|
|
45586
|
+
};
|
|
45587
|
+
|
|
45588
|
+
o && !r && (e.apply(this, l), r = setTimeout(n, t)), o || (r && clearTimeout(r), r = setTimeout(n, t));
|
|
45589
|
+
};
|
|
45590
|
+
|
|
45591
|
+
return l.cancel = () => {
|
|
45592
|
+
r && (clearTimeout(r), r = null);
|
|
45593
|
+
}, l;
|
|
45594
|
+
},
|
|
45595
|
+
O = e => null !== e && !Array.isArray(e) && "object" == typeof e,
|
|
45596
|
+
T = (e, t) => {
|
|
45597
|
+
if (e === t) return !0;
|
|
45598
|
+
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every((e, o) => T(e, t[o]));
|
|
45599
|
+
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
45600
|
+
if (!O(e) || !O(t)) return e === t;
|
|
45601
|
+
const o = Object.keys(e),
|
|
45602
|
+
r = Object.keys(t);
|
|
45603
|
+
return o.length === r.length && o.every(o => T(e[o], t[o]));
|
|
45604
|
+
},
|
|
45605
|
+
k = e => {
|
|
45606
|
+
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
45607
|
+
const t = getComputedStyle(e);
|
|
45608
|
+
return ["overflow", "overflow-x", "overflow-y"].some(e => {
|
|
45609
|
+
const o = t.getPropertyValue(e);
|
|
45610
|
+
return "auto" === o || "scroll" === o;
|
|
45611
|
+
});
|
|
45612
|
+
},
|
|
45613
|
+
C = e => {
|
|
45614
|
+
if (!e) return null;
|
|
45615
|
+
let t = e.parentElement;
|
|
45616
|
+
|
|
45617
|
+
for (; t;) {
|
|
45618
|
+
if (k(t)) return t;
|
|
45619
|
+
t = t.parentElement;
|
|
45620
|
+
}
|
|
45621
|
+
|
|
45622
|
+
return document.scrollingElement || document.documentElement;
|
|
45623
|
+
},
|
|
45624
|
+
L = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect,
|
|
45625
|
+
R = "DEFAULT_TOOLTIP_ID",
|
|
45626
|
+
x = {
|
|
45627
|
+
anchorRefs: new Set(),
|
|
45628
|
+
activeAnchor: {
|
|
45629
|
+
current: null
|
|
45630
|
+
},
|
|
45631
|
+
attach: () => {},
|
|
45632
|
+
detach: () => {},
|
|
45633
|
+
setActiveAnchor: () => {}
|
|
45634
|
+
},
|
|
45635
|
+
N = React.createContext({
|
|
45636
|
+
getTooltipData: () => x
|
|
45637
|
+
});
|
|
45638
|
+
|
|
45639
|
+
function I(e = R) {
|
|
45640
|
+
return React.useContext(N).getTooltipData(e);
|
|
45641
|
+
}
|
|
45642
|
+
|
|
45643
|
+
var B = {
|
|
44966
45644
|
tooltip: "core-styles-module_tooltip__3vRRp",
|
|
44967
45645
|
fixed: "core-styles-module_fixed__pcSol",
|
|
44968
45646
|
arrow: "core-styles-module_arrow__cvMwQ",
|
|
@@ -44971,7 +45649,7 @@ var $ = {
|
|
|
44971
45649
|
show: "core-styles-module_show__Nt9eE",
|
|
44972
45650
|
closing: "core-styles-module_closing__sGnxF"
|
|
44973
45651
|
},
|
|
44974
|
-
|
|
45652
|
+
z = {
|
|
44975
45653
|
tooltip: "styles-module_tooltip__mnnfp",
|
|
44976
45654
|
arrow: "styles-module_arrow__K0L3T",
|
|
44977
45655
|
dark: "styles-module_dark__xNqje",
|
|
@@ -44982,13 +45660,13 @@ var $ = {
|
|
|
44982
45660
|
info: "styles-module_info__BWdHW"
|
|
44983
45661
|
};
|
|
44984
45662
|
|
|
44985
|
-
const
|
|
45663
|
+
const D = ({
|
|
44986
45664
|
forwardRef: t,
|
|
44987
45665
|
id: r,
|
|
44988
|
-
className:
|
|
44989
|
-
classNameArrow:
|
|
44990
|
-
variant:
|
|
44991
|
-
anchorId:
|
|
45666
|
+
className: c,
|
|
45667
|
+
classNameArrow: i,
|
|
45668
|
+
variant: u = "dark",
|
|
45669
|
+
anchorId: d,
|
|
44992
45670
|
anchorSelect: p,
|
|
44993
45671
|
place: v = "top",
|
|
44994
45672
|
offset: m = 10,
|
|
@@ -44997,41 +45675,46 @@ const I = ({
|
|
|
44997
45675
|
positionStrategy: b = "absolute",
|
|
44998
45676
|
middlewares: S,
|
|
44999
45677
|
wrapper: E,
|
|
45000
|
-
delayShow:
|
|
45001
|
-
delayHide:
|
|
45002
|
-
float:
|
|
45003
|
-
hidden:
|
|
45004
|
-
noArrow:
|
|
45005
|
-
clickable:
|
|
45006
|
-
closeOnEsc:
|
|
45007
|
-
closeOnScroll:
|
|
45008
|
-
closeOnResize:
|
|
45009
|
-
openEvents:
|
|
45010
|
-
closeEvents:
|
|
45011
|
-
globalCloseEvents:
|
|
45012
|
-
imperativeModeOnly:
|
|
45013
|
-
style:
|
|
45014
|
-
position:
|
|
45678
|
+
delayShow: A = 0,
|
|
45679
|
+
delayHide: O = 0,
|
|
45680
|
+
float: k = !1,
|
|
45681
|
+
hidden: R = !1,
|
|
45682
|
+
noArrow: x = !1,
|
|
45683
|
+
clickable: N = !1,
|
|
45684
|
+
closeOnEsc: $ = !1,
|
|
45685
|
+
closeOnScroll: j = !1,
|
|
45686
|
+
closeOnResize: D = !1,
|
|
45687
|
+
openEvents: q,
|
|
45688
|
+
closeEvents: H,
|
|
45689
|
+
globalCloseEvents: M,
|
|
45690
|
+
imperativeModeOnly: W,
|
|
45691
|
+
style: P,
|
|
45692
|
+
position: V,
|
|
45015
45693
|
afterShow: F,
|
|
45016
45694
|
afterHide: K,
|
|
45017
45695
|
content: U,
|
|
45018
45696
|
contentWrapperRef: X,
|
|
45019
45697
|
isOpen: Y,
|
|
45020
|
-
|
|
45021
|
-
|
|
45022
|
-
|
|
45023
|
-
|
|
45024
|
-
|
|
45025
|
-
|
|
45698
|
+
defaultIsOpen: G = !1,
|
|
45699
|
+
setIsOpen: Z,
|
|
45700
|
+
activeAnchor: J,
|
|
45701
|
+
setActiveAnchor: Q,
|
|
45702
|
+
border: ee,
|
|
45703
|
+
opacity: te,
|
|
45704
|
+
arrowColor: oe,
|
|
45705
|
+
role: re = "tooltip"
|
|
45026
45706
|
}) => {
|
|
45027
|
-
var
|
|
45028
|
-
const
|
|
45029
|
-
|
|
45030
|
-
|
|
45031
|
-
|
|
45032
|
-
|
|
45033
|
-
[
|
|
45034
|
-
|
|
45707
|
+
var le;
|
|
45708
|
+
const ne = React.useRef(null),
|
|
45709
|
+
ce = React.useRef(null),
|
|
45710
|
+
ie = React.useRef(null),
|
|
45711
|
+
se = React.useRef(null),
|
|
45712
|
+
ae = React.useRef(null),
|
|
45713
|
+
[ue, de] = React.useState({
|
|
45714
|
+
tooltipStyles: {},
|
|
45715
|
+
tooltipArrowStyles: {},
|
|
45716
|
+
place: v
|
|
45717
|
+
}),
|
|
45035
45718
|
[pe, ve] = React.useState(!1),
|
|
45036
45719
|
[me, fe] = React.useState(!1),
|
|
45037
45720
|
[ye, he] = React.useState(null),
|
|
@@ -45040,13 +45723,13 @@ const I = ({
|
|
|
45040
45723
|
{
|
|
45041
45724
|
anchorRefs: Se,
|
|
45042
45725
|
setActiveAnchor: Ee
|
|
45043
|
-
} =
|
|
45726
|
+
} = I(r),
|
|
45044
45727
|
ge = React.useRef(!1),
|
|
45045
|
-
[
|
|
45728
|
+
[Ae, _e] = React.useState([]),
|
|
45046
45729
|
Oe = React.useRef(!1),
|
|
45047
45730
|
Te = w || h.includes("click"),
|
|
45048
|
-
ke = Te || (null ==
|
|
45049
|
-
|
|
45731
|
+
ke = Te || (null == q ? void 0 : q.click) || (null == q ? void 0 : q.dblclick) || (null == q ? void 0 : q.mousedown),
|
|
45732
|
+
Ce = q ? { ...q
|
|
45050
45733
|
} : {
|
|
45051
45734
|
mouseenter: !0,
|
|
45052
45735
|
focus: !0,
|
|
@@ -45054,12 +45737,12 @@ const I = ({
|
|
|
45054
45737
|
dblclick: !1,
|
|
45055
45738
|
mousedown: !1
|
|
45056
45739
|
};
|
|
45057
|
-
!
|
|
45740
|
+
!q && Te && Object.assign(Ce, {
|
|
45058
45741
|
mouseenter: !1,
|
|
45059
45742
|
focus: !1,
|
|
45060
45743
|
click: !0
|
|
45061
45744
|
});
|
|
45062
|
-
const
|
|
45745
|
+
const Le = H ? { ...H
|
|
45063
45746
|
} : {
|
|
45064
45747
|
mouseleave: !0,
|
|
45065
45748
|
blur: !0,
|
|
@@ -45067,24 +45750,24 @@ const I = ({
|
|
|
45067
45750
|
dblclick: !1,
|
|
45068
45751
|
mouseup: !1
|
|
45069
45752
|
};
|
|
45070
|
-
!
|
|
45753
|
+
!H && Te && Object.assign(Le, {
|
|
45071
45754
|
mouseleave: !1,
|
|
45072
45755
|
blur: !1
|
|
45073
45756
|
});
|
|
45074
|
-
const Re =
|
|
45757
|
+
const Re = M ? { ...M
|
|
45075
45758
|
} : {
|
|
45076
|
-
escape:
|
|
45077
|
-
scroll:
|
|
45078
|
-
resize:
|
|
45759
|
+
escape: $ || !1,
|
|
45760
|
+
scroll: j || !1,
|
|
45761
|
+
resize: D || !1,
|
|
45079
45762
|
clickOutsideAnchor: ke || !1
|
|
45080
45763
|
};
|
|
45081
|
-
|
|
45764
|
+
W && (Object.assign(Ce, {
|
|
45082
45765
|
mouseenter: !1,
|
|
45083
45766
|
focus: !1,
|
|
45084
45767
|
click: !1,
|
|
45085
45768
|
dblclick: !1,
|
|
45086
45769
|
mousedown: !1
|
|
45087
|
-
}), Object.assign(
|
|
45770
|
+
}), Object.assign(Le, {
|
|
45088
45771
|
mouseleave: !1,
|
|
45089
45772
|
blur: !1,
|
|
45090
45773
|
click: !1,
|
|
@@ -45095,13 +45778,13 @@ const I = ({
|
|
|
45095
45778
|
scroll: !1,
|
|
45096
45779
|
resize: !1,
|
|
45097
45780
|
clickOutsideAnchor: !1
|
|
45098
|
-
})),
|
|
45781
|
+
})), L(() => (Oe.current = !0, () => {
|
|
45099
45782
|
Oe.current = !1;
|
|
45100
45783
|
}), []);
|
|
45101
45784
|
|
|
45102
45785
|
const xe = e => {
|
|
45103
45786
|
Oe.current && (e && fe(!0), setTimeout(() => {
|
|
45104
|
-
Oe.current && (null ==
|
|
45787
|
+
Oe.current && (null == Z || Z(e), void 0 === Y && ve(e));
|
|
45105
45788
|
}, 10));
|
|
45106
45789
|
};
|
|
45107
45790
|
|
|
@@ -45115,16 +45798,30 @@ const I = ({
|
|
|
45115
45798
|
clearTimeout(e);
|
|
45116
45799
|
};
|
|
45117
45800
|
}, [Y]), React.useEffect(() => {
|
|
45118
|
-
pe !== we.current && (we.current = pe, pe
|
|
45801
|
+
if (pe !== we.current) if (ae.current && clearTimeout(ae.current), we.current = pe, pe) null == F || F();else {
|
|
45802
|
+
const e = (e => {
|
|
45803
|
+
const t = e.match(/^([\d.]+)(ms|s)$/);
|
|
45804
|
+
if (!t) return 0;
|
|
45805
|
+
const [, o, r] = t;
|
|
45806
|
+
return Number(o) * ("ms" === r ? 1 : 1e3);
|
|
45807
|
+
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
45808
|
+
|
|
45809
|
+
ae.current = setTimeout(() => {
|
|
45810
|
+
fe(!1), he(null), null == K || K();
|
|
45811
|
+
}, e + 25);
|
|
45812
|
+
}
|
|
45119
45813
|
}, [pe]);
|
|
45120
45814
|
|
|
45121
|
-
const Ne =
|
|
45122
|
-
|
|
45815
|
+
const Ne = e => {
|
|
45816
|
+
de(t => T(t, e) ? t : e);
|
|
45817
|
+
},
|
|
45818
|
+
$e = (e = A) => {
|
|
45819
|
+
ie.current && clearTimeout(ie.current), me ? xe(!0) : ie.current = setTimeout(() => {
|
|
45123
45820
|
xe(!0);
|
|
45124
45821
|
}, e);
|
|
45125
45822
|
},
|
|
45126
|
-
|
|
45127
|
-
|
|
45823
|
+
Ie = (e = O) => {
|
|
45824
|
+
se.current && clearTimeout(se.current), se.current = setTimeout(() => {
|
|
45128
45825
|
ge.current || xe(!1);
|
|
45129
45826
|
}, e);
|
|
45130
45827
|
},
|
|
@@ -45132,22 +45829,22 @@ const I = ({
|
|
|
45132
45829
|
var t;
|
|
45133
45830
|
if (!e) return;
|
|
45134
45831
|
const o = null !== (t = e.currentTarget) && void 0 !== t ? t : e.target;
|
|
45135
|
-
if (!(null == o ? void 0 : o.isConnected)) return
|
|
45832
|
+
if (!(null == o ? void 0 : o.isConnected)) return Q(null), void Ee({
|
|
45136
45833
|
current: null
|
|
45137
45834
|
});
|
|
45138
|
-
|
|
45835
|
+
A ? $e() : xe(!0), Q(o), Ee({
|
|
45139
45836
|
current: o
|
|
45140
|
-
}),
|
|
45837
|
+
}), se.current && clearTimeout(se.current);
|
|
45141
45838
|
},
|
|
45142
|
-
|
|
45143
|
-
|
|
45839
|
+
Be = () => {
|
|
45840
|
+
N ? Ie(O || 100) : O ? Ie() : xe(!1), ie.current && clearTimeout(ie.current);
|
|
45144
45841
|
},
|
|
45145
|
-
|
|
45842
|
+
ze = ({
|
|
45146
45843
|
x: e,
|
|
45147
45844
|
y: t
|
|
45148
45845
|
}) => {
|
|
45149
45846
|
var o;
|
|
45150
|
-
const
|
|
45847
|
+
const r = {
|
|
45151
45848
|
getBoundingClientRect: () => ({
|
|
45152
45849
|
x: e,
|
|
45153
45850
|
y: t,
|
|
@@ -45159,78 +45856,83 @@ const I = ({
|
|
|
45159
45856
|
bottom: t
|
|
45160
45857
|
})
|
|
45161
45858
|
};
|
|
45162
|
-
|
|
45859
|
+
g({
|
|
45163
45860
|
place: null !== (o = null == ye ? void 0 : ye.place) && void 0 !== o ? o : v,
|
|
45164
45861
|
offset: m,
|
|
45165
|
-
elementReference:
|
|
45166
|
-
tooltipReference:
|
|
45167
|
-
tooltipArrowReference:
|
|
45862
|
+
elementReference: r,
|
|
45863
|
+
tooltipReference: ne.current,
|
|
45864
|
+
tooltipArrowReference: ce.current,
|
|
45168
45865
|
strategy: b,
|
|
45169
45866
|
middlewares: S,
|
|
45170
|
-
border:
|
|
45867
|
+
border: ee
|
|
45171
45868
|
}).then(e => {
|
|
45172
|
-
|
|
45869
|
+
Ne(e);
|
|
45173
45870
|
});
|
|
45174
45871
|
},
|
|
45175
|
-
|
|
45872
|
+
De = e => {
|
|
45176
45873
|
if (!e) return;
|
|
45177
45874
|
const t = e,
|
|
45178
45875
|
o = {
|
|
45179
45876
|
x: t.clientX,
|
|
45180
45877
|
y: t.clientY
|
|
45181
45878
|
};
|
|
45182
|
-
|
|
45879
|
+
ze(o), be.current = o;
|
|
45183
45880
|
},
|
|
45184
|
-
|
|
45881
|
+
qe = e => {
|
|
45185
45882
|
var t;
|
|
45186
45883
|
if (!pe) return;
|
|
45187
45884
|
const o = e.target;
|
|
45188
|
-
if (
|
|
45189
|
-
|
|
45885
|
+
if (!o.isConnected) return;
|
|
45886
|
+
if (null === (t = ne.current) || void 0 === t ? void 0 : t.contains(o)) return;
|
|
45887
|
+
[document.querySelector(`[id='${d}']`), ...Ae].some(e => null == e ? void 0 : e.contains(o)) || (xe(!1), ie.current && clearTimeout(ie.current));
|
|
45888
|
+
},
|
|
45889
|
+
He = _(je, 50, !0),
|
|
45890
|
+
Me = _(Be, 50, !0),
|
|
45891
|
+
We = e => {
|
|
45892
|
+
Me.cancel(), He(e);
|
|
45893
|
+
},
|
|
45894
|
+
Pe = () => {
|
|
45895
|
+
He.cancel(), Me();
|
|
45190
45896
|
},
|
|
45191
|
-
|
|
45192
|
-
He = g(Ie, 50, !0),
|
|
45193
|
-
Me = React.useCallback(() => {
|
|
45897
|
+
Ve = React.useCallback(() => {
|
|
45194
45898
|
var e, t;
|
|
45195
|
-
const o = null !== (e = null == ye ? void 0 : ye.position) && void 0 !== e ? e :
|
|
45196
|
-
o ?
|
|
45899
|
+
const o = null !== (e = null == ye ? void 0 : ye.position) && void 0 !== e ? e : V;
|
|
45900
|
+
o ? ze(o) : k ? be.current && ze(be.current) : (null == J ? void 0 : J.isConnected) && g({
|
|
45197
45901
|
place: null !== (t = null == ye ? void 0 : ye.place) && void 0 !== t ? t : v,
|
|
45198
45902
|
offset: m,
|
|
45199
|
-
elementReference:
|
|
45200
|
-
tooltipReference:
|
|
45201
|
-
tooltipArrowReference:
|
|
45903
|
+
elementReference: J,
|
|
45904
|
+
tooltipReference: ne.current,
|
|
45905
|
+
tooltipArrowReference: ce.current,
|
|
45202
45906
|
strategy: b,
|
|
45203
45907
|
middlewares: S,
|
|
45204
|
-
border:
|
|
45908
|
+
border: ee
|
|
45205
45909
|
}).then(e => {
|
|
45206
|
-
Oe.current && (
|
|
45910
|
+
Oe.current && Ne(e);
|
|
45207
45911
|
});
|
|
45208
|
-
}, [pe,
|
|
45912
|
+
}, [pe, J, U, P, v, null == ye ? void 0 : ye.place, m, b, V, null == ye ? void 0 : ye.position, k]);
|
|
45209
45913
|
|
|
45210
45914
|
React.useEffect(() => {
|
|
45211
45915
|
var e, t;
|
|
45212
45916
|
const o = new Set(Se);
|
|
45213
|
-
|
|
45214
|
-
_e.forEach(e => {
|
|
45917
|
+
Ae.forEach(e => {
|
|
45215
45918
|
o.add({
|
|
45216
45919
|
current: e
|
|
45217
45920
|
});
|
|
45218
45921
|
});
|
|
45219
|
-
|
|
45220
|
-
|
|
45221
|
-
|
|
45222
|
-
current: l
|
|
45922
|
+
const r = document.querySelector(`[id='${d}']`);
|
|
45923
|
+
r && o.add({
|
|
45924
|
+
current: r
|
|
45223
45925
|
});
|
|
45224
45926
|
|
|
45225
|
-
const
|
|
45927
|
+
const l = () => {
|
|
45226
45928
|
xe(!1);
|
|
45227
45929
|
},
|
|
45228
|
-
n =
|
|
45229
|
-
c =
|
|
45930
|
+
n = C(J),
|
|
45931
|
+
c = C(ne.current);
|
|
45230
45932
|
|
|
45231
|
-
Re.scroll && (window.addEventListener("scroll",
|
|
45933
|
+
Re.scroll && (window.addEventListener("scroll", l), null == n || n.addEventListener("scroll", l), null == c || c.addEventListener("scroll", l));
|
|
45232
45934
|
let i = null;
|
|
45233
|
-
Re.resize ? window.addEventListener("resize",
|
|
45935
|
+
Re.resize ? window.addEventListener("resize", l) : J && ne.current && (i = autoUpdate(J, ne.current, Ve, {
|
|
45234
45936
|
ancestorResize: !0,
|
|
45235
45937
|
elementResize: !0,
|
|
45236
45938
|
layoutShift: !0
|
|
@@ -45240,67 +45942,67 @@ const I = ({
|
|
|
45240
45942
|
"Escape" === e.key && xe(!1);
|
|
45241
45943
|
};
|
|
45242
45944
|
|
|
45243
|
-
Re.escape && window.addEventListener("keydown", s), Re.clickOutsideAnchor && window.addEventListener("click",
|
|
45945
|
+
Re.escape && window.addEventListener("keydown", s), Re.clickOutsideAnchor && window.addEventListener("click", qe);
|
|
45244
45946
|
|
|
45245
45947
|
const a = [],
|
|
45246
|
-
|
|
45247
|
-
pe || je(e);
|
|
45948
|
+
u = e => {
|
|
45949
|
+
pe && (null == e ? void 0 : e.target) === J || je(e);
|
|
45248
45950
|
},
|
|
45249
|
-
p =
|
|
45250
|
-
pe &&
|
|
45951
|
+
p = e => {
|
|
45952
|
+
pe && (null == e ? void 0 : e.target) === J && Be();
|
|
45251
45953
|
},
|
|
45252
45954
|
v = ["mouseenter", "mouseleave", "focus", "blur"],
|
|
45253
45955
|
m = ["click", "dblclick", "mousedown", "mouseup"];
|
|
45254
45956
|
|
|
45255
|
-
Object.entries(
|
|
45957
|
+
Object.entries(Ce).forEach(([e, t]) => {
|
|
45256
45958
|
t && (v.includes(e) ? a.push({
|
|
45257
45959
|
event: e,
|
|
45258
|
-
listener:
|
|
45960
|
+
listener: We
|
|
45259
45961
|
}) : m.includes(e) && a.push({
|
|
45260
45962
|
event: e,
|
|
45261
|
-
listener:
|
|
45963
|
+
listener: u
|
|
45262
45964
|
}));
|
|
45263
|
-
}), Object.entries(
|
|
45965
|
+
}), Object.entries(Le).forEach(([e, t]) => {
|
|
45264
45966
|
t && (v.includes(e) ? a.push({
|
|
45265
45967
|
event: e,
|
|
45266
|
-
listener:
|
|
45968
|
+
listener: Pe
|
|
45267
45969
|
}) : m.includes(e) && a.push({
|
|
45268
45970
|
event: e,
|
|
45269
45971
|
listener: p
|
|
45270
45972
|
}));
|
|
45271
|
-
}),
|
|
45272
|
-
event: "
|
|
45273
|
-
listener:
|
|
45973
|
+
}), k && a.push({
|
|
45974
|
+
event: "pointermove",
|
|
45975
|
+
listener: De
|
|
45274
45976
|
});
|
|
45275
45977
|
|
|
45276
45978
|
const y = () => {
|
|
45277
45979
|
ge.current = !0;
|
|
45278
45980
|
},
|
|
45279
45981
|
h = () => {
|
|
45280
|
-
ge.current = !1,
|
|
45982
|
+
ge.current = !1, Be();
|
|
45281
45983
|
};
|
|
45282
45984
|
|
|
45283
|
-
return
|
|
45985
|
+
return N && !ke && (null === (e = ne.current) || void 0 === e || e.addEventListener("mouseenter", y), null === (t = ne.current) || void 0 === t || t.addEventListener("mouseleave", h)), a.forEach(({
|
|
45284
45986
|
event: e,
|
|
45285
45987
|
listener: t
|
|
45286
45988
|
}) => {
|
|
45287
45989
|
o.forEach(o => {
|
|
45288
|
-
var
|
|
45289
|
-
null === (
|
|
45990
|
+
var r;
|
|
45991
|
+
null === (r = o.current) || void 0 === r || r.addEventListener(e, t);
|
|
45290
45992
|
});
|
|
45291
45993
|
}), () => {
|
|
45292
45994
|
var e, t;
|
|
45293
|
-
Re.scroll && (window.removeEventListener("scroll",
|
|
45995
|
+
Re.scroll && (window.removeEventListener("scroll", l), null == n || n.removeEventListener("scroll", l), null == c || c.removeEventListener("scroll", l)), Re.resize ? window.removeEventListener("resize", l) : null == i || i(), Re.clickOutsideAnchor && window.removeEventListener("click", qe), Re.escape && window.removeEventListener("keydown", s), N && !ke && (null === (e = ne.current) || void 0 === e || e.removeEventListener("mouseenter", y), null === (t = ne.current) || void 0 === t || t.removeEventListener("mouseleave", h)), a.forEach(({
|
|
45294
45996
|
event: e,
|
|
45295
45997
|
listener: t
|
|
45296
45998
|
}) => {
|
|
45297
45999
|
o.forEach(o => {
|
|
45298
|
-
var
|
|
45299
|
-
null === (
|
|
46000
|
+
var r;
|
|
46001
|
+
null === (r = o.current) || void 0 === r || r.removeEventListener(e, t);
|
|
45300
46002
|
});
|
|
45301
46003
|
});
|
|
45302
46004
|
};
|
|
45303
|
-
}, [
|
|
46005
|
+
}, [J, Ve, me, Se, Ae, q, H, M, Te, A, O]), React.useEffect(() => {
|
|
45304
46006
|
var e, t;
|
|
45305
46007
|
let o = null !== (t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p) && void 0 !== t ? t : "";
|
|
45306
46008
|
!o && r && (o = `[data-tooltip-id='${r}']`);
|
|
@@ -45309,65 +46011,69 @@ const I = ({
|
|
|
45309
46011
|
l = [];
|
|
45310
46012
|
e.forEach(e => {
|
|
45311
46013
|
if ("attributes" === e.type && "data-tooltip-id" === e.attributeName) {
|
|
45312
|
-
e.target.getAttribute("data-tooltip-id") === r
|
|
46014
|
+
e.target.getAttribute("data-tooltip-id") === r ? t.push(e.target) : e.oldValue === r && l.push(e.target);
|
|
45313
46015
|
}
|
|
45314
46016
|
|
|
45315
46017
|
if ("childList" === e.type) {
|
|
45316
|
-
if (
|
|
46018
|
+
if (J) {
|
|
45317
46019
|
const t = [...e.removedNodes].filter(e => 1 === e.nodeType);
|
|
45318
46020
|
if (o) try {
|
|
45319
46021
|
l.push(...t.filter(e => e.matches(o))), l.push(...t.flatMap(e => [...e.querySelectorAll(o)]));
|
|
45320
46022
|
} catch (e) {}
|
|
45321
46023
|
t.some(e => {
|
|
45322
46024
|
var t;
|
|
45323
|
-
return !!(null === (t = null == e ? void 0 : e.contains) || void 0 === t ? void 0 : t.call(e,
|
|
46025
|
+
return !!(null === (t = null == e ? void 0 : e.contains) || void 0 === t ? void 0 : t.call(e, J)) && (fe(!1), xe(!1), Q(null), ie.current && clearTimeout(ie.current), se.current && clearTimeout(se.current), !0);
|
|
45324
46026
|
});
|
|
45325
46027
|
}
|
|
45326
46028
|
|
|
45327
46029
|
if (o) try {
|
|
45328
|
-
const
|
|
45329
|
-
t.push(...
|
|
46030
|
+
const r = [...e.addedNodes].filter(e => 1 === e.nodeType);
|
|
46031
|
+
t.push(...r.filter(e => e.matches(o))), t.push(...r.flatMap(e => [...e.querySelectorAll(o)]));
|
|
45330
46032
|
} catch (e) {}
|
|
45331
46033
|
}
|
|
45332
|
-
}), (t.length || l.length) &&
|
|
46034
|
+
}), (t.length || l.length) && _e(e => [...e.filter(e => !l.includes(e)), ...t]);
|
|
45333
46035
|
});
|
|
45334
46036
|
return l.observe(document.body, {
|
|
45335
46037
|
childList: !0,
|
|
45336
46038
|
subtree: !0,
|
|
45337
46039
|
attributes: !0,
|
|
45338
|
-
attributeFilter: ["data-tooltip-id"]
|
|
46040
|
+
attributeFilter: ["data-tooltip-id"],
|
|
46041
|
+
attributeOldValue: !0
|
|
45339
46042
|
}), () => {
|
|
45340
46043
|
l.disconnect();
|
|
45341
46044
|
};
|
|
45342
|
-
}, [r, p, null == ye ? void 0 : ye.anchorSelect,
|
|
45343
|
-
|
|
45344
|
-
}, [
|
|
46045
|
+
}, [r, p, null == ye ? void 0 : ye.anchorSelect, J]), React.useEffect(() => {
|
|
46046
|
+
Ve();
|
|
46047
|
+
}, [Ve]), React.useEffect(() => {
|
|
45345
46048
|
if (!(null == X ? void 0 : X.current)) return () => null;
|
|
45346
46049
|
const e = new ResizeObserver(() => {
|
|
45347
|
-
|
|
46050
|
+
setTimeout(() => Ve());
|
|
45348
46051
|
});
|
|
45349
46052
|
return e.observe(X.current), () => {
|
|
45350
46053
|
e.disconnect();
|
|
45351
46054
|
};
|
|
45352
46055
|
}, [U, null == X ? void 0 : X.current]), React.useEffect(() => {
|
|
45353
46056
|
var e;
|
|
45354
|
-
const t = document.querySelector(`[id='${
|
|
45355
|
-
o = [...
|
|
45356
|
-
|
|
45357
|
-
}, [
|
|
45358
|
-
|
|
45359
|
-
}, []), React.useEffect(() => {
|
|
46057
|
+
const t = document.querySelector(`[id='${d}']`),
|
|
46058
|
+
o = [...Ae, t];
|
|
46059
|
+
J && o.includes(J) || Q(null !== (e = Ae[0]) && void 0 !== e ? e : t);
|
|
46060
|
+
}, [d, Ae, J]), React.useEffect(() => (G && xe(!0), () => {
|
|
46061
|
+
ie.current && clearTimeout(ie.current), se.current && clearTimeout(se.current);
|
|
46062
|
+
}), []), React.useEffect(() => {
|
|
45360
46063
|
var e;
|
|
45361
46064
|
let t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p;
|
|
45362
46065
|
if (!t && r && (t = `[data-tooltip-id='${r}']`), t) try {
|
|
45363
46066
|
const e = Array.from(document.querySelectorAll(t));
|
|
45364
|
-
|
|
46067
|
+
|
|
46068
|
+
_e(e);
|
|
45365
46069
|
} catch (e) {
|
|
45366
|
-
|
|
46070
|
+
_e([]);
|
|
45367
46071
|
}
|
|
45368
|
-
}, [r, p, null == ye ? void 0 : ye.anchorSelect])
|
|
45369
|
-
|
|
45370
|
-
|
|
46072
|
+
}, [r, p, null == ye ? void 0 : ye.anchorSelect]), React.useEffect(() => {
|
|
46073
|
+
ie.current && (clearTimeout(ie.current), $e(A));
|
|
46074
|
+
}, [A]);
|
|
46075
|
+
const Fe = null !== (le = null == ye ? void 0 : ye.content) && void 0 !== le ? le : U,
|
|
46076
|
+
Ke = pe && Object.keys(ue.tooltipStyles).length > 0;
|
|
45371
46077
|
return React.useImperativeHandle(t, () => ({
|
|
45372
46078
|
open: e => {
|
|
45373
46079
|
if (null == e ? void 0 : e.anchorSelect) try {
|
|
@@ -45375,214 +46081,219 @@ const I = ({
|
|
|
45375
46081
|
} catch (t) {
|
|
45376
46082
|
return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
|
|
45377
46083
|
}
|
|
45378
|
-
he(null != e ? e : null), (null == e ? void 0 : e.delay) ?
|
|
46084
|
+
he(null != e ? e : null), (null == e ? void 0 : e.delay) ? $e(e.delay) : xe(!0);
|
|
45379
46085
|
},
|
|
45380
46086
|
close: e => {
|
|
45381
|
-
(null == e ? void 0 : e.delay) ?
|
|
46087
|
+
(null == e ? void 0 : e.delay) ? Ie(e.delay) : xe(!1);
|
|
45382
46088
|
},
|
|
45383
|
-
activeAnchor:
|
|
45384
|
-
place:
|
|
45385
|
-
isOpen: Boolean(me && !
|
|
45386
|
-
})), me && !
|
|
46089
|
+
activeAnchor: J,
|
|
46090
|
+
place: ue.place,
|
|
46091
|
+
isOpen: Boolean(me && !R && Fe && Ke)
|
|
46092
|
+
})), me && !R && Fe ? React__default["default"].createElement(E, {
|
|
45387
46093
|
id: r,
|
|
45388
|
-
role:
|
|
45389
|
-
className: classnames("react-tooltip",
|
|
46094
|
+
role: re,
|
|
46095
|
+
className: classnames("react-tooltip", B.tooltip, z.tooltip, z[u], c, `react-tooltip__place-${ue.place}`, B[Ke ? "show" : "closing"], Ke ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === b && B.fixed, N && B.clickable),
|
|
45390
46096
|
onTransitionEnd: e => {
|
|
45391
|
-
pe || "opacity" !== e.propertyName || (fe(!1), he(null), null == K || K());
|
|
46097
|
+
ae.current && clearTimeout(ae.current), pe || "opacity" !== e.propertyName || (fe(!1), he(null), null == K || K());
|
|
45392
46098
|
},
|
|
45393
|
-
style: { ...
|
|
45394
|
-
...
|
|
45395
|
-
opacity: void 0 !==
|
|
46099
|
+
style: { ...P,
|
|
46100
|
+
...ue.tooltipStyles,
|
|
46101
|
+
opacity: void 0 !== te && Ke ? te : void 0
|
|
45396
46102
|
},
|
|
45397
|
-
ref:
|
|
45398
|
-
},
|
|
45399
|
-
className: classnames("react-tooltip-arrow",
|
|
45400
|
-
style: { ...
|
|
45401
|
-
background:
|
|
46103
|
+
ref: ne
|
|
46104
|
+
}, Fe, React__default["default"].createElement(E, {
|
|
46105
|
+
className: classnames("react-tooltip-arrow", B.arrow, z.arrow, i, x && B.noArrow),
|
|
46106
|
+
style: { ...ue.tooltipArrowStyles,
|
|
46107
|
+
background: oe ? `linear-gradient(to right bottom, transparent 50%, ${oe} 50%)` : void 0
|
|
45402
46108
|
},
|
|
45403
|
-
ref:
|
|
46109
|
+
ref: ce
|
|
45404
46110
|
})) : null;
|
|
45405
46111
|
},
|
|
45406
|
-
|
|
46112
|
+
q = ({
|
|
45407
46113
|
content: t
|
|
45408
46114
|
}) => React__default["default"].createElement("span", {
|
|
45409
46115
|
dangerouslySetInnerHTML: {
|
|
45410
46116
|
__html: t
|
|
45411
46117
|
}
|
|
45412
46118
|
}),
|
|
45413
|
-
|
|
45414
|
-
D = React__default["default"].forwardRef(({
|
|
46119
|
+
H = React__default["default"].forwardRef(({
|
|
45415
46120
|
id: t,
|
|
45416
|
-
anchorId:
|
|
45417
|
-
anchorSelect:
|
|
45418
|
-
content:
|
|
45419
|
-
html:
|
|
46121
|
+
anchorId: r,
|
|
46122
|
+
anchorSelect: n,
|
|
46123
|
+
content: c,
|
|
46124
|
+
html: i,
|
|
45420
46125
|
render: a,
|
|
45421
|
-
className:
|
|
45422
|
-
classNameArrow:
|
|
46126
|
+
className: u,
|
|
46127
|
+
classNameArrow: d,
|
|
45423
46128
|
variant: p = "dark",
|
|
45424
46129
|
place: v = "top",
|
|
45425
46130
|
offset: m = 10,
|
|
45426
46131
|
wrapper: f = "div",
|
|
45427
|
-
children:
|
|
45428
|
-
events:
|
|
45429
|
-
openOnClick:
|
|
45430
|
-
positionStrategy:
|
|
45431
|
-
middlewares:
|
|
45432
|
-
delayShow:
|
|
45433
|
-
delayHide:
|
|
45434
|
-
float:
|
|
45435
|
-
hidden:
|
|
45436
|
-
noArrow:
|
|
45437
|
-
clickable:
|
|
46132
|
+
children: h = null,
|
|
46133
|
+
events: w = ["hover"],
|
|
46134
|
+
openOnClick: b = !1,
|
|
46135
|
+
positionStrategy: S = "absolute",
|
|
46136
|
+
middlewares: E,
|
|
46137
|
+
delayShow: g = 0,
|
|
46138
|
+
delayHide: _ = 0,
|
|
46139
|
+
float: O = !1,
|
|
46140
|
+
hidden: T = !1,
|
|
46141
|
+
noArrow: k = !1,
|
|
46142
|
+
clickable: C = !1,
|
|
45438
46143
|
closeOnEsc: L = !1,
|
|
45439
|
-
closeOnScroll:
|
|
45440
|
-
closeOnResize:
|
|
45441
|
-
openEvents:
|
|
45442
|
-
closeEvents:
|
|
45443
|
-
globalCloseEvents:
|
|
45444
|
-
imperativeModeOnly:
|
|
45445
|
-
style:
|
|
45446
|
-
position:
|
|
45447
|
-
isOpen:
|
|
45448
|
-
|
|
45449
|
-
|
|
45450
|
-
|
|
45451
|
-
|
|
45452
|
-
|
|
45453
|
-
|
|
45454
|
-
|
|
45455
|
-
|
|
45456
|
-
|
|
45457
|
-
|
|
45458
|
-
|
|
45459
|
-
[
|
|
45460
|
-
[
|
|
45461
|
-
[
|
|
45462
|
-
[
|
|
45463
|
-
[
|
|
45464
|
-
[ue,
|
|
45465
|
-
[
|
|
45466
|
-
[
|
|
45467
|
-
[
|
|
45468
|
-
[
|
|
45469
|
-
Ee = React.
|
|
46144
|
+
closeOnScroll: R = !1,
|
|
46145
|
+
closeOnResize: x = !1,
|
|
46146
|
+
openEvents: N,
|
|
46147
|
+
closeEvents: $,
|
|
46148
|
+
globalCloseEvents: j,
|
|
46149
|
+
imperativeModeOnly: B = !1,
|
|
46150
|
+
style: z,
|
|
46151
|
+
position: H,
|
|
46152
|
+
isOpen: M,
|
|
46153
|
+
defaultIsOpen: W = !1,
|
|
46154
|
+
disableStyleInjection: P = !1,
|
|
46155
|
+
border: V,
|
|
46156
|
+
opacity: F,
|
|
46157
|
+
arrowColor: K,
|
|
46158
|
+
setIsOpen: U,
|
|
46159
|
+
afterShow: X,
|
|
46160
|
+
afterHide: Y,
|
|
46161
|
+
role: G = "tooltip"
|
|
46162
|
+
}, Z) => {
|
|
46163
|
+
const [J, Q] = React.useState(c),
|
|
46164
|
+
[ee, te] = React.useState(i),
|
|
46165
|
+
[oe, re] = React.useState(v),
|
|
46166
|
+
[le, ne] = React.useState(p),
|
|
46167
|
+
[ce, ie] = React.useState(m),
|
|
46168
|
+
[se, ae] = React.useState(g),
|
|
46169
|
+
[ue, de] = React.useState(_),
|
|
46170
|
+
[pe, ve] = React.useState(O),
|
|
46171
|
+
[me, fe] = React.useState(T),
|
|
46172
|
+
[ye, he] = React.useState(f),
|
|
46173
|
+
[we, be] = React.useState(w),
|
|
46174
|
+
[Se, Ee] = React.useState(S),
|
|
46175
|
+
[ge, Ae] = React.useState(null),
|
|
46176
|
+
[_e, Oe] = React.useState(null),
|
|
46177
|
+
Te = React.useRef(P),
|
|
45470
46178
|
{
|
|
45471
|
-
anchorRefs:
|
|
45472
|
-
activeAnchor:
|
|
45473
|
-
} =
|
|
45474
|
-
|
|
45475
|
-
var
|
|
46179
|
+
anchorRefs: ke,
|
|
46180
|
+
activeAnchor: Ce
|
|
46181
|
+
} = I(t),
|
|
46182
|
+
Le = e => null == e ? void 0 : e.getAttributeNames().reduce((t, o) => {
|
|
46183
|
+
var r;
|
|
45476
46184
|
|
|
45477
46185
|
if (o.startsWith("data-tooltip-")) {
|
|
45478
|
-
t[o.replace(/^data-tooltip-/, "")] = null !== (
|
|
46186
|
+
t[o.replace(/^data-tooltip-/, "")] = null !== (r = null == e ? void 0 : e.getAttribute(o)) && void 0 !== r ? r : null;
|
|
45479
46187
|
}
|
|
45480
46188
|
|
|
45481
46189
|
return t;
|
|
45482
46190
|
}, {}),
|
|
45483
|
-
|
|
46191
|
+
Re = e => {
|
|
45484
46192
|
const t = {
|
|
45485
46193
|
place: e => {
|
|
45486
46194
|
var t;
|
|
45487
|
-
|
|
46195
|
+
re(null !== (t = e) && void 0 !== t ? t : v);
|
|
45488
46196
|
},
|
|
45489
46197
|
content: e => {
|
|
45490
|
-
|
|
46198
|
+
Q(null != e ? e : c);
|
|
45491
46199
|
},
|
|
45492
46200
|
html: e => {
|
|
45493
|
-
|
|
46201
|
+
te(null != e ? e : i);
|
|
45494
46202
|
},
|
|
45495
46203
|
variant: e => {
|
|
45496
46204
|
var t;
|
|
45497
|
-
|
|
46205
|
+
ne(null !== (t = e) && void 0 !== t ? t : p);
|
|
45498
46206
|
},
|
|
45499
46207
|
offset: e => {
|
|
45500
|
-
|
|
46208
|
+
ie(null === e ? m : Number(e));
|
|
45501
46209
|
},
|
|
45502
46210
|
wrapper: e => {
|
|
45503
46211
|
var t;
|
|
45504
|
-
|
|
46212
|
+
he(null !== (t = e) && void 0 !== t ? t : f);
|
|
45505
46213
|
},
|
|
45506
46214
|
events: e => {
|
|
45507
46215
|
const t = null == e ? void 0 : e.split(" ");
|
|
45508
|
-
|
|
46216
|
+
be(null != t ? t : w);
|
|
45509
46217
|
},
|
|
45510
46218
|
"position-strategy": e => {
|
|
45511
46219
|
var t;
|
|
45512
|
-
|
|
46220
|
+
Ee(null !== (t = e) && void 0 !== t ? t : S);
|
|
45513
46221
|
},
|
|
45514
46222
|
"delay-show": e => {
|
|
45515
|
-
|
|
46223
|
+
ae(null === e ? g : Number(e));
|
|
45516
46224
|
},
|
|
45517
46225
|
"delay-hide": e => {
|
|
45518
|
-
|
|
46226
|
+
de(null === e ? _ : Number(e));
|
|
45519
46227
|
},
|
|
45520
46228
|
float: e => {
|
|
45521
|
-
|
|
46229
|
+
ve(null === e ? O : "true" === e);
|
|
45522
46230
|
},
|
|
45523
46231
|
hidden: e => {
|
|
45524
|
-
|
|
46232
|
+
fe(null === e ? T : "true" === e);
|
|
46233
|
+
},
|
|
46234
|
+
"class-name": e => {
|
|
46235
|
+
Ae(e);
|
|
45525
46236
|
}
|
|
45526
46237
|
};
|
|
45527
46238
|
Object.values(t).forEach(e => e(null)), Object.entries(e).forEach(([e, o]) => {
|
|
45528
|
-
var
|
|
45529
|
-
null === (
|
|
46239
|
+
var r;
|
|
46240
|
+
null === (r = t[e]) || void 0 === r || r.call(t, o);
|
|
45530
46241
|
});
|
|
45531
46242
|
};
|
|
45532
46243
|
|
|
45533
46244
|
React.useEffect(() => {
|
|
45534
|
-
|
|
45535
|
-
}, [
|
|
45536
|
-
|
|
45537
|
-
}, [
|
|
45538
|
-
|
|
46245
|
+
Q(c);
|
|
46246
|
+
}, [c]), React.useEffect(() => {
|
|
46247
|
+
te(i);
|
|
46248
|
+
}, [i]), React.useEffect(() => {
|
|
46249
|
+
re(v);
|
|
45539
46250
|
}, [v]), React.useEffect(() => {
|
|
45540
|
-
|
|
46251
|
+
ne(p);
|
|
45541
46252
|
}, [p]), React.useEffect(() => {
|
|
45542
|
-
|
|
46253
|
+
ie(m);
|
|
45543
46254
|
}, [m]), React.useEffect(() => {
|
|
45544
|
-
|
|
45545
|
-
}, [E]), React.useEffect(() => {
|
|
45546
|
-
se(g);
|
|
46255
|
+
ae(g);
|
|
45547
46256
|
}, [g]), React.useEffect(() => {
|
|
45548
46257
|
de(_);
|
|
45549
46258
|
}, [_]), React.useEffect(() => {
|
|
45550
|
-
|
|
45551
|
-
}, [
|
|
45552
|
-
|
|
45553
|
-
}, [
|
|
45554
|
-
Ee
|
|
45555
|
-
}, [
|
|
46259
|
+
ve(O);
|
|
46260
|
+
}, [O]), React.useEffect(() => {
|
|
46261
|
+
fe(T);
|
|
46262
|
+
}, [T]), React.useEffect(() => {
|
|
46263
|
+
Ee(S);
|
|
46264
|
+
}, [S]), React.useEffect(() => {
|
|
46265
|
+
Te.current !== P && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
46266
|
+
}, [P]), React.useEffect(() => {
|
|
45556
46267
|
"undefined" != typeof window && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", {
|
|
45557
46268
|
detail: {
|
|
45558
|
-
disableCore: "core" ===
|
|
45559
|
-
disableBase:
|
|
46269
|
+
disableCore: "core" === P,
|
|
46270
|
+
disableBase: P
|
|
45560
46271
|
}
|
|
45561
46272
|
}));
|
|
45562
46273
|
}, []), React.useEffect(() => {
|
|
45563
46274
|
var e;
|
|
45564
|
-
const o = new Set(
|
|
45565
|
-
let
|
|
45566
|
-
if (!
|
|
45567
|
-
document.querySelectorAll(
|
|
46275
|
+
const o = new Set(ke);
|
|
46276
|
+
let l = n;
|
|
46277
|
+
if (!l && t && (l = `[data-tooltip-id='${t}']`), l) try {
|
|
46278
|
+
document.querySelectorAll(l).forEach(e => {
|
|
45568
46279
|
o.add({
|
|
45569
46280
|
current: e
|
|
45570
46281
|
});
|
|
45571
46282
|
});
|
|
45572
46283
|
} catch (e) {
|
|
45573
|
-
console.warn(`[react-tooltip] "${
|
|
46284
|
+
console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`);
|
|
45574
46285
|
}
|
|
45575
|
-
const c = document.querySelector(`[id='${
|
|
46286
|
+
const c = document.querySelector(`[id='${r}']`);
|
|
45576
46287
|
if (c && o.add({
|
|
45577
46288
|
current: c
|
|
45578
46289
|
}), !o.size) return () => null;
|
|
45579
|
-
const i = null !== (e = null !=
|
|
46290
|
+
const i = null !== (e = null != _e ? _e : c) && void 0 !== e ? e : Ce.current,
|
|
45580
46291
|
s = new MutationObserver(e => {
|
|
45581
46292
|
e.forEach(e => {
|
|
45582
46293
|
var t;
|
|
45583
46294
|
if (!i || "attributes" !== e.type || !(null === (t = e.attributeName) || void 0 === t ? void 0 : t.startsWith("data-tooltip-"))) return;
|
|
45584
|
-
const o =
|
|
45585
|
-
|
|
46295
|
+
const o = Le(i);
|
|
46296
|
+
Re(o);
|
|
45586
46297
|
});
|
|
45587
46298
|
}),
|
|
45588
46299
|
a = {
|
|
@@ -45592,76 +46303,78 @@ const I = ({
|
|
|
45592
46303
|
};
|
|
45593
46304
|
|
|
45594
46305
|
if (i) {
|
|
45595
|
-
const e =
|
|
45596
|
-
|
|
46306
|
+
const e = Le(i);
|
|
46307
|
+
Re(e), s.observe(i, a);
|
|
45597
46308
|
}
|
|
45598
46309
|
|
|
45599
46310
|
return () => {
|
|
45600
46311
|
s.disconnect();
|
|
45601
46312
|
};
|
|
45602
|
-
}, [
|
|
45603
|
-
(null ==
|
|
46313
|
+
}, [ke, Ce, _e, r, n]), React.useEffect(() => {
|
|
46314
|
+
(null == z ? void 0 : z.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !A("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), (null == z ? void 0 : z.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), F && !A("opacity", `${F}`) && console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`);
|
|
45604
46315
|
}, []);
|
|
45605
|
-
let
|
|
45606
|
-
const
|
|
46316
|
+
let xe = h;
|
|
46317
|
+
const Ne = React.useRef(null);
|
|
45607
46318
|
|
|
45608
46319
|
if (a) {
|
|
45609
46320
|
const t = a({
|
|
45610
|
-
content: null
|
|
45611
|
-
activeAnchor:
|
|
46321
|
+
content: (null == _e ? void 0 : _e.getAttribute("data-tooltip-content")) || J || null,
|
|
46322
|
+
activeAnchor: _e
|
|
45612
46323
|
});
|
|
45613
|
-
|
|
45614
|
-
ref:
|
|
46324
|
+
xe = t ? React__default["default"].createElement("div", {
|
|
46325
|
+
ref: Ne,
|
|
45615
46326
|
className: "react-tooltip-content-wrapper"
|
|
45616
46327
|
}, t) : null;
|
|
45617
|
-
} else
|
|
46328
|
+
} else J && (xe = J);
|
|
45618
46329
|
|
|
45619
|
-
|
|
45620
|
-
content:
|
|
46330
|
+
ee && (xe = React__default["default"].createElement(q, {
|
|
46331
|
+
content: ee
|
|
45621
46332
|
}));
|
|
45622
|
-
const
|
|
45623
|
-
forwardRef:
|
|
46333
|
+
const $e = {
|
|
46334
|
+
forwardRef: Z,
|
|
45624
46335
|
id: t,
|
|
45625
|
-
anchorId:
|
|
45626
|
-
anchorSelect:
|
|
45627
|
-
className:
|
|
45628
|
-
classNameArrow:
|
|
45629
|
-
content:
|
|
45630
|
-
contentWrapperRef:
|
|
45631
|
-
place:
|
|
45632
|
-
variant:
|
|
45633
|
-
offset:
|
|
45634
|
-
wrapper:
|
|
45635
|
-
events:
|
|
45636
|
-
openOnClick:
|
|
45637
|
-
positionStrategy:
|
|
45638
|
-
middlewares:
|
|
45639
|
-
delayShow:
|
|
45640
|
-
delayHide:
|
|
45641
|
-
float:
|
|
45642
|
-
hidden:
|
|
45643
|
-
noArrow:
|
|
45644
|
-
clickable:
|
|
46336
|
+
anchorId: r,
|
|
46337
|
+
anchorSelect: n,
|
|
46338
|
+
className: classnames(u, ge),
|
|
46339
|
+
classNameArrow: d,
|
|
46340
|
+
content: xe,
|
|
46341
|
+
contentWrapperRef: Ne,
|
|
46342
|
+
place: oe,
|
|
46343
|
+
variant: le,
|
|
46344
|
+
offset: ce,
|
|
46345
|
+
wrapper: ye,
|
|
46346
|
+
events: we,
|
|
46347
|
+
openOnClick: b,
|
|
46348
|
+
positionStrategy: Se,
|
|
46349
|
+
middlewares: E,
|
|
46350
|
+
delayShow: se,
|
|
46351
|
+
delayHide: ue,
|
|
46352
|
+
float: pe,
|
|
46353
|
+
hidden: me,
|
|
46354
|
+
noArrow: k,
|
|
46355
|
+
clickable: C,
|
|
45645
46356
|
closeOnEsc: L,
|
|
45646
|
-
closeOnScroll:
|
|
45647
|
-
closeOnResize:
|
|
45648
|
-
openEvents:
|
|
45649
|
-
closeEvents:
|
|
45650
|
-
globalCloseEvents:
|
|
45651
|
-
imperativeModeOnly:
|
|
45652
|
-
style:
|
|
45653
|
-
position:
|
|
45654
|
-
isOpen:
|
|
45655
|
-
|
|
45656
|
-
|
|
45657
|
-
|
|
45658
|
-
|
|
45659
|
-
|
|
45660
|
-
|
|
45661
|
-
|
|
45662
|
-
|
|
45663
|
-
|
|
45664
|
-
|
|
46357
|
+
closeOnScroll: R,
|
|
46358
|
+
closeOnResize: x,
|
|
46359
|
+
openEvents: N,
|
|
46360
|
+
closeEvents: $,
|
|
46361
|
+
globalCloseEvents: j,
|
|
46362
|
+
imperativeModeOnly: B,
|
|
46363
|
+
style: z,
|
|
46364
|
+
position: H,
|
|
46365
|
+
isOpen: M,
|
|
46366
|
+
defaultIsOpen: W,
|
|
46367
|
+
border: V,
|
|
46368
|
+
opacity: F,
|
|
46369
|
+
arrowColor: K,
|
|
46370
|
+
setIsOpen: U,
|
|
46371
|
+
afterShow: X,
|
|
46372
|
+
afterHide: Y,
|
|
46373
|
+
activeAnchor: _e,
|
|
46374
|
+
setActiveAnchor: e => Oe(e),
|
|
46375
|
+
role: G
|
|
46376
|
+
};
|
|
46377
|
+
return React__default["default"].createElement(D, { ...$e
|
|
45665
46378
|
});
|
|
45666
46379
|
});
|
|
45667
46380
|
|
|
@@ -45788,7 +46501,7 @@ function ContextualHelp(_ref) {
|
|
|
45788
46501
|
color: '#1d5ab9',
|
|
45789
46502
|
cursor: 'default'
|
|
45790
46503
|
}
|
|
45791
|
-
})), React__default["default"].createElement(
|
|
46504
|
+
})), React__default["default"].createElement(H, {
|
|
45792
46505
|
anchorSelect: "#helpSnippet1",
|
|
45793
46506
|
clickable: true,
|
|
45794
46507
|
className: "utilities_ContextualHelp_ContextualHelp--snippet",
|