@caseparts-org/caseblocks 0.0.50 → 0.0.52
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/molecules/Cart/Cart.js +5 -5
- package/dist/molecules/CategoryNav/CategoryNav.js +1 -1
- package/dist/molecules/Tooltip/Tooltip.d.ts +8 -12
- package/dist/molecules/Tooltip/Tooltip.js +497 -324
- package/dist/molecules/Tooltip/Tooltip.stories.d.ts +54 -3
- package/dist/molecules/Tooltip/Tooltip.stories.js +93 -44
- package/dist/organisms/MainNav/MainNav.d.ts +2 -1
- package/dist/organisms/MainNav/MainNav.js +65 -63
- package/dist/organisms/MainNav/MainNav.stories.js +3 -0
- package/package.json +3 -2
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import '../../assets/Tooltip.css';
|
|
1
|
+
import { jsx as he } from "react/jsx-runtime";
|
|
2
|
+
import T, { forwardRef as Xe, useState as Fe, useRef as N, useLayoutEffect as Ve, useEffect as x, useImperativeHandle as Ge } from "react";
|
|
3
|
+
import { c as Oe } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import '../../assets/Tooltip.css';function qe(s) {
|
|
5
|
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
6
|
+
}
|
|
7
|
+
var K = { exports: {} }, O = {};
|
|
5
8
|
/**
|
|
6
9
|
* @license React
|
|
7
10
|
* react-dom.production.js
|
|
@@ -11,108 +14,108 @@ import '../../assets/Tooltip.css';var B = { exports: {} }, f = {};
|
|
|
11
14
|
* This source code is licensed under the MIT license found in the
|
|
12
15
|
* LICENSE file in the root directory of this source tree.
|
|
13
16
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
function
|
|
17
|
+
var Ee;
|
|
18
|
+
function Ke() {
|
|
19
|
+
if (Ee) return O;
|
|
20
|
+
Ee = 1;
|
|
21
|
+
var s = T;
|
|
22
|
+
function i(n) {
|
|
20
23
|
var t = "https://react.dev/errors/" + n;
|
|
21
24
|
if (1 < arguments.length) {
|
|
22
25
|
t += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
23
|
-
for (var
|
|
24
|
-
t += "&args[]=" + encodeURIComponent(arguments[
|
|
26
|
+
for (var l = 2; l < arguments.length; l++)
|
|
27
|
+
t += "&args[]=" + encodeURIComponent(arguments[l]);
|
|
25
28
|
}
|
|
26
29
|
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.";
|
|
27
30
|
}
|
|
28
|
-
function
|
|
31
|
+
function c() {
|
|
29
32
|
}
|
|
30
|
-
var
|
|
33
|
+
var a = {
|
|
31
34
|
d: {
|
|
32
|
-
f:
|
|
35
|
+
f: c,
|
|
33
36
|
r: function() {
|
|
34
|
-
throw Error(
|
|
37
|
+
throw Error(i(522));
|
|
35
38
|
},
|
|
36
|
-
D:
|
|
37
|
-
C:
|
|
38
|
-
L:
|
|
39
|
-
m:
|
|
40
|
-
X:
|
|
41
|
-
S:
|
|
42
|
-
M:
|
|
39
|
+
D: c,
|
|
40
|
+
C: c,
|
|
41
|
+
L: c,
|
|
42
|
+
m: c,
|
|
43
|
+
X: c,
|
|
44
|
+
S: c,
|
|
45
|
+
M: c
|
|
43
46
|
},
|
|
44
47
|
p: 0,
|
|
45
48
|
findDOMNode: null
|
|
46
|
-
},
|
|
47
|
-
function
|
|
49
|
+
}, f = Symbol.for("react.portal");
|
|
50
|
+
function d(n, t, l) {
|
|
48
51
|
var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
49
52
|
return {
|
|
50
|
-
$$typeof:
|
|
53
|
+
$$typeof: f,
|
|
51
54
|
key: r == null ? null : "" + r,
|
|
52
55
|
children: n,
|
|
53
56
|
containerInfo: t,
|
|
54
|
-
implementation:
|
|
57
|
+
implementation: l
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
|
-
var
|
|
58
|
-
function
|
|
60
|
+
var p = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
61
|
+
function m(n, t) {
|
|
59
62
|
if (n === "font") return "";
|
|
60
63
|
if (typeof t == "string")
|
|
61
64
|
return t === "use-credentials" ? t : "";
|
|
62
65
|
}
|
|
63
|
-
return
|
|
64
|
-
var
|
|
66
|
+
return O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a, O.createPortal = function(n, t) {
|
|
67
|
+
var l = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
65
68
|
if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11)
|
|
66
|
-
throw Error(
|
|
67
|
-
return
|
|
68
|
-
},
|
|
69
|
-
var t =
|
|
69
|
+
throw Error(i(299));
|
|
70
|
+
return d(n, t, null, l);
|
|
71
|
+
}, O.flushSync = function(n) {
|
|
72
|
+
var t = p.T, l = a.p;
|
|
70
73
|
try {
|
|
71
|
-
if (
|
|
74
|
+
if (p.T = null, a.p = 2, n) return n();
|
|
72
75
|
} finally {
|
|
73
|
-
|
|
76
|
+
p.T = t, a.p = l, a.d.f();
|
|
74
77
|
}
|
|
75
|
-
},
|
|
76
|
-
typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null,
|
|
77
|
-
},
|
|
78
|
-
typeof n == "string" &&
|
|
79
|
-
},
|
|
78
|
+
}, O.preconnect = function(n, t) {
|
|
79
|
+
typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, a.d.C(n, t));
|
|
80
|
+
}, O.prefetchDNS = function(n) {
|
|
81
|
+
typeof n == "string" && a.d.D(n);
|
|
82
|
+
}, O.preinit = function(n, t) {
|
|
80
83
|
if (typeof n == "string" && t && typeof t.as == "string") {
|
|
81
|
-
var
|
|
82
|
-
|
|
84
|
+
var l = t.as, r = m(l, t.crossOrigin), e = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
|
|
85
|
+
l === "style" ? a.d.S(
|
|
83
86
|
n,
|
|
84
87
|
typeof t.precedence == "string" ? t.precedence : void 0,
|
|
85
88
|
{
|
|
86
89
|
crossOrigin: r,
|
|
87
90
|
integrity: e,
|
|
88
|
-
fetchPriority:
|
|
91
|
+
fetchPriority: o
|
|
89
92
|
}
|
|
90
|
-
) :
|
|
93
|
+
) : l === "script" && a.d.X(n, {
|
|
91
94
|
crossOrigin: r,
|
|
92
95
|
integrity: e,
|
|
93
|
-
fetchPriority:
|
|
96
|
+
fetchPriority: o,
|
|
94
97
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
95
98
|
});
|
|
96
99
|
}
|
|
97
|
-
},
|
|
100
|
+
}, O.preinitModule = function(n, t) {
|
|
98
101
|
if (typeof n == "string")
|
|
99
102
|
if (typeof t == "object" && t !== null) {
|
|
100
103
|
if (t.as == null || t.as === "script") {
|
|
101
|
-
var
|
|
104
|
+
var l = m(
|
|
102
105
|
t.as,
|
|
103
106
|
t.crossOrigin
|
|
104
107
|
);
|
|
105
|
-
|
|
106
|
-
crossOrigin:
|
|
108
|
+
a.d.M(n, {
|
|
109
|
+
crossOrigin: l,
|
|
107
110
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
108
111
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
109
112
|
});
|
|
110
113
|
}
|
|
111
|
-
} else t == null &&
|
|
112
|
-
},
|
|
114
|
+
} else t == null && a.d.M(n);
|
|
115
|
+
}, O.preload = function(n, t) {
|
|
113
116
|
if (typeof n == "string" && typeof t == "object" && t !== null && typeof t.as == "string") {
|
|
114
|
-
var
|
|
115
|
-
|
|
117
|
+
var l = t.as, r = m(l, t.crossOrigin);
|
|
118
|
+
a.d.L(n, l, {
|
|
116
119
|
crossOrigin: r,
|
|
117
120
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
118
121
|
nonce: typeof t.nonce == "string" ? t.nonce : void 0,
|
|
@@ -124,27 +127,27 @@ function ue() {
|
|
|
124
127
|
media: typeof t.media == "string" ? t.media : void 0
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
|
-
},
|
|
130
|
+
}, O.preloadModule = function(n, t) {
|
|
128
131
|
if (typeof n == "string")
|
|
129
132
|
if (t) {
|
|
130
|
-
var
|
|
131
|
-
|
|
133
|
+
var l = m(t.as, t.crossOrigin);
|
|
134
|
+
a.d.m(n, {
|
|
132
135
|
as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
|
|
133
|
-
crossOrigin:
|
|
136
|
+
crossOrigin: l,
|
|
134
137
|
integrity: typeof t.integrity == "string" ? t.integrity : void 0
|
|
135
138
|
});
|
|
136
|
-
} else
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
},
|
|
139
|
+
} else a.d.m(n);
|
|
140
|
+
}, O.requestFormReset = function(n) {
|
|
141
|
+
a.d.r(n);
|
|
142
|
+
}, O.unstable_batchedUpdates = function(n, t) {
|
|
140
143
|
return n(t);
|
|
141
|
-
},
|
|
142
|
-
return
|
|
143
|
-
},
|
|
144
|
-
return
|
|
145
|
-
},
|
|
144
|
+
}, O.useFormState = function(n, t, l) {
|
|
145
|
+
return p.H.useFormState(n, t, l);
|
|
146
|
+
}, O.useFormStatus = function() {
|
|
147
|
+
return p.H.useHostTransitionStatus();
|
|
148
|
+
}, O.version = "19.1.1", O;
|
|
146
149
|
}
|
|
147
|
-
var
|
|
150
|
+
var E = {};
|
|
148
151
|
/**
|
|
149
152
|
* @license React
|
|
150
153
|
* react-dom.development.js
|
|
@@ -154,46 +157,46 @@ var g = {};
|
|
|
154
157
|
* This source code is licensed under the MIT license found in the
|
|
155
158
|
* LICENSE file in the root directory of this source tree.
|
|
156
159
|
*/
|
|
157
|
-
var
|
|
158
|
-
function
|
|
159
|
-
return
|
|
160
|
-
function
|
|
160
|
+
var _e;
|
|
161
|
+
function We() {
|
|
162
|
+
return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
163
|
+
function s() {
|
|
161
164
|
}
|
|
162
|
-
function
|
|
165
|
+
function i(r) {
|
|
163
166
|
return "" + r;
|
|
164
167
|
}
|
|
165
|
-
function
|
|
168
|
+
function c(r, e, o) {
|
|
166
169
|
var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
167
170
|
try {
|
|
168
|
-
|
|
169
|
-
var
|
|
171
|
+
i(y);
|
|
172
|
+
var v = !1;
|
|
170
173
|
} catch {
|
|
171
|
-
|
|
174
|
+
v = !0;
|
|
172
175
|
}
|
|
173
|
-
return
|
|
176
|
+
return v && (console.error(
|
|
174
177
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
175
178
|
typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object"
|
|
176
|
-
),
|
|
179
|
+
), i(y)), {
|
|
177
180
|
$$typeof: t,
|
|
178
181
|
key: y == null ? null : "" + y,
|
|
179
182
|
children: r,
|
|
180
183
|
containerInfo: e,
|
|
181
|
-
implementation:
|
|
184
|
+
implementation: o
|
|
182
185
|
};
|
|
183
186
|
}
|
|
184
|
-
function
|
|
187
|
+
function a(r, e) {
|
|
185
188
|
if (r === "font") return "";
|
|
186
189
|
if (typeof e == "string")
|
|
187
190
|
return e === "use-credentials" ? e : "";
|
|
188
191
|
}
|
|
189
|
-
function
|
|
192
|
+
function f(r) {
|
|
190
193
|
return r === null ? "`null`" : r === void 0 ? "`undefined`" : r === "" ? "an empty string" : 'something with type "' + typeof r + '"';
|
|
191
194
|
}
|
|
192
|
-
function
|
|
195
|
+
function d(r) {
|
|
193
196
|
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 + '"';
|
|
194
197
|
}
|
|
195
|
-
function
|
|
196
|
-
var r =
|
|
198
|
+
function p() {
|
|
199
|
+
var r = l.H;
|
|
197
200
|
return r === null && console.error(
|
|
198
201
|
`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:
|
|
199
202
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -203,135 +206,135 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
203
206
|
), r;
|
|
204
207
|
}
|
|
205
208
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
206
|
-
var
|
|
209
|
+
var m = T, n = {
|
|
207
210
|
d: {
|
|
208
|
-
f:
|
|
211
|
+
f: s,
|
|
209
212
|
r: function() {
|
|
210
213
|
throw Error(
|
|
211
214
|
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
212
215
|
);
|
|
213
216
|
},
|
|
214
|
-
D:
|
|
215
|
-
C:
|
|
216
|
-
L:
|
|
217
|
-
m:
|
|
218
|
-
X:
|
|
219
|
-
S:
|
|
220
|
-
M:
|
|
217
|
+
D: s,
|
|
218
|
+
C: s,
|
|
219
|
+
L: s,
|
|
220
|
+
m: s,
|
|
221
|
+
X: s,
|
|
222
|
+
S: s,
|
|
223
|
+
M: s
|
|
221
224
|
},
|
|
222
225
|
p: 0,
|
|
223
226
|
findDOMNode: null
|
|
224
|
-
}, t = Symbol.for("react.portal"),
|
|
227
|
+
}, t = Symbol.for("react.portal"), l = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
225
228
|
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(
|
|
226
229
|
"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"
|
|
227
|
-
),
|
|
228
|
-
var
|
|
230
|
+
), E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, E.createPortal = function(r, e) {
|
|
231
|
+
var o = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
229
232
|
if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)
|
|
230
233
|
throw Error("Target container is not a DOM element.");
|
|
231
|
-
return
|
|
232
|
-
},
|
|
233
|
-
var e =
|
|
234
|
+
return c(r, e, null, o);
|
|
235
|
+
}, E.flushSync = function(r) {
|
|
236
|
+
var e = l.T, o = n.p;
|
|
234
237
|
try {
|
|
235
|
-
if (
|
|
238
|
+
if (l.T = null, n.p = 2, r)
|
|
236
239
|
return r();
|
|
237
240
|
} finally {
|
|
238
|
-
|
|
241
|
+
l.T = e, n.p = o, n.d.f() && console.error(
|
|
239
242
|
"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."
|
|
240
243
|
);
|
|
241
244
|
}
|
|
242
|
-
},
|
|
245
|
+
}, E.preconnect = function(r, e) {
|
|
243
246
|
typeof r == "string" && r ? e != null && typeof e != "object" ? console.error(
|
|
244
247
|
"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.",
|
|
245
|
-
|
|
248
|
+
d(e)
|
|
246
249
|
) : e != null && typeof e.crossOrigin != "string" && console.error(
|
|
247
250
|
"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.",
|
|
248
|
-
|
|
251
|
+
f(e.crossOrigin)
|
|
249
252
|
) : console.error(
|
|
250
253
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
251
|
-
|
|
254
|
+
f(r)
|
|
252
255
|
), typeof r == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, n.d.C(r, e));
|
|
253
|
-
},
|
|
256
|
+
}, E.prefetchDNS = function(r) {
|
|
254
257
|
if (typeof r != "string" || !r)
|
|
255
258
|
console.error(
|
|
256
259
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
257
|
-
|
|
260
|
+
f(r)
|
|
258
261
|
);
|
|
259
262
|
else if (1 < arguments.length) {
|
|
260
263
|
var e = arguments[1];
|
|
261
264
|
typeof e == "object" && e.hasOwnProperty("crossOrigin") ? console.error(
|
|
262
265
|
"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`.",
|
|
263
|
-
|
|
266
|
+
d(e)
|
|
264
267
|
) : console.error(
|
|
265
268
|
"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`.",
|
|
266
|
-
|
|
269
|
+
d(e)
|
|
267
270
|
);
|
|
268
271
|
}
|
|
269
272
|
typeof r == "string" && n.d.D(r);
|
|
270
|
-
},
|
|
273
|
+
}, E.preinit = function(r, e) {
|
|
271
274
|
if (typeof r == "string" && r ? e == null || typeof e != "object" ? console.error(
|
|
272
275
|
"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.",
|
|
273
|
-
|
|
276
|
+
d(e)
|
|
274
277
|
) : e.as !== "style" && e.as !== "script" && console.error(
|
|
275
278
|
'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".',
|
|
276
|
-
|
|
279
|
+
d(e.as)
|
|
277
280
|
) : console.error(
|
|
278
281
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
279
|
-
|
|
282
|
+
f(r)
|
|
280
283
|
), typeof r == "string" && e && typeof e.as == "string") {
|
|
281
|
-
var
|
|
282
|
-
|
|
284
|
+
var o = e.as, y = a(o, e.crossOrigin), v = typeof e.integrity == "string" ? e.integrity : void 0, w = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
|
|
285
|
+
o === "style" ? n.d.S(
|
|
283
286
|
r,
|
|
284
287
|
typeof e.precedence == "string" ? e.precedence : void 0,
|
|
285
288
|
{
|
|
286
289
|
crossOrigin: y,
|
|
287
|
-
integrity:
|
|
288
|
-
fetchPriority:
|
|
290
|
+
integrity: v,
|
|
291
|
+
fetchPriority: w
|
|
289
292
|
}
|
|
290
|
-
) :
|
|
293
|
+
) : o === "script" && n.d.X(r, {
|
|
291
294
|
crossOrigin: y,
|
|
292
|
-
integrity:
|
|
293
|
-
fetchPriority:
|
|
295
|
+
integrity: v,
|
|
296
|
+
fetchPriority: w,
|
|
294
297
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
295
298
|
});
|
|
296
299
|
}
|
|
297
|
-
},
|
|
298
|
-
var
|
|
299
|
-
if (typeof r == "string" && r || (
|
|
300
|
+
}, E.preinitModule = function(r, e) {
|
|
301
|
+
var o = "";
|
|
302
|
+
if (typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && e.as !== "script" && (o += " The `as` option encountered was " + d(e.as) + "."), o)
|
|
300
303
|
console.error(
|
|
301
304
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
302
|
-
|
|
305
|
+
o
|
|
303
306
|
);
|
|
304
307
|
else
|
|
305
|
-
switch (
|
|
308
|
+
switch (o = e && typeof e.as == "string" ? e.as : "script", o) {
|
|
306
309
|
case "script":
|
|
307
310
|
break;
|
|
308
311
|
default:
|
|
309
|
-
|
|
312
|
+
o = d(o), console.error(
|
|
310
313
|
'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)',
|
|
311
|
-
|
|
314
|
+
o,
|
|
312
315
|
r
|
|
313
316
|
);
|
|
314
317
|
}
|
|
315
|
-
typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (
|
|
318
|
+
typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (o = a(
|
|
316
319
|
e.as,
|
|
317
320
|
e.crossOrigin
|
|
318
321
|
), n.d.M(r, {
|
|
319
|
-
crossOrigin:
|
|
322
|
+
crossOrigin: o,
|
|
320
323
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
321
324
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0
|
|
322
325
|
})) : e == null && n.d.M(r));
|
|
323
|
-
},
|
|
324
|
-
var
|
|
325
|
-
if (typeof r == "string" && r || (
|
|
326
|
+
}, E.preload = function(r, e) {
|
|
327
|
+
var o = "";
|
|
328
|
+
if (typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e == null || typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : typeof e.as == "string" && e.as || (o += " The `as` option encountered was " + f(e.as) + "."), o && console.error(
|
|
326
329
|
'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',
|
|
327
|
-
|
|
330
|
+
o
|
|
328
331
|
), typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
|
|
329
|
-
|
|
330
|
-
var y =
|
|
331
|
-
|
|
332
|
+
o = e.as;
|
|
333
|
+
var y = a(
|
|
334
|
+
o,
|
|
332
335
|
e.crossOrigin
|
|
333
336
|
);
|
|
334
|
-
n.d.L(r,
|
|
337
|
+
n.d.L(r, o, {
|
|
335
338
|
crossOrigin: y,
|
|
336
339
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0,
|
|
337
340
|
nonce: typeof e.nonce == "string" ? e.nonce : void 0,
|
|
@@ -343,218 +346,388 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
343
346
|
media: typeof e.media == "string" ? e.media : void 0
|
|
344
347
|
});
|
|
345
348
|
}
|
|
346
|
-
},
|
|
347
|
-
var
|
|
348
|
-
typeof r == "string" && r || (
|
|
349
|
+
}, E.preloadModule = function(r, e) {
|
|
350
|
+
var o = "";
|
|
351
|
+
typeof r == "string" && r || (o += " The `href` argument encountered was " + f(r) + "."), e !== void 0 && typeof e != "object" ? o += " The `options` argument encountered was " + f(e) + "." : e && "as" in e && typeof e.as != "string" && (o += " The `as` option encountered was " + f(e.as) + "."), o && console.error(
|
|
349
352
|
'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',
|
|
350
|
-
|
|
351
|
-
), typeof r == "string" && (e ? (
|
|
353
|
+
o
|
|
354
|
+
), typeof r == "string" && (e ? (o = a(
|
|
352
355
|
e.as,
|
|
353
356
|
e.crossOrigin
|
|
354
357
|
), n.d.m(r, {
|
|
355
358
|
as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
|
|
356
|
-
crossOrigin:
|
|
359
|
+
crossOrigin: o,
|
|
357
360
|
integrity: typeof e.integrity == "string" ? e.integrity : void 0
|
|
358
361
|
})) : n.d.m(r));
|
|
359
|
-
},
|
|
362
|
+
}, E.requestFormReset = function(r) {
|
|
360
363
|
n.d.r(r);
|
|
361
|
-
},
|
|
364
|
+
}, E.unstable_batchedUpdates = function(r, e) {
|
|
362
365
|
return r(e);
|
|
363
|
-
},
|
|
364
|
-
return
|
|
365
|
-
},
|
|
366
|
-
return
|
|
367
|
-
},
|
|
368
|
-
}()),
|
|
366
|
+
}, E.useFormState = function(r, e, o) {
|
|
367
|
+
return p().useFormState(r, e, o);
|
|
368
|
+
}, E.useFormStatus = function() {
|
|
369
|
+
return p().useHostTransitionStatus();
|
|
370
|
+
}, E.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
371
|
+
}()), E;
|
|
369
372
|
}
|
|
370
|
-
function
|
|
373
|
+
function Se() {
|
|
371
374
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
372
375
|
if (process.env.NODE_ENV !== "production")
|
|
373
376
|
throw new Error("^_^");
|
|
374
377
|
try {
|
|
375
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(
|
|
376
|
-
} catch (
|
|
377
|
-
console.error(
|
|
378
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Se);
|
|
379
|
+
} catch (s) {
|
|
380
|
+
console.error(s);
|
|
378
381
|
}
|
|
379
382
|
}
|
|
380
383
|
}
|
|
381
|
-
process.env.NODE_ENV === "production" ? (
|
|
382
|
-
var
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
384
|
+
process.env.NODE_ENV === "production" ? (Se(), K.exports = Ke()) : K.exports = We();
|
|
385
|
+
var Je = K.exports;
|
|
386
|
+
const Qe = /* @__PURE__ */ qe(Je);
|
|
387
|
+
function Y() {
|
|
388
|
+
return Y = Object.assign || function(s) {
|
|
389
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
390
|
+
var c = arguments[i];
|
|
391
|
+
for (var a in c)
|
|
392
|
+
Object.prototype.hasOwnProperty.call(c, a) && (s[a] = c[a]);
|
|
393
|
+
}
|
|
394
|
+
return s;
|
|
395
|
+
}, Y.apply(this, arguments);
|
|
396
|
+
}
|
|
397
|
+
var Ze = function(i, c) {
|
|
398
|
+
c === void 0 && (c = !0), x(function() {
|
|
399
|
+
if (c) {
|
|
400
|
+
var a = function(d) {
|
|
401
|
+
d.key === "Escape" && i(d);
|
|
402
|
+
};
|
|
403
|
+
return document.addEventListener("keyup", a), function() {
|
|
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
|
|
444
491
|
}
|
|
445
|
-
i.current = window.setTimeout(() => {
|
|
446
|
-
H.flushSync(() => e(!0)), H.flushSync(() => x());
|
|
447
|
-
}, c);
|
|
448
492
|
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
493
|
+
}, nt = ["top left", "top center", "top right", "right top", "right center", "right bottom", "bottom left", "bottom center", "bottom right", "left top", "left center", "left bottom"], ot = function(i, c, a, f, d) {
|
|
494
|
+
var p = d.offsetX, m = d.offsetY, n = f ? 8 : 0, t = a.split(" "), l = i.top + i.height / 2, r = i.left + i.width / 2, e = c.height, o = c.width, y = l - e / 2, v = r - o / 2, w = "", R = "0%", k = "0%";
|
|
495
|
+
switch (t[0]) {
|
|
496
|
+
case "top":
|
|
497
|
+
y -= e / 2 + i.height / 2 + n, w = "rotate(180deg) translateX(50%)", R = "100%", k = "50%";
|
|
498
|
+
break;
|
|
499
|
+
case "bottom":
|
|
500
|
+
y += e / 2 + i.height / 2 + n, w = "rotate(0deg) translateY(-100%) translateX(-50%)", k = "50%";
|
|
501
|
+
break;
|
|
502
|
+
case "left":
|
|
503
|
+
v -= o / 2 + i.width / 2 + n, w = " rotate(90deg) translateY(50%) translateX(-25%)", k = "100%", R = "50%";
|
|
504
|
+
break;
|
|
505
|
+
case "right":
|
|
506
|
+
v += o / 2 + i.width / 2 + n, w = "rotate(-90deg) translateY(-150%) translateX(25%)", R = "50%";
|
|
507
|
+
break;
|
|
453
508
|
}
|
|
454
|
-
|
|
455
|
-
|
|
509
|
+
switch (t[1]) {
|
|
510
|
+
case "top":
|
|
511
|
+
y = i.top, R = i.height / 2 + "px";
|
|
512
|
+
break;
|
|
513
|
+
case "bottom":
|
|
514
|
+
y = i.top - e + i.height, R = e - i.height / 2 + "px";
|
|
515
|
+
break;
|
|
516
|
+
case "left":
|
|
517
|
+
v = i.left, k = i.width / 2 + "px";
|
|
518
|
+
break;
|
|
519
|
+
case "right":
|
|
520
|
+
v = i.left - o + i.width, k = o - i.width / 2 + "px";
|
|
521
|
+
break;
|
|
456
522
|
}
|
|
457
|
-
|
|
458
|
-
|
|
523
|
+
return y = t[0] === "top" ? y - m : y + m, v = t[0] === "left" ? v - p : v + p, {
|
|
524
|
+
top: y,
|
|
525
|
+
left: v,
|
|
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());
|
|
459
544
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
545
|
+
return c;
|
|
546
|
+
}, at = function(i, c, a, f, d, p) {
|
|
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
|
|
467
564
|
};
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
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;
|
|
569
|
+
}
|
|
570
|
+
return t;
|
|
571
|
+
}, st = 0, ct = function() {
|
|
572
|
+
var i = document.getElementById("popup-root");
|
|
573
|
+
return i === null && (i = document.createElement("div"), i.setAttribute("id", "popup-root"), document.body.appendChild(i)), i;
|
|
574
|
+
}, lt = /* @__PURE__ */ Xe(function(s, i) {
|
|
575
|
+
var c = s.trigger, a = c === void 0 ? null : c, f = s.onOpen, d = f === void 0 ? function() {
|
|
576
|
+
} : f, p = s.onClose, m = p === void 0 ? function() {
|
|
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, v = 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), ve = N("popup-" + ++st), S = ne ? !0 : !a, j = N(0);
|
|
578
|
+
rt(function() {
|
|
579
|
+
return D ? (ye.current = document.activeElement, ge(), je(), xe()) : Ie(), function() {
|
|
580
|
+
clearTimeout(j.current);
|
|
478
581
|
};
|
|
479
|
-
}, [
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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"]'), g = Array.prototype.slice.call(_)[0];
|
|
612
|
+
g == null || g.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();
|
|
489
624
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
if (!o) {
|
|
502
|
-
j();
|
|
503
|
-
return;
|
|
625
|
+
};
|
|
626
|
+
});
|
|
627
|
+
var ge = function() {
|
|
628
|
+
if (!(S || !D) && !(!(C != null && C.current) || !(C != null && C.current) || !(b != null && b.current))) {
|
|
629
|
+
var u = C.current.getBoundingClientRect(), _ = b.current.getBoundingClientRect(), g = at(u, _, ke, F, {
|
|
630
|
+
offsetX: Ce,
|
|
631
|
+
offsetY: Le
|
|
632
|
+
}, Ae);
|
|
633
|
+
if (b.current.style.top = g.top + window.scrollY + "px", b.current.style.left = g.left + window.scrollX + "px", F && P.current) {
|
|
634
|
+
var M, $;
|
|
635
|
+
P.current.style.transform = g.transform, P.current.style.setProperty("-ms-transform", g.transform), P.current.style.setProperty("-webkit-transform", g.transform), P.current.style.top = ((M = X.top) === null || M === void 0 ? void 0 : M.toString()) || g.arrowTop, P.current.style.left = (($ = X.left) === null || $ === void 0 ? void 0 : $.toString()) || g.arrowLeft;
|
|
504
636
|
}
|
|
505
|
-
const S = s.relatedTarget;
|
|
506
|
-
S && ((h = O.current) != null && h.contains(S)) || K();
|
|
507
637
|
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
ref: b,
|
|
534
|
-
id: y,
|
|
535
|
-
role: "tooltip",
|
|
536
|
-
"data-position": Z,
|
|
537
|
-
className: q(U.tooltip, U.open, d),
|
|
538
|
-
style: {
|
|
539
|
-
"--tooltip-shift-x": `${ee}px`,
|
|
540
|
-
"--tooltip-shift-y": `${te}px`
|
|
541
|
-
},
|
|
542
|
-
...ie,
|
|
543
|
-
children: T
|
|
544
|
-
}
|
|
545
|
-
)
|
|
546
|
-
]
|
|
638
|
+
};
|
|
639
|
+
Ze(L, Te), tt(b, D && S), Be(ge, we), et(a ? [b, C] : [b], L, R && !v);
|
|
640
|
+
var $e = function() {
|
|
641
|
+
for (var u = {
|
|
642
|
+
key: "T",
|
|
643
|
+
ref: C,
|
|
644
|
+
"aria-describedby": ve.current
|
|
645
|
+
}, _ = Array.isArray(I) ? I : [I], g = 0, M = _.length; g < M; g++)
|
|
646
|
+
switch (_[g]) {
|
|
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);
|
|
547
663
|
}
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
664
|
+
return !!a && T.cloneElement(a, u);
|
|
665
|
+
}, He = function() {
|
|
666
|
+
var u = S ? H.popupContent.modal : H.popupContent.tooltip, _ = {
|
|
667
|
+
className: "popup-content " + (A !== "" ? A.split(" ").map(function(g) {
|
|
668
|
+
return g + "-content";
|
|
669
|
+
}).join(" ") : ""),
|
|
670
|
+
style: Y({}, u, Re, {
|
|
671
|
+
pointerEvents: "auto"
|
|
672
|
+
}),
|
|
673
|
+
ref: b,
|
|
674
|
+
onClick: function(M) {
|
|
675
|
+
M.stopPropagation();
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
return !ne && I.indexOf("hover") >= 0 && (_.onMouseEnter = G, _.onMouseLeave = q), _;
|
|
679
|
+
}, me = function() {
|
|
680
|
+
return T.createElement("div", Object.assign({}, He(), {
|
|
681
|
+
key: "C",
|
|
682
|
+
role: S ? "dialog" : "tooltip",
|
|
683
|
+
id: ve.current
|
|
684
|
+
}), F && !S && T.createElement("div", {
|
|
685
|
+
ref: P,
|
|
686
|
+
style: H.popupArrow
|
|
687
|
+
}, T.createElement("svg", {
|
|
688
|
+
"data-testid": "arrow",
|
|
689
|
+
className: "popup-arrow " + (A !== "" ? A.split(" ").map(function(u) {
|
|
690
|
+
return u + "-arrow";
|
|
691
|
+
}).join(" ") : ""),
|
|
692
|
+
viewBox: "0 0 32 16",
|
|
693
|
+
style: Y({
|
|
694
|
+
position: "absolute"
|
|
695
|
+
}, X)
|
|
696
|
+
}, T.createElement("path", {
|
|
697
|
+
d: "M16 0l16 16H0z",
|
|
698
|
+
fill: "currentcolor"
|
|
699
|
+
}))), z && typeof z == "function" ? z(L, D) : z);
|
|
700
|
+
}, Ye = !(I.indexOf("hover") >= 0), ze = S ? H.overlay.modal : H.overlay.tooltip, Ue = [Ye && T.createElement("div", {
|
|
701
|
+
key: "O",
|
|
702
|
+
"data-testid": "overlay",
|
|
703
|
+
"data-popup": S ? "modal" : "tooltip",
|
|
704
|
+
className: "popup-overlay " + (A !== "" ? A.split(" ").map(function(h) {
|
|
705
|
+
return h + "-overlay";
|
|
706
|
+
}).join(" ") : ""),
|
|
707
|
+
style: Y({}, ze, De, {
|
|
708
|
+
pointerEvents: R && v || S ? "auto" : "none"
|
|
709
|
+
}),
|
|
710
|
+
onClick: R && v ? L : void 0,
|
|
711
|
+
tabIndex: -1
|
|
712
|
+
}, S && me()), !S && me()];
|
|
713
|
+
return T.createElement(T.Fragment, null, $e(), D && Qe.createPortal(Ue, ct()));
|
|
714
|
+
});
|
|
715
|
+
const ut = "_content_1wx0f_2", be = {
|
|
716
|
+
content: ut
|
|
717
|
+
}, yt = ({
|
|
718
|
+
tooltipClassName: s,
|
|
719
|
+
contentClassName: i,
|
|
720
|
+
children: c,
|
|
721
|
+
...a
|
|
722
|
+
}) => /* @__PURE__ */ he(
|
|
723
|
+
lt,
|
|
724
|
+
{
|
|
725
|
+
arrow: !0,
|
|
726
|
+
...a,
|
|
727
|
+
className: Oe(be.tooltip, s),
|
|
728
|
+
children: /* @__PURE__ */ he("div", { className: Oe(be.content, i), children: c })
|
|
729
|
+
}
|
|
730
|
+
);
|
|
558
731
|
export {
|
|
559
|
-
|
|
732
|
+
yt as Tooltip
|
|
560
733
|
};
|