@sudobility/components 2.0.18 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +185 -184
- package/dist/index.umd.js +1 -1
- package/dist/ui/alert.d.ts +1 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
import { twMerge as
|
|
1
|
+
import { clsx as Kn } from "clsx";
|
|
2
|
+
import { twMerge as Yn } from "tailwind-merge";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import P, { lazy as ve, Suspense as qe, useEffect as V, useState as R, useCallback as re, useRef as q, useLayoutEffect as Pr, Component as Tr, memo as Ge, useMemo as Lt } from "react";
|
|
5
5
|
import { jsx as i, Fragment as H, jsxs as h } from "react/jsx-runtime";
|
|
6
|
-
import { onCLS as
|
|
7
|
-
import { XCircleIcon as $r, ExclamationTriangleIcon as It, CheckCircleIcon as Rt, InformationCircleIcon as je, ArrowPathIcon as
|
|
6
|
+
import { onCLS as Qn, onINP as Xn, onFCP as Zn, onLCP as Jn, onTTFB as ea } from "web-vitals";
|
|
7
|
+
import { XCircleIcon as $r, BellAlertIcon as Lr, ExclamationTriangleIcon as It, CheckCircleIcon as Rt, InformationCircleIcon as je, ArrowPathIcon as ta, ChevronRightIcon as Mt, Cog6ToothIcon as Jt, CurrencyDollarIcon as ra, AdjustmentsHorizontalIcon as na, LinkIcon as aa, FunnelIcon as oa, ChatBubbleLeftRightIcon as ia, ShieldCheckIcon as sa, ArrowRightIcon as Ir, ChevronUpIcon as la, ChevronDownIcon as ca, ExclamationCircleIcon as Rr, XMarkIcon as da, CheckIcon as Mr, ClipboardDocumentIcon as ua, ClipboardIcon as ma, EnvelopeIcon as ga, LanguageIcon as pa } from "@heroicons/react/24/outline";
|
|
8
8
|
import { ArrowLeftIcon as j0, ArrowRightIcon as F0, Bars3Icon as _0, BellIcon as V0, BellSlashIcon as H0, ChartBarIcon as U0, CheckCircleIcon as q0, CheckIcon as G0, ChevronDownIcon as K0, ChevronLeftIcon as Y0, ChevronRightIcon as Q0, ChevronUpIcon as X0, ClockIcon as Z0, CodeBracketIcon as J0, Cog6ToothIcon as eg, CreditCardIcon as tg, DocumentTextIcon as rg, EnvelopeIcon as ng, ExclamationTriangleIcon as ag, EyeSlashIcon as og, GlobeAltIcon as ig, HomeIcon as sg, InboxIcon as lg, InformationCircleIcon as cg, KeyIcon as dg, MegaphoneIcon as ug, MinusIcon as mg, PaperAirplaneIcon as gg, PaperClipIcon as pg, PlusIcon as fg, RocketLaunchIcon as hg, ShieldCheckIcon as yg, SparklesIcon as bg, StarIcon as xg, TrashIcon as vg, UserGroupIcon as wg, XMarkIcon as kg } from "@heroicons/react/24/outline";
|
|
9
9
|
import { Slot as fa, createSlot as ha, createSlottable as ya } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva as _ } from "class-variance-authority";
|
|
11
|
-
import { Root as
|
|
11
|
+
import { Root as Or } from "@radix-ui/react-label";
|
|
12
12
|
import * as F from "@radix-ui/react-select";
|
|
13
|
-
import { ChevronDown as
|
|
14
|
-
import { Root as
|
|
15
|
-
import { List as
|
|
16
|
-
import * as
|
|
13
|
+
import { ChevronDown as Dr, ChevronUp as ba, Check as xa } from "lucide-react";
|
|
14
|
+
import { Root as zr, Thumb as va } from "@radix-ui/react-switch";
|
|
15
|
+
import { List as Wr, Trigger as Br, Content as jr, Root as wa } from "@radix-ui/react-tabs";
|
|
16
|
+
import * as Fr from "react-dom";
|
|
17
17
|
import ka, { createPortal as Ca } from "react-dom";
|
|
18
18
|
import { Link as lt } from "react-router-dom";
|
|
19
19
|
import { TwitterIcon as Sa, TwitterShareButton as Na, FacebookIcon as Ea, FacebookShareButton as Aa, LinkedinIcon as Pa, LinkedinShareButton as Ta, RedditIcon as $a, RedditShareButton as La, TelegramIcon as Ia, TelegramShareButton as Ra, WhatsappIcon as Ma, WhatsappShareButton as Oa } from "react-share";
|
|
20
|
-
import { useTranslation as
|
|
20
|
+
import { useTranslation as _r } from "react-i18next";
|
|
21
21
|
import { CheckCircleIcon as Sg, CheckIcon as Ng, ExclamationTriangleIcon as Eg, StarIcon as Ag } from "@heroicons/react/24/solid";
|
|
22
22
|
import { Helmet as Da } from "react-helmet-async";
|
|
23
23
|
function v(...e) {
|
|
24
|
-
return Kn(
|
|
24
|
+
return Yn(Kn(e));
|
|
25
25
|
}
|
|
26
26
|
const Oc = (e) => e, Dc = (e) => {
|
|
27
27
|
if (typeof document > "u") return;
|
|
@@ -773,10 +773,10 @@ function Sd(e, t, r) {
|
|
|
773
773
|
const n = document.createElement("link");
|
|
774
774
|
n.rel = t, n.href = e, r && (t === "preload" || t === "prefetch") && (n.as = r), document.head.appendChild(n);
|
|
775
775
|
}
|
|
776
|
-
var
|
|
776
|
+
var Vr = /* @__PURE__ */ ((e) => (e[e.HIGH = 0] = "HIGH", e[e.MEDIUM = 1] = "MEDIUM", e[e.LOW = 2] = "LOW", e[e.IDLE = 3] = "IDLE", e))(Vr || {});
|
|
777
777
|
class qa {
|
|
778
778
|
constructor() {
|
|
779
|
-
this.queues = /* @__PURE__ */ new Map(), this.isProcessing = !1, Object.values(
|
|
779
|
+
this.queues = /* @__PURE__ */ new Map(), this.isProcessing = !1, Object.values(Vr).filter((t) => typeof t == "number").forEach((t) => {
|
|
780
780
|
this.queues.set(t, []);
|
|
781
781
|
});
|
|
782
782
|
}
|
|
@@ -1030,15 +1030,15 @@ class Ka {
|
|
|
1030
1030
|
this.metrics = { timestamp: Date.now() }, this.observers = [], this.performanceMarks = /* @__PURE__ */ new Map(), this.reportCallback = t, this.initializeWebVitals(), this.initializeCustomObservers(), this.collectDeviceInfo();
|
|
1031
1031
|
}
|
|
1032
1032
|
initializeWebVitals() {
|
|
1033
|
-
|
|
1033
|
+
Qn((t) => {
|
|
1034
1034
|
this.metrics.CLS = t.value, this.reportMetric("CLS", t.value);
|
|
1035
|
-
}), Qn((t) => {
|
|
1036
|
-
this.metrics.INP = t.value, this.reportMetric("INP", t.value);
|
|
1037
1035
|
}), Xn((t) => {
|
|
1038
|
-
this.metrics.
|
|
1036
|
+
this.metrics.INP = t.value, this.reportMetric("INP", t.value);
|
|
1039
1037
|
}), Zn((t) => {
|
|
1040
|
-
this.metrics.
|
|
1038
|
+
this.metrics.FCP = t.value, this.reportMetric("FCP", t.value);
|
|
1041
1039
|
}), Jn((t) => {
|
|
1040
|
+
this.metrics.LCP = t.value, this.reportMetric("LCP", t.value);
|
|
1041
|
+
}), ea((t) => {
|
|
1042
1042
|
this.metrics.TTFB = t.value, this.reportMetric("TTFB", t.value);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
@@ -1891,7 +1891,7 @@ const Za = (e) => {
|
|
|
1891
1891
|
function Ce(e) {
|
|
1892
1892
|
return ro[e];
|
|
1893
1893
|
}
|
|
1894
|
-
const
|
|
1894
|
+
const Hr = {
|
|
1895
1895
|
default: "bg-white dark:bg-gray-800",
|
|
1896
1896
|
bordered: "bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700",
|
|
1897
1897
|
elevated: "bg-white dark:bg-gray-800 shadow-md",
|
|
@@ -1902,7 +1902,7 @@ const Vr = {
|
|
|
1902
1902
|
error: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-900 dark:text-red-300"
|
|
1903
1903
|
};
|
|
1904
1904
|
function no(e) {
|
|
1905
|
-
return
|
|
1905
|
+
return Hr[e];
|
|
1906
1906
|
}
|
|
1907
1907
|
const ao = {
|
|
1908
1908
|
default: {
|
|
@@ -2082,6 +2082,7 @@ const io = {
|
|
|
2082
2082
|
info: je,
|
|
2083
2083
|
success: Rt,
|
|
2084
2084
|
warning: It,
|
|
2085
|
+
attention: Lr,
|
|
2085
2086
|
error: $r
|
|
2086
2087
|
}, qd = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("font-medium mb-1", t), children: e }), Gd = ({ children: e, className: t }) => /* @__PURE__ */ i("div", { className: v("text-sm break-words", t), children: e }), Kd = ({
|
|
2087
2088
|
variant: e = "info",
|
|
@@ -2285,7 +2286,7 @@ const fo = "bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dar
|
|
|
2285
2286
|
sm: "p-3",
|
|
2286
2287
|
md: "p-6",
|
|
2287
2288
|
lg: "p-8"
|
|
2288
|
-
},
|
|
2289
|
+
}, Ur = ({
|
|
2289
2290
|
variant: e = "elevated",
|
|
2290
2291
|
padding: t = "md",
|
|
2291
2292
|
icon: r,
|
|
@@ -2366,7 +2367,7 @@ const fo = "bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dar
|
|
|
2366
2367
|
size: n = "default",
|
|
2367
2368
|
className: a
|
|
2368
2369
|
}) => /* @__PURE__ */ h(
|
|
2369
|
-
|
|
2370
|
+
Ur,
|
|
2370
2371
|
{
|
|
2371
2372
|
variant: r === "neutral" ? "bordered" : r,
|
|
2372
2373
|
padding: { sm: "sm", default: "md", lg: "lg" }[n],
|
|
@@ -2394,7 +2395,7 @@ const fo = "bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dar
|
|
|
2394
2395
|
centered: o = !1,
|
|
2395
2396
|
className: s
|
|
2396
2397
|
}) => /* @__PURE__ */ i(
|
|
2397
|
-
|
|
2398
|
+
Ur,
|
|
2398
2399
|
{
|
|
2399
2400
|
variant: n === "gradient" || n === "neutral" ? "callout" : n,
|
|
2400
2401
|
padding: { sm: "sm", default: "md", lg: "lg" }[a],
|
|
@@ -3194,8 +3195,8 @@ const fo = "bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dar
|
|
|
3194
3195
|
Ao.displayName = "Input";
|
|
3195
3196
|
const Po = _(
|
|
3196
3197
|
`${I.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`
|
|
3197
|
-
),
|
|
3198
|
-
|
|
3198
|
+
), qr = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(Or, { ref: r, className: v(Po(), e), ...t }));
|
|
3199
|
+
qr.displayName = Or.displayName;
|
|
3199
3200
|
const uu = ({
|
|
3200
3201
|
title: e,
|
|
3201
3202
|
description: t,
|
|
@@ -3445,7 +3446,7 @@ const uu = ({
|
|
|
3445
3446
|
},
|
|
3446
3447
|
children: /* @__PURE__ */ h("div", { className: "flex flex-col items-center justify-center gap-2", children: [
|
|
3447
3448
|
/* @__PURE__ */ i(
|
|
3448
|
-
|
|
3449
|
+
ta,
|
|
3449
3450
|
{
|
|
3450
3451
|
className: `w-6 h-6 text-blue-600 dark:text-blue-400 transition-transform duration-200 ${m ? "animate-spin" : ""}`,
|
|
3451
3452
|
style: {
|
|
@@ -3481,12 +3482,12 @@ const uu = ({
|
|
|
3481
3482
|
...r,
|
|
3482
3483
|
children: [
|
|
3483
3484
|
t,
|
|
3484
|
-
/* @__PURE__ */ i(F.Icon, { asChild: !0, children: /* @__PURE__ */ i(
|
|
3485
|
+
/* @__PURE__ */ i(F.Icon, { asChild: !0, children: /* @__PURE__ */ i(Dr, { className: "h-4 w-4 opacity-50 ml-2 flex-shrink-0" }) })
|
|
3485
3486
|
]
|
|
3486
3487
|
}
|
|
3487
3488
|
));
|
|
3488
3489
|
kt.displayName = F.Trigger.displayName;
|
|
3489
|
-
const
|
|
3490
|
+
const Gr = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
3490
3491
|
F.ScrollUpButton,
|
|
3491
3492
|
{
|
|
3492
3493
|
ref: r,
|
|
@@ -3498,8 +3499,8 @@ const qr = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
|
3498
3499
|
children: /* @__PURE__ */ i(ba, { className: "h-4 w-4" })
|
|
3499
3500
|
}
|
|
3500
3501
|
));
|
|
3501
|
-
|
|
3502
|
-
const
|
|
3502
|
+
Gr.displayName = F.ScrollUpButton.displayName;
|
|
3503
|
+
const Kr = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
3503
3504
|
F.ScrollDownButton,
|
|
3504
3505
|
{
|
|
3505
3506
|
ref: r,
|
|
@@ -3508,10 +3509,10 @@ const Gr = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
|
3508
3509
|
e
|
|
3509
3510
|
),
|
|
3510
3511
|
...t,
|
|
3511
|
-
children: /* @__PURE__ */ i(
|
|
3512
|
+
children: /* @__PURE__ */ i(Dr, { className: "h-4 w-4" })
|
|
3512
3513
|
}
|
|
3513
3514
|
));
|
|
3514
|
-
|
|
3515
|
+
Kr.displayName = F.ScrollDownButton.displayName;
|
|
3515
3516
|
const Ct = x.forwardRef(({ className: e, children: t, position: r = "popper", ...n }, a) => /* @__PURE__ */ i(F.Portal, { children: /* @__PURE__ */ h(
|
|
3516
3517
|
F.Content,
|
|
3517
3518
|
{
|
|
@@ -3525,7 +3526,7 @@ const Ct = x.forwardRef(({ className: e, children: t, position: r = "popper", ..
|
|
|
3525
3526
|
position: r,
|
|
3526
3527
|
...n,
|
|
3527
3528
|
children: [
|
|
3528
|
-
/* @__PURE__ */ i(
|
|
3529
|
+
/* @__PURE__ */ i(Gr, {}),
|
|
3529
3530
|
/* @__PURE__ */ i(
|
|
3530
3531
|
F.Viewport,
|
|
3531
3532
|
{
|
|
@@ -3536,7 +3537,7 @@ const Ct = x.forwardRef(({ className: e, children: t, position: r = "popper", ..
|
|
|
3536
3537
|
children: t
|
|
3537
3538
|
}
|
|
3538
3539
|
),
|
|
3539
|
-
/* @__PURE__ */ i(
|
|
3540
|
+
/* @__PURE__ */ i(Kr, {})
|
|
3540
3541
|
]
|
|
3541
3542
|
}
|
|
3542
3543
|
) }));
|
|
@@ -3605,7 +3606,7 @@ const ar = ({
|
|
|
3605
3606
|
children: /* @__PURE__ */ i("span", { className: "sr-only", children: a })
|
|
3606
3607
|
}
|
|
3607
3608
|
), Io = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
3608
|
-
|
|
3609
|
+
zr,
|
|
3609
3610
|
{
|
|
3610
3611
|
className: v(
|
|
3611
3612
|
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-gray-700",
|
|
@@ -3623,7 +3624,7 @@ const ar = ({
|
|
|
3623
3624
|
)
|
|
3624
3625
|
}
|
|
3625
3626
|
));
|
|
3626
|
-
Io.displayName =
|
|
3627
|
+
Io.displayName = zr.displayName;
|
|
3627
3628
|
const fu = ({
|
|
3628
3629
|
title: e,
|
|
3629
3630
|
onAdd: t,
|
|
@@ -3810,7 +3811,7 @@ const fu = ({
|
|
|
3810
3811
|
const s = e === "solana" ? "solana" : "ethereum";
|
|
3811
3812
|
return a === "default" ? T.badge[s]() : T.badge[a](s);
|
|
3812
3813
|
})(), children: r });
|
|
3813
|
-
}, zo = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "",
|
|
3814
|
+
}, zo = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", Yr = ({ type: e, addressType: t }) => {
|
|
3814
3815
|
if (e === "primary")
|
|
3815
3816
|
return /* @__PURE__ */ i(
|
|
3816
3817
|
Do,
|
|
@@ -3868,7 +3869,7 @@ const fu = ({
|
|
|
3868
3869
|
),
|
|
3869
3870
|
children: [
|
|
3870
3871
|
/* @__PURE__ */ i("span", { className: "truncate flex-1", children: c.name }),
|
|
3871
|
-
/* @__PURE__ */ i(
|
|
3872
|
+
/* @__PURE__ */ i(Yr, { type: c.type, addressType: c.addressType })
|
|
3872
3873
|
]
|
|
3873
3874
|
},
|
|
3874
3875
|
c.address
|
|
@@ -3898,7 +3899,7 @@ const fu = ({
|
|
|
3898
3899
|
/* @__PURE__ */ h("div", { className: "flex items-center flex-1 min-w-0", children: [
|
|
3899
3900
|
/* @__PURE__ */ i("span", { className: "truncate flex-1", children: zo(l.walletAddress) }),
|
|
3900
3901
|
/* @__PURE__ */ i(
|
|
3901
|
-
|
|
3902
|
+
Yr,
|
|
3902
3903
|
{
|
|
3903
3904
|
type: l.primaryEmail.type,
|
|
3904
3905
|
addressType: l.addressType
|
|
@@ -3946,20 +3947,20 @@ const fu = ({
|
|
|
3946
3947
|
case "cog":
|
|
3947
3948
|
return Jt;
|
|
3948
3949
|
case "arrow-right":
|
|
3949
|
-
return
|
|
3950
|
+
return Ir;
|
|
3950
3951
|
case "shield":
|
|
3951
|
-
return
|
|
3952
|
+
return sa;
|
|
3952
3953
|
case "reply":
|
|
3953
3954
|
case "chat":
|
|
3954
|
-
return
|
|
3955
|
+
return ia;
|
|
3955
3956
|
case "filter":
|
|
3956
|
-
return
|
|
3957
|
+
return oa;
|
|
3957
3958
|
case "plug":
|
|
3958
|
-
return
|
|
3959
|
+
return aa;
|
|
3959
3960
|
case "adjustments":
|
|
3960
|
-
return
|
|
3961
|
+
return na;
|
|
3961
3962
|
case "currency-dollar":
|
|
3962
|
-
return
|
|
3963
|
+
return ra;
|
|
3963
3964
|
default:
|
|
3964
3965
|
return Jt;
|
|
3965
3966
|
}
|
|
@@ -4001,32 +4002,32 @@ const fu = ({
|
|
|
4001
4002
|
}) })
|
|
4002
4003
|
}
|
|
4003
4004
|
), vu = wa, jo = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
4004
|
-
|
|
4005
|
+
Wr,
|
|
4005
4006
|
{
|
|
4006
4007
|
ref: r,
|
|
4007
4008
|
className: v(T.navigation.tabs.list(), e),
|
|
4008
4009
|
...t
|
|
4009
4010
|
}
|
|
4010
4011
|
));
|
|
4011
|
-
jo.displayName =
|
|
4012
|
+
jo.displayName = Wr.displayName;
|
|
4012
4013
|
const Fo = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
4013
|
-
|
|
4014
|
+
Br,
|
|
4014
4015
|
{
|
|
4015
4016
|
ref: r,
|
|
4016
4017
|
className: v(T.navigation.tabs.trigger(), e),
|
|
4017
4018
|
...t
|
|
4018
4019
|
}
|
|
4019
4020
|
));
|
|
4020
|
-
Fo.displayName =
|
|
4021
|
+
Fo.displayName = Br.displayName;
|
|
4021
4022
|
const _o = x.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i(
|
|
4022
|
-
|
|
4023
|
+
jr,
|
|
4023
4024
|
{
|
|
4024
4025
|
ref: r,
|
|
4025
4026
|
className: v(T.navigation.tabs.content(), e),
|
|
4026
4027
|
...t
|
|
4027
4028
|
}
|
|
4028
4029
|
));
|
|
4029
|
-
_o.displayName =
|
|
4030
|
+
_o.displayName = jr.displayName;
|
|
4030
4031
|
const wu = ({
|
|
4031
4032
|
title: e,
|
|
4032
4033
|
description: t,
|
|
@@ -4292,7 +4293,7 @@ const wu = ({
|
|
|
4292
4293
|
title: e,
|
|
4293
4294
|
subtext: t,
|
|
4294
4295
|
className: r
|
|
4295
|
-
}) => /* @__PURE__ */ i(Qo, { title: e, description: t, className: r }),
|
|
4296
|
+
}) => /* @__PURE__ */ i(Qo, { title: e, description: t, className: r }), Qr = ({
|
|
4296
4297
|
label: e,
|
|
4297
4298
|
value: t,
|
|
4298
4299
|
onChange: r,
|
|
@@ -4302,7 +4303,7 @@ const wu = ({
|
|
|
4302
4303
|
className: s = ""
|
|
4303
4304
|
}) => /* @__PURE__ */ h("div", { className: s, children: [
|
|
4304
4305
|
/* @__PURE__ */ h(
|
|
4305
|
-
|
|
4306
|
+
qr,
|
|
4306
4307
|
{
|
|
4307
4308
|
htmlFor: e.toLowerCase(),
|
|
4308
4309
|
className: "text-sm font-medium text-gray-700 dark:text-gray-300",
|
|
@@ -4344,12 +4345,12 @@ const wu = ({
|
|
|
4344
4345
|
onClick: t,
|
|
4345
4346
|
className: "flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",
|
|
4346
4347
|
children: [
|
|
4347
|
-
e ? /* @__PURE__ */ i(
|
|
4348
|
+
e ? /* @__PURE__ */ i(la, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ i(ca, { className: "h-4 w-4 mr-1" }),
|
|
4348
4349
|
e ? n : r
|
|
4349
4350
|
]
|
|
4350
4351
|
}
|
|
4351
4352
|
),
|
|
4352
|
-
e && /* @__PURE__ */ i(
|
|
4353
|
+
e && /* @__PURE__ */ i(Qr, { ...a })
|
|
4353
4354
|
] }), Au = ({
|
|
4354
4355
|
to: e,
|
|
4355
4356
|
onToChange: t,
|
|
@@ -4381,7 +4382,7 @@ const wu = ({
|
|
|
4381
4382
|
}, w = { ...f, ...p }, k = { ...b, ...g };
|
|
4382
4383
|
return /* @__PURE__ */ h("div", { className: `space-y-4 ${m}`, children: [
|
|
4383
4384
|
/* @__PURE__ */ i(
|
|
4384
|
-
|
|
4385
|
+
Qr,
|
|
4385
4386
|
{
|
|
4386
4387
|
label: w.to,
|
|
4387
4388
|
value: e,
|
|
@@ -4460,7 +4461,7 @@ const wu = ({
|
|
|
4460
4461
|
children: [
|
|
4461
4462
|
/* @__PURE__ */ i("div", { className: r ? "relative" : "", children: a }),
|
|
4462
4463
|
r && /* @__PURE__ */ h("div", { className: "mt-1 flex items-start", children: [
|
|
4463
|
-
/* @__PURE__ */ i(
|
|
4464
|
+
/* @__PURE__ */ i(Rr, { className: "h-4 w-4 text-red-500 mr-1 mt-0.5 flex-shrink-0" }),
|
|
4464
4465
|
/* @__PURE__ */ i("p", { className: "text-xs text-red-600 dark:text-red-400", children: r })
|
|
4465
4466
|
] })
|
|
4466
4467
|
]
|
|
@@ -4642,7 +4643,7 @@ function Zo(...e) {
|
|
|
4642
4643
|
function we(...e) {
|
|
4643
4644
|
return x.useCallback(Zo(...e), e);
|
|
4644
4645
|
}
|
|
4645
|
-
function
|
|
4646
|
+
function Xr(e, t = []) {
|
|
4646
4647
|
let r = [];
|
|
4647
4648
|
function n(o, s) {
|
|
4648
4649
|
const l = x.createContext(s), c = r.length;
|
|
@@ -4716,7 +4717,7 @@ var ei = [
|
|
|
4716
4717
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
4717
4718
|
}, {});
|
|
4718
4719
|
function ti(e, t) {
|
|
4719
|
-
e &&
|
|
4720
|
+
e && Fr.flushSync(() => e.dispatchEvent(t));
|
|
4720
4721
|
}
|
|
4721
4722
|
function ct(e) {
|
|
4722
4723
|
const t = x.useRef(e);
|
|
@@ -4733,11 +4734,11 @@ function ri(e, t = globalThis?.document) {
|
|
|
4733
4734
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
4734
4735
|
}, [r, t]);
|
|
4735
4736
|
}
|
|
4736
|
-
var ni = "DismissableLayer", Nt = "dismissableLayer.update", ai = "dismissableLayer.pointerDownOutside", oi = "dismissableLayer.focusOutside", sr,
|
|
4737
|
+
var ni = "DismissableLayer", Nt = "dismissableLayer.update", ai = "dismissableLayer.pointerDownOutside", oi = "dismissableLayer.focusOutside", sr, Zr = x.createContext({
|
|
4737
4738
|
layers: /* @__PURE__ */ new Set(),
|
|
4738
4739
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4739
4740
|
branches: /* @__PURE__ */ new Set()
|
|
4740
|
-
}),
|
|
4741
|
+
}), Jr = x.forwardRef(
|
|
4741
4742
|
(e, t) => {
|
|
4742
4743
|
const {
|
|
4743
4744
|
disableOutsidePointerEvents: r = !1,
|
|
@@ -4747,7 +4748,7 @@ var ni = "DismissableLayer", Nt = "dismissableLayer.update", ai = "dismissableLa
|
|
|
4747
4748
|
onInteractOutside: s,
|
|
4748
4749
|
onDismiss: l,
|
|
4749
4750
|
...c
|
|
4750
|
-
} = e, d = x.useContext(
|
|
4751
|
+
} = e, d = x.useContext(Zr), [u, m] = x.useState(null), p = u?.ownerDocument ?? globalThis?.document, [, g] = x.useState({}), f = we(t, (A) => m(A)), b = Array.from(d.layers), [w] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), k = b.indexOf(w), C = u ? b.indexOf(u) : -1, S = d.layersWithOutsidePointerEventsDisabled.size > 0, E = C >= k, N = li((A) => {
|
|
4751
4752
|
const O = A.target, D = [...d.branches].some((M) => M.contains(O));
|
|
4752
4753
|
!E || D || (a?.(A), s?.(A), A.defaultPrevented || l?.());
|
|
4753
4754
|
}, p), $ = ci((A) => {
|
|
@@ -4785,9 +4786,9 @@ var ni = "DismissableLayer", Nt = "dismissableLayer.update", ai = "dismissableLa
|
|
|
4785
4786
|
);
|
|
4786
4787
|
}
|
|
4787
4788
|
);
|
|
4788
|
-
|
|
4789
|
+
Jr.displayName = ni;
|
|
4789
4790
|
var ii = "DismissableLayerBranch", si = x.forwardRef((e, t) => {
|
|
4790
|
-
const r = x.useContext(
|
|
4791
|
+
const r = x.useContext(Zr), n = x.useRef(null), a = we(t, n);
|
|
4791
4792
|
return x.useEffect(() => {
|
|
4792
4793
|
const o = n.current;
|
|
4793
4794
|
if (o)
|
|
@@ -4804,7 +4805,7 @@ function li(e, t = globalThis?.document) {
|
|
|
4804
4805
|
const o = (l) => {
|
|
4805
4806
|
if (l.target && !n.current) {
|
|
4806
4807
|
let c = function() {
|
|
4807
|
-
|
|
4808
|
+
en(
|
|
4808
4809
|
ai,
|
|
4809
4810
|
r,
|
|
4810
4811
|
d,
|
|
@@ -4831,7 +4832,7 @@ function ci(e, t = globalThis?.document) {
|
|
|
4831
4832
|
const r = ct(e), n = x.useRef(!1);
|
|
4832
4833
|
return x.useEffect(() => {
|
|
4833
4834
|
const a = (o) => {
|
|
4834
|
-
o.target && !n.current &&
|
|
4835
|
+
o.target && !n.current && en(oi, r, { originalEvent: o }, {
|
|
4835
4836
|
discrete: !1
|
|
4836
4837
|
});
|
|
4837
4838
|
};
|
|
@@ -4845,7 +4846,7 @@ function lr() {
|
|
|
4845
4846
|
const e = new CustomEvent(Nt);
|
|
4846
4847
|
document.dispatchEvent(e);
|
|
4847
4848
|
}
|
|
4848
|
-
function
|
|
4849
|
+
function en(e, t, r, { discrete: n }) {
|
|
4849
4850
|
const a = r.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
4850
4851
|
t && a.addEventListener(e, t, { once: !0 }), n ? ti(a, o) : a.dispatchEvent(o);
|
|
4851
4852
|
}
|
|
@@ -4938,7 +4939,7 @@ function Ci(e) {
|
|
|
4938
4939
|
...e
|
|
4939
4940
|
};
|
|
4940
4941
|
}
|
|
4941
|
-
function
|
|
4942
|
+
function tn(e) {
|
|
4942
4943
|
return typeof e != "number" ? Ci(e) : {
|
|
4943
4944
|
top: e,
|
|
4944
4945
|
right: e,
|
|
@@ -5089,7 +5090,7 @@ async function Fe(e, t) {
|
|
|
5089
5090
|
elementContext: m = "floating",
|
|
5090
5091
|
altBoundary: p = !1,
|
|
5091
5092
|
padding: g = 0
|
|
5092
|
-
} = de(t, e), f =
|
|
5093
|
+
} = de(t, e), f = tn(g), w = l[p ? m === "floating" ? "reference" : "floating" : m], k = nt(await o.getClippingRect({
|
|
5093
5094
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(w))) == null || r ? w : w.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
5094
5095
|
boundary: d,
|
|
5095
5096
|
rootBoundary: u,
|
|
@@ -5136,7 +5137,7 @@ const Ni = (e) => ({
|
|
|
5136
5137
|
} = de(e, t) || {};
|
|
5137
5138
|
if (d == null)
|
|
5138
5139
|
return {};
|
|
5139
|
-
const m =
|
|
5140
|
+
const m = tn(u), p = {
|
|
5140
5141
|
x: r,
|
|
5141
5142
|
y: n
|
|
5142
5143
|
}, g = jt(a), f = Bt(g), b = await s.getDimensions(d), w = g === "y", k = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", E = o.reference[f] + o.reference[g] - p[g] - o.floating[f], N = p[g] - o.reference[g], $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
@@ -5289,13 +5290,13 @@ const Ai = function(e) {
|
|
|
5289
5290
|
}
|
|
5290
5291
|
}
|
|
5291
5292
|
};
|
|
5292
|
-
},
|
|
5293
|
+
}, rn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
5293
5294
|
async function Pi(e, t) {
|
|
5294
5295
|
const {
|
|
5295
5296
|
placement: r,
|
|
5296
5297
|
platform: n,
|
|
5297
5298
|
elements: a
|
|
5298
|
-
} = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), s = ue(r), l = $e(r), c = te(r) === "y", d =
|
|
5299
|
+
} = e, o = await (n.isRTL == null ? void 0 : n.isRTL(a.floating)), s = ue(r), l = $e(r), c = te(r) === "y", d = rn.has(s) ? -1 : 1, u = o && c ? -1 : 1, m = de(t, e);
|
|
5299
5300
|
let {
|
|
5300
5301
|
mainAxis: p,
|
|
5301
5302
|
crossAxis: g,
|
|
@@ -5428,7 +5429,7 @@ const Ti = function(e) {
|
|
|
5428
5429
|
}
|
|
5429
5430
|
if (d) {
|
|
5430
5431
|
var k, C;
|
|
5431
|
-
const S = p === "y" ? "width" : "height", E =
|
|
5432
|
+
const S = p === "y" ? "width" : "height", E = rn.has(ue(a)), N = o.reference[m] - o.floating[S] + (E && ((k = s.offset) == null ? void 0 : k[m]) || 0) + (E ? 0 : w.crossAxis), $ = o.reference[m] + o.reference[S] + (E ? 0 : ((C = s.offset) == null ? void 0 : C[m]) || 0) - (E ? w.crossAxis : 0);
|
|
5432
5433
|
f < N ? f = N : f > $ && (f = $);
|
|
5433
5434
|
}
|
|
5434
5435
|
return {
|
|
@@ -5482,7 +5483,7 @@ function dt() {
|
|
|
5482
5483
|
return typeof window < "u";
|
|
5483
5484
|
}
|
|
5484
5485
|
function Le(e) {
|
|
5485
|
-
return
|
|
5486
|
+
return nn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5486
5487
|
}
|
|
5487
5488
|
function X(e) {
|
|
5488
5489
|
var t;
|
|
@@ -5490,9 +5491,9 @@ function X(e) {
|
|
|
5490
5491
|
}
|
|
5491
5492
|
function oe(e) {
|
|
5492
5493
|
var t;
|
|
5493
|
-
return (t = (
|
|
5494
|
+
return (t = (nn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5494
5495
|
}
|
|
5495
|
-
function
|
|
5496
|
+
function nn(e) {
|
|
5496
5497
|
return dt() ? e instanceof Node || e instanceof X(e).Node : !1;
|
|
5497
5498
|
}
|
|
5498
5499
|
function Z(e) {
|
|
@@ -5575,14 +5576,14 @@ function fe(e) {
|
|
|
5575
5576
|
);
|
|
5576
5577
|
return pr(t) ? t.host : t;
|
|
5577
5578
|
}
|
|
5578
|
-
function
|
|
5579
|
+
function an(e) {
|
|
5579
5580
|
const t = fe(e);
|
|
5580
|
-
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ke(t) ? t :
|
|
5581
|
+
return Ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ke(t) ? t : an(t);
|
|
5581
5582
|
}
|
|
5582
5583
|
function _e(e, t, r) {
|
|
5583
5584
|
var n;
|
|
5584
5585
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
5585
|
-
const a =
|
|
5586
|
+
const a = an(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = X(a);
|
|
5586
5587
|
if (o) {
|
|
5587
5588
|
const l = Pt(s);
|
|
5588
5589
|
return t.concat(s, s.visualViewport || [], Ke(a) ? a : [], l && r ? _e(l) : []);
|
|
@@ -5592,7 +5593,7 @@ function _e(e, t, r) {
|
|
|
5592
5593
|
function Pt(e) {
|
|
5593
5594
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5594
5595
|
}
|
|
5595
|
-
function
|
|
5596
|
+
function on(e) {
|
|
5596
5597
|
const t = J(e);
|
|
5597
5598
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
5598
5599
|
const a = ae(e), o = a ? e.offsetWidth : r, s = a ? e.offsetHeight : n, l = tt(r) !== o || tt(n) !== s;
|
|
@@ -5613,7 +5614,7 @@ function Se(e) {
|
|
|
5613
5614
|
width: n,
|
|
5614
5615
|
height: a,
|
|
5615
5616
|
$: o
|
|
5616
|
-
} =
|
|
5617
|
+
} = on(t);
|
|
5617
5618
|
let s = (o ? tt(r.width) : r.width) / n, l = (o ? tt(r.height) : r.height) / a;
|
|
5618
5619
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
5619
5620
|
x: s,
|
|
@@ -5621,7 +5622,7 @@ function Se(e) {
|
|
|
5621
5622
|
};
|
|
5622
5623
|
}
|
|
5623
5624
|
const _i = /* @__PURE__ */ ne(0);
|
|
5624
|
-
function
|
|
5625
|
+
function sn(e) {
|
|
5625
5626
|
const t = X(e);
|
|
5626
5627
|
return !_t() || !t.visualViewport ? _i : {
|
|
5627
5628
|
x: t.visualViewport.offsetLeft,
|
|
@@ -5636,7 +5637,7 @@ function xe(e, t, r, n) {
|
|
|
5636
5637
|
const a = e.getBoundingClientRect(), o = Vt(e);
|
|
5637
5638
|
let s = ne(1);
|
|
5638
5639
|
t && (n ? Z(n) && (s = Se(n)) : s = Se(e));
|
|
5639
|
-
const l = Vi(o, r, n) ?
|
|
5640
|
+
const l = Vi(o, r, n) ? sn(o) : ne(0);
|
|
5640
5641
|
let c = (a.left + l.x) / s.x, d = (a.top + l.y) / s.y, u = a.width / s.x, m = a.height / s.y;
|
|
5641
5642
|
if (o) {
|
|
5642
5643
|
const p = X(o), g = n && Z(n) ? X(n) : n;
|
|
@@ -5657,7 +5658,7 @@ function gt(e, t) {
|
|
|
5657
5658
|
const r = mt(e).scrollLeft;
|
|
5658
5659
|
return t ? t.left + r : xe(oe(e)).left + r;
|
|
5659
5660
|
}
|
|
5660
|
-
function
|
|
5661
|
+
function ln(e, t) {
|
|
5661
5662
|
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - gt(e, r), a = r.top + t.scrollTop;
|
|
5662
5663
|
return {
|
|
5663
5664
|
x: n,
|
|
@@ -5683,7 +5684,7 @@ function Hi(e) {
|
|
|
5683
5684
|
const g = xe(n);
|
|
5684
5685
|
d = Se(n), u.x = g.x + n.clientLeft, u.y = g.y + n.clientTop;
|
|
5685
5686
|
}
|
|
5686
|
-
const p = s && !m && !o ?
|
|
5687
|
+
const p = s && !m && !o ? ln(s, c) : ne(0);
|
|
5687
5688
|
return {
|
|
5688
5689
|
width: r.width * d.x,
|
|
5689
5690
|
height: r.height * d.y,
|
|
@@ -5745,7 +5746,7 @@ function hr(e, t, r) {
|
|
|
5745
5746
|
else if (Z(t))
|
|
5746
5747
|
n = Yi(t, r);
|
|
5747
5748
|
else {
|
|
5748
|
-
const a =
|
|
5749
|
+
const a = sn(e);
|
|
5749
5750
|
n = {
|
|
5750
5751
|
x: t.x - a.x,
|
|
5751
5752
|
y: t.y - a.y,
|
|
@@ -5755,9 +5756,9 @@ function hr(e, t, r) {
|
|
|
5755
5756
|
}
|
|
5756
5757
|
return nt(n);
|
|
5757
5758
|
}
|
|
5758
|
-
function
|
|
5759
|
+
function cn(e, t) {
|
|
5759
5760
|
const r = fe(e);
|
|
5760
|
-
return r === t || !Z(r) || Ae(r) ? !1 : J(r).position === "fixed" ||
|
|
5761
|
+
return r === t || !Z(r) || Ae(r) ? !1 : J(r).position === "fixed" || cn(r, t);
|
|
5761
5762
|
}
|
|
5762
5763
|
function Qi(e, t) {
|
|
5763
5764
|
const r = t.get(e);
|
|
@@ -5768,7 +5769,7 @@ function Qi(e, t) {
|
|
|
5768
5769
|
let s = o ? fe(e) : e;
|
|
5769
5770
|
for (; Z(s) && !Ae(s); ) {
|
|
5770
5771
|
const l = J(s), c = Ft(s);
|
|
5771
|
-
!c && l.position === "fixed" && (a = null), (o ? !c && !a : !c && l.position === "static" && !!a && Ki.has(a.position) || Ke(s) && !c &&
|
|
5772
|
+
!c && l.position === "fixed" && (a = null), (o ? !c && !a : !c && l.position === "static" && !!a && Ki.has(a.position) || Ke(s) && !c && cn(e, s)) ? n = n.filter((u) => u !== s) : a = l, s = fe(s);
|
|
5772
5773
|
}
|
|
5773
5774
|
return t.set(e, n), n;
|
|
5774
5775
|
}
|
|
@@ -5794,7 +5795,7 @@ function Zi(e) {
|
|
|
5794
5795
|
const {
|
|
5795
5796
|
width: t,
|
|
5796
5797
|
height: r
|
|
5797
|
-
} =
|
|
5798
|
+
} = on(e);
|
|
5798
5799
|
return {
|
|
5799
5800
|
width: t,
|
|
5800
5801
|
height: r
|
|
@@ -5816,7 +5817,7 @@ function Ji(e, t, r) {
|
|
|
5816
5817
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
5817
5818
|
} else a && d();
|
|
5818
5819
|
o && !n && a && d();
|
|
5819
|
-
const u = a && !n && !o ?
|
|
5820
|
+
const u = a && !n && !o ? ln(a, l) : ne(0), m = s.left + l.scrollLeft - c.x - u.x, p = s.top + l.scrollTop - c.y - u.y;
|
|
5820
5821
|
return {
|
|
5821
5822
|
x: m,
|
|
5822
5823
|
y: p,
|
|
@@ -5835,7 +5836,7 @@ function yr(e, t) {
|
|
|
5835
5836
|
let r = e.offsetParent;
|
|
5836
5837
|
return oe(e) === r && (r = r.ownerDocument.body), r;
|
|
5837
5838
|
}
|
|
5838
|
-
function
|
|
5839
|
+
function dn(e, t) {
|
|
5839
5840
|
const r = X(e);
|
|
5840
5841
|
if (ut(e))
|
|
5841
5842
|
return r;
|
|
@@ -5854,7 +5855,7 @@ function cn(e, t) {
|
|
|
5854
5855
|
return n && Ae(n) && yt(n) && !Ft(n) ? r : n || ji(e) || r;
|
|
5855
5856
|
}
|
|
5856
5857
|
const es = async function(e) {
|
|
5857
|
-
const t = this.getOffsetParent ||
|
|
5858
|
+
const t = this.getOffsetParent || dn, r = this.getDimensions, n = await r(e.floating);
|
|
5858
5859
|
return {
|
|
5859
5860
|
reference: Ji(e.reference, await t(e.floating), e.strategy),
|
|
5860
5861
|
floating: {
|
|
@@ -5872,7 +5873,7 @@ const rs = {
|
|
|
5872
5873
|
convertOffsetParentRelativeRectToViewportRelativeRect: Hi,
|
|
5873
5874
|
getDocumentElement: oe,
|
|
5874
5875
|
getClippingRect: Xi,
|
|
5875
|
-
getOffsetParent:
|
|
5876
|
+
getOffsetParent: dn,
|
|
5876
5877
|
getElementRects: es,
|
|
5877
5878
|
getClientRects: Ui,
|
|
5878
5879
|
getDimensions: Zi,
|
|
@@ -5880,7 +5881,7 @@ const rs = {
|
|
|
5880
5881
|
isElement: Z,
|
|
5881
5882
|
isRTL: ts
|
|
5882
5883
|
};
|
|
5883
|
-
function
|
|
5884
|
+
function un(e, t) {
|
|
5884
5885
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5885
5886
|
}
|
|
5886
5887
|
function ns(e, t) {
|
|
@@ -5914,7 +5915,7 @@ function ns(e, t) {
|
|
|
5914
5915
|
s(!1, 1e-7);
|
|
5915
5916
|
}, 1e3);
|
|
5916
5917
|
}
|
|
5917
|
-
A === 1 && !
|
|
5918
|
+
A === 1 && !un(d, e.getBoundingClientRect()) && s(), E = !1;
|
|
5918
5919
|
}
|
|
5919
5920
|
try {
|
|
5920
5921
|
r = new IntersectionObserver(N, {
|
|
@@ -5956,7 +5957,7 @@ function as(e, t, r, n) {
|
|
|
5956
5957
|
c && w();
|
|
5957
5958
|
function w() {
|
|
5958
5959
|
const k = xe(e);
|
|
5959
|
-
b && !
|
|
5960
|
+
b && !un(b, k) && r(), b = k, f = requestAnimationFrame(w);
|
|
5960
5961
|
}
|
|
5961
5962
|
return r(), () => {
|
|
5962
5963
|
var k;
|
|
@@ -6010,11 +6011,11 @@ function at(e, t) {
|
|
|
6010
6011
|
}
|
|
6011
6012
|
return e !== e && t !== t;
|
|
6012
6013
|
}
|
|
6013
|
-
function
|
|
6014
|
+
function mn(e) {
|
|
6014
6015
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
6015
6016
|
}
|
|
6016
6017
|
function xr(e, t) {
|
|
6017
|
-
const r =
|
|
6018
|
+
const r = mn(e);
|
|
6018
6019
|
return Math.round(t * r) / r;
|
|
6019
6020
|
}
|
|
6020
6021
|
function bt(e) {
|
|
@@ -6067,7 +6068,7 @@ function ps(e) {
|
|
|
6067
6068
|
// setting it to `true` when `open === false` (must be specified).
|
|
6068
6069
|
isPositioned: U.current !== !1
|
|
6069
6070
|
};
|
|
6070
|
-
B.current && !at(O.current, ee) && (O.current = ee,
|
|
6071
|
+
B.current && !at(O.current, ee) && (O.current = ee, Fr.flushSync(() => {
|
|
6071
6072
|
m(ee);
|
|
6072
6073
|
}));
|
|
6073
6074
|
});
|
|
@@ -6108,7 +6109,7 @@ function ps(e) {
|
|
|
6108
6109
|
return l ? {
|
|
6109
6110
|
...L,
|
|
6110
6111
|
transform: "translate(" + Y + "px, " + ee + "px)",
|
|
6111
|
-
...
|
|
6112
|
+
...mn(j.floating) >= 1.5 && {
|
|
6112
6113
|
willChange: "transform"
|
|
6113
6114
|
}
|
|
6114
6115
|
} : {
|
|
@@ -6168,7 +6169,7 @@ const fs = (e) => {
|
|
|
6168
6169
|
...fs(e),
|
|
6169
6170
|
options: [e, t]
|
|
6170
6171
|
});
|
|
6171
|
-
var Cs = "Arrow",
|
|
6172
|
+
var Cs = "Arrow", gn = x.forwardRef((e, t) => {
|
|
6172
6173
|
const { children: r, width: n = 10, height: a = 5, ...o } = e;
|
|
6173
6174
|
return /* @__PURE__ */ i(
|
|
6174
6175
|
he.svg,
|
|
@@ -6183,8 +6184,8 @@ var Cs = "Arrow", mn = x.forwardRef((e, t) => {
|
|
|
6183
6184
|
}
|
|
6184
6185
|
);
|
|
6185
6186
|
});
|
|
6186
|
-
|
|
6187
|
-
var Ss =
|
|
6187
|
+
gn.displayName = Cs;
|
|
6188
|
+
var Ss = gn;
|
|
6188
6189
|
function Ns(e) {
|
|
6189
6190
|
const [t, r] = x.useState(void 0);
|
|
6190
6191
|
return ge(() => {
|
|
@@ -6207,22 +6208,22 @@ function Ns(e) {
|
|
|
6207
6208
|
r(void 0);
|
|
6208
6209
|
}, [e]), t;
|
|
6209
6210
|
}
|
|
6210
|
-
var Ht = "Popper", [
|
|
6211
|
+
var Ht = "Popper", [pn, fn] = Xr(Ht), [Es, hn] = pn(Ht), yn = (e) => {
|
|
6211
6212
|
const { __scopePopper: t, children: r } = e, [n, a] = x.useState(null);
|
|
6212
6213
|
return /* @__PURE__ */ i(Es, { scope: t, anchor: n, onAnchorChange: a, children: r });
|
|
6213
6214
|
};
|
|
6214
|
-
|
|
6215
|
-
var
|
|
6215
|
+
yn.displayName = Ht;
|
|
6216
|
+
var bn = "PopperAnchor", xn = x.forwardRef(
|
|
6216
6217
|
(e, t) => {
|
|
6217
|
-
const { __scopePopper: r, virtualRef: n, ...a } = e, o =
|
|
6218
|
+
const { __scopePopper: r, virtualRef: n, ...a } = e, o = hn(bn, r), s = x.useRef(null), l = we(t, s), c = x.useRef(null);
|
|
6218
6219
|
return x.useEffect(() => {
|
|
6219
6220
|
const d = c.current;
|
|
6220
6221
|
c.current = n?.current || s.current, d !== c.current && o.onAnchorChange(c.current);
|
|
6221
6222
|
}), n ? null : /* @__PURE__ */ i(he.div, { ...a, ref: l });
|
|
6222
6223
|
}
|
|
6223
6224
|
);
|
|
6224
|
-
|
|
6225
|
-
var Ut = "PopperContent", [As, Ps] =
|
|
6225
|
+
xn.displayName = bn;
|
|
6226
|
+
var Ut = "PopperContent", [As, Ps] = pn(Ut), vn = x.forwardRef(
|
|
6226
6227
|
(e, t) => {
|
|
6227
6228
|
const {
|
|
6228
6229
|
__scopePopper: r,
|
|
@@ -6239,7 +6240,7 @@ var Ut = "PopperContent", [As, Ps] = gn(Ut), xn = x.forwardRef(
|
|
|
6239
6240
|
updatePositionStrategy: g = "optimized",
|
|
6240
6241
|
onPlaced: f,
|
|
6241
6242
|
...b
|
|
6242
|
-
} = e, w =
|
|
6243
|
+
} = e, w = hn(Ut, r), [k, C] = x.useState(null), S = we(t, (Ie) => C(Ie)), [E, N] = x.useState(null), $ = Ns(E), A = $?.width ?? 0, O = $?.height ?? 0, D = n + (o !== "center" ? "-" + o : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(d) ? d : [d], U = z.length > 0, W = {
|
|
6243
6244
|
padding: M,
|
|
6244
6245
|
boundary: z.filter($s),
|
|
6245
6246
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6265,22 +6266,22 @@ var Ut = "PopperContent", [As, Ps] = gn(Ut), xn = x.forwardRef(
|
|
|
6265
6266
|
c && xs({ ...W }),
|
|
6266
6267
|
vs({
|
|
6267
6268
|
...W,
|
|
6268
|
-
apply: ({ elements: Ie, rects: Zt, availableWidth:
|
|
6269
|
-
const { width:
|
|
6270
|
-
Qe.setProperty("--radix-popper-available-width", `${
|
|
6269
|
+
apply: ({ elements: Ie, rects: Zt, availableWidth: Hn, availableHeight: Un }) => {
|
|
6270
|
+
const { width: qn, height: Gn } = Zt.reference, Qe = Ie.floating.style;
|
|
6271
|
+
Qe.setProperty("--radix-popper-available-width", `${Hn}px`), Qe.setProperty("--radix-popper-available-height", `${Un}px`), Qe.setProperty("--radix-popper-anchor-width", `${qn}px`), Qe.setProperty("--radix-popper-anchor-height", `${Gn}px`);
|
|
6271
6272
|
}
|
|
6272
6273
|
}),
|
|
6273
6274
|
E && ks({ element: E, padding: l }),
|
|
6274
6275
|
Ls({ arrowWidth: A, arrowHeight: O }),
|
|
6275
6276
|
p && ws({ strategy: "referenceHidden", ...W })
|
|
6276
6277
|
]
|
|
6277
|
-
}), [Y, ee] =
|
|
6278
|
+
}), [Y, ee] = Cn(j), Xt = ct(f);
|
|
6278
6279
|
ge(() => {
|
|
6279
6280
|
K && Xt?.();
|
|
6280
6281
|
}, [K, Xt]);
|
|
6281
|
-
const
|
|
6282
|
+
const Bn = L.arrow?.x, jn = L.arrow?.y, Fn = L.arrow?.centerOffset !== 0, [_n, Vn] = x.useState();
|
|
6282
6283
|
return ge(() => {
|
|
6283
|
-
k &&
|
|
6284
|
+
k && Vn(window.getComputedStyle(k).zIndex);
|
|
6284
6285
|
}, [k]), /* @__PURE__ */ i(
|
|
6285
6286
|
"div",
|
|
6286
6287
|
{
|
|
@@ -6291,7 +6292,7 @@ var Ut = "PopperContent", [As, Ps] = gn(Ut), xn = x.forwardRef(
|
|
|
6291
6292
|
transform: K ? G.transform : "translate(0, -200%)",
|
|
6292
6293
|
// keep off the page when measuring
|
|
6293
6294
|
minWidth: "max-content",
|
|
6294
|
-
zIndex:
|
|
6295
|
+
zIndex: _n,
|
|
6295
6296
|
"--radix-popper-transform-origin": [
|
|
6296
6297
|
L.transformOrigin?.x,
|
|
6297
6298
|
L.transformOrigin?.y
|
|
@@ -6311,9 +6312,9 @@ var Ut = "PopperContent", [As, Ps] = gn(Ut), xn = x.forwardRef(
|
|
|
6311
6312
|
scope: r,
|
|
6312
6313
|
placedSide: Y,
|
|
6313
6314
|
onArrowChange: N,
|
|
6314
|
-
arrowX:
|
|
6315
|
-
arrowY:
|
|
6316
|
-
shouldHideArrow:
|
|
6315
|
+
arrowX: Bn,
|
|
6316
|
+
arrowY: jn,
|
|
6317
|
+
shouldHideArrow: Fn,
|
|
6317
6318
|
children: /* @__PURE__ */ i(
|
|
6318
6319
|
he.div,
|
|
6319
6320
|
{
|
|
@@ -6335,14 +6336,14 @@ var Ut = "PopperContent", [As, Ps] = gn(Ut), xn = x.forwardRef(
|
|
|
6335
6336
|
);
|
|
6336
6337
|
}
|
|
6337
6338
|
);
|
|
6338
|
-
|
|
6339
|
-
var
|
|
6339
|
+
vn.displayName = Ut;
|
|
6340
|
+
var wn = "PopperArrow", Ts = {
|
|
6340
6341
|
top: "bottom",
|
|
6341
6342
|
right: "left",
|
|
6342
6343
|
bottom: "top",
|
|
6343
6344
|
left: "right"
|
|
6344
|
-
},
|
|
6345
|
-
const { __scopePopper: n, ...a } = t, o = Ps(
|
|
6345
|
+
}, kn = x.forwardRef(function(t, r) {
|
|
6346
|
+
const { __scopePopper: n, ...a } = t, o = Ps(wn, n), s = Ts[o.placedSide];
|
|
6346
6347
|
return (
|
|
6347
6348
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6348
6349
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6386,7 +6387,7 @@ var vn = "PopperArrow", Ts = {
|
|
|
6386
6387
|
)
|
|
6387
6388
|
);
|
|
6388
6389
|
});
|
|
6389
|
-
|
|
6390
|
+
kn.displayName = wn;
|
|
6390
6391
|
function $s(e) {
|
|
6391
6392
|
return e !== null;
|
|
6392
6393
|
}
|
|
@@ -6394,22 +6395,22 @@ var Ls = (e) => ({
|
|
|
6394
6395
|
name: "transformOrigin",
|
|
6395
6396
|
options: e,
|
|
6396
6397
|
fn(t) {
|
|
6397
|
-
const { placement: r, rects: n, middlewareData: a } = t, s = a.arrow?.centerOffset !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [d, u] =
|
|
6398
|
+
const { placement: r, rects: n, middlewareData: a } = t, s = a.arrow?.centerOffset !== 0, l = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [d, u] = Cn(r), m = { start: "0%", center: "50%", end: "100%" }[u], p = (a.arrow?.x ?? 0) + l / 2, g = (a.arrow?.y ?? 0) + c / 2;
|
|
6398
6399
|
let f = "", b = "";
|
|
6399
6400
|
return d === "bottom" ? (f = s ? m : `${p}px`, b = `${-c}px`) : d === "top" ? (f = s ? m : `${p}px`, b = `${n.floating.height + c}px`) : d === "right" ? (f = `${-c}px`, b = s ? m : `${g}px`) : d === "left" && (f = `${n.floating.width + c}px`, b = s ? m : `${g}px`), { data: { x: f, y: b } };
|
|
6400
6401
|
}
|
|
6401
6402
|
});
|
|
6402
|
-
function
|
|
6403
|
+
function Cn(e) {
|
|
6403
6404
|
const [t, r = "center"] = e.split("-");
|
|
6404
6405
|
return [t, r];
|
|
6405
6406
|
}
|
|
6406
|
-
var Is =
|
|
6407
|
+
var Is = yn, Rs = xn, Ms = vn, Os = kn, Ds = "Portal", Sn = x.forwardRef((e, t) => {
|
|
6407
6408
|
const { container: r, ...n } = e, [a, o] = x.useState(!1);
|
|
6408
6409
|
ge(() => o(!0), []);
|
|
6409
6410
|
const s = r || a && globalThis?.document?.body;
|
|
6410
6411
|
return s ? ka.createPortal(/* @__PURE__ */ i(he.div, { ...n, ref: t }), s) : null;
|
|
6411
6412
|
});
|
|
6412
|
-
|
|
6413
|
+
Sn.displayName = Ds;
|
|
6413
6414
|
function zs(e, t) {
|
|
6414
6415
|
return x.useReducer((r, n) => t[r][n] ?? r, e);
|
|
6415
6416
|
}
|
|
@@ -6533,7 +6534,7 @@ var Hs = Object.freeze({
|
|
|
6533
6534
|
clip: "rect(0, 0, 0, 0)",
|
|
6534
6535
|
whiteSpace: "nowrap",
|
|
6535
6536
|
wordWrap: "normal"
|
|
6536
|
-
}), Us = "VisuallyHidden",
|
|
6537
|
+
}), Us = "VisuallyHidden", Nn = x.forwardRef(
|
|
6537
6538
|
(e, t) => /* @__PURE__ */ i(
|
|
6538
6539
|
he.span,
|
|
6539
6540
|
{
|
|
@@ -6543,10 +6544,10 @@ var Hs = Object.freeze({
|
|
|
6543
6544
|
}
|
|
6544
6545
|
)
|
|
6545
6546
|
);
|
|
6546
|
-
|
|
6547
|
-
var qs =
|
|
6548
|
-
|
|
6549
|
-
]), ft =
|
|
6547
|
+
Nn.displayName = Us;
|
|
6548
|
+
var qs = Nn, [pt] = Xr("Tooltip", [
|
|
6549
|
+
fn
|
|
6550
|
+
]), ft = fn(), En = "TooltipProvider", Gs = 700, Tt = "tooltip.open", [Ks, Gt] = pt(En), An = (e) => {
|
|
6550
6551
|
const {
|
|
6551
6552
|
__scopeTooltip: t,
|
|
6552
6553
|
delayDuration: r = Gs,
|
|
@@ -6581,8 +6582,8 @@ var qs = Sn, [pt] = Qr("Tooltip", [
|
|
|
6581
6582
|
}
|
|
6582
6583
|
);
|
|
6583
6584
|
};
|
|
6584
|
-
|
|
6585
|
-
var Ve = "Tooltip", [Ys, Ye] = pt(Ve),
|
|
6585
|
+
An.displayName = En;
|
|
6586
|
+
var Ve = "Tooltip", [Ys, Ye] = pt(Ve), Pn = (e) => {
|
|
6586
6587
|
const {
|
|
6587
6588
|
__scopeTooltip: t,
|
|
6588
6589
|
children: r,
|
|
@@ -6631,8 +6632,8 @@ var Ve = "Tooltip", [Ys, Ye] = pt(Ve), An = (e) => {
|
|
|
6631
6632
|
}
|
|
6632
6633
|
) });
|
|
6633
6634
|
};
|
|
6634
|
-
|
|
6635
|
-
var $t = "TooltipTrigger",
|
|
6635
|
+
Pn.displayName = Ve;
|
|
6636
|
+
var $t = "TooltipTrigger", Tn = x.forwardRef(
|
|
6636
6637
|
(e, t) => {
|
|
6637
6638
|
const { __scopeTooltip: r, ...n } = e, a = Ye($t, r), o = Gt($t, r), s = ft(r), l = x.useRef(null), c = we(t, l, a.onTriggerChange), d = x.useRef(!1), u = x.useRef(!1), m = x.useCallback(() => d.current = !1, []);
|
|
6638
6639
|
return x.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ i(Rs, { asChild: !0, ...s, children: /* @__PURE__ */ i(
|
|
@@ -6660,18 +6661,18 @@ var $t = "TooltipTrigger", Pn = x.forwardRef(
|
|
|
6660
6661
|
) });
|
|
6661
6662
|
}
|
|
6662
6663
|
);
|
|
6663
|
-
|
|
6664
|
+
Tn.displayName = $t;
|
|
6664
6665
|
var Kt = "TooltipPortal", [Qs, Xs] = pt(Kt, {
|
|
6665
6666
|
forceMount: void 0
|
|
6666
|
-
}),
|
|
6667
|
+
}), $n = (e) => {
|
|
6667
6668
|
const { __scopeTooltip: t, forceMount: r, children: n, container: a } = e, o = Ye(Kt, t);
|
|
6668
|
-
return /* @__PURE__ */ i(Qs, { scope: t, forceMount: r, children: /* @__PURE__ */ i(qt, { present: r || o.open, children: /* @__PURE__ */ i(
|
|
6669
|
+
return /* @__PURE__ */ i(Qs, { scope: t, forceMount: r, children: /* @__PURE__ */ i(qt, { present: r || o.open, children: /* @__PURE__ */ i(Sn, { asChild: !0, container: a, children: n }) }) });
|
|
6669
6670
|
};
|
|
6670
|
-
|
|
6671
|
-
var Pe = "TooltipContent",
|
|
6671
|
+
$n.displayName = Kt;
|
|
6672
|
+
var Pe = "TooltipContent", Ln = x.forwardRef(
|
|
6672
6673
|
(e, t) => {
|
|
6673
6674
|
const r = Xs(Pe, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...o } = e, s = Ye(Pe, e.__scopeTooltip);
|
|
6674
|
-
return /* @__PURE__ */ i(qt, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ i(
|
|
6675
|
+
return /* @__PURE__ */ i(qt, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ i(In, { side: a, ...o, ref: t }) : /* @__PURE__ */ i(Zs, { side: a, ...o, ref: t }) });
|
|
6675
6676
|
}
|
|
6676
6677
|
), Zs = x.forwardRef((e, t) => {
|
|
6677
6678
|
const r = Ye(Pe, e.__scopeTooltip), n = Gt(Pe, e.__scopeTooltip), a = x.useRef(null), o = we(t, a), [s, l] = x.useState(null), { trigger: c, onClose: d } = r, u = a.current, { onPointerInTransitChange: m } = n, p = x.useCallback(() => {
|
|
@@ -6698,8 +6699,8 @@ var Pe = "TooltipContent", $n = x.forwardRef(
|
|
|
6698
6699
|
};
|
|
6699
6700
|
return document.addEventListener("pointermove", f), () => document.removeEventListener("pointermove", f);
|
|
6700
6701
|
}
|
|
6701
|
-
}, [c, u, s, d, p]), /* @__PURE__ */ i(
|
|
6702
|
-
}), [Js, el] = pt(Ve, { isInside: !1 }), tl = ya("TooltipContent"),
|
|
6702
|
+
}, [c, u, s, d, p]), /* @__PURE__ */ i(In, { ...e, ref: o });
|
|
6703
|
+
}), [Js, el] = pt(Ve, { isInside: !1 }), tl = ya("TooltipContent"), In = x.forwardRef(
|
|
6703
6704
|
(e, t) => {
|
|
6704
6705
|
const {
|
|
6705
6706
|
__scopeTooltip: r,
|
|
@@ -6717,7 +6718,7 @@ var Pe = "TooltipContent", $n = x.forwardRef(
|
|
|
6717
6718
|
return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
|
|
6718
6719
|
}
|
|
6719
6720
|
}, [c.trigger, u]), /* @__PURE__ */ i(
|
|
6720
|
-
|
|
6721
|
+
Jr,
|
|
6721
6722
|
{
|
|
6722
6723
|
asChild: !0,
|
|
6723
6724
|
disableOutsidePointerEvents: !1,
|
|
@@ -6750,17 +6751,17 @@ var Pe = "TooltipContent", $n = x.forwardRef(
|
|
|
6750
6751
|
);
|
|
6751
6752
|
}
|
|
6752
6753
|
);
|
|
6753
|
-
|
|
6754
|
-
var
|
|
6754
|
+
Ln.displayName = Pe;
|
|
6755
|
+
var Rn = "TooltipArrow", Mn = x.forwardRef(
|
|
6755
6756
|
(e, t) => {
|
|
6756
6757
|
const { __scopeTooltip: r, ...n } = e, a = ft(r);
|
|
6757
6758
|
return el(
|
|
6758
|
-
|
|
6759
|
+
Rn,
|
|
6759
6760
|
r
|
|
6760
6761
|
).isInside ? null : /* @__PURE__ */ i(Os, { ...a, ...n, ref: t });
|
|
6761
6762
|
}
|
|
6762
6763
|
);
|
|
6763
|
-
|
|
6764
|
+
Mn.displayName = Rn;
|
|
6764
6765
|
function rl(e, t) {
|
|
6765
6766
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), a = Math.abs(t.right - e.x), o = Math.abs(t.left - e.x);
|
|
6766
6767
|
switch (Math.min(r, n, a, o)) {
|
|
@@ -6853,7 +6854,7 @@ function sl(e) {
|
|
|
6853
6854
|
}
|
|
6854
6855
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
6855
6856
|
}
|
|
6856
|
-
var ll =
|
|
6857
|
+
var ll = An, cl = Pn, dl = Tn, ul = $n, ml = Ln, gl = Mn;
|
|
6857
6858
|
const pl = {
|
|
6858
6859
|
operational: {
|
|
6859
6860
|
color: "bg-green-500/80",
|
|
@@ -7228,7 +7229,7 @@ const pl = {
|
|
|
7228
7229
|
size: "default"
|
|
7229
7230
|
}
|
|
7230
7231
|
}
|
|
7231
|
-
),
|
|
7232
|
+
), On = x.forwardRef(
|
|
7232
7233
|
({ className: e, variant: t, size: r, to: n, href: a, external: o, children: s, ...l }, c) => {
|
|
7233
7234
|
const d = n || a;
|
|
7234
7235
|
return d ? o || d.startsWith("http") || d.startsWith("mailto:") ? /* @__PURE__ */ i(
|
|
@@ -7267,7 +7268,7 @@ const pl = {
|
|
|
7267
7268
|
);
|
|
7268
7269
|
}
|
|
7269
7270
|
);
|
|
7270
|
-
|
|
7271
|
+
On.displayName = "SmartLink";
|
|
7271
7272
|
const Wu = (e, t) => x.useMemo(() => {
|
|
7272
7273
|
let r = e;
|
|
7273
7274
|
return Object.entries(t).forEach(([n, a]) => {
|
|
@@ -7357,7 +7358,7 @@ const Wu = (e, t) => x.useMemo(() => {
|
|
|
7357
7358
|
);
|
|
7358
7359
|
if (c) {
|
|
7359
7360
|
const [, d, u] = c;
|
|
7360
|
-
return /* @__PURE__ */ i(
|
|
7361
|
+
return /* @__PURE__ */ i(On, { to: d, variant: n, children: u }, l);
|
|
7361
7362
|
}
|
|
7362
7363
|
return s;
|
|
7363
7364
|
}) });
|
|
@@ -7435,7 +7436,7 @@ const Wu = (e, t) => x.useMemo(() => {
|
|
|
7435
7436
|
onClick: t,
|
|
7436
7437
|
className: T.overlays.modal.closeButton(),
|
|
7437
7438
|
"aria-label": g,
|
|
7438
|
-
children: /* @__PURE__ */ i(
|
|
7439
|
+
children: /* @__PURE__ */ i(da, { className: T.icon.variant.muted.md() })
|
|
7439
7440
|
}
|
|
7440
7441
|
)
|
|
7441
7442
|
] }),
|
|
@@ -7703,13 +7704,13 @@ const Wu = (e, t) => x.useMemo(() => {
|
|
|
7703
7704
|
/* @__PURE__ */ i(lt, { to: o, className: v(Ol({ variant: t })), children: a })
|
|
7704
7705
|
] }) }) }), Dl = {
|
|
7705
7706
|
error: {
|
|
7706
|
-
icon:
|
|
7707
|
+
icon: Rr
|
|
7707
7708
|
},
|
|
7708
7709
|
warning: {
|
|
7709
7710
|
icon: It
|
|
7710
7711
|
},
|
|
7711
7712
|
attention: {
|
|
7712
|
-
icon:
|
|
7713
|
+
icon: Lr
|
|
7713
7714
|
},
|
|
7714
7715
|
info: {
|
|
7715
7716
|
icon: je
|
|
@@ -7723,7 +7724,7 @@ const Wu = (e, t) => x.useMemo(() => {
|
|
|
7723
7724
|
text: r,
|
|
7724
7725
|
className: n
|
|
7725
7726
|
}) => {
|
|
7726
|
-
const o = Dl[e].icon, s =
|
|
7727
|
+
const o = Dl[e].icon, s = Hr[e];
|
|
7727
7728
|
return /* @__PURE__ */ h(
|
|
7728
7729
|
"div",
|
|
7729
7730
|
{
|
|
@@ -8178,7 +8179,7 @@ ${e.description}`
|
|
|
8178
8179
|
showCopy: o = !0,
|
|
8179
8180
|
showHeader: s = !0
|
|
8180
8181
|
}) => {
|
|
8181
|
-
const { t: l } =
|
|
8182
|
+
const { t: l } = _r("codeBlock"), { code: c, loading: d, error: u } = Za(e || ""), [m, p] = R(!1), g = t || c, b = r || (e ? ((k) => {
|
|
8182
8183
|
switch (k.split(".").pop()?.toLowerCase()) {
|
|
8183
8184
|
case "sol":
|
|
8184
8185
|
return "solidity";
|
|
@@ -8255,7 +8256,7 @@ ${e.description}`
|
|
|
8255
8256
|
onClick: w,
|
|
8256
8257
|
className: "p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 rounded-lg transition-all duration-200 group",
|
|
8257
8258
|
title: l("copyCode", "Copy code"),
|
|
8258
|
-
children: m ? /* @__PURE__ */ i(
|
|
8259
|
+
children: m ? /* @__PURE__ */ i(Mr, { className: "h-4 w-4 text-green-400" }) : /* @__PURE__ */ i(ua, { className: "h-4 w-4 group-hover:scale-110 transition-transform" })
|
|
8259
8260
|
}
|
|
8260
8261
|
)
|
|
8261
8262
|
] }),
|
|
@@ -8319,7 +8320,7 @@ ${e.description}`
|
|
|
8319
8320
|
className: "flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm",
|
|
8320
8321
|
"aria-label": m ? "Copied!" : "Copy code",
|
|
8321
8322
|
children: m ? /* @__PURE__ */ h(H, { children: [
|
|
8322
|
-
/* @__PURE__ */ i(
|
|
8323
|
+
/* @__PURE__ */ i(Mr, { className: "h-4 w-4" }),
|
|
8323
8324
|
/* @__PURE__ */ i("span", { children: "Copied!" })
|
|
8324
8325
|
] }) : /* @__PURE__ */ h(H, { children: [
|
|
8325
8326
|
/* @__PURE__ */ i(ma, { className: "h-4 w-4" }),
|
|
@@ -8450,7 +8451,7 @@ ${e.description}`
|
|
|
8450
8451
|
}
|
|
8451
8452
|
)
|
|
8452
8453
|
}
|
|
8453
|
-
), u = () => n === "arrow" || n === "both" ? /* @__PURE__ */ i(
|
|
8454
|
+
), u = () => n === "arrow" || n === "both" ? /* @__PURE__ */ i(Ir, { className: "h-4 w-4 ml-2" }) : null, m = () => a === "prominent" ? "border-b-2 border-green-200 dark:border-green-700" : "border-b border-green-200 dark:border-green-700", p = () => {
|
|
8454
8455
|
const b = "bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";
|
|
8455
8456
|
return a === "prominent" ? `${b} px-8 py-3 text-base` : `${b} px-6 py-2 text-sm`;
|
|
8456
8457
|
}, g = () => a === "prominent" ? "text-green-800 dark:text-green-200 font-semibold text-lg" : "text-green-800 dark:text-green-200 font-semibold", f = a === "prominent" ? s : o;
|
|
@@ -8579,7 +8580,7 @@ ${e.description}`
|
|
|
8579
8580
|
variant: e = "compact",
|
|
8580
8581
|
className: t = ""
|
|
8581
8582
|
}) => {
|
|
8582
|
-
const { i18n: r, t: n } =
|
|
8583
|
+
const { i18n: r, t: n } = _r("languageSelector"), [a, o] = P.useState(r.language), s = P.useMemo(() => r.options.supportedLngs ? r.options.supportedLngs.filter((d) => d !== "cimode").map((d) => ({
|
|
8583
8584
|
code: d,
|
|
8584
8585
|
name: vr[d]?.name || d.toUpperCase(),
|
|
8585
8586
|
flag: vr[d]?.flag || "🌐"
|
|
@@ -10782,7 +10783,7 @@ const n0 = {
|
|
|
10782
10783
|
/* @__PURE__ */ i("div", { className: "animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500" }),
|
|
10783
10784
|
/* @__PURE__ */ i("span", { className: "ml-2 text-sm text-gray-600", children: e })
|
|
10784
10785
|
] }), vt = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Set();
|
|
10785
|
-
function
|
|
10786
|
+
function Dn() {
|
|
10786
10787
|
const e = [];
|
|
10787
10788
|
return !!window.ethereum?.isMetaMask && (ze.add("metamask"), e.push({
|
|
10788
10789
|
name: "MetaMask",
|
|
@@ -10802,7 +10803,7 @@ function On() {
|
|
|
10802
10803
|
priority: 4
|
|
10803
10804
|
}), e.sort((a, o) => a.priority - o.priority);
|
|
10804
10805
|
}
|
|
10805
|
-
function
|
|
10806
|
+
function zn(e) {
|
|
10806
10807
|
const t = `wallet-${e.toLowerCase()}`;
|
|
10807
10808
|
if (vt.has(t))
|
|
10808
10809
|
return vt.get(t);
|
|
@@ -10826,13 +10827,13 @@ function Dn(e) {
|
|
|
10826
10827
|
function a0({
|
|
10827
10828
|
children: e
|
|
10828
10829
|
}) {
|
|
10829
|
-
const t =
|
|
10830
|
+
const t = Dn();
|
|
10830
10831
|
return t.filter((r) => r.priority <= 2 && r.detected).forEach((r) => {
|
|
10831
10832
|
setTimeout(() => {
|
|
10832
10833
|
}, 1e3);
|
|
10833
10834
|
}), /* @__PURE__ */ h(H, { children: [
|
|
10834
10835
|
t.map((r) => {
|
|
10835
|
-
const n =
|
|
10836
|
+
const n = zn(r.name);
|
|
10836
10837
|
return /* @__PURE__ */ i(n, {}, r.name);
|
|
10837
10838
|
}),
|
|
10838
10839
|
e
|
|
@@ -10842,7 +10843,7 @@ const Qt = class Qt {
|
|
|
10842
10843
|
static preloadWallet(t) {
|
|
10843
10844
|
const r = t.toLowerCase();
|
|
10844
10845
|
this.preloadedWallets.has(r) || (this.preloadedWallets.add(r), setTimeout(() => {
|
|
10845
|
-
|
|
10846
|
+
zn(t);
|
|
10846
10847
|
}, 500));
|
|
10847
10848
|
}
|
|
10848
10849
|
static preloadCommonWallets() {
|
|
@@ -10860,7 +10861,7 @@ Qt.preloadedWallets = /* @__PURE__ */ new Set();
|
|
|
10860
10861
|
let it = Qt;
|
|
10861
10862
|
function o0() {
|
|
10862
10863
|
return {
|
|
10863
|
-
availableWallets:
|
|
10864
|
+
availableWallets: Dn(),
|
|
10864
10865
|
preloadWallet: (n) => {
|
|
10865
10866
|
it.preloadWallet(n);
|
|
10866
10867
|
},
|
|
@@ -11174,9 +11175,9 @@ const wt = {
|
|
|
11174
11175
|
e().catch(() => {
|
|
11175
11176
|
});
|
|
11176
11177
|
}, 100);
|
|
11177
|
-
},
|
|
11178
|
-
|
|
11179
|
-
}, b0 = () =>
|
|
11178
|
+
}, Wn = {}, y0 = (e) => {
|
|
11179
|
+
Wn[e.name] = e.value, process.env.NODE_ENV;
|
|
11180
|
+
}, b0 = () => Wn, x0 = (e, t = "script") => {
|
|
11180
11181
|
if (typeof document < "u") {
|
|
11181
11182
|
const r = document.createElement("link");
|
|
11182
11183
|
r.rel = "prefetch", r.href = e, r.as = t, document.head.appendChild(r);
|
|
@@ -12023,7 +12024,7 @@ export {
|
|
|
12023
12024
|
bm as CTASection,
|
|
12024
12025
|
ru as CalloutBox,
|
|
12025
12026
|
Pm as CancellableRequest,
|
|
12026
|
-
|
|
12027
|
+
Ur as Card,
|
|
12027
12028
|
Jd as CardContent,
|
|
12028
12029
|
eu as CardFooter,
|
|
12029
12030
|
Zd as CardHeader,
|
|
@@ -12053,7 +12054,7 @@ export {
|
|
|
12053
12054
|
rg as DocumentTextIcon,
|
|
12054
12055
|
iu as Dropdown,
|
|
12055
12056
|
bu as EmailAccountsList,
|
|
12056
|
-
|
|
12057
|
+
Qr as EmailInputField,
|
|
12057
12058
|
Au as EmailInputGroup,
|
|
12058
12059
|
Qo as EmptyState,
|
|
12059
12060
|
ng as EnvelopeIcon,
|
|
@@ -12085,14 +12086,14 @@ export {
|
|
|
12085
12086
|
Hd as KYCLevelCard,
|
|
12086
12087
|
_d as KYCStatusBadge,
|
|
12087
12088
|
dg as KeyIcon,
|
|
12088
|
-
|
|
12089
|
+
qr as Label,
|
|
12089
12090
|
nm as LanguageSelector,
|
|
12090
12091
|
pm as LazyComponent,
|
|
12091
12092
|
Bm as LazyImage,
|
|
12092
12093
|
Ua as LazyLoadQueue,
|
|
12093
12094
|
i0 as LazyWalletButton,
|
|
12094
12095
|
wd as LazyWrapper,
|
|
12095
|
-
|
|
12096
|
+
Vr as LoadPriority,
|
|
12096
12097
|
Sm as LoadingOptimizer,
|
|
12097
12098
|
Nu as LoadingState,
|
|
12098
12099
|
Yu as Logo,
|
|
@@ -12136,8 +12137,8 @@ export {
|
|
|
12136
12137
|
pu as SelectGroup,
|
|
12137
12138
|
St as SelectItem,
|
|
12138
12139
|
$o as SelectLabel,
|
|
12139
|
-
|
|
12140
|
-
|
|
12140
|
+
Kr as SelectScrollDownButton,
|
|
12141
|
+
Gr as SelectScrollUpButton,
|
|
12141
12142
|
Lo as SelectSeparator,
|
|
12142
12143
|
kt as SelectTrigger,
|
|
12143
12144
|
To as SelectValue,
|
|
@@ -12145,7 +12146,7 @@ export {
|
|
|
12145
12146
|
xu as SettingsList,
|
|
12146
12147
|
yg as ShieldCheckIcon,
|
|
12147
12148
|
Bu as SmartContent,
|
|
12148
|
-
|
|
12149
|
+
On as SmartLink,
|
|
12149
12150
|
a0 as SmartWalletProviders,
|
|
12150
12151
|
bg as SparklesIcon,
|
|
12151
12152
|
ar as Spinner,
|
|
@@ -12213,7 +12214,7 @@ export {
|
|
|
12213
12214
|
ic as createLazyComponent,
|
|
12214
12215
|
p0 as createLazyComponentFactory,
|
|
12215
12216
|
kd as createLazyRoute,
|
|
12216
|
-
|
|
12217
|
+
zn as createLazyWalletProvider,
|
|
12217
12218
|
Hm as createLibraryImports,
|
|
12218
12219
|
cm as createMemoComponent,
|
|
12219
12220
|
Oc as createOptimizedStyles,
|
|
@@ -12233,7 +12234,7 @@ export {
|
|
|
12233
12234
|
Oe as deadCodeElimination,
|
|
12234
12235
|
z0 as default,
|
|
12235
12236
|
Qa as defaultPerformanceBudget,
|
|
12236
|
-
|
|
12237
|
+
Dn as detectAvailableWallets,
|
|
12237
12238
|
Ga as detectWalletBrowser,
|
|
12238
12239
|
Dd as exportPerformanceData,
|
|
12239
12240
|
zd as formatFileSize,
|