@caseparts-org/caseblocks 0.0.22 → 0.0.24
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/assets/Tooltip.css +1 -1
- package/dist/atoms/Link/Link.d.ts +10 -2
- package/dist/atoms/Link/Link.js +50 -29
- package/dist/main.d.ts +0 -2
- package/dist/main.js +22 -24
- package/dist/molecules/Cart/Cart.js +10 -11
- package/dist/molecules/CategoryNav/CategoryNav.js +11 -13
- package/dist/molecules/Tooltip/Tooltip.d.ts +11 -8
- package/dist/molecules/Tooltip/Tooltip.js +277 -487
- package/dist/molecules/Tooltip/Tooltip.stories.d.ts +2 -13
- package/dist/molecules/Tooltip/Tooltip.stories.js +28 -33
- package/package.json +12 -4
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import '../../assets/Tooltip.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as Z, jsx as ee } from "react/jsx-runtime";
|
|
2
|
+
import m, { useEffect as j, useState as te } from "react";
|
|
3
|
+
import { c as K } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import '../../assets/Tooltip.css';const re = "_wrapper_ogovb_12", ne = "_tooltip_ogovb_17", ie = "_open_ogovb_30", I = {
|
|
5
|
+
wrapper: re,
|
|
6
|
+
tooltip: ne,
|
|
7
|
+
open: ie
|
|
8
|
+
};
|
|
9
|
+
var U = { exports: {} }, g = {};
|
|
8
10
|
/**
|
|
9
11
|
* @license React
|
|
10
12
|
* react-dom.production.js
|
|
@@ -14,108 +16,108 @@ var K = { exports: {} }, O = {};
|
|
|
14
16
|
* This source code is licensed under the MIT license found in the
|
|
15
17
|
* LICENSE file in the root directory of this source tree.
|
|
16
18
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var s =
|
|
22
|
-
function
|
|
19
|
+
var Y;
|
|
20
|
+
function oe() {
|
|
21
|
+
if (Y) return g;
|
|
22
|
+
Y = 1;
|
|
23
|
+
var s = m;
|
|
24
|
+
function O(n) {
|
|
23
25
|
var t = "https://react.dev/errors/" + n;
|
|
24
26
|
if (1 < arguments.length) {
|
|
25
27
|
t += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
26
|
-
for (var
|
|
27
|
-
t += "&args[]=" + encodeURIComponent(arguments[
|
|
28
|
+
for (var o = 2; o < arguments.length; o++)
|
|
29
|
+
t += "&args[]=" + encodeURIComponent(arguments[o]);
|
|
28
30
|
}
|
|
29
31
|
return "Minified React error #" + n + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function a() {
|
|
32
34
|
}
|
|
33
|
-
var
|
|
35
|
+
var c = {
|
|
34
36
|
d: {
|
|
35
|
-
f:
|
|
37
|
+
f: a,
|
|
36
38
|
r: function() {
|
|
37
|
-
throw Error(
|
|
39
|
+
throw Error(O(522));
|
|
38
40
|
},
|
|
39
|
-
D:
|
|
40
|
-
C:
|
|
41
|
-
L:
|
|
42
|
-
m:
|
|
43
|
-
X:
|
|
44
|
-
S:
|
|
45
|
-
M:
|
|
41
|
+
D: a,
|
|
42
|
+
C: a,
|
|
43
|
+
L: a,
|
|
44
|
+
m: a,
|
|
45
|
+
X: a,
|
|
46
|
+
S: a,
|
|
47
|
+
M: a
|
|
46
48
|
},
|
|
47
49
|
p: 0,
|
|
48
50
|
findDOMNode: null
|
|
49
51
|
}, f = Symbol.for("react.portal");
|
|
50
|
-
function
|
|
52
|
+
function h(n, t, o) {
|
|
51
53
|
var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
52
54
|
return {
|
|
53
55
|
$$typeof: f,
|
|
54
56
|
key: r == null ? null : "" + r,
|
|
55
57
|
children: n,
|
|
56
58
|
containerInfo: t,
|
|
57
|
-
implementation:
|
|
59
|
+
implementation: o
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
+
var v = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
63
|
+
function S(n, t) {
|
|
62
64
|
if (n === "font") return "";
|
|
63
65
|
if (typeof t == "string")
|
|
64
66
|
return t === "use-credentials" ? t : "";
|
|
65
67
|
}
|
|
66
|
-
return
|
|
67
|
-
var
|
|
68
|
+
return g.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = c, g.createPortal = function(n, t) {
|
|
69
|
+
var o = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
68
70
|
if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11)
|
|
69
|
-
throw Error(
|
|
70
|
-
return
|
|
71
|
-
},
|
|
72
|
-
var t =
|
|
71
|
+
throw Error(O(299));
|
|
72
|
+
return h(n, t, null, o);
|
|
73
|
+
}, g.flushSync = function(n) {
|
|
74
|
+
var t = v.T, o = c.p;
|
|
73
75
|
try {
|
|
74
|
-
if (
|
|
76
|
+
if (v.T = null, c.p = 2, n) return n();
|
|
75
77
|
} finally {
|
|
76
|
-
|
|
78
|
+
v.T = t, c.p = o, c.d.f();
|
|
77
79
|
}
|
|
78
|
-
},
|
|
79
|
-
typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null,
|
|
80
|
-
},
|
|
81
|
-
typeof n == "string" &&
|
|
82
|
-
},
|
|
80
|
+
}, g.preconnect = function(n, t) {
|
|
81
|
+
typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, c.d.C(n, t));
|
|
82
|
+
}, g.prefetchDNS = function(n) {
|
|
83
|
+
typeof n == "string" && c.d.D(n);
|
|
84
|
+
}, g.preinit = function(n, t) {
|
|
83
85
|
if (typeof n == "string" && t && typeof t.as == "string") {
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
+
var o = t.as, r = S(o, t.crossOrigin), e = typeof t.integrity == "string" ? t.integrity : void 0, i = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
|
|
87
|
+
o === "style" ? c.d.S(
|
|
86
88
|
n,
|
|
87
89
|
typeof t.precedence == "string" ? t.precedence : void 0,
|
|
88
90
|
{
|
|
89
91
|
crossOrigin: r,
|
|
90
92
|
integrity: e,
|
|
91
|
-
fetchPriority:
|
|
93
|
+
fetchPriority: i
|
|
92
94
|
}
|
|
93
|
-
) :
|
|
95
|
+
) : o === "script" && c.d.X(n, {
|
|
94
96
|
crossOrigin: r,
|
|
95
97
|
integrity: e,
|
|
96
|
-
fetchPriority:
|
|
98
|
+
fetchPriority: i,
|
|
97
99
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
98
100
|
});
|
|
99
101
|
}
|
|
100
|
-
},
|
|
102
|
+
}, g.preinitModule = function(n, t) {
|
|
101
103
|
if (typeof n == "string")
|
|
102
104
|
if (typeof t == "object" && t !== null) {
|
|
103
105
|
if (t.as == null || t.as === "script") {
|
|
104
|
-
var
|
|
106
|
+
var o = S(
|
|
105
107
|
t.as,
|
|
106
108
|
t.crossOrigin
|
|
107
109
|
);
|
|
108
|
-
|
|
109
|
-
crossOrigin:
|
|
110
|
+
c.d.M(n, {
|
|
111
|
+
crossOrigin: o,
|
|
110
112
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
111
113
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
112
114
|
});
|
|
113
115
|
}
|
|
114
|
-
} else t == null &&
|
|
115
|
-
},
|
|
116
|
+
} else t == null && c.d.M(n);
|
|
117
|
+
}, g.preload = function(n, t) {
|
|
116
118
|
if (typeof n == "string" && typeof t == "object" && t !== null && typeof t.as == "string") {
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
+
var o = t.as, r = S(o, t.crossOrigin);
|
|
120
|
+
c.d.L(n, o, {
|
|
119
121
|
crossOrigin: r,
|
|
120
122
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
121
123
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0,
|
|
@@ -127,27 +129,27 @@ function Ke() {
|
|
|
127
129
|
media: typeof t.media == "string" ? t.media : void 0
|
|
128
130
|
});
|
|
129
131
|
}
|
|
130
|
-
},
|
|
132
|
+
}, g.preloadModule = function(n, t) {
|
|
131
133
|
if (typeof n == "string")
|
|
132
134
|
if (t) {
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
+
var o = S(t.as, t.crossOrigin);
|
|
136
|
+
c.d.m(n, {
|
|
135
137
|
as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
|
|
136
|
-
crossOrigin:
|
|
138
|
+
crossOrigin: o,
|
|
137
139
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0
|
|
138
140
|
});
|
|
139
|
-
} else
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
},
|
|
141
|
+
} else c.d.m(n);
|
|
142
|
+
}, g.requestFormReset = function(n) {
|
|
143
|
+
c.d.r(n);
|
|
144
|
+
}, g.unstable_batchedUpdates = function(n, t) {
|
|
143
145
|
return n(t);
|
|
144
|
-
},
|
|
145
|
-
return
|
|
146
|
-
},
|
|
147
|
-
return
|
|
148
|
-
},
|
|
146
|
+
}, g.useFormState = function(n, t, o) {
|
|
147
|
+
return v.H.useFormState(n, t, o);
|
|
148
|
+
}, g.useFormStatus = function() {
|
|
149
|
+
return v.H.useHostTransitionStatus();
|
|
150
|
+
}, g.version = "19.1.1", g;
|
|
149
151
|
}
|
|
150
|
-
var
|
|
152
|
+
var y = {};
|
|
151
153
|
/**
|
|
152
154
|
* @license React
|
|
153
155
|
* react-dom.development.js
|
|
@@ -157,34 +159,34 @@ var E = {};
|
|
|
157
159
|
* This source code is licensed under the MIT license found in the
|
|
158
160
|
* LICENSE file in the root directory of this source tree.
|
|
159
161
|
*/
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
return
|
|
162
|
+
var z;
|
|
163
|
+
function ae() {
|
|
164
|
+
return z || (z = 1, process.env.NODE_ENV !== "production" && function() {
|
|
163
165
|
function s() {
|
|
164
166
|
}
|
|
165
|
-
function
|
|
167
|
+
function O(r) {
|
|
166
168
|
return "" + r;
|
|
167
169
|
}
|
|
168
|
-
function
|
|
169
|
-
var
|
|
170
|
+
function a(r, e, i) {
|
|
171
|
+
var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
170
172
|
try {
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
+
O(d);
|
|
174
|
+
var E = !1;
|
|
173
175
|
} catch {
|
|
174
|
-
|
|
176
|
+
E = !0;
|
|
175
177
|
}
|
|
176
|
-
return
|
|
178
|
+
return E && (console.error(
|
|
177
179
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
178
|
-
typeof Symbol == "function" && Symbol.toStringTag &&
|
|
179
|
-
),
|
|
180
|
+
typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object"
|
|
181
|
+
), O(d)), {
|
|
180
182
|
$$typeof: t,
|
|
181
|
-
key:
|
|
183
|
+
key: d == null ? null : "" + d,
|
|
182
184
|
children: r,
|
|
183
185
|
containerInfo: e,
|
|
184
|
-
implementation:
|
|
186
|
+
implementation: i
|
|
185
187
|
};
|
|
186
188
|
}
|
|
187
|
-
function
|
|
189
|
+
function c(r, e) {
|
|
188
190
|
if (r === "font") return "";
|
|
189
191
|
if (typeof e == "string")
|
|
190
192
|
return e === "use-credentials" ? e : "";
|
|
@@ -192,11 +194,11 @@ function We() {
|
|
|
192
194
|
function f(r) {
|
|
193
195
|
return r === null ? "`null`" : r === void 0 ? "`undefined`" : r === "" ? "an empty string" : 'something with type "' + typeof r + '"';
|
|
194
196
|
}
|
|
195
|
-
function
|
|
197
|
+
function h(r) {
|
|
196
198
|
return r === null ? "`null`" : r === void 0 ? "`undefined`" : r === "" ? "an empty string" : typeof r == "string" ? JSON.stringify(r) : typeof r == "number" ? "`" + r + "`" : 'something with type "' + typeof r + '"';
|
|
197
199
|
}
|
|
198
|
-
function
|
|
199
|
-
var r =
|
|
200
|
+
function v() {
|
|
201
|
+
var r = o.H;
|
|
200
202
|
return r === null && console.error(
|
|
201
203
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
202
204
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -206,7 +208,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
206
208
|
), r;
|
|
207
209
|
}
|
|
208
210
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
209
|
-
var
|
|
211
|
+
var S = m, n = {
|
|
210
212
|
d: {
|
|
211
213
|
f: s,
|
|
212
214
|
r: function() {
|
|
@@ -224,28 +226,28 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
224
226
|
},
|
|
225
227
|
p: 0,
|
|
226
228
|
findDOMNode: null
|
|
227
|
-
}, t = Symbol.for("react.portal"),
|
|
229
|
+
}, t = Symbol.for("react.portal"), o = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
228
230
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
229
231
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
230
|
-
),
|
|
231
|
-
var
|
|
232
|
+
), y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, y.createPortal = function(r, e) {
|
|
233
|
+
var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
232
234
|
if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
|
|
233
235
|
throw Error("Target container is not a DOM element.");
|
|
234
|
-
return
|
|
235
|
-
},
|
|
236
|
-
var e =
|
|
236
|
+
return a(r, e, null, i);
|
|
237
|
+
}, y.flushSync = function(r) {
|
|
238
|
+
var e = o.T, i = n.p;
|
|
237
239
|
try {
|
|
238
|
-
if (
|
|
240
|
+
if (o.T = null, n.p = 2, r)
|
|
239
241
|
return r();
|
|
240
242
|
} finally {
|
|
241
|
-
|
|
243
|
+
o.T = e, n.p = i, n.d.f() && console.error(
|
|
242
244
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
243
245
|
);
|
|
244
246
|
}
|
|
245
|
-
},
|
|
247
|
+
}, y.preconnect = function(r, e) {
|
|
246
248
|
typeof r == "string" && r ? e != null && typeof e != "object" ? console.error(
|
|
247
249
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
248
|
-
|
|
250
|
+
h(e)
|
|
249
251
|
) : e != null && typeof e.crossOrigin != "string" && console.error(
|
|
250
252
|
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
251
253
|
f(e.crossOrigin)
|
|
@@ -253,7 +255,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
253
255
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
254
256
|
f(r)
|
|
255
257
|
), typeof r == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, n.d.C(r, e));
|
|
256
|
-
},
|
|
258
|
+
}, y.prefetchDNS = function(r) {
|
|
257
259
|
if (typeof r != "string" || !r)
|
|
258
260
|
console.error(
|
|
259
261
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
@@ -263,79 +265,79 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
263
265
|
var e = arguments[1];
|
|
264
266
|
typeof e == "object" && e.hasOwnProperty("crossOrigin") ? console.error(
|
|
265
267
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
266
|
-
|
|
268
|
+
h(e)
|
|
267
269
|
) : console.error(
|
|
268
270
|
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
269
|
-
|
|
271
|
+
h(e)
|
|
270
272
|
);
|
|
271
273
|
}
|
|
272
274
|
typeof r == "string" && n.d.D(r);
|
|
273
|
-
},
|
|
275
|
+
}, y.preinit = function(r, e) {
|
|
274
276
|
if (typeof r == "string" && r ? e == null || typeof e != "object" ? console.error(
|
|
275
277
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
276
|
-
|
|
278
|
+
h(e)
|
|
277
279
|
) : e.as !== "style" && e.as !== "script" && console.error(
|
|
278
280
|
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
279
|
-
|
|
281
|
+
h(e.as)
|
|
280
282
|
) : console.error(
|
|
281
283
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
282
284
|
f(r)
|
|
283
285
|
), typeof r == "string" && e && typeof e.as == "string") {
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
+
var i = e.as, d = c(i, e.crossOrigin), E = typeof e.integrity == "string" ? e.integrity : void 0, L = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
|
|
287
|
+
i === "style" ? n.d.S(
|
|
286
288
|
r,
|
|
287
289
|
typeof e.precedence == "string" ? e.precedence : void 0,
|
|
288
290
|
{
|
|
289
|
-
crossOrigin:
|
|
290
|
-
integrity:
|
|
291
|
-
fetchPriority:
|
|
291
|
+
crossOrigin: d,
|
|
292
|
+
integrity: E,
|
|
293
|
+
fetchPriority: L
|
|
292
294
|
}
|
|
293
|
-
) :
|
|
294
|
-
crossOrigin:
|
|
295
|
-
integrity:
|
|
296
|
-
fetchPriority:
|
|
295
|
+
) : i === "script" && n.d.X(r, {
|
|
296
|
+
crossOrigin: d,
|
|
297
|
+
integrity: E,
|
|
298
|
+
fetchPriority: L,
|
|
297
299
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
298
300
|
});
|
|
299
301
|
}
|
|
300
|
-
},
|
|
301
|
-
var
|
|
302
|
-
if (typeof r == "string" && r || (
|
|
302
|
+
}, y.preinitModule = function(r, e) {
|
|
303
|
+
var i = "";
|
|
304
|
+
if (typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + h(e.as) + "."), i)
|
|
303
305
|
console.error(
|
|
304
306
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
305
|
-
|
|
307
|
+
i
|
|
306
308
|
);
|
|
307
309
|
else
|
|
308
|
-
switch (
|
|
310
|
+
switch (i = e && typeof e.as == "string" ? e.as : "script", i) {
|
|
309
311
|
case "script":
|
|
310
312
|
break;
|
|
311
313
|
default:
|
|
312
|
-
|
|
314
|
+
i = h(i), console.error(
|
|
313
315
|
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
314
|
-
|
|
316
|
+
i,
|
|
315
317
|
r
|
|
316
318
|
);
|
|
317
319
|
}
|
|
318
|
-
typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (
|
|
320
|
+
typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = c(
|
|
319
321
|
e.as,
|
|
320
322
|
e.crossOrigin
|
|
321
323
|
), n.d.M(r, {
|
|
322
|
-
crossOrigin:
|
|
324
|
+
crossOrigin: i,
|
|
323
325
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
324
326
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
325
327
|
})) : e == null && n.d.M(r));
|
|
326
|
-
},
|
|
327
|
-
var
|
|
328
|
-
if (typeof r == "string" && r || (
|
|
328
|
+
}, y.preload = function(r, e) {
|
|
329
|
+
var i = "";
|
|
330
|
+
if (typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + f(e.as) + "."), i && console.error(
|
|
329
331
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
330
|
-
|
|
332
|
+
i
|
|
331
333
|
), typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
|
|
332
|
-
|
|
333
|
-
var
|
|
334
|
-
|
|
334
|
+
i = e.as;
|
|
335
|
+
var d = c(
|
|
336
|
+
i,
|
|
335
337
|
e.crossOrigin
|
|
336
338
|
);
|
|
337
|
-
n.d.L(r,
|
|
338
|
-
crossOrigin:
|
|
339
|
+
n.d.L(r, i, {
|
|
340
|
+
crossOrigin: d,
|
|
339
341
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
340
342
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0,
|
|
341
343
|
type: typeof e.type == "string" ? e.type : void 0,
|
|
@@ -346,388 +348,176 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
346
348
|
media: typeof e.media == "string" ? e.media : void 0
|
|
347
349
|
});
|
|
348
350
|
}
|
|
349
|
-
},
|
|
350
|
-
var
|
|
351
|
-
typeof r == "string" && r || (
|
|
351
|
+
}, y.preloadModule = function(r, e) {
|
|
352
|
+
var i = "";
|
|
353
|
+
typeof r == "string" && r || (i += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + f(e.as) + "."), i && console.error(
|
|
352
354
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
353
|
-
|
|
354
|
-
), typeof r == "string" && (e ? (
|
|
355
|
+
i
|
|
356
|
+
), typeof r == "string" && (e ? (i = c(
|
|
355
357
|
e.as,
|
|
356
358
|
e.crossOrigin
|
|
357
359
|
), n.d.m(r, {
|
|
358
360
|
as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
|
|
359
|
-
crossOrigin:
|
|
361
|
+
crossOrigin: i,
|
|
360
362
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0
|
|
361
363
|
})) : n.d.m(r));
|
|
362
|
-
},
|
|
364
|
+
}, y.requestFormReset = function(r) {
|
|
363
365
|
n.d.r(r);
|
|
364
|
-
},
|
|
366
|
+
}, y.unstable_batchedUpdates = function(r, e) {
|
|
365
367
|
return r(e);
|
|
366
|
-
},
|
|
367
|
-
return
|
|
368
|
-
},
|
|
369
|
-
return
|
|
370
|
-
},
|
|
371
|
-
}()),
|
|
368
|
+
}, y.useFormState = function(r, e, i) {
|
|
369
|
+
return v().useFormState(r, e, i);
|
|
370
|
+
}, y.useFormStatus = function() {
|
|
371
|
+
return v().useHostTransitionStatus();
|
|
372
|
+
}, y.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
373
|
+
}()), y;
|
|
372
374
|
}
|
|
373
|
-
function
|
|
375
|
+
function $() {
|
|
374
376
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
375
377
|
if (process.env.NODE_ENV !== "production")
|
|
376
378
|
throw new Error("^_^");
|
|
377
379
|
try {
|
|
378
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(
|
|
380
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($);
|
|
379
381
|
} catch (s) {
|
|
380
382
|
console.error(s);
|
|
381
383
|
}
|
|
382
384
|
}
|
|
383
385
|
}
|
|
384
|
-
process.env.NODE_ENV === "production" ? (
|
|
385
|
-
var
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
c && document.removeEventListener("keyup", a);
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
}, [i, c]);
|
|
408
|
-
}, Be = function(i, c) {
|
|
409
|
-
c === void 0 && (c = !0), x(function() {
|
|
410
|
-
if (c) {
|
|
411
|
-
var a = function() {
|
|
412
|
-
i();
|
|
413
|
-
};
|
|
414
|
-
return window.addEventListener("resize", a), function() {
|
|
415
|
-
c && window.removeEventListener("resize", a);
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
}, [i, c]);
|
|
419
|
-
}, et = function(i, c, a) {
|
|
420
|
-
a === void 0 && (a = !0), x(function() {
|
|
421
|
-
if (a) {
|
|
422
|
-
var f = function(p) {
|
|
423
|
-
var m = Array.isArray(i) ? i : [i], n = !1;
|
|
424
|
-
m.forEach(function(t) {
|
|
425
|
-
if (!t.current || t.current.contains(p.target)) {
|
|
426
|
-
n = !0;
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
}), p.stopPropagation(), n || c(p);
|
|
430
|
-
};
|
|
431
|
-
return document.addEventListener("mousedown", f), document.addEventListener("touchstart", f), function() {
|
|
432
|
-
a && (document.removeEventListener("mousedown", f), document.removeEventListener("touchstart", f));
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
}, [i, c, a]);
|
|
436
|
-
}, tt = function(i, c) {
|
|
437
|
-
c === void 0 && (c = !0), x(function() {
|
|
438
|
-
if (c) {
|
|
439
|
-
var a = function(d) {
|
|
440
|
-
if (d.keyCode === 9) {
|
|
441
|
-
var p, m = i == null || (p = i.current) === null || p === void 0 ? void 0 : p.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'), n = Array.prototype.slice.call(m);
|
|
442
|
-
if (n.length === 1) {
|
|
443
|
-
d.preventDefault();
|
|
444
|
-
return;
|
|
445
|
-
}
|
|
446
|
-
var t = n[0], l = n[n.length - 1];
|
|
447
|
-
d.shiftKey && document.activeElement === t ? (d.preventDefault(), l.focus()) : document.activeElement === l && (d.preventDefault(), t.focus());
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
return document.addEventListener("keydown", a), function() {
|
|
451
|
-
c && document.removeEventListener("keydown", a);
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
}, [i, c]);
|
|
455
|
-
}, rt = typeof window < "u" ? Ve : x, H = {
|
|
456
|
-
popupContent: {
|
|
457
|
-
tooltip: {
|
|
458
|
-
position: "absolute",
|
|
459
|
-
zIndex: 999
|
|
460
|
-
},
|
|
461
|
-
modal: {
|
|
462
|
-
position: "relative",
|
|
463
|
-
margin: "auto"
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
popupArrow: {
|
|
467
|
-
height: "8px",
|
|
468
|
-
width: "16px",
|
|
469
|
-
position: "absolute",
|
|
470
|
-
background: "transparent",
|
|
471
|
-
color: "#FFF",
|
|
472
|
-
zIndex: -1
|
|
473
|
-
},
|
|
474
|
-
overlay: {
|
|
475
|
-
tooltip: {
|
|
476
|
-
position: "fixed",
|
|
477
|
-
top: "0",
|
|
478
|
-
bottom: "0",
|
|
479
|
-
left: "0",
|
|
480
|
-
right: "0",
|
|
481
|
-
zIndex: 999
|
|
482
|
-
},
|
|
483
|
-
modal: {
|
|
484
|
-
position: "fixed",
|
|
485
|
-
top: "0",
|
|
486
|
-
bottom: "0",
|
|
487
|
-
left: "0",
|
|
488
|
-
right: "0",
|
|
489
|
-
display: "flex",
|
|
490
|
-
zIndex: 999
|
|
491
|
-
}
|
|
386
|
+
process.env.NODE_ENV === "production" ? ($(), U.exports = oe()) : U.exports = ae();
|
|
387
|
+
var A = U.exports;
|
|
388
|
+
const fe = ({
|
|
389
|
+
trigger: s,
|
|
390
|
+
children: O,
|
|
391
|
+
position: a = "top",
|
|
392
|
+
delay: c = 0,
|
|
393
|
+
tooltipClassName: f,
|
|
394
|
+
wrapperClassName: h,
|
|
395
|
+
on: v = "auto",
|
|
396
|
+
autoAdjust: S = !0,
|
|
397
|
+
flip: n = !0,
|
|
398
|
+
viewportPadding: t = 4
|
|
399
|
+
}) => {
|
|
400
|
+
const [o, r] = m.useState(!1), e = m.useRef(null), i = m.useId(), d = m.useRef(null), E = m.useRef(null), L = ce(), M = v === "auto" ? L ? "hover" : "click" : v, [q, V] = m.useState(a), [W, k] = m.useState(0), [X, C] = m.useState(0);
|
|
401
|
+
m.useEffect(() => {
|
|
402
|
+
o || (V(a), k(0), C(0));
|
|
403
|
+
}, [o, a]);
|
|
404
|
+
function x() {
|
|
405
|
+
e.current && (window.clearTimeout(e.current), e.current = null);
|
|
492
406
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
407
|
+
function P() {
|
|
408
|
+
const u = d.current, N = E.current;
|
|
409
|
+
if (!u || !N) return;
|
|
410
|
+
k(0), C(0);
|
|
411
|
+
const w = window.innerWidth, F = window.innerHeight, T = u.getBoundingClientRect(), D = N.getBoundingClientRect();
|
|
412
|
+
let R = a;
|
|
413
|
+
if (n)
|
|
414
|
+
if (a === "top" || a === "bottom") {
|
|
415
|
+
const l = T.top, p = F - T.bottom, _ = D.height + t;
|
|
416
|
+
a === "top" && l < _ && p > l ? R = "bottom" : a === "bottom" && p < _ && l > p && (R = "top");
|
|
417
|
+
} else {
|
|
418
|
+
const l = T.left, p = w - T.right, _ = D.width + t;
|
|
419
|
+
a === "left" && l < _ && p > l ? R = "right" : a === "right" && p < _ && l > p && (R = "left");
|
|
420
|
+
}
|
|
421
|
+
if (V(R), S)
|
|
422
|
+
if (R === "top" || R === "bottom") {
|
|
423
|
+
const l = T.left + T.width / 2 - D.width / 2, p = t, _ = w - t - D.width;
|
|
424
|
+
let b = 0;
|
|
425
|
+
l < p ? b = p - l : l > _ && (b = _ - l), k(b);
|
|
426
|
+
} else {
|
|
427
|
+
const l = T.top + T.height / 2 - D.height / 2, p = t, _ = F - t - D.height;
|
|
428
|
+
let b = 0;
|
|
429
|
+
l < p ? b = p - l : l > _ && (b = _ - l), C(b);
|
|
430
|
+
}
|
|
508
431
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
g = i.left, k = i.width / 2 + "px";
|
|
518
|
-
break;
|
|
519
|
-
case "right":
|
|
520
|
-
g = i.left - o + i.width, k = o - i.width / 2 + "px";
|
|
521
|
-
break;
|
|
432
|
+
function B() {
|
|
433
|
+
x(), e.current = window.setTimeout(() => {
|
|
434
|
+
A.flushSync(() => {
|
|
435
|
+
r(!0);
|
|
436
|
+
}), A.flushSync(() => {
|
|
437
|
+
P();
|
|
438
|
+
});
|
|
439
|
+
}, c);
|
|
522
440
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
left: g,
|
|
526
|
-
transform: w,
|
|
527
|
-
arrowLeft: k,
|
|
528
|
-
arrowTop: R
|
|
529
|
-
};
|
|
530
|
-
}, it = function(i) {
|
|
531
|
-
var c = {
|
|
532
|
-
top: 0,
|
|
533
|
-
left: 0,
|
|
534
|
-
/* eslint-disable-next-line no-undef */
|
|
535
|
-
width: window.innerWidth,
|
|
536
|
-
/* eslint-disable-next-line no-undef */
|
|
537
|
-
height: window.innerHeight
|
|
538
|
-
};
|
|
539
|
-
if (typeof i == "string") {
|
|
540
|
-
var a = document.querySelector(i);
|
|
541
|
-
if (process.env.NODE_ENV !== "production" && a === null)
|
|
542
|
-
throw new Error(i + " selector does not exist : keepTooltipInside must be a valid html selector 'class' or 'Id' or a boolean value");
|
|
543
|
-
a !== null && (c = a.getBoundingClientRect());
|
|
441
|
+
function H() {
|
|
442
|
+
x(), r(!1);
|
|
544
443
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
var m = d.offsetX, n = d.offsetY, t = {
|
|
548
|
-
arrowLeft: "0%",
|
|
549
|
-
arrowTop: "0%",
|
|
550
|
-
left: 0,
|
|
551
|
-
top: 0,
|
|
552
|
-
transform: "rotate(135deg)"
|
|
553
|
-
}, l = 0, r = it(p), e = Array.isArray(a) ? a : [a];
|
|
554
|
-
for ((p || Array.isArray(a)) && (e = [].concat(e, nt)); l < e.length; ) {
|
|
555
|
-
t = ot(i, c, e[l], f, {
|
|
556
|
-
offsetX: m,
|
|
557
|
-
offsetY: n
|
|
558
|
-
});
|
|
559
|
-
var o = {
|
|
560
|
-
top: t.top,
|
|
561
|
-
left: t.left,
|
|
562
|
-
width: c.width,
|
|
563
|
-
height: c.height
|
|
564
|
-
};
|
|
565
|
-
if (o.top <= r.top || o.left <= r.left || o.top + o.height >= r.top + r.height || o.left + o.width >= r.left + r.width)
|
|
566
|
-
l++;
|
|
567
|
-
else
|
|
568
|
-
break;
|
|
444
|
+
function G() {
|
|
445
|
+
x(), o ? r(!1) : (A.flushSync(() => r(!0)), A.flushSync(() => P()));
|
|
569
446
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
} : p, n = s.defaultOpen, t = n === void 0 ? !1 : n, l = s.open, r = l === void 0 ? void 0 : l, e = s.disabled, o = e === void 0 ? !1 : e, y = s.nested, g = y === void 0 ? !1 : y, w = s.closeOnDocumentClick, R = w === void 0 ? !0 : w, k = s.repositionOnResize, we = k === void 0 ? !0 : k, W = s.closeOnEscape, Te = W === void 0 ? !0 : W, J = s.on, I = J === void 0 ? ["click"] : J, Q = s.contentStyle, Re = Q === void 0 ? {} : Q, Z = s.arrowStyle, X = Z === void 0 ? {} : Z, B = s.overlayStyle, De = B === void 0 ? {} : B, ee = s.className, A = ee === void 0 ? "" : ee, te = s.position, ke = te === void 0 ? "bottom center" : te, re = s.modal, ne = re === void 0 ? !1 : re, oe = s.lockScroll, ie = oe === void 0 ? !1 : oe, ae = s.arrow, F = ae === void 0 ? !0 : ae, se = s.offsetX, Ce = se === void 0 ? 0 : se, ce = s.offsetY, Le = ce === void 0 ? 0 : ce, le = s.mouseEnterDelay, Pe = le === void 0 ? 100 : le, ue = s.mouseLeaveDelay, Me = ue === void 0 ? 100 : ue, fe = s.keepTooltipInside, Ae = fe === void 0 ? !1 : fe, z = s.children, de = Fe(r || t), D = de[0], pe = de[1], C = N(null), b = N(null), P = N(null), ye = N(null), ge = N("popup-" + ++st), S = ne ? !0 : !a, j = N(0);
|
|
578
|
-
rt(function() {
|
|
579
|
-
return D ? (ye.current = document.activeElement, ve(), je(), xe()) : Ie(), function() {
|
|
580
|
-
clearTimeout(j.current);
|
|
581
|
-
};
|
|
582
|
-
}, [D]), x(function() {
|
|
583
|
-
typeof r == "boolean" && (r ? U() : L());
|
|
584
|
-
}, [r, o]);
|
|
585
|
-
var U = function(u) {
|
|
586
|
-
D || o || (pe(!0), setTimeout(function() {
|
|
587
|
-
return d(u);
|
|
588
|
-
}, 0));
|
|
589
|
-
}, L = function(u) {
|
|
590
|
-
var _;
|
|
591
|
-
!D || o || (pe(!1), S && ((_ = ye.current) === null || _ === void 0 || _.focus()), setTimeout(function() {
|
|
592
|
-
return m(u);
|
|
593
|
-
}, 0));
|
|
594
|
-
}, V = function(u) {
|
|
595
|
-
u == null || u.stopPropagation(), D ? L(u) : U(u);
|
|
596
|
-
}, G = function(u) {
|
|
597
|
-
clearTimeout(j.current), j.current = setTimeout(function() {
|
|
598
|
-
return U(u);
|
|
599
|
-
}, Pe);
|
|
600
|
-
}, Ne = function(u) {
|
|
601
|
-
u == null || u.preventDefault(), V();
|
|
602
|
-
}, q = function(u) {
|
|
603
|
-
clearTimeout(j.current), j.current = setTimeout(function() {
|
|
604
|
-
return L(u);
|
|
605
|
-
}, Me);
|
|
606
|
-
}, xe = function() {
|
|
607
|
-
S && ie && (document.getElementsByTagName("body")[0].style.overflow = "hidden");
|
|
608
|
-
}, Ie = function() {
|
|
609
|
-
S && ie && (document.getElementsByTagName("body")[0].style.overflow = "auto");
|
|
610
|
-
}, je = function() {
|
|
611
|
-
var u, _ = b == null || (u = b.current) === null || u === void 0 ? void 0 : u.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'), v = Array.prototype.slice.call(_)[0];
|
|
612
|
-
v == null || v.focus();
|
|
613
|
-
};
|
|
614
|
-
Ge(i, function() {
|
|
615
|
-
return {
|
|
616
|
-
open: function() {
|
|
617
|
-
U();
|
|
618
|
-
},
|
|
619
|
-
close: function() {
|
|
620
|
-
L();
|
|
621
|
-
},
|
|
622
|
-
toggle: function() {
|
|
623
|
-
V();
|
|
624
|
-
}
|
|
447
|
+
j(() => {
|
|
448
|
+
if (!o) return;
|
|
449
|
+
function u() {
|
|
450
|
+
P();
|
|
451
|
+
}
|
|
452
|
+
return window.addEventListener("resize", u), window.addEventListener("scroll", u, !0), () => {
|
|
453
|
+
window.removeEventListener("resize", u), window.removeEventListener("scroll", u, !0);
|
|
625
454
|
};
|
|
626
|
-
})
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
offsetX: Ce,
|
|
631
|
-
offsetY: Le
|
|
632
|
-
}, Ae);
|
|
633
|
-
if (b.current.style.top = v.top + window.scrollY + "px", b.current.style.left = v.left + window.scrollX + "px", F && P.current) {
|
|
634
|
-
var M, $;
|
|
635
|
-
P.current.style.transform = v.transform, P.current.style.setProperty("-ms-transform", v.transform), P.current.style.setProperty("-webkit-transform", v.transform), P.current.style.top = ((M = X.top) === null || M === void 0 ? void 0 : M.toString()) || v.arrowTop, P.current.style.left = (($ = X.left) === null || $ === void 0 ? void 0 : $.toString()) || v.arrowLeft;
|
|
636
|
-
}
|
|
455
|
+
}, [o, a, S, n, t]), j(() => {
|
|
456
|
+
if (M !== "click" || !o) return;
|
|
457
|
+
function u(w) {
|
|
458
|
+
d.current && (d.current.contains(w.target) || r(!1));
|
|
637
459
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
var $e = function() {
|
|
641
|
-
for (var u = {
|
|
642
|
-
key: "T",
|
|
643
|
-
ref: C,
|
|
644
|
-
"aria-describedby": ge.current
|
|
645
|
-
}, _ = Array.isArray(I) ? I : [I], v = 0, M = _.length; v < M; v++)
|
|
646
|
-
switch (_[v]) {
|
|
647
|
-
case "click":
|
|
648
|
-
u.onClick = V;
|
|
649
|
-
break;
|
|
650
|
-
case "right-click":
|
|
651
|
-
u.onContextMenu = Ne;
|
|
652
|
-
break;
|
|
653
|
-
case "hover":
|
|
654
|
-
u.onMouseEnter = G, u.onMouseLeave = q;
|
|
655
|
-
break;
|
|
656
|
-
case "focus":
|
|
657
|
-
u.onFocus = G, u.onBlur = q;
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
if (typeof a == "function") {
|
|
661
|
-
var $ = a(D);
|
|
662
|
-
return !!a && T.cloneElement($, u);
|
|
460
|
+
function N(w) {
|
|
461
|
+
w.key === "Escape" && r(!1);
|
|
663
462
|
}
|
|
664
|
-
return
|
|
665
|
-
|
|
666
|
-
var u = S ? H.popupContent.modal : H.popupContent.tooltip, _ = {
|
|
667
|
-
className: "popup-content " + (A !== "" ? A.split(" ").map(function(v) {
|
|
668
|
-
return v + "-content";
|
|
669
|
-
}).join(" ") : ""),
|
|
670
|
-
style: Y({}, u, Re, {
|
|
671
|
-
pointerEvents: "auto"
|
|
672
|
-
}),
|
|
673
|
-
ref: b,
|
|
674
|
-
onClick: function(M) {
|
|
675
|
-
M.stopPropagation();
|
|
676
|
-
}
|
|
463
|
+
return document.addEventListener("mousedown", u), document.addEventListener("keydown", N), () => {
|
|
464
|
+
document.removeEventListener("mousedown", u), document.removeEventListener("keydown", N);
|
|
677
465
|
};
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
},
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
);
|
|
466
|
+
}, [o, M]);
|
|
467
|
+
const J = M === "hover" ? {
|
|
468
|
+
onMouseEnter: B,
|
|
469
|
+
onMouseLeave: H,
|
|
470
|
+
onFocus: B,
|
|
471
|
+
onBlur: H
|
|
472
|
+
} : {}, Q = M === "click" ? {
|
|
473
|
+
onClick: (u) => {
|
|
474
|
+
o || (u.preventDefault(), G());
|
|
475
|
+
},
|
|
476
|
+
onKeyDown: (u) => {
|
|
477
|
+
u.key === "Enter" || u.key === " " ? (u.preventDefault(), G()) : u.key === "Escape" && H();
|
|
478
|
+
}
|
|
479
|
+
} : {};
|
|
480
|
+
return /* @__PURE__ */ Z(
|
|
481
|
+
"span",
|
|
482
|
+
{
|
|
483
|
+
ref: d,
|
|
484
|
+
className: K(I.wrapper, h),
|
|
485
|
+
...J,
|
|
486
|
+
...Q,
|
|
487
|
+
children: [
|
|
488
|
+
m.cloneElement(s, {
|
|
489
|
+
"aria-describedby": i,
|
|
490
|
+
"aria-haspopup": "true",
|
|
491
|
+
"aria-expanded": o || void 0,
|
|
492
|
+
tabIndex: s.props.tabIndex ?? (M === "click" ? 0 : void 0)
|
|
493
|
+
}),
|
|
494
|
+
o && /* @__PURE__ */ ee(
|
|
495
|
+
"span",
|
|
496
|
+
{
|
|
497
|
+
ref: E,
|
|
498
|
+
id: i,
|
|
499
|
+
role: "tooltip",
|
|
500
|
+
"data-position": q,
|
|
501
|
+
className: K(I.tooltip, I.open, f),
|
|
502
|
+
style: {
|
|
503
|
+
"--tooltip-shift-x": `${W}px`,
|
|
504
|
+
"--tooltip-shift-y": `${X}px`
|
|
505
|
+
},
|
|
506
|
+
children: O
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
);
|
|
512
|
+
};
|
|
513
|
+
function ce() {
|
|
514
|
+
const [s, O] = te(() => typeof window > "u" ? !0 : window.matchMedia("(hover: hover) and (pointer: fine)").matches);
|
|
515
|
+
return j(() => {
|
|
516
|
+
if (typeof window > "u") return;
|
|
517
|
+
const a = window.matchMedia("(hover: hover) and (pointer: fine)"), c = () => O(a.matches);
|
|
518
|
+
return a.addEventListener("change", c), () => a.removeEventListener("change", c);
|
|
519
|
+
}, []), s;
|
|
520
|
+
}
|
|
731
521
|
export {
|
|
732
|
-
|
|
522
|
+
fe as Tooltip
|
|
733
523
|
};
|