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