@copart/ops-tool-kit 1.11.2 → 1.11.3
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 +175 -155
- 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.11.
|
|
36
|
+
const version$5 = "1.11.3";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -48521,7 +48521,8 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
48521
48521
|
if (!process.env.IS_CORE_APP) {
|
|
48522
48522
|
splitUrl.shift();
|
|
48523
48523
|
}
|
|
48524
|
-
if (splitUrl.length - 1 === configDepth) {
|
|
48524
|
+
// if (splitUrl.length - 1 === configDepth) {
|
|
48525
|
+
if (splitUrl.length - 1) {
|
|
48525
48526
|
if (configDepth === 3) {
|
|
48526
48527
|
setActiveSubmenu("/" + splitUrl[1] + "/" + splitUrl[2]);
|
|
48527
48528
|
setSelected("/" + splitUrl[1] + "/" + splitUrl[2] + "/" + splitUrl[3]);
|
|
@@ -48531,6 +48532,9 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
48531
48532
|
} else {
|
|
48532
48533
|
setSelected("/" + splitUrl[1]);
|
|
48533
48534
|
}
|
|
48535
|
+
} else {
|
|
48536
|
+
setActiveSubmenu(null);
|
|
48537
|
+
setSelected(null);
|
|
48534
48538
|
}
|
|
48535
48539
|
}
|
|
48536
48540
|
}, [configDepth, redirectUrl]);
|
|
@@ -49679,15 +49683,27 @@ const offset = function (options) {
|
|
|
49679
49683
|
name: 'offset',
|
|
49680
49684
|
options,
|
|
49681
49685
|
async fn(state) {
|
|
49686
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
49682
49687
|
const {
|
|
49683
49688
|
x,
|
|
49684
|
-
y
|
|
49689
|
+
y,
|
|
49690
|
+
placement,
|
|
49691
|
+
middlewareData
|
|
49685
49692
|
} = state;
|
|
49686
49693
|
const diffCoords = await convertValueToCoords(state, options);
|
|
49694
|
+
|
|
49695
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
49696
|
+
// then we don't need to change the positioning coordinates.
|
|
49697
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
49698
|
+
return {};
|
|
49699
|
+
}
|
|
49687
49700
|
return {
|
|
49688
49701
|
x: x + diffCoords.x,
|
|
49689
49702
|
y: y + diffCoords.y,
|
|
49690
|
-
data:
|
|
49703
|
+
data: {
|
|
49704
|
+
...diffCoords,
|
|
49705
|
+
placement
|
|
49706
|
+
}
|
|
49691
49707
|
};
|
|
49692
49708
|
}
|
|
49693
49709
|
};
|
|
@@ -50645,13 +50661,13 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
50645
50661
|
x: 0,
|
|
50646
50662
|
y: 0
|
|
50647
50663
|
},
|
|
50648
|
-
|
|
50664
|
+
u = null !== (n = {
|
|
50649
50665
|
top: "bottom",
|
|
50650
50666
|
right: "left",
|
|
50651
50667
|
bottom: "top",
|
|
50652
50668
|
left: "right"
|
|
50653
50669
|
}[o.split("-")[0]]) && void 0 !== n ? n : "bottom",
|
|
50654
|
-
|
|
50670
|
+
d = i && {
|
|
50655
50671
|
borderBottom: i,
|
|
50656
50672
|
borderRight: i
|
|
50657
50673
|
};
|
|
@@ -50667,8 +50683,8 @@ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect
|
|
|
50667
50683
|
top: null != a ? `${a}px` : "",
|
|
50668
50684
|
right: "",
|
|
50669
50685
|
bottom: "",
|
|
50670
|
-
...
|
|
50671
|
-
[
|
|
50686
|
+
...d,
|
|
50687
|
+
[u]: `-${4 + p}px`
|
|
50672
50688
|
},
|
|
50673
50689
|
place: o
|
|
50674
50690
|
};
|
|
@@ -50713,8 +50729,8 @@ const I = ({
|
|
|
50713
50729
|
id: r,
|
|
50714
50730
|
className: n,
|
|
50715
50731
|
classNameArrow: s,
|
|
50716
|
-
variant:
|
|
50717
|
-
anchorId:
|
|
50732
|
+
variant: u = "dark",
|
|
50733
|
+
anchorId: d,
|
|
50718
50734
|
anchorSelect: p,
|
|
50719
50735
|
place: v = "top",
|
|
50720
50736
|
offset: m = 10,
|
|
@@ -50757,8 +50773,8 @@ const I = ({
|
|
|
50757
50773
|
ne = React.useRef(null),
|
|
50758
50774
|
ce = React.useRef(null),
|
|
50759
50775
|
[ie, se] = React.useState(v),
|
|
50760
|
-
[ae,
|
|
50761
|
-
[
|
|
50776
|
+
[ae, ue] = React.useState({}),
|
|
50777
|
+
[de, pe] = React.useState({}),
|
|
50762
50778
|
[ve, me] = React.useState(!1),
|
|
50763
50779
|
[fe, ye] = React.useState(!1),
|
|
50764
50780
|
[he, we] = React.useState(null),
|
|
@@ -50896,7 +50912,7 @@ const I = ({
|
|
|
50896
50912
|
middlewares: S,
|
|
50897
50913
|
border: J
|
|
50898
50914
|
}).then(e => {
|
|
50899
|
-
Object.keys(e.tooltipStyles).length &&
|
|
50915
|
+
Object.keys(e.tooltipStyles).length && ue(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && pe(e.tooltipArrowStyles), se(e.place);
|
|
50900
50916
|
});
|
|
50901
50917
|
},
|
|
50902
50918
|
De = e => {
|
|
@@ -50913,7 +50929,7 @@ const I = ({
|
|
|
50913
50929
|
if (!ve) return;
|
|
50914
50930
|
const o = e.target;
|
|
50915
50931
|
if (null === (t = le.current) || void 0 === t ? void 0 : t.contains(o)) return;
|
|
50916
|
-
[document.querySelector(`[id='${
|
|
50932
|
+
[document.querySelector(`[id='${d}']`), ...Ae].some(e => null == e ? void 0 : e.contains(o)) || (Ne(!1), ne.current && clearTimeout(ne.current));
|
|
50917
50933
|
},
|
|
50918
50934
|
He = g(Ie, 50, !0),
|
|
50919
50935
|
Me = g(Be, 50, !0),
|
|
@@ -50930,7 +50946,7 @@ const I = ({
|
|
|
50930
50946
|
middlewares: S,
|
|
50931
50947
|
border: J
|
|
50932
50948
|
}).then(e => {
|
|
50933
|
-
Te.current && (Object.keys(e.tooltipStyles).length &&
|
|
50949
|
+
Te.current && (Object.keys(e.tooltipStyles).length && ue(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && pe(e.tooltipArrowStyles), se(e.place));
|
|
50934
50950
|
});
|
|
50935
50951
|
}, [ve, V, U, W, v, null == he ? void 0 : he.place, m, b, P, null == he ? void 0 : he.position, O]);
|
|
50936
50952
|
React.useEffect(() => {
|
|
@@ -50941,7 +50957,7 @@ const I = ({
|
|
|
50941
50957
|
current: e
|
|
50942
50958
|
});
|
|
50943
50959
|
});
|
|
50944
|
-
const l = document.querySelector(`[id='${
|
|
50960
|
+
const l = document.querySelector(`[id='${d}']`);
|
|
50945
50961
|
l && o.add({
|
|
50946
50962
|
current: l
|
|
50947
50963
|
});
|
|
@@ -50962,7 +50978,7 @@ const I = ({
|
|
|
50962
50978
|
};
|
|
50963
50979
|
xe.escape && window.addEventListener("keydown", s), xe.clickOutsideAnchor && window.addEventListener("click", qe);
|
|
50964
50980
|
const a = [],
|
|
50965
|
-
|
|
50981
|
+
u = e => {
|
|
50966
50982
|
ve || Ie(e);
|
|
50967
50983
|
},
|
|
50968
50984
|
p = () => {
|
|
@@ -50976,7 +50992,7 @@ const I = ({
|
|
|
50976
50992
|
listener: He
|
|
50977
50993
|
}) : m.includes(e) && a.push({
|
|
50978
50994
|
event: e,
|
|
50979
|
-
listener:
|
|
50995
|
+
listener: u
|
|
50980
50996
|
}));
|
|
50981
50997
|
}), Object.entries(Re).forEach(([e, t]) => {
|
|
50982
50998
|
t && (v.includes(e) ? a.push({
|
|
@@ -51065,10 +51081,10 @@ const I = ({
|
|
|
51065
51081
|
};
|
|
51066
51082
|
}, [U, null == X ? void 0 : X.current]), React.useEffect(() => {
|
|
51067
51083
|
var e;
|
|
51068
|
-
const t = document.querySelector(`[id='${
|
|
51084
|
+
const t = document.querySelector(`[id='${d}']`),
|
|
51069
51085
|
o = [...Ae, t];
|
|
51070
51086
|
V && o.includes(V) || Z(null !== (e = Ae[0]) && void 0 !== e ? e : t);
|
|
51071
|
-
}, [
|
|
51087
|
+
}, [d, Ae, V]), React.useEffect(() => () => {
|
|
51072
51088
|
ne.current && clearTimeout(ne.current), ce.current && clearTimeout(ce.current);
|
|
51073
51089
|
}, []), React.useEffect(() => {
|
|
51074
51090
|
var e;
|
|
@@ -51100,7 +51116,7 @@ const I = ({
|
|
|
51100
51116
|
})), fe && !T && Pe ? React__default["default"].createElement(E, {
|
|
51101
51117
|
id: r,
|
|
51102
51118
|
role: te,
|
|
51103
|
-
className: classnames("react-tooltip", $.tooltip, j.tooltip, j[
|
|
51119
|
+
className: classnames("react-tooltip", $.tooltip, j.tooltip, j[u], n, `react-tooltip__place-${ie}`, $[Fe ? "show" : "closing"], Fe ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === b && $.fixed, R && $.clickable),
|
|
51104
51120
|
onTransitionEnd: e => {
|
|
51105
51121
|
ve || "opacity" !== e.propertyName || (ye(!1), we(null), null == K || K());
|
|
51106
51122
|
},
|
|
@@ -51113,7 +51129,7 @@ const I = ({
|
|
|
51113
51129
|
}, Pe, React__default["default"].createElement(E, {
|
|
51114
51130
|
className: classnames("react-tooltip-arrow", $.arrow, j.arrow, s, L && $.noArrow),
|
|
51115
51131
|
style: {
|
|
51116
|
-
...
|
|
51132
|
+
...de,
|
|
51117
51133
|
background: ee ? `linear-gradient(to right bottom, transparent 50%, ${ee} 50%)` : void 0
|
|
51118
51134
|
},
|
|
51119
51135
|
ref: re
|
|
@@ -51134,109 +51150,113 @@ const I = ({
|
|
|
51134
51150
|
content: n,
|
|
51135
51151
|
html: s,
|
|
51136
51152
|
render: a,
|
|
51137
|
-
className:
|
|
51138
|
-
classNameArrow:
|
|
51153
|
+
className: u,
|
|
51154
|
+
classNameArrow: d,
|
|
51139
51155
|
variant: p = "dark",
|
|
51140
51156
|
place: v = "top",
|
|
51141
51157
|
offset: m = 10,
|
|
51142
51158
|
wrapper: f = "div",
|
|
51143
|
-
children:
|
|
51144
|
-
events:
|
|
51145
|
-
openOnClick:
|
|
51146
|
-
positionStrategy:
|
|
51147
|
-
middlewares:
|
|
51148
|
-
delayShow:
|
|
51149
|
-
delayHide:
|
|
51150
|
-
float:
|
|
51151
|
-
hidden:
|
|
51152
|
-
noArrow:
|
|
51153
|
-
clickable:
|
|
51154
|
-
closeOnEsc:
|
|
51155
|
-
closeOnScroll:
|
|
51156
|
-
closeOnResize:
|
|
51157
|
-
openEvents:
|
|
51158
|
-
closeEvents:
|
|
51159
|
-
globalCloseEvents:
|
|
51160
|
-
imperativeModeOnly:
|
|
51161
|
-
style:
|
|
51162
|
-
position:
|
|
51163
|
-
isOpen:
|
|
51164
|
-
disableStyleInjection:
|
|
51165
|
-
border:
|
|
51166
|
-
opacity:
|
|
51167
|
-
arrowColor:
|
|
51168
|
-
setIsOpen:
|
|
51169
|
-
afterShow:
|
|
51170
|
-
afterHide:
|
|
51171
|
-
role:
|
|
51172
|
-
},
|
|
51173
|
-
const [
|
|
51174
|
-
[
|
|
51175
|
-
[
|
|
51176
|
-
[
|
|
51177
|
-
[
|
|
51178
|
-
[
|
|
51179
|
-
[
|
|
51180
|
-
[de,
|
|
51181
|
-
[
|
|
51182
|
-
[
|
|
51183
|
-
[
|
|
51184
|
-
[
|
|
51185
|
-
[
|
|
51186
|
-
|
|
51159
|
+
children: h = null,
|
|
51160
|
+
events: w = ["hover"],
|
|
51161
|
+
openOnClick: b = !1,
|
|
51162
|
+
positionStrategy: S = "absolute",
|
|
51163
|
+
middlewares: E,
|
|
51164
|
+
delayShow: g = 0,
|
|
51165
|
+
delayHide: _ = 0,
|
|
51166
|
+
float: A = !1,
|
|
51167
|
+
hidden: O = !1,
|
|
51168
|
+
noArrow: T = !1,
|
|
51169
|
+
clickable: L = !1,
|
|
51170
|
+
closeOnEsc: C = !1,
|
|
51171
|
+
closeOnScroll: R = !1,
|
|
51172
|
+
closeOnResize: x = !1,
|
|
51173
|
+
openEvents: N,
|
|
51174
|
+
closeEvents: $,
|
|
51175
|
+
globalCloseEvents: j,
|
|
51176
|
+
imperativeModeOnly: D = !1,
|
|
51177
|
+
style: q,
|
|
51178
|
+
position: H,
|
|
51179
|
+
isOpen: M,
|
|
51180
|
+
disableStyleInjection: W = !1,
|
|
51181
|
+
border: P,
|
|
51182
|
+
opacity: F,
|
|
51183
|
+
arrowColor: K,
|
|
51184
|
+
setIsOpen: U,
|
|
51185
|
+
afterShow: X,
|
|
51186
|
+
afterHide: Y,
|
|
51187
|
+
role: G = "tooltip"
|
|
51188
|
+
}, V) => {
|
|
51189
|
+
const [Z, J] = React.useState(n),
|
|
51190
|
+
[Q, ee] = React.useState(s),
|
|
51191
|
+
[te, oe] = React.useState(v),
|
|
51192
|
+
[le, re] = React.useState(p),
|
|
51193
|
+
[ne, ce] = React.useState(m),
|
|
51194
|
+
[ie, se] = React.useState(g),
|
|
51195
|
+
[ae, ue] = React.useState(_),
|
|
51196
|
+
[de, pe] = React.useState(A),
|
|
51197
|
+
[ve, me] = React.useState(O),
|
|
51198
|
+
[fe, ye] = React.useState(f),
|
|
51199
|
+
[he, we] = React.useState(w),
|
|
51200
|
+
[be, Se] = React.useState(S),
|
|
51201
|
+
[Ee, ge] = React.useState(null),
|
|
51202
|
+
[_e, Ae] = React.useState(null),
|
|
51203
|
+
Oe = React.useRef(W),
|
|
51187
51204
|
{
|
|
51188
|
-
anchorRefs:
|
|
51189
|
-
activeAnchor:
|
|
51205
|
+
anchorRefs: Te,
|
|
51206
|
+
activeAnchor: ke
|
|
51190
51207
|
} = k(t),
|
|
51191
|
-
|
|
51208
|
+
Le = e => null == e ? void 0 : e.getAttributeNames().reduce((t, o) => {
|
|
51192
51209
|
var l;
|
|
51193
51210
|
if (o.startsWith("data-tooltip-")) {
|
|
51194
51211
|
t[o.replace(/^data-tooltip-/, "")] = null !== (l = null == e ? void 0 : e.getAttribute(o)) && void 0 !== l ? l : null;
|
|
51195
51212
|
}
|
|
51196
51213
|
return t;
|
|
51197
51214
|
}, {}),
|
|
51198
|
-
|
|
51215
|
+
Ce = e => {
|
|
51199
51216
|
const t = {
|
|
51200
51217
|
place: e => {
|
|
51201
51218
|
var t;
|
|
51202
|
-
|
|
51219
|
+
oe(null !== (t = e) && void 0 !== t ? t : v);
|
|
51203
51220
|
},
|
|
51204
51221
|
content: e => {
|
|
51205
|
-
|
|
51222
|
+
J(null != e ? e : n);
|
|
51206
51223
|
},
|
|
51207
51224
|
html: e => {
|
|
51208
|
-
|
|
51225
|
+
ee(null != e ? e : s);
|
|
51209
51226
|
},
|
|
51210
51227
|
variant: e => {
|
|
51211
51228
|
var t;
|
|
51212
|
-
|
|
51229
|
+
re(null !== (t = e) && void 0 !== t ? t : p);
|
|
51213
51230
|
},
|
|
51214
51231
|
offset: e => {
|
|
51215
|
-
|
|
51232
|
+
ce(null === e ? m : Number(e));
|
|
51216
51233
|
},
|
|
51217
51234
|
wrapper: e => {
|
|
51218
51235
|
var t;
|
|
51219
|
-
|
|
51236
|
+
ye(null !== (t = e) && void 0 !== t ? t : f);
|
|
51220
51237
|
},
|
|
51221
51238
|
events: e => {
|
|
51222
51239
|
const t = null == e ? void 0 : e.split(" ");
|
|
51223
|
-
|
|
51240
|
+
we(null != t ? t : w);
|
|
51224
51241
|
},
|
|
51225
51242
|
"position-strategy": e => {
|
|
51226
51243
|
var t;
|
|
51227
|
-
|
|
51244
|
+
Se(null !== (t = e) && void 0 !== t ? t : S);
|
|
51228
51245
|
},
|
|
51229
51246
|
"delay-show": e => {
|
|
51230
|
-
|
|
51247
|
+
se(null === e ? g : Number(e));
|
|
51231
51248
|
},
|
|
51232
51249
|
"delay-hide": e => {
|
|
51233
|
-
|
|
51250
|
+
ue(null === e ? _ : Number(e));
|
|
51234
51251
|
},
|
|
51235
51252
|
float: e => {
|
|
51236
|
-
|
|
51253
|
+
pe(null === e ? A : "true" === e);
|
|
51237
51254
|
},
|
|
51238
51255
|
hidden: e => {
|
|
51239
|
-
|
|
51256
|
+
me(null === e ? O : "true" === e);
|
|
51257
|
+
},
|
|
51258
|
+
"class-name": e => {
|
|
51259
|
+
ge(e);
|
|
51240
51260
|
}
|
|
51241
51261
|
};
|
|
51242
51262
|
Object.values(t).forEach(e => e(null)), Object.entries(e).forEach(([e, o]) => {
|
|
@@ -51245,37 +51265,37 @@ const I = ({
|
|
|
51245
51265
|
});
|
|
51246
51266
|
};
|
|
51247
51267
|
React.useEffect(() => {
|
|
51248
|
-
|
|
51268
|
+
J(n);
|
|
51249
51269
|
}, [n]), React.useEffect(() => {
|
|
51250
|
-
|
|
51270
|
+
ee(s);
|
|
51251
51271
|
}, [s]), React.useEffect(() => {
|
|
51252
|
-
|
|
51272
|
+
oe(v);
|
|
51253
51273
|
}, [v]), React.useEffect(() => {
|
|
51254
|
-
|
|
51274
|
+
re(p);
|
|
51255
51275
|
}, [p]), React.useEffect(() => {
|
|
51256
|
-
|
|
51276
|
+
ce(m);
|
|
51257
51277
|
}, [m]), React.useEffect(() => {
|
|
51258
|
-
|
|
51259
|
-
}, [E]), React.useEffect(() => {
|
|
51260
|
-
ae(g);
|
|
51278
|
+
se(g);
|
|
51261
51279
|
}, [g]), React.useEffect(() => {
|
|
51262
51280
|
ue(_);
|
|
51263
51281
|
}, [_]), React.useEffect(() => {
|
|
51264
|
-
|
|
51282
|
+
pe(A);
|
|
51265
51283
|
}, [A]), React.useEffect(() => {
|
|
51266
|
-
|
|
51267
|
-
}, [
|
|
51268
|
-
|
|
51269
|
-
}, [
|
|
51284
|
+
me(O);
|
|
51285
|
+
}, [O]), React.useEffect(() => {
|
|
51286
|
+
Se(S);
|
|
51287
|
+
}, [S]), React.useEffect(() => {
|
|
51288
|
+
Oe.current !== W && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
51289
|
+
}, [W]), React.useEffect(() => {
|
|
51270
51290
|
"undefined" != typeof window && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", {
|
|
51271
51291
|
detail: {
|
|
51272
|
-
disableCore: "core" ===
|
|
51273
|
-
disableBase:
|
|
51292
|
+
disableCore: "core" === W,
|
|
51293
|
+
disableBase: W
|
|
51274
51294
|
}
|
|
51275
51295
|
}));
|
|
51276
51296
|
}, []), React.useEffect(() => {
|
|
51277
51297
|
var e;
|
|
51278
|
-
const o = new Set(
|
|
51298
|
+
const o = new Set(Te);
|
|
51279
51299
|
let n = r;
|
|
51280
51300
|
if (!n && t && (n = `[data-tooltip-id='${t}']`), n) try {
|
|
51281
51301
|
document.querySelectorAll(n).forEach(e => {
|
|
@@ -51290,13 +51310,13 @@ const I = ({
|
|
|
51290
51310
|
if (c && o.add({
|
|
51291
51311
|
current: c
|
|
51292
51312
|
}), !o.size) return () => null;
|
|
51293
|
-
const i = null !== (e = null !=
|
|
51313
|
+
const i = null !== (e = null != _e ? _e : c) && void 0 !== e ? e : ke.current,
|
|
51294
51314
|
s = new MutationObserver(e => {
|
|
51295
51315
|
e.forEach(e => {
|
|
51296
51316
|
var t;
|
|
51297
51317
|
if (!i || "attributes" !== e.type || !(null === (t = e.attributeName) || void 0 === t ? void 0 : t.startsWith("data-tooltip-"))) return;
|
|
51298
|
-
const o =
|
|
51299
|
-
|
|
51318
|
+
const o = Le(i);
|
|
51319
|
+
Ce(o);
|
|
51300
51320
|
});
|
|
51301
51321
|
}),
|
|
51302
51322
|
a = {
|
|
@@ -51305,75 +51325,75 @@ const I = ({
|
|
|
51305
51325
|
subtree: !1
|
|
51306
51326
|
};
|
|
51307
51327
|
if (i) {
|
|
51308
|
-
const e =
|
|
51309
|
-
|
|
51328
|
+
const e = Le(i);
|
|
51329
|
+
Ce(e), s.observe(i, a);
|
|
51310
51330
|
}
|
|
51311
51331
|
return () => {
|
|
51312
51332
|
s.disconnect();
|
|
51313
51333
|
};
|
|
51314
|
-
}, [
|
|
51315
|
-
(null ==
|
|
51334
|
+
}, [Te, ke, _e, l, r]), React.useEffect(() => {
|
|
51335
|
+
(null == q ? void 0 : q.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), P && !z("border", `${P}`) && console.warn(`[react-tooltip] "${P}" is not a valid \`border\`.`), (null == q ? void 0 : q.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), F && !z("opacity", `${F}`) && console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`);
|
|
51316
51336
|
}, []);
|
|
51317
|
-
let
|
|
51318
|
-
const
|
|
51337
|
+
let Re = h;
|
|
51338
|
+
const xe = React.useRef(null);
|
|
51319
51339
|
if (a) {
|
|
51320
51340
|
const t = a({
|
|
51321
|
-
content: null !=
|
|
51322
|
-
activeAnchor:
|
|
51341
|
+
content: null != Z ? Z : null,
|
|
51342
|
+
activeAnchor: _e
|
|
51323
51343
|
});
|
|
51324
|
-
|
|
51325
|
-
ref:
|
|
51344
|
+
Re = t ? React__default["default"].createElement("div", {
|
|
51345
|
+
ref: xe,
|
|
51326
51346
|
className: "react-tooltip-content-wrapper"
|
|
51327
51347
|
}, t) : null;
|
|
51328
|
-
} else
|
|
51329
|
-
|
|
51330
|
-
content:
|
|
51348
|
+
} else Z && (Re = Z);
|
|
51349
|
+
Q && (Re = React__default["default"].createElement(B, {
|
|
51350
|
+
content: Q
|
|
51331
51351
|
}));
|
|
51332
|
-
const
|
|
51333
|
-
forwardRef:
|
|
51352
|
+
const Ne = {
|
|
51353
|
+
forwardRef: V,
|
|
51334
51354
|
id: t,
|
|
51335
51355
|
anchorId: l,
|
|
51336
51356
|
anchorSelect: r,
|
|
51337
|
-
className:
|
|
51338
|
-
classNameArrow:
|
|
51339
|
-
content:
|
|
51340
|
-
contentWrapperRef:
|
|
51341
|
-
place:
|
|
51342
|
-
variant:
|
|
51343
|
-
offset:
|
|
51344
|
-
wrapper:
|
|
51345
|
-
events:
|
|
51346
|
-
openOnClick:
|
|
51347
|
-
positionStrategy:
|
|
51348
|
-
middlewares:
|
|
51349
|
-
delayShow:
|
|
51350
|
-
delayHide:
|
|
51357
|
+
className: classnames(u, Ee),
|
|
51358
|
+
classNameArrow: d,
|
|
51359
|
+
content: Re,
|
|
51360
|
+
contentWrapperRef: xe,
|
|
51361
|
+
place: te,
|
|
51362
|
+
variant: le,
|
|
51363
|
+
offset: ne,
|
|
51364
|
+
wrapper: fe,
|
|
51365
|
+
events: he,
|
|
51366
|
+
openOnClick: b,
|
|
51367
|
+
positionStrategy: be,
|
|
51368
|
+
middlewares: E,
|
|
51369
|
+
delayShow: ie,
|
|
51370
|
+
delayHide: ae,
|
|
51351
51371
|
float: de,
|
|
51352
|
-
hidden:
|
|
51353
|
-
noArrow:
|
|
51354
|
-
clickable:
|
|
51355
|
-
closeOnEsc:
|
|
51356
|
-
closeOnScroll:
|
|
51357
|
-
closeOnResize:
|
|
51358
|
-
openEvents:
|
|
51359
|
-
closeEvents:
|
|
51360
|
-
globalCloseEvents:
|
|
51361
|
-
imperativeModeOnly:
|
|
51362
|
-
style:
|
|
51363
|
-
position:
|
|
51364
|
-
isOpen:
|
|
51365
|
-
border:
|
|
51366
|
-
opacity:
|
|
51367
|
-
arrowColor:
|
|
51368
|
-
setIsOpen:
|
|
51369
|
-
afterShow:
|
|
51370
|
-
afterHide:
|
|
51371
|
-
activeAnchor:
|
|
51372
|
-
setActiveAnchor: e =>
|
|
51373
|
-
role:
|
|
51372
|
+
hidden: ve,
|
|
51373
|
+
noArrow: T,
|
|
51374
|
+
clickable: L,
|
|
51375
|
+
closeOnEsc: C,
|
|
51376
|
+
closeOnScroll: R,
|
|
51377
|
+
closeOnResize: x,
|
|
51378
|
+
openEvents: N,
|
|
51379
|
+
closeEvents: $,
|
|
51380
|
+
globalCloseEvents: j,
|
|
51381
|
+
imperativeModeOnly: D,
|
|
51382
|
+
style: q,
|
|
51383
|
+
position: H,
|
|
51384
|
+
isOpen: M,
|
|
51385
|
+
border: P,
|
|
51386
|
+
opacity: F,
|
|
51387
|
+
arrowColor: K,
|
|
51388
|
+
setIsOpen: U,
|
|
51389
|
+
afterShow: X,
|
|
51390
|
+
afterHide: Y,
|
|
51391
|
+
activeAnchor: _e,
|
|
51392
|
+
setActiveAnchor: e => Ae(e),
|
|
51393
|
+
role: G
|
|
51374
51394
|
};
|
|
51375
51395
|
return React__default["default"].createElement(I, {
|
|
51376
|
-
...
|
|
51396
|
+
...Ne
|
|
51377
51397
|
});
|
|
51378
51398
|
});
|
|
51379
51399
|
"undefined" != typeof window && window.addEventListener("react-tooltip-inject-styles", e => {
|