@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.
@@ -1,7 +1,10 @@
1
- import { jsxs as ae, jsx as ce } from "react/jsx-runtime";
2
- import m, { useEffect as V, useState as se } from "react";
3
- import { c as q } from "../../clsx-OuTLNxxd.js";
4
- import '../../assets/Tooltip.css';var B = { exports: {} }, f = {};
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 W;
15
- function ue() {
16
- if (W) return f;
17
- W = 1;
18
- var u = m;
19
- function T(n) {
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 o = 2; o < arguments.length; o++)
24
- t += "&args[]=" + encodeURIComponent(arguments[o]);
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 a() {
31
+ function c() {
29
32
  }
30
- var c = {
33
+ var a = {
31
34
  d: {
32
- f: a,
35
+ f: c,
33
36
  r: function() {
34
- throw Error(T(522));
37
+ throw Error(i(522));
35
38
  },
36
- D: a,
37
- C: a,
38
- L: a,
39
- m: a,
40
- X: a,
41
- S: a,
42
- M: a
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
- }, d = Symbol.for("react.portal");
47
- function v(n, t, o) {
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: d,
53
+ $$typeof: f,
51
54
  key: r == null ? null : "" + r,
52
55
  children: n,
53
56
  containerInfo: t,
54
- implementation: o
57
+ implementation: l
55
58
  };
56
59
  }
57
- var _ = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
58
- function R(n, t) {
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 f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = c, f.createPortal = function(n, t) {
64
- var o = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
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(T(299));
67
- return v(n, t, null, o);
68
- }, f.flushSync = function(n) {
69
- var t = _.T, o = c.p;
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 (_.T = null, c.p = 2, n) return n();
74
+ if (p.T = null, a.p = 2, n) return n();
72
75
  } finally {
73
- _.T = t, c.p = o, c.d.f();
76
+ p.T = t, a.p = l, a.d.f();
74
77
  }
75
- }, f.preconnect = function(n, t) {
76
- typeof n == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, c.d.C(n, t));
77
- }, f.prefetchDNS = function(n) {
78
- typeof n == "string" && c.d.D(n);
79
- }, f.preinit = function(n, t) {
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 o = t.as, r = R(o, t.crossOrigin), e = typeof t.integrity == "string" ? t.integrity : void 0, i = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
82
- o === "style" ? c.d.S(
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: i
91
+ fetchPriority: o
89
92
  }
90
- ) : o === "script" && c.d.X(n, {
93
+ ) : l === "script" && a.d.X(n, {
91
94
  crossOrigin: r,
92
95
  integrity: e,
93
- fetchPriority: i,
96
+ fetchPriority: o,
94
97
  nonce: typeof t.nonce == "string" ? t.nonce : void 0
95
98
  });
96
99
  }
97
- }, f.preinitModule = function(n, t) {
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 o = R(
104
+ var l = m(
102
105
  t.as,
103
106
  t.crossOrigin
104
107
  );
105
- c.d.M(n, {
106
- crossOrigin: o,
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 && c.d.M(n);
112
- }, f.preload = function(n, t) {
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 o = t.as, r = R(o, t.crossOrigin);
115
- c.d.L(n, o, {
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
- }, f.preloadModule = function(n, t) {
130
+ }, O.preloadModule = function(n, t) {
128
131
  if (typeof n == "string")
129
132
  if (t) {
130
- var o = R(t.as, t.crossOrigin);
131
- c.d.m(n, {
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: o,
136
+ crossOrigin: l,
134
137
  integrity: typeof t.integrity == "string" ? t.integrity : void 0
135
138
  });
136
- } else c.d.m(n);
137
- }, f.requestFormReset = function(n) {
138
- c.d.r(n);
139
- }, f.unstable_batchedUpdates = function(n, t) {
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
- }, f.useFormState = function(n, t, o) {
142
- return _.H.useFormState(n, t, o);
143
- }, f.useFormStatus = function() {
144
- return _.H.useHostTransitionStatus();
145
- }, f.version = "19.1.1", f;
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 g = {};
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 X;
158
- function le() {
159
- return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
160
- function u() {
160
+ var _e;
161
+ function We() {
162
+ return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
163
+ function s() {
161
164
  }
162
- function T(r) {
165
+ function i(r) {
163
166
  return "" + r;
164
167
  }
165
- function a(r, e, i) {
168
+ function c(r, e, o) {
166
169
  var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
167
170
  try {
168
- T(y);
169
- var O = !1;
171
+ i(y);
172
+ var v = !1;
170
173
  } catch {
171
- O = !0;
174
+ v = !0;
172
175
  }
173
- return O && (console.error(
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
- ), T(y)), {
179
+ ), i(y)), {
177
180
  $$typeof: t,
178
181
  key: y == null ? null : "" + y,
179
182
  children: r,
180
183
  containerInfo: e,
181
- implementation: i
184
+ implementation: o
182
185
  };
183
186
  }
184
- function c(r, e) {
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 d(r) {
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 v(r) {
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 = o.H;
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 R = m, n = {
209
+ var m = T, n = {
207
210
  d: {
208
- f: u,
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: u,
215
- C: u,
216
- L: u,
217
- m: u,
218
- X: u,
219
- S: u,
220
- M: u
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"), o = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
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
- ), g.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, g.createPortal = function(r, e) {
228
- var i = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
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 a(r, e, null, i);
232
- }, g.flushSync = function(r) {
233
- var e = o.T, i = n.p;
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 (o.T = null, n.p = 2, r)
238
+ if (l.T = null, n.p = 2, r)
236
239
  return r();
237
240
  } finally {
238
- o.T = e, n.p = i, n.d.f() && console.error(
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
- }, g.preconnect = function(r, e) {
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
- v(e)
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
- d(e.crossOrigin)
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
- d(r)
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
- }, g.prefetchDNS = function(r) {
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
- d(r)
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
- v(e)
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
- v(e)
269
+ d(e)
267
270
  );
268
271
  }
269
272
  typeof r == "string" && n.d.D(r);
270
- }, g.preinit = function(r, e) {
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
- v(e)
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
- v(e.as)
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
- d(r)
282
+ f(r)
280
283
  ), typeof r == "string" && e && typeof e.as == "string") {
281
- var i = e.as, y = c(i, e.crossOrigin), O = typeof e.integrity == "string" ? e.integrity : void 0, b = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
282
- i === "style" ? n.d.S(
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: O,
288
- fetchPriority: b
290
+ integrity: v,
291
+ fetchPriority: w
289
292
  }
290
- ) : i === "script" && n.d.X(r, {
293
+ ) : o === "script" && n.d.X(r, {
291
294
  crossOrigin: y,
292
- integrity: O,
293
- fetchPriority: b,
295
+ integrity: v,
296
+ fetchPriority: w,
294
297
  nonce: typeof e.nonce == "string" ? e.nonce : void 0
295
298
  });
296
299
  }
297
- }, g.preinitModule = function(r, e) {
298
- var i = "";
299
- if (typeof r == "string" && r || (i += " The `href` argument encountered was " + d(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + d(e) + "." : e && "as" in e && e.as !== "script" && (i += " The `as` option encountered was " + v(e.as) + "."), i)
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
- i
305
+ o
303
306
  );
304
307
  else
305
- switch (i = e && typeof e.as == "string" ? e.as : "script", i) {
308
+ switch (o = e && typeof e.as == "string" ? e.as : "script", o) {
306
309
  case "script":
307
310
  break;
308
311
  default:
309
- i = v(i), console.error(
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
- i,
314
+ o,
312
315
  r
313
316
  );
314
317
  }
315
- typeof r == "string" && (typeof e == "object" && e !== null ? (e.as == null || e.as === "script") && (i = c(
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: i,
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
- }, g.preload = function(r, e) {
324
- var i = "";
325
- if (typeof r == "string" && r || (i += " The `href` argument encountered was " + d(r) + "."), e == null || typeof e != "object" ? i += " The `options` argument encountered was " + d(e) + "." : typeof e.as == "string" && e.as || (i += " The `as` option encountered was " + d(e.as) + "."), i && console.error(
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
- i
330
+ o
328
331
  ), typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
329
- i = e.as;
330
- var y = c(
331
- i,
332
+ o = e.as;
333
+ var y = a(
334
+ o,
332
335
  e.crossOrigin
333
336
  );
334
- n.d.L(r, i, {
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
- }, g.preloadModule = function(r, e) {
347
- var i = "";
348
- typeof r == "string" && r || (i += " The `href` argument encountered was " + d(r) + "."), e !== void 0 && typeof e != "object" ? i += " The `options` argument encountered was " + d(e) + "." : e && "as" in e && typeof e.as != "string" && (i += " The `as` option encountered was " + d(e.as) + "."), i && console.error(
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
- i
351
- ), typeof r == "string" && (e ? (i = c(
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: i,
359
+ crossOrigin: o,
357
360
  integrity: typeof e.integrity == "string" ? e.integrity : void 0
358
361
  })) : n.d.m(r));
359
- }, g.requestFormReset = function(r) {
362
+ }, E.requestFormReset = function(r) {
360
363
  n.d.r(r);
361
- }, g.unstable_batchedUpdates = function(r, e) {
364
+ }, E.unstable_batchedUpdates = function(r, e) {
362
365
  return r(e);
363
- }, g.useFormState = function(r, e, i) {
364
- return _().useFormState(r, e, i);
365
- }, g.useFormStatus = function() {
366
- return _().useHostTransitionStatus();
367
- }, g.version = "19.1.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
368
- }()), g;
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 J() {
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(J);
376
- } catch (u) {
377
- console.error(u);
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" ? (J(), B.exports = ue()) : B.exports = le();
382
- var H = B.exports;
383
- const de = "_wrapper_1bu3d_1", fe = "_tooltip_1bu3d_6", ge = "_open_1bu3d_19", U = {
384
- wrapper: de,
385
- tooltip: fe,
386
- open: ge
387
- }, ve = ({
388
- trigger: u,
389
- children: T,
390
- position: a = "top",
391
- delay: c = 0,
392
- tooltipClassName: d,
393
- wrapperClassName: v,
394
- on: _ = "auto",
395
- autoAdjust: R = !0,
396
- flip: n = !0,
397
- viewportPadding: t = 4,
398
- allowEnter: o = !0
399
- }) => {
400
- const [r, e] = m.useState(!1), i = m.useRef(null), y = m.useId(), O = m.useRef(null), b = m.useRef(null), Q = ye(), M = _ === "auto" ? Q ? "hover" : "click" : _, G = o ? 200 : 0, k = m.useRef(null), [Z, F] = m.useState(a), [ee, P] = m.useState(0), [te, I] = m.useState(0);
401
- m.useEffect(() => {
402
- r || (F(a), P(0), I(0));
403
- }, [r, a]);
404
- function C() {
405
- i.current && (window.clearTimeout(i.current), i.current = null);
406
- }
407
- function x() {
408
- const s = O.current, S = b.current;
409
- if (!s || !S) return;
410
- P(0), I(0);
411
- const h = window.innerWidth, $ = window.innerHeight, w = s.getBoundingClientRect(), A = S.getBoundingClientRect();
412
- let D = a;
413
- if (n)
414
- if (a === "top" || a === "bottom") {
415
- const l = w.top, p = $ - w.bottom, E = A.height + t;
416
- a === "top" && l < E && p > l ? D = "bottom" : a === "bottom" && p < E && l > p && (D = "top");
417
- } else {
418
- const l = w.left, p = h - w.right, E = A.width + t;
419
- a === "left" && l < E && p > l ? D = "right" : a === "right" && p < E && l > p && (D = "left");
420
- }
421
- if (F(D), R)
422
- if (D === "top" || D === "bottom") {
423
- const l = w.left + w.width / 2 - A.width / 2, p = t, E = h - t - A.width;
424
- let L = 0;
425
- l < p ? L = p - l : l > E && (L = E - l), P(L);
426
- } else {
427
- const l = w.top + w.height / 2 - A.height / 2, p = t, E = $ - t - A.height;
428
- let L = 0;
429
- l < p ? L = p - l : l > E && (L = E - l), I(L);
430
- }
431
- }
432
- function N() {
433
- k.current && (window.clearTimeout(k.current), k.current = null);
434
- }
435
- function K() {
436
- N(), k.current = window.setTimeout(() => {
437
- e(!1);
438
- }, G);
439
- }
440
- function Y() {
441
- if (C(), N(), r) {
442
- x();
443
- return;
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
- function re() {
450
- C(), N(), k.current = window.setTimeout(() => {
451
- console.log("Hiding tooltip"), e(!1);
452
- }, G);
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
- function j() {
455
- C(), N(), e(!1);
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
- function z() {
458
- C(), r ? e(!1) : (H.flushSync(() => e(!0)), H.flushSync(() => x()));
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
- V(() => {
461
- if (!r) return;
462
- function s() {
463
- x();
464
- }
465
- return window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), () => {
466
- window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0);
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
- }, [r, a, R, n, t]), V(() => {
469
- if (M !== "click" || !r) return;
470
- function s(h) {
471
- O.current && (O.current.contains(h.target) || e(!1));
472
- }
473
- function S(h) {
474
- h.key === "Escape" && e(!1);
475
- }
476
- return document.addEventListener("mousedown", s), document.addEventListener("keydown", S), () => {
477
- document.removeEventListener("mousedown", s), document.removeEventListener("keydown", S);
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
- }, [r, M]);
480
- const ne = M === "hover" ? {
481
- onMouseEnter: () => {
482
- N(), Y();
483
- },
484
- onMouseLeave: (s) => {
485
- var h;
486
- if (!o) {
487
- j();
488
- return;
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
- const S = s.relatedTarget;
491
- S && ((h = b.current) != null && h.contains(S)) || K();
492
- },
493
- onFocus: Y,
494
- onBlur: j
495
- } : {}, ie = M === "hover" && o ? {
496
- onMouseEnter: () => {
497
- N();
498
- },
499
- onMouseLeave: (s) => {
500
- var h;
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
- } : {}, oe = M === "click" ? {
509
- onClick: (s) => {
510
- s.preventDefault(), z();
511
- },
512
- onKeyDown: (s) => {
513
- s.key === "Enter" || s.key === " " ? (s.preventDefault(), z()) : s.key === "Escape" && re();
514
- }
515
- } : {};
516
- return /* @__PURE__ */ ae(
517
- "span",
518
- {
519
- ref: O,
520
- className: q(U.wrapper, v),
521
- ...ne,
522
- ...oe,
523
- children: [
524
- m.cloneElement(u, {
525
- "aria-describedby": y,
526
- "aria-haspopup": "true",
527
- "aria-expanded": r || void 0,
528
- tabIndex: u.props.tabIndex ?? (M === "click" ? 0 : void 0)
529
- }),
530
- r && /* @__PURE__ */ ce(
531
- "span",
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
- function ye() {
551
- const [u, T] = se(() => typeof window > "u" ? !0 : window.matchMedia("(hover: hover) and (pointer: fine)").matches);
552
- return V(() => {
553
- if (typeof window > "u") return;
554
- const a = window.matchMedia("(hover: hover) and (pointer: fine)"), c = () => T(a.matches);
555
- return a.addEventListener("change", c), () => a.removeEventListener("change", c);
556
- }, []), u;
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
- ve as Tooltip
732
+ yt as Tooltip
560
733
  };