@sakaniui/react 0.10.1 → 0.11.0
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/CHANGELOG.md +44 -0
- package/README.md +4 -2
- package/THIRD_PARTY_NOTICES.md +22 -0
- package/dist/TopBar-7GwvQXGS.cjs +1 -0
- package/dist/{TopBar-n4mj0qZ2.js → TopBar-O_56x94F.js} +719 -703
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +1221 -1248
- package/dist/components/Map/Map.d.ts +49 -0
- package/dist/components/Map/MapClusterLayer.d.ts +22 -0
- package/dist/components/Map/MapControls.d.ts +28 -0
- package/dist/components/Map/MapGlobe.d.ts +50 -0
- package/dist/components/Map/MapMarker.d.ts +24 -0
- package/dist/components/Map/MapPopup.d.ts +21 -0
- package/dist/components/Map/context.d.ts +18 -0
- package/dist/components/Map/geo.d.ts +41 -0
- package/dist/components/Map/index.d.ts +13 -0
- package/dist/components/Map/landMask.d.ts +9 -0
- package/dist/components/Map/useGlide.d.ts +8 -0
- package/dist/emoji-index.json +1 -1
- package/dist/favicon.svg +5 -4
- package/dist/icon-index.json +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.mjs +1300 -1307
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2159 -1280
- package/dist/lib/SakaniLogo.d.ts +4 -1
- package/dist/{logout-S1JWgqYn.js → logout-BW8ksDGk.js} +9 -2
- package/dist/logout-DkdFsC2P.cjs +1 -0
- package/dist/manifest.json +1589 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopBar-6a2n0CAh.cjs +0 -1
- package/dist/logout-BxhMGFcH.cjs +0 -1
|
@@ -334,7 +334,7 @@ var He = {
|
|
|
334
334
|
});
|
|
335
335
|
});
|
|
336
336
|
F.displayName = "Button";
|
|
337
|
-
var
|
|
337
|
+
var Ue = {
|
|
338
338
|
wrap: "_wrap_3mj75_1",
|
|
339
339
|
"wrap--vertical": "_wrap--vertical_3mj75_7",
|
|
340
340
|
"wrap--horizontal": "_wrap--horizontal_3mj75_11",
|
|
@@ -348,36 +348,36 @@ var I = {
|
|
|
348
348
|
hint: "_hint_3mj75_79",
|
|
349
349
|
link: "_link_3mj75_88",
|
|
350
350
|
input: "_input_3mj75_92"
|
|
351
|
-
},
|
|
351
|
+
}, We = ({ src: e, alt: t, orientation: n = "vertical", accept: r = "image/jpeg,image/png", title: i = "Upload a photo", hint: a = "JPG or PNG, max 5MB.", onFileSelect: o, onRemove: s, className: c }) => {
|
|
352
352
|
let l = k.useRef(null), d = e !== void 0, [f, p] = k.useState(void 0), m = d ? e : f, h = n === "horizontal", g = !!m, _ = () => l.current?.click(), v = () => {
|
|
353
353
|
s?.(), d || p(void 0);
|
|
354
354
|
}, y = /* @__PURE__ */ M("div", {
|
|
355
|
-
className: [
|
|
355
|
+
className: [Ue.textStack, h ? "" : Ue["textStack--center"]].filter(Boolean).join(" "),
|
|
356
356
|
children: [/* @__PURE__ */ j("p", {
|
|
357
|
-
className:
|
|
357
|
+
className: Ue.title,
|
|
358
358
|
children: i
|
|
359
359
|
}), /* @__PURE__ */ j("p", {
|
|
360
|
-
className:
|
|
360
|
+
className: Ue.hint,
|
|
361
361
|
children: a
|
|
362
362
|
})]
|
|
363
363
|
});
|
|
364
364
|
return /* @__PURE__ */ M("div", {
|
|
365
365
|
className: [
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
Ue.wrap,
|
|
367
|
+
Ue[`wrap--${n}`],
|
|
368
368
|
c ?? ""
|
|
369
369
|
].filter(Boolean).join(" "),
|
|
370
370
|
children: [
|
|
371
371
|
/* @__PURE__ */ M("div", {
|
|
372
|
-
className:
|
|
372
|
+
className: Ue.circleWrap,
|
|
373
373
|
children: [/* @__PURE__ */ j(Me, {
|
|
374
374
|
size: h ? "lg" : "xl",
|
|
375
375
|
src: m,
|
|
376
376
|
alt: t,
|
|
377
|
-
className: h ? void 0 :
|
|
377
|
+
className: h ? void 0 : Ue.bigAvatar
|
|
378
378
|
}), !h && /* @__PURE__ */ j("button", {
|
|
379
379
|
type: "button",
|
|
380
|
-
className:
|
|
380
|
+
className: Ue.badge,
|
|
381
381
|
onClick: _,
|
|
382
382
|
"aria-label": "Change photo",
|
|
383
383
|
children: /* @__PURE__ */ j(u, {
|
|
@@ -387,7 +387,7 @@ var I = {
|
|
|
387
387
|
})]
|
|
388
388
|
}),
|
|
389
389
|
h && /* @__PURE__ */ M("div", {
|
|
390
|
-
className:
|
|
390
|
+
className: Ue.horizontalContent,
|
|
391
391
|
children: [y, g ? /* @__PURE__ */ j(F, {
|
|
392
392
|
variant: "outline",
|
|
393
393
|
size: "sm",
|
|
@@ -409,7 +409,7 @@ var I = {
|
|
|
409
409
|
onClick: (e) => {
|
|
410
410
|
e.preventDefault(), _();
|
|
411
411
|
},
|
|
412
|
-
className:
|
|
412
|
+
className: Ue.link,
|
|
413
413
|
style: {
|
|
414
414
|
color: "var(--color-brand-fg)",
|
|
415
415
|
fontSize: 16,
|
|
@@ -421,7 +421,7 @@ var I = {
|
|
|
421
421
|
ref: l,
|
|
422
422
|
type: "file",
|
|
423
423
|
accept: r,
|
|
424
|
-
className:
|
|
424
|
+
className: Ue.input,
|
|
425
425
|
onChange: (e) => {
|
|
426
426
|
let t = e.target.files?.[0];
|
|
427
427
|
t && (o?.(t), d || p(URL.createObjectURL(t))), e.target.value = "";
|
|
@@ -432,7 +432,7 @@ var I = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/lib/useThemeTick.ts
|
|
435
|
-
function
|
|
435
|
+
function Ge() {
|
|
436
436
|
let [e, t] = oe(0);
|
|
437
437
|
return ae(() => {
|
|
438
438
|
if (typeof document > "u") return;
|
|
@@ -444,7 +444,7 @@ function We() {
|
|
|
444
444
|
}), () => e.disconnect();
|
|
445
445
|
}, []), e;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var I = {
|
|
448
448
|
balance: "_balance_kaxp5_1",
|
|
449
449
|
"balance--progress": "_balance--progress_kaxp5_8",
|
|
450
450
|
content: "_content_kaxp5_17",
|
|
@@ -462,14 +462,14 @@ var L = {
|
|
|
462
462
|
changeValue__down: "_changeValue__down_kaxp5_117",
|
|
463
463
|
changeLabel: "_changeLabel_kaxp5_124",
|
|
464
464
|
ringCard: "_ringCard_kaxp5_132"
|
|
465
|
-
},
|
|
466
|
-
let t = Math.min(e,
|
|
467
|
-
return Array.from({ length: t }, () =>
|
|
468
|
-
},
|
|
469
|
-
|
|
470
|
-
let t =
|
|
465
|
+
}, Ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", qe = 8, Je = 6, Ye = 90, Xe = (e) => {
|
|
466
|
+
let t = Math.min(e, qe);
|
|
467
|
+
return Array.from({ length: t }, () => Ke[Math.floor(Math.random() * 36)]).join("");
|
|
468
|
+
}, Ze = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, Qe = ({ progress: e }) => {
|
|
469
|
+
Ge();
|
|
470
|
+
let t = Ze("--color-chart-1") ?? "#ff4700", n = Ze("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
|
|
471
471
|
return /* @__PURE__ */ j("div", {
|
|
472
|
-
className:
|
|
472
|
+
className: I.ringCard,
|
|
473
473
|
children: /* @__PURE__ */ j(be, {
|
|
474
474
|
width: 64,
|
|
475
475
|
height: 64,
|
|
@@ -495,7 +495,7 @@ var L = {
|
|
|
495
495
|
})
|
|
496
496
|
})
|
|
497
497
|
});
|
|
498
|
-
},
|
|
498
|
+
}, $e = ({ label: t = "Available balance", value: n, change: r, progress: i, hidden: a, onToggleHidden: o, className: l }) => {
|
|
499
499
|
let u = a !== void 0, [d, f] = k.useState(!1), p = u ? a : d, m = i !== void 0, h = r?.direction ?? "up", g = h === "up" ? b : e, _ = () => {
|
|
500
500
|
let e = !p;
|
|
501
501
|
o?.(e), u || f(e);
|
|
@@ -504,23 +504,23 @@ var L = {
|
|
|
504
504
|
if (p && !C.current) {
|
|
505
505
|
y(!0);
|
|
506
506
|
let e = 0, t = setInterval(() => {
|
|
507
|
-
e += 1, S((e) => e + 1), e >=
|
|
508
|
-
},
|
|
507
|
+
e += 1, S((e) => e + 1), e >= Je && (clearInterval(t), y(!1));
|
|
508
|
+
}, Ye);
|
|
509
509
|
return C.current = !0, () => clearInterval(t);
|
|
510
510
|
}
|
|
511
511
|
C.current = p;
|
|
512
512
|
}, [p]);
|
|
513
|
-
let w = k.useMemo(() =>
|
|
514
|
-
className:
|
|
513
|
+
let w = k.useMemo(() => Xe(n.length), [n, x]), T = k.useMemo(() => r ? Xe(r.value.length) : "", [r?.value, x]), E = /* @__PURE__ */ M("div", {
|
|
514
|
+
className: I.content,
|
|
515
515
|
children: [
|
|
516
516
|
/* @__PURE__ */ M("div", {
|
|
517
|
-
className:
|
|
517
|
+
className: I.labelRow,
|
|
518
518
|
children: [/* @__PURE__ */ j("p", {
|
|
519
|
-
className:
|
|
519
|
+
className: I.label,
|
|
520
520
|
children: t
|
|
521
521
|
}), /* @__PURE__ */ j("button", {
|
|
522
522
|
type: "button",
|
|
523
|
-
className:
|
|
523
|
+
className: I.hideToggle,
|
|
524
524
|
"aria-label": p ? "Show balance" : "Hide balance",
|
|
525
525
|
onClick: _,
|
|
526
526
|
children: j(p ? s : c, {
|
|
@@ -531,26 +531,26 @@ var L = {
|
|
|
531
531
|
}),
|
|
532
532
|
/* @__PURE__ */ j("p", {
|
|
533
533
|
className: [
|
|
534
|
-
|
|
535
|
-
p ?
|
|
536
|
-
v ?
|
|
534
|
+
I.value,
|
|
535
|
+
p ? I["value--hidden"] : "",
|
|
536
|
+
v ? I["value--glitching"] : ""
|
|
537
537
|
].filter(Boolean).join(" "),
|
|
538
538
|
children: p ? w : n
|
|
539
539
|
}),
|
|
540
540
|
r && /* @__PURE__ */ M("div", {
|
|
541
|
-
className:
|
|
541
|
+
className: I.changeRow,
|
|
542
542
|
children: [
|
|
543
543
|
/* @__PURE__ */ j(g, {
|
|
544
544
|
size: 24,
|
|
545
545
|
strokeWidth: 1.5,
|
|
546
|
-
className: h === "up" ?
|
|
546
|
+
className: h === "up" ? I.trendIcon__up : I.trendIcon__down
|
|
547
547
|
}),
|
|
548
548
|
/* @__PURE__ */ j("span", {
|
|
549
|
-
className: [h === "up" ?
|
|
549
|
+
className: [h === "up" ? I.changeValue__up : I.changeValue__down, v ? I["value--glitching"] : ""].filter(Boolean).join(" "),
|
|
550
550
|
children: p ? T : r.value
|
|
551
551
|
}),
|
|
552
552
|
/* @__PURE__ */ j("span", {
|
|
553
|
-
className:
|
|
553
|
+
className: I.changeLabel,
|
|
554
554
|
children: r.label ?? "this month"
|
|
555
555
|
})
|
|
556
556
|
]
|
|
@@ -559,13 +559,13 @@ var L = {
|
|
|
559
559
|
});
|
|
560
560
|
return /* @__PURE__ */ M("div", {
|
|
561
561
|
className: [
|
|
562
|
-
|
|
563
|
-
m ?
|
|
562
|
+
I.balance,
|
|
563
|
+
m ? I["balance--progress"] : "",
|
|
564
564
|
l ?? ""
|
|
565
565
|
].filter(Boolean).join(" "),
|
|
566
|
-
children: [m && /* @__PURE__ */ j(
|
|
566
|
+
children: [m && /* @__PURE__ */ j(Qe, { progress: i }), E]
|
|
567
567
|
});
|
|
568
|
-
},
|
|
568
|
+
}, et = {
|
|
569
569
|
progress: "_progress_1qaz4_11",
|
|
570
570
|
"progress--sm": "_progress--sm_1qaz4_20",
|
|
571
571
|
"progress--md": "_progress--md_1qaz4_21",
|
|
@@ -573,7 +573,7 @@ var L = {
|
|
|
573
573
|
progress__fill: "_progress__fill_1qaz4_25",
|
|
574
574
|
"progress__fill--indeterminate": "_progress__fill--indeterminate_1qaz4_33",
|
|
575
575
|
"progress-scan": "_progress-scan_1qaz4_1"
|
|
576
|
-
},
|
|
576
|
+
}, tt = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
|
|
577
577
|
let i = e === void 0, a = Math.min(100, Math.max(0, e ?? 0));
|
|
578
578
|
return /* @__PURE__ */ j("div", {
|
|
579
579
|
role: "progressbar",
|
|
@@ -582,27 +582,27 @@ var L = {
|
|
|
582
582
|
"aria-valuemin": 0,
|
|
583
583
|
"aria-valuemax": 100,
|
|
584
584
|
className: [
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
et.progress,
|
|
586
|
+
et[`progress--${t}`],
|
|
587
587
|
r ?? ""
|
|
588
588
|
].filter(Boolean).join(" "),
|
|
589
589
|
children: /* @__PURE__ */ j("div", {
|
|
590
|
-
className: [
|
|
590
|
+
className: [et.progress__fill, i ? et["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
|
|
591
591
|
style: i ? void 0 : { width: `${a}%` }
|
|
592
592
|
})
|
|
593
593
|
});
|
|
594
|
-
},
|
|
595
|
-
function
|
|
594
|
+
}, nt = ["dark", "force-light"];
|
|
595
|
+
function rt(e, t) {
|
|
596
596
|
let [n, r] = oe("");
|
|
597
597
|
return ae(() => {
|
|
598
598
|
if (!t || typeof document > "u") return;
|
|
599
599
|
let n = e.current;
|
|
600
600
|
if (!n) return;
|
|
601
|
-
let i = n.closest(
|
|
601
|
+
let i = n.closest(nt.map((e) => `.${e}`).join(", ")), a = i ? nt.find((e) => i.classList.contains(e)) ?? "" : "";
|
|
602
602
|
r(a);
|
|
603
603
|
}, [e, t]), n;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function it(e, t) {
|
|
606
606
|
let [n, r] = oe(void 0);
|
|
607
607
|
return ae(() => {
|
|
608
608
|
if (!t || typeof document > "u") return;
|
|
@@ -610,7 +610,7 @@ function rt(e, t) {
|
|
|
610
610
|
n && r(n.closest("[data-surface]")?.getAttribute("data-surface") ?? void 0);
|
|
611
611
|
}, [e, t]), n;
|
|
612
612
|
}
|
|
613
|
-
var
|
|
613
|
+
var L = {
|
|
614
614
|
liquid: "_liquid_13biw_6",
|
|
615
615
|
regular: "_regular_13biw_6",
|
|
616
616
|
clear: "_clear_13biw_14",
|
|
@@ -629,12 +629,12 @@ var R = {
|
|
|
629
629
|
};
|
|
630
630
|
//#endregion
|
|
631
631
|
//#region src/lib/LiquidGlass.tsx
|
|
632
|
-
function
|
|
632
|
+
function at() {
|
|
633
633
|
return typeof navigator > "u" ? !1 : !!(navigator.userAgentData?.brands)?.some((e) => /Chromium/i.test(e.brand));
|
|
634
634
|
}
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
let { w: t, h: n, radius: r, bezel: i, intensity: a, reach: o, lx: s, ly: c } = e, l = `${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u =
|
|
635
|
+
var ot = /* @__PURE__ */ new Map();
|
|
636
|
+
function st(e) {
|
|
637
|
+
let { w: t, h: n, radius: r, bezel: i, intensity: a, reach: o, lx: s, ly: c } = e, l = `${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u = ot.get(l);
|
|
638
638
|
if (u) return u;
|
|
639
639
|
let d = () => {
|
|
640
640
|
let e = document.createElement("canvas");
|
|
@@ -674,9 +674,9 @@ function ot(e) {
|
|
|
674
674
|
map: f.toDataURL(),
|
|
675
675
|
light: p.toDataURL()
|
|
676
676
|
};
|
|
677
|
-
return
|
|
677
|
+
return ot.set(l, T), T;
|
|
678
678
|
}
|
|
679
|
-
var
|
|
679
|
+
var ct = k.createContext(null), lt = k.forwardRef(({ src: e, position: t = "center", veil: n, style: r, children: i, ...a }, o) => {
|
|
680
680
|
let s = k.useRef(null), c = (e) => {
|
|
681
681
|
s.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
682
682
|
}, l = n ? `linear-gradient(${n}, ${n}), url("${e}")` : `url("${e}")`, u = n ? "100% 100%, cover" : "cover", d = k.useMemo(() => ({
|
|
@@ -703,27 +703,27 @@ var st = k.createContext(null), ct = k.forwardRef(({ src: e, position: t = "cent
|
|
|
703
703
|
backgroundRepeat: "no-repeat",
|
|
704
704
|
...r
|
|
705
705
|
},
|
|
706
|
-
children: /* @__PURE__ */ j(
|
|
706
|
+
children: /* @__PURE__ */ j(ct.Provider, {
|
|
707
707
|
value: d,
|
|
708
708
|
children: i
|
|
709
709
|
})
|
|
710
710
|
});
|
|
711
711
|
});
|
|
712
|
-
|
|
713
|
-
var
|
|
712
|
+
lt.displayName = "LiquidBackdrop";
|
|
713
|
+
var ut = /* @__PURE__ */ new Set(), dt = 0, ft = 0, pt = () => {
|
|
714
714
|
let e = !1;
|
|
715
|
-
|
|
715
|
+
ut.forEach((t) => {
|
|
716
716
|
t() && (e = !0);
|
|
717
|
-
}),
|
|
718
|
-
},
|
|
719
|
-
|
|
720
|
-
},
|
|
721
|
-
function
|
|
722
|
-
if (!
|
|
723
|
-
|
|
717
|
+
}), ft = e ? 0 : ft + 1, dt = ut.size && ft < 24 ? requestAnimationFrame(pt) : 0;
|
|
718
|
+
}, mt = () => {
|
|
719
|
+
ft = 0, !dt && ut.size && (dt = requestAnimationFrame(pt));
|
|
720
|
+
}, ht = !1;
|
|
721
|
+
function gt(e) {
|
|
722
|
+
if (!ht && typeof window < "u") {
|
|
723
|
+
ht = !0, window.addEventListener("scroll", mt, {
|
|
724
724
|
capture: !0,
|
|
725
725
|
passive: !0
|
|
726
|
-
}), window.addEventListener("resize",
|
|
726
|
+
}), window.addEventListener("resize", mt);
|
|
727
727
|
for (let e of [
|
|
728
728
|
"transitionrun",
|
|
729
729
|
"transitionend",
|
|
@@ -731,29 +731,29 @@ function ht(e) {
|
|
|
731
731
|
"animationend",
|
|
732
732
|
"pointerdown",
|
|
733
733
|
"pointerup"
|
|
734
|
-
]) document.addEventListener(e,
|
|
735
|
-
new MutationObserver(
|
|
734
|
+
]) document.addEventListener(e, mt, !0);
|
|
735
|
+
new MutationObserver(mt).observe(document.documentElement, {
|
|
736
736
|
attributes: !0,
|
|
737
737
|
attributeFilter: ["class", "data-theme"],
|
|
738
738
|
subtree: !0
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
return
|
|
742
|
-
|
|
741
|
+
return ut.add(e), e(), mt(), () => {
|
|
742
|
+
ut.delete(e);
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
745
|
+
function _t() {
|
|
746
|
+
ut.forEach((e) => e()), mt();
|
|
747
747
|
}
|
|
748
|
-
var
|
|
749
|
-
function
|
|
750
|
-
let t =
|
|
748
|
+
var vt = /* @__PURE__ */ new Map();
|
|
749
|
+
function yt(e) {
|
|
750
|
+
let t = vt.get(e);
|
|
751
751
|
return t || (t = new Promise((t, n) => {
|
|
752
752
|
let r = new Image();
|
|
753
753
|
r.decoding = "async", r.onload = () => t(r), r.onerror = n, r.src = e;
|
|
754
|
-
}),
|
|
754
|
+
}), vt.set(e, t)), t;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function bt(e) {
|
|
757
757
|
let t = {
|
|
758
758
|
left: 0,
|
|
759
759
|
top: 0,
|
|
@@ -763,12 +763,12 @@ function yt(e) {
|
|
|
763
763
|
}, n = e.trim().split(/\s+/), r = (e) => e === void 0 ? .5 : e in t ? t[e] : e.endsWith("%") ? parseFloat(e) / 100 : .5;
|
|
764
764
|
return n.length === 1 && (n[0] === "top" || n[0] === "bottom") ? [.5, r(n[0])] : [r(n[0]), r(n[1])];
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var xt = 300 * 300, St = (e, t, n) => {
|
|
767
767
|
let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
|
|
768
768
|
return Number.isFinite(r) ? r : n;
|
|
769
769
|
};
|
|
770
|
-
function
|
|
771
|
-
let o = `liquid-${k.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [s, c] = k.useState(null), l = t && n !== "off" &&
|
|
770
|
+
function Ct(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source: i = !0, bake: a = "auto" } = {}) {
|
|
771
|
+
let o = `liquid-${k.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [s, c] = k.useState(null), l = t && n !== "off" && at(), u = k.useContext(ct), d = l && i && !!u, f = k.useRef(null);
|
|
772
772
|
k.useEffect(() => {
|
|
773
773
|
let t = e.current;
|
|
774
774
|
if (!t || !l) {
|
|
@@ -778,7 +778,7 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
778
778
|
let n = () => {
|
|
779
779
|
let e = Math.round(t.offsetWidth), n = Math.round(t.offsetHeight);
|
|
780
780
|
if (!e || !n) return;
|
|
781
|
-
let r = parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, i =
|
|
781
|
+
let r = parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, i = St(t, "--liquid-refraction", .8), a = Math.max(0, St(t, "--liquid-depth", 20)), o = St(t, "--liquid-dispersion", 0), s = Math.max(0, St(t, "--liquid-frost", 0)), l = Math.max(0, St(t, "--liquid-light-intensity", 0)), u = St(t, "--liquid-light-angle", -45) * Math.PI / 180, d = .8 * a, f = Math.max(1, Math.round(Math.min(d, Math.min(e, n) / 2))), p = d > 0 ? f / d : 0, m = {
|
|
782
782
|
w: e,
|
|
783
783
|
h: n,
|
|
784
784
|
radius: r,
|
|
@@ -795,9 +795,9 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
795
795
|
};
|
|
796
796
|
n();
|
|
797
797
|
let r = 0, i = new ResizeObserver(() => {
|
|
798
|
-
t.offsetWidth * t.offsetHeight >
|
|
799
|
-
n(),
|
|
800
|
-
}, 90)) : (n(),
|
|
798
|
+
t.offsetWidth * t.offsetHeight > xt ? (window.clearTimeout(r), r = window.setTimeout(() => {
|
|
799
|
+
n(), mt();
|
|
800
|
+
}, 90)) : (n(), mt());
|
|
801
801
|
});
|
|
802
802
|
return i.observe(t), () => {
|
|
803
803
|
window.clearTimeout(r), i.disconnect();
|
|
@@ -807,16 +807,16 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
807
807
|
l,
|
|
808
808
|
r
|
|
809
809
|
]);
|
|
810
|
-
let p = s ?
|
|
810
|
+
let p = s ? st(s) : null, m = k.useCallback((e) => {
|
|
811
811
|
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
812
812
|
t.style.setProperty("--mx", `${e.clientX - n.left}px`), t.style.setProperty("--my", `${e.clientY - n.top}px`);
|
|
813
|
-
}, []), h = l && !!s && !!p?.map, g = d && !!s && (a === "auto" ? s.w * s.h >
|
|
813
|
+
}, []), h = l && !!s && !!p?.map, g = d && !!s && (a === "auto" ? s.w * s.h > xt : a), _ = k.useRef(null), v = k.useRef(null), y = k.useRef(0);
|
|
814
814
|
k.useLayoutEffect(() => {
|
|
815
815
|
let t = e.current;
|
|
816
816
|
if (!d || !h || !t || !u || !s || !p) return;
|
|
817
817
|
let n = "", r = 0, i = 0, a = 0, c = (e, t, n, r, i) => {
|
|
818
818
|
let a = ++y.current;
|
|
819
|
-
|
|
819
|
+
yt(u.src).then((c) => {
|
|
820
820
|
let l = _.current, d = document.getElementById(`${o}-bake`);
|
|
821
821
|
if (a !== y.current || !l || !d) return;
|
|
822
822
|
let f = Math.min(2, window.devicePixelRatio || 1), p = Math.round(s.w * f), m = Math.round(s.h * f), h = document.createElement("canvas");
|
|
@@ -824,11 +824,11 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
824
824
|
let g = h.getContext("2d"), v = l.getContext("2d");
|
|
825
825
|
if (!g || !v) return;
|
|
826
826
|
g.scale(f, f), g.translate(e, t);
|
|
827
|
-
let b = Math.max(n / c.naturalWidth, r / c.naturalHeight), x = c.naturalWidth * b, S = c.naturalHeight * b, [C, w] =
|
|
827
|
+
let b = Math.max(n / c.naturalWidth, r / c.naturalHeight), x = c.naturalWidth * b, S = c.naturalHeight * b, [C, w] = bt(u.position);
|
|
828
828
|
g.drawImage(c, (n - x) * C, (r - S) * w, x, S), i && i !== "rgba(0, 0, 0, 0)" && i !== "transparent" && (g.fillStyle = i, g.fillRect(0, 0, n, r)), l.width = p, l.height = m, v.filter = `url(#${o}-bake)`, v.drawImage(h, 0, 0), v.filter = "none";
|
|
829
829
|
}).catch(() => {});
|
|
830
830
|
};
|
|
831
|
-
return
|
|
831
|
+
return gt(() => {
|
|
832
832
|
let e = u.rootRef.current, o = f.current;
|
|
833
833
|
if (!e || !g && !o || g && !_.current) return ++r < 120;
|
|
834
834
|
let s = t.getBoundingClientRect(), l = e.getBoundingClientRect(), d = t.offsetWidth ? s.width / t.offsetWidth : 1, p = t.offsetHeight ? s.height / t.offsetHeight : 1, m = (l.left - s.left) / d, h = (l.top - s.top) / p, y = l.width / d, b = l.height / p, x = "";
|
|
@@ -857,7 +857,7 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
857
857
|
let t = Array(20).fill(0);
|
|
858
858
|
return t[e * 5 + e] = 1, t[18] = 1, t.join(" ");
|
|
859
859
|
}, x = h && s && p ? /* @__PURE__ */ j("svg", {
|
|
860
|
-
className:
|
|
860
|
+
className: L.defs,
|
|
861
861
|
width: "0",
|
|
862
862
|
height: "0",
|
|
863
863
|
"aria-hidden": "true",
|
|
@@ -938,7 +938,7 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
938
938
|
}) : null, S = typeof window < "u" ? Math.min(2, window.devicePixelRatio || 1) : 1, C = g && s && p ? (() => {
|
|
939
939
|
let e = Math.round(s.w * S), t = Math.round(s.h * S);
|
|
940
940
|
return /* @__PURE__ */ j("svg", {
|
|
941
|
-
className:
|
|
941
|
+
className: L.defs,
|
|
942
942
|
width: "0",
|
|
943
943
|
height: "0",
|
|
944
944
|
"aria-hidden": "true",
|
|
@@ -1022,31 +1022,31 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
1022
1022
|
filter: h && d && u ? g ? /* @__PURE__ */ M(A, { children: [
|
|
1023
1023
|
C,
|
|
1024
1024
|
/* @__PURE__ */ M("span", {
|
|
1025
|
-
className:
|
|
1025
|
+
className: L.sourceClip,
|
|
1026
1026
|
"aria-hidden": "true",
|
|
1027
1027
|
children: [/* @__PURE__ */ j("canvas", {
|
|
1028
1028
|
ref: _,
|
|
1029
|
-
className:
|
|
1029
|
+
className: L.sourceCanvas
|
|
1030
1030
|
}), /* @__PURE__ */ j("span", {
|
|
1031
1031
|
ref: v,
|
|
1032
|
-
className:
|
|
1032
|
+
className: L.probe
|
|
1033
1033
|
})]
|
|
1034
1034
|
}),
|
|
1035
1035
|
/* @__PURE__ */ j("span", {
|
|
1036
|
-
className:
|
|
1036
|
+
className: L.fill,
|
|
1037
1037
|
"aria-hidden": "true"
|
|
1038
1038
|
})
|
|
1039
1039
|
] }) : /* @__PURE__ */ M(A, { children: [
|
|
1040
1040
|
x,
|
|
1041
1041
|
/* @__PURE__ */ j("span", {
|
|
1042
|
-
className:
|
|
1042
|
+
className: L.sourceClip,
|
|
1043
1043
|
"aria-hidden": "true",
|
|
1044
1044
|
children: /* @__PURE__ */ j("span", {
|
|
1045
|
-
className:
|
|
1045
|
+
className: L.source,
|
|
1046
1046
|
style: { filter: `url(#${o})` },
|
|
1047
1047
|
children: /* @__PURE__ */ j("span", {
|
|
1048
1048
|
ref: f,
|
|
1049
|
-
className:
|
|
1049
|
+
className: L.sourceImage,
|
|
1050
1050
|
style: {
|
|
1051
1051
|
backgroundImage: u.image,
|
|
1052
1052
|
backgroundSize: u.size,
|
|
@@ -1056,7 +1056,7 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
1056
1056
|
})
|
|
1057
1057
|
}),
|
|
1058
1058
|
/* @__PURE__ */ j("span", {
|
|
1059
|
-
className:
|
|
1059
|
+
className: L.fill,
|
|
1060
1060
|
"aria-hidden": "true"
|
|
1061
1061
|
})
|
|
1062
1062
|
] }) : x,
|
|
@@ -1069,14 +1069,14 @@ function St(e, { enabled: t = !0, refraction: n = "auto", watch: r = "", source:
|
|
|
1069
1069
|
}
|
|
1070
1070
|
};
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var wt = (e) => {
|
|
1073
1073
|
if (!e) return {};
|
|
1074
1074
|
let t = {};
|
|
1075
1075
|
return e.refraction !== void 0 && (t["--liquid-refraction"] = e.refraction), e.depth !== void 0 && (t["--liquid-depth"] = e.depth), e.dispersion !== void 0 && (t["--liquid-dispersion"] = e.dispersion), e.frost !== void 0 && (t["--liquid-frost"] = e.frost), e.lightIntensity !== void 0 && (t["--liquid-light-intensity"] = e.lightIntensity), e.lightAngle !== void 0 && (t["--liquid-light-angle"] = e.lightAngle), t;
|
|
1076
|
-
},
|
|
1076
|
+
}, Tt = k.forwardRef(({ variant: e = "regular", tint: t = "auto", radius: n = 20, refraction: r = "auto", effect: i, source: a = !0, bake: o = "auto", interactive: s, className: c, style: l, children: u, onPointerMove: d, ...f }, p) => {
|
|
1077
1077
|
let m = k.useRef(null), h = (e) => {
|
|
1078
1078
|
m.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
1079
|
-
}, g =
|
|
1079
|
+
}, g = Ct(m, {
|
|
1080
1080
|
refraction: r,
|
|
1081
1081
|
source: a,
|
|
1082
1082
|
bake: o,
|
|
@@ -1087,15 +1087,15 @@ var Ct = (e) => {
|
|
|
1087
1087
|
...f,
|
|
1088
1088
|
...g.props,
|
|
1089
1089
|
className: [
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
t === "auto" ? "" :
|
|
1093
|
-
s ?
|
|
1090
|
+
L.liquid,
|
|
1091
|
+
L[e],
|
|
1092
|
+
t === "auto" ? "" : L[`tint-${t}`],
|
|
1093
|
+
s ? L.interactive : "",
|
|
1094
1094
|
c ?? ""
|
|
1095
1095
|
].filter(Boolean).join(" "),
|
|
1096
1096
|
style: {
|
|
1097
1097
|
borderRadius: n,
|
|
1098
|
-
...
|
|
1098
|
+
...wt(i),
|
|
1099
1099
|
...g.props.style,
|
|
1100
1100
|
...l
|
|
1101
1101
|
},
|
|
@@ -1105,30 +1105,30 @@ var Ct = (e) => {
|
|
|
1105
1105
|
children: [g.filter, u]
|
|
1106
1106
|
});
|
|
1107
1107
|
});
|
|
1108
|
-
|
|
1109
|
-
var
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
t === "auto" ? "" :
|
|
1113
|
-
].filter(Boolean).join(" "),
|
|
1108
|
+
Tt.displayName = "LiquidGlass";
|
|
1109
|
+
var Et = (e = "regular", t = "auto") => [
|
|
1110
|
+
L.liquid,
|
|
1111
|
+
L[e],
|
|
1112
|
+
t === "auto" ? "" : L[`tint-${t}`]
|
|
1113
|
+
].filter(Boolean).join(" "), Dt = {
|
|
1114
1114
|
"divider--horizontal": "_divider--horizontal_nem37_4",
|
|
1115
1115
|
"divider--labeled": "_divider--labeled_nem37_13",
|
|
1116
1116
|
"divider--vertical": "_divider--vertical_nem37_27",
|
|
1117
1117
|
divider__label: "_divider__label_nem37_38"
|
|
1118
|
-
},
|
|
1118
|
+
}, Ot = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ j("div", {
|
|
1119
1119
|
role: "separator",
|
|
1120
1120
|
"aria-orientation": e,
|
|
1121
1121
|
className: [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
t ?
|
|
1122
|
+
Dt.divider,
|
|
1123
|
+
Dt[`divider--${e}`],
|
|
1124
|
+
t ? Dt["divider--labeled"] : "",
|
|
1125
1125
|
n ?? ""
|
|
1126
1126
|
].filter(Boolean).join(" "),
|
|
1127
1127
|
children: t && e === "horizontal" && /* @__PURE__ */ j("span", {
|
|
1128
|
-
className:
|
|
1128
|
+
className: Dt.divider__label,
|
|
1129
1129
|
children: t
|
|
1130
1130
|
})
|
|
1131
|
-
}),
|
|
1131
|
+
}), R = {
|
|
1132
1132
|
backdrop: "_backdrop_13dud_1",
|
|
1133
1133
|
card: "_card_13dud_12",
|
|
1134
1134
|
header: "_header_13dud_34",
|
|
@@ -1147,8 +1147,8 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1147
1147
|
"sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
|
|
1148
1148
|
"card--exiting": "_card--exiting_13dud_115",
|
|
1149
1149
|
"sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
|
|
1150
|
-
},
|
|
1151
|
-
let b = o === "destructive", x = k.useRef(null), S = k.useRef(null), C = k.useRef(null), w =
|
|
1150
|
+
}, kt = ({ open: e, onClose: t, title: n, description: r, variant: o = "default", icon: s, cancelLabel: c = "Cancel", confirmLabel: l, onCancel: u, onConfirm: d, confirmLoading: f, closeOnEscape: p = !0, closeOnBackdropClick: m = !0, children: h, hideHeader: g = !1, hideFooterDivider: _ = !1, footerJustify: v = "end", className: y }) => {
|
|
1151
|
+
let b = o === "destructive", x = k.useRef(null), S = k.useRef(null), C = k.useRef(null), w = rt(C, e), T = it(C, e), E = T === "liquid", D = Ct(x, {
|
|
1152
1152
|
enabled: E,
|
|
1153
1153
|
source: !1
|
|
1154
1154
|
}), [O, ee] = k.useState(!1);
|
|
@@ -1191,9 +1191,9 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1191
1191
|
"aria-hidden": "true"
|
|
1192
1192
|
}), O && Te(/* @__PURE__ */ j("div", {
|
|
1193
1193
|
className: [
|
|
1194
|
-
|
|
1194
|
+
R.backdrop,
|
|
1195
1195
|
w,
|
|
1196
|
-
e ?
|
|
1196
|
+
e ? R["backdrop--entering"] : R["backdrop--exiting"]
|
|
1197
1197
|
].filter(Boolean).join(" "),
|
|
1198
1198
|
"data-surface": T,
|
|
1199
1199
|
onMouseDown: (e) => {
|
|
@@ -1207,9 +1207,9 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1207
1207
|
"aria-label": g ? n : void 0,
|
|
1208
1208
|
tabIndex: -1,
|
|
1209
1209
|
className: [
|
|
1210
|
-
|
|
1211
|
-
E ?
|
|
1212
|
-
e ?
|
|
1210
|
+
R.card,
|
|
1211
|
+
E ? Et("regular") : "",
|
|
1212
|
+
e ? R["card--entering"] : R["card--exiting"],
|
|
1213
1213
|
y ?? ""
|
|
1214
1214
|
].filter(Boolean).join(" "),
|
|
1215
1215
|
...E ? D.props : {},
|
|
@@ -1219,20 +1219,20 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1219
1219
|
children: [
|
|
1220
1220
|
E && D.filter,
|
|
1221
1221
|
!g && /* @__PURE__ */ M("div", {
|
|
1222
|
-
className:
|
|
1222
|
+
className: R.header,
|
|
1223
1223
|
children: [/* @__PURE__ */ M("div", {
|
|
1224
|
-
className:
|
|
1224
|
+
className: R.titleGroup,
|
|
1225
1225
|
children: [b && /* @__PURE__ */ j("span", {
|
|
1226
|
-
className:
|
|
1226
|
+
className: R.iconWrap,
|
|
1227
1227
|
"aria-hidden": "true",
|
|
1228
1228
|
children: s ?? /* @__PURE__ */ j(a, {
|
|
1229
1229
|
size: 24,
|
|
1230
1230
|
strokeWidth: N(24),
|
|
1231
|
-
className:
|
|
1231
|
+
className: R.icon
|
|
1232
1232
|
})
|
|
1233
1233
|
}), /* @__PURE__ */ j("p", {
|
|
1234
1234
|
id: "modal-title",
|
|
1235
|
-
className:
|
|
1235
|
+
className: R.title,
|
|
1236
1236
|
children: n
|
|
1237
1237
|
})]
|
|
1238
1238
|
}), /* @__PURE__ */ j(Ve, {
|
|
@@ -1244,13 +1244,13 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1244
1244
|
})]
|
|
1245
1245
|
}),
|
|
1246
1246
|
r && /* @__PURE__ */ j("p", {
|
|
1247
|
-
className:
|
|
1247
|
+
className: R.description,
|
|
1248
1248
|
children: r
|
|
1249
1249
|
}),
|
|
1250
1250
|
h,
|
|
1251
|
-
!_ && /* @__PURE__ */ j(
|
|
1251
|
+
!_ && /* @__PURE__ */ j(Ot, {}),
|
|
1252
1252
|
/* @__PURE__ */ M("div", {
|
|
1253
|
-
className: [
|
|
1253
|
+
className: [R.footer, v === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
|
|
1254
1254
|
children: [/* @__PURE__ */ j(F, {
|
|
1255
1255
|
variant: "secondary",
|
|
1256
1256
|
onClick: te,
|
|
@@ -1266,7 +1266,7 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1266
1266
|
]
|
|
1267
1267
|
})
|
|
1268
1268
|
}), document.body)] });
|
|
1269
|
-
},
|
|
1269
|
+
}, z = {
|
|
1270
1270
|
row: "_row_88l3n_2",
|
|
1271
1271
|
"row--unread": "_row--unread_88l3n_12",
|
|
1272
1272
|
iconWrapSurface: "_iconWrapSurface_88l3n_17",
|
|
@@ -1280,28 +1280,28 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1280
1280
|
cardTop: "_cardTop_88l3n_87",
|
|
1281
1281
|
description: "_description_88l3n_94",
|
|
1282
1282
|
actions: "_actions_88l3n_102"
|
|
1283
|
-
},
|
|
1283
|
+
}, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: a, onDismiss: o, dismissLabel: s = "Dismiss", actionLabel: c, onAction: u, className: d }) => {
|
|
1284
1284
|
let f = a !== void 0, p = !r && !f, m = e ?? /* @__PURE__ */ j(l, {
|
|
1285
1285
|
size: 24,
|
|
1286
1286
|
strokeWidth: N(24)
|
|
1287
1287
|
});
|
|
1288
1288
|
return f ? /* @__PURE__ */ M("div", {
|
|
1289
|
-
className: [
|
|
1289
|
+
className: [z.card, d ?? ""].filter(Boolean).join(" "),
|
|
1290
1290
|
children: [/* @__PURE__ */ M("div", {
|
|
1291
|
-
className:
|
|
1291
|
+
className: z.cardTop,
|
|
1292
1292
|
children: [
|
|
1293
1293
|
/* @__PURE__ */ j("span", {
|
|
1294
|
-
className:
|
|
1294
|
+
className: z.iconWrapCanvas,
|
|
1295
1295
|
"aria-hidden": "true",
|
|
1296
1296
|
children: m
|
|
1297
1297
|
}),
|
|
1298
1298
|
/* @__PURE__ */ M("div", {
|
|
1299
|
-
className:
|
|
1299
|
+
className: z.content,
|
|
1300
1300
|
children: [/* @__PURE__ */ j("p", {
|
|
1301
|
-
className:
|
|
1301
|
+
className: z.titleBold,
|
|
1302
1302
|
children: t
|
|
1303
1303
|
}), /* @__PURE__ */ j("p", {
|
|
1304
|
-
className:
|
|
1304
|
+
className: z.description,
|
|
1305
1305
|
children: a
|
|
1306
1306
|
})]
|
|
1307
1307
|
}),
|
|
@@ -1314,7 +1314,7 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1314
1314
|
})
|
|
1315
1315
|
]
|
|
1316
1316
|
}), /* @__PURE__ */ M("div", {
|
|
1317
|
-
className:
|
|
1317
|
+
className: z.actions,
|
|
1318
1318
|
children: [o && /* @__PURE__ */ j(F, {
|
|
1319
1319
|
variant: "ghost",
|
|
1320
1320
|
size: "sm",
|
|
@@ -1329,51 +1329,51 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1329
1329
|
})]
|
|
1330
1330
|
})]
|
|
1331
1331
|
}) : /* @__PURE__ */ M("div", {
|
|
1332
|
-
className: [
|
|
1332
|
+
className: [z.row, p ? z["row--unread"] : ""].filter(Boolean).join(" "),
|
|
1333
1333
|
children: [
|
|
1334
1334
|
/* @__PURE__ */ j("span", {
|
|
1335
|
-
className:
|
|
1335
|
+
className: z.iconWrapSurface,
|
|
1336
1336
|
"aria-hidden": "true",
|
|
1337
1337
|
children: m
|
|
1338
1338
|
}),
|
|
1339
1339
|
/* @__PURE__ */ M("div", {
|
|
1340
|
-
className:
|
|
1340
|
+
className: z.content,
|
|
1341
1341
|
children: [/* @__PURE__ */ j("p", {
|
|
1342
|
-
className: p ?
|
|
1342
|
+
className: p ? z.titleBold : z.titleMuted,
|
|
1343
1343
|
children: t
|
|
1344
1344
|
}), n && /* @__PURE__ */ j("p", {
|
|
1345
|
-
className:
|
|
1345
|
+
className: z.timestamp,
|
|
1346
1346
|
children: n
|
|
1347
1347
|
})]
|
|
1348
1348
|
}),
|
|
1349
1349
|
p && /* @__PURE__ */ j("span", {
|
|
1350
|
-
className:
|
|
1350
|
+
className: z.dot,
|
|
1351
1351
|
"aria-hidden": "true"
|
|
1352
1352
|
})
|
|
1353
1353
|
]
|
|
1354
1354
|
});
|
|
1355
|
-
},
|
|
1355
|
+
}, jt = {
|
|
1356
1356
|
stat: "_stat_krs8c_1",
|
|
1357
1357
|
labelRow: "_labelRow_krs8c_10",
|
|
1358
1358
|
label: "_label_krs8c_10",
|
|
1359
1359
|
value: "_value_krs8c_27"
|
|
1360
|
-
},
|
|
1361
|
-
className: [
|
|
1360
|
+
}, Mt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ M("div", {
|
|
1361
|
+
className: [jt.stat, r ?? ""].filter(Boolean).join(" "),
|
|
1362
1362
|
children: [/* @__PURE__ */ M("div", {
|
|
1363
|
-
className:
|
|
1363
|
+
className: jt.labelRow,
|
|
1364
1364
|
children: [/* @__PURE__ */ j("p", {
|
|
1365
|
-
className:
|
|
1365
|
+
className: jt.label,
|
|
1366
1366
|
children: e
|
|
1367
1367
|
}), /* @__PURE__ */ j("p", {
|
|
1368
|
-
className:
|
|
1368
|
+
className: jt.value,
|
|
1369
1369
|
children: t
|
|
1370
1370
|
})]
|
|
1371
|
-
}), /* @__PURE__ */ j(
|
|
1371
|
+
}), /* @__PURE__ */ j(tt, {
|
|
1372
1372
|
value: n,
|
|
1373
1373
|
size: "lg",
|
|
1374
1374
|
label: e
|
|
1375
1375
|
})]
|
|
1376
|
-
}),
|
|
1376
|
+
}), Nt = {
|
|
1377
1377
|
balance: "_balance_5gcu5_1",
|
|
1378
1378
|
label: "_label_5gcu5_10",
|
|
1379
1379
|
amountRow: "_amountRow_5gcu5_19",
|
|
@@ -1383,25 +1383,25 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1383
1383
|
fill: "_fill_5gcu5_50",
|
|
1384
1384
|
"fill--over": "_fill--over_5gcu5_57",
|
|
1385
1385
|
footer: "_footer_5gcu5_61"
|
|
1386
|
-
},
|
|
1386
|
+
}, Pt = (e) => e.toLocaleString("en-US", {
|
|
1387
1387
|
style: "currency",
|
|
1388
1388
|
currency: "USD"
|
|
1389
|
-
}),
|
|
1389
|
+
}), Ft = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Pt, className: i }) => {
|
|
1390
1390
|
let a = t > n, o = a ? 100 : n > 0 ? t / n * 100 : 0, s = a ? `${r(t - n)} over your limit` : `${r(n - t)} remaining`;
|
|
1391
1391
|
return /* @__PURE__ */ M("div", {
|
|
1392
|
-
className: [
|
|
1392
|
+
className: [Nt.balance, i ?? ""].filter(Boolean).join(" "),
|
|
1393
1393
|
children: [
|
|
1394
1394
|
/* @__PURE__ */ j("p", {
|
|
1395
|
-
className:
|
|
1395
|
+
className: Nt.label,
|
|
1396
1396
|
children: e
|
|
1397
1397
|
}),
|
|
1398
1398
|
/* @__PURE__ */ M("div", {
|
|
1399
|
-
className:
|
|
1399
|
+
className: Nt.amountRow,
|
|
1400
1400
|
children: [/* @__PURE__ */ j("p", {
|
|
1401
|
-
className:
|
|
1401
|
+
className: Nt.amount,
|
|
1402
1402
|
children: r(t)
|
|
1403
1403
|
}), /* @__PURE__ */ M("p", {
|
|
1404
|
-
className:
|
|
1404
|
+
className: Nt.limit,
|
|
1405
1405
|
children: [
|
|
1406
1406
|
"of ",
|
|
1407
1407
|
r(n),
|
|
@@ -1410,19 +1410,19 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1410
1410
|
})]
|
|
1411
1411
|
}),
|
|
1412
1412
|
/* @__PURE__ */ j("div", {
|
|
1413
|
-
className:
|
|
1413
|
+
className: Nt.track,
|
|
1414
1414
|
role: "progressbar",
|
|
1415
1415
|
"aria-label": e,
|
|
1416
1416
|
"aria-valuenow": Math.round(o),
|
|
1417
1417
|
"aria-valuemin": 0,
|
|
1418
1418
|
"aria-valuemax": 100,
|
|
1419
1419
|
children: /* @__PURE__ */ j("div", {
|
|
1420
|
-
className: [
|
|
1420
|
+
className: [Nt.fill, a ? Nt["fill--over"] : ""].filter(Boolean).join(" "),
|
|
1421
1421
|
style: { width: `${o}%` }
|
|
1422
1422
|
})
|
|
1423
1423
|
}),
|
|
1424
1424
|
/* @__PURE__ */ j("p", {
|
|
1425
|
-
className:
|
|
1425
|
+
className: Nt.footer,
|
|
1426
1426
|
children: s
|
|
1427
1427
|
})
|
|
1428
1428
|
]
|
|
@@ -1430,7 +1430,7 @@ var Tt = (e = "regular", t = "auto") => [
|
|
|
1430
1430
|
};
|
|
1431
1431
|
//#endregion
|
|
1432
1432
|
//#region src/lib/useChartTokens.ts
|
|
1433
|
-
function
|
|
1433
|
+
function It(e) {
|
|
1434
1434
|
let [, t] = oe(0);
|
|
1435
1435
|
return ae(() => {
|
|
1436
1436
|
if (typeof document > "u") return;
|
|
@@ -1449,65 +1449,65 @@ function Ft(e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
//#endregion
|
|
1451
1451
|
//#region src/lib/chartPalette.ts
|
|
1452
|
-
var
|
|
1452
|
+
var Lt = [
|
|
1453
1453
|
"#ff4700",
|
|
1454
1454
|
"#5b92dd",
|
|
1455
1455
|
"#47a8a2",
|
|
1456
1456
|
"#9179d6",
|
|
1457
1457
|
"#dca84f",
|
|
1458
1458
|
"#12b76a"
|
|
1459
|
-
],
|
|
1459
|
+
], Rt = {
|
|
1460
1460
|
tooltip: "_tooltip_ic16u_3",
|
|
1461
1461
|
title: "_title_ic16u_23",
|
|
1462
1462
|
row: "_row_ic16u_27",
|
|
1463
1463
|
dot: "_dot_ic16u_34",
|
|
1464
1464
|
label: "_label_ic16u_41",
|
|
1465
1465
|
value: "_value_ic16u_42"
|
|
1466
|
-
},
|
|
1467
|
-
className:
|
|
1466
|
+
}, zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ M("div", {
|
|
1467
|
+
className: Rt.tooltip,
|
|
1468
1468
|
children: [n !== void 0 && n !== "" && /* @__PURE__ */ j("span", {
|
|
1469
|
-
className:
|
|
1469
|
+
className: Rt.title,
|
|
1470
1470
|
children: n
|
|
1471
1471
|
}), t.map((e, t) => /* @__PURE__ */ M("div", {
|
|
1472
|
-
className:
|
|
1472
|
+
className: Rt.row,
|
|
1473
1473
|
children: [
|
|
1474
1474
|
/* @__PURE__ */ j("span", {
|
|
1475
|
-
className:
|
|
1475
|
+
className: Rt.dot,
|
|
1476
1476
|
style: { background: e.color ?? e.payload?.fill ?? e.fill }
|
|
1477
1477
|
}),
|
|
1478
1478
|
/* @__PURE__ */ j("span", {
|
|
1479
|
-
className:
|
|
1479
|
+
className: Rt.label,
|
|
1480
1480
|
children: e.name
|
|
1481
1481
|
}),
|
|
1482
1482
|
/* @__PURE__ */ j("span", {
|
|
1483
|
-
className:
|
|
1483
|
+
className: Rt.value,
|
|
1484
1484
|
children: r ? r(e.value, e.name) : e.value
|
|
1485
1485
|
})
|
|
1486
1486
|
]
|
|
1487
1487
|
}, t))]
|
|
1488
|
-
}),
|
|
1488
|
+
}), Bt = {
|
|
1489
1489
|
chart: "_chart_1s6lv_2",
|
|
1490
1490
|
legend: "_legend_1s6lv_31",
|
|
1491
1491
|
legendItem: "_legendItem_1s6lv_41",
|
|
1492
1492
|
legendSwatch: "_legendSwatch_1s6lv_46"
|
|
1493
|
-
},
|
|
1493
|
+
}, Vt = {
|
|
1494
1494
|
sm: 180,
|
|
1495
1495
|
md: 240,
|
|
1496
1496
|
lg: 320,
|
|
1497
1497
|
xl: 420
|
|
1498
|
-
},
|
|
1498
|
+
}, B = 6, Ht = (e) => {
|
|
1499
1499
|
if (e <= 0) return 1;
|
|
1500
1500
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
1501
1501
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
1502
|
-
},
|
|
1503
|
-
let [a, o] = k.useState(null), [s, c] = k.useState(null), l = k.useRef(null), u =
|
|
1502
|
+
}, Ut = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
1503
|
+
let [a, o] = k.useState(null), [s, c] = k.useState(null), l = k.useRef(null), u = It(l), d = u("--color-chart-2") ?? "#5b92dd", f = u("--color-chart-5") ?? "#dca84f", p = u("--color-chart-1") ?? "#ff4700", m = [
|
|
1504
1504
|
1,
|
|
1505
1505
|
2,
|
|
1506
1506
|
3,
|
|
1507
1507
|
4,
|
|
1508
1508
|
5,
|
|
1509
1509
|
6
|
|
1510
|
-
].map((e) => u(`--color-chart-${e}`) ??
|
|
1510
|
+
].map((e) => u(`--color-chart-${e}`) ?? Lt[e - 1]), h = u("--color-border-subtle") ?? "#e7e5e1", g = u("--color-fg-muted") ?? "#78716a", _ = t === "multiple" || t === "stacked", v = _ && e.some((e) => e.value2 !== void 0), y = u("--color-bg-canvas") ?? "#fafaf9", b = Ht(Math.max(1, ...e.map((e) => Math.abs(e.value)))), x = [
|
|
1511
1511
|
-b,
|
|
1512
1512
|
-b / 2,
|
|
1513
1513
|
0,
|
|
@@ -1515,7 +1515,7 @@ var It = [
|
|
|
1515
1515
|
b
|
|
1516
1516
|
], S = /* @__PURE__ */ j(xe, {
|
|
1517
1517
|
cursor: !1,
|
|
1518
|
-
content: /* @__PURE__ */ j(
|
|
1518
|
+
content: /* @__PURE__ */ j(zt, {}),
|
|
1519
1519
|
wrapperStyle: { zIndex: 50 },
|
|
1520
1520
|
position: s ? { y: s.y } : void 0
|
|
1521
1521
|
}), C = (n) => t === "active" ? m[n % m.length] : t === "negative" && e[n].value < 0 ? p : d, w = (e) => a !== null && e !== a ? .45 : 1, T = (e, t, n, r, i, a) => ({
|
|
@@ -1565,10 +1565,10 @@ var It = [
|
|
|
1565
1565
|
};
|
|
1566
1566
|
return /* @__PURE__ */ j("div", {
|
|
1567
1567
|
ref: l,
|
|
1568
|
-
className: [
|
|
1568
|
+
className: [Bt.chart, i ?? ""].filter(Boolean).join(" "),
|
|
1569
1569
|
children: /* @__PURE__ */ j(be, {
|
|
1570
1570
|
width: "100%",
|
|
1571
|
-
height:
|
|
1571
|
+
height: Vt[n],
|
|
1572
1572
|
children: /* @__PURE__ */ M(ce, {
|
|
1573
1573
|
data: e,
|
|
1574
1574
|
layout: t === "horizontal" ? "vertical" : "horizontal",
|
|
@@ -1614,11 +1614,11 @@ var It = [
|
|
|
1614
1614
|
}),
|
|
1615
1615
|
S,
|
|
1616
1616
|
_ && /* @__PURE__ */ j(de, { content: (e) => /* @__PURE__ */ j("ul", {
|
|
1617
|
-
className:
|
|
1617
|
+
className: Bt.legend,
|
|
1618
1618
|
children: e.payload?.map((e) => /* @__PURE__ */ M("li", {
|
|
1619
|
-
className:
|
|
1619
|
+
className: Bt.legendItem,
|
|
1620
1620
|
children: [/* @__PURE__ */ j("span", {
|
|
1621
|
-
className:
|
|
1621
|
+
className: Bt.legendSwatch,
|
|
1622
1622
|
style: { background: e.color }
|
|
1623
1623
|
}), /* @__PURE__ */ j("span", {
|
|
1624
1624
|
style: { color: e.color },
|
|
@@ -1634,13 +1634,13 @@ var It = [
|
|
|
1634
1634
|
radius: t === "stacked" ? [
|
|
1635
1635
|
0,
|
|
1636
1636
|
0,
|
|
1637
|
-
|
|
1638
|
-
|
|
1637
|
+
B,
|
|
1638
|
+
B
|
|
1639
1639
|
] : [
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1640
|
+
B,
|
|
1641
|
+
B,
|
|
1642
|
+
B,
|
|
1643
|
+
B
|
|
1644
1644
|
],
|
|
1645
1645
|
isAnimationActive: !1,
|
|
1646
1646
|
activeBar: E("value"),
|
|
@@ -1656,15 +1656,15 @@ var It = [
|
|
|
1656
1656
|
fill: f,
|
|
1657
1657
|
stackId: t === "stacked" ? "stack" : void 0,
|
|
1658
1658
|
radius: t === "stacked" ? [
|
|
1659
|
-
|
|
1660
|
-
|
|
1659
|
+
B,
|
|
1660
|
+
B,
|
|
1661
1661
|
0,
|
|
1662
1662
|
0
|
|
1663
1663
|
] : [
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1664
|
+
B,
|
|
1665
|
+
B,
|
|
1666
|
+
B,
|
|
1667
|
+
B
|
|
1668
1668
|
],
|
|
1669
1669
|
isAnimationActive: !1,
|
|
1670
1670
|
activeBar: E("value2"),
|
|
@@ -1679,10 +1679,10 @@ var It = [
|
|
|
1679
1679
|
name: "Value",
|
|
1680
1680
|
fill: a === null ? d : C(a),
|
|
1681
1681
|
radius: [
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1682
|
+
B,
|
|
1683
|
+
B,
|
|
1684
|
+
B,
|
|
1685
|
+
B
|
|
1686
1686
|
],
|
|
1687
1687
|
isAnimationActive: !1,
|
|
1688
1688
|
activeBar: E("value"),
|
|
@@ -1697,7 +1697,7 @@ var It = [
|
|
|
1697
1697
|
})
|
|
1698
1698
|
})
|
|
1699
1699
|
});
|
|
1700
|
-
},
|
|
1700
|
+
}, Wt = {
|
|
1701
1701
|
badge: "_badge_a5a38_6",
|
|
1702
1702
|
"badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
|
|
1703
1703
|
"badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
|
|
@@ -1713,29 +1713,29 @@ var It = [
|
|
|
1713
1713
|
"badge--info-solid": "_badge--info-solid_a5a38_41",
|
|
1714
1714
|
badge__icon: "_badge__icon_a5a38_44",
|
|
1715
1715
|
badge__label: "_badge__label_a5a38_45"
|
|
1716
|
-
},
|
|
1716
|
+
}, Gt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: i, className: a }) => /* @__PURE__ */ M("span", {
|
|
1717
1717
|
className: [
|
|
1718
|
-
|
|
1719
|
-
|
|
1718
|
+
Wt.badge,
|
|
1719
|
+
Wt[`badge--${e}-${t}`],
|
|
1720
1720
|
a ?? ""
|
|
1721
1721
|
].filter(Boolean).join(" "),
|
|
1722
1722
|
children: [
|
|
1723
1723
|
n && /* @__PURE__ */ j("span", {
|
|
1724
|
-
className:
|
|
1724
|
+
className: Wt.badge__icon,
|
|
1725
1725
|
"aria-hidden": "true",
|
|
1726
1726
|
children: n
|
|
1727
1727
|
}),
|
|
1728
1728
|
/* @__PURE__ */ j("span", {
|
|
1729
|
-
className:
|
|
1729
|
+
className: Wt.badge__label,
|
|
1730
1730
|
children: i
|
|
1731
1731
|
}),
|
|
1732
1732
|
r && /* @__PURE__ */ j("span", {
|
|
1733
|
-
className:
|
|
1733
|
+
className: Wt.badge__icon,
|
|
1734
1734
|
"aria-hidden": "true",
|
|
1735
1735
|
children: r
|
|
1736
1736
|
})
|
|
1737
1737
|
]
|
|
1738
|
-
}),
|
|
1738
|
+
}), V = {
|
|
1739
1739
|
stepper: "_stepper_1w3rz_1",
|
|
1740
1740
|
stepBtn: "_stepBtn_1w3rz_10",
|
|
1741
1741
|
stepDivider: "_stepDivider_1w3rz_27",
|
|
@@ -1754,7 +1754,7 @@ var It = [
|
|
|
1754
1754
|
"roll-out-down": "_roll-out-down_1w3rz_1",
|
|
1755
1755
|
rollInDown: "_rollInDown_1w3rz_133",
|
|
1756
1756
|
"roll-in-down": "_roll-in-down_1w3rz_1"
|
|
1757
|
-
},
|
|
1757
|
+
}, Kt = ({ value: e }) => {
|
|
1758
1758
|
let t = k.useRef(e), [n, r] = k.useState(null);
|
|
1759
1759
|
return e !== t.current && (r({
|
|
1760
1760
|
value: t.current,
|
|
@@ -1764,30 +1764,30 @@ var It = [
|
|
|
1764
1764
|
let e = setTimeout(() => r(null), 260);
|
|
1765
1765
|
return () => clearTimeout(e);
|
|
1766
1766
|
}, [n]), /* @__PURE__ */ M("span", {
|
|
1767
|
-
className:
|
|
1767
|
+
className: V.roll,
|
|
1768
1768
|
children: [n && /* @__PURE__ */ j("span", {
|
|
1769
|
-
className: [
|
|
1769
|
+
className: [V.rollNum, n.direction === "up" ? V.rollOutUp : V.rollOutDown].join(" "),
|
|
1770
1770
|
"aria-hidden": "true",
|
|
1771
1771
|
children: n.value
|
|
1772
1772
|
}, `out-${n.value}`), /* @__PURE__ */ j("span", {
|
|
1773
|
-
className: [
|
|
1773
|
+
className: [V.rollNum, n ? n.direction === "up" ? V.rollInUp : V.rollInDown : ""].filter(Boolean).join(" "),
|
|
1774
1774
|
onAnimationEnd: () => r(null),
|
|
1775
1775
|
children: e
|
|
1776
1776
|
}, `in-${e}`)]
|
|
1777
1777
|
});
|
|
1778
|
-
},
|
|
1778
|
+
}, qt = ({ quantity: e, onQuantityChange: t, min: n = 1, max: i, label: a = "Quantity", className: o }) => {
|
|
1779
1779
|
let s = e > n, c = i === void 0 || e < i, l = k.useRef(null), [u, d] = k.useState(!1), [p, m] = k.useState(String(e)), h = (e) => {
|
|
1780
1780
|
let t = e;
|
|
1781
1781
|
return n !== void 0 && (t = Math.max(n, t)), i !== void 0 && (t = Math.min(i, t)), t;
|
|
1782
1782
|
};
|
|
1783
1783
|
return /* @__PURE__ */ M("div", {
|
|
1784
|
-
className: [
|
|
1784
|
+
className: [V.stepper, o ?? ""].filter(Boolean).join(" "),
|
|
1785
1785
|
role: "group",
|
|
1786
1786
|
"aria-label": a,
|
|
1787
1787
|
children: [
|
|
1788
1788
|
/* @__PURE__ */ j("button", {
|
|
1789
1789
|
type: "button",
|
|
1790
|
-
className:
|
|
1790
|
+
className: V.stepBtn,
|
|
1791
1791
|
disabled: !s,
|
|
1792
1792
|
onClick: () => t?.(Math.max(n, e - 1)),
|
|
1793
1793
|
"aria-label": "Decrease quantity",
|
|
@@ -1797,17 +1797,17 @@ var It = [
|
|
|
1797
1797
|
})
|
|
1798
1798
|
}),
|
|
1799
1799
|
/* @__PURE__ */ j("span", {
|
|
1800
|
-
className:
|
|
1800
|
+
className: V.stepDivider,
|
|
1801
1801
|
"aria-hidden": "true"
|
|
1802
1802
|
}),
|
|
1803
1803
|
/* @__PURE__ */ M("span", {
|
|
1804
|
-
className:
|
|
1804
|
+
className: V.stepValue,
|
|
1805
1805
|
children: [/* @__PURE__ */ j("input", {
|
|
1806
1806
|
ref: l,
|
|
1807
1807
|
type: "text",
|
|
1808
1808
|
inputMode: "numeric",
|
|
1809
1809
|
size: Math.max((u ? p : String(e)).length, 1),
|
|
1810
|
-
className: [
|
|
1810
|
+
className: [V.stepInput, u ? "" : V.stepInputResting].filter(Boolean).join(" "),
|
|
1811
1811
|
value: u ? p : String(e),
|
|
1812
1812
|
"aria-label": a,
|
|
1813
1813
|
onFocus: (t) => {
|
|
@@ -1826,18 +1826,18 @@ var It = [
|
|
|
1826
1826
|
t.key === "Enter" && (t.preventDefault(), l.current?.blur()), t.key === "Escape" && (m(String(e)), l.current?.blur());
|
|
1827
1827
|
}
|
|
1828
1828
|
}), /* @__PURE__ */ j("span", {
|
|
1829
|
-
className: [
|
|
1829
|
+
className: [V.rollOverlay, u ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
|
|
1830
1830
|
"aria-hidden": "true",
|
|
1831
|
-
children: /* @__PURE__ */ j(
|
|
1831
|
+
children: /* @__PURE__ */ j(Kt, { value: e })
|
|
1832
1832
|
})]
|
|
1833
1833
|
}),
|
|
1834
1834
|
/* @__PURE__ */ j("span", {
|
|
1835
|
-
className:
|
|
1835
|
+
className: V.stepDivider,
|
|
1836
1836
|
"aria-hidden": "true"
|
|
1837
1837
|
}),
|
|
1838
1838
|
/* @__PURE__ */ j("button", {
|
|
1839
1839
|
type: "button",
|
|
1840
|
-
className:
|
|
1840
|
+
className: V.stepBtn,
|
|
1841
1841
|
disabled: !c,
|
|
1842
1842
|
onClick: () => t?.(i === void 0 ? e + 1 : Math.min(i, e + 1)),
|
|
1843
1843
|
"aria-label": "Increase quantity",
|
|
@@ -1848,7 +1848,7 @@ var It = [
|
|
|
1848
1848
|
})
|
|
1849
1849
|
]
|
|
1850
1850
|
});
|
|
1851
|
-
},
|
|
1851
|
+
}, Jt = {
|
|
1852
1852
|
item: "_item_15jww_1",
|
|
1853
1853
|
thumb: "_thumb_15jww_11",
|
|
1854
1854
|
info: "_info_15jww_19",
|
|
@@ -1859,31 +1859,31 @@ var It = [
|
|
|
1859
1859
|
priceRow: "_priceRow_15jww_67",
|
|
1860
1860
|
priceOriginal: "_priceOriginal_15jww_75",
|
|
1861
1861
|
priceSale: "_priceSale_15jww_80"
|
|
1862
|
-
},
|
|
1862
|
+
}, Yt = (e) => e.toLocaleString("en-US", {
|
|
1863
1863
|
style: "currency",
|
|
1864
1864
|
currency: "USD"
|
|
1865
|
-
}),
|
|
1865
|
+
}), Xt = ({ image: e, imageAlt: t, name: n, variant: i, price: a, compareAtPrice: o, quantity: s, onQuantityChange: c, minQuantity: l = 1, maxQuantity: u, onRemove: d, removeLabel: f = "Remove item", formatPrice: p = Yt, className: m }) => {
|
|
1866
1866
|
let h = o !== void 0;
|
|
1867
1867
|
return /* @__PURE__ */ M("div", {
|
|
1868
|
-
className: [
|
|
1868
|
+
className: [Jt.item, m ?? ""].filter(Boolean).join(" "),
|
|
1869
1869
|
children: [
|
|
1870
1870
|
/* @__PURE__ */ j("img", {
|
|
1871
1871
|
src: e,
|
|
1872
1872
|
alt: t ?? n,
|
|
1873
|
-
className:
|
|
1873
|
+
className: Jt.thumb
|
|
1874
1874
|
}),
|
|
1875
1875
|
/* @__PURE__ */ M("div", {
|
|
1876
|
-
className:
|
|
1876
|
+
className: Jt.info,
|
|
1877
1877
|
children: [
|
|
1878
1878
|
/* @__PURE__ */ j("p", {
|
|
1879
|
-
className:
|
|
1879
|
+
className: Jt.name,
|
|
1880
1880
|
children: n
|
|
1881
1881
|
}),
|
|
1882
1882
|
i && /* @__PURE__ */ j("p", {
|
|
1883
|
-
className:
|
|
1883
|
+
className: Jt.variant,
|
|
1884
1884
|
children: i
|
|
1885
1885
|
}),
|
|
1886
|
-
/* @__PURE__ */ j(
|
|
1886
|
+
/* @__PURE__ */ j(qt, {
|
|
1887
1887
|
quantity: s,
|
|
1888
1888
|
onQuantityChange: c,
|
|
1889
1889
|
min: l,
|
|
@@ -1893,18 +1893,18 @@ var It = [
|
|
|
1893
1893
|
]
|
|
1894
1894
|
}),
|
|
1895
1895
|
/* @__PURE__ */ M("div", {
|
|
1896
|
-
className:
|
|
1896
|
+
className: Jt.right,
|
|
1897
1897
|
children: [h ? /* @__PURE__ */ M("div", {
|
|
1898
|
-
className:
|
|
1898
|
+
className: Jt.priceRow,
|
|
1899
1899
|
children: [/* @__PURE__ */ j("span", {
|
|
1900
|
-
className:
|
|
1900
|
+
className: Jt.priceOriginal,
|
|
1901
1901
|
children: p(o)
|
|
1902
1902
|
}), /* @__PURE__ */ j("span", {
|
|
1903
|
-
className:
|
|
1903
|
+
className: Jt.priceSale,
|
|
1904
1904
|
children: p(a)
|
|
1905
1905
|
})]
|
|
1906
1906
|
}) : /* @__PURE__ */ j("p", {
|
|
1907
|
-
className:
|
|
1907
|
+
className: Jt.price,
|
|
1908
1908
|
children: p(a)
|
|
1909
1909
|
}), /* @__PURE__ */ j(Ve, {
|
|
1910
1910
|
icon: r,
|
|
@@ -1916,7 +1916,7 @@ var It = [
|
|
|
1916
1916
|
})
|
|
1917
1917
|
]
|
|
1918
1918
|
});
|
|
1919
|
-
},
|
|
1919
|
+
}, Zt = {
|
|
1920
1920
|
steps: "_steps_t53um_1",
|
|
1921
1921
|
step: "_step_t53um_1",
|
|
1922
1922
|
connector: "_connector_t53um_16",
|
|
@@ -1927,26 +1927,26 @@ var It = [
|
|
|
1927
1927
|
label: "_label_t53um_49",
|
|
1928
1928
|
labelActive: "_labelActive_t53um_56",
|
|
1929
1929
|
labelUpcoming: "_labelUpcoming_t53um_59"
|
|
1930
|
-
},
|
|
1930
|
+
}, Qt = [
|
|
1931
1931
|
"Cart",
|
|
1932
1932
|
"Shipping",
|
|
1933
1933
|
"Payment",
|
|
1934
1934
|
"Confirmation"
|
|
1935
|
-
],
|
|
1936
|
-
className: [
|
|
1935
|
+
], $t = ({ steps: e = Qt, currentStep: t, className: n }) => /* @__PURE__ */ j("div", {
|
|
1936
|
+
className: [Zt.steps, n ?? ""].filter(Boolean).join(" "),
|
|
1937
1937
|
role: "list",
|
|
1938
1938
|
children: e.map((n, r) => {
|
|
1939
1939
|
let i = r < t ? "completed" : r === t ? "active" : "upcoming", a = r === e.length - 1;
|
|
1940
1940
|
return /* @__PURE__ */ M(k.Fragment, { children: [/* @__PURE__ */ M("div", {
|
|
1941
|
-
className:
|
|
1941
|
+
className: Zt.step,
|
|
1942
1942
|
role: "listitem",
|
|
1943
1943
|
"aria-current": i === "active" ? "step" : void 0,
|
|
1944
1944
|
children: [/* @__PURE__ */ j("span", {
|
|
1945
1945
|
className: [
|
|
1946
|
-
|
|
1947
|
-
i === "completed" ?
|
|
1948
|
-
i === "active" ?
|
|
1949
|
-
i === "upcoming" ?
|
|
1946
|
+
Zt.circle,
|
|
1947
|
+
i === "completed" ? Zt.circleCompleted : "",
|
|
1948
|
+
i === "active" ? Zt.circleActive : "",
|
|
1949
|
+
i === "upcoming" ? Zt.circleUpcoming : ""
|
|
1950
1950
|
].filter(Boolean).join(" "),
|
|
1951
1951
|
"aria-hidden": "true",
|
|
1952
1952
|
children: /* @__PURE__ */ j(x, {
|
|
@@ -1955,27 +1955,27 @@ var It = [
|
|
|
1955
1955
|
})
|
|
1956
1956
|
}), /* @__PURE__ */ j("span", {
|
|
1957
1957
|
className: [
|
|
1958
|
-
|
|
1959
|
-
i === "active" ?
|
|
1960
|
-
i === "upcoming" ?
|
|
1958
|
+
Zt.label,
|
|
1959
|
+
i === "active" ? Zt.labelActive : "",
|
|
1960
|
+
i === "upcoming" ? Zt.labelUpcoming : ""
|
|
1961
1961
|
].filter(Boolean).join(" "),
|
|
1962
1962
|
children: n
|
|
1963
1963
|
})]
|
|
1964
1964
|
}), !a && /* @__PURE__ */ j("span", {
|
|
1965
|
-
className:
|
|
1965
|
+
className: Zt.connector,
|
|
1966
1966
|
"aria-hidden": "true"
|
|
1967
1967
|
})] }, n);
|
|
1968
1968
|
})
|
|
1969
|
-
}),
|
|
1969
|
+
}), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
|
|
1970
1970
|
let r = (e) => {
|
|
1971
1971
|
let t = e / 255;
|
|
1972
1972
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
1973
1973
|
};
|
|
1974
1974
|
return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
|
|
1975
|
-
},
|
|
1975
|
+
}, rn = (e, t) => {
|
|
1976
1976
|
let n = Math.max(e, t), r = Math.min(e, t);
|
|
1977
1977
|
return (n + .05) / (r + .05);
|
|
1978
|
-
},
|
|
1978
|
+
}, an = (e) => {
|
|
1979
1979
|
let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
|
|
1980
1980
|
if (n) {
|
|
1981
1981
|
let e = n[1];
|
|
@@ -1991,31 +1991,31 @@ var It = [
|
|
|
1991
1991
|
Number(r[2]),
|
|
1992
1992
|
Number(r[3])
|
|
1993
1993
|
] : null;
|
|
1994
|
-
},
|
|
1995
|
-
let r =
|
|
1996
|
-
return
|
|
1997
|
-
},
|
|
1998
|
-
let t =
|
|
1999
|
-
if (t) return
|
|
2000
|
-
if (typeof document > "u") return
|
|
2001
|
-
|
|
2002
|
-
let n =
|
|
2003
|
-
if (!n) return
|
|
1994
|
+
}, on = (e, t, n) => {
|
|
1995
|
+
let r = nn(e, t, n), i = rn(r, nn(20, 20, 20));
|
|
1996
|
+
return rn(r, nn(250, 250, 249)) >= i ? en : tn;
|
|
1997
|
+
}, sn = null, cn = (e) => {
|
|
1998
|
+
let t = an(e);
|
|
1999
|
+
if (t) return on(...t);
|
|
2000
|
+
if (typeof document > "u") return en;
|
|
2001
|
+
sn ??= document.createElement("canvas"), sn.width = 1, sn.height = 1;
|
|
2002
|
+
let n = sn.getContext("2d", { willReadFrequently: !0 });
|
|
2003
|
+
if (!n) return en;
|
|
2004
2004
|
n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
|
|
2005
2005
|
let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
|
|
2006
|
-
return
|
|
2007
|
-
},
|
|
2006
|
+
return on(r, i, a);
|
|
2007
|
+
}, ln = {
|
|
2008
2008
|
swatch: "_swatch_1ykgu_1",
|
|
2009
2009
|
circle: "_circle_1ykgu_24",
|
|
2010
2010
|
circleUnavailable: "_circleUnavailable_1ykgu_34",
|
|
2011
2011
|
ring: "_ring_1ykgu_41",
|
|
2012
2012
|
check: "_check_1ykgu_57",
|
|
2013
2013
|
strike: "_strike_1ykgu_70"
|
|
2014
|
-
},
|
|
2015
|
-
let o = k.useMemo(() =>
|
|
2014
|
+
}, un = ({ color: e, label: t, selected: n = !1, available: r = !0, onSelect: i, className: a }) => {
|
|
2015
|
+
let o = k.useMemo(() => cn(e), [e]);
|
|
2016
2016
|
return /* @__PURE__ */ M("button", {
|
|
2017
2017
|
type: "button",
|
|
2018
|
-
className: [
|
|
2018
|
+
className: [ln.swatch, a ?? ""].filter(Boolean).join(" "),
|
|
2019
2019
|
style: { "--swatch-color": e },
|
|
2020
2020
|
disabled: !r,
|
|
2021
2021
|
"aria-pressed": r ? n : void 0,
|
|
@@ -2023,49 +2023,49 @@ var It = [
|
|
|
2023
2023
|
onClick: i,
|
|
2024
2024
|
children: [
|
|
2025
2025
|
n && r && /* @__PURE__ */ j("span", {
|
|
2026
|
-
className:
|
|
2026
|
+
className: ln.ring,
|
|
2027
2027
|
"aria-hidden": "true"
|
|
2028
2028
|
}),
|
|
2029
2029
|
/* @__PURE__ */ j("span", {
|
|
2030
|
-
className: [
|
|
2030
|
+
className: [ln.circle, r ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
|
|
2031
2031
|
"aria-hidden": "true"
|
|
2032
2032
|
}),
|
|
2033
2033
|
n && r && /* @__PURE__ */ j(x, {
|
|
2034
2034
|
size: 14,
|
|
2035
2035
|
strokeWidth: N(14),
|
|
2036
|
-
className:
|
|
2036
|
+
className: ln.check,
|
|
2037
2037
|
style: { color: o },
|
|
2038
2038
|
"aria-hidden": "true"
|
|
2039
2039
|
}),
|
|
2040
2040
|
!r && /* @__PURE__ */ j("span", {
|
|
2041
|
-
className:
|
|
2041
|
+
className: ln.strike,
|
|
2042
2042
|
style: { background: o },
|
|
2043
2043
|
"aria-hidden": "true"
|
|
2044
2044
|
})
|
|
2045
2045
|
]
|
|
2046
2046
|
});
|
|
2047
|
-
},
|
|
2047
|
+
}, dn = {
|
|
2048
2048
|
row: "_row_1r4ef_1",
|
|
2049
2049
|
original: "_original_1r4ef_8",
|
|
2050
2050
|
price: "_price_1r4ef_17",
|
|
2051
2051
|
priceSale: "_priceSale_1r4ef_24"
|
|
2052
|
-
},
|
|
2052
|
+
}, fn = (e) => e.toLocaleString("en-US", {
|
|
2053
2053
|
style: "currency",
|
|
2054
2054
|
currency: "USD"
|
|
2055
|
-
}),
|
|
2055
|
+
}), pn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = fn, className: i }) => {
|
|
2056
2056
|
let a = t !== void 0, o = a ? Math.ceil((1 - e / t) * 100) : 0;
|
|
2057
2057
|
return /* @__PURE__ */ M("div", {
|
|
2058
|
-
className: [
|
|
2058
|
+
className: [dn.row, i ?? ""].filter(Boolean).join(" "),
|
|
2059
2059
|
children: [
|
|
2060
2060
|
a && /* @__PURE__ */ j("span", {
|
|
2061
|
-
className:
|
|
2061
|
+
className: dn.original,
|
|
2062
2062
|
children: r(t)
|
|
2063
2063
|
}),
|
|
2064
2064
|
/* @__PURE__ */ j("span", {
|
|
2065
|
-
className: [
|
|
2065
|
+
className: [dn.price, a ? dn.priceSale : ""].filter(Boolean).join(" "),
|
|
2066
2066
|
children: r(e)
|
|
2067
2067
|
}),
|
|
2068
|
-
a && n && /* @__PURE__ */ M(
|
|
2068
|
+
a && n && /* @__PURE__ */ M(Gt, {
|
|
2069
2069
|
variant: "danger",
|
|
2070
2070
|
emphasis: "solid",
|
|
2071
2071
|
children: [
|
|
@@ -2076,17 +2076,17 @@ var It = [
|
|
|
2076
2076
|
})
|
|
2077
2077
|
]
|
|
2078
2078
|
});
|
|
2079
|
-
},
|
|
2079
|
+
}, mn = {
|
|
2080
2080
|
button: "_button_58k4v_1",
|
|
2081
2081
|
icon: "_icon_58k4v_24",
|
|
2082
2082
|
iconSaved: "_iconSaved_58k4v_27",
|
|
2083
2083
|
bounce: "_bounce_58k4v_40",
|
|
2084
2084
|
"wishlist-bounce": "_wishlist-bounce_58k4v_1"
|
|
2085
|
-
},
|
|
2085
|
+
}, hn = ({ saved: e = !1, onToggle: n, label: r = "item", className: i }) => {
|
|
2086
2086
|
let [a, o] = k.useState(!1);
|
|
2087
2087
|
return /* @__PURE__ */ j("button", {
|
|
2088
2088
|
type: "button",
|
|
2089
|
-
className: [
|
|
2089
|
+
className: [mn.button, i ?? ""].filter(Boolean).join(" "),
|
|
2090
2090
|
"aria-pressed": e,
|
|
2091
2091
|
"aria-label": e ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
|
|
2092
2092
|
onClick: () => {
|
|
@@ -2095,12 +2095,12 @@ var It = [
|
|
|
2095
2095
|
children: /* @__PURE__ */ j(t, {
|
|
2096
2096
|
size: 16,
|
|
2097
2097
|
strokeWidth: N(16),
|
|
2098
|
-
className: [e ?
|
|
2098
|
+
className: [e ? mn.iconSaved : mn.icon, a ? mn.bounce : ""].filter(Boolean).join(" "),
|
|
2099
2099
|
fill: e ? "currentColor" : "none",
|
|
2100
2100
|
onAnimationEnd: () => o(!1)
|
|
2101
2101
|
})
|
|
2102
2102
|
});
|
|
2103
|
-
},
|
|
2103
|
+
}, H = {
|
|
2104
2104
|
card: "_card_r8iyr_1",
|
|
2105
2105
|
imageWrap: "_imageWrap_r8iyr_16",
|
|
2106
2106
|
image: "_image_r8iyr_16",
|
|
@@ -2120,81 +2120,81 @@ var It = [
|
|
|
2120
2120
|
description: "_description_r8iyr_125",
|
|
2121
2121
|
swatches: "_swatches_r8iyr_138",
|
|
2122
2122
|
addButton: "_addButton_r8iyr_146"
|
|
2123
|
-
},
|
|
2123
|
+
}, gn = (e) => e.toLocaleString("en-US", {
|
|
2124
2124
|
style: "currency",
|
|
2125
2125
|
currency: "USD"
|
|
2126
|
-
}),
|
|
2126
|
+
}), _n = ({ image: e, imageAlt: t, name: n, description: r, price: i, compareAtPrice: a, rating: o, reviewCount: s, colors: c = [], onColorSelect: l, inStock: u = !0, wishlisted: d = !1, onWishlistToggle: f, onAddItem: p, addItemLabel: m = "Add Item", formatPrice: h = gn, className: g }) => {
|
|
2127
2127
|
let _ = a !== void 0, v = _ ? Math.ceil((1 - i / a) * 100) : 0, y = o === void 0 ? 0 : Math.round(o);
|
|
2128
2128
|
return /* @__PURE__ */ M("div", {
|
|
2129
|
-
className: [
|
|
2129
|
+
className: [H.card, g ?? ""].filter(Boolean).join(" "),
|
|
2130
2130
|
children: [/* @__PURE__ */ M("div", {
|
|
2131
|
-
className:
|
|
2131
|
+
className: H.imageWrap,
|
|
2132
2132
|
children: [
|
|
2133
2133
|
/* @__PURE__ */ j("img", {
|
|
2134
2134
|
src: e,
|
|
2135
2135
|
alt: t ?? n,
|
|
2136
|
-
className: [
|
|
2136
|
+
className: [H.image, u ? "" : H.imageDimmed].filter(Boolean).join(" ")
|
|
2137
2137
|
}),
|
|
2138
|
-
_ && u && /* @__PURE__ */ M(
|
|
2138
|
+
_ && u && /* @__PURE__ */ M(Gt, {
|
|
2139
2139
|
variant: "danger",
|
|
2140
2140
|
emphasis: "solid",
|
|
2141
|
-
className:
|
|
2141
|
+
className: H.saleBadge,
|
|
2142
2142
|
children: [
|
|
2143
2143
|
"-",
|
|
2144
2144
|
v,
|
|
2145
2145
|
"%"
|
|
2146
2146
|
]
|
|
2147
2147
|
}),
|
|
2148
|
-
u && /* @__PURE__ */ j(
|
|
2148
|
+
u && /* @__PURE__ */ j(hn, {
|
|
2149
2149
|
saved: d,
|
|
2150
2150
|
label: n,
|
|
2151
|
-
className:
|
|
2151
|
+
className: H.wishlistBtn,
|
|
2152
2152
|
onToggle: f
|
|
2153
2153
|
}),
|
|
2154
2154
|
!u && /* @__PURE__ */ j("span", {
|
|
2155
|
-
className:
|
|
2155
|
+
className: H.outOfStockLabel,
|
|
2156
2156
|
children: "Out of stock"
|
|
2157
2157
|
})
|
|
2158
2158
|
]
|
|
2159
2159
|
}), /* @__PURE__ */ M("div", {
|
|
2160
|
-
className:
|
|
2160
|
+
className: H.body,
|
|
2161
2161
|
children: [
|
|
2162
2162
|
o !== void 0 && /* @__PURE__ */ j("div", {
|
|
2163
|
-
className:
|
|
2163
|
+
className: H.rating,
|
|
2164
2164
|
role: "img",
|
|
2165
2165
|
"aria-label": `Rated ${o} out of 5${s ? ` (${s} reviews)` : ""}`,
|
|
2166
2166
|
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ j(re, {
|
|
2167
2167
|
size: 16,
|
|
2168
2168
|
strokeWidth: N(16),
|
|
2169
|
-
className: t < y ?
|
|
2169
|
+
className: t < y ? H.starFilled : H.starEmpty,
|
|
2170
2170
|
fill: t < y ? "currentColor" : "none"
|
|
2171
2171
|
}, t))
|
|
2172
2172
|
}),
|
|
2173
2173
|
/* @__PURE__ */ M("div", {
|
|
2174
|
-
className:
|
|
2174
|
+
className: H.titleRow,
|
|
2175
2175
|
children: [/* @__PURE__ */ j("p", {
|
|
2176
|
-
className:
|
|
2176
|
+
className: H.name,
|
|
2177
2177
|
children: n
|
|
2178
2178
|
}), /* @__PURE__ */ M("div", {
|
|
2179
|
-
className:
|
|
2179
|
+
className: H.priceRow,
|
|
2180
2180
|
children: [_ && /* @__PURE__ */ j("span", {
|
|
2181
|
-
className:
|
|
2181
|
+
className: H.priceOriginal,
|
|
2182
2182
|
children: h(a)
|
|
2183
2183
|
}), /* @__PURE__ */ j("span", {
|
|
2184
|
-
className:
|
|
2184
|
+
className: H.price,
|
|
2185
2185
|
children: h(i)
|
|
2186
2186
|
})]
|
|
2187
2187
|
})]
|
|
2188
2188
|
}),
|
|
2189
2189
|
r && /* @__PURE__ */ j("p", {
|
|
2190
|
-
className:
|
|
2190
|
+
className: H.description,
|
|
2191
2191
|
children: r
|
|
2192
2192
|
}),
|
|
2193
2193
|
c.length > 0 && /* @__PURE__ */ j("div", {
|
|
2194
|
-
className:
|
|
2194
|
+
className: H.swatches,
|
|
2195
2195
|
role: "group",
|
|
2196
2196
|
"aria-label": "Color",
|
|
2197
|
-
children: c.map((e) => /* @__PURE__ */ j(
|
|
2197
|
+
children: c.map((e) => /* @__PURE__ */ j(un, {
|
|
2198
2198
|
...e,
|
|
2199
2199
|
onSelect: () => l?.(e.id ?? e.label)
|
|
2200
2200
|
}, e.id ?? e.label))
|
|
@@ -2203,14 +2203,14 @@ var It = [
|
|
|
2203
2203
|
variant: "primary",
|
|
2204
2204
|
size: "md",
|
|
2205
2205
|
disabled: !u,
|
|
2206
|
-
className:
|
|
2206
|
+
className: H.addButton,
|
|
2207
2207
|
onClick: p,
|
|
2208
2208
|
children: u ? m : "Out of stock"
|
|
2209
2209
|
})
|
|
2210
2210
|
]
|
|
2211
2211
|
})]
|
|
2212
2212
|
});
|
|
2213
|
-
},
|
|
2213
|
+
}, U = {
|
|
2214
2214
|
gallery: "_gallery_1mrk8_1",
|
|
2215
2215
|
galleryBottom: "_galleryBottom_1mrk8_5",
|
|
2216
2216
|
galleryLeft: "_galleryLeft_1mrk8_10",
|
|
@@ -2225,11 +2225,11 @@ var It = [
|
|
|
2225
2225
|
thumbLeft: "_thumbLeft_1mrk8_70",
|
|
2226
2226
|
thumbActive: "_thumbActive_1mrk8_75",
|
|
2227
2227
|
thumbImage: "_thumbImage_1mrk8_79"
|
|
2228
|
-
},
|
|
2228
|
+
}, vn = ({ images: e, thumbsPosition: t = "bottom", activeIndex: n, defaultActiveIndex: r = 0, onActiveIndexChange: i, className: a }) => {
|
|
2229
2229
|
let o = n !== void 0, [s, c] = k.useState(r), l = o ? n : s, u = (e) => {
|
|
2230
2230
|
o || c(e), i?.(e);
|
|
2231
2231
|
}, d = e[l] ?? e[0], f = t === "left", p = /* @__PURE__ */ j("div", {
|
|
2232
|
-
className: [
|
|
2232
|
+
className: [U.thumbs, f ? U.thumbsLeft : U.thumbsBottom].filter(Boolean).join(" "),
|
|
2233
2233
|
role: "tablist",
|
|
2234
2234
|
"aria-label": "Product images",
|
|
2235
2235
|
children: e.map((e, t) => /* @__PURE__ */ j("button", {
|
|
@@ -2238,56 +2238,56 @@ var It = [
|
|
|
2238
2238
|
"aria-selected": t === l,
|
|
2239
2239
|
"aria-label": e.alt ?? `Image ${t + 1}`,
|
|
2240
2240
|
className: [
|
|
2241
|
-
|
|
2242
|
-
f ?
|
|
2243
|
-
t === l ?
|
|
2241
|
+
U.thumb,
|
|
2242
|
+
f ? U.thumbLeft : U.thumbBottom,
|
|
2243
|
+
t === l ? U.thumbActive : ""
|
|
2244
2244
|
].filter(Boolean).join(" "),
|
|
2245
2245
|
onClick: () => u(t),
|
|
2246
2246
|
children: /* @__PURE__ */ j("img", {
|
|
2247
2247
|
src: e.src,
|
|
2248
2248
|
alt: "",
|
|
2249
|
-
className:
|
|
2249
|
+
className: U.thumbImage
|
|
2250
2250
|
})
|
|
2251
2251
|
}, e.src + t))
|
|
2252
2252
|
});
|
|
2253
2253
|
return /* @__PURE__ */ M("div", {
|
|
2254
2254
|
className: [
|
|
2255
|
-
|
|
2256
|
-
f ?
|
|
2255
|
+
U.gallery,
|
|
2256
|
+
f ? U.galleryLeft : U.galleryBottom,
|
|
2257
2257
|
a ?? ""
|
|
2258
2258
|
].filter(Boolean).join(" "),
|
|
2259
2259
|
children: [
|
|
2260
2260
|
!f && d && /* @__PURE__ */ j("div", {
|
|
2261
|
-
className:
|
|
2261
|
+
className: U.mainBottom,
|
|
2262
2262
|
children: /* @__PURE__ */ j("img", {
|
|
2263
2263
|
src: d.src,
|
|
2264
2264
|
alt: d.alt ?? "",
|
|
2265
|
-
className:
|
|
2265
|
+
className: U.mainImage
|
|
2266
2266
|
})
|
|
2267
2267
|
}),
|
|
2268
2268
|
p,
|
|
2269
2269
|
f && d && /* @__PURE__ */ j("div", {
|
|
2270
|
-
className:
|
|
2270
|
+
className: U.mainLeft,
|
|
2271
2271
|
children: /* @__PURE__ */ j("img", {
|
|
2272
2272
|
src: d.src,
|
|
2273
2273
|
alt: d.alt ?? "",
|
|
2274
|
-
className:
|
|
2274
|
+
className: U.mainImage
|
|
2275
2275
|
})
|
|
2276
2276
|
})
|
|
2277
2277
|
]
|
|
2278
2278
|
});
|
|
2279
|
-
},
|
|
2279
|
+
}, yn = {
|
|
2280
2280
|
button: "_button_1vgn5_1",
|
|
2281
2281
|
unselected: "_unselected_1vgn5_23",
|
|
2282
2282
|
selected: "_selected_1vgn5_32",
|
|
2283
2283
|
unavailable: "_unavailable_1vgn5_37",
|
|
2284
2284
|
label: "_label_1vgn5_44",
|
|
2285
2285
|
strike: "_strike_1vgn5_55"
|
|
2286
|
-
},
|
|
2286
|
+
}, bn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: i }) => /* @__PURE__ */ M("button", {
|
|
2287
2287
|
type: "button",
|
|
2288
2288
|
className: [
|
|
2289
|
-
|
|
2290
|
-
n ? t ?
|
|
2289
|
+
yn.button,
|
|
2290
|
+
n ? t ? yn.selected : yn.unselected : yn.unavailable,
|
|
2291
2291
|
i ?? ""
|
|
2292
2292
|
].filter(Boolean).join(" "),
|
|
2293
2293
|
disabled: !n,
|
|
@@ -2295,13 +2295,13 @@ var It = [
|
|
|
2295
2295
|
"aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
|
|
2296
2296
|
onClick: r,
|
|
2297
2297
|
children: [/* @__PURE__ */ j("span", {
|
|
2298
|
-
className:
|
|
2298
|
+
className: yn.label,
|
|
2299
2299
|
children: e
|
|
2300
2300
|
}), !n && /* @__PURE__ */ j("span", {
|
|
2301
|
-
className:
|
|
2301
|
+
className: yn.strike,
|
|
2302
2302
|
"aria-hidden": "true"
|
|
2303
2303
|
})]
|
|
2304
|
-
}),
|
|
2304
|
+
}), xn = {
|
|
2305
2305
|
row: "_row_1snsi_1",
|
|
2306
2306
|
rowVertical: "_rowVertical_1snsi_8",
|
|
2307
2307
|
stars: "_stars_1snsi_13",
|
|
@@ -2310,40 +2310,40 @@ var It = [
|
|
|
2310
2310
|
label: "_label_1snsi_29",
|
|
2311
2311
|
value: "_value_1snsi_38",
|
|
2312
2312
|
count: "_count_1snsi_43"
|
|
2313
|
-
},
|
|
2313
|
+
}, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: i = Sn, className: a }) => {
|
|
2314
2314
|
let o = Math.max(0, Math.min(5, e)), s = Math.round(o * 2) / 2, c = Math.floor(s), l = s - c === .5, u = 5 - c - !!l, f = /* @__PURE__ */ M("div", {
|
|
2315
|
-
className:
|
|
2315
|
+
className: xn.stars,
|
|
2316
2316
|
role: "img",
|
|
2317
2317
|
"aria-label": `${o} out of 5 stars`,
|
|
2318
2318
|
children: [
|
|
2319
2319
|
Array.from({ length: c }, (e, t) => /* @__PURE__ */ j(re, {
|
|
2320
2320
|
size: 24,
|
|
2321
2321
|
strokeWidth: N(24),
|
|
2322
|
-
className:
|
|
2322
|
+
className: xn.starFull,
|
|
2323
2323
|
fill: "currentColor",
|
|
2324
2324
|
"aria-hidden": "true"
|
|
2325
2325
|
}, `full-${t}`)),
|
|
2326
2326
|
l && /* @__PURE__ */ j(d, {
|
|
2327
2327
|
size: 24,
|
|
2328
2328
|
strokeWidth: N(24),
|
|
2329
|
-
className:
|
|
2329
|
+
className: xn.starFull,
|
|
2330
2330
|
fill: "currentColor",
|
|
2331
2331
|
"aria-hidden": "true"
|
|
2332
2332
|
}),
|
|
2333
2333
|
Array.from({ length: u }, (e, t) => /* @__PURE__ */ j(re, {
|
|
2334
2334
|
size: 24,
|
|
2335
2335
|
strokeWidth: N(24),
|
|
2336
|
-
className:
|
|
2336
|
+
className: xn.starEmpty,
|
|
2337
2337
|
"aria-hidden": "true"
|
|
2338
2338
|
}, `empty-${t}`))
|
|
2339
2339
|
]
|
|
2340
2340
|
}), p = n && /* @__PURE__ */ M("div", {
|
|
2341
|
-
className:
|
|
2341
|
+
className: xn.label,
|
|
2342
2342
|
children: [/* @__PURE__ */ j("span", {
|
|
2343
|
-
className:
|
|
2343
|
+
className: xn.value,
|
|
2344
2344
|
children: o.toFixed(1)
|
|
2345
2345
|
}), t !== void 0 && /* @__PURE__ */ M("span", {
|
|
2346
|
-
className:
|
|
2346
|
+
className: xn.count,
|
|
2347
2347
|
children: [
|
|
2348
2348
|
"(",
|
|
2349
2349
|
i(t),
|
|
@@ -2351,8 +2351,8 @@ var It = [
|
|
|
2351
2351
|
]
|
|
2352
2352
|
})]
|
|
2353
2353
|
}), m = [
|
|
2354
|
-
|
|
2355
|
-
r === "vertical" ?
|
|
2354
|
+
xn.row,
|
|
2355
|
+
r === "vertical" ? xn.rowVertical : "",
|
|
2356
2356
|
a ?? ""
|
|
2357
2357
|
].filter(Boolean).join(" ");
|
|
2358
2358
|
return r === "horizontal-reverse" ? /* @__PURE__ */ M("div", {
|
|
@@ -2362,15 +2362,15 @@ var It = [
|
|
|
2362
2362
|
className: m,
|
|
2363
2363
|
children: [f, p]
|
|
2364
2364
|
});
|
|
2365
|
-
},
|
|
2365
|
+
}, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
|
|
2366
2366
|
let i = e <= 0, a = !i && e <= t, o = i ? "danger" : a ? "warning" : "success", s = i ? "Out of stock" : a ? `Only ${e} left` : "In stock";
|
|
2367
|
-
return /* @__PURE__ */ j(
|
|
2367
|
+
return /* @__PURE__ */ j(Gt, {
|
|
2368
2368
|
variant: o,
|
|
2369
2369
|
emphasis: "subtle",
|
|
2370
2370
|
className: r,
|
|
2371
2371
|
children: n ?? s
|
|
2372
2372
|
});
|
|
2373
|
-
},
|
|
2373
|
+
}, W = {
|
|
2374
2374
|
card: "_card_1w9hp_1",
|
|
2375
2375
|
cardDefault: "_cardDefault_1w9hp_8",
|
|
2376
2376
|
imageDefault: "_imageDefault_1w9hp_19",
|
|
@@ -2385,55 +2385,55 @@ var It = [
|
|
|
2385
2385
|
excerpt: "_excerpt_1w9hp_114",
|
|
2386
2386
|
author: "_author_1w9hp_123",
|
|
2387
2387
|
authorText: "_authorText_1w9hp_130"
|
|
2388
|
-
},
|
|
2388
|
+
}, Tn = ({ image: e, imageAlt: t, category: n, readTime: r, title: i, excerpt: a, author: o, layout: s = "default", className: c }) => {
|
|
2389
2389
|
let l = s === "horizontal";
|
|
2390
2390
|
return /* @__PURE__ */ M("div", {
|
|
2391
2391
|
className: [
|
|
2392
|
-
|
|
2393
|
-
l ?
|
|
2392
|
+
W.card,
|
|
2393
|
+
l ? W.cardHorizontal : W.cardDefault,
|
|
2394
2394
|
c ?? ""
|
|
2395
2395
|
].filter(Boolean).join(" "),
|
|
2396
2396
|
children: [l ? /* @__PURE__ */ j("span", {
|
|
2397
|
-
className:
|
|
2397
|
+
className: W.imageWrapHorizontal,
|
|
2398
2398
|
children: /* @__PURE__ */ j("img", {
|
|
2399
2399
|
src: e,
|
|
2400
2400
|
alt: t ?? "",
|
|
2401
|
-
className:
|
|
2401
|
+
className: W.image
|
|
2402
2402
|
})
|
|
2403
2403
|
}) : /* @__PURE__ */ j("img", {
|
|
2404
2404
|
src: e,
|
|
2405
2405
|
alt: t ?? "",
|
|
2406
|
-
className:
|
|
2406
|
+
className: W.imageDefault
|
|
2407
2407
|
}), /* @__PURE__ */ M("div", {
|
|
2408
|
-
className: l ?
|
|
2408
|
+
className: l ? W.bodyHorizontal : W.bodyDefault,
|
|
2409
2409
|
children: [
|
|
2410
2410
|
/* @__PURE__ */ M("div", {
|
|
2411
|
-
className:
|
|
2412
|
-
children: [/* @__PURE__ */ j(
|
|
2411
|
+
className: W.metaRow,
|
|
2412
|
+
children: [/* @__PURE__ */ j(Gt, {
|
|
2413
2413
|
variant: "accent",
|
|
2414
2414
|
emphasis: "subtle",
|
|
2415
2415
|
children: n
|
|
2416
2416
|
}), /* @__PURE__ */ j("span", {
|
|
2417
|
-
className:
|
|
2417
|
+
className: W.readTime,
|
|
2418
2418
|
children: r
|
|
2419
2419
|
})]
|
|
2420
2420
|
}),
|
|
2421
2421
|
/* @__PURE__ */ j("p", {
|
|
2422
|
-
className:
|
|
2422
|
+
className: W.title,
|
|
2423
2423
|
children: i
|
|
2424
2424
|
}),
|
|
2425
2425
|
/* @__PURE__ */ j("p", {
|
|
2426
|
-
className:
|
|
2426
|
+
className: W.excerpt,
|
|
2427
2427
|
children: a
|
|
2428
2428
|
}),
|
|
2429
2429
|
/* @__PURE__ */ M("div", {
|
|
2430
|
-
className:
|
|
2430
|
+
className: W.author,
|
|
2431
2431
|
children: [/* @__PURE__ */ j(Me, {
|
|
2432
2432
|
size: "sm",
|
|
2433
2433
|
src: o.avatarSrc,
|
|
2434
2434
|
alt: o.avatarAlt ?? o.name
|
|
2435
2435
|
}), /* @__PURE__ */ M("p", {
|
|
2436
|
-
className:
|
|
2436
|
+
className: W.authorText,
|
|
2437
2437
|
children: [
|
|
2438
2438
|
o.name,
|
|
2439
2439
|
" · ",
|
|
@@ -2444,7 +2444,7 @@ var It = [
|
|
|
2444
2444
|
]
|
|
2445
2445
|
})]
|
|
2446
2446
|
});
|
|
2447
|
-
},
|
|
2447
|
+
}, G = {
|
|
2448
2448
|
frame: "_frame_a9ah9_4",
|
|
2449
2449
|
frameHorizontal: "_frameHorizontal_a9ah9_5",
|
|
2450
2450
|
frameVertical: "_frameVertical_a9ah9_6",
|
|
@@ -2459,47 +2459,47 @@ var It = [
|
|
|
2459
2459
|
footer: "_footer_a9ah9_91",
|
|
2460
2460
|
author: "_author_a9ah9_99",
|
|
2461
2461
|
authorText: "_authorText_a9ah9_106"
|
|
2462
|
-
},
|
|
2462
|
+
}, En = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: i, author: a, ctaLabel: o = "Read article", onCtaClick: s, orientation: c = "horizontal", className: l }) => {
|
|
2463
2463
|
let u = c === "vertical";
|
|
2464
2464
|
return /* @__PURE__ */ j("div", {
|
|
2465
2465
|
className: [
|
|
2466
|
-
|
|
2467
|
-
u ?
|
|
2466
|
+
G.frame,
|
|
2467
|
+
u ? G.frameVertical : G.frameHorizontal,
|
|
2468
2468
|
l ?? ""
|
|
2469
2469
|
].filter(Boolean).join(" "),
|
|
2470
2470
|
children: /* @__PURE__ */ M("div", {
|
|
2471
|
-
className: [
|
|
2471
|
+
className: [G.card, u ? G.cardVertical : G.cardHorizontal].join(" "),
|
|
2472
2472
|
children: [/* @__PURE__ */ j("img", {
|
|
2473
2473
|
src: e,
|
|
2474
2474
|
alt: t ?? "",
|
|
2475
|
-
className:
|
|
2475
|
+
className: G.image
|
|
2476
2476
|
}), /* @__PURE__ */ M("div", {
|
|
2477
|
-
className: u ?
|
|
2477
|
+
className: u ? G.bodyVertical : G.bodyHorizontal,
|
|
2478
2478
|
children: [
|
|
2479
|
-
/* @__PURE__ */ j(
|
|
2479
|
+
/* @__PURE__ */ j(Gt, {
|
|
2480
2480
|
variant: "accent",
|
|
2481
2481
|
emphasis: "subtle",
|
|
2482
2482
|
children: n
|
|
2483
2483
|
}),
|
|
2484
2484
|
/* @__PURE__ */ j("p", {
|
|
2485
|
-
className:
|
|
2485
|
+
className: G.title,
|
|
2486
2486
|
children: r
|
|
2487
2487
|
}),
|
|
2488
2488
|
/* @__PURE__ */ j("p", {
|
|
2489
|
-
className:
|
|
2489
|
+
className: G.excerpt,
|
|
2490
2490
|
children: i
|
|
2491
2491
|
}),
|
|
2492
2492
|
/* @__PURE__ */ M("div", {
|
|
2493
|
-
className:
|
|
2493
|
+
className: G.footer,
|
|
2494
2494
|
children: [/* @__PURE__ */ M("div", {
|
|
2495
|
-
className:
|
|
2495
|
+
className: G.author,
|
|
2496
2496
|
children: [/* @__PURE__ */ j(Me, {
|
|
2497
2497
|
size: "md",
|
|
2498
2498
|
src: a.avatarSrc,
|
|
2499
2499
|
alt: a.avatarAlt ?? a.name,
|
|
2500
2500
|
initials: a.initials
|
|
2501
2501
|
}), /* @__PURE__ */ M("p", {
|
|
2502
|
-
className:
|
|
2502
|
+
className: G.authorText,
|
|
2503
2503
|
children: [
|
|
2504
2504
|
a.name,
|
|
2505
2505
|
" · ",
|
|
@@ -2517,7 +2517,7 @@ var It = [
|
|
|
2517
2517
|
})]
|
|
2518
2518
|
})
|
|
2519
2519
|
});
|
|
2520
|
-
},
|
|
2520
|
+
}, Dn = {
|
|
2521
2521
|
chip: "_chip_scl8l_1",
|
|
2522
2522
|
"chip--sm": "_chip--sm_scl8l_11",
|
|
2523
2523
|
"chip--md": "_chip--md_scl8l_17",
|
|
@@ -2526,26 +2526,26 @@ var It = [
|
|
|
2526
2526
|
"chip--outline": "_chip--outline_scl8l_35",
|
|
2527
2527
|
"chip--solid": "_chip--solid_scl8l_39",
|
|
2528
2528
|
"chip--subtle": "_chip--subtle_scl8l_43"
|
|
2529
|
-
},
|
|
2529
|
+
}, On = {
|
|
2530
2530
|
sm: 16,
|
|
2531
2531
|
md: 20,
|
|
2532
2532
|
lg: 24
|
|
2533
|
-
},
|
|
2534
|
-
let i =
|
|
2533
|
+
}, kn = ({ icon: e, size: t = "md", variant: n = "light", className: r }) => {
|
|
2534
|
+
let i = On[t], a = k.isValidElement(e) ? k.cloneElement(e, {
|
|
2535
2535
|
size: i,
|
|
2536
2536
|
strokeWidth: N(i)
|
|
2537
2537
|
}) : e;
|
|
2538
2538
|
return /* @__PURE__ */ j("div", {
|
|
2539
2539
|
className: [
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2540
|
+
Dn.chip,
|
|
2541
|
+
Dn[`chip--${t}`],
|
|
2542
|
+
Dn[`chip--${n}`],
|
|
2543
2543
|
r ?? ""
|
|
2544
2544
|
].filter(Boolean).join(" "),
|
|
2545
2545
|
"aria-hidden": "true",
|
|
2546
2546
|
children: a
|
|
2547
2547
|
});
|
|
2548
|
-
},
|
|
2548
|
+
}, An = {
|
|
2549
2549
|
group: "_group_mvlh4_3",
|
|
2550
2550
|
group__item: "_group__item_mvlh4_6",
|
|
2551
2551
|
"group--sm": "_group--sm_mvlh4_9",
|
|
@@ -2556,16 +2556,16 @@ var It = [
|
|
|
2556
2556
|
"overflow--md": "_overflow--md_mvlh4_26",
|
|
2557
2557
|
"overflow--lg": "_overflow--lg_mvlh4_27",
|
|
2558
2558
|
"overflow--xl": "_overflow--xl_mvlh4_28"
|
|
2559
|
-
},
|
|
2559
|
+
}, jn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
|
|
2560
2560
|
let i = n.slice(0, t), a = n.length - i.length;
|
|
2561
2561
|
return /* @__PURE__ */ M("div", {
|
|
2562
2562
|
className: [
|
|
2563
|
-
|
|
2564
|
-
|
|
2563
|
+
An.group,
|
|
2564
|
+
An[`group--${e}`],
|
|
2565
2565
|
r ?? ""
|
|
2566
2566
|
].filter(Boolean).join(" "),
|
|
2567
2567
|
children: [i.map((t, n) => /* @__PURE__ */ j("span", {
|
|
2568
|
-
className:
|
|
2568
|
+
className: An.group__item,
|
|
2569
2569
|
children: /* @__PURE__ */ j(Me, {
|
|
2570
2570
|
size: e,
|
|
2571
2571
|
src: t.src,
|
|
@@ -2573,25 +2573,25 @@ var It = [
|
|
|
2573
2573
|
alt: t.alt
|
|
2574
2574
|
})
|
|
2575
2575
|
}, n)), a > 0 && /* @__PURE__ */ j("span", {
|
|
2576
|
-
className:
|
|
2576
|
+
className: An.group__item,
|
|
2577
2577
|
children: /* @__PURE__ */ M("span", {
|
|
2578
|
-
className: [
|
|
2578
|
+
className: [An.overflow, An[`overflow--${e}`]].join(" "),
|
|
2579
2579
|
children: ["+", a]
|
|
2580
2580
|
})
|
|
2581
2581
|
})]
|
|
2582
2582
|
});
|
|
2583
|
-
},
|
|
2583
|
+
}, Mn = {
|
|
2584
2584
|
root: "_root_165je_1",
|
|
2585
2585
|
dot: "_dot_165je_13",
|
|
2586
2586
|
dotActive: "_dotActive_165je_21",
|
|
2587
2587
|
dotRemote: "_dotRemote_165je_25"
|
|
2588
|
-
},
|
|
2589
|
-
className: [
|
|
2588
|
+
}, Nn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ M("span", {
|
|
2589
|
+
className: [Mn.root, n ?? ""].filter(Boolean).join(" "),
|
|
2590
2590
|
children: [/* @__PURE__ */ j("span", {
|
|
2591
|
-
className: [
|
|
2591
|
+
className: [Mn.dot, t === "active" ? Mn.dotActive : Mn.dotRemote].join(" "),
|
|
2592
2592
|
"aria-hidden": "true"
|
|
2593
2593
|
}), e]
|
|
2594
|
-
}),
|
|
2594
|
+
}), Pn = {
|
|
2595
2595
|
root: "_root_15jaa_1",
|
|
2596
2596
|
rootCard: "_rootCard_15jaa_9",
|
|
2597
2597
|
rootRow: "_rootRow_15jaa_21",
|
|
@@ -2601,30 +2601,30 @@ var It = [
|
|
|
2601
2601
|
description: "_description_15jaa_56",
|
|
2602
2602
|
metaRow: "_metaRow_15jaa_65",
|
|
2603
2603
|
applyBtn: "_applyBtn_15jaa_72"
|
|
2604
|
-
},
|
|
2604
|
+
}, Fn = ({ title: e, description: t, department: n, employmentType: r, location: i, locationStatus: a = "remote", onApply: o, applyLabel: s = "Apply now", layout: c = "card", className: l }) => {
|
|
2605
2605
|
let u = c === "row", d = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("div", {
|
|
2606
|
-
className:
|
|
2606
|
+
className: Pn.titleGroup,
|
|
2607
2607
|
children: [/* @__PURE__ */ j("p", {
|
|
2608
|
-
className:
|
|
2608
|
+
className: Pn.title,
|
|
2609
2609
|
children: e
|
|
2610
2610
|
}), /* @__PURE__ */ j("p", {
|
|
2611
|
-
className:
|
|
2611
|
+
className: Pn.description,
|
|
2612
2612
|
children: t
|
|
2613
2613
|
})]
|
|
2614
2614
|
}), /* @__PURE__ */ M("div", {
|
|
2615
|
-
className:
|
|
2615
|
+
className: Pn.metaRow,
|
|
2616
2616
|
children: [
|
|
2617
|
-
/* @__PURE__ */ j(
|
|
2617
|
+
/* @__PURE__ */ j(Gt, {
|
|
2618
2618
|
variant: "accent",
|
|
2619
2619
|
emphasis: "subtle",
|
|
2620
2620
|
children: n
|
|
2621
2621
|
}),
|
|
2622
|
-
/* @__PURE__ */ j(
|
|
2622
|
+
/* @__PURE__ */ j(Gt, {
|
|
2623
2623
|
variant: "neutral",
|
|
2624
2624
|
emphasis: "subtle",
|
|
2625
2625
|
children: r
|
|
2626
2626
|
}),
|
|
2627
|
-
/* @__PURE__ */ j(
|
|
2627
|
+
/* @__PURE__ */ j(Nn, {
|
|
2628
2628
|
location: i,
|
|
2629
2629
|
status: a
|
|
2630
2630
|
})
|
|
@@ -2632,24 +2632,24 @@ var It = [
|
|
|
2632
2632
|
})] });
|
|
2633
2633
|
return u ? /* @__PURE__ */ M("div", {
|
|
2634
2634
|
className: [
|
|
2635
|
-
|
|
2636
|
-
|
|
2635
|
+
Pn.root,
|
|
2636
|
+
Pn.rootRow,
|
|
2637
2637
|
l ?? ""
|
|
2638
2638
|
].filter(Boolean).join(" "),
|
|
2639
2639
|
children: [/* @__PURE__ */ j("div", {
|
|
2640
|
-
className:
|
|
2640
|
+
className: Pn.rowLeft,
|
|
2641
2641
|
children: d
|
|
2642
2642
|
}), /* @__PURE__ */ j(F, {
|
|
2643
2643
|
variant: "secondary",
|
|
2644
2644
|
size: "sm",
|
|
2645
|
-
className:
|
|
2645
|
+
className: Pn.applyBtn,
|
|
2646
2646
|
onClick: o,
|
|
2647
2647
|
children: s
|
|
2648
2648
|
})]
|
|
2649
2649
|
}) : /* @__PURE__ */ M("div", {
|
|
2650
2650
|
className: [
|
|
2651
|
-
|
|
2652
|
-
|
|
2651
|
+
Pn.root,
|
|
2652
|
+
Pn.rootCard,
|
|
2653
2653
|
l ?? ""
|
|
2654
2654
|
].filter(Boolean).join(" "),
|
|
2655
2655
|
children: [d, /* @__PURE__ */ j(F, {
|
|
@@ -2659,34 +2659,50 @@ var It = [
|
|
|
2659
2659
|
children: s
|
|
2660
2660
|
})]
|
|
2661
2661
|
});
|
|
2662
|
-
},
|
|
2662
|
+
}, In = [
|
|
2663
|
+
"M1.42578 22.5264C23.2117 23.2619 40.7366 40.7874 41.4727 62.5732C38.4791 63.4997 35.298 64 32 64C31.158 64 30.3237 63.9662 29.498 63.9023C29.4455 47.6871 16.3121 34.553 0.0966797 34.501C0.0328793 33.6757 0 32.8417 0 32C0 28.7018 0.499182 25.5201 1.42578 22.5264Z",
|
|
2664
|
+
"M0.889648 39.5176C13.7129 39.9753 24.0232 50.2863 24.4814 63.1094C12.8474 60.3077 3.69089 51.1518 0.889648 39.5176Z",
|
|
2665
|
+
"M32 0C49.6731 0 64 14.3269 64 32C64 44.5026 56.8286 55.3282 46.376 60.5938C44.7132 37.6274 26.3718 19.2853 3.40527 17.623C8.6709 7.17063 19.4975 0 32 0Z"
|
|
2666
|
+
], Ln = ({ size: e }) => /* @__PURE__ */ j("svg", {
|
|
2667
|
+
width: e ?? "100%",
|
|
2668
|
+
height: e ?? "100%",
|
|
2669
|
+
viewBox: "0 0 64 64",
|
|
2670
|
+
fill: "none",
|
|
2671
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2672
|
+
"aria-hidden": "true",
|
|
2673
|
+
"data-sakani-logo": "",
|
|
2674
|
+
children: In.map((e) => /* @__PURE__ */ j("path", {
|
|
2675
|
+
d: e,
|
|
2676
|
+
fill: "var(--color-fg-default)"
|
|
2677
|
+
}, e))
|
|
2678
|
+
}), Rn = {
|
|
2663
2679
|
root: "_root_3bf2n_1",
|
|
2664
2680
|
rootCenter: "_rootCenter_3bf2n_9",
|
|
2665
2681
|
rootLeft: "_rootLeft_3bf2n_14",
|
|
2666
2682
|
title: "_title_3bf2n_19",
|
|
2667
2683
|
subtitle: "_subtitle_3bf2n_28"
|
|
2668
|
-
},
|
|
2684
|
+
}, zn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: i = "h2", className: a }) => /* @__PURE__ */ M("div", {
|
|
2669
2685
|
className: [
|
|
2670
|
-
|
|
2671
|
-
r === "left" ?
|
|
2686
|
+
Rn.root,
|
|
2687
|
+
r === "left" ? Rn.rootLeft : Rn.rootCenter,
|
|
2672
2688
|
a ?? ""
|
|
2673
2689
|
].filter(Boolean).join(" "),
|
|
2674
2690
|
children: [
|
|
2675
|
-
e && /* @__PURE__ */ j(
|
|
2691
|
+
e && /* @__PURE__ */ j(Gt, {
|
|
2676
2692
|
variant: "accent",
|
|
2677
2693
|
emphasis: "subtle",
|
|
2678
2694
|
children: e
|
|
2679
2695
|
}),
|
|
2680
2696
|
/* @__PURE__ */ j(i, {
|
|
2681
|
-
className:
|
|
2697
|
+
className: Rn.title,
|
|
2682
2698
|
children: t
|
|
2683
2699
|
}),
|
|
2684
2700
|
n && /* @__PURE__ */ j("p", {
|
|
2685
|
-
className:
|
|
2701
|
+
className: Rn.subtitle,
|
|
2686
2702
|
children: n
|
|
2687
2703
|
})
|
|
2688
2704
|
]
|
|
2689
|
-
}),
|
|
2705
|
+
}), K = {
|
|
2690
2706
|
card: "_card_mouc6_1",
|
|
2691
2707
|
imageWrap: "_imageWrap_mouc6_19",
|
|
2692
2708
|
image: "_image_mouc6_19",
|
|
@@ -2699,42 +2715,42 @@ var It = [
|
|
|
2699
2715
|
role: "_role_mouc6_102",
|
|
2700
2716
|
social: "_social_mouc6_111",
|
|
2701
2717
|
bio: "_bio_mouc6_119"
|
|
2702
|
-
},
|
|
2703
|
-
className: [
|
|
2718
|
+
}, Bn = ({ image: e, imageAlt: t, name: n, role: r, location: i, locationStatus: a = "active", bio: o, socialLinks: s = [], className: c }) => /* @__PURE__ */ M("div", {
|
|
2719
|
+
className: [K.card, c ?? ""].filter(Boolean).join(" "),
|
|
2704
2720
|
children: [/* @__PURE__ */ M("div", {
|
|
2705
|
-
className:
|
|
2721
|
+
className: K.imageWrap,
|
|
2706
2722
|
children: [/* @__PURE__ */ j("img", {
|
|
2707
2723
|
src: e,
|
|
2708
2724
|
alt: t ?? n,
|
|
2709
|
-
className:
|
|
2725
|
+
className: K.image
|
|
2710
2726
|
}), /* @__PURE__ */ j("div", {
|
|
2711
|
-
className:
|
|
2712
|
-
children: /* @__PURE__ */ j(
|
|
2727
|
+
className: K.locationBar,
|
|
2728
|
+
children: /* @__PURE__ */ j(Nn, {
|
|
2713
2729
|
location: i,
|
|
2714
2730
|
status: a,
|
|
2715
|
-
className:
|
|
2731
|
+
className: K.locationDot
|
|
2716
2732
|
})
|
|
2717
2733
|
})]
|
|
2718
2734
|
}), /* @__PURE__ */ M("div", {
|
|
2719
|
-
className:
|
|
2735
|
+
className: K.info,
|
|
2720
2736
|
children: [/* @__PURE__ */ M("div", {
|
|
2721
|
-
className:
|
|
2737
|
+
className: K.metaRow,
|
|
2722
2738
|
children: [/* @__PURE__ */ M("div", {
|
|
2723
|
-
className:
|
|
2739
|
+
className: K.identity,
|
|
2724
2740
|
children: [/* @__PURE__ */ j("p", {
|
|
2725
|
-
className:
|
|
2741
|
+
className: K.name,
|
|
2726
2742
|
children: n
|
|
2727
2743
|
}), /* @__PURE__ */ j("p", {
|
|
2728
|
-
className:
|
|
2744
|
+
className: K.role,
|
|
2729
2745
|
children: r
|
|
2730
2746
|
})]
|
|
2731
2747
|
}), s.length > 0 && /* @__PURE__ */ j("div", {
|
|
2732
|
-
className:
|
|
2748
|
+
className: K.social,
|
|
2733
2749
|
children: s.map((e, t) => /* @__PURE__ */ j("a", {
|
|
2734
2750
|
href: e.href,
|
|
2735
2751
|
onClick: e.onClick,
|
|
2736
2752
|
"aria-label": e.label,
|
|
2737
|
-
children: /* @__PURE__ */ j(
|
|
2753
|
+
children: /* @__PURE__ */ j(kn, {
|
|
2738
2754
|
icon: e.icon,
|
|
2739
2755
|
size: "sm",
|
|
2740
2756
|
variant: "subtle"
|
|
@@ -2742,11 +2758,11 @@ var It = [
|
|
|
2742
2758
|
}, e.label ?? t))
|
|
2743
2759
|
})]
|
|
2744
2760
|
}), o && /* @__PURE__ */ j("p", {
|
|
2745
|
-
className:
|
|
2761
|
+
className: K.bio,
|
|
2746
2762
|
children: o
|
|
2747
2763
|
})]
|
|
2748
2764
|
})]
|
|
2749
|
-
}),
|
|
2765
|
+
}), Vn = {
|
|
2750
2766
|
alert: "_alert_1hjs5_3",
|
|
2751
2767
|
alert__icon: "_alert__icon_1hjs5_12",
|
|
2752
2768
|
alert__content: "_alert__content_1hjs5_13",
|
|
@@ -2757,7 +2773,7 @@ var It = [
|
|
|
2757
2773
|
"alert--warning": "_alert--warning_1hjs5_24",
|
|
2758
2774
|
"alert--danger": "_alert--danger_1hjs5_27",
|
|
2759
2775
|
"alert--neutral": "_alert--neutral_1hjs5_30"
|
|
2760
|
-
},
|
|
2776
|
+
}, Hn = {
|
|
2761
2777
|
info: /* @__PURE__ */ M(A, { children: [
|
|
2762
2778
|
/* @__PURE__ */ j("circle", {
|
|
2763
2779
|
cx: "12",
|
|
@@ -2831,15 +2847,15 @@ var It = [
|
|
|
2831
2847
|
y2: "8"
|
|
2832
2848
|
})
|
|
2833
2849
|
] })
|
|
2834
|
-
},
|
|
2850
|
+
}, Un = ({ color: e = "info", title: t, description: n, icon: r, className: i }) => /* @__PURE__ */ M("div", {
|
|
2835
2851
|
role: "alert",
|
|
2836
2852
|
className: [
|
|
2837
|
-
|
|
2838
|
-
|
|
2853
|
+
Vn.alert,
|
|
2854
|
+
Vn[`alert--${e}`],
|
|
2839
2855
|
i ?? ""
|
|
2840
2856
|
].filter(Boolean).join(" "),
|
|
2841
2857
|
children: [/* @__PURE__ */ j("span", {
|
|
2842
|
-
className:
|
|
2858
|
+
className: Vn.alert__icon,
|
|
2843
2859
|
"aria-hidden": "true",
|
|
2844
2860
|
children: /* @__PURE__ */ j("svg", {
|
|
2845
2861
|
viewBox: "0 0 24 24",
|
|
@@ -2850,15 +2866,15 @@ var It = [
|
|
|
2850
2866
|
strokeLinejoin: "round",
|
|
2851
2867
|
width: 18,
|
|
2852
2868
|
height: 18,
|
|
2853
|
-
children: r ??
|
|
2869
|
+
children: r ?? Hn[e]
|
|
2854
2870
|
})
|
|
2855
2871
|
}), /* @__PURE__ */ M("div", {
|
|
2856
|
-
className:
|
|
2872
|
+
className: Vn.alert__content,
|
|
2857
2873
|
children: [t && /* @__PURE__ */ j("div", {
|
|
2858
|
-
className:
|
|
2874
|
+
className: Vn.alert__title,
|
|
2859
2875
|
children: t
|
|
2860
2876
|
}), n && /* @__PURE__ */ j("div", {
|
|
2861
|
-
className:
|
|
2877
|
+
className: Vn.alert__description,
|
|
2862
2878
|
children: n
|
|
2863
2879
|
})]
|
|
2864
2880
|
})]
|
|
@@ -2879,7 +2895,7 @@ var It = [
|
|
|
2879
2895
|
card__footer: "_card__footer_6iftf_47",
|
|
2880
2896
|
card__meta: "_card__meta_6iftf_48",
|
|
2881
2897
|
card__assignees: "_card__assignees_6iftf_49"
|
|
2882
|
-
},
|
|
2898
|
+
}, Wn = ({ type: e = "default", state: t = "default", cover: n, leading: r, title: i, trailing: a, description: o, tags: s, meta: c, assignees: l, onClick: u, className: d }) => {
|
|
2883
2899
|
let f = e !== "compact", p = c || l;
|
|
2884
2900
|
return /* @__PURE__ */ M("div", {
|
|
2885
2901
|
onClick: u,
|
|
@@ -2932,7 +2948,7 @@ var It = [
|
|
|
2932
2948
|
})] })
|
|
2933
2949
|
]
|
|
2934
2950
|
});
|
|
2935
|
-
},
|
|
2951
|
+
}, Gn = {
|
|
2936
2952
|
breadcrumb: "_breadcrumb_tszff_3",
|
|
2937
2953
|
list: "_list_tszff_5",
|
|
2938
2954
|
item: "_item_tszff_15",
|
|
@@ -2941,12 +2957,12 @@ var It = [
|
|
|
2941
2957
|
separator: "_separator_tszff_33",
|
|
2942
2958
|
"list--button": "_list--button_tszff_38",
|
|
2943
2959
|
chip: "_chip_tszff_41"
|
|
2944
|
-
},
|
|
2960
|
+
}, Kn = {
|
|
2945
2961
|
highlight: "_highlight_1bp09_15",
|
|
2946
2962
|
visible: "_visible_1bp09_24",
|
|
2947
2963
|
glide: "_glide_1bp09_28"
|
|
2948
|
-
},
|
|
2949
|
-
function
|
|
2964
|
+
}, qn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
|
|
2965
|
+
function Jn(e, t) {
|
|
2950
2966
|
let n = 0, r = 0, i = e;
|
|
2951
2967
|
for (; i && i !== t;) {
|
|
2952
2968
|
n += i.offsetLeft, r += i.offsetTop;
|
|
@@ -2965,7 +2981,7 @@ function Kn(e, t) {
|
|
|
2965
2981
|
tone: a.getPropertyValue("--hover-tone").trim()
|
|
2966
2982
|
};
|
|
2967
2983
|
}
|
|
2968
|
-
function
|
|
2984
|
+
function Yn() {
|
|
2969
2985
|
let e = k.useRef(null), [t, n] = k.useState(null), r = k.useCallback((t) => {
|
|
2970
2986
|
e.current = t, n(t);
|
|
2971
2987
|
}, []), i = k.useRef(null), a = k.useRef(!1), o = k.useRef(null), s = k.useRef(!1), c = k.useRef(null), [l, u] = k.useState(null), [d, f] = k.useState(!1), [p, m] = k.useState(!1), h = k.useCallback(() => {
|
|
@@ -2974,7 +2990,7 @@ function qn() {
|
|
|
2974
2990
|
let n = e.current;
|
|
2975
2991
|
if (!n) return;
|
|
2976
2992
|
n !== c.current && (c.current = n, a.current = !1), i.current = t;
|
|
2977
|
-
let r =
|
|
2993
|
+
let r = Jn(t, n);
|
|
2978
2994
|
if (a.current) {
|
|
2979
2995
|
u(r);
|
|
2980
2996
|
return;
|
|
@@ -2993,7 +3009,7 @@ function qn() {
|
|
|
2993
3009
|
if (!n) return;
|
|
2994
3010
|
let r = t.target.closest("[data-hover-item]");
|
|
2995
3011
|
if (!(!r || r.closest("[data-hover-group]") !== n)) {
|
|
2996
|
-
if (
|
|
3012
|
+
if (qn(r)) {
|
|
2997
3013
|
h();
|
|
2998
3014
|
return;
|
|
2999
3015
|
}
|
|
@@ -3010,7 +3026,7 @@ function qn() {
|
|
|
3010
3026
|
h();
|
|
3011
3027
|
return;
|
|
3012
3028
|
}
|
|
3013
|
-
u(
|
|
3029
|
+
u(Jn(t, e));
|
|
3014
3030
|
}
|
|
3015
3031
|
}, r = new ResizeObserver(n);
|
|
3016
3032
|
return r.observe(e), e.addEventListener("scroll", n, !0), () => {
|
|
@@ -3021,9 +3037,9 @@ function qn() {
|
|
|
3021
3037
|
ref: o,
|
|
3022
3038
|
"aria-hidden": "true",
|
|
3023
3039
|
className: [
|
|
3024
|
-
|
|
3025
|
-
d ?
|
|
3026
|
-
p ?
|
|
3040
|
+
Kn.highlight,
|
|
3041
|
+
d ? Kn.visible : "",
|
|
3042
|
+
p ? Kn.glide : ""
|
|
3027
3043
|
].filter(Boolean).join(" "),
|
|
3028
3044
|
style: l ? {
|
|
3029
3045
|
transform: `translate(${l.x}px, ${l.y}px)`,
|
|
@@ -3033,7 +3049,7 @@ function qn() {
|
|
|
3033
3049
|
background: l.tone || void 0
|
|
3034
3050
|
} : void 0
|
|
3035
3051
|
}), y = k.useCallback((e) => {
|
|
3036
|
-
e && !
|
|
3052
|
+
e && !qn(e) ? g(e) : h();
|
|
3037
3053
|
}, [h, g]);
|
|
3038
3054
|
return {
|
|
3039
3055
|
ref: r,
|
|
@@ -3046,8 +3062,8 @@ function qn() {
|
|
|
3046
3062
|
showItem: y
|
|
3047
3063
|
};
|
|
3048
3064
|
}
|
|
3049
|
-
var
|
|
3050
|
-
let { ref: r, groupProps: i, highlight: a } =
|
|
3065
|
+
var Xn = ({ children: e, style: t, ...n }) => {
|
|
3066
|
+
let { ref: r, groupProps: i, highlight: a } = Yn();
|
|
3051
3067
|
return /* @__PURE__ */ M("div", {
|
|
3052
3068
|
ref: r,
|
|
3053
3069
|
...n,
|
|
@@ -3058,8 +3074,8 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3058
3074
|
},
|
|
3059
3075
|
children: [a, e]
|
|
3060
3076
|
});
|
|
3061
|
-
},
|
|
3062
|
-
className:
|
|
3077
|
+
}, Zn = ({ size: e }) => /* @__PURE__ */ j("span", {
|
|
3078
|
+
className: Gn.separator,
|
|
3063
3079
|
"aria-hidden": "true",
|
|
3064
3080
|
children: /* @__PURE__ */ j("svg", {
|
|
3065
3081
|
viewBox: "0 0 24 24",
|
|
@@ -3072,23 +3088,23 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3072
3088
|
height: e,
|
|
3073
3089
|
children: /* @__PURE__ */ j("path", { d: "m9 18 6-6-6-6" })
|
|
3074
3090
|
})
|
|
3075
|
-
}),
|
|
3076
|
-
let r = t === "button", i =
|
|
3091
|
+
}), Qn = ({ items: e, variant: t = "text", className: n }) => {
|
|
3092
|
+
let r = t === "button", i = Yn();
|
|
3077
3093
|
return /* @__PURE__ */ j("nav", {
|
|
3078
3094
|
"aria-label": "Breadcrumb",
|
|
3079
|
-
className: [
|
|
3095
|
+
className: [Gn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
|
|
3080
3096
|
children: /* @__PURE__ */ M("ol", {
|
|
3081
3097
|
ref: i.ref,
|
|
3082
3098
|
...r ? i.groupProps : {},
|
|
3083
|
-
className: [
|
|
3099
|
+
className: [Gn.list, r ? Gn["list--button"] : ""].filter(Boolean).join(" "),
|
|
3084
3100
|
children: [r && /* @__PURE__ */ j("li", {
|
|
3085
3101
|
"aria-hidden": "true",
|
|
3086
3102
|
style: { display: "contents" },
|
|
3087
3103
|
children: i.highlight
|
|
3088
3104
|
}), e.map((t, n) => {
|
|
3089
|
-
let i = n === e.length - 1, a = r ?
|
|
3105
|
+
let i = n === e.length - 1, a = r ? Gn.chip : i ? Gn.current : Gn.crumb;
|
|
3090
3106
|
return /* @__PURE__ */ M("li", {
|
|
3091
|
-
className:
|
|
3107
|
+
className: Gn.item,
|
|
3092
3108
|
children: [i || !t.href ? /* @__PURE__ */ j("span", {
|
|
3093
3109
|
className: a,
|
|
3094
3110
|
"data-hover-item": r ? "off" : void 0,
|
|
@@ -3099,26 +3115,26 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3099
3115
|
"data-hover-item": "",
|
|
3100
3116
|
className: a,
|
|
3101
3117
|
children: t.label
|
|
3102
|
-
}), !i && /* @__PURE__ */ j(
|
|
3118
|
+
}), !i && /* @__PURE__ */ j(Zn, { size: r ? 14 : 16 })]
|
|
3103
3119
|
}, n);
|
|
3104
3120
|
})]
|
|
3105
3121
|
})
|
|
3106
3122
|
});
|
|
3107
|
-
},
|
|
3123
|
+
}, $n = {
|
|
3108
3124
|
meta: "_meta_g1mpv_2",
|
|
3109
3125
|
meta__icon: "_meta__icon_g1mpv_3",
|
|
3110
3126
|
meta__label: "_meta__label_g1mpv_4"
|
|
3111
|
-
},
|
|
3112
|
-
className: [
|
|
3127
|
+
}, er = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ M("span", {
|
|
3128
|
+
className: [$n.meta, n ?? ""].filter(Boolean).join(" "),
|
|
3113
3129
|
children: [/* @__PURE__ */ j("span", {
|
|
3114
|
-
className:
|
|
3130
|
+
className: $n.meta__icon,
|
|
3115
3131
|
"aria-hidden": "true",
|
|
3116
3132
|
children: e
|
|
3117
3133
|
}), /* @__PURE__ */ j("span", {
|
|
3118
|
-
className:
|
|
3134
|
+
className: $n.meta__label,
|
|
3119
3135
|
children: t
|
|
3120
3136
|
})]
|
|
3121
|
-
}),
|
|
3137
|
+
}), tr = {
|
|
3122
3138
|
composer: "_composer_1dwtx_2",
|
|
3123
3139
|
"composer--typing": "_composer--typing_1dwtx_15",
|
|
3124
3140
|
input: "_input_1dwtx_22",
|
|
@@ -3132,7 +3148,7 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3132
3148
|
row: "_row_1dwtx_36",
|
|
3133
3149
|
icon: "_icon_1dwtx_37",
|
|
3134
3150
|
send: "_send_1dwtx_52"
|
|
3135
|
-
},
|
|
3151
|
+
}, nr = ({ state: e = "default", value: t, placeholder: n = "Message...", onChange: r, onSend: a, onAttachmentsChange: o, uploadName: s, uploadProgress: c = 0, onCancelUpload: l, className: u }) => {
|
|
3136
3152
|
let d = e === "disabled", [f, p] = k.useState(""), [m, h] = k.useState(!1), [g, y] = k.useState({
|
|
3137
3153
|
top: 0,
|
|
3138
3154
|
right: 0
|
|
@@ -3182,29 +3198,29 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3182
3198
|
o?.(b);
|
|
3183
3199
|
}, [b, o]), /* @__PURE__ */ M("div", {
|
|
3184
3200
|
className: [
|
|
3185
|
-
|
|
3186
|
-
|
|
3201
|
+
tr.composer,
|
|
3202
|
+
tr[`composer--${e}`],
|
|
3187
3203
|
u ?? ""
|
|
3188
3204
|
].filter(Boolean).join(" "),
|
|
3189
3205
|
children: [
|
|
3190
3206
|
e === "uploading" && /* @__PURE__ */ M("div", {
|
|
3191
|
-
className:
|
|
3207
|
+
className: tr.upload,
|
|
3192
3208
|
children: [
|
|
3193
3209
|
/* @__PURE__ */ j(E, {
|
|
3194
3210
|
size: 16,
|
|
3195
3211
|
strokeWidth: N(16),
|
|
3196
|
-
className:
|
|
3212
|
+
className: tr.upload__icon,
|
|
3197
3213
|
"aria-hidden": "true"
|
|
3198
3214
|
}),
|
|
3199
3215
|
/* @__PURE__ */ M("div", {
|
|
3200
|
-
className:
|
|
3216
|
+
className: tr.upload__body,
|
|
3201
3217
|
children: [/* @__PURE__ */ j("span", {
|
|
3202
|
-
className:
|
|
3218
|
+
className: tr.upload__name,
|
|
3203
3219
|
children: s
|
|
3204
3220
|
}), /* @__PURE__ */ j("div", {
|
|
3205
|
-
className:
|
|
3221
|
+
className: tr.upload__track,
|
|
3206
3222
|
children: /* @__PURE__ */ j("div", {
|
|
3207
|
-
className:
|
|
3223
|
+
className: tr.upload__fill,
|
|
3208
3224
|
style: { width: `${c}%` }
|
|
3209
3225
|
})
|
|
3210
3226
|
})]
|
|
@@ -3298,7 +3314,7 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3298
3314
|
style: { display: "none" }
|
|
3299
3315
|
}),
|
|
3300
3316
|
/* @__PURE__ */ M("div", {
|
|
3301
|
-
className:
|
|
3317
|
+
className: tr.row,
|
|
3302
3318
|
children: [
|
|
3303
3319
|
/* @__PURE__ */ j(Ve, {
|
|
3304
3320
|
icon: _,
|
|
@@ -3311,7 +3327,7 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3311
3327
|
/* @__PURE__ */ j("input", {
|
|
3312
3328
|
ref: S,
|
|
3313
3329
|
type: "text",
|
|
3314
|
-
className:
|
|
3330
|
+
className: tr.input,
|
|
3315
3331
|
value: O,
|
|
3316
3332
|
placeholder: d ? "You can't reply to this conversation" : n,
|
|
3317
3333
|
disabled: d,
|
|
@@ -3397,7 +3413,7 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3397
3413
|
})
|
|
3398
3414
|
]
|
|
3399
3415
|
});
|
|
3400
|
-
},
|
|
3416
|
+
}, rr = {
|
|
3401
3417
|
wrapper: "_wrapper_1nmcn_3",
|
|
3402
3418
|
"wrapper--disabled": "_wrapper--disabled_1nmcn_11",
|
|
3403
3419
|
input: "_input_1nmcn_14",
|
|
@@ -3409,16 +3425,16 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3409
3425
|
text__description: "_text__description_1nmcn_73",
|
|
3410
3426
|
checkbox: "_checkbox_1nmcn_77",
|
|
3411
3427
|
"wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
|
|
3412
|
-
},
|
|
3428
|
+
}, ir = k.forwardRef(({ label: e, description: t, indeterminate: n, disabled: r, id: i, className: a, ...o }, s) => {
|
|
3413
3429
|
let c = k.useId(), l = i ?? c, u = k.useRef(null);
|
|
3414
3430
|
return k.useImperativeHandle(s, () => u.current), k.useEffect(() => {
|
|
3415
3431
|
u.current && (u.current.indeterminate = !!n);
|
|
3416
3432
|
}, [n]), /* @__PURE__ */ M("label", {
|
|
3417
3433
|
htmlFor: l,
|
|
3418
3434
|
className: [
|
|
3419
|
-
|
|
3420
|
-
t ?
|
|
3421
|
-
r ?
|
|
3435
|
+
rr.wrapper,
|
|
3436
|
+
t ? rr["wrapper--withDescription"] : "",
|
|
3437
|
+
r ? rr["wrapper--disabled"] : "",
|
|
3422
3438
|
a ?? ""
|
|
3423
3439
|
].filter(Boolean).join(" "),
|
|
3424
3440
|
children: [
|
|
@@ -3427,14 +3443,14 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3427
3443
|
id: l,
|
|
3428
3444
|
type: "checkbox",
|
|
3429
3445
|
disabled: r,
|
|
3430
|
-
className:
|
|
3446
|
+
className: rr.input,
|
|
3431
3447
|
...o
|
|
3432
3448
|
}),
|
|
3433
3449
|
/* @__PURE__ */ M("span", {
|
|
3434
|
-
className:
|
|
3450
|
+
className: rr.box,
|
|
3435
3451
|
"aria-hidden": "true",
|
|
3436
3452
|
children: [/* @__PURE__ */ j("svg", {
|
|
3437
|
-
className:
|
|
3453
|
+
className: rr.check,
|
|
3438
3454
|
width: 12,
|
|
3439
3455
|
height: 12,
|
|
3440
3456
|
viewBox: "0 0 24 24",
|
|
@@ -3444,22 +3460,22 @@ var Jn = ({ children: e, style: t, ...n }) => {
|
|
|
3444
3460
|
strokeLinecap: "round",
|
|
3445
3461
|
strokeLinejoin: "round",
|
|
3446
3462
|
children: /* @__PURE__ */ j("polyline", { points: "20 6 9 17 4 12" })
|
|
3447
|
-
}), /* @__PURE__ */ j("span", { className:
|
|
3463
|
+
}), /* @__PURE__ */ j("span", { className: rr.dash })]
|
|
3448
3464
|
}),
|
|
3449
3465
|
(e || t) && /* @__PURE__ */ M("span", {
|
|
3450
|
-
className:
|
|
3466
|
+
className: rr.text,
|
|
3451
3467
|
children: [e && /* @__PURE__ */ j("span", {
|
|
3452
|
-
className:
|
|
3468
|
+
className: rr.text__label,
|
|
3453
3469
|
children: e
|
|
3454
3470
|
}), t && /* @__PURE__ */ j("span", {
|
|
3455
|
-
className:
|
|
3471
|
+
className: rr.text__description,
|
|
3456
3472
|
children: t
|
|
3457
3473
|
})]
|
|
3458
3474
|
})
|
|
3459
3475
|
]
|
|
3460
3476
|
});
|
|
3461
3477
|
});
|
|
3462
|
-
|
|
3478
|
+
ir.displayName = "Checkbox";
|
|
3463
3479
|
var J = {
|
|
3464
3480
|
item: "_item_1bf0e_2",
|
|
3465
3481
|
"item--hover": "_item--hover_1bf0e_12",
|
|
@@ -3475,7 +3491,7 @@ var J = {
|
|
|
3475
3491
|
item__preview: "_item__preview_1bf0e_31",
|
|
3476
3492
|
item__typing: "_item__typing_1bf0e_36",
|
|
3477
3493
|
item__badge: "_item__badge_1bf0e_37"
|
|
3478
|
-
},
|
|
3494
|
+
}, ar = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: i, unreadCount: a, onClick: o, className: s }) => /* @__PURE__ */ M("div", {
|
|
3479
3495
|
role: "button",
|
|
3480
3496
|
"data-hover-item": "",
|
|
3481
3497
|
tabIndex: 0,
|
|
@@ -3529,12 +3545,12 @@ var J = {
|
|
|
3529
3545
|
})]
|
|
3530
3546
|
})]
|
|
3531
3547
|
})]
|
|
3532
|
-
}),
|
|
3548
|
+
}), or = {
|
|
3533
3549
|
chart: "_chart_aiboa_2",
|
|
3534
3550
|
center: "_center_aiboa_26",
|
|
3535
3551
|
center__value: "_center__value_aiboa_35",
|
|
3536
3552
|
center__caption: "_center__caption_aiboa_36"
|
|
3537
|
-
},
|
|
3553
|
+
}, sr = {
|
|
3538
3554
|
sm: {
|
|
3539
3555
|
h: 180,
|
|
3540
3556
|
inner: 50,
|
|
@@ -3555,26 +3571,26 @@ var J = {
|
|
|
3555
3571
|
inner: 98,
|
|
3556
3572
|
outer: 142
|
|
3557
3573
|
}
|
|
3558
|
-
},
|
|
3574
|
+
}, cr = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
|
|
3559
3575
|
let [o, s] = k.useState(null), [c, l] = k.useState(null), u = (e) => {
|
|
3560
3576
|
let t = e.currentTarget.getBoundingClientRect();
|
|
3561
3577
|
l({
|
|
3562
3578
|
x: e.clientX - t.left,
|
|
3563
3579
|
y: e.clientY - t.top
|
|
3564
3580
|
});
|
|
3565
|
-
}, d = k.useRef(null), f =
|
|
3581
|
+
}, d = k.useRef(null), f = It(d), p = [
|
|
3566
3582
|
1,
|
|
3567
3583
|
2,
|
|
3568
3584
|
3,
|
|
3569
3585
|
4,
|
|
3570
3586
|
5
|
|
3571
|
-
].map((e) => f(`--color-chart-${e}`) ??
|
|
3572
|
-
...
|
|
3573
|
-
h: i ??
|
|
3587
|
+
].map((e) => f(`--color-chart-${e}`) ?? Lt[e - 1]), m = {
|
|
3588
|
+
...sr[t],
|
|
3589
|
+
h: i ?? sr[t].h
|
|
3574
3590
|
}, h = (m.outer - m.inner) / 2 - 7;
|
|
3575
3591
|
return /* @__PURE__ */ M("div", {
|
|
3576
3592
|
ref: d,
|
|
3577
|
-
className: [
|
|
3593
|
+
className: [or.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3578
3594
|
style: { height: m.h },
|
|
3579
3595
|
onMouseMove: u,
|
|
3580
3596
|
children: [/* @__PURE__ */ j(be, {
|
|
@@ -3599,29 +3615,29 @@ var J = {
|
|
|
3599
3615
|
fillOpacity: o !== null && t !== o ? .45 : 1
|
|
3600
3616
|
}, t))
|
|
3601
3617
|
}), /* @__PURE__ */ j(xe, {
|
|
3602
|
-
content: /* @__PURE__ */ j(
|
|
3618
|
+
content: /* @__PURE__ */ j(zt, {}),
|
|
3603
3619
|
wrapperStyle: { zIndex: 50 },
|
|
3604
3620
|
position: c ?? void 0
|
|
3605
3621
|
})] })
|
|
3606
3622
|
}), (n || r) && /* @__PURE__ */ M("div", {
|
|
3607
|
-
className:
|
|
3623
|
+
className: or.center,
|
|
3608
3624
|
children: [n && /* @__PURE__ */ j("span", {
|
|
3609
|
-
className:
|
|
3625
|
+
className: or.center__value,
|
|
3610
3626
|
children: n
|
|
3611
3627
|
}), r && /* @__PURE__ */ j("span", {
|
|
3612
|
-
className:
|
|
3628
|
+
className: or.center__caption,
|
|
3613
3629
|
children: r
|
|
3614
3630
|
})]
|
|
3615
3631
|
})]
|
|
3616
3632
|
});
|
|
3617
|
-
},
|
|
3633
|
+
}, lr = {
|
|
3618
3634
|
empty: "_empty_1mj0f_2",
|
|
3619
3635
|
empty__chip: "_empty__chip_1mj0f_12",
|
|
3620
3636
|
"empty__chip--error": "_empty__chip--error_1mj0f_22",
|
|
3621
3637
|
empty__title: "_empty__title_1mj0f_23",
|
|
3622
3638
|
empty__desc: "_empty__desc_1mj0f_31",
|
|
3623
3639
|
empty__action: "_empty__action_1mj0f_39"
|
|
3624
|
-
},
|
|
3640
|
+
}, ur = {
|
|
3625
3641
|
"no-data": {
|
|
3626
3642
|
icon: /* @__PURE__ */ j(h, {
|
|
3627
3643
|
size: 18,
|
|
@@ -3646,35 +3662,35 @@ var J = {
|
|
|
3646
3662
|
title: "Couldn't load data",
|
|
3647
3663
|
description: "Something went wrong while fetching records."
|
|
3648
3664
|
}
|
|
3649
|
-
},
|
|
3650
|
-
let s =
|
|
3665
|
+
}, dr = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: i, icon: a, className: o }) => {
|
|
3666
|
+
let s = ur[e];
|
|
3651
3667
|
return /* @__PURE__ */ M("div", {
|
|
3652
|
-
className: [
|
|
3668
|
+
className: [lr.empty, o ?? ""].filter(Boolean).join(" "),
|
|
3653
3669
|
role: "status",
|
|
3654
3670
|
children: [
|
|
3655
3671
|
/* @__PURE__ */ j("span", {
|
|
3656
|
-
className: [
|
|
3672
|
+
className: [lr.empty__chip, lr[`empty__chip--${e}`]].join(" "),
|
|
3657
3673
|
"aria-hidden": "true",
|
|
3658
3674
|
children: a ?? s.icon
|
|
3659
3675
|
}),
|
|
3660
3676
|
/* @__PURE__ */ j("p", {
|
|
3661
|
-
className:
|
|
3677
|
+
className: lr.empty__title,
|
|
3662
3678
|
children: t ?? s.title
|
|
3663
3679
|
}),
|
|
3664
3680
|
/* @__PURE__ */ j("p", {
|
|
3665
|
-
className:
|
|
3681
|
+
className: lr.empty__desc,
|
|
3666
3682
|
children: n ?? s.description
|
|
3667
3683
|
}),
|
|
3668
3684
|
r && /* @__PURE__ */ j(F, {
|
|
3669
3685
|
variant: "outline",
|
|
3670
3686
|
size: "sm",
|
|
3671
|
-
className:
|
|
3687
|
+
className: lr.empty__action,
|
|
3672
3688
|
onClick: i,
|
|
3673
3689
|
children: r
|
|
3674
3690
|
})
|
|
3675
3691
|
]
|
|
3676
3692
|
});
|
|
3677
|
-
},
|
|
3693
|
+
}, fr = {
|
|
3678
3694
|
chip: "_chip_1qnyq_2",
|
|
3679
3695
|
chip__lead: "_chip__lead_1qnyq_20",
|
|
3680
3696
|
chip__trail: "_chip__trail_1qnyq_20",
|
|
@@ -3682,50 +3698,50 @@ var J = {
|
|
|
3682
3698
|
chip__remove: "_chip__remove_1qnyq_29",
|
|
3683
3699
|
"chip--add": "_chip--add_1qnyq_38",
|
|
3684
3700
|
"chip--leaving": "_chip--leaving_1qnyq_45"
|
|
3685
|
-
},
|
|
3701
|
+
}, pr = 160, mr = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, hr = ({ type: e = "default", children: t, onClick: r, onRemove: a, className: o }) => {
|
|
3686
3702
|
let [s, c] = k.useState(!1), l = k.useRef(void 0);
|
|
3687
3703
|
k.useEffect(() => () => window.clearTimeout(l.current), []);
|
|
3688
3704
|
let u = () => {
|
|
3689
3705
|
if (!s) {
|
|
3690
|
-
if (
|
|
3706
|
+
if (mr()) {
|
|
3691
3707
|
a?.();
|
|
3692
3708
|
return;
|
|
3693
3709
|
}
|
|
3694
3710
|
c(!0), l.current = window.setTimeout(() => {
|
|
3695
3711
|
a?.(), c(!1);
|
|
3696
|
-
},
|
|
3712
|
+
}, pr);
|
|
3697
3713
|
}
|
|
3698
3714
|
};
|
|
3699
3715
|
return /* @__PURE__ */ M("button", {
|
|
3700
3716
|
type: "button",
|
|
3701
3717
|
onClick: r,
|
|
3702
3718
|
className: [
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
s ?
|
|
3719
|
+
fr.chip,
|
|
3720
|
+
fr[`chip--${e}`],
|
|
3721
|
+
s ? fr["chip--leaving"] : "",
|
|
3706
3722
|
o ?? ""
|
|
3707
3723
|
].filter(Boolean).join(" "),
|
|
3708
3724
|
children: [
|
|
3709
3725
|
e === "add" && /* @__PURE__ */ j(f, {
|
|
3710
3726
|
size: 14,
|
|
3711
3727
|
strokeWidth: N(14),
|
|
3712
|
-
className:
|
|
3728
|
+
className: fr.chip__lead,
|
|
3713
3729
|
"aria-hidden": "true"
|
|
3714
3730
|
}),
|
|
3715
3731
|
/* @__PURE__ */ j("span", {
|
|
3716
|
-
className:
|
|
3732
|
+
className: fr.chip__label,
|
|
3717
3733
|
children: t
|
|
3718
3734
|
}),
|
|
3719
3735
|
e === "default" && /* @__PURE__ */ j(n, {
|
|
3720
3736
|
size: 14,
|
|
3721
3737
|
strokeWidth: N(14),
|
|
3722
|
-
className:
|
|
3738
|
+
className: fr.chip__trail,
|
|
3723
3739
|
"aria-hidden": "true"
|
|
3724
3740
|
}),
|
|
3725
3741
|
e === "active" && /* @__PURE__ */ j("span", {
|
|
3726
3742
|
role: "button",
|
|
3727
3743
|
"aria-label": "Remove filter",
|
|
3728
|
-
className:
|
|
3744
|
+
className: fr.chip__remove,
|
|
3729
3745
|
onClick: (e) => {
|
|
3730
3746
|
e.stopPropagation(), u();
|
|
3731
3747
|
},
|
|
@@ -3737,7 +3753,7 @@ var J = {
|
|
|
3737
3753
|
})
|
|
3738
3754
|
]
|
|
3739
3755
|
});
|
|
3740
|
-
},
|
|
3756
|
+
}, gr = {
|
|
3741
3757
|
field: "_field_1nyia_10",
|
|
3742
3758
|
field__label: "_field__label_1nyia_18",
|
|
3743
3759
|
field__description: "_field__description_1nyia_26",
|
|
@@ -3751,80 +3767,80 @@ var J = {
|
|
|
3751
3767
|
input__control: "_input__control_1nyia_81",
|
|
3752
3768
|
input__icon: "_input__icon_1nyia_110",
|
|
3753
3769
|
"input--unstyled": "_input--unstyled_1nyia_120"
|
|
3754
|
-
},
|
|
3755
|
-
size:
|
|
3756
|
-
strokeWidth: N(
|
|
3757
|
-
}) : e,
|
|
3770
|
+
}, _r = 16, vr = (e) => k.isValidElement(e) ? k.cloneElement(e, {
|
|
3771
|
+
size: _r,
|
|
3772
|
+
strokeWidth: N(_r)
|
|
3773
|
+
}) : e, yr = k.forwardRef(({ label: e, description: t, error: n, size: r = "md", unstyled: i, leadingIcon: a, trailingIcon: o, disabled: s, id: c, className: l, ...u }, d) => {
|
|
3758
3774
|
let f = k.useId(), p = c ?? f, m = !!n;
|
|
3759
3775
|
return /* @__PURE__ */ M("div", {
|
|
3760
|
-
className: [
|
|
3776
|
+
className: [gr.field, l ?? ""].filter(Boolean).join(" "),
|
|
3761
3777
|
children: [
|
|
3762
3778
|
e && /* @__PURE__ */ j("label", {
|
|
3763
3779
|
htmlFor: p,
|
|
3764
|
-
className:
|
|
3780
|
+
className: gr.field__label,
|
|
3765
3781
|
children: e
|
|
3766
3782
|
}),
|
|
3767
3783
|
/* @__PURE__ */ M("div", {
|
|
3768
3784
|
className: [
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
m ?
|
|
3772
|
-
s ?
|
|
3785
|
+
gr.input,
|
|
3786
|
+
gr[`input--${r}`],
|
|
3787
|
+
m ? gr["input--error"] : "",
|
|
3788
|
+
s ? gr["input--disabled"] : ""
|
|
3773
3789
|
].filter(Boolean).join(" "),
|
|
3774
3790
|
children: [
|
|
3775
3791
|
a && /* @__PURE__ */ j("span", {
|
|
3776
|
-
className:
|
|
3792
|
+
className: gr.input__icon,
|
|
3777
3793
|
"aria-hidden": "true",
|
|
3778
|
-
children:
|
|
3794
|
+
children: vr(a)
|
|
3779
3795
|
}),
|
|
3780
3796
|
/* @__PURE__ */ j("input", {
|
|
3781
3797
|
ref: d,
|
|
3782
3798
|
id: p,
|
|
3783
|
-
className:
|
|
3799
|
+
className: gr.input__control,
|
|
3784
3800
|
disabled: s,
|
|
3785
3801
|
"aria-invalid": m || void 0,
|
|
3786
3802
|
"aria-describedby": t || n ? `${p}-desc` : void 0,
|
|
3787
3803
|
...u
|
|
3788
3804
|
}),
|
|
3789
3805
|
o && /* @__PURE__ */ j("span", {
|
|
3790
|
-
className:
|
|
3806
|
+
className: gr.input__icon,
|
|
3791
3807
|
"aria-hidden": "true",
|
|
3792
|
-
children:
|
|
3808
|
+
children: vr(o)
|
|
3793
3809
|
})
|
|
3794
3810
|
]
|
|
3795
3811
|
}),
|
|
3796
3812
|
(t || n) && /* @__PURE__ */ j("span", {
|
|
3797
3813
|
id: `${p}-desc`,
|
|
3798
|
-
className: m ?
|
|
3814
|
+
className: m ? gr.field__error : gr.field__description,
|
|
3799
3815
|
children: n || t
|
|
3800
3816
|
})
|
|
3801
3817
|
]
|
|
3802
3818
|
});
|
|
3803
3819
|
});
|
|
3804
|
-
|
|
3805
|
-
var
|
|
3820
|
+
yr.displayName = "Input";
|
|
3821
|
+
var br = { chart: "_chart_18fgd_2" }, xr = {
|
|
3806
3822
|
sm: 180,
|
|
3807
3823
|
md: 240,
|
|
3808
3824
|
lg: 320,
|
|
3809
3825
|
xl: 420
|
|
3810
|
-
},
|
|
3826
|
+
}, Sr = /* @__PURE__ */ new Set([
|
|
3811
3827
|
"dots",
|
|
3812
3828
|
"custom-dots",
|
|
3813
3829
|
"dots-colors",
|
|
3814
3830
|
"label",
|
|
3815
3831
|
"custom-label"
|
|
3816
|
-
]),
|
|
3817
|
-
let l = k.useRef(null), u =
|
|
3832
|
+
]), Cr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
|
|
3833
|
+
let l = k.useRef(null), u = It(l), d = [
|
|
3818
3834
|
1,
|
|
3819
3835
|
2,
|
|
3820
3836
|
3,
|
|
3821
3837
|
4,
|
|
3822
3838
|
5
|
|
3823
|
-
].map((e) => u(`--color-chart-${e}`) ??
|
|
3839
|
+
].map((e) => u(`--color-chart-${e}`) ?? Lt[e - 1]), f = [
|
|
3824
3840
|
d[1],
|
|
3825
3841
|
d[0],
|
|
3826
3842
|
...d.slice(2)
|
|
3827
|
-
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v =
|
|
3843
|
+
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = Sr.has(r), y = (e) => (t) => {
|
|
3828
3844
|
let { cx: n, cy: r } = t;
|
|
3829
3845
|
return /* @__PURE__ */ M("g", {
|
|
3830
3846
|
stroke: e,
|
|
@@ -3877,10 +3893,10 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
3877
3893
|
};
|
|
3878
3894
|
return /* @__PURE__ */ j("div", {
|
|
3879
3895
|
ref: l,
|
|
3880
|
-
className: [
|
|
3896
|
+
className: [br.chart, c ?? ""].filter(Boolean).join(" "),
|
|
3881
3897
|
children: /* @__PURE__ */ j(be, {
|
|
3882
3898
|
width: "100%",
|
|
3883
|
-
height: o ??
|
|
3899
|
+
height: o ?? xr[a],
|
|
3884
3900
|
children: /* @__PURE__ */ M(pe, {
|
|
3885
3901
|
data: e,
|
|
3886
3902
|
margin: {
|
|
@@ -3908,7 +3924,7 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
3908
3924
|
stroke: u("--color-border-default") ?? "#dbdad7",
|
|
3909
3925
|
strokeWidth: 1
|
|
3910
3926
|
},
|
|
3911
|
-
content: /* @__PURE__ */ j(
|
|
3927
|
+
content: /* @__PURE__ */ j(zt, {}),
|
|
3912
3928
|
wrapperStyle: { zIndex: 50 }
|
|
3913
3929
|
}),
|
|
3914
3930
|
s && /* @__PURE__ */ j(de, { wrapperStyle: {
|
|
@@ -3941,24 +3957,24 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
3941
3957
|
})
|
|
3942
3958
|
})
|
|
3943
3959
|
});
|
|
3944
|
-
},
|
|
3960
|
+
}, wr = {
|
|
3945
3961
|
menu: "_menu_1cx61_2",
|
|
3946
3962
|
divider: "_divider_1cx61_26"
|
|
3947
|
-
},
|
|
3948
|
-
let i =
|
|
3963
|
+
}, Tr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
|
|
3964
|
+
let i = Yn();
|
|
3949
3965
|
return /* @__PURE__ */ M("div", {
|
|
3950
3966
|
ref: i.ref,
|
|
3951
3967
|
...i.groupProps,
|
|
3952
3968
|
role: "menu",
|
|
3953
3969
|
"aria-label": r["aria-label"],
|
|
3954
3970
|
style: { minWidth: t },
|
|
3955
|
-
className: [
|
|
3971
|
+
className: [wr.menu, n ?? ""].filter(Boolean).join(" "),
|
|
3956
3972
|
children: [i.highlight, e]
|
|
3957
3973
|
});
|
|
3958
|
-
},
|
|
3959
|
-
className:
|
|
3974
|
+
}, Er = () => /* @__PURE__ */ j("div", {
|
|
3975
|
+
className: wr.divider,
|
|
3960
3976
|
role: "separator"
|
|
3961
|
-
}),
|
|
3977
|
+
}), Dr = {
|
|
3962
3978
|
item: "_item_1ezjp_2",
|
|
3963
3979
|
item__icon: "_item__icon_1ezjp_27",
|
|
3964
3980
|
item__label: "_item__label_1ezjp_28",
|
|
@@ -3967,7 +3983,7 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
3967
3983
|
"item--checked": "_item--checked_1ezjp_38",
|
|
3968
3984
|
"item--disabled": "_item--disabled_1ezjp_39",
|
|
3969
3985
|
"item--destructive": "_item--destructive_1ezjp_40"
|
|
3970
|
-
},
|
|
3986
|
+
}, Or = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
3971
3987
|
let o = e === "disabled";
|
|
3972
3988
|
return /* @__PURE__ */ M("div", {
|
|
3973
3989
|
role: "menuitem",
|
|
@@ -3980,28 +3996,28 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
3980
3996
|
o || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.());
|
|
3981
3997
|
},
|
|
3982
3998
|
className: [
|
|
3983
|
-
|
|
3984
|
-
|
|
3999
|
+
Dr.item,
|
|
4000
|
+
Dr[`item--${e}`],
|
|
3985
4001
|
a ?? ""
|
|
3986
4002
|
].filter(Boolean).join(" "),
|
|
3987
4003
|
children: [
|
|
3988
4004
|
t && /* @__PURE__ */ j("span", {
|
|
3989
|
-
className:
|
|
4005
|
+
className: Dr.item__icon,
|
|
3990
4006
|
"aria-hidden": "true",
|
|
3991
4007
|
children: t
|
|
3992
4008
|
}),
|
|
3993
4009
|
/* @__PURE__ */ j("span", {
|
|
3994
|
-
className:
|
|
4010
|
+
className: Dr.item__label,
|
|
3995
4011
|
children: r
|
|
3996
4012
|
}),
|
|
3997
4013
|
n && /* @__PURE__ */ j("kbd", {
|
|
3998
|
-
className:
|
|
4014
|
+
className: Dr.item__shortcut,
|
|
3999
4015
|
children: n
|
|
4000
4016
|
}),
|
|
4001
4017
|
e === "checked" && /* @__PURE__ */ j(x, {
|
|
4002
4018
|
size: 16,
|
|
4003
4019
|
strokeWidth: N(16),
|
|
4004
|
-
className:
|
|
4020
|
+
className: Dr.item__check,
|
|
4005
4021
|
"aria-hidden": "true"
|
|
4006
4022
|
})
|
|
4007
4023
|
]
|
|
@@ -4030,7 +4046,7 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
4030
4046
|
foot__receipt: "_foot__receipt_1q1m5_32",
|
|
4031
4047
|
system: "_system_1q1m5_34",
|
|
4032
4048
|
system__pill: "_system__pill_1q1m5_35"
|
|
4033
|
-
},
|
|
4049
|
+
}, kr = ({ type: e = "received", content: t = "text", avatar: n, authorName: r, timestamp: i, children: a, image: o, fileName: s, fileSize: c, reactions: l, read: u, className: d }) => {
|
|
4034
4050
|
if (e === "system") return /* @__PURE__ */ j("div", {
|
|
4035
4051
|
className: [Y.system, d ?? ""].filter(Boolean).join(" "),
|
|
4036
4052
|
children: /* @__PURE__ */ j("span", {
|
|
@@ -4116,19 +4132,19 @@ var vr = { chart: "_chart_18fgd_2" }, yr = {
|
|
|
4116
4132
|
]
|
|
4117
4133
|
})]
|
|
4118
4134
|
});
|
|
4119
|
-
},
|
|
4135
|
+
}, Ar = {
|
|
4120
4136
|
pagination: "_pagination_e1j7r_2",
|
|
4121
4137
|
page: "_page_e1j7r_9",
|
|
4122
4138
|
arrow: "_arrow_e1j7r_9",
|
|
4123
4139
|
"page--active": "_page--active_e1j7r_26",
|
|
4124
4140
|
ellipsis: "_ellipsis_e1j7r_40"
|
|
4125
|
-
},
|
|
4126
|
-
function
|
|
4141
|
+
}, jr = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
4142
|
+
function Mr(e, t, n) {
|
|
4127
4143
|
let r = n * 2 + 5;
|
|
4128
|
-
if (e <= r) return
|
|
4144
|
+
if (e <= r) return jr(1, e);
|
|
4129
4145
|
let i = r - 2, a = n * 2 + 1;
|
|
4130
4146
|
if (t <= i) return [
|
|
4131
|
-
...
|
|
4147
|
+
...jr(1, i),
|
|
4132
4148
|
"end-ellipsis",
|
|
4133
4149
|
e
|
|
4134
4150
|
];
|
|
@@ -4136,19 +4152,19 @@ function Ar(e, t, n) {
|
|
|
4136
4152
|
return s <= e - 3 ? [
|
|
4137
4153
|
1,
|
|
4138
4154
|
"start-ellipsis",
|
|
4139
|
-
...
|
|
4155
|
+
...jr(o, s),
|
|
4140
4156
|
"end-ellipsis",
|
|
4141
4157
|
e
|
|
4142
4158
|
] : [
|
|
4143
4159
|
1,
|
|
4144
4160
|
"start-ellipsis",
|
|
4145
|
-
...
|
|
4161
|
+
...jr(e - i + 1, e)
|
|
4146
4162
|
];
|
|
4147
4163
|
}
|
|
4148
|
-
var
|
|
4164
|
+
var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i }) => {
|
|
4149
4165
|
let a = k.useRef(null);
|
|
4150
4166
|
if (e < 1) return null;
|
|
4151
|
-
let o = Math.min(Math.max(t, 1), e), s = Math.max(0, r), c =
|
|
4167
|
+
let o = Math.min(Math.max(t, 1), e), s = Math.max(0, r), c = Mr(e, o, s), l = a.current;
|
|
4152
4168
|
if (l && l.total === e && l.siblings === s) {
|
|
4153
4169
|
let t = l.tokens, n = t.includes(o), r = o === 1 && t[1] === "start-ellipsis" || o === e && t[t.length - 2] === "end-ellipsis";
|
|
4154
4170
|
n && !r && (c = t);
|
|
@@ -4158,12 +4174,12 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4158
4174
|
siblings: s,
|
|
4159
4175
|
tokens: c
|
|
4160
4176
|
}, /* @__PURE__ */ M("nav", {
|
|
4161
|
-
className: [
|
|
4177
|
+
className: [Ar.pagination, i ?? ""].filter(Boolean).join(" "),
|
|
4162
4178
|
"aria-label": "Pagination",
|
|
4163
4179
|
children: [
|
|
4164
4180
|
/* @__PURE__ */ j("button", {
|
|
4165
4181
|
type: "button",
|
|
4166
|
-
className:
|
|
4182
|
+
className: Ar.arrow,
|
|
4167
4183
|
disabled: o <= 1,
|
|
4168
4184
|
onClick: () => n(o - 1),
|
|
4169
4185
|
"aria-label": "Previous page",
|
|
@@ -4174,19 +4190,19 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4174
4190
|
}),
|
|
4175
4191
|
c.map((e) => typeof e == "number" ? /* @__PURE__ */ j("button", {
|
|
4176
4192
|
type: "button",
|
|
4177
|
-
className: [
|
|
4193
|
+
className: [Ar.page, e === o ? Ar["page--active"] : ""].filter(Boolean).join(" "),
|
|
4178
4194
|
"aria-current": e === o ? "page" : void 0,
|
|
4179
4195
|
"aria-label": `Page ${e}`,
|
|
4180
4196
|
onClick: () => e !== o && n(e),
|
|
4181
4197
|
children: e
|
|
4182
4198
|
}, e) : /* @__PURE__ */ j("span", {
|
|
4183
|
-
className:
|
|
4199
|
+
className: Ar.ellipsis,
|
|
4184
4200
|
"aria-hidden": "true",
|
|
4185
4201
|
children: "…"
|
|
4186
4202
|
}, e)),
|
|
4187
4203
|
/* @__PURE__ */ j("button", {
|
|
4188
4204
|
type: "button",
|
|
4189
|
-
className:
|
|
4205
|
+
className: Ar.arrow,
|
|
4190
4206
|
disabled: o >= e,
|
|
4191
4207
|
onClick: () => n(o + 1),
|
|
4192
4208
|
"aria-label": "Next page",
|
|
@@ -4197,14 +4213,14 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4197
4213
|
})
|
|
4198
4214
|
]
|
|
4199
4215
|
});
|
|
4200
|
-
},
|
|
4216
|
+
}, Pr = {
|
|
4201
4217
|
track: "_track_1br5v_2",
|
|
4202
4218
|
segment: "_segment_1br5v_12",
|
|
4203
4219
|
"segment--active": "_segment--active_1br5v_38",
|
|
4204
4220
|
thumb: "_thumb_1br5v_44",
|
|
4205
4221
|
"thumb--animated": "_thumb--animated_1br5v_62",
|
|
4206
4222
|
"track--fullWidth": "_track--fullWidth_1br5v_68"
|
|
4207
|
-
},
|
|
4223
|
+
}, Fr = ({ options: e, value: t, defaultValue: n, onChange: r, fullWidth: i, className: a }) => {
|
|
4208
4224
|
let o = t !== void 0, [s, c] = k.useState(n ?? e[0]?.value), l = o ? t : s, u = (e) => {
|
|
4209
4225
|
o || c(e), r?.(e);
|
|
4210
4226
|
}, d = k.useRef(null), f = k.useRef({}), [p, m] = k.useState(null), [h, g] = k.useState(!1);
|
|
@@ -4225,13 +4241,13 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4225
4241
|
ref: d,
|
|
4226
4242
|
role: "tablist",
|
|
4227
4243
|
className: [
|
|
4228
|
-
|
|
4229
|
-
i ?
|
|
4244
|
+
Pr.track,
|
|
4245
|
+
i ? Pr["track--fullWidth"] : "",
|
|
4230
4246
|
a ?? ""
|
|
4231
4247
|
].filter(Boolean).join(" "),
|
|
4232
4248
|
children: [p && /* @__PURE__ */ j("span", {
|
|
4233
4249
|
"aria-hidden": "true",
|
|
4234
|
-
className: [
|
|
4250
|
+
className: [Pr.thumb, h ? Pr["thumb--animated"] : ""].filter(Boolean).join(" "),
|
|
4235
4251
|
style: {
|
|
4236
4252
|
transform: `translateX(${p.left}px)`,
|
|
4237
4253
|
width: p.width
|
|
@@ -4245,7 +4261,7 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4245
4261
|
role: "tab",
|
|
4246
4262
|
type: "button",
|
|
4247
4263
|
"aria-selected": t,
|
|
4248
|
-
className: [
|
|
4264
|
+
className: [Pr.segment, t ? Pr["segment--active"] : ""].filter(Boolean).join(" "),
|
|
4249
4265
|
onClick: () => u(e.value),
|
|
4250
4266
|
children: e.label
|
|
4251
4267
|
}, e.value);
|
|
@@ -4281,7 +4297,7 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4281
4297
|
option__check: "_option__check_1b512_179",
|
|
4282
4298
|
optionHighlight: "_optionHighlight_1b512_151",
|
|
4283
4299
|
"optionHighlight--animated": "_optionHighlight--animated_1b512_201"
|
|
4284
|
-
},
|
|
4300
|
+
}, Ir = ({ label: e, description: t, error: n, size: r = "md", placeholder: i = "Select an option", options: a, value: o, defaultValue: s, onChange: c, disabled: l, id: u, className: d }) => {
|
|
4285
4301
|
let f = k.useId(), p = `${u ?? f}-trigger`, m = `${u ?? f}-panel`, h = !!n, [g, _] = k.useState(s), v = o === void 0 ? g : o, y = a.find((e) => e.value === v), [b, x] = k.useState(!1), [S, C] = k.useState(!1), [w, T] = k.useState(0), E = k.useRef(null), D = k.useRef(null), O = k.useRef(null), ee = k.useRef({}), [te, ne] = k.useState(null), [re, ie] = k.useState(!1);
|
|
4286
4302
|
k.useLayoutEffect(() => {
|
|
4287
4303
|
let e = ee.current[w];
|
|
@@ -4312,7 +4328,7 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4312
4328
|
});
|
|
4313
4329
|
return e.observe(O.current), () => e.disconnect();
|
|
4314
4330
|
}, [S]);
|
|
4315
|
-
let ae =
|
|
4331
|
+
let ae = rt(E, S), [oe, A] = k.useState(null);
|
|
4316
4332
|
k.useEffect(() => {
|
|
4317
4333
|
b && C(!0);
|
|
4318
4334
|
}, [b]), k.useLayoutEffect(() => {
|
|
@@ -4487,43 +4503,43 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4487
4503
|
})
|
|
4488
4504
|
]
|
|
4489
4505
|
});
|
|
4490
|
-
},
|
|
4506
|
+
}, Lr = {
|
|
4491
4507
|
sidebar: "_sidebar_alxv4_4",
|
|
4492
4508
|
"sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
|
|
4493
|
-
},
|
|
4494
|
-
let r =
|
|
4509
|
+
}, Rr = ({ collapsed: e = !1, children: t, className: n }) => {
|
|
4510
|
+
let r = Yn();
|
|
4495
4511
|
return /* @__PURE__ */ M("nav", {
|
|
4496
4512
|
ref: r.ref,
|
|
4497
4513
|
...r.groupProps,
|
|
4498
4514
|
className: [
|
|
4499
|
-
|
|
4500
|
-
e ?
|
|
4515
|
+
Lr.sidebar,
|
|
4516
|
+
e ? Lr["sidebar--collapsed"] : "",
|
|
4501
4517
|
n ?? ""
|
|
4502
4518
|
].filter(Boolean).join(" "),
|
|
4503
4519
|
"data-collapsed": e,
|
|
4504
4520
|
children: [r.highlight, t]
|
|
4505
4521
|
});
|
|
4506
|
-
},
|
|
4507
|
-
className:
|
|
4522
|
+
}, zr = { divider: "_divider_1oof5_1" }, Br = () => /* @__PURE__ */ j("div", {
|
|
4523
|
+
className: zr.divider,
|
|
4508
4524
|
role: "separator"
|
|
4509
|
-
}),
|
|
4510
|
-
className:
|
|
4525
|
+
}), Vr = { groupLabel: "_groupLabel_62q1j_2" }, Hr = ({ children: e }) => /* @__PURE__ */ j("div", {
|
|
4526
|
+
className: Vr.groupLabel,
|
|
4511
4527
|
children: e
|
|
4512
4528
|
}), Z = {
|
|
4513
|
-
header: "
|
|
4514
|
-
"header--collapsed": "_header--
|
|
4515
|
-
"header--workspace": "_header--
|
|
4516
|
-
header__subtitle: "
|
|
4517
|
-
header__switch: "
|
|
4518
|
-
header__logoWrap: "
|
|
4519
|
-
header__logo: "
|
|
4520
|
-
header__logoContent: "
|
|
4521
|
-
header__logoIcon: "
|
|
4522
|
-
header__text: "
|
|
4523
|
-
"header__text--collapsed": "_header__text--
|
|
4524
|
-
header__title: "
|
|
4525
|
-
header__toggle: "
|
|
4526
|
-
},
|
|
4529
|
+
header: "_header_wjged_2",
|
|
4530
|
+
"header--collapsed": "_header--collapsed_wjged_12",
|
|
4531
|
+
"header--workspace": "_header--workspace_wjged_15",
|
|
4532
|
+
header__subtitle: "_header__subtitle_wjged_20",
|
|
4533
|
+
header__switch: "_header__switch_wjged_21",
|
|
4534
|
+
header__logoWrap: "_header__logoWrap_wjged_24",
|
|
4535
|
+
header__logo: "_header__logo_wjged_23",
|
|
4536
|
+
header__logoContent: "_header__logoContent_wjged_55",
|
|
4537
|
+
header__logoIcon: "_header__logoIcon_wjged_56",
|
|
4538
|
+
header__text: "_header__text_wjged_62",
|
|
4539
|
+
"header__text--collapsed": "_header__text--collapsed_wjged_73",
|
|
4540
|
+
header__title: "_header__title_wjged_77",
|
|
4541
|
+
header__toggle: "_header__toggle_wjged_79"
|
|
4542
|
+
}, Ur = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: i, onToggle: a, toggleIcon: o = y }) => /* @__PURE__ */ M("div", {
|
|
4527
4543
|
className: [
|
|
4528
4544
|
Z.header,
|
|
4529
4545
|
e === "workspace" ? Z["header--workspace"] : "",
|
|
@@ -4586,7 +4602,7 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4586
4602
|
})
|
|
4587
4603
|
})
|
|
4588
4604
|
]
|
|
4589
|
-
}),
|
|
4605
|
+
}), Wr = {
|
|
4590
4606
|
item: "_item_873gi_5",
|
|
4591
4607
|
"item--disabled": "_item--disabled_873gi_37",
|
|
4592
4608
|
"item--active": "_item--active_873gi_37",
|
|
@@ -4599,20 +4615,20 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4599
4615
|
item__label: "_item__label_873gi_142",
|
|
4600
4616
|
"item__label--collapsed": "_item__label--collapsed_873gi_151",
|
|
4601
4617
|
"item__chevron--expanded": "_item__chevron--expanded_873gi_174"
|
|
4602
|
-
},
|
|
4618
|
+
}, Gr = ({ icon: e, label: t, active: n, activeIndicator: r = !0, disabled: i, badge: a, hasSubmenu: o, collapsed: s, expanded: c, onClick: l, href: u, nativeTooltip: d = !0 }) => {
|
|
4603
4619
|
let f = n && r, m = n && !r, h = [
|
|
4604
|
-
|
|
4605
|
-
f ?
|
|
4606
|
-
m ?
|
|
4607
|
-
i ?
|
|
4608
|
-
s ?
|
|
4620
|
+
Wr.item,
|
|
4621
|
+
f ? Wr["item--active"] : "",
|
|
4622
|
+
m ? Wr["item--active-flat"] : "",
|
|
4623
|
+
i ? Wr["item--disabled"] : "",
|
|
4624
|
+
s ? Wr["item--collapsed"] : ""
|
|
4609
4625
|
].filter(Boolean).join(" "), g = /* @__PURE__ */ M(A, { children: [
|
|
4610
4626
|
/* @__PURE__ */ j("span", {
|
|
4611
|
-
className:
|
|
4627
|
+
className: Wr.item__bar,
|
|
4612
4628
|
"aria-hidden": "true"
|
|
4613
4629
|
}),
|
|
4614
4630
|
e && /* @__PURE__ */ j("span", {
|
|
4615
|
-
className:
|
|
4631
|
+
className: Wr.item__icon,
|
|
4616
4632
|
"aria-hidden": "true",
|
|
4617
4633
|
children: /* @__PURE__ */ j(e, {
|
|
4618
4634
|
size: 18,
|
|
@@ -4620,15 +4636,15 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4620
4636
|
})
|
|
4621
4637
|
}),
|
|
4622
4638
|
/* @__PURE__ */ j("span", {
|
|
4623
|
-
className: [
|
|
4639
|
+
className: [Wr.item__label, s ? Wr["item__label--collapsed"] : ""].filter(Boolean).join(" "),
|
|
4624
4640
|
children: t
|
|
4625
4641
|
}),
|
|
4626
4642
|
!s && a && /* @__PURE__ */ j("span", {
|
|
4627
|
-
className:
|
|
4643
|
+
className: Wr.item__badge,
|
|
4628
4644
|
children: a
|
|
4629
4645
|
}),
|
|
4630
4646
|
!s && o && /* @__PURE__ */ j("span", {
|
|
4631
|
-
className: [
|
|
4647
|
+
className: [Wr.item__chevron, c ? Wr["item__chevron--expanded"] : ""].filter(Boolean).join(" "),
|
|
4632
4648
|
"aria-hidden": "true",
|
|
4633
4649
|
children: /* @__PURE__ */ j(p, {
|
|
4634
4650
|
size: 16,
|
|
@@ -4654,7 +4670,7 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4654
4670
|
..._,
|
|
4655
4671
|
children: g
|
|
4656
4672
|
});
|
|
4657
|
-
},
|
|
4673
|
+
}, Kr = {
|
|
4658
4674
|
promo: "_promo_1ou3w_4",
|
|
4659
4675
|
promo__head: "_promo__head_1ou3w_20",
|
|
4660
4676
|
promo__icon: "_promo__icon_1ou3w_21",
|
|
@@ -4662,14 +4678,14 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4662
4678
|
promo__dismiss: "_promo__dismiss_1ou3w_23",
|
|
4663
4679
|
promo__desc: "_promo__desc_1ou3w_30",
|
|
4664
4680
|
promo__cta: "_promo__cta_1ou3w_33"
|
|
4665
|
-
},
|
|
4666
|
-
className: [
|
|
4681
|
+
}, qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: a, onDismiss: s, icon: c = o }) => /* @__PURE__ */ M("div", {
|
|
4682
|
+
className: [Kr.promo, Kr[`promo--${e}`]].join(" "),
|
|
4667
4683
|
children: [
|
|
4668
4684
|
/* @__PURE__ */ M("div", {
|
|
4669
|
-
className:
|
|
4685
|
+
className: Kr.promo__head,
|
|
4670
4686
|
children: [
|
|
4671
4687
|
/* @__PURE__ */ j("span", {
|
|
4672
|
-
className:
|
|
4688
|
+
className: Kr.promo__icon,
|
|
4673
4689
|
"aria-hidden": "true",
|
|
4674
4690
|
children: /* @__PURE__ */ j(c, {
|
|
4675
4691
|
size: 16,
|
|
@@ -4677,12 +4693,12 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4677
4693
|
})
|
|
4678
4694
|
}),
|
|
4679
4695
|
/* @__PURE__ */ j("span", {
|
|
4680
|
-
className:
|
|
4696
|
+
className: Kr.promo__title,
|
|
4681
4697
|
children: t
|
|
4682
4698
|
}),
|
|
4683
4699
|
s && /* @__PURE__ */ j("button", {
|
|
4684
4700
|
type: "button",
|
|
4685
|
-
className:
|
|
4701
|
+
className: Kr.promo__dismiss,
|
|
4686
4702
|
onClick: s,
|
|
4687
4703
|
"aria-label": "Dismiss",
|
|
4688
4704
|
children: /* @__PURE__ */ j(i, {
|
|
@@ -4693,37 +4709,37 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4693
4709
|
]
|
|
4694
4710
|
}),
|
|
4695
4711
|
n && /* @__PURE__ */ j("p", {
|
|
4696
|
-
className:
|
|
4712
|
+
className: Kr.promo__desc,
|
|
4697
4713
|
children: n
|
|
4698
4714
|
}),
|
|
4699
4715
|
r && /* @__PURE__ */ j(F, {
|
|
4700
4716
|
variant: "primary",
|
|
4701
4717
|
size: "sm",
|
|
4702
|
-
className:
|
|
4718
|
+
className: Kr.promo__cta,
|
|
4703
4719
|
onClick: a,
|
|
4704
4720
|
children: r
|
|
4705
4721
|
})
|
|
4706
4722
|
]
|
|
4707
|
-
}),
|
|
4723
|
+
}), Jr = {
|
|
4708
4724
|
subItem: "_subItem_1d7az_2",
|
|
4709
4725
|
"subItem--disabled": "_subItem--disabled_1d7az_26",
|
|
4710
4726
|
"subItem--active": "_subItem--active_1d7az_27",
|
|
4711
4727
|
subItem__dot: "_subItem__dot_1d7az_31",
|
|
4712
4728
|
subItem__label: "_subItem__label_1d7az_41"
|
|
4713
|
-
},
|
|
4729
|
+
}, Yr = ({ label: e, active: t, disabled: n, onClick: r, href: i }) => {
|
|
4714
4730
|
let a = {
|
|
4715
4731
|
className: [
|
|
4716
|
-
|
|
4717
|
-
t ?
|
|
4718
|
-
n ?
|
|
4732
|
+
Jr.subItem,
|
|
4733
|
+
t ? Jr["subItem--active"] : "",
|
|
4734
|
+
n ? Jr["subItem--disabled"] : ""
|
|
4719
4735
|
].filter(Boolean).join(" "),
|
|
4720
4736
|
"data-hover-item": "",
|
|
4721
4737
|
"aria-current": t ? "page" : void 0
|
|
4722
4738
|
}, o = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("span", {
|
|
4723
|
-
className:
|
|
4739
|
+
className: Jr.subItem__dot,
|
|
4724
4740
|
"aria-hidden": "true"
|
|
4725
4741
|
}), /* @__PURE__ */ j("span", {
|
|
4726
|
-
className:
|
|
4742
|
+
className: Jr.subItem__label,
|
|
4727
4743
|
children: e
|
|
4728
4744
|
})] });
|
|
4729
4745
|
return i && !n ? /* @__PURE__ */ j("a", {
|
|
@@ -4737,49 +4753,49 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4737
4753
|
...a,
|
|
4738
4754
|
children: o
|
|
4739
4755
|
});
|
|
4740
|
-
},
|
|
4756
|
+
}, Xr = {
|
|
4741
4757
|
skeleton: "_skeleton_94hr3_9",
|
|
4742
4758
|
"skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
|
|
4743
4759
|
"skeleton--text": "_skeleton--text_94hr3_22",
|
|
4744
4760
|
"skeleton--rect": "_skeleton--rect_94hr3_29",
|
|
4745
4761
|
"skeleton--circle": "_skeleton--circle_94hr3_35"
|
|
4746
|
-
},
|
|
4762
|
+
}, Zr = ({ variant: e = "text", width: t, height: n, className: r }) => {
|
|
4747
4763
|
let i = {};
|
|
4748
4764
|
return t !== void 0 && (i.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (i.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ j("span", {
|
|
4749
4765
|
"aria-hidden": "true",
|
|
4750
4766
|
className: [
|
|
4751
|
-
|
|
4752
|
-
|
|
4767
|
+
Xr.skeleton,
|
|
4768
|
+
Xr[`skeleton--${e}`],
|
|
4753
4769
|
r ?? ""
|
|
4754
4770
|
].filter(Boolean).join(" "),
|
|
4755
4771
|
style: i
|
|
4756
4772
|
});
|
|
4757
|
-
},
|
|
4773
|
+
}, Qr = {
|
|
4758
4774
|
field: "_field_u7te8_3",
|
|
4759
4775
|
header: "_header_u7te8_4",
|
|
4760
4776
|
label: "_label_u7te8_5",
|
|
4761
4777
|
value: "_value_u7te8_6",
|
|
4762
4778
|
slider: "_slider_u7te8_8",
|
|
4763
4779
|
"sakani-slider-bounce": "_sakani-slider-bounce_u7te8_1"
|
|
4764
|
-
},
|
|
4780
|
+
}, $r = 1.2, ei = 460, ti = k.forwardRef(({ label: e, showValue: t, min: n = 0, max: r = 100, value: i, defaultValue: a, disabled: o, id: s, className: c, onChange: l, ...u }, d) => {
|
|
4765
4781
|
let f = k.useId(), p = s ?? f, m = Number(i ?? a ?? n), [h, g] = k.useState(m), _ = i === void 0 ? h : Number(i), v = (_ - n) / (r - n) * 100, y = k.useRef(null), b = (e) => {
|
|
4766
4782
|
y.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
4767
4783
|
}, x = k.useRef(null), S = k.useRef(void 0);
|
|
4768
4784
|
k.useEffect(() => () => window.clearTimeout(S.current), []);
|
|
4769
4785
|
let C = (e) => {
|
|
4770
4786
|
let t = y.current;
|
|
4771
|
-
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(S.current), S.current = window.setTimeout(() => t.removeAttribute("data-bounce"),
|
|
4787
|
+
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(S.current), S.current = window.setTimeout(() => t.removeAttribute("data-bounce"), ei));
|
|
4772
4788
|
};
|
|
4773
4789
|
return /* @__PURE__ */ M("div", {
|
|
4774
|
-
className: [
|
|
4790
|
+
className: [Qr.field, c ?? ""].filter(Boolean).join(" "),
|
|
4775
4791
|
children: [(e || t) && /* @__PURE__ */ M("div", {
|
|
4776
|
-
className:
|
|
4792
|
+
className: Qr.header,
|
|
4777
4793
|
children: [e && /* @__PURE__ */ j("label", {
|
|
4778
4794
|
htmlFor: p,
|
|
4779
|
-
className:
|
|
4795
|
+
className: Qr.label,
|
|
4780
4796
|
children: e
|
|
4781
4797
|
}), t && /* @__PURE__ */ j("span", {
|
|
4782
|
-
className:
|
|
4798
|
+
className: Qr.value,
|
|
4783
4799
|
children: _
|
|
4784
4800
|
})]
|
|
4785
4801
|
}), /* @__PURE__ */ j("input", {
|
|
@@ -4793,19 +4809,19 @@ var jr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
|
|
|
4793
4809
|
disabled: o,
|
|
4794
4810
|
onChange: (e) => {
|
|
4795
4811
|
let t = Number(e.target.value), a = performance.now(), o = x.current;
|
|
4796
|
-
o && (t === r || t === n) && o.v !== t && Math.abs(t - o.v) / (r - n) / Math.max((a - o.t) / 1e3, .001) >=
|
|
4812
|
+
o && (t === r || t === n) && o.v !== t && Math.abs(t - o.v) / (r - n) / Math.max((a - o.t) / 1e3, .001) >= $r && C(t === r ? 1 : -1), x.current = {
|
|
4797
4813
|
v: t,
|
|
4798
4814
|
t: a
|
|
4799
4815
|
}, i === void 0 && g(t), l?.(e);
|
|
4800
4816
|
},
|
|
4801
|
-
className:
|
|
4817
|
+
className: Qr.slider,
|
|
4802
4818
|
style: { "--pct": `${v}%` },
|
|
4803
4819
|
...u
|
|
4804
4820
|
})]
|
|
4805
4821
|
});
|
|
4806
4822
|
});
|
|
4807
|
-
|
|
4808
|
-
var
|
|
4823
|
+
ti.displayName = "Slider";
|
|
4824
|
+
var ni = {
|
|
4809
4825
|
card: "_card_1qi93_4",
|
|
4810
4826
|
"card--featured": "_card--featured_1qi93_24",
|
|
4811
4827
|
card__head: "_card__head_1qi93_26",
|
|
@@ -4818,19 +4834,19 @@ var ei = {
|
|
|
4818
4834
|
"card--trend-up": "_card--trend-up_1qi93_68",
|
|
4819
4835
|
"card--trend-down": "_card--trend-down_1qi93_69",
|
|
4820
4836
|
card__description: "_card__description_1qi93_72"
|
|
4821
|
-
},
|
|
4837
|
+
}, ri = {
|
|
4822
4838
|
up: b,
|
|
4823
4839
|
down: e,
|
|
4824
4840
|
flat: r
|
|
4825
|
-
},
|
|
4841
|
+
}, ii = {
|
|
4826
4842
|
up: "success",
|
|
4827
4843
|
down: "danger",
|
|
4828
4844
|
flat: "neutral"
|
|
4829
|
-
},
|
|
4845
|
+
}, ai = ({ data: e }) => {
|
|
4830
4846
|
if (e.length < 2) return null;
|
|
4831
4847
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
4832
4848
|
return /* @__PURE__ */ j("svg", {
|
|
4833
|
-
className:
|
|
4849
|
+
className: oi,
|
|
4834
4850
|
viewBox: "0 0 100 32",
|
|
4835
4851
|
preserveAspectRatio: "none",
|
|
4836
4852
|
"aria-hidden": "true",
|
|
@@ -4843,21 +4859,21 @@ var ei = {
|
|
|
4843
4859
|
strokeLinecap: "round"
|
|
4844
4860
|
})
|
|
4845
4861
|
});
|
|
4846
|
-
},
|
|
4847
|
-
let f =
|
|
4862
|
+
}, oi = ni.card__sparkline, si = ({ title: e, value: t, description: n, sparkline: r, delta: i, trend: a = "up", badgeVariant: o, variant: s = "minimal", icon: c, showMenu: l, onMenu: u, className: d }) => {
|
|
4863
|
+
let f = ri[a], p = (s === "icon" || s === "featured") && c;
|
|
4848
4864
|
return /* @__PURE__ */ M("div", {
|
|
4849
4865
|
className: [
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4866
|
+
ni.card,
|
|
4867
|
+
ni[`card--${s}`],
|
|
4868
|
+
ni[`card--trend-${a}`],
|
|
4853
4869
|
d ?? ""
|
|
4854
4870
|
].filter(Boolean).join(" "),
|
|
4855
4871
|
children: [
|
|
4856
4872
|
/* @__PURE__ */ M("div", {
|
|
4857
|
-
className:
|
|
4873
|
+
className: ni.card__head,
|
|
4858
4874
|
children: [
|
|
4859
4875
|
p && /* @__PURE__ */ j("span", {
|
|
4860
|
-
className:
|
|
4876
|
+
className: ni.card__icon,
|
|
4861
4877
|
"aria-hidden": "true",
|
|
4862
4878
|
children: /* @__PURE__ */ j(c, {
|
|
4863
4879
|
size: 18,
|
|
@@ -4865,12 +4881,12 @@ var ei = {
|
|
|
4865
4881
|
})
|
|
4866
4882
|
}),
|
|
4867
4883
|
/* @__PURE__ */ j("span", {
|
|
4868
|
-
className:
|
|
4884
|
+
className: ni.card__title,
|
|
4869
4885
|
children: e
|
|
4870
4886
|
}),
|
|
4871
4887
|
l && /* @__PURE__ */ j("button", {
|
|
4872
4888
|
type: "button",
|
|
4873
|
-
className:
|
|
4889
|
+
className: ni.card__menu,
|
|
4874
4890
|
onClick: u,
|
|
4875
4891
|
"aria-label": "More options",
|
|
4876
4892
|
children: /* @__PURE__ */ j(ie, {
|
|
@@ -4881,21 +4897,21 @@ var ei = {
|
|
|
4881
4897
|
]
|
|
4882
4898
|
}),
|
|
4883
4899
|
/* @__PURE__ */ j("div", {
|
|
4884
|
-
className:
|
|
4900
|
+
className: ni.card__value,
|
|
4885
4901
|
children: t
|
|
4886
4902
|
}),
|
|
4887
|
-
r && /* @__PURE__ */ j(
|
|
4903
|
+
r && /* @__PURE__ */ j(ai, { data: r }),
|
|
4888
4904
|
(i || n) && /* @__PURE__ */ M("div", {
|
|
4889
|
-
className:
|
|
4890
|
-
children: [i && /* @__PURE__ */ j(
|
|
4891
|
-
variant: o ??
|
|
4905
|
+
className: ni.card__meta,
|
|
4906
|
+
children: [i && /* @__PURE__ */ j(Gt, {
|
|
4907
|
+
variant: o ?? ii[a],
|
|
4892
4908
|
leftIcon: /* @__PURE__ */ j(f, {
|
|
4893
4909
|
size: 12,
|
|
4894
4910
|
strokeWidth: 2
|
|
4895
4911
|
}),
|
|
4896
4912
|
children: i
|
|
4897
4913
|
}), n && /* @__PURE__ */ j("p", {
|
|
4898
|
-
className:
|
|
4914
|
+
className: ni.card__description,
|
|
4899
4915
|
children: n
|
|
4900
4916
|
})]
|
|
4901
4917
|
})
|
|
@@ -4929,18 +4945,18 @@ var ei = {
|
|
|
4929
4945
|
"bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
|
|
4930
4946
|
dragCell: "_dragCell_9nqt2_235",
|
|
4931
4947
|
dragHandle: "_dragHandle_9nqt2_251"
|
|
4932
|
-
},
|
|
4933
|
-
function
|
|
4948
|
+
}, ci = 640;
|
|
4949
|
+
function li(e) {
|
|
4934
4950
|
let [t, n] = k.useState(!1);
|
|
4935
4951
|
return k.useEffect(() => {
|
|
4936
4952
|
if (e !== "auto") return;
|
|
4937
|
-
let t = window.matchMedia(`(max-width: ${
|
|
4953
|
+
let t = window.matchMedia(`(max-width: ${ci}px)`);
|
|
4938
4954
|
n(t.matches);
|
|
4939
4955
|
let r = (e) => n(e.matches);
|
|
4940
4956
|
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
4941
4957
|
}, [e]), e === "default" ? "default" : e === "stacked" || t ? "stacked" : "default";
|
|
4942
4958
|
}
|
|
4943
|
-
var
|
|
4959
|
+
var ui = ({ checked: e, indeterminate: t, onChange: n, label: r }) => {
|
|
4944
4960
|
let i = k.useRef(null);
|
|
4945
4961
|
return k.useEffect(() => {
|
|
4946
4962
|
i.current && (i.current.indeterminate = !!t);
|
|
@@ -4971,10 +4987,10 @@ var ci = ({ checked: e, indeterminate: t, onChange: n, label: r }) => {
|
|
|
4971
4987
|
})]
|
|
4972
4988
|
});
|
|
4973
4989
|
};
|
|
4974
|
-
function
|
|
4975
|
-
let d =
|
|
4990
|
+
function di({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionChange: i, rowKey: a, reorderable: o, onReorder: s, bordered: c = !0, responsive: l = "auto", className: u }) {
|
|
4991
|
+
let d = li(l), f = r !== void 0, [p, m] = k.useState([]), h = f ? r : p, g = (e) => {
|
|
4976
4992
|
f || m(e), i?.(e);
|
|
4977
|
-
}, _ = t.length > 0 && h.length === t.length, v = h.length > 0 && !_, [y, b] = k.useState(null), [x, S] = k.useState(null), C =
|
|
4993
|
+
}, _ = t.length > 0 && h.length === t.length, v = h.length > 0 && !_, [y, b] = k.useState(null), [x, S] = k.useState(null), C = Yn(), w = () => {
|
|
4978
4994
|
if (y === null || x === null || y === x) {
|
|
4979
4995
|
b(null), S(null);
|
|
4980
4996
|
return;
|
|
@@ -4999,7 +5015,7 @@ function li({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
4999
5015
|
].filter(Boolean).join(" "),
|
|
5000
5016
|
children: [n && /* @__PURE__ */ j("div", {
|
|
5001
5017
|
className: Q.card__selectRow,
|
|
5002
|
-
children: /* @__PURE__ */ j(
|
|
5018
|
+
children: /* @__PURE__ */ j(ui, {
|
|
5003
5019
|
checked: i,
|
|
5004
5020
|
onChange: () => E(r),
|
|
5005
5021
|
label: `Select row ${r + 1}`
|
|
@@ -5035,7 +5051,7 @@ function li({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5035
5051
|
}),
|
|
5036
5052
|
n && /* @__PURE__ */ j("th", {
|
|
5037
5053
|
className: Q.checkCell,
|
|
5038
|
-
children: /* @__PURE__ */ j(
|
|
5054
|
+
children: /* @__PURE__ */ j(ui, {
|
|
5039
5055
|
checked: _,
|
|
5040
5056
|
indeterminate: v,
|
|
5041
5057
|
onChange: T,
|
|
@@ -5088,7 +5104,7 @@ function li({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5088
5104
|
}),
|
|
5089
5105
|
n && /* @__PURE__ */ j("td", {
|
|
5090
5106
|
className: Q.checkCell,
|
|
5091
|
-
children: /* @__PURE__ */ j(
|
|
5107
|
+
children: /* @__PURE__ */ j(ui, {
|
|
5092
5108
|
checked: i,
|
|
5093
5109
|
onChange: () => E(r),
|
|
5094
5110
|
label: `Select row ${r + 1}`
|
|
@@ -5105,7 +5121,7 @@ function li({ columns: e, rows: t, selectable: n, selectedRows: r, onSelectionCh
|
|
|
5105
5121
|
})]
|
|
5106
5122
|
});
|
|
5107
5123
|
}
|
|
5108
|
-
var
|
|
5124
|
+
var fi = {
|
|
5109
5125
|
tabs: "_tabs_1122j_3",
|
|
5110
5126
|
"tabs--borderless": "_tabs--borderless_1122j_16",
|
|
5111
5127
|
"tabs--fill": "_tabs--fill_1122j_21",
|
|
@@ -5114,7 +5130,7 @@ var ui = {
|
|
|
5114
5130
|
"tab--active": "_tab--active_1122j_63",
|
|
5115
5131
|
indicator: "_indicator_1122j_74",
|
|
5116
5132
|
"indicator--animated": "_indicator--animated_1122j_88"
|
|
5117
|
-
},
|
|
5133
|
+
}, pi = ({ items: e, value: t, defaultValue: n, onChange: r, bordered: i = !0, fill: a = !1, className: o }) => {
|
|
5118
5134
|
let s = t !== void 0, [c, l] = k.useState(n ?? e[0]?.value), u = s ? t : c, d = (e) => {
|
|
5119
5135
|
s || l(e), r?.(e);
|
|
5120
5136
|
}, f = k.useRef(null), p = k.useRef({}), [m, h] = k.useState(null), [g, _] = k.useState(!1);
|
|
@@ -5135,9 +5151,9 @@ var ui = {
|
|
|
5135
5151
|
ref: f,
|
|
5136
5152
|
role: "tablist",
|
|
5137
5153
|
className: [
|
|
5138
|
-
|
|
5139
|
-
i ? "" :
|
|
5140
|
-
a ?
|
|
5154
|
+
fi.tabs,
|
|
5155
|
+
i ? "" : fi["tabs--borderless"],
|
|
5156
|
+
a ? fi["tabs--fill"] : "",
|
|
5141
5157
|
o ?? ""
|
|
5142
5158
|
].filter(Boolean).join(" "),
|
|
5143
5159
|
children: [e.map((e) => {
|
|
@@ -5151,9 +5167,9 @@ var ui = {
|
|
|
5151
5167
|
"aria-selected": t,
|
|
5152
5168
|
disabled: e.disabled,
|
|
5153
5169
|
className: [
|
|
5154
|
-
|
|
5155
|
-
t ?
|
|
5156
|
-
e.disabled ?
|
|
5170
|
+
fi.tab,
|
|
5171
|
+
t ? fi["tab--active"] : "",
|
|
5172
|
+
e.disabled ? fi["tab--disabled"] : ""
|
|
5157
5173
|
].filter(Boolean).join(" "),
|
|
5158
5174
|
onClick: () => d(e.value),
|
|
5159
5175
|
children: [n && /* @__PURE__ */ j(n, {
|
|
@@ -5164,14 +5180,14 @@ var ui = {
|
|
|
5164
5180
|
}, e.value);
|
|
5165
5181
|
}), m && /* @__PURE__ */ j("span", {
|
|
5166
5182
|
"aria-hidden": "true",
|
|
5167
|
-
className: [
|
|
5183
|
+
className: [fi.indicator, g ? fi["indicator--animated"] : ""].filter(Boolean).join(" "),
|
|
5168
5184
|
style: {
|
|
5169
5185
|
transform: `translateX(${m.left}px)`,
|
|
5170
5186
|
width: m.width
|
|
5171
5187
|
}
|
|
5172
5188
|
})]
|
|
5173
5189
|
});
|
|
5174
|
-
},
|
|
5190
|
+
}, mi = {
|
|
5175
5191
|
wrapper: "_wrapper_w6wtp_8",
|
|
5176
5192
|
bubble: "_bubble_w6wtp_8",
|
|
5177
5193
|
bubble__title: "_bubble__title_w6wtp_46",
|
|
@@ -5193,7 +5209,7 @@ var ui = {
|
|
|
5193
5209
|
"caret--center-left": "_caret--center-left_w6wtp_121",
|
|
5194
5210
|
"bubble--center-right": "_bubble--center-right_w6wtp_131",
|
|
5195
5211
|
"caret--center-right": "_caret--center-right_w6wtp_139"
|
|
5196
|
-
},
|
|
5212
|
+
}, hi = ({ title: e, subtitle: t, pointer: n = "top-center", children: r, className: i }) => {
|
|
5197
5213
|
let [a, o] = k.useState(!1);
|
|
5198
5214
|
return k.useEffect(() => {
|
|
5199
5215
|
let e = (e) => {
|
|
@@ -5201,24 +5217,24 @@ var ui = {
|
|
|
5201
5217
|
};
|
|
5202
5218
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
5203
5219
|
}, []), /* @__PURE__ */ M("span", {
|
|
5204
|
-
className: [
|
|
5220
|
+
className: [mi.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
5205
5221
|
"data-dismissed": a || void 0,
|
|
5206
5222
|
onMouseLeave: () => o(!1),
|
|
5207
5223
|
onBlur: () => o(!1),
|
|
5208
5224
|
children: [r, /* @__PURE__ */ M("span", {
|
|
5209
5225
|
role: "tooltip",
|
|
5210
|
-
className: [
|
|
5226
|
+
className: [mi.bubble, mi[`bubble--${n}`]].join(" "),
|
|
5211
5227
|
children: [
|
|
5212
5228
|
/* @__PURE__ */ j("span", {
|
|
5213
|
-
className:
|
|
5229
|
+
className: mi.bubble__title,
|
|
5214
5230
|
children: e
|
|
5215
5231
|
}),
|
|
5216
5232
|
t && /* @__PURE__ */ j("span", {
|
|
5217
|
-
className:
|
|
5233
|
+
className: mi.bubble__subtitle,
|
|
5218
5234
|
children: t
|
|
5219
5235
|
}),
|
|
5220
5236
|
/* @__PURE__ */ j("span", {
|
|
5221
|
-
className: [
|
|
5237
|
+
className: [mi.caret, mi[`caret--${n}`]].join(" "),
|
|
5222
5238
|
"aria-hidden": "true"
|
|
5223
5239
|
})
|
|
5224
5240
|
]
|
|
@@ -5247,8 +5263,8 @@ var ui = {
|
|
|
5247
5263
|
"bar__left--search": "_bar__left--search_yqi1k_84",
|
|
5248
5264
|
bar__accountChevron: "_bar__accountChevron_yqi1k_98",
|
|
5249
5265
|
"bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
|
|
5250
|
-
},
|
|
5251
|
-
let y =
|
|
5266
|
+
}, gi = ({ type: e = "search", density: t = "md", left: r, showToggle: i = !0, onToggle: a, toggleIcon: o = w, showActions: s = !0, showHelp: c = !0, hasUnread: u = !1, rightSlot: d, account: f, accountOpen: p = !1, avatar: m, title: h, subtitle: g, actions: _, className: v }) => {
|
|
5267
|
+
let y = Yn(), b = Yn(), x = t === "md" ? 20 : 18, S = N(x);
|
|
5252
5268
|
return /* @__PURE__ */ j("header", {
|
|
5253
5269
|
className: [
|
|
5254
5270
|
$.bar,
|
|
@@ -5349,4 +5365,4 @@ var ui = {
|
|
|
5349
5365
|
});
|
|
5350
5366
|
};
|
|
5351
5367
|
//#endregion
|
|
5352
|
-
export {
|
|
5368
|
+
export { cn as $, er as A, De as At, Nn as B, yr as C, F as Ct, ar as D, Ne as Dt, cr as E, Ie as Et, Un as F, wn as G, kn as H, Bn as I, vn as J, Cn as K, zn as L, Xn as M, Yn as N, ir as O, Me as Ot, Wn as P, un as Q, Ln as R, Cr as S, We as St, dr as T, Re as Tt, En as U, jn as V, Tn as W, hn as X, _n as Y, pn as Z, Nr as _, Ct as _t, si as a, Ut as at, Tr as b, $e as bt, Yr as c, It as ct, Ur as d, At as dt, $t as et, Hr as f, kt as ft, Fr as g, _t as gt, Ir as h, Tt as ht, di as i, Gt as it, Qn as j, N as jt, nr as k, Oe as kt, qr as l, Ft as lt, Rr as m, lt as mt, hi as n, Xt as nt, ti as o, zt as ot, Br as p, Ot as pt, bn as q, pi as r, qt as rt, Zr as s, Lt as st, gi as t, Qt as tt, Gr as u, Mt as ut, kr as v, rt as vt, hr as w, Ve as wt, Er as x, Ge as xt, Or as y, tt as yt, Fn as z };
|