@asteby/metacore-starter-core 145.0.0 → 147.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/command.d.ts +1 -18
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/multi-select.d.ts +2 -17
- package/dist/components/ui/multi-select.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +671 -852
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4,56 +4,54 @@ import { create as n } from "zustand";
|
|
|
4
4
|
import { toast as r } from "sonner";
|
|
5
5
|
import i, { AxiosError as a } from "axios";
|
|
6
6
|
import * as o from "react";
|
|
7
|
-
import { Fragment as s, createContext as c, useContext as l, useEffect as u, useRef as ee, useState as
|
|
8
|
-
import * as
|
|
9
|
-
import {
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { cva as
|
|
12
|
-
import * as
|
|
13
|
-
import { Slot as
|
|
14
|
-
import * as
|
|
15
|
-
import { DayPicker as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import { Command as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import { Controller as
|
|
22
|
-
import * as
|
|
23
|
-
import { OTPInput as
|
|
24
|
-
import * as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
import * as
|
|
30
|
-
import * as
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import * as M from "@radix-ui/react-tabs";
|
|
36
|
-
import { useAddonLayout as Ae, useAddonLayoutControl as je } from "@asteby/metacore-runtime-react";
|
|
7
|
+
import { Fragment as s, createContext as c, useContext as l, useEffect as u, useRef as ee, useState as d } from "react";
|
|
8
|
+
import * as f from "@radix-ui/react-accordion";
|
|
9
|
+
import { CheckIcon as p, ChevronDown as m, ChevronDownIcon as h, ChevronLeftIcon as g, ChevronRightIcon as te, ChevronUpIcon as ne, ChevronsUpDown as re, CircleIcon as ie, Image as ae, Loader2 as oe, MinusIcon as se, PanelLeftIcon as ce, X as le, XIcon as _ } from "lucide-react";
|
|
10
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
11
|
+
import { cva as x } from "class-variance-authority";
|
|
12
|
+
import * as S from "@radix-ui/react-alert-dialog";
|
|
13
|
+
import { Slot as C } from "@radix-ui/react-slot";
|
|
14
|
+
import * as w from "@radix-ui/react-avatar";
|
|
15
|
+
import { DayPicker as ue, getDefaultClassNames as de } from "react-day-picker";
|
|
16
|
+
import * as fe from "@radix-ui/react-checkbox";
|
|
17
|
+
import * as T from "@radix-ui/react-collapsible";
|
|
18
|
+
import { Command as pe, CommandDialog as me, CommandEmpty as he, CommandGroup as ge, CommandInput as _e, CommandItem as ve, CommandList as ye, CommandSeparator as be, CommandShortcut as xe, MultiSelect as Se, Popover as Ce, PopoverAnchor as we, PopoverContent as Te, PopoverTrigger as Ee, Toaster as De } from "@asteby/metacore-ui/primitives";
|
|
19
|
+
import * as E from "@radix-ui/react-dialog";
|
|
20
|
+
import * as D from "@radix-ui/react-dropdown-menu";
|
|
21
|
+
import { Controller as Oe, FormProvider as ke, useFormContext as Ae, useFormState as je } from "react-hook-form";
|
|
22
|
+
import * as Me from "@radix-ui/react-label";
|
|
23
|
+
import { OTPInput as Ne, OTPInputContext as Pe } from "input-otp";
|
|
24
|
+
import * as O from "react-phone-number-input";
|
|
25
|
+
import Fe from "react-phone-number-input/flags";
|
|
26
|
+
import * as k from "@radix-ui/react-scroll-area";
|
|
27
|
+
import * as A from "@radix-ui/react-progress";
|
|
28
|
+
import * as j from "@radix-ui/react-radio-group";
|
|
29
|
+
import * as M from "@radix-ui/react-select";
|
|
30
|
+
import * as Ie from "@radix-ui/react-separator";
|
|
31
|
+
import * as N from "@radix-ui/react-tooltip";
|
|
32
|
+
import * as Le from "@radix-ui/react-switch";
|
|
33
|
+
import * as P from "@radix-ui/react-tabs";
|
|
34
|
+
import { useAddonLayout as Re, useAddonLayoutControl as ze } from "@asteby/metacore-runtime-react";
|
|
37
35
|
//#region src/lib/utils.ts
|
|
38
|
-
function
|
|
36
|
+
function F(...n) {
|
|
39
37
|
return t(e(n));
|
|
40
38
|
}
|
|
41
|
-
function
|
|
39
|
+
function Be() {
|
|
42
40
|
return (globalThis.__METACORE_BACKEND_URL__ || "http://localhost:8080").replace(/\/api\/?$/, "").replace(/\/+$/, "");
|
|
43
41
|
}
|
|
44
|
-
function
|
|
42
|
+
function Ve(e, t) {
|
|
45
43
|
if (!e) return "";
|
|
46
44
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
47
|
-
let n =
|
|
45
|
+
let n = Be();
|
|
48
46
|
return e.startsWith("/storage/") ? `${n}${e}` : `${n}/storage/${t}/${e}`;
|
|
49
47
|
}
|
|
50
|
-
function
|
|
51
|
-
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${
|
|
48
|
+
function He(e) {
|
|
49
|
+
return e ? e.startsWith("http://") || e.startsWith("https://") ? e : `${Be()}${e.startsWith("/") ? e : `/${e}`}` : "";
|
|
52
50
|
}
|
|
53
|
-
function
|
|
51
|
+
function Ue(e = 1e3) {
|
|
54
52
|
return new Promise((t) => setTimeout(t, e));
|
|
55
53
|
}
|
|
56
|
-
function
|
|
54
|
+
function We(e, t) {
|
|
57
55
|
let n = [];
|
|
58
56
|
if (t <= 5) for (let e = 1; e <= t; e++) n.push(e);
|
|
59
57
|
else if (n.push(1), e <= 3) {
|
|
@@ -71,11 +69,11 @@ function Ie(e, t) {
|
|
|
71
69
|
}
|
|
72
70
|
//#endregion
|
|
73
71
|
//#region src/stores/auth-store.ts
|
|
74
|
-
var
|
|
75
|
-
let t = localStorage.getItem(
|
|
72
|
+
var I = "auth_token", L = "auth_user", R = n()((e) => {
|
|
73
|
+
let t = localStorage.getItem(I) || "", n = localStorage.getItem(L);
|
|
76
74
|
return { auth: {
|
|
77
75
|
user: n ? JSON.parse(n) : null,
|
|
78
|
-
setUser: (t) => e((e) => (t ? localStorage.setItem(
|
|
76
|
+
setUser: (t) => e((e) => (t ? localStorage.setItem(L, JSON.stringify(t)) : localStorage.removeItem(L), {
|
|
79
77
|
...e,
|
|
80
78
|
auth: {
|
|
81
79
|
...e.auth,
|
|
@@ -83,14 +81,14 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
83
81
|
}
|
|
84
82
|
})),
|
|
85
83
|
accessToken: t,
|
|
86
|
-
setAccessToken: (t) => e((e) => (localStorage.setItem(
|
|
84
|
+
setAccessToken: (t) => e((e) => (localStorage.setItem(I, t), {
|
|
87
85
|
...e,
|
|
88
86
|
auth: {
|
|
89
87
|
...e.auth,
|
|
90
88
|
accessToken: t
|
|
91
89
|
}
|
|
92
90
|
})),
|
|
93
|
-
resetAccessToken: () => e((e) => (localStorage.removeItem(
|
|
91
|
+
resetAccessToken: () => e((e) => (localStorage.removeItem(I), localStorage.removeItem(L), {
|
|
94
92
|
...e,
|
|
95
93
|
auth: {
|
|
96
94
|
...e.auth,
|
|
@@ -98,7 +96,7 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
98
96
|
user: null
|
|
99
97
|
}
|
|
100
98
|
})),
|
|
101
|
-
reset: () => e((e) => (localStorage.removeItem(
|
|
99
|
+
reset: () => e((e) => (localStorage.removeItem(I), localStorage.removeItem(L), {
|
|
102
100
|
...e,
|
|
103
101
|
auth: {
|
|
104
102
|
...e.auth,
|
|
@@ -107,7 +105,7 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
107
105
|
}
|
|
108
106
|
}))
|
|
109
107
|
} };
|
|
110
|
-
}),
|
|
108
|
+
}), Ge = {
|
|
111
109
|
PEN: "S/",
|
|
112
110
|
VES: "Bs.",
|
|
113
111
|
BOB: "Bs.",
|
|
@@ -127,7 +125,7 @@ var P = "auth_token", F = "auth_user", I = n()((e) => {
|
|
|
127
125
|
EUR: "€",
|
|
128
126
|
USD: "$"
|
|
129
127
|
};
|
|
130
|
-
function
|
|
128
|
+
function z(e, t = "USD", n = "es") {
|
|
131
129
|
try {
|
|
132
130
|
return new Intl.NumberFormat(n, {
|
|
133
131
|
style: "currency",
|
|
@@ -137,8 +135,8 @@ function Re(e, t = "USD", n = "es") {
|
|
|
137
135
|
return `${t} ${e}`;
|
|
138
136
|
}
|
|
139
137
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
138
|
+
function Ke(e) {
|
|
139
|
+
return Ge[e] || (typeof Intl < "u" ? new Intl.NumberFormat("en-US", {
|
|
142
140
|
style: "currency",
|
|
143
141
|
currency: e,
|
|
144
142
|
currencyDisplay: "narrowSymbol"
|
|
@@ -146,28 +144,28 @@ function ze(e) {
|
|
|
146
144
|
}
|
|
147
145
|
//#endregion
|
|
148
146
|
//#region src/lib/format.ts
|
|
149
|
-
function
|
|
150
|
-
let e =
|
|
151
|
-
return (t) =>
|
|
147
|
+
function qe() {
|
|
148
|
+
let e = R((e) => e.auth.user?.currency_code) || "USD";
|
|
149
|
+
return (t) => z(t, e);
|
|
152
150
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
151
|
+
function Je(e) {
|
|
152
|
+
return z(e, R.getState().auth.user?.currency_code || "USD");
|
|
155
153
|
}
|
|
156
154
|
//#endregion
|
|
157
155
|
//#region src/lib/date-utils.ts
|
|
158
|
-
function
|
|
156
|
+
function Ye() {
|
|
159
157
|
try {
|
|
160
158
|
return Intl.DateTimeFormat().resolvedOptions().timeZone || "";
|
|
161
159
|
} catch {
|
|
162
160
|
return "";
|
|
163
161
|
}
|
|
164
162
|
}
|
|
165
|
-
function
|
|
166
|
-
let e =
|
|
163
|
+
function Xe() {
|
|
164
|
+
let e = Ye();
|
|
167
165
|
return e && e !== "UTC" ? [e, "UTC"] : ["UTC"];
|
|
168
166
|
}
|
|
169
|
-
function
|
|
170
|
-
let e = typeof Intl < "u" && Intl.supportedValuesOf ? Intl.supportedValuesOf("timeZone") :
|
|
167
|
+
function Ze() {
|
|
168
|
+
let e = typeof Intl < "u" && Intl.supportedValuesOf ? Intl.supportedValuesOf("timeZone") : Xe(), t = /* @__PURE__ */ new Date();
|
|
171
169
|
return e.map((e) => {
|
|
172
170
|
try {
|
|
173
171
|
let n = new Intl.DateTimeFormat("en-US", {
|
|
@@ -199,21 +197,21 @@ function We() {
|
|
|
199
197
|
}
|
|
200
198
|
//#endregion
|
|
201
199
|
//#region src/lib/countries.ts
|
|
202
|
-
var
|
|
203
|
-
function
|
|
200
|
+
var Qe = /* @__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(".");
|
|
201
|
+
function $e(e) {
|
|
204
202
|
return String.fromCodePoint(...e.toUpperCase().split("").map((e) => 127462 + e.charCodeAt(0) - 65));
|
|
205
203
|
}
|
|
206
|
-
function
|
|
204
|
+
function et(e) {
|
|
207
205
|
let t = e || navigator.language || "es", n = new Intl.DisplayNames([t], { type: "region" });
|
|
208
|
-
return
|
|
206
|
+
return Qe.map((e) => ({
|
|
209
207
|
code: e,
|
|
210
208
|
name: n.of(e) || e,
|
|
211
|
-
flag:
|
|
209
|
+
flag: $e(e)
|
|
212
210
|
})).sort((e, n) => e.name.localeCompare(n.name, t));
|
|
213
211
|
}
|
|
214
212
|
//#endregion
|
|
215
213
|
//#region src/lib/option-colors.ts
|
|
216
|
-
var
|
|
214
|
+
var tt = {
|
|
217
215
|
red: "ef4444",
|
|
218
216
|
orange: "f97316",
|
|
219
217
|
amber: "f59e0b",
|
|
@@ -236,11 +234,11 @@ var Je = {
|
|
|
236
234
|
zinc: "71717a",
|
|
237
235
|
neutral: "737373",
|
|
238
236
|
stone: "78716c"
|
|
239
|
-
},
|
|
240
|
-
let t =
|
|
237
|
+
}, B = (e) => e ? tt[e.toLowerCase()] || e.replace("#", "") : "", nt = (e) => {
|
|
238
|
+
let t = B(e);
|
|
241
239
|
return t ? `#${t}` : "";
|
|
242
|
-
},
|
|
243
|
-
let n =
|
|
240
|
+
}, rt = (e, { isDark: t }) => {
|
|
241
|
+
let n = B(e);
|
|
244
242
|
if (n.length < 6) return {};
|
|
245
243
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16);
|
|
246
244
|
return t ? {
|
|
@@ -254,21 +252,21 @@ var Je = {
|
|
|
254
252
|
border: `1px solid rgba(${r}, ${i}, ${a}, 0.25)`,
|
|
255
253
|
fontWeight: 500
|
|
256
254
|
};
|
|
257
|
-
},
|
|
258
|
-
function
|
|
255
|
+
}, it = 604800;
|
|
256
|
+
function at(e) {
|
|
259
257
|
if (typeof document > "u") return;
|
|
260
258
|
let t = `; ${document.cookie}`.split(`; ${e}=`);
|
|
261
259
|
if (t.length === 2) return t.pop()?.split(";").shift();
|
|
262
260
|
}
|
|
263
|
-
function
|
|
261
|
+
function ot(e, t, n = it) {
|
|
264
262
|
typeof document < "u" && (document.cookie = `${e}=${t}; path=/; max-age=${n}`);
|
|
265
263
|
}
|
|
266
|
-
function
|
|
264
|
+
function st(e) {
|
|
267
265
|
typeof document < "u" && (document.cookie = `${e}=; path=/; max-age=0`);
|
|
268
266
|
}
|
|
269
267
|
//#endregion
|
|
270
268
|
//#region src/lib/sound.ts
|
|
271
|
-
function
|
|
269
|
+
function ct() {
|
|
272
270
|
try {
|
|
273
271
|
let e = window.AudioContext || window.webkitAudioContext;
|
|
274
272
|
if (!e) return;
|
|
@@ -278,7 +276,7 @@ function nt() {
|
|
|
278
276
|
console.error("Error playing notification sound:", e);
|
|
279
277
|
}
|
|
280
278
|
}
|
|
281
|
-
var
|
|
279
|
+
var lt = new class {
|
|
282
280
|
permission = "default";
|
|
283
281
|
constructor() {
|
|
284
282
|
"Notification" in window && (this.permission = Notification.permission);
|
|
@@ -339,27 +337,27 @@ var rt = new class {
|
|
|
339
337
|
getPermission() {
|
|
340
338
|
return this.permission;
|
|
341
339
|
}
|
|
342
|
-
}(),
|
|
340
|
+
}(), ut = { language: "es" }, V = i.create({
|
|
343
341
|
baseURL: "/api",
|
|
344
342
|
headers: { "Content-Type": "application/json" }
|
|
345
343
|
});
|
|
346
|
-
|
|
344
|
+
V.interceptors.request.use((e) => {
|
|
347
345
|
let t = localStorage.getItem("auth_token");
|
|
348
|
-
t && (e.headers.Authorization = `Bearer ${t}`), e.headers["Accept-Language"] =
|
|
346
|
+
t && (e.headers.Authorization = `Bearer ${t}`), e.headers["Accept-Language"] = ut.language || "es";
|
|
349
347
|
try {
|
|
350
348
|
let t = JSON.parse(localStorage.getItem("current_branch") || "{}");
|
|
351
349
|
t?.id && (e.headers["X-Branch-ID"] = t.id);
|
|
352
350
|
} catch {}
|
|
353
351
|
return e.data instanceof FormData && delete e.headers["Content-Type"], e;
|
|
354
|
-
}),
|
|
352
|
+
}), V.interceptors.response.use((e) => e, (e) => {
|
|
355
353
|
let t = e.response?.status, n = e.response?.data, r = e.config?.method?.toUpperCase() + " " + e.config?.url, i = n?.message || n?.error || n?.title || e.message;
|
|
356
354
|
if (console.error(`[API Error] ${r} → ${t}: ${i}`, n), t === 401) {
|
|
357
|
-
let { reset: e } =
|
|
355
|
+
let { reset: e } = R.getState().auth;
|
|
358
356
|
e(), window.location.href = "/sign-in";
|
|
359
357
|
}
|
|
360
358
|
return Promise.reject(e);
|
|
361
359
|
});
|
|
362
|
-
var
|
|
360
|
+
var dt = new class {
|
|
363
361
|
vapidPublicKey = null;
|
|
364
362
|
subscription = null;
|
|
365
363
|
isSupported = !1;
|
|
@@ -372,7 +370,7 @@ var at = new class {
|
|
|
372
370
|
return;
|
|
373
371
|
}
|
|
374
372
|
try {
|
|
375
|
-
let e = await
|
|
373
|
+
let e = await V.get("/push/public-key");
|
|
376
374
|
e.data?.publicKey && (this.vapidPublicKey = e.data.publicKey, console.log("✅ VAPID public key loaded"));
|
|
377
375
|
let t = await navigator.serviceWorker.ready;
|
|
378
376
|
this.subscription = await t.pushManager.getSubscription(), this.subscription && console.log("✅ Existing push subscription found");
|
|
@@ -391,7 +389,7 @@ var at = new class {
|
|
|
391
389
|
});
|
|
392
390
|
this.subscription = e;
|
|
393
391
|
let t = e.toJSON().keys;
|
|
394
|
-
return await
|
|
392
|
+
return await V.post("/push/subscribe", {
|
|
395
393
|
endpoint: e.endpoint,
|
|
396
394
|
p256dh: t.p256dh,
|
|
397
395
|
auth: t.auth,
|
|
@@ -404,14 +402,14 @@ var at = new class {
|
|
|
404
402
|
async unsubscribe() {
|
|
405
403
|
if (!this.subscription) return !0;
|
|
406
404
|
try {
|
|
407
|
-
return await this.subscription.unsubscribe(), await
|
|
405
|
+
return await this.subscription.unsubscribe(), await V.post("/push/unsubscribe", { endpoint: this.subscription.endpoint }), this.subscription = null, r.success("Notificaciones push desactivadas"), !0;
|
|
408
406
|
} catch (e) {
|
|
409
407
|
return console.error("Failed to unsubscribe:", e), r.error("Error al desactivar notificaciones"), !1;
|
|
410
408
|
}
|
|
411
409
|
}
|
|
412
410
|
async testNotification() {
|
|
413
411
|
try {
|
|
414
|
-
await
|
|
412
|
+
await V.post("/push/test"), r.success("Notificación de prueba enviada");
|
|
415
413
|
} catch (e) {
|
|
416
414
|
console.error("Failed to send test notification:", e), r.error("Error al enviar notificación de prueba");
|
|
417
415
|
}
|
|
@@ -434,73 +432,73 @@ var at = new class {
|
|
|
434
432
|
}();
|
|
435
433
|
//#endregion
|
|
436
434
|
//#region src/lib/handle-server-error.ts
|
|
437
|
-
function
|
|
435
|
+
function ft(e) {
|
|
438
436
|
console.log(e);
|
|
439
437
|
let t = "Something went wrong!";
|
|
440
438
|
e && typeof e == "object" && "status" in e && Number(e.status) === 204 && (t = "Content not found."), e instanceof a && (t = e.response?.data?.message || e.response?.data?.title || e.message), r.error(t);
|
|
441
439
|
}
|
|
442
440
|
//#endregion
|
|
443
441
|
//#region src/components/ui/accordion.tsx
|
|
444
|
-
var
|
|
442
|
+
var pt = f.Root, mt = o.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(f.Item, {
|
|
445
443
|
ref: n,
|
|
446
|
-
className:
|
|
444
|
+
className: F("border-b", e),
|
|
447
445
|
...t
|
|
448
446
|
}));
|
|
449
|
-
|
|
450
|
-
var
|
|
447
|
+
mt.displayName = "AccordionItem";
|
|
448
|
+
var ht = o.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ y(f.Header, {
|
|
451
449
|
className: "flex",
|
|
452
|
-
children: /* @__PURE__ */
|
|
450
|
+
children: /* @__PURE__ */ b(f.Trigger, {
|
|
453
451
|
ref: r,
|
|
454
|
-
className:
|
|
452
|
+
className: F("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
|
|
455
453
|
...n,
|
|
456
|
-
children: [t, /* @__PURE__ */
|
|
454
|
+
children: [t, /* @__PURE__ */ y(m, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
457
455
|
})
|
|
458
456
|
}));
|
|
459
|
-
|
|
460
|
-
var
|
|
457
|
+
ht.displayName = f.Trigger.displayName;
|
|
458
|
+
var gt = o.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ y(f.Content, {
|
|
461
459
|
ref: r,
|
|
462
460
|
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
463
461
|
...n,
|
|
464
|
-
children: /* @__PURE__ */
|
|
465
|
-
className:
|
|
462
|
+
children: /* @__PURE__ */ y("div", {
|
|
463
|
+
className: F("pb-4 pt-0", e),
|
|
466
464
|
children: t
|
|
467
465
|
})
|
|
468
466
|
}));
|
|
469
|
-
|
|
467
|
+
gt.displayName = f.Content.displayName;
|
|
470
468
|
//#endregion
|
|
471
469
|
//#region src/components/ui/alert.tsx
|
|
472
|
-
var
|
|
470
|
+
var _t = x("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", {
|
|
473
471
|
variants: { variant: {
|
|
474
472
|
default: "bg-card text-card-foreground",
|
|
475
473
|
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
476
474
|
} },
|
|
477
475
|
defaultVariants: { variant: "default" }
|
|
478
476
|
});
|
|
479
|
-
function
|
|
480
|
-
return /* @__PURE__ */
|
|
477
|
+
function vt({ className: e, variant: t, ...n }) {
|
|
478
|
+
return /* @__PURE__ */ y("div", {
|
|
481
479
|
"data-slot": "alert",
|
|
482
480
|
role: "alert",
|
|
483
|
-
className:
|
|
481
|
+
className: F(_t({ variant: t }), e),
|
|
484
482
|
...n
|
|
485
483
|
});
|
|
486
484
|
}
|
|
487
|
-
function
|
|
488
|
-
return /* @__PURE__ */
|
|
485
|
+
function yt({ className: e, ...t }) {
|
|
486
|
+
return /* @__PURE__ */ y("div", {
|
|
489
487
|
"data-slot": "alert-title",
|
|
490
|
-
className:
|
|
488
|
+
className: F("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", e),
|
|
491
489
|
...t
|
|
492
490
|
});
|
|
493
491
|
}
|
|
494
|
-
function
|
|
495
|
-
return /* @__PURE__ */
|
|
492
|
+
function bt({ className: e, ...t }) {
|
|
493
|
+
return /* @__PURE__ */ y("div", {
|
|
496
494
|
"data-slot": "alert-description",
|
|
497
|
-
className:
|
|
495
|
+
className: F("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", e),
|
|
498
496
|
...t
|
|
499
497
|
});
|
|
500
498
|
}
|
|
501
499
|
//#endregion
|
|
502
500
|
//#region src/components/ui/button.tsx
|
|
503
|
-
var
|
|
501
|
+
var H = x("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-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", {
|
|
504
502
|
variants: {
|
|
505
503
|
variant: {
|
|
506
504
|
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
@@ -522,10 +520,10 @@ var R = v("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
522
520
|
size: "default"
|
|
523
521
|
}
|
|
524
522
|
});
|
|
525
|
-
function
|
|
526
|
-
return /* @__PURE__ */
|
|
523
|
+
function U({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
|
|
524
|
+
return /* @__PURE__ */ y(r ? C : "button", {
|
|
527
525
|
"data-slot": "button",
|
|
528
|
-
className:
|
|
526
|
+
className: F(H({
|
|
529
527
|
variant: t,
|
|
530
528
|
size: n,
|
|
531
529
|
className: e
|
|
@@ -535,104 +533,104 @@ function z({ className: e, variant: t, size: n, asChild: r = !1, ...i }) {
|
|
|
535
533
|
}
|
|
536
534
|
//#endregion
|
|
537
535
|
//#region src/components/ui/alert-dialog.tsx
|
|
538
|
-
function
|
|
539
|
-
return /* @__PURE__ */
|
|
536
|
+
function xt({ ...e }) {
|
|
537
|
+
return /* @__PURE__ */ y(S.Root, {
|
|
540
538
|
"data-slot": "alert-dialog",
|
|
541
539
|
...e
|
|
542
540
|
});
|
|
543
541
|
}
|
|
544
|
-
function
|
|
545
|
-
return /* @__PURE__ */
|
|
542
|
+
function St({ ...e }) {
|
|
543
|
+
return /* @__PURE__ */ y(S.Trigger, {
|
|
546
544
|
"data-slot": "alert-dialog-trigger",
|
|
547
545
|
...e
|
|
548
546
|
});
|
|
549
547
|
}
|
|
550
|
-
function
|
|
551
|
-
return /* @__PURE__ */
|
|
548
|
+
function Ct({ ...e }) {
|
|
549
|
+
return /* @__PURE__ */ y(S.Portal, {
|
|
552
550
|
"data-slot": "alert-dialog-portal",
|
|
553
551
|
...e
|
|
554
552
|
});
|
|
555
553
|
}
|
|
556
|
-
function
|
|
557
|
-
return /* @__PURE__ */
|
|
554
|
+
function wt({ className: e, ...t }) {
|
|
555
|
+
return /* @__PURE__ */ y(S.Overlay, {
|
|
558
556
|
"data-slot": "alert-dialog-overlay",
|
|
559
|
-
className:
|
|
557
|
+
className: F("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),
|
|
560
558
|
...t
|
|
561
559
|
});
|
|
562
560
|
}
|
|
563
|
-
function
|
|
564
|
-
return /* @__PURE__ */
|
|
561
|
+
function Tt({ className: e, ...t }) {
|
|
562
|
+
return /* @__PURE__ */ b(Ct, { children: [/* @__PURE__ */ y(wt, {}), /* @__PURE__ */ y(S.Content, {
|
|
565
563
|
"data-slot": "alert-dialog-content",
|
|
566
|
-
className:
|
|
564
|
+
className: F("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),
|
|
567
565
|
...t
|
|
568
566
|
})] });
|
|
569
567
|
}
|
|
570
|
-
function
|
|
571
|
-
return /* @__PURE__ */
|
|
568
|
+
function Et({ className: e, ...t }) {
|
|
569
|
+
return /* @__PURE__ */ y("div", {
|
|
572
570
|
"data-slot": "alert-dialog-header",
|
|
573
|
-
className:
|
|
571
|
+
className: F("flex flex-col gap-2 text-center sm:text-start", e),
|
|
574
572
|
...t
|
|
575
573
|
});
|
|
576
574
|
}
|
|
577
|
-
function
|
|
578
|
-
return /* @__PURE__ */
|
|
575
|
+
function Dt({ className: e, ...t }) {
|
|
576
|
+
return /* @__PURE__ */ y("div", {
|
|
579
577
|
"data-slot": "alert-dialog-footer",
|
|
580
|
-
className:
|
|
578
|
+
className: F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
581
579
|
...t
|
|
582
580
|
});
|
|
583
581
|
}
|
|
584
|
-
function
|
|
585
|
-
return /* @__PURE__ */
|
|
582
|
+
function Ot({ className: e, ...t }) {
|
|
583
|
+
return /* @__PURE__ */ y(S.Title, {
|
|
586
584
|
"data-slot": "alert-dialog-title",
|
|
587
|
-
className:
|
|
585
|
+
className: F("text-lg font-semibold", e),
|
|
588
586
|
...t
|
|
589
587
|
});
|
|
590
588
|
}
|
|
591
|
-
function
|
|
592
|
-
return /* @__PURE__ */
|
|
589
|
+
function kt({ className: e, ...t }) {
|
|
590
|
+
return /* @__PURE__ */ y(S.Description, {
|
|
593
591
|
"data-slot": "alert-dialog-description",
|
|
594
|
-
className:
|
|
592
|
+
className: F("text-muted-foreground text-sm", e),
|
|
595
593
|
...t
|
|
596
594
|
});
|
|
597
595
|
}
|
|
598
|
-
function
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
className:
|
|
596
|
+
function At({ className: e, ...t }) {
|
|
597
|
+
return /* @__PURE__ */ y(S.Action, {
|
|
598
|
+
className: F(H(), e),
|
|
601
599
|
...t
|
|
602
600
|
});
|
|
603
601
|
}
|
|
604
|
-
function
|
|
605
|
-
return /* @__PURE__ */
|
|
606
|
-
className:
|
|
602
|
+
function jt({ className: e, ...t }) {
|
|
603
|
+
return /* @__PURE__ */ y(S.Cancel, {
|
|
604
|
+
className: F(H({ variant: "outline" }), e),
|
|
607
605
|
...t
|
|
608
606
|
});
|
|
609
607
|
}
|
|
610
608
|
//#endregion
|
|
611
609
|
//#region src/components/ui/avatar.tsx
|
|
612
|
-
function
|
|
613
|
-
return /* @__PURE__ */
|
|
610
|
+
function Mt({ className: e, ...t }) {
|
|
611
|
+
return /* @__PURE__ */ y(w.Root, {
|
|
614
612
|
"data-slot": "avatar",
|
|
615
|
-
className:
|
|
613
|
+
className: F("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
|
|
616
614
|
...t
|
|
617
615
|
});
|
|
618
616
|
}
|
|
619
|
-
function
|
|
620
|
-
return /* @__PURE__ */
|
|
617
|
+
function Nt({ className: e, ...t }) {
|
|
618
|
+
return /* @__PURE__ */ y(w.Image, {
|
|
621
619
|
"data-slot": "avatar-image",
|
|
622
|
-
className:
|
|
620
|
+
className: F("aspect-square size-full object-cover", e),
|
|
623
621
|
...t
|
|
624
622
|
});
|
|
625
623
|
}
|
|
626
|
-
function
|
|
627
|
-
return /* @__PURE__ */
|
|
624
|
+
function Pt({ className: e, ...t }) {
|
|
625
|
+
return /* @__PURE__ */ y(w.Fallback, {
|
|
628
626
|
"data-slot": "avatar-fallback",
|
|
629
|
-
className:
|
|
627
|
+
className: F("bg-muted flex size-full items-center justify-center rounded-full", e),
|
|
630
628
|
...t
|
|
631
629
|
});
|
|
632
630
|
}
|
|
633
631
|
//#endregion
|
|
634
632
|
//#region src/components/ui/badge.tsx
|
|
635
|
-
var
|
|
633
|
+
var Ft = x("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", {
|
|
636
634
|
variants: { variant: {
|
|
637
635
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
638
636
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -641,68 +639,68 @@ var kt = v("inline-flex items-center justify-center rounded-md border px-2 py-0.
|
|
|
641
639
|
} },
|
|
642
640
|
defaultVariants: { variant: "default" }
|
|
643
641
|
});
|
|
644
|
-
function
|
|
645
|
-
return /* @__PURE__ */
|
|
642
|
+
function It({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
643
|
+
return /* @__PURE__ */ y(n ? C : "span", {
|
|
646
644
|
"data-slot": "badge",
|
|
647
|
-
className:
|
|
645
|
+
className: F(Ft({ variant: t }), e),
|
|
648
646
|
...r
|
|
649
647
|
});
|
|
650
648
|
}
|
|
651
649
|
//#endregion
|
|
652
650
|
//#region src/components/ui/calendar.tsx
|
|
653
|
-
function
|
|
654
|
-
let c =
|
|
655
|
-
return /* @__PURE__ */
|
|
651
|
+
function Lt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
|
|
652
|
+
let c = de();
|
|
653
|
+
return /* @__PURE__ */ y(ue, {
|
|
656
654
|
showOutsideDays: n,
|
|
657
|
-
className:
|
|
655
|
+
className: F("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
658
656
|
captionLayout: r,
|
|
659
657
|
formatters: {
|
|
660
658
|
formatMonthDropdown: (e) => e.toLocaleString("default", { month: "short" }),
|
|
661
659
|
...a
|
|
662
660
|
},
|
|
663
661
|
classNames: {
|
|
664
|
-
root:
|
|
665
|
-
months:
|
|
666
|
-
month:
|
|
667
|
-
nav:
|
|
668
|
-
button_previous:
|
|
669
|
-
button_next:
|
|
670
|
-
month_caption:
|
|
671
|
-
dropdowns:
|
|
672
|
-
dropdown_root:
|
|
673
|
-
dropdown:
|
|
674
|
-
caption_label:
|
|
662
|
+
root: F("w-fit", c.root),
|
|
663
|
+
months: F("flex gap-4 flex-col md:flex-row relative", c.months),
|
|
664
|
+
month: F("flex flex-col w-full gap-4", c.month),
|
|
665
|
+
nav: F("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", c.nav),
|
|
666
|
+
button_previous: F(H({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", c.button_previous),
|
|
667
|
+
button_next: F(H({ variant: i }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", c.button_next),
|
|
668
|
+
month_caption: F("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", c.month_caption),
|
|
669
|
+
dropdowns: F("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", c.dropdowns),
|
|
670
|
+
dropdown_root: F("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", c.dropdown_root),
|
|
671
|
+
dropdown: F("absolute bg-popover inset-0 opacity-0", c.dropdown),
|
|
672
|
+
caption_label: F("select-none font-medium", r === "label" ? "text-sm" : "rounded-md ps-2 pe-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", c.caption_label),
|
|
675
673
|
month_grid: "w-full border-collapse",
|
|
676
|
-
weekdays:
|
|
677
|
-
weekday:
|
|
678
|
-
week:
|
|
679
|
-
week_number_header:
|
|
680
|
-
week_number:
|
|
681
|
-
day:
|
|
682
|
-
range_start:
|
|
683
|
-
range_middle:
|
|
684
|
-
range_end:
|
|
685
|
-
today:
|
|
686
|
-
outside:
|
|
687
|
-
disabled:
|
|
688
|
-
hidden:
|
|
674
|
+
weekdays: F("flex", c.weekdays),
|
|
675
|
+
weekday: F("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", c.weekday),
|
|
676
|
+
week: F("flex w-full mt-2", c.week),
|
|
677
|
+
week_number_header: F("select-none w-(--cell-size)", c.week_number_header),
|
|
678
|
+
week_number: F("text-[0.8rem] select-none text-muted-foreground", c.week_number),
|
|
679
|
+
day: F("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", c.day),
|
|
680
|
+
range_start: F("rounded-l-md bg-accent", c.range_start),
|
|
681
|
+
range_middle: F("rounded-none", c.range_middle),
|
|
682
|
+
range_end: F("rounded-r-md bg-accent", c.range_end),
|
|
683
|
+
today: F("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", c.today),
|
|
684
|
+
outside: F("text-muted-foreground aria-selected:text-muted-foreground", c.outside),
|
|
685
|
+
disabled: F("text-muted-foreground opacity-50", c.disabled),
|
|
686
|
+
hidden: F("invisible", c.hidden),
|
|
689
687
|
...t
|
|
690
688
|
},
|
|
691
689
|
components: {
|
|
692
|
-
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */
|
|
690
|
+
Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ y("div", {
|
|
693
691
|
"data-slot": "calendar",
|
|
694
692
|
ref: t,
|
|
695
|
-
className:
|
|
693
|
+
className: F(e),
|
|
696
694
|
...n
|
|
697
695
|
}),
|
|
698
|
-
Chevron: ({ className: e, orientation: t, ...n }) =>
|
|
699
|
-
className:
|
|
696
|
+
Chevron: ({ className: e, orientation: t, ...n }) => y(t === "left" ? g : t === "right" ? te : h, {
|
|
697
|
+
className: F("size-4", e),
|
|
700
698
|
...n
|
|
701
699
|
}),
|
|
702
|
-
DayButton:
|
|
703
|
-
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */
|
|
700
|
+
DayButton: W,
|
|
701
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ y("td", {
|
|
704
702
|
...t,
|
|
705
|
-
children: /* @__PURE__ */
|
|
703
|
+
children: /* @__PURE__ */ y("div", {
|
|
706
704
|
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
707
705
|
children: e
|
|
708
706
|
})
|
|
@@ -712,11 +710,11 @@ function jt({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
712
710
|
...s
|
|
713
711
|
});
|
|
714
712
|
}
|
|
715
|
-
function
|
|
716
|
-
let i =
|
|
713
|
+
function W({ className: e, day: t, modifiers: n, ...r }) {
|
|
714
|
+
let i = de(), a = o.useRef(null);
|
|
717
715
|
return o.useEffect(() => {
|
|
718
716
|
n.focused && a.current?.focus();
|
|
719
|
-
}, [n.focused]), /* @__PURE__ */
|
|
717
|
+
}, [n.focused]), /* @__PURE__ */ y(U, {
|
|
720
718
|
ref: a,
|
|
721
719
|
variant: "ghost",
|
|
722
720
|
size: "icon",
|
|
@@ -725,139 +723,139 @@ function Mt({ className: e, day: t, modifiers: n, ...r }) {
|
|
|
725
723
|
"data-range-start": n.range_start,
|
|
726
724
|
"data-range-end": n.range_end,
|
|
727
725
|
"data-range-middle": n.range_middle,
|
|
728
|
-
className:
|
|
726
|
+
className: F("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", i.day, e),
|
|
729
727
|
...r
|
|
730
728
|
});
|
|
731
729
|
}
|
|
732
730
|
//#endregion
|
|
733
731
|
//#region src/components/ui/card.tsx
|
|
734
|
-
function
|
|
735
|
-
return /* @__PURE__ */
|
|
732
|
+
function Rt({ className: e, ...t }) {
|
|
733
|
+
return /* @__PURE__ */ y("div", {
|
|
736
734
|
"data-slot": "card",
|
|
737
|
-
className:
|
|
735
|
+
className: F("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
|
|
738
736
|
...t
|
|
739
737
|
});
|
|
740
738
|
}
|
|
741
|
-
function
|
|
742
|
-
return /* @__PURE__ */
|
|
739
|
+
function zt({ className: e, ...t }) {
|
|
740
|
+
return /* @__PURE__ */ y("div", {
|
|
743
741
|
"data-slot": "card-header",
|
|
744
|
-
className:
|
|
742
|
+
className: F("@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),
|
|
745
743
|
...t
|
|
746
744
|
});
|
|
747
745
|
}
|
|
748
|
-
function
|
|
749
|
-
return /* @__PURE__ */
|
|
746
|
+
function Bt({ className: e, ...t }) {
|
|
747
|
+
return /* @__PURE__ */ y("div", {
|
|
750
748
|
"data-slot": "card-title",
|
|
751
|
-
className:
|
|
749
|
+
className: F("leading-none font-semibold", e),
|
|
752
750
|
...t
|
|
753
751
|
});
|
|
754
752
|
}
|
|
755
|
-
function
|
|
756
|
-
return /* @__PURE__ */
|
|
753
|
+
function Vt({ className: e, ...t }) {
|
|
754
|
+
return /* @__PURE__ */ y("div", {
|
|
757
755
|
"data-slot": "card-description",
|
|
758
|
-
className:
|
|
756
|
+
className: F("text-muted-foreground text-sm", e),
|
|
759
757
|
...t
|
|
760
758
|
});
|
|
761
759
|
}
|
|
762
|
-
function
|
|
763
|
-
return /* @__PURE__ */
|
|
760
|
+
function Ht({ className: e, ...t }) {
|
|
761
|
+
return /* @__PURE__ */ y("div", {
|
|
764
762
|
"data-slot": "card-action",
|
|
765
|
-
className:
|
|
763
|
+
className: F("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
766
764
|
...t
|
|
767
765
|
});
|
|
768
766
|
}
|
|
769
|
-
function
|
|
770
|
-
return /* @__PURE__ */
|
|
767
|
+
function Ut({ className: e, ...t }) {
|
|
768
|
+
return /* @__PURE__ */ y("div", {
|
|
771
769
|
"data-slot": "card-content",
|
|
772
|
-
className:
|
|
770
|
+
className: F("px-6", e),
|
|
773
771
|
...t
|
|
774
772
|
});
|
|
775
773
|
}
|
|
776
|
-
function
|
|
777
|
-
return /* @__PURE__ */
|
|
774
|
+
function Wt({ className: e, ...t }) {
|
|
775
|
+
return /* @__PURE__ */ y("div", {
|
|
778
776
|
"data-slot": "card-footer",
|
|
779
|
-
className:
|
|
777
|
+
className: F("flex items-center px-6 [.border-t]:pt-6", e),
|
|
780
778
|
...t
|
|
781
779
|
});
|
|
782
780
|
}
|
|
783
781
|
//#endregion
|
|
784
782
|
//#region src/components/ui/checkbox.tsx
|
|
785
|
-
function
|
|
786
|
-
return /* @__PURE__ */
|
|
783
|
+
function Gt({ className: e, ...t }) {
|
|
784
|
+
return /* @__PURE__ */ y(fe.Root, {
|
|
787
785
|
"data-slot": "checkbox",
|
|
788
|
-
className:
|
|
786
|
+
className: F("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),
|
|
789
787
|
...t,
|
|
790
|
-
children: /* @__PURE__ */
|
|
788
|
+
children: /* @__PURE__ */ y(fe.Indicator, {
|
|
791
789
|
"data-slot": "checkbox-indicator",
|
|
792
790
|
className: "flex items-center justify-center text-current transition-none",
|
|
793
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ y(p, { className: "size-3.5" })
|
|
794
792
|
})
|
|
795
793
|
});
|
|
796
794
|
}
|
|
797
795
|
//#endregion
|
|
798
796
|
//#region src/components/ui/collapsible.tsx
|
|
799
|
-
function
|
|
800
|
-
return /* @__PURE__ */
|
|
797
|
+
function Kt({ ...e }) {
|
|
798
|
+
return /* @__PURE__ */ y(T.Root, {
|
|
801
799
|
"data-slot": "collapsible",
|
|
802
800
|
...e
|
|
803
801
|
});
|
|
804
802
|
}
|
|
805
|
-
function
|
|
806
|
-
return /* @__PURE__ */
|
|
803
|
+
function qt({ ...e }) {
|
|
804
|
+
return /* @__PURE__ */ y(T.CollapsibleTrigger, {
|
|
807
805
|
"data-slot": "collapsible-trigger",
|
|
808
806
|
...e
|
|
809
807
|
});
|
|
810
808
|
}
|
|
811
|
-
function
|
|
812
|
-
return /* @__PURE__ */
|
|
809
|
+
function Jt({ ...e }) {
|
|
810
|
+
return /* @__PURE__ */ y(T.CollapsibleContent, {
|
|
813
811
|
"data-slot": "collapsible-content",
|
|
814
812
|
...e
|
|
815
813
|
});
|
|
816
814
|
}
|
|
817
815
|
//#endregion
|
|
818
816
|
//#region src/components/ui/dialog.tsx
|
|
819
|
-
function
|
|
820
|
-
return /* @__PURE__ */
|
|
817
|
+
function Yt({ ...e }) {
|
|
818
|
+
return /* @__PURE__ */ y(E.Root, {
|
|
821
819
|
"data-slot": "dialog",
|
|
822
820
|
...e
|
|
823
821
|
});
|
|
824
822
|
}
|
|
825
|
-
function
|
|
826
|
-
return /* @__PURE__ */
|
|
823
|
+
function Xt({ ...e }) {
|
|
824
|
+
return /* @__PURE__ */ y(E.Trigger, {
|
|
827
825
|
"data-slot": "dialog-trigger",
|
|
828
826
|
...e
|
|
829
827
|
});
|
|
830
828
|
}
|
|
831
|
-
function
|
|
832
|
-
return /* @__PURE__ */
|
|
829
|
+
function Zt({ ...e }) {
|
|
830
|
+
return /* @__PURE__ */ y(E.Portal, {
|
|
833
831
|
"data-slot": "dialog-portal",
|
|
834
832
|
...e
|
|
835
833
|
});
|
|
836
834
|
}
|
|
837
|
-
function
|
|
838
|
-
return /* @__PURE__ */
|
|
835
|
+
function Qt({ ...e }) {
|
|
836
|
+
return /* @__PURE__ */ y(E.Close, {
|
|
839
837
|
"data-slot": "dialog-close",
|
|
840
838
|
...e
|
|
841
839
|
});
|
|
842
840
|
}
|
|
843
|
-
function
|
|
844
|
-
return /* @__PURE__ */
|
|
841
|
+
function $t({ className: e, ...t }) {
|
|
842
|
+
return /* @__PURE__ */ y(E.Overlay, {
|
|
845
843
|
"data-slot": "dialog-overlay",
|
|
846
|
-
className:
|
|
844
|
+
className: F("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),
|
|
847
845
|
...t
|
|
848
846
|
});
|
|
849
847
|
}
|
|
850
|
-
function
|
|
851
|
-
return /* @__PURE__ */
|
|
848
|
+
function en({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
849
|
+
return /* @__PURE__ */ b(Zt, {
|
|
852
850
|
"data-slot": "dialog-portal",
|
|
853
|
-
children: [/* @__PURE__ */
|
|
851
|
+
children: [/* @__PURE__ */ y($t, {}), /* @__PURE__ */ b(E.Content, {
|
|
854
852
|
"data-slot": "dialog-content",
|
|
855
|
-
className:
|
|
853
|
+
className: F("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),
|
|
856
854
|
...r,
|
|
857
|
-
children: [t, n && /* @__PURE__ */
|
|
855
|
+
children: [t, n && /* @__PURE__ */ b(E.Close, {
|
|
858
856
|
"data-slot": "dialog-close",
|
|
859
857
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
860
|
-
children: [/* @__PURE__ */
|
|
858
|
+
children: [/* @__PURE__ */ y(_, {}), /* @__PURE__ */ y("span", {
|
|
861
859
|
className: "sr-only",
|
|
862
860
|
children: "Close"
|
|
863
861
|
})]
|
|
@@ -865,244 +863,166 @@ function Yt({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
865
863
|
})]
|
|
866
864
|
});
|
|
867
865
|
}
|
|
868
|
-
function
|
|
869
|
-
return /* @__PURE__ */
|
|
866
|
+
function tn({ className: e, ...t }) {
|
|
867
|
+
return /* @__PURE__ */ y("div", {
|
|
870
868
|
"data-slot": "dialog-header",
|
|
871
|
-
className:
|
|
869
|
+
className: F("flex flex-col gap-2 text-center sm:text-start", e),
|
|
872
870
|
...t
|
|
873
871
|
});
|
|
874
872
|
}
|
|
875
|
-
function
|
|
876
|
-
return /* @__PURE__ */
|
|
873
|
+
function nn({ className: e, ...t }) {
|
|
874
|
+
return /* @__PURE__ */ y("div", {
|
|
877
875
|
"data-slot": "dialog-footer",
|
|
878
|
-
className:
|
|
876
|
+
className: F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
879
877
|
...t
|
|
880
878
|
});
|
|
881
879
|
}
|
|
882
|
-
function
|
|
883
|
-
return /* @__PURE__ */
|
|
880
|
+
function rn({ className: e, ...t }) {
|
|
881
|
+
return /* @__PURE__ */ y(E.Title, {
|
|
884
882
|
"data-slot": "dialog-title",
|
|
885
|
-
className:
|
|
883
|
+
className: F("text-lg leading-none font-semibold", e),
|
|
886
884
|
...t
|
|
887
885
|
});
|
|
888
886
|
}
|
|
889
|
-
function
|
|
890
|
-
return /* @__PURE__ */
|
|
887
|
+
function an({ className: e, ...t }) {
|
|
888
|
+
return /* @__PURE__ */ y(E.Description, {
|
|
891
889
|
"data-slot": "dialog-description",
|
|
892
|
-
className:
|
|
893
|
-
...t
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
//#endregion
|
|
897
|
-
//#region src/components/ui/command.tsx
|
|
898
|
-
function B({ className: e, ...t }) {
|
|
899
|
-
return /* @__PURE__ */ g(C, {
|
|
900
|
-
"data-slot": "command",
|
|
901
|
-
className: N("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", e),
|
|
902
|
-
...t
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
function en({ title: e = "Command Palette", description: t = "Search for a command to run...", children: n, className: r, showCloseButton: i = !0, ...a }) {
|
|
906
|
-
return /* @__PURE__ */ _(Wt, {
|
|
907
|
-
...a,
|
|
908
|
-
children: [/* @__PURE__ */ _(Xt, {
|
|
909
|
-
className: "sr-only",
|
|
910
|
-
children: [/* @__PURE__ */ g(Qt, { children: e }), /* @__PURE__ */ g($t, { children: t })]
|
|
911
|
-
}), /* @__PURE__ */ g(Yt, {
|
|
912
|
-
className: N("overflow-hidden p-0", r),
|
|
913
|
-
showCloseButton: i,
|
|
914
|
-
children: /* @__PURE__ */ g(B, {
|
|
915
|
-
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
916
|
-
children: n
|
|
917
|
-
})
|
|
918
|
-
})]
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
function V({ className: e, ...t }) {
|
|
922
|
-
return /* @__PURE__ */ _("div", {
|
|
923
|
-
"data-slot": "command-input-wrapper",
|
|
924
|
-
className: "flex h-10 items-center gap-2 border-b px-3",
|
|
925
|
-
children: [/* @__PURE__ */ g(de, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ g(C.Input, {
|
|
926
|
-
"data-slot": "command-input",
|
|
927
|
-
className: N("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
928
|
-
...t
|
|
929
|
-
})]
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
function H({ className: e, ...t }) {
|
|
933
|
-
return /* @__PURE__ */ g(C.List, {
|
|
934
|
-
"data-slot": "command-list",
|
|
935
|
-
className: N("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e),
|
|
936
|
-
...t
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
function U({ ...e }) {
|
|
940
|
-
return /* @__PURE__ */ g(C.Empty, {
|
|
941
|
-
"data-slot": "command-empty",
|
|
942
|
-
className: "py-6 text-center text-sm",
|
|
943
|
-
...e
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
function W({ className: e, ...t }) {
|
|
947
|
-
return /* @__PURE__ */ g(C.Group, {
|
|
948
|
-
"data-slot": "command-group",
|
|
949
|
-
className: N("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", e),
|
|
950
|
-
...t
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
function tn({ className: e, ...t }) {
|
|
954
|
-
return /* @__PURE__ */ g(C.Separator, {
|
|
955
|
-
"data-slot": "command-separator",
|
|
956
|
-
className: N("bg-border -mx-1 h-px", e),
|
|
957
|
-
...t
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
function G({ className: e, ...t }) {
|
|
961
|
-
return /* @__PURE__ */ g(C.Item, {
|
|
962
|
-
"data-slot": "command-item",
|
|
963
|
-
className: N("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
964
|
-
...t
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
function nn({ className: e, ...t }) {
|
|
968
|
-
return /* @__PURE__ */ g("span", {
|
|
969
|
-
"data-slot": "command-shortcut",
|
|
970
|
-
className: N("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
890
|
+
className: F("text-muted-foreground text-sm", e),
|
|
971
891
|
...t
|
|
972
892
|
});
|
|
973
893
|
}
|
|
974
894
|
//#endregion
|
|
975
895
|
//#region src/components/ui/dropdown-menu.tsx
|
|
976
|
-
function
|
|
977
|
-
return /* @__PURE__ */
|
|
896
|
+
function on({ ...e }) {
|
|
897
|
+
return /* @__PURE__ */ y(D.Root, {
|
|
978
898
|
"data-slot": "dropdown-menu",
|
|
979
899
|
...e
|
|
980
900
|
});
|
|
981
901
|
}
|
|
982
|
-
function
|
|
983
|
-
return /* @__PURE__ */
|
|
902
|
+
function sn({ ...e }) {
|
|
903
|
+
return /* @__PURE__ */ y(D.Portal, {
|
|
984
904
|
"data-slot": "dropdown-menu-portal",
|
|
985
905
|
...e
|
|
986
906
|
});
|
|
987
907
|
}
|
|
988
|
-
function
|
|
989
|
-
return /* @__PURE__ */
|
|
908
|
+
function cn({ ...e }) {
|
|
909
|
+
return /* @__PURE__ */ y(D.Trigger, {
|
|
990
910
|
"data-slot": "dropdown-menu-trigger",
|
|
991
911
|
...e
|
|
992
912
|
});
|
|
993
913
|
}
|
|
994
|
-
function
|
|
995
|
-
return /* @__PURE__ */
|
|
914
|
+
function ln({ className: e, sideOffset: t = 4, ...n }) {
|
|
915
|
+
return /* @__PURE__ */ y(D.Portal, { children: /* @__PURE__ */ y(D.Content, {
|
|
996
916
|
"data-slot": "dropdown-menu-content",
|
|
997
917
|
sideOffset: t,
|
|
998
|
-
className:
|
|
918
|
+
className: F("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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e),
|
|
999
919
|
...n
|
|
1000
920
|
}) });
|
|
1001
921
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return /* @__PURE__ */
|
|
922
|
+
function un({ ...e }) {
|
|
923
|
+
return /* @__PURE__ */ y(D.Group, {
|
|
1004
924
|
"data-slot": "dropdown-menu-group",
|
|
1005
925
|
...e
|
|
1006
926
|
});
|
|
1007
927
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return /* @__PURE__ */
|
|
928
|
+
function dn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
929
|
+
return /* @__PURE__ */ y(D.Item, {
|
|
1010
930
|
"data-slot": "dropdown-menu-item",
|
|
1011
931
|
"data-inset": t,
|
|
1012
932
|
"data-variant": n,
|
|
1013
|
-
className:
|
|
933
|
+
className: F("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1014
934
|
...r
|
|
1015
935
|
});
|
|
1016
936
|
}
|
|
1017
|
-
function
|
|
1018
|
-
return /* @__PURE__ */
|
|
937
|
+
function fn({ className: e, children: t, checked: n, ...r }) {
|
|
938
|
+
return /* @__PURE__ */ b(D.CheckboxItem, {
|
|
1019
939
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
1020
|
-
className:
|
|
940
|
+
className: F("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),
|
|
1021
941
|
checked: n,
|
|
1022
942
|
...r,
|
|
1023
|
-
children: [/* @__PURE__ */
|
|
943
|
+
children: [/* @__PURE__ */ y("span", {
|
|
1024
944
|
className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
|
|
1025
|
-
children: /* @__PURE__ */
|
|
945
|
+
children: /* @__PURE__ */ y(D.ItemIndicator, { children: /* @__PURE__ */ y(p, { className: "size-4" }) })
|
|
1026
946
|
}), t]
|
|
1027
947
|
});
|
|
1028
948
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return /* @__PURE__ */
|
|
949
|
+
function pn({ ...e }) {
|
|
950
|
+
return /* @__PURE__ */ y(D.RadioGroup, {
|
|
1031
951
|
"data-slot": "dropdown-menu-radio-group",
|
|
1032
952
|
...e
|
|
1033
953
|
});
|
|
1034
954
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return /* @__PURE__ */
|
|
955
|
+
function mn({ className: e, children: t, ...n }) {
|
|
956
|
+
return /* @__PURE__ */ b(D.RadioItem, {
|
|
1037
957
|
"data-slot": "dropdown-menu-radio-item",
|
|
1038
|
-
className:
|
|
958
|
+
className: F("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),
|
|
1039
959
|
...n,
|
|
1040
|
-
children: [/* @__PURE__ */
|
|
960
|
+
children: [/* @__PURE__ */ y("span", {
|
|
1041
961
|
className: "pointer-events-none absolute start-2 flex size-3.5 items-center justify-center",
|
|
1042
|
-
children: /* @__PURE__ */
|
|
962
|
+
children: /* @__PURE__ */ y(D.ItemIndicator, { children: /* @__PURE__ */ y(ie, { className: "size-2 fill-current" }) })
|
|
1043
963
|
}), t]
|
|
1044
964
|
});
|
|
1045
965
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return /* @__PURE__ */
|
|
966
|
+
function hn({ className: e, inset: t, ...n }) {
|
|
967
|
+
return /* @__PURE__ */ y(D.Label, {
|
|
1048
968
|
"data-slot": "dropdown-menu-label",
|
|
1049
969
|
"data-inset": t,
|
|
1050
|
-
className:
|
|
970
|
+
className: F("px-2 py-1.5 text-sm font-medium data-[inset]:ps-8", e),
|
|
1051
971
|
...n
|
|
1052
972
|
});
|
|
1053
973
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return /* @__PURE__ */
|
|
974
|
+
function gn({ className: e, ...t }) {
|
|
975
|
+
return /* @__PURE__ */ y(D.Separator, {
|
|
1056
976
|
"data-slot": "dropdown-menu-separator",
|
|
1057
|
-
className:
|
|
977
|
+
className: F("bg-border -mx-1 my-1 h-px", e),
|
|
1058
978
|
...t
|
|
1059
979
|
});
|
|
1060
980
|
}
|
|
1061
|
-
function
|
|
1062
|
-
return /* @__PURE__ */
|
|
981
|
+
function _n({ className: e, ...t }) {
|
|
982
|
+
return /* @__PURE__ */ y("span", {
|
|
1063
983
|
"data-slot": "dropdown-menu-shortcut",
|
|
1064
|
-
className:
|
|
984
|
+
className: F("text-muted-foreground ms-auto text-xs tracking-widest", e),
|
|
1065
985
|
...t
|
|
1066
986
|
});
|
|
1067
987
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return /* @__PURE__ */
|
|
988
|
+
function vn({ ...e }) {
|
|
989
|
+
return /* @__PURE__ */ y(D.Sub, {
|
|
1070
990
|
"data-slot": "dropdown-menu-sub",
|
|
1071
991
|
...e
|
|
1072
992
|
});
|
|
1073
993
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return /* @__PURE__ */
|
|
994
|
+
function yn({ className: e, inset: t, children: n, ...r }) {
|
|
995
|
+
return /* @__PURE__ */ b(D.SubTrigger, {
|
|
1076
996
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1077
997
|
"data-inset": t,
|
|
1078
|
-
className:
|
|
998
|
+
className: F("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:ps-8", e),
|
|
1079
999
|
...r,
|
|
1080
|
-
children: [n, /* @__PURE__ */
|
|
1000
|
+
children: [n, /* @__PURE__ */ y(te, { className: "ms-auto size-4" })]
|
|
1081
1001
|
});
|
|
1082
1002
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return /* @__PURE__ */
|
|
1003
|
+
function bn({ className: e, ...t }) {
|
|
1004
|
+
return /* @__PURE__ */ y(D.SubContent, {
|
|
1085
1005
|
"data-slot": "dropdown-menu-sub-content",
|
|
1086
|
-
className:
|
|
1006
|
+
className: F("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),
|
|
1087
1007
|
...t
|
|
1088
1008
|
});
|
|
1089
1009
|
}
|
|
1090
1010
|
//#endregion
|
|
1091
1011
|
//#region src/components/ui/label.tsx
|
|
1092
|
-
function
|
|
1093
|
-
return /* @__PURE__ */
|
|
1012
|
+
function G({ className: e, ...t }) {
|
|
1013
|
+
return /* @__PURE__ */ y(Me.Root, {
|
|
1094
1014
|
"data-slot": "label",
|
|
1095
|
-
className:
|
|
1015
|
+
className: F("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
1096
1016
|
...t
|
|
1097
1017
|
});
|
|
1098
1018
|
}
|
|
1099
1019
|
//#endregion
|
|
1100
1020
|
//#region src/components/ui/form.tsx
|
|
1101
|
-
var
|
|
1021
|
+
var xn = ke, Sn = o.createContext({}), Cn = ({ ...e }) => /* @__PURE__ */ y(Sn.Provider, {
|
|
1102
1022
|
value: { name: e.name },
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1104
|
-
}),
|
|
1105
|
-
let e = o.useContext(
|
|
1023
|
+
children: /* @__PURE__ */ y(Oe, { ...e })
|
|
1024
|
+
}), K = () => {
|
|
1025
|
+
let e = o.useContext(Sn), t = o.useContext(wn), { getFieldState: n } = Ae(), r = je({ name: e.name }), i = n(e.name, r);
|
|
1106
1026
|
if (!e) throw Error("useFormField should be used within <FormField>");
|
|
1107
1027
|
let { id: a } = t;
|
|
1108
1028
|
return {
|
|
@@ -1113,31 +1033,31 @@ var yn = ye, bn = o.createContext({}), xn = ({ ...e }) => /* @__PURE__ */ g(bn.P
|
|
|
1113
1033
|
formMessageId: `${a}-form-item-message`,
|
|
1114
1034
|
...i
|
|
1115
1035
|
};
|
|
1116
|
-
},
|
|
1117
|
-
function
|
|
1036
|
+
}, wn = o.createContext({});
|
|
1037
|
+
function Tn({ className: e, ...t }) {
|
|
1118
1038
|
let n = o.useId();
|
|
1119
|
-
return /* @__PURE__ */
|
|
1039
|
+
return /* @__PURE__ */ y(wn.Provider, {
|
|
1120
1040
|
value: { id: n },
|
|
1121
|
-
children: /* @__PURE__ */
|
|
1041
|
+
children: /* @__PURE__ */ y("div", {
|
|
1122
1042
|
"data-slot": "form-item",
|
|
1123
|
-
className:
|
|
1043
|
+
className: F("grid gap-2", e),
|
|
1124
1044
|
...t
|
|
1125
1045
|
})
|
|
1126
1046
|
});
|
|
1127
1047
|
}
|
|
1128
|
-
function
|
|
1129
|
-
let { error: n, formItemId: r } =
|
|
1130
|
-
return /* @__PURE__ */
|
|
1048
|
+
function En({ className: e, ...t }) {
|
|
1049
|
+
let { error: n, formItemId: r } = K();
|
|
1050
|
+
return /* @__PURE__ */ y(G, {
|
|
1131
1051
|
"data-slot": "form-label",
|
|
1132
1052
|
"data-error": !!n,
|
|
1133
|
-
className:
|
|
1053
|
+
className: F("data-[error=true]:text-destructive", e),
|
|
1134
1054
|
htmlFor: r,
|
|
1135
1055
|
...t
|
|
1136
1056
|
});
|
|
1137
1057
|
}
|
|
1138
|
-
function
|
|
1139
|
-
let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } =
|
|
1140
|
-
return /* @__PURE__ */
|
|
1058
|
+
function Dn({ ...e }) {
|
|
1059
|
+
let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = K();
|
|
1060
|
+
return /* @__PURE__ */ y(C, {
|
|
1141
1061
|
"data-slot": "form-control",
|
|
1142
1062
|
id: n,
|
|
1143
1063
|
"aria-describedby": t ? `${r} ${i}` : `${r}`,
|
|
@@ -1145,33 +1065,33 @@ function Tn({ ...e }) {
|
|
|
1145
1065
|
...e
|
|
1146
1066
|
});
|
|
1147
1067
|
}
|
|
1148
|
-
function
|
|
1149
|
-
let { formDescriptionId: n } =
|
|
1150
|
-
return /* @__PURE__ */
|
|
1068
|
+
function On({ className: e, ...t }) {
|
|
1069
|
+
let { formDescriptionId: n } = K();
|
|
1070
|
+
return /* @__PURE__ */ y("p", {
|
|
1151
1071
|
"data-slot": "form-description",
|
|
1152
1072
|
id: n,
|
|
1153
|
-
className:
|
|
1073
|
+
className: F("text-muted-foreground text-sm", e),
|
|
1154
1074
|
...t
|
|
1155
1075
|
});
|
|
1156
1076
|
}
|
|
1157
|
-
function
|
|
1158
|
-
let { error: n, formMessageId: r } =
|
|
1159
|
-
return i ? /* @__PURE__ */
|
|
1077
|
+
function kn({ className: e, ...t }) {
|
|
1078
|
+
let { error: n, formMessageId: r } = K(), i = n ? String(n?.message ?? "") : t.children;
|
|
1079
|
+
return i ? /* @__PURE__ */ y("p", {
|
|
1160
1080
|
"data-slot": "form-message",
|
|
1161
1081
|
id: r,
|
|
1162
|
-
className:
|
|
1082
|
+
className: F("text-destructive text-sm", e),
|
|
1163
1083
|
...t,
|
|
1164
1084
|
children: i
|
|
1165
1085
|
}) : null;
|
|
1166
1086
|
}
|
|
1167
1087
|
//#endregion
|
|
1168
1088
|
//#region src/components/ui/image-upload.tsx
|
|
1169
|
-
function
|
|
1170
|
-
let s = ee(null), [c, l] =
|
|
1089
|
+
function An({ value: e, onChange: t, label: n = "Imagen", disabled: i, multiple: a = !1, className: o }) {
|
|
1090
|
+
let s = ee(null), [c, l] = d(!1), [f, p] = d([]);
|
|
1171
1091
|
u(() => {
|
|
1172
|
-
|
|
1092
|
+
p(Array.isArray(e) ? e : e ? [e] : []);
|
|
1173
1093
|
}, [e]);
|
|
1174
|
-
let
|
|
1094
|
+
let m = async (e) => {
|
|
1175
1095
|
let t = e.target.files;
|
|
1176
1096
|
if (!t || t.length === 0) return;
|
|
1177
1097
|
let n = [];
|
|
@@ -1187,54 +1107,54 @@ function On({ value: e, onChange: t, label: n = "Imagen", disabled: i, multiple:
|
|
|
1187
1107
|
}
|
|
1188
1108
|
n.push(i);
|
|
1189
1109
|
}
|
|
1190
|
-
n.length > 0 && await
|
|
1191
|
-
},
|
|
1110
|
+
n.length > 0 && await h(n);
|
|
1111
|
+
}, h = async (e) => {
|
|
1192
1112
|
l(!0);
|
|
1193
1113
|
try {
|
|
1194
1114
|
let n = e.map(async (e) => {
|
|
1195
1115
|
let t = new FormData();
|
|
1196
1116
|
t.append("file", e);
|
|
1197
1117
|
try {
|
|
1198
|
-
return (await
|
|
1118
|
+
return (await V.post("/upload", t, { headers: { "Content-Type": "multipart/form-data" } })).data.url;
|
|
1199
1119
|
} catch (e) {
|
|
1200
1120
|
return console.error("Single file upload failed", e), null;
|
|
1201
1121
|
}
|
|
1202
1122
|
}), i = (await Promise.all(n)).filter((e) => e !== null);
|
|
1203
|
-
i.length > 0 && (t(a ? [...
|
|
1123
|
+
i.length > 0 && (t(a ? [...f, ...i] : i[0]), r.success(`${i.length} imagen(es) cargada(s)`));
|
|
1204
1124
|
} catch (e) {
|
|
1205
1125
|
console.error("Upload Error:", e), r.error("Error al subir imágenes");
|
|
1206
1126
|
} finally {
|
|
1207
1127
|
l(!1), s.current && (s.current.value = "");
|
|
1208
1128
|
}
|
|
1209
|
-
},
|
|
1210
|
-
t(a ?
|
|
1129
|
+
}, g = (e) => {
|
|
1130
|
+
t(a ? f.filter((t) => t !== e) : "");
|
|
1211
1131
|
};
|
|
1212
|
-
return /* @__PURE__ */
|
|
1213
|
-
className:
|
|
1132
|
+
return /* @__PURE__ */ b("div", {
|
|
1133
|
+
className: F("space-y-4", o),
|
|
1214
1134
|
children: [
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
|
|
1135
|
+
/* @__PURE__ */ y(G, { children: n }),
|
|
1136
|
+
f.length > 0 && /* @__PURE__ */ y("div", {
|
|
1217
1137
|
className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 mb-4",
|
|
1218
|
-
children:
|
|
1138
|
+
children: f.map((e, t) => /* @__PURE__ */ b("div", {
|
|
1219
1139
|
className: "relative group rounded-lg overflow-hidden border bg-background aspect-square flex items-center justify-center bg-gray-50 dark:bg-gray-800/50",
|
|
1220
|
-
children: [/* @__PURE__ */
|
|
1140
|
+
children: [/* @__PURE__ */ y("img", {
|
|
1221
1141
|
src: e,
|
|
1222
1142
|
alt: `Image ${t + 1}`,
|
|
1223
1143
|
className: "h-full w-full object-contain p-1"
|
|
1224
|
-
}), !i && /* @__PURE__ */
|
|
1144
|
+
}), !i && /* @__PURE__ */ y("div", {
|
|
1225
1145
|
className: "absolute top-1 right-1 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
1226
|
-
children: /* @__PURE__ */
|
|
1146
|
+
children: /* @__PURE__ */ y(U, {
|
|
1227
1147
|
type: "button",
|
|
1228
1148
|
variant: "destructive",
|
|
1229
1149
|
size: "icon",
|
|
1230
1150
|
className: "h-6 w-6 rounded-full",
|
|
1231
|
-
onClick: () =>
|
|
1232
|
-
children: /* @__PURE__ */
|
|
1151
|
+
onClick: () => g(e),
|
|
1152
|
+
children: /* @__PURE__ */ y(le, { className: "h-3 w-3" })
|
|
1233
1153
|
})
|
|
1234
1154
|
})]
|
|
1235
1155
|
}, t))
|
|
1236
1156
|
}),
|
|
1237
|
-
!i && (a ||
|
|
1157
|
+
!i && (a || f.length === 0) && /* @__PURE__ */ b("div", {
|
|
1238
1158
|
className: `
|
|
1239
1159
|
border-2 border-dashed border-muted-foreground/25 rounded-lg
|
|
1240
1160
|
flex flex-col items-center justify-center p-6 gap-2
|
|
@@ -1243,22 +1163,22 @@ function On({ value: e, onChange: t, label: n = "Imagen", disabled: i, multiple:
|
|
|
1243
1163
|
`,
|
|
1244
1164
|
onClick: () => s.current?.click(),
|
|
1245
1165
|
children: [
|
|
1246
|
-
c ? /* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
1166
|
+
c ? /* @__PURE__ */ y(oe, { className: "h-8 w-8 animate-spin text-muted-foreground" }) : /* @__PURE__ */ y(ae, { className: "h-8 w-8 text-muted-foreground" }),
|
|
1167
|
+
/* @__PURE__ */ y("span", {
|
|
1248
1168
|
className: "text-sm text-muted-foreground font-medium",
|
|
1249
1169
|
children: c ? "Subiendo..." : a ? "Click para agregar imágenes" : "Click para subir imagen"
|
|
1250
1170
|
}),
|
|
1251
|
-
/* @__PURE__ */
|
|
1171
|
+
/* @__PURE__ */ y("p", {
|
|
1252
1172
|
className: "text-xs text-muted-foreground/70",
|
|
1253
1173
|
children: "Soporta: JPG, PNG, WEBP (Max 5MB)"
|
|
1254
1174
|
}),
|
|
1255
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ y("input", {
|
|
1256
1176
|
type: "file",
|
|
1257
1177
|
ref: s,
|
|
1258
1178
|
className: "hidden",
|
|
1259
1179
|
accept: "image/*",
|
|
1260
1180
|
multiple: a,
|
|
1261
|
-
onChange:
|
|
1181
|
+
onChange: m,
|
|
1262
1182
|
disabled: i || c
|
|
1263
1183
|
})
|
|
1264
1184
|
]
|
|
@@ -1268,255 +1188,154 @@ function On({ value: e, onChange: t, label: n = "Imagen", disabled: i, multiple:
|
|
|
1268
1188
|
}
|
|
1269
1189
|
//#endregion
|
|
1270
1190
|
//#region src/components/ui/input.tsx
|
|
1271
|
-
function
|
|
1272
|
-
return /* @__PURE__ */
|
|
1191
|
+
function q({ className: e, type: t, ...n }) {
|
|
1192
|
+
return /* @__PURE__ */ y("input", {
|
|
1273
1193
|
type: t,
|
|
1274
1194
|
"data-slot": "input",
|
|
1275
|
-
className:
|
|
1195
|
+
className: F("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "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", e),
|
|
1276
1196
|
...n
|
|
1277
1197
|
});
|
|
1278
1198
|
}
|
|
1279
1199
|
//#endregion
|
|
1280
1200
|
//#region src/components/ui/input-otp.tsx
|
|
1281
|
-
function
|
|
1282
|
-
return /* @__PURE__ */
|
|
1201
|
+
function jn({ className: e, containerClassName: t, ...n }) {
|
|
1202
|
+
return /* @__PURE__ */ y(Ne, {
|
|
1283
1203
|
"data-slot": "input-otp",
|
|
1284
|
-
containerClassName:
|
|
1285
|
-
className:
|
|
1204
|
+
containerClassName: F("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
1205
|
+
className: F("disabled:cursor-not-allowed", e),
|
|
1286
1206
|
...n
|
|
1287
1207
|
});
|
|
1288
1208
|
}
|
|
1289
|
-
function
|
|
1290
|
-
return /* @__PURE__ */
|
|
1209
|
+
function Mn({ className: e, ...t }) {
|
|
1210
|
+
return /* @__PURE__ */ y("div", {
|
|
1291
1211
|
"data-slot": "input-otp-group",
|
|
1292
|
-
className:
|
|
1212
|
+
className: F("flex items-center", e),
|
|
1293
1213
|
...t
|
|
1294
1214
|
});
|
|
1295
1215
|
}
|
|
1296
|
-
function
|
|
1297
|
-
let { char: r, hasFakeCaret: i, isActive: a } = o.useContext(
|
|
1298
|
-
return /* @__PURE__ */
|
|
1216
|
+
function Nn({ index: e, className: t, ...n }) {
|
|
1217
|
+
let { char: r, hasFakeCaret: i, isActive: a } = o.useContext(Pe)?.slots[e] ?? {};
|
|
1218
|
+
return /* @__PURE__ */ b("div", {
|
|
1299
1219
|
"data-slot": "input-otp-slot",
|
|
1300
1220
|
"data-active": a,
|
|
1301
|
-
className:
|
|
1221
|
+
className: F("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", t),
|
|
1302
1222
|
...n,
|
|
1303
|
-
children: [r, i && /* @__PURE__ */
|
|
1223
|
+
children: [r, i && /* @__PURE__ */ y("div", {
|
|
1304
1224
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
1305
|
-
children: /* @__PURE__ */
|
|
1225
|
+
children: /* @__PURE__ */ y("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" })
|
|
1306
1226
|
})]
|
|
1307
1227
|
});
|
|
1308
1228
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return /* @__PURE__ */
|
|
1229
|
+
function Pn({ ...e }) {
|
|
1230
|
+
return /* @__PURE__ */ y("div", {
|
|
1311
1231
|
"data-slot": "input-otp-separator",
|
|
1312
1232
|
role: "separator",
|
|
1313
1233
|
...e,
|
|
1314
|
-
children: /* @__PURE__ */
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
//#endregion
|
|
1318
|
-
//#region src/components/ui/popover.tsx
|
|
1319
|
-
function Y({ ...e }) {
|
|
1320
|
-
return /* @__PURE__ */ g(E.Root, {
|
|
1321
|
-
"data-slot": "popover",
|
|
1322
|
-
...e
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
function X({ ...e }) {
|
|
1326
|
-
return /* @__PURE__ */ g(E.Trigger, {
|
|
1327
|
-
"data-slot": "popover-trigger",
|
|
1328
|
-
...e
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
function Z({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
1332
|
-
return /* @__PURE__ */ g(E.Portal, { children: /* @__PURE__ */ g(E.Content, {
|
|
1333
|
-
"data-slot": "popover-content",
|
|
1334
|
-
align: t,
|
|
1335
|
-
sideOffset: n,
|
|
1336
|
-
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 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", e),
|
|
1337
|
-
...r
|
|
1338
|
-
}) });
|
|
1339
|
-
}
|
|
1340
|
-
function Nn({ ...e }) {
|
|
1341
|
-
return /* @__PURE__ */ g(E.Anchor, {
|
|
1342
|
-
"data-slot": "popover-anchor",
|
|
1343
|
-
...e
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
//#endregion
|
|
1347
|
-
//#region src/components/ui/multi-select.tsx
|
|
1348
|
-
function Pn({ options: e, selected: t, onChange: n, placeholder: r = "Select options...", className: i }) {
|
|
1349
|
-
let [a, s] = o.useState(!1), c = (e) => {
|
|
1350
|
-
n(t.filter((t) => t !== e));
|
|
1351
|
-
};
|
|
1352
|
-
return /* @__PURE__ */ _(Y, {
|
|
1353
|
-
open: a,
|
|
1354
|
-
onOpenChange: s,
|
|
1355
|
-
children: [/* @__PURE__ */ g(X, {
|
|
1356
|
-
asChild: !0,
|
|
1357
|
-
children: /* @__PURE__ */ _("div", {
|
|
1358
|
-
role: "combobox",
|
|
1359
|
-
"aria-expanded": a,
|
|
1360
|
-
className: N("flex w-full justify-between items-center rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer hover:bg-accent hover:text-accent-foreground", "h-auto min-h-10", i),
|
|
1361
|
-
onClick: () => s(!a),
|
|
1362
|
-
children: [/* @__PURE__ */ g("div", {
|
|
1363
|
-
className: "flex flex-wrap gap-1",
|
|
1364
|
-
children: t.length > 0 ? t.map((t) => {
|
|
1365
|
-
let n = e.find((e) => e.value === t);
|
|
1366
|
-
return n ? /* @__PURE__ */ _(At, {
|
|
1367
|
-
variant: "secondary",
|
|
1368
|
-
className: "mr-1 mb-1",
|
|
1369
|
-
onClick: (e) => {
|
|
1370
|
-
e.stopPropagation(), c(t);
|
|
1371
|
-
},
|
|
1372
|
-
children: [
|
|
1373
|
-
n.icon && /* @__PURE__ */ g(n.icon, { className: "mr-1 h-3 w-3" }),
|
|
1374
|
-
n.label,
|
|
1375
|
-
/* @__PURE__ */ g("button", {
|
|
1376
|
-
className: "ml-1 ring-offset-background rounded-full outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
1377
|
-
onKeyDown: (e) => {
|
|
1378
|
-
e.key === "Enter" && c(t);
|
|
1379
|
-
},
|
|
1380
|
-
onMouseDown: (e) => {
|
|
1381
|
-
e.preventDefault(), e.stopPropagation();
|
|
1382
|
-
},
|
|
1383
|
-
onClick: (e) => {
|
|
1384
|
-
e.preventDefault(), e.stopPropagation(), c(t);
|
|
1385
|
-
},
|
|
1386
|
-
children: /* @__PURE__ */ g(fe, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
1387
|
-
})
|
|
1388
|
-
]
|
|
1389
|
-
}, n.value) : null;
|
|
1390
|
-
}) : /* @__PURE__ */ g("span", {
|
|
1391
|
-
className: "text-muted-foreground font-normal",
|
|
1392
|
-
children: r
|
|
1393
|
-
})
|
|
1394
|
-
}), /* @__PURE__ */ g(ae, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
1395
|
-
})
|
|
1396
|
-
}), /* @__PURE__ */ g(Z, {
|
|
1397
|
-
className: "w-full p-0",
|
|
1398
|
-
children: /* @__PURE__ */ _(B, { children: [
|
|
1399
|
-
/* @__PURE__ */ g(V, { placeholder: "Search..." }),
|
|
1400
|
-
/* @__PURE__ */ g(U, { children: "No item found." }),
|
|
1401
|
-
/* @__PURE__ */ g(H, { children: /* @__PURE__ */ g(W, {
|
|
1402
|
-
className: "max-h-64 overflow-auto",
|
|
1403
|
-
children: e.map((e) => /* @__PURE__ */ _(G, {
|
|
1404
|
-
onSelect: () => {
|
|
1405
|
-
t.includes(e.value) ? n(t.filter((t) => t !== e.value)) : n([...t, e.value]), s(!0);
|
|
1406
|
-
},
|
|
1407
|
-
children: [
|
|
1408
|
-
/* @__PURE__ */ g(f, { className: N("mr-2 h-4 w-4", t.includes(e.value) ? "opacity-100" : "opacity-0") }),
|
|
1409
|
-
e.icon && /* @__PURE__ */ g(e.icon, { className: "mr-2 h-4 w-4" }),
|
|
1410
|
-
e.label
|
|
1411
|
-
]
|
|
1412
|
-
}, e.value))
|
|
1413
|
-
}) })
|
|
1414
|
-
] })
|
|
1415
|
-
})]
|
|
1234
|
+
children: /* @__PURE__ */ y(se, {})
|
|
1416
1235
|
});
|
|
1417
1236
|
}
|
|
1418
1237
|
//#endregion
|
|
1419
1238
|
//#region src/components/ui/scroll-area.tsx
|
|
1420
|
-
var
|
|
1239
|
+
var J = o.forwardRef(({ className: e, children: t, orientation: n = "vertical", type: r = "hover", ...i }, a) => /* @__PURE__ */ b(k.Root, {
|
|
1421
1240
|
ref: a,
|
|
1422
1241
|
"data-slot": "scroll-area",
|
|
1423
1242
|
type: r,
|
|
1424
|
-
className:
|
|
1243
|
+
className: F("relative overflow-hidden", e),
|
|
1425
1244
|
...i,
|
|
1426
1245
|
children: [
|
|
1427
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ y(k.Viewport, {
|
|
1428
1247
|
"data-slot": "scroll-area-viewport",
|
|
1429
|
-
className:
|
|
1248
|
+
className: F("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!"),
|
|
1430
1249
|
children: t
|
|
1431
1250
|
}),
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ y(Y, { orientation: n }),
|
|
1252
|
+
/* @__PURE__ */ y(k.Corner, {})
|
|
1434
1253
|
]
|
|
1435
1254
|
}));
|
|
1436
|
-
|
|
1437
|
-
var
|
|
1255
|
+
J.displayName = "ScrollArea";
|
|
1256
|
+
var Y = o.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ y(k.ScrollAreaScrollbar, {
|
|
1438
1257
|
ref: r,
|
|
1439
1258
|
"data-slot": "scroll-area-scrollbar",
|
|
1440
1259
|
orientation: t,
|
|
1441
|
-
className:
|
|
1260
|
+
className: F("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-3 border-l border-l-transparent", t === "horizontal" && "h-3 flex-col border-t border-t-transparent", e),
|
|
1442
1261
|
...n,
|
|
1443
|
-
children: /* @__PURE__ */
|
|
1262
|
+
children: /* @__PURE__ */ y(k.ScrollAreaThumb, {
|
|
1444
1263
|
"data-slot": "scroll-area-thumb",
|
|
1445
1264
|
className: "bg-foreground/35 hover:bg-foreground/50 relative flex-1 rounded-full transition-colors"
|
|
1446
1265
|
})
|
|
1447
1266
|
}));
|
|
1448
|
-
|
|
1267
|
+
Y.displayName = "ScrollBar";
|
|
1449
1268
|
//#endregion
|
|
1450
1269
|
//#region src/components/ui/phone-input.tsx
|
|
1451
|
-
var
|
|
1270
|
+
var Fn = o.forwardRef(({ className: e, onChange: t, ...n }, r) => /* @__PURE__ */ y(O.default, {
|
|
1452
1271
|
ref: r,
|
|
1453
|
-
className:
|
|
1454
|
-
flagComponent:
|
|
1455
|
-
countrySelectComponent:
|
|
1456
|
-
inputComponent:
|
|
1272
|
+
className: F("flex", e),
|
|
1273
|
+
flagComponent: X,
|
|
1274
|
+
countrySelectComponent: Ln,
|
|
1275
|
+
inputComponent: In,
|
|
1457
1276
|
smartCaret: !1,
|
|
1458
1277
|
onChange: (e) => t?.(e || ""),
|
|
1459
1278
|
...n
|
|
1460
1279
|
}));
|
|
1461
|
-
|
|
1462
|
-
var
|
|
1463
|
-
className:
|
|
1280
|
+
Fn.displayName = "PhoneInput";
|
|
1281
|
+
var In = o.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ y(q, {
|
|
1282
|
+
className: F("rounded-e-lg rounded-s-none", e),
|
|
1464
1283
|
...t,
|
|
1465
1284
|
ref: n
|
|
1466
1285
|
}));
|
|
1467
|
-
|
|
1468
|
-
var
|
|
1286
|
+
In.displayName = "InputComponent";
|
|
1287
|
+
var Ln = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
1469
1288
|
let i = o.useCallback((e) => {
|
|
1470
1289
|
n(e);
|
|
1471
1290
|
}, [n]);
|
|
1472
|
-
return /* @__PURE__ */
|
|
1291
|
+
return /* @__PURE__ */ b(Ce, { children: [/* @__PURE__ */ y(Ee, {
|
|
1473
1292
|
asChild: !0,
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1293
|
+
children: /* @__PURE__ */ b(U, {
|
|
1475
1294
|
type: "button",
|
|
1476
1295
|
variant: "outline",
|
|
1477
|
-
className:
|
|
1296
|
+
className: F("flex gap-1 rounded-e-none rounded-s-lg border-r-0 px-3 focus:z-10"),
|
|
1478
1297
|
disabled: e,
|
|
1479
|
-
children: [/* @__PURE__ */
|
|
1298
|
+
children: [/* @__PURE__ */ y(X, {
|
|
1480
1299
|
country: t,
|
|
1481
1300
|
countryName: t
|
|
1482
|
-
}), /* @__PURE__ */
|
|
1301
|
+
}), /* @__PURE__ */ y(re, { className: F("-mr-2 size-4 opacity-50", e ? "hidden" : "opacity-100") })]
|
|
1483
1302
|
})
|
|
1484
|
-
}), /* @__PURE__ */
|
|
1303
|
+
}), /* @__PURE__ */ y(Te, {
|
|
1485
1304
|
className: "w-[300px] p-0",
|
|
1486
|
-
children: /* @__PURE__ */
|
|
1305
|
+
children: /* @__PURE__ */ b(pe, { children: [/* @__PURE__ */ y(_e, { placeholder: "Buscar país..." }), /* @__PURE__ */ y(ye, { children: /* @__PURE__ */ b(J, {
|
|
1487
1306
|
className: "h-72",
|
|
1488
|
-
children: [/* @__PURE__ */
|
|
1307
|
+
children: [/* @__PURE__ */ y(he, { children: "País no encontrado." }), /* @__PURE__ */ y(ge, { children: r.filter((e) => e.value).map((e) => /* @__PURE__ */ b(ve, {
|
|
1489
1308
|
className: "gap-2",
|
|
1490
1309
|
onSelect: () => i(e.value),
|
|
1491
1310
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1311
|
+
/* @__PURE__ */ y(X, {
|
|
1493
1312
|
country: e.value,
|
|
1494
1313
|
countryName: e.label
|
|
1495
1314
|
}),
|
|
1496
|
-
/* @__PURE__ */
|
|
1315
|
+
/* @__PURE__ */ y("span", {
|
|
1497
1316
|
className: "flex-1 text-sm",
|
|
1498
1317
|
children: e.label
|
|
1499
1318
|
}),
|
|
1500
|
-
e.value && /* @__PURE__ */
|
|
1319
|
+
e.value && /* @__PURE__ */ y("span", {
|
|
1501
1320
|
className: "text-sm text-foreground/50",
|
|
1502
|
-
children: `+${
|
|
1321
|
+
children: `+${O.getCountryCallingCode(e.value)}`
|
|
1503
1322
|
}),
|
|
1504
|
-
/* @__PURE__ */
|
|
1323
|
+
/* @__PURE__ */ y(p, { className: F("ml-auto size-4", e.value === t ? "opacity-100" : "opacity-0") })
|
|
1505
1324
|
]
|
|
1506
1325
|
}, e.value)) })]
|
|
1507
1326
|
}) })] })
|
|
1508
1327
|
})] });
|
|
1509
|
-
},
|
|
1510
|
-
let n =
|
|
1511
|
-
return /* @__PURE__ */
|
|
1328
|
+
}, X = ({ country: e, countryName: t }) => {
|
|
1329
|
+
let n = Fe[e];
|
|
1330
|
+
return /* @__PURE__ */ y("span", {
|
|
1512
1331
|
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",
|
|
1513
|
-
children: n && /* @__PURE__ */
|
|
1332
|
+
children: n && /* @__PURE__ */ y(n, { title: t })
|
|
1514
1333
|
});
|
|
1515
|
-
},
|
|
1334
|
+
}, Rn = o.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ y(A.Root, {
|
|
1516
1335
|
ref: r,
|
|
1517
|
-
className:
|
|
1336
|
+
className: F("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
|
|
1518
1337
|
...n,
|
|
1519
|
-
children: /* @__PURE__ */
|
|
1338
|
+
children: /* @__PURE__ */ y(A.Indicator, {
|
|
1520
1339
|
className: "h-full bg-primary transition-transform duration-300 ease-out",
|
|
1521
1340
|
style: {
|
|
1522
1341
|
width: "100%",
|
|
@@ -1524,353 +1343,353 @@ var Rn = ({ disabled: e, value: t, onChange: n, options: r }) => {
|
|
|
1524
1343
|
}
|
|
1525
1344
|
})
|
|
1526
1345
|
}));
|
|
1527
|
-
|
|
1346
|
+
Rn.displayName = A.Root.displayName;
|
|
1528
1347
|
//#endregion
|
|
1529
1348
|
//#region src/components/ui/radio-group.tsx
|
|
1530
|
-
function
|
|
1531
|
-
return /* @__PURE__ */
|
|
1349
|
+
function zn({ className: e, ...t }) {
|
|
1350
|
+
return /* @__PURE__ */ y(j.Root, {
|
|
1532
1351
|
"data-slot": "radio-group",
|
|
1533
|
-
className:
|
|
1352
|
+
className: F("grid gap-3", e),
|
|
1534
1353
|
...t
|
|
1535
1354
|
});
|
|
1536
1355
|
}
|
|
1537
|
-
function
|
|
1538
|
-
return /* @__PURE__ */
|
|
1356
|
+
function Bn({ className: e, ...t }) {
|
|
1357
|
+
return /* @__PURE__ */ y(j.Item, {
|
|
1539
1358
|
"data-slot": "radio-group-item",
|
|
1540
|
-
className:
|
|
1359
|
+
className: F("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),
|
|
1541
1360
|
...t,
|
|
1542
|
-
children: /* @__PURE__ */
|
|
1361
|
+
children: /* @__PURE__ */ y(j.Indicator, {
|
|
1543
1362
|
"data-slot": "radio-group-indicator",
|
|
1544
1363
|
className: "relative flex items-center justify-center",
|
|
1545
|
-
children: /* @__PURE__ */
|
|
1364
|
+
children: /* @__PURE__ */ y(ie, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
1546
1365
|
})
|
|
1547
1366
|
});
|
|
1548
1367
|
}
|
|
1549
1368
|
//#endregion
|
|
1550
1369
|
//#region src/components/ui/select.tsx
|
|
1551
|
-
function
|
|
1552
|
-
return /* @__PURE__ */
|
|
1370
|
+
function Vn({ ...e }) {
|
|
1371
|
+
return /* @__PURE__ */ y(M.Root, {
|
|
1553
1372
|
"data-slot": "select",
|
|
1554
1373
|
...e
|
|
1555
1374
|
});
|
|
1556
1375
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return /* @__PURE__ */
|
|
1376
|
+
function Hn({ ...e }) {
|
|
1377
|
+
return /* @__PURE__ */ y(M.Group, {
|
|
1559
1378
|
"data-slot": "select-group",
|
|
1560
1379
|
...e
|
|
1561
1380
|
});
|
|
1562
1381
|
}
|
|
1563
|
-
function
|
|
1564
|
-
return /* @__PURE__ */
|
|
1382
|
+
function Un({ ...e }) {
|
|
1383
|
+
return /* @__PURE__ */ y(M.Value, {
|
|
1565
1384
|
"data-slot": "select-value",
|
|
1566
1385
|
...e
|
|
1567
1386
|
});
|
|
1568
1387
|
}
|
|
1569
|
-
function
|
|
1570
|
-
return /* @__PURE__ */
|
|
1388
|
+
function Wn({ className: e, size: t = "default", children: n, ...r }) {
|
|
1389
|
+
return /* @__PURE__ */ b(M.Trigger, {
|
|
1571
1390
|
"data-slot": "select-trigger",
|
|
1572
1391
|
"data-size": t,
|
|
1573
|
-
className:
|
|
1392
|
+
className: F("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1574
1393
|
...r,
|
|
1575
|
-
children: [n, /* @__PURE__ */
|
|
1394
|
+
children: [n, /* @__PURE__ */ y(M.Icon, {
|
|
1576
1395
|
asChild: !0,
|
|
1577
|
-
children: /* @__PURE__ */
|
|
1396
|
+
children: /* @__PURE__ */ y(h, { className: "size-4 opacity-50" })
|
|
1578
1397
|
})]
|
|
1579
1398
|
});
|
|
1580
1399
|
}
|
|
1581
|
-
function
|
|
1582
|
-
return /* @__PURE__ */
|
|
1400
|
+
function Gn({ className: e, children: t, position: n = "popper", ...r }) {
|
|
1401
|
+
return /* @__PURE__ */ y(M.Portal, { children: /* @__PURE__ */ b(M.Content, {
|
|
1583
1402
|
"data-slot": "select-content",
|
|
1584
|
-
className:
|
|
1403
|
+
className: F("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),
|
|
1585
1404
|
position: n,
|
|
1586
1405
|
...r,
|
|
1587
1406
|
children: [
|
|
1588
|
-
/* @__PURE__ */
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
className:
|
|
1407
|
+
/* @__PURE__ */ y(Yn, {}),
|
|
1408
|
+
/* @__PURE__ */ y(M.Viewport, {
|
|
1409
|
+
className: F("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
1591
1410
|
children: t
|
|
1592
1411
|
}),
|
|
1593
|
-
/* @__PURE__ */
|
|
1412
|
+
/* @__PURE__ */ y(Xn, {})
|
|
1594
1413
|
]
|
|
1595
1414
|
}) });
|
|
1596
1415
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return /* @__PURE__ */
|
|
1416
|
+
function Kn({ className: e, ...t }) {
|
|
1417
|
+
return /* @__PURE__ */ y(M.Label, {
|
|
1599
1418
|
"data-slot": "select-label",
|
|
1600
|
-
className:
|
|
1419
|
+
className: F("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
1601
1420
|
...t
|
|
1602
1421
|
});
|
|
1603
1422
|
}
|
|
1604
|
-
function
|
|
1605
|
-
return /* @__PURE__ */
|
|
1423
|
+
function qn({ className: e, children: t, ...n }) {
|
|
1424
|
+
return /* @__PURE__ */ b(M.Item, {
|
|
1606
1425
|
"data-slot": "select-item",
|
|
1607
|
-
className:
|
|
1426
|
+
className: F("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),
|
|
1608
1427
|
...n,
|
|
1609
|
-
children: [/* @__PURE__ */
|
|
1428
|
+
children: [/* @__PURE__ */ y("span", {
|
|
1610
1429
|
className: "absolute end-2 flex size-3.5 items-center justify-center",
|
|
1611
|
-
children: /* @__PURE__ */
|
|
1612
|
-
}), /* @__PURE__ */
|
|
1430
|
+
children: /* @__PURE__ */ y(M.ItemIndicator, { children: /* @__PURE__ */ y(p, { className: "size-4" }) })
|
|
1431
|
+
}), /* @__PURE__ */ y(M.ItemText, { children: t })]
|
|
1613
1432
|
});
|
|
1614
1433
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return /* @__PURE__ */
|
|
1434
|
+
function Jn({ className: e, ...t }) {
|
|
1435
|
+
return /* @__PURE__ */ y(M.Separator, {
|
|
1617
1436
|
"data-slot": "select-separator",
|
|
1618
|
-
className:
|
|
1437
|
+
className: F("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
1619
1438
|
...t
|
|
1620
1439
|
});
|
|
1621
1440
|
}
|
|
1622
|
-
function
|
|
1623
|
-
return /* @__PURE__ */
|
|
1441
|
+
function Yn({ className: e, ...t }) {
|
|
1442
|
+
return /* @__PURE__ */ y(M.ScrollUpButton, {
|
|
1624
1443
|
"data-slot": "select-scroll-up-button",
|
|
1625
|
-
className:
|
|
1444
|
+
className: F("flex cursor-default items-center justify-center py-1", e),
|
|
1626
1445
|
...t,
|
|
1627
|
-
children: /* @__PURE__ */
|
|
1446
|
+
children: /* @__PURE__ */ y(ne, { className: "size-4" })
|
|
1628
1447
|
});
|
|
1629
1448
|
}
|
|
1630
|
-
function
|
|
1631
|
-
return /* @__PURE__ */
|
|
1449
|
+
function Xn({ className: e, ...t }) {
|
|
1450
|
+
return /* @__PURE__ */ y(M.ScrollDownButton, {
|
|
1632
1451
|
"data-slot": "select-scroll-down-button",
|
|
1633
|
-
className:
|
|
1452
|
+
className: F("flex cursor-default items-center justify-center py-1", e),
|
|
1634
1453
|
...t,
|
|
1635
|
-
children: /* @__PURE__ */
|
|
1454
|
+
children: /* @__PURE__ */ y(h, { className: "size-4" })
|
|
1636
1455
|
});
|
|
1637
1456
|
}
|
|
1638
1457
|
//#endregion
|
|
1639
1458
|
//#region src/components/ui/separator.tsx
|
|
1640
|
-
function
|
|
1641
|
-
return /* @__PURE__ */
|
|
1459
|
+
function Zn({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }) {
|
|
1460
|
+
return /* @__PURE__ */ y(Ie.Root, {
|
|
1642
1461
|
"data-slot": "separator",
|
|
1643
1462
|
decorative: n,
|
|
1644
1463
|
orientation: t,
|
|
1645
|
-
className:
|
|
1464
|
+
className: F("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px", e),
|
|
1646
1465
|
...r
|
|
1647
1466
|
});
|
|
1648
1467
|
}
|
|
1649
1468
|
//#endregion
|
|
1650
1469
|
//#region src/components/ui/sheet.tsx
|
|
1651
|
-
function
|
|
1652
|
-
return /* @__PURE__ */
|
|
1470
|
+
function Qn({ ...e }) {
|
|
1471
|
+
return /* @__PURE__ */ y(E.Root, {
|
|
1653
1472
|
"data-slot": "sheet",
|
|
1654
1473
|
...e
|
|
1655
1474
|
});
|
|
1656
1475
|
}
|
|
1657
|
-
function
|
|
1658
|
-
return /* @__PURE__ */
|
|
1476
|
+
function $n({ ...e }) {
|
|
1477
|
+
return /* @__PURE__ */ y(E.Trigger, {
|
|
1659
1478
|
"data-slot": "sheet-trigger",
|
|
1660
1479
|
...e
|
|
1661
1480
|
});
|
|
1662
1481
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return /* @__PURE__ */
|
|
1482
|
+
function er({ ...e }) {
|
|
1483
|
+
return /* @__PURE__ */ y(E.Close, {
|
|
1665
1484
|
"data-slot": "sheet-close",
|
|
1666
1485
|
...e
|
|
1667
1486
|
});
|
|
1668
1487
|
}
|
|
1669
|
-
function
|
|
1670
|
-
return /* @__PURE__ */
|
|
1488
|
+
function tr({ ...e }) {
|
|
1489
|
+
return /* @__PURE__ */ y(E.Portal, {
|
|
1671
1490
|
"data-slot": "sheet-portal",
|
|
1672
1491
|
...e
|
|
1673
1492
|
});
|
|
1674
1493
|
}
|
|
1675
|
-
function
|
|
1676
|
-
return /* @__PURE__ */
|
|
1494
|
+
function nr({ className: e, ...t }) {
|
|
1495
|
+
return /* @__PURE__ */ y(E.Overlay, {
|
|
1677
1496
|
"data-slot": "sheet-overlay",
|
|
1678
|
-
className:
|
|
1497
|
+
className: F("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),
|
|
1679
1498
|
...t
|
|
1680
1499
|
});
|
|
1681
1500
|
}
|
|
1682
|
-
function
|
|
1683
|
-
return /* @__PURE__ */
|
|
1501
|
+
function rr({ className: e, children: t, side: n = "right", ...r }) {
|
|
1502
|
+
return /* @__PURE__ */ b(tr, { children: [/* @__PURE__ */ y(nr, {}), /* @__PURE__ */ b(E.Content, {
|
|
1684
1503
|
"data-slot": "sheet-content",
|
|
1685
|
-
className:
|
|
1504
|
+
className: F("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),
|
|
1686
1505
|
...r,
|
|
1687
|
-
children: [t, /* @__PURE__ */
|
|
1506
|
+
children: [t, /* @__PURE__ */ b(E.Close, {
|
|
1688
1507
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
1689
|
-
children: [/* @__PURE__ */
|
|
1508
|
+
children: [/* @__PURE__ */ y(_, { className: "size-4" }), /* @__PURE__ */ y("span", {
|
|
1690
1509
|
className: "sr-only",
|
|
1691
1510
|
children: "Close"
|
|
1692
1511
|
})]
|
|
1693
1512
|
})]
|
|
1694
1513
|
})] });
|
|
1695
1514
|
}
|
|
1696
|
-
function
|
|
1697
|
-
return /* @__PURE__ */
|
|
1515
|
+
function ir({ className: e, ...t }) {
|
|
1516
|
+
return /* @__PURE__ */ y("div", {
|
|
1698
1517
|
"data-slot": "sheet-header",
|
|
1699
|
-
className:
|
|
1518
|
+
className: F("flex flex-col gap-1.5 p-4", e),
|
|
1700
1519
|
...t
|
|
1701
1520
|
});
|
|
1702
1521
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return /* @__PURE__ */
|
|
1522
|
+
function ar({ className: e, ...t }) {
|
|
1523
|
+
return /* @__PURE__ */ y("div", {
|
|
1705
1524
|
"data-slot": "sheet-footer",
|
|
1706
|
-
className:
|
|
1525
|
+
className: F("mt-auto flex flex-col gap-2 p-4", e),
|
|
1707
1526
|
...t
|
|
1708
1527
|
});
|
|
1709
1528
|
}
|
|
1710
|
-
function
|
|
1711
|
-
return /* @__PURE__ */
|
|
1529
|
+
function or({ className: e, ...t }) {
|
|
1530
|
+
return /* @__PURE__ */ y(E.Title, {
|
|
1712
1531
|
"data-slot": "sheet-title",
|
|
1713
|
-
className:
|
|
1532
|
+
className: F("text-foreground font-semibold", e),
|
|
1714
1533
|
...t
|
|
1715
1534
|
});
|
|
1716
1535
|
}
|
|
1717
|
-
function
|
|
1718
|
-
return /* @__PURE__ */
|
|
1536
|
+
function sr({ className: e, ...t }) {
|
|
1537
|
+
return /* @__PURE__ */ y(E.Description, {
|
|
1719
1538
|
"data-slot": "sheet-description",
|
|
1720
|
-
className:
|
|
1539
|
+
className: F("text-muted-foreground text-sm", e),
|
|
1721
1540
|
...t
|
|
1722
1541
|
});
|
|
1723
1542
|
}
|
|
1724
1543
|
//#endregion
|
|
1725
1544
|
//#region src/hooks/use-mobile.tsx
|
|
1726
|
-
var
|
|
1727
|
-
function
|
|
1545
|
+
var cr = 768;
|
|
1546
|
+
function lr() {
|
|
1728
1547
|
let [e, t] = o.useState(void 0);
|
|
1729
1548
|
return o.useEffect(() => {
|
|
1730
1549
|
let e = window.matchMedia("(max-width: 767px)"), n = () => {
|
|
1731
|
-
t(window.innerWidth <
|
|
1550
|
+
t(window.innerWidth < cr);
|
|
1732
1551
|
};
|
|
1733
|
-
return e.addEventListener("change", n), t(window.innerWidth <
|
|
1552
|
+
return e.addEventListener("change", n), t(window.innerWidth < cr), () => e.removeEventListener("change", n);
|
|
1734
1553
|
}, []), !!e;
|
|
1735
1554
|
}
|
|
1736
1555
|
//#endregion
|
|
1737
1556
|
//#region src/components/ui/skeleton.tsx
|
|
1738
|
-
function
|
|
1739
|
-
return /* @__PURE__ */
|
|
1557
|
+
function Z({ className: e, ...t }) {
|
|
1558
|
+
return /* @__PURE__ */ y("div", {
|
|
1740
1559
|
"data-slot": "skeleton",
|
|
1741
|
-
className:
|
|
1560
|
+
className: F("bg-accent animate-pulse rounded-md", e),
|
|
1742
1561
|
...t
|
|
1743
1562
|
});
|
|
1744
1563
|
}
|
|
1745
1564
|
//#endregion
|
|
1746
1565
|
//#region src/components/ui/tooltip.tsx
|
|
1747
|
-
function
|
|
1748
|
-
return /* @__PURE__ */
|
|
1566
|
+
function Q({ delayDuration: e = 0, ...t }) {
|
|
1567
|
+
return /* @__PURE__ */ y(N.Provider, {
|
|
1749
1568
|
"data-slot": "tooltip-provider",
|
|
1750
1569
|
delayDuration: e,
|
|
1751
1570
|
...t
|
|
1752
1571
|
});
|
|
1753
1572
|
}
|
|
1754
|
-
function
|
|
1755
|
-
return /* @__PURE__ */
|
|
1573
|
+
function ur({ ...e }) {
|
|
1574
|
+
return /* @__PURE__ */ y(Q, { children: /* @__PURE__ */ y(N.Root, {
|
|
1756
1575
|
"data-slot": "tooltip",
|
|
1757
1576
|
...e
|
|
1758
1577
|
}) });
|
|
1759
1578
|
}
|
|
1760
|
-
function
|
|
1761
|
-
return /* @__PURE__ */
|
|
1579
|
+
function dr({ ...e }) {
|
|
1580
|
+
return /* @__PURE__ */ y(N.Trigger, {
|
|
1762
1581
|
"data-slot": "tooltip-trigger",
|
|
1763
1582
|
...e
|
|
1764
1583
|
});
|
|
1765
1584
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return /* @__PURE__ */
|
|
1585
|
+
function fr({ className: e, sideOffset: t = 0, children: n, ...r }) {
|
|
1586
|
+
return /* @__PURE__ */ y(N.Portal, { children: /* @__PURE__ */ b(N.Content, {
|
|
1768
1587
|
"data-slot": "tooltip-content",
|
|
1769
1588
|
sideOffset: t,
|
|
1770
|
-
className:
|
|
1589
|
+
className: F("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", e),
|
|
1771
1590
|
...r,
|
|
1772
|
-
children: [n, /* @__PURE__ */
|
|
1591
|
+
children: [n, /* @__PURE__ */ y(N.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
1773
1592
|
}) });
|
|
1774
1593
|
}
|
|
1775
1594
|
//#endregion
|
|
1776
1595
|
//#region src/components/ui/sidebar.tsx
|
|
1777
|
-
var
|
|
1596
|
+
var pr = "sidebar_state", mr = 604800, hr = "16rem", gr = "18rem", _r = "3rem", vr = "b", yr = o.createContext(null);
|
|
1778
1597
|
function $() {
|
|
1779
|
-
let e = o.useContext(
|
|
1598
|
+
let e = o.useContext(yr);
|
|
1780
1599
|
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
1781
1600
|
return e;
|
|
1782
1601
|
}
|
|
1783
|
-
function
|
|
1784
|
-
let c =
|
|
1785
|
-
let t = typeof e == "function" ? e(
|
|
1786
|
-
n ? n(t) :
|
|
1787
|
-
}, [n,
|
|
1602
|
+
function br({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, style: i, children: a, ...s }) {
|
|
1603
|
+
let c = lr(), [l, u] = o.useState(!1), [ee, d] = o.useState(e), f = t ?? ee, p = o.useCallback((e) => {
|
|
1604
|
+
let t = typeof e == "function" ? e(f) : e;
|
|
1605
|
+
n ? n(t) : d(t), document.cookie = `${pr}=${t}; path=/; max-age=${mr}`;
|
|
1606
|
+
}, [n, f]), m = o.useCallback(() => c ? u((e) => !e) : p((e) => !e), [
|
|
1788
1607
|
c,
|
|
1789
|
-
|
|
1608
|
+
p,
|
|
1790
1609
|
u
|
|
1791
1610
|
]);
|
|
1792
1611
|
o.useEffect(() => {
|
|
1793
1612
|
let e = (e) => {
|
|
1794
|
-
e.key ===
|
|
1613
|
+
e.key === vr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), m());
|
|
1795
1614
|
};
|
|
1796
1615
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1797
|
-
}, [
|
|
1798
|
-
let
|
|
1799
|
-
state:
|
|
1800
|
-
open:
|
|
1801
|
-
setOpen:
|
|
1616
|
+
}, [m]);
|
|
1617
|
+
let h = f ? "expanded" : "collapsed", g = o.useMemo(() => ({
|
|
1618
|
+
state: h,
|
|
1619
|
+
open: f,
|
|
1620
|
+
setOpen: p,
|
|
1802
1621
|
isMobile: c,
|
|
1803
1622
|
openMobile: l,
|
|
1804
1623
|
setOpenMobile: u,
|
|
1805
|
-
toggleSidebar:
|
|
1624
|
+
toggleSidebar: m
|
|
1806
1625
|
}), [
|
|
1807
|
-
|
|
1808
|
-
d,
|
|
1626
|
+
h,
|
|
1809
1627
|
f,
|
|
1628
|
+
p,
|
|
1810
1629
|
c,
|
|
1811
1630
|
l,
|
|
1812
1631
|
u,
|
|
1813
|
-
|
|
1632
|
+
m
|
|
1814
1633
|
]);
|
|
1815
|
-
return /* @__PURE__ */
|
|
1816
|
-
value:
|
|
1817
|
-
children: /* @__PURE__ */
|
|
1634
|
+
return /* @__PURE__ */ y(yr.Provider, {
|
|
1635
|
+
value: g,
|
|
1636
|
+
children: /* @__PURE__ */ y(Q, {
|
|
1818
1637
|
delayDuration: 0,
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1638
|
+
children: /* @__PURE__ */ y("div", {
|
|
1820
1639
|
"data-slot": "sidebar-wrapper",
|
|
1821
1640
|
style: {
|
|
1822
|
-
"--sidebar-width":
|
|
1823
|
-
"--sidebar-width-icon":
|
|
1641
|
+
"--sidebar-width": hr,
|
|
1642
|
+
"--sidebar-width-icon": _r,
|
|
1824
1643
|
...i
|
|
1825
1644
|
},
|
|
1826
|
-
className:
|
|
1645
|
+
className: F("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-svh w-full overflow-hidden", r),
|
|
1827
1646
|
...s,
|
|
1828
1647
|
children: a
|
|
1829
1648
|
})
|
|
1830
1649
|
})
|
|
1831
1650
|
});
|
|
1832
1651
|
}
|
|
1833
|
-
function
|
|
1652
|
+
function xr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", className: r, children: i, ...a }) {
|
|
1834
1653
|
let { isMobile: o, state: s, openMobile: c, setOpenMobile: l } = $();
|
|
1835
|
-
return n === "none" ? /* @__PURE__ */
|
|
1654
|
+
return n === "none" ? /* @__PURE__ */ y("div", {
|
|
1836
1655
|
"data-slot": "sidebar",
|
|
1837
|
-
className:
|
|
1656
|
+
className: F("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", r),
|
|
1838
1657
|
...a,
|
|
1839
1658
|
children: i
|
|
1840
|
-
}) : o ? /* @__PURE__ */
|
|
1659
|
+
}) : o ? /* @__PURE__ */ y(Qn, {
|
|
1841
1660
|
open: c,
|
|
1842
1661
|
onOpenChange: l,
|
|
1843
1662
|
...a,
|
|
1844
|
-
children: /* @__PURE__ */
|
|
1663
|
+
children: /* @__PURE__ */ b(rr, {
|
|
1845
1664
|
"data-sidebar": "sidebar",
|
|
1846
1665
|
"data-slot": "sidebar",
|
|
1847
1666
|
"data-mobile": "true",
|
|
1848
1667
|
className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
1849
|
-
style: { "--sidebar-width":
|
|
1668
|
+
style: { "--sidebar-width": gr },
|
|
1850
1669
|
side: e,
|
|
1851
|
-
children: [/* @__PURE__ */
|
|
1670
|
+
children: [/* @__PURE__ */ b(ir, {
|
|
1852
1671
|
className: "sr-only",
|
|
1853
|
-
children: [/* @__PURE__ */
|
|
1854
|
-
}), /* @__PURE__ */
|
|
1672
|
+
children: [/* @__PURE__ */ y(or, { children: "Sidebar" }), /* @__PURE__ */ y(sr, { children: "Displays the mobile sidebar." })]
|
|
1673
|
+
}), /* @__PURE__ */ y("div", {
|
|
1855
1674
|
className: "flex h-full w-full flex-col",
|
|
1856
1675
|
children: i
|
|
1857
1676
|
})]
|
|
1858
1677
|
})
|
|
1859
|
-
}) : /* @__PURE__ */
|
|
1678
|
+
}) : /* @__PURE__ */ b("div", {
|
|
1860
1679
|
className: "group peer text-sidebar-foreground hidden md:block",
|
|
1861
1680
|
"data-state": s,
|
|
1862
1681
|
"data-collapsible": s === "collapsed" ? n : "",
|
|
1863
1682
|
"data-variant": t,
|
|
1864
1683
|
"data-side": e,
|
|
1865
1684
|
"data-slot": "sidebar",
|
|
1866
|
-
children: [/* @__PURE__ */
|
|
1685
|
+
children: [/* @__PURE__ */ y("div", {
|
|
1867
1686
|
"data-slot": "sidebar-gap",
|
|
1868
|
-
className:
|
|
1869
|
-
}), /* @__PURE__ */
|
|
1687
|
+
className: F("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
|
|
1688
|
+
}), /* @__PURE__ */ y("div", {
|
|
1870
1689
|
"data-slot": "sidebar-container",
|
|
1871
|
-
className:
|
|
1690
|
+
className: F("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[inset-inline,width] duration-200 ease-linear md:flex", e === "left" ? "start-0 group-data-[collapsible=offcanvas]:-start-[calc(var(--sidebar-width))]" : "end-0 group-data-[collapsible=offcanvas]:-end-[calc(var(--sidebar-width))]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s", r),
|
|
1872
1691
|
...a,
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1692
|
+
children: /* @__PURE__ */ y("div", {
|
|
1874
1693
|
"data-sidebar": "sidebar",
|
|
1875
1694
|
"data-slot": "sidebar-inner",
|
|
1876
1695
|
className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
|
|
@@ -1879,133 +1698,133 @@ function Tr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
1879
1698
|
})]
|
|
1880
1699
|
});
|
|
1881
1700
|
}
|
|
1882
|
-
function
|
|
1701
|
+
function Sr({ className: e, onClick: t, ...n }) {
|
|
1883
1702
|
let { toggleSidebar: r } = $();
|
|
1884
|
-
return /* @__PURE__ */
|
|
1703
|
+
return /* @__PURE__ */ b(U, {
|
|
1885
1704
|
"data-sidebar": "trigger",
|
|
1886
1705
|
"data-slot": "sidebar-trigger",
|
|
1887
1706
|
variant: "ghost",
|
|
1888
1707
|
size: "icon",
|
|
1889
|
-
className:
|
|
1708
|
+
className: F("size-7", e),
|
|
1890
1709
|
onClick: (e) => {
|
|
1891
1710
|
t?.(e), r();
|
|
1892
1711
|
},
|
|
1893
1712
|
...n,
|
|
1894
|
-
children: [/* @__PURE__ */
|
|
1713
|
+
children: [/* @__PURE__ */ y(ce, {}), /* @__PURE__ */ y("span", {
|
|
1895
1714
|
className: "sr-only",
|
|
1896
1715
|
children: "Toggle Sidebar"
|
|
1897
1716
|
})]
|
|
1898
1717
|
});
|
|
1899
1718
|
}
|
|
1900
|
-
function
|
|
1719
|
+
function Cr({ className: e, ...t }) {
|
|
1901
1720
|
let { toggleSidebar: n } = $();
|
|
1902
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ y("button", {
|
|
1903
1722
|
"data-sidebar": "rail",
|
|
1904
1723
|
"data-slot": "sidebar-rail",
|
|
1905
1724
|
"aria-label": "Toggle Sidebar",
|
|
1906
1725
|
tabIndex: -1,
|
|
1907
1726
|
onClick: n,
|
|
1908
1727
|
title: "Toggle Sidebar",
|
|
1909
|
-
className:
|
|
1728
|
+
className: F("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-end-4 group-data-[side=right]:start-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex", "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full", "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2", "rtl:translate-x-1/2", "rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", "rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", e),
|
|
1910
1729
|
...t
|
|
1911
1730
|
});
|
|
1912
1731
|
}
|
|
1913
|
-
function
|
|
1914
|
-
return /* @__PURE__ */
|
|
1732
|
+
function wr({ className: e, ...t }) {
|
|
1733
|
+
return /* @__PURE__ */ y("div", {
|
|
1915
1734
|
"data-slot": "sidebar-inset",
|
|
1916
|
-
className:
|
|
1735
|
+
className: F("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),
|
|
1917
1736
|
...t
|
|
1918
1737
|
});
|
|
1919
1738
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return /* @__PURE__ */
|
|
1739
|
+
function Tr({ className: e, ...t }) {
|
|
1740
|
+
return /* @__PURE__ */ y(q, {
|
|
1922
1741
|
"data-slot": "sidebar-input",
|
|
1923
1742
|
"data-sidebar": "input",
|
|
1924
|
-
className:
|
|
1743
|
+
className: F("bg-background h-8 w-full shadow-none", e),
|
|
1925
1744
|
...t
|
|
1926
1745
|
});
|
|
1927
1746
|
}
|
|
1928
|
-
function
|
|
1929
|
-
return /* @__PURE__ */
|
|
1747
|
+
function Er({ className: e, ...t }) {
|
|
1748
|
+
return /* @__PURE__ */ y("div", {
|
|
1930
1749
|
"data-slot": "sidebar-header",
|
|
1931
1750
|
"data-sidebar": "header",
|
|
1932
|
-
className:
|
|
1751
|
+
className: F("flex flex-col gap-2 p-2", e),
|
|
1933
1752
|
...t
|
|
1934
1753
|
});
|
|
1935
1754
|
}
|
|
1936
|
-
function
|
|
1937
|
-
return /* @__PURE__ */
|
|
1755
|
+
function Dr({ className: e, ...t }) {
|
|
1756
|
+
return /* @__PURE__ */ y("div", {
|
|
1938
1757
|
"data-slot": "sidebar-footer",
|
|
1939
1758
|
"data-sidebar": "footer",
|
|
1940
|
-
className:
|
|
1759
|
+
className: F("flex flex-col gap-2 p-2", e),
|
|
1941
1760
|
...t
|
|
1942
1761
|
});
|
|
1943
1762
|
}
|
|
1944
|
-
function
|
|
1945
|
-
return /* @__PURE__ */
|
|
1763
|
+
function Or({ className: e, ...t }) {
|
|
1764
|
+
return /* @__PURE__ */ y(Zn, {
|
|
1946
1765
|
"data-slot": "sidebar-separator",
|
|
1947
1766
|
"data-sidebar": "separator",
|
|
1948
|
-
className:
|
|
1767
|
+
className: F("bg-sidebar-border mx-2 w-auto", e),
|
|
1949
1768
|
...t
|
|
1950
1769
|
});
|
|
1951
1770
|
}
|
|
1952
|
-
function
|
|
1953
|
-
return /* @__PURE__ */
|
|
1771
|
+
function kr({ className: e, ...t }) {
|
|
1772
|
+
return /* @__PURE__ */ y("div", {
|
|
1954
1773
|
"data-slot": "sidebar-content",
|
|
1955
1774
|
"data-sidebar": "content",
|
|
1956
|
-
className:
|
|
1775
|
+
className: F("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
1957
1776
|
...t
|
|
1958
1777
|
});
|
|
1959
1778
|
}
|
|
1960
|
-
function
|
|
1961
|
-
return /* @__PURE__ */
|
|
1779
|
+
function Ar({ className: e, ...t }) {
|
|
1780
|
+
return /* @__PURE__ */ y("div", {
|
|
1962
1781
|
"data-slot": "sidebar-group",
|
|
1963
1782
|
"data-sidebar": "group",
|
|
1964
|
-
className:
|
|
1783
|
+
className: F("relative flex w-full min-w-0 flex-col p-2", e),
|
|
1965
1784
|
...t
|
|
1966
1785
|
});
|
|
1967
1786
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return /* @__PURE__ */
|
|
1787
|
+
function jr({ className: e, asChild: t = !1, ...n }) {
|
|
1788
|
+
return /* @__PURE__ */ y(t ? C : "div", {
|
|
1970
1789
|
"data-slot": "sidebar-group-label",
|
|
1971
1790
|
"data-sidebar": "group-label",
|
|
1972
|
-
className:
|
|
1791
|
+
className: F("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
|
|
1973
1792
|
...n
|
|
1974
1793
|
});
|
|
1975
1794
|
}
|
|
1976
|
-
function
|
|
1977
|
-
return /* @__PURE__ */
|
|
1795
|
+
function Mr({ className: e, asChild: t = !1, ...n }) {
|
|
1796
|
+
return /* @__PURE__ */ y(t ? C : "button", {
|
|
1978
1797
|
"data-slot": "sidebar-group-action",
|
|
1979
1798
|
"data-sidebar": "group-action",
|
|
1980
|
-
className:
|
|
1799
|
+
className: F("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute end-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
|
|
1981
1800
|
...n
|
|
1982
1801
|
});
|
|
1983
1802
|
}
|
|
1984
|
-
function
|
|
1985
|
-
return /* @__PURE__ */
|
|
1803
|
+
function Nr({ className: e, ...t }) {
|
|
1804
|
+
return /* @__PURE__ */ y("div", {
|
|
1986
1805
|
"data-slot": "sidebar-group-content",
|
|
1987
1806
|
"data-sidebar": "group-content",
|
|
1988
|
-
className:
|
|
1807
|
+
className: F("w-full text-sm", e),
|
|
1989
1808
|
...t
|
|
1990
1809
|
});
|
|
1991
1810
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return /* @__PURE__ */
|
|
1811
|
+
function Pr({ className: e, ...t }) {
|
|
1812
|
+
return /* @__PURE__ */ y("ul", {
|
|
1994
1813
|
"data-slot": "sidebar-menu",
|
|
1995
1814
|
"data-sidebar": "menu",
|
|
1996
|
-
className:
|
|
1815
|
+
className: F("flex w-full min-w-0 flex-col gap-1", e),
|
|
1997
1816
|
...t
|
|
1998
1817
|
});
|
|
1999
1818
|
}
|
|
2000
|
-
function
|
|
2001
|
-
return /* @__PURE__ */
|
|
1819
|
+
function Fr({ className: e, ...t }) {
|
|
1820
|
+
return /* @__PURE__ */ y("li", {
|
|
2002
1821
|
"data-slot": "sidebar-menu-item",
|
|
2003
1822
|
"data-sidebar": "menu-item",
|
|
2004
|
-
className:
|
|
1823
|
+
className: F("group/menu-item relative", e),
|
|
2005
1824
|
...t
|
|
2006
1825
|
});
|
|
2007
1826
|
}
|
|
2008
|
-
var
|
|
1827
|
+
var Ir = x("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", {
|
|
2009
1828
|
variants: {
|
|
2010
1829
|
variant: {
|
|
2011
1830
|
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
@@ -2022,239 +1841,239 @@ var Br = v("peer/menu-button flex w-full items-center gap-2 overflow-hidden roun
|
|
|
2022
1841
|
size: "default"
|
|
2023
1842
|
}
|
|
2024
1843
|
});
|
|
2025
|
-
function
|
|
2026
|
-
let s = e ?
|
|
1844
|
+
function Lr({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ...o }) {
|
|
1845
|
+
let s = e ? C : "button", { isMobile: c, state: l } = $(), u = /* @__PURE__ */ y(s, {
|
|
2027
1846
|
"data-slot": "sidebar-menu-button",
|
|
2028
1847
|
"data-sidebar": "menu-button",
|
|
2029
1848
|
"data-size": r,
|
|
2030
1849
|
"data-active": t,
|
|
2031
|
-
className:
|
|
1850
|
+
className: F(Ir({
|
|
2032
1851
|
variant: n,
|
|
2033
1852
|
size: r
|
|
2034
1853
|
}), a),
|
|
2035
1854
|
...o
|
|
2036
1855
|
});
|
|
2037
|
-
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */
|
|
1856
|
+
return i ? (typeof i == "string" && (i = { children: i }), /* @__PURE__ */ b(ur, { children: [/* @__PURE__ */ y(dr, {
|
|
2038
1857
|
asChild: !0,
|
|
2039
1858
|
children: u
|
|
2040
|
-
}), /* @__PURE__ */
|
|
1859
|
+
}), /* @__PURE__ */ y(fr, {
|
|
2041
1860
|
side: "right",
|
|
2042
1861
|
align: "center",
|
|
2043
1862
|
hidden: l !== "collapsed" || c,
|
|
2044
1863
|
...i
|
|
2045
1864
|
})] })) : u;
|
|
2046
1865
|
}
|
|
2047
|
-
function
|
|
2048
|
-
return /* @__PURE__ */
|
|
1866
|
+
function Rr({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }) {
|
|
1867
|
+
return /* @__PURE__ */ y(t ? C : "button", {
|
|
2049
1868
|
"data-slot": "sidebar-menu-action",
|
|
2050
1869
|
"data-sidebar": "menu-action",
|
|
2051
|
-
className:
|
|
1870
|
+
className: F("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute end-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
|
|
2052
1871
|
...r
|
|
2053
1872
|
});
|
|
2054
1873
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return /* @__PURE__ */
|
|
1874
|
+
function zr({ className: e, ...t }) {
|
|
1875
|
+
return /* @__PURE__ */ y("div", {
|
|
2057
1876
|
"data-slot": "sidebar-menu-badge",
|
|
2058
1877
|
"data-sidebar": "menu-badge",
|
|
2059
|
-
className:
|
|
1878
|
+
className: F("text-sidebar-foreground pointer-events-none absolute end-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
|
|
2060
1879
|
...t
|
|
2061
1880
|
});
|
|
2062
1881
|
}
|
|
2063
|
-
function
|
|
1882
|
+
function Br({ className: e, showIcon: t = !1, ...n }) {
|
|
2064
1883
|
let r = o.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
2065
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ b("div", {
|
|
2066
1885
|
"data-slot": "sidebar-menu-skeleton",
|
|
2067
1886
|
"data-sidebar": "menu-skeleton",
|
|
2068
|
-
className:
|
|
1887
|
+
className: F("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
2069
1888
|
...n,
|
|
2070
|
-
children: [t && /* @__PURE__ */
|
|
1889
|
+
children: [t && /* @__PURE__ */ y(Z, {
|
|
2071
1890
|
className: "size-4 rounded-md",
|
|
2072
1891
|
"data-sidebar": "menu-skeleton-icon"
|
|
2073
|
-
}), /* @__PURE__ */
|
|
1892
|
+
}), /* @__PURE__ */ y(Z, {
|
|
2074
1893
|
className: "h-4 max-w-(--skeleton-width) flex-1",
|
|
2075
1894
|
"data-sidebar": "menu-skeleton-text",
|
|
2076
1895
|
style: { "--skeleton-width": r }
|
|
2077
1896
|
})]
|
|
2078
1897
|
});
|
|
2079
1898
|
}
|
|
2080
|
-
function
|
|
2081
|
-
return /* @__PURE__ */
|
|
1899
|
+
function Vr({ className: e, ...t }) {
|
|
1900
|
+
return /* @__PURE__ */ y("ul", {
|
|
2082
1901
|
"data-slot": "sidebar-menu-sub",
|
|
2083
1902
|
"data-sidebar": "menu-sub",
|
|
2084
|
-
className:
|
|
1903
|
+
className: F("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-s px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
|
|
2085
1904
|
...t
|
|
2086
1905
|
});
|
|
2087
1906
|
}
|
|
2088
|
-
function
|
|
2089
|
-
return /* @__PURE__ */
|
|
1907
|
+
function Hr({ className: e, ...t }) {
|
|
1908
|
+
return /* @__PURE__ */ y("li", {
|
|
2090
1909
|
"data-slot": "sidebar-menu-sub-item",
|
|
2091
1910
|
"data-sidebar": "menu-sub-item",
|
|
2092
|
-
className:
|
|
1911
|
+
className: F("group/menu-sub-item relative", e),
|
|
2093
1912
|
...t
|
|
2094
1913
|
});
|
|
2095
1914
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return /* @__PURE__ */
|
|
1915
|
+
function Ur({ asChild: e = !1, size: t = "md", isActive: n = !1, className: r, ...i }) {
|
|
1916
|
+
return /* @__PURE__ */ y(e ? C : "a", {
|
|
2098
1917
|
"data-slot": "sidebar-menu-sub-button",
|
|
2099
1918
|
"data-sidebar": "menu-sub-button",
|
|
2100
1919
|
"data-size": t,
|
|
2101
1920
|
"data-active": n,
|
|
2102
|
-
className:
|
|
1921
|
+
className: F("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-inherit", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", t === "sm" && "text-xs", t === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", r),
|
|
2103
1922
|
...i
|
|
2104
1923
|
});
|
|
2105
1924
|
}
|
|
2106
1925
|
//#endregion
|
|
2107
1926
|
//#region src/context/theme-provider.tsx
|
|
2108
|
-
var
|
|
2109
|
-
defaultTheme:
|
|
1927
|
+
var Wr = "system", Gr = c({
|
|
1928
|
+
defaultTheme: Wr,
|
|
2110
1929
|
resolvedTheme: "light",
|
|
2111
|
-
theme:
|
|
1930
|
+
theme: Wr,
|
|
2112
1931
|
setTheme: () => null,
|
|
2113
1932
|
resetTheme: () => null
|
|
2114
|
-
}),
|
|
2115
|
-
let e = l(
|
|
1933
|
+
}), Kr = () => {
|
|
1934
|
+
let e = l(Gr);
|
|
2116
1935
|
if (!e) throw Error("useTheme must be used within a ThemeProvider");
|
|
2117
1936
|
return e;
|
|
2118
1937
|
};
|
|
2119
1938
|
//#endregion
|
|
2120
1939
|
//#region src/components/ui/sonner.tsx
|
|
2121
|
-
function
|
|
2122
|
-
let { theme: t = "system" } =
|
|
2123
|
-
return /* @__PURE__ */
|
|
1940
|
+
function qr({ ...e }) {
|
|
1941
|
+
let { theme: t = "system" } = Kr();
|
|
1942
|
+
return /* @__PURE__ */ y(De, {
|
|
2124
1943
|
theme: t,
|
|
2125
1944
|
...e
|
|
2126
1945
|
});
|
|
2127
1946
|
}
|
|
2128
1947
|
//#endregion
|
|
2129
1948
|
//#region src/components/ui/switch.tsx
|
|
2130
|
-
function
|
|
2131
|
-
return /* @__PURE__ */
|
|
1949
|
+
function Jr({ className: e, ...t }) {
|
|
1950
|
+
return /* @__PURE__ */ y(Le.Root, {
|
|
2132
1951
|
"data-slot": "switch",
|
|
2133
|
-
className:
|
|
1952
|
+
className: F("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),
|
|
2134
1953
|
...t,
|
|
2135
|
-
children: /* @__PURE__ */
|
|
1954
|
+
children: /* @__PURE__ */ y(Le.Thumb, {
|
|
2136
1955
|
"data-slot": "switch-thumb",
|
|
2137
|
-
className:
|
|
1956
|
+
className: F("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 rtl:data-[state=checked]:-translate-x-[calc(100%-2px)]")
|
|
2138
1957
|
})
|
|
2139
1958
|
});
|
|
2140
1959
|
}
|
|
2141
1960
|
//#endregion
|
|
2142
1961
|
//#region src/components/ui/table.tsx
|
|
2143
|
-
function
|
|
2144
|
-
let r = /* @__PURE__ */
|
|
1962
|
+
function Yr({ className: e, noWrapper: t, ...n }) {
|
|
1963
|
+
let r = /* @__PURE__ */ y("table", {
|
|
2145
1964
|
"data-slot": "table",
|
|
2146
|
-
className:
|
|
1965
|
+
className: F("w-full caption-bottom text-sm", e),
|
|
2147
1966
|
...n
|
|
2148
1967
|
});
|
|
2149
|
-
return t ? r : /* @__PURE__ */
|
|
1968
|
+
return t ? r : /* @__PURE__ */ y("div", {
|
|
2150
1969
|
"data-slot": "table-container",
|
|
2151
1970
|
className: "relative w-full overflow-x-auto",
|
|
2152
1971
|
children: r
|
|
2153
1972
|
});
|
|
2154
1973
|
}
|
|
2155
|
-
function
|
|
2156
|
-
return /* @__PURE__ */
|
|
1974
|
+
function Xr({ className: e, ...t }) {
|
|
1975
|
+
return /* @__PURE__ */ y("thead", {
|
|
2157
1976
|
"data-slot": "table-header",
|
|
2158
|
-
className:
|
|
1977
|
+
className: F("[&_tr]:border-b", e),
|
|
2159
1978
|
...t
|
|
2160
1979
|
});
|
|
2161
1980
|
}
|
|
2162
|
-
function
|
|
2163
|
-
return /* @__PURE__ */
|
|
1981
|
+
function Zr({ className: e, ...t }) {
|
|
1982
|
+
return /* @__PURE__ */ y("tbody", {
|
|
2164
1983
|
"data-slot": "table-body",
|
|
2165
|
-
className:
|
|
1984
|
+
className: F("[&_tr:last-child]:border-0", e),
|
|
2166
1985
|
...t
|
|
2167
1986
|
});
|
|
2168
1987
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return /* @__PURE__ */
|
|
1988
|
+
function Qr({ className: e, ...t }) {
|
|
1989
|
+
return /* @__PURE__ */ y("tfoot", {
|
|
2171
1990
|
"data-slot": "table-footer",
|
|
2172
|
-
className:
|
|
1991
|
+
className: F("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
|
|
2173
1992
|
...t
|
|
2174
1993
|
});
|
|
2175
1994
|
}
|
|
2176
|
-
function
|
|
2177
|
-
return /* @__PURE__ */
|
|
1995
|
+
function $r({ className: e, ...t }) {
|
|
1996
|
+
return /* @__PURE__ */ y("tr", {
|
|
2178
1997
|
"data-slot": "table-row",
|
|
2179
|
-
className:
|
|
1998
|
+
className: F("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
|
|
2180
1999
|
...t
|
|
2181
2000
|
});
|
|
2182
2001
|
}
|
|
2183
|
-
function
|
|
2184
|
-
return /* @__PURE__ */
|
|
2002
|
+
function ei({ className: e, ...t }) {
|
|
2003
|
+
return /* @__PURE__ */ y("th", {
|
|
2185
2004
|
"data-slot": "table-head",
|
|
2186
|
-
className:
|
|
2005
|
+
className: F("text-foreground h-10 px-2 text-start align-middle font-medium whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2187
2006
|
...t
|
|
2188
2007
|
});
|
|
2189
2008
|
}
|
|
2190
|
-
function
|
|
2191
|
-
return /* @__PURE__ */
|
|
2009
|
+
function ti({ className: e, ...t }) {
|
|
2010
|
+
return /* @__PURE__ */ y("td", {
|
|
2192
2011
|
"data-slot": "table-cell",
|
|
2193
|
-
className:
|
|
2012
|
+
className: F("p-2 align-middle whitespace-nowrap [&>[role=checkbox]]:translate-y-[2px]", e),
|
|
2194
2013
|
...t
|
|
2195
2014
|
});
|
|
2196
2015
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return /* @__PURE__ */
|
|
2016
|
+
function ni({ className: e, ...t }) {
|
|
2017
|
+
return /* @__PURE__ */ y("caption", {
|
|
2199
2018
|
"data-slot": "table-caption",
|
|
2200
|
-
className:
|
|
2019
|
+
className: F("text-muted-foreground mt-4 text-sm", e),
|
|
2201
2020
|
...t
|
|
2202
2021
|
});
|
|
2203
2022
|
}
|
|
2204
2023
|
//#endregion
|
|
2205
2024
|
//#region src/components/ui/tabs.tsx
|
|
2206
|
-
function
|
|
2207
|
-
return /* @__PURE__ */
|
|
2025
|
+
function ri({ className: e, ...t }) {
|
|
2026
|
+
return /* @__PURE__ */ y(P.Root, {
|
|
2208
2027
|
"data-slot": "tabs",
|
|
2209
|
-
className:
|
|
2028
|
+
className: F("flex flex-col gap-2", e),
|
|
2210
2029
|
...t
|
|
2211
2030
|
});
|
|
2212
2031
|
}
|
|
2213
|
-
function
|
|
2214
|
-
return /* @__PURE__ */
|
|
2032
|
+
function ii({ className: e, ...t }) {
|
|
2033
|
+
return /* @__PURE__ */ y(P.List, {
|
|
2215
2034
|
"data-slot": "tabs-list",
|
|
2216
|
-
className:
|
|
2035
|
+
className: F("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", e),
|
|
2217
2036
|
...t
|
|
2218
2037
|
});
|
|
2219
2038
|
}
|
|
2220
|
-
function
|
|
2221
|
-
return /* @__PURE__ */
|
|
2039
|
+
function ai({ className: e, ...t }) {
|
|
2040
|
+
return /* @__PURE__ */ y(P.Trigger, {
|
|
2222
2041
|
"data-slot": "tabs-trigger",
|
|
2223
|
-
className:
|
|
2042
|
+
className: F("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),
|
|
2224
2043
|
...t
|
|
2225
2044
|
});
|
|
2226
2045
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return /* @__PURE__ */
|
|
2046
|
+
function oi({ className: e, ...t }) {
|
|
2047
|
+
return /* @__PURE__ */ y(P.Content, {
|
|
2229
2048
|
"data-slot": "tabs-content",
|
|
2230
|
-
className:
|
|
2049
|
+
className: F("flex-1 outline-none", e),
|
|
2231
2050
|
...t
|
|
2232
2051
|
});
|
|
2233
2052
|
}
|
|
2234
2053
|
//#endregion
|
|
2235
2054
|
//#region src/components/ui/textarea.tsx
|
|
2236
|
-
function
|
|
2237
|
-
return /* @__PURE__ */
|
|
2055
|
+
function si({ className: e, ...t }) {
|
|
2056
|
+
return /* @__PURE__ */ y("textarea", {
|
|
2238
2057
|
"data-slot": "textarea",
|
|
2239
|
-
className:
|
|
2058
|
+
className: F("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),
|
|
2240
2059
|
...t
|
|
2241
2060
|
});
|
|
2242
2061
|
}
|
|
2243
2062
|
//#endregion
|
|
2244
2063
|
//#region src/components/AddonRoute.tsx
|
|
2245
|
-
function
|
|
2246
|
-
let a =
|
|
2064
|
+
function ci({ children: e, layout: t, immersiveClassName: n, shell: r, version: i }) {
|
|
2065
|
+
let a = Re(), { setLayout: o } = ze(), c = t ?? a, l = i === void 0 ? e : /* @__PURE__ */ y(s, { children: e }, i);
|
|
2247
2066
|
return u(() => {
|
|
2248
2067
|
if (t && t !== a) return o(t), () => {
|
|
2249
2068
|
o("shell");
|
|
2250
2069
|
};
|
|
2251
|
-
}, [t, o]), c === "immersive" ? /* @__PURE__ */
|
|
2070
|
+
}, [t, o]), c === "immersive" ? /* @__PURE__ */ y("div", {
|
|
2252
2071
|
"data-metacore-addon-layout": "immersive",
|
|
2253
2072
|
className: ["fixed inset-0 z-50 overflow-hidden bg-background", n ?? ""].filter(Boolean).join(" "),
|
|
2254
2073
|
children: l
|
|
2255
|
-
}) : r ? /* @__PURE__ */
|
|
2074
|
+
}) : r ? /* @__PURE__ */ y(v, { children: r(l) }) : /* @__PURE__ */ y(v, { children: l });
|
|
2256
2075
|
}
|
|
2257
2076
|
//#endregion
|
|
2258
|
-
export {
|
|
2077
|
+
export { pt as Accordion, gt as AccordionContent, mt as AccordionItem, ht as AccordionTrigger, ci as AddonRoute, vt as Alert, bt as AlertDescription, xt as AlertDialog, At as AlertDialogAction, jt as AlertDialogCancel, Tt as AlertDialogContent, kt as AlertDialogDescription, Dt as AlertDialogFooter, Et as AlertDialogHeader, wt as AlertDialogOverlay, Ct as AlertDialogPortal, Ot as AlertDialogTitle, St as AlertDialogTrigger, yt as AlertTitle, Mt as Avatar, Pt as AvatarFallback, Nt as AvatarImage, It as Badge, U as Button, Lt as Calendar, W as CalendarDayButton, Rt as Card, Ht as CardAction, Ut as CardContent, Vt as CardDescription, Wt as CardFooter, zt as CardHeader, Bt as CardTitle, Gt as Checkbox, Kt as Collapsible, Jt as CollapsibleContent, qt as CollapsibleTrigger, pe as Command, me as CommandDialog, he as CommandEmpty, ge as CommandGroup, _e as CommandInput, ve as CommandItem, ye as CommandList, be as CommandSeparator, xe as CommandShortcut, Yt as Dialog, Qt as DialogClose, en as DialogContent, an as DialogDescription, nn as DialogFooter, tn as DialogHeader, $t as DialogOverlay, Zt as DialogPortal, rn as DialogTitle, Xt as DialogTrigger, on as DropdownMenu, fn as DropdownMenuCheckboxItem, ln as DropdownMenuContent, un as DropdownMenuGroup, dn as DropdownMenuItem, hn as DropdownMenuLabel, sn as DropdownMenuPortal, pn as DropdownMenuRadioGroup, mn as DropdownMenuRadioItem, gn as DropdownMenuSeparator, _n as DropdownMenuShortcut, vn as DropdownMenuSub, bn as DropdownMenuSubContent, yn as DropdownMenuSubTrigger, cn as DropdownMenuTrigger, xn as Form, Dn as FormControl, On as FormDescription, Cn as FormField, Tn as FormItem, En as FormLabel, kn as FormMessage, An as ImageUpload, q as Input, jn as InputOTP, Mn as InputOTPGroup, Pn as InputOTPSeparator, Nn as InputOTPSlot, G as Label, Se as MultiSelect, Fn as PhoneInput, Ce as Popover, we as PopoverAnchor, Te as PopoverContent, Ee as PopoverTrigger, Rn as Progress, zn as RadioGroup, Bn as RadioGroupItem, Ge as SPANISH_SYMBOLS, J as ScrollArea, Y as ScrollBar, Vn as Select, Gn as SelectContent, Hn as SelectGroup, qn as SelectItem, Kn as SelectLabel, Xn as SelectScrollDownButton, Yn as SelectScrollUpButton, Jn as SelectSeparator, Wn as SelectTrigger, Un as SelectValue, Zn as Separator, Qn as Sheet, er as SheetClose, rr as SheetContent, sr as SheetDescription, ar as SheetFooter, ir as SheetHeader, or as SheetTitle, $n as SheetTrigger, xr as Sidebar, kr as SidebarContent, Dr as SidebarFooter, Ar as SidebarGroup, Mr as SidebarGroupAction, Nr as SidebarGroupContent, jr as SidebarGroupLabel, Er as SidebarHeader, Tr as SidebarInput, wr as SidebarInset, Pr as SidebarMenu, Rr as SidebarMenuAction, zr as SidebarMenuBadge, Lr as SidebarMenuButton, Fr as SidebarMenuItem, Br as SidebarMenuSkeleton, Vr as SidebarMenuSub, Ur as SidebarMenuSubButton, Hr as SidebarMenuSubItem, br as SidebarProvider, Cr as SidebarRail, Or as SidebarSeparator, Sr as SidebarTrigger, Z as Skeleton, Jr as Switch, Yr as Table, Zr as TableBody, ni as TableCaption, ti as TableCell, Qr as TableFooter, ei as TableHead, Xr as TableHeader, $r as TableRow, ri as Tabs, oi as TabsContent, ii as TabsList, ai as TabsTrigger, si as Textarea, qr as Toaster, ur as Tooltip, fr as TooltipContent, Q as TooltipProvider, dr as TooltipTrigger, V as api, Ft as badgeVariants, H as buttonVariants, F as cn, Ye as detectTimezone, Je as fmtCurrency, z as formatCurrency, rt as generateBadgeStyles, Ze as getAllTimezones, at as getCookie, et as getCountries, Ke as getCurrencySymbol, He as getImageUrl, We as getPageNumbers, Ve as getStorageUrl, ft as handleServerError, lt as notificationManager, ct as playNotificationSound, dt as pushService, st as removeCookie, nt as resolveColorCss, B as resolveColorHex, ot as setCookie, Ue as sleep, K as useFormField, qe as useFormatCurrency, $ as useSidebar };
|
|
2259
2078
|
|
|
2260
2079
|
//# sourceMappingURL=index.js.map
|