@gatewaze/admin-embed 0.1.0
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/README.md +42 -0
- package/dist/AiSkillsPicker-dbFhcanE.js +373 -0
- package/dist/ContentAccessPage-D0HRqPFc.js +264 -0
- package/dist/DataTable-fe6yRVpF.js +1984 -0
- package/dist/DetailPageHeader-D_v7924k.js +69 -0
- package/dist/EditionEmail-CyhC8232.js +8382 -0
- package/dist/GuideContent-DBXKCu7r.js +7580 -0
- package/dist/HostMediaTab-BsIBEQ1v.js +440 -0
- package/dist/InboxPage-C8ivCKdx.js +1112 -0
- package/dist/NewsletterCanvasEditor--B06apn3.js +11453 -0
- package/dist/NewsletterSetupWizard-BqV6-fa5.js +347 -0
- package/dist/NewsletterSignup-DRVZIpOs.js +224 -0
- package/dist/Page-D3u8IZ2a.js +14 -0
- package/dist/Toaster-Cde0i6IA.js +18 -0
- package/dist/Tooltip-CqxUlW1d.js +746 -0
- package/dist/_collectionSlug_-B3UN6M-Q.js +308 -0
- package/dist/_collection_-Qz4k_Qjl.js +139 -0
- package/dist/_edition_-DQXwkI_-.js +301 -0
- package/dist/_id_-CtT7rT9f.js +257 -0
- package/dist/_id_-CzScE4Qn.js +1197 -0
- package/dist/_virtual_gatewaze-modules-BeloWlOa.js +991 -0
- package/dist/admin-B0Mmrh_O.js +1239 -0
- package/dist/admin-CcfoK6vD.js +17 -0
- package/dist/admin-embed.js +21844 -0
- package/dist/admin.css +2 -0
- package/dist/block-editor-vXBShAue.js +226 -0
- package/dist/brand-DklYwIeA.js +11 -0
- package/dist/brick-editor-CmBitMMK.js +225 -0
- package/dist/broadcastService-CBqXNt_N.js +190 -0
- package/dist/classnames-uWIYaD6z.js +44 -0
- package/dist/contentAccessService-Cs7tdAo-.js +59 -0
- package/dist/context-jzuubYRz.js +5 -0
- package/dist/createSafeContext-P1pK0sAN.js +17 -0
- package/dist/detail-B8SVFJJr.js +26285 -0
- package/dist/detail-uFBxRbLF.js +2966 -0
- package/dist/dist-DTrOExw8.js +38806 -0
- package/dist/edition-slug-CARO24Bs.js +7 -0
- package/dist/export-edition-html-C_hdXQu5.js +18893 -0
- package/dist/floating-ui.dom-Cyv879E9.js +987 -0
- package/dist/hooks-C377EXJG.js +2974 -0
- package/dist/img/mlops-logo.png +0 -0
- package/dist/img/mlops-logo2.png +0 -0
- package/dist/index.d.ts +105 -0
- package/dist/jsx-runtime-CjozyJt-.js +180 -0
- package/dist/lib-CylJmhlJ.js +828 -0
- package/dist/list-C0cz0aQz.js +451 -0
- package/dist/list-CIVgIGsU.js +166 -0
- package/dist/logo/mlops-alt.png +0 -0
- package/dist/logo/mlops-logo.png +0 -0
- package/dist/new-r4KWpqa6.js +80 -0
- package/dist/outline-DwDYhYcF.js +6538 -0
- package/dist/pages-Ersfxcz7.js +216 -0
- package/dist/preview/12627f.jpg +0 -0
- package/dist/preview/af009d.jpg +0 -0
- package/dist/public-api-LD11kMxh.js +238 -0
- package/dist/react-DB2tPNit.js +933 -0
- package/dist/react-dom-giQNVXng.js +267 -0
- package/dist/registry-4XrV9iNG.js +7 -0
- package/dist/render-BtUWfMUt.js +59634 -0
- package/dist/resolvePeopleByEmail-hivX2l07.js +828 -0
- package/dist/runtime-config.js +10 -0
- package/dist/sends-BkPO6PG2.js +182 -0
- package/dist/server.browser-Pj3QUa7k.js +15227 -0
- package/dist/shim-BCerG8nb.js +6681 -0
- package/dist/sonnerHostBridge-CXuCMM3R.js +665 -0
- package/dist/src-BWDAOzZO.js +799 -0
- package/dist/starter-templates-CFs-QUdF.js +3077 -0
- package/dist/storage-VDSvnkvR.js +39 -0
- package/dist/templateParser-BQ2IsJ6c.js +49 -0
- package/dist/templates-rjQjWsRr.js +253 -0
- package/dist/theme/gatewaze/android-icon-144x144.png +0 -0
- package/dist/theme/gatewaze/android-icon-192x192.png +0 -0
- package/dist/theme/gatewaze/android-icon-36x36.png +0 -0
- package/dist/theme/gatewaze/android-icon-48x48.png +0 -0
- package/dist/theme/gatewaze/android-icon-72x72.png +0 -0
- package/dist/theme/gatewaze/android-icon-96x96.png +0 -0
- package/dist/theme/gatewaze/favicon-144x144.png +0 -0
- package/dist/theme/gatewaze/favicon-16x16.png +0 -0
- package/dist/theme/gatewaze/favicon-192x192.png +0 -0
- package/dist/theme/gatewaze/favicon-32x32.png +0 -0
- package/dist/theme/gatewaze/favicon-96x96.png +0 -0
- package/dist/theme/gatewaze/favicon.ico +0 -0
- package/dist/theme/gatewaze/gatewaze-icon-512.png +0 -0
- package/dist/theme/gatewaze/gatewaze-logo-black.svg +24 -0
- package/dist/theme/gatewaze/gatewaze-logo-white.svg +20 -0
- package/dist/theme/gatewaze/gatewaze-poweredby-black.svg +25 -0
- package/dist/theme/gatewaze/gatewaze-poweredby-white.svg +25 -0
- package/dist/theme/gatewaze/logo_black.svg +24 -0
- package/dist/theme/gatewaze/logo_white.svg +20 -0
- package/dist/theme-D6odw5nx.js +586 -0
- package/dist/ui-DRIo9Krs.js +9747 -0
- package/dist/upload-DMNfZ6FX.js +505 -0
- package/dist/useModuleFeature-DgsFIUpv.js +8 -0
- package/dist/utils-BcVvIjaY.js +36 -0
- package/dist/with-selector-B8eSdVx_.js +100 -0
- package/package.json +33 -0
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
import { c as e, t } from "./react-DB2tPNit.js";
|
|
2
|
+
import { t as n } from "./jsx-runtime-CjozyJt-.js";
|
|
3
|
+
import { i as r, n as i, r as a, t as o } from "./classnames-uWIYaD6z.js";
|
|
4
|
+
import { c as s, d as c, i as l, o as u, p as d, r as ee, t as f } from "./floating-ui.dom-Cyv879E9.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/react-tooltip@5.30.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-tooltip/dist/react-tooltip.min.mjs
|
|
6
|
+
var p = /* @__PURE__ */ e(t(), 1);
|
|
7
|
+
s();
|
|
8
|
+
var m = /* @__PURE__ */ e(o(), 1), h = "react-tooltip-core-styles", g = "react-tooltip-base-styles", _ = {
|
|
9
|
+
core: !1,
|
|
10
|
+
base: !1
|
|
11
|
+
};
|
|
12
|
+
function v({ css: e, id: t = g, type: n = "base", ref: r }) {
|
|
13
|
+
if (!e || typeof document > "u" || _[n] || n === "core" && typeof process < "u" && (process == null ? void 0 : process.env)?.REACT_TOOLTIP_DISABLE_CORE_STYLES || n !== "base" && typeof process < "u" && (process == null ? void 0 : process.env)?.REACT_TOOLTIP_DISABLE_BASE_STYLES) return;
|
|
14
|
+
n === "core" && (t = h), r ||= {};
|
|
15
|
+
let { insertAt: i } = r;
|
|
16
|
+
if (document.getElementById(t)) return;
|
|
17
|
+
let a = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
|
18
|
+
o.id = t, o.type = "text/css", i === "top" && a.firstChild ? a.insertBefore(o, a.firstChild) : a.appendChild(o), o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e)), _[n] = !0;
|
|
19
|
+
}
|
|
20
|
+
var y = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: i = 10, strategy: a = "absolute", middlewares: o = [
|
|
21
|
+
c(Number(i)),
|
|
22
|
+
u({ fallbackAxisSideDirection: "start" }),
|
|
23
|
+
d({ padding: 5 })
|
|
24
|
+
], border: s, arrowSize: ee = 8 }) => {
|
|
25
|
+
if (!e || t === null) return {
|
|
26
|
+
tooltipStyles: {},
|
|
27
|
+
tooltipArrowStyles: {},
|
|
28
|
+
place: r
|
|
29
|
+
};
|
|
30
|
+
let p = o;
|
|
31
|
+
return n ? (p.push(f({
|
|
32
|
+
element: n,
|
|
33
|
+
padding: 5
|
|
34
|
+
})), l(e, t, {
|
|
35
|
+
placement: r,
|
|
36
|
+
strategy: a,
|
|
37
|
+
middleware: p
|
|
38
|
+
}).then((({ x: e, y: t, placement: n, middlewareData: r }) => {
|
|
39
|
+
let i = {
|
|
40
|
+
left: `${e}px`,
|
|
41
|
+
top: `${t}px`,
|
|
42
|
+
border: s
|
|
43
|
+
}, { x: a, y: o } = r.arrow ?? {
|
|
44
|
+
x: 0,
|
|
45
|
+
y: 0
|
|
46
|
+
}, c = {
|
|
47
|
+
top: "bottom",
|
|
48
|
+
right: "left",
|
|
49
|
+
bottom: "top",
|
|
50
|
+
left: "right"
|
|
51
|
+
}[n.split("-")[0]] ?? "bottom", l = s && {
|
|
52
|
+
borderBottom: s,
|
|
53
|
+
borderRight: s
|
|
54
|
+
}, u = 0;
|
|
55
|
+
if (s) {
|
|
56
|
+
let e = `${s}`.match(/(\d+)px/);
|
|
57
|
+
u = e?.[1] ? Number(e[1]) : 1;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
tooltipStyles: i,
|
|
61
|
+
tooltipArrowStyles: {
|
|
62
|
+
left: a == null ? "" : `${a}px`,
|
|
63
|
+
top: o == null ? "" : `${o}px`,
|
|
64
|
+
right: "",
|
|
65
|
+
bottom: "",
|
|
66
|
+
...l,
|
|
67
|
+
[c]: `-${ee / 2 + u}px`
|
|
68
|
+
},
|
|
69
|
+
place: n
|
|
70
|
+
};
|
|
71
|
+
}))) : l(e, t, {
|
|
72
|
+
placement: "bottom",
|
|
73
|
+
strategy: a,
|
|
74
|
+
middleware: p
|
|
75
|
+
}).then((({ x: e, y: t, placement: n }) => ({
|
|
76
|
+
tooltipStyles: {
|
|
77
|
+
left: `${e}px`,
|
|
78
|
+
top: `${t}px`
|
|
79
|
+
},
|
|
80
|
+
tooltipArrowStyles: {},
|
|
81
|
+
place: n
|
|
82
|
+
})));
|
|
83
|
+
}, te = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t), b = (e, t, n) => {
|
|
84
|
+
let r = null, i = function(...i) {
|
|
85
|
+
let a = () => {
|
|
86
|
+
r = null, n || e.apply(this, i);
|
|
87
|
+
};
|
|
88
|
+
n && !r && (e.apply(this, i), r = setTimeout(a, t)), n || (r && clearTimeout(r), r = setTimeout(a, t));
|
|
89
|
+
};
|
|
90
|
+
return i.cancel = () => {
|
|
91
|
+
r &&= (clearTimeout(r), null);
|
|
92
|
+
}, i;
|
|
93
|
+
}, x = (e) => e !== null && !Array.isArray(e) && typeof e == "object", ne = (e, t) => {
|
|
94
|
+
if (e === t) return !0;
|
|
95
|
+
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every(((e, n) => ne(e, t[n])));
|
|
96
|
+
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
97
|
+
if (!x(e) || !x(t)) return e === t;
|
|
98
|
+
let n = Object.keys(e), r = Object.keys(t);
|
|
99
|
+
return n.length === r.length && n.every(((n) => ne(e[n], t[n])));
|
|
100
|
+
}, S = (e) => {
|
|
101
|
+
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
102
|
+
let t = getComputedStyle(e);
|
|
103
|
+
return [
|
|
104
|
+
"overflow",
|
|
105
|
+
"overflow-x",
|
|
106
|
+
"overflow-y"
|
|
107
|
+
].some(((e) => {
|
|
108
|
+
let n = t.getPropertyValue(e);
|
|
109
|
+
return n === "auto" || n === "scroll";
|
|
110
|
+
}));
|
|
111
|
+
}, re = (e) => {
|
|
112
|
+
if (!e) return null;
|
|
113
|
+
let t = e.parentElement;
|
|
114
|
+
for (; t;) {
|
|
115
|
+
if (S(t)) return t;
|
|
116
|
+
t = t.parentElement;
|
|
117
|
+
}
|
|
118
|
+
return document.scrollingElement || document.documentElement;
|
|
119
|
+
}, ie = typeof window < "u" ? p.useLayoutEffect : p.useEffect, C = (e) => {
|
|
120
|
+
e.current &&= (clearTimeout(e.current), null);
|
|
121
|
+
}, ae = "DEFAULT_TOOLTIP_ID", oe = {
|
|
122
|
+
anchorRefs: /* @__PURE__ */ new Set(),
|
|
123
|
+
activeAnchor: { current: null },
|
|
124
|
+
attach: () => {},
|
|
125
|
+
detach: () => {},
|
|
126
|
+
setActiveAnchor: () => {}
|
|
127
|
+
}, se = (0, p.createContext)({ getTooltipData: () => oe });
|
|
128
|
+
function ce(e = ae) {
|
|
129
|
+
return (0, p.useContext)(se).getTooltipData(e);
|
|
130
|
+
}
|
|
131
|
+
var w = {
|
|
132
|
+
tooltip: "core-styles-module_tooltip__3vRRp",
|
|
133
|
+
fixed: "core-styles-module_fixed__pcSol",
|
|
134
|
+
arrow: "core-styles-module_arrow__cvMwQ",
|
|
135
|
+
noArrow: "core-styles-module_noArrow__xock6",
|
|
136
|
+
clickable: "core-styles-module_clickable__ZuTTB",
|
|
137
|
+
show: "core-styles-module_show__Nt9eE",
|
|
138
|
+
closing: "core-styles-module_closing__sGnxF"
|
|
139
|
+
}, T = {
|
|
140
|
+
tooltip: "styles-module_tooltip__mnnfp",
|
|
141
|
+
arrow: "styles-module_arrow__K0L3T",
|
|
142
|
+
dark: "styles-module_dark__xNqje",
|
|
143
|
+
light: "styles-module_light__Z6W-X",
|
|
144
|
+
success: "styles-module_success__A2AKt",
|
|
145
|
+
warning: "styles-module_warning__SCK0X",
|
|
146
|
+
error: "styles-module_error__JvumD",
|
|
147
|
+
info: "styles-module_info__BWdHW"
|
|
148
|
+
}, E = ({ forwardRef: e, id: t, className: n, classNameArrow: r, variant: i = "dark", anchorId: a, anchorSelect: o, place: s = "top", offset: c = 10, events: l = ["hover"], openOnClick: u = !1, positionStrategy: d = "absolute", middlewares: f, wrapper: h, delayShow: g = 0, delayHide: _ = 0, float: v = !1, hidden: te = !1, noArrow: x = !1, clickable: S = !1, closeOnEsc: ae = !1, closeOnScroll: oe = !1, closeOnResize: se = !1, openEvents: E, closeEvents: D, globalCloseEvents: O, imperativeModeOnly: le, style: k, position: A, afterShow: j, afterHide: M, disableTooltip: ue, content: de, contentWrapperRef: fe, isOpen: N, defaultIsOpen: pe = !1, setIsOpen: me, previousActiveAnchor: he, activeAnchor: P, setActiveAnchor: F, border: ge, opacity: _e, arrowColor: ve, arrowSize: I = 8, role: ye = "tooltip" }) => {
|
|
149
|
+
let L = (0, p.useRef)(null), R = (0, p.useRef)(null), z = (0, p.useRef)(null), B = (0, p.useRef)(null), be = (0, p.useRef)(null), [V, xe] = (0, p.useState)({
|
|
150
|
+
tooltipStyles: {},
|
|
151
|
+
tooltipArrowStyles: {},
|
|
152
|
+
place: s
|
|
153
|
+
}), [H, Se] = (0, p.useState)(!1), [U, W] = (0, p.useState)(!1), [G, Ce] = (0, p.useState)(null), we = (0, p.useRef)(!1), Te = (0, p.useRef)(null), { anchorRefs: Ee, setActiveAnchor: De } = ce(t), K = (0, p.useRef)(!1), [q, Oe] = (0, p.useState)([]), J = (0, p.useRef)(!1), Y = u || l.includes("click"), ke = Y || E?.click || E?.dblclick || E?.mousedown, Ae = E ? { ...E } : {
|
|
154
|
+
mouseover: !0,
|
|
155
|
+
focus: !0,
|
|
156
|
+
mouseenter: !1,
|
|
157
|
+
click: !1,
|
|
158
|
+
dblclick: !1,
|
|
159
|
+
mousedown: !1
|
|
160
|
+
};
|
|
161
|
+
!E && Y && Object.assign(Ae, {
|
|
162
|
+
mouseenter: !1,
|
|
163
|
+
focus: !1,
|
|
164
|
+
mouseover: !1,
|
|
165
|
+
click: !0
|
|
166
|
+
});
|
|
167
|
+
let X = D ? { ...D } : {
|
|
168
|
+
mouseout: !0,
|
|
169
|
+
blur: !0,
|
|
170
|
+
mouseleave: !1,
|
|
171
|
+
click: !1,
|
|
172
|
+
dblclick: !1,
|
|
173
|
+
mouseup: !1
|
|
174
|
+
};
|
|
175
|
+
!D && Y && Object.assign(X, {
|
|
176
|
+
mouseleave: !1,
|
|
177
|
+
blur: !1,
|
|
178
|
+
mouseout: !1
|
|
179
|
+
});
|
|
180
|
+
let Z = O ? { ...O } : {
|
|
181
|
+
escape: ae || !1,
|
|
182
|
+
scroll: oe || !1,
|
|
183
|
+
resize: se || !1,
|
|
184
|
+
clickOutsideAnchor: ke || !1
|
|
185
|
+
};
|
|
186
|
+
le && (Object.assign(Ae, {
|
|
187
|
+
mouseover: !1,
|
|
188
|
+
focus: !1,
|
|
189
|
+
mouseenter: !1,
|
|
190
|
+
click: !1,
|
|
191
|
+
dblclick: !1,
|
|
192
|
+
mousedown: !1
|
|
193
|
+
}), Object.assign(X, {
|
|
194
|
+
mouseout: !1,
|
|
195
|
+
blur: !1,
|
|
196
|
+
mouseleave: !1,
|
|
197
|
+
click: !1,
|
|
198
|
+
dblclick: !1,
|
|
199
|
+
mouseup: !1
|
|
200
|
+
}), Object.assign(Z, {
|
|
201
|
+
escape: !1,
|
|
202
|
+
scroll: !1,
|
|
203
|
+
resize: !1,
|
|
204
|
+
clickOutsideAnchor: !1
|
|
205
|
+
})), ie((() => (J.current = !0, () => {
|
|
206
|
+
J.current = !1;
|
|
207
|
+
})), []);
|
|
208
|
+
let Q = (e) => {
|
|
209
|
+
J.current && (e && W(!0), setTimeout((() => {
|
|
210
|
+
J.current && (me?.(e), N === void 0 && Se(e));
|
|
211
|
+
}), 10));
|
|
212
|
+
};
|
|
213
|
+
(0, p.useEffect)((() => {
|
|
214
|
+
if (t) {
|
|
215
|
+
if (H) {
|
|
216
|
+
n(he);
|
|
217
|
+
let r = e(P), i = [.../* @__PURE__ */ new Set([...r, t])].filter(Boolean).join(" ");
|
|
218
|
+
P?.setAttribute("aria-describedby", i);
|
|
219
|
+
} else n(P);
|
|
220
|
+
return () => {
|
|
221
|
+
n(P), n(he);
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function e(e) {
|
|
225
|
+
return (e?.getAttribute("aria-describedby"))?.split(" ") || [];
|
|
226
|
+
}
|
|
227
|
+
function n(n) {
|
|
228
|
+
let r = e(n).filter(((e) => e !== t));
|
|
229
|
+
r.length ? n?.setAttribute("aria-describedby", r.join(" ")) : n?.removeAttribute("aria-describedby");
|
|
230
|
+
}
|
|
231
|
+
}), [
|
|
232
|
+
P,
|
|
233
|
+
H,
|
|
234
|
+
t,
|
|
235
|
+
he
|
|
236
|
+
]), (0, p.useEffect)((() => {
|
|
237
|
+
if (N === void 0) return () => null;
|
|
238
|
+
N && W(!0);
|
|
239
|
+
let e = setTimeout((() => {
|
|
240
|
+
Se(N);
|
|
241
|
+
}), 10);
|
|
242
|
+
return () => {
|
|
243
|
+
clearTimeout(e);
|
|
244
|
+
};
|
|
245
|
+
}), [N]), (0, p.useEffect)((() => {
|
|
246
|
+
if (H !== we.current) if (C(be), we.current = H, H) j?.();
|
|
247
|
+
else {
|
|
248
|
+
let e = ((e) => {
|
|
249
|
+
let t = e.match(/^([\d.]+)(ms|s)$/);
|
|
250
|
+
if (!t) return 0;
|
|
251
|
+
let [, n, r] = t;
|
|
252
|
+
return Number(n) * (r === "ms" ? 1 : 1e3);
|
|
253
|
+
})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));
|
|
254
|
+
be.current = setTimeout((() => {
|
|
255
|
+
W(!1), Ce(null), M?.();
|
|
256
|
+
}), e + 25);
|
|
257
|
+
}
|
|
258
|
+
}), [H]);
|
|
259
|
+
let je = (e) => {
|
|
260
|
+
xe(((t) => ne(t, e) ? t : e));
|
|
261
|
+
}, $ = (e = g) => {
|
|
262
|
+
C(z), U ? Q(!0) : z.current = setTimeout((() => {
|
|
263
|
+
Q(!0);
|
|
264
|
+
}), e);
|
|
265
|
+
}, Me = (e = _) => {
|
|
266
|
+
C(B), B.current = setTimeout((() => {
|
|
267
|
+
K.current || Q(!1);
|
|
268
|
+
}), e);
|
|
269
|
+
}, Ne = (e) => {
|
|
270
|
+
if (!e) return;
|
|
271
|
+
let t = e.currentTarget ?? e.target;
|
|
272
|
+
if (!t?.isConnected) return F(null), void De({ current: null });
|
|
273
|
+
g ? $() : Q(!0), F(t), De({ current: t }), C(B);
|
|
274
|
+
}, Pe = () => {
|
|
275
|
+
S ? Me(_ || 100) : _ ? Me() : Q(!1), C(z);
|
|
276
|
+
}, Fe = ({ x: e, y: t }) => {
|
|
277
|
+
y({
|
|
278
|
+
place: G?.place ?? s,
|
|
279
|
+
offset: c,
|
|
280
|
+
elementReference: { getBoundingClientRect: () => ({
|
|
281
|
+
x: e,
|
|
282
|
+
y: t,
|
|
283
|
+
width: 0,
|
|
284
|
+
height: 0,
|
|
285
|
+
top: t,
|
|
286
|
+
left: e,
|
|
287
|
+
right: e,
|
|
288
|
+
bottom: t
|
|
289
|
+
}) },
|
|
290
|
+
tooltipReference: L.current,
|
|
291
|
+
tooltipArrowReference: R.current,
|
|
292
|
+
strategy: d,
|
|
293
|
+
middlewares: f,
|
|
294
|
+
border: ge,
|
|
295
|
+
arrowSize: I
|
|
296
|
+
}).then(((e) => {
|
|
297
|
+
je(e);
|
|
298
|
+
}));
|
|
299
|
+
}, Ie = (e) => {
|
|
300
|
+
if (!e) return;
|
|
301
|
+
let t = e, n = {
|
|
302
|
+
x: t.clientX,
|
|
303
|
+
y: t.clientY
|
|
304
|
+
};
|
|
305
|
+
Fe(n), Te.current = n;
|
|
306
|
+
}, Le = (e) => {
|
|
307
|
+
if (!H) return;
|
|
308
|
+
let t = e.target;
|
|
309
|
+
t.isConnected && (L.current?.contains(t) || [document.querySelector(`[id='${a}']`), ...q].some(((e) => e?.contains(t))) || (Q(!1), C(z)));
|
|
310
|
+
}, Re = b(Ne, 50, !0), ze = b(Pe, 50, !0), Be = (e) => {
|
|
311
|
+
ze.cancel(), Re(e);
|
|
312
|
+
}, Ve = () => {
|
|
313
|
+
Re.cancel(), ze();
|
|
314
|
+
}, He = (0, p.useCallback)((() => {
|
|
315
|
+
let e = G?.position ?? A;
|
|
316
|
+
e ? Fe(e) : v ? Te.current && Fe(Te.current) : P != null && P.isConnected && y({
|
|
317
|
+
place: G?.place ?? s,
|
|
318
|
+
offset: c,
|
|
319
|
+
elementReference: P,
|
|
320
|
+
tooltipReference: L.current,
|
|
321
|
+
tooltipArrowReference: R.current,
|
|
322
|
+
strategy: d,
|
|
323
|
+
middlewares: f,
|
|
324
|
+
border: ge,
|
|
325
|
+
arrowSize: I
|
|
326
|
+
}).then(((e) => {
|
|
327
|
+
J.current && je(e);
|
|
328
|
+
}));
|
|
329
|
+
}), [
|
|
330
|
+
H,
|
|
331
|
+
P,
|
|
332
|
+
de,
|
|
333
|
+
k,
|
|
334
|
+
s,
|
|
335
|
+
G?.place,
|
|
336
|
+
c,
|
|
337
|
+
d,
|
|
338
|
+
A,
|
|
339
|
+
G?.position,
|
|
340
|
+
v,
|
|
341
|
+
I
|
|
342
|
+
]);
|
|
343
|
+
(0, p.useEffect)((() => {
|
|
344
|
+
var e, t;
|
|
345
|
+
let n = new Set(Ee);
|
|
346
|
+
q.forEach(((e) => {
|
|
347
|
+
ue != null && ue(e) || n.add({ current: e });
|
|
348
|
+
}));
|
|
349
|
+
let r = document.querySelector(`[id='${a}']`);
|
|
350
|
+
r && !ue?.(r) && n.add({ current: r });
|
|
351
|
+
let i = () => {
|
|
352
|
+
Q(!1);
|
|
353
|
+
}, o = re(P), s = re(L.current);
|
|
354
|
+
Z.scroll && (window.addEventListener("scroll", i), o?.addEventListener("scroll", i), s?.addEventListener("scroll", i));
|
|
355
|
+
let c = null;
|
|
356
|
+
Z.resize ? window.addEventListener("resize", i) : P && L.current && (c = ee(P, L.current, He, {
|
|
357
|
+
ancestorResize: !0,
|
|
358
|
+
elementResize: !0,
|
|
359
|
+
layoutShift: !0
|
|
360
|
+
}));
|
|
361
|
+
let l = (e) => {
|
|
362
|
+
e.key === "Escape" && Q(!1);
|
|
363
|
+
};
|
|
364
|
+
Z.escape && window.addEventListener("keydown", l), Z.clickOutsideAnchor && window.addEventListener("click", Le);
|
|
365
|
+
let u = [], d = (e) => !!(e?.target && P?.contains(e.target)), f = (e) => {
|
|
366
|
+
H && d(e) || Ne(e);
|
|
367
|
+
}, p = (e) => {
|
|
368
|
+
H && d(e) && Pe();
|
|
369
|
+
}, m = [
|
|
370
|
+
"mouseover",
|
|
371
|
+
"mouseout",
|
|
372
|
+
"mouseenter",
|
|
373
|
+
"mouseleave",
|
|
374
|
+
"focus",
|
|
375
|
+
"blur"
|
|
376
|
+
], h = [
|
|
377
|
+
"click",
|
|
378
|
+
"dblclick",
|
|
379
|
+
"mousedown",
|
|
380
|
+
"mouseup"
|
|
381
|
+
];
|
|
382
|
+
Object.entries(Ae).forEach((([e, t]) => {
|
|
383
|
+
t && (m.includes(e) ? u.push({
|
|
384
|
+
event: e,
|
|
385
|
+
listener: Be
|
|
386
|
+
}) : h.includes(e) && u.push({
|
|
387
|
+
event: e,
|
|
388
|
+
listener: f
|
|
389
|
+
}));
|
|
390
|
+
})), Object.entries(X).forEach((([e, t]) => {
|
|
391
|
+
t && (m.includes(e) ? u.push({
|
|
392
|
+
event: e,
|
|
393
|
+
listener: Ve
|
|
394
|
+
}) : h.includes(e) && u.push({
|
|
395
|
+
event: e,
|
|
396
|
+
listener: p
|
|
397
|
+
}));
|
|
398
|
+
})), v && u.push({
|
|
399
|
+
event: "pointermove",
|
|
400
|
+
listener: Ie
|
|
401
|
+
});
|
|
402
|
+
let g = () => {
|
|
403
|
+
K.current = !0;
|
|
404
|
+
}, _ = () => {
|
|
405
|
+
K.current = !1, Pe();
|
|
406
|
+
}, y = S && (X.mouseout || X.mouseleave);
|
|
407
|
+
return y && ((e = L.current) == null || e.addEventListener("mouseover", g), (t = L.current) == null || t.addEventListener("mouseout", _)), u.forEach((({ event: e, listener: t }) => {
|
|
408
|
+
n.forEach(((n) => {
|
|
409
|
+
var r;
|
|
410
|
+
(r = n.current) == null || r.addEventListener(e, t);
|
|
411
|
+
}));
|
|
412
|
+
})), () => {
|
|
413
|
+
var e, t;
|
|
414
|
+
Z.scroll && (window.removeEventListener("scroll", i), o?.removeEventListener("scroll", i), s?.removeEventListener("scroll", i)), Z.resize ? window.removeEventListener("resize", i) : c?.(), Z.clickOutsideAnchor && window.removeEventListener("click", Le), Z.escape && window.removeEventListener("keydown", l), y && ((e = L.current) == null || e.removeEventListener("mouseover", g), (t = L.current) == null || t.removeEventListener("mouseout", _)), u.forEach((({ event: e, listener: t }) => {
|
|
415
|
+
n.forEach(((n) => {
|
|
416
|
+
var r;
|
|
417
|
+
(r = n.current) == null || r.removeEventListener(e, t);
|
|
418
|
+
}));
|
|
419
|
+
}));
|
|
420
|
+
};
|
|
421
|
+
}), [
|
|
422
|
+
P,
|
|
423
|
+
He,
|
|
424
|
+
U,
|
|
425
|
+
Ee,
|
|
426
|
+
q,
|
|
427
|
+
E,
|
|
428
|
+
D,
|
|
429
|
+
O,
|
|
430
|
+
Y,
|
|
431
|
+
g,
|
|
432
|
+
_
|
|
433
|
+
]), (0, p.useEffect)((() => {
|
|
434
|
+
let e = G?.anchorSelect ?? o ?? "";
|
|
435
|
+
!e && t && (e = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`);
|
|
436
|
+
let n = new MutationObserver(((n) => {
|
|
437
|
+
let r = [], i = [];
|
|
438
|
+
n.forEach(((n) => {
|
|
439
|
+
if (n.type === "attributes" && n.attributeName === "data-tooltip-id" && (n.target.getAttribute("data-tooltip-id") === t ? r.push(n.target) : n.oldValue === t && i.push(n.target)), n.type === "childList") {
|
|
440
|
+
if (P) {
|
|
441
|
+
let t = [...n.removedNodes].filter(((e) => e.nodeType === 1));
|
|
442
|
+
if (e) try {
|
|
443
|
+
i.push(...t.filter(((t) => t.matches(e)))), i.push(...t.flatMap(((t) => [...t.querySelectorAll(e)])));
|
|
444
|
+
} catch {}
|
|
445
|
+
t.some(((e) => !!(e?.contains)?.call(e, P) && (W(!1), Q(!1), F(null), C(z), C(B), !0)));
|
|
446
|
+
}
|
|
447
|
+
if (e) try {
|
|
448
|
+
let t = [...n.addedNodes].filter(((e) => e.nodeType === 1));
|
|
449
|
+
r.push(...t.filter(((t) => t.matches(e)))), r.push(...t.flatMap(((t) => [...t.querySelectorAll(e)])));
|
|
450
|
+
} catch {}
|
|
451
|
+
}
|
|
452
|
+
})), (r.length || i.length) && Oe(((e) => [...e.filter(((e) => !i.includes(e))), ...r]));
|
|
453
|
+
}));
|
|
454
|
+
return n.observe(document.body, {
|
|
455
|
+
childList: !0,
|
|
456
|
+
subtree: !0,
|
|
457
|
+
attributes: !0,
|
|
458
|
+
attributeFilter: ["data-tooltip-id"],
|
|
459
|
+
attributeOldValue: !0
|
|
460
|
+
}), () => {
|
|
461
|
+
n.disconnect();
|
|
462
|
+
};
|
|
463
|
+
}), [
|
|
464
|
+
t,
|
|
465
|
+
o,
|
|
466
|
+
G?.anchorSelect,
|
|
467
|
+
P
|
|
468
|
+
]), (0, p.useEffect)((() => {
|
|
469
|
+
He();
|
|
470
|
+
}), [He]), (0, p.useEffect)((() => {
|
|
471
|
+
if (!fe?.current) return () => null;
|
|
472
|
+
let e = new ResizeObserver((() => {
|
|
473
|
+
setTimeout((() => He()));
|
|
474
|
+
}));
|
|
475
|
+
return e.observe(fe.current), () => {
|
|
476
|
+
e.disconnect();
|
|
477
|
+
};
|
|
478
|
+
}), [de, fe?.current]), (0, p.useEffect)((() => {
|
|
479
|
+
let e = document.querySelector(`[id='${a}']`), t = [...q, e];
|
|
480
|
+
P && t.includes(P) || F(q[0] ?? e);
|
|
481
|
+
}), [
|
|
482
|
+
a,
|
|
483
|
+
q,
|
|
484
|
+
P
|
|
485
|
+
]), (0, p.useEffect)((() => (pe && Q(!0), () => {
|
|
486
|
+
C(z), C(B);
|
|
487
|
+
})), []), (0, p.useEffect)((() => {
|
|
488
|
+
let e = G?.anchorSelect ?? o;
|
|
489
|
+
if (!e && t && (e = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), e) try {
|
|
490
|
+
let t = Array.from(document.querySelectorAll(e));
|
|
491
|
+
Oe(t);
|
|
492
|
+
} catch {
|
|
493
|
+
Oe([]);
|
|
494
|
+
}
|
|
495
|
+
}), [
|
|
496
|
+
t,
|
|
497
|
+
o,
|
|
498
|
+
G?.anchorSelect
|
|
499
|
+
]), (0, p.useEffect)((() => {
|
|
500
|
+
z.current && (C(z), $(g));
|
|
501
|
+
}), [g]);
|
|
502
|
+
let Ue = G?.content ?? de, We = H && Object.keys(V.tooltipStyles).length > 0;
|
|
503
|
+
return (0, p.useImperativeHandle)(e, (() => ({
|
|
504
|
+
open: (e) => {
|
|
505
|
+
if (e?.anchorSelect) try {
|
|
506
|
+
document.querySelector(e.anchorSelect);
|
|
507
|
+
} catch {
|
|
508
|
+
console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
Ce(e ?? null), e?.delay ? $(e.delay) : Q(!0);
|
|
512
|
+
},
|
|
513
|
+
close: (e) => {
|
|
514
|
+
e?.delay ? Me(e.delay) : Q(!1);
|
|
515
|
+
},
|
|
516
|
+
activeAnchor: P,
|
|
517
|
+
place: V.place,
|
|
518
|
+
isOpen: !!(U && !te && Ue && We)
|
|
519
|
+
}))), U && !te && Ue ? p.createElement(h, {
|
|
520
|
+
id: t,
|
|
521
|
+
role: ye,
|
|
522
|
+
className: (0, m.default)("react-tooltip", w.tooltip, T.tooltip, T[i], n, `react-tooltip__place-${V.place}`, w[We ? "show" : "closing"], We ? "react-tooltip__show" : "react-tooltip__closing", d === "fixed" && w.fixed, S && w.clickable),
|
|
523
|
+
onTransitionEnd: (e) => {
|
|
524
|
+
C(be), H || e.propertyName !== "opacity" || (W(!1), Ce(null), M?.());
|
|
525
|
+
},
|
|
526
|
+
style: {
|
|
527
|
+
...k,
|
|
528
|
+
...V.tooltipStyles,
|
|
529
|
+
opacity: _e !== void 0 && We ? _e : void 0
|
|
530
|
+
},
|
|
531
|
+
ref: L
|
|
532
|
+
}, Ue, p.createElement(h, {
|
|
533
|
+
className: (0, m.default)("react-tooltip-arrow", w.arrow, T.arrow, r, x && w.noArrow),
|
|
534
|
+
style: {
|
|
535
|
+
...V.tooltipArrowStyles,
|
|
536
|
+
background: ve ? `linear-gradient(to right bottom, transparent 50%, ${ve} 50%)` : void 0,
|
|
537
|
+
"--rt-arrow-size": `${I}px`
|
|
538
|
+
},
|
|
539
|
+
ref: R
|
|
540
|
+
})) : null;
|
|
541
|
+
}, D = ({ content: e }) => p.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), O = p.forwardRef((({ id: e, anchorId: t, anchorSelect: n, content: r, html: i, render: a, className: o, classNameArrow: s, variant: c = "dark", place: l = "top", offset: u = 10, wrapper: d = "div", children: ee = null, events: f = ["hover"], openOnClick: h = !1, positionStrategy: g = "absolute", middlewares: _, delayShow: v = 0, delayHide: y = 0, float: b = !1, hidden: x = !1, noArrow: ne = !1, clickable: S = !1, closeOnEsc: re = !1, closeOnScroll: ie = !1, closeOnResize: C = !1, openEvents: ae, closeEvents: oe, globalCloseEvents: se, imperativeModeOnly: w = !1, style: T, position: O, isOpen: le, defaultIsOpen: k = !1, disableStyleInjection: A = !1, border: j, opacity: M, arrowColor: ue, arrowSize: de, setIsOpen: fe, afterShow: N, afterHide: pe, disableTooltip: me, role: he = "tooltip" }, P) => {
|
|
542
|
+
let [F, ge] = (0, p.useState)(r), [_e, ve] = (0, p.useState)(i), [I, ye] = (0, p.useState)(l), [L, R] = (0, p.useState)(c), [z, B] = (0, p.useState)(u), [be, V] = (0, p.useState)(v), [xe, H] = (0, p.useState)(y), [Se, U] = (0, p.useState)(b), [W, G] = (0, p.useState)(x), [Ce, we] = (0, p.useState)(d), [Te, Ee] = (0, p.useState)(f), [De, K] = (0, p.useState)(g), [q, Oe] = (0, p.useState)(null), [J, Y] = (0, p.useState)(null), ke = (0, p.useRef)(null), Ae = (0, p.useRef)(A), { anchorRefs: X, activeAnchor: Z } = ce(e), Q = (e) => e?.getAttributeNames().reduce(((t, n) => (n.startsWith("data-tooltip-") && (t[n.replace(/^data-tooltip-/, "")] = e?.getAttribute(n) ?? null), t)), {}), je = (e) => {
|
|
543
|
+
let t = {
|
|
544
|
+
place: (e) => {
|
|
545
|
+
ye(e ?? l);
|
|
546
|
+
},
|
|
547
|
+
content: (e) => {
|
|
548
|
+
ge(e ?? r);
|
|
549
|
+
},
|
|
550
|
+
html: (e) => {
|
|
551
|
+
ve(e ?? i);
|
|
552
|
+
},
|
|
553
|
+
variant: (e) => {
|
|
554
|
+
R(e ?? c);
|
|
555
|
+
},
|
|
556
|
+
offset: (e) => {
|
|
557
|
+
B(e === null ? u : Number(e));
|
|
558
|
+
},
|
|
559
|
+
wrapper: (e) => {
|
|
560
|
+
we(e ?? d);
|
|
561
|
+
},
|
|
562
|
+
events: (e) => {
|
|
563
|
+
let t = e?.split(" ");
|
|
564
|
+
Ee(t ?? f);
|
|
565
|
+
},
|
|
566
|
+
"position-strategy": (e) => {
|
|
567
|
+
K(e ?? g);
|
|
568
|
+
},
|
|
569
|
+
"delay-show": (e) => {
|
|
570
|
+
V(e === null ? v : Number(e));
|
|
571
|
+
},
|
|
572
|
+
"delay-hide": (e) => {
|
|
573
|
+
H(e === null ? y : Number(e));
|
|
574
|
+
},
|
|
575
|
+
float: (e) => {
|
|
576
|
+
U(e === null ? b : e === "true");
|
|
577
|
+
},
|
|
578
|
+
hidden: (e) => {
|
|
579
|
+
G(e === null ? x : e === "true");
|
|
580
|
+
},
|
|
581
|
+
"class-name": (e) => {
|
|
582
|
+
Oe(e);
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
Object.values(t).forEach(((e) => e(null))), Object.entries(e).forEach((([e, n]) => {
|
|
586
|
+
var r;
|
|
587
|
+
(r = t[e]) == null || r.call(t, n);
|
|
588
|
+
}));
|
|
589
|
+
};
|
|
590
|
+
(0, p.useEffect)((() => {
|
|
591
|
+
ge(r);
|
|
592
|
+
}), [r]), (0, p.useEffect)((() => {
|
|
593
|
+
ve(i);
|
|
594
|
+
}), [i]), (0, p.useEffect)((() => {
|
|
595
|
+
ye(l);
|
|
596
|
+
}), [l]), (0, p.useEffect)((() => {
|
|
597
|
+
R(c);
|
|
598
|
+
}), [c]), (0, p.useEffect)((() => {
|
|
599
|
+
B(u);
|
|
600
|
+
}), [u]), (0, p.useEffect)((() => {
|
|
601
|
+
V(v);
|
|
602
|
+
}), [v]), (0, p.useEffect)((() => {
|
|
603
|
+
H(y);
|
|
604
|
+
}), [y]), (0, p.useEffect)((() => {
|
|
605
|
+
U(b);
|
|
606
|
+
}), [b]), (0, p.useEffect)((() => {
|
|
607
|
+
G(x);
|
|
608
|
+
}), [x]), (0, p.useEffect)((() => {
|
|
609
|
+
K(g);
|
|
610
|
+
}), [g]), (0, p.useEffect)((() => {
|
|
611
|
+
Ae.current !== A && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
612
|
+
}), [A]), (0, p.useEffect)((() => {
|
|
613
|
+
typeof window < "u" && window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles", { detail: {
|
|
614
|
+
disableCore: A === "core",
|
|
615
|
+
disableBase: A
|
|
616
|
+
} }));
|
|
617
|
+
}), []), (0, p.useEffect)((() => {
|
|
618
|
+
let r = new Set(X), i = n;
|
|
619
|
+
if (!i && e && (i = `[data-tooltip-id='${e.replace(/'/g, "\\'")}']`), i) try {
|
|
620
|
+
document.querySelectorAll(i).forEach(((e) => {
|
|
621
|
+
r.add({ current: e });
|
|
622
|
+
}));
|
|
623
|
+
} catch {
|
|
624
|
+
console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`);
|
|
625
|
+
}
|
|
626
|
+
let a = document.querySelector(`[id='${t}']`);
|
|
627
|
+
if (a && r.add({ current: a }), !r.size) return () => null;
|
|
628
|
+
let o = J ?? a ?? Z.current, s = new MutationObserver(((e) => {
|
|
629
|
+
e.forEach(((e) => {
|
|
630
|
+
if (!o || e.type !== "attributes" || !e.attributeName?.startsWith("data-tooltip-")) return;
|
|
631
|
+
let t = Q(o);
|
|
632
|
+
je(t);
|
|
633
|
+
}));
|
|
634
|
+
})), c = {
|
|
635
|
+
attributes: !0,
|
|
636
|
+
childList: !1,
|
|
637
|
+
subtree: !1
|
|
638
|
+
};
|
|
639
|
+
if (o) {
|
|
640
|
+
let e = Q(o);
|
|
641
|
+
je(e), s.observe(o, c);
|
|
642
|
+
}
|
|
643
|
+
return () => {
|
|
644
|
+
s.disconnect();
|
|
645
|
+
};
|
|
646
|
+
}), [
|
|
647
|
+
X,
|
|
648
|
+
Z,
|
|
649
|
+
J,
|
|
650
|
+
t,
|
|
651
|
+
n
|
|
652
|
+
]), (0, p.useEffect)((() => {
|
|
653
|
+
T != null && T.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), j && !te("border", `${j}`) && console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`), T != null && T.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), M && !te("opacity", `${M}`) && console.warn(`[react-tooltip] "${M}" is not a valid \`opacity\`.`);
|
|
654
|
+
}), []);
|
|
655
|
+
let $ = ee, Me = (0, p.useRef)(null);
|
|
656
|
+
if (a) {
|
|
657
|
+
let e = a({
|
|
658
|
+
content: J?.getAttribute("data-tooltip-content") || F || null,
|
|
659
|
+
activeAnchor: J
|
|
660
|
+
});
|
|
661
|
+
$ = e ? p.createElement("div", {
|
|
662
|
+
ref: Me,
|
|
663
|
+
className: "react-tooltip-content-wrapper"
|
|
664
|
+
}, e) : null;
|
|
665
|
+
} else F && ($ = F);
|
|
666
|
+
_e && ($ = p.createElement(D, { content: _e }));
|
|
667
|
+
let Ne = {
|
|
668
|
+
forwardRef: P,
|
|
669
|
+
id: e,
|
|
670
|
+
anchorId: t,
|
|
671
|
+
anchorSelect: n,
|
|
672
|
+
className: (0, m.default)(o, q),
|
|
673
|
+
classNameArrow: s,
|
|
674
|
+
content: $,
|
|
675
|
+
contentWrapperRef: Me,
|
|
676
|
+
place: I,
|
|
677
|
+
variant: L,
|
|
678
|
+
offset: z,
|
|
679
|
+
wrapper: Ce,
|
|
680
|
+
events: Te,
|
|
681
|
+
openOnClick: h,
|
|
682
|
+
positionStrategy: De,
|
|
683
|
+
middlewares: _,
|
|
684
|
+
delayShow: be,
|
|
685
|
+
delayHide: xe,
|
|
686
|
+
float: Se,
|
|
687
|
+
hidden: W,
|
|
688
|
+
noArrow: ne,
|
|
689
|
+
clickable: S,
|
|
690
|
+
closeOnEsc: re,
|
|
691
|
+
closeOnScroll: ie,
|
|
692
|
+
closeOnResize: C,
|
|
693
|
+
openEvents: ae,
|
|
694
|
+
closeEvents: oe,
|
|
695
|
+
globalCloseEvents: se,
|
|
696
|
+
imperativeModeOnly: w,
|
|
697
|
+
style: T,
|
|
698
|
+
position: O,
|
|
699
|
+
isOpen: le,
|
|
700
|
+
defaultIsOpen: k,
|
|
701
|
+
border: j,
|
|
702
|
+
opacity: M,
|
|
703
|
+
arrowColor: ue,
|
|
704
|
+
arrowSize: de,
|
|
705
|
+
setIsOpen: fe,
|
|
706
|
+
afterShow: N,
|
|
707
|
+
afterHide: pe,
|
|
708
|
+
disableTooltip: me,
|
|
709
|
+
activeAnchor: J,
|
|
710
|
+
previousActiveAnchor: ke.current,
|
|
711
|
+
setActiveAnchor: (e) => {
|
|
712
|
+
Y(((t) => (e != null && e.isSameNode(t) || (ke.current = t), e)));
|
|
713
|
+
},
|
|
714
|
+
role: he
|
|
715
|
+
};
|
|
716
|
+
return p.createElement(E, { ...Ne });
|
|
717
|
+
}));
|
|
718
|
+
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((e) => {
|
|
719
|
+
e.detail.disableCore || v({
|
|
720
|
+
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;--rt-arrow-size:8px}.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;z-index:-1}.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}",
|
|
721
|
+
type: "core"
|
|
722
|
+
}), e.detail.disableBase || v({
|
|
723
|
+
css: "\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[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)}",
|
|
724
|
+
type: "base"
|
|
725
|
+
});
|
|
726
|
+
}));
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region src/components/shared/Tooltip.tsx
|
|
729
|
+
var le = "\n:root {\n --rt-color-white: #fff;\n --rt-color-dark: var(--color-gray-800) !important;\n --rt-color-success: var(--color-success-darker) !important;\n --rt-color-error: var(--color-error-darker) !important;\n --rt-color-warning: var(--color-warning-darker) !important;\n --rt-color-info: var(--color-info-darker) !important;\n --rt-opacity: 1;\n --rt-transition-show-delay: 0.15s;\n --rt-transition-closing-delay: 0.15s;\n}\n\n:root.dark {\n --rt-color-white: var(--color-dark-50) !important;\n --rt-color-dark: var(--color-dark-500) !important;\n}", k = r();
|
|
730
|
+
i(k, le), a(k);
|
|
731
|
+
//#endregion
|
|
732
|
+
//#region src/components/template/Tooltip.tsx
|
|
733
|
+
var A = n();
|
|
734
|
+
function j() {
|
|
735
|
+
return /* @__PURE__ */ (0, A.jsx)(O, {
|
|
736
|
+
anchorSelect: "[data-tooltip]",
|
|
737
|
+
opacity: 1,
|
|
738
|
+
style: {
|
|
739
|
+
padding: "0.3rem 0.75rem",
|
|
740
|
+
borderRadius: "0.5rem",
|
|
741
|
+
zIndex: 1e3
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
//#endregion
|
|
746
|
+
export { j as default };
|