@novie/ui 0.1.2 → 0.1.5
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/README.md +19 -0
- package/dist/components/ui/avatar.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/icon-button.d.ts +1 -1
- package/dist/components/ui/novie-logo.d.ts +9 -0
- package/dist/components/ui/novie-logo.d.ts.map +1 -0
- package/dist/components/ui/novie-symbol.d.ts +7 -0
- package/dist/components/ui/novie-symbol.d.ts.map +1 -0
- package/dist/components/ui/tag.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1303 -1181
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +17 -0
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { clsx as e } from "clsx";
|
|
3
3
|
import { twMerge as t } from "tailwind-merge";
|
|
4
|
-
import
|
|
5
|
-
import r,
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import * as o from "react";
|
|
7
|
+
import s, { useId as c, useLayoutEffect as l } from "react";
|
|
8
|
+
import { Slot as u, createSlot as d, createSlottable as f } from "@radix-ui/react-slot";
|
|
9
|
+
import { CalendarIcon as p, Check as m, ChevronDown as h, CircleAlert as g, CircleCheck as _, Ellipsis as v, Info as y, Loader2 as b, Minus as x, Search as S, TriangleAlert as C, X as w } from "lucide-react";
|
|
10
10
|
import * as T from "@radix-ui/react-checkbox";
|
|
11
11
|
import * as E from "@radix-ui/react-switch";
|
|
12
12
|
import * as ee from "react-dom";
|
|
@@ -19,8 +19,130 @@ function j(...n) {
|
|
|
19
19
|
return t(e(n));
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
+
//#region src/components/ui/novie-logo.tsx
|
|
23
|
+
var M = n("inline-flex shrink-0", {
|
|
24
|
+
variants: { size: {
|
|
25
|
+
sm: "h-4",
|
|
26
|
+
md: "h-6",
|
|
27
|
+
lg: "h-8",
|
|
28
|
+
xl: "h-12"
|
|
29
|
+
} },
|
|
30
|
+
defaultVariants: { size: "md" }
|
|
31
|
+
});
|
|
32
|
+
function N(e) {
|
|
33
|
+
return /* @__PURE__ */ a("svg", {
|
|
34
|
+
viewBox: "0 0 152 48",
|
|
35
|
+
fill: "none",
|
|
36
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
+
...e,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ i("path", {
|
|
40
|
+
d: "M29.6559 10.4545C29.4679 9.91519 29.1836 9.41218 28.8213 8.96808C27.8997 7.84424 26.5241 7.17809 25.0568 7.15543C24.1443 7.15543 22.92 7.57234 20.8795 8.26568L19.8891 8.60102V7.48624C19.8891 5.35638 19.8891 4.07846 19.5911 3.22198C19.0913 1.8625 18.0045 0.793034 16.6289 0.294556C16.0879 0.0996957 15.5147 0 14.9369 0C14.3592 0 13.786 0.0996957 13.245 0.294556C11.8694 0.788503 10.7872 1.8625 10.2828 3.22198C9.98478 4.07393 9.98478 5.35185 9.98478 7.48624V8.59649L8.97142 8.27021C6.92178 7.61313 5.68832 7.21888 4.77584 7.23247C3.31312 7.28232 1.94669 7.97113 1.04338 9.1131C0.685726 9.56173 0.415191 10.0693 0.236363 10.6131C0.0667062 11.1523 -0.0158298 11.7233 0.00251152 12.2943C0.0529502 13.7399 0.749921 15.0903 1.90542 15.983C2.63449 16.5268 3.86336 16.9211 5.91301 17.5827L6.88051 17.8909L6.28442 18.702C5.01887 20.424 4.2577 21.4618 3.99175 22.3228C3.58824 23.714 3.82668 25.2094 4.64745 26.4103C4.96843 26.8816 5.37652 27.2985 5.84422 27.6338C6.31193 27.9692 6.83466 28.223 7.38948 28.3816C8.79718 28.7803 10.3103 28.5447 11.5255 27.7335C12.2729 27.2169 13.034 26.1837 14.3042 24.4572L15.0057 23.5055L15.7073 24.4572C16.9728 26.1792 17.734 27.2169 18.486 27.7335C19.7011 28.5447 21.2143 28.7803 22.622 28.3816C23.1768 28.223 23.6995 27.9737 24.1672 27.6338C24.6349 27.2985 25.0384 26.8861 25.364 26.4103C26.1848 25.2094 26.4232 23.714 26.0197 22.3228C25.7537 21.4618 24.9926 20.424 23.727 18.702L23.1126 17.8637L24.1259 17.5193C26.1664 16.8259 27.3861 16.409 28.106 15.8516C29.2432 14.9408 29.9172 13.5813 29.9401 12.1312C29.9493 11.5602 29.8576 10.9937 29.6696 10.4545H29.6559Z",
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ i("path", {
|
|
44
|
+
d: "M33.4573 46.6382L33.6526 17.2696L40.3887 17.3147L51.8805 35.603H52.0258L51.9123 30.6173L51.9986 17.3868L58.3032 17.4274L58.1079 46.796L52.1757 46.7554L39.9027 27.7233H39.7392L39.8709 32.6864L39.7755 46.6743L33.4527 46.6337L33.4573 46.6382Z",
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ i("path", {
|
|
48
|
+
d: "M73.1744 47.621C69.7723 47.5984 66.9833 46.521 64.8031 44.3888C62.6274 42.2566 61.5509 39.5564 61.569 36.2882C61.5917 32.993 62.7091 30.3018 64.9212 28.2101C67.1332 26.1185 69.9312 25.0862 73.3243 25.1087C76.7128 25.1313 79.5017 26.2041 81.682 28.3319C83.8668 30.4596 84.9478 33.1643 84.9251 36.446C84.9024 39.7142 83.7941 42.4009 81.5956 44.506C79.3972 46.6112 76.5901 47.6525 73.1744 47.63V47.621Z M73.2062 42.2476C74.7369 42.2566 76.0178 41.7112 77.0489 40.6112C78.0845 39.5113 78.6069 38.1049 78.616 36.3964C78.6296 34.6609 78.1209 33.2409 77.0943 32.141C76.0678 31.0411 74.7959 30.4866 73.2834 30.4731C71.7527 30.4641 70.4672 31.0005 69.4271 32.0869C68.3869 33.1733 67.86 34.5842 67.8464 36.3243C67.8373 38.0328 68.3369 39.4437 69.3589 40.5617C70.3764 41.6751 71.6573 42.2386 73.2016 42.2476H73.2062Z",
|
|
49
|
+
fill: "currentColor"
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ i("path", {
|
|
52
|
+
d: "M93.637 47.0349L85.2839 25.8931L91.8974 25.9382L96.3987 38.6458L96.9847 40.5797H97.13L97.7841 38.6368L102.417 26.0103L108.908 26.0509L100.064 47.08L93.637 47.0394V47.0349Z",
|
|
53
|
+
fill: "currentColor"
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ i("path", {
|
|
56
|
+
d: "M113.968 22.7827C112.946 22.7782 112.088 22.4266 111.393 21.7324C110.693 21.0381 110.348 20.1862 110.357 19.1719C110.366 18.1441 110.72 17.3011 111.429 16.634C112.137 15.9668 113 15.6377 114.018 15.6468C115.063 15.6558 115.93 15.9939 116.616 16.67C117.302 17.3462 117.638 18.1937 117.634 19.2215C117.629 20.2357 117.275 21.0832 116.584 21.7684C115.889 22.4536 115.022 22.7962 113.973 22.7872L113.968 22.7827Z M110.561 47.1476L110.702 26.0644L117.17 26.105L117.029 47.1882L110.561 47.1476Z",
|
|
57
|
+
fill: "currentColor"
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ i("path", {
|
|
60
|
+
d: "M131.242 47.9996C127.854 47.9771 125.142 46.8997 123.111 44.7675C121.081 42.6353 120.073 39.9351 120.095 36.6669C120.118 33.4122 121.167 30.73 123.248 28.6158C125.328 26.5017 128.017 25.4604 131.31 25.4784C134.394 25.4964 136.933 26.4746 138.927 28.4085C140.921 30.3424 141.907 32.8127 141.884 35.8239L141.871 38.0373L123.189 37.9155L123.211 34.715L135.943 34.8006C135.857 33.5159 135.398 32.4701 134.567 31.6632C133.74 30.8562 132.636 30.4505 131.26 30.4415C129.743 30.4325 128.53 30.9599 127.622 32.0283C126.713 33.0967 126.25 34.5797 126.237 36.482C126.223 38.5466 126.741 40.183 127.794 41.3866C128.848 42.5902 130.256 43.1987 132.019 43.2078C132.805 43.2123 133.504 43.1086 134.117 42.8922C134.73 42.6758 135.285 42.3918 135.775 42.0402C136.266 41.6886 136.838 41.1161 137.492 40.3272L141.253 43.2664C140.254 44.5601 139.286 45.5158 138.36 46.1379C137.433 46.76 136.42 47.2288 135.321 47.5443C134.222 47.8599 132.864 48.0086 131.237 47.9996H131.242Z",
|
|
61
|
+
fill: "currentColor"
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ i("path", {
|
|
64
|
+
d: "M147.985 47.7427C146.867 47.7336 145.927 47.3505 145.159 46.5841C144.392 45.8178 144.015 44.8847 144.019 43.7758C144.028 42.6803 144.419 41.7607 145.196 41.0169C145.972 40.2686 146.917 39.899 148.035 39.908C149.152 39.917 150.092 40.3002 150.86 41.053C151.628 41.8103 152.005 42.7344 152 43.8298C151.991 44.9388 151.6 45.8674 150.824 46.6202C150.047 47.373 149.102 47.7472 147.985 47.7382V47.7427Z",
|
|
65
|
+
fill: "currentColor"
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function P(e) {
|
|
71
|
+
return /* @__PURE__ */ a("svg", {
|
|
72
|
+
viewBox: "0 0 202.46 48",
|
|
73
|
+
fill: "none",
|
|
74
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
+
...e,
|
|
76
|
+
children: [/* @__PURE__ */ i("path", {
|
|
77
|
+
d: "M29.6559 10.4545C29.4679 9.91519 29.1836 9.41218 28.8213 8.96808C27.8997 7.84424 26.5241 7.17809 25.0568 7.15543C24.1443 7.15543 22.92 7.57234 20.8795 8.26568L19.8891 8.60102V7.48624C19.8891 5.35638 19.8891 4.07846 19.5911 3.22198C19.0913 1.8625 18.0045 0.793034 16.6289 0.294556C16.0879 0.0996957 15.5147 0 14.9369 0C14.3592 0 13.786 0.0996957 13.245 0.294556C11.8694 0.788503 10.7872 1.8625 10.2828 3.22198C9.98478 4.07393 9.98478 5.35185 9.98478 7.48624V8.59649L8.97142 8.27021C6.92178 7.61313 5.68832 7.21888 4.77584 7.23247C3.31312 7.28232 1.94669 7.97113 1.04338 9.1131C0.685726 9.56173 0.415191 10.0693 0.236363 10.6131C0.0667062 11.1523 -0.0158298 11.7233 0.00251152 12.2943C0.0529502 13.7399 0.749921 15.0903 1.90542 15.983C2.63449 16.5268 3.86336 16.9211 5.91301 17.5827L6.88051 17.8909L6.28442 18.702C5.01887 20.424 4.2577 21.4618 3.99175 22.3228C3.58824 23.714 3.82668 25.2094 4.64745 26.4103C4.96843 26.8816 5.37652 27.2985 5.84422 27.6338C6.31193 27.9692 6.83466 28.223 7.38948 28.3816C8.79718 28.7803 10.3103 28.5447 11.5255 27.7335C12.2729 27.2169 13.034 26.1837 14.3042 24.4572L15.0057 23.5055L15.7073 24.4572C16.9728 26.1792 17.734 27.2169 18.486 27.7335C19.7011 28.5447 21.2143 28.7803 22.622 28.3816C23.1768 28.223 23.6995 27.9737 24.1672 27.6338C24.6349 27.2985 25.0384 26.8861 25.364 26.4103C26.1848 25.2094 26.4232 23.714 26.0197 22.3228C25.7537 21.4618 24.9926 20.424 23.727 18.702L23.1126 17.8637L24.1259 17.5193C26.1664 16.8259 27.3861 16.409 28.106 15.8516C29.2432 14.9408 29.9172 13.5813 29.9401 12.1312C29.9493 11.5602 29.8576 10.9937 29.6696 10.4545H29.6559Z",
|
|
78
|
+
fill: "currentColor",
|
|
79
|
+
transform: "translate(0, 0.58) scale(1.658)"
|
|
80
|
+
}), /* @__PURE__ */ a("g", {
|
|
81
|
+
transform: "translate(59, 9.114)",
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ i("path", {
|
|
84
|
+
d: "M3.46758e-08 38.0536V1.90886H8.27733L22.4116 24.0932H22.5621L22.4116 18.4903V1.90886H30.2611V38.0536H22.9666L7.84942 14.96H7.67224L7.84942 20.5362V38.0536H3.46758e-08Z",
|
|
85
|
+
fill: "currentColor"
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ i("path", {
|
|
88
|
+
d: "M48.4571 38.8861C44.3352 38.8861 40.9353 37.5723 38.2609 34.948C35.5865 32.3237 34.2493 29.0175 34.2493 25.0292C34.2493 21.041 35.5865 17.6946 38.2609 15.0837C40.9353 12.4762 44.3352 11.1724 48.4571 11.1724C52.5791 11.1724 55.9823 12.4795 58.6667 15.0971C61.3512 17.7147 62.6917 21.0243 62.6917 25.0292C62.6917 29.0342 61.3579 32.3237 58.6901 34.948C56.0224 37.5723 52.6125 38.8861 48.4538 38.8861H48.4571Z M48.4839 32.1465C50.3359 32.1465 51.8871 31.4779 53.1407 30.1407C54.3944 28.8035 55.0195 27.0986 55.0195 25.0292C55.0195 22.9599 54.3877 21.2148 53.1273 19.8943C51.8637 18.5738 50.3159 17.9119 48.4839 17.9119C46.6519 17.9119 45.0539 18.5772 43.8003 19.9044C42.5467 21.2349 41.9215 22.9432 41.9215 25.0292C41.9215 27.1153 42.5433 28.8035 43.7903 30.1407C45.0339 31.4779 46.6018 32.1465 48.4839 32.1465Z",
|
|
89
|
+
fill: "currentColor"
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ i("path", {
|
|
92
|
+
d: "M72.2829 38.0536L62.0098 12.0048L70.1366 12.0048L75.6627 27.5265L76.3446 29.9234H76.4951L77.254 27.5265L82.7566 12.0048L90.7564 12.0048L80.2058 38.0536H72.2795H72.2829Z",
|
|
93
|
+
fill: "currentColor"
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ i("path", {
|
|
96
|
+
d: "M96.8173 8.8891C95.5704 8.8891 94.5173 8.45785 93.6481 7.58867C92.7823 6.72282 92.3477 5.66643 92.3477 4.41948C92.3477 3.17253 92.7823 2.10611 93.6481 1.26366C94.514 0.421221 95.5704 0 96.8173 0C98.0643 0 99.1808 0.421221 100.023 1.26366C100.866 2.10611 101.287 3.15582 101.287 4.41948C101.287 5.68314 100.866 6.71948 100.023 7.58867C99.1808 8.45451 98.1144 8.8891 96.8173 8.8891Z M92.8558 38.0537L92.8558 12.0048L100.806 12.0048L100.806 38.0537L92.8558 38.0537Z",
|
|
97
|
+
fill: "currentColor"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ i("path", {
|
|
100
|
+
d: "M118.169 38.8861C114.047 38.8861 110.718 37.5823 108.187 34.9747C105.653 32.3672 104.389 29.0509 104.389 25.0292C104.389 21.0076 105.663 17.7347 108.214 15.1105C110.764 12.4862 114.041 11.1724 118.046 11.1724C122.05 11.1724 125.002 12.3625 127.459 14.7427C129.917 17.123 131.144 20.1752 131.144 23.8926V26.6172H108.2V22.6289H123.872C123.755 21.0644 123.177 19.7907 122.144 18.8045C121.108 17.8183 119.74 17.3269 118.042 17.3269C116.19 17.3269 114.692 17.9922 113.549 19.3193C112.406 20.6499 111.834 22.4818 111.834 24.822C111.834 27.3292 112.493 29.3116 113.817 30.7659C115.137 32.2201 116.859 32.9488 118.978 32.9488C119.938 32.9488 120.797 32.8151 121.552 32.5443C122.308 32.2769 122.99 31.9125 123.598 31.4579C124.203 31.0032 124.895 30.2711 125.668 29.2615L130.438 32.7182C129.241 34.3663 128.081 35.5965 126.955 36.4022C125.828 37.2079 124.581 37.823 123.221 38.2442C121.857 38.6654 120.175 38.876 118.173 38.876L118.169 38.8861Z",
|
|
101
|
+
fill: "currentColor"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ i("path", {
|
|
104
|
+
d: "M138.562 38.4582C137.181 38.4582 136.021 37.9901 135.078 37.0574C134.136 36.1247 133.664 34.9747 133.664 33.6108C133.664 32.2468 134.136 31.1002 135.078 30.1641C136.021 29.2314 137.181 28.7634 138.562 28.7634C139.942 28.7634 141.102 29.2314 142.045 30.1641C142.988 31.0968 143.459 32.2468 143.459 33.6108C143.459 34.9747 142.988 36.1214 142.045 37.0574C141.102 37.9901 139.942 38.4582 138.562 38.4582Z",
|
|
105
|
+
fill: "currentColor"
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function F({ className: e, size: t, variant: n = "primary", ...r }) {
|
|
112
|
+
return /* @__PURE__ */ i(n === "secondary" ? P : N, {
|
|
113
|
+
"data-slot": "novie-logo",
|
|
114
|
+
className: j(M({ size: t }), "w-auto", e),
|
|
115
|
+
...r
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/components/ui/novie-symbol.tsx
|
|
120
|
+
var te = n("inline-block shrink-0 w-auto", {
|
|
121
|
+
variants: { size: {
|
|
122
|
+
sm: "h-3",
|
|
123
|
+
md: "h-6",
|
|
124
|
+
lg: "h-12",
|
|
125
|
+
xl: "h-[72px]"
|
|
126
|
+
} },
|
|
127
|
+
defaultVariants: { size: "md" }
|
|
128
|
+
});
|
|
129
|
+
function ne({ className: e, size: t, ...n }) {
|
|
130
|
+
return /* @__PURE__ */ i("svg", {
|
|
131
|
+
"data-slot": "novie-symbol",
|
|
132
|
+
viewBox: "0 0 30 29",
|
|
133
|
+
fill: "none",
|
|
134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
+
className: j(te({ size: t }), e),
|
|
136
|
+
...n,
|
|
137
|
+
children: /* @__PURE__ */ i("path", {
|
|
138
|
+
d: "M29.6559 10.4545C29.4679 9.91519 29.1836 9.41218 28.8213 8.96808C27.8997 7.84424 26.5241 7.17809 25.0568 7.15543C24.1443 7.15543 22.92 7.57234 20.8795 8.26568L19.8891 8.60102V7.48624C19.8891 5.35638 19.8891 4.07846 19.5911 3.22198C19.0913 1.8625 18.0045 0.793034 16.6289 0.294556C16.0879 0.0996957 15.5147 0 14.9369 0C14.3592 0 13.786 0.0996957 13.245 0.294556C11.8694 0.788503 10.7872 1.8625 10.2828 3.22198C9.98478 4.07393 9.98478 5.35185 9.98478 7.48624V8.59649L8.97142 8.27021C6.92178 7.61313 5.68832 7.21888 4.77584 7.23247C3.31312 7.28232 1.94669 7.97113 1.04338 9.1131C0.685726 9.56173 0.415191 10.0693 0.236363 10.6131C0.0667062 11.1523 -0.0158298 11.7233 0.00251152 12.2943C0.0529502 13.7399 0.749921 15.0903 1.90542 15.983C2.63449 16.5268 3.86336 16.9211 5.91301 17.5827L6.88051 17.8909L6.28442 18.702C5.01887 20.424 4.2577 21.4618 3.99175 22.3228C3.58824 23.714 3.82668 25.2094 4.64745 26.4103C4.96843 26.8816 5.37652 27.2985 5.84422 27.6338C6.31193 27.9692 6.83466 28.223 7.38948 28.3816C8.79718 28.7803 10.3103 28.5447 11.5255 27.7335C12.2729 27.2169 13.034 26.1837 14.3042 24.4572L15.0057 23.5055L15.7073 24.4572C16.9728 26.1792 17.734 27.2169 18.486 27.7335C19.7011 28.5447 21.2143 28.7803 22.622 28.3816C23.1768 28.223 23.6995 27.9737 24.1672 27.6338C24.6349 27.2985 25.0384 26.8861 25.364 26.4103C26.1848 25.2094 26.4232 23.714 26.0197 22.3228C25.7537 21.4618 24.9926 20.424 23.727 18.702L23.1126 17.8637L24.1259 17.5193C26.1664 16.8259 27.3861 16.409 28.106 15.8516C29.2432 14.9408 29.9172 13.5813 29.9401 12.1312C29.9493 11.5602 29.8576 10.9937 29.6696 10.4545H29.6559Z",
|
|
139
|
+
fill: "currentColor"
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
22
144
|
//#region src/components/ui/button.tsx
|
|
23
|
-
var
|
|
145
|
+
var re = n("inline-flex shrink-0 items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-4 [&_svg]:w-4", {
|
|
24
146
|
variants: {
|
|
25
147
|
variant: {
|
|
26
148
|
default: "bg-primary text-primary-foreground hover:bg-[hsl(var(--button-primary-hover))] disabled:bg-[hsl(var(--button-primary-bg-disabled))] disabled:text-[hsl(var(--button-primary-text-disabled))]",
|
|
@@ -67,37 +189,37 @@ var M = l("inline-flex shrink-0 items-center justify-center whitespace-nowrap fo
|
|
|
67
189
|
size: "default"
|
|
68
190
|
}
|
|
69
191
|
});
|
|
70
|
-
function
|
|
71
|
-
let
|
|
72
|
-
return /* @__PURE__ */
|
|
192
|
+
function ie({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, loading: o = !1, disabled: s, children: c, ...l }) {
|
|
193
|
+
let d = r ? u : "button", f = s || o;
|
|
194
|
+
return /* @__PURE__ */ a(d, {
|
|
73
195
|
"data-slot": "button",
|
|
74
196
|
"data-variant": t,
|
|
75
197
|
"data-size": n,
|
|
76
|
-
className: j(
|
|
198
|
+
className: j(re({
|
|
77
199
|
variant: t,
|
|
78
200
|
size: n,
|
|
79
201
|
className: e
|
|
80
202
|
})),
|
|
81
|
-
disabled:
|
|
82
|
-
"aria-busy":
|
|
83
|
-
...
|
|
84
|
-
children: [
|
|
203
|
+
disabled: f,
|
|
204
|
+
"aria-busy": o || void 0,
|
|
205
|
+
...l,
|
|
206
|
+
children: [o && /* @__PURE__ */ i(b, { className: "animate-spin" }), c]
|
|
85
207
|
});
|
|
86
208
|
}
|
|
87
209
|
//#endregion
|
|
88
210
|
//#region src/components/ui/input.tsx
|
|
89
|
-
function
|
|
90
|
-
return /* @__PURE__ */
|
|
211
|
+
function ae({ className: e, type: t, ...n }) {
|
|
212
|
+
return /* @__PURE__ */ i("input", {
|
|
91
213
|
type: t,
|
|
92
214
|
"data-slot": "input",
|
|
93
|
-
className: j("flex h-8 w-full rounded-lg border border-input bg-background px-2.5 py-2 text-sm ring-offset-background transition-colors", "file:border-0 file:bg-transparent file:text-sm file:font-medium", "placeholder:text-
|
|
215
|
+
className: j("flex h-8 w-full rounded-lg border border-input bg-background px-2.5 py-2 text-sm ring-offset-background transition-colors", "file:border-0 file:bg-transparent file:text-sm file:font-medium", "placeholder:text-primary-secondary", "focus-visible:outline-none focus-visible:shadow-[0_1px_2px_0_hsl(var(--shadow-sm))]", "disabled:cursor-not-allowed disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", e),
|
|
94
216
|
...n
|
|
95
217
|
});
|
|
96
218
|
}
|
|
97
219
|
//#endregion
|
|
98
220
|
//#region src/components/ui/label.tsx
|
|
99
|
-
function
|
|
100
|
-
return /* @__PURE__ */
|
|
221
|
+
function oe({ className: e, ...t }) {
|
|
222
|
+
return /* @__PURE__ */ i("label", {
|
|
101
223
|
"data-slot": "label",
|
|
102
224
|
className: j("text-xs font-medium leading-4 text-foreground", "peer-disabled:cursor-not-allowed peer-disabled:opacity-50", "group-data-[disabled=true]:cursor-not-allowed group-data-[disabled=true]:opacity-50", e),
|
|
103
225
|
...t
|
|
@@ -105,7 +227,7 @@ function F({ className: e, ...t }) {
|
|
|
105
227
|
}
|
|
106
228
|
//#endregion
|
|
107
229
|
//#region src/components/ui/checkbox.tsx
|
|
108
|
-
var
|
|
230
|
+
var se = n([
|
|
109
231
|
"peer shrink-0 rounded border-[1.5px] border-border bg-background transition-colors",
|
|
110
232
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
111
233
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -117,31 +239,31 @@ var te = l([
|
|
|
117
239
|
md: "h-6 w-6"
|
|
118
240
|
} },
|
|
119
241
|
defaultVariants: { size: "sm" }
|
|
120
|
-
}),
|
|
242
|
+
}), ce = n("", {
|
|
121
243
|
variants: { size: {
|
|
122
244
|
sm: "h-4 w-4",
|
|
123
245
|
md: "h-[18px] w-[18px]"
|
|
124
246
|
} },
|
|
125
247
|
defaultVariants: { size: "sm" }
|
|
126
248
|
});
|
|
127
|
-
function
|
|
128
|
-
return /* @__PURE__ */
|
|
249
|
+
function le({ className: e, size: t = "sm", ...n }) {
|
|
250
|
+
return /* @__PURE__ */ i(T.Root, {
|
|
129
251
|
"data-slot": "checkbox",
|
|
130
|
-
className: j("group",
|
|
252
|
+
className: j("group", se({
|
|
131
253
|
size: t,
|
|
132
254
|
className: e
|
|
133
255
|
})),
|
|
134
256
|
...n,
|
|
135
|
-
children: /* @__PURE__ */
|
|
257
|
+
children: /* @__PURE__ */ a(T.Indicator, {
|
|
136
258
|
"data-slot": "checkbox-indicator",
|
|
137
259
|
className: "flex items-center justify-center text-current",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ i(m, { className: j(ce({ size: t }), "group-data-[state=indeterminate]:hidden") }), /* @__PURE__ */ i(x, { className: j(ce({ size: t }), "hidden group-data-[state=indeterminate]:block") })]
|
|
139
261
|
})
|
|
140
262
|
});
|
|
141
263
|
}
|
|
142
264
|
//#endregion
|
|
143
265
|
//#region src/components/ui/switch.tsx
|
|
144
|
-
var
|
|
266
|
+
var ue = n([
|
|
145
267
|
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full",
|
|
146
268
|
"transition-colors",
|
|
147
269
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
@@ -156,7 +278,7 @@ var ie = l([
|
|
|
156
278
|
md: "h-[22px] w-10"
|
|
157
279
|
} },
|
|
158
280
|
defaultVariants: { size: "sm" }
|
|
159
|
-
}),
|
|
281
|
+
}), de = n([
|
|
160
282
|
"pointer-events-none block rounded-full bg-background shadow-[0px_2px_4px_0px_rgba(39,39,39,0.1)]",
|
|
161
283
|
"ring-0 transition-transform",
|
|
162
284
|
"data-[state=unchecked]:translate-x-0.5"
|
|
@@ -167,15 +289,15 @@ var ie = l([
|
|
|
167
289
|
} },
|
|
168
290
|
defaultVariants: { size: "sm" }
|
|
169
291
|
});
|
|
170
|
-
function
|
|
171
|
-
return /* @__PURE__ */
|
|
292
|
+
function fe({ className: e, size: t, ...n }) {
|
|
293
|
+
return /* @__PURE__ */ i(E.Root, {
|
|
172
294
|
"data-slot": "switch",
|
|
173
|
-
className: j(
|
|
295
|
+
className: j(ue({
|
|
174
296
|
size: t,
|
|
175
297
|
className: e
|
|
176
298
|
})),
|
|
177
299
|
...n,
|
|
178
|
-
children: /* @__PURE__ */
|
|
300
|
+
children: /* @__PURE__ */ i(E.Thumb, { className: j(de({ size: t })) })
|
|
179
301
|
});
|
|
180
302
|
}
|
|
181
303
|
typeof window < "u" && window.document && window.document.createElement;
|
|
@@ -186,82 +308,82 @@ function I(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
186
308
|
}
|
|
187
309
|
//#endregion
|
|
188
310
|
//#region node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
189
|
-
function
|
|
311
|
+
function pe(e, t) {
|
|
190
312
|
if (typeof e == "function") return e(t);
|
|
191
313
|
e != null && (e.current = t);
|
|
192
314
|
}
|
|
193
|
-
function
|
|
315
|
+
function me(...e) {
|
|
194
316
|
return (t) => {
|
|
195
317
|
let n = !1, r = e.map((e) => {
|
|
196
|
-
let r =
|
|
318
|
+
let r = pe(e, t);
|
|
197
319
|
return !n && typeof r == "function" && (n = !0), r;
|
|
198
320
|
});
|
|
199
321
|
if (n) return () => {
|
|
200
322
|
for (let t = 0; t < r.length; t++) {
|
|
201
323
|
let n = r[t];
|
|
202
|
-
typeof n == "function" ? n() :
|
|
324
|
+
typeof n == "function" ? n() : pe(e[t], null);
|
|
203
325
|
}
|
|
204
326
|
};
|
|
205
327
|
};
|
|
206
328
|
}
|
|
207
329
|
function L(...e) {
|
|
208
|
-
return
|
|
330
|
+
return o.useCallback(me(...e), e);
|
|
209
331
|
}
|
|
210
332
|
//#endregion
|
|
211
333
|
//#region node_modules/@radix-ui/react-context/dist/index.mjs
|
|
212
|
-
function
|
|
213
|
-
let
|
|
214
|
-
function
|
|
215
|
-
let a =
|
|
216
|
-
|
|
217
|
-
let
|
|
218
|
-
let { scope:
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
value:
|
|
221
|
-
children:
|
|
334
|
+
function he(e, t = []) {
|
|
335
|
+
let n = [];
|
|
336
|
+
function r(t, r) {
|
|
337
|
+
let a = o.createContext(r), s = n.length;
|
|
338
|
+
n = [...n, r];
|
|
339
|
+
let c = (t) => {
|
|
340
|
+
let { scope: n, children: r, ...c } = t, l = n?.[e]?.[s] || a, u = o.useMemo(() => c, Object.values(c));
|
|
341
|
+
return /* @__PURE__ */ i(l.Provider, {
|
|
342
|
+
value: u,
|
|
343
|
+
children: r
|
|
222
344
|
});
|
|
223
345
|
};
|
|
224
|
-
|
|
225
|
-
function
|
|
226
|
-
let c =
|
|
346
|
+
c.displayName = t + "Provider";
|
|
347
|
+
function l(n, i) {
|
|
348
|
+
let c = i?.[e]?.[s] || a, l = o.useContext(c);
|
|
227
349
|
if (l) return l;
|
|
228
|
-
if (
|
|
229
|
-
throw Error(`\`${
|
|
350
|
+
if (r !== void 0) return r;
|
|
351
|
+
throw Error(`\`${n}\` must be used within \`${t}\``);
|
|
230
352
|
}
|
|
231
|
-
return [
|
|
353
|
+
return [c, l];
|
|
232
354
|
}
|
|
233
355
|
let a = () => {
|
|
234
|
-
let t =
|
|
235
|
-
return function(
|
|
236
|
-
let
|
|
237
|
-
return
|
|
238
|
-
...
|
|
239
|
-
[e]:
|
|
240
|
-
} }), [
|
|
356
|
+
let t = n.map((e) => o.createContext(e));
|
|
357
|
+
return function(n) {
|
|
358
|
+
let r = n?.[e] || t;
|
|
359
|
+
return o.useMemo(() => ({ [`__scope${e}`]: {
|
|
360
|
+
...n,
|
|
361
|
+
[e]: r
|
|
362
|
+
} }), [n, r]);
|
|
241
363
|
};
|
|
242
364
|
};
|
|
243
|
-
return a.scopeName = e, [
|
|
365
|
+
return a.scopeName = e, [r, ge(a, ...t)];
|
|
244
366
|
}
|
|
245
|
-
function
|
|
367
|
+
function ge(...e) {
|
|
246
368
|
let t = e[0];
|
|
247
369
|
if (e.length === 1) return t;
|
|
248
|
-
let
|
|
249
|
-
let
|
|
370
|
+
let n = () => {
|
|
371
|
+
let n = e.map((e) => ({
|
|
250
372
|
useScope: e(),
|
|
251
373
|
scopeName: e.scopeName
|
|
252
374
|
}));
|
|
253
375
|
return function(e) {
|
|
254
|
-
let
|
|
376
|
+
let r = n.reduce((t, { useScope: n, scopeName: r }) => {
|
|
255
377
|
let i = n(e)[`__scope${r}`];
|
|
256
378
|
return {
|
|
257
379
|
...t,
|
|
258
380
|
...i
|
|
259
381
|
};
|
|
260
382
|
}, {});
|
|
261
|
-
return
|
|
383
|
+
return o.useMemo(() => ({ [`__scope${t.scopeName}`]: r }), [r]);
|
|
262
384
|
};
|
|
263
385
|
};
|
|
264
|
-
return
|
|
386
|
+
return n.scopeName = t.scopeName, n;
|
|
265
387
|
}
|
|
266
388
|
//#endregion
|
|
267
389
|
//#region node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
@@ -284,259 +406,259 @@ var R = [
|
|
|
284
406
|
"svg",
|
|
285
407
|
"ul"
|
|
286
408
|
].reduce((e, t) => {
|
|
287
|
-
let
|
|
288
|
-
let { asChild:
|
|
289
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
290
|
-
...
|
|
291
|
-
ref:
|
|
409
|
+
let n = d(`Primitive.${t}`), r = o.forwardRef((e, r) => {
|
|
410
|
+
let { asChild: a, ...o } = e, s = a ? n : t;
|
|
411
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(s, {
|
|
412
|
+
...o,
|
|
413
|
+
ref: r
|
|
292
414
|
});
|
|
293
415
|
});
|
|
294
|
-
return
|
|
416
|
+
return r.displayName = `Primitive.${t}`, {
|
|
295
417
|
...e,
|
|
296
|
-
[t]:
|
|
418
|
+
[t]: r
|
|
297
419
|
};
|
|
298
420
|
}, {});
|
|
299
|
-
function
|
|
421
|
+
function _e(e, t) {
|
|
300
422
|
e && ee.flushSync(() => e.dispatchEvent(t));
|
|
301
423
|
}
|
|
302
424
|
//#endregion
|
|
303
425
|
//#region node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
304
|
-
function
|
|
305
|
-
let t = e + "CollectionProvider", [n,
|
|
426
|
+
function ve(e) {
|
|
427
|
+
let t = e + "CollectionProvider", [n, r] = he(t), [a, o] = n(t, {
|
|
306
428
|
collectionRef: { current: null },
|
|
307
429
|
itemMap: /* @__PURE__ */ new Map()
|
|
308
430
|
}), c = (e) => {
|
|
309
|
-
let { scope: t, children: n } = e,
|
|
310
|
-
return /* @__PURE__ */
|
|
431
|
+
let { scope: t, children: n } = e, r = s.useRef(null), o = s.useRef(/* @__PURE__ */ new Map()).current;
|
|
432
|
+
return /* @__PURE__ */ i(a, {
|
|
311
433
|
scope: t,
|
|
312
434
|
itemMap: o,
|
|
313
|
-
collectionRef:
|
|
435
|
+
collectionRef: r,
|
|
314
436
|
children: n
|
|
315
437
|
});
|
|
316
438
|
};
|
|
317
439
|
c.displayName = t;
|
|
318
|
-
let l = e + "CollectionSlot", u =
|
|
440
|
+
let l = e + "CollectionSlot", u = d(l), f = s.forwardRef((e, t) => {
|
|
319
441
|
let { scope: n, children: r } = e;
|
|
320
|
-
return /* @__PURE__ */
|
|
442
|
+
return /* @__PURE__ */ i(u, {
|
|
321
443
|
ref: L(t, o(l, n).collectionRef),
|
|
322
444
|
children: r
|
|
323
445
|
});
|
|
324
446
|
});
|
|
325
|
-
|
|
326
|
-
let
|
|
327
|
-
let { scope: n, children:
|
|
328
|
-
return
|
|
329
|
-
ref: s,
|
|
330
|
-
...a
|
|
331
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ C(m, {
|
|
332
|
-
[p]: "",
|
|
447
|
+
f.displayName = l;
|
|
448
|
+
let p = e + "CollectionItemSlot", m = "data-radix-collection-item", h = d(p), g = s.forwardRef((e, t) => {
|
|
449
|
+
let { scope: n, children: r, ...a } = e, c = s.useRef(null), l = L(t, c), u = o(p, n);
|
|
450
|
+
return s.useEffect(() => (u.itemMap.set(c, {
|
|
333
451
|
ref: c,
|
|
334
|
-
|
|
452
|
+
...a
|
|
453
|
+
}), () => void u.itemMap.delete(c))), /* @__PURE__ */ i(h, {
|
|
454
|
+
[m]: "",
|
|
455
|
+
ref: l,
|
|
456
|
+
children: r
|
|
335
457
|
});
|
|
336
458
|
});
|
|
337
|
-
|
|
338
|
-
function
|
|
459
|
+
g.displayName = p;
|
|
460
|
+
function _(t) {
|
|
339
461
|
let n = o(e + "CollectionConsumer", t);
|
|
340
|
-
return
|
|
462
|
+
return s.useCallback(() => {
|
|
341
463
|
let e = n.collectionRef.current;
|
|
342
464
|
if (!e) return [];
|
|
343
|
-
let t = Array.from(e.querySelectorAll(`[${
|
|
465
|
+
let t = Array.from(e.querySelectorAll(`[${m}]`));
|
|
344
466
|
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
345
467
|
}, [n.collectionRef, n.itemMap]);
|
|
346
468
|
}
|
|
347
469
|
return [
|
|
348
470
|
{
|
|
349
471
|
Provider: c,
|
|
350
|
-
Slot:
|
|
351
|
-
ItemSlot:
|
|
472
|
+
Slot: f,
|
|
473
|
+
ItemSlot: g
|
|
352
474
|
},
|
|
353
|
-
|
|
354
|
-
|
|
475
|
+
_,
|
|
476
|
+
r
|
|
355
477
|
];
|
|
356
478
|
}
|
|
357
479
|
//#endregion
|
|
358
480
|
//#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
359
|
-
var z = globalThis?.document ?
|
|
360
|
-
function
|
|
361
|
-
let [t,
|
|
481
|
+
var z = globalThis?.document ? o.useLayoutEffect : () => {}, ye = o.useId || (() => void 0), be = 0;
|
|
482
|
+
function xe(e) {
|
|
483
|
+
let [t, n] = o.useState(ye());
|
|
362
484
|
return z(() => {
|
|
363
|
-
e ||
|
|
485
|
+
e || n((e) => e ?? String(be++));
|
|
364
486
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
365
487
|
}
|
|
366
488
|
//#endregion
|
|
367
489
|
//#region node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
368
|
-
function
|
|
369
|
-
let t =
|
|
370
|
-
return
|
|
490
|
+
function Se(e) {
|
|
491
|
+
let t = o.useRef(e);
|
|
492
|
+
return o.useEffect(() => {
|
|
371
493
|
t.current = e;
|
|
372
|
-
}),
|
|
494
|
+
}), o.useMemo(() => (...e) => t.current?.(...e), []);
|
|
373
495
|
}
|
|
374
496
|
//#endregion
|
|
375
497
|
//#region node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
376
|
-
var
|
|
377
|
-
function
|
|
378
|
-
let [
|
|
498
|
+
var Ce = o.useInsertionEffect || z;
|
|
499
|
+
function we({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
|
|
500
|
+
let [i, a, s] = Te({
|
|
379
501
|
defaultProp: t,
|
|
380
|
-
onChange:
|
|
381
|
-
}), c = e !== void 0, l = c ? e :
|
|
502
|
+
onChange: n
|
|
503
|
+
}), c = e !== void 0, l = c ? e : i;
|
|
382
504
|
{
|
|
383
|
-
let t =
|
|
384
|
-
|
|
505
|
+
let t = o.useRef(e !== void 0);
|
|
506
|
+
o.useEffect(() => {
|
|
385
507
|
let e = t.current;
|
|
386
|
-
e !== c && console.warn(`${
|
|
387
|
-
}, [c,
|
|
508
|
+
e !== c && console.warn(`${r} is changing from ${e ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), t.current = c;
|
|
509
|
+
}, [c, r]);
|
|
388
510
|
}
|
|
389
|
-
return [l,
|
|
511
|
+
return [l, o.useCallback((t) => {
|
|
390
512
|
if (c) {
|
|
391
|
-
let n =
|
|
513
|
+
let n = Ee(t) ? t(e) : t;
|
|
392
514
|
n !== e && s.current?.(n);
|
|
393
|
-
} else
|
|
515
|
+
} else a(t);
|
|
394
516
|
}, [
|
|
395
517
|
c,
|
|
396
518
|
e,
|
|
397
|
-
|
|
519
|
+
a,
|
|
398
520
|
s
|
|
399
521
|
])];
|
|
400
522
|
}
|
|
401
|
-
function
|
|
402
|
-
let [
|
|
403
|
-
return
|
|
404
|
-
|
|
405
|
-
}, [t]),
|
|
406
|
-
|
|
407
|
-
}, [
|
|
523
|
+
function Te({ defaultProp: e, onChange: t }) {
|
|
524
|
+
let [n, r] = o.useState(e), i = o.useRef(n), a = o.useRef(t);
|
|
525
|
+
return Ce(() => {
|
|
526
|
+
a.current = t;
|
|
527
|
+
}, [t]), o.useEffect(() => {
|
|
528
|
+
i.current !== n && (a.current?.(n), i.current = n);
|
|
529
|
+
}, [n, i]), [
|
|
530
|
+
n,
|
|
408
531
|
r,
|
|
409
|
-
|
|
410
|
-
o
|
|
532
|
+
a
|
|
411
533
|
];
|
|
412
534
|
}
|
|
413
|
-
function
|
|
535
|
+
function Ee(e) {
|
|
414
536
|
return typeof e == "function";
|
|
415
537
|
}
|
|
416
538
|
//#endregion
|
|
417
539
|
//#region node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
418
|
-
var
|
|
419
|
-
function
|
|
420
|
-
let t =
|
|
540
|
+
var De = o.createContext(void 0);
|
|
541
|
+
function Oe(e) {
|
|
542
|
+
let t = o.useContext(De);
|
|
421
543
|
return e || t || "ltr";
|
|
422
544
|
}
|
|
423
545
|
//#endregion
|
|
424
546
|
//#region node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
425
|
-
var
|
|
547
|
+
var ke = "rovingFocusGroup.onEntryFocus", Ae = {
|
|
426
548
|
bubbles: !1,
|
|
427
549
|
cancelable: !0
|
|
428
|
-
},
|
|
550
|
+
}, je = "RovingFocusGroup", [Me, Ne, Pe] = ve(je), [Fe, Ie] = he(je, [Pe]), [Le, Re] = Fe(je), ze = o.forwardRef((e, t) => /* @__PURE__ */ i(Me.Provider, {
|
|
429
551
|
scope: e.__scopeRovingFocusGroup,
|
|
430
|
-
children: /* @__PURE__ */
|
|
552
|
+
children: /* @__PURE__ */ i(Me.Slot, {
|
|
431
553
|
scope: e.__scopeRovingFocusGroup,
|
|
432
|
-
children: /* @__PURE__ */
|
|
554
|
+
children: /* @__PURE__ */ i(Be, {
|
|
433
555
|
...e,
|
|
434
556
|
ref: t
|
|
435
557
|
})
|
|
436
558
|
})
|
|
437
559
|
}));
|
|
438
|
-
|
|
439
|
-
var
|
|
440
|
-
let { __scopeRovingFocusGroup:
|
|
441
|
-
prop:
|
|
442
|
-
defaultProp:
|
|
443
|
-
onChange:
|
|
444
|
-
caller:
|
|
445
|
-
}), [
|
|
446
|
-
return
|
|
447
|
-
let e =
|
|
448
|
-
if (e) return e.addEventListener(
|
|
449
|
-
}, [
|
|
450
|
-
scope:
|
|
451
|
-
orientation:
|
|
452
|
-
dir:
|
|
560
|
+
ze.displayName = je;
|
|
561
|
+
var Be = o.forwardRef((e, t) => {
|
|
562
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: a = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...p } = e, m = o.useRef(null), h = L(t, m), g = Oe(s), [_, v] = we({
|
|
563
|
+
prop: c,
|
|
564
|
+
defaultProp: l ?? null,
|
|
565
|
+
onChange: u,
|
|
566
|
+
caller: je
|
|
567
|
+
}), [y, b] = o.useState(!1), x = Se(d), S = Ne(n), C = o.useRef(!1), [w, T] = o.useState(0);
|
|
568
|
+
return o.useEffect(() => {
|
|
569
|
+
let e = m.current;
|
|
570
|
+
if (e) return e.addEventListener(ke, x), () => e.removeEventListener(ke, x);
|
|
571
|
+
}, [x]), /* @__PURE__ */ i(Le, {
|
|
572
|
+
scope: n,
|
|
573
|
+
orientation: r,
|
|
574
|
+
dir: g,
|
|
453
575
|
loop: a,
|
|
454
|
-
currentTabStopId:
|
|
455
|
-
onItemFocus:
|
|
456
|
-
onItemShiftTab:
|
|
457
|
-
onFocusableItemAdd:
|
|
458
|
-
onFocusableItemRemove:
|
|
459
|
-
children: /* @__PURE__ */
|
|
460
|
-
tabIndex:
|
|
461
|
-
"data-orientation":
|
|
462
|
-
...
|
|
463
|
-
ref:
|
|
576
|
+
currentTabStopId: _,
|
|
577
|
+
onItemFocus: o.useCallback((e) => v(e), [v]),
|
|
578
|
+
onItemShiftTab: o.useCallback(() => b(!0), []),
|
|
579
|
+
onFocusableItemAdd: o.useCallback(() => T((e) => e + 1), []),
|
|
580
|
+
onFocusableItemRemove: o.useCallback(() => T((e) => e - 1), []),
|
|
581
|
+
children: /* @__PURE__ */ i(R.div, {
|
|
582
|
+
tabIndex: y || w === 0 ? -1 : 0,
|
|
583
|
+
"data-orientation": r,
|
|
584
|
+
...p,
|
|
585
|
+
ref: h,
|
|
464
586
|
style: {
|
|
465
587
|
outline: "none",
|
|
466
588
|
...e.style
|
|
467
589
|
},
|
|
468
590
|
onMouseDown: I(e.onMouseDown, () => {
|
|
469
|
-
|
|
591
|
+
C.current = !0;
|
|
470
592
|
}),
|
|
471
593
|
onFocus: I(e.onFocus, (e) => {
|
|
472
|
-
let t = !
|
|
473
|
-
if (e.target === e.currentTarget && t && !
|
|
474
|
-
let t = new CustomEvent(
|
|
594
|
+
let t = !C.current;
|
|
595
|
+
if (e.target === e.currentTarget && t && !y) {
|
|
596
|
+
let t = new CustomEvent(ke, Ae);
|
|
475
597
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
476
|
-
let e =
|
|
477
|
-
|
|
598
|
+
let e = S().filter((e) => e.focusable);
|
|
599
|
+
Ke([
|
|
478
600
|
e.find((e) => e.active),
|
|
479
|
-
e.find((e) => e.id ===
|
|
601
|
+
e.find((e) => e.id === _),
|
|
480
602
|
...e
|
|
481
|
-
].filter(Boolean).map((e) => e.ref.current),
|
|
603
|
+
].filter(Boolean).map((e) => e.ref.current), f);
|
|
482
604
|
}
|
|
483
605
|
}
|
|
484
|
-
|
|
606
|
+
C.current = !1;
|
|
485
607
|
}),
|
|
486
|
-
onBlur: I(e.onBlur, () =>
|
|
608
|
+
onBlur: I(e.onBlur, () => b(!1))
|
|
487
609
|
})
|
|
488
610
|
});
|
|
489
|
-
}),
|
|
490
|
-
let { __scopeRovingFocusGroup:
|
|
491
|
-
return
|
|
492
|
-
if (
|
|
611
|
+
}), Ve = "RovingFocusGroupItem", He = o.forwardRef((e, t) => {
|
|
612
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: a = !1, tabStopId: s, children: c, ...l } = e, u = xe(), d = s || u, f = Re(Ve, n), p = f.currentTabStopId === d, m = Ne(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: _ } = f;
|
|
613
|
+
return o.useEffect(() => {
|
|
614
|
+
if (r) return h(), () => g();
|
|
493
615
|
}, [
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
]), /* @__PURE__ */
|
|
498
|
-
scope:
|
|
499
|
-
id:
|
|
500
|
-
focusable:
|
|
616
|
+
r,
|
|
617
|
+
h,
|
|
618
|
+
g
|
|
619
|
+
]), /* @__PURE__ */ i(Me.ItemSlot, {
|
|
620
|
+
scope: n,
|
|
621
|
+
id: d,
|
|
622
|
+
focusable: r,
|
|
501
623
|
active: a,
|
|
502
|
-
children: /* @__PURE__ */
|
|
503
|
-
tabIndex:
|
|
504
|
-
"data-orientation":
|
|
505
|
-
...
|
|
624
|
+
children: /* @__PURE__ */ i(R.span, {
|
|
625
|
+
tabIndex: p ? 0 : -1,
|
|
626
|
+
"data-orientation": f.orientation,
|
|
627
|
+
...l,
|
|
506
628
|
ref: t,
|
|
507
629
|
onMouseDown: I(e.onMouseDown, (e) => {
|
|
508
|
-
|
|
630
|
+
r ? f.onItemFocus(d) : e.preventDefault();
|
|
509
631
|
}),
|
|
510
|
-
onFocus: I(e.onFocus, () =>
|
|
632
|
+
onFocus: I(e.onFocus, () => f.onItemFocus(d)),
|
|
511
633
|
onKeyDown: I(e.onKeyDown, (e) => {
|
|
512
634
|
if (e.key === "Tab" && e.shiftKey) {
|
|
513
|
-
|
|
635
|
+
f.onItemShiftTab();
|
|
514
636
|
return;
|
|
515
637
|
}
|
|
516
638
|
if (e.target !== e.currentTarget) return;
|
|
517
|
-
let t =
|
|
639
|
+
let t = Ge(e, f.orientation, f.dir);
|
|
518
640
|
if (t !== void 0) {
|
|
519
641
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
520
642
|
e.preventDefault();
|
|
521
|
-
let n =
|
|
643
|
+
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
522
644
|
if (t === "last") n.reverse();
|
|
523
645
|
else if (t === "prev" || t === "next") {
|
|
524
646
|
t === "prev" && n.reverse();
|
|
525
647
|
let r = n.indexOf(e.currentTarget);
|
|
526
|
-
n =
|
|
648
|
+
n = f.loop ? qe(n, r + 1) : n.slice(r + 1);
|
|
527
649
|
}
|
|
528
|
-
setTimeout(() =>
|
|
650
|
+
setTimeout(() => Ke(n));
|
|
529
651
|
}
|
|
530
652
|
}),
|
|
531
|
-
children: typeof
|
|
532
|
-
isCurrentTabStop:
|
|
533
|
-
hasTabStop:
|
|
534
|
-
}) :
|
|
653
|
+
children: typeof c == "function" ? c({
|
|
654
|
+
isCurrentTabStop: p,
|
|
655
|
+
hasTabStop: _ != null
|
|
656
|
+
}) : c
|
|
535
657
|
})
|
|
536
658
|
});
|
|
537
659
|
});
|
|
538
|
-
|
|
539
|
-
var
|
|
660
|
+
He.displayName = Ve;
|
|
661
|
+
var Ue = {
|
|
540
662
|
ArrowLeft: "prev",
|
|
541
663
|
ArrowUp: "prev",
|
|
542
664
|
ArrowRight: "next",
|
|
@@ -546,68 +668,68 @@ var Le = {
|
|
|
546
668
|
PageDown: "last",
|
|
547
669
|
End: "last"
|
|
548
670
|
};
|
|
549
|
-
function
|
|
671
|
+
function We(e, t) {
|
|
550
672
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
551
673
|
}
|
|
552
|
-
function
|
|
553
|
-
let r =
|
|
554
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
674
|
+
function Ge(e, t, n) {
|
|
675
|
+
let r = We(e.key, n);
|
|
676
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Ue[r];
|
|
555
677
|
}
|
|
556
|
-
function
|
|
678
|
+
function Ke(e, t = !1) {
|
|
557
679
|
let n = document.activeElement;
|
|
558
680
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
559
681
|
}
|
|
560
|
-
function
|
|
682
|
+
function qe(e, t) {
|
|
561
683
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
562
684
|
}
|
|
563
|
-
var
|
|
685
|
+
var Je = ze, Ye = He;
|
|
564
686
|
//#endregion
|
|
565
687
|
//#region node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
566
|
-
function
|
|
567
|
-
let [t,
|
|
688
|
+
function Xe(e) {
|
|
689
|
+
let [t, n] = o.useState(void 0);
|
|
568
690
|
return z(() => {
|
|
569
691
|
if (e) {
|
|
570
|
-
|
|
692
|
+
n({
|
|
571
693
|
width: e.offsetWidth,
|
|
572
694
|
height: e.offsetHeight
|
|
573
695
|
});
|
|
574
696
|
let t = new ResizeObserver((t) => {
|
|
575
697
|
if (!Array.isArray(t) || !t.length) return;
|
|
576
|
-
let
|
|
577
|
-
if ("borderBoxSize" in
|
|
578
|
-
let e =
|
|
698
|
+
let r = t[0], i, a;
|
|
699
|
+
if ("borderBoxSize" in r) {
|
|
700
|
+
let e = r.borderBoxSize, t = Array.isArray(e) ? e[0] : e;
|
|
579
701
|
i = t.inlineSize, a = t.blockSize;
|
|
580
702
|
} else i = e.offsetWidth, a = e.offsetHeight;
|
|
581
|
-
|
|
703
|
+
n({
|
|
582
704
|
width: i,
|
|
583
705
|
height: a
|
|
584
706
|
});
|
|
585
707
|
});
|
|
586
708
|
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
587
|
-
} else
|
|
709
|
+
} else n(void 0);
|
|
588
710
|
}, [e]), t;
|
|
589
711
|
}
|
|
590
712
|
//#endregion
|
|
591
713
|
//#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
592
|
-
function
|
|
593
|
-
let t =
|
|
714
|
+
function Ze(e) {
|
|
715
|
+
let t = o.useRef({
|
|
594
716
|
value: e,
|
|
595
717
|
previous: e
|
|
596
718
|
});
|
|
597
|
-
return
|
|
719
|
+
return o.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
598
720
|
}
|
|
599
721
|
//#endregion
|
|
600
722
|
//#region node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
601
|
-
function
|
|
602
|
-
return
|
|
723
|
+
function Qe(e, t) {
|
|
724
|
+
return o.useReducer((e, n) => t[e][n] ?? e, e);
|
|
603
725
|
}
|
|
604
|
-
var
|
|
605
|
-
let { present: t, children:
|
|
606
|
-
return typeof
|
|
726
|
+
var $e = (e) => {
|
|
727
|
+
let { present: t, children: n } = e, r = et(t), i = typeof n == "function" ? n({ present: r.isPresent }) : o.Children.only(n), a = L(r.ref, nt(i));
|
|
728
|
+
return typeof n == "function" || r.isPresent ? o.cloneElement(i, { ref: a }) : null;
|
|
607
729
|
};
|
|
608
|
-
|
|
609
|
-
function
|
|
610
|
-
let [t,
|
|
730
|
+
$e.displayName = "Presence";
|
|
731
|
+
function et(e) {
|
|
732
|
+
let [t, n] = o.useState(), r = o.useRef(null), i = o.useRef(e), a = o.useRef("none"), [s, c] = Qe(e ? "mounted" : "unmounted", {
|
|
611
733
|
mounted: {
|
|
612
734
|
UNMOUNT: "unmounted",
|
|
613
735
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -618,118 +740,118 @@ function Je(e) {
|
|
|
618
740
|
},
|
|
619
741
|
unmounted: { MOUNT: "mounted" }
|
|
620
742
|
});
|
|
621
|
-
return
|
|
622
|
-
let e =
|
|
623
|
-
|
|
743
|
+
return o.useEffect(() => {
|
|
744
|
+
let e = tt(r.current);
|
|
745
|
+
a.current = s === "mounted" ? e : "none";
|
|
624
746
|
}, [s]), z(() => {
|
|
625
|
-
let t =
|
|
747
|
+
let t = r.current, n = i.current;
|
|
626
748
|
if (n !== e) {
|
|
627
|
-
let r =
|
|
628
|
-
e ? c("MOUNT") :
|
|
749
|
+
let r = a.current, o = tt(t);
|
|
750
|
+
e ? c("MOUNT") : o === "none" || t?.display === "none" ? c("UNMOUNT") : c(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
629
751
|
}
|
|
630
752
|
}, [e, c]), z(() => {
|
|
631
753
|
if (t) {
|
|
632
|
-
let e, n = t.ownerDocument.defaultView ?? window,
|
|
633
|
-
let o =
|
|
634
|
-
if (
|
|
754
|
+
let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
|
|
755
|
+
let o = tt(r.current).includes(CSS.escape(a.animationName));
|
|
756
|
+
if (a.target === t && o && (c("ANIMATION_END"), !i.current)) {
|
|
635
757
|
let r = t.style.animationFillMode;
|
|
636
758
|
t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
|
|
637
759
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = r);
|
|
638
760
|
});
|
|
639
761
|
}
|
|
640
762
|
}, s = (e) => {
|
|
641
|
-
e.target === t && (
|
|
763
|
+
e.target === t && (a.current = tt(r.current));
|
|
642
764
|
};
|
|
643
|
-
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel",
|
|
644
|
-
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel",
|
|
765
|
+
return t.addEventListener("animationstart", s), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
|
|
766
|
+
n.clearTimeout(e), t.removeEventListener("animationstart", s), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
|
|
645
767
|
};
|
|
646
768
|
} else c("ANIMATION_END");
|
|
647
769
|
}, [t, c]), {
|
|
648
770
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
649
|
-
ref:
|
|
650
|
-
|
|
771
|
+
ref: o.useCallback((e) => {
|
|
772
|
+
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
651
773
|
}, [])
|
|
652
774
|
};
|
|
653
775
|
}
|
|
654
|
-
function
|
|
776
|
+
function tt(e) {
|
|
655
777
|
return e?.animationName || "none";
|
|
656
778
|
}
|
|
657
|
-
function
|
|
779
|
+
function nt(e) {
|
|
658
780
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
659
781
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
660
782
|
}
|
|
661
783
|
//#endregion
|
|
662
784
|
//#region node_modules/@radix-ui/react-radio-group/dist/index.mjs
|
|
663
|
-
var
|
|
664
|
-
let { __scopeRadio:
|
|
665
|
-
return /* @__PURE__ */
|
|
666
|
-
scope:
|
|
667
|
-
checked:
|
|
668
|
-
disabled:
|
|
669
|
-
children: [/* @__PURE__ */
|
|
785
|
+
var rt = "Radio", [it, at] = he(rt), [ot, st] = it(rt), ct = o.forwardRef((e, t) => {
|
|
786
|
+
let { __scopeRadio: n, name: r, checked: s = !1, required: c, disabled: l, value: u = "on", onCheck: d, form: f, ...p } = e, [m, h] = o.useState(null), g = L(t, (e) => h(e)), _ = o.useRef(!1), v = m ? f || !!m.closest("form") : !0;
|
|
787
|
+
return /* @__PURE__ */ a(ot, {
|
|
788
|
+
scope: n,
|
|
789
|
+
checked: s,
|
|
790
|
+
disabled: l,
|
|
791
|
+
children: [/* @__PURE__ */ i(R.button, {
|
|
670
792
|
type: "button",
|
|
671
793
|
role: "radio",
|
|
672
|
-
"aria-checked":
|
|
673
|
-
"data-state":
|
|
674
|
-
"data-disabled":
|
|
675
|
-
disabled:
|
|
676
|
-
value:
|
|
677
|
-
...
|
|
678
|
-
ref:
|
|
794
|
+
"aria-checked": s,
|
|
795
|
+
"data-state": pt(s),
|
|
796
|
+
"data-disabled": l ? "" : void 0,
|
|
797
|
+
disabled: l,
|
|
798
|
+
value: u,
|
|
799
|
+
...p,
|
|
800
|
+
ref: g,
|
|
679
801
|
onClick: I(e.onClick, (e) => {
|
|
680
|
-
|
|
802
|
+
s || d?.(), v && (_.current = e.isPropagationStopped(), _.current || e.stopPropagation());
|
|
681
803
|
})
|
|
682
|
-
}),
|
|
683
|
-
control:
|
|
684
|
-
bubbles: !
|
|
685
|
-
name:
|
|
686
|
-
value:
|
|
687
|
-
checked:
|
|
688
|
-
required:
|
|
689
|
-
disabled:
|
|
690
|
-
form:
|
|
804
|
+
}), v && /* @__PURE__ */ i(ft, {
|
|
805
|
+
control: m,
|
|
806
|
+
bubbles: !_.current,
|
|
807
|
+
name: r,
|
|
808
|
+
value: u,
|
|
809
|
+
checked: s,
|
|
810
|
+
required: c,
|
|
811
|
+
disabled: l,
|
|
812
|
+
form: f,
|
|
691
813
|
style: { transform: "translateX(-100%)" }
|
|
692
814
|
})]
|
|
693
815
|
});
|
|
694
816
|
});
|
|
695
|
-
|
|
696
|
-
var
|
|
697
|
-
let { __scopeRadio: n, forceMount: r, ...
|
|
698
|
-
return /* @__PURE__ */
|
|
699
|
-
present: r ||
|
|
700
|
-
children: /* @__PURE__ */
|
|
701
|
-
"data-state":
|
|
702
|
-
"data-disabled":
|
|
703
|
-
...
|
|
817
|
+
ct.displayName = rt;
|
|
818
|
+
var lt = "RadioIndicator", ut = o.forwardRef((e, t) => {
|
|
819
|
+
let { __scopeRadio: n, forceMount: r, ...a } = e, o = st(lt, n);
|
|
820
|
+
return /* @__PURE__ */ i($e, {
|
|
821
|
+
present: r || o.checked,
|
|
822
|
+
children: /* @__PURE__ */ i(R.span, {
|
|
823
|
+
"data-state": pt(o.checked),
|
|
824
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
825
|
+
...a,
|
|
704
826
|
ref: t
|
|
705
827
|
})
|
|
706
828
|
});
|
|
707
829
|
});
|
|
708
|
-
|
|
709
|
-
var
|
|
710
|
-
let
|
|
711
|
-
return
|
|
712
|
-
let e =
|
|
830
|
+
ut.displayName = lt;
|
|
831
|
+
var dt = "RadioBubbleInput", ft = o.forwardRef(({ __scopeRadio: e, control: t, checked: n, bubbles: r = !0, ...a }, s) => {
|
|
832
|
+
let c = o.useRef(null), l = L(c, s), u = Ze(n), d = Xe(t);
|
|
833
|
+
return o.useEffect(() => {
|
|
834
|
+
let e = c.current;
|
|
713
835
|
if (!e) return;
|
|
714
|
-
let t = window.HTMLInputElement.prototype,
|
|
715
|
-
if (
|
|
716
|
-
let t = new Event("click", { bubbles:
|
|
717
|
-
|
|
836
|
+
let t = window.HTMLInputElement.prototype, i = Object.getOwnPropertyDescriptor(t, "checked").set;
|
|
837
|
+
if (u !== n && i) {
|
|
838
|
+
let t = new Event("click", { bubbles: r });
|
|
839
|
+
i.call(e, n), e.dispatchEvent(t);
|
|
718
840
|
}
|
|
719
841
|
}, [
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
]), /* @__PURE__ */
|
|
842
|
+
u,
|
|
843
|
+
n,
|
|
844
|
+
r
|
|
845
|
+
]), /* @__PURE__ */ i(R.input, {
|
|
724
846
|
type: "radio",
|
|
725
847
|
"aria-hidden": !0,
|
|
726
|
-
defaultChecked:
|
|
848
|
+
defaultChecked: n,
|
|
727
849
|
...a,
|
|
728
850
|
tabIndex: -1,
|
|
729
|
-
ref:
|
|
851
|
+
ref: l,
|
|
730
852
|
style: {
|
|
731
853
|
...a.style,
|
|
732
|
-
...
|
|
854
|
+
...d,
|
|
733
855
|
position: "absolute",
|
|
734
856
|
pointerEvents: "none",
|
|
735
857
|
opacity: 0,
|
|
@@ -737,91 +859,91 @@ var at = "RadioBubbleInput", ot = n.forwardRef(({ __scopeRadio: e, control: t, c
|
|
|
737
859
|
}
|
|
738
860
|
});
|
|
739
861
|
});
|
|
740
|
-
|
|
741
|
-
function
|
|
862
|
+
ft.displayName = dt;
|
|
863
|
+
function pt(e) {
|
|
742
864
|
return e ? "checked" : "unchecked";
|
|
743
865
|
}
|
|
744
|
-
var
|
|
866
|
+
var mt = [
|
|
745
867
|
"ArrowUp",
|
|
746
868
|
"ArrowDown",
|
|
747
869
|
"ArrowLeft",
|
|
748
870
|
"ArrowRight"
|
|
749
|
-
],
|
|
750
|
-
let { __scopeRadioGroup: n, name: r, defaultValue:
|
|
751
|
-
prop:
|
|
752
|
-
defaultProp:
|
|
753
|
-
onChange:
|
|
754
|
-
caller:
|
|
755
|
-
});
|
|
756
|
-
return /* @__PURE__ */
|
|
871
|
+
], ht = "RadioGroup", [gt, _t] = he(ht, [Ie, at]), vt = Ie(), yt = at(), [bt, xt] = gt(ht), St = o.forwardRef((e, t) => {
|
|
872
|
+
let { __scopeRadioGroup: n, name: r, defaultValue: a, value: o, required: s = !1, disabled: c = !1, orientation: l, dir: u, loop: d = !0, onValueChange: f, ...p } = e, m = vt(n), h = Oe(u), [g, _] = we({
|
|
873
|
+
prop: o,
|
|
874
|
+
defaultProp: a ?? null,
|
|
875
|
+
onChange: f,
|
|
876
|
+
caller: ht
|
|
877
|
+
});
|
|
878
|
+
return /* @__PURE__ */ i(bt, {
|
|
757
879
|
scope: n,
|
|
758
880
|
name: r,
|
|
759
|
-
required:
|
|
760
|
-
disabled:
|
|
761
|
-
value:
|
|
762
|
-
onValueChange:
|
|
763
|
-
children: /* @__PURE__ */
|
|
881
|
+
required: s,
|
|
882
|
+
disabled: c,
|
|
883
|
+
value: g,
|
|
884
|
+
onValueChange: _,
|
|
885
|
+
children: /* @__PURE__ */ i(Je, {
|
|
764
886
|
asChild: !0,
|
|
765
|
-
...
|
|
766
|
-
orientation:
|
|
767
|
-
dir:
|
|
768
|
-
loop:
|
|
769
|
-
children: /* @__PURE__ */
|
|
887
|
+
...m,
|
|
888
|
+
orientation: l,
|
|
889
|
+
dir: h,
|
|
890
|
+
loop: d,
|
|
891
|
+
children: /* @__PURE__ */ i(R.div, {
|
|
770
892
|
role: "radiogroup",
|
|
771
|
-
"aria-required":
|
|
772
|
-
"aria-orientation":
|
|
773
|
-
"data-disabled":
|
|
774
|
-
dir:
|
|
775
|
-
...
|
|
893
|
+
"aria-required": s,
|
|
894
|
+
"aria-orientation": l,
|
|
895
|
+
"data-disabled": c ? "" : void 0,
|
|
896
|
+
dir: h,
|
|
897
|
+
...p,
|
|
776
898
|
ref: t
|
|
777
899
|
})
|
|
778
900
|
})
|
|
779
901
|
});
|
|
780
902
|
});
|
|
781
|
-
|
|
782
|
-
var
|
|
783
|
-
let { __scopeRadioGroup:
|
|
784
|
-
return
|
|
903
|
+
St.displayName = ht;
|
|
904
|
+
var Ct = "RadioGroupItem", wt = o.forwardRef((e, t) => {
|
|
905
|
+
let { __scopeRadioGroup: n, disabled: r, ...a } = e, s = xt(Ct, n), c = s.disabled || r, l = vt(n), u = yt(n), d = o.useRef(null), f = L(t, d), p = s.value === a.value, m = o.useRef(!1);
|
|
906
|
+
return o.useEffect(() => {
|
|
785
907
|
let e = (e) => {
|
|
786
|
-
|
|
787
|
-
}, t = () =>
|
|
908
|
+
mt.includes(e.key) && (m.current = !0);
|
|
909
|
+
}, t = () => m.current = !1;
|
|
788
910
|
return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
|
|
789
911
|
document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
|
|
790
912
|
};
|
|
791
|
-
}, []), /* @__PURE__ */
|
|
913
|
+
}, []), /* @__PURE__ */ i(Ye, {
|
|
792
914
|
asChild: !0,
|
|
793
|
-
...
|
|
794
|
-
focusable: !
|
|
795
|
-
active:
|
|
796
|
-
children: /* @__PURE__ */
|
|
797
|
-
disabled:
|
|
798
|
-
required:
|
|
799
|
-
checked:
|
|
800
|
-
...
|
|
915
|
+
...l,
|
|
916
|
+
focusable: !c,
|
|
917
|
+
active: p,
|
|
918
|
+
children: /* @__PURE__ */ i(ct, {
|
|
919
|
+
disabled: c,
|
|
920
|
+
required: s.required,
|
|
921
|
+
checked: p,
|
|
922
|
+
...u,
|
|
801
923
|
...a,
|
|
802
|
-
name:
|
|
803
|
-
ref:
|
|
804
|
-
onCheck: () =>
|
|
924
|
+
name: s.name,
|
|
925
|
+
ref: f,
|
|
926
|
+
onCheck: () => s.onValueChange(a.value),
|
|
805
927
|
onKeyDown: I((e) => {
|
|
806
928
|
e.key === "Enter" && e.preventDefault();
|
|
807
929
|
}),
|
|
808
930
|
onFocus: I(a.onFocus, () => {
|
|
809
|
-
|
|
931
|
+
m.current && d.current?.click();
|
|
810
932
|
})
|
|
811
933
|
})
|
|
812
934
|
});
|
|
813
935
|
});
|
|
814
|
-
|
|
815
|
-
var
|
|
936
|
+
wt.displayName = Ct;
|
|
937
|
+
var Tt = "RadioGroupIndicator", Et = o.forwardRef((e, t) => {
|
|
816
938
|
let { __scopeRadioGroup: n, ...r } = e;
|
|
817
|
-
return /* @__PURE__ */
|
|
818
|
-
...
|
|
939
|
+
return /* @__PURE__ */ i(ut, {
|
|
940
|
+
...yt(n),
|
|
819
941
|
...r,
|
|
820
942
|
ref: t
|
|
821
943
|
});
|
|
822
944
|
});
|
|
823
|
-
|
|
824
|
-
var
|
|
945
|
+
Et.displayName = Tt;
|
|
946
|
+
var Dt = St, Ot = wt, kt = Et, At = n([
|
|
825
947
|
"peer aspect-square shrink-0 rounded-full border-[1.5px] transition-colors",
|
|
826
948
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
827
949
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -833,47 +955,47 @@ var xt = gt, St = vt, Ct = bt, wt = l([
|
|
|
833
955
|
md: "h-6 w-6"
|
|
834
956
|
} },
|
|
835
957
|
defaultVariants: { size: "sm" }
|
|
836
|
-
}),
|
|
958
|
+
}), jt = n("block rounded-full bg-primary-foreground", {
|
|
837
959
|
variants: { size: {
|
|
838
960
|
sm: "h-2.5 w-2.5",
|
|
839
961
|
md: "h-3 w-3"
|
|
840
962
|
} },
|
|
841
963
|
defaultVariants: { size: "sm" }
|
|
842
964
|
});
|
|
843
|
-
function
|
|
844
|
-
return /* @__PURE__ */
|
|
965
|
+
function Mt({ className: e, ...t }) {
|
|
966
|
+
return /* @__PURE__ */ i(Dt, {
|
|
845
967
|
"data-slot": "radio-group",
|
|
846
968
|
className: j("grid gap-3", e),
|
|
847
969
|
...t
|
|
848
970
|
});
|
|
849
971
|
}
|
|
850
|
-
function
|
|
851
|
-
return /* @__PURE__ */
|
|
972
|
+
function Nt({ className: e, size: t = "sm", ...n }) {
|
|
973
|
+
return /* @__PURE__ */ i(Ot, {
|
|
852
974
|
"data-slot": "radio-group-item",
|
|
853
|
-
className: j(
|
|
975
|
+
className: j(At({
|
|
854
976
|
size: t,
|
|
855
977
|
className: e
|
|
856
978
|
})),
|
|
857
979
|
...n,
|
|
858
|
-
children: /* @__PURE__ */
|
|
980
|
+
children: /* @__PURE__ */ i(kt, {
|
|
859
981
|
className: "flex items-center justify-center",
|
|
860
|
-
children: /* @__PURE__ */
|
|
982
|
+
children: /* @__PURE__ */ i("span", { className: j(jt({ size: t })) })
|
|
861
983
|
})
|
|
862
984
|
});
|
|
863
985
|
}
|
|
864
986
|
//#endregion
|
|
865
987
|
//#region src/components/ui/separator.tsx
|
|
866
|
-
function
|
|
867
|
-
let
|
|
868
|
-
return /* @__PURE__ */
|
|
869
|
-
className: j("flex shrink-0",
|
|
870
|
-
children: [/* @__PURE__ */
|
|
988
|
+
function Pt({ className: e, orientation: t = "horizontal", variant: n = "full", label: r, decorative: o = !0, ...s }) {
|
|
989
|
+
let c = t === "horizontal";
|
|
990
|
+
return /* @__PURE__ */ a("div", {
|
|
991
|
+
className: j("flex shrink-0", c ? "flex-col items-stretch" : "flex-row items-stretch", n === "middle" && (c ? "px-4" : "py-4"), n === "inset" && (c ? "pl-4" : "pt-4"), r && c && "gap-2.5", !c && "h-full self-stretch", e),
|
|
992
|
+
children: [/* @__PURE__ */ i(O.Root, {
|
|
871
993
|
"data-slot": "separator",
|
|
872
|
-
decorative:
|
|
994
|
+
decorative: o,
|
|
873
995
|
orientation: t,
|
|
874
|
-
className: j("shrink-0 bg-border",
|
|
875
|
-
...
|
|
876
|
-
}), r &&
|
|
996
|
+
className: j("shrink-0 bg-border", c ? "h-px w-full" : "h-full w-px"),
|
|
997
|
+
...s
|
|
998
|
+
}), r && c && /* @__PURE__ */ i("span", {
|
|
877
999
|
className: "text-lg leading-7 text-foreground",
|
|
878
1000
|
children: r
|
|
879
1001
|
})]
|
|
@@ -881,7 +1003,7 @@ function Ot({ className: e, orientation: t = "horizontal", variant: n = "full",
|
|
|
881
1003
|
}
|
|
882
1004
|
//#endregion
|
|
883
1005
|
//#region src/components/ui/badge.tsx
|
|
884
|
-
var
|
|
1006
|
+
var Ft = n("inline-flex items-center justify-center rounded-full text-[12px] leading-[16px] whitespace-nowrap text-white", {
|
|
885
1007
|
variants: {
|
|
886
1008
|
variant: {
|
|
887
1009
|
default: "bg-foreground",
|
|
@@ -922,32 +1044,32 @@ var kt = l("inline-flex items-center justify-center rounded-full text-[12px] lea
|
|
|
922
1044
|
stroke: !1
|
|
923
1045
|
}
|
|
924
1046
|
});
|
|
925
|
-
function
|
|
926
|
-
let
|
|
927
|
-
return /* @__PURE__ */
|
|
1047
|
+
function It({ className: e, variant: t = "default", size: n = "sm", content: r = "none", stroke: a = !1, children: o, ...s }) {
|
|
1048
|
+
let c = n === "sm" && r === "none", l = r === "number" || r === "multi-number";
|
|
1049
|
+
return /* @__PURE__ */ i("div", {
|
|
928
1050
|
"data-slot": "badge",
|
|
929
1051
|
"data-variant": t,
|
|
930
1052
|
"data-size": n,
|
|
931
|
-
className: j(
|
|
1053
|
+
className: j(Ft({
|
|
932
1054
|
variant: t,
|
|
933
1055
|
size: n,
|
|
934
1056
|
content: r,
|
|
935
|
-
stroke:
|
|
1057
|
+
stroke: a,
|
|
936
1058
|
className: e
|
|
937
1059
|
})),
|
|
938
|
-
...
|
|
939
|
-
children:
|
|
940
|
-
className: j("text-center text-[12px] leading-[16px]",
|
|
941
|
-
children: r === "dot" ? /* @__PURE__ */
|
|
1060
|
+
...s,
|
|
1061
|
+
children: c ? null : /* @__PURE__ */ i("span", {
|
|
1062
|
+
className: j("text-center text-[12px] leading-[16px]", l && "font-medium"),
|
|
1063
|
+
children: r === "dot" ? /* @__PURE__ */ i(v, {
|
|
942
1064
|
className: "h-4 w-4",
|
|
943
1065
|
"aria-hidden": "true"
|
|
944
|
-
}) :
|
|
1066
|
+
}) : o
|
|
945
1067
|
})
|
|
946
1068
|
});
|
|
947
1069
|
}
|
|
948
1070
|
//#endregion
|
|
949
1071
|
//#region src/components/ui/tag.tsx
|
|
950
|
-
var
|
|
1072
|
+
var Lt = n("inline-flex items-center whitespace-nowrap rounded-full text-sm font-medium transition-colors [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
951
1073
|
variants: {
|
|
952
1074
|
variant: {
|
|
953
1075
|
outline: "border-[1.5px] border-border text-foreground",
|
|
@@ -978,26 +1100,26 @@ var jt = l("inline-flex items-center whitespace-nowrap rounded-full text-sm font
|
|
|
978
1100
|
size: "default"
|
|
979
1101
|
}
|
|
980
1102
|
});
|
|
981
|
-
function
|
|
982
|
-
return /* @__PURE__ */
|
|
1103
|
+
function Rt({ className: e, variant: t, size: n, onDismiss: r, children: o, ...s }) {
|
|
1104
|
+
return /* @__PURE__ */ a("div", {
|
|
983
1105
|
"data-slot": "tag",
|
|
984
|
-
className: j(
|
|
1106
|
+
className: j(Lt({
|
|
985
1107
|
variant: t,
|
|
986
1108
|
size: n
|
|
987
1109
|
}), r && "pr-2", e),
|
|
988
|
-
...
|
|
989
|
-
children: [
|
|
1110
|
+
...s,
|
|
1111
|
+
children: [o, r && /* @__PURE__ */ i("button", {
|
|
990
1112
|
type: "button",
|
|
991
1113
|
"aria-label": "Dismiss",
|
|
992
1114
|
onClick: r,
|
|
993
1115
|
className: j("inline-flex items-center justify-center rounded-full transition-colors", "hover:bg-foreground/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", n === "sm" ? "h-3.5 w-3.5" : "h-4 w-4"),
|
|
994
|
-
children: /* @__PURE__ */
|
|
1116
|
+
children: /* @__PURE__ */ i(w, { className: n === "sm" ? "h-2.5 w-2.5" : "h-3 w-3" })
|
|
995
1117
|
})]
|
|
996
1118
|
});
|
|
997
1119
|
}
|
|
998
1120
|
//#endregion
|
|
999
1121
|
//#region src/components/ui/avatar.tsx
|
|
1000
|
-
var
|
|
1122
|
+
var zt = n("relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-muted", {
|
|
1001
1123
|
variants: {
|
|
1002
1124
|
size: {
|
|
1003
1125
|
xs: "h-6 w-6 text-xs",
|
|
@@ -1014,7 +1136,7 @@ var Nt = l("relative inline-flex shrink-0 items-center justify-center overflow-h
|
|
|
1014
1136
|
size: "md",
|
|
1015
1137
|
shape: "circle"
|
|
1016
1138
|
}
|
|
1017
|
-
}),
|
|
1139
|
+
}), Bt = n("absolute bottom-0 right-0 block rounded-full border border-background shadow-sm", {
|
|
1018
1140
|
variants: {
|
|
1019
1141
|
size: {
|
|
1020
1142
|
xs: "h-[4.5px] w-[4.5px]",
|
|
@@ -1031,20 +1153,20 @@ var Nt = l("relative inline-flex shrink-0 items-center justify-center overflow-h
|
|
|
1031
1153
|
},
|
|
1032
1154
|
defaultVariants: { size: "md" }
|
|
1033
1155
|
});
|
|
1034
|
-
function
|
|
1035
|
-
return /* @__PURE__ */
|
|
1156
|
+
function Vt({ className: e, size: t = "md", shape: n = "circle", status: r = "none", children: o, ...s }) {
|
|
1157
|
+
return /* @__PURE__ */ a(k.Root, {
|
|
1036
1158
|
"data-slot": "avatar",
|
|
1037
1159
|
"data-size": t,
|
|
1038
1160
|
"data-shape": n,
|
|
1039
|
-
className: j(
|
|
1161
|
+
className: j(zt({
|
|
1040
1162
|
size: t,
|
|
1041
1163
|
shape: n,
|
|
1042
1164
|
className: e
|
|
1043
1165
|
})),
|
|
1044
|
-
...
|
|
1045
|
-
children: [
|
|
1166
|
+
...s,
|
|
1167
|
+
children: [o, r !== "none" && /* @__PURE__ */ i("span", {
|
|
1046
1168
|
"data-slot": "avatar-status",
|
|
1047
|
-
className: j(
|
|
1169
|
+
className: j(Bt({
|
|
1048
1170
|
size: t,
|
|
1049
1171
|
status: r
|
|
1050
1172
|
})),
|
|
@@ -1052,15 +1174,15 @@ function Ft({ className: e, size: t = "md", shape: n = "circle", status: r = "no
|
|
|
1052
1174
|
})]
|
|
1053
1175
|
});
|
|
1054
1176
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return /* @__PURE__ */
|
|
1177
|
+
function Ht({ className: e, ...t }) {
|
|
1178
|
+
return /* @__PURE__ */ i(k.Image, {
|
|
1057
1179
|
"data-slot": "avatar-image",
|
|
1058
1180
|
className: j("h-full w-full object-cover", e),
|
|
1059
1181
|
...t
|
|
1060
1182
|
});
|
|
1061
1183
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return /* @__PURE__ */
|
|
1184
|
+
function Ut({ className: e, ...t }) {
|
|
1185
|
+
return /* @__PURE__ */ i(k.Fallback, {
|
|
1064
1186
|
"data-slot": "avatar-fallback",
|
|
1065
1187
|
className: j("flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground", e),
|
|
1066
1188
|
...t
|
|
@@ -1068,7 +1190,7 @@ function Lt({ className: e, ...t }) {
|
|
|
1068
1190
|
}
|
|
1069
1191
|
//#endregion
|
|
1070
1192
|
//#region src/components/ui/icon-button.tsx
|
|
1071
|
-
var
|
|
1193
|
+
var Wt = n("inline-flex shrink-0 items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
1072
1194
|
variants: {
|
|
1073
1195
|
variant: {
|
|
1074
1196
|
default: "bg-primary text-primary-foreground hover:bg-[hsl(var(--icon-button-hover))] disabled:bg-[hsl(var(--icon-button-disabled))] active:bg-primary active:ring-2 active:ring-primary active:ring-offset-2",
|
|
@@ -1086,32 +1208,32 @@ var Rt = l("inline-flex shrink-0 items-center justify-center transition-colors f
|
|
|
1086
1208
|
size: "default"
|
|
1087
1209
|
}
|
|
1088
1210
|
});
|
|
1089
|
-
function
|
|
1090
|
-
let l = r ?
|
|
1091
|
-
return /* @__PURE__ */
|
|
1211
|
+
function Gt({ className: e, variant: t = "default", size: n = "default", asChild: r = !1, loading: a = !1, disabled: o, children: s, ...c }) {
|
|
1212
|
+
let l = r ? u : "button", d = o || a;
|
|
1213
|
+
return /* @__PURE__ */ i(l, {
|
|
1092
1214
|
"data-slot": "icon-button",
|
|
1093
1215
|
"data-variant": t,
|
|
1094
1216
|
"data-size": n,
|
|
1095
|
-
className: j(
|
|
1217
|
+
className: j(Wt({
|
|
1096
1218
|
variant: t,
|
|
1097
1219
|
size: n,
|
|
1098
1220
|
className: e
|
|
1099
1221
|
})),
|
|
1100
|
-
disabled:
|
|
1101
|
-
"aria-busy":
|
|
1222
|
+
disabled: d,
|
|
1223
|
+
"aria-busy": a || void 0,
|
|
1102
1224
|
...c,
|
|
1103
|
-
children:
|
|
1225
|
+
children: a ? /* @__PURE__ */ i(b, { className: "animate-spin" }) : s
|
|
1104
1226
|
});
|
|
1105
1227
|
}
|
|
1106
1228
|
//#endregion
|
|
1107
1229
|
//#region src/components/ui/progress.tsx
|
|
1108
|
-
var
|
|
1230
|
+
var Kt = n("relative w-full overflow-hidden rounded-full bg-surface-inset", {
|
|
1109
1231
|
variants: { size: {
|
|
1110
1232
|
sm: "h-1",
|
|
1111
1233
|
md: "h-2"
|
|
1112
1234
|
} },
|
|
1113
1235
|
defaultVariants: { size: "sm" }
|
|
1114
|
-
}),
|
|
1236
|
+
}), qt = n("h-full rounded-full transition-all duration-300 ease-in-out", {
|
|
1115
1237
|
variants: { status: {
|
|
1116
1238
|
default: "bg-foreground",
|
|
1117
1239
|
success: "bg-success",
|
|
@@ -1119,7 +1241,7 @@ var Bt = l("relative w-full overflow-hidden rounded-full bg-surface-inset", {
|
|
|
1119
1241
|
error: "bg-destructive"
|
|
1120
1242
|
} },
|
|
1121
1243
|
defaultVariants: { status: "default" }
|
|
1122
|
-
}),
|
|
1244
|
+
}), Jt = n("text-base font-medium leading-6", {
|
|
1123
1245
|
variants: { status: {
|
|
1124
1246
|
default: "text-muted-foreground",
|
|
1125
1247
|
success: "text-success",
|
|
@@ -1128,138 +1250,138 @@ var Bt = l("relative w-full overflow-hidden rounded-full bg-surface-inset", {
|
|
|
1128
1250
|
} },
|
|
1129
1251
|
defaultVariants: { status: "default" }
|
|
1130
1252
|
});
|
|
1131
|
-
function
|
|
1132
|
-
let
|
|
1133
|
-
return /* @__PURE__ */
|
|
1253
|
+
function Yt({ className: e, value: t = 0, max: n = 100, size: r = "sm", status: o = "default", label: s, helperText: c, showLabel: l = !1, indeterminate: u = !1, statusText: d, ...f }) {
|
|
1254
|
+
let p = Math.min(Math.max(t, 0), n), m = n > 0 ? p / n * 100 : 0, h = o ?? "default";
|
|
1255
|
+
return /* @__PURE__ */ a("div", {
|
|
1134
1256
|
"data-slot": "progress",
|
|
1135
1257
|
className: j("flex w-full flex-col gap-1", e),
|
|
1136
|
-
...
|
|
1258
|
+
...f,
|
|
1137
1259
|
children: [
|
|
1138
|
-
|
|
1260
|
+
l && /* @__PURE__ */ a("div", {
|
|
1139
1261
|
className: "flex items-end justify-between",
|
|
1140
|
-
children: [/* @__PURE__ */
|
|
1141
|
-
className: j(
|
|
1142
|
-
children:
|
|
1143
|
-
}), /* @__PURE__ */
|
|
1262
|
+
children: [/* @__PURE__ */ i("span", {
|
|
1263
|
+
className: j(Jt({ status: h })),
|
|
1264
|
+
children: u ? s ?? "Loading" : s ?? ""
|
|
1265
|
+
}), /* @__PURE__ */ a("div", {
|
|
1144
1266
|
className: "flex items-end gap-2",
|
|
1145
|
-
children: [/* @__PURE__ */
|
|
1267
|
+
children: [/* @__PURE__ */ i("span", {
|
|
1146
1268
|
className: "text-lg font-bold leading-7 text-foreground",
|
|
1147
|
-
children:
|
|
1148
|
-
}), !
|
|
1269
|
+
children: u ? "Loading" : `${Math.round(m)}%`
|
|
1270
|
+
}), !u && d && /* @__PURE__ */ i("span", {
|
|
1149
1271
|
className: "pb-0.5 text-[10px] font-medium leading-4 tracking-[0.5px] text-muted-foreground",
|
|
1150
|
-
children:
|
|
1272
|
+
children: d
|
|
1151
1273
|
})]
|
|
1152
1274
|
})]
|
|
1153
1275
|
}),
|
|
1154
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ i("div", {
|
|
1155
1277
|
role: "progressbar",
|
|
1156
|
-
"aria-valuenow":
|
|
1278
|
+
"aria-valuenow": u ? void 0 : p,
|
|
1157
1279
|
"aria-valuemin": 0,
|
|
1158
1280
|
"aria-valuemax": n,
|
|
1159
|
-
className: j(
|
|
1160
|
-
children: /* @__PURE__ */
|
|
1281
|
+
className: j(Kt({ size: r })),
|
|
1282
|
+
children: /* @__PURE__ */ i("div", {
|
|
1161
1283
|
"data-slot": "progress-indicator",
|
|
1162
|
-
className: j(
|
|
1163
|
-
style:
|
|
1284
|
+
className: j(qt({ status: o }), u && "animate-progress-indeterminate"),
|
|
1285
|
+
style: u ? { width: "50%" } : { width: `${m}%` }
|
|
1164
1286
|
})
|
|
1165
1287
|
}),
|
|
1166
|
-
|
|
1288
|
+
l && c && /* @__PURE__ */ i("span", {
|
|
1167
1289
|
className: "text-[10px] leading-4 text-muted-foreground",
|
|
1168
|
-
children:
|
|
1290
|
+
children: c
|
|
1169
1291
|
})
|
|
1170
1292
|
]
|
|
1171
1293
|
});
|
|
1172
1294
|
}
|
|
1173
1295
|
//#endregion
|
|
1174
1296
|
//#region src/components/ui/input-field.tsx
|
|
1175
|
-
function
|
|
1176
|
-
let
|
|
1297
|
+
function Xt({ className: e, label: t, required: n = !1, helpText: r, errorMessage: o, inputType: s = "text", clearable: l = !1, onClear: u, prefixLabel: d, disabled: f, value: m, id: g, ..._ }) {
|
|
1298
|
+
let v = c(), y = g ?? v, b = !!o, x = r ? `${y}-help` : void 0, C = b ? `${y}-error` : void 0, T = [x, C].filter(Boolean).join(" ") || void 0, E = t ? /* @__PURE__ */ a(oe, {
|
|
1177
1299
|
"data-slot": "input-field-label",
|
|
1178
|
-
htmlFor:
|
|
1179
|
-
children: [t, n && /* @__PURE__ */
|
|
1300
|
+
htmlFor: y,
|
|
1301
|
+
children: [t, n && /* @__PURE__ */ i("span", {
|
|
1180
1302
|
className: "text-destructive",
|
|
1181
1303
|
children: "*"
|
|
1182
1304
|
})]
|
|
1183
|
-
}) : null, ee = r && !
|
|
1305
|
+
}) : null, ee = r && !b ? /* @__PURE__ */ i("p", {
|
|
1184
1306
|
"data-slot": "input-field-help",
|
|
1185
|
-
id:
|
|
1307
|
+
id: x,
|
|
1186
1308
|
className: "text-xs font-medium leading-4 text-muted-foreground",
|
|
1187
1309
|
children: r
|
|
1188
|
-
}) : null, D =
|
|
1310
|
+
}) : null, D = b ? /* @__PURE__ */ i("p", {
|
|
1189
1311
|
"data-slot": "input-field-error",
|
|
1190
|
-
id:
|
|
1312
|
+
id: C,
|
|
1191
1313
|
role: "alert",
|
|
1192
1314
|
className: "text-xs font-medium leading-4 text-destructive",
|
|
1193
|
-
children:
|
|
1194
|
-
}) : null, O =
|
|
1315
|
+
children: o
|
|
1316
|
+
}) : null, O = s === "search" ? /* @__PURE__ */ i(S, {}) : void 0, k = s === "select", A = s === "calendar", M = s === "number" ? "tel" : s === "search" ? "search" : "text", N = s === "number" && d ? /* @__PURE__ */ a("div", {
|
|
1195
1317
|
"data-slot": "input-field-number-group",
|
|
1196
1318
|
className: "flex items-start gap-2",
|
|
1197
|
-
children: [/* @__PURE__ */
|
|
1319
|
+
children: [/* @__PURE__ */ i("div", {
|
|
1198
1320
|
"data-slot": "input-field-prefix",
|
|
1199
|
-
"data-disabled":
|
|
1200
|
-
className: j("flex h-8 shrink-0 items-center rounded-lg border border-input bg-background px-2.5 text-sm shadow-sm transition-colors", "focus-within:border-ring",
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1321
|
+
"data-disabled": f || void 0,
|
|
1322
|
+
className: j("flex h-8 shrink-0 items-center rounded-lg border border-input bg-background px-2.5 text-sm shadow-sm transition-colors", "focus-within:border-ring", b && "border-destructive", f && "cursor-not-allowed opacity-50"),
|
|
1323
|
+
children: /* @__PURE__ */ i("span", {
|
|
1202
1324
|
className: "text-muted-foreground",
|
|
1203
|
-
children:
|
|
1325
|
+
children: d
|
|
1204
1326
|
})
|
|
1205
|
-
}), /* @__PURE__ */
|
|
1327
|
+
}), /* @__PURE__ */ i("div", {
|
|
1206
1328
|
"data-slot": "input-wrapper",
|
|
1207
|
-
"data-disabled":
|
|
1208
|
-
className: j("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 shadow-sm transition-colors", "focus-within:border-ring",
|
|
1209
|
-
children: /* @__PURE__ */
|
|
1210
|
-
id:
|
|
1329
|
+
"data-disabled": f || void 0,
|
|
1330
|
+
className: j("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 shadow-sm transition-colors", "focus-within:border-ring", b && "border-destructive", f && "cursor-not-allowed opacity-50", e),
|
|
1331
|
+
children: /* @__PURE__ */ i(ae, {
|
|
1332
|
+
id: y,
|
|
1211
1333
|
type: "tel",
|
|
1212
|
-
disabled:
|
|
1213
|
-
value:
|
|
1214
|
-
"aria-invalid":
|
|
1334
|
+
disabled: f,
|
|
1335
|
+
value: m,
|
|
1336
|
+
"aria-invalid": b || void 0,
|
|
1215
1337
|
"aria-describedby": T,
|
|
1216
1338
|
"data-slot": "input-field-input",
|
|
1217
1339
|
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
1218
|
-
...
|
|
1340
|
+
..._
|
|
1219
1341
|
})
|
|
1220
1342
|
})]
|
|
1221
|
-
}) : /* @__PURE__ */
|
|
1343
|
+
}) : /* @__PURE__ */ a("div", {
|
|
1222
1344
|
"data-slot": "input-wrapper",
|
|
1223
|
-
"data-disabled":
|
|
1224
|
-
className: j("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 transition-colors", "focus-within:border-ring",
|
|
1345
|
+
"data-disabled": f || void 0,
|
|
1346
|
+
className: j("flex h-8 w-full items-center gap-1.5 rounded-lg border border-input bg-background px-2.5 transition-colors", "focus-within:border-ring", b && "border-destructive", f && "cursor-not-allowed opacity-50", e),
|
|
1225
1347
|
children: [
|
|
1226
|
-
O && /* @__PURE__ */
|
|
1348
|
+
O && /* @__PURE__ */ i("span", {
|
|
1227
1349
|
"data-slot": "input-field-icon",
|
|
1228
1350
|
className: "inline-flex shrink-0 text-muted-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
1229
1351
|
children: O
|
|
1230
1352
|
}),
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
id:
|
|
1353
|
+
/* @__PURE__ */ i(ae, {
|
|
1354
|
+
id: y,
|
|
1233
1355
|
type: M,
|
|
1234
|
-
disabled:
|
|
1235
|
-
value:
|
|
1236
|
-
"aria-invalid":
|
|
1356
|
+
disabled: f,
|
|
1357
|
+
value: m,
|
|
1358
|
+
"aria-invalid": b || void 0,
|
|
1237
1359
|
"aria-describedby": T,
|
|
1238
1360
|
"data-slot": "input-field-input",
|
|
1239
1361
|
className: "h-full border-0 bg-transparent px-0 shadow-none ring-0 ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
1240
|
-
...
|
|
1362
|
+
..._
|
|
1241
1363
|
}),
|
|
1242
|
-
|
|
1364
|
+
l && m && !f && /* @__PURE__ */ i("button", {
|
|
1243
1365
|
type: "button",
|
|
1244
|
-
onClick:
|
|
1366
|
+
onClick: u,
|
|
1245
1367
|
"data-slot": "input-field-clear",
|
|
1246
1368
|
className: "inline-flex shrink-0 text-muted-foreground hover:text-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
1247
1369
|
"aria-label": "Clear input",
|
|
1248
|
-
children: /* @__PURE__ */
|
|
1370
|
+
children: /* @__PURE__ */ i(w, {})
|
|
1249
1371
|
}),
|
|
1250
|
-
k && /* @__PURE__ */
|
|
1372
|
+
k && /* @__PURE__ */ i("span", {
|
|
1251
1373
|
"data-slot": "input-field-chevron",
|
|
1252
1374
|
className: "inline-flex shrink-0 text-muted-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
1253
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ i(h, {})
|
|
1254
1376
|
}),
|
|
1255
|
-
A && /* @__PURE__ */
|
|
1377
|
+
A && /* @__PURE__ */ i("span", {
|
|
1256
1378
|
"data-slot": "input-field-calendar",
|
|
1257
1379
|
className: "inline-flex shrink-0 text-muted-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
1258
|
-
children: /* @__PURE__ */
|
|
1380
|
+
children: /* @__PURE__ */ i(p, {})
|
|
1259
1381
|
})
|
|
1260
1382
|
]
|
|
1261
1383
|
});
|
|
1262
|
-
return !t && !r && !
|
|
1384
|
+
return !t && !r && !o ? N : /* @__PURE__ */ a("div", {
|
|
1263
1385
|
"data-slot": "input-field",
|
|
1264
1386
|
className: "flex flex-col gap-1",
|
|
1265
1387
|
children: [
|
|
@@ -1272,215 +1394,215 @@ function Wt({ className: e, label: t, required: n = !1, helpText: r, errorMessag
|
|
|
1272
1394
|
}
|
|
1273
1395
|
//#endregion
|
|
1274
1396
|
//#region src/components/ui/search-input.tsx
|
|
1275
|
-
function
|
|
1276
|
-
let [
|
|
1277
|
-
|
|
1278
|
-
},
|
|
1279
|
-
|
|
1280
|
-
},
|
|
1281
|
-
return /* @__PURE__ */
|
|
1397
|
+
function Zt({ className: e, inputSize: t = "sm", clearable: n = !0, onClear: r, loading: s = !1, disabled: c, value: l, defaultValue: u, onChange: d, placeholder: f = "Type to Search...", ...p }) {
|
|
1398
|
+
let [m, h] = o.useState(u ?? ""), g = l !== void 0, _ = g ? l : m, v = (e) => {
|
|
1399
|
+
g || h(e.target.value), d?.(e);
|
|
1400
|
+
}, y = () => {
|
|
1401
|
+
g || h(""), r?.();
|
|
1402
|
+
}, x = String(_).length > 0, C = n && x && !c && !s, T = s && !c;
|
|
1403
|
+
return /* @__PURE__ */ a("div", {
|
|
1282
1404
|
"data-slot": "search-input",
|
|
1283
|
-
className: j("flex items-center gap-2 rounded-full border border-input bg-background px-3", "transition-colors", t === "sm" && "h-8", t === "default" && "h-10",
|
|
1405
|
+
className: j("flex items-center gap-2 rounded-full border border-input bg-background px-3", "transition-colors", t === "sm" && "h-8", t === "default" && "h-10", c && "cursor-not-allowed bg-secondary opacity-60", e),
|
|
1284
1406
|
children: [
|
|
1285
|
-
/* @__PURE__ */
|
|
1286
|
-
className: j("inline-flex shrink-0 [&_svg]:h-[18px] [&_svg]:w-[18px]",
|
|
1287
|
-
children: /* @__PURE__ */
|
|
1407
|
+
/* @__PURE__ */ i("span", {
|
|
1408
|
+
className: j("inline-flex shrink-0 [&_svg]:h-[18px] [&_svg]:w-[18px]", c ? "text-muted-foreground/50" : "text-muted-foreground"),
|
|
1409
|
+
children: /* @__PURE__ */ i(S, {})
|
|
1288
1410
|
}),
|
|
1289
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ i(ae, {
|
|
1290
1412
|
type: "search",
|
|
1291
|
-
disabled:
|
|
1292
|
-
value:
|
|
1293
|
-
onChange:
|
|
1294
|
-
placeholder:
|
|
1413
|
+
disabled: c,
|
|
1414
|
+
value: _,
|
|
1415
|
+
onChange: v,
|
|
1416
|
+
placeholder: f,
|
|
1295
1417
|
className: j("h-full border-0 bg-transparent px-0 text-[18px] leading-7 shadow-none ring-0 ring-offset-0", "focus-visible:ring-0 focus-visible:ring-offset-0", "placeholder:text-muted-foreground", "text-foreground", "[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden"),
|
|
1296
|
-
...
|
|
1418
|
+
...p
|
|
1297
1419
|
}),
|
|
1298
|
-
T && /* @__PURE__ */
|
|
1420
|
+
T && /* @__PURE__ */ i("span", {
|
|
1299
1421
|
className: "inline-flex shrink-0 animate-spin text-muted-foreground [&_svg]:h-4 [&_svg]:w-4",
|
|
1300
|
-
children: /* @__PURE__ */
|
|
1422
|
+
children: /* @__PURE__ */ i(b, {})
|
|
1301
1423
|
}),
|
|
1302
|
-
|
|
1424
|
+
C && /* @__PURE__ */ i("button", {
|
|
1303
1425
|
type: "button",
|
|
1304
|
-
onClick:
|
|
1305
|
-
disabled:
|
|
1426
|
+
onClick: y,
|
|
1427
|
+
disabled: c,
|
|
1306
1428
|
className: j("inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-full", "bg-foreground/5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),
|
|
1307
1429
|
"aria-label": "Clear search",
|
|
1308
|
-
children: /* @__PURE__ */
|
|
1430
|
+
children: /* @__PURE__ */ i(w, { className: "h-3.5 w-3.5" })
|
|
1309
1431
|
})
|
|
1310
1432
|
]
|
|
1311
1433
|
});
|
|
1312
1434
|
}
|
|
1313
1435
|
//#endregion
|
|
1314
1436
|
//#region src/components/ui/stepper.tsx
|
|
1315
|
-
var
|
|
1437
|
+
var Qt = o.createContext({
|
|
1316
1438
|
activeStep: 0,
|
|
1317
1439
|
orientation: "horizontal",
|
|
1318
1440
|
totalSteps: 0
|
|
1319
1441
|
});
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1442
|
+
function $t() {
|
|
1443
|
+
return o.useContext(Qt);
|
|
1322
1444
|
}
|
|
1323
|
-
function
|
|
1445
|
+
function en(e, t) {
|
|
1324
1446
|
return e < t ? "completed" : e === t ? "active" : "inactive";
|
|
1325
1447
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return /* @__PURE__ */
|
|
1448
|
+
function tn({ status: e }) {
|
|
1449
|
+
return /* @__PURE__ */ a("div", {
|
|
1328
1450
|
"data-slot": "stepper-indicator",
|
|
1329
1451
|
className: j("relative flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-300", e === "completed" && "border-primary bg-primary text-primary-foreground", e === "active" && "border-primary bg-background", e === "inactive" && "border-muted bg-background"),
|
|
1330
1452
|
children: [
|
|
1331
|
-
e === "completed" && /* @__PURE__ */
|
|
1332
|
-
e === "active" && /* @__PURE__ */
|
|
1453
|
+
e === "completed" && /* @__PURE__ */ i(m, { className: "h-4 w-4" }),
|
|
1454
|
+
e === "active" && /* @__PURE__ */ i("div", {
|
|
1333
1455
|
"data-slot": "stepper-dot",
|
|
1334
1456
|
className: "h-2.5 w-2.5 rounded-full bg-primary"
|
|
1335
1457
|
}),
|
|
1336
|
-
e === "inactive" && /* @__PURE__ */
|
|
1458
|
+
e === "inactive" && /* @__PURE__ */ i("div", {
|
|
1337
1459
|
"data-slot": "stepper-dot",
|
|
1338
1460
|
className: "h-2.5 w-2.5 rounded-full bg-muted"
|
|
1339
1461
|
})
|
|
1340
1462
|
]
|
|
1341
1463
|
});
|
|
1342
1464
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return /* @__PURE__ */
|
|
1465
|
+
function nn({ completed: e, orientation: t }) {
|
|
1466
|
+
return /* @__PURE__ */ i("div", {
|
|
1345
1467
|
"data-slot": "stepper-separator",
|
|
1346
1468
|
className: j("transition-colors duration-300", t === "horizontal" ? "h-0.5 flex-1" : "h-20 w-0.5", e ? "bg-primary" : "bg-surface-inset")
|
|
1347
1469
|
});
|
|
1348
1470
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return /* @__PURE__ */
|
|
1471
|
+
function rn({ className: e, label: t, description: n, children: o }) {
|
|
1472
|
+
return /* @__PURE__ */ i("div", {
|
|
1351
1473
|
"data-slot": "stepper-item",
|
|
1352
1474
|
className: e,
|
|
1353
|
-
children:
|
|
1475
|
+
children: o ?? /* @__PURE__ */ a(r, { children: [t && /* @__PURE__ */ i("span", {
|
|
1354
1476
|
"data-slot": "stepper-item-label",
|
|
1355
1477
|
className: "text-sm font-medium leading-5",
|
|
1356
1478
|
children: t
|
|
1357
|
-
}), n && /* @__PURE__ */
|
|
1479
|
+
}), n && /* @__PURE__ */ i("span", {
|
|
1358
1480
|
"data-slot": "stepper-item-description",
|
|
1359
1481
|
className: "text-xs text-muted-foreground",
|
|
1360
1482
|
children: n
|
|
1361
1483
|
})] })
|
|
1362
1484
|
});
|
|
1363
1485
|
}
|
|
1364
|
-
function
|
|
1365
|
-
let
|
|
1486
|
+
function an({ className: e, activeStep: t = 0, orientation: n = "horizontal", steps: s, children: c, ...l }) {
|
|
1487
|
+
let u = s ? s.map((e, t) => /* @__PURE__ */ i(rn, {
|
|
1366
1488
|
label: e.label,
|
|
1367
1489
|
description: e.description
|
|
1368
|
-
}, t)) :
|
|
1490
|
+
}, t)) : o.Children.toArray(c), d = u.length, f = {
|
|
1369
1491
|
activeStep: t,
|
|
1370
|
-
orientation:
|
|
1371
|
-
totalSteps:
|
|
1372
|
-
},
|
|
1373
|
-
return
|
|
1374
|
-
value:
|
|
1375
|
-
children: /* @__PURE__ */
|
|
1492
|
+
orientation: n,
|
|
1493
|
+
totalSteps: d
|
|
1494
|
+
}, p = u.some((e) => o.isValidElement(e) && e.props.label);
|
|
1495
|
+
return n === "horizontal" ? /* @__PURE__ */ i(Qt.Provider, {
|
|
1496
|
+
value: f,
|
|
1497
|
+
children: /* @__PURE__ */ a("div", {
|
|
1376
1498
|
"data-slot": "stepper",
|
|
1377
1499
|
className: j("flex flex-col gap-2", e),
|
|
1378
|
-
...
|
|
1379
|
-
children: [/* @__PURE__ */
|
|
1500
|
+
...l,
|
|
1501
|
+
children: [/* @__PURE__ */ i("div", {
|
|
1380
1502
|
className: "flex flex-row items-center",
|
|
1381
|
-
children:
|
|
1382
|
-
let
|
|
1383
|
-
return /* @__PURE__ */
|
|
1384
|
-
completed:
|
|
1503
|
+
children: u.map((e, n) => {
|
|
1504
|
+
let r = en(n, t), s = n === d - 1;
|
|
1505
|
+
return /* @__PURE__ */ a(o.Fragment, { children: [/* @__PURE__ */ i(tn, { status: r }), !s && /* @__PURE__ */ i(nn, {
|
|
1506
|
+
completed: n < t,
|
|
1385
1507
|
orientation: "horizontal"
|
|
1386
|
-
})] },
|
|
1508
|
+
})] }, n);
|
|
1387
1509
|
})
|
|
1388
|
-
}),
|
|
1510
|
+
}), p && /* @__PURE__ */ i("div", {
|
|
1389
1511
|
className: "flex flex-row",
|
|
1390
|
-
children:
|
|
1391
|
-
let
|
|
1392
|
-
return /* @__PURE__ */
|
|
1512
|
+
children: u.map((e, n) => {
|
|
1513
|
+
let s = en(n, t), c = n === d - 1;
|
|
1514
|
+
return /* @__PURE__ */ a(o.Fragment, { children: [/* @__PURE__ */ i("div", {
|
|
1393
1515
|
"data-slot": "stepper-step-content",
|
|
1394
1516
|
className: "flex flex-col items-center text-center",
|
|
1395
1517
|
style: { width: 32 },
|
|
1396
|
-
children:
|
|
1518
|
+
children: o.isValidElement(e) && /* @__PURE__ */ a(r, { children: [e.props.label && /* @__PURE__ */ i("span", {
|
|
1397
1519
|
"data-slot": "stepper-label",
|
|
1398
|
-
className: j("whitespace-nowrap text-sm leading-5",
|
|
1520
|
+
className: j("whitespace-nowrap text-sm leading-5", s === "active" ? "font-semibold text-foreground" : s === "completed" ? "font-normal text-foreground" : "font-normal text-info"),
|
|
1399
1521
|
children: e.props.label
|
|
1400
|
-
}), e.props.description && /* @__PURE__ */
|
|
1522
|
+
}), e.props.description && /* @__PURE__ */ i("span", {
|
|
1401
1523
|
"data-slot": "stepper-description",
|
|
1402
1524
|
className: "whitespace-nowrap text-xs text-muted-foreground",
|
|
1403
1525
|
children: e.props.description
|
|
1404
1526
|
})] })
|
|
1405
|
-
}), !
|
|
1527
|
+
}), !c && /* @__PURE__ */ i("div", { className: "flex-1" })] }, n);
|
|
1406
1528
|
})
|
|
1407
1529
|
})]
|
|
1408
1530
|
})
|
|
1409
|
-
}) : /* @__PURE__ */
|
|
1410
|
-
value:
|
|
1411
|
-
children: /* @__PURE__ */
|
|
1531
|
+
}) : /* @__PURE__ */ i(Qt.Provider, {
|
|
1532
|
+
value: f,
|
|
1533
|
+
children: /* @__PURE__ */ i("div", {
|
|
1412
1534
|
"data-slot": "stepper",
|
|
1413
1535
|
className: j("flex flex-col items-start", e),
|
|
1414
|
-
...
|
|
1415
|
-
children:
|
|
1416
|
-
let
|
|
1417
|
-
return /* @__PURE__ */
|
|
1536
|
+
...l,
|
|
1537
|
+
children: u.map((e, n) => {
|
|
1538
|
+
let r = en(n, t), s = n === d - 1;
|
|
1539
|
+
return /* @__PURE__ */ i(o.Fragment, { children: /* @__PURE__ */ a("div", {
|
|
1418
1540
|
"data-slot": "stepper-step",
|
|
1419
1541
|
className: "flex flex-row items-start gap-4",
|
|
1420
|
-
children: [/* @__PURE__ */
|
|
1542
|
+
children: [/* @__PURE__ */ a("div", {
|
|
1421
1543
|
"data-slot": "stepper-step-indicator-group",
|
|
1422
1544
|
className: "flex flex-col items-center",
|
|
1423
|
-
children: [/* @__PURE__ */
|
|
1424
|
-
completed:
|
|
1545
|
+
children: [/* @__PURE__ */ i(tn, { status: r }), !s && /* @__PURE__ */ i(nn, {
|
|
1546
|
+
completed: n < t,
|
|
1425
1547
|
orientation: "vertical"
|
|
1426
1548
|
})]
|
|
1427
|
-
}),
|
|
1549
|
+
}), o.isValidElement(e) && /* @__PURE__ */ a("div", {
|
|
1428
1550
|
"data-slot": "stepper-step-content",
|
|
1429
1551
|
className: "flex flex-col pb-8",
|
|
1430
|
-
children: [e.props.label && /* @__PURE__ */
|
|
1552
|
+
children: [e.props.label && /* @__PURE__ */ i("span", {
|
|
1431
1553
|
"data-slot": "stepper-label",
|
|
1432
|
-
className: j("text-sm leading-8",
|
|
1554
|
+
className: j("text-sm leading-8", r === "active" ? "font-semibold text-foreground" : r === "completed" ? "font-normal text-foreground" : "font-normal text-muted-foreground"),
|
|
1433
1555
|
children: e.props.label
|
|
1434
|
-
}), e.props.description && /* @__PURE__ */
|
|
1556
|
+
}), e.props.description && /* @__PURE__ */ i("span", {
|
|
1435
1557
|
"data-slot": "stepper-description",
|
|
1436
1558
|
className: "text-xs text-muted-foreground",
|
|
1437
1559
|
children: e.props.description
|
|
1438
1560
|
})]
|
|
1439
1561
|
})]
|
|
1440
|
-
}) },
|
|
1562
|
+
}) }, n);
|
|
1441
1563
|
})
|
|
1442
1564
|
})
|
|
1443
1565
|
});
|
|
1444
1566
|
}
|
|
1445
1567
|
//#endregion
|
|
1446
1568
|
//#region src/components/ui/card.tsx
|
|
1447
|
-
function
|
|
1448
|
-
return /* @__PURE__ */
|
|
1569
|
+
function on({ className: e, variant: t = "default", ...n }) {
|
|
1570
|
+
return /* @__PURE__ */ i("div", {
|
|
1449
1571
|
"data-slot": "card",
|
|
1450
1572
|
className: j("flex flex-col gap-4 rounded-lg bg-card px-6 py-5 text-card-foreground", t === "outlined" && "border border-border", t === "elevated" && "shadow-[0px_4px_12px_0px_rgba(0,0,0,0.08)]", e),
|
|
1451
1573
|
...n
|
|
1452
1574
|
});
|
|
1453
1575
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return /* @__PURE__ */
|
|
1576
|
+
function sn({ className: e, ...t }) {
|
|
1577
|
+
return /* @__PURE__ */ i("div", {
|
|
1456
1578
|
"data-slot": "card-header",
|
|
1457
1579
|
className: j("flex flex-col gap-4", e),
|
|
1458
1580
|
...t
|
|
1459
1581
|
});
|
|
1460
1582
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return /* @__PURE__ */
|
|
1583
|
+
function cn({ className: e, ...t }) {
|
|
1584
|
+
return /* @__PURE__ */ i("div", {
|
|
1463
1585
|
"data-slot": "card-title",
|
|
1464
1586
|
className: j("text-h4", e),
|
|
1465
1587
|
...t
|
|
1466
1588
|
});
|
|
1467
1589
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return /* @__PURE__ */
|
|
1590
|
+
function ln({ className: e, ...t }) {
|
|
1591
|
+
return /* @__PURE__ */ i("div", {
|
|
1470
1592
|
"data-slot": "card-description",
|
|
1471
1593
|
className: j("text-sm text-muted-foreground", e),
|
|
1472
1594
|
...t
|
|
1473
1595
|
});
|
|
1474
1596
|
}
|
|
1475
|
-
function
|
|
1476
|
-
return /* @__PURE__ */
|
|
1597
|
+
function un({ className: e, ...t }) {
|
|
1598
|
+
return /* @__PURE__ */ i("div", {
|
|
1477
1599
|
"data-slot": "card-content",
|
|
1478
1600
|
className: j(e),
|
|
1479
1601
|
...t
|
|
1480
1602
|
});
|
|
1481
1603
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return /* @__PURE__ */
|
|
1604
|
+
function dn({ className: e, ...t }) {
|
|
1605
|
+
return /* @__PURE__ */ i("div", {
|
|
1484
1606
|
"data-slot": "card-footer",
|
|
1485
1607
|
className: j("flex items-center justify-end gap-3", e),
|
|
1486
1608
|
...t
|
|
@@ -1488,61 +1610,61 @@ function an({ className: e, ...t }) {
|
|
|
1488
1610
|
}
|
|
1489
1611
|
//#endregion
|
|
1490
1612
|
//#region src/components/ui/table.tsx
|
|
1491
|
-
function
|
|
1492
|
-
return /* @__PURE__ */
|
|
1613
|
+
function fn({ className: e, ...t }) {
|
|
1614
|
+
return /* @__PURE__ */ i("div", {
|
|
1493
1615
|
"data-slot": "table-wrapper",
|
|
1494
1616
|
className: "relative w-full overflow-auto",
|
|
1495
|
-
children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ i("table", {
|
|
1496
1618
|
"data-slot": "table",
|
|
1497
1619
|
className: j("w-full caption-bottom border-collapse text-sm", e),
|
|
1498
1620
|
...t
|
|
1499
1621
|
})
|
|
1500
1622
|
});
|
|
1501
1623
|
}
|
|
1502
|
-
function
|
|
1503
|
-
return /* @__PURE__ */
|
|
1624
|
+
function pn({ className: e, ...t }) {
|
|
1625
|
+
return /* @__PURE__ */ i("thead", {
|
|
1504
1626
|
"data-slot": "table-header",
|
|
1505
1627
|
className: j("[&_tr]:border-b", e),
|
|
1506
1628
|
...t
|
|
1507
1629
|
});
|
|
1508
1630
|
}
|
|
1509
|
-
function
|
|
1510
|
-
return /* @__PURE__ */
|
|
1631
|
+
function mn({ className: e, ...t }) {
|
|
1632
|
+
return /* @__PURE__ */ i("tbody", {
|
|
1511
1633
|
"data-slot": "table-body",
|
|
1512
1634
|
className: j("[&_tr:last-child]:border-0", e),
|
|
1513
1635
|
...t
|
|
1514
1636
|
});
|
|
1515
1637
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return /* @__PURE__ */
|
|
1638
|
+
function hn({ className: e, ...t }) {
|
|
1639
|
+
return /* @__PURE__ */ i("tfoot", {
|
|
1518
1640
|
"data-slot": "table-footer",
|
|
1519
1641
|
className: j("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1520
1642
|
...t
|
|
1521
1643
|
});
|
|
1522
1644
|
}
|
|
1523
|
-
function
|
|
1524
|
-
return /* @__PURE__ */
|
|
1645
|
+
function gn({ className: e, ...t }) {
|
|
1646
|
+
return /* @__PURE__ */ i("tr", {
|
|
1525
1647
|
"data-slot": "table-row",
|
|
1526
1648
|
className: j("border-b border-border transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", e),
|
|
1527
1649
|
...t
|
|
1528
1650
|
});
|
|
1529
1651
|
}
|
|
1530
|
-
function
|
|
1531
|
-
return /* @__PURE__ */
|
|
1652
|
+
function _n({ className: e, ...t }) {
|
|
1653
|
+
return /* @__PURE__ */ i("th", {
|
|
1532
1654
|
"data-slot": "table-head",
|
|
1533
1655
|
className: j("h-11 bg-muted px-2 text-left align-middle text-sm font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
1534
1656
|
...t
|
|
1535
1657
|
});
|
|
1536
1658
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return /* @__PURE__ */
|
|
1659
|
+
function vn({ className: e, ...t }) {
|
|
1660
|
+
return /* @__PURE__ */ i("td", {
|
|
1539
1661
|
"data-slot": "table-cell",
|
|
1540
1662
|
className: j("h-11 px-2 align-middle text-sm text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
1541
1663
|
...t
|
|
1542
1664
|
});
|
|
1543
1665
|
}
|
|
1544
|
-
function
|
|
1545
|
-
return /* @__PURE__ */
|
|
1666
|
+
function yn({ className: e, ...t }) {
|
|
1667
|
+
return /* @__PURE__ */ i("caption", {
|
|
1546
1668
|
"data-slot": "table-caption",
|
|
1547
1669
|
className: j("mt-4 text-sm text-muted-foreground", e),
|
|
1548
1670
|
...t
|
|
@@ -1550,67 +1672,67 @@ function pn({ className: e, ...t }) {
|
|
|
1550
1672
|
}
|
|
1551
1673
|
//#endregion
|
|
1552
1674
|
//#region src/components/ui/dialog.tsx
|
|
1553
|
-
function
|
|
1554
|
-
return /* @__PURE__ */
|
|
1675
|
+
function bn({ ...e }) {
|
|
1676
|
+
return /* @__PURE__ */ i(A.Root, {
|
|
1555
1677
|
"data-slot": "dialog",
|
|
1556
1678
|
...e
|
|
1557
1679
|
});
|
|
1558
1680
|
}
|
|
1559
|
-
function
|
|
1560
|
-
return /* @__PURE__ */
|
|
1681
|
+
function xn({ className: e, ...t }) {
|
|
1682
|
+
return /* @__PURE__ */ i(A.Trigger, {
|
|
1561
1683
|
"data-slot": "dialog-trigger",
|
|
1562
1684
|
className: e,
|
|
1563
1685
|
...t
|
|
1564
1686
|
});
|
|
1565
1687
|
}
|
|
1566
|
-
function
|
|
1567
|
-
return /* @__PURE__ */
|
|
1688
|
+
function Sn({ className: e, ...t }) {
|
|
1689
|
+
return /* @__PURE__ */ i(A.Close, {
|
|
1568
1690
|
"data-slot": "dialog-close",
|
|
1569
1691
|
className: e,
|
|
1570
1692
|
...t
|
|
1571
1693
|
});
|
|
1572
1694
|
}
|
|
1573
|
-
function
|
|
1574
|
-
return /* @__PURE__ */
|
|
1695
|
+
function Cn({ className: e, children: t, ...n }) {
|
|
1696
|
+
return /* @__PURE__ */ a(A.Portal, { children: [/* @__PURE__ */ i(A.Overlay, {
|
|
1575
1697
|
"data-slot": "dialog-overlay",
|
|
1576
1698
|
className: j("fixed inset-0 z-50 bg-black/80", "data-[state=open]:animate-in data-[state=open]:fade-in-0", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0")
|
|
1577
|
-
}), /* @__PURE__ */
|
|
1699
|
+
}), /* @__PURE__ */ a(A.Content, {
|
|
1578
1700
|
"data-slot": "dialog-content",
|
|
1579
1701
|
className: j("fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-background p-6 shadow-lg duration-200", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]", e),
|
|
1580
1702
|
...n,
|
|
1581
|
-
children: [t, /* @__PURE__ */
|
|
1703
|
+
children: [t, /* @__PURE__ */ a(A.Close, {
|
|
1582
1704
|
"data-slot": "dialog-close-button",
|
|
1583
1705
|
className: "absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
1584
|
-
children: [/* @__PURE__ */
|
|
1706
|
+
children: [/* @__PURE__ */ i(w, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
|
|
1585
1707
|
className: "sr-only",
|
|
1586
1708
|
children: "Close"
|
|
1587
1709
|
})]
|
|
1588
1710
|
})]
|
|
1589
1711
|
})] });
|
|
1590
1712
|
}
|
|
1591
|
-
function
|
|
1592
|
-
return /* @__PURE__ */
|
|
1713
|
+
function wn({ className: e, ...t }) {
|
|
1714
|
+
return /* @__PURE__ */ i("div", {
|
|
1593
1715
|
"data-slot": "dialog-header",
|
|
1594
1716
|
className: j("flex flex-col gap-2 text-center sm:text-left", e),
|
|
1595
1717
|
...t
|
|
1596
1718
|
});
|
|
1597
1719
|
}
|
|
1598
|
-
function
|
|
1599
|
-
return /* @__PURE__ */
|
|
1720
|
+
function Tn({ className: e, ...t }) {
|
|
1721
|
+
return /* @__PURE__ */ i("div", {
|
|
1600
1722
|
"data-slot": "dialog-footer",
|
|
1601
1723
|
className: j("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2", e),
|
|
1602
1724
|
...t
|
|
1603
1725
|
});
|
|
1604
1726
|
}
|
|
1605
|
-
function
|
|
1606
|
-
return /* @__PURE__ */
|
|
1727
|
+
function En({ className: e, ...t }) {
|
|
1728
|
+
return /* @__PURE__ */ i(A.Title, {
|
|
1607
1729
|
"data-slot": "dialog-title",
|
|
1608
1730
|
className: j("text-lg font-semibold leading-none tracking-tight text-foreground", e),
|
|
1609
1731
|
...t
|
|
1610
1732
|
});
|
|
1611
1733
|
}
|
|
1612
|
-
function
|
|
1613
|
-
return /* @__PURE__ */
|
|
1734
|
+
function Dn({ className: e, ...t }) {
|
|
1735
|
+
return /* @__PURE__ */ i(A.Description, {
|
|
1614
1736
|
"data-slot": "dialog-description",
|
|
1615
1737
|
className: j("text-sm text-muted-foreground", e),
|
|
1616
1738
|
...t
|
|
@@ -1618,131 +1740,131 @@ function xn({ className: e, ...t }) {
|
|
|
1618
1740
|
}
|
|
1619
1741
|
//#endregion
|
|
1620
1742
|
//#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
1621
|
-
function
|
|
1622
|
-
let
|
|
1623
|
-
|
|
1743
|
+
function On(e, t = globalThis?.document) {
|
|
1744
|
+
let n = Se(e);
|
|
1745
|
+
o.useEffect(() => {
|
|
1624
1746
|
let e = (e) => {
|
|
1625
|
-
e.key === "Escape" &&
|
|
1747
|
+
e.key === "Escape" && n(e);
|
|
1626
1748
|
};
|
|
1627
1749
|
return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
|
|
1628
|
-
}, [
|
|
1750
|
+
}, [n, t]);
|
|
1629
1751
|
}
|
|
1630
1752
|
//#endregion
|
|
1631
1753
|
//#region node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
1632
|
-
var
|
|
1754
|
+
var kn = "DismissableLayer", An = "dismissableLayer.update", jn = "dismissableLayer.pointerDownOutside", Mn = "dismissableLayer.focusOutside", Nn, Pn = o.createContext({
|
|
1633
1755
|
layers: /* @__PURE__ */ new Set(),
|
|
1634
1756
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
1635
1757
|
branches: /* @__PURE__ */ new Set()
|
|
1636
|
-
}),
|
|
1637
|
-
let { disableOutsidePointerEvents:
|
|
1638
|
-
let t = e.target, n = [...
|
|
1639
|
-
!
|
|
1640
|
-
},
|
|
1758
|
+
}), Fn = o.forwardRef((e, t) => {
|
|
1759
|
+
let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = e, d = o.useContext(Pn), [f, p] = o.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = o.useState({}), g = L(t, (e) => p(e)), _ = Array.from(d.layers), [v] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = _.indexOf(v), b = f ? _.indexOf(f) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, S = b >= y, C = Rn((e) => {
|
|
1760
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
1761
|
+
!S || n || (a?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
1762
|
+
}, m), w = zn((e) => {
|
|
1641
1763
|
let t = e.target;
|
|
1642
|
-
[...
|
|
1643
|
-
},
|
|
1644
|
-
return
|
|
1645
|
-
|
|
1646
|
-
},
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1764
|
+
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
1765
|
+
}, m);
|
|
1766
|
+
return On((e) => {
|
|
1767
|
+
b === d.layers.size - 1 && (r?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
1768
|
+
}, m), o.useEffect(() => {
|
|
1769
|
+
if (f) return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Nn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Bn(), () => {
|
|
1770
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Nn);
|
|
1649
1771
|
};
|
|
1650
1772
|
}, [
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
]),
|
|
1656
|
-
|
|
1657
|
-
}, [
|
|
1658
|
-
let e = () =>
|
|
1659
|
-
return document.addEventListener(
|
|
1660
|
-
}, []), /* @__PURE__ */
|
|
1661
|
-
...
|
|
1662
|
-
ref:
|
|
1773
|
+
f,
|
|
1774
|
+
m,
|
|
1775
|
+
n,
|
|
1776
|
+
d
|
|
1777
|
+
]), o.useEffect(() => () => {
|
|
1778
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), Bn());
|
|
1779
|
+
}, [f, d]), o.useEffect(() => {
|
|
1780
|
+
let e = () => h({});
|
|
1781
|
+
return document.addEventListener(An, e), () => document.removeEventListener(An, e);
|
|
1782
|
+
}, []), /* @__PURE__ */ i(R.div, {
|
|
1783
|
+
...u,
|
|
1784
|
+
ref: g,
|
|
1663
1785
|
style: {
|
|
1664
|
-
pointerEvents:
|
|
1786
|
+
pointerEvents: x ? S ? "auto" : "none" : void 0,
|
|
1665
1787
|
...e.style
|
|
1666
1788
|
},
|
|
1667
1789
|
onFocusCapture: I(e.onFocusCapture, w.onFocusCapture),
|
|
1668
1790
|
onBlurCapture: I(e.onBlurCapture, w.onBlurCapture),
|
|
1669
|
-
onPointerDownCapture: I(e.onPointerDownCapture,
|
|
1791
|
+
onPointerDownCapture: I(e.onPointerDownCapture, C.onPointerDownCapture)
|
|
1670
1792
|
});
|
|
1671
1793
|
});
|
|
1672
|
-
|
|
1673
|
-
var
|
|
1674
|
-
let
|
|
1675
|
-
return
|
|
1676
|
-
let e =
|
|
1677
|
-
if (e) return
|
|
1678
|
-
|
|
1794
|
+
Fn.displayName = kn;
|
|
1795
|
+
var In = "DismissableLayerBranch", Ln = o.forwardRef((e, t) => {
|
|
1796
|
+
let n = o.useContext(Pn), r = o.useRef(null), a = L(t, r);
|
|
1797
|
+
return o.useEffect(() => {
|
|
1798
|
+
let e = r.current;
|
|
1799
|
+
if (e) return n.branches.add(e), () => {
|
|
1800
|
+
n.branches.delete(e);
|
|
1679
1801
|
};
|
|
1680
|
-
}, [
|
|
1802
|
+
}, [n.branches]), /* @__PURE__ */ i(R.div, {
|
|
1681
1803
|
...e,
|
|
1682
1804
|
ref: a
|
|
1683
1805
|
});
|
|
1684
1806
|
});
|
|
1685
|
-
|
|
1686
|
-
function
|
|
1687
|
-
let
|
|
1688
|
-
return
|
|
1807
|
+
Ln.displayName = In;
|
|
1808
|
+
function Rn(e, t = globalThis?.document) {
|
|
1809
|
+
let n = Se(e), r = o.useRef(!1), i = o.useRef(() => {});
|
|
1810
|
+
return o.useEffect(() => {
|
|
1689
1811
|
let e = (e) => {
|
|
1690
|
-
if (e.target && !
|
|
1691
|
-
let
|
|
1692
|
-
|
|
1693
|
-
},
|
|
1694
|
-
e.pointerType === "touch" ? (t.removeEventListener("click",
|
|
1695
|
-
} else t.removeEventListener("click",
|
|
1696
|
-
|
|
1697
|
-
},
|
|
1812
|
+
if (e.target && !r.current) {
|
|
1813
|
+
let r = function() {
|
|
1814
|
+
Vn(jn, n, a, { discrete: !0 });
|
|
1815
|
+
}, a = { originalEvent: e };
|
|
1816
|
+
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
1817
|
+
} else t.removeEventListener("click", i.current);
|
|
1818
|
+
r.current = !1;
|
|
1819
|
+
}, a = window.setTimeout(() => {
|
|
1698
1820
|
t.addEventListener("pointerdown", e);
|
|
1699
1821
|
}, 0);
|
|
1700
1822
|
return () => {
|
|
1701
|
-
window.clearTimeout(
|
|
1823
|
+
window.clearTimeout(a), t.removeEventListener("pointerdown", e), t.removeEventListener("click", i.current);
|
|
1702
1824
|
};
|
|
1703
|
-
}, [t,
|
|
1825
|
+
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
1704
1826
|
}
|
|
1705
|
-
function
|
|
1706
|
-
let
|
|
1707
|
-
return
|
|
1827
|
+
function zn(e, t = globalThis?.document) {
|
|
1828
|
+
let n = Se(e), r = o.useRef(!1);
|
|
1829
|
+
return o.useEffect(() => {
|
|
1708
1830
|
let e = (e) => {
|
|
1709
|
-
e.target && !
|
|
1831
|
+
e.target && !r.current && Vn(Mn, n, { originalEvent: e }, { discrete: !1 });
|
|
1710
1832
|
};
|
|
1711
1833
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
1712
|
-
}, [t,
|
|
1713
|
-
onFocusCapture: () =>
|
|
1714
|
-
onBlurCapture: () =>
|
|
1834
|
+
}, [t, n]), {
|
|
1835
|
+
onFocusCapture: () => r.current = !0,
|
|
1836
|
+
onBlurCapture: () => r.current = !1
|
|
1715
1837
|
};
|
|
1716
1838
|
}
|
|
1717
|
-
function
|
|
1718
|
-
let e = new CustomEvent(
|
|
1839
|
+
function Bn() {
|
|
1840
|
+
let e = new CustomEvent(An);
|
|
1719
1841
|
document.dispatchEvent(e);
|
|
1720
1842
|
}
|
|
1721
|
-
function
|
|
1843
|
+
function Vn(e, t, n, { discrete: r }) {
|
|
1722
1844
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
1723
1845
|
bubbles: !1,
|
|
1724
1846
|
cancelable: !0,
|
|
1725
1847
|
detail: n
|
|
1726
1848
|
});
|
|
1727
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
1849
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? _e(i, a) : i.dispatchEvent(a);
|
|
1728
1850
|
}
|
|
1729
1851
|
//#endregion
|
|
1730
1852
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
1731
|
-
var
|
|
1853
|
+
var Hn = [
|
|
1732
1854
|
"top",
|
|
1733
1855
|
"right",
|
|
1734
1856
|
"bottom",
|
|
1735
1857
|
"left"
|
|
1736
|
-
], B = Math.min, V = Math.max,
|
|
1858
|
+
], B = Math.min, V = Math.max, Un = Math.round, Wn = Math.floor, H = (e) => ({
|
|
1737
1859
|
x: e,
|
|
1738
1860
|
y: e
|
|
1739
|
-
}),
|
|
1861
|
+
}), Gn = {
|
|
1740
1862
|
left: "right",
|
|
1741
1863
|
right: "left",
|
|
1742
1864
|
bottom: "top",
|
|
1743
1865
|
top: "bottom"
|
|
1744
1866
|
};
|
|
1745
|
-
function
|
|
1867
|
+
function Kn(e, t, n) {
|
|
1746
1868
|
return V(e, B(t, n));
|
|
1747
1869
|
}
|
|
1748
1870
|
function U(e, t) {
|
|
@@ -1751,57 +1873,57 @@ function U(e, t) {
|
|
|
1751
1873
|
function W(e) {
|
|
1752
1874
|
return e.split("-")[0];
|
|
1753
1875
|
}
|
|
1754
|
-
function
|
|
1876
|
+
function qn(e) {
|
|
1755
1877
|
return e.split("-")[1];
|
|
1756
1878
|
}
|
|
1757
|
-
function
|
|
1879
|
+
function Jn(e) {
|
|
1758
1880
|
return e === "x" ? "y" : "x";
|
|
1759
1881
|
}
|
|
1760
|
-
function
|
|
1882
|
+
function Yn(e) {
|
|
1761
1883
|
return e === "y" ? "height" : "width";
|
|
1762
1884
|
}
|
|
1763
1885
|
function G(e) {
|
|
1764
1886
|
let t = e[0];
|
|
1765
1887
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1766
1888
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1889
|
+
function Xn(e) {
|
|
1890
|
+
return Jn(G(e));
|
|
1769
1891
|
}
|
|
1770
|
-
function
|
|
1892
|
+
function Zn(e, t, n) {
|
|
1771
1893
|
n === void 0 && (n = !1);
|
|
1772
|
-
let r =
|
|
1773
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
1894
|
+
let r = qn(e), i = Xn(e), a = Yn(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1895
|
+
return t.reference[a] > t.floating[a] && (o = or(o)), [o, or(o)];
|
|
1774
1896
|
}
|
|
1775
|
-
function
|
|
1776
|
-
let t =
|
|
1897
|
+
function Qn(e) {
|
|
1898
|
+
let t = or(e);
|
|
1777
1899
|
return [
|
|
1778
|
-
|
|
1900
|
+
$n(e),
|
|
1779
1901
|
t,
|
|
1780
|
-
|
|
1902
|
+
$n(t)
|
|
1781
1903
|
];
|
|
1782
1904
|
}
|
|
1783
|
-
function
|
|
1905
|
+
function $n(e) {
|
|
1784
1906
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1785
1907
|
}
|
|
1786
|
-
var
|
|
1787
|
-
function
|
|
1908
|
+
var er = ["left", "right"], tr = ["right", "left"], nr = ["top", "bottom"], rr = ["bottom", "top"];
|
|
1909
|
+
function ir(e, t, n) {
|
|
1788
1910
|
switch (e) {
|
|
1789
1911
|
case "top":
|
|
1790
|
-
case "bottom": return n ? t ?
|
|
1912
|
+
case "bottom": return n ? t ? tr : er : t ? er : tr;
|
|
1791
1913
|
case "left":
|
|
1792
|
-
case "right": return t ?
|
|
1914
|
+
case "right": return t ? nr : rr;
|
|
1793
1915
|
default: return [];
|
|
1794
1916
|
}
|
|
1795
1917
|
}
|
|
1796
|
-
function
|
|
1797
|
-
let i =
|
|
1798
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1918
|
+
function ar(e, t, n, r) {
|
|
1919
|
+
let i = qn(e), a = ir(W(e), n === "start", r);
|
|
1920
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map($n)))), a;
|
|
1799
1921
|
}
|
|
1800
|
-
function
|
|
1922
|
+
function or(e) {
|
|
1801
1923
|
let t = W(e);
|
|
1802
|
-
return
|
|
1924
|
+
return Gn[t] + e.slice(t.length);
|
|
1803
1925
|
}
|
|
1804
|
-
function
|
|
1926
|
+
function sr(e) {
|
|
1805
1927
|
return {
|
|
1806
1928
|
top: 0,
|
|
1807
1929
|
right: 0,
|
|
@@ -1810,15 +1932,15 @@ function tr(e) {
|
|
|
1810
1932
|
...e
|
|
1811
1933
|
};
|
|
1812
1934
|
}
|
|
1813
|
-
function
|
|
1935
|
+
function cr(e) {
|
|
1814
1936
|
return typeof e == "number" ? {
|
|
1815
1937
|
top: e,
|
|
1816
1938
|
right: e,
|
|
1817
1939
|
bottom: e,
|
|
1818
1940
|
left: e
|
|
1819
|
-
} :
|
|
1941
|
+
} : sr(e);
|
|
1820
1942
|
}
|
|
1821
|
-
function
|
|
1943
|
+
function lr(e) {
|
|
1822
1944
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1823
1945
|
return {
|
|
1824
1946
|
width: r,
|
|
@@ -1833,8 +1955,8 @@ function rr(e) {
|
|
|
1833
1955
|
}
|
|
1834
1956
|
//#endregion
|
|
1835
1957
|
//#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1836
|
-
function
|
|
1837
|
-
let { reference: r, floating: i } = e, a = G(t), o =
|
|
1958
|
+
function ur(e, t, n) {
|
|
1959
|
+
let { reference: r, floating: i } = e, a = G(t), o = Xn(t), s = Yn(o), c = W(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1838
1960
|
switch (c) {
|
|
1839
1961
|
case "top":
|
|
1840
1962
|
p = {
|
|
@@ -1865,7 +1987,7 @@ function ir(e, t, n) {
|
|
|
1865
1987
|
y: r.y
|
|
1866
1988
|
};
|
|
1867
1989
|
}
|
|
1868
|
-
switch (
|
|
1990
|
+
switch (qn(t)) {
|
|
1869
1991
|
case "start":
|
|
1870
1992
|
p[o] -= f * (n && l ? -1 : 1);
|
|
1871
1993
|
break;
|
|
@@ -1875,9 +1997,9 @@ function ir(e, t, n) {
|
|
|
1875
1997
|
}
|
|
1876
1998
|
return p;
|
|
1877
1999
|
}
|
|
1878
|
-
async function
|
|
2000
|
+
async function dr(e, t) {
|
|
1879
2001
|
t === void 0 && (t = {});
|
|
1880
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = U(t, e), p =
|
|
2002
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = U(t, e), p = cr(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = lr(await i.getClippingRect({
|
|
1881
2003
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1882
2004
|
boundary: c,
|
|
1883
2005
|
rootBoundary: l,
|
|
@@ -1890,7 +2012,7 @@ async function ar(e, t) {
|
|
|
1890
2012
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1891
2013
|
x: 1,
|
|
1892
2014
|
y: 1
|
|
1893
|
-
}, y =
|
|
2015
|
+
}, y = lr(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1894
2016
|
elements: o,
|
|
1895
2017
|
rect: g,
|
|
1896
2018
|
offsetParent: _,
|
|
@@ -1903,15 +2025,15 @@ async function ar(e, t) {
|
|
|
1903
2025
|
right: (y.right - h.right + p.right) / v.x
|
|
1904
2026
|
};
|
|
1905
2027
|
}
|
|
1906
|
-
var
|
|
2028
|
+
var fr = 50, pr = async (e, t, n) => {
|
|
1907
2029
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1908
2030
|
...o,
|
|
1909
|
-
detectOverflow:
|
|
2031
|
+
detectOverflow: dr
|
|
1910
2032
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1911
2033
|
reference: e,
|
|
1912
2034
|
floating: t,
|
|
1913
2035
|
strategy: i
|
|
1914
|
-
}), { x: u, y: d } =
|
|
2036
|
+
}), { x: u, y: d } = ur(l, r, c), f = r, p = 0, m = {};
|
|
1915
2037
|
for (let n = 0; n < a.length; n++) {
|
|
1916
2038
|
let h = a[n];
|
|
1917
2039
|
if (!h) continue;
|
|
@@ -1932,11 +2054,11 @@ var or = 50, sr = async (e, t, n) => {
|
|
|
1932
2054
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
1933
2055
|
...m[g],
|
|
1934
2056
|
...b
|
|
1935
|
-
}, x && p <
|
|
2057
|
+
}, x && p < fr && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1936
2058
|
reference: e,
|
|
1937
2059
|
floating: t,
|
|
1938
2060
|
strategy: i
|
|
1939
|
-
}) : x.rects), {x: u, y: d} =
|
|
2061
|
+
}) : x.rects), {x: u, y: d} = ur(l, f, c)), n = -1);
|
|
1940
2062
|
}
|
|
1941
2063
|
return {
|
|
1942
2064
|
x: u,
|
|
@@ -1945,18 +2067,18 @@ var or = 50, sr = async (e, t, n) => {
|
|
|
1945
2067
|
strategy: i,
|
|
1946
2068
|
middlewareData: m
|
|
1947
2069
|
};
|
|
1948
|
-
},
|
|
2070
|
+
}, mr = (e) => ({
|
|
1949
2071
|
name: "arrow",
|
|
1950
2072
|
options: e,
|
|
1951
2073
|
async fn(t) {
|
|
1952
2074
|
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = U(e, t) || {};
|
|
1953
2075
|
if (l == null) return {};
|
|
1954
|
-
let d =
|
|
2076
|
+
let d = cr(u), f = {
|
|
1955
2077
|
x: n,
|
|
1956
2078
|
y: r
|
|
1957
|
-
}, p =
|
|
2079
|
+
}, p = Xn(i), m = Yn(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1958
2080
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
1959
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), ee = B(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A =
|
|
2081
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = B(d[_], T), ee = B(d[v], T), D = E, O = C - h[m] - ee, k = C / 2 - h[m] / 2 + w, A = Kn(D, k, O), j = !c.arrow && qn(i) != null && k !== A && a.reference[m] / 2 - (k < D ? E : ee) - h[m] / 2 < 0, M = j ? k < D ? k - D : k - O : 0;
|
|
1960
2082
|
return {
|
|
1961
2083
|
[p]: f[p] + M,
|
|
1962
2084
|
data: {
|
|
@@ -1967,7 +2089,7 @@ var or = 50, sr = async (e, t, n) => {
|
|
|
1967
2089
|
reset: j
|
|
1968
2090
|
};
|
|
1969
2091
|
}
|
|
1970
|
-
}),
|
|
2092
|
+
}), hr = function(e) {
|
|
1971
2093
|
return e === void 0 && (e = {}), {
|
|
1972
2094
|
name: "flip",
|
|
1973
2095
|
options: e,
|
|
@@ -1975,11 +2097,11 @@ var or = 50, sr = async (e, t, n) => {
|
|
|
1975
2097
|
var n;
|
|
1976
2098
|
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = U(e, t);
|
|
1977
2099
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1978
|
-
let g = W(r), _ = G(o), v = W(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [
|
|
1979
|
-
!d && x && b.push(
|
|
2100
|
+
let g = W(r), _ = G(o), v = W(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [or(o)] : Qn(o)), x = p !== "none";
|
|
2101
|
+
!d && x && b.push(...ar(o, m, p, y));
|
|
1980
2102
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1981
2103
|
if (l && w.push(C[g]), u) {
|
|
1982
|
-
let e =
|
|
2104
|
+
let e = Zn(r, a, y);
|
|
1983
2105
|
w.push(C[e[0]], C[e[1]]);
|
|
1984
2106
|
}
|
|
1985
2107
|
if (T = [...T, {
|
|
@@ -2017,7 +2139,7 @@ var or = 50, sr = async (e, t, n) => {
|
|
|
2017
2139
|
}
|
|
2018
2140
|
};
|
|
2019
2141
|
};
|
|
2020
|
-
function
|
|
2142
|
+
function gr(e, t) {
|
|
2021
2143
|
return {
|
|
2022
2144
|
top: e.top - t.height,
|
|
2023
2145
|
right: e.right - t.width,
|
|
@@ -2025,10 +2147,10 @@ function ur(e, t) {
|
|
|
2025
2147
|
left: e.left - t.width
|
|
2026
2148
|
};
|
|
2027
2149
|
}
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2150
|
+
function _r(e) {
|
|
2151
|
+
return Hn.some((t) => e[t] >= 0);
|
|
2030
2152
|
}
|
|
2031
|
-
var
|
|
2153
|
+
var vr = function(e) {
|
|
2032
2154
|
return e === void 0 && (e = {}), {
|
|
2033
2155
|
name: "hide",
|
|
2034
2156
|
options: e,
|
|
@@ -2036,32 +2158,32 @@ var fr = function(e) {
|
|
|
2036
2158
|
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = U(e, t);
|
|
2037
2159
|
switch (i) {
|
|
2038
2160
|
case "referenceHidden": {
|
|
2039
|
-
let e =
|
|
2161
|
+
let e = gr(await r.detectOverflow(t, {
|
|
2040
2162
|
...a,
|
|
2041
2163
|
elementContext: "reference"
|
|
2042
2164
|
}), n.reference);
|
|
2043
2165
|
return { data: {
|
|
2044
2166
|
referenceHiddenOffsets: e,
|
|
2045
|
-
referenceHidden:
|
|
2167
|
+
referenceHidden: _r(e)
|
|
2046
2168
|
} };
|
|
2047
2169
|
}
|
|
2048
2170
|
case "escaped": {
|
|
2049
|
-
let e =
|
|
2171
|
+
let e = gr(await r.detectOverflow(t, {
|
|
2050
2172
|
...a,
|
|
2051
2173
|
altBoundary: !0
|
|
2052
2174
|
}), n.floating);
|
|
2053
2175
|
return { data: {
|
|
2054
2176
|
escapedOffsets: e,
|
|
2055
|
-
escaped:
|
|
2177
|
+
escaped: _r(e)
|
|
2056
2178
|
} };
|
|
2057
2179
|
}
|
|
2058
2180
|
default: return {};
|
|
2059
2181
|
}
|
|
2060
2182
|
}
|
|
2061
2183
|
};
|
|
2062
|
-
},
|
|
2063
|
-
async function
|
|
2064
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = W(n), s =
|
|
2184
|
+
}, yr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2185
|
+
async function br(e, t) {
|
|
2186
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = W(n), s = qn(n), c = G(n) === "y", l = yr.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = U(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
2065
2187
|
mainAxis: d,
|
|
2066
2188
|
crossAxis: 0,
|
|
2067
2189
|
alignmentAxis: null
|
|
@@ -2078,13 +2200,13 @@ async function mr(e, t) {
|
|
|
2078
2200
|
y: p * u
|
|
2079
2201
|
};
|
|
2080
2202
|
}
|
|
2081
|
-
var
|
|
2203
|
+
var xr = function(e) {
|
|
2082
2204
|
return e === void 0 && (e = 0), {
|
|
2083
2205
|
name: "offset",
|
|
2084
2206
|
options: e,
|
|
2085
2207
|
async fn(t) {
|
|
2086
2208
|
var n;
|
|
2087
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
2209
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await br(t, e);
|
|
2088
2210
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
2089
2211
|
x: r + s.x,
|
|
2090
2212
|
y: i + s.y,
|
|
@@ -2095,7 +2217,7 @@ var hr = function(e) {
|
|
|
2095
2217
|
};
|
|
2096
2218
|
}
|
|
2097
2219
|
};
|
|
2098
|
-
},
|
|
2220
|
+
}, Sr = function(e) {
|
|
2099
2221
|
return e === void 0 && (e = {}), {
|
|
2100
2222
|
name: "shift",
|
|
2101
2223
|
options: e,
|
|
@@ -2109,14 +2231,14 @@ var hr = function(e) {
|
|
|
2109
2231
|
} }, ...l } = U(e, t), u = {
|
|
2110
2232
|
x: n,
|
|
2111
2233
|
y: r
|
|
2112
|
-
}, d = await a.detectOverflow(t, l), f = G(W(i)), p =
|
|
2234
|
+
}, d = await a.detectOverflow(t, l), f = G(W(i)), p = Jn(f), m = u[p], h = u[f];
|
|
2113
2235
|
if (o) {
|
|
2114
2236
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
2115
|
-
m =
|
|
2237
|
+
m = Kn(n, m, r);
|
|
2116
2238
|
}
|
|
2117
2239
|
if (s) {
|
|
2118
2240
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
2119
|
-
h =
|
|
2241
|
+
h = Kn(n, h, r);
|
|
2120
2242
|
}
|
|
2121
2243
|
let g = c.fn({
|
|
2122
2244
|
...t,
|
|
@@ -2136,14 +2258,14 @@ var hr = function(e) {
|
|
|
2136
2258
|
};
|
|
2137
2259
|
}
|
|
2138
2260
|
};
|
|
2139
|
-
},
|
|
2261
|
+
}, Cr = function(e) {
|
|
2140
2262
|
return e === void 0 && (e = {}), {
|
|
2141
2263
|
options: e,
|
|
2142
2264
|
fn(t) {
|
|
2143
2265
|
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = U(e, t), u = {
|
|
2144
2266
|
x: n,
|
|
2145
2267
|
y: r
|
|
2146
|
-
}, d = G(i), f =
|
|
2268
|
+
}, d = G(i), f = Jn(d), p = u[f], m = u[d], h = U(s, t), g = typeof h == "number" ? {
|
|
2147
2269
|
mainAxis: h,
|
|
2148
2270
|
crossAxis: 0
|
|
2149
2271
|
} : {
|
|
@@ -2156,7 +2278,7 @@ var hr = function(e) {
|
|
|
2156
2278
|
p < t ? p = t : p > n && (p = n);
|
|
2157
2279
|
}
|
|
2158
2280
|
if (l) {
|
|
2159
|
-
let e = f === "y" ? "width" : "height", t =
|
|
2281
|
+
let e = f === "y" ? "width" : "height", t = yr.has(W(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
|
|
2160
2282
|
m < n ? m = n : m > r && (m = r);
|
|
2161
2283
|
}
|
|
2162
2284
|
return {
|
|
@@ -2165,13 +2287,13 @@ var hr = function(e) {
|
|
|
2165
2287
|
};
|
|
2166
2288
|
}
|
|
2167
2289
|
};
|
|
2168
|
-
},
|
|
2290
|
+
}, wr = function(e) {
|
|
2169
2291
|
return e === void 0 && (e = {}), {
|
|
2170
2292
|
name: "size",
|
|
2171
2293
|
options: e,
|
|
2172
2294
|
async fn(t) {
|
|
2173
2295
|
var n, r;
|
|
2174
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = U(e, t), u = await o.detectOverflow(t, l), d = W(i), f =
|
|
2296
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = U(e, t), u = await o.detectOverflow(t, l), d = W(i), f = qn(i), p = G(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
2175
2297
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
2176
2298
|
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = B(h - u[g], v), x = B(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
2177
2299
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
@@ -2190,39 +2312,39 @@ var hr = function(e) {
|
|
|
2190
2312
|
};
|
|
2191
2313
|
//#endregion
|
|
2192
2314
|
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2193
|
-
function
|
|
2315
|
+
function Tr() {
|
|
2194
2316
|
return typeof window < "u";
|
|
2195
2317
|
}
|
|
2196
|
-
function
|
|
2197
|
-
return
|
|
2318
|
+
function Er(e) {
|
|
2319
|
+
return Dr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2198
2320
|
}
|
|
2199
2321
|
function K(e) {
|
|
2200
2322
|
var t;
|
|
2201
2323
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2202
2324
|
}
|
|
2203
2325
|
function q(e) {
|
|
2204
|
-
return ((
|
|
2326
|
+
return ((Dr(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2205
2327
|
}
|
|
2206
|
-
function
|
|
2207
|
-
return
|
|
2328
|
+
function Dr(e) {
|
|
2329
|
+
return Tr() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
2208
2330
|
}
|
|
2209
2331
|
function J(e) {
|
|
2210
|
-
return
|
|
2332
|
+
return Tr() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
2211
2333
|
}
|
|
2212
2334
|
function Y(e) {
|
|
2213
|
-
return
|
|
2335
|
+
return Tr() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
2214
2336
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return !
|
|
2337
|
+
function Or(e) {
|
|
2338
|
+
return !Tr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
2217
2339
|
}
|
|
2218
|
-
function
|
|
2340
|
+
function kr(e) {
|
|
2219
2341
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
|
|
2220
2342
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2221
2343
|
}
|
|
2222
|
-
function
|
|
2223
|
-
return /^(table|td|th)$/.test(
|
|
2344
|
+
function Ar(e) {
|
|
2345
|
+
return /^(table|td|th)$/.test(Er(e));
|
|
2224
2346
|
}
|
|
2225
|
-
function
|
|
2347
|
+
function jr(e) {
|
|
2226
2348
|
try {
|
|
2227
2349
|
if (e.matches(":popover-open")) return !0;
|
|
2228
2350
|
} catch {}
|
|
@@ -2232,30 +2354,30 @@ function Tr(e) {
|
|
|
2232
2354
|
return !1;
|
|
2233
2355
|
}
|
|
2234
2356
|
}
|
|
2235
|
-
var
|
|
2236
|
-
function
|
|
2357
|
+
var Mr = /transform|translate|scale|rotate|perspective|filter/, Nr = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", Pr;
|
|
2358
|
+
function Fr(e) {
|
|
2237
2359
|
let t = J(e) ? Z(e) : e;
|
|
2238
|
-
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !
|
|
2360
|
+
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !Lr() && (X(t.backdropFilter) || X(t.filter)) || Mr.test(t.willChange || "") || Nr.test(t.contain || "");
|
|
2239
2361
|
}
|
|
2240
|
-
function
|
|
2362
|
+
function Ir(e) {
|
|
2241
2363
|
let t = Q(e);
|
|
2242
|
-
for (; Y(t) && !
|
|
2243
|
-
if (
|
|
2244
|
-
if (
|
|
2364
|
+
for (; Y(t) && !Rr(t);) {
|
|
2365
|
+
if (Fr(t)) return t;
|
|
2366
|
+
if (jr(t)) return null;
|
|
2245
2367
|
t = Q(t);
|
|
2246
2368
|
}
|
|
2247
2369
|
return null;
|
|
2248
2370
|
}
|
|
2249
|
-
function
|
|
2250
|
-
return
|
|
2371
|
+
function Lr() {
|
|
2372
|
+
return Pr ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Pr;
|
|
2251
2373
|
}
|
|
2252
|
-
function
|
|
2253
|
-
return /^(html|body|#document)$/.test(
|
|
2374
|
+
function Rr(e) {
|
|
2375
|
+
return /^(html|body|#document)$/.test(Er(e));
|
|
2254
2376
|
}
|
|
2255
2377
|
function Z(e) {
|
|
2256
2378
|
return K(e).getComputedStyle(e);
|
|
2257
2379
|
}
|
|
2258
|
-
function
|
|
2380
|
+
function zr(e) {
|
|
2259
2381
|
return J(e) ? {
|
|
2260
2382
|
scrollLeft: e.scrollLeft,
|
|
2261
2383
|
scrollTop: e.scrollTop
|
|
@@ -2265,100 +2387,100 @@ function Nr(e) {
|
|
|
2265
2387
|
};
|
|
2266
2388
|
}
|
|
2267
2389
|
function Q(e) {
|
|
2268
|
-
if (
|
|
2269
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
2270
|
-
return
|
|
2390
|
+
if (Er(e) === "html") return e;
|
|
2391
|
+
let t = e.assignedSlot || e.parentNode || Or(e) && e.host || q(e);
|
|
2392
|
+
return Or(t) ? t.host : t;
|
|
2271
2393
|
}
|
|
2272
|
-
function
|
|
2394
|
+
function Br(e) {
|
|
2273
2395
|
let t = Q(e);
|
|
2274
|
-
return
|
|
2396
|
+
return Rr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && kr(t) ? t : Br(t);
|
|
2275
2397
|
}
|
|
2276
|
-
function
|
|
2398
|
+
function Vr(e, t, n) {
|
|
2277
2399
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2278
|
-
let r =
|
|
2400
|
+
let r = Br(e), i = r === e.ownerDocument?.body, a = K(r);
|
|
2279
2401
|
if (i) {
|
|
2280
|
-
let e =
|
|
2281
|
-
return t.concat(a, a.visualViewport || [],
|
|
2282
|
-
} else return t.concat(r,
|
|
2402
|
+
let e = Hr(a);
|
|
2403
|
+
return t.concat(a, a.visualViewport || [], kr(r) ? r : [], e && n ? Vr(e) : []);
|
|
2404
|
+
} else return t.concat(r, Vr(r, [], n));
|
|
2283
2405
|
}
|
|
2284
|
-
function
|
|
2406
|
+
function Hr(e) {
|
|
2285
2407
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2286
2408
|
}
|
|
2287
2409
|
//#endregion
|
|
2288
2410
|
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
2289
|
-
function
|
|
2290
|
-
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
2411
|
+
function Ur(e) {
|
|
2412
|
+
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Un(n) !== a || Un(r) !== o;
|
|
2291
2413
|
return s && (n = a, r = o), {
|
|
2292
2414
|
width: n,
|
|
2293
2415
|
height: r,
|
|
2294
2416
|
$: s
|
|
2295
2417
|
};
|
|
2296
2418
|
}
|
|
2297
|
-
function
|
|
2419
|
+
function Wr(e) {
|
|
2298
2420
|
return J(e) ? e : e.contextElement;
|
|
2299
2421
|
}
|
|
2300
|
-
function
|
|
2301
|
-
let t =
|
|
2422
|
+
function Gr(e) {
|
|
2423
|
+
let t = Wr(e);
|
|
2302
2424
|
if (!Y(t)) return H(1);
|
|
2303
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
2425
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ur(t), o = (a ? Un(n.width) : n.width) / r, s = (a ? Un(n.height) : n.height) / i;
|
|
2304
2426
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2305
2427
|
x: o,
|
|
2306
2428
|
y: s
|
|
2307
2429
|
};
|
|
2308
2430
|
}
|
|
2309
|
-
var
|
|
2310
|
-
function
|
|
2431
|
+
var Kr = /* @__PURE__ */ H(0);
|
|
2432
|
+
function qr(e) {
|
|
2311
2433
|
let t = K(e);
|
|
2312
|
-
return !
|
|
2434
|
+
return !Lr() || !t.visualViewport ? Kr : {
|
|
2313
2435
|
x: t.visualViewport.offsetLeft,
|
|
2314
2436
|
y: t.visualViewport.offsetTop
|
|
2315
2437
|
};
|
|
2316
2438
|
}
|
|
2317
|
-
function
|
|
2439
|
+
function Jr(e, t, n) {
|
|
2318
2440
|
return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
|
|
2319
2441
|
}
|
|
2320
2442
|
function $(e, t, n, r) {
|
|
2321
2443
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2322
|
-
let i = e.getBoundingClientRect(), a =
|
|
2323
|
-
t && (r ? J(r) && (o =
|
|
2324
|
-
let s =
|
|
2444
|
+
let i = e.getBoundingClientRect(), a = Wr(e), o = H(1);
|
|
2445
|
+
t && (r ? J(r) && (o = Gr(r)) : o = Gr(e));
|
|
2446
|
+
let s = Jr(a, n, r) ? qr(a) : H(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
2325
2447
|
if (a) {
|
|
2326
|
-
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i =
|
|
2448
|
+
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = Hr(n);
|
|
2327
2449
|
for (; i && r && t !== n;) {
|
|
2328
|
-
let e =
|
|
2329
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i =
|
|
2450
|
+
let e = Gr(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
2451
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = Hr(n);
|
|
2330
2452
|
}
|
|
2331
2453
|
}
|
|
2332
|
-
return
|
|
2454
|
+
return lr({
|
|
2333
2455
|
width: u,
|
|
2334
2456
|
height: d,
|
|
2335
2457
|
x: c,
|
|
2336
2458
|
y: l
|
|
2337
2459
|
});
|
|
2338
2460
|
}
|
|
2339
|
-
function
|
|
2340
|
-
let n =
|
|
2461
|
+
function Yr(e, t) {
|
|
2462
|
+
let n = zr(e).scrollLeft;
|
|
2341
2463
|
return t ? t.left + n : $(q(e)).left + n;
|
|
2342
2464
|
}
|
|
2343
|
-
function
|
|
2465
|
+
function Xr(e, t) {
|
|
2344
2466
|
let n = e.getBoundingClientRect();
|
|
2345
2467
|
return {
|
|
2346
|
-
x: n.left + t.scrollLeft -
|
|
2468
|
+
x: n.left + t.scrollLeft - Yr(e, n),
|
|
2347
2469
|
y: n.top + t.scrollTop
|
|
2348
2470
|
};
|
|
2349
2471
|
}
|
|
2350
|
-
function
|
|
2351
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ?
|
|
2472
|
+
function Zr(e) {
|
|
2473
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? jr(t.floating) : !1;
|
|
2352
2474
|
if (r === o || s && a) return n;
|
|
2353
2475
|
let c = {
|
|
2354
2476
|
scrollLeft: 0,
|
|
2355
2477
|
scrollTop: 0
|
|
2356
2478
|
}, l = H(1), u = H(0), d = Y(r);
|
|
2357
|
-
if ((d || !d && !a) && ((
|
|
2479
|
+
if ((d || !d && !a) && ((Er(r) !== "body" || kr(o)) && (c = zr(r)), d)) {
|
|
2358
2480
|
let e = $(r);
|
|
2359
|
-
l =
|
|
2481
|
+
l = Gr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
2360
2482
|
}
|
|
2361
|
-
let f = o && !d && !a ?
|
|
2483
|
+
let f = o && !d && !a ? Xr(o, c) : H(0);
|
|
2362
2484
|
return {
|
|
2363
2485
|
width: n.width * l.x,
|
|
2364
2486
|
height: n.height * l.y,
|
|
@@ -2366,11 +2488,11 @@ function Gr(e) {
|
|
|
2366
2488
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
2367
2489
|
};
|
|
2368
2490
|
}
|
|
2369
|
-
function
|
|
2491
|
+
function Qr(e) {
|
|
2370
2492
|
return Array.from(e.getClientRects());
|
|
2371
2493
|
}
|
|
2372
|
-
function
|
|
2373
|
-
let t = q(e), n =
|
|
2494
|
+
function $r(e) {
|
|
2495
|
+
let t = q(e), n = zr(e), r = e.ownerDocument.body, i = V(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = V(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Yr(e), s = -n.scrollTop;
|
|
2374
2496
|
return Z(r).direction === "rtl" && (o += V(t.clientWidth, r.clientWidth) - i), {
|
|
2375
2497
|
width: i,
|
|
2376
2498
|
height: a,
|
|
@@ -2378,19 +2500,19 @@ function qr(e) {
|
|
|
2378
2500
|
y: s
|
|
2379
2501
|
};
|
|
2380
2502
|
}
|
|
2381
|
-
var
|
|
2382
|
-
function
|
|
2503
|
+
var ei = 25;
|
|
2504
|
+
function ti(e, t) {
|
|
2383
2505
|
let n = K(e), r = q(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
2384
2506
|
if (i) {
|
|
2385
2507
|
a = i.width, o = i.height;
|
|
2386
|
-
let e =
|
|
2508
|
+
let e = Lr();
|
|
2387
2509
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
2388
2510
|
}
|
|
2389
|
-
let l =
|
|
2511
|
+
let l = Yr(r);
|
|
2390
2512
|
if (l <= 0) {
|
|
2391
2513
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
2392
|
-
o <=
|
|
2393
|
-
} else l <=
|
|
2514
|
+
o <= ei && (a -= o);
|
|
2515
|
+
} else l <= ei && (a += l);
|
|
2394
2516
|
return {
|
|
2395
2517
|
width: a,
|
|
2396
2518
|
height: o,
|
|
@@ -2398,8 +2520,8 @@ function Yr(e, t) {
|
|
|
2398
2520
|
y: c
|
|
2399
2521
|
};
|
|
2400
2522
|
}
|
|
2401
|
-
function
|
|
2402
|
-
let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ?
|
|
2523
|
+
function ni(e, t) {
|
|
2524
|
+
let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? Gr(e) : H(1);
|
|
2403
2525
|
return {
|
|
2404
2526
|
width: e.clientWidth * a.x,
|
|
2405
2527
|
height: e.clientHeight * a.y,
|
|
@@ -2407,13 +2529,13 @@ function Xr(e, t) {
|
|
|
2407
2529
|
y: r * a.y
|
|
2408
2530
|
};
|
|
2409
2531
|
}
|
|
2410
|
-
function
|
|
2532
|
+
function ri(e, t, n) {
|
|
2411
2533
|
let r;
|
|
2412
|
-
if (t === "viewport") r =
|
|
2413
|
-
else if (t === "document") r =
|
|
2414
|
-
else if (J(t)) r =
|
|
2534
|
+
if (t === "viewport") r = ti(e, n);
|
|
2535
|
+
else if (t === "document") r = $r(q(e));
|
|
2536
|
+
else if (J(t)) r = ni(t, n);
|
|
2415
2537
|
else {
|
|
2416
|
-
let n =
|
|
2538
|
+
let n = qr(e);
|
|
2417
2539
|
r = {
|
|
2418
2540
|
x: t.x - n.x,
|
|
2419
2541
|
y: t.y - n.y,
|
|
@@ -2421,26 +2543,26 @@ function Zr(e, t, n) {
|
|
|
2421
2543
|
height: t.height
|
|
2422
2544
|
};
|
|
2423
2545
|
}
|
|
2424
|
-
return
|
|
2546
|
+
return lr(r);
|
|
2425
2547
|
}
|
|
2426
|
-
function
|
|
2548
|
+
function ii(e, t) {
|
|
2427
2549
|
let n = Q(e);
|
|
2428
|
-
return n === t || !J(n) ||
|
|
2550
|
+
return n === t || !J(n) || Rr(n) ? !1 : Z(n).position === "fixed" || ii(n, t);
|
|
2429
2551
|
}
|
|
2430
|
-
function
|
|
2552
|
+
function ai(e, t) {
|
|
2431
2553
|
let n = t.get(e);
|
|
2432
2554
|
if (n) return n;
|
|
2433
|
-
let r =
|
|
2434
|
-
for (; J(o) && !
|
|
2435
|
-
let t = Z(o), n =
|
|
2436
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
2555
|
+
let r = Vr(e, [], !1).filter((e) => J(e) && Er(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
|
|
2556
|
+
for (; J(o) && !Rr(o);) {
|
|
2557
|
+
let t = Z(o), n = Fr(o);
|
|
2558
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || kr(o) && !n && ii(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
|
|
2437
2559
|
}
|
|
2438
2560
|
return t.set(e, r), r;
|
|
2439
2561
|
}
|
|
2440
|
-
function
|
|
2441
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
2562
|
+
function oi(e) {
|
|
2563
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? jr(t) ? [] : ai(t, this._c) : [].concat(n), r], o = ri(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
2442
2564
|
for (let e = 1; e < a.length; e++) {
|
|
2443
|
-
let n =
|
|
2565
|
+
let n = ri(t, a[e], i);
|
|
2444
2566
|
s = V(n.top, s), c = B(n.right, c), l = B(n.bottom, l), u = V(n.left, u);
|
|
2445
2567
|
}
|
|
2446
2568
|
return {
|
|
@@ -2450,27 +2572,27 @@ function ei(e) {
|
|
|
2450
2572
|
y: s
|
|
2451
2573
|
};
|
|
2452
2574
|
}
|
|
2453
|
-
function
|
|
2454
|
-
let { width: t, height: n } =
|
|
2575
|
+
function si(e) {
|
|
2576
|
+
let { width: t, height: n } = Ur(e);
|
|
2455
2577
|
return {
|
|
2456
2578
|
width: t,
|
|
2457
2579
|
height: n
|
|
2458
2580
|
};
|
|
2459
2581
|
}
|
|
2460
|
-
function
|
|
2582
|
+
function ci(e, t, n) {
|
|
2461
2583
|
let r = Y(t), i = q(t), a = n === "fixed", o = $(e, !0, a, t), s = {
|
|
2462
2584
|
scrollLeft: 0,
|
|
2463
2585
|
scrollTop: 0
|
|
2464
2586
|
}, c = H(0);
|
|
2465
2587
|
function l() {
|
|
2466
|
-
c.x =
|
|
2588
|
+
c.x = Yr(i);
|
|
2467
2589
|
}
|
|
2468
|
-
if (r || !r && !a) if ((
|
|
2590
|
+
if (r || !r && !a) if ((Er(t) !== "body" || kr(i)) && (s = zr(t)), r) {
|
|
2469
2591
|
let e = $(t, !0, a, t);
|
|
2470
2592
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
2471
2593
|
} else i && l();
|
|
2472
2594
|
a && !r && i && l();
|
|
2473
|
-
let u = i && !r && !a ?
|
|
2595
|
+
let u = i && !r && !a ? Xr(i, s) : H(0);
|
|
2474
2596
|
return {
|
|
2475
2597
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
2476
2598
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -2478,34 +2600,34 @@ function ni(e, t, n) {
|
|
|
2478
2600
|
height: o.height
|
|
2479
2601
|
};
|
|
2480
2602
|
}
|
|
2481
|
-
function
|
|
2603
|
+
function li(e) {
|
|
2482
2604
|
return Z(e).position === "static";
|
|
2483
2605
|
}
|
|
2484
|
-
function
|
|
2606
|
+
function ui(e, t) {
|
|
2485
2607
|
if (!Y(e) || Z(e).position === "fixed") return null;
|
|
2486
2608
|
if (t) return t(e);
|
|
2487
2609
|
let n = e.offsetParent;
|
|
2488
2610
|
return q(e) === n && (n = n.ownerDocument.body), n;
|
|
2489
2611
|
}
|
|
2490
|
-
function
|
|
2612
|
+
function di(e, t) {
|
|
2491
2613
|
let n = K(e);
|
|
2492
|
-
if (
|
|
2614
|
+
if (jr(e)) return n;
|
|
2493
2615
|
if (!Y(e)) {
|
|
2494
2616
|
let t = Q(e);
|
|
2495
|
-
for (; t && !
|
|
2496
|
-
if (J(t) && !
|
|
2617
|
+
for (; t && !Rr(t);) {
|
|
2618
|
+
if (J(t) && !li(t)) return t;
|
|
2497
2619
|
t = Q(t);
|
|
2498
2620
|
}
|
|
2499
2621
|
return n;
|
|
2500
2622
|
}
|
|
2501
|
-
let r =
|
|
2502
|
-
for (; r &&
|
|
2503
|
-
return r &&
|
|
2623
|
+
let r = ui(e, t);
|
|
2624
|
+
for (; r && Ar(r) && li(r);) r = ui(r, t);
|
|
2625
|
+
return r && Rr(r) && li(r) && !Fr(r) ? n : r || Ir(e) || n;
|
|
2504
2626
|
}
|
|
2505
|
-
var
|
|
2506
|
-
let t = this.getOffsetParent ||
|
|
2627
|
+
var fi = async function(e) {
|
|
2628
|
+
let t = this.getOffsetParent || di, n = this.getDimensions, r = await n(e.floating);
|
|
2507
2629
|
return {
|
|
2508
|
-
reference:
|
|
2630
|
+
reference: ci(e.reference, await t(e.floating), e.strategy),
|
|
2509
2631
|
floating: {
|
|
2510
2632
|
x: 0,
|
|
2511
2633
|
y: 0,
|
|
@@ -2514,25 +2636,25 @@ var oi = async function(e) {
|
|
|
2514
2636
|
}
|
|
2515
2637
|
};
|
|
2516
2638
|
};
|
|
2517
|
-
function
|
|
2639
|
+
function pi(e) {
|
|
2518
2640
|
return Z(e).direction === "rtl";
|
|
2519
2641
|
}
|
|
2520
|
-
var
|
|
2521
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2642
|
+
var mi = {
|
|
2643
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Zr,
|
|
2522
2644
|
getDocumentElement: q,
|
|
2523
|
-
getClippingRect:
|
|
2524
|
-
getOffsetParent:
|
|
2525
|
-
getElementRects:
|
|
2526
|
-
getClientRects:
|
|
2527
|
-
getDimensions:
|
|
2528
|
-
getScale:
|
|
2645
|
+
getClippingRect: oi,
|
|
2646
|
+
getOffsetParent: di,
|
|
2647
|
+
getElementRects: fi,
|
|
2648
|
+
getClientRects: Qr,
|
|
2649
|
+
getDimensions: si,
|
|
2650
|
+
getScale: Gr,
|
|
2529
2651
|
isElement: J,
|
|
2530
|
-
isRTL:
|
|
2652
|
+
isRTL: pi
|
|
2531
2653
|
};
|
|
2532
|
-
function
|
|
2654
|
+
function hi(e, t) {
|
|
2533
2655
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2534
2656
|
}
|
|
2535
|
-
function
|
|
2657
|
+
function gi(e, t) {
|
|
2536
2658
|
let n = null, r, i = q(e);
|
|
2537
2659
|
function a() {
|
|
2538
2660
|
var e;
|
|
@@ -2542,7 +2664,7 @@ function ui(e, t) {
|
|
|
2542
2664
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
2543
2665
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
2544
2666
|
if (s || t(), !f || !p) return;
|
|
2545
|
-
let m =
|
|
2667
|
+
let m = Wn(d), h = Wn(i.clientWidth - (u + f)), g = Wn(i.clientHeight - (d + p)), _ = Wn(u), v = {
|
|
2546
2668
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
2547
2669
|
threshold: V(0, B(1, c)) || 1
|
|
2548
2670
|
}, y = !0;
|
|
@@ -2554,7 +2676,7 @@ function ui(e, t) {
|
|
|
2554
2676
|
o(!1, 1e-7);
|
|
2555
2677
|
}, 1e3);
|
|
2556
2678
|
}
|
|
2557
|
-
n === 1 && !
|
|
2679
|
+
n === 1 && !hi(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
2558
2680
|
}
|
|
2559
2681
|
try {
|
|
2560
2682
|
n = new IntersectionObserver(b, {
|
|
@@ -2568,13 +2690,13 @@ function ui(e, t) {
|
|
|
2568
2690
|
}
|
|
2569
2691
|
return o(!0), a;
|
|
2570
2692
|
}
|
|
2571
|
-
function
|
|
2693
|
+
function _i(e, t, n, r) {
|
|
2572
2694
|
r === void 0 && (r = {});
|
|
2573
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
2695
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Wr(e), u = i || a ? [...l ? Vr(l) : [], ...t ? Vr(t) : []] : [];
|
|
2574
2696
|
u.forEach((e) => {
|
|
2575
2697
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
2576
2698
|
});
|
|
2577
|
-
let d = l && s ?
|
|
2699
|
+
let d = l && s ? gi(l, n) : null, f = -1, p = null;
|
|
2578
2700
|
o && (p = new ResizeObserver((e) => {
|
|
2579
2701
|
let [r] = e;
|
|
2580
2702
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -2586,7 +2708,7 @@ function di(e, t, n, r) {
|
|
|
2586
2708
|
c && g();
|
|
2587
2709
|
function g() {
|
|
2588
2710
|
let t = $(e);
|
|
2589
|
-
h && !
|
|
2711
|
+
h && !hi(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
2590
2712
|
}
|
|
2591
2713
|
return n(), () => {
|
|
2592
2714
|
var e;
|
|
@@ -2595,20 +2717,20 @@ function di(e, t, n, r) {
|
|
|
2595
2717
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
2596
2718
|
};
|
|
2597
2719
|
}
|
|
2598
|
-
var
|
|
2720
|
+
var vi = xr, yi = Sr, bi = hr, xi = wr, Si = vr, Ci = mr, wi = Cr, Ti = (e, t, n) => {
|
|
2599
2721
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
2600
|
-
platform:
|
|
2722
|
+
platform: mi,
|
|
2601
2723
|
...n
|
|
2602
2724
|
}, a = {
|
|
2603
2725
|
...i.platform,
|
|
2604
2726
|
_c: r
|
|
2605
2727
|
};
|
|
2606
|
-
return
|
|
2728
|
+
return pr(e, t, {
|
|
2607
2729
|
...i,
|
|
2608
2730
|
platform: a
|
|
2609
2731
|
});
|
|
2610
|
-
},
|
|
2611
|
-
function
|
|
2732
|
+
}, Ei = typeof document < "u" ? l : function() {};
|
|
2733
|
+
function Di(e, t) {
|
|
2612
2734
|
if (e === t) return !0;
|
|
2613
2735
|
if (typeof e != typeof t) return !1;
|
|
2614
2736
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -2616,80 +2738,80 @@ function xi(e, t) {
|
|
|
2616
2738
|
if (e && t && typeof e == "object") {
|
|
2617
2739
|
if (Array.isArray(e)) {
|
|
2618
2740
|
if (n = e.length, n !== t.length) return !1;
|
|
2619
|
-
for (r = n; r-- !== 0;) if (!
|
|
2741
|
+
for (r = n; r-- !== 0;) if (!Di(e[r], t[r])) return !1;
|
|
2620
2742
|
return !0;
|
|
2621
2743
|
}
|
|
2622
2744
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
2623
2745
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
2624
2746
|
for (r = n; r-- !== 0;) {
|
|
2625
2747
|
let n = i[r];
|
|
2626
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
2748
|
+
if (!(n === "_owner" && e.$$typeof) && !Di(e[n], t[n])) return !1;
|
|
2627
2749
|
}
|
|
2628
2750
|
return !0;
|
|
2629
2751
|
}
|
|
2630
2752
|
return e !== e && t !== t;
|
|
2631
2753
|
}
|
|
2632
|
-
function
|
|
2754
|
+
function Oi(e) {
|
|
2633
2755
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2634
2756
|
}
|
|
2635
|
-
function
|
|
2636
|
-
let n =
|
|
2757
|
+
function ki(e, t) {
|
|
2758
|
+
let n = Oi(e);
|
|
2637
2759
|
return Math.round(t * n) / n;
|
|
2638
2760
|
}
|
|
2639
|
-
function
|
|
2640
|
-
let t =
|
|
2641
|
-
return
|
|
2761
|
+
function Ai(e) {
|
|
2762
|
+
let t = o.useRef(e);
|
|
2763
|
+
return Ei(() => {
|
|
2642
2764
|
t.current = e;
|
|
2643
2765
|
}), t;
|
|
2644
2766
|
}
|
|
2645
|
-
function
|
|
2767
|
+
function ji(e) {
|
|
2646
2768
|
e === void 0 && (e = {});
|
|
2647
|
-
let { placement: t = "bottom", strategy:
|
|
2769
|
+
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = e, [d, f] = o.useState({
|
|
2648
2770
|
x: 0,
|
|
2649
2771
|
y: 0,
|
|
2650
|
-
strategy:
|
|
2772
|
+
strategy: n,
|
|
2651
2773
|
placement: t,
|
|
2652
2774
|
middlewareData: {},
|
|
2653
2775
|
isPositioned: !1
|
|
2654
|
-
}), [p, m] =
|
|
2655
|
-
|
|
2656
|
-
let [h, g] =
|
|
2776
|
+
}), [p, m] = o.useState(r);
|
|
2777
|
+
Di(p, r) || m(r);
|
|
2778
|
+
let [h, g] = o.useState(null), [_, v] = o.useState(null), y = o.useCallback((e) => {
|
|
2657
2779
|
e !== C.current && (C.current = e, g(e));
|
|
2658
|
-
}, []), b =
|
|
2780
|
+
}, []), b = o.useCallback((e) => {
|
|
2659
2781
|
e !== w.current && (w.current = e, v(e));
|
|
2660
|
-
}, []), x =
|
|
2782
|
+
}, []), x = a || h, S = s || _, C = o.useRef(null), w = o.useRef(null), T = o.useRef(d), E = l != null, D = Ai(l), O = Ai(i), k = Ai(u), A = o.useCallback(() => {
|
|
2661
2783
|
if (!C.current || !w.current) return;
|
|
2662
2784
|
let e = {
|
|
2663
2785
|
placement: t,
|
|
2664
|
-
strategy:
|
|
2786
|
+
strategy: n,
|
|
2665
2787
|
middleware: p
|
|
2666
2788
|
};
|
|
2667
|
-
O.current && (e.platform = O.current),
|
|
2789
|
+
O.current && (e.platform = O.current), Ti(C.current, w.current, e).then((e) => {
|
|
2668
2790
|
let t = {
|
|
2669
2791
|
...e,
|
|
2670
2792
|
isPositioned: k.current !== !1
|
|
2671
2793
|
};
|
|
2672
|
-
j.current && !
|
|
2794
|
+
j.current && !Di(T.current, t) && (T.current = t, ee.flushSync(() => {
|
|
2673
2795
|
f(t);
|
|
2674
2796
|
}));
|
|
2675
2797
|
});
|
|
2676
2798
|
}, [
|
|
2677
2799
|
p,
|
|
2678
2800
|
t,
|
|
2679
|
-
|
|
2801
|
+
n,
|
|
2680
2802
|
O,
|
|
2681
2803
|
k
|
|
2682
2804
|
]);
|
|
2683
|
-
|
|
2805
|
+
Ei(() => {
|
|
2684
2806
|
u === !1 && T.current.isPositioned && (T.current.isPositioned = !1, f((e) => ({
|
|
2685
2807
|
...e,
|
|
2686
2808
|
isPositioned: !1
|
|
2687
2809
|
})));
|
|
2688
2810
|
}, [u]);
|
|
2689
|
-
let j =
|
|
2690
|
-
|
|
2811
|
+
let j = o.useRef(!1);
|
|
2812
|
+
Ei(() => (j.current = !0, () => {
|
|
2691
2813
|
j.current = !1;
|
|
2692
|
-
}), []),
|
|
2814
|
+
}), []), Ei(() => {
|
|
2693
2815
|
if (x && (C.current = x), S && (w.current = S), x && S) {
|
|
2694
2816
|
if (D.current) return D.current(x, S, A);
|
|
2695
2817
|
A();
|
|
@@ -2701,39 +2823,39 @@ function Ti(e) {
|
|
|
2701
2823
|
D,
|
|
2702
2824
|
E
|
|
2703
2825
|
]);
|
|
2704
|
-
let M =
|
|
2826
|
+
let M = o.useMemo(() => ({
|
|
2705
2827
|
reference: C,
|
|
2706
2828
|
floating: w,
|
|
2707
2829
|
setReference: y,
|
|
2708
2830
|
setFloating: b
|
|
2709
|
-
}), [y, b]), N =
|
|
2831
|
+
}), [y, b]), N = o.useMemo(() => ({
|
|
2710
2832
|
reference: x,
|
|
2711
2833
|
floating: S
|
|
2712
|
-
}), [x, S]), P =
|
|
2834
|
+
}), [x, S]), P = o.useMemo(() => {
|
|
2713
2835
|
let e = {
|
|
2714
|
-
position:
|
|
2836
|
+
position: n,
|
|
2715
2837
|
left: 0,
|
|
2716
2838
|
top: 0
|
|
2717
2839
|
};
|
|
2718
2840
|
if (!N.floating) return e;
|
|
2719
|
-
let t =
|
|
2841
|
+
let t = ki(N.floating, d.x), r = ki(N.floating, d.y);
|
|
2720
2842
|
return c ? {
|
|
2721
2843
|
...e,
|
|
2722
|
-
transform: "translate(" + t + "px, " +
|
|
2723
|
-
...
|
|
2844
|
+
transform: "translate(" + t + "px, " + r + "px)",
|
|
2845
|
+
...Oi(N.floating) >= 1.5 && { willChange: "transform" }
|
|
2724
2846
|
} : {
|
|
2725
|
-
position:
|
|
2847
|
+
position: n,
|
|
2726
2848
|
left: t,
|
|
2727
|
-
top:
|
|
2849
|
+
top: r
|
|
2728
2850
|
};
|
|
2729
2851
|
}, [
|
|
2730
|
-
|
|
2852
|
+
n,
|
|
2731
2853
|
c,
|
|
2732
2854
|
N.floating,
|
|
2733
2855
|
d.x,
|
|
2734
2856
|
d.y
|
|
2735
2857
|
]);
|
|
2736
|
-
return
|
|
2858
|
+
return o.useMemo(() => ({
|
|
2737
2859
|
...d,
|
|
2738
2860
|
update: A,
|
|
2739
2861
|
refs: M,
|
|
@@ -2747,7 +2869,7 @@ function Ti(e) {
|
|
|
2747
2869
|
P
|
|
2748
2870
|
]);
|
|
2749
2871
|
}
|
|
2750
|
-
var
|
|
2872
|
+
var Mi = (e) => {
|
|
2751
2873
|
function t(e) {
|
|
2752
2874
|
return {}.hasOwnProperty.call(e, "current");
|
|
2753
2875
|
}
|
|
@@ -2756,157 +2878,157 @@ var Ei = (e) => {
|
|
|
2756
2878
|
options: e,
|
|
2757
2879
|
fn(n) {
|
|
2758
2880
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
2759
|
-
return r && t(r) ? r.current == null ? {} :
|
|
2881
|
+
return r && t(r) ? r.current == null ? {} : Ci({
|
|
2760
2882
|
element: r.current,
|
|
2761
2883
|
padding: i
|
|
2762
|
-
}).fn(n) : r ?
|
|
2884
|
+
}).fn(n) : r ? Ci({
|
|
2763
2885
|
element: r,
|
|
2764
2886
|
padding: i
|
|
2765
2887
|
}).fn(n) : {};
|
|
2766
2888
|
}
|
|
2767
2889
|
};
|
|
2768
|
-
},
|
|
2769
|
-
let n =
|
|
2890
|
+
}, Ni = (e, t) => {
|
|
2891
|
+
let n = vi(e);
|
|
2770
2892
|
return {
|
|
2771
2893
|
name: n.name,
|
|
2772
2894
|
fn: n.fn,
|
|
2773
2895
|
options: [e, t]
|
|
2774
2896
|
};
|
|
2775
|
-
},
|
|
2776
|
-
let n =
|
|
2897
|
+
}, Pi = (e, t) => {
|
|
2898
|
+
let n = yi(e);
|
|
2777
2899
|
return {
|
|
2778
2900
|
name: n.name,
|
|
2779
2901
|
fn: n.fn,
|
|
2780
2902
|
options: [e, t]
|
|
2781
2903
|
};
|
|
2782
|
-
},
|
|
2783
|
-
fn:
|
|
2904
|
+
}, Fi = (e, t) => ({
|
|
2905
|
+
fn: wi(e).fn,
|
|
2784
2906
|
options: [e, t]
|
|
2785
|
-
}),
|
|
2786
|
-
let n =
|
|
2907
|
+
}), Ii = (e, t) => {
|
|
2908
|
+
let n = bi(e);
|
|
2787
2909
|
return {
|
|
2788
2910
|
name: n.name,
|
|
2789
2911
|
fn: n.fn,
|
|
2790
2912
|
options: [e, t]
|
|
2791
2913
|
};
|
|
2792
|
-
},
|
|
2793
|
-
let n =
|
|
2914
|
+
}, Li = (e, t) => {
|
|
2915
|
+
let n = xi(e);
|
|
2794
2916
|
return {
|
|
2795
2917
|
name: n.name,
|
|
2796
2918
|
fn: n.fn,
|
|
2797
2919
|
options: [e, t]
|
|
2798
2920
|
};
|
|
2799
|
-
},
|
|
2800
|
-
let n =
|
|
2921
|
+
}, Ri = (e, t) => {
|
|
2922
|
+
let n = Si(e);
|
|
2801
2923
|
return {
|
|
2802
2924
|
name: n.name,
|
|
2803
2925
|
fn: n.fn,
|
|
2804
2926
|
options: [e, t]
|
|
2805
2927
|
};
|
|
2806
|
-
},
|
|
2807
|
-
let n =
|
|
2928
|
+
}, zi = (e, t) => {
|
|
2929
|
+
let n = Mi(e);
|
|
2808
2930
|
return {
|
|
2809
2931
|
name: n.name,
|
|
2810
2932
|
fn: n.fn,
|
|
2811
2933
|
options: [e, t]
|
|
2812
2934
|
};
|
|
2813
|
-
},
|
|
2814
|
-
let { children: n, width: r = 10, height:
|
|
2815
|
-
return /* @__PURE__ */
|
|
2816
|
-
...
|
|
2935
|
+
}, Bi = "Arrow", Vi = o.forwardRef((e, t) => {
|
|
2936
|
+
let { children: n, width: r = 10, height: a = 5, ...o } = e;
|
|
2937
|
+
return /* @__PURE__ */ i(R.svg, {
|
|
2938
|
+
...o,
|
|
2817
2939
|
ref: t,
|
|
2818
2940
|
width: r,
|
|
2819
|
-
height:
|
|
2941
|
+
height: a,
|
|
2820
2942
|
viewBox: "0 0 30 10",
|
|
2821
2943
|
preserveAspectRatio: "none",
|
|
2822
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
2944
|
+
children: e.asChild ? n : /* @__PURE__ */ i("polygon", { points: "0,0 30,0 15,10" })
|
|
2823
2945
|
});
|
|
2824
2946
|
});
|
|
2825
|
-
|
|
2826
|
-
var
|
|
2827
|
-
let { __scopePopper: t, children:
|
|
2828
|
-
return /* @__PURE__ */
|
|
2947
|
+
Vi.displayName = Bi;
|
|
2948
|
+
var Hi = Vi, Ui = "Popper", [Wi, Gi] = he(Ui), [Ki, qi] = Wi(Ui), Ji = (e) => {
|
|
2949
|
+
let { __scopePopper: t, children: n } = e, [r, a] = o.useState(null);
|
|
2950
|
+
return /* @__PURE__ */ i(Ki, {
|
|
2829
2951
|
scope: t,
|
|
2830
|
-
anchor:
|
|
2952
|
+
anchor: r,
|
|
2831
2953
|
onAnchorChange: a,
|
|
2832
|
-
children:
|
|
2954
|
+
children: n
|
|
2833
2955
|
});
|
|
2834
2956
|
};
|
|
2835
|
-
|
|
2836
|
-
var
|
|
2837
|
-
let { __scopePopper:
|
|
2838
|
-
return
|
|
2839
|
-
let e =
|
|
2840
|
-
|
|
2841
|
-
}),
|
|
2957
|
+
Ji.displayName = Ui;
|
|
2958
|
+
var Yi = "PopperAnchor", Xi = o.forwardRef((e, t) => {
|
|
2959
|
+
let { __scopePopper: n, virtualRef: r, ...a } = e, s = qi(Yi, n), c = o.useRef(null), l = L(t, c), u = o.useRef(null);
|
|
2960
|
+
return o.useEffect(() => {
|
|
2961
|
+
let e = u.current;
|
|
2962
|
+
u.current = r?.current || c.current, e !== u.current && s.onAnchorChange(u.current);
|
|
2963
|
+
}), r ? null : /* @__PURE__ */ i(R.div, {
|
|
2842
2964
|
...a,
|
|
2843
|
-
ref:
|
|
2965
|
+
ref: l
|
|
2844
2966
|
});
|
|
2845
2967
|
});
|
|
2846
|
-
|
|
2847
|
-
var
|
|
2848
|
-
let { __scopePopper:
|
|
2968
|
+
Xi.displayName = Yi;
|
|
2969
|
+
var Zi = "PopperContent", [Qi, $i] = Wi(Zi), ea = o.forwardRef((e, t) => {
|
|
2970
|
+
let { __scopePopper: n, side: r = "bottom", sideOffset: a = 0, align: s = "center", alignOffset: c = 0, arrowPadding: l = 0, avoidCollisions: u = !0, collisionBoundary: d = [], collisionPadding: f = 0, sticky: p = "partial", hideWhenDetached: m = !1, updatePositionStrategy: h = "optimized", onPlaced: g, ..._ } = e, v = qi(Zi, n), [y, b] = o.useState(null), x = L(t, (e) => b(e)), [S, C] = o.useState(null), w = Xe(S), T = w?.width ?? 0, E = w?.height ?? 0, ee = r + (s === "center" ? "" : "-" + s), D = typeof f == "number" ? f : {
|
|
2849
2971
|
top: 0,
|
|
2850
2972
|
right: 0,
|
|
2851
2973
|
bottom: 0,
|
|
2852
2974
|
left: 0,
|
|
2853
|
-
...
|
|
2854
|
-
}, O = Array.isArray(
|
|
2975
|
+
...f
|
|
2976
|
+
}, O = Array.isArray(d) ? d : [d], k = O.length > 0, A = {
|
|
2855
2977
|
padding: D,
|
|
2856
|
-
boundary: O.filter(
|
|
2978
|
+
boundary: O.filter(ia),
|
|
2857
2979
|
altBoundary: k
|
|
2858
|
-
}, { refs: j, floatingStyles: M, placement: N, isPositioned: P, middlewareData: F } =
|
|
2980
|
+
}, { refs: j, floatingStyles: M, placement: N, isPositioned: P, middlewareData: F } = ji({
|
|
2859
2981
|
strategy: "fixed",
|
|
2860
2982
|
placement: ee,
|
|
2861
|
-
whileElementsMounted: (...e) =>
|
|
2862
|
-
elements: { reference:
|
|
2983
|
+
whileElementsMounted: (...e) => _i(...e, { animationFrame: h === "always" }),
|
|
2984
|
+
elements: { reference: v.anchor },
|
|
2863
2985
|
middleware: [
|
|
2864
|
-
|
|
2986
|
+
Ni({
|
|
2865
2987
|
mainAxis: a + E,
|
|
2866
|
-
alignmentAxis:
|
|
2988
|
+
alignmentAxis: c
|
|
2867
2989
|
}),
|
|
2868
|
-
|
|
2990
|
+
u && Pi({
|
|
2869
2991
|
mainAxis: !0,
|
|
2870
2992
|
crossAxis: !1,
|
|
2871
|
-
limiter:
|
|
2993
|
+
limiter: p === "partial" ? Fi() : void 0,
|
|
2872
2994
|
...A
|
|
2873
2995
|
}),
|
|
2874
|
-
|
|
2875
|
-
|
|
2996
|
+
u && Ii({ ...A }),
|
|
2997
|
+
Li({
|
|
2876
2998
|
...A,
|
|
2877
2999
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2878
3000
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2879
3001
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
2880
3002
|
}
|
|
2881
3003
|
}),
|
|
2882
|
-
|
|
2883
|
-
element:
|
|
2884
|
-
padding:
|
|
3004
|
+
S && zi({
|
|
3005
|
+
element: S,
|
|
3006
|
+
padding: l
|
|
2885
3007
|
}),
|
|
2886
|
-
|
|
3008
|
+
aa({
|
|
2887
3009
|
arrowWidth: T,
|
|
2888
3010
|
arrowHeight: E
|
|
2889
3011
|
}),
|
|
2890
|
-
|
|
3012
|
+
m && Ri({
|
|
2891
3013
|
strategy: "referenceHidden",
|
|
2892
3014
|
...A
|
|
2893
3015
|
})
|
|
2894
3016
|
]
|
|
2895
|
-
}), [te, ne] =
|
|
3017
|
+
}), [te, ne] = oa(N), re = Se(g);
|
|
2896
3018
|
z(() => {
|
|
2897
3019
|
P && re?.();
|
|
2898
3020
|
}, [P, re]);
|
|
2899
|
-
let ie = F.arrow?.x, ae = F.arrow?.y, oe = F.arrow?.centerOffset !== 0, [
|
|
3021
|
+
let ie = F.arrow?.x, ae = F.arrow?.y, oe = F.arrow?.centerOffset !== 0, [se, ce] = o.useState();
|
|
2900
3022
|
return z(() => {
|
|
2901
|
-
|
|
2902
|
-
}, [
|
|
3023
|
+
y && ce(window.getComputedStyle(y).zIndex);
|
|
3024
|
+
}, [y]), /* @__PURE__ */ i("div", {
|
|
2903
3025
|
ref: j.setFloating,
|
|
2904
3026
|
"data-radix-popper-content-wrapper": "",
|
|
2905
3027
|
style: {
|
|
2906
3028
|
...M,
|
|
2907
3029
|
transform: P ? M.transform : "translate(0, -200%)",
|
|
2908
3030
|
minWidth: "max-content",
|
|
2909
|
-
zIndex:
|
|
3031
|
+
zIndex: se,
|
|
2910
3032
|
"--radix-popper-transform-origin": [F.transformOrigin?.x, F.transformOrigin?.y].join(" "),
|
|
2911
3033
|
...F.hide?.referenceHidden && {
|
|
2912
3034
|
visibility: "hidden",
|
|
@@ -2914,56 +3036,56 @@ var Gi = "PopperContent", [Ki, qi] = Ri(Gi), Ji = n.forwardRef((e, t) => {
|
|
|
2914
3036
|
}
|
|
2915
3037
|
},
|
|
2916
3038
|
dir: e.dir,
|
|
2917
|
-
children: /* @__PURE__ */
|
|
2918
|
-
scope:
|
|
3039
|
+
children: /* @__PURE__ */ i(Qi, {
|
|
3040
|
+
scope: n,
|
|
2919
3041
|
placedSide: te,
|
|
2920
|
-
onArrowChange:
|
|
3042
|
+
onArrowChange: C,
|
|
2921
3043
|
arrowX: ie,
|
|
2922
3044
|
arrowY: ae,
|
|
2923
3045
|
shouldHideArrow: oe,
|
|
2924
|
-
children: /* @__PURE__ */
|
|
3046
|
+
children: /* @__PURE__ */ i(R.div, {
|
|
2925
3047
|
"data-side": te,
|
|
2926
3048
|
"data-align": ne,
|
|
2927
|
-
...
|
|
2928
|
-
ref:
|
|
3049
|
+
..._,
|
|
3050
|
+
ref: x,
|
|
2929
3051
|
style: {
|
|
2930
|
-
...
|
|
3052
|
+
..._.style,
|
|
2931
3053
|
animation: P ? void 0 : "none"
|
|
2932
3054
|
}
|
|
2933
3055
|
})
|
|
2934
3056
|
})
|
|
2935
3057
|
});
|
|
2936
3058
|
});
|
|
2937
|
-
|
|
2938
|
-
var
|
|
3059
|
+
ea.displayName = Zi;
|
|
3060
|
+
var ta = "PopperArrow", na = {
|
|
2939
3061
|
top: "bottom",
|
|
2940
3062
|
right: "left",
|
|
2941
3063
|
bottom: "top",
|
|
2942
3064
|
left: "right"
|
|
2943
|
-
},
|
|
2944
|
-
let { __scopePopper: n, ...r } = e,
|
|
2945
|
-
return /* @__PURE__ */
|
|
2946
|
-
ref:
|
|
3065
|
+
}, ra = o.forwardRef(function(e, t) {
|
|
3066
|
+
let { __scopePopper: n, ...r } = e, a = $i(ta, n), o = na[a.placedSide];
|
|
3067
|
+
return /* @__PURE__ */ i("span", {
|
|
3068
|
+
ref: a.onArrowChange,
|
|
2947
3069
|
style: {
|
|
2948
3070
|
position: "absolute",
|
|
2949
|
-
left:
|
|
2950
|
-
top:
|
|
2951
|
-
[
|
|
3071
|
+
left: a.arrowX,
|
|
3072
|
+
top: a.arrowY,
|
|
3073
|
+
[o]: 0,
|
|
2952
3074
|
transformOrigin: {
|
|
2953
3075
|
top: "",
|
|
2954
3076
|
right: "0 0",
|
|
2955
3077
|
bottom: "center 0",
|
|
2956
3078
|
left: "100% 0"
|
|
2957
|
-
}[
|
|
3079
|
+
}[a.placedSide],
|
|
2958
3080
|
transform: {
|
|
2959
3081
|
top: "translateY(100%)",
|
|
2960
3082
|
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
2961
3083
|
bottom: "rotate(180deg)",
|
|
2962
3084
|
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
2963
|
-
}[
|
|
2964
|
-
visibility:
|
|
3085
|
+
}[a.placedSide],
|
|
3086
|
+
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
2965
3087
|
},
|
|
2966
|
-
children: /* @__PURE__ */
|
|
3088
|
+
children: /* @__PURE__ */ i(Hi, {
|
|
2967
3089
|
...r,
|
|
2968
3090
|
ref: t,
|
|
2969
3091
|
style: {
|
|
@@ -2973,15 +3095,15 @@ var Yi = "PopperArrow", Xi = {
|
|
|
2973
3095
|
})
|
|
2974
3096
|
});
|
|
2975
3097
|
});
|
|
2976
|
-
|
|
2977
|
-
function
|
|
3098
|
+
ra.displayName = ta;
|
|
3099
|
+
function ia(e) {
|
|
2978
3100
|
return e !== null;
|
|
2979
3101
|
}
|
|
2980
|
-
var
|
|
3102
|
+
var aa = (e) => ({
|
|
2981
3103
|
name: "transformOrigin",
|
|
2982
3104
|
options: e,
|
|
2983
3105
|
fn(t) {
|
|
2984
|
-
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] =
|
|
3106
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = oa(n), u = {
|
|
2985
3107
|
start: "0%",
|
|
2986
3108
|
center: "50%",
|
|
2987
3109
|
end: "100%"
|
|
@@ -2992,23 +3114,23 @@ var $i = (e) => ({
|
|
|
2992
3114
|
} };
|
|
2993
3115
|
}
|
|
2994
3116
|
});
|
|
2995
|
-
function
|
|
3117
|
+
function oa(e) {
|
|
2996
3118
|
let [t, n = "center"] = e.split("-");
|
|
2997
3119
|
return [t, n];
|
|
2998
3120
|
}
|
|
2999
|
-
var
|
|
3000
|
-
let { container:
|
|
3001
|
-
z(() =>
|
|
3002
|
-
let
|
|
3003
|
-
return
|
|
3004
|
-
...
|
|
3121
|
+
var sa = Ji, ca = Xi, la = ea, ua = ra, da = "Portal", fa = o.forwardRef((e, t) => {
|
|
3122
|
+
let { container: n, ...r } = e, [a, s] = o.useState(!1);
|
|
3123
|
+
z(() => s(!0), []);
|
|
3124
|
+
let c = n || a && globalThis?.document?.body;
|
|
3125
|
+
return c ? D.createPortal(/* @__PURE__ */ i(R.div, {
|
|
3126
|
+
...r,
|
|
3005
3127
|
ref: t
|
|
3006
|
-
}),
|
|
3128
|
+
}), c) : null;
|
|
3007
3129
|
});
|
|
3008
|
-
|
|
3130
|
+
fa.displayName = da;
|
|
3009
3131
|
//#endregion
|
|
3010
3132
|
//#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
3011
|
-
var
|
|
3133
|
+
var pa = Object.freeze({
|
|
3012
3134
|
position: "absolute",
|
|
3013
3135
|
border: 0,
|
|
3014
3136
|
width: 1,
|
|
@@ -3019,238 +3141,238 @@ var sa = Object.freeze({
|
|
|
3019
3141
|
clip: "rect(0, 0, 0, 0)",
|
|
3020
3142
|
whiteSpace: "nowrap",
|
|
3021
3143
|
wordWrap: "normal"
|
|
3022
|
-
}),
|
|
3144
|
+
}), ma = "VisuallyHidden", ha = o.forwardRef((e, t) => /* @__PURE__ */ i(R.span, {
|
|
3023
3145
|
...e,
|
|
3024
3146
|
ref: t,
|
|
3025
3147
|
style: {
|
|
3026
|
-
...
|
|
3148
|
+
...pa,
|
|
3027
3149
|
...e.style
|
|
3028
3150
|
}
|
|
3029
3151
|
}));
|
|
3030
|
-
|
|
3031
|
-
var
|
|
3032
|
-
let { __scopeTooltip: t, delayDuration:
|
|
3033
|
-
return
|
|
3034
|
-
let e =
|
|
3152
|
+
ha.displayName = ma;
|
|
3153
|
+
var ga = ha, [_a, va] = he("Tooltip", [Gi]), ya = Gi(), ba = "TooltipProvider", xa = 700, Sa = "tooltip.open", [Ca, wa] = _a(ba), Ta = (e) => {
|
|
3154
|
+
let { __scopeTooltip: t, delayDuration: n = xa, skipDelayDuration: r = 300, disableHoverableContent: a = !1, children: s } = e, c = o.useRef(!0), l = o.useRef(!1), u = o.useRef(0);
|
|
3155
|
+
return o.useEffect(() => {
|
|
3156
|
+
let e = u.current;
|
|
3035
3157
|
return () => window.clearTimeout(e);
|
|
3036
|
-
}, []), /* @__PURE__ */
|
|
3158
|
+
}, []), /* @__PURE__ */ i(Ca, {
|
|
3037
3159
|
scope: t,
|
|
3038
|
-
isOpenDelayedRef:
|
|
3039
|
-
delayDuration:
|
|
3040
|
-
onOpen:
|
|
3041
|
-
window.clearTimeout(
|
|
3160
|
+
isOpenDelayedRef: c,
|
|
3161
|
+
delayDuration: n,
|
|
3162
|
+
onOpen: o.useCallback(() => {
|
|
3163
|
+
window.clearTimeout(u.current), c.current = !1;
|
|
3042
3164
|
}, []),
|
|
3043
|
-
onClose:
|
|
3044
|
-
window.clearTimeout(
|
|
3045
|
-
}, [
|
|
3046
|
-
isPointerInTransitRef:
|
|
3047
|
-
onPointerInTransitChange:
|
|
3048
|
-
|
|
3165
|
+
onClose: o.useCallback(() => {
|
|
3166
|
+
window.clearTimeout(u.current), u.current = window.setTimeout(() => c.current = !0, r);
|
|
3167
|
+
}, [r]),
|
|
3168
|
+
isPointerInTransitRef: l,
|
|
3169
|
+
onPointerInTransitChange: o.useCallback((e) => {
|
|
3170
|
+
l.current = e;
|
|
3049
3171
|
}, []),
|
|
3050
3172
|
disableHoverableContent: a,
|
|
3051
|
-
children:
|
|
3173
|
+
children: s
|
|
3052
3174
|
});
|
|
3053
3175
|
};
|
|
3054
|
-
|
|
3055
|
-
var
|
|
3056
|
-
let { __scopeTooltip: t, children:
|
|
3057
|
-
prop:
|
|
3176
|
+
Ta.displayName = ba;
|
|
3177
|
+
var Ea = "Tooltip", [Da, Oa] = _a(Ea), ka = (e) => {
|
|
3178
|
+
let { __scopeTooltip: t, children: n, open: r, defaultOpen: a, onOpenChange: s, disableHoverableContent: c, delayDuration: l } = e, u = wa(Ea, e.__scopeTooltip), d = ya(t), [f, p] = o.useState(null), m = xe(), h = o.useRef(0), g = c ?? u.disableHoverableContent, _ = l ?? u.delayDuration, v = o.useRef(!1), [y, b] = we({
|
|
3179
|
+
prop: r,
|
|
3058
3180
|
defaultProp: a ?? !1,
|
|
3059
3181
|
onChange: (e) => {
|
|
3060
|
-
e ? (
|
|
3182
|
+
e ? (u.onOpen(), document.dispatchEvent(new CustomEvent(Sa))) : u.onClose(), s?.(e);
|
|
3061
3183
|
},
|
|
3062
|
-
caller:
|
|
3063
|
-
}),
|
|
3064
|
-
window.clearTimeout(
|
|
3065
|
-
}, [
|
|
3066
|
-
window.clearTimeout(
|
|
3067
|
-
}, [
|
|
3068
|
-
window.clearTimeout(
|
|
3069
|
-
|
|
3070
|
-
},
|
|
3071
|
-
}, [
|
|
3072
|
-
return
|
|
3073
|
-
|
|
3074
|
-
}, []), /* @__PURE__ */
|
|
3075
|
-
...
|
|
3076
|
-
children: /* @__PURE__ */
|
|
3184
|
+
caller: Ea
|
|
3185
|
+
}), x = o.useMemo(() => y ? v.current ? "delayed-open" : "instant-open" : "closed", [y]), S = o.useCallback(() => {
|
|
3186
|
+
window.clearTimeout(h.current), h.current = 0, v.current = !1, b(!0);
|
|
3187
|
+
}, [b]), C = o.useCallback(() => {
|
|
3188
|
+
window.clearTimeout(h.current), h.current = 0, b(!1);
|
|
3189
|
+
}, [b]), w = o.useCallback(() => {
|
|
3190
|
+
window.clearTimeout(h.current), h.current = window.setTimeout(() => {
|
|
3191
|
+
v.current = !0, b(!0), h.current = 0;
|
|
3192
|
+
}, _);
|
|
3193
|
+
}, [_, b]);
|
|
3194
|
+
return o.useEffect(() => () => {
|
|
3195
|
+
h.current &&= (window.clearTimeout(h.current), 0);
|
|
3196
|
+
}, []), /* @__PURE__ */ i(sa, {
|
|
3197
|
+
...d,
|
|
3198
|
+
children: /* @__PURE__ */ i(Da, {
|
|
3077
3199
|
scope: t,
|
|
3078
|
-
contentId:
|
|
3079
|
-
open:
|
|
3080
|
-
stateAttribute:
|
|
3081
|
-
trigger:
|
|
3082
|
-
onTriggerChange:
|
|
3083
|
-
onTriggerEnter:
|
|
3084
|
-
|
|
3200
|
+
contentId: m,
|
|
3201
|
+
open: y,
|
|
3202
|
+
stateAttribute: x,
|
|
3203
|
+
trigger: f,
|
|
3204
|
+
onTriggerChange: p,
|
|
3205
|
+
onTriggerEnter: o.useCallback(() => {
|
|
3206
|
+
u.isOpenDelayedRef.current ? w() : S();
|
|
3085
3207
|
}, [
|
|
3086
|
-
|
|
3208
|
+
u.isOpenDelayedRef,
|
|
3087
3209
|
w,
|
|
3088
|
-
|
|
3210
|
+
S
|
|
3089
3211
|
]),
|
|
3090
|
-
onTriggerLeave:
|
|
3091
|
-
|
|
3092
|
-
}, [
|
|
3093
|
-
onOpen:
|
|
3094
|
-
onClose:
|
|
3095
|
-
disableHoverableContent:
|
|
3096
|
-
children:
|
|
3212
|
+
onTriggerLeave: o.useCallback(() => {
|
|
3213
|
+
g ? C() : (window.clearTimeout(h.current), h.current = 0);
|
|
3214
|
+
}, [C, g]),
|
|
3215
|
+
onOpen: S,
|
|
3216
|
+
onClose: C,
|
|
3217
|
+
disableHoverableContent: g,
|
|
3218
|
+
children: n
|
|
3097
3219
|
})
|
|
3098
3220
|
});
|
|
3099
3221
|
};
|
|
3100
|
-
|
|
3101
|
-
var
|
|
3102
|
-
let { __scopeTooltip:
|
|
3103
|
-
return
|
|
3222
|
+
ka.displayName = Ea;
|
|
3223
|
+
var Aa = "TooltipTrigger", ja = o.forwardRef((e, t) => {
|
|
3224
|
+
let { __scopeTooltip: n, ...r } = e, a = Oa(Aa, n), s = wa(Aa, n), c = ya(n), l = L(t, o.useRef(null), a.onTriggerChange), u = o.useRef(!1), d = o.useRef(!1), f = o.useCallback(() => u.current = !1, []);
|
|
3225
|
+
return o.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ i(ca, {
|
|
3104
3226
|
asChild: !0,
|
|
3105
|
-
...
|
|
3106
|
-
children: /* @__PURE__ */
|
|
3227
|
+
...c,
|
|
3228
|
+
children: /* @__PURE__ */ i(R.button, {
|
|
3107
3229
|
"aria-describedby": a.open ? a.contentId : void 0,
|
|
3108
3230
|
"data-state": a.stateAttribute,
|
|
3109
|
-
...
|
|
3110
|
-
ref:
|
|
3231
|
+
...r,
|
|
3232
|
+
ref: l,
|
|
3111
3233
|
onPointerMove: I(e.onPointerMove, (e) => {
|
|
3112
|
-
e.pointerType !== "touch" && !
|
|
3234
|
+
e.pointerType !== "touch" && !d.current && !s.isPointerInTransitRef.current && (a.onTriggerEnter(), d.current = !0);
|
|
3113
3235
|
}),
|
|
3114
3236
|
onPointerLeave: I(e.onPointerLeave, () => {
|
|
3115
|
-
a.onTriggerLeave(),
|
|
3237
|
+
a.onTriggerLeave(), d.current = !1;
|
|
3116
3238
|
}),
|
|
3117
3239
|
onPointerDown: I(e.onPointerDown, () => {
|
|
3118
|
-
a.open && a.onClose(),
|
|
3240
|
+
a.open && a.onClose(), u.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
3119
3241
|
}),
|
|
3120
3242
|
onFocus: I(e.onFocus, () => {
|
|
3121
|
-
|
|
3243
|
+
u.current || a.onOpen();
|
|
3122
3244
|
}),
|
|
3123
3245
|
onBlur: I(e.onBlur, a.onClose),
|
|
3124
3246
|
onClick: I(e.onClick, a.onClose)
|
|
3125
3247
|
})
|
|
3126
3248
|
});
|
|
3127
3249
|
});
|
|
3128
|
-
|
|
3129
|
-
var
|
|
3130
|
-
let { __scopeTooltip: t, forceMount: n, children: r, container:
|
|
3131
|
-
return /* @__PURE__ */
|
|
3250
|
+
ja.displayName = Aa;
|
|
3251
|
+
var Ma = "TooltipPortal", [Na, Pa] = _a(Ma, { forceMount: void 0 }), Fa = (e) => {
|
|
3252
|
+
let { __scopeTooltip: t, forceMount: n, children: r, container: a } = e, o = Oa(Ma, t);
|
|
3253
|
+
return /* @__PURE__ */ i(Na, {
|
|
3132
3254
|
scope: t,
|
|
3133
3255
|
forceMount: n,
|
|
3134
|
-
children: /* @__PURE__ */
|
|
3135
|
-
present: n ||
|
|
3136
|
-
children: /* @__PURE__ */
|
|
3256
|
+
children: /* @__PURE__ */ i($e, {
|
|
3257
|
+
present: n || o.open,
|
|
3258
|
+
children: /* @__PURE__ */ i(fa, {
|
|
3137
3259
|
asChild: !0,
|
|
3138
|
-
container:
|
|
3260
|
+
container: a,
|
|
3139
3261
|
children: r
|
|
3140
3262
|
})
|
|
3141
3263
|
})
|
|
3142
3264
|
});
|
|
3143
3265
|
};
|
|
3144
|
-
|
|
3145
|
-
var
|
|
3146
|
-
let n =
|
|
3147
|
-
return /* @__PURE__ */
|
|
3148
|
-
present: r ||
|
|
3149
|
-
children:
|
|
3150
|
-
side:
|
|
3151
|
-
...
|
|
3266
|
+
Fa.displayName = Ma;
|
|
3267
|
+
var Ia = "TooltipContent", La = o.forwardRef((e, t) => {
|
|
3268
|
+
let n = Pa(Ia, e.__scopeTooltip), { forceMount: r = n.forceMount, side: a = "top", ...o } = e, s = Oa(Ia, e.__scopeTooltip);
|
|
3269
|
+
return /* @__PURE__ */ i($e, {
|
|
3270
|
+
present: r || s.open,
|
|
3271
|
+
children: s.disableHoverableContent ? /* @__PURE__ */ i(Ha, {
|
|
3272
|
+
side: a,
|
|
3273
|
+
...o,
|
|
3152
3274
|
ref: t
|
|
3153
|
-
}) : /* @__PURE__ */
|
|
3154
|
-
side:
|
|
3155
|
-
...
|
|
3275
|
+
}) : /* @__PURE__ */ i(Ra, {
|
|
3276
|
+
side: a,
|
|
3277
|
+
...o,
|
|
3156
3278
|
ref: t
|
|
3157
3279
|
})
|
|
3158
3280
|
});
|
|
3159
|
-
}),
|
|
3160
|
-
let
|
|
3161
|
-
|
|
3162
|
-
}, [
|
|
3281
|
+
}), Ra = o.forwardRef((e, t) => {
|
|
3282
|
+
let n = Oa(Ia, e.__scopeTooltip), r = wa(Ia, e.__scopeTooltip), a = o.useRef(null), s = L(t, a), [c, l] = o.useState(null), { trigger: u, onClose: d } = n, f = a.current, { onPointerInTransitChange: p } = r, m = o.useCallback(() => {
|
|
3283
|
+
l(null), p(!1);
|
|
3284
|
+
}, [p]), h = o.useCallback((e, t) => {
|
|
3163
3285
|
let n = e.currentTarget, r = {
|
|
3164
3286
|
x: e.clientX,
|
|
3165
3287
|
y: e.clientY
|
|
3166
|
-
}, i =
|
|
3167
|
-
|
|
3168
|
-
}, [
|
|
3169
|
-
return
|
|
3170
|
-
if (
|
|
3171
|
-
let e = (e) =>
|
|
3172
|
-
return
|
|
3173
|
-
|
|
3288
|
+
}, i = Ka(r, Ga(r, n.getBoundingClientRect())), a = qa(t.getBoundingClientRect());
|
|
3289
|
+
l(Ya([...i, ...a])), p(!0);
|
|
3290
|
+
}, [p]);
|
|
3291
|
+
return o.useEffect(() => () => m(), [m]), o.useEffect(() => {
|
|
3292
|
+
if (u && f) {
|
|
3293
|
+
let e = (e) => h(e, f), t = (e) => h(e, u);
|
|
3294
|
+
return u.addEventListener("pointerleave", e), f.addEventListener("pointerleave", t), () => {
|
|
3295
|
+
u.removeEventListener("pointerleave", e), f.removeEventListener("pointerleave", t);
|
|
3174
3296
|
};
|
|
3175
3297
|
}
|
|
3176
3298
|
}, [
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
]),
|
|
3182
|
-
if (
|
|
3299
|
+
u,
|
|
3300
|
+
f,
|
|
3301
|
+
h,
|
|
3302
|
+
m
|
|
3303
|
+
]), o.useEffect(() => {
|
|
3304
|
+
if (c) {
|
|
3183
3305
|
let e = (e) => {
|
|
3184
3306
|
let t = e.target, n = {
|
|
3185
3307
|
x: e.clientX,
|
|
3186
3308
|
y: e.clientY
|
|
3187
|
-
}, r =
|
|
3188
|
-
r ?
|
|
3309
|
+
}, r = u?.contains(t) || f?.contains(t), i = !Ja(n, c);
|
|
3310
|
+
r ? m() : i && (m(), d());
|
|
3189
3311
|
};
|
|
3190
3312
|
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
3191
3313
|
}
|
|
3192
3314
|
}, [
|
|
3193
|
-
l,
|
|
3194
|
-
d,
|
|
3195
|
-
s,
|
|
3196
3315
|
u,
|
|
3197
|
-
|
|
3198
|
-
|
|
3316
|
+
f,
|
|
3317
|
+
c,
|
|
3318
|
+
d,
|
|
3319
|
+
m
|
|
3320
|
+
]), /* @__PURE__ */ i(Ha, {
|
|
3199
3321
|
...e,
|
|
3200
|
-
ref:
|
|
3322
|
+
ref: s
|
|
3201
3323
|
});
|
|
3202
|
-
}), [
|
|
3203
|
-
let { __scopeTooltip:
|
|
3204
|
-
return
|
|
3205
|
-
if (
|
|
3324
|
+
}), [za, Ba] = _a(Ea, { isInside: !1 }), Va = f("TooltipContent"), Ha = o.forwardRef((e, t) => {
|
|
3325
|
+
let { __scopeTooltip: n, children: r, "aria-label": s, onEscapeKeyDown: c, onPointerDownOutside: l, ...u } = e, d = Oa(Ia, n), f = ya(n), { onClose: p } = d;
|
|
3326
|
+
return o.useEffect(() => (document.addEventListener(Sa, p), () => document.removeEventListener(Sa, p)), [p]), o.useEffect(() => {
|
|
3327
|
+
if (d.trigger) {
|
|
3206
3328
|
let e = (e) => {
|
|
3207
|
-
e.target?.contains(
|
|
3329
|
+
e.target?.contains(d.trigger) && p();
|
|
3208
3330
|
};
|
|
3209
3331
|
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
3210
3332
|
}
|
|
3211
|
-
}, [
|
|
3333
|
+
}, [d.trigger, p]), /* @__PURE__ */ i(Fn, {
|
|
3212
3334
|
asChild: !0,
|
|
3213
3335
|
disableOutsidePointerEvents: !1,
|
|
3214
|
-
onEscapeKeyDown:
|
|
3215
|
-
onPointerDownOutside:
|
|
3336
|
+
onEscapeKeyDown: c,
|
|
3337
|
+
onPointerDownOutside: l,
|
|
3216
3338
|
onFocusOutside: (e) => e.preventDefault(),
|
|
3217
|
-
onDismiss:
|
|
3218
|
-
children: /* @__PURE__ */
|
|
3219
|
-
"data-state":
|
|
3339
|
+
onDismiss: p,
|
|
3340
|
+
children: /* @__PURE__ */ a(la, {
|
|
3341
|
+
"data-state": d.stateAttribute,
|
|
3342
|
+
...f,
|
|
3220
3343
|
...u,
|
|
3221
|
-
...c,
|
|
3222
3344
|
ref: t,
|
|
3223
3345
|
style: {
|
|
3224
|
-
...
|
|
3346
|
+
...u.style,
|
|
3225
3347
|
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
3226
3348
|
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
3227
3349
|
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
3228
3350
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
3229
3351
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
3230
3352
|
},
|
|
3231
|
-
children: [/* @__PURE__ */
|
|
3232
|
-
scope:
|
|
3353
|
+
children: [/* @__PURE__ */ i(Va, { children: r }), /* @__PURE__ */ i(za, {
|
|
3354
|
+
scope: n,
|
|
3233
3355
|
isInside: !0,
|
|
3234
|
-
children: /* @__PURE__ */
|
|
3235
|
-
id:
|
|
3356
|
+
children: /* @__PURE__ */ i(ga, {
|
|
3357
|
+
id: d.contentId,
|
|
3236
3358
|
role: "tooltip",
|
|
3237
|
-
children:
|
|
3359
|
+
children: s || r
|
|
3238
3360
|
})
|
|
3239
3361
|
})]
|
|
3240
3362
|
})
|
|
3241
3363
|
});
|
|
3242
3364
|
});
|
|
3243
|
-
|
|
3244
|
-
var
|
|
3245
|
-
let { __scopeTooltip: n, ...r } = e,
|
|
3246
|
-
return
|
|
3247
|
-
...
|
|
3365
|
+
La.displayName = Ia;
|
|
3366
|
+
var Ua = "TooltipArrow", Wa = o.forwardRef((e, t) => {
|
|
3367
|
+
let { __scopeTooltip: n, ...r } = e, a = ya(n);
|
|
3368
|
+
return Ba(Ua, n).isInside ? null : /* @__PURE__ */ i(ua, {
|
|
3369
|
+
...a,
|
|
3248
3370
|
...r,
|
|
3249
3371
|
ref: t
|
|
3250
3372
|
});
|
|
3251
3373
|
});
|
|
3252
|
-
|
|
3253
|
-
function
|
|
3374
|
+
Wa.displayName = Ua;
|
|
3375
|
+
function Ga(e, t) {
|
|
3254
3376
|
let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
3255
3377
|
switch (Math.min(n, r, i, a)) {
|
|
3256
3378
|
case a: return "left";
|
|
@@ -3260,7 +3382,7 @@ function za(e, t) {
|
|
|
3260
3382
|
default: throw Error("unreachable");
|
|
3261
3383
|
}
|
|
3262
3384
|
}
|
|
3263
|
-
function
|
|
3385
|
+
function Ka(e, t, n = 5) {
|
|
3264
3386
|
let r = [];
|
|
3265
3387
|
switch (t) {
|
|
3266
3388
|
case "top":
|
|
@@ -3302,7 +3424,7 @@ function Ba(e, t, n = 5) {
|
|
|
3302
3424
|
}
|
|
3303
3425
|
return r;
|
|
3304
3426
|
}
|
|
3305
|
-
function
|
|
3427
|
+
function qa(e) {
|
|
3306
3428
|
let { top: t, right: n, bottom: r, left: i } = e;
|
|
3307
3429
|
return [
|
|
3308
3430
|
{
|
|
@@ -3323,7 +3445,7 @@ function Va(e) {
|
|
|
3323
3445
|
}
|
|
3324
3446
|
];
|
|
3325
3447
|
}
|
|
3326
|
-
function
|
|
3448
|
+
function Ja(e, t) {
|
|
3327
3449
|
let { x: n, y: r } = e, i = !1;
|
|
3328
3450
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
3329
3451
|
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
@@ -3331,11 +3453,11 @@ function Ha(e, t) {
|
|
|
3331
3453
|
}
|
|
3332
3454
|
return i;
|
|
3333
3455
|
}
|
|
3334
|
-
function
|
|
3456
|
+
function Ya(e) {
|
|
3335
3457
|
let t = e.slice();
|
|
3336
|
-
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0),
|
|
3458
|
+
return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0), Xa(t);
|
|
3337
3459
|
}
|
|
3338
|
-
function
|
|
3460
|
+
function Xa(e) {
|
|
3339
3461
|
if (e.length <= 1) return e.slice();
|
|
3340
3462
|
let t = [];
|
|
3341
3463
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -3360,33 +3482,33 @@ function Wa(e) {
|
|
|
3360
3482
|
}
|
|
3361
3483
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
3362
3484
|
}
|
|
3363
|
-
var
|
|
3485
|
+
var Za = Ta, Qa = ka, $a = ja, eo = Fa, to = La, no = Wa;
|
|
3364
3486
|
//#endregion
|
|
3365
3487
|
//#region src/components/ui/tooltip.tsx
|
|
3366
|
-
function
|
|
3367
|
-
return /* @__PURE__ */
|
|
3488
|
+
function ro({ delayDuration: e = 200, ...t }) {
|
|
3489
|
+
return /* @__PURE__ */ i(Za, {
|
|
3368
3490
|
delayDuration: e,
|
|
3369
3491
|
...t
|
|
3370
3492
|
});
|
|
3371
3493
|
}
|
|
3372
|
-
function
|
|
3373
|
-
return /* @__PURE__ */
|
|
3494
|
+
function io({ ...e }) {
|
|
3495
|
+
return /* @__PURE__ */ i(Qa, { ...e });
|
|
3374
3496
|
}
|
|
3375
|
-
function
|
|
3376
|
-
return /* @__PURE__ */
|
|
3497
|
+
function ao({ ...e }) {
|
|
3498
|
+
return /* @__PURE__ */ i($a, { ...e });
|
|
3377
3499
|
}
|
|
3378
|
-
function
|
|
3379
|
-
return /* @__PURE__ */
|
|
3500
|
+
function oo({ className: e, sideOffset: t = 8, variant: n = "dark", showArrow: r = !0, children: o, ...s }) {
|
|
3501
|
+
return /* @__PURE__ */ i(eo, { children: /* @__PURE__ */ a(to, {
|
|
3380
3502
|
"data-slot": "tooltip",
|
|
3381
3503
|
sideOffset: t,
|
|
3382
3504
|
className: j("z-50 overflow-hidden rounded-lg p-3 text-xs leading-4 text-center", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2", "data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2", "data-[side=top]:slide-in-from-bottom-2", n === "dark" ? "bg-primary text-primary-foreground" : "bg-popover text-popover-foreground shadow-md", e),
|
|
3383
|
-
...
|
|
3384
|
-
children: [
|
|
3505
|
+
...s,
|
|
3506
|
+
children: [o, r && /* @__PURE__ */ i(no, { className: j(n === "dark" ? "fill-primary" : "fill-popover") })]
|
|
3385
3507
|
}) });
|
|
3386
3508
|
}
|
|
3387
3509
|
//#endregion
|
|
3388
3510
|
//#region src/components/ui/alert.tsx
|
|
3389
|
-
var
|
|
3511
|
+
var so = n("relative flex w-full items-start gap-5 rounded-lg p-5 text-base leading-6 [&>svg]:h-6 [&>svg]:w-6 [&>svg]:shrink-0", {
|
|
3390
3512
|
variants: {
|
|
3391
3513
|
variant: {
|
|
3392
3514
|
default: "",
|
|
@@ -3446,42 +3568,42 @@ var to = l("relative flex w-full items-start gap-5 rounded-lg p-5 text-base lead
|
|
|
3446
3568
|
filled: !1
|
|
3447
3569
|
}
|
|
3448
3570
|
});
|
|
3449
|
-
function
|
|
3450
|
-
return /* @__PURE__ */
|
|
3571
|
+
function co({ className: e, variant: t = "default", filled: n = !1, onDismiss: r, children: o, ...s }) {
|
|
3572
|
+
return /* @__PURE__ */ a("div", {
|
|
3451
3573
|
"data-slot": "alert",
|
|
3452
3574
|
"data-variant": t,
|
|
3453
3575
|
"data-filled": n || void 0,
|
|
3454
3576
|
role: "alert",
|
|
3455
|
-
className: j(
|
|
3577
|
+
className: j(so({
|
|
3456
3578
|
variant: t,
|
|
3457
3579
|
filled: n,
|
|
3458
3580
|
className: e
|
|
3459
3581
|
})),
|
|
3460
|
-
...
|
|
3461
|
-
children: [/* @__PURE__ */
|
|
3582
|
+
...s,
|
|
3583
|
+
children: [/* @__PURE__ */ i("div", {
|
|
3462
3584
|
"data-slot": "alert-content",
|
|
3463
3585
|
className: "flex min-w-0 flex-1 items-center gap-2.5",
|
|
3464
|
-
children:
|
|
3465
|
-
}), r ? /* @__PURE__ */
|
|
3586
|
+
children: o
|
|
3587
|
+
}), r ? /* @__PURE__ */ i("button", {
|
|
3466
3588
|
"data-slot": "alert-dismiss",
|
|
3467
3589
|
type: "button",
|
|
3468
3590
|
onClick: r,
|
|
3469
3591
|
className: "shrink-0 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
3470
3592
|
"aria-label": "Dismiss",
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3593
|
+
children: /* @__PURE__ */ i(w, { className: "h-6 w-6" })
|
|
3472
3594
|
}) : null]
|
|
3473
3595
|
});
|
|
3474
3596
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return /* @__PURE__ */
|
|
3597
|
+
function lo({ className: e, children: t, ...n }) {
|
|
3598
|
+
return /* @__PURE__ */ i("h5", {
|
|
3477
3599
|
"data-slot": "alert-title",
|
|
3478
3600
|
className: j("text-h4", e),
|
|
3479
3601
|
...n,
|
|
3480
3602
|
children: t
|
|
3481
3603
|
});
|
|
3482
3604
|
}
|
|
3483
|
-
function
|
|
3484
|
-
return /* @__PURE__ */
|
|
3605
|
+
function uo({ className: e, children: t, ...n }) {
|
|
3606
|
+
return /* @__PURE__ */ i("div", {
|
|
3485
3607
|
"data-slot": "alert-description",
|
|
3486
3608
|
className: j("text-base leading-6 [&_p]:leading-6", e),
|
|
3487
3609
|
...n,
|
|
@@ -3490,7 +3612,7 @@ function io({ className: e, children: t, ...n }) {
|
|
|
3490
3612
|
}
|
|
3491
3613
|
//#endregion
|
|
3492
3614
|
//#region src/components/ui/toast.tsx
|
|
3493
|
-
var
|
|
3615
|
+
var fo = n("relative flex w-full flex-col gap-4 rounded-lg border px-3 py-5", {
|
|
3494
3616
|
variants: { variant: {
|
|
3495
3617
|
default: "border-border bg-background text-foreground",
|
|
3496
3618
|
success: "border-border bg-background text-foreground",
|
|
@@ -3499,78 +3621,78 @@ var ao = l("relative flex w-full flex-col gap-4 rounded-lg border px-3 py-5", {
|
|
|
3499
3621
|
info: "border-border bg-background text-foreground"
|
|
3500
3622
|
} },
|
|
3501
3623
|
defaultVariants: { variant: "default" }
|
|
3502
|
-
}),
|
|
3503
|
-
default:
|
|
3504
|
-
success:
|
|
3505
|
-
destructive:
|
|
3506
|
-
warning:
|
|
3507
|
-
info:
|
|
3508
|
-
},
|
|
3624
|
+
}), po = {
|
|
3625
|
+
default: _,
|
|
3626
|
+
success: _,
|
|
3627
|
+
destructive: g,
|
|
3628
|
+
warning: C,
|
|
3629
|
+
info: y
|
|
3630
|
+
}, mo = {
|
|
3509
3631
|
default: "text-foreground",
|
|
3510
3632
|
success: "text-success",
|
|
3511
3633
|
destructive: "text-destructive",
|
|
3512
3634
|
warning: "text-warning",
|
|
3513
3635
|
info: "text-info"
|
|
3514
3636
|
};
|
|
3515
|
-
function
|
|
3516
|
-
return /* @__PURE__ */
|
|
3637
|
+
function ho({ className: e, variant: t = "default", onClose: n, children: r, ...o }) {
|
|
3638
|
+
return /* @__PURE__ */ a("div", {
|
|
3517
3639
|
"data-slot": "toast",
|
|
3518
3640
|
"data-variant": t,
|
|
3519
3641
|
role: "alert",
|
|
3520
|
-
className: j(
|
|
3642
|
+
className: j(fo({
|
|
3521
3643
|
variant: t,
|
|
3522
3644
|
className: e
|
|
3523
3645
|
})),
|
|
3524
|
-
...
|
|
3525
|
-
children: [r, n && /* @__PURE__ */
|
|
3646
|
+
...o,
|
|
3647
|
+
children: [r, n && /* @__PURE__ */ i("button", {
|
|
3526
3648
|
"data-slot": "toast-close",
|
|
3527
3649
|
type: "button",
|
|
3528
3650
|
onClick: n,
|
|
3529
3651
|
className: j("absolute right-3 top-5 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", t === "destructive" && "text-destructive"),
|
|
3530
3652
|
"aria-label": "Close",
|
|
3531
|
-
children: /* @__PURE__ */
|
|
3653
|
+
children: /* @__PURE__ */ i(w, { className: "h-6 w-6" })
|
|
3532
3654
|
})]
|
|
3533
3655
|
});
|
|
3534
3656
|
}
|
|
3535
|
-
function
|
|
3536
|
-
let
|
|
3537
|
-
return /* @__PURE__ */
|
|
3657
|
+
function go({ className: e, variant: t = "default", children: n, ...r }) {
|
|
3658
|
+
let o = po[t], s = mo[t];
|
|
3659
|
+
return /* @__PURE__ */ a("div", {
|
|
3538
3660
|
"data-slot": "toast-header",
|
|
3539
3661
|
className: j("flex items-center gap-4", e),
|
|
3540
3662
|
...r,
|
|
3541
|
-
children: [/* @__PURE__ */
|
|
3663
|
+
children: [/* @__PURE__ */ i(o, {
|
|
3542
3664
|
"data-slot": "toast-icon",
|
|
3543
|
-
className: j("h-6 w-6 shrink-0",
|
|
3665
|
+
className: j("h-6 w-6 shrink-0", s),
|
|
3544
3666
|
"aria-hidden": "true"
|
|
3545
|
-
}), /* @__PURE__ */
|
|
3667
|
+
}), /* @__PURE__ */ i("div", {
|
|
3546
3668
|
"data-slot": "toast-header-content",
|
|
3547
3669
|
className: "flex flex-1 flex-col",
|
|
3548
3670
|
children: n
|
|
3549
3671
|
})]
|
|
3550
3672
|
});
|
|
3551
3673
|
}
|
|
3552
|
-
function
|
|
3553
|
-
return /* @__PURE__ */
|
|
3674
|
+
function _o({ className: e, ...t }) {
|
|
3675
|
+
return /* @__PURE__ */ i("p", {
|
|
3554
3676
|
"data-slot": "toast-title",
|
|
3555
3677
|
className: j("text-h4", e),
|
|
3556
3678
|
...t
|
|
3557
3679
|
});
|
|
3558
3680
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return /* @__PURE__ */
|
|
3681
|
+
function vo({ className: e, ...t }) {
|
|
3682
|
+
return /* @__PURE__ */ i("p", {
|
|
3561
3683
|
"data-slot": "toast-description",
|
|
3562
3684
|
className: j("pl-8 text-sm leading-5 text-muted-foreground", e),
|
|
3563
3685
|
...t
|
|
3564
3686
|
});
|
|
3565
3687
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return /* @__PURE__ */
|
|
3688
|
+
function yo({ className: e, ...t }) {
|
|
3689
|
+
return /* @__PURE__ */ i("div", {
|
|
3568
3690
|
"data-slot": "toast-action",
|
|
3569
3691
|
className: j("flex items-start justify-end gap-3 pl-8", e),
|
|
3570
3692
|
...t
|
|
3571
3693
|
});
|
|
3572
3694
|
}
|
|
3573
3695
|
//#endregion
|
|
3574
|
-
export {
|
|
3696
|
+
export { co as Alert, uo as AlertDescription, lo as AlertTitle, Vt as Avatar, Ut as AvatarFallback, Ht as AvatarImage, It as Badge, ie as Button, on as Card, un as CardContent, ln as CardDescription, dn as CardFooter, sn as CardHeader, cn as CardTitle, le as Checkbox, bn as Dialog, Sn as DialogClose, Cn as DialogContent, Dn as DialogDescription, Tn as DialogFooter, wn as DialogHeader, En as DialogTitle, xn as DialogTrigger, Gt as IconButton, ae as Input, Xt as InputField, oe as Label, F as NovieLogo, ne as NovieSymbol, Yt as Progress, Mt as RadioGroup, Nt as RadioGroupItem, Zt as SearchInput, Pt as Separator, an as Stepper, rn as StepperItem, fe as Switch, fn as Table, mn as TableBody, yn as TableCaption, vn as TableCell, hn as TableFooter, _n as TableHead, pn as TableHeader, gn as TableRow, Rt as Tag, ho as Toast, yo as ToastAction, vo as ToastDescription, go as ToastHeader, _o as ToastTitle, io as Tooltip, oo as TooltipContent, ro as TooltipProvider, ao as TooltipTrigger, so as alertVariants, zt as avatarVariants, Ft as badgeVariants, re as buttonVariants, se as checkboxVariants, j as cn, Wt as iconButtonVariants, qt as indicatorVariants, M as logoVariants, Kt as progressTrackVariants, At as radioGroupItemVariants, ue as switchVariants, te as symbolVariants, Lt as tagVariants, de as thumbVariants, fo as toastVariants, $t as useStepperContext };
|
|
3575
3697
|
|
|
3576
3698
|
//# sourceMappingURL=index.js.map
|