arxatec-ui 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/arxatec-ui.css +1 -1
- package/dist/index.js +457 -460
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,64 +5,64 @@ import te, { centerCrop as ne, makeAspectCrop as re } from "react-image-crop";
|
|
|
5
5
|
import { Extension as O } from "@tiptap/core";
|
|
6
6
|
import { AnimatePresence as k, motion as A, useAnimation as j } from "motion/react";
|
|
7
7
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
8
|
-
import { AlignCenter as F, AlignJustify as ie, AlignLeft as ae, AlignRight as
|
|
9
|
-
import { Command as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import { Slot as
|
|
16
|
-
import { cva as
|
|
8
|
+
import { AlignCenter as F, AlignJustify as ie, AlignLeft as ae, AlignRight as I, ArrowLeft as L, ArrowLeftIcon as oe, ArrowRight as se, ArrowRightIcon as ce, Bold as le, BoldIcon as ue, CalendarCheck as de, CalendarIcon as fe, CalendarPlus as pe, Check as me, CheckIcon as he, ChevronDown as ge, ChevronDownIcon as _e, ChevronLeftIcon as ve, ChevronRight as ye, ChevronRightIcon as be, ChevronUpIcon as xe, CircleIcon as Se, Code as Ce, Code2 as we, CodeSquare as Te, Edit as Ee, FolderIcon as De, GripVerticalIcon as Oe, Heading1 as ke, Heading2 as Ae, Heading3 as je, Heading4 as Me, Image as Ne, ImageIcon as Pe, Info as Fe, Italic as Ie, ItalicIcon as Le, Link as Re, List as ze, ListOrdered as Be, Loader2 as Ve, LoaderIcon as He, MapPinIcon as Ue, Maximize as We, Maximize2 as Ge, Minimize2 as Ke, Minus as qe, MinusIcon as Je, MoreHorizontal as Ye, MoreHorizontalIcon as Xe, MoreVertical as Ze, PencilIcon as Qe, PlusIcon as $e, Quote as et, Redo2 as tt, Repeat as nt, Save as rt, Search as it, SearchIcon as at, SearchXIcon as ot, SeparatorHorizontal as st, Strikethrough as ct, TextQuote as lt, Trash as ut, Trash2 as dt, Type as ft, Underline as pt, UnderlineIcon as mt, Undo2 as ht, Upload as gt, X as _t, XIcon as vt } from "lucide-react";
|
|
9
|
+
import { Command as yt } from "cmdk";
|
|
10
|
+
import * as R from "@radix-ui/react-dialog";
|
|
11
|
+
import * as bt from "@radix-ui/react-scroll-area";
|
|
12
|
+
import * as xt from "@radix-ui/react-label";
|
|
13
|
+
import * as z from "@radix-ui/react-select";
|
|
14
|
+
import * as St from "@radix-ui/react-avatar";
|
|
15
|
+
import { Slot as Ct } from "@radix-ui/react-slot";
|
|
16
|
+
import { cva as wt } from "class-variance-authority";
|
|
17
17
|
import "react-image-crop/dist/ReactCrop.css";
|
|
18
|
-
import { DayPicker as
|
|
19
|
-
import { es as
|
|
20
|
-
import
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import { PopoverClose as
|
|
27
|
-
import { Drawer as
|
|
28
|
-
import * as
|
|
29
|
-
import { EmojiPicker as
|
|
30
|
-
import { DynamicIcon as
|
|
31
|
-
import { useVirtualizer as
|
|
32
|
-
import
|
|
33
|
-
import { useDebounceValue as
|
|
34
|
-
import { OTPInput as
|
|
35
|
-
import { MapContainer as
|
|
36
|
-
import
|
|
18
|
+
import { DayPicker as Tt, getDefaultClassNames as Et } from "react-day-picker";
|
|
19
|
+
import { es as Dt } from "react-day-picker/locale";
|
|
20
|
+
import Ot from "embla-carousel-react";
|
|
21
|
+
import * as kt from "recharts";
|
|
22
|
+
import * as At from "@radix-ui/react-checkbox";
|
|
23
|
+
import * as jt from "@radix-ui/react-collapsible";
|
|
24
|
+
import * as B from "@radix-ui/react-context-menu";
|
|
25
|
+
import * as Mt from "@radix-ui/react-popover";
|
|
26
|
+
import { PopoverClose as Nt } from "@radix-ui/react-popover";
|
|
27
|
+
import { Drawer as Pt } from "vaul";
|
|
28
|
+
import * as V from "@radix-ui/react-dropdown-menu";
|
|
29
|
+
import { EmojiPicker as Ft } from "frimousse";
|
|
30
|
+
import { DynamicIcon as It, dynamicIconImports as Lt } from "lucide-react/dynamic";
|
|
31
|
+
import { useVirtualizer as Rt } from "@tanstack/react-virtual";
|
|
32
|
+
import zt from "fuse.js";
|
|
33
|
+
import { useDebounceValue as Bt } from "usehooks-ts";
|
|
34
|
+
import { OTPInput as Vt, OTPInputContext as Ht } from "input-otp";
|
|
35
|
+
import { MapContainer as Ut, Marker as Wt, TileLayer as Gt, useMap as Kt, useMapEvents as qt } from "react-leaflet";
|
|
36
|
+
import Jt from "leaflet";
|
|
37
37
|
import "leaflet/dist/leaflet.css";
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
41
|
-
import * as
|
|
42
|
-
import { Toaster as
|
|
43
|
-
import * as
|
|
44
|
-
import * as
|
|
45
|
-
import { autoUpdate as
|
|
46
|
-
import { createPortal as
|
|
47
|
-
import { NodeSelection as
|
|
48
|
-
import
|
|
49
|
-
import { EditorContent as
|
|
50
|
-
import { Decoration as
|
|
51
|
-
import { Color as
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import { TextStyle as
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import { useController as
|
|
63
|
-
import
|
|
38
|
+
import * as Yt from "@radix-ui/react-progress";
|
|
39
|
+
import * as Xt from "@radix-ui/react-radio-group";
|
|
40
|
+
import * as Zt from "react-resizable-panels";
|
|
41
|
+
import * as Qt from "@radix-ui/react-slider";
|
|
42
|
+
import { Toaster as $t, toast as en } from "sonner";
|
|
43
|
+
import * as tn from "@radix-ui/react-tabs";
|
|
44
|
+
import * as nn from "@radix-ui/react-toggle";
|
|
45
|
+
import { autoUpdate as rn, flip as an, limitShift as on, offset as sn, shift as cn, useFloating as ln } from "@floating-ui/react";
|
|
46
|
+
import { createPortal as un } from "react-dom";
|
|
47
|
+
import { NodeSelection as dn, Plugin as fn, PluginKey as pn } from "@tiptap/pm/state";
|
|
48
|
+
import mn from "@tiptap/extension-image";
|
|
49
|
+
import { EditorContent as hn, Node as gn, NodeViewWrapper as _n, ReactNodeViewRenderer as vn, mergeAttributes as yn, useEditor as bn } from "@tiptap/react";
|
|
50
|
+
import { Decoration as xn, DecorationSet as Sn } from "@tiptap/pm/view";
|
|
51
|
+
import { Color as Cn } from "@tiptap/extension-color";
|
|
52
|
+
import wn from "@tiptap/extension-highlight";
|
|
53
|
+
import Tn from "@tiptap/extension-link";
|
|
54
|
+
import En from "@tiptap/extension-subscript";
|
|
55
|
+
import Dn from "@tiptap/extension-superscript";
|
|
56
|
+
import On from "@tiptap/extension-text-align";
|
|
57
|
+
import { TextStyle as kn } from "@tiptap/extension-text-style";
|
|
58
|
+
import An from "@tiptap/extension-typography";
|
|
59
|
+
import jn from "@tiptap/extension-underline";
|
|
60
|
+
import Mn from "@tiptap/starter-kit";
|
|
61
|
+
import Nn from "@tiptap/extension-placeholder";
|
|
62
|
+
import { useController as Pn } from "react-hook-form";
|
|
63
|
+
import Fn from "turndown";
|
|
64
64
|
//#region src/hooks/use_debounce/index.ts
|
|
65
|
-
var
|
|
65
|
+
var In = (e, t) => {
|
|
66
66
|
let [n, r] = D(e), i = E(null);
|
|
67
67
|
return C(() => (i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
68
68
|
r(e);
|
|
@@ -72,7 +72,7 @@ var Ln = (e, t) => {
|
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/hooks/use_media_query/index.ts
|
|
75
|
-
function
|
|
75
|
+
function Ln(e) {
|
|
76
76
|
let [t, n] = D(!1);
|
|
77
77
|
return C(() => {
|
|
78
78
|
let r = window.matchMedia(e);
|
|
@@ -83,7 +83,7 @@ function Rn(e) {
|
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/hooks/use_image_upload/index.ts
|
|
86
|
-
function
|
|
86
|
+
function Rn({ onUpload: e, uploadFn: t }) {
|
|
87
87
|
let n = E(null), r = E(null), [i, a] = D(null), [o, s] = D(null), [c, l] = D(!1), [u, d] = D(null), f = S(() => {
|
|
88
88
|
r.current?.click();
|
|
89
89
|
}, []), p = S(async (r) => {
|
|
@@ -119,20 +119,20 @@ function zn({ onUpload: e, uploadFn: t }) {
|
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/utilities/image/index.ts
|
|
122
|
-
function
|
|
122
|
+
function zn(e, t, n) {
|
|
123
123
|
return ne(re({
|
|
124
124
|
unit: "%",
|
|
125
125
|
width: 90
|
|
126
126
|
}, n, e, t), e, t);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Bn(e, t) {
|
|
129
129
|
return new Promise((n) => {
|
|
130
130
|
e.toBlob((e) => {
|
|
131
131
|
e && n(new File([e], t, { type: "image/jpeg" }));
|
|
132
132
|
}, "image/jpeg", .9);
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Vn(e, t) {
|
|
136
136
|
let n = document.createElement("canvas"), r = n.getContext("2d");
|
|
137
137
|
if (!r) throw Error("No 2d context");
|
|
138
138
|
let i = e.naturalWidth / e.width, a = e.naturalHeight / e.height;
|
|
@@ -140,29 +140,29 @@ function Hn(e, t) {
|
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/utilities/storybook/index.ts
|
|
143
|
-
var
|
|
143
|
+
var Hn = { className: {
|
|
144
144
|
control: "text",
|
|
145
145
|
description: "Clases Tailwind/CSS adicionales"
|
|
146
|
-
} },
|
|
147
|
-
function
|
|
146
|
+
} }, Un = "node-handles-selected-style";
|
|
147
|
+
function Wn(e) {
|
|
148
148
|
return /^https?:\/\/\S+$/.test(e);
|
|
149
149
|
}
|
|
150
|
-
var
|
|
150
|
+
var Gn = (e) => {
|
|
151
151
|
let { view: t } = e, { state: n } = t, { selection: r } = n;
|
|
152
152
|
e.chain().insertContentAt(r.to, r.content().content.firstChild?.toJSON(), { updateSelection: !0 }).focus(r.to).run();
|
|
153
153
|
};
|
|
154
|
-
function
|
|
155
|
-
if (
|
|
154
|
+
function Kn(e) {
|
|
155
|
+
if (Wn(e)) return e;
|
|
156
156
|
try {
|
|
157
157
|
if (e.includes(".") && !e.includes(" ")) return new URL(`https://${e}`).toString();
|
|
158
158
|
} catch {
|
|
159
159
|
return null;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function qn(e) {
|
|
163
163
|
return `${process.env.NEXT_PUBLIC_APP_URL}${e}`;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var Jn = "\n <h1>Editor de documentos legales</h1>\n <p>Redacta tus documentos aquí y deja que la IA te ayude a generar, corregir o mejorar el contenido.</p>\n <p>Empieza a escribir y personaliza tus textos según tus necesidades. Recuerda revisar todo antes de usarlo oficialmente.</p>\n", Yn = {
|
|
166
166
|
normal: {
|
|
167
167
|
translateX: 0,
|
|
168
168
|
transition: {
|
|
@@ -180,7 +180,7 @@ var Yn = "\n <h1>Editor de documentos legales</h1>\n <p>Redacta tus documentos
|
|
|
180
180
|
damping: 13
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, Xn = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i }, a) => {
|
|
184
184
|
let o = j(), s = E(!1);
|
|
185
185
|
w(a, () => (s.current = !0, {
|
|
186
186
|
startAnimation: () => o.start("animate"),
|
|
@@ -216,26 +216,26 @@ var Yn = "\n <h1>Editor de documentos legales</h1>\n <p>Redacta tus documentos
|
|
|
216
216
|
/* @__PURE__ */ N(A.path, {
|
|
217
217
|
animate: o,
|
|
218
218
|
d: "M22 21v-2a4 4 0 0 0-3-3.87",
|
|
219
|
-
variants:
|
|
219
|
+
variants: Yn
|
|
220
220
|
}),
|
|
221
221
|
/* @__PURE__ */ N(A.path, {
|
|
222
222
|
animate: o,
|
|
223
223
|
d: "M16 3.13a4 4 0 0 1 0 7.75",
|
|
224
|
-
variants:
|
|
224
|
+
variants: Yn
|
|
225
225
|
})
|
|
226
226
|
]
|
|
227
227
|
})
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
|
-
|
|
230
|
+
Xn.displayName = "UsersIcon";
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region src/components/animated_icons/components/layers/index.tsx
|
|
233
|
-
var
|
|
233
|
+
var Zn = {
|
|
234
234
|
type: "spring",
|
|
235
235
|
stiffness: 100,
|
|
236
236
|
damping: 14,
|
|
237
237
|
mass: 1
|
|
238
|
-
},
|
|
238
|
+
}, Qn = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i }, a) => {
|
|
239
239
|
let o = j(), s = E(!1);
|
|
240
240
|
w(a, () => (s.current = !0, {
|
|
241
241
|
startAnimation: async () => {
|
|
@@ -268,7 +268,7 @@ var Qn = {
|
|
|
268
268
|
/* @__PURE__ */ N(A.path, {
|
|
269
269
|
animate: o,
|
|
270
270
|
d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",
|
|
271
|
-
transition:
|
|
271
|
+
transition: Zn,
|
|
272
272
|
variants: {
|
|
273
273
|
normal: { y: 0 },
|
|
274
274
|
firstState: { y: -9 },
|
|
@@ -278,7 +278,7 @@ var Qn = {
|
|
|
278
278
|
/* @__PURE__ */ N(A.path, {
|
|
279
279
|
animate: o,
|
|
280
280
|
d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",
|
|
281
|
-
transition:
|
|
281
|
+
transition: Zn,
|
|
282
282
|
variants: {
|
|
283
283
|
normal: { y: 0 },
|
|
284
284
|
firstState: { y: -5 },
|
|
@@ -289,10 +289,10 @@ var Qn = {
|
|
|
289
289
|
})
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
|
-
|
|
292
|
+
Qn.displayName = "LayersIcon";
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/components/animated_icons/components/search/index.tsx
|
|
295
|
-
var
|
|
295
|
+
var $n = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i }, a) => {
|
|
296
296
|
let o = j(), s = E(!1);
|
|
297
297
|
w(a, () => (s.current = !0, {
|
|
298
298
|
startAnimation: () => o.start("animate"),
|
|
@@ -351,10 +351,10 @@ var er = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i
|
|
|
351
351
|
})
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
|
-
|
|
354
|
+
$n.displayName = "SearchIcon";
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/components/animated_icons/components/folders/index.tsx
|
|
357
|
-
var
|
|
357
|
+
var er = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i }, a) => {
|
|
358
358
|
let o = j(), s = E(!1);
|
|
359
359
|
w(a, () => (s.current = !0, {
|
|
360
360
|
startAnimation: () => o.start("animate"),
|
|
@@ -424,10 +424,10 @@ var tr = x(({ onMouseEnter: e, onMouseLeave: t, className: n, size: r = 28, ...i
|
|
|
424
424
|
})
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
|
-
|
|
427
|
+
er.displayName = "FoldersIcon";
|
|
428
428
|
//#endregion
|
|
429
429
|
//#region src/components/animated_icons/components/sliders_horizontal/index.tsx
|
|
430
|
-
var
|
|
430
|
+
var tr = {
|
|
431
431
|
type: "spring",
|
|
432
432
|
stiffness: 100,
|
|
433
433
|
damping: 12,
|
|
@@ -462,7 +462,7 @@ var V = {
|
|
|
462
462
|
/* @__PURE__ */ N(A.line, {
|
|
463
463
|
animate: o,
|
|
464
464
|
initial: !1,
|
|
465
|
-
transition:
|
|
465
|
+
transition: tr,
|
|
466
466
|
variants: {
|
|
467
467
|
normal: { x2: 14 },
|
|
468
468
|
animate: { x2: 10 }
|
|
@@ -474,7 +474,7 @@ var V = {
|
|
|
474
474
|
}),
|
|
475
475
|
/* @__PURE__ */ N(A.line, {
|
|
476
476
|
animate: o,
|
|
477
|
-
transition:
|
|
477
|
+
transition: tr,
|
|
478
478
|
variants: {
|
|
479
479
|
normal: { x1: 10 },
|
|
480
480
|
animate: { x1: 5 }
|
|
@@ -486,7 +486,7 @@ var V = {
|
|
|
486
486
|
}),
|
|
487
487
|
/* @__PURE__ */ N(A.line, {
|
|
488
488
|
animate: o,
|
|
489
|
-
transition:
|
|
489
|
+
transition: tr,
|
|
490
490
|
variants: {
|
|
491
491
|
normal: { x2: 12 },
|
|
492
492
|
animate: { x2: 18 }
|
|
@@ -498,7 +498,7 @@ var V = {
|
|
|
498
498
|
}),
|
|
499
499
|
/* @__PURE__ */ N(A.line, {
|
|
500
500
|
animate: o,
|
|
501
|
-
transition:
|
|
501
|
+
transition: tr,
|
|
502
502
|
variants: {
|
|
503
503
|
normal: { x1: 8 },
|
|
504
504
|
animate: { x1: 13 }
|
|
@@ -510,7 +510,7 @@ var V = {
|
|
|
510
510
|
}),
|
|
511
511
|
/* @__PURE__ */ N(A.line, {
|
|
512
512
|
animate: o,
|
|
513
|
-
transition:
|
|
513
|
+
transition: tr,
|
|
514
514
|
variants: {
|
|
515
515
|
normal: { x2: 12 },
|
|
516
516
|
animate: { x2: 4 }
|
|
@@ -522,7 +522,7 @@ var V = {
|
|
|
522
522
|
}),
|
|
523
523
|
/* @__PURE__ */ N(A.line, {
|
|
524
524
|
animate: o,
|
|
525
|
-
transition:
|
|
525
|
+
transition: tr,
|
|
526
526
|
variants: {
|
|
527
527
|
normal: { x1: 16 },
|
|
528
528
|
animate: { x1: 8 }
|
|
@@ -534,7 +534,7 @@ var V = {
|
|
|
534
534
|
}),
|
|
535
535
|
/* @__PURE__ */ N(A.line, {
|
|
536
536
|
animate: o,
|
|
537
|
-
transition:
|
|
537
|
+
transition: tr,
|
|
538
538
|
variants: {
|
|
539
539
|
normal: {
|
|
540
540
|
x1: 14,
|
|
@@ -552,7 +552,7 @@ var V = {
|
|
|
552
552
|
}),
|
|
553
553
|
/* @__PURE__ */ N(A.line, {
|
|
554
554
|
animate: o,
|
|
555
|
-
transition:
|
|
555
|
+
transition: tr,
|
|
556
556
|
variants: {
|
|
557
557
|
normal: {
|
|
558
558
|
x1: 8,
|
|
@@ -570,7 +570,7 @@ var V = {
|
|
|
570
570
|
}),
|
|
571
571
|
/* @__PURE__ */ N(A.line, {
|
|
572
572
|
animate: o,
|
|
573
|
-
transition:
|
|
573
|
+
transition: tr,
|
|
574
574
|
variants: {
|
|
575
575
|
normal: {
|
|
576
576
|
x1: 16,
|
|
@@ -1055,31 +1055,31 @@ var yr = () => {
|
|
|
1055
1055
|
//#endregion
|
|
1056
1056
|
//#region src/components/dialog/index.tsx
|
|
1057
1057
|
function xr({ ...e }) {
|
|
1058
|
-
return /* @__PURE__ */ N(
|
|
1058
|
+
return /* @__PURE__ */ N(R.Root, {
|
|
1059
1059
|
"data-slot": "dialog",
|
|
1060
1060
|
...e
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
function Sr({ ...e }) {
|
|
1064
|
-
return /* @__PURE__ */ N(
|
|
1064
|
+
return /* @__PURE__ */ N(R.Trigger, {
|
|
1065
1065
|
"data-slot": "dialog-trigger",
|
|
1066
1066
|
...e
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
function Cr({ ...e }) {
|
|
1070
|
-
return /* @__PURE__ */ N(
|
|
1070
|
+
return /* @__PURE__ */ N(R.Portal, {
|
|
1071
1071
|
"data-slot": "dialog-portal",
|
|
1072
1072
|
...e
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
function wr({ ...e }) {
|
|
1076
|
-
return /* @__PURE__ */ N(
|
|
1076
|
+
return /* @__PURE__ */ N(R.Close, {
|
|
1077
1077
|
"data-slot": "dialog-close",
|
|
1078
1078
|
...e
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
function Tr({ className: e, onContextMenu: t, ...n }) {
|
|
1082
|
-
return /* @__PURE__ */ N(
|
|
1082
|
+
return /* @__PURE__ */ N(R.Overlay, {
|
|
1083
1083
|
"data-slot": "dialog-overlay",
|
|
1084
1084
|
className: v("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),
|
|
1085
1085
|
onContextMenu: (e) => {
|
|
@@ -1091,17 +1091,17 @@ function Tr({ className: e, onContextMenu: t, ...n }) {
|
|
|
1091
1091
|
function Er({ className: e, children: t, showCloseButton: n = !0, onContextMenu: r, ...i }) {
|
|
1092
1092
|
return /* @__PURE__ */ P(Cr, {
|
|
1093
1093
|
"data-slot": "dialog-portal",
|
|
1094
|
-
children: [/* @__PURE__ */ N(Tr, {}), /* @__PURE__ */ P(
|
|
1094
|
+
children: [/* @__PURE__ */ N(Tr, {}), /* @__PURE__ */ P(R.Content, {
|
|
1095
1095
|
"data-slot": "dialog-content",
|
|
1096
1096
|
className: v("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-md border p-4 shadow-lg duration-200 sm:max-w-lg", e),
|
|
1097
1097
|
onContextMenu: (e) => {
|
|
1098
1098
|
e.stopPropagation(), r?.(e);
|
|
1099
1099
|
},
|
|
1100
1100
|
...i,
|
|
1101
|
-
children: [t, n && /* @__PURE__ */ P(
|
|
1101
|
+
children: [t, n && /* @__PURE__ */ P(R.Close, {
|
|
1102
1102
|
"data-slot": "dialog-close",
|
|
1103
1103
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-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",
|
|
1104
|
-
children: [/* @__PURE__ */ N(
|
|
1104
|
+
children: [/* @__PURE__ */ N(vt, {}), /* @__PURE__ */ N("span", {
|
|
1105
1105
|
className: "sr-only",
|
|
1106
1106
|
children: "Close"
|
|
1107
1107
|
})]
|
|
@@ -1124,14 +1124,14 @@ function Or({ className: e, ...t }) {
|
|
|
1124
1124
|
});
|
|
1125
1125
|
}
|
|
1126
1126
|
function kr({ className: e, ...t }) {
|
|
1127
|
-
return /* @__PURE__ */ N(
|
|
1127
|
+
return /* @__PURE__ */ N(R.Title, {
|
|
1128
1128
|
"data-slot": "dialog-title",
|
|
1129
1129
|
className: v("text-base font-normal text-primary leading-none", e),
|
|
1130
1130
|
...t
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
1133
1133
|
function Ar({ className: e, ...t }) {
|
|
1134
|
-
return /* @__PURE__ */ N(
|
|
1134
|
+
return /* @__PURE__ */ N(R.Description, {
|
|
1135
1135
|
"data-slot": "dialog-description",
|
|
1136
1136
|
className: v("text-muted-foreground text-sm", e),
|
|
1137
1137
|
...t
|
|
@@ -1149,12 +1149,12 @@ function jr({ className: e, children: t, viewportRef: n, ...r }) {
|
|
|
1149
1149
|
}) : (n.current = e, () => {
|
|
1150
1150
|
n.current = null;
|
|
1151
1151
|
});
|
|
1152
|
-
}, [n]), /* @__PURE__ */ P(
|
|
1152
|
+
}, [n]), /* @__PURE__ */ P(bt.Root, {
|
|
1153
1153
|
"data-slot": "scroll-area",
|
|
1154
1154
|
className: v("relative", e),
|
|
1155
1155
|
...r,
|
|
1156
1156
|
children: [
|
|
1157
|
-
/* @__PURE__ */ P(
|
|
1157
|
+
/* @__PURE__ */ P(bt.Viewport, {
|
|
1158
1158
|
"data-slot": "scroll-area-viewport",
|
|
1159
1159
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
1160
1160
|
children: [/* @__PURE__ */ N("div", {
|
|
@@ -1164,17 +1164,17 @@ function jr({ className: e, children: t, viewportRef: n, ...r }) {
|
|
|
1164
1164
|
}), t]
|
|
1165
1165
|
}),
|
|
1166
1166
|
/* @__PURE__ */ N(Mr, {}),
|
|
1167
|
-
/* @__PURE__ */ N(
|
|
1167
|
+
/* @__PURE__ */ N(bt.Corner, {})
|
|
1168
1168
|
]
|
|
1169
1169
|
});
|
|
1170
1170
|
}
|
|
1171
1171
|
function Mr({ className: e, orientation: t = "vertical", ...n }) {
|
|
1172
|
-
return /* @__PURE__ */ N(
|
|
1172
|
+
return /* @__PURE__ */ N(bt.ScrollAreaScrollbar, {
|
|
1173
1173
|
"data-slot": "scroll-area-scrollbar",
|
|
1174
1174
|
orientation: t,
|
|
1175
1175
|
className: v("flex touch-none p-px transition-colors select-none", t === "vertical" && "h-full w-2.5 border-l border-l-transparent", t === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", e),
|
|
1176
1176
|
...n,
|
|
1177
|
-
children: /* @__PURE__ */ N(
|
|
1177
|
+
children: /* @__PURE__ */ N(bt.ScrollAreaThumb, {
|
|
1178
1178
|
"data-slot": "scroll-area-thumb",
|
|
1179
1179
|
className: "bg-border relative flex-1 rounded-sm"
|
|
1180
1180
|
})
|
|
@@ -1183,7 +1183,7 @@ function Mr({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1183
1183
|
//#endregion
|
|
1184
1184
|
//#region src/components/command/index.tsx
|
|
1185
1185
|
function Nr({ className: e, ...t }) {
|
|
1186
|
-
return /* @__PURE__ */ N(
|
|
1186
|
+
return /* @__PURE__ */ N(yt, {
|
|
1187
1187
|
"data-slot": "command",
|
|
1188
1188
|
className: v("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", e),
|
|
1189
1189
|
...t
|
|
@@ -1209,7 +1209,7 @@ function Fr({ className: e, ...t }) {
|
|
|
1209
1209
|
return /* @__PURE__ */ P("div", {
|
|
1210
1210
|
"data-slot": "command-input-wrapper",
|
|
1211
1211
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
1212
|
-
children: [/* @__PURE__ */ N(
|
|
1212
|
+
children: [/* @__PURE__ */ N(at, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ N(yt.Input, {
|
|
1213
1213
|
"data-slot": "command-input",
|
|
1214
1214
|
className: v("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),
|
|
1215
1215
|
...t
|
|
@@ -1219,7 +1219,7 @@ function Fr({ className: e, ...t }) {
|
|
|
1219
1219
|
function Ir({ className: e, ...t }) {
|
|
1220
1220
|
return /* @__PURE__ */ N(jr, {
|
|
1221
1221
|
className: "h-[300px] w-full min-w-0 overflow-x-hidden",
|
|
1222
|
-
children: /* @__PURE__ */ N(
|
|
1222
|
+
children: /* @__PURE__ */ N(yt.List, {
|
|
1223
1223
|
"data-slot": "command-list",
|
|
1224
1224
|
className: v("scroll-py-1 overflow-x-hidden overflow-y-auto w-full max-w-full min-w-0", e),
|
|
1225
1225
|
...t
|
|
@@ -1227,28 +1227,28 @@ function Ir({ className: e, ...t }) {
|
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
1229
|
function Lr({ ...e }) {
|
|
1230
|
-
return /* @__PURE__ */ N(
|
|
1230
|
+
return /* @__PURE__ */ N(yt.Empty, {
|
|
1231
1231
|
"data-slot": "command-empty",
|
|
1232
1232
|
className: "py-6 text-center text-sm",
|
|
1233
1233
|
...e
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|
|
1236
1236
|
function Rr({ className: e, ...t }) {
|
|
1237
|
-
return /* @__PURE__ */ N(
|
|
1237
|
+
return /* @__PURE__ */ N(yt.Group, {
|
|
1238
1238
|
"data-slot": "command-group",
|
|
1239
1239
|
className: v("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),
|
|
1240
1240
|
...t
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
1243
|
function zr({ className: e, ...t }) {
|
|
1244
|
-
return /* @__PURE__ */ N(
|
|
1244
|
+
return /* @__PURE__ */ N(yt.Separator, {
|
|
1245
1245
|
"data-slot": "command-separator",
|
|
1246
1246
|
className: v("bg-border -mx-1 h-px", e),
|
|
1247
1247
|
...t
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
1250
|
function Br({ className: e, ...t }) {
|
|
1251
|
-
return /* @__PURE__ */ N(
|
|
1251
|
+
return /* @__PURE__ */ N(yt.Item, {
|
|
1252
1252
|
"data-slot": "command-item",
|
|
1253
1253
|
className: v("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),
|
|
1254
1254
|
...t
|
|
@@ -1270,10 +1270,10 @@ function Hr({ data: e, isLoading: t, emptyMessage: n, renderItem: r, getKey: i,
|
|
|
1270
1270
|
value: "loading",
|
|
1271
1271
|
disabled: !0,
|
|
1272
1272
|
className: "flex flex-col p-6",
|
|
1273
|
-
children: [/* @__PURE__ */ N(
|
|
1273
|
+
children: [/* @__PURE__ */ N(Ve, { className: "size-5 animate-spin" }), "Cargando..."]
|
|
1274
1274
|
}) : e.length === 0 ? /* @__PURE__ */ P(Lr, {
|
|
1275
1275
|
className: "p-6 h-auto flex text-muted-foreground items-center flex-col justify-center gap-2 text-sm",
|
|
1276
|
-
children: [/* @__PURE__ */ N(
|
|
1276
|
+
children: [/* @__PURE__ */ N(ot, { className: "size-7" }), /* @__PURE__ */ N("p", { children: n })]
|
|
1277
1277
|
}) : /* @__PURE__ */ N(Rr, {
|
|
1278
1278
|
className: "w-full",
|
|
1279
1279
|
children: e.map((e) => /* @__PURE__ */ N(Br, {
|
|
@@ -1287,7 +1287,7 @@ function Hr({ data: e, isLoading: t, emptyMessage: n, renderItem: r, getKey: i,
|
|
|
1287
1287
|
//#endregion
|
|
1288
1288
|
//#region src/components/label/index.tsx
|
|
1289
1289
|
function H({ className: e, ...t }) {
|
|
1290
|
-
return /* @__PURE__ */ N(
|
|
1290
|
+
return /* @__PURE__ */ N(xt.Root, {
|
|
1291
1291
|
"data-slot": "label",
|
|
1292
1292
|
className: v("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),
|
|
1293
1293
|
...t
|
|
@@ -1296,44 +1296,44 @@ function H({ className: e, ...t }) {
|
|
|
1296
1296
|
//#endregion
|
|
1297
1297
|
//#region src/components/select/index.tsx
|
|
1298
1298
|
function Ur({ ...e }) {
|
|
1299
|
-
return /* @__PURE__ */ N(
|
|
1299
|
+
return /* @__PURE__ */ N(z.Root, {
|
|
1300
1300
|
"data-slot": "select",
|
|
1301
1301
|
...e
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
1304
|
function Wr({ ...e }) {
|
|
1305
|
-
return /* @__PURE__ */ N(
|
|
1305
|
+
return /* @__PURE__ */ N(z.Group, {
|
|
1306
1306
|
"data-slot": "select-group",
|
|
1307
1307
|
...e
|
|
1308
1308
|
});
|
|
1309
1309
|
}
|
|
1310
1310
|
function Gr({ ...e }) {
|
|
1311
|
-
return /* @__PURE__ */ N(
|
|
1311
|
+
return /* @__PURE__ */ N(z.Value, {
|
|
1312
1312
|
"data-slot": "select-value",
|
|
1313
1313
|
...e
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
1316
1316
|
function Kr({ className: e, size: t = "default", children: n, ...r }) {
|
|
1317
|
-
return /* @__PURE__ */ P(
|
|
1317
|
+
return /* @__PURE__ */ P(z.Trigger, {
|
|
1318
1318
|
"data-slot": "select-trigger",
|
|
1319
1319
|
"data-size": t,
|
|
1320
1320
|
className: v("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-card 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),
|
|
1321
1321
|
...r,
|
|
1322
|
-
children: [n, /* @__PURE__ */ N(
|
|
1322
|
+
children: [n, /* @__PURE__ */ N(z.Icon, {
|
|
1323
1323
|
asChild: !0,
|
|
1324
|
-
children: /* @__PURE__ */ N(
|
|
1324
|
+
children: /* @__PURE__ */ N(_e, { className: "size-4 opacity-50" })
|
|
1325
1325
|
})]
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
function qr({ className: e, children: t, position: n = "popper", ...r }) {
|
|
1329
|
-
return /* @__PURE__ */ N(
|
|
1329
|
+
return /* @__PURE__ */ N(z.Portal, { children: /* @__PURE__ */ P(z.Content, {
|
|
1330
1330
|
"data-slot": "select-content",
|
|
1331
1331
|
className: v("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),
|
|
1332
1332
|
position: n,
|
|
1333
1333
|
...r,
|
|
1334
1334
|
children: [
|
|
1335
1335
|
/* @__PURE__ */ N(Zr, {}),
|
|
1336
|
-
/* @__PURE__ */ N(
|
|
1336
|
+
/* @__PURE__ */ N(z.Viewport, {
|
|
1337
1337
|
className: v("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
1338
1338
|
children: t
|
|
1339
1339
|
}),
|
|
@@ -1342,44 +1342,44 @@ function qr({ className: e, children: t, position: n = "popper", ...r }) {
|
|
|
1342
1342
|
}) });
|
|
1343
1343
|
}
|
|
1344
1344
|
function Jr({ className: e, ...t }) {
|
|
1345
|
-
return /* @__PURE__ */ N(
|
|
1345
|
+
return /* @__PURE__ */ N(z.Label, {
|
|
1346
1346
|
"data-slot": "select-label",
|
|
1347
1347
|
className: v("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
1348
1348
|
...t
|
|
1349
1349
|
});
|
|
1350
1350
|
}
|
|
1351
1351
|
function Yr({ className: e, children: t, ...n }) {
|
|
1352
|
-
return /* @__PURE__ */ P(
|
|
1352
|
+
return /* @__PURE__ */ P(z.Item, {
|
|
1353
1353
|
"data-slot": "select-item",
|
|
1354
1354
|
className: v("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 pr-8 pl-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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
1355
1355
|
...n,
|
|
1356
1356
|
children: [/* @__PURE__ */ N("span", {
|
|
1357
1357
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
1358
|
-
children: /* @__PURE__ */ N(
|
|
1359
|
-
}), /* @__PURE__ */ N(
|
|
1358
|
+
children: /* @__PURE__ */ N(z.ItemIndicator, { children: /* @__PURE__ */ N(he, { className: "size-4" }) })
|
|
1359
|
+
}), /* @__PURE__ */ N(z.ItemText, { children: t })]
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
1362
|
function Xr({ className: e, ...t }) {
|
|
1363
|
-
return /* @__PURE__ */ N(
|
|
1363
|
+
return /* @__PURE__ */ N(z.Separator, {
|
|
1364
1364
|
"data-slot": "select-separator",
|
|
1365
1365
|
className: v("bg-border pointer-events-none -mx-1 my-1 h-px", e),
|
|
1366
1366
|
...t
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
1369
|
function Zr({ className: e, ...t }) {
|
|
1370
|
-
return /* @__PURE__ */ N(
|
|
1370
|
+
return /* @__PURE__ */ N(z.ScrollUpButton, {
|
|
1371
1371
|
"data-slot": "select-scroll-up-button",
|
|
1372
1372
|
className: v("flex cursor-default items-center justify-center py-1", e),
|
|
1373
1373
|
...t,
|
|
1374
|
-
children: /* @__PURE__ */ N(
|
|
1374
|
+
children: /* @__PURE__ */ N(xe, { className: "size-4" })
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
1377
|
function Qr({ className: e, ...t }) {
|
|
1378
|
-
return /* @__PURE__ */ N(
|
|
1378
|
+
return /* @__PURE__ */ N(z.ScrollDownButton, {
|
|
1379
1379
|
"data-slot": "select-scroll-down-button",
|
|
1380
1380
|
className: v("flex cursor-default items-center justify-center py-1", e),
|
|
1381
1381
|
...t,
|
|
1382
|
-
children: /* @__PURE__ */ N(
|
|
1382
|
+
children: /* @__PURE__ */ N(_e, { className: "size-4" })
|
|
1383
1383
|
});
|
|
1384
1384
|
}
|
|
1385
1385
|
//#endregion
|
|
@@ -1417,21 +1417,21 @@ var $r = ({ size: e = "default", label: t, value: n, onChange: r, placeholder: i
|
|
|
1417
1417
|
//#endregion
|
|
1418
1418
|
//#region src/components/avatar/index.tsx
|
|
1419
1419
|
function ei({ className: e, ...t }) {
|
|
1420
|
-
return /* @__PURE__ */ N(
|
|
1420
|
+
return /* @__PURE__ */ N(St.Root, {
|
|
1421
1421
|
"data-slot": "avatar",
|
|
1422
1422
|
className: v("relative flex size-8 shrink-0 overflow-hidden rounded-md", e),
|
|
1423
1423
|
...t
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
function ti({ className: e, ...t }) {
|
|
1427
|
-
return /* @__PURE__ */ N(
|
|
1427
|
+
return /* @__PURE__ */ N(St.Image, {
|
|
1428
1428
|
"data-slot": "avatar-image",
|
|
1429
1429
|
className: v("aspect-square object-cover size-full", e),
|
|
1430
1430
|
...t
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
1433
|
function ni({ className: e, ...t }) {
|
|
1434
|
-
return /* @__PURE__ */ N(
|
|
1434
|
+
return /* @__PURE__ */ N(St.Fallback, {
|
|
1435
1435
|
"data-slot": "avatar-fallback",
|
|
1436
1436
|
className: v("bg-muted flex size-full items-center justify-center rounded-md", e),
|
|
1437
1437
|
...t
|
|
@@ -1442,7 +1442,7 @@ function ni({ className: e, ...t }) {
|
|
|
1442
1442
|
var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
1443
1443
|
let [a, o] = D(), [s, c] = D(), [l, u] = D(!1), d = E(null), f = S((e) => {
|
|
1444
1444
|
let { width: t, height: n } = e.currentTarget;
|
|
1445
|
-
o(
|
|
1445
|
+
o(zn(t, n, 1));
|
|
1446
1446
|
}, []);
|
|
1447
1447
|
return /* @__PURE__ */ N(xr, {
|
|
1448
1448
|
open: t,
|
|
@@ -1493,13 +1493,13 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
disabled: l,
|
|
1495
1495
|
size: "sm",
|
|
1496
|
-
children: [/* @__PURE__ */ N(
|
|
1496
|
+
children: [/* @__PURE__ */ N(vt, { className: "size-4 " }), "Cancelar"]
|
|
1497
1497
|
}), /* @__PURE__ */ P(e, {
|
|
1498
1498
|
onClick: async () => {
|
|
1499
1499
|
if (!(!s || !d.current)) {
|
|
1500
1500
|
u(!0);
|
|
1501
1501
|
try {
|
|
1502
|
-
i(await Vn(
|
|
1502
|
+
i(await Bn(Vn(d.current, s), "avatar.jpg")), n();
|
|
1503
1503
|
} catch (e) {
|
|
1504
1504
|
console.error("Error al procesar la imagen:", e);
|
|
1505
1505
|
} finally {
|
|
@@ -1509,7 +1509,7 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1509
1509
|
},
|
|
1510
1510
|
disabled: !s || l,
|
|
1511
1511
|
size: "sm",
|
|
1512
|
-
children: [l ? /* @__PURE__ */ N(
|
|
1512
|
+
children: [l ? /* @__PURE__ */ N(Ve, { className: "size-4 animate-spin" }) : /* @__PURE__ */ N(he, { className: "size-4 " }), l ? "Procesando..." : "Confirmar"]
|
|
1513
1513
|
})]
|
|
1514
1514
|
})
|
|
1515
1515
|
]
|
|
@@ -1549,7 +1549,7 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1549
1549
|
s(null), l(null), d(null), p(null), h(!1), n(void 0), g.current && (g.current.value = "");
|
|
1550
1550
|
},
|
|
1551
1551
|
className: "absolute -top-1 -right-1 bg-primary/20 backdrop-blur-lg text-destructive-foreground rounded-full p-1 hover:bg-primary/40 transition-colors",
|
|
1552
|
-
children: /* @__PURE__ */ N(
|
|
1552
|
+
children: /* @__PURE__ */ N(_t, { className: "size-3" })
|
|
1553
1553
|
})] }) : /* @__PURE__ */ N("span", {
|
|
1554
1554
|
className: "text-sm font-medium text-muted-foreground",
|
|
1555
1555
|
children: _
|
|
@@ -1589,7 +1589,7 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1589
1589
|
onClick: () => {
|
|
1590
1590
|
g.current?.click();
|
|
1591
1591
|
},
|
|
1592
|
-
children: [N(c ?
|
|
1592
|
+
children: [N(c ? Qe : $e, { className: "w-4 h-4" }), /* @__PURE__ */ N("span", { children: c ? "Cambiar foto" : "Agregar foto" })]
|
|
1593
1593
|
}),
|
|
1594
1594
|
o && /* @__PURE__ */ N("p", {
|
|
1595
1595
|
className: "text-xs text-muted-foreground",
|
|
@@ -1618,7 +1618,7 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1618
1618
|
})
|
|
1619
1619
|
]
|
|
1620
1620
|
});
|
|
1621
|
-
}, ai =
|
|
1621
|
+
}, ai = wt("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", {
|
|
1622
1622
|
variants: { variant: {
|
|
1623
1623
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
1624
1624
|
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
@@ -1628,7 +1628,7 @@ var ri = ({ isOpen: t, onClose: n, imageSrc: r, onCropComplete: i }) => {
|
|
|
1628
1628
|
defaultVariants: { variant: "default" }
|
|
1629
1629
|
});
|
|
1630
1630
|
function oi({ className: e, variant: t, asChild: n = !1, ...r }) {
|
|
1631
|
-
return /* @__PURE__ */ N(n ?
|
|
1631
|
+
return /* @__PURE__ */ N(n ? Ct : "span", {
|
|
1632
1632
|
"data-slot": "badge",
|
|
1633
1633
|
className: v(ai({ variant: t }), e),
|
|
1634
1634
|
...r
|
|
@@ -1658,7 +1658,7 @@ function li({ className: e, ...t }) {
|
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
1660
|
function ui({ asChild: e, className: t, ...n }) {
|
|
1661
|
-
return /* @__PURE__ */ N(e ?
|
|
1661
|
+
return /* @__PURE__ */ N(e ? Ct : "a", {
|
|
1662
1662
|
"data-slot": "breadcrumb-link",
|
|
1663
1663
|
className: v("hover:text-foreground transition-colors", t),
|
|
1664
1664
|
...n
|
|
@@ -1681,7 +1681,7 @@ function fi({ children: e, className: t, ...n }) {
|
|
|
1681
1681
|
"aria-hidden": "true",
|
|
1682
1682
|
className: v("[&>svg]:size-3.5", t),
|
|
1683
1683
|
...n,
|
|
1684
|
-
children: e ?? /* @__PURE__ */ N(
|
|
1684
|
+
children: e ?? /* @__PURE__ */ N(ye, {})
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
function pi({ className: e, ...t }) {
|
|
@@ -1691,7 +1691,7 @@ function pi({ className: e, ...t }) {
|
|
|
1691
1691
|
"aria-hidden": "true",
|
|
1692
1692
|
className: v("flex size-9 items-center justify-center", e),
|
|
1693
1693
|
...t,
|
|
1694
|
-
children: [/* @__PURE__ */ N(
|
|
1694
|
+
children: [/* @__PURE__ */ N(Ye, { className: "size-4" }), /* @__PURE__ */ N("span", {
|
|
1695
1695
|
className: "sr-only",
|
|
1696
1696
|
children: "More"
|
|
1697
1697
|
})]
|
|
@@ -1699,7 +1699,7 @@ function pi({ className: e, ...t }) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
//#endregion
|
|
1701
1701
|
//#region src/components/button_group/index.tsx
|
|
1702
|
-
var mi =
|
|
1702
|
+
var mi = wt("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2", {
|
|
1703
1703
|
variants: { orientation: {
|
|
1704
1704
|
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
1705
1705
|
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
@@ -1716,7 +1716,7 @@ function hi({ className: e, orientation: t, ...n }) {
|
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
1718
1718
|
function gi({ className: e, asChild: t = !1, ...n }) {
|
|
1719
|
-
return /* @__PURE__ */ N(t ?
|
|
1719
|
+
return /* @__PURE__ */ N(t ? Ct : "div", {
|
|
1720
1720
|
className: v("bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", e),
|
|
1721
1721
|
...n
|
|
1722
1722
|
});
|
|
@@ -1732,9 +1732,9 @@ function _i({ className: e, orientation: t = "vertical", ...n }) {
|
|
|
1732
1732
|
//#endregion
|
|
1733
1733
|
//#region src/components/calendar/index.tsx
|
|
1734
1734
|
function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: r = "label", buttonVariant: i = "ghost", formatters: a, components: o, ...s }) {
|
|
1735
|
-
let c =
|
|
1736
|
-
return /* @__PURE__ */ N(
|
|
1737
|
-
locale:
|
|
1735
|
+
let c = Et();
|
|
1736
|
+
return /* @__PURE__ */ N(Tt, {
|
|
1737
|
+
locale: Dt,
|
|
1738
1738
|
showOutsideDays: n,
|
|
1739
1739
|
className: v("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),
|
|
1740
1740
|
captionLayout: r,
|
|
@@ -1777,7 +1777,7 @@ function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
1777
1777
|
className: v(e),
|
|
1778
1778
|
...n
|
|
1779
1779
|
}),
|
|
1780
|
-
Chevron: ({ className: e, orientation: t, ...n }) => N(t === "left" ?
|
|
1780
|
+
Chevron: ({ className: e, orientation: t, ...n }) => N(t === "left" ? ve : t === "right" ? be : _e, {
|
|
1781
1781
|
className: v("size-4", e),
|
|
1782
1782
|
...n
|
|
1783
1783
|
}),
|
|
@@ -1795,7 +1795,7 @@ function vi({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
|
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
function yi({ className: t, day: n, modifiers: r, ...i }) {
|
|
1798
|
-
let a =
|
|
1798
|
+
let a = Et(), o = y.useRef(null);
|
|
1799
1799
|
return y.useEffect(() => {
|
|
1800
1800
|
r.focused && o.current?.focus();
|
|
1801
1801
|
}, [r.focused]), /* @__PURE__ */ N(e, {
|
|
@@ -1871,7 +1871,7 @@ function Oi() {
|
|
|
1871
1871
|
return e;
|
|
1872
1872
|
}
|
|
1873
1873
|
function ki({ orientation: e = "horizontal", opts: t, setApi: n, plugins: r, className: i, children: a, ...o }) {
|
|
1874
|
-
let [s, c] =
|
|
1874
|
+
let [s, c] = Ot({
|
|
1875
1875
|
...t,
|
|
1876
1876
|
axis: e === "horizontal" ? "x" : "y"
|
|
1877
1877
|
}, r), [l, u] = y.useState(!1), [d, f] = y.useState(!1), p = y.useCallback((e) => {
|
|
@@ -1943,7 +1943,7 @@ function Mi({ className: t, variant: n = "outline", size: r = "icon", ...i }) {
|
|
|
1943
1943
|
disabled: !s,
|
|
1944
1944
|
onClick: o,
|
|
1945
1945
|
...i,
|
|
1946
|
-
children: [/* @__PURE__ */ N(
|
|
1946
|
+
children: [/* @__PURE__ */ N(L, {}), /* @__PURE__ */ N("span", {
|
|
1947
1947
|
className: "sr-only",
|
|
1948
1948
|
children: "Previous slide"
|
|
1949
1949
|
})]
|
|
@@ -1959,7 +1959,7 @@ function Ni({ className: t, variant: n = "outline", size: r = "icon", ...i }) {
|
|
|
1959
1959
|
disabled: !s,
|
|
1960
1960
|
onClick: o,
|
|
1961
1961
|
...i,
|
|
1962
|
-
children: [/* @__PURE__ */ N(
|
|
1962
|
+
children: [/* @__PURE__ */ N(se, {}), /* @__PURE__ */ N("span", {
|
|
1963
1963
|
className: "sr-only",
|
|
1964
1964
|
children: "Next slide"
|
|
1965
1965
|
})]
|
|
@@ -1988,7 +1988,7 @@ function Li({ id: e, className: t, children: n, config: r, ...i }) {
|
|
|
1988
1988
|
children: [/* @__PURE__ */ N(Ri, {
|
|
1989
1989
|
id: o,
|
|
1990
1990
|
config: r
|
|
1991
|
-
}), /* @__PURE__ */ N(
|
|
1991
|
+
}), /* @__PURE__ */ N(kt.ResponsiveContainer, { children: n })]
|
|
1992
1992
|
})
|
|
1993
1993
|
});
|
|
1994
1994
|
}
|
|
@@ -2002,7 +2002,7 @@ ${n.map(([e, n]) => {
|
|
|
2002
2002
|
}).join("\n")}
|
|
2003
2003
|
}
|
|
2004
2004
|
`).join("\n") } }) : null;
|
|
2005
|
-
}, zi =
|
|
2005
|
+
}, zi = kt.Tooltip;
|
|
2006
2006
|
function Bi({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, color: u, nameKey: d, labelKey: f }) {
|
|
2007
2007
|
let { config: p } = Ii(), m = y.useMemo(() => {
|
|
2008
2008
|
if (i || !t?.length) return null;
|
|
@@ -2062,7 +2062,7 @@ function Bi({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
|
|
|
2062
2062
|
})]
|
|
2063
2063
|
});
|
|
2064
2064
|
}
|
|
2065
|
-
var Vi =
|
|
2065
|
+
var Vi = kt.Legend;
|
|
2066
2066
|
function Hi({ className: e, hideIcon: t = !1, payload: n, verticalAlign: r = "bottom", nameKey: i }) {
|
|
2067
2067
|
let { config: a } = Ii();
|
|
2068
2068
|
return n?.length ? /* @__PURE__ */ N("div", {
|
|
@@ -2087,17 +2087,17 @@ function Ui(e, t, n) {
|
|
|
2087
2087
|
//#endregion
|
|
2088
2088
|
//#region src/components/checkbox/index.tsx
|
|
2089
2089
|
function Wi({ className: e, ...t }) {
|
|
2090
|
-
return /* @__PURE__ */ N(
|
|
2090
|
+
return /* @__PURE__ */ N(At.Root, {
|
|
2091
2091
|
"data-slot": "checkbox",
|
|
2092
2092
|
className: v("group peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground data-[state=indeterminate]:border-input dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary dark:data-[state=indeterminate]:bg-background dark:data-[state=indeterminate]:border-input 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),
|
|
2093
2093
|
...t,
|
|
2094
|
-
children: /* @__PURE__ */ P(
|
|
2094
|
+
children: /* @__PURE__ */ P(At.Indicator, {
|
|
2095
2095
|
"data-slot": "checkbox-indicator",
|
|
2096
2096
|
className: "grid place-content-center text-current transition-none",
|
|
2097
|
-
children: [/* @__PURE__ */ N(
|
|
2097
|
+
children: [/* @__PURE__ */ N(he, {
|
|
2098
2098
|
className: "size-3 block group-data-[state=indeterminate]:hidden",
|
|
2099
2099
|
strokeWidth: 3
|
|
2100
|
-
}), /* @__PURE__ */ N(
|
|
2100
|
+
}), /* @__PURE__ */ N(Je, {
|
|
2101
2101
|
className: "size-3 hidden group-data-[state=indeterminate]:block",
|
|
2102
2102
|
strokeWidth: 3
|
|
2103
2103
|
})]
|
|
@@ -2107,19 +2107,19 @@ function Wi({ className: e, ...t }) {
|
|
|
2107
2107
|
//#endregion
|
|
2108
2108
|
//#region src/components/collapsible/index.tsx
|
|
2109
2109
|
function Gi({ ...e }) {
|
|
2110
|
-
return /* @__PURE__ */ N(
|
|
2110
|
+
return /* @__PURE__ */ N(jt.Root, {
|
|
2111
2111
|
"data-slot": "collapsible",
|
|
2112
2112
|
...e
|
|
2113
2113
|
});
|
|
2114
2114
|
}
|
|
2115
2115
|
function Ki({ ...e }) {
|
|
2116
|
-
return /* @__PURE__ */ N(
|
|
2116
|
+
return /* @__PURE__ */ N(jt.CollapsibleTrigger, {
|
|
2117
2117
|
"data-slot": "collapsible-trigger",
|
|
2118
2118
|
...e
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
2121
|
function qi({ ...e }) {
|
|
2122
|
-
return /* @__PURE__ */ N(
|
|
2122
|
+
return /* @__PURE__ */ N(jt.CollapsibleContent, {
|
|
2123
2123
|
"data-slot": "collapsible-content",
|
|
2124
2124
|
...e
|
|
2125
2125
|
});
|
|
@@ -2127,66 +2127,66 @@ function qi({ ...e }) {
|
|
|
2127
2127
|
//#endregion
|
|
2128
2128
|
//#region src/components/context_menu/index.tsx
|
|
2129
2129
|
function Ji({ ...e }) {
|
|
2130
|
-
return /* @__PURE__ */ N(
|
|
2130
|
+
return /* @__PURE__ */ N(B.Root, {
|
|
2131
2131
|
"data-slot": "context-menu",
|
|
2132
2132
|
...e
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
2135
|
function Yi({ ...e }) {
|
|
2136
|
-
return /* @__PURE__ */ N(
|
|
2136
|
+
return /* @__PURE__ */ N(B.Trigger, {
|
|
2137
2137
|
"data-slot": "context-menu-trigger",
|
|
2138
2138
|
...e
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
2141
2141
|
function Xi({ ...e }) {
|
|
2142
|
-
return /* @__PURE__ */ N(
|
|
2142
|
+
return /* @__PURE__ */ N(B.Group, {
|
|
2143
2143
|
"data-slot": "context-menu-group",
|
|
2144
2144
|
...e
|
|
2145
2145
|
});
|
|
2146
2146
|
}
|
|
2147
2147
|
function Zi({ ...e }) {
|
|
2148
|
-
return /* @__PURE__ */ N(
|
|
2148
|
+
return /* @__PURE__ */ N(B.Portal, {
|
|
2149
2149
|
"data-slot": "context-menu-portal",
|
|
2150
2150
|
...e
|
|
2151
2151
|
});
|
|
2152
2152
|
}
|
|
2153
2153
|
function Qi({ ...e }) {
|
|
2154
|
-
return /* @__PURE__ */ N(
|
|
2154
|
+
return /* @__PURE__ */ N(B.Sub, {
|
|
2155
2155
|
"data-slot": "context-menu-sub",
|
|
2156
2156
|
...e
|
|
2157
2157
|
});
|
|
2158
2158
|
}
|
|
2159
2159
|
function $i({ ...e }) {
|
|
2160
|
-
return /* @__PURE__ */ N(
|
|
2160
|
+
return /* @__PURE__ */ N(B.RadioGroup, {
|
|
2161
2161
|
"data-slot": "context-menu-radio-group",
|
|
2162
2162
|
...e
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
2165
|
function ea({ className: e, inset: t, children: n, ...r }) {
|
|
2166
|
-
return /* @__PURE__ */ P(
|
|
2166
|
+
return /* @__PURE__ */ P(B.SubTrigger, {
|
|
2167
2167
|
"data-slot": "context-menu-sub-trigger",
|
|
2168
2168
|
"data-inset": t,
|
|
2169
2169
|
className: v("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]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
2170
2170
|
...r,
|
|
2171
|
-
children: [n, /* @__PURE__ */ N(
|
|
2171
|
+
children: [n, /* @__PURE__ */ N(be, { className: "ml-auto" })]
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
2174
|
function ta({ className: e, ...t }) {
|
|
2175
|
-
return /* @__PURE__ */ N(
|
|
2175
|
+
return /* @__PURE__ */ N(B.SubContent, {
|
|
2176
2176
|
"data-slot": "context-menu-sub-content",
|
|
2177
2177
|
className: v("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-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
2178
2178
|
...t
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
function na({ className: e, ...t }) {
|
|
2182
|
-
return /* @__PURE__ */ N(
|
|
2182
|
+
return /* @__PURE__ */ N(B.Portal, { children: /* @__PURE__ */ N(B.Content, {
|
|
2183
2183
|
"data-slot": "context-menu-content",
|
|
2184
2184
|
className: v("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-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e),
|
|
2185
2185
|
...t
|
|
2186
2186
|
}) });
|
|
2187
2187
|
}
|
|
2188
2188
|
function ra({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
2189
|
-
return /* @__PURE__ */ N(
|
|
2189
|
+
return /* @__PURE__ */ N(B.Item, {
|
|
2190
2190
|
"data-slot": "context-menu-item",
|
|
2191
2191
|
"data-inset": t,
|
|
2192
2192
|
"data-variant": n,
|
|
@@ -2195,30 +2195,30 @@ function ra({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
|
2195
2195
|
});
|
|
2196
2196
|
}
|
|
2197
2197
|
function ia({ className: e, children: t, checked: n, ...r }) {
|
|
2198
|
-
return /* @__PURE__ */ P(
|
|
2198
|
+
return /* @__PURE__ */ P(B.CheckboxItem, {
|
|
2199
2199
|
"data-slot": "context-menu-checkbox-item",
|
|
2200
2200
|
className: v("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-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", e),
|
|
2201
2201
|
checked: n,
|
|
2202
2202
|
...r,
|
|
2203
2203
|
children: [/* @__PURE__ */ N("span", {
|
|
2204
2204
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
2205
|
-
children: /* @__PURE__ */ N(
|
|
2205
|
+
children: /* @__PURE__ */ N(B.ItemIndicator, { children: /* @__PURE__ */ N(he, { className: "size-4" }) })
|
|
2206
2206
|
}), t]
|
|
2207
2207
|
});
|
|
2208
2208
|
}
|
|
2209
2209
|
function aa({ className: e, children: t, ...n }) {
|
|
2210
|
-
return /* @__PURE__ */ P(
|
|
2210
|
+
return /* @__PURE__ */ P(B.RadioItem, {
|
|
2211
2211
|
"data-slot": "context-menu-radio-item",
|
|
2212
2212
|
className: v("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-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", e),
|
|
2213
2213
|
...n,
|
|
2214
2214
|
children: [/* @__PURE__ */ N("span", {
|
|
2215
2215
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
2216
|
-
children: /* @__PURE__ */ N(
|
|
2216
|
+
children: /* @__PURE__ */ N(B.ItemIndicator, { children: /* @__PURE__ */ N(Se, { className: "size-2 fill-current" }) })
|
|
2217
2217
|
}), t]
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
2220
|
function oa({ className: e, inset: t, ...n }) {
|
|
2221
|
-
return /* @__PURE__ */ N(
|
|
2221
|
+
return /* @__PURE__ */ N(B.Label, {
|
|
2222
2222
|
"data-slot": "context-menu-label",
|
|
2223
2223
|
"data-inset": t,
|
|
2224
2224
|
className: v("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
@@ -2226,7 +2226,7 @@ function oa({ className: e, inset: t, ...n }) {
|
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
2228
|
function sa({ className: e, ...t }) {
|
|
2229
|
-
return /* @__PURE__ */ N(
|
|
2229
|
+
return /* @__PURE__ */ N(B.Separator, {
|
|
2230
2230
|
"data-slot": "context-menu-separator",
|
|
2231
2231
|
className: v("bg-border -mx-1 my-1 h-px", e),
|
|
2232
2232
|
...t
|
|
@@ -3852,7 +3852,7 @@ var _o = {
|
|
|
3852
3852
|
}), wo = ({ value: e, placeholder: t, onClick: n, onClear: r }) => /* @__PURE__ */ P("div", {
|
|
3853
3853
|
className: "relative",
|
|
3854
3854
|
children: [
|
|
3855
|
-
/* @__PURE__ */ N(
|
|
3855
|
+
/* @__PURE__ */ N(fe, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" }),
|
|
3856
3856
|
/* @__PURE__ */ N(l, {
|
|
3857
3857
|
size: "sm",
|
|
3858
3858
|
placeholder: t,
|
|
@@ -3864,7 +3864,7 @@ var _o = {
|
|
|
3864
3864
|
e && /* @__PURE__ */ N("button", {
|
|
3865
3865
|
onClick: r,
|
|
3866
3866
|
className: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center size-4 hover:bg-border transition cursor-pointer rounded-full",
|
|
3867
|
-
children: /* @__PURE__ */ N(
|
|
3867
|
+
children: /* @__PURE__ */ N(_t, { className: "size-3" })
|
|
3868
3868
|
})
|
|
3869
3869
|
]
|
|
3870
3870
|
}), To = [
|
|
@@ -4005,19 +4005,19 @@ var _o = {
|
|
|
4005
4005
|
//#endregion
|
|
4006
4006
|
//#region src/components/popover/index.tsx
|
|
4007
4007
|
function Do({ ...e }) {
|
|
4008
|
-
return /* @__PURE__ */ N(
|
|
4008
|
+
return /* @__PURE__ */ N(Mt.Root, {
|
|
4009
4009
|
"data-slot": "popover",
|
|
4010
4010
|
...e
|
|
4011
4011
|
});
|
|
4012
4012
|
}
|
|
4013
4013
|
function Oo({ ...e }) {
|
|
4014
|
-
return /* @__PURE__ */ N(
|
|
4014
|
+
return /* @__PURE__ */ N(Mt.Trigger, {
|
|
4015
4015
|
"data-slot": "popover-trigger",
|
|
4016
4016
|
...e
|
|
4017
4017
|
});
|
|
4018
4018
|
}
|
|
4019
4019
|
function ko({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
4020
|
-
return /* @__PURE__ */ N(
|
|
4020
|
+
return /* @__PURE__ */ N(Mt.Portal, { children: /* @__PURE__ */ N(Mt.Content, {
|
|
4021
4021
|
"data-slot": "popover-content",
|
|
4022
4022
|
align: t,
|
|
4023
4023
|
sideOffset: n,
|
|
@@ -4026,7 +4026,7 @@ function ko({ className: e, align: t = "center", sideOffset: n = 4, ...r }) {
|
|
|
4026
4026
|
}) });
|
|
4027
4027
|
}
|
|
4028
4028
|
function Ao({ ...e }) {
|
|
4029
|
-
return /* @__PURE__ */ N(
|
|
4029
|
+
return /* @__PURE__ */ N(Mt.Anchor, {
|
|
4030
4030
|
"data-slot": "popover-anchor",
|
|
4031
4031
|
...e
|
|
4032
4032
|
});
|
|
@@ -4050,13 +4050,13 @@ var jo = ({ startDate: t, dueDate: n, onStartDateChange: r, onDueDateChange: i,
|
|
|
4050
4050
|
children: [
|
|
4051
4051
|
/* @__PURE__ */ N(Co, {
|
|
4052
4052
|
value: t,
|
|
4053
|
-
icon: t ?
|
|
4053
|
+
icon: t ? de : pe,
|
|
4054
4054
|
label: "Inicio"
|
|
4055
4055
|
}),
|
|
4056
|
-
/* @__PURE__ */ N(
|
|
4056
|
+
/* @__PURE__ */ N(se, { className: "size-3" }),
|
|
4057
4057
|
/* @__PURE__ */ N(Co, {
|
|
4058
4058
|
value: n,
|
|
4059
|
-
icon: n ?
|
|
4059
|
+
icon: n ? de : pe,
|
|
4060
4060
|
label: "Final"
|
|
4061
4061
|
})
|
|
4062
4062
|
]
|
|
@@ -4079,31 +4079,31 @@ var jo = ({ startDate: t, dueDate: n, onStartDateChange: r, onDueDateChange: i,
|
|
|
4079
4079
|
//#endregion
|
|
4080
4080
|
//#region src/components/drawer/index.tsx
|
|
4081
4081
|
function Mo({ ...e }) {
|
|
4082
|
-
return /* @__PURE__ */ N(
|
|
4082
|
+
return /* @__PURE__ */ N(Pt.Root, {
|
|
4083
4083
|
"data-slot": "drawer",
|
|
4084
4084
|
...e
|
|
4085
4085
|
});
|
|
4086
4086
|
}
|
|
4087
4087
|
function No({ ...e }) {
|
|
4088
|
-
return /* @__PURE__ */ N(
|
|
4088
|
+
return /* @__PURE__ */ N(Pt.Trigger, {
|
|
4089
4089
|
"data-slot": "drawer-trigger",
|
|
4090
4090
|
...e
|
|
4091
4091
|
});
|
|
4092
4092
|
}
|
|
4093
4093
|
function Po({ ...e }) {
|
|
4094
|
-
return /* @__PURE__ */ N(
|
|
4094
|
+
return /* @__PURE__ */ N(Pt.Portal, {
|
|
4095
4095
|
"data-slot": "drawer-portal",
|
|
4096
4096
|
...e
|
|
4097
4097
|
});
|
|
4098
4098
|
}
|
|
4099
4099
|
function Fo({ ...e }) {
|
|
4100
|
-
return /* @__PURE__ */ N(
|
|
4100
|
+
return /* @__PURE__ */ N(Pt.Close, {
|
|
4101
4101
|
"data-slot": "drawer-close",
|
|
4102
4102
|
...e
|
|
4103
4103
|
});
|
|
4104
4104
|
}
|
|
4105
4105
|
function Io({ className: e, ...t }) {
|
|
4106
|
-
return /* @__PURE__ */ N(
|
|
4106
|
+
return /* @__PURE__ */ N(Pt.Overlay, {
|
|
4107
4107
|
"data-slot": "drawer-overlay",
|
|
4108
4108
|
className: v("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),
|
|
4109
4109
|
...t
|
|
@@ -4112,7 +4112,7 @@ function Io({ className: e, ...t }) {
|
|
|
4112
4112
|
function Lo({ className: e, children: t, ...n }) {
|
|
4113
4113
|
return /* @__PURE__ */ P(Po, {
|
|
4114
4114
|
"data-slot": "drawer-portal",
|
|
4115
|
-
children: [/* @__PURE__ */ N(Io, {}), /* @__PURE__ */ P(
|
|
4115
|
+
children: [/* @__PURE__ */ N(Io, {}), /* @__PURE__ */ P(Pt.Content, {
|
|
4116
4116
|
"data-slot": "drawer-content",
|
|
4117
4117
|
className: v("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
|
|
4118
4118
|
...n,
|
|
@@ -4135,14 +4135,14 @@ function zo({ className: e, ...t }) {
|
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
4137
|
function Bo({ className: e, ...t }) {
|
|
4138
|
-
return /* @__PURE__ */ N(
|
|
4138
|
+
return /* @__PURE__ */ N(Pt.Title, {
|
|
4139
4139
|
"data-slot": "drawer-title",
|
|
4140
4140
|
className: v("text-foreground font-semibold", e),
|
|
4141
4141
|
...t
|
|
4142
4142
|
});
|
|
4143
4143
|
}
|
|
4144
4144
|
function Vo({ className: e, ...t }) {
|
|
4145
|
-
return /* @__PURE__ */ N(
|
|
4145
|
+
return /* @__PURE__ */ N(Pt.Description, {
|
|
4146
4146
|
"data-slot": "drawer-description",
|
|
4147
4147
|
className: v("text-muted-foreground text-sm", e),
|
|
4148
4148
|
...t
|
|
@@ -4150,7 +4150,7 @@ function Vo({ className: e, ...t }) {
|
|
|
4150
4150
|
}
|
|
4151
4151
|
//#endregion
|
|
4152
4152
|
//#region src/components/dropdown_menu/index.tsx
|
|
4153
|
-
var Ho =
|
|
4153
|
+
var Ho = wt("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 rounded-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
4154
4154
|
variants: { size: {
|
|
4155
4155
|
default: "gap-2 px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4",
|
|
4156
4156
|
sm: "gap-1.5 px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-3.5"
|
|
@@ -4158,25 +4158,25 @@ var Ho = Tt("focus:bg-accent focus:text-accent-foreground data-[variant=destruct
|
|
|
4158
4158
|
defaultVariants: { size: "default" }
|
|
4159
4159
|
});
|
|
4160
4160
|
function Uo({ ...e }) {
|
|
4161
|
-
return /* @__PURE__ */ N(
|
|
4161
|
+
return /* @__PURE__ */ N(V.Root, {
|
|
4162
4162
|
"data-slot": "dropdown-menu",
|
|
4163
4163
|
...e
|
|
4164
4164
|
});
|
|
4165
4165
|
}
|
|
4166
4166
|
function Wo({ ...e }) {
|
|
4167
|
-
return /* @__PURE__ */ N(
|
|
4167
|
+
return /* @__PURE__ */ N(V.Portal, {
|
|
4168
4168
|
"data-slot": "dropdown-menu-portal",
|
|
4169
4169
|
...e
|
|
4170
4170
|
});
|
|
4171
4171
|
}
|
|
4172
4172
|
function Go({ ...e }) {
|
|
4173
|
-
return /* @__PURE__ */ N(
|
|
4173
|
+
return /* @__PURE__ */ N(V.Trigger, {
|
|
4174
4174
|
"data-slot": "dropdown-menu-trigger",
|
|
4175
4175
|
...e
|
|
4176
4176
|
});
|
|
4177
4177
|
}
|
|
4178
4178
|
function Ko({ className: e, sideOffset: t = 4, ...n }) {
|
|
4179
|
-
return /* @__PURE__ */ N(
|
|
4179
|
+
return /* @__PURE__ */ N(V.Portal, { children: /* @__PURE__ */ N(V.Content, {
|
|
4180
4180
|
"data-slot": "dropdown-menu-content",
|
|
4181
4181
|
sideOffset: t,
|
|
4182
4182
|
className: v("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-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e),
|
|
@@ -4184,13 +4184,13 @@ function Ko({ className: e, sideOffset: t = 4, ...n }) {
|
|
|
4184
4184
|
}) });
|
|
4185
4185
|
}
|
|
4186
4186
|
function qo({ ...e }) {
|
|
4187
|
-
return /* @__PURE__ */ N(
|
|
4187
|
+
return /* @__PURE__ */ N(V.Group, {
|
|
4188
4188
|
"data-slot": "dropdown-menu-group",
|
|
4189
4189
|
...e
|
|
4190
4190
|
});
|
|
4191
4191
|
}
|
|
4192
4192
|
function Jo({ className: e, inset: t, variant: n = "default", size: r = "default", ...i }) {
|
|
4193
|
-
return /* @__PURE__ */ N(
|
|
4193
|
+
return /* @__PURE__ */ N(V.Item, {
|
|
4194
4194
|
"data-slot": "dropdown-menu-item",
|
|
4195
4195
|
"data-inset": t,
|
|
4196
4196
|
"data-variant": n,
|
|
@@ -4200,36 +4200,36 @@ function Jo({ className: e, inset: t, variant: n = "default", size: r = "default
|
|
|
4200
4200
|
});
|
|
4201
4201
|
}
|
|
4202
4202
|
function Yo({ className: e, children: t, checked: n, ...r }) {
|
|
4203
|
-
return /* @__PURE__ */ P(
|
|
4203
|
+
return /* @__PURE__ */ P(V.CheckboxItem, {
|
|
4204
4204
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
4205
4205
|
className: v("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-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", e),
|
|
4206
4206
|
checked: n,
|
|
4207
4207
|
...r,
|
|
4208
4208
|
children: [/* @__PURE__ */ N("span", {
|
|
4209
4209
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
4210
|
-
children: /* @__PURE__ */ N(
|
|
4210
|
+
children: /* @__PURE__ */ N(V.ItemIndicator, { children: /* @__PURE__ */ N(he, { className: "size-4" }) })
|
|
4211
4211
|
}), t]
|
|
4212
4212
|
});
|
|
4213
4213
|
}
|
|
4214
4214
|
function Xo({ ...e }) {
|
|
4215
|
-
return /* @__PURE__ */ N(
|
|
4215
|
+
return /* @__PURE__ */ N(V.RadioGroup, {
|
|
4216
4216
|
"data-slot": "dropdown-menu-radio-group",
|
|
4217
4217
|
...e
|
|
4218
4218
|
});
|
|
4219
4219
|
}
|
|
4220
4220
|
function Zo({ className: e, children: t, ...n }) {
|
|
4221
|
-
return /* @__PURE__ */ P(
|
|
4221
|
+
return /* @__PURE__ */ P(V.RadioItem, {
|
|
4222
4222
|
"data-slot": "dropdown-menu-radio-item",
|
|
4223
4223
|
className: v("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-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", e),
|
|
4224
4224
|
...n,
|
|
4225
4225
|
children: [/* @__PURE__ */ N("span", {
|
|
4226
4226
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
4227
|
-
children: /* @__PURE__ */ N(
|
|
4227
|
+
children: /* @__PURE__ */ N(V.ItemIndicator, { children: /* @__PURE__ */ N(Se, { className: "size-2 fill-current" }) })
|
|
4228
4228
|
}), t]
|
|
4229
4229
|
});
|
|
4230
4230
|
}
|
|
4231
4231
|
function Qo({ className: e, inset: t, ...n }) {
|
|
4232
|
-
return /* @__PURE__ */ N(
|
|
4232
|
+
return /* @__PURE__ */ N(V.Label, {
|
|
4233
4233
|
"data-slot": "dropdown-menu-label",
|
|
4234
4234
|
"data-inset": t,
|
|
4235
4235
|
className: v("px-2 py-1.5 text-sm font-medium data-inset:pl-8", e),
|
|
@@ -4237,7 +4237,7 @@ function Qo({ className: e, inset: t, ...n }) {
|
|
|
4237
4237
|
});
|
|
4238
4238
|
}
|
|
4239
4239
|
function $o({ className: e, ...t }) {
|
|
4240
|
-
return /* @__PURE__ */ N(
|
|
4240
|
+
return /* @__PURE__ */ N(V.Separator, {
|
|
4241
4241
|
"data-slot": "dropdown-menu-separator",
|
|
4242
4242
|
className: v("bg-border -mx-1 my-1 h-px", e),
|
|
4243
4243
|
...t
|
|
@@ -4251,22 +4251,22 @@ function es({ className: e, ...t }) {
|
|
|
4251
4251
|
});
|
|
4252
4252
|
}
|
|
4253
4253
|
function ts({ ...e }) {
|
|
4254
|
-
return /* @__PURE__ */ N(
|
|
4254
|
+
return /* @__PURE__ */ N(V.Sub, {
|
|
4255
4255
|
"data-slot": "dropdown-menu-sub",
|
|
4256
4256
|
...e
|
|
4257
4257
|
});
|
|
4258
4258
|
}
|
|
4259
4259
|
function ns({ className: e, inset: t, children: n, ...r }) {
|
|
4260
|
-
return /* @__PURE__ */ P(
|
|
4260
|
+
return /* @__PURE__ */ P(V.SubTrigger, {
|
|
4261
4261
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
4262
4262
|
"data-inset": t,
|
|
4263
4263
|
className: v("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:pl-8", e),
|
|
4264
4264
|
...r,
|
|
4265
|
-
children: [n, /* @__PURE__ */ N(
|
|
4265
|
+
children: [n, /* @__PURE__ */ N(be, { className: "ml-auto size-4" })]
|
|
4266
4266
|
});
|
|
4267
4267
|
}
|
|
4268
4268
|
function rs({ className: e, ...t }) {
|
|
4269
|
-
return /* @__PURE__ */ N(
|
|
4269
|
+
return /* @__PURE__ */ N(V.SubContent, {
|
|
4270
4270
|
"data-slot": "dropdown-menu-sub-content",
|
|
4271
4271
|
className: v("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-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
4272
4272
|
...t
|
|
@@ -4275,7 +4275,7 @@ function rs({ className: e, ...t }) {
|
|
|
4275
4275
|
//#endregion
|
|
4276
4276
|
//#region src/components/emoji_picker/index.tsx
|
|
4277
4277
|
function is({ className: e, ...t }) {
|
|
4278
|
-
return /* @__PURE__ */ N(
|
|
4278
|
+
return /* @__PURE__ */ N(Ft.Root, {
|
|
4279
4279
|
locale: "es",
|
|
4280
4280
|
className: v("bg-popover text-popover-foreground isolate flex h-full w-fit flex-col overflow-hidden rounded-md", e),
|
|
4281
4281
|
"data-slot": "emoji-picker",
|
|
@@ -4286,7 +4286,7 @@ function as({ className: e, ...t }) {
|
|
|
4286
4286
|
return /* @__PURE__ */ P("div", {
|
|
4287
4287
|
className: v("flex h-9 items-center gap-2 border-b px-3", e),
|
|
4288
4288
|
"data-slot": "emoji-picker-search-wrapper",
|
|
4289
|
-
children: [/* @__PURE__ */ N(
|
|
4289
|
+
children: [/* @__PURE__ */ N(at, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ N(Ft.Search, {
|
|
4290
4290
|
className: "outline-hidden placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",
|
|
4291
4291
|
"data-slot": "emoji-picker-search",
|
|
4292
4292
|
...t
|
|
@@ -4318,22 +4318,22 @@ function cs({ category: e, ...t }) {
|
|
|
4318
4318
|
});
|
|
4319
4319
|
}
|
|
4320
4320
|
function ls({ className: e, ...t }) {
|
|
4321
|
-
return /* @__PURE__ */ P(
|
|
4321
|
+
return /* @__PURE__ */ P(Ft.Viewport, {
|
|
4322
4322
|
className: v("outline-hidden relative flex-1", e),
|
|
4323
4323
|
"data-slot": "emoji-picker-viewport",
|
|
4324
4324
|
...t,
|
|
4325
4325
|
children: [
|
|
4326
|
-
/* @__PURE__ */ N(
|
|
4326
|
+
/* @__PURE__ */ N(Ft.Loading, {
|
|
4327
4327
|
className: "absolute inset-0 flex items-center justify-center text-muted-foreground",
|
|
4328
4328
|
"data-slot": "emoji-picker-loading",
|
|
4329
|
-
children: /* @__PURE__ */ N(
|
|
4329
|
+
children: /* @__PURE__ */ N(He, { className: "size-4 animate-spin" })
|
|
4330
4330
|
}),
|
|
4331
|
-
/* @__PURE__ */ N(
|
|
4331
|
+
/* @__PURE__ */ N(Ft.Empty, {
|
|
4332
4332
|
className: "absolute inset-0 flex items-center justify-center text-muted-foreground text-sm",
|
|
4333
4333
|
"data-slot": "emoji-picker-empty",
|
|
4334
4334
|
children: "Emoji no encontrado."
|
|
4335
4335
|
}),
|
|
4336
|
-
/* @__PURE__ */ N(
|
|
4336
|
+
/* @__PURE__ */ N(Ft.List, {
|
|
4337
4337
|
className: "select-none pb-1",
|
|
4338
4338
|
components: {
|
|
4339
4339
|
Row: os,
|
|
@@ -4350,7 +4350,7 @@ function us({ className: e, ...t }) {
|
|
|
4350
4350
|
className: v("max-w-(--frimousse-viewport-width) flex w-full min-w-0 items-center gap-1 border-t p-2", e),
|
|
4351
4351
|
"data-slot": "emoji-picker-footer",
|
|
4352
4352
|
...t,
|
|
4353
|
-
children: /* @__PURE__ */ N(
|
|
4353
|
+
children: /* @__PURE__ */ N(Ft.ActiveEmoji, { children: ({ emoji: e }) => e ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("div", {
|
|
4354
4354
|
className: "flex size-7 flex-none items-center justify-center text-lg",
|
|
4355
4355
|
children: e.emoji
|
|
4356
4356
|
}), /* @__PURE__ */ N("span", {
|
|
@@ -4443,7 +4443,7 @@ var ds = ({ onFilesChange: e, files: t = [], acceptedTypes: n = ["*"], maxFiles:
|
|
|
4443
4443
|
className: "hidden",
|
|
4444
4444
|
disabled: o
|
|
4445
4445
|
}), c || /* @__PURE__ */ P(M, { children: [
|
|
4446
|
-
/* @__PURE__ */ N(
|
|
4446
|
+
/* @__PURE__ */ N(De, { className: `mx-auto size-12 transition-colors duration-200 ${l ? "text-foreground" : "text-muted-foreground"}` }),
|
|
4447
4447
|
/* @__PURE__ */ N("span", {
|
|
4448
4448
|
className: "mt-2 block text-sm transition-colors duration-200 text-foreground",
|
|
4449
4449
|
children: l ? "Suelta los archivos aquí" : "Arrastra y suelta archivos aquí o haz click para seleccionar"
|
|
@@ -4491,7 +4491,7 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4491
4491
|
return (async () => {
|
|
4492
4492
|
r(!0);
|
|
4493
4493
|
let { iconsData: n } = await import("./icons_data-BHKds1ja.js").then((e) => e.t);
|
|
4494
|
-
e && (t(n.filter((e) => e.name in
|
|
4494
|
+
e && (t(n.filter((e) => e.name in Lt)), r(!1));
|
|
4495
4495
|
})(), () => {
|
|
4496
4496
|
e = !1;
|
|
4497
4497
|
};
|
|
@@ -4500,7 +4500,7 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4500
4500
|
isLoading: n
|
|
4501
4501
|
};
|
|
4502
4502
|
}, gs = y.forwardRef(({ value: t, defaultValue: n, onValueChange: r, open: i, defaultOpen: a, onOpenChange: o, children: s, searchable: c = !0, searchPlaceholder: u = "Buscar icono...", triggerPlaceholder: d = "Seleccionar icono", iconsList: f, categorized: p = !0, modal: m = !1, ...h }, g) => {
|
|
4503
|
-
let [_, b] = D(n), [x, C] = D(a || !1), [w, ee] =
|
|
4503
|
+
let [_, b] = D(n), [x, C] = D(a || !1), [w, ee] = Bt("", 100), [E, te] = D(!1), { icons: ne } = hs(), [re, O] = D(!0), k = T(() => f || ne, [f, ne]), A = T(() => new zt(k, {
|
|
4504
4504
|
keys: [
|
|
4505
4505
|
"name",
|
|
4506
4506
|
"tags",
|
|
@@ -4558,63 +4558,63 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4558
4558
|
return ie.forEach((t, n) => {
|
|
4559
4559
|
t.type === "category" && (e[F[t.categoryIndex].name] = n);
|
|
4560
4560
|
}), e;
|
|
4561
|
-
}, [ie, F]),
|
|
4561
|
+
}, [ie, F]), I = y.useRef(null), L = Rt({
|
|
4562
4562
|
count: ie.length,
|
|
4563
|
-
getScrollElement: () =>
|
|
4563
|
+
getScrollElement: () => I.current,
|
|
4564
4564
|
estimateSize: (e) => (ie[e].type, 25),
|
|
4565
4565
|
paddingEnd: 0,
|
|
4566
4566
|
gap: 0,
|
|
4567
4567
|
overscan: 0
|
|
4568
|
-
}),
|
|
4568
|
+
}), oe = S((e) => {
|
|
4569
4569
|
t === void 0 && b(e), r?.(e);
|
|
4570
|
-
}, [t, r]),
|
|
4570
|
+
}, [t, r]), se = S((e) => {
|
|
4571
4571
|
ee(""), i === void 0 && C(e), o?.(e), te(e), e && setTimeout(() => {
|
|
4572
|
-
|
|
4572
|
+
L.measure(), O(!1);
|
|
4573
4573
|
}, 1);
|
|
4574
4574
|
}, [
|
|
4575
4575
|
i,
|
|
4576
4576
|
o,
|
|
4577
|
-
|
|
4578
|
-
]),
|
|
4579
|
-
|
|
4580
|
-
}, [
|
|
4581
|
-
ee(e.target.value),
|
|
4582
|
-
}, [
|
|
4577
|
+
L
|
|
4578
|
+
]), ce = S((e) => {
|
|
4579
|
+
oe(e), C(!1), ee("");
|
|
4580
|
+
}, [oe]), le = S((e) => {
|
|
4581
|
+
ee(e.target.value), I.current && (I.current.scrollTop = 0), L.scrollToOffset(0);
|
|
4582
|
+
}, [L]), ue = S((e) => {
|
|
4583
4583
|
let t = ae[e];
|
|
4584
|
-
t !== void 0 &&
|
|
4584
|
+
t !== void 0 && L && L.scrollToIndex(t, {
|
|
4585
4585
|
align: "start",
|
|
4586
4586
|
behavior: "smooth"
|
|
4587
4587
|
});
|
|
4588
|
-
}, [ae,
|
|
4588
|
+
}, [ae, L]), de = T(() => !p || w.trim() !== "" ? null : F.map((t) => /* @__PURE__ */ N(e, {
|
|
4589
4589
|
variant: "outline",
|
|
4590
4590
|
size: "sm",
|
|
4591
4591
|
className: "text-xs",
|
|
4592
4592
|
onClick: (e) => {
|
|
4593
|
-
e.stopPropagation(),
|
|
4593
|
+
e.stopPropagation(), ue(t.name);
|
|
4594
4594
|
},
|
|
4595
4595
|
children: t.name.charAt(0).toUpperCase() + t.name.slice(1)
|
|
4596
4596
|
}, t.name)), [
|
|
4597
4597
|
F,
|
|
4598
|
-
|
|
4598
|
+
ue,
|
|
4599
4599
|
p,
|
|
4600
4600
|
w
|
|
4601
|
-
]),
|
|
4601
|
+
]), fe = S((e) => /* @__PURE__ */ N("button", {
|
|
4602
4602
|
type: "button",
|
|
4603
4603
|
className: v("size-7 p-1.5 rounded-md transition-all duration-200", "flex items-center justify-center", "hover:bg-accent/50", "active:scale-90", (t || _) === e.name ? "bg-primary text-primary-foreground shadow-sm" : "text-foreground hover:shadow-md"),
|
|
4604
|
-
onClick: () =>
|
|
4604
|
+
onClick: () => ce(e.name),
|
|
4605
4605
|
title: e.name,
|
|
4606
4606
|
children: /* @__PURE__ */ N(ps, { name: e.name })
|
|
4607
4607
|
}, e.name), [
|
|
4608
|
-
|
|
4608
|
+
ce,
|
|
4609
4609
|
t,
|
|
4610
4610
|
_
|
|
4611
|
-
]),
|
|
4611
|
+
]), pe = S(() => j.length === 0 ? /* @__PURE__ */ N("div", {
|
|
4612
4612
|
className: "text-center py-10 text-muted-foreground text-sm",
|
|
4613
4613
|
children: "No se encontraron iconos"
|
|
4614
4614
|
}) : /* @__PURE__ */ N("div", {
|
|
4615
4615
|
className: "relative w-full overscroll-contain",
|
|
4616
|
-
style: { height: `${
|
|
4617
|
-
children:
|
|
4616
|
+
style: { height: `${L.getTotalSize()}px` },
|
|
4617
|
+
children: L.getVirtualItems().map((e) => {
|
|
4618
4618
|
let t = ie[e.index];
|
|
4619
4619
|
if (!t) return null;
|
|
4620
4620
|
let n = {
|
|
@@ -4639,32 +4639,32 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4639
4639
|
children: /* @__PURE__ */ N("div", {
|
|
4640
4640
|
className: "grid w-full gap-0",
|
|
4641
4641
|
style: { gridTemplateColumns: `repeat(${fs}, minmax(0, 1fr))` },
|
|
4642
|
-
children: t.icons.map(
|
|
4642
|
+
children: t.icons.map(fe)
|
|
4643
4643
|
})
|
|
4644
4644
|
}, e.key);
|
|
4645
4645
|
})
|
|
4646
4646
|
}), [
|
|
4647
|
-
|
|
4647
|
+
L,
|
|
4648
4648
|
ie,
|
|
4649
4649
|
F,
|
|
4650
4650
|
j,
|
|
4651
|
-
|
|
4651
|
+
fe
|
|
4652
4652
|
]);
|
|
4653
4653
|
return y.useEffect(() => {
|
|
4654
4654
|
if (E) {
|
|
4655
4655
|
O(!0);
|
|
4656
4656
|
let e = setTimeout(() => {
|
|
4657
|
-
O(!1),
|
|
4657
|
+
O(!1), L.measure();
|
|
4658
4658
|
}, 10), t = new ResizeObserver(() => {
|
|
4659
|
-
|
|
4659
|
+
L.measure();
|
|
4660
4660
|
});
|
|
4661
|
-
return
|
|
4661
|
+
return I.current && t.observe(I.current), () => {
|
|
4662
4662
|
clearTimeout(e), t.disconnect();
|
|
4663
4663
|
};
|
|
4664
4664
|
}
|
|
4665
|
-
}, [E,
|
|
4665
|
+
}, [E, L]), /* @__PURE__ */ P(Do, {
|
|
4666
4666
|
open: i ?? x,
|
|
4667
|
-
onOpenChange:
|
|
4667
|
+
onOpenChange: se,
|
|
4668
4668
|
modal: m,
|
|
4669
4669
|
children: [/* @__PURE__ */ N(Oo, {
|
|
4670
4670
|
ref: g,
|
|
@@ -4689,9 +4689,9 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4689
4689
|
className: "p-2 border-b bg-muted/30",
|
|
4690
4690
|
children: /* @__PURE__ */ P("div", {
|
|
4691
4691
|
className: "relative",
|
|
4692
|
-
children: [/* @__PURE__ */ N(
|
|
4692
|
+
children: [/* @__PURE__ */ N(it, { className: "absolute left-2 top-1/2 size-4 -translate-y-1/2 text-muted-foreground pointer-events-none" }), /* @__PURE__ */ N(l, {
|
|
4693
4693
|
placeholder: u,
|
|
4694
|
-
onChange:
|
|
4694
|
+
onChange: le,
|
|
4695
4695
|
size: "sm",
|
|
4696
4696
|
className: "h-7 pl-8 bg-background focus-visible:ring-primary/20"
|
|
4697
4697
|
})]
|
|
@@ -4700,14 +4700,14 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4700
4700
|
className: "flex flex-col",
|
|
4701
4701
|
children: [p && w.trim() === "" && /* @__PURE__ */ N("div", {
|
|
4702
4702
|
className: "flex flex-row gap-1.5 p-2 overflow-x-auto border-b bg-muted/10 no-scrollbar",
|
|
4703
|
-
children:
|
|
4703
|
+
children: de
|
|
4704
4704
|
}), /* @__PURE__ */ N(jr, {
|
|
4705
4705
|
className: "h-[250px]",
|
|
4706
|
-
viewportRef:
|
|
4706
|
+
viewportRef: I,
|
|
4707
4707
|
onWheel: (e) => e.stopPropagation(),
|
|
4708
4708
|
children: /* @__PURE__ */ N("div", {
|
|
4709
4709
|
className: "py-2",
|
|
4710
|
-
children: re ? /* @__PURE__ */ N(ms, {}) :
|
|
4710
|
+
children: re ? /* @__PURE__ */ N(ms, {}) : pe()
|
|
4711
4711
|
})
|
|
4712
4712
|
})]
|
|
4713
4713
|
})]
|
|
@@ -4715,7 +4715,7 @@ var ms = () => /* @__PURE__ */ P("div", {
|
|
|
4715
4715
|
});
|
|
4716
4716
|
});
|
|
4717
4717
|
gs.displayName = "IconPicker";
|
|
4718
|
-
var _s = y.forwardRef(({ name: e, ...t }, n) => /* @__PURE__ */ N(
|
|
4718
|
+
var _s = y.forwardRef(({ name: e, ...t }, n) => /* @__PURE__ */ N(It, {
|
|
4719
4719
|
name: e,
|
|
4720
4720
|
strokeWidth: 2,
|
|
4721
4721
|
...t,
|
|
@@ -5236,7 +5236,7 @@ var vs = ({ className: e }) => /* @__PURE__ */ P("svg", {
|
|
|
5236
5236
|
});
|
|
5237
5237
|
}, Cs = ({ info: e }) => /* @__PURE__ */ P(c, { children: [/* @__PURE__ */ N(i, {
|
|
5238
5238
|
className: "p-1! bg-secondary rounded-md",
|
|
5239
|
-
children: /* @__PURE__ */ N(
|
|
5239
|
+
children: /* @__PURE__ */ N(Fe, { className: "size-3 text-secondary-foreground" })
|
|
5240
5240
|
}), /* @__PURE__ */ N(g, {
|
|
5241
5241
|
className: "max-w-xs w-full",
|
|
5242
5242
|
children: /* @__PURE__ */ N("p", {
|
|
@@ -5247,7 +5247,7 @@ var vs = ({ className: e }) => /* @__PURE__ */ P("svg", {
|
|
|
5247
5247
|
//#endregion
|
|
5248
5248
|
//#region src/components/input_otp/index.tsx
|
|
5249
5249
|
function ws({ className: e, containerClassName: t, ...n }) {
|
|
5250
|
-
return /* @__PURE__ */ N(
|
|
5250
|
+
return /* @__PURE__ */ N(Vt, {
|
|
5251
5251
|
"data-slot": "input-otp",
|
|
5252
5252
|
containerClassName: v("flex items-center gap-2 has-disabled:opacity-50", t),
|
|
5253
5253
|
className: v("disabled:cursor-not-allowed", e),
|
|
@@ -5262,7 +5262,7 @@ function Ts({ className: e, ...t }) {
|
|
|
5262
5262
|
});
|
|
5263
5263
|
}
|
|
5264
5264
|
function Es({ index: e, className: t, ...n }) {
|
|
5265
|
-
let { char: r, hasFakeCaret: i, isActive: a } = y.useContext(
|
|
5265
|
+
let { char: r, hasFakeCaret: i, isActive: a } = y.useContext(Ht)?.slots[e] ?? {};
|
|
5266
5266
|
return /* @__PURE__ */ P("div", {
|
|
5267
5267
|
"data-slot": "input-otp-slot",
|
|
5268
5268
|
"data-active": a,
|
|
@@ -5279,7 +5279,7 @@ function Ds({ ...e }) {
|
|
|
5279
5279
|
"data-slot": "input-otp-separator",
|
|
5280
5280
|
role: "separator",
|
|
5281
5281
|
...e,
|
|
5282
|
-
children: /* @__PURE__ */ N(
|
|
5282
|
+
children: /* @__PURE__ */ N(Je, {})
|
|
5283
5283
|
});
|
|
5284
5284
|
}
|
|
5285
5285
|
//#endregion
|
|
@@ -5378,7 +5378,7 @@ var js = ({ className: e }) => /* @__PURE__ */ P("svg", {
|
|
|
5378
5378
|
})
|
|
5379
5379
|
});
|
|
5380
5380
|
};
|
|
5381
|
-
delete
|
|
5381
|
+
delete Jt.Icon.Default.prototype._getIconUrl, Jt.Icon.Default.mergeOptions({
|
|
5382
5382
|
iconRetinaUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon-2x.png",
|
|
5383
5383
|
iconUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon.png",
|
|
5384
5384
|
shadowUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-shadow.png"
|
|
@@ -5410,7 +5410,7 @@ var Is = class extends b.Component {
|
|
|
5410
5410
|
}) : this.props.children;
|
|
5411
5411
|
}
|
|
5412
5412
|
}, Ls = ({ onPlaceSelect: e, placeholder: t = "Buscar ubicación..." }) => {
|
|
5413
|
-
let [n, r] = D(""), [i, a] = D(!1), o =
|
|
5413
|
+
let [n, r] = D(""), [i, a] = D(!1), o = In(n, 300), [s, c] = D([]);
|
|
5414
5414
|
C(() => {
|
|
5415
5415
|
o ? fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(o)}&limit=5&accept-language=es&addressdetails=1&countrycodes=mx,es,ar,co,pe,cl,ve,ec,bo,py,uy,cr,pa,gt,hn,sv,ni,cu,do,pr`).then((e) => e.json()).then((e) => {
|
|
5416
5416
|
c(e), a(e.length > 0);
|
|
@@ -5433,7 +5433,7 @@ var Is = class extends b.Component {
|
|
|
5433
5433
|
return /* @__PURE__ */ P("div", {
|
|
5434
5434
|
className: "relative z-50",
|
|
5435
5435
|
children: [
|
|
5436
|
-
/* @__PURE__ */ N(
|
|
5436
|
+
/* @__PURE__ */ N(at, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground size-4" }),
|
|
5437
5437
|
/* @__PURE__ */ N(l, {
|
|
5438
5438
|
value: n,
|
|
5439
5439
|
onInput: u,
|
|
@@ -5449,7 +5449,7 @@ var Is = class extends b.Component {
|
|
|
5449
5449
|
onClick: () => d(e),
|
|
5450
5450
|
children: /* @__PURE__ */ P("div", {
|
|
5451
5451
|
className: "flex items-center gap-2",
|
|
5452
|
-
children: [/* @__PURE__ */ N(
|
|
5452
|
+
children: [/* @__PURE__ */ N(Ue, { className: "size-4 text-muted-foreground flex-shrink-0" }), /* @__PURE__ */ N("span", {
|
|
5453
5453
|
className: "truncate text-popover-foreground",
|
|
5454
5454
|
children: e.display_name
|
|
5455
5455
|
})]
|
|
@@ -5479,7 +5479,7 @@ var Is = class extends b.Component {
|
|
|
5479
5479
|
}
|
|
5480
5480
|
return {};
|
|
5481
5481
|
}, []);
|
|
5482
|
-
return
|
|
5482
|
+
return qt({ click: async (n) => {
|
|
5483
5483
|
let r = n.latlng.lat, i = n.latlng.lng;
|
|
5484
5484
|
e({
|
|
5485
5485
|
lat: r,
|
|
@@ -5488,7 +5488,7 @@ var Is = class extends b.Component {
|
|
|
5488
5488
|
});
|
|
5489
5489
|
} }), null;
|
|
5490
5490
|
}, zs = ({ location: e }) => {
|
|
5491
|
-
let t =
|
|
5491
|
+
let t = Kt();
|
|
5492
5492
|
return C(() => {
|
|
5493
5493
|
t && e && t.setView([e.lat, e.lng]);
|
|
5494
5494
|
}, [
|
|
@@ -5518,7 +5518,7 @@ var Is = class extends b.Component {
|
|
|
5518
5518
|
}, [t, r]);
|
|
5519
5519
|
return /* @__PURE__ */ N("div", {
|
|
5520
5520
|
"data-testid": "map-container",
|
|
5521
|
-
children: /* @__PURE__ */ P(
|
|
5521
|
+
children: /* @__PURE__ */ P(Ut, {
|
|
5522
5522
|
center: [e.lat, e.lng],
|
|
5523
5523
|
zoom: 15,
|
|
5524
5524
|
style: {
|
|
@@ -5526,11 +5526,11 @@ var Is = class extends b.Component {
|
|
|
5526
5526
|
height: "300px"
|
|
5527
5527
|
},
|
|
5528
5528
|
children: [
|
|
5529
|
-
/* @__PURE__ */ N(
|
|
5529
|
+
/* @__PURE__ */ N(Gt, {
|
|
5530
5530
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
5531
5531
|
attribution: "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
|
|
5532
5532
|
}),
|
|
5533
|
-
/* @__PURE__ */ N(
|
|
5533
|
+
/* @__PURE__ */ N(Wt, {
|
|
5534
5534
|
position: [e.lat, e.lng],
|
|
5535
5535
|
draggable: !0,
|
|
5536
5536
|
eventHandlers: { dragend: i },
|
|
@@ -5570,7 +5570,7 @@ var Is = class extends b.Component {
|
|
|
5570
5570
|
className: "bg-muted p-3 rounded-md",
|
|
5571
5571
|
children: /* @__PURE__ */ P("div", {
|
|
5572
5572
|
className: "flex items-start gap-2",
|
|
5573
|
-
children: [/* @__PURE__ */ N(
|
|
5573
|
+
children: [/* @__PURE__ */ N(Ue, { className: "size-4 text-muted-foreground mt-0.5 flex-shrink-0" }), /* @__PURE__ */ P("div", {
|
|
5574
5574
|
className: "text-sm text-foreground",
|
|
5575
5575
|
children: [
|
|
5576
5576
|
/* @__PURE__ */ N("p", {
|
|
@@ -5622,7 +5622,7 @@ var Is = class extends b.Component {
|
|
|
5622
5622
|
className: "flex items-start justify-between gap-2",
|
|
5623
5623
|
children: [/* @__PURE__ */ P("div", {
|
|
5624
5624
|
className: "flex items-start gap-2 flex-1",
|
|
5625
|
-
children: [/* @__PURE__ */ N(
|
|
5625
|
+
children: [/* @__PURE__ */ N(Ue, { className: "size-4 text-muted-foreground mt-0.5 flex-shrink-0" }), /* @__PURE__ */ P("div", {
|
|
5626
5626
|
className: "text-sm",
|
|
5627
5627
|
children: [/* @__PURE__ */ N("p", {
|
|
5628
5628
|
className: "font-medium text-foreground",
|
|
@@ -5644,7 +5644,7 @@ var Is = class extends b.Component {
|
|
|
5644
5644
|
n?.(void 0);
|
|
5645
5645
|
},
|
|
5646
5646
|
className: "h-6 w-6 p-0 text-muted-foreground hover:text-foreground",
|
|
5647
|
-
children: /* @__PURE__ */ N(
|
|
5647
|
+
children: /* @__PURE__ */ N(vt, { className: "size-3" })
|
|
5648
5648
|
})]
|
|
5649
5649
|
})
|
|
5650
5650
|
}),
|
|
@@ -5680,7 +5680,7 @@ var Is = class extends b.Component {
|
|
|
5680
5680
|
})
|
|
5681
5681
|
] });
|
|
5682
5682
|
};
|
|
5683
|
-
delete
|
|
5683
|
+
delete Jt.Icon.Default.prototype._getIconUrl, Jt.Icon.Default.mergeOptions({
|
|
5684
5684
|
iconRetinaUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon-2x.png",
|
|
5685
5685
|
iconUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-icon.png",
|
|
5686
5686
|
shadowUrl: "https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/images/marker-shadow.png"
|
|
@@ -5688,17 +5688,17 @@ delete Yt.Icon.Default.prototype._getIconUrl, Yt.Icon.Default.mergeOptions({
|
|
|
5688
5688
|
var Us = ({ lat: e = 19.4326, lng: t = -99.1332, zoom: n = 15, className: r = "", height: i = 300 }) => /* @__PURE__ */ N("div", {
|
|
5689
5689
|
className: r,
|
|
5690
5690
|
"data-testid": "map-view",
|
|
5691
|
-
children: /* @__PURE__ */ P(
|
|
5691
|
+
children: /* @__PURE__ */ P(Ut, {
|
|
5692
5692
|
center: [e, t],
|
|
5693
5693
|
zoom: n,
|
|
5694
5694
|
style: {
|
|
5695
5695
|
width: "100%",
|
|
5696
5696
|
height: `${i}px`
|
|
5697
5697
|
},
|
|
5698
|
-
children: [/* @__PURE__ */ N(
|
|
5698
|
+
children: [/* @__PURE__ */ N(Gt, {
|
|
5699
5699
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
|
|
5700
5700
|
attribution: "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
|
|
5701
|
-
}), /* @__PURE__ */ N(
|
|
5701
|
+
}), /* @__PURE__ */ N(Wt, { position: [e, t] })]
|
|
5702
5702
|
})
|
|
5703
5703
|
});
|
|
5704
5704
|
//#endregion
|
|
@@ -5743,7 +5743,7 @@ function Js({ className: e, ...t }) {
|
|
|
5743
5743
|
size: "default",
|
|
5744
5744
|
className: v("gap-1 px-2.5 sm:pl-2.5", e),
|
|
5745
5745
|
...t,
|
|
5746
|
-
children: [/* @__PURE__ */ N(
|
|
5746
|
+
children: [/* @__PURE__ */ N(ve, {}), /* @__PURE__ */ N("span", {
|
|
5747
5747
|
className: "hidden sm:block",
|
|
5748
5748
|
children: "Anterior"
|
|
5749
5749
|
})]
|
|
@@ -5758,7 +5758,7 @@ function Ys({ className: e, ...t }) {
|
|
|
5758
5758
|
children: [/* @__PURE__ */ N("span", {
|
|
5759
5759
|
className: "hidden sm:block",
|
|
5760
5760
|
children: "Siguiente"
|
|
5761
|
-
}), /* @__PURE__ */ N(
|
|
5761
|
+
}), /* @__PURE__ */ N(be, {})]
|
|
5762
5762
|
});
|
|
5763
5763
|
}
|
|
5764
5764
|
function Xs({ className: e, ...t }) {
|
|
@@ -5767,7 +5767,7 @@ function Xs({ className: e, ...t }) {
|
|
|
5767
5767
|
"data-slot": "pagination-ellipsis",
|
|
5768
5768
|
className: v("flex size-9 items-center justify-center", e),
|
|
5769
5769
|
...t,
|
|
5770
|
-
children: [/* @__PURE__ */ N(
|
|
5770
|
+
children: [/* @__PURE__ */ N(Xe, { className: "size-4" }), /* @__PURE__ */ N("span", {
|
|
5771
5771
|
className: "sr-only",
|
|
5772
5772
|
children: "More pages"
|
|
5773
5773
|
})]
|
|
@@ -5802,11 +5802,11 @@ var Zs = ({ setPage: e, pagination: t }) => /* @__PURE__ */ N(M, { children: t &
|
|
|
5802
5802
|
//#endregion
|
|
5803
5803
|
//#region src/components/progress/index.tsx
|
|
5804
5804
|
function Qs({ className: e, value: t, ...n }) {
|
|
5805
|
-
return /* @__PURE__ */ N(
|
|
5805
|
+
return /* @__PURE__ */ N(Yt.Root, {
|
|
5806
5806
|
"data-slot": "progress",
|
|
5807
5807
|
className: v("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", e),
|
|
5808
5808
|
...n,
|
|
5809
|
-
children: /* @__PURE__ */ N(
|
|
5809
|
+
children: /* @__PURE__ */ N(Yt.Indicator, {
|
|
5810
5810
|
"data-slot": "progress-indicator",
|
|
5811
5811
|
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
5812
5812
|
style: { transform: `translateX(-${100 - (t || 0)}%)` }
|
|
@@ -5816,47 +5816,47 @@ function Qs({ className: e, value: t, ...n }) {
|
|
|
5816
5816
|
//#endregion
|
|
5817
5817
|
//#region src/components/radio_group/index.tsx
|
|
5818
5818
|
function $s({ className: e, ...t }) {
|
|
5819
|
-
return /* @__PURE__ */ N(
|
|
5819
|
+
return /* @__PURE__ */ N(Xt.Root, {
|
|
5820
5820
|
"data-slot": "radio-group",
|
|
5821
5821
|
className: v("grid gap-3", e),
|
|
5822
5822
|
...t
|
|
5823
5823
|
});
|
|
5824
5824
|
}
|
|
5825
5825
|
function ec({ className: e, ...t }) {
|
|
5826
|
-
return /* @__PURE__ */ N(
|
|
5826
|
+
return /* @__PURE__ */ N(Xt.Item, {
|
|
5827
5827
|
"data-slot": "radio-group-item",
|
|
5828
5828
|
className: v("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),
|
|
5829
5829
|
...t,
|
|
5830
|
-
children: /* @__PURE__ */ N(
|
|
5830
|
+
children: /* @__PURE__ */ N(Xt.Indicator, {
|
|
5831
5831
|
"data-slot": "radio-group-indicator",
|
|
5832
5832
|
className: "relative flex items-center justify-center",
|
|
5833
|
-
children: /* @__PURE__ */ N(
|
|
5833
|
+
children: /* @__PURE__ */ N(Se, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
5834
5834
|
})
|
|
5835
5835
|
});
|
|
5836
5836
|
}
|
|
5837
5837
|
//#endregion
|
|
5838
5838
|
//#region src/components/resizable/index.tsx
|
|
5839
5839
|
function tc({ className: e, ...t }) {
|
|
5840
|
-
return /* @__PURE__ */ N(
|
|
5840
|
+
return /* @__PURE__ */ N(Zt.PanelGroup, {
|
|
5841
5841
|
"data-slot": "resizable-panel-group",
|
|
5842
5842
|
className: v("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e),
|
|
5843
5843
|
...t
|
|
5844
5844
|
});
|
|
5845
5845
|
}
|
|
5846
5846
|
function nc({ ...e }) {
|
|
5847
|
-
return /* @__PURE__ */ N(
|
|
5847
|
+
return /* @__PURE__ */ N(Zt.Panel, {
|
|
5848
5848
|
"data-slot": "resizable-panel",
|
|
5849
5849
|
...e
|
|
5850
5850
|
});
|
|
5851
5851
|
}
|
|
5852
5852
|
function rc({ withHandle: e, className: t, ...n }) {
|
|
5853
|
-
return /* @__PURE__ */ N(
|
|
5853
|
+
return /* @__PURE__ */ N(Zt.PanelResizeHandle, {
|
|
5854
5854
|
"data-slot": "resizable-handle",
|
|
5855
5855
|
className: v("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", t),
|
|
5856
5856
|
...n,
|
|
5857
5857
|
children: e && /* @__PURE__ */ N("div", {
|
|
5858
5858
|
className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
|
|
5859
|
-
children: /* @__PURE__ */ N(
|
|
5859
|
+
children: /* @__PURE__ */ N(Oe, { className: "size-2.5" })
|
|
5860
5860
|
})
|
|
5861
5861
|
});
|
|
5862
5862
|
}
|
|
@@ -5869,7 +5869,7 @@ function ic({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
5869
5869
|
r,
|
|
5870
5870
|
i
|
|
5871
5871
|
]);
|
|
5872
|
-
return /* @__PURE__ */ P(
|
|
5872
|
+
return /* @__PURE__ */ P(Qt.Root, {
|
|
5873
5873
|
"data-slot": "slider",
|
|
5874
5874
|
defaultValue: t,
|
|
5875
5875
|
value: n,
|
|
@@ -5877,14 +5877,14 @@ function ic({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
5877
5877
|
max: i,
|
|
5878
5878
|
className: v("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
|
|
5879
5879
|
...a,
|
|
5880
|
-
children: [/* @__PURE__ */ N(
|
|
5880
|
+
children: [/* @__PURE__ */ N(Qt.Track, {
|
|
5881
5881
|
"data-slot": "slider-track",
|
|
5882
5882
|
className: v("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
5883
|
-
children: /* @__PURE__ */ N(
|
|
5883
|
+
children: /* @__PURE__ */ N(Qt.Range, {
|
|
5884
5884
|
"data-slot": "slider-range",
|
|
5885
5885
|
className: v("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
5886
5886
|
})
|
|
5887
|
-
}), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ N(
|
|
5887
|
+
}), Array.from({ length: o.length }, (e, t) => /* @__PURE__ */ N(Qt.Thumb, {
|
|
5888
5888
|
"data-slot": "slider-thumb",
|
|
5889
5889
|
className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
5890
5890
|
}, t))]
|
|
@@ -5892,7 +5892,7 @@ function ic({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
5892
5892
|
}
|
|
5893
5893
|
//#endregion
|
|
5894
5894
|
//#region src/components/sonner/index.tsx
|
|
5895
|
-
var ac = ({ ...e }) => /* @__PURE__ */ N(
|
|
5895
|
+
var ac = ({ ...e }) => /* @__PURE__ */ N($t, {
|
|
5896
5896
|
className: "toaster group",
|
|
5897
5897
|
toastOptions: {
|
|
5898
5898
|
unstyled: !0,
|
|
@@ -6006,28 +6006,28 @@ function hc({ className: e, ...t }) {
|
|
|
6006
6006
|
//#endregion
|
|
6007
6007
|
//#region src/components/tabs/index.tsx
|
|
6008
6008
|
function gc({ className: e, ...t }) {
|
|
6009
|
-
return /* @__PURE__ */ N(
|
|
6009
|
+
return /* @__PURE__ */ N(tn.Root, {
|
|
6010
6010
|
"data-slot": "tabs",
|
|
6011
6011
|
className: v("flex flex-col gap-2", e),
|
|
6012
6012
|
...t
|
|
6013
6013
|
});
|
|
6014
6014
|
}
|
|
6015
6015
|
function _c({ className: e, ...t }) {
|
|
6016
|
-
return /* @__PURE__ */ N(
|
|
6016
|
+
return /* @__PURE__ */ N(tn.List, {
|
|
6017
6017
|
"data-slot": "tabs-list",
|
|
6018
6018
|
className: v("bg-muted text-muted-foreground inline-flex h-8 w-fit items-center justify-center rounded-md p-[3px]", e),
|
|
6019
6019
|
...t
|
|
6020
6020
|
});
|
|
6021
6021
|
}
|
|
6022
6022
|
function vc({ className: e, ...t }) {
|
|
6023
|
-
return /* @__PURE__ */ N(
|
|
6023
|
+
return /* @__PURE__ */ N(tn.Trigger, {
|
|
6024
6024
|
"data-slot": "tabs-trigger",
|
|
6025
6025
|
className: v("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),
|
|
6026
6026
|
...t
|
|
6027
6027
|
});
|
|
6028
6028
|
}
|
|
6029
6029
|
function yc({ className: e, ...t }) {
|
|
6030
|
-
return /* @__PURE__ */ N(
|
|
6030
|
+
return /* @__PURE__ */ N(tn.Content, {
|
|
6031
6031
|
"data-slot": "tabs-content",
|
|
6032
6032
|
className: v("flex-1 outline-none", e),
|
|
6033
6033
|
...t
|
|
@@ -6044,7 +6044,7 @@ function bc({ className: e, ...t }) {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
//#endregion
|
|
6046
6046
|
//#region src/components/toggle/index.tsx
|
|
6047
|
-
var xc =
|
|
6047
|
+
var xc = wt("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
6048
6048
|
variants: {
|
|
6049
6049
|
variant: {
|
|
6050
6050
|
default: "bg-transparent",
|
|
@@ -6062,7 +6062,7 @@ var xc = Tt("inline-flex items-center justify-center gap-2 rounded-md text-sm fo
|
|
|
6062
6062
|
}
|
|
6063
6063
|
});
|
|
6064
6064
|
function Sc({ className: e, variant: t, size: n, ...r }) {
|
|
6065
|
-
return /* @__PURE__ */ N(
|
|
6065
|
+
return /* @__PURE__ */ N(nn.Root, {
|
|
6066
6066
|
"data-slot": "toggle",
|
|
6067
6067
|
className: v(xc({
|
|
6068
6068
|
variant: t,
|
|
@@ -6097,25 +6097,25 @@ var Cc = (e) => {
|
|
|
6097
6097
|
}
|
|
6098
6098
|
}, wc = (e, t, n = ["imageUpload", "horizontalRule"]) => {
|
|
6099
6099
|
let r = t || e.state.selection;
|
|
6100
|
-
if (!r || r.empty || r instanceof
|
|
6100
|
+
if (!r || r.empty || r instanceof dn) return !1;
|
|
6101
6101
|
let { $from: i, $to: a } = r, o = [];
|
|
6102
6102
|
return e.state.doc.nodesBetween(i.pos, a.pos, (e) => {
|
|
6103
6103
|
o.push(e.type.name);
|
|
6104
6104
|
}), !(o.some((e) => n.includes(e)) || o.includes("codeBlock"));
|
|
6105
6105
|
}, Tc = ({ editor: e, shouldShow: t, floatingOptions: n = {}, zIndex: r = 50, onOpenChange: i, referenceElement: a, getBoundingClientRect: o = Cc, closeOnEscape: s = !0, children: c, style: l, className: u }) => {
|
|
6106
|
-
let [d, f] = y.useState(!1), { refs: p, floatingStyles: m, update: h } =
|
|
6106
|
+
let [d, f] = y.useState(!1), { refs: p, floatingStyles: m, update: h } = ln({
|
|
6107
6107
|
open: t ?? d,
|
|
6108
6108
|
onOpenChange: (e) => {
|
|
6109
6109
|
f(e), i?.(e);
|
|
6110
6110
|
},
|
|
6111
6111
|
strategy: "fixed",
|
|
6112
6112
|
middleware: [
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6113
|
+
sn(10),
|
|
6114
|
+
an({ fallbackAxisSideDirection: "end" }),
|
|
6115
|
+
cn({ limiter: on() }),
|
|
6116
6116
|
...n.middleware || []
|
|
6117
6117
|
],
|
|
6118
|
-
whileElementsMounted:
|
|
6118
|
+
whileElementsMounted: rn,
|
|
6119
6119
|
...n
|
|
6120
6120
|
});
|
|
6121
6121
|
return y.useEffect(() => {
|
|
@@ -6156,7 +6156,7 @@ var Cc = (e) => {
|
|
|
6156
6156
|
d,
|
|
6157
6157
|
t,
|
|
6158
6158
|
i
|
|
6159
|
-
]), !(t ?? d) || !e ? null :
|
|
6159
|
+
]), !(t ?? d) || !e ? null : un(/* @__PURE__ */ N("div", {
|
|
6160
6160
|
ref: p.setFloating,
|
|
6161
6161
|
className: u,
|
|
6162
6162
|
style: {
|
|
@@ -6177,63 +6177,63 @@ var Cc = (e) => {
|
|
|
6177
6177
|
{
|
|
6178
6178
|
title: "Texto",
|
|
6179
6179
|
description: "Comienza a escribir texto plano",
|
|
6180
|
-
icon:
|
|
6180
|
+
icon: ye,
|
|
6181
6181
|
keywords: "parrafo texto paragraph text",
|
|
6182
6182
|
command: (e) => e.chain().focus().clearNodes().run()
|
|
6183
6183
|
},
|
|
6184
6184
|
{
|
|
6185
6185
|
title: "Título 1",
|
|
6186
6186
|
description: "Título de sección grande",
|
|
6187
|
-
icon:
|
|
6187
|
+
icon: ke,
|
|
6188
6188
|
keywords: "h1 titulo cabecera title header",
|
|
6189
6189
|
command: (e) => e.chain().focus().toggleHeading({ level: 1 }).run()
|
|
6190
6190
|
},
|
|
6191
6191
|
{
|
|
6192
6192
|
title: "Título 2",
|
|
6193
6193
|
description: "Título de sección mediano",
|
|
6194
|
-
icon:
|
|
6194
|
+
icon: Ae,
|
|
6195
6195
|
keywords: "h2 subtitulo subtitle",
|
|
6196
6196
|
command: (e) => e.chain().focus().toggleHeading({ level: 2 }).run()
|
|
6197
6197
|
},
|
|
6198
6198
|
{
|
|
6199
6199
|
title: "Título 3",
|
|
6200
6200
|
description: "Título de sección pequeño",
|
|
6201
|
-
icon:
|
|
6201
|
+
icon: je,
|
|
6202
6202
|
keywords: "h3 subcabecera subheader",
|
|
6203
6203
|
command: (e) => e.chain().focus().toggleHeading({ level: 3 }).run()
|
|
6204
6204
|
},
|
|
6205
6205
|
{
|
|
6206
6206
|
title: "Lista de viñetas",
|
|
6207
6207
|
description: "Crea una lista con viñetas simple",
|
|
6208
|
-
icon:
|
|
6208
|
+
icon: ze,
|
|
6209
6209
|
keywords: "lista viñetas puntos unordered ul bullets",
|
|
6210
6210
|
command: (e) => e.chain().focus().toggleBulletList().run()
|
|
6211
6211
|
},
|
|
6212
6212
|
{
|
|
6213
6213
|
title: "Lista numerada",
|
|
6214
6214
|
description: "Crea una lista ordenada",
|
|
6215
|
-
icon:
|
|
6215
|
+
icon: Be,
|
|
6216
6216
|
keywords: "lista numero ordenada numbered ol",
|
|
6217
6217
|
command: (e) => e.chain().focus().toggleOrderedList().run()
|
|
6218
6218
|
},
|
|
6219
6219
|
{
|
|
6220
6220
|
title: "Bloque de código",
|
|
6221
6221
|
description: "Captura fragmentos de código",
|
|
6222
|
-
icon:
|
|
6222
|
+
icon: we,
|
|
6223
6223
|
keywords: "codigo fragmento snippet pre",
|
|
6224
6224
|
command: (e) => e.chain().focus().toggleCodeBlock().run()
|
|
6225
6225
|
},
|
|
6226
6226
|
{
|
|
6227
6227
|
title: "Imagen",
|
|
6228
6228
|
description: "Inserta una imagen",
|
|
6229
|
-
icon:
|
|
6229
|
+
icon: Pe,
|
|
6230
6230
|
keywords: "imagen foto fotografia image picture photo",
|
|
6231
6231
|
command: (e) => e.chain().focus().insertImagePlaceholder().run()
|
|
6232
6232
|
},
|
|
6233
6233
|
{
|
|
6234
6234
|
title: "Línea horizontal",
|
|
6235
6235
|
description: "Añade un divisor horizontal",
|
|
6236
|
-
icon:
|
|
6236
|
+
icon: qe,
|
|
6237
6237
|
keywords: "linea horizontal divisor rule divider",
|
|
6238
6238
|
command: (e) => e.chain().focus().setHorizontalRule().run()
|
|
6239
6239
|
}
|
|
@@ -6244,13 +6244,13 @@ var Cc = (e) => {
|
|
|
6244
6244
|
items: [{
|
|
6245
6245
|
title: "Cita",
|
|
6246
6246
|
description: "Captura una cita",
|
|
6247
|
-
icon:
|
|
6247
|
+
icon: et,
|
|
6248
6248
|
keywords: "cita blockquote cite",
|
|
6249
6249
|
command: (e) => e.chain().focus().toggleBlockquote().run()
|
|
6250
6250
|
}, {
|
|
6251
6251
|
title: "Código inline",
|
|
6252
6252
|
description: "Fragmento de código en línea",
|
|
6253
|
-
icon:
|
|
6253
|
+
icon: Te,
|
|
6254
6254
|
keywords: "codigo inline",
|
|
6255
6255
|
command: (e) => e.chain().focus().toggleCode().run()
|
|
6256
6256
|
}]
|
|
@@ -6275,7 +6275,7 @@ var Cc = (e) => {
|
|
|
6275
6275
|
{
|
|
6276
6276
|
title: "Alinear a la derecha",
|
|
6277
6277
|
description: "Alinea el texto a la derecha",
|
|
6278
|
-
icon:
|
|
6278
|
+
icon: I,
|
|
6279
6279
|
keywords: "alinear derecha right",
|
|
6280
6280
|
command: (e) => e.chain().focus().setTextAlign("right").run()
|
|
6281
6281
|
}
|
|
@@ -6283,7 +6283,7 @@ var Cc = (e) => {
|
|
|
6283
6283
|
}
|
|
6284
6284
|
];
|
|
6285
6285
|
function Dc({ editor: e }) {
|
|
6286
|
-
let [t, n] = D(!1), [r, i] = D(""), a =
|
|
6286
|
+
let [t, n] = D(!1), [r, i] = D(""), a = In(r, 300), o = E(null), [s, c] = D(-1), [l, u] = D(!1), d = E([]), f = T(() => Ec.map((e) => ({
|
|
6287
6287
|
...e,
|
|
6288
6288
|
items: e.items.filter((e) => e.title.toLowerCase().includes(a.toLowerCase()) || e.description.toLowerCase().includes(a.toLowerCase()) || e.keywords.toLowerCase().includes(a.toLowerCase()))
|
|
6289
6289
|
})).filter((e) => e.items.length > 0), [a]), p = T(() => f.flatMap((e) => e.items), [f]), m = S((t) => {
|
|
@@ -6371,7 +6371,7 @@ function Dc({ editor: e }) {
|
|
|
6371
6371
|
className: "py-3 text-center text-sm text-muted-foreground h-[300px] flex items-center justify-center",
|
|
6372
6372
|
children: /* @__PURE__ */ P("div", {
|
|
6373
6373
|
className: "flex flex-col items-center gap-2",
|
|
6374
|
-
children: [/* @__PURE__ */ N(
|
|
6374
|
+
children: [/* @__PURE__ */ N(ot, { className: "size-7" }), /* @__PURE__ */ P("p", {
|
|
6375
6375
|
className: "text-sm text-center",
|
|
6376
6376
|
children: [
|
|
6377
6377
|
"No se encontraron",
|
|
@@ -6437,7 +6437,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6437
6437
|
variant: "ghost",
|
|
6438
6438
|
size: "sm",
|
|
6439
6439
|
className: v("h-8 w-max gap-1 px-3 font-normal", r),
|
|
6440
|
-
children: [t, /* @__PURE__ */ N(
|
|
6440
|
+
children: [t, /* @__PURE__ */ N(ge, { className: "h-4 w-4" })]
|
|
6441
6441
|
})
|
|
6442
6442
|
}), /* @__PURE__ */ P(Lo, { children: [/* @__PURE__ */ N(Ro, { children: /* @__PURE__ */ N(Bo, {
|
|
6443
6443
|
className: "text-start",
|
|
@@ -6473,7 +6473,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6473
6473
|
children: t
|
|
6474
6474
|
});
|
|
6475
6475
|
}, Mc = () => {
|
|
6476
|
-
let { editor: t } = q(), n =
|
|
6476
|
+
let { editor: t } = q(), n = Ln("(max-width: 640px)"), r = (e) => {
|
|
6477
6477
|
t?.chain().focus().setTextAlign(e).run();
|
|
6478
6478
|
}, a = t?.isActive("image") || t?.isActive("video") || !t, o = () => t?.isActive({ textAlign: "left" }) ? "left" : t?.isActive({ textAlign: "center" }) ? "center" : t?.isActive({ textAlign: "right" }) ? "right" : t?.isActive({ textAlign: "justify" }) ? "justify" : "left", s = [
|
|
6479
6479
|
{
|
|
@@ -6489,7 +6489,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6489
6489
|
{
|
|
6490
6490
|
name: "Derecha",
|
|
6491
6491
|
value: "right",
|
|
6492
|
-
icon: /* @__PURE__ */ N(
|
|
6492
|
+
icon: /* @__PURE__ */ N(I, { className: "h-4 w-4" })
|
|
6493
6493
|
},
|
|
6494
6494
|
{
|
|
6495
6495
|
name: "Justificar",
|
|
@@ -6522,7 +6522,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6522
6522
|
children: s[l(o())]?.icon
|
|
6523
6523
|
}),
|
|
6524
6524
|
s[l(o())]?.name,
|
|
6525
|
-
/* @__PURE__ */ N(
|
|
6525
|
+
/* @__PURE__ */ N(ge, { className: "ml-2 h-4 w-4" })
|
|
6526
6526
|
]
|
|
6527
6527
|
})
|
|
6528
6528
|
})
|
|
@@ -6543,7 +6543,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6543
6543
|
children: e.icon
|
|
6544
6544
|
}),
|
|
6545
6545
|
e.name,
|
|
6546
|
-
e.value === o() && /* @__PURE__ */ N(
|
|
6546
|
+
e.value === o() && /* @__PURE__ */ N(me, { className: "ml-auto h-4 w-4" })
|
|
6547
6547
|
]
|
|
6548
6548
|
}, t))
|
|
6549
6549
|
})
|
|
@@ -6562,7 +6562,7 @@ var Oc = ({ label: t, children: n, className: r }) => {
|
|
|
6562
6562
|
disabled: !s?.can().toggleBlockquote(),
|
|
6563
6563
|
ref: o,
|
|
6564
6564
|
...a,
|
|
6565
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6565
|
+
children: r ?? /* @__PURE__ */ N(lt, { className: "h-4 w-4" })
|
|
6566
6566
|
})
|
|
6567
6567
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Cita" }) })] });
|
|
6568
6568
|
});
|
|
@@ -6583,7 +6583,7 @@ var Pc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
6583
6583
|
disabled: !s?.can().toggleBold(),
|
|
6584
6584
|
ref: o,
|
|
6585
6585
|
...a,
|
|
6586
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6586
|
+
children: r ?? /* @__PURE__ */ N(ue, { className: "h-4 w-4" })
|
|
6587
6587
|
})
|
|
6588
6588
|
}), /* @__PURE__ */ P(g, { children: [/* @__PURE__ */ N("span", { children: "Negrita" }), /* @__PURE__ */ N("span", {
|
|
6589
6589
|
className: "ml-1 text-xs text-gray-11",
|
|
@@ -6606,7 +6606,7 @@ var Fc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
6606
6606
|
},
|
|
6607
6607
|
ref: o,
|
|
6608
6608
|
...a,
|
|
6609
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6609
|
+
children: r ?? /* @__PURE__ */ N(ze, { className: "h-4 w-4" })
|
|
6610
6610
|
})
|
|
6611
6611
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Lista de viñetas" }) })] });
|
|
6612
6612
|
});
|
|
@@ -6627,7 +6627,7 @@ var Ic = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
6627
6627
|
disabled: !s?.can().toggleCode(),
|
|
6628
6628
|
ref: o,
|
|
6629
6629
|
...a,
|
|
6630
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6630
|
+
children: r ?? /* @__PURE__ */ N(we, { className: "h-4 w-4" })
|
|
6631
6631
|
})
|
|
6632
6632
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Código" }) })] });
|
|
6633
6633
|
});
|
|
@@ -6648,7 +6648,7 @@ var Lc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
6648
6648
|
disabled: !s?.can().toggleCodeBlock(),
|
|
6649
6649
|
ref: o,
|
|
6650
6650
|
...a,
|
|
6651
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6651
|
+
children: r ?? /* @__PURE__ */ N(Ce, { className: "h-4 w-4" })
|
|
6652
6652
|
})
|
|
6653
6653
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Bloque de código" }) })] });
|
|
6654
6654
|
});
|
|
@@ -6748,9 +6748,9 @@ var Rc = [
|
|
|
6748
6748
|
style: i ? { backgroundColor: t } : { color: t },
|
|
6749
6749
|
children: "A"
|
|
6750
6750
|
}), /* @__PURE__ */ N("span", { children: e })]
|
|
6751
|
-
}), n && /* @__PURE__ */ N(
|
|
6751
|
+
}), n && /* @__PURE__ */ N(he, { className: "h-4 w-4" })]
|
|
6752
6752
|
}), Vc = () => {
|
|
6753
|
-
let { editor: t } = q(), n =
|
|
6753
|
+
let { editor: t } = q(), n = Ln("(max-width: 640px)"), r = t?.getAttributes("textStyle").color, o = t?.getAttributes("highlight").color, s = (e) => {
|
|
6754
6754
|
t?.chain().focus().setColor(e === r ? "" : e).run();
|
|
6755
6755
|
}, l = (e) => {
|
|
6756
6756
|
t?.chain().focus().setHighlight(e === o ? { color: "" } : { color: e }).run();
|
|
@@ -6801,7 +6801,7 @@ var Rc = [
|
|
|
6801
6801
|
children: [/* @__PURE__ */ N("span", {
|
|
6802
6802
|
className: "text-md",
|
|
6803
6803
|
children: "A"
|
|
6804
|
-
}), /* @__PURE__ */ N(
|
|
6804
|
+
}), /* @__PURE__ */ N(_e, { className: "ml-2 h-4 w-4" })]
|
|
6805
6805
|
})
|
|
6806
6806
|
})
|
|
6807
6807
|
}), /* @__PURE__ */ N(g, { children: "Color de Texto y Resaltado" })] }), /* @__PURE__ */ N(ko, {
|
|
@@ -6924,7 +6924,7 @@ var Rc = [
|
|
|
6924
6924
|
size: "icon",
|
|
6925
6925
|
className: "h-9 w-9",
|
|
6926
6926
|
onClick: o,
|
|
6927
|
-
children: N(n ?
|
|
6927
|
+
children: N(n ? Ke : Ge, { className: "h-4 w-4" })
|
|
6928
6928
|
})
|
|
6929
6929
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: n ? "Contraer editor" : "Expandir editor" }) })] }),
|
|
6930
6930
|
s
|
|
@@ -6942,7 +6942,7 @@ var Rc = [
|
|
|
6942
6942
|
3,
|
|
6943
6943
|
4
|
|
6944
6944
|
], Wc = b.forwardRef(({ className: t, ...n }, r) => {
|
|
6945
|
-
let { editor: a } = q(), o =
|
|
6945
|
+
let { editor: a } = q(), o = Ln("(max-width: 640px)"), s = Uc.find((e) => a?.isActive("heading", { level: e }));
|
|
6946
6946
|
return o ? /* @__PURE__ */ P(Oc, {
|
|
6947
6947
|
label: s ? `T${s}` : "Normal",
|
|
6948
6948
|
children: [/* @__PURE__ */ N(kc, {
|
|
@@ -6964,7 +6964,7 @@ var Rc = [
|
|
|
6964
6964
|
className: v("h-8 w-max gap-1 px-3 font-normal", a?.isActive("heading") && "bg-accent", t),
|
|
6965
6965
|
ref: r,
|
|
6966
6966
|
...n,
|
|
6967
|
-
children: [s ? `Título ${s}` : "Normal", /* @__PURE__ */ N(
|
|
6967
|
+
children: [s ? `Título ${s}` : "Normal", /* @__PURE__ */ N(ge, { className: "h-4 w-4" })]
|
|
6968
6968
|
})
|
|
6969
6969
|
}), /* @__PURE__ */ P(Ko, {
|
|
6970
6970
|
align: "start",
|
|
@@ -6996,7 +6996,7 @@ var Gc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
6996
6996
|
},
|
|
6997
6997
|
ref: o,
|
|
6998
6998
|
...a,
|
|
6999
|
-
children: r ?? /* @__PURE__ */ N(
|
|
6999
|
+
children: r ?? /* @__PURE__ */ N(st, { className: "h-4 w-4" })
|
|
7000
7000
|
})
|
|
7001
7001
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Línea horizontal" }) })] });
|
|
7002
7002
|
});
|
|
@@ -7016,7 +7016,7 @@ var Kc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7016
7016
|
},
|
|
7017
7017
|
ref: o,
|
|
7018
7018
|
...a,
|
|
7019
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7019
|
+
children: r ?? /* @__PURE__ */ N(Ne, { className: "h-4 w-4" })
|
|
7020
7020
|
})
|
|
7021
7021
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Imagen" }) })] });
|
|
7022
7022
|
});
|
|
@@ -7037,7 +7037,7 @@ var qc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7037
7037
|
disabled: !s?.can().toggleItalic(),
|
|
7038
7038
|
ref: o,
|
|
7039
7039
|
...a,
|
|
7040
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7040
|
+
children: r ?? /* @__PURE__ */ N(Le, { className: "h-4 w-4" })
|
|
7041
7041
|
})
|
|
7042
7042
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Cursiva" }) })] });
|
|
7043
7043
|
});
|
|
@@ -7047,7 +7047,7 @@ qc.displayName = "ItalicToolbar";
|
|
|
7047
7047
|
var Jc = b.forwardRef(({ className: t, ...n }, r) => {
|
|
7048
7048
|
let { editor: a } = q(), [o, s] = b.useState(""), u = (e) => {
|
|
7049
7049
|
e.preventDefault();
|
|
7050
|
-
let t =
|
|
7050
|
+
let t = Kn(o);
|
|
7051
7051
|
t && a?.chain().focus().setLink({ href: t }).run();
|
|
7052
7052
|
};
|
|
7053
7053
|
return b.useEffect(() => {
|
|
@@ -7080,9 +7080,9 @@ var Jc = b.forwardRef(({ className: t, ...n }, r) => {
|
|
|
7080
7080
|
className: "relative px-3 py-2.5",
|
|
7081
7081
|
children: /* @__PURE__ */ P("div", {
|
|
7082
7082
|
className: "relative",
|
|
7083
|
-
children: [/* @__PURE__ */ N(
|
|
7083
|
+
children: [/* @__PURE__ */ N(Nt, {
|
|
7084
7084
|
className: "absolute right-3 top-3",
|
|
7085
|
-
children: /* @__PURE__ */ N(
|
|
7085
|
+
children: /* @__PURE__ */ N(_t, { className: "h-4 w-4" })
|
|
7086
7086
|
}), /* @__PURE__ */ P("form", {
|
|
7087
7087
|
onSubmit: u,
|
|
7088
7088
|
children: [
|
|
@@ -7110,7 +7110,7 @@ var Jc = b.forwardRef(({ className: t, ...n }, r) => {
|
|
|
7110
7110
|
onClick: () => {
|
|
7111
7111
|
a?.chain().focus().unsetLink().run(), s("");
|
|
7112
7112
|
},
|
|
7113
|
-
children: [/* @__PURE__ */ N(
|
|
7113
|
+
children: [/* @__PURE__ */ N(dt, { className: "mr-2 h-4 w-4" }), "Eliminar"]
|
|
7114
7114
|
}), /* @__PURE__ */ N(e, {
|
|
7115
7115
|
size: "sm",
|
|
7116
7116
|
className: "h-8",
|
|
@@ -7139,7 +7139,7 @@ var Yc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7139
7139
|
},
|
|
7140
7140
|
ref: o,
|
|
7141
7141
|
...a,
|
|
7142
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7142
|
+
children: r ?? /* @__PURE__ */ N(Be, { className: "h-4 w-4" })
|
|
7143
7143
|
})
|
|
7144
7144
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Lista numerada" }) })] });
|
|
7145
7145
|
});
|
|
@@ -7159,7 +7159,7 @@ var Xc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7159
7159
|
},
|
|
7160
7160
|
ref: o,
|
|
7161
7161
|
...a,
|
|
7162
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7162
|
+
children: r ?? /* @__PURE__ */ N(tt, { className: "h-4 w-4" })
|
|
7163
7163
|
})
|
|
7164
7164
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Rehacer" }) })] });
|
|
7165
7165
|
});
|
|
@@ -7198,7 +7198,7 @@ function Zc() {
|
|
|
7198
7198
|
r(!n);
|
|
7199
7199
|
},
|
|
7200
7200
|
className: v("h-8 w-max px-3 font-normal"),
|
|
7201
|
-
children: [/* @__PURE__ */ N(
|
|
7201
|
+
children: [/* @__PURE__ */ N(nt, { className: "mr-2 h-4 w-4" }), /* @__PURE__ */ N("p", { children: "Buscar y reemplazar" })]
|
|
7202
7202
|
})
|
|
7203
7203
|
})
|
|
7204
7204
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Buscar y reemplazar" }) })] }), /* @__PURE__ */ N(ko, {
|
|
@@ -7213,7 +7213,7 @@ function Zc() {
|
|
|
7213
7213
|
children: o ? /* @__PURE__ */ P("div", {
|
|
7214
7214
|
className: v("relative w-full"),
|
|
7215
7215
|
children: [
|
|
7216
|
-
/* @__PURE__ */ N(
|
|
7216
|
+
/* @__PURE__ */ N(_t, {
|
|
7217
7217
|
onClick: () => {
|
|
7218
7218
|
r(!1);
|
|
7219
7219
|
},
|
|
@@ -7228,7 +7228,7 @@ function Zc() {
|
|
|
7228
7228
|
onClick: () => {
|
|
7229
7229
|
s(!1);
|
|
7230
7230
|
},
|
|
7231
|
-
children: /* @__PURE__ */ N(
|
|
7231
|
+
children: /* @__PURE__ */ N(oe, { className: "h-4 w-4" })
|
|
7232
7232
|
}), /* @__PURE__ */ N("h2", {
|
|
7233
7233
|
className: "text-sm font-medium",
|
|
7234
7234
|
children: "Buscar y reemplazar"
|
|
@@ -7305,7 +7305,7 @@ function Zc() {
|
|
|
7305
7305
|
size: "icon",
|
|
7306
7306
|
className: "h-7 w-7",
|
|
7307
7307
|
variant: "secondary",
|
|
7308
|
-
children: /* @__PURE__ */ N(
|
|
7308
|
+
children: /* @__PURE__ */ N(oe, { className: "h-4 w-4" })
|
|
7309
7309
|
})
|
|
7310
7310
|
}), /* @__PURE__ */ N(g, { children: "Anterior" })] }), /* @__PURE__ */ P(c, { children: [/* @__PURE__ */ N(i, {
|
|
7311
7311
|
asChild: !0,
|
|
@@ -7317,7 +7317,7 @@ function Zc() {
|
|
|
7317
7317
|
size: "icon",
|
|
7318
7318
|
className: "h-7 w-7",
|
|
7319
7319
|
variant: "secondary",
|
|
7320
|
-
children: /* @__PURE__ */ N(
|
|
7320
|
+
children: /* @__PURE__ */ N(ce, { className: "h-4 w-4" })
|
|
7321
7321
|
})
|
|
7322
7322
|
}), /* @__PURE__ */ N(g, { children: "Siguiente" })] })]
|
|
7323
7323
|
}), /* @__PURE__ */ P("div", {
|
|
@@ -7369,7 +7369,7 @@ function Zc() {
|
|
|
7369
7369
|
size: "icon",
|
|
7370
7370
|
variant: "ghost",
|
|
7371
7371
|
className: "size-7",
|
|
7372
|
-
children: /* @__PURE__ */ N(
|
|
7372
|
+
children: /* @__PURE__ */ N(oe, { className: "size-4" })
|
|
7373
7373
|
})
|
|
7374
7374
|
}), /* @__PURE__ */ N(g, { children: "Anterior" })] }), /* @__PURE__ */ P(c, { children: [/* @__PURE__ */ N(i, {
|
|
7375
7375
|
asChild: !0,
|
|
@@ -7381,7 +7381,7 @@ function Zc() {
|
|
|
7381
7381
|
size: "icon",
|
|
7382
7382
|
className: "size-7",
|
|
7383
7383
|
variant: "ghost",
|
|
7384
|
-
children: /* @__PURE__ */ N(
|
|
7384
|
+
children: /* @__PURE__ */ N(ce, { className: "h-4 w-4" })
|
|
7385
7385
|
})
|
|
7386
7386
|
}), /* @__PURE__ */ N(g, { children: "Siguiente" })] })]
|
|
7387
7387
|
}),
|
|
@@ -7401,7 +7401,7 @@ function Zc() {
|
|
|
7401
7401
|
className: "size-7",
|
|
7402
7402
|
variant: "ghost",
|
|
7403
7403
|
title: "Cambiar a modo reemplazar",
|
|
7404
|
-
children: /* @__PURE__ */ N(
|
|
7404
|
+
children: /* @__PURE__ */ N(nt, { className: "h-4 w-4" })
|
|
7405
7405
|
})
|
|
7406
7406
|
}), /* @__PURE__ */ N(g, { children: "Cambiar a modo reemplazar" })] }), /* @__PURE__ */ P(c, { children: [/* @__PURE__ */ N(i, {
|
|
7407
7407
|
asChild: !0,
|
|
@@ -7413,7 +7413,7 @@ function Zc() {
|
|
|
7413
7413
|
className: "size-7",
|
|
7414
7414
|
variant: "ghost",
|
|
7415
7415
|
title: "Cerrar",
|
|
7416
|
-
children: /* @__PURE__ */ N(
|
|
7416
|
+
children: /* @__PURE__ */ N(_t, { className: "h-4 w-4" })
|
|
7417
7417
|
})
|
|
7418
7418
|
}), /* @__PURE__ */ N(g, { children: "Cerrar" })] })]
|
|
7419
7419
|
})
|
|
@@ -7438,7 +7438,7 @@ var Qc = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7438
7438
|
disabled: !s?.can().toggleStrike(),
|
|
7439
7439
|
ref: o,
|
|
7440
7440
|
...a,
|
|
7441
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7441
|
+
children: r ?? /* @__PURE__ */ N(ct, { className: "h-4 w-4" })
|
|
7442
7442
|
})
|
|
7443
7443
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Tachado" }) })] });
|
|
7444
7444
|
});
|
|
@@ -7459,7 +7459,7 @@ var $c = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7459
7459
|
disabled: !s?.can().toggleUnderline(),
|
|
7460
7460
|
ref: o,
|
|
7461
7461
|
...a,
|
|
7462
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7462
|
+
children: r ?? /* @__PURE__ */ N(mt, { className: "h-4 w-4" })
|
|
7463
7463
|
})
|
|
7464
7464
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Subrayado" }) })] });
|
|
7465
7465
|
});
|
|
@@ -7479,7 +7479,7 @@ var el = b.forwardRef(({ className: t, onClick: n, children: r, ...a }, o) => {
|
|
|
7479
7479
|
},
|
|
7480
7480
|
ref: o,
|
|
7481
7481
|
...a,
|
|
7482
|
-
children: r ?? /* @__PURE__ */ N(
|
|
7482
|
+
children: r ?? /* @__PURE__ */ N(ht, { className: "h-4 w-4" })
|
|
7483
7483
|
})
|
|
7484
7484
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: "Deshacer" }) })] });
|
|
7485
7485
|
});
|
|
@@ -7487,7 +7487,7 @@ el.displayName = "UndoToolbar";
|
|
|
7487
7487
|
//#endregion
|
|
7488
7488
|
//#region src/components/rich_text_editor/extensions/floating_toolbar/index.tsx
|
|
7489
7489
|
function tl({ editor: e }) {
|
|
7490
|
-
let t =
|
|
7490
|
+
let t = Ln("(max-width: 640px)"), [n, i] = D(!1), [a, o] = D(!1);
|
|
7491
7491
|
return C(() => {
|
|
7492
7492
|
if (!e?.options.element || !t) return;
|
|
7493
7493
|
let n = (e) => {
|
|
@@ -7546,7 +7546,7 @@ function tl({ editor: e }) {
|
|
|
7546
7546
|
//#endregion
|
|
7547
7547
|
//#region src/components/rich_text_editor/extensions/image/tiptap-image.tsx
|
|
7548
7548
|
function nl(t) {
|
|
7549
|
-
let { node: n, editor: r, selected: i, deleteNode: o, updateAttributes: s } = t, c = E(null), u = E(null), [d, f] = D(!1), [p, m] = D("left"), [h, g] = D(0), [_, y] = D(0), [b, x] = D(!1), [S, w] = D(n.attrs.caption || ""), [T, ee] = D(!1), [te, ne] = D(""), re = E(null), [O, k] = D(n.attrs.alt || ""), { fileInputRef: A, handleFileChange: j, handleRemove: ie, uploading:
|
|
7549
|
+
let { node: n, editor: r, selected: i, deleteNode: o, updateAttributes: s } = t, c = E(null), u = E(null), [d, f] = D(!1), [p, m] = D("left"), [h, g] = D(0), [_, y] = D(0), [b, x] = D(!1), [S, w] = D(n.attrs.caption || ""), [T, ee] = D(!1), [te, ne] = D(""), re = E(null), [O, k] = D(n.attrs.alt || ""), { fileInputRef: A, handleFileChange: j, handleRemove: ie, uploading: L, error: oe } = Rn({
|
|
7550
7550
|
uploadFn: async (e) => {
|
|
7551
7551
|
let t = URL.createObjectURL(e), n = r?.storage;
|
|
7552
7552
|
return n?.image?.files && n.image.files.set(t, e), t;
|
|
@@ -7558,44 +7558,44 @@ function nl(t) {
|
|
|
7558
7558
|
}), ie(), ee(!1);
|
|
7559
7559
|
}
|
|
7560
7560
|
});
|
|
7561
|
-
function
|
|
7562
|
-
|
|
7561
|
+
function se({ e, position: t }) {
|
|
7562
|
+
ce(e), m(t);
|
|
7563
7563
|
}
|
|
7564
|
-
function
|
|
7564
|
+
function ce(e) {
|
|
7565
7565
|
e.preventDefault(), f(!0), y(e.clientX), c.current && g(c.current.offsetWidth);
|
|
7566
7566
|
}
|
|
7567
|
-
function
|
|
7567
|
+
function le(e) {
|
|
7568
7568
|
if (!d) return;
|
|
7569
7569
|
let t = e.clientX - _;
|
|
7570
7570
|
p === "left" && (t = _ - e.clientX);
|
|
7571
7571
|
let n = Math.max(h + t, 150);
|
|
7572
7572
|
n < (u.current?.parentElement?.offsetWidth ?? 0) && s({ width: n });
|
|
7573
7573
|
}
|
|
7574
|
-
function
|
|
7574
|
+
function ue() {
|
|
7575
7575
|
f(!1), y(0), g(0);
|
|
7576
7576
|
}
|
|
7577
|
-
function
|
|
7577
|
+
function de(e, t) {
|
|
7578
7578
|
e.preventDefault(), f(!0), m(t), y(e.touches[0]?.clientX ?? 0), c.current && g(c.current.offsetWidth);
|
|
7579
7579
|
}
|
|
7580
|
-
function
|
|
7580
|
+
function fe(e) {
|
|
7581
7581
|
if (!d) return;
|
|
7582
7582
|
let t = (e.touches[0]?.clientX ?? _) - _;
|
|
7583
7583
|
p === "left" && (t = _ - (e.touches[0]?.clientX ?? _));
|
|
7584
7584
|
let n = Math.max(h + t, 150);
|
|
7585
7585
|
n < (u.current?.parentElement?.offsetWidth ?? 0) && s({ width: n });
|
|
7586
7586
|
}
|
|
7587
|
-
function
|
|
7587
|
+
function pe() {
|
|
7588
7588
|
f(!1), y(0), g(0);
|
|
7589
7589
|
}
|
|
7590
|
-
function
|
|
7590
|
+
function me(e) {
|
|
7591
7591
|
let t = e.target.value;
|
|
7592
7592
|
w(t);
|
|
7593
7593
|
}
|
|
7594
|
-
function
|
|
7594
|
+
function he() {
|
|
7595
7595
|
s({ caption: S }), x(!1);
|
|
7596
7596
|
}
|
|
7597
|
-
function
|
|
7598
|
-
e.key === "Enter" &&
|
|
7597
|
+
function ge(e) {
|
|
7598
|
+
e.key === "Enter" && he();
|
|
7599
7599
|
}
|
|
7600
7600
|
return C(() => {
|
|
7601
7601
|
w(n.attrs.caption || "");
|
|
@@ -7610,13 +7610,13 @@ function nl(t) {
|
|
|
7610
7610
|
clearTimeout(t), clearTimeout(n), clearTimeout(r);
|
|
7611
7611
|
};
|
|
7612
7612
|
}
|
|
7613
|
-
}, [b]), C(() => (window.addEventListener("mousemove",
|
|
7614
|
-
window.removeEventListener("mousemove",
|
|
7613
|
+
}, [b]), C(() => (window.addEventListener("mousemove", le), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", fe), window.addEventListener("touchend", pe), () => {
|
|
7614
|
+
window.removeEventListener("mousemove", le), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", fe), window.removeEventListener("touchend", pe);
|
|
7615
7615
|
}), [
|
|
7616
7616
|
d,
|
|
7617
7617
|
_,
|
|
7618
7618
|
h
|
|
7619
|
-
]), /* @__PURE__ */ N(
|
|
7619
|
+
]), /* @__PURE__ */ N(_n, {
|
|
7620
7620
|
ref: u,
|
|
7621
7621
|
className: v("image-wrapper rounded-md border-2 border-transparent transition-all duration-200", i ? "border-blue-300" : "", n.attrs.align === "left" && "align-left", n.attrs.align === "center" && "align-center", n.attrs.align === "right" && "align-right"),
|
|
7622
7622
|
style: { width: n.attrs.width },
|
|
@@ -7639,32 +7639,32 @@ function nl(t) {
|
|
|
7639
7639
|
className: "absolute inset-y-0 z-20 flex w-6.25 cursor-col-resize items-center justify-start p-2",
|
|
7640
7640
|
style: { left: 0 },
|
|
7641
7641
|
onMouseDown: (e) => {
|
|
7642
|
-
|
|
7642
|
+
se({
|
|
7643
7643
|
e,
|
|
7644
7644
|
position: "left"
|
|
7645
7645
|
});
|
|
7646
7646
|
},
|
|
7647
|
-
onTouchStart: (e) =>
|
|
7647
|
+
onTouchStart: (e) => de(e, "left"),
|
|
7648
7648
|
children: /* @__PURE__ */ N("div", { className: "z-20 h-17.5 w-1 rounded-xl border bg-[rgba(0,0,0,0.65)] opacity-0 transition-all group-hover:opacity-100" })
|
|
7649
7649
|
}), /* @__PURE__ */ N("div", {
|
|
7650
7650
|
className: "absolute inset-y-0 z-20 flex w-6.25 cursor-col-resize items-center justify-end p-2",
|
|
7651
7651
|
style: { right: 0 },
|
|
7652
7652
|
onMouseDown: (e) => {
|
|
7653
|
-
|
|
7653
|
+
se({
|
|
7654
7654
|
e,
|
|
7655
7655
|
position: "right"
|
|
7656
7656
|
});
|
|
7657
7657
|
},
|
|
7658
|
-
onTouchStart: (e) =>
|
|
7658
|
+
onTouchStart: (e) => de(e, "right"),
|
|
7659
7659
|
children: /* @__PURE__ */ N("div", { className: "z-20 h-17.5 w-1 rounded-xl border bg-[rgba(0,0,0,0.65)] opacity-0 transition-all group-hover:opacity-100" })
|
|
7660
7660
|
})] })]
|
|
7661
7661
|
}),
|
|
7662
7662
|
b ? /* @__PURE__ */ N(l, {
|
|
7663
7663
|
ref: re,
|
|
7664
7664
|
value: S,
|
|
7665
|
-
onChange:
|
|
7666
|
-
onBlur:
|
|
7667
|
-
onKeyDown:
|
|
7665
|
+
onChange: me,
|
|
7666
|
+
onBlur: he,
|
|
7667
|
+
onKeyDown: ge,
|
|
7668
7668
|
onClick: (e) => e.stopPropagation(),
|
|
7669
7669
|
className: "mt-2 text-center text-sm text-muted-foreground focus:ring-0",
|
|
7670
7670
|
placeholder: "Añadir texto alternativo..."
|
|
@@ -7700,7 +7700,7 @@ function nl(t) {
|
|
|
7700
7700
|
variant: "ghost",
|
|
7701
7701
|
onClick: () => s({ align: "right" }),
|
|
7702
7702
|
title: "Alinear a la derecha",
|
|
7703
|
-
children: /* @__PURE__ */ N(
|
|
7703
|
+
children: /* @__PURE__ */ N(I, { className: "size-4" })
|
|
7704
7704
|
}),
|
|
7705
7705
|
/* @__PURE__ */ N(a, {
|
|
7706
7706
|
orientation: "vertical",
|
|
@@ -7715,7 +7715,7 @@ function nl(t) {
|
|
|
7715
7715
|
size: "icon",
|
|
7716
7716
|
className: "size-7",
|
|
7717
7717
|
variant: "ghost",
|
|
7718
|
-
children: /* @__PURE__ */ N(
|
|
7718
|
+
children: /* @__PURE__ */ N(Ze, { className: "size-4" })
|
|
7719
7719
|
})
|
|
7720
7720
|
}), /* @__PURE__ */ P(Ko, {
|
|
7721
7721
|
align: "start",
|
|
@@ -7729,9 +7729,9 @@ function nl(t) {
|
|
|
7729
7729
|
onClick: (e) => {
|
|
7730
7730
|
e.preventDefault(), e.stopPropagation(), ee(!1), x(!0);
|
|
7731
7731
|
},
|
|
7732
|
-
children: [/* @__PURE__ */ N(
|
|
7732
|
+
children: [/* @__PURE__ */ N(Ee, { className: "mr-2 size-4" }), " Editar texto"]
|
|
7733
7733
|
}),
|
|
7734
|
-
/* @__PURE__ */ P(ts, { children: [/* @__PURE__ */ P(ns, { children: [/* @__PURE__ */ N(
|
|
7734
|
+
/* @__PURE__ */ P(ts, { children: [/* @__PURE__ */ P(ns, { children: [/* @__PURE__ */ N(Pe, { className: "mr-2 size-4" }), " Reemplazar Imagen"] }), /* @__PURE__ */ N(rs, {
|
|
7735
7735
|
className: "p-2 w-fit min-w-52",
|
|
7736
7736
|
children: /* @__PURE__ */ P("div", {
|
|
7737
7737
|
className: "space-y-4",
|
|
@@ -7752,11 +7752,11 @@ function nl(t) {
|
|
|
7752
7752
|
/* @__PURE__ */ N("label", {
|
|
7753
7753
|
htmlFor: "replace-image-upload",
|
|
7754
7754
|
className: "flex w-full cursor-pointer items-center justify-center gap-2 rounded-md border-2 border-dashed p-4 hover:bg-accent",
|
|
7755
|
-
children:
|
|
7755
|
+
children: L ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Ve, { className: "h-4 w-4 animate-spin" }), /* @__PURE__ */ N("span", { children: "Subiendo..." })] }) : /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Pe, { className: "h-4 w-4" }), /* @__PURE__ */ N("span", { children: "Elegir Imagen" })] })
|
|
7756
7756
|
}),
|
|
7757
|
-
|
|
7757
|
+
oe && /* @__PURE__ */ N("p", {
|
|
7758
7758
|
className: "mt-2 text-xs text-destructive",
|
|
7759
|
-
children:
|
|
7759
|
+
children: oe
|
|
7760
7760
|
})
|
|
7761
7761
|
] }),
|
|
7762
7762
|
/* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", {
|
|
@@ -7805,13 +7805,13 @@ function nl(t) {
|
|
|
7805
7805
|
});
|
|
7806
7806
|
}
|
|
7807
7807
|
},
|
|
7808
|
-
children: [/* @__PURE__ */ N(
|
|
7808
|
+
children: [/* @__PURE__ */ N(We, { className: "mr-2 size-4" }), " Ancho Completo"]
|
|
7809
7809
|
}),
|
|
7810
7810
|
/* @__PURE__ */ N($o, {}),
|
|
7811
7811
|
/* @__PURE__ */ P(Jo, {
|
|
7812
7812
|
className: "text-destructive focus:text-destructive",
|
|
7813
7813
|
onClick: o,
|
|
7814
|
-
children: [/* @__PURE__ */ N(
|
|
7814
|
+
children: [/* @__PURE__ */ N(ut, { className: "mr-2 size-4" }), " Eliminar Imagen"]
|
|
7815
7815
|
})
|
|
7816
7816
|
]
|
|
7817
7817
|
})]
|
|
@@ -7824,7 +7824,7 @@ function nl(t) {
|
|
|
7824
7824
|
}
|
|
7825
7825
|
//#endregion
|
|
7826
7826
|
//#region src/components/rich_text_editor/extensions/image/image-extension.ts
|
|
7827
|
-
var rl =
|
|
7827
|
+
var rl = mn.extend({
|
|
7828
7828
|
addAttributes() {
|
|
7829
7829
|
return {
|
|
7830
7830
|
src: { default: null },
|
|
@@ -7840,8 +7840,8 @@ var rl = hn.extend({
|
|
|
7840
7840
|
addStorage() {
|
|
7841
7841
|
return { files: /* @__PURE__ */ new Map() };
|
|
7842
7842
|
},
|
|
7843
|
-
addNodeView: () =>
|
|
7844
|
-
}), il =
|
|
7843
|
+
addNodeView: () => vn(nl)
|
|
7844
|
+
}), il = gn.create({
|
|
7845
7845
|
name: "image-placeholder",
|
|
7846
7846
|
addOptions() {
|
|
7847
7847
|
return {
|
|
@@ -7855,17 +7855,17 @@ var rl = hn.extend({
|
|
|
7855
7855
|
return [{ tag: `div[data-type="${this.name}"]` }];
|
|
7856
7856
|
},
|
|
7857
7857
|
renderHTML({ HTMLAttributes: e }) {
|
|
7858
|
-
return ["div",
|
|
7858
|
+
return ["div", yn(e)];
|
|
7859
7859
|
},
|
|
7860
7860
|
addNodeView() {
|
|
7861
|
-
return
|
|
7861
|
+
return vn(al, { className: Un });
|
|
7862
7862
|
},
|
|
7863
7863
|
addCommands() {
|
|
7864
7864
|
return { insertImagePlaceholder: () => (e) => e.commands.insertContent({ type: "image-placeholder" }) };
|
|
7865
7865
|
}
|
|
7866
7866
|
});
|
|
7867
7867
|
function al(t) {
|
|
7868
|
-
let { editor: n, selected: r } = t, [i, a] = D(!1), [o, s] = D("upload"), [c, u] = D(""), [d, f] = D(""), [p, m] = D(!1), [h, g] = D(!1), { previewUrl: _, fileInputRef: y, handleFileChange: b, handleRemove: x, uploading: S, error: C } =
|
|
7868
|
+
let { editor: n, selected: r } = t, [i, a] = D(!1), [o, s] = D("upload"), [c, u] = D(""), [d, f] = D(""), [p, m] = D(!1), [h, g] = D(!1), { previewUrl: _, fileInputRef: y, handleFileChange: b, handleRemove: x, uploading: S, error: C } = Rn({
|
|
7869
7869
|
uploadFn: async (e) => {
|
|
7870
7870
|
let t = URL.createObjectURL(e), r = n?.storage;
|
|
7871
7871
|
return r?.image?.files && r.image.files.set(t, e), t;
|
|
@@ -7877,7 +7877,7 @@ function al(t) {
|
|
|
7877
7877
|
}).run(), x(), a(!1);
|
|
7878
7878
|
}
|
|
7879
7879
|
});
|
|
7880
|
-
return /* @__PURE__ */ N(
|
|
7880
|
+
return /* @__PURE__ */ N(_n, {
|
|
7881
7881
|
className: "w-full",
|
|
7882
7882
|
children: /* @__PURE__ */ N("div", {
|
|
7883
7883
|
className: "relative",
|
|
@@ -7892,7 +7892,7 @@ function al(t) {
|
|
|
7892
7892
|
variant: "ghost",
|
|
7893
7893
|
size: "icon",
|
|
7894
7894
|
onClick: () => a(!1),
|
|
7895
|
-
children: /* @__PURE__ */ N(
|
|
7895
|
+
children: /* @__PURE__ */ N(_t, { className: "h-4 w-4" })
|
|
7896
7896
|
})]
|
|
7897
7897
|
}), /* @__PURE__ */ P(gc, {
|
|
7898
7898
|
value: o,
|
|
@@ -7903,10 +7903,10 @@ function al(t) {
|
|
|
7903
7903
|
className: "grid w-full grid-cols-2",
|
|
7904
7904
|
children: [/* @__PURE__ */ P(vc, {
|
|
7905
7905
|
value: "upload",
|
|
7906
|
-
children: [/* @__PURE__ */ N(
|
|
7906
|
+
children: [/* @__PURE__ */ N(gt, { className: "mr-2 h-4 w-4" }), "Subir"]
|
|
7907
7907
|
}), /* @__PURE__ */ P(vc, {
|
|
7908
7908
|
value: "url",
|
|
7909
|
-
children: [/* @__PURE__ */ N(
|
|
7909
|
+
children: [/* @__PURE__ */ N(Re, { className: "mr-2 h-4 w-4" }), "URL"]
|
|
7910
7910
|
})]
|
|
7911
7911
|
}),
|
|
7912
7912
|
/* @__PURE__ */ N(yc, {
|
|
@@ -7957,7 +7957,7 @@ function al(t) {
|
|
|
7957
7957
|
onClick: (e) => {
|
|
7958
7958
|
e.preventDefault(), y.current?.files?.[0] && b({ target: y.current });
|
|
7959
7959
|
},
|
|
7960
|
-
children: [S && /* @__PURE__ */ N(
|
|
7960
|
+
children: [S && /* @__PURE__ */ N(Ve, { className: "mr-2 h-4 w-4 animate-spin" }), "Subir"]
|
|
7961
7961
|
})]
|
|
7962
7962
|
})]
|
|
7963
7963
|
})]
|
|
@@ -7971,7 +7971,7 @@ function al(t) {
|
|
|
7971
7971
|
}), /* @__PURE__ */ P("label", {
|
|
7972
7972
|
htmlFor: "image-upload",
|
|
7973
7973
|
className: "flex cursor-pointer flex-col items-center gap-4",
|
|
7974
|
-
children: [/* @__PURE__ */ N(
|
|
7974
|
+
children: [/* @__PURE__ */ N(gt, { className: "h-8 w-8 text-muted-foreground" }), /* @__PURE__ */ P("div", { children: [/* @__PURE__ */ N("p", {
|
|
7975
7975
|
className: "text-sm font-medium",
|
|
7976
7976
|
children: "Haz clic para subir o arrastra y suelta"
|
|
7977
7977
|
}), /* @__PURE__ */ N("p", {
|
|
@@ -8012,7 +8012,7 @@ function al(t) {
|
|
|
8012
8012
|
}),
|
|
8013
8013
|
/* @__PURE__ */ N(e, {
|
|
8014
8014
|
onClick: (e) => {
|
|
8015
|
-
if (e.preventDefault(), !
|
|
8015
|
+
if (e.preventDefault(), !Wn(c)) {
|
|
8016
8016
|
m(!0);
|
|
8017
8017
|
return;
|
|
8018
8018
|
}
|
|
@@ -8035,7 +8035,7 @@ function al(t) {
|
|
|
8035
8035
|
className: v("group relative flex cursor-pointer flex-col items-center gap-4 rounded-lg border-2 border-dashed p-8 transition-all hover:bg-accent", r && "border-primary bg-primary/5", h && "border-primary bg-primary/5", C && "border-destructive bg-destructive/5"),
|
|
8036
8036
|
children: [/* @__PURE__ */ N("div", {
|
|
8037
8037
|
className: "rounded-full bg-background p-4 shadow-sm transition-colors group-hover:bg-accent",
|
|
8038
|
-
children: /* @__PURE__ */ N(
|
|
8038
|
+
children: /* @__PURE__ */ N(Ne, { className: "h-6 w-6" })
|
|
8039
8039
|
}), /* @__PURE__ */ P("div", {
|
|
8040
8040
|
className: "text-center",
|
|
8041
8041
|
children: [/* @__PURE__ */ N("p", {
|
|
@@ -8059,7 +8059,7 @@ var ol = (e, t, n) => {
|
|
|
8059
8059
|
function sl(e, t, n, r, i) {
|
|
8060
8060
|
let a = [], o = [], s = [];
|
|
8061
8061
|
if (!t) return {
|
|
8062
|
-
decorationsToReturn:
|
|
8062
|
+
decorationsToReturn: Sn.empty,
|
|
8063
8063
|
results: []
|
|
8064
8064
|
};
|
|
8065
8065
|
e.descendants((e, t) => {
|
|
@@ -8079,10 +8079,10 @@ function sl(e, t, n, r, i) {
|
|
|
8079
8079
|
let t = o[e];
|
|
8080
8080
|
if (!t) continue;
|
|
8081
8081
|
let { from: s, to: c } = t;
|
|
8082
|
-
a.push(
|
|
8082
|
+
a.push(xn.inline(s, c, { class: n === e ? i : r }));
|
|
8083
8083
|
}
|
|
8084
8084
|
return {
|
|
8085
|
-
decorationsToReturn:
|
|
8085
|
+
decorationsToReturn: Sn.create(e, a),
|
|
8086
8086
|
results: o
|
|
8087
8087
|
};
|
|
8088
8088
|
}
|
|
@@ -8135,7 +8135,7 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8135
8135
|
behavior: "smooth",
|
|
8136
8136
|
block: "center"
|
|
8137
8137
|
});
|
|
8138
|
-
}, pl = new
|
|
8138
|
+
}, pl = new pn("searchAndReplacePlugin"), ml = O.create({
|
|
8139
8139
|
name: "searchAndReplace",
|
|
8140
8140
|
addOptions() {
|
|
8141
8141
|
return {
|
|
@@ -8187,14 +8187,14 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8187
8187
|
}, o = (t) => {
|
|
8188
8188
|
e.storage.searchAndReplace.lastCaseSensitiveState = t;
|
|
8189
8189
|
};
|
|
8190
|
-
return [new
|
|
8190
|
+
return [new fn({
|
|
8191
8191
|
key: pl,
|
|
8192
8192
|
state: {
|
|
8193
|
-
init: () =>
|
|
8193
|
+
init: () => Sn.empty,
|
|
8194
8194
|
apply({ doc: s, docChanged: c }, l) {
|
|
8195
8195
|
let { searchTerm: u, selectedResult: d, lastSearchTerm: f, lastSelectedResult: p, caseSensitive: m, lastCaseSensitiveState: h } = e.storage.searchAndReplace;
|
|
8196
8196
|
if (!c && f === u && d === p && h === m) return l;
|
|
8197
|
-
if (i(u), a(d), o(m), !u) return e.storage.searchAndReplace.selectedResult = 0, e.storage.searchAndReplace.results = [],
|
|
8197
|
+
if (i(u), a(d), o(m), !u) return e.storage.searchAndReplace.selectedResult = 0, e.storage.searchAndReplace.results = [], Sn.empty;
|
|
8198
8198
|
let { decorationsToReturn: g, results: _ } = sl(s, ol(u, r, m), d, t, n);
|
|
8199
8199
|
return e.storage.searchAndReplace.results = _, d > _.length && (e.storage.searchAndReplace.selectedResult = 1, e.commands.selectPreviousResult()), g;
|
|
8200
8200
|
}
|
|
@@ -8205,7 +8205,7 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8205
8205
|
})];
|
|
8206
8206
|
}
|
|
8207
8207
|
}), hl = [
|
|
8208
|
-
|
|
8208
|
+
Mn.configure({
|
|
8209
8209
|
orderedList: { HTMLAttributes: { class: "list-decimal" } },
|
|
8210
8210
|
bulletList: { HTMLAttributes: { class: "list-disc" } },
|
|
8211
8211
|
heading: { levels: [
|
|
@@ -8215,7 +8215,7 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8215
8215
|
4
|
|
8216
8216
|
] }
|
|
8217
8217
|
}),
|
|
8218
|
-
|
|
8218
|
+
Nn.configure({
|
|
8219
8219
|
emptyNodeClass: "is-editor-empty",
|
|
8220
8220
|
placeholder: ({ node: e }) => {
|
|
8221
8221
|
switch (e.type.name) {
|
|
@@ -8227,23 +8227,23 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8227
8227
|
},
|
|
8228
8228
|
includeChildren: !1
|
|
8229
8229
|
}),
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
Dn,
|
|
8233
|
-
On,
|
|
8234
|
-
Mn,
|
|
8230
|
+
On.configure({ types: ["heading", "paragraph"] }),
|
|
8231
|
+
kn,
|
|
8235
8232
|
En,
|
|
8236
|
-
|
|
8237
|
-
|
|
8233
|
+
Dn,
|
|
8234
|
+
jn,
|
|
8235
|
+
Tn,
|
|
8236
|
+
Cn,
|
|
8237
|
+
wn.configure({ multicolor: !0 }),
|
|
8238
8238
|
rl,
|
|
8239
8239
|
il,
|
|
8240
8240
|
ml,
|
|
8241
|
-
|
|
8241
|
+
An
|
|
8242
8242
|
], gl = x(({ className: t, fileId: n, onSave: r, onSaveSuccess: i }, a) => {
|
|
8243
|
-
let [o, s] = D(!1), [c, l] = D(!1), [u, d] = D(!1), f =
|
|
8243
|
+
let [o, s] = D(!1), [c, l] = D(!1), [u, d] = D(!1), f = bn({
|
|
8244
8244
|
immediatelyRender: !1,
|
|
8245
8245
|
extensions: hl,
|
|
8246
|
-
content:
|
|
8246
|
+
content: Jn,
|
|
8247
8247
|
editorProps: { attributes: { class: "max-w-full focus:outline-none" } }
|
|
8248
8248
|
});
|
|
8249
8249
|
C(() => {
|
|
@@ -8275,21 +8275,21 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8275
8275
|
size: "sm",
|
|
8276
8276
|
onClick: async () => {
|
|
8277
8277
|
if (!r) {
|
|
8278
|
-
|
|
8278
|
+
en.error("No hay función de guardado configurada (onSave).");
|
|
8279
8279
|
return;
|
|
8280
8280
|
}
|
|
8281
8281
|
l(!0);
|
|
8282
8282
|
try {
|
|
8283
|
-
await p(),
|
|
8283
|
+
await p(), en.success("Documento guardado"), i?.();
|
|
8284
8284
|
} catch {
|
|
8285
|
-
|
|
8285
|
+
en.error("Error al guardar");
|
|
8286
8286
|
} finally {
|
|
8287
8287
|
l(!1);
|
|
8288
8288
|
}
|
|
8289
8289
|
},
|
|
8290
8290
|
disabled: c,
|
|
8291
8291
|
className: "ml-2 gap-2",
|
|
8292
|
-
children: [c ? /* @__PURE__ */ N(
|
|
8292
|
+
children: [c ? /* @__PURE__ */ N(Ve, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ N(rt, { className: "w-4 h-4" }), c ? "Guardando..." : "Guardar"]
|
|
8293
8293
|
})
|
|
8294
8294
|
}), /* @__PURE__ */ N("div", {
|
|
8295
8295
|
className: v("flex-1 overflow-y-auto transition-all duration-300 ease-in-out scroll-smooth", o ? "bg-card" : "bg-muted/30 p-4 md:p-8"),
|
|
@@ -8298,7 +8298,7 @@ var cl = (e, t, { state: n, dispatch: r }) => {
|
|
|
8298
8298
|
children: [
|
|
8299
8299
|
/* @__PURE__ */ N(tl, { editor: f }),
|
|
8300
8300
|
/* @__PURE__ */ N(Dc, { editor: f }),
|
|
8301
|
-
/* @__PURE__ */ N(
|
|
8301
|
+
/* @__PURE__ */ N(hn, {
|
|
8302
8302
|
editor: f,
|
|
8303
8303
|
className: v("cursor-text transition-all duration-300", o ? "p-8 md:p-10 is-expanded" : "p-8 md:p-12 lg:p-16"),
|
|
8304
8304
|
onMouseDown: () => {
|
|
@@ -8370,7 +8370,7 @@ function vl({ label: e, name: t, placeholder: n, register: r, errors: i, classNa
|
|
|
8370
8370
|
//#endregion
|
|
8371
8371
|
//#region src/components/form_select/index.tsx
|
|
8372
8372
|
var yl = ({ name: e, label: t, control: n, options: r = [], placeholder: i = "Selecciona una opción", className: a, errors: o, renderItem: s, children: c, size: l = "default" }) => {
|
|
8373
|
-
let u = s ?? c, { field: d } =
|
|
8373
|
+
let u = s ?? c, { field: d } = Pn({
|
|
8374
8374
|
name: e,
|
|
8375
8375
|
control: n,
|
|
8376
8376
|
defaultValue: ""
|
|
@@ -8405,10 +8405,7 @@ var yl = ({ name: e, label: t, control: n, options: r = [], placeholder: i = "Se
|
|
|
8405
8405
|
})
|
|
8406
8406
|
]
|
|
8407
8407
|
});
|
|
8408
|
-
}, bl = {
|
|
8409
|
-
wrapper: "_wrapper_1vihs_5",
|
|
8410
|
-
editorContent: "_editorContent_1vihs_17"
|
|
8411
|
-
};
|
|
8408
|
+
}, bl = { wrapper: "_wrapper_tnenm_2" };
|
|
8412
8409
|
//#endregion
|
|
8413
8410
|
//#region node_modules/marked/lib/marked.esm.js
|
|
8414
8411
|
function xl() {
|
|
@@ -9862,7 +9859,7 @@ var qu = ({ editor: t, onClick: n, isActive: r, canDo: a, icon: o, label: s, cla
|
|
|
9862
9859
|
children: /* @__PURE__ */ N(o, { className: "size-4" })
|
|
9863
9860
|
})
|
|
9864
9861
|
}), /* @__PURE__ */ N(g, { children: /* @__PURE__ */ N("span", { children: s }) })] }) : null, Ju = (e) => [
|
|
9865
|
-
|
|
9862
|
+
Mn.configure({
|
|
9866
9863
|
heading: { levels: [
|
|
9867
9864
|
1,
|
|
9868
9865
|
2,
|
|
@@ -9872,12 +9869,12 @@ var qu = ({ editor: t, onClick: n, isActive: r, canDo: a, icon: o, label: s, cla
|
|
|
9872
9869
|
codeBlock: !1,
|
|
9873
9870
|
horizontalRule: !1
|
|
9874
9871
|
}),
|
|
9875
|
-
|
|
9876
|
-
|
|
9872
|
+
jn,
|
|
9873
|
+
Nn.configure({
|
|
9877
9874
|
placeholder: e,
|
|
9878
9875
|
emptyNodeClass: "is-description-editor-empty"
|
|
9879
9876
|
})
|
|
9880
|
-
], Yu = new
|
|
9877
|
+
], Yu = new Fn({
|
|
9881
9878
|
headingStyle: "atx",
|
|
9882
9879
|
codeBlockStyle: "fenced"
|
|
9883
9880
|
});
|
|
@@ -9899,13 +9896,13 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
9899
9896
|
t.parent.textContent === "" ? e.chain().focus().liftListItem("listItem").run() : e.chain().focus().splitListItem("listItem").run();
|
|
9900
9897
|
} else e.chain().focus().splitBlock().run();
|
|
9901
9898
|
return !0;
|
|
9902
|
-
}, []), _ =
|
|
9899
|
+
}, []), _ = bn({
|
|
9903
9900
|
extensions: Ju(r),
|
|
9904
9901
|
content: t ? Gu(t) : "",
|
|
9905
9902
|
editable: !l,
|
|
9906
9903
|
onSelectionUpdate: m,
|
|
9907
9904
|
editorProps: {
|
|
9908
|
-
attributes: {
|
|
9905
|
+
attributes: {},
|
|
9909
9906
|
handleKeyDown: (e, t) => t.key === "Escape" ? (t.preventDefault(), o?.(), !0) : t.key === "Enter" ? t.shiftKey || !h.current ? (t.preventDefault(), g()) : (t.preventDefault(), h.current(), !0) : !1
|
|
9910
9907
|
}
|
|
9911
9908
|
}), y = S(() => {
|
|
@@ -9939,7 +9936,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
9939
9936
|
}
|
|
9940
9937
|
let t = Number(e);
|
|
9941
9938
|
_.chain().focus().setHeading({ level: t }).run();
|
|
9942
|
-
}, A = O === "1" ?
|
|
9939
|
+
}, A = O === "1" ? ke : O === "2" ? Ae : O === "3" ? je : O === "4" ? Me : ft;
|
|
9943
9940
|
return w(d, () => ({
|
|
9944
9941
|
insertContent: (e) => {
|
|
9945
9942
|
_?.chain().focus().insertContent(e).run();
|
|
@@ -9952,7 +9949,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
9952
9949
|
children: [
|
|
9953
9950
|
/* @__PURE__ */ N("div", {
|
|
9954
9951
|
className: v(bl.wrapper, c),
|
|
9955
|
-
children: /* @__PURE__ */ N(
|
|
9952
|
+
children: /* @__PURE__ */ N(hn, { editor: _ })
|
|
9956
9953
|
}),
|
|
9957
9954
|
/* @__PURE__ */ P("div", {
|
|
9958
9955
|
className: "flex items-center justify-start pb-2 px-2 pt-2 gap-2 flex-wrap",
|
|
@@ -9969,7 +9966,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
9969
9966
|
children: [/* @__PURE__ */ N(A, {
|
|
9970
9967
|
className: "size-4",
|
|
9971
9968
|
"aria-hidden": !0
|
|
9972
|
-
}), /* @__PURE__ */ N(
|
|
9969
|
+
}), /* @__PURE__ */ N(ge, { className: "size-3.5 opacity-60" })]
|
|
9973
9970
|
})
|
|
9974
9971
|
}), /* @__PURE__ */ P(Ko, {
|
|
9975
9972
|
align: "start",
|
|
@@ -10023,7 +10020,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10023
10020
|
onClick: b,
|
|
10024
10021
|
isActive: (e) => e.isActive("bold"),
|
|
10025
10022
|
canDo: (e) => e.can().toggleBold(),
|
|
10026
|
-
icon:
|
|
10023
|
+
icon: le,
|
|
10027
10024
|
label: "Negrita"
|
|
10028
10025
|
}),
|
|
10029
10026
|
/* @__PURE__ */ N(qu, {
|
|
@@ -10031,7 +10028,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10031
10028
|
onClick: x,
|
|
10032
10029
|
isActive: (e) => e.isActive("italic"),
|
|
10033
10030
|
canDo: (e) => e.can().toggleItalic(),
|
|
10034
|
-
icon:
|
|
10031
|
+
icon: Ie,
|
|
10035
10032
|
label: "Cursiva"
|
|
10036
10033
|
}),
|
|
10037
10034
|
/* @__PURE__ */ N(qu, {
|
|
@@ -10039,7 +10036,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10039
10036
|
onClick: T,
|
|
10040
10037
|
isActive: (e) => e.isActive("underline"),
|
|
10041
10038
|
canDo: (e) => e.can().toggleUnderline(),
|
|
10042
|
-
icon:
|
|
10039
|
+
icon: pt,
|
|
10043
10040
|
label: "Subrayado"
|
|
10044
10041
|
}),
|
|
10045
10042
|
/* @__PURE__ */ N(a, {
|
|
@@ -10051,7 +10048,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10051
10048
|
onClick: D,
|
|
10052
10049
|
isActive: (e) => e.isActive("orderedList"),
|
|
10053
10050
|
canDo: () => !0,
|
|
10054
|
-
icon:
|
|
10051
|
+
icon: Be,
|
|
10055
10052
|
label: "Lista numerada"
|
|
10056
10053
|
}),
|
|
10057
10054
|
/* @__PURE__ */ N(qu, {
|
|
@@ -10059,7 +10056,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10059
10056
|
onClick: te,
|
|
10060
10057
|
isActive: (e) => e.isActive("bulletList"),
|
|
10061
10058
|
canDo: () => !0,
|
|
10062
|
-
icon:
|
|
10059
|
+
icon: ze,
|
|
10063
10060
|
label: "Lista de viñetas"
|
|
10064
10061
|
}),
|
|
10065
10062
|
/* @__PURE__ */ N(a, {
|
|
@@ -10071,7 +10068,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10071
10068
|
onClick: ne,
|
|
10072
10069
|
isActive: (e) => e.isActive("blockquote"),
|
|
10073
10070
|
canDo: (e) => e.can().toggleBlockquote(),
|
|
10074
|
-
icon:
|
|
10071
|
+
icon: lt,
|
|
10075
10072
|
label: "Cita"
|
|
10076
10073
|
}),
|
|
10077
10074
|
/* @__PURE__ */ N(qu, {
|
|
@@ -10079,7 +10076,7 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10079
10076
|
onClick: re,
|
|
10080
10077
|
isActive: (e) => e.isActive("code"),
|
|
10081
10078
|
canDo: (e) => e.can().toggleCode(),
|
|
10082
|
-
icon:
|
|
10079
|
+
icon: Ce,
|
|
10083
10080
|
label: "Código"
|
|
10084
10081
|
})
|
|
10085
10082
|
]
|
|
@@ -10092,6 +10089,6 @@ var Xu = x(function({ value: t, onChange: n, placeholder: r = "Escribe una descr
|
|
|
10092
10089
|
}) : null;
|
|
10093
10090
|
});
|
|
10094
10091
|
//#endregion
|
|
10095
|
-
export { br as AsyncBoundary, Hr as AsyncCommandList, $r as AsyncSelect, ei as Avatar, ni as AvatarFallback, ti as AvatarImage, ii as AvatarInput, oi as Badge, si as Breadcrumb, pi as BreadcrumbEllipsis, li as BreadcrumbItem, ui as BreadcrumbLink, ci as BreadcrumbList, di as BreadcrumbPage, fi as BreadcrumbSeparator, e as Button, hi as ButtonGroup, _i as ButtonGroupSeparator, gi as ButtonGroupText, vi as Calendar, yi as CalendarDayButton, sr as CalendarDaysIcon, bi as Card, wi as CardAction, Ti as CardContent, Ci as CardDescription, Ei as CardFooter, xi as CardHeader, Si as CardTitle, ki as Carousel, Ai as CarouselContent, ji as CarouselItem, Ni as CarouselNext, Mi as CarouselPrevious, Li as ChartContainer, Vi as ChartLegend, Hi as ChartLegendContent, ir as ChartPieIcon, Ri as ChartStyle, zi as ChartTooltip, Bi as ChartTooltipContent, Wi as Checkbox, lr as CircleHelpIcon, Gi as Collapsible, qi as CollapsibleContent, Ki as CollapsibleTrigger, Nr as Command, Pr as CommandDialog, Lr as CommandEmpty, Rr as CommandGroup, Fr as CommandInput, Br as CommandItem, Ir as CommandList, zr as CommandSeparator, Vr as CommandShortcut, Ji as ContextMenu, ia as ContextMenuCheckboxItem, na as ContextMenuContent, Xi as ContextMenuGroup, ra as ContextMenuItem, oa as ContextMenuLabel, Zi as ContextMenuPortal, $i as ContextMenuRadioGroup, aa as ContextMenuRadioItem, sa as ContextMenuSeparator, ca as ContextMenuShortcut, Qi as ContextMenuSub, ta as ContextMenuSubContent, ea as ContextMenuSubTrigger, Yi as ContextMenuTrigger, la as CustomHeader, Co as DateDisplay, wo as DateInput, Eo as DatePanel, jo as DateRangePicker, Xu as DescriptionMarkdownEditor, xr as Dialog, wr as DialogClose, Er as DialogContent, Ar as DialogDescription, Or as DialogFooter, Dr as DialogHeader, Tr as DialogOverlay, Cr as DialogPortal, kr as DialogTitle, Sr as DialogTrigger, Mo as Drawer, Fo as DrawerClose, Lo as DrawerContent, Vo as DrawerDescription, zo as DrawerFooter, Ro as DrawerHeader, Io as DrawerOverlay, Po as DrawerPortal, Bo as DrawerTitle, No as DrawerTrigger, Uo as DropdownMenu, Yo as DropdownMenuCheckboxItem, Ko as DropdownMenuContent, qo as DropdownMenuGroup, Jo as DropdownMenuItem, Qo as DropdownMenuLabel, Wo as DropdownMenuPortal, Xo as DropdownMenuRadioGroup, Zo as DropdownMenuRadioItem, $o as DropdownMenuSeparator, es as DropdownMenuShortcut, ts as DropdownMenuSub, rs as DropdownMenuSubContent, ns as DropdownMenuSubTrigger, Go as DropdownMenuTrigger, is as EmojiPicker, ls as EmojiPickerContent, us as EmojiPickerFooter, as as EmojiPickerSearch, ds as FileDropZone,
|
|
10092
|
+
export { br as AsyncBoundary, Hr as AsyncCommandList, $r as AsyncSelect, ei as Avatar, ni as AvatarFallback, ti as AvatarImage, ii as AvatarInput, oi as Badge, si as Breadcrumb, pi as BreadcrumbEllipsis, li as BreadcrumbItem, ui as BreadcrumbLink, ci as BreadcrumbList, di as BreadcrumbPage, fi as BreadcrumbSeparator, e as Button, hi as ButtonGroup, _i as ButtonGroupSeparator, gi as ButtonGroupText, vi as Calendar, yi as CalendarDayButton, sr as CalendarDaysIcon, bi as Card, wi as CardAction, Ti as CardContent, Ci as CardDescription, Ei as CardFooter, xi as CardHeader, Si as CardTitle, ki as Carousel, Ai as CarouselContent, ji as CarouselItem, Ni as CarouselNext, Mi as CarouselPrevious, Li as ChartContainer, Vi as ChartLegend, Hi as ChartLegendContent, ir as ChartPieIcon, Ri as ChartStyle, zi as ChartTooltip, Bi as ChartTooltipContent, Wi as Checkbox, lr as CircleHelpIcon, Gi as Collapsible, qi as CollapsibleContent, Ki as CollapsibleTrigger, Nr as Command, Pr as CommandDialog, Lr as CommandEmpty, Rr as CommandGroup, Fr as CommandInput, Br as CommandItem, Ir as CommandList, zr as CommandSeparator, Vr as CommandShortcut, Ji as ContextMenu, ia as ContextMenuCheckboxItem, na as ContextMenuContent, Xi as ContextMenuGroup, ra as ContextMenuItem, oa as ContextMenuLabel, Zi as ContextMenuPortal, $i as ContextMenuRadioGroup, aa as ContextMenuRadioItem, sa as ContextMenuSeparator, ca as ContextMenuShortcut, Qi as ContextMenuSub, ta as ContextMenuSubContent, ea as ContextMenuSubTrigger, Yi as ContextMenuTrigger, la as CustomHeader, Co as DateDisplay, wo as DateInput, Eo as DatePanel, jo as DateRangePicker, Xu as DescriptionMarkdownEditor, xr as Dialog, wr as DialogClose, Er as DialogContent, Ar as DialogDescription, Or as DialogFooter, Dr as DialogHeader, Tr as DialogOverlay, Cr as DialogPortal, kr as DialogTitle, Sr as DialogTrigger, Mo as Drawer, Fo as DrawerClose, Lo as DrawerContent, Vo as DrawerDescription, zo as DrawerFooter, Ro as DrawerHeader, Io as DrawerOverlay, Po as DrawerPortal, Bo as DrawerTitle, No as DrawerTrigger, Uo as DropdownMenu, Yo as DropdownMenuCheckboxItem, Ko as DropdownMenuContent, qo as DropdownMenuGroup, Jo as DropdownMenuItem, Qo as DropdownMenuLabel, Wo as DropdownMenuPortal, Xo as DropdownMenuRadioGroup, Zo as DropdownMenuRadioItem, $o as DropdownMenuSeparator, es as DropdownMenuShortcut, ts as DropdownMenuSub, rs as DropdownMenuSubContent, ns as DropdownMenuSubTrigger, Go as DropdownMenuTrigger, is as EmojiPicker, ls as EmojiPickerContent, us as EmojiPickerFooter, as as EmojiPickerSearch, ds as FileDropZone, er as FoldersIcon, _l as FormInput, yl as FormSelect, vl as FormTextarea, vs as GoogleDriveIcon, bs as GoogleIsotype, _s as Icon, gs as IconPicker, Ss as Image, ri as ImageCropDialog, Cs as InfoTooltip, l as Input, ws as InputOTP, Ts as InputOTPGroup, Ds as InputOTPSeparator, Es as InputOTPSlot, Os as Isotype, ks as Kbd, As as KbdGroup, H as Label, Qn as LayersIcon, Fs as LoaderSplash, Hs as LocationInput, js as Logo, Vs as MapPicker, Us as MapView, xs as MicrosoftIsotype, Un as NODE_HANDLES_SELECTED_STYLE_CLASSNAME, ys as OneDriveIcon, Ws as Pagination, Gs as PaginationContent, Zs as PaginationController, Xs as PaginationEllipsis, Ks as PaginationItem, qs as PaginationLink, Ys as PaginationNext, Js as PaginationPrevious, fr as PanelLeftCloseIcon, hr as PanelLeftOpenIcon, Do as Popover, Ao as PopoverAnchor, ko as PopoverContent, Oo as PopoverTrigger, Qs as Progress, $s as RadioGroup, ec as RadioGroupItem, rc as ResizableHandle, nc as ResizablePanel, tc as ResizablePanelGroup, gl as RichTextEditor, jr as ScrollArea, Mr as ScrollBar, $n as SearchIcon, Ur as Select, qr as SelectContent, Wr as SelectGroup, Yr as SelectItem, Jr as SelectLabel, Qr as SelectScrollDownButton, Zr as SelectScrollUpButton, Xr as SelectSeparator, Kr as SelectTrigger, Gr as SelectValue, a as Separator, h as Sheet, u as SheetClose, p as SheetContent, s as SheetDescription, t as SheetFooter, d as SheetHeader, m as SheetTitle, n as SheetTrigger, f as Skeleton, ic as Slider, nr as SlidersHorizontalIcon, vr as SparklesIcon, sc as StatusMessage, cc as Table, uc as TableBody, hc as TableCaption, mc as TableCell, dc as TableFooter, pc as TableHead, lc as TableHeader, fc as TableRow, gc as Tabs, yc as TabsContent, _c as TabsList, vc as TabsTrigger, bc as Textarea, ac as Toaster, Sc as Toggle, c as Tooltip, g as TooltipContent, r as TooltipProvider, i as TooltipTrigger, Xn as UsersIcon, qn as absoluteUrl, ai as badgeVariants, mi as buttonGroupVariants, _ as buttonVariants, Bn as canvasToFile, zn as centerAspectCrop, Hn as classNameControl, v as cn, Jn as content, Ho as dropdownMenuItemVariants, Gn as duplicateContent, Vn as getCroppedImg, Kn as getUrlFromString, o as inputVariants, Wn as isValidUrl, yr as useAnimatedIcon, In as useDebounce, Rn as useImageUpload, Ln as useMediaQuery };
|
|
10096
10093
|
|
|
10097
10094
|
//# sourceMappingURL=index.js.map
|