@iclips/ui 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/app-layout-primary-nav.d.ts.map +1 -1
- package/dist/components/ui/app-layout-secondary-nav.d.ts +3 -1
- package/dist/components/ui/app-layout-secondary-nav.d.ts.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +529 -531
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as l, jsxs as b, Fragment as
|
|
1
|
+
import { jsx as l, jsxs as b, Fragment as rt } from "react/jsx-runtime";
|
|
2
2
|
import * as ya from "@radix-ui/react-accordion";
|
|
3
3
|
import { ChevronDownIcon as Zs, Home as A4, Folder as z4, Users as O4, Calendar as ci, BarChart3 as P4, Settings as k1, Pin as S1, Plus as _n, LayoutGrid as R4, FileText as I1, Star as T1, MessageSquare as Vc, Download as Gc, Sparkles as B4, ChevronRight as Zt, Zap as H4, PanelLeftClose as qs, PanelLeft as U4, Bell as F4, CheckIcon as Ks, CircleIcon as _c, ChevronRightIcon as Xs, User as ef, HelpCircle as J4, LogOut as Y4, ChevronDown as tf, MoreHorizontal as j1, ChevronLeft as nf, Printer as Q4, Eye as D1, ArrowRight as E1, ArrowLeft as V4, Check as A1, Smile as z1, Trash2 as O1, AlertCircle as hr, Paperclip as Ma, X as xa, Type as G4, Send as _4, Bold as P1, Italic as R1, Underline as B1, List as H1, ListOrdered as U1, Link as F1, ChevronUpIcon as W4, Clock as ni, CalendarIcon as $o, MoreVertical as $4, CheckSquare as Z4, Activity as q4, TrendingUp as K4, TrendingDown as X4, XIcon as J1, SearchIcon as ev, Undo as tv, Redo as nv, Heading1 as rv, Heading2 as iv, Heading3 as av, Strikethrough as ov, AlignLeft as sv, AlignCenter as fv, AlignRight as lv, Quote as cv, Image as dv, PanelLeftOpen as Wc, Youtube as uv, Twitter as hv, Facebook as pv, Linkedin as mv, Instagram as gv, GripVertical as bv, CheckCircle2 as vv, Circle as Y1, Edit as Gl, MinusIcon as wv, EyeOff as yv, MoreHorizontalIcon as Mv, ChevronLeftIcon as xv, GripVerticalIcon as Cv, PanelLeftIcon as Lv, Github as Nv, ChevronsLeft as kv, ChevronsRight as Sv, Filter as Q1, Search as Iv, ArrowUpDown as Tv, Link2 as jv, Pencil as Dv, RefreshCw as Ev, PlusCircle as Av } from "lucide-react";
|
|
4
4
|
import { clsx as zv } from "clsx";
|
|
@@ -26,7 +26,7 @@ import * as $v from "@radix-ui/react-separator";
|
|
|
26
26
|
import Zv, { flushSync as qv } from "react-dom";
|
|
27
27
|
import { useSyncExternalStore as K1 } from "use-sync-external-store/shim/index.js";
|
|
28
28
|
import { useSyncExternalStoreWithSelector as Kv } from "use-sync-external-store/shim/with-selector.js";
|
|
29
|
-
import * as
|
|
29
|
+
import * as it from "@radix-ui/react-select";
|
|
30
30
|
import * as zu from "@radix-ui/react-progress";
|
|
31
31
|
import { Command as Tr } from "cmdk";
|
|
32
32
|
import * as Ie from "@radix-ui/react-dialog";
|
|
@@ -521,7 +521,7 @@ function UA({
|
|
|
521
521
|
defaultSecondaryNavOpen: p = !0
|
|
522
522
|
}) {
|
|
523
523
|
var N;
|
|
524
|
-
const [h, m] = j.useState(u), [g, v] = j.useState(!1), [w, x] = j.useState(p), [
|
|
524
|
+
const [h, m] = j.useState(u), [g, v] = j.useState(!1), [w, x] = j.useState(p), [L, y] = j.useState(s || ((N = i[0]) == null ? void 0 : N.id)), k = h || g, C = (S) => {
|
|
525
525
|
y(S), f && f(S);
|
|
526
526
|
};
|
|
527
527
|
return /* @__PURE__ */ b("div", { className: "flex h-screen w-full bg-background", children: [
|
|
@@ -547,11 +547,11 @@ function UA({
|
|
|
547
547
|
)
|
|
548
548
|
] }) : /* @__PURE__ */ l("div", { className: "flex w-full justify-center", children: c || /* @__PURE__ */ l(Ca, { variant: "symbol", className: "h-8 w-8" }) }) }),
|
|
549
549
|
/* @__PURE__ */ l("nav", { className: "flex-1 space-y-1 p-2", children: i.map((S) => {
|
|
550
|
-
const I = S.icon, D =
|
|
550
|
+
const I = S.icon, D = L === S.id;
|
|
551
551
|
return /* @__PURE__ */ b(
|
|
552
552
|
"button",
|
|
553
553
|
{
|
|
554
|
-
onClick: () =>
|
|
554
|
+
onClick: () => C(S.id),
|
|
555
555
|
className: M(
|
|
556
556
|
"flex w-full items-center gap-3 rounded px-3 py-2 text-sm transition-colors",
|
|
557
557
|
D ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -999,7 +999,7 @@ function $A({
|
|
|
999
999
|
}) {
|
|
1000
1000
|
const [f, c] = j.useState(o), [d, u] = j.useState(!1), [p, h] = j.useState([]), m = f || d, g = (w) => {
|
|
1001
1001
|
h(
|
|
1002
|
-
(x) => x.includes(w) ? x.filter((
|
|
1002
|
+
(x) => x.includes(w) ? x.filter((L) => L !== w) : [...x, w]
|
|
1003
1003
|
);
|
|
1004
1004
|
}, v = (w, x) => {
|
|
1005
1005
|
x ? g(w) : n == null || n(w);
|
|
@@ -1008,19 +1008,19 @@ function $A({
|
|
|
1008
1008
|
"div",
|
|
1009
1009
|
{
|
|
1010
1010
|
className: M(
|
|
1011
|
-
"relative flex h-screen flex-col
|
|
1011
|
+
"relative flex h-screen flex-col bg-muted/30 transition-all duration-200",
|
|
1012
1012
|
m ? "w-56" : "w-16",
|
|
1013
1013
|
s
|
|
1014
1014
|
),
|
|
1015
1015
|
onMouseEnter: () => u(!0),
|
|
1016
1016
|
onMouseLeave: () => u(!1),
|
|
1017
1017
|
children: [
|
|
1018
|
-
/* @__PURE__ */ l("div", { className: "flex h-
|
|
1018
|
+
/* @__PURE__ */ l("div", { className: "flex h-16 min-h-16 items-center px-2", children: m ? /* @__PURE__ */ b("div", { className: "flex min-w-0 flex-1 items-center justify-between overflow-hidden", children: [
|
|
1019
1019
|
r || /* @__PURE__ */ l(Ca, { variant: "full", className: "h-8 w-auto" }),
|
|
1020
1020
|
/* @__PURE__ */ l(
|
|
1021
1021
|
"button",
|
|
1022
1022
|
{
|
|
1023
|
-
className: "flex h-6 w-6
|
|
1023
|
+
className: "flex h-6 w-6 shrink-0 items-center justify-center rounded hover:bg-accent",
|
|
1024
1024
|
onClick: () => c(!f),
|
|
1025
1025
|
children: /* @__PURE__ */ l(
|
|
1026
1026
|
S1,
|
|
@@ -1034,43 +1034,37 @@ function $A({
|
|
|
1034
1034
|
}
|
|
1035
1035
|
)
|
|
1036
1036
|
] }) : /* @__PURE__ */ l("div", { className: "flex w-full justify-center", children: r || /* @__PURE__ */ l(Ca, { variant: "symbol", className: "h-8 w-8" }) }) }),
|
|
1037
|
-
/* @__PURE__ */ l(ii, { className: "flex-1", children: /* @__PURE__ */ l("nav", { className: "space-y-1
|
|
1038
|
-
var
|
|
1039
|
-
const x = w.icon,
|
|
1040
|
-
return /* @__PURE__ */ b("div", { children: [
|
|
1037
|
+
/* @__PURE__ */ l(ii, { className: "flex-1", children: /* @__PURE__ */ l("nav", { className: "space-y-1 py-3 px-2", children: t.map((w) => {
|
|
1038
|
+
var C;
|
|
1039
|
+
const x = w.icon, L = w.children && w.children.length > 0, y = p.includes(w.id), k = e === w.id || ((C = w.children) == null ? void 0 : C.some((N) => N.id === e));
|
|
1040
|
+
return /* @__PURE__ */ b("div", { className: M(!m && "flex justify-center"), children: [
|
|
1041
1041
|
/* @__PURE__ */ b(
|
|
1042
1042
|
"button",
|
|
1043
1043
|
{
|
|
1044
|
-
onClick: () => v(w.id, !!
|
|
1044
|
+
onClick: () => v(w.id, !!L),
|
|
1045
1045
|
className: M(
|
|
1046
|
-
"flex
|
|
1046
|
+
"flex items-center rounded-lg text-sm transition-colors",
|
|
1047
|
+
m ? "w-full gap-3 px-3 py-2" : "w-10 h-10 justify-center shrink-0",
|
|
1047
1048
|
k ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
1048
1049
|
),
|
|
1049
1050
|
children: [
|
|
1050
1051
|
/* @__PURE__ */ l(x, { className: "h-4 w-4 shrink-0" }),
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
"span",
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
{
|
|
1064
|
-
className: M(
|
|
1065
|
-
"h-4 w-4 transition-transform",
|
|
1066
|
-
y && "rotate-180"
|
|
1067
|
-
)
|
|
1068
|
-
}
|
|
1069
|
-
)
|
|
1052
|
+
m && /* @__PURE__ */ b(rt, { children: [
|
|
1053
|
+
/* @__PURE__ */ l("span", { className: "flex-1 text-left", children: w.label }),
|
|
1054
|
+
L && /* @__PURE__ */ l(
|
|
1055
|
+
tf,
|
|
1056
|
+
{
|
|
1057
|
+
className: M(
|
|
1058
|
+
"h-4 w-4 transition-transform",
|
|
1059
|
+
y && "rotate-180"
|
|
1060
|
+
)
|
|
1061
|
+
}
|
|
1062
|
+
)
|
|
1063
|
+
] })
|
|
1070
1064
|
]
|
|
1071
1065
|
}
|
|
1072
1066
|
),
|
|
1073
|
-
|
|
1067
|
+
L && y && m && /* @__PURE__ */ l("div", { className: "ml-4 mt-1 space-y-1 border-l pl-2", children: w.children.map((N) => {
|
|
1074
1068
|
const S = N.icon, I = e === N.id;
|
|
1075
1069
|
return /* @__PURE__ */ b(
|
|
1076
1070
|
"button",
|
|
@@ -1090,7 +1084,7 @@ function $A({
|
|
|
1090
1084
|
}) })
|
|
1091
1085
|
] }, w.id);
|
|
1092
1086
|
}) }) }),
|
|
1093
|
-
i && /* @__PURE__ */ l("div", { className: "
|
|
1087
|
+
i && /* @__PURE__ */ l("div", { className: "py-3 px-2", children: /* @__PURE__ */ l(
|
|
1094
1088
|
bw,
|
|
1095
1089
|
{
|
|
1096
1090
|
user: i,
|
|
@@ -1105,85 +1099,89 @@ function $A({
|
|
|
1105
1099
|
function ZA({
|
|
1106
1100
|
title: t = "Menu",
|
|
1107
1101
|
groups: e,
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1102
|
+
activeItemLabel: n,
|
|
1103
|
+
items: r,
|
|
1104
|
+
onAddClick: i,
|
|
1105
|
+
footerContent: a,
|
|
1106
|
+
className: o,
|
|
1107
|
+
collapsed: s,
|
|
1108
|
+
onCollapsedChange: f,
|
|
1109
|
+
collapsible: c = !1,
|
|
1110
|
+
defaultCollapsed: d = !1
|
|
1116
1111
|
}) {
|
|
1117
|
-
const [
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1120
|
-
},
|
|
1121
|
-
|
|
1122
|
-
(
|
|
1112
|
+
const [u, p] = j.useState([]), [h, m] = j.useState(d), g = s !== void 0 ? s : h, v = () => {
|
|
1113
|
+
const L = !g;
|
|
1114
|
+
m(L), f == null || f(L);
|
|
1115
|
+
}, w = (L) => {
|
|
1116
|
+
p(
|
|
1117
|
+
(y) => y.includes(L) ? y.filter((k) => k !== L) : [...y, L]
|
|
1123
1118
|
);
|
|
1124
|
-
},
|
|
1125
|
-
const
|
|
1119
|
+
}, x = (L) => L.map((y, k) => {
|
|
1120
|
+
const C = y.icon, N = y.active || n && y.label === n;
|
|
1126
1121
|
return /* @__PURE__ */ b(
|
|
1127
1122
|
"button",
|
|
1128
1123
|
{
|
|
1129
|
-
onClick:
|
|
1124
|
+
onClick: y.onClick,
|
|
1130
1125
|
className: M(
|
|
1131
1126
|
"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm transition-colors",
|
|
1132
|
-
|
|
1127
|
+
N ? "bg-primary text-primary-foreground font-medium shadow-sm" : y.highlighted ? "bg-primary/10 text-primary font-medium" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
1133
1128
|
),
|
|
1134
1129
|
children: [
|
|
1135
|
-
/* @__PURE__ */ l(
|
|
1136
|
-
/* @__PURE__ */ l("span", { className: M("flex-1 text-left"
|
|
1137
|
-
|
|
1130
|
+
/* @__PURE__ */ l(C, { className: "h-4 w-4 shrink-0" }),
|
|
1131
|
+
/* @__PURE__ */ l("span", { className: M("flex-1 text-left"), children: y.label }),
|
|
1132
|
+
y.badge && /* @__PURE__ */ l(
|
|
1138
1133
|
ge,
|
|
1139
1134
|
{
|
|
1140
|
-
variant:
|
|
1141
|
-
className:
|
|
1142
|
-
|
|
1135
|
+
variant: "secondary",
|
|
1136
|
+
className: M(
|
|
1137
|
+
"min-w-5 px-1.5 text-xs",
|
|
1138
|
+
N && "bg-primary-foreground/20 text-primary-foreground"
|
|
1139
|
+
),
|
|
1140
|
+
children: y.badge
|
|
1143
1141
|
}
|
|
1144
1142
|
),
|
|
1145
|
-
|
|
1143
|
+
y.chevron && /* @__PURE__ */ l(Zt, { className: "h-3 w-3" })
|
|
1146
1144
|
]
|
|
1147
1145
|
},
|
|
1148
|
-
|
|
1146
|
+
k
|
|
1149
1147
|
);
|
|
1150
1148
|
});
|
|
1151
1149
|
return /* @__PURE__ */ b(
|
|
1152
1150
|
"div",
|
|
1153
1151
|
{
|
|
1154
1152
|
className: M(
|
|
1155
|
-
"flex h-
|
|
1156
|
-
|
|
1157
|
-
|
|
1153
|
+
"flex h-full flex-col bg-background transition-all duration-300 rounded-lg mt-2 ml-2",
|
|
1154
|
+
g ? "w-0 overflow-hidden border-0" : "w-64 border",
|
|
1155
|
+
o
|
|
1158
1156
|
),
|
|
1159
1157
|
children: [
|
|
1160
|
-
/* @__PURE__ */ b("div", { className: "flex h-
|
|
1158
|
+
/* @__PURE__ */ b("div", { className: "flex h-16 min-h-16 items-center justify-between px-4", children: [
|
|
1161
1159
|
/* @__PURE__ */ l("h2", { className: "text-sm font-semibold truncate", children: t }),
|
|
1162
1160
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
|
|
1163
|
-
|
|
1161
|
+
i && /* @__PURE__ */ l(
|
|
1164
1162
|
R,
|
|
1165
1163
|
{
|
|
1166
1164
|
variant: "ghost",
|
|
1167
1165
|
size: "icon",
|
|
1168
1166
|
className: "h-6 w-6 p-0",
|
|
1169
|
-
onClick:
|
|
1167
|
+
onClick: i,
|
|
1170
1168
|
children: /* @__PURE__ */ l(_n, { className: "h-4 w-4" })
|
|
1171
1169
|
}
|
|
1172
1170
|
),
|
|
1173
|
-
|
|
1171
|
+
c && /* @__PURE__ */ l(
|
|
1174
1172
|
R,
|
|
1175
1173
|
{
|
|
1176
1174
|
variant: "ghost",
|
|
1177
1175
|
size: "icon",
|
|
1178
1176
|
className: "h-6 w-6 p-0",
|
|
1179
|
-
onClick:
|
|
1180
|
-
title:
|
|
1177
|
+
onClick: v,
|
|
1178
|
+
title: g ? "Expandir menu" : "Recolher menu",
|
|
1181
1179
|
children: /* @__PURE__ */ l(
|
|
1182
1180
|
Zt,
|
|
1183
1181
|
{
|
|
1184
1182
|
className: M(
|
|
1185
1183
|
"h-4 w-4 transition-transform",
|
|
1186
|
-
!
|
|
1184
|
+
!g && "rotate-180"
|
|
1187
1185
|
)
|
|
1188
1186
|
}
|
|
1189
1187
|
)
|
|
@@ -1191,14 +1189,14 @@ function ZA({
|
|
|
1191
1189
|
)
|
|
1192
1190
|
] })
|
|
1193
1191
|
] }),
|
|
1194
|
-
/* @__PURE__ */ l(ii, { className: "flex-1", children: /* @__PURE__ */ b("div", { className: "p-
|
|
1195
|
-
e && e.map((
|
|
1196
|
-
const
|
|
1192
|
+
/* @__PURE__ */ l(ii, { className: "flex-1", children: /* @__PURE__ */ b("div", { className: "p-3 space-y-4", children: [
|
|
1193
|
+
e && e.map((L) => {
|
|
1194
|
+
const y = u.includes(L.title);
|
|
1197
1195
|
return /* @__PURE__ */ b("div", { className: "space-y-1", children: [
|
|
1198
|
-
|
|
1196
|
+
L.collapsible ? /* @__PURE__ */ b(
|
|
1199
1197
|
"button",
|
|
1200
1198
|
{
|
|
1201
|
-
onClick: () =>
|
|
1199
|
+
onClick: () => w(L.title),
|
|
1202
1200
|
className: "flex w-full items-center gap-2 px-3 py-1.5 text-xs font-semibold uppercase tracking-wider text-muted-foreground hover:text-foreground transition-colors",
|
|
1203
1201
|
children: [
|
|
1204
1202
|
/* @__PURE__ */ l(
|
|
@@ -1206,20 +1204,20 @@ function ZA({
|
|
|
1206
1204
|
{
|
|
1207
1205
|
className: M(
|
|
1208
1206
|
"h-3 w-3 transition-transform",
|
|
1209
|
-
|
|
1207
|
+
y && "-rotate-90"
|
|
1210
1208
|
)
|
|
1211
1209
|
}
|
|
1212
1210
|
),
|
|
1213
|
-
|
|
1211
|
+
L.title
|
|
1214
1212
|
]
|
|
1215
1213
|
}
|
|
1216
|
-
) : /* @__PURE__ */ l("div", { className: "px-3 py-1.5 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children:
|
|
1217
|
-
!
|
|
1218
|
-
] },
|
|
1214
|
+
) : /* @__PURE__ */ l("div", { className: "px-3 py-1.5 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: L.title }),
|
|
1215
|
+
!y && /* @__PURE__ */ l("div", { className: "space-y-0.5", children: x(L.items) })
|
|
1216
|
+
] }, L.title);
|
|
1219
1217
|
}),
|
|
1220
|
-
|
|
1218
|
+
r && !e && /* @__PURE__ */ l("div", { className: "space-y-0.5", children: x(r) })
|
|
1221
1219
|
] }) }),
|
|
1222
|
-
|
|
1220
|
+
a && /* @__PURE__ */ l("div", { className: "p-4", children: a })
|
|
1223
1221
|
]
|
|
1224
1222
|
}
|
|
1225
1223
|
);
|
|
@@ -2960,8 +2958,8 @@ function l8({
|
|
|
2960
2958
|
var y;
|
|
2961
2959
|
if (i || !(e != null && e.length))
|
|
2962
2960
|
return null;
|
|
2963
|
-
const [v] = e, w = `${p || (v == null ? void 0 : v.dataKey) || (v == null ? void 0 : v.name) || "value"}`, x = $l(h, v, w),
|
|
2964
|
-
return s ? /* @__PURE__ */ l("div", { className: M("font-medium", f), children: s(
|
|
2961
|
+
const [v] = e, w = `${p || (v == null ? void 0 : v.dataKey) || (v == null ? void 0 : v.name) || "value"}`, x = $l(h, v, w), L = !p && typeof o == "string" ? ((y = h[o]) == null ? void 0 : y.label) || o : x == null ? void 0 : x.label;
|
|
2962
|
+
return s ? /* @__PURE__ */ l("div", { className: M("font-medium", f), children: s(L, e) }) : L ? /* @__PURE__ */ l("div", { className: M("font-medium", f), children: L }) : null;
|
|
2965
2963
|
}, [
|
|
2966
2964
|
o,
|
|
2967
2965
|
s,
|
|
@@ -2984,7 +2982,7 @@ function l8({
|
|
|
2984
2982
|
children: [
|
|
2985
2983
|
g ? null : m,
|
|
2986
2984
|
/* @__PURE__ */ l("div", { className: "grid gap-1.5", children: e.map((v, w) => {
|
|
2987
|
-
const x = `${u || v.name || v.dataKey || "value"}`,
|
|
2985
|
+
const x = `${u || v.name || v.dataKey || "value"}`, L = $l(h, v, x), y = d || v.payload.fill || v.color;
|
|
2988
2986
|
return /* @__PURE__ */ l(
|
|
2989
2987
|
"div",
|
|
2990
2988
|
{
|
|
@@ -2992,8 +2990,8 @@ function l8({
|
|
|
2992
2990
|
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
2993
2991
|
r === "dot" && "items-center"
|
|
2994
2992
|
),
|
|
2995
|
-
children: c && (v == null ? void 0 : v.value) !== void 0 && v.name ? c(v.value, v.name, v, w, v.payload) : /* @__PURE__ */ b(
|
|
2996
|
-
|
|
2993
|
+
children: c && (v == null ? void 0 : v.value) !== void 0 && v.name ? c(v.value, v.name, v, w, v.payload) : /* @__PURE__ */ b(rt, { children: [
|
|
2994
|
+
L != null && L.icon ? /* @__PURE__ */ l(L.icon, {}) : !a && /* @__PURE__ */ l(
|
|
2997
2995
|
"div",
|
|
2998
2996
|
{
|
|
2999
2997
|
className: M(
|
|
@@ -3021,7 +3019,7 @@ function l8({
|
|
|
3021
3019
|
children: [
|
|
3022
3020
|
/* @__PURE__ */ b("div", { className: "grid gap-1.5", children: [
|
|
3023
3021
|
g ? m : null,
|
|
3024
|
-
/* @__PURE__ */ l("span", { className: "text-muted-foreground", children: (
|
|
3022
|
+
/* @__PURE__ */ l("span", { className: "text-muted-foreground", children: (L == null ? void 0 : L.label) || v.name })
|
|
3025
3023
|
] }),
|
|
3026
3024
|
v.value && /* @__PURE__ */ l("span", { className: "text-foreground font-mono font-medium tabular-nums", children: v.value.toLocaleString() })
|
|
3027
3025
|
]
|
|
@@ -3111,7 +3109,7 @@ function dy({
|
|
|
3111
3109
|
}
|
|
3112
3110
|
);
|
|
3113
3111
|
}
|
|
3114
|
-
function
|
|
3112
|
+
function lt({
|
|
3115
3113
|
...t
|
|
3116
3114
|
}) {
|
|
3117
3115
|
return /* @__PURE__ */ l(Yn.Root, { "data-slot": "popover", ...t });
|
|
@@ -3189,7 +3187,7 @@ function u8({
|
|
|
3189
3187
|
return /* @__PURE__ */ b("div", { className: M("space-y-2", r), children: [
|
|
3190
3188
|
n && /* @__PURE__ */ l(We, { children: n }),
|
|
3191
3189
|
/* @__PURE__ */ b("div", { className: "flex gap-2", children: [
|
|
3192
|
-
/* @__PURE__ */ b(
|
|
3190
|
+
/* @__PURE__ */ b(lt, { open: s, onOpenChange: f, children: [
|
|
3193
3191
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
3194
3192
|
R,
|
|
3195
3193
|
{
|
|
@@ -7347,8 +7345,8 @@ function i3(t, e, n, r) {
|
|
|
7347
7345
|
for (let g = 0; g < o.length; g++) {
|
|
7348
7346
|
let v = o[(g + f) % o.length], w = !0;
|
|
7349
7347
|
v < 0 && (w = !1, v = -v);
|
|
7350
|
-
let x = i.node(v - 1),
|
|
7351
|
-
if (x.canReplaceWith(
|
|
7348
|
+
let x = i.node(v - 1), L = i.index(v - 1);
|
|
7349
|
+
if (x.canReplaceWith(L, L, m.type, m.marks))
|
|
7352
7350
|
return t.replace(i.before(v), w ? a.after(v) : n, new H(Hp(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
7353
7351
|
}
|
|
7354
7352
|
}
|
|
@@ -8806,8 +8804,8 @@ function em(t, e, n, r) {
|
|
|
8806
8804
|
if (h.canReplace(h.childCount, h.childCount, g.content)) {
|
|
8807
8805
|
if (n) {
|
|
8808
8806
|
let w = E.empty;
|
|
8809
|
-
for (let
|
|
8810
|
-
w = E.from(m[
|
|
8807
|
+
for (let L = m.length - 1; L >= 0; L--)
|
|
8808
|
+
w = E.from(m[L].copy(w));
|
|
8811
8809
|
let x = t.tr.step(new ze(e.pos - m.length, e.pos + a.nodeSize, e.pos + v, e.pos + a.nodeSize - v, new H(w, m.length, 0), 0, !0));
|
|
8812
8810
|
n(x.scrollIntoView());
|
|
8813
8811
|
}
|
|
@@ -10994,17 +10992,17 @@ function LM(t, e) {
|
|
|
10994
10992
|
}
|
|
10995
10993
|
return new H(i, a, o);
|
|
10996
10994
|
}
|
|
10997
|
-
const
|
|
10995
|
+
const at = {}, ot = {}, NM = { touchstart: !0, touchmove: !0 };
|
|
10998
10996
|
class kM {
|
|
10999
10997
|
constructor() {
|
|
11000
10998
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "", button: 0 }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
11001
10999
|
}
|
|
11002
11000
|
}
|
|
11003
11001
|
function SM(t) {
|
|
11004
|
-
for (let e in
|
|
11005
|
-
let n =
|
|
11002
|
+
for (let e in at) {
|
|
11003
|
+
let n = at[e];
|
|
11006
11004
|
t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
|
|
11007
|
-
TM(t, r) && !bd(t, r) && (t.editable || !(r.type in
|
|
11005
|
+
TM(t, r) && !bd(t, r) && (t.editable || !(r.type in ot)) && n(t, r);
|
|
11008
11006
|
}, NM[e] ? { passive: !0 } : void 0);
|
|
11009
11007
|
}
|
|
11010
11008
|
Ze && t.dom.addEventListener("input", () => null), cc(t);
|
|
@@ -11041,9 +11039,9 @@ function TM(t, e) {
|
|
|
11041
11039
|
return !0;
|
|
11042
11040
|
}
|
|
11043
11041
|
function jM(t, e) {
|
|
11044
|
-
!bd(t, e) &&
|
|
11042
|
+
!bd(t, e) && at[e.type] && (t.editable || !(e.type in ot)) && at[e.type](t, e);
|
|
11045
11043
|
}
|
|
11046
|
-
|
|
11044
|
+
ot.keydown = (t, e) => {
|
|
11047
11045
|
let n = e;
|
|
11048
11046
|
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !Sm(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(wn && Ae && n.keyCode == 13)))
|
|
11049
11047
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), gi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
@@ -11053,10 +11051,10 @@ at.keydown = (t, e) => {
|
|
|
11053
11051
|
}, 200);
|
|
11054
11052
|
} else t.someProp("handleKeyDown", (r) => r(t, n)) || vM(t, n) ? n.preventDefault() : Bn(t, "key");
|
|
11055
11053
|
};
|
|
11056
|
-
|
|
11054
|
+
ot.keyup = (t, e) => {
|
|
11057
11055
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
11058
11056
|
};
|
|
11059
|
-
|
|
11057
|
+
ot.keypress = (t, e) => {
|
|
11060
11058
|
let n = e;
|
|
11061
11059
|
if (Sm(t, n) || !n.charCode || n.ctrlKey && !n.altKey || It && n.metaKey)
|
|
11062
11060
|
return;
|
|
@@ -11144,7 +11142,7 @@ function wd(t) {
|
|
|
11144
11142
|
return ss(t);
|
|
11145
11143
|
}
|
|
11146
11144
|
const km = It ? "metaKey" : "ctrlKey";
|
|
11147
|
-
|
|
11145
|
+
at.mousedown = (t, e) => {
|
|
11148
11146
|
let n = e;
|
|
11149
11147
|
t.input.shiftKey = n.shiftKey;
|
|
11150
11148
|
let r = wd(t), i = Date.now(), a = "singleClick";
|
|
@@ -11198,18 +11196,18 @@ class BM {
|
|
|
11198
11196
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
|
|
11199
11197
|
}
|
|
11200
11198
|
}
|
|
11201
|
-
|
|
11199
|
+
at.touchstart = (t) => {
|
|
11202
11200
|
t.input.lastTouch = Date.now(), wd(t), Bn(t, "pointer");
|
|
11203
11201
|
};
|
|
11204
|
-
|
|
11202
|
+
at.touchmove = (t) => {
|
|
11205
11203
|
t.input.lastTouch = Date.now(), Bn(t, "pointer");
|
|
11206
11204
|
};
|
|
11207
|
-
|
|
11205
|
+
at.contextmenu = (t) => wd(t);
|
|
11208
11206
|
function Sm(t, e) {
|
|
11209
11207
|
return t.composing ? !0 : Ze && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
11210
11208
|
}
|
|
11211
11209
|
const HM = wn ? 5e3 : -1;
|
|
11212
|
-
|
|
11210
|
+
ot.compositionstart = ot.compositionupdate = (t) => {
|
|
11213
11211
|
if (!t.composing) {
|
|
11214
11212
|
t.domObserver.flush();
|
|
11215
11213
|
let { state: e } = t, n = e.selection.$to;
|
|
@@ -11240,7 +11238,7 @@ function UM(t) {
|
|
|
11240
11238
|
let r = e.childNodes[n];
|
|
11241
11239
|
return r.nodeType == 1 && r.contentEditable == "false";
|
|
11242
11240
|
}
|
|
11243
|
-
|
|
11241
|
+
ot.compositionend = (t, e) => {
|
|
11244
11242
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Im(t, 20));
|
|
11245
11243
|
};
|
|
11246
11244
|
function Im(t, e) {
|
|
@@ -11293,7 +11291,7 @@ function YM(t, e) {
|
|
|
11293
11291
|
}, 50);
|
|
11294
11292
|
}
|
|
11295
11293
|
const Da = ct && Un < 15 || gi && B3 < 604;
|
|
11296
|
-
|
|
11294
|
+
at.copy = ot.cut = (t, e) => {
|
|
11297
11295
|
let n = e, r = t.state.selection, i = n.type == "cut";
|
|
11298
11296
|
if (r.empty)
|
|
11299
11297
|
return;
|
|
@@ -11329,7 +11327,7 @@ function jm(t) {
|
|
|
11329
11327
|
let n = t.getData("text/uri-list");
|
|
11330
11328
|
return n ? n.replace(/\r?\n/g, " ") : "";
|
|
11331
11329
|
}
|
|
11332
|
-
|
|
11330
|
+
ot.paste = (t, e) => {
|
|
11333
11331
|
let n = e;
|
|
11334
11332
|
if (t.composing && !wn)
|
|
11335
11333
|
return;
|
|
@@ -11346,7 +11344,7 @@ function Em(t, e) {
|
|
|
11346
11344
|
let n = t.someProp("dragCopies", (r) => !r(e));
|
|
11347
11345
|
return n ?? !e[GM];
|
|
11348
11346
|
}
|
|
11349
|
-
|
|
11347
|
+
at.dragstart = (t, e) => {
|
|
11350
11348
|
let n = e, r = t.input.mouseDown;
|
|
11351
11349
|
if (r && r.done(), !n.dataTransfer)
|
|
11352
11350
|
return;
|
|
@@ -11362,14 +11360,14 @@ it.dragstart = (t, e) => {
|
|
|
11362
11360
|
let s = (o || t.state.selection).content(), { dom: f, text: c, slice: d } = gd(t, s);
|
|
11363
11361
|
(!n.dataTransfer.files.length || !Ae || rm > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Da ? "Text" : "text/html", f.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Da || n.dataTransfer.setData("text/plain", c), t.dragging = new Dm(d, Em(t, n), o);
|
|
11364
11362
|
};
|
|
11365
|
-
|
|
11363
|
+
at.dragend = (t) => {
|
|
11366
11364
|
let e = t.dragging;
|
|
11367
11365
|
window.setTimeout(() => {
|
|
11368
11366
|
t.dragging == e && (t.dragging = null);
|
|
11369
11367
|
}, 50);
|
|
11370
11368
|
};
|
|
11371
|
-
|
|
11372
|
-
|
|
11369
|
+
ot.dragover = ot.dragenter = (t, e) => e.preventDefault();
|
|
11370
|
+
ot.drop = (t, e) => {
|
|
11373
11371
|
try {
|
|
11374
11372
|
_M(t, e, t.dragging);
|
|
11375
11373
|
} finally {
|
|
@@ -11413,16 +11411,16 @@ function _M(t, e, n) {
|
|
|
11413
11411
|
}
|
|
11414
11412
|
t.focus(), t.dispatch(f.setMeta("uiEvent", "drop"));
|
|
11415
11413
|
}
|
|
11416
|
-
|
|
11414
|
+
at.focus = (t) => {
|
|
11417
11415
|
t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = !0, setTimeout(() => {
|
|
11418
11416
|
t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && Mn(t);
|
|
11419
11417
|
}, 20));
|
|
11420
11418
|
};
|
|
11421
|
-
|
|
11419
|
+
at.blur = (t, e) => {
|
|
11422
11420
|
let n = e;
|
|
11423
11421
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
|
11424
11422
|
};
|
|
11425
|
-
|
|
11423
|
+
at.beforeinput = (t, e) => {
|
|
11426
11424
|
if (Ae && wn && e.inputType == "deleteContentBackward") {
|
|
11427
11425
|
t.domObserver.flushSoon();
|
|
11428
11426
|
let { domChangeCount: r } = t.input;
|
|
@@ -11434,8 +11432,8 @@ it.beforeinput = (t, e) => {
|
|
|
11434
11432
|
}, 50);
|
|
11435
11433
|
}
|
|
11436
11434
|
};
|
|
11437
|
-
for (let t in
|
|
11438
|
-
|
|
11435
|
+
for (let t in ot)
|
|
11436
|
+
at[t] = ot[t];
|
|
11439
11437
|
function Aa(t, e) {
|
|
11440
11438
|
if (t == e)
|
|
11441
11439
|
return !0;
|
|
@@ -11820,8 +11818,8 @@ function WM(t, e, n, r, i, a, o) {
|
|
|
11820
11818
|
let x = s[w + 1];
|
|
11821
11819
|
if (x < 0 || p > x + d - u)
|
|
11822
11820
|
continue;
|
|
11823
|
-
let
|
|
11824
|
-
h >=
|
|
11821
|
+
let L = s[w] + d - u;
|
|
11822
|
+
h >= L ? s[w + 1] = p <= L ? -2 : -1 : p >= d && v && (s[w] += v, s[w + 1] += v);
|
|
11825
11823
|
}
|
|
11826
11824
|
u += v;
|
|
11827
11825
|
}), d = n.maps[c].map(d, -1);
|
|
@@ -12239,28 +12237,28 @@ function ox(t, e, n, r, i) {
|
|
|
12239
12237
|
return N(t, or(13, "Enter"));
|
|
12240
12238
|
});
|
|
12241
12239
|
}, 20));
|
|
12242
|
-
let
|
|
12243
|
-
let S = N || t.state.tr.replace(
|
|
12240
|
+
let L = m.start, y = m.endA, k = (N) => {
|
|
12241
|
+
let S = N || t.state.tr.replace(L, y, c.doc.slice(m.start - c.from, m.endB - c.from));
|
|
12244
12242
|
if (c.sel) {
|
|
12245
12243
|
let I = D0(t, S.doc, c.sel);
|
|
12246
|
-
I && !(Ae && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head ==
|
|
12244
|
+
I && !(Ae && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == L || I.head == S.mapping.map(y) - 1) || ct && I.empty && I.head == L) && S.setSelection(I);
|
|
12247
12245
|
}
|
|
12248
12246
|
return a && S.setMeta("composition", a), S.scrollIntoView();
|
|
12249
|
-
},
|
|
12247
|
+
}, C;
|
|
12250
12248
|
if (x)
|
|
12251
12249
|
if (g.pos == v.pos) {
|
|
12252
12250
|
ct && Un <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Mn(t), 20));
|
|
12253
|
-
let N = k(t.state.tr.delete(
|
|
12251
|
+
let N = k(t.state.tr.delete(L, y)), S = d.resolve(m.start).marksAcross(d.resolve(m.endA));
|
|
12254
12252
|
S && N.ensureMarks(S), t.dispatch(N);
|
|
12255
12253
|
} else if (
|
|
12256
12254
|
// Adding or removing a mark
|
|
12257
|
-
m.endA == m.endB && (
|
|
12255
|
+
m.endA == m.endB && (C = sx(g.parent.content.cut(g.parentOffset, v.parentOffset), w.parent.content.cut(w.parentOffset, m.endA - w.start())))
|
|
12258
12256
|
) {
|
|
12259
12257
|
let N = k(t.state.tr);
|
|
12260
|
-
|
|
12258
|
+
C.type == "add" ? N.addMark(L, y, C.mark) : N.removeMark(L, y, C.mark), t.dispatch(N);
|
|
12261
12259
|
} else if (g.parent.child(g.index()).isText && g.index() == v.index() - (v.textOffset ? 0 : 1)) {
|
|
12262
|
-
let N = g.parent.textBetween(g.parentOffset, v.parentOffset), S = () => k(t.state.tr.insertText(N,
|
|
12263
|
-
t.someProp("handleTextInput", (I) => I(t,
|
|
12260
|
+
let N = g.parent.textBetween(g.parentOffset, v.parentOffset), S = () => k(t.state.tr.insertText(N, L, y));
|
|
12261
|
+
t.someProp("handleTextInput", (I) => I(t, L, y, N, S)) || t.dispatch(S());
|
|
12264
12262
|
} else
|
|
12265
12263
|
t.dispatch(k());
|
|
12266
12264
|
else
|
|
@@ -13323,8 +13321,8 @@ var Ux = (t) => !("type" in t), Fx = (t, e, n) => ({ tr: r, dispatch: i, editor:
|
|
|
13323
13321
|
r.insertText(g, d, u);
|
|
13324
13322
|
} else {
|
|
13325
13323
|
g = s;
|
|
13326
|
-
const v = r.doc.resolve(d), w = v.node(), x = v.parentOffset === 0,
|
|
13327
|
-
x &&
|
|
13324
|
+
const v = r.doc.resolve(d), w = v.node(), x = v.parentOffset === 0, L = w.isText || w.isTextblock, y = w.content.size > 0;
|
|
13325
|
+
x && L && y && (d = Math.max(0, d - 1)), r.replaceWith(d, u, g);
|
|
13328
13326
|
}
|
|
13329
13327
|
n.updateSelection && Hx(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: g });
|
|
13330
13328
|
}
|
|
@@ -13679,10 +13677,10 @@ function gC(t, e) {
|
|
|
13679
13677
|
storage: c.storage,
|
|
13680
13678
|
editor: e
|
|
13681
13679
|
}, p = t.reduce((w, x) => {
|
|
13682
|
-
const
|
|
13680
|
+
const L = Q(x, "extendNodeSchema", u);
|
|
13683
13681
|
return {
|
|
13684
13682
|
...w,
|
|
13685
|
-
...
|
|
13683
|
+
...L ? L(c) : {}
|
|
13686
13684
|
};
|
|
13687
13685
|
}, {}), h = F0({
|
|
13688
13686
|
...p,
|
|
@@ -13917,8 +13915,8 @@ function uc(t, e, n = {}) {
|
|
|
13917
13915
|
t.doc.nodesBetween(h, m, (g, v) => {
|
|
13918
13916
|
if (!g.isText && !g.marks.length)
|
|
13919
13917
|
return;
|
|
13920
|
-
const w = Math.max(h, v), x = Math.min(m, v + g.nodeSize),
|
|
13921
|
-
o +=
|
|
13918
|
+
const w = Math.max(h, v), x = Math.min(m, v + g.nodeSize), L = x - w;
|
|
13919
|
+
o += L, s.push(
|
|
13922
13920
|
...g.marks.map((y) => ({
|
|
13923
13921
|
mark: y,
|
|
13924
13922
|
from: w,
|
|
@@ -14152,7 +14150,7 @@ var RC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14152
14150
|
const x = f.index(-1) ? 1 : f.index(-2) ? 2 : 3;
|
|
14153
14151
|
for (let S = f.depth - x; S >= f.depth - 3; S -= 1)
|
|
14154
14152
|
w = E.from(f.node(S).copy(w));
|
|
14155
|
-
const
|
|
14153
|
+
const L = (
|
|
14156
14154
|
// eslint-disable-next-line no-nested-ternary
|
|
14157
14155
|
f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3
|
|
14158
14156
|
), y = {
|
|
@@ -14160,10 +14158,10 @@ var RC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14160
14158
|
...e
|
|
14161
14159
|
}, k = ((o = s.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
|
|
14162
14160
|
w = w.append(E.from(s.createAndFill(null, k) || void 0));
|
|
14163
|
-
const
|
|
14164
|
-
n.replace(
|
|
14161
|
+
const C = f.before(f.depth - (x - 1));
|
|
14162
|
+
n.replace(C, f.after(-L), new H(w, 4 - x, 0));
|
|
14165
14163
|
let N = -1;
|
|
14166
|
-
n.doc.nodesBetween(
|
|
14164
|
+
n.doc.nodesBetween(C, n.doc.content.size, (S, I) => {
|
|
14167
14165
|
if (N > -1)
|
|
14168
14166
|
return !1;
|
|
14169
14167
|
S.isTextblock && S.content.size === 0 && (N = I + 1);
|
|
@@ -14186,10 +14184,10 @@ var RC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14186
14184
|
if (!yn(n.doc, f.pos, 2))
|
|
14187
14185
|
return !1;
|
|
14188
14186
|
if (i) {
|
|
14189
|
-
const { selection: w, storedMarks: x } = r, { splittableMarks:
|
|
14187
|
+
const { selection: w, storedMarks: x } = r, { splittableMarks: L } = a.extensionManager, y = x || w.$to.parentOffset && w.$from.marks();
|
|
14190
14188
|
if (n.split(f.pos, 2, v).scrollIntoView(), !y || !i)
|
|
14191
14189
|
return !0;
|
|
14192
|
-
const k = y.filter((
|
|
14190
|
+
const k = y.filter((C) => L.includes(C.type.name));
|
|
14193
14191
|
n.ensureMarks(k);
|
|
14194
14192
|
}
|
|
14195
14193
|
return !0;
|
|
@@ -14212,19 +14210,19 @@ var RC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14212
14210
|
const i = t.doc.nodeAt(r);
|
|
14213
14211
|
return n.node.type === (i == null ? void 0 : i.type) && Zn(t.doc, r) && t.join(r), !0;
|
|
14214
14212
|
}, HC = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: f, commands: c, can: d }) => {
|
|
14215
|
-
const { extensions: u, splittableMarks: p } = i.extensionManager, h = Te(t, o.schema), m = Te(e, o.schema), { selection: g, storedMarks: v } = o, { $from: w, $to: x } = g,
|
|
14216
|
-
if (!
|
|
14213
|
+
const { extensions: u, splittableMarks: p } = i.extensionManager, h = Te(t, o.schema), m = Te(e, o.schema), { selection: g, storedMarks: v } = o, { $from: w, $to: x } = g, L = w.blockRange(x), y = v || g.$to.parentOffset && g.$from.marks();
|
|
14214
|
+
if (!L)
|
|
14217
14215
|
return !1;
|
|
14218
|
-
const k = Mf((
|
|
14219
|
-
if (
|
|
14216
|
+
const k = Mf((C) => Q0(C.type.name, u))(g);
|
|
14217
|
+
if (L.depth >= 1 && k && L.depth - k.depth <= 1) {
|
|
14220
14218
|
if (k.node.type === h)
|
|
14221
14219
|
return c.liftListItem(m);
|
|
14222
14220
|
if (Q0(k.node.type.name, u) && h.validContent(k.node.content) && s)
|
|
14223
14221
|
return f().command(() => (a.setNodeMarkup(k.pos, h), !0)).command(() => wl(a, h)).command(() => yl(a, h)).run();
|
|
14224
14222
|
}
|
|
14225
14223
|
return !n || !y || !s ? f().command(() => d().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => wl(a, h)).command(() => yl(a, h)).run() : f().command(() => {
|
|
14226
|
-
const
|
|
14227
|
-
return a.ensureMarks(N),
|
|
14224
|
+
const C = d().wrapInList(h, r), N = y.filter((S) => p.includes(S.type.name));
|
|
14225
|
+
return a.ensureMarks(N), C ? !0 : c.clearNodes();
|
|
14228
14226
|
}).wrapInList(h, r).command(() => wl(a, h)).command(() => yl(a, h)).run();
|
|
14229
14227
|
}, UC = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
14230
14228
|
const { extendEmptyMarkRange: a = !1 } = n, o = Ln(t, r.schema);
|
|
@@ -14305,9 +14303,9 @@ var RC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14305
14303
|
...e
|
|
14306
14304
|
})), o && v.marks.length && v.marks.forEach((x) => {
|
|
14307
14305
|
if (o === x.type && (f = !0, i)) {
|
|
14308
|
-
const
|
|
14306
|
+
const L = Math.max(w, d), y = Math.min(w + v.nodeSize, u);
|
|
14309
14307
|
n.addMark(
|
|
14310
|
-
|
|
14308
|
+
L,
|
|
14311
14309
|
y,
|
|
14312
14310
|
o.create({
|
|
14313
14311
|
...x.attrs,
|
|
@@ -14399,7 +14397,7 @@ function Lo(t) {
|
|
|
14399
14397
|
}), v = {
|
|
14400
14398
|
from: r - (h[0].length - a.length),
|
|
14401
14399
|
to: i
|
|
14402
|
-
}, { commands: w, chain: x, can:
|
|
14400
|
+
}, { commands: w, chain: x, can: L } = new wf({
|
|
14403
14401
|
editor: n,
|
|
14404
14402
|
state: g
|
|
14405
14403
|
});
|
|
@@ -14409,7 +14407,7 @@ function Lo(t) {
|
|
|
14409
14407
|
match: h,
|
|
14410
14408
|
commands: w,
|
|
14411
14409
|
chain: x,
|
|
14412
|
-
can:
|
|
14410
|
+
can: L
|
|
14413
14411
|
}) === null || !m.steps.length || (p.undoable && m.setMeta(s, {
|
|
14414
14412
|
transform: m,
|
|
14415
14413
|
from: r,
|
|
@@ -14594,13 +14592,13 @@ function r6(t) {
|
|
|
14594
14592
|
state: n
|
|
14595
14593
|
}), u = [];
|
|
14596
14594
|
return n.doc.nodesBetween(r, i, (h, m) => {
|
|
14597
|
-
var g, v, w, x,
|
|
14595
|
+
var g, v, w, x, L;
|
|
14598
14596
|
if ((v = (g = h.type) == null ? void 0 : g.spec) != null && v.code || !(h.isText || h.isTextblock || h.isInline))
|
|
14599
14597
|
return;
|
|
14600
|
-
const y = (
|
|
14601
|
-
if (k >=
|
|
14598
|
+
const y = (L = (x = (w = h.content) == null ? void 0 : w.size) != null ? x : h.nodeSize) != null ? L : 0, k = Math.max(r, m), C = Math.min(i, m + y);
|
|
14599
|
+
if (k >= C)
|
|
14602
14600
|
return;
|
|
14603
|
-
const N = h.isText ? h.text || "" : h.textBetween(k - m,
|
|
14601
|
+
const N = h.isText ? h.text || "" : h.textBetween(k - m, C - m, void 0, "");
|
|
14604
14602
|
n6(N, a.find, o).forEach((I) => {
|
|
14605
14603
|
if (I.index === void 0)
|
|
14606
14604
|
return;
|
|
@@ -14705,21 +14703,21 @@ function a6(t) {
|
|
|
14705
14703
|
if (x) {
|
|
14706
14704
|
let { text: k } = w;
|
|
14707
14705
|
typeof k == "string" ? k = k : k = Sd(E.from(k), h.schema);
|
|
14708
|
-
const { from:
|
|
14706
|
+
const { from: C } = w, N = C + k.length, S = i6(k);
|
|
14709
14707
|
return f({
|
|
14710
14708
|
rule: d,
|
|
14711
14709
|
state: h,
|
|
14712
|
-
from:
|
|
14710
|
+
from: C,
|
|
14713
14711
|
to: { b: N },
|
|
14714
14712
|
pasteEvt: S
|
|
14715
14713
|
});
|
|
14716
14714
|
}
|
|
14717
|
-
const
|
|
14718
|
-
if (!(!e6(
|
|
14715
|
+
const L = p.doc.content.findDiffStart(h.doc.content), y = p.doc.content.findDiffEnd(h.doc.content);
|
|
14716
|
+
if (!(!e6(L) || !y || L === y.b))
|
|
14719
14717
|
return f({
|
|
14720
14718
|
rule: d,
|
|
14721
14719
|
state: h,
|
|
14722
|
-
from:
|
|
14720
|
+
from: L,
|
|
14723
14721
|
to: y,
|
|
14724
14722
|
pasteEvt: o
|
|
14725
14723
|
});
|
|
@@ -15011,21 +15009,21 @@ var Ce = class ig extends jd {
|
|
|
15011
15009
|
d.steps.forEach((h, m) => {
|
|
15012
15010
|
var g, v;
|
|
15013
15011
|
if (h instanceof Yt) {
|
|
15014
|
-
const w = p.slice(m).map(h.from, -1), x = p.slice(m).map(h.to),
|
|
15012
|
+
const w = p.slice(m).map(h.from, -1), x = p.slice(m).map(h.to), L = p.invert().map(w, -1), y = p.invert().map(x), k = (g = d.doc.nodeAt(w - 1)) == null ? void 0 : g.marks.some((N) => N.eq(h.mark)), C = (v = d.doc.nodeAt(x)) == null ? void 0 : v.marks.some((N) => N.eq(h.mark));
|
|
15015
15013
|
this.editor.emit("delete", {
|
|
15016
15014
|
type: "mark",
|
|
15017
15015
|
mark: h.mark,
|
|
15018
15016
|
from: h.from,
|
|
15019
15017
|
to: h.to,
|
|
15020
15018
|
deletedRange: {
|
|
15021
|
-
from:
|
|
15019
|
+
from: L,
|
|
15022
15020
|
to: y
|
|
15023
15021
|
},
|
|
15024
15022
|
newRange: {
|
|
15025
15023
|
from: w,
|
|
15026
15024
|
to: x
|
|
15027
15025
|
},
|
|
15028
|
-
partial: !!(
|
|
15026
|
+
partial: !!(C || k),
|
|
15029
15027
|
editor: this.editor,
|
|
15030
15028
|
transaction: t,
|
|
15031
15029
|
combinedTransform: d
|
|
@@ -16364,10 +16362,10 @@ function b6(t) {
|
|
|
16364
16362
|
const g = new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), v = u.match(g);
|
|
16365
16363
|
if (!v)
|
|
16366
16364
|
return;
|
|
16367
|
-
const [w, x = ""] = v,
|
|
16365
|
+
const [w, x = ""] = v, L = i(x);
|
|
16368
16366
|
let y = 1;
|
|
16369
16367
|
const k = w.length;
|
|
16370
|
-
let
|
|
16368
|
+
let C = "";
|
|
16371
16369
|
const N = /^:::([\w-]*)(\s.*)?/gm, S = u.slice(k);
|
|
16372
16370
|
for (N.lastIndex = 0; ; ) {
|
|
16373
16371
|
const I = N.exec(S);
|
|
@@ -16379,10 +16377,10 @@ function b6(t) {
|
|
|
16379
16377
|
y += 1;
|
|
16380
16378
|
else if (y -= 1, y === 0) {
|
|
16381
16379
|
const Y = S.slice(0, D);
|
|
16382
|
-
|
|
16380
|
+
C = Y.trim();
|
|
16383
16381
|
const P = u.slice(0, k + D + I[0].length);
|
|
16384
16382
|
let F = [];
|
|
16385
|
-
if (
|
|
16383
|
+
if (C)
|
|
16386
16384
|
if (s === "block")
|
|
16387
16385
|
for (F = h.blockTokens(Y), F.forEach((A) => {
|
|
16388
16386
|
A.text && (!A.tokens || A.tokens.length === 0) && (A.tokens = h.inlineTokens(A.text));
|
|
@@ -16394,12 +16392,12 @@ function b6(t) {
|
|
|
16394
16392
|
break;
|
|
16395
16393
|
}
|
|
16396
16394
|
else
|
|
16397
|
-
F = h.inlineTokens(
|
|
16395
|
+
F = h.inlineTokens(C);
|
|
16398
16396
|
return {
|
|
16399
16397
|
type: e,
|
|
16400
16398
|
raw: P,
|
|
16401
|
-
attributes:
|
|
16402
|
-
content:
|
|
16399
|
+
attributes: L,
|
|
16400
|
+
content: C,
|
|
16403
16401
|
tokens: F
|
|
16404
16402
|
};
|
|
16405
16403
|
}
|
|
@@ -16484,12 +16482,12 @@ function bg(t) {
|
|
|
16484
16482
|
const [, y, k] = v;
|
|
16485
16483
|
x = y, w = k || "";
|
|
16486
16484
|
}
|
|
16487
|
-
const
|
|
16485
|
+
const L = i(x.trim());
|
|
16488
16486
|
return {
|
|
16489
16487
|
type: e,
|
|
16490
16488
|
raw: v[0],
|
|
16491
16489
|
content: w.trim(),
|
|
16492
|
-
attributes:
|
|
16490
|
+
attributes: L
|
|
16493
16491
|
};
|
|
16494
16492
|
}
|
|
16495
16493
|
},
|
|
@@ -16543,9 +16541,9 @@ function pc(t, e, n) {
|
|
|
16543
16541
|
break;
|
|
16544
16542
|
}
|
|
16545
16543
|
let x;
|
|
16546
|
-
const
|
|
16547
|
-
if (
|
|
16548
|
-
const k =
|
|
16544
|
+
const L = w.slice(1);
|
|
16545
|
+
if (L.length > 0) {
|
|
16546
|
+
const k = L.map((C) => C.slice(g + u)).join(`
|
|
16549
16547
|
`);
|
|
16550
16548
|
k.trim() && (e.customNestedParser ? x = e.customNestedParser(k) : x = n.blockTokens(k));
|
|
16551
16549
|
}
|
|
@@ -16596,7 +16594,7 @@ function y6(t, e, n = {}) {
|
|
|
16596
16594
|
}
|
|
16597
16595
|
}), a.docChanged && e.view.dispatch(a);
|
|
16598
16596
|
}
|
|
16599
|
-
var
|
|
16597
|
+
var st = class vg extends jd {
|
|
16600
16598
|
constructor() {
|
|
16601
16599
|
super(...arguments), this.type = "node";
|
|
16602
16600
|
}
|
|
@@ -16783,22 +16781,22 @@ function K6(t) {
|
|
|
16783
16781
|
return !1;
|
|
16784
16782
|
if (x !== "object")
|
|
16785
16783
|
return x === "number" ? o(g, v, w) : x === "function" ? i(g, v, w) : !1;
|
|
16786
|
-
var
|
|
16787
|
-
if (
|
|
16784
|
+
var L = g.constructor;
|
|
16785
|
+
if (L !== v.constructor)
|
|
16788
16786
|
return !1;
|
|
16789
|
-
if (
|
|
16787
|
+
if (L === Object)
|
|
16790
16788
|
return s(g, v, w);
|
|
16791
16789
|
if (Z6(g))
|
|
16792
16790
|
return e(g, v, w);
|
|
16793
16791
|
if (K0 != null && K0(g))
|
|
16794
16792
|
return u(g, v, w);
|
|
16795
|
-
if (
|
|
16793
|
+
if (L === Date)
|
|
16796
16794
|
return n(g, v, w);
|
|
16797
|
-
if (
|
|
16795
|
+
if (L === RegExp)
|
|
16798
16796
|
return c(g, v, w);
|
|
16799
|
-
if (
|
|
16797
|
+
if (L === Map)
|
|
16800
16798
|
return a(g, v, w);
|
|
16801
|
-
if (
|
|
16799
|
+
if (L === Set)
|
|
16802
16800
|
return d(g, v, w);
|
|
16803
16801
|
var y = q6(g);
|
|
16804
16802
|
if (y === F6)
|
|
@@ -16822,8 +16820,8 @@ function K6(t) {
|
|
|
16822
16820
|
if (h) {
|
|
16823
16821
|
var k = h[y];
|
|
16824
16822
|
if (!k) {
|
|
16825
|
-
var
|
|
16826
|
-
|
|
16823
|
+
var C = L6(g);
|
|
16824
|
+
C && (k = h[C]);
|
|
16827
16825
|
}
|
|
16828
16826
|
if (k)
|
|
16829
16827
|
return k(g, v, w);
|
|
@@ -16940,7 +16938,7 @@ var rL = (...t) => (e) => {
|
|
|
16940
16938
|
t.getSnapshot,
|
|
16941
16939
|
t.getServerSnapshot
|
|
16942
16940
|
);
|
|
16943
|
-
return /* @__PURE__ */ l(
|
|
16941
|
+
return /* @__PURE__ */ l(rt, { children: Object.values(e) });
|
|
16944
16942
|
};
|
|
16945
16943
|
function aL() {
|
|
16946
16944
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -17026,7 +17024,7 @@ var oL = class extends gt.Component {
|
|
|
17026
17024
|
}
|
|
17027
17025
|
render() {
|
|
17028
17026
|
const { editor: t, innerRef: e, ...n } = this.props;
|
|
17029
|
-
return /* @__PURE__ */ b(
|
|
17027
|
+
return /* @__PURE__ */ b(rt, { children: [
|
|
17030
17028
|
/* @__PURE__ */ l("div", { ref: rL(e, this.editorContentRef), ...n }),
|
|
17031
17029
|
(t == null ? void 0 : t.contentComponent) && /* @__PURE__ */ l(iL, { contentComponent: t.contentComponent })
|
|
17032
17030
|
] });
|
|
@@ -17386,7 +17384,7 @@ var hs = (t, e) => {
|
|
|
17386
17384
|
if (t === "svg")
|
|
17387
17385
|
throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
17388
17386
|
return [t, r, n];
|
|
17389
|
-
}, yL = /^\s*>\s$/, ML =
|
|
17387
|
+
}, yL = /^\s*>\s$/, ML = st.create({
|
|
17390
17388
|
name: "blockquote",
|
|
17391
17389
|
addOptions() {
|
|
17392
17390
|
return {
|
|
@@ -17552,7 +17550,7 @@ ${n}
|
|
|
17552
17550
|
})
|
|
17553
17551
|
];
|
|
17554
17552
|
}
|
|
17555
|
-
}), Ml = 4, jL = /^```([a-z]+)?[\s\n]$/, DL = /^~~~([a-z]+)?[\s\n]$/, EL =
|
|
17553
|
+
}), Ml = 4, jL = /^```([a-z]+)?[\s\n]$/, DL = /^~~~([a-z]+)?[\s\n]$/, EL = st.create({
|
|
17556
17554
|
name: "codeBlock",
|
|
17557
17555
|
addOptions() {
|
|
17558
17556
|
return {
|
|
@@ -17671,20 +17669,20 @@ ${n}
|
|
|
17671
17669
|
`);
|
|
17672
17670
|
let m = 0, g = 0;
|
|
17673
17671
|
const v = c - d;
|
|
17674
|
-
for (let
|
|
17675
|
-
if (g + h[
|
|
17676
|
-
m =
|
|
17672
|
+
for (let C = 0; C < h.length; C += 1) {
|
|
17673
|
+
if (g + h[C].length >= v) {
|
|
17674
|
+
m = C;
|
|
17677
17675
|
break;
|
|
17678
17676
|
}
|
|
17679
|
-
g += h[
|
|
17677
|
+
g += h[C].length + 1;
|
|
17680
17678
|
}
|
|
17681
|
-
const x = ((f = h[m].match(/^ */)) == null ? void 0 : f[0]) || "",
|
|
17682
|
-
if (
|
|
17679
|
+
const x = ((f = h[m].match(/^ */)) == null ? void 0 : f[0]) || "", L = Math.min(x.length, n);
|
|
17680
|
+
if (L === 0)
|
|
17683
17681
|
return !0;
|
|
17684
17682
|
let y = d;
|
|
17685
|
-
for (let
|
|
17686
|
-
y += h[
|
|
17687
|
-
return s.delete(y, y +
|
|
17683
|
+
for (let C = 0; C < m; C += 1)
|
|
17684
|
+
y += h[C].length + 1;
|
|
17685
|
+
return s.delete(y, y + L), c - y <= L && s.setSelection(W.create(s.doc, y)), !0;
|
|
17688
17686
|
}) : t.commands.command(({ tr: s }) => {
|
|
17689
17687
|
const { from: f, to: c } = i, p = r.doc.textBetween(f, c, `
|
|
17690
17688
|
`, `
|
|
@@ -17761,14 +17759,14 @@ ${n}
|
|
|
17761
17759
|
})
|
|
17762
17760
|
];
|
|
17763
17761
|
}
|
|
17764
|
-
}), AL =
|
|
17762
|
+
}), AL = st.create({
|
|
17765
17763
|
name: "doc",
|
|
17766
17764
|
topNode: !0,
|
|
17767
17765
|
content: "block+",
|
|
17768
17766
|
renderMarkdown: (t, e) => t.content ? e.renderChildren(t.content, `
|
|
17769
17767
|
|
|
17770
17768
|
`) : ""
|
|
17771
|
-
}), zL =
|
|
17769
|
+
}), zL = st.create({
|
|
17772
17770
|
name: "hardBreak",
|
|
17773
17771
|
markdownTokenName: "br",
|
|
17774
17772
|
addOptions() {
|
|
@@ -17822,7 +17820,7 @@ ${n}
|
|
|
17822
17820
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
17823
17821
|
};
|
|
17824
17822
|
}
|
|
17825
|
-
}), OL =
|
|
17823
|
+
}), OL = st.create({
|
|
17826
17824
|
name: "heading",
|
|
17827
17825
|
addOptions() {
|
|
17828
17826
|
return {
|
|
@@ -17880,7 +17878,7 @@ ${n}
|
|
|
17880
17878
|
}
|
|
17881
17879
|
}));
|
|
17882
17880
|
}
|
|
17883
|
-
}), PL =
|
|
17881
|
+
}), PL = st.create({
|
|
17884
17882
|
name: "horizontalRule",
|
|
17885
17883
|
addOptions() {
|
|
17886
17884
|
return {
|
|
@@ -18016,11 +18014,11 @@ function _L(t, e) {
|
|
|
18016
18014
|
e[r].indexOf(t) >= 0 && (n[r] = !0);
|
|
18017
18015
|
return n;
|
|
18018
18016
|
}
|
|
18019
|
-
function
|
|
18017
|
+
function ft(t = null) {
|
|
18020
18018
|
this.j = {}, this.jr = [], this.jd = null, this.t = t;
|
|
18021
18019
|
}
|
|
18022
|
-
|
|
18023
|
-
|
|
18020
|
+
ft.groups = {};
|
|
18021
|
+
ft.prototype = {
|
|
18024
18022
|
accepts() {
|
|
18025
18023
|
return !!this.t;
|
|
18026
18024
|
},
|
|
@@ -18073,9 +18071,9 @@ st.prototype = {
|
|
|
18073
18071
|
* @returns {State<T>} taken after the given input
|
|
18074
18072
|
*/
|
|
18075
18073
|
tr(t, e, n, r) {
|
|
18076
|
-
r = r ||
|
|
18074
|
+
r = r || ft.groups;
|
|
18077
18075
|
let i;
|
|
18078
|
-
return e && e.j ? i = e : (i = new
|
|
18076
|
+
return e && e.j ? i = e : (i = new ft(e), n && r && dr(e, n, r)), this.jr.push([t, i]), i;
|
|
18079
18077
|
},
|
|
18080
18078
|
/**
|
|
18081
18079
|
* Short for "take transitions", will take as many sequential transitions as
|
|
@@ -18123,13 +18121,13 @@ st.prototype = {
|
|
|
18123
18121
|
* @returns {State<T>} taken after the given input
|
|
18124
18122
|
*/
|
|
18125
18123
|
tt(t, e, n, r) {
|
|
18126
|
-
r = r ||
|
|
18124
|
+
r = r || ft.groups;
|
|
18127
18125
|
const i = this;
|
|
18128
18126
|
if (e && e.j)
|
|
18129
18127
|
return i.j[t] = e, e;
|
|
18130
18128
|
const a = e;
|
|
18131
18129
|
let o, s = i.go(t);
|
|
18132
|
-
if (s ? (o = new
|
|
18130
|
+
if (s ? (o = new ft(), Object.assign(o.j, s.j), o.jr.push.apply(o.jr, s.jr), o.jd = s.jd, o.t = s.t) : o = new ft(), a) {
|
|
18133
18131
|
if (r)
|
|
18134
18132
|
if (o.t && typeof o.t == "string") {
|
|
18135
18133
|
const f = Object.assign(_L(o.t, r), n);
|
|
@@ -18204,8 +18202,8 @@ const cn = /[a-z]/, Yi = new RegExp("\\p{L}", "u"), Cl = new RegExp("\\p{Emoji}"
|
|
|
18204
18202
|
let Io = null, To = null;
|
|
18205
18203
|
function ZL(t = []) {
|
|
18206
18204
|
const e = {};
|
|
18207
|
-
|
|
18208
|
-
const n = new
|
|
18205
|
+
ft.groups = e;
|
|
18206
|
+
const n = new ft();
|
|
18209
18207
|
Io == null && (Io = ah(JL)), To == null && (To = ah(YL)), z(n, "'", Ts), z(n, "{", la), z(n, "}", ca), z(n, "[", ps), z(n, "]", ms), z(n, "(", gs), z(n, ")", bs), z(n, "<", vs), z(n, ">", ws), z(n, "(", ys), z(n, ")", Ms), z(n, "「", xs), z(n, "」", Cs), z(n, "『", Ls), z(n, "』", Ns), z(n, "<", ks), z(n, ">", Ss), z(n, "&", Is), z(n, "*", js), z(n, "@", En), z(n, "`", Es), z(n, "^", As), z(n, ":", On), z(n, ",", Pd), z(n, "$", zs), z(n, ".", Vt), z(n, "=", Os), z(n, "!", Rd), z(n, "-", St), z(n, "%", da), z(n, "|", Ps), z(n, "+", Rs), z(n, "#", Bs), z(n, "?", ua), z(n, '"', Bd), z(n, "/", Gt), z(n, ";", Hd), z(n, "~", ha), z(n, "_", Hs), z(n, "\\", Ds), z(n, "・", kg);
|
|
18210
18208
|
const r = Me(n, dn, zd, {
|
|
18211
18209
|
[gc]: !0
|
|
@@ -18265,7 +18263,7 @@ function ZL(t = []) {
|
|
|
18265
18263
|
}
|
|
18266
18264
|
return rh(n, "localhost", Oa, {
|
|
18267
18265
|
ascii: !0
|
|
18268
|
-
}), n.jd = new
|
|
18266
|
+
}), n.jd = new ft(Us), {
|
|
18269
18267
|
start: n,
|
|
18270
18268
|
tokens: Object.assign({
|
|
18271
18269
|
groups: e
|
|
@@ -18306,9 +18304,9 @@ function Tn(t, e, n, r, i) {
|
|
|
18306
18304
|
const o = e.length;
|
|
18307
18305
|
for (let s = 0; s < o - 1; s++) {
|
|
18308
18306
|
const f = e[s];
|
|
18309
|
-
t.j[f] ? a = t.j[f] : (a = new
|
|
18307
|
+
t.j[f] ? a = t.j[f] : (a = new ft(r), a.jr = i.slice(), t.j[f] = a), t = a;
|
|
18310
18308
|
}
|
|
18311
|
-
return a = new
|
|
18309
|
+
return a = new ft(n), a.jr = i.slice(), t.j[e[o - 1]] = a, a;
|
|
18312
18310
|
}
|
|
18313
18311
|
function ah(t) {
|
|
18314
18312
|
const e = [], n = [];
|
|
@@ -18558,7 +18556,7 @@ const sh = Nf("email", {
|
|
|
18558
18556
|
const t = this.tk;
|
|
18559
18557
|
return t.length >= 2 && t[0].t !== Oa && t[1].t === On;
|
|
18560
18558
|
}
|
|
18561
|
-
}), Lt = (t) => new
|
|
18559
|
+
}), Lt = (t) => new ft(t);
|
|
18562
18560
|
function XL({
|
|
18563
18561
|
groups: t
|
|
18564
18562
|
}) {
|
|
@@ -18584,10 +18582,10 @@ function XL({
|
|
|
18584
18582
|
z(v, St, v), q(v, t.domain, o), q(w, r, a), q(w, t.domain, o);
|
|
18585
18583
|
const x = Lt(jo);
|
|
18586
18584
|
q(w, t.tld, x), q(w, t.utld, x), q(x, t.domain, o), q(x, r, a), z(x, Vt, w), z(x, St, v), z(x, En, c);
|
|
18587
|
-
const
|
|
18588
|
-
q(
|
|
18589
|
-
const k = Lt(jo),
|
|
18590
|
-
q(k, e, k), q(k, n,
|
|
18585
|
+
const L = z(x, On), y = Lt(jo);
|
|
18586
|
+
q(L, t.numeric, y);
|
|
18587
|
+
const k = Lt(jo), C = Lt();
|
|
18588
|
+
q(k, e, k), q(k, n, C), q(C, e, k), q(C, n, C), z(x, Gt, k), z(y, Gt, k);
|
|
18591
18589
|
const N = z(s, On), S = z(f, On), I = z(S, Gt), D = z(I, Gt);
|
|
18592
18590
|
q(s, t.domain, o), z(s, Vt, w), z(s, St, v), q(f, t.domain, o), z(f, Vt, w), z(f, St, v), q(N, t.domain, k), z(N, Gt, k), z(N, ua, k), q(D, t.domain, k), q(D, e, k), z(D, Gt, k);
|
|
18593
18591
|
const U = [
|
|
@@ -18610,7 +18608,7 @@ function XL({
|
|
|
18610
18608
|
];
|
|
18611
18609
|
for (let Y = 0; Y < U.length; Y++) {
|
|
18612
18610
|
const [P, F] = U[Y], A = z(k, P);
|
|
18613
|
-
z(
|
|
18611
|
+
z(C, P, A), z(A, F, k);
|
|
18614
18612
|
const G = Lt(jo);
|
|
18615
18613
|
q(A, e, G);
|
|
18616
18614
|
const $ = Lt();
|
|
@@ -18653,7 +18651,7 @@ const tN = typeof console < "u" && console && console.warn || (() => {
|
|
|
18653
18651
|
initialized: !1
|
|
18654
18652
|
};
|
|
18655
18653
|
function rN() {
|
|
18656
|
-
return
|
|
18654
|
+
return ft.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
|
|
18657
18655
|
}
|
|
18658
18656
|
function lh(t, e = !1) {
|
|
18659
18657
|
if (ue.initialized && tN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${nN}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
|
|
@@ -18993,7 +18991,7 @@ var Eg = Er.create({
|
|
|
18993
18991
|
}), uN = Eg, hN = Object.defineProperty, pN = (t, e) => {
|
|
18994
18992
|
for (var n in e)
|
|
18995
18993
|
hN(t, n, { get: e[n], enumerable: !0 });
|
|
18996
|
-
}, mN = "listItem", ch = "textStyle", dh = /^\s*([-+*])\s$/, Ag =
|
|
18994
|
+
}, mN = "listItem", ch = "textStyle", dh = /^\s*([-+*])\s$/, Ag = st.create({
|
|
18997
18995
|
name: "bulletList",
|
|
18998
18996
|
addOptions() {
|
|
18999
18997
|
return {
|
|
@@ -19047,7 +19045,7 @@ var Eg = Er.create({
|
|
|
19047
19045
|
editor: this.editor
|
|
19048
19046
|
})), [t];
|
|
19049
19047
|
}
|
|
19050
|
-
}), zg =
|
|
19048
|
+
}), zg = st.create({
|
|
19051
19049
|
name: "listItem",
|
|
19052
19050
|
addOptions() {
|
|
19053
19051
|
return {
|
|
@@ -19339,7 +19337,7 @@ function yN(t, e) {
|
|
|
19339
19337
|
};
|
|
19340
19338
|
});
|
|
19341
19339
|
}
|
|
19342
|
-
var MN = "listItem", hh = "textStyle", ph = /^(\d+)\.\s$/, Jg =
|
|
19340
|
+
var MN = "listItem", hh = "textStyle", ph = /^(\d+)\.\s$/, Jg = st.create({
|
|
19343
19341
|
name: "orderedList",
|
|
19344
19342
|
addOptions() {
|
|
19345
19343
|
return {
|
|
@@ -19446,7 +19444,7 @@ var MN = "listItem", hh = "textStyle", ph = /^(\d+)\.\s$/, Jg = ot.create({
|
|
|
19446
19444
|
editor: this.editor
|
|
19447
19445
|
})), [t];
|
|
19448
19446
|
}
|
|
19449
|
-
}), xN = /^\s*(\[([( |x])?\])\s$/, CN =
|
|
19447
|
+
}), xN = /^\s*(\[([( |x])?\])\s$/, CN = st.create({
|
|
19450
19448
|
name: "taskItem",
|
|
19451
19449
|
addOptions() {
|
|
19452
19450
|
return {
|
|
@@ -19570,7 +19568,7 @@ var MN = "listItem", hh = "textStyle", ph = /^(\d+)\.\s$/, Jg = ot.create({
|
|
|
19570
19568
|
})
|
|
19571
19569
|
];
|
|
19572
19570
|
}
|
|
19573
|
-
}), LN =
|
|
19571
|
+
}), LN = st.create({
|
|
19574
19572
|
name: "taskList",
|
|
19575
19573
|
addOptions() {
|
|
19576
19574
|
return {
|
|
@@ -19690,7 +19688,7 @@ Ce.create({
|
|
|
19690
19688
|
return this.options.bulletList !== !1 && t.push(Ag.configure(this.options.bulletList)), this.options.listItem !== !1 && t.push(zg.configure(this.options.listItem)), this.options.listKeymap !== !1 && t.push(Ug.configure(this.options.listKeymap)), this.options.orderedList !== !1 && t.push(Jg.configure(this.options.orderedList)), this.options.taskItem !== !1 && t.push(CN.configure(this.options.taskItem)), this.options.taskList !== !1 && t.push(LN.configure(this.options.taskList)), t;
|
|
19691
19689
|
}
|
|
19692
19690
|
});
|
|
19693
|
-
var NN =
|
|
19691
|
+
var NN = st.create({
|
|
19694
19692
|
name: "paragraph",
|
|
19695
19693
|
priority: 1e3,
|
|
19696
19694
|
addOptions() {
|
|
@@ -19785,7 +19783,7 @@ var NN = ot.create({
|
|
|
19785
19783
|
})
|
|
19786
19784
|
];
|
|
19787
19785
|
}
|
|
19788
|
-
}), TN =
|
|
19786
|
+
}), TN = st.create({
|
|
19789
19787
|
name: "text",
|
|
19790
19788
|
group: "inline",
|
|
19791
19789
|
parseMarkdown: (t) => ({
|
|
@@ -20751,7 +20749,7 @@ var KN = Ce.create({
|
|
|
20751
20749
|
const i = [];
|
|
20752
20750
|
return this.options.bold !== !1 && i.push(kL.configure(this.options.bold)), this.options.blockquote !== !1 && i.push(ML.configure(this.options.blockquote)), this.options.bulletList !== !1 && i.push(Ag.configure(this.options.bulletList)), this.options.code !== !1 && i.push(TL.configure(this.options.code)), this.options.codeBlock !== !1 && i.push(EL.configure(this.options.codeBlock)), this.options.document !== !1 && i.push(AL.configure(this.options.document)), this.options.dropcursor !== !1 && i.push($N.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && i.push(ZN.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && i.push(zL.configure(this.options.hardBreak)), this.options.heading !== !1 && i.push(OL.configure(this.options.heading)), this.options.undoRedo !== !1 && i.push(XN.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && i.push(PL.configure(this.options.horizontalRule)), this.options.italic !== !1 && i.push(FL.configure(this.options.italic)), this.options.listItem !== !1 && i.push(zg.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(Ug.configure((t = this.options) == null ? void 0 : t.listKeymap)), this.options.link !== !1 && i.push(Eg.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && i.push(Jg.configure(this.options.orderedList)), this.options.paragraph !== !1 && i.push(NN.configure(this.options.paragraph)), this.options.strike !== !1 && i.push(IN.configure(this.options.strike)), this.options.text !== !1 && i.push(TN.configure(this.options.text)), this.options.underline !== !1 && i.push(Yg.configure((n = this.options) == null ? void 0 : n.underline)), this.options.trailingNode !== !1 && i.push(KN.configure((r = this.options) == null ? void 0 : r.trailingNode)), i;
|
|
20753
20751
|
}
|
|
20754
|
-
}), $g = ek, tk = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, nk =
|
|
20752
|
+
}), $g = ek, tk = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, nk = st.create({
|
|
20755
20753
|
name: "image",
|
|
20756
20754
|
addOptions() {
|
|
20757
20755
|
return {
|
|
@@ -20886,11 +20884,11 @@ function rk(t) {
|
|
|
20886
20884
|
const w = v.input.slice(Math.max(0, v.index - 1), v.index), x = new RegExp(`^[${a == null ? void 0 : a.join("")}\0]?$`).test(w);
|
|
20887
20885
|
if (a !== null && !x)
|
|
20888
20886
|
return null;
|
|
20889
|
-
const
|
|
20890
|
-
let y =
|
|
20891
|
-
return f && d.test(m.slice(y - 1, y + 1)) && (v[0] += " ", y += 1),
|
|
20887
|
+
const L = g + v.index;
|
|
20888
|
+
let y = L + v[0].length;
|
|
20889
|
+
return f && d.test(m.slice(y - 1, y + 1)) && (v[0] += " ", y += 1), L < s.pos && y >= s.pos ? {
|
|
20892
20890
|
range: {
|
|
20893
|
-
from:
|
|
20891
|
+
from: L,
|
|
20894
20892
|
to: y
|
|
20895
20893
|
},
|
|
20896
20894
|
query: v[0].slice(n.length),
|
|
@@ -20918,20 +20916,20 @@ function ak({
|
|
|
20918
20916
|
}) {
|
|
20919
20917
|
let v;
|
|
20920
20918
|
const w = h == null ? void 0 : h(), x = () => {
|
|
20921
|
-
const
|
|
20919
|
+
const C = e.state.selection.$anchor.pos, N = e.view.coordsAtPos(C), { top: S, right: I, bottom: D, left: U } = N;
|
|
20922
20920
|
try {
|
|
20923
20921
|
return new DOMRect(U, S, I - U, D - S);
|
|
20924
20922
|
} catch {
|
|
20925
20923
|
return null;
|
|
20926
20924
|
}
|
|
20927
|
-
},
|
|
20928
|
-
const S = t.getState(e.state), I = S == null ? void 0 : S.decorationId, D =
|
|
20925
|
+
}, L = (C, N) => N ? () => {
|
|
20926
|
+
const S = t.getState(e.state), I = S == null ? void 0 : S.decorationId, D = C.dom.querySelector(`[data-decoration-id="${I}"]`);
|
|
20929
20927
|
return (D == null ? void 0 : D.getBoundingClientRect()) || null;
|
|
20930
20928
|
} : x;
|
|
20931
|
-
function y(
|
|
20929
|
+
function y(C, N) {
|
|
20932
20930
|
var S;
|
|
20933
20931
|
try {
|
|
20934
|
-
const D = t.getState(
|
|
20932
|
+
const D = t.getState(C.state), U = D != null && D.decorationId ? C.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`) : null, Y = {
|
|
20935
20933
|
// @ts-ignore editor is available in closure
|
|
20936
20934
|
editor: e,
|
|
20937
20935
|
range: (D == null ? void 0 : D.range) || { from: 0, to: 0 },
|
|
@@ -20940,24 +20938,24 @@ function ak({
|
|
|
20940
20938
|
items: [],
|
|
20941
20939
|
command: (P) => u({ editor: e, range: (D == null ? void 0 : D.range) || { from: 0, to: 0 }, props: P }),
|
|
20942
20940
|
decorationNode: U,
|
|
20943
|
-
clientRect: C
|
|
20941
|
+
clientRect: L(C, U)
|
|
20944
20942
|
};
|
|
20945
20943
|
(S = w == null ? void 0 : w.onExit) == null || S.call(w, Y);
|
|
20946
20944
|
} catch {
|
|
20947
20945
|
}
|
|
20948
|
-
const I =
|
|
20949
|
-
|
|
20946
|
+
const I = C.state.tr.setMeta(N, { exit: !0 });
|
|
20947
|
+
C.dispatch(I);
|
|
20950
20948
|
}
|
|
20951
20949
|
const k = new ve({
|
|
20952
20950
|
key: t,
|
|
20953
20951
|
view() {
|
|
20954
20952
|
return {
|
|
20955
|
-
update: async (
|
|
20953
|
+
update: async (C, N) => {
|
|
20956
20954
|
var S, I, D, U, Y, P, F;
|
|
20957
|
-
const A = (S = this.key) == null ? void 0 : S.getState(N), G = (I = this.key) == null ? void 0 : I.getState(
|
|
20955
|
+
const A = (S = this.key) == null ? void 0 : S.getState(N), G = (I = this.key) == null ? void 0 : I.getState(C.state), $ = A.active && G.active && A.range.from !== G.range.from, le = !A.active && G.active, Pe = A.active && !G.active, je = !le && !Pe && A.query !== G.query, Ve = le || $ && je, B = je || $, oe = Pe || $ && je;
|
|
20958
20956
|
if (!Ve && !B && !oe)
|
|
20959
20957
|
return;
|
|
20960
|
-
const ne = oe && !Ve ? A : G, Ne =
|
|
20958
|
+
const ne = oe && !Ve ? A : G, Ne = C.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`);
|
|
20961
20959
|
v = {
|
|
20962
20960
|
editor: e,
|
|
20963
20961
|
range: ne.range,
|
|
@@ -20970,15 +20968,15 @@ function ak({
|
|
|
20970
20968
|
props: Ge
|
|
20971
20969
|
}),
|
|
20972
20970
|
decorationNode: Ne,
|
|
20973
|
-
clientRect: C
|
|
20971
|
+
clientRect: L(C, Ne)
|
|
20974
20972
|
}, Ve && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), B && ((U = w == null ? void 0 : w.onBeforeUpdate) == null || U.call(w, v)), (B || Ve) && (v.items = await p({
|
|
20975
20973
|
editor: e,
|
|
20976
20974
|
query: ne.query
|
|
20977
20975
|
})), oe && ((Y = w == null ? void 0 : w.onExit) == null || Y.call(w, v)), B && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, v)), Ve && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, v));
|
|
20978
20976
|
},
|
|
20979
20977
|
destroy: () => {
|
|
20980
|
-
var
|
|
20981
|
-
v && ((
|
|
20978
|
+
var C;
|
|
20979
|
+
v && ((C = w == null ? void 0 : w.onExit) == null || C.call(w, v));
|
|
20982
20980
|
}
|
|
20983
20981
|
};
|
|
20984
20982
|
},
|
|
@@ -20997,8 +20995,8 @@ function ak({
|
|
|
20997
20995
|
};
|
|
20998
20996
|
},
|
|
20999
20997
|
// Apply changes to the plugin state from a view transaction.
|
|
21000
|
-
apply(
|
|
21001
|
-
const { isEditable: D } = e, { composing: U } = e.view, { selection: Y } =
|
|
20998
|
+
apply(C, N, S, I) {
|
|
20999
|
+
const { isEditable: D } = e, { composing: U } = e.view, { selection: Y } = C, { empty: P, from: F } = Y, A = { ...N }, G = C.getMeta(t);
|
|
21002
21000
|
if (G && G.exit)
|
|
21003
21001
|
return A.active = !1, A.decorationId = null, A.range = { from: 0, to: 0 }, A.query = null, A.text = null, A;
|
|
21004
21002
|
if (A.composing = U, D && (P || e.view.composing)) {
|
|
@@ -21024,14 +21022,14 @@ function ak({
|
|
|
21024
21022
|
},
|
|
21025
21023
|
props: {
|
|
21026
21024
|
// Call the keydown hook if suggestion is active.
|
|
21027
|
-
handleKeyDown(
|
|
21025
|
+
handleKeyDown(C, N) {
|
|
21028
21026
|
var S, I, D, U;
|
|
21029
|
-
const { active: Y, range: P } = k.getState(
|
|
21027
|
+
const { active: Y, range: P } = k.getState(C.state);
|
|
21030
21028
|
if (!Y)
|
|
21031
21029
|
return !1;
|
|
21032
21030
|
if (N.key === "Escape" || N.key === "Esc") {
|
|
21033
|
-
const A = k.getState(
|
|
21034
|
-
if (((I = w == null ? void 0 : w.onKeyDown) == null ? void 0 : I.call(w, { view:
|
|
21031
|
+
const A = k.getState(C.state), G = (S = v == null ? void 0 : v.decorationNode) != null ? S : null, $ = G ?? (A != null && A.decorationId ? C.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
|
|
21032
|
+
if (((I = w == null ? void 0 : w.onKeyDown) == null ? void 0 : I.call(w, { view: C, event: N, range: A.range })) || !1)
|
|
21035
21033
|
return !0;
|
|
21036
21034
|
const Pe = {
|
|
21037
21035
|
editor: e,
|
|
@@ -21046,17 +21044,17 @@ function ak({
|
|
|
21046
21044
|
// let consumer decide if they want to query.
|
|
21047
21045
|
clientRect: $ ? () => $.getBoundingClientRect() || null : null
|
|
21048
21046
|
};
|
|
21049
|
-
return (D = w == null ? void 0 : w.onExit) == null || D.call(w, Pe), y(
|
|
21047
|
+
return (D = w == null ? void 0 : w.onExit) == null || D.call(w, Pe), y(C, t), !0;
|
|
21050
21048
|
}
|
|
21051
|
-
return ((U = w == null ? void 0 : w.onKeyDown) == null ? void 0 : U.call(w, { view:
|
|
21049
|
+
return ((U = w == null ? void 0 : w.onKeyDown) == null ? void 0 : U.call(w, { view: C, event: N, range: P })) || !1;
|
|
21052
21050
|
},
|
|
21053
21051
|
// Setup decorator on the currently active suggestion.
|
|
21054
|
-
decorations(
|
|
21055
|
-
const { active: N, range: S, decorationId: I, query: D } = k.getState(
|
|
21052
|
+
decorations(C) {
|
|
21053
|
+
const { active: N, range: S, decorationId: I, query: D } = k.getState(C);
|
|
21056
21054
|
if (!N)
|
|
21057
21055
|
return null;
|
|
21058
21056
|
const U = !(D != null && D.length), Y = [f];
|
|
21059
|
-
return U && Y.push(d), me.create(
|
|
21057
|
+
return U && Y.push(d), me.create(C.doc, [
|
|
21060
21058
|
$e.inline(S.from, S.to, {
|
|
21061
21059
|
nodeName: s,
|
|
21062
21060
|
class: Y.join(" "),
|
|
@@ -21116,7 +21114,7 @@ function vh(t, e) {
|
|
|
21116
21114
|
const n = qg(t), r = n.find((i) => i.char === e);
|
|
21117
21115
|
return r || (n.length ? n[0] : null);
|
|
21118
21116
|
}
|
|
21119
|
-
var sk =
|
|
21117
|
+
var sk = st.create({
|
|
21120
21118
|
name: "mention",
|
|
21121
21119
|
priority: 101,
|
|
21122
21120
|
addOptions() {
|
|
@@ -21455,8 +21453,8 @@ var kk = function(e, n) {
|
|
|
21455
21453
|
function Sk(t) {
|
|
21456
21454
|
var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = $t(n.placement), f = Wd(s), c = [ut, Bt].indexOf(s) >= 0, d = c ? "height" : "width";
|
|
21457
21455
|
if (!(!a || !o)) {
|
|
21458
|
-
var u = kk(i.padding, n), p = _d(a), h = f === "y" ? dt : ut, m = f === "y" ? Rt : Bt, g = n.rects.reference[d] + n.rects.reference[f] - o[f] - n.rects.popper[d], v = o[f] - n.rects.reference[f], w = eo(a), x = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0,
|
|
21459
|
-
n.modifiersData[r] = (e = {}, e[S] = N, e.centerOffset = N -
|
|
21456
|
+
var u = kk(i.padding, n), p = _d(a), h = f === "y" ? dt : ut, m = f === "y" ? Rt : Bt, g = n.rects.reference[d] + n.rects.reference[f] - o[f] - n.rects.popper[d], v = o[f] - n.rects.reference[f], w = eo(a), x = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, L = g / 2 - v / 2, y = u[h], k = x - p[d] - u[m], C = x / 2 - p[d] / 2 + L, N = pa(y, C, k), S = f;
|
|
21457
|
+
n.modifiersData[r] = (e = {}, e[S] = N, e.centerOffset = N - C, e);
|
|
21460
21458
|
}
|
|
21461
21459
|
}
|
|
21462
21460
|
function Ik(t) {
|
|
@@ -21497,22 +21495,22 @@ function Mh(t) {
|
|
|
21497
21495
|
y: g
|
|
21498
21496
|
};
|
|
21499
21497
|
h = v.x, g = v.y;
|
|
21500
|
-
var w = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"),
|
|
21498
|
+
var w = o.hasOwnProperty("x"), x = o.hasOwnProperty("y"), L = ut, y = dt, k = window;
|
|
21501
21499
|
if (c) {
|
|
21502
|
-
var
|
|
21503
|
-
if (
|
|
21500
|
+
var C = eo(n), N = "clientHeight", S = "clientWidth";
|
|
21501
|
+
if (C === wt(n) && (C = Xn(n), xn(C).position !== "static" && s === "absolute" && (N = "scrollHeight", S = "scrollWidth")), C = C, i === dt || (i === ut || i === Bt) && a === Ra) {
|
|
21504
21502
|
y = Rt;
|
|
21505
|
-
var I = u &&
|
|
21503
|
+
var I = u && C === k && k.visualViewport ? k.visualViewport.height : (
|
|
21506
21504
|
// $FlowFixMe[prop-missing]
|
|
21507
|
-
|
|
21505
|
+
C[N]
|
|
21508
21506
|
);
|
|
21509
21507
|
g -= I - r.height, g *= f ? 1 : -1;
|
|
21510
21508
|
}
|
|
21511
21509
|
if (i === ut || (i === dt || i === Rt) && a === Ra) {
|
|
21512
|
-
|
|
21513
|
-
var D = u &&
|
|
21510
|
+
L = Bt;
|
|
21511
|
+
var D = u && C === k && k.visualViewport ? k.visualViewport.width : (
|
|
21514
21512
|
// $FlowFixMe[prop-missing]
|
|
21515
|
-
|
|
21513
|
+
C[S]
|
|
21516
21514
|
);
|
|
21517
21515
|
h -= D - r.width, h *= f ? 1 : -1;
|
|
21518
21516
|
}
|
|
@@ -21528,9 +21526,9 @@ function Mh(t) {
|
|
|
21528
21526
|
};
|
|
21529
21527
|
if (h = Y.x, g = Y.y, f) {
|
|
21530
21528
|
var P;
|
|
21531
|
-
return Object.assign({}, U, (P = {}, P[y] = x ? "0" : "", P[
|
|
21529
|
+
return Object.assign({}, U, (P = {}, P[y] = x ? "0" : "", P[L] = w ? "0" : "", P.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", P));
|
|
21532
21530
|
}
|
|
21533
|
-
return Object.assign({}, U, (e = {}, e[y] = x ? g + "px" : "", e[
|
|
21531
|
+
return Object.assign({}, U, (e = {}, e[y] = x ? g + "px" : "", e[L] = w ? h + "px" : "", e.transform = "", e));
|
|
21534
21532
|
}
|
|
21535
21533
|
function Ek(t) {
|
|
21536
21534
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, f = s === void 0 ? !0 : s, c = {
|
|
@@ -21730,11 +21728,11 @@ function s2(t) {
|
|
|
21730
21728
|
}
|
|
21731
21729
|
function Ba(t, e) {
|
|
21732
21730
|
e === void 0 && (e = {});
|
|
21733
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, f = s === void 0 ? lk : s, c = n.rootBoundary, d = c === void 0 ? Kg : c, u = n.elementContext, p = u === void 0 ? Qi : u, h = n.altBoundary, m = h === void 0 ? !1 : h, g = n.padding, v = g === void 0 ? 0 : g, w = i2(typeof v != "number" ? v : a2(v, Xa)), x = p === Qi ? ck : Qi,
|
|
21734
|
-
reference:
|
|
21735
|
-
element:
|
|
21731
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, f = s === void 0 ? lk : s, c = n.rootBoundary, d = c === void 0 ? Kg : c, u = n.elementContext, p = u === void 0 ? Qi : u, h = n.altBoundary, m = h === void 0 ? !1 : h, g = n.padding, v = g === void 0 ? 0 : g, w = i2(typeof v != "number" ? v : a2(v, Xa)), x = p === Qi ? ck : Qi, L = t.rects.popper, y = t.elements[m ? x : p], k = Jk(Sr(y) ? y : y.contextElement || Xn(t.elements.popper), f, d, o), C = xi(t.elements.reference), N = s2({
|
|
21732
|
+
reference: C,
|
|
21733
|
+
element: L,
|
|
21736
21734
|
placement: i
|
|
21737
|
-
}), S = Sc(Object.assign({},
|
|
21735
|
+
}), S = Sc(Object.assign({}, L, N)), I = p === Qi ? S : C, D = {
|
|
21738
21736
|
top: k.top - I.top + w.top,
|
|
21739
21737
|
bottom: I.bottom - k.bottom + w.bottom,
|
|
21740
21738
|
left: k.left - I.left + w.left,
|
|
@@ -21778,7 +21776,7 @@ function Qk(t) {
|
|
|
21778
21776
|
function Vk(t) {
|
|
21779
21777
|
var e = t.state, n = t.options, r = t.name;
|
|
21780
21778
|
if (!e.modifiersData[r]._skip) {
|
|
21781
|
-
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, f = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, v = e.options.placement, w = $t(v), x = w === v,
|
|
21779
|
+
for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, f = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, v = e.options.placement, w = $t(v), x = w === v, L = f || (x || !m ? [Yo(v)] : Qk(v)), y = [v].concat(L).reduce(function(ne, Ne) {
|
|
21782
21780
|
return ne.concat($t(Ne) === Vd ? Yk(e, {
|
|
21783
21781
|
placement: Ne,
|
|
21784
21782
|
boundary: d,
|
|
@@ -21787,7 +21785,7 @@ function Vk(t) {
|
|
|
21787
21785
|
flipVariations: m,
|
|
21788
21786
|
allowedAutoPlacements: g
|
|
21789
21787
|
}) : Ne);
|
|
21790
|
-
}, []), k = e.rects.reference,
|
|
21788
|
+
}, []), k = e.rects.reference, C = e.rects.popper, N = /* @__PURE__ */ new Map(), S = !0, I = y[0], D = 0; D < y.length; D++) {
|
|
21791
21789
|
var U = y[D], Y = $t(U), P = Ci(U) === yi, F = [dt, Rt].indexOf(Y) >= 0, A = F ? "width" : "height", G = Ba(e, {
|
|
21792
21790
|
placement: U,
|
|
21793
21791
|
boundary: d,
|
|
@@ -21795,7 +21793,7 @@ function Vk(t) {
|
|
|
21795
21793
|
altBoundary: p,
|
|
21796
21794
|
padding: c
|
|
21797
21795
|
}), $ = F ? P ? Bt : ut : P ? Rt : dt;
|
|
21798
|
-
k[A] >
|
|
21796
|
+
k[A] > C[A] && ($ = Yo($));
|
|
21799
21797
|
var le = Yo($), Pe = [];
|
|
21800
21798
|
if (a && Pe.push(G[Y] <= 0), s && Pe.push(G[$] <= 0, G[le] <= 0), Pe.every(function(ne) {
|
|
21801
21799
|
return ne;
|
|
@@ -21921,7 +21919,7 @@ function t9(t) {
|
|
|
21921
21919
|
rootBoundary: c,
|
|
21922
21920
|
padding: u,
|
|
21923
21921
|
altBoundary: d
|
|
21924
|
-
}), w = $t(e.placement), x = Ci(e.placement),
|
|
21922
|
+
}), w = $t(e.placement), x = Ci(e.placement), L = !x, y = Wd(w), k = e9(y), C = e.modifiersData.popperOffsets, N = e.rects.reference, S = e.rects.popper, I = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
|
21925
21923
|
placement: e.placement
|
|
21926
21924
|
})) : g, D = typeof I == "number" ? {
|
|
21927
21925
|
mainAxis: I,
|
|
@@ -21933,17 +21931,17 @@ function t9(t) {
|
|
|
21933
21931
|
x: 0,
|
|
21934
21932
|
y: 0
|
|
21935
21933
|
};
|
|
21936
|
-
if (
|
|
21934
|
+
if (C) {
|
|
21937
21935
|
if (a) {
|
|
21938
|
-
var P, F = y === "y" ? dt : ut, A = y === "y" ? Rt : Bt, G = y === "y" ? "height" : "width", $ =
|
|
21936
|
+
var P, F = y === "y" ? dt : ut, A = y === "y" ? Rt : Bt, G = y === "y" ? "height" : "width", $ = C[y], le = $ + v[F], Pe = $ - v[A], je = h ? -S[G] / 2 : 0, Ve = x === yi ? N[G] : S[G], B = x === yi ? -S[G] : -N[G], oe = e.elements.arrow, ne = h && oe ? _d(oe) : {
|
|
21939
21937
|
width: 0,
|
|
21940
21938
|
height: 0
|
|
21941
|
-
}, Ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : r2(), Ge = Ne[F], kn = Ne[A], rn = pa(0, N[G], ne[G]), Ur =
|
|
21942
|
-
|
|
21939
|
+
}, Ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : r2(), Ge = Ne[F], kn = Ne[A], rn = pa(0, N[G], ne[G]), Ur = L ? N[G] / 2 - je - rn - Ge - D.mainAxis : Ve - rn - Ge - D.mainAxis, Sn = L ? -N[G] / 2 + je + rn + kn + D.mainAxis : B + rn + kn + D.mainAxis, Fr = e.elements.arrow && eo(e.elements.arrow), oo = Fr ? y === "y" ? Fr.clientTop || 0 : Fr.clientLeft || 0 : 0, zi = (P = U == null ? void 0 : U[y]) != null ? P : 0, so = $ + Ur - zi - oo, fo = $ + Sn - zi, Oi = pa(h ? Js(le, so) : le, $, h ? yr(Pe, fo) : Pe);
|
|
21940
|
+
C[y] = Oi, Y[y] = Oi - $;
|
|
21943
21941
|
}
|
|
21944
21942
|
if (s) {
|
|
21945
|
-
var Pi, lo = y === "x" ? dt : ut, co = y === "x" ? Rt : Bt, an =
|
|
21946
|
-
|
|
21943
|
+
var Pi, lo = y === "x" ? dt : ut, co = y === "x" ? Rt : Bt, an = C[k], In = k === "y" ? "height" : "width", Ri = an + v[lo], nr = an - v[co], Bi = [dt, ut].indexOf(w) !== -1, uo = (Pi = U == null ? void 0 : U[k]) != null ? Pi : 0, ho = Bi ? Ri : an - N[In] - S[In] - uo + D.altAxis, po = Bi ? an + N[In] + S[In] - uo - D.altAxis : nr, mo = h && Bi ? Nk(ho, an, po) : pa(h ? ho : Ri, an, h ? po : nr);
|
|
21944
|
+
C[k] = mo, Y[k] = mo - an;
|
|
21947
21945
|
}
|
|
21948
21946
|
e.modifiersData[r] = Y;
|
|
21949
21947
|
}
|
|
@@ -22070,8 +22068,8 @@ function d9(t) {
|
|
|
22070
22068
|
reference: Sr(s) ? ma(s) : s.contextElement ? ma(s.contextElement) : [],
|
|
22071
22069
|
popper: ma(f)
|
|
22072
22070
|
};
|
|
22073
|
-
var
|
|
22074
|
-
return d.orderedModifiers =
|
|
22071
|
+
var L = f9(c9([].concat(r, d.options.modifiers)));
|
|
22072
|
+
return d.orderedModifiers = L.filter(function(y) {
|
|
22075
22073
|
return y.enabled;
|
|
22076
22074
|
}), m(), h.update();
|
|
22077
22075
|
},
|
|
@@ -22082,11 +22080,11 @@ function d9(t) {
|
|
|
22082
22080
|
// prefer the async Popper#update method
|
|
22083
22081
|
forceUpdate: function() {
|
|
22084
22082
|
if (!p) {
|
|
22085
|
-
var w = d.elements, x = w.reference,
|
|
22086
|
-
if (Sh(x,
|
|
22083
|
+
var w = d.elements, x = w.reference, L = w.popper;
|
|
22084
|
+
if (Sh(x, L)) {
|
|
22087
22085
|
d.rects = {
|
|
22088
|
-
reference: o9(x, eo(
|
|
22089
|
-
popper: _d(
|
|
22086
|
+
reference: o9(x, eo(L), d.options.strategy === "fixed"),
|
|
22087
|
+
popper: _d(L)
|
|
22090
22088
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(D) {
|
|
22091
22089
|
return d.modifiersData[D.name] = Object.assign({}, D.data);
|
|
22092
22090
|
});
|
|
@@ -22095,8 +22093,8 @@ function d9(t) {
|
|
|
22095
22093
|
d.reset = !1, y = -1;
|
|
22096
22094
|
continue;
|
|
22097
22095
|
}
|
|
22098
|
-
var k = d.orderedModifiers[y],
|
|
22099
|
-
typeof
|
|
22096
|
+
var k = d.orderedModifiers[y], C = k.fn, N = k.options, S = N === void 0 ? {} : N, I = k.name;
|
|
22097
|
+
typeof C == "function" && (d = C({
|
|
22100
22098
|
state: d,
|
|
22101
22099
|
options: S,
|
|
22102
22100
|
name: I,
|
|
@@ -22124,16 +22122,16 @@ function d9(t) {
|
|
|
22124
22122
|
});
|
|
22125
22123
|
function m() {
|
|
22126
22124
|
d.orderedModifiers.forEach(function(v) {
|
|
22127
|
-
var w = v.name, x = v.options,
|
|
22125
|
+
var w = v.name, x = v.options, L = x === void 0 ? {} : x, y = v.effect;
|
|
22128
22126
|
if (typeof y == "function") {
|
|
22129
22127
|
var k = y({
|
|
22130
22128
|
state: d,
|
|
22131
22129
|
name: w,
|
|
22132
22130
|
instance: h,
|
|
22133
|
-
options:
|
|
22134
|
-
}),
|
|
22131
|
+
options: L
|
|
22132
|
+
}), C = function() {
|
|
22135
22133
|
};
|
|
22136
|
-
u.push(k ||
|
|
22134
|
+
u.push(k || C);
|
|
22137
22135
|
}
|
|
22138
22136
|
});
|
|
22139
22137
|
}
|
|
@@ -22510,7 +22508,7 @@ function v2(t) {
|
|
|
22510
22508
|
v2.$$tippy = !0;
|
|
22511
22509
|
var U9 = 1, Ao = [], Al = [];
|
|
22512
22510
|
function F9(t, e) {
|
|
22513
|
-
var n = Oh(t, Object.assign({}, pt, g2(jh(e)))), r, i, a, o = !1, s = !1, f = !1, c = !1, d, u, p, h = [], m = Ih(so, n.interactiveDebounce), g, v = U9++, w = null, x = w9(n.plugins),
|
|
22511
|
+
var n = Oh(t, Object.assign({}, pt, g2(jh(e)))), r, i, a, o = !1, s = !1, f = !1, c = !1, d, u, p, h = [], m = Ih(so, n.interactiveDebounce), g, v = U9++, w = null, x = w9(n.plugins), L = {
|
|
22514
22512
|
// Is the instance currently enabled?
|
|
22515
22513
|
isEnabled: !0,
|
|
22516
22514
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -22528,7 +22526,7 @@ function F9(t, e) {
|
|
|
22528
22526
|
popper: ga(),
|
|
22529
22527
|
popperInstance: w,
|
|
22530
22528
|
props: n,
|
|
22531
|
-
state:
|
|
22529
|
+
state: L,
|
|
22532
22530
|
plugins: x,
|
|
22533
22531
|
// methods
|
|
22534
22532
|
clearDelayTimeouts: ho,
|
|
@@ -22544,14 +22542,14 @@ function F9(t, e) {
|
|
|
22544
22542
|
};
|
|
22545
22543
|
if (!n.render)
|
|
22546
22544
|
return process.env.NODE_ENV !== "production" && Ic(!0, "render() function has not been supplied."), y;
|
|
22547
|
-
var k = n.render(y),
|
|
22548
|
-
|
|
22545
|
+
var k = n.render(y), C = k.popper, N = k.onUpdate;
|
|
22546
|
+
C.setAttribute("data-tippy-root", ""), C.id = "tippy-" + y.id, y.popper = C, t._tippy = y, C._tippy = y;
|
|
22549
22547
|
var S = x.map(function(T) {
|
|
22550
22548
|
return T.fn(y);
|
|
22551
22549
|
}), I = t.hasAttribute("aria-expanded");
|
|
22552
|
-
return Fr(), je(), $(), le("onCreate", [y]), n.showOnCreate && Ri(),
|
|
22550
|
+
return Fr(), je(), $(), le("onCreate", [y]), n.showOnCreate && Ri(), C.addEventListener("mouseenter", function() {
|
|
22553
22551
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
22554
|
-
}),
|
|
22552
|
+
}), C.addEventListener("mouseleave", function() {
|
|
22555
22553
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", m);
|
|
22556
22554
|
}), y;
|
|
22557
22555
|
function D() {
|
|
@@ -22573,13 +22571,13 @@ function F9(t, e) {
|
|
|
22573
22571
|
return T ? N9(T) : document;
|
|
22574
22572
|
}
|
|
22575
22573
|
function A() {
|
|
22576
|
-
return jc(
|
|
22574
|
+
return jc(C);
|
|
22577
22575
|
}
|
|
22578
22576
|
function G(T) {
|
|
22579
22577
|
return y.state.isMounted && !y.state.isVisible || Wt.isTouch || d && d.type === "focus" ? 0 : jl(y.props.delay, T ? 0 : 1, pt.delay);
|
|
22580
22578
|
}
|
|
22581
22579
|
function $(T) {
|
|
22582
|
-
T === void 0 && (T = !1),
|
|
22580
|
+
T === void 0 && (T = !1), C.style.pointerEvents = y.props.interactive && !T ? "" : "none", C.style.zIndex = "" + y.props.zIndex;
|
|
22583
22581
|
}
|
|
22584
22582
|
function le(T, J, _) {
|
|
22585
22583
|
if (_ === void 0 && (_ = !0), S.forEach(function(ie) {
|
|
@@ -22592,7 +22590,7 @@ function F9(t, e) {
|
|
|
22592
22590
|
function Pe() {
|
|
22593
22591
|
var T = y.props.aria;
|
|
22594
22592
|
if (T.content) {
|
|
22595
|
-
var J = "aria-" + T.content, _ =
|
|
22593
|
+
var J = "aria-" + T.content, _ = C.id, se = Xr(y.props.triggerTarget || t);
|
|
22596
22594
|
se.forEach(function(ie) {
|
|
22597
22595
|
var Xe = ie.getAttribute(J);
|
|
22598
22596
|
if (y.state.isVisible)
|
|
@@ -22620,7 +22618,7 @@ function F9(t, e) {
|
|
|
22620
22618
|
function B(T) {
|
|
22621
22619
|
if (!(Wt.isTouch && (f || T.type === "mousedown"))) {
|
|
22622
22620
|
var J = T.composedPath && T.composedPath()[0] || T.target;
|
|
22623
|
-
if (!(y.props.interactive && Eh(
|
|
22621
|
+
if (!(y.props.interactive && Eh(C, J))) {
|
|
22624
22622
|
if (Xr(y.props.triggerTarget || t).some(function(_) {
|
|
22625
22623
|
return Eh(_, J);
|
|
22626
22624
|
})) {
|
|
@@ -22650,7 +22648,7 @@ function F9(t, e) {
|
|
|
22650
22648
|
}
|
|
22651
22649
|
function kn(T, J) {
|
|
22652
22650
|
Ur(T, function() {
|
|
22653
|
-
!y.state.isVisible &&
|
|
22651
|
+
!y.state.isVisible && C.parentNode && C.parentNode.contains(C) && J();
|
|
22654
22652
|
});
|
|
22655
22653
|
}
|
|
22656
22654
|
function rn(T, J) {
|
|
@@ -22713,9 +22711,9 @@ function F9(t, e) {
|
|
|
22713
22711
|
}
|
|
22714
22712
|
}
|
|
22715
22713
|
function so(T) {
|
|
22716
|
-
var J = T.target, _ = P().contains(J) ||
|
|
22714
|
+
var J = T.target, _ = P().contains(J) || C.contains(J);
|
|
22717
22715
|
if (!(T.type === "mousemove" && _)) {
|
|
22718
|
-
var se = In().concat(
|
|
22716
|
+
var se = In().concat(C).map(function(ie) {
|
|
22719
22717
|
var Xe, Ct = ie._tippy, Jr = (Xe = Ct.popperInstance) == null ? void 0 : Xe.state;
|
|
22720
22718
|
return Jr ? {
|
|
22721
22719
|
popperRect: ie.getBoundingClientRect(),
|
|
@@ -22737,14 +22735,14 @@ function F9(t, e) {
|
|
|
22737
22735
|
}
|
|
22738
22736
|
}
|
|
22739
22737
|
function Oi(T) {
|
|
22740
|
-
y.props.trigger.indexOf("focusin") < 0 && T.target !== P() || y.props.interactive && T.relatedTarget &&
|
|
22738
|
+
y.props.trigger.indexOf("focusin") < 0 && T.target !== P() || y.props.interactive && T.relatedTarget && C.contains(T.relatedTarget) || nr(T);
|
|
22741
22739
|
}
|
|
22742
22740
|
function Pi(T) {
|
|
22743
22741
|
return Wt.isTouch ? U() !== T.type.indexOf("touch") >= 0 : !1;
|
|
22744
22742
|
}
|
|
22745
22743
|
function lo() {
|
|
22746
22744
|
co();
|
|
22747
|
-
var T = y.props, J = T.popperOptions, _ = T.placement, se = T.offset, ie = T.getReferenceClientRect, Xe = T.moveTransition, Ct = Y() ? jc(
|
|
22745
|
+
var T = y.props, J = T.popperOptions, _ = T.placement, se = T.offset, ie = T.getReferenceClientRect, Xe = T.moveTransition, Ct = Y() ? jc(C).arrow : null, Jr = ie ? {
|
|
22748
22746
|
getBoundingClientRect: ie,
|
|
22749
22747
|
contextElement: ie.contextElement || P()
|
|
22750
22748
|
} : t, ku = {
|
|
@@ -22793,7 +22791,7 @@ function F9(t, e) {
|
|
|
22793
22791
|
element: Ct,
|
|
22794
22792
|
padding: 3
|
|
22795
22793
|
}
|
|
22796
|
-
}), rr.push.apply(rr, (J == null ? void 0 : J.modifiers) || []), y.popperInstance = h9(Jr,
|
|
22794
|
+
}), rr.push.apply(rr, (J == null ? void 0 : J.modifiers) || []), y.popperInstance = h9(Jr, C, Object.assign({}, J, {
|
|
22797
22795
|
placement: _,
|
|
22798
22796
|
onFirstUpdate: p,
|
|
22799
22797
|
modifiers: rr
|
|
@@ -22804,7 +22802,7 @@ function F9(t, e) {
|
|
|
22804
22802
|
}
|
|
22805
22803
|
function an() {
|
|
22806
22804
|
var T = y.props.appendTo, J, _ = P();
|
|
22807
|
-
y.props.interactive && T === d2 || T === "parent" ? J = _.parentNode : J = u2(T, [_]), J.contains(
|
|
22805
|
+
y.props.interactive && T === d2 || T === "parent" ? J = _.parentNode : J = u2(T, [_]), J.contains(C) || J.appendChild(C), y.state.isMounted = !0, lo(), process.env.NODE_ENV !== "production" && pn(y.props.interactive && T === pt.appendTo && _.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
22808
22806
|
|
|
22809
22807
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
22810
22808
|
|
|
@@ -22813,7 +22811,7 @@ function F9(t, e) {
|
|
|
22813
22811
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
22814
22812
|
}
|
|
22815
22813
|
function In() {
|
|
22816
|
-
return Ys(
|
|
22814
|
+
return Ys(C.querySelectorAll("[data-tippy-root]"));
|
|
22817
22815
|
}
|
|
22818
22816
|
function Ri(T) {
|
|
22819
22817
|
y.clearDelayTimeouts(), T && le("onTrigger", [y, T]), Ne();
|
|
@@ -22867,14 +22865,14 @@ function F9(t, e) {
|
|
|
22867
22865
|
process.env.NODE_ENV !== "production" && pn(y.state.isDestroyed, Gr("show"));
|
|
22868
22866
|
var T = y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = Wt.isTouch && !y.props.touch, ie = jl(y.props.duration, 0, pt.duration);
|
|
22869
22867
|
if (!(T || J || _ || se) && !P().hasAttribute("disabled") && (le("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
22870
|
-
if (y.state.isVisible = !0, Y() && (
|
|
22868
|
+
if (y.state.isVisible = !0, Y() && (C.style.visibility = "visible"), $(), Ne(), y.state.isMounted || (C.style.transition = "none"), Y()) {
|
|
22871
22869
|
var Xe = A(), Ct = Xe.box, Jr = Xe.content;
|
|
22872
22870
|
Dl([Ct, Jr], 0);
|
|
22873
22871
|
}
|
|
22874
22872
|
p = function() {
|
|
22875
22873
|
var rr;
|
|
22876
22874
|
if (!(!y.state.isVisible || c)) {
|
|
22877
|
-
if (c = !0,
|
|
22875
|
+
if (c = !0, C.offsetHeight, C.style.transition = y.props.moveTransition, Y() && y.props.animation) {
|
|
22878
22876
|
var el = A(), go = el.box, Yr = el.content;
|
|
22879
22877
|
Dl([go, Yr], ie), Dh([go, Yr], "visible");
|
|
22880
22878
|
}
|
|
@@ -22889,7 +22887,7 @@ function F9(t, e) {
|
|
|
22889
22887
|
process.env.NODE_ENV !== "production" && pn(y.state.isDestroyed, Gr("hide"));
|
|
22890
22888
|
var T = !y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = jl(y.props.duration, 1, pt.duration);
|
|
22891
22889
|
if (!(T || J || _) && (le("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
22892
|
-
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, Y() && (
|
|
22890
|
+
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, Y() && (C.style.visibility = "hidden"), Ve(), Ge(), $(!0), Y()) {
|
|
22893
22891
|
var ie = A(), Xe = ie.box, Ct = ie.content;
|
|
22894
22892
|
y.props.animation && (Dl([Xe, Ct], se), Dh([Xe, Ct], "hidden"));
|
|
22895
22893
|
}
|
|
@@ -22902,7 +22900,7 @@ function F9(t, e) {
|
|
|
22902
22900
|
function j4() {
|
|
22903
22901
|
process.env.NODE_ENV !== "production" && pn(y.state.isDestroyed, Gr("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (co(), In().forEach(function(T) {
|
|
22904
22902
|
T._tippy.unmount();
|
|
22905
|
-
}),
|
|
22903
|
+
}), C.parentNode && C.parentNode.removeChild(C), Al = Al.filter(function(T) {
|
|
22906
22904
|
return T !== y;
|
|
22907
22905
|
}), y.state.isMounted = !1, le("onHidden", [y]));
|
|
22908
22906
|
}
|
|
@@ -23472,8 +23470,8 @@ var Li;
|
|
|
23472
23470
|
t.SEARCH = "SEARCH", t.PREVIEW = "PREVIEW";
|
|
23473
23471
|
})(Li || (Li = {}));
|
|
23474
23472
|
function sS(t) {
|
|
23475
|
-
var e = t.children, n = A2(), r = VS(), i = tI(), a = De(ba), o = De(!1), s = De(!1), f = De(n), c = Uh(Date.now(), 200), d = Uh("", 100), u = ee(!1), p = ee(r), h = ee(null), m = ee(/* @__PURE__ */ new Set()), g = ee(null), v = ee(i), w = ee(!1), x = w[0],
|
|
23476
|
-
return oS(
|
|
23473
|
+
var e = t.children, n = A2(), r = VS(), i = tI(), a = De(ba), o = De(!1), s = De(!1), f = De(n), c = Uh(Date.now(), 200), d = Uh("", 100), u = ee(!1), p = ee(r), h = ee(null), m = ee(/* @__PURE__ */ new Set()), g = ee(null), v = ee(i), w = ee(!1), x = w[0], L = w[1], y = ee([]), k = ee(null);
|
|
23474
|
+
return oS(L), O(yt.Provider, {
|
|
23477
23475
|
value: {
|
|
23478
23476
|
activeCategoryState: h,
|
|
23479
23477
|
activeSkinTone: p,
|
|
@@ -41760,21 +41758,21 @@ function Db(t) {
|
|
|
41760
41758
|
return t.imgUrl !== void 0;
|
|
41761
41759
|
}
|
|
41762
41760
|
function Eb(t, e) {
|
|
41763
|
-
var n = De(), r = pb(), i = fS(), a = Ti(), o = a[1], s = Br(), f = jf(), c = f[0], d = $S(e), u = P2(), p = u[1], h = Rr(), m = Pr(), g = Ue(function(
|
|
41761
|
+
var n = De(), r = pb(), i = fS(), a = Ti(), o = a[1], s = Br(), f = jf(), c = f[0], d = $S(e), u = P2(), p = u[1], h = Rr(), m = Pr(), g = Ue(function(L) {
|
|
41764
41762
|
if (!i.current) {
|
|
41765
41763
|
s();
|
|
41766
|
-
var y = qh(
|
|
41767
|
-
if (!(!k || !
|
|
41768
|
-
var N = AS(
|
|
41769
|
-
p(), IS(k, N), d(eT(k, N, m, h),
|
|
41764
|
+
var y = qh(L), k = y[0], C = y[1];
|
|
41765
|
+
if (!(!k || !C)) {
|
|
41766
|
+
var N = AS(C) || c;
|
|
41767
|
+
p(), IS(k, N), d(eT(k, N, m, h), L);
|
|
41770
41768
|
}
|
|
41771
41769
|
}
|
|
41772
|
-
}, [c, s, i, d, p, h, m]), v = Ue(function(
|
|
41770
|
+
}, [c, s, i, d, p, h, m]), v = Ue(function(L) {
|
|
41773
41771
|
var y;
|
|
41774
41772
|
n.current && clearTimeout(n.current);
|
|
41775
|
-
var k = qh(
|
|
41776
|
-
!
|
|
41777
|
-
i.current = !0, n.current = void 0, s(), r(
|
|
41773
|
+
var k = qh(L), C = k[0];
|
|
41774
|
+
!C || !ji(C) || (n.current = (y = window) == null ? void 0 : y.setTimeout(function() {
|
|
41775
|
+
i.current = !0, n.current = void 0, s(), r(L.target), o(C);
|
|
41778
41776
|
}, 500));
|
|
41779
41777
|
}, [i, s, r, o]), w = Ue(function() {
|
|
41780
41778
|
n.current ? (clearTimeout(n.current), n.current = void 0) : i.current && requestAnimationFrame(function() {
|
|
@@ -42168,10 +42166,10 @@ function mT(t) {
|
|
|
42168
42166
|
v && (a.current = v);
|
|
42169
42167
|
var w = c || v || a.current || pT, x = m.clientWidth;
|
|
42170
42168
|
if (!(x === 0 || w === 0)) {
|
|
42171
|
-
var
|
|
42169
|
+
var L = Math.max(1, Math.floor(x / w)), y = Math.ceil(t / L), k = y * w;
|
|
42172
42170
|
p({
|
|
42173
42171
|
categoryHeight: k,
|
|
42174
|
-
emojisPerRow:
|
|
42172
|
+
emojisPerRow: L,
|
|
42175
42173
|
emojiSize: w
|
|
42176
42174
|
});
|
|
42177
42175
|
}
|
|
@@ -42183,8 +42181,8 @@ function mT(t) {
|
|
|
42183
42181
|
var m = i.current;
|
|
42184
42182
|
if (m) {
|
|
42185
42183
|
var g = function(w) {
|
|
42186
|
-
var x = w,
|
|
42187
|
-
(
|
|
42184
|
+
var x = w, L = x.propertyName;
|
|
42185
|
+
(L === "width" || L === "max-width" || L === "min-width" || L === "height" || L === "max-height" || L === "min-height") && (typeof queueMicrotask == "function" ? queueMicrotask(function() {
|
|
42188
42186
|
return h();
|
|
42189
42187
|
}) : requestAnimationFrame(function() {
|
|
42190
42188
|
return h();
|
|
@@ -42211,23 +42209,23 @@ function gT() {
|
|
|
42211
42209
|
}
|
|
42212
42210
|
function bT(t) {
|
|
42213
42211
|
var e = t.categoryEmojis, n = t.topOffset, r = t.onHeightReady, i = t.scrollTop, a = t.isCategoryVisible, o = gT(), s = X2(), f = Pr(), c = jf(), d = c[0], u = iS(), p = Rr(), h = !q2(), m = xt(), g = 0, v = e.filter(function(y) {
|
|
42214
|
-
var k = u(y),
|
|
42212
|
+
var k = u(y), C = o(y), N = C.failedToLoad, S = C.filteredOut, I = C.hidden;
|
|
42215
42213
|
return !N && !S && !I && !k;
|
|
42216
42214
|
}), w = mT(v.length);
|
|
42217
42215
|
de(function() {
|
|
42218
42216
|
w && r(w.categoryHeight);
|
|
42219
42217
|
}, [w, r, v.length]);
|
|
42220
42218
|
var x = function(k) {
|
|
42221
|
-
var
|
|
42219
|
+
var C, N;
|
|
42222
42220
|
return w && m.current && uT({
|
|
42223
42221
|
scrollTop: i,
|
|
42224
|
-
clientHeight: (
|
|
42222
|
+
clientHeight: (C = (N = m.current) == null ? void 0 : N.clientHeight) != null ? C : 0,
|
|
42225
42223
|
topOffset: n,
|
|
42226
42224
|
style: k,
|
|
42227
42225
|
dimensions: w
|
|
42228
42226
|
});
|
|
42229
|
-
},
|
|
42230
|
-
var N = Fe(k, d), S = hT(w,
|
|
42227
|
+
}, L = v.reduce(function(y, k, C) {
|
|
42228
|
+
var N = Fe(k, d), S = hT(w, C);
|
|
42231
42229
|
if (x(S)) {
|
|
42232
42230
|
var I, D;
|
|
42233
42231
|
return g++, HI(k, f, i, (I = (D = m.current) == null ? void 0 : D.clientHeight) != null ? I : 0, n, S, w, p), y;
|
|
@@ -42247,7 +42245,7 @@ function bT(t) {
|
|
|
42247
42245
|
}, []);
|
|
42248
42246
|
return {
|
|
42249
42247
|
virtualizedCounter: g,
|
|
42250
|
-
emojis:
|
|
42248
|
+
emojis: L,
|
|
42251
42249
|
dimensions: w
|
|
42252
42250
|
};
|
|
42253
42251
|
}
|
|
@@ -42719,15 +42717,15 @@ function zb(t) {
|
|
|
42719
42717
|
className: te(Gi.select),
|
|
42720
42718
|
ref: r
|
|
42721
42719
|
}, Gs.map(function(w, x) {
|
|
42722
|
-
var
|
|
42720
|
+
var L = w === c;
|
|
42723
42721
|
return O(zT, {
|
|
42724
42722
|
key: w,
|
|
42725
42723
|
skinToneVariation: w,
|
|
42726
42724
|
isOpen: o,
|
|
42727
42725
|
style: {
|
|
42728
|
-
transform: te(v ? "translateY(-" + x * (o ? qi : 0) + "px)" : "translateX(-" + x * (o ? qi : 0) + "px)", o &&
|
|
42726
|
+
transform: te(v ? "translateY(-" + x * (o ? qi : 0) + "px)" : "translateX(-" + x * (o ? qi : 0) + "px)", o && L && "scale(1.3)")
|
|
42729
42727
|
},
|
|
42730
|
-
isActive:
|
|
42728
|
+
isActive: L,
|
|
42731
42729
|
onClick: function() {
|
|
42732
42730
|
o ? (d(w), u(w), h()) : s(!0), p();
|
|
42733
42731
|
}
|
|
@@ -42847,20 +42845,20 @@ function HT(t) {
|
|
|
42847
42845
|
p && (i.set(p, u.intersectionRatio), a.set(p, u.isIntersecting));
|
|
42848
42846
|
}
|
|
42849
42847
|
var h = Array.from(i), m = h.filter(function(k) {
|
|
42850
|
-
var
|
|
42851
|
-
return N > 0 || a.get(
|
|
42848
|
+
var C = k[0], N = k[1];
|
|
42849
|
+
return N > 0 || a.get(C);
|
|
42852
42850
|
}).map(function(k) {
|
|
42853
|
-
var
|
|
42854
|
-
return
|
|
42851
|
+
var C = k[0];
|
|
42852
|
+
return C;
|
|
42855
42853
|
});
|
|
42856
42854
|
n(m);
|
|
42857
42855
|
var g = h[h.length - 1];
|
|
42858
42856
|
if ((g == null ? void 0 : g[1]) == 1)
|
|
42859
42857
|
return e(g[0]);
|
|
42860
42858
|
for (var v = 0, w = h; v < w.length; v++) {
|
|
42861
|
-
var x = w[v],
|
|
42859
|
+
var x = w[v], L = x[0], y = x[1];
|
|
42862
42860
|
if (y) {
|
|
42863
|
-
e(
|
|
42861
|
+
e(L);
|
|
42864
42862
|
break;
|
|
42865
42863
|
}
|
|
42866
42864
|
}
|
|
@@ -43378,12 +43376,12 @@ const sj = ({ role: t }) => {
|
|
|
43378
43376
|
render: () => {
|
|
43379
43377
|
let w, x;
|
|
43380
43378
|
return {
|
|
43381
|
-
onStart: (
|
|
43379
|
+
onStart: (L) => {
|
|
43382
43380
|
w = new wL(w2, {
|
|
43383
|
-
props:
|
|
43384
|
-
editor:
|
|
43385
|
-
}),
|
|
43386
|
-
getReferenceClientRect:
|
|
43381
|
+
props: L,
|
|
43382
|
+
editor: L.editor
|
|
43383
|
+
}), L.clientRect && (x = to("body", {
|
|
43384
|
+
getReferenceClientRect: L.clientRect,
|
|
43387
43385
|
appendTo: () => document.body,
|
|
43388
43386
|
content: w.element,
|
|
43389
43387
|
showOnCreate: !0,
|
|
@@ -43392,14 +43390,14 @@ const sj = ({ role: t }) => {
|
|
|
43392
43390
|
placement: "bottom-start"
|
|
43393
43391
|
}));
|
|
43394
43392
|
},
|
|
43395
|
-
onUpdate(
|
|
43396
|
-
w.updateProps(
|
|
43397
|
-
getReferenceClientRect:
|
|
43393
|
+
onUpdate(L) {
|
|
43394
|
+
w.updateProps(L), L.clientRect && x[0].setProps({
|
|
43395
|
+
getReferenceClientRect: L.clientRect
|
|
43398
43396
|
});
|
|
43399
43397
|
},
|
|
43400
|
-
onKeyDown(
|
|
43398
|
+
onKeyDown(L) {
|
|
43401
43399
|
var y;
|
|
43402
|
-
return
|
|
43400
|
+
return L.event.key === "Escape" ? (x[0].hide(), !0) : (y = w.ref) == null ? void 0 : y.onKeyDown(L);
|
|
43403
43401
|
},
|
|
43404
43402
|
onExit() {
|
|
43405
43403
|
x[0].destroy(), w.destroy();
|
|
@@ -43421,10 +43419,10 @@ const sj = ({ role: t }) => {
|
|
|
43421
43419
|
}
|
|
43422
43420
|
}), m = (w) => {
|
|
43423
43421
|
if (w.target.files && w.target.files[0]) {
|
|
43424
|
-
const x = w.target.files[0],
|
|
43422
|
+
const x = w.target.files[0], L = URL.createObjectURL(x), y = {
|
|
43425
43423
|
id: Math.random().toString(36).substr(2, 9),
|
|
43426
43424
|
name: x.name,
|
|
43427
|
-
url:
|
|
43425
|
+
url: L,
|
|
43428
43426
|
type: x.type.startsWith("image/") ? "image" : "file"
|
|
43429
43427
|
};
|
|
43430
43428
|
f([...s, y]), w.target.value = "";
|
|
@@ -43479,7 +43477,7 @@ const sj = ({ role: t }) => {
|
|
|
43479
43477
|
/* @__PURE__ */ l(ra, { children: "Opções de formatação" })
|
|
43480
43478
|
] }),
|
|
43481
43479
|
/* @__PURE__ */ l("div", { className: "w-px h-4 bg-border mx-1" }),
|
|
43482
|
-
/* @__PURE__ */ b(
|
|
43480
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
43483
43481
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
43484
43482
|
R,
|
|
43485
43483
|
{
|
|
@@ -43584,7 +43582,7 @@ const sj = ({ role: t }) => {
|
|
|
43584
43582
|
/* @__PURE__ */ l("span", { className: "text-xs text-muted-foreground", children: ae(t.createdAt, "dd MMM 'às' HH:mm", { locale: bt }) })
|
|
43585
43583
|
] }),
|
|
43586
43584
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity", children: [
|
|
43587
|
-
/* @__PURE__ */ b(
|
|
43585
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
43588
43586
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
43589
43587
|
R,
|
|
43590
43588
|
{
|
|
@@ -43657,7 +43655,7 @@ const sj = ({ role: t }) => {
|
|
|
43657
43655
|
},
|
|
43658
43656
|
o.emoji
|
|
43659
43657
|
)),
|
|
43660
|
-
r && /* @__PURE__ */ b(
|
|
43658
|
+
r && /* @__PURE__ */ b(lt, { children: [
|
|
43661
43659
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
43662
43660
|
R,
|
|
43663
43661
|
{
|
|
@@ -43728,17 +43726,17 @@ const sj = ({ role: t }) => {
|
|
|
43728
43726
|
function mn({
|
|
43729
43727
|
...t
|
|
43730
43728
|
}) {
|
|
43731
|
-
return /* @__PURE__ */ l(
|
|
43729
|
+
return /* @__PURE__ */ l(it.Root, { "data-slot": "select", ...t });
|
|
43732
43730
|
}
|
|
43733
43731
|
function m8({
|
|
43734
43732
|
...t
|
|
43735
43733
|
}) {
|
|
43736
|
-
return /* @__PURE__ */ l(
|
|
43734
|
+
return /* @__PURE__ */ l(it.Group, { "data-slot": "select-group", ...t });
|
|
43737
43735
|
}
|
|
43738
43736
|
function gn({
|
|
43739
43737
|
...t
|
|
43740
43738
|
}) {
|
|
43741
|
-
return /* @__PURE__ */ l(
|
|
43739
|
+
return /* @__PURE__ */ l(it.Value, { "data-slot": "select-value", ...t });
|
|
43742
43740
|
}
|
|
43743
43741
|
function bn({
|
|
43744
43742
|
className: t,
|
|
@@ -43747,7 +43745,7 @@ function bn({
|
|
|
43747
43745
|
...r
|
|
43748
43746
|
}) {
|
|
43749
43747
|
return /* @__PURE__ */ b(
|
|
43750
|
-
|
|
43748
|
+
it.Trigger,
|
|
43751
43749
|
{
|
|
43752
43750
|
"data-slot": "select-trigger",
|
|
43753
43751
|
"data-size": e,
|
|
@@ -43758,7 +43756,7 @@ function bn({
|
|
|
43758
43756
|
...r,
|
|
43759
43757
|
children: [
|
|
43760
43758
|
n,
|
|
43761
|
-
/* @__PURE__ */ l(
|
|
43759
|
+
/* @__PURE__ */ l(it.Icon, { asChild: !0, children: /* @__PURE__ */ l(Zs, { className: "size-4 opacity-50" }) })
|
|
43762
43760
|
]
|
|
43763
43761
|
}
|
|
43764
43762
|
);
|
|
@@ -43769,8 +43767,8 @@ function vn({
|
|
|
43769
43767
|
position: n = "popper",
|
|
43770
43768
|
...r
|
|
43771
43769
|
}) {
|
|
43772
|
-
return /* @__PURE__ */ l(
|
|
43773
|
-
|
|
43770
|
+
return /* @__PURE__ */ l(it.Portal, { children: /* @__PURE__ */ b(
|
|
43771
|
+
it.Content,
|
|
43774
43772
|
{
|
|
43775
43773
|
"data-slot": "select-content",
|
|
43776
43774
|
className: M(
|
|
@@ -43783,7 +43781,7 @@ function vn({
|
|
|
43783
43781
|
children: [
|
|
43784
43782
|
/* @__PURE__ */ l(dj, {}),
|
|
43785
43783
|
/* @__PURE__ */ l(
|
|
43786
|
-
|
|
43784
|
+
it.Viewport,
|
|
43787
43785
|
{
|
|
43788
43786
|
className: M(
|
|
43789
43787
|
"p-1",
|
|
@@ -43802,7 +43800,7 @@ function g8({
|
|
|
43802
43800
|
...e
|
|
43803
43801
|
}) {
|
|
43804
43802
|
return /* @__PURE__ */ l(
|
|
43805
|
-
|
|
43803
|
+
it.Label,
|
|
43806
43804
|
{
|
|
43807
43805
|
"data-slot": "select-label",
|
|
43808
43806
|
className: M("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
@@ -43816,7 +43814,7 @@ function Ut({
|
|
|
43816
43814
|
...n
|
|
43817
43815
|
}) {
|
|
43818
43816
|
return /* @__PURE__ */ b(
|
|
43819
|
-
|
|
43817
|
+
it.Item,
|
|
43820
43818
|
{
|
|
43821
43819
|
"data-slot": "select-item",
|
|
43822
43820
|
className: M(
|
|
@@ -43825,8 +43823,8 @@ function Ut({
|
|
|
43825
43823
|
),
|
|
43826
43824
|
...n,
|
|
43827
43825
|
children: [
|
|
43828
|
-
/* @__PURE__ */ l("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(
|
|
43829
|
-
/* @__PURE__ */ l(
|
|
43826
|
+
/* @__PURE__ */ l("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(it.ItemIndicator, { children: /* @__PURE__ */ l(Ks, { className: "size-4" }) }) }),
|
|
43827
|
+
/* @__PURE__ */ l(it.ItemText, { children: e })
|
|
43830
43828
|
]
|
|
43831
43829
|
}
|
|
43832
43830
|
);
|
|
@@ -43836,7 +43834,7 @@ function b8({
|
|
|
43836
43834
|
...e
|
|
43837
43835
|
}) {
|
|
43838
43836
|
return /* @__PURE__ */ l(
|
|
43839
|
-
|
|
43837
|
+
it.Separator,
|
|
43840
43838
|
{
|
|
43841
43839
|
"data-slot": "select-separator",
|
|
43842
43840
|
className: M("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
@@ -43849,7 +43847,7 @@ function dj({
|
|
|
43849
43847
|
...e
|
|
43850
43848
|
}) {
|
|
43851
43849
|
return /* @__PURE__ */ l(
|
|
43852
|
-
|
|
43850
|
+
it.ScrollUpButton,
|
|
43853
43851
|
{
|
|
43854
43852
|
"data-slot": "select-scroll-up-button",
|
|
43855
43853
|
className: M(
|
|
@@ -43866,7 +43864,7 @@ function uj({
|
|
|
43866
43864
|
...e
|
|
43867
43865
|
}) {
|
|
43868
43866
|
return /* @__PURE__ */ l(
|
|
43869
|
-
|
|
43867
|
+
it.ScrollDownButton,
|
|
43870
43868
|
{
|
|
43871
43869
|
"data-slot": "select-scroll-down-button",
|
|
43872
43870
|
className: M(
|
|
@@ -43921,25 +43919,25 @@ function $s({
|
|
|
43921
43919
|
if (!t) return ["", ""];
|
|
43922
43920
|
const [w, x] = t.split(":");
|
|
43923
43921
|
return [w || "", x || ""];
|
|
43924
|
-
}, [t]), [h, m] = j.useState(() => u && parseInt(u) >= 12 ? "PM" : "AM"), g = (w, x,
|
|
43922
|
+
}, [t]), [h, m] = j.useState(() => u && parseInt(u) >= 12 ? "PM" : "AM"), g = (w, x, L) => {
|
|
43925
43923
|
if (!w || !x) return;
|
|
43926
43924
|
let y = parseInt(w);
|
|
43927
43925
|
const k = parseInt(x);
|
|
43928
|
-
n === "12h" &&
|
|
43929
|
-
const
|
|
43930
|
-
o1(
|
|
43926
|
+
n === "12h" && L && (y = pj(y, L));
|
|
43927
|
+
const C = `${y.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
|
|
43928
|
+
o1(C, i, a) && (e == null || e(C));
|
|
43931
43929
|
}, v = (w) => {
|
|
43932
|
-
const
|
|
43933
|
-
if (
|
|
43934
|
-
const y =
|
|
43930
|
+
const L = w.target.value.replace(/[^\d:]/g, "");
|
|
43931
|
+
if (L.length === 2 && !L.includes(":")) {
|
|
43932
|
+
const y = L + ":";
|
|
43935
43933
|
e == null || e(y);
|
|
43936
43934
|
return;
|
|
43937
43935
|
}
|
|
43938
|
-
if (
|
|
43939
|
-
const [y, k] =
|
|
43940
|
-
y >= 0 && y <= 23 && k >= 0 && k <= 59 && o1(
|
|
43936
|
+
if (L.match(/^\d{2}:\d{2}$/)) {
|
|
43937
|
+
const [y, k] = L.split(":").map(Number);
|
|
43938
|
+
y >= 0 && y <= 23 && k >= 0 && k <= 59 && o1(L, i, a) && (e == null || e(L));
|
|
43941
43939
|
} else
|
|
43942
|
-
e == null || e(
|
|
43940
|
+
e == null || e(L);
|
|
43943
43941
|
};
|
|
43944
43942
|
if (d === "input")
|
|
43945
43943
|
return /* @__PURE__ */ b("div", { className: M("relative", f), children: [
|
|
@@ -43958,13 +43956,13 @@ function $s({
|
|
|
43958
43956
|
)
|
|
43959
43957
|
] });
|
|
43960
43958
|
if (d === "select") {
|
|
43961
|
-
const w = i1(n), x = a1(r),
|
|
43959
|
+
const w = i1(n), x = a1(r), L = n === "12h" && u ? hj(parseInt(u)).hour.toString().padStart(2, "0") : u;
|
|
43962
43960
|
return /* @__PURE__ */ b("div", { className: M("flex items-center gap-2", f), children: [
|
|
43963
43961
|
c && /* @__PURE__ */ l(ni, { className: "size-4 text-muted-foreground" }),
|
|
43964
43962
|
/* @__PURE__ */ b(
|
|
43965
43963
|
mn,
|
|
43966
43964
|
{
|
|
43967
|
-
value:
|
|
43965
|
+
value: L,
|
|
43968
43966
|
onValueChange: (y) => {
|
|
43969
43967
|
g(y, p || "00", n === "12h" ? h : void 0);
|
|
43970
43968
|
},
|
|
@@ -44018,11 +44016,11 @@ function $s({
|
|
|
44018
44016
|
mn,
|
|
44019
44017
|
{
|
|
44020
44018
|
value: u,
|
|
44021
|
-
onValueChange: (
|
|
44019
|
+
onValueChange: (L) => g(L, p || "00", n === "12h" ? h : void 0),
|
|
44022
44020
|
disabled: o,
|
|
44023
44021
|
children: [
|
|
44024
44022
|
/* @__PURE__ */ l(bn, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ l(gn, { placeholder: "HH" }) }),
|
|
44025
|
-
/* @__PURE__ */ l(vn, { children: w.map((
|
|
44023
|
+
/* @__PURE__ */ l(vn, { children: w.map((L) => /* @__PURE__ */ l(Ut, { value: L, children: L }, L)) })
|
|
44026
44024
|
]
|
|
44027
44025
|
}
|
|
44028
44026
|
),
|
|
@@ -44031,11 +44029,11 @@ function $s({
|
|
|
44031
44029
|
mn,
|
|
44032
44030
|
{
|
|
44033
44031
|
value: p,
|
|
44034
|
-
onValueChange: (
|
|
44032
|
+
onValueChange: (L) => g(u || "00", L, n === "12h" ? h : void 0),
|
|
44035
44033
|
disabled: o,
|
|
44036
44034
|
children: [
|
|
44037
44035
|
/* @__PURE__ */ l(bn, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ l(gn, { placeholder: "MM" }) }),
|
|
44038
|
-
/* @__PURE__ */ l(vn, { children: x.map((
|
|
44036
|
+
/* @__PURE__ */ l(vn, { children: x.map((L) => /* @__PURE__ */ l(Ut, { value: L, children: L }, L)) })
|
|
44039
44037
|
]
|
|
44040
44038
|
}
|
|
44041
44039
|
),
|
|
@@ -44043,8 +44041,8 @@ function $s({
|
|
|
44043
44041
|
mn,
|
|
44044
44042
|
{
|
|
44045
44043
|
value: h,
|
|
44046
|
-
onValueChange: (
|
|
44047
|
-
m(
|
|
44044
|
+
onValueChange: (L) => {
|
|
44045
|
+
m(L), u && p && g(u, p, L);
|
|
44048
44046
|
},
|
|
44049
44047
|
disabled: o,
|
|
44050
44048
|
children: [
|
|
@@ -44079,7 +44077,7 @@ function mj({
|
|
|
44079
44077
|
id: m,
|
|
44080
44078
|
name: g
|
|
44081
44079
|
}) {
|
|
44082
|
-
const [v, w] = j.useState(!1), x = o || (d ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"),
|
|
44080
|
+
const [v, w] = j.useState(!1), x = o || (d ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"), L = j.useMemo(() => {
|
|
44083
44081
|
if (!t) return h;
|
|
44084
44082
|
const N = t.getHours().toString().padStart(2, "0"), S = t.getMinutes().toString().padStart(2, "0");
|
|
44085
44083
|
return `${N}:${S}`;
|
|
@@ -44089,7 +44087,7 @@ function mj({
|
|
|
44089
44087
|
return;
|
|
44090
44088
|
}
|
|
44091
44089
|
if (d) {
|
|
44092
|
-
const [S, I] =
|
|
44090
|
+
const [S, I] = L.split(":").map(Number);
|
|
44093
44091
|
N.setHours(S, I, 0, 0);
|
|
44094
44092
|
} else
|
|
44095
44093
|
N.setHours(0, 0, 0, 0);
|
|
@@ -44102,8 +44100,8 @@ function mj({
|
|
|
44102
44100
|
const S = /* @__PURE__ */ new Date(), [I, D] = N.split(":").map(Number);
|
|
44103
44101
|
S.setHours(I, D, 0, 0), e == null || e(S);
|
|
44104
44102
|
}
|
|
44105
|
-
},
|
|
44106
|
-
return /* @__PURE__ */ b(
|
|
44103
|
+
}, C = j.useMemo(() => t ? ae(t, x, { locale: s }) : "", [t, x, s]);
|
|
44104
|
+
return /* @__PURE__ */ b(lt, { open: v, onOpenChange: w, children: [
|
|
44107
44105
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(
|
|
44108
44106
|
R,
|
|
44109
44107
|
{
|
|
@@ -44119,7 +44117,7 @@ function mj({
|
|
|
44119
44117
|
),
|
|
44120
44118
|
children: [
|
|
44121
44119
|
/* @__PURE__ */ l($o, { className: "mr-2 size-4" }),
|
|
44122
|
-
|
|
44120
|
+
C || n
|
|
44123
44121
|
]
|
|
44124
44122
|
}
|
|
44125
44123
|
) }),
|
|
@@ -44138,7 +44136,7 @@ function mj({
|
|
|
44138
44136
|
d && /* @__PURE__ */ l("div", { className: "border-t p-3", children: /* @__PURE__ */ l(
|
|
44139
44137
|
$s,
|
|
44140
44138
|
{
|
|
44141
|
-
value:
|
|
44139
|
+
value: L,
|
|
44142
44140
|
onChange: k,
|
|
44143
44141
|
format: u,
|
|
44144
44142
|
minuteStep: p,
|
|
@@ -44206,7 +44204,7 @@ function bj({
|
|
|
44206
44204
|
id: v,
|
|
44207
44205
|
name: w
|
|
44208
44206
|
}) {
|
|
44209
|
-
const [x,
|
|
44207
|
+
const [x, L] = j.useState(!1), y = u ? `${o} HH:mm` : o, k = j.useMemo(() => [...g ? gj() : [], ...m || []], [m, g]), C = j.useMemo(() => {
|
|
44210
44208
|
if (!(t != null && t.from)) return "00:00";
|
|
44211
44209
|
const P = t.from.getHours().toString().padStart(2, "0"), F = t.from.getMinutes().toString().padStart(2, "0");
|
|
44212
44210
|
return `${P}:${F}`;
|
|
@@ -44221,7 +44219,7 @@ function bj({
|
|
|
44221
44219
|
}
|
|
44222
44220
|
if (u) {
|
|
44223
44221
|
if (P.from) {
|
|
44224
|
-
const [F, A] =
|
|
44222
|
+
const [F, A] = C.split(":").map(Number);
|
|
44225
44223
|
P.from.setHours(F, A, 0, 0);
|
|
44226
44224
|
}
|
|
44227
44225
|
if (P.to) {
|
|
@@ -44245,7 +44243,7 @@ function bj({
|
|
|
44245
44243
|
to: new Date(P.value.to)
|
|
44246
44244
|
};
|
|
44247
44245
|
if (u) {
|
|
44248
|
-
const [A, G] =
|
|
44246
|
+
const [A, G] = C.split(":").map(Number), [$, le] = N.split(":").map(Number);
|
|
44249
44247
|
F.from.setHours(A, G, 0, 0), F.to.setHours($, le, 0, 0);
|
|
44250
44248
|
}
|
|
44251
44249
|
e == null || e(F);
|
|
@@ -44256,7 +44254,7 @@ function bj({
|
|
|
44256
44254
|
const F = ae(t.to, y, { locale: s });
|
|
44257
44255
|
return `${P} → ${F}`;
|
|
44258
44256
|
}, [t, y, s]);
|
|
44259
|
-
return /* @__PURE__ */ b(
|
|
44257
|
+
return /* @__PURE__ */ b(lt, { open: x, onOpenChange: L, children: [
|
|
44260
44258
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(
|
|
44261
44259
|
R,
|
|
44262
44260
|
{
|
|
@@ -44310,7 +44308,7 @@ function bj({
|
|
|
44310
44308
|
/* @__PURE__ */ l(
|
|
44311
44309
|
$s,
|
|
44312
44310
|
{
|
|
44313
|
-
value:
|
|
44311
|
+
value: C,
|
|
44314
44312
|
onChange: I,
|
|
44315
44313
|
format: p,
|
|
44316
44314
|
minuteStep: h,
|
|
@@ -44346,7 +44344,7 @@ function bj({
|
|
|
44346
44344
|
children: "Limpar"
|
|
44347
44345
|
}
|
|
44348
44346
|
),
|
|
44349
|
-
/* @__PURE__ */ l(R, { size: "sm", onClick: () =>
|
|
44347
|
+
/* @__PURE__ */ l(R, { size: "sm", onClick: () => L(!1), children: "Confirmar" })
|
|
44350
44348
|
] })
|
|
44351
44349
|
] })
|
|
44352
44350
|
] }) })
|
|
@@ -44424,9 +44422,9 @@ const wj = {
|
|
|
44424
44422
|
onEdit: v,
|
|
44425
44423
|
onDelete: w,
|
|
44426
44424
|
onDuplicate: x,
|
|
44427
|
-
className:
|
|
44425
|
+
className: L
|
|
44428
44426
|
}, y) => {
|
|
44429
|
-
const k = s && new Date(s) < /* @__PURE__ */ new Date(),
|
|
44427
|
+
const k = s && new Date(s) < /* @__PURE__ */ new Date(), C = o ? wj[o] : null, N = (I) => {
|
|
44430
44428
|
const D = I.getDate().toString().padStart(2, "0"), U = (I.getMonth() + 1).toString().padStart(2, "0");
|
|
44431
44429
|
return `${D}/${U}`;
|
|
44432
44430
|
}, S = (I) => {
|
|
@@ -44446,7 +44444,7 @@ const wj = {
|
|
|
44446
44444
|
o === "high" && "border-l-orange-500",
|
|
44447
44445
|
o === "urgent" && "border-l-red-500",
|
|
44448
44446
|
h === "compact" && "hover:scale-[1.01]",
|
|
44449
|
-
|
|
44447
|
+
L
|
|
44450
44448
|
),
|
|
44451
44449
|
onClick: S,
|
|
44452
44450
|
children: [
|
|
@@ -44463,15 +44461,15 @@ const wj = {
|
|
|
44463
44461
|
ge,
|
|
44464
44462
|
{
|
|
44465
44463
|
variant: "secondary",
|
|
44466
|
-
className: M("shadow-sm",
|
|
44464
|
+
className: M("shadow-sm", C == null ? void 0 : C.bgColor),
|
|
44467
44465
|
children: [
|
|
44468
44466
|
/* @__PURE__ */ l(
|
|
44469
44467
|
"div",
|
|
44470
44468
|
{
|
|
44471
|
-
className: M("w-2 h-2 rounded-full mr-1",
|
|
44469
|
+
className: M("w-2 h-2 rounded-full mr-1", C == null ? void 0 : C.color)
|
|
44472
44470
|
}
|
|
44473
44471
|
),
|
|
44474
|
-
|
|
44472
|
+
C == null ? void 0 : C.label
|
|
44475
44473
|
]
|
|
44476
44474
|
}
|
|
44477
44475
|
) })
|
|
@@ -44552,15 +44550,15 @@ const wj = {
|
|
|
44552
44550
|
ge,
|
|
44553
44551
|
{
|
|
44554
44552
|
variant: "secondary",
|
|
44555
|
-
className: M("mt-2 w-fit text-xs",
|
|
44553
|
+
className: M("mt-2 w-fit text-xs", C == null ? void 0 : C.bgColor),
|
|
44556
44554
|
children: [
|
|
44557
44555
|
/* @__PURE__ */ l(
|
|
44558
44556
|
"div",
|
|
44559
44557
|
{
|
|
44560
|
-
className: M("w-2 h-2 rounded-full mr-1",
|
|
44558
|
+
className: M("w-2 h-2 rounded-full mr-1", C == null ? void 0 : C.color)
|
|
44561
44559
|
}
|
|
44562
44560
|
),
|
|
44563
|
-
|
|
44561
|
+
C == null ? void 0 : C.label
|
|
44564
44562
|
]
|
|
44565
44563
|
}
|
|
44566
44564
|
)
|
|
@@ -45281,7 +45279,7 @@ const et = ({
|
|
|
45281
45279
|
/* @__PURE__ */ l(R, { variant: "ghost", size: "icon", className: "h-8 w-8", onClick: () => t.chain().focus().redo().run(), disabled: !t.can().redo(), children: /* @__PURE__ */ l(nv, { className: "h-4 w-4" }) })
|
|
45282
45280
|
] }),
|
|
45283
45281
|
/* @__PURE__ */ l(sr, { orientation: "vertical", className: "h-6 mx-1" }),
|
|
45284
|
-
e === "full" && /* @__PURE__ */ b(
|
|
45282
|
+
e === "full" && /* @__PURE__ */ b(rt, { children: [
|
|
45285
45283
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 1 }).run(), isActive: t.isActive("heading", { level: 1 }), title: "Título 1", children: /* @__PURE__ */ l(rv, { className: "h-4 w-4" }) }),
|
|
45286
45284
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 2 }).run(), isActive: t.isActive("heading", { level: 2 }), title: "Título 2", children: /* @__PURE__ */ l(iv, { className: "h-4 w-4" }) }),
|
|
45287
45285
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleHeading({ level: 3 }).run(), isActive: t.isActive("heading", { level: 3 }), title: "Título 3", children: /* @__PURE__ */ l(av, { className: "h-4 w-4" }) }),
|
|
@@ -45294,7 +45292,7 @@ const et = ({
|
|
|
45294
45292
|
/* @__PURE__ */ l(sr, { orientation: "vertical", className: "h-6 mx-1" }),
|
|
45295
45293
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleBulletList().run(), isActive: t.isActive("bulletList"), title: "Lista com marcadores", children: /* @__PURE__ */ l(H1, { className: "h-4 w-4" }) }),
|
|
45296
45294
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().toggleOrderedList().run(), isActive: t.isActive("orderedList"), title: "Lista numerada", children: /* @__PURE__ */ l(U1, { className: "h-4 w-4" }) }),
|
|
45297
|
-
e === "full" && /* @__PURE__ */ b(
|
|
45295
|
+
e === "full" && /* @__PURE__ */ b(rt, { children: [
|
|
45298
45296
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("left").run(), isActive: t.isActive({ textAlign: "left" }), title: "Alinhar à esquerda", children: /* @__PURE__ */ l(sv, { className: "h-4 w-4" }) }),
|
|
45299
45297
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("center").run(), isActive: t.isActive({ textAlign: "center" }), title: "Centralizar", children: /* @__PURE__ */ l(fv, { className: "h-4 w-4" }) }),
|
|
45300
45298
|
/* @__PURE__ */ l(et, { onClick: () => t.chain().focus().setTextAlign("right").run(), isActive: t.isActive({ textAlign: "right" }), title: "Alinhar à direita", children: /* @__PURE__ */ l(lv, { className: "h-4 w-4" }) })
|
|
@@ -45489,7 +45487,7 @@ function Oj({
|
|
|
45489
45487
|
className: h,
|
|
45490
45488
|
...m
|
|
45491
45489
|
}, g) {
|
|
45492
|
-
const [v, w] = j.useState(null), [x,
|
|
45490
|
+
const [v, w] = j.useState(null), [x, L] = j.useState(!1), [y, k] = j.useState(!1), [C, N] = j.useState(!1), S = j.useMemo(
|
|
45493
45491
|
() => e.find((A) => A.value === t),
|
|
45494
45492
|
[e, t]
|
|
45495
45493
|
), I = j.useMemo(
|
|
@@ -45501,7 +45499,7 @@ function Oj({
|
|
|
45501
45499
|
k(!1);
|
|
45502
45500
|
return;
|
|
45503
45501
|
}
|
|
45504
|
-
w(A), k(!1), d ? U(A) :
|
|
45502
|
+
w(A), k(!1), d ? U(A) : L(!0);
|
|
45505
45503
|
},
|
|
45506
45504
|
[t, d]
|
|
45507
45505
|
), U = j.useCallback(
|
|
@@ -45510,7 +45508,7 @@ function Oj({
|
|
|
45510
45508
|
if (G) {
|
|
45511
45509
|
N(!0);
|
|
45512
45510
|
try {
|
|
45513
|
-
await n(G),
|
|
45511
|
+
await n(G), L(!1), w(null);
|
|
45514
45512
|
} catch ($) {
|
|
45515
45513
|
console.error("Error confirming value change:", $);
|
|
45516
45514
|
} finally {
|
|
@@ -45520,12 +45518,12 @@ function Oj({
|
|
|
45520
45518
|
},
|
|
45521
45519
|
[v, n]
|
|
45522
45520
|
), Y = j.useCallback(() => {
|
|
45523
|
-
|
|
45524
|
-
}, [r]), P = j.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ b(
|
|
45521
|
+
L(!1), w(null), r == null || r();
|
|
45522
|
+
}, [r]), P = j.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ b(rt, { children: [
|
|
45525
45523
|
S.icon,
|
|
45526
45524
|
S.label
|
|
45527
45525
|
] }) : t, [p, t, S]), F = (S == null ? void 0 : S.variant) || a;
|
|
45528
|
-
return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ge, { variant: F, children: P() }) }) : /* @__PURE__ */ b(
|
|
45526
|
+
return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ge, { variant: F, children: P() }) }) : /* @__PURE__ */ b(rt, { children: [
|
|
45529
45527
|
/* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ b(sf, { open: y, onOpenChange: k, children: [
|
|
45530
45528
|
/* @__PURE__ */ l(ff, { asChild: !0, disabled: u, children: /* @__PURE__ */ b(
|
|
45531
45529
|
ge,
|
|
@@ -45555,7 +45553,7 @@ function Oj({
|
|
|
45555
45553
|
String(A.value)
|
|
45556
45554
|
)) })
|
|
45557
45555
|
] }) }),
|
|
45558
|
-
/* @__PURE__ */ l(Ff, { open: x, onOpenChange:
|
|
45556
|
+
/* @__PURE__ */ l(Ff, { open: x, onOpenChange: L, children: /* @__PURE__ */ b(Jf, { children: [
|
|
45559
45557
|
/* @__PURE__ */ b(Yf, { children: [
|
|
45560
45558
|
/* @__PURE__ */ l(Qf, { children: o }),
|
|
45561
45559
|
/* @__PURE__ */ l(Vf, { children: s })
|
|
@@ -45583,11 +45581,11 @@ function Oj({
|
|
|
45583
45581
|
{
|
|
45584
45582
|
variant: "outline",
|
|
45585
45583
|
onClick: Y,
|
|
45586
|
-
disabled:
|
|
45584
|
+
disabled: C,
|
|
45587
45585
|
children: c
|
|
45588
45586
|
}
|
|
45589
45587
|
),
|
|
45590
|
-
/* @__PURE__ */ l(R, { onClick: () => U(), disabled:
|
|
45588
|
+
/* @__PURE__ */ l(R, { onClick: () => U(), disabled: C, children: C ? "Confirmando..." : f })
|
|
45591
45589
|
] })
|
|
45592
45590
|
] }) })
|
|
45593
45591
|
] });
|
|
@@ -45787,11 +45785,11 @@ function Ub(t, e, n) {
|
|
|
45787
45785
|
subscribe: function(x) {
|
|
45788
45786
|
if (typeof x != "object" || x === null)
|
|
45789
45787
|
throw new Error(process.env.NODE_ENV === "production" ? kt(11) : "Expected the observer to be an object. Instead, received: '" + _r(x) + "'");
|
|
45790
|
-
function
|
|
45788
|
+
function L() {
|
|
45791
45789
|
x.next && x.next(d());
|
|
45792
45790
|
}
|
|
45793
|
-
|
|
45794
|
-
var y = v(
|
|
45791
|
+
L();
|
|
45792
|
+
var y = v(L);
|
|
45795
45793
|
return {
|
|
45796
45794
|
unsubscribe: y
|
|
45797
45795
|
};
|
|
@@ -47631,7 +47629,7 @@ function _5(t, e, n, r, i) {
|
|
|
47631
47629
|
x: n.x - s.x,
|
|
47632
47630
|
y: n.y - s.y
|
|
47633
47631
|
}, { offsetWidth: c, offsetHeight: d } = t, { anchorX: u, anchorY: p } = r, { dragPreviewWidth: h, dragPreviewHeight: m } = G5(a, e, c, d), g = () => {
|
|
47634
|
-
let
|
|
47632
|
+
let C = new w1([
|
|
47635
47633
|
0,
|
|
47636
47634
|
0.5,
|
|
47637
47635
|
1
|
|
@@ -47643,7 +47641,7 @@ function _5(t, e, n, r, i) {
|
|
|
47643
47641
|
// Dock to the bottom
|
|
47644
47642
|
f.y + m - d
|
|
47645
47643
|
]).interpolate(p);
|
|
47646
|
-
return n4() && a && (
|
|
47644
|
+
return n4() && a && (C += (window.devicePixelRatio - 1) * m), C;
|
|
47647
47645
|
}, v = () => new w1([
|
|
47648
47646
|
0,
|
|
47649
47647
|
0.5,
|
|
@@ -47655,9 +47653,9 @@ function _5(t, e, n, r, i) {
|
|
|
47655
47653
|
f.x / c * h,
|
|
47656
47654
|
// Dock to the right
|
|
47657
47655
|
f.x + h - c
|
|
47658
|
-
]).interpolate(u), { offsetX: w, offsetY: x } = i,
|
|
47656
|
+
]).interpolate(u), { offsetX: w, offsetY: x } = i, L = w === 0 || w, y = x === 0 || x;
|
|
47659
47657
|
return {
|
|
47660
|
-
x:
|
|
47658
|
+
x: L ? w : v(),
|
|
47661
47659
|
y: y ? x : g()
|
|
47662
47660
|
};
|
|
47663
47661
|
}
|
|
@@ -47861,14 +47859,14 @@ class Z5 {
|
|
|
47861
47859
|
if (s && typeof s.setDragImage == "function") {
|
|
47862
47860
|
const d = this.monitor.getSourceId(), u = this.sourceNodes.get(d), p = this.sourcePreviewNodes.get(d) || u;
|
|
47863
47861
|
if (p) {
|
|
47864
|
-
const { anchorX: h, anchorY: m, offsetX: g, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(),
|
|
47862
|
+
const { anchorX: h, anchorY: m, offsetX: g, offsetY: v } = this.getCurrentSourcePreviewNodeOptions(), L = _5(u, p, o, {
|
|
47865
47863
|
anchorX: h,
|
|
47866
47864
|
anchorY: m
|
|
47867
47865
|
}, {
|
|
47868
47866
|
offsetX: g,
|
|
47869
47867
|
offsetY: v
|
|
47870
47868
|
});
|
|
47871
|
-
s.setDragImage(p,
|
|
47869
|
+
s.setDragImage(p, L.x, L.y);
|
|
47872
47870
|
}
|
|
47873
47871
|
}
|
|
47874
47872
|
try {
|
|
@@ -48972,7 +48970,7 @@ const m4 = j.memo(({
|
|
|
48972
48970
|
)
|
|
48973
48971
|
]
|
|
48974
48972
|
}
|
|
48975
|
-
) : /* @__PURE__ */ b(
|
|
48973
|
+
) : /* @__PURE__ */ b(lt, { children: [
|
|
48976
48974
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(
|
|
48977
48975
|
"div",
|
|
48978
48976
|
{
|
|
@@ -49081,15 +49079,15 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49081
49079
|
const [f, c] = j.useState(/* @__PURE__ */ new Date()), [d, u] = j.useState(/* @__PURE__ */ new Set()), p = Zo(f), h = td(f), m = _1({ start: p, end: h }), g = () => c(qo(f, 1)), v = () => c(Z1(f, 1)), w = () => c(/* @__PURE__ */ new Date()), x = j.useMemo(() => {
|
|
49082
49080
|
if (o === "assignees") {
|
|
49083
49081
|
const y = /* @__PURE__ */ new Map();
|
|
49084
|
-
return t.forEach((
|
|
49082
|
+
return t.forEach((C) => {
|
|
49085
49083
|
var S;
|
|
49086
|
-
const N = ((S =
|
|
49087
|
-
y.has(N) || y.set(N, []), y.get(N).push(
|
|
49088
|
-
}), Array.from(y.entries()).map(([
|
|
49084
|
+
const N = ((S = C.assignee) == null ? void 0 : S.name) || "Sem responsável";
|
|
49085
|
+
y.has(N) || y.set(N, []), y.get(N).push(C);
|
|
49086
|
+
}), Array.from(y.entries()).map(([C, N], S) => {
|
|
49089
49087
|
var I, D, U;
|
|
49090
49088
|
return {
|
|
49091
|
-
id:
|
|
49092
|
-
name:
|
|
49089
|
+
id: C,
|
|
49090
|
+
name: C,
|
|
49093
49091
|
color: (I = N[0]) != null && I.assignee ? C1[S % C1.length] : "#999",
|
|
49094
49092
|
initials: ((U = (D = N[0]) == null ? void 0 : D.assignee) == null ? void 0 : U.initials) || "??",
|
|
49095
49093
|
tasks: N
|
|
@@ -49098,22 +49096,22 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49098
49096
|
} else {
|
|
49099
49097
|
const y = /* @__PURE__ */ new Map();
|
|
49100
49098
|
return t.forEach((k) => {
|
|
49101
|
-
const
|
|
49102
|
-
y.has(
|
|
49103
|
-
}), e.length > 0 ? e.map((
|
|
49104
|
-
...
|
|
49105
|
-
tasks: y.get(
|
|
49106
|
-
})).filter((
|
|
49099
|
+
const C = k.projectId;
|
|
49100
|
+
y.has(C) || y.set(C, []), y.get(C).push(k);
|
|
49101
|
+
}), e.length > 0 ? e.map((C) => ({
|
|
49102
|
+
...C,
|
|
49103
|
+
tasks: y.get(C.id) || []
|
|
49104
|
+
})).filter((C) => C.tasks.length > 0) : [{
|
|
49107
49105
|
id: "default",
|
|
49108
49106
|
name: "Tarefas",
|
|
49109
49107
|
color: "#7F26BF",
|
|
49110
49108
|
tasks: t
|
|
49111
49109
|
}];
|
|
49112
49110
|
}
|
|
49113
|
-
}, [t, e, o]),
|
|
49111
|
+
}, [t, e, o]), L = (y) => {
|
|
49114
49112
|
u((k) => {
|
|
49115
|
-
const
|
|
49116
|
-
return
|
|
49113
|
+
const C = new Set(k);
|
|
49114
|
+
return C.has(y) ? C.delete(y) : C.add(y), C;
|
|
49117
49115
|
});
|
|
49118
49116
|
};
|
|
49119
49117
|
return /* @__PURE__ */ b("div", { className: "flex flex-col gap-4", children: [
|
|
@@ -49169,14 +49167,14 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49169
49167
|
] }),
|
|
49170
49168
|
/* @__PURE__ */ b("div", { className: "relative", children: [
|
|
49171
49169
|
/* @__PURE__ */ l("div", { className: "absolute inset-0 flex pointer-events-none pl-[280px]", children: m.map((y) => {
|
|
49172
|
-
const k = Au(y),
|
|
49170
|
+
const k = Au(y), C = af(y, /* @__PURE__ */ new Date());
|
|
49173
49171
|
return /* @__PURE__ */ l(
|
|
49174
49172
|
"div",
|
|
49175
49173
|
{
|
|
49176
49174
|
className: M(
|
|
49177
49175
|
"flex-shrink-0 h-full",
|
|
49178
49176
|
k && "bg-muted/10",
|
|
49179
|
-
|
|
49177
|
+
C && "bg-primary/5"
|
|
49180
49178
|
),
|
|
49181
49179
|
style: { width: `${a}px` }
|
|
49182
49180
|
},
|
|
@@ -49192,7 +49190,7 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49192
49190
|
{
|
|
49193
49191
|
className: "sticky left-0 z-30 w-[280px] border-r bg-background flex items-center gap-2 px-3 py-2 border-b hover:bg-muted/50 transition-colors cursor-pointer",
|
|
49194
49192
|
style: { height: `${i}px` },
|
|
49195
|
-
onClick: () =>
|
|
49193
|
+
onClick: () => L(y.id),
|
|
49196
49194
|
children: [
|
|
49197
49195
|
k ? /* @__PURE__ */ l(Zt, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ l(tf, { className: "size-4 text-muted-foreground" }),
|
|
49198
49196
|
o === "assignees" && y.initials ? /* @__PURE__ */ l(qt, { className: "size-6", children: /* @__PURE__ */ l(Kt, { style: { backgroundColor: y.color }, className: "text-white text-[10px]", children: y.initials }) }) : /* @__PURE__ */ l(
|
|
@@ -49209,7 +49207,7 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49209
49207
|
),
|
|
49210
49208
|
/* @__PURE__ */ l("div", { className: "flex-1 border-b", style: { height: `${i}px` } })
|
|
49211
49209
|
] }),
|
|
49212
|
-
!k && y.tasks.map((
|
|
49210
|
+
!k && y.tasks.map((C) => /* @__PURE__ */ b("div", { className: "flex sticky-container group", children: [
|
|
49213
49211
|
/* @__PURE__ */ b(
|
|
49214
49212
|
"div",
|
|
49215
49213
|
{
|
|
@@ -49221,18 +49219,18 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49221
49219
|
{
|
|
49222
49220
|
className: M(
|
|
49223
49221
|
"size-2 rounded-full flex-shrink-0",
|
|
49224
|
-
|
|
49222
|
+
C.milestone && "rotate-45"
|
|
49225
49223
|
),
|
|
49226
49224
|
style: { backgroundColor: y.color }
|
|
49227
49225
|
}
|
|
49228
49226
|
),
|
|
49229
|
-
/* @__PURE__ */ l("span", { className: "text-sm truncate flex-1", children:
|
|
49230
|
-
o === "projects" &&
|
|
49227
|
+
/* @__PURE__ */ l("span", { className: "text-sm truncate flex-1", children: C.name }),
|
|
49228
|
+
o === "projects" && C.assignee && /* @__PURE__ */ l(qt, { className: "size-6 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ l(Kt, { className: "text-[10px]", children: C.assignee.initials || C.assignee.name.substring(0, 2).toUpperCase() }) }),
|
|
49231
49229
|
r && /* @__PURE__ */ l(
|
|
49232
49230
|
Gl,
|
|
49233
49231
|
{
|
|
49234
49232
|
className: "size-4 text-muted-foreground cursor-pointer hover:text-primary ml-2 opacity-0 group-hover:opacity-100",
|
|
49235
|
-
onClick: () => r(
|
|
49233
|
+
onClick: () => r(C)
|
|
49236
49234
|
}
|
|
49237
49235
|
)
|
|
49238
49236
|
]
|
|
@@ -49241,7 +49239,7 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49241
49239
|
/* @__PURE__ */ l("div", { className: "relative flex-1 border-b", style: { height: `${i}px` }, children: /* @__PURE__ */ l(
|
|
49242
49240
|
m4,
|
|
49243
49241
|
{
|
|
49244
|
-
task:
|
|
49242
|
+
task: C,
|
|
49245
49243
|
timelineStart: p,
|
|
49246
49244
|
timelineEnd: h,
|
|
49247
49245
|
columnWidth: a,
|
|
@@ -49250,18 +49248,18 @@ const rE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], iE = j.forwardRef(
|
|
|
49250
49248
|
onTaskEdit: r
|
|
49251
49249
|
}
|
|
49252
49250
|
) })
|
|
49253
|
-
] },
|
|
49251
|
+
] }, C.id))
|
|
49254
49252
|
] }, y.id);
|
|
49255
49253
|
}),
|
|
49256
49254
|
(() => {
|
|
49257
49255
|
const y = /* @__PURE__ */ new Date();
|
|
49258
49256
|
if (y >= p && y <= h) {
|
|
49259
|
-
const
|
|
49257
|
+
const C = 280 + ea(y, p) * a + a / 2;
|
|
49260
49258
|
return /* @__PURE__ */ l(
|
|
49261
49259
|
"div",
|
|
49262
49260
|
{
|
|
49263
49261
|
className: "absolute top-0 bottom-0 w-0.5 bg-primary pointer-events-none z-20",
|
|
49264
|
-
style: { left: `${
|
|
49262
|
+
style: { left: `${C}px` },
|
|
49265
49263
|
children: /* @__PURE__ */ l("div", { className: "absolute -top-1 -left-1.5 size-3 rounded-full bg-primary shadow-sm" })
|
|
49266
49264
|
}
|
|
49267
49265
|
);
|
|
@@ -50998,7 +50996,7 @@ function C4({
|
|
|
50998
50996
|
labels: p,
|
|
50999
50997
|
className: h
|
|
51000
50998
|
}) {
|
|
51001
|
-
const m = { ...zE, ...p }, g = PE(t, e, s), v = (t - 1) * n + 1, w = Math.min(t * n, r), x = t > 1,
|
|
50999
|
+
const m = { ...zE, ...p }, g = PE(t, e, s), v = (t - 1) * n + 1, w = Math.min(t * n, r), x = t > 1, L = t < e;
|
|
51002
51000
|
return e === 0 ? null : /* @__PURE__ */ b(
|
|
51003
51001
|
"div",
|
|
51004
51002
|
{
|
|
@@ -51101,7 +51099,7 @@ function C4({
|
|
|
51101
51099
|
size: "icon",
|
|
51102
51100
|
className: "h-8 w-8",
|
|
51103
51101
|
onClick: () => i(t + 1),
|
|
51104
|
-
disabled: !
|
|
51102
|
+
disabled: !L,
|
|
51105
51103
|
"aria-label": m.next,
|
|
51106
51104
|
children: /* @__PURE__ */ l(Zt, { className: "h-4 w-4" })
|
|
51107
51105
|
}
|
|
@@ -51113,7 +51111,7 @@ function C4({
|
|
|
51113
51111
|
size: "icon",
|
|
51114
51112
|
className: "h-8 w-8",
|
|
51115
51113
|
onClick: () => i(e),
|
|
51116
|
-
disabled: !
|
|
51114
|
+
disabled: !L,
|
|
51117
51115
|
"aria-label": m.last,
|
|
51118
51116
|
children: /* @__PURE__ */ l(Sv, { className: "h-4 w-4" })
|
|
51119
51117
|
}
|
|
@@ -51146,21 +51144,21 @@ function BE({
|
|
|
51146
51144
|
n && a(1);
|
|
51147
51145
|
}, [t.length, n]);
|
|
51148
51146
|
const d = Math.ceil(c / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, c), m = be(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (k) => {
|
|
51149
|
-
const
|
|
51150
|
-
a(
|
|
51147
|
+
const C = Math.max(1, Math.min(k, d));
|
|
51148
|
+
a(C);
|
|
51151
51149
|
}, v = () => {
|
|
51152
51150
|
i < d && a((k) => k + 1);
|
|
51153
51151
|
}, w = () => {
|
|
51154
51152
|
i > 1 && a((k) => k - 1);
|
|
51155
51153
|
}, x = (k) => {
|
|
51156
51154
|
s(k), a(1);
|
|
51157
|
-
},
|
|
51155
|
+
}, L = {
|
|
51158
51156
|
currentPage: u,
|
|
51159
51157
|
pageSize: o,
|
|
51160
51158
|
totalItems: c,
|
|
51161
51159
|
onPageChange: g,
|
|
51162
51160
|
onPageSizeChange: x
|
|
51163
|
-
}, y = RE(
|
|
51161
|
+
}, y = RE(L);
|
|
51164
51162
|
return {
|
|
51165
51163
|
currentPage: u,
|
|
51166
51164
|
pageSize: o,
|
|
@@ -51171,7 +51169,7 @@ function BE({
|
|
|
51171
51169
|
nextPage: v,
|
|
51172
51170
|
prevPage: w,
|
|
51173
51171
|
setPageSize: x,
|
|
51174
|
-
paginationConfig:
|
|
51172
|
+
paginationConfig: L,
|
|
51175
51173
|
metadata: y
|
|
51176
51174
|
};
|
|
51177
51175
|
}
|
|
@@ -51185,8 +51183,8 @@ function HE({
|
|
|
51185
51183
|
serverCurrentPage: o,
|
|
51186
51184
|
serverCurrentPageSize: s
|
|
51187
51185
|
}) {
|
|
51188
|
-
const [f, c] = ee(e), [d, u] = ee([]), p = be(() => i || d.length === 0 ? t : t.filter((
|
|
51189
|
-
const S =
|
|
51186
|
+
const [f, c] = ee(e), [d, u] = ee([]), p = be(() => i || d.length === 0 ? t : t.filter((C) => d.every((N) => {
|
|
51187
|
+
const S = C[N.column];
|
|
51190
51188
|
switch (N.operator) {
|
|
51191
51189
|
case "equals":
|
|
51192
51190
|
return S == N.value;
|
|
@@ -51201,8 +51199,8 @@ function HE({
|
|
|
51201
51199
|
default:
|
|
51202
51200
|
return !0;
|
|
51203
51201
|
}
|
|
51204
|
-
})), [t, d, i]), h = be(() => i || !f.column || !f.direction ? p : [...p].sort((
|
|
51205
|
-
const S =
|
|
51202
|
+
})), [t, d, i]), h = be(() => i || !f.column || !f.direction ? p : [...p].sort((C, N) => {
|
|
51203
|
+
const S = C[f.column], I = N[f.column];
|
|
51206
51204
|
return S < I ? f.direction === "asc" ? -1 : 1 : S > I ? f.direction === "asc" ? 1 : -1 : 0;
|
|
51207
51205
|
}), [p, f, i]), m = i ? a ?? t.length : h.length, g = BE({
|
|
51208
51206
|
data: i ? t : h,
|
|
@@ -51213,22 +51211,22 @@ function HE({
|
|
|
51213
51211
|
de(() => {
|
|
51214
51212
|
i && (o !== void 0 && o !== g.currentPage && g.goToPage(o), s !== void 0 && s !== g.pageSize && g.setPageSize(s));
|
|
51215
51213
|
}, [i, o, s, g]);
|
|
51216
|
-
const v = (
|
|
51214
|
+
const v = (C) => {
|
|
51217
51215
|
c((N) => {
|
|
51218
|
-
if (N.column ===
|
|
51219
|
-
if (N.direction === "asc") return { column:
|
|
51216
|
+
if (N.column === C) {
|
|
51217
|
+
if (N.direction === "asc") return { column: C, direction: "desc" };
|
|
51220
51218
|
if (N.direction === "desc") return { column: null, direction: null };
|
|
51221
51219
|
}
|
|
51222
|
-
return { column:
|
|
51220
|
+
return { column: C, direction: "asc" };
|
|
51223
51221
|
});
|
|
51224
|
-
}, w = (
|
|
51222
|
+
}, w = (C, N, S = "contains") => {
|
|
51225
51223
|
u((I) => {
|
|
51226
|
-
const D = I.filter((U) => U.column !==
|
|
51227
|
-
return N === "" || N === null || N === void 0 ? D : [...D, { column:
|
|
51224
|
+
const D = I.filter((U) => U.column !== C);
|
|
51225
|
+
return N === "" || N === null || N === void 0 ? D : [...D, { column: C, operator: S, value: N }];
|
|
51228
51226
|
});
|
|
51229
|
-
}, x = (
|
|
51230
|
-
u((N) => N.filter((S) => S.column !==
|
|
51231
|
-
},
|
|
51227
|
+
}, x = (C) => {
|
|
51228
|
+
u((N) => N.filter((S) => S.column !== C));
|
|
51229
|
+
}, L = (C) => f.column === C ? f.direction : null, y = i ? t : r ? g.paginatedData : h, k = i && (o !== void 0 || s !== void 0) ? {
|
|
51232
51230
|
...g.paginationConfig,
|
|
51233
51231
|
currentPage: o ?? g.paginationConfig.currentPage,
|
|
51234
51232
|
pageSize: s ?? g.paginationConfig.pageSize
|
|
@@ -51246,7 +51244,7 @@ function HE({
|
|
|
51246
51244
|
removeFilter: x,
|
|
51247
51245
|
clearFilters: () => u([])
|
|
51248
51246
|
},
|
|
51249
|
-
getSortDirection:
|
|
51247
|
+
getSortDirection: L
|
|
51250
51248
|
};
|
|
51251
51249
|
}
|
|
51252
51250
|
function UE({ label: t, value: e, onRemove: n, className: r }) {
|
|
@@ -51262,7 +51260,7 @@ function UE({ label: t, value: e, onRemove: n, className: r }) {
|
|
|
51262
51260
|
children: [
|
|
51263
51261
|
/* @__PURE__ */ b("span", { className: "text-sm", children: [
|
|
51264
51262
|
t,
|
|
51265
|
-
e && /* @__PURE__ */ b(
|
|
51263
|
+
e && /* @__PURE__ */ b(rt, { children: [
|
|
51266
51264
|
": ",
|
|
51267
51265
|
/* @__PURE__ */ l("span", { className: "font-semibold", children: e })
|
|
51268
51266
|
] })
|
|
@@ -51304,7 +51302,7 @@ function FE({
|
|
|
51304
51302
|
]
|
|
51305
51303
|
}
|
|
51306
51304
|
),
|
|
51307
|
-
a && /* @__PURE__ */ b(
|
|
51305
|
+
a && /* @__PURE__ */ b(rt, { children: [
|
|
51308
51306
|
/* @__PURE__ */ l("div", { className: "h-4 w-px bg-border" }),
|
|
51309
51307
|
t.map((o) => /* @__PURE__ */ l(
|
|
51310
51308
|
UE,
|
|
@@ -51417,7 +51415,7 @@ function YE({
|
|
|
51417
51415
|
return /* @__PURE__ */ b("div", { className: "flex items-start gap-2 group", children: [
|
|
51418
51416
|
/* @__PURE__ */ l("div", { className: "flex items-center h-9 px-2 text-sm text-muted-foreground", children: n === 0 ? "Onde" : "E" }),
|
|
51419
51417
|
/* @__PURE__ */ b("div", { className: "flex-1 flex items-center gap-2 flex-wrap p-2 border rounded-lg bg-background", children: [
|
|
51420
|
-
/* @__PURE__ */ b(
|
|
51418
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
51421
51419
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
51422
51420
|
R,
|
|
51423
51421
|
{
|
|
@@ -51445,7 +51443,7 @@ function YE({
|
|
|
51445
51443
|
h.value
|
|
51446
51444
|
)) }) })
|
|
51447
51445
|
] }),
|
|
51448
|
-
/* @__PURE__ */ b(
|
|
51446
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
51449
51447
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
51450
51448
|
R,
|
|
51451
51449
|
{
|
|
@@ -51473,10 +51471,10 @@ function YE({
|
|
|
51473
51471
|
h.value
|
|
51474
51472
|
)) }) })
|
|
51475
51473
|
] }),
|
|
51476
|
-
f && /* @__PURE__ */ b(
|
|
51474
|
+
f && /* @__PURE__ */ b(rt, { children: [
|
|
51477
51475
|
a != null && a.options ? (
|
|
51478
51476
|
// Select field with options
|
|
51479
|
-
/* @__PURE__ */ b(
|
|
51477
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
51480
51478
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
51481
51479
|
R,
|
|
51482
51480
|
{
|
|
@@ -51500,7 +51498,7 @@ function YE({
|
|
|
51500
51498
|
"div",
|
|
51501
51499
|
{
|
|
51502
51500
|
className: "flex items-center space-x-2",
|
|
51503
|
-
children: s ? /* @__PURE__ */ b(
|
|
51501
|
+
children: s ? /* @__PURE__ */ b(rt, { children: [
|
|
51504
51502
|
/* @__PURE__ */ l(
|
|
51505
51503
|
dy,
|
|
51506
51504
|
{
|
|
@@ -51538,7 +51536,7 @@ function YE({
|
|
|
51538
51536
|
] })
|
|
51539
51537
|
) : (
|
|
51540
51538
|
// Text/Number input
|
|
51541
|
-
/* @__PURE__ */ b(
|
|
51539
|
+
/* @__PURE__ */ b(lt, { children: [
|
|
51542
51540
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
51543
51541
|
R,
|
|
51544
51542
|
{
|
|
@@ -51634,7 +51632,7 @@ function QE({
|
|
|
51634
51632
|
totalItems: d == null ? void 0 : d.totalItems,
|
|
51635
51633
|
serverCurrentPage: d == null ? void 0 : d.currentPage,
|
|
51636
51634
|
serverCurrentPageSize: d == null ? void 0 : d.currentPageSize
|
|
51637
|
-
}), [
|
|
51635
|
+
}), [L, y] = ee(""), [k, C] = ee(!1), [N, S] = ee([]), I = r ? r[0] : ((je = e.find((B) => B.key === "nome" || B.key === "name" || B.key === "title" || B.key === "titulo")) == null ? void 0 : je.key) || ((Ve = e[0]) == null ? void 0 : Ve.key), D = Ue(async (B) => {
|
|
51638
51636
|
y(B), m && (d != null && d.onFilterChange) ? await d.onFilterChange(N, B) : w.setFilter(I, B, "contains");
|
|
51639
51637
|
}, [m, d, N, w, I]), U = N.map((B) => {
|
|
51640
51638
|
const oe = a.find((Ge) => Ge.value === B.field), ne = B.operator === "is" ? "" : ` ${B.operator}`, Ne = Array.isArray(B.value) ? B.value.join(", ") : B.value;
|
|
@@ -51648,11 +51646,11 @@ function QE({
|
|
|
51648
51646
|
}
|
|
51649
51647
|
};
|
|
51650
51648
|
}), Y = Ue(async (B) => {
|
|
51651
|
-
m && (d != null && d.onFilterChange) ? await d.onFilterChange(B,
|
|
51649
|
+
m && (d != null && d.onFilterChange) ? await d.onFilterChange(B, L) : (w.clearFilters(), L && w.setFilter(I, L, "contains"), B.forEach((oe) => {
|
|
51652
51650
|
const ne = P(oe.operator);
|
|
51653
51651
|
w.setFilter(oe.field, oe.value, ne);
|
|
51654
51652
|
}));
|
|
51655
|
-
}, [m, d,
|
|
51653
|
+
}, [m, d, L, w, I]), P = (B) => {
|
|
51656
51654
|
switch (B) {
|
|
51657
51655
|
case "is":
|
|
51658
51656
|
return "equals";
|
|
@@ -51668,9 +51666,9 @@ function QE({
|
|
|
51668
51666
|
return "contains";
|
|
51669
51667
|
}
|
|
51670
51668
|
}, F = () => {
|
|
51671
|
-
Y(N),
|
|
51669
|
+
Y(N), C(!1);
|
|
51672
51670
|
}, A = () => {
|
|
51673
|
-
S([]), w.clearFilters(),
|
|
51671
|
+
S([]), w.clearFilters(), L && w.setFilter(I, L, "contains");
|
|
51674
51672
|
}, G = Ue(async (B) => {
|
|
51675
51673
|
if (m && (d != null && d.onSortChange)) {
|
|
51676
51674
|
const oe = v.sort;
|
|
@@ -51688,7 +51686,7 @@ function QE({
|
|
|
51688
51686
|
}, [m, d, v.pagination]), le = Ue(async (B) => {
|
|
51689
51687
|
m && (d != null && d.onPageChange) ? await d.onPageChange(1, B) : v.pagination.onPageSizeChange && v.pagination.onPageSizeChange(B);
|
|
51690
51688
|
}, [m, d, v.pagination]), Pe = () => {
|
|
51691
|
-
const B = N.length > 0, oe =
|
|
51689
|
+
const B = N.length > 0, oe = L.trim().length > 0;
|
|
51692
51690
|
return B || oe ? "Nenhum resultado encontrado para os filtros aplicados." : p || "Nenhum dado disponível.";
|
|
51693
51691
|
};
|
|
51694
51692
|
return /* @__PURE__ */ b("div", { className: M("space-y-4", h), children: [
|
|
@@ -51700,7 +51698,7 @@ function QE({
|
|
|
51700
51698
|
ui,
|
|
51701
51699
|
{
|
|
51702
51700
|
placeholder: n,
|
|
51703
|
-
value:
|
|
51701
|
+
value: L,
|
|
51704
51702
|
onChange: (B) => D(B.target.value),
|
|
51705
51703
|
onKeyDown: (B) => {
|
|
51706
51704
|
B.key === "Enter" && B.preventDefault();
|
|
@@ -51709,7 +51707,7 @@ function QE({
|
|
|
51709
51707
|
}
|
|
51710
51708
|
)
|
|
51711
51709
|
] }),
|
|
51712
|
-
o && a.length > 0 && /* @__PURE__ */ b(
|
|
51710
|
+
o && a.length > 0 && /* @__PURE__ */ b(lt, { open: k, onOpenChange: C, children: [
|
|
51713
51711
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(R, { variant: "outline", size: "sm", className: "gap-2", children: [
|
|
51714
51712
|
/* @__PURE__ */ l(Q1, { className: "h-4 w-4" }),
|
|
51715
51713
|
"Filtros",
|
|
@@ -51734,7 +51732,7 @@ function QE({
|
|
|
51734
51732
|
{
|
|
51735
51733
|
variant: "outline",
|
|
51736
51734
|
size: "sm",
|
|
51737
|
-
onClick: () =>
|
|
51735
|
+
onClick: () => C(!1),
|
|
51738
51736
|
children: "Cancelar"
|
|
51739
51737
|
}
|
|
51740
51738
|
),
|
|
@@ -51837,7 +51835,7 @@ function VE({
|
|
|
51837
51835
|
className: v,
|
|
51838
51836
|
serverConfig: w
|
|
51839
51837
|
}, x) {
|
|
51840
|
-
const
|
|
51838
|
+
const L = /* @__PURE__ */ l(
|
|
51841
51839
|
QE,
|
|
51842
51840
|
{
|
|
51843
51841
|
data: t,
|
|
@@ -51860,13 +51858,13 @@ function VE({
|
|
|
51860
51858
|
n && /* @__PURE__ */ l("h2", { className: "text-lg font-semibold", children: n }),
|
|
51861
51859
|
r && /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground mt-1", children: r })
|
|
51862
51860
|
] }),
|
|
51863
|
-
|
|
51861
|
+
L
|
|
51864
51862
|
] }) : /* @__PURE__ */ b("div", { ref: x, className: v, children: [
|
|
51865
51863
|
(n || r) && /* @__PURE__ */ b("div", { className: "mb-6", children: [
|
|
51866
51864
|
n && /* @__PURE__ */ l("h2", { className: "text-lg font-semibold", children: n }),
|
|
51867
51865
|
r && /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground mt-1", children: r })
|
|
51868
51866
|
] }),
|
|
51869
|
-
|
|
51867
|
+
L
|
|
51870
51868
|
] });
|
|
51871
51869
|
}
|
|
51872
51870
|
const GE = j.forwardRef(VE);
|
|
@@ -51889,8 +51887,8 @@ function gz({
|
|
|
51889
51887
|
")"
|
|
51890
51888
|
] })
|
|
51891
51889
|
] }) }),
|
|
51892
|
-
/* @__PURE__ */ l(lf, { align: "start", className: "w-[280px]", children: t.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ b(
|
|
51893
|
-
a.length > 0 && /* @__PURE__ */ b(
|
|
51890
|
+
/* @__PURE__ */ l(lf, { align: "start", className: "w-[280px]", children: t.length === 0 ? /* @__PURE__ */ l("div", { className: "px-2 py-6 text-center text-sm text-muted-foreground", children: "No saved filters yet" }) : /* @__PURE__ */ b(rt, { children: [
|
|
51891
|
+
a.length > 0 && /* @__PURE__ */ b(rt, { children: [
|
|
51894
51892
|
/* @__PURE__ */ l("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground", children: "Favorites" }),
|
|
51895
51893
|
a.map((s) => /* @__PURE__ */ l(
|
|
51896
51894
|
N1,
|
|
@@ -51904,7 +51902,7 @@ function gz({
|
|
|
51904
51902
|
)),
|
|
51905
51903
|
o.length > 0 && /* @__PURE__ */ l(Wl, {})
|
|
51906
51904
|
] }),
|
|
51907
|
-
o.length > 0 && /* @__PURE__ */ b(
|
|
51905
|
+
o.length > 0 && /* @__PURE__ */ b(rt, { children: [
|
|
51908
51906
|
a.length > 0 && /* @__PURE__ */ l("div", { className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground", children: "All Filters" }),
|
|
51909
51907
|
o.map((s) => /* @__PURE__ */ l(
|
|
51910
51908
|
N1,
|
|
@@ -52009,13 +52007,13 @@ function bz({
|
|
|
52009
52007
|
}, [t]), !o) return null;
|
|
52010
52008
|
const p = () => {
|
|
52011
52009
|
r(o), n(!1);
|
|
52012
|
-
}, h = (x,
|
|
52013
|
-
s((y) => y ? { ...y, [x]:
|
|
52010
|
+
}, h = (x, L) => {
|
|
52011
|
+
s((y) => y ? { ...y, [x]: L } : null);
|
|
52014
52012
|
}, m = (x) => {
|
|
52015
|
-
s((
|
|
52016
|
-
if (!
|
|
52017
|
-
const y =
|
|
52018
|
-
return { ...
|
|
52013
|
+
s((L) => {
|
|
52014
|
+
if (!L) return null;
|
|
52015
|
+
const y = L.dependencies || [], k = y.includes(x) ? y.filter((C) => C !== x) : [...y, x];
|
|
52016
|
+
return { ...L, dependencies: k };
|
|
52019
52017
|
});
|
|
52020
52018
|
}, g = i.filter((x) => x.id !== o.id), v = o.name.trim() !== "" && o.startDate <= o.endDate;
|
|
52021
52019
|
return /* @__PURE__ */ l(Ff, { open: e, onOpenChange: n, children: /* @__PURE__ */ b(Jf, { className: "max-w-2xl max-h-[90vh] overflow-y-auto", children: [
|
|
@@ -52052,7 +52050,7 @@ function bz({
|
|
|
52052
52050
|
/* @__PURE__ */ b("div", { className: "grid sm:grid-cols-2 gap-4", children: [
|
|
52053
52051
|
/* @__PURE__ */ b("div", { className: "space-y-2", children: [
|
|
52054
52052
|
/* @__PURE__ */ l(We, { children: "Data de Início *" }),
|
|
52055
|
-
/* @__PURE__ */ b(
|
|
52053
|
+
/* @__PURE__ */ b(lt, { open: f, onOpenChange: c, children: [
|
|
52056
52054
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(
|
|
52057
52055
|
R,
|
|
52058
52056
|
{
|
|
@@ -52082,7 +52080,7 @@ function bz({
|
|
|
52082
52080
|
] }),
|
|
52083
52081
|
/* @__PURE__ */ b("div", { className: "space-y-2", children: [
|
|
52084
52082
|
/* @__PURE__ */ l(We, { children: "Data de Término *" }),
|
|
52085
|
-
/* @__PURE__ */ b(
|
|
52083
|
+
/* @__PURE__ */ b(lt, { open: d, onOpenChange: u, children: [
|
|
52086
52084
|
/* @__PURE__ */ l(tt, { asChild: !0, children: /* @__PURE__ */ b(
|
|
52087
52085
|
R,
|
|
52088
52086
|
{
|
|
@@ -52141,8 +52139,8 @@ function bz({
|
|
|
52141
52139
|
{
|
|
52142
52140
|
value: ((w = o.assignee) == null ? void 0 : w.name) || "",
|
|
52143
52141
|
onValueChange: (x) => {
|
|
52144
|
-
const
|
|
52145
|
-
h("assignee",
|
|
52142
|
+
const L = a.find((y) => y.name === x);
|
|
52143
|
+
h("assignee", L || void 0);
|
|
52146
52144
|
},
|
|
52147
52145
|
children: [
|
|
52148
52146
|
/* @__PURE__ */ l(bn, { id: "task-assignee", children: /* @__PURE__ */ l(gn, { placeholder: "Selecionar responsável" }) }),
|
|
@@ -52201,13 +52199,13 @@ function bz({
|
|
|
52201
52199
|
/* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground", children: "Selecione as tarefas que precisam ser concluídas antes desta" }),
|
|
52202
52200
|
/* @__PURE__ */ l("div", { className: "space-y-2 max-h-48 overflow-y-auto border rounded-lg p-3", children: g.map((x) => {
|
|
52203
52201
|
var y;
|
|
52204
|
-
const
|
|
52202
|
+
const L = ((y = o.dependencies) == null ? void 0 : y.includes(x.id)) || !1;
|
|
52205
52203
|
return /* @__PURE__ */ b(
|
|
52206
52204
|
"div",
|
|
52207
52205
|
{
|
|
52208
52206
|
className: M(
|
|
52209
52207
|
"flex items-center gap-3 p-2 rounded-md cursor-pointer transition-colors",
|
|
52210
|
-
|
|
52208
|
+
L ? "bg-primary/10 border border-primary/20" : "hover:bg-muted/50"
|
|
52211
52209
|
),
|
|
52212
52210
|
onClick: () => m(x.id),
|
|
52213
52211
|
children: [
|
|
@@ -52216,9 +52214,9 @@ function bz({
|
|
|
52216
52214
|
{
|
|
52217
52215
|
className: M(
|
|
52218
52216
|
"size-4 rounded border-2 flex items-center justify-center transition-all",
|
|
52219
|
-
|
|
52217
|
+
L ? "bg-primary border-primary" : "border-muted-foreground"
|
|
52220
52218
|
),
|
|
52221
|
-
children:
|
|
52219
|
+
children: L && /* @__PURE__ */ l("div", { className: "size-2 rounded-sm bg-white" })
|
|
52222
52220
|
}
|
|
52223
52221
|
),
|
|
52224
52222
|
/* @__PURE__ */ l("span", { className: "text-sm flex-1", children: x.name }),
|
|
@@ -52955,7 +52953,7 @@ export {
|
|
|
52955
52953
|
R7 as PaginationNext,
|
|
52956
52954
|
P7 as PaginationPrevious,
|
|
52957
52955
|
oE as PasswordInput,
|
|
52958
|
-
|
|
52956
|
+
lt as Popover,
|
|
52959
52957
|
nt as PopoverContent,
|
|
52960
52958
|
tt as PopoverTrigger,
|
|
52961
52959
|
np as PrintFooter,
|