wacomm 1.8.4 → 1.8.5
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/List.d.ts +3 -2
- package/dist/{index-Bp78GuPc.mjs → index-B7i5pBll.mjs} +72 -61
- package/dist/{index-DZPv5oxO.js → index-CN7nsqdb.js} +2 -2
- package/dist/{mapbox-gl-DVn0vwYK.js → mapbox-gl-Bj53cpen.js} +1 -1
- package/dist/{mapbox-gl-CnNQREiN.mjs → mapbox-gl-CcjqOwMS.mjs} +1 -1
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
package/dist/List.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ interface ListProps {
|
|
|
3
3
|
items: any[];
|
|
4
4
|
itemRenderer: (...args: any[]) => ReactNode;
|
|
5
5
|
className?: string;
|
|
6
|
-
fallback?:
|
|
6
|
+
fallback?: any;
|
|
7
|
+
autoScroll?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare function List({ items, itemRenderer, className, fallback }: ListProps):
|
|
9
|
+
declare function List({ items, itemRenderer, className, fallback, autoScroll }: ListProps): any;
|
|
9
10
|
export default List;
|
|
@@ -2,7 +2,7 @@ var $b = Object.defineProperty;
|
|
|
2
2
|
var Kb = (e, t, o) => t in e ? $b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var Es = (e, t, o) => Kb(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
4
|
import * as T from "react";
|
|
5
|
-
import Ne, { useState as et, useEffect as Je, useCallback as Jt, useRef as
|
|
5
|
+
import Ne, { useState as et, useEffect as Je, useCallback as Jt, useRef as ft, useContext as Cr, forwardRef as Wi, useLayoutEffect as bu, createContext as Gh, useMemo as Zo, Fragment as Ec, Component as Wh, isValidElement as ka, Children as _b, cloneElement as Oa, useImperativeHandle as qi, memo as wr } from "react";
|
|
6
6
|
import * as e1 from "react-dom";
|
|
7
7
|
import Xr, { createPortal as vu } from "react-dom";
|
|
8
8
|
import { Autocomplete as t1, TextField as o1 } from "@mui/material";
|
|
@@ -2837,7 +2837,7 @@ const K1 = (e) => {
|
|
|
2837
2837
|
document.removeEventListener("keydown", t, !1);
|
|
2838
2838
|
}), [t]);
|
|
2839
2839
|
}, _1 = (e) => {
|
|
2840
|
-
const t =
|
|
2840
|
+
const t = ft(null);
|
|
2841
2841
|
return Je(() => {
|
|
2842
2842
|
const o = (n) => {
|
|
2843
2843
|
t.current && !t.current.contains(n.target) && e();
|
|
@@ -8822,7 +8822,7 @@ var Q2 = function(t, o, n, r) {
|
|
|
8822
8822
|
insert: l
|
|
8823
8823
|
};
|
|
8824
8824
|
return m.sheet.hydrate(a), m;
|
|
8825
|
-
}, Ba = { exports: {} },
|
|
8825
|
+
}, Ba = { exports: {} }, ht = {};
|
|
8826
8826
|
/** @license React v16.13.1
|
|
8827
8827
|
* react-is.production.min.js
|
|
8828
8828
|
*
|
|
@@ -8833,7 +8833,7 @@ var Q2 = function(t, o, n, r) {
|
|
|
8833
8833
|
*/
|
|
8834
8834
|
var qd;
|
|
8835
8835
|
function _2() {
|
|
8836
|
-
if (qd) return
|
|
8836
|
+
if (qd) return ht;
|
|
8837
8837
|
qd = 1;
|
|
8838
8838
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
8839
8839
|
function w(I) {
|
|
@@ -8869,33 +8869,33 @@ function _2() {
|
|
|
8869
8869
|
function P(I) {
|
|
8870
8870
|
return w(I) === c;
|
|
8871
8871
|
}
|
|
8872
|
-
return
|
|
8872
|
+
return ht.AsyncMode = l, ht.ConcurrentMode = c, ht.ContextConsumer = a, ht.ContextProvider = i, ht.Element = t, ht.ForwardRef = u, ht.Fragment = n, ht.Lazy = m, ht.Memo = f, ht.Portal = o, ht.Profiler = s, ht.StrictMode = r, ht.Suspense = p, ht.isAsyncMode = function(I) {
|
|
8873
8873
|
return P(I) || w(I) === l;
|
|
8874
|
-
},
|
|
8874
|
+
}, ht.isConcurrentMode = P, ht.isContextConsumer = function(I) {
|
|
8875
8875
|
return w(I) === a;
|
|
8876
|
-
},
|
|
8876
|
+
}, ht.isContextProvider = function(I) {
|
|
8877
8877
|
return w(I) === i;
|
|
8878
|
-
},
|
|
8878
|
+
}, ht.isElement = function(I) {
|
|
8879
8879
|
return typeof I == "object" && I !== null && I.$$typeof === t;
|
|
8880
|
-
},
|
|
8880
|
+
}, ht.isForwardRef = function(I) {
|
|
8881
8881
|
return w(I) === u;
|
|
8882
|
-
},
|
|
8882
|
+
}, ht.isFragment = function(I) {
|
|
8883
8883
|
return w(I) === n;
|
|
8884
|
-
},
|
|
8884
|
+
}, ht.isLazy = function(I) {
|
|
8885
8885
|
return w(I) === m;
|
|
8886
|
-
},
|
|
8886
|
+
}, ht.isMemo = function(I) {
|
|
8887
8887
|
return w(I) === f;
|
|
8888
|
-
},
|
|
8888
|
+
}, ht.isPortal = function(I) {
|
|
8889
8889
|
return w(I) === o;
|
|
8890
|
-
},
|
|
8890
|
+
}, ht.isProfiler = function(I) {
|
|
8891
8891
|
return w(I) === s;
|
|
8892
|
-
},
|
|
8892
|
+
}, ht.isStrictMode = function(I) {
|
|
8893
8893
|
return w(I) === r;
|
|
8894
|
-
},
|
|
8894
|
+
}, ht.isSuspense = function(I) {
|
|
8895
8895
|
return w(I) === p;
|
|
8896
|
-
},
|
|
8896
|
+
}, ht.isValidElementType = function(I) {
|
|
8897
8897
|
return typeof I == "string" || typeof I == "function" || I === n || I === c || I === s || I === r || I === p || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === f || I.$$typeof === i || I.$$typeof === a || I.$$typeof === u || I.$$typeof === y || I.$$typeof === g || I.$$typeof === x || I.$$typeof === h);
|
|
8898
|
-
},
|
|
8898
|
+
}, ht.typeOf = w, ht;
|
|
8899
8899
|
}
|
|
8900
8900
|
var YN = Ba.exports, Hd;
|
|
8901
8901
|
function eP() {
|
|
@@ -9847,7 +9847,7 @@ var $y = function(t) {
|
|
|
9847
9847
|
marginTop: a.menuGutter
|
|
9848
9848
|
});
|
|
9849
9849
|
}, Ky = /* @__PURE__ */ Gh(null), $P = function(t) {
|
|
9850
|
-
var o = t.children, n = t.minMenuHeight, r = t.maxMenuHeight, s = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = Cr(Ky) || {}, u = c.setPortalPlacement, p =
|
|
9850
|
+
var o = t.children, n = t.minMenuHeight, r = t.maxMenuHeight, s = t.menuPlacement, i = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = Cr(Ky) || {}, u = c.setPortalPlacement, p = ft(null), d = et(r), f = wn(d, 2), m = f[0], h = f[1], y = et(null), g = wn(y, 2), x = g[0], w = g[1], P = l.spacing.controlHeight;
|
|
9851
9851
|
return $a(function() {
|
|
9852
9852
|
var I = p.current;
|
|
9853
9853
|
if (I) {
|
|
@@ -9932,7 +9932,7 @@ var $y = function(t) {
|
|
|
9932
9932
|
zIndex: 1
|
|
9933
9933
|
};
|
|
9934
9934
|
}, ax = function(t) {
|
|
9935
|
-
var o = t.appendTo, n = t.children, r = t.controlElement, s = t.innerProps, i = t.menuPlacement, a = t.menuPosition, l =
|
|
9935
|
+
var o = t.appendTo, n = t.children, r = t.controlElement, s = t.innerProps, i = t.menuPlacement, a = t.menuPosition, l = ft(null), c = ft(null), u = et($y(i)), p = wn(u, 2), d = p[0], f = p[1], m = Zo(function() {
|
|
9936
9936
|
return {
|
|
9937
9937
|
setPortalPlacement: f
|
|
9938
9938
|
};
|
|
@@ -10910,7 +10910,7 @@ var T5 = function(t) {
|
|
|
10910
10910
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
|
10911
10911
|
};
|
|
10912
10912
|
function P5(e) {
|
|
10913
|
-
var t = e.isEnabled, o = e.onBottomArrive, n = e.onBottomLeave, r = e.onTopArrive, s = e.onTopLeave, i =
|
|
10913
|
+
var t = e.isEnabled, o = e.onBottomArrive, n = e.onBottomLeave, r = e.onTopArrive, s = e.onTopLeave, i = ft(!1), a = ft(!1), l = ft(0), c = ft(null), u = Jt(function(y, g) {
|
|
10914
10914
|
if (c.current !== null) {
|
|
10915
10915
|
var x = c.current, w = x.scrollTop, P = x.scrollHeight, I = x.clientHeight, A = c.current, N = g > 0, E = P - I - w, B = !1;
|
|
10916
10916
|
E > g && i.current && (n && n(y), i.current = !1), N && a.current && (s && s(y), a.current = !1), N && g > E ? (o && !i.current && o(y), A.scrollTop = P, B = !0, i.current = !0) : !N && -g > w && (r && !a.current && r(y), A.scrollTop = 0, B = !0, a.current = !0), B && T5(y);
|
|
@@ -10968,7 +10968,7 @@ var pf = !!(typeof window < "u" && window.document && window.document.createElem
|
|
|
10968
10968
|
passive: !1
|
|
10969
10969
|
};
|
|
10970
10970
|
function x5(e) {
|
|
10971
|
-
var t = e.isEnabled, o = e.accountForScrollbars, n = o === void 0 ? !0 : o, r =
|
|
10971
|
+
var t = e.isEnabled, o = e.accountForScrollbars, n = o === void 0 ? !0 : o, r = ft({}), s = ft(null), i = Jt(function(l) {
|
|
10972
10972
|
if (pf) {
|
|
10973
10973
|
var c = document.body, u = c && c.style;
|
|
10974
10974
|
if (n && rf.forEach(function(m) {
|
|
@@ -12231,8 +12231,19 @@ function $N({
|
|
|
12231
12231
|
}
|
|
12232
12232
|
);
|
|
12233
12233
|
}
|
|
12234
|
-
function Vu({
|
|
12235
|
-
|
|
12234
|
+
function Vu({
|
|
12235
|
+
items: e,
|
|
12236
|
+
itemRenderer: t,
|
|
12237
|
+
className: o = "",
|
|
12238
|
+
fallback: n = void 0,
|
|
12239
|
+
autoScroll: r = !1
|
|
12240
|
+
}) {
|
|
12241
|
+
if (!e || e.length === 0) return n;
|
|
12242
|
+
const s = ft(null);
|
|
12243
|
+
return Je(() => {
|
|
12244
|
+
var i, a;
|
|
12245
|
+
r && ((a = (i = s.current) == null ? void 0 : i.lastElementChild) == null || a.scrollIntoView({ behavior: "smooth" }));
|
|
12246
|
+
}, [e, r]), /* @__PURE__ */ v.jsx("ul", { className: o, ref: s, children: e.map(t) });
|
|
12236
12247
|
}
|
|
12237
12248
|
function KN({ content: e, onDelete: t, className: o = "" }) {
|
|
12238
12249
|
return /* @__PURE__ */ v.jsxs(oo, { className: o, children: [
|
|
@@ -13773,7 +13784,7 @@ function pj({ count: e, content: t, onClick: o }) {
|
|
|
13773
13784
|
] });
|
|
13774
13785
|
}
|
|
13775
13786
|
function dj({ tabs: e, classNames: t, onClick: o, pickedTab: n }) {
|
|
13776
|
-
const r =
|
|
13787
|
+
const r = ft(e.length), s = ({ label: i, value: a }, l) => {
|
|
13777
13788
|
let c = "w-16 h-fit text-center py-0 px-2 border border-gray-300 w-fit text-center";
|
|
13778
13789
|
if (n === a && (c = He(c, "bg-blue-200 text-blue-500", (t == null ? void 0 : t.picked) || "")), t) {
|
|
13779
13790
|
const { tab: u, left: p, mid: d, right: f } = t;
|
|
@@ -13900,7 +13911,7 @@ function gj({
|
|
|
13900
13911
|
className: o = "",
|
|
13901
13912
|
rows: n = 2
|
|
13902
13913
|
}) {
|
|
13903
|
-
const r =
|
|
13914
|
+
const r = ft(null);
|
|
13904
13915
|
Je(() => {
|
|
13905
13916
|
var l;
|
|
13906
13917
|
(l = r.current) == null || l.focus();
|
|
@@ -39305,8 +39316,8 @@ const RD = /* @__PURE__ */ T.forwardRef(function(t, o) {
|
|
|
39305
39316
|
if (typeof ee[xe] != "number" || typeof ee[V] != "number")
|
|
39306
39317
|
Q(Ee);
|
|
39307
39318
|
else {
|
|
39308
|
-
const
|
|
39309
|
-
(
|
|
39319
|
+
const mt = Math.abs(ee[xe] - Ee[xe]), St = Math.abs(ee[V] - Ee[V]);
|
|
39320
|
+
(mt >= 1 || St >= 1) && Q(Ee);
|
|
39310
39321
|
}
|
|
39311
39322
|
}), q = (ge, {
|
|
39312
39323
|
animation: Oe = !0
|
|
@@ -39408,8 +39419,8 @@ const RD = /* @__PURE__ */ T.forwardRef(function(t, o) {
|
|
|
39408
39419
|
he.current && G();
|
|
39409
39420
|
});
|
|
39410
39421
|
let Oe;
|
|
39411
|
-
const fe = (
|
|
39412
|
-
|
|
39422
|
+
const fe = (mt) => {
|
|
39423
|
+
mt.forEach((St) => {
|
|
39413
39424
|
St.removedNodes.forEach((Kt) => {
|
|
39414
39425
|
Oe == null || Oe.unobserve(Kt);
|
|
39415
39426
|
}), St.addedNodes.forEach((Kt) => {
|
|
@@ -39419,8 +39430,8 @@ const RD = /* @__PURE__ */ T.forwardRef(function(t, o) {
|
|
|
39419
39430
|
}, xe = Xo(he.current);
|
|
39420
39431
|
xe.addEventListener("resize", ge);
|
|
39421
39432
|
let Ee;
|
|
39422
|
-
return typeof ResizeObserver < "u" && (Oe = new ResizeObserver(ge), Array.from(re.current.children).forEach((
|
|
39423
|
-
Oe.observe(
|
|
39433
|
+
return typeof ResizeObserver < "u" && (Oe = new ResizeObserver(ge), Array.from(re.current.children).forEach((mt) => {
|
|
39434
|
+
Oe.observe(mt);
|
|
39424
39435
|
})), typeof MutationObserver < "u" && (Ee = new MutationObserver(fe), Ee.observe(re.current, {
|
|
39425
39436
|
childList: !0
|
|
39426
39437
|
})), () => {
|
|
@@ -39432,9 +39443,9 @@ const RD = /* @__PURE__ */ T.forwardRef(function(t, o) {
|
|
|
39432
39443
|
const fe = ge[0], xe = ge[Oe - 1], Ee = {
|
|
39433
39444
|
root: he.current,
|
|
39434
39445
|
threshold: 0.99
|
|
39435
|
-
},
|
|
39446
|
+
}, mt = (Gt) => {
|
|
39436
39447
|
ie(!Gt[0].isIntersecting);
|
|
39437
|
-
}, St = new IntersectionObserver(
|
|
39448
|
+
}, St = new IntersectionObserver(mt, Ee);
|
|
39438
39449
|
St.observe(fe);
|
|
39439
39450
|
const Kt = (Gt) => {
|
|
39440
39451
|
J(!Gt[0].isIntersecting);
|
|
@@ -39489,12 +39500,12 @@ const RD = /* @__PURE__ */ T.forwardRef(function(t, o) {
|
|
|
39489
39500
|
const Oe = re.current, fe = Qt(Oe).activeElement;
|
|
39490
39501
|
if (fe.getAttribute("role") !== "tab")
|
|
39491
39502
|
return;
|
|
39492
|
-
let Ee = y === "horizontal" ? "ArrowLeft" : "ArrowUp",
|
|
39493
|
-
switch (y === "horizontal" && s && (Ee = "ArrowRight",
|
|
39503
|
+
let Ee = y === "horizontal" ? "ArrowLeft" : "ArrowUp", mt = y === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
39504
|
+
switch (y === "horizontal" && s && (Ee = "ArrowRight", mt = "ArrowLeft"), ge.key) {
|
|
39494
39505
|
case Ee:
|
|
39495
39506
|
ge.preventDefault(), Ma(Oe, fe, yh);
|
|
39496
39507
|
break;
|
|
39497
|
-
case
|
|
39508
|
+
case mt:
|
|
39498
39509
|
ge.preventDefault(), Ma(Oe, fe, hh);
|
|
39499
39510
|
break;
|
|
39500
39511
|
case "Home":
|
|
@@ -41882,7 +41893,7 @@ function gE(e, t) {
|
|
|
41882
41893
|
}
|
|
41883
41894
|
const tc = T.createContext(null);
|
|
41884
41895
|
function bE(e, t, o) {
|
|
41885
|
-
const n = Cr(sE), [r, s] = et(null), i =
|
|
41896
|
+
const n = Cr(sE), [r, s] = et(null), i = ft(), { current: a } = ft({ mapLib: null, map: null });
|
|
41886
41897
|
Je(() => {
|
|
41887
41898
|
const u = e.mapLib;
|
|
41888
41899
|
let p = !0, d;
|
|
@@ -41937,7 +41948,7 @@ function Rr(e, t) {
|
|
|
41937
41948
|
}
|
|
41938
41949
|
}
|
|
41939
41950
|
function TE(e, t) {
|
|
41940
|
-
const { map: o, mapLib: n } = Cr(tc), r =
|
|
41951
|
+
const { map: o, mapLib: n } = Cr(tc), r = ft({ props: e });
|
|
41941
41952
|
r.current.props = e;
|
|
41942
41953
|
const s = Zo(() => {
|
|
41943
41954
|
let h = !1;
|
|
@@ -41982,7 +41993,7 @@ function Mh(e) {
|
|
|
41982
41993
|
return new Set(e ? e.trim().split(/\s+/) : []);
|
|
41983
41994
|
}
|
|
41984
41995
|
function xE(e, t) {
|
|
41985
|
-
const { map: o, mapLib: n } = Cr(tc), r = Zo(() => document.createElement("div"), []), s =
|
|
41996
|
+
const { map: o, mapLib: n } = Cr(tc), r = Zo(() => document.createElement("div"), []), s = ft({ props: e });
|
|
41986
41997
|
s.current.props = e;
|
|
41987
41998
|
const i = Zo(() => {
|
|
41988
41999
|
const a = { ...e }, l = new n.Popup(a);
|
|
@@ -42040,7 +42051,7 @@ function wE(e) {
|
|
|
42040
42051
|
}
|
|
42041
42052
|
const CL = wr(wE);
|
|
42042
42053
|
function IE(e, t) {
|
|
42043
|
-
const o =
|
|
42054
|
+
const o = ft({ props: e }), n = aa(({ mapLib: r }) => {
|
|
42044
42055
|
const s = new r.GeolocateControl(e), i = s._setupUI;
|
|
42045
42056
|
return s._setupUI = (a) => {
|
|
42046
42057
|
s._container.hasChildNodes() || i(a);
|
|
@@ -42078,7 +42089,7 @@ const AE = wr(SE);
|
|
|
42078
42089
|
function ME(e) {
|
|
42079
42090
|
const t = aa(({ mapLib: s }) => new s.ScaleControl(e), {
|
|
42080
42091
|
position: e.position
|
|
42081
|
-
}), o =
|
|
42092
|
+
}), o = ft(e), n = o.current;
|
|
42082
42093
|
o.current = e;
|
|
42083
42094
|
const { style: r } = e;
|
|
42084
42095
|
return e.maxWidth !== void 0 && e.maxWidth !== n.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== n.unit && t.setUnit(e.unit), Je(() => {
|
|
@@ -42086,7 +42097,7 @@ function ME(e) {
|
|
|
42086
42097
|
}, [r]), null;
|
|
42087
42098
|
}
|
|
42088
42099
|
const IL = wr(ME);
|
|
42089
|
-
const kE = import("./mapbox-gl-
|
|
42100
|
+
const kE = import("./mapbox-gl-CcjqOwMS.mjs").then((e) => e.m), OE = T.forwardRef(function(t, o) {
|
|
42090
42101
|
return bE(t, o, kE);
|
|
42091
42102
|
}), Bb = PE;
|
|
42092
42103
|
const RE = AE;
|
|
@@ -42103,7 +42114,7 @@ const SL = ({
|
|
|
42103
42114
|
mapStyle: r,
|
|
42104
42115
|
navigationControl: s
|
|
42105
42116
|
}) => {
|
|
42106
|
-
const i =
|
|
42117
|
+
const i = ft(null), [a, l] = et({
|
|
42107
42118
|
longitude: e,
|
|
42108
42119
|
latitude: t,
|
|
42109
42120
|
zoom: 10
|
|
@@ -43016,7 +43027,7 @@ function Zb(e = fN) {
|
|
|
43016
43027
|
var Yr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, Dc = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
43017
43028
|
const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r = "dark", anchorId: s, anchorSelect: i, place: a = "top", offset: l = 10, events: c = ["hover"], openOnClick: u = !1, positionStrategy: p = "absolute", middlewares: d, wrapper: f, delayShow: m = 0, delayHide: h = 0, float: y = !1, hidden: g = !1, noArrow: x = !1, clickable: w = !1, closeOnEsc: P = !1, closeOnScroll: I = !1, closeOnResize: A = !1, openEvents: N, closeEvents: E, globalCloseEvents: B, imperativeModeOnly: C, style: j, position: M, afterShow: F, afterHide: D, disableTooltip: S, content: O, contentWrapperRef: k, isOpen: R, defaultIsOpen: V = !1, setIsOpen: H, activeAnchor: W, setActiveAnchor: U, border: Y, opacity: K, arrowColor: X, arrowSize: ee = 8, role: Q = "tooltip" }) => {
|
|
43018
43029
|
var de;
|
|
43019
|
-
const ie =
|
|
43030
|
+
const ie = ft(null), $ = ft(null), J = ft(null), _ = ft(null), te = ft(null), [ue, be] = et({ tooltipStyles: {}, tooltipArrowStyles: {}, place: a }), [le, he] = et(!1), [re, pe] = et(!1), [L, G] = et(null), q = ft(!1), ne = ft(null), { anchorRefs: se, setActiveAnchor: ce } = Zb(t), me = ft(!1), [De, Ve] = et([]), Se = ft(!1), Ge = u || c.includes("click"), Ae = Ge || (N == null ? void 0 : N.click) || (N == null ? void 0 : N.dblclick) || (N == null ? void 0 : N.mousedown), Xe = N ? { ...N } : { mouseover: !0, focus: !0, mouseenter: !1, click: !1, dblclick: !1, mousedown: !1 };
|
|
43020
43031
|
!N && Ge && Object.assign(Xe, { mouseenter: !1, focus: !1, mouseover: !1, click: !0 });
|
|
43021
43032
|
const nt = E ? { ...E } : { mouseout: !0, blur: !0, mouseleave: !1, click: !1, dblclick: !1, mouseup: !1 };
|
|
43022
43033
|
!E && Ge && Object.assign(nt, { mouseleave: !1, blur: !1, mouseout: !1 });
|
|
@@ -43044,8 +43055,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43044
43055
|
const fe = ((xe) => {
|
|
43045
43056
|
const Ee = xe.match(/^([\d.]+)(ms|s)$/);
|
|
43046
43057
|
if (!Ee) return 0;
|
|
43047
|
-
const [,
|
|
43048
|
-
return Number(
|
|
43058
|
+
const [, mt, St] = Ee;
|
|
43059
|
+
return Number(mt) * (St === "ms" ? 1 : 1e3);
|
|
43049
43060
|
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
43050
43061
|
te.current = setTimeout(() => {
|
|
43051
43062
|
pe(!1), G(null), D == null || D();
|
|
@@ -43072,8 +43083,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43072
43083
|
w ? Ue(h || 100) : h ? Ue() : Qe(!1), Oo(J);
|
|
43073
43084
|
}, mo = ({ x: fe, y: xe }) => {
|
|
43074
43085
|
var Ee;
|
|
43075
|
-
const
|
|
43076
|
-
Lh({ place: (Ee = L == null ? void 0 : L.place) !== null && Ee !== void 0 ? Ee : a, offset: l, elementReference:
|
|
43086
|
+
const mt = { getBoundingClientRect: () => ({ x: fe, y: xe, width: 0, height: 0, top: xe, left: fe, right: fe, bottom: xe }) };
|
|
43087
|
+
Lh({ place: (Ee = L == null ? void 0 : L.place) !== null && Ee !== void 0 ? Ee : a, offset: l, elementReference: mt, tooltipReference: ie.current, tooltipArrowReference: $.current, strategy: p, middlewares: d, border: Y, arrowSize: ee }).then((St) => {
|
|
43077
43088
|
Ce(St);
|
|
43078
43089
|
});
|
|
43079
43090
|
}, Rt = (fe) => {
|
|
@@ -43084,7 +43095,7 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43084
43095
|
var xe;
|
|
43085
43096
|
if (!le) return;
|
|
43086
43097
|
const Ee = fe.target;
|
|
43087
|
-
Ee.isConnected && (!((xe = ie.current) === null || xe === void 0) && xe.contains(Ee) || [document.querySelector(`[id='${s}']`), ...De].some((
|
|
43098
|
+
Ee.isConnected && (!((xe = ie.current) === null || xe === void 0) && xe.contains(Ee) || [document.querySelector(`[id='${s}']`), ...De].some((mt) => mt == null ? void 0 : mt.contains(Ee)) || (Qe(!1), Oo(J)));
|
|
43088
43099
|
}, Nn = zh(ut, 50, !0), Dt = zh(Ot, 50, !0), no = (fe) => {
|
|
43089
43100
|
Dt.cancel(), Nn(fe);
|
|
43090
43101
|
}, Ze = () => {
|
|
@@ -43092,8 +43103,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43092
43103
|
}, We = Jt(() => {
|
|
43093
43104
|
var fe, xe;
|
|
43094
43105
|
const Ee = (fe = L == null ? void 0 : L.position) !== null && fe !== void 0 ? fe : M;
|
|
43095
|
-
Ee ? mo(Ee) : y ? ne.current && mo(ne.current) : W != null && W.isConnected && Lh({ place: (xe = L == null ? void 0 : L.place) !== null && xe !== void 0 ? xe : a, offset: l, elementReference: W, tooltipReference: ie.current, tooltipArrowReference: $.current, strategy: p, middlewares: d, border: Y, arrowSize: ee }).then((
|
|
43096
|
-
Se.current && Ce(
|
|
43106
|
+
Ee ? mo(Ee) : y ? ne.current && mo(ne.current) : W != null && W.isConnected && Lh({ place: (xe = L == null ? void 0 : L.place) !== null && xe !== void 0 ? xe : a, offset: l, elementReference: W, tooltipReference: ie.current, tooltipArrowReference: $.current, strategy: p, middlewares: d, border: Y, arrowSize: ee }).then((mt) => {
|
|
43107
|
+
Se.current && Ce(mt);
|
|
43097
43108
|
});
|
|
43098
43109
|
}, [le, W, O, j, a, L == null ? void 0 : L.place, l, p, M, L == null ? void 0 : L.position, y, ee]);
|
|
43099
43110
|
Je(() => {
|
|
@@ -43102,8 +43113,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43102
43113
|
De.forEach((yt) => {
|
|
43103
43114
|
S != null && S(yt) || Ee.add({ current: yt });
|
|
43104
43115
|
});
|
|
43105
|
-
const
|
|
43106
|
-
|
|
43116
|
+
const mt = document.querySelector(`[id='${s}']`);
|
|
43117
|
+
mt && !(S != null && S(mt)) && Ee.add({ current: mt });
|
|
43107
43118
|
const St = () => {
|
|
43108
43119
|
Qe(!1);
|
|
43109
43120
|
}, Kt = Vh(W), ho = Vh(ie.current);
|
|
@@ -43147,7 +43158,7 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43147
43158
|
var fe, xe;
|
|
43148
43159
|
let Ee = (xe = (fe = L == null ? void 0 : L.anchorSelect) !== null && fe !== void 0 ? fe : i) !== null && xe !== void 0 ? xe : "";
|
|
43149
43160
|
!Ee && t && (Ee = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
43150
|
-
const
|
|
43161
|
+
const mt = new MutationObserver((St) => {
|
|
43151
43162
|
const Kt = [], ho = [];
|
|
43152
43163
|
St.forEach((Gt) => {
|
|
43153
43164
|
if (Gt.type === "attributes" && Gt.attributeName === "data-tooltip-id" && (Gt.target.getAttribute("data-tooltip-id") === t ? Kt.push(Gt.target) : Gt.oldValue === t && ho.push(Gt.target)), Gt.type === "childList") {
|
|
@@ -43170,8 +43181,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43170
43181
|
}
|
|
43171
43182
|
}), (Kt.length || ho.length) && Ve((Gt) => [...Gt.filter((Io) => !ho.includes(Io)), ...Kt]);
|
|
43172
43183
|
});
|
|
43173
|
-
return
|
|
43174
|
-
|
|
43184
|
+
return mt.observe(document.body, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["data-tooltip-id"], attributeOldValue: !0 }), () => {
|
|
43185
|
+
mt.disconnect();
|
|
43175
43186
|
};
|
|
43176
43187
|
}, [t, i, L == null ? void 0 : L.anchorSelect, W]), Je(() => {
|
|
43177
43188
|
We();
|
|
@@ -43215,7 +43226,7 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43215
43226
|
Oo(te), le || fe.propertyName !== "opacity" || (pe(!1), G(null), D == null || D());
|
|
43216
43227
|
}, style: { ...j, ...ue.tooltipStyles, opacity: K !== void 0 && Oe ? K : void 0 }, ref: ie }, ge, Ne.createElement(f, { className: yu("react-tooltip-arrow", Yr.arrow, Dc.arrow, n, x && Yr.noArrow), style: { ...ue.tooltipArrowStyles, background: X ? `linear-gradient(to right bottom, transparent 50%, ${X} 50%)` : void 0, "--rt-arrow-size": `${ee}px` }, ref: $ })) : null;
|
|
43217
43228
|
}, gN = ({ content: e }) => Ne.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), bN = Ne.forwardRef(({ id: e, anchorId: t, anchorSelect: o, content: n, html: r, render: s, className: i, classNameArrow: a, variant: l = "dark", place: c = "top", offset: u = 10, wrapper: p = "div", children: d = null, events: f = ["hover"], openOnClick: m = !1, positionStrategy: h = "absolute", middlewares: y, delayShow: g = 0, delayHide: x = 0, float: w = !1, hidden: P = !1, noArrow: I = !1, clickable: A = !1, closeOnEsc: N = !1, closeOnScroll: E = !1, closeOnResize: B = !1, openEvents: C, closeEvents: j, globalCloseEvents: M, imperativeModeOnly: F = !1, style: D, position: S, isOpen: O, defaultIsOpen: k = !1, disableStyleInjection: R = !1, border: V, opacity: H, arrowColor: W, arrowSize: U, setIsOpen: Y, afterShow: K, afterHide: X, disableTooltip: ee, role: Q = "tooltip" }, de) => {
|
|
43218
|
-
const [ie, $] = et(n), [J, _] = et(r), [te, ue] = et(c), [be, le] = et(l), [he, re] = et(u), [pe, L] = et(g), [G, q] = et(x), [ne, se] = et(w), [ce, me] = et(P), [De, Ve] = et(p), [Se, Ge] = et(f), [Ae, Xe] = et(h), [nt, Ke] = et(null), [Qe, Ce] = et(null), we =
|
|
43229
|
+
const [ie, $] = et(n), [J, _] = et(r), [te, ue] = et(c), [be, le] = et(l), [he, re] = et(u), [pe, L] = et(g), [G, q] = et(x), [ne, se] = et(w), [ce, me] = et(P), [De, Ve] = et(p), [Se, Ge] = et(f), [Ae, Xe] = et(h), [nt, Ke] = et(null), [Qe, Ce] = et(null), we = ft(R), { anchorRefs: Ue, activeAnchor: ut } = Zb(e), Ot = (Dt) => Dt == null ? void 0 : Dt.getAttributeNames().reduce((no, Ze) => {
|
|
43219
43230
|
var We;
|
|
43220
43231
|
return Ze.startsWith("data-tooltip-") && (no[Ze.replace(/^data-tooltip-/, "")] = (We = Dt == null ? void 0 : Dt.getAttribute(Ze)) !== null && We !== void 0 ? We : null), no;
|
|
43221
43232
|
}, {}), mo = (Dt) => {
|
|
@@ -43295,8 +43306,8 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43295
43306
|
if (We && no.add({ current: We }), !no.size) return () => null;
|
|
43296
43307
|
const ge = (Dt = Qe ?? We) !== null && Dt !== void 0 ? Dt : ut.current, Oe = new MutationObserver((xe) => {
|
|
43297
43308
|
xe.forEach((Ee) => {
|
|
43298
|
-
var
|
|
43299
|
-
if (!ge || Ee.type !== "attributes" || !(!((
|
|
43309
|
+
var mt;
|
|
43310
|
+
if (!ge || Ee.type !== "attributes" || !(!((mt = Ee.attributeName) === null || mt === void 0) && mt.startsWith("data-tooltip-"))) return;
|
|
43300
43311
|
const St = Ot(ge);
|
|
43301
43312
|
mo(St);
|
|
43302
43313
|
});
|
|
@@ -43312,7 +43323,7 @@ const yN = ({ forwardRef: e, id: t, className: o, classNameArrow: n, variant: r
|
|
|
43312
43323
|
D != null && D.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), V && !Bh("border", `${V}`) && console.warn(`[react-tooltip] "${V}" is not a valid \`border\`.`), D != null && D.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), H && !Bh("opacity", `${H}`) && console.warn(`[react-tooltip] "${H}" is not a valid \`opacity\`.`);
|
|
43313
43324
|
}, []);
|
|
43314
43325
|
let Rt = d;
|
|
43315
|
-
const yn =
|
|
43326
|
+
const yn = ft(null);
|
|
43316
43327
|
if (s) {
|
|
43317
43328
|
const Dt = s({ content: (Qe == null ? void 0 : Qe.getAttribute("data-tooltip-content")) || ie || null, activeAnchor: Qe });
|
|
43318
43329
|
Rt = Dt ? Ne.createElement("div", { ref: yn, className: "react-tooltip-content-wrapper" }, Dt) : null;
|