@asteby/metacore-starter-core 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +251 -248
- package/dist/index.js.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -36,19 +36,22 @@ import * as M from "@radix-ui/react-tabs";
|
|
|
36
36
|
function N(...n) {
|
|
37
37
|
return t(e(n));
|
|
38
38
|
}
|
|
39
|
-
function Oe(
|
|
39
|
+
function Oe() {
|
|
40
|
+
return (globalThis.__METACORE_BACKEND_URL__ || "http://localhost:8080").replace(/\/api\/?$/, "").replace(/\/+$/, "");
|
|
41
|
+
}
|
|
42
|
+
function ke(e, t) {
|
|
40
43
|
if (!e) return "";
|
|
41
44
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
42
|
-
let n =
|
|
45
|
+
let n = Oe();
|
|
43
46
|
return e.startsWith("/storage/") ? `${n}${e}` : `${n}/storage/${t}/${e}`;
|
|
44
47
|
}
|
|
45
|
-
function
|
|
46
|
-
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${
|
|
48
|
+
function Ae(e) {
|
|
49
|
+
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${Oe()}${e.startsWith("/") ? e : `/${e}`}` : "";
|
|
47
50
|
}
|
|
48
|
-
function
|
|
51
|
+
function je(e = 1e3) {
|
|
49
52
|
return new Promise((t) => setTimeout(t, e));
|
|
50
53
|
}
|
|
51
|
-
function
|
|
54
|
+
function Me(e, t) {
|
|
52
55
|
let n = [];
|
|
53
56
|
if (t <= 5) for (let e = 1; e <= t; e++) n.push(e);
|
|
54
57
|
else if (n.push(1), e <= 3) {
|
|
@@ -102,7 +105,7 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
102
105
|
}
|
|
103
106
|
}))
|
|
104
107
|
} };
|
|
105
|
-
}),
|
|
108
|
+
}), Ne = {
|
|
106
109
|
PEN: "S/",
|
|
107
110
|
VES: "Bs.",
|
|
108
111
|
BOB: "Bs.",
|
|
@@ -122,7 +125,7 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
122
125
|
EUR: "€",
|
|
123
126
|
USD: "$"
|
|
124
127
|
};
|
|
125
|
-
function
|
|
128
|
+
function Pe(e, t = "USD", n = "es") {
|
|
126
129
|
try {
|
|
127
130
|
return new Intl.NumberFormat(n, {
|
|
128
131
|
style: "currency",
|
|
@@ -132,8 +135,8 @@ function Ne(e, t = "USD", n = "es") {
|
|
|
132
135
|
return `${t} ${e}`;
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
|
-
function
|
|
136
|
-
return
|
|
138
|
+
function Fe(e) {
|
|
139
|
+
return Ne[e] || (typeof Intl < "u" ? new Intl.NumberFormat("en-US", {
|
|
137
140
|
style: "currency",
|
|
138
141
|
currency: e,
|
|
139
142
|
currencyDisplay: "narrowSymbol"
|
|
@@ -141,16 +144,16 @@ function Pe(e) {
|
|
|
141
144
|
}
|
|
142
145
|
//#endregion
|
|
143
146
|
//#region src/lib/format.ts
|
|
144
|
-
function
|
|
147
|
+
function Ie() {
|
|
145
148
|
let e = I((e) => e.auth.user?.currency_code) || "USD";
|
|
146
|
-
return (t) =>
|
|
149
|
+
return (t) => Pe(t, e);
|
|
147
150
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
151
|
+
function Le(e) {
|
|
152
|
+
return Pe(e, I.getState().auth.user?.currency_code || "USD");
|
|
150
153
|
}
|
|
151
154
|
//#endregion
|
|
152
155
|
//#region src/lib/date-utils.ts
|
|
153
|
-
function
|
|
156
|
+
function Re() {
|
|
154
157
|
let e = typeof Intl < "u" && Intl.supportedValuesOf ? Intl.supportedValuesOf("timeZone") : [
|
|
155
158
|
"UTC",
|
|
156
159
|
"America/Mexico_City",
|
|
@@ -198,21 +201,21 @@ function Le() {
|
|
|
198
201
|
}
|
|
199
202
|
//#endregion
|
|
200
203
|
//#region src/lib/countries.ts
|
|
201
|
-
var
|
|
202
|
-
function
|
|
204
|
+
var ze = /* @__PURE__ */ "AR.AT.AU.AE.AL.AO.AZ.BA.BB.BD.BE.BG.BH.BO.BR.BS.BY.BZ.CA.CD.CH.CI.CL.CM.CN.CO.CR.CU.CY.CZ.DE.DK.DO.DZ.EC.EE.EG.ES.ET.SV.FI.FJ.FR.GB.GE.GH.GR.GT.GY.HK.HN.HR.HT.HU.ID.IE.IL.IN.IQ.IR.IS.IT.JM.JO.JP.KE.KH.KR.KW.KZ.LA.LB.LK.LT.LU.LV.LY.MA.MD.ME.MK.MM.MN.MT.MU.MX.MY.MZ.NG.NI.NL.NO.NP.NZ.OM.PA.PE.PG.PH.PK.PL.PR.PT.PY.QA.RO.RS.RU.RW.SA.SE.SG.SI.SK.SN.SR.TH.TN.TR.TT.TW.TZ.UA.UG.US.UY.UZ.VE.VN.ZA".split(".");
|
|
205
|
+
function Be(e) {
|
|
203
206
|
return String.fromCodePoint(...e.toUpperCase().split("").map((e) => 127462 + e.charCodeAt(0) - 65));
|
|
204
207
|
}
|
|
205
|
-
function
|
|
208
|
+
function Ve(e) {
|
|
206
209
|
let t = e || navigator.language || "es", n = new Intl.DisplayNames([t], { type: "region" });
|
|
207
|
-
return
|
|
210
|
+
return ze.map((e) => ({
|
|
208
211
|
code: e,
|
|
209
212
|
name: n.of(e) || e,
|
|
210
|
-
flag:
|
|
213
|
+
flag: Be(e)
|
|
211
214
|
})).sort((e, n) => e.name.localeCompare(n.name, t));
|
|
212
215
|
}
|
|
213
216
|
//#endregion
|
|
214
217
|
//#region src/lib/option-colors.ts
|
|
215
|
-
var
|
|
218
|
+
var He = {
|
|
216
219
|
red: "ef4444",
|
|
217
220
|
orange: "f97316",
|
|
218
221
|
amber: "f59e0b",
|
|
@@ -235,11 +238,11 @@ var Ve = {
|
|
|
235
238
|
zinc: "71717a",
|
|
236
239
|
neutral: "737373",
|
|
237
240
|
stone: "78716c"
|
|
238
|
-
},
|
|
239
|
-
let t =
|
|
241
|
+
}, Ue = (e) => e ? He[e.toLowerCase()] || e.replace("#", "") : "", We = (e) => {
|
|
242
|
+
let t = Ue(e);
|
|
240
243
|
return t ? `#${t}` : "";
|
|
241
|
-
},
|
|
242
|
-
let n =
|
|
244
|
+
}, Ge = (e, { isDark: t }) => {
|
|
245
|
+
let n = Ue(e);
|
|
243
246
|
if (n.length < 6) return {};
|
|
244
247
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16);
|
|
245
248
|
return t ? {
|
|
@@ -253,21 +256,21 @@ var Ve = {
|
|
|
253
256
|
border: `1px solid rgba(${r}, ${i}, ${a}, 0.25)`,
|
|
254
257
|
fontWeight: 500
|
|
255
258
|
};
|
|
256
|
-
},
|
|
257
|
-
function
|
|
259
|
+
}, Ke = 3600 * 24 * 7;
|
|
260
|
+
function qe(e) {
|
|
258
261
|
if (typeof document > "u") return;
|
|
259
262
|
let t = `; ${document.cookie}`.split(`; ${e}=`);
|
|
260
263
|
if (t.length === 2) return t.pop()?.split(";").shift();
|
|
261
264
|
}
|
|
262
|
-
function
|
|
265
|
+
function Je(e, t, n = Ke) {
|
|
263
266
|
typeof document > "u" || (document.cookie = `${e}=${t}; path=/; max-age=${n}`);
|
|
264
267
|
}
|
|
265
|
-
function
|
|
268
|
+
function Ye(e) {
|
|
266
269
|
typeof document > "u" || (document.cookie = `${e}=; path=/; max-age=0`);
|
|
267
270
|
}
|
|
268
271
|
//#endregion
|
|
269
272
|
//#region src/lib/sound.ts
|
|
270
|
-
function
|
|
273
|
+
function Xe() {
|
|
271
274
|
try {
|
|
272
275
|
let e = window.AudioContext || window.webkitAudioContext;
|
|
273
276
|
if (!e) return;
|
|
@@ -277,7 +280,7 @@ function Ye() {
|
|
|
277
280
|
console.error("Error playing notification sound:", e);
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
|
-
var
|
|
283
|
+
var Ze = new class {
|
|
281
284
|
permission = "default";
|
|
282
285
|
constructor() {
|
|
283
286
|
"Notification" in window && (this.permission = Notification.permission);
|
|
@@ -338,13 +341,13 @@ var Xe = new class {
|
|
|
338
341
|
getPermission() {
|
|
339
342
|
return this.permission;
|
|
340
343
|
}
|
|
341
|
-
}(),
|
|
344
|
+
}(), Qe = { language: "es" }, L = a.create({
|
|
342
345
|
baseURL: "/api",
|
|
343
346
|
headers: { "Content-Type": "application/json" }
|
|
344
347
|
});
|
|
345
348
|
L.interceptors.request.use((e) => {
|
|
346
349
|
let t = localStorage.getItem("auth_token");
|
|
347
|
-
t && (e.headers.Authorization = `Bearer ${t}`), e.headers["Accept-Language"] =
|
|
350
|
+
t && (e.headers.Authorization = `Bearer ${t}`), e.headers["Accept-Language"] = Qe.language || "es";
|
|
348
351
|
try {
|
|
349
352
|
let t = JSON.parse(localStorage.getItem("current_branch") || "{}");
|
|
350
353
|
t?.id && (e.headers["X-Branch-ID"] = t.id);
|
|
@@ -358,7 +361,7 @@ L.interceptors.request.use((e) => {
|
|
|
358
361
|
}
|
|
359
362
|
return Promise.reject(e);
|
|
360
363
|
});
|
|
361
|
-
var
|
|
364
|
+
var $e = new class {
|
|
362
365
|
vapidPublicKey = null;
|
|
363
366
|
subscription = null;
|
|
364
367
|
isSupported = !1;
|
|
@@ -431,20 +434,20 @@ var Qe = new class {
|
|
|
431
434
|
}();
|
|
432
435
|
//#endregion
|
|
433
436
|
//#region src/lib/handle-server-error.ts
|
|
434
|
-
function
|
|
437
|
+
function et(e) {
|
|
435
438
|
console.log(e);
|
|
436
439
|
let t = "Something went wrong!";
|
|
437
440
|
e && typeof e == "object" && "status" in e && Number(e.status) === 204 && (t = "Content not found."), e instanceof o && (t = e.response?.data?.message || e.response?.data?.title || e.message), i.error(t);
|
|
438
441
|
}
|
|
439
442
|
//#endregion
|
|
440
443
|
//#region src/components/ui/accordion.tsx
|
|
441
|
-
var
|
|
444
|
+
var tt = d.Root, nt = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g(d.Item, {
|
|
442
445
|
ref: n,
|
|
443
446
|
className: N("border-b", e),
|
|
444
447
|
...t
|
|
445
448
|
}));
|
|
446
|
-
|
|
447
|
-
var
|
|
449
|
+
nt.displayName = "AccordionItem";
|
|
450
|
+
var rt = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g(d.Header, {
|
|
448
451
|
className: "flex",
|
|
449
452
|
children: /* @__PURE__ */ _(d.Trigger, {
|
|
450
453
|
ref: r,
|
|
@@ -453,8 +456,8 @@ var nt = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
|
|
|
453
456
|
children: [t, /* @__PURE__ */ g(m, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
454
457
|
})
|
|
455
458
|
}));
|
|
456
|
-
|
|
457
|
-
var
|
|
459
|
+
rt.displayName = d.Trigger.displayName;
|
|
460
|
+
var it = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ g(d.Content, {
|
|
458
461
|
ref: r,
|
|
459
462
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
460
463
|
...n,
|
|
@@ -463,32 +466,32 @@ var rt = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
|
|
|
463
466
|
children: t
|
|
464
467
|
})
|
|
465
468
|
}));
|
|
466
|
-
|
|
469
|
+
it.displayName = d.Content.displayName;
|
|
467
470
|
//#endregion
|
|
468
471
|
//#region src/components/ui/alert.tsx
|
|
469
|
-
var
|
|
472
|
+
var at = v("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
470
473
|
variants: { variant: {
|
|
471
474
|
default: "bg-card text-card-foreground",
|
|
472
475
|
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
473
476
|
} },
|
|
474
477
|
defaultVariants: { variant: "default" }
|
|
475
478
|
});
|
|
476
|
-
function
|
|
479
|
+
function ot({ className: e, variant: t, ...n }) {
|
|
477
480
|
return /* @__PURE__ */ g("div", {
|
|
478
481
|
"data-slot": "alert",
|
|
479
482
|
role: "alert",
|
|
480
|
-
className: N(
|
|
483
|
+
className: N(at({ variant: t }), e),
|
|
481
484
|
...n
|
|
482
485
|
});
|
|
483
486
|
}
|
|
484
|
-
function
|
|
487
|
+
function st({ className: e, ...t }) {
|
|
485
488
|
return /* @__PURE__ */ g("div", {
|
|
486
489
|
"data-slot": "alert-title",
|
|
487
490
|
className: N("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
488
491
|
...t
|
|
489
492
|
});
|
|
490
493
|
}
|
|
491
|
-
function
|
|
494
|
+
function ct({ className: e, ...t }) {
|
|
492
495
|
return /* @__PURE__ */ g("div", {
|
|
493
496
|
"data-slot": "alert-description",
|
|
494
497
|
className: N("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", e),
|
|
@@ -532,73 +535,73 @@ function z({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
|
|
|
532
535
|
}
|
|
533
536
|
//#endregion
|
|
534
537
|
//#region src/components/ui/alert-dialog.tsx
|
|
535
|
-
function
|
|
538
|
+
function lt({ ...e }) {
|
|
536
539
|
return /* @__PURE__ */ g(y.Root, {
|
|
537
540
|
"data-slot": "alert-dialog",
|
|
538
541
|
...e
|
|
539
542
|
});
|
|
540
543
|
}
|
|
541
|
-
function
|
|
544
|
+
function ut({ ...e }) {
|
|
542
545
|
return /* @__PURE__ */ g(y.Trigger, {
|
|
543
546
|
"data-slot": "alert-dialog-trigger",
|
|
544
547
|
...e
|
|
545
548
|
});
|
|
546
549
|
}
|
|
547
|
-
function
|
|
550
|
+
function dt({ ...e }) {
|
|
548
551
|
return /* @__PURE__ */ g(y.Portal, {
|
|
549
552
|
"data-slot": "alert-dialog-portal",
|
|
550
553
|
...e
|
|
551
554
|
});
|
|
552
555
|
}
|
|
553
|
-
function
|
|
556
|
+
function ft({ className: e, ...t }) {
|
|
554
557
|
return /* @__PURE__ */ g(y.Overlay, {
|
|
555
558
|
"data-slot": "alert-dialog-overlay",
|
|
556
559
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
557
560
|
...t
|
|
558
561
|
});
|
|
559
562
|
}
|
|
560
|
-
function
|
|
561
|
-
return /* @__PURE__ */ _(
|
|
563
|
+
function pt({ className: e, ...t }) {
|
|
564
|
+
return /* @__PURE__ */ _(dt, { children: [/* @__PURE__ */ g(ft, {}), /* @__PURE__ */ g(y.Content, {
|
|
562
565
|
"data-slot": "alert-dialog-content",
|
|
563
566
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
564
567
|
...t
|
|
565
568
|
})] });
|
|
566
569
|
}
|
|
567
|
-
function
|
|
570
|
+
function mt({ className: e, ...t }) {
|
|
568
571
|
return /* @__PURE__ */ g("div", {
|
|
569
572
|
"data-slot": "alert-dialog-header",
|
|
570
573
|
className: N("flex flex-col gap-2 text-center sm:text-start", e),
|
|
571
574
|
...t
|
|
572
575
|
});
|
|
573
576
|
}
|
|
574
|
-
function
|
|
577
|
+
function ht({ className: e, ...t }) {
|
|
575
578
|
return /* @__PURE__ */ g("div", {
|
|
576
579
|
"data-slot": "alert-dialog-footer",
|
|
577
580
|
className: N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
578
581
|
...t
|
|
579
582
|
});
|
|
580
583
|
}
|
|
581
|
-
function
|
|
584
|
+
function gt({ className: e, ...t }) {
|
|
582
585
|
return /* @__PURE__ */ g(y.Title, {
|
|
583
586
|
"data-slot": "alert-dialog-title",
|
|
584
587
|
className: N("text-lg font-semibold", e),
|
|
585
588
|
...t
|
|
586
589
|
});
|
|
587
590
|
}
|
|
588
|
-
function
|
|
591
|
+
function _t({ className: e, ...t }) {
|
|
589
592
|
return /* @__PURE__ */ g(y.Description, {
|
|
590
593
|
"data-slot": "alert-dialog-description",
|
|
591
594
|
className: N("text-muted-foreground text-sm", e),
|
|
592
595
|
...t
|
|
593
596
|
});
|
|
594
597
|
}
|
|
595
|
-
function
|
|
598
|
+
function vt({ className: e, ...t }) {
|
|
596
599
|
return /* @__PURE__ */ g(y.Action, {
|
|
597
600
|
className: N(R(), e),
|
|
598
601
|
...t
|
|
599
602
|
});
|
|
600
603
|
}
|
|
601
|
-
function
|
|
604
|
+
function yt({ className: e, ...t }) {
|
|
602
605
|
return /* @__PURE__ */ g(y.Cancel, {
|
|
603
606
|
className: N(R({ variant: "outline" }), e),
|
|
604
607
|
...t
|
|
@@ -606,21 +609,21 @@ function vt({ className: e, ...t }) {
|
|
|
606
609
|
}
|
|
607
610
|
//#endregion
|
|
608
611
|
//#region src/components/ui/avatar.tsx
|
|
609
|
-
function
|
|
612
|
+
function bt({ className: e, ...t }) {
|
|
610
613
|
return /* @__PURE__ */ g(x.Root, {
|
|
611
614
|
"data-slot": "avatar",
|
|
612
615
|
className: N("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
613
616
|
...t
|
|
614
617
|
});
|
|
615
618
|
}
|
|
616
|
-
function
|
|
619
|
+
function xt({ className: e, ...t }) {
|
|
617
620
|
return /* @__PURE__ */ g(x.Image, {
|
|
618
621
|
"data-slot": "avatar-image",
|
|
619
622
|
className: N("aspect-square size-full object-cover", e),
|
|
620
623
|
...t
|
|
621
624
|
});
|
|
622
625
|
}
|
|
623
|
-
function
|
|
626
|
+
function St({ className: e, ...t }) {
|
|
624
627
|
return /* @__PURE__ */ g(x.Fallback, {
|
|
625
628
|
"data-slot": "avatar-fallback",
|
|
626
629
|
className: N("bg-muted flex size-full items-center justify-center rounded-full", e),
|
|
@@ -629,7 +632,7 @@ function xt({ className: e, ...t }) {
|
|
|
629
632
|
}
|
|
630
633
|
//#endregion
|
|
631
634
|
//#region src/components/ui/badge.tsx
|
|
632
|
-
var
|
|
635
|
+
var Ct = v("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
633
636
|
variants: { variant: {
|
|
634
637
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
635
638
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -638,16 +641,16 @@ var St = v("inline-flex items-center justify-center rounded-md border px-2 py-0.
|
|
|
638
641
|
} },
|
|
639
642
|
defaultVariants: { variant: "default" }
|
|
640
643
|
});
|
|
641
|
-
function
|
|
644
|
+
function wt({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
642
645
|
return /* @__PURE__ */ g(n ? b : "span", {
|
|
643
646
|
"data-slot": "badge",
|
|
644
|
-
className: N(
|
|
647
|
+
className: N(Ct({ variant: t }), e),
|
|
645
648
|
...r
|
|
646
649
|
});
|
|
647
650
|
}
|
|
648
651
|
//#endregion
|
|
649
652
|
//#region src/components/ui/calendar.tsx
|
|
650
|
-
function
|
|
653
|
+
function Tt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
|
|
651
654
|
let c = he();
|
|
652
655
|
return /* @__PURE__ */ g(me, {
|
|
653
656
|
showOutsideDays: n,
|
|
@@ -696,7 +699,7 @@ function wt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
696
699
|
className: N("size-4", e),
|
|
697
700
|
...n
|
|
698
701
|
}),
|
|
699
|
-
DayButton:
|
|
702
|
+
DayButton: Et,
|
|
700
703
|
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ g("td", {
|
|
701
704
|
...t,
|
|
702
705
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -709,7 +712,7 @@ function wt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
709
712
|
...s
|
|
710
713
|
});
|
|
711
714
|
}
|
|
712
|
-
function
|
|
715
|
+
function Et({ className: e, day: t, modifiers: n, ...r }) {
|
|
713
716
|
let i = he(), a = s.useRef(null);
|
|
714
717
|
return s.useEffect(() => {
|
|
715
718
|
n.focused && a.current?.focus();
|
|
@@ -728,49 +731,49 @@ function Tt({ className: e, day: t, modifiers: n, ...r }) {
|
|
|
728
731
|
}
|
|
729
732
|
//#endregion
|
|
730
733
|
//#region src/components/ui/card.tsx
|
|
731
|
-
function
|
|
734
|
+
function Dt({ className: e, ...t }) {
|
|
732
735
|
return /* @__PURE__ */ g("div", {
|
|
733
736
|
"data-slot": "card",
|
|
734
737
|
className: N("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
|
|
735
738
|
...t
|
|
736
739
|
});
|
|
737
740
|
}
|
|
738
|
-
function
|
|
741
|
+
function Ot({ className: e, ...t }) {
|
|
739
742
|
return /* @__PURE__ */ g("div", {
|
|
740
743
|
"data-slot": "card-header",
|
|
741
744
|
className: N("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
|
|
742
745
|
...t
|
|
743
746
|
});
|
|
744
747
|
}
|
|
745
|
-
function
|
|
748
|
+
function kt({ className: e, ...t }) {
|
|
746
749
|
return /* @__PURE__ */ g("div", {
|
|
747
750
|
"data-slot": "card-title",
|
|
748
751
|
className: N("leading-none font-semibold", e),
|
|
749
752
|
...t
|
|
750
753
|
});
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function At({ className: e, ...t }) {
|
|
753
756
|
return /* @__PURE__ */ g("div", {
|
|
754
757
|
"data-slot": "card-description",
|
|
755
758
|
className: N("text-muted-foreground text-sm", e),
|
|
756
759
|
...t
|
|
757
760
|
});
|
|
758
761
|
}
|
|
759
|
-
function
|
|
762
|
+
function jt({ className: e, ...t }) {
|
|
760
763
|
return /* @__PURE__ */ g("div", {
|
|
761
764
|
"data-slot": "card-action",
|
|
762
765
|
className: N("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
763
766
|
...t
|
|
764
767
|
});
|
|
765
768
|
}
|
|
766
|
-
function
|
|
769
|
+
function Mt({ className: e, ...t }) {
|
|
767
770
|
return /* @__PURE__ */ g("div", {
|
|
768
771
|
"data-slot": "card-content",
|
|
769
772
|
className: N("px-6", e),
|
|
770
773
|
...t
|
|
771
774
|
});
|
|
772
775
|
}
|
|
773
|
-
function
|
|
776
|
+
function Nt({ className: e, ...t }) {
|
|
774
777
|
return /* @__PURE__ */ g("div", {
|
|
775
778
|
"data-slot": "card-footer",
|
|
776
779
|
className: N("flex items-center px-6 [.border-t]:pt-6", e),
|
|
@@ -779,7 +782,7 @@ function Mt({ className: e, ...t }) {
|
|
|
779
782
|
}
|
|
780
783
|
//#endregion
|
|
781
784
|
//#region src/components/ui/checkbox.tsx
|
|
782
|
-
function
|
|
785
|
+
function Pt({ className: e, ...t }) {
|
|
783
786
|
return /* @__PURE__ */ g(ge.Root, {
|
|
784
787
|
"data-slot": "checkbox",
|
|
785
788
|
className: N("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -793,19 +796,19 @@ function Nt({ className: e, ...t }) {
|
|
|
793
796
|
}
|
|
794
797
|
//#endregion
|
|
795
798
|
//#region src/components/ui/collapsible.tsx
|
|
796
|
-
function
|
|
799
|
+
function Ft({ ...e }) {
|
|
797
800
|
return /* @__PURE__ */ g(S.Root, {
|
|
798
801
|
"data-slot": "collapsible",
|
|
799
802
|
...e
|
|
800
803
|
});
|
|
801
804
|
}
|
|
802
|
-
function
|
|
805
|
+
function It({ ...e }) {
|
|
803
806
|
return /* @__PURE__ */ g(S.CollapsibleTrigger, {
|
|
804
807
|
"data-slot": "collapsible-trigger",
|
|
805
808
|
...e
|
|
806
809
|
});
|
|
807
810
|
}
|
|
808
|
-
function
|
|
811
|
+
function Lt({ ...e }) {
|
|
809
812
|
return /* @__PURE__ */ g(S.CollapsibleContent, {
|
|
810
813
|
"data-slot": "collapsible-content",
|
|
811
814
|
...e
|
|
@@ -813,41 +816,41 @@ function It({ ...e }) {
|
|
|
813
816
|
}
|
|
814
817
|
//#endregion
|
|
815
818
|
//#region src/components/ui/dialog.tsx
|
|
816
|
-
function
|
|
819
|
+
function Rt({ ...e }) {
|
|
817
820
|
return /* @__PURE__ */ g(w.Root, {
|
|
818
821
|
"data-slot": "dialog",
|
|
819
822
|
...e
|
|
820
823
|
});
|
|
821
824
|
}
|
|
822
|
-
function
|
|
825
|
+
function zt({ ...e }) {
|
|
823
826
|
return /* @__PURE__ */ g(w.Trigger, {
|
|
824
827
|
"data-slot": "dialog-trigger",
|
|
825
828
|
...e
|
|
826
829
|
});
|
|
827
830
|
}
|
|
828
|
-
function
|
|
831
|
+
function Bt({ ...e }) {
|
|
829
832
|
return /* @__PURE__ */ g(w.Portal, {
|
|
830
833
|
"data-slot": "dialog-portal",
|
|
831
834
|
...e
|
|
832
835
|
});
|
|
833
836
|
}
|
|
834
|
-
function
|
|
837
|
+
function Vt({ ...e }) {
|
|
835
838
|
return /* @__PURE__ */ g(w.Close, {
|
|
836
839
|
"data-slot": "dialog-close",
|
|
837
840
|
...e
|
|
838
841
|
});
|
|
839
842
|
}
|
|
840
|
-
function
|
|
843
|
+
function Ht({ className: e, ...t }) {
|
|
841
844
|
return /* @__PURE__ */ g(w.Overlay, {
|
|
842
845
|
"data-slot": "dialog-overlay",
|
|
843
846
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
844
847
|
...t
|
|
845
848
|
});
|
|
846
849
|
}
|
|
847
|
-
function
|
|
848
|
-
return /* @__PURE__ */ _(
|
|
850
|
+
function Ut({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
851
|
+
return /* @__PURE__ */ _(Bt, {
|
|
849
852
|
"data-slot": "dialog-portal",
|
|
850
|
-
children: [/* @__PURE__ */ g(
|
|
853
|
+
children: [/* @__PURE__ */ g(Ht, {}), /* @__PURE__ */ _(w.Content, {
|
|
851
854
|
"data-slot": "dialog-content",
|
|
852
855
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", e),
|
|
853
856
|
...r,
|
|
@@ -862,28 +865,28 @@ function Ht({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
862
865
|
})]
|
|
863
866
|
});
|
|
864
867
|
}
|
|
865
|
-
function
|
|
868
|
+
function Wt({ className: e, ...t }) {
|
|
866
869
|
return /* @__PURE__ */ g("div", {
|
|
867
870
|
"data-slot": "dialog-header",
|
|
868
871
|
className: N("flex flex-col gap-2 text-center sm:text-start", e),
|
|
869
872
|
...t
|
|
870
873
|
});
|
|
871
874
|
}
|
|
872
|
-
function
|
|
875
|
+
function Gt({ className: e, ...t }) {
|
|
873
876
|
return /* @__PURE__ */ g("div", {
|
|
874
877
|
"data-slot": "dialog-footer",
|
|
875
878
|
className: N("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
876
879
|
...t
|
|
877
880
|
});
|
|
878
881
|
}
|
|
879
|
-
function
|
|
882
|
+
function Kt({ className: e, ...t }) {
|
|
880
883
|
return /* @__PURE__ */ g(w.Title, {
|
|
881
884
|
"data-slot": "dialog-title",
|
|
882
885
|
className: N("text-lg leading-none font-semibold", e),
|
|
883
886
|
...t
|
|
884
887
|
});
|
|
885
888
|
}
|
|
886
|
-
function
|
|
889
|
+
function qt({ className: e, ...t }) {
|
|
887
890
|
return /* @__PURE__ */ g(w.Description, {
|
|
888
891
|
"data-slot": "dialog-description",
|
|
889
892
|
className: N("text-muted-foreground text-sm", e),
|
|
@@ -899,13 +902,13 @@ function B({ className: e, ...t }) {
|
|
|
899
902
|
...t
|
|
900
903
|
});
|
|
901
904
|
}
|
|
902
|
-
function
|
|
903
|
-
return /* @__PURE__ */ _(
|
|
905
|
+
function Jt({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...a }) {
|
|
906
|
+
return /* @__PURE__ */ _(Rt, {
|
|
904
907
|
...a,
|
|
905
|
-
children: [/* @__PURE__ */ _(
|
|
908
|
+
children: [/* @__PURE__ */ _(Wt, {
|
|
906
909
|
className: "sr-only",
|
|
907
|
-
children: [/* @__PURE__ */ g(
|
|
908
|
-
}), /* @__PURE__ */ g(
|
|
910
|
+
children: [/* @__PURE__ */ g(Kt, { children: e }), /* @__PURE__ */ g(qt, { children: t })]
|
|
911
|
+
}), /* @__PURE__ */ g(Ut, {
|
|
909
912
|
className: N("overflow-hidden p-0", r),
|
|
910
913
|
showCloseButton: i,
|
|
911
914
|
children: /* @__PURE__ */ g(B, {
|
|
@@ -947,7 +950,7 @@ function W({ className: e, ...t }) {
|
|
|
947
950
|
...t
|
|
948
951
|
});
|
|
949
952
|
}
|
|
950
|
-
function
|
|
953
|
+
function Yt({ className: e, ...t }) {
|
|
951
954
|
return /* @__PURE__ */ g(C.Separator, {
|
|
952
955
|
"data-slot": "command-separator",
|
|
953
956
|
className: N("bg-border -mx-1 h-px", e),
|
|
@@ -961,7 +964,7 @@ function G({ className: e, ...t }) {
|
|
|
961
964
|
...t
|
|
962
965
|
});
|
|
963
966
|
}
|
|
964
|
-
function
|
|
967
|
+
function Xt({ className: e, ...t }) {
|
|
965
968
|
return /* @__PURE__ */ g("span", {
|
|
966
969
|
"data-slot": "command-shortcut",
|
|
967
970
|
className: N("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
@@ -970,25 +973,25 @@ function Yt({ className: e, ...t }) {
|
|
|
970
973
|
}
|
|
971
974
|
//#endregion
|
|
972
975
|
//#region src/components/ui/dropdown-menu.tsx
|
|
973
|
-
function
|
|
976
|
+
function Zt({ ...e }) {
|
|
974
977
|
return /* @__PURE__ */ g(T.Root, {
|
|
975
978
|
"data-slot": "dropdown-menu",
|
|
976
979
|
...e
|
|
977
980
|
});
|
|
978
981
|
}
|
|
979
|
-
function
|
|
982
|
+
function Qt({ ...e }) {
|
|
980
983
|
return /* @__PURE__ */ g(T.Portal, {
|
|
981
984
|
"data-slot": "dropdown-menu-portal",
|
|
982
985
|
...e
|
|
983
986
|
});
|
|
984
987
|
}
|
|
985
|
-
function
|
|
988
|
+
function $t({ ...e }) {
|
|
986
989
|
return /* @__PURE__ */ g(T.Trigger, {
|
|
987
990
|
"data-slot": "dropdown-menu-trigger",
|
|
988
991
|
...e
|
|
989
992
|
});
|
|
990
993
|
}
|
|
991
|
-
function
|
|
994
|
+
function en({ className: e, sideOffset: t = 4, ...n }) {
|
|
992
995
|
return /* @__PURE__ */ g(T.Portal, { children: /* @__PURE__ */ g(T.Content, {
|
|
993
996
|
"data-slot": "dropdown-menu-content",
|
|
994
997
|
sideOffset: t,
|
|
@@ -996,13 +999,13 @@ function $t({ className: e, sideOffset: t = 4, ...n }) {
|
|
|
996
999
|
...n
|
|
997
1000
|
}) });
|
|
998
1001
|
}
|
|
999
|
-
function
|
|
1002
|
+
function tn({ ...e }) {
|
|
1000
1003
|
return /* @__PURE__ */ g(T.Group, {
|
|
1001
1004
|
"data-slot": "dropdown-menu-group",
|
|
1002
1005
|
...e
|
|
1003
1006
|
});
|
|
1004
1007
|
}
|
|
1005
|
-
function
|
|
1008
|
+
function nn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
1006
1009
|
return /* @__PURE__ */ g(T.Item, {
|
|
1007
1010
|
"data-slot": "dropdown-menu-item",
|
|
1008
1011
|
"data-inset": t,
|
|
@@ -1011,7 +1014,7 @@ function tn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
1011
1014
|
...r
|
|
1012
1015
|
});
|
|
1013
1016
|
}
|
|
1014
|
-
function
|
|
1017
|
+
function rn({ className: e, children: t, checked: n, ...r }) {
|
|
1015
1018
|
return /* @__PURE__ */ _(T.CheckboxItem, {
|
|
1016
1019
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1017
1020
|
className: N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -1023,13 +1026,13 @@ function nn({ className: e, children: t, checked: n, ...r }) {
|
|
|
1023
1026
|
}), t]
|
|
1024
1027
|
});
|
|
1025
1028
|
}
|
|
1026
|
-
function
|
|
1029
|
+
function an({ ...e }) {
|
|
1027
1030
|
return /* @__PURE__ */ g(T.RadioGroup, {
|
|
1028
1031
|
"data-slot": "dropdown-menu-radio-group",
|
|
1029
1032
|
...e
|
|
1030
1033
|
});
|
|
1031
1034
|
}
|
|
1032
|
-
function
|
|
1035
|
+
function on({ className: e, children: t, ...n }) {
|
|
1033
1036
|
return /* @__PURE__ */ _(T.RadioItem, {
|
|
1034
1037
|
"data-slot": "dropdown-menu-radio-item",
|
|
1035
1038
|
className: N("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 ps-8 pe-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
@@ -1040,7 +1043,7 @@ function an({ className: e, children: t, ...n }) {
|
|
|
1040
1043
|
}), t]
|
|
1041
1044
|
});
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1046
|
+
function sn({ className: e, inset: t, ...n }) {
|
|
1044
1047
|
return /* @__PURE__ */ g(T.Label, {
|
|
1045
1048
|
"data-slot": "dropdown-menu-label",
|
|
1046
1049
|
"data-inset": t,
|
|
@@ -1048,27 +1051,27 @@ function on({ className: e, inset: t, ...n }) {
|
|
|
1048
1051
|
...n
|
|
1049
1052
|
});
|
|
1050
1053
|
}
|
|
1051
|
-
function
|
|
1054
|
+
function cn({ className: e, ...t }) {
|
|
1052
1055
|
return /* @__PURE__ */ g(T.Separator, {
|
|
1053
1056
|
"data-slot": "dropdown-menu-separator",
|
|
1054
1057
|
className: N("bg-border -mx-1 my-1 h-px", e),
|
|
1055
1058
|
...t
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
|
-
function
|
|
1061
|
+
function ln({ className: e, ...t }) {
|
|
1059
1062
|
return /* @__PURE__ */ g("span", {
|
|
1060
1063
|
"data-slot": "dropdown-menu-shortcut",
|
|
1061
1064
|
className: N("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
1062
1065
|
...t
|
|
1063
1066
|
});
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function un({ ...e }) {
|
|
1066
1069
|
return /* @__PURE__ */ g(T.Sub, {
|
|
1067
1070
|
"data-slot": "dropdown-menu-sub",
|
|
1068
1071
|
...e
|
|
1069
1072
|
});
|
|
1070
1073
|
}
|
|
1071
|
-
function
|
|
1074
|
+
function dn({ className: e, inset: t, children: n, ...r }) {
|
|
1072
1075
|
return /* @__PURE__ */ _(T.SubTrigger, {
|
|
1073
1076
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1074
1077
|
"data-inset": t,
|
|
@@ -1077,7 +1080,7 @@ function un({ className: e, inset: t, children: n, ...r }) {
|
|
|
1077
1080
|
children: [n, /* @__PURE__ */ g(re, { className: "ms-auto size-4" })]
|
|
1078
1081
|
});
|
|
1079
1082
|
}
|
|
1080
|
-
function
|
|
1083
|
+
function fn({ className: e, ...t }) {
|
|
1081
1084
|
return /* @__PURE__ */ g(T.SubContent, {
|
|
1082
1085
|
"data-slot": "dropdown-menu-sub-content",
|
|
1083
1086
|
className: N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
@@ -1095,11 +1098,11 @@ function K({ className: e, ...t }) {
|
|
|
1095
1098
|
}
|
|
1096
1099
|
//#endregion
|
|
1097
1100
|
//#region src/components/ui/form.tsx
|
|
1098
|
-
var
|
|
1101
|
+
var pn = ve, mn = s.createContext({}), hn = ({ ...e }) => /* @__PURE__ */ g(mn.Provider, {
|
|
1099
1102
|
value: { name: e.name },
|
|
1100
1103
|
children: /* @__PURE__ */ g(_e, { ...e })
|
|
1101
1104
|
}), q = () => {
|
|
1102
|
-
let e = s.useContext(
|
|
1105
|
+
let e = s.useContext(mn), t = s.useContext(gn), { getFieldState: n } = ye(), r = be({ name: e.name }), i = n(e.name, r);
|
|
1103
1106
|
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
1104
1107
|
let { id: a } = t;
|
|
1105
1108
|
return {
|
|
@@ -1110,10 +1113,10 @@ var fn = ve, pn = s.createContext({}), mn = ({ ...e }) => /* @__PURE__ */ g(pn.P
|
|
|
1110
1113
|
formMessageId: `${a}-form-item-message`,
|
|
1111
1114
|
...i
|
|
1112
1115
|
};
|
|
1113
|
-
},
|
|
1114
|
-
function
|
|
1116
|
+
}, gn = s.createContext({});
|
|
1117
|
+
function _n({ className: e, ...t }) {
|
|
1115
1118
|
let n = s.useId();
|
|
1116
|
-
return /* @__PURE__ */ g(
|
|
1119
|
+
return /* @__PURE__ */ g(gn.Provider, {
|
|
1117
1120
|
value: { id: n },
|
|
1118
1121
|
children: /* @__PURE__ */ g("div", {
|
|
1119
1122
|
"data-slot": "form-item",
|
|
@@ -1122,7 +1125,7 @@ function gn({ className: e, ...t }) {
|
|
|
1122
1125
|
})
|
|
1123
1126
|
});
|
|
1124
1127
|
}
|
|
1125
|
-
function
|
|
1128
|
+
function vn({ className: e, ...t }) {
|
|
1126
1129
|
let { error: n, formItemId: r } = q();
|
|
1127
1130
|
return /* @__PURE__ */ g(K, {
|
|
1128
1131
|
"data-slot": "form-label",
|
|
@@ -1132,7 +1135,7 @@ function _n({ className: e, ...t }) {
|
|
|
1132
1135
|
...t
|
|
1133
1136
|
});
|
|
1134
1137
|
}
|
|
1135
|
-
function
|
|
1138
|
+
function yn({ ...e }) {
|
|
1136
1139
|
let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = q();
|
|
1137
1140
|
return /* @__PURE__ */ g(b, {
|
|
1138
1141
|
"data-slot": "form-control",
|
|
@@ -1142,7 +1145,7 @@ function vn({ ...e }) {
|
|
|
1142
1145
|
...e
|
|
1143
1146
|
});
|
|
1144
1147
|
}
|
|
1145
|
-
function
|
|
1148
|
+
function bn({ className: e, ...t }) {
|
|
1146
1149
|
let { formDescriptionId: n } = q();
|
|
1147
1150
|
return /* @__PURE__ */ g("p", {
|
|
1148
1151
|
"data-slot": "form-description",
|
|
@@ -1151,7 +1154,7 @@ function yn({ className: e, ...t }) {
|
|
|
1151
1154
|
...t
|
|
1152
1155
|
});
|
|
1153
1156
|
}
|
|
1154
|
-
function
|
|
1157
|
+
function xn({ className: e, ...t }) {
|
|
1155
1158
|
let { error: n, formMessageId: r } = q(), i = n ? String(n?.message ?? "") : t.children;
|
|
1156
1159
|
return i ? /* @__PURE__ */ g("p", {
|
|
1157
1160
|
"data-slot": "form-message",
|
|
@@ -1163,7 +1166,7 @@ function bn({ className: e, ...t }) {
|
|
|
1163
1166
|
}
|
|
1164
1167
|
//#endregion
|
|
1165
1168
|
//#region src/components/ui/image-upload.tsx
|
|
1166
|
-
function
|
|
1169
|
+
function Sn({ value: e, onChange: t, label: n = "Imagen", disabled: r, multiple: a = !1, className: o }) {
|
|
1167
1170
|
let s = ee(null), [c, l] = te(!1), [d, f] = te([]);
|
|
1168
1171
|
u(() => {
|
|
1169
1172
|
f(Array.isArray(e) ? e : e ? [e] : []);
|
|
@@ -1275,7 +1278,7 @@ function J({ className: e, type: t, ...n }) {
|
|
|
1275
1278
|
}
|
|
1276
1279
|
//#endregion
|
|
1277
1280
|
//#region src/components/ui/input-otp.tsx
|
|
1278
|
-
function
|
|
1281
|
+
function Cn({ className: e, containerClassName: t, ...n }) {
|
|
1279
1282
|
return /* @__PURE__ */ g(Se, {
|
|
1280
1283
|
"data-slot": "input-otp",
|
|
1281
1284
|
containerClassName: N("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
@@ -1283,14 +1286,14 @@ function Sn({ className: e, containerClassName: t, ...n }) {
|
|
|
1283
1286
|
...n
|
|
1284
1287
|
});
|
|
1285
1288
|
}
|
|
1286
|
-
function
|
|
1289
|
+
function wn({ className: e, ...t }) {
|
|
1287
1290
|
return /* @__PURE__ */ g("div", {
|
|
1288
1291
|
"data-slot": "input-otp-group",
|
|
1289
1292
|
className: N("flex items-center", e),
|
|
1290
1293
|
...t
|
|
1291
1294
|
});
|
|
1292
1295
|
}
|
|
1293
|
-
function
|
|
1296
|
+
function Tn({ index: e, className: t, ...n }) {
|
|
1294
1297
|
let { char: r, hasFakeCaret: i, isActive: a } = s.useContext(Ce)?.slots[e] ?? {};
|
|
1295
1298
|
return /* @__PURE__ */ _("div", {
|
|
1296
1299
|
"data-slot": "input-otp-slot",
|
|
@@ -1303,7 +1306,7 @@ function wn({ index: e, className: t, ...n }) {
|
|
|
1303
1306
|
})]
|
|
1304
1307
|
});
|
|
1305
1308
|
}
|
|
1306
|
-
function
|
|
1309
|
+
function En({ ...e }) {
|
|
1307
1310
|
return /* @__PURE__ */ g("div", {
|
|
1308
1311
|
"data-slot": "input-otp-separator",
|
|
1309
1312
|
role: "separator",
|
|
@@ -1334,7 +1337,7 @@ function Z({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
1334
1337
|
...r
|
|
1335
1338
|
}) });
|
|
1336
1339
|
}
|
|
1337
|
-
function
|
|
1340
|
+
function Dn({ ...e }) {
|
|
1338
1341
|
return /* @__PURE__ */ g(E.Anchor, {
|
|
1339
1342
|
"data-slot": "popover-anchor",
|
|
1340
1343
|
...e
|
|
@@ -1342,7 +1345,7 @@ function En({ ...e }) {
|
|
|
1342
1345
|
}
|
|
1343
1346
|
//#endregion
|
|
1344
1347
|
//#region src/components/ui/multi-select.tsx
|
|
1345
|
-
function
|
|
1348
|
+
function On({ options: e, selected: t, onChange: n, placeholder: r = "Select options...", className: i }) {
|
|
1346
1349
|
let [a, o] = s.useState(!1), c = (e) => {
|
|
1347
1350
|
n(t.filter((t) => t !== e));
|
|
1348
1351
|
};
|
|
@@ -1360,7 +1363,7 @@ function Dn({ options: e, selected: t, onChange: n, placeholder: r = "Select opt
|
|
|
1360
1363
|
className: "flex flex-wrap gap-1",
|
|
1361
1364
|
children: t.length > 0 ? t.map((t) => {
|
|
1362
1365
|
let n = e.find((e) => e.value === t);
|
|
1363
|
-
return n ? /* @__PURE__ */ _(
|
|
1366
|
+
return n ? /* @__PURE__ */ _(wt, {
|
|
1364
1367
|
variant: "secondary",
|
|
1365
1368
|
className: "mr-1 mb-1",
|
|
1366
1369
|
onClick: (e) => {
|
|
@@ -1426,12 +1429,12 @@ var Q = s.forwardRef(({ className: e, children: t, orientation: n = "vertical",
|
|
|
1426
1429
|
className: N("focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", n === "horizontal" && "overflow-x-auto!"),
|
|
1427
1430
|
children: t
|
|
1428
1431
|
}),
|
|
1429
|
-
/* @__PURE__ */ g(
|
|
1432
|
+
/* @__PURE__ */ g(kn, { orientation: n }),
|
|
1430
1433
|
/* @__PURE__ */ g(D.Corner, {})
|
|
1431
1434
|
]
|
|
1432
1435
|
}));
|
|
1433
1436
|
Q.displayName = "ScrollArea";
|
|
1434
|
-
var
|
|
1437
|
+
var kn = s.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ g(D.ScrollAreaScrollbar, {
|
|
1435
1438
|
ref: r,
|
|
1436
1439
|
"data-slot": "scroll-area-scrollbar",
|
|
1437
1440
|
orientation: t,
|
|
@@ -1442,27 +1445,27 @@ var On = s.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) =
|
|
|
1442
1445
|
className: "bg-foreground/35 hover:bg-foreground/50 relative flex-1 rounded-full transition-colors"
|
|
1443
1446
|
})
|
|
1444
1447
|
}));
|
|
1445
|
-
|
|
1448
|
+
kn.displayName = "ScrollBar";
|
|
1446
1449
|
//#endregion
|
|
1447
1450
|
//#region src/components/ui/phone-input.tsx
|
|
1448
|
-
var
|
|
1451
|
+
var An = s.forwardRef(({ className: e, onChange: t, ...n }, r) => /* @__PURE__ */ g(we.default, {
|
|
1449
1452
|
ref: r,
|
|
1450
1453
|
className: N("flex", e),
|
|
1451
|
-
flagComponent:
|
|
1452
|
-
countrySelectComponent:
|
|
1453
|
-
inputComponent:
|
|
1454
|
+
flagComponent: Nn,
|
|
1455
|
+
countrySelectComponent: Mn,
|
|
1456
|
+
inputComponent: jn,
|
|
1454
1457
|
smartCaret: !1,
|
|
1455
1458
|
onChange: (e) => t?.(e || ""),
|
|
1456
1459
|
...n
|
|
1457
1460
|
}));
|
|
1458
|
-
|
|
1459
|
-
var
|
|
1461
|
+
An.displayName = "PhoneInput";
|
|
1462
|
+
var jn = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ g(J, {
|
|
1460
1463
|
className: N("rounded-e-lg rounded-s-none", e),
|
|
1461
1464
|
...t,
|
|
1462
1465
|
ref: n
|
|
1463
1466
|
}));
|
|
1464
|
-
|
|
1465
|
-
var
|
|
1467
|
+
jn.displayName = "InputComponent";
|
|
1468
|
+
var Mn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
1466
1469
|
let i = s.useCallback((e) => {
|
|
1467
1470
|
n(e);
|
|
1468
1471
|
}, [n]);
|
|
@@ -1473,7 +1476,7 @@ var jn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1473
1476
|
variant: "outline",
|
|
1474
1477
|
className: N("flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10"),
|
|
1475
1478
|
disabled: e,
|
|
1476
|
-
children: [/* @__PURE__ */ g(
|
|
1479
|
+
children: [/* @__PURE__ */ g(Nn, {
|
|
1477
1480
|
country: t,
|
|
1478
1481
|
countryName: t
|
|
1479
1482
|
}), /* @__PURE__ */ g(ae, { className: N("-mr-2 size-4 opacity-50", e ? "hidden" : "opacity-100") })]
|
|
@@ -1486,7 +1489,7 @@ var jn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1486
1489
|
className: "gap-2",
|
|
1487
1490
|
onSelect: () => i(e.value),
|
|
1488
1491
|
children: [
|
|
1489
|
-
/* @__PURE__ */ g(
|
|
1492
|
+
/* @__PURE__ */ g(Nn, {
|
|
1490
1493
|
country: e.value,
|
|
1491
1494
|
countryName: e.label
|
|
1492
1495
|
}),
|
|
@@ -1503,13 +1506,13 @@ var jn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1503
1506
|
}, e.value)) })]
|
|
1504
1507
|
}) })] })
|
|
1505
1508
|
})] });
|
|
1506
|
-
},
|
|
1509
|
+
}, Nn = ({ country: e, countryName: t }) => {
|
|
1507
1510
|
let n = Te[e];
|
|
1508
1511
|
return /* @__PURE__ */ g("span", {
|
|
1509
1512
|
className: "flex h-5 w-7 shrink-0 items-center justify-center overflow-hidden rounded-sm bg-foreground/10 [&_svg]:h-full [&_svg]:w-full [&_svg]:object-cover",
|
|
1510
1513
|
children: n && /* @__PURE__ */ g(n, { title: t })
|
|
1511
1514
|
});
|
|
1512
|
-
},
|
|
1515
|
+
}, Pn = s.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ g(O.Root, {
|
|
1513
1516
|
ref: r,
|
|
1514
1517
|
className: N("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
|
|
1515
1518
|
...n,
|
|
@@ -1521,17 +1524,17 @@ var jn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1521
1524
|
}
|
|
1522
1525
|
})
|
|
1523
1526
|
}));
|
|
1524
|
-
|
|
1527
|
+
Pn.displayName = O.Root.displayName;
|
|
1525
1528
|
//#endregion
|
|
1526
1529
|
//#region src/components/ui/radio-group.tsx
|
|
1527
|
-
function
|
|
1530
|
+
function Fn({ className: e, ...t }) {
|
|
1528
1531
|
return /* @__PURE__ */ g(k.Root, {
|
|
1529
1532
|
"data-slot": "radio-group",
|
|
1530
1533
|
className: N("grid gap-3", e),
|
|
1531
1534
|
...t
|
|
1532
1535
|
});
|
|
1533
1536
|
}
|
|
1534
|
-
function
|
|
1537
|
+
function In({ className: e, ...t }) {
|
|
1535
1538
|
return /* @__PURE__ */ g(k.Item, {
|
|
1536
1539
|
"data-slot": "radio-group-item",
|
|
1537
1540
|
className: N("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -1545,25 +1548,25 @@ function Fn({ className: e, ...t }) {
|
|
|
1545
1548
|
}
|
|
1546
1549
|
//#endregion
|
|
1547
1550
|
//#region src/components/ui/select.tsx
|
|
1548
|
-
function
|
|
1551
|
+
function Ln({ ...e }) {
|
|
1549
1552
|
return /* @__PURE__ */ g(A.Root, {
|
|
1550
1553
|
"data-slot": "select",
|
|
1551
1554
|
...e
|
|
1552
1555
|
});
|
|
1553
1556
|
}
|
|
1554
|
-
function
|
|
1557
|
+
function Rn({ ...e }) {
|
|
1555
1558
|
return /* @__PURE__ */ g(A.Group, {
|
|
1556
1559
|
"data-slot": "select-group",
|
|
1557
1560
|
...e
|
|
1558
1561
|
});
|
|
1559
1562
|
}
|
|
1560
|
-
function
|
|
1563
|
+
function zn({ ...e }) {
|
|
1561
1564
|
return /* @__PURE__ */ g(A.Value, {
|
|
1562
1565
|
"data-slot": "select-value",
|
|
1563
1566
|
...e
|
|
1564
1567
|
});
|
|
1565
1568
|
}
|
|
1566
|
-
function
|
|
1569
|
+
function Bn({ className: e, size: t = "default", children: n, ...r }) {
|
|
1567
1570
|
return /* @__PURE__ */ _(A.Trigger, {
|
|
1568
1571
|
"data-slot": "select-trigger",
|
|
1569
1572
|
"data-size": t,
|
|
@@ -1575,30 +1578,30 @@ function zn({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
1575
1578
|
})]
|
|
1576
1579
|
});
|
|
1577
1580
|
}
|
|
1578
|
-
function
|
|
1581
|
+
function Vn({ className: e, children: t, position: n = "popper", ...r }) {
|
|
1579
1582
|
return /* @__PURE__ */ g(A.Portal, { children: /* @__PURE__ */ _(A.Content, {
|
|
1580
1583
|
"data-slot": "select-content",
|
|
1581
1584
|
className: N("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
|
|
1582
1585
|
position: n,
|
|
1583
1586
|
...r,
|
|
1584
1587
|
children: [
|
|
1585
|
-
/* @__PURE__ */ g(
|
|
1588
|
+
/* @__PURE__ */ g(Gn, {}),
|
|
1586
1589
|
/* @__PURE__ */ g(A.Viewport, {
|
|
1587
1590
|
className: N("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
1588
1591
|
children: t
|
|
1589
1592
|
}),
|
|
1590
|
-
/* @__PURE__ */ g(
|
|
1593
|
+
/* @__PURE__ */ g(Kn, {})
|
|
1591
1594
|
]
|
|
1592
1595
|
}) });
|
|
1593
1596
|
}
|
|
1594
|
-
function
|
|
1597
|
+
function Hn({ className: e, ...t }) {
|
|
1595
1598
|
return /* @__PURE__ */ g(A.Label, {
|
|
1596
1599
|
"data-slot": "select-label",
|
|
1597
1600
|
className: N("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
1598
1601
|
...t
|
|
1599
1602
|
});
|
|
1600
1603
|
}
|
|
1601
|
-
function
|
|
1604
|
+
function Un({ className: e, children: t, ...n }) {
|
|
1602
1605
|
return /* @__PURE__ */ _(A.Item, {
|
|
1603
1606
|
"data-slot": "select-item",
|
|
1604
1607
|
className: N("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
@@ -1609,14 +1612,14 @@ function Hn({ className: e, children: t, ...n }) {
|
|
|
1609
1612
|
}), /* @__PURE__ */ g(A.ItemText, { children: t })]
|
|
1610
1613
|
});
|
|
1611
1614
|
}
|
|
1612
|
-
function
|
|
1615
|
+
function Wn({ className: e, ...t }) {
|
|
1613
1616
|
return /* @__PURE__ */ g(A.Separator, {
|
|
1614
1617
|
"data-slot": "select-separator",
|
|
1615
1618
|
className: N("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
1616
1619
|
...t
|
|
1617
1620
|
});
|
|
1618
1621
|
}
|
|
1619
|
-
function
|
|
1622
|
+
function Gn({ className: e, ...t }) {
|
|
1620
1623
|
return /* @__PURE__ */ g(A.ScrollUpButton, {
|
|
1621
1624
|
"data-slot": "select-scroll-up-button",
|
|
1622
1625
|
className: N("flex cursor-default items-center justify-center py-1", e),
|
|
@@ -1624,7 +1627,7 @@ function Wn({ className: e, ...t }) {
|
|
|
1624
1627
|
children: /* @__PURE__ */ g(ie, { className: "size-4" })
|
|
1625
1628
|
});
|
|
1626
1629
|
}
|
|
1627
|
-
function
|
|
1630
|
+
function Kn({ className: e, ...t }) {
|
|
1628
1631
|
return /* @__PURE__ */ g(A.ScrollDownButton, {
|
|
1629
1632
|
"data-slot": "select-scroll-down-button",
|
|
1630
1633
|
className: N("flex cursor-default items-center justify-center py-1", e),
|
|
@@ -1634,7 +1637,7 @@ function Gn({ className: e, ...t }) {
|
|
|
1634
1637
|
}
|
|
1635
1638
|
//#endregion
|
|
1636
1639
|
//#region src/components/ui/separator.tsx
|
|
1637
|
-
function
|
|
1640
|
+
function qn({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
1638
1641
|
return /* @__PURE__ */ g(Ee.Root, {
|
|
1639
1642
|
"data-slot": "separator",
|
|
1640
1643
|
decorative: n,
|
|
@@ -1645,39 +1648,39 @@ function Kn({ className: e, orientation: t = "horizontal", decorative: n = !0, .
|
|
|
1645
1648
|
}
|
|
1646
1649
|
//#endregion
|
|
1647
1650
|
//#region src/components/ui/sheet.tsx
|
|
1648
|
-
function
|
|
1651
|
+
function Jn({ ...e }) {
|
|
1649
1652
|
return /* @__PURE__ */ g(w.Root, {
|
|
1650
1653
|
"data-slot": "sheet",
|
|
1651
1654
|
...e
|
|
1652
1655
|
});
|
|
1653
1656
|
}
|
|
1654
|
-
function
|
|
1657
|
+
function Yn({ ...e }) {
|
|
1655
1658
|
return /* @__PURE__ */ g(w.Trigger, {
|
|
1656
1659
|
"data-slot": "sheet-trigger",
|
|
1657
1660
|
...e
|
|
1658
1661
|
});
|
|
1659
1662
|
}
|
|
1660
|
-
function
|
|
1663
|
+
function Xn({ ...e }) {
|
|
1661
1664
|
return /* @__PURE__ */ g(w.Close, {
|
|
1662
1665
|
"data-slot": "sheet-close",
|
|
1663
1666
|
...e
|
|
1664
1667
|
});
|
|
1665
1668
|
}
|
|
1666
|
-
function
|
|
1669
|
+
function Zn({ ...e }) {
|
|
1667
1670
|
return /* @__PURE__ */ g(w.Portal, {
|
|
1668
1671
|
"data-slot": "sheet-portal",
|
|
1669
1672
|
...e
|
|
1670
1673
|
});
|
|
1671
1674
|
}
|
|
1672
|
-
function
|
|
1675
|
+
function Qn({ className: e, ...t }) {
|
|
1673
1676
|
return /* @__PURE__ */ g(w.Overlay, {
|
|
1674
1677
|
"data-slot": "sheet-overlay",
|
|
1675
1678
|
className: N("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
|
|
1676
1679
|
...t
|
|
1677
1680
|
});
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return /* @__PURE__ */ _(
|
|
1682
|
+
function $n({ className: e, children: t, side: n = "right", ...r }) {
|
|
1683
|
+
return /* @__PURE__ */ _(Zn, { children: [/* @__PURE__ */ g(Qn, {}), /* @__PURE__ */ _(w.Content, {
|
|
1681
1684
|
"data-slot": "sheet-content",
|
|
1682
1685
|
className: N("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
|
|
1683
1686
|
...r,
|
|
@@ -1690,28 +1693,28 @@ function Qn({ className: e, children: t, side: n = "right", ...r }) {
|
|
|
1690
1693
|
})]
|
|
1691
1694
|
})] });
|
|
1692
1695
|
}
|
|
1693
|
-
function
|
|
1696
|
+
function er({ className: e, ...t }) {
|
|
1694
1697
|
return /* @__PURE__ */ g("div", {
|
|
1695
1698
|
"data-slot": "sheet-header",
|
|
1696
1699
|
className: N("flex flex-col gap-1.5 p-4", e),
|
|
1697
1700
|
...t
|
|
1698
1701
|
});
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1703
|
+
function tr({ className: e, ...t }) {
|
|
1701
1704
|
return /* @__PURE__ */ g("div", {
|
|
1702
1705
|
"data-slot": "sheet-footer",
|
|
1703
1706
|
className: N("mt-auto flex flex-col gap-2 p-4", e),
|
|
1704
1707
|
...t
|
|
1705
1708
|
});
|
|
1706
1709
|
}
|
|
1707
|
-
function
|
|
1710
|
+
function nr({ className: e, ...t }) {
|
|
1708
1711
|
return /* @__PURE__ */ g(w.Title, {
|
|
1709
1712
|
"data-slot": "sheet-title",
|
|
1710
1713
|
className: N("text-foreground font-semibold", e),
|
|
1711
1714
|
...t
|
|
1712
1715
|
});
|
|
1713
1716
|
}
|
|
1714
|
-
function
|
|
1717
|
+
function rr({ className: e, ...t }) {
|
|
1715
1718
|
return /* @__PURE__ */ g(w.Description, {
|
|
1716
1719
|
"data-slot": "sheet-description",
|
|
1717
1720
|
className: N("text-muted-foreground text-sm", e),
|
|
@@ -1720,19 +1723,19 @@ function nr({ className: e, ...t }) {
|
|
|
1720
1723
|
}
|
|
1721
1724
|
//#endregion
|
|
1722
1725
|
//#region src/hooks/use-mobile.tsx
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1726
|
+
var ir = 768;
|
|
1727
|
+
function ar() {
|
|
1725
1728
|
let [e, t] = s.useState(void 0);
|
|
1726
1729
|
return s.useEffect(() => {
|
|
1727
|
-
let e = window.matchMedia(`(max-width: ${
|
|
1728
|
-
t(window.innerWidth <
|
|
1730
|
+
let e = window.matchMedia(`(max-width: ${ir - 1}px)`), n = () => {
|
|
1731
|
+
t(window.innerWidth < ir);
|
|
1729
1732
|
};
|
|
1730
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
1733
|
+
return e.addEventListener("change", n), t(window.innerWidth < ir), () => e.removeEventListener("change", n);
|
|
1731
1734
|
}, []), !!e;
|
|
1732
1735
|
}
|
|
1733
1736
|
//#endregion
|
|
1734
1737
|
//#region src/components/ui/skeleton.tsx
|
|
1735
|
-
function
|
|
1738
|
+
function or({ className: e, ...t }) {
|
|
1736
1739
|
return /* @__PURE__ */ g("div", {
|
|
1737
1740
|
"data-slot": "skeleton",
|
|
1738
1741
|
className: N("bg-accent animate-pulse rounded-md", e),
|
|
@@ -1741,26 +1744,26 @@ function ar({ className: e, ...t }) {
|
|
|
1741
1744
|
}
|
|
1742
1745
|
//#endregion
|
|
1743
1746
|
//#region src/components/ui/tooltip.tsx
|
|
1744
|
-
function
|
|
1747
|
+
function sr({ delayDuration: e = 0, ...t }) {
|
|
1745
1748
|
return /* @__PURE__ */ g(j.Provider, {
|
|
1746
1749
|
"data-slot": "tooltip-provider",
|
|
1747
1750
|
delayDuration: e,
|
|
1748
1751
|
...t
|
|
1749
1752
|
});
|
|
1750
1753
|
}
|
|
1751
|
-
function
|
|
1752
|
-
return /* @__PURE__ */ g(
|
|
1754
|
+
function cr({ ...e }) {
|
|
1755
|
+
return /* @__PURE__ */ g(sr, { children: /* @__PURE__ */ g(j.Root, {
|
|
1753
1756
|
"data-slot": "tooltip",
|
|
1754
1757
|
...e
|
|
1755
1758
|
}) });
|
|
1756
1759
|
}
|
|
1757
|
-
function
|
|
1760
|
+
function lr({ ...e }) {
|
|
1758
1761
|
return /* @__PURE__ */ g(j.Trigger, {
|
|
1759
1762
|
"data-slot": "tooltip-trigger",
|
|
1760
1763
|
...e
|
|
1761
1764
|
});
|
|
1762
1765
|
}
|
|
1763
|
-
function
|
|
1766
|
+
function ur({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
1764
1767
|
return /* @__PURE__ */ g(j.Portal, { children: /* @__PURE__ */ _(j.Content, {
|
|
1765
1768
|
"data-slot": "tooltip-content",
|
|
1766
1769
|
sideOffset: t,
|
|
@@ -1771,16 +1774,16 @@ function lr({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
|
1771
1774
|
}
|
|
1772
1775
|
//#endregion
|
|
1773
1776
|
//#region src/components/ui/sidebar.tsx
|
|
1774
|
-
var
|
|
1777
|
+
var dr = "sidebar_state", fr = 3600 * 24 * 7, pr = "16rem", mr = "18rem", hr = "3rem", gr = "b", _r = s.createContext(null);
|
|
1775
1778
|
function $() {
|
|
1776
|
-
let e = s.useContext(
|
|
1779
|
+
let e = s.useContext(_r);
|
|
1777
1780
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
1778
1781
|
return e;
|
|
1779
1782
|
}
|
|
1780
|
-
function
|
|
1781
|
-
let c =
|
|
1783
|
+
function vr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...o }) {
|
|
1784
|
+
let c = ar(), [l, u] = s.useState(!1), [ee, te] = s.useState(e), d = t ?? ee, f = s.useCallback((e) => {
|
|
1782
1785
|
let t = typeof e == "function" ? e(d) : e;
|
|
1783
|
-
n ? n(t) : te(t), document.cookie = `${
|
|
1786
|
+
n ? n(t) : te(t), document.cookie = `${dr}=${t}; path=/; max-age=${fr}`;
|
|
1784
1787
|
}, [n, d]), p = s.useCallback(() => c ? u((e) => !e) : f((e) => !e), [
|
|
1785
1788
|
c,
|
|
1786
1789
|
f,
|
|
@@ -1788,7 +1791,7 @@ function _r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
1788
1791
|
]);
|
|
1789
1792
|
s.useEffect(() => {
|
|
1790
1793
|
let e = (e) => {
|
|
1791
|
-
e.key ===
|
|
1794
|
+
e.key === gr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), p());
|
|
1792
1795
|
};
|
|
1793
1796
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1794
1797
|
}, [p]);
|
|
@@ -1809,15 +1812,15 @@ function _r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
1809
1812
|
u,
|
|
1810
1813
|
p
|
|
1811
1814
|
]);
|
|
1812
|
-
return /* @__PURE__ */ g(
|
|
1815
|
+
return /* @__PURE__ */ g(_r.Provider, {
|
|
1813
1816
|
value: h,
|
|
1814
|
-
children: /* @__PURE__ */ g(
|
|
1817
|
+
children: /* @__PURE__ */ g(sr, {
|
|
1815
1818
|
delayDuration: 0,
|
|
1816
1819
|
children: /* @__PURE__ */ g("div", {
|
|
1817
1820
|
"data-slot": "sidebar-wrapper",
|
|
1818
1821
|
style: {
|
|
1819
|
-
"--sidebar-width":
|
|
1820
|
-
"--sidebar-width-icon":
|
|
1822
|
+
"--sidebar-width": pr,
|
|
1823
|
+
"--sidebar-width-icon": hr,
|
|
1821
1824
|
...i
|
|
1822
1825
|
},
|
|
1823
1826
|
className: N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-svh w-full overflow-hidden", r),
|
|
@@ -1827,27 +1830,27 @@ function _r({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style
|
|
|
1827
1830
|
})
|
|
1828
1831
|
});
|
|
1829
1832
|
}
|
|
1830
|
-
function
|
|
1833
|
+
function yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
1831
1834
|
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = $();
|
|
1832
1835
|
return n === "none" ? /* @__PURE__ */ g("div", {
|
|
1833
1836
|
"data-slot": "sidebar",
|
|
1834
1837
|
className: N("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
1835
1838
|
...a,
|
|
1836
1839
|
children: i
|
|
1837
|
-
}) : o ? /* @__PURE__ */ g(
|
|
1840
|
+
}) : o ? /* @__PURE__ */ g(Jn, {
|
|
1838
1841
|
open: c,
|
|
1839
1842
|
onOpenChange: l,
|
|
1840
1843
|
...a,
|
|
1841
|
-
children: /* @__PURE__ */ _(
|
|
1844
|
+
children: /* @__PURE__ */ _($n, {
|
|
1842
1845
|
"data-sidebar": "sidebar",
|
|
1843
1846
|
"data-slot": "sidebar",
|
|
1844
1847
|
"data-mobile": "true",
|
|
1845
1848
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
1846
|
-
style: { "--sidebar-width":
|
|
1849
|
+
style: { "--sidebar-width": mr },
|
|
1847
1850
|
side: e,
|
|
1848
|
-
children: [/* @__PURE__ */ _(
|
|
1851
|
+
children: [/* @__PURE__ */ _(er, {
|
|
1849
1852
|
className: "sr-only",
|
|
1850
|
-
children: [/* @__PURE__ */ g(
|
|
1853
|
+
children: [/* @__PURE__ */ g(nr, { children: "Sidebar" }), /* @__PURE__ */ g(rr, { children: "Displays the mobile sidebar." })]
|
|
1851
1854
|
}), /* @__PURE__ */ g("div", {
|
|
1852
1855
|
className: "flex h-full w-full flex-col",
|
|
1853
1856
|
children: i
|
|
@@ -1876,7 +1879,7 @@ function vr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1876
1879
|
})]
|
|
1877
1880
|
});
|
|
1878
1881
|
}
|
|
1879
|
-
function
|
|
1882
|
+
function br({ className: e, onClick: t, ...n }) {
|
|
1880
1883
|
let { toggleSidebar: r } = $();
|
|
1881
1884
|
return /* @__PURE__ */ _(z, {
|
|
1882
1885
|
"data-sidebar": "trigger",
|
|
@@ -1894,7 +1897,7 @@ function yr({ className: e, onClick: t, ...n }) {
|
|
|
1894
1897
|
})]
|
|
1895
1898
|
});
|
|
1896
1899
|
}
|
|
1897
|
-
function
|
|
1900
|
+
function xr({ className: e, ...t }) {
|
|
1898
1901
|
let { toggleSidebar: n } = $();
|
|
1899
1902
|
return /* @__PURE__ */ g("button", {
|
|
1900
1903
|
"data-sidebar": "rail",
|
|
@@ -1907,14 +1910,14 @@ function br({ className: e, ...t }) {
|
|
|
1907
1910
|
...t
|
|
1908
1911
|
});
|
|
1909
1912
|
}
|
|
1910
|
-
function
|
|
1913
|
+
function Sr({ className: e, ...t }) {
|
|
1911
1914
|
return /* @__PURE__ */ g("div", {
|
|
1912
1915
|
"data-slot": "sidebar-inset",
|
|
1913
1916
|
className: N("bg-background relative flex w-full flex-1 flex-col overflow-y-auto", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2", e),
|
|
1914
1917
|
...t
|
|
1915
1918
|
});
|
|
1916
1919
|
}
|
|
1917
|
-
function
|
|
1920
|
+
function Cr({ className: e, ...t }) {
|
|
1918
1921
|
return /* @__PURE__ */ g(J, {
|
|
1919
1922
|
"data-slot": "sidebar-input",
|
|
1920
1923
|
"data-sidebar": "input",
|
|
@@ -1922,7 +1925,7 @@ function Sr({ className: e, ...t }) {
|
|
|
1922
1925
|
...t
|
|
1923
1926
|
});
|
|
1924
1927
|
}
|
|
1925
|
-
function
|
|
1928
|
+
function wr({ className: e, ...t }) {
|
|
1926
1929
|
return /* @__PURE__ */ g("div", {
|
|
1927
1930
|
"data-slot": "sidebar-header",
|
|
1928
1931
|
"data-sidebar": "header",
|
|
@@ -1930,7 +1933,7 @@ function Cr({ className: e, ...t }) {
|
|
|
1930
1933
|
...t
|
|
1931
1934
|
});
|
|
1932
1935
|
}
|
|
1933
|
-
function
|
|
1936
|
+
function Tr({ className: e, ...t }) {
|
|
1934
1937
|
return /* @__PURE__ */ g("div", {
|
|
1935
1938
|
"data-slot": "sidebar-footer",
|
|
1936
1939
|
"data-sidebar": "footer",
|
|
@@ -1938,15 +1941,15 @@ function wr({ className: e, ...t }) {
|
|
|
1938
1941
|
...t
|
|
1939
1942
|
});
|
|
1940
1943
|
}
|
|
1941
|
-
function
|
|
1942
|
-
return /* @__PURE__ */ g(
|
|
1944
|
+
function Er({ className: e, ...t }) {
|
|
1945
|
+
return /* @__PURE__ */ g(qn, {
|
|
1943
1946
|
"data-slot": "sidebar-separator",
|
|
1944
1947
|
"data-sidebar": "separator",
|
|
1945
1948
|
className: N("bg-sidebar-border mx-2 w-auto", e),
|
|
1946
1949
|
...t
|
|
1947
1950
|
});
|
|
1948
1951
|
}
|
|
1949
|
-
function
|
|
1952
|
+
function Dr({ className: e, ...t }) {
|
|
1950
1953
|
return /* @__PURE__ */ g("div", {
|
|
1951
1954
|
"data-slot": "sidebar-content",
|
|
1952
1955
|
"data-sidebar": "content",
|
|
@@ -1954,7 +1957,7 @@ function Er({ className: e, ...t }) {
|
|
|
1954
1957
|
...t
|
|
1955
1958
|
});
|
|
1956
1959
|
}
|
|
1957
|
-
function
|
|
1960
|
+
function Or({ className: e, ...t }) {
|
|
1958
1961
|
return /* @__PURE__ */ g("div", {
|
|
1959
1962
|
"data-slot": "sidebar-group",
|
|
1960
1963
|
"data-sidebar": "group",
|
|
@@ -1962,7 +1965,7 @@ function Dr({ className: e, ...t }) {
|
|
|
1962
1965
|
...t
|
|
1963
1966
|
});
|
|
1964
1967
|
}
|
|
1965
|
-
function
|
|
1968
|
+
function kr({ className: e, asChild: t = !1, ...n }) {
|
|
1966
1969
|
return /* @__PURE__ */ g(t ? b : "div", {
|
|
1967
1970
|
"data-slot": "sidebar-group-label",
|
|
1968
1971
|
"data-sidebar": "group-label",
|
|
@@ -1970,7 +1973,7 @@ function Or({ className: e, asChild: t = !1, ...n }) {
|
|
|
1970
1973
|
...n
|
|
1971
1974
|
});
|
|
1972
1975
|
}
|
|
1973
|
-
function
|
|
1976
|
+
function Ar({ className: e, asChild: t = !1, ...n }) {
|
|
1974
1977
|
return /* @__PURE__ */ g(t ? b : "button", {
|
|
1975
1978
|
"data-slot": "sidebar-group-action",
|
|
1976
1979
|
"data-sidebar": "group-action",
|
|
@@ -1978,7 +1981,7 @@ function kr({ className: e, asChild: t = !1, ...n }) {
|
|
|
1978
1981
|
...n
|
|
1979
1982
|
});
|
|
1980
1983
|
}
|
|
1981
|
-
function
|
|
1984
|
+
function jr({ className: e, ...t }) {
|
|
1982
1985
|
return /* @__PURE__ */ g("div", {
|
|
1983
1986
|
"data-slot": "sidebar-group-content",
|
|
1984
1987
|
"data-sidebar": "group-content",
|
|
@@ -1986,7 +1989,7 @@ function Ar({ className: e, ...t }) {
|
|
|
1986
1989
|
...t
|
|
1987
1990
|
});
|
|
1988
1991
|
}
|
|
1989
|
-
function
|
|
1992
|
+
function Mr({ className: e, ...t }) {
|
|
1990
1993
|
return /* @__PURE__ */ g("ul", {
|
|
1991
1994
|
"data-slot": "sidebar-menu",
|
|
1992
1995
|
"data-sidebar": "menu",
|
|
@@ -1994,7 +1997,7 @@ function jr({ className: e, ...t }) {
|
|
|
1994
1997
|
...t
|
|
1995
1998
|
});
|
|
1996
1999
|
}
|
|
1997
|
-
function
|
|
2000
|
+
function Nr({ className: e, ...t }) {
|
|
1998
2001
|
return /* @__PURE__ */ g("li", {
|
|
1999
2002
|
"data-slot": "sidebar-menu-item",
|
|
2000
2003
|
"data-sidebar": "menu-item",
|
|
@@ -2002,7 +2005,7 @@ function Mr({ className: e, ...t }) {
|
|
|
2002
2005
|
...t
|
|
2003
2006
|
});
|
|
2004
2007
|
}
|
|
2005
|
-
var
|
|
2008
|
+
var Pr = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pe-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
2006
2009
|
variants: {
|
|
2007
2010
|
variant: {
|
|
2008
2011
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -2019,29 +2022,29 @@ var Nr = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
2019
2022
|
size: "default"
|
|
2020
2023
|
}
|
|
2021
2024
|
});
|
|
2022
|
-
function
|
|
2025
|
+
function Fr({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
2023
2026
|
let s = e ? b : "button", { isMobile: c, state: l } = $(), u = /* @__PURE__ */ g(s, {
|
|
2024
2027
|
"data-slot": "sidebar-menu-button",
|
|
2025
2028
|
"data-sidebar": "menu-button",
|
|
2026
2029
|
"data-size": r,
|
|
2027
2030
|
"data-active": t,
|
|
2028
|
-
className: N(
|
|
2031
|
+
className: N(Pr({
|
|
2029
2032
|
variant: n,
|
|
2030
2033
|
size: r
|
|
2031
2034
|
}), a),
|
|
2032
2035
|
...o
|
|
2033
2036
|
});
|
|
2034
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ _(
|
|
2037
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ _(cr, { children: [/* @__PURE__ */ g(lr, {
|
|
2035
2038
|
asChild: !0,
|
|
2036
2039
|
children: u
|
|
2037
|
-
}), /* @__PURE__ */ g(
|
|
2040
|
+
}), /* @__PURE__ */ g(ur, {
|
|
2038
2041
|
side: "right",
|
|
2039
2042
|
align: "center",
|
|
2040
2043
|
hidden: l !== "collapsed" || c,
|
|
2041
2044
|
...i
|
|
2042
2045
|
})] })) : u;
|
|
2043
2046
|
}
|
|
2044
|
-
function
|
|
2047
|
+
function Ir({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
2045
2048
|
return /* @__PURE__ */ g(t ? b : "button", {
|
|
2046
2049
|
"data-slot": "sidebar-menu-action",
|
|
2047
2050
|
"data-sidebar": "menu-action",
|
|
@@ -2049,7 +2052,7 @@ function Fr({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
|
2049
2052
|
...r
|
|
2050
2053
|
});
|
|
2051
2054
|
}
|
|
2052
|
-
function
|
|
2055
|
+
function Lr({ className: e, ...t }) {
|
|
2053
2056
|
return /* @__PURE__ */ g("div", {
|
|
2054
2057
|
"data-slot": "sidebar-menu-badge",
|
|
2055
2058
|
"data-sidebar": "menu-badge",
|
|
@@ -2057,24 +2060,24 @@ function Ir({ className: e, ...t }) {
|
|
|
2057
2060
|
...t
|
|
2058
2061
|
});
|
|
2059
2062
|
}
|
|
2060
|
-
function
|
|
2063
|
+
function Rr({ className: e, showIcon: t = !1, ...n }) {
|
|
2061
2064
|
let r = s.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
2062
2065
|
return /* @__PURE__ */ _("div", {
|
|
2063
2066
|
"data-slot": "sidebar-menu-skeleton",
|
|
2064
2067
|
"data-sidebar": "menu-skeleton",
|
|
2065
2068
|
className: N("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
2066
2069
|
...n,
|
|
2067
|
-
children: [t && /* @__PURE__ */ g(
|
|
2070
|
+
children: [t && /* @__PURE__ */ g(or, {
|
|
2068
2071
|
className: "size-4 rounded-md",
|
|
2069
2072
|
"data-sidebar": "menu-skeleton-icon"
|
|
2070
|
-
}), /* @__PURE__ */ g(
|
|
2073
|
+
}), /* @__PURE__ */ g(or, {
|
|
2071
2074
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2072
2075
|
"data-sidebar": "menu-skeleton-text",
|
|
2073
2076
|
style: { "--skeleton-width": r }
|
|
2074
2077
|
})]
|
|
2075
2078
|
});
|
|
2076
2079
|
}
|
|
2077
|
-
function
|
|
2080
|
+
function zr({ className: e, ...t }) {
|
|
2078
2081
|
return /* @__PURE__ */ g("ul", {
|
|
2079
2082
|
"data-slot": "sidebar-menu-sub",
|
|
2080
2083
|
"data-sidebar": "menu-sub",
|
|
@@ -2082,7 +2085,7 @@ function Rr({ className: e, ...t }) {
|
|
|
2082
2085
|
...t
|
|
2083
2086
|
});
|
|
2084
2087
|
}
|
|
2085
|
-
function
|
|
2088
|
+
function Br({ className: e, ...t }) {
|
|
2086
2089
|
return /* @__PURE__ */ g("li", {
|
|
2087
2090
|
"data-slot": "sidebar-menu-sub-item",
|
|
2088
2091
|
"data-sidebar": "menu-sub-item",
|
|
@@ -2090,7 +2093,7 @@ function zr({ className: e, ...t }) {
|
|
|
2090
2093
|
...t
|
|
2091
2094
|
});
|
|
2092
2095
|
}
|
|
2093
|
-
function
|
|
2096
|
+
function Vr({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
2094
2097
|
return /* @__PURE__ */ g(e ? b : "a", {
|
|
2095
2098
|
"data-slot": "sidebar-menu-sub-button",
|
|
2096
2099
|
"data-sidebar": "menu-sub-button",
|
|
@@ -2102,21 +2105,21 @@ function Br({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, .
|
|
|
2102
2105
|
}
|
|
2103
2106
|
//#endregion
|
|
2104
2107
|
//#region src/context/theme-provider.tsx
|
|
2105
|
-
var
|
|
2106
|
-
defaultTheme:
|
|
2108
|
+
var Hr = "system", Ur = c({
|
|
2109
|
+
defaultTheme: Hr,
|
|
2107
2110
|
resolvedTheme: "light",
|
|
2108
|
-
theme:
|
|
2111
|
+
theme: Hr,
|
|
2109
2112
|
setTheme: () => null,
|
|
2110
2113
|
resetTheme: () => null
|
|
2111
|
-
}),
|
|
2112
|
-
let e = l(
|
|
2114
|
+
}), Wr = () => {
|
|
2115
|
+
let e = l(Ur);
|
|
2113
2116
|
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
2114
2117
|
return e;
|
|
2115
2118
|
};
|
|
2116
2119
|
//#endregion
|
|
2117
2120
|
//#region src/components/ui/sonner.tsx
|
|
2118
|
-
function
|
|
2119
|
-
let { theme: t = "system" } =
|
|
2121
|
+
function Gr({ ...e }) {
|
|
2122
|
+
let { theme: t = "system" } = Wr();
|
|
2120
2123
|
return /* @__PURE__ */ g(r, {
|
|
2121
2124
|
theme: t,
|
|
2122
2125
|
className: "toaster group [&_div[data-content]]:w-full",
|
|
@@ -2137,7 +2140,7 @@ function Wr({ ...e }) {
|
|
|
2137
2140
|
}
|
|
2138
2141
|
//#endregion
|
|
2139
2142
|
//#region src/components/ui/switch.tsx
|
|
2140
|
-
function
|
|
2143
|
+
function Kr({ className: e, ...t }) {
|
|
2141
2144
|
return /* @__PURE__ */ g(De.Root, {
|
|
2142
2145
|
"data-slot": "switch",
|
|
2143
2146
|
className: N("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
@@ -2150,7 +2153,7 @@ function Gr({ className: e, ...t }) {
|
|
|
2150
2153
|
}
|
|
2151
2154
|
//#endregion
|
|
2152
2155
|
//#region src/components/ui/table.tsx
|
|
2153
|
-
function
|
|
2156
|
+
function qr({ className: e, noWrapper: t, ...n }) {
|
|
2154
2157
|
let r = /* @__PURE__ */ g("table", {
|
|
2155
2158
|
"data-slot": "table",
|
|
2156
2159
|
className: N("w-full caption-bottom text-sm", e),
|
|
@@ -2162,49 +2165,49 @@ function Kr({ className: e, noWrapper: t, ...n }) {
|
|
|
2162
2165
|
children: r
|
|
2163
2166
|
});
|
|
2164
2167
|
}
|
|
2165
|
-
function
|
|
2168
|
+
function Jr({ className: e, ...t }) {
|
|
2166
2169
|
return /* @__PURE__ */ g("thead", {
|
|
2167
2170
|
"data-slot": "table-header",
|
|
2168
2171
|
className: N("[&_tr]:border-b", e),
|
|
2169
2172
|
...t
|
|
2170
2173
|
});
|
|
2171
2174
|
}
|
|
2172
|
-
function
|
|
2175
|
+
function Yr({ className: e, ...t }) {
|
|
2173
2176
|
return /* @__PURE__ */ g("tbody", {
|
|
2174
2177
|
"data-slot": "table-body",
|
|
2175
2178
|
className: N("[&_tr:last-child]:border-0", e),
|
|
2176
2179
|
...t
|
|
2177
2180
|
});
|
|
2178
2181
|
}
|
|
2179
|
-
function
|
|
2182
|
+
function Xr({ className: e, ...t }) {
|
|
2180
2183
|
return /* @__PURE__ */ g("tfoot", {
|
|
2181
2184
|
"data-slot": "table-footer",
|
|
2182
2185
|
className: N("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
2183
2186
|
...t
|
|
2184
2187
|
});
|
|
2185
2188
|
}
|
|
2186
|
-
function
|
|
2189
|
+
function Zr({ className: e, ...t }) {
|
|
2187
2190
|
return /* @__PURE__ */ g("tr", {
|
|
2188
2191
|
"data-slot": "table-row",
|
|
2189
2192
|
className: N("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
2190
2193
|
...t
|
|
2191
2194
|
});
|
|
2192
2195
|
}
|
|
2193
|
-
function
|
|
2196
|
+
function Qr({ className: e, ...t }) {
|
|
2194
2197
|
return /* @__PURE__ */ g("th", {
|
|
2195
2198
|
"data-slot": "table-head",
|
|
2196
2199
|
className: N("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2197
2200
|
...t
|
|
2198
2201
|
});
|
|
2199
2202
|
}
|
|
2200
|
-
function
|
|
2203
|
+
function $r({ className: e, ...t }) {
|
|
2201
2204
|
return /* @__PURE__ */ g("td", {
|
|
2202
2205
|
"data-slot": "table-cell",
|
|
2203
2206
|
className: N("p-2 align-middle whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2204
2207
|
...t
|
|
2205
2208
|
});
|
|
2206
2209
|
}
|
|
2207
|
-
function
|
|
2210
|
+
function ei({ className: e, ...t }) {
|
|
2208
2211
|
return /* @__PURE__ */ g("caption", {
|
|
2209
2212
|
"data-slot": "table-caption",
|
|
2210
2213
|
className: N("text-muted-foreground mt-4 text-sm", e),
|
|
@@ -2213,28 +2216,28 @@ function $r({ className: e, ...t }) {
|
|
|
2213
2216
|
}
|
|
2214
2217
|
//#endregion
|
|
2215
2218
|
//#region src/components/ui/tabs.tsx
|
|
2216
|
-
function
|
|
2219
|
+
function ti({ className: e, ...t }) {
|
|
2217
2220
|
return /* @__PURE__ */ g(M.Root, {
|
|
2218
2221
|
"data-slot": "tabs",
|
|
2219
2222
|
className: N("flex flex-col gap-2", e),
|
|
2220
2223
|
...t
|
|
2221
2224
|
});
|
|
2222
2225
|
}
|
|
2223
|
-
function
|
|
2226
|
+
function ni({ className: e, ...t }) {
|
|
2224
2227
|
return /* @__PURE__ */ g(M.List, {
|
|
2225
2228
|
"data-slot": "tabs-list",
|
|
2226
2229
|
className: N("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
|
|
2227
2230
|
...t
|
|
2228
2231
|
});
|
|
2229
2232
|
}
|
|
2230
|
-
function
|
|
2233
|
+
function ri({ className: e, ...t }) {
|
|
2231
2234
|
return /* @__PURE__ */ g(M.Trigger, {
|
|
2232
2235
|
"data-slot": "tabs-trigger",
|
|
2233
2236
|
className: N("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2234
2237
|
...t
|
|
2235
2238
|
});
|
|
2236
2239
|
}
|
|
2237
|
-
function
|
|
2240
|
+
function ii({ className: e, ...t }) {
|
|
2238
2241
|
return /* @__PURE__ */ g(M.Content, {
|
|
2239
2242
|
"data-slot": "tabs-content",
|
|
2240
2243
|
className: N("flex-1 outline-none", e),
|
|
@@ -2243,7 +2246,7 @@ function ri({ className: e, ...t }) {
|
|
|
2243
2246
|
}
|
|
2244
2247
|
//#endregion
|
|
2245
2248
|
//#region src/components/ui/textarea.tsx
|
|
2246
|
-
function
|
|
2249
|
+
function ai({ className: e, ...t }) {
|
|
2247
2250
|
return /* @__PURE__ */ g("textarea", {
|
|
2248
2251
|
"data-slot": "textarea",
|
|
2249
2252
|
className: N("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
|
|
@@ -2251,6 +2254,6 @@ function ii({ className: e, ...t }) {
|
|
|
2251
2254
|
});
|
|
2252
2255
|
}
|
|
2253
2256
|
//#endregion
|
|
2254
|
-
export {
|
|
2257
|
+
export { tt as Accordion, it as AccordionContent, nt as AccordionItem, rt as AccordionTrigger, ot as Alert, ct as AlertDescription, lt as AlertDialog, vt as AlertDialogAction, yt as AlertDialogCancel, pt as AlertDialogContent, _t as AlertDialogDescription, ht as AlertDialogFooter, mt as AlertDialogHeader, ft as AlertDialogOverlay, dt as AlertDialogPortal, gt as AlertDialogTitle, ut as AlertDialogTrigger, st as AlertTitle, bt as Avatar, St as AvatarFallback, xt as AvatarImage, wt as Badge, z as Button, Tt as Calendar, Et as CalendarDayButton, Dt as Card, jt as CardAction, Mt as CardContent, At as CardDescription, Nt as CardFooter, Ot as CardHeader, kt as CardTitle, Pt as Checkbox, Ft as Collapsible, Lt as CollapsibleContent, It as CollapsibleTrigger, B as Command, Jt as CommandDialog, U as CommandEmpty, W as CommandGroup, V as CommandInput, G as CommandItem, H as CommandList, Yt as CommandSeparator, Xt as CommandShortcut, Rt as Dialog, Vt as DialogClose, Ut as DialogContent, qt as DialogDescription, Gt as DialogFooter, Wt as DialogHeader, Ht as DialogOverlay, Bt as DialogPortal, Kt as DialogTitle, zt as DialogTrigger, Zt as DropdownMenu, rn as DropdownMenuCheckboxItem, en as DropdownMenuContent, tn as DropdownMenuGroup, nn as DropdownMenuItem, sn as DropdownMenuLabel, Qt as DropdownMenuPortal, an as DropdownMenuRadioGroup, on as DropdownMenuRadioItem, cn as DropdownMenuSeparator, ln as DropdownMenuShortcut, un as DropdownMenuSub, fn as DropdownMenuSubContent, dn as DropdownMenuSubTrigger, $t as DropdownMenuTrigger, pn as Form, yn as FormControl, bn as FormDescription, hn as FormField, _n as FormItem, vn as FormLabel, xn as FormMessage, Sn as ImageUpload, J as Input, Cn as InputOTP, wn as InputOTPGroup, En as InputOTPSeparator, Tn as InputOTPSlot, K as Label, On as MultiSelect, An as PhoneInput, Y as Popover, Dn as PopoverAnchor, Z as PopoverContent, X as PopoverTrigger, Pn as Progress, Fn as RadioGroup, In as RadioGroupItem, Ne as SPANISH_SYMBOLS, Q as ScrollArea, kn as ScrollBar, Ln as Select, Vn as SelectContent, Rn as SelectGroup, Un as SelectItem, Hn as SelectLabel, Kn as SelectScrollDownButton, Gn as SelectScrollUpButton, Wn as SelectSeparator, Bn as SelectTrigger, zn as SelectValue, qn as Separator, Jn as Sheet, Xn as SheetClose, $n as SheetContent, rr as SheetDescription, tr as SheetFooter, er as SheetHeader, nr as SheetTitle, Yn as SheetTrigger, yr as Sidebar, Dr as SidebarContent, Tr as SidebarFooter, Or as SidebarGroup, Ar as SidebarGroupAction, jr as SidebarGroupContent, kr as SidebarGroupLabel, wr as SidebarHeader, Cr as SidebarInput, Sr as SidebarInset, Mr as SidebarMenu, Ir as SidebarMenuAction, Lr as SidebarMenuBadge, Fr as SidebarMenuButton, Nr as SidebarMenuItem, Rr as SidebarMenuSkeleton, zr as SidebarMenuSub, Vr as SidebarMenuSubButton, Br as SidebarMenuSubItem, vr as SidebarProvider, xr as SidebarRail, Er as SidebarSeparator, br as SidebarTrigger, or as Skeleton, Kr as Switch, qr as Table, Yr as TableBody, ei as TableCaption, $r as TableCell, Xr as TableFooter, Qr as TableHead, Jr as TableHeader, Zr as TableRow, ti as Tabs, ii as TabsContent, ni as TabsList, ri as TabsTrigger, ai as Textarea, Gr as Toaster, cr as Tooltip, ur as TooltipContent, sr as TooltipProvider, lr as TooltipTrigger, L as api, Ct as badgeVariants, R as buttonVariants, N as cn, Le as fmtCurrency, Pe as formatCurrency, Ge as generateBadgeStyles, Re as getAllTimezones, qe as getCookie, Ve as getCountries, Fe as getCurrencySymbol, Ae as getImageUrl, Me as getPageNumbers, ke as getStorageUrl, et as handleServerError, Ze as notificationManager, Xe as playNotificationSound, $e as pushService, Ye as removeCookie, We as resolveColorCss, Ue as resolveColorHex, Je as setCookie, je as sleep, q as useFormField, Ie as useFormatCurrency, $ as useSidebar };
|
|
2255
2258
|
|
|
2256
2259
|
//# sourceMappingURL=index.js.map
|