@copart/ops-tool-kit 1.10.2 → 1.10.3-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.
@@ -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.2";
36
+ const version$5 = "1.10.3-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 = [
@@ -4603,13 +4603,13 @@ function nonStandardBrowserEnv() {
4603
4603
 
4604
4604
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
4605
4605
 
4606
- function E$1() {
4606
+ function E() {
4607
4607
  this.message = 'String contains an invalid character';
4608
4608
  }
4609
4609
 
4610
- E$1.prototype = new Error();
4611
- E$1.prototype.code = 5;
4612
- E$1.prototype.name = 'InvalidCharacterError';
4610
+ E.prototype = new Error();
4611
+ E.prototype.code = 5;
4612
+ E.prototype.name = 'InvalidCharacterError';
4613
4613
 
4614
4614
  function btoa$2(input) {
4615
4615
  var str = String(input);
@@ -4624,7 +4624,7 @@ function btoa$2(input) {
4624
4624
  charCode = str.charCodeAt(idx += 3 / 4);
4625
4625
 
4626
4626
  if (charCode > 0xFF) {
4627
- throw new E$1();
4627
+ throw new E();
4628
4628
  }
4629
4629
 
4630
4630
  block = block << 8 | charCode;
@@ -38501,7 +38501,7 @@ var b$1 = "function" === typeof Symbol && Symbol.for,
38501
38501
  c = b$1 ? Symbol.for("react.element") : 60103,
38502
38502
  d = b$1 ? Symbol.for("react.portal") : 60106,
38503
38503
  e = b$1 ? Symbol.for("react.fragment") : 60107,
38504
- f$1 = b$1 ? Symbol.for("react.strict_mode") : 60108,
38504
+ f = b$1 ? Symbol.for("react.strict_mode") : 60108,
38505
38505
  g$1 = b$1 ? Symbol.for("react.profiler") : 60114,
38506
38506
  h$1 = b$1 ? Symbol.for("react.provider") : 60109,
38507
38507
  k$1 = b$1 ? Symbol.for("react.context") : 60110,
@@ -38509,7 +38509,7 @@ var b$1 = "function" === typeof Symbol && Symbol.for,
38509
38509
  m = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
38510
38510
  n = b$1 ? Symbol.for("react.forward_ref") : 60112,
38511
38511
  p = b$1 ? Symbol.for("react.suspense") : 60113,
38512
- q$1 = b$1 ? Symbol.for("react.suspense_list") : 60120,
38512
+ q = b$1 ? Symbol.for("react.suspense_list") : 60120,
38513
38513
  r = b$1 ? Symbol.for("react.memo") : 60115,
38514
38514
  t = b$1 ? Symbol.for("react.lazy") : 60116,
38515
38515
  v = b$1 ? Symbol.for("react.block") : 60121,
@@ -38528,7 +38528,7 @@ function z$1(a) {
38528
38528
  case m:
38529
38529
  case e:
38530
38530
  case g$1:
38531
- case f$1:
38531
+ case f:
38532
38532
  case p:
38533
38533
  return a;
38534
38534
 
@@ -38568,7 +38568,7 @@ var Lazy = t;
38568
38568
  var Memo = r;
38569
38569
  var Portal = d;
38570
38570
  var Profiler = g$1;
38571
- var StrictMode = f$1;
38571
+ var StrictMode = f;
38572
38572
  var Suspense = p;
38573
38573
 
38574
38574
  var isAsyncMode = function (a) {
@@ -38614,7 +38614,7 @@ var isProfiler = function (a) {
38614
38614
  };
38615
38615
 
38616
38616
  var isStrictMode = function (a) {
38617
- return z$1(a) === f$1;
38617
+ return z$1(a) === f;
38618
38618
  };
38619
38619
 
38620
38620
  var isSuspense = function (a) {
@@ -38622,7 +38622,7 @@ var isSuspense = function (a) {
38622
38622
  };
38623
38623
 
38624
38624
  var isValidElementType = function (a) {
38625
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g$1 || a === f$1 || 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);
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);
38626
38626
  };
38627
38627
 
38628
38628
  var typeOf = z$1;
@@ -41764,6 +41764,10 @@ function startWebSocketConnection(updateNotifications, updateAllNotificationsLis
41764
41764
  };
41765
41765
 
41766
41766
  client.onmessage = function (message) {
41767
+ if ((message === null || message === void 0 ? void 0 : message.data) === '_pong_' || (message === null || message === void 0 ? void 0 : message.data) === '_ping_') {
41768
+ return;
41769
+ }
41770
+
41767
41771
  var notification = [];
41768
41772
 
41769
41773
  try {
@@ -42264,6 +42268,12 @@ var AppBar = function AppBar(_ref) {
42264
42268
 
42265
42269
  var listOfAllNotificationsRef = React.useRef(listOfAllNotifications);
42266
42270
  var socketRetryCountRef = React.useRef(0);
42271
+
42272
+ var _useState21 = React.useState(null),
42273
+ _useState22 = _slicedToArray(_useState21, 2),
42274
+ pingInterval = _useState22[0],
42275
+ setPingInterval = _useState22[1];
42276
+
42267
42277
  React.useEffect(function () {
42268
42278
  listOfAllNotificationsRef.current = listOfAllNotifications;
42269
42279
  }, [listOfAllNotifications]);
@@ -42415,7 +42425,13 @@ var AppBar = function AppBar(_ref) {
42415
42425
  if (socketRetryCountRef.current < 15) {
42416
42426
  socketRetryCountRef.current = socketRetryCountRef.current + 1;
42417
42427
  socketClient && socketClient.close();
42418
- setSocketClient(startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket));
42428
+ clearTimeout(pingInterval);
42429
+ var client = startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket);
42430
+ var pingIntervalInSec = coreAppConfig.nchanPingIntervalInSec || 30;
42431
+ setPingInterval(setInterval(function () {
42432
+ client.send('_ping_');
42433
+ }, pingIntervalInSec * 1000));
42434
+ setSocketClient(client);
42419
42435
  }
42420
42436
  };
42421
42437
 
@@ -42442,6 +42458,7 @@ var AppBar = function AppBar(_ref) {
42442
42458
  setListOfAllNotifications([]);
42443
42459
  setListOfAllFirebaseNotifications([]);
42444
42460
  socketClient && socketClient.close();
42461
+ clearTimeout(pingInterval);
42445
42462
 
42446
42463
  if (coreAppConfig && coreAppConfig.tiles) {
42447
42464
  var currentApp = window.location.pathname === '/' ? 'Ops Home' : window.location.pathname;
@@ -42457,7 +42474,12 @@ var AppBar = function AppBar(_ref) {
42457
42474
  if (history.location.pathname !== '/logout' && history.location.pathname !== '/login' && localStorage.getItem('login') && tileConfigAccess) {
42458
42475
  if (notificationsSource.includes('Nchan')) {
42459
42476
  fetchG2Notifications(updateNotifications, updateAllNotificationsList);
42460
- setSocketClient(startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket));
42477
+ var client = startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket);
42478
+ var pingIntervalInSec = coreAppConfig.nchanPingIntervalInSec || 30;
42479
+ setPingInterval(setInterval(function () {
42480
+ client.send('_ping_');
42481
+ }, pingIntervalInSec * 1000));
42482
+ setSocketClient(client);
42461
42483
  }
42462
42484
 
42463
42485
  if (!firebaseInitialized && notificationsSource.includes('Firebase')) {
@@ -44769,45 +44791,45 @@ var classnames = createCommonjsModule(function (module) {
44769
44791
  * @copyright ReactTooltip Team
44770
44792
  * @license MIT
44771
44793
  */
44772
- const f = "react-tooltip-core-styles",
44773
- h = "react-tooltip-base-styles",
44774
- w = {
44794
+ const h = "react-tooltip-core-styles",
44795
+ w = "react-tooltip-base-styles",
44796
+ b = {
44775
44797
  core: !1,
44776
44798
  base: !1
44777
44799
  };
44778
44800
 
44779
- function b({
44801
+ function S({
44780
44802
  css: e,
44781
- id: t = h,
44782
- type: r = "base",
44783
- ref: o
44803
+ id: t = w,
44804
+ type: o = "base",
44805
+ ref: l
44784
44806
  }) {
44785
- var n, l;
44786
- if (!e || "undefined" == typeof document || w[r]) return;
44787
- if ("core" === r && "undefined" != typeof process && (null === (n = null === process || void 0 === process ? void 0 : process.env) || void 0 === n ? void 0 : n.REACT_TOOLTIP_DISABLE_CORE_STYLES)) return;
44788
- if ("base" !== r && "undefined" != typeof process && (null === (l = null === process || void 0 === process ? void 0 : process.env) || void 0 === l ? void 0 : l.REACT_TOOLTIP_DISABLE_BASE_STYLES)) return;
44789
- "core" === r && (t = f), o || (o = {});
44807
+ var r, n;
44808
+ if (!e || "undefined" == typeof document || b[o]) return;
44809
+ if ("core" === o && "undefined" != typeof process && (null === (r = null === process || void 0 === process ? void 0 : process.env) || void 0 === r ? void 0 : r.REACT_TOOLTIP_DISABLE_CORE_STYLES)) return;
44810
+ 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), l || (l = {});
44790
44812
  const {
44791
- insertAt: i
44792
- } = o;
44813
+ insertAt: c
44814
+ } = l;
44793
44815
  if (document.getElementById(t)) return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);
44794
- const c = document.head || document.getElementsByTagName("head")[0],
44795
- a = document.createElement("style");
44796
- a.id = t, a.type = "text/css", "top" === i && c.firstChild ? c.insertBefore(a, c.firstChild) : c.appendChild(a), a.styleSheet ? a.styleSheet.cssText = e : a.appendChild(document.createTextNode(e)), w[r] = !0;
44816
+ const i = document.head || document.getElementsByTagName("head")[0],
44817
+ s = document.createElement("style");
44818
+ 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;
44797
44819
  }
44798
44820
 
44799
- const E = (e, t, r) => {
44800
- let o = null;
44801
- return function (...n) {
44802
- const l = () => {
44803
- o = null, r || e.apply(this, n);
44821
+ const g = (e, t, o) => {
44822
+ let l = null;
44823
+ return function (...r) {
44824
+ const n = () => {
44825
+ l = null, o || e.apply(this, r);
44804
44826
  };
44805
44827
 
44806
- r && !o && (e.apply(this, n), o = setTimeout(l, t)), r || (o && clearTimeout(o), o = setTimeout(l, t));
44828
+ o && !l && (e.apply(this, r), l = setTimeout(n, t)), o || (l && clearTimeout(l), l = setTimeout(n, t));
44807
44829
  };
44808
44830
  },
44809
44831
  _ = "DEFAULT_TOOLTIP_ID",
44810
- g = {
44832
+ A = {
44811
44833
  anchorRefs: new Set(),
44812
44834
  activeAnchor: {
44813
44835
  current: null
@@ -44816,137 +44838,140 @@ const E = (e, t, r) => {
44816
44838
  detach: () => {},
44817
44839
  setActiveAnchor: () => {}
44818
44840
  },
44819
- A = React.createContext({
44820
- getTooltipData: () => g
44841
+ O = React.createContext({
44842
+ getTooltipData: () => A
44821
44843
  });
44822
44844
 
44823
- function O(e = _) {
44824
- return React.useContext(A).getTooltipData(e);
44845
+ function k(e = _) {
44846
+ return React.useContext(O).getTooltipData(e);
44825
44847
  }
44826
44848
 
44827
- const R = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect,
44828
- N = e => {
44849
+ const C = "undefined" != typeof window ? React.useLayoutEffect : React.useEffect,
44850
+ R = e => {
44829
44851
  if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
44830
44852
  const t = getComputedStyle(e);
44831
44853
  return ["overflow", "overflow-x", "overflow-y"].some(e => {
44832
- const r = t.getPropertyValue(e);
44833
- return "auto" === r || "scroll" === r;
44854
+ const o = t.getPropertyValue(e);
44855
+ return "auto" === o || "scroll" === o;
44834
44856
  });
44835
44857
  },
44836
- k = e => {
44858
+ x = e => {
44837
44859
  if (!e) return null;
44838
44860
  let t = e.parentElement;
44839
44861
 
44840
44862
  for (; t;) {
44841
- if (N(t)) return t;
44863
+ if (R(t)) return t;
44842
44864
  t = t.parentElement;
44843
44865
  }
44844
44866
 
44845
44867
  return document.scrollingElement || document.documentElement;
44846
44868
  },
44847
- x = async ({
44869
+ N = async ({
44848
44870
  elementReference: e = null,
44849
44871
  tooltipReference: t = null,
44850
- tooltipArrowReference: r = null,
44851
- place: o = "top",
44852
- offset: n = 10,
44853
- strategy: l = "absolute",
44854
- middlewares: i = [offset(Number(n)), flip(), shift({
44872
+ tooltipArrowReference: o = null,
44873
+ place: l = "top",
44874
+ offset: r = 10,
44875
+ strategy: n = "absolute",
44876
+ middlewares: c = [offset(Number(r)), flip(), shift({
44855
44877
  padding: 5
44856
44878
  })],
44857
- border: c
44879
+ border: i
44858
44880
  }) => {
44859
44881
  if (!e) return {
44860
44882
  tooltipStyles: {},
44861
44883
  tooltipArrowStyles: {},
44862
- place: o
44884
+ place: l
44863
44885
  };
44864
44886
  if (null === t) return {
44865
44887
  tooltipStyles: {},
44866
44888
  tooltipArrowStyles: {},
44867
- place: o
44889
+ place: l
44868
44890
  };
44869
- const a = i;
44870
- return r ? (a.push(arrow({
44871
- element: r,
44891
+ const s = c;
44892
+ return o ? (s.push(arrow({
44893
+ element: o,
44872
44894
  padding: 5
44873
44895
  })), computePosition(e, t, {
44874
- placement: o,
44875
- strategy: l,
44876
- middleware: a
44896
+ placement: l,
44897
+ strategy: n,
44898
+ middleware: s
44877
44899
  }).then(({
44878
44900
  x: e,
44879
44901
  y: t,
44880
- placement: r,
44881
- middlewareData: o
44902
+ placement: o,
44903
+ middlewareData: l
44882
44904
  }) => {
44883
- var n, l;
44884
- const i = {
44905
+ var r, n;
44906
+ const c = {
44885
44907
  left: `${e}px`,
44886
44908
  top: `${t}px`,
44887
- border: c
44909
+ border: i
44888
44910
  },
44889
44911
  {
44890
- x: a,
44891
- y: s
44892
- } = null !== (n = o.arrow) && void 0 !== n ? n : {
44912
+ x: s,
44913
+ y: a
44914
+ } = null !== (r = l.arrow) && void 0 !== r ? r : {
44893
44915
  x: 0,
44894
44916
  y: 0
44895
44917
  },
44896
- u = null !== (l = {
44918
+ d = null !== (n = {
44897
44919
  top: "bottom",
44898
44920
  right: "left",
44899
44921
  bottom: "top",
44900
44922
  left: "right"
44901
- }[r.split("-")[0]]) && void 0 !== l ? l : "bottom",
44902
- d = c && {
44903
- borderBottom: c,
44904
- borderRight: c
44923
+ }[o.split("-")[0]]) && void 0 !== n ? n : "bottom",
44924
+ u = i && {
44925
+ borderBottom: i,
44926
+ borderRight: i
44905
44927
  };
44906
44928
  let p = 0;
44907
44929
 
44908
- if (c) {
44909
- const e = `${c}`.match(/(\d+)px/);
44930
+ if (i) {
44931
+ const e = `${i}`.match(/(\d+)px/);
44910
44932
  p = (null == e ? void 0 : e[1]) ? Number(e[1]) : 1;
44911
44933
  }
44912
44934
 
44913
44935
  return {
44914
- tooltipStyles: i,
44936
+ tooltipStyles: c,
44915
44937
  tooltipArrowStyles: {
44916
- left: null != a ? `${a}px` : "",
44917
- top: null != s ? `${s}px` : "",
44938
+ left: null != s ? `${s}px` : "",
44939
+ top: null != a ? `${a}px` : "",
44918
44940
  right: "",
44919
44941
  bottom: "",
44920
- ...d,
44921
- [u]: `-${4 + p}px`
44942
+ ...u,
44943
+ [d]: `-${4 + p}px`
44922
44944
  },
44923
- place: r
44945
+ place: o
44924
44946
  };
44925
44947
  })) : computePosition(e, t, {
44926
44948
  placement: "bottom",
44927
- strategy: l,
44928
- middleware: a
44949
+ strategy: n,
44950
+ middleware: s
44929
44951
  }).then(({
44930
44952
  x: e,
44931
44953
  y: t,
44932
- placement: r
44954
+ placement: o
44933
44955
  }) => ({
44934
44956
  tooltipStyles: {
44935
44957
  left: `${e}px`,
44936
44958
  top: `${t}px`
44937
44959
  },
44938
44960
  tooltipArrowStyles: {},
44939
- place: r
44961
+ place: o
44940
44962
  }));
44941
44963
  };
44942
44964
 
44943
- var C = "core-styles-module_tooltip__3vRRp",
44944
- $ = "core-styles-module_fixed__pcSol",
44945
- I = "core-styles-module_arrow__cvMwQ",
44946
- j = "core-styles-module_noArrow__xock6",
44947
- B = "core-styles-module_clickable__ZuTTB",
44948
- D = "core-styles-module_show__Nt9eE",
44949
- H = {
44965
+ var $ = {
44966
+ tooltip: "core-styles-module_tooltip__3vRRp",
44967
+ fixed: "core-styles-module_fixed__pcSol",
44968
+ arrow: "core-styles-module_arrow__cvMwQ",
44969
+ noArrow: "core-styles-module_noArrow__xock6",
44970
+ clickable: "core-styles-module_clickable__ZuTTB",
44971
+ show: "core-styles-module_show__Nt9eE",
44972
+ closing: "core-styles-module_closing__sGnxF"
44973
+ },
44974
+ j = {
44950
44975
  tooltip: "styles-module_tooltip__mnnfp",
44951
44976
  arrow: "styles-module_arrow__K0L3T",
44952
44977
  dark: "styles-module_dark__xNqje",
@@ -44957,594 +44982,694 @@ var C = "core-styles-module_tooltip__3vRRp",
44957
44982
  info: "styles-module_info__BWdHW"
44958
44983
  };
44959
44984
 
44960
- const z = ({
44961
- id: t,
44985
+ const I = ({
44986
+ forwardRef: t,
44987
+ id: r,
44962
44988
  className: n,
44963
- classNameArrow: l,
44964
- variant: a = "dark",
44965
- anchorId: s,
44966
- anchorSelect: u,
44967
- place: d = "top",
44968
- offset: p = 10,
44969
- events: v = ["hover"],
44970
- openOnClick: f = !1,
44971
- positionStrategy: h = "absolute",
44972
- middlewares: w,
44973
- wrapper: b,
44974
- delayShow: S = 0,
44975
- delayHide: _ = 0,
44976
- float: g = !1,
44977
- hidden: A = !1,
44978
- noArrow: T = !1,
44979
- clickable: L = !1,
44980
- closeOnEsc: N = !1,
44981
- closeOnScroll: z = !1,
44982
- closeOnResize: q = !1,
44989
+ classNameArrow: s,
44990
+ variant: d = "dark",
44991
+ anchorId: u,
44992
+ anchorSelect: p,
44993
+ place: v = "top",
44994
+ offset: m = 10,
44995
+ events: h = ["hover"],
44996
+ openOnClick: w = !1,
44997
+ positionStrategy: b = "absolute",
44998
+ middlewares: S,
44999
+ wrapper: E,
45000
+ delayShow: _ = 0,
45001
+ delayHide: A = 0,
45002
+ float: O = !1,
45003
+ hidden: T = !1,
45004
+ noArrow: L = !1,
45005
+ clickable: R = !1,
45006
+ closeOnEsc: I = !1,
45007
+ closeOnScroll: B = !1,
45008
+ closeOnResize: z = !1,
45009
+ openEvents: D,
45010
+ closeEvents: q,
45011
+ globalCloseEvents: H,
45012
+ imperativeModeOnly: M,
44983
45013
  style: W,
44984
- position: M,
44985
- afterShow: P,
44986
- afterHide: F,
44987
- content: K,
44988
- contentWrapperRef: U,
44989
- isOpen: X,
44990
- setIsOpen: Y,
45014
+ position: P,
45015
+ afterShow: F,
45016
+ afterHide: K,
45017
+ content: U,
45018
+ contentWrapperRef: X,
45019
+ isOpen: Y,
45020
+ setIsOpen: G,
44991
45021
  activeAnchor: V,
44992
45022
  setActiveAnchor: Z,
44993
- border: G,
44994
- opacity: J,
44995
- arrowColor: Q
45023
+ border: J,
45024
+ opacity: Q,
45025
+ arrowColor: ee
44996
45026
  }) => {
44997
- const ee = React.useRef(null),
44998
- te = React.useRef(null),
45027
+ var te;
45028
+ const oe = React.useRef(null),
45029
+ le = React.useRef(null),
44999
45030
  re = React.useRef(null),
45000
- oe = React.useRef(null),
45001
- [ne, le] = React.useState(d),
45002
- [ie, ce] = React.useState({}),
45003
- [ae, se] = React.useState({}),
45004
- [ue, de] = React.useState(!1),
45031
+ ne = React.useRef(null),
45032
+ [ce, ie] = React.useState(v),
45033
+ [se, ae] = React.useState({}),
45034
+ [de, ue] = React.useState({}),
45005
45035
  [pe, ve] = React.useState(!1),
45006
- me = React.useRef(!1),
45007
- ye = React.useRef(null),
45008
- {
45009
- anchorRefs: fe,
45010
- setActiveAnchor: he
45011
- } = O(t),
45036
+ [me, fe] = React.useState(!1),
45037
+ [ye, he] = React.useState(null),
45012
45038
  we = React.useRef(!1),
45013
- [be, Se] = React.useState([]),
45014
- Ee = React.useRef(!1),
45015
- _e = f || v.includes("click");
45016
-
45017
- R(() => (Ee.current = !0, () => {
45018
- Ee.current = !1;
45019
- }), []), React.useEffect(() => {
45020
- if (!ue) {
45021
- const e = setTimeout(() => {
45022
- ve(!1);
45023
- }, 150);
45024
- return () => {
45025
- clearTimeout(e);
45026
- };
45027
- }
45028
-
45029
- return () => null;
45030
- }, [ue]);
45031
-
45032
- const ge = e => {
45033
- Ee.current && (e && ve(!0), setTimeout(() => {
45034
- Ee.current && (null == Y || Y(e), void 0 === X && de(e));
45039
+ be = React.useRef(null),
45040
+ {
45041
+ anchorRefs: Se,
45042
+ setActiveAnchor: Ee
45043
+ } = k(r),
45044
+ ge = React.useRef(!1),
45045
+ [_e, Ae] = React.useState([]),
45046
+ Oe = React.useRef(!1),
45047
+ Te = w || h.includes("click"),
45048
+ ke = Te || (null == D ? void 0 : D.click) || (null == D ? void 0 : D.dblclick) || (null == D ? void 0 : D.mousedown),
45049
+ Le = D ? { ...D
45050
+ } : {
45051
+ mouseenter: !0,
45052
+ focus: !0,
45053
+ click: !1,
45054
+ dblclick: !1,
45055
+ mousedown: !1
45056
+ };
45057
+ !D && Te && Object.assign(Le, {
45058
+ mouseenter: !1,
45059
+ focus: !1,
45060
+ click: !0
45061
+ });
45062
+ const Ce = q ? { ...q
45063
+ } : {
45064
+ mouseleave: !0,
45065
+ blur: !0,
45066
+ click: !1,
45067
+ dblclick: !1,
45068
+ mouseup: !1
45069
+ };
45070
+ !q && Te && Object.assign(Ce, {
45071
+ mouseleave: !1,
45072
+ blur: !1
45073
+ });
45074
+ const Re = H ? { ...H
45075
+ } : {
45076
+ escape: I || !1,
45077
+ scroll: B || !1,
45078
+ resize: z || !1,
45079
+ clickOutsideAnchor: ke || !1
45080
+ };
45081
+ M && (Object.assign(Le, {
45082
+ mouseenter: !1,
45083
+ focus: !1,
45084
+ click: !1,
45085
+ dblclick: !1,
45086
+ mousedown: !1
45087
+ }), Object.assign(Ce, {
45088
+ mouseleave: !1,
45089
+ blur: !1,
45090
+ click: !1,
45091
+ dblclick: !1,
45092
+ mouseup: !1
45093
+ }), Object.assign(Re, {
45094
+ escape: !1,
45095
+ scroll: !1,
45096
+ resize: !1,
45097
+ clickOutsideAnchor: !1
45098
+ })), C(() => (Oe.current = !0, () => {
45099
+ Oe.current = !1;
45100
+ }), []);
45101
+
45102
+ const xe = e => {
45103
+ Oe.current && (e && fe(!0), setTimeout(() => {
45104
+ Oe.current && (null == G || G(e), void 0 === Y && ve(e));
45035
45105
  }, 10));
45036
45106
  };
45037
45107
 
45038
45108
  React.useEffect(() => {
45039
- if (void 0 === X) return () => null;
45040
- X && ve(!0);
45109
+ if (void 0 === Y) return () => null;
45110
+ Y && fe(!0);
45041
45111
  const e = setTimeout(() => {
45042
- de(X);
45112
+ ve(Y);
45043
45113
  }, 10);
45044
45114
  return () => {
45045
45115
  clearTimeout(e);
45046
45116
  };
45047
- }, [X]), React.useEffect(() => {
45048
- ue !== me.current && (me.current = ue, ue ? null == P || P() : null == F || F());
45049
- }, [ue]);
45117
+ }, [Y]), React.useEffect(() => {
45118
+ pe !== we.current && (we.current = pe, pe && (null == F || F()));
45119
+ }, [pe]);
45050
45120
 
45051
- const Ae = (e = _) => {
45052
- oe.current && clearTimeout(oe.current), oe.current = setTimeout(() => {
45053
- we.current || ge(!1);
45121
+ const Ne = (e = _) => {
45122
+ re.current && clearTimeout(re.current), re.current = setTimeout(() => {
45123
+ xe(!0);
45124
+ }, e);
45125
+ },
45126
+ $e = (e = A) => {
45127
+ ne.current && clearTimeout(ne.current), ne.current = setTimeout(() => {
45128
+ ge.current || xe(!1);
45054
45129
  }, e);
45055
45130
  },
45056
- Te = e => {
45131
+ je = e => {
45057
45132
  var t;
45058
45133
  if (!e) return;
45059
- const r = null !== (t = e.currentTarget) && void 0 !== t ? t : e.target;
45060
- if (!(null == r ? void 0 : r.isConnected)) return Z(null), void he({
45134
+ const o = null !== (t = e.currentTarget) && void 0 !== t ? t : e.target;
45135
+ if (!(null == o ? void 0 : o.isConnected)) return Z(null), void Ee({
45061
45136
  current: null
45062
45137
  });
45063
- S ? (re.current && clearTimeout(re.current), re.current = setTimeout(() => {
45064
- ge(!0);
45065
- }, S)) : ge(!0), Z(r), he({
45066
- current: r
45067
- }), oe.current && clearTimeout(oe.current);
45138
+ _ ? Ne() : xe(!0), Z(o), Ee({
45139
+ current: o
45140
+ }), ne.current && clearTimeout(ne.current);
45068
45141
  },
45069
- Oe = () => {
45070
- L ? Ae(_ || 100) : _ ? Ae() : ge(!1), re.current && clearTimeout(re.current);
45142
+ Ie = () => {
45143
+ R ? $e(A || 100) : A ? $e() : xe(!1), re.current && clearTimeout(re.current);
45071
45144
  },
45072
- Le = ({
45145
+ Be = ({
45073
45146
  x: e,
45074
45147
  y: t
45075
45148
  }) => {
45076
- x({
45077
- place: d,
45078
- offset: p,
45079
- elementReference: {
45080
- getBoundingClientRect: () => ({
45081
- x: e,
45082
- y: t,
45083
- width: 0,
45084
- height: 0,
45085
- top: t,
45086
- left: e,
45087
- right: e,
45088
- bottom: t
45089
- })
45090
- },
45091
- tooltipReference: ee.current,
45092
- tooltipArrowReference: te.current,
45093
- strategy: h,
45094
- middlewares: w,
45095
- border: G
45149
+ var o;
45150
+ const l = {
45151
+ getBoundingClientRect: () => ({
45152
+ x: e,
45153
+ y: t,
45154
+ width: 0,
45155
+ height: 0,
45156
+ top: t,
45157
+ left: e,
45158
+ right: e,
45159
+ bottom: t
45160
+ })
45161
+ };
45162
+ N({
45163
+ place: null !== (o = null == ye ? void 0 : ye.place) && void 0 !== o ? o : v,
45164
+ offset: m,
45165
+ elementReference: l,
45166
+ tooltipReference: oe.current,
45167
+ tooltipArrowReference: le.current,
45168
+ strategy: b,
45169
+ middlewares: S,
45170
+ border: J
45096
45171
  }).then(e => {
45097
- Object.keys(e.tooltipStyles).length && ce(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && se(e.tooltipArrowStyles), le(e.place);
45172
+ Object.keys(e.tooltipStyles).length && ae(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && ue(e.tooltipArrowStyles), ie(e.place);
45098
45173
  });
45099
45174
  },
45100
- Re = e => {
45175
+ ze = e => {
45101
45176
  if (!e) return;
45102
45177
  const t = e,
45103
- r = {
45178
+ o = {
45104
45179
  x: t.clientX,
45105
45180
  y: t.clientY
45106
45181
  };
45107
- Le(r), ye.current = r;
45108
- },
45109
- Ne = e => {
45110
- Te(e), _ && Ae();
45182
+ Be(o), be.current = o;
45111
45183
  },
45112
- ke = e => {
45184
+ De = e => {
45113
45185
  var t;
45114
- [document.querySelector(`[id='${s}']`), ...be].some(t => null == t ? void 0 : t.contains(e.target)) || (null === (t = ee.current) || void 0 === t ? void 0 : t.contains(e.target)) || (ge(!1), re.current && clearTimeout(re.current));
45186
+ if (!pe) return;
45187
+ const o = e.target;
45188
+ if (null === (t = oe.current) || void 0 === t ? void 0 : t.contains(o)) return;
45189
+ [document.querySelector(`[id='${u}']`), ..._e].some(e => null == e ? void 0 : e.contains(o)) || (xe(!1), re.current && clearTimeout(re.current));
45115
45190
  },
45116
- xe = E(Te, 50, !0),
45117
- Ce = E(Oe, 50, !0),
45118
- $e = React.useCallback(() => {
45119
- M ? Le(M) : g ? ye.current && Le(ye.current) : x({
45120
- place: d,
45121
- offset: p,
45191
+ qe = g(je, 50, !0),
45192
+ He = g(Ie, 50, !0),
45193
+ Me = React.useCallback(() => {
45194
+ var e, t;
45195
+ const o = null !== (e = null == ye ? void 0 : ye.position) && void 0 !== e ? e : P;
45196
+ o ? Be(o) : O ? be.current && Be(be.current) : (null == V ? void 0 : V.isConnected) && N({
45197
+ place: null !== (t = null == ye ? void 0 : ye.place) && void 0 !== t ? t : v,
45198
+ offset: m,
45122
45199
  elementReference: V,
45123
- tooltipReference: ee.current,
45124
- tooltipArrowReference: te.current,
45125
- strategy: h,
45126
- middlewares: w,
45127
- border: G
45200
+ tooltipReference: oe.current,
45201
+ tooltipArrowReference: le.current,
45202
+ strategy: b,
45203
+ middlewares: S,
45204
+ border: J
45128
45205
  }).then(e => {
45129
- Ee.current && (Object.keys(e.tooltipStyles).length && ce(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && se(e.tooltipArrowStyles), le(e.place));
45206
+ Oe.current && (Object.keys(e.tooltipStyles).length && ae(e.tooltipStyles), Object.keys(e.tooltipArrowStyles).length && ue(e.tooltipArrowStyles), ie(e.place));
45130
45207
  });
45131
- }, [ue, V, K, W, d, p, h, M, g]);
45208
+ }, [pe, V, U, W, v, null == ye ? void 0 : ye.place, m, b, P, null == ye ? void 0 : ye.position, O]);
45132
45209
 
45133
45210
  React.useEffect(() => {
45134
45211
  var e, t;
45135
- const r = new Set(fe);
45136
- be.forEach(e => {
45137
- r.add({
45212
+ const o = new Set(Se);
45213
+
45214
+ _e.forEach(e => {
45215
+ o.add({
45138
45216
  current: e
45139
45217
  });
45140
45218
  });
45141
- const o = document.querySelector(`[id='${s}']`);
45142
- o && r.add({
45143
- current: o
45219
+
45220
+ const l = document.querySelector(`[id='${u}']`);
45221
+ l && o.add({
45222
+ current: l
45144
45223
  });
45145
45224
 
45146
- const n = () => {
45147
- ge(!1);
45225
+ const r = () => {
45226
+ xe(!1);
45148
45227
  },
45149
- l = k(V),
45150
- i = k(ee.current);
45228
+ n = x(V),
45229
+ c = x(oe.current);
45151
45230
 
45152
- z && (window.addEventListener("scroll", n), null == l || l.addEventListener("scroll", n), null == i || i.addEventListener("scroll", n));
45153
- let c = null;
45154
- q ? window.addEventListener("resize", n) : V && ee.current && (c = autoUpdate(V, ee.current, $e, {
45231
+ Re.scroll && (window.addEventListener("scroll", r), null == n || n.addEventListener("scroll", r), null == c || c.addEventListener("scroll", r));
45232
+ let i = null;
45233
+ Re.resize ? window.addEventListener("resize", r) : V && oe.current && (i = autoUpdate(V, oe.current, Me, {
45155
45234
  ancestorResize: !0,
45156
45235
  elementResize: !0,
45157
45236
  layoutShift: !0
45158
45237
  }));
45159
45238
 
45160
- const a = e => {
45161
- "Escape" === e.key && ge(!1);
45239
+ const s = e => {
45240
+ "Escape" === e.key && xe(!1);
45162
45241
  };
45163
45242
 
45164
- N && window.addEventListener("keydown", a);
45165
- const u = [];
45166
- _e ? (window.addEventListener("click", ke), u.push({
45167
- event: "click",
45168
- listener: Ne
45169
- })) : (u.push({
45170
- event: "mouseenter",
45171
- listener: xe
45172
- }, {
45173
- event: "mouseleave",
45174
- listener: Ce
45175
- }, {
45176
- event: "focus",
45177
- listener: xe
45178
- }, {
45179
- event: "blur",
45180
- listener: Ce
45181
- }), g && u.push({
45182
- event: "mousemove",
45183
- listener: Re
45184
- }));
45243
+ Re.escape && window.addEventListener("keydown", s), Re.clickOutsideAnchor && window.addEventListener("click", De);
45185
45244
 
45186
- const d = () => {
45187
- we.current = !0;
45245
+ const a = [],
45246
+ d = e => {
45247
+ pe || je(e);
45188
45248
  },
45189
45249
  p = () => {
45190
- we.current = !1, Oe();
45250
+ pe && Ie();
45251
+ },
45252
+ v = ["mouseenter", "mouseleave", "focus", "blur"],
45253
+ m = ["click", "dblclick", "mousedown", "mouseup"];
45254
+
45255
+ Object.entries(Le).forEach(([e, t]) => {
45256
+ t && (v.includes(e) ? a.push({
45257
+ event: e,
45258
+ listener: qe
45259
+ }) : m.includes(e) && a.push({
45260
+ event: e,
45261
+ listener: d
45262
+ }));
45263
+ }), Object.entries(Ce).forEach(([e, t]) => {
45264
+ t && (v.includes(e) ? a.push({
45265
+ event: e,
45266
+ listener: He
45267
+ }) : m.includes(e) && a.push({
45268
+ event: e,
45269
+ listener: p
45270
+ }));
45271
+ }), O && a.push({
45272
+ event: "mousemove",
45273
+ listener: ze
45274
+ });
45275
+
45276
+ const y = () => {
45277
+ ge.current = !0;
45278
+ },
45279
+ h = () => {
45280
+ ge.current = !1, Ie();
45191
45281
  };
45192
45282
 
45193
- return L && !_e && (null === (e = ee.current) || void 0 === e || e.addEventListener("mouseenter", d), null === (t = ee.current) || void 0 === t || t.addEventListener("mouseleave", p)), u.forEach(({
45283
+ return R && !ke && (null === (e = oe.current) || void 0 === e || e.addEventListener("mouseenter", y), null === (t = oe.current) || void 0 === t || t.addEventListener("mouseleave", h)), a.forEach(({
45194
45284
  event: e,
45195
45285
  listener: t
45196
45286
  }) => {
45197
- r.forEach(r => {
45198
- var o;
45199
- null === (o = r.current) || void 0 === o || o.addEventListener(e, t);
45287
+ o.forEach(o => {
45288
+ var l;
45289
+ null === (l = o.current) || void 0 === l || l.addEventListener(e, t);
45200
45290
  });
45201
45291
  }), () => {
45202
45292
  var e, t;
45203
- z && (window.removeEventListener("scroll", n), null == l || l.removeEventListener("scroll", n), null == i || i.removeEventListener("scroll", n)), q ? window.removeEventListener("resize", n) : null == c || c(), _e && window.removeEventListener("click", ke), N && window.removeEventListener("keydown", a), L && !_e && (null === (e = ee.current) || void 0 === e || e.removeEventListener("mouseenter", d), null === (t = ee.current) || void 0 === t || t.removeEventListener("mouseleave", p)), u.forEach(({
45293
+ Re.scroll && (window.removeEventListener("scroll", r), null == n || n.removeEventListener("scroll", r), null == c || c.removeEventListener("scroll", r)), Re.resize ? window.removeEventListener("resize", r) : null == i || i(), Re.clickOutsideAnchor && window.removeEventListener("click", De), Re.escape && window.removeEventListener("keydown", s), R && !ke && (null === (e = oe.current) || void 0 === e || e.removeEventListener("mouseenter", y), null === (t = oe.current) || void 0 === t || t.removeEventListener("mouseleave", h)), a.forEach(({
45204
45294
  event: e,
45205
45295
  listener: t
45206
45296
  }) => {
45207
- r.forEach(r => {
45208
- var o;
45209
- null === (o = r.current) || void 0 === o || o.removeEventListener(e, t);
45297
+ o.forEach(o => {
45298
+ var l;
45299
+ null === (l = o.current) || void 0 === l || l.removeEventListener(e, t);
45210
45300
  });
45211
45301
  });
45212
45302
  };
45213
- }, [V, $e, pe, fe, be, N, v]), React.useEffect(() => {
45214
- let e = null != u ? u : "";
45215
- !e && t && (e = `[data-tooltip-id='${t}']`);
45216
- const r = new MutationObserver(r => {
45217
- const o = [];
45218
- r.forEach(r => {
45219
- if ("attributes" === r.type && "data-tooltip-id" === r.attributeName) {
45220
- r.target.getAttribute("data-tooltip-id") === t && o.push(r.target);
45221
- }
45222
-
45223
- if ("childList" === r.type && (V && [...r.removedNodes].some(e => {
45224
- var t;
45225
- return !!(null === (t = null == e ? void 0 : e.contains) || void 0 === t ? void 0 : t.call(e, V)) && (ve(!1), ge(!1), Z(null), re.current && clearTimeout(re.current), oe.current && clearTimeout(oe.current), !0);
45226
- }), e)) try {
45227
- const t = [...r.addedNodes].filter(e => 1 === e.nodeType);
45228
- o.push(...t.filter(t => t.matches(e))), o.push(...t.flatMap(t => [...t.querySelectorAll(e)]));
45229
- } catch (e) {}
45230
- }), o.length && Se(e => [...e, ...o]);
45303
+ }, [V, Me, me, Se, _e, D, q, H, Te]), React.useEffect(() => {
45304
+ var e, t;
45305
+ let o = null !== (t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p) && void 0 !== t ? t : "";
45306
+ !o && r && (o = `[data-tooltip-id='${r}']`);
45307
+ const l = new MutationObserver(e => {
45308
+ const t = [],
45309
+ l = [];
45310
+ e.forEach(e => {
45311
+ if ("attributes" === e.type && "data-tooltip-id" === e.attributeName) {
45312
+ e.target.getAttribute("data-tooltip-id") === r && t.push(e.target);
45313
+ }
45314
+
45315
+ if ("childList" === e.type) {
45316
+ if (V) {
45317
+ const t = [...e.removedNodes].filter(e => 1 === e.nodeType);
45318
+ if (o) try {
45319
+ l.push(...t.filter(e => e.matches(o))), l.push(...t.flatMap(e => [...e.querySelectorAll(o)]));
45320
+ } catch (e) {}
45321
+ t.some(e => {
45322
+ var t;
45323
+ return !!(null === (t = null == e ? void 0 : e.contains) || void 0 === t ? void 0 : t.call(e, V)) && (fe(!1), xe(!1), Z(null), re.current && clearTimeout(re.current), ne.current && clearTimeout(ne.current), !0);
45324
+ });
45325
+ }
45326
+
45327
+ if (o) try {
45328
+ const l = [...e.addedNodes].filter(e => 1 === e.nodeType);
45329
+ t.push(...l.filter(e => e.matches(o))), t.push(...l.flatMap(e => [...e.querySelectorAll(o)]));
45330
+ } catch (e) {}
45331
+ }
45332
+ }), (t.length || l.length) && Ae(e => [...e.filter(e => !l.includes(e)), ...t]);
45231
45333
  });
45232
- return r.observe(document.body, {
45334
+ return l.observe(document.body, {
45233
45335
  childList: !0,
45234
45336
  subtree: !0,
45235
45337
  attributes: !0,
45236
45338
  attributeFilter: ["data-tooltip-id"]
45237
45339
  }), () => {
45238
- r.disconnect();
45340
+ l.disconnect();
45239
45341
  };
45240
- }, [t, u, V]), React.useEffect(() => {
45241
- $e();
45242
- }, [$e]), React.useEffect(() => {
45243
- if (!(null == U ? void 0 : U.current)) return () => null;
45342
+ }, [r, p, null == ye ? void 0 : ye.anchorSelect, V]), React.useEffect(() => {
45343
+ Me();
45344
+ }, [Me]), React.useEffect(() => {
45345
+ if (!(null == X ? void 0 : X.current)) return () => null;
45244
45346
  const e = new ResizeObserver(() => {
45245
- $e();
45347
+ Me();
45246
45348
  });
45247
- return e.observe(U.current), () => {
45349
+ return e.observe(X.current), () => {
45248
45350
  e.disconnect();
45249
45351
  };
45250
- }, [K, null == U ? void 0 : U.current]), React.useEffect(() => {
45352
+ }, [U, null == X ? void 0 : X.current]), React.useEffect(() => {
45251
45353
  var e;
45252
- const t = document.querySelector(`[id='${s}']`),
45253
- r = [...be, t];
45254
- V && r.includes(V) || Z(null !== (e = be[0]) && void 0 !== e ? e : t);
45255
- }, [s, be, V]), React.useEffect(() => () => {
45256
- re.current && clearTimeout(re.current), oe.current && clearTimeout(oe.current);
45354
+ const t = document.querySelector(`[id='${u}']`),
45355
+ o = [..._e, t];
45356
+ V && o.includes(V) || Z(null !== (e = _e[0]) && void 0 !== e ? e : t);
45357
+ }, [u, _e, V]), React.useEffect(() => () => {
45358
+ re.current && clearTimeout(re.current), ne.current && clearTimeout(ne.current);
45257
45359
  }, []), React.useEffect(() => {
45258
- let e = u;
45259
- if (!e && t && (e = `[data-tooltip-id='${t}']`), e) try {
45260
- const t = Array.from(document.querySelectorAll(e));
45261
- Se(t);
45360
+ var e;
45361
+ let t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p;
45362
+ if (!t && r && (t = `[data-tooltip-id='${r}']`), t) try {
45363
+ const e = Array.from(document.querySelectorAll(t));
45364
+ Ae(e);
45262
45365
  } catch (e) {
45263
- Se([]);
45264
- }
45265
- }, [t, u]);
45266
- const Ie = !A && K && ue && Object.keys(ie).length > 0;
45267
- return pe ? React__default["default"].createElement(b, {
45268
- id: t,
45366
+ Ae([]);
45367
+ }
45368
+ }, [r, p, null == ye ? void 0 : ye.anchorSelect]);
45369
+ const We = null !== (te = null == ye ? void 0 : ye.content) && void 0 !== te ? te : U,
45370
+ Pe = pe && Object.keys(se).length > 0;
45371
+ return React.useImperativeHandle(t, () => ({
45372
+ open: e => {
45373
+ if (null == e ? void 0 : e.anchorSelect) try {
45374
+ document.querySelector(e.anchorSelect);
45375
+ } catch (t) {
45376
+ return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
45377
+ }
45378
+ he(null != e ? e : null), (null == e ? void 0 : e.delay) ? Ne(e.delay) : xe(!0);
45379
+ },
45380
+ close: e => {
45381
+ (null == e ? void 0 : e.delay) ? $e(e.delay) : xe(!1);
45382
+ },
45383
+ activeAnchor: V,
45384
+ place: ce,
45385
+ isOpen: Boolean(me && !T && We && Pe)
45386
+ })), me && !T && We ? React__default["default"].createElement(E, {
45387
+ id: r,
45269
45388
  role: "tooltip",
45270
- className: classnames("react-tooltip", C, H.tooltip, H[a], n, `react-tooltip__place-${ne}`, {
45271
- "react-tooltip__show": Ie,
45272
- [D]: Ie,
45273
- [$]: "fixed" === h,
45274
- [B]: L
45275
- }),
45389
+ className: classnames("react-tooltip", $.tooltip, j.tooltip, j[d], n, `react-tooltip__place-${ce}`, $[Pe ? "show" : "closing"], Pe ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === b && $.fixed, R && $.clickable),
45390
+ onTransitionEnd: e => {
45391
+ pe || "opacity" !== e.propertyName || (fe(!1), he(null), null == K || K());
45392
+ },
45276
45393
  style: { ...W,
45277
- ...ie,
45278
- opacity: void 0 !== J && Ie ? J : void 0
45394
+ ...se,
45395
+ opacity: void 0 !== Q && Pe ? Q : void 0
45279
45396
  },
45280
- ref: ee
45281
- }, K, React__default["default"].createElement(b, {
45282
- className: classnames("react-tooltip-arrow", I, H.arrow, l, {
45283
- [j]: T
45284
- }),
45285
- style: { ...ae,
45286
- background: Q ? `linear-gradient(to right bottom, transparent 50%, ${Q} 50%)` : void 0
45397
+ ref: oe
45398
+ }, We, React__default["default"].createElement(E, {
45399
+ className: classnames("react-tooltip-arrow", $.arrow, j.arrow, s, L && $.noArrow),
45400
+ style: { ...de,
45401
+ background: ee ? `linear-gradient(to right bottom, transparent 50%, ${ee} 50%)` : void 0
45287
45402
  },
45288
- ref: te
45403
+ ref: le
45289
45404
  })) : null;
45290
45405
  },
45291
- q = ({
45406
+ B = ({
45292
45407
  content: t
45293
45408
  }) => React__default["default"].createElement("span", {
45294
45409
  dangerouslySetInnerHTML: {
45295
45410
  __html: t
45296
45411
  }
45297
45412
  }),
45298
- W = ({
45413
+ z = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t),
45414
+ D = React__default["default"].forwardRef(({
45299
45415
  id: t,
45300
- anchorId: o,
45301
- anchorSelect: n,
45302
- content: l,
45303
- html: a,
45304
- render: s,
45305
- className: u,
45306
- classNameArrow: d,
45416
+ anchorId: l,
45417
+ anchorSelect: r,
45418
+ content: n,
45419
+ html: s,
45420
+ render: a,
45421
+ className: d,
45422
+ classNameArrow: u,
45307
45423
  variant: p = "dark",
45308
45424
  place: v = "top",
45309
45425
  offset: m = 10,
45310
- wrapper: y = "div",
45311
- children: f = null,
45426
+ wrapper: f = "div",
45427
+ children: y = null,
45312
45428
  events: h = ["hover"],
45313
45429
  openOnClick: w = !1,
45314
45430
  positionStrategy: b = "absolute",
45315
45431
  middlewares: S,
45316
45432
  delayShow: E = 0,
45317
- delayHide: _ = 0,
45318
- float: g = !1,
45433
+ delayHide: g = 0,
45434
+ float: _ = !1,
45319
45435
  hidden: A = !1,
45320
- noArrow: T = !1,
45321
- clickable: L = !1,
45322
- closeOnEsc: R = !1,
45323
- closeOnScroll: N = !1,
45324
- closeOnResize: k = !1,
45325
- style: x,
45326
- position: C,
45327
- isOpen: $,
45328
- disableStyleInjection: I = !1,
45329
- border: j,
45330
- opacity: B,
45331
- arrowColor: D,
45332
- setIsOpen: H,
45333
- afterShow: W,
45334
- afterHide: M
45335
- }) => {
45336
- const [P, F] = React.useState(l),
45337
- [K, U] = React.useState(a),
45338
- [X, Y] = React.useState(v),
45339
- [V, Z] = React.useState(p),
45340
- [G, J] = React.useState(m),
45341
- [Q, ee] = React.useState(E),
45342
- [te, re] = React.useState(_),
45343
- [oe, ne] = React.useState(g),
45344
- [le, ie] = React.useState(A),
45345
- [ce, ae] = React.useState(y),
45346
- [se, ue] = React.useState(h),
45347
- [de, pe] = React.useState(b),
45348
- [ve, me] = React.useState(null),
45349
- ye = React.useRef(I),
45436
+ noArrow: O = !1,
45437
+ clickable: T = !1,
45438
+ closeOnEsc: L = !1,
45439
+ closeOnScroll: C = !1,
45440
+ closeOnResize: R = !1,
45441
+ openEvents: x,
45442
+ closeEvents: N,
45443
+ globalCloseEvents: $,
45444
+ imperativeModeOnly: j = !1,
45445
+ style: D,
45446
+ position: q,
45447
+ isOpen: H,
45448
+ disableStyleInjection: M = !1,
45449
+ border: W,
45450
+ opacity: P,
45451
+ arrowColor: F,
45452
+ setIsOpen: K,
45453
+ afterShow: U,
45454
+ afterHide: X
45455
+ }, Y) => {
45456
+ const [G, V] = React.useState(n),
45457
+ [Z, J] = React.useState(s),
45458
+ [Q, ee] = React.useState(v),
45459
+ [te, oe] = React.useState(p),
45460
+ [le, re] = React.useState(m),
45461
+ [ne, ce] = React.useState(E),
45462
+ [ie, se] = React.useState(g),
45463
+ [ae, de] = React.useState(_),
45464
+ [ue, pe] = React.useState(A),
45465
+ [ve, me] = React.useState(f),
45466
+ [fe, ye] = React.useState(h),
45467
+ [he, we] = React.useState(b),
45468
+ [be, Se] = React.useState(null),
45469
+ Ee = React.useRef(M),
45350
45470
  {
45351
- anchorRefs: fe,
45352
- activeAnchor: he
45353
- } = O(t),
45354
- we = e => null == e ? void 0 : e.getAttributeNames().reduce((t, r) => {
45355
- var o;
45471
+ anchorRefs: ge,
45472
+ activeAnchor: _e
45473
+ } = k(t),
45474
+ Ae = e => null == e ? void 0 : e.getAttributeNames().reduce((t, o) => {
45475
+ var l;
45356
45476
 
45357
- if (r.startsWith("data-tooltip-")) {
45358
- t[r.replace(/^data-tooltip-/, "")] = null !== (o = null == e ? void 0 : e.getAttribute(r)) && void 0 !== o ? o : null;
45477
+ if (o.startsWith("data-tooltip-")) {
45478
+ t[o.replace(/^data-tooltip-/, "")] = null !== (l = null == e ? void 0 : e.getAttribute(o)) && void 0 !== l ? l : null;
45359
45479
  }
45360
45480
 
45361
45481
  return t;
45362
45482
  }, {}),
45363
- be = e => {
45483
+ Oe = e => {
45364
45484
  const t = {
45365
45485
  place: e => {
45366
45486
  var t;
45367
- Y(null !== (t = e) && void 0 !== t ? t : v);
45487
+ ee(null !== (t = e) && void 0 !== t ? t : v);
45368
45488
  },
45369
45489
  content: e => {
45370
- F(null != e ? e : l);
45490
+ V(null != e ? e : n);
45371
45491
  },
45372
45492
  html: e => {
45373
- U(null != e ? e : a);
45493
+ J(null != e ? e : s);
45374
45494
  },
45375
45495
  variant: e => {
45376
45496
  var t;
45377
- Z(null !== (t = e) && void 0 !== t ? t : p);
45497
+ oe(null !== (t = e) && void 0 !== t ? t : p);
45378
45498
  },
45379
45499
  offset: e => {
45380
- J(null === e ? m : Number(e));
45500
+ re(null === e ? m : Number(e));
45381
45501
  },
45382
45502
  wrapper: e => {
45383
45503
  var t;
45384
- ae(null !== (t = e) && void 0 !== t ? t : y);
45504
+ me(null !== (t = e) && void 0 !== t ? t : f);
45385
45505
  },
45386
45506
  events: e => {
45387
45507
  const t = null == e ? void 0 : e.split(" ");
45388
- ue(null != t ? t : h);
45508
+ ye(null != t ? t : h);
45389
45509
  },
45390
45510
  "position-strategy": e => {
45391
45511
  var t;
45392
- pe(null !== (t = e) && void 0 !== t ? t : b);
45512
+ we(null !== (t = e) && void 0 !== t ? t : b);
45393
45513
  },
45394
45514
  "delay-show": e => {
45395
- ee(null === e ? E : Number(e));
45515
+ ce(null === e ? E : Number(e));
45396
45516
  },
45397
45517
  "delay-hide": e => {
45398
- re(null === e ? _ : Number(e));
45518
+ se(null === e ? g : Number(e));
45399
45519
  },
45400
45520
  float: e => {
45401
- ne(null === e ? g : "true" === e);
45521
+ de(null === e ? _ : "true" === e);
45402
45522
  },
45403
45523
  hidden: e => {
45404
- ie(null === e ? A : "true" === e);
45524
+ pe(null === e ? A : "true" === e);
45405
45525
  }
45406
45526
  };
45407
- Object.values(t).forEach(e => e(null)), Object.entries(e).forEach(([e, r]) => {
45408
- var o;
45409
- null === (o = t[e]) || void 0 === o || o.call(t, r);
45527
+ Object.values(t).forEach(e => e(null)), Object.entries(e).forEach(([e, o]) => {
45528
+ var l;
45529
+ null === (l = t[e]) || void 0 === l || l.call(t, o);
45410
45530
  });
45411
45531
  };
45412
45532
 
45413
45533
  React.useEffect(() => {
45414
- F(l);
45415
- }, [l]), React.useEffect(() => {
45416
- U(a);
45417
- }, [a]), React.useEffect(() => {
45418
- Y(v);
45534
+ V(n);
45535
+ }, [n]), React.useEffect(() => {
45536
+ J(s);
45537
+ }, [s]), React.useEffect(() => {
45538
+ ee(v);
45419
45539
  }, [v]), React.useEffect(() => {
45420
- Z(p);
45540
+ oe(p);
45421
45541
  }, [p]), React.useEffect(() => {
45422
- J(m);
45542
+ re(m);
45423
45543
  }, [m]), React.useEffect(() => {
45424
- ee(E);
45544
+ ce(E);
45425
45545
  }, [E]), React.useEffect(() => {
45426
- re(_);
45427
- }, [_]), React.useEffect(() => {
45428
- ne(g);
45546
+ se(g);
45429
45547
  }, [g]), React.useEffect(() => {
45430
- ie(A);
45548
+ de(_);
45549
+ }, [_]), React.useEffect(() => {
45550
+ pe(A);
45431
45551
  }, [A]), React.useEffect(() => {
45432
- pe(b);
45552
+ we(b);
45433
45553
  }, [b]), React.useEffect(() => {
45434
- ye.current !== I && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
45435
- }, [I]), React.useEffect(() => {
45554
+ Ee.current !== M && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
45555
+ }, [M]), React.useEffect(() => {
45436
45556
  "undefined" != typeof window && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", {
45437
45557
  detail: {
45438
- disableCore: "core" === I,
45439
- disableBase: I
45558
+ disableCore: "core" === M,
45559
+ disableBase: M
45440
45560
  }
45441
45561
  }));
45442
45562
  }, []), React.useEffect(() => {
45443
45563
  var e;
45444
- const r = new Set(fe);
45445
- let l = n;
45446
- if (!l && t && (l = `[data-tooltip-id='${t}']`), l) try {
45447
- document.querySelectorAll(l).forEach(e => {
45448
- r.add({
45564
+ const o = new Set(ge);
45565
+ let n = r;
45566
+ if (!n && t && (n = `[data-tooltip-id='${t}']`), n) try {
45567
+ document.querySelectorAll(n).forEach(e => {
45568
+ o.add({
45449
45569
  current: e
45450
45570
  });
45451
45571
  });
45452
45572
  } catch (e) {
45453
- console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`);
45454
- }
45455
- const i = document.querySelector(`[id='${o}']`);
45456
- if (i && r.add({
45457
- current: i
45458
- }), !r.size) return () => null;
45459
- const c = null !== (e = null != ve ? ve : i) && void 0 !== e ? e : he.current,
45460
- a = new MutationObserver(e => {
45573
+ console.warn(`[react-tooltip] "${n}" is not a valid CSS selector`);
45574
+ }
45575
+ const c = document.querySelector(`[id='${l}']`);
45576
+ if (c && o.add({
45577
+ current: c
45578
+ }), !o.size) return () => null;
45579
+ const i = null !== (e = null != be ? be : c) && void 0 !== e ? e : _e.current,
45580
+ s = new MutationObserver(e => {
45461
45581
  e.forEach(e => {
45462
45582
  var t;
45463
- if (!c || "attributes" !== e.type || !(null === (t = e.attributeName) || void 0 === t ? void 0 : t.startsWith("data-tooltip-"))) return;
45464
- const r = we(c);
45465
- be(r);
45583
+ if (!i || "attributes" !== e.type || !(null === (t = e.attributeName) || void 0 === t ? void 0 : t.startsWith("data-tooltip-"))) return;
45584
+ const o = Ae(i);
45585
+ Oe(o);
45466
45586
  });
45467
45587
  }),
45468
- s = {
45588
+ a = {
45469
45589
  attributes: !0,
45470
45590
  childList: !1,
45471
45591
  subtree: !1
45472
45592
  };
45473
45593
 
45474
- if (c) {
45475
- const e = we(c);
45476
- be(e), a.observe(c, s);
45594
+ if (i) {
45595
+ const e = Ae(i);
45596
+ Oe(e), s.observe(i, a);
45477
45597
  }
45478
45598
 
45479
45599
  return () => {
45480
- a.disconnect();
45600
+ s.disconnect();
45481
45601
  };
45482
- }, [fe, he, ve, o, n]), React.useEffect(() => {
45483
- (null == x ? void 0 : x.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), j && !CSS.supports("border", `${j}`) && console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`), (null == x ? void 0 : x.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), B && !CSS.supports("opacity", `${B}`) && console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`);
45602
+ }, [ge, _e, be, l, r]), React.useEffect(() => {
45603
+ (null == D ? void 0 : D.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), W && !z("border", `${W}`) && console.warn(`[react-tooltip] "${W}" is not a valid \`border\`.`), (null == D ? void 0 : D.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), P && !z("opacity", `${P}`) && console.warn(`[react-tooltip] "${P}" is not a valid \`opacity\`.`);
45484
45604
  }, []);
45485
- let Se = f;
45486
- const Ee = React.useRef(null);
45605
+ let Te = y;
45606
+ const ke = React.useRef(null);
45487
45607
 
45488
- if (s) {
45489
- const t = s({
45490
- content: null != P ? P : null,
45491
- activeAnchor: ve
45608
+ if (a) {
45609
+ const t = a({
45610
+ content: null != G ? G : null,
45611
+ activeAnchor: be
45492
45612
  });
45493
- Se = t ? React__default["default"].createElement("div", {
45494
- ref: Ee,
45613
+ Te = t ? React__default["default"].createElement("div", {
45614
+ ref: ke,
45495
45615
  className: "react-tooltip-content-wrapper"
45496
45616
  }, t) : null;
45497
- } else P && (Se = P);
45617
+ } else G && (Te = G);
45498
45618
 
45499
- K && (Se = React__default["default"].createElement(q, {
45500
- content: K
45619
+ Z && (Te = React__default["default"].createElement(B, {
45620
+ content: Z
45501
45621
  }));
45502
- const _e = {
45622
+ const Le = {
45623
+ forwardRef: Y,
45503
45624
  id: t,
45504
- anchorId: o,
45505
- anchorSelect: n,
45506
- className: u,
45507
- classNameArrow: d,
45508
- content: Se,
45509
- contentWrapperRef: Ee,
45510
- place: X,
45511
- variant: V,
45512
- offset: G,
45513
- wrapper: ce,
45514
- events: se,
45625
+ anchorId: l,
45626
+ anchorSelect: r,
45627
+ className: d,
45628
+ classNameArrow: u,
45629
+ content: Te,
45630
+ contentWrapperRef: ke,
45631
+ place: Q,
45632
+ variant: te,
45633
+ offset: le,
45634
+ wrapper: ve,
45635
+ events: fe,
45515
45636
  openOnClick: w,
45516
- positionStrategy: de,
45637
+ positionStrategy: he,
45517
45638
  middlewares: S,
45518
- delayShow: Q,
45519
- delayHide: te,
45520
- float: oe,
45521
- hidden: le,
45522
- noArrow: T,
45523
- clickable: L,
45524
- closeOnEsc: R,
45525
- closeOnScroll: N,
45526
- closeOnResize: k,
45527
- style: x,
45528
- position: C,
45529
- isOpen: $,
45530
- border: j,
45531
- opacity: B,
45532
- arrowColor: D,
45533
- setIsOpen: H,
45534
- afterShow: W,
45535
- afterHide: M,
45536
- activeAnchor: ve,
45537
- setActiveAnchor: e => me(e)
45538
- };
45539
- return React__default["default"].createElement(z, { ..._e
45639
+ delayShow: ne,
45640
+ delayHide: ie,
45641
+ float: ae,
45642
+ hidden: ue,
45643
+ noArrow: O,
45644
+ clickable: T,
45645
+ closeOnEsc: L,
45646
+ closeOnScroll: C,
45647
+ closeOnResize: R,
45648
+ openEvents: x,
45649
+ closeEvents: N,
45650
+ globalCloseEvents: $,
45651
+ imperativeModeOnly: j,
45652
+ style: D,
45653
+ position: q,
45654
+ isOpen: H,
45655
+ border: W,
45656
+ opacity: P,
45657
+ arrowColor: F,
45658
+ setIsOpen: K,
45659
+ afterShow: U,
45660
+ afterHide: X,
45661
+ activeAnchor: be,
45662
+ setActiveAnchor: e => Se(e)
45663
+ };
45664
+ return React__default["default"].createElement(I, { ...Le
45540
45665
  });
45541
- };
45666
+ });
45542
45667
 
45543
45668
  "undefined" != typeof window && window.addEventListener("react-tooltip-inject-styles", e => {
45544
- e.detail.disableCore || b({
45545
- css: `:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9}.core-styles-module_tooltip__3vRRp{visibility:hidden;position:absolute;top:0;left:0;pointer-events:none;opacity:0;transition:opacity 0.3s ease-out;will-change:opacity,visibility}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{visibility:visible;opacity:var(--rt-opacity)}`,
45669
+ e.detail.disableCore || S({
45670
+ css: `:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}`,
45546
45671
  type: "core"
45547
- }), e.detail.disableBase || b({
45672
+ }), e.detail.disableBase || S({
45548
45673
  css: `
45549
45674
  .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,
45550
45675
  type: "base"
@@ -45663,7 +45788,7 @@ function ContextualHelp(_ref) {
45663
45788
  color: '#1d5ab9',
45664
45789
  cursor: 'default'
45665
45790
  }
45666
- })), React__default["default"].createElement(W, {
45791
+ })), React__default["default"].createElement(D, {
45667
45792
  anchorSelect: "#helpSnippet1",
45668
45793
  clickable: true,
45669
45794
  className: "utilities_ContextualHelp_ContextualHelp--snippet",