@turystack/ui 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +892 -875
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import * as st from "react";
|
|
2
|
-
import Ct, { createContext as St, useContext as ht, useState as
|
|
2
|
+
import Ct, { createContext as St, useContext as ht, useState as E, forwardRef as J, useId as Lt, useLayoutEffect as ye, useRef as wt, useEffect as ct, useCallback as Et, createElement as Ce, useMemo as xt } from "react";
|
|
3
3
|
import * as kt from "@radix-ui/react-accordion";
|
|
4
|
-
import { ChevronDown as ot, X as
|
|
5
|
-
import { createTV as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { extendTailwindMerge as
|
|
4
|
+
import { ChevronDown as ot, X as ut, Loader2 as Rt, ChevronRight as Ot, MoreHorizontal as as, Check as Kt, ChevronLeftIcon as ns, ChevronRightIcon as rs, ChevronDownIcon as ls, CalendarIcon as we, Circle as Xt, Info as Qt, PanelLeftOpen as is, PanelLeftClose as cs, Minus as ke, Plus as Se, MinusIcon as ds, ChevronLeft as de, Search as Re, TriangleAlert as us, CircleCheck as ms, LoaderCircle as fs, OctagonX as gs, ArrowUpDown as ps, ArrowUp as xs, ArrowDown as hs, Upload as bs } from "lucide-react";
|
|
5
|
+
import { createTV as vs, tv as k } from "tailwind-variants";
|
|
6
|
+
import { clsx as js } from "clsx";
|
|
7
|
+
import { extendTailwindMerge as Ns } from "tailwind-merge";
|
|
8
8
|
import * as Ht from "@radix-ui/react-avatar";
|
|
9
|
-
import { Slot as
|
|
10
|
-
import * as
|
|
9
|
+
import { Slot as te } from "@radix-ui/react-slot";
|
|
10
|
+
import * as ue from "@radix-ui/react-checkbox";
|
|
11
11
|
import * as lt from "@radix-ui/react-alert-dialog";
|
|
12
12
|
import * as V from "@radix-ui/react-dropdown-menu";
|
|
13
13
|
import * as G from "@radix-ui/react-popover";
|
|
14
14
|
import { format as _t } from "date-fns";
|
|
15
|
-
import { getDefaultClassNames as
|
|
16
|
-
import { IMaskInput as
|
|
17
|
-
import * as
|
|
15
|
+
import { getDefaultClassNames as ys, DayPicker as Cs } from "react-day-picker";
|
|
16
|
+
import { IMaskInput as ws } from "react-imask";
|
|
17
|
+
import * as ks from "@radix-ui/react-label";
|
|
18
18
|
import * as et from "@radix-ui/react-tooltip";
|
|
19
19
|
import * as Y from "@radix-ui/react-dialog";
|
|
20
|
-
import { OTPInput as
|
|
21
|
-
import * as
|
|
22
|
-
import { Toaster as
|
|
23
|
-
import { toast as
|
|
24
|
-
import * as
|
|
20
|
+
import { OTPInput as Ss, OTPInputContext as Rs } from "input-otp";
|
|
21
|
+
import * as me from "@radix-ui/react-progress";
|
|
22
|
+
import { Toaster as Ts } from "sonner";
|
|
23
|
+
import { toast as qr } from "sonner";
|
|
24
|
+
import * as gt from "@radix-ui/react-radio-group";
|
|
25
25
|
import { Command as q } from "cmdk";
|
|
26
26
|
import * as zs from "@radix-ui/react-separator";
|
|
27
27
|
import * as at from "@radix-ui/react-slider";
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
34
|
-
|
|
28
|
+
import * as fe from "@radix-ui/react-switch";
|
|
29
|
+
import * as $t from "@radix-ui/react-tabs";
|
|
30
|
+
var zt = { exports: {} }, jt = {};
|
|
31
|
+
var ge;
|
|
32
|
+
function Ps() {
|
|
33
|
+
if (ge) return jt;
|
|
34
|
+
ge = 1;
|
|
35
35
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
36
36
|
function o(a, n, r) {
|
|
37
37
|
var i = null;
|
|
@@ -51,9 +51,9 @@ function Ts() {
|
|
|
51
51
|
return jt.Fragment = s, jt.jsx = o, jt.jsxs = o, jt;
|
|
52
52
|
}
|
|
53
53
|
var Nt = {};
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return
|
|
54
|
+
var pe;
|
|
55
|
+
function Is() {
|
|
56
|
+
return pe || (pe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
57
57
|
function e(u) {
|
|
58
58
|
if (u == null) return null;
|
|
59
59
|
if (typeof u == "function")
|
|
@@ -68,7 +68,7 @@ function Ps() {
|
|
|
68
68
|
return "StrictMode";
|
|
69
69
|
case C:
|
|
70
70
|
return "Suspense";
|
|
71
|
-
case
|
|
71
|
+
case L:
|
|
72
72
|
return "SuspenseList";
|
|
73
73
|
case I:
|
|
74
74
|
return "Activity";
|
|
@@ -79,19 +79,19 @@ function Ps() {
|
|
|
79
79
|
), u.$$typeof) {
|
|
80
80
|
case v:
|
|
81
81
|
return "Portal";
|
|
82
|
-
case
|
|
82
|
+
case O:
|
|
83
83
|
return u.displayName || "Context";
|
|
84
84
|
case R:
|
|
85
85
|
return (u._context.displayName || "Context") + ".Consumer";
|
|
86
86
|
case P:
|
|
87
|
-
var
|
|
88
|
-
return u = u.displayName, u || (u =
|
|
89
|
-
case
|
|
90
|
-
return
|
|
87
|
+
var T = u.render;
|
|
88
|
+
return u = u.displayName, u || (u = T.displayName || T.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
|
|
89
|
+
case z:
|
|
90
|
+
return T = u.displayName || null, T !== null ? T : e(u.type) || "Memo";
|
|
91
91
|
case w:
|
|
92
|
-
|
|
92
|
+
T = u._payload, u = u._init;
|
|
93
93
|
try {
|
|
94
|
-
return e(u(
|
|
94
|
+
return e(u(T));
|
|
95
95
|
} catch {
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -103,15 +103,15 @@ function Ps() {
|
|
|
103
103
|
function o(u) {
|
|
104
104
|
try {
|
|
105
105
|
s(u);
|
|
106
|
-
var
|
|
106
|
+
var T = !1;
|
|
107
107
|
} catch {
|
|
108
|
-
|
|
108
|
+
T = !0;
|
|
109
109
|
}
|
|
110
|
-
if (
|
|
111
|
-
|
|
112
|
-
var
|
|
113
|
-
return
|
|
114
|
-
|
|
110
|
+
if (T) {
|
|
111
|
+
T = console;
|
|
112
|
+
var $ = T.error, _ = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
|
|
113
|
+
return $.call(
|
|
114
|
+
T,
|
|
115
115
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
116
116
|
_
|
|
117
117
|
), s(u);
|
|
@@ -122,8 +122,8 @@ function Ps() {
|
|
|
122
122
|
if (typeof u == "object" && u !== null && u.$$typeof === w)
|
|
123
123
|
return "<...>";
|
|
124
124
|
try {
|
|
125
|
-
var
|
|
126
|
-
return
|
|
125
|
+
var T = e(u);
|
|
126
|
+
return T ? "<" + T + ">" : "<...>";
|
|
127
127
|
} catch {
|
|
128
128
|
return "<...>";
|
|
129
129
|
}
|
|
@@ -137,20 +137,20 @@ function Ps() {
|
|
|
137
137
|
}
|
|
138
138
|
function i(u) {
|
|
139
139
|
if (S.call(u, "key")) {
|
|
140
|
-
var
|
|
141
|
-
if (
|
|
140
|
+
var T = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
141
|
+
if (T && T.isReactWarning) return !1;
|
|
142
142
|
}
|
|
143
143
|
return u.key !== void 0;
|
|
144
144
|
}
|
|
145
|
-
function d(u,
|
|
146
|
-
function
|
|
145
|
+
function d(u, T) {
|
|
146
|
+
function $() {
|
|
147
147
|
U || (U = !0, console.error(
|
|
148
148
|
"%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)",
|
|
149
|
-
|
|
149
|
+
T
|
|
150
150
|
));
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
get:
|
|
152
|
+
$.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
153
|
+
get: $,
|
|
154
154
|
configurable: !0
|
|
155
155
|
});
|
|
156
156
|
}
|
|
@@ -160,13 +160,13 @@ function Ps() {
|
|
|
160
160
|
"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."
|
|
161
161
|
)), u = this.props.ref, u !== void 0 ? u : null;
|
|
162
162
|
}
|
|
163
|
-
function m(u,
|
|
164
|
-
var B =
|
|
163
|
+
function m(u, T, $, _, H, K) {
|
|
164
|
+
var B = $.ref;
|
|
165
165
|
return u = {
|
|
166
166
|
$$typeof: j,
|
|
167
167
|
type: u,
|
|
168
|
-
key:
|
|
169
|
-
props:
|
|
168
|
+
key: T,
|
|
169
|
+
props: $,
|
|
170
170
|
_owner: _
|
|
171
171
|
}, (B !== void 0 ? B : null) !== null ? Object.defineProperty(u, "ref", {
|
|
172
172
|
enumerable: !1,
|
|
@@ -193,8 +193,8 @@ function Ps() {
|
|
|
193
193
|
value: K
|
|
194
194
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
195
195
|
}
|
|
196
|
-
function f(u,
|
|
197
|
-
var B =
|
|
196
|
+
function f(u, T, $, _, H, K) {
|
|
197
|
+
var B = T.children;
|
|
198
198
|
if (B !== void 0)
|
|
199
199
|
if (_)
|
|
200
200
|
if (D(B)) {
|
|
@@ -206,10 +206,10 @@ function Ps() {
|
|
|
206
206
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
207
207
|
);
|
|
208
208
|
else g(B);
|
|
209
|
-
if (S.call(
|
|
209
|
+
if (S.call(T, "key")) {
|
|
210
210
|
B = e(u);
|
|
211
|
-
var rt = Object.keys(
|
|
212
|
-
return
|
|
211
|
+
var rt = Object.keys(T).filter(function(os) {
|
|
212
|
+
return os !== "key";
|
|
213
213
|
});
|
|
214
214
|
_ = 0 < rt.length ? "{key: someKey, " + rt.join(": ..., ") + ": ...}" : "{key: someKey}", tt[B + _] || (rt = 0 < rt.length ? "{" + rt.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
215
215
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -224,18 +224,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
B
|
|
225
225
|
), tt[B + _] = !0);
|
|
226
226
|
}
|
|
227
|
-
if (B = null,
|
|
228
|
-
|
|
229
|
-
for (var Bt in
|
|
230
|
-
Bt !== "key" && (
|
|
231
|
-
} else
|
|
227
|
+
if (B = null, $ !== void 0 && (o($), B = "" + $), i(T) && (o(T.key), B = "" + T.key), "key" in T) {
|
|
228
|
+
$ = {};
|
|
229
|
+
for (var Bt in T)
|
|
230
|
+
Bt !== "key" && ($[Bt] = T[Bt]);
|
|
231
|
+
} else $ = T;
|
|
232
232
|
return B && d(
|
|
233
|
-
|
|
233
|
+
$,
|
|
234
234
|
typeof u == "function" ? u.displayName || u.name || "Unknown" : u
|
|
235
235
|
), m(
|
|
236
236
|
u,
|
|
237
237
|
B,
|
|
238
|
-
|
|
238
|
+
$,
|
|
239
239
|
n(),
|
|
240
240
|
H,
|
|
241
241
|
K
|
|
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
function b(u) {
|
|
248
248
|
return typeof u == "object" && u !== null && u.$$typeof === j;
|
|
249
249
|
}
|
|
250
|
-
var h = Ct, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"),
|
|
250
|
+
var h = Ct, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), N = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), L = /* @__PURE__ */ Symbol.for("react.suspense_list"), z = /* @__PURE__ */ Symbol.for("react.memo"), w = /* @__PURE__ */ Symbol.for("react.lazy"), I = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, D = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
251
251
|
return null;
|
|
252
252
|
};
|
|
253
253
|
h = {
|
|
@@ -259,22 +259,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
h,
|
|
260
260
|
r
|
|
261
261
|
)(), Q = M(a(r)), tt = {};
|
|
262
|
-
Nt.Fragment = p, Nt.jsx = function(u,
|
|
262
|
+
Nt.Fragment = p, Nt.jsx = function(u, T, $) {
|
|
263
263
|
var _ = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
264
264
|
return f(
|
|
265
265
|
u,
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
T,
|
|
267
|
+
$,
|
|
268
268
|
!1,
|
|
269
269
|
_ ? Error("react-stack-top-frame") : Z,
|
|
270
270
|
_ ? M(a(u)) : Q
|
|
271
271
|
);
|
|
272
|
-
}, Nt.jsxs = function(u,
|
|
272
|
+
}, Nt.jsxs = function(u, T, $) {
|
|
273
273
|
var _ = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
274
274
|
return f(
|
|
275
275
|
u,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
T,
|
|
277
|
+
$,
|
|
278
278
|
!0,
|
|
279
279
|
_ ? Error("react-stack-top-frame") : Z,
|
|
280
280
|
_ ? M(a(u)) : Q
|
|
@@ -282,28 +282,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
282
|
};
|
|
283
283
|
})()), Nt;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
return
|
|
285
|
+
var xe;
|
|
286
|
+
function _s() {
|
|
287
|
+
return xe || (xe = 1, process.env.NODE_ENV === "production" ? zt.exports = Ps() : zt.exports = Is()), zt.exports;
|
|
288
288
|
}
|
|
289
|
-
var t =
|
|
290
|
-
const
|
|
289
|
+
var t = _s();
|
|
290
|
+
const Te = St(
|
|
291
291
|
void 0
|
|
292
292
|
);
|
|
293
293
|
function x() {
|
|
294
|
-
const e = ht(
|
|
294
|
+
const e = ht(Te);
|
|
295
295
|
return {
|
|
296
296
|
components: e?.components,
|
|
297
297
|
translations: e?.translations
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const Es = Ns({
|
|
301
301
|
prefix: "t"
|
|
302
302
|
});
|
|
303
303
|
function l(...e) {
|
|
304
|
-
return
|
|
304
|
+
return Es(js(e));
|
|
305
305
|
}
|
|
306
|
-
const ze =
|
|
306
|
+
const ze = vs({
|
|
307
307
|
twMergeConfig: {
|
|
308
308
|
prefix: "t"
|
|
309
309
|
}
|
|
@@ -318,7 +318,7 @@ const ze = bs({
|
|
|
318
318
|
trigger: "t:flex t:flex-1 t:cursor-pointer t:items-center t:justify-between t:py-4 t:font-medium t:transition-all hover:t:underline [&[data-state=open]>svg]:t:rotate-180"
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
|
-
function
|
|
321
|
+
function Os({
|
|
322
322
|
children: e,
|
|
323
323
|
onChange: s,
|
|
324
324
|
...o
|
|
@@ -337,7 +337,7 @@ function Es({
|
|
|
337
337
|
}
|
|
338
338
|
);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Ls({ value: e, disabled: s, children: o }) {
|
|
341
341
|
const n = x()?.components?.accordion?.item, r = {
|
|
342
342
|
...n?.defaultProps,
|
|
343
343
|
disabled: s,
|
|
@@ -371,7 +371,7 @@ function $s({ children: e }) {
|
|
|
371
371
|
}
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function As({ children: e }) {
|
|
375
375
|
const o = x()?.components?.accordion?.content, { content: a, contentInner: n } = At();
|
|
376
376
|
return /* @__PURE__ */ t.jsx(
|
|
377
377
|
kt.Content,
|
|
@@ -381,11 +381,11 @@ function Ls({ children: e }) {
|
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
Content:
|
|
386
|
-
Item:
|
|
384
|
+
const nr = Object.assign(Os, {
|
|
385
|
+
Content: As,
|
|
386
|
+
Item: Ls,
|
|
387
387
|
Trigger: $s
|
|
388
|
-
}),
|
|
388
|
+
}), Pe = St({
|
|
389
389
|
variant: "default"
|
|
390
390
|
}), bt = k({
|
|
391
391
|
defaultVariants: {
|
|
@@ -465,13 +465,13 @@ const ar = Object.assign(Es, {
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
|
-
function
|
|
468
|
+
function Ms({
|
|
469
469
|
variant: e,
|
|
470
470
|
closable: s,
|
|
471
471
|
onClose: o,
|
|
472
472
|
children: a
|
|
473
473
|
}) {
|
|
474
|
-
const n = x(), r = n?.components?.alert?.default, i = n?.translations?.alert, d = e ?? r?.defaultProps?.variant ?? "default", [c, m] =
|
|
474
|
+
const n = x(), r = n?.components?.alert?.default, i = n?.translations?.alert, d = e ?? r?.defaultProps?.variant ?? "default", [c, m] = E(!0), [f, g] = E(!1), { root: b, close: h } = bt({
|
|
475
475
|
variant: d
|
|
476
476
|
});
|
|
477
477
|
function j() {
|
|
@@ -481,7 +481,7 @@ function As({
|
|
|
481
481
|
f && (m(!1), o?.());
|
|
482
482
|
}
|
|
483
483
|
return c ? /* @__PURE__ */ t.jsx(
|
|
484
|
-
|
|
484
|
+
Pe.Provider,
|
|
485
485
|
{
|
|
486
486
|
value: {
|
|
487
487
|
variant: d
|
|
@@ -505,7 +505,7 @@ function As({
|
|
|
505
505
|
className: l(h(), r?.classNames?.close),
|
|
506
506
|
onClick: j,
|
|
507
507
|
type: "button",
|
|
508
|
-
children: /* @__PURE__ */ t.jsx(
|
|
508
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: "t:h-4 t:w-4" })
|
|
509
509
|
}
|
|
510
510
|
)
|
|
511
511
|
]
|
|
@@ -514,35 +514,35 @@ function As({
|
|
|
514
514
|
}
|
|
515
515
|
) : null;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
const { variant: s } = ht(
|
|
517
|
+
function Vs({ children: e }) {
|
|
518
|
+
const { variant: s } = ht(Pe), a = x()?.components?.alert?.icon, { icon: n } = bt({
|
|
519
519
|
variant: s
|
|
520
520
|
});
|
|
521
521
|
return /* @__PURE__ */ t.jsx("span", { className: l(n(), a?.classNames?.root), children: e });
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ds({ children: e }) {
|
|
524
524
|
const { content: s } = bt(), a = x()?.components?.alert?.default;
|
|
525
525
|
return /* @__PURE__ */ t.jsx("div", { className: l(s(), a?.classNames?.root), children: e });
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Fs({ children: e }) {
|
|
528
528
|
const { title: s } = bt(), a = x()?.components?.alert?.title;
|
|
529
529
|
return /* @__PURE__ */ t.jsx("h5", { className: l(s(), a?.classNames?.root), children: e });
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Bs({ children: e }) {
|
|
532
532
|
const { description: s } = bt(), a = x()?.components?.alert?.description;
|
|
533
533
|
return /* @__PURE__ */ t.jsx("div", { className: l(s(), a?.classNames?.root), children: e });
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Hs({ children: e }) {
|
|
536
536
|
const { action: s } = bt(), a = x()?.components?.alert?.action;
|
|
537
537
|
return /* @__PURE__ */ t.jsx("div", { className: l(s(), a?.classNames?.root), children: e });
|
|
538
538
|
}
|
|
539
|
-
const
|
|
540
|
-
Action:
|
|
541
|
-
Content:
|
|
542
|
-
Description:
|
|
543
|
-
Icon:
|
|
544
|
-
Title:
|
|
545
|
-
}),
|
|
539
|
+
const rr = Object.assign(Ms, {
|
|
540
|
+
Action: Hs,
|
|
541
|
+
Content: Ds,
|
|
542
|
+
Description: Bs,
|
|
543
|
+
Icon: Vs,
|
|
544
|
+
Title: Fs
|
|
545
|
+
}), Gs = k({
|
|
546
546
|
defaultVariants: {
|
|
547
547
|
size: "md",
|
|
548
548
|
variant: "circle"
|
|
@@ -579,14 +579,14 @@ const nr = Object.assign(As, {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
|
-
function
|
|
582
|
+
function lr({
|
|
583
583
|
src: e,
|
|
584
584
|
alt: s,
|
|
585
585
|
size: o,
|
|
586
586
|
variant: a,
|
|
587
587
|
children: n
|
|
588
588
|
}) {
|
|
589
|
-
const i = x()?.components?.avatar, d = o ?? i?.defaultProps?.size ?? "md", c = a ?? i?.defaultProps?.variant ?? "circle", { root: m, image: f, fallback: g } =
|
|
589
|
+
const i = x()?.components?.avatar, d = o ?? i?.defaultProps?.size ?? "md", c = a ?? i?.defaultProps?.variant ?? "circle", { root: m, image: f, fallback: g } = Gs({
|
|
590
590
|
size: d,
|
|
591
591
|
variant: c
|
|
592
592
|
});
|
|
@@ -608,7 +608,7 @@ function rr({
|
|
|
608
608
|
)
|
|
609
609
|
] });
|
|
610
610
|
}
|
|
611
|
-
const
|
|
611
|
+
const Us = k({
|
|
612
612
|
base: "t:animate-spin",
|
|
613
613
|
defaultVariants: {
|
|
614
614
|
size: "md"
|
|
@@ -621,7 +621,7 @@ const Gs = k({
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
});
|
|
624
|
-
function
|
|
624
|
+
function ee({ size: e }) {
|
|
625
625
|
const s = x(), o = s?.components?.loader?.classNames, a = s?.components?.loader?.defaultProps, n = {
|
|
626
626
|
size: e ?? a?.size ?? "md"
|
|
627
627
|
};
|
|
@@ -629,7 +629,7 @@ function te({ size: e }) {
|
|
|
629
629
|
Rt,
|
|
630
630
|
{
|
|
631
631
|
className: l(
|
|
632
|
-
|
|
632
|
+
Us({
|
|
633
633
|
size: n.size
|
|
634
634
|
}),
|
|
635
635
|
o?.root
|
|
@@ -637,7 +637,7 @@ function te({ size: e }) {
|
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
const
|
|
640
|
+
const Ys = k({
|
|
641
641
|
defaultVariants: {
|
|
642
642
|
variant: "default"
|
|
643
643
|
},
|
|
@@ -677,7 +677,7 @@ const Us = k({
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
|
-
function
|
|
680
|
+
function Ut({
|
|
681
681
|
variant: e,
|
|
682
682
|
align: s,
|
|
683
683
|
block: o,
|
|
@@ -686,24 +686,24 @@ function Gt({
|
|
|
686
686
|
onClick: r,
|
|
687
687
|
children: i
|
|
688
688
|
}) {
|
|
689
|
-
const c = x()?.components?.badge, m = e ?? c?.defaultProps?.variant ?? "default", f = s ?? c?.defaultProps?.align ?? void 0, g = o ?? c?.defaultProps?.block ?? !1, b = a ?? c?.defaultProps?.loading ?? !1, h = n ?? c?.defaultProps?.asChild ?? !1, { root: j } =
|
|
689
|
+
const c = x()?.components?.badge, m = e ?? c?.defaultProps?.variant ?? "default", f = s ?? c?.defaultProps?.align ?? void 0, g = o ?? c?.defaultProps?.block ?? !1, b = a ?? c?.defaultProps?.loading ?? !1, h = n ?? c?.defaultProps?.asChild ?? !1, { root: j } = Ys({
|
|
690
690
|
align: f,
|
|
691
691
|
block: g,
|
|
692
692
|
variant: m
|
|
693
|
-
}), v = h ?
|
|
693
|
+
}), v = h ? te : "div";
|
|
694
694
|
return /* @__PURE__ */ t.jsxs(
|
|
695
695
|
v,
|
|
696
696
|
{
|
|
697
697
|
className: l(j(), c?.classNames?.root),
|
|
698
698
|
onClick: r,
|
|
699
699
|
children: [
|
|
700
|
-
b && /* @__PURE__ */ t.jsx("span", { className: "t:absolute t:inset-0 t:flex t:items-center t:justify-center", children: /* @__PURE__ */ t.jsx(
|
|
700
|
+
b && /* @__PURE__ */ t.jsx("span", { className: "t:absolute t:inset-0 t:flex t:items-center t:justify-center", children: /* @__PURE__ */ t.jsx(ee, { size: "sm" }) }),
|
|
701
701
|
/* @__PURE__ */ t.jsx("span", { className: b ? "t:invisible" : void 0, children: i })
|
|
702
702
|
]
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
}
|
|
706
|
-
const
|
|
706
|
+
const Ws = k({
|
|
707
707
|
base: "",
|
|
708
708
|
variants: {
|
|
709
709
|
bg: {
|
|
@@ -773,7 +773,7 @@ const Ys = k({
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
|
-
function
|
|
776
|
+
function ir({
|
|
777
777
|
bg: e,
|
|
778
778
|
grow: s,
|
|
779
779
|
minHeight: o,
|
|
@@ -790,7 +790,7 @@ function lr({
|
|
|
790
790
|
return /* @__PURE__ */ t.jsx(
|
|
791
791
|
"div",
|
|
792
792
|
{
|
|
793
|
-
className:
|
|
793
|
+
className: Ws({
|
|
794
794
|
bg: e,
|
|
795
795
|
grow: s,
|
|
796
796
|
minHeight: o,
|
|
@@ -807,7 +807,7 @@ function lr({
|
|
|
807
807
|
}
|
|
808
808
|
);
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const mt = k({
|
|
811
811
|
slots: {
|
|
812
812
|
ellipsis: "t:flex t:h-9 t:w-9 t:items-center t:justify-center",
|
|
813
813
|
ellipsisIcon: "t:h-4 t:w-4",
|
|
@@ -819,8 +819,8 @@ const ut = k({
|
|
|
819
819
|
separator: "t:[&>svg]:h-3.5 t:[&>svg]:w-3.5"
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
|
-
function
|
|
823
|
-
const o = x()?.components?.breadcrumb?.default, { root: a } =
|
|
822
|
+
function Js({ children: e }) {
|
|
823
|
+
const o = x()?.components?.breadcrumb?.default, { root: a } = mt();
|
|
824
824
|
return /* @__PURE__ */ t.jsx(
|
|
825
825
|
"nav",
|
|
826
826
|
{
|
|
@@ -830,20 +830,20 @@ function Ws({ children: e }) {
|
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
const o = x()?.components?.breadcrumb?.list, { list: a } =
|
|
833
|
+
function qs({ children: e }) {
|
|
834
|
+
const o = x()?.components?.breadcrumb?.list, { list: a } = mt();
|
|
835
835
|
return /* @__PURE__ */ t.jsx("ol", { className: l(a(), o?.classNames?.root), children: e });
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
const o = x()?.components?.breadcrumb?.item, { item: a } =
|
|
837
|
+
function Zs({ children: e }) {
|
|
838
|
+
const o = x()?.components?.breadcrumb?.item, { item: a } = mt();
|
|
839
839
|
return /* @__PURE__ */ t.jsx("li", { className: l(a(), o?.classNames?.root), children: e });
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Ks({
|
|
842
842
|
asChild: e,
|
|
843
843
|
href: s,
|
|
844
844
|
children: o
|
|
845
845
|
}) {
|
|
846
|
-
const n = x()?.components?.breadcrumb?.link, r = n?.defaultProps, i = e ?? r?.asChild ?? !1, d = i ?
|
|
846
|
+
const n = x()?.components?.breadcrumb?.link, r = n?.defaultProps, i = e ?? r?.asChild ?? !1, d = i ? te : "a", { link: c } = mt();
|
|
847
847
|
return /* @__PURE__ */ t.jsx(
|
|
848
848
|
d,
|
|
849
849
|
{
|
|
@@ -853,8 +853,8 @@ function Zs({
|
|
|
853
853
|
}
|
|
854
854
|
);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
const o = x()?.components?.breadcrumb?.page, { page: a } =
|
|
856
|
+
function Xs({ children: e }) {
|
|
857
|
+
const o = x()?.components?.breadcrumb?.page, { page: a } = mt();
|
|
858
858
|
return /* @__PURE__ */ t.jsx(
|
|
859
859
|
"span",
|
|
860
860
|
{
|
|
@@ -865,8 +865,8 @@ function Ks({ children: e }) {
|
|
|
865
865
|
}
|
|
866
866
|
);
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
const o = x()?.components?.breadcrumb?.separator, { separator: a } =
|
|
868
|
+
function Qs({ children: e }) {
|
|
869
|
+
const o = x()?.components?.breadcrumb?.separator, { separator: a } = mt();
|
|
870
870
|
return /* @__PURE__ */ t.jsx(
|
|
871
871
|
"li",
|
|
872
872
|
{
|
|
@@ -877,8 +877,8 @@ function Xs({ children: e }) {
|
|
|
877
877
|
}
|
|
878
878
|
);
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
const o = x()?.components?.breadcrumb?.ellipsis, { ellipsis: a, ellipsisIcon: n } =
|
|
880
|
+
function to(e) {
|
|
881
|
+
const o = x()?.components?.breadcrumb?.ellipsis, { ellipsis: a, ellipsisIcon: n } = mt();
|
|
882
882
|
return /* @__PURE__ */ t.jsx(
|
|
883
883
|
"span",
|
|
884
884
|
{
|
|
@@ -886,7 +886,7 @@ function Qs(e) {
|
|
|
886
886
|
className: l(a(), o?.classNames?.root),
|
|
887
887
|
role: "presentation",
|
|
888
888
|
children: /* @__PURE__ */ t.jsx(
|
|
889
|
-
|
|
889
|
+
as,
|
|
890
890
|
{
|
|
891
891
|
className: l(n(), o?.classNames?.icon)
|
|
892
892
|
}
|
|
@@ -894,21 +894,21 @@ function Qs(e) {
|
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
896
|
}
|
|
897
|
-
const
|
|
898
|
-
Ellipsis:
|
|
899
|
-
Item:
|
|
900
|
-
Link:
|
|
901
|
-
List:
|
|
902
|
-
Page:
|
|
903
|
-
Separator:
|
|
904
|
-
}),
|
|
897
|
+
const cr = Object.assign(Js, {
|
|
898
|
+
Ellipsis: to,
|
|
899
|
+
Item: Zs,
|
|
900
|
+
Link: Ks,
|
|
901
|
+
List: qs,
|
|
902
|
+
Page: Xs,
|
|
903
|
+
Separator: Qs
|
|
904
|
+
}), eo = ze({
|
|
905
905
|
base: "t:inline-flex t:items-center t:gap-2",
|
|
906
906
|
variants: {
|
|
907
907
|
loading: {
|
|
908
908
|
true: "t:invisible"
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
}),
|
|
911
|
+
}), Yt = ze({
|
|
912
912
|
base: "t:relative t:inline-flex t:cursor-pointer t:items-center t:justify-center t:gap-2 t:whitespace-nowrap t:rounded-md t:font-medium t:text-sm t:ring-offset-background t:transition-colors t:focus-visible:outline-none t:focus-visible:ring-2 t:focus-visible:ring-ring t:focus-visible:ring-offset-2 t:disabled:pointer-events-none t:disabled:opacity-50 t:[&_svg]:pointer-events-none t:[&_svg]:size-4 t:[&_svg]:shrink-0",
|
|
913
913
|
defaultVariants: {
|
|
914
914
|
size: "md",
|
|
@@ -960,7 +960,7 @@ const ir = Object.assign(Ws, {
|
|
|
960
960
|
size: n ?? N?.size ?? "md",
|
|
961
961
|
type: a ?? N?.type ?? "button",
|
|
962
962
|
variant: r ?? N?.variant ?? "default"
|
|
963
|
-
}, R = y.asChild ?
|
|
963
|
+
}, R = y.asChild ? te : "button", O = y.disabled || y.loading, P = Yt({
|
|
964
964
|
block: y.block,
|
|
965
965
|
size: y.size,
|
|
966
966
|
variant: y.variant
|
|
@@ -971,7 +971,7 @@ const ir = Object.assign(Ws, {
|
|
|
971
971
|
ref: s,
|
|
972
972
|
...j,
|
|
973
973
|
className: l(P, p?.root),
|
|
974
|
-
disabled:
|
|
974
|
+
disabled: O,
|
|
975
975
|
form: y.form,
|
|
976
976
|
onClick: b,
|
|
977
977
|
type: y.type,
|
|
@@ -980,7 +980,7 @@ const ir = Object.assign(Ws, {
|
|
|
980
980
|
/* @__PURE__ */ t.jsxs(
|
|
981
981
|
"span",
|
|
982
982
|
{
|
|
983
|
-
className:
|
|
983
|
+
className: eo({
|
|
984
984
|
loading: y.loading
|
|
985
985
|
}),
|
|
986
986
|
children: [
|
|
@@ -993,7 +993,7 @@ const ir = Object.assign(Ws, {
|
|
|
993
993
|
]
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
}),
|
|
996
|
+
}), ft = k({
|
|
997
997
|
slots: {
|
|
998
998
|
content: "t:p-6",
|
|
999
999
|
description: "t:text-muted-foreground t:text-sm",
|
|
@@ -1017,8 +1017,8 @@ const ir = Object.assign(Ws, {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
});
|
|
1020
|
-
function
|
|
1021
|
-
const a = x()?.components?.card?.default, { root: n } =
|
|
1020
|
+
function so({ onClick: e, children: s }) {
|
|
1021
|
+
const a = x()?.components?.card?.default, { root: n } = ft({
|
|
1022
1022
|
clickable: !!e
|
|
1023
1023
|
});
|
|
1024
1024
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -1030,42 +1030,42 @@ function eo({ onClick: e, children: s }) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const a = x()?.components?.card?.header, { header: n } =
|
|
1033
|
+
function oo({ bordered: e, children: s }) {
|
|
1034
|
+
const a = x()?.components?.card?.header, { header: n } = ft({
|
|
1035
1035
|
bordered: e
|
|
1036
1036
|
});
|
|
1037
1037
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
1038
1038
|
}
|
|
1039
|
-
function oo({ children: e }) {
|
|
1040
|
-
const o = x()?.components?.card?.title, { title: a } = mt();
|
|
1041
|
-
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1042
|
-
}
|
|
1043
1039
|
function ao({ children: e }) {
|
|
1044
|
-
const o = x()?.components?.card?.
|
|
1040
|
+
const o = x()?.components?.card?.title, { title: a } = ft();
|
|
1045
1041
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1046
1042
|
}
|
|
1047
1043
|
function no({ children: e }) {
|
|
1048
|
-
const o = x()?.components?.card?.
|
|
1044
|
+
const o = x()?.components?.card?.description, { description: a } = ft();
|
|
1045
|
+
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1046
|
+
}
|
|
1047
|
+
function ro({ children: e }) {
|
|
1048
|
+
const o = x()?.components?.card?.content, { content: a } = ft();
|
|
1049
1049
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const a = x()?.components?.card?.footer, { footer: n } =
|
|
1051
|
+
function lo({ bordered: e, children: s }) {
|
|
1052
|
+
const a = x()?.components?.card?.footer, { footer: n } = ft({
|
|
1053
1053
|
bordered: e
|
|
1054
1054
|
});
|
|
1055
1055
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const o = x()?.components?.card?.separator, { separator: a } =
|
|
1057
|
+
function io({ children: e }) {
|
|
1058
|
+
const o = x()?.components?.card?.separator, { separator: a } = ft();
|
|
1059
1059
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1062
|
-
Content:
|
|
1063
|
-
Description:
|
|
1064
|
-
Footer:
|
|
1065
|
-
Header:
|
|
1066
|
-
Separator:
|
|
1067
|
-
Title:
|
|
1068
|
-
}),
|
|
1061
|
+
const dr = Object.assign(so, {
|
|
1062
|
+
Content: ro,
|
|
1063
|
+
Description: no,
|
|
1064
|
+
Footer: lo,
|
|
1065
|
+
Header: oo,
|
|
1066
|
+
Separator: io,
|
|
1067
|
+
Title: ao
|
|
1068
|
+
}), co = k({
|
|
1069
1069
|
defaultVariants: {
|
|
1070
1070
|
size: "md"
|
|
1071
1071
|
},
|
|
@@ -1100,7 +1100,7 @@ const cr = Object.assign(eo, {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
}),
|
|
1103
|
+
}), uo = k({
|
|
1104
1104
|
defaultVariants: {
|
|
1105
1105
|
variant: "vertical"
|
|
1106
1106
|
},
|
|
@@ -1119,7 +1119,7 @@ const cr = Object.assign(eo, {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
});
|
|
1122
|
-
function
|
|
1122
|
+
function Ie({
|
|
1123
1123
|
label: e,
|
|
1124
1124
|
description: s,
|
|
1125
1125
|
value: o,
|
|
@@ -1130,32 +1130,32 @@ function Pe({
|
|
|
1130
1130
|
defaultChecked: d,
|
|
1131
1131
|
onChange: c
|
|
1132
1132
|
}) {
|
|
1133
|
-
const m =
|
|
1133
|
+
const m = Lt(), g = x()?.components?.checkbox?.default, b = a ?? g?.defaultProps?.size ?? "md", {
|
|
1134
1134
|
wrapper: h,
|
|
1135
1135
|
root: j,
|
|
1136
1136
|
indicator: v,
|
|
1137
1137
|
icon: p,
|
|
1138
1138
|
label: N,
|
|
1139
1139
|
description: y
|
|
1140
|
-
} =
|
|
1140
|
+
} = co({
|
|
1141
1141
|
bordered: r,
|
|
1142
1142
|
size: b
|
|
1143
1143
|
}), R = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1144
1144
|
/* @__PURE__ */ t.jsx(
|
|
1145
|
-
|
|
1145
|
+
ue.Root,
|
|
1146
1146
|
{
|
|
1147
1147
|
checked: i,
|
|
1148
1148
|
className: l(j(), g?.classNames?.root),
|
|
1149
1149
|
defaultChecked: d,
|
|
1150
1150
|
disabled: n,
|
|
1151
1151
|
id: m,
|
|
1152
|
-
onCheckedChange: (
|
|
1152
|
+
onCheckedChange: (O) => c?.(O),
|
|
1153
1153
|
value: o,
|
|
1154
1154
|
children: /* @__PURE__ */ t.jsx(
|
|
1155
|
-
|
|
1155
|
+
ue.Indicator,
|
|
1156
1156
|
{
|
|
1157
1157
|
className: l(v(), g?.classNames?.indicator),
|
|
1158
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1158
|
+
children: /* @__PURE__ */ t.jsx(Kt, { className: l(p(), g?.classNames?.icon) })
|
|
1159
1159
|
}
|
|
1160
1160
|
)
|
|
1161
1161
|
}
|
|
@@ -1190,7 +1190,7 @@ function Pe({
|
|
|
1190
1190
|
}
|
|
1191
1191
|
) : /* @__PURE__ */ t.jsx("div", { className: l(h(), g?.classNames?.wrapper), children: R });
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function mo({
|
|
1194
1194
|
items: e,
|
|
1195
1195
|
value: s,
|
|
1196
1196
|
defaultValue: o,
|
|
@@ -1198,9 +1198,9 @@ function uo({
|
|
|
1198
1198
|
variant: n,
|
|
1199
1199
|
onChange: r
|
|
1200
1200
|
}) {
|
|
1201
|
-
const d = x()?.components?.checkbox?.group, c = n ?? d?.defaultProps?.variant ?? "vertical", [m, f] =
|
|
1201
|
+
const d = x()?.components?.checkbox?.group, c = n ?? d?.defaultProps?.variant ?? "vertical", [m, f] = E(
|
|
1202
1202
|
o ?? []
|
|
1203
|
-
), g = s !== void 0, b = g ? s : m, { root: h, item: j } =
|
|
1203
|
+
), g = s !== void 0, b = g ? s : m, { root: h, item: j } = uo({
|
|
1204
1204
|
variant: c
|
|
1205
1205
|
});
|
|
1206
1206
|
function v(p, N) {
|
|
@@ -1215,7 +1215,7 @@ function uo({
|
|
|
1215
1215
|
{
|
|
1216
1216
|
className: l(j(), d?.classNames?.item),
|
|
1217
1217
|
children: /* @__PURE__ */ t.jsx(
|
|
1218
|
-
|
|
1218
|
+
Ie,
|
|
1219
1219
|
{
|
|
1220
1220
|
checked: b.includes(p.value),
|
|
1221
1221
|
disabled: a || p.disabled,
|
|
@@ -1228,26 +1228,26 @@ function uo({
|
|
|
1228
1228
|
p.value
|
|
1229
1229
|
)) });
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1232
|
-
Group:
|
|
1233
|
-
}),
|
|
1231
|
+
const Wt = Object.assign(Ie, {
|
|
1232
|
+
Group: mo
|
|
1233
|
+
}), _e = St(
|
|
1234
1234
|
null
|
|
1235
|
-
),
|
|
1236
|
-
const e = ht(
|
|
1235
|
+
), ur = () => {
|
|
1236
|
+
const e = ht(_e);
|
|
1237
1237
|
if (!e)
|
|
1238
1238
|
throw new Error("useColorScheme must be used within a Provider");
|
|
1239
1239
|
return e;
|
|
1240
1240
|
};
|
|
1241
|
-
function
|
|
1241
|
+
function fo({
|
|
1242
1242
|
defaultColorScheme: e = "light",
|
|
1243
1243
|
children: s
|
|
1244
1244
|
}) {
|
|
1245
|
-
const o = typeof window < "u" ? localStorage.getItem("colorScheme") : null, [a, n] =
|
|
1245
|
+
const o = typeof window < "u" ? localStorage.getItem("colorScheme") : null, [a, n] = E(
|
|
1246
1246
|
o ?? e
|
|
1247
1247
|
), r = (i) => {
|
|
1248
1248
|
n(i), localStorage.setItem("colorScheme", i);
|
|
1249
1249
|
};
|
|
1250
|
-
return
|
|
1250
|
+
return ye(() => {
|
|
1251
1251
|
const i = window.document.documentElement;
|
|
1252
1252
|
if (i.classList.remove("light", "dark"), a === "system") {
|
|
1253
1253
|
const d = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
@@ -1258,7 +1258,7 @@ function mo({
|
|
|
1258
1258
|
}, [
|
|
1259
1259
|
a
|
|
1260
1260
|
]), /* @__PURE__ */ t.jsx(
|
|
1261
|
-
|
|
1261
|
+
_e.Provider,
|
|
1262
1262
|
{
|
|
1263
1263
|
value: {
|
|
1264
1264
|
changeColorScheme: r,
|
|
@@ -1268,7 +1268,7 @@ function mo({
|
|
|
1268
1268
|
}
|
|
1269
1269
|
);
|
|
1270
1270
|
}
|
|
1271
|
-
const
|
|
1271
|
+
const go = k({
|
|
1272
1272
|
slots: {
|
|
1273
1273
|
actions: "t:flex t:flex-col-reverse t:gap-2 t:sm:flex-row t:sm:justify-end",
|
|
1274
1274
|
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:fixed t:top-[50%] t:left-[50%] t:z-50 t:grid t:w-full t:max-w-lg t:translate-x-[-50%] t:translate-y-[-50%] t:gap-4 t:border t:bg-dialog t:p-6 t:shadow-lg t:duration-200 t:data-[state=closed]:animate-out t:data-[state=open]:animate-in t:sm:rounded-lg",
|
|
@@ -1277,7 +1277,7 @@ const fo = k({
|
|
|
1277
1277
|
title: "t:font-semibold t:text-lg"
|
|
1278
1278
|
}
|
|
1279
1279
|
});
|
|
1280
|
-
function
|
|
1280
|
+
function mr({
|
|
1281
1281
|
open: e,
|
|
1282
1282
|
title: s,
|
|
1283
1283
|
description: o,
|
|
@@ -1289,20 +1289,20 @@ function ur({
|
|
|
1289
1289
|
onCancel: c,
|
|
1290
1290
|
onClose: m
|
|
1291
1291
|
}) {
|
|
1292
|
-
const g = x()?.translations?.confirm, b = a ?? g?.confirm, h = n ?? g?.cancel, [j, v] =
|
|
1292
|
+
const g = x()?.translations?.confirm, b = a ?? g?.confirm, h = n ?? g?.cancel, [j, v] = E(!1), [p, N] = E(!1), {
|
|
1293
1293
|
content: y,
|
|
1294
1294
|
overlay: R,
|
|
1295
|
-
title:
|
|
1295
|
+
title: O,
|
|
1296
1296
|
description: P,
|
|
1297
1297
|
actions: C
|
|
1298
|
-
} =
|
|
1298
|
+
} = go(), L = async () => {
|
|
1299
1299
|
v(!0);
|
|
1300
1300
|
try {
|
|
1301
1301
|
await Promise.resolve(d?.());
|
|
1302
1302
|
} finally {
|
|
1303
1303
|
v(!1);
|
|
1304
1304
|
}
|
|
1305
|
-
},
|
|
1305
|
+
}, z = async () => {
|
|
1306
1306
|
N(!0);
|
|
1307
1307
|
try {
|
|
1308
1308
|
await Promise.resolve(c?.());
|
|
@@ -1320,7 +1320,7 @@ function ur({
|
|
|
1320
1320
|
children: /* @__PURE__ */ t.jsxs(lt.Portal, { children: [
|
|
1321
1321
|
/* @__PURE__ */ t.jsx(lt.Overlay, { className: R() }),
|
|
1322
1322
|
/* @__PURE__ */ t.jsxs(lt.Content, { className: y(), children: [
|
|
1323
|
-
/* @__PURE__ */ t.jsx(lt.Title, { className:
|
|
1323
|
+
/* @__PURE__ */ t.jsx(lt.Title, { className: O(), children: s }),
|
|
1324
1324
|
/* @__PURE__ */ t.jsx(lt.Description, { className: P(), children: o }),
|
|
1325
1325
|
/* @__PURE__ */ t.jsxs("div", { className: C(), children: [
|
|
1326
1326
|
/* @__PURE__ */ t.jsx(lt.Cancel, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
@@ -1328,7 +1328,7 @@ function ur({
|
|
|
1328
1328
|
{
|
|
1329
1329
|
...i,
|
|
1330
1330
|
loading: p,
|
|
1331
|
-
onClick:
|
|
1331
|
+
onClick: z,
|
|
1332
1332
|
variant: i?.variant ?? "outline",
|
|
1333
1333
|
children: h
|
|
1334
1334
|
}
|
|
@@ -1338,7 +1338,7 @@ function ur({
|
|
|
1338
1338
|
{
|
|
1339
1339
|
...r,
|
|
1340
1340
|
loading: j,
|
|
1341
|
-
onClick:
|
|
1341
|
+
onClick: L,
|
|
1342
1342
|
children: b
|
|
1343
1343
|
}
|
|
1344
1344
|
) })
|
|
@@ -1348,7 +1348,7 @@ function ur({
|
|
|
1348
1348
|
}
|
|
1349
1349
|
);
|
|
1350
1350
|
}
|
|
1351
|
-
const
|
|
1351
|
+
const po = k({
|
|
1352
1352
|
base: "t:w-full",
|
|
1353
1353
|
defaultVariants: {
|
|
1354
1354
|
centered: !0
|
|
@@ -1373,7 +1373,7 @@ const go = k({
|
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
});
|
|
1376
|
-
function
|
|
1376
|
+
function fr({
|
|
1377
1377
|
centered: e,
|
|
1378
1378
|
maxWidth: s,
|
|
1379
1379
|
textAlign: o,
|
|
@@ -1382,7 +1382,7 @@ function mr({
|
|
|
1382
1382
|
return /* @__PURE__ */ t.jsx(
|
|
1383
1383
|
"div",
|
|
1384
1384
|
{
|
|
1385
|
-
className:
|
|
1385
|
+
className: po({
|
|
1386
1386
|
centered: e,
|
|
1387
1387
|
maxWidth: s,
|
|
1388
1388
|
textAlign: o
|
|
@@ -1391,9 +1391,9 @@ function mr({
|
|
|
1391
1391
|
}
|
|
1392
1392
|
);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function xo(e, s = 300) {
|
|
1395
1395
|
const o = wt(e), a = wt(null);
|
|
1396
|
-
return
|
|
1396
|
+
return ct(() => {
|
|
1397
1397
|
o.current = e;
|
|
1398
1398
|
}), Et(
|
|
1399
1399
|
((...n) => {
|
|
@@ -1406,7 +1406,17 @@ function po(e, s = 300) {
|
|
|
1406
1406
|
]
|
|
1407
1407
|
);
|
|
1408
1408
|
}
|
|
1409
|
-
const
|
|
1409
|
+
const Gt = 768;
|
|
1410
|
+
function gr() {
|
|
1411
|
+
const [e, s] = E(void 0);
|
|
1412
|
+
return ct(() => {
|
|
1413
|
+
const o = window.matchMedia(`(max-width: ${Gt - 1}px)`), a = () => {
|
|
1414
|
+
s(window.innerWidth < Gt);
|
|
1415
|
+
};
|
|
1416
|
+
return o.addEventListener("change", a), s(window.innerWidth < Gt), () => o.removeEventListener("change", a);
|
|
1417
|
+
}, []), !!e;
|
|
1418
|
+
}
|
|
1419
|
+
const Tt = k({
|
|
1410
1420
|
defaultVariants: {
|
|
1411
1421
|
hasLeft: !1,
|
|
1412
1422
|
hasRight: !1,
|
|
@@ -1442,7 +1452,7 @@ const zt = k({
|
|
|
1442
1452
|
}
|
|
1443
1453
|
}
|
|
1444
1454
|
}
|
|
1445
|
-
}),
|
|
1455
|
+
}), dt = J(
|
|
1446
1456
|
({
|
|
1447
1457
|
className: e,
|
|
1448
1458
|
rootClassName: s,
|
|
@@ -1462,27 +1472,27 @@ const zt = k({
|
|
|
1462
1472
|
onChange: v,
|
|
1463
1473
|
...p
|
|
1464
1474
|
}, N) => {
|
|
1465
|
-
const R = x()?.components?.input,
|
|
1475
|
+
const R = x()?.components?.input, O = d ?? R?.defaultProps?.size ?? "md", P = f ?? R?.defaultProps?.debounce ?? !1, C = g ?? R?.defaultProps?.disabled ?? !1, L = b ?? R?.defaultProps?.loading ?? !1, z = !!c, w = !!m || L, {
|
|
1466
1476
|
root: I,
|
|
1467
1477
|
input: F,
|
|
1468
1478
|
leftSection: A,
|
|
1469
1479
|
rightSection: S,
|
|
1470
1480
|
loader: D
|
|
1471
|
-
} =
|
|
1472
|
-
hasLeft:
|
|
1481
|
+
} = Tt({
|
|
1482
|
+
hasLeft: z,
|
|
1473
1483
|
hasRight: w,
|
|
1474
|
-
size:
|
|
1484
|
+
size: O
|
|
1475
1485
|
}), M = (W) => {
|
|
1476
1486
|
const Z = W.target.value;
|
|
1477
1487
|
v?.(Z === "" ? null : Z);
|
|
1478
|
-
}, U =
|
|
1488
|
+
}, U = xo(M);
|
|
1479
1489
|
return /* @__PURE__ */ t.jsxs(
|
|
1480
1490
|
"div",
|
|
1481
1491
|
{
|
|
1482
1492
|
className: l(I(), R?.classNames?.root, s),
|
|
1483
1493
|
onClick: h,
|
|
1484
1494
|
children: [
|
|
1485
|
-
|
|
1495
|
+
z && /* @__PURE__ */ t.jsx(
|
|
1486
1496
|
"div",
|
|
1487
1497
|
{
|
|
1488
1498
|
className: l(A(), R?.classNames?.leftSection),
|
|
@@ -1513,7 +1523,7 @@ const zt = k({
|
|
|
1513
1523
|
R?.classNames?.rightSection
|
|
1514
1524
|
),
|
|
1515
1525
|
children: [
|
|
1516
|
-
|
|
1526
|
+
L && /* @__PURE__ */ t.jsx("div", { className: l(D(), R?.classNames?.loader), children: /* @__PURE__ */ t.jsx(ee, { size: "sm" }) }),
|
|
1517
1527
|
m
|
|
1518
1528
|
]
|
|
1519
1529
|
}
|
|
@@ -1522,7 +1532,7 @@ const zt = k({
|
|
|
1522
1532
|
}
|
|
1523
1533
|
);
|
|
1524
1534
|
}
|
|
1525
|
-
),
|
|
1535
|
+
), ho = {
|
|
1526
1536
|
brl: {
|
|
1527
1537
|
code: "BRL",
|
|
1528
1538
|
locale: "pt-BR"
|
|
@@ -1538,26 +1548,26 @@ const zt = k({
|
|
|
1538
1548
|
}, it = (e, s) => {
|
|
1539
1549
|
if (e == null)
|
|
1540
1550
|
return;
|
|
1541
|
-
const { locale: o, code: a } =
|
|
1551
|
+
const { locale: o, code: a } = ho[s];
|
|
1542
1552
|
return Number(e).toLocaleString(o, {
|
|
1543
1553
|
currency: a,
|
|
1544
1554
|
style: "currency"
|
|
1545
1555
|
});
|
|
1546
|
-
},
|
|
1556
|
+
}, Jt = (e) => {
|
|
1547
1557
|
if (e === null || e === "")
|
|
1548
1558
|
return null;
|
|
1549
1559
|
const s = e.replace(/[^\d]/g, "");
|
|
1550
1560
|
return s ? Number.parseFloat(s) / 100 : 0;
|
|
1551
|
-
},
|
|
1561
|
+
}, he = {
|
|
1552
1562
|
brl: "BRL",
|
|
1553
1563
|
eur: "EUR",
|
|
1554
1564
|
usd: "USD"
|
|
1555
|
-
},
|
|
1565
|
+
}, bo = k({
|
|
1556
1566
|
slots: {
|
|
1557
1567
|
root: "t:relative t:flex t:w-full",
|
|
1558
1568
|
typeSelector: "t:flex t:h-10 t:cursor-pointer t:items-center t:gap-1 t:rounded-l-md t:border t:border-input t:border-r-0 t:bg-transparent t:px-3 t:text-sm t:transition-colors t:hover:bg-accent t:disabled:pointer-events-none t:disabled:opacity-50"
|
|
1559
1569
|
}
|
|
1560
|
-
}),
|
|
1570
|
+
}), vo = k({
|
|
1561
1571
|
slots: {
|
|
1562
1572
|
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:z-50 t:w-72 t:rounded-md t:border t:bg-popover t:p-4 t:shadow-md t:outline-none t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
1563
1573
|
footer: "t:flex t:justify-end t:gap-2 t:pt-1",
|
|
@@ -1566,15 +1576,15 @@ const zt = k({
|
|
|
1566
1576
|
inputsWrapper: "t:flex t:flex-col t:gap-3",
|
|
1567
1577
|
trigger: "t:flex t:h-10 t:w-full t:cursor-pointer t:items-center t:justify-between t:gap-2 t:rounded-md t:border t:border-input t:bg-input/30 t:px-3 t:text-left t:text-sm t:ring-offset-background t:focus-visible:outline-none t:focus-visible:ring-2 t:focus-visible:ring-ring t:focus-visible:ring-offset-2 t:disabled:cursor-not-allowed t:disabled:opacity-50"
|
|
1568
1578
|
}
|
|
1569
|
-
}),
|
|
1570
|
-
const [i, d] =
|
|
1579
|
+
}), Ee = J(({ value: e, defaultValue: s, onChange: o, currency: a, ...n }, r) => {
|
|
1580
|
+
const [i, d] = E(
|
|
1571
1581
|
e ?? s ?? null
|
|
1572
1582
|
), c = (m) => {
|
|
1573
|
-
const f =
|
|
1583
|
+
const f = Jt(m);
|
|
1574
1584
|
d(f), o?.(f);
|
|
1575
1585
|
};
|
|
1576
1586
|
return /* @__PURE__ */ t.jsx(
|
|
1577
|
-
|
|
1587
|
+
dt,
|
|
1578
1588
|
{
|
|
1579
1589
|
...n,
|
|
1580
1590
|
onChange: c,
|
|
@@ -1582,7 +1592,7 @@ const zt = k({
|
|
|
1582
1592
|
value: it(i, a)
|
|
1583
1593
|
}
|
|
1584
1594
|
);
|
|
1585
|
-
}),
|
|
1595
|
+
}), pr = J(
|
|
1586
1596
|
(e, s) => {
|
|
1587
1597
|
const a = x()?.components?.currencyInput, { variant: n, ...r } = e, i = n ?? a?.defaultProps?.variant ?? "brl";
|
|
1588
1598
|
if (r.mode === "range") {
|
|
@@ -1594,7 +1604,7 @@ const zt = k({
|
|
|
1594
1604
|
disabled: p
|
|
1595
1605
|
} = r, N = i === "any" ? "brl" : i;
|
|
1596
1606
|
return /* @__PURE__ */ t.jsx(
|
|
1597
|
-
|
|
1607
|
+
No,
|
|
1598
1608
|
{
|
|
1599
1609
|
currency: N,
|
|
1600
1610
|
defaultValue: h,
|
|
@@ -1607,7 +1617,7 @@ const zt = k({
|
|
|
1607
1617
|
}
|
|
1608
1618
|
const { value: d, defaultValue: c, onChange: m, mode: f, ...g } = r;
|
|
1609
1619
|
return i === "any" ? /* @__PURE__ */ t.jsx(
|
|
1610
|
-
|
|
1620
|
+
jo,
|
|
1611
1621
|
{
|
|
1612
1622
|
...g,
|
|
1613
1623
|
defaultValue: c,
|
|
@@ -1616,7 +1626,7 @@ const zt = k({
|
|
|
1616
1626
|
value: d
|
|
1617
1627
|
}
|
|
1618
1628
|
) : /* @__PURE__ */ t.jsx(
|
|
1619
|
-
|
|
1629
|
+
Ee,
|
|
1620
1630
|
{
|
|
1621
1631
|
...g,
|
|
1622
1632
|
currency: i,
|
|
@@ -1627,8 +1637,8 @@ const zt = k({
|
|
|
1627
1637
|
}
|
|
1628
1638
|
);
|
|
1629
1639
|
}
|
|
1630
|
-
),
|
|
1631
|
-
const [i, d] =
|
|
1640
|
+
), jo = J(({ value: e, defaultValue: s, onChange: o, disabled: a, ...n }, r) => {
|
|
1641
|
+
const [i, d] = E("brl"), { root: c, typeSelector: m } = bo();
|
|
1632
1642
|
return /* @__PURE__ */ t.jsxs("div", { className: c(), children: [
|
|
1633
1643
|
/* @__PURE__ */ t.jsxs(V.Root, { children: [
|
|
1634
1644
|
/* @__PURE__ */ t.jsx(V.Trigger, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
@@ -1638,7 +1648,7 @@ const zt = k({
|
|
|
1638
1648
|
disabled: a,
|
|
1639
1649
|
type: "button",
|
|
1640
1650
|
children: [
|
|
1641
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
1651
|
+
/* @__PURE__ */ t.jsx("span", { children: he[i] }),
|
|
1642
1652
|
/* @__PURE__ */ t.jsx(ot, { className: "t:size-4 t:text-muted-foreground" })
|
|
1643
1653
|
]
|
|
1644
1654
|
}
|
|
@@ -1658,7 +1668,7 @@ const zt = k({
|
|
|
1658
1668
|
{
|
|
1659
1669
|
className: "t:relative t:flex t:cursor-default t:select-none t:items-center t:rounded-sm t:px-2 t:py-1.5 t:text-sm t:outline-none t:transition-colors t:focus:bg-accent t:focus:text-accent-foreground t:data-[disabled]:pointer-events-none t:data-[disabled]:opacity-50",
|
|
1660
1670
|
onClick: () => d(f),
|
|
1661
|
-
children:
|
|
1671
|
+
children: he[f]
|
|
1662
1672
|
},
|
|
1663
1673
|
f
|
|
1664
1674
|
))
|
|
@@ -1666,7 +1676,7 @@ const zt = k({
|
|
|
1666
1676
|
) })
|
|
1667
1677
|
] }),
|
|
1668
1678
|
/* @__PURE__ */ t.jsx("div", { className: "t:flex-1", children: /* @__PURE__ */ t.jsx(
|
|
1669
|
-
|
|
1679
|
+
Ee,
|
|
1670
1680
|
{
|
|
1671
1681
|
...n,
|
|
1672
1682
|
className: "t:rounded-l-none",
|
|
@@ -1680,7 +1690,7 @@ const zt = k({
|
|
|
1680
1690
|
) })
|
|
1681
1691
|
] });
|
|
1682
1692
|
});
|
|
1683
|
-
function
|
|
1693
|
+
function No({
|
|
1684
1694
|
currency: e,
|
|
1685
1695
|
value: s,
|
|
1686
1696
|
defaultValue: o,
|
|
@@ -1688,16 +1698,16 @@ function jo({
|
|
|
1688
1698
|
placeholder: n,
|
|
1689
1699
|
disabled: r
|
|
1690
1700
|
}) {
|
|
1691
|
-
const d = x()?.translations?.currencyInput, [c, m] =
|
|
1701
|
+
const d = x()?.translations?.currencyInput, [c, m] = E(!1), [f, g] = E(
|
|
1692
1702
|
s ?? o ?? {}
|
|
1693
|
-
), [b, h] =
|
|
1703
|
+
), [b, h] = E(f), j = s !== void 0, v = j ? s ?? {} : f, { content: p, footer: N, inputLabel: y, inputSection: R, inputsWrapper: O, trigger: P } = vo();
|
|
1694
1704
|
function C(w) {
|
|
1695
1705
|
w && h(v), m(w);
|
|
1696
1706
|
}
|
|
1697
|
-
function
|
|
1707
|
+
function L() {
|
|
1698
1708
|
j || g(b), a?.(b), m(!1);
|
|
1699
1709
|
}
|
|
1700
|
-
const
|
|
1710
|
+
const z = v.from != null || v.to != null ? `${it(v.from ?? null, e) ?? "–"} – ${it(v.to ?? null, e) ?? "–"}` : n ?? d?.selectRange;
|
|
1701
1711
|
return /* @__PURE__ */ t.jsxs(
|
|
1702
1712
|
G.Root,
|
|
1703
1713
|
{
|
|
@@ -1711,7 +1721,7 @@ function jo({
|
|
|
1711
1721
|
disabled: r,
|
|
1712
1722
|
type: "button",
|
|
1713
1723
|
children: [
|
|
1714
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
1724
|
+
/* @__PURE__ */ t.jsx("span", { children: z }),
|
|
1715
1725
|
/* @__PURE__ */ t.jsx(ot, { className: "t:h-4 t:w-4 t:shrink-0 t:text-muted-foreground" })
|
|
1716
1726
|
]
|
|
1717
1727
|
}
|
|
@@ -1721,15 +1731,15 @@ function jo({
|
|
|
1721
1731
|
{
|
|
1722
1732
|
className: p(),
|
|
1723
1733
|
sideOffset: 4,
|
|
1724
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
1734
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: O(), children: [
|
|
1725
1735
|
/* @__PURE__ */ t.jsxs("div", { className: R(), children: [
|
|
1726
1736
|
/* @__PURE__ */ t.jsx("span", { className: y(), children: d?.from ?? "From" }),
|
|
1727
1737
|
/* @__PURE__ */ t.jsx(
|
|
1728
|
-
|
|
1738
|
+
dt,
|
|
1729
1739
|
{
|
|
1730
1740
|
onChange: (w) => h((I) => ({
|
|
1731
1741
|
...I,
|
|
1732
|
-
from:
|
|
1742
|
+
from: Jt(w)
|
|
1733
1743
|
})),
|
|
1734
1744
|
placeholder: it(0, e),
|
|
1735
1745
|
value: it(b.from ?? null, e)
|
|
@@ -1739,11 +1749,11 @@ function jo({
|
|
|
1739
1749
|
/* @__PURE__ */ t.jsxs("div", { className: R(), children: [
|
|
1740
1750
|
/* @__PURE__ */ t.jsx("span", { className: y(), children: d?.to ?? "To" }),
|
|
1741
1751
|
/* @__PURE__ */ t.jsx(
|
|
1742
|
-
|
|
1752
|
+
dt,
|
|
1743
1753
|
{
|
|
1744
1754
|
onChange: (w) => h((I) => ({
|
|
1745
1755
|
...I,
|
|
1746
|
-
to:
|
|
1756
|
+
to: Jt(w)
|
|
1747
1757
|
})),
|
|
1748
1758
|
placeholder: it(0, e),
|
|
1749
1759
|
value: it(b.to ?? null, e)
|
|
@@ -1763,7 +1773,7 @@ function jo({
|
|
|
1763
1773
|
/* @__PURE__ */ t.jsx(
|
|
1764
1774
|
X,
|
|
1765
1775
|
{
|
|
1766
|
-
onClick:
|
|
1776
|
+
onClick: L,
|
|
1767
1777
|
size: "sm",
|
|
1768
1778
|
children: d?.confirm ?? "Confirm"
|
|
1769
1779
|
}
|
|
@@ -1776,7 +1786,7 @@ function jo({
|
|
|
1776
1786
|
}
|
|
1777
1787
|
);
|
|
1778
1788
|
}
|
|
1779
|
-
function
|
|
1789
|
+
function Oe({
|
|
1780
1790
|
className: e,
|
|
1781
1791
|
classNames: s,
|
|
1782
1792
|
showOutsideDays: o = !0,
|
|
@@ -1786,9 +1796,9 @@ function Ee({
|
|
|
1786
1796
|
components: i,
|
|
1787
1797
|
...d
|
|
1788
1798
|
}) {
|
|
1789
|
-
const c =
|
|
1799
|
+
const c = ys();
|
|
1790
1800
|
return /* @__PURE__ */ t.jsx(
|
|
1791
|
-
|
|
1801
|
+
Cs,
|
|
1792
1802
|
{
|
|
1793
1803
|
captionLayout: a,
|
|
1794
1804
|
className: l(
|
|
@@ -1799,14 +1809,14 @@ function Ee({
|
|
|
1799
1809
|
),
|
|
1800
1810
|
classNames: {
|
|
1801
1811
|
button_next: l(
|
|
1802
|
-
|
|
1812
|
+
Yt({
|
|
1803
1813
|
variant: n
|
|
1804
1814
|
}),
|
|
1805
1815
|
"t:h-[--cell-size] t:w-[--cell-size] t:select-none t:p-0 t:aria-disabled:opacity-50",
|
|
1806
1816
|
c.button_next
|
|
1807
1817
|
),
|
|
1808
1818
|
button_previous: l(
|
|
1809
|
-
|
|
1819
|
+
Yt({
|
|
1810
1820
|
variant: n
|
|
1811
1821
|
}),
|
|
1812
1822
|
"t:h-[--cell-size] t:w-[--cell-size] t:select-none t:p-0 t:aria-disabled:opacity-50",
|
|
@@ -1892,25 +1902,25 @@ function Ee({
|
|
|
1892
1902
|
components: {
|
|
1893
1903
|
// biome-ignore lint/correctness/noNestedComponentDefinitions: we need to define the Chevron component here
|
|
1894
1904
|
Chevron: ({ className: m, orientation: f, ...g }) => f === "left" ? /* @__PURE__ */ t.jsx(
|
|
1895
|
-
|
|
1905
|
+
ns,
|
|
1896
1906
|
{
|
|
1897
1907
|
className: l("t:size-4", m),
|
|
1898
1908
|
...g
|
|
1899
1909
|
}
|
|
1900
1910
|
) : f === "right" ? /* @__PURE__ */ t.jsx(
|
|
1901
|
-
|
|
1911
|
+
rs,
|
|
1902
1912
|
{
|
|
1903
1913
|
className: l("t:size-4", m),
|
|
1904
1914
|
...g
|
|
1905
1915
|
}
|
|
1906
1916
|
) : /* @__PURE__ */ t.jsx(
|
|
1907
|
-
|
|
1917
|
+
ls,
|
|
1908
1918
|
{
|
|
1909
1919
|
className: l("t:size-4", m),
|
|
1910
1920
|
...g
|
|
1911
1921
|
}
|
|
1912
1922
|
),
|
|
1913
|
-
DayButton:
|
|
1923
|
+
DayButton: yo,
|
|
1914
1924
|
// biome-ignore lint/correctness/noNestedComponentDefinitions: we need to define the Root component here
|
|
1915
1925
|
Root: ({ className: m, rootRef: f, ...g }) => /* @__PURE__ */ t.jsx(
|
|
1916
1926
|
"div",
|
|
@@ -1936,7 +1946,7 @@ function Ee({
|
|
|
1936
1946
|
}
|
|
1937
1947
|
);
|
|
1938
1948
|
}
|
|
1939
|
-
function
|
|
1949
|
+
function yo({
|
|
1940
1950
|
className: e,
|
|
1941
1951
|
day: s,
|
|
1942
1952
|
modifiers: o,
|
|
@@ -1961,7 +1971,7 @@ function No({
|
|
|
1961
1971
|
}
|
|
1962
1972
|
);
|
|
1963
1973
|
}
|
|
1964
|
-
const
|
|
1974
|
+
const se = G.Root, oe = G.Trigger, Mt = st.forwardRef(({ className: e, align: s = "center", sideOffset: o = 4, ...a }, n) => /* @__PURE__ */ t.jsx(G.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
1965
1975
|
G.Content,
|
|
1966
1976
|
{
|
|
1967
1977
|
align: s,
|
|
@@ -1975,31 +1985,31 @@ const ee = G.Root, se = G.Trigger, Mt = st.forwardRef(({ className: e, align: s
|
|
|
1975
1985
|
}
|
|
1976
1986
|
) }));
|
|
1977
1987
|
Mt.displayName = G.Content.displayName;
|
|
1978
|
-
const
|
|
1988
|
+
const Co = k({
|
|
1979
1989
|
slots: {
|
|
1980
1990
|
calendar: "",
|
|
1981
1991
|
content: "t:w-auto t:p-2"
|
|
1982
1992
|
}
|
|
1983
|
-
}),
|
|
1993
|
+
}), xr = J(
|
|
1984
1994
|
({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
|
|
1985
|
-
const c = x(), m = c?.components?.dateInput, f = c?.translations?.dateInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] =
|
|
1995
|
+
const c = x(), m = c?.components?.dateInput, f = c?.translations?.dateInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
|
|
1986
1996
|
e ?? s ?? null
|
|
1987
1997
|
), p = e !== void 0 ? e : j, N = (P) => {
|
|
1988
1998
|
const C = P ?? null;
|
|
1989
1999
|
v(C), i?.(C), h(!1);
|
|
1990
|
-
}, y = (P) => P ? _t(P, f?.format ?? "dd/MM/yyyy") : o ?? "", { content: R, calendar:
|
|
2000
|
+
}, y = (P) => P ? _t(P, f?.format ?? "dd/MM/yyyy") : o ?? "", { content: R, calendar: O } = Co();
|
|
1991
2001
|
return /* @__PURE__ */ t.jsxs(
|
|
1992
|
-
|
|
2002
|
+
se,
|
|
1993
2003
|
{
|
|
1994
2004
|
onOpenChange: h,
|
|
1995
2005
|
open: b,
|
|
1996
2006
|
children: [
|
|
1997
|
-
/* @__PURE__ */ t.jsx(
|
|
1998
|
-
|
|
2007
|
+
/* @__PURE__ */ t.jsx(oe, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2008
|
+
dt,
|
|
1999
2009
|
{
|
|
2000
2010
|
className: "t:cursor-pointer t:text-left",
|
|
2001
2011
|
disabled: g,
|
|
2002
|
-
leftSection: /* @__PURE__ */ t.jsx(
|
|
2012
|
+
leftSection: /* @__PURE__ */ t.jsx(we, { className: "t:h-4 t:w-4" }),
|
|
2003
2013
|
loading: r,
|
|
2004
2014
|
readOnly: !0,
|
|
2005
2015
|
rootClassName: "t:min-w-[160px]",
|
|
@@ -2013,9 +2023,9 @@ const yo = k({
|
|
|
2013
2023
|
align: "start",
|
|
2014
2024
|
className: l(R(), m?.classNames?.content),
|
|
2015
2025
|
children: /* @__PURE__ */ t.jsx(
|
|
2016
|
-
|
|
2026
|
+
Oe,
|
|
2017
2027
|
{
|
|
2018
|
-
className: l(
|
|
2028
|
+
className: l(O(), m?.classNames?.calendar),
|
|
2019
2029
|
disabled: g,
|
|
2020
2030
|
mode: "single",
|
|
2021
2031
|
onSelect: N,
|
|
@@ -2028,14 +2038,14 @@ const yo = k({
|
|
|
2028
2038
|
}
|
|
2029
2039
|
);
|
|
2030
2040
|
}
|
|
2031
|
-
),
|
|
2041
|
+
), wo = k({
|
|
2032
2042
|
slots: {
|
|
2033
2043
|
calendar: "",
|
|
2034
2044
|
content: "t:w-auto t:p-2"
|
|
2035
2045
|
}
|
|
2036
|
-
}),
|
|
2046
|
+
}), hr = J(
|
|
2037
2047
|
({ value: e, defaultValue: s, placeholder: o, size: a, disabled: n, loading: r, onChange: i }, d) => {
|
|
2038
|
-
const c = x(), m = c?.components?.dateRangeInput, f = c?.translations?.dateRangeInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] =
|
|
2048
|
+
const c = x(), m = c?.components?.dateRangeInput, f = c?.translations?.dateRangeInput, g = n ?? m?.defaultProps?.disabled ?? !1, [b, h] = E(!1), [j, v] = E(
|
|
2039
2049
|
e ?? s ?? null
|
|
2040
2050
|
), p = e !== void 0 ? e : j, N = (P) => {
|
|
2041
2051
|
const C = P ?? null;
|
|
@@ -2043,21 +2053,21 @@ const yo = k({
|
|
|
2043
2053
|
}, y = (P) => {
|
|
2044
2054
|
if (!P?.from)
|
|
2045
2055
|
return o ?? "";
|
|
2046
|
-
const C = f?.format ?? "dd/MM/yyyy",
|
|
2047
|
-
return P.to ? `${_t(P.from, C)} ${
|
|
2048
|
-
}, { content: R, calendar:
|
|
2056
|
+
const C = f?.format ?? "dd/MM/yyyy", L = f?.separator ?? "~";
|
|
2057
|
+
return P.to ? `${_t(P.from, C)} ${L} ${_t(P.to, C)}` : _t(P.from, C);
|
|
2058
|
+
}, { content: R, calendar: O } = wo();
|
|
2049
2059
|
return /* @__PURE__ */ t.jsxs(
|
|
2050
|
-
|
|
2060
|
+
se,
|
|
2051
2061
|
{
|
|
2052
2062
|
onOpenChange: h,
|
|
2053
2063
|
open: b,
|
|
2054
2064
|
children: [
|
|
2055
|
-
/* @__PURE__ */ t.jsx(
|
|
2056
|
-
|
|
2065
|
+
/* @__PURE__ */ t.jsx(oe, { asChild: !0, children: /* @__PURE__ */ t.jsx(
|
|
2066
|
+
dt,
|
|
2057
2067
|
{
|
|
2058
2068
|
className: "t:cursor-pointer t:text-left",
|
|
2059
2069
|
disabled: g,
|
|
2060
|
-
leftSection: /* @__PURE__ */ t.jsx(
|
|
2070
|
+
leftSection: /* @__PURE__ */ t.jsx(we, { className: "t:h-4 t:w-4" }),
|
|
2061
2071
|
loading: r,
|
|
2062
2072
|
readOnly: !0,
|
|
2063
2073
|
rootClassName: "t:min-w-[235px]",
|
|
@@ -2071,9 +2081,9 @@ const yo = k({
|
|
|
2071
2081
|
align: "start",
|
|
2072
2082
|
className: l(R(), m?.classNames?.content),
|
|
2073
2083
|
children: /* @__PURE__ */ t.jsx(
|
|
2074
|
-
|
|
2084
|
+
Oe,
|
|
2075
2085
|
{
|
|
2076
|
-
className: l(
|
|
2086
|
+
className: l(O(), m?.classNames?.calendar),
|
|
2077
2087
|
disabled: g,
|
|
2078
2088
|
mode: "range",
|
|
2079
2089
|
numberOfMonths: 2,
|
|
@@ -2090,7 +2100,7 @@ const yo = k({
|
|
|
2090
2100
|
}
|
|
2091
2101
|
);
|
|
2092
2102
|
}
|
|
2093
|
-
),
|
|
2103
|
+
), qt = J(
|
|
2094
2104
|
({
|
|
2095
2105
|
mask: e,
|
|
2096
2106
|
value: s,
|
|
@@ -2106,15 +2116,15 @@ const yo = k({
|
|
|
2106
2116
|
}, g) => {
|
|
2107
2117
|
const h = x()?.components?.maskInput, j = n ?? h?.defaultProps?.size ?? "md", v = d ?? h?.defaultProps?.disabled ?? !1, p = c ?? h?.defaultProps?.loading ?? !1, N = !!r, y = !!i || p, {
|
|
2108
2118
|
root: R,
|
|
2109
|
-
input:
|
|
2119
|
+
input: O,
|
|
2110
2120
|
leftSection: P,
|
|
2111
2121
|
rightSection: C,
|
|
2112
|
-
loader:
|
|
2113
|
-
} =
|
|
2122
|
+
loader: L
|
|
2123
|
+
} = Tt({
|
|
2114
2124
|
hasLeft: N,
|
|
2115
2125
|
hasRight: y,
|
|
2116
2126
|
size: j
|
|
2117
|
-
}),
|
|
2127
|
+
}), z = (w) => {
|
|
2118
2128
|
f?.(w === "" ? null : w);
|
|
2119
2129
|
};
|
|
2120
2130
|
return /* @__PURE__ */ t.jsxs("div", { className: l(R(), h?.classNames?.root), children: [
|
|
@@ -2126,9 +2136,9 @@ const yo = k({
|
|
|
2126
2136
|
}
|
|
2127
2137
|
),
|
|
2128
2138
|
/* @__PURE__ */ t.jsx(
|
|
2129
|
-
|
|
2139
|
+
ws,
|
|
2130
2140
|
{
|
|
2131
|
-
className: l(
|
|
2141
|
+
className: l(O(), h?.classNames?.input, m),
|
|
2132
2142
|
disabled: v,
|
|
2133
2143
|
inputRef: g,
|
|
2134
2144
|
mask: Array.isArray(e) ? e.map((w) => ({
|
|
@@ -2138,7 +2148,7 @@ const yo = k({
|
|
|
2138
2148
|
mask: e
|
|
2139
2149
|
}
|
|
2140
2150
|
],
|
|
2141
|
-
onAccept:
|
|
2151
|
+
onAccept: z,
|
|
2142
2152
|
placeholder: a,
|
|
2143
2153
|
value: s ?? o ?? void 0
|
|
2144
2154
|
}
|
|
@@ -2151,30 +2161,30 @@ const yo = k({
|
|
|
2151
2161
|
h?.classNames?.rightSection
|
|
2152
2162
|
),
|
|
2153
2163
|
children: [
|
|
2154
|
-
p && /* @__PURE__ */ t.jsx("div", { className: l(
|
|
2164
|
+
p && /* @__PURE__ */ t.jsx("div", { className: l(L(), h?.classNames?.loader), children: /* @__PURE__ */ t.jsx(ee, { size: "sm" }) }),
|
|
2155
2165
|
i
|
|
2156
2166
|
]
|
|
2157
2167
|
}
|
|
2158
2168
|
)
|
|
2159
2169
|
] });
|
|
2160
2170
|
}
|
|
2161
|
-
),
|
|
2162
|
-
function
|
|
2163
|
-
return e === "cpf" ?
|
|
2171
|
+
), ko = "000.000.000-00", So = "00.000.000/0000-00";
|
|
2172
|
+
function Ro(e) {
|
|
2173
|
+
return e === "cpf" ? ko : So;
|
|
2164
2174
|
}
|
|
2165
2175
|
function Pt(e) {
|
|
2166
2176
|
return e === "cpf" ? "CPF" : "CNPJ";
|
|
2167
2177
|
}
|
|
2168
|
-
const
|
|
2178
|
+
const To = k({
|
|
2169
2179
|
slots: {
|
|
2170
2180
|
root: "t:relative t:flex t:w-full",
|
|
2171
2181
|
typeSelector: "t:flex t:h-10 t:cursor-pointer t:items-center t:gap-1 t:rounded-l-md t:border t:border-input t:border-r-0 t:bg-transparent t:px-3 t:text-sm t:transition-colors t:hover:bg-accent t:disabled:pointer-events-none t:disabled:opacity-50"
|
|
2172
2182
|
}
|
|
2173
|
-
}),
|
|
2183
|
+
}), br = J(
|
|
2174
2184
|
({ variant: e, value: s, defaultValue: o, onChange: a, placeholder: n, disabled: r, ...i }, d) => {
|
|
2175
|
-
const c = x(), m = c?.components?.documentInput, f = c?.translations?.documentInput, [g, b] =
|
|
2185
|
+
const c = x(), m = c?.components?.documentInput, f = c?.translations?.documentInput, [g, b] = E(
|
|
2176
2186
|
(s?.type !== "any" ? s?.type : void 0) ?? (o?.type !== "any" ? o?.type : void 0) ?? (e === "any" ? "cpf" : e)
|
|
2177
|
-
), h = e === "any" ? g : e, j =
|
|
2187
|
+
), h = e === "any" ? g : e, j = Ro(h);
|
|
2178
2188
|
function v(y) {
|
|
2179
2189
|
if (!y) {
|
|
2180
2190
|
a?.(null);
|
|
@@ -2187,7 +2197,7 @@ const Ro = k({
|
|
|
2187
2197
|
}
|
|
2188
2198
|
if (e !== "any")
|
|
2189
2199
|
return /* @__PURE__ */ t.jsx(
|
|
2190
|
-
|
|
2200
|
+
qt,
|
|
2191
2201
|
{
|
|
2192
2202
|
...i,
|
|
2193
2203
|
defaultValue: o?.number,
|
|
@@ -2199,7 +2209,7 @@ const Ro = k({
|
|
|
2199
2209
|
value: s?.number
|
|
2200
2210
|
}
|
|
2201
2211
|
);
|
|
2202
|
-
const { root: p, typeSelector: N } =
|
|
2212
|
+
const { root: p, typeSelector: N } = To();
|
|
2203
2213
|
return /* @__PURE__ */ t.jsxs("div", { className: l(p(), m?.classNames?.root), children: [
|
|
2204
2214
|
/* @__PURE__ */ t.jsxs(V.Root, { children: [
|
|
2205
2215
|
/* @__PURE__ */ t.jsx(V.Trigger, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
@@ -2235,8 +2245,8 @@ const Ro = k({
|
|
|
2235
2245
|
}
|
|
2236
2246
|
) })
|
|
2237
2247
|
] }),
|
|
2238
|
-
/* @__PURE__ */ t.jsx("div", { className: "t:flex-1", children: /* @__PURE__ */
|
|
2239
|
-
|
|
2248
|
+
/* @__PURE__ */ t.jsx("div", { className: "t:flex-1", children: /* @__PURE__ */ Ce(
|
|
2249
|
+
qt,
|
|
2240
2250
|
{
|
|
2241
2251
|
...i,
|
|
2242
2252
|
className: "t:rounded-l-none",
|
|
@@ -2296,13 +2306,13 @@ function zo({
|
|
|
2296
2306
|
}
|
|
2297
2307
|
);
|
|
2298
2308
|
}
|
|
2299
|
-
function
|
|
2309
|
+
function Po({
|
|
2300
2310
|
asChild: e,
|
|
2301
2311
|
children: s
|
|
2302
2312
|
}) {
|
|
2303
2313
|
return /* @__PURE__ */ t.jsx(V.Trigger, { asChild: e, children: s });
|
|
2304
2314
|
}
|
|
2305
|
-
function
|
|
2315
|
+
function Io({
|
|
2306
2316
|
side: e,
|
|
2307
2317
|
align: s,
|
|
2308
2318
|
sideOffset: o = 4,
|
|
@@ -2320,7 +2330,7 @@ function Po({
|
|
|
2320
2330
|
}
|
|
2321
2331
|
) });
|
|
2322
2332
|
}
|
|
2323
|
-
function
|
|
2333
|
+
function _o({
|
|
2324
2334
|
variant: e,
|
|
2325
2335
|
disabled: s,
|
|
2326
2336
|
asChild: o,
|
|
@@ -2341,7 +2351,7 @@ function Io({
|
|
|
2341
2351
|
}
|
|
2342
2352
|
);
|
|
2343
2353
|
}
|
|
2344
|
-
function
|
|
2354
|
+
function Eo({
|
|
2345
2355
|
checked: e,
|
|
2346
2356
|
disabled: s,
|
|
2347
2357
|
onCheckedChange: o,
|
|
@@ -2356,13 +2366,13 @@ function _o({
|
|
|
2356
2366
|
disabled: s,
|
|
2357
2367
|
onCheckedChange: o,
|
|
2358
2368
|
children: [
|
|
2359
|
-
/* @__PURE__ */ t.jsx("span", { className: d(), children: /* @__PURE__ */ t.jsx(V.ItemIndicator, { children: /* @__PURE__ */ t.jsx(
|
|
2369
|
+
/* @__PURE__ */ t.jsx("span", { className: d(), children: /* @__PURE__ */ t.jsx(V.ItemIndicator, { children: /* @__PURE__ */ t.jsx(Kt, { className: "t:h-4 t:w-4" }) }) }),
|
|
2360
2370
|
a
|
|
2361
2371
|
]
|
|
2362
2372
|
}
|
|
2363
2373
|
);
|
|
2364
2374
|
}
|
|
2365
|
-
function
|
|
2375
|
+
function Oo({
|
|
2366
2376
|
value: e,
|
|
2367
2377
|
onValueChange: s,
|
|
2368
2378
|
children: o
|
|
@@ -2376,7 +2386,7 @@ function Eo({
|
|
|
2376
2386
|
}
|
|
2377
2387
|
);
|
|
2378
2388
|
}
|
|
2379
|
-
function
|
|
2389
|
+
function Lo({
|
|
2380
2390
|
value: e,
|
|
2381
2391
|
disabled: s,
|
|
2382
2392
|
children: o
|
|
@@ -2389,7 +2399,7 @@ function Oo({
|
|
|
2389
2399
|
disabled: s,
|
|
2390
2400
|
value: e,
|
|
2391
2401
|
children: [
|
|
2392
|
-
/* @__PURE__ */ t.jsx("span", { className: i(), children: /* @__PURE__ */ t.jsx(V.ItemIndicator, { children: /* @__PURE__ */ t.jsx(
|
|
2402
|
+
/* @__PURE__ */ t.jsx("span", { className: i(), children: /* @__PURE__ */ t.jsx(V.ItemIndicator, { children: /* @__PURE__ */ t.jsx(Xt, { className: "t:h-1.5 t:w-1.5 t:fill-current" }) }) }),
|
|
2393
2403
|
o
|
|
2394
2404
|
]
|
|
2395
2405
|
}
|
|
@@ -2410,7 +2420,7 @@ function $o({
|
|
|
2410
2420
|
}
|
|
2411
2421
|
);
|
|
2412
2422
|
}
|
|
2413
|
-
function
|
|
2423
|
+
function Ao() {
|
|
2414
2424
|
const s = x()?.components?.dropdownMenu?.separator, { separator: o } = nt();
|
|
2415
2425
|
return /* @__PURE__ */ t.jsx(
|
|
2416
2426
|
V.Separator,
|
|
@@ -2419,17 +2429,17 @@ function Lo() {
|
|
|
2419
2429
|
}
|
|
2420
2430
|
);
|
|
2421
2431
|
}
|
|
2422
|
-
function
|
|
2432
|
+
function Mo({ children: e }) {
|
|
2423
2433
|
const o = x()?.components?.dropdownMenu?.shortcut, { shortcut: a } = nt();
|
|
2424
2434
|
return /* @__PURE__ */ t.jsx("span", { className: l(a(), o?.classNames?.root), children: e });
|
|
2425
2435
|
}
|
|
2426
|
-
function
|
|
2436
|
+
function Vo({ children: e }) {
|
|
2427
2437
|
return /* @__PURE__ */ t.jsx(V.Group, { children: e });
|
|
2428
2438
|
}
|
|
2429
|
-
function
|
|
2439
|
+
function Do({ children: e }) {
|
|
2430
2440
|
return /* @__PURE__ */ t.jsx(V.Sub, { children: e });
|
|
2431
2441
|
}
|
|
2432
|
-
function
|
|
2442
|
+
function Fo({
|
|
2433
2443
|
inset: e,
|
|
2434
2444
|
children: s
|
|
2435
2445
|
}) {
|
|
@@ -2447,7 +2457,7 @@ function Do({
|
|
|
2447
2457
|
}
|
|
2448
2458
|
);
|
|
2449
2459
|
}
|
|
2450
|
-
function
|
|
2460
|
+
function Bo({ children: e }) {
|
|
2451
2461
|
const o = x()?.components?.dropdownMenu?.subContent, { subContent: a } = nt();
|
|
2452
2462
|
return /* @__PURE__ */ t.jsx(V.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
2453
2463
|
V.SubContent,
|
|
@@ -2457,22 +2467,22 @@ function Fo({ children: e }) {
|
|
|
2457
2467
|
}
|
|
2458
2468
|
) });
|
|
2459
2469
|
}
|
|
2460
|
-
const
|
|
2461
|
-
CheckboxItem:
|
|
2462
|
-
Content:
|
|
2463
|
-
Group:
|
|
2464
|
-
Item:
|
|
2470
|
+
const vr = Object.assign(zo, {
|
|
2471
|
+
CheckboxItem: Eo,
|
|
2472
|
+
Content: Io,
|
|
2473
|
+
Group: Vo,
|
|
2474
|
+
Item: _o,
|
|
2465
2475
|
Label: $o,
|
|
2466
|
-
RadioGroup:
|
|
2467
|
-
RadioItem:
|
|
2468
|
-
Separator:
|
|
2469
|
-
Shortcut:
|
|
2470
|
-
Sub:
|
|
2471
|
-
SubContent:
|
|
2472
|
-
SubTrigger:
|
|
2473
|
-
Trigger:
|
|
2474
|
-
}),
|
|
2475
|
-
base: "t:flex t:
|
|
2476
|
+
RadioGroup: Oo,
|
|
2477
|
+
RadioItem: Lo,
|
|
2478
|
+
Separator: Ao,
|
|
2479
|
+
Shortcut: Mo,
|
|
2480
|
+
Sub: Do,
|
|
2481
|
+
SubContent: Bo,
|
|
2482
|
+
SubTrigger: Fo,
|
|
2483
|
+
Trigger: Po
|
|
2484
|
+
}), Ho = k({
|
|
2485
|
+
base: "t:flex t:h-full",
|
|
2476
2486
|
defaultVariants: {
|
|
2477
2487
|
align: "start",
|
|
2478
2488
|
direction: "row",
|
|
@@ -2488,6 +2498,9 @@ const hr = Object.assign(zo, {
|
|
|
2488
2498
|
start: "t:items-start",
|
|
2489
2499
|
stretch: "t:items-stretch"
|
|
2490
2500
|
},
|
|
2501
|
+
block: {
|
|
2502
|
+
true: "t:w-full"
|
|
2503
|
+
},
|
|
2491
2504
|
direction: {
|
|
2492
2505
|
col: "t:flex-col",
|
|
2493
2506
|
"col-reverse": "t:flex-col-reverse",
|
|
@@ -2526,7 +2539,7 @@ const hr = Object.assign(zo, {
|
|
|
2526
2539
|
}
|
|
2527
2540
|
}
|
|
2528
2541
|
});
|
|
2529
|
-
function
|
|
2542
|
+
function jr({
|
|
2530
2543
|
direction: e,
|
|
2531
2544
|
justify: s,
|
|
2532
2545
|
align: o,
|
|
@@ -2534,13 +2547,15 @@ function br({
|
|
|
2534
2547
|
wrap: n,
|
|
2535
2548
|
inline: r,
|
|
2536
2549
|
minHeight: i,
|
|
2537
|
-
|
|
2550
|
+
block: d,
|
|
2551
|
+
children: c
|
|
2538
2552
|
}) {
|
|
2539
2553
|
return /* @__PURE__ */ t.jsx(
|
|
2540
2554
|
"div",
|
|
2541
2555
|
{
|
|
2542
|
-
className:
|
|
2556
|
+
className: Ho({
|
|
2543
2557
|
align: o,
|
|
2558
|
+
block: d,
|
|
2544
2559
|
direction: e,
|
|
2545
2560
|
gap: a,
|
|
2546
2561
|
inline: r,
|
|
@@ -2548,24 +2563,24 @@ function br({
|
|
|
2548
2563
|
minHeight: i,
|
|
2549
2564
|
wrap: n
|
|
2550
2565
|
}),
|
|
2551
|
-
children:
|
|
2566
|
+
children: c
|
|
2552
2567
|
}
|
|
2553
2568
|
);
|
|
2554
2569
|
}
|
|
2555
|
-
const
|
|
2570
|
+
const Go = k({
|
|
2556
2571
|
slots: {
|
|
2557
2572
|
content: "t:fade-in-0 t:zoom-in-95 data-[state=closed]:t:fade-out-0 data-[state=closed]:t:zoom-out-95 data-[side=bottom]:t:slide-in-from-top-2 data-[side=left]:t:slide-in-from-right-2 data-[side=right]:t:slide-in-from-left-2 data-[side=top]:t:slide-in-from-bottom-2 t:z-50 t:animate-in t:overflow-hidden t:rounded-md t:border t:bg-popover t:px-3 t:py-1.5 t:text-popover-foreground t:text-sm t:shadow-md data-[state=closed]:t:animate-out",
|
|
2558
2573
|
root: ""
|
|
2559
2574
|
}
|
|
2560
2575
|
});
|
|
2561
|
-
function
|
|
2576
|
+
function ae({
|
|
2562
2577
|
content: e,
|
|
2563
2578
|
side: s = "top",
|
|
2564
2579
|
sideOffset: o = 4,
|
|
2565
2580
|
delayDuration: a,
|
|
2566
2581
|
children: n
|
|
2567
2582
|
}) {
|
|
2568
|
-
const i = x()?.components?.tooltip, { content: d } =
|
|
2583
|
+
const i = x()?.components?.tooltip, { content: d } = Go();
|
|
2569
2584
|
return /* @__PURE__ */ t.jsxs(et.Root, { delayDuration: a, children: [
|
|
2570
2585
|
/* @__PURE__ */ t.jsx(et.Trigger, { asChild: !0, children: n }),
|
|
2571
2586
|
/* @__PURE__ */ t.jsx(et.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
@@ -2579,7 +2594,7 @@ function oe({
|
|
|
2579
2594
|
) })
|
|
2580
2595
|
] });
|
|
2581
2596
|
}
|
|
2582
|
-
const
|
|
2597
|
+
const Uo = k({
|
|
2583
2598
|
slots: {
|
|
2584
2599
|
optional: "t:ml-1 t:text-muted-foreground t:text-xs",
|
|
2585
2600
|
required: "t:ml-0.5 t:text-destructive",
|
|
@@ -2594,7 +2609,7 @@ const Go = k({
|
|
|
2594
2609
|
}
|
|
2595
2610
|
}
|
|
2596
2611
|
});
|
|
2597
|
-
function
|
|
2612
|
+
function ne({
|
|
2598
2613
|
htmlFor: e,
|
|
2599
2614
|
required: s,
|
|
2600
2615
|
optional: o,
|
|
@@ -2607,11 +2622,11 @@ function ae({
|
|
|
2607
2622
|
required: m,
|
|
2608
2623
|
optional: f,
|
|
2609
2624
|
tooltipIcon: g
|
|
2610
|
-
} =
|
|
2625
|
+
} = Uo({
|
|
2611
2626
|
disabled: !!a
|
|
2612
2627
|
});
|
|
2613
2628
|
return /* @__PURE__ */ t.jsxs(
|
|
2614
|
-
|
|
2629
|
+
ks.Root,
|
|
2615
2630
|
{
|
|
2616
2631
|
className: c(),
|
|
2617
2632
|
htmlFor: e,
|
|
@@ -2619,12 +2634,12 @@ function ae({
|
|
|
2619
2634
|
r,
|
|
2620
2635
|
s && /* @__PURE__ */ t.jsx("span", { className: m(), children: d?.required ?? " *" }),
|
|
2621
2636
|
o && /* @__PURE__ */ t.jsx("span", { className: f(), children: d?.optional ?? " (optional)" }),
|
|
2622
|
-
n && /* @__PURE__ */ t.jsx(
|
|
2637
|
+
n && /* @__PURE__ */ t.jsx(ae, { content: n, children: /* @__PURE__ */ t.jsx(Qt, { className: g() }) })
|
|
2623
2638
|
]
|
|
2624
2639
|
}
|
|
2625
2640
|
);
|
|
2626
2641
|
}
|
|
2627
|
-
const
|
|
2642
|
+
const re = k({
|
|
2628
2643
|
slots: {
|
|
2629
2644
|
description: "t:text-muted-foreground t:text-sm",
|
|
2630
2645
|
error: "t:text-destructive t:text-sm",
|
|
@@ -2634,8 +2649,8 @@ const ne = k({
|
|
|
2634
2649
|
root: "t:space-y-4"
|
|
2635
2650
|
}
|
|
2636
2651
|
});
|
|
2637
|
-
function
|
|
2638
|
-
const a = x()?.components?.form?.default, { root: n } =
|
|
2652
|
+
function Yo({ onSubmit: e, children: s }) {
|
|
2653
|
+
const a = x()?.components?.form?.default, { root: n } = re();
|
|
2639
2654
|
return /* @__PURE__ */ t.jsx(
|
|
2640
2655
|
"form",
|
|
2641
2656
|
{
|
|
@@ -2645,7 +2660,7 @@ function Uo({ onSubmit: e, children: s }) {
|
|
|
2645
2660
|
}
|
|
2646
2661
|
);
|
|
2647
2662
|
}
|
|
2648
|
-
function
|
|
2663
|
+
function be({
|
|
2649
2664
|
htmlFor: e,
|
|
2650
2665
|
required: s,
|
|
2651
2666
|
optional: o,
|
|
@@ -2654,7 +2669,7 @@ function he({
|
|
|
2654
2669
|
children: r
|
|
2655
2670
|
}) {
|
|
2656
2671
|
return /* @__PURE__ */ t.jsx(
|
|
2657
|
-
|
|
2672
|
+
ne,
|
|
2658
2673
|
{
|
|
2659
2674
|
disabled: a,
|
|
2660
2675
|
htmlFor: e,
|
|
@@ -2665,7 +2680,7 @@ function he({
|
|
|
2665
2680
|
}
|
|
2666
2681
|
);
|
|
2667
2682
|
}
|
|
2668
|
-
function
|
|
2683
|
+
function Wo({
|
|
2669
2684
|
children: e,
|
|
2670
2685
|
label: s,
|
|
2671
2686
|
labelFloating: o,
|
|
@@ -2673,7 +2688,7 @@ function Yo({
|
|
|
2673
2688
|
description: n,
|
|
2674
2689
|
error: r
|
|
2675
2690
|
}) {
|
|
2676
|
-
const d = x()?.components?.form?.field, { field: c, description: m, error: f } =
|
|
2691
|
+
const d = x()?.components?.form?.field, { field: c, description: m, error: f } = re(), g = typeof s == "string" ? s : s?.content, b = typeof s == "object" && s !== null ? s : void 0;
|
|
2677
2692
|
return o && g ? /* @__PURE__ */ t.jsxs(
|
|
2678
2693
|
"div",
|
|
2679
2694
|
{
|
|
@@ -2682,7 +2697,7 @@ function Yo({
|
|
|
2682
2697
|
n && /* @__PURE__ */ t.jsx("p", { className: m(), children: n }),
|
|
2683
2698
|
/* @__PURE__ */ t.jsxs("div", { className: "turystack-floating-label t:relative", children: [
|
|
2684
2699
|
/* @__PURE__ */ t.jsx(
|
|
2685
|
-
|
|
2700
|
+
be,
|
|
2686
2701
|
{
|
|
2687
2702
|
disabled: b?.disabled,
|
|
2688
2703
|
htmlFor: b?.htmlFor ?? a,
|
|
@@ -2699,7 +2714,7 @@ function Yo({
|
|
|
2699
2714
|
}
|
|
2700
2715
|
) : /* @__PURE__ */ t.jsxs("div", { className: l(c(), d?.classNames?.root), children: [
|
|
2701
2716
|
g && /* @__PURE__ */ t.jsx(
|
|
2702
|
-
|
|
2717
|
+
be,
|
|
2703
2718
|
{
|
|
2704
2719
|
disabled: b?.disabled,
|
|
2705
2720
|
htmlFor: b?.htmlFor ?? a,
|
|
@@ -2714,32 +2729,32 @@ function Yo({
|
|
|
2714
2729
|
r && /* @__PURE__ */ t.jsx("p", { className: f(), children: r })
|
|
2715
2730
|
] });
|
|
2716
2731
|
}
|
|
2717
|
-
function
|
|
2732
|
+
function Jo({
|
|
2718
2733
|
legend: e,
|
|
2719
2734
|
tooltip: s,
|
|
2720
2735
|
children: o
|
|
2721
2736
|
}) {
|
|
2722
|
-
const n = x()?.components?.form?.fieldSet, { fieldSet: r, legend: i } =
|
|
2737
|
+
const n = x()?.components?.form?.fieldSet, { fieldSet: r, legend: i } = re();
|
|
2723
2738
|
return /* @__PURE__ */ t.jsxs("fieldset", { className: l(r(), n?.classNames?.root), children: [
|
|
2724
2739
|
e && /* @__PURE__ */ t.jsxs("legend", { className: l(i(), n?.classNames?.legend), children: [
|
|
2725
2740
|
e,
|
|
2726
2741
|
s && /* @__PURE__ */ t.jsx(
|
|
2727
|
-
|
|
2742
|
+
ae,
|
|
2728
2743
|
{
|
|
2729
2744
|
...typeof s == "string" ? {
|
|
2730
2745
|
content: s
|
|
2731
2746
|
} : s,
|
|
2732
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2747
|
+
children: /* @__PURE__ */ t.jsx(Qt, { className: "t:ml-1 t:inline-block t:h-3.5 t:w-3.5 t:shrink-0 t:cursor-help t:text-muted-foreground" })
|
|
2733
2748
|
}
|
|
2734
2749
|
)
|
|
2735
2750
|
] }),
|
|
2736
2751
|
o
|
|
2737
2752
|
] });
|
|
2738
2753
|
}
|
|
2739
|
-
const
|
|
2740
|
-
Field:
|
|
2741
|
-
FieldSet:
|
|
2742
|
-
}),
|
|
2754
|
+
const Nr = Object.assign(Yo, {
|
|
2755
|
+
Field: Wo,
|
|
2756
|
+
FieldSet: Jo
|
|
2757
|
+
}), qo = k({
|
|
2743
2758
|
base: "t:grid",
|
|
2744
2759
|
defaultVariants: {
|
|
2745
2760
|
cols: 1,
|
|
@@ -2769,7 +2784,7 @@ const vr = Object.assign(Uo, {
|
|
|
2769
2784
|
xs: "t:gap-1"
|
|
2770
2785
|
}
|
|
2771
2786
|
}
|
|
2772
|
-
}),
|
|
2787
|
+
}), Zo = k({
|
|
2773
2788
|
base: "",
|
|
2774
2789
|
variants: {
|
|
2775
2790
|
span: {
|
|
@@ -2789,11 +2804,11 @@ const vr = Object.assign(Uo, {
|
|
|
2789
2804
|
}
|
|
2790
2805
|
}
|
|
2791
2806
|
});
|
|
2792
|
-
function
|
|
2807
|
+
function Ko({ cols: e, gap: s, children: o }) {
|
|
2793
2808
|
return /* @__PURE__ */ t.jsx(
|
|
2794
2809
|
"div",
|
|
2795
2810
|
{
|
|
2796
|
-
className:
|
|
2811
|
+
className: qo({
|
|
2797
2812
|
cols: e,
|
|
2798
2813
|
gap: s
|
|
2799
2814
|
}),
|
|
@@ -2801,20 +2816,20 @@ function Zo({ cols: e, gap: s, children: o }) {
|
|
|
2801
2816
|
}
|
|
2802
2817
|
);
|
|
2803
2818
|
}
|
|
2804
|
-
function
|
|
2819
|
+
function Xo({ span: e, children: s }) {
|
|
2805
2820
|
return /* @__PURE__ */ t.jsx(
|
|
2806
2821
|
"div",
|
|
2807
2822
|
{
|
|
2808
|
-
className:
|
|
2823
|
+
className: Zo({
|
|
2809
2824
|
span: e
|
|
2810
2825
|
}),
|
|
2811
2826
|
children: s
|
|
2812
2827
|
}
|
|
2813
2828
|
);
|
|
2814
2829
|
}
|
|
2815
|
-
const
|
|
2816
|
-
Item:
|
|
2817
|
-
}),
|
|
2830
|
+
const yr = Object.assign(Ko, {
|
|
2831
|
+
Item: Xo
|
|
2832
|
+
}), Qo = k({
|
|
2818
2833
|
slots: {
|
|
2819
2834
|
inner: "",
|
|
2820
2835
|
root: "t:flex-1 t:overflow-auto"
|
|
@@ -2866,14 +2881,14 @@ const jr = Object.assign(Zo, {
|
|
|
2866
2881
|
}
|
|
2867
2882
|
}
|
|
2868
2883
|
});
|
|
2869
|
-
function
|
|
2884
|
+
function ta({
|
|
2870
2885
|
children: e,
|
|
2871
2886
|
padding: s,
|
|
2872
2887
|
paddingHorizontal: o,
|
|
2873
2888
|
paddingVertical: a,
|
|
2874
2889
|
maxWidth: n
|
|
2875
2890
|
}) {
|
|
2876
|
-
const i = x()?.components?.layout?.content, { root: d, inner: c } =
|
|
2891
|
+
const i = x()?.components?.layout?.content, { root: d, inner: c } = Qo({
|
|
2877
2892
|
maxWidth: n,
|
|
2878
2893
|
padding: s,
|
|
2879
2894
|
paddingHorizontal: o,
|
|
@@ -2881,17 +2896,17 @@ function Qo({
|
|
|
2881
2896
|
});
|
|
2882
2897
|
return /* @__PURE__ */ t.jsx("main", { className: l(d(), i?.classNames?.root), children: /* @__PURE__ */ t.jsx("div", { className: l(c(), i?.classNames?.inner), children: e }) });
|
|
2883
2898
|
}
|
|
2884
|
-
const
|
|
2885
|
-
function
|
|
2886
|
-
const e = ht(
|
|
2899
|
+
const Le = St(null);
|
|
2900
|
+
function ea() {
|
|
2901
|
+
const e = ht(Le);
|
|
2887
2902
|
if (!e)
|
|
2888
2903
|
throw new Error("useSidebar must be used within Layout");
|
|
2889
2904
|
return e;
|
|
2890
2905
|
}
|
|
2891
2906
|
function Vt() {
|
|
2892
|
-
return
|
|
2907
|
+
return ea();
|
|
2893
2908
|
}
|
|
2894
|
-
const
|
|
2909
|
+
const sa = k({
|
|
2895
2910
|
defaultVariants: {
|
|
2896
2911
|
size: "md"
|
|
2897
2912
|
},
|
|
@@ -2922,13 +2937,13 @@ const ea = k({
|
|
|
2922
2937
|
}
|
|
2923
2938
|
}
|
|
2924
2939
|
});
|
|
2925
|
-
function
|
|
2940
|
+
function oa({
|
|
2926
2941
|
children: e,
|
|
2927
2942
|
bordered: s,
|
|
2928
2943
|
sticky: o,
|
|
2929
2944
|
size: a
|
|
2930
2945
|
}) {
|
|
2931
|
-
const r = x()?.components?.layout?.footer, { root: i } =
|
|
2946
|
+
const r = x()?.components?.layout?.footer, { root: i } = sa({
|
|
2932
2947
|
bordered: s,
|
|
2933
2948
|
size: a,
|
|
2934
2949
|
sticky: o
|
|
@@ -2945,7 +2960,7 @@ function $e(e) {
|
|
|
2945
2960
|
) : s.push(o);
|
|
2946
2961
|
}), s;
|
|
2947
2962
|
}
|
|
2948
|
-
const
|
|
2963
|
+
const aa = k({
|
|
2949
2964
|
defaultVariants: {
|
|
2950
2965
|
size: "md"
|
|
2951
2966
|
},
|
|
@@ -2979,25 +2994,25 @@ const oa = k({
|
|
|
2979
2994
|
}
|
|
2980
2995
|
}
|
|
2981
2996
|
});
|
|
2982
|
-
function Le({ children: e }) {
|
|
2983
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e });
|
|
2984
|
-
}
|
|
2985
|
-
Le.displayName = "Header.Left";
|
|
2986
2997
|
function Ae({ children: e }) {
|
|
2987
2998
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e });
|
|
2988
2999
|
}
|
|
2989
|
-
Ae.displayName = "Header.
|
|
3000
|
+
Ae.displayName = "Header.Left";
|
|
2990
3001
|
function Me({ children: e }) {
|
|
2991
3002
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e });
|
|
2992
3003
|
}
|
|
2993
|
-
Me.displayName = "Header.
|
|
2994
|
-
function
|
|
3004
|
+
Me.displayName = "Header.Center";
|
|
3005
|
+
function Ve({ children: e }) {
|
|
3006
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: e });
|
|
3007
|
+
}
|
|
3008
|
+
Ve.displayName = "Header.Right";
|
|
3009
|
+
function na({
|
|
2995
3010
|
children: e,
|
|
2996
3011
|
bordered: s,
|
|
2997
3012
|
sticky: o,
|
|
2998
3013
|
size: a
|
|
2999
3014
|
}) {
|
|
3000
|
-
const r = x()?.components?.layout?.header, { root: i, left: d, center: c, right: m } =
|
|
3015
|
+
const r = x()?.components?.layout?.header, { root: i, left: d, center: c, right: m } = aa({
|
|
3001
3016
|
bordered: s,
|
|
3002
3017
|
size: a,
|
|
3003
3018
|
sticky: o
|
|
@@ -3019,28 +3034,28 @@ function aa({
|
|
|
3019
3034
|
/* @__PURE__ */ t.jsx("div", { className: l(m(), r?.classNames?.right), children: b })
|
|
3020
3035
|
] }) : h });
|
|
3021
3036
|
}
|
|
3022
|
-
const
|
|
3023
|
-
Center:
|
|
3024
|
-
Left:
|
|
3025
|
-
Right:
|
|
3026
|
-
}),
|
|
3037
|
+
const ra = Object.assign(na, {
|
|
3038
|
+
Center: Me,
|
|
3039
|
+
Left: Ae,
|
|
3040
|
+
Right: Ve
|
|
3041
|
+
}), la = k({
|
|
3027
3042
|
slots: {
|
|
3028
3043
|
root: "t:flex t:flex-1 t:flex-col t:overflow-hidden"
|
|
3029
3044
|
}
|
|
3030
3045
|
});
|
|
3031
|
-
function
|
|
3032
|
-
const o = x()?.components?.layout?.main, { root: a } =
|
|
3046
|
+
function ia({ children: e }) {
|
|
3047
|
+
const o = x()?.components?.layout?.main, { root: a } = la();
|
|
3033
3048
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
3034
3049
|
}
|
|
3035
|
-
const
|
|
3050
|
+
const ca = k({
|
|
3036
3051
|
base: "t:h-4 t:w-4 t:shrink-0 t:text-muted-foreground t:transition-transform t:duration-200",
|
|
3037
3052
|
variants: {
|
|
3038
3053
|
open: {
|
|
3039
3054
|
true: "t:rotate-180"
|
|
3040
3055
|
}
|
|
3041
3056
|
}
|
|
3042
|
-
}),
|
|
3043
|
-
function
|
|
3057
|
+
}), da = "t:z-50 t:min-w-[180px] t:rounded-md t:border t:border-border t:bg-popover t:p-1 t:text-popover-foreground t:shadow-md t:outline-none t:data-[state=open]:animate-in t:data-[state=closed]:animate-out t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=right]:slide-in-from-left-2";
|
|
3058
|
+
function De({
|
|
3044
3059
|
sub: e,
|
|
3045
3060
|
inPopover: s
|
|
3046
3061
|
}) {
|
|
@@ -3066,13 +3081,13 @@ function Ve({
|
|
|
3066
3081
|
}
|
|
3067
3082
|
);
|
|
3068
3083
|
}
|
|
3069
|
-
const
|
|
3070
|
-
function
|
|
3084
|
+
const ua = "t:z-50 t:overflow-hidden t:rounded-md t:border t:bg-popover t:px-3 t:py-1.5 t:text-popover-foreground t:text-sm t:shadow-md t:animate-in t:fade-in-0 t:zoom-in-95 data-[state=closed]:t:animate-out data-[state=closed]:t:fade-out-0 data-[state=closed]:t:zoom-out-95 t:data-[side=right]:slide-in-from-left-2";
|
|
3085
|
+
function ma({
|
|
3071
3086
|
item: e,
|
|
3072
3087
|
itemClass: s,
|
|
3073
3088
|
iconEl: o
|
|
3074
3089
|
}) {
|
|
3075
|
-
const [a, n] =
|
|
3090
|
+
const [a, n] = E(!1);
|
|
3076
3091
|
return /* @__PURE__ */ t.jsx(et.Provider, { delayDuration: 0, children: /* @__PURE__ */ t.jsxs(et.Root, { open: a ? !1 : void 0, children: [
|
|
3077
3092
|
/* @__PURE__ */ t.jsx(et.Trigger, { asChild: !0, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs(
|
|
3078
3093
|
G.Root,
|
|
@@ -3091,14 +3106,14 @@ function ua({
|
|
|
3091
3106
|
/* @__PURE__ */ t.jsx(G.Portal, { children: /* @__PURE__ */ t.jsxs(
|
|
3092
3107
|
G.Content,
|
|
3093
3108
|
{
|
|
3094
|
-
className:
|
|
3109
|
+
className: da,
|
|
3095
3110
|
side: "right",
|
|
3096
3111
|
sideOffset: 16,
|
|
3097
3112
|
children: [
|
|
3098
3113
|
/* @__PURE__ */ t.jsx("div", { className: "t:px-2 t:py-1.5 t:font-semibold t:text-popover-foreground t:text-xs", children: e.label }),
|
|
3099
3114
|
/* @__PURE__ */ t.jsx("div", { className: "t:my-1 t:h-px t:bg-border" }),
|
|
3100
3115
|
e.children.map((r) => /* @__PURE__ */ t.jsx(
|
|
3101
|
-
|
|
3116
|
+
De,
|
|
3102
3117
|
{
|
|
3103
3118
|
inPopover: !0,
|
|
3104
3119
|
sub: r
|
|
@@ -3114,7 +3129,7 @@ function ua({
|
|
|
3114
3129
|
/* @__PURE__ */ t.jsx(et.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
3115
3130
|
et.Content,
|
|
3116
3131
|
{
|
|
3117
|
-
className:
|
|
3132
|
+
className: ua,
|
|
3118
3133
|
side: "right",
|
|
3119
3134
|
sideOffset: 8,
|
|
3120
3135
|
children: e.label
|
|
@@ -3122,8 +3137,8 @@ function ua({
|
|
|
3122
3137
|
) })
|
|
3123
3138
|
] }) });
|
|
3124
3139
|
}
|
|
3125
|
-
function
|
|
3126
|
-
const { collapsed: s } = Vt(), [o, a] =
|
|
3140
|
+
function fa({ item: e }) {
|
|
3141
|
+
const { collapsed: s } = Vt(), [o, a] = E(
|
|
3127
3142
|
e.children?.some((c) => c.active) ?? !1
|
|
3128
3143
|
), n = e.icon, r = !!e.children?.length, i = l(
|
|
3129
3144
|
"t:group t:flex t:w-full t:cursor-pointer t:items-center t:rounded-md t:text-sm t:transition-colors",
|
|
@@ -3136,14 +3151,14 @@ function ma({ item: e }) {
|
|
|
3136
3151
|
"t:h-9 t:w-full t:justify-center t:px-0"
|
|
3137
3152
|
);
|
|
3138
3153
|
return r ? /* @__PURE__ */ t.jsx(
|
|
3139
|
-
|
|
3154
|
+
ma,
|
|
3140
3155
|
{
|
|
3141
3156
|
iconEl: d,
|
|
3142
3157
|
item: e,
|
|
3143
3158
|
itemClass: c
|
|
3144
3159
|
}
|
|
3145
3160
|
) : /* @__PURE__ */ t.jsx(
|
|
3146
|
-
|
|
3161
|
+
ae,
|
|
3147
3162
|
{
|
|
3148
3163
|
content: e.label,
|
|
3149
3164
|
side: "right",
|
|
@@ -3172,7 +3187,7 @@ function ma({ item: e }) {
|
|
|
3172
3187
|
r && /* @__PURE__ */ t.jsx(
|
|
3173
3188
|
ot,
|
|
3174
3189
|
{
|
|
3175
|
-
className:
|
|
3190
|
+
className: ca({
|
|
3176
3191
|
open: o
|
|
3177
3192
|
})
|
|
3178
3193
|
}
|
|
@@ -3188,7 +3203,7 @@ function ma({ item: e }) {
|
|
|
3188
3203
|
o ? "t:grid-rows-[1fr] t:opacity-100" : "t:grid-rows-[0fr] t:opacity-0"
|
|
3189
3204
|
),
|
|
3190
3205
|
children: /* @__PURE__ */ t.jsx("div", { className: "t:min-h-0 t:overflow-hidden", children: /* @__PURE__ */ t.jsx("div", { className: "t:mt-0.5 t:ml-3 t:flex t:flex-col t:gap-0.5 t:border-border t:border-l t:pb-0.5 t:pl-2", children: e.children.map((c) => /* @__PURE__ */ t.jsx(
|
|
3191
|
-
|
|
3206
|
+
De,
|
|
3192
3207
|
{
|
|
3193
3208
|
sub: c
|
|
3194
3209
|
},
|
|
@@ -3198,20 +3213,20 @@ function ma({ item: e }) {
|
|
|
3198
3213
|
)
|
|
3199
3214
|
] });
|
|
3200
3215
|
}
|
|
3201
|
-
function
|
|
3216
|
+
function ga({ collapsed: e }) {
|
|
3202
3217
|
return /* @__PURE__ */ t.jsx("div", { className: l("t:my-2", e ? "t:mx-2" : "t:mx-1"), children: /* @__PURE__ */ t.jsx("div", { className: "t:h-px t:bg-border" }) });
|
|
3203
3218
|
}
|
|
3204
|
-
function
|
|
3219
|
+
function pa({ items: e }) {
|
|
3205
3220
|
const { collapsed: s } = Vt();
|
|
3206
|
-
return /* @__PURE__ */ t.jsx("nav", { className: "t:flex t:flex-col t:gap-1 t:p-2", children: e.map((o) => o.type === "divider" ? null : /* @__PURE__ */ t.jsx(
|
|
3207
|
-
|
|
3221
|
+
return /* @__PURE__ */ t.jsx("nav", { className: "t:flex t:w-full t:flex-col t:gap-1 t:p-2", children: e.map((o) => o.type === "divider" ? null : /* @__PURE__ */ t.jsx(
|
|
3222
|
+
fa,
|
|
3208
3223
|
{
|
|
3209
3224
|
item: o.item
|
|
3210
3225
|
},
|
|
3211
3226
|
o.item.href ?? o.item.label
|
|
3212
3227
|
)).reduce((o, a) => (a === null ? o.push(
|
|
3213
3228
|
/* @__PURE__ */ t.jsx(
|
|
3214
|
-
|
|
3229
|
+
ga,
|
|
3215
3230
|
{
|
|
3216
3231
|
collapsed: s
|
|
3217
3232
|
},
|
|
@@ -3219,7 +3234,7 @@ function ga({ items: e }) {
|
|
|
3219
3234
|
)
|
|
3220
3235
|
) : o.push(a), o), []) });
|
|
3221
3236
|
}
|
|
3222
|
-
const
|
|
3237
|
+
const xa = k({
|
|
3223
3238
|
slots: {
|
|
3224
3239
|
root: "t:flex t:shrink-0 t:flex-col t:overflow-hidden t:bg-sidebar t:transition-all t:duration-200"
|
|
3225
3240
|
},
|
|
@@ -3230,7 +3245,7 @@ const pa = k({
|
|
|
3230
3245
|
}
|
|
3231
3246
|
}
|
|
3232
3247
|
}
|
|
3233
|
-
}),
|
|
3248
|
+
}), ha = k({
|
|
3234
3249
|
defaultVariants: {
|
|
3235
3250
|
size: "md"
|
|
3236
3251
|
},
|
|
@@ -3255,11 +3270,11 @@ const pa = k({
|
|
|
3255
3270
|
}
|
|
3256
3271
|
}
|
|
3257
3272
|
}
|
|
3258
|
-
}),
|
|
3273
|
+
}), ba = k({
|
|
3259
3274
|
slots: {
|
|
3260
3275
|
root: "t:flex t:flex-1 t:flex-col t:overflow-y-auto"
|
|
3261
3276
|
}
|
|
3262
|
-
}),
|
|
3277
|
+
}), va = k({
|
|
3263
3278
|
defaultVariants: {
|
|
3264
3279
|
size: "md"
|
|
3265
3280
|
},
|
|
@@ -3284,30 +3299,30 @@ const pa = k({
|
|
|
3284
3299
|
}
|
|
3285
3300
|
}
|
|
3286
3301
|
}
|
|
3287
|
-
}),
|
|
3302
|
+
}), ja = k({
|
|
3288
3303
|
slots: {
|
|
3289
3304
|
root: "t:flex t:items-center t:justify-center t:rounded-md t:p-1.5 t:text-muted-foreground t:transition-colors t:hover:bg-accent t:hover:text-accent-foreground"
|
|
3290
3305
|
}
|
|
3291
|
-
}),
|
|
3306
|
+
}), Na = {
|
|
3292
3307
|
default: "t:w-60",
|
|
3293
3308
|
wide: "t:w-80"
|
|
3294
|
-
},
|
|
3309
|
+
}, ya = {
|
|
3295
3310
|
lg: "t:px-6",
|
|
3296
3311
|
md: "t:px-4",
|
|
3297
3312
|
sm: "t:px-2"
|
|
3298
|
-
},
|
|
3313
|
+
}, Ca = {
|
|
3299
3314
|
lg: "t:py-6",
|
|
3300
3315
|
md: "t:py-4",
|
|
3301
3316
|
sm: "t:py-2"
|
|
3302
3317
|
};
|
|
3303
|
-
function
|
|
3318
|
+
function wa({
|
|
3304
3319
|
children: e,
|
|
3305
3320
|
bordered: s,
|
|
3306
3321
|
width: o = "default",
|
|
3307
3322
|
paddingHorizontal: a,
|
|
3308
3323
|
paddingVertical: n
|
|
3309
3324
|
}) {
|
|
3310
|
-
const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } =
|
|
3325
|
+
const { collapsed: r } = Vt(), d = x()?.components?.layout?.sidebar?.default, { root: c } = xa({
|
|
3311
3326
|
bordered: s
|
|
3312
3327
|
});
|
|
3313
3328
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -3315,43 +3330,43 @@ function Ca({
|
|
|
3315
3330
|
{
|
|
3316
3331
|
className: l(
|
|
3317
3332
|
c(),
|
|
3318
|
-
r ? "t:w-16" :
|
|
3319
|
-
a &&
|
|
3320
|
-
n &&
|
|
3333
|
+
r ? "t:w-16" : Na[o],
|
|
3334
|
+
a && ya[a],
|
|
3335
|
+
n && Ca[n],
|
|
3321
3336
|
d?.classNames?.root
|
|
3322
3337
|
),
|
|
3323
3338
|
children: e
|
|
3324
3339
|
}
|
|
3325
3340
|
);
|
|
3326
3341
|
}
|
|
3327
|
-
function
|
|
3342
|
+
function Fe({
|
|
3328
3343
|
children: e,
|
|
3329
3344
|
bordered: s,
|
|
3330
3345
|
size: o
|
|
3331
3346
|
}) {
|
|
3332
|
-
const n = x()?.components?.layout?.sidebar?.header, { root: r } =
|
|
3347
|
+
const n = x()?.components?.layout?.sidebar?.header, { root: r } = ha({
|
|
3333
3348
|
bordered: s,
|
|
3334
3349
|
size: o
|
|
3335
3350
|
});
|
|
3336
3351
|
return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
|
|
3337
3352
|
}
|
|
3338
|
-
function
|
|
3339
|
-
const o = x()?.components?.layout?.sidebar?.body, { root: a } =
|
|
3353
|
+
function Be({ children: e }) {
|
|
3354
|
+
const o = x()?.components?.layout?.sidebar?.body, { root: a } = ba();
|
|
3340
3355
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
3341
3356
|
}
|
|
3342
|
-
function
|
|
3357
|
+
function He({
|
|
3343
3358
|
children: e,
|
|
3344
3359
|
bordered: s,
|
|
3345
3360
|
size: o
|
|
3346
3361
|
}) {
|
|
3347
|
-
const n = x()?.components?.layout?.sidebar?.footer, { root: r } =
|
|
3362
|
+
const n = x()?.components?.layout?.sidebar?.footer, { root: r } = va({
|
|
3348
3363
|
bordered: s,
|
|
3349
3364
|
size: o
|
|
3350
3365
|
});
|
|
3351
3366
|
return /* @__PURE__ */ t.jsx("div", { className: l(r(), n?.classNames?.root), children: e });
|
|
3352
3367
|
}
|
|
3353
|
-
function
|
|
3354
|
-
const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } =
|
|
3368
|
+
function Ge() {
|
|
3369
|
+
const { collapsed: e, toggle: s } = Vt(), a = x()?.translations?.sidebar, { root: n } = ja(), r = e ? is : cs;
|
|
3355
3370
|
return /* @__PURE__ */ t.jsx(
|
|
3356
3371
|
"button",
|
|
3357
3372
|
{
|
|
@@ -3363,24 +3378,24 @@ function He() {
|
|
|
3363
3378
|
}
|
|
3364
3379
|
);
|
|
3365
3380
|
}
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
const
|
|
3371
|
-
Body:
|
|
3372
|
-
Footer:
|
|
3373
|
-
Header:
|
|
3374
|
-
Trigger:
|
|
3375
|
-
}),
|
|
3381
|
+
Fe.displayName = "Sidebar.Header";
|
|
3382
|
+
Be.displayName = "Sidebar.Body";
|
|
3383
|
+
He.displayName = "Sidebar.Footer";
|
|
3384
|
+
Ge.displayName = "Sidebar.Trigger";
|
|
3385
|
+
const ka = Object.assign(wa, {
|
|
3386
|
+
Body: Be,
|
|
3387
|
+
Footer: He,
|
|
3388
|
+
Header: Fe,
|
|
3389
|
+
Trigger: Ge
|
|
3390
|
+
}), Sa = k({
|
|
3376
3391
|
slots: {
|
|
3377
3392
|
root: "t:flex t:h-screen t:w-full t:overflow-hidden t:bg-background t:text-foreground"
|
|
3378
3393
|
}
|
|
3379
3394
|
});
|
|
3380
|
-
function
|
|
3381
|
-
const o = x()?.components?.layout?.default, [a, n] =
|
|
3395
|
+
function Ra({ children: e }) {
|
|
3396
|
+
const o = x()?.components?.layout?.default, [a, n] = E(!1), r = Et(() => n((d) => !d), []), { root: i } = Sa();
|
|
3382
3397
|
return /* @__PURE__ */ t.jsx(
|
|
3383
|
-
|
|
3398
|
+
Le.Provider,
|
|
3384
3399
|
{
|
|
3385
3400
|
value: {
|
|
3386
3401
|
collapsed: a,
|
|
@@ -3391,14 +3406,14 @@ function Sa({ children: e }) {
|
|
|
3391
3406
|
}
|
|
3392
3407
|
);
|
|
3393
3408
|
}
|
|
3394
|
-
const
|
|
3395
|
-
Content:
|
|
3396
|
-
Footer:
|
|
3397
|
-
Header:
|
|
3398
|
-
Main:
|
|
3399
|
-
Nav:
|
|
3400
|
-
Sidebar:
|
|
3401
|
-
}),
|
|
3409
|
+
const Cr = Object.assign(Ra, {
|
|
3410
|
+
Content: ta,
|
|
3411
|
+
Footer: oa,
|
|
3412
|
+
Header: ra,
|
|
3413
|
+
Main: ia,
|
|
3414
|
+
Nav: pa,
|
|
3415
|
+
Sidebar: ka
|
|
3416
|
+
}), Ta = k({
|
|
3402
3417
|
defaultVariants: {
|
|
3403
3418
|
visible: !1
|
|
3404
3419
|
},
|
|
@@ -3418,19 +3433,19 @@ const Nr = Object.assign(Sa, {
|
|
|
3418
3433
|
}
|
|
3419
3434
|
});
|
|
3420
3435
|
function za({ visible: e = !1 }) {
|
|
3421
|
-
const { root: s, loader: o } =
|
|
3436
|
+
const { root: s, loader: o } = Ta({
|
|
3422
3437
|
visible: e
|
|
3423
3438
|
});
|
|
3424
3439
|
return /* @__PURE__ */ t.jsx("div", { className: s(), children: /* @__PURE__ */ t.jsx(Rt, { className: o() }) });
|
|
3425
3440
|
}
|
|
3426
|
-
const
|
|
3441
|
+
const Ue = k({
|
|
3427
3442
|
slots: {
|
|
3428
3443
|
close: "t:cursor-pointer t:rounded-sm t:opacity-70 t:ring-offset-background t:transition-opacity t:hover:opacity-100 t:focus:outline-none t:focus:ring-2 t:focus:ring-ring t:focus:ring-offset-2 t:disabled:pointer-events-none t:data-[state=open]:bg-accent t:data-[state=open]:text-muted-foreground",
|
|
3429
3444
|
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:fixed t:top-[50%] t:left-[50%] t:z-50 t:flex t:max-h-[90vh] t:w-full t:max-w-lg t:translate-x-[-50%] t:translate-y-[-50%] t:flex-col t:border t:bg-dialog t:shadow-lg t:duration-200 t:data-[state=closed]:animate-out t:data-[state=open]:animate-in t:sm:rounded-lg",
|
|
3430
3445
|
overlay: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:fixed t:inset-0 t:z-50 t:bg-black/80 t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
3431
3446
|
root: ""
|
|
3432
3447
|
}
|
|
3433
|
-
}),
|
|
3448
|
+
}), Pa = k({
|
|
3434
3449
|
slots: {
|
|
3435
3450
|
description: "",
|
|
3436
3451
|
root: "t:flex t:shrink-0 t:items-center t:justify-between t:px-6 t:py-4",
|
|
@@ -3443,19 +3458,19 @@ const Ge = k({
|
|
|
3443
3458
|
}
|
|
3444
3459
|
}
|
|
3445
3460
|
}
|
|
3446
|
-
}),
|
|
3461
|
+
}), Ia = k({
|
|
3447
3462
|
slots: {
|
|
3448
3463
|
root: "t:font-semibold t:text-lg t:leading-none t:tracking-tight"
|
|
3449
3464
|
}
|
|
3450
|
-
}),
|
|
3465
|
+
}), _a = k({
|
|
3451
3466
|
slots: {
|
|
3452
3467
|
root: "t:text-muted-foreground t:text-sm"
|
|
3453
3468
|
}
|
|
3454
|
-
}),
|
|
3469
|
+
}), Ea = k({
|
|
3455
3470
|
slots: {
|
|
3456
3471
|
root: "t:flex-1 t:overflow-y-auto t:px-6 t:py-4"
|
|
3457
3472
|
}
|
|
3458
|
-
}),
|
|
3473
|
+
}), Oa = k({
|
|
3459
3474
|
slots: {
|
|
3460
3475
|
root: "t:flex t:shrink-0 t:flex-col-reverse t:gap-2 t:px-6 t:py-4 t:sm:flex-row t:sm:justify-end"
|
|
3461
3476
|
},
|
|
@@ -3467,7 +3482,7 @@ const Ge = k({
|
|
|
3467
3482
|
}
|
|
3468
3483
|
}
|
|
3469
3484
|
});
|
|
3470
|
-
function
|
|
3485
|
+
function La({ open: e, onChange: s, children: o }) {
|
|
3471
3486
|
return /* @__PURE__ */ t.jsx(
|
|
3472
3487
|
Y.Root,
|
|
3473
3488
|
{
|
|
@@ -3478,7 +3493,7 @@ function Oa({ open: e, onChange: s, children: o }) {
|
|
|
3478
3493
|
);
|
|
3479
3494
|
}
|
|
3480
3495
|
function $a({ children: e }) {
|
|
3481
|
-
const o = x()?.components?.modal?.default, { overlay: a, content: n } =
|
|
3496
|
+
const o = x()?.components?.modal?.default, { overlay: a, content: n } = Ue();
|
|
3482
3497
|
return /* @__PURE__ */ t.jsxs(Y.Portal, { children: [
|
|
3483
3498
|
/* @__PURE__ */ t.jsx(
|
|
3484
3499
|
Y.Overlay,
|
|
@@ -3495,33 +3510,33 @@ function $a({ children: e }) {
|
|
|
3495
3510
|
)
|
|
3496
3511
|
] });
|
|
3497
3512
|
}
|
|
3498
|
-
function
|
|
3513
|
+
function Aa({
|
|
3499
3514
|
closable: e,
|
|
3500
3515
|
bordered: s,
|
|
3501
3516
|
children: o
|
|
3502
3517
|
}) {
|
|
3503
|
-
const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } =
|
|
3518
|
+
const a = x(), n = a?.components?.modal?.header, r = a?.components?.modal?.default, { root: i } = Pa({
|
|
3504
3519
|
bordered: s
|
|
3505
|
-
}), { close: d } =
|
|
3520
|
+
}), { close: d } = Ue();
|
|
3506
3521
|
return /* @__PURE__ */ t.jsxs("div", { className: l(i(), n?.classNames?.root), children: [
|
|
3507
3522
|
/* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-col t:gap-1", children: o }),
|
|
3508
3523
|
e && /* @__PURE__ */ t.jsx(
|
|
3509
3524
|
Y.Close,
|
|
3510
3525
|
{
|
|
3511
3526
|
className: l(d(), r?.classNames?.close),
|
|
3512
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3527
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: "t:h-4 t:w-4" })
|
|
3513
3528
|
}
|
|
3514
3529
|
)
|
|
3515
3530
|
] });
|
|
3516
3531
|
}
|
|
3517
|
-
function
|
|
3518
|
-
const o = x()?.components?.modal?.headerTitle, { root: a } =
|
|
3532
|
+
function Ma({ children: e }) {
|
|
3533
|
+
const o = x()?.components?.modal?.headerTitle, { root: a } = Ia();
|
|
3519
3534
|
return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
|
|
3520
3535
|
}
|
|
3521
|
-
function
|
|
3536
|
+
function Va({
|
|
3522
3537
|
children: e
|
|
3523
3538
|
}) {
|
|
3524
|
-
const o = x()?.components?.modal?.headerDescription, { root: a } =
|
|
3539
|
+
const o = x()?.components?.modal?.headerDescription, { root: a } = _a();
|
|
3525
3540
|
return /* @__PURE__ */ t.jsx(
|
|
3526
3541
|
Y.Description,
|
|
3527
3542
|
{
|
|
@@ -3530,34 +3545,34 @@ function Ma({
|
|
|
3530
3545
|
}
|
|
3531
3546
|
);
|
|
3532
3547
|
}
|
|
3533
|
-
function
|
|
3534
|
-
const o = x()?.components?.modal?.body, { root: a } =
|
|
3548
|
+
function Da({ children: e }) {
|
|
3549
|
+
const o = x()?.components?.modal?.body, { root: a } = Ea();
|
|
3535
3550
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
3536
3551
|
}
|
|
3537
|
-
function
|
|
3538
|
-
const a = x()?.components?.modal?.footer, { root: n } =
|
|
3552
|
+
function Fa({ bordered: e, children: s }) {
|
|
3553
|
+
const a = x()?.components?.modal?.footer, { root: n } = Oa({
|
|
3539
3554
|
bordered: e
|
|
3540
3555
|
});
|
|
3541
3556
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
3542
3557
|
}
|
|
3543
|
-
const
|
|
3544
|
-
Description:
|
|
3545
|
-
Title:
|
|
3546
|
-
}),
|
|
3547
|
-
Body:
|
|
3558
|
+
const Ba = Object.assign(Aa, {
|
|
3559
|
+
Description: Va,
|
|
3560
|
+
Title: Ma
|
|
3561
|
+
}), wr = Object.assign(La, {
|
|
3562
|
+
Body: Da,
|
|
3548
3563
|
Close: Y.Close,
|
|
3549
3564
|
Content: $a,
|
|
3550
|
-
Footer:
|
|
3551
|
-
Header:
|
|
3565
|
+
Footer: Fa,
|
|
3566
|
+
Header: Ba,
|
|
3552
3567
|
Trigger: Y.Trigger
|
|
3553
|
-
}),
|
|
3568
|
+
}), Ye = k({
|
|
3554
3569
|
slots: {
|
|
3555
3570
|
button: "t:flex t:cursor-pointer t:items-center t:justify-center t:self-stretch t:px-2 t:text-muted-foreground t:transition-colors t:hover:text-foreground t:disabled:pointer-events-none t:disabled:opacity-50",
|
|
3556
3571
|
divider: "t:w-px t:self-stretch t:bg-border",
|
|
3557
3572
|
input: "",
|
|
3558
3573
|
root: "t:flex t:w-full t:items-stretch t:overflow-hidden t:rounded-md t:border t:border-input t:bg-input/30"
|
|
3559
3574
|
}
|
|
3560
|
-
}),
|
|
3575
|
+
}), Ha = k({
|
|
3561
3576
|
slots: {
|
|
3562
3577
|
cancel: "",
|
|
3563
3578
|
confirm: "",
|
|
@@ -3569,7 +3584,7 @@ const Fa = Object.assign(La, {
|
|
|
3569
3584
|
trigger: "t:flex t:h-10 t:w-full t:cursor-pointer t:items-center t:justify-between t:gap-2 t:rounded-md t:border t:border-input t:bg-input/30 t:px-3 t:text-left t:text-sm t:ring-offset-background t:focus-visible:outline-none t:focus-visible:ring-2 t:focus-visible:ring-ring t:focus-visible:ring-offset-2 t:disabled:cursor-not-allowed t:disabled:opacity-50"
|
|
3570
3585
|
}
|
|
3571
3586
|
});
|
|
3572
|
-
function
|
|
3587
|
+
function ve({
|
|
3573
3588
|
value: e,
|
|
3574
3589
|
disabled: s,
|
|
3575
3590
|
placeholder: o,
|
|
@@ -3577,7 +3592,7 @@ function be({
|
|
|
3577
3592
|
inputClass: n,
|
|
3578
3593
|
onChange: r
|
|
3579
3594
|
}) {
|
|
3580
|
-
const { root: i, button: d, divider: c } =
|
|
3595
|
+
const { root: i, button: d, divider: c } = Ye(), m = e ?? 0;
|
|
3581
3596
|
return /* @__PURE__ */ t.jsxs("div", { className: i(), children: [
|
|
3582
3597
|
/* @__PURE__ */ t.jsx(
|
|
3583
3598
|
"button",
|
|
@@ -3586,7 +3601,7 @@ function be({
|
|
|
3586
3601
|
disabled: s,
|
|
3587
3602
|
onClick: () => r(m - a),
|
|
3588
3603
|
type: "button",
|
|
3589
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3604
|
+
children: /* @__PURE__ */ t.jsx(ke, { className: "t:h-3 t:w-3" })
|
|
3590
3605
|
}
|
|
3591
3606
|
),
|
|
3592
3607
|
/* @__PURE__ */ t.jsx("span", { className: c() }),
|
|
@@ -3610,12 +3625,12 @@ function be({
|
|
|
3610
3625
|
disabled: s,
|
|
3611
3626
|
onClick: () => r(m + a),
|
|
3612
3627
|
type: "button",
|
|
3613
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3628
|
+
children: /* @__PURE__ */ t.jsx(Se, { className: "t:h-3 t:w-3" })
|
|
3614
3629
|
}
|
|
3615
3630
|
)
|
|
3616
3631
|
] });
|
|
3617
3632
|
}
|
|
3618
|
-
function
|
|
3633
|
+
function Ga({
|
|
3619
3634
|
step: e,
|
|
3620
3635
|
size: s,
|
|
3621
3636
|
disabled: o,
|
|
@@ -3625,7 +3640,7 @@ function Ha({
|
|
|
3625
3640
|
onChange: i,
|
|
3626
3641
|
inputRef: d
|
|
3627
3642
|
}) {
|
|
3628
|
-
const [c, m] =
|
|
3643
|
+
const [c, m] = E(r ?? 0), f = n !== void 0, g = f ? n ?? 0 : c, { input: b } = Tt({
|
|
3629
3644
|
hasLeft: !1,
|
|
3630
3645
|
hasRight: !1,
|
|
3631
3646
|
size: s
|
|
@@ -3636,7 +3651,7 @@ function Ha({
|
|
|
3636
3651
|
function j(y) {
|
|
3637
3652
|
f || m(y), i?.(y);
|
|
3638
3653
|
}
|
|
3639
|
-
const { root: v, button: p, divider: N } =
|
|
3654
|
+
const { root: v, button: p, divider: N } = Ye();
|
|
3640
3655
|
return /* @__PURE__ */ t.jsxs("div", { className: v(), children: [
|
|
3641
3656
|
/* @__PURE__ */ t.jsx(
|
|
3642
3657
|
"button",
|
|
@@ -3645,7 +3660,7 @@ function Ha({
|
|
|
3645
3660
|
disabled: o,
|
|
3646
3661
|
onClick: () => j(g - e),
|
|
3647
3662
|
type: "button",
|
|
3648
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3663
|
+
children: /* @__PURE__ */ t.jsx(ke, { className: "t:h-3 t:w-3" })
|
|
3649
3664
|
}
|
|
3650
3665
|
),
|
|
3651
3666
|
/* @__PURE__ */ t.jsx("span", { className: N() }),
|
|
@@ -3670,12 +3685,12 @@ function Ha({
|
|
|
3670
3685
|
disabled: o,
|
|
3671
3686
|
onClick: () => j(g + e),
|
|
3672
3687
|
type: "button",
|
|
3673
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3688
|
+
children: /* @__PURE__ */ t.jsx(Se, { className: "t:h-3 t:w-3" })
|
|
3674
3689
|
}
|
|
3675
3690
|
)
|
|
3676
3691
|
] });
|
|
3677
3692
|
}
|
|
3678
|
-
function
|
|
3693
|
+
function Ua({
|
|
3679
3694
|
step: e,
|
|
3680
3695
|
size: s,
|
|
3681
3696
|
disabled: o,
|
|
@@ -3684,16 +3699,16 @@ function Ga({
|
|
|
3684
3699
|
defaultValue: r,
|
|
3685
3700
|
onChange: i
|
|
3686
3701
|
}) {
|
|
3687
|
-
const c = x()?.translations?.numberInput, [m, f] =
|
|
3702
|
+
const c = x()?.translations?.numberInput, [m, f] = E(!1), [g, b] = E(
|
|
3688
3703
|
r ?? {}
|
|
3689
|
-
), [h, j] =
|
|
3704
|
+
), [h, j] = E(g), v = n !== void 0, p = v ? n ?? {} : g, { input: N } = Tt({
|
|
3690
3705
|
hasLeft: !1,
|
|
3691
3706
|
hasRight: !1,
|
|
3692
3707
|
size: s
|
|
3693
3708
|
}), y = l(
|
|
3694
3709
|
N(),
|
|
3695
3710
|
"t:flex-1 t:border-0 t:rounded-none t:text-center t:focus-visible:ring-0 t:focus-visible:ring-offset-0"
|
|
3696
|
-
), { content: R, footer:
|
|
3711
|
+
), { content: R, footer: O, inputLabel: P, inputSection: C, inputsWrapper: L, trigger: z } = Ha();
|
|
3697
3712
|
function w(A) {
|
|
3698
3713
|
A && j(p), f(A);
|
|
3699
3714
|
}
|
|
@@ -3710,7 +3725,7 @@ function Ga({
|
|
|
3710
3725
|
/* @__PURE__ */ t.jsx(G.Trigger, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
3711
3726
|
"button",
|
|
3712
3727
|
{
|
|
3713
|
-
className:
|
|
3728
|
+
className: z(),
|
|
3714
3729
|
disabled: o,
|
|
3715
3730
|
type: "button",
|
|
3716
3731
|
children: [
|
|
@@ -3724,11 +3739,11 @@ function Ga({
|
|
|
3724
3739
|
{
|
|
3725
3740
|
className: R(),
|
|
3726
3741
|
sideOffset: 4,
|
|
3727
|
-
children: /* @__PURE__ */ t.jsxs("div", { className:
|
|
3742
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: L(), children: [
|
|
3728
3743
|
/* @__PURE__ */ t.jsxs("div", { className: C(), children: [
|
|
3729
3744
|
/* @__PURE__ */ t.jsx("span", { className: P(), children: c?.from }),
|
|
3730
3745
|
/* @__PURE__ */ t.jsx(
|
|
3731
|
-
|
|
3746
|
+
ve,
|
|
3732
3747
|
{
|
|
3733
3748
|
disabled: o,
|
|
3734
3749
|
inputClass: y,
|
|
@@ -3744,7 +3759,7 @@ function Ga({
|
|
|
3744
3759
|
/* @__PURE__ */ t.jsxs("div", { className: C(), children: [
|
|
3745
3760
|
/* @__PURE__ */ t.jsx("span", { className: P(), children: c?.to }),
|
|
3746
3761
|
/* @__PURE__ */ t.jsx(
|
|
3747
|
-
|
|
3762
|
+
ve,
|
|
3748
3763
|
{
|
|
3749
3764
|
disabled: o,
|
|
3750
3765
|
inputClass: y,
|
|
@@ -3757,7 +3772,7 @@ function Ga({
|
|
|
3757
3772
|
}
|
|
3758
3773
|
)
|
|
3759
3774
|
] }),
|
|
3760
|
-
/* @__PURE__ */ t.jsxs("div", { className:
|
|
3775
|
+
/* @__PURE__ */ t.jsxs("div", { className: O(), children: [
|
|
3761
3776
|
/* @__PURE__ */ t.jsx(
|
|
3762
3777
|
X,
|
|
3763
3778
|
{
|
|
@@ -3783,11 +3798,11 @@ function Ga({
|
|
|
3783
3798
|
}
|
|
3784
3799
|
);
|
|
3785
3800
|
}
|
|
3786
|
-
const
|
|
3801
|
+
const kr = J(
|
|
3787
3802
|
({ step: e = 1, size: s, disabled: o, placeholder: a, ...n }, r) => {
|
|
3788
3803
|
const i = s ?? "md";
|
|
3789
3804
|
return n.mode === "single" ? /* @__PURE__ */ t.jsx(
|
|
3790
|
-
|
|
3805
|
+
Ga,
|
|
3791
3806
|
{
|
|
3792
3807
|
defaultValue: n.defaultValue,
|
|
3793
3808
|
disabled: o,
|
|
@@ -3799,7 +3814,7 @@ const Cr = J(
|
|
|
3799
3814
|
value: n.value
|
|
3800
3815
|
}
|
|
3801
3816
|
) : /* @__PURE__ */ t.jsx(
|
|
3802
|
-
|
|
3817
|
+
Ua,
|
|
3803
3818
|
{
|
|
3804
3819
|
defaultValue: n.defaultValue,
|
|
3805
3820
|
disabled: o,
|
|
@@ -3811,7 +3826,7 @@ const Cr = J(
|
|
|
3811
3826
|
}
|
|
3812
3827
|
);
|
|
3813
3828
|
}
|
|
3814
|
-
),
|
|
3829
|
+
), We = k({
|
|
3815
3830
|
defaultVariants: {
|
|
3816
3831
|
size: "md"
|
|
3817
3832
|
},
|
|
@@ -3838,18 +3853,18 @@ const Cr = J(
|
|
|
3838
3853
|
}
|
|
3839
3854
|
}
|
|
3840
3855
|
});
|
|
3841
|
-
function
|
|
3856
|
+
function Ya({ ...e }) {
|
|
3842
3857
|
return /* @__PURE__ */ t.jsx(
|
|
3843
3858
|
"div",
|
|
3844
3859
|
{
|
|
3845
3860
|
className: "t:flex t:w-4 t:shrink-0 t:items-center t:justify-center t:overflow-visible",
|
|
3846
3861
|
...e,
|
|
3847
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3862
|
+
children: /* @__PURE__ */ t.jsx(ds, { size: 16 })
|
|
3848
3863
|
}
|
|
3849
3864
|
);
|
|
3850
3865
|
}
|
|
3851
|
-
function
|
|
3852
|
-
const o = ht(
|
|
3866
|
+
function Wa({ index: e, size: s }) {
|
|
3867
|
+
const o = ht(Rs), { char: a, hasFakeCaret: n, isActive: r } = o.slots[e], d = x()?.components?.otpInput, { cell: c } = We({
|
|
3853
3868
|
active: r,
|
|
3854
3869
|
size: s
|
|
3855
3870
|
});
|
|
@@ -3858,20 +3873,20 @@ function Ya({ index: e, size: s }) {
|
|
|
3858
3873
|
n && /* @__PURE__ */ t.jsx("div", { className: "t:pointer-events-none t:absolute t:inset-0 t:flex t:items-center t:justify-center", children: /* @__PURE__ */ t.jsx("div", { className: "t:h-4 t:w-px t:animate-caret-blink t:bg-foreground t:duration-1000" }) })
|
|
3859
3874
|
] });
|
|
3860
3875
|
}
|
|
3861
|
-
function
|
|
3876
|
+
function Sr({
|
|
3862
3877
|
pattern: e = [],
|
|
3863
3878
|
size: s,
|
|
3864
3879
|
value: o,
|
|
3865
3880
|
defaultValue: a,
|
|
3866
3881
|
onChange: n
|
|
3867
3882
|
}) {
|
|
3868
|
-
const i = x()?.components?.otpInput, d = e ?? i?.defaultProps?.pattern ?? [], c = s ?? "md", m = d.reduce((b, h) => b + h, 0), { root: f } =
|
|
3883
|
+
const i = x()?.components?.otpInput, d = e ?? i?.defaultProps?.pattern ?? [], c = s ?? "md", m = d.reduce((b, h) => b + h, 0), { root: f } = We({
|
|
3869
3884
|
size: c
|
|
3870
3885
|
}), g = (b) => {
|
|
3871
3886
|
n?.(b === "" ? null : b);
|
|
3872
3887
|
};
|
|
3873
3888
|
return /* @__PURE__ */ t.jsx(
|
|
3874
|
-
|
|
3889
|
+
Ss,
|
|
3875
3890
|
{
|
|
3876
3891
|
containerClassName: l(f(), i?.classNames?.root),
|
|
3877
3892
|
defaultValue: a ?? void 0,
|
|
@@ -3887,7 +3902,7 @@ function wr({
|
|
|
3887
3902
|
children: Array.from({
|
|
3888
3903
|
length: b
|
|
3889
3904
|
}).map((p, N) => /* @__PURE__ */ t.jsx(
|
|
3890
|
-
|
|
3905
|
+
Wa,
|
|
3891
3906
|
{
|
|
3892
3907
|
index: j + N,
|
|
3893
3908
|
size: c
|
|
@@ -3898,12 +3913,12 @@ function wr({
|
|
|
3898
3913
|
`group-${j}`
|
|
3899
3914
|
)
|
|
3900
3915
|
];
|
|
3901
|
-
return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(
|
|
3916
|
+
return h < d.length - 1 && v.push(/* @__PURE__ */ t.jsx(Ya, {}, `sep-${j}`)), v;
|
|
3902
3917
|
})
|
|
3903
3918
|
}
|
|
3904
3919
|
);
|
|
3905
3920
|
}
|
|
3906
|
-
const
|
|
3921
|
+
const Ja = k({
|
|
3907
3922
|
slots: {
|
|
3908
3923
|
actions: "t:flex t:items-center t:gap-1",
|
|
3909
3924
|
root: "t:flex t:items-center t:justify-between t:gap-4",
|
|
@@ -3912,13 +3927,13 @@ const Wa = k({
|
|
|
3912
3927
|
rowsSelectIcon: "t:pointer-events-none t:absolute t:inset-y-0 t:right-2 t:flex t:items-center",
|
|
3913
3928
|
rowsSelectNative: "t:h-8 t:w-full t:cursor-pointer t:appearance-none t:rounded-md t:border t:border-input t:bg-background t:pr-8 t:pl-2 t:text-sm t:focus:outline-none t:focus:ring-2 t:focus:ring-ring"
|
|
3914
3929
|
}
|
|
3915
|
-
}),
|
|
3930
|
+
}), je = [
|
|
3916
3931
|
10,
|
|
3917
3932
|
20,
|
|
3918
3933
|
50,
|
|
3919
3934
|
100
|
|
3920
3935
|
];
|
|
3921
|
-
function
|
|
3936
|
+
function qa(e) {
|
|
3922
3937
|
const s = x(), o = s?.components?.pagination, a = s?.translations?.pagination, {
|
|
3923
3938
|
root: n,
|
|
3924
3939
|
rowsPerPage: r,
|
|
@@ -3926,15 +3941,15 @@ function Ja(e) {
|
|
|
3926
3941
|
rowsSelectNative: d,
|
|
3927
3942
|
rowsSelectIcon: c,
|
|
3928
3943
|
actions: m
|
|
3929
|
-
} =
|
|
3944
|
+
} = Ja();
|
|
3930
3945
|
if (e.mode === "offset") {
|
|
3931
3946
|
const {
|
|
3932
3947
|
page: p,
|
|
3933
3948
|
rowsPerPage: N,
|
|
3934
3949
|
total: y,
|
|
3935
3950
|
onPageChange: R,
|
|
3936
|
-
onRowsPerPageChange:
|
|
3937
|
-
} = e, P = Math.ceil(y / N), C = p > 1,
|
|
3951
|
+
onRowsPerPageChange: O
|
|
3952
|
+
} = e, P = Math.ceil(y / N), C = p > 1, L = p < P;
|
|
3938
3953
|
return /* @__PURE__ */ t.jsxs("div", { className: l(n(), o?.classNames?.root), children: [
|
|
3939
3954
|
/* @__PURE__ */ t.jsxs("div", { className: l(r(), o?.classNames?.rowsPerPage), children: [
|
|
3940
3955
|
/* @__PURE__ */ t.jsx("span", { children: a?.rowsPerPage }),
|
|
@@ -3943,15 +3958,15 @@ function Ja(e) {
|
|
|
3943
3958
|
"select",
|
|
3944
3959
|
{
|
|
3945
3960
|
className: d(),
|
|
3946
|
-
onChange: (
|
|
3961
|
+
onChange: (z) => O(Number(z.target.value)),
|
|
3947
3962
|
value: N,
|
|
3948
|
-
children:
|
|
3963
|
+
children: je.map((z) => /* @__PURE__ */ t.jsx(
|
|
3949
3964
|
"option",
|
|
3950
3965
|
{
|
|
3951
|
-
value:
|
|
3952
|
-
children:
|
|
3966
|
+
value: z,
|
|
3967
|
+
children: z
|
|
3953
3968
|
},
|
|
3954
|
-
|
|
3969
|
+
z
|
|
3955
3970
|
))
|
|
3956
3971
|
}
|
|
3957
3972
|
),
|
|
@@ -3975,13 +3990,13 @@ function Ja(e) {
|
|
|
3975
3990
|
onClick: () => R(p - 1),
|
|
3976
3991
|
size: "icon-sm",
|
|
3977
3992
|
variant: "ghost",
|
|
3978
|
-
children: /* @__PURE__ */ t.jsx(
|
|
3993
|
+
children: /* @__PURE__ */ t.jsx(de, {})
|
|
3979
3994
|
}
|
|
3980
3995
|
),
|
|
3981
3996
|
/* @__PURE__ */ t.jsx(
|
|
3982
3997
|
X,
|
|
3983
3998
|
{
|
|
3984
|
-
disabled:
|
|
3999
|
+
disabled: !L,
|
|
3985
4000
|
onClick: () => R(p + 1),
|
|
3986
4001
|
size: "icon-sm",
|
|
3987
4002
|
variant: "ghost",
|
|
@@ -4009,7 +4024,7 @@ function Ja(e) {
|
|
|
4009
4024
|
className: d(),
|
|
4010
4025
|
onChange: (p) => v?.(Number(p.target.value)),
|
|
4011
4026
|
value: f,
|
|
4012
|
-
children:
|
|
4027
|
+
children: je.map((p) => /* @__PURE__ */ t.jsx(
|
|
4013
4028
|
"option",
|
|
4014
4029
|
{
|
|
4015
4030
|
value: p,
|
|
@@ -4030,7 +4045,7 @@ function Ja(e) {
|
|
|
4030
4045
|
onClick: h,
|
|
4031
4046
|
size: "icon-sm",
|
|
4032
4047
|
variant: "ghost",
|
|
4033
|
-
children: /* @__PURE__ */ t.jsx(
|
|
4048
|
+
children: /* @__PURE__ */ t.jsx(de, {})
|
|
4034
4049
|
}
|
|
4035
4050
|
),
|
|
4036
4051
|
/* @__PURE__ */ t.jsx(
|
|
@@ -4046,19 +4061,19 @@ function Ja(e) {
|
|
|
4046
4061
|
] })
|
|
4047
4062
|
] });
|
|
4048
4063
|
}
|
|
4049
|
-
const
|
|
4064
|
+
const Za = Array.from({
|
|
4050
4065
|
length: 5
|
|
4051
4066
|
}).map((e, s) => ({
|
|
4052
4067
|
id: s
|
|
4053
|
-
})),
|
|
4068
|
+
})), Ka = [
|
|
4054
4069
|
(e) => e.length >= 8,
|
|
4055
4070
|
(e) => /[A-Z]/.test(e),
|
|
4056
4071
|
(e) => /[a-z]/.test(e),
|
|
4057
4072
|
(e) => /[0-9]/.test(e),
|
|
4058
4073
|
(e) => /[^A-Za-z0-9]/.test(e)
|
|
4059
4074
|
];
|
|
4060
|
-
function
|
|
4061
|
-
const s =
|
|
4075
|
+
function Xa(e) {
|
|
4076
|
+
const s = Ka.filter((o) => o(e)).length;
|
|
4062
4077
|
return s <= 1 ? {
|
|
4063
4078
|
level: "very-weak",
|
|
4064
4079
|
score: s
|
|
@@ -4076,20 +4091,20 @@ function Ka(e) {
|
|
|
4076
4091
|
score: s
|
|
4077
4092
|
};
|
|
4078
4093
|
}
|
|
4079
|
-
const
|
|
4094
|
+
const Qa = k({
|
|
4080
4095
|
slots: {
|
|
4081
4096
|
bar: "t:h-1.5 t:flex-1 t:rounded-full t:transition-colors",
|
|
4082
4097
|
barWrapper: "t:flex t:gap-1 t:pt-2",
|
|
4083
4098
|
label: "t:pt-1 t:text-xs",
|
|
4084
4099
|
root: "t:w-full"
|
|
4085
4100
|
}
|
|
4086
|
-
}),
|
|
4101
|
+
}), tn = {
|
|
4087
4102
|
medium: "t:bg-yellow-500",
|
|
4088
4103
|
strong: "t:bg-green-500",
|
|
4089
4104
|
"very-strong": "t:bg-green-700",
|
|
4090
4105
|
"very-weak": "t:bg-destructive",
|
|
4091
4106
|
weak: "t:bg-orange-500"
|
|
4092
|
-
},
|
|
4107
|
+
}, en = {
|
|
4093
4108
|
medium: "t:text-yellow-500",
|
|
4094
4109
|
strong: "t:text-green-500",
|
|
4095
4110
|
"very-strong": "t:text-green-700",
|
|
@@ -4101,14 +4116,14 @@ const Xa = k({
|
|
|
4101
4116
|
"very-strong": "Very strong",
|
|
4102
4117
|
"very-weak": "Very weak",
|
|
4103
4118
|
weak: "Weak"
|
|
4104
|
-
},
|
|
4119
|
+
}, Rr = J(
|
|
4105
4120
|
({ showStrength: e = !0, value: s, onChange: o, ...a }, n) => {
|
|
4106
|
-
const i = x()?.translations?.passwordInput, [d, c] =
|
|
4121
|
+
const i = x()?.translations?.passwordInput, [d, c] = E(""), m = typeof s == "string" ? s : d ?? "", f = (p) => {
|
|
4107
4122
|
c(p ?? ""), o?.(p);
|
|
4108
|
-
}, { root: g, barWrapper: b, bar: h, label: j } =
|
|
4123
|
+
}, { root: g, barWrapper: b, bar: h, label: j } = Qa(), v = e && m ? Xa(m) : null;
|
|
4109
4124
|
return /* @__PURE__ */ t.jsxs("div", { className: g(), children: [
|
|
4110
4125
|
/* @__PURE__ */ t.jsx(
|
|
4111
|
-
|
|
4126
|
+
dt,
|
|
4112
4127
|
{
|
|
4113
4128
|
...a,
|
|
4114
4129
|
onChange: f,
|
|
@@ -4118,18 +4133,18 @@ const Xa = k({
|
|
|
4118
4133
|
}
|
|
4119
4134
|
),
|
|
4120
4135
|
e && v && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4121
|
-
/* @__PURE__ */ t.jsx("div", { className: b(), children:
|
|
4136
|
+
/* @__PURE__ */ t.jsx("div", { className: b(), children: Za.map(({ id: p }) => /* @__PURE__ */ t.jsx(
|
|
4122
4137
|
"div",
|
|
4123
4138
|
{
|
|
4124
|
-
className: `${h()} ${p < v.score ?
|
|
4139
|
+
className: `${h()} ${p < v.score ? tn[v.level] : "t:bg-muted"}`
|
|
4125
4140
|
},
|
|
4126
4141
|
p
|
|
4127
4142
|
)) }),
|
|
4128
|
-
/* @__PURE__ */ t.jsx("p", { className: `${j()} ${
|
|
4143
|
+
/* @__PURE__ */ t.jsx("p", { className: `${j()} ${en[v.level]}`, children: v.level === "very-weak" ? i?.veryWeak ?? yt["very-weak"] : v.level === "weak" ? i?.weak ?? yt.weak : v.level === "medium" ? i?.medium ?? yt.medium : v.level === "strong" ? i?.strong ?? yt.strong : i?.veryStrong ?? yt["very-strong"] })
|
|
4129
4144
|
] })
|
|
4130
4145
|
] });
|
|
4131
4146
|
}
|
|
4132
|
-
),
|
|
4147
|
+
), sn = [
|
|
4133
4148
|
{
|
|
4134
4149
|
code: "AF",
|
|
4135
4150
|
dialCode: "+93",
|
|
@@ -5318,7 +5333,7 @@ const Xa = k({
|
|
|
5318
5333
|
flag: "🇿🇼",
|
|
5319
5334
|
mask: "00 000 0000"
|
|
5320
5335
|
}
|
|
5321
|
-
],
|
|
5336
|
+
], on = "BR", an = k({
|
|
5322
5337
|
defaultVariants: {
|
|
5323
5338
|
size: "md"
|
|
5324
5339
|
},
|
|
@@ -5342,7 +5357,7 @@ const Xa = k({
|
|
|
5342
5357
|
}
|
|
5343
5358
|
}
|
|
5344
5359
|
}
|
|
5345
|
-
}),
|
|
5360
|
+
}), Tr = J(
|
|
5346
5361
|
({ value: e, defaultValue: s, onChange: o, disabled: a, ...n }, r) => {
|
|
5347
5362
|
const i = x(), d = i?.components?.phoneInput, c = i?.translations?.phoneInput, m = xt(() => {
|
|
5348
5363
|
const C = new Intl.DisplayNames(
|
|
@@ -5353,13 +5368,13 @@ const Xa = k({
|
|
|
5353
5368
|
type: "region"
|
|
5354
5369
|
}
|
|
5355
5370
|
);
|
|
5356
|
-
return
|
|
5357
|
-
|
|
5358
|
-
name: C.of(
|
|
5359
|
-
})).sort((
|
|
5360
|
-
}, []), f = e ?? s, [g, b] =
|
|
5371
|
+
return sn.map((L) => ({
|
|
5372
|
+
...L,
|
|
5373
|
+
name: C.of(L.code) ?? L.code
|
|
5374
|
+
})).sort((L, z) => L.name.localeCompare(z.name));
|
|
5375
|
+
}, []), f = e ?? s, [g, b] = E(
|
|
5361
5376
|
f ? m.find((C) => C.code === f.iso) ?? null : null
|
|
5362
|
-
), [h, j] =
|
|
5377
|
+
), [h, j] = E(""), v = g ?? m.find((C) => C.code === on) ?? m[0], p = m.filter(
|
|
5363
5378
|
(C) => C.name.toLowerCase().includes(h.toLowerCase()) || C.dialCode.includes(h) || C.code.toLowerCase().includes(h.toLowerCase())
|
|
5364
5379
|
), N = (C) => {
|
|
5365
5380
|
b(C), j(""), o?.(null);
|
|
@@ -5371,10 +5386,10 @@ const Xa = k({
|
|
|
5371
5386
|
number: C
|
|
5372
5387
|
} : null
|
|
5373
5388
|
);
|
|
5374
|
-
}, R = n.size ?? "md", { root:
|
|
5389
|
+
}, R = n.size ?? "md", { root: O, countrySelector: P } = an({
|
|
5375
5390
|
size: R
|
|
5376
5391
|
});
|
|
5377
|
-
return /* @__PURE__ */ t.jsxs("div", { className: l(
|
|
5392
|
+
return /* @__PURE__ */ t.jsxs("div", { className: l(O(), d?.classNames?.root), children: [
|
|
5378
5393
|
/* @__PURE__ */ t.jsxs(V.Root, { children: [
|
|
5379
5394
|
/* @__PURE__ */ t.jsx(V.Trigger, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
5380
5395
|
"button",
|
|
@@ -5400,7 +5415,7 @@ const Xa = k({
|
|
|
5400
5415
|
sideOffset: 4,
|
|
5401
5416
|
children: [
|
|
5402
5417
|
/* @__PURE__ */ t.jsx("div", { className: "t:sticky t:top-0 t:border-b t:bg-popover", children: /* @__PURE__ */ t.jsxs("div", { className: "t:relative", children: [
|
|
5403
|
-
/* @__PURE__ */ t.jsx(
|
|
5418
|
+
/* @__PURE__ */ t.jsx(Re, { className: "t:-translate-y-1/2 t:pointer-events-none t:absolute t:top-1/2 t:left-3 t:size-4 t:text-muted-foreground" }),
|
|
5404
5419
|
/* @__PURE__ */ t.jsx(
|
|
5405
5420
|
"input",
|
|
5406
5421
|
{
|
|
@@ -5429,8 +5444,8 @@ const Xa = k({
|
|
|
5429
5444
|
}
|
|
5430
5445
|
) })
|
|
5431
5446
|
] }),
|
|
5432
|
-
/* @__PURE__ */ t.jsx("div", { className: "t:flex-1", children: /* @__PURE__ */
|
|
5433
|
-
|
|
5447
|
+
/* @__PURE__ */ t.jsx("div", { className: "t:flex-1", children: /* @__PURE__ */ Ce(
|
|
5448
|
+
qt,
|
|
5434
5449
|
{
|
|
5435
5450
|
...n,
|
|
5436
5451
|
className: "t:rounded-l-none",
|
|
@@ -5444,21 +5459,21 @@ const Xa = k({
|
|
|
5444
5459
|
) })
|
|
5445
5460
|
] });
|
|
5446
5461
|
}
|
|
5447
|
-
),
|
|
5462
|
+
), nn = k({
|
|
5448
5463
|
slots: {
|
|
5449
5464
|
content: "t:data-[state=closed]:fade-out-0 t:data-[state=open]:fade-in-0 t:data-[state=closed]:zoom-out-95 t:data-[state=open]:zoom-in-95 t:data-[side=bottom]:slide-in-from-top-2 t:data-[side=left]:slide-in-from-right-2 t:data-[side=right]:slide-in-from-left-2 t:data-[side=top]:slide-in-from-bottom-2 t:z-50 t:w-72 t:rounded-md t:border t:bg-popover t:p-2 t:text-popover-foreground t:shadow-md t:outline-none t:data-[state=closed]:animate-out t:data-[state=open]:animate-in",
|
|
5450
5465
|
root: "",
|
|
5451
5466
|
trigger: ""
|
|
5452
5467
|
}
|
|
5453
5468
|
});
|
|
5454
|
-
function
|
|
5469
|
+
function zr({
|
|
5455
5470
|
content: e,
|
|
5456
5471
|
side: s = "bottom",
|
|
5457
5472
|
sideOffset: o = 4,
|
|
5458
5473
|
align: a = "center",
|
|
5459
5474
|
children: n
|
|
5460
5475
|
}) {
|
|
5461
|
-
const { content: r } =
|
|
5476
|
+
const { content: r } = nn();
|
|
5462
5477
|
return /* @__PURE__ */ t.jsxs(G.Root, { children: [
|
|
5463
5478
|
/* @__PURE__ */ t.jsx(G.Trigger, { asChild: !0, children: n }),
|
|
5464
5479
|
/* @__PURE__ */ t.jsx(G.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
@@ -5473,7 +5488,7 @@ function Rr({
|
|
|
5473
5488
|
) })
|
|
5474
5489
|
] });
|
|
5475
5490
|
}
|
|
5476
|
-
const
|
|
5491
|
+
const rn = k({
|
|
5477
5492
|
defaultVariants: {
|
|
5478
5493
|
size: "md"
|
|
5479
5494
|
},
|
|
@@ -5496,29 +5511,29 @@ const nn = k({
|
|
|
5496
5511
|
}
|
|
5497
5512
|
}
|
|
5498
5513
|
});
|
|
5499
|
-
function
|
|
5514
|
+
function Pr({ label: e, value: s, defaultValue: o, size: a }) {
|
|
5500
5515
|
const {
|
|
5501
5516
|
root: n,
|
|
5502
5517
|
indicator: r,
|
|
5503
5518
|
label: i
|
|
5504
|
-
} =
|
|
5519
|
+
} = rn({
|
|
5505
5520
|
size: a
|
|
5506
5521
|
}), d = s ?? o ?? 0, c = typeof e == "string" ? e : e?.content;
|
|
5507
5522
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
5508
5523
|
c && /* @__PURE__ */ t.jsxs("div", { className: i(), children: [
|
|
5509
|
-
/* @__PURE__ */ t.jsx(
|
|
5524
|
+
/* @__PURE__ */ t.jsx(ne, { children: c }),
|
|
5510
5525
|
/* @__PURE__ */ t.jsxs("span", { className: "t:text-muted-foreground t:text-sm", children: [
|
|
5511
5526
|
d,
|
|
5512
5527
|
"%"
|
|
5513
5528
|
] })
|
|
5514
5529
|
] }),
|
|
5515
5530
|
/* @__PURE__ */ t.jsx(
|
|
5516
|
-
|
|
5531
|
+
me.Root,
|
|
5517
5532
|
{
|
|
5518
5533
|
className: n(),
|
|
5519
5534
|
value: d,
|
|
5520
5535
|
children: /* @__PURE__ */ t.jsx(
|
|
5521
|
-
|
|
5536
|
+
me.Indicator,
|
|
5522
5537
|
{
|
|
5523
5538
|
className: r(),
|
|
5524
5539
|
style: {
|
|
@@ -5530,46 +5545,46 @@ function zr({ label: e, value: s, defaultValue: o, size: a }) {
|
|
|
5530
5545
|
)
|
|
5531
5546
|
] });
|
|
5532
5547
|
}
|
|
5533
|
-
const
|
|
5534
|
-
const e = ht(
|
|
5548
|
+
const Je = St(null), Ir = () => {
|
|
5549
|
+
const e = ht(Je);
|
|
5535
5550
|
if (!e)
|
|
5536
5551
|
throw new Error("useTheme must be used within a Provider");
|
|
5537
5552
|
return e;
|
|
5538
|
-
},
|
|
5539
|
-
function
|
|
5553
|
+
}, le = "turystack-theme";
|
|
5554
|
+
function ln() {
|
|
5540
5555
|
if (typeof window > "u")
|
|
5541
5556
|
return null;
|
|
5542
5557
|
try {
|
|
5543
|
-
const e = localStorage.getItem(
|
|
5558
|
+
const e = localStorage.getItem(le);
|
|
5544
5559
|
return e ? JSON.parse(e) : null;
|
|
5545
5560
|
} catch {
|
|
5546
5561
|
return null;
|
|
5547
5562
|
}
|
|
5548
5563
|
}
|
|
5549
|
-
function
|
|
5550
|
-
localStorage.setItem(
|
|
5564
|
+
function cn(e) {
|
|
5565
|
+
localStorage.setItem(le, JSON.stringify(e));
|
|
5551
5566
|
}
|
|
5552
|
-
const
|
|
5567
|
+
const qe = {
|
|
5553
5568
|
mono: '"JetBrains Mono", monospace',
|
|
5554
5569
|
sans: '"Inter", sans-serif',
|
|
5555
5570
|
serif: '"Georgia", "Times New Roman", serif'
|
|
5556
|
-
},
|
|
5571
|
+
}, Ze = {
|
|
5557
5572
|
lg: "0.625rem",
|
|
5558
5573
|
md: "0.375rem",
|
|
5559
5574
|
none: "0px",
|
|
5560
5575
|
sm: "0.25rem"
|
|
5561
5576
|
};
|
|
5562
|
-
function
|
|
5577
|
+
function dn(e) {
|
|
5563
5578
|
return {
|
|
5564
5579
|
font: e.font,
|
|
5565
5580
|
radius: e.radius
|
|
5566
5581
|
};
|
|
5567
5582
|
}
|
|
5568
|
-
function
|
|
5569
|
-
const o =
|
|
5570
|
-
return o.font && (a["--font-sans"] =
|
|
5583
|
+
function un(e, s) {
|
|
5584
|
+
const o = dn(e), a = {};
|
|
5585
|
+
return o.font && (a["--font-sans"] = qe[o.font]), o.radius && (a["--t-radius"] = Ze[o.radius]), a;
|
|
5571
5586
|
}
|
|
5572
|
-
const
|
|
5587
|
+
const mn = [
|
|
5573
5588
|
"--t-accent",
|
|
5574
5589
|
"--t-accent-foreground",
|
|
5575
5590
|
"--t-background",
|
|
@@ -5599,18 +5614,18 @@ const un = [
|
|
|
5599
5614
|
"--t-radius",
|
|
5600
5615
|
"--font-sans"
|
|
5601
5616
|
];
|
|
5602
|
-
function
|
|
5617
|
+
function fn({
|
|
5603
5618
|
defaultTheme: e = {},
|
|
5604
5619
|
persistTheme: s = !1,
|
|
5605
5620
|
children: o
|
|
5606
5621
|
}) {
|
|
5607
|
-
const [a, n] =
|
|
5608
|
-
...s ?
|
|
5622
|
+
const [a, n] = E(() => ({
|
|
5623
|
+
...s ? ln() ?? {} : {},
|
|
5609
5624
|
...e
|
|
5610
5625
|
})), r = wt([]), i = Et((c) => {
|
|
5611
5626
|
const m = document.documentElement;
|
|
5612
5627
|
m.classList.contains("dark");
|
|
5613
|
-
const f =
|
|
5628
|
+
const f = un(c);
|
|
5614
5629
|
for (const g of r.current)
|
|
5615
5630
|
g in f || m.style.removeProperty(g);
|
|
5616
5631
|
for (const [g, b] of Object.entries(f))
|
|
@@ -5623,14 +5638,14 @@ function mn({
|
|
|
5623
5638
|
...m,
|
|
5624
5639
|
...c
|
|
5625
5640
|
};
|
|
5626
|
-
return s &&
|
|
5641
|
+
return s && cn(f), f;
|
|
5627
5642
|
});
|
|
5628
5643
|
},
|
|
5629
5644
|
[
|
|
5630
5645
|
s
|
|
5631
5646
|
]
|
|
5632
5647
|
);
|
|
5633
|
-
return
|
|
5648
|
+
return ye(() => {
|
|
5634
5649
|
i(a);
|
|
5635
5650
|
const c = document.documentElement, m = new MutationObserver((f) => {
|
|
5636
5651
|
for (const g of f)
|
|
@@ -5644,14 +5659,14 @@ function mn({
|
|
|
5644
5659
|
}), () => {
|
|
5645
5660
|
m.disconnect();
|
|
5646
5661
|
const f = document.documentElement;
|
|
5647
|
-
for (const g of
|
|
5662
|
+
for (const g of mn)
|
|
5648
5663
|
f.style.removeProperty(g);
|
|
5649
5664
|
};
|
|
5650
5665
|
}, [
|
|
5651
5666
|
a,
|
|
5652
5667
|
i
|
|
5653
5668
|
]), /* @__PURE__ */ t.jsx(
|
|
5654
|
-
|
|
5669
|
+
Je.Provider,
|
|
5655
5670
|
{
|
|
5656
5671
|
value: {
|
|
5657
5672
|
changeTheme: d,
|
|
@@ -5661,17 +5676,17 @@ function mn({
|
|
|
5661
5676
|
}
|
|
5662
5677
|
);
|
|
5663
5678
|
}
|
|
5664
|
-
function
|
|
5679
|
+
function gn({ theme: e, ...s }) {
|
|
5665
5680
|
return /* @__PURE__ */ t.jsx(
|
|
5666
|
-
|
|
5681
|
+
Ts,
|
|
5667
5682
|
{
|
|
5668
5683
|
className: "t:toaster t:group",
|
|
5669
5684
|
icons: {
|
|
5670
|
-
error: /* @__PURE__ */ t.jsx(
|
|
5671
|
-
info: /* @__PURE__ */ t.jsx(
|
|
5672
|
-
loading: /* @__PURE__ */ t.jsx(
|
|
5673
|
-
success: /* @__PURE__ */ t.jsx(
|
|
5674
|
-
warning: /* @__PURE__ */ t.jsx(
|
|
5685
|
+
error: /* @__PURE__ */ t.jsx(gs, { className: "t:h-4 t:w-4" }),
|
|
5686
|
+
info: /* @__PURE__ */ t.jsx(Qt, { className: "t:h-4 t:w-4" }),
|
|
5687
|
+
loading: /* @__PURE__ */ t.jsx(fs, { className: "t:h-4 t:w-4 t:animate-spin" }),
|
|
5688
|
+
success: /* @__PURE__ */ t.jsx(ms, { className: "t:h-4 t:w-4" }),
|
|
5689
|
+
warning: /* @__PURE__ */ t.jsx(us, { className: "t:h-4 t:w-4" })
|
|
5675
5690
|
},
|
|
5676
5691
|
theme: e,
|
|
5677
5692
|
toastOptions: {
|
|
@@ -5690,26 +5705,26 @@ function fn({ theme: e, ...s }) {
|
|
|
5690
5705
|
}
|
|
5691
5706
|
);
|
|
5692
5707
|
}
|
|
5693
|
-
function
|
|
5708
|
+
function _r({
|
|
5694
5709
|
children: e,
|
|
5695
5710
|
defaultColorScheme: s = "system",
|
|
5696
5711
|
persistTheme: o,
|
|
5697
5712
|
theme: a,
|
|
5698
5713
|
...n
|
|
5699
5714
|
}) {
|
|
5700
|
-
return /* @__PURE__ */ t.jsx(
|
|
5701
|
-
|
|
5715
|
+
return /* @__PURE__ */ t.jsx(Te.Provider, { value: n, children: /* @__PURE__ */ t.jsx(fo, { defaultColorScheme: s, children: /* @__PURE__ */ t.jsx(
|
|
5716
|
+
fn,
|
|
5702
5717
|
{
|
|
5703
5718
|
defaultTheme: a,
|
|
5704
5719
|
persistTheme: o,
|
|
5705
5720
|
children: /* @__PURE__ */ t.jsxs(et.Provider, { delayDuration: 400, children: [
|
|
5706
|
-
/* @__PURE__ */ t.jsx(
|
|
5721
|
+
/* @__PURE__ */ t.jsx(gn, {}),
|
|
5707
5722
|
e
|
|
5708
5723
|
] })
|
|
5709
5724
|
}
|
|
5710
5725
|
) }) });
|
|
5711
5726
|
}
|
|
5712
|
-
const
|
|
5727
|
+
const Ke = k({
|
|
5713
5728
|
slots: {
|
|
5714
5729
|
description: "t:text-muted-foreground t:text-sm",
|
|
5715
5730
|
indicator: "t:flex t:cursor-pointer t:items-center t:justify-center",
|
|
@@ -5724,7 +5739,7 @@ const Ze = k({
|
|
|
5724
5739
|
}
|
|
5725
5740
|
}
|
|
5726
5741
|
}
|
|
5727
|
-
}),
|
|
5742
|
+
}), pn = k({
|
|
5728
5743
|
defaultVariants: {
|
|
5729
5744
|
variant: "vertical"
|
|
5730
5745
|
},
|
|
@@ -5743,28 +5758,28 @@ const Ze = k({
|
|
|
5743
5758
|
}
|
|
5744
5759
|
}
|
|
5745
5760
|
});
|
|
5746
|
-
function
|
|
5761
|
+
function xn({
|
|
5747
5762
|
item: e,
|
|
5748
5763
|
groupDisabled: s,
|
|
5749
5764
|
bordered: o
|
|
5750
5765
|
}) {
|
|
5751
|
-
const a =
|
|
5766
|
+
const a = Lt(), {
|
|
5752
5767
|
root: n,
|
|
5753
5768
|
indicator: r,
|
|
5754
5769
|
wrapper: i,
|
|
5755
5770
|
label: d,
|
|
5756
5771
|
description: c
|
|
5757
|
-
} =
|
|
5772
|
+
} = Ke({
|
|
5758
5773
|
bordered: o
|
|
5759
5774
|
}), m = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
5760
5775
|
/* @__PURE__ */ t.jsx(
|
|
5761
|
-
|
|
5776
|
+
gt.Item,
|
|
5762
5777
|
{
|
|
5763
5778
|
className: n(),
|
|
5764
5779
|
disabled: s || e.disabled,
|
|
5765
5780
|
id: a,
|
|
5766
5781
|
value: e.value,
|
|
5767
|
-
children: /* @__PURE__ */ t.jsx(
|
|
5782
|
+
children: /* @__PURE__ */ t.jsx(gt.Indicator, { className: r(), children: /* @__PURE__ */ t.jsx(Xt, { className: "t:h-2.5 t:w-2.5 t:fill-current t:text-current" }) })
|
|
5768
5783
|
}
|
|
5769
5784
|
),
|
|
5770
5785
|
e.label && /* @__PURE__ */ t.jsxs("div", { className: o ? "t:pointer-events-none" : void 0, children: [
|
|
@@ -5788,7 +5803,7 @@ function pn({
|
|
|
5788
5803
|
}
|
|
5789
5804
|
) : /* @__PURE__ */ t.jsx("div", { className: i(), children: m });
|
|
5790
5805
|
}
|
|
5791
|
-
function
|
|
5806
|
+
function hn({
|
|
5792
5807
|
label: e,
|
|
5793
5808
|
description: s,
|
|
5794
5809
|
value: o,
|
|
@@ -5798,22 +5813,22 @@ function xn({
|
|
|
5798
5813
|
defaultChecked: i,
|
|
5799
5814
|
onChange: d
|
|
5800
5815
|
}) {
|
|
5801
|
-
const c =
|
|
5816
|
+
const c = Lt(), {
|
|
5802
5817
|
root: m,
|
|
5803
5818
|
indicator: f,
|
|
5804
5819
|
wrapper: g,
|
|
5805
5820
|
label: b,
|
|
5806
5821
|
description: h
|
|
5807
|
-
} =
|
|
5822
|
+
} = Ke({
|
|
5808
5823
|
bordered: n
|
|
5809
5824
|
}), j = o ?? "on", v = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
5810
5825
|
/* @__PURE__ */ t.jsx(
|
|
5811
|
-
|
|
5826
|
+
gt.Item,
|
|
5812
5827
|
{
|
|
5813
5828
|
className: m(),
|
|
5814
5829
|
id: c,
|
|
5815
5830
|
value: j,
|
|
5816
|
-
children: /* @__PURE__ */ t.jsx(
|
|
5831
|
+
children: /* @__PURE__ */ t.jsx(gt.Indicator, { className: f(), children: /* @__PURE__ */ t.jsx(Xt, { className: "t:h-2.5 t:w-2.5 t:fill-current t:text-current" }) })
|
|
5817
5832
|
}
|
|
5818
5833
|
),
|
|
5819
5834
|
e && /* @__PURE__ */ t.jsxs("div", { className: n ? "t:pointer-events-none" : void 0, children: [
|
|
@@ -5829,7 +5844,7 @@ function xn({
|
|
|
5829
5844
|
] })
|
|
5830
5845
|
] });
|
|
5831
5846
|
return /* @__PURE__ */ t.jsx(
|
|
5832
|
-
|
|
5847
|
+
gt.Root,
|
|
5833
5848
|
{
|
|
5834
5849
|
defaultValue: i ? j : void 0,
|
|
5835
5850
|
disabled: a,
|
|
@@ -5846,7 +5861,7 @@ function xn({
|
|
|
5846
5861
|
}
|
|
5847
5862
|
);
|
|
5848
5863
|
}
|
|
5849
|
-
function
|
|
5864
|
+
function bn({
|
|
5850
5865
|
items: e,
|
|
5851
5866
|
variant: s,
|
|
5852
5867
|
value: o,
|
|
@@ -5855,11 +5870,11 @@ function hn({
|
|
|
5855
5870
|
bordered: r,
|
|
5856
5871
|
onChange: i
|
|
5857
5872
|
}) {
|
|
5858
|
-
const { root: d, item: c } =
|
|
5873
|
+
const { root: d, item: c } = pn({
|
|
5859
5874
|
variant: s
|
|
5860
5875
|
});
|
|
5861
5876
|
return /* @__PURE__ */ t.jsx(
|
|
5862
|
-
|
|
5877
|
+
gt.Root,
|
|
5863
5878
|
{
|
|
5864
5879
|
className: d(),
|
|
5865
5880
|
defaultValue: a,
|
|
@@ -5871,7 +5886,7 @@ function hn({
|
|
|
5871
5886
|
{
|
|
5872
5887
|
className: c(),
|
|
5873
5888
|
children: /* @__PURE__ */ t.jsx(
|
|
5874
|
-
|
|
5889
|
+
xn,
|
|
5875
5890
|
{
|
|
5876
5891
|
bordered: r,
|
|
5877
5892
|
groupDisabled: n,
|
|
@@ -5884,9 +5899,9 @@ function hn({
|
|
|
5884
5899
|
}
|
|
5885
5900
|
);
|
|
5886
5901
|
}
|
|
5887
|
-
const
|
|
5888
|
-
Group:
|
|
5889
|
-
}),
|
|
5902
|
+
const Er = Object.assign(hn, {
|
|
5903
|
+
Group: bn
|
|
5904
|
+
}), Xe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5890
5905
|
q,
|
|
5891
5906
|
{
|
|
5892
5907
|
className: l(
|
|
@@ -5897,14 +5912,14 @@ const Ir = Object.assign(xn, {
|
|
|
5897
5912
|
...s
|
|
5898
5913
|
}
|
|
5899
5914
|
));
|
|
5900
|
-
|
|
5901
|
-
const
|
|
5915
|
+
Xe.displayName = q.displayName;
|
|
5916
|
+
const Qe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsxs(
|
|
5902
5917
|
"div",
|
|
5903
5918
|
{
|
|
5904
5919
|
className: "t:flex t:items-center t:border-b t:px-3",
|
|
5905
5920
|
"cmdk-input-wrapper": "",
|
|
5906
5921
|
children: [
|
|
5907
|
-
/* @__PURE__ */ t.jsx(
|
|
5922
|
+
/* @__PURE__ */ t.jsx(Re, { className: "t:mr-2 t:h-4 t:w-4 t:shrink-0 t:opacity-50" }),
|
|
5908
5923
|
/* @__PURE__ */ t.jsx(
|
|
5909
5924
|
q.Input,
|
|
5910
5925
|
{
|
|
@@ -5919,8 +5934,8 @@ const Xe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsxs(
|
|
|
5919
5934
|
]
|
|
5920
5935
|
}
|
|
5921
5936
|
));
|
|
5922
|
-
|
|
5923
|
-
const
|
|
5937
|
+
Qe.displayName = q.Input.displayName;
|
|
5938
|
+
const ts = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5924
5939
|
q.List,
|
|
5925
5940
|
{
|
|
5926
5941
|
className: l(
|
|
@@ -5931,8 +5946,8 @@ const Qe = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5931
5946
|
...s
|
|
5932
5947
|
}
|
|
5933
5948
|
));
|
|
5934
|
-
|
|
5935
|
-
const
|
|
5949
|
+
ts.displayName = q.List.displayName;
|
|
5950
|
+
const es = st.forwardRef((e, s) => /* @__PURE__ */ t.jsx(
|
|
5936
5951
|
q.Empty,
|
|
5937
5952
|
{
|
|
5938
5953
|
className: "t:py-6 t:text-center t:text-sm",
|
|
@@ -5940,8 +5955,8 @@ const ts = st.forwardRef((e, s) => /* @__PURE__ */ t.jsx(
|
|
|
5940
5955
|
...e
|
|
5941
5956
|
}
|
|
5942
5957
|
));
|
|
5943
|
-
|
|
5944
|
-
const
|
|
5958
|
+
es.displayName = q.Empty.displayName;
|
|
5959
|
+
const Zt = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5945
5960
|
q.Group,
|
|
5946
5961
|
{
|
|
5947
5962
|
className: l(
|
|
@@ -5952,8 +5967,8 @@ const qt = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5952
5967
|
...s
|
|
5953
5968
|
}
|
|
5954
5969
|
));
|
|
5955
|
-
|
|
5956
|
-
const
|
|
5970
|
+
Zt.displayName = q.Group.displayName;
|
|
5971
|
+
const vn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5957
5972
|
q.Separator,
|
|
5958
5973
|
{
|
|
5959
5974
|
className: l("t:-t-mx-1 t:h-px t:bg-border", e),
|
|
@@ -5961,8 +5976,8 @@ const bn = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5961
5976
|
...s
|
|
5962
5977
|
}
|
|
5963
5978
|
));
|
|
5964
|
-
|
|
5965
|
-
const
|
|
5979
|
+
vn.displayName = q.Separator.displayName;
|
|
5980
|
+
const ie = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
5966
5981
|
q.Item,
|
|
5967
5982
|
{
|
|
5968
5983
|
className: l(
|
|
@@ -5973,8 +5988,8 @@ const le = st.forwardRef(({ className: e, ...s }, o) => /* @__PURE__ */ t.jsx(
|
|
|
5973
5988
|
...s
|
|
5974
5989
|
}
|
|
5975
5990
|
));
|
|
5976
|
-
|
|
5977
|
-
function
|
|
5991
|
+
ie.displayName = q.Item.displayName;
|
|
5992
|
+
function jn(e, s) {
|
|
5978
5993
|
if (e.length !== s.length)
|
|
5979
5994
|
return !1;
|
|
5980
5995
|
for (let o = 0; o < e.length; o++)
|
|
@@ -5982,7 +5997,7 @@ function vn(e, s) {
|
|
|
5982
5997
|
return !1;
|
|
5983
5998
|
return !0;
|
|
5984
5999
|
}
|
|
5985
|
-
const
|
|
6000
|
+
const Ne = 2, ce = k({
|
|
5986
6001
|
slots: {
|
|
5987
6002
|
content: "t:w-full t:min-w-[180px] t:p-0",
|
|
5988
6003
|
empty: "",
|
|
@@ -6001,7 +6016,7 @@ const je = 2, ie = k({
|
|
|
6001
6016
|
}
|
|
6002
6017
|
}
|
|
6003
6018
|
}
|
|
6004
|
-
}),
|
|
6019
|
+
}), Nn = k({
|
|
6005
6020
|
base: [
|
|
6006
6021
|
"t:flex t:w-full t:items-center t:justify-between t:gap-2 t:rounded-md t:border t:border-input",
|
|
6007
6022
|
"t:bg-transparent t:px-3 t:text-sm t:shadow-sm t:ring-offset-background",
|
|
@@ -6063,7 +6078,7 @@ const je = 2, ie = k({
|
|
|
6063
6078
|
sm: ""
|
|
6064
6079
|
}
|
|
6065
6080
|
}
|
|
6066
|
-
}),
|
|
6081
|
+
}), yn = k({
|
|
6067
6082
|
base: "t:ml-2 t:size-4 t:shrink-0",
|
|
6068
6083
|
variants: {
|
|
6069
6084
|
selected: {
|
|
@@ -6071,10 +6086,10 @@ const je = 2, ie = k({
|
|
|
6071
6086
|
true: "t:opacity-100"
|
|
6072
6087
|
}
|
|
6073
6088
|
}
|
|
6074
|
-
}),
|
|
6089
|
+
}), pt = (e, s) => typeof s == "function" ? s(e) : e[s], Dt = (e, s) => typeof s == "function" ? s(e) : String(e[s] ?? ""), Cn = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "t:flex t:items-center t:justify-center t:py-2", children: [
|
|
6075
6090
|
/* @__PURE__ */ t.jsx(Rt, { className: "t:size-4 t:animate-spin" }),
|
|
6076
6091
|
/* @__PURE__ */ t.jsx("span", { className: "t:ml-2 t:text-muted-foreground t:text-sm", children: e })
|
|
6077
|
-
] }),
|
|
6092
|
+
] }), wn = (e, s) => {
|
|
6078
6093
|
if (!s)
|
|
6079
6094
|
return [
|
|
6080
6095
|
{
|
|
@@ -6093,7 +6108,7 @@ const je = 2, ie = k({
|
|
|
6093
6108
|
group: n,
|
|
6094
6109
|
options: o.get(n)
|
|
6095
6110
|
}));
|
|
6096
|
-
},
|
|
6111
|
+
}, kn = ({
|
|
6097
6112
|
groups: e,
|
|
6098
6113
|
optionValue: s,
|
|
6099
6114
|
optionLabel: o,
|
|
@@ -6102,18 +6117,18 @@ const je = 2, ie = k({
|
|
|
6102
6117
|
infiniteLoadingText: r
|
|
6103
6118
|
}) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
6104
6119
|
e.map((i, d) => /* @__PURE__ */ t.jsx(
|
|
6105
|
-
|
|
6120
|
+
Zt,
|
|
6106
6121
|
{
|
|
6107
6122
|
heading: i.group,
|
|
6108
6123
|
children: i.options.map((c) => {
|
|
6109
|
-
const m =
|
|
6124
|
+
const m = pt(c, s), f = Dt(c, o);
|
|
6110
6125
|
return a(c, m, f);
|
|
6111
6126
|
})
|
|
6112
6127
|
},
|
|
6113
6128
|
i.group ?? d
|
|
6114
6129
|
)),
|
|
6115
|
-
n?.loadingMore && /* @__PURE__ */ t.jsx(
|
|
6116
|
-
] }),
|
|
6130
|
+
n?.loadingMore && /* @__PURE__ */ t.jsx(Zt, { children: /* @__PURE__ */ t.jsx(Cn, { children: r }) })
|
|
6131
|
+
] }), ss = ({
|
|
6117
6132
|
mode: e,
|
|
6118
6133
|
options: s,
|
|
6119
6134
|
optionLabel: o,
|
|
@@ -6134,9 +6149,9 @@ const je = 2, ie = k({
|
|
|
6134
6149
|
onSearchChange: N,
|
|
6135
6150
|
renderTriggerContent: y,
|
|
6136
6151
|
renderItem: R,
|
|
6137
|
-
onScroll:
|
|
6152
|
+
onScroll: O
|
|
6138
6153
|
}) => {
|
|
6139
|
-
const P = x(), C = P?.components?.select,
|
|
6154
|
+
const P = x(), C = P?.components?.select, L = P?.translations?.select, z = !!m, w = !!f, I = xt(() => !i || !p ? s : s.filter(
|
|
6140
6155
|
(W) => Dt(W, o).toLowerCase().includes(p.toLowerCase())
|
|
6141
6156
|
), [
|
|
6142
6157
|
s,
|
|
@@ -6144,7 +6159,7 @@ const je = 2, ie = k({
|
|
|
6144
6159
|
i,
|
|
6145
6160
|
p
|
|
6146
6161
|
]), F = xt(
|
|
6147
|
-
() =>
|
|
6162
|
+
() => wn(I, n),
|
|
6148
6163
|
[
|
|
6149
6164
|
I,
|
|
6150
6165
|
n
|
|
@@ -6155,19 +6170,19 @@ const je = 2, ie = k({
|
|
|
6155
6170
|
loader: D,
|
|
6156
6171
|
leftSection: M,
|
|
6157
6172
|
rightSection: U
|
|
6158
|
-
} =
|
|
6173
|
+
} = ce({});
|
|
6159
6174
|
return /* @__PURE__ */ t.jsx("div", { className: l(A(), C?.classNames?.root), children: /* @__PURE__ */ t.jsxs(
|
|
6160
|
-
|
|
6175
|
+
se,
|
|
6161
6176
|
{
|
|
6162
6177
|
onOpenChange: v,
|
|
6163
6178
|
open: j,
|
|
6164
6179
|
children: [
|
|
6165
|
-
/* @__PURE__ */ t.jsx(
|
|
6180
|
+
/* @__PURE__ */ t.jsx(oe, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
|
|
6166
6181
|
"button",
|
|
6167
6182
|
{
|
|
6168
6183
|
"aria-expanded": j,
|
|
6169
|
-
className:
|
|
6170
|
-
hasLeft:
|
|
6184
|
+
className: Nn({
|
|
6185
|
+
hasLeft: z,
|
|
6171
6186
|
hasRight: w,
|
|
6172
6187
|
mode: e,
|
|
6173
6188
|
size: h
|
|
@@ -6176,7 +6191,7 @@ const je = 2, ie = k({
|
|
|
6176
6191
|
role: "combobox",
|
|
6177
6192
|
type: "button",
|
|
6178
6193
|
children: [
|
|
6179
|
-
|
|
6194
|
+
z && /* @__PURE__ */ t.jsx(
|
|
6180
6195
|
"div",
|
|
6181
6196
|
{
|
|
6182
6197
|
className: l(
|
|
@@ -6210,9 +6225,9 @@ const je = 2, ie = k({
|
|
|
6210
6225
|
style: {
|
|
6211
6226
|
width: "var(--radix-popover-trigger-width)"
|
|
6212
6227
|
},
|
|
6213
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
6228
|
+
children: /* @__PURE__ */ t.jsxs(Xe, { shouldFilter: !1, children: [
|
|
6214
6229
|
i && /* @__PURE__ */ t.jsx(
|
|
6215
|
-
|
|
6230
|
+
Qe,
|
|
6216
6231
|
{
|
|
6217
6232
|
className: l(C?.classNames?.search),
|
|
6218
6233
|
onValueChange: N,
|
|
@@ -6220,14 +6235,14 @@ const je = 2, ie = k({
|
|
|
6220
6235
|
value: p
|
|
6221
6236
|
}
|
|
6222
6237
|
),
|
|
6223
|
-
/* @__PURE__ */ t.jsxs(
|
|
6224
|
-
/* @__PURE__ */ t.jsx(
|
|
6238
|
+
/* @__PURE__ */ t.jsxs(ts, { onScroll: O, children: [
|
|
6239
|
+
/* @__PURE__ */ t.jsx(es, { className: l(C?.classNames?.empty), children: r ?? L?.empty ?? "No results found" }),
|
|
6225
6240
|
/* @__PURE__ */ t.jsx(
|
|
6226
|
-
|
|
6241
|
+
kn,
|
|
6227
6242
|
{
|
|
6228
6243
|
groups: F,
|
|
6229
6244
|
infinite: c,
|
|
6230
|
-
infiniteLoadingText: c?.loadingMoreText ??
|
|
6245
|
+
infiniteLoadingText: c?.loadingMoreText ?? L?.loadingMore ?? "Loading more...",
|
|
6231
6246
|
optionLabel: o,
|
|
6232
6247
|
optionValue: a,
|
|
6233
6248
|
renderItem: R
|
|
@@ -6240,7 +6255,7 @@ const je = 2, ie = k({
|
|
|
6240
6255
|
]
|
|
6241
6256
|
}
|
|
6242
6257
|
) });
|
|
6243
|
-
},
|
|
6258
|
+
}, Sn = ({
|
|
6244
6259
|
placeholder: e,
|
|
6245
6260
|
options: s = [],
|
|
6246
6261
|
optionLabel: o,
|
|
@@ -6261,10 +6276,10 @@ const je = 2, ie = k({
|
|
|
6261
6276
|
renderValue: N,
|
|
6262
6277
|
onChange: y
|
|
6263
6278
|
}) => {
|
|
6264
|
-
const
|
|
6279
|
+
const O = x()?.components?.select, P = c ?? !0, C = j ?? !1, L = h ?? !1, z = v ?? "md", [w, I] = E(!1), [F, A] = E(""), [S, D] = E(
|
|
6265
6280
|
r ?? i ?? null
|
|
6266
6281
|
), M = xt(() => S == null ? null : s.find(
|
|
6267
|
-
(u) =>
|
|
6282
|
+
(u) => pt(u, a) === S
|
|
6268
6283
|
) ?? null, [
|
|
6269
6284
|
s,
|
|
6270
6285
|
S,
|
|
@@ -6274,30 +6289,30 @@ const je = 2, ie = k({
|
|
|
6274
6289
|
N,
|
|
6275
6290
|
o
|
|
6276
6291
|
]), W = (u) => {
|
|
6277
|
-
const
|
|
6278
|
-
D(
|
|
6292
|
+
const T = pt(u, a), $ = T === S ? null : T;
|
|
6293
|
+
D($), y?.($), I(!1), A("");
|
|
6279
6294
|
}, Z = (u) => {
|
|
6280
6295
|
if (!f?.hasMore || f?.loadingMore)
|
|
6281
6296
|
return;
|
|
6282
|
-
const { scrollTop:
|
|
6283
|
-
|
|
6297
|
+
const { scrollTop: T, scrollHeight: $, clientHeight: _ } = u.currentTarget;
|
|
6298
|
+
$ - T - _ < 50 && f.onLoadMore?.();
|
|
6284
6299
|
};
|
|
6285
|
-
|
|
6300
|
+
ct(() => {
|
|
6286
6301
|
r !== void 0 && r !== S && D(r ?? null);
|
|
6287
6302
|
}, [
|
|
6288
6303
|
r
|
|
6289
6304
|
]);
|
|
6290
|
-
const { option: Q, value: tt } =
|
|
6305
|
+
const { option: Q, value: tt } = ce({
|
|
6291
6306
|
hasPlaceholder: !U
|
|
6292
6307
|
});
|
|
6293
6308
|
return /* @__PURE__ */ t.jsx(
|
|
6294
|
-
|
|
6309
|
+
ss,
|
|
6295
6310
|
{
|
|
6296
6311
|
disabled: C,
|
|
6297
6312
|
emptySection: d,
|
|
6298
6313
|
infinite: f,
|
|
6299
6314
|
leftSection: g,
|
|
6300
|
-
loading:
|
|
6315
|
+
loading: L,
|
|
6301
6316
|
mode: "single",
|
|
6302
6317
|
onOpenChange: I,
|
|
6303
6318
|
onScroll: Z,
|
|
@@ -6307,43 +6322,43 @@ const je = 2, ie = k({
|
|
|
6307
6322
|
optionLabel: o,
|
|
6308
6323
|
options: s,
|
|
6309
6324
|
optionValue: a,
|
|
6310
|
-
renderItem: (u,
|
|
6311
|
-
const _ = S ===
|
|
6325
|
+
renderItem: (u, T, $) => {
|
|
6326
|
+
const _ = S === T;
|
|
6312
6327
|
return /* @__PURE__ */ t.jsxs(
|
|
6313
|
-
|
|
6328
|
+
ie,
|
|
6314
6329
|
{
|
|
6315
6330
|
className: l(
|
|
6316
6331
|
Q(),
|
|
6317
6332
|
"t:justify-between",
|
|
6318
|
-
|
|
6333
|
+
O?.classNames?.option
|
|
6319
6334
|
),
|
|
6320
6335
|
onSelect: () => W(u),
|
|
6321
|
-
value: String(
|
|
6336
|
+
value: String(T),
|
|
6322
6337
|
children: [
|
|
6323
|
-
/* @__PURE__ */ t.jsx("span", { className: "t:truncate", children: p ? p(u) :
|
|
6338
|
+
/* @__PURE__ */ t.jsx("span", { className: "t:truncate", children: p ? p(u) : $ }),
|
|
6324
6339
|
/* @__PURE__ */ t.jsx(
|
|
6325
|
-
|
|
6340
|
+
Kt,
|
|
6326
6341
|
{
|
|
6327
|
-
className:
|
|
6342
|
+
className: yn({
|
|
6328
6343
|
selected: _
|
|
6329
6344
|
})
|
|
6330
6345
|
}
|
|
6331
6346
|
)
|
|
6332
6347
|
]
|
|
6333
6348
|
},
|
|
6334
|
-
String(
|
|
6349
|
+
String(T)
|
|
6335
6350
|
);
|
|
6336
6351
|
},
|
|
6337
6352
|
renderOption: p,
|
|
6338
|
-
renderTriggerContent: () => /* @__PURE__ */ t.jsx("span", { className: l(tt(),
|
|
6353
|
+
renderTriggerContent: () => /* @__PURE__ */ t.jsx("span", { className: l(tt(), O?.classNames?.value), children: U ?? e ?? "" }),
|
|
6339
6354
|
rightSection: b,
|
|
6340
6355
|
searchable: P,
|
|
6341
6356
|
searchPlaceholder: m,
|
|
6342
6357
|
searchQuery: F,
|
|
6343
|
-
size:
|
|
6358
|
+
size: z
|
|
6344
6359
|
}
|
|
6345
6360
|
);
|
|
6346
|
-
},
|
|
6361
|
+
}, Rn = ({
|
|
6347
6362
|
placeholder: e,
|
|
6348
6363
|
options: s = [],
|
|
6349
6364
|
optionLabel: o,
|
|
@@ -6364,19 +6379,19 @@ const je = 2, ie = k({
|
|
|
6364
6379
|
renderValue: N,
|
|
6365
6380
|
onChange: y
|
|
6366
6381
|
}) => {
|
|
6367
|
-
const
|
|
6382
|
+
const O = x()?.components?.select, P = c ?? !0, C = j ?? !1, L = h ?? !1, z = v ?? "md", [w, I] = E(!1), [F, A] = E(""), [S, D] = E(
|
|
6368
6383
|
r ?? i ?? []
|
|
6369
6384
|
), M = xt(
|
|
6370
6385
|
() => s.filter(
|
|
6371
|
-
(_) => S.includes(
|
|
6386
|
+
(_) => S.includes(pt(_, a))
|
|
6372
6387
|
),
|
|
6373
6388
|
[
|
|
6374
6389
|
s,
|
|
6375
6390
|
a,
|
|
6376
6391
|
S
|
|
6377
6392
|
]
|
|
6378
|
-
), U = M.slice(0,
|
|
6379
|
-
const H =
|
|
6393
|
+
), U = M.slice(0, Ne), W = M.length - Ne, Z = (_) => {
|
|
6394
|
+
const H = pt(_, a), B = S.includes(H) ? S.filter((rt) => rt !== H) : [
|
|
6380
6395
|
...S,
|
|
6381
6396
|
H
|
|
6382
6397
|
];
|
|
@@ -6391,22 +6406,22 @@ const je = 2, ie = k({
|
|
|
6391
6406
|
const { scrollTop: H, scrollHeight: K, clientHeight: B } = _.currentTarget;
|
|
6392
6407
|
K - H - B < 50 && f.onLoadMore?.();
|
|
6393
6408
|
};
|
|
6394
|
-
|
|
6395
|
-
r !== void 0 && !
|
|
6409
|
+
ct(() => {
|
|
6410
|
+
r !== void 0 && !jn(r, S) && D(r);
|
|
6396
6411
|
}, [
|
|
6397
6412
|
r
|
|
6398
6413
|
]);
|
|
6399
|
-
const u = M.length === 0, { option:
|
|
6414
|
+
const u = M.length === 0, { option: T, value: $ } = ce({
|
|
6400
6415
|
hasPlaceholder: u
|
|
6401
6416
|
});
|
|
6402
6417
|
return /* @__PURE__ */ t.jsx(
|
|
6403
|
-
|
|
6418
|
+
ss,
|
|
6404
6419
|
{
|
|
6405
6420
|
disabled: C,
|
|
6406
6421
|
emptySection: d,
|
|
6407
6422
|
infinite: f,
|
|
6408
6423
|
leftSection: g,
|
|
6409
|
-
loading:
|
|
6424
|
+
loading: L,
|
|
6410
6425
|
mode: "multiple",
|
|
6411
6426
|
onOpenChange: I,
|
|
6412
6427
|
onScroll: tt,
|
|
@@ -6419,13 +6434,13 @@ const je = 2, ie = k({
|
|
|
6419
6434
|
renderItem: (_, H, K) => {
|
|
6420
6435
|
const B = S.includes(H);
|
|
6421
6436
|
return /* @__PURE__ */ t.jsxs(
|
|
6422
|
-
|
|
6437
|
+
ie,
|
|
6423
6438
|
{
|
|
6424
|
-
className: l(
|
|
6439
|
+
className: l(T(), O?.classNames?.option),
|
|
6425
6440
|
onSelect: () => Z(_),
|
|
6426
6441
|
value: String(H),
|
|
6427
6442
|
children: [
|
|
6428
|
-
/* @__PURE__ */ t.jsx(
|
|
6443
|
+
/* @__PURE__ */ t.jsx(Wt, { checked: B }),
|
|
6429
6444
|
/* @__PURE__ */ t.jsx("span", { className: "t:truncate", children: p ? p(_) : K })
|
|
6430
6445
|
]
|
|
6431
6446
|
},
|
|
@@ -6435,9 +6450,9 @@ const je = 2, ie = k({
|
|
|
6435
6450
|
renderOption: p,
|
|
6436
6451
|
renderTriggerContent: () => /* @__PURE__ */ t.jsx("div", { className: "t:flex t:min-w-0 t:flex-1 t:items-center t:gap-2", children: M.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
6437
6452
|
U.map((_) => {
|
|
6438
|
-
const H =
|
|
6453
|
+
const H = pt(_, a);
|
|
6439
6454
|
return /* @__PURE__ */ t.jsxs(
|
|
6440
|
-
|
|
6455
|
+
Ut,
|
|
6441
6456
|
{
|
|
6442
6457
|
variant: "secondary",
|
|
6443
6458
|
children: [
|
|
@@ -6448,7 +6463,7 @@ const je = 2, ie = k({
|
|
|
6448
6463
|
className: "t:shrink-0 t:rounded-full t:p-0.5 t:hover:bg-muted-foreground/20",
|
|
6449
6464
|
onClick: (K) => Q(H, K),
|
|
6450
6465
|
type: "button",
|
|
6451
|
-
children: /* @__PURE__ */ t.jsx(
|
|
6466
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: "t:size-3" })
|
|
6452
6467
|
}
|
|
6453
6468
|
)
|
|
6454
6469
|
]
|
|
@@ -6456,19 +6471,19 @@ const je = 2, ie = k({
|
|
|
6456
6471
|
String(H)
|
|
6457
6472
|
);
|
|
6458
6473
|
}),
|
|
6459
|
-
W > 0 && /* @__PURE__ */ t.jsxs(
|
|
6474
|
+
W > 0 && /* @__PURE__ */ t.jsxs(Ut, { variant: "secondary", children: [
|
|
6460
6475
|
"+",
|
|
6461
6476
|
W
|
|
6462
6477
|
] })
|
|
6463
|
-
] }) : /* @__PURE__ */ t.jsx("span", { className: l(
|
|
6478
|
+
] }) : /* @__PURE__ */ t.jsx("span", { className: l($(), O?.classNames?.value), children: e ?? "" }) }),
|
|
6464
6479
|
rightSection: b,
|
|
6465
6480
|
searchable: P,
|
|
6466
6481
|
searchPlaceholder: m,
|
|
6467
6482
|
searchQuery: F,
|
|
6468
|
-
size:
|
|
6483
|
+
size: z
|
|
6469
6484
|
}
|
|
6470
6485
|
);
|
|
6471
|
-
},
|
|
6486
|
+
}, Or = (e) => e.mode === "multiple" ? /* @__PURE__ */ t.jsx(Rn, { ...e }) : /* @__PURE__ */ t.jsx(Sn, { ...e }), Tn = k({
|
|
6472
6487
|
defaultVariants: {
|
|
6473
6488
|
orientation: "horizontal"
|
|
6474
6489
|
},
|
|
@@ -6486,8 +6501,8 @@ const je = 2, ie = k({
|
|
|
6486
6501
|
}
|
|
6487
6502
|
}
|
|
6488
6503
|
});
|
|
6489
|
-
function
|
|
6490
|
-
const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } =
|
|
6504
|
+
function Lr({ orientation: e, decorative: s = !0 }) {
|
|
6505
|
+
const a = x()?.components?.separator, n = e ?? a?.defaultProps?.orientation ?? "horizontal", { root: r } = Tn({
|
|
6491
6506
|
orientation: n
|
|
6492
6507
|
});
|
|
6493
6508
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -6569,7 +6584,7 @@ function zn({
|
|
|
6569
6584
|
Y.Close,
|
|
6570
6585
|
{
|
|
6571
6586
|
className: l(c(), r?.classNames?.close),
|
|
6572
|
-
children: /* @__PURE__ */ t.jsx(
|
|
6587
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: m() })
|
|
6573
6588
|
}
|
|
6574
6589
|
)
|
|
6575
6590
|
]
|
|
@@ -6579,7 +6594,7 @@ function zn({
|
|
|
6579
6594
|
}
|
|
6580
6595
|
);
|
|
6581
6596
|
}
|
|
6582
|
-
function
|
|
6597
|
+
function Pn({
|
|
6583
6598
|
bordered: e,
|
|
6584
6599
|
closable: s,
|
|
6585
6600
|
children: o
|
|
@@ -6589,24 +6604,24 @@ function Tn({
|
|
|
6589
6604
|
});
|
|
6590
6605
|
return /* @__PURE__ */ t.jsxs("div", { className: l(r(), n?.classNames?.root), children: [
|
|
6591
6606
|
/* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-col t:gap-1", children: o }),
|
|
6592
|
-
s && /* @__PURE__ */ t.jsx(Y.Close, { className: i(), children: /* @__PURE__ */ t.jsx(
|
|
6607
|
+
s && /* @__PURE__ */ t.jsx(Y.Close, { className: i(), children: /* @__PURE__ */ t.jsx(ut, { className: d() }) })
|
|
6593
6608
|
] });
|
|
6594
6609
|
}
|
|
6595
|
-
function
|
|
6610
|
+
function In({ children: e }) {
|
|
6596
6611
|
const o = x()?.components?.sheet?.body, { body: a } = vt();
|
|
6597
6612
|
return /* @__PURE__ */ t.jsx("div", { className: l(a(), o?.classNames?.root), children: e });
|
|
6598
6613
|
}
|
|
6599
|
-
function
|
|
6614
|
+
function _n({ bordered: e, children: s }) {
|
|
6600
6615
|
const a = x()?.components?.sheet?.footer, { footer: n } = vt({
|
|
6601
6616
|
bordered: e
|
|
6602
6617
|
});
|
|
6603
6618
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root), children: s });
|
|
6604
6619
|
}
|
|
6605
|
-
function
|
|
6620
|
+
function En({ children: e }) {
|
|
6606
6621
|
const o = x()?.components?.sheet?.title, { title: a } = vt();
|
|
6607
6622
|
return /* @__PURE__ */ t.jsx(Y.Title, { className: l(a(), o?.classNames?.root), children: e });
|
|
6608
6623
|
}
|
|
6609
|
-
function
|
|
6624
|
+
function On({ children: e }) {
|
|
6610
6625
|
const o = x()?.components?.sheet?.description, { description: a } = vt();
|
|
6611
6626
|
return /* @__PURE__ */ t.jsx(
|
|
6612
6627
|
Y.Description,
|
|
@@ -6616,24 +6631,24 @@ function En({ children: e }) {
|
|
|
6616
6631
|
}
|
|
6617
6632
|
);
|
|
6618
6633
|
}
|
|
6619
|
-
const
|
|
6620
|
-
Body:
|
|
6634
|
+
const $r = Object.assign(zn, {
|
|
6635
|
+
Body: In,
|
|
6621
6636
|
Close: Y.Close,
|
|
6622
|
-
Description:
|
|
6623
|
-
Footer:
|
|
6624
|
-
Header:
|
|
6625
|
-
Title:
|
|
6637
|
+
Description: On,
|
|
6638
|
+
Footer: _n,
|
|
6639
|
+
Header: Pn,
|
|
6640
|
+
Title: En,
|
|
6626
6641
|
Trigger: Y.Trigger
|
|
6627
|
-
}),
|
|
6642
|
+
}), Ln = k({
|
|
6628
6643
|
slots: {
|
|
6629
6644
|
root: "t:block t:h-full t:w-full t:animate-pulse t:rounded-md t:bg-muted"
|
|
6630
6645
|
}
|
|
6631
6646
|
});
|
|
6632
|
-
function
|
|
6647
|
+
function Ar({
|
|
6633
6648
|
children: e,
|
|
6634
6649
|
className: s
|
|
6635
6650
|
}) {
|
|
6636
|
-
const a = x()?.components?.skeleton, { root: n } =
|
|
6651
|
+
const a = x()?.components?.skeleton, { root: n } = Ln();
|
|
6637
6652
|
return /* @__PURE__ */ t.jsx("div", { className: l(n(), a?.classNames?.root, s), children: e });
|
|
6638
6653
|
}
|
|
6639
6654
|
const $n = k({
|
|
@@ -6717,7 +6732,7 @@ const $n = k({
|
|
|
6717
6732
|
}
|
|
6718
6733
|
}
|
|
6719
6734
|
});
|
|
6720
|
-
function
|
|
6735
|
+
function Mr(e) {
|
|
6721
6736
|
const { orientation: s, size: o } = e, { root: a, track: n, range: r, thumb: i } = $n({
|
|
6722
6737
|
orientation: s,
|
|
6723
6738
|
size: o
|
|
@@ -6762,7 +6777,7 @@ function Lr(e) {
|
|
|
6762
6777
|
}
|
|
6763
6778
|
);
|
|
6764
6779
|
}
|
|
6765
|
-
const
|
|
6780
|
+
const An = k({
|
|
6766
6781
|
defaultVariants: {
|
|
6767
6782
|
size: "md"
|
|
6768
6783
|
},
|
|
@@ -6794,7 +6809,7 @@ const Ln = k({
|
|
|
6794
6809
|
}
|
|
6795
6810
|
}
|
|
6796
6811
|
});
|
|
6797
|
-
function
|
|
6812
|
+
function Vr({
|
|
6798
6813
|
label: e,
|
|
6799
6814
|
value: s,
|
|
6800
6815
|
size: o,
|
|
@@ -6805,18 +6820,18 @@ function Ar({
|
|
|
6805
6820
|
bordered: d,
|
|
6806
6821
|
onCheckedChange: c
|
|
6807
6822
|
}) {
|
|
6808
|
-
const m =
|
|
6823
|
+
const m = Lt(), {
|
|
6809
6824
|
root: f,
|
|
6810
6825
|
thumb: g,
|
|
6811
6826
|
wrapper: b,
|
|
6812
6827
|
description: h
|
|
6813
|
-
} =
|
|
6828
|
+
} = An({
|
|
6814
6829
|
bordered: d,
|
|
6815
6830
|
size: o
|
|
6816
6831
|
}), j = typeof e == "string" ? e : e?.content, v = typeof e == "object" && e !== null ? e.required : !1, p = typeof e == "object" && e !== null ? e.optional : !1, N = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
6817
6832
|
j && /* @__PURE__ */ t.jsxs("div", { className: d ? "t:pointer-events-none" : void 0, children: [
|
|
6818
6833
|
/* @__PURE__ */ t.jsx(
|
|
6819
|
-
|
|
6834
|
+
ne,
|
|
6820
6835
|
{
|
|
6821
6836
|
disabled: i,
|
|
6822
6837
|
htmlFor: d ? void 0 : m,
|
|
@@ -6828,7 +6843,7 @@ function Ar({
|
|
|
6828
6843
|
a && /* @__PURE__ */ t.jsx("p", { className: h(), children: a })
|
|
6829
6844
|
] }),
|
|
6830
6845
|
/* @__PURE__ */ t.jsx(
|
|
6831
|
-
|
|
6846
|
+
fe.Root,
|
|
6832
6847
|
{
|
|
6833
6848
|
checked: n,
|
|
6834
6849
|
className: f(),
|
|
@@ -6837,7 +6852,7 @@ function Ar({
|
|
|
6837
6852
|
id: m,
|
|
6838
6853
|
onCheckedChange: c,
|
|
6839
6854
|
value: s,
|
|
6840
|
-
children: /* @__PURE__ */ t.jsx(
|
|
6855
|
+
children: /* @__PURE__ */ t.jsx(fe.Thumb, { className: g() })
|
|
6841
6856
|
}
|
|
6842
6857
|
)
|
|
6843
6858
|
] });
|
|
@@ -6891,10 +6906,10 @@ const It = k({
|
|
|
6891
6906
|
}
|
|
6892
6907
|
}
|
|
6893
6908
|
});
|
|
6894
|
-
function
|
|
6895
|
-
return !s || s !== e && s !== `-${e}` ? /* @__PURE__ */ t.jsx(
|
|
6909
|
+
function Mn({ columnKey: e, sort: s }) {
|
|
6910
|
+
return !s || s !== e && s !== `-${e}` ? /* @__PURE__ */ t.jsx(ps, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : s === e ? /* @__PURE__ */ t.jsx(xs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" }) : /* @__PURE__ */ t.jsx(hs, { className: "t:ml-1 t:inline-block t:h-3 t:w-3" });
|
|
6896
6911
|
}
|
|
6897
|
-
function
|
|
6912
|
+
function Dr({
|
|
6898
6913
|
columns: e,
|
|
6899
6914
|
items: s = [],
|
|
6900
6915
|
itemKey: o,
|
|
@@ -6910,10 +6925,10 @@ function Mr({
|
|
|
6910
6925
|
onSelectionChange: b,
|
|
6911
6926
|
onSortChange: h
|
|
6912
6927
|
}) {
|
|
6913
|
-
const [j, v] =
|
|
6928
|
+
const [j, v] = E(
|
|
6914
6929
|
n ?? r ?? []
|
|
6915
|
-
), p = n !== void 0, N = p ? n : j, y = x(), R = y?.components?.table,
|
|
6916
|
-
|
|
6930
|
+
), p = n !== void 0, N = p ? n : j, y = x(), R = y?.components?.table, O = y?.translations?.table;
|
|
6931
|
+
ct(() => {
|
|
6917
6932
|
p && n && v(n);
|
|
6918
6933
|
}, [
|
|
6919
6934
|
p,
|
|
@@ -6922,8 +6937,8 @@ function Mr({
|
|
|
6922
6937
|
const {
|
|
6923
6938
|
root: P,
|
|
6924
6939
|
table: C,
|
|
6925
|
-
header:
|
|
6926
|
-
headerCell:
|
|
6940
|
+
header: L,
|
|
6941
|
+
headerCell: z,
|
|
6927
6942
|
body: w,
|
|
6928
6943
|
cell: I,
|
|
6929
6944
|
empty: F,
|
|
@@ -6937,12 +6952,12 @@ function Mr({
|
|
|
6937
6952
|
function Z(u) {
|
|
6938
6953
|
W(u ? M : []);
|
|
6939
6954
|
}
|
|
6940
|
-
function Q(u,
|
|
6941
|
-
const
|
|
6955
|
+
function Q(u, T) {
|
|
6956
|
+
const $ = T ? [
|
|
6942
6957
|
...N,
|
|
6943
6958
|
u
|
|
6944
6959
|
] : N.filter((_) => _ !== u);
|
|
6945
|
-
W(
|
|
6960
|
+
W($);
|
|
6946
6961
|
}
|
|
6947
6962
|
function tt(u) {
|
|
6948
6963
|
!d || d === `-${u}` ? h?.(u) : h?.(d === u ? `-${u}` : u);
|
|
@@ -6951,18 +6966,18 @@ function Mr({
|
|
|
6951
6966
|
/* @__PURE__ */ t.jsxs("div", { className: l(P(), R?.classNames?.root), children: [
|
|
6952
6967
|
/* @__PURE__ */ t.jsx(za, { visible: m }),
|
|
6953
6968
|
/* @__PURE__ */ t.jsxs("table", { className: C(), children: [
|
|
6954
|
-
/* @__PURE__ */ t.jsx("thead", { className: l(
|
|
6969
|
+
/* @__PURE__ */ t.jsx("thead", { className: l(L(), R?.classNames?.header), children: /* @__PURE__ */ t.jsxs("tr", { children: [
|
|
6955
6970
|
D && /* @__PURE__ */ t.jsx(
|
|
6956
6971
|
"th",
|
|
6957
6972
|
{
|
|
6958
6973
|
className: l(
|
|
6959
|
-
|
|
6974
|
+
z(),
|
|
6960
6975
|
A(),
|
|
6961
6976
|
R?.classNames?.selection,
|
|
6962
6977
|
"t:w-10"
|
|
6963
6978
|
),
|
|
6964
6979
|
children: /* @__PURE__ */ t.jsx(
|
|
6965
|
-
|
|
6980
|
+
Wt,
|
|
6966
6981
|
{
|
|
6967
6982
|
checked: U,
|
|
6968
6983
|
onChange: Z
|
|
@@ -6987,7 +7002,7 @@ function Mr({
|
|
|
6987
7002
|
children: [
|
|
6988
7003
|
u.label,
|
|
6989
7004
|
u.sorter && /* @__PURE__ */ t.jsx(
|
|
6990
|
-
|
|
7005
|
+
Mn,
|
|
6991
7006
|
{
|
|
6992
7007
|
columnKey: u.key,
|
|
6993
7008
|
sort: d
|
|
@@ -7003,10 +7018,10 @@ function Mr({
|
|
|
7003
7018
|
{
|
|
7004
7019
|
className: l(F(), R?.classNames?.empty),
|
|
7005
7020
|
colSpan: S.length + (D ? 1 : 0),
|
|
7006
|
-
children: f ??
|
|
7021
|
+
children: f ?? O?.noData
|
|
7007
7022
|
}
|
|
7008
|
-
) }) : s.map((u,
|
|
7009
|
-
const
|
|
7023
|
+
) }) : s.map((u, T) => {
|
|
7024
|
+
const $ = String(u[o]), _ = N.includes($);
|
|
7010
7025
|
return /* @__PURE__ */ t.jsxs(
|
|
7011
7026
|
"tr",
|
|
7012
7027
|
{
|
|
@@ -7027,10 +7042,10 @@ function Mr({
|
|
|
7027
7042
|
"t:w-10"
|
|
7028
7043
|
),
|
|
7029
7044
|
children: /* @__PURE__ */ t.jsx(
|
|
7030
|
-
|
|
7045
|
+
Wt,
|
|
7031
7046
|
{
|
|
7032
7047
|
checked: _,
|
|
7033
|
-
onChange: (H) => Q(
|
|
7048
|
+
onChange: (H) => Q($, H)
|
|
7034
7049
|
}
|
|
7035
7050
|
)
|
|
7036
7051
|
}
|
|
@@ -7044,7 +7059,7 @@ function Mr({
|
|
|
7044
7059
|
}).cell(),
|
|
7045
7060
|
R?.classNames?.cell
|
|
7046
7061
|
),
|
|
7047
|
-
children: H.selector ? H.selector(u,
|
|
7062
|
+
children: H.selector ? H.selector(u, T) : String(
|
|
7048
7063
|
u[H.key] ?? ""
|
|
7049
7064
|
)
|
|
7050
7065
|
},
|
|
@@ -7052,12 +7067,12 @@ function Mr({
|
|
|
7052
7067
|
))
|
|
7053
7068
|
]
|
|
7054
7069
|
},
|
|
7055
|
-
|
|
7070
|
+
$
|
|
7056
7071
|
);
|
|
7057
7072
|
}) })
|
|
7058
7073
|
] })
|
|
7059
7074
|
] }),
|
|
7060
|
-
!c && i && /* @__PURE__ */ t.jsx(
|
|
7075
|
+
!c && i && /* @__PURE__ */ t.jsx(qa, { ...i })
|
|
7061
7076
|
] });
|
|
7062
7077
|
}
|
|
7063
7078
|
const Ft = k({
|
|
@@ -7075,7 +7090,7 @@ const Ft = k({
|
|
|
7075
7090
|
}
|
|
7076
7091
|
}
|
|
7077
7092
|
});
|
|
7078
|
-
function
|
|
7093
|
+
function Vn({
|
|
7079
7094
|
children: e,
|
|
7080
7095
|
onChange: s,
|
|
7081
7096
|
value: o,
|
|
@@ -7084,7 +7099,7 @@ function Mn({
|
|
|
7084
7099
|
}) {
|
|
7085
7100
|
const i = x()?.components?.tabs?.default, { root: d } = Ft();
|
|
7086
7101
|
return /* @__PURE__ */ t.jsx(
|
|
7087
|
-
|
|
7102
|
+
$t.Root,
|
|
7088
7103
|
{
|
|
7089
7104
|
className: l(d(), i?.classNames?.root),
|
|
7090
7105
|
defaultValue: a ?? i?.defaultProps?.defaultValue,
|
|
@@ -7095,16 +7110,16 @@ function Mn({
|
|
|
7095
7110
|
}
|
|
7096
7111
|
);
|
|
7097
7112
|
}
|
|
7098
|
-
function
|
|
7113
|
+
function Dn({ children: e, justified: s }) {
|
|
7099
7114
|
const a = x()?.components?.tabs?.list, { list: n } = Ft({
|
|
7100
7115
|
justified: s
|
|
7101
7116
|
});
|
|
7102
|
-
return /* @__PURE__ */ t.jsx(
|
|
7117
|
+
return /* @__PURE__ */ t.jsx($t.List, { className: l(n(), a?.classNames?.root), children: e });
|
|
7103
7118
|
}
|
|
7104
|
-
function
|
|
7119
|
+
function Fn({ value: e, children: s }) {
|
|
7105
7120
|
const a = x()?.components?.tabs?.trigger, { trigger: n } = Ft();
|
|
7106
7121
|
return /* @__PURE__ */ t.jsx(
|
|
7107
|
-
|
|
7122
|
+
$t.Trigger,
|
|
7108
7123
|
{
|
|
7109
7124
|
className: l(n(), a?.classNames?.root),
|
|
7110
7125
|
value: e,
|
|
@@ -7112,10 +7127,10 @@ function Dn({ value: e, children: s }) {
|
|
|
7112
7127
|
}
|
|
7113
7128
|
);
|
|
7114
7129
|
}
|
|
7115
|
-
function
|
|
7130
|
+
function Bn({ value: e, children: s }) {
|
|
7116
7131
|
const a = x()?.components?.tabs?.content, { content: n } = Ft();
|
|
7117
7132
|
return /* @__PURE__ */ t.jsx(
|
|
7118
|
-
|
|
7133
|
+
$t.Content,
|
|
7119
7134
|
{
|
|
7120
7135
|
className: l(n(), a?.classNames?.root),
|
|
7121
7136
|
value: e,
|
|
@@ -7123,18 +7138,18 @@ function Fn({ value: e, children: s }) {
|
|
|
7123
7138
|
}
|
|
7124
7139
|
);
|
|
7125
7140
|
}
|
|
7126
|
-
const
|
|
7127
|
-
Content:
|
|
7128
|
-
List:
|
|
7129
|
-
Trigger:
|
|
7130
|
-
}),
|
|
7141
|
+
const Fr = Object.assign(Vn, {
|
|
7142
|
+
Content: Bn,
|
|
7143
|
+
List: Dn,
|
|
7144
|
+
Trigger: Fn
|
|
7145
|
+
}), Hn = k({
|
|
7131
7146
|
slots: {
|
|
7132
7147
|
input: "",
|
|
7133
7148
|
root: "t:space-y-2",
|
|
7134
7149
|
tag: "t:flex t:items-center t:gap-1",
|
|
7135
7150
|
tagRemove: "t:flex t:items-center"
|
|
7136
7151
|
}
|
|
7137
|
-
}),
|
|
7152
|
+
}), Br = J(
|
|
7138
7153
|
({
|
|
7139
7154
|
value: e,
|
|
7140
7155
|
defaultValue: s,
|
|
@@ -7146,66 +7161,66 @@ const Vr = Object.assign(Mn, {
|
|
|
7146
7161
|
loading: d,
|
|
7147
7162
|
onChange: c
|
|
7148
7163
|
}, m) => {
|
|
7149
|
-
const g = x()?.components?.tagsInput, b = a ?? g?.defaultProps?.allowDuplicates ?? !1, h = wt(null), [j, v] =
|
|
7150
|
-
if (!
|
|
7164
|
+
const g = x()?.components?.tagsInput, b = a ?? g?.defaultProps?.allowDuplicates ?? !1, h = wt(null), [j, v] = E(e ?? s ?? []), [p, N] = E(""), y = (z) => {
|
|
7165
|
+
if (!z.trim() || !b && j.includes(z) || o !== void 0 && j.length >= o)
|
|
7151
7166
|
return;
|
|
7152
7167
|
const w = [
|
|
7153
7168
|
...j,
|
|
7154
|
-
|
|
7169
|
+
z
|
|
7155
7170
|
];
|
|
7156
7171
|
v(w), c?.(w), N("");
|
|
7157
|
-
}, R = (
|
|
7158
|
-
const w = j.filter((I, F) => F !==
|
|
7172
|
+
}, R = (z) => {
|
|
7173
|
+
const w = j.filter((I, F) => F !== z);
|
|
7159
7174
|
v(w), c?.(w);
|
|
7160
|
-
},
|
|
7161
|
-
N(
|
|
7175
|
+
}, O = (z) => {
|
|
7176
|
+
N(z ?? "");
|
|
7162
7177
|
};
|
|
7163
|
-
|
|
7164
|
-
const
|
|
7165
|
-
if (!
|
|
7178
|
+
ct(() => {
|
|
7179
|
+
const z = h.current;
|
|
7180
|
+
if (!z)
|
|
7166
7181
|
return;
|
|
7167
7182
|
const w = (I) => {
|
|
7168
7183
|
I.key === "Enter" && !I.shiftKey && (I.preventDefault(), y(p));
|
|
7169
7184
|
};
|
|
7170
|
-
return
|
|
7185
|
+
return z.addEventListener("keydown", w), () => z.removeEventListener("keydown", w);
|
|
7171
7186
|
}, [
|
|
7172
7187
|
p,
|
|
7173
7188
|
j
|
|
7174
|
-
]),
|
|
7189
|
+
]), ct(() => {
|
|
7175
7190
|
e !== void 0 && v(e);
|
|
7176
7191
|
}, [
|
|
7177
7192
|
e
|
|
7178
7193
|
]);
|
|
7179
|
-
const { root: P, tag: C, tagRemove:
|
|
7194
|
+
const { root: P, tag: C, tagRemove: L } = Hn();
|
|
7180
7195
|
return /* @__PURE__ */ t.jsxs("div", { className: l(P(), g?.classNames?.root), children: [
|
|
7181
|
-
j.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-wrap t:gap-2", children: j.map((
|
|
7182
|
-
|
|
7196
|
+
j.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "t:flex t:flex-wrap t:gap-2", children: j.map((z, w) => /* @__PURE__ */ t.jsx(
|
|
7197
|
+
Ut,
|
|
7183
7198
|
{
|
|
7184
7199
|
variant: "secondary",
|
|
7185
7200
|
children: /* @__PURE__ */ t.jsxs("div", { className: l(C(), g?.classNames?.tag), children: [
|
|
7186
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
7201
|
+
/* @__PURE__ */ t.jsx("span", { children: z }),
|
|
7187
7202
|
/* @__PURE__ */ t.jsx(
|
|
7188
7203
|
"button",
|
|
7189
7204
|
{
|
|
7190
|
-
className: l(
|
|
7205
|
+
className: l(L(), g?.classNames?.tagRemove),
|
|
7191
7206
|
onClick: () => R(w),
|
|
7192
7207
|
type: "button",
|
|
7193
|
-
children: /* @__PURE__ */ t.jsx(
|
|
7208
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: "t:h-3 t:w-3" })
|
|
7194
7209
|
}
|
|
7195
7210
|
)
|
|
7196
7211
|
] })
|
|
7197
7212
|
},
|
|
7198
|
-
|
|
7213
|
+
z
|
|
7199
7214
|
)) }),
|
|
7200
7215
|
/* @__PURE__ */ t.jsx(
|
|
7201
|
-
|
|
7216
|
+
dt,
|
|
7202
7217
|
{
|
|
7203
7218
|
disabled: i,
|
|
7204
7219
|
loading: d,
|
|
7205
|
-
onChange:
|
|
7220
|
+
onChange: O,
|
|
7206
7221
|
placeholder: n,
|
|
7207
|
-
ref: (
|
|
7208
|
-
h.current =
|
|
7222
|
+
ref: (z) => {
|
|
7223
|
+
h.current = z, typeof m == "function" ? m(z) : m && (m.current = z);
|
|
7209
7224
|
},
|
|
7210
7225
|
size: r,
|
|
7211
7226
|
value: p
|
|
@@ -7213,7 +7228,7 @@ const Vr = Object.assign(Mn, {
|
|
|
7213
7228
|
)
|
|
7214
7229
|
] });
|
|
7215
7230
|
}
|
|
7216
|
-
),
|
|
7231
|
+
), Gn = k({
|
|
7217
7232
|
slots: {
|
|
7218
7233
|
counter: "t:pointer-events-none t:absolute t:right-3 t:bottom-2 t:select-none t:text-muted-foreground t:text-xs",
|
|
7219
7234
|
textarea: "t:h-auto t:resize-none t:overflow-hidden t:py-2"
|
|
@@ -7225,7 +7240,7 @@ const Vr = Object.assign(Mn, {
|
|
|
7225
7240
|
}
|
|
7226
7241
|
}
|
|
7227
7242
|
}
|
|
7228
|
-
}),
|
|
7243
|
+
}), Hr = J(
|
|
7229
7244
|
({
|
|
7230
7245
|
className: e,
|
|
7231
7246
|
rootClassName: s,
|
|
@@ -7243,15 +7258,15 @@ const Vr = Object.assign(Mn, {
|
|
|
7243
7258
|
const j = x()?.components?.textarea, v = r ?? j?.defaultProps?.size ?? "md", p = !!i, N = !!d, {
|
|
7244
7259
|
root: y,
|
|
7245
7260
|
input: R,
|
|
7246
|
-
leftSection:
|
|
7261
|
+
leftSection: O,
|
|
7247
7262
|
rightSection: P
|
|
7248
|
-
} =
|
|
7263
|
+
} = Tt({
|
|
7249
7264
|
hasLeft: p,
|
|
7250
7265
|
hasRight: N,
|
|
7251
7266
|
size: v
|
|
7252
|
-
}), { counter: C, textarea:
|
|
7267
|
+
}), { counter: C, textarea: L } = Gn({
|
|
7253
7268
|
hasCounter: !!m
|
|
7254
|
-
}), [
|
|
7269
|
+
}), [z, w] = E(a ?? ""), I = o !== void 0, F = I ? (o ?? "").length : z.length;
|
|
7255
7270
|
function A(S) {
|
|
7256
7271
|
const D = S.target.value;
|
|
7257
7272
|
I || w(D), f?.(D === "" ? null : D), S.target.style.height = "auto", S.target.style.height = `${S.target.scrollHeight}px`;
|
|
@@ -7266,12 +7281,12 @@ const Vr = Object.assign(Mn, {
|
|
|
7266
7281
|
s
|
|
7267
7282
|
),
|
|
7268
7283
|
children: [
|
|
7269
|
-
p && /* @__PURE__ */ t.jsx("div", { className:
|
|
7284
|
+
p && /* @__PURE__ */ t.jsx("div", { className: O(), children: i }),
|
|
7270
7285
|
/* @__PURE__ */ t.jsx(
|
|
7271
7286
|
"textarea",
|
|
7272
7287
|
{
|
|
7273
7288
|
...g,
|
|
7274
|
-
className: l(R(),
|
|
7289
|
+
className: l(R(), L(), e),
|
|
7275
7290
|
defaultValue: I ? void 0 : a ?? void 0,
|
|
7276
7291
|
disabled: c,
|
|
7277
7292
|
maxLength: m,
|
|
@@ -7292,11 +7307,11 @@ const Vr = Object.assign(Mn, {
|
|
|
7292
7307
|
);
|
|
7293
7308
|
}
|
|
7294
7309
|
);
|
|
7295
|
-
function
|
|
7296
|
-
const s = JSON.stringify(
|
|
7310
|
+
function Gr(e) {
|
|
7311
|
+
const s = JSON.stringify(qe), o = JSON.stringify(Ze), a = JSON.stringify(e ?? {}), n = JSON.stringify(le);
|
|
7297
7312
|
return `(function(){try{var F=${s};var R=${o};var d=${a};var s=localStorage.getItem(${n});var t=s?JSON.parse(s):{};var m=Object.assign({},d,t);var root=document.documentElement;if(m.font)root.style.setProperty("--font-sans",F[m.font]);if(m.radius)root.style.setProperty("--t-radius",R[m.radius])}catch(e){}})();`;
|
|
7298
7313
|
}
|
|
7299
|
-
const
|
|
7314
|
+
const Un = k({
|
|
7300
7315
|
base: "",
|
|
7301
7316
|
defaultVariants: {
|
|
7302
7317
|
variant: "default"
|
|
@@ -7337,7 +7352,7 @@ const Gn = k({
|
|
|
7337
7352
|
}
|
|
7338
7353
|
}
|
|
7339
7354
|
});
|
|
7340
|
-
function
|
|
7355
|
+
function Ur({
|
|
7341
7356
|
component: e,
|
|
7342
7357
|
size: s,
|
|
7343
7358
|
variant: o,
|
|
@@ -7349,7 +7364,7 @@ function Hr({
|
|
|
7349
7364
|
return /* @__PURE__ */ t.jsx(
|
|
7350
7365
|
i,
|
|
7351
7366
|
{
|
|
7352
|
-
className:
|
|
7367
|
+
className: Un({
|
|
7353
7368
|
size: s,
|
|
7354
7369
|
truncate: n,
|
|
7355
7370
|
variant: o,
|
|
@@ -7359,7 +7374,7 @@ function Hr({
|
|
|
7359
7374
|
}
|
|
7360
7375
|
);
|
|
7361
7376
|
}
|
|
7362
|
-
const
|
|
7377
|
+
const Yn = k({
|
|
7363
7378
|
slots: {
|
|
7364
7379
|
fileItem: "t:flex t:items-center t:justify-between t:gap-3 t:rounded-md t:border t:px-3 t:py-2 t:text-sm",
|
|
7365
7380
|
fileList: "t:mt-3 t:space-y-2",
|
|
@@ -7383,7 +7398,7 @@ const Un = k({
|
|
|
7383
7398
|
}
|
|
7384
7399
|
}
|
|
7385
7400
|
});
|
|
7386
|
-
function
|
|
7401
|
+
function Yr({
|
|
7387
7402
|
accept: e,
|
|
7388
7403
|
maxFiles: s,
|
|
7389
7404
|
maxFileSize: o,
|
|
@@ -7391,11 +7406,11 @@ function Gr({
|
|
|
7391
7406
|
handler: n,
|
|
7392
7407
|
onUpload: r
|
|
7393
7408
|
}) {
|
|
7394
|
-
const d = x()?.translations?.uploader, [c, m] =
|
|
7409
|
+
const d = x()?.translations?.uploader, [c, m] = E([]), [f, g] = E(!1), b = wt(null), { root: h, icon: j, fileList: v, fileItem: p, fileName: N, progress: y, progressBar: R } = Yn({
|
|
7395
7410
|
disabled: !!a,
|
|
7396
7411
|
dragging: f
|
|
7397
7412
|
});
|
|
7398
|
-
async function
|
|
7413
|
+
async function O(w, I) {
|
|
7399
7414
|
m(
|
|
7400
7415
|
(F) => F.map(
|
|
7401
7416
|
(A, S) => S === I ? {
|
|
@@ -7468,7 +7483,7 @@ function Gr({
|
|
|
7468
7483
|
...A
|
|
7469
7484
|
];
|
|
7470
7485
|
return A.forEach((M, U) => {
|
|
7471
|
-
|
|
7486
|
+
O(F[U], S.length + U);
|
|
7472
7487
|
}), D;
|
|
7473
7488
|
});
|
|
7474
7489
|
}
|
|
@@ -7478,11 +7493,11 @@ function Gr({
|
|
|
7478
7493
|
const I = Array.from(w.dataTransfer.files);
|
|
7479
7494
|
P(I);
|
|
7480
7495
|
}
|
|
7481
|
-
function
|
|
7496
|
+
function L(w) {
|
|
7482
7497
|
const I = Array.from(w.target.files ?? []);
|
|
7483
7498
|
P(I), w.target.value = "";
|
|
7484
7499
|
}
|
|
7485
|
-
function
|
|
7500
|
+
function z(w) {
|
|
7486
7501
|
m((I) => I.filter((F, A) => A !== w));
|
|
7487
7502
|
}
|
|
7488
7503
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
@@ -7497,7 +7512,7 @@ function Gr({
|
|
|
7497
7512
|
},
|
|
7498
7513
|
onDrop: C,
|
|
7499
7514
|
children: [
|
|
7500
|
-
/* @__PURE__ */ t.jsx(
|
|
7515
|
+
/* @__PURE__ */ t.jsx(bs, { className: j() }),
|
|
7501
7516
|
/* @__PURE__ */ t.jsx("p", { className: "t:font-medium t:text-sm", children: d?.clickOrDrag }),
|
|
7502
7517
|
(o || e) && /* @__PURE__ */ t.jsxs("p", { className: "t:text-muted-foreground t:text-xs", children: [
|
|
7503
7518
|
e && (d?.accepted ?? e),
|
|
@@ -7511,7 +7526,7 @@ function Gr({
|
|
|
7511
7526
|
className: "t:hidden",
|
|
7512
7527
|
disabled: a,
|
|
7513
7528
|
multiple: !s || s > 1,
|
|
7514
|
-
onChange:
|
|
7529
|
+
onChange: L,
|
|
7515
7530
|
ref: b,
|
|
7516
7531
|
type: "file"
|
|
7517
7532
|
}
|
|
@@ -7540,10 +7555,10 @@ function Gr({
|
|
|
7540
7555
|
/* @__PURE__ */ t.jsx(
|
|
7541
7556
|
X,
|
|
7542
7557
|
{
|
|
7543
|
-
onClick: () =>
|
|
7558
|
+
onClick: () => z(I),
|
|
7544
7559
|
size: "icon-sm",
|
|
7545
7560
|
variant: "ghost",
|
|
7546
|
-
children: /* @__PURE__ */ t.jsx(
|
|
7561
|
+
children: /* @__PURE__ */ t.jsx(ut, { className: "t:h-3 t:w-3" })
|
|
7547
7562
|
}
|
|
7548
7563
|
)
|
|
7549
7564
|
]
|
|
@@ -7553,74 +7568,76 @@ function Gr({
|
|
|
7553
7568
|
] });
|
|
7554
7569
|
}
|
|
7555
7570
|
export {
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7571
|
+
nr as Accordion,
|
|
7572
|
+
rr as Alert,
|
|
7573
|
+
lr as Avatar,
|
|
7574
|
+
Ut as Badge,
|
|
7575
|
+
ir as Box,
|
|
7576
|
+
cr as Breadcrumb,
|
|
7562
7577
|
X as Button,
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7578
|
+
dr as Card,
|
|
7579
|
+
Wt as Checkbox,
|
|
7580
|
+
mr as Confirm,
|
|
7581
|
+
fr as Container,
|
|
7582
|
+
pr as CurrencyInput,
|
|
7583
|
+
xr as DateInput,
|
|
7584
|
+
hr as DateRangeInput,
|
|
7585
|
+
br as DocumentInput,
|
|
7586
|
+
vr as DropdownMenu,
|
|
7587
|
+
jr as Flex,
|
|
7588
|
+
Nr as Form,
|
|
7589
|
+
yr as Grid,
|
|
7590
|
+
Me as HeaderCenter,
|
|
7591
|
+
Ae as HeaderLeft,
|
|
7592
|
+
Ve as HeaderRight,
|
|
7593
|
+
dt as Input,
|
|
7594
|
+
ne as Label,
|
|
7595
|
+
Cr as Layout,
|
|
7596
|
+
ta as LayoutContent,
|
|
7597
|
+
oa as LayoutFooter,
|
|
7598
|
+
ra as LayoutHeader,
|
|
7599
|
+
ia as LayoutMain,
|
|
7600
|
+
pa as LayoutNav,
|
|
7601
|
+
ka as LayoutSidebar,
|
|
7602
|
+
ee as Loader,
|
|
7588
7603
|
za as LoadingOverlay,
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7604
|
+
qt as MaskInput,
|
|
7605
|
+
wr as Modal,
|
|
7606
|
+
kr as NumberInput,
|
|
7607
|
+
Sr as OTPInput,
|
|
7608
|
+
qa as Pagination,
|
|
7609
|
+
Rr as PasswordInput,
|
|
7610
|
+
Tr as PhoneInput,
|
|
7611
|
+
zr as Popover,
|
|
7612
|
+
Pr as Progress,
|
|
7613
|
+
_r as Provider,
|
|
7614
|
+
Er as Radio,
|
|
7615
|
+
Or as Select,
|
|
7616
|
+
Lr as Separator,
|
|
7617
|
+
$r as Sheet,
|
|
7618
|
+
Be as SidebarBody,
|
|
7619
|
+
He as SidebarFooter,
|
|
7620
|
+
Fe as SidebarHeader,
|
|
7621
|
+
Ge as SidebarTrigger,
|
|
7622
|
+
Ar as Skeleton,
|
|
7623
|
+
Mr as Slider,
|
|
7624
|
+
Vr as Switch,
|
|
7625
|
+
Dr as Table,
|
|
7626
|
+
Fr as Tabs,
|
|
7627
|
+
Br as TagsInput,
|
|
7628
|
+
Hr as Textarea,
|
|
7629
|
+
gn as ToastContainer,
|
|
7630
|
+
ae as Tooltip,
|
|
7631
|
+
Ur as Typography,
|
|
7632
|
+
Yr as Uploader,
|
|
7633
|
+
un as applyTheme,
|
|
7634
|
+
Gr as getThemeScript,
|
|
7635
|
+
dn as resolveTheme,
|
|
7636
|
+
Yt as styles,
|
|
7637
|
+
qr as toast,
|
|
7638
|
+
ur as useColorScheme,
|
|
7639
|
+
xo as useDebounceFn,
|
|
7640
|
+
gr as useIsMobile,
|
|
7624
7641
|
Vt as useSidebar,
|
|
7625
|
-
|
|
7642
|
+
Ir as useTheme
|
|
7626
7643
|
};
|