@neuctra/ui 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/basic/Button.d.ts +2 -3
- package/dist/index.cjs.js +15 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +395 -392
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/basic/Button.js +13 -16
- package/dist/types/src/components/basic/Button.d.ts +2 -3
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Re, { forwardRef as ie, createElement as pe, createContext as Oe, useState as L, useCallback as he, useContext as Fe, memo as
|
|
1
|
+
import Re, { forwardRef as ie, createElement as pe, createContext as Oe, useState as L, useCallback as he, useContext as Fe, memo as ze, useRef as K, useEffect as X, useMemo as de, useImperativeHandle as _e } from "react";
|
|
2
2
|
var ce = { exports: {} }, oe = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,12 +9,12 @@ var ce = { exports: {} }, oe = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var we;
|
|
13
13
|
function Be() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var n = Symbol.for("react.transitional.element"),
|
|
17
|
-
function s(
|
|
14
|
+
if (we) return oe;
|
|
15
|
+
we = 1;
|
|
16
|
+
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
17
|
+
function s(r, o, l) {
|
|
18
18
|
var i = null;
|
|
19
19
|
if (l !== void 0 && (i = "" + l), o.key !== void 0 && (i = "" + o.key), "key" in o) {
|
|
20
20
|
l = {};
|
|
@@ -23,13 +23,13 @@ function Be() {
|
|
|
23
23
|
} else l = o;
|
|
24
24
|
return o = l.ref, {
|
|
25
25
|
$$typeof: n,
|
|
26
|
-
type:
|
|
26
|
+
type: r,
|
|
27
27
|
key: i,
|
|
28
28
|
ref: o !== void 0 ? o : null,
|
|
29
29
|
props: l
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return oe.Fragment =
|
|
32
|
+
return oe.Fragment = t, oe.jsx = s, oe.jsxs = s, oe;
|
|
33
33
|
}
|
|
34
34
|
var le = {};
|
|
35
35
|
/**
|
|
@@ -41,9 +41,9 @@ var le = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
44
|
+
var je;
|
|
45
45
|
function Ye() {
|
|
46
|
-
return
|
|
46
|
+
return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
47
|
function n(a) {
|
|
48
48
|
if (a == null) return null;
|
|
49
49
|
if (typeof a == "function")
|
|
@@ -67,7 +67,7 @@ function Ye() {
|
|
|
67
67
|
switch (typeof a.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
69
|
), a.$$typeof) {
|
|
70
|
-
case
|
|
70
|
+
case j:
|
|
71
71
|
return "Portal";
|
|
72
72
|
case R:
|
|
73
73
|
return a.displayName || "Context";
|
|
@@ -87,12 +87,12 @@ function Ye() {
|
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function t(a) {
|
|
91
91
|
return "" + a;
|
|
92
92
|
}
|
|
93
93
|
function s(a) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
t(a);
|
|
96
96
|
var b = !1;
|
|
97
97
|
} catch {
|
|
98
98
|
b = !0;
|
|
@@ -104,10 +104,10 @@ function Ye() {
|
|
|
104
104
|
b,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
106
|
I
|
|
107
|
-
),
|
|
107
|
+
), t(a);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function r(a) {
|
|
111
111
|
if (a === M) return "<>";
|
|
112
112
|
if (typeof a == "object" && a !== null && a.$$typeof === P)
|
|
113
113
|
return "<...>";
|
|
@@ -144,7 +144,7 @@ function Ye() {
|
|
|
144
144
|
configurable: !0
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function w() {
|
|
148
148
|
var a = n(this.type);
|
|
149
149
|
return S[a] || (S[a] = !0, console.error(
|
|
150
150
|
"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."
|
|
@@ -153,14 +153,14 @@ function Ye() {
|
|
|
153
153
|
function h(a, b, v, I, H, te) {
|
|
154
154
|
var B = v.ref;
|
|
155
155
|
return a = {
|
|
156
|
-
$$typeof:
|
|
156
|
+
$$typeof: _,
|
|
157
157
|
type: a,
|
|
158
158
|
key: b,
|
|
159
159
|
props: v,
|
|
160
160
|
_owner: I
|
|
161
161
|
}, (B !== void 0 ? B : null) !== null ? Object.defineProperty(a, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: w
|
|
164
164
|
}) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -198,8 +198,8 @@ function Ye() {
|
|
|
198
198
|
else c(B);
|
|
199
199
|
if (W.call(b, "key")) {
|
|
200
200
|
B = n(a);
|
|
201
|
-
var Q = Object.keys(b).filter(function(
|
|
202
|
-
return
|
|
201
|
+
var Q = Object.keys(b).filter(function(z) {
|
|
202
|
+
return z !== "key";
|
|
203
203
|
});
|
|
204
204
|
I = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Z[B + I] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -235,9 +235,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
f(a) ? a._store && (a._store.validated = 1) : typeof a == "object" && a !== null && a.$$typeof === P && (a._payload.status === "fulfilled" ? f(a._payload.value) && a._payload.value._store && (a._payload.value._store.validated = 1) : a._store && (a._store.validated = 1));
|
|
236
236
|
}
|
|
237
237
|
function f(a) {
|
|
238
|
-
return typeof a == "object" && a !== null && a.$$typeof ===
|
|
238
|
+
return typeof a == "object" && a !== null && a.$$typeof === _;
|
|
239
239
|
}
|
|
240
|
-
var N = Re,
|
|
240
|
+
var N = Re, _ = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), R = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), Y = N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, $ = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
N = {
|
|
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
var u, S = {}, V = N.react_stack_bottom_frame.bind(
|
|
249
249
|
N,
|
|
250
250
|
l
|
|
251
|
-
)(), G = $(
|
|
251
|
+
)(), G = $(r(l)), Z = {};
|
|
252
252
|
le.Fragment = M, le.jsx = function(a, b, v) {
|
|
253
253
|
var I = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return g(
|
|
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
257
257
|
v,
|
|
258
258
|
!1,
|
|
259
259
|
I ? Error("react-stack-top-frame") : V,
|
|
260
|
-
I ? $(
|
|
260
|
+
I ? $(r(a)) : G
|
|
261
261
|
);
|
|
262
262
|
}, le.jsxs = function(a, b, v) {
|
|
263
263
|
var I = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
@@ -267,7 +267,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
267
267
|
v,
|
|
268
268
|
!0,
|
|
269
269
|
I ? Error("react-stack-top-frame") : V,
|
|
270
|
-
I ? $(
|
|
270
|
+
I ? $(r(a)) : G
|
|
271
271
|
);
|
|
272
272
|
};
|
|
273
273
|
})()), le;
|
|
@@ -285,13 +285,13 @@ var e = Ve();
|
|
|
285
285
|
*/
|
|
286
286
|
const Ue = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), We = (n) => n.replace(
|
|
287
287
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
288
|
-
(
|
|
288
|
+
(t, s, r) => r ? r.toUpperCase() : s.toLowerCase()
|
|
289
289
|
), $e = (n) => {
|
|
290
|
-
const
|
|
291
|
-
return
|
|
292
|
-
}, Ee = (...n) => n.filter((
|
|
293
|
-
for (const
|
|
294
|
-
if (
|
|
290
|
+
const t = We(n);
|
|
291
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
292
|
+
}, Ee = (...n) => n.filter((t, s, r) => !!t && t.trim() !== "" && r.indexOf(t) === s).join(" ").trim(), qe = (n) => {
|
|
293
|
+
for (const t in n)
|
|
294
|
+
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
295
295
|
return !0;
|
|
296
296
|
};
|
|
297
297
|
/**
|
|
@@ -320,22 +320,22 @@ var He = {
|
|
|
320
320
|
const Ge = ie(
|
|
321
321
|
({
|
|
322
322
|
color: n = "currentColor",
|
|
323
|
-
size:
|
|
323
|
+
size: t = 24,
|
|
324
324
|
strokeWidth: s = 2,
|
|
325
|
-
absoluteStrokeWidth:
|
|
325
|
+
absoluteStrokeWidth: r,
|
|
326
326
|
className: o = "",
|
|
327
327
|
children: l,
|
|
328
328
|
iconNode: i,
|
|
329
329
|
...d
|
|
330
|
-
},
|
|
330
|
+
}, w) => pe(
|
|
331
331
|
"svg",
|
|
332
332
|
{
|
|
333
|
-
ref:
|
|
333
|
+
ref: w,
|
|
334
334
|
...He,
|
|
335
|
-
width:
|
|
336
|
-
height:
|
|
335
|
+
width: t,
|
|
336
|
+
height: t,
|
|
337
337
|
stroke: n,
|
|
338
|
-
strokeWidth:
|
|
338
|
+
strokeWidth: r ? Number(s) * 24 / Number(t) : s,
|
|
339
339
|
className: Ee("lucide", o),
|
|
340
340
|
...!l && !qe(d) && { "aria-hidden": "true" },
|
|
341
341
|
...d
|
|
@@ -352,15 +352,15 @@ const Ge = ie(
|
|
|
352
352
|
* This source code is licensed under the ISC license.
|
|
353
353
|
* See the LICENSE file in the root directory of this source tree.
|
|
354
354
|
*/
|
|
355
|
-
const U = (n,
|
|
355
|
+
const U = (n, t) => {
|
|
356
356
|
const s = ie(
|
|
357
|
-
({ className:
|
|
357
|
+
({ className: r, ...o }, l) => pe(Ge, {
|
|
358
358
|
ref: l,
|
|
359
|
-
iconNode:
|
|
359
|
+
iconNode: t,
|
|
360
360
|
className: Ee(
|
|
361
361
|
`lucide-${Ue($e(n))}`,
|
|
362
362
|
`lucide-${n}`,
|
|
363
|
-
|
|
363
|
+
r
|
|
364
364
|
),
|
|
365
365
|
...o
|
|
366
366
|
})
|
|
@@ -573,7 +573,7 @@ const vt = [
|
|
|
573
573
|
* This source code is licensed under the ISC license.
|
|
574
574
|
* See the LICENSE file in the root directory of this source tree.
|
|
575
575
|
*/
|
|
576
|
-
const
|
|
576
|
+
const wt = [
|
|
577
577
|
["path", { d: "M21 4v16", key: "7j8fe9" }],
|
|
578
578
|
[
|
|
579
579
|
"path",
|
|
@@ -582,14 +582,14 @@ const jt = [
|
|
|
582
582
|
key: "zs4d6"
|
|
583
583
|
}
|
|
584
584
|
]
|
|
585
|
-
], ye = U("skip-forward",
|
|
585
|
+
], ye = U("skip-forward", wt);
|
|
586
586
|
/**
|
|
587
587
|
* @license lucide-react v0.536.0 - ISC
|
|
588
588
|
*
|
|
589
589
|
* This source code is licensed under the ISC license.
|
|
590
590
|
* See the LICENSE file in the root directory of this source tree.
|
|
591
591
|
*/
|
|
592
|
-
const
|
|
592
|
+
const jt = [
|
|
593
593
|
[
|
|
594
594
|
"path",
|
|
595
595
|
{
|
|
@@ -599,7 +599,7 @@ const wt = [
|
|
|
599
599
|
],
|
|
600
600
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
601
601
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
602
|
-
], kt = U("triangle-alert",
|
|
602
|
+
], kt = U("triangle-alert", jt);
|
|
603
603
|
/**
|
|
604
604
|
* @license lucide-react v0.536.0 - ISC
|
|
605
605
|
*
|
|
@@ -650,31 +650,31 @@ const Rt = [
|
|
|
650
650
|
* This source code is licensed under the ISC license.
|
|
651
651
|
* See the LICENSE file in the root directory of this source tree.
|
|
652
652
|
*/
|
|
653
|
-
const
|
|
653
|
+
const zt = [
|
|
654
654
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
655
655
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
656
|
-
], ve = U("x",
|
|
656
|
+
], ve = U("x", zt), Ce = Oe(void 0), Ut = () => {
|
|
657
657
|
const n = Fe(Ce);
|
|
658
658
|
if (!n) throw new Error("useToast must be used within ToastProvider");
|
|
659
659
|
return n;
|
|
660
660
|
}, Wt = ({ children: n }) => {
|
|
661
|
-
const [
|
|
661
|
+
const [t, s] = L([]), r = he((l) => {
|
|
662
662
|
s((i) => i.filter((d) => d.id !== l));
|
|
663
663
|
}, []), o = he((l) => {
|
|
664
664
|
const i = Date.now() + Math.random();
|
|
665
|
-
s((d) => [...d, { ...l, id: i }]), l.duration !== 0 && setTimeout(() =>
|
|
666
|
-
}, [
|
|
665
|
+
s((d) => [...d, { ...l, id: i }]), l.duration !== 0 && setTimeout(() => r(i), l.duration ?? 4e3);
|
|
666
|
+
}, [r]);
|
|
667
667
|
return /* @__PURE__ */ e.jsxs(Ce.Provider, { value: { addToast: o }, children: [
|
|
668
668
|
n,
|
|
669
|
-
/* @__PURE__ */ e.jsx("div", { className: "fixed top-5 right-5 flex flex-col gap-3 z-50", children:
|
|
669
|
+
/* @__PURE__ */ e.jsx("div", { className: "fixed top-5 right-5 flex flex-col gap-3 z-50", children: t.map((l) => /* @__PURE__ */ e.jsx(Et, { toast: l, onClose: () => r(l.id) }, l.id)) })
|
|
670
670
|
] });
|
|
671
|
-
},
|
|
671
|
+
}, _t = {
|
|
672
672
|
success: { bg: "bg-green-50", border: "border-green-400", icon: /* @__PURE__ */ e.jsx(tt, { size: 20, className: "text-green-600" }) },
|
|
673
673
|
error: { bg: "bg-red-50", border: "border-red-400", icon: /* @__PURE__ */ e.jsx(Qe, { size: 20, className: "text-red-600" }) },
|
|
674
674
|
warning: { bg: "bg-yellow-50", border: "border-yellow-400", icon: /* @__PURE__ */ e.jsx(kt, { size: 20, className: "text-yellow-600" }) },
|
|
675
675
|
info: { bg: "bg-blue-50", border: "border-blue-400", icon: /* @__PURE__ */ e.jsx(ct, { size: 20, className: "text-blue-600" }) }
|
|
676
|
-
}, Et = ({ toast: n, onClose:
|
|
677
|
-
const { title: s, description:
|
|
676
|
+
}, Et = ({ toast: n, onClose: t }) => {
|
|
677
|
+
const { title: s, description: r, type: o = "info" } = n, { bg: l, border: i, icon: d } = _t[o];
|
|
678
678
|
return /* @__PURE__ */ e.jsxs(
|
|
679
679
|
"div",
|
|
680
680
|
{
|
|
@@ -684,30 +684,30 @@ const _t = [
|
|
|
684
684
|
/* @__PURE__ */ e.jsx("div", { children: d }),
|
|
685
685
|
/* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
686
686
|
s && /* @__PURE__ */ e.jsx("div", { className: "font-semibold text-sm mb-1", children: s }),
|
|
687
|
-
|
|
687
|
+
r && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-gray-700", children: r })
|
|
688
688
|
] }),
|
|
689
|
-
/* @__PURE__ */ e.jsx("button", { onClick:
|
|
689
|
+
/* @__PURE__ */ e.jsx("button", { onClick: t, className: "text-gray-500 hover:text-gray-700", children: /* @__PURE__ */ e.jsx(ve, { size: 16 }) })
|
|
690
690
|
]
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
|
-
}, St =
|
|
693
|
+
}, St = ze(
|
|
694
694
|
({
|
|
695
695
|
items: n,
|
|
696
|
-
allowMultiple:
|
|
696
|
+
allowMultiple: t = !1,
|
|
697
697
|
defaultOpen: s = [],
|
|
698
|
-
borderColor:
|
|
698
|
+
borderColor: r = "#e5e7eb",
|
|
699
699
|
backgroundColor: o = "#fff",
|
|
700
700
|
textColor: l = "#111827",
|
|
701
701
|
hoverBgColor: i = "#f3f4f6",
|
|
702
702
|
hoverTextColor: d = "#111827",
|
|
703
|
-
contentBgColor:
|
|
703
|
+
contentBgColor: w = "#fff",
|
|
704
704
|
contentTextColor: h = "#374151",
|
|
705
705
|
paddingY: g = "1rem",
|
|
706
706
|
paddingX: c = "1rem",
|
|
707
707
|
marginY: f = "0.5rem",
|
|
708
708
|
borderRadius: N = "0.5rem",
|
|
709
|
-
contentPadding:
|
|
710
|
-
fontSize:
|
|
709
|
+
contentPadding: _ = "1rem",
|
|
710
|
+
fontSize: j = "1rem",
|
|
711
711
|
fontWeight: M = 600,
|
|
712
712
|
contentFontSize: k = "0.95rem",
|
|
713
713
|
contentFontWeight: E = 400,
|
|
@@ -727,7 +727,7 @@ const _t = [
|
|
|
727
727
|
}, [O]);
|
|
728
728
|
const W = ($) => {
|
|
729
729
|
q(
|
|
730
|
-
(u) =>
|
|
730
|
+
(u) => t ? u.includes($) ? u.filter((S) => S !== $) : [...u, $] : u.includes($) ? [] : [$]
|
|
731
731
|
);
|
|
732
732
|
}, F = ($) => $ !== void 0 ? typeof $ == "number" ? `${$}px` : $ : void 0;
|
|
733
733
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -742,7 +742,7 @@ const _t = [
|
|
|
742
742
|
{
|
|
743
743
|
className: "border shadow-sm overflow-hidden transition-all duration-300",
|
|
744
744
|
style: {
|
|
745
|
-
borderColor:
|
|
745
|
+
borderColor: r,
|
|
746
746
|
borderRadius: F(N),
|
|
747
747
|
margin: `${F(f)} 0`,
|
|
748
748
|
boxShadow: p
|
|
@@ -758,7 +758,7 @@ const _t = [
|
|
|
758
758
|
color: l,
|
|
759
759
|
padding: `${F(g)} ${F(c)}`,
|
|
760
760
|
fontWeight: M,
|
|
761
|
-
fontSize: F(
|
|
761
|
+
fontSize: F(j),
|
|
762
762
|
cursor: "pointer",
|
|
763
763
|
border: "none",
|
|
764
764
|
outline: "none"
|
|
@@ -790,10 +790,10 @@ const _t = [
|
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
792
|
style: {
|
|
793
|
-
borderTop: `1px solid ${
|
|
794
|
-
backgroundColor:
|
|
793
|
+
borderTop: `1px solid ${r}`,
|
|
794
|
+
backgroundColor: w,
|
|
795
795
|
color: h,
|
|
796
|
-
padding: F(
|
|
796
|
+
padding: F(_),
|
|
797
797
|
fontSize: F(k),
|
|
798
798
|
fontWeight: E
|
|
799
799
|
},
|
|
@@ -844,50 +844,50 @@ const Mt = {
|
|
|
844
844
|
"bottom-right": "bottom-0 right-0"
|
|
845
845
|
}, qt = ({
|
|
846
846
|
src: n,
|
|
847
|
-
alt:
|
|
847
|
+
alt: t = "User avatar",
|
|
848
848
|
size: s = "md",
|
|
849
|
-
variant:
|
|
849
|
+
variant: r = "circular",
|
|
850
850
|
isOnline: o = !1,
|
|
851
851
|
isOffline: l = !1,
|
|
852
852
|
fallback: i,
|
|
853
853
|
ring: d = !1,
|
|
854
|
-
ringColor:
|
|
854
|
+
ringColor: w = "#3b82f6",
|
|
855
855
|
onClick: h,
|
|
856
856
|
statusPosition: g = "bottom-right",
|
|
857
857
|
className: c = "",
|
|
858
858
|
statusClassName: f = "",
|
|
859
859
|
style: N,
|
|
860
|
-
statusStyle:
|
|
860
|
+
statusStyle: _
|
|
861
861
|
}) => {
|
|
862
|
-
const [
|
|
862
|
+
const [j, M] = L(!1), k = !!h, E = i || t.split(" ").map((y) => y[0]).join("").toUpperCase().slice(0, 2), A = o ? "bg-green-500" : l ? "bg-gray-400" : "", R = Mt[s];
|
|
863
863
|
return /* @__PURE__ */ e.jsxs(
|
|
864
864
|
"div",
|
|
865
865
|
{
|
|
866
866
|
role: k ? "button" : "img",
|
|
867
867
|
tabIndex: k ? 0 : -1,
|
|
868
|
-
"aria-label":
|
|
868
|
+
"aria-label": t,
|
|
869
869
|
onClick: h,
|
|
870
|
-
className: `relative inline-flex items-center justify-center overflow-hidden ${It[s]} ${fe[
|
|
870
|
+
className: `relative inline-flex items-center justify-center overflow-hidden ${It[s]} ${fe[r]} transition-all duration-200 ${k ? "cursor-pointer hover:scale-105" : ""} ${d ? "ring-2" : ""} ${c}`,
|
|
871
871
|
style: {
|
|
872
872
|
...N,
|
|
873
|
-
...d ? { boxShadow: `0 0 0 2px ${
|
|
873
|
+
...d ? { boxShadow: `0 0 0 2px ${w}` } : {}
|
|
874
874
|
},
|
|
875
875
|
onKeyDown: (y) => {
|
|
876
876
|
k && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), h?.());
|
|
877
877
|
},
|
|
878
878
|
children: [
|
|
879
|
-
n && !
|
|
879
|
+
n && !j ? /* @__PURE__ */ e.jsx(
|
|
880
880
|
"img",
|
|
881
881
|
{
|
|
882
882
|
src: n,
|
|
883
|
-
alt:
|
|
883
|
+
alt: t,
|
|
884
884
|
onError: () => M(!0),
|
|
885
|
-
className: `w-full h-full object-cover ${fe[
|
|
885
|
+
className: `w-full h-full object-cover ${fe[r]} transition-opacity duration-300`
|
|
886
886
|
}
|
|
887
887
|
) : /* @__PURE__ */ e.jsx(
|
|
888
888
|
"div",
|
|
889
889
|
{
|
|
890
|
-
className: `w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${At[s]} ${fe[
|
|
890
|
+
className: `w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${At[s]} ${fe[r]}`,
|
|
891
891
|
children: E || /* @__PURE__ */ e.jsx(Nt, { className: "text-white" })
|
|
892
892
|
}
|
|
893
893
|
),
|
|
@@ -900,7 +900,7 @@ const Mt = {
|
|
|
900
900
|
style: {
|
|
901
901
|
width: R / 3,
|
|
902
902
|
height: R / 3,
|
|
903
|
-
...
|
|
903
|
+
..._
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
)
|
|
@@ -909,25 +909,25 @@ const Mt = {
|
|
|
909
909
|
);
|
|
910
910
|
}, Ht = ({
|
|
911
911
|
src: n,
|
|
912
|
-
thumbnail:
|
|
912
|
+
thumbnail: t,
|
|
913
913
|
autoPlay: s = !1,
|
|
914
|
-
loop:
|
|
914
|
+
loop: r = !1,
|
|
915
915
|
backgroundColor: o = "#0a0a0a",
|
|
916
916
|
primaryColor: l = "#10b981",
|
|
917
917
|
secondaryColor: i = "#ffffff",
|
|
918
918
|
borderRadius: d = "12px",
|
|
919
|
-
padding:
|
|
919
|
+
padding: w = "12px",
|
|
920
920
|
width: h = "100%",
|
|
921
921
|
className: g
|
|
922
922
|
}) => {
|
|
923
|
-
const c = K(null), f = K(null), [N,
|
|
923
|
+
const c = K(null), f = K(null), [N, _] = L(s), [j, M] = L(0), [k, E] = L(0), [A, R] = L(0.7), [y, m] = L(!1), [p, x] = L(r);
|
|
924
924
|
X(() => {
|
|
925
925
|
c.current && (c.current.volume = A);
|
|
926
926
|
}, [A]), X(() => {
|
|
927
927
|
c.current && (c.current.loop = p);
|
|
928
928
|
}, [p]);
|
|
929
929
|
const P = () => {
|
|
930
|
-
c.current && (N ? c.current.pause() : c.current.play(),
|
|
930
|
+
c.current && (N ? c.current.pause() : c.current.play(), _(!N));
|
|
931
931
|
}, O = () => {
|
|
932
932
|
c.current && (M(c.current.currentTime), E(c.current.duration));
|
|
933
933
|
}, q = ($) => {
|
|
@@ -954,7 +954,7 @@ const Mt = {
|
|
|
954
954
|
width: h,
|
|
955
955
|
backgroundColor: o,
|
|
956
956
|
borderRadius: d,
|
|
957
|
-
padding:
|
|
957
|
+
padding: w,
|
|
958
958
|
boxSizing: "border-box",
|
|
959
959
|
color: i,
|
|
960
960
|
boxShadow: "0 6px 16px rgba(0,0,0,0.2)",
|
|
@@ -967,15 +967,15 @@ const Mt = {
|
|
|
967
967
|
ref: c,
|
|
968
968
|
src: n,
|
|
969
969
|
autoPlay: s,
|
|
970
|
-
loop:
|
|
970
|
+
loop: r,
|
|
971
971
|
onTimeUpdate: O,
|
|
972
972
|
onLoadedMetadata: O
|
|
973
973
|
}
|
|
974
974
|
),
|
|
975
|
-
|
|
975
|
+
t && /* @__PURE__ */ e.jsx(
|
|
976
976
|
"img",
|
|
977
977
|
{
|
|
978
|
-
src:
|
|
978
|
+
src: t,
|
|
979
979
|
alt: "Audio Thumbnail",
|
|
980
980
|
style: {
|
|
981
981
|
width: "60px",
|
|
@@ -1059,7 +1059,7 @@ const Mt = {
|
|
|
1059
1059
|
"div",
|
|
1060
1060
|
{
|
|
1061
1061
|
style: {
|
|
1062
|
-
width: `${
|
|
1062
|
+
width: `${j / k * 100 || 0}%`,
|
|
1063
1063
|
height: "100%",
|
|
1064
1064
|
background: l,
|
|
1065
1065
|
borderRadius: "3px"
|
|
@@ -1069,7 +1069,7 @@ const Mt = {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
),
|
|
1071
1071
|
/* @__PURE__ */ e.jsxs("div", { style: { minWidth: "70px", textAlign: "right", fontSize: "0.8rem" }, children: [
|
|
1072
|
-
F(
|
|
1072
|
+
F(j),
|
|
1073
1073
|
" / ",
|
|
1074
1074
|
F(k)
|
|
1075
1075
|
] }),
|
|
@@ -1148,75 +1148,75 @@ const Mt = {
|
|
|
1148
1148
|
];
|
|
1149
1149
|
function Gt({
|
|
1150
1150
|
tracks: n = Pt,
|
|
1151
|
-
className:
|
|
1151
|
+
className: t = "",
|
|
1152
1152
|
galleryTitle: s = "Audio Gallery",
|
|
1153
|
-
primaryColor:
|
|
1153
|
+
primaryColor: r = "#8b5cf6",
|
|
1154
1154
|
backgroundColor: o = "#0f0f23",
|
|
1155
1155
|
textColor: l = "#e4e4e7",
|
|
1156
1156
|
secondaryColor: i = "#1a1a2e",
|
|
1157
1157
|
border: d = 0,
|
|
1158
|
-
borderColor:
|
|
1158
|
+
borderColor: w,
|
|
1159
1159
|
maxWidth: h = 420,
|
|
1160
1160
|
autoplay: g = !1,
|
|
1161
1161
|
loop: c = !1
|
|
1162
1162
|
}) {
|
|
1163
1163
|
const [f, N] = L(
|
|
1164
1164
|
null
|
|
1165
|
-
), [
|
|
1165
|
+
), [_, j] = L(!1), [M, k] = L(0), [E, A] = L(0), [R, y] = L(0.7), [m, p] = L(!1), [x, P] = L(c), [O, q] = L(!1), [Y, W] = L(!1), [F, $] = L(!1), u = K(null), S = K(null), V = K(null);
|
|
1166
1166
|
X(() => {
|
|
1167
1167
|
u.current && (u.current.volume = R);
|
|
1168
1168
|
}, [R]), X(() => {
|
|
1169
1169
|
u.current && (u.current.loop = x);
|
|
1170
1170
|
}, [x]), X(() => {
|
|
1171
|
-
f === null && u.current && (u.current.pause(),
|
|
1171
|
+
f === null && u.current && (u.current.pause(), j(!1), k(0), A(0));
|
|
1172
1172
|
}, [f]);
|
|
1173
|
-
const G = (
|
|
1174
|
-
if (f ===
|
|
1173
|
+
const G = (z) => {
|
|
1174
|
+
if (f === z) {
|
|
1175
1175
|
if (!u.current) return;
|
|
1176
1176
|
u.current.paused ? (u.current.play().catch(() => {
|
|
1177
|
-
}),
|
|
1177
|
+
}), j(!0)) : (u.current.pause(), j(!1));
|
|
1178
1178
|
} else
|
|
1179
|
-
N(
|
|
1179
|
+
N(z), setTimeout(() => {
|
|
1180
1180
|
u.current && (u.current.play().catch(() => {
|
|
1181
|
-
}),
|
|
1181
|
+
}), j(!0));
|
|
1182
1182
|
}, 100);
|
|
1183
1183
|
}, Z = () => {
|
|
1184
1184
|
u.current && (k(u.current.currentTime), u.current.duration && A(u.current.duration));
|
|
1185
|
-
}, a = (
|
|
1185
|
+
}, a = (z) => {
|
|
1186
1186
|
if (!u.current || !E) return;
|
|
1187
|
-
const T =
|
|
1187
|
+
const T = z.currentTarget.getBoundingClientRect(), re = (z.clientX - T.left) / T.width * E;
|
|
1188
1188
|
u.current.currentTime = re, k(re);
|
|
1189
|
-
}, b = (
|
|
1190
|
-
const T =
|
|
1189
|
+
}, b = (z) => {
|
|
1190
|
+
const T = z.currentTarget.getBoundingClientRect(), ee = (z.clientX - T.left) / T.width, re = Math.max(0, Math.min(1, ee));
|
|
1191
1191
|
y(re);
|
|
1192
|
-
}, v = (
|
|
1192
|
+
}, v = (z) => {
|
|
1193
1193
|
if (u.current && E) {
|
|
1194
|
-
let T = u.current.currentTime +
|
|
1194
|
+
let T = u.current.currentTime + z;
|
|
1195
1195
|
T = Math.min(Math.max(T, 0), E), u.current.currentTime = T, k(T);
|
|
1196
1196
|
}
|
|
1197
1197
|
}, I = () => {
|
|
1198
1198
|
if (f === null) return;
|
|
1199
|
-
let
|
|
1200
|
-
O ?
|
|
1199
|
+
let z;
|
|
1200
|
+
O ? z = Math.floor(Math.random() * n.length) : z = (f + 1) % n.length, G(z);
|
|
1201
1201
|
}, H = () => {
|
|
1202
1202
|
if (f === null) return;
|
|
1203
|
-
let
|
|
1204
|
-
O ?
|
|
1203
|
+
let z;
|
|
1204
|
+
O ? z = Math.floor(Math.random() * n.length) : z = (f - 1 + n.length) % n.length, G(z);
|
|
1205
1205
|
}, te = () => {
|
|
1206
|
-
y((
|
|
1206
|
+
y((z) => z > 0 ? 0 : 0.7);
|
|
1207
1207
|
}, B = () => {
|
|
1208
1208
|
$(!0), V.current && clearTimeout(V.current), V.current = setTimeout(() => {
|
|
1209
1209
|
$(!1);
|
|
1210
1210
|
}, 3e3);
|
|
1211
|
-
}, Q = (
|
|
1212
|
-
if (isNaN(
|
|
1213
|
-
const T = Math.floor(
|
|
1211
|
+
}, Q = (z) => {
|
|
1212
|
+
if (isNaN(z)) return "0:00";
|
|
1213
|
+
const T = Math.floor(z / 60), D = Math.floor(z % 60);
|
|
1214
1214
|
return `${T}:${D < 10 ? "0" : ""}${D}`;
|
|
1215
1215
|
}, J = f !== null ? n[f] : null;
|
|
1216
1216
|
return /* @__PURE__ */ e.jsxs(
|
|
1217
1217
|
"div",
|
|
1218
1218
|
{
|
|
1219
|
-
className:
|
|
1219
|
+
className: t,
|
|
1220
1220
|
style: {
|
|
1221
1221
|
maxWidth: `${h}px`,
|
|
1222
1222
|
margin: "20px auto",
|
|
@@ -1227,7 +1227,7 @@ function Gt({
|
|
|
1227
1227
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
1228
1228
|
userSelect: "none",
|
|
1229
1229
|
backdropFilter: "blur(20px)",
|
|
1230
|
-
border: `${d}px solid ${
|
|
1230
|
+
border: `${d}px solid ${w}40`
|
|
1231
1231
|
},
|
|
1232
1232
|
children: [
|
|
1233
1233
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -1248,7 +1248,7 @@ function Gt({
|
|
|
1248
1248
|
width: "40px",
|
|
1249
1249
|
height: "40px",
|
|
1250
1250
|
borderRadius: "12px",
|
|
1251
|
-
background: `linear-gradient(135deg, ${
|
|
1251
|
+
background: `linear-gradient(135deg, ${r}, ${i})`,
|
|
1252
1252
|
display: "flex",
|
|
1253
1253
|
alignItems: "center",
|
|
1254
1254
|
justifyContent: "center"
|
|
@@ -1264,7 +1264,7 @@ function Gt({
|
|
|
1264
1264
|
margin: 0,
|
|
1265
1265
|
fontSize: "1.25rem",
|
|
1266
1266
|
fontWeight: "700",
|
|
1267
|
-
color:
|
|
1267
|
+
color: r
|
|
1268
1268
|
// fallback for browsers without WebkitTextFillColor
|
|
1269
1269
|
},
|
|
1270
1270
|
children: s
|
|
@@ -1281,7 +1281,7 @@ function Gt({
|
|
|
1281
1281
|
{
|
|
1282
1282
|
onClick: () => q(!O),
|
|
1283
1283
|
style: {
|
|
1284
|
-
background: O ?
|
|
1284
|
+
background: O ? r : "transparent",
|
|
1285
1285
|
border: "none",
|
|
1286
1286
|
borderRadius: "12px",
|
|
1287
1287
|
padding: "8px",
|
|
@@ -1308,8 +1308,8 @@ function Gt({
|
|
|
1308
1308
|
overflowY: "auto",
|
|
1309
1309
|
paddingRight: "4px"
|
|
1310
1310
|
},
|
|
1311
|
-
children: n.map((
|
|
1312
|
-
const D = f === T, ee = D &&
|
|
1311
|
+
children: n.map((z, T) => {
|
|
1312
|
+
const D = f === T, ee = D && _;
|
|
1313
1313
|
return /* @__PURE__ */ e.jsxs(
|
|
1314
1314
|
"div",
|
|
1315
1315
|
{
|
|
@@ -1319,8 +1319,8 @@ function Gt({
|
|
|
1319
1319
|
alignItems: "center",
|
|
1320
1320
|
padding: "12px 16px",
|
|
1321
1321
|
borderRadius: "16px",
|
|
1322
|
-
background: D ? `linear-gradient(135deg, ${
|
|
1323
|
-
border: D ? `1px solid ${
|
|
1322
|
+
background: D ? `linear-gradient(135deg, ${r}20, ${r}10)` : "rgba(255,255,255,0.05)",
|
|
1323
|
+
border: D ? `1px solid ${r}40` : "1px solid transparent",
|
|
1324
1324
|
cursor: "pointer",
|
|
1325
1325
|
transition: "all 0.3s ease",
|
|
1326
1326
|
backdropFilter: D ? "blur(20px)" : "none"
|
|
@@ -1333,7 +1333,7 @@ function Gt({
|
|
|
1333
1333
|
width: "48px",
|
|
1334
1334
|
height: "48px",
|
|
1335
1335
|
borderRadius: "12px",
|
|
1336
|
-
background:
|
|
1336
|
+
background: z.thumbnail ? `url(${z.thumbnail}) center/cover` : r,
|
|
1337
1337
|
display: "flex",
|
|
1338
1338
|
alignItems: "center",
|
|
1339
1339
|
justifyContent: "center",
|
|
@@ -1342,7 +1342,7 @@ function Gt({
|
|
|
1342
1342
|
overflow: "hidden"
|
|
1343
1343
|
},
|
|
1344
1344
|
children: [
|
|
1345
|
-
!
|
|
1345
|
+
!z.thumbnail && /* @__PURE__ */ e.jsx(Ne, { size: 20, color: "white" }),
|
|
1346
1346
|
ee && /* @__PURE__ */ e.jsx(
|
|
1347
1347
|
"div",
|
|
1348
1348
|
{
|
|
@@ -1395,15 +1395,15 @@ function Gt({
|
|
|
1395
1395
|
style: {
|
|
1396
1396
|
fontWeight: "600",
|
|
1397
1397
|
fontSize: "0.95rem",
|
|
1398
|
-
color: D ?
|
|
1398
|
+
color: D ? r : l,
|
|
1399
1399
|
whiteSpace: "nowrap",
|
|
1400
1400
|
overflow: "hidden",
|
|
1401
1401
|
textOverflow: "ellipsis"
|
|
1402
1402
|
},
|
|
1403
|
-
children:
|
|
1403
|
+
children: z.title
|
|
1404
1404
|
}
|
|
1405
1405
|
),
|
|
1406
|
-
|
|
1406
|
+
z.artist && /* @__PURE__ */ e.jsx(
|
|
1407
1407
|
"div",
|
|
1408
1408
|
{
|
|
1409
1409
|
style: {
|
|
@@ -1413,7 +1413,7 @@ function Gt({
|
|
|
1413
1413
|
overflow: "hidden",
|
|
1414
1414
|
textOverflow: "ellipsis"
|
|
1415
1415
|
},
|
|
1416
|
-
children:
|
|
1416
|
+
children: z.artist
|
|
1417
1417
|
}
|
|
1418
1418
|
)
|
|
1419
1419
|
] }),
|
|
@@ -1422,7 +1422,7 @@ function Gt({
|
|
|
1422
1422
|
{
|
|
1423
1423
|
style: { display: "flex", alignItems: "center", gap: "12px" },
|
|
1424
1424
|
children: [
|
|
1425
|
-
|
|
1425
|
+
z.duration && /* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.8rem", opacity: 0.6 }, children: z.duration }),
|
|
1426
1426
|
/* @__PURE__ */ e.jsx(
|
|
1427
1427
|
"div",
|
|
1428
1428
|
{
|
|
@@ -1430,7 +1430,7 @@ function Gt({
|
|
|
1430
1430
|
width: "32px",
|
|
1431
1431
|
height: "32px",
|
|
1432
1432
|
borderRadius: "8px",
|
|
1433
|
-
background: D ?
|
|
1433
|
+
background: D ? r : "rgba(255,255,255,0.1)",
|
|
1434
1434
|
display: "flex",
|
|
1435
1435
|
alignItems: "center",
|
|
1436
1436
|
justifyContent: "center",
|
|
@@ -1457,7 +1457,7 @@ function Gt({
|
|
|
1457
1457
|
background: `linear-gradient(135deg, ${i}, ${o})`,
|
|
1458
1458
|
borderRadius: "20px",
|
|
1459
1459
|
padding: "20px",
|
|
1460
|
-
border: `1px solid ${
|
|
1460
|
+
border: `1px solid ${r}40`,
|
|
1461
1461
|
backdropFilter: "blur(20px)",
|
|
1462
1462
|
position: "relative",
|
|
1463
1463
|
overflow: "hidden"
|
|
@@ -1489,7 +1489,7 @@ function Gt({
|
|
|
1489
1489
|
margin: "0 0 4px 0",
|
|
1490
1490
|
fontSize: "1.1rem",
|
|
1491
1491
|
fontWeight: "700",
|
|
1492
|
-
color:
|
|
1492
|
+
color: r
|
|
1493
1493
|
},
|
|
1494
1494
|
children: J.title
|
|
1495
1495
|
}
|
|
@@ -1532,18 +1532,18 @@ function Gt({
|
|
|
1532
1532
|
"button",
|
|
1533
1533
|
{
|
|
1534
1534
|
onClick: () => {
|
|
1535
|
-
u.current && (
|
|
1536
|
-
}),
|
|
1535
|
+
u.current && (_ ? (u.current.pause(), j(!1)) : (u.current.play().catch(() => {
|
|
1536
|
+
}), j(!0)));
|
|
1537
1537
|
},
|
|
1538
1538
|
style: {
|
|
1539
|
-
...ne("#fff",
|
|
1539
|
+
...ne("#fff", r),
|
|
1540
1540
|
width: "60px",
|
|
1541
1541
|
height: "60px",
|
|
1542
1542
|
borderRadius: "50%",
|
|
1543
|
-
boxShadow: `0 8px 25px ${
|
|
1543
|
+
boxShadow: `0 8px 25px ${r}40`
|
|
1544
1544
|
},
|
|
1545
|
-
"aria-label":
|
|
1546
|
-
children:
|
|
1545
|
+
"aria-label": _ ? "Pause" : "Play",
|
|
1546
|
+
children: _ ? /* @__PURE__ */ e.jsx(me, { size: 24 }) : /* @__PURE__ */ e.jsx(be, { size: 24 })
|
|
1547
1547
|
}
|
|
1548
1548
|
),
|
|
1549
1549
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -1606,7 +1606,7 @@ function Gt({
|
|
|
1606
1606
|
style: {
|
|
1607
1607
|
width: `${M / E * 100 || 0}%`,
|
|
1608
1608
|
height: "100%",
|
|
1609
|
-
background: `linear-gradient(90deg, ${
|
|
1609
|
+
background: `linear-gradient(90deg, ${r}, #ec4899)`,
|
|
1610
1610
|
borderRadius: "3px",
|
|
1611
1611
|
position: "relative"
|
|
1612
1612
|
},
|
|
@@ -1620,9 +1620,9 @@ function Gt({
|
|
|
1620
1620
|
transform: "translateY(-50%)",
|
|
1621
1621
|
width: "12px",
|
|
1622
1622
|
height: "12px",
|
|
1623
|
-
background:
|
|
1623
|
+
background: r,
|
|
1624
1624
|
borderRadius: "50%",
|
|
1625
|
-
boxShadow: `0 2px 8px ${
|
|
1625
|
+
boxShadow: `0 2px 8px ${r}60`
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
1628
|
)
|
|
@@ -1658,7 +1658,7 @@ function Gt({
|
|
|
1658
1658
|
{
|
|
1659
1659
|
onClick: () => P(!x),
|
|
1660
1660
|
style: ne(
|
|
1661
|
-
x ?
|
|
1661
|
+
x ? r : l,
|
|
1662
1662
|
"rgba(255,255,255,0.1)"
|
|
1663
1663
|
),
|
|
1664
1664
|
"aria-label": "Toggle Loop",
|
|
@@ -1694,7 +1694,7 @@ function Gt({
|
|
|
1694
1694
|
style: {
|
|
1695
1695
|
width: `${R * 100}%`,
|
|
1696
1696
|
height: "100%",
|
|
1697
|
-
background:
|
|
1697
|
+
background: r,
|
|
1698
1698
|
borderRadius: "2px"
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
@@ -1727,7 +1727,7 @@ function Gt({
|
|
|
1727
1727
|
loop: x,
|
|
1728
1728
|
onTimeUpdate: Z,
|
|
1729
1729
|
onEnded: () => {
|
|
1730
|
-
|
|
1730
|
+
j(!1), x || I();
|
|
1731
1731
|
},
|
|
1732
1732
|
onLoadedMetadata: Z,
|
|
1733
1733
|
preload: "metadata",
|
|
@@ -1754,22 +1754,22 @@ function Gt({
|
|
|
1754
1754
|
}
|
|
1755
1755
|
|
|
1756
1756
|
div::-webkit-scrollbar-thumb {
|
|
1757
|
-
background: ${
|
|
1757
|
+
background: ${r};
|
|
1758
1758
|
border-radius: 2px;
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
1761
|
div::-webkit-scrollbar-thumb:hover {
|
|
1762
|
-
background: ${
|
|
1762
|
+
background: ${r}dd;
|
|
1763
1763
|
}
|
|
1764
1764
|
` })
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
1767
1767
|
);
|
|
1768
1768
|
}
|
|
1769
|
-
function ne(n,
|
|
1769
|
+
function ne(n, t) {
|
|
1770
1770
|
return {
|
|
1771
1771
|
border: "none",
|
|
1772
|
-
backgroundColor:
|
|
1772
|
+
backgroundColor: t,
|
|
1773
1773
|
color: n,
|
|
1774
1774
|
cursor: "pointer",
|
|
1775
1775
|
padding: "10px",
|
|
@@ -1782,29 +1782,29 @@ function ne(n, r) {
|
|
|
1782
1782
|
};
|
|
1783
1783
|
}
|
|
1784
1784
|
function Pe(n) {
|
|
1785
|
-
var
|
|
1786
|
-
if (typeof n == "string" || typeof n == "number")
|
|
1785
|
+
var t, s, r = "";
|
|
1786
|
+
if (typeof n == "string" || typeof n == "number") r += n;
|
|
1787
1787
|
else if (typeof n == "object") if (Array.isArray(n)) {
|
|
1788
1788
|
var o = n.length;
|
|
1789
|
-
for (
|
|
1790
|
-
} else for (s in n) n[s] && (
|
|
1791
|
-
return
|
|
1789
|
+
for (t = 0; t < o; t++) n[t] && (s = Pe(n[t])) && (r && (r += " "), r += s);
|
|
1790
|
+
} else for (s in n) n[s] && (r && (r += " "), r += s);
|
|
1791
|
+
return r;
|
|
1792
1792
|
}
|
|
1793
1793
|
function C() {
|
|
1794
|
-
for (var n,
|
|
1795
|
-
return
|
|
1794
|
+
for (var n, t, s = 0, r = "", o = arguments.length; s < o; s++) (n = arguments[s]) && (t = Pe(n)) && (r && (r += " "), r += t);
|
|
1795
|
+
return r;
|
|
1796
1796
|
}
|
|
1797
|
-
const Lt =
|
|
1797
|
+
const Lt = ze(
|
|
1798
1798
|
({
|
|
1799
1799
|
text: n,
|
|
1800
|
-
icon:
|
|
1800
|
+
icon: t,
|
|
1801
1801
|
iconPosition: s = "left",
|
|
1802
|
-
primaryTheme:
|
|
1802
|
+
primaryTheme: r = !0,
|
|
1803
1803
|
primaryColor: o = "#3b82f6",
|
|
1804
1804
|
size: l = "md",
|
|
1805
1805
|
rounded: i = !0,
|
|
1806
1806
|
notificationDot: d = !1,
|
|
1807
|
-
dotColor:
|
|
1807
|
+
dotColor: w = "#ef4444",
|
|
1808
1808
|
count: h,
|
|
1809
1809
|
pulse: g = !1,
|
|
1810
1810
|
className: c,
|
|
@@ -1814,7 +1814,7 @@ const Lt = _e(
|
|
|
1814
1814
|
sm: "px-2 py-0.5 text-xs",
|
|
1815
1815
|
md: "px-3 py-1 text-xs",
|
|
1816
1816
|
lg: "px-4 py-1.5 text-sm"
|
|
1817
|
-
},
|
|
1817
|
+
}, _ = r ? "bg-[var(--primary)] text-white" : "", j = r ? {} : {
|
|
1818
1818
|
backgroundColor: o,
|
|
1819
1819
|
color: "#fff"
|
|
1820
1820
|
};
|
|
@@ -1822,13 +1822,13 @@ const Lt = _e(
|
|
|
1822
1822
|
"span",
|
|
1823
1823
|
{
|
|
1824
1824
|
onClick: f,
|
|
1825
|
-
style:
|
|
1825
|
+
style: r ? void 0 : j,
|
|
1826
1826
|
className: C(
|
|
1827
1827
|
"relative inline-flex items-center justify-center gap-1 font-medium",
|
|
1828
1828
|
"transition-all duration-200 select-none",
|
|
1829
1829
|
i ? "rounded-full" : "rounded-md",
|
|
1830
1830
|
N[l],
|
|
1831
|
-
|
|
1831
|
+
_,
|
|
1832
1832
|
f && "cursor-pointer hover:opacity-90",
|
|
1833
1833
|
c
|
|
1834
1834
|
),
|
|
@@ -1836,29 +1836,29 @@ const Lt = _e(
|
|
|
1836
1836
|
d && /* @__PURE__ */ e.jsx(
|
|
1837
1837
|
"span",
|
|
1838
1838
|
{
|
|
1839
|
-
style:
|
|
1839
|
+
style: r ? void 0 : { backgroundColor: w },
|
|
1840
1840
|
className: C(
|
|
1841
1841
|
"absolute -top-1 -right-1 w-2 h-2 rounded-full",
|
|
1842
1842
|
g && "animate-ping",
|
|
1843
|
-
|
|
1843
|
+
r ? "bg-red-500" : ""
|
|
1844
1844
|
)
|
|
1845
1845
|
}
|
|
1846
1846
|
),
|
|
1847
1847
|
h !== void 0 && /* @__PURE__ */ e.jsx(
|
|
1848
1848
|
"span",
|
|
1849
1849
|
{
|
|
1850
|
-
style:
|
|
1850
|
+
style: r ? void 0 : { backgroundColor: w },
|
|
1851
1851
|
className: C(
|
|
1852
1852
|
"absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 text-[10px]",
|
|
1853
1853
|
"flex items-center justify-center rounded-full text-white",
|
|
1854
|
-
|
|
1854
|
+
r ? "bg-red-500" : ""
|
|
1855
1855
|
),
|
|
1856
1856
|
children: h
|
|
1857
1857
|
}
|
|
1858
1858
|
),
|
|
1859
|
-
|
|
1859
|
+
t && s === "left" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: t }),
|
|
1860
1860
|
n && /* @__PURE__ */ e.jsx("span", { children: n }),
|
|
1861
|
-
|
|
1861
|
+
t && s === "right" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: t })
|
|
1862
1862
|
]
|
|
1863
1863
|
}
|
|
1864
1864
|
);
|
|
@@ -1868,49 +1868,52 @@ Lt.displayName = "Badge";
|
|
|
1868
1868
|
const Dt = ie(
|
|
1869
1869
|
({
|
|
1870
1870
|
children: n,
|
|
1871
|
-
iconBefore:
|
|
1871
|
+
iconBefore: t,
|
|
1872
1872
|
iconAfter: s,
|
|
1873
|
-
loading:
|
|
1873
|
+
loading: r = !1,
|
|
1874
1874
|
loadingText: o = "Loading...",
|
|
1875
1875
|
fullWidth: l = !1,
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1876
|
+
variant: i = "default",
|
|
1877
|
+
size: d = "md",
|
|
1878
|
+
disabled: w,
|
|
1879
|
+
className: h,
|
|
1880
|
+
type: g = "button",
|
|
1881
|
+
// ✅ important fix
|
|
1881
1882
|
...c
|
|
1882
1883
|
}, f) => {
|
|
1883
|
-
const N = {
|
|
1884
|
-
sm: "px-3
|
|
1885
|
-
md: "
|
|
1886
|
-
lg: "px-6
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
|
|
1884
|
+
const N = w || r, _ = {
|
|
1885
|
+
sm: "h-8 px-3 text-sm",
|
|
1886
|
+
md: "h-10 px-4 text-sm",
|
|
1887
|
+
lg: "h-12 px-6 text-base"
|
|
1888
|
+
}, j = {
|
|
1889
|
+
default: "bg-blue-600 text-white hover:bg-blue-600/90",
|
|
1890
|
+
outline: "border border-zinc-300 text-zinc-900 hover:bg-zinc-100 dark:border-zinc-700 dark:text-white dark:hover:bg-zinc-800",
|
|
1891
|
+
ghost: "text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"
|
|
1890
1892
|
};
|
|
1891
1893
|
return /* @__PURE__ */ e.jsx(
|
|
1892
1894
|
"button",
|
|
1893
1895
|
{
|
|
1894
1896
|
ref: f,
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
+
type: g,
|
|
1898
|
+
disabled: N,
|
|
1897
1899
|
className: C(
|
|
1898
|
-
"inline-flex items-center justify-center gap-2 font-medium
|
|
1899
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
1900
|
-
|
|
1901
|
-
|
|
1900
|
+
"inline-flex items-center justify-center gap-2 rounded-lg font-medium transition-all duration-200",
|
|
1901
|
+
"focus:outline-none focus:ring-2 focus:ring-blue-500/30",
|
|
1902
|
+
"active:scale-[0.98]",
|
|
1903
|
+
_[d],
|
|
1904
|
+
j[i],
|
|
1902
1905
|
l && "w-full",
|
|
1903
|
-
|
|
1904
|
-
|
|
1906
|
+
N && "opacity-60 cursor-not-allowed pointer-events-none",
|
|
1907
|
+
h
|
|
1905
1908
|
),
|
|
1906
1909
|
...c,
|
|
1907
|
-
children:
|
|
1910
|
+
children: r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1908
1911
|
/* @__PURE__ */ e.jsx("span", { className: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" }),
|
|
1909
1912
|
/* @__PURE__ */ e.jsx("span", { children: o })
|
|
1910
1913
|
] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1911
|
-
|
|
1914
|
+
t && /* @__PURE__ */ e.jsx("span", { className: "flex", children: t }),
|
|
1912
1915
|
/* @__PURE__ */ e.jsx("span", { children: n }),
|
|
1913
|
-
s && /* @__PURE__ */ e.jsx("span", { className: "flex
|
|
1916
|
+
s && /* @__PURE__ */ e.jsx("span", { className: "flex", children: s })
|
|
1914
1917
|
] })
|
|
1915
1918
|
}
|
|
1916
1919
|
);
|
|
@@ -1919,28 +1922,28 @@ const Dt = ie(
|
|
|
1919
1922
|
Dt.displayName = "Button";
|
|
1920
1923
|
const Xt = ({
|
|
1921
1924
|
name: n,
|
|
1922
|
-
options:
|
|
1925
|
+
options: t,
|
|
1923
1926
|
selectedValues: s = [],
|
|
1924
|
-
onChange:
|
|
1927
|
+
onChange: r,
|
|
1925
1928
|
disabled: o = !1,
|
|
1926
1929
|
readOnly: l = !1,
|
|
1927
1930
|
required: i = !1,
|
|
1928
1931
|
error: d,
|
|
1929
|
-
className:
|
|
1932
|
+
className: w,
|
|
1930
1933
|
customIcon: h,
|
|
1931
1934
|
style: g,
|
|
1932
1935
|
labelStyle: c,
|
|
1933
1936
|
iconSize: f = 20,
|
|
1934
1937
|
iconCheckedBgColor: N = "#2563eb",
|
|
1935
|
-
iconUncheckedBorderColor:
|
|
1936
|
-
textColor:
|
|
1938
|
+
iconUncheckedBorderColor: _ = "#9ca3af",
|
|
1939
|
+
textColor: j = "#374151",
|
|
1937
1940
|
errorStyle: M,
|
|
1938
1941
|
darkMode: k = !1
|
|
1939
1942
|
}) => {
|
|
1940
1943
|
const E = K(null), [A, R] = L(null), y = (m) => {
|
|
1941
|
-
if (!
|
|
1944
|
+
if (!r || o || l) return;
|
|
1942
1945
|
const p = s.includes(m) ? s.filter((x) => x !== m) : [...s, m];
|
|
1943
|
-
|
|
1946
|
+
r(p);
|
|
1944
1947
|
};
|
|
1945
1948
|
return X(() => {
|
|
1946
1949
|
const m = E.current;
|
|
@@ -1948,10 +1951,10 @@ const Xt = ({
|
|
|
1948
1951
|
const p = (x) => {
|
|
1949
1952
|
if (o || A === null) return;
|
|
1950
1953
|
const P = A;
|
|
1951
|
-
(x.key === "ArrowDown" || x.key === "ArrowRight") && (x.preventDefault(), R((P + 1) %
|
|
1954
|
+
(x.key === "ArrowDown" || x.key === "ArrowRight") && (x.preventDefault(), R((P + 1) % t.length)), (x.key === "ArrowUp" || x.key === "ArrowLeft") && (x.preventDefault(), R((P - 1 + t.length) % t.length)), (x.key === " " || x.key === "Enter") && (x.preventDefault(), y(t[P].value));
|
|
1952
1955
|
};
|
|
1953
1956
|
return m.addEventListener("keydown", p), () => m.removeEventListener("keydown", p);
|
|
1954
|
-
}, [A,
|
|
1957
|
+
}, [A, t, s, o]), /* @__PURE__ */ e.jsxs(
|
|
1955
1958
|
"div",
|
|
1956
1959
|
{
|
|
1957
1960
|
ref: E,
|
|
@@ -1959,10 +1962,10 @@ const Xt = ({
|
|
|
1959
1962
|
"aria-disabled": o,
|
|
1960
1963
|
"aria-invalid": !!d,
|
|
1961
1964
|
tabIndex: 0,
|
|
1962
|
-
className: C("flex flex-col gap-2",
|
|
1965
|
+
className: C("flex flex-col gap-2", w),
|
|
1963
1966
|
style: { ...g },
|
|
1964
1967
|
children: [
|
|
1965
|
-
|
|
1968
|
+
t.map((m, p) => {
|
|
1966
1969
|
const x = s.includes(m.value), P = A === p;
|
|
1967
1970
|
return /* @__PURE__ */ e.jsxs(
|
|
1968
1971
|
"label",
|
|
@@ -1975,7 +1978,7 @@ const Xt = ({
|
|
|
1975
1978
|
style: { ...c },
|
|
1976
1979
|
onFocus: () => R(p),
|
|
1977
1980
|
children: [
|
|
1978
|
-
/* @__PURE__ */ e.jsx("span", { style: { color:
|
|
1981
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: j, fontSize: 14 }, children: m.label }),
|
|
1979
1982
|
/* @__PURE__ */ e.jsx(
|
|
1980
1983
|
"input",
|
|
1981
1984
|
{
|
|
@@ -1999,7 +2002,7 @@ const Xt = ({
|
|
|
1999
2002
|
width: f,
|
|
2000
2003
|
height: f,
|
|
2001
2004
|
borderRadius: 4,
|
|
2002
|
-
border: `2px solid ${x ? N :
|
|
2005
|
+
border: `2px solid ${x ? N : _}`,
|
|
2003
2006
|
backgroundColor: x ? N : "transparent",
|
|
2004
2007
|
transition: "all 0.25s ease"
|
|
2005
2008
|
},
|
|
@@ -2041,21 +2044,21 @@ const Xt = ({
|
|
|
2041
2044
|
);
|
|
2042
2045
|
}, Jt = ({
|
|
2043
2046
|
name: n,
|
|
2044
|
-
options:
|
|
2047
|
+
options: t,
|
|
2045
2048
|
selectedValue: s,
|
|
2046
|
-
onChange:
|
|
2049
|
+
onChange: r,
|
|
2047
2050
|
disabled: o = !1,
|
|
2048
2051
|
readOnly: l = !1,
|
|
2049
2052
|
required: i = !1,
|
|
2050
2053
|
error: d,
|
|
2051
|
-
className:
|
|
2054
|
+
className: w,
|
|
2052
2055
|
style: h,
|
|
2053
2056
|
labelStyle: g,
|
|
2054
2057
|
iconSize: c = 20,
|
|
2055
2058
|
iconCheckedBgColor: f = "#2563eb",
|
|
2056
2059
|
iconUncheckedBorderColor: N = "#9ca3af",
|
|
2057
|
-
textColor:
|
|
2058
|
-
errorStyle:
|
|
2060
|
+
textColor: _ = "#374151",
|
|
2061
|
+
errorStyle: j,
|
|
2059
2062
|
darkMode: M = !1
|
|
2060
2063
|
}) => {
|
|
2061
2064
|
const k = K(null), [E, A] = L(null);
|
|
@@ -2064,31 +2067,31 @@ const Xt = ({
|
|
|
2064
2067
|
if (!R) return;
|
|
2065
2068
|
const y = (m) => {
|
|
2066
2069
|
if (o) return;
|
|
2067
|
-
const p = E ??
|
|
2070
|
+
const p = E ?? t.findIndex((x) => x.value === s) ?? 0;
|
|
2068
2071
|
if (m.key === "ArrowDown" || m.key === "ArrowRight") {
|
|
2069
2072
|
m.preventDefault();
|
|
2070
|
-
const x = (p + 1) %
|
|
2071
|
-
|
|
2073
|
+
const x = (p + 1) % t.length;
|
|
2074
|
+
r && r(t[x].value), A(x);
|
|
2072
2075
|
}
|
|
2073
2076
|
if (m.key === "ArrowUp" || m.key === "ArrowLeft") {
|
|
2074
2077
|
m.preventDefault();
|
|
2075
|
-
const x = (p - 1 +
|
|
2076
|
-
|
|
2078
|
+
const x = (p - 1 + t.length) % t.length;
|
|
2079
|
+
r && r(t[x].value), A(x);
|
|
2077
2080
|
}
|
|
2078
2081
|
};
|
|
2079
2082
|
return R.addEventListener("keydown", y), () => R.removeEventListener("keydown", y);
|
|
2080
|
-
}, [E,
|
|
2083
|
+
}, [E, t, s, r, o]), /* @__PURE__ */ e.jsxs(
|
|
2081
2084
|
"div",
|
|
2082
2085
|
{
|
|
2083
2086
|
ref: k,
|
|
2084
2087
|
role: "radiogroup",
|
|
2085
2088
|
"aria-disabled": o,
|
|
2086
2089
|
"aria-invalid": !!d,
|
|
2087
|
-
className: C("flex flex-col gap-2",
|
|
2090
|
+
className: C("flex flex-col gap-2", w),
|
|
2088
2091
|
style: { ...h },
|
|
2089
2092
|
tabIndex: 0,
|
|
2090
2093
|
children: [
|
|
2091
|
-
|
|
2094
|
+
t.map((R, y) => {
|
|
2092
2095
|
const m = s === R.value, p = E === y;
|
|
2093
2096
|
return /* @__PURE__ */ e.jsxs(
|
|
2094
2097
|
"label",
|
|
@@ -2100,7 +2103,7 @@ const Xt = ({
|
|
|
2100
2103
|
),
|
|
2101
2104
|
style: { ...g },
|
|
2102
2105
|
children: [
|
|
2103
|
-
/* @__PURE__ */ e.jsx("span", { style: { color:
|
|
2106
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: _, fontSize: 14 }, children: R.label }),
|
|
2104
2107
|
/* @__PURE__ */ e.jsx(
|
|
2105
2108
|
"input",
|
|
2106
2109
|
{
|
|
@@ -2110,7 +2113,7 @@ const Xt = ({
|
|
|
2110
2113
|
checked: m,
|
|
2111
2114
|
disabled: o || l,
|
|
2112
2115
|
required: i,
|
|
2113
|
-
onChange: () =>
|
|
2116
|
+
onChange: () => r && r(R.value),
|
|
2114
2117
|
style: { display: "none" }
|
|
2115
2118
|
}
|
|
2116
2119
|
),
|
|
@@ -2151,7 +2154,7 @@ const Xt = ({
|
|
|
2151
2154
|
color: "#dc2626",
|
|
2152
2155
|
fontSize: 12,
|
|
2153
2156
|
marginTop: 4,
|
|
2154
|
-
...
|
|
2157
|
+
...j
|
|
2155
2158
|
},
|
|
2156
2159
|
children: d
|
|
2157
2160
|
}
|
|
@@ -2161,27 +2164,27 @@ const Xt = ({
|
|
|
2161
2164
|
);
|
|
2162
2165
|
}, Kt = ({
|
|
2163
2166
|
name: n,
|
|
2164
|
-
options:
|
|
2167
|
+
options: t,
|
|
2165
2168
|
selectedValues: s = [],
|
|
2166
|
-
onChange:
|
|
2169
|
+
onChange: r,
|
|
2167
2170
|
disabled: o = !1,
|
|
2168
2171
|
readOnly: l = !1,
|
|
2169
2172
|
required: i = !1,
|
|
2170
2173
|
error: d,
|
|
2171
|
-
className:
|
|
2174
|
+
className: w,
|
|
2172
2175
|
style: h,
|
|
2173
2176
|
labelStyle: g,
|
|
2174
2177
|
iconSize: c = 20,
|
|
2175
2178
|
iconCheckedBgColor: f = "#2563eb",
|
|
2176
2179
|
switchBgColor: N = "#d1d5db",
|
|
2177
|
-
textColor:
|
|
2178
|
-
errorStyle:
|
|
2180
|
+
textColor: _ = "#374151",
|
|
2181
|
+
errorStyle: j,
|
|
2179
2182
|
darkMode: M = !1
|
|
2180
2183
|
}) => {
|
|
2181
2184
|
const k = K(null), [E, A] = L(null), R = (y) => {
|
|
2182
|
-
if (!
|
|
2185
|
+
if (!r || o || l) return;
|
|
2183
2186
|
const m = s.includes(y) ? s.filter((p) => p !== y) : [...s, y];
|
|
2184
|
-
|
|
2187
|
+
r(m);
|
|
2185
2188
|
};
|
|
2186
2189
|
return X(() => {
|
|
2187
2190
|
const y = k.current;
|
|
@@ -2191,18 +2194,18 @@ const Xt = ({
|
|
|
2191
2194
|
const x = E;
|
|
2192
2195
|
if (p.key === "ArrowRight" || p.key === "ArrowDown") {
|
|
2193
2196
|
p.preventDefault();
|
|
2194
|
-
const P = (x + 1) %
|
|
2197
|
+
const P = (x + 1) % t.length;
|
|
2195
2198
|
A(P);
|
|
2196
2199
|
}
|
|
2197
2200
|
if (p.key === "ArrowLeft" || p.key === "ArrowUp") {
|
|
2198
2201
|
p.preventDefault();
|
|
2199
|
-
const P = (x - 1 +
|
|
2202
|
+
const P = (x - 1 + t.length) % t.length;
|
|
2200
2203
|
A(P);
|
|
2201
2204
|
}
|
|
2202
|
-
(p.key === " " || p.key === "Enter") && (p.preventDefault(), R(
|
|
2205
|
+
(p.key === " " || p.key === "Enter") && (p.preventDefault(), R(t[x].value));
|
|
2203
2206
|
};
|
|
2204
2207
|
return y.addEventListener("keydown", m), () => y.removeEventListener("keydown", m);
|
|
2205
|
-
}, [E,
|
|
2208
|
+
}, [E, t, s, o]), /* @__PURE__ */ e.jsxs(
|
|
2206
2209
|
"div",
|
|
2207
2210
|
{
|
|
2208
2211
|
ref: k,
|
|
@@ -2210,10 +2213,10 @@ const Xt = ({
|
|
|
2210
2213
|
"aria-disabled": o,
|
|
2211
2214
|
"aria-invalid": !!d,
|
|
2212
2215
|
tabIndex: 0,
|
|
2213
|
-
className: C("flex flex-col gap-2",
|
|
2216
|
+
className: C("flex flex-col gap-2", w),
|
|
2214
2217
|
style: { ...h },
|
|
2215
2218
|
children: [
|
|
2216
|
-
|
|
2219
|
+
t.map((y, m) => {
|
|
2217
2220
|
const p = s.includes(y.value), x = E === m;
|
|
2218
2221
|
return /* @__PURE__ */ e.jsxs(
|
|
2219
2222
|
"label",
|
|
@@ -2226,7 +2229,7 @@ const Xt = ({
|
|
|
2226
2229
|
style: { ...g },
|
|
2227
2230
|
onFocus: () => A(m),
|
|
2228
2231
|
children: [
|
|
2229
|
-
/* @__PURE__ */ e.jsx("span", { style: { color:
|
|
2232
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: _, fontSize: 14 }, children: y.label }),
|
|
2230
2233
|
/* @__PURE__ */ e.jsx(
|
|
2231
2234
|
"input",
|
|
2232
2235
|
{
|
|
@@ -2283,7 +2286,7 @@ const Xt = ({
|
|
|
2283
2286
|
color: "#dc2626",
|
|
2284
2287
|
fontSize: 12,
|
|
2285
2288
|
marginTop: 4,
|
|
2286
|
-
...
|
|
2289
|
+
...j
|
|
2287
2290
|
},
|
|
2288
2291
|
children: d
|
|
2289
2292
|
}
|
|
@@ -2306,48 +2309,48 @@ const Xt = ({
|
|
|
2306
2309
|
xl: "p-12"
|
|
2307
2310
|
}, Zt = ({
|
|
2308
2311
|
size: n = "lg",
|
|
2309
|
-
padding:
|
|
2312
|
+
padding: t = "md",
|
|
2310
2313
|
center: s = !0,
|
|
2311
|
-
className:
|
|
2314
|
+
className: r = "",
|
|
2312
2315
|
children: o
|
|
2313
2316
|
}) => {
|
|
2314
2317
|
const l = C(
|
|
2315
2318
|
"w-full box-border",
|
|
2316
2319
|
Ot[n],
|
|
2317
|
-
Ft[
|
|
2320
|
+
Ft[t],
|
|
2318
2321
|
s && "mx-auto",
|
|
2319
|
-
|
|
2322
|
+
r
|
|
2320
2323
|
);
|
|
2321
2324
|
return /* @__PURE__ */ e.jsx("div", { className: l, children: o });
|
|
2322
|
-
}, ae = (n,
|
|
2325
|
+
}, ae = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), Qt = ({
|
|
2323
2326
|
direction: n = { sm: "column", md: "row" },
|
|
2324
|
-
align:
|
|
2327
|
+
align: t = "center",
|
|
2325
2328
|
justify: s = "between",
|
|
2326
|
-
wrap:
|
|
2329
|
+
wrap: r = "wrap",
|
|
2327
2330
|
gap: o,
|
|
2328
2331
|
padding: l,
|
|
2329
2332
|
margin: i,
|
|
2330
2333
|
className: d,
|
|
2331
|
-
children:
|
|
2334
|
+
children: w
|
|
2332
2335
|
}) => {
|
|
2333
2336
|
const h = C(
|
|
2334
2337
|
"flex",
|
|
2335
2338
|
ae("flex", n),
|
|
2336
|
-
ae("items",
|
|
2339
|
+
ae("items", t),
|
|
2337
2340
|
ae("justify", s),
|
|
2338
|
-
ae("flex",
|
|
2341
|
+
ae("flex", r),
|
|
2339
2342
|
// wrap classes: flex-wrap, flex-nowrap, flex-wrap-reverse
|
|
2340
2343
|
o ? ae("gap", o) : "",
|
|
2341
2344
|
l ? ae("p", l) : "",
|
|
2342
2345
|
i ? ae("m", i) : "",
|
|
2343
2346
|
d
|
|
2344
2347
|
);
|
|
2345
|
-
return /* @__PURE__ */ e.jsx("div", { className: h, children:
|
|
2346
|
-
}, Te = (n,
|
|
2348
|
+
return /* @__PURE__ */ e.jsx("div", { className: h, children: w });
|
|
2349
|
+
}, Te = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), Le = ({
|
|
2347
2350
|
direction: n = { sm: "vertical", md: "horizontal" },
|
|
2348
|
-
gap:
|
|
2351
|
+
gap: t = 4,
|
|
2349
2352
|
align: s = "center",
|
|
2350
|
-
justify:
|
|
2353
|
+
justify: r = "start",
|
|
2351
2354
|
wrap: o = "nowrap",
|
|
2352
2355
|
className: l,
|
|
2353
2356
|
children: i
|
|
@@ -2356,18 +2359,18 @@ const Xt = ({
|
|
|
2356
2359
|
"flex",
|
|
2357
2360
|
Te("flex", n),
|
|
2358
2361
|
// flex-col or flex-row
|
|
2359
|
-
Te("gap",
|
|
2362
|
+
Te("gap", t),
|
|
2360
2363
|
s !== "stretch" ? `items-${s}` : "items-stretch",
|
|
2361
|
-
|
|
2364
|
+
r !== "start" ? `justify-${r}` : "justify-start",
|
|
2362
2365
|
o !== "nowrap" ? `flex-${o}` : "flex-nowrap",
|
|
2363
2366
|
l
|
|
2364
2367
|
);
|
|
2365
2368
|
return /* @__PURE__ */ e.jsx("div", { className: d, children: i });
|
|
2366
|
-
}, er = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "horizontal", ...n }), tr = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "vertical", ...n }), xe = (n,
|
|
2369
|
+
}, er = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "horizontal", ...n }), tr = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "vertical", ...n }), xe = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), rr = ({
|
|
2367
2370
|
columns: n = { sm: 1, md: 2, lg: 3 },
|
|
2368
|
-
gap:
|
|
2371
|
+
gap: t = 4,
|
|
2369
2372
|
padding: s = 4,
|
|
2370
|
-
alignItems:
|
|
2373
|
+
alignItems: r = "stretch",
|
|
2371
2374
|
justifyItems: o = "stretch",
|
|
2372
2375
|
className: l,
|
|
2373
2376
|
children: i
|
|
@@ -2375,41 +2378,41 @@ const Xt = ({
|
|
|
2375
2378
|
const d = C(
|
|
2376
2379
|
"grid",
|
|
2377
2380
|
xe("grid-cols", n),
|
|
2378
|
-
xe("gap",
|
|
2381
|
+
xe("gap", t),
|
|
2379
2382
|
xe("p", s),
|
|
2380
|
-
|
|
2383
|
+
r !== "stretch" ? `items-${r}` : "items-stretch",
|
|
2381
2384
|
o !== "stretch" ? `justify-items-${o}` : "justify-items-stretch",
|
|
2382
2385
|
l
|
|
2383
2386
|
);
|
|
2384
2387
|
return /* @__PURE__ */ e.jsx("div", { className: d, children: i });
|
|
2385
2388
|
}, nr = ({
|
|
2386
2389
|
label: n = "Open Drawer",
|
|
2387
|
-
icon:
|
|
2390
|
+
icon: t,
|
|
2388
2391
|
iconPosition: s = "left",
|
|
2389
|
-
onClick:
|
|
2392
|
+
onClick: r,
|
|
2390
2393
|
className: o = ""
|
|
2391
2394
|
}) => /* @__PURE__ */ e.jsxs(
|
|
2392
2395
|
"button",
|
|
2393
2396
|
{
|
|
2394
2397
|
type: "button",
|
|
2395
|
-
onClick:
|
|
2398
|
+
onClick: r,
|
|
2396
2399
|
className: `inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md font-medium text-white bg-blue-600 hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400 ${o}`,
|
|
2397
2400
|
children: [
|
|
2398
|
-
|
|
2401
|
+
t && s === "left" && t,
|
|
2399
2402
|
n,
|
|
2400
|
-
|
|
2403
|
+
t && s === "right" && t
|
|
2401
2404
|
]
|
|
2402
2405
|
}
|
|
2403
2406
|
), sr = ({
|
|
2404
2407
|
open: n,
|
|
2405
|
-
onClose:
|
|
2408
|
+
onClose: t,
|
|
2406
2409
|
position: s = "right",
|
|
2407
|
-
size:
|
|
2410
|
+
size: r = "320px",
|
|
2408
2411
|
children: o,
|
|
2409
2412
|
showCloseButton: l = !0,
|
|
2410
2413
|
className: i = "",
|
|
2411
2414
|
overlayClassName: d = "",
|
|
2412
|
-
closeButtonClassName:
|
|
2415
|
+
closeButtonClassName: w = ""
|
|
2413
2416
|
}) => {
|
|
2414
2417
|
const [h, g] = L(n);
|
|
2415
2418
|
X(() => {
|
|
@@ -2434,7 +2437,7 @@ const Xt = ({
|
|
|
2434
2437
|
/* @__PURE__ */ e.jsx(
|
|
2435
2438
|
"div",
|
|
2436
2439
|
{
|
|
2437
|
-
onClick:
|
|
2440
|
+
onClick: t,
|
|
2438
2441
|
className: `fixed inset-0 bg-black/50 transition-opacity ${n ? "opacity-100" : "opacity-0"} ${d}`
|
|
2439
2442
|
}
|
|
2440
2443
|
),
|
|
@@ -2443,8 +2446,8 @@ const Xt = ({
|
|
|
2443
2446
|
{
|
|
2444
2447
|
className: `fixed bg-white shadow-lg flex flex-col transition-transform duration-300 ${i}`,
|
|
2445
2448
|
style: {
|
|
2446
|
-
width: s === "left" || s === "right" ?
|
|
2447
|
-
height: s === "top" || s === "bottom" ?
|
|
2449
|
+
width: s === "left" || s === "right" ? r : "100%",
|
|
2450
|
+
height: s === "top" || s === "bottom" ? r : "100%",
|
|
2448
2451
|
top: (s === "bottom" || s === "top") && s === "bottom" ? "auto" : 0,
|
|
2449
2452
|
bottom: s === "bottom" ? 0 : "auto",
|
|
2450
2453
|
left: s === "left" ? 0 : s === "right" ? "auto" : 0,
|
|
@@ -2455,8 +2458,8 @@ const Xt = ({
|
|
|
2455
2458
|
l && /* @__PURE__ */ e.jsx(
|
|
2456
2459
|
"button",
|
|
2457
2460
|
{
|
|
2458
|
-
onClick:
|
|
2459
|
-
className: `absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${
|
|
2461
|
+
onClick: t,
|
|
2462
|
+
className: `absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${w}`,
|
|
2460
2463
|
"aria-label": "Close drawer",
|
|
2461
2464
|
children: /* @__PURE__ */ e.jsx(ve, { size: 20 })
|
|
2462
2465
|
}
|
|
@@ -2467,22 +2470,22 @@ const Xt = ({
|
|
|
2467
2470
|
)
|
|
2468
2471
|
] });
|
|
2469
2472
|
}, Bt = ie(
|
|
2470
|
-
(n,
|
|
2473
|
+
(n, t) => {
|
|
2471
2474
|
const {
|
|
2472
2475
|
label: s,
|
|
2473
|
-
name:
|
|
2476
|
+
name: r = "",
|
|
2474
2477
|
value: o,
|
|
2475
2478
|
defaultValue: l,
|
|
2476
2479
|
onChange: i,
|
|
2477
2480
|
options: d = [],
|
|
2478
|
-
placeholder:
|
|
2481
|
+
placeholder: w = "Select an option",
|
|
2479
2482
|
required: h,
|
|
2480
2483
|
disabled: g,
|
|
2481
2484
|
error: c,
|
|
2482
2485
|
success: f,
|
|
2483
2486
|
helperText: N,
|
|
2484
|
-
labelIcon:
|
|
2485
|
-
prefixIcon:
|
|
2487
|
+
labelIcon: _,
|
|
2488
|
+
prefixIcon: j,
|
|
2486
2489
|
variant: M = "dark",
|
|
2487
2490
|
primaryTheme: k = !0,
|
|
2488
2491
|
primaryColor: E = "#3b82f6",
|
|
@@ -2493,7 +2496,7 @@ const Xt = ({
|
|
|
2493
2496
|
optionClassName: p = "",
|
|
2494
2497
|
className: x = ""
|
|
2495
2498
|
} = n, P = K(null);
|
|
2496
|
-
|
|
2499
|
+
_e(t, () => P.current);
|
|
2497
2500
|
const [O, q] = L(!1), [Y, W] = L(l || ""), F = o !== void 0 ? o : Y, $ = d.find((v) => v.value === F);
|
|
2498
2501
|
X(() => {
|
|
2499
2502
|
const v = (I) => {
|
|
@@ -2502,7 +2505,7 @@ const Xt = ({
|
|
|
2502
2505
|
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
2503
2506
|
}, []);
|
|
2504
2507
|
const u = (v) => {
|
|
2505
|
-
W(v.value), i?.(
|
|
2508
|
+
W(v.value), i?.(r, v.value), q(!1);
|
|
2506
2509
|
}, S = {
|
|
2507
2510
|
dark: {
|
|
2508
2511
|
bg: "bg-zinc-900",
|
|
@@ -2518,7 +2521,7 @@ const Xt = ({
|
|
|
2518
2521
|
dropdown: "bg-white border-gray-200",
|
|
2519
2522
|
option: "text-gray-700 hover:bg-gray-100"
|
|
2520
2523
|
}
|
|
2521
|
-
}[M], V = k ? {} : { color: E }, G = k ? {} : { borderColor: E }, Z = k ? {} : { backgroundColor: `${E}20` }, a = c ? "border-rose-500" : f ? "border-emerald-500" : S.border, b =
|
|
2524
|
+
}[M], V = k ? {} : { color: E }, G = k ? {} : { borderColor: E }, Z = k ? {} : { backgroundColor: `${E}20` }, a = c ? "border-rose-500" : f ? "border-emerald-500" : S.border, b = j ? "pl-12 pr-10" : "px-4";
|
|
2522
2525
|
return /* @__PURE__ */ e.jsxs(
|
|
2523
2526
|
"div",
|
|
2524
2527
|
{
|
|
@@ -2530,8 +2533,8 @@ const Xt = ({
|
|
|
2530
2533
|
{
|
|
2531
2534
|
className: `flex items-center gap-2 text-[13px] font-medium ${R}`,
|
|
2532
2535
|
children: [
|
|
2533
|
-
|
|
2534
|
-
|
|
2536
|
+
_ && /* @__PURE__ */ e.jsx(
|
|
2537
|
+
_,
|
|
2535
2538
|
{
|
|
2536
2539
|
className: k ? "w-4 h-4 text-[var(--primary)]" : "w-4 h-4",
|
|
2537
2540
|
style: k ? void 0 : V
|
|
@@ -2543,8 +2546,8 @@ const Xt = ({
|
|
|
2543
2546
|
}
|
|
2544
2547
|
),
|
|
2545
2548
|
/* @__PURE__ */ e.jsxs("div", { className: "relative group", children: [
|
|
2546
|
-
|
|
2547
|
-
|
|
2549
|
+
j && /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 top-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ e.jsx(
|
|
2550
|
+
j,
|
|
2548
2551
|
{
|
|
2549
2552
|
className: k ? "w-4 h-4 text-zinc-500 group-focus-within:text-[var(--primary)]" : "w-4 h-4 text-zinc-500",
|
|
2550
2553
|
style: k ? void 0 : V
|
|
@@ -2569,7 +2572,7 @@ const Xt = ({
|
|
|
2569
2572
|
${y}
|
|
2570
2573
|
`,
|
|
2571
2574
|
children: [
|
|
2572
|
-
/* @__PURE__ */ e.jsx("span", { className: $ ? S.text : "text-zinc-500", children: $ ? $.label :
|
|
2575
|
+
/* @__PURE__ */ e.jsx("span", { className: $ ? S.text : "text-zinc-500", children: $ ? $.label : w }),
|
|
2573
2576
|
/* @__PURE__ */ e.jsx(
|
|
2574
2577
|
Se,
|
|
2575
2578
|
{
|
|
@@ -2623,22 +2626,22 @@ const Xt = ({
|
|
|
2623
2626
|
}
|
|
2624
2627
|
);
|
|
2625
2628
|
Bt.displayName = "Dropdown";
|
|
2626
|
-
const ar = ie((n,
|
|
2629
|
+
const ar = ie((n, t) => {
|
|
2627
2630
|
const {
|
|
2628
2631
|
label: s,
|
|
2629
|
-
name:
|
|
2632
|
+
name: r = "",
|
|
2630
2633
|
type: o = "text",
|
|
2631
2634
|
placeholder: l = "",
|
|
2632
2635
|
value: i,
|
|
2633
2636
|
defaultValue: d,
|
|
2634
|
-
onChange:
|
|
2637
|
+
onChange: w,
|
|
2635
2638
|
required: h,
|
|
2636
2639
|
disabled: g,
|
|
2637
2640
|
readOnly: c,
|
|
2638
2641
|
error: f,
|
|
2639
2642
|
success: N,
|
|
2640
|
-
helperText:
|
|
2641
|
-
icon:
|
|
2643
|
+
helperText: _,
|
|
2644
|
+
icon: j,
|
|
2642
2645
|
prefix: M,
|
|
2643
2646
|
prefixIcon: k,
|
|
2644
2647
|
suffixIcon: E,
|
|
@@ -2650,10 +2653,10 @@ const ar = ie((n, r) => {
|
|
|
2650
2653
|
primaryColor: x = "#3b82f6",
|
|
2651
2654
|
className: P = ""
|
|
2652
2655
|
} = n, O = K(null);
|
|
2653
|
-
|
|
2656
|
+
_e(t, () => O.current);
|
|
2654
2657
|
const [q, Y] = L(d || ""), [W, F] = L(!1), $ = !!k, u = !!M, S = $ || u, V = i !== void 0 ? i : q, G = (H) => {
|
|
2655
2658
|
const te = H.target.value;
|
|
2656
|
-
Y(te),
|
|
2659
|
+
Y(te), w?.(r, te);
|
|
2657
2660
|
}, Z = (H) => {
|
|
2658
2661
|
o === "number" && H.key === "-" && H.preventDefault();
|
|
2659
2662
|
}, a = () => S ? $ && u ? "pl-20 pr-4" : u ? "pl-14 pr-4" : $ ? "pl-10 pr-4" : "px-4" : "px-4", b = p ? {} : {
|
|
@@ -2662,8 +2665,8 @@ const ar = ie((n, r) => {
|
|
|
2662
2665
|
}, v = p ? {} : { color: x }, I = f ? "border-red-500" : N ? "border-emerald-500" : "border-zinc-300 dark:border-zinc-800";
|
|
2663
2666
|
return /* @__PURE__ */ e.jsxs("div", { className: `w-full space-y-1 ${P}`, children: [
|
|
2664
2667
|
s && /* @__PURE__ */ e.jsxs("label", { className: "flex items-center gap-2 text-[12px] font-medium text-gray-700 dark:text-zinc-100", children: [
|
|
2665
|
-
|
|
2666
|
-
|
|
2668
|
+
j && /* @__PURE__ */ e.jsx(
|
|
2669
|
+
j,
|
|
2667
2670
|
{
|
|
2668
2671
|
size: 16,
|
|
2669
2672
|
className: p ? "text-[var(--primary)]" : "",
|
|
@@ -2685,7 +2688,7 @@ const ar = ie((n, r) => {
|
|
|
2685
2688
|
"textarea",
|
|
2686
2689
|
{
|
|
2687
2690
|
ref: O,
|
|
2688
|
-
name:
|
|
2691
|
+
name: r,
|
|
2689
2692
|
value: V,
|
|
2690
2693
|
onChange: G,
|
|
2691
2694
|
placeholder: l,
|
|
@@ -2711,7 +2714,7 @@ const ar = ie((n, r) => {
|
|
|
2711
2714
|
{
|
|
2712
2715
|
ref: O,
|
|
2713
2716
|
type: o === "password" ? W ? "text" : "password" : o,
|
|
2714
|
-
name:
|
|
2717
|
+
name: r,
|
|
2715
2718
|
value: V,
|
|
2716
2719
|
onChange: G,
|
|
2717
2720
|
onKeyDown: Z,
|
|
@@ -2748,31 +2751,31 @@ const ar = ie((n, r) => {
|
|
|
2748
2751
|
),
|
|
2749
2752
|
E && o !== "password" && /* @__PURE__ */ e.jsx("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400", children: E })
|
|
2750
2753
|
] }),
|
|
2751
|
-
(
|
|
2754
|
+
(_ || f) && /* @__PURE__ */ e.jsx(
|
|
2752
2755
|
"p",
|
|
2753
2756
|
{
|
|
2754
2757
|
className: `text-xs ${f ? "text-red-500" : N ? "text-emerald-500" : "text-zinc-500"}`,
|
|
2755
|
-
children: f && typeof f == "string" ? f :
|
|
2758
|
+
children: f && typeof f == "string" ? f : _
|
|
2756
2759
|
}
|
|
2757
2760
|
)
|
|
2758
2761
|
] });
|
|
2759
2762
|
}), or = ({
|
|
2760
2763
|
src: n,
|
|
2761
|
-
alt:
|
|
2764
|
+
alt: t = "Image",
|
|
2762
2765
|
title: s,
|
|
2763
|
-
width:
|
|
2766
|
+
width: r = "w-full",
|
|
2764
2767
|
height: o = "h-auto",
|
|
2765
2768
|
rounded: l = "rounded-lg",
|
|
2766
2769
|
borderColor: i = "transparent",
|
|
2767
2770
|
borderWidth: d = "0",
|
|
2768
|
-
shadow:
|
|
2771
|
+
shadow: w = !1,
|
|
2769
2772
|
opacity: h = 1,
|
|
2770
2773
|
objectFit: g = "cover",
|
|
2771
2774
|
overlayText: c,
|
|
2772
2775
|
overlayColor: f = "rgba(0,0,0,0.5)",
|
|
2773
2776
|
svgIcon: N,
|
|
2774
|
-
responsive:
|
|
2775
|
-
p:
|
|
2777
|
+
responsive: _ = !1,
|
|
2778
|
+
p: j,
|
|
2776
2779
|
m: M,
|
|
2777
2780
|
hoverScale: k = 1.05,
|
|
2778
2781
|
hoverRotate: E = 0,
|
|
@@ -2788,15 +2791,15 @@ const ar = ie((n, r) => {
|
|
|
2788
2791
|
}) => {
|
|
2789
2792
|
const Y = de(() => [
|
|
2790
2793
|
"relative inline-block transition-all",
|
|
2791
|
-
|
|
2794
|
+
w ? "shadow-md" : "",
|
|
2792
2795
|
l,
|
|
2793
|
-
|
|
2796
|
+
j ?? "",
|
|
2794
2797
|
M ?? "",
|
|
2795
|
-
|
|
2798
|
+
_ ? "w-full h-auto" : "",
|
|
2796
2799
|
p
|
|
2797
|
-
].join(" "), [
|
|
2800
|
+
].join(" "), [w, l, j, M, _, p]), W = de(
|
|
2798
2801
|
() => ({
|
|
2799
|
-
width: typeof
|
|
2802
|
+
width: typeof r == "number" ? r : void 0,
|
|
2800
2803
|
height: typeof o == "number" ? o : void 0,
|
|
2801
2804
|
objectFit: g,
|
|
2802
2805
|
opacity: h,
|
|
@@ -2805,7 +2808,7 @@ const ar = ie((n, r) => {
|
|
|
2805
2808
|
transition: `all ${y} ease`,
|
|
2806
2809
|
...x
|
|
2807
2810
|
}),
|
|
2808
|
-
[
|
|
2811
|
+
[r, o, g, h, i, d, y, x]
|
|
2809
2812
|
), F = de(() => {
|
|
2810
2813
|
switch (m) {
|
|
2811
2814
|
case "x":
|
|
@@ -2824,8 +2827,8 @@ const ar = ie((n, r) => {
|
|
|
2824
2827
|
"div",
|
|
2825
2828
|
{
|
|
2826
2829
|
role: "img",
|
|
2827
|
-
"aria-label":
|
|
2828
|
-
title: s ||
|
|
2830
|
+
"aria-label": t,
|
|
2831
|
+
title: s || t,
|
|
2829
2832
|
onClick: P,
|
|
2830
2833
|
className: Y,
|
|
2831
2834
|
style: { position: "relative", cursor: P ? "pointer" : "default", ...F },
|
|
@@ -2834,8 +2837,8 @@ const ar = ie((n, r) => {
|
|
|
2834
2837
|
"img",
|
|
2835
2838
|
{
|
|
2836
2839
|
src: n,
|
|
2837
|
-
alt:
|
|
2838
|
-
title: s ||
|
|
2840
|
+
alt: t,
|
|
2841
|
+
title: s || t,
|
|
2839
2842
|
loading: "lazy",
|
|
2840
2843
|
style: W,
|
|
2841
2844
|
className: "block",
|
|
@@ -2858,14 +2861,14 @@ const ar = ie((n, r) => {
|
|
|
2858
2861
|
);
|
|
2859
2862
|
}, De = ({
|
|
2860
2863
|
text: n,
|
|
2861
|
-
icon:
|
|
2864
|
+
icon: t,
|
|
2862
2865
|
onClick: s,
|
|
2863
|
-
subItems:
|
|
2866
|
+
subItems: r,
|
|
2864
2867
|
isInline: o,
|
|
2865
2868
|
isOrdered: l,
|
|
2866
2869
|
primaryTheme: i = !0,
|
|
2867
2870
|
primaryColor: d = "#3b82f6",
|
|
2868
|
-
itemClassName:
|
|
2871
|
+
itemClassName: w,
|
|
2869
2872
|
bulletClassName: h
|
|
2870
2873
|
}) => {
|
|
2871
2874
|
const g = i ? {} : { color: d }, c = i ? {} : { backgroundColor: d };
|
|
@@ -2878,10 +2881,10 @@ const ar = ie((n, r) => {
|
|
|
2878
2881
|
className: C(
|
|
2879
2882
|
"flex items-center gap-2 text-sm text-zinc-800 dark:text-zinc-200 transition-all",
|
|
2880
2883
|
s && (i ? "cursor-pointer hover:text-[var(--primary)]" : "cursor-pointer"),
|
|
2881
|
-
|
|
2884
|
+
w
|
|
2882
2885
|
),
|
|
2883
2886
|
children: [
|
|
2884
|
-
|
|
2887
|
+
t ? /* @__PURE__ */ e.jsx("span", { className: "text-base", children: t }) : !o && !l && /* @__PURE__ */ e.jsx(
|
|
2885
2888
|
"span",
|
|
2886
2889
|
{
|
|
2887
2890
|
style: i ? void 0 : c,
|
|
@@ -2896,14 +2899,14 @@ const ar = ie((n, r) => {
|
|
|
2896
2899
|
]
|
|
2897
2900
|
}
|
|
2898
2901
|
),
|
|
2899
|
-
|
|
2902
|
+
r && r.length > 0 && /* @__PURE__ */ e.jsx(
|
|
2900
2903
|
"ul",
|
|
2901
2904
|
{
|
|
2902
2905
|
className: C(
|
|
2903
2906
|
"pl-5 mt-2 space-y-2",
|
|
2904
2907
|
l ? "list-decimal" : "list-none"
|
|
2905
2908
|
),
|
|
2906
|
-
children:
|
|
2909
|
+
children: r.map((f, N) => /* @__PURE__ */ e.jsx(
|
|
2907
2910
|
De,
|
|
2908
2911
|
{
|
|
2909
2912
|
...f,
|
|
@@ -2911,7 +2914,7 @@ const ar = ie((n, r) => {
|
|
|
2911
2914
|
isOrdered: l,
|
|
2912
2915
|
primaryTheme: i,
|
|
2913
2916
|
primaryColor: d,
|
|
2914
|
-
itemClassName:
|
|
2917
|
+
itemClassName: w,
|
|
2915
2918
|
bulletClassName: h
|
|
2916
2919
|
},
|
|
2917
2920
|
N
|
|
@@ -2921,17 +2924,17 @@ const ar = ie((n, r) => {
|
|
|
2921
2924
|
] });
|
|
2922
2925
|
}, lr = ({
|
|
2923
2926
|
title: n,
|
|
2924
|
-
titleIcon:
|
|
2927
|
+
titleIcon: t,
|
|
2925
2928
|
items: s,
|
|
2926
|
-
type:
|
|
2929
|
+
type: r = "unordered",
|
|
2927
2930
|
primaryTheme: o = !0,
|
|
2928
2931
|
primaryColor: l = "#3b82f6",
|
|
2929
2932
|
className: i,
|
|
2930
2933
|
itemClassName: d,
|
|
2931
|
-
titleClassName:
|
|
2934
|
+
titleClassName: w,
|
|
2932
2935
|
bulletClassName: h
|
|
2933
2936
|
}) => {
|
|
2934
|
-
const g =
|
|
2937
|
+
const g = r === "ordered", c = r === "inline", f = g ? "ol" : "ul";
|
|
2935
2938
|
return /* @__PURE__ */ e.jsxs(
|
|
2936
2939
|
"div",
|
|
2937
2940
|
{
|
|
@@ -2945,10 +2948,10 @@ const ar = ie((n, r) => {
|
|
|
2945
2948
|
{
|
|
2946
2949
|
className: C(
|
|
2947
2950
|
"flex items-center gap-2 mb-3 text-base font-semibold text-zinc-900 dark:text-white",
|
|
2948
|
-
|
|
2951
|
+
w
|
|
2949
2952
|
),
|
|
2950
2953
|
children: [
|
|
2951
|
-
|
|
2954
|
+
t && /* @__PURE__ */ e.jsx("span", { children: t }),
|
|
2952
2955
|
/* @__PURE__ */ e.jsx("span", { children: n })
|
|
2953
2956
|
]
|
|
2954
2957
|
}
|
|
@@ -2959,7 +2962,7 @@ const ar = ie((n, r) => {
|
|
|
2959
2962
|
className: C(
|
|
2960
2963
|
c ? "flex flex-wrap gap-4" : g ? "list-decimal pl-5 space-y-2" : "list-none p-0"
|
|
2961
2964
|
),
|
|
2962
|
-
children: s.map((N,
|
|
2965
|
+
children: s.map((N, _) => /* @__PURE__ */ e.jsx(
|
|
2963
2966
|
De,
|
|
2964
2967
|
{
|
|
2965
2968
|
...N,
|
|
@@ -2970,7 +2973,7 @@ const ar = ie((n, r) => {
|
|
|
2970
2973
|
itemClassName: d,
|
|
2971
2974
|
bulletClassName: h
|
|
2972
2975
|
},
|
|
2973
|
-
|
|
2976
|
+
_
|
|
2974
2977
|
))
|
|
2975
2978
|
}
|
|
2976
2979
|
)
|
|
@@ -2979,14 +2982,14 @@ const ar = ie((n, r) => {
|
|
|
2979
2982
|
);
|
|
2980
2983
|
}, ir = ({
|
|
2981
2984
|
isOpen: n,
|
|
2982
|
-
onClose:
|
|
2985
|
+
onClose: t,
|
|
2983
2986
|
children: s,
|
|
2984
|
-
title:
|
|
2987
|
+
title: r,
|
|
2985
2988
|
icon: o,
|
|
2986
2989
|
ariaLabel: l,
|
|
2987
2990
|
className: i,
|
|
2988
2991
|
overlayClassName: d,
|
|
2989
|
-
contentClassName:
|
|
2992
|
+
contentClassName: w,
|
|
2990
2993
|
closeButtonClassName: h,
|
|
2991
2994
|
disableOverlayClose: g = !1,
|
|
2992
2995
|
darkMode: c = !1,
|
|
@@ -2994,34 +2997,34 @@ const ar = ie((n, r) => {
|
|
|
2994
2997
|
}) => {
|
|
2995
2998
|
const N = K(null);
|
|
2996
2999
|
X(() => {
|
|
2997
|
-
const
|
|
2998
|
-
M.key === "Escape" &&
|
|
3000
|
+
const j = (M) => {
|
|
3001
|
+
M.key === "Escape" && t();
|
|
2999
3002
|
};
|
|
3000
|
-
return n && document.addEventListener("keydown",
|
|
3001
|
-
}, [n,
|
|
3003
|
+
return n && document.addEventListener("keydown", j), () => document.removeEventListener("keydown", j);
|
|
3004
|
+
}, [n, t]), X(() => {
|
|
3002
3005
|
if (n) {
|
|
3003
|
-
const
|
|
3006
|
+
const j = document.body.style.overflow;
|
|
3004
3007
|
return document.body.style.overflow = "hidden", () => {
|
|
3005
|
-
document.body.style.overflow =
|
|
3008
|
+
document.body.style.overflow = j;
|
|
3006
3009
|
};
|
|
3007
3010
|
}
|
|
3008
3011
|
}, [n]);
|
|
3009
|
-
const
|
|
3010
|
-
g ||
|
|
3011
|
-
}, [g,
|
|
3012
|
+
const _ = he(() => {
|
|
3013
|
+
g || t();
|
|
3014
|
+
}, [g, t]);
|
|
3012
3015
|
return n ? /* @__PURE__ */ e.jsx(
|
|
3013
3016
|
"div",
|
|
3014
3017
|
{
|
|
3015
3018
|
role: "dialog",
|
|
3016
3019
|
"aria-modal": "true",
|
|
3017
|
-
"aria-label": l ||
|
|
3020
|
+
"aria-label": l || r || "Modal",
|
|
3018
3021
|
className: C(
|
|
3019
3022
|
"fixed inset-0 flex items-center justify-center z-50 transition-opacity",
|
|
3020
3023
|
c ? "bg-black/80" : "bg-black/60",
|
|
3021
3024
|
d
|
|
3022
3025
|
),
|
|
3023
3026
|
style: { transitionDuration: `${f}ms` },
|
|
3024
|
-
onClick:
|
|
3027
|
+
onClick: _,
|
|
3025
3028
|
children: /* @__PURE__ */ e.jsxs(
|
|
3026
3029
|
"div",
|
|
3027
3030
|
{
|
|
@@ -3030,15 +3033,15 @@ const ar = ie((n, r) => {
|
|
|
3030
3033
|
"relative w-[90vw] max-w-2xl max-h-[90vh] overflow-y-auto p-6 rounded-lg shadow-lg transition-transform",
|
|
3031
3034
|
c ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
|
|
3032
3035
|
"scale-100",
|
|
3033
|
-
|
|
3036
|
+
w
|
|
3034
3037
|
),
|
|
3035
3038
|
style: { transitionDuration: `${f}ms` },
|
|
3036
|
-
onClick: (
|
|
3039
|
+
onClick: (j) => j.stopPropagation(),
|
|
3037
3040
|
children: [
|
|
3038
3041
|
/* @__PURE__ */ e.jsx(
|
|
3039
3042
|
"button",
|
|
3040
3043
|
{
|
|
3041
|
-
onClick:
|
|
3044
|
+
onClick: t,
|
|
3042
3045
|
"aria-label": "Close modal",
|
|
3043
3046
|
className: C(
|
|
3044
3047
|
"absolute top-4 right-4 p-1 rounded-full hover:scale-110 transition-transform",
|
|
@@ -3048,9 +3051,9 @@ const ar = ie((n, r) => {
|
|
|
3048
3051
|
children: /* @__PURE__ */ e.jsx(ve, { size: 24 })
|
|
3049
3052
|
}
|
|
3050
3053
|
),
|
|
3051
|
-
|
|
3054
|
+
r && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
3052
3055
|
o && /* @__PURE__ */ e.jsx("span", { className: "flex-shrink-0", children: o }),
|
|
3053
|
-
/* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold", children:
|
|
3056
|
+
/* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold", children: r })
|
|
3054
3057
|
] }),
|
|
3055
3058
|
s
|
|
3056
3059
|
]
|
|
@@ -3058,13 +3061,13 @@ const ar = ie((n, r) => {
|
|
|
3058
3061
|
)
|
|
3059
3062
|
}
|
|
3060
3063
|
) : null;
|
|
3061
|
-
}, cr = ({ children: n, style:
|
|
3064
|
+
}, cr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
|
|
3062
3065
|
"div",
|
|
3063
3066
|
{
|
|
3064
3067
|
className: C("overflow-x-auto rounded-lg shadow-sm border border-gray-200", s),
|
|
3065
3068
|
style: {
|
|
3066
3069
|
background: "#ffffff",
|
|
3067
|
-
...
|
|
3070
|
+
...t
|
|
3068
3071
|
},
|
|
3069
3072
|
children: /* @__PURE__ */ e.jsx(
|
|
3070
3073
|
"table",
|
|
@@ -3081,22 +3084,22 @@ const ar = ie((n, r) => {
|
|
|
3081
3084
|
}
|
|
3082
3085
|
), dr = ({
|
|
3083
3086
|
children: n,
|
|
3084
|
-
style:
|
|
3087
|
+
style: t,
|
|
3085
3088
|
className: s
|
|
3086
3089
|
}) => /* @__PURE__ */ e.jsx(
|
|
3087
3090
|
"thead",
|
|
3088
3091
|
{
|
|
3089
3092
|
className: C("bg-gray-100 text-gray-900 font-semibold", s),
|
|
3090
3093
|
style: {
|
|
3091
|
-
...
|
|
3094
|
+
...t
|
|
3092
3095
|
},
|
|
3093
3096
|
children: n
|
|
3094
3097
|
}
|
|
3095
|
-
), ur = ({ children: n, style:
|
|
3098
|
+
), ur = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx("tbody", { className: C("bg-white", s), style: { ...t }, children: n }), fr = ({
|
|
3096
3099
|
children: n,
|
|
3097
|
-
style:
|
|
3100
|
+
style: t,
|
|
3098
3101
|
className: s,
|
|
3099
|
-
onClick:
|
|
3102
|
+
onClick: r,
|
|
3100
3103
|
hoverBgColor: o = "#f9fafb",
|
|
3101
3104
|
darkMode: l = !1
|
|
3102
3105
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -3104,11 +3107,11 @@ const ar = ie((n, r) => {
|
|
|
3104
3107
|
{
|
|
3105
3108
|
className: C(
|
|
3106
3109
|
"transition-colors duration-200 cursor-default",
|
|
3107
|
-
|
|
3110
|
+
r ? "hover:cursor-pointer" : "",
|
|
3108
3111
|
s
|
|
3109
3112
|
),
|
|
3110
|
-
style: { borderBottom: "1px solid #e5e7eb", ...
|
|
3111
|
-
onClick:
|
|
3113
|
+
style: { borderBottom: "1px solid #e5e7eb", ...t },
|
|
3114
|
+
onClick: r,
|
|
3112
3115
|
onMouseEnter: (i) => {
|
|
3113
3116
|
l ? i.currentTarget.style.backgroundColor = "#1f2937" : i.currentTarget.style.backgroundColor = o;
|
|
3114
3117
|
},
|
|
@@ -3117,37 +3120,37 @@ const ar = ie((n, r) => {
|
|
|
3117
3120
|
},
|
|
3118
3121
|
children: n
|
|
3119
3122
|
}
|
|
3120
|
-
), xr = ({ children: n, style:
|
|
3123
|
+
), xr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
|
|
3121
3124
|
"th",
|
|
3122
3125
|
{
|
|
3123
3126
|
className: C("text-left px-4 py-3 text-sm text-gray-700 border-b-2 border-gray-200", s),
|
|
3124
|
-
style: { ...
|
|
3127
|
+
style: { ...t },
|
|
3125
3128
|
children: n
|
|
3126
3129
|
}
|
|
3127
|
-
), pr = ({ children: n, style:
|
|
3130
|
+
), pr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
|
|
3128
3131
|
"td",
|
|
3129
3132
|
{
|
|
3130
3133
|
className: C("px-4 py-3 text-sm text-gray-600", s),
|
|
3131
|
-
style: { ...
|
|
3134
|
+
style: { ...t },
|
|
3132
3135
|
children: n
|
|
3133
3136
|
}
|
|
3134
3137
|
), hr = ({
|
|
3135
3138
|
tabs: n,
|
|
3136
|
-
defaultActive:
|
|
3139
|
+
defaultActive: t = 0,
|
|
3137
3140
|
position: s = "top",
|
|
3138
|
-
variant:
|
|
3141
|
+
variant: r = "solid",
|
|
3139
3142
|
fullWidth: o = !1,
|
|
3140
3143
|
gap: l = 8,
|
|
3141
3144
|
radius: i = 8,
|
|
3142
3145
|
padding: d = "12px 18px",
|
|
3143
|
-
transitionDuration:
|
|
3146
|
+
transitionDuration: w = 200,
|
|
3144
3147
|
elevation: h = 1,
|
|
3145
3148
|
bordered: g = !1,
|
|
3146
3149
|
primaryColor: c = "#2563eb",
|
|
3147
3150
|
backgroundColor: f = "transparent",
|
|
3148
3151
|
textColor: N = "#374151",
|
|
3149
|
-
hoverColor:
|
|
3150
|
-
activeColor:
|
|
3152
|
+
hoverColor: _ = "#1d4ed8",
|
|
3153
|
+
activeColor: j = "#ffffff",
|
|
3151
3154
|
borderColor: M = "#e5e7eb",
|
|
3152
3155
|
disabledColor: k = "#9ca3af",
|
|
3153
3156
|
responsiveBreakpoint: E = 768,
|
|
@@ -3162,7 +3165,7 @@ const ar = ie((n, r) => {
|
|
|
3162
3165
|
inactiveTabStyle: q,
|
|
3163
3166
|
contentStyle: Y
|
|
3164
3167
|
}) => {
|
|
3165
|
-
const [W, F] = L(
|
|
3168
|
+
const [W, F] = L(t), [$, u] = L(null), [S, V] = L(!1), [G, Z] = L(!1), a = K(null);
|
|
3166
3169
|
X(() => {
|
|
3167
3170
|
const T = () => V(window.innerWidth <= E);
|
|
3168
3171
|
return T(), window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
|
|
@@ -3180,26 +3183,26 @@ const ar = ie((n, r) => {
|
|
|
3180
3183
|
gap: 8,
|
|
3181
3184
|
justifyContent: "center",
|
|
3182
3185
|
fontWeight: 500,
|
|
3183
|
-
transition: `all ${
|
|
3186
|
+
transition: `all ${w}ms ease`,
|
|
3184
3187
|
background: "transparent",
|
|
3185
|
-
border:
|
|
3186
|
-
borderBottom:
|
|
3188
|
+
border: r === "outline" ? `1px solid ${M}` : "none",
|
|
3189
|
+
borderBottom: r === "underline" ? "2px solid transparent" : void 0,
|
|
3187
3190
|
color: N,
|
|
3188
3191
|
width: o ? "100%" : "auto",
|
|
3189
3192
|
userSelect: "none"
|
|
3190
3193
|
}, H = {
|
|
3191
|
-
background:
|
|
3192
|
-
color:
|
|
3193
|
-
borderBottom:
|
|
3194
|
+
background: r === "solid" ? c : "transparent",
|
|
3195
|
+
color: j,
|
|
3196
|
+
borderBottom: r === "underline" ? `2px solid ${c}` : void 0,
|
|
3194
3197
|
boxShadow: h > 0 ? `0 ${h}px ${h * 4}px ${c}33` : void 0,
|
|
3195
3198
|
...O
|
|
3196
3199
|
}, te = {
|
|
3197
|
-
...
|
|
3198
|
-
...
|
|
3200
|
+
...r === "outline" ? { borderColor: M } : {},
|
|
3201
|
+
...r === "underline" ? { borderBottomColor: "transparent" } : {},
|
|
3199
3202
|
...q
|
|
3200
3203
|
}, B = {
|
|
3201
|
-
color:
|
|
3202
|
-
background:
|
|
3204
|
+
color: _,
|
|
3205
|
+
background: r === "solid" ? `${c}11` : r === "outline" ? `${c}11` : "transparent"
|
|
3203
3206
|
}, Q = {
|
|
3204
3207
|
color: k,
|
|
3205
3208
|
cursor: "not-allowed",
|
|
@@ -3211,7 +3214,7 @@ const ar = ie((n, r) => {
|
|
|
3211
3214
|
borderRight: g && s === "right" ? `1px solid ${M}` : void 0,
|
|
3212
3215
|
borderRadius: i,
|
|
3213
3216
|
...Y
|
|
3214
|
-
},
|
|
3217
|
+
}, z = s === "left" || s === "right";
|
|
3215
3218
|
return /* @__PURE__ */ e.jsxs(
|
|
3216
3219
|
"div",
|
|
3217
3220
|
{
|
|
@@ -3219,7 +3222,7 @@ const ar = ie((n, r) => {
|
|
|
3219
3222
|
className: `modern-tabs ${m}`,
|
|
3220
3223
|
style: {
|
|
3221
3224
|
display: "flex",
|
|
3222
|
-
flexDirection:
|
|
3225
|
+
flexDirection: z ? s === "right" ? "row-reverse" : "row" : "column",
|
|
3223
3226
|
background: f,
|
|
3224
3227
|
border: g ? `1px solid ${M}` : void 0,
|
|
3225
3228
|
borderRadius: i,
|
|
@@ -3233,7 +3236,7 @@ const ar = ie((n, r) => {
|
|
|
3233
3236
|
to { opacity: 1; transform: translateY(0); }
|
|
3234
3237
|
}
|
|
3235
3238
|
.modern-tabs__content {
|
|
3236
|
-
animation: tab-fade ${
|
|
3239
|
+
animation: tab-fade ${w}ms ease;
|
|
3237
3240
|
}
|
|
3238
3241
|
` }),
|
|
3239
3242
|
S ? /* @__PURE__ */ e.jsxs("div", { style: { width: "100%", padding: 8 }, children: [
|
|
@@ -3284,10 +3287,10 @@ const ar = ie((n, r) => {
|
|
|
3284
3287
|
{
|
|
3285
3288
|
style: {
|
|
3286
3289
|
display: "flex",
|
|
3287
|
-
flexDirection:
|
|
3290
|
+
flexDirection: z ? "column" : "row",
|
|
3288
3291
|
gap: l,
|
|
3289
3292
|
padding: 8,
|
|
3290
|
-
minWidth:
|
|
3293
|
+
minWidth: z ? 200 : void 0
|
|
3291
3294
|
},
|
|
3292
3295
|
children: n.map((T, D) => {
|
|
3293
3296
|
const ee = D === W, re = $ === D, se = T.disabled;
|
|
@@ -3340,14 +3343,14 @@ const ar = ie((n, r) => {
|
|
|
3340
3343
|
};
|
|
3341
3344
|
function mr({
|
|
3342
3345
|
as: n,
|
|
3343
|
-
children:
|
|
3346
|
+
children: t,
|
|
3344
3347
|
size: s = "md",
|
|
3345
|
-
weight:
|
|
3348
|
+
weight: r = 400,
|
|
3346
3349
|
align: o = "left",
|
|
3347
3350
|
truncate: l = !1,
|
|
3348
3351
|
className: i,
|
|
3349
3352
|
style: d,
|
|
3350
|
-
...
|
|
3353
|
+
...w
|
|
3351
3354
|
}) {
|
|
3352
3355
|
const h = n || "p";
|
|
3353
3356
|
return Re.createElement(
|
|
@@ -3361,13 +3364,13 @@ function mr({
|
|
|
3361
3364
|
i
|
|
3362
3365
|
),
|
|
3363
3366
|
style: {
|
|
3364
|
-
fontWeight:
|
|
3367
|
+
fontWeight: r,
|
|
3365
3368
|
textAlign: o,
|
|
3366
3369
|
...d
|
|
3367
3370
|
},
|
|
3368
|
-
...
|
|
3371
|
+
...w
|
|
3369
3372
|
},
|
|
3370
|
-
|
|
3373
|
+
t
|
|
3371
3374
|
);
|
|
3372
3375
|
}
|
|
3373
3376
|
export {
|