azero_resources 0.0.1

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.
Files changed (83) hide show
  1. package/README.md +1 -0
  2. package/dist/azero-resources.css +2 -0
  3. package/dist/azero-resources.js +4614 -0
  4. package/dist/azero-resources.umd.cjs +6 -0
  5. package/dist/jest.config.d.ts +14 -0
  6. package/dist/src/ToastServices.d.ts +9 -0
  7. package/dist/src/components/Badge/Badge.d.ts +14 -0
  8. package/dist/src/components/Badge/index.d.ts +1 -0
  9. package/dist/src/components/Badge/index.stories.d.ts +29 -0
  10. package/dist/src/components/Box/Box.d.ts +17 -0
  11. package/dist/src/components/Box/index.d.ts +2 -0
  12. package/dist/src/components/Box/index.stories.d.ts +25 -0
  13. package/dist/src/components/Button/ButtonIcon/icons.d.ts +2 -0
  14. package/dist/src/components/Button/ButtonIcon/index.d.ts +1 -0
  15. package/dist/src/components/Button/DefaultButton/DefaultButton.d.ts +22 -0
  16. package/dist/src/components/Button/DefaultButton/index.d.ts +1 -0
  17. package/dist/src/components/Button/DefaultButton/index.stories.d.ts +18 -0
  18. package/dist/src/components/Button/GroupIconButton/GroupIconButton.d.ts +14 -0
  19. package/dist/src/components/Button/GroupIconButton/index.d.ts +1 -0
  20. package/dist/src/components/Button/GroupIconButton/index.stories.d.ts +9 -0
  21. package/dist/src/components/Button/SingleIconButton/SingleIconButton.d.ts +17 -0
  22. package/dist/src/components/Button/SingleIconButton/index.d.ts +1 -0
  23. package/dist/src/components/Button/SingleIconButton/index.stories.d.ts +7 -0
  24. package/dist/src/components/Button/index.d.ts +4 -0
  25. package/dist/src/components/Calendar/Calendar.d.ts +18 -0
  26. package/dist/src/components/Calendar/index.d.ts +1 -0
  27. package/dist/src/components/Calendar/index.stories.d.ts +9 -0
  28. package/dist/src/components/Calendar/utils.d.ts +13 -0
  29. package/dist/src/components/Divider/Divider.d.ts +15 -0
  30. package/dist/src/components/Divider/index.d.ts +2 -0
  31. package/dist/src/components/Divider/index.stories.d.ts +29 -0
  32. package/dist/src/components/ImagePopOver/ImagePopOver.d.ts +18 -0
  33. package/dist/src/components/ImagePopOver/index.d.ts +2 -0
  34. package/dist/src/components/ImagePopOver/index.stories.d.ts +17 -0
  35. package/dist/src/components/Input/Input.d.ts +21 -0
  36. package/dist/src/components/Input/index.d.ts +1 -0
  37. package/dist/src/components/Input/index.stories.d.ts +29 -0
  38. package/dist/src/components/InputOTP/InputOTP.d.ts +23 -0
  39. package/dist/src/components/InputOTP/index.d.ts +1 -0
  40. package/dist/src/components/InputOTP/index.stories.d.ts +21 -0
  41. package/dist/src/components/Pagination/Pagination.d.ts +25 -0
  42. package/dist/src/components/Pagination/index.d.ts +1 -0
  43. package/dist/src/components/Pagination/index.stories.d.ts +24 -0
  44. package/dist/src/components/ProfileCard/ProfileCard.d.ts +17 -0
  45. package/dist/src/components/ProfileCard/index.d.ts +1 -0
  46. package/dist/src/components/ProfileCard/index.stories.d.ts +25 -0
  47. package/dist/src/components/Select/Select.d.ts +54 -0
  48. package/dist/src/components/Select/index.d.ts +1 -0
  49. package/dist/src/components/Select/index.stories.d.ts +24 -0
  50. package/dist/src/components/Slider/Slider.d.ts +13 -0
  51. package/dist/src/components/Slider/index.d.ts +1 -0
  52. package/dist/src/components/Slider/index.stories.d.ts +17 -0
  53. package/dist/src/components/Switch/Switch.d.ts +14 -0
  54. package/dist/src/components/Switch/index.d.ts +1 -0
  55. package/dist/src/components/Switch/index.stories.d.ts +25 -0
  56. package/dist/src/components/Table/Table.d.ts +56 -0
  57. package/dist/src/components/Table/index.d.ts +2 -0
  58. package/dist/src/components/Table/index.stories.d.ts +45 -0
  59. package/dist/src/components/Tabs/Tabs.d.ts +34 -0
  60. package/dist/src/components/Tabs/index.d.ts +1 -0
  61. package/dist/src/components/Tabs/index.stories.d.ts +29 -0
  62. package/dist/src/components/Textarea/Textarea.d.ts +12 -0
  63. package/dist/src/components/Textarea/index.d.ts +1 -0
  64. package/dist/src/components/Textarea/index.stories.d.ts +29 -0
  65. package/dist/src/components/Toast/Toast.d.ts +13 -0
  66. package/dist/src/components/Toast/index.d.ts +1 -0
  67. package/dist/src/components/Toast/index.stories.d.ts +25 -0
  68. package/dist/src/components/Tooltip/Tooltip.d.ts +30 -0
  69. package/dist/src/components/Tooltip/index.d.ts +1 -0
  70. package/dist/src/components/Tooltip/index.stories.d.ts +21 -0
  71. package/dist/src/components/Upload/FileIcons.d.ts +6 -0
  72. package/dist/src/components/Upload/Upload.d.ts +38 -0
  73. package/dist/src/components/Upload/index.d.ts +2 -0
  74. package/dist/src/components/Upload/index.stories.d.ts +48 -0
  75. package/dist/src/components/index.d.ts +20 -0
  76. package/dist/src/components/types.d.ts +106 -0
  77. package/dist/src/index.d.ts +5 -0
  78. package/dist/src/utils/Constant.d.ts +2 -0
  79. package/dist/src/utils/colorThemes.d.ts +43 -0
  80. package/dist/src/utils/index.d.ts +3 -0
  81. package/dist/src/utils/style.d.ts +21 -0
  82. package/dist/src/utils/types/index.d.ts +30 -0
  83. package/package.json +91 -0
@@ -0,0 +1,4614 @@
1
+ import e, { createContext as t, forwardRef as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useId as s, useImperativeHandle as c, useLayoutEffect as l, useRef as u, useState as d } from "react";
2
+ //#region \0rolldown/runtime.js
3
+ var f = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), p = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
4
+ if (typeof require < "u") return require.apply(this, arguments);
5
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
6
+ });
7
+ //#endregion
8
+ //#region node_modules/clsx/dist/clsx.mjs
9
+ function m(e) {
10
+ var t, n, r = "";
11
+ if (typeof e == "string" || typeof e == "number") r += e;
12
+ else if (typeof e == "object") {
13
+ if (Array.isArray(e)) {
14
+ var i = e.length;
15
+ for (t = 0; t < i; t++) e[t] && (n = m(e[t])) && (r && (r += " "), r += n);
16
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
17
+ }
18
+ return r;
19
+ }
20
+ function h() {
21
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = m(e)) && (r && (r += " "), r += t);
22
+ return r;
23
+ }
24
+ //#endregion
25
+ //#region node_modules/class-variance-authority/dist/index.mjs
26
+ var g = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _ = h, v = (e, t) => (n) => {
27
+ if (t?.variants == null) return _(e, n?.class, n?.className);
28
+ let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
29
+ let t = n?.[e], a = i?.[e];
30
+ if (t === null) return null;
31
+ let o = g(t) || g(a);
32
+ return r[e][o];
33
+ }), o = n && Object.entries(n).reduce((e, t) => {
34
+ let [n, r] = t;
35
+ return r === void 0 || (e[n] = r), e;
36
+ }, {});
37
+ return _(e, a, t?.compoundVariants?.reduce((e, t) => {
38
+ let { class: n, className: r, ...a } = t;
39
+ return Object.entries(a).every((e) => {
40
+ let [t, n] = e;
41
+ return Array.isArray(n) ? n.includes({
42
+ ...i,
43
+ ...o
44
+ }[t]) : {
45
+ ...i,
46
+ ...o
47
+ }[t] === n;
48
+ }) ? [
49
+ ...e,
50
+ n,
51
+ r
52
+ ] : e;
53
+ }, []), n?.class, n?.className);
54
+ }, y = (e, t) => {
55
+ let n = Array(e.length + t.length);
56
+ for (let t = 0; t < e.length; t++) n[t] = e[t];
57
+ for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
58
+ return n;
59
+ }, b = (e, t) => ({
60
+ classGroupId: e,
61
+ validator: t
62
+ }), x = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
63
+ nextPart: e,
64
+ validators: t,
65
+ classGroupId: n
66
+ }), S = "-", C = [], w = "arbitrary..", T = (e) => {
67
+ let t = O(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
68
+ return {
69
+ getClassGroupId: (e) => {
70
+ if (e.startsWith("[") && e.endsWith("]")) return D(e);
71
+ let n = e.split(S);
72
+ return E(n, +(n[0] === "" && n.length > 1), t);
73
+ },
74
+ getConflictingClassGroupIds: (e, t) => {
75
+ if (t) {
76
+ let t = r[e], i = n[e];
77
+ return t ? i ? y(i, t) : t : i || C;
78
+ }
79
+ return n[e] || C;
80
+ }
81
+ };
82
+ }, E = (e, t, n) => {
83
+ if (e.length - t === 0) return n.classGroupId;
84
+ let r = e[t], i = n.nextPart.get(r);
85
+ if (i) {
86
+ let n = E(e, t + 1, i);
87
+ if (n) return n;
88
+ }
89
+ let a = n.validators;
90
+ if (a === null) return;
91
+ let o = t === 0 ? e.join(S) : e.slice(t).join(S), s = a.length;
92
+ for (let e = 0; e < s; e++) {
93
+ let t = a[e];
94
+ if (t.validator(o)) return t.classGroupId;
95
+ }
96
+ }, D = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
97
+ let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
98
+ return r ? w + r : void 0;
99
+ })(), O = (e) => {
100
+ let { theme: t, classGroups: n } = e;
101
+ return k(n, t);
102
+ }, k = (e, t) => {
103
+ let n = x();
104
+ for (let r in e) {
105
+ let i = e[r];
106
+ A(i, n, r, t);
107
+ }
108
+ return n;
109
+ }, A = (e, t, n, r) => {
110
+ let i = e.length;
111
+ for (let a = 0; a < i; a++) {
112
+ let i = e[a];
113
+ j(i, t, n, r);
114
+ }
115
+ }, j = (e, t, n, r) => {
116
+ if (typeof e == "string") {
117
+ M(e, t, n);
118
+ return;
119
+ }
120
+ if (typeof e == "function") {
121
+ N(e, t, n, r);
122
+ return;
123
+ }
124
+ P(e, t, n, r);
125
+ }, M = (e, t, n) => {
126
+ let r = e === "" ? t : ee(t, e);
127
+ r.classGroupId = n;
128
+ }, N = (e, t, n, r) => {
129
+ if (F(e)) {
130
+ A(e(r), t, n, r);
131
+ return;
132
+ }
133
+ t.validators === null && (t.validators = []), t.validators.push(b(n, e));
134
+ }, P = (e, t, n, r) => {
135
+ let i = Object.entries(e), a = i.length;
136
+ for (let e = 0; e < a; e++) {
137
+ let [a, o] = i[e];
138
+ A(o, ee(t, a), n, r);
139
+ }
140
+ }, ee = (e, t) => {
141
+ let n = e, r = t.split(S), i = r.length;
142
+ for (let e = 0; e < i; e++) {
143
+ let t = r[e], i = n.nextPart.get(t);
144
+ i || (i = x(), n.nextPart.set(t, i)), n = i;
145
+ }
146
+ return n;
147
+ }, F = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, te = (e) => {
148
+ if (e < 1) return {
149
+ get: () => void 0,
150
+ set: () => {}
151
+ };
152
+ let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
153
+ n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
154
+ };
155
+ return {
156
+ get(e) {
157
+ let t = n[e];
158
+ if (t !== void 0) return t;
159
+ if ((t = r[e]) !== void 0) return i(e, t), t;
160
+ },
161
+ set(e, t) {
162
+ e in n ? n[e] = t : i(e, t);
163
+ }
164
+ };
165
+ }, I = "!", ne = ":", re = [], L = (e, t, n, r, i) => ({
166
+ modifiers: e,
167
+ hasImportantModifier: t,
168
+ baseClassName: n,
169
+ maybePostfixModifierPosition: r,
170
+ isExternal: i
171
+ }), R = (e) => {
172
+ let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
173
+ let t = [], n = 0, r = 0, i = 0, a, o = e.length;
174
+ for (let s = 0; s < o; s++) {
175
+ let o = e[s];
176
+ if (n === 0 && r === 0) {
177
+ if (o === ne) {
178
+ t.push(e.slice(i, s)), i = s + 1;
179
+ continue;
180
+ }
181
+ if (o === "/") {
182
+ a = s;
183
+ continue;
184
+ }
185
+ }
186
+ o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
187
+ }
188
+ let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
189
+ s.endsWith(I) ? (c = s.slice(0, -1), l = !0) : s.startsWith(I) && (c = s.slice(1), l = !0);
190
+ let u = a && a > i ? a - i : void 0;
191
+ return L(t, l, c, u);
192
+ };
193
+ if (t) {
194
+ let e = t + ne, n = r;
195
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : L(re, !1, t, void 0, !0);
196
+ }
197
+ if (n) {
198
+ let e = r;
199
+ r = (t) => n({
200
+ className: t,
201
+ parseClassName: e
202
+ });
203
+ }
204
+ return r;
205
+ }, ie = (e) => {
206
+ let t = /* @__PURE__ */ new Map();
207
+ return e.orderSensitiveModifiers.forEach((e, n) => {
208
+ t.set(e, 1e6 + n);
209
+ }), (e) => {
210
+ let n = [], r = [];
211
+ for (let i = 0; i < e.length; i++) {
212
+ let a = e[i], o = a[0] === "[", s = t.has(a);
213
+ o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
214
+ }
215
+ return r.length > 0 && (r.sort(), n.push(...r)), n;
216
+ };
217
+ }, ae = (e) => ({
218
+ cache: te(e.cacheSize),
219
+ parseClassName: R(e),
220
+ sortModifiers: ie(e),
221
+ postfixLookupClassGroupIds: z(e),
222
+ ...T(e)
223
+ }), z = (e) => {
224
+ let t = Object.create(null), n = e.postfixLookupClassGroups;
225
+ if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
226
+ return t;
227
+ }, oe = /\s+/, se = (e, t) => {
228
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(oe), l = "";
229
+ for (let e = c.length - 1; e >= 0; --e) {
230
+ let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
231
+ if (u) {
232
+ l = t + (l.length > 0 ? " " + l : l);
233
+ continue;
234
+ }
235
+ let h = !!m, g;
236
+ if (h) {
237
+ g = r(p.substring(0, m));
238
+ let e = g && o[g] ? r(p) : void 0;
239
+ e && e !== g && (g = e, h = !1);
240
+ } else g = r(p);
241
+ if (!g) {
242
+ if (!h) {
243
+ l = t + (l.length > 0 ? " " + l : l);
244
+ continue;
245
+ }
246
+ if (g = r(p), !g) {
247
+ l = t + (l.length > 0 ? " " + l : l);
248
+ continue;
249
+ }
250
+ h = !1;
251
+ }
252
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + I : _, y = v + g;
253
+ if (s.indexOf(y) > -1) continue;
254
+ s.push(y);
255
+ let b = i(g, h);
256
+ for (let e = 0; e < b.length; ++e) {
257
+ let t = b[e];
258
+ s.push(v + t);
259
+ }
260
+ l = t + (l.length > 0 ? " " + l : l);
261
+ }
262
+ return l;
263
+ }, ce = (...e) => {
264
+ let t = 0, n, r, i = "";
265
+ for (; t < e.length;) (n = e[t++]) && (r = le(n)) && (i && (i += " "), i += r);
266
+ return i;
267
+ }, le = (e) => {
268
+ if (typeof e == "string") return e;
269
+ let t, n = "";
270
+ for (let r = 0; r < e.length; r++) e[r] && (t = le(e[r])) && (n && (n += " "), n += t);
271
+ return n;
272
+ }, ue = (e, ...t) => {
273
+ let n, r, i, a, o = (o) => (n = ae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
274
+ let t = r(e);
275
+ if (t) return t;
276
+ let a = se(e, n);
277
+ return i(e, a), a;
278
+ };
279
+ return a = o, (...e) => a(ce(...e));
280
+ }, de = [], B = (e) => {
281
+ let t = (t) => t[e] || de;
282
+ return t.isThemeGetter = !0, t.themeKey = e, t;
283
+ }, fe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, pe = /^\((?:(\w[\w-]*):)?(.+)\)$/i, me = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, he = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ge = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, _e = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, ve = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ye = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, V = (e) => me.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), be = (e) => e.endsWith("%") && H(e.slice(0, -1)), W = (e) => he.test(e), xe = () => !0, Se = (e) => ge.test(e) && !_e.test(e), Ce = () => !1, we = (e) => ve.test(e), Te = (e) => ye.test(e), Ee = (e) => !G(e) && !K(e), De = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Oe = (e) => q(e, Ke, Ce), G = (e) => fe.test(e), ke = (e) => q(e, qe, Se), Ae = (e) => q(e, Je, H), je = (e) => q(e, Xe, xe), Me = (e) => q(e, Ye, Ce), Ne = (e) => q(e, We, Ce), Pe = (e) => q(e, Ge, Te), Fe = (e) => q(e, Ze, we), K = (e) => pe.test(e), Ie = (e) => Ue(e, qe), Le = (e) => Ue(e, Ye), Re = (e) => Ue(e, We), ze = (e) => Ue(e, Ke), Be = (e) => Ue(e, Ge), Ve = (e) => Ue(e, Ze, !0), He = (e) => Ue(e, Xe, !0), q = (e, t, n) => {
284
+ let r = fe.exec(e);
285
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
286
+ }, Ue = (e, t, n = !1) => {
287
+ let r = pe.exec(e);
288
+ return r ? r[1] ? t(r[1]) : n : !1;
289
+ }, We = (e) => e === "position" || e === "percentage", Ge = (e) => e === "image" || e === "url", Ke = (e) => e === "length" || e === "size" || e === "bg-size", qe = (e) => e === "length", Je = (e) => e === "number", Ye = (e) => e === "family-name", Xe = (e) => e === "number" || e === "weight", Ze = (e) => e === "shadow", Qe = /*#__PURE__*/ ue(() => {
290
+ let e = B("color"), t = B("font"), n = B("text"), r = B("font-weight"), i = B("tracking"), a = B("leading"), o = B("breakpoint"), s = B("container"), c = B("spacing"), l = B("radius"), u = B("shadow"), d = B("inset-shadow"), f = B("text-shadow"), p = B("drop-shadow"), m = B("blur"), h = B("perspective"), g = B("aspect"), _ = B("ease"), v = B("animate"), y = () => [
291
+ "auto",
292
+ "avoid",
293
+ "all",
294
+ "avoid-page",
295
+ "page",
296
+ "left",
297
+ "right",
298
+ "column"
299
+ ], b = () => [
300
+ "center",
301
+ "top",
302
+ "bottom",
303
+ "left",
304
+ "right",
305
+ "top-left",
306
+ "left-top",
307
+ "top-right",
308
+ "right-top",
309
+ "bottom-right",
310
+ "right-bottom",
311
+ "bottom-left",
312
+ "left-bottom"
313
+ ], x = () => [
314
+ ...b(),
315
+ K,
316
+ G
317
+ ], S = () => [
318
+ "auto",
319
+ "hidden",
320
+ "clip",
321
+ "visible",
322
+ "scroll"
323
+ ], C = () => [
324
+ "auto",
325
+ "contain",
326
+ "none"
327
+ ], w = () => [
328
+ K,
329
+ G,
330
+ c
331
+ ], T = () => [
332
+ V,
333
+ "full",
334
+ "auto",
335
+ ...w()
336
+ ], E = () => [
337
+ U,
338
+ "none",
339
+ "subgrid",
340
+ K,
341
+ G
342
+ ], D = () => [
343
+ "auto",
344
+ { span: [
345
+ "full",
346
+ U,
347
+ K,
348
+ G
349
+ ] },
350
+ U,
351
+ K,
352
+ G
353
+ ], O = () => [
354
+ U,
355
+ "auto",
356
+ K,
357
+ G
358
+ ], k = () => [
359
+ "auto",
360
+ "min",
361
+ "max",
362
+ "fr",
363
+ K,
364
+ G
365
+ ], A = () => [
366
+ "start",
367
+ "end",
368
+ "center",
369
+ "between",
370
+ "around",
371
+ "evenly",
372
+ "stretch",
373
+ "baseline",
374
+ "center-safe",
375
+ "end-safe"
376
+ ], j = () => [
377
+ "start",
378
+ "end",
379
+ "center",
380
+ "stretch",
381
+ "center-safe",
382
+ "end-safe"
383
+ ], M = () => ["auto", ...w()], N = () => [
384
+ V,
385
+ "auto",
386
+ "full",
387
+ "dvw",
388
+ "dvh",
389
+ "lvw",
390
+ "lvh",
391
+ "svw",
392
+ "svh",
393
+ "min",
394
+ "max",
395
+ "fit",
396
+ ...w()
397
+ ], P = () => [
398
+ s,
399
+ V,
400
+ "screen",
401
+ "full",
402
+ "dvw",
403
+ "lvw",
404
+ "svw",
405
+ "min",
406
+ "max",
407
+ "fit",
408
+ ...w()
409
+ ], ee = () => [
410
+ V,
411
+ "screen",
412
+ "full",
413
+ "lh",
414
+ "dvh",
415
+ "lvh",
416
+ "svh",
417
+ "min",
418
+ "max",
419
+ "fit",
420
+ ...w()
421
+ ], F = () => [
422
+ e,
423
+ K,
424
+ G
425
+ ], te = () => [
426
+ ...b(),
427
+ Re,
428
+ Ne,
429
+ { position: [K, G] }
430
+ ], I = () => ["no-repeat", { repeat: [
431
+ "",
432
+ "x",
433
+ "y",
434
+ "space",
435
+ "round"
436
+ ] }], ne = () => [
437
+ "auto",
438
+ "cover",
439
+ "contain",
440
+ ze,
441
+ Oe,
442
+ { size: [K, G] }
443
+ ], re = () => [
444
+ be,
445
+ Ie,
446
+ ke
447
+ ], L = () => [
448
+ "",
449
+ "none",
450
+ "full",
451
+ l,
452
+ K,
453
+ G
454
+ ], R = () => [
455
+ "",
456
+ H,
457
+ Ie,
458
+ ke
459
+ ], ie = () => [
460
+ "solid",
461
+ "dashed",
462
+ "dotted",
463
+ "double"
464
+ ], ae = () => [
465
+ "normal",
466
+ "multiply",
467
+ "screen",
468
+ "overlay",
469
+ "darken",
470
+ "lighten",
471
+ "color-dodge",
472
+ "color-burn",
473
+ "hard-light",
474
+ "soft-light",
475
+ "difference",
476
+ "exclusion",
477
+ "hue",
478
+ "saturation",
479
+ "color",
480
+ "luminosity"
481
+ ], z = () => [
482
+ H,
483
+ be,
484
+ Re,
485
+ Ne
486
+ ], oe = () => [
487
+ "",
488
+ "none",
489
+ m,
490
+ K,
491
+ G
492
+ ], se = () => [
493
+ "none",
494
+ H,
495
+ K,
496
+ G
497
+ ], ce = () => [
498
+ "none",
499
+ H,
500
+ K,
501
+ G
502
+ ], le = () => [
503
+ H,
504
+ K,
505
+ G
506
+ ], ue = () => [
507
+ V,
508
+ "full",
509
+ ...w()
510
+ ];
511
+ return {
512
+ cacheSize: 500,
513
+ theme: {
514
+ animate: [
515
+ "spin",
516
+ "ping",
517
+ "pulse",
518
+ "bounce"
519
+ ],
520
+ aspect: ["video"],
521
+ blur: [W],
522
+ breakpoint: [W],
523
+ color: [xe],
524
+ container: [W],
525
+ "drop-shadow": [W],
526
+ ease: [
527
+ "in",
528
+ "out",
529
+ "in-out"
530
+ ],
531
+ font: [Ee],
532
+ "font-weight": [
533
+ "thin",
534
+ "extralight",
535
+ "light",
536
+ "normal",
537
+ "medium",
538
+ "semibold",
539
+ "bold",
540
+ "extrabold",
541
+ "black"
542
+ ],
543
+ "inset-shadow": [W],
544
+ leading: [
545
+ "none",
546
+ "tight",
547
+ "snug",
548
+ "normal",
549
+ "relaxed",
550
+ "loose"
551
+ ],
552
+ perspective: [
553
+ "dramatic",
554
+ "near",
555
+ "normal",
556
+ "midrange",
557
+ "distant",
558
+ "none"
559
+ ],
560
+ radius: [W],
561
+ shadow: [W],
562
+ spacing: ["px", H],
563
+ text: [W],
564
+ "text-shadow": [W],
565
+ tracking: [
566
+ "tighter",
567
+ "tight",
568
+ "normal",
569
+ "wide",
570
+ "wider",
571
+ "widest"
572
+ ]
573
+ },
574
+ classGroups: {
575
+ aspect: [{ aspect: [
576
+ "auto",
577
+ "square",
578
+ V,
579
+ G,
580
+ K,
581
+ g
582
+ ] }],
583
+ container: ["container"],
584
+ "container-type": [{ "@container": [
585
+ "",
586
+ "normal",
587
+ "size",
588
+ K,
589
+ G
590
+ ] }],
591
+ "container-named": [De],
592
+ columns: [{ columns: [
593
+ H,
594
+ "auto",
595
+ G,
596
+ K,
597
+ s
598
+ ] }],
599
+ "break-after": [{ "break-after": y() }],
600
+ "break-before": [{ "break-before": y() }],
601
+ "break-inside": [{ "break-inside": [
602
+ "auto",
603
+ "avoid",
604
+ "avoid-page",
605
+ "avoid-column"
606
+ ] }],
607
+ "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
608
+ box: [{ box: ["border", "content"] }],
609
+ display: [
610
+ "block",
611
+ "inline-block",
612
+ "inline",
613
+ "flex",
614
+ "inline-flex",
615
+ "table",
616
+ "inline-table",
617
+ "table-caption",
618
+ "table-cell",
619
+ "table-column",
620
+ "table-column-group",
621
+ "table-footer-group",
622
+ "table-header-group",
623
+ "table-row-group",
624
+ "table-row",
625
+ "flow-root",
626
+ "grid",
627
+ "inline-grid",
628
+ "contents",
629
+ "list-item",
630
+ "hidden"
631
+ ],
632
+ sr: ["sr-only", "not-sr-only"],
633
+ float: [{ float: [
634
+ "right",
635
+ "left",
636
+ "none",
637
+ "start",
638
+ "end"
639
+ ] }],
640
+ clear: [{ clear: [
641
+ "left",
642
+ "right",
643
+ "both",
644
+ "none",
645
+ "start",
646
+ "end"
647
+ ] }],
648
+ isolation: ["isolate", "isolation-auto"],
649
+ "object-fit": [{ object: [
650
+ "contain",
651
+ "cover",
652
+ "fill",
653
+ "none",
654
+ "scale-down"
655
+ ] }],
656
+ "object-position": [{ object: x() }],
657
+ overflow: [{ overflow: S() }],
658
+ "overflow-x": [{ "overflow-x": S() }],
659
+ "overflow-y": [{ "overflow-y": S() }],
660
+ overscroll: [{ overscroll: C() }],
661
+ "overscroll-x": [{ "overscroll-x": C() }],
662
+ "overscroll-y": [{ "overscroll-y": C() }],
663
+ position: [
664
+ "static",
665
+ "fixed",
666
+ "absolute",
667
+ "relative",
668
+ "sticky"
669
+ ],
670
+ inset: [{ inset: T() }],
671
+ "inset-x": [{ "inset-x": T() }],
672
+ "inset-y": [{ "inset-y": T() }],
673
+ start: [{
674
+ "inset-s": T(),
675
+ start: T()
676
+ }],
677
+ end: [{
678
+ "inset-e": T(),
679
+ end: T()
680
+ }],
681
+ "inset-bs": [{ "inset-bs": T() }],
682
+ "inset-be": [{ "inset-be": T() }],
683
+ top: [{ top: T() }],
684
+ right: [{ right: T() }],
685
+ bottom: [{ bottom: T() }],
686
+ left: [{ left: T() }],
687
+ visibility: [
688
+ "visible",
689
+ "invisible",
690
+ "collapse"
691
+ ],
692
+ z: [{ z: [
693
+ U,
694
+ "auto",
695
+ K,
696
+ G
697
+ ] }],
698
+ basis: [{ basis: [
699
+ V,
700
+ "full",
701
+ "auto",
702
+ s,
703
+ ...w()
704
+ ] }],
705
+ "flex-direction": [{ flex: [
706
+ "row",
707
+ "row-reverse",
708
+ "col",
709
+ "col-reverse"
710
+ ] }],
711
+ "flex-wrap": [{ flex: [
712
+ "nowrap",
713
+ "wrap",
714
+ "wrap-reverse"
715
+ ] }],
716
+ flex: [{ flex: [
717
+ H,
718
+ V,
719
+ "auto",
720
+ "initial",
721
+ "none",
722
+ G
723
+ ] }],
724
+ grow: [{ grow: [
725
+ "",
726
+ H,
727
+ K,
728
+ G
729
+ ] }],
730
+ shrink: [{ shrink: [
731
+ "",
732
+ H,
733
+ K,
734
+ G
735
+ ] }],
736
+ order: [{ order: [
737
+ U,
738
+ "first",
739
+ "last",
740
+ "none",
741
+ K,
742
+ G
743
+ ] }],
744
+ "grid-cols": [{ "grid-cols": E() }],
745
+ "col-start-end": [{ col: D() }],
746
+ "col-start": [{ "col-start": O() }],
747
+ "col-end": [{ "col-end": O() }],
748
+ "grid-rows": [{ "grid-rows": E() }],
749
+ "row-start-end": [{ row: D() }],
750
+ "row-start": [{ "row-start": O() }],
751
+ "row-end": [{ "row-end": O() }],
752
+ "grid-flow": [{ "grid-flow": [
753
+ "row",
754
+ "col",
755
+ "dense",
756
+ "row-dense",
757
+ "col-dense"
758
+ ] }],
759
+ "auto-cols": [{ "auto-cols": k() }],
760
+ "auto-rows": [{ "auto-rows": k() }],
761
+ gap: [{ gap: w() }],
762
+ "gap-x": [{ "gap-x": w() }],
763
+ "gap-y": [{ "gap-y": w() }],
764
+ "justify-content": [{ justify: [...A(), "normal"] }],
765
+ "justify-items": [{ "justify-items": [...j(), "normal"] }],
766
+ "justify-self": [{ "justify-self": ["auto", ...j()] }],
767
+ "align-content": [{ content: ["normal", ...A()] }],
768
+ "align-items": [{ items: [...j(), { baseline: ["", "last"] }] }],
769
+ "align-self": [{ self: [
770
+ "auto",
771
+ ...j(),
772
+ { baseline: ["", "last"] }
773
+ ] }],
774
+ "place-content": [{ "place-content": A() }],
775
+ "place-items": [{ "place-items": [...j(), "baseline"] }],
776
+ "place-self": [{ "place-self": ["auto", ...j()] }],
777
+ p: [{ p: w() }],
778
+ px: [{ px: w() }],
779
+ py: [{ py: w() }],
780
+ ps: [{ ps: w() }],
781
+ pe: [{ pe: w() }],
782
+ pbs: [{ pbs: w() }],
783
+ pbe: [{ pbe: w() }],
784
+ pt: [{ pt: w() }],
785
+ pr: [{ pr: w() }],
786
+ pb: [{ pb: w() }],
787
+ pl: [{ pl: w() }],
788
+ m: [{ m: M() }],
789
+ mx: [{ mx: M() }],
790
+ my: [{ my: M() }],
791
+ ms: [{ ms: M() }],
792
+ me: [{ me: M() }],
793
+ mbs: [{ mbs: M() }],
794
+ mbe: [{ mbe: M() }],
795
+ mt: [{ mt: M() }],
796
+ mr: [{ mr: M() }],
797
+ mb: [{ mb: M() }],
798
+ ml: [{ ml: M() }],
799
+ "space-x": [{ "space-x": w() }],
800
+ "space-x-reverse": ["space-x-reverse"],
801
+ "space-y": [{ "space-y": w() }],
802
+ "space-y-reverse": ["space-y-reverse"],
803
+ size: [{ size: N() }],
804
+ "inline-size": [{ inline: ["auto", ...P()] }],
805
+ "min-inline-size": [{ "min-inline": ["auto", ...P()] }],
806
+ "max-inline-size": [{ "max-inline": ["none", ...P()] }],
807
+ "block-size": [{ block: ["auto", ...ee()] }],
808
+ "min-block-size": [{ "min-block": ["auto", ...ee()] }],
809
+ "max-block-size": [{ "max-block": ["none", ...ee()] }],
810
+ w: [{ w: [
811
+ s,
812
+ "screen",
813
+ ...N()
814
+ ] }],
815
+ "min-w": [{ "min-w": [
816
+ s,
817
+ "screen",
818
+ "none",
819
+ ...N()
820
+ ] }],
821
+ "max-w": [{ "max-w": [
822
+ s,
823
+ "screen",
824
+ "none",
825
+ "prose",
826
+ { screen: [o] },
827
+ ...N()
828
+ ] }],
829
+ h: [{ h: [
830
+ "screen",
831
+ "lh",
832
+ ...N()
833
+ ] }],
834
+ "min-h": [{ "min-h": [
835
+ "screen",
836
+ "lh",
837
+ "none",
838
+ ...N()
839
+ ] }],
840
+ "max-h": [{ "max-h": [
841
+ "screen",
842
+ "lh",
843
+ "none",
844
+ ...N()
845
+ ] }],
846
+ "font-size": [{ text: [
847
+ "base",
848
+ n,
849
+ Ie,
850
+ ke
851
+ ] }],
852
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
853
+ "font-style": ["italic", "not-italic"],
854
+ "font-weight": [{ font: [
855
+ r,
856
+ He,
857
+ je
858
+ ] }],
859
+ "font-stretch": [{ "font-stretch": [
860
+ "ultra-condensed",
861
+ "extra-condensed",
862
+ "condensed",
863
+ "semi-condensed",
864
+ "normal",
865
+ "semi-expanded",
866
+ "expanded",
867
+ "extra-expanded",
868
+ "ultra-expanded",
869
+ be,
870
+ G
871
+ ] }],
872
+ "font-family": [{ font: [
873
+ Le,
874
+ Me,
875
+ t
876
+ ] }],
877
+ "font-features": [{ "font-features": [G] }],
878
+ "fvn-normal": ["normal-nums"],
879
+ "fvn-ordinal": ["ordinal"],
880
+ "fvn-slashed-zero": ["slashed-zero"],
881
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
882
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
883
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
884
+ tracking: [{ tracking: [
885
+ i,
886
+ K,
887
+ G
888
+ ] }],
889
+ "line-clamp": [{ "line-clamp": [
890
+ H,
891
+ "none",
892
+ K,
893
+ Ae
894
+ ] }],
895
+ leading: [{ leading: [
896
+ "none",
897
+ a,
898
+ ...w()
899
+ ] }],
900
+ "list-image": [{ "list-image": [
901
+ "none",
902
+ K,
903
+ G
904
+ ] }],
905
+ "list-style-position": [{ list: ["inside", "outside"] }],
906
+ "list-style-type": [{ list: [
907
+ "disc",
908
+ "decimal",
909
+ "none",
910
+ K,
911
+ G
912
+ ] }],
913
+ "text-alignment": [{ text: [
914
+ "left",
915
+ "center",
916
+ "right",
917
+ "justify",
918
+ "start",
919
+ "end"
920
+ ] }],
921
+ "placeholder-color": [{ placeholder: F() }],
922
+ "text-color": [{ text: F() }],
923
+ "text-decoration": [
924
+ "underline",
925
+ "overline",
926
+ "line-through",
927
+ "no-underline"
928
+ ],
929
+ "text-decoration-style": [{ decoration: [...ie(), "wavy"] }],
930
+ "text-decoration-thickness": [{ decoration: [
931
+ H,
932
+ "from-font",
933
+ "auto",
934
+ K,
935
+ ke
936
+ ] }],
937
+ "text-decoration-color": [{ decoration: F() }],
938
+ "underline-offset": [{ "underline-offset": [
939
+ H,
940
+ "auto",
941
+ K,
942
+ G
943
+ ] }],
944
+ "text-transform": [
945
+ "uppercase",
946
+ "lowercase",
947
+ "capitalize",
948
+ "normal-case"
949
+ ],
950
+ "text-overflow": [
951
+ "truncate",
952
+ "text-ellipsis",
953
+ "text-clip"
954
+ ],
955
+ "text-wrap": [{ text: [
956
+ "wrap",
957
+ "nowrap",
958
+ "balance",
959
+ "pretty"
960
+ ] }],
961
+ indent: [{ indent: w() }],
962
+ "tab-size": [{ tab: [
963
+ U,
964
+ K,
965
+ G
966
+ ] }],
967
+ "vertical-align": [{ align: [
968
+ "baseline",
969
+ "top",
970
+ "middle",
971
+ "bottom",
972
+ "text-top",
973
+ "text-bottom",
974
+ "sub",
975
+ "super",
976
+ K,
977
+ G
978
+ ] }],
979
+ whitespace: [{ whitespace: [
980
+ "normal",
981
+ "nowrap",
982
+ "pre",
983
+ "pre-line",
984
+ "pre-wrap",
985
+ "break-spaces"
986
+ ] }],
987
+ break: [{ break: [
988
+ "normal",
989
+ "words",
990
+ "all",
991
+ "keep"
992
+ ] }],
993
+ wrap: [{ wrap: [
994
+ "break-word",
995
+ "anywhere",
996
+ "normal"
997
+ ] }],
998
+ hyphens: [{ hyphens: [
999
+ "none",
1000
+ "manual",
1001
+ "auto"
1002
+ ] }],
1003
+ content: [{ content: [
1004
+ "none",
1005
+ K,
1006
+ G
1007
+ ] }],
1008
+ "bg-attachment": [{ bg: [
1009
+ "fixed",
1010
+ "local",
1011
+ "scroll"
1012
+ ] }],
1013
+ "bg-clip": [{ "bg-clip": [
1014
+ "border",
1015
+ "padding",
1016
+ "content",
1017
+ "text"
1018
+ ] }],
1019
+ "bg-origin": [{ "bg-origin": [
1020
+ "border",
1021
+ "padding",
1022
+ "content"
1023
+ ] }],
1024
+ "bg-position": [{ bg: te() }],
1025
+ "bg-repeat": [{ bg: I() }],
1026
+ "bg-size": [{ bg: ne() }],
1027
+ "bg-image": [{ bg: [
1028
+ "none",
1029
+ {
1030
+ linear: [
1031
+ { to: [
1032
+ "t",
1033
+ "tr",
1034
+ "r",
1035
+ "br",
1036
+ "b",
1037
+ "bl",
1038
+ "l",
1039
+ "tl"
1040
+ ] },
1041
+ U,
1042
+ K,
1043
+ G
1044
+ ],
1045
+ radial: [
1046
+ "",
1047
+ K,
1048
+ G
1049
+ ],
1050
+ conic: [
1051
+ "",
1052
+ U,
1053
+ K,
1054
+ G
1055
+ ]
1056
+ },
1057
+ Be,
1058
+ Pe
1059
+ ] }],
1060
+ "bg-color": [{ bg: F() }],
1061
+ "gradient-from-pos": [{ from: re() }],
1062
+ "gradient-via-pos": [{ via: re() }],
1063
+ "gradient-to-pos": [{ to: re() }],
1064
+ "gradient-from": [{ from: F() }],
1065
+ "gradient-via": [{ via: F() }],
1066
+ "gradient-to": [{ to: F() }],
1067
+ rounded: [{ rounded: L() }],
1068
+ "rounded-s": [{ "rounded-s": L() }],
1069
+ "rounded-e": [{ "rounded-e": L() }],
1070
+ "rounded-t": [{ "rounded-t": L() }],
1071
+ "rounded-r": [{ "rounded-r": L() }],
1072
+ "rounded-b": [{ "rounded-b": L() }],
1073
+ "rounded-l": [{ "rounded-l": L() }],
1074
+ "rounded-ss": [{ "rounded-ss": L() }],
1075
+ "rounded-se": [{ "rounded-se": L() }],
1076
+ "rounded-ee": [{ "rounded-ee": L() }],
1077
+ "rounded-es": [{ "rounded-es": L() }],
1078
+ "rounded-tl": [{ "rounded-tl": L() }],
1079
+ "rounded-tr": [{ "rounded-tr": L() }],
1080
+ "rounded-br": [{ "rounded-br": L() }],
1081
+ "rounded-bl": [{ "rounded-bl": L() }],
1082
+ "border-w": [{ border: R() }],
1083
+ "border-w-x": [{ "border-x": R() }],
1084
+ "border-w-y": [{ "border-y": R() }],
1085
+ "border-w-s": [{ "border-s": R() }],
1086
+ "border-w-e": [{ "border-e": R() }],
1087
+ "border-w-bs": [{ "border-bs": R() }],
1088
+ "border-w-be": [{ "border-be": R() }],
1089
+ "border-w-t": [{ "border-t": R() }],
1090
+ "border-w-r": [{ "border-r": R() }],
1091
+ "border-w-b": [{ "border-b": R() }],
1092
+ "border-w-l": [{ "border-l": R() }],
1093
+ "divide-x": [{ "divide-x": R() }],
1094
+ "divide-x-reverse": ["divide-x-reverse"],
1095
+ "divide-y": [{ "divide-y": R() }],
1096
+ "divide-y-reverse": ["divide-y-reverse"],
1097
+ "border-style": [{ border: [
1098
+ ...ie(),
1099
+ "hidden",
1100
+ "none"
1101
+ ] }],
1102
+ "divide-style": [{ divide: [
1103
+ ...ie(),
1104
+ "hidden",
1105
+ "none"
1106
+ ] }],
1107
+ "border-color": [{ border: F() }],
1108
+ "border-color-x": [{ "border-x": F() }],
1109
+ "border-color-y": [{ "border-y": F() }],
1110
+ "border-color-s": [{ "border-s": F() }],
1111
+ "border-color-e": [{ "border-e": F() }],
1112
+ "border-color-bs": [{ "border-bs": F() }],
1113
+ "border-color-be": [{ "border-be": F() }],
1114
+ "border-color-t": [{ "border-t": F() }],
1115
+ "border-color-r": [{ "border-r": F() }],
1116
+ "border-color-b": [{ "border-b": F() }],
1117
+ "border-color-l": [{ "border-l": F() }],
1118
+ "divide-color": [{ divide: F() }],
1119
+ "outline-style": [{ outline: [
1120
+ ...ie(),
1121
+ "none",
1122
+ "hidden"
1123
+ ] }],
1124
+ "outline-offset": [{ "outline-offset": [
1125
+ H,
1126
+ K,
1127
+ G
1128
+ ] }],
1129
+ "outline-w": [{ outline: [
1130
+ "",
1131
+ H,
1132
+ Ie,
1133
+ ke
1134
+ ] }],
1135
+ "outline-color": [{ outline: F() }],
1136
+ shadow: [{ shadow: [
1137
+ "",
1138
+ "inner",
1139
+ "none",
1140
+ u,
1141
+ Ve,
1142
+ Fe
1143
+ ] }],
1144
+ "shadow-color": [{ shadow: F() }],
1145
+ "inset-shadow": [{ "inset-shadow": [
1146
+ "none",
1147
+ d,
1148
+ Ve,
1149
+ Fe
1150
+ ] }],
1151
+ "inset-shadow-color": [{ "inset-shadow": F() }],
1152
+ "ring-w": [{ ring: R() }],
1153
+ "ring-w-inset": ["ring-inset"],
1154
+ "ring-color": [{ ring: F() }],
1155
+ "ring-offset-w": [{ "ring-offset": [H, ke] }],
1156
+ "ring-offset-color": [{ "ring-offset": F() }],
1157
+ "inset-ring-w": [{ "inset-ring": R() }],
1158
+ "inset-ring-color": [{ "inset-ring": F() }],
1159
+ "text-shadow": [{ "text-shadow": [
1160
+ "none",
1161
+ f,
1162
+ Ve,
1163
+ Fe
1164
+ ] }],
1165
+ "text-shadow-color": [{ "text-shadow": F() }],
1166
+ opacity: [{ opacity: [
1167
+ H,
1168
+ K,
1169
+ G
1170
+ ] }],
1171
+ "mix-blend": [{ "mix-blend": [
1172
+ ...ae(),
1173
+ "plus-darker",
1174
+ "plus-lighter"
1175
+ ] }],
1176
+ "bg-blend": [{ "bg-blend": ae() }],
1177
+ "mask-clip": [{ "mask-clip": [
1178
+ "border",
1179
+ "padding",
1180
+ "content",
1181
+ "fill",
1182
+ "stroke",
1183
+ "view"
1184
+ ] }, "mask-no-clip"],
1185
+ "mask-composite": [{ mask: [
1186
+ "add",
1187
+ "subtract",
1188
+ "intersect",
1189
+ "exclude"
1190
+ ] }],
1191
+ "mask-image-linear-pos": [{ "mask-linear": [H] }],
1192
+ "mask-image-linear-from-pos": [{ "mask-linear-from": z() }],
1193
+ "mask-image-linear-to-pos": [{ "mask-linear-to": z() }],
1194
+ "mask-image-linear-from-color": [{ "mask-linear-from": F() }],
1195
+ "mask-image-linear-to-color": [{ "mask-linear-to": F() }],
1196
+ "mask-image-t-from-pos": [{ "mask-t-from": z() }],
1197
+ "mask-image-t-to-pos": [{ "mask-t-to": z() }],
1198
+ "mask-image-t-from-color": [{ "mask-t-from": F() }],
1199
+ "mask-image-t-to-color": [{ "mask-t-to": F() }],
1200
+ "mask-image-r-from-pos": [{ "mask-r-from": z() }],
1201
+ "mask-image-r-to-pos": [{ "mask-r-to": z() }],
1202
+ "mask-image-r-from-color": [{ "mask-r-from": F() }],
1203
+ "mask-image-r-to-color": [{ "mask-r-to": F() }],
1204
+ "mask-image-b-from-pos": [{ "mask-b-from": z() }],
1205
+ "mask-image-b-to-pos": [{ "mask-b-to": z() }],
1206
+ "mask-image-b-from-color": [{ "mask-b-from": F() }],
1207
+ "mask-image-b-to-color": [{ "mask-b-to": F() }],
1208
+ "mask-image-l-from-pos": [{ "mask-l-from": z() }],
1209
+ "mask-image-l-to-pos": [{ "mask-l-to": z() }],
1210
+ "mask-image-l-from-color": [{ "mask-l-from": F() }],
1211
+ "mask-image-l-to-color": [{ "mask-l-to": F() }],
1212
+ "mask-image-x-from-pos": [{ "mask-x-from": z() }],
1213
+ "mask-image-x-to-pos": [{ "mask-x-to": z() }],
1214
+ "mask-image-x-from-color": [{ "mask-x-from": F() }],
1215
+ "mask-image-x-to-color": [{ "mask-x-to": F() }],
1216
+ "mask-image-y-from-pos": [{ "mask-y-from": z() }],
1217
+ "mask-image-y-to-pos": [{ "mask-y-to": z() }],
1218
+ "mask-image-y-from-color": [{ "mask-y-from": F() }],
1219
+ "mask-image-y-to-color": [{ "mask-y-to": F() }],
1220
+ "mask-image-radial": [{ "mask-radial": [K, G] }],
1221
+ "mask-image-radial-from-pos": [{ "mask-radial-from": z() }],
1222
+ "mask-image-radial-to-pos": [{ "mask-radial-to": z() }],
1223
+ "mask-image-radial-from-color": [{ "mask-radial-from": F() }],
1224
+ "mask-image-radial-to-color": [{ "mask-radial-to": F() }],
1225
+ "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
1226
+ "mask-image-radial-size": [{ "mask-radial": [{
1227
+ closest: ["side", "corner"],
1228
+ farthest: ["side", "corner"]
1229
+ }] }],
1230
+ "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1231
+ "mask-image-conic-pos": [{ "mask-conic": [H] }],
1232
+ "mask-image-conic-from-pos": [{ "mask-conic-from": z() }],
1233
+ "mask-image-conic-to-pos": [{ "mask-conic-to": z() }],
1234
+ "mask-image-conic-from-color": [{ "mask-conic-from": F() }],
1235
+ "mask-image-conic-to-color": [{ "mask-conic-to": F() }],
1236
+ "mask-mode": [{ mask: [
1237
+ "alpha",
1238
+ "luminance",
1239
+ "match"
1240
+ ] }],
1241
+ "mask-origin": [{ "mask-origin": [
1242
+ "border",
1243
+ "padding",
1244
+ "content",
1245
+ "fill",
1246
+ "stroke",
1247
+ "view"
1248
+ ] }],
1249
+ "mask-position": [{ mask: te() }],
1250
+ "mask-repeat": [{ mask: I() }],
1251
+ "mask-size": [{ mask: ne() }],
1252
+ "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1253
+ "mask-image": [{ mask: [
1254
+ "none",
1255
+ K,
1256
+ G
1257
+ ] }],
1258
+ filter: [{ filter: [
1259
+ "",
1260
+ "none",
1261
+ K,
1262
+ G
1263
+ ] }],
1264
+ blur: [{ blur: oe() }],
1265
+ brightness: [{ brightness: [
1266
+ H,
1267
+ K,
1268
+ G
1269
+ ] }],
1270
+ contrast: [{ contrast: [
1271
+ H,
1272
+ K,
1273
+ G
1274
+ ] }],
1275
+ "drop-shadow": [{ "drop-shadow": [
1276
+ "",
1277
+ "none",
1278
+ p,
1279
+ Ve,
1280
+ Fe
1281
+ ] }],
1282
+ "drop-shadow-color": [{ "drop-shadow": F() }],
1283
+ grayscale: [{ grayscale: [
1284
+ "",
1285
+ H,
1286
+ K,
1287
+ G
1288
+ ] }],
1289
+ "hue-rotate": [{ "hue-rotate": [
1290
+ H,
1291
+ K,
1292
+ G
1293
+ ] }],
1294
+ invert: [{ invert: [
1295
+ "",
1296
+ H,
1297
+ K,
1298
+ G
1299
+ ] }],
1300
+ saturate: [{ saturate: [
1301
+ H,
1302
+ K,
1303
+ G
1304
+ ] }],
1305
+ sepia: [{ sepia: [
1306
+ "",
1307
+ H,
1308
+ K,
1309
+ G
1310
+ ] }],
1311
+ "backdrop-filter": [{ "backdrop-filter": [
1312
+ "",
1313
+ "none",
1314
+ K,
1315
+ G
1316
+ ] }],
1317
+ "backdrop-blur": [{ "backdrop-blur": oe() }],
1318
+ "backdrop-brightness": [{ "backdrop-brightness": [
1319
+ H,
1320
+ K,
1321
+ G
1322
+ ] }],
1323
+ "backdrop-contrast": [{ "backdrop-contrast": [
1324
+ H,
1325
+ K,
1326
+ G
1327
+ ] }],
1328
+ "backdrop-grayscale": [{ "backdrop-grayscale": [
1329
+ "",
1330
+ H,
1331
+ K,
1332
+ G
1333
+ ] }],
1334
+ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1335
+ H,
1336
+ K,
1337
+ G
1338
+ ] }],
1339
+ "backdrop-invert": [{ "backdrop-invert": [
1340
+ "",
1341
+ H,
1342
+ K,
1343
+ G
1344
+ ] }],
1345
+ "backdrop-opacity": [{ "backdrop-opacity": [
1346
+ H,
1347
+ K,
1348
+ G
1349
+ ] }],
1350
+ "backdrop-saturate": [{ "backdrop-saturate": [
1351
+ H,
1352
+ K,
1353
+ G
1354
+ ] }],
1355
+ "backdrop-sepia": [{ "backdrop-sepia": [
1356
+ "",
1357
+ H,
1358
+ K,
1359
+ G
1360
+ ] }],
1361
+ "border-collapse": [{ border: ["collapse", "separate"] }],
1362
+ "border-spacing": [{ "border-spacing": w() }],
1363
+ "border-spacing-x": [{ "border-spacing-x": w() }],
1364
+ "border-spacing-y": [{ "border-spacing-y": w() }],
1365
+ "table-layout": [{ table: ["auto", "fixed"] }],
1366
+ caption: [{ caption: ["top", "bottom"] }],
1367
+ transition: [{ transition: [
1368
+ "",
1369
+ "all",
1370
+ "colors",
1371
+ "opacity",
1372
+ "shadow",
1373
+ "transform",
1374
+ "none",
1375
+ K,
1376
+ G
1377
+ ] }],
1378
+ "transition-behavior": [{ transition: ["normal", "discrete"] }],
1379
+ duration: [{ duration: [
1380
+ H,
1381
+ "initial",
1382
+ K,
1383
+ G
1384
+ ] }],
1385
+ ease: [{ ease: [
1386
+ "linear",
1387
+ "initial",
1388
+ _,
1389
+ K,
1390
+ G
1391
+ ] }],
1392
+ delay: [{ delay: [
1393
+ H,
1394
+ K,
1395
+ G
1396
+ ] }],
1397
+ animate: [{ animate: [
1398
+ "none",
1399
+ v,
1400
+ K,
1401
+ G
1402
+ ] }],
1403
+ backface: [{ backface: ["hidden", "visible"] }],
1404
+ perspective: [{ perspective: [
1405
+ h,
1406
+ K,
1407
+ G
1408
+ ] }],
1409
+ "perspective-origin": [{ "perspective-origin": x() }],
1410
+ rotate: [{ rotate: se() }],
1411
+ "rotate-x": [{ "rotate-x": se() }],
1412
+ "rotate-y": [{ "rotate-y": se() }],
1413
+ "rotate-z": [{ "rotate-z": se() }],
1414
+ scale: [{ scale: ce() }],
1415
+ "scale-x": [{ "scale-x": ce() }],
1416
+ "scale-y": [{ "scale-y": ce() }],
1417
+ "scale-z": [{ "scale-z": ce() }],
1418
+ "scale-3d": ["scale-3d"],
1419
+ skew: [{ skew: le() }],
1420
+ "skew-x": [{ "skew-x": le() }],
1421
+ "skew-y": [{ "skew-y": le() }],
1422
+ transform: [{ transform: [
1423
+ K,
1424
+ G,
1425
+ "",
1426
+ "none",
1427
+ "gpu",
1428
+ "cpu"
1429
+ ] }],
1430
+ "transform-origin": [{ origin: x() }],
1431
+ "transform-style": [{ transform: ["3d", "flat"] }],
1432
+ translate: [{ translate: ue() }],
1433
+ "translate-x": [{ "translate-x": ue() }],
1434
+ "translate-y": [{ "translate-y": ue() }],
1435
+ "translate-z": [{ "translate-z": ue() }],
1436
+ "translate-none": ["translate-none"],
1437
+ zoom: [{ zoom: [
1438
+ U,
1439
+ K,
1440
+ G
1441
+ ] }],
1442
+ accent: [{ accent: F() }],
1443
+ appearance: [{ appearance: ["none", "auto"] }],
1444
+ "caret-color": [{ caret: F() }],
1445
+ "color-scheme": [{ scheme: [
1446
+ "normal",
1447
+ "dark",
1448
+ "light",
1449
+ "light-dark",
1450
+ "only-dark",
1451
+ "only-light"
1452
+ ] }],
1453
+ cursor: [{ cursor: [
1454
+ "auto",
1455
+ "default",
1456
+ "pointer",
1457
+ "wait",
1458
+ "text",
1459
+ "move",
1460
+ "help",
1461
+ "not-allowed",
1462
+ "none",
1463
+ "context-menu",
1464
+ "progress",
1465
+ "cell",
1466
+ "crosshair",
1467
+ "vertical-text",
1468
+ "alias",
1469
+ "copy",
1470
+ "no-drop",
1471
+ "grab",
1472
+ "grabbing",
1473
+ "all-scroll",
1474
+ "col-resize",
1475
+ "row-resize",
1476
+ "n-resize",
1477
+ "e-resize",
1478
+ "s-resize",
1479
+ "w-resize",
1480
+ "ne-resize",
1481
+ "nw-resize",
1482
+ "se-resize",
1483
+ "sw-resize",
1484
+ "ew-resize",
1485
+ "ns-resize",
1486
+ "nesw-resize",
1487
+ "nwse-resize",
1488
+ "zoom-in",
1489
+ "zoom-out",
1490
+ K,
1491
+ G
1492
+ ] }],
1493
+ "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
1494
+ "pointer-events": [{ "pointer-events": ["auto", "none"] }],
1495
+ resize: [{ resize: [
1496
+ "none",
1497
+ "",
1498
+ "y",
1499
+ "x"
1500
+ ] }],
1501
+ "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1502
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": F() }],
1503
+ "scrollbar-track-color": [{ "scrollbar-track": F() }],
1504
+ "scrollbar-gutter": [{ "scrollbar-gutter": [
1505
+ "auto",
1506
+ "stable",
1507
+ "both"
1508
+ ] }],
1509
+ "scrollbar-w": [{ scrollbar: [
1510
+ "auto",
1511
+ "thin",
1512
+ "none"
1513
+ ] }],
1514
+ "scroll-m": [{ "scroll-m": w() }],
1515
+ "scroll-mx": [{ "scroll-mx": w() }],
1516
+ "scroll-my": [{ "scroll-my": w() }],
1517
+ "scroll-ms": [{ "scroll-ms": w() }],
1518
+ "scroll-me": [{ "scroll-me": w() }],
1519
+ "scroll-mbs": [{ "scroll-mbs": w() }],
1520
+ "scroll-mbe": [{ "scroll-mbe": w() }],
1521
+ "scroll-mt": [{ "scroll-mt": w() }],
1522
+ "scroll-mr": [{ "scroll-mr": w() }],
1523
+ "scroll-mb": [{ "scroll-mb": w() }],
1524
+ "scroll-ml": [{ "scroll-ml": w() }],
1525
+ "scroll-p": [{ "scroll-p": w() }],
1526
+ "scroll-px": [{ "scroll-px": w() }],
1527
+ "scroll-py": [{ "scroll-py": w() }],
1528
+ "scroll-ps": [{ "scroll-ps": w() }],
1529
+ "scroll-pe": [{ "scroll-pe": w() }],
1530
+ "scroll-pbs": [{ "scroll-pbs": w() }],
1531
+ "scroll-pbe": [{ "scroll-pbe": w() }],
1532
+ "scroll-pt": [{ "scroll-pt": w() }],
1533
+ "scroll-pr": [{ "scroll-pr": w() }],
1534
+ "scroll-pb": [{ "scroll-pb": w() }],
1535
+ "scroll-pl": [{ "scroll-pl": w() }],
1536
+ "snap-align": [{ snap: [
1537
+ "start",
1538
+ "end",
1539
+ "center",
1540
+ "align-none"
1541
+ ] }],
1542
+ "snap-stop": [{ snap: ["normal", "always"] }],
1543
+ "snap-type": [{ snap: [
1544
+ "none",
1545
+ "x",
1546
+ "y",
1547
+ "both"
1548
+ ] }],
1549
+ "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1550
+ touch: [{ touch: [
1551
+ "auto",
1552
+ "none",
1553
+ "manipulation"
1554
+ ] }],
1555
+ "touch-x": [{ "touch-pan": [
1556
+ "x",
1557
+ "left",
1558
+ "right"
1559
+ ] }],
1560
+ "touch-y": [{ "touch-pan": [
1561
+ "y",
1562
+ "up",
1563
+ "down"
1564
+ ] }],
1565
+ "touch-pz": ["touch-pinch-zoom"],
1566
+ select: [{ select: [
1567
+ "none",
1568
+ "text",
1569
+ "all",
1570
+ "auto"
1571
+ ] }],
1572
+ "will-change": [{ "will-change": [
1573
+ "auto",
1574
+ "scroll",
1575
+ "contents",
1576
+ "transform",
1577
+ K,
1578
+ G
1579
+ ] }],
1580
+ fill: [{ fill: ["none", ...F()] }],
1581
+ "stroke-w": [{ stroke: [
1582
+ H,
1583
+ Ie,
1584
+ ke,
1585
+ Ae
1586
+ ] }],
1587
+ stroke: [{ stroke: ["none", ...F()] }],
1588
+ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1589
+ },
1590
+ conflictingClassGroups: {
1591
+ "container-named": ["container-type"],
1592
+ overflow: ["overflow-x", "overflow-y"],
1593
+ overscroll: ["overscroll-x", "overscroll-y"],
1594
+ inset: [
1595
+ "inset-x",
1596
+ "inset-y",
1597
+ "inset-bs",
1598
+ "inset-be",
1599
+ "start",
1600
+ "end",
1601
+ "top",
1602
+ "right",
1603
+ "bottom",
1604
+ "left"
1605
+ ],
1606
+ "inset-x": [
1607
+ "start",
1608
+ "end",
1609
+ "right",
1610
+ "left"
1611
+ ],
1612
+ "inset-y": [
1613
+ "inset-bs",
1614
+ "inset-be",
1615
+ "top",
1616
+ "bottom"
1617
+ ],
1618
+ flex: [
1619
+ "basis",
1620
+ "grow",
1621
+ "shrink"
1622
+ ],
1623
+ gap: ["gap-x", "gap-y"],
1624
+ p: [
1625
+ "px",
1626
+ "py",
1627
+ "ps",
1628
+ "pe",
1629
+ "pbs",
1630
+ "pbe",
1631
+ "pt",
1632
+ "pr",
1633
+ "pb",
1634
+ "pl"
1635
+ ],
1636
+ px: [
1637
+ "ps",
1638
+ "pe",
1639
+ "pr",
1640
+ "pl"
1641
+ ],
1642
+ py: [
1643
+ "pbs",
1644
+ "pbe",
1645
+ "pt",
1646
+ "pb"
1647
+ ],
1648
+ m: [
1649
+ "mx",
1650
+ "my",
1651
+ "ms",
1652
+ "me",
1653
+ "mbs",
1654
+ "mbe",
1655
+ "mt",
1656
+ "mr",
1657
+ "mb",
1658
+ "ml"
1659
+ ],
1660
+ mx: [
1661
+ "ms",
1662
+ "me",
1663
+ "mr",
1664
+ "ml"
1665
+ ],
1666
+ my: [
1667
+ "mbs",
1668
+ "mbe",
1669
+ "mt",
1670
+ "mb"
1671
+ ],
1672
+ size: ["w", "h"],
1673
+ "font-size": ["leading"],
1674
+ "fvn-normal": [
1675
+ "fvn-ordinal",
1676
+ "fvn-slashed-zero",
1677
+ "fvn-figure",
1678
+ "fvn-spacing",
1679
+ "fvn-fraction"
1680
+ ],
1681
+ "fvn-ordinal": ["fvn-normal"],
1682
+ "fvn-slashed-zero": ["fvn-normal"],
1683
+ "fvn-figure": ["fvn-normal"],
1684
+ "fvn-spacing": ["fvn-normal"],
1685
+ "fvn-fraction": ["fvn-normal"],
1686
+ "line-clamp": ["display", "overflow"],
1687
+ rounded: [
1688
+ "rounded-s",
1689
+ "rounded-e",
1690
+ "rounded-t",
1691
+ "rounded-r",
1692
+ "rounded-b",
1693
+ "rounded-l",
1694
+ "rounded-ss",
1695
+ "rounded-se",
1696
+ "rounded-ee",
1697
+ "rounded-es",
1698
+ "rounded-tl",
1699
+ "rounded-tr",
1700
+ "rounded-br",
1701
+ "rounded-bl"
1702
+ ],
1703
+ "rounded-s": ["rounded-ss", "rounded-es"],
1704
+ "rounded-e": ["rounded-se", "rounded-ee"],
1705
+ "rounded-t": ["rounded-tl", "rounded-tr"],
1706
+ "rounded-r": ["rounded-tr", "rounded-br"],
1707
+ "rounded-b": ["rounded-br", "rounded-bl"],
1708
+ "rounded-l": ["rounded-tl", "rounded-bl"],
1709
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
1710
+ "border-w": [
1711
+ "border-w-x",
1712
+ "border-w-y",
1713
+ "border-w-s",
1714
+ "border-w-e",
1715
+ "border-w-bs",
1716
+ "border-w-be",
1717
+ "border-w-t",
1718
+ "border-w-r",
1719
+ "border-w-b",
1720
+ "border-w-l"
1721
+ ],
1722
+ "border-w-x": [
1723
+ "border-w-s",
1724
+ "border-w-e",
1725
+ "border-w-r",
1726
+ "border-w-l"
1727
+ ],
1728
+ "border-w-y": [
1729
+ "border-w-bs",
1730
+ "border-w-be",
1731
+ "border-w-t",
1732
+ "border-w-b"
1733
+ ],
1734
+ "border-color": [
1735
+ "border-color-x",
1736
+ "border-color-y",
1737
+ "border-color-s",
1738
+ "border-color-e",
1739
+ "border-color-bs",
1740
+ "border-color-be",
1741
+ "border-color-t",
1742
+ "border-color-r",
1743
+ "border-color-b",
1744
+ "border-color-l"
1745
+ ],
1746
+ "border-color-x": [
1747
+ "border-color-s",
1748
+ "border-color-e",
1749
+ "border-color-r",
1750
+ "border-color-l"
1751
+ ],
1752
+ "border-color-y": [
1753
+ "border-color-bs",
1754
+ "border-color-be",
1755
+ "border-color-t",
1756
+ "border-color-b"
1757
+ ],
1758
+ translate: [
1759
+ "translate-x",
1760
+ "translate-y",
1761
+ "translate-none"
1762
+ ],
1763
+ "translate-none": [
1764
+ "translate",
1765
+ "translate-x",
1766
+ "translate-y",
1767
+ "translate-z"
1768
+ ],
1769
+ "scroll-m": [
1770
+ "scroll-mx",
1771
+ "scroll-my",
1772
+ "scroll-ms",
1773
+ "scroll-me",
1774
+ "scroll-mbs",
1775
+ "scroll-mbe",
1776
+ "scroll-mt",
1777
+ "scroll-mr",
1778
+ "scroll-mb",
1779
+ "scroll-ml"
1780
+ ],
1781
+ "scroll-mx": [
1782
+ "scroll-ms",
1783
+ "scroll-me",
1784
+ "scroll-mr",
1785
+ "scroll-ml"
1786
+ ],
1787
+ "scroll-my": [
1788
+ "scroll-mbs",
1789
+ "scroll-mbe",
1790
+ "scroll-mt",
1791
+ "scroll-mb"
1792
+ ],
1793
+ "scroll-p": [
1794
+ "scroll-px",
1795
+ "scroll-py",
1796
+ "scroll-ps",
1797
+ "scroll-pe",
1798
+ "scroll-pbs",
1799
+ "scroll-pbe",
1800
+ "scroll-pt",
1801
+ "scroll-pr",
1802
+ "scroll-pb",
1803
+ "scroll-pl"
1804
+ ],
1805
+ "scroll-px": [
1806
+ "scroll-ps",
1807
+ "scroll-pe",
1808
+ "scroll-pr",
1809
+ "scroll-pl"
1810
+ ],
1811
+ "scroll-py": [
1812
+ "scroll-pbs",
1813
+ "scroll-pbe",
1814
+ "scroll-pt",
1815
+ "scroll-pb"
1816
+ ],
1817
+ touch: [
1818
+ "touch-x",
1819
+ "touch-y",
1820
+ "touch-pz"
1821
+ ],
1822
+ "touch-x": ["touch"],
1823
+ "touch-y": ["touch"],
1824
+ "touch-pz": ["touch"]
1825
+ },
1826
+ conflictingClassGroupModifiers: { "font-size": ["leading"] },
1827
+ postfixLookupClassGroups: ["container-type"],
1828
+ orderSensitiveModifiers: [
1829
+ "*",
1830
+ "**",
1831
+ "after",
1832
+ "backdrop",
1833
+ "before",
1834
+ "details-content",
1835
+ "file",
1836
+ "first-letter",
1837
+ "first-line",
1838
+ "marker",
1839
+ "placeholder",
1840
+ "selection"
1841
+ ]
1842
+ };
1843
+ }), $e = {
1844
+ lightBrown: "#BFA59A",
1845
+ brown: "#7D5D4F",
1846
+ lightGray: "#72787F",
1847
+ gray: "#9EA4AA",
1848
+ lightBlack: "#26282B",
1849
+ lightWhite: "#EBE3E0",
1850
+ darkBrown: "#3F271E",
1851
+ lighterGray: "#C9CDD2",
1852
+ lightBlue: "#334155",
1853
+ chocolate: "#3E2E28",
1854
+ blue: "#334EAC",
1855
+ white: "#E8EBED",
1856
+ whiteGray: "#9EA4AA",
1857
+ grayBlue: "#334155",
1858
+ cream: "#F5F1EF",
1859
+ blueGray: "#334155",
1860
+ lightCream: "#F5F1EF",
1861
+ lightGreen: "#34D399",
1862
+ darkBlue: "#111827",
1863
+ light: "#E2E8F0",
1864
+ perpleWhite: "#F0E5FF",
1865
+ green500: "green-500",
1866
+ red500: "red-500",
1867
+ black: "#000",
1868
+ plainWhite: "#fff",
1869
+ gray700: "gray-700",
1870
+ gray200: "gray-200",
1871
+ gray300: "gray-300",
1872
+ gray800: "gray-800",
1873
+ gray500: "gray-500",
1874
+ gray100: "gray-100",
1875
+ gray400: "gray-400",
1876
+ perple60: "purple-500/60",
1877
+ perple75: "purple-500/75",
1878
+ blue500: "blue-500",
1879
+ indigo500: "indigo-500",
1880
+ red700: "red-700",
1881
+ gray600: "gray-600",
1882
+ yellow500: "yellow-500",
1883
+ pink800: "pink-800",
1884
+ blue400: "blue-400"
1885
+ }, J = (...e) => Qe(h(...e)), et = /* @__PURE__ */ f(((e) => {
1886
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
1887
+ function r(e, n, r) {
1888
+ var i = null;
1889
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
1890
+ else r = n;
1891
+ return n = r.ref, {
1892
+ $$typeof: t,
1893
+ type: e,
1894
+ key: i,
1895
+ ref: n === void 0 ? null : n,
1896
+ props: r
1897
+ };
1898
+ }
1899
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
1900
+ })), tt = /* @__PURE__ */ f(((e) => {
1901
+ process.env.NODE_ENV !== "production" && (function() {
1902
+ function t(e) {
1903
+ if (e == null) return null;
1904
+ if (typeof e == "function") return e.$$typeof === A ? null : e.displayName || e.name || null;
1905
+ if (typeof e == "string") return e;
1906
+ switch (e) {
1907
+ case v: return "Fragment";
1908
+ case b: return "Profiler";
1909
+ case y: return "StrictMode";
1910
+ case w: return "Suspense";
1911
+ case T: return "SuspenseList";
1912
+ case O: return "Activity";
1913
+ case k: return "ViewTransition";
1914
+ }
1915
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
1916
+ case _: return "Portal";
1917
+ case S: return e.displayName || "Context";
1918
+ case x: return (e._context.displayName || "Context") + ".Consumer";
1919
+ case C:
1920
+ var n = e.render;
1921
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
1922
+ case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
1923
+ case D:
1924
+ n = e._payload, e = e._init;
1925
+ try {
1926
+ return t(e(n));
1927
+ } catch {}
1928
+ }
1929
+ return null;
1930
+ }
1931
+ function n(e) {
1932
+ return "" + e;
1933
+ }
1934
+ function r(e) {
1935
+ try {
1936
+ n(e);
1937
+ var t = !1;
1938
+ } catch {
1939
+ t = !0;
1940
+ }
1941
+ if (t) {
1942
+ t = console;
1943
+ var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
1944
+ return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
1945
+ }
1946
+ }
1947
+ function i(e) {
1948
+ if (e === v) return "<>";
1949
+ if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
1950
+ try {
1951
+ var n = t(e);
1952
+ return n ? "<" + n + ">" : "<...>";
1953
+ } catch {
1954
+ return "<...>";
1955
+ }
1956
+ }
1957
+ function a() {
1958
+ var e = j.A;
1959
+ return e === null ? null : e.getOwner();
1960
+ }
1961
+ function o() {
1962
+ return Error("react-stack-top-frame");
1963
+ }
1964
+ function s(e) {
1965
+ if (M.call(e, "key")) {
1966
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
1967
+ if (t && t.isReactWarning) return !1;
1968
+ }
1969
+ return e.key !== void 0;
1970
+ }
1971
+ function c(e, t) {
1972
+ function n() {
1973
+ ee || (ee = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
1974
+ }
1975
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
1976
+ get: n,
1977
+ configurable: !0
1978
+ });
1979
+ }
1980
+ function l() {
1981
+ var e = t(this.type);
1982
+ return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
1983
+ }
1984
+ function u(e, t, n, r, i, a) {
1985
+ var o = n.ref;
1986
+ return e = {
1987
+ $$typeof: g,
1988
+ type: e,
1989
+ key: t,
1990
+ props: n,
1991
+ _owner: r
1992
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
1993
+ enumerable: !1,
1994
+ value: null
1995
+ }) : Object.defineProperty(e, "ref", {
1996
+ enumerable: !1,
1997
+ get: l
1998
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
1999
+ configurable: !1,
2000
+ enumerable: !1,
2001
+ writable: !0,
2002
+ value: 0
2003
+ }), Object.defineProperty(e, "_debugInfo", {
2004
+ configurable: !1,
2005
+ enumerable: !1,
2006
+ writable: !0,
2007
+ value: null
2008
+ }), Object.defineProperty(e, "_debugStack", {
2009
+ configurable: !1,
2010
+ enumerable: !1,
2011
+ writable: !0,
2012
+ value: i
2013
+ }), Object.defineProperty(e, "_debugTask", {
2014
+ configurable: !1,
2015
+ enumerable: !1,
2016
+ writable: !0,
2017
+ value: a
2018
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
2019
+ }
2020
+ function d(e, n, i, o, l, d) {
2021
+ var p = n.children;
2022
+ if (p !== void 0) {
2023
+ if (o) {
2024
+ if (N(p)) {
2025
+ for (o = 0; o < p.length; o++) f(p[o]);
2026
+ Object.freeze && Object.freeze(p);
2027
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2028
+ } else f(p);
2029
+ }
2030
+ if (M.call(n, "key")) {
2031
+ p = t(e);
2032
+ var m = Object.keys(n).filter(function(e) {
2033
+ return e !== "key";
2034
+ });
2035
+ o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", ne[p + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, p, m, p), ne[p + o] = !0);
2036
+ }
2037
+ if (p = null, i !== void 0 && (r(i), p = "" + i), s(n) && (r(n.key), p = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
2038
+ else i = n;
2039
+ return p && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), u(e, p, i, a(), l, d);
2040
+ }
2041
+ function f(e) {
2042
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
2043
+ }
2044
+ function m(e) {
2045
+ return typeof e == "object" && !!e && e.$$typeof === g;
2046
+ }
2047
+ var h = p("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.view_transition"), A = Symbol.for("react.client.reference"), j = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, N = Array.isArray, P = console.createTask ? console.createTask : function() {
2048
+ return null;
2049
+ };
2050
+ h = { react_stack_bottom_frame: function(e) {
2051
+ return e();
2052
+ } };
2053
+ var ee, F = {}, te = h.react_stack_bottom_frame.bind(h, o)(), I = P(i(o)), ne = {};
2054
+ e.Fragment = v, e.jsx = function(e, t, n) {
2055
+ var r = 1e4 > j.recentlyCreatedOwnerStacks++;
2056
+ if (r) {
2057
+ var a = Error.stackTraceLimit;
2058
+ Error.stackTraceLimit = 10;
2059
+ var o = Error("react-stack-top-frame");
2060
+ Error.stackTraceLimit = a;
2061
+ } else o = te;
2062
+ return d(e, t, n, !1, o, r ? P(i(e)) : I);
2063
+ }, e.jsxs = function(e, t, n) {
2064
+ var r = 1e4 > j.recentlyCreatedOwnerStacks++;
2065
+ if (r) {
2066
+ var a = Error.stackTraceLimit;
2067
+ Error.stackTraceLimit = 10;
2068
+ var o = Error("react-stack-top-frame");
2069
+ Error.stackTraceLimit = a;
2070
+ } else o = te;
2071
+ return d(e, t, n, !0, o, r ? P(i(e)) : I);
2072
+ };
2073
+ })();
2074
+ })), Y = (/* @__PURE__ */ f(((e, t) => {
2075
+ t.exports = process.env.NODE_ENV === "production" ? et() : tt();
2076
+ })))(), nt = v("inline-flex items-center justify-center font-[500] transition-colors select-none", {
2077
+ variants: {
2078
+ variant: {
2079
+ default: "bg-slate-100 text-slate-700 hover:bg-slate-200",
2080
+ solid: "bg-[#FB713B] text-white hover:bg-[#EA580C]",
2081
+ primary: "bg-[#0F172A] text-white hover:bg-[#1E293B]",
2082
+ secondary: "bg-slate-100 text-[#0F172A] hover:bg-slate-200",
2083
+ destructive: "bg-red-500 text-white hover:bg-red-600",
2084
+ outline: "border border-cyan-500 text-cyan-600 bg-white hover:bg-cyan-50/50",
2085
+ success: "bg-emerald-100 text-emerald-700 hover:bg-emerald-200/80",
2086
+ warning: "bg-amber-100 text-amber-800 hover:bg-amber-200/80",
2087
+ info: "bg-blue-100 text-blue-700 hover:bg-blue-200/80"
2088
+ },
2089
+ shape: {
2090
+ rounded: "rounded-md",
2091
+ pill: "rounded-full",
2092
+ square: "rounded"
2093
+ },
2094
+ size: {
2095
+ sm: "text-[11px] px-2 py-0.5 gap-1",
2096
+ default: "text-xs px-2.5 py-0.5 gap-1.5",
2097
+ lg: "text-sm px-3.5 py-1 gap-2"
2098
+ }
2099
+ },
2100
+ defaultVariants: {
2101
+ variant: "default",
2102
+ shape: "rounded",
2103
+ size: "default"
2104
+ }
2105
+ }), rt = n(({ className: e, variant: t = "default", shape: n = "rounded", size: r = "default", icon: i, cornerCheck: a = !1, onRemove: o, children: s, ...c }, l) => /* @__PURE__ */ (0, Y.jsxs)("div", {
2106
+ ref: l,
2107
+ className: J(nt({
2108
+ variant: t,
2109
+ shape: n,
2110
+ size: r
2111
+ }), a && "relative overflow-hidden pr-4.5 border border-cyan-500 text-cyan-600 bg-white", e),
2112
+ ...c,
2113
+ children: [
2114
+ i && /* @__PURE__ */ (0, Y.jsx)("span", {
2115
+ className: "flex-shrink-0 flex items-center justify-center",
2116
+ children: i
2117
+ }),
2118
+ /* @__PURE__ */ (0, Y.jsx)("span", { children: s }),
2119
+ o && /* @__PURE__ */ (0, Y.jsx)("button", {
2120
+ type: "button",
2121
+ onClick: o,
2122
+ className: "ml-1 -mr-1 flex h-3.5 w-3.5 items-center justify-center rounded-full hover:bg-black/10 focus:outline-none",
2123
+ "aria-label": "Remove tag",
2124
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2125
+ className: "h-2.5 w-2.5",
2126
+ fill: "none",
2127
+ stroke: "currentColor",
2128
+ viewBox: "0 0 24 24",
2129
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2130
+ strokeLinecap: "round",
2131
+ strokeLinejoin: "round",
2132
+ strokeWidth: 2,
2133
+ d: "M6 18L18 6M6 6l12 12"
2134
+ })
2135
+ })
2136
+ }),
2137
+ a && /* @__PURE__ */ (0, Y.jsx)("div", {
2138
+ className: "absolute bottom-0 right-0 w-0 h-0 border-b-[14px] border-b-cyan-500 border-l-[14px] border-l-transparent pointer-events-none",
2139
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2140
+ className: "absolute -bottom-[-2px] -right-[0px] w-2 h-2 text-white transform -translate-x-[1px] translate-y-[1px]",
2141
+ fill: "none",
2142
+ stroke: "currentColor",
2143
+ viewBox: "0 0 24 24",
2144
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2145
+ strokeLinecap: "round",
2146
+ strokeLinejoin: "round",
2147
+ strokeWidth: 4,
2148
+ d: "M5 13l4 4L19 7"
2149
+ })
2150
+ })
2151
+ })
2152
+ ]
2153
+ }));
2154
+ rt.displayName = "Badge";
2155
+ //#endregion
2156
+ //#region src/components/Box/Box.tsx
2157
+ var it = v("box-border transition-colors", {
2158
+ variants: {
2159
+ variant: {
2160
+ default: "",
2161
+ surface: "bg-white border border-slate-200",
2162
+ card: "bg-white border border-slate-200 shadow-sm",
2163
+ muted: "bg-slate-50 border border-slate-100 text-slate-700",
2164
+ subtle: "bg-slate-100 text-slate-800",
2165
+ dark: "bg-[#0F172A] text-white border border-slate-800",
2166
+ outline: "border border-slate-200 bg-transparent"
2167
+ },
2168
+ padding: {
2169
+ none: "p-0",
2170
+ xs: "p-2",
2171
+ sm: "p-3",
2172
+ default: "p-4",
2173
+ md: "p-5",
2174
+ lg: "p-6",
2175
+ xl: "p-8"
2176
+ },
2177
+ rounded: {
2178
+ none: "rounded-none",
2179
+ xs: "rounded",
2180
+ sm: "rounded-md",
2181
+ default: "rounded-lg",
2182
+ lg: "rounded-xl",
2183
+ xl: "rounded-2xl",
2184
+ "2xl": "rounded-3xl",
2185
+ full: "rounded-full"
2186
+ },
2187
+ shadow: {
2188
+ none: "shadow-none",
2189
+ sm: "shadow-sm",
2190
+ default: "shadow",
2191
+ md: "shadow-md",
2192
+ lg: "shadow-lg"
2193
+ }
2194
+ },
2195
+ defaultVariants: {
2196
+ variant: "default",
2197
+ padding: "none",
2198
+ rounded: "none",
2199
+ shadow: "none"
2200
+ }
2201
+ }), at = n(({ as: e, variant: t = "default", padding: n = "none", rounded: r = "none", shadow: i = "none", className: a, children: o, ...s }, c) => /* @__PURE__ */ (0, Y.jsx)(e || "div", {
2202
+ ref: c,
2203
+ className: J(it({
2204
+ variant: t,
2205
+ padding: n,
2206
+ rounded: r,
2207
+ shadow: i
2208
+ }), a),
2209
+ ...s,
2210
+ children: o
2211
+ }));
2212
+ at.displayName = "Box";
2213
+ //#endregion
2214
+ //#region src/components/types.ts
2215
+ var X = /* @__PURE__ */ function(e) {
2216
+ return e.Default = "default", e.Destructive = "destructive", e.Cancel = "cancel", e.Subtle = "subtle", e.Ghost = "ghost", e.Link = "link", e;
2217
+ }({}), Z = /* @__PURE__ */ function(e) {
2218
+ return e.Row = "row", e.Column = "column", e;
2219
+ }({}), ot = /* @__PURE__ */ function(e) {
2220
+ return e.Small = "sm", e.Default = "default", e.Large = "lg", e.Icon = "icon", e;
2221
+ }({}), st = /* @__PURE__ */ function(e) {
2222
+ return e.Left = "left", e.Right = "right", e;
2223
+ }({}), ct = /* @__PURE__ */ function(e) {
2224
+ return e.Default = "default", e.Primary = "primary", e.Secondary = "secondary", e.Success = "success", e.Warning = "warning", e.Destructive = "destructive", e.Info = "info", e.Muted = "muted", e;
2225
+ }({}), lt = /* @__PURE__ */ function(e) {
2226
+ return e.ExtraSmall = "xs", e.Small = "sm", e.Default = "default", e.Large = "lg", e.ExtraLarge = "xl", e;
2227
+ }({}), ut = /* @__PURE__ */ function(e) {
2228
+ return e.Square = "square", e.Rounded = "rounded", e.Pill = "pill", e.Circle = "circle", e;
2229
+ }({}), dt = /* @__PURE__ */ function(e) {
2230
+ return e.Horizontal = "horizontal", e.Vertical = "vertical", e;
2231
+ }({}), ft = /* @__PURE__ */ function(e) {
2232
+ return e.Top = "top", e.Right = "right", e.Bottom = "bottom", e.Left = "left", e;
2233
+ }({}), pt = /* @__PURE__ */ function(e) {
2234
+ return e.Left = "left", e.Center = "center", e.Right = "right", e;
2235
+ }({}), mt = /* @__PURE__ */ function(e) {
2236
+ return e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Subtitle1 = "subtitle1", e.Subtitle2 = "subtitle2", e.Body1 = "body1", e.Body2 = "body2", e.Caption = "caption", e.Overline = "overline", e;
2237
+ }({}), ht = /* @__PURE__ */ function(e) {
2238
+ return e.Success = "success", e.Warning = "warning", e.Error = "error", e.Info = "info", e;
2239
+ }({}), gt = v("inline-flex items-center justify-center font-[500] rounded-md focus:outline-none transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed gap-2", {
2240
+ variants: {
2241
+ variant: {
2242
+ [X.Default]: "bg-[#0F172A] text-white hover:bg-[#1E293B]",
2243
+ [X.Destructive]: "bg-[#EF4444] text-white hover:bg-[#DC2626]",
2244
+ [X.Cancel]: "bg-white text-[#0F172A] border border-gray-200 hover:bg-slate-100 shadow-sm",
2245
+ [X.Subtle]: "bg-slate-100 text-[#0F172A] hover:bg-slate-200",
2246
+ [X.Ghost]: "bg-transparent text-[#0F172A] hover:bg-slate-100",
2247
+ [X.Link]: "bg-transparent text-[#0F172A] hover:underline underline-offset-4"
2248
+ },
2249
+ size: {
2250
+ [ot.Small]: "h-9 px-3 text-xs leading-4",
2251
+ [ot.Default]: "h-10 px-4 text-sm leading-5",
2252
+ [ot.Large]: "h-11 px-6 text-base leading-6",
2253
+ [ot.Icon]: "h-10 w-10 p-0 flex items-center justify-center"
2254
+ }
2255
+ },
2256
+ defaultVariants: {
2257
+ variant: X.Default,
2258
+ size: ot.Default
2259
+ }
2260
+ }), _t = n(({ variant: e = X.Default, size: t = ot.Default, iconUrl: n, iconPosition: r = st.Left, isLoading: i = !1, disabled: a, className: o, children: s, ...c }, l) => {
2261
+ let u = s != null && s !== "", d = () => n ? typeof n == "string" ? /* @__PURE__ */ (0, Y.jsx)("img", {
2262
+ src: n,
2263
+ alt: "Icon",
2264
+ className: "w-5 h-5 object-contain"
2265
+ }) : /* @__PURE__ */ (0, Y.jsx)(n, { className: "w-5 h-5" }) : null, f = () => /* @__PURE__ */ (0, Y.jsxs)("svg", {
2266
+ className: "animate-spin -ml-1 mr-2 h-4 w-4 text-current",
2267
+ xmlns: "http://www.w3.org/2000/svg",
2268
+ fill: "none",
2269
+ viewBox: "0 0 24 24",
2270
+ children: [/* @__PURE__ */ (0, Y.jsx)("circle", {
2271
+ className: "opacity-25",
2272
+ cx: "12",
2273
+ cy: "12",
2274
+ r: "10",
2275
+ stroke: "currentColor",
2276
+ strokeWidth: "4"
2277
+ }), /* @__PURE__ */ (0, Y.jsx)("path", {
2278
+ className: "opacity-75",
2279
+ fill: "currentColor",
2280
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
2281
+ })]
2282
+ });
2283
+ return /* @__PURE__ */ (0, Y.jsxs)("button", {
2284
+ ref: l,
2285
+ className: J(gt({
2286
+ variant: e,
2287
+ size: t,
2288
+ className: o
2289
+ })),
2290
+ disabled: i || a,
2291
+ ...c,
2292
+ children: [
2293
+ i && f(),
2294
+ !i && n && r === st.Left && d(),
2295
+ u && /* @__PURE__ */ (0, Y.jsx)("span", { children: s }),
2296
+ !i && n && r === st.Right && d()
2297
+ ]
2298
+ });
2299
+ });
2300
+ _t.displayName = "DefaultButton";
2301
+ //#endregion
2302
+ //#region src/components/Button/GroupIconButton/GroupIconButton.tsx
2303
+ var vt = v([
2304
+ "flex",
2305
+ "items-center",
2306
+ "justify-center",
2307
+ "bg-transparent"
2308
+ ], {
2309
+ variants: { direction: {
2310
+ [Z.Row]: "flex-row gap-2",
2311
+ [Z.Column]: "flex-col gap-2"
2312
+ } },
2313
+ defaultVariants: { direction: Z.Row }
2314
+ }), yt = n(({ iconUrl: e, className: t, children: n, direction: r = Z.Row, ...i }, a) => /* @__PURE__ */ (0, Y.jsx)("div", {
2315
+ ref: a,
2316
+ className: J(vt({ direction: r }), t),
2317
+ ...i,
2318
+ "data-testid": "groupicon",
2319
+ children: n
2320
+ })), bt = v([
2321
+ "flex",
2322
+ "items-center",
2323
+ "justify-start",
2324
+ "bg-transparent",
2325
+ "p-2"
2326
+ ], {
2327
+ variants: { direction: {
2328
+ [Z.Row]: "flex-row gap-2",
2329
+ [Z.Column]: "flex-col"
2330
+ } },
2331
+ defaultVariants: { direction: Z.Row }
2332
+ }), xt = n(({ iconUrl: e, text: t, backgroundColor: n, className: r, children: i, iconStyle: a, direction: o = Z.Row, ...s }, c) => /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: e && /* @__PURE__ */ (0, Y.jsxs)("button", {
2333
+ ref: c,
2334
+ className: J(bt({ direction: o }), n, r),
2335
+ ...s,
2336
+ "data-testid": "click-me",
2337
+ children: [
2338
+ typeof e == "string" ? /* @__PURE__ */ (0, Y.jsx)("img", {
2339
+ className: "icon-group",
2340
+ src: e
2341
+ }) : e,
2342
+ t,
2343
+ i
2344
+ ]
2345
+ }) })), St = () => /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2346
+ width: "8",
2347
+ height: "12",
2348
+ viewBox: "0 0 8 12",
2349
+ fill: "none",
2350
+ xmlns: "http://www.w3.org/2000/svg",
2351
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2352
+ d: "M7.705 1.41L6.295 0L0.294998 6L6.295 12L7.705 10.59L3.125 6L7.705 1.41Z",
2353
+ fill: "#9EA4AA"
2354
+ })
2355
+ }) }), Ct = () => /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2356
+ width: "8",
2357
+ height: "12",
2358
+ viewBox: "0 0 8 12",
2359
+ fill: "none",
2360
+ xmlns: "http://www.w3.org/2000/svg",
2361
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2362
+ d: "M1.705 0L0.294998 1.41L4.875 6L0.294998 10.59L1.705 12L7.705 6L1.705 0Z",
2363
+ fill: "#9EA4AA"
2364
+ })
2365
+ }) });
2366
+ //#endregion
2367
+ //#region src/components/Calendar/utils.ts
2368
+ function wt(e, t) {
2369
+ return new Date(e, t + 1, 0).getDate();
2370
+ }
2371
+ function Tt(e, t) {
2372
+ return new Date(e, t, 1).getDay();
2373
+ }
2374
+ function Et(e, t) {
2375
+ let n = new Date(e);
2376
+ return n.setMonth(n.getMonth() + t), n;
2377
+ }
2378
+ function Dt(e, t) {
2379
+ let n = new Date(e);
2380
+ return n.setMonth(n.getMonth() - t), n;
2381
+ }
2382
+ function Ot(e, t) {
2383
+ return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
2384
+ }
2385
+ function kt(e, t) {
2386
+ let n = e.getTime(), r = t.start.getTime(), i = t.end.getTime();
2387
+ return n >= Math.min(r, i) && n <= Math.max(r, i);
2388
+ }
2389
+ function At(e, t) {
2390
+ return e.getTime() < t.getTime();
2391
+ }
2392
+ function jt(e) {
2393
+ return e.toLocaleString("en-US", {
2394
+ month: "long",
2395
+ year: "numeric"
2396
+ });
2397
+ }
2398
+ var Mt = [
2399
+ "Su",
2400
+ "Mo",
2401
+ "Tu",
2402
+ "We",
2403
+ "Th",
2404
+ "Fr",
2405
+ "Sa"
2406
+ ], Nt = ({ className: e }) => /* @__PURE__ */ (0, Y.jsx)("svg", {
2407
+ className: J("w-4 h-4", e),
2408
+ fill: "none",
2409
+ stroke: "currentColor",
2410
+ viewBox: "0 0 24 24",
2411
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2412
+ strokeLinecap: "round",
2413
+ strokeLinejoin: "round",
2414
+ strokeWidth: 2,
2415
+ d: "M15 19l-7-7 7-7"
2416
+ })
2417
+ }), Pt = ({ className: e }) => /* @__PURE__ */ (0, Y.jsx)("svg", {
2418
+ className: J("w-4 h-4", e),
2419
+ fill: "none",
2420
+ stroke: "currentColor",
2421
+ viewBox: "0 0 24 24",
2422
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2423
+ strokeLinecap: "round",
2424
+ strokeLinejoin: "round",
2425
+ strokeWidth: 2,
2426
+ d: "M9 5l7 7-7 7"
2427
+ })
2428
+ }), Ft = ({ mode: e = "single", selected: t, onSelect: n, numberOfMonths: r = 1, className: i, presets: a, isDark: s = !1 }) => {
2429
+ let [c, l] = d(e === "single" && t instanceof Date ? t : e === "range" && t?.from ? t.from : /* @__PURE__ */ new Date());
2430
+ o(() => {
2431
+ e === "single" && t instanceof Date ? l(new Date(t.getFullYear(), t.getMonth(), 1)) : e === "range" && t?.from && l(new Date(t.from.getFullYear(), t.from.getMonth(), 1));
2432
+ }, [t, e]);
2433
+ let u = () => l(Dt(c, 1)), f = () => l(Et(c, 1)), p = (r) => {
2434
+ if (e === "single") n?.(r);
2435
+ else if (e === "range") {
2436
+ let e = t || {
2437
+ from: void 0,
2438
+ to: void 0
2439
+ };
2440
+ !e.from || e.from && e.to ? n?.({
2441
+ from: r,
2442
+ to: void 0
2443
+ }) : e.from && !e.to && (At(r, e.from) ? n?.({
2444
+ from: r,
2445
+ to: void 0
2446
+ }) : n?.({
2447
+ from: e.from,
2448
+ to: r
2449
+ }));
2450
+ }
2451
+ }, m = (t) => {
2452
+ let r = a?.find((e) => e.label === t.target.value);
2453
+ r && e === "range" && (n?.(r.value), l(new Date(r.value.from.getFullYear(), r.value.from.getMonth(), 1)));
2454
+ }, h = (n, i) => {
2455
+ let a = n.getFullYear(), o = n.getMonth(), c = wt(a, o), l = Tt(a, o), d = wt(a, o - 1), m = Array.from({ length: l }, (e, t) => new Date(a, o - 1, d - l + t + 1)), h = Array.from({ length: c }, (e, t) => new Date(a, o, t + 1)), g = m.length + h.length, _ = g % 7 == 0 ? 0 : 7 - g % 7, v = Array.from({ length: _ }, (e, t) => new Date(a, o + 1, t + 1)), y = [
2456
+ ...m,
2457
+ ...h,
2458
+ ...v
2459
+ ];
2460
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
2461
+ className: "flex flex-col items-center gap-1 w-[260px]",
2462
+ children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
2463
+ className: "flex flex-row justify-between items-center px-2 py-1 w-[260px] min-h-[36px]",
2464
+ children: [
2465
+ i === 0 ? /* @__PURE__ */ (0, Y.jsx)("button", {
2466
+ onClick: u,
2467
+ className: J("flex-none flex items-center justify-center w-7 h-7 rounded-md border focus:outline-none transition-colors", s ? "bg-slate-800 border-slate-700 text-white hover:bg-slate-700" : "bg-white border-slate-200 text-slate-800 hover:bg-slate-50"),
2468
+ children: /* @__PURE__ */ (0, Y.jsx)(Nt, {})
2469
+ }) : /* @__PURE__ */ (0, Y.jsx)("div", { className: "w-7 h-7" }),
2470
+ /* @__PURE__ */ (0, Y.jsx)("div", {
2471
+ className: J("flex flex-row justify-center items-center", s ? "text-white" : "text-slate-950"),
2472
+ children: /* @__PURE__ */ (0, Y.jsx)("span", {
2473
+ className: "font-[600] text-sm leading-6",
2474
+ children: jt(n)
2475
+ })
2476
+ }),
2477
+ i === r - 1 ? /* @__PURE__ */ (0, Y.jsx)("button", {
2478
+ onClick: f,
2479
+ className: J("flex-none flex items-center justify-center w-7 h-7 rounded-md border focus:outline-none transition-colors", s ? "bg-slate-800 border-slate-700 text-white hover:bg-slate-700" : "bg-white border-slate-200 text-slate-800 hover:bg-slate-50"),
2480
+ children: /* @__PURE__ */ (0, Y.jsx)(Pt, {})
2481
+ }) : /* @__PURE__ */ (0, Y.jsx)("div", { className: "w-7 h-7" })
2482
+ ]
2483
+ }), /* @__PURE__ */ (0, Y.jsxs)("div", {
2484
+ className: "flex flex-col items-start px-1 pb-1.5 w-[260px]",
2485
+ children: [/* @__PURE__ */ (0, Y.jsx)("div", {
2486
+ className: "grid grid-cols-7 w-[252px]",
2487
+ children: Mt.map((e) => /* @__PURE__ */ (0, Y.jsx)("div", {
2488
+ className: "flex justify-center items-center w-9 h-5",
2489
+ children: /* @__PURE__ */ (0, Y.jsx)("span", {
2490
+ className: "font-[500] text-xs leading-5 text-slate-500",
2491
+ children: e
2492
+ })
2493
+ }, e))
2494
+ }), /* @__PURE__ */ (0, Y.jsx)("div", {
2495
+ className: "grid grid-cols-7 gap-y-2 mt-2 w-[252px]",
2496
+ children: y.map((n, r) => {
2497
+ let i = n.getMonth() === o, a = !1, c = !1, l = !1, u = !1;
2498
+ if (e === "single" && t instanceof Date) a = Ot(n, t);
2499
+ else if (e === "range") {
2500
+ let e = t;
2501
+ e?.from && e?.to ? (c = Ot(n, e.from), l = Ot(n, e.to), a = c || l, u = kt(n, {
2502
+ start: e.from,
2503
+ end: e.to
2504
+ })) : e?.from && (a = Ot(n, e.from), c = a);
2505
+ }
2506
+ let d = u && !c && !l, f = e === "range" && t?.to && !Ot(t.from, t.to);
2507
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
2508
+ className: J("relative flex items-center justify-center w-9 h-9", d && (s ? "bg-slate-800" : "bg-slate-100")),
2509
+ children: [
2510
+ c && f && /* @__PURE__ */ (0, Y.jsx)("div", { className: J("absolute right-0 top-0 bottom-0 w-1/2", s ? "bg-slate-800" : "bg-slate-100") }),
2511
+ l && f && /* @__PURE__ */ (0, Y.jsx)("div", { className: J("absolute left-0 top-0 bottom-0 w-1/2", s ? "bg-slate-800" : "bg-slate-100") }),
2512
+ /* @__PURE__ */ (0, Y.jsx)("button", {
2513
+ onClick: () => p(n),
2514
+ className: J("relative z-10 flex-none flex items-center justify-center w-9 h-9 rounded-md focus:outline-none transition-colors", "font-[500] text-sm leading-6", i ? "opacity-100" : "opacity-50", a ? s ? "bg-slate-700 text-white" : "bg-[#0F172A] text-white" : s ? "text-white hover:bg-slate-800" : "text-slate-950 hover:bg-slate-100"),
2515
+ children: n.getDate()
2516
+ })
2517
+ ]
2518
+ }, r);
2519
+ })
2520
+ })]
2521
+ })]
2522
+ }, i);
2523
+ }, g = Array.from({ length: r }, (e, t) => Et(c, t));
2524
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
2525
+ className: J("flex flex-col gap-2", i),
2526
+ children: [a && a.length > 0 && e === "range" && /* @__PURE__ */ (0, Y.jsxs)("select", {
2527
+ onChange: m,
2528
+ className: J("p-2 w-full text-sm rounded-md border appearance-none focus:outline-none", s ? "bg-slate-900 border-slate-700 text-white" : "bg-white border-[#E2E8F0] text-slate-800"),
2529
+ defaultValue: "",
2530
+ children: [/* @__PURE__ */ (0, Y.jsx)("option", {
2531
+ value: "",
2532
+ disabled: !0,
2533
+ children: "Select Preset"
2534
+ }), a.map((e) => /* @__PURE__ */ (0, Y.jsx)("option", {
2535
+ value: e.label,
2536
+ children: e.label
2537
+ }, e.label))]
2538
+ }), /* @__PURE__ */ (0, Y.jsx)("div", {
2539
+ className: J("box-border flex flex-row items-start p-3 gap-1 rounded-md border w-max", s ? "bg-[#0B1120] border-slate-800" : "bg-[#FFFFFF] border-slate-200"),
2540
+ children: g.map((e, t) => h(e, t))
2541
+ })]
2542
+ });
2543
+ }, It = v("border-slate-200", {
2544
+ variants: {
2545
+ variant: {
2546
+ solid: "border-solid",
2547
+ dashed: "border-dashed",
2548
+ dotted: "border-dotted"
2549
+ },
2550
+ color: {
2551
+ default: "border-slate-200 text-slate-500",
2552
+ muted: "border-slate-100 text-slate-400",
2553
+ dark: "border-slate-700 text-slate-300",
2554
+ primary: "border-slate-900 text-slate-900"
2555
+ }
2556
+ },
2557
+ defaultVariants: {
2558
+ variant: "solid",
2559
+ color: "default"
2560
+ }
2561
+ }), Lt = n(({ label: e, children: t, orientation: n = "horizontal", labelPosition: r = "center", variant: i = "solid", color: a = "default", className: o, ...s }, c) => {
2562
+ let l = e || t;
2563
+ if (n === "vertical") return /* @__PURE__ */ (0, Y.jsx)("div", {
2564
+ ref: c,
2565
+ role: "separator",
2566
+ "aria-orientation": "vertical",
2567
+ className: J("inline-block min-h-[1em] w-px self-stretch border-l border-slate-200 mx-2", It({
2568
+ variant: i,
2569
+ color: a
2570
+ }), o),
2571
+ ...s
2572
+ });
2573
+ if (!l) return /* @__PURE__ */ (0, Y.jsx)("div", {
2574
+ ref: c,
2575
+ role: "separator",
2576
+ "aria-orientation": "horizontal",
2577
+ className: J("w-full border-t border-slate-200 my-4", It({
2578
+ variant: i,
2579
+ color: a
2580
+ }), o),
2581
+ ...s
2582
+ });
2583
+ let u = r === "left", d = r === "right";
2584
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
2585
+ ref: c,
2586
+ role: "separator",
2587
+ "aria-orientation": "horizontal",
2588
+ className: J("flex items-center w-full my-4 select-none", o),
2589
+ ...s,
2590
+ children: [
2591
+ /* @__PURE__ */ (0, Y.jsx)("div", { className: J("border-t border-slate-200", It({
2592
+ variant: i,
2593
+ color: a
2594
+ }), u ? "w-8 flex-none" : "flex-grow") }),
2595
+ /* @__PURE__ */ (0, Y.jsx)("span", {
2596
+ className: J("px-3 text-xs font-[500] text-slate-500 whitespace-nowrap", a === "dark" && "text-slate-300", a === "primary" && "text-slate-900 font-semibold"),
2597
+ children: l
2598
+ }),
2599
+ /* @__PURE__ */ (0, Y.jsx)("div", { className: J("border-t border-slate-200", It({
2600
+ variant: i,
2601
+ color: a
2602
+ }), d ? "w-8 flex-none" : "flex-grow") })
2603
+ ]
2604
+ });
2605
+ });
2606
+ Lt.displayName = "Divider";
2607
+ //#endregion
2608
+ //#region src/components/ImagePopOver/ImagePopOver.tsx
2609
+ var Rt = v("relative bg-white shadow-2xl overflow-hidden transition-all duration-200 flex flex-col", {
2610
+ variants: {
2611
+ size: {
2612
+ sm: "max-w-md max-h-[60vh]",
2613
+ default: "max-w-2xl max-h-[75vh]",
2614
+ lg: "max-w-4xl max-h-[85vh]",
2615
+ full: "max-w-6xl max-h-[90vh]"
2616
+ },
2617
+ rounded: {
2618
+ none: "rounded-none",
2619
+ md: "rounded-md",
2620
+ lg: "rounded-lg",
2621
+ xl: "rounded-xl",
2622
+ "2xl": "rounded-2xl"
2623
+ }
2624
+ },
2625
+ defaultVariants: {
2626
+ size: "default",
2627
+ rounded: "xl"
2628
+ }
2629
+ }), zt = n(({ url: e, alt: t = "Preview image", title: n, caption: r, open: a = !0, onClose: s, size: c = "default", rounded: l = "xl", closeOnBackdropClick: u = !0, closeOnEsc: d = !0, className: f, ...p }, m) => {
2630
+ let h = i(() => {
2631
+ s(!1);
2632
+ }, [s]);
2633
+ return o(() => {
2634
+ if (!a || !d) return;
2635
+ let e = (e) => {
2636
+ e.key === "Escape" && h();
2637
+ };
2638
+ return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
2639
+ }, [
2640
+ a,
2641
+ d,
2642
+ h
2643
+ ]), a ? /* @__PURE__ */ (0, Y.jsx)("div", {
2644
+ role: "dialog",
2645
+ "aria-modal": "true",
2646
+ "aria-label": typeof n == "string" ? n : "Image Preview",
2647
+ className: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-xs transition-opacity duration-200 animate-in fade-in",
2648
+ onClick: u ? h : void 0,
2649
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
2650
+ ref: m,
2651
+ className: J(Rt({
2652
+ size: c,
2653
+ rounded: l
2654
+ }), "w-full p-2 border border-slate-100", f),
2655
+ onClick: (e) => e.stopPropagation(),
2656
+ ...p,
2657
+ children: [
2658
+ n && /* @__PURE__ */ (0, Y.jsx)("div", {
2659
+ className: "px-3 py-2 border-b border-slate-100 flex items-center justify-between",
2660
+ children: /* @__PURE__ */ (0, Y.jsx)("h3", {
2661
+ className: "text-sm font-semibold text-[#0F172A] truncate",
2662
+ children: n
2663
+ })
2664
+ }),
2665
+ /* @__PURE__ */ (0, Y.jsx)("div", {
2666
+ className: "relative flex items-center justify-center overflow-hidden bg-slate-50 rounded-lg min-h-[240px]",
2667
+ children: /* @__PURE__ */ (0, Y.jsx)("img", {
2668
+ src: e,
2669
+ alt: t,
2670
+ className: "w-full h-full max-h-[70vh] object-contain transition-transform select-none"
2671
+ })
2672
+ }),
2673
+ r && /* @__PURE__ */ (0, Y.jsx)("div", {
2674
+ className: "px-3 py-2 border-t border-slate-100 text-xs text-slate-500",
2675
+ children: r
2676
+ }),
2677
+ /* @__PURE__ */ (0, Y.jsx)("button", {
2678
+ type: "button",
2679
+ className: "absolute top-3 right-3 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white/90 text-slate-600 shadow-md backdrop-blur-sm transition-all hover:bg-white hover:text-red-600 hover:scale-110 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A] cursor-pointer",
2680
+ onClick: h,
2681
+ "aria-label": "Close image preview",
2682
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2683
+ className: "h-4 w-4",
2684
+ fill: "none",
2685
+ stroke: "currentColor",
2686
+ viewBox: "0 0 24 24",
2687
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2688
+ strokeLinecap: "round",
2689
+ strokeLinejoin: "round",
2690
+ strokeWidth: 2,
2691
+ d: "M6 18L18 6M6 6l12 12"
2692
+ })
2693
+ })
2694
+ })
2695
+ ]
2696
+ })
2697
+ }) : null;
2698
+ });
2699
+ zt.displayName = "ImagePopOver";
2700
+ //#endregion
2701
+ //#region src/components/Input/Input.tsx
2702
+ var Bt = v("flex w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-[500] text-[#0F172A] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[#0F172A] focus:border-transparent transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-slate-50 file:border-0 file:bg-transparent file:text-sm file:font-[500] file:text-[#0F172A] file:cursor-pointer", {
2703
+ variants: {
2704
+ inputSize: {
2705
+ sm: "h-9 text-xs px-2.5",
2706
+ default: "h-10 text-sm px-3",
2707
+ lg: "h-11 text-base px-4"
2708
+ },
2709
+ hasError: { true: "border-red-500 focus:ring-red-500 text-red-900 placeholder:text-red-300" }
2710
+ },
2711
+ defaultVariants: { inputSize: "default" }
2712
+ }), Vt = n(({ className: e, inputSize: t = "default", hasError: n = !1, label: r, helperText: i, errorMessage: a, id: o, disabled: c, type: l = "text", ...u }, d) => {
2713
+ let f = s(), p = o || f, m = `${p}-desc`, h = !!(a || n), g = /* @__PURE__ */ (0, Y.jsx)("input", {
2714
+ id: p,
2715
+ ref: d,
2716
+ type: l,
2717
+ disabled: c,
2718
+ "aria-invalid": h,
2719
+ "aria-describedby": i || a ? m : void 0,
2720
+ className: J(Bt({
2721
+ inputSize: t,
2722
+ hasError: h,
2723
+ className: e
2724
+ })),
2725
+ ...u
2726
+ });
2727
+ return !r && !i && !a ? g : /* @__PURE__ */ (0, Y.jsxs)("div", {
2728
+ className: "w-full flex flex-col gap-2",
2729
+ children: [
2730
+ r && /* @__PURE__ */ (0, Y.jsx)("label", {
2731
+ htmlFor: p,
2732
+ className: J("text-sm font-[600] text-[#0F172A]", c && "opacity-50 cursor-not-allowed"),
2733
+ children: r
2734
+ }),
2735
+ g,
2736
+ a ? /* @__PURE__ */ (0, Y.jsx)("p", {
2737
+ id: m,
2738
+ className: "text-xs font-[400] text-red-500",
2739
+ children: a
2740
+ }) : i ? /* @__PURE__ */ (0, Y.jsx)("p", {
2741
+ id: m,
2742
+ className: "text-xs font-[400] text-gray-500",
2743
+ children: i
2744
+ }) : null
2745
+ ]
2746
+ });
2747
+ });
2748
+ Vt.displayName = "Input";
2749
+ //#endregion
2750
+ //#region src/components/InputOTP/InputOTP.tsx
2751
+ var Ht = t(null), Ut = n(({ maxLength: e = 6, value: t, defaultValue: n = "", onChange: r, disabled: i = !1, readOnly: a = !1, pattern: s = "^[0-9]*$", autoFocus: l = !1, className: f, children: p, ...m }, h) => {
2752
+ let g = t !== void 0, [_, v] = d(n), y = g ? t : _, [b, x] = d(!1), [S, C] = d(0), w = u(null);
2753
+ c(h, () => ({
2754
+ focus: () => w.current?.focus(),
2755
+ blur: () => w.current?.blur(),
2756
+ clear: () => {
2757
+ g || v(""), r?.("");
2758
+ }
2759
+ })), o(() => {
2760
+ l && w.current?.focus();
2761
+ }, [l]);
2762
+ let T = (t) => {
2763
+ let n = t.target.value.slice(0, e);
2764
+ s && n.length > 0 && !new RegExp(s).test(n) || (g || v(n), r?.(n), C(n.length));
2765
+ }, E = (e) => {
2766
+ (e.key === "ArrowLeft" || e.key === "ArrowRight") && setTimeout(() => {
2767
+ w.current && C(w.current.selectionStart || 0);
2768
+ }, 0);
2769
+ }, D = b ? Math.min(S, y.length) : -1;
2770
+ return /* @__PURE__ */ (0, Y.jsx)(Ht.Provider, {
2771
+ value: {
2772
+ value: y,
2773
+ maxLength: e,
2774
+ activeIndex: D,
2775
+ setActiveIndex: (e) => {
2776
+ C(e), w.current && (w.current.focus(), w.current.setSelectionRange(e, e));
2777
+ },
2778
+ disabled: i,
2779
+ readOnly: a,
2780
+ hasFakeCaret: b,
2781
+ onChange: (e) => {
2782
+ g || v(e), r?.(e);
2783
+ },
2784
+ inputRef: w
2785
+ },
2786
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
2787
+ className: J("relative inline-flex items-center gap-2 select-none", f),
2788
+ onClick: () => {
2789
+ !i && !a && w.current?.focus();
2790
+ },
2791
+ ...m,
2792
+ children: [/* @__PURE__ */ (0, Y.jsx)("input", {
2793
+ ref: w,
2794
+ type: "text",
2795
+ inputMode: "numeric",
2796
+ autoComplete: "one-time-code",
2797
+ maxLength: e,
2798
+ value: y,
2799
+ disabled: i,
2800
+ readOnly: a,
2801
+ onChange: T,
2802
+ onKeyDown: E,
2803
+ onFocus: () => {
2804
+ x(!0), C(y.length);
2805
+ },
2806
+ onBlur: () => x(!1),
2807
+ onSelect: (e) => {
2808
+ C(e.currentTarget.selectionStart || 0);
2809
+ },
2810
+ className: "absolute inset-0 w-full h-full opacity-0 pointer-events-none cursor-default",
2811
+ tabIndex: i ? -1 : 0,
2812
+ "aria-label": "OTP Input"
2813
+ }), p]
2814
+ })
2815
+ });
2816
+ });
2817
+ Ut.displayName = "InputOTP";
2818
+ var Wt = n(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ (0, Y.jsx)("div", {
2819
+ ref: r,
2820
+ className: J("flex items-center rounded-md border border-gray-200 shadow-sm bg-white overflow-hidden", e),
2821
+ ...n,
2822
+ children: t
2823
+ }));
2824
+ Wt.displayName = "InputOTPGroup";
2825
+ var Gt = n(({ index: e, className: t, ...n }, r) => {
2826
+ let i = a(Ht);
2827
+ if (!i) throw Error("InputOTPSlot must be used within an InputOTP component");
2828
+ let { value: o, activeIndex: s, disabled: c, hasFakeCaret: l } = i, u = o[e] || "", d = s === e;
2829
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
2830
+ ref: r,
2831
+ className: J("relative flex h-10 w-10 items-center justify-center border-r border-gray-200 text-sm font-[500] text-[#0F172A] transition-all first:rounded-l-md last:border-r-0 last:rounded-r-md", d && "z-10 ring-2 ring-[#0F172A] ring-offset-0 border-transparent", c && "bg-slate-50 opacity-50 cursor-not-allowed", t),
2832
+ ...n,
2833
+ children: [u, d && !u && l && !c && /* @__PURE__ */ (0, Y.jsx)("div", {
2834
+ className: "pointer-events-none absolute inset-0 flex items-center justify-center",
2835
+ children: /* @__PURE__ */ (0, Y.jsx)("div", { className: "h-4 w-px animate-pulse bg-[#0F172A] duration-1000" })
2836
+ })]
2837
+ });
2838
+ });
2839
+ Gt.displayName = "InputOTPSlot";
2840
+ var Kt = n(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ (0, Y.jsx)("div", {
2841
+ ref: r,
2842
+ role: "separator",
2843
+ className: J("flex items-center justify-center px-1 text-gray-400 font-bold text-lg select-none", e),
2844
+ ...n,
2845
+ children: t || "•"
2846
+ }));
2847
+ Kt.displayName = "InputOTPSeparator";
2848
+ //#endregion
2849
+ //#region src/components/Pagination/Pagination.tsx
2850
+ var qt = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("nav", {
2851
+ ref: n,
2852
+ role: "navigation",
2853
+ "aria-label": "pagination",
2854
+ className: J("mx-auto flex w-full justify-center select-none", e),
2855
+ ...t
2856
+ }));
2857
+ qt.displayName = "Pagination";
2858
+ var Jt = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("ul", {
2859
+ ref: n,
2860
+ className: J("flex flex-row items-center gap-1", e),
2861
+ ...t
2862
+ }));
2863
+ Jt.displayName = "PaginationContent";
2864
+ var Yt = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("li", {
2865
+ ref: n,
2866
+ className: J("", e),
2867
+ ...t
2868
+ }));
2869
+ Yt.displayName = "PaginationItem";
2870
+ var Xt = n(({ className: e, isActive: t, disabled: n, children: r, ...i }, a) => /* @__PURE__ */ (0, Y.jsx)("button", {
2871
+ ref: a,
2872
+ type: "button",
2873
+ "aria-current": t ? "page" : void 0,
2874
+ disabled: n,
2875
+ className: J("inline-flex h-10 min-w-10 items-center justify-center rounded-lg px-3.5 text-sm font-[500] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A]", t ? "border border-gray-200 bg-white font-[600] text-[#0F172A] shadow-sm" : "bg-transparent text-[#0F172A] hover:bg-slate-100", n && "pointer-events-none opacity-40 cursor-not-allowed", e),
2876
+ ...i,
2877
+ children: r
2878
+ }));
2879
+ Xt.displayName = "PaginationLink";
2880
+ var Zt = n(({ className: e, disabled: t, ...n }, r) => /* @__PURE__ */ (0, Y.jsxs)("button", {
2881
+ ref: r,
2882
+ type: "button",
2883
+ "aria-label": "Go to previous page",
2884
+ disabled: t,
2885
+ className: J("inline-flex h-10 items-center gap-1.5 rounded-md px-3 text-sm font-[500] transition-colors hover:bg-slate-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A]", t ? "pointer-events-none text-slate-400 cursor-not-allowed" : "text-[#0F172A] hover:text-[#0F172A]", e),
2886
+ ...n,
2887
+ children: [/* @__PURE__ */ (0, Y.jsx)("svg", {
2888
+ className: "h-4 w-4",
2889
+ fill: "none",
2890
+ stroke: "currentColor",
2891
+ viewBox: "0 0 24 24",
2892
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2893
+ strokeLinecap: "round",
2894
+ strokeLinejoin: "round",
2895
+ strokeWidth: 2,
2896
+ d: "M15 19l-7-7 7-7"
2897
+ })
2898
+ }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Previous" })]
2899
+ }));
2900
+ Zt.displayName = "PaginationPrevious";
2901
+ var Qt = n(({ className: e, disabled: t, ...n }, r) => /* @__PURE__ */ (0, Y.jsxs)("button", {
2902
+ ref: r,
2903
+ type: "button",
2904
+ "aria-label": "Go to next page",
2905
+ disabled: t,
2906
+ className: J("inline-flex h-10 items-center gap-1.5 rounded-md px-3 text-sm font-[500] transition-colors hover:bg-slate-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A]", t ? "pointer-events-none text-slate-400 cursor-not-allowed" : "text-[#0F172A] hover:text-[#0F172A]", e),
2907
+ ...n,
2908
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: "Next" }), /* @__PURE__ */ (0, Y.jsx)("svg", {
2909
+ className: "h-4 w-4",
2910
+ fill: "none",
2911
+ stroke: "currentColor",
2912
+ viewBox: "0 0 24 24",
2913
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
2914
+ strokeLinecap: "round",
2915
+ strokeLinejoin: "round",
2916
+ strokeWidth: 2,
2917
+ d: "M9 5l7 7-7 7"
2918
+ })
2919
+ })]
2920
+ }));
2921
+ Qt.displayName = "PaginationNext";
2922
+ var $t = ({ className: e, ...t }) => /* @__PURE__ */ (0, Y.jsx)("span", {
2923
+ "aria-hidden": !0,
2924
+ className: J("flex h-10 w-8 items-center justify-center text-sm font-bold text-slate-700 select-none", e),
2925
+ ...t,
2926
+ children: "…"
2927
+ });
2928
+ $t.displayName = "PaginationEllipsis";
2929
+ var en = ({ totalPages: e, currentPage: t, onPageChange: n, className: r }) => /* @__PURE__ */ (0, Y.jsx)(qt, {
2930
+ className: r,
2931
+ children: /* @__PURE__ */ (0, Y.jsxs)(Jt, { children: [
2932
+ /* @__PURE__ */ (0, Y.jsx)(Yt, { children: /* @__PURE__ */ (0, Y.jsx)(Zt, {
2933
+ disabled: t === 1,
2934
+ onClick: () => n(t - 1)
2935
+ }) }),
2936
+ (() => {
2937
+ let n = [];
2938
+ if (e <= 7) for (let t = 1; t <= e; t++) n.push(t);
2939
+ else if (t <= 4) {
2940
+ for (let e = 1; e <= 5; e++) n.push(e);
2941
+ n.push("ellipsis-end"), n.push(e);
2942
+ } else if (t >= e - 3) {
2943
+ n.push(1), n.push("ellipsis-start");
2944
+ for (let t = e - 4; t <= e; t++) n.push(t);
2945
+ } else n.push(1), n.push("ellipsis-start"), n.push(t - 1), n.push(t), n.push(t + 1), n.push("ellipsis-end"), n.push(e);
2946
+ return n;
2947
+ })().map((e, r) => /* @__PURE__ */ (0, Y.jsx)(Yt, { children: typeof e == "number" ? /* @__PURE__ */ (0, Y.jsx)(Xt, {
2948
+ isActive: t === e,
2949
+ onClick: () => n(e),
2950
+ children: e
2951
+ }) : /* @__PURE__ */ (0, Y.jsx)($t, {}) }, r)),
2952
+ /* @__PURE__ */ (0, Y.jsx)(Yt, { children: /* @__PURE__ */ (0, Y.jsx)(Qt, {
2953
+ disabled: t === e,
2954
+ onClick: () => n(t + 1)
2955
+ }) })
2956
+ ] })
2957
+ }), tn = v("relative flex items-center transition-all duration-200 select-none", {
2958
+ variants: {
2959
+ layout: {
2960
+ default: "flex-row items-center gap-3",
2961
+ horizontal: "flex-row items-center justify-between w-full gap-4",
2962
+ "space-between": "flex-row-reverse items-center justify-between w-full gap-4",
2963
+ vertical: "flex-col items-center justify-center text-center gap-2"
2964
+ },
2965
+ bordered: {
2966
+ true: "rounded-xl border border-gray-200 bg-white p-4 shadow-sm",
2967
+ false: "bg-transparent"
2968
+ }
2969
+ },
2970
+ defaultVariants: {
2971
+ layout: "default",
2972
+ bordered: !1
2973
+ }
2974
+ }), nn = n(({ className: e, layout: t = "default", bordered: n = !1, avatarUrl: r, name: i, subtitle: a, isVerified: o = !1, avatarShape: s = "circle", avatarSize: c = "default", trailing: l, children: u, ...d }, f) => {
2975
+ let p = {
2976
+ sm: "h-8 w-8 text-xs",
2977
+ default: "h-10 w-10 text-sm",
2978
+ lg: "h-12 w-12 text-base"
2979
+ }[c], m = () => /* @__PURE__ */ (0, Y.jsx)("div", {
2980
+ className: J("relative flex-shrink-0 flex items-center justify-center overflow-hidden bg-slate-100 text-[#0F172A] font-semibold", s === "circle" ? "rounded-full" : "rounded-2xl", p),
2981
+ children: r ? /* @__PURE__ */ (0, Y.jsx)("img", {
2982
+ src: r,
2983
+ alt: i,
2984
+ className: "h-full w-full object-cover"
2985
+ }) : /* @__PURE__ */ (0, Y.jsx)("span", { children: i.charAt(0).toUpperCase() })
2986
+ }), h = () => /* @__PURE__ */ (0, Y.jsxs)("div", {
2987
+ className: J("flex flex-col min-w-0", t === "vertical" ? "items-center" : "items-start"),
2988
+ children: [
2989
+ /* @__PURE__ */ (0, Y.jsxs)("div", {
2990
+ className: "inline-flex items-center gap-1.5",
2991
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {
2992
+ className: "text-sm font-[600] text-[#0F172A] leading-tight truncate",
2993
+ children: i
2994
+ }), o && /* @__PURE__ */ (0, Y.jsx)("span", {
2995
+ className: "inline-flex items-center justify-center text-blue-500 flex-shrink-0",
2996
+ title: "Verified",
2997
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
2998
+ className: "h-4 w-4 fill-current",
2999
+ viewBox: "0 0 24 24",
3000
+ children: /* @__PURE__ */ (0, Y.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })
3001
+ })
3002
+ })]
3003
+ }),
3004
+ a && /* @__PURE__ */ (0, Y.jsx)("span", {
3005
+ className: "text-xs font-[400] text-slate-500 mt-0.5 leading-tight",
3006
+ children: a
3007
+ }),
3008
+ u
3009
+ ]
3010
+ });
3011
+ return t === "horizontal" ? /* @__PURE__ */ (0, Y.jsxs)("div", {
3012
+ ref: f,
3013
+ "data-slot": "profile-card",
3014
+ className: J(tn({
3015
+ layout: t,
3016
+ bordered: n,
3017
+ className: e
3018
+ })),
3019
+ ...d,
3020
+ children: [
3021
+ /* @__PURE__ */ (0, Y.jsxs)("div", {
3022
+ className: "flex items-center gap-3",
3023
+ children: [m(), /* @__PURE__ */ (0, Y.jsxs)("div", {
3024
+ className: "inline-flex items-center gap-1.5",
3025
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {
3026
+ className: "text-sm font-[600] text-[#0F172A] leading-tight truncate",
3027
+ children: i
3028
+ }), o && /* @__PURE__ */ (0, Y.jsx)("span", {
3029
+ className: "inline-flex items-center justify-center text-blue-500 flex-shrink-0",
3030
+ title: "Verified",
3031
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3032
+ className: "h-4 w-4 fill-current",
3033
+ viewBox: "0 0 24 24",
3034
+ children: /* @__PURE__ */ (0, Y.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })
3035
+ })
3036
+ })]
3037
+ })]
3038
+ }),
3039
+ a && /* @__PURE__ */ (0, Y.jsx)("span", {
3040
+ className: "text-xs font-[400] text-slate-500 flex-shrink-0",
3041
+ children: a
3042
+ }),
3043
+ l
3044
+ ]
3045
+ }) : /* @__PURE__ */ (0, Y.jsxs)("div", {
3046
+ ref: f,
3047
+ "data-slot": "profile-card",
3048
+ className: J(tn({
3049
+ layout: t,
3050
+ bordered: n,
3051
+ className: e
3052
+ })),
3053
+ ...d,
3054
+ children: [
3055
+ m(),
3056
+ h(),
3057
+ l
3058
+ ]
3059
+ });
3060
+ });
3061
+ nn.displayName = "ProfileCard";
3062
+ //#endregion
3063
+ //#region src/components/Select/Select.tsx
3064
+ var rn = t(null);
3065
+ function an() {
3066
+ let e = a(rn);
3067
+ if (!e) throw Error("Select compound components must be used within <Select />.");
3068
+ return e;
3069
+ }
3070
+ var on = ({ value: e, defaultValue: t = "", onValueChange: n, disabled: r = !1, children: i }) => {
3071
+ let a = e !== void 0, [o, c] = d(t), l = a ? e : o, [u, f] = d(!1), [p, m] = d(""), [h, g] = d(""), _ = s();
3072
+ return /* @__PURE__ */ (0, Y.jsx)(rn.Provider, {
3073
+ value: {
3074
+ value: l,
3075
+ onValueChange: (e) => {
3076
+ a || c(e), n?.(e), f(!1), g("");
3077
+ },
3078
+ open: u,
3079
+ setOpen: f,
3080
+ selectedLabel: p,
3081
+ setSelectedLabel: m,
3082
+ disabled: r,
3083
+ baseId: _,
3084
+ searchQuery: h,
3085
+ setSearchQuery: g
3086
+ },
3087
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
3088
+ className: "relative inline-block w-full",
3089
+ children: i
3090
+ })
3091
+ });
3092
+ }, sn = n(({ className: e, children: t, ...n }, r) => {
3093
+ let { open: i, setOpen: a, disabled: s, baseId: c } = an(), l = u(null);
3094
+ return o(() => {
3095
+ let e = (e) => {
3096
+ l.current && !l.current.closest(".relative")?.contains(e.target) && a(!1);
3097
+ };
3098
+ return i && document.addEventListener("mousedown", e), () => {
3099
+ document.removeEventListener("mousedown", e);
3100
+ };
3101
+ }, [i, a]), /* @__PURE__ */ (0, Y.jsxs)("button", {
3102
+ ref: (e) => {
3103
+ l.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
3104
+ },
3105
+ id: `${c}-trigger`,
3106
+ type: "button",
3107
+ role: "combobox",
3108
+ "aria-expanded": i,
3109
+ "aria-haspopup": "listbox",
3110
+ disabled: s,
3111
+ onClick: () => !s && a(!i),
3112
+ className: J("flex h-10 w-full items-center justify-between rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-[500] text-[#0F172A] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[#0F172A] disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-slate-50 transition-colors select-none", e),
3113
+ ...n,
3114
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {
3115
+ className: "truncate",
3116
+ children: t
3117
+ }), /* @__PURE__ */ (0, Y.jsx)("svg", {
3118
+ className: J("h-4 w-4 text-gray-500 transition-transform duration-200 flex-shrink-0 ml-2", i && "rotate-180"),
3119
+ fill: "none",
3120
+ stroke: "currentColor",
3121
+ viewBox: "0 0 24 24",
3122
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3123
+ strokeLinecap: "round",
3124
+ strokeLinejoin: "round",
3125
+ strokeWidth: 2,
3126
+ d: "M19 9l-7 7-7-7"
3127
+ })
3128
+ })]
3129
+ });
3130
+ });
3131
+ sn.displayName = "SelectTrigger";
3132
+ var cn = ({ placeholder: e, className: t }) => {
3133
+ let { selectedLabel: n, value: r } = an(), i = n || r || e;
3134
+ return /* @__PURE__ */ (0, Y.jsx)("span", {
3135
+ className: J(!n && !r ? "text-gray-400" : "text-[#0F172A]", t),
3136
+ children: i
3137
+ });
3138
+ }, ln = ({ placeholder: e = "Search...", className: t, ...n }) => {
3139
+ let { searchQuery: r, setSearchQuery: i } = an();
3140
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
3141
+ className: "flex items-center border-b border-gray-100 px-3 py-2",
3142
+ children: [
3143
+ /* @__PURE__ */ (0, Y.jsx)("svg", {
3144
+ className: "mr-2 h-4 w-4 text-gray-400",
3145
+ fill: "none",
3146
+ stroke: "currentColor",
3147
+ viewBox: "0 0 24 24",
3148
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3149
+ strokeLinecap: "round",
3150
+ strokeLinejoin: "round",
3151
+ strokeWidth: 2,
3152
+ d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
3153
+ })
3154
+ }),
3155
+ /* @__PURE__ */ (0, Y.jsx)("input", {
3156
+ type: "text",
3157
+ value: r,
3158
+ onChange: (e) => i(e.target.value),
3159
+ placeholder: e,
3160
+ className: J("w-full bg-transparent text-sm font-[500] text-[#0F172A] placeholder:text-gray-400 focus:outline-none", t),
3161
+ autoFocus: !0,
3162
+ onClick: (e) => e.stopPropagation(),
3163
+ ...n
3164
+ }),
3165
+ r && /* @__PURE__ */ (0, Y.jsx)("button", {
3166
+ type: "button",
3167
+ onClick: (e) => {
3168
+ e.stopPropagation(), i("");
3169
+ },
3170
+ className: "text-gray-400 hover:text-gray-600",
3171
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3172
+ className: "h-3.5 w-3.5",
3173
+ fill: "none",
3174
+ stroke: "currentColor",
3175
+ viewBox: "0 0 24 24",
3176
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3177
+ strokeLinecap: "round",
3178
+ strokeLinejoin: "round",
3179
+ strokeWidth: 2,
3180
+ d: "M6 18L18 6M6 6l12 12"
3181
+ })
3182
+ })
3183
+ })
3184
+ ]
3185
+ });
3186
+ }, un = n(({ className: e, children: t, maxHeight: n = "max-h-60", ...r }, i) => {
3187
+ let { open: a, baseId: o } = an();
3188
+ return a ? /* @__PURE__ */ (0, Y.jsx)("div", {
3189
+ ref: i,
3190
+ id: `${o}-listbox`,
3191
+ role: "listbox",
3192
+ className: J("absolute left-0 top-full z-50 mt-1 min-w-[8rem] w-full overflow-y-auto rounded-lg border border-gray-200 bg-white p-1 shadow-lg animate-in fade-in-80 zoom-in-95", n, e),
3193
+ ...r,
3194
+ children: t
3195
+ }) : null;
3196
+ });
3197
+ un.displayName = "SelectContent";
3198
+ var dn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ (0, Y.jsx)("div", {
3199
+ className: J("p-1", e),
3200
+ ...n,
3201
+ children: t
3202
+ }), fn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ (0, Y.jsx)("div", {
3203
+ className: J("px-2 py-1.5 text-xs font-[600] text-[#0F172A]", e),
3204
+ ...n,
3205
+ children: t
3206
+ }), pn = n(({ value: e, disabled: t = !1, className: n, children: r, ...i }, a) => {
3207
+ let { value: s, onValueChange: c, setSelectedLabel: l, searchQuery: u } = an(), d = s === e, f = !u || (typeof r == "string" ? r : e).toLowerCase().includes(u.toLowerCase());
3208
+ return o(() => {
3209
+ d && typeof r == "string" && l(r);
3210
+ }, [
3211
+ d,
3212
+ r,
3213
+ l
3214
+ ]), f ? /* @__PURE__ */ (0, Y.jsxs)("div", {
3215
+ ref: a,
3216
+ role: "option",
3217
+ "aria-selected": d,
3218
+ "data-disabled": t,
3219
+ onClick: () => {
3220
+ t || (typeof r == "string" && l(r), c(e));
3221
+ },
3222
+ className: J("relative flex w-full cursor-pointer select-none items-center rounded-md px-2.5 py-1.5 text-sm font-[500] text-[#0F172A] outline-none transition-colors hover:bg-slate-100 hover:text-[#0F172A]", d && "bg-slate-100 font-[600]", t && "pointer-events-none opacity-50", n),
3223
+ ...i,
3224
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", {
3225
+ className: "flex-1 truncate",
3226
+ children: r
3227
+ }), d && /* @__PURE__ */ (0, Y.jsx)("svg", {
3228
+ className: "h-4 w-4 ml-2 text-[#0F172A]",
3229
+ fill: "none",
3230
+ stroke: "currentColor",
3231
+ viewBox: "0 0 24 24",
3232
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3233
+ strokeLinecap: "round",
3234
+ strokeLinejoin: "round",
3235
+ strokeWidth: 2,
3236
+ d: "M5 13l4 4L19 7"
3237
+ })
3238
+ })]
3239
+ }) : null;
3240
+ });
3241
+ pn.displayName = "SelectItem";
3242
+ var mn = ({ className: e, ...t }) => /* @__PURE__ */ (0, Y.jsx)("div", {
3243
+ className: J("-mx-1 my-1 h-px bg-gray-100", e),
3244
+ ...t
3245
+ }), hn = ({ options: e, value: t, defaultValue: n = [], onChange: r, placeholder: i = "Select options...", searchPlaceholder: a = "Search options...", searchable: c = !0, disabled: l = !1, label: f, className: p, maxCount: m = 3 }) => {
3246
+ let h = t !== void 0, [g, _] = d(n), v = h ? t : g, [y, b] = d(!1), [x, S] = d(""), C = u(null), w = s();
3247
+ o(() => {
3248
+ let e = (e) => {
3249
+ C.current && !C.current.contains(e.target) && b(!1);
3250
+ };
3251
+ return y && document.addEventListener("mousedown", e), () => {
3252
+ document.removeEventListener("mousedown", e);
3253
+ };
3254
+ }, [y]);
3255
+ let T = (e) => {
3256
+ let t;
3257
+ t = v.includes(e) ? v.filter((t) => t !== e) : [...v, e], h || _(t), r?.(t);
3258
+ }, E = (e, t) => {
3259
+ e.stopPropagation();
3260
+ let n = v.filter((e) => e !== t);
3261
+ h || _(n), r?.(n);
3262
+ }, D = (e) => {
3263
+ e.stopPropagation(), h || _([]), r?.([]);
3264
+ }, O = e.filter((e) => e.label.toLowerCase().includes(x.toLowerCase()));
3265
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
3266
+ ref: C,
3267
+ className: J("relative flex flex-col gap-2 w-full", p),
3268
+ children: [
3269
+ f && /* @__PURE__ */ (0, Y.jsx)("label", {
3270
+ htmlFor: w,
3271
+ className: "text-sm font-[600] text-[#0F172A]",
3272
+ children: f
3273
+ }),
3274
+ /* @__PURE__ */ (0, Y.jsxs)("div", {
3275
+ id: w,
3276
+ role: "combobox",
3277
+ "aria-expanded": y,
3278
+ "aria-haspopup": "listbox",
3279
+ onClick: () => !l && b(!y),
3280
+ className: J("flex min-h-[40px] w-full items-center justify-between rounded-md border border-gray-200 bg-white px-3 py-1.5 text-sm font-[500] text-[#0F172A] cursor-pointer transition-colors focus-within:ring-2 focus-within:ring-[#0F172A]", l && "cursor-not-allowed opacity-50 bg-slate-50"),
3281
+ children: [/* @__PURE__ */ (0, Y.jsx)("div", {
3282
+ className: "flex flex-wrap items-center gap-1.5 flex-1 pr-2",
3283
+ children: v.length === 0 ? /* @__PURE__ */ (0, Y.jsx)("span", {
3284
+ className: "text-gray-400",
3285
+ children: i
3286
+ }) : /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [v.slice(0, m).map((t) => {
3287
+ let n = e.find((e) => e.value === t);
3288
+ return /* @__PURE__ */ (0, Y.jsxs)("span", {
3289
+ className: "inline-flex items-center gap-1 rounded bg-slate-100 px-2 py-0.5 text-xs font-[500] text-[#0F172A] border border-gray-200",
3290
+ children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: n ? n.label : t }), !l && /* @__PURE__ */ (0, Y.jsx)("button", {
3291
+ type: "button",
3292
+ onClick: (e) => E(e, t),
3293
+ className: "text-gray-400 hover:text-[#0F172A]",
3294
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3295
+ className: "h-3 w-3",
3296
+ fill: "none",
3297
+ stroke: "currentColor",
3298
+ viewBox: "0 0 24 24",
3299
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3300
+ strokeLinecap: "round",
3301
+ strokeLinejoin: "round",
3302
+ strokeWidth: 2,
3303
+ d: "M6 18L18 6M6 6l12 12"
3304
+ })
3305
+ })
3306
+ })]
3307
+ }, t);
3308
+ }), v.length > m && /* @__PURE__ */ (0, Y.jsxs)("span", {
3309
+ className: "rounded bg-slate-100 px-1.5 py-0.5 text-xs font-[500] text-slate-600 border border-gray-200",
3310
+ children: [
3311
+ "+",
3312
+ v.length - m,
3313
+ " more"
3314
+ ]
3315
+ })] })
3316
+ }), /* @__PURE__ */ (0, Y.jsxs)("div", {
3317
+ className: "flex items-center gap-1.5 flex-shrink-0",
3318
+ children: [v.length > 0 && !l && /* @__PURE__ */ (0, Y.jsx)("button", {
3319
+ type: "button",
3320
+ onClick: D,
3321
+ className: "text-gray-400 hover:text-gray-600 p-0.5 rounded",
3322
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3323
+ className: "h-3.5 w-3.5",
3324
+ fill: "none",
3325
+ stroke: "currentColor",
3326
+ viewBox: "0 0 24 24",
3327
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3328
+ strokeLinecap: "round",
3329
+ strokeLinejoin: "round",
3330
+ strokeWidth: 2,
3331
+ d: "M6 18L18 6M6 6l12 12"
3332
+ })
3333
+ })
3334
+ }), /* @__PURE__ */ (0, Y.jsx)("svg", {
3335
+ className: J("h-4 w-4 text-gray-500 transition-transform duration-200", y && "rotate-180"),
3336
+ fill: "none",
3337
+ stroke: "currentColor",
3338
+ viewBox: "0 0 24 24",
3339
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3340
+ strokeLinecap: "round",
3341
+ strokeLinejoin: "round",
3342
+ strokeWidth: 2,
3343
+ d: "M19 9l-7 7-7-7"
3344
+ })
3345
+ })]
3346
+ })]
3347
+ }),
3348
+ y && /* @__PURE__ */ (0, Y.jsxs)("div", {
3349
+ className: "absolute left-0 top-full z-50 mt-1 w-full rounded-lg border border-gray-200 bg-white p-1 shadow-lg animate-in fade-in-80 zoom-in-95",
3350
+ children: [c && /* @__PURE__ */ (0, Y.jsxs)("div", {
3351
+ className: "flex items-center border-b border-gray-100 px-3 py-2",
3352
+ children: [
3353
+ /* @__PURE__ */ (0, Y.jsx)("svg", {
3354
+ className: "mr-2 h-4 w-4 text-gray-400",
3355
+ fill: "none",
3356
+ stroke: "currentColor",
3357
+ viewBox: "0 0 24 24",
3358
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3359
+ strokeLinecap: "round",
3360
+ strokeLinejoin: "round",
3361
+ strokeWidth: 2,
3362
+ d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
3363
+ })
3364
+ }),
3365
+ /* @__PURE__ */ (0, Y.jsx)("input", {
3366
+ type: "text",
3367
+ value: x,
3368
+ onChange: (e) => S(e.target.value),
3369
+ placeholder: a,
3370
+ className: "w-full bg-transparent text-sm font-[500] text-[#0F172A] placeholder:text-gray-400 focus:outline-none",
3371
+ autoFocus: !0,
3372
+ onClick: (e) => e.stopPropagation()
3373
+ }),
3374
+ x && /* @__PURE__ */ (0, Y.jsx)("button", {
3375
+ type: "button",
3376
+ onClick: (e) => {
3377
+ e.stopPropagation(), S("");
3378
+ },
3379
+ className: "text-gray-400 hover:text-gray-600",
3380
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3381
+ className: "h-3.5 w-3.5",
3382
+ fill: "none",
3383
+ stroke: "currentColor",
3384
+ viewBox: "0 0 24 24",
3385
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3386
+ strokeLinecap: "round",
3387
+ strokeLinejoin: "round",
3388
+ strokeWidth: 2,
3389
+ d: "M6 18L18 6M6 6l12 12"
3390
+ })
3391
+ })
3392
+ })
3393
+ ]
3394
+ }), /* @__PURE__ */ (0, Y.jsx)("div", {
3395
+ className: "max-h-60 overflow-y-auto p-1 space-y-0.5",
3396
+ children: O.length === 0 ? /* @__PURE__ */ (0, Y.jsx)("div", {
3397
+ className: "px-3 py-2 text-center text-xs text-gray-400",
3398
+ children: "No options found."
3399
+ }) : O.map((e) => {
3400
+ let t = v.includes(e.value);
3401
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
3402
+ role: "option",
3403
+ "aria-selected": t,
3404
+ onClick: () => !e.disabled && T(e.value),
3405
+ className: J("flex w-full cursor-pointer select-none items-center rounded-md px-2.5 py-1.5 text-sm font-[500] transition-colors hover:bg-slate-100", t ? "bg-slate-100 text-[#0F172A] font-[600]" : "text-[#0F172A]", e.disabled && "pointer-events-none opacity-50"),
3406
+ children: [/* @__PURE__ */ (0, Y.jsx)("div", {
3407
+ className: J("mr-2.5 flex h-4 w-4 items-center justify-center rounded border transition-colors", t ? "border-[#0F172A] bg-[#0F172A] text-white" : "border-gray-300 bg-white"),
3408
+ children: t && /* @__PURE__ */ (0, Y.jsx)("svg", {
3409
+ className: "h-3 w-3",
3410
+ fill: "none",
3411
+ stroke: "currentColor",
3412
+ viewBox: "0 0 24 24",
3413
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3414
+ strokeLinecap: "round",
3415
+ strokeLinejoin: "round",
3416
+ strokeWidth: 3,
3417
+ d: "M5 13l4 4L19 7"
3418
+ })
3419
+ })
3420
+ }), /* @__PURE__ */ (0, Y.jsx)("span", {
3421
+ className: "flex-1 truncate",
3422
+ children: e.label
3423
+ })]
3424
+ }, e.value);
3425
+ })
3426
+ })]
3427
+ })
3428
+ ]
3429
+ });
3430
+ }, gn = n(({ className: e, value: t, defaultValue: n = 0, min: r = 0, max: a = 100, step: o = 1, disabled: s = !1, onChange: c, showValue: l = !1, label: f, ...p }, m) => {
3431
+ let h = t !== void 0, [g, _] = d(n), v = Math.min(Math.max(h ? t : g, r), a), y = u(null), [b, x] = d(!1), S = (v - r) / (a - r) * 100, C = i((e) => {
3432
+ if (!y.current || s) return;
3433
+ let t = y.current.getBoundingClientRect(), n = (e - t.left) / t.width, i = r + Math.max(0, Math.min(1, n)) * (a - r), l = Math.round(i / o) * o, u = Math.min(Math.max(Number(l.toFixed(4)), r), a);
3434
+ h || _(u), c?.(u);
3435
+ }, [
3436
+ s,
3437
+ r,
3438
+ a,
3439
+ o,
3440
+ h,
3441
+ c
3442
+ ]), w = (e) => {
3443
+ s || (x(!0), e.target.setPointerCapture?.(e.pointerId), C(e.clientX));
3444
+ }, T = (e) => {
3445
+ b && !s && C(e.clientX);
3446
+ }, E = (e) => {
3447
+ b && (x(!1), e.target.releasePointerCapture?.(e.pointerId));
3448
+ }, D = (e) => {
3449
+ if (s) return;
3450
+ let t = v;
3451
+ if (e.key === "ArrowRight" || e.key === "ArrowUp") t = Math.min(v + o, a);
3452
+ else if (e.key === "ArrowLeft" || e.key === "ArrowDown") t = Math.max(v - o, r);
3453
+ else if (e.key === "Home") t = r;
3454
+ else if (e.key === "End") t = a;
3455
+ else return;
3456
+ e.preventDefault(), h || _(t), c?.(t);
3457
+ };
3458
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
3459
+ className: J("w-full flex flex-col gap-2 select-none", e),
3460
+ children: [(f || l) && /* @__PURE__ */ (0, Y.jsxs)("div", {
3461
+ className: "flex justify-between items-center text-sm font-[500] text-[#0F172A]",
3462
+ children: [f && /* @__PURE__ */ (0, Y.jsx)("span", { children: f }), l && /* @__PURE__ */ (0, Y.jsxs)("span", {
3463
+ className: "text-slate-500 font-mono text-xs",
3464
+ children: [v, "%"]
3465
+ })]
3466
+ }), /* @__PURE__ */ (0, Y.jsxs)("div", {
3467
+ ref: m,
3468
+ className: J("relative flex items-center w-full h-6 touch-none cursor-pointer", s && "opacity-50 cursor-not-allowed"),
3469
+ onPointerDown: w,
3470
+ onPointerMove: T,
3471
+ onPointerUp: E,
3472
+ onPointerCancel: E,
3473
+ ...p,
3474
+ children: [/* @__PURE__ */ (0, Y.jsx)("div", {
3475
+ ref: y,
3476
+ className: "relative w-full h-2 rounded-full bg-slate-100 overflow-hidden",
3477
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
3478
+ className: "h-full bg-[#0F172A] rounded-full transition-all duration-75",
3479
+ style: { width: `${S}%` }
3480
+ })
3481
+ }), /* @__PURE__ */ (0, Y.jsx)("div", {
3482
+ role: "slider",
3483
+ tabIndex: s ? -1 : 0,
3484
+ "aria-valuemin": r,
3485
+ "aria-valuemax": a,
3486
+ "aria-valuenow": v,
3487
+ "aria-disabled": s,
3488
+ onKeyDown: D,
3489
+ className: J("absolute top-1/2 -translate-y-1/2 -translate-x-1/2 h-5 w-5 rounded-full bg-white border-2 border-[#0F172A] shadow-md transition-transform focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A] focus-visible:ring-offset-2", b && "scale-110", !s && "hover:scale-105"),
3490
+ style: { left: `${S}%` }
3491
+ })]
3492
+ })]
3493
+ });
3494
+ });
3495
+ gn.displayName = "Slider";
3496
+ //#endregion
3497
+ //#region src/components/Switch/Switch.tsx
3498
+ var _n = v("relative inline-flex flex-shrink-0 cursor-pointer rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", {
3499
+ variants: {
3500
+ switchSize: {
3501
+ sm: "h-4 w-7",
3502
+ default: "h-6 w-11"
3503
+ },
3504
+ checked: {
3505
+ true: "bg-[#0F172A]",
3506
+ false: "bg-slate-200"
3507
+ }
3508
+ },
3509
+ defaultVariants: {
3510
+ switchSize: "default",
3511
+ checked: !1
3512
+ }
3513
+ }), vn = v("pointer-events-none inline-block rounded-full bg-white shadow-md transform ring-0 transition duration-200 ease-in-out", {
3514
+ variants: {
3515
+ switchSize: {
3516
+ sm: "h-3 w-3",
3517
+ default: "h-5 w-5"
3518
+ },
3519
+ checked: {
3520
+ true: "",
3521
+ false: "translate-x-0.5"
3522
+ }
3523
+ },
3524
+ compoundVariants: [
3525
+ {
3526
+ switchSize: "default",
3527
+ checked: !0,
3528
+ className: "translate-x-5.5"
3529
+ },
3530
+ {
3531
+ switchSize: "default",
3532
+ checked: !1,
3533
+ className: "translate-x-0.5"
3534
+ },
3535
+ {
3536
+ switchSize: "sm",
3537
+ checked: !0,
3538
+ className: "translate-x-3.5"
3539
+ },
3540
+ {
3541
+ switchSize: "sm",
3542
+ checked: !1,
3543
+ className: "translate-x-0.5"
3544
+ }
3545
+ ],
3546
+ defaultVariants: {
3547
+ switchSize: "default",
3548
+ checked: !1
3549
+ }
3550
+ }), yn = n(({ className: e, switchSize: t = "default", checked: n, defaultChecked: r = !1, onCheckedChange: i, disabled: a, label: o, id: c, ...l }, u) => {
3551
+ let f = n !== void 0, [p, m] = d(r), h = f ? n : p, g = s(), _ = c || g, v = /* @__PURE__ */ (0, Y.jsx)("button", {
3552
+ id: _,
3553
+ ref: u,
3554
+ type: "button",
3555
+ role: "switch",
3556
+ "aria-checked": h,
3557
+ disabled: a,
3558
+ onClick: () => {
3559
+ if (a) return;
3560
+ let e = !h;
3561
+ f || m(e), i?.(e);
3562
+ },
3563
+ className: J(_n({
3564
+ switchSize: t,
3565
+ checked: h,
3566
+ className: e
3567
+ }), "items-center"),
3568
+ ...l,
3569
+ children: /* @__PURE__ */ (0, Y.jsx)("span", { className: J(vn({
3570
+ switchSize: t,
3571
+ checked: h
3572
+ })) })
3573
+ });
3574
+ return o ? /* @__PURE__ */ (0, Y.jsxs)("div", {
3575
+ className: "inline-flex items-center gap-3 select-none",
3576
+ children: [v, /* @__PURE__ */ (0, Y.jsx)("label", {
3577
+ htmlFor: _,
3578
+ className: J("text-sm font-[500] text-[#0F172A] cursor-pointer", a && "opacity-50 cursor-not-allowed"),
3579
+ children: o
3580
+ })]
3581
+ }) : v;
3582
+ });
3583
+ yn.displayName = "Switch";
3584
+ //#endregion
3585
+ //#region src/components/Table/Table.tsx
3586
+ var bn = v("w-full overflow-x-auto border border-slate-200 transition-all", {
3587
+ variants: {
3588
+ rounded: {
3589
+ none: "rounded-none",
3590
+ md: "rounded-md",
3591
+ lg: "rounded-lg",
3592
+ xl: "rounded-xl"
3593
+ },
3594
+ shadow: {
3595
+ none: "shadow-none",
3596
+ sm: "shadow-sm",
3597
+ default: "shadow"
3598
+ }
3599
+ },
3600
+ defaultVariants: {
3601
+ rounded: "lg",
3602
+ shadow: "sm"
3603
+ }
3604
+ }), xn = v("w-full caption-bottom text-left border-collapse", {
3605
+ variants: {
3606
+ size: {
3607
+ sm: "[&_th]:px-3 [&_th]:py-2.5 [&_td]:px-3 [&_td]:py-2.5 text-xs",
3608
+ default: "[&_th]:px-4 [&_th]:py-3.5 [&_td]:px-4 [&_td]:py-3.5 text-sm",
3609
+ lg: "[&_th]:px-6 [&_th]:py-4.5 [&_td]:px-6 [&_td]:py-4.5 text-base"
3610
+ },
3611
+ variant: {
3612
+ default: "[&_tbody_tr]:border-b [&_tbody_tr]:border-slate-100 [&_tbody_tr:last-child]:border-0",
3613
+ striped: "[&_tbody_tr:nth-child(even)]:bg-slate-50/60 [&_tbody_tr]:border-b [&_tbody_tr]:border-slate-100 [&_tbody_tr:last-child]:border-0",
3614
+ bordered: "[&_th]:border-r [&_th]:border-slate-200 [&_td]:border-r [&_td]:border-slate-100 [&_th:last-child]:border-0 [&_td:last-child]:border-0 [&_tbody_tr]:border-b [&_tbody_tr]:border-slate-100"
3615
+ }
3616
+ },
3617
+ defaultVariants: {
3618
+ size: "default",
3619
+ variant: "default"
3620
+ }
3621
+ }), Sn = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("thead", {
3622
+ ref: n,
3623
+ className: J("bg-slate-50 text-slate-700 border-b border-slate-200 select-none", e),
3624
+ ...t
3625
+ }));
3626
+ Sn.displayName = "TableHeader";
3627
+ var Cn = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("tbody", {
3628
+ ref: n,
3629
+ className: J("bg-white divide-y divide-slate-100", e),
3630
+ ...t
3631
+ }));
3632
+ Cn.displayName = "TableBody";
3633
+ var wn = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("tfoot", {
3634
+ ref: n,
3635
+ className: J("bg-slate-50/80 font-medium text-slate-700 border-t border-slate-200", e),
3636
+ ...t
3637
+ }));
3638
+ wn.displayName = "TableFooter";
3639
+ var Tn = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("tr", {
3640
+ ref: n,
3641
+ className: J("transition-colors hover:bg-slate-50/80 data-[state=selected]:bg-slate-100", e),
3642
+ ...t
3643
+ }));
3644
+ Tn.displayName = "TableRow";
3645
+ var En = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("th", {
3646
+ ref: n,
3647
+ className: J("font-[600] text-slate-800 text-left align-middle whitespace-nowrap bg-slate-50", e),
3648
+ ...t
3649
+ }));
3650
+ En.displayName = "TableHead";
3651
+ var Dn = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("td", {
3652
+ ref: n,
3653
+ className: J("align-middle font-[500] text-[#0F172A] whitespace-nowrap bg-inherit", e),
3654
+ ...t
3655
+ }));
3656
+ Dn.displayName = "TableCell";
3657
+ var On = n(({ className: e, ...t }, n) => /* @__PURE__ */ (0, Y.jsx)("caption", {
3658
+ ref: n,
3659
+ className: J("mt-3 text-xs text-slate-500", e),
3660
+ ...t
3661
+ }));
3662
+ On.displayName = "TableCaption";
3663
+ var kn = {
3664
+ left: "text-left",
3665
+ center: "text-center",
3666
+ right: "text-right"
3667
+ };
3668
+ function An({ columns: t, data: n, rowKey: r, showSerialNumber: i = !0, serialNumberHeader: a = "S.No", stickyHeader: o = !1, maxHeight: s, size: c = "default", variant: l = "default", rounded: u = "lg", shadow: f = "sm", loading: p = !1, emptyText: m = "No Data Found", emptyState: h, onRowClick: g, containerClassName: _, className: v, expandable: y, defaultExpandedRowKeys: b, expandedRowKeys: x, ...S }) {
3669
+ let C = (e, t) => r ? r(e, t) : e.id === void 0 ? e.key === void 0 ? t : e.key : e.id, w = b || y?.defaultExpandedRowKeys || [], [T, E] = d(w), D = x ?? y?.expandedRowKeys, O = D !== void 0, k = O ? D : T, A = (e, t, n) => {
3670
+ n?.stopPropagation();
3671
+ let r = C(e, t), i = k.includes(r), a = i ? k.filter((e) => e !== r) : [...k, r];
3672
+ O || E(a), y?.onExpand?.(!i, e, t);
3673
+ }, j = t.some((e) => e.fixed), M = +!!i + +!!y + t.length, N = (e, t, n) => {
3674
+ if (!e.fixed) return { className: "" };
3675
+ let r = e.fixed === "left" || e.fixed === !0, i = e.fixed === "right";
3676
+ return r ? { className: J("sticky left-0 z-10 shadow-[2px_0_5px_-2px_rgba(0,0,0,0.06)]", n ? "bg-slate-50 z-20" : "bg-white") } : i ? { className: J("sticky right-0 z-10 shadow-[-2px_0_5px_-2px_rgba(0,0,0,0.06)]", n ? "bg-slate-50 z-20" : "bg-white") } : { className: "" };
3677
+ };
3678
+ return /* @__PURE__ */ (0, Y.jsx)("div", {
3679
+ style: s ? {
3680
+ maxHeight: s,
3681
+ overflowY: "auto"
3682
+ } : void 0,
3683
+ className: J(bn({
3684
+ rounded: u,
3685
+ shadow: f
3686
+ }), o && "relative", _),
3687
+ children: /* @__PURE__ */ (0, Y.jsxs)("table", {
3688
+ className: J(xn({
3689
+ size: c,
3690
+ variant: l
3691
+ }), j && "min-w-full", v),
3692
+ ...S,
3693
+ children: [/* @__PURE__ */ (0, Y.jsx)(Sn, {
3694
+ className: J(o && "sticky top-0 z-20 shadow-sm"),
3695
+ children: /* @__PURE__ */ (0, Y.jsxs)(Tn, { children: [
3696
+ y && /* @__PURE__ */ (0, Y.jsx)(En, { className: "w-10 px-2 text-center" }),
3697
+ i && /* @__PURE__ */ (0, Y.jsx)(En, {
3698
+ className: "w-16 text-center",
3699
+ children: a
3700
+ }),
3701
+ t.map((e, t) => {
3702
+ let n = N(e, t, !0);
3703
+ return /* @__PURE__ */ (0, Y.jsx)(En, {
3704
+ style: {
3705
+ ...e.width ? { width: e.width } : {},
3706
+ ...e.minWidth ? { minWidth: e.minWidth } : {},
3707
+ ...n.style
3708
+ },
3709
+ className: J(e.align ? kn[e.align] : "text-left", n.className, e.className),
3710
+ children: e.header
3711
+ }, t);
3712
+ })
3713
+ ] })
3714
+ }), /* @__PURE__ */ (0, Y.jsx)(Cn, { children: p ? /* @__PURE__ */ (0, Y.jsx)(Tn, { children: /* @__PURE__ */ (0, Y.jsx)(Dn, {
3715
+ colSpan: M,
3716
+ className: "text-center py-8 text-slate-500",
3717
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
3718
+ className: "flex items-center justify-center gap-2",
3719
+ children: [/* @__PURE__ */ (0, Y.jsx)("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-slate-300 border-t-[#0F172A]" }), /* @__PURE__ */ (0, Y.jsx)("span", { children: "Loading records..." })]
3720
+ })
3721
+ }) }) : n.length ? n.map((n, r) => {
3722
+ let a = C(n, r), o = k.includes(a), s = y ? !y.rowExpandable || y.rowExpandable(n, r) : !1;
3723
+ return /* @__PURE__ */ (0, Y.jsxs)(e.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)(Tn, {
3724
+ onClick: (e) => {
3725
+ y?.expandRowByClick && s && A(n, r, e), g?.(n, r);
3726
+ },
3727
+ className: J((g || y?.expandRowByClick && s) && "cursor-pointer", o && "bg-slate-50/50"),
3728
+ children: [
3729
+ y && /* @__PURE__ */ (0, Y.jsx)(Dn, {
3730
+ className: "w-10 px-2 text-center",
3731
+ children: s ? /* @__PURE__ */ (0, Y.jsx)("button", {
3732
+ type: "button",
3733
+ onClick: (e) => A(n, r, e),
3734
+ "aria-expanded": o,
3735
+ "aria-label": o ? "Collapse row details" : "Expand row details",
3736
+ className: "inline-flex h-6 w-6 items-center justify-center rounded-md text-slate-500 hover:bg-slate-200/70 hover:text-slate-800 transition-transform duration-200 focus:outline-none",
3737
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
3738
+ className: J("h-4 w-4 transform transition-transform duration-200", o && "rotate-90"),
3739
+ fill: "none",
3740
+ stroke: "currentColor",
3741
+ viewBox: "0 0 24 24",
3742
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
3743
+ strokeLinecap: "round",
3744
+ strokeLinejoin: "round",
3745
+ strokeWidth: 2,
3746
+ d: "M9 5l7 7-7 7"
3747
+ })
3748
+ })
3749
+ }) : null
3750
+ }),
3751
+ i && /* @__PURE__ */ (0, Y.jsx)(Dn, {
3752
+ className: "text-center text-slate-500 font-mono text-xs",
3753
+ children: r + 1
3754
+ }),
3755
+ t.map((e, t) => {
3756
+ let i = N(e, t, !1), a = null;
3757
+ return e.cell ? a = e.cell(n, r) : e.accessor && (a = n[e.accessor]), /* @__PURE__ */ (0, Y.jsx)(Dn, {
3758
+ style: {
3759
+ ...e.width ? { width: e.width } : {},
3760
+ ...e.minWidth ? { minWidth: e.minWidth } : {},
3761
+ ...i.style
3762
+ },
3763
+ className: J(e.align ? kn[e.align] : "text-left", i.className, e.className),
3764
+ children: a
3765
+ }, t);
3766
+ })
3767
+ ]
3768
+ }), y && o && s && /* @__PURE__ */ (0, Y.jsx)("tr", {
3769
+ className: "bg-slate-50/70 border-b border-slate-100",
3770
+ children: /* @__PURE__ */ (0, Y.jsx)("td", {
3771
+ colSpan: M,
3772
+ className: "p-4",
3773
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
3774
+ className: "animate-in fade-in duration-200",
3775
+ children: y.expandedRowRender(n, r)
3776
+ })
3777
+ })
3778
+ })] }, a);
3779
+ }) : /* @__PURE__ */ (0, Y.jsx)(Tn, { children: /* @__PURE__ */ (0, Y.jsx)(Dn, {
3780
+ colSpan: M,
3781
+ className: "text-center py-8 text-slate-400",
3782
+ children: h || m
3783
+ }) }) })]
3784
+ })
3785
+ });
3786
+ }
3787
+ //#endregion
3788
+ //#region src/components/Tabs/Tabs.tsx
3789
+ var jn = t(null);
3790
+ function Mn() {
3791
+ let e = a(jn);
3792
+ if (!e) throw Error("Tabs compound components must be used within a <Tabs /> provider.");
3793
+ return e;
3794
+ }
3795
+ var Nn = n(({ value: e, defaultValue: t = "", onChange: n, variant: r = "default", stretch: i = !1, size: a = "default", className: o, children: c, ...l }, u) => {
3796
+ let f = e !== void 0, [p, m] = d(t), h = f ? e : p, g = s();
3797
+ return /* @__PURE__ */ (0, Y.jsx)(jn.Provider, {
3798
+ value: {
3799
+ value: h,
3800
+ onChange: (e) => {
3801
+ f || m(e), n?.(e);
3802
+ },
3803
+ variant: r,
3804
+ stretch: i,
3805
+ size: a,
3806
+ baseId: g
3807
+ },
3808
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
3809
+ ref: u,
3810
+ className: J("flex flex-col gap-4", i && "w-full", o),
3811
+ ...l,
3812
+ children: c
3813
+ })
3814
+ });
3815
+ });
3816
+ Nn.displayName = "Tabs";
3817
+ var Pn = v("inline-flex items-center text-[#64748B]", {
3818
+ variants: {
3819
+ variant: {
3820
+ default: "bg-slate-100 p-1 rounded-md gap-1",
3821
+ line: "border-b border-gray-200 gap-6"
3822
+ },
3823
+ stretch: {
3824
+ true: "flex w-full",
3825
+ false: "inline-flex"
3826
+ }
3827
+ },
3828
+ defaultVariants: {
3829
+ variant: "default",
3830
+ stretch: !1
3831
+ }
3832
+ }), Fn = n(({ className: e, children: t, ...n }, r) => {
3833
+ let { variant: i, stretch: a } = Mn();
3834
+ return /* @__PURE__ */ (0, Y.jsx)("div", {
3835
+ ref: r,
3836
+ role: "tablist",
3837
+ className: J(Pn({
3838
+ variant: i,
3839
+ stretch: a,
3840
+ className: e
3841
+ })),
3842
+ ...n,
3843
+ children: t
3844
+ });
3845
+ });
3846
+ Fn.displayName = "TabsList";
3847
+ var In = v("inline-flex items-center justify-center font-[500] whitespace-nowrap transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A] disabled:pointer-events-none disabled:opacity-50 cursor-pointer select-none", {
3848
+ variants: {
3849
+ variant: {
3850
+ default: "rounded-md text-[#64748B] hover:text-[#0F172A] data-[state=active]:bg-white data-[state=active]:text-[#0F172A] data-[state=active]:font-[600] data-[state=active]:shadow-sm",
3851
+ line: "relative pb-2.5 -mb-[1px] border-b-2 border-transparent text-[#64748B] hover:text-[#0F172A] data-[state=active]:border-[#0F172A] data-[state=active]:text-[#0F172A] data-[state=active]:font-[600]"
3852
+ },
3853
+ size: {
3854
+ sm: "text-xs px-2.5 py-1",
3855
+ default: "text-sm px-3.5 py-1.5",
3856
+ lg: "text-base px-4 py-2"
3857
+ },
3858
+ stretch: {
3859
+ true: "flex-1 text-center",
3860
+ false: ""
3861
+ }
3862
+ },
3863
+ defaultVariants: {
3864
+ variant: "default",
3865
+ size: "default",
3866
+ stretch: !1
3867
+ }
3868
+ }), Ln = n(({ value: e, disabled: t, className: n, children: r, ...i }, a) => {
3869
+ let { value: o, onChange: s, variant: c, stretch: l, size: u, baseId: d } = Mn(), f = o === e, p = `${d}-tab-${e}`, m = `${d}-panel-${e}`;
3870
+ return /* @__PURE__ */ (0, Y.jsx)("button", {
3871
+ ref: a,
3872
+ id: p,
3873
+ role: "tab",
3874
+ type: "button",
3875
+ "aria-selected": f,
3876
+ "aria-controls": m,
3877
+ "data-state": f ? "active" : "inactive",
3878
+ disabled: t,
3879
+ onClick: () => s(e),
3880
+ className: J(In({
3881
+ variant: c,
3882
+ stretch: l,
3883
+ size: u,
3884
+ className: n
3885
+ })),
3886
+ ...i,
3887
+ children: r
3888
+ });
3889
+ });
3890
+ Ln.displayName = "TabsTrigger";
3891
+ var Rn = n(({ value: e, className: t, children: n, ...r }, i) => {
3892
+ let { value: a, baseId: o } = Mn(), s = a === e, c = `${o}-tab-${e}`, l = `${o}-panel-${e}`;
3893
+ return s ? /* @__PURE__ */ (0, Y.jsx)("div", {
3894
+ ref: i,
3895
+ id: l,
3896
+ role: "tabpanel",
3897
+ "aria-labelledby": c,
3898
+ tabIndex: 0,
3899
+ className: J("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0F172A] focus-visible:ring-offset-2 animate-in fade-in-50 duration-150", t),
3900
+ ...r,
3901
+ children: n
3902
+ }) : null;
3903
+ });
3904
+ Rn.displayName = "TabsContent";
3905
+ //#endregion
3906
+ //#region src/components/Textarea/Textarea.tsx
3907
+ var zn = v("flex min-h-[80px] w-full rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-[500] text-[#0F172A] placeholder:text-gray-400 focus:outline-none focus:ring-2 focus:ring-[#0F172A] focus:border-transparent transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-slate-50 resize-y", {
3908
+ variants: { hasError: { true: "border-red-500 focus:ring-red-500 text-red-900 placeholder:text-red-300" } },
3909
+ defaultVariants: { hasError: !1 }
3910
+ }), Bn = n(({ className: e, hasError: t = !1, label: n, helperText: r, errorMessage: i, id: a, disabled: o, ...c }, l) => {
3911
+ let u = s(), d = a || u, f = `${d}-desc`, p = !!(i || t), m = /* @__PURE__ */ (0, Y.jsx)("textarea", {
3912
+ id: d,
3913
+ ref: l,
3914
+ disabled: o,
3915
+ "aria-invalid": p,
3916
+ "aria-describedby": r || i ? f : void 0,
3917
+ className: J(zn({
3918
+ hasError: p,
3919
+ className: e
3920
+ })),
3921
+ ...c
3922
+ });
3923
+ return !n && !r && !i ? m : /* @__PURE__ */ (0, Y.jsxs)("div", {
3924
+ className: "w-full flex flex-col gap-2",
3925
+ children: [
3926
+ n && /* @__PURE__ */ (0, Y.jsx)("label", {
3927
+ htmlFor: d,
3928
+ className: J("text-sm font-[600] text-[#0F172A]", o && "opacity-50 cursor-not-allowed"),
3929
+ children: n
3930
+ }),
3931
+ m,
3932
+ i ? /* @__PURE__ */ (0, Y.jsx)("p", {
3933
+ id: f,
3934
+ className: "text-xs font-[400] text-red-500",
3935
+ children: i
3936
+ }) : r ? /* @__PURE__ */ (0, Y.jsx)("p", {
3937
+ id: f,
3938
+ className: "text-xs font-[400] text-gray-500",
3939
+ children: r
3940
+ }) : null
3941
+ ]
3942
+ });
3943
+ });
3944
+ Bn.displayName = "Textarea";
3945
+ //#endregion
3946
+ //#region src/components/Toast/Toast.tsx
3947
+ var Vn = v("relative flex w-full max-w-md items-center justify-between space-x-4 overflow-hidden rounded-lg p-4 shadow-lg border transition-all duration-200", {
3948
+ variants: { variant: {
3949
+ default: "bg-white border-gray-200 text-[#0F172A]",
3950
+ destructive: "bg-[#EF4444] border-[#EF4444] text-white"
3951
+ } },
3952
+ defaultVariants: { variant: "default" }
3953
+ }), Hn = n(({ className: e, variant: t = "default", title: n, description: r, action: i, onClose: a, children: o, ...s }, c) => {
3954
+ let l = t === "destructive";
3955
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
3956
+ ref: c,
3957
+ role: "status",
3958
+ "aria-live": "polite",
3959
+ className: J(Vn({
3960
+ variant: t,
3961
+ className: e
3962
+ })),
3963
+ ...s,
3964
+ children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
3965
+ className: "flex-1 space-y-1",
3966
+ children: [
3967
+ n && /* @__PURE__ */ (0, Y.jsx)("h5", {
3968
+ className: J("text-sm font-[600] leading-tight", l ? "text-white" : "text-[#0F172A]"),
3969
+ children: n
3970
+ }),
3971
+ r && /* @__PURE__ */ (0, Y.jsx)("p", {
3972
+ className: J("text-xs font-[400] leading-normal", l ? "text-white/90" : "text-slate-500"),
3973
+ children: r
3974
+ }),
3975
+ o
3976
+ ]
3977
+ }), i && /* @__PURE__ */ (0, Y.jsx)("div", {
3978
+ className: "flex-shrink-0",
3979
+ children: typeof i == "string" ? /* @__PURE__ */ (0, Y.jsx)("button", {
3980
+ type: "button",
3981
+ className: J("inline-flex h-8 items-center justify-center rounded-md px-3 text-xs font-[500] transition-colors focus:outline-none focus:ring-2 select-none", l ? "bg-transparent border border-white/40 text-white hover:bg-white/10 focus:ring-white" : "bg-transparent border border-gray-200 text-[#0F172A] hover:bg-slate-100 focus:ring-[#0F172A]"),
3982
+ children: i
3983
+ }) : i
3984
+ })]
3985
+ });
3986
+ });
3987
+ Hn.displayName = "Toast";
3988
+ //#endregion
3989
+ //#region src/components/Tooltip/Tooltip.tsx
3990
+ var Un = t(null);
3991
+ function Wn() {
3992
+ let e = a(Un);
3993
+ if (!e) throw Error("Tooltip compound components must be used within <Tooltip />.");
3994
+ return e;
3995
+ }
3996
+ var Gn = t({ delayDuration: 150 }), Kn = ({ delayDuration: e = 150, children: t }) => /* @__PURE__ */ (0, Y.jsx)(Gn.Provider, {
3997
+ value: { delayDuration: e },
3998
+ children: t
3999
+ }), qn = ({ open: e, defaultOpen: t = !1, onOpenChange: n, delayDuration: r, side: i = "top", align: s = "center", sideOffset: c = 6, children: l, content: f }) => {
4000
+ let p = a(Gn), m = r === void 0 ? p.delayDuration : r, h = e !== void 0, [g, _] = d(t), v = h ? e : g, [y, b] = d(null), x = u(null);
4001
+ return o(() => () => {
4002
+ x.current && clearTimeout(x.current);
4003
+ }, []), f === void 0 ? /* @__PURE__ */ (0, Y.jsx)(Un.Provider, {
4004
+ value: {
4005
+ open: v,
4006
+ setOpen: (e) => {
4007
+ x.current && clearTimeout(x.current), e ? x.current = window.setTimeout(() => {
4008
+ h || _(!0), n?.(!0);
4009
+ }, m) : (h || _(!1), n?.(!1));
4010
+ },
4011
+ side: i,
4012
+ align: s,
4013
+ sideOffset: c,
4014
+ triggerRect: y,
4015
+ setTriggerRect: b
4016
+ },
4017
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
4018
+ className: "relative inline-flex",
4019
+ children: l
4020
+ })
4021
+ }) : /* @__PURE__ */ (0, Y.jsxs)(qn, {
4022
+ side: i,
4023
+ align: s,
4024
+ sideOffset: c,
4025
+ delayDuration: m,
4026
+ open: e,
4027
+ onOpenChange: n,
4028
+ children: [/* @__PURE__ */ (0, Y.jsx)(Jn, {
4029
+ asChild: !0,
4030
+ children: l
4031
+ }), /* @__PURE__ */ (0, Y.jsx)(Yn, {
4032
+ side: i,
4033
+ align: s,
4034
+ sideOffset: c,
4035
+ children: f
4036
+ })]
4037
+ });
4038
+ }, Jn = n(({ className: e, children: t, asChild: n = !1, ...r }, i) => {
4039
+ let { setOpen: a, setTriggerRect: o } = Wn(), s = u(null), c = () => {
4040
+ s.current && o(s.current.getBoundingClientRect());
4041
+ };
4042
+ return /* @__PURE__ */ (0, Y.jsx)("div", {
4043
+ ref: (e) => {
4044
+ s.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
4045
+ },
4046
+ onMouseEnter: () => {
4047
+ c(), a(!0);
4048
+ },
4049
+ onMouseLeave: () => {
4050
+ a(!1);
4051
+ },
4052
+ onFocus: () => {
4053
+ c(), a(!0);
4054
+ },
4055
+ onBlur: () => {
4056
+ a(!1);
4057
+ },
4058
+ className: J("inline-flex", e),
4059
+ ...r,
4060
+ children: t
4061
+ });
4062
+ });
4063
+ Jn.displayName = "TooltipTrigger";
4064
+ var Yn = n(({ className: e, side: t, align: n, sideOffset: r, children: i, ...a }, o) => {
4065
+ let s = Wn(), c = t || s.side;
4066
+ return n || s.align, r !== void 0 || s.sideOffset, s.open ? /* @__PURE__ */ (0, Y.jsx)("div", {
4067
+ ref: o,
4068
+ role: "tooltip",
4069
+ className: J("absolute z-50 whitespace-nowrap rounded-md border border-gray-200 bg-white px-3 py-1.5 text-xs font-[500] text-[#0F172A] shadow-md animate-in fade-in-0 zoom-in-95 select-none pointer-events-none", (() => {
4070
+ switch (c) {
4071
+ case "top": return "bottom-full left-1/2 -translate-x-1/2 mb-2";
4072
+ case "bottom": return "top-full left-1/2 -translate-x-1/2 mt-2";
4073
+ case "left": return "right-full top-1/2 -translate-y-1/2 mr-2";
4074
+ case "right": return "left-full top-1/2 -translate-y-1/2 ml-2";
4075
+ }
4076
+ })(), e),
4077
+ ...a,
4078
+ children: i
4079
+ }) : null;
4080
+ });
4081
+ Yn.displayName = "TooltipContent";
4082
+ //#endregion
4083
+ //#region src/components/Upload/FileIcons.tsx
4084
+ var Xn = ({ type: e = "file", className: t }) => {
4085
+ switch (e.toLowerCase().replace(".", "")) {
4086
+ case "pdf": return /* @__PURE__ */ (0, Y.jsx)("div", {
4087
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-red-100 text-red-600 font-bold text-xs select-none", t),
4088
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4089
+ className: "w-5 h-5",
4090
+ fill: "currentColor",
4091
+ viewBox: "0 0 24 24",
4092
+ children: /* @__PURE__ */ (0, Y.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 15h-2v-6h2v6zm0-8h-2V7h2v2zm4 8h-2v-3h2v3zm0-5h-2v-4h2v4z" })
4093
+ })
4094
+ });
4095
+ case "xls":
4096
+ case "xlsx":
4097
+ case "excel":
4098
+ case "csv": return /* @__PURE__ */ (0, Y.jsx)("div", {
4099
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-emerald-100 text-emerald-600 font-bold text-xs select-none", t),
4100
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4101
+ className: "w-5 h-5",
4102
+ fill: "none",
4103
+ stroke: "currentColor",
4104
+ viewBox: "0 0 24 24",
4105
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4106
+ strokeLinecap: "round",
4107
+ strokeLinejoin: "round",
4108
+ strokeWidth: 2,
4109
+ d: "M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
4110
+ })
4111
+ })
4112
+ });
4113
+ case "doc":
4114
+ case "docx":
4115
+ case "word": return /* @__PURE__ */ (0, Y.jsx)("div", {
4116
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-blue-100 text-blue-600 font-bold text-xs select-none", t),
4117
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4118
+ className: "w-5 h-5",
4119
+ fill: "none",
4120
+ stroke: "currentColor",
4121
+ viewBox: "0 0 24 24",
4122
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4123
+ strokeLinecap: "round",
4124
+ strokeLinejoin: "round",
4125
+ strokeWidth: 2,
4126
+ d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
4127
+ })
4128
+ })
4129
+ });
4130
+ case "zip":
4131
+ case "rar":
4132
+ case "tar":
4133
+ case "7z": return /* @__PURE__ */ (0, Y.jsx)("div", {
4134
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-amber-100 text-amber-600 font-bold text-xs select-none", t),
4135
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4136
+ className: "w-5 h-5",
4137
+ fill: "none",
4138
+ stroke: "currentColor",
4139
+ viewBox: "0 0 24 24",
4140
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4141
+ strokeLinecap: "round",
4142
+ strokeLinejoin: "round",
4143
+ strokeWidth: 2,
4144
+ d: "M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"
4145
+ })
4146
+ })
4147
+ });
4148
+ case "png":
4149
+ case "jpg":
4150
+ case "jpeg":
4151
+ case "webp":
4152
+ case "gif":
4153
+ case "image": return /* @__PURE__ */ (0, Y.jsx)("div", {
4154
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-purple-100 text-purple-600 font-bold text-xs select-none", t),
4155
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4156
+ className: "w-5 h-5",
4157
+ fill: "none",
4158
+ stroke: "currentColor",
4159
+ viewBox: "0 0 24 24",
4160
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4161
+ strokeLinecap: "round",
4162
+ strokeLinejoin: "round",
4163
+ strokeWidth: 2,
4164
+ d: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"
4165
+ })
4166
+ })
4167
+ });
4168
+ default: return /* @__PURE__ */ (0, Y.jsx)("div", {
4169
+ className: J("flex h-10 w-10 items-center justify-center rounded-lg bg-slate-100 text-slate-600 font-bold text-xs select-none", t),
4170
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4171
+ className: "w-5 h-5",
4172
+ fill: "none",
4173
+ stroke: "currentColor",
4174
+ viewBox: "0 0 24 24",
4175
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4176
+ strokeLinecap: "round",
4177
+ strokeLinejoin: "round",
4178
+ strokeWidth: 2,
4179
+ d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
4180
+ })
4181
+ })
4182
+ });
4183
+ }
4184
+ }, Zn = n(({ className: e, value: t, defaultValue: n, onChange: r, disabled: i = !1, shape: a = "square", size: o = "default", progress: c, errorMessage: l, label: f, onCancel: p, ...m }, h) => {
4185
+ let g = t !== void 0, [_, v] = d(n), y = g ? t : _, [b, x] = d(!1), [S, C] = d(!1), w = u(null), T = s(), E = c !== void 0 && c >= 0 && c < 100, D = !!l, O = (e) => {
4186
+ let t = e.target.files?.[0];
4187
+ if (t) {
4188
+ let e = URL.createObjectURL(t);
4189
+ g || v(e), r?.(t, e);
4190
+ }
4191
+ }, k = (e) => {
4192
+ if (e.preventDefault(), C(!1), i) return;
4193
+ let t = e.dataTransfer.files?.[0];
4194
+ if (t) {
4195
+ let e = URL.createObjectURL(t);
4196
+ g || v(e), r?.(t, e);
4197
+ }
4198
+ }, A = (e) => {
4199
+ e.stopPropagation(), g || v(void 0), w.current && (w.current.value = ""), r?.(null, void 0);
4200
+ }, j = {
4201
+ sm: "h-20 w-20 text-xs",
4202
+ default: "h-28 w-28 text-sm",
4203
+ lg: "h-36 w-36 text-base"
4204
+ }[o];
4205
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
4206
+ className: "flex flex-col gap-2",
4207
+ children: [
4208
+ f && /* @__PURE__ */ (0, Y.jsx)("span", {
4209
+ className: "text-sm font-[600] text-[#0F172A]",
4210
+ children: f
4211
+ }),
4212
+ /* @__PURE__ */ (0, Y.jsxs)("div", {
4213
+ ref: h,
4214
+ onMouseEnter: () => x(!0),
4215
+ onMouseLeave: () => x(!1),
4216
+ onDragOver: (e) => {
4217
+ e.preventDefault(), C(!0);
4218
+ },
4219
+ onDragLeave: () => C(!1),
4220
+ onDrop: k,
4221
+ onClick: () => !i && !E && w.current?.click(),
4222
+ className: J("relative flex flex-col items-center justify-center cursor-pointer transition-all duration-200 border-2 overflow-hidden select-none bg-white", a === "circle" ? "rounded-full" : "rounded-xl", j, !y && !E && !D && "border-dashed border-gray-300 hover:border-[#0F172A] hover:bg-slate-50", S && "border-solid border-[#0F172A] bg-slate-50", D && "border-dashed border-red-400 bg-red-50/30", i && "pointer-events-none opacity-50 bg-slate-100 cursor-not-allowed", e),
4223
+ ...m,
4224
+ children: [
4225
+ /* @__PURE__ */ (0, Y.jsx)("input", {
4226
+ id: T,
4227
+ ref: w,
4228
+ type: "file",
4229
+ accept: "image/*",
4230
+ disabled: i,
4231
+ onChange: O,
4232
+ className: "hidden"
4233
+ }),
4234
+ E && /* @__PURE__ */ (0, Y.jsxs)("div", {
4235
+ className: "absolute inset-0 flex flex-col items-center justify-center p-3 bg-white/90 z-10",
4236
+ children: [
4237
+ /* @__PURE__ */ (0, Y.jsxs)("span", {
4238
+ className: "text-xs font-semibold text-[#0F172A]",
4239
+ children: [c, "%"]
4240
+ }),
4241
+ /* @__PURE__ */ (0, Y.jsx)("div", {
4242
+ className: "w-full bg-gray-200 h-1.5 rounded-full mt-1.5 overflow-hidden",
4243
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
4244
+ className: "bg-[#0F172A] h-full rounded-full transition-all duration-150",
4245
+ style: { width: `${c}%` }
4246
+ })
4247
+ }),
4248
+ p && /* @__PURE__ */ (0, Y.jsx)("button", {
4249
+ type: "button",
4250
+ onClick: (e) => {
4251
+ e.stopPropagation(), p();
4252
+ },
4253
+ className: "mt-1 text-[11px] font-medium text-slate-500 hover:text-red-600",
4254
+ children: "Cancel"
4255
+ })
4256
+ ]
4257
+ }),
4258
+ y && !E && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)("img", {
4259
+ src: y,
4260
+ alt: "Upload preview",
4261
+ className: "h-full w-full object-cover"
4262
+ }), b && !i && /* @__PURE__ */ (0, Y.jsx)("div", {
4263
+ className: "absolute inset-0 flex items-center justify-center bg-black/40 gap-2 transition-opacity z-10",
4264
+ children: /* @__PURE__ */ (0, Y.jsx)("button", {
4265
+ type: "button",
4266
+ onClick: A,
4267
+ className: "p-1.5 bg-white/90 rounded-full text-red-600 hover:bg-white shadow",
4268
+ title: "Remove",
4269
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4270
+ className: "w-4 h-4",
4271
+ fill: "none",
4272
+ stroke: "currentColor",
4273
+ viewBox: "0 0 24 24",
4274
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4275
+ strokeLinecap: "round",
4276
+ strokeLinejoin: "round",
4277
+ strokeWidth: 2,
4278
+ d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
4279
+ })
4280
+ })
4281
+ })
4282
+ })] }),
4283
+ !y && !E && /* @__PURE__ */ (0, Y.jsxs)("div", {
4284
+ className: "flex flex-col items-center justify-center text-center p-2 text-slate-400",
4285
+ children: [/* @__PURE__ */ (0, Y.jsx)("svg", {
4286
+ className: "w-6 h-6 mb-1 text-slate-400",
4287
+ fill: "none",
4288
+ stroke: "currentColor",
4289
+ viewBox: "0 0 24 24",
4290
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4291
+ strokeLinecap: "round",
4292
+ strokeLinejoin: "round",
4293
+ strokeWidth: 2,
4294
+ d: "M12 4v16m8-8H4"
4295
+ })
4296
+ }), /* @__PURE__ */ (0, Y.jsx)("span", {
4297
+ className: "text-xs font-[500] text-slate-600",
4298
+ children: "Upload"
4299
+ })]
4300
+ })
4301
+ ]
4302
+ }),
4303
+ l && /* @__PURE__ */ (0, Y.jsx)("span", {
4304
+ className: "text-xs text-red-500 font-medium",
4305
+ children: l
4306
+ })
4307
+ ]
4308
+ });
4309
+ });
4310
+ Zn.displayName = "UploadPicture";
4311
+ var Qn = ({ file: e, onRemove: t, onRetry: n, onCancel: r, className: i, ...a }) => {
4312
+ if (!e) return null;
4313
+ let o = e.progress !== void 0 && e.progress >= 0 && e.progress < 100, s = !!e.error;
4314
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
4315
+ className: J("flex w-full items-center justify-between rounded-xl border border-gray-200 bg-white p-3.5 shadow-sm transition-all", s && "border-red-300 bg-red-50/20", i),
4316
+ ...a,
4317
+ children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
4318
+ className: "flex items-center gap-3.5 flex-1 min-w-0 pr-3",
4319
+ children: [/* @__PURE__ */ (0, Y.jsx)(Xn, { type: e.type || e.name.split(".").pop() || "file" }), /* @__PURE__ */ (0, Y.jsxs)("div", {
4320
+ className: "flex-1 min-w-0",
4321
+ children: [
4322
+ /* @__PURE__ */ (0, Y.jsxs)("div", {
4323
+ className: "flex items-center justify-between gap-2",
4324
+ children: [/* @__PURE__ */ (0, Y.jsx)("p", {
4325
+ className: "text-sm font-[600] text-[#0F172A] truncate",
4326
+ children: e.name
4327
+ }), o && /* @__PURE__ */ (0, Y.jsxs)("span", {
4328
+ className: "text-xs font-mono font-semibold text-slate-600 flex-shrink-0",
4329
+ children: [e.progress, "%"]
4330
+ })]
4331
+ }),
4332
+ e.size && !s && /* @__PURE__ */ (0, Y.jsx)("p", {
4333
+ className: "text-xs text-slate-500 mt-0.5",
4334
+ children: e.size
4335
+ }),
4336
+ o && /* @__PURE__ */ (0, Y.jsx)("div", {
4337
+ className: "w-full bg-gray-100 h-1.5 rounded-full mt-2 overflow-hidden",
4338
+ children: /* @__PURE__ */ (0, Y.jsx)("div", {
4339
+ className: "bg-[#0F172A] h-full rounded-full transition-all duration-150",
4340
+ style: { width: `${e.progress}%` }
4341
+ })
4342
+ }),
4343
+ s && /* @__PURE__ */ (0, Y.jsx)("p", {
4344
+ className: "text-xs text-red-500 font-medium mt-1",
4345
+ children: e.error
4346
+ })
4347
+ ]
4348
+ })]
4349
+ }), /* @__PURE__ */ (0, Y.jsxs)("div", {
4350
+ className: "flex items-center gap-2 flex-shrink-0",
4351
+ children: [
4352
+ o && r && /* @__PURE__ */ (0, Y.jsx)("button", {
4353
+ type: "button",
4354
+ onClick: r,
4355
+ className: "text-xs font-medium text-slate-500 hover:text-red-600",
4356
+ children: "Cancel"
4357
+ }),
4358
+ s && n && /* @__PURE__ */ (0, Y.jsx)("button", {
4359
+ type: "button",
4360
+ onClick: n,
4361
+ className: "text-xs font-semibold text-[#0F172A] hover:underline",
4362
+ children: "Retry"
4363
+ }),
4364
+ t && /* @__PURE__ */ (0, Y.jsx)("button", {
4365
+ type: "button",
4366
+ onClick: t,
4367
+ className: "text-slate-400 hover:text-slate-700 p-1 rounded-md",
4368
+ title: "Remove",
4369
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4370
+ className: "w-4 h-4",
4371
+ fill: "none",
4372
+ stroke: "currentColor",
4373
+ viewBox: "0 0 24 24",
4374
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4375
+ strokeLinecap: "round",
4376
+ strokeLinejoin: "round",
4377
+ strokeWidth: 2,
4378
+ d: "M6 18L18 6M6 6l12 12"
4379
+ })
4380
+ })
4381
+ })
4382
+ ]
4383
+ })]
4384
+ });
4385
+ }, $n = ({ onFilesSelected: e, accept: t, multiple: n = !1, disabled: r = !1, className: i, children: a, ...o }) => {
4386
+ let [s, c] = d(!1), l = u(null);
4387
+ return /* @__PURE__ */ (0, Y.jsxs)("div", {
4388
+ onDragOver: (e) => {
4389
+ e.preventDefault(), c(!0);
4390
+ },
4391
+ onDragLeave: () => c(!1),
4392
+ onDrop: (t) => {
4393
+ t.preventDefault(), c(!1), !r && t.dataTransfer.files?.length && e?.(t.dataTransfer.files);
4394
+ },
4395
+ onClick: () => !r && l.current?.click(),
4396
+ className: J("flex flex-col items-center justify-center p-8 rounded-2xl border-2 border-dashed border-gray-300 bg-white hover:border-[#0F172A] hover:bg-slate-50 transition-all cursor-pointer text-center select-none", s && "border-[#0F172A] bg-slate-50", r && "opacity-50 pointer-events-none cursor-not-allowed", i),
4397
+ ...o,
4398
+ children: [
4399
+ /* @__PURE__ */ (0, Y.jsx)("input", {
4400
+ ref: l,
4401
+ type: "file",
4402
+ accept: t,
4403
+ multiple: n,
4404
+ disabled: r,
4405
+ onChange: (t) => t.target.files && e?.(t.target.files),
4406
+ className: "hidden"
4407
+ }),
4408
+ /* @__PURE__ */ (0, Y.jsx)("div", {
4409
+ className: "flex h-12 w-12 items-center justify-center rounded-full bg-slate-100 text-[#0F172A] mb-3",
4410
+ children: /* @__PURE__ */ (0, Y.jsx)("svg", {
4411
+ className: "w-6 h-6",
4412
+ fill: "none",
4413
+ stroke: "currentColor",
4414
+ viewBox: "0 0 24 24",
4415
+ children: /* @__PURE__ */ (0, Y.jsx)("path", {
4416
+ strokeLinecap: "round",
4417
+ strokeLinejoin: "round",
4418
+ strokeWidth: 2,
4419
+ d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"
4420
+ })
4421
+ })
4422
+ }),
4423
+ a || /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("p", {
4424
+ className: "text-sm font-[600] text-[#0F172A]",
4425
+ children: ["Click to upload ", /* @__PURE__ */ (0, Y.jsx)("span", {
4426
+ className: "font-normal text-slate-500",
4427
+ children: "or drag and drop"
4428
+ })]
4429
+ }), /* @__PURE__ */ (0, Y.jsx)("p", {
4430
+ className: "text-xs text-slate-400 mt-1",
4431
+ children: "SVG, PNG, JPG, PDF or DOCX (max 10MB)"
4432
+ })] })
4433
+ ]
4434
+ });
4435
+ }, er = (e) => typeof e == "number" && !isNaN(e), tr = (e) => typeof e == "string", nr = (e) => typeof e == "function", rr = (e) => tr(e) || er(e), ir = (e) => r(e) || tr(e) || nr(e) || er(e);
4436
+ function ar(e, t, n = 300) {
4437
+ let { scrollHeight: r, style: i } = e;
4438
+ requestAnimationFrame(() => {
4439
+ i.minHeight = "initial", i.height = r + "px", i.transition = `all ${n}ms`, requestAnimationFrame(() => {
4440
+ i.height = "0", i.padding = "0", i.margin = "0", setTimeout(t, n);
4441
+ });
4442
+ });
4443
+ }
4444
+ function or({ enter: t, exit: n, appendPosition: r = !1, collapse: i = !0, collapseDuration: a = 300 }) {
4445
+ return function({ children: s, position: c, preventExitTransition: d, done: f, nodeRef: p, isIn: m, playToast: h }) {
4446
+ let g = r ? `${t}--${c}` : t, _ = r ? `${n}--${c}` : n, v = u(0);
4447
+ return l(() => {
4448
+ let e = p.current, t = g.split(" "), n = (r) => {
4449
+ r.target === p.current && (h(), e.removeEventListener("animationend", n), e.removeEventListener("animationcancel", n), v.current === 0 && r.type !== "animationcancel" && e.classList.remove(...t));
4450
+ };
4451
+ e.classList.add(...t), e.addEventListener("animationend", n), e.addEventListener("animationcancel", n);
4452
+ }, []), o(() => {
4453
+ let e = p.current, t = () => {
4454
+ e.removeEventListener("animationend", t), i ? ar(e, f, a) : f();
4455
+ };
4456
+ m || (d ? t() : (v.current = 1, e.className += ` ${_}`, e.addEventListener("animationend", t)));
4457
+ }, [m]), e.createElement(e.Fragment, null, s);
4458
+ };
4459
+ }
4460
+ var sr = 1, cr = () => `${sr++}`, Q = /* @__PURE__ */ new Map(), lr = [], ur = /* @__PURE__ */ new Set(), dr = () => Q.size > 0, fr = (e, { containerId: t }) => Q.get(t || 1)?.toasts.get(e);
4461
+ function pr(e, t) {
4462
+ var n;
4463
+ if (t) return !!((n = Q.get(t)) != null && n.isToastActive(e));
4464
+ let r = !1;
4465
+ return Q.forEach((t) => {
4466
+ t.isToastActive(e) && (r = !0);
4467
+ }), r;
4468
+ }
4469
+ function mr(e) {
4470
+ if (!dr()) {
4471
+ lr = lr.filter((t) => e != null && t.options.toastId !== e);
4472
+ return;
4473
+ }
4474
+ if (e == null || rr(e)) Q.forEach((t) => {
4475
+ t.removeToast(e);
4476
+ });
4477
+ else if (e && ("containerId" in e || "id" in e)) {
4478
+ let t = Q.get(e.containerId);
4479
+ t ? t.removeToast(e.id) : Q.forEach((t) => {
4480
+ t.removeToast(e.id);
4481
+ });
4482
+ }
4483
+ }
4484
+ var hr = (e = {}) => {
4485
+ Q.forEach((t) => {
4486
+ t.props.limit && (!e.containerId || t.id === e.containerId) && t.clearQueue();
4487
+ });
4488
+ };
4489
+ function gr(e, t) {
4490
+ ir(e) && (dr() || lr.push({
4491
+ content: e,
4492
+ options: t
4493
+ }), Q.forEach((n) => {
4494
+ n.buildToast(e, t);
4495
+ }));
4496
+ }
4497
+ function _r(e, t) {
4498
+ Q.forEach((n) => {
4499
+ (t == null || !(t != null && t.containerId) || t?.containerId === n.id) && n.toggle(e, t?.id);
4500
+ });
4501
+ }
4502
+ function vr(e) {
4503
+ return ur.add(e), () => {
4504
+ ur.delete(e);
4505
+ };
4506
+ }
4507
+ function yr(e) {
4508
+ return e && (tr(e.toastId) || er(e.toastId)) ? e.toastId : cr();
4509
+ }
4510
+ function br(e, t) {
4511
+ return gr(e, t), t.toastId;
4512
+ }
4513
+ function xr(e, t) {
4514
+ return {
4515
+ ...t,
4516
+ type: t && t.type || e,
4517
+ toastId: yr(t)
4518
+ };
4519
+ }
4520
+ function Sr(e) {
4521
+ return (t, n) => br(t, xr(e, n));
4522
+ }
4523
+ function $(e, t) {
4524
+ return br(e, xr("default", t));
4525
+ }
4526
+ $.loading = (e, t) => br(e, xr("default", {
4527
+ isLoading: !0,
4528
+ autoClose: !1,
4529
+ closeOnClick: !1,
4530
+ closeButton: !1,
4531
+ draggable: !1,
4532
+ ...t
4533
+ }));
4534
+ function Cr(e, { pending: t, error: n, success: r }, i) {
4535
+ let a;
4536
+ t && (a = tr(t) ? $.loading(t, i) : $.loading(t.render, {
4537
+ ...i,
4538
+ ...t
4539
+ }));
4540
+ let o = {
4541
+ isLoading: null,
4542
+ autoClose: null,
4543
+ closeOnClick: null,
4544
+ closeButton: null,
4545
+ draggable: null
4546
+ }, s = (e, t, n) => {
4547
+ if (t == null) {
4548
+ $.dismiss(a);
4549
+ return;
4550
+ }
4551
+ let r = {
4552
+ type: e,
4553
+ ...o,
4554
+ ...i,
4555
+ data: n
4556
+ }, s = tr(t) ? { render: t } : t;
4557
+ return a ? $.update(a, {
4558
+ ...r,
4559
+ ...s
4560
+ }) : $(s.render, {
4561
+ ...r,
4562
+ ...s
4563
+ }), n;
4564
+ }, c = nr(e) ? e() : e;
4565
+ return c.then((e) => s("success", r, e)).catch((e) => s("error", n, e)), c;
4566
+ }
4567
+ $.promise = Cr, $.success = Sr("success"), $.info = Sr("info"), $.error = Sr("error"), $.warning = Sr("warning"), $.warn = $.warning, $.dark = (e, t) => br(e, xr("default", {
4568
+ theme: "dark",
4569
+ ...t
4570
+ }));
4571
+ function wr(e) {
4572
+ mr(e);
4573
+ }
4574
+ $.dismiss = wr, $.clearWaitingQueue = hr, $.isActive = pr, $.update = (e, t = {}) => {
4575
+ let n = fr(e, t);
4576
+ if (n) {
4577
+ let { props: r, content: i } = n, a = {
4578
+ delay: 100,
4579
+ ...r,
4580
+ ...t,
4581
+ toastId: t.toastId || e,
4582
+ updateId: cr()
4583
+ };
4584
+ a.toastId !== e && (a.staleId = e);
4585
+ let o = a.render || i;
4586
+ delete a.render, br(o, a);
4587
+ }
4588
+ }, $.done = (e) => {
4589
+ $.update(e, { progress: 1 });
4590
+ }, $.onChange = vr, $.play = (e) => _r(!0, e), $.pause = (e) => _r(!1, e);
4591
+ var Tr = (e, t = !1) => ({
4592
+ enter: `Toastify--animate Toastify__${e}-enter`,
4593
+ exit: `Toastify--animate Toastify__${e}-exit`,
4594
+ appendPosition: t
4595
+ });
4596
+ or(Tr("bounce", !0)), or(Tr("slide", !0)), or(Tr("zoom")), or(Tr("flip"));
4597
+ //#endregion
4598
+ //#region src/ToastServices.tsx
4599
+ var Er = { showToast: ({ message: e, type: t = "info", autoClose: n = 1e3 }) => {
4600
+ switch (t) {
4601
+ case "success":
4602
+ $.success(e, { autoClose: n });
4603
+ break;
4604
+ case "error":
4605
+ $.error(e, { autoClose: n });
4606
+ break;
4607
+ case "warning":
4608
+ $.warning(e, { autoClose: n });
4609
+ break;
4610
+ default: $.info(e, { autoClose: n });
4611
+ }
4612
+ } };
4613
+ //#endregion
4614
+ export { pt as Alignment, rt as Badge, at as Box, Z as ButtonDirection, st as ButtonIconPosition, ot as ButtonSize, X as ButtonVariant, Ft as Calendar, ct as ColorVariant, lt as ComponentSize, _t as DefaultButton, Lt as Divider, en as DynamicPagination, Xn as FileIcon, yt as GroupIconButton, zt as ImagePopOver, Vt as Input, Ut as InputOTP, Wt as InputOTPGroup, Kt as InputOTPSeparator, Gt as InputOTPSlot, St as Left, hn as MultiSelect, dt as Orientation, qt as Pagination, Jt as PaginationContent, $t as PaginationEllipsis, Yt as PaginationItem, Xt as PaginationLink, Qt as PaginationNext, Zt as PaginationPrevious, ft as Position, nn as ProfileCard, Ct as Right, on as Select, un as SelectContent, dn as SelectGroup, pn as SelectItem, fn as SelectLabel, ln as SelectSearch, mn as SelectSeparator, sn as SelectTrigger, cn as SelectValue, ut as ShapeVariant, xt as SingleIconButton, gn as Slider, ht as StatusType, yn as Switch, An as Table, Cn as TableBody, On as TableCaption, Dn as TableCell, wn as TableFooter, En as TableHead, Sn as TableHeader, Tn as TableRow, Nn as Tabs, Rn as TabsContent, Fn as TabsList, Ln as TabsTrigger, Bn as Textarea, Hn as Toast, Er as ToastServices, qn as Tooltip, Yn as TooltipContent, Kn as TooltipProvider, Jn as TooltipTrigger, mt as TypographyVariant, $n as UploadDropzone, Qn as UploadFile, Zn as UploadPicture, it as boxVariants, J as cn, $e as color, Mn as useTabsContext };