reactjs-tiptap-editor 1.0.19 → 1.0.21
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/lib/{ActionMenuButton-D3b_bcin.cjs → ActionMenuButton-BVaZBdL3.cjs} +1 -1
- package/lib/{ActionMenuButton-B1Nfn5Hm.js → ActionMenuButton-Cpla3oSm.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +23 -23
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +2 -2
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +2 -2
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/Callout-JL3mm4GU.cjs +1 -0
- package/lib/Callout-mb31jDcR.js +340 -0
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +8 -222
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +2 -2
- package/lib/CodeBlock.cjs +20 -44
- package/lib/CodeBlock.js +1385 -4011
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +3 -3
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +2 -2
- package/lib/{Drawer-kEO7KzzC.cjs → Drawer-94nAoli4.cjs} +1 -1
- package/lib/{Drawer-B1-7Y4HB.js → Drawer-d9e69c7G.js} +20 -20
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +4 -4
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +12 -12
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +7 -7
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +2 -2
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +9 -9
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +3 -3
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Iframe-XlAb03_r.js → Iframe-CkUClxtI.js} +7 -7
- package/lib/{Iframe-Bk5OIlvy.cjs → Iframe-qCivhCR5.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +6 -6
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +36 -36
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +13 -13
- package/lib/{Indent-ruPuj5xn.js → Indent-BTzj50Sf.js} +2 -2
- package/lib/{Indent-XaZNTsOk.cjs → Indent-DtgugDpq.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +2 -2
- package/lib/{Katex-DKspCn-p.js → Katex-BuFwL_MA.js} +401 -422
- package/lib/Katex-RcbH2O5p.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +3 -3
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-DhesHreq.cjs → LinkEditBlock-CSKh_5n7.cjs} +1 -1
- package/lib/{LinkEditBlock-BWm2Ypt2.js → LinkEditBlock-DYOmu7jQ.js} +26 -26
- package/lib/MarkdownPaste.cjs +1 -1
- package/lib/MarkdownPaste.js +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.js +4 -4
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +44 -43
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +5 -5
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +8 -8
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/{SlashCommandNodeView-Hf2DX4km.js → SlashCommandNodeView-CT_-28t6.js} +6 -6
- package/lib/{SlashCommandNodeView-CojfS61Q.cjs → SlashCommandNodeView-CYdYVjeb.cjs} +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-BTkFUATL.js → Table-CEHV8gmO.js} +35 -35
- package/lib/{Table-C1_xLqV0.cjs → Table-DOl6C6To.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +2 -2
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +3 -3
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +3 -3
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +2 -2
- package/lib/{Twitter-Cj-0yyQQ.cjs → Twitter-DDuJwWdF.cjs} +1 -1
- package/lib/{Twitter-D5mUTILj.js → Twitter-DxqKzo3U.js} +9 -9
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +3 -3
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +4 -4
- package/lib/_commonjsHelpers-B4e78b8K.js +28 -0
- package/lib/_commonjsHelpers-BTDuMlIz.cjs +1 -0
- package/lib/bubble.cjs +6 -6
- package/lib/bubble.js +1841 -1701
- package/lib/{clsx-OumA9x-8.js → clsx-Bg-2aTKh.js} +11 -11
- package/lib/{clsx-BSBE1eoY.cjs → clsx-DSAWW32g.cjs} +1 -1
- package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -0
- package/lib/components/Bubble/index.d.ts +1 -0
- package/lib/{dropdown-menu-Bragdu5m.js → dropdown-menu-BYbds8yQ.js} +1 -1
- package/lib/{dropdown-menu-CUeq1boX.cjs → dropdown-menu-CoZZaqv5.cjs} +1 -1
- package/lib/extensions/CodeBlock/CodeBlock.d.ts +3 -18
- package/lib/{index-CDFAs4RT.js → index-B1SzsIsE.js} +1020 -1149
- package/lib/{index-CnePcUeF.cjs → index-C3dgmjIF.cjs} +1 -1
- package/lib/{index-DwSnESy-.cjs → index-C4WLt4NA.cjs} +4 -4
- package/lib/{index-BKlbc8Qo.js → index-CbkpBnTX.js} +1 -1
- package/lib/{index-CZ1_8JQQ.js → index-CjLxMm5d.js} +1 -1
- package/lib/{index-BVRHx_ha.js → index-D0EmqTpe.js} +74 -64
- package/lib/{index-cPEuL4Zr.js → index-DXtVL0al.js} +1 -1
- package/lib/index-DirFiHQ6.cjs +1 -0
- package/lib/{index-CMLwKzI0.cjs → index-DlxZt4_j.cjs} +1 -1
- package/lib/{index-B-7eHzaO.js → index-P5_MyY0i.js} +1 -1
- package/lib/{index-D7wfvzJg.cjs → index-TcJ2UKnv.cjs} +1 -1
- package/lib/{index-COCTP78Y.cjs → index-fbGGohBT.cjs} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +12 -12
- package/lib/{popover-DCJpsZx0.cjs → popover-BaAurWOZ.cjs} +1 -1
- package/lib/{popover-C2BbhsXH.js → popover-CK54Ip2N.js} +1 -1
- package/lib/{renderNodeView-CmnUEfby.js → renderNodeView-CbxCTni3.js} +2 -2
- package/lib/{renderNodeView-DQjWzXDA.cjs → renderNodeView-DFVrJy0l.cjs} +1 -1
- package/lib/{separator-BuG1zwKa.cjs → separator-ByK1SKWn.cjs} +1 -1
- package/lib/{separator-lkMWuUvf.js → separator-XZA3-egy.js} +14 -14
- package/lib/style.css +1 -1
- package/lib/textarea--IMIy9VF.js +20 -0
- package/lib/textarea-mwHtiXJV.cjs +1 -0
- package/lib/{updatePosition-DYuAiqx-.js → updatePosition-BGD41Hbg.js} +2 -2
- package/lib/{updatePosition-D6AScA-1.cjs → updatePosition-CQE1ct18.cjs} +1 -1
- package/package.json +4 -2
- package/lib/Katex-BFIYLrwm.cjs +0 -4
- package/lib/delete-node-CosiBes5.cjs +0 -1
- package/lib/delete-node-eQHsyyhR.js +0 -24
- package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +0 -1
- package/lib/index-BLrMslr7.cjs +0 -1
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { y as Wt, b as Gt, S as Xt } from "./index-BG0kQamI.js";
|
|
1
|
+
import { jsxs as C, jsx as n, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import * as U from "react";
|
|
3
|
+
import Q, { useState as L, useMemo as B, useCallback as ce, useEffect as ze, useRef as xe } from "react";
|
|
4
|
+
import { y as jt, b as _t, S as Ut } from "./index-BG0kQamI.js";
|
|
6
5
|
import "./theme.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import * as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
6
|
+
import * as F from "@radix-ui/react-dialog";
|
|
7
|
+
import { NotebookPen as Bt, ExternalLink as $t, X as lt, Loader2 as Ft, WrapText as Wt, PencilRuler as Gt, FlipHorizontal as Xt, FlipVertical as Yt, CropIcon as qt, ChevronUp as Zt, Paperclip as Kt, Eye as Jt, Settings as Qt, ZoomOut as er, ZoomIn as tr, BookMarked as rr, Sigma as ir, SmilePlusIcon as nr, Replace as qe, SmilePlus as or, Frame as ar, Columns2 as Ze, PanelRight as sr, PanelLeft as lr, Clipboard as cr, Copy as dr, GripVertical as ur, Plus as hr, Columns4 as fr, Columns3 as mr, Heading6 as gr, Heading5 as pr, Heading4 as xr, Heading3 as br, Heading2 as vr, Heading1 as wr, Pilcrow as yr, ChevronsUpDown as Cr, Trash as kr, Trash2 as Mr, TableCellsSplit as zr, TableCellsMerge as Tr, BetweenVerticalEnd as Ir, BetweenVerticalStart as Sr, BetweenHorizonalStart as Nr, BetweenHorizonalEnd as Ar, Unlink as Lr, Pencil as Er, Sparkles as Rr, Table as Vr, Minimize as Dr, Maximize as Hr, Video as Or, ImageUp as Pr, Link as jr, ListTodo as _r, ListOrdered as Ur, List as Br, IndentDecrease as $r, IndentIncrease as Fr, Type as Wr, CodeXml as Gr, Code as Xr, Superscript as Yr, Subscript as qr, ChevronDown as Zr, Undo2 as Kr, Redo2 as Jr, PaintRoller as Qr, Eraser as ei, Minus as ti, Strikethrough as ri, Quote as ii, Underline as ni, Italic as oi, LoaderCircle as ai, Bold as si, Check as li } from "lucide-react";
|
|
8
|
+
import { c as ct, N as ci, u as di, b as ui, a as hi } from "./clsx-Bg-2aTKh.js";
|
|
9
|
+
import { N as dt, n as fi, a7 as mi, m as ut } from "./index-D0EmqTpe.js";
|
|
10
|
+
import { I as Ke, i as Je, j as gi, u as ne, V as pi } from "./index-BlXGgvT-.js";
|
|
11
|
+
import { Slot as ht } from "@radix-ui/react-slot";
|
|
12
|
+
import * as be from "@radix-ui/react-tooltip";
|
|
13
|
+
import * as ft from "@radix-ui/react-toggle";
|
|
14
|
+
import { TextAlignRightIcon as xi, TextAlignLeftIcon as bi, TextAlignJustifyIcon as vi, TextAlignCenterIcon as wi } from "@radix-ui/react-icons";
|
|
15
|
+
import * as re from "@radix-ui/react-tabs";
|
|
16
|
+
import yi from "react-image-crop";
|
|
18
17
|
import * as Oe from "@radix-ui/react-checkbox";
|
|
19
|
-
import
|
|
20
|
-
const
|
|
21
|
-
const t =
|
|
18
|
+
import * as mt from "@radix-ui/react-label";
|
|
19
|
+
const _e = "-", Ci = (e) => {
|
|
20
|
+
const t = Mi(e), {
|
|
22
21
|
conflictingClassGroups: r,
|
|
23
22
|
conflictingClassGroupModifiers: i
|
|
24
23
|
} = e;
|
|
25
24
|
return {
|
|
26
25
|
getClassGroupId: (l) => {
|
|
27
|
-
const s = l.split(
|
|
28
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
26
|
+
const s = l.split(_e);
|
|
27
|
+
return s[0] === "" && s.length !== 1 && s.shift(), gt(s, t) || ki(l);
|
|
29
28
|
},
|
|
30
29
|
getConflictingClassGroupIds: (l, s) => {
|
|
31
30
|
const c = r[l] || [];
|
|
32
31
|
return s && i[l] ? [...c, ...i[l]] : c;
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
|
-
},
|
|
34
|
+
}, gt = (e, t) => {
|
|
36
35
|
var l;
|
|
37
36
|
if (e.length === 0)
|
|
38
37
|
return t.classGroupId;
|
|
39
|
-
const r = e[0], i = t.nextPart.get(r), o = i ?
|
|
38
|
+
const r = e[0], i = t.nextPart.get(r), o = i ? gt(e.slice(1), i) : void 0;
|
|
40
39
|
if (o)
|
|
41
40
|
return o;
|
|
42
41
|
if (t.validators.length === 0)
|
|
43
42
|
return;
|
|
44
|
-
const a = e.join(
|
|
43
|
+
const a = e.join(_e);
|
|
45
44
|
return (l = t.validators.find(({
|
|
46
45
|
validator: s
|
|
47
46
|
}) => s(a))) == null ? void 0 : l.classGroupId;
|
|
48
|
-
},
|
|
49
|
-
if (
|
|
50
|
-
const t =
|
|
47
|
+
}, Qe = /^\[(.+)\]$/, ki = (e) => {
|
|
48
|
+
if (Qe.test(e)) {
|
|
49
|
+
const t = Qe.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
51
50
|
if (r)
|
|
52
51
|
return "arbitrary.." + r;
|
|
53
52
|
}
|
|
54
|
-
},
|
|
53
|
+
}, Mi = (e) => {
|
|
55
54
|
const {
|
|
56
55
|
theme: t,
|
|
57
56
|
prefix: r
|
|
@@ -59,18 +58,18 @@ const Be = "-", Mi = (e) => {
|
|
|
59
58
|
nextPart: /* @__PURE__ */ new Map(),
|
|
60
59
|
validators: []
|
|
61
60
|
};
|
|
62
|
-
return
|
|
61
|
+
return Ti(Object.entries(e.classGroups), r).forEach(([a, l]) => {
|
|
63
62
|
Pe(l, i, a, t);
|
|
64
63
|
}), i;
|
|
65
64
|
}, Pe = (e, t, r, i) => {
|
|
66
65
|
e.forEach((o) => {
|
|
67
66
|
if (typeof o == "string") {
|
|
68
|
-
const a = o === "" ? t :
|
|
67
|
+
const a = o === "" ? t : et(t, o);
|
|
69
68
|
a.classGroupId = r;
|
|
70
69
|
return;
|
|
71
70
|
}
|
|
72
71
|
if (typeof o == "function") {
|
|
73
|
-
if (
|
|
72
|
+
if (zi(o)) {
|
|
74
73
|
Pe(o(i), t, r, i);
|
|
75
74
|
return;
|
|
76
75
|
}
|
|
@@ -81,21 +80,21 @@ const Be = "-", Mi = (e) => {
|
|
|
81
80
|
return;
|
|
82
81
|
}
|
|
83
82
|
Object.entries(o).forEach(([a, l]) => {
|
|
84
|
-
Pe(l,
|
|
83
|
+
Pe(l, et(t, a), r, i);
|
|
85
84
|
});
|
|
86
85
|
});
|
|
87
|
-
},
|
|
86
|
+
}, et = (e, t) => {
|
|
88
87
|
let r = e;
|
|
89
|
-
return t.split(
|
|
88
|
+
return t.split(_e).forEach((i) => {
|
|
90
89
|
r.nextPart.has(i) || r.nextPart.set(i, {
|
|
91
90
|
nextPart: /* @__PURE__ */ new Map(),
|
|
92
91
|
validators: []
|
|
93
92
|
}), r = r.nextPart.get(i);
|
|
94
93
|
}), r;
|
|
95
|
-
},
|
|
94
|
+
}, zi = (e) => e.isThemeGetter, Ti = (e, t) => t ? e.map(([r, i]) => {
|
|
96
95
|
const o = i.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([l, s]) => [t + l, s])) : a);
|
|
97
96
|
return [r, o];
|
|
98
|
-
}) : e,
|
|
97
|
+
}) : e, Ii = (e) => {
|
|
99
98
|
if (e < 1)
|
|
100
99
|
return {
|
|
101
100
|
get: () => {
|
|
@@ -119,40 +118,40 @@ const Be = "-", Mi = (e) => {
|
|
|
119
118
|
r.has(a) ? r.set(a, l) : o(a, l);
|
|
120
119
|
}
|
|
121
120
|
};
|
|
122
|
-
},
|
|
121
|
+
}, pt = "!", Si = (e) => {
|
|
123
122
|
const {
|
|
124
123
|
separator: t,
|
|
125
124
|
experimentalParseClassName: r
|
|
126
125
|
} = e, i = t.length === 1, o = t[0], a = t.length, l = (s) => {
|
|
127
126
|
const c = [];
|
|
128
|
-
let d = 0,
|
|
127
|
+
let d = 0, g = 0, p;
|
|
129
128
|
for (let f = 0; f < s.length; f++) {
|
|
130
129
|
let x = s[f];
|
|
131
130
|
if (d === 0) {
|
|
132
131
|
if (x === o && (i || s.slice(f, f + a) === t)) {
|
|
133
|
-
c.push(s.slice(
|
|
132
|
+
c.push(s.slice(g, f)), g = f + a;
|
|
134
133
|
continue;
|
|
135
134
|
}
|
|
136
135
|
if (x === "/") {
|
|
137
|
-
|
|
136
|
+
p = f;
|
|
138
137
|
continue;
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
x === "[" ? d++ : x === "]" && d--;
|
|
142
141
|
}
|
|
143
|
-
const u = c.length === 0 ? s : s.substring(
|
|
142
|
+
const u = c.length === 0 ? s : s.substring(g), k = u.startsWith(pt), b = k ? u.substring(1) : u, z = p && p > g ? p - g : void 0;
|
|
144
143
|
return {
|
|
145
144
|
modifiers: c,
|
|
146
145
|
hasImportantModifier: k,
|
|
147
146
|
baseClassName: b,
|
|
148
|
-
maybePostfixModifierPosition:
|
|
147
|
+
maybePostfixModifierPosition: z
|
|
149
148
|
};
|
|
150
149
|
};
|
|
151
150
|
return r ? (s) => r({
|
|
152
151
|
className: s,
|
|
153
152
|
parseClassName: l
|
|
154
153
|
}) : l;
|
|
155
|
-
},
|
|
154
|
+
}, Ni = (e) => {
|
|
156
155
|
if (e.length <= 1)
|
|
157
156
|
return e;
|
|
158
157
|
const t = [];
|
|
@@ -160,122 +159,122 @@ const Be = "-", Mi = (e) => {
|
|
|
160
159
|
return e.forEach((i) => {
|
|
161
160
|
i[0] === "[" ? (t.push(...r.sort(), i), r = []) : r.push(i);
|
|
162
161
|
}), t.push(...r.sort()), t;
|
|
163
|
-
},
|
|
164
|
-
cache:
|
|
165
|
-
parseClassName:
|
|
166
|
-
...
|
|
167
|
-
}),
|
|
162
|
+
}, Ai = (e) => ({
|
|
163
|
+
cache: Ii(e.cacheSize),
|
|
164
|
+
parseClassName: Si(e),
|
|
165
|
+
...Ci(e)
|
|
166
|
+
}), Li = /\s+/, Ei = (e, t) => {
|
|
168
167
|
const {
|
|
169
168
|
parseClassName: r,
|
|
170
169
|
getClassGroupId: i,
|
|
171
170
|
getConflictingClassGroupIds: o
|
|
172
|
-
} = t, a = [], l = e.trim().split(
|
|
171
|
+
} = t, a = [], l = e.trim().split(Li);
|
|
173
172
|
let s = "";
|
|
174
173
|
for (let c = l.length - 1; c >= 0; c -= 1) {
|
|
175
174
|
const d = l[c], {
|
|
176
|
-
modifiers:
|
|
177
|
-
hasImportantModifier:
|
|
175
|
+
modifiers: g,
|
|
176
|
+
hasImportantModifier: p,
|
|
178
177
|
baseClassName: u,
|
|
179
178
|
maybePostfixModifierPosition: k
|
|
180
179
|
} = r(d);
|
|
181
|
-
let b = !!k,
|
|
182
|
-
if (!
|
|
180
|
+
let b = !!k, z = i(b ? u.substring(0, k) : u);
|
|
181
|
+
if (!z) {
|
|
183
182
|
if (!b) {
|
|
184
183
|
s = d + (s.length > 0 ? " " + s : s);
|
|
185
184
|
continue;
|
|
186
185
|
}
|
|
187
|
-
if (
|
|
186
|
+
if (z = i(u), !z) {
|
|
188
187
|
s = d + (s.length > 0 ? " " + s : s);
|
|
189
188
|
continue;
|
|
190
189
|
}
|
|
191
190
|
b = !1;
|
|
192
191
|
}
|
|
193
|
-
const f =
|
|
192
|
+
const f = Ni(g).join(":"), x = p ? f + pt : f, h = x + z;
|
|
194
193
|
if (a.includes(h))
|
|
195
194
|
continue;
|
|
196
195
|
a.push(h);
|
|
197
|
-
const
|
|
198
|
-
for (let m = 0; m <
|
|
199
|
-
const
|
|
200
|
-
a.push(x +
|
|
196
|
+
const S = o(z, b);
|
|
197
|
+
for (let m = 0; m < S.length; ++m) {
|
|
198
|
+
const D = S[m];
|
|
199
|
+
a.push(x + D);
|
|
201
200
|
}
|
|
202
201
|
s = d + (s.length > 0 ? " " + s : s);
|
|
203
202
|
}
|
|
204
203
|
return s;
|
|
205
204
|
};
|
|
206
|
-
function
|
|
205
|
+
function Ri() {
|
|
207
206
|
let e = 0, t, r, i = "";
|
|
208
207
|
for (; e < arguments.length; )
|
|
209
|
-
(t = arguments[e++]) && (r =
|
|
208
|
+
(t = arguments[e++]) && (r = xt(t)) && (i && (i += " "), i += r);
|
|
210
209
|
return i;
|
|
211
210
|
}
|
|
212
|
-
const
|
|
211
|
+
const xt = (e) => {
|
|
213
212
|
if (typeof e == "string")
|
|
214
213
|
return e;
|
|
215
214
|
let t, r = "";
|
|
216
215
|
for (let i = 0; i < e.length; i++)
|
|
217
|
-
e[i] && (t =
|
|
216
|
+
e[i] && (t = xt(e[i])) && (r && (r += " "), r += t);
|
|
218
217
|
return r;
|
|
219
218
|
};
|
|
220
|
-
function
|
|
219
|
+
function Vi(e, ...t) {
|
|
221
220
|
let r, i, o, a = l;
|
|
222
221
|
function l(c) {
|
|
223
|
-
const d = t.reduce((
|
|
224
|
-
return r =
|
|
222
|
+
const d = t.reduce((g, p) => p(g), e());
|
|
223
|
+
return r = Ai(d), i = r.cache.get, o = r.cache.set, a = s, s(c);
|
|
225
224
|
}
|
|
226
225
|
function s(c) {
|
|
227
226
|
const d = i(c);
|
|
228
227
|
if (d)
|
|
229
228
|
return d;
|
|
230
|
-
const
|
|
231
|
-
return o(c,
|
|
229
|
+
const g = Ei(c, r);
|
|
230
|
+
return o(c, g), g;
|
|
232
231
|
}
|
|
233
232
|
return function() {
|
|
234
|
-
return a(
|
|
233
|
+
return a(Ri.apply(null, arguments));
|
|
235
234
|
};
|
|
236
235
|
}
|
|
237
|
-
const
|
|
236
|
+
const V = (e) => {
|
|
238
237
|
const t = (r) => r[e] || [];
|
|
239
238
|
return t.isThemeGetter = !0, t;
|
|
240
|
-
},
|
|
241
|
-
const i =
|
|
239
|
+
}, bt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Di = /^\d+\/\d+$/, Hi = /* @__PURE__ */ new Set(["px", "full", "screen"]), Oi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ji = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _i = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ui = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => ie(e) || Hi.has(e) || Di.test(e), K = (e) => oe(e, "length", qi), ie = (e) => !!e && !Number.isNaN(Number(e)), Le = (e) => oe(e, "number", ie), de = (e) => !!e && Number.isInteger(Number(e)), Bi = (e) => e.endsWith("%") && ie(e.slice(0, -1)), T = (e) => bt.test(e), J = (e) => Oi.test(e), $i = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Fi = (e) => oe(e, $i, vt), Wi = (e) => oe(e, "position", vt), Gi = /* @__PURE__ */ new Set(["image", "url"]), Xi = (e) => oe(e, Gi, Ki), Yi = (e) => oe(e, "", Zi), ue = () => !0, oe = (e, t, r) => {
|
|
240
|
+
const i = bt.exec(e);
|
|
242
241
|
return i ? i[1] ? typeof t == "string" ? i[1] === t : t.has(i[1]) : r(i[2]) : !1;
|
|
243
|
-
},
|
|
242
|
+
}, qi = (e) => (
|
|
244
243
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
245
244
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
246
245
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
|
-
|
|
248
|
-
),
|
|
249
|
-
const e =
|
|
246
|
+
Pi.test(e) && !ji.test(e)
|
|
247
|
+
), vt = () => !1, Zi = (e) => _i.test(e), Ki = (e) => Ui.test(e), Ji = () => {
|
|
248
|
+
const e = V("colors"), t = V("spacing"), r = V("blur"), i = V("brightness"), o = V("borderColor"), a = V("borderRadius"), l = V("borderSpacing"), s = V("borderWidth"), c = V("contrast"), d = V("grayscale"), g = V("hueRotate"), p = V("invert"), u = V("gap"), k = V("gradientColorStops"), b = V("gradientColorStopPositions"), z = V("inset"), f = V("margin"), x = V("opacity"), h = V("padding"), S = V("saturate"), m = V("scale"), D = V("sepia"), v = V("skew"), R = V("space"), N = V("translate"), P = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", T, t], w = () => [T, t], y = () => ["", X, K], I = () => ["auto", ie, T], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], j = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", T], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [ie, T];
|
|
250
249
|
return {
|
|
251
250
|
cacheSize: 500,
|
|
252
251
|
separator: ":",
|
|
253
252
|
theme: {
|
|
254
|
-
colors: [
|
|
255
|
-
spacing: [
|
|
256
|
-
blur: ["none", "",
|
|
257
|
-
brightness:
|
|
253
|
+
colors: [ue],
|
|
254
|
+
spacing: [X, K],
|
|
255
|
+
blur: ["none", "", J, T],
|
|
256
|
+
brightness: W(),
|
|
258
257
|
borderColor: [e],
|
|
259
|
-
borderRadius: ["none", "", "full",
|
|
260
|
-
borderSpacing:
|
|
261
|
-
borderWidth:
|
|
262
|
-
contrast:
|
|
263
|
-
grayscale:
|
|
264
|
-
hueRotate:
|
|
265
|
-
invert:
|
|
266
|
-
gap:
|
|
258
|
+
borderRadius: ["none", "", "full", J, T],
|
|
259
|
+
borderSpacing: w(),
|
|
260
|
+
borderWidth: y(),
|
|
261
|
+
contrast: W(),
|
|
262
|
+
grayscale: G(),
|
|
263
|
+
hueRotate: W(),
|
|
264
|
+
invert: G(),
|
|
265
|
+
gap: w(),
|
|
267
266
|
gradientColorStops: [e],
|
|
268
|
-
gradientColorStopPositions: [
|
|
269
|
-
inset:
|
|
270
|
-
margin:
|
|
271
|
-
opacity:
|
|
272
|
-
padding:
|
|
273
|
-
saturate:
|
|
274
|
-
scale:
|
|
275
|
-
sepia:
|
|
276
|
-
skew:
|
|
277
|
-
space:
|
|
278
|
-
translate:
|
|
267
|
+
gradientColorStopPositions: [Bi, K],
|
|
268
|
+
inset: M(),
|
|
269
|
+
margin: M(),
|
|
270
|
+
opacity: W(),
|
|
271
|
+
padding: w(),
|
|
272
|
+
saturate: W(),
|
|
273
|
+
scale: W(),
|
|
274
|
+
sepia: G(),
|
|
275
|
+
skew: W(),
|
|
276
|
+
space: w(),
|
|
277
|
+
translate: w()
|
|
279
278
|
},
|
|
280
279
|
classGroups: {
|
|
281
280
|
// Layout
|
|
@@ -284,7 +283,7 @@ const D = (e) => {
|
|
|
284
283
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
285
284
|
*/
|
|
286
285
|
aspect: [{
|
|
287
|
-
aspect: ["auto", "square", "video",
|
|
286
|
+
aspect: ["auto", "square", "video", T]
|
|
288
287
|
}],
|
|
289
288
|
/**
|
|
290
289
|
* Container
|
|
@@ -296,21 +295,21 @@ const D = (e) => {
|
|
|
296
295
|
* @see https://tailwindcss.com/docs/columns
|
|
297
296
|
*/
|
|
298
297
|
columns: [{
|
|
299
|
-
columns: [
|
|
298
|
+
columns: [J]
|
|
300
299
|
}],
|
|
301
300
|
/**
|
|
302
301
|
* Break After
|
|
303
302
|
* @see https://tailwindcss.com/docs/break-after
|
|
304
303
|
*/
|
|
305
304
|
"break-after": [{
|
|
306
|
-
"break-after":
|
|
305
|
+
"break-after": ye()
|
|
307
306
|
}],
|
|
308
307
|
/**
|
|
309
308
|
* Break Before
|
|
310
309
|
* @see https://tailwindcss.com/docs/break-before
|
|
311
310
|
*/
|
|
312
311
|
"break-before": [{
|
|
313
|
-
"break-before":
|
|
312
|
+
"break-before": ye()
|
|
314
313
|
}],
|
|
315
314
|
/**
|
|
316
315
|
* Break Inside
|
|
@@ -369,49 +368,49 @@ const D = (e) => {
|
|
|
369
368
|
* @see https://tailwindcss.com/docs/object-position
|
|
370
369
|
*/
|
|
371
370
|
"object-position": [{
|
|
372
|
-
object: [...E(),
|
|
371
|
+
object: [...E(), T]
|
|
373
372
|
}],
|
|
374
373
|
/**
|
|
375
374
|
* Overflow
|
|
376
375
|
* @see https://tailwindcss.com/docs/overflow
|
|
377
376
|
*/
|
|
378
377
|
overflow: [{
|
|
379
|
-
overflow:
|
|
378
|
+
overflow: H()
|
|
380
379
|
}],
|
|
381
380
|
/**
|
|
382
381
|
* Overflow X
|
|
383
382
|
* @see https://tailwindcss.com/docs/overflow
|
|
384
383
|
*/
|
|
385
384
|
"overflow-x": [{
|
|
386
|
-
"overflow-x":
|
|
385
|
+
"overflow-x": H()
|
|
387
386
|
}],
|
|
388
387
|
/**
|
|
389
388
|
* Overflow Y
|
|
390
389
|
* @see https://tailwindcss.com/docs/overflow
|
|
391
390
|
*/
|
|
392
391
|
"overflow-y": [{
|
|
393
|
-
"overflow-y":
|
|
392
|
+
"overflow-y": H()
|
|
394
393
|
}],
|
|
395
394
|
/**
|
|
396
395
|
* Overscroll Behavior
|
|
397
396
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
398
397
|
*/
|
|
399
398
|
overscroll: [{
|
|
400
|
-
overscroll:
|
|
399
|
+
overscroll: P()
|
|
401
400
|
}],
|
|
402
401
|
/**
|
|
403
402
|
* Overscroll Behavior X
|
|
404
403
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
405
404
|
*/
|
|
406
405
|
"overscroll-x": [{
|
|
407
|
-
"overscroll-x":
|
|
406
|
+
"overscroll-x": P()
|
|
408
407
|
}],
|
|
409
408
|
/**
|
|
410
409
|
* Overscroll Behavior Y
|
|
411
410
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
412
411
|
*/
|
|
413
412
|
"overscroll-y": [{
|
|
414
|
-
"overscroll-y":
|
|
413
|
+
"overscroll-y": P()
|
|
415
414
|
}],
|
|
416
415
|
/**
|
|
417
416
|
* Position
|
|
@@ -423,63 +422,63 @@ const D = (e) => {
|
|
|
423
422
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
424
423
|
*/
|
|
425
424
|
inset: [{
|
|
426
|
-
inset: [
|
|
425
|
+
inset: [z]
|
|
427
426
|
}],
|
|
428
427
|
/**
|
|
429
428
|
* Right / Left
|
|
430
429
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
431
430
|
*/
|
|
432
431
|
"inset-x": [{
|
|
433
|
-
"inset-x": [
|
|
432
|
+
"inset-x": [z]
|
|
434
433
|
}],
|
|
435
434
|
/**
|
|
436
435
|
* Top / Bottom
|
|
437
436
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
438
437
|
*/
|
|
439
438
|
"inset-y": [{
|
|
440
|
-
"inset-y": [
|
|
439
|
+
"inset-y": [z]
|
|
441
440
|
}],
|
|
442
441
|
/**
|
|
443
442
|
* Start
|
|
444
443
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
445
444
|
*/
|
|
446
445
|
start: [{
|
|
447
|
-
start: [
|
|
446
|
+
start: [z]
|
|
448
447
|
}],
|
|
449
448
|
/**
|
|
450
449
|
* End
|
|
451
450
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
452
451
|
*/
|
|
453
452
|
end: [{
|
|
454
|
-
end: [
|
|
453
|
+
end: [z]
|
|
455
454
|
}],
|
|
456
455
|
/**
|
|
457
456
|
* Top
|
|
458
457
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
459
458
|
*/
|
|
460
459
|
top: [{
|
|
461
|
-
top: [
|
|
460
|
+
top: [z]
|
|
462
461
|
}],
|
|
463
462
|
/**
|
|
464
463
|
* Right
|
|
465
464
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
466
465
|
*/
|
|
467
466
|
right: [{
|
|
468
|
-
right: [
|
|
467
|
+
right: [z]
|
|
469
468
|
}],
|
|
470
469
|
/**
|
|
471
470
|
* Bottom
|
|
472
471
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
473
472
|
*/
|
|
474
473
|
bottom: [{
|
|
475
|
-
bottom: [
|
|
474
|
+
bottom: [z]
|
|
476
475
|
}],
|
|
477
476
|
/**
|
|
478
477
|
* Left
|
|
479
478
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
480
479
|
*/
|
|
481
480
|
left: [{
|
|
482
|
-
left: [
|
|
481
|
+
left: [z]
|
|
483
482
|
}],
|
|
484
483
|
/**
|
|
485
484
|
* Visibility
|
|
@@ -491,7 +490,7 @@ const D = (e) => {
|
|
|
491
490
|
* @see https://tailwindcss.com/docs/z-index
|
|
492
491
|
*/
|
|
493
492
|
z: [{
|
|
494
|
-
z: ["auto",
|
|
493
|
+
z: ["auto", de, T]
|
|
495
494
|
}],
|
|
496
495
|
// Flexbox and Grid
|
|
497
496
|
/**
|
|
@@ -499,7 +498,7 @@ const D = (e) => {
|
|
|
499
498
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
500
499
|
*/
|
|
501
500
|
basis: [{
|
|
502
|
-
basis:
|
|
501
|
+
basis: M()
|
|
503
502
|
}],
|
|
504
503
|
/**
|
|
505
504
|
* Flex Direction
|
|
@@ -520,35 +519,35 @@ const D = (e) => {
|
|
|
520
519
|
* @see https://tailwindcss.com/docs/flex
|
|
521
520
|
*/
|
|
522
521
|
flex: [{
|
|
523
|
-
flex: ["1", "auto", "initial", "none",
|
|
522
|
+
flex: ["1", "auto", "initial", "none", T]
|
|
524
523
|
}],
|
|
525
524
|
/**
|
|
526
525
|
* Flex Grow
|
|
527
526
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
528
527
|
*/
|
|
529
528
|
grow: [{
|
|
530
|
-
grow:
|
|
529
|
+
grow: G()
|
|
531
530
|
}],
|
|
532
531
|
/**
|
|
533
532
|
* Flex Shrink
|
|
534
533
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
535
534
|
*/
|
|
536
535
|
shrink: [{
|
|
537
|
-
shrink:
|
|
536
|
+
shrink: G()
|
|
538
537
|
}],
|
|
539
538
|
/**
|
|
540
539
|
* Order
|
|
541
540
|
* @see https://tailwindcss.com/docs/order
|
|
542
541
|
*/
|
|
543
542
|
order: [{
|
|
544
|
-
order: ["first", "last", "none",
|
|
543
|
+
order: ["first", "last", "none", de, T]
|
|
545
544
|
}],
|
|
546
545
|
/**
|
|
547
546
|
* Grid Template Columns
|
|
548
547
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
549
548
|
*/
|
|
550
549
|
"grid-cols": [{
|
|
551
|
-
"grid-cols": [
|
|
550
|
+
"grid-cols": [ue]
|
|
552
551
|
}],
|
|
553
552
|
/**
|
|
554
553
|
* Grid Column Start / End
|
|
@@ -556,29 +555,29 @@ const D = (e) => {
|
|
|
556
555
|
*/
|
|
557
556
|
"col-start-end": [{
|
|
558
557
|
col: ["auto", {
|
|
559
|
-
span: ["full",
|
|
560
|
-
},
|
|
558
|
+
span: ["full", de, T]
|
|
559
|
+
}, T]
|
|
561
560
|
}],
|
|
562
561
|
/**
|
|
563
562
|
* Grid Column Start
|
|
564
563
|
* @see https://tailwindcss.com/docs/grid-column
|
|
565
564
|
*/
|
|
566
565
|
"col-start": [{
|
|
567
|
-
"col-start":
|
|
566
|
+
"col-start": I()
|
|
568
567
|
}],
|
|
569
568
|
/**
|
|
570
569
|
* Grid Column End
|
|
571
570
|
* @see https://tailwindcss.com/docs/grid-column
|
|
572
571
|
*/
|
|
573
572
|
"col-end": [{
|
|
574
|
-
"col-end":
|
|
573
|
+
"col-end": I()
|
|
575
574
|
}],
|
|
576
575
|
/**
|
|
577
576
|
* Grid Template Rows
|
|
578
577
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
579
578
|
*/
|
|
580
579
|
"grid-rows": [{
|
|
581
|
-
"grid-rows": [
|
|
580
|
+
"grid-rows": [ue]
|
|
582
581
|
}],
|
|
583
582
|
/**
|
|
584
583
|
* Grid Row Start / End
|
|
@@ -586,22 +585,22 @@ const D = (e) => {
|
|
|
586
585
|
*/
|
|
587
586
|
"row-start-end": [{
|
|
588
587
|
row: ["auto", {
|
|
589
|
-
span: [
|
|
590
|
-
},
|
|
588
|
+
span: [de, T]
|
|
589
|
+
}, T]
|
|
591
590
|
}],
|
|
592
591
|
/**
|
|
593
592
|
* Grid Row Start
|
|
594
593
|
* @see https://tailwindcss.com/docs/grid-row
|
|
595
594
|
*/
|
|
596
595
|
"row-start": [{
|
|
597
|
-
"row-start":
|
|
596
|
+
"row-start": I()
|
|
598
597
|
}],
|
|
599
598
|
/**
|
|
600
599
|
* Grid Row End
|
|
601
600
|
* @see https://tailwindcss.com/docs/grid-row
|
|
602
601
|
*/
|
|
603
602
|
"row-end": [{
|
|
604
|
-
"row-end":
|
|
603
|
+
"row-end": I()
|
|
605
604
|
}],
|
|
606
605
|
/**
|
|
607
606
|
* Grid Auto Flow
|
|
@@ -615,14 +614,14 @@ const D = (e) => {
|
|
|
615
614
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
616
615
|
*/
|
|
617
616
|
"auto-cols": [{
|
|
618
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
617
|
+
"auto-cols": ["auto", "min", "max", "fr", T]
|
|
619
618
|
}],
|
|
620
619
|
/**
|
|
621
620
|
* Grid Auto Rows
|
|
622
621
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
623
622
|
*/
|
|
624
623
|
"auto-rows": [{
|
|
625
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
624
|
+
"auto-rows": ["auto", "min", "max", "fr", T]
|
|
626
625
|
}],
|
|
627
626
|
/**
|
|
628
627
|
* Gap
|
|
@@ -650,7 +649,7 @@ const D = (e) => {
|
|
|
650
649
|
* @see https://tailwindcss.com/docs/justify-content
|
|
651
650
|
*/
|
|
652
651
|
"justify-content": [{
|
|
653
|
-
justify: ["normal", ...
|
|
652
|
+
justify: ["normal", ...O()]
|
|
654
653
|
}],
|
|
655
654
|
/**
|
|
656
655
|
* Justify Items
|
|
@@ -671,7 +670,7 @@ const D = (e) => {
|
|
|
671
670
|
* @see https://tailwindcss.com/docs/align-content
|
|
672
671
|
*/
|
|
673
672
|
"align-content": [{
|
|
674
|
-
content: ["normal", ...
|
|
673
|
+
content: ["normal", ...O(), "baseline"]
|
|
675
674
|
}],
|
|
676
675
|
/**
|
|
677
676
|
* Align Items
|
|
@@ -692,7 +691,7 @@ const D = (e) => {
|
|
|
692
691
|
* @see https://tailwindcss.com/docs/place-content
|
|
693
692
|
*/
|
|
694
693
|
"place-content": [{
|
|
695
|
-
"place-content": [...
|
|
694
|
+
"place-content": [...O(), "baseline"]
|
|
696
695
|
}],
|
|
697
696
|
/**
|
|
698
697
|
* Place Items
|
|
@@ -840,7 +839,7 @@ const D = (e) => {
|
|
|
840
839
|
* @see https://tailwindcss.com/docs/space
|
|
841
840
|
*/
|
|
842
841
|
"space-x": [{
|
|
843
|
-
"space-x": [
|
|
842
|
+
"space-x": [R]
|
|
844
843
|
}],
|
|
845
844
|
/**
|
|
846
845
|
* Space Between X Reverse
|
|
@@ -852,7 +851,7 @@ const D = (e) => {
|
|
|
852
851
|
* @see https://tailwindcss.com/docs/space
|
|
853
852
|
*/
|
|
854
853
|
"space-y": [{
|
|
855
|
-
"space-y": [
|
|
854
|
+
"space-y": [R]
|
|
856
855
|
}],
|
|
857
856
|
/**
|
|
858
857
|
* Space Between Y Reverse
|
|
@@ -865,51 +864,51 @@ const D = (e) => {
|
|
|
865
864
|
* @see https://tailwindcss.com/docs/width
|
|
866
865
|
*/
|
|
867
866
|
w: [{
|
|
868
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
867
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", T, t]
|
|
869
868
|
}],
|
|
870
869
|
/**
|
|
871
870
|
* Min-Width
|
|
872
871
|
* @see https://tailwindcss.com/docs/min-width
|
|
873
872
|
*/
|
|
874
873
|
"min-w": [{
|
|
875
|
-
"min-w": [
|
|
874
|
+
"min-w": [T, t, "min", "max", "fit"]
|
|
876
875
|
}],
|
|
877
876
|
/**
|
|
878
877
|
* Max-Width
|
|
879
878
|
* @see https://tailwindcss.com/docs/max-width
|
|
880
879
|
*/
|
|
881
880
|
"max-w": [{
|
|
882
|
-
"max-w": [
|
|
883
|
-
screen: [
|
|
884
|
-
},
|
|
881
|
+
"max-w": [T, t, "none", "full", "min", "max", "fit", "prose", {
|
|
882
|
+
screen: [J]
|
|
883
|
+
}, J]
|
|
885
884
|
}],
|
|
886
885
|
/**
|
|
887
886
|
* Height
|
|
888
887
|
* @see https://tailwindcss.com/docs/height
|
|
889
888
|
*/
|
|
890
889
|
h: [{
|
|
891
|
-
h: [
|
|
890
|
+
h: [T, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
892
891
|
}],
|
|
893
892
|
/**
|
|
894
893
|
* Min-Height
|
|
895
894
|
* @see https://tailwindcss.com/docs/min-height
|
|
896
895
|
*/
|
|
897
896
|
"min-h": [{
|
|
898
|
-
"min-h": [
|
|
897
|
+
"min-h": [T, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
899
898
|
}],
|
|
900
899
|
/**
|
|
901
900
|
* Max-Height
|
|
902
901
|
* @see https://tailwindcss.com/docs/max-height
|
|
903
902
|
*/
|
|
904
903
|
"max-h": [{
|
|
905
|
-
"max-h": [
|
|
904
|
+
"max-h": [T, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
906
905
|
}],
|
|
907
906
|
/**
|
|
908
907
|
* Size
|
|
909
908
|
* @see https://tailwindcss.com/docs/size
|
|
910
909
|
*/
|
|
911
910
|
size: [{
|
|
912
|
-
size: [
|
|
911
|
+
size: [T, t, "auto", "min", "max", "fit"]
|
|
913
912
|
}],
|
|
914
913
|
// Typography
|
|
915
914
|
/**
|
|
@@ -917,7 +916,7 @@ const D = (e) => {
|
|
|
917
916
|
* @see https://tailwindcss.com/docs/font-size
|
|
918
917
|
*/
|
|
919
918
|
"font-size": [{
|
|
920
|
-
text: ["base",
|
|
919
|
+
text: ["base", J, K]
|
|
921
920
|
}],
|
|
922
921
|
/**
|
|
923
922
|
* Font Smoothing
|
|
@@ -934,14 +933,14 @@ const D = (e) => {
|
|
|
934
933
|
* @see https://tailwindcss.com/docs/font-weight
|
|
935
934
|
*/
|
|
936
935
|
"font-weight": [{
|
|
937
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
936
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Le]
|
|
938
937
|
}],
|
|
939
938
|
/**
|
|
940
939
|
* Font Family
|
|
941
940
|
* @see https://tailwindcss.com/docs/font-family
|
|
942
941
|
*/
|
|
943
942
|
"font-family": [{
|
|
944
|
-
font: [
|
|
943
|
+
font: [ue]
|
|
945
944
|
}],
|
|
946
945
|
/**
|
|
947
946
|
* Font Variant Numeric
|
|
@@ -978,35 +977,35 @@ const D = (e) => {
|
|
|
978
977
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
979
978
|
*/
|
|
980
979
|
tracking: [{
|
|
981
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
980
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", T]
|
|
982
981
|
}],
|
|
983
982
|
/**
|
|
984
983
|
* Line Clamp
|
|
985
984
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
986
985
|
*/
|
|
987
986
|
"line-clamp": [{
|
|
988
|
-
"line-clamp": ["none",
|
|
987
|
+
"line-clamp": ["none", ie, Le]
|
|
989
988
|
}],
|
|
990
989
|
/**
|
|
991
990
|
* Line Height
|
|
992
991
|
* @see https://tailwindcss.com/docs/line-height
|
|
993
992
|
*/
|
|
994
993
|
leading: [{
|
|
995
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
994
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", X, T]
|
|
996
995
|
}],
|
|
997
996
|
/**
|
|
998
997
|
* List Style Image
|
|
999
998
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1000
999
|
*/
|
|
1001
1000
|
"list-image": [{
|
|
1002
|
-
"list-image": ["none",
|
|
1001
|
+
"list-image": ["none", T]
|
|
1003
1002
|
}],
|
|
1004
1003
|
/**
|
|
1005
1004
|
* List Style Type
|
|
1006
1005
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1007
1006
|
*/
|
|
1008
1007
|
"list-style-type": [{
|
|
1009
|
-
list: ["none", "disc", "decimal",
|
|
1008
|
+
list: ["none", "disc", "decimal", T]
|
|
1010
1009
|
}],
|
|
1011
1010
|
/**
|
|
1012
1011
|
* List Style Position
|
|
@@ -1061,21 +1060,21 @@ const D = (e) => {
|
|
|
1061
1060
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1062
1061
|
*/
|
|
1063
1062
|
"text-decoration-style": [{
|
|
1064
|
-
decoration: [...
|
|
1063
|
+
decoration: [...A(), "wavy"]
|
|
1065
1064
|
}],
|
|
1066
1065
|
/**
|
|
1067
1066
|
* Text Decoration Thickness
|
|
1068
1067
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1069
1068
|
*/
|
|
1070
1069
|
"text-decoration-thickness": [{
|
|
1071
|
-
decoration: ["auto", "from-font",
|
|
1070
|
+
decoration: ["auto", "from-font", X, K]
|
|
1072
1071
|
}],
|
|
1073
1072
|
/**
|
|
1074
1073
|
* Text Underline Offset
|
|
1075
1074
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1076
1075
|
*/
|
|
1077
1076
|
"underline-offset": [{
|
|
1078
|
-
"underline-offset": ["auto",
|
|
1077
|
+
"underline-offset": ["auto", X, T]
|
|
1079
1078
|
}],
|
|
1080
1079
|
/**
|
|
1081
1080
|
* Text Decoration Color
|
|
@@ -1106,14 +1105,14 @@ const D = (e) => {
|
|
|
1106
1105
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1107
1106
|
*/
|
|
1108
1107
|
indent: [{
|
|
1109
|
-
indent:
|
|
1108
|
+
indent: w()
|
|
1110
1109
|
}],
|
|
1111
1110
|
/**
|
|
1112
1111
|
* Vertical Alignment
|
|
1113
1112
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1114
1113
|
*/
|
|
1115
1114
|
"vertical-align": [{
|
|
1116
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1115
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", T]
|
|
1117
1116
|
}],
|
|
1118
1117
|
/**
|
|
1119
1118
|
* Whitespace
|
|
@@ -1141,7 +1140,7 @@ const D = (e) => {
|
|
|
1141
1140
|
* @see https://tailwindcss.com/docs/content
|
|
1142
1141
|
*/
|
|
1143
1142
|
content: [{
|
|
1144
|
-
content: ["none",
|
|
1143
|
+
content: ["none", T]
|
|
1145
1144
|
}],
|
|
1146
1145
|
// Backgrounds
|
|
1147
1146
|
/**
|
|
@@ -1178,7 +1177,7 @@ const D = (e) => {
|
|
|
1178
1177
|
* @see https://tailwindcss.com/docs/background-position
|
|
1179
1178
|
*/
|
|
1180
1179
|
"bg-position": [{
|
|
1181
|
-
bg: [...E(),
|
|
1180
|
+
bg: [...E(), Wi]
|
|
1182
1181
|
}],
|
|
1183
1182
|
/**
|
|
1184
1183
|
* Background Repeat
|
|
@@ -1194,7 +1193,7 @@ const D = (e) => {
|
|
|
1194
1193
|
* @see https://tailwindcss.com/docs/background-size
|
|
1195
1194
|
*/
|
|
1196
1195
|
"bg-size": [{
|
|
1197
|
-
bg: ["auto", "cover", "contain",
|
|
1196
|
+
bg: ["auto", "cover", "contain", Fi]
|
|
1198
1197
|
}],
|
|
1199
1198
|
/**
|
|
1200
1199
|
* Background Image
|
|
@@ -1203,7 +1202,7 @@ const D = (e) => {
|
|
|
1203
1202
|
"bg-image": [{
|
|
1204
1203
|
bg: ["none", {
|
|
1205
1204
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1206
|
-
},
|
|
1205
|
+
}, Xi]
|
|
1207
1206
|
}],
|
|
1208
1207
|
/**
|
|
1209
1208
|
* Background Color
|
|
@@ -1435,7 +1434,7 @@ const D = (e) => {
|
|
|
1435
1434
|
* @see https://tailwindcss.com/docs/border-style
|
|
1436
1435
|
*/
|
|
1437
1436
|
"border-style": [{
|
|
1438
|
-
border: [...
|
|
1437
|
+
border: [...A(), "hidden"]
|
|
1439
1438
|
}],
|
|
1440
1439
|
/**
|
|
1441
1440
|
* Divide Width X
|
|
@@ -1473,7 +1472,7 @@ const D = (e) => {
|
|
|
1473
1472
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1474
1473
|
*/
|
|
1475
1474
|
"divide-style": [{
|
|
1476
|
-
divide:
|
|
1475
|
+
divide: A()
|
|
1477
1476
|
}],
|
|
1478
1477
|
/**
|
|
1479
1478
|
* Border Color
|
|
@@ -1550,21 +1549,21 @@ const D = (e) => {
|
|
|
1550
1549
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1551
1550
|
*/
|
|
1552
1551
|
"outline-style": [{
|
|
1553
|
-
outline: ["", ...
|
|
1552
|
+
outline: ["", ...A()]
|
|
1554
1553
|
}],
|
|
1555
1554
|
/**
|
|
1556
1555
|
* Outline Offset
|
|
1557
1556
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1558
1557
|
*/
|
|
1559
1558
|
"outline-offset": [{
|
|
1560
|
-
"outline-offset": [
|
|
1559
|
+
"outline-offset": [X, T]
|
|
1561
1560
|
}],
|
|
1562
1561
|
/**
|
|
1563
1562
|
* Outline Width
|
|
1564
1563
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1565
1564
|
*/
|
|
1566
1565
|
"outline-w": [{
|
|
1567
|
-
outline: [
|
|
1566
|
+
outline: [X, K]
|
|
1568
1567
|
}],
|
|
1569
1568
|
/**
|
|
1570
1569
|
* Outline Color
|
|
@@ -1578,7 +1577,7 @@ const D = (e) => {
|
|
|
1578
1577
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1579
1578
|
*/
|
|
1580
1579
|
"ring-w": [{
|
|
1581
|
-
ring:
|
|
1580
|
+
ring: y()
|
|
1582
1581
|
}],
|
|
1583
1582
|
/**
|
|
1584
1583
|
* Ring Width Inset
|
|
@@ -1604,7 +1603,7 @@ const D = (e) => {
|
|
|
1604
1603
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1605
1604
|
*/
|
|
1606
1605
|
"ring-offset-w": [{
|
|
1607
|
-
"ring-offset": [
|
|
1606
|
+
"ring-offset": [X, K]
|
|
1608
1607
|
}],
|
|
1609
1608
|
/**
|
|
1610
1609
|
* Ring Offset Color
|
|
@@ -1619,14 +1618,14 @@ const D = (e) => {
|
|
|
1619
1618
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1620
1619
|
*/
|
|
1621
1620
|
shadow: [{
|
|
1622
|
-
shadow: ["", "inner", "none",
|
|
1621
|
+
shadow: ["", "inner", "none", J, Yi]
|
|
1623
1622
|
}],
|
|
1624
1623
|
/**
|
|
1625
1624
|
* Box Shadow Color
|
|
1626
1625
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1627
1626
|
*/
|
|
1628
1627
|
"shadow-color": [{
|
|
1629
|
-
shadow: [
|
|
1628
|
+
shadow: [ue]
|
|
1630
1629
|
}],
|
|
1631
1630
|
/**
|
|
1632
1631
|
* Opacity
|
|
@@ -1640,14 +1639,14 @@ const D = (e) => {
|
|
|
1640
1639
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1641
1640
|
*/
|
|
1642
1641
|
"mix-blend": [{
|
|
1643
|
-
"mix-blend": [...
|
|
1642
|
+
"mix-blend": [...j(), "plus-lighter", "plus-darker"]
|
|
1644
1643
|
}],
|
|
1645
1644
|
/**
|
|
1646
1645
|
* Background Blend Mode
|
|
1647
1646
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1648
1647
|
*/
|
|
1649
1648
|
"bg-blend": [{
|
|
1650
|
-
"bg-blend":
|
|
1649
|
+
"bg-blend": j()
|
|
1651
1650
|
}],
|
|
1652
1651
|
// Filters
|
|
1653
1652
|
/**
|
|
@@ -1684,7 +1683,7 @@ const D = (e) => {
|
|
|
1684
1683
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1685
1684
|
*/
|
|
1686
1685
|
"drop-shadow": [{
|
|
1687
|
-
"drop-shadow": ["", "none",
|
|
1686
|
+
"drop-shadow": ["", "none", J, T]
|
|
1688
1687
|
}],
|
|
1689
1688
|
/**
|
|
1690
1689
|
* Grayscale
|
|
@@ -1698,28 +1697,28 @@ const D = (e) => {
|
|
|
1698
1697
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1699
1698
|
*/
|
|
1700
1699
|
"hue-rotate": [{
|
|
1701
|
-
"hue-rotate": [
|
|
1700
|
+
"hue-rotate": [g]
|
|
1702
1701
|
}],
|
|
1703
1702
|
/**
|
|
1704
1703
|
* Invert
|
|
1705
1704
|
* @see https://tailwindcss.com/docs/invert
|
|
1706
1705
|
*/
|
|
1707
1706
|
invert: [{
|
|
1708
|
-
invert: [
|
|
1707
|
+
invert: [p]
|
|
1709
1708
|
}],
|
|
1710
1709
|
/**
|
|
1711
1710
|
* Saturate
|
|
1712
1711
|
* @see https://tailwindcss.com/docs/saturate
|
|
1713
1712
|
*/
|
|
1714
1713
|
saturate: [{
|
|
1715
|
-
saturate: [
|
|
1714
|
+
saturate: [S]
|
|
1716
1715
|
}],
|
|
1717
1716
|
/**
|
|
1718
1717
|
* Sepia
|
|
1719
1718
|
* @see https://tailwindcss.com/docs/sepia
|
|
1720
1719
|
*/
|
|
1721
1720
|
sepia: [{
|
|
1722
|
-
sepia: [
|
|
1721
|
+
sepia: [D]
|
|
1723
1722
|
}],
|
|
1724
1723
|
/**
|
|
1725
1724
|
* Backdrop Filter
|
|
@@ -1762,14 +1761,14 @@ const D = (e) => {
|
|
|
1762
1761
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1763
1762
|
*/
|
|
1764
1763
|
"backdrop-hue-rotate": [{
|
|
1765
|
-
"backdrop-hue-rotate": [
|
|
1764
|
+
"backdrop-hue-rotate": [g]
|
|
1766
1765
|
}],
|
|
1767
1766
|
/**
|
|
1768
1767
|
* Backdrop Invert
|
|
1769
1768
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1770
1769
|
*/
|
|
1771
1770
|
"backdrop-invert": [{
|
|
1772
|
-
"backdrop-invert": [
|
|
1771
|
+
"backdrop-invert": [p]
|
|
1773
1772
|
}],
|
|
1774
1773
|
/**
|
|
1775
1774
|
* Backdrop Opacity
|
|
@@ -1783,14 +1782,14 @@ const D = (e) => {
|
|
|
1783
1782
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1784
1783
|
*/
|
|
1785
1784
|
"backdrop-saturate": [{
|
|
1786
|
-
"backdrop-saturate": [
|
|
1785
|
+
"backdrop-saturate": [S]
|
|
1787
1786
|
}],
|
|
1788
1787
|
/**
|
|
1789
1788
|
* Backdrop Sepia
|
|
1790
1789
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1791
1790
|
*/
|
|
1792
1791
|
"backdrop-sepia": [{
|
|
1793
|
-
"backdrop-sepia": [
|
|
1792
|
+
"backdrop-sepia": [D]
|
|
1794
1793
|
}],
|
|
1795
1794
|
// Tables
|
|
1796
1795
|
/**
|
|
@@ -1841,35 +1840,35 @@ const D = (e) => {
|
|
|
1841
1840
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1842
1841
|
*/
|
|
1843
1842
|
transition: [{
|
|
1844
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1843
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", T]
|
|
1845
1844
|
}],
|
|
1846
1845
|
/**
|
|
1847
1846
|
* Transition Duration
|
|
1848
1847
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1849
1848
|
*/
|
|
1850
1849
|
duration: [{
|
|
1851
|
-
duration:
|
|
1850
|
+
duration: W()
|
|
1852
1851
|
}],
|
|
1853
1852
|
/**
|
|
1854
1853
|
* Transition Timing Function
|
|
1855
1854
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1856
1855
|
*/
|
|
1857
1856
|
ease: [{
|
|
1858
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1857
|
+
ease: ["linear", "in", "out", "in-out", T]
|
|
1859
1858
|
}],
|
|
1860
1859
|
/**
|
|
1861
1860
|
* Transition Delay
|
|
1862
1861
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1863
1862
|
*/
|
|
1864
1863
|
delay: [{
|
|
1865
|
-
delay:
|
|
1864
|
+
delay: W()
|
|
1866
1865
|
}],
|
|
1867
1866
|
/**
|
|
1868
1867
|
* Animation
|
|
1869
1868
|
* @see https://tailwindcss.com/docs/animation
|
|
1870
1869
|
*/
|
|
1871
1870
|
animate: [{
|
|
1872
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1871
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", T]
|
|
1873
1872
|
}],
|
|
1874
1873
|
// Transforms
|
|
1875
1874
|
/**
|
|
@@ -1905,42 +1904,42 @@ const D = (e) => {
|
|
|
1905
1904
|
* @see https://tailwindcss.com/docs/rotate
|
|
1906
1905
|
*/
|
|
1907
1906
|
rotate: [{
|
|
1908
|
-
rotate: [
|
|
1907
|
+
rotate: [de, T]
|
|
1909
1908
|
}],
|
|
1910
1909
|
/**
|
|
1911
1910
|
* Translate X
|
|
1912
1911
|
* @see https://tailwindcss.com/docs/translate
|
|
1913
1912
|
*/
|
|
1914
1913
|
"translate-x": [{
|
|
1915
|
-
"translate-x": [
|
|
1914
|
+
"translate-x": [N]
|
|
1916
1915
|
}],
|
|
1917
1916
|
/**
|
|
1918
1917
|
* Translate Y
|
|
1919
1918
|
* @see https://tailwindcss.com/docs/translate
|
|
1920
1919
|
*/
|
|
1921
1920
|
"translate-y": [{
|
|
1922
|
-
"translate-y": [
|
|
1921
|
+
"translate-y": [N]
|
|
1923
1922
|
}],
|
|
1924
1923
|
/**
|
|
1925
1924
|
* Skew X
|
|
1926
1925
|
* @see https://tailwindcss.com/docs/skew
|
|
1927
1926
|
*/
|
|
1928
1927
|
"skew-x": [{
|
|
1929
|
-
"skew-x": [
|
|
1928
|
+
"skew-x": [v]
|
|
1930
1929
|
}],
|
|
1931
1930
|
/**
|
|
1932
1931
|
* Skew Y
|
|
1933
1932
|
* @see https://tailwindcss.com/docs/skew
|
|
1934
1933
|
*/
|
|
1935
1934
|
"skew-y": [{
|
|
1936
|
-
"skew-y": [
|
|
1935
|
+
"skew-y": [v]
|
|
1937
1936
|
}],
|
|
1938
1937
|
/**
|
|
1939
1938
|
* Transform Origin
|
|
1940
1939
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1941
1940
|
*/
|
|
1942
1941
|
"transform-origin": [{
|
|
1943
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1942
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", T]
|
|
1944
1943
|
}],
|
|
1945
1944
|
// Interactivity
|
|
1946
1945
|
/**
|
|
@@ -1962,7 +1961,7 @@ const D = (e) => {
|
|
|
1962
1961
|
* @see https://tailwindcss.com/docs/cursor
|
|
1963
1962
|
*/
|
|
1964
1963
|
cursor: [{
|
|
1965
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
1964
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", T]
|
|
1966
1965
|
}],
|
|
1967
1966
|
/**
|
|
1968
1967
|
* Caret Color
|
|
@@ -1997,126 +1996,126 @@ const D = (e) => {
|
|
|
1997
1996
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1998
1997
|
*/
|
|
1999
1998
|
"scroll-m": [{
|
|
2000
|
-
"scroll-m":
|
|
1999
|
+
"scroll-m": w()
|
|
2001
2000
|
}],
|
|
2002
2001
|
/**
|
|
2003
2002
|
* Scroll Margin X
|
|
2004
2003
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2005
2004
|
*/
|
|
2006
2005
|
"scroll-mx": [{
|
|
2007
|
-
"scroll-mx":
|
|
2006
|
+
"scroll-mx": w()
|
|
2008
2007
|
}],
|
|
2009
2008
|
/**
|
|
2010
2009
|
* Scroll Margin Y
|
|
2011
2010
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2012
2011
|
*/
|
|
2013
2012
|
"scroll-my": [{
|
|
2014
|
-
"scroll-my":
|
|
2013
|
+
"scroll-my": w()
|
|
2015
2014
|
}],
|
|
2016
2015
|
/**
|
|
2017
2016
|
* Scroll Margin Start
|
|
2018
2017
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2019
2018
|
*/
|
|
2020
2019
|
"scroll-ms": [{
|
|
2021
|
-
"scroll-ms":
|
|
2020
|
+
"scroll-ms": w()
|
|
2022
2021
|
}],
|
|
2023
2022
|
/**
|
|
2024
2023
|
* Scroll Margin End
|
|
2025
2024
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2026
2025
|
*/
|
|
2027
2026
|
"scroll-me": [{
|
|
2028
|
-
"scroll-me":
|
|
2027
|
+
"scroll-me": w()
|
|
2029
2028
|
}],
|
|
2030
2029
|
/**
|
|
2031
2030
|
* Scroll Margin Top
|
|
2032
2031
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2033
2032
|
*/
|
|
2034
2033
|
"scroll-mt": [{
|
|
2035
|
-
"scroll-mt":
|
|
2034
|
+
"scroll-mt": w()
|
|
2036
2035
|
}],
|
|
2037
2036
|
/**
|
|
2038
2037
|
* Scroll Margin Right
|
|
2039
2038
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2040
2039
|
*/
|
|
2041
2040
|
"scroll-mr": [{
|
|
2042
|
-
"scroll-mr":
|
|
2041
|
+
"scroll-mr": w()
|
|
2043
2042
|
}],
|
|
2044
2043
|
/**
|
|
2045
2044
|
* Scroll Margin Bottom
|
|
2046
2045
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2047
2046
|
*/
|
|
2048
2047
|
"scroll-mb": [{
|
|
2049
|
-
"scroll-mb":
|
|
2048
|
+
"scroll-mb": w()
|
|
2050
2049
|
}],
|
|
2051
2050
|
/**
|
|
2052
2051
|
* Scroll Margin Left
|
|
2053
2052
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2054
2053
|
*/
|
|
2055
2054
|
"scroll-ml": [{
|
|
2056
|
-
"scroll-ml":
|
|
2055
|
+
"scroll-ml": w()
|
|
2057
2056
|
}],
|
|
2058
2057
|
/**
|
|
2059
2058
|
* Scroll Padding
|
|
2060
2059
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2061
2060
|
*/
|
|
2062
2061
|
"scroll-p": [{
|
|
2063
|
-
"scroll-p":
|
|
2062
|
+
"scroll-p": w()
|
|
2064
2063
|
}],
|
|
2065
2064
|
/**
|
|
2066
2065
|
* Scroll Padding X
|
|
2067
2066
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2068
2067
|
*/
|
|
2069
2068
|
"scroll-px": [{
|
|
2070
|
-
"scroll-px":
|
|
2069
|
+
"scroll-px": w()
|
|
2071
2070
|
}],
|
|
2072
2071
|
/**
|
|
2073
2072
|
* Scroll Padding Y
|
|
2074
2073
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2075
2074
|
*/
|
|
2076
2075
|
"scroll-py": [{
|
|
2077
|
-
"scroll-py":
|
|
2076
|
+
"scroll-py": w()
|
|
2078
2077
|
}],
|
|
2079
2078
|
/**
|
|
2080
2079
|
* Scroll Padding Start
|
|
2081
2080
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2082
2081
|
*/
|
|
2083
2082
|
"scroll-ps": [{
|
|
2084
|
-
"scroll-ps":
|
|
2083
|
+
"scroll-ps": w()
|
|
2085
2084
|
}],
|
|
2086
2085
|
/**
|
|
2087
2086
|
* Scroll Padding End
|
|
2088
2087
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2089
2088
|
*/
|
|
2090
2089
|
"scroll-pe": [{
|
|
2091
|
-
"scroll-pe":
|
|
2090
|
+
"scroll-pe": w()
|
|
2092
2091
|
}],
|
|
2093
2092
|
/**
|
|
2094
2093
|
* Scroll Padding Top
|
|
2095
2094
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2096
2095
|
*/
|
|
2097
2096
|
"scroll-pt": [{
|
|
2098
|
-
"scroll-pt":
|
|
2097
|
+
"scroll-pt": w()
|
|
2099
2098
|
}],
|
|
2100
2099
|
/**
|
|
2101
2100
|
* Scroll Padding Right
|
|
2102
2101
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2103
2102
|
*/
|
|
2104
2103
|
"scroll-pr": [{
|
|
2105
|
-
"scroll-pr":
|
|
2104
|
+
"scroll-pr": w()
|
|
2106
2105
|
}],
|
|
2107
2106
|
/**
|
|
2108
2107
|
* Scroll Padding Bottom
|
|
2109
2108
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2110
2109
|
*/
|
|
2111
2110
|
"scroll-pb": [{
|
|
2112
|
-
"scroll-pb":
|
|
2111
|
+
"scroll-pb": w()
|
|
2113
2112
|
}],
|
|
2114
2113
|
/**
|
|
2115
2114
|
* Scroll Padding Left
|
|
2116
2115
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2117
2116
|
*/
|
|
2118
2117
|
"scroll-pl": [{
|
|
2119
|
-
"scroll-pl":
|
|
2118
|
+
"scroll-pl": w()
|
|
2120
2119
|
}],
|
|
2121
2120
|
/**
|
|
2122
2121
|
* Scroll Snap Align
|
|
@@ -2184,7 +2183,7 @@ const D = (e) => {
|
|
|
2184
2183
|
* @see https://tailwindcss.com/docs/will-change
|
|
2185
2184
|
*/
|
|
2186
2185
|
"will-change": [{
|
|
2187
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2186
|
+
"will-change": ["auto", "scroll", "contents", "transform", T]
|
|
2188
2187
|
}],
|
|
2189
2188
|
// SVG
|
|
2190
2189
|
/**
|
|
@@ -2199,7 +2198,7 @@ const D = (e) => {
|
|
|
2199
2198
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2200
2199
|
*/
|
|
2201
2200
|
"stroke-w": [{
|
|
2202
|
-
stroke: [
|
|
2201
|
+
stroke: [X, K, Le]
|
|
2203
2202
|
}],
|
|
2204
2203
|
/**
|
|
2205
2204
|
* Stroke
|
|
@@ -2274,21 +2273,21 @@ const D = (e) => {
|
|
|
2274
2273
|
"font-size": ["leading"]
|
|
2275
2274
|
}
|
|
2276
2275
|
};
|
|
2277
|
-
},
|
|
2278
|
-
function
|
|
2279
|
-
return
|
|
2276
|
+
}, Qi = /* @__PURE__ */ Vi(Ji);
|
|
2277
|
+
function _(...e) {
|
|
2278
|
+
return Qi(ct(e));
|
|
2280
2279
|
}
|
|
2281
|
-
let
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
2280
|
+
let Ee;
|
|
2281
|
+
function Re() {
|
|
2282
|
+
return Ee === void 0 && (Ee = navigator.platform.includes("Mac")), Ee;
|
|
2284
2283
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return `${e}`.toLowerCase() === "mod" ?
|
|
2284
|
+
function en(e) {
|
|
2285
|
+
return `${e}`.toLowerCase() === "mod" ? Re() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Re() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Re() ? "⇧" : "Shift" : e;
|
|
2287
2286
|
}
|
|
2288
|
-
function
|
|
2289
|
-
return e.map(
|
|
2287
|
+
function tn(e) {
|
|
2288
|
+
return e.map(en).join(" ");
|
|
2290
2289
|
}
|
|
2291
|
-
const
|
|
2290
|
+
const wt = Q.forwardRef(
|
|
2292
2291
|
(e, t) => {
|
|
2293
2292
|
const {
|
|
2294
2293
|
icon: r = void 0,
|
|
@@ -2301,45 +2300,45 @@ const Nt = ee.forwardRef(
|
|
|
2301
2300
|
shortcutKeys: s = void 0,
|
|
2302
2301
|
tooltipOptions: c = {},
|
|
2303
2302
|
action: d = void 0,
|
|
2304
|
-
isActive:
|
|
2305
|
-
children:
|
|
2303
|
+
isActive: g = void 0,
|
|
2304
|
+
children: p,
|
|
2306
2305
|
asChild: u = !1,
|
|
2307
2306
|
upload: k = !1,
|
|
2308
2307
|
initialDisplayedColor: b = void 0,
|
|
2309
|
-
dataState:
|
|
2308
|
+
dataState: z = !1,
|
|
2310
2309
|
...f
|
|
2311
|
-
} = e, x =
|
|
2310
|
+
} = e, x = yt[r], h = u ? ht : Ct, S = (m) => {
|
|
2312
2311
|
if (o) {
|
|
2313
2312
|
m.preventDefault();
|
|
2314
2313
|
return;
|
|
2315
2314
|
}
|
|
2316
2315
|
d == null || d(m);
|
|
2317
2316
|
};
|
|
2318
|
-
return /* @__PURE__ */
|
|
2319
|
-
/* @__PURE__ */ n(
|
|
2317
|
+
return /* @__PURE__ */ C(An, { children: [
|
|
2318
|
+
/* @__PURE__ */ n(Ln, { asChild: !0, children: /* @__PURE__ */ C(
|
|
2320
2319
|
h,
|
|
2321
2320
|
{
|
|
2322
|
-
className:
|
|
2323
|
-
"data-state":
|
|
2321
|
+
className: _("richtext-h-[32px] richtext-w-[32px]", a),
|
|
2322
|
+
"data-state": z ? "on" : "off",
|
|
2324
2323
|
disabled: o,
|
|
2325
|
-
onClick:
|
|
2324
|
+
onClick: S,
|
|
2326
2325
|
ref: t,
|
|
2327
2326
|
size: "sm",
|
|
2328
2327
|
...f,
|
|
2329
2328
|
children: [
|
|
2330
2329
|
x && /* @__PURE__ */ n(x, { className: "richtext-size-4" }),
|
|
2331
|
-
|
|
2330
|
+
p
|
|
2332
2331
|
]
|
|
2333
2332
|
}
|
|
2334
2333
|
) }),
|
|
2335
|
-
i && /* @__PURE__ */ n(
|
|
2334
|
+
i && /* @__PURE__ */ n(kt, { ...c, className: "richtext-tooltip", children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
|
|
2336
2335
|
/* @__PURE__ */ n("div", { children: i }),
|
|
2337
|
-
!!(s != null && s.length) && /* @__PURE__ */ n("span", { children:
|
|
2336
|
+
!!(s != null && s.length) && /* @__PURE__ */ n("span", { children: tn(s) })
|
|
2338
2337
|
] }) })
|
|
2339
2338
|
] });
|
|
2340
2339
|
}
|
|
2341
2340
|
);
|
|
2342
|
-
function
|
|
2341
|
+
function rn(e) {
|
|
2343
2342
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2344
2343
|
"path",
|
|
2345
2344
|
{
|
|
@@ -2348,7 +2347,7 @@ function an(e) {
|
|
|
2348
2347
|
}
|
|
2349
2348
|
) });
|
|
2350
2349
|
}
|
|
2351
|
-
function
|
|
2350
|
+
function nn(e) {
|
|
2352
2351
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2353
2352
|
"path",
|
|
2354
2353
|
{
|
|
@@ -2361,7 +2360,7 @@ function sn(e) {
|
|
|
2361
2360
|
}
|
|
2362
2361
|
) });
|
|
2363
2362
|
}
|
|
2364
|
-
function
|
|
2363
|
+
function on() {
|
|
2365
2364
|
return /* @__PURE__ */ n(
|
|
2366
2365
|
"svg",
|
|
2367
2366
|
{
|
|
@@ -2388,7 +2387,7 @@ function ln() {
|
|
|
2388
2387
|
}
|
|
2389
2388
|
);
|
|
2390
2389
|
}
|
|
2391
|
-
function
|
|
2390
|
+
function an() {
|
|
2392
2391
|
return /* @__PURE__ */ n(
|
|
2393
2392
|
"svg",
|
|
2394
2393
|
{
|
|
@@ -2415,7 +2414,7 @@ function cn() {
|
|
|
2415
2414
|
}
|
|
2416
2415
|
);
|
|
2417
2416
|
}
|
|
2418
|
-
function
|
|
2417
|
+
function sn(e) {
|
|
2419
2418
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2420
2419
|
"path",
|
|
2421
2420
|
{
|
|
@@ -2424,8 +2423,8 @@ function dn(e) {
|
|
|
2424
2423
|
}
|
|
2425
2424
|
) });
|
|
2426
2425
|
}
|
|
2427
|
-
function
|
|
2428
|
-
const t =
|
|
2426
|
+
function fe(e) {
|
|
2427
|
+
const t = yt[e.name];
|
|
2429
2428
|
return t ? /* @__PURE__ */ n(
|
|
2430
2429
|
t,
|
|
2431
2430
|
{
|
|
@@ -2434,7 +2433,7 @@ function me(e) {
|
|
|
2434
2433
|
}
|
|
2435
2434
|
) : null;
|
|
2436
2435
|
}
|
|
2437
|
-
function
|
|
2436
|
+
function ln(e) {
|
|
2438
2437
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2439
2438
|
"path",
|
|
2440
2439
|
{
|
|
@@ -2443,7 +2442,7 @@ function un(e) {
|
|
|
2443
2442
|
}
|
|
2444
2443
|
) });
|
|
2445
2444
|
}
|
|
2446
|
-
function
|
|
2445
|
+
function cn(e) {
|
|
2447
2446
|
return /* @__PURE__ */ n(
|
|
2448
2447
|
"svg",
|
|
2449
2448
|
{
|
|
@@ -2468,10 +2467,10 @@ function hn(e) {
|
|
|
2468
2467
|
}
|
|
2469
2468
|
);
|
|
2470
2469
|
}
|
|
2471
|
-
function
|
|
2470
|
+
function dn(e) {
|
|
2472
2471
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
|
|
2473
2472
|
}
|
|
2474
|
-
function
|
|
2473
|
+
function un(e) {
|
|
2475
2474
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2476
2475
|
"path",
|
|
2477
2476
|
{
|
|
@@ -2480,7 +2479,7 @@ function mn(e) {
|
|
|
2480
2479
|
}
|
|
2481
2480
|
) });
|
|
2482
2481
|
}
|
|
2483
|
-
function
|
|
2482
|
+
function hn(e) {
|
|
2484
2483
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
|
|
2485
2484
|
"path",
|
|
2486
2485
|
{
|
|
@@ -2489,7 +2488,7 @@ function pn(e) {
|
|
|
2489
2488
|
}
|
|
2490
2489
|
) });
|
|
2491
2490
|
}
|
|
2492
|
-
function
|
|
2491
|
+
function fn() {
|
|
2493
2492
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2494
2493
|
"path",
|
|
2495
2494
|
{
|
|
@@ -2498,7 +2497,7 @@ function gn() {
|
|
|
2498
2497
|
}
|
|
2499
2498
|
) });
|
|
2500
2499
|
}
|
|
2501
|
-
function
|
|
2500
|
+
function mn() {
|
|
2502
2501
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2503
2502
|
"path",
|
|
2504
2503
|
{
|
|
@@ -2511,7 +2510,7 @@ function xn() {
|
|
|
2511
2510
|
}
|
|
2512
2511
|
) });
|
|
2513
2512
|
}
|
|
2514
|
-
function
|
|
2513
|
+
function gn() {
|
|
2515
2514
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2516
2515
|
"path",
|
|
2517
2516
|
{
|
|
@@ -2524,7 +2523,7 @@ function bn() {
|
|
|
2524
2523
|
}
|
|
2525
2524
|
) });
|
|
2526
2525
|
}
|
|
2527
|
-
function
|
|
2526
|
+
function pn() {
|
|
2528
2527
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2529
2528
|
"path",
|
|
2530
2529
|
{
|
|
@@ -2537,7 +2536,7 @@ function vn() {
|
|
|
2537
2536
|
}
|
|
2538
2537
|
) });
|
|
2539
2538
|
}
|
|
2540
|
-
function
|
|
2539
|
+
function xn() {
|
|
2541
2540
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2542
2541
|
"path",
|
|
2543
2542
|
{
|
|
@@ -2546,8 +2545,8 @@ function wn() {
|
|
|
2546
2545
|
}
|
|
2547
2546
|
) });
|
|
2548
2547
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return /* @__PURE__ */
|
|
2548
|
+
function bn() {
|
|
2549
|
+
return /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
|
|
2551
2550
|
/* @__PURE__ */ n(
|
|
2552
2551
|
"path",
|
|
2553
2552
|
{
|
|
@@ -2564,8 +2563,8 @@ function yn() {
|
|
|
2564
2563
|
)
|
|
2565
2564
|
] });
|
|
2566
2565
|
}
|
|
2567
|
-
function
|
|
2568
|
-
return /* @__PURE__ */
|
|
2566
|
+
function vn() {
|
|
2567
|
+
return /* @__PURE__ */ C(
|
|
2569
2568
|
"svg",
|
|
2570
2569
|
{
|
|
2571
2570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2592,7 +2591,7 @@ function Cn() {
|
|
|
2592
2591
|
}
|
|
2593
2592
|
);
|
|
2594
2593
|
}
|
|
2595
|
-
function
|
|
2594
|
+
function wn() {
|
|
2596
2595
|
return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 15 15", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
|
|
2597
2596
|
"path",
|
|
2598
2597
|
{
|
|
@@ -2601,8 +2600,8 @@ function kn() {
|
|
|
2601
2600
|
}
|
|
2602
2601
|
) });
|
|
2603
2602
|
}
|
|
2604
|
-
function
|
|
2605
|
-
return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */
|
|
2603
|
+
function yn() {
|
|
2604
|
+
return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
2606
2605
|
"g",
|
|
2607
2606
|
{
|
|
2608
2607
|
fill: "none",
|
|
@@ -2617,7 +2616,7 @@ function Nn() {
|
|
|
2617
2616
|
}
|
|
2618
2617
|
) });
|
|
2619
2618
|
}
|
|
2620
|
-
function
|
|
2619
|
+
function Cn() {
|
|
2621
2620
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
2622
2621
|
"path",
|
|
2623
2622
|
{
|
|
@@ -2626,8 +2625,8 @@ function Mn() {
|
|
|
2626
2625
|
}
|
|
2627
2626
|
) });
|
|
2628
2627
|
}
|
|
2629
|
-
function
|
|
2630
|
-
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */
|
|
2628
|
+
function kn() {
|
|
2629
|
+
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ C("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
|
|
2631
2630
|
/* @__PURE__ */ n("circle", { cx: "10", cy: "24", r: "4" }),
|
|
2632
2631
|
/* @__PURE__ */ n("circle", { cx: "38", cy: "10", r: "4" }),
|
|
2633
2632
|
/* @__PURE__ */ n("circle", { cx: "38", cy: "24", r: "4" }),
|
|
@@ -2635,7 +2634,7 @@ function Sn() {
|
|
|
2635
2634
|
/* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
|
|
2636
2635
|
] }) });
|
|
2637
2636
|
}
|
|
2638
|
-
function
|
|
2637
|
+
function Mn() {
|
|
2639
2638
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
2640
2639
|
"path",
|
|
2641
2640
|
{
|
|
@@ -2644,7 +2643,7 @@ function zn() {
|
|
|
2644
2643
|
}
|
|
2645
2644
|
) });
|
|
2646
2645
|
}
|
|
2647
|
-
function
|
|
2646
|
+
function zn() {
|
|
2648
2647
|
return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
|
|
2649
2648
|
"path",
|
|
2650
2649
|
{
|
|
@@ -2658,7 +2657,7 @@ function Tn() {
|
|
|
2658
2657
|
}
|
|
2659
2658
|
) });
|
|
2660
2659
|
}
|
|
2661
|
-
function
|
|
2660
|
+
function Tn() {
|
|
2662
2661
|
return /* @__PURE__ */ n(
|
|
2663
2662
|
"svg",
|
|
2664
2663
|
{
|
|
@@ -2679,144 +2678,144 @@ function In() {
|
|
|
2679
2678
|
}
|
|
2680
2679
|
);
|
|
2681
2680
|
}
|
|
2682
|
-
const
|
|
2683
|
-
Bold:
|
|
2684
|
-
LoaderCircle:
|
|
2685
|
-
Italic:
|
|
2686
|
-
Underline:
|
|
2687
|
-
Quote:
|
|
2688
|
-
TextQuote:
|
|
2689
|
-
Strikethrough:
|
|
2690
|
-
Minus:
|
|
2691
|
-
Eraser:
|
|
2692
|
-
PaintRoller:
|
|
2693
|
-
Redo2:
|
|
2694
|
-
Undo2:
|
|
2695
|
-
AlignCenter:
|
|
2696
|
-
AlignJustify:
|
|
2697
|
-
AlignLeft:
|
|
2698
|
-
AlignRight:
|
|
2699
|
-
ChevronDown:
|
|
2700
|
-
Subscript:
|
|
2701
|
-
Superscript:
|
|
2702
|
-
Code:
|
|
2703
|
-
Code2:
|
|
2704
|
-
Type:
|
|
2705
|
-
IndentIncrease:
|
|
2706
|
-
IndentDecrease:
|
|
2707
|
-
List:
|
|
2708
|
-
ListOrdered:
|
|
2709
|
-
ListTodo:
|
|
2710
|
-
Link:
|
|
2711
|
-
ImageUp:
|
|
2712
|
-
Video:
|
|
2713
|
-
Maximize:
|
|
2714
|
-
Minimize:
|
|
2715
|
-
Table:
|
|
2716
|
-
Sparkles:
|
|
2717
|
-
Pencil:
|
|
2718
|
-
Unlink:
|
|
2719
|
-
BetweenHorizonalEnd:
|
|
2720
|
-
BetweenHorizonalStart:
|
|
2721
|
-
BetweenVerticalStart:
|
|
2722
|
-
BetweenVerticalEnd:
|
|
2723
|
-
TableCellsMerge:
|
|
2724
|
-
TableCellsSplit:
|
|
2725
|
-
Trash2:
|
|
2726
|
-
Trash:
|
|
2727
|
-
Replace:
|
|
2728
|
-
ChevronsUpDown:
|
|
2729
|
-
LineHeight:
|
|
2730
|
-
Word:
|
|
2731
|
-
HeadingParagraph:
|
|
2732
|
-
Heading1:
|
|
2733
|
-
Heading2:
|
|
2734
|
-
Heading3:
|
|
2735
|
-
Heading4:
|
|
2736
|
-
Heading5:
|
|
2737
|
-
Heading6:
|
|
2738
|
-
Columns2:
|
|
2739
|
-
Columns3:
|
|
2740
|
-
Columns4:
|
|
2741
|
-
Plus:
|
|
2742
|
-
Grip:
|
|
2743
|
-
Copy:
|
|
2744
|
-
Clipboard:
|
|
2745
|
-
PanelLeft:
|
|
2746
|
-
PanelRight:
|
|
2747
|
-
Columns:
|
|
2748
|
-
Iframe:
|
|
2749
|
-
MenuDown:
|
|
2750
|
-
SizeS:
|
|
2751
|
-
SizeM:
|
|
2752
|
-
SizeL:
|
|
2753
|
-
AspectRatio:
|
|
2754
|
-
Emoji:
|
|
2755
|
-
DeleteColumn:
|
|
2756
|
-
DeleteRow:
|
|
2757
|
-
SearchAndReplace:
|
|
2758
|
-
EmojiIcon:
|
|
2759
|
-
KatexIcon:
|
|
2760
|
-
ExportPdf:
|
|
2761
|
-
ExportWord:
|
|
2762
|
-
ImportWord:
|
|
2763
|
-
ColumnAddLeft:
|
|
2764
|
-
ColumnAddRight:
|
|
2765
|
-
BookMarked:
|
|
2766
|
-
Excalidraw:
|
|
2767
|
-
ZoomIn:
|
|
2768
|
-
ZoomOut:
|
|
2769
|
-
Settings:
|
|
2770
|
-
Eye:
|
|
2771
|
-
TextDirection:
|
|
2772
|
-
LeftToRight:
|
|
2773
|
-
RightToLeft:
|
|
2774
|
-
Attachment:
|
|
2775
|
-
GifIcon:
|
|
2776
|
-
ChevronUp:
|
|
2777
|
-
Crop:
|
|
2778
|
-
Mermaid:
|
|
2779
|
-
Twitter:
|
|
2780
|
-
CodeView:
|
|
2781
|
-
FlipX:
|
|
2782
|
-
FlipY:
|
|
2783
|
-
PencilRuler:
|
|
2784
|
-
WrapText:
|
|
2785
|
-
Loader:
|
|
2786
|
-
X:
|
|
2787
|
-
Html:
|
|
2788
|
-
ExternalLink:
|
|
2789
|
-
Callout:
|
|
2790
|
-
},
|
|
2681
|
+
const yt = {
|
|
2682
|
+
Bold: si,
|
|
2683
|
+
LoaderCircle: ai,
|
|
2684
|
+
Italic: oi,
|
|
2685
|
+
Underline: ni,
|
|
2686
|
+
Quote: ii,
|
|
2687
|
+
TextQuote: nn,
|
|
2688
|
+
Strikethrough: ri,
|
|
2689
|
+
Minus: ti,
|
|
2690
|
+
Eraser: ei,
|
|
2691
|
+
PaintRoller: Qr,
|
|
2692
|
+
Redo2: Jr,
|
|
2693
|
+
Undo2: Kr,
|
|
2694
|
+
AlignCenter: wi,
|
|
2695
|
+
AlignJustify: vi,
|
|
2696
|
+
AlignLeft: bi,
|
|
2697
|
+
AlignRight: xi,
|
|
2698
|
+
ChevronDown: Zr,
|
|
2699
|
+
Subscript: qr,
|
|
2700
|
+
Superscript: Yr,
|
|
2701
|
+
Code: Xr,
|
|
2702
|
+
Code2: Gr,
|
|
2703
|
+
Type: Wr,
|
|
2704
|
+
IndentIncrease: Fr,
|
|
2705
|
+
IndentDecrease: $r,
|
|
2706
|
+
List: Br,
|
|
2707
|
+
ListOrdered: Ur,
|
|
2708
|
+
ListTodo: _r,
|
|
2709
|
+
Link: jr,
|
|
2710
|
+
ImageUp: Pr,
|
|
2711
|
+
Video: Or,
|
|
2712
|
+
Maximize: Hr,
|
|
2713
|
+
Minimize: Dr,
|
|
2714
|
+
Table: Vr,
|
|
2715
|
+
Sparkles: Rr,
|
|
2716
|
+
Pencil: Er,
|
|
2717
|
+
Unlink: Lr,
|
|
2718
|
+
BetweenHorizonalEnd: Ar,
|
|
2719
|
+
BetweenHorizonalStart: Nr,
|
|
2720
|
+
BetweenVerticalStart: Sr,
|
|
2721
|
+
BetweenVerticalEnd: Ir,
|
|
2722
|
+
TableCellsMerge: Tr,
|
|
2723
|
+
TableCellsSplit: zr,
|
|
2724
|
+
Trash2: Mr,
|
|
2725
|
+
Trash: kr,
|
|
2726
|
+
Replace: qe,
|
|
2727
|
+
ChevronsUpDown: Cr,
|
|
2728
|
+
LineHeight: ln,
|
|
2729
|
+
Word: sn,
|
|
2730
|
+
HeadingParagraph: yr,
|
|
2731
|
+
Heading1: wr,
|
|
2732
|
+
Heading2: vr,
|
|
2733
|
+
Heading3: br,
|
|
2734
|
+
Heading4: xr,
|
|
2735
|
+
Heading5: pr,
|
|
2736
|
+
Heading6: gr,
|
|
2737
|
+
Columns2: Ze,
|
|
2738
|
+
Columns3: mr,
|
|
2739
|
+
Columns4: fr,
|
|
2740
|
+
Plus: hr,
|
|
2741
|
+
Grip: ur,
|
|
2742
|
+
Copy: dr,
|
|
2743
|
+
Clipboard: cr,
|
|
2744
|
+
PanelLeft: lr,
|
|
2745
|
+
PanelRight: sr,
|
|
2746
|
+
Columns: Ze,
|
|
2747
|
+
Iframe: ar,
|
|
2748
|
+
MenuDown: cn,
|
|
2749
|
+
SizeS: hn,
|
|
2750
|
+
SizeM: un,
|
|
2751
|
+
SizeL: dn,
|
|
2752
|
+
AspectRatio: rn,
|
|
2753
|
+
Emoji: or,
|
|
2754
|
+
DeleteColumn: on,
|
|
2755
|
+
DeleteRow: an,
|
|
2756
|
+
SearchAndReplace: qe,
|
|
2757
|
+
EmojiIcon: nr,
|
|
2758
|
+
KatexIcon: ir,
|
|
2759
|
+
ExportPdf: bn,
|
|
2760
|
+
ExportWord: vn,
|
|
2761
|
+
ImportWord: Tn,
|
|
2762
|
+
ColumnAddLeft: mn,
|
|
2763
|
+
ColumnAddRight: gn,
|
|
2764
|
+
BookMarked: rr,
|
|
2765
|
+
Excalidraw: xn,
|
|
2766
|
+
ZoomIn: tr,
|
|
2767
|
+
ZoomOut: er,
|
|
2768
|
+
Settings: Qt,
|
|
2769
|
+
Eye: Jt,
|
|
2770
|
+
TextDirection: pn,
|
|
2771
|
+
LeftToRight: Cn,
|
|
2772
|
+
RightToLeft: Mn,
|
|
2773
|
+
Attachment: Kt,
|
|
2774
|
+
GifIcon: wn,
|
|
2775
|
+
ChevronUp: Zt,
|
|
2776
|
+
Crop: qt,
|
|
2777
|
+
Mermaid: kn,
|
|
2778
|
+
Twitter: zn,
|
|
2779
|
+
CodeView: fn,
|
|
2780
|
+
FlipX: Yt,
|
|
2781
|
+
FlipY: Xt,
|
|
2782
|
+
PencilRuler: Gt,
|
|
2783
|
+
WrapText: Wt,
|
|
2784
|
+
Loader: Ft,
|
|
2785
|
+
X: lt,
|
|
2786
|
+
Html: yn,
|
|
2787
|
+
ExternalLink: $t,
|
|
2788
|
+
Callout: Bt
|
|
2789
|
+
}, tt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, rt = ct, Ue = (e, t) => (r) => {
|
|
2791
2790
|
var i;
|
|
2792
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
2791
|
+
if ((t == null ? void 0 : t.variants) == null) return rt(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
2793
2792
|
const { variants: o, defaultVariants: a } = t, l = Object.keys(o).map((d) => {
|
|
2794
|
-
const
|
|
2795
|
-
if (
|
|
2796
|
-
const u =
|
|
2793
|
+
const g = r == null ? void 0 : r[d], p = a == null ? void 0 : a[d];
|
|
2794
|
+
if (g === null) return null;
|
|
2795
|
+
const u = tt(g) || tt(p);
|
|
2797
2796
|
return o[d][u];
|
|
2798
|
-
}), s = r && Object.entries(r).reduce((d,
|
|
2799
|
-
let [
|
|
2800
|
-
return u === void 0 || (d[
|
|
2801
|
-
}, {}), c = t == null || (i = t.compoundVariants) === null || i === void 0 ? void 0 : i.reduce((d,
|
|
2802
|
-
let { class:
|
|
2797
|
+
}), s = r && Object.entries(r).reduce((d, g) => {
|
|
2798
|
+
let [p, u] = g;
|
|
2799
|
+
return u === void 0 || (d[p] = u), d;
|
|
2800
|
+
}, {}), c = t == null || (i = t.compoundVariants) === null || i === void 0 ? void 0 : i.reduce((d, g) => {
|
|
2801
|
+
let { class: p, className: u, ...k } = g;
|
|
2803
2802
|
return Object.entries(k).every((b) => {
|
|
2804
|
-
let [
|
|
2803
|
+
let [z, f] = b;
|
|
2805
2804
|
return Array.isArray(f) ? f.includes({
|
|
2806
2805
|
...a,
|
|
2807
2806
|
...s
|
|
2808
|
-
}[
|
|
2807
|
+
}[z]) : {
|
|
2809
2808
|
...a,
|
|
2810
2809
|
...s
|
|
2811
|
-
}[
|
|
2810
|
+
}[z] === f;
|
|
2812
2811
|
}) ? [
|
|
2813
2812
|
...d,
|
|
2814
|
-
|
|
2813
|
+
p,
|
|
2815
2814
|
u
|
|
2816
2815
|
] : d;
|
|
2817
2816
|
}, []);
|
|
2818
|
-
return
|
|
2819
|
-
},
|
|
2817
|
+
return rt(e, l, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
2818
|
+
}, In = Ue(
|
|
2820
2819
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
2821
2820
|
{
|
|
2822
2821
|
variants: {
|
|
@@ -2840,17 +2839,17 @@ const Mt = {
|
|
|
2840
2839
|
size: "default"
|
|
2841
2840
|
}
|
|
2842
2841
|
}
|
|
2843
|
-
),
|
|
2844
|
-
({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ?
|
|
2842
|
+
), $ = U.forwardRef(
|
|
2843
|
+
({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ? ht : "button", { className: _(In({ variant: t, size: r, className: e })), ref: a, ...o })
|
|
2845
2844
|
);
|
|
2846
|
-
|
|
2847
|
-
const
|
|
2845
|
+
$.displayName = "Button";
|
|
2846
|
+
const te = U.forwardRef(
|
|
2848
2847
|
({ className: e, type: t, ...r }, i) => /* @__PURE__ */ n(
|
|
2849
2848
|
"input",
|
|
2850
2849
|
{
|
|
2851
2850
|
ref: i,
|
|
2852
2851
|
type: t,
|
|
2853
|
-
className:
|
|
2852
|
+
className: _(
|
|
2854
2853
|
"richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
|
|
2855
2854
|
e
|
|
2856
2855
|
),
|
|
@@ -2858,62 +2857,48 @@ const re = H.forwardRef(
|
|
|
2858
2857
|
}
|
|
2859
2858
|
)
|
|
2860
2859
|
);
|
|
2861
|
-
|
|
2862
|
-
const
|
|
2860
|
+
te.displayName = "Input";
|
|
2861
|
+
const Sn = Ue(
|
|
2863
2862
|
"richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
2864
|
-
),
|
|
2865
|
-
|
|
2866
|
-
const
|
|
2867
|
-
|
|
2863
|
+
), pe = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(mt.Root, { className: _(Sn(), e), ref: r, ...t }));
|
|
2864
|
+
pe.displayName = mt.Root.displayName;
|
|
2865
|
+
const Ne = re.Root, ve = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2866
|
+
re.List,
|
|
2868
2867
|
{
|
|
2869
2868
|
ref: r,
|
|
2870
|
-
className:
|
|
2869
|
+
className: _(
|
|
2871
2870
|
"richtext-inline-flex richtext-h-10 richtext-items-center richtext-justify-center richtext-rounded-md richtext-bg-muted richtext-p-1 richtext-text-muted-foreground",
|
|
2872
2871
|
e
|
|
2873
2872
|
),
|
|
2874
2873
|
...t
|
|
2875
2874
|
}
|
|
2876
2875
|
));
|
|
2877
|
-
|
|
2878
|
-
const
|
|
2879
|
-
|
|
2876
|
+
ve.displayName = re.List.displayName;
|
|
2877
|
+
const q = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2878
|
+
re.Trigger,
|
|
2880
2879
|
{
|
|
2881
2880
|
ref: r,
|
|
2882
|
-
className:
|
|
2881
|
+
className: _(
|
|
2883
2882
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-sm richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-all focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=active]:richtext-bg-background data-[state=active]:richtext-text-foreground data-[state=active]:richtext-shadow-sm",
|
|
2884
2883
|
e
|
|
2885
2884
|
),
|
|
2886
2885
|
...t
|
|
2887
2886
|
}
|
|
2888
2887
|
));
|
|
2889
|
-
|
|
2890
|
-
const
|
|
2891
|
-
|
|
2888
|
+
q.displayName = re.Trigger.displayName;
|
|
2889
|
+
const Z = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2890
|
+
re.Content,
|
|
2892
2891
|
{
|
|
2893
2892
|
ref: r,
|
|
2894
|
-
className:
|
|
2893
|
+
className: _(
|
|
2895
2894
|
"richtext-mt-2 richtext-ring-offset-background focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1",
|
|
2896
2895
|
e
|
|
2897
2896
|
),
|
|
2898
2897
|
...t
|
|
2899
2898
|
}
|
|
2900
2899
|
));
|
|
2901
|
-
|
|
2902
|
-
const
|
|
2903
|
-
({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2904
|
-
"textarea",
|
|
2905
|
-
{
|
|
2906
|
-
ref: r,
|
|
2907
|
-
className: R(
|
|
2908
|
-
"richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
|
|
2909
|
-
e
|
|
2910
|
-
),
|
|
2911
|
-
...t
|
|
2912
|
-
}
|
|
2913
|
-
)
|
|
2914
|
-
);
|
|
2915
|
-
En.displayName = "Textarea";
|
|
2916
|
-
const Rn = $e(
|
|
2900
|
+
Z.displayName = re.Content.displayName;
|
|
2901
|
+
const Nn = Ue(
|
|
2917
2902
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
|
|
2918
2903
|
{
|
|
2919
2904
|
variants: {
|
|
@@ -2932,160 +2917,52 @@ const Rn = $e(
|
|
|
2932
2917
|
size: "default"
|
|
2933
2918
|
}
|
|
2934
2919
|
}
|
|
2935
|
-
),
|
|
2936
|
-
|
|
2920
|
+
), Ct = U.forwardRef(({ className: e, variant: t, size: r, ...i }, o) => /* @__PURE__ */ n(
|
|
2921
|
+
ft.Root,
|
|
2937
2922
|
{
|
|
2938
2923
|
ref: o,
|
|
2939
|
-
className:
|
|
2924
|
+
className: _(Nn({ variant: t, size: r, className: e })),
|
|
2940
2925
|
...i
|
|
2941
2926
|
}
|
|
2942
2927
|
));
|
|
2943
|
-
|
|
2944
|
-
const
|
|
2945
|
-
|
|
2928
|
+
Ct.displayName = ft.Root.displayName;
|
|
2929
|
+
const Fo = be.Provider, An = be.Root, Ln = be.Trigger, kt = U.forwardRef(({ className: e, sideOffset: t = 4, ...r }, i) => /* @__PURE__ */ n(
|
|
2930
|
+
be.Content,
|
|
2946
2931
|
{
|
|
2947
2932
|
"data-richtext-portal": !0,
|
|
2948
2933
|
ref: i,
|
|
2949
2934
|
sideOffset: t,
|
|
2950
|
-
className:
|
|
2935
|
+
className: _(
|
|
2951
2936
|
"richtext-z-50 richtext-overflow-hidden richtext-rounded-md !richtext-border-none richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
|
|
2952
2937
|
e
|
|
2953
2938
|
),
|
|
2954
2939
|
...r
|
|
2955
2940
|
}
|
|
2956
2941
|
));
|
|
2957
|
-
|
|
2958
|
-
const
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
className: R(
|
|
2963
|
-
"richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
|
|
2964
|
-
e
|
|
2965
|
-
),
|
|
2966
|
-
...r,
|
|
2967
|
-
children: [
|
|
2968
|
-
t,
|
|
2969
|
-
/* @__PURE__ */ n(_.Icon, { asChild: !0, children: /* @__PURE__ */ n(Ue, { className: "richtext-size-4 richtext-opacity-50" }) })
|
|
2970
|
-
]
|
|
2971
|
-
}
|
|
2972
|
-
));
|
|
2973
|
-
Hn.displayName = _.Trigger.displayName;
|
|
2974
|
-
const Tt = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2975
|
-
_.ScrollUpButton,
|
|
2976
|
-
{
|
|
2977
|
-
ref: r,
|
|
2978
|
-
className: R(
|
|
2979
|
-
"richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
|
|
2980
|
-
e
|
|
2981
|
-
),
|
|
2982
|
-
...t,
|
|
2983
|
-
children: /* @__PURE__ */ n(ft, { className: "richtext-size-4" })
|
|
2984
|
-
}
|
|
2985
|
-
));
|
|
2986
|
-
Tt.displayName = _.ScrollUpButton.displayName;
|
|
2987
|
-
const It = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
2988
|
-
_.ScrollDownButton,
|
|
2989
|
-
{
|
|
2990
|
-
ref: r,
|
|
2991
|
-
className: R(
|
|
2992
|
-
"richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
|
|
2993
|
-
e
|
|
2994
|
-
),
|
|
2995
|
-
...t,
|
|
2996
|
-
children: /* @__PURE__ */ n(Ue, { className: "richtext-size-4" })
|
|
2997
|
-
}
|
|
2998
|
-
));
|
|
2999
|
-
It.displayName = _.ScrollDownButton.displayName;
|
|
3000
|
-
const jn = H.forwardRef(({ className: e, children: t, position: r = "popper", ...i }, o) => /* @__PURE__ */ n(_.Portal, { children: /* @__PURE__ */ v(
|
|
3001
|
-
_.Content,
|
|
3002
|
-
{
|
|
3003
|
-
"data-richtext-portal": !0,
|
|
3004
|
-
position: r,
|
|
3005
|
-
ref: o,
|
|
3006
|
-
className: R(
|
|
3007
|
-
"richtext-relative richtext-z-50 richtext-max-h-60 richtext-min-w-[8rem] richtext-overflow-hidden richtext-overflow-y-auto richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
|
|
3008
|
-
r === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
|
|
3009
|
-
e
|
|
3010
|
-
),
|
|
3011
|
-
...i,
|
|
3012
|
-
children: [
|
|
3013
|
-
/* @__PURE__ */ n(Tt, {}),
|
|
3014
|
-
/* @__PURE__ */ n(
|
|
3015
|
-
_.Viewport,
|
|
3016
|
-
{
|
|
3017
|
-
className: R(
|
|
3018
|
-
"richtext-p-1",
|
|
3019
|
-
r === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
|
|
3020
|
-
),
|
|
3021
|
-
children: t
|
|
3022
|
-
}
|
|
3023
|
-
),
|
|
3024
|
-
/* @__PURE__ */ n(It, {})
|
|
3025
|
-
]
|
|
3026
|
-
}
|
|
3027
|
-
) }));
|
|
3028
|
-
jn.displayName = _.Content.displayName;
|
|
3029
|
-
const On = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3030
|
-
_.Label,
|
|
3031
|
-
{
|
|
3032
|
-
className: R(
|
|
3033
|
-
"richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",
|
|
3034
|
-
e
|
|
3035
|
-
),
|
|
3036
|
-
ref: r,
|
|
3037
|
-
...t
|
|
3038
|
-
}
|
|
3039
|
-
));
|
|
3040
|
-
On.displayName = _.Label.displayName;
|
|
3041
|
-
const Pn = H.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ v(
|
|
3042
|
-
_.Item,
|
|
3043
|
-
{
|
|
3044
|
-
ref: i,
|
|
3045
|
-
className: R(
|
|
3046
|
-
"richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
|
|
3047
|
-
e
|
|
3048
|
-
),
|
|
3049
|
-
...r,
|
|
3050
|
-
children: [
|
|
3051
|
-
/* @__PURE__ */ n("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ n(_.ItemIndicator, { children: /* @__PURE__ */ n(mt, { className: "richtext-size-4" }) }) }),
|
|
3052
|
-
/* @__PURE__ */ n(_.ItemText, { children: t })
|
|
3053
|
-
]
|
|
3054
|
-
}
|
|
3055
|
-
));
|
|
3056
|
-
Pn.displayName = _.Item.displayName;
|
|
3057
|
-
const _n = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3058
|
-
_.Separator,
|
|
3059
|
-
{
|
|
3060
|
-
className: R("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
|
|
3061
|
-
ref: r,
|
|
3062
|
-
...t
|
|
3063
|
-
}
|
|
3064
|
-
));
|
|
3065
|
-
_n.displayName = _.Separator.displayName;
|
|
3066
|
-
const Un = 1, Bn = 1e6;
|
|
3067
|
-
let De = 0;
|
|
3068
|
-
function $n() {
|
|
3069
|
-
return De = (De + 1) % Number.MAX_SAFE_INTEGER, De.toString();
|
|
2942
|
+
kt.displayName = be.Content.displayName;
|
|
2943
|
+
const En = 1, Rn = 1e6;
|
|
2944
|
+
let Ve = 0;
|
|
2945
|
+
function Vn() {
|
|
2946
|
+
return Ve = (Ve + 1) % Number.MAX_SAFE_INTEGER, Ve.toString();
|
|
3070
2947
|
}
|
|
3071
|
-
const
|
|
3072
|
-
function
|
|
3073
|
-
if (
|
|
2948
|
+
const De = /* @__PURE__ */ new Map();
|
|
2949
|
+
function it(e) {
|
|
2950
|
+
if (De.has(e))
|
|
3074
2951
|
return;
|
|
3075
2952
|
const t = setTimeout(() => {
|
|
3076
|
-
|
|
2953
|
+
De.delete(e), me({
|
|
3077
2954
|
type: "REMOVE_TOAST",
|
|
3078
2955
|
toastId: e
|
|
3079
2956
|
});
|
|
3080
|
-
},
|
|
3081
|
-
|
|
2957
|
+
}, Rn);
|
|
2958
|
+
De.set(e, t);
|
|
3082
2959
|
}
|
|
3083
|
-
function
|
|
2960
|
+
function Dn(e, t) {
|
|
3084
2961
|
switch (t.type) {
|
|
3085
2962
|
case "ADD_TOAST":
|
|
3086
2963
|
return {
|
|
3087
2964
|
...e,
|
|
3088
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
2965
|
+
toasts: [t.toast, ...e.toasts].slice(0, En)
|
|
3089
2966
|
};
|
|
3090
2967
|
case "UPDATE_TOAST":
|
|
3091
2968
|
return {
|
|
@@ -3094,8 +2971,8 @@ function Fn(e, t) {
|
|
|
3094
2971
|
};
|
|
3095
2972
|
case "DISMISS_TOAST": {
|
|
3096
2973
|
const { toastId: r } = t;
|
|
3097
|
-
return r ?
|
|
3098
|
-
|
|
2974
|
+
return r ? it(r) : e.toasts.forEach((i) => {
|
|
2975
|
+
it(i.id);
|
|
3099
2976
|
}), {
|
|
3100
2977
|
...e,
|
|
3101
2978
|
toasts: e.toasts.map(
|
|
@@ -3116,19 +2993,19 @@ function Fn(e, t) {
|
|
|
3116
2993
|
};
|
|
3117
2994
|
}
|
|
3118
2995
|
}
|
|
3119
|
-
const
|
|
2996
|
+
const ke = [];
|
|
3120
2997
|
let Me = { toasts: [] };
|
|
3121
|
-
function
|
|
3122
|
-
Me =
|
|
2998
|
+
function me(e) {
|
|
2999
|
+
Me = Dn(Me, e), ke.forEach((t) => {
|
|
3123
3000
|
t(Me);
|
|
3124
3001
|
});
|
|
3125
3002
|
}
|
|
3126
|
-
function
|
|
3127
|
-
const t =
|
|
3003
|
+
function Hn({ ...e }) {
|
|
3004
|
+
const t = Vn(), r = (o) => me({
|
|
3128
3005
|
type: "UPDATE_TOAST",
|
|
3129
3006
|
toast: { ...o, id: t }
|
|
3130
|
-
}), i = () =>
|
|
3131
|
-
return
|
|
3007
|
+
}), i = () => me({ type: "DISMISS_TOAST", toastId: t });
|
|
3008
|
+
return me({
|
|
3132
3009
|
type: "ADD_TOAST",
|
|
3133
3010
|
toast: {
|
|
3134
3011
|
...e,
|
|
@@ -3144,22 +3021,22 @@ function Wn({ ...e }) {
|
|
|
3144
3021
|
update: r
|
|
3145
3022
|
};
|
|
3146
3023
|
}
|
|
3147
|
-
function
|
|
3148
|
-
const [e, t] =
|
|
3149
|
-
return
|
|
3150
|
-
const r =
|
|
3151
|
-
r > -1 &&
|
|
3024
|
+
function Be() {
|
|
3025
|
+
const [e, t] = U.useState(Me);
|
|
3026
|
+
return U.useEffect(() => (ke.push(t), () => {
|
|
3027
|
+
const r = ke.indexOf(t);
|
|
3028
|
+
r > -1 && ke.splice(r, 1);
|
|
3152
3029
|
}), [e]), {
|
|
3153
3030
|
...e,
|
|
3154
|
-
toast:
|
|
3155
|
-
dismiss: (r) =>
|
|
3031
|
+
toast: Hn,
|
|
3032
|
+
dismiss: (r) => me({ type: "DISMISS_TOAST", toastId: r })
|
|
3156
3033
|
};
|
|
3157
3034
|
}
|
|
3158
|
-
const
|
|
3035
|
+
const $e = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3159
3036
|
Oe.Root,
|
|
3160
3037
|
{
|
|
3161
3038
|
ref: r,
|
|
3162
|
-
className:
|
|
3039
|
+
className: _(
|
|
3163
3040
|
"!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-p-0 !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",
|
|
3164
3041
|
e
|
|
3165
3042
|
),
|
|
@@ -3167,16 +3044,16 @@ const We = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
|
3167
3044
|
children: /* @__PURE__ */ n(
|
|
3168
3045
|
Oe.Indicator,
|
|
3169
3046
|
{
|
|
3170
|
-
className:
|
|
3047
|
+
className: _(
|
|
3171
3048
|
"!richtext-flex !richtext-items-center !richtext-justify-center !richtext-p-0 !richtext-text-current"
|
|
3172
3049
|
),
|
|
3173
|
-
children: /* @__PURE__ */ n(
|
|
3050
|
+
children: /* @__PURE__ */ n(li, { className: "!richtext-h-4 !richtext-w-4" })
|
|
3174
3051
|
}
|
|
3175
3052
|
)
|
|
3176
3053
|
}
|
|
3177
3054
|
));
|
|
3178
|
-
|
|
3179
|
-
function
|
|
3055
|
+
$e.displayName = Oe.Root.displayName;
|
|
3056
|
+
function On(e) {
|
|
3180
3057
|
return e = e || /* @__PURE__ */ new Map(), {
|
|
3181
3058
|
/**
|
|
3182
3059
|
* A Map of event names to registered handler functions.
|
|
@@ -3223,57 +3100,57 @@ function Gn(e) {
|
|
|
3223
3100
|
}
|
|
3224
3101
|
};
|
|
3225
3102
|
}
|
|
3226
|
-
const
|
|
3227
|
-
function
|
|
3228
|
-
const r =
|
|
3229
|
-
|
|
3103
|
+
const Fe = On(), Mt = Q.createContext(Fe), Pn = () => Q.useContext(Mt);
|
|
3104
|
+
function zt(e, t) {
|
|
3105
|
+
const r = Pn();
|
|
3106
|
+
Q.useEffect(() => (t.map((i) => r.on(i, e)), () => {
|
|
3230
3107
|
t.map((i) => r.off(i, e));
|
|
3231
3108
|
}), [r, t, e]);
|
|
3232
3109
|
}
|
|
3233
|
-
const
|
|
3234
|
-
function
|
|
3235
|
-
return /* @__PURE__ */ n(
|
|
3110
|
+
const Wo = Fe.emit;
|
|
3111
|
+
function Go({ children: e }) {
|
|
3112
|
+
return /* @__PURE__ */ n(Mt.Provider, { value: Fe, children: e });
|
|
3236
3113
|
}
|
|
3237
|
-
const
|
|
3238
|
-
|
|
3114
|
+
const we = F.Root, We = F.Trigger, jn = F.Portal, Tt = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3115
|
+
F.Overlay,
|
|
3239
3116
|
{
|
|
3240
3117
|
ref: r,
|
|
3241
|
-
className:
|
|
3118
|
+
className: _(
|
|
3242
3119
|
"richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0",
|
|
3243
3120
|
e
|
|
3244
3121
|
),
|
|
3245
3122
|
...t
|
|
3246
3123
|
}
|
|
3247
3124
|
));
|
|
3248
|
-
|
|
3249
|
-
const
|
|
3250
|
-
/* @__PURE__ */ n(
|
|
3251
|
-
/* @__PURE__ */
|
|
3252
|
-
|
|
3125
|
+
Tt.displayName = F.Overlay.displayName;
|
|
3126
|
+
const ae = U.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ C(jn, { "data-richtext-portal": !0, children: [
|
|
3127
|
+
/* @__PURE__ */ n(Tt, {}),
|
|
3128
|
+
/* @__PURE__ */ C(
|
|
3129
|
+
F.Content,
|
|
3253
3130
|
{
|
|
3254
3131
|
"data-richtext-portal": !0,
|
|
3255
3132
|
ref: i,
|
|
3256
|
-
className:
|
|
3133
|
+
className: _(
|
|
3257
3134
|
"richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border !richtext-border-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg",
|
|
3258
3135
|
e
|
|
3259
3136
|
),
|
|
3260
3137
|
...r,
|
|
3261
3138
|
children: [
|
|
3262
3139
|
t,
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */ n(
|
|
3140
|
+
/* @__PURE__ */ C(F.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
|
|
3141
|
+
/* @__PURE__ */ n(lt, { className: "richtext-size-4 richtext-text-accent-foreground" }),
|
|
3265
3142
|
/* @__PURE__ */ n("span", { className: "richtext-sr-only richtext-text-accent-foreground", children: "Close" })
|
|
3266
3143
|
] })
|
|
3267
3144
|
]
|
|
3268
3145
|
}
|
|
3269
3146
|
)
|
|
3270
3147
|
] }));
|
|
3271
|
-
|
|
3272
|
-
function
|
|
3148
|
+
ae.displayName = F.Content.displayName;
|
|
3149
|
+
function _n({ className: e, ...t }) {
|
|
3273
3150
|
return /* @__PURE__ */ n(
|
|
3274
3151
|
"div",
|
|
3275
3152
|
{
|
|
3276
|
-
className:
|
|
3153
|
+
className: _(
|
|
3277
3154
|
"richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",
|
|
3278
3155
|
e
|
|
3279
3156
|
),
|
|
@@ -3281,12 +3158,12 @@ function qn({ className: e, ...t }) {
|
|
|
3281
3158
|
}
|
|
3282
3159
|
);
|
|
3283
3160
|
}
|
|
3284
|
-
|
|
3285
|
-
function
|
|
3161
|
+
_n.displayName = "DialogHeader";
|
|
3162
|
+
function It({ className: e, ...t }) {
|
|
3286
3163
|
return /* @__PURE__ */ n(
|
|
3287
3164
|
"div",
|
|
3288
3165
|
{
|
|
3289
|
-
className:
|
|
3166
|
+
className: _(
|
|
3290
3167
|
"richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",
|
|
3291
3168
|
e
|
|
3292
3169
|
),
|
|
@@ -3294,29 +3171,29 @@ function Rt({ className: e, ...t }) {
|
|
|
3294
3171
|
}
|
|
3295
3172
|
);
|
|
3296
3173
|
}
|
|
3297
|
-
|
|
3298
|
-
const
|
|
3299
|
-
|
|
3174
|
+
It.displayName = "DialogFooter";
|
|
3175
|
+
const se = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3176
|
+
F.Title,
|
|
3300
3177
|
{
|
|
3301
3178
|
ref: r,
|
|
3302
|
-
className:
|
|
3179
|
+
className: _(
|
|
3303
3180
|
"richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",
|
|
3304
3181
|
e
|
|
3305
3182
|
),
|
|
3306
3183
|
...t
|
|
3307
3184
|
}
|
|
3308
3185
|
));
|
|
3309
|
-
|
|
3310
|
-
const
|
|
3311
|
-
|
|
3186
|
+
se.displayName = F.Title.displayName;
|
|
3187
|
+
const Un = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
|
|
3188
|
+
F.Description,
|
|
3312
3189
|
{
|
|
3313
|
-
className:
|
|
3190
|
+
className: _("richtext-text-sm richtext-text-muted-foreground", e),
|
|
3314
3191
|
ref: r,
|
|
3315
3192
|
...t
|
|
3316
3193
|
}
|
|
3317
3194
|
));
|
|
3318
|
-
|
|
3319
|
-
var
|
|
3195
|
+
Un.displayName = F.Description.displayName;
|
|
3196
|
+
var Bn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, $n = dt.create({
|
|
3320
3197
|
name: "image",
|
|
3321
3198
|
addOptions() {
|
|
3322
3199
|
return {
|
|
@@ -3360,7 +3237,7 @@ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.cre
|
|
|
3360
3237
|
];
|
|
3361
3238
|
},
|
|
3362
3239
|
renderHTML({ HTMLAttributes: e }) {
|
|
3363
|
-
return ["img",
|
|
3240
|
+
return ["img", ut(this.options.HTMLAttributes, e)];
|
|
3364
3241
|
},
|
|
3365
3242
|
parseMarkdown: (e, t) => t.createNode("image", {
|
|
3366
3243
|
src: e.href,
|
|
@@ -3378,33 +3255,33 @@ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.cre
|
|
|
3378
3255
|
const { directions: e, minWidth: t, minHeight: r, alwaysPreserveAspectRatio: i } = this.options.resize;
|
|
3379
3256
|
return ({ node: o, getPos: a, HTMLAttributes: l, editor: s }) => {
|
|
3380
3257
|
const c = document.createElement("img");
|
|
3381
|
-
Object.entries(l).forEach(([
|
|
3258
|
+
Object.entries(l).forEach(([p, u]) => {
|
|
3382
3259
|
if (u != null)
|
|
3383
|
-
switch (
|
|
3260
|
+
switch (p) {
|
|
3384
3261
|
case "width":
|
|
3385
3262
|
case "height":
|
|
3386
3263
|
break;
|
|
3387
3264
|
default:
|
|
3388
|
-
c.setAttribute(
|
|
3265
|
+
c.setAttribute(p, u);
|
|
3389
3266
|
break;
|
|
3390
3267
|
}
|
|
3391
3268
|
}), c.src = l.src;
|
|
3392
|
-
const d = new
|
|
3269
|
+
const d = new mi({
|
|
3393
3270
|
element: c,
|
|
3394
3271
|
editor: s,
|
|
3395
3272
|
node: o,
|
|
3396
3273
|
getPos: a,
|
|
3397
|
-
onResize: (
|
|
3398
|
-
c.style.width = `${
|
|
3274
|
+
onResize: (p, u) => {
|
|
3275
|
+
c.style.width = `${p}px`, c.style.height = `${u}px`;
|
|
3399
3276
|
},
|
|
3400
|
-
onCommit: (
|
|
3277
|
+
onCommit: (p, u) => {
|
|
3401
3278
|
const k = a();
|
|
3402
3279
|
k !== void 0 && this.editor.chain().setNodeSelection(k).updateAttributes(this.name, {
|
|
3403
|
-
width:
|
|
3280
|
+
width: p,
|
|
3404
3281
|
height: u
|
|
3405
3282
|
}).run();
|
|
3406
3283
|
},
|
|
3407
|
-
onUpdate: (
|
|
3284
|
+
onUpdate: (p, u, k) => p.type === o.type,
|
|
3408
3285
|
options: {
|
|
3409
3286
|
directions: e,
|
|
3410
3287
|
min: {
|
|
@@ -3413,9 +3290,9 @@ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.cre
|
|
|
3413
3290
|
},
|
|
3414
3291
|
preserveAspectRatio: i === !0
|
|
3415
3292
|
}
|
|
3416
|
-
}),
|
|
3417
|
-
return
|
|
3418
|
-
|
|
3293
|
+
}), g = d.dom;
|
|
3294
|
+
return g.style.visibility = "hidden", g.style.pointerEvents = "none", c.onload = () => {
|
|
3295
|
+
g.style.visibility = "", g.style.pointerEvents = "";
|
|
3419
3296
|
}, d;
|
|
3420
3297
|
};
|
|
3421
3298
|
},
|
|
@@ -3429,8 +3306,8 @@ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.cre
|
|
|
3429
3306
|
},
|
|
3430
3307
|
addInputRules() {
|
|
3431
3308
|
return [
|
|
3432
|
-
|
|
3433
|
-
find:
|
|
3309
|
+
fi({
|
|
3310
|
+
find: Bn,
|
|
3434
3311
|
type: this.type,
|
|
3435
3312
|
getAttributes: (e) => {
|
|
3436
3313
|
const [, , t, r, i] = e;
|
|
@@ -3439,226 +3316,226 @@ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.cre
|
|
|
3439
3316
|
})
|
|
3440
3317
|
];
|
|
3441
3318
|
}
|
|
3442
|
-
}),
|
|
3443
|
-
function
|
|
3444
|
-
var t =
|
|
3319
|
+
}), Fn = $n, Wn = typeof global == "object" && global && global.Object === Object && global, Gn = typeof self == "object" && self && self.Object === Object && self, St = Wn || Gn || Function("return this")(), Te = St.Symbol, Nt = Object.prototype, Xn = Nt.hasOwnProperty, Yn = Nt.toString, he = Te ? Te.toStringTag : void 0;
|
|
3320
|
+
function qn(e) {
|
|
3321
|
+
var t = Xn.call(e, he), r = e[he];
|
|
3445
3322
|
try {
|
|
3446
|
-
e[
|
|
3323
|
+
e[he] = void 0;
|
|
3447
3324
|
var i = !0;
|
|
3448
3325
|
} catch {
|
|
3449
3326
|
}
|
|
3450
|
-
var o =
|
|
3451
|
-
return i && (t ? e[
|
|
3327
|
+
var o = Yn.call(e);
|
|
3328
|
+
return i && (t ? e[he] = r : delete e[he]), o;
|
|
3452
3329
|
}
|
|
3453
|
-
var
|
|
3454
|
-
function
|
|
3455
|
-
return
|
|
3330
|
+
var Zn = Object.prototype, Kn = Zn.toString;
|
|
3331
|
+
function Jn(e) {
|
|
3332
|
+
return Kn.call(e);
|
|
3456
3333
|
}
|
|
3457
|
-
var
|
|
3458
|
-
function
|
|
3459
|
-
return e == null ? e === void 0 ?
|
|
3334
|
+
var Qn = "[object Null]", eo = "[object Undefined]", nt = Te ? Te.toStringTag : void 0;
|
|
3335
|
+
function At(e) {
|
|
3336
|
+
return e == null ? e === void 0 ? eo : Qn : nt && nt in Object(e) ? qn(e) : Jn(e);
|
|
3460
3337
|
}
|
|
3461
|
-
function
|
|
3338
|
+
function Lt(e) {
|
|
3462
3339
|
return e != null && typeof e == "object";
|
|
3463
3340
|
}
|
|
3464
|
-
var
|
|
3465
|
-
function
|
|
3466
|
-
return typeof e == "symbol" ||
|
|
3341
|
+
var to = "[object Symbol]";
|
|
3342
|
+
function ro(e) {
|
|
3343
|
+
return typeof e == "symbol" || Lt(e) && At(e) == to;
|
|
3467
3344
|
}
|
|
3468
|
-
var
|
|
3469
|
-
function
|
|
3470
|
-
for (var t = e.length; t-- &&
|
|
3345
|
+
var io = /\s/;
|
|
3346
|
+
function no(e) {
|
|
3347
|
+
for (var t = e.length; t-- && io.test(e.charAt(t)); )
|
|
3471
3348
|
;
|
|
3472
3349
|
return t;
|
|
3473
3350
|
}
|
|
3474
|
-
var
|
|
3475
|
-
function
|
|
3476
|
-
return e && e.slice(0,
|
|
3351
|
+
var oo = /^\s+/;
|
|
3352
|
+
function ao(e) {
|
|
3353
|
+
return e && e.slice(0, no(e) + 1).replace(oo, "");
|
|
3477
3354
|
}
|
|
3478
|
-
function
|
|
3355
|
+
function Ie(e) {
|
|
3479
3356
|
var t = typeof e;
|
|
3480
3357
|
return e != null && (t == "object" || t == "function");
|
|
3481
3358
|
}
|
|
3482
|
-
var
|
|
3359
|
+
var ot = NaN, so = /^[-+]0x[0-9a-f]+$/i, lo = /^0b[01]+$/i, co = /^0o[0-7]+$/i, uo = parseInt;
|
|
3483
3360
|
function ge(e) {
|
|
3484
3361
|
if (typeof e == "number")
|
|
3485
3362
|
return e;
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3488
|
-
if (
|
|
3363
|
+
if (ro(e))
|
|
3364
|
+
return ot;
|
|
3365
|
+
if (Ie(e)) {
|
|
3489
3366
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
3490
|
-
e =
|
|
3367
|
+
e = Ie(t) ? t + "" : t;
|
|
3491
3368
|
}
|
|
3492
3369
|
if (typeof e != "string")
|
|
3493
3370
|
return e === 0 ? e : +e;
|
|
3494
|
-
e =
|
|
3495
|
-
var r =
|
|
3496
|
-
return r ||
|
|
3371
|
+
e = ao(e);
|
|
3372
|
+
var r = lo.test(e);
|
|
3373
|
+
return r || co.test(e) ? uo(e.slice(2), r ? 2 : 8) : so.test(e) ? ot : +e;
|
|
3497
3374
|
}
|
|
3498
|
-
function
|
|
3375
|
+
function ho(e, t, r) {
|
|
3499
3376
|
return e === e && (r !== void 0 && (e = e <= r ? e : r), t !== void 0 && (e = e >= t ? e : t)), e;
|
|
3500
3377
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0),
|
|
3378
|
+
function fo(e, t, r) {
|
|
3379
|
+
return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0), ho(ge(e), t, r);
|
|
3503
3380
|
}
|
|
3504
|
-
var
|
|
3505
|
-
return
|
|
3506
|
-
},
|
|
3507
|
-
function
|
|
3508
|
-
var i, o, a, l, s, c, d = 0,
|
|
3381
|
+
var He = function() {
|
|
3382
|
+
return St.Date.now();
|
|
3383
|
+
}, mo = "Expected a function", go = Math.max, po = Math.min;
|
|
3384
|
+
function xo(e, t, r) {
|
|
3385
|
+
var i, o, a, l, s, c, d = 0, g = !1, p = !1, u = !0;
|
|
3509
3386
|
if (typeof e != "function")
|
|
3510
|
-
throw new TypeError(
|
|
3511
|
-
t = ge(t) || 0,
|
|
3512
|
-
function k(
|
|
3513
|
-
var
|
|
3514
|
-
return i = o = void 0, d =
|
|
3387
|
+
throw new TypeError(mo);
|
|
3388
|
+
t = ge(t) || 0, Ie(r) && (g = !!r.leading, p = "maxWait" in r, a = p ? go(ge(r.maxWait) || 0, t) : a, u = "trailing" in r ? !!r.trailing : u);
|
|
3389
|
+
function k(v) {
|
|
3390
|
+
var R = i, N = o;
|
|
3391
|
+
return i = o = void 0, d = v, l = e.apply(N, R), l;
|
|
3515
3392
|
}
|
|
3516
|
-
function b(
|
|
3517
|
-
return d =
|
|
3393
|
+
function b(v) {
|
|
3394
|
+
return d = v, s = setTimeout(x, t), g ? k(v) : l;
|
|
3518
3395
|
}
|
|
3519
|
-
function
|
|
3520
|
-
var
|
|
3521
|
-
return
|
|
3396
|
+
function z(v) {
|
|
3397
|
+
var R = v - c, N = v - d, P = t - R;
|
|
3398
|
+
return p ? po(P, a - N) : P;
|
|
3522
3399
|
}
|
|
3523
|
-
function f(
|
|
3524
|
-
var
|
|
3525
|
-
return c === void 0 ||
|
|
3400
|
+
function f(v) {
|
|
3401
|
+
var R = v - c, N = v - d;
|
|
3402
|
+
return c === void 0 || R >= t || R < 0 || p && N >= a;
|
|
3526
3403
|
}
|
|
3527
3404
|
function x() {
|
|
3528
|
-
var
|
|
3529
|
-
if (f(
|
|
3530
|
-
return h(
|
|
3531
|
-
s = setTimeout(x,
|
|
3405
|
+
var v = He();
|
|
3406
|
+
if (f(v))
|
|
3407
|
+
return h(v);
|
|
3408
|
+
s = setTimeout(x, z(v));
|
|
3532
3409
|
}
|
|
3533
|
-
function h(
|
|
3534
|
-
return s = void 0, u && i ? k(
|
|
3410
|
+
function h(v) {
|
|
3411
|
+
return s = void 0, u && i ? k(v) : (i = o = void 0, l);
|
|
3535
3412
|
}
|
|
3536
|
-
function
|
|
3413
|
+
function S() {
|
|
3537
3414
|
s !== void 0 && clearTimeout(s), d = 0, i = c = o = s = void 0;
|
|
3538
3415
|
}
|
|
3539
3416
|
function m() {
|
|
3540
|
-
return s === void 0 ? l : h(
|
|
3417
|
+
return s === void 0 ? l : h(He());
|
|
3541
3418
|
}
|
|
3542
|
-
function
|
|
3543
|
-
var
|
|
3544
|
-
if (i = arguments, o = this, c =
|
|
3419
|
+
function D() {
|
|
3420
|
+
var v = He(), R = f(v);
|
|
3421
|
+
if (i = arguments, o = this, c = v, R) {
|
|
3545
3422
|
if (s === void 0)
|
|
3546
3423
|
return b(c);
|
|
3547
|
-
if (
|
|
3424
|
+
if (p)
|
|
3548
3425
|
return clearTimeout(s), s = setTimeout(x, t), k(c);
|
|
3549
3426
|
}
|
|
3550
3427
|
return s === void 0 && (s = setTimeout(x, t)), l;
|
|
3551
3428
|
}
|
|
3552
|
-
return
|
|
3429
|
+
return D.cancel = S, D.flush = m, D;
|
|
3553
3430
|
}
|
|
3554
|
-
var
|
|
3555
|
-
function
|
|
3556
|
-
return typeof e == "number" ||
|
|
3431
|
+
var bo = "[object Number]";
|
|
3432
|
+
function at(e) {
|
|
3433
|
+
return typeof e == "number" || Lt(e) && At(e) == bo;
|
|
3557
3434
|
}
|
|
3558
|
-
var
|
|
3559
|
-
function
|
|
3435
|
+
var vo = "Expected a function";
|
|
3436
|
+
function st(e, t, r) {
|
|
3560
3437
|
var i = !0, o = !0;
|
|
3561
3438
|
if (typeof e != "function")
|
|
3562
|
-
throw new TypeError(
|
|
3563
|
-
return
|
|
3439
|
+
throw new TypeError(vo);
|
|
3440
|
+
return Ie(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), xo(e, t, {
|
|
3564
3441
|
leading: i,
|
|
3565
3442
|
maxWait: t,
|
|
3566
3443
|
trailing: o
|
|
3567
3444
|
});
|
|
3568
3445
|
}
|
|
3569
|
-
const
|
|
3446
|
+
const Ce = {
|
|
3570
3447
|
TOP_LEFT: "tl",
|
|
3571
3448
|
TOP_RIGHT: "tr",
|
|
3572
3449
|
BOTTOM_LEFT: "bl",
|
|
3573
3450
|
BOTTOM_RIGHT: "br"
|
|
3574
3451
|
};
|
|
3575
|
-
function
|
|
3576
|
-
var
|
|
3577
|
-
const [t, r] =
|
|
3578
|
-
width:
|
|
3579
|
-
height:
|
|
3580
|
-
}), [i, o] =
|
|
3452
|
+
function wo(e) {
|
|
3453
|
+
var N, P, H;
|
|
3454
|
+
const [t, r] = L({
|
|
3455
|
+
width: Ke,
|
|
3456
|
+
height: Ke
|
|
3457
|
+
}), [i, o] = L({
|
|
3581
3458
|
width: 0,
|
|
3582
3459
|
height: 0
|
|
3583
|
-
}), [a] =
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
]), [l, s] =
|
|
3460
|
+
}), [a] = L([
|
|
3461
|
+
Ce.TOP_LEFT,
|
|
3462
|
+
Ce.TOP_RIGHT,
|
|
3463
|
+
Ce.BOTTOM_LEFT,
|
|
3464
|
+
Ce.BOTTOM_RIGHT
|
|
3465
|
+
]), [l, s] = L(!1), [c, d] = L({
|
|
3589
3466
|
x: 0,
|
|
3590
3467
|
y: 0,
|
|
3591
3468
|
w: 0,
|
|
3592
3469
|
h: 0,
|
|
3593
3470
|
dir: ""
|
|
3594
|
-
}), { align:
|
|
3595
|
-
var
|
|
3596
|
-
const { src:
|
|
3597
|
-
E &&
|
|
3598
|
-
const
|
|
3471
|
+
}), { align: g, inline: p } = (N = e == null ? void 0 : e.node) == null ? void 0 : N.attrs, u = p && (g === "left" || g === "right"), k = B(() => {
|
|
3472
|
+
var Ye;
|
|
3473
|
+
const { src: M, alt: w, width: y, height: I, flipX: E, flipY: A } = (Ye = e == null ? void 0 : e.node) == null ? void 0 : Ye.attrs, j = at(y) ? `${y}px` : y, O = at(I) ? `${I}px` : I, G = [];
|
|
3474
|
+
E && G.push("rotateX(180deg)"), A && G.push("rotateY(180deg)");
|
|
3475
|
+
const ye = G.join(" ");
|
|
3599
3476
|
return {
|
|
3600
|
-
src:
|
|
3601
|
-
alt:
|
|
3477
|
+
src: M || void 0,
|
|
3478
|
+
alt: w || void 0,
|
|
3602
3479
|
style: {
|
|
3603
|
-
width:
|
|
3604
|
-
height:
|
|
3605
|
-
transform:
|
|
3606
|
-
...u ? { float:
|
|
3480
|
+
width: j || void 0,
|
|
3481
|
+
height: O || void 0,
|
|
3482
|
+
transform: ye || "none",
|
|
3483
|
+
...u ? { float: g } : {}
|
|
3607
3484
|
}
|
|
3608
3485
|
};
|
|
3609
|
-
}, [(
|
|
3486
|
+
}, [(P = e == null ? void 0 : e.node) == null ? void 0 : P.attrs]), b = B(() => {
|
|
3610
3487
|
const {
|
|
3611
|
-
style: { width:
|
|
3488
|
+
style: { width: M }
|
|
3612
3489
|
} = k;
|
|
3613
|
-
return { width:
|
|
3490
|
+
return { width: M === "100%" ? M : void 0 };
|
|
3614
3491
|
}, [k]);
|
|
3615
|
-
function M
|
|
3492
|
+
function z(M) {
|
|
3616
3493
|
o({
|
|
3617
|
-
width:
|
|
3618
|
-
height:
|
|
3494
|
+
width: M.target.width,
|
|
3495
|
+
height: M.target.height
|
|
3619
3496
|
});
|
|
3620
3497
|
}
|
|
3621
3498
|
function f() {
|
|
3622
|
-
const { editor:
|
|
3623
|
-
|
|
3499
|
+
const { editor: M, getPos: w } = e;
|
|
3500
|
+
M.commands.setNodeSelection(w());
|
|
3624
3501
|
}
|
|
3625
|
-
const x =
|
|
3626
|
-
|
|
3627
|
-
const { editor:
|
|
3628
|
-
r((
|
|
3629
|
-
...
|
|
3630
|
-
width: Number.parseInt(
|
|
3502
|
+
const x = ce(
|
|
3503
|
+
st(() => {
|
|
3504
|
+
const { editor: M } = e, { width: w } = getComputedStyle(M.view.dom);
|
|
3505
|
+
r((y) => ({
|
|
3506
|
+
...y,
|
|
3507
|
+
width: Number.parseInt(w, 10)
|
|
3631
3508
|
}));
|
|
3632
|
-
},
|
|
3509
|
+
}, Je),
|
|
3633
3510
|
[e == null ? void 0 : e.editor]
|
|
3634
3511
|
);
|
|
3635
|
-
function h(
|
|
3636
|
-
|
|
3637
|
-
const
|
|
3638
|
-
let
|
|
3639
|
-
const
|
|
3640
|
-
|
|
3641
|
-
x:
|
|
3642
|
-
y:
|
|
3643
|
-
w:
|
|
3644
|
-
h:
|
|
3645
|
-
dir:
|
|
3512
|
+
function h(M, w) {
|
|
3513
|
+
M.preventDefault(), M.stopPropagation();
|
|
3514
|
+
const y = i.width, I = i.height, E = y / I;
|
|
3515
|
+
let A = Number(e.node.attrs.width), j = Number(e.node.attrs.height);
|
|
3516
|
+
const O = t.width;
|
|
3517
|
+
A && !j ? (A = A > O ? O : A, j = Math.round(A / E)) : j && !A ? (A = Math.round(j * E), A = A > O ? O : A) : !A && !j ? (A = y > O ? O : y, j = Math.round(A / E)) : A = A > O ? O : A, s(!0), d({
|
|
3518
|
+
x: M.clientX,
|
|
3519
|
+
y: M.clientY,
|
|
3520
|
+
w: A,
|
|
3521
|
+
h: j,
|
|
3522
|
+
dir: w
|
|
3646
3523
|
});
|
|
3647
3524
|
}
|
|
3648
|
-
const
|
|
3649
|
-
|
|
3650
|
-
if (
|
|
3525
|
+
const S = ce(
|
|
3526
|
+
st((M) => {
|
|
3527
|
+
if (M.preventDefault(), M.stopPropagation(), !l)
|
|
3651
3528
|
return;
|
|
3652
|
-
const { x:
|
|
3529
|
+
const { x: w, w: y, dir: I } = c, E = (M.clientX - w) * (/l/.test(I) ? -1 : 1), A = fo(y + E, gi, t.width);
|
|
3653
3530
|
e.updateAttributes({
|
|
3654
|
-
width:
|
|
3531
|
+
width: A,
|
|
3655
3532
|
height: null
|
|
3656
3533
|
});
|
|
3657
|
-
},
|
|
3534
|
+
}, Je),
|
|
3658
3535
|
[l, c, t, e.updateAttributes]
|
|
3659
|
-
), m =
|
|
3660
|
-
(
|
|
3661
|
-
|
|
3536
|
+
), m = ce(
|
|
3537
|
+
(M) => {
|
|
3538
|
+
M.preventDefault(), M.stopPropagation(), l && (d({
|
|
3662
3539
|
x: 0,
|
|
3663
3540
|
y: 0,
|
|
3664
3541
|
w: 0,
|
|
@@ -3667,31 +3544,31 @@ function Io(e) {
|
|
|
3667
3544
|
}), s(!1), f());
|
|
3668
3545
|
},
|
|
3669
3546
|
[l, f]
|
|
3670
|
-
),
|
|
3671
|
-
document == null || document.addEventListener("mousemove",
|
|
3672
|
-
}, [
|
|
3673
|
-
document == null || document.removeEventListener("mousemove",
|
|
3674
|
-
}, [
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
}), [l,
|
|
3678
|
-
const
|
|
3679
|
-
return
|
|
3680
|
-
|
|
3681
|
-
}), [e.editor.view.dom,
|
|
3682
|
-
|
|
3547
|
+
), D = ce(() => {
|
|
3548
|
+
document == null || document.addEventListener("mousemove", S, !0), document == null || document.addEventListener("mouseup", m, !0);
|
|
3549
|
+
}, [S, m]), v = ce(() => {
|
|
3550
|
+
document == null || document.removeEventListener("mousemove", S, !0), document == null || document.removeEventListener("mouseup", m, !0);
|
|
3551
|
+
}, [S, m]);
|
|
3552
|
+
ze(() => (l ? D() : v(), () => {
|
|
3553
|
+
v();
|
|
3554
|
+
}), [l, D, v]);
|
|
3555
|
+
const R = B(() => new ResizeObserver(() => x()), [x]);
|
|
3556
|
+
return ze(() => (R.observe(e.editor.view.dom), () => {
|
|
3557
|
+
R.disconnect();
|
|
3558
|
+
}), [e.editor.view.dom, R]), /* @__PURE__ */ n(
|
|
3559
|
+
ci,
|
|
3683
3560
|
{
|
|
3684
|
-
as:
|
|
3561
|
+
as: p ? "span" : "div",
|
|
3685
3562
|
className: "image-view",
|
|
3686
3563
|
style: {
|
|
3687
|
-
float: u ?
|
|
3688
|
-
margin: u ?
|
|
3689
|
-
display:
|
|
3690
|
-
textAlign: u ? void 0 :
|
|
3691
|
-
width: ((
|
|
3564
|
+
float: u ? g : void 0,
|
|
3565
|
+
margin: u ? g === "left" ? "1em 1em 1em 0" : "1em 0 1em 1em" : void 0,
|
|
3566
|
+
display: p ? "inline" : "block",
|
|
3567
|
+
textAlign: u ? void 0 : g,
|
|
3568
|
+
width: ((H = k.style) == null ? void 0 : H.width) ?? "auto",
|
|
3692
3569
|
...u ? {} : b
|
|
3693
3570
|
},
|
|
3694
|
-
children: /* @__PURE__ */
|
|
3571
|
+
children: /* @__PURE__ */ C(
|
|
3695
3572
|
"div",
|
|
3696
3573
|
{
|
|
3697
3574
|
"data-drag-handle": !0,
|
|
@@ -3706,18 +3583,18 @@ function Io(e) {
|
|
|
3706
3583
|
className: "image-view__body__image block",
|
|
3707
3584
|
height: "auto",
|
|
3708
3585
|
onClick: f,
|
|
3709
|
-
onLoad:
|
|
3586
|
+
onLoad: z,
|
|
3710
3587
|
src: k.src,
|
|
3711
3588
|
style: k.style
|
|
3712
3589
|
}
|
|
3713
3590
|
),
|
|
3714
|
-
(e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || l) && /* @__PURE__ */ n("div", { className: "image-resizer", children: a == null ? void 0 : a.map((
|
|
3591
|
+
(e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || l) && /* @__PURE__ */ n("div", { className: "image-resizer", children: a == null ? void 0 : a.map((M) => /* @__PURE__ */ n(
|
|
3715
3592
|
"span",
|
|
3716
3593
|
{
|
|
3717
|
-
className: `image-resizer__handler image-resizer__handler--${
|
|
3718
|
-
onMouseDown: (
|
|
3594
|
+
className: `image-resizer__handler image-resizer__handler--${M}`,
|
|
3595
|
+
onMouseDown: (w) => h(w, M)
|
|
3719
3596
|
},
|
|
3720
|
-
`image-dir-${
|
|
3597
|
+
`image-dir-${M}`
|
|
3721
3598
|
)) })
|
|
3722
3599
|
]
|
|
3723
3600
|
}
|
|
@@ -3725,12 +3602,12 @@ function Io(e) {
|
|
|
3725
3602
|
}
|
|
3726
3603
|
);
|
|
3727
3604
|
}
|
|
3728
|
-
function
|
|
3729
|
-
const { editor: t } =
|
|
3605
|
+
function yo(e) {
|
|
3606
|
+
const { editor: t } = di(), r = U.useMemo(
|
|
3730
3607
|
() => t,
|
|
3731
3608
|
[e, t]
|
|
3732
3609
|
);
|
|
3733
|
-
return
|
|
3610
|
+
return ui({
|
|
3734
3611
|
editor: r,
|
|
3735
3612
|
selector(o) {
|
|
3736
3613
|
return o.editor ? {
|
|
@@ -3745,23 +3622,23 @@ function Lo(e) {
|
|
|
3745
3622
|
}
|
|
3746
3623
|
}) || { editor: null };
|
|
3747
3624
|
}
|
|
3748
|
-
function
|
|
3749
|
-
return
|
|
3625
|
+
function ee() {
|
|
3626
|
+
return yo().editor;
|
|
3750
3627
|
}
|
|
3751
|
-
const
|
|
3752
|
-
function
|
|
3753
|
-
return
|
|
3628
|
+
const Et = jt(!1);
|
|
3629
|
+
function Rt() {
|
|
3630
|
+
return _t(Et);
|
|
3754
3631
|
}
|
|
3755
|
-
function
|
|
3756
|
-
return
|
|
3632
|
+
function Xo() {
|
|
3633
|
+
return Ut(Et);
|
|
3757
3634
|
}
|
|
3758
|
-
const
|
|
3759
|
-
function
|
|
3760
|
-
const t =
|
|
3635
|
+
const Vt = () => !1;
|
|
3636
|
+
function Yo(e = Vt) {
|
|
3637
|
+
const t = Rt(), [r, i] = L(() => {
|
|
3761
3638
|
const s = e();
|
|
3762
3639
|
return typeof s == "boolean" ? !s : s;
|
|
3763
|
-
}), o =
|
|
3764
|
-
|
|
3640
|
+
}), o = ee();
|
|
3641
|
+
ze(() => {
|
|
3765
3642
|
if (!o || !e) return;
|
|
3766
3643
|
const s = () => {
|
|
3767
3644
|
const c = e();
|
|
@@ -3771,7 +3648,7 @@ function oa(e = _t) {
|
|
|
3771
3648
|
o.off("selectionUpdate", s), o.off("transaction", s);
|
|
3772
3649
|
};
|
|
3773
3650
|
}, [o, e]);
|
|
3774
|
-
const a =
|
|
3651
|
+
const a = B(() => !t || !o ? !0 : typeof r == "boolean" ? r : !1, [t, o, r]), l = B(() => !t || !o, [t, o]);
|
|
3775
3652
|
return {
|
|
3776
3653
|
disabled: a,
|
|
3777
3654
|
// can not action, opacity < 1
|
|
@@ -3780,9 +3657,9 @@ function oa(e = _t) {
|
|
|
3780
3657
|
editorDisabled: l
|
|
3781
3658
|
};
|
|
3782
3659
|
}
|
|
3783
|
-
function Ae(e =
|
|
3784
|
-
const t =
|
|
3785
|
-
|
|
3660
|
+
function Ae(e = Vt) {
|
|
3661
|
+
const t = Rt(), [r, i] = L({}), [o, a] = L(e()), l = ee();
|
|
3662
|
+
ze(() => {
|
|
3786
3663
|
if (!l || !e) return;
|
|
3787
3664
|
const d = () => {
|
|
3788
3665
|
a(e());
|
|
@@ -3791,7 +3668,7 @@ function Ae(e = _t) {
|
|
|
3791
3668
|
l.off("selectionUpdate", d);
|
|
3792
3669
|
};
|
|
3793
3670
|
}, [r, l, e]);
|
|
3794
|
-
const s =
|
|
3671
|
+
const s = B(() => !t || !l, [t, l]), c = B(() => !t || !l, [t, l]);
|
|
3795
3672
|
return {
|
|
3796
3673
|
disabled: s,
|
|
3797
3674
|
// can not action, opacity < 1
|
|
@@ -3802,44 +3679,44 @@ function Ae(e = _t) {
|
|
|
3802
3679
|
// force update
|
|
3803
3680
|
};
|
|
3804
3681
|
}
|
|
3805
|
-
function
|
|
3806
|
-
const t =
|
|
3807
|
-
return
|
|
3682
|
+
function le(e) {
|
|
3683
|
+
const t = ee();
|
|
3684
|
+
return B(() => t ? t.extensionManager.extensions.find(
|
|
3808
3685
|
(i) => i.name === e
|
|
3809
3686
|
) : null, [t, e]);
|
|
3810
3687
|
}
|
|
3811
|
-
function
|
|
3688
|
+
function qo(e, t, r) {
|
|
3812
3689
|
return e < t ? t : e > r ? r : e;
|
|
3813
3690
|
}
|
|
3814
|
-
const
|
|
3815
|
-
function
|
|
3691
|
+
const Co = (e) => typeof e == "number", ko = (e) => typeof e == "string", Mo = (e) => typeof e == "function";
|
|
3692
|
+
function zo(e, t = "px") {
|
|
3816
3693
|
if (!e) return e;
|
|
3817
|
-
const r =
|
|
3694
|
+
const r = Co(e) ? String(e) : e, i = Number.parseFloat(r), o = r.match(/[%a-z]+$/i), a = o ? o[0] : t;
|
|
3818
3695
|
return Number.isNaN(i) ? e : i + a;
|
|
3819
3696
|
}
|
|
3820
|
-
function
|
|
3697
|
+
function Zo(e, t) {
|
|
3821
3698
|
if (!e)
|
|
3822
3699
|
return !1;
|
|
3823
3700
|
const { extensions: r = [] } = (e == null ? void 0 : e.extensionManager) ?? {};
|
|
3824
3701
|
return !!r.find((o) => o.name === t);
|
|
3825
3702
|
}
|
|
3826
|
-
function
|
|
3827
|
-
return e.map((t) =>
|
|
3703
|
+
function Ko(e) {
|
|
3704
|
+
return e.map((t) => ko(t) ? { value: t, name: t } : t);
|
|
3828
3705
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const t =
|
|
3831
|
-
return
|
|
3706
|
+
function Dt(e) {
|
|
3707
|
+
const t = ee(), r = le(e), { t: i } = ne();
|
|
3708
|
+
return B(() => {
|
|
3832
3709
|
if (!t || !r || !i)
|
|
3833
3710
|
return null;
|
|
3834
3711
|
const { button: o } = r.options;
|
|
3835
|
-
return !o || !
|
|
3712
|
+
return !o || !Mo(o) ? null : o({
|
|
3836
3713
|
editor: t,
|
|
3837
3714
|
extension: r,
|
|
3838
3715
|
t: i
|
|
3839
3716
|
});
|
|
3840
3717
|
}, [t, r, i]);
|
|
3841
3718
|
}
|
|
3842
|
-
function
|
|
3719
|
+
function To(e, t) {
|
|
3843
3720
|
const r = e.type, i = e.name.toLowerCase(), o = i.split(".").pop();
|
|
3844
3721
|
if (!o) return !1;
|
|
3845
3722
|
const l = r || {
|
|
@@ -3862,10 +3739,10 @@ function Do(e, t) {
|
|
|
3862
3739
|
return l === s;
|
|
3863
3740
|
});
|
|
3864
3741
|
}
|
|
3865
|
-
function
|
|
3742
|
+
function Ge(e, t) {
|
|
3866
3743
|
const { acceptMimes: r, maxSize: i, t: o, toast: a } = t, l = [];
|
|
3867
3744
|
return (Array.isArray(e) ? e : Object.values(e)).forEach((c) => {
|
|
3868
|
-
if (!
|
|
3745
|
+
if (!To(c, r)) {
|
|
3869
3746
|
t.onError ? t.onError({
|
|
3870
3747
|
type: "type",
|
|
3871
3748
|
message: o("editor.upload.fileTypeNotSupported", {
|
|
@@ -3901,44 +3778,44 @@ function Ye(e, t) {
|
|
|
3901
3778
|
l.push(c);
|
|
3902
3779
|
}), l;
|
|
3903
3780
|
}
|
|
3904
|
-
function
|
|
3905
|
-
const { t: e } =
|
|
3906
|
-
async function
|
|
3907
|
-
var
|
|
3908
|
-
const
|
|
3909
|
-
if (!r || r.isDestroyed ||
|
|
3910
|
-
|
|
3781
|
+
function Jo() {
|
|
3782
|
+
const { t: e } = ne(), { toast: t } = Be(), r = ee(), i = Dt(Se.name), { icon: o, tooltip: a } = (i == null ? void 0 : i.componentProps) ?? {}, { editorDisabled: l } = Ae(), [s, c] = L(!1), [d, g] = L(!1), p = le(Se.name), [u, k] = L(""), [b, z] = L(""), f = xe(null), x = (p == null ? void 0 : p.options.defaultInline) || !1, [h, S] = L(x), m = B(() => (p == null ? void 0 : p.options) || Xe, [p]);
|
|
3783
|
+
async function D(N) {
|
|
3784
|
+
var M;
|
|
3785
|
+
const P = (M = N == null ? void 0 : N.target) == null ? void 0 : M.files;
|
|
3786
|
+
if (!r || r.isDestroyed || P.length === 0 || d) {
|
|
3787
|
+
N.target.value = "";
|
|
3911
3788
|
return;
|
|
3912
3789
|
}
|
|
3913
|
-
const
|
|
3790
|
+
const H = Ge(P, {
|
|
3914
3791
|
acceptMimes: m == null ? void 0 : m.acceptMimes,
|
|
3915
3792
|
maxSize: m == null ? void 0 : m.maxSize,
|
|
3916
3793
|
t: e,
|
|
3917
3794
|
toast: t,
|
|
3918
3795
|
onError: m.onError
|
|
3919
3796
|
});
|
|
3920
|
-
if (
|
|
3921
|
-
|
|
3797
|
+
if (H.length <= 0) {
|
|
3798
|
+
N.target.value = "";
|
|
3922
3799
|
return;
|
|
3923
3800
|
}
|
|
3924
|
-
|
|
3801
|
+
g(!0);
|
|
3925
3802
|
try {
|
|
3926
3803
|
if (m != null && m.multiple) {
|
|
3927
|
-
const
|
|
3804
|
+
const w = H.map(async (I) => {
|
|
3928
3805
|
let E = "";
|
|
3929
|
-
return m.upload ? E = await m.upload(
|
|
3806
|
+
return m.upload ? E = await m.upload(I) : E = URL.createObjectURL(I), E;
|
|
3930
3807
|
});
|
|
3931
|
-
(await Promise.all(
|
|
3932
|
-
r.chain().focus().setImageInline({ src:
|
|
3808
|
+
(await Promise.all(w)).forEach((I) => {
|
|
3809
|
+
r.chain().focus().setImageInline({ src: I, inline: h, alt: b }).run();
|
|
3933
3810
|
});
|
|
3934
3811
|
} else {
|
|
3935
|
-
const
|
|
3936
|
-
let
|
|
3937
|
-
m.upload ?
|
|
3812
|
+
const w = H[0];
|
|
3813
|
+
let y = "";
|
|
3814
|
+
m.upload ? y = await m.upload(w) : y = URL.createObjectURL(w), r.chain().focus().setImageInline({ src: y, inline: h, alt: b }).run();
|
|
3938
3815
|
}
|
|
3939
|
-
c(!1),
|
|
3940
|
-
} catch (
|
|
3941
|
-
console.error("Error uploading image",
|
|
3816
|
+
c(!1), z(""), S(x);
|
|
3817
|
+
} catch (w) {
|
|
3818
|
+
console.error("Error uploading image", w), m.onError ? m.onError({
|
|
3942
3819
|
type: "upload",
|
|
3943
3820
|
message: e("editor.upload.error")
|
|
3944
3821
|
}) : t({
|
|
@@ -3946,19 +3823,19 @@ function ca() {
|
|
|
3946
3823
|
title: e("editor.upload.error")
|
|
3947
3824
|
});
|
|
3948
3825
|
} finally {
|
|
3949
|
-
|
|
3826
|
+
g(!1), N.target.value = "";
|
|
3950
3827
|
}
|
|
3951
3828
|
}
|
|
3952
|
-
function
|
|
3953
|
-
|
|
3829
|
+
function v(N) {
|
|
3830
|
+
N.preventDefault(), N.stopPropagation(), r.chain().focus().setImageInline({ src: u, inline: h, alt: b }).run(), c(!1), S(x), k(""), z("");
|
|
3954
3831
|
}
|
|
3955
|
-
function
|
|
3956
|
-
var
|
|
3957
|
-
|
|
3832
|
+
function R(N) {
|
|
3833
|
+
var P;
|
|
3834
|
+
N.preventDefault(), (P = f.current) == null || P.click();
|
|
3958
3835
|
}
|
|
3959
|
-
return i ? /* @__PURE__ */
|
|
3960
|
-
/* @__PURE__ */ n(
|
|
3961
|
-
|
|
3836
|
+
return i ? /* @__PURE__ */ C(we, { onOpenChange: c, open: s, children: [
|
|
3837
|
+
/* @__PURE__ */ n(We, { asChild: !0, children: /* @__PURE__ */ n(
|
|
3838
|
+
wt,
|
|
3962
3839
|
{
|
|
3963
3840
|
disabled: l,
|
|
3964
3841
|
icon: o,
|
|
@@ -3968,58 +3845,58 @@ function ca() {
|
|
|
3968
3845
|
}
|
|
3969
3846
|
}
|
|
3970
3847
|
) }),
|
|
3971
|
-
/* @__PURE__ */
|
|
3972
|
-
/* @__PURE__ */ n(
|
|
3973
|
-
/* @__PURE__ */
|
|
3974
|
-
|
|
3848
|
+
/* @__PURE__ */ C(ae, { children: [
|
|
3849
|
+
/* @__PURE__ */ n(se, { children: e("editor.image.dialog.title") }),
|
|
3850
|
+
/* @__PURE__ */ C(
|
|
3851
|
+
Ne,
|
|
3975
3852
|
{
|
|
3976
3853
|
activationMode: "manual",
|
|
3977
3854
|
defaultValue: m.resourceImage === "both" || m.resourceImage === "upload" ? "upload" : "link",
|
|
3978
3855
|
children: [
|
|
3979
|
-
m.resourceImage === "both" && /* @__PURE__ */
|
|
3980
|
-
/* @__PURE__ */ n(
|
|
3981
|
-
/* @__PURE__ */ n(
|
|
3856
|
+
m.resourceImage === "both" && /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
|
|
3857
|
+
/* @__PURE__ */ n(q, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
|
|
3858
|
+
/* @__PURE__ */ n(q, { value: "link", children: e("editor.image.dialog.tab.url") })
|
|
3982
3859
|
] }),
|
|
3983
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ C("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
|
|
3984
3861
|
/* @__PURE__ */ n(
|
|
3985
|
-
|
|
3862
|
+
$e,
|
|
3986
3863
|
{
|
|
3987
3864
|
checked: h,
|
|
3988
|
-
onCheckedChange: (
|
|
3989
|
-
|
|
3865
|
+
onCheckedChange: (N) => {
|
|
3866
|
+
S(N);
|
|
3990
3867
|
}
|
|
3991
3868
|
}
|
|
3992
3869
|
),
|
|
3993
|
-
/* @__PURE__ */ n(
|
|
3870
|
+
/* @__PURE__ */ n(pe, { children: e("editor.link.dialog.inline") })
|
|
3994
3871
|
] }),
|
|
3995
|
-
m.enableAlt && /* @__PURE__ */
|
|
3996
|
-
/* @__PURE__ */ n(
|
|
3997
|
-
/* @__PURE__ */ n(
|
|
3872
|
+
m.enableAlt && /* @__PURE__ */ C("div", { className: "richtext-my-[10px]", children: [
|
|
3873
|
+
/* @__PURE__ */ n(pe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
|
|
3874
|
+
/* @__PURE__ */ n(te, { onChange: (N) => z(N.target.value), required: !0, type: "text", value: b })
|
|
3998
3875
|
] }),
|
|
3999
|
-
/* @__PURE__ */
|
|
4000
|
-
/* @__PURE__ */
|
|
3876
|
+
/* @__PURE__ */ C(Z, { value: "upload", children: [
|
|
3877
|
+
/* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
|
|
4001
3878
|
/* @__PURE__ */ n(
|
|
4002
|
-
|
|
3879
|
+
$,
|
|
4003
3880
|
{
|
|
4004
3881
|
className: "richtext-mt-1 richtext-w-full",
|
|
4005
3882
|
disabled: d,
|
|
4006
|
-
onClick:
|
|
3883
|
+
onClick: R,
|
|
4007
3884
|
size: "sm",
|
|
4008
|
-
children: d ? /* @__PURE__ */
|
|
3885
|
+
children: d ? /* @__PURE__ */ C(Y, { children: [
|
|
4009
3886
|
e("editor.imageUpload.uploading"),
|
|
4010
|
-
/* @__PURE__ */ n(
|
|
3887
|
+
/* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
|
|
4011
3888
|
] }) : e("editor.image.dialog.tab.upload")
|
|
4012
3889
|
}
|
|
4013
3890
|
),
|
|
4014
3891
|
/* @__PURE__ */ n(
|
|
4015
|
-
|
|
3892
|
+
Ht,
|
|
4016
3893
|
{
|
|
4017
3894
|
alt: b,
|
|
4018
3895
|
disabled: d,
|
|
4019
3896
|
editor: r,
|
|
4020
3897
|
imageInline: h,
|
|
4021
3898
|
onClose: () => {
|
|
4022
|
-
|
|
3899
|
+
z("");
|
|
4023
3900
|
}
|
|
4024
3901
|
}
|
|
4025
3902
|
)
|
|
@@ -4029,34 +3906,34 @@ function ca() {
|
|
|
4029
3906
|
{
|
|
4030
3907
|
accept: m.acceptMimes.join(",") || "image/*",
|
|
4031
3908
|
multiple: m.multiple,
|
|
4032
|
-
onChange:
|
|
3909
|
+
onChange: D,
|
|
4033
3910
|
ref: f,
|
|
4034
3911
|
style: { display: "none" },
|
|
4035
3912
|
type: "file"
|
|
4036
3913
|
}
|
|
4037
3914
|
)
|
|
4038
3915
|
] }),
|
|
4039
|
-
/* @__PURE__ */ n(
|
|
3916
|
+
/* @__PURE__ */ n(Z, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: v, children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
|
|
4040
3917
|
/* @__PURE__ */ n(
|
|
4041
|
-
|
|
3918
|
+
te,
|
|
4042
3919
|
{
|
|
4043
3920
|
autoFocus: !0,
|
|
4044
|
-
onChange: (
|
|
3921
|
+
onChange: (N) => k(N.target.value),
|
|
4045
3922
|
placeholder: e("editor.image.dialog.placeholder"),
|
|
4046
3923
|
required: !0,
|
|
4047
3924
|
type: "url",
|
|
4048
3925
|
value: u
|
|
4049
3926
|
}
|
|
4050
3927
|
),
|
|
4051
|
-
/* @__PURE__ */ n(
|
|
3928
|
+
/* @__PURE__ */ n($, { type: "submit", children: e("editor.image.dialog.button.apply") })
|
|
4052
3929
|
] }) }) })
|
|
4053
3930
|
]
|
|
4054
3931
|
}
|
|
4055
3932
|
)
|
|
4056
3933
|
] })
|
|
4057
|
-
] }) : /* @__PURE__ */ n(
|
|
3934
|
+
] }) : /* @__PURE__ */ n(Y, {});
|
|
4058
3935
|
}
|
|
4059
|
-
const
|
|
3936
|
+
const Xe = {
|
|
4060
3937
|
acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
|
|
4061
3938
|
maxSize: 1024 * 1024 * 5,
|
|
4062
3939
|
// 5MB
|
|
@@ -4064,7 +3941,7 @@ const qe = {
|
|
|
4064
3941
|
resourceImage: "both",
|
|
4065
3942
|
defaultInline: !1,
|
|
4066
3943
|
enableAlt: !0
|
|
4067
|
-
},
|
|
3944
|
+
}, Se = /* @__PURE__ */ Fn.extend({
|
|
4068
3945
|
group: "inline",
|
|
4069
3946
|
inline: !0,
|
|
4070
3947
|
defining: !0,
|
|
@@ -4073,7 +3950,7 @@ const qe = {
|
|
|
4073
3950
|
addOptions() {
|
|
4074
3951
|
var e;
|
|
4075
3952
|
return {
|
|
4076
|
-
...
|
|
3953
|
+
...Xe,
|
|
4077
3954
|
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
4078
3955
|
upload: () => Promise.reject("Image Upload Function"),
|
|
4079
3956
|
button: ({
|
|
@@ -4139,7 +4016,7 @@ const qe = {
|
|
|
4139
4016
|
};
|
|
4140
4017
|
},
|
|
4141
4018
|
addNodeView() {
|
|
4142
|
-
return
|
|
4019
|
+
return hi(wo);
|
|
4143
4020
|
},
|
|
4144
4021
|
addCommands() {
|
|
4145
4022
|
var e;
|
|
@@ -4157,7 +4034,7 @@ const qe = {
|
|
|
4157
4034
|
};
|
|
4158
4035
|
},
|
|
4159
4036
|
renderHTML({ HTMLAttributes: e }) {
|
|
4160
|
-
const { flipX: t, flipY: r, align: i, inline: o } = e, a = o && (i === "left" || i === "right"), l = t || r ? `transform: rotateX(${t ? "180" : "0"}deg) rotateY(${r ? "180" : "0"}deg);` : "", s = a ? "" : `text-align: ${i};`,
|
|
4037
|
+
const { flipX: t, flipY: r, align: i, inline: o } = e, a = o && (i === "left" || i === "right"), l = t || r ? `transform: rotateX(${t ? "180" : "0"}deg) rotateY(${r ? "180" : "0"}deg);` : "", s = a ? "" : `text-align: ${i};`, g = `${a ? `float: ${i};` : ""}${a ? i === "left" ? "margin: 1em 1em 1em 0;" : "margin: 1em 0 1em 1em;" : ""}${l}`;
|
|
4161
4038
|
return [
|
|
4162
4039
|
o ? "span" : "div",
|
|
4163
4040
|
{
|
|
@@ -4166,10 +4043,10 @@ const qe = {
|
|
|
4166
4043
|
},
|
|
4167
4044
|
[
|
|
4168
4045
|
"img",
|
|
4169
|
-
|
|
4046
|
+
ut(
|
|
4170
4047
|
{
|
|
4171
4048
|
height: "auto",
|
|
4172
|
-
style:
|
|
4049
|
+
style: g
|
|
4173
4050
|
},
|
|
4174
4051
|
this.options.HTMLAttributes,
|
|
4175
4052
|
e
|
|
@@ -4273,19 +4150,19 @@ const qe = {
|
|
|
4273
4150
|
// ];
|
|
4274
4151
|
// },
|
|
4275
4152
|
});
|
|
4276
|
-
function
|
|
4153
|
+
function Qo(e) {
|
|
4277
4154
|
return e.replace(/^.*\/|\..+$/g, "");
|
|
4278
4155
|
}
|
|
4279
|
-
function
|
|
4156
|
+
function ea(e) {
|
|
4280
4157
|
return e.split(".").pop();
|
|
4281
4158
|
}
|
|
4282
|
-
function
|
|
4159
|
+
function ta(e) {
|
|
4283
4160
|
return e < 1024 ? `${e} Byte` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`;
|
|
4284
4161
|
}
|
|
4285
|
-
function
|
|
4162
|
+
function ra(e) {
|
|
4286
4163
|
return e ? e === "application/pdf" ? "pdf" : e.startsWith("application/") && [".document", "word"].some((t) => e.includes(t)) ? "word" : e.startsWith("application/") && ["presentation"].some((t) => e.includes(t)) ? "excel" : e.startsWith("application/") && ["sheet"].some((t) => e.includes(t)) ? "ppt" : e.startsWith("image") ? "image" : e.startsWith("audio") ? "audio" : e.startsWith("video") ? "video" : "file" : "file";
|
|
4287
4164
|
}
|
|
4288
|
-
function
|
|
4165
|
+
function Io(e) {
|
|
4289
4166
|
return new Promise((t) => {
|
|
4290
4167
|
const r = new FileReader();
|
|
4291
4168
|
r.addEventListener(
|
|
@@ -4300,7 +4177,7 @@ function Ho(e) {
|
|
|
4300
4177
|
), r.readAsDataURL(e);
|
|
4301
4178
|
});
|
|
4302
4179
|
}
|
|
4303
|
-
function
|
|
4180
|
+
function So(e, t) {
|
|
4304
4181
|
const r = e.split(","), i = r[0].match(/:(.*?);/)[1], o = atob(r[r.length - 1]);
|
|
4305
4182
|
let a = o.length;
|
|
4306
4183
|
const l = new Uint8Array(a);
|
|
@@ -4308,49 +4185,49 @@ function jo(e, t) {
|
|
|
4308
4185
|
l[a] = o.charCodeAt(a);
|
|
4309
4186
|
return new File([l], t, { type: i });
|
|
4310
4187
|
}
|
|
4311
|
-
function
|
|
4312
|
-
var
|
|
4313
|
-
const { t: a } =
|
|
4188
|
+
function Ht({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
|
|
4189
|
+
var M, w;
|
|
4190
|
+
const { t: a } = ne(), { toast: l } = Be(), [s, c] = L(!1), [d, g] = L(!1), p = Q.useRef(null), [u, k] = Q.useState(), [b, z] = Q.useState(""), f = xe(null), [x, h] = L({
|
|
4314
4191
|
src: "",
|
|
4315
4192
|
file: null
|
|
4316
|
-
}),
|
|
4317
|
-
function
|
|
4318
|
-
if (
|
|
4319
|
-
const
|
|
4320
|
-
|
|
4193
|
+
}), S = le(Se.name), m = B(() => (S == null ? void 0 : S.options) ?? {}, [S]);
|
|
4194
|
+
function D(y) {
|
|
4195
|
+
if (p.current && y.width && y.height) {
|
|
4196
|
+
const I = v(p.current, y);
|
|
4197
|
+
z(I);
|
|
4321
4198
|
}
|
|
4322
4199
|
}
|
|
4323
|
-
function
|
|
4324
|
-
const E = document.createElement("canvas"),
|
|
4325
|
-
E.width =
|
|
4326
|
-
const
|
|
4327
|
-
return
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4200
|
+
function v(y, I) {
|
|
4201
|
+
const E = document.createElement("canvas"), A = y.naturalWidth / y.width, j = y.naturalHeight / y.height;
|
|
4202
|
+
E.width = I.width * A, E.height = I.height * j;
|
|
4203
|
+
const O = E.getContext("2d");
|
|
4204
|
+
return O && (O.imageSmoothingEnabled = !1, O.drawImage(
|
|
4205
|
+
y,
|
|
4206
|
+
I.x * A,
|
|
4207
|
+
I.y * j,
|
|
4208
|
+
I.width * A,
|
|
4209
|
+
I.height * j,
|
|
4333
4210
|
0,
|
|
4334
4211
|
0,
|
|
4335
|
-
|
|
4336
|
-
|
|
4212
|
+
I.width * A,
|
|
4213
|
+
I.height * j
|
|
4337
4214
|
)), E.toDataURL("image/png", 1);
|
|
4338
4215
|
}
|
|
4339
|
-
const
|
|
4340
|
-
var
|
|
4216
|
+
const R = Q.useCallback(async () => {
|
|
4217
|
+
var y;
|
|
4341
4218
|
if (!d) {
|
|
4342
|
-
|
|
4219
|
+
g(!0);
|
|
4343
4220
|
try {
|
|
4344
|
-
const
|
|
4221
|
+
const I = So(b, ((y = x == null ? void 0 : x.file) == null ? void 0 : y.name) || "image.png");
|
|
4345
4222
|
let E = "";
|
|
4346
|
-
m.upload ? E = await m.upload(
|
|
4223
|
+
m.upload ? E = await m.upload(I) : E = URL.createObjectURL(I), e.chain().focus().setImageInline({ src: E, inline: t, alt: o }).run(), c(!1), h({
|
|
4347
4224
|
src: "",
|
|
4348
4225
|
file: null
|
|
4349
|
-
}),
|
|
4350
|
-
} catch (
|
|
4351
|
-
console.error("Error cropping image",
|
|
4226
|
+
}), H(), r();
|
|
4227
|
+
} catch (I) {
|
|
4228
|
+
console.error("Error cropping image", I);
|
|
4352
4229
|
} finally {
|
|
4353
|
-
|
|
4230
|
+
g(!1);
|
|
4354
4231
|
}
|
|
4355
4232
|
}
|
|
4356
4233
|
}, [
|
|
@@ -4359,21 +4236,21 @@ function Bt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
|
|
|
4359
4236
|
t,
|
|
4360
4237
|
d,
|
|
4361
4238
|
r,
|
|
4362
|
-
(
|
|
4239
|
+
(M = x == null ? void 0 : x.file) == null ? void 0 : M.name,
|
|
4363
4240
|
m
|
|
4364
4241
|
]);
|
|
4365
|
-
function
|
|
4366
|
-
var
|
|
4367
|
-
|
|
4242
|
+
function N(y) {
|
|
4243
|
+
var I;
|
|
4244
|
+
y.preventDefault(), (I = f.current) == null || I.click();
|
|
4368
4245
|
}
|
|
4369
|
-
const
|
|
4370
|
-
var
|
|
4371
|
-
const
|
|
4372
|
-
if (!e || e.isDestroyed ||
|
|
4373
|
-
|
|
4246
|
+
const P = async (y) => {
|
|
4247
|
+
var O;
|
|
4248
|
+
const I = (O = y == null ? void 0 : y.target) == null ? void 0 : O.files;
|
|
4249
|
+
if (!e || e.isDestroyed || I.length === 0) {
|
|
4250
|
+
y.target.value = "";
|
|
4374
4251
|
return;
|
|
4375
4252
|
}
|
|
4376
|
-
const E =
|
|
4253
|
+
const E = Ge(I, {
|
|
4377
4254
|
acceptMimes: m == null ? void 0 : m.acceptMimes,
|
|
4378
4255
|
maxSize: m == null ? void 0 : m.maxSize,
|
|
4379
4256
|
t: a,
|
|
@@ -4381,72 +4258,72 @@ function Bt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
|
|
|
4381
4258
|
onError: m.onError
|
|
4382
4259
|
});
|
|
4383
4260
|
if (E.length <= 0) {
|
|
4384
|
-
|
|
4261
|
+
y.target.value = "";
|
|
4385
4262
|
return;
|
|
4386
4263
|
}
|
|
4387
|
-
const
|
|
4264
|
+
const A = E[0], j = await Io(A);
|
|
4388
4265
|
c(!0), h({
|
|
4389
|
-
src:
|
|
4390
|
-
file:
|
|
4266
|
+
src: j.src,
|
|
4267
|
+
file: A
|
|
4391
4268
|
});
|
|
4392
|
-
},
|
|
4269
|
+
}, H = () => {
|
|
4393
4270
|
f.current && (f.current.value = "");
|
|
4394
4271
|
};
|
|
4395
|
-
return /* @__PURE__ */
|
|
4272
|
+
return /* @__PURE__ */ C(Y, { children: [
|
|
4396
4273
|
/* @__PURE__ */ n(
|
|
4397
|
-
|
|
4274
|
+
$,
|
|
4398
4275
|
{
|
|
4399
4276
|
className: "richtext-mt-1 richtext-w-full",
|
|
4400
4277
|
disabled: i,
|
|
4401
|
-
onClick:
|
|
4278
|
+
onClick: N,
|
|
4402
4279
|
size: "sm",
|
|
4403
4280
|
children: a("editor.image.dialog.tab.uploadCrop")
|
|
4404
4281
|
}
|
|
4405
4282
|
),
|
|
4406
|
-
/* @__PURE__ */
|
|
4407
|
-
|
|
4283
|
+
/* @__PURE__ */ C(
|
|
4284
|
+
we,
|
|
4408
4285
|
{
|
|
4409
4286
|
open: s,
|
|
4410
|
-
onOpenChange: (
|
|
4411
|
-
c(
|
|
4287
|
+
onOpenChange: (y) => {
|
|
4288
|
+
c(y), y || (h({ src: "", file: null }), H());
|
|
4412
4289
|
},
|
|
4413
4290
|
children: [
|
|
4414
|
-
/* @__PURE__ */ n(
|
|
4415
|
-
/* @__PURE__ */
|
|
4416
|
-
/* @__PURE__ */ n(
|
|
4291
|
+
/* @__PURE__ */ n(We, {}),
|
|
4292
|
+
/* @__PURE__ */ C(ae, { children: [
|
|
4293
|
+
/* @__PURE__ */ n(se, { children: a("editor.image.dialog.tab.uploadCrop") }),
|
|
4417
4294
|
/* @__PURE__ */ n("div", { children: x.src && /* @__PURE__ */ n(
|
|
4418
|
-
|
|
4295
|
+
yi,
|
|
4419
4296
|
{
|
|
4420
4297
|
className: "richtext-w-full",
|
|
4421
4298
|
crop: u,
|
|
4422
|
-
onChange: (
|
|
4423
|
-
onComplete: (
|
|
4424
|
-
children: /* @__PURE__ */ n("img", { alt: "Crop me", ref:
|
|
4299
|
+
onChange: (y) => k(y),
|
|
4300
|
+
onComplete: (y) => D(y),
|
|
4301
|
+
children: /* @__PURE__ */ n("img", { alt: "Crop me", ref: p, src: x.src })
|
|
4425
4302
|
}
|
|
4426
4303
|
) }),
|
|
4427
|
-
/* @__PURE__ */
|
|
4428
|
-
/* @__PURE__ */
|
|
4429
|
-
|
|
4304
|
+
/* @__PURE__ */ C(It, { children: [
|
|
4305
|
+
/* @__PURE__ */ C(
|
|
4306
|
+
$,
|
|
4430
4307
|
{
|
|
4431
4308
|
disabled: d,
|
|
4432
4309
|
onClick: () => {
|
|
4433
4310
|
c(!1), h({
|
|
4434
4311
|
src: "",
|
|
4435
4312
|
file: null
|
|
4436
|
-
}),
|
|
4313
|
+
}), H();
|
|
4437
4314
|
},
|
|
4438
4315
|
children: [
|
|
4439
4316
|
a("editor.imageUpload.cancel"),
|
|
4440
|
-
/* @__PURE__ */ n(
|
|
4317
|
+
/* @__PURE__ */ n(fe, { className: "richtext-ml-1", name: "Trash2" })
|
|
4441
4318
|
]
|
|
4442
4319
|
}
|
|
4443
4320
|
),
|
|
4444
|
-
/* @__PURE__ */ n(
|
|
4321
|
+
/* @__PURE__ */ n($, { className: "richtext-w-fit", disabled: d || !u, onClick: R, children: d ? /* @__PURE__ */ C(Y, { children: [
|
|
4445
4322
|
a("editor.imageUpload.uploading"),
|
|
4446
|
-
/* @__PURE__ */ n(
|
|
4447
|
-
] }) : /* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
|
|
4324
|
+
] }) : /* @__PURE__ */ C(Y, { children: [
|
|
4448
4325
|
a("editor.imageUpload.crop"),
|
|
4449
|
-
/* @__PURE__ */ n(
|
|
4326
|
+
/* @__PURE__ */ n(fe, { className: "richtext-ml-1", name: "Crop" })
|
|
4450
4327
|
] }) })
|
|
4451
4328
|
] })
|
|
4452
4329
|
] })
|
|
@@ -4456,9 +4333,9 @@ function Bt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
|
|
|
4456
4333
|
/* @__PURE__ */ n(
|
|
4457
4334
|
"input",
|
|
4458
4335
|
{
|
|
4459
|
-
accept: ((
|
|
4336
|
+
accept: ((w = m == null ? void 0 : m.acceptMimes) == null ? void 0 : w.join(",")) || "image/*",
|
|
4460
4337
|
multiple: !1,
|
|
4461
|
-
onChange:
|
|
4338
|
+
onChange: P,
|
|
4462
4339
|
ref: f,
|
|
4463
4340
|
style: { display: "none" },
|
|
4464
4341
|
type: "file"
|
|
@@ -4466,51 +4343,51 @@ function Bt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
|
|
|
4466
4343
|
)
|
|
4467
4344
|
] });
|
|
4468
4345
|
}
|
|
4469
|
-
const
|
|
4346
|
+
const Ot = {
|
|
4470
4347
|
UPLOAD_IMAGE: (e) => `UPLOAD_IMAGE-${e}`,
|
|
4471
4348
|
UPLOAD_VIDEO: (e) => `UPLOAD_VIDEO-${e}`,
|
|
4472
4349
|
EXCALIDRAW: (e) => `EXCALIDRAW-${e}`
|
|
4473
4350
|
};
|
|
4474
|
-
function
|
|
4475
|
-
const { t: e } =
|
|
4476
|
-
|
|
4477
|
-
const [s, c] =
|
|
4478
|
-
async function
|
|
4479
|
-
var
|
|
4480
|
-
const
|
|
4481
|
-
if (!r || r.isDestroyed ||
|
|
4482
|
-
|
|
4351
|
+
function No() {
|
|
4352
|
+
const { t: e } = ne(), { toast: t } = Be(), r = ee(), { editorDisabled: i } = Ae(), [o, a] = L(!1), l = Ot.UPLOAD_IMAGE(r.id);
|
|
4353
|
+
zt(a, [l]);
|
|
4354
|
+
const [s, c] = L(!1), d = le(Se.name), [g, p] = L(""), [u, k] = L(""), b = xe(null), z = (d == null ? void 0 : d.options.defaultInline) || !1, [f, x] = L(z), h = B(() => (d == null ? void 0 : d.options) || Xe, [d]);
|
|
4355
|
+
async function S(v) {
|
|
4356
|
+
var P;
|
|
4357
|
+
const R = (P = v == null ? void 0 : v.target) == null ? void 0 : P.files;
|
|
4358
|
+
if (!r || r.isDestroyed || R.length === 0 || s) {
|
|
4359
|
+
v.target.value = "";
|
|
4483
4360
|
return;
|
|
4484
4361
|
}
|
|
4485
|
-
const
|
|
4362
|
+
const N = Ge(R, {
|
|
4486
4363
|
acceptMimes: h == null ? void 0 : h.acceptMimes,
|
|
4487
4364
|
maxSize: h == null ? void 0 : h.maxSize,
|
|
4488
4365
|
t: e,
|
|
4489
4366
|
toast: t,
|
|
4490
4367
|
onError: h.onError
|
|
4491
4368
|
});
|
|
4492
|
-
if (
|
|
4493
|
-
|
|
4369
|
+
if (N.length <= 0) {
|
|
4370
|
+
v.target.value = "";
|
|
4494
4371
|
return;
|
|
4495
4372
|
}
|
|
4496
4373
|
c(!0);
|
|
4497
4374
|
try {
|
|
4498
4375
|
if (h != null && h.multiple) {
|
|
4499
|
-
const
|
|
4500
|
-
let
|
|
4501
|
-
return h.upload ?
|
|
4376
|
+
const H = N.map(async (w) => {
|
|
4377
|
+
let y = "";
|
|
4378
|
+
return h.upload ? y = await h.upload(w) : y = URL.createObjectURL(w), y;
|
|
4502
4379
|
});
|
|
4503
|
-
(await Promise.all(
|
|
4504
|
-
r.chain().focus().setImageInline({ src:
|
|
4380
|
+
(await Promise.all(H)).forEach((w) => {
|
|
4381
|
+
r.chain().focus().setImageInline({ src: w, inline: f, alt: u }).run();
|
|
4505
4382
|
});
|
|
4506
4383
|
} else {
|
|
4507
|
-
const
|
|
4508
|
-
let
|
|
4509
|
-
h.upload ?
|
|
4384
|
+
const H = N[0];
|
|
4385
|
+
let M = "";
|
|
4386
|
+
h.upload ? M = await h.upload(H) : M = URL.createObjectURL(H), r.chain().focus().setImageInline({ src: M, inline: f, alt: u }).run();
|
|
4510
4387
|
}
|
|
4511
|
-
a(!1), k(""), x(
|
|
4512
|
-
} catch (
|
|
4513
|
-
console.error("Error uploading image",
|
|
4388
|
+
a(!1), k(""), x(z);
|
|
4389
|
+
} catch (H) {
|
|
4390
|
+
console.error("Error uploading image", H), h.onError ? h.onError({
|
|
4514
4391
|
type: "upload",
|
|
4515
4392
|
message: e("editor.upload.error")
|
|
4516
4393
|
}) : t({
|
|
@@ -4518,61 +4395,61 @@ function Oo() {
|
|
|
4518
4395
|
title: e("editor.upload.error")
|
|
4519
4396
|
});
|
|
4520
4397
|
} finally {
|
|
4521
|
-
c(!1),
|
|
4398
|
+
c(!1), v.target.value = "";
|
|
4522
4399
|
}
|
|
4523
4400
|
}
|
|
4524
|
-
function m(
|
|
4525
|
-
|
|
4401
|
+
function m(v) {
|
|
4402
|
+
v.preventDefault(), v.stopPropagation(), r.chain().focus().setImageInline({ src: g, inline: f, alt: u }).run(), a(!1), x(z), p(""), k("");
|
|
4526
4403
|
}
|
|
4527
|
-
function
|
|
4528
|
-
var
|
|
4529
|
-
|
|
4404
|
+
function D(v) {
|
|
4405
|
+
var R;
|
|
4406
|
+
v.preventDefault(), (R = b.current) == null || R.click();
|
|
4530
4407
|
}
|
|
4531
|
-
return i ? /* @__PURE__ */ n(
|
|
4532
|
-
/* @__PURE__ */ n(
|
|
4533
|
-
/* @__PURE__ */
|
|
4534
|
-
|
|
4408
|
+
return i ? /* @__PURE__ */ n(Y, {}) : /* @__PURE__ */ n(we, { onOpenChange: a, open: o, children: /* @__PURE__ */ C(ae, { children: [
|
|
4409
|
+
/* @__PURE__ */ n(se, { children: e("editor.image.dialog.title") }),
|
|
4410
|
+
/* @__PURE__ */ C(
|
|
4411
|
+
Ne,
|
|
4535
4412
|
{
|
|
4536
4413
|
activationMode: "manual",
|
|
4537
4414
|
defaultValue: h.resourceImage === "both" || h.resourceImage === "upload" ? "upload" : "link",
|
|
4538
4415
|
children: [
|
|
4539
|
-
h.resourceImage === "both" && /* @__PURE__ */
|
|
4540
|
-
/* @__PURE__ */ n(
|
|
4541
|
-
/* @__PURE__ */ n(
|
|
4416
|
+
h.resourceImage === "both" && /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
|
|
4417
|
+
/* @__PURE__ */ n(q, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
|
|
4418
|
+
/* @__PURE__ */ n(q, { value: "link", children: e("editor.image.dialog.tab.url") })
|
|
4542
4419
|
] }),
|
|
4543
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ C("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
|
|
4544
4421
|
/* @__PURE__ */ n(
|
|
4545
|
-
|
|
4422
|
+
$e,
|
|
4546
4423
|
{
|
|
4547
4424
|
checked: f,
|
|
4548
|
-
onCheckedChange: (
|
|
4549
|
-
x(
|
|
4425
|
+
onCheckedChange: (v) => {
|
|
4426
|
+
x(v);
|
|
4550
4427
|
}
|
|
4551
4428
|
}
|
|
4552
4429
|
),
|
|
4553
|
-
/* @__PURE__ */ n(
|
|
4430
|
+
/* @__PURE__ */ n(pe, { children: e("editor.link.dialog.inline") })
|
|
4554
4431
|
] }),
|
|
4555
|
-
h.enableAlt && /* @__PURE__ */
|
|
4556
|
-
/* @__PURE__ */ n(
|
|
4557
|
-
/* @__PURE__ */ n(
|
|
4432
|
+
h.enableAlt && /* @__PURE__ */ C("div", { className: "richtext-my-[10px]", children: [
|
|
4433
|
+
/* @__PURE__ */ n(pe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
|
|
4434
|
+
/* @__PURE__ */ n(te, { onChange: (v) => k(v.target.value), required: !0, type: "text", value: u })
|
|
4558
4435
|
] }),
|
|
4559
|
-
/* @__PURE__ */
|
|
4560
|
-
/* @__PURE__ */
|
|
4436
|
+
/* @__PURE__ */ C(Z, { value: "upload", children: [
|
|
4437
|
+
/* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
|
|
4561
4438
|
/* @__PURE__ */ n(
|
|
4562
|
-
|
|
4439
|
+
$,
|
|
4563
4440
|
{
|
|
4564
4441
|
className: "richtext-mt-1 richtext-w-full",
|
|
4565
4442
|
disabled: s,
|
|
4566
|
-
onClick:
|
|
4443
|
+
onClick: D,
|
|
4567
4444
|
size: "sm",
|
|
4568
|
-
children: s ? /* @__PURE__ */
|
|
4445
|
+
children: s ? /* @__PURE__ */ C(Y, { children: [
|
|
4569
4446
|
e("editor.imageUpload.uploading"),
|
|
4570
|
-
/* @__PURE__ */ n(
|
|
4447
|
+
/* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
|
|
4571
4448
|
] }) : e("editor.image.dialog.tab.upload")
|
|
4572
4449
|
}
|
|
4573
4450
|
),
|
|
4574
4451
|
/* @__PURE__ */ n(
|
|
4575
|
-
|
|
4452
|
+
Ht,
|
|
4576
4453
|
{
|
|
4577
4454
|
alt: u,
|
|
4578
4455
|
disabled: s,
|
|
@@ -4589,33 +4466,33 @@ function Oo() {
|
|
|
4589
4466
|
{
|
|
4590
4467
|
accept: h.acceptMimes.join(",") || "image/*",
|
|
4591
4468
|
multiple: h.multiple,
|
|
4592
|
-
onChange:
|
|
4469
|
+
onChange: S,
|
|
4593
4470
|
ref: b,
|
|
4594
4471
|
style: { display: "none" },
|
|
4595
4472
|
type: "file"
|
|
4596
4473
|
}
|
|
4597
4474
|
)
|
|
4598
4475
|
] }),
|
|
4599
|
-
/* @__PURE__ */ n(
|
|
4476
|
+
/* @__PURE__ */ n(Z, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: m, children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
|
|
4600
4477
|
/* @__PURE__ */ n(
|
|
4601
|
-
|
|
4478
|
+
te,
|
|
4602
4479
|
{
|
|
4603
4480
|
autoFocus: !0,
|
|
4604
|
-
onChange: (
|
|
4481
|
+
onChange: (v) => p(v.target.value),
|
|
4605
4482
|
placeholder: e("editor.image.dialog.placeholder"),
|
|
4606
4483
|
required: !0,
|
|
4607
4484
|
type: "url",
|
|
4608
|
-
value:
|
|
4485
|
+
value: g
|
|
4609
4486
|
}
|
|
4610
4487
|
),
|
|
4611
|
-
/* @__PURE__ */ n(
|
|
4488
|
+
/* @__PURE__ */ n($, { type: "submit", children: e("editor.image.dialog.button.apply") })
|
|
4612
4489
|
] }) }) })
|
|
4613
4490
|
]
|
|
4614
4491
|
}
|
|
4615
4492
|
)
|
|
4616
4493
|
] }) });
|
|
4617
4494
|
}
|
|
4618
|
-
function
|
|
4495
|
+
function Pt(e, t) {
|
|
4619
4496
|
let r;
|
|
4620
4497
|
try {
|
|
4621
4498
|
r = new URL(e);
|
|
@@ -4630,17 +4507,17 @@ function Ft(e, t) {
|
|
|
4630
4507
|
return r.hostname.includes(i);
|
|
4631
4508
|
});
|
|
4632
4509
|
}
|
|
4633
|
-
function
|
|
4634
|
-
const { t: e } =
|
|
4635
|
-
async function
|
|
4636
|
-
var
|
|
4637
|
-
const
|
|
4638
|
-
if (!t || t.isDestroyed ||
|
|
4510
|
+
function ia() {
|
|
4511
|
+
const { t: e } = ne(), t = ee(), r = Dt(je.name), { icon: i, tooltip: o } = (r == null ? void 0 : r.componentProps) ?? {}, { editorDisabled: a } = Ae(), [l, s] = L(""), c = xe(null), [d, g] = L(""), [p, u] = L(!1), k = le(je.name), b = B(() => (k == null ? void 0 : k.options) ?? {}, [k]);
|
|
4512
|
+
async function z(h) {
|
|
4513
|
+
var v;
|
|
4514
|
+
const S = (v = h == null ? void 0 : h.target) == null ? void 0 : v.files;
|
|
4515
|
+
if (!t || t.isDestroyed || S.length === 0)
|
|
4639
4516
|
return;
|
|
4640
|
-
const m =
|
|
4641
|
-
let
|
|
4642
|
-
b.upload ?
|
|
4643
|
-
src:
|
|
4517
|
+
const m = S[0];
|
|
4518
|
+
let D = "";
|
|
4519
|
+
b.upload ? D = await b.upload(m) : D = URL.createObjectURL(m), t.chain().focus().setVideo({
|
|
4520
|
+
src: D,
|
|
4644
4521
|
width: "100%"
|
|
4645
4522
|
}).run(), u(!1);
|
|
4646
4523
|
}
|
|
@@ -4651,12 +4528,12 @@ function ma() {
|
|
|
4651
4528
|
}).run(), u(!1), s(""));
|
|
4652
4529
|
}
|
|
4653
4530
|
function x(h) {
|
|
4654
|
-
var
|
|
4655
|
-
h.preventDefault(), (
|
|
4531
|
+
var S;
|
|
4532
|
+
h.preventDefault(), (S = c.current) == null || S.click();
|
|
4656
4533
|
}
|
|
4657
|
-
return /* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */ n(
|
|
4659
|
-
|
|
4534
|
+
return /* @__PURE__ */ C(we, { onOpenChange: u, open: p, children: [
|
|
4535
|
+
/* @__PURE__ */ n(We, { asChild: !0, children: /* @__PURE__ */ n(
|
|
4536
|
+
wt,
|
|
4660
4537
|
{
|
|
4661
4538
|
disabled: a,
|
|
4662
4539
|
icon: i,
|
|
@@ -4666,26 +4543,26 @@ function ma() {
|
|
|
4666
4543
|
}
|
|
4667
4544
|
}
|
|
4668
4545
|
) }),
|
|
4669
|
-
/* @__PURE__ */
|
|
4670
|
-
/* @__PURE__ */ n(
|
|
4671
|
-
/* @__PURE__ */
|
|
4672
|
-
|
|
4546
|
+
/* @__PURE__ */ C(ae, { children: [
|
|
4547
|
+
/* @__PURE__ */ n(se, { children: e("editor.video.dialog.title") }),
|
|
4548
|
+
/* @__PURE__ */ C(
|
|
4549
|
+
Ne,
|
|
4673
4550
|
{
|
|
4674
4551
|
activationMode: "manual",
|
|
4675
4552
|
defaultValue: (b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload" ? "upload" : "link",
|
|
4676
4553
|
children: [
|
|
4677
|
-
/* @__PURE__ */
|
|
4678
|
-
((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload") && /* @__PURE__ */ n(
|
|
4679
|
-
((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "link") && /* @__PURE__ */ n(
|
|
4554
|
+
/* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
|
|
4555
|
+
((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload") && /* @__PURE__ */ n(q, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
|
|
4556
|
+
((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "link") && /* @__PURE__ */ n(q, { value: "link", children: e("editor.video.dialog.link") })
|
|
4680
4557
|
] }),
|
|
4681
|
-
/* @__PURE__ */
|
|
4682
|
-
/* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n(
|
|
4558
|
+
/* @__PURE__ */ C(Z, { value: "upload", children: [
|
|
4559
|
+
/* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n($, { className: "richtext-mt-1 richtext-w-full", onClick: x, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
|
|
4683
4560
|
/* @__PURE__ */ n(
|
|
4684
4561
|
"input",
|
|
4685
4562
|
{
|
|
4686
4563
|
accept: "video/*",
|
|
4687
4564
|
multiple: !0,
|
|
4688
|
-
onChange:
|
|
4565
|
+
onChange: z,
|
|
4689
4566
|
ref: c,
|
|
4690
4567
|
type: "file",
|
|
4691
4568
|
style: {
|
|
@@ -4694,10 +4571,10 @@ function ma() {
|
|
|
4694
4571
|
}
|
|
4695
4572
|
)
|
|
4696
4573
|
] }),
|
|
4697
|
-
/* @__PURE__ */
|
|
4698
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */
|
|
4574
|
+
/* @__PURE__ */ C(Z, { value: "link", children: [
|
|
4575
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
|
|
4699
4576
|
/* @__PURE__ */ n(
|
|
4700
|
-
|
|
4577
|
+
te,
|
|
4701
4578
|
{
|
|
4702
4579
|
autoFocus: !0,
|
|
4703
4580
|
placeholder: e("editor.video.dialog.placeholder"),
|
|
@@ -4705,15 +4582,15 @@ function ma() {
|
|
|
4705
4582
|
type: "url",
|
|
4706
4583
|
value: l,
|
|
4707
4584
|
onBlur: (h) => {
|
|
4708
|
-
const
|
|
4709
|
-
|
|
4585
|
+
const S = h.target.value, m = b.videoProviders || ["."];
|
|
4586
|
+
S && !Pt(S, m) ? g("Invalid video URL") : g("");
|
|
4710
4587
|
},
|
|
4711
4588
|
onChange: (h) => {
|
|
4712
4589
|
s(h.target.value);
|
|
4713
4590
|
}
|
|
4714
4591
|
}
|
|
4715
4592
|
),
|
|
4716
|
-
/* @__PURE__ */ n(
|
|
4593
|
+
/* @__PURE__ */ n($, { onClick: f, type: "button", children: e("editor.video.dialog.button.apply") })
|
|
4717
4594
|
] }) }),
|
|
4718
4595
|
d && /* @__PURE__ */ n("div", { className: "richtext-my-[5px] richtext-text-red-500", children: d })
|
|
4719
4596
|
] })
|
|
@@ -4723,7 +4600,7 @@ function ma() {
|
|
|
4723
4600
|
] })
|
|
4724
4601
|
] });
|
|
4725
4602
|
}
|
|
4726
|
-
function
|
|
4603
|
+
function Ao(e) {
|
|
4727
4604
|
e = e.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/");
|
|
4728
4605
|
const t = e.match(/^https:\/\/www\.youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/);
|
|
4729
4606
|
t && (e = `https://www.youtube.com/embed/${t[1]}`);
|
|
@@ -4734,7 +4611,7 @@ function Po(e) {
|
|
|
4734
4611
|
}
|
|
4735
4612
|
return /^https?:\/\/www.bilibili.com\/video\/.*/i.test(e) && (e = e.replace(/\?.*$/, "").replace("https://www.bilibili.com/video/", "https://player.bilibili.com/player.html?bvid=")), e.includes("drive.google.com") && (e = e.replace("/view", "/preview")), e;
|
|
4736
4613
|
}
|
|
4737
|
-
const
|
|
4614
|
+
const je = /* @__PURE__ */ dt.create({
|
|
4738
4615
|
name: "video",
|
|
4739
4616
|
group: "block",
|
|
4740
4617
|
atom: !0,
|
|
@@ -4748,7 +4625,7 @@ const _e = /* @__PURE__ */ pt.create({
|
|
|
4748
4625
|
upload: void 0,
|
|
4749
4626
|
frameborder: !1,
|
|
4750
4627
|
resourceVideo: "both",
|
|
4751
|
-
width:
|
|
4628
|
+
width: pi["size-medium"],
|
|
4752
4629
|
HTMLAttributes: {
|
|
4753
4630
|
class: "iframe-wrapper"
|
|
4754
4631
|
// style: 'display: flex;justify-content: center;',
|
|
@@ -4776,13 +4653,13 @@ const _e = /* @__PURE__ */ pt.create({
|
|
|
4776
4653
|
src: {
|
|
4777
4654
|
default: null,
|
|
4778
4655
|
renderHTML: ({ src: e }) => ({
|
|
4779
|
-
src: e ?
|
|
4656
|
+
src: e ? Ao(e) : null
|
|
4780
4657
|
})
|
|
4781
4658
|
},
|
|
4782
4659
|
width: {
|
|
4783
4660
|
default: this.options.width,
|
|
4784
4661
|
renderHTML: ({ width: e }) => ({
|
|
4785
|
-
width:
|
|
4662
|
+
width: zo(e)
|
|
4786
4663
|
})
|
|
4787
4664
|
},
|
|
4788
4665
|
frameborder: {
|
|
@@ -4814,12 +4691,12 @@ const _e = /* @__PURE__ */ pt.create({
|
|
|
4814
4691
|
...e,
|
|
4815
4692
|
width: "100%",
|
|
4816
4693
|
height: "100%"
|
|
4817
|
-
}, o = `position: relative;overflow: hidden;display: flex;flex: 1;max-width: ${t};`, a = `flex: 1;padding-bottom: ${9 / 16 * 100}%;`,
|
|
4694
|
+
}, o = `position: relative;overflow: hidden;display: flex;flex: 1;max-width: ${t};`, a = `flex: 1;padding-bottom: ${9 / 16 * 100}%;`, g = ["div", { style: `display: flex; justify-content: ${r};` }, ["div", { style: o }, ["div", { style: a }], ["iframe", i]]];
|
|
4818
4695
|
return ["div", {
|
|
4819
4696
|
...this.options.HTMLAttributes,
|
|
4820
4697
|
class: "iframe-wrapper",
|
|
4821
4698
|
"data-video": ""
|
|
4822
|
-
},
|
|
4699
|
+
}, g];
|
|
4823
4700
|
},
|
|
4824
4701
|
addCommands() {
|
|
4825
4702
|
return {
|
|
@@ -4831,19 +4708,19 @@ const _e = /* @__PURE__ */ pt.create({
|
|
|
4831
4708
|
};
|
|
4832
4709
|
}
|
|
4833
4710
|
});
|
|
4834
|
-
function
|
|
4835
|
-
const { t: e } =
|
|
4836
|
-
|
|
4837
|
-
const u =
|
|
4711
|
+
function Lo() {
|
|
4712
|
+
const { t: e } = ne(), t = ee(), { editorDisabled: r } = Ae(), [i, o] = L(""), a = xe(null), [l, s] = L(""), [c, d] = L(!1), g = le(je.name), p = Ot.UPLOAD_VIDEO(t.id);
|
|
4713
|
+
zt(d, [p]);
|
|
4714
|
+
const u = B(() => (g == null ? void 0 : g.options) ?? {}, [g]);
|
|
4838
4715
|
async function k(f) {
|
|
4839
4716
|
var m;
|
|
4840
4717
|
const x = (m = f == null ? void 0 : f.target) == null ? void 0 : m.files;
|
|
4841
4718
|
if (!t || t.isDestroyed || x.length === 0)
|
|
4842
4719
|
return;
|
|
4843
4720
|
const h = x[0];
|
|
4844
|
-
let
|
|
4845
|
-
u.upload ?
|
|
4846
|
-
src:
|
|
4721
|
+
let S = "";
|
|
4722
|
+
u.upload ? S = await u.upload(h) : S = URL.createObjectURL(h), t.chain().focus().setVideo({
|
|
4723
|
+
src: S,
|
|
4847
4724
|
width: "100%"
|
|
4848
4725
|
}).run(), d(!1);
|
|
4849
4726
|
}
|
|
@@ -4853,24 +4730,24 @@ function _o() {
|
|
|
4853
4730
|
width: "100%"
|
|
4854
4731
|
}).run(), d(!1), o(""));
|
|
4855
4732
|
}
|
|
4856
|
-
function
|
|
4733
|
+
function z(f) {
|
|
4857
4734
|
var x;
|
|
4858
4735
|
f.preventDefault(), (x = a.current) == null || x.click();
|
|
4859
4736
|
}
|
|
4860
|
-
return r ? /* @__PURE__ */ n(
|
|
4861
|
-
/* @__PURE__ */ n(
|
|
4862
|
-
/* @__PURE__ */
|
|
4863
|
-
|
|
4737
|
+
return r ? /* @__PURE__ */ n(Y, {}) : /* @__PURE__ */ n(we, { onOpenChange: d, open: c, children: /* @__PURE__ */ C(ae, { children: [
|
|
4738
|
+
/* @__PURE__ */ n(se, { children: e("editor.video.dialog.title") }),
|
|
4739
|
+
/* @__PURE__ */ C(
|
|
4740
|
+
Ne,
|
|
4864
4741
|
{
|
|
4865
4742
|
activationMode: "manual",
|
|
4866
4743
|
defaultValue: (u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload" ? "upload" : "link",
|
|
4867
4744
|
children: [
|
|
4868
|
-
/* @__PURE__ */
|
|
4869
|
-
((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload") && /* @__PURE__ */ n(
|
|
4870
|
-
((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "link") && /* @__PURE__ */ n(
|
|
4745
|
+
/* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
|
|
4746
|
+
((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload") && /* @__PURE__ */ n(q, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
|
|
4747
|
+
((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "link") && /* @__PURE__ */ n(q, { value: "link", children: e("editor.video.dialog.link") })
|
|
4871
4748
|
] }),
|
|
4872
|
-
/* @__PURE__ */
|
|
4873
|
-
/* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n(
|
|
4749
|
+
/* @__PURE__ */ C(Z, { value: "upload", children: [
|
|
4750
|
+
/* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n($, { className: "richtext-mt-1 richtext-w-full", onClick: z, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
|
|
4874
4751
|
/* @__PURE__ */ n(
|
|
4875
4752
|
"input",
|
|
4876
4753
|
{
|
|
@@ -4885,10 +4762,10 @@ function _o() {
|
|
|
4885
4762
|
}
|
|
4886
4763
|
)
|
|
4887
4764
|
] }),
|
|
4888
|
-
/* @__PURE__ */
|
|
4889
|
-
/* @__PURE__ */ n("div", { children: /* @__PURE__ */
|
|
4765
|
+
/* @__PURE__ */ C(Z, { value: "link", children: [
|
|
4766
|
+
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
|
|
4890
4767
|
/* @__PURE__ */ n(
|
|
4891
|
-
|
|
4768
|
+
te,
|
|
4892
4769
|
{
|
|
4893
4770
|
autoFocus: !0,
|
|
4894
4771
|
placeholder: e("editor.video.dialog.placeholder"),
|
|
@@ -4897,14 +4774,14 @@ function _o() {
|
|
|
4897
4774
|
value: i,
|
|
4898
4775
|
onBlur: (f) => {
|
|
4899
4776
|
const x = f.target.value, h = u.videoProviders || ["."];
|
|
4900
|
-
x && !
|
|
4777
|
+
x && !Pt(x, h) ? s("Invalid video URL") : s("");
|
|
4901
4778
|
},
|
|
4902
4779
|
onChange: (f) => {
|
|
4903
4780
|
o(f.target.value);
|
|
4904
4781
|
}
|
|
4905
4782
|
}
|
|
4906
4783
|
),
|
|
4907
|
-
/* @__PURE__ */ n(
|
|
4784
|
+
/* @__PURE__ */ n($, { onClick: b, type: "button", children: e("editor.video.dialog.button.apply") })
|
|
4908
4785
|
] }) }),
|
|
4909
4786
|
l && /* @__PURE__ */ n("div", { className: "richtext-my-[5px] richtext-text-red-500", children: l })
|
|
4910
4787
|
] })
|
|
@@ -4913,73 +4790,67 @@ function _o() {
|
|
|
4913
4790
|
)
|
|
4914
4791
|
] }) });
|
|
4915
4792
|
}
|
|
4916
|
-
function
|
|
4917
|
-
return /* @__PURE__ */
|
|
4918
|
-
/* @__PURE__ */ n(
|
|
4919
|
-
/* @__PURE__ */ n(
|
|
4793
|
+
function Eo() {
|
|
4794
|
+
return /* @__PURE__ */ C(Y, { children: [
|
|
4795
|
+
/* @__PURE__ */ n(No, {}),
|
|
4796
|
+
/* @__PURE__ */ n(Lo, {})
|
|
4920
4797
|
] });
|
|
4921
4798
|
}
|
|
4922
|
-
process.env.NODE_ENV !== "production" && (
|
|
4799
|
+
process.env.NODE_ENV !== "production" && (Eo.displayName = "SlashDialogTrigger");
|
|
4923
4800
|
export {
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4801
|
+
Jo as $,
|
|
4802
|
+
wt as A,
|
|
4803
|
+
$ as B,
|
|
4804
|
+
$e as C,
|
|
4805
|
+
we as D,
|
|
4806
|
+
Ot as E,
|
|
4807
|
+
Rt as F,
|
|
4808
|
+
zt as G,
|
|
4809
|
+
at as H,
|
|
4810
|
+
fe as I,
|
|
4811
|
+
fo as J,
|
|
4812
|
+
xo as K,
|
|
4813
|
+
pe as L,
|
|
4814
|
+
cn as M,
|
|
4815
|
+
Xo as N,
|
|
4816
|
+
Fo as O,
|
|
4817
|
+
ra as P,
|
|
4818
|
+
vn as Q,
|
|
4819
|
+
Go as R,
|
|
4820
|
+
Eo as S,
|
|
4821
|
+
An as T,
|
|
4822
|
+
bn as U,
|
|
4823
|
+
ea as V,
|
|
4947
4824
|
Qo as W,
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
_e as a3,
|
|
4957
|
-
qe as a4,
|
|
4958
|
-
ca as a5,
|
|
4959
|
-
ma as a6,
|
|
4960
|
-
zt as b,
|
|
4961
|
-
R as c,
|
|
4825
|
+
ta as X,
|
|
4826
|
+
_n as Y,
|
|
4827
|
+
je as Z,
|
|
4828
|
+
Xe as _,
|
|
4829
|
+
Ln as a,
|
|
4830
|
+
ia as a0,
|
|
4831
|
+
kt as b,
|
|
4832
|
+
_ as c,
|
|
4962
4833
|
Ae as d,
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4834
|
+
Yo as e,
|
|
4835
|
+
Ko as f,
|
|
4836
|
+
tn as g,
|
|
4837
|
+
ee as h,
|
|
4838
|
+
yt as i,
|
|
4839
|
+
te as j,
|
|
4840
|
+
Ct as k,
|
|
4841
|
+
en as l,
|
|
4842
|
+
le as m,
|
|
4843
|
+
Be as n,
|
|
4844
|
+
Zo as o,
|
|
4845
|
+
Se as p,
|
|
4846
|
+
qo as q,
|
|
4847
|
+
We as r,
|
|
4848
|
+
ae as s,
|
|
4849
|
+
st as t,
|
|
4850
|
+
Dt as u,
|
|
4851
|
+
se as v,
|
|
4852
|
+
It as w,
|
|
4853
|
+
So as x,
|
|
4854
|
+
Fn as y,
|
|
4855
|
+
Wo as z
|
|
4985
4856
|
};
|