chiperos-ai-components-library 0.1.5 → 0.1.6
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.
|
@@ -141,12 +141,12 @@ const Gn = "-", Ma = (e) => {
|
|
|
141
141
|
}
|
|
142
142
|
b === "[" ? c++ : b === "]" && c--;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const $ = s.length === 0 ? d : d.substring(l), m = $.startsWith(Bo), v = m ? $.substring(1) : $, f = u && u > l ? u - l : void 0;
|
|
145
145
|
return {
|
|
146
146
|
modifiers: s,
|
|
147
147
|
hasImportantModifier: m,
|
|
148
148
|
baseClassName: v,
|
|
149
|
-
maybePostfixModifierPosition:
|
|
149
|
+
maybePostfixModifierPosition: f
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
return n ? (d) => n({
|
|
@@ -176,26 +176,26 @@ const Gn = "-", Ma = (e) => {
|
|
|
176
176
|
const c = a[s], {
|
|
177
177
|
modifiers: l,
|
|
178
178
|
hasImportantModifier: u,
|
|
179
|
-
baseClassName:
|
|
179
|
+
baseClassName: $,
|
|
180
180
|
maybePostfixModifierPosition: m
|
|
181
181
|
} = n(c);
|
|
182
|
-
let v = !!m,
|
|
183
|
-
if (
|
|
182
|
+
let v = !!m, f = r(v ? $.substring(0, m) : $);
|
|
183
|
+
if (!f) {
|
|
184
184
|
if (!v) {
|
|
185
185
|
d = c + (d.length > 0 ? " " + d : d);
|
|
186
186
|
continue;
|
|
187
187
|
}
|
|
188
|
-
if (
|
|
188
|
+
if (f = r($), !f) {
|
|
189
189
|
d = c + (d.length > 0 ? " " + d : d);
|
|
190
190
|
continue;
|
|
191
191
|
}
|
|
192
192
|
v = !1;
|
|
193
193
|
}
|
|
194
|
-
const g = Wa(l).join(":"), b = u ? g + Bo : g, y = b +
|
|
194
|
+
const g = Wa(l).join(":"), b = u ? g + Bo : g, y = b + f;
|
|
195
195
|
if (i.includes(y))
|
|
196
196
|
continue;
|
|
197
197
|
i.push(y);
|
|
198
|
-
const w = o(
|
|
198
|
+
const w = o(f, v);
|
|
199
199
|
for (let x = 0; x < w.length; ++x) {
|
|
200
200
|
const S = w[x];
|
|
201
201
|
i.push(b + S);
|
|
@@ -247,7 +247,7 @@ const V = (e) => {
|
|
|
247
247
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
248
248
|
Qa.test(e) && !ed.test(e)
|
|
249
249
|
), Wo = () => !1, ud = (e) => td.test(e), fd = (e) => nd.test(e), $d = () => {
|
|
250
|
-
const e = V("colors"), t = V("spacing"), n = V("blur"), r = V("brightness"), o = V("borderColor"), i = V("borderRadius"), a = V("borderSpacing"), d = V("borderWidth"), s = V("contrast"), c = V("grayscale"), l = V("hueRotate"), u = V("invert"),
|
|
250
|
+
const e = V("colors"), t = V("spacing"), n = V("blur"), r = V("brightness"), o = V("borderColor"), i = V("borderRadius"), a = V("borderSpacing"), d = V("borderWidth"), s = V("contrast"), c = V("grayscale"), l = V("hueRotate"), u = V("invert"), $ = V("gap"), m = V("gradientColorStops"), v = V("gradientColorStopPositions"), f = V("inset"), g = V("margin"), b = V("opacity"), y = V("padding"), w = V("saturate"), x = V("scale"), S = V("sepia"), N = V("skew"), _ = V("space"), k = V("translate"), D = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", F, t], E = () => [F, t], z = () => ["", xe, Ne], O = () => ["auto", Je, F], j = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", F], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Je, F];
|
|
251
251
|
return {
|
|
252
252
|
cacheSize: 500,
|
|
253
253
|
separator: ":",
|
|
@@ -424,63 +424,63 @@ const V = (e) => {
|
|
|
424
424
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
425
425
|
*/
|
|
426
426
|
inset: [{
|
|
427
|
-
inset: [
|
|
427
|
+
inset: [f]
|
|
428
428
|
}],
|
|
429
429
|
/**
|
|
430
430
|
* Right / Left
|
|
431
431
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
432
432
|
*/
|
|
433
433
|
"inset-x": [{
|
|
434
|
-
"inset-x": [
|
|
434
|
+
"inset-x": [f]
|
|
435
435
|
}],
|
|
436
436
|
/**
|
|
437
437
|
* Top / Bottom
|
|
438
438
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
439
439
|
*/
|
|
440
440
|
"inset-y": [{
|
|
441
|
-
"inset-y": [
|
|
441
|
+
"inset-y": [f]
|
|
442
442
|
}],
|
|
443
443
|
/**
|
|
444
444
|
* Start
|
|
445
445
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
446
446
|
*/
|
|
447
447
|
start: [{
|
|
448
|
-
start: [
|
|
448
|
+
start: [f]
|
|
449
449
|
}],
|
|
450
450
|
/**
|
|
451
451
|
* End
|
|
452
452
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
453
453
|
*/
|
|
454
454
|
end: [{
|
|
455
|
-
end: [
|
|
455
|
+
end: [f]
|
|
456
456
|
}],
|
|
457
457
|
/**
|
|
458
458
|
* Top
|
|
459
459
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
460
460
|
*/
|
|
461
461
|
top: [{
|
|
462
|
-
top: [
|
|
462
|
+
top: [f]
|
|
463
463
|
}],
|
|
464
464
|
/**
|
|
465
465
|
* Right
|
|
466
466
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
467
467
|
*/
|
|
468
468
|
right: [{
|
|
469
|
-
right: [
|
|
469
|
+
right: [f]
|
|
470
470
|
}],
|
|
471
471
|
/**
|
|
472
472
|
* Bottom
|
|
473
473
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
474
474
|
*/
|
|
475
475
|
bottom: [{
|
|
476
|
-
bottom: [
|
|
476
|
+
bottom: [f]
|
|
477
477
|
}],
|
|
478
478
|
/**
|
|
479
479
|
* Left
|
|
480
480
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
481
481
|
*/
|
|
482
482
|
left: [{
|
|
483
|
-
left: [
|
|
483
|
+
left: [f]
|
|
484
484
|
}],
|
|
485
485
|
/**
|
|
486
486
|
* Visibility
|
|
@@ -630,21 +630,21 @@ const V = (e) => {
|
|
|
630
630
|
* @see https://tailwindcss.com/docs/gap
|
|
631
631
|
*/
|
|
632
632
|
gap: [{
|
|
633
|
-
gap: [
|
|
633
|
+
gap: [$]
|
|
634
634
|
}],
|
|
635
635
|
/**
|
|
636
636
|
* Gap X
|
|
637
637
|
* @see https://tailwindcss.com/docs/gap
|
|
638
638
|
*/
|
|
639
639
|
"gap-x": [{
|
|
640
|
-
"gap-x": [
|
|
640
|
+
"gap-x": [$]
|
|
641
641
|
}],
|
|
642
642
|
/**
|
|
643
643
|
* Gap Y
|
|
644
644
|
* @see https://tailwindcss.com/docs/gap
|
|
645
645
|
*/
|
|
646
646
|
"gap-y": [{
|
|
647
|
-
"gap-y": [
|
|
647
|
+
"gap-y": [$]
|
|
648
648
|
}],
|
|
649
649
|
/**
|
|
650
650
|
* Justify Content
|
|
@@ -2393,26 +2393,26 @@ const xr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Cr = zo, g
|
|
|
2393
2393
|
const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((c) => {
|
|
2394
2394
|
const l = n?.[c], u = i?.[c];
|
|
2395
2395
|
if (l === null) return null;
|
|
2396
|
-
const
|
|
2397
|
-
return o[c][
|
|
2396
|
+
const $ = xr(l) || xr(u);
|
|
2397
|
+
return o[c][$];
|
|
2398
2398
|
}), d = n && Object.entries(n).reduce((c, l) => {
|
|
2399
|
-
let [u,
|
|
2400
|
-
return
|
|
2399
|
+
let [u, $] = l;
|
|
2400
|
+
return $ === void 0 || (c[u] = $), c;
|
|
2401
2401
|
}, {}), s = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, l) => {
|
|
2402
|
-
let { class: u, className:
|
|
2402
|
+
let { class: u, className: $, ...m } = l;
|
|
2403
2403
|
return Object.entries(m).every((v) => {
|
|
2404
|
-
let [
|
|
2404
|
+
let [f, g] = v;
|
|
2405
2405
|
return Array.isArray(g) ? g.includes({
|
|
2406
2406
|
...i,
|
|
2407
2407
|
...d
|
|
2408
|
-
}[
|
|
2408
|
+
}[f]) : {
|
|
2409
2409
|
...i,
|
|
2410
2410
|
...d
|
|
2411
|
-
}[
|
|
2411
|
+
}[f] === g;
|
|
2412
2412
|
}) ? [
|
|
2413
2413
|
...c,
|
|
2414
2414
|
u,
|
|
2415
|
-
|
|
2415
|
+
$
|
|
2416
2416
|
] : c;
|
|
2417
2417
|
}, []);
|
|
2418
2418
|
return Cr(e, a, s, n?.class, n?.className);
|
|
@@ -2557,8 +2557,8 @@ const bd = h.forwardRef(
|
|
|
2557
2557
|
...d
|
|
2558
2558
|
}, s) => {
|
|
2559
2559
|
const c = () => typeof t == "number" ? `gap-${t}` : "", l = () => {
|
|
2560
|
-
const
|
|
2561
|
-
return
|
|
2560
|
+
const $ = [];
|
|
2561
|
+
return $.push(`grid-cols-${r}`), n && $.push(`md:grid-cols-${n}`), $.push(`lg:grid-cols-${e}`), $.join(" ");
|
|
2562
2562
|
}, u = typeof t == "string" ? { gap: t, ...a } : a;
|
|
2563
2563
|
return /* @__PURE__ */ p(
|
|
2564
2564
|
"div",
|
|
@@ -2572,10 +2572,10 @@ const bd = h.forwardRef(
|
|
|
2572
2572
|
),
|
|
2573
2573
|
style: u,
|
|
2574
2574
|
...d,
|
|
2575
|
-
children: h.Children.map(o, (
|
|
2576
|
-
|
|
2577
|
-
className: I("w-full",
|
|
2578
|
-
}) :
|
|
2575
|
+
children: h.Children.map(o, ($) => h.isValidElement($) ? h.cloneElement($, {
|
|
2576
|
+
...$.props,
|
|
2577
|
+
className: I("w-full", $.props.className)
|
|
2578
|
+
}) : $)
|
|
2579
2579
|
}
|
|
2580
2580
|
);
|
|
2581
2581
|
}
|
|
@@ -2651,8 +2651,8 @@ function C(e, t, n) {
|
|
|
2651
2651
|
d._zod.traits.add(e), t(d, s);
|
|
2652
2652
|
const c = a.prototype, l = Object.keys(c);
|
|
2653
2653
|
for (let u = 0; u < l.length; u++) {
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2654
|
+
const $ = l[u];
|
|
2655
|
+
$ in d || (d[$] = c[$].bind(d));
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
const o = n?.Parent ?? Object;
|
|
@@ -3086,17 +3086,17 @@ const os = (e) => {
|
|
|
3086
3086
|
continue;
|
|
3087
3087
|
} else if (c)
|
|
3088
3088
|
continue;
|
|
3089
|
-
const
|
|
3089
|
+
const $ = a.issues.length, m = u._zod.check(a);
|
|
3090
3090
|
if (m instanceof Promise && s?.async === !1)
|
|
3091
3091
|
throw new qe();
|
|
3092
3092
|
if (l || m instanceof Promise)
|
|
3093
3093
|
l = (l ?? Promise.resolve()).then(async () => {
|
|
3094
|
-
await m, a.issues.length !==
|
|
3094
|
+
await m, a.issues.length !== $ && (c || (c = Ye(a, $)));
|
|
3095
3095
|
});
|
|
3096
3096
|
else {
|
|
3097
|
-
if (a.issues.length ===
|
|
3097
|
+
if (a.issues.length === $)
|
|
3098
3098
|
continue;
|
|
3099
|
-
c || (c = Ye(a,
|
|
3099
|
+
c || (c = Ye(a, $));
|
|
3100
3100
|
}
|
|
3101
3101
|
}
|
|
3102
3102
|
return l ? l.then(() => a) : a;
|
|
@@ -5060,8 +5060,8 @@ var Uu = ";ext=", He = function(t) {
|
|
|
5060
5060
|
return "([".concat($e, "]{1,").concat(t, "})");
|
|
5061
5061
|
};
|
|
5062
5062
|
function li(e) {
|
|
5063
|
-
var t = "20", n = "15", r = "9", o = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", d = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", c = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*",
|
|
5064
|
-
return m + "|" + v + "|" +
|
|
5063
|
+
var t = "20", n = "15", r = "9", o = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", d = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", c = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*", $ = "(?:,{2}|;)", m = Uu + He(t), v = i + s + a + He(t) + d, f = i + c + a + He(r) + d, g = l + He(o) + "#", b = u + $ + a + He(n) + d, y = u + "(?:,)+" + a + He(r) + d;
|
|
5064
|
+
return m + "|" + v + "|" + f + "|" + g + "|" + b + "|" + y;
|
|
5065
5065
|
}
|
|
5066
5066
|
var Wu = "[" + $e + "]{" + or + "}", Vu = "[" + ir + "]{0,1}(?:[" + zt + "]*[" + $e + "]){3,}[" + zt + $e + "]*", Hu = new RegExp("^[" + ir + "]{0,1}(?:[" + zt + "]*[" + $e + "]){1,2}$", "i"), Gu = Vu + // Phone number extensions
|
|
5067
5067
|
"(?:" + li() + ")?", Ku = new RegExp(
|
|
@@ -5598,7 +5598,7 @@ function B0(e, t, n) {
|
|
|
5598
5598
|
throw a === "TOO_SHORT" ? new Ae("TOO_SHORT") : new Ae("NOT_A_NUMBER");
|
|
5599
5599
|
return {};
|
|
5600
5600
|
}
|
|
5601
|
-
var d = V0(o, t.defaultCountry, t.defaultCallingCode, n), s = d.country, c = d.nationalNumber, l = d.countryCallingCode, u = d.countryCallingCodeSource,
|
|
5601
|
+
var d = V0(o, t.defaultCountry, t.defaultCallingCode, n), s = d.country, c = d.nationalNumber, l = d.countryCallingCode, u = d.countryCallingCodeSource, $ = d.carrierCode;
|
|
5602
5602
|
if (!n.hasSelectedNumberingPlan()) {
|
|
5603
5603
|
if (t.v2)
|
|
5604
5604
|
throw new Ae("INVALID_COUNTRY");
|
|
@@ -5616,13 +5616,13 @@ function B0(e, t, n) {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
if (t.v2) {
|
|
5618
5618
|
var m = new s0(l, c, n.metadata);
|
|
5619
|
-
return s && (m.country = s),
|
|
5619
|
+
return s && (m.country = s), $ && (m.carrierCode = $), i && (m.ext = i), m.__countryCallingCodeSource = u, m;
|
|
5620
5620
|
}
|
|
5621
5621
|
var v = (t.extended ? n.hasSelectedNumberingPlan() : s) ? Ce(c, n.nationalNumberPattern()) : !1;
|
|
5622
5622
|
return t.extended ? {
|
|
5623
5623
|
country: s,
|
|
5624
5624
|
countryCallingCode: l,
|
|
5625
|
-
carrierCode:
|
|
5625
|
+
carrierCode: $,
|
|
5626
5626
|
valid: v,
|
|
5627
5627
|
possible: v ? !0 : !!(t.extended === !0 && n.possibleLengths() && di(c, s, n)),
|
|
5628
5628
|
phone: c,
|
|
@@ -5679,11 +5679,11 @@ function V0(e, t, n, r) {
|
|
|
5679
5679
|
countryCallingCodeSource: i,
|
|
5680
5680
|
countryCallingCode: a
|
|
5681
5681
|
};
|
|
5682
|
-
var c = An(Qr(d), s, r), l = c.nationalNumber, u = c.carrierCode,
|
|
5682
|
+
var c = An(Qr(d), s, r), l = c.nationalNumber, u = c.carrierCode, $ = si(a, {
|
|
5683
5683
|
nationalNumber: l,
|
|
5684
5684
|
metadata: r
|
|
5685
5685
|
});
|
|
5686
|
-
return
|
|
5686
|
+
return $ && (s = $, $ === "001" || r.selectNumberingPlan(s)), {
|
|
5687
5687
|
country: s,
|
|
5688
5688
|
countryCallingCode: a,
|
|
5689
5689
|
countryCallingCodeSource: i,
|
|
@@ -5885,8 +5885,8 @@ const mn = (e, t) => {
|
|
|
5885
5885
|
validateOnChange: c = !0,
|
|
5886
5886
|
validateOnBlur: l = !0,
|
|
5887
5887
|
...u
|
|
5888
|
-
},
|
|
5889
|
-
const [m, v] = pt(!1), [
|
|
5888
|
+
}, $) => {
|
|
5889
|
+
const [m, v] = pt(!1), [f, g] = pt(!1), [b, y] = pt(null), w = !!r || !!b, x = typeof r == "string" ? r : b, S = i === "password" && d, N = S && f ? "text" : i;
|
|
5890
5890
|
wa(() => {
|
|
5891
5891
|
if (e && s) {
|
|
5892
5892
|
const O = mn(e, s);
|
|
@@ -5908,7 +5908,7 @@ const mn = (e, t) => {
|
|
|
5908
5908
|
}
|
|
5909
5909
|
u.onBlur && u.onBlur(O);
|
|
5910
5910
|
}, M = () => {
|
|
5911
|
-
g(
|
|
5911
|
+
g(!f);
|
|
5912
5912
|
}, B = I(
|
|
5913
5913
|
// Layout
|
|
5914
5914
|
"flex items-center gap-2",
|
|
@@ -5947,7 +5947,7 @@ const mn = (e, t) => {
|
|
|
5947
5947
|
/* @__PURE__ */ p(
|
|
5948
5948
|
"input",
|
|
5949
5949
|
{
|
|
5950
|
-
ref:
|
|
5950
|
+
ref: $,
|
|
5951
5951
|
type: N,
|
|
5952
5952
|
value: e,
|
|
5953
5953
|
onChange: _,
|
|
@@ -5970,9 +5970,9 @@ const mn = (e, t) => {
|
|
|
5970
5970
|
disabled: n,
|
|
5971
5971
|
className: z,
|
|
5972
5972
|
"data-testid": "password-toggle",
|
|
5973
|
-
"aria-label":
|
|
5973
|
+
"aria-label": f ? "Hide password" : "Show password",
|
|
5974
5974
|
tabIndex: -1,
|
|
5975
|
-
children:
|
|
5975
|
+
children: f ? /* @__PURE__ */ p(Sa, { size: 20 }) : /* @__PURE__ */ p(_a, { size: 20 })
|
|
5976
5976
|
}
|
|
5977
5977
|
)
|
|
5978
5978
|
] }),
|
|
@@ -6300,10 +6300,10 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6300
6300
|
bodyText: c,
|
|
6301
6301
|
button: l,
|
|
6302
6302
|
onClick: u,
|
|
6303
|
-
className:
|
|
6303
|
+
className: $,
|
|
6304
6304
|
...m
|
|
6305
6305
|
}, v) => {
|
|
6306
|
-
const
|
|
6306
|
+
const f = {
|
|
6307
6307
|
primary: "#312e4d",
|
|
6308
6308
|
error: "#d4002c",
|
|
6309
6309
|
brand: "#00995a"
|
|
@@ -6327,11 +6327,11 @@ const p1 = ({ color: e = "#312e4d" }) => /* @__PURE__ */ p(
|
|
|
6327
6327
|
className: I(
|
|
6328
6328
|
"bg-white border border-[#ecebf0] rounded-xl p-5 px-8 flex gap-2",
|
|
6329
6329
|
u && "cursor-pointer hover:shadow-md transition-shadow",
|
|
6330
|
-
|
|
6330
|
+
$
|
|
6331
6331
|
),
|
|
6332
6332
|
...m,
|
|
6333
6333
|
children: [
|
|
6334
|
-
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: d || /* @__PURE__ */ p(p1, { color:
|
|
6334
|
+
/* @__PURE__ */ p("div", { className: "flex items-center justify-center shrink-0", children: d || /* @__PURE__ */ p(p1, { color: f[s] }) }),
|
|
6335
6335
|
/* @__PURE__ */ P("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
6336
6336
|
/* @__PURE__ */ P("div", { className: "flex items-center justify-between gap-2 w-full", children: [
|
|
6337
6337
|
/* @__PURE__ */ p(
|
|
@@ -6654,8 +6654,8 @@ const so = {
|
|
|
6654
6654
|
a && /* @__PURE__ */ p(
|
|
6655
6655
|
"button",
|
|
6656
6656
|
{
|
|
6657
|
-
onClick: (
|
|
6658
|
-
|
|
6657
|
+
onClick: ($) => {
|
|
6658
|
+
$.stopPropagation(), a.onClick?.();
|
|
6659
6659
|
},
|
|
6660
6660
|
disabled: !a.onClick,
|
|
6661
6661
|
className: I(
|
|
@@ -6675,8 +6675,8 @@ const so = {
|
|
|
6675
6675
|
d && /* @__PURE__ */ p(
|
|
6676
6676
|
"button",
|
|
6677
6677
|
{
|
|
6678
|
-
onClick: (
|
|
6679
|
-
|
|
6678
|
+
onClick: ($) => {
|
|
6679
|
+
$.stopPropagation(), d.onClick?.();
|
|
6680
6680
|
},
|
|
6681
6681
|
className: "text-sm leading-[18px] font-semibold text-[#00995a] hover:underline",
|
|
6682
6682
|
style: { fontFamily: "Causten Round, sans-serif" },
|
|
@@ -6750,9 +6750,9 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6750
6750
|
icon: c,
|
|
6751
6751
|
currencySymbol: l = "$",
|
|
6752
6752
|
className: u,
|
|
6753
|
-
|
|
6753
|
+
...$
|
|
6754
6754
|
}, m) => {
|
|
6755
|
-
const v = C1[e],
|
|
6755
|
+
const v = C1[e], f = c || v.icon, g = (b) => `${l}${b.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
6756
6756
|
return /* @__PURE__ */ P(
|
|
6757
6757
|
"div",
|
|
6758
6758
|
{
|
|
@@ -6761,9 +6761,9 @@ const qt = "#00995a", Qt = 32, en = 2, b1 = () => /* @__PURE__ */ p(
|
|
|
6761
6761
|
"bg-white border border-[#ecebf0] rounded-xl p-5 flex gap-2",
|
|
6762
6762
|
u
|
|
6763
6763
|
),
|
|
6764
|
-
|
|
6764
|
+
...$,
|
|
6765
6765
|
children: [
|
|
6766
|
-
/* @__PURE__ */ p("div", { className: "flex items-start justify-center shrink-0", children: typeof
|
|
6766
|
+
/* @__PURE__ */ p("div", { className: "flex items-start justify-center shrink-0", children: typeof f == "function" ? /* @__PURE__ */ p(f, {}) : f }),
|
|
6767
6767
|
/* @__PURE__ */ P("div", { className: "flex-1 flex gap-2 items-start justify-end min-w-0", children: [
|
|
6768
6768
|
/* @__PURE__ */ P("div", { className: "flex-1 flex flex-col gap-1 min-w-0", children: [
|
|
6769
6769
|
/* @__PURE__ */ p(
|
|
@@ -6953,12 +6953,12 @@ function dr(e, t = []) {
|
|
|
6953
6953
|
const d = h.createContext(a), s = n.length;
|
|
6954
6954
|
n = [...n, a];
|
|
6955
6955
|
const c = (u) => {
|
|
6956
|
-
const { scope:
|
|
6957
|
-
return /* @__PURE__ */ p(
|
|
6956
|
+
const { scope: $, children: m, ...v } = u, f = $?.[e]?.[s] || d, g = h.useMemo(() => v, Object.values(v));
|
|
6957
|
+
return /* @__PURE__ */ p(f.Provider, { value: g, children: m });
|
|
6958
6958
|
};
|
|
6959
6959
|
c.displayName = i + "Provider";
|
|
6960
|
-
function l(u,
|
|
6961
|
-
const m =
|
|
6960
|
+
function l(u, $) {
|
|
6961
|
+
const m = $?.[e]?.[s] || d, v = h.useContext(m);
|
|
6962
6962
|
if (v) return v;
|
|
6963
6963
|
if (a !== void 0) return a;
|
|
6964
6964
|
throw new Error(`\`${u}\` must be used within \`${i}\``);
|
|
@@ -7023,27 +7023,27 @@ function E1(e) {
|
|
|
7023
7023
|
const t = e + "CollectionProvider", [n, r] = dr(t), [o, i] = n(
|
|
7024
7024
|
t,
|
|
7025
7025
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
7026
|
-
), a = (
|
|
7027
|
-
const { scope: g, children: b } =
|
|
7026
|
+
), a = (f) => {
|
|
7027
|
+
const { scope: g, children: b } = f, y = Me.useRef(null), w = Me.useRef(/* @__PURE__ */ new Map()).current;
|
|
7028
7028
|
return /* @__PURE__ */ p(o, { scope: g, itemMap: w, collectionRef: y, children: b });
|
|
7029
7029
|
};
|
|
7030
7030
|
a.displayName = t;
|
|
7031
7031
|
const d = e + "CollectionSlot", s = Mt(d), c = Me.forwardRef(
|
|
7032
|
-
(
|
|
7033
|
-
const { scope: b, children: y } =
|
|
7032
|
+
(f, g) => {
|
|
7033
|
+
const { scope: b, children: y } = f, w = i(d, b), x = ne(g, w.collectionRef);
|
|
7034
7034
|
return /* @__PURE__ */ p(s, { ref: x, children: y });
|
|
7035
7035
|
}
|
|
7036
7036
|
);
|
|
7037
7037
|
c.displayName = d;
|
|
7038
|
-
const l = e + "CollectionItemSlot", u = "data-radix-collection-item",
|
|
7039
|
-
(
|
|
7040
|
-
const { scope: b, children: y, ...w } =
|
|
7041
|
-
return Me.useEffect(() => (N.itemMap.set(x, { ref: x, ...w }), () => void N.itemMap.delete(x))), /* @__PURE__ */ p(
|
|
7038
|
+
const l = e + "CollectionItemSlot", u = "data-radix-collection-item", $ = Mt(l), m = Me.forwardRef(
|
|
7039
|
+
(f, g) => {
|
|
7040
|
+
const { scope: b, children: y, ...w } = f, x = Me.useRef(null), S = ne(g, x), N = i(l, b);
|
|
7041
|
+
return Me.useEffect(() => (N.itemMap.set(x, { ref: x, ...w }), () => void N.itemMap.delete(x))), /* @__PURE__ */ p($, { [u]: "", ref: S, children: y });
|
|
7042
7042
|
}
|
|
7043
7043
|
);
|
|
7044
7044
|
m.displayName = l;
|
|
7045
|
-
function v(
|
|
7046
|
-
const g = i(e + "CollectionConsumer",
|
|
7045
|
+
function v(f) {
|
|
7046
|
+
const g = i(e + "CollectionConsumer", f);
|
|
7047
7047
|
return Me.useCallback(() => {
|
|
7048
7048
|
const y = g.collectionRef.current;
|
|
7049
7049
|
if (!y) return [];
|
|
@@ -7121,21 +7121,21 @@ var T1 = "DismissableLayer", Fn = "dismissableLayer.update", F1 = "dismissableLa
|
|
|
7121
7121
|
onInteractOutside: a,
|
|
7122
7122
|
onDismiss: d,
|
|
7123
7123
|
...s
|
|
7124
|
-
} = e, c = h.useContext(pi), [l, u] = h.useState(null),
|
|
7124
|
+
} = e, c = h.useContext(pi), [l, u] = h.useState(null), $ = l?.ownerDocument ?? globalThis?.document, [, m] = h.useState({}), v = ne(t, (_) => u(_)), f = Array.from(c.layers), [g] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(g), y = l ? f.indexOf(l) : -1, w = c.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= b, S = z1((_) => {
|
|
7125
7125
|
const k = _.target, D = [...c.branches].some((M) => M.contains(k));
|
|
7126
7126
|
!x || D || (o?.(_), a?.(_), _.defaultPrevented || d?.());
|
|
7127
|
-
},
|
|
7127
|
+
}, $), N = Z1((_) => {
|
|
7128
7128
|
const k = _.target;
|
|
7129
7129
|
[...c.branches].some((M) => M.contains(k)) || (i?.(_), a?.(_), _.defaultPrevented || d?.());
|
|
7130
|
-
},
|
|
7130
|
+
}, $);
|
|
7131
7131
|
return k1((_) => {
|
|
7132
7132
|
y === c.layers.size - 1 && (r?.(_), !_.defaultPrevented && d && (_.preventDefault(), d()));
|
|
7133
|
-
},
|
|
7133
|
+
}, $), h.useEffect(() => {
|
|
7134
7134
|
if (l)
|
|
7135
|
-
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (uo =
|
|
7136
|
-
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
7135
|
+
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (uo = $.body.style.pointerEvents, $.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(l)), c.layers.add(l), fo(), () => {
|
|
7136
|
+
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && ($.body.style.pointerEvents = uo);
|
|
7137
7137
|
};
|
|
7138
|
-
}, [l,
|
|
7138
|
+
}, [l, $, n, c]), h.useEffect(() => () => {
|
|
7139
7139
|
l && (c.layers.delete(l), c.layersWithOutsidePointerEventsDisabled.delete(l), fo());
|
|
7140
7140
|
}, [l, c]), h.useEffect(() => {
|
|
7141
7141
|
const _ = () => m({});
|
|
@@ -7243,7 +7243,7 @@ var vn = "focusScope.autoFocusOnMount", bn = "focusScope.autoFocusOnUnmount", po
|
|
|
7243
7243
|
onMountAutoFocus: o,
|
|
7244
7244
|
onUnmountAutoFocus: i,
|
|
7245
7245
|
...a
|
|
7246
|
-
} = e, [d, s] = h.useState(null), c = Ze(o), l = Ze(i), u = h.useRef(null),
|
|
7246
|
+
} = e, [d, s] = h.useState(null), c = Ze(o), l = Ze(i), u = h.useRef(null), $ = ne(t, (f) => s(f)), m = h.useRef({
|
|
7247
7247
|
paused: !1,
|
|
7248
7248
|
pause() {
|
|
7249
7249
|
this.paused = !0;
|
|
@@ -7254,7 +7254,7 @@ var vn = "focusScope.autoFocusOnMount", bn = "focusScope.autoFocusOnUnmount", po
|
|
|
7254
7254
|
}).current;
|
|
7255
7255
|
h.useEffect(() => {
|
|
7256
7256
|
if (r) {
|
|
7257
|
-
let
|
|
7257
|
+
let f = function(w) {
|
|
7258
7258
|
if (m.paused || !d) return;
|
|
7259
7259
|
const x = w.target;
|
|
7260
7260
|
d.contains(x) ? u.current = x : Re(u.current, { select: !0 });
|
|
@@ -7267,40 +7267,40 @@ var vn = "focusScope.autoFocusOnMount", bn = "focusScope.autoFocusOnUnmount", po
|
|
|
7267
7267
|
for (const S of w)
|
|
7268
7268
|
S.removedNodes.length > 0 && Re(d);
|
|
7269
7269
|
};
|
|
7270
|
-
document.addEventListener("focusin",
|
|
7270
|
+
document.addEventListener("focusin", f), document.addEventListener("focusout", g);
|
|
7271
7271
|
const y = new MutationObserver(b);
|
|
7272
7272
|
return d && y.observe(d, { childList: !0, subtree: !0 }), () => {
|
|
7273
|
-
document.removeEventListener("focusin",
|
|
7273
|
+
document.removeEventListener("focusin", f), document.removeEventListener("focusout", g), y.disconnect();
|
|
7274
7274
|
};
|
|
7275
7275
|
}
|
|
7276
7276
|
}, [r, d, m.paused]), h.useEffect(() => {
|
|
7277
7277
|
if (d) {
|
|
7278
7278
|
mo.add(m);
|
|
7279
|
-
const
|
|
7280
|
-
if (!d.contains(
|
|
7279
|
+
const f = document.activeElement;
|
|
7280
|
+
if (!d.contains(f)) {
|
|
7281
7281
|
const b = new CustomEvent(vn, po);
|
|
7282
|
-
d.addEventListener(vn, c), d.dispatchEvent(b), b.defaultPrevented || (U1(K1(vi(d)), { select: !0 }), document.activeElement ===
|
|
7282
|
+
d.addEventListener(vn, c), d.dispatchEvent(b), b.defaultPrevented || (U1(K1(vi(d)), { select: !0 }), document.activeElement === f && Re(d));
|
|
7283
7283
|
}
|
|
7284
7284
|
return () => {
|
|
7285
7285
|
d.removeEventListener(vn, c), setTimeout(() => {
|
|
7286
7286
|
const b = new CustomEvent(bn, po);
|
|
7287
|
-
d.addEventListener(bn, l), d.dispatchEvent(b), b.defaultPrevented || Re(
|
|
7287
|
+
d.addEventListener(bn, l), d.dispatchEvent(b), b.defaultPrevented || Re(f ?? document.body, { select: !0 }), d.removeEventListener(bn, l), mo.remove(m);
|
|
7288
7288
|
}, 0);
|
|
7289
7289
|
};
|
|
7290
7290
|
}
|
|
7291
7291
|
}, [d, c, l, m]);
|
|
7292
7292
|
const v = h.useCallback(
|
|
7293
|
-
(
|
|
7293
|
+
(f) => {
|
|
7294
7294
|
if (!n && !r || m.paused) return;
|
|
7295
|
-
const g =
|
|
7295
|
+
const g = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
|
|
7296
7296
|
if (g && b) {
|
|
7297
|
-
const y =
|
|
7298
|
-
w && x ?
|
|
7297
|
+
const y = f.currentTarget, [w, x] = W1(y);
|
|
7298
|
+
w && x ? !f.shiftKey && b === x ? (f.preventDefault(), n && Re(w, { select: !0 })) : f.shiftKey && b === w && (f.preventDefault(), n && Re(x, { select: !0 })) : b === y && f.preventDefault();
|
|
7299
7299
|
}
|
|
7300
7300
|
},
|
|
7301
7301
|
[n, r, m.paused]
|
|
7302
7302
|
);
|
|
7303
|
-
return /* @__PURE__ */ p(J.div, { tabIndex: -1, ...a, ref:
|
|
7303
|
+
return /* @__PURE__ */ p(J.div, { tabIndex: -1, ...a, ref: $, onKeyDown: v });
|
|
7304
7304
|
});
|
|
7305
7305
|
gi.displayName = j1;
|
|
7306
7306
|
function U1(e, { select: t = !1 } = {}) {
|
|
@@ -7484,7 +7484,7 @@ function yo(e, t, n) {
|
|
|
7484
7484
|
reference: r,
|
|
7485
7485
|
floating: o
|
|
7486
7486
|
} = e;
|
|
7487
|
-
const i = ge(t), a = ur(t), d = lr(a), s = _e(t), c = i === "y", l = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2,
|
|
7487
|
+
const i = ge(t), a = ur(t), d = lr(a), s = _e(t), c = i === "y", l = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, $ = r[d] / 2 - o[d] / 2;
|
|
7488
7488
|
let m;
|
|
7489
7489
|
switch (s) {
|
|
7490
7490
|
case "top":
|
|
@@ -7519,10 +7519,10 @@ function yo(e, t, n) {
|
|
|
7519
7519
|
}
|
|
7520
7520
|
switch (at(t)) {
|
|
7521
7521
|
case "start":
|
|
7522
|
-
m[a] -=
|
|
7522
|
+
m[a] -= $ * (n && c ? -1 : 1);
|
|
7523
7523
|
break;
|
|
7524
7524
|
case "end":
|
|
7525
|
-
m[a] +=
|
|
7525
|
+
m[a] += $ * (n && c ? -1 : 1);
|
|
7526
7526
|
break;
|
|
7527
7527
|
}
|
|
7528
7528
|
return m;
|
|
@@ -7541,12 +7541,12 @@ const cf = async (e, t, n) => {
|
|
|
7541
7541
|
}), {
|
|
7542
7542
|
x: l,
|
|
7543
7543
|
y: u
|
|
7544
|
-
} = yo(c, r, s),
|
|
7545
|
-
for (let
|
|
7544
|
+
} = yo(c, r, s), $ = r, m = {}, v = 0;
|
|
7545
|
+
for (let f = 0; f < d.length; f++) {
|
|
7546
7546
|
const {
|
|
7547
7547
|
name: g,
|
|
7548
7548
|
fn: b
|
|
7549
|
-
} = d[
|
|
7549
|
+
} = d[f], {
|
|
7550
7550
|
x: y,
|
|
7551
7551
|
y: w,
|
|
7552
7552
|
data: x,
|
|
@@ -7555,7 +7555,7 @@ const cf = async (e, t, n) => {
|
|
|
7555
7555
|
x: l,
|
|
7556
7556
|
y: u,
|
|
7557
7557
|
initialPlacement: r,
|
|
7558
|
-
placement:
|
|
7558
|
+
placement: $,
|
|
7559
7559
|
strategy: o,
|
|
7560
7560
|
middlewareData: m,
|
|
7561
7561
|
rects: c,
|
|
@@ -7571,19 +7571,19 @@ const cf = async (e, t, n) => {
|
|
|
7571
7571
|
...m[g],
|
|
7572
7572
|
...x
|
|
7573
7573
|
}
|
|
7574
|
-
}, S && v <= 50 && (v++, typeof S == "object" && (S.placement && (
|
|
7574
|
+
}, S && v <= 50 && (v++, typeof S == "object" && (S.placement && ($ = S.placement), S.rects && (c = S.rects === !0 ? await a.getElementRects({
|
|
7575
7575
|
reference: e,
|
|
7576
7576
|
floating: t,
|
|
7577
7577
|
strategy: o
|
|
7578
7578
|
}) : S.rects), {
|
|
7579
7579
|
x: l,
|
|
7580
7580
|
y: u
|
|
7581
|
-
} = yo(c,
|
|
7581
|
+
} = yo(c, $, s)), f = -1);
|
|
7582
7582
|
}
|
|
7583
7583
|
return {
|
|
7584
7584
|
x: l,
|
|
7585
7585
|
y: u,
|
|
7586
|
-
placement:
|
|
7586
|
+
placement: $,
|
|
7587
7587
|
strategy: o,
|
|
7588
7588
|
middlewareData: m
|
|
7589
7589
|
};
|
|
@@ -7602,9 +7602,9 @@ async function wt(e, t) {
|
|
|
7602
7602
|
boundary: c = "clippingAncestors",
|
|
7603
7603
|
rootBoundary: l = "viewport",
|
|
7604
7604
|
elementContext: u = "floating",
|
|
7605
|
-
altBoundary:
|
|
7605
|
+
altBoundary: $ = !1,
|
|
7606
7606
|
padding: m = 0
|
|
7607
|
-
} = Se(t, e), v = bi(m), g = d[
|
|
7607
|
+
} = Se(t, e), v = bi(m), g = d[$ ? u === "floating" ? "reference" : "floating" : u], b = Ut(await i.getClippingRect({
|
|
7608
7608
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(d.floating)),
|
|
7609
7609
|
boundary: c,
|
|
7610
7610
|
rootBoundary: l,
|
|
@@ -7651,15 +7651,15 @@ const lf = (e) => ({
|
|
|
7651
7651
|
} = Se(e, t) || {};
|
|
7652
7652
|
if (c == null)
|
|
7653
7653
|
return {};
|
|
7654
|
-
const u = bi(l),
|
|
7654
|
+
const u = bi(l), $ = {
|
|
7655
7655
|
x: n,
|
|
7656
7656
|
y: r
|
|
7657
|
-
}, m = ur(o), v = lr(m),
|
|
7657
|
+
}, m = ur(o), v = lr(m), f = await a.getDimensions(c), g = m === "y", b = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", x = i.reference[v] + i.reference[m] - $[m] - i.floating[v], S = $[m] - i.reference[m], N = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
7658
7658
|
let _ = N ? N[w] : 0;
|
|
7659
7659
|
(!_ || !await (a.isElement == null ? void 0 : a.isElement(N))) && (_ = d.floating[w] || i.floating[v]);
|
|
7660
|
-
const k = x / 2 - S / 2, D = _ / 2 -
|
|
7660
|
+
const k = x / 2 - S / 2, D = _ / 2 - f[v] / 2 - 1, M = Ie(u[b], D), B = Ie(u[y], D), E = M, z = _ - f[v] - B, O = _ / 2 - f[v] / 2 + k, j = Ln(E, O, z), T = !s.arrow && at(o) != null && O !== j && i.reference[v] / 2 - (O < E ? M : B) - f[v] / 2 < 0, Z = T ? O < E ? O - E : O - z : 0;
|
|
7661
7661
|
return {
|
|
7662
|
-
[m]:
|
|
7662
|
+
[m]: $[m] + Z,
|
|
7663
7663
|
data: {
|
|
7664
7664
|
[m]: j,
|
|
7665
7665
|
centerOffset: O - j - Z,
|
|
@@ -7686,16 +7686,16 @@ const lf = (e) => ({
|
|
|
7686
7686
|
} = t, {
|
|
7687
7687
|
mainAxis: l = !0,
|
|
7688
7688
|
crossAxis: u = !0,
|
|
7689
|
-
fallbackPlacements:
|
|
7689
|
+
fallbackPlacements: $,
|
|
7690
7690
|
fallbackStrategy: m = "bestFit",
|
|
7691
7691
|
fallbackAxisSideDirection: v = "none",
|
|
7692
|
-
flipAlignment:
|
|
7692
|
+
flipAlignment: f = !0,
|
|
7693
7693
|
...g
|
|
7694
7694
|
} = Se(e, t);
|
|
7695
7695
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
7696
7696
|
return {};
|
|
7697
|
-
const b = _e(o), y = ge(d), w = _e(d) === d, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S =
|
|
7698
|
-
|
|
7697
|
+
const b = _e(o), y = ge(d), w = _e(d) === d, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = $ || (w || !f ? [jt(d)] : nf(d)), N = v !== "none";
|
|
7698
|
+
!$ && N && S.push(...df(d, f, v, x));
|
|
7699
7699
|
const _ = [d, ...S], k = await wt(t, g), D = [];
|
|
7700
7700
|
let M = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
7701
7701
|
if (l && D.push(k[b]), u) {
|
|
@@ -7812,7 +7812,7 @@ async function $f(e, t) {
|
|
|
7812
7812
|
elements: o
|
|
7813
7813
|
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = _e(n), d = at(n), s = ge(n) === "y", c = yi.has(a) ? -1 : 1, l = i && s ? -1 : 1, u = Se(t, e);
|
|
7814
7814
|
let {
|
|
7815
|
-
mainAxis:
|
|
7815
|
+
mainAxis: $,
|
|
7816
7816
|
crossAxis: m,
|
|
7817
7817
|
alignmentAxis: v
|
|
7818
7818
|
} = typeof u == "number" ? {
|
|
@@ -7826,9 +7826,9 @@ async function $f(e, t) {
|
|
|
7826
7826
|
};
|
|
7827
7827
|
return d && typeof v == "number" && (m = d === "end" ? v * -1 : v), s ? {
|
|
7828
7828
|
x: m * l,
|
|
7829
|
-
y:
|
|
7829
|
+
y: $ * c
|
|
7830
7830
|
} : {
|
|
7831
|
-
x:
|
|
7831
|
+
x: $ * c,
|
|
7832
7832
|
y: m * l
|
|
7833
7833
|
};
|
|
7834
7834
|
}
|
|
@@ -7882,28 +7882,28 @@ const pf = function(e) {
|
|
|
7882
7882
|
} = Se(e, t), c = {
|
|
7883
7883
|
x: n,
|
|
7884
7884
|
y: r
|
|
7885
|
-
}, l = await wt(t, s), u = ge(_e(o)),
|
|
7886
|
-
let m = c[
|
|
7885
|
+
}, l = await wt(t, s), u = ge(_e(o)), $ = cr(u);
|
|
7886
|
+
let m = c[$], v = c[u];
|
|
7887
7887
|
if (i) {
|
|
7888
|
-
const g =
|
|
7888
|
+
const g = $ === "y" ? "top" : "left", b = $ === "y" ? "bottom" : "right", y = m + l[g], w = m - l[b];
|
|
7889
7889
|
m = Ln(y, m, w);
|
|
7890
7890
|
}
|
|
7891
7891
|
if (a) {
|
|
7892
7892
|
const g = u === "y" ? "top" : "left", b = u === "y" ? "bottom" : "right", y = v + l[g], w = v - l[b];
|
|
7893
7893
|
v = Ln(y, v, w);
|
|
7894
7894
|
}
|
|
7895
|
-
const
|
|
7895
|
+
const f = d.fn({
|
|
7896
7896
|
...t,
|
|
7897
|
-
[
|
|
7897
|
+
[$]: m,
|
|
7898
7898
|
[u]: v
|
|
7899
7899
|
});
|
|
7900
7900
|
return {
|
|
7901
|
-
|
|
7901
|
+
...f,
|
|
7902
7902
|
data: {
|
|
7903
|
-
x:
|
|
7904
|
-
y:
|
|
7903
|
+
x: f.x - n,
|
|
7904
|
+
y: f.y - r,
|
|
7905
7905
|
enabled: {
|
|
7906
|
-
[
|
|
7906
|
+
[$]: i,
|
|
7907
7907
|
[u]: a
|
|
7908
7908
|
}
|
|
7909
7909
|
}
|
|
@@ -7927,27 +7927,27 @@ const pf = function(e) {
|
|
|
7927
7927
|
} = Se(e, t), l = {
|
|
7928
7928
|
x: n,
|
|
7929
7929
|
y: r
|
|
7930
|
-
}, u = ge(o),
|
|
7931
|
-
let m = l[
|
|
7932
|
-
const
|
|
7933
|
-
mainAxis:
|
|
7930
|
+
}, u = ge(o), $ = cr(u);
|
|
7931
|
+
let m = l[$], v = l[u];
|
|
7932
|
+
const f = Se(d, t), g = typeof f == "number" ? {
|
|
7933
|
+
mainAxis: f,
|
|
7934
7934
|
crossAxis: 0
|
|
7935
7935
|
} : {
|
|
7936
7936
|
mainAxis: 0,
|
|
7937
7937
|
crossAxis: 0,
|
|
7938
|
-
|
|
7938
|
+
...f
|
|
7939
7939
|
};
|
|
7940
7940
|
if (s) {
|
|
7941
|
-
const w =
|
|
7941
|
+
const w = $ === "y" ? "height" : "width", x = i.reference[$] - i.floating[w] + g.mainAxis, S = i.reference[$] + i.reference[w] - g.mainAxis;
|
|
7942
7942
|
m < x ? m = x : m > S && (m = S);
|
|
7943
7943
|
}
|
|
7944
7944
|
if (c) {
|
|
7945
7945
|
var b, y;
|
|
7946
|
-
const w =
|
|
7946
|
+
const w = $ === "y" ? "width" : "height", x = yi.has(_e(o)), S = i.reference[u] - i.floating[w] + (x && ((b = a.offset) == null ? void 0 : b[u]) || 0) + (x ? 0 : g.crossAxis), N = i.reference[u] + i.reference[w] + (x ? 0 : ((y = a.offset) == null ? void 0 : y[u]) || 0) - (x ? g.crossAxis : 0);
|
|
7947
7947
|
v < S ? v = S : v > N && (v = N);
|
|
7948
7948
|
}
|
|
7949
7949
|
return {
|
|
7950
|
-
[
|
|
7950
|
+
[$]: m,
|
|
7951
7951
|
[u]: v
|
|
7952
7952
|
};
|
|
7953
7953
|
}
|
|
@@ -7967,17 +7967,17 @@ const pf = function(e) {
|
|
|
7967
7967
|
apply: s = () => {
|
|
7968
7968
|
},
|
|
7969
7969
|
...c
|
|
7970
|
-
} = Se(e, t), l = await wt(t, c), u = _e(o),
|
|
7970
|
+
} = Se(e, t), l = await wt(t, c), u = _e(o), $ = at(o), m = ge(o) === "y", {
|
|
7971
7971
|
width: v,
|
|
7972
|
-
height:
|
|
7972
|
+
height: f
|
|
7973
7973
|
} = i.floating;
|
|
7974
7974
|
let g, b;
|
|
7975
|
-
u === "top" || u === "bottom" ? (g = u, b =
|
|
7976
|
-
const y =
|
|
7975
|
+
u === "top" || u === "bottom" ? (g = u, b = $ === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (b = u, g = $ === "end" ? "top" : "bottom");
|
|
7976
|
+
const y = f - l.top - l.bottom, w = v - l.left - l.right, x = Ie(f - l[g], y), S = Ie(v - l[b], w), N = !t.middlewareData.shift;
|
|
7977
7977
|
let _ = x, k = S;
|
|
7978
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = y), N &&
|
|
7978
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = y), N && !$) {
|
|
7979
7979
|
const M = se(l.left, 0), B = se(l.right, 0), E = se(l.top, 0), z = se(l.bottom, 0);
|
|
7980
|
-
m ? k = v - 2 * (M !== 0 || B !== 0 ? M + B : se(l.left, l.right)) : _ =
|
|
7980
|
+
m ? k = v - 2 * (M !== 0 || B !== 0 ? M + B : se(l.left, l.right)) : _ = f - 2 * (E !== 0 || z !== 0 ? E + z : se(l.top, l.bottom));
|
|
7981
7981
|
}
|
|
7982
7982
|
await s({
|
|
7983
7983
|
...t,
|
|
@@ -7985,7 +7985,7 @@ const pf = function(e) {
|
|
|
7985
7985
|
availableHeight: _
|
|
7986
7986
|
});
|
|
7987
7987
|
const D = await a.getDimensions(d.floating);
|
|
7988
|
-
return v !== D.width ||
|
|
7988
|
+
return v !== D.width || f !== D.height ? {
|
|
7989
7989
|
reset: {
|
|
7990
7990
|
rects: !0
|
|
7991
7991
|
}
|
|
@@ -8154,11 +8154,11 @@ function Be(e, t, n, r) {
|
|
|
8154
8154
|
const d = Ef(i, n, r) ? Si(i) : ve(0);
|
|
8155
8155
|
let s = (o.left + d.x) / a.x, c = (o.top + d.y) / a.y, l = o.width / a.x, u = o.height / a.y;
|
|
8156
8156
|
if (i) {
|
|
8157
|
-
const
|
|
8158
|
-
let v = f
|
|
8159
|
-
for (;
|
|
8160
|
-
const g = et(
|
|
8161
|
-
s *= g.x, c *= g.y, l *= g.x, u *= g.y, s += w, c += x, v = ce(
|
|
8157
|
+
const $ = ce(i), m = r && pe(r) ? ce(r) : r;
|
|
8158
|
+
let v = $, f = Dn(v);
|
|
8159
|
+
for (; f && r && m !== v; ) {
|
|
8160
|
+
const g = et(f), b = f.getBoundingClientRect(), y = he(f), w = b.left + (f.clientLeft + parseFloat(y.paddingLeft)) * g.x, x = b.top + (f.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
8161
|
+
s *= g.x, c *= g.y, l *= g.x, u *= g.y, s += w, c += x, v = ce(f), f = Dn(v);
|
|
8162
8162
|
}
|
|
8163
8163
|
}
|
|
8164
8164
|
return Ut({
|
|
@@ -8198,12 +8198,12 @@ function Rf(e) {
|
|
|
8198
8198
|
const m = Be(r);
|
|
8199
8199
|
c = et(r), l.x = m.x + r.clientLeft, l.y = m.y + r.clientTop;
|
|
8200
8200
|
}
|
|
8201
|
-
const
|
|
8201
|
+
const $ = a && !u && !i ? _i(a, s) : ve(0);
|
|
8202
8202
|
return {
|
|
8203
8203
|
width: n.width * c.x,
|
|
8204
8204
|
height: n.height * c.y,
|
|
8205
|
-
x: n.x * c.x - s.scrollLeft * c.x + l.x +
|
|
8206
|
-
y: n.y * c.y - s.scrollTop * c.y + l.y +
|
|
8205
|
+
x: n.x * c.x - s.scrollLeft * c.x + l.x + $.x,
|
|
8206
|
+
y: n.y * c.y - s.scrollTop * c.y + l.y + $.y
|
|
8207
8207
|
};
|
|
8208
8208
|
}
|
|
8209
8209
|
function Af(e) {
|
|
@@ -8231,7 +8231,7 @@ function Of(e, t) {
|
|
|
8231
8231
|
}
|
|
8232
8232
|
const c = on(r);
|
|
8233
8233
|
if (c <= 0) {
|
|
8234
|
-
const l = r.ownerDocument, u = l.body,
|
|
8234
|
+
const l = r.ownerDocument, u = l.body, $ = getComputedStyle(u), m = l.compatMode === "CSS1Compat" && parseFloat($.marginLeft) + parseFloat($.marginRight) || 0, v = Math.abs(r.clientWidth - u.clientWidth - m);
|
|
8235
8235
|
v <= So && (i -= v);
|
|
8236
8236
|
} else c <= So && (i += c);
|
|
8237
8237
|
return {
|
|
@@ -8331,10 +8331,10 @@ function Df(e, t, n) {
|
|
|
8331
8331
|
s.x = m.x + t.clientLeft, s.y = m.y + t.clientTop;
|
|
8332
8332
|
} else o && c();
|
|
8333
8333
|
i && !r && o && c();
|
|
8334
|
-
const l = o && !r && !i ? _i(o, d) : ve(0), u = a.left + d.scrollLeft - s.x - l.x,
|
|
8334
|
+
const l = o && !r && !i ? _i(o, d) : ve(0), u = a.left + d.scrollLeft - s.x - l.x, $ = a.top + d.scrollTop - s.y - l.y;
|
|
8335
8335
|
return {
|
|
8336
8336
|
x: u,
|
|
8337
|
-
y:
|
|
8337
|
+
y: $,
|
|
8338
8338
|
width: a.width,
|
|
8339
8339
|
height: a.height
|
|
8340
8340
|
};
|
|
@@ -8410,13 +8410,13 @@ function jf(e, t) {
|
|
|
8410
8410
|
const c = e.getBoundingClientRect(), {
|
|
8411
8411
|
left: l,
|
|
8412
8412
|
top: u,
|
|
8413
|
-
width:
|
|
8413
|
+
width: $,
|
|
8414
8414
|
height: m
|
|
8415
8415
|
} = c;
|
|
8416
|
-
if (d || t(),
|
|
8416
|
+
if (d || t(), !$ || !m)
|
|
8417
8417
|
return;
|
|
8418
|
-
const v = Rt(u),
|
|
8419
|
-
rootMargin: -v + "px " +
|
|
8418
|
+
const v = Rt(u), f = Rt(o.clientWidth - (l + $)), g = Rt(o.clientHeight - (u + m)), b = Rt(l), w = {
|
|
8419
|
+
rootMargin: -v + "px " + -f + "px " + -g + "px " + -b + "px",
|
|
8420
8420
|
threshold: se(0, Ie(1, s)) || 1
|
|
8421
8421
|
};
|
|
8422
8422
|
let x = !0;
|
|
@@ -8459,19 +8459,19 @@ function Uf(e, t, n, r) {
|
|
|
8459
8459
|
}), i && b.addEventListener("resize", n);
|
|
8460
8460
|
});
|
|
8461
8461
|
const u = c && d ? jf(c, n) : null;
|
|
8462
|
-
let
|
|
8462
|
+
let $ = -1, m = null;
|
|
8463
8463
|
a && (m = new ResizeObserver((b) => {
|
|
8464
8464
|
let [y] = b;
|
|
8465
|
-
y && y.target === c && m && (m.unobserve(t), cancelAnimationFrame(
|
|
8465
|
+
y && y.target === c && m && (m.unobserve(t), cancelAnimationFrame($), $ = requestAnimationFrame(() => {
|
|
8466
8466
|
var w;
|
|
8467
8467
|
(w = m) == null || w.observe(t);
|
|
8468
8468
|
})), n();
|
|
8469
8469
|
}), c && !s && m.observe(c), m.observe(t));
|
|
8470
|
-
let v,
|
|
8470
|
+
let v, f = s ? Be(e) : null;
|
|
8471
8471
|
s && g();
|
|
8472
8472
|
function g() {
|
|
8473
8473
|
const b = Be(e);
|
|
8474
|
-
|
|
8474
|
+
f && !Ei(f, b) && n(), f = b, v = requestAnimationFrame(g);
|
|
8475
8475
|
}
|
|
8476
8476
|
return n(), () => {
|
|
8477
8477
|
var b;
|
|
@@ -8559,10 +8559,10 @@ function Qf(e) {
|
|
|
8559
8559
|
placement: t,
|
|
8560
8560
|
middlewareData: {},
|
|
8561
8561
|
isPositioned: !1
|
|
8562
|
-
}), [
|
|
8563
|
-
Wt(
|
|
8564
|
-
const [v,
|
|
8565
|
-
R !== N.current && (N.current = R,
|
|
8562
|
+
}), [$, m] = h.useState(r);
|
|
8563
|
+
Wt($, r) || m(r);
|
|
8564
|
+
const [v, f] = h.useState(null), [g, b] = h.useState(null), y = h.useCallback((R) => {
|
|
8565
|
+
R !== N.current && (N.current = R, f(R));
|
|
8566
8566
|
}, []), w = h.useCallback((R) => {
|
|
8567
8567
|
R !== _.current && (_.current = R, b(R));
|
|
8568
8568
|
}, []), x = i || v, S = a || g, N = h.useRef(null), _ = h.useRef(null), k = h.useRef(l), D = s != null, M = wn(s), B = wn(o), E = wn(c), z = h.useCallback(() => {
|
|
@@ -8571,7 +8571,7 @@ function Qf(e) {
|
|
|
8571
8571
|
const R = {
|
|
8572
8572
|
placement: t,
|
|
8573
8573
|
strategy: n,
|
|
8574
|
-
middleware:
|
|
8574
|
+
middleware: $
|
|
8575
8575
|
};
|
|
8576
8576
|
B.current && (R.platform = B.current), Yf(N.current, _.current, R).then((U) => {
|
|
8577
8577
|
const ee = {
|
|
@@ -8586,7 +8586,7 @@ function Qf(e) {
|
|
|
8586
8586
|
u(ee);
|
|
8587
8587
|
}));
|
|
8588
8588
|
});
|
|
8589
|
-
}, [
|
|
8589
|
+
}, [$, t, n, B, E]);
|
|
8590
8590
|
Tt(() => {
|
|
8591
8591
|
c === !1 && k.current.isPositioned && (k.current.isPositioned = !1, u((R) => ({
|
|
8592
8592
|
...R,
|
|
@@ -8750,10 +8750,10 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8750
8750
|
collisionBoundary: c = [],
|
|
8751
8751
|
collisionPadding: l = 0,
|
|
8752
8752
|
sticky: u = "partial",
|
|
8753
|
-
hideWhenDetached:
|
|
8753
|
+
hideWhenDetached: $ = !1,
|
|
8754
8754
|
updatePositionStrategy: m = "optimized",
|
|
8755
8755
|
onPlaced: v,
|
|
8756
|
-
|
|
8756
|
+
...f
|
|
8757
8757
|
} = e, g = ki(mr, n), [b, y] = h.useState(null), w = ne(t, (A) => y(A)), [x, S] = h.useState(null), N = l2(x), _ = N?.width ?? 0, k = N?.height ?? 0, D = r + (i !== "center" ? "-" + i : ""), M = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, B = Array.isArray(c) ? c : [c], E = B.length > 0, z = {
|
|
8758
8758
|
padding: M,
|
|
8759
8759
|
boundary: B.filter(h2),
|
|
@@ -8787,7 +8787,7 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8787
8787
|
}),
|
|
8788
8788
|
x && d2({ element: x, padding: d }),
|
|
8789
8789
|
m2({ arrowWidth: _, arrowHeight: k }),
|
|
8790
|
-
|
|
8790
|
+
$ && a2({ strategy: "referenceHidden", ...z })
|
|
8791
8791
|
]
|
|
8792
8792
|
}), [U, ee] = Zi(T), te = Ze(v);
|
|
8793
8793
|
ae(() => {
|
|
@@ -8834,10 +8834,10 @@ var mr = "PopperContent", [f2, $2] = Ii(mr), Mi = h.forwardRef(
|
|
|
8834
8834
|
{
|
|
8835
8835
|
"data-side": U,
|
|
8836
8836
|
"data-align": ee,
|
|
8837
|
-
|
|
8837
|
+
...f,
|
|
8838
8838
|
ref: w,
|
|
8839
8839
|
style: {
|
|
8840
|
-
|
|
8840
|
+
...f.style,
|
|
8841
8841
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
8842
8842
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
8843
8843
|
animation: Z ? void 0 : "none"
|
|
@@ -8909,9 +8909,9 @@ var m2 = (e) => ({
|
|
|
8909
8909
|
name: "transformOrigin",
|
|
8910
8910
|
options: e,
|
|
8911
8911
|
fn(t) {
|
|
8912
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, d = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Zi(n), u = { start: "0%", center: "50%", end: "100%" }[l],
|
|
8913
|
-
let v = "",
|
|
8914
|
-
return c === "bottom" ? (v = a ? u : `${
|
|
8912
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, d = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Zi(n), u = { start: "0%", center: "50%", end: "100%" }[l], $ = (o.arrow?.x ?? 0) + d / 2, m = (o.arrow?.y ?? 0) + s / 2;
|
|
8913
|
+
let v = "", f = "";
|
|
8914
|
+
return c === "bottom" ? (v = a ? u : `${$}px`, f = `${-s}px`) : c === "top" ? (v = a ? u : `${$}px`, f = `${r.floating.height + s}px`) : c === "right" ? (v = `${-s}px`, f = a ? u : `${m}px`) : c === "left" && (v = `${r.floating.width + s}px`, f = a ? u : `${m}px`), { data: { x: v, y: f } };
|
|
8915
8915
|
}
|
|
8916
8916
|
});
|
|
8917
8917
|
function Zi(e) {
|
|
@@ -9023,22 +9023,22 @@ var E2 = function(e) {
|
|
|
9023
9023
|
};
|
|
9024
9024
|
o.forEach(c);
|
|
9025
9025
|
var l = function(u) {
|
|
9026
|
-
!u || s.has(u) || Array.prototype.forEach.call(u.children, function(
|
|
9027
|
-
if (d.has(
|
|
9028
|
-
l(
|
|
9026
|
+
!u || s.has(u) || Array.prototype.forEach.call(u.children, function($) {
|
|
9027
|
+
if (d.has($))
|
|
9028
|
+
l($);
|
|
9029
9029
|
else
|
|
9030
9030
|
try {
|
|
9031
|
-
var m =
|
|
9032
|
-
Ge.set(f
|
|
9031
|
+
var m = $.getAttribute(r), v = m !== null && m !== "false", f = (Ge.get($) || 0) + 1, g = (i.get($) || 0) + 1;
|
|
9032
|
+
Ge.set($, f), i.set($, g), a.push($), f === 1 && v && At.set($, !0), g === 1 && $.setAttribute(n, "true"), v || $.setAttribute(r, "true");
|
|
9033
9033
|
} catch (b) {
|
|
9034
|
-
console.error("aria-hidden: cannot operate on ",
|
|
9034
|
+
console.error("aria-hidden: cannot operate on ", $, b);
|
|
9035
9035
|
}
|
|
9036
9036
|
});
|
|
9037
9037
|
};
|
|
9038
9038
|
return l(t), d.clear(), xn++, function() {
|
|
9039
9039
|
a.forEach(function(u) {
|
|
9040
|
-
var
|
|
9041
|
-
Ge.set(u,
|
|
9040
|
+
var $ = Ge.get(u) - 1, m = i.get(u) - 1;
|
|
9041
|
+
Ge.set(u, $), i.set(u, m), $ || (At.has(u) || u.removeAttribute(r), At.delete(u)), m || u.removeAttribute(n);
|
|
9042
9042
|
}), xn--, xn || (Ge = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), It = {});
|
|
9043
9043
|
};
|
|
9044
9044
|
}, I2 = function(e, t, n) {
|
|
@@ -9196,11 +9196,11 @@ var Hi = Z2(), Sn = function() {
|
|
|
9196
9196
|
onScrollCapture: Sn,
|
|
9197
9197
|
onWheelCapture: Sn,
|
|
9198
9198
|
onTouchMoveCapture: Sn
|
|
9199
|
-
}), o = r[0], i = r[1], a = e.forwardProps, d = e.children, s = e.className, c = e.removeScrollBar, l = e.enabled, u = e.shards,
|
|
9199
|
+
}), o = r[0], i = r[1], a = e.forwardProps, d = e.children, s = e.className, c = e.removeScrollBar, l = e.enabled, u = e.shards, $ = e.sideCar, m = e.noRelative, v = e.noIsolation, f = e.inert, g = e.allowPinchZoom, b = e.as, y = b === void 0 ? "div" : b, w = e.gapMode, x = Wi(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = $, N = M2([n, t]), _ = me(me({}, x), o);
|
|
9200
9200
|
return h.createElement(
|
|
9201
9201
|
h.Fragment,
|
|
9202
9202
|
null,
|
|
9203
|
-
l && h.createElement(S, { sideCar: Hi, removeScrollBar: c, shards: u, noRelative: m, noIsolation: v, inert:
|
|
9203
|
+
l && h.createElement(S, { sideCar: Hi, removeScrollBar: c, shards: u, noRelative: m, noIsolation: v, inert: f, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
|
|
9204
9204
|
a ? h.cloneElement(h.Children.only(d), me(me({}, _), { ref: N })) : h.createElement(y, me({}, _, { className: s, ref: N }), d)
|
|
9205
9205
|
);
|
|
9206
9206
|
});
|
|
@@ -9399,12 +9399,12 @@ var Ke = zn ? { passive: !1 } : !1, t3 = function(e) {
|
|
|
9399
9399
|
}, a3 = function(e, t) {
|
|
9400
9400
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
9401
9401
|
}, d3 = function(e, t, n, r, o) {
|
|
9402
|
-
var i = a3(e, window.getComputedStyle(t).direction), a = i * r, d = n.target, s = t.contains(d), c = !1, l = a > 0, u = 0,
|
|
9402
|
+
var i = a3(e, window.getComputedStyle(t).direction), a = i * r, d = n.target, s = t.contains(d), c = !1, l = a > 0, u = 0, $ = 0;
|
|
9403
9403
|
do {
|
|
9404
9404
|
if (!d)
|
|
9405
9405
|
break;
|
|
9406
|
-
var m = Yi(e, d), v = m[0],
|
|
9407
|
-
(v || b) && Xi(e, d) && (u += b,
|
|
9406
|
+
var m = Yi(e, d), v = m[0], f = m[1], g = m[2], b = f - g - i * v;
|
|
9407
|
+
(v || b) && Xi(e, d) && (u += b, $ += v);
|
|
9408
9408
|
var y = d.parentNode;
|
|
9409
9409
|
d = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
|
|
9410
9410
|
} while (
|
|
@@ -9412,7 +9412,7 @@ var Ke = zn ? { passive: !1 } : !1, t3 = function(e) {
|
|
|
9412
9412
|
!s && d !== document.body || // self content
|
|
9413
9413
|
s && (t.contains(d) || t === d)
|
|
9414
9414
|
);
|
|
9415
|
-
return (l && Math.abs(u) < 1 || !l && Math.abs(
|
|
9415
|
+
return (l && Math.abs(u) < 1 || !l && Math.abs($) < 1) && (c = !0), c;
|
|
9416
9416
|
}, kt = function(e) {
|
|
9417
9417
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
9418
9418
|
}, ko = function(e) {
|
|
@@ -9434,33 +9434,33 @@ function u3(e) {
|
|
|
9434
9434
|
}, [e]), h.useEffect(function() {
|
|
9435
9435
|
if (e.inert) {
|
|
9436
9436
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
9437
|
-
var
|
|
9438
|
-
return
|
|
9437
|
+
var f = O2([e.lockRef.current], (e.shards || []).map(To), !0).filter(Boolean);
|
|
9438
|
+
return f.forEach(function(g) {
|
|
9439
9439
|
return g.classList.add("allow-interactivity-".concat(o));
|
|
9440
9440
|
}), function() {
|
|
9441
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
9441
|
+
document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(g) {
|
|
9442
9442
|
return g.classList.remove("allow-interactivity-".concat(o));
|
|
9443
9443
|
});
|
|
9444
9444
|
};
|
|
9445
9445
|
}
|
|
9446
9446
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
9447
|
-
var d = h.useCallback(function(
|
|
9448
|
-
if ("touches" in
|
|
9447
|
+
var d = h.useCallback(function(f, g) {
|
|
9448
|
+
if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
|
|
9449
9449
|
return !a.current.allowPinchZoom;
|
|
9450
|
-
var b = kt(
|
|
9451
|
-
if ("touches" in
|
|
9450
|
+
var b = kt(f), y = n.current, w = "deltaX" in f ? f.deltaX : y[0] - b[0], x = "deltaY" in f ? f.deltaY : y[1] - b[1], S, N = f.target, _ = Math.abs(w) > Math.abs(x) ? "h" : "v";
|
|
9451
|
+
if ("touches" in f && _ === "h" && N.type === "range")
|
|
9452
9452
|
return !1;
|
|
9453
9453
|
var k = Oo(_, N);
|
|
9454
9454
|
if (!k)
|
|
9455
9455
|
return !0;
|
|
9456
9456
|
if (k ? S = _ : (S = _ === "v" ? "h" : "v", k = Oo(_, N)), !k)
|
|
9457
9457
|
return !1;
|
|
9458
|
-
if (!r.current && "changedTouches" in
|
|
9458
|
+
if (!r.current && "changedTouches" in f && (w || x) && (r.current = S), !S)
|
|
9459
9459
|
return !0;
|
|
9460
9460
|
var D = r.current || S;
|
|
9461
|
-
return d3(D, g,
|
|
9462
|
-
}, []), s = h.useCallback(function(
|
|
9463
|
-
var g =
|
|
9461
|
+
return d3(D, g, f, D === "h" ? w : x);
|
|
9462
|
+
}, []), s = h.useCallback(function(f) {
|
|
9463
|
+
var g = f;
|
|
9464
9464
|
if (!(!Xe.length || Xe[Xe.length - 1] !== i)) {
|
|
9465
9465
|
var b = "deltaY" in g ? ko(g) : kt(g), y = t.current.filter(function(S) {
|
|
9466
9466
|
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && s3(S.delta, b);
|
|
@@ -9476,28 +9476,28 @@ function u3(e) {
|
|
|
9476
9476
|
x && g.cancelable && g.preventDefault();
|
|
9477
9477
|
}
|
|
9478
9478
|
}
|
|
9479
|
-
}, []), c = h.useCallback(function(
|
|
9480
|
-
var w = { name:
|
|
9479
|
+
}, []), c = h.useCallback(function(f, g, b, y) {
|
|
9480
|
+
var w = { name: f, delta: g, target: b, should: y, shadowParent: f3(b) };
|
|
9481
9481
|
t.current.push(w), setTimeout(function() {
|
|
9482
9482
|
t.current = t.current.filter(function(x) {
|
|
9483
9483
|
return x !== w;
|
|
9484
9484
|
});
|
|
9485
9485
|
}, 1);
|
|
9486
|
-
}, []), l = h.useCallback(function(
|
|
9487
|
-
n.current = kt(
|
|
9488
|
-
}, []), u = h.useCallback(function(
|
|
9489
|
-
c(
|
|
9490
|
-
}, []),
|
|
9491
|
-
c(
|
|
9486
|
+
}, []), l = h.useCallback(function(f) {
|
|
9487
|
+
n.current = kt(f), r.current = void 0;
|
|
9488
|
+
}, []), u = h.useCallback(function(f) {
|
|
9489
|
+
c(f.type, ko(f), f.target, d(f, e.lockRef.current));
|
|
9490
|
+
}, []), $ = h.useCallback(function(f) {
|
|
9491
|
+
c(f.type, kt(f), f.target, d(f, e.lockRef.current));
|
|
9492
9492
|
}, []);
|
|
9493
9493
|
h.useEffect(function() {
|
|
9494
9494
|
return Xe.push(i), e.setCallbacks({
|
|
9495
9495
|
onScrollCapture: u,
|
|
9496
9496
|
onWheelCapture: u,
|
|
9497
|
-
onTouchMoveCapture:
|
|
9497
|
+
onTouchMoveCapture: $
|
|
9498
9498
|
}), document.addEventListener("wheel", s, Ke), document.addEventListener("touchmove", s, Ke), document.addEventListener("touchstart", l, Ke), function() {
|
|
9499
|
-
Xe = Xe.filter(function(
|
|
9500
|
-
return
|
|
9499
|
+
Xe = Xe.filter(function(f) {
|
|
9500
|
+
return f !== i;
|
|
9501
9501
|
}), document.removeEventListener("wheel", s, Ke), document.removeEventListener("touchmove", s, Ke), document.removeEventListener("touchstart", l, Ke);
|
|
9502
9502
|
};
|
|
9503
9503
|
}, []);
|
|
@@ -9535,10 +9535,10 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9535
9535
|
dir: c,
|
|
9536
9536
|
name: l,
|
|
9537
9537
|
autoComplete: u,
|
|
9538
|
-
disabled:
|
|
9538
|
+
disabled: $,
|
|
9539
9539
|
required: m,
|
|
9540
9540
|
form: v
|
|
9541
|
-
} = e,
|
|
9541
|
+
} = e, f = cn(t), [g, b] = h.useState(null), [y, w] = h.useState(null), [x, S] = h.useState(!1), N = A1(c), [_, k] = Ro({
|
|
9542
9542
|
prop: r,
|
|
9543
9543
|
defaultProp: o ?? !1,
|
|
9544
9544
|
onChange: i,
|
|
@@ -9549,7 +9549,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9549
9549
|
onChange: s,
|
|
9550
9550
|
caller: je
|
|
9551
9551
|
}), B = h.useRef(null), E = g ? v || !!g.closest("form") : !0, [z, O] = h.useState(/* @__PURE__ */ new Set()), j = Array.from(z).map((T) => T.props.value).join(";");
|
|
9552
|
-
return /* @__PURE__ */ p(g2, {
|
|
9552
|
+
return /* @__PURE__ */ p(g2, { ...f, children: /* @__PURE__ */ P(
|
|
9553
9553
|
g3,
|
|
9554
9554
|
{
|
|
9555
9555
|
required: m,
|
|
@@ -9567,7 +9567,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9567
9567
|
onOpenChange: k,
|
|
9568
9568
|
dir: N,
|
|
9569
9569
|
triggerPointerDownPosRef: B,
|
|
9570
|
-
disabled:
|
|
9570
|
+
disabled: $,
|
|
9571
9571
|
children: [
|
|
9572
9572
|
/* @__PURE__ */ p(dn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
9573
9573
|
v3,
|
|
@@ -9595,7 +9595,7 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9595
9595
|
autoComplete: u,
|
|
9596
9596
|
value: D,
|
|
9597
9597
|
onChange: (T) => M(T.target.value),
|
|
9598
|
-
disabled:
|
|
9598
|
+
disabled: $,
|
|
9599
9599
|
form: v,
|
|
9600
9600
|
children: [
|
|
9601
9601
|
D === void 0 ? /* @__PURE__ */ p("option", { value: "" }) : null,
|
|
@@ -9611,13 +9611,13 @@ var p3 = [" ", "Enter", "ArrowUp", "ArrowDown"], h3 = [" ", "Enter"], je = "Sele
|
|
|
9611
9611
|
qi.displayName = je;
|
|
9612
9612
|
var Qi = "SelectTrigger", ea = h.forwardRef(
|
|
9613
9613
|
(e, t) => {
|
|
9614
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = cn(n), a = ke(Qi, n), d = a.disabled || r, s = ne(t, a.onTriggerChange), c = sn(n), l = h.useRef("touch"), [u,
|
|
9615
|
-
const g = c().filter((w) => !w.disabled), b = g.find((w) => w.value === a.value), y = ya(g,
|
|
9614
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, i = cn(n), a = ke(Qi, n), d = a.disabled || r, s = ne(t, a.onTriggerChange), c = sn(n), l = h.useRef("touch"), [u, $, m] = ba((f) => {
|
|
9615
|
+
const g = c().filter((w) => !w.disabled), b = g.find((w) => w.value === a.value), y = ya(g, f, b);
|
|
9616
9616
|
y !== void 0 && a.onValueChange(y.value);
|
|
9617
|
-
}), v = (
|
|
9618
|
-
d || (a.onOpenChange(!0), m()),
|
|
9619
|
-
x: Math.round(
|
|
9620
|
-
y: Math.round(
|
|
9617
|
+
}), v = (f) => {
|
|
9618
|
+
d || (a.onOpenChange(!0), m()), f && (a.triggerPointerDownPosRef.current = {
|
|
9619
|
+
x: Math.round(f.pageX),
|
|
9620
|
+
y: Math.round(f.pageY)
|
|
9621
9621
|
});
|
|
9622
9622
|
};
|
|
9623
9623
|
return /* @__PURE__ */ p(v2, { asChild: !0, ...i, children: /* @__PURE__ */ p(
|
|
@@ -9636,17 +9636,17 @@ var Qi = "SelectTrigger", ea = h.forwardRef(
|
|
|
9636
9636
|
"data-placeholder": va(a.value) ? "" : void 0,
|
|
9637
9637
|
...o,
|
|
9638
9638
|
ref: s,
|
|
9639
|
-
onClick: Q(o.onClick, (
|
|
9640
|
-
|
|
9639
|
+
onClick: Q(o.onClick, (f) => {
|
|
9640
|
+
f.currentTarget.focus(), l.current !== "mouse" && v(f);
|
|
9641
9641
|
}),
|
|
9642
|
-
onPointerDown: Q(o.onPointerDown, (
|
|
9643
|
-
l.current =
|
|
9644
|
-
const g =
|
|
9645
|
-
g.hasPointerCapture(
|
|
9642
|
+
onPointerDown: Q(o.onPointerDown, (f) => {
|
|
9643
|
+
l.current = f.pointerType;
|
|
9644
|
+
const g = f.target;
|
|
9645
|
+
g.hasPointerCapture(f.pointerId) && g.releasePointerCapture(f.pointerId), f.button === 0 && f.ctrlKey === !1 && f.pointerType === "mouse" && (v(f), f.preventDefault());
|
|
9646
9646
|
}),
|
|
9647
|
-
onKeyDown: Q(o.onKeyDown, (
|
|
9647
|
+
onKeyDown: Q(o.onKeyDown, (f) => {
|
|
9648
9648
|
const g = u.current !== "";
|
|
9649
|
-
!(
|
|
9649
|
+
!(f.ctrlKey || f.altKey || f.metaKey) && f.key.length === 1 && $(f.key), !(g && f.key === " ") && p3.includes(f.key) && (v(), f.preventDefault());
|
|
9650
9650
|
})
|
|
9651
9651
|
}
|
|
9652
9652
|
) });
|
|
@@ -9710,10 +9710,10 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9710
9710
|
align: c,
|
|
9711
9711
|
alignOffset: l,
|
|
9712
9712
|
arrowPadding: u,
|
|
9713
|
-
collisionBoundary:
|
|
9713
|
+
collisionBoundary: $,
|
|
9714
9714
|
collisionPadding: m,
|
|
9715
9715
|
sticky: v,
|
|
9716
|
-
hideWhenDetached:
|
|
9716
|
+
hideWhenDetached: f,
|
|
9717
9717
|
avoidCollisions: g,
|
|
9718
9718
|
//
|
|
9719
9719
|
...b
|
|
@@ -9780,10 +9780,10 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9780
9780
|
align: c,
|
|
9781
9781
|
alignOffset: l,
|
|
9782
9782
|
arrowPadding: u,
|
|
9783
|
-
collisionBoundary:
|
|
9783
|
+
collisionBoundary: $,
|
|
9784
9784
|
collisionPadding: m,
|
|
9785
9785
|
sticky: v,
|
|
9786
|
-
hideWhenDetached:
|
|
9786
|
+
hideWhenDetached: f,
|
|
9787
9787
|
avoidCollisions: g
|
|
9788
9788
|
} : {};
|
|
9789
9789
|
return /* @__PURE__ */ p(
|
|
@@ -9865,8 +9865,8 @@ var fe = 10, [aa, Te] = st(Ue), x3 = "SelectContentImpl", C3 = Mt("SelectContent
|
|
|
9865
9865
|
);
|
|
9866
9866
|
da.displayName = x3;
|
|
9867
9867
|
var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
9868
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = ke(Ue, n), a = Te(Ue, n), [d, s] = h.useState(null), [c, l] = h.useState(null), u = ne(t, (_) => l(_)),
|
|
9869
|
-
if (i.trigger && i.valueNode && d && c &&
|
|
9868
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, i = ke(Ue, n), a = Te(Ue, n), [d, s] = h.useState(null), [c, l] = h.useState(null), u = ne(t, (_) => l(_)), $ = sn(n), m = h.useRef(!1), v = h.useRef(!0), { viewport: f, selectedItem: g, selectedItemText: b, focusSelectedItem: y } = a, w = h.useCallback(() => {
|
|
9869
|
+
if (i.trigger && i.valueNode && d && c && f && g && b) {
|
|
9870
9870
|
const _ = i.trigger.getBoundingClientRect(), k = c.getBoundingClientRect(), D = i.valueNode.getBoundingClientRect(), M = b.getBoundingClientRect();
|
|
9871
9871
|
if (i.dir !== "rtl") {
|
|
9872
9872
|
const H = M.left - k.left, q = D.left - H, le = _.left - q, Le = _.width + le, ln = Math.max(Le, k.width), un = window.innerWidth - fe, fn = co(q, [
|
|
@@ -9886,11 +9886,11 @@ var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
|
9886
9886
|
]);
|
|
9887
9887
|
d.style.minWidth = Le + "px", d.style.right = fn + "px";
|
|
9888
9888
|
}
|
|
9889
|
-
const B =
|
|
9889
|
+
const B = $(), E = window.innerHeight - fe * 2, z = f.scrollHeight, O = window.getComputedStyle(c), j = parseInt(O.borderTopWidth, 10), T = parseInt(O.paddingTop, 10), Z = parseInt(O.borderBottomWidth, 10), R = parseInt(O.paddingBottom, 10), U = j + T + z + R + Z, ee = Math.min(g.offsetHeight * 5, U), te = window.getComputedStyle(f), ct = parseInt(te.paddingTop, 10), lt = parseInt(te.paddingBottom, 10), Pe = _.top + _.height / 2 - fe, We = E - Pe, Fe = g.offsetHeight / 2, A = g.offsetTop + Fe, Y = j + T + A, oe = U - Y;
|
|
9890
9890
|
if (Y <= Pe) {
|
|
9891
9891
|
const H = B.length > 0 && g === B[B.length - 1].ref.current;
|
|
9892
9892
|
d.style.bottom = "0px";
|
|
9893
|
-
const q = c.clientHeight -
|
|
9893
|
+
const q = c.clientHeight - f.offsetTop - f.offsetHeight, le = Math.max(
|
|
9894
9894
|
We,
|
|
9895
9895
|
Fe + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
9896
9896
|
(H ? lt : 0) + q + Z
|
|
@@ -9901,20 +9901,20 @@ var S3 = "SelectItemAlignedPosition", sa = h.forwardRef((e, t) => {
|
|
|
9901
9901
|
d.style.top = "0px";
|
|
9902
9902
|
const le = Math.max(
|
|
9903
9903
|
Pe,
|
|
9904
|
-
j +
|
|
9904
|
+
j + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
9905
9905
|
(H ? ct : 0) + Fe
|
|
9906
9906
|
) + oe;
|
|
9907
|
-
d.style.height = le + "px",
|
|
9907
|
+
d.style.height = le + "px", f.scrollTop = Y - Pe + f.offsetTop;
|
|
9908
9908
|
}
|
|
9909
9909
|
d.style.margin = `${fe}px 0`, d.style.minHeight = ee + "px", d.style.maxHeight = E + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
9910
9910
|
}
|
|
9911
9911
|
}, [
|
|
9912
|
-
|
|
9912
|
+
$,
|
|
9913
9913
|
i.trigger,
|
|
9914
9914
|
i.valueNode,
|
|
9915
9915
|
d,
|
|
9916
9916
|
c,
|
|
9917
|
-
|
|
9917
|
+
f,
|
|
9918
9918
|
g,
|
|
9919
9919
|
b,
|
|
9920
9920
|
i.dir,
|
|
@@ -10032,11 +10032,11 @@ var [P3, gr] = st(Ue, {}), Bn = "SelectViewport", ca = h.forwardRef(
|
|
|
10032
10032
|
...o.style
|
|
10033
10033
|
},
|
|
10034
10034
|
onScroll: Q(o.onScroll, (c) => {
|
|
10035
|
-
const l = c.currentTarget, { contentWrapper: u, shouldExpandOnScrollRef:
|
|
10036
|
-
if (
|
|
10035
|
+
const l = c.currentTarget, { contentWrapper: u, shouldExpandOnScrollRef: $ } = a;
|
|
10036
|
+
if ($?.current && u) {
|
|
10037
10037
|
const m = Math.abs(s.current - l.scrollTop);
|
|
10038
10038
|
if (m > 0) {
|
|
10039
|
-
const v = window.innerHeight - fe * 2,
|
|
10039
|
+
const v = window.innerHeight - fe * 2, f = parseFloat(u.style.minHeight), g = parseFloat(u.style.height), b = Math.max(f, g);
|
|
10040
10040
|
if (b < v) {
|
|
10041
10041
|
const y = b + m, w = Math.min(v, y), x = y - w;
|
|
10042
10042
|
u.style.height = w + "px", u.style.bottom === "0px" && (l.scrollTop = x > 0 ? x : 0, u.style.justifyContent = "flex-end");
|
|
@@ -10073,10 +10073,10 @@ var Vt = "SelectItem", [I3, fa] = st(Vt), $a = h.forwardRef(
|
|
|
10073
10073
|
disabled: o = !1,
|
|
10074
10074
|
textValue: i,
|
|
10075
10075
|
...a
|
|
10076
|
-
} = e, d = ke(Vt, n), s = Te(Vt, n), c = d.value === r, [l, u] = h.useState(i ?? ""), [
|
|
10076
|
+
} = e, d = ke(Vt, n), s = Te(Vt, n), c = d.value === r, [l, u] = h.useState(i ?? ""), [$, m] = h.useState(!1), v = ne(
|
|
10077
10077
|
t,
|
|
10078
10078
|
(y) => s.itemRefCallback?.(y, r, o)
|
|
10079
|
-
),
|
|
10079
|
+
), f = sr(), g = h.useRef("touch"), b = () => {
|
|
10080
10080
|
o || (d.onValueChange(r), d.onOpenChange(!1));
|
|
10081
10081
|
};
|
|
10082
10082
|
if (r === "")
|
|
@@ -10089,7 +10089,7 @@ var Vt = "SelectItem", [I3, fa] = st(Vt), $a = h.forwardRef(
|
|
|
10089
10089
|
scope: n,
|
|
10090
10090
|
value: r,
|
|
10091
10091
|
disabled: o,
|
|
10092
|
-
textId:
|
|
10092
|
+
textId: f,
|
|
10093
10093
|
isSelected: c,
|
|
10094
10094
|
onItemTextChange: h.useCallback((y) => {
|
|
10095
10095
|
u((w) => w || (y?.textContent ?? "").trim());
|
|
@@ -10105,9 +10105,9 @@ var Vt = "SelectItem", [I3, fa] = st(Vt), $a = h.forwardRef(
|
|
|
10105
10105
|
J.div,
|
|
10106
10106
|
{
|
|
10107
10107
|
role: "option",
|
|
10108
|
-
"aria-labelledby":
|
|
10109
|
-
"data-highlighted":
|
|
10110
|
-
"aria-selected": c &&
|
|
10108
|
+
"aria-labelledby": f,
|
|
10109
|
+
"data-highlighted": $ ? "" : void 0,
|
|
10110
|
+
"aria-selected": c && $,
|
|
10111
10111
|
"data-state": c ? "checked" : "unchecked",
|
|
10112
10112
|
"aria-disabled": o || void 0,
|
|
10113
10113
|
"data-disabled": o ? "" : void 0,
|
|
@@ -10145,7 +10145,7 @@ var Vt = "SelectItem", [I3, fa] = st(Vt), $a = h.forwardRef(
|
|
|
10145
10145
|
$a.displayName = Vt;
|
|
10146
10146
|
var $t = "SelectItemText", pa = h.forwardRef(
|
|
10147
10147
|
(e, t) => {
|
|
10148
|
-
const { __scopeSelect: n, className: r, style: o, ...i } = e, a = ke($t, n), d = Te($t, n), s = fa($t, n), c = b3($t, n), [l, u] = h.useState(null),
|
|
10148
|
+
const { __scopeSelect: n, className: r, style: o, ...i } = e, a = ke($t, n), d = Te($t, n), s = fa($t, n), c = b3($t, n), [l, u] = h.useState(null), $ = ne(
|
|
10149
10149
|
t,
|
|
10150
10150
|
(b) => u(b),
|
|
10151
10151
|
s.onItemTextChange,
|
|
@@ -10153,9 +10153,9 @@ var $t = "SelectItemText", pa = h.forwardRef(
|
|
|
10153
10153
|
), m = l?.textContent, v = h.useMemo(
|
|
10154
10154
|
() => /* @__PURE__ */ p("option", { value: s.value, disabled: s.disabled, children: m }, s.value),
|
|
10155
10155
|
[s.disabled, s.value, m]
|
|
10156
|
-
), { onNativeOptionAdd:
|
|
10157
|
-
return ae(() => (
|
|
10158
|
-
/* @__PURE__ */ p(J.span, { id: s.textId, ...i, ref:
|
|
10156
|
+
), { onNativeOptionAdd: f, onNativeOptionRemove: g } = c;
|
|
10157
|
+
return ae(() => (f(v), () => g(v)), [f, g, v]), /* @__PURE__ */ P(Hn, { children: [
|
|
10158
|
+
/* @__PURE__ */ p(J.span, { id: s.textId, ...i, ref: $ }),
|
|
10159
10159
|
s.isSelected && a.valueNode && !a.valueNodeHasChildren ? Ht.createPortal(i.children, a.valueNode) : null
|
|
10160
10160
|
] });
|
|
10161
10161
|
}
|
|
@@ -10522,9 +10522,9 @@ function t$({
|
|
|
10522
10522
|
loading: s = !1,
|
|
10523
10523
|
emptyMessage: c = "No data available"
|
|
10524
10524
|
}) {
|
|
10525
|
-
const [l, u] = pt(1),
|
|
10525
|
+
const [l, u] = pt(1), $ = d !== void 0 ? d : l, m = (x) => {
|
|
10526
10526
|
d === void 0 && u(x), a?.(x);
|
|
10527
|
-
}, v = Math.ceil(t.length / n),
|
|
10527
|
+
}, v = Math.ceil(t.length / n), f = ($ - 1) * n, g = f + n, b = t.slice(f, g), y = (x, S, N) => {
|
|
10528
10528
|
if (x.render)
|
|
10529
10529
|
return x.render(S, N);
|
|
10530
10530
|
const _ = S[x.key];
|
|
@@ -10616,7 +10616,7 @@ function t$({
|
|
|
10616
10616
|
children: /* @__PURE__ */ p(
|
|
10617
10617
|
_1,
|
|
10618
10618
|
{
|
|
10619
|
-
currentPage:
|
|
10619
|
+
currentPage: $,
|
|
10620
10620
|
totalPages: v,
|
|
10621
10621
|
onPageChange: m
|
|
10622
10622
|
}
|
|
@@ -10663,16 +10663,16 @@ const n$ = ({
|
|
|
10663
10663
|
{
|
|
10664
10664
|
className: "flex gap-4 w-full",
|
|
10665
10665
|
"data-testid": "table-header-cards",
|
|
10666
|
-
children: c.map((
|
|
10666
|
+
children: c.map(($, m) => /* @__PURE__ */ P(
|
|
10667
10667
|
"div",
|
|
10668
10668
|
{
|
|
10669
10669
|
className: "bg-white border border-[#ecebf0] rounded-xl p-4 flex-1 flex gap-2",
|
|
10670
10670
|
"data-testid": `table-header-card-${m}`,
|
|
10671
10671
|
children: [
|
|
10672
|
-
|
|
10672
|
+
$.icon && /* @__PURE__ */ p("div", { className: "shrink-0", "data-testid": `table-header-card-icon-${m}`, children: $.icon }),
|
|
10673
10673
|
/* @__PURE__ */ P("div", { className: "flex flex-col gap-1 flex-1", children: [
|
|
10674
|
-
/* @__PURE__ */ p("span", { className: "text-base font-medium text-[#575385] leading-5", children:
|
|
10675
|
-
/* @__PURE__ */ p("span", { className: "text-xl font-semibold text-[#312e4d] leading-[22px]", children:
|
|
10674
|
+
/* @__PURE__ */ p("span", { className: "text-base font-medium text-[#575385] leading-5", children: $.label }),
|
|
10675
|
+
/* @__PURE__ */ p("span", { className: "text-xl font-semibold text-[#312e4d] leading-[22px]", children: $.value })
|
|
10676
10676
|
] })
|
|
10677
10677
|
]
|
|
10678
10678
|
},
|
|
@@ -10693,7 +10693,7 @@ const n$ = ({
|
|
|
10693
10693
|
{
|
|
10694
10694
|
type: "text",
|
|
10695
10695
|
value: r,
|
|
10696
|
-
onChange: (
|
|
10696
|
+
onChange: ($) => o?.($.target.value),
|
|
10697
10697
|
placeholder: n,
|
|
10698
10698
|
className: I(
|
|
10699
10699
|
"w-full h-11 pl-10 pr-4 py-3",
|
|
@@ -10714,24 +10714,24 @@ const n$ = ({
|
|
|
10714
10714
|
{
|
|
10715
10715
|
className: "flex gap-4 items-center shrink-0",
|
|
10716
10716
|
"data-testid": "table-header-buttons",
|
|
10717
|
-
children: d.map((
|
|
10717
|
+
children: d.map(($, m) => /* @__PURE__ */ p(
|
|
10718
10718
|
"div",
|
|
10719
10719
|
{
|
|
10720
10720
|
"data-testid": `table-header-button-${m}`,
|
|
10721
|
-
children:
|
|
10721
|
+
children: $.isDropdown && $.dropdownOptions ? (
|
|
10722
10722
|
/* Dropdown Button */
|
|
10723
10723
|
/* @__PURE__ */ p("div", { className: "relative", children: /* @__PURE__ */ p(
|
|
10724
10724
|
Vn,
|
|
10725
10725
|
{
|
|
10726
|
-
variant:
|
|
10727
|
-
options:
|
|
10728
|
-
value:
|
|
10729
|
-
onChange: (v) =>
|
|
10730
|
-
placeholder:
|
|
10731
|
-
label:
|
|
10726
|
+
variant: $.variant === "primary" ? "primary" : "default",
|
|
10727
|
+
options: $.dropdownOptions,
|
|
10728
|
+
value: $.dropdownValue,
|
|
10729
|
+
onChange: (v) => $.onDropdownChange?.(v),
|
|
10730
|
+
placeholder: $.label,
|
|
10731
|
+
label: $.dropdownLabel,
|
|
10732
10732
|
className: I(
|
|
10733
10733
|
"h-11",
|
|
10734
|
-
|
|
10734
|
+
$.variant === "outline" ? "border-[#00b56b]" : ""
|
|
10735
10735
|
)
|
|
10736
10736
|
}
|
|
10737
10737
|
) })
|
|
@@ -10740,10 +10740,10 @@ const n$ = ({
|
|
|
10740
10740
|
/* @__PURE__ */ p(
|
|
10741
10741
|
Vo,
|
|
10742
10742
|
{
|
|
10743
|
-
variant:
|
|
10744
|
-
onClick:
|
|
10743
|
+
variant: $.variant === "outline" ? "secondary" : "primary",
|
|
10744
|
+
onClick: $.onClick,
|
|
10745
10745
|
className: "h-11",
|
|
10746
|
-
children:
|
|
10746
|
+
children: $.label
|
|
10747
10747
|
}
|
|
10748
10748
|
)
|
|
10749
10749
|
)
|
|
@@ -10763,19 +10763,18 @@ const n$ = ({
|
|
|
10763
10763
|
/* @__PURE__ */ p(Oa, { size: 16, className: "text-[#312e4d]" }),
|
|
10764
10764
|
/* @__PURE__ */ p("span", { className: "text-base leading-5 text-[#312e4d]", children: "Filter by" })
|
|
10765
10765
|
] }),
|
|
10766
|
-
i.map((
|
|
10766
|
+
i.map(($, m) => /* @__PURE__ */ p(
|
|
10767
10767
|
"div",
|
|
10768
10768
|
{
|
|
10769
10769
|
className: "min-w-[120px]",
|
|
10770
10770
|
"data-testid": `table-header-filter-${m}`,
|
|
10771
|
-
children:
|
|
10771
|
+
children: $.options && $.options.length > 0 ? /* @__PURE__ */ p(
|
|
10772
10772
|
Vn,
|
|
10773
10773
|
{
|
|
10774
|
-
options:
|
|
10775
|
-
value:
|
|
10776
|
-
onChange: (v) =>
|
|
10777
|
-
placeholder:
|
|
10778
|
-
label: f.label,
|
|
10774
|
+
options: $.options,
|
|
10775
|
+
value: $.value,
|
|
10776
|
+
onChange: (v) => $.onChange?.(v),
|
|
10777
|
+
placeholder: $.placeholder || $.label,
|
|
10779
10778
|
className: "h-11"
|
|
10780
10779
|
}
|
|
10781
10780
|
) : /* @__PURE__ */ P(
|
|
@@ -10788,15 +10787,15 @@ const n$ = ({
|
|
|
10788
10787
|
"text-base leading-5 text-[#312e4d]",
|
|
10789
10788
|
"hover:border-[#a29fba] transition-colors"
|
|
10790
10789
|
),
|
|
10791
|
-
onClick: () =>
|
|
10790
|
+
onClick: () => $.onChange?.(""),
|
|
10792
10791
|
children: [
|
|
10793
|
-
/* @__PURE__ */ p("span", { children:
|
|
10792
|
+
/* @__PURE__ */ p("span", { children: $.placeholder || $.label }),
|
|
10794
10793
|
/* @__PURE__ */ p(Mo, { size: 16 })
|
|
10795
10794
|
]
|
|
10796
10795
|
}
|
|
10797
10796
|
)
|
|
10798
10797
|
},
|
|
10799
|
-
|
|
10798
|
+
$.key
|
|
10800
10799
|
))
|
|
10801
10800
|
]
|
|
10802
10801
|
}
|