@fluidattacks/design 3.1.2 → 3.1.3
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/button.js +1 -1
- package/dist/button.mjs +1 -1
- package/dist/{index-BjQJt0dx.js → index-BRxUTT0G.js} +12 -12
- package/dist/{index-BPVSZmaF.mjs → index-i8Ii0UcD.mjs} +207 -200
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ function w(e2) {
|
|
|
9
9
|
return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
|
|
10
10
|
}
|
|
11
11
|
var x, $ = { exports: {} }, S = {};
|
|
12
|
-
var
|
|
12
|
+
var k, _, j = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.development.js
|
|
@@ -20,7 +20,7 @@ var _, k, j = {};
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
function O() {
|
|
23
|
-
return
|
|
23
|
+
return k || (k = 1, "production" !== process.env.NODE_ENV && function() {
|
|
24
24
|
var e2 = t, n2 = Symbol.for("react.element"), r2 = Symbol.for("react.portal"), o2 = Symbol.for("react.fragment"), i2 = Symbol.for("react.strict_mode"), l2 = Symbol.for("react.profiler"), a2 = Symbol.for("react.provider"), c2 = Symbol.for("react.context"), s2 = Symbol.for("react.forward_ref"), u2 = Symbol.for("react.suspense"), f2 = Symbol.for("react.suspense_list"), d2 = Symbol.for("react.memo"), p2 = Symbol.for("react.lazy"), y2 = Symbol.for("react.offscreen"), m2 = Symbol.iterator;
|
|
25
25
|
var g2 = e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
26
26
|
function h2(e3) {
|
|
@@ -82,10 +82,10 @@ function O() {
|
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
84
|
v2 = Symbol.for("react.module.reference");
|
|
85
|
-
var x2, $2, S2,
|
|
86
|
-
function
|
|
85
|
+
var x2, $2, S2, k2, _2, O2, E2, A2 = Object.assign, R2 = 0;
|
|
86
|
+
function T2() {
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
T2.__reactDisabledLog = true;
|
|
89
89
|
var C2, L2 = g2.ReactCurrentDispatcher;
|
|
90
90
|
function z2(e3, t2, n3) {
|
|
91
91
|
if (void 0 === C2) try {
|
|
@@ -104,12 +104,12 @@ function O() {
|
|
|
104
104
|
F2 = true;
|
|
105
105
|
var o3, i3 = Error.prepareStackTrace;
|
|
106
106
|
Error.prepareStackTrace = void 0, o3 = L2.current, L2.current = null, function() {
|
|
107
|
-
if (0 ===
|
|
108
|
-
x2 = console.log, $2 = console.info, S2 = console.warn,
|
|
109
|
-
var e4 = { configurable: true, enumerable: true, value:
|
|
107
|
+
if (0 === R2) {
|
|
108
|
+
x2 = console.log, $2 = console.info, S2 = console.warn, k2 = console.error, _2 = console.group, O2 = console.groupCollapsed, E2 = console.groupEnd;
|
|
109
|
+
var e4 = { configurable: true, enumerable: true, value: T2, writable: true };
|
|
110
110
|
Object.defineProperties(console, { info: e4, log: e4, warn: e4, error: e4, group: e4, groupCollapsed: e4, groupEnd: e4 });
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
R2++;
|
|
113
113
|
}();
|
|
114
114
|
try {
|
|
115
115
|
if (t2) {
|
|
@@ -156,11 +156,11 @@ function O() {
|
|
|
156
156
|
}
|
|
157
157
|
} finally {
|
|
158
158
|
F2 = false, L2.current = o3, function() {
|
|
159
|
-
if (0 == --
|
|
159
|
+
if (0 == --R2) {
|
|
160
160
|
var e4 = { configurable: true, enumerable: true, writable: true };
|
|
161
|
-
Object.defineProperties(console, { log: A2({}, e4, { value: x2 }), info: A2({}, e4, { value: $2 }), warn: A2({}, e4, { value: S2 }), error: A2({}, e4, { value:
|
|
161
|
+
Object.defineProperties(console, { log: A2({}, e4, { value: x2 }), info: A2({}, e4, { value: $2 }), warn: A2({}, e4, { value: S2 }), error: A2({}, e4, { value: k2 }), group: A2({}, e4, { value: _2 }), groupCollapsed: A2({}, e4, { value: O2 }), groupEnd: A2({}, e4, { value: E2 }) });
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
R2 < 0 && h2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
164
164
|
}(), Error.prepareStackTrace = i3;
|
|
165
165
|
}
|
|
166
166
|
var d3 = e3 ? e3.displayName || e3.name : "", p3 = d3 ? z2(d3) : "";
|
|
@@ -217,8 +217,8 @@ function O() {
|
|
|
217
217
|
return "function" == typeof Symbol && Symbol.toStringTag && e4[Symbol.toStringTag] || e4.constructor.name || "Object";
|
|
218
218
|
}(e3)), U2(e3);
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
function
|
|
220
|
+
var K2, Y2, X2 = g2.ReactCurrentOwner, J2 = { key: true, ref: true, __self: true, __source: true };
|
|
221
|
+
function Z2(e3, t2, r3, o3, i3) {
|
|
222
222
|
var l3, a3 = {}, c3 = null, s3 = null;
|
|
223
223
|
for (l3 in void 0 !== r3 && (G2(r3), c3 = "" + r3), function(e4) {
|
|
224
224
|
if (M2.call(e4, "key")) {
|
|
@@ -234,7 +234,7 @@ function O() {
|
|
|
234
234
|
return void 0 !== e4.ref;
|
|
235
235
|
}(t2) && (s3 = t2.ref, function(e4) {
|
|
236
236
|
"string" == typeof e4.ref && X2.current;
|
|
237
|
-
}(t2)), t2) M2.call(t2, l3) && !
|
|
237
|
+
}(t2)), t2) M2.call(t2, l3) && !J2.hasOwnProperty(l3) && (a3[l3] = t2[l3]);
|
|
238
238
|
if (e3 && e3.defaultProps) {
|
|
239
239
|
var u3 = e3.defaultProps;
|
|
240
240
|
for (l3 in u3) void 0 === a3[l3] && (a3[l3] = u3[l3]);
|
|
@@ -243,12 +243,12 @@ function O() {
|
|
|
243
243
|
var f3 = "function" == typeof e3 ? e3.displayName || e3.name || "Unknown" : e3;
|
|
244
244
|
c3 && function(e4, t3) {
|
|
245
245
|
var n3 = function() {
|
|
246
|
-
|
|
246
|
+
K2 || (K2 = true, h2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t3));
|
|
247
247
|
};
|
|
248
248
|
n3.isReactWarning = true, Object.defineProperty(e4, "key", { get: n3, configurable: true });
|
|
249
249
|
}(a3, f3), s3 && function(e4, t3) {
|
|
250
250
|
var n3 = function() {
|
|
251
|
-
|
|
251
|
+
Y2 || (Y2 = true, h2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t3));
|
|
252
252
|
};
|
|
253
253
|
n3.isReactWarning = true, Object.defineProperty(e4, "ref", { get: n3, configurable: true });
|
|
254
254
|
}(a3, f3);
|
|
@@ -344,7 +344,8 @@ function O() {
|
|
|
344
344
|
"function" != typeof n3.getDefaultProps || n3.getDefaultProps.isReactClassApproved || h2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
var se2 = {};
|
|
348
|
+
function ue2(e3, t2, r3, m3, g3, b3) {
|
|
348
349
|
var x3 = function(e4) {
|
|
349
350
|
return "string" == typeof e4 || "function" == typeof e4 || e4 === o2 || e4 === l2 || e4 === i2 || e4 === u2 || e4 === f2 || e4 === y2 || "object" == typeof e4 && null !== e4 && (e4.$$typeof === p2 || e4.$$typeof === d2 || e4.$$typeof === a2 || e4.$$typeof === c2 || e4.$$typeof === s2 || e4.$$typeof === v2 || void 0 !== e4.getModuleId);
|
|
350
351
|
}(e3);
|
|
@@ -354,15 +355,21 @@ function O() {
|
|
|
354
355
|
var S3;
|
|
355
356
|
$3 += oe2(), null === e3 ? S3 = "null" : q2(e3) ? S3 = "array" : void 0 !== e3 && e3.$$typeof === n2 ? (S3 = "<" + (w2(e3.type) || "Unknown") + " />", $3 = " Did you accidentally export a JSX literal instead of a component?") : S3 = typeof e3, h2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S3, $3);
|
|
356
357
|
}
|
|
357
|
-
var
|
|
358
|
-
if (null ==
|
|
358
|
+
var k3 = Z2(e3, t2, r3, g3, b3);
|
|
359
|
+
if (null == k3) return k3;
|
|
359
360
|
if (x3) {
|
|
360
|
-
var
|
|
361
|
-
if (void 0 !==
|
|
362
|
-
for (var j2 = 0; j2 <
|
|
363
|
-
Object.freeze && Object.freeze(
|
|
361
|
+
var _3 = t2.children;
|
|
362
|
+
if (void 0 !== _3) if (m3) if (q2(_3)) {
|
|
363
|
+
for (var j2 = 0; j2 < _3.length; j2++) ae2(_3[j2], e3);
|
|
364
|
+
Object.freeze && Object.freeze(_3);
|
|
364
365
|
} else h2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
365
|
-
else ae2(
|
|
366
|
+
else ae2(_3, e3);
|
|
367
|
+
}
|
|
368
|
+
if (M2.call(t2, "key")) {
|
|
369
|
+
var O3 = w2(e3), E3 = Object.keys(t2).filter(function(e4) {
|
|
370
|
+
return "key" !== e4;
|
|
371
|
+
}), A3 = E3.length > 0 ? "{key: someKey, " + E3.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
372
|
+
if (!se2[O3 + A3]) h2('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', A3, O3, E3.length > 0 ? "{" + E3.join(": ..., ") + ": ...}" : "{}", O3), se2[O3 + A3] = true;
|
|
366
373
|
}
|
|
367
374
|
return e3 === o2 ? function(e4) {
|
|
368
375
|
for (var t3 = Object.keys(e4.props), n3 = 0; n3 < t3.length; n3++) {
|
|
@@ -373,17 +380,17 @@ function O() {
|
|
|
373
380
|
}
|
|
374
381
|
}
|
|
375
382
|
null !== e4.ref && (ne2(e4), h2("Invalid attribute `ref` supplied to `React.Fragment`."), ne2(null));
|
|
376
|
-
}(
|
|
383
|
+
}(k3) : ce2(k3), k3;
|
|
377
384
|
}
|
|
378
|
-
var
|
|
379
|
-
return
|
|
380
|
-
},
|
|
381
|
-
return
|
|
385
|
+
var fe2 = function(e3, t2, n3) {
|
|
386
|
+
return ue2(e3, t2, n3, false);
|
|
387
|
+
}, de2 = function(e3, t2, n3) {
|
|
388
|
+
return ue2(e3, t2, n3, true);
|
|
382
389
|
};
|
|
383
|
-
j.Fragment = o2, j.jsx =
|
|
390
|
+
j.Fragment = o2, j.jsx = fe2, j.jsxs = de2;
|
|
384
391
|
}()), j;
|
|
385
392
|
}
|
|
386
|
-
var E = (
|
|
393
|
+
var E = (_ || (_ = 1, "production" === process.env.NODE_ENV ? $.exports = function() {
|
|
387
394
|
if (x) return S;
|
|
388
395
|
x = 1;
|
|
389
396
|
var e2 = t, n2 = Symbol.for("react.element"), r2 = Symbol.for("react.fragment"), o2 = Object.prototype.hasOwnProperty, i2 = e2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l2 = { key: true, ref: true, __self: true, __source: true };
|
|
@@ -395,20 +402,20 @@ var E = (k || (k = 1, "production" === process.env.NODE_ENV ? $.exports = functi
|
|
|
395
402
|
}
|
|
396
403
|
return S.Fragment = r2, S.jsx = a2, S.jsxs = a2, S;
|
|
397
404
|
}() : $.exports = O()), $.exports);
|
|
398
|
-
const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "briefcase", "bug", "buildings", "bullseye-pointer", "calendar-clock", "calendar-xmark", "chart-network", "clipboard-check", "comment", "envelope", "eye", "file", "flag", "globe", "hand-holding-dollar", "hands-clapping", "headset", "hexagon-exclamation", "light-emergency-on", "magnifying-glass", "pen-line", "plane-departure", "screwdriver-wrench", "sensor-triangle-exclamation", "shield-check", "sidebar", "skull", "sliders", "star-christmas", "telescope", "trash", "unlock", "user-group", "user-hoodie", "xmark"],
|
|
405
|
+
const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "briefcase", "bug", "buildings", "bullseye-pointer", "calendar-clock", "calendar-xmark", "chart-network", "clipboard-check", "comment", "envelope", "eye", "file", "flag", "globe", "hand-holding-dollar", "hands-clapping", "headset", "hexagon-exclamation", "light-emergency-on", "magnifying-glass", "pen-line", "plane-departure", "screwdriver-wrench", "sensor-triangle-exclamation", "shield-check", "sidebar", "skull", "sliders", "star-christmas", "telescope", "trash", "unlock", "user-group", "user-hoodie", "xmark"], R = [["fal", "arrow-down"], ["fal", "arrow-left"], ["fal", "arrow-right"], ["fal", "arrow-up"], ["fal", "plus"], ["fal", "minus"], ["fas", "check"], ["fas", "circle-question"]], T = { typography: { type: { primary: "Roboto, sans-serif", poppins: "'Poppins', sans-serif", mono: "'Space Mono', monospace" }, heading: { xxl: "64px", xl: "48px", lg: "32px", md: "24px", sm: "20px", xs: "16px" }, text: { xl: "20px", lg: "18px", md: "16px", sm: "14px", xs: "12px" }, weight: { bold: "700", semibold: "600", regular: "400" } }, shadows: { none: "none", sm: "0px 1px 2px 0px rgba(16, 24, 40, 0.15)", md: "0px 4px 6px 0px rgba(16, 24, 40, 0.15)", lg: "0px 8px 24px 0px rgba(16, 24, 40, 0.15)" }, breakpoints: { mobile: "480px", tablet: "960px", sm: "1024px", md: "1440px", lg: "1920px" }, spacing: { 0: "0rem", 0.125: "0.125rem", 0.188: "0.188rem", 0.25: "0.25rem", 0.5: "0.5rem", 0.625: "0.625rem", 0.75: "0.75rem", 1: "1rem", 1.25: "1.25rem", 1.5: "1.5rem", 1.75: "1.75rem", 2: "2rem", 2.25: "2.25rem", 2.5: "2.5rem", 3: "3rem", 3.5: "3.5rem", 4: "4rem", 4.5: "4.5rem", 5: "5rem", 6: "6rem" }, palette: { primary: { 25: "#fef2f3", 50: "#fddfe2", 100: "#fbbac0", 200: "#f9959e", 300: "#f65e6a", 400: "#f32637", 500: "#bf0b1a", 600: "#ac0a17", 700: "#9a0915", 800: "#870812", 900: "#750710" }, complementary: { 25: "", 50: "", 100: "#ffe6ff", 200: "", 300: "#b8075d", 400: "", 500: "#7f0540", 600: "", 700: "#59042d", 800: "", 900: "#460323" }, error: { 25: "", 50: "#fef3f2", 100: "", 200: "#fecdca", 300: "", 400: "", 500: "#f04438", 600: "", 700: "#b42318", 800: "", 900: "" }, info: { 25: "", 50: "#eff8ff", 100: "", 200: "#b2ddff", 300: "", 400: "", 500: "#2e90fa", 600: "", 700: "#175cd3", 800: "", 900: "" }, warning: { 25: "", 50: "#fffaeb", 100: "", 200: "#fef0c7", 300: "", 400: "#ffd562", 500: "#fdb022", 600: "#dc6803", 700: "#b54708", 800: "", 900: "" }, success: { 25: "", 50: "#f6fef9", 100: "", 200: "#a6f4c5", 300: "", 400: "", 500: "#12b76a", 600: "", 700: "#027a48", 800: "", 900: "" }, black: "#0c111d", white: "#ffffff", gray: { 25: "#fcfcfd", 50: "#f9fafb", 100: "#f2f4f7", 200: "#eaecf0", 300: "#d0d5dd", 400: "#98a2b3", 500: "#667085", 600: "#475467", 700: "#2f394b", 800: "#212a36", 900: "#161b25" }, gradients: { "01": "linear-gradient(45deg, #f32637 0%, #b8075d 100%)", "02": "linear-gradient(45deg, #fcfcfd 0%, #667085 100%)" } } }, C = ({ children: e2 }) => E.jsx(d, { theme: T, children: e2 }), L = (e2, t2) => void 0 === t2 ? "" : `${e2}: ${t2};`, z = (e2) => {
|
|
399
406
|
const t2 = e2.py ?? e2.pt ?? 0, n2 = e2.px ?? e2.pr ?? 0, r2 = e2.py ?? e2.pb ?? 0, o2 = e2.px ?? e2.pl ?? 0;
|
|
400
407
|
if (e2.padding) {
|
|
401
408
|
const [t3, n3, r3, o3] = e2.padding;
|
|
402
|
-
return `padding: ${
|
|
409
|
+
return `padding: ${T.spacing[t3]} ${T.spacing[n3]} ${T.spacing[r3]} ${T.spacing[o3]};`;
|
|
403
410
|
}
|
|
404
|
-
return `padding: ${
|
|
411
|
+
return `padding: ${T.spacing[t2]} ${T.spacing[n2]} ${T.spacing[r2]} ${T.spacing[o2]};`;
|
|
405
412
|
}, P = (e2) => {
|
|
406
413
|
const t2 = e2.my ?? e2.mt ?? 0, n2 = e2.mx ?? e2.mr ?? 0, r2 = e2.my ?? e2.mb ?? 0, o2 = e2.mx ?? e2.ml ?? 0;
|
|
407
414
|
if (e2.margin) {
|
|
408
415
|
const [t3, n3, r3, o3] = e2.margin;
|
|
409
|
-
return `margin: ${
|
|
416
|
+
return `margin: ${T.spacing[t3]} ${T.spacing[n3]} ${T.spacing[r3]} ${T.spacing[o3]};`;
|
|
410
417
|
}
|
|
411
|
-
return `margin: ${
|
|
418
|
+
return `margin: ${T.spacing[t2]} ${T.spacing[n2]} ${T.spacing[r2]} ${T.spacing[o2]};`;
|
|
412
419
|
}, F = (e2) => `
|
|
413
420
|
${L("position", e2.position)}
|
|
414
421
|
${L("top", e2.top)}
|
|
@@ -428,7 +435,7 @@ const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "brief
|
|
|
428
435
|
const t2 = e2.scroll ? `
|
|
429
436
|
${((e3) => e3.includes("x") ? "overflow-x: auto;" : "")(e2.scroll)}
|
|
430
437
|
${((e3) => e3.includes("y") ? "overflow-y: auto;" : "")(e2.scroll)}
|
|
431
|
-
` : "", n2 = L("visibility", e2.visibility), r2 = L("display", e2.display), o2 = L("height", e2.height), i2 = L("width", e2.width), l2 = L("max-height", e2.maxHeight), a2 = L("max-width", e2.maxWidth), c2 = L("min-height", e2.minHeight), s2 = L("min-width", e2.minWidth), u2 = L("box-shadow", e2.shadow ?
|
|
438
|
+
` : "", n2 = L("visibility", e2.visibility), r2 = L("display", e2.display), o2 = L("height", e2.height), i2 = L("width", e2.width), l2 = L("max-height", e2.maxHeight), a2 = L("max-width", e2.maxWidth), c2 = L("min-height", e2.minHeight), s2 = L("min-width", e2.minWidth), u2 = L("box-shadow", e2.shadow ? T.shadows[e2.shadow] : void 0), f2 = L("gap", void 0 === e2.gap ? void 0 : T.spacing[e2.gap]);
|
|
432
439
|
return `
|
|
433
440
|
${t2}
|
|
434
441
|
${n2}
|
|
@@ -465,7 +472,7 @@ const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "brief
|
|
|
465
472
|
${L("word-break", e2.wordBreak)}
|
|
466
473
|
${L("word-wrap", e2.wordWrap)}
|
|
467
474
|
`, M = (e2) => {
|
|
468
|
-
const t2 = L("cursor", e2.cursor), n2 = L("border-color", e2.borderColorHover), r2 = L("background-color", e2.bgColorHover), o2 = L("box-shadow", void 0 === e2.shadowHover ? void 0 :
|
|
475
|
+
const t2 = L("cursor", e2.cursor), n2 = L("border-color", e2.borderColorHover), r2 = L("background-color", e2.bgColorHover), o2 = L("box-shadow", void 0 === e2.shadowHover ? void 0 : T.shadows[e2.shadowHover]);
|
|
469
476
|
return `
|
|
470
477
|
${t2}
|
|
471
478
|
|
|
@@ -564,7 +571,7 @@ const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "brief
|
|
|
564
571
|
line-height: ${e2.spacing[c2 ?? a2]};
|
|
565
572
|
}
|
|
566
573
|
`}
|
|
567
|
-
`,
|
|
574
|
+
`, K = p.span`
|
|
568
575
|
${({ theme: e2, $color: t2 = e2.palette.gray[600], $content: n2, $display: r2 = "inline", $fontWeight: o2 = "regular", $size: i2, $lineSpacing: l2 = 1.25 }) => `
|
|
569
576
|
color: ${t2};
|
|
570
577
|
display: ${r2};
|
|
@@ -576,17 +583,17 @@ const A = ["lock-keyhole", "bars-sort", "bolt", "books", "brain-circuit", "brief
|
|
|
576
583
|
|
|
577
584
|
${void 0 === n2 ? "" : `&::after { content: "${n2}"; }`}
|
|
578
585
|
`}
|
|
579
|
-
`,
|
|
586
|
+
`, Y = n(function({ bgGradient: e2, children: t2, className: n2, color: r2, display: o2, fontFamily: i2, fontWeight: l2, letterSpacing: a2, lineSpacing: c2, lineSpacingSm: s2, size: u2, sizeMd: f2, sizeSm: d2, textFill: p2, wordBreak: y2, ...m2 }, g2) {
|
|
580
587
|
return E.jsx(U, { $bgGradient: e2, $color: r2, $display: o2, $fontFamily: i2, $fontWeight: l2, $letterSpacing: a2, $lineSpacing: c2, $lineSpacingSm: s2, $size: u2, $sizeMd: f2, $sizeSm: d2, $textFill: p2, $wordBreak: y2, className: n2, ref: g2, ...m2, children: t2 });
|
|
581
588
|
}), X = n(function({ children: e2, color: t2, content: n2, display: r2, fontFamily: o2, fontWeight: i2, letterSpacing: l2, lineSpacing: a2, lineSpacingSm: c2, size: s2, sizeMd: u2, sizeSm: f2, ...d2 }, p2) {
|
|
582
|
-
return E.jsx(
|
|
583
|
-
}),
|
|
589
|
+
return E.jsx(K, { $color: t2, $content: n2, $display: r2, $fontFamily: o2, $fontWeight: i2, $letterSpacing: l2, $lineSpacing: a2, $lineSpacingSm: c2, $size: s2, $sizeMd: u2, $sizeSm: f2, ref: p2, ...d2, children: e2 });
|
|
590
|
+
}), J = n(function({ bgGradient: e2, children: t2, className: n2, color: r2, display: o2, fontFamily: i2, fontWeight: l2, letterSpacing: a2, lineSpacing: c2, lineSpacingSm: s2, size: u2, sizeMd: f2, sizeSm: d2, textFill: p2, wordBreak: y2, ...m2 }, g2) {
|
|
584
591
|
return E.jsx(G, { $bgGradient: e2, $color: r2, $display: o2, $fontFamily: i2, $fontWeight: l2, $letterSpacing: a2, $lineSpacing: c2, $lineSpacingSm: s2, $size: u2, $sizeMd: f2, $sizeSm: d2, $textFill: p2, $wordBreak: y2, className: n2, ref: g2, ...m2, children: t2 });
|
|
585
|
-
}),
|
|
592
|
+
}), Z = { xl: "96px", lg: "64px", md: "32px", sm: "24px", xs: "16px", xxs: "12px", xxss: "10px" }, Q = p(q)`
|
|
586
593
|
${({ $clickable: e2, $color: t2 = "inherit", $disabled: n2 = false, $hoverColor: r2, $rotation: o2, $size: i2, $secondaryColor: l2 }) => `
|
|
587
594
|
color: ${t2};
|
|
588
595
|
cursor: ${e2 ? "pointer" : "inherit"};
|
|
589
|
-
font-size: ${
|
|
596
|
+
font-size: ${Z[i2]};
|
|
590
597
|
line-height: 0;
|
|
591
598
|
vertical-align: middle;
|
|
592
599
|
pointer-events: inherit;
|
|
@@ -795,10 +802,10 @@ async function Se(e2, t2) {
|
|
|
795
802
|
const { x: r2, y: o2, platform: i2, rects: l2, elements: a2, strategy: c2 } = e2, { boundary: s2 = "clippingAncestors", rootBoundary: u2 = "viewport", elementContext: f2 = "floating", altBoundary: d2 = false, padding: p2 = 0 } = fe(t2, e2), y2 = we(p2), m2 = a2[d2 ? "floating" === f2 ? "reference" : "floating" : f2], g2 = xe(await i2.getClippingRect({ element: null == (n2 = await (null == i2.isElement ? void 0 : i2.isElement(m2))) || n2 ? m2 : m2.contextElement || await (null == i2.getDocumentElement ? void 0 : i2.getDocumentElement(a2.floating)), boundary: s2, rootBoundary: u2, strategy: c2 })), h2 = "floating" === f2 ? { x: r2, y: o2, width: l2.floating.width, height: l2.floating.height } : l2.reference, v2 = await (null == i2.getOffsetParent ? void 0 : i2.getOffsetParent(a2.floating)), b2 = await (null == i2.isElement ? void 0 : i2.isElement(v2)) && await (null == i2.getScale ? void 0 : i2.getScale(v2)) || { x: 1, y: 1 }, w2 = xe(i2.convertOffsetParentRelativeRectToViewportRelativeRect ? await i2.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: a2, rect: h2, offsetParent: v2, strategy: c2 }) : h2);
|
|
796
803
|
return { top: (g2.top - w2.top + y2.top) / b2.y, bottom: (w2.bottom - g2.bottom + y2.bottom) / b2.y, left: (g2.left - w2.left + y2.left) / b2.x, right: (w2.right - g2.right + y2.right) / b2.x };
|
|
797
804
|
}
|
|
798
|
-
function
|
|
805
|
+
function ke() {
|
|
799
806
|
return "undefined" != typeof window;
|
|
800
807
|
}
|
|
801
|
-
function
|
|
808
|
+
function _e(e2) {
|
|
802
809
|
return Ee(e2) ? (e2.nodeName || "").toLowerCase() : "#document";
|
|
803
810
|
}
|
|
804
811
|
function je(e2) {
|
|
@@ -810,23 +817,23 @@ function Oe(e2) {
|
|
|
810
817
|
return null == (t2 = (Ee(e2) ? e2.ownerDocument : e2.document) || window.document) ? void 0 : t2.documentElement;
|
|
811
818
|
}
|
|
812
819
|
function Ee(e2) {
|
|
813
|
-
return !!
|
|
820
|
+
return !!ke() && (e2 instanceof Node || e2 instanceof je(e2).Node);
|
|
814
821
|
}
|
|
815
822
|
function Ae(e2) {
|
|
816
|
-
return !!
|
|
817
|
-
}
|
|
818
|
-
function Te(e2) {
|
|
819
|
-
return !!_e() && (e2 instanceof HTMLElement || e2 instanceof je(e2).HTMLElement);
|
|
823
|
+
return !!ke() && (e2 instanceof Element || e2 instanceof je(e2).Element);
|
|
820
824
|
}
|
|
821
825
|
function Re(e2) {
|
|
822
|
-
return
|
|
826
|
+
return !!ke() && (e2 instanceof HTMLElement || e2 instanceof je(e2).HTMLElement);
|
|
827
|
+
}
|
|
828
|
+
function Te(e2) {
|
|
829
|
+
return !(!ke() || "undefined" == typeof ShadowRoot) && (e2 instanceof ShadowRoot || e2 instanceof je(e2).ShadowRoot);
|
|
823
830
|
}
|
|
824
831
|
function Ce(e2) {
|
|
825
832
|
const { overflow: t2, overflowX: n2, overflowY: r2, display: o2 } = Ne(e2);
|
|
826
833
|
return /auto|scroll|overlay|hidden|clip/.test(t2 + r2 + n2) && !["inline", "contents"].includes(o2);
|
|
827
834
|
}
|
|
828
835
|
function Le(e2) {
|
|
829
|
-
return ["table", "td", "th"].includes(
|
|
836
|
+
return ["table", "td", "th"].includes(_e(e2));
|
|
830
837
|
}
|
|
831
838
|
function ze(e2) {
|
|
832
839
|
return [":popover-open", ":modal"].some((t2) => {
|
|
@@ -845,7 +852,7 @@ function Fe() {
|
|
|
845
852
|
return !("undefined" == typeof CSS || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
|
|
846
853
|
}
|
|
847
854
|
function De(e2) {
|
|
848
|
-
return ["html", "body", "#document"].includes(
|
|
855
|
+
return ["html", "body", "#document"].includes(_e(e2));
|
|
849
856
|
}
|
|
850
857
|
function Ne(e2) {
|
|
851
858
|
return je(e2).getComputedStyle(e2);
|
|
@@ -854,13 +861,13 @@ function We(e2) {
|
|
|
854
861
|
return Ae(e2) ? { scrollLeft: e2.scrollLeft, scrollTop: e2.scrollTop } : { scrollLeft: e2.scrollX, scrollTop: e2.scrollY };
|
|
855
862
|
}
|
|
856
863
|
function Me(e2) {
|
|
857
|
-
if ("html" ===
|
|
858
|
-
const t2 = e2.assignedSlot || e2.parentNode ||
|
|
859
|
-
return
|
|
864
|
+
if ("html" === _e(e2)) return e2;
|
|
865
|
+
const t2 = e2.assignedSlot || e2.parentNode || Te(e2) && e2.host || Oe(e2);
|
|
866
|
+
return Te(t2) ? t2.host : t2;
|
|
860
867
|
}
|
|
861
868
|
function Ie(e2) {
|
|
862
869
|
const t2 = Me(e2);
|
|
863
|
-
return De(t2) ? e2.ownerDocument ? e2.ownerDocument.body : e2.body :
|
|
870
|
+
return De(t2) ? e2.ownerDocument ? e2.ownerDocument.body : e2.body : Re(t2) && Ce(t2) ? t2 : Ie(t2);
|
|
864
871
|
}
|
|
865
872
|
function Be(e2, t2, n2) {
|
|
866
873
|
var r2;
|
|
@@ -878,7 +885,7 @@ function He(e2) {
|
|
|
878
885
|
function Ve(e2) {
|
|
879
886
|
const t2 = Ne(e2);
|
|
880
887
|
let n2 = parseFloat(t2.width) || 0, r2 = parseFloat(t2.height) || 0;
|
|
881
|
-
const o2 =
|
|
888
|
+
const o2 = Re(e2), i2 = o2 ? e2.offsetWidth : n2, l2 = o2 ? e2.offsetHeight : r2, a2 = ie(n2) !== i2 || ie(r2) !== l2;
|
|
882
889
|
return a2 && (n2 = i2, r2 = l2), { width: n2, height: r2, $: a2 };
|
|
883
890
|
}
|
|
884
891
|
function qe(e2) {
|
|
@@ -886,24 +893,24 @@ function qe(e2) {
|
|
|
886
893
|
}
|
|
887
894
|
function Ue(e2) {
|
|
888
895
|
const t2 = qe(e2);
|
|
889
|
-
if (!
|
|
896
|
+
if (!Re(t2)) return ae(1);
|
|
890
897
|
const n2 = t2.getBoundingClientRect(), { width: r2, height: o2, $: i2 } = Ve(t2);
|
|
891
898
|
let l2 = (i2 ? ie(n2.width) : n2.width) / r2, a2 = (i2 ? ie(n2.height) : n2.height) / o2;
|
|
892
899
|
return l2 && Number.isFinite(l2) || (l2 = 1), a2 && Number.isFinite(a2) || (a2 = 1), { x: l2, y: a2 };
|
|
893
900
|
}
|
|
894
901
|
const Ge = ae(0);
|
|
895
|
-
function
|
|
902
|
+
function Ke(e2) {
|
|
896
903
|
const t2 = je(e2);
|
|
897
904
|
return Fe() && t2.visualViewport ? { x: t2.visualViewport.offsetLeft, y: t2.visualViewport.offsetTop } : Ge;
|
|
898
905
|
}
|
|
899
|
-
function
|
|
906
|
+
function Ye(e2, t2, n2, r2) {
|
|
900
907
|
void 0 === t2 && (t2 = false), void 0 === n2 && (n2 = false);
|
|
901
908
|
const o2 = e2.getBoundingClientRect(), i2 = qe(e2);
|
|
902
909
|
let l2 = ae(1);
|
|
903
910
|
t2 && (r2 ? Ae(r2) && (l2 = Ue(r2)) : l2 = Ue(e2));
|
|
904
911
|
const a2 = function(e3, t3, n3) {
|
|
905
912
|
return void 0 === t3 && (t3 = false), !(!n3 || t3 && n3 !== je(e3)) && t3;
|
|
906
|
-
}(i2, n2, r2) ?
|
|
913
|
+
}(i2, n2, r2) ? Ke(i2) : ae(0);
|
|
907
914
|
let c2 = (o2.left + a2.x) / l2.x, s2 = (o2.top + a2.y) / l2.y, u2 = o2.width / l2.x, f2 = o2.height / l2.y;
|
|
908
915
|
if (i2) {
|
|
909
916
|
const e3 = je(i2), t3 = r2 && Ae(r2) ? je(r2) : r2;
|
|
@@ -917,14 +924,14 @@ function Ke(e2, t2, n2, r2) {
|
|
|
917
924
|
}
|
|
918
925
|
function Xe(e2, t2) {
|
|
919
926
|
const n2 = We(e2).scrollLeft;
|
|
920
|
-
return t2 ? t2.left + n2 :
|
|
927
|
+
return t2 ? t2.left + n2 : Ye(Oe(e2)).left + n2;
|
|
921
928
|
}
|
|
922
|
-
function
|
|
929
|
+
function Je(e2, t2, n2) {
|
|
923
930
|
void 0 === n2 && (n2 = false);
|
|
924
931
|
const r2 = e2.getBoundingClientRect();
|
|
925
932
|
return { x: r2.left + t2.scrollLeft - (n2 ? 0 : Xe(e2, r2)), y: r2.top + t2.scrollTop };
|
|
926
933
|
}
|
|
927
|
-
function
|
|
934
|
+
function Ze(e2, t2, n2) {
|
|
928
935
|
let r2;
|
|
929
936
|
if ("viewport" === t2) r2 = function(e3, t3) {
|
|
930
937
|
const n3 = je(e3), r3 = Oe(e3), o2 = n3.visualViewport;
|
|
@@ -943,11 +950,11 @@ function Je(e2, t2, n2) {
|
|
|
943
950
|
return "rtl" === Ne(r3).direction && (l2 += oe(t3.clientWidth, r3.clientWidth) - o2), { width: o2, height: i2, x: l2, y: a2 };
|
|
944
951
|
}(Oe(e2));
|
|
945
952
|
else if (Ae(t2)) r2 = function(e3, t3) {
|
|
946
|
-
const n3 =
|
|
953
|
+
const n3 = Ye(e3, true, "fixed" === t3), r3 = n3.top + e3.clientTop, o2 = n3.left + e3.clientLeft, i2 = Re(e3) ? Ue(e3) : ae(1);
|
|
947
954
|
return { width: e3.clientWidth * i2.x, height: e3.clientHeight * i2.y, x: o2 * i2.x, y: r3 * i2.y };
|
|
948
955
|
}(t2, n2);
|
|
949
956
|
else {
|
|
950
|
-
const n3 =
|
|
957
|
+
const n3 = Ke(e2);
|
|
951
958
|
r2 = { x: t2.x - n3.x, y: t2.y - n3.y, width: t2.width, height: t2.height };
|
|
952
959
|
}
|
|
953
960
|
return xe(r2);
|
|
@@ -957,21 +964,21 @@ function Qe(e2, t2) {
|
|
|
957
964
|
return !(n2 === t2 || !Ae(n2) || De(n2)) && ("fixed" === Ne(n2).position || Qe(n2, t2));
|
|
958
965
|
}
|
|
959
966
|
function et(e2, t2, n2) {
|
|
960
|
-
const r2 =
|
|
967
|
+
const r2 = Re(t2), o2 = Oe(t2), i2 = "fixed" === n2, l2 = Ye(e2, true, i2, t2);
|
|
961
968
|
let a2 = { scrollLeft: 0, scrollTop: 0 };
|
|
962
969
|
const c2 = ae(0);
|
|
963
|
-
if (r2 || !r2 && !i2) if (("body" !==
|
|
964
|
-
const e3 =
|
|
970
|
+
if (r2 || !r2 && !i2) if (("body" !== _e(t2) || Ce(o2)) && (a2 = We(t2)), r2) {
|
|
971
|
+
const e3 = Ye(t2, true, i2, t2);
|
|
965
972
|
c2.x = e3.x + t2.clientLeft, c2.y = e3.y + t2.clientTop;
|
|
966
973
|
} else o2 && (c2.x = Xe(o2));
|
|
967
|
-
const s2 = !o2 || r2 || i2 ? ae(0) :
|
|
974
|
+
const s2 = !o2 || r2 || i2 ? ae(0) : Je(o2, a2);
|
|
968
975
|
return { x: l2.left + a2.scrollLeft - c2.x - s2.x, y: l2.top + a2.scrollTop - c2.y - s2.y, width: l2.width, height: l2.height };
|
|
969
976
|
}
|
|
970
977
|
function tt(e2) {
|
|
971
978
|
return "static" === Ne(e2).position;
|
|
972
979
|
}
|
|
973
980
|
function nt(e2, t2) {
|
|
974
|
-
if (!
|
|
981
|
+
if (!Re(e2) || "fixed" === Ne(e2).position) return null;
|
|
975
982
|
if (t2) return t2(e2);
|
|
976
983
|
let n2 = e2.offsetParent;
|
|
977
984
|
return Oe(e2) === n2 && (n2 = n2.ownerDocument.body), n2;
|
|
@@ -979,7 +986,7 @@ function nt(e2, t2) {
|
|
|
979
986
|
function rt(e2, t2) {
|
|
980
987
|
const n2 = je(e2);
|
|
981
988
|
if (ze(e2)) return n2;
|
|
982
|
-
if (!
|
|
989
|
+
if (!Re(e2)) {
|
|
983
990
|
let t3 = Me(e2);
|
|
984
991
|
for (; t3 && !De(t3); ) {
|
|
985
992
|
if (Ae(t3) && !tt(t3)) return t3;
|
|
@@ -991,7 +998,7 @@ function rt(e2, t2) {
|
|
|
991
998
|
for (; r2 && Le(r2) && tt(r2); ) r2 = nt(r2, t2);
|
|
992
999
|
return r2 && De(r2) && tt(r2) && !Pe(r2) ? n2 : r2 || function(e3) {
|
|
993
1000
|
let t3 = Me(e3);
|
|
994
|
-
for (;
|
|
1001
|
+
for (; Re(t3) && !De(t3); ) {
|
|
995
1002
|
if (Pe(t3)) return t3;
|
|
996
1003
|
if (ze(t3)) return null;
|
|
997
1004
|
t3 = Me(t3);
|
|
@@ -1004,19 +1011,19 @@ const ot = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e2)
|
|
|
1004
1011
|
const i2 = "fixed" === o2, l2 = Oe(r2), a2 = !!t2 && ze(t2.floating);
|
|
1005
1012
|
if (r2 === l2 || a2 && i2) return n2;
|
|
1006
1013
|
let c2 = { scrollLeft: 0, scrollTop: 0 }, s2 = ae(1);
|
|
1007
|
-
const u2 = ae(0), f2 =
|
|
1008
|
-
if ((f2 || !f2 && !i2) && (("body" !==
|
|
1009
|
-
const e3 =
|
|
1014
|
+
const u2 = ae(0), f2 = Re(r2);
|
|
1015
|
+
if ((f2 || !f2 && !i2) && (("body" !== _e(r2) || Ce(l2)) && (c2 = We(r2)), Re(r2))) {
|
|
1016
|
+
const e3 = Ye(r2);
|
|
1010
1017
|
s2 = Ue(r2), u2.x = e3.x + r2.clientLeft, u2.y = e3.y + r2.clientTop;
|
|
1011
1018
|
}
|
|
1012
|
-
const d2 = !l2 || f2 || i2 ? ae(0) :
|
|
1019
|
+
const d2 = !l2 || f2 || i2 ? ae(0) : Je(l2, c2, true);
|
|
1013
1020
|
return { width: n2.width * s2.x, height: n2.height * s2.y, x: n2.x * s2.x - c2.scrollLeft * s2.x + u2.x + d2.x, y: n2.y * s2.y - c2.scrollTop * s2.y + u2.y + d2.y };
|
|
1014
1021
|
}, getDocumentElement: Oe, getClippingRect: function(e2) {
|
|
1015
1022
|
let { element: t2, boundary: n2, rootBoundary: r2, strategy: o2 } = e2;
|
|
1016
1023
|
const i2 = [..."clippingAncestors" === n2 ? ze(t2) ? [] : function(e3, t3) {
|
|
1017
1024
|
const n3 = t3.get(e3);
|
|
1018
1025
|
if (n3) return n3;
|
|
1019
|
-
let r3 = Be(e3, [], false).filter((e4) => Ae(e4) && "body" !==
|
|
1026
|
+
let r3 = Be(e3, [], false).filter((e4) => Ae(e4) && "body" !== _e(e4)), o3 = null;
|
|
1020
1027
|
const i3 = "fixed" === Ne(e3).position;
|
|
1021
1028
|
let l3 = i3 ? Me(e3) : e3;
|
|
1022
1029
|
for (; Ae(l3) && !De(l3); ) {
|
|
@@ -1025,9 +1032,9 @@ const ot = { convertOffsetParentRelativeRectToViewportRelativeRect: function(e2)
|
|
|
1025
1032
|
}
|
|
1026
1033
|
return t3.set(e3, r3), r3;
|
|
1027
1034
|
}(t2, this._c) : [].concat(n2), r2], l2 = i2[0], a2 = i2.reduce((e3, n3) => {
|
|
1028
|
-
const r3 =
|
|
1035
|
+
const r3 = Ze(t2, n3, o2);
|
|
1029
1036
|
return e3.top = oe(r3.top, e3.top), e3.right = re(r3.right, e3.right), e3.bottom = re(r3.bottom, e3.bottom), e3.left = oe(r3.left, e3.left), e3;
|
|
1030
|
-
},
|
|
1037
|
+
}, Ze(t2, l2, o2));
|
|
1031
1038
|
return { width: a2.right - a2.left, height: a2.bottom - a2.top, x: a2.left, y: a2.top };
|
|
1032
1039
|
}, getOffsetParent: rt, getElementRects: async function(e2) {
|
|
1033
1040
|
const t2 = this.getOffsetParent || rt, n2 = this.getDimensions, r2 = await n2(e2.floating);
|
|
@@ -1088,9 +1095,9 @@ function lt(e2, t2, n2, r2) {
|
|
|
1088
1095
|
null == (e4 = y2) || e4.observe(t2);
|
|
1089
1096
|
})), n2();
|
|
1090
1097
|
}), s2 && !c2 && y2.observe(s2), y2.observe(t2));
|
|
1091
|
-
let m2 = c2 ?
|
|
1098
|
+
let m2 = c2 ? Ye(e2) : null;
|
|
1092
1099
|
return c2 && function t3() {
|
|
1093
|
-
const r3 =
|
|
1100
|
+
const r3 = Ye(e2);
|
|
1094
1101
|
m2 && !it(m2, r3) && n2();
|
|
1095
1102
|
m2 = r3, d2 = requestAnimationFrame(t3);
|
|
1096
1103
|
}(), n2(), () => {
|
|
@@ -1154,18 +1161,18 @@ const at = function(e2) {
|
|
|
1154
1161
|
}(de(e3), "start" === n3, r3);
|
|
1155
1162
|
return o3 && (i3 = i3.map((e4) => e4 + "-" + o3), t3 && (i3 = i3.concat(i3.map(ve)))), i3;
|
|
1156
1163
|
}(a2, m2, y2, w2));
|
|
1157
|
-
const S2 = [a2, ...x2],
|
|
1164
|
+
const S2 = [a2, ...x2], k2 = await Se(t2, g2), _2 = [];
|
|
1158
1165
|
let j2 = (null == (r2 = i2.flip) ? void 0 : r2.overflows) || [];
|
|
1159
|
-
if (u2 &&
|
|
1166
|
+
if (u2 && _2.push(k2[h2]), f2) {
|
|
1160
1167
|
const e3 = function(e4, t3, n3) {
|
|
1161
1168
|
void 0 === n3 && (n3 = false);
|
|
1162
1169
|
const r3 = pe(e4), o3 = he(e4), i3 = me(o3);
|
|
1163
1170
|
let l3 = "x" === o3 ? r3 === (n3 ? "end" : "start") ? "right" : "left" : "start" === r3 ? "bottom" : "top";
|
|
1164
1171
|
return t3.reference[i3] > t3.floating[i3] && (l3 = be(l3)), [l3, be(l3)];
|
|
1165
1172
|
}(o2, l2, w2);
|
|
1166
|
-
|
|
1173
|
+
_2.push(k2[e3[0]], k2[e3[1]]);
|
|
1167
1174
|
}
|
|
1168
|
-
if (j2 = [...j2, { placement: o2, overflows:
|
|
1175
|
+
if (j2 = [...j2, { placement: o2, overflows: _2 }], !_2.every((e3) => e3 <= 0)) {
|
|
1169
1176
|
var O2, E2;
|
|
1170
1177
|
const e3 = ((null == (O2 = i2.flip) ? void 0 : O2.index) || 0) + 1, t3 = S2[e3];
|
|
1171
1178
|
if (t3) return { data: { index: e3, overflows: j2 }, reset: { placement: t3 } };
|
|
@@ -1196,8 +1203,8 @@ const at = function(e2) {
|
|
|
1196
1203
|
const f2 = we(u2), d2 = { x: n2, y: r2 }, p2 = he(o2), y2 = me(p2), m2 = await l2.getDimensions(s2), g2 = "y" === p2, h2 = g2 ? "top" : "left", v2 = g2 ? "bottom" : "right", b2 = g2 ? "clientHeight" : "clientWidth", w2 = i2.reference[y2] + i2.reference[p2] - d2[p2] - i2.floating[y2], x2 = d2[p2] - i2.reference[p2], $2 = await (null == l2.getOffsetParent ? void 0 : l2.getOffsetParent(s2));
|
|
1197
1204
|
let S2 = $2 ? $2[b2] : 0;
|
|
1198
1205
|
S2 && await (null == l2.isElement ? void 0 : l2.isElement($2)) || (S2 = a2.floating[b2] || i2.floating[y2]);
|
|
1199
|
-
const
|
|
1200
|
-
return { [p2]: d2[p2] + L2, data: { [p2]:
|
|
1206
|
+
const k2 = w2 / 2 - x2 / 2, _2 = S2 / 2 - m2[y2] / 2 - 1, j2 = re(f2[h2], _2), O2 = re(f2[v2], _2), E2 = j2, A2 = S2 - m2[y2] - O2, R2 = S2 / 2 - m2[y2] / 2 + k2, T2 = ue(E2, R2, A2), C2 = !c2.arrow && null != pe(o2) && R2 !== T2 && i2.reference[y2] / 2 - (R2 < E2 ? j2 : O2) - m2[y2] / 2 < 0, L2 = C2 ? R2 < E2 ? R2 - E2 : R2 - A2 : 0;
|
|
1207
|
+
return { [p2]: d2[p2] + L2, data: { [p2]: T2, centerOffset: R2 - T2 - L2, ...C2 && { alignmentOffset: L2 } }, reset: C2 };
|
|
1201
1208
|
} }), ft = (e2, t2, n2) => {
|
|
1202
1209
|
const r2 = /* @__PURE__ */ new Map(), o2 = { platform: ot, ...n2 }, i2 = { ...o2.platform, _c: r2 };
|
|
1203
1210
|
return (async (e3, t3, n3) => {
|
|
@@ -1251,19 +1258,19 @@ function ht(t2) {
|
|
|
1251
1258
|
const { placement: n2 = "bottom", strategy: r2 = "absolute", middleware: o2 = [], platform: i2, elements: { reference: l2, floating: a2 } = {}, transform: c2 = true, whileElementsMounted: s2, open: u2 } = t2, [f2, d2] = e.useState({ x: 0, y: 0, strategy: r2, placement: n2, middlewareData: {}, isPositioned: false }), [p2, y2] = e.useState(o2);
|
|
1252
1259
|
pt(p2, o2) || y2(o2);
|
|
1253
1260
|
const [g2, h2] = e.useState(null), [v2, b2] = e.useState(null), w2 = e.useCallback((e2) => {
|
|
1254
|
-
e2 !==
|
|
1261
|
+
e2 !== k2.current && (k2.current = e2, h2(e2));
|
|
1255
1262
|
}, []), x2 = e.useCallback((e2) => {
|
|
1256
|
-
e2 !==
|
|
1257
|
-
}, []), $2 = l2 || g2, S2 = a2 || v2,
|
|
1258
|
-
if (!
|
|
1263
|
+
e2 !== _2.current && (_2.current = e2, b2(e2));
|
|
1264
|
+
}, []), $2 = l2 || g2, S2 = a2 || v2, k2 = e.useRef(null), _2 = e.useRef(null), j2 = e.useRef(f2), O2 = null != s2, E2 = gt(s2), A2 = gt(i2), R2 = gt(u2), T2 = e.useCallback(() => {
|
|
1265
|
+
if (!k2.current || !_2.current) return;
|
|
1259
1266
|
const e2 = { placement: n2, strategy: r2, middleware: p2 };
|
|
1260
|
-
A2.current && (e2.platform = A2.current), ft(
|
|
1261
|
-
const t3 = { ...e3, isPositioned: false !==
|
|
1267
|
+
A2.current && (e2.platform = A2.current), ft(k2.current, _2.current, e2).then((e3) => {
|
|
1268
|
+
const t3 = { ...e3, isPositioned: false !== R2.current };
|
|
1262
1269
|
C2.current && !pt(j2.current, t3) && (j2.current = t3, m.flushSync(() => {
|
|
1263
1270
|
d2(t3);
|
|
1264
1271
|
}));
|
|
1265
1272
|
});
|
|
1266
|
-
}, [p2, n2, r2, A2,
|
|
1273
|
+
}, [p2, n2, r2, A2, R2]);
|
|
1267
1274
|
dt(() => {
|
|
1268
1275
|
false === u2 && j2.current.isPositioned && (j2.current.isPositioned = false, d2((e2) => ({ ...e2, isPositioned: false })));
|
|
1269
1276
|
}, [u2]);
|
|
@@ -1271,21 +1278,21 @@ function ht(t2) {
|
|
|
1271
1278
|
dt(() => (C2.current = true, () => {
|
|
1272
1279
|
C2.current = false;
|
|
1273
1280
|
}), []), dt(() => {
|
|
1274
|
-
if ($2 && (
|
|
1275
|
-
if (E2.current) return E2.current($2, S2,
|
|
1276
|
-
|
|
1281
|
+
if ($2 && (k2.current = $2), S2 && (_2.current = S2), $2 && S2) {
|
|
1282
|
+
if (E2.current) return E2.current($2, S2, T2);
|
|
1283
|
+
T2();
|
|
1277
1284
|
}
|
|
1278
|
-
}, [$2, S2,
|
|
1279
|
-
const L2 = e.useMemo(() => ({ reference:
|
|
1285
|
+
}, [$2, S2, T2, E2, O2]);
|
|
1286
|
+
const L2 = e.useMemo(() => ({ reference: k2, floating: _2, setReference: w2, setFloating: x2 }), [w2, x2]), z2 = e.useMemo(() => ({ reference: $2, floating: S2 }), [$2, S2]), P2 = e.useMemo(() => {
|
|
1280
1287
|
const e2 = { position: r2, left: 0, top: 0 };
|
|
1281
1288
|
if (!z2.floating) return e2;
|
|
1282
1289
|
const t3 = mt(z2.floating, f2.x), n3 = mt(z2.floating, f2.y);
|
|
1283
1290
|
return c2 ? { ...e2, transform: "translate(" + t3 + "px, " + n3 + "px)", ...yt(z2.floating) >= 1.5 && { willChange: "transform" } } : { position: r2, left: t3, top: n3 };
|
|
1284
1291
|
}, [r2, c2, z2.floating, f2.x, f2.y]);
|
|
1285
|
-
return e.useMemo(() => ({ ...f2, update:
|
|
1292
|
+
return e.useMemo(() => ({ ...f2, update: T2, refs: L2, elements: z2, floatingStyles: P2 }), [f2, T2, L2, z2, P2]);
|
|
1286
1293
|
}
|
|
1287
1294
|
const vt = (e2, t2) => ({ ...at(e2), options: [e2, t2] });
|
|
1288
|
-
var bt, wt, xt, $t, St,
|
|
1295
|
+
var bt, wt, xt, $t, St, kt, _t, jt, Ot, Et, At, Rt, Tt, Ct, Lt, zt, Pt, Ft, Dt, Nt, Wt, Mt, It, Bt, Ht, Vt, qt, Ut, Gt, Kt, Yt, Xt, Jt, Zt, Qt, en, tn, nn, rn, on, ln, an, cn, sn, un, fn, dn, pn, yn, mn, gn, hn, vn, bn, wn, xn, $n, Sn, kn, _n;
|
|
1289
1296
|
function jn() {
|
|
1290
1297
|
if (wt) return bt;
|
|
1291
1298
|
wt = 1;
|
|
@@ -1296,8 +1303,8 @@ function jn() {
|
|
|
1296
1303
|
};
|
|
1297
1304
|
}
|
|
1298
1305
|
function On() {
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1306
|
+
if (kt) return St;
|
|
1307
|
+
kt = 1;
|
|
1301
1308
|
var e2 = ($t ? xt : ($t = 1, xt = function(e3, t2) {
|
|
1302
1309
|
return function(n2) {
|
|
1303
1310
|
return e3(t2(n2));
|
|
@@ -1312,24 +1319,24 @@ function En() {
|
|
|
1312
1319
|
return Ot = e2;
|
|
1313
1320
|
}
|
|
1314
1321
|
function An() {
|
|
1315
|
-
if (
|
|
1316
|
-
|
|
1322
|
+
if (Rt) return At;
|
|
1323
|
+
Rt = 1;
|
|
1317
1324
|
var e2 = En(), t2 = "object" == typeof self && self && self.Object === Object && self, n2 = e2 || t2 || Function("return this")();
|
|
1318
1325
|
return At = n2;
|
|
1319
1326
|
}
|
|
1320
|
-
function
|
|
1321
|
-
if (Ct) return
|
|
1327
|
+
function Rn() {
|
|
1328
|
+
if (Ct) return Tt;
|
|
1322
1329
|
Ct = 1;
|
|
1323
1330
|
var e2 = An().Symbol;
|
|
1324
|
-
return
|
|
1331
|
+
return Tt = e2;
|
|
1325
1332
|
}
|
|
1326
|
-
function
|
|
1333
|
+
function Tn() {
|
|
1327
1334
|
if (Nt) return Dt;
|
|
1328
1335
|
Nt = 1;
|
|
1329
|
-
var e2 =
|
|
1336
|
+
var e2 = Rn(), t2 = function() {
|
|
1330
1337
|
if (zt) return Lt;
|
|
1331
1338
|
zt = 1;
|
|
1332
|
-
var e3 =
|
|
1339
|
+
var e3 = Rn(), t3 = Object.prototype, n3 = t3.hasOwnProperty, r3 = t3.toString, o2 = e3 ? e3.toStringTag : void 0;
|
|
1333
1340
|
return Lt = function(e4) {
|
|
1334
1341
|
var t4 = n3.call(e4, o2), i2 = e4[o2];
|
|
1335
1342
|
try {
|
|
@@ -1362,7 +1369,7 @@ function Cn() {
|
|
|
1362
1369
|
function Ln() {
|
|
1363
1370
|
if (Bt) return It;
|
|
1364
1371
|
Bt = 1;
|
|
1365
|
-
var e2 =
|
|
1372
|
+
var e2 = Tn(), t2 = Cn();
|
|
1366
1373
|
return It = function(n2) {
|
|
1367
1374
|
if (!t2(n2)) return false;
|
|
1368
1375
|
var r2 = e2(n2);
|
|
@@ -1383,8 +1390,8 @@ function zn() {
|
|
|
1383
1390
|
};
|
|
1384
1391
|
}
|
|
1385
1392
|
function Pn() {
|
|
1386
|
-
if (
|
|
1387
|
-
|
|
1393
|
+
if (Kt) return Gt;
|
|
1394
|
+
Kt = 1;
|
|
1388
1395
|
var e2 = Function.prototype.toString;
|
|
1389
1396
|
return Gt = function(t2) {
|
|
1390
1397
|
if (null != t2) {
|
|
@@ -1404,13 +1411,13 @@ function Fn() {
|
|
|
1404
1411
|
if (en) return Qt;
|
|
1405
1412
|
en = 1;
|
|
1406
1413
|
var e2 = function() {
|
|
1407
|
-
if (Xt) return
|
|
1414
|
+
if (Xt) return Yt;
|
|
1408
1415
|
Xt = 1;
|
|
1409
1416
|
var e3 = Ln(), t3 = zn(), n2 = Cn(), r2 = Pn(), o2 = /^\[object .+?Constructor\]$/, i2 = Function.prototype, l2 = Object.prototype, a2 = i2.toString, c2 = l2.hasOwnProperty, s2 = RegExp("^" + a2.call(c2).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
1410
|
-
return
|
|
1417
|
+
return Yt = function(i3) {
|
|
1411
1418
|
return !(!n2(i3) || t3(i3)) && (e3(i3) ? s2 : o2).test(r2(i3));
|
|
1412
1419
|
};
|
|
1413
|
-
}(), t2 =
|
|
1420
|
+
}(), t2 = Zt ? Jt : (Zt = 1, Jt = function(e3, t3) {
|
|
1414
1421
|
return null == e3 ? void 0 : e3[t3];
|
|
1415
1422
|
});
|
|
1416
1423
|
return Qt = function(n2, r2) {
|
|
@@ -1446,7 +1453,7 @@ function Dn() {
|
|
|
1446
1453
|
fn = 1;
|
|
1447
1454
|
var e3 = Fn()(An(), "WeakMap");
|
|
1448
1455
|
return un = e3;
|
|
1449
|
-
}(), i2 =
|
|
1456
|
+
}(), i2 = Tn(), l2 = Pn(), a2 = "[object Map]", c2 = "[object Promise]", s2 = "[object Set]", u2 = "[object WeakMap]", f2 = "[object DataView]", d2 = l2(e2), p2 = l2(t2), y2 = l2(n2), m2 = l2(r2), g2 = l2(o2), h2 = i2;
|
|
1450
1457
|
return (e2 && h2(new e2(new ArrayBuffer(1))) != f2 || t2 && h2(new t2()) != a2 || n2 && h2(n2.resolve()) != c2 || r2 && h2(new r2()) != s2 || o2 && h2(new o2()) != u2) && (h2 = function(e3) {
|
|
1451
1458
|
var t3 = i2(e3), n3 = "[object Object]" == t3 ? e3.constructor : void 0, r3 = n3 ? l2(n3) : "";
|
|
1452
1459
|
if (r3) switch (r3) {
|
|
@@ -1476,7 +1483,7 @@ function Wn() {
|
|
|
1476
1483
|
var e2 = function() {
|
|
1477
1484
|
if (hn) return gn;
|
|
1478
1485
|
hn = 1;
|
|
1479
|
-
var e3 =
|
|
1486
|
+
var e3 = Tn(), t3 = Nn();
|
|
1480
1487
|
return gn = function(n3) {
|
|
1481
1488
|
return t3(n3) && "[object Arguments]" == e3(n3);
|
|
1482
1489
|
};
|
|
@@ -1500,32 +1507,32 @@ function In() {
|
|
|
1500
1507
|
return "number" == typeof e2 && e2 > -1 && e2 % 1 == 0 && e2 <= 9007199254740991;
|
|
1501
1508
|
};
|
|
1502
1509
|
}
|
|
1503
|
-
var Bn, Hn, Vn, qn, Un, Gn,
|
|
1510
|
+
var Bn, Hn, Vn, qn, Un, Gn, Kn, Yn = { exports: {} };
|
|
1504
1511
|
function Xn() {
|
|
1505
1512
|
return Vn || (Vn = 1, function(e2, t2) {
|
|
1506
1513
|
var n2 = An(), r2 = Hn ? Bn : (Hn = 1, Bn = function() {
|
|
1507
1514
|
return false;
|
|
1508
1515
|
}), o2 = t2 && !t2.nodeType && t2, i2 = o2 && e2 && !e2.nodeType && e2, l2 = i2 && i2.exports === o2 ? n2.Buffer : void 0, a2 = (l2 ? l2.isBuffer : void 0) || r2;
|
|
1509
1516
|
e2.exports = a2;
|
|
1510
|
-
}(
|
|
1517
|
+
}(Yn, Yn.exports)), Yn.exports;
|
|
1511
1518
|
}
|
|
1512
|
-
var
|
|
1519
|
+
var Jn, Zn, Qn, er, tr, nr = { exports: {} };
|
|
1513
1520
|
function rr() {
|
|
1514
|
-
if (Qn) return
|
|
1521
|
+
if (Qn) return Zn;
|
|
1515
1522
|
Qn = 1;
|
|
1516
1523
|
var e2 = function() {
|
|
1517
1524
|
if (Un) return qn;
|
|
1518
1525
|
Un = 1;
|
|
1519
|
-
var e3 =
|
|
1526
|
+
var e3 = Tn(), t3 = In(), n3 = Nn(), r3 = {};
|
|
1520
1527
|
return r3["[object Float32Array]"] = r3["[object Float64Array]"] = r3["[object Int8Array]"] = r3["[object Int16Array]"] = r3["[object Int32Array]"] = r3["[object Uint8Array]"] = r3["[object Uint8ClampedArray]"] = r3["[object Uint16Array]"] = r3["[object Uint32Array]"] = true, r3["[object Arguments]"] = r3["[object Array]"] = r3["[object ArrayBuffer]"] = r3["[object Boolean]"] = r3["[object DataView]"] = r3["[object Date]"] = r3["[object Error]"] = r3["[object Function]"] = r3["[object Map]"] = r3["[object Number]"] = r3["[object Object]"] = r3["[object RegExp]"] = r3["[object Set]"] = r3["[object String]"] = r3["[object WeakMap]"] = false, qn = function(o3) {
|
|
1521
1528
|
return n3(o3) && t3(o3.length) && !!r3[e3(o3)];
|
|
1522
1529
|
};
|
|
1523
|
-
}(), t2 =
|
|
1530
|
+
}(), t2 = Kn ? Gn : (Kn = 1, Gn = function(e3) {
|
|
1524
1531
|
return function(t3) {
|
|
1525
1532
|
return e3(t3);
|
|
1526
1533
|
};
|
|
1527
1534
|
}), n2 = function() {
|
|
1528
|
-
return
|
|
1535
|
+
return Jn || (Jn = 1, e3 = nr, t3 = nr.exports, n3 = En(), r3 = t3 && !t3.nodeType && t3, o3 = r3 && e3 && !e3.nodeType && e3, i2 = o3 && o3.exports === r3 && n3.process, l2 = function() {
|
|
1529
1536
|
try {
|
|
1530
1537
|
return o3 && o3.require && o3.require("util").types || i2 && i2.binding && i2.binding("util");
|
|
1531
1538
|
} catch (e4) {
|
|
@@ -1533,26 +1540,26 @@ function rr() {
|
|
|
1533
1540
|
}(), e3.exports = l2), nr.exports;
|
|
1534
1541
|
var e3, t3, n3, r3, o3, i2, l2;
|
|
1535
1542
|
}(), r2 = n2 && n2.isTypedArray, o2 = r2 ? t2(r2) : e2;
|
|
1536
|
-
return
|
|
1543
|
+
return Zn = o2;
|
|
1537
1544
|
}
|
|
1538
1545
|
var or = function() {
|
|
1539
1546
|
if (tr) return er;
|
|
1540
1547
|
tr = 1;
|
|
1541
1548
|
var e2 = function() {
|
|
1542
|
-
if (jt) return
|
|
1549
|
+
if (jt) return _t;
|
|
1543
1550
|
jt = 1;
|
|
1544
1551
|
var e3 = jn(), t3 = On(), n3 = Object.prototype.hasOwnProperty;
|
|
1545
|
-
return
|
|
1552
|
+
return _t = function(r3) {
|
|
1546
1553
|
if (!e3(r3)) return t3(r3);
|
|
1547
1554
|
var o3 = [];
|
|
1548
1555
|
for (var i3 in Object(r3)) n3.call(r3, i3) && "constructor" != i3 && o3.push(i3);
|
|
1549
1556
|
return o3;
|
|
1550
1557
|
};
|
|
1551
1558
|
}(), t2 = Dn(), n2 = Wn(), r2 = Mn(), o2 = function() {
|
|
1552
|
-
if (
|
|
1553
|
-
|
|
1559
|
+
if (_n) return kn;
|
|
1560
|
+
_n = 1;
|
|
1554
1561
|
var e3 = Ln(), t3 = In();
|
|
1555
|
-
return
|
|
1562
|
+
return kn = function(n3) {
|
|
1556
1563
|
return null != n3 && t3(n3.length) && !e3(n3);
|
|
1557
1564
|
};
|
|
1558
1565
|
}(), i2 = Xn(), l2 = jn(), a2 = rr(), c2 = Object.prototype.hasOwnProperty;
|
|
@@ -1668,14 +1675,14 @@ const dr = async ({ elementReference: e2 = null, tooltipReference: t2 = null, to
|
|
|
1668
1675
|
function Sr(e2 = "DEFAULT_TOOLTIP_ID") {
|
|
1669
1676
|
return c($r).getTooltipData(e2);
|
|
1670
1677
|
}
|
|
1671
|
-
var
|
|
1672
|
-
const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant: c2 = "dark", anchorId: f2, anchorSelect: d2, place: p2 = "top", offset: y2 = 10, events: m2 = ["hover"], openOnClick: g2 = false, positionStrategy: h2 = "absolute", middlewares: v2, wrapper: b2, delayShow: w2 = 0, delayHide: x2 = 0, float: $2 = false, hidden: S2 = false, noArrow:
|
|
1673
|
-
var
|
|
1674
|
-
const X2 = a(null),
|
|
1678
|
+
var kr = { tooltip: "core-styles-module_tooltip__3vRRp", fixed: "core-styles-module_fixed__pcSol", arrow: "core-styles-module_arrow__cvMwQ", noArrow: "core-styles-module_noArrow__xock6", clickable: "core-styles-module_clickable__ZuTTB", show: "core-styles-module_show__Nt9eE", closing: "core-styles-module_closing__sGnxF" }, _r = { tooltip: "styles-module_tooltip__mnnfp", arrow: "styles-module_arrow__K0L3T", dark: "styles-module_dark__xNqje", light: "styles-module_light__Z6W-X", success: "styles-module_success__A2AKt", warning: "styles-module_warning__SCK0X", error: "styles-module_error__JvumD", info: "styles-module_info__BWdHW" };
|
|
1679
|
+
const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant: c2 = "dark", anchorId: f2, anchorSelect: d2, place: p2 = "top", offset: y2 = 10, events: m2 = ["hover"], openOnClick: g2 = false, positionStrategy: h2 = "absolute", middlewares: v2, wrapper: b2, delayShow: w2 = 0, delayHide: x2 = 0, float: $2 = false, hidden: S2 = false, noArrow: k2 = false, clickable: _2 = false, closeOnEsc: j2 = false, closeOnScroll: O2 = false, closeOnResize: E2 = false, openEvents: A2, closeEvents: R2, globalCloseEvents: T2, imperativeModeOnly: C2, style: L2, position: z2, afterShow: P2, afterHide: F2, disableTooltip: D2, content: N2, contentWrapperRef: W2, isOpen: M2, defaultIsOpen: I2 = false, setIsOpen: B2, activeAnchor: H2, setActiveAnchor: V2, border: q2, opacity: U2, arrowColor: G2, role: K2 = "tooltip" }) => {
|
|
1680
|
+
var Y2;
|
|
1681
|
+
const X2 = a(null), J2 = a(null), Z2 = a(null), Q2 = a(null), ee2 = a(null), [te2, ne2] = l({ tooltipStyles: {}, tooltipArrowStyles: {}, place: p2 }), [re2, oe2] = l(false), [ie2, le2] = l(false), [ae2, ce2] = l(null), se2 = a(false), ue2 = a(null), { anchorRefs: fe2, setActiveAnchor: de2 } = Sr(n2), pe2 = a(false), [ye2, me2] = l([]), ge2 = a(false), he2 = g2 || m2.includes("click"), ve2 = he2 || (null == A2 ? void 0 : A2.click) || (null == A2 ? void 0 : A2.dblclick) || (null == A2 ? void 0 : A2.mousedown), be2 = A2 ? { ...A2 } : { mouseover: true, focus: true, mouseenter: false, click: false, dblclick: false, mousedown: false };
|
|
1675
1682
|
!A2 && he2 && Object.assign(be2, { mouseenter: false, focus: false, mouseover: false, click: true });
|
|
1676
|
-
const we2 =
|
|
1677
|
-
!
|
|
1678
|
-
const xe2 =
|
|
1683
|
+
const we2 = R2 ? { ...R2 } : { mouseout: true, blur: true, mouseleave: false, click: false, dblclick: false, mouseup: false };
|
|
1684
|
+
!R2 && he2 && Object.assign(we2, { mouseleave: false, blur: false, mouseout: false });
|
|
1685
|
+
const xe2 = T2 ? { ...T2 } : { escape: j2 || false, scroll: O2 || false, resize: E2 || false, clickOutsideAnchor: ve2 || false };
|
|
1679
1686
|
C2 && (Object.assign(be2, { mouseenter: false, focus: false, click: false, dblclick: false, mousedown: false }), Object.assign(we2, { mouseleave: false, blur: false, click: false, dblclick: false, mouseup: false }), Object.assign(xe2, { escape: false, scroll: false, resize: false, clickOutsideAnchor: false })), br(() => (ge2.current = true, () => {
|
|
1680
1687
|
ge2.current = false;
|
|
1681
1688
|
}), []);
|
|
@@ -1709,11 +1716,11 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1709
1716
|
}, [re2]);
|
|
1710
1717
|
const Se2 = (e3) => {
|
|
1711
1718
|
ne2((t2) => gr(t2, e3) ? t2 : e3);
|
|
1712
|
-
},
|
|
1713
|
-
wr(
|
|
1719
|
+
}, ke2 = (e3 = w2) => {
|
|
1720
|
+
wr(Z2), ie2 ? $e2(true) : Z2.current = setTimeout(() => {
|
|
1714
1721
|
$e2(true);
|
|
1715
1722
|
}, e3);
|
|
1716
|
-
},
|
|
1723
|
+
}, _e2 = (e3 = x2) => {
|
|
1717
1724
|
wr(Q2), Q2.current = setTimeout(() => {
|
|
1718
1725
|
pe2.current || $e2(false);
|
|
1719
1726
|
}, e3);
|
|
@@ -1722,32 +1729,32 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1722
1729
|
if (!e3) return;
|
|
1723
1730
|
const n3 = null !== (t2 = e3.currentTarget) && void 0 !== t2 ? t2 : e3.target;
|
|
1724
1731
|
if (!(null == n3 ? void 0 : n3.isConnected)) return V2(null), void de2({ current: null });
|
|
1725
|
-
w2 ?
|
|
1732
|
+
w2 ? ke2() : $e2(true), V2(n3), de2({ current: n3 }), wr(Q2);
|
|
1726
1733
|
}, Oe2 = () => {
|
|
1727
|
-
|
|
1734
|
+
_2 ? _e2(x2 || 100) : x2 ? _e2() : $e2(false), wr(Z2);
|
|
1728
1735
|
}, Ee2 = ({ x: e3, y: t2 }) => {
|
|
1729
1736
|
var n3;
|
|
1730
1737
|
const r3 = { getBoundingClientRect: () => ({ x: e3, y: t2, width: 0, height: 0, top: t2, left: e3, right: e3, bottom: t2 }) };
|
|
1731
|
-
dr({ place: null !== (n3 = null == ae2 ? void 0 : ae2.place) && void 0 !== n3 ? n3 : p2, offset: y2, elementReference: r3, tooltipReference: X2.current, tooltipArrowReference:
|
|
1738
|
+
dr({ place: null !== (n3 = null == ae2 ? void 0 : ae2.place) && void 0 !== n3 ? n3 : p2, offset: y2, elementReference: r3, tooltipReference: X2.current, tooltipArrowReference: J2.current, strategy: h2, middlewares: v2, border: q2 }).then((e4) => {
|
|
1732
1739
|
Se2(e4);
|
|
1733
1740
|
});
|
|
1734
1741
|
}, Ae2 = (e3) => {
|
|
1735
1742
|
if (!e3) return;
|
|
1736
1743
|
const t2 = e3, n3 = { x: t2.clientX, y: t2.clientY };
|
|
1737
1744
|
Ee2(n3), ue2.current = n3;
|
|
1738
|
-
},
|
|
1745
|
+
}, Re2 = (e3) => {
|
|
1739
1746
|
var t2;
|
|
1740
1747
|
if (!re2) return;
|
|
1741
1748
|
const n3 = e3.target;
|
|
1742
|
-
n3.isConnected && ((null === (t2 = X2.current) || void 0 === t2 ? void 0 : t2.contains(n3)) || [document.querySelector(`[id='${f2}']`), ...ye2].some((e4) => null == e4 ? void 0 : e4.contains(n3)) || ($e2(false), wr(
|
|
1743
|
-
},
|
|
1744
|
-
Ce2.cancel(),
|
|
1749
|
+
n3.isConnected && ((null === (t2 = X2.current) || void 0 === t2 ? void 0 : t2.contains(n3)) || [document.querySelector(`[id='${f2}']`), ...ye2].some((e4) => null == e4 ? void 0 : e4.contains(n3)) || ($e2(false), wr(Z2)));
|
|
1750
|
+
}, Te2 = yr(je2, 50), Ce2 = yr(Oe2, 50), Le2 = (e3) => {
|
|
1751
|
+
Ce2.cancel(), Te2(e3);
|
|
1745
1752
|
}, ze2 = () => {
|
|
1746
|
-
|
|
1753
|
+
Te2.cancel(), Ce2();
|
|
1747
1754
|
}, Pe2 = s(() => {
|
|
1748
1755
|
var e3, t2;
|
|
1749
1756
|
const n3 = null !== (e3 = null == ae2 ? void 0 : ae2.position) && void 0 !== e3 ? e3 : z2;
|
|
1750
|
-
n3 ? Ee2(n3) : $2 ? ue2.current && Ee2(ue2.current) : (null == H2 ? void 0 : H2.isConnected) && dr({ place: null !== (t2 = null == ae2 ? void 0 : ae2.place) && void 0 !== t2 ? t2 : p2, offset: y2, elementReference: H2, tooltipReference: X2.current, tooltipArrowReference:
|
|
1757
|
+
n3 ? Ee2(n3) : $2 ? ue2.current && Ee2(ue2.current) : (null == H2 ? void 0 : H2.isConnected) && dr({ place: null !== (t2 = null == ae2 ? void 0 : ae2.place) && void 0 !== t2 ? t2 : p2, offset: y2, elementReference: H2, tooltipReference: X2.current, tooltipArrowReference: J2.current, strategy: h2, middlewares: v2, border: q2 }).then((e4) => {
|
|
1751
1758
|
ge2.current && Se2(e4);
|
|
1752
1759
|
});
|
|
1753
1760
|
}, [re2, H2, N2, L2, p2, null == ae2 ? void 0 : ae2.place, y2, h2, z2, null == ae2 ? void 0 : ae2.position, $2]);
|
|
@@ -1768,7 +1775,7 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1768
1775
|
const c3 = (e4) => {
|
|
1769
1776
|
"Escape" === e4.key && $e2(false);
|
|
1770
1777
|
};
|
|
1771
|
-
xe2.escape && window.addEventListener("keydown", c3), xe2.clickOutsideAnchor && window.addEventListener("click",
|
|
1778
|
+
xe2.escape && window.addEventListener("keydown", c3), xe2.clickOutsideAnchor && window.addEventListener("click", Re2);
|
|
1772
1779
|
const s2 = [], u2 = (e4) => {
|
|
1773
1780
|
re2 && (null == e4 ? void 0 : e4.target) === H2 || je2(e4);
|
|
1774
1781
|
}, d3 = (e4) => {
|
|
@@ -1784,21 +1791,21 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1784
1791
|
}, g3 = () => {
|
|
1785
1792
|
pe2.current = false, Oe2();
|
|
1786
1793
|
};
|
|
1787
|
-
return
|
|
1794
|
+
return _2 && !ve2 && (null === (e3 = X2.current) || void 0 === e3 || e3.addEventListener("mouseenter", m3), null === (t2 = X2.current) || void 0 === t2 || t2.addEventListener("mouseleave", g3)), s2.forEach(({ event: e4, listener: t3 }) => {
|
|
1788
1795
|
n3.forEach((n4) => {
|
|
1789
1796
|
var r4;
|
|
1790
1797
|
null === (r4 = n4.current) || void 0 === r4 || r4.addEventListener(e4, t3);
|
|
1791
1798
|
});
|
|
1792
1799
|
}), () => {
|
|
1793
1800
|
var e4, t3;
|
|
1794
|
-
xe2.scroll && (window.removeEventListener("scroll", o2), null == i3 || i3.removeEventListener("scroll", o2), null == l2 || l2.removeEventListener("scroll", o2)), xe2.resize ? window.removeEventListener("resize", o2) : null == a2 || a2(), xe2.clickOutsideAnchor && window.removeEventListener("click",
|
|
1801
|
+
xe2.scroll && (window.removeEventListener("scroll", o2), null == i3 || i3.removeEventListener("scroll", o2), null == l2 || l2.removeEventListener("scroll", o2)), xe2.resize ? window.removeEventListener("resize", o2) : null == a2 || a2(), xe2.clickOutsideAnchor && window.removeEventListener("click", Re2), xe2.escape && window.removeEventListener("keydown", c3), _2 && !ve2 && (null === (e4 = X2.current) || void 0 === e4 || e4.removeEventListener("mouseenter", m3), null === (t3 = X2.current) || void 0 === t3 || t3.removeEventListener("mouseleave", g3)), s2.forEach(({ event: e5, listener: t4 }) => {
|
|
1795
1802
|
n3.forEach((n4) => {
|
|
1796
1803
|
var r4;
|
|
1797
1804
|
null === (r4 = n4.current) || void 0 === r4 || r4.removeEventListener(e5, t4);
|
|
1798
1805
|
});
|
|
1799
1806
|
});
|
|
1800
1807
|
};
|
|
1801
|
-
}, [H2, Pe2, ie2, fe2, ye2, A2,
|
|
1808
|
+
}, [H2, Pe2, ie2, fe2, ye2, A2, R2, T2, he2, w2, x2]), o(() => {
|
|
1802
1809
|
var e3, t2;
|
|
1803
1810
|
let r3 = null !== (t2 = null !== (e3 = null == ae2 ? void 0 : ae2.anchorSelect) && void 0 !== e3 ? e3 : d2) && void 0 !== t2 ? t2 : "";
|
|
1804
1811
|
!r3 && n2 && (r3 = `[data-tooltip-id='${n2.replace(/'/g, "\\'")}']`);
|
|
@@ -1814,7 +1821,7 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1814
1821
|
}
|
|
1815
1822
|
t4.some((e6) => {
|
|
1816
1823
|
var t5;
|
|
1817
|
-
return !!(null === (t5 = null == e6 ? void 0 : e6.contains) || void 0 === t5 ? void 0 : t5.call(e6, H2)) && (le2(false), $e2(false), V2(null), wr(
|
|
1824
|
+
return !!(null === (t5 = null == e6 ? void 0 : e6.contains) || void 0 === t5 ? void 0 : t5.call(e6, H2)) && (le2(false), $e2(false), V2(null), wr(Z2), wr(Q2), true);
|
|
1818
1825
|
});
|
|
1819
1826
|
}
|
|
1820
1827
|
if (r3) try {
|
|
@@ -1843,7 +1850,7 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1843
1850
|
const t2 = document.querySelector(`[id='${f2}']`), n3 = [...ye2, t2];
|
|
1844
1851
|
H2 && n3.includes(H2) || V2(null !== (e3 = ye2[0]) && void 0 !== e3 ? e3 : t2);
|
|
1845
1852
|
}, [f2, ye2, H2]), o(() => (I2 && $e2(true), () => {
|
|
1846
|
-
wr(
|
|
1853
|
+
wr(Z2), wr(Q2);
|
|
1847
1854
|
}), []), o(() => {
|
|
1848
1855
|
var e3;
|
|
1849
1856
|
let t2 = null !== (e3 = null == ae2 ? void 0 : ae2.anchorSelect) && void 0 !== e3 ? e3 : d2;
|
|
@@ -1854,23 +1861,23 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1854
1861
|
me2([]);
|
|
1855
1862
|
}
|
|
1856
1863
|
}, [n2, d2, null == ae2 ? void 0 : ae2.anchorSelect]), o(() => {
|
|
1857
|
-
|
|
1864
|
+
Z2.current && (wr(Z2), ke2(w2));
|
|
1858
1865
|
}, [w2]);
|
|
1859
|
-
const Fe2 = null !== (
|
|
1866
|
+
const Fe2 = null !== (Y2 = null == ae2 ? void 0 : ae2.content) && void 0 !== Y2 ? Y2 : N2, De2 = re2 && Object.keys(te2.tooltipStyles).length > 0;
|
|
1860
1867
|
return u(e2, () => ({ open: (e3) => {
|
|
1861
1868
|
if (null == e3 ? void 0 : e3.anchorSelect) try {
|
|
1862
1869
|
document.querySelector(e3.anchorSelect);
|
|
1863
1870
|
} catch (t2) {
|
|
1864
1871
|
return void console.warn(`[react-tooltip] "${e3.anchorSelect}" is not a valid CSS selector`);
|
|
1865
1872
|
}
|
|
1866
|
-
ce2(null != e3 ? e3 : null), (null == e3 ? void 0 : e3.delay) ?
|
|
1873
|
+
ce2(null != e3 ? e3 : null), (null == e3 ? void 0 : e3.delay) ? ke2(e3.delay) : $e2(true);
|
|
1867
1874
|
}, close: (e3) => {
|
|
1868
|
-
(null == e3 ? void 0 : e3.delay) ?
|
|
1869
|
-
}, activeAnchor: H2, place: te2.place, isOpen: Boolean(ie2 && !S2 && Fe2 && De2) })), ie2 && !S2 && Fe2 ? t.createElement(b2, { id: n2, role:
|
|
1875
|
+
(null == e3 ? void 0 : e3.delay) ? _e2(e3.delay) : $e2(false);
|
|
1876
|
+
}, activeAnchor: H2, place: te2.place, isOpen: Boolean(ie2 && !S2 && Fe2 && De2) })), ie2 && !S2 && Fe2 ? t.createElement(b2, { id: n2, role: K2, className: sr("react-tooltip", kr.tooltip, _r.tooltip, _r[c2], r2, `react-tooltip__place-${te2.place}`, kr[De2 ? "show" : "closing"], De2 ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === h2 && kr.fixed, _2 && kr.clickable), onTransitionEnd: (e3) => {
|
|
1870
1877
|
wr(ee2), re2 || "opacity" !== e3.propertyName || (le2(false), ce2(null), null == F2 || F2());
|
|
1871
|
-
}, style: { ...L2, ...te2.tooltipStyles, opacity: void 0 !== U2 && De2 ? U2 : void 0 }, ref: X2 }, Fe2, t.createElement(b2, { className: sr("react-tooltip-arrow",
|
|
1872
|
-
}, Or = ({ content: e2 }) => t.createElement("span", { dangerouslySetInnerHTML: { __html: e2 } }), Er = t.forwardRef(({ id: e2, anchorId: n2, anchorSelect: r2, content: i2, html: c2, render: s2, className: u2, classNameArrow: f2, variant: d2 = "dark", place: p2 = "top", offset: y2 = 10, wrapper: m2 = "div", children: g2 = null, events: h2 = ["hover"], openOnClick: v2 = false, positionStrategy: b2 = "absolute", middlewares: w2, delayShow: x2 = 0, delayHide: $2 = 0, float: S2 = false, hidden:
|
|
1873
|
-
const [
|
|
1878
|
+
}, style: { ...L2, ...te2.tooltipStyles, opacity: void 0 !== U2 && De2 ? U2 : void 0 }, ref: X2 }, Fe2, t.createElement(b2, { className: sr("react-tooltip-arrow", kr.arrow, _r.arrow, i2, k2 && kr.noArrow), style: { ...te2.tooltipArrowStyles, background: G2 ? `linear-gradient(to right bottom, transparent 50%, ${G2} 50%)` : void 0 }, ref: J2 })) : null;
|
|
1879
|
+
}, Or = ({ content: e2 }) => t.createElement("span", { dangerouslySetInnerHTML: { __html: e2 } }), Er = t.forwardRef(({ id: e2, anchorId: n2, anchorSelect: r2, content: i2, html: c2, render: s2, className: u2, classNameArrow: f2, variant: d2 = "dark", place: p2 = "top", offset: y2 = 10, wrapper: m2 = "div", children: g2 = null, events: h2 = ["hover"], openOnClick: v2 = false, positionStrategy: b2 = "absolute", middlewares: w2, delayShow: x2 = 0, delayHide: $2 = 0, float: S2 = false, hidden: k2 = false, noArrow: _2 = false, clickable: j2 = false, closeOnEsc: O2 = false, closeOnScroll: E2 = false, closeOnResize: A2 = false, openEvents: R2, closeEvents: T2, globalCloseEvents: C2, imperativeModeOnly: L2 = false, style: z2, position: P2, isOpen: F2, defaultIsOpen: D2 = false, disableStyleInjection: N2 = false, border: W2, opacity: M2, arrowColor: I2, setIsOpen: B2, afterShow: H2, afterHide: V2, disableTooltip: q2, role: U2 = "tooltip" }, G2) => {
|
|
1880
|
+
const [K2, Y2] = l(i2), [X2, J2] = l(c2), [Z2, Q2] = l(p2), [ee2, te2] = l(d2), [ne2, re2] = l(y2), [oe2, ie2] = l(x2), [le2, ae2] = l($2), [ce2, se2] = l(S2), [ue2, fe2] = l(k2), [de2, pe2] = l(m2), [ye2, me2] = l(h2), [ge2, he2] = l(b2), [ve2, be2] = l(null), [we2, xe2] = l(null), $e2 = a(N2), { anchorRefs: Se2, activeAnchor: ke2 } = Sr(e2), _e2 = (e3) => null == e3 ? void 0 : e3.getAttributeNames().reduce((t2, n3) => {
|
|
1874
1881
|
var r3;
|
|
1875
1882
|
return n3.startsWith("data-tooltip-") && (t2[n3.replace(/^data-tooltip-/, "")] = null !== (r3 = null == e3 ? void 0 : e3.getAttribute(n3)) && void 0 !== r3 ? r3 : null), t2;
|
|
1876
1883
|
}, {}), je2 = (e3) => {
|
|
@@ -1878,9 +1885,9 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1878
1885
|
var t3;
|
|
1879
1886
|
Q2(null !== (t3 = e4) && void 0 !== t3 ? t3 : p2);
|
|
1880
1887
|
}, content: (e4) => {
|
|
1881
|
-
|
|
1888
|
+
Y2(null != e4 ? e4 : i2);
|
|
1882
1889
|
}, html: (e4) => {
|
|
1883
|
-
|
|
1890
|
+
J2(null != e4 ? e4 : c2);
|
|
1884
1891
|
}, variant: (e4) => {
|
|
1885
1892
|
var t3;
|
|
1886
1893
|
te2(null !== (t3 = e4) && void 0 !== t3 ? t3 : d2);
|
|
@@ -1902,7 +1909,7 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1902
1909
|
}, float: (e4) => {
|
|
1903
1910
|
se2(null === e4 ? S2 : "true" === e4);
|
|
1904
1911
|
}, hidden: (e4) => {
|
|
1905
|
-
fe2(null === e4 ?
|
|
1912
|
+
fe2(null === e4 ? k2 : "true" === e4);
|
|
1906
1913
|
}, "class-name": (e4) => {
|
|
1907
1914
|
be2(e4);
|
|
1908
1915
|
} };
|
|
@@ -1912,9 +1919,9 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1912
1919
|
});
|
|
1913
1920
|
};
|
|
1914
1921
|
o(() => {
|
|
1915
|
-
|
|
1922
|
+
Y2(i2);
|
|
1916
1923
|
}, [i2]), o(() => {
|
|
1917
|
-
|
|
1924
|
+
J2(c2);
|
|
1918
1925
|
}, [c2]), o(() => {
|
|
1919
1926
|
Q2(p2);
|
|
1920
1927
|
}, [p2]), o(() => {
|
|
@@ -1928,8 +1935,8 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1928
1935
|
}, [$2]), o(() => {
|
|
1929
1936
|
se2(S2);
|
|
1930
1937
|
}, [S2]), o(() => {
|
|
1931
|
-
fe2(
|
|
1932
|
-
}, [
|
|
1938
|
+
fe2(k2);
|
|
1939
|
+
}, [k2]), o(() => {
|
|
1933
1940
|
he2(b2);
|
|
1934
1941
|
}, [b2]), o(() => {
|
|
1935
1942
|
$e2.current !== N2 && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
@@ -1948,38 +1955,38 @@ const jr = ({ forwardRef: e2, id: n2, className: r2, classNameArrow: i2, variant
|
|
|
1948
1955
|
}
|
|
1949
1956
|
const l2 = document.querySelector(`[id='${n2}']`);
|
|
1950
1957
|
if (l2 && o2.add({ current: l2 }), !o2.size) return () => null;
|
|
1951
|
-
const a2 = null !== (t2 = null != we2 ? we2 : l2) && void 0 !== t2 ? t2 :
|
|
1958
|
+
const a2 = null !== (t2 = null != we2 ? we2 : l2) && void 0 !== t2 ? t2 : ke2.current, c3 = new MutationObserver((e3) => {
|
|
1952
1959
|
e3.forEach((e4) => {
|
|
1953
1960
|
var t3;
|
|
1954
1961
|
if (!a2 || "attributes" !== e4.type || !(null === (t3 = e4.attributeName) || void 0 === t3 ? void 0 : t3.startsWith("data-tooltip-"))) return;
|
|
1955
|
-
const n3 =
|
|
1962
|
+
const n3 = _e2(a2);
|
|
1956
1963
|
je2(n3);
|
|
1957
1964
|
});
|
|
1958
1965
|
}), s3 = { attributes: true, childList: false, subtree: false };
|
|
1959
1966
|
if (a2) {
|
|
1960
|
-
const e3 =
|
|
1967
|
+
const e3 = _e2(a2);
|
|
1961
1968
|
je2(e3), c3.observe(a2, s3);
|
|
1962
1969
|
}
|
|
1963
1970
|
return () => {
|
|
1964
1971
|
c3.disconnect();
|
|
1965
1972
|
};
|
|
1966
|
-
}, [Se2,
|
|
1973
|
+
}, [Se2, ke2, we2, n2, r2]), o(() => {
|
|
1967
1974
|
(null == z2 ? void 0 : z2.border) && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), W2 && !pr("border", `${W2}`) && console.warn(`[react-tooltip] "${W2}" is not a valid \`border\`.`), (null == z2 ? void 0 : z2.opacity) && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), M2 && !pr("opacity", `${M2}`) && console.warn(`[react-tooltip] "${M2}" is not a valid \`opacity\`.`);
|
|
1968
1975
|
}, []);
|
|
1969
1976
|
let Oe2 = g2;
|
|
1970
1977
|
const Ee2 = a(null);
|
|
1971
1978
|
if (s2) {
|
|
1972
|
-
const e3 = s2({ content: (null == we2 ? void 0 : we2.getAttribute("data-tooltip-content")) ||
|
|
1979
|
+
const e3 = s2({ content: (null == we2 ? void 0 : we2.getAttribute("data-tooltip-content")) || K2 || null, activeAnchor: we2 });
|
|
1973
1980
|
Oe2 = e3 ? t.createElement("div", { ref: Ee2, className: "react-tooltip-content-wrapper" }, e3) : null;
|
|
1974
|
-
} else
|
|
1981
|
+
} else K2 && (Oe2 = K2);
|
|
1975
1982
|
X2 && (Oe2 = t.createElement(Or, { content: X2 }));
|
|
1976
|
-
const Ae2 = { forwardRef: G2, id: e2, anchorId: n2, anchorSelect: r2, className: sr(u2, ve2), classNameArrow: f2, content: Oe2, contentWrapperRef: Ee2, place:
|
|
1983
|
+
const Ae2 = { forwardRef: G2, id: e2, anchorId: n2, anchorSelect: r2, className: sr(u2, ve2), classNameArrow: f2, content: Oe2, contentWrapperRef: Ee2, place: Z2, variant: ee2, offset: ne2, wrapper: de2, events: ye2, openOnClick: v2, positionStrategy: ge2, middlewares: w2, delayShow: oe2, delayHide: le2, float: ce2, hidden: ue2, noArrow: _2, clickable: j2, closeOnEsc: O2, closeOnScroll: E2, closeOnResize: A2, openEvents: R2, closeEvents: T2, globalCloseEvents: C2, imperativeModeOnly: L2, style: z2, position: P2, isOpen: F2, defaultIsOpen: D2, border: W2, opacity: M2, arrowColor: I2, setIsOpen: B2, afterShow: H2, afterHide: V2, disableTooltip: q2, activeAnchor: we2, setActiveAnchor: (e3) => xe2(e3), role: U2 };
|
|
1977
1984
|
return t.createElement(jr, { ...Ae2 });
|
|
1978
1985
|
});
|
|
1979
1986
|
"undefined" != typeof window && window.addEventListener("react-tooltip-inject-styles", (e2) => {
|
|
1980
1987
|
e2.detail.disableCore || fr({ css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}", type: "core" }), e2.detail.disableBase || fr({ css: "\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}", type: "base" });
|
|
1981
1988
|
});
|
|
1982
|
-
const Ar = p(B)``,
|
|
1989
|
+
const Ar = p(B)``, Rr = p.div`
|
|
1983
1990
|
${({ theme: e2, $maxWidth: t2 = "320px" }) => `
|
|
1984
1991
|
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
1985
1992
|
background-color: ${e2.palette.gray[700]};
|
|
@@ -1992,18 +1999,18 @@ const Ar = p(B)``, Tr = p.div`
|
|
|
1992
1999
|
--rt-opacity: 1;
|
|
1993
2000
|
}
|
|
1994
2001
|
`}
|
|
1995
|
-
`,
|
|
1996
|
-
const $2 = y(), [S2,
|
|
1997
|
-
null !==
|
|
1998
|
-
|
|
2002
|
+
`, Tr = n(function({ children: e2, disabled: t2 = false, display: n2 = "inline-block", effect: r2 = "solid", icon: o2, iconColor: i2, iconSize: c2, id: u2, maxWidth: d2, nodeTip: p2, place: m2 = "bottom", tip: h2 = "", title: v2 = "", hide: b2 = "" === h2 && "" === v2 && void 0 === p2, ...w2 }, x2) {
|
|
2003
|
+
const $2 = y(), [S2, k2] = l(false), _2 = a(null), j2 = s(() => {
|
|
2004
|
+
null !== _2.current && clearTimeout(_2.current), _2.current = setTimeout(() => {
|
|
2005
|
+
k2(true);
|
|
1999
2006
|
}, 100);
|
|
2000
2007
|
}, []), O2 = s(() => {
|
|
2001
|
-
null !==
|
|
2002
|
-
|
|
2008
|
+
null !== _2.current && clearTimeout(_2.current), _2.current = setTimeout(() => {
|
|
2009
|
+
k2(false);
|
|
2003
2010
|
}, 100);
|
|
2004
2011
|
}, []);
|
|
2005
|
-
return t2 ? E.jsx(f, { children: e2 }) : E.jsxs(Ar, { "data-tooltip-id": u2, display: n2, onMouseLeave: O2, onMouseMove: j2, ref: x2, role: "tooltip", ...w2, children: [o2 ? E.jsx(ee, { clickable: true, disabled: t2, icon: o2, iconColor: i2, iconSize: c2 ?? "xxs", iconType: S2 ? "fa-solid" : "fa-light" }) : e2, g(E.jsx(
|
|
2006
|
-
var A2,
|
|
2012
|
+
return t2 ? E.jsx(f, { children: e2 }) : E.jsxs(Ar, { "data-tooltip-id": u2, display: n2, onMouseLeave: O2, onMouseMove: j2, ref: x2, role: "tooltip", ...w2, children: [o2 ? E.jsx(ee, { clickable: true, disabled: t2, icon: o2, iconColor: i2, iconSize: c2 ?? "xxs", iconType: S2 ? "fa-solid" : "fa-light" }) : e2, g(E.jsx(Rr, { $maxWidth: d2, children: E.jsxs(Er, { delayShow: 500, float: "float" === r2 || void 0, globalCloseEvents: { resize: true }, hidden: b2 || !S2, id: u2, middlewares: [(A2 = { fallbackAxisSideDirection: "start" }, { ...st(A2), options: [A2, R2] }), vt({ mainAxis: 10 })], noArrow: "float" === r2, place: m2, children: [ir(v2) ? void 0 : E.jsx(J, { color: $2.palette.white, fontWeight: "bold", lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: v2 }), ir(h2) ? void 0 : E.jsx(J, { color: $2.palette.gray[100], lineSpacing: 1.5, size: "xs", textAlign: "start", wordWrap: "break-word", children: h2 }), ir(p2) ? void 0 : p2] }) }), document.getElementById("root") ?? document.body)] });
|
|
2013
|
+
var A2, R2;
|
|
2007
2014
|
});
|
|
2008
2015
|
const Cr = w(Cn()), Lr = n(function({ children: e2, disabled: t2 = false, external: n2 = false, href: r2, id: o2, icon: i2, name: l2, onClick: a2, showArrow: c2 = false, type: u2 = "button", tooltip: f2, tooltipPlace: d2 = "bottom", underline: p2 = false, value: y2, variant: m2 = "primary", ...g2 }, h2) {
|
|
2009
2016
|
const v2 = void 0 !== f2, b2 = `${o2}-tooltip`, w2 = s(() => {
|
|
@@ -2012,7 +2019,7 @@ const Cr = w(Cn()), Lr = n(function({ children: e2, disabled: t2 = false, extern
|
|
|
2012
2019
|
Cr(n3) && (n3.opener = null);
|
|
2013
2020
|
})(r2, n2);
|
|
2014
2021
|
}, [n2, r2]);
|
|
2015
|
-
return E.jsx(
|
|
2022
|
+
return E.jsx(Tr, { disabled: !v2, id: b2, place: d2, tip: f2, children: E.jsxs(ne, { $variant: m2, "aria-disabled": t2, className: p2 ? "underline" : void 0, disabled: t2, id: o2, name: l2, onClick: "link" === m2 ? w2 : a2, ref: h2, type: u2, value: y2, ...v2 ? { "data-tooltip-id": b2 } : {}, ...g2, children: [void 0 !== i2 && E.jsx(ee, { icon: i2, iconSize: "xs", iconType: "fa-light" }), e2, (c2 || "link" === m2) && E.jsx(ee, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })] }) });
|
|
2016
2023
|
});
|
|
2017
2024
|
export {
|
|
2018
2025
|
N as A,
|
|
@@ -2021,12 +2028,12 @@ export {
|
|
|
2021
2028
|
I as D,
|
|
2022
2029
|
C as E,
|
|
2023
2030
|
A as F,
|
|
2024
|
-
|
|
2025
|
-
|
|
2031
|
+
R as G,
|
|
2032
|
+
Y as H,
|
|
2026
2033
|
ee as I,
|
|
2027
2034
|
ne as S,
|
|
2028
|
-
|
|
2029
|
-
|
|
2035
|
+
J as T,
|
|
2036
|
+
Tr as a,
|
|
2030
2037
|
X as b,
|
|
2031
2038
|
H as c,
|
|
2032
2039
|
Lr as d,
|
|
@@ -2039,13 +2046,13 @@ export {
|
|
|
2039
2046
|
Nn as k,
|
|
2040
2047
|
b as l,
|
|
2041
2048
|
Cr as m,
|
|
2042
|
-
|
|
2049
|
+
Rn as n,
|
|
2043
2050
|
v as o,
|
|
2044
2051
|
V as p,
|
|
2045
2052
|
q,
|
|
2046
|
-
|
|
2053
|
+
Tn as r,
|
|
2047
2054
|
z as s,
|
|
2048
|
-
|
|
2055
|
+
T as t,
|
|
2049
2056
|
ht as u,
|
|
2050
2057
|
h as v,
|
|
2051
2058
|
W as w,
|