@iclips/ui 1.0.46 → 1.0.48
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/data-table.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +5 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +469 -456
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/ui/sonner.d.ts +0 -4
- package/dist/components/ui/sonner.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l, jsxs as b, Fragment as qe } from "react/jsx-runtime";
|
|
2
2
|
import * as Ma from "@radix-ui/react-accordion";
|
|
3
|
-
import { ChevronDownIcon as qs, Home as B4, Folder as H4, Users as U4, Calendar as hi, BarChart3 as F4, Settings as I1, Pin as T1, Plus as qn, LayoutGrid as J4, FileText as j1, Star as D1, MessageSquare as
|
|
3
|
+
import { ChevronDownIcon as qs, Home as B4, Folder as H4, Users as U4, Calendar as hi, BarChart3 as F4, Settings as I1, Pin as T1, Plus as qn, LayoutGrid as J4, FileText as j1, Star as D1, MessageSquare as _c, Download as Gc, Sparkles as Y4, ChevronRight as en, Zap as Q4, PanelLeftClose as Ks, PanelLeft as V4, Bell as _4, CheckIcon as Xs, CircleIcon as Wc, ChevronRightIcon as ef, User as tf, HelpCircle as G4, LogOut as W4, ChevronDown as Za, MoreHorizontal as E1, ChevronLeft as nf, Printer as $4, Eye as A1, ArrowRight as z1, ArrowLeft as Z4, Check as O1, Smile as P1, Trash2 as R1, AlertCircle as vr, Paperclip as xa, X as Ca, Type as q4, Send as K4, Bold as B1, Italic as H1, Underline as U1, List as F1, ListOrdered as J1, Link as Y1, ChevronUpIcon as X4, Clock as ai, CalendarIcon as Zo, MoreVertical as ev, CheckSquare as tv, Activity as nv, TrendingUp as rv, TrendingDown as iv, XIcon as Q1, SearchIcon as av, Undo as ov, Redo as sv, Heading1 as fv, Heading2 as lv, Heading3 as cv, Strikethrough as dv, AlignLeft as uv, AlignCenter as hv, AlignRight as pv, Quote as mv, Image as gv, PanelLeftOpen as $c, Youtube as bv, Twitter as vv, Facebook as wv, Linkedin as yv, Instagram as Mv, GripVertical as xv, CheckCircle2 as Cv, Circle as V1, Edit as _l, MinusIcon as Lv, ChevronUp as Nv, EyeOff as kv, Euro as Sv, DollarSign as Iv, Coins as Tv, MoreHorizontalIcon as jv, ChevronLeftIcon as Dv, GripVerticalIcon as Ev, PanelLeftIcon as Av, Github as zv, ChevronsLeft as Ov, ChevronsRight as Pv, Filter as _1, Search as G1, ArrowUpDown as Rv, Link2 as Bv, Pencil as Hv, RefreshCw as Uv, PlusCircle as Fv } from "lucide-react";
|
|
4
4
|
import { clsx as Jv } from "clsx";
|
|
5
5
|
import { twMerge as Yv } from "tailwind-merge";
|
|
6
6
|
import * as T from "react";
|
|
7
|
-
import ut, { useState as ne, useRef as Ae, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as ye, Suspense as Vv, Component as
|
|
7
|
+
import ut, { useState as ne, useRef as Ae, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as ye, Suspense as Vv, Component as _v, isValidElement as Gv, cloneElement as Tu } from "react";
|
|
8
8
|
import * as sn from "@radix-ui/react-alert-dialog";
|
|
9
9
|
import { Slot as In } from "@radix-ui/react-slot";
|
|
10
10
|
import { cva as fn } from "class-variance-authority";
|
|
@@ -17,7 +17,7 @@ import Zv from "embla-carousel-react";
|
|
|
17
17
|
import * as ed from "recharts";
|
|
18
18
|
import * as ju from "@radix-ui/react-checkbox";
|
|
19
19
|
import { HexColorPicker as qv } from "react-colorful";
|
|
20
|
-
import * as
|
|
20
|
+
import * as _n from "@radix-ui/react-popover";
|
|
21
21
|
import * as Kv from "@radix-ui/react-label";
|
|
22
22
|
import * as td from "@radix-ui/react-collapsible";
|
|
23
23
|
import { format as oe, subDays as Du, startOfMonth as qo, endOfMonth as nd, subMonths as Ko, startOfWeek as Eu, endOfWeek as Au, eachDayOfInterval as Z1, isToday as rf, isSameDay as af, isSameMonth as Xv, setHours as ew, getHours as q1, getMinutes as K1, addMonths as X1, addDays as wo, addHours as ep, differenceInMinutes as tw, differenceInDays as ta, isWeekend as zu, formatDistanceToNow as nw } from "date-fns";
|
|
@@ -30,16 +30,16 @@ import * as ot from "@radix-ui/react-select";
|
|
|
30
30
|
import * as Ou from "@radix-ui/react-progress";
|
|
31
31
|
import { Command as zr } from "cmdk";
|
|
32
32
|
import * as je from "@radix-ui/react-dialog";
|
|
33
|
-
import * as
|
|
33
|
+
import * as _e from "@radix-ui/react-context-menu";
|
|
34
34
|
import * as sw from "@radix-ui/react-toggle";
|
|
35
35
|
import { Drawer as Kn } from "vaul";
|
|
36
36
|
import * as of from "@radix-ui/react-tabs";
|
|
37
37
|
import { FormProvider as fw, Controller as lw, useFormContext as cw, useFormState as dw } from "react-hook-form";
|
|
38
38
|
import * as Xo from "@radix-ui/react-hover-card";
|
|
39
39
|
import { OTPInput as uw, OTPInputContext as hw } from "input-otp";
|
|
40
|
-
import * as
|
|
40
|
+
import * as Ge from "@radix-ui/react-menubar";
|
|
41
41
|
import * as Or from "@radix-ui/react-navigation-menu";
|
|
42
|
-
import * as
|
|
42
|
+
import * as Gl from "@radix-ui/react-radio-group";
|
|
43
43
|
import * as rd from "react-resizable-panels";
|
|
44
44
|
import * as yo from "@radix-ui/react-slider";
|
|
45
45
|
import { useTheme as pw } from "next-themes";
|
|
@@ -240,7 +240,7 @@ function VA({
|
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function _A({
|
|
244
244
|
className: t,
|
|
245
245
|
...e
|
|
246
246
|
}) {
|
|
@@ -252,7 +252,7 @@ function GA({
|
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function GA({
|
|
256
256
|
className: t,
|
|
257
257
|
...e
|
|
258
258
|
}) {
|
|
@@ -501,8 +501,8 @@ const yw = [
|
|
|
501
501
|
{ label: "Todos os Projetos", icon: J4 },
|
|
502
502
|
{ label: "Documentos", icon: j1, badge: "3" },
|
|
503
503
|
{ label: "Favoritos", icon: D1, chevron: !0 },
|
|
504
|
-
{ label: "Comentários", icon:
|
|
505
|
-
{ label: "Downloads", icon:
|
|
504
|
+
{ label: "Comentários", icon: _c, badge: "12", highlighted: !0 },
|
|
505
|
+
{ label: "Downloads", icon: Gc },
|
|
506
506
|
{ label: "Recentes", icon: Y4, chevron: !0 }
|
|
507
507
|
];
|
|
508
508
|
function qA({
|
|
@@ -631,7 +631,7 @@ function qA({
|
|
|
631
631
|
/* @__PURE__ */ l("h1", { className: "text-base font-semibold", children: e })
|
|
632
632
|
] }),
|
|
633
633
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
|
|
634
|
-
/* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0", children: /* @__PURE__ */ l(
|
|
634
|
+
/* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0", children: /* @__PURE__ */ l(_4, { className: "h-4 w-4" }) }),
|
|
635
635
|
r && /* @__PURE__ */ l(
|
|
636
636
|
B,
|
|
637
637
|
{
|
|
@@ -915,7 +915,7 @@ const Lw = [
|
|
|
915
915
|
},
|
|
916
916
|
{
|
|
917
917
|
label: "Ajuda",
|
|
918
|
-
icon:
|
|
918
|
+
icon: G4,
|
|
919
919
|
onClick: () => console.log("Ajuda clicked")
|
|
920
920
|
}
|
|
921
921
|
], Bu = {
|
|
@@ -1560,7 +1560,7 @@ const Pw = {
|
|
|
1560
1560
|
narrow: ["1", "2", "3", "4"],
|
|
1561
1561
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
1562
1562
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
1563
|
-
},
|
|
1563
|
+
}, _w = {
|
|
1564
1564
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
1565
1565
|
abbreviated: [
|
|
1566
1566
|
"jan",
|
|
@@ -1590,7 +1590,7 @@ const Pw = {
|
|
|
1590
1590
|
"novembro",
|
|
1591
1591
|
"dezembro"
|
|
1592
1592
|
]
|
|
1593
|
-
},
|
|
1593
|
+
}, Gw = {
|
|
1594
1594
|
narrow: ["D", "S", "T", "Q", "Q", "S", "S"],
|
|
1595
1595
|
short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"],
|
|
1596
1596
|
abbreviated: [
|
|
@@ -1688,11 +1688,11 @@ const Pw = {
|
|
|
1688
1688
|
argumentCallback: (t) => t - 1
|
|
1689
1689
|
}),
|
|
1690
1690
|
month: Ui({
|
|
1691
|
-
values:
|
|
1691
|
+
values: _w,
|
|
1692
1692
|
defaultWidth: "wide"
|
|
1693
1693
|
}),
|
|
1694
1694
|
day: Ui({
|
|
1695
|
-
values:
|
|
1695
|
+
values: Gw,
|
|
1696
1696
|
defaultWidth: "wide"
|
|
1697
1697
|
}),
|
|
1698
1698
|
dayPeriod: Ui({
|
|
@@ -2649,7 +2649,7 @@ function u8({
|
|
|
2649
2649
|
onClick: g,
|
|
2650
2650
|
className: "gap-2",
|
|
2651
2651
|
children: [
|
|
2652
|
-
/* @__PURE__ */ l(
|
|
2652
|
+
/* @__PURE__ */ l(Gc, { className: "h-4 w-4" }),
|
|
2653
2653
|
"Download PDF"
|
|
2654
2654
|
]
|
|
2655
2655
|
}
|
|
@@ -3132,12 +3132,12 @@ function wy({
|
|
|
3132
3132
|
function dt({
|
|
3133
3133
|
...t
|
|
3134
3134
|
}) {
|
|
3135
|
-
return /* @__PURE__ */ l(
|
|
3135
|
+
return /* @__PURE__ */ l(_n.Root, { "data-slot": "popover", ...t });
|
|
3136
3136
|
}
|
|
3137
|
-
const it = T.forwardRef((t, e) => /* @__PURE__ */ l(
|
|
3138
|
-
it.displayName =
|
|
3139
|
-
const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(
|
|
3140
|
-
|
|
3137
|
+
const it = T.forwardRef((t, e) => /* @__PURE__ */ l(_n.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
|
|
3138
|
+
it.displayName = _n.Trigger.displayName;
|
|
3139
|
+
const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(_n.Portal, { children: /* @__PURE__ */ l(
|
|
3140
|
+
_n.Content,
|
|
3141
3141
|
{
|
|
3142
3142
|
ref: i,
|
|
3143
3143
|
"data-slot": "popover-content",
|
|
@@ -3150,10 +3150,10 @@ const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4,
|
|
|
3150
3150
|
...r
|
|
3151
3151
|
}
|
|
3152
3152
|
) }));
|
|
3153
|
-
at.displayName =
|
|
3154
|
-
const yy = T.forwardRef((t, e) => /* @__PURE__ */ l(
|
|
3155
|
-
yy.displayName =
|
|
3156
|
-
function
|
|
3153
|
+
at.displayName = _n.Content.displayName;
|
|
3154
|
+
const yy = T.forwardRef((t, e) => /* @__PURE__ */ l(_n.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
|
|
3155
|
+
yy.displayName = _n.Anchor.displayName;
|
|
3156
|
+
function Gn({ className: t, type: e, ...n }) {
|
|
3157
3157
|
return /* @__PURE__ */ l(
|
|
3158
3158
|
"input",
|
|
3159
3159
|
{
|
|
@@ -3235,7 +3235,7 @@ function C8({
|
|
|
3235
3235
|
/* @__PURE__ */ b("div", { className: "relative flex-1", children: [
|
|
3236
3236
|
/* @__PURE__ */ l("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground", children: "#" }),
|
|
3237
3237
|
/* @__PURE__ */ l(
|
|
3238
|
-
|
|
3238
|
+
Gn,
|
|
3239
3239
|
{
|
|
3240
3240
|
value: a.replace("#", "").toUpperCase(),
|
|
3241
3241
|
onChange: d,
|
|
@@ -3306,7 +3306,7 @@ function C8({
|
|
|
3306
3306
|
/* @__PURE__ */ b("div", { className: "relative flex-1", children: [
|
|
3307
3307
|
/* @__PURE__ */ l("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: "#" }),
|
|
3308
3308
|
/* @__PURE__ */ l(
|
|
3309
|
-
|
|
3309
|
+
Gn,
|
|
3310
3310
|
{
|
|
3311
3311
|
value: a.replace("#", "").toUpperCase(),
|
|
3312
3312
|
onChange: d,
|
|
@@ -5573,7 +5573,7 @@ class Jn {
|
|
|
5573
5573
|
Parse a document from the content of a DOM node.
|
|
5574
5574
|
*/
|
|
5575
5575
|
parse(e, n = {}) {
|
|
5576
|
-
let r = new
|
|
5576
|
+
let r = new _u(this, n, !1);
|
|
5577
5577
|
return r.addAll(e, de.none, n.from, n.to), r.finish();
|
|
5578
5578
|
}
|
|
5579
5579
|
/**
|
|
@@ -5585,7 +5585,7 @@ class Jn {
|
|
|
5585
5585
|
the left of the input and the end of nodes at the end.
|
|
5586
5586
|
*/
|
|
5587
5587
|
parseSlice(e, n = {}) {
|
|
5588
|
-
let r = new
|
|
5588
|
+
let r = new _u(this, n, !0);
|
|
5589
5589
|
return r.addAll(e, de.none, n.from, n.to), U.maxOpen(r.finish());
|
|
5590
5590
|
}
|
|
5591
5591
|
/**
|
|
@@ -5642,13 +5642,13 @@ class Jn {
|
|
|
5642
5642
|
for (let i in e.marks) {
|
|
5643
5643
|
let a = e.marks[i].spec.parseDOM;
|
|
5644
5644
|
a && a.forEach((o) => {
|
|
5645
|
-
r(o =
|
|
5645
|
+
r(o = Gu(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
|
|
5646
5646
|
});
|
|
5647
5647
|
}
|
|
5648
5648
|
for (let i in e.nodes) {
|
|
5649
5649
|
let a = e.nodes[i].spec.parseDOM;
|
|
5650
5650
|
a && a.forEach((o) => {
|
|
5651
|
-
r(o =
|
|
5651
|
+
r(o = Gu(o)), o.node || o.ignore || o.mark || (o.node = i);
|
|
5652
5652
|
});
|
|
5653
5653
|
}
|
|
5654
5654
|
return n;
|
|
@@ -5739,7 +5739,7 @@ class xo {
|
|
|
5739
5739
|
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Tp.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
|
-
class
|
|
5742
|
+
class _u {
|
|
5743
5743
|
constructor(e, n, r) {
|
|
5744
5744
|
this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
|
|
5745
5745
|
let i = n.topNode, a, o = Vu(null, n.preserveWhitespace, 0) | (r ? oa : 0);
|
|
@@ -6030,7 +6030,7 @@ function Yy(t) {
|
|
|
6030
6030
|
function Qy(t, e) {
|
|
6031
6031
|
return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
|
|
6032
6032
|
}
|
|
6033
|
-
function
|
|
6033
|
+
function Gu(t) {
|
|
6034
6034
|
let e = {};
|
|
6035
6035
|
for (let n in t)
|
|
6036
6036
|
e[n] = t[n];
|
|
@@ -6172,9 +6172,9 @@ function il(t) {
|
|
|
6172
6172
|
const Zu = /* @__PURE__ */ new WeakMap();
|
|
6173
6173
|
function Vy(t) {
|
|
6174
6174
|
let e = Zu.get(t);
|
|
6175
|
-
return e === void 0 && Zu.set(t, e =
|
|
6175
|
+
return e === void 0 && Zu.set(t, e = _y(t)), e;
|
|
6176
6176
|
}
|
|
6177
|
-
function
|
|
6177
|
+
function _y(t) {
|
|
6178
6178
|
let e = null;
|
|
6179
6179
|
function n(r) {
|
|
6180
6180
|
if (r && typeof r == "object")
|
|
@@ -6231,7 +6231,7 @@ function Ho(t, e, n, r) {
|
|
|
6231
6231
|
return { dom: f, contentDOM: s };
|
|
6232
6232
|
}
|
|
6233
6233
|
const Dp = 65535, Ep = Math.pow(2, 16);
|
|
6234
|
-
function
|
|
6234
|
+
function Gy(t, e) {
|
|
6235
6235
|
return t + e * Ep;
|
|
6236
6236
|
}
|
|
6237
6237
|
function qu(t) {
|
|
@@ -6317,7 +6317,7 @@ class gt {
|
|
|
6317
6317
|
let p = c ? e == f ? -1 : e == u ? 1 : n : n, h = f + i + (p < 0 ? 0 : d);
|
|
6318
6318
|
if (r)
|
|
6319
6319
|
return h;
|
|
6320
|
-
let m = e == (n < 0 ? f : u) ? null :
|
|
6320
|
+
let m = e == (n < 0 ? f : u) ? null : Gy(s / 3, e - f), g = e == f ? zp : e == u ? Ap : Uo;
|
|
6321
6321
|
return (n < 0 ? e != f : e != u) && (g |= Op), new Xl(h, g, m);
|
|
6322
6322
|
}
|
|
6323
6323
|
i += d - c;
|
|
@@ -6577,7 +6577,7 @@ class Hn extends et {
|
|
|
6577
6577
|
return Te.fromReplace(e, this.from, this.to, a);
|
|
6578
6578
|
}
|
|
6579
6579
|
invert() {
|
|
6580
|
-
return new
|
|
6580
|
+
return new Gt(this.from, this.to, this.mark);
|
|
6581
6581
|
}
|
|
6582
6582
|
map(e) {
|
|
6583
6583
|
let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
@@ -6604,7 +6604,7 @@ class Hn extends et {
|
|
|
6604
6604
|
}
|
|
6605
6605
|
}
|
|
6606
6606
|
et.jsonID("addMark", Hn);
|
|
6607
|
-
class
|
|
6607
|
+
class Gt extends et {
|
|
6608
6608
|
/**
|
|
6609
6609
|
Create a mark-removing step.
|
|
6610
6610
|
*/
|
|
@@ -6620,10 +6620,10 @@ class _t extends et {
|
|
|
6620
6620
|
}
|
|
6621
6621
|
map(e) {
|
|
6622
6622
|
let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
6623
|
-
return n.deleted && r.deleted || n.pos >= r.pos ? null : new
|
|
6623
|
+
return n.deleted && r.deleted || n.pos >= r.pos ? null : new Gt(n.pos, r.pos, this.mark);
|
|
6624
6624
|
}
|
|
6625
6625
|
merge(e) {
|
|
6626
|
-
return e instanceof
|
|
6626
|
+
return e instanceof Gt && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Gt(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
6627
6627
|
}
|
|
6628
6628
|
toJSON() {
|
|
6629
6629
|
return {
|
|
@@ -6639,10 +6639,10 @@ class _t extends et {
|
|
|
6639
6639
|
static fromJSON(e, n) {
|
|
6640
6640
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
6641
6641
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
6642
|
-
return new
|
|
6642
|
+
return new Gt(n.from, n.to, e.markFromJSON(n.mark));
|
|
6643
6643
|
}
|
|
6644
6644
|
}
|
|
6645
|
-
et.jsonID("removeMark",
|
|
6645
|
+
et.jsonID("removeMark", Gt);
|
|
6646
6646
|
class Un extends et {
|
|
6647
6647
|
/**
|
|
6648
6648
|
Create a node mark step.
|
|
@@ -6855,7 +6855,7 @@ function $y(t, e, n, r) {
|
|
|
6855
6855
|
if (!r.isInSet(u) && d.type.allowsMarkType(r.type)) {
|
|
6856
6856
|
let p = Math.max(c, e), h = Math.min(c + f.nodeSize, n), m = r.addToSet(u);
|
|
6857
6857
|
for (let g = 0; g < u.length; g++)
|
|
6858
|
-
u[g].isInSet(m) || (o && o.to == p && o.mark.eq(u[g]) ? o.to = h : i.push(o = new
|
|
6858
|
+
u[g].isInSet(m) || (o && o.to == p && o.mark.eq(u[g]) ? o.to = h : i.push(o = new Gt(p, h, u[g])));
|
|
6859
6859
|
s && s.to == p ? s.to = h : a.push(s = new Hn(p, h, r));
|
|
6860
6860
|
}
|
|
6861
6861
|
}), i.forEach((f) => t.step(f)), a.forEach((f) => t.step(f));
|
|
@@ -6883,7 +6883,7 @@ function Zy(t, e, n, r) {
|
|
|
6883
6883
|
p ? (p.to = c, p.step = a) : i.push({ style: u, from: Math.max(s, e), to: c, step: a });
|
|
6884
6884
|
}
|
|
6885
6885
|
}
|
|
6886
|
-
}), i.forEach((o) => t.step(new
|
|
6886
|
+
}), i.forEach((o) => t.step(new Gt(o.from, o.to, o.style)));
|
|
6887
6887
|
}
|
|
6888
6888
|
function od(t, e, n, r = n.contentMatch, i = !0) {
|
|
6889
6889
|
let a = t.doc.nodeAt(e), o = [], s = e + 1;
|
|
@@ -6894,7 +6894,7 @@ function od(t, e, n, r = n.contentMatch, i = !0) {
|
|
|
6894
6894
|
else {
|
|
6895
6895
|
r = u;
|
|
6896
6896
|
for (let p = 0; p < c.marks.length; p++)
|
|
6897
|
-
n.allowsMarkType(c.marks[p].type) || t.step(new
|
|
6897
|
+
n.allowsMarkType(c.marks[p].type) || t.step(new Gt(s, d, c.marks[p]));
|
|
6898
6898
|
if (i && c.isText && n.whitespace != "pre") {
|
|
6899
6899
|
let p, h = /\r?\n|\r/g, m;
|
|
6900
6900
|
for (; p = h.exec(c.text); )
|
|
@@ -7819,7 +7819,7 @@ class ee {
|
|
|
7819
7819
|
found.
|
|
7820
7820
|
*/
|
|
7821
7821
|
static findFrom(e, n, r = !1) {
|
|
7822
|
-
let i = e.parent.inlineContent ? new
|
|
7822
|
+
let i = e.parent.inlineContent ? new Z(e) : Kr(e.node(0), e.parent, e.pos, e.index(), n, r);
|
|
7823
7823
|
if (i)
|
|
7824
7824
|
return i;
|
|
7825
7825
|
for (let a = e.depth - 1; a >= 0; a--) {
|
|
@@ -7886,7 +7886,7 @@ class ee {
|
|
|
7886
7886
|
returns the bookmark for that.
|
|
7887
7887
|
*/
|
|
7888
7888
|
getBookmark() {
|
|
7889
|
-
return
|
|
7889
|
+
return Z.between(this.$anchor, this.$head).getBookmark();
|
|
7890
7890
|
}
|
|
7891
7891
|
}
|
|
7892
7892
|
ee.prototype.visible = !0;
|
|
@@ -7902,7 +7902,7 @@ let Xu = !1;
|
|
|
7902
7902
|
function e0(t) {
|
|
7903
7903
|
!Xu && !t.parent.inlineContent && (Xu = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
|
|
7904
7904
|
}
|
|
7905
|
-
class
|
|
7905
|
+
class Z extends ee {
|
|
7906
7906
|
/**
|
|
7907
7907
|
Construct a text selection between the given points.
|
|
7908
7908
|
*/
|
|
@@ -7921,7 +7921,7 @@ class $ extends ee {
|
|
|
7921
7921
|
if (!r.parent.inlineContent)
|
|
7922
7922
|
return ee.near(r);
|
|
7923
7923
|
let i = e.resolve(n.map(this.anchor));
|
|
7924
|
-
return new
|
|
7924
|
+
return new Z(i.parent.inlineContent ? i : r, r);
|
|
7925
7925
|
}
|
|
7926
7926
|
replace(e, n = U.empty) {
|
|
7927
7927
|
if (super.replace(e, n), n == U.empty) {
|
|
@@ -7930,7 +7930,7 @@ class $ extends ee {
|
|
|
7930
7930
|
}
|
|
7931
7931
|
}
|
|
7932
7932
|
eq(e) {
|
|
7933
|
-
return e instanceof
|
|
7933
|
+
return e instanceof Z && e.anchor == this.anchor && e.head == this.head;
|
|
7934
7934
|
}
|
|
7935
7935
|
getBookmark() {
|
|
7936
7936
|
return new pf(this.anchor, this.head);
|
|
@@ -7944,7 +7944,7 @@ class $ extends ee {
|
|
|
7944
7944
|
static fromJSON(e, n) {
|
|
7945
7945
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
|
7946
7946
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
7947
|
-
return new
|
|
7947
|
+
return new Z(e.resolve(n.anchor), e.resolve(n.head));
|
|
7948
7948
|
}
|
|
7949
7949
|
/**
|
|
7950
7950
|
Create a text selection from non-resolved positions.
|
|
@@ -7970,10 +7970,10 @@ class $ extends ee {
|
|
|
7970
7970
|
else
|
|
7971
7971
|
return ee.near(n, r);
|
|
7972
7972
|
}
|
|
7973
|
-
return e.parent.inlineContent || (i == 0 ? e = n : (e = (ee.findFrom(e, -r, !0) || ee.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new
|
|
7973
|
+
return e.parent.inlineContent || (i == 0 ? e = n : (e = (ee.findFrom(e, -r, !0) || ee.findFrom(e, r, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Z(e, n);
|
|
7974
7974
|
}
|
|
7975
7975
|
}
|
|
7976
|
-
ee.jsonID("text",
|
|
7976
|
+
ee.jsonID("text", Z);
|
|
7977
7977
|
class pf {
|
|
7978
7978
|
constructor(e, n) {
|
|
7979
7979
|
this.anchor = e, this.head = n;
|
|
@@ -7982,7 +7982,7 @@ class pf {
|
|
|
7982
7982
|
return new pf(e.map(this.anchor), e.map(this.head));
|
|
7983
7983
|
}
|
|
7984
7984
|
resolve(e) {
|
|
7985
|
-
return
|
|
7985
|
+
return Z.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
7986
7986
|
}
|
|
7987
7987
|
}
|
|
7988
7988
|
class V extends ee {
|
|
@@ -8092,7 +8092,7 @@ const g3 = {
|
|
|
8092
8092
|
};
|
|
8093
8093
|
function Kr(t, e, n, r, i, a = !1) {
|
|
8094
8094
|
if (e.inlineContent)
|
|
8095
|
-
return
|
|
8095
|
+
return Z.create(t, n);
|
|
8096
8096
|
for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
|
|
8097
8097
|
let s = e.child(o);
|
|
8098
8098
|
if (s.isAtom) {
|
|
@@ -8499,7 +8499,7 @@ class Me {
|
|
|
8499
8499
|
Create a plugin.
|
|
8500
8500
|
*/
|
|
8501
8501
|
constructor(e) {
|
|
8502
|
-
this.spec = e, this.props = {}, e.props && Vp(e.props, this, this.props), this.key = e.key ? e.key.key :
|
|
8502
|
+
this.spec = e, this.props = {}, e.props && Vp(e.props, this, this.props), this.key = e.key ? e.key.key : _p("plugin");
|
|
8503
8503
|
}
|
|
8504
8504
|
/**
|
|
8505
8505
|
Extract the plugin's state field from an editor state.
|
|
@@ -8509,7 +8509,7 @@ class Me {
|
|
|
8509
8509
|
}
|
|
8510
8510
|
}
|
|
8511
8511
|
const cl = /* @__PURE__ */ Object.create(null);
|
|
8512
|
-
function
|
|
8512
|
+
function _p(t) {
|
|
8513
8513
|
return t in cl ? t + "$" + ++cl[t] : (cl[t] = 0, t + "$");
|
|
8514
8514
|
}
|
|
8515
8515
|
class Se {
|
|
@@ -8517,7 +8517,7 @@ class Se {
|
|
|
8517
8517
|
Create a plugin key.
|
|
8518
8518
|
*/
|
|
8519
8519
|
constructor(e = "key") {
|
|
8520
|
-
this.key =
|
|
8520
|
+
this.key = _p(e);
|
|
8521
8521
|
}
|
|
8522
8522
|
/**
|
|
8523
8523
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -8534,12 +8534,12 @@ class Se {
|
|
|
8534
8534
|
}
|
|
8535
8535
|
}
|
|
8536
8536
|
const ld = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0);
|
|
8537
|
-
function
|
|
8537
|
+
function Gp(t, e) {
|
|
8538
8538
|
let { $cursor: n } = t.selection;
|
|
8539
8539
|
return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
|
|
8540
8540
|
}
|
|
8541
8541
|
const Wp = (t, e, n) => {
|
|
8542
|
-
let r =
|
|
8542
|
+
let r = Gp(t, n);
|
|
8543
8543
|
if (!r)
|
|
8544
8544
|
return !1;
|
|
8545
8545
|
let i = cd(r);
|
|
@@ -8565,7 +8565,7 @@ const Wp = (t, e, n) => {
|
|
|
8565
8565
|
}
|
|
8566
8566
|
return a.isAtom && i.depth == r.depth - 1 ? (e && e(t.tr.delete(i.pos - a.nodeSize, i.pos).scrollIntoView()), !0) : !1;
|
|
8567
8567
|
}, w3 = (t, e, n) => {
|
|
8568
|
-
let r =
|
|
8568
|
+
let r = Gp(t, n);
|
|
8569
8569
|
if (!r)
|
|
8570
8570
|
return !1;
|
|
8571
8571
|
let i = cd(r);
|
|
@@ -8601,7 +8601,7 @@ function $p(t, e, n) {
|
|
|
8601
8601
|
return !1;
|
|
8602
8602
|
if (n) {
|
|
8603
8603
|
let d = t.tr.step(c);
|
|
8604
|
-
d.setSelection(
|
|
8604
|
+
d.setSelection(Z.create(d.doc, a)), n(d.scrollIntoView());
|
|
8605
8605
|
}
|
|
8606
8606
|
return !0;
|
|
8607
8607
|
}
|
|
@@ -8743,7 +8743,7 @@ const L3 = (t, e) => {
|
|
|
8743
8743
|
return !1;
|
|
8744
8744
|
if (e) {
|
|
8745
8745
|
let o = (!r.parentOffset && i.index() < i.parent.childCount ? r : i).pos, s = t.tr.insert(o, a.createAndFill());
|
|
8746
|
-
s.setSelection(
|
|
8746
|
+
s.setSelection(Z.create(s.doc, o + 1)), e(s.scrollIntoView());
|
|
8747
8747
|
}
|
|
8748
8748
|
return !0;
|
|
8749
8749
|
}, nm = (t, e) => {
|
|
@@ -8776,7 +8776,7 @@ function N3(t) {
|
|
|
8776
8776
|
a.unshift(null);
|
|
8777
8777
|
}
|
|
8778
8778
|
let d = e.tr;
|
|
8779
|
-
(e.selection instanceof
|
|
8779
|
+
(e.selection instanceof Z || e.selection instanceof yt) && d.deleteSelection();
|
|
8780
8780
|
let u = d.mapping.map(r.pos), p = Nn(d.doc, u, a.length, a);
|
|
8781
8781
|
if (p || (a[0] = s ? { type: s } : null, p = Nn(d.doc, u, a.length, a)), !p)
|
|
8782
8782
|
return !1;
|
|
@@ -8842,7 +8842,7 @@ function im(t) {
|
|
|
8842
8842
|
return !1;
|
|
8843
8843
|
a--;
|
|
8844
8844
|
}
|
|
8845
|
-
return i.node(a).isTextblock ? (n && n(e.tr.setSelection(
|
|
8845
|
+
return i.node(a).isTextblock ? (n && n(e.tr.setSelection(Z.create(e.doc, t < 0 ? i.start(a) : i.end(a)))), !0) : !1;
|
|
8846
8846
|
};
|
|
8847
8847
|
}
|
|
8848
8848
|
const T3 = im(-1), j3 = im(1);
|
|
@@ -9089,8 +9089,8 @@ function V3(t, e, n) {
|
|
|
9089
9089
|
}
|
|
9090
9090
|
const rn = typeof navigator < "u" ? navigator : null, s0 = typeof document < "u" ? document : null, er = rn && rn.userAgent || "", nc = /Edge\/(\d+)/.exec(er), am = /MSIE \d/.exec(er), rc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(er), ht = !!(am || rc || nc), Yn = am ? document.documentMode : rc ? +rc[1] : nc ? +nc[1] : 0, Rt = !ht && /gecko\/(\d+)/i.test(er);
|
|
9091
9091
|
Rt && +(/Firefox\/(\d+)/.exec(er) || [0, 0])[1];
|
|
9092
|
-
const ic = !ht && /Chrome\/(\d+)/.exec(er), Pe = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style,
|
|
9093
|
-
function
|
|
9092
|
+
const ic = !ht && /Chrome\/(\d+)/.exec(er), Pe = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style, _3 = Ka ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
9093
|
+
function G3(t) {
|
|
9094
9094
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
9095
9095
|
return e ? {
|
|
9096
9096
|
left: 0,
|
|
@@ -9123,7 +9123,7 @@ function f0(t, e, n) {
|
|
|
9123
9123
|
o = bi(o);
|
|
9124
9124
|
continue;
|
|
9125
9125
|
}
|
|
9126
|
-
let s = o, f = s == a.body, c = f ?
|
|
9126
|
+
let s = o, f = s == a.body, c = f ? G3(a) : W3(s), d = 0, u = 0;
|
|
9127
9127
|
if (e.top < c.top + pn(r, "top") ? u = -(c.top - e.top + pn(i, "top")) : e.bottom > c.bottom - pn(r, "bottom") && (u = e.bottom - e.top > c.bottom - c.top ? e.top + pn(i, "top") - c.top : e.bottom - c.bottom + pn(i, "bottom")), e.left < c.left + pn(r, "left") ? d = -(c.left - e.left + pn(i, "left")) : e.right > c.right - pn(r, "right") && (d = e.right - c.right + pn(i, "right")), d || u)
|
|
9128
9128
|
if (f)
|
|
9129
9129
|
a.defaultView.scrollBy(d, u);
|
|
@@ -9169,18 +9169,18 @@ function lm(t, e) {
|
|
|
9169
9169
|
r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != a && (r.scrollLeft = a);
|
|
9170
9170
|
}
|
|
9171
9171
|
}
|
|
9172
|
-
let
|
|
9172
|
+
let Gr = null;
|
|
9173
9173
|
function q3(t) {
|
|
9174
9174
|
if (t.setActive)
|
|
9175
9175
|
return t.setActive();
|
|
9176
|
-
if (
|
|
9177
|
-
return t.focus(
|
|
9176
|
+
if (Gr)
|
|
9177
|
+
return t.focus(Gr);
|
|
9178
9178
|
let e = fm(t);
|
|
9179
|
-
t.focus(
|
|
9179
|
+
t.focus(Gr == null ? {
|
|
9180
9180
|
get preventScroll() {
|
|
9181
|
-
return
|
|
9181
|
+
return Gr = { preventScroll: !0 }, !0;
|
|
9182
9182
|
}
|
|
9183
|
-
} : void 0),
|
|
9183
|
+
} : void 0), Gr || (Gr = !1, lm(e, 0));
|
|
9184
9184
|
}
|
|
9185
9185
|
function cm(t, e) {
|
|
9186
9186
|
let n, r = 2e8, i, a = 0, o = e.top, s = e.top, f, c;
|
|
@@ -9941,7 +9941,7 @@ class Qn extends Xa {
|
|
|
9941
9941
|
}
|
|
9942
9942
|
localCompositionInfo(e, n) {
|
|
9943
9943
|
let { from: r, to: i } = e.state.selection;
|
|
9944
|
-
if (!(e.state.selection instanceof
|
|
9944
|
+
if (!(e.state.selection instanceof Z) || r < n || i > n + this.node.content.size)
|
|
9945
9945
|
return null;
|
|
9946
9946
|
let a = e.input.compositionNode;
|
|
9947
9947
|
if (!a || !this.dom.contains(a.parentNode))
|
|
@@ -10500,7 +10500,7 @@ function kn(t, e = !1) {
|
|
|
10500
10500
|
vM(t);
|
|
10501
10501
|
else {
|
|
10502
10502
|
let { anchor: r, head: i } = n, a, o;
|
|
10503
|
-
g0 && !(n instanceof
|
|
10503
|
+
g0 && !(n instanceof Z) && (n.$from.parent.inlineContent || (a = b0(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (o = b0(t, n.to))), t.docView.setSelection(r, i, t, e), g0 && (a && v0(a), o && v0(o)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && bM(t));
|
|
10504
10504
|
}
|
|
10505
10505
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
10506
10506
|
}
|
|
@@ -10551,7 +10551,7 @@ function w0(t) {
|
|
|
10551
10551
|
t.lastSelectedViewDesc && (t.lastSelectedViewDesc.parent && t.lastSelectedViewDesc.deselectNode(), t.lastSelectedViewDesc = void 0);
|
|
10552
10552
|
}
|
|
10553
10553
|
function gd(t, e, n, r) {
|
|
10554
|
-
return t.someProp("createSelectionBetween", (i) => i(t, e, n)) ||
|
|
10554
|
+
return t.someProp("createSelectionBetween", (i) => i(t, e, n)) || Z.between(e, n, r);
|
|
10555
10555
|
}
|
|
10556
10556
|
function y0(t) {
|
|
10557
10557
|
return t.editable && !t.hasFocus() ? !1 : Mm(t);
|
|
@@ -10579,13 +10579,13 @@ function zn(t, e) {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
function M0(t, e, n) {
|
|
10581
10581
|
let r = t.state.selection;
|
|
10582
|
-
if (r instanceof
|
|
10582
|
+
if (r instanceof Z)
|
|
10583
10583
|
if (n.indexOf("s") > -1) {
|
|
10584
10584
|
let { $head: i } = r, a = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter;
|
|
10585
10585
|
if (!a || a.isText || !a.isLeaf)
|
|
10586
10586
|
return !1;
|
|
10587
10587
|
let o = t.state.doc.resolve(i.pos + a.nodeSize * (e < 0 ? -1 : 1));
|
|
10588
|
-
return zn(t, new
|
|
10588
|
+
return zn(t, new Z(r.$anchor, o));
|
|
10589
10589
|
} else if (r.empty) {
|
|
10590
10590
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
10591
10591
|
let i = sc(t.state, e);
|
|
@@ -10595,12 +10595,12 @@ function M0(t, e, n) {
|
|
|
10595
10595
|
if (!a || a.isText)
|
|
10596
10596
|
return !1;
|
|
10597
10597
|
let s = e < 0 ? i.pos - a.nodeSize : i.pos;
|
|
10598
|
-
return a.isAtom || (o = t.docView.descAt(s)) && !o.contentDOM ? V.isSelectable(a) ? zn(t, new V(e < 0 ? t.state.doc.resolve(i.pos - a.nodeSize) : i)) : Ka ? zn(t, new
|
|
10598
|
+
return a.isAtom || (o = t.docView.descAt(s)) && !o.contentDOM ? V.isSelectable(a) ? zn(t, new V(e < 0 ? t.state.doc.resolve(i.pos - a.nodeSize) : i)) : Ka ? zn(t, new Z(t.state.doc.resolve(e < 0 ? s : s + a.nodeSize))) : !1 : !1;
|
|
10599
10599
|
}
|
|
10600
10600
|
} else return !1;
|
|
10601
10601
|
else {
|
|
10602
10602
|
if (r instanceof V && r.node.isInline)
|
|
10603
|
-
return zn(t, new
|
|
10603
|
+
return zn(t, new Z(e > 0 ? r.$to : r.$from));
|
|
10604
10604
|
{
|
|
10605
10605
|
let i = sc(t.state, e);
|
|
10606
10606
|
return i ? zn(t, i) : !1;
|
|
@@ -10750,7 +10750,7 @@ function x0(t, e) {
|
|
|
10750
10750
|
}
|
|
10751
10751
|
function C0(t, e, n) {
|
|
10752
10752
|
let r = t.state.selection;
|
|
10753
|
-
if (r instanceof
|
|
10753
|
+
if (r instanceof Z && !r.empty || n.indexOf("s") > -1 || Dt && n.indexOf("m") > -1)
|
|
10754
10754
|
return !1;
|
|
10755
10755
|
let { $from: i, $to: a } = r;
|
|
10756
10756
|
if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -10765,7 +10765,7 @@ function C0(t, e, n) {
|
|
|
10765
10765
|
return !1;
|
|
10766
10766
|
}
|
|
10767
10767
|
function L0(t, e) {
|
|
10768
|
-
if (!(t.state.selection instanceof
|
|
10768
|
+
if (!(t.state.selection instanceof Z))
|
|
10769
10769
|
return !0;
|
|
10770
10770
|
let { $head: n, $anchor: r, empty: i } = t.state.selection;
|
|
10771
10771
|
if (!n.sameParent(r))
|
|
@@ -11083,7 +11083,7 @@ ft.keypress = (t, e) => {
|
|
|
11083
11083
|
return;
|
|
11084
11084
|
}
|
|
11085
11085
|
let r = t.state.selection;
|
|
11086
|
-
if (!(r instanceof
|
|
11086
|
+
if (!(r instanceof Z) || !r.$from.sameParent(r.$to)) {
|
|
11087
11087
|
let i = String.fromCharCode(n.charCode), a = () => t.state.tr.insertText(i).scrollIntoView();
|
|
11088
11088
|
!/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i, a)) && t.dispatch(a()), n.preventDefault();
|
|
11089
11089
|
}
|
|
@@ -11145,12 +11145,12 @@ function VM(t, e, n) {
|
|
|
11145
11145
|
return !1;
|
|
11146
11146
|
let r = t.state.doc;
|
|
11147
11147
|
if (e == -1)
|
|
11148
|
-
return r.inlineContent ? (ci(t,
|
|
11148
|
+
return r.inlineContent ? (ci(t, Z.create(r, 0, r.content.size)), !0) : !1;
|
|
11149
11149
|
let i = r.resolve(e);
|
|
11150
11150
|
for (let a = i.depth + 1; a > 0; a--) {
|
|
11151
11151
|
let o = a > i.depth ? i.nodeAfter : i.node(a), s = i.before(a);
|
|
11152
11152
|
if (o.inlineContent)
|
|
11153
|
-
ci(t,
|
|
11153
|
+
ci(t, Z.create(r, s + 1, s + 1 + o.content.size));
|
|
11154
11154
|
else if (V.isSelectable(o))
|
|
11155
11155
|
ci(t, V.create(r, s));
|
|
11156
11156
|
else
|
|
@@ -11168,9 +11168,9 @@ st.mousedown = (t, e) => {
|
|
|
11168
11168
|
let r = yd(t), i = Date.now(), a = "singleClick";
|
|
11169
11169
|
i - t.input.lastClick.time < 500 && HM(n, t.input.lastClick) && !n[Tm] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? a = "doubleClick" : t.input.lastClick.type == "doubleClick" && (a = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: a, button: n.button };
|
|
11170
11170
|
let o = t.posAtCoords(bf(n));
|
|
11171
|
-
o && (a == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new
|
|
11171
|
+
o && (a == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new _M(t, o, n, !!r)) : (a == "doubleClick" ? YM : QM)(t, o.pos, o.inside, n) ? n.preventDefault() : Fn(t, "pointer"));
|
|
11172
11172
|
};
|
|
11173
|
-
class
|
|
11173
|
+
class _M {
|
|
11174
11174
|
constructor(e, n, r, i) {
|
|
11175
11175
|
this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Tm], this.allowDefault = r.shiftKey;
|
|
11176
11176
|
let a, o;
|
|
@@ -11226,12 +11226,12 @@ st.contextmenu = (t) => yd(t);
|
|
|
11226
11226
|
function jm(t, e) {
|
|
11227
11227
|
return t.composing ? !0 : Ke && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
11228
11228
|
}
|
|
11229
|
-
const
|
|
11229
|
+
const GM = Ln ? 5e3 : -1;
|
|
11230
11230
|
ft.compositionstart = ft.compositionupdate = (t) => {
|
|
11231
11231
|
if (!t.composing) {
|
|
11232
11232
|
t.domObserver.flush();
|
|
11233
11233
|
let { state: e } = t, n = e.selection.$to;
|
|
11234
|
-
if (e.selection instanceof
|
|
11234
|
+
if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Pe && sm && WM(t)))
|
|
11235
11235
|
t.markCursor = t.state.storedMarks || n.marks(), fs(t, !0), t.markCursor = null;
|
|
11236
11236
|
else if (fs(t, !e.selection.empty), Rt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
11237
11237
|
let r = t.domSelectionRange();
|
|
@@ -11249,7 +11249,7 @@ ft.compositionstart = ft.compositionupdate = (t) => {
|
|
|
11249
11249
|
}
|
|
11250
11250
|
t.input.composing = !0;
|
|
11251
11251
|
}
|
|
11252
|
-
Dm(t,
|
|
11252
|
+
Dm(t, GM);
|
|
11253
11253
|
};
|
|
11254
11254
|
function WM(t) {
|
|
11255
11255
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
@@ -11310,7 +11310,7 @@ function qM(t, e) {
|
|
|
11310
11310
|
n.parentNode && n.parentNode.removeChild(n), t.focus();
|
|
11311
11311
|
}, 50);
|
|
11312
11312
|
}
|
|
11313
|
-
const Ea = ht && Yn < 15 || vi &&
|
|
11313
|
+
const Ea = ht && Yn < 15 || vi && _3 < 604;
|
|
11314
11314
|
st.copy = ft.cut = (t, e) => {
|
|
11315
11315
|
let n = e, r = t.state.selection, i = n.type == "cut";
|
|
11316
11316
|
if (r.empty)
|
|
@@ -12230,7 +12230,7 @@ function px(t, e, n, r, i) {
|
|
|
12230
12230
|
return;
|
|
12231
12231
|
}
|
|
12232
12232
|
if (!m)
|
|
12233
|
-
if (r && f instanceof
|
|
12233
|
+
if (r && f instanceof Z && !f.empty && f.$head.sameParent(f.$anchor) && !t.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
|
12234
12234
|
m = { start: f.from, endA: f.to, endB: f.to };
|
|
12235
12235
|
else {
|
|
12236
12236
|
if (c.sel) {
|
|
@@ -12242,7 +12242,7 @@ function px(t, e, n, r, i) {
|
|
|
12242
12242
|
}
|
|
12243
12243
|
return;
|
|
12244
12244
|
}
|
|
12245
|
-
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof
|
|
12245
|
+
t.state.selection.from < t.state.selection.to && m.start == m.endB && t.state.selection instanceof Z && (m.start > t.state.selection.from && m.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? m.start = t.state.selection.from : m.endA < t.state.selection.to && m.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (m.endB += t.state.selection.to - m.endA, m.endA = t.state.selection.to)), ht && Yn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > c.from && c.doc.textBetween(m.start - c.from - 1, m.start - c.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
12246
12246
|
let g = c.doc.resolveNoCache(m.start - c.from), v = c.doc.resolveNoCache(m.endB - c.from), w = d.resolve(m.start), x = g.sameParent(v) && g.parent.inlineContent && w.end() >= m.endA;
|
|
12247
12247
|
if ((vi && t.input.lastIOSEnter > Date.now() - 225 && (!x || i.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !x && g.pos < c.doc.content.size && (!g.sameParent(v) || !g.parent.inlineContent) && g.pos < v.pos && !/\S/.test(c.doc.textBetween(g.pos, v.pos, "", ""))) && t.someProp("handleKeyDown", (k) => k(t, dr(13, "Enter")))) {
|
|
12248
12248
|
t.input.lastIOSEnter = 0;
|
|
@@ -12996,7 +12996,7 @@ Cd(Fm, {
|
|
|
12996
12996
|
first: () => Jx,
|
|
12997
12997
|
focus: () => Qx,
|
|
12998
12998
|
forEach: () => Vx,
|
|
12999
|
-
insertContent: () =>
|
|
12999
|
+
insertContent: () => _x,
|
|
13000
13000
|
insertContentAt: () => $x,
|
|
13001
13001
|
joinBackward: () => Kx,
|
|
13002
13002
|
joinDown: () => qx,
|
|
@@ -13028,8 +13028,8 @@ Cd(Fm, {
|
|
|
13028
13028
|
setTextSelection: () => YC,
|
|
13029
13029
|
sinkListItem: () => QC,
|
|
13030
13030
|
splitBlock: () => VC,
|
|
13031
|
-
splitListItem: () =>
|
|
13032
|
-
toggleList: () =>
|
|
13031
|
+
splitListItem: () => _C,
|
|
13032
|
+
toggleList: () => GC,
|
|
13033
13033
|
toggleMark: () => WC,
|
|
13034
13034
|
toggleNode: () => $C,
|
|
13035
13035
|
toggleWrap: () => ZC,
|
|
@@ -13065,7 +13065,7 @@ var Tx = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
|
|
|
13065
13065
|
const { state: i } = n, a = i.doc.slice(t.from, t.to);
|
|
13066
13066
|
r.deleteRange(t.from, t.to);
|
|
13067
13067
|
const o = r.mapping.map(e);
|
|
13068
|
-
return r.insert(o, a.content), r.setSelection(new
|
|
13068
|
+
return r.insert(o, a.content), r.setSelection(new Z(r.doc.resolve(Math.max(o - 1, 0)))), !0;
|
|
13069
13069
|
}, Ox = () => ({ tr: t, dispatch: e }) => {
|
|
13070
13070
|
const { selection: n } = t, r = n.$anchor.node();
|
|
13071
13071
|
if (r.content.size > 0)
|
|
@@ -13151,7 +13151,7 @@ var Fx = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
13151
13151
|
if (i) {
|
|
13152
13152
|
const u = Nd(f, a, e);
|
|
13153
13153
|
if (u && u.from <= c && u.to >= d) {
|
|
13154
|
-
const p =
|
|
13154
|
+
const p = Z.create(o, u.from, u.to);
|
|
13155
13155
|
n.setSelection(p);
|
|
13156
13156
|
}
|
|
13157
13157
|
}
|
|
@@ -13164,7 +13164,7 @@ var Fx = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
13164
13164
|
return !1;
|
|
13165
13165
|
};
|
|
13166
13166
|
function Ym(t) {
|
|
13167
|
-
return t instanceof
|
|
13167
|
+
return t instanceof Z;
|
|
13168
13168
|
}
|
|
13169
13169
|
function mr(t = 0, e = 0, n = 0) {
|
|
13170
13170
|
return Math.min(Math.max(t, e), n);
|
|
@@ -13178,7 +13178,7 @@ function Qm(t, e = null) {
|
|
|
13178
13178
|
if (e === "end")
|
|
13179
13179
|
return r;
|
|
13180
13180
|
const i = n.from, a = r.to;
|
|
13181
|
-
return e === "all" ?
|
|
13181
|
+
return e === "all" ? Z.create(t, mr(0, i, a), mr(t.content.size, i, a)) : Z.create(t, mr(e, i, a), mr(e, i, a));
|
|
13182
13182
|
}
|
|
13183
13183
|
function Yx() {
|
|
13184
13184
|
return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
|
|
@@ -13203,7 +13203,7 @@ var Qx = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: a }) => {
|
|
|
13203
13203
|
return o(), !0;
|
|
13204
13204
|
const s = Qm(i.doc, t) || n.state.selection, f = n.state.selection.eq(s);
|
|
13205
13205
|
return a && (f || i.setSelection(s), f && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
|
|
13206
|
-
}, Vx = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })),
|
|
13206
|
+
}, Vx = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), _x = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Vm = (t) => {
|
|
13207
13207
|
const e = t.childNodes;
|
|
13208
13208
|
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
13209
13209
|
const r = e[n];
|
|
@@ -13268,7 +13268,7 @@ function Oa(t, e, n) {
|
|
|
13268
13268
|
}
|
|
13269
13269
|
return Oa("", e, n);
|
|
13270
13270
|
}
|
|
13271
|
-
function
|
|
13271
|
+
function Gx(t, e, n) {
|
|
13272
13272
|
const r = t.steps.length - 1;
|
|
13273
13273
|
if (r < e)
|
|
13274
13274
|
return;
|
|
@@ -13344,7 +13344,7 @@ var Wx = (t) => !("type" in t), $x = (t, e, n) => ({ tr: r, dispatch: i, editor:
|
|
|
13344
13344
|
const v = r.doc.resolve(d), w = v.node(), x = v.parentOffset === 0, L = w.isText || w.isTextblock, y = w.content.size > 0;
|
|
13345
13345
|
x && L && y && (d = Math.max(0, d - 1)), r.replaceWith(d, u, g);
|
|
13346
13346
|
}
|
|
13347
|
-
n.updateSelection &&
|
|
13347
|
+
n.updateSelection && Gx(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: g });
|
|
13348
13348
|
}
|
|
13349
13349
|
return !0;
|
|
13350
13350
|
}, Zx = () => ({ state: t, dispatch: e }) => M3(t, e), qx = () => ({ state: t, dispatch: e }) => x3(t, e), Kx = () => ({ state: t, dispatch: e }) => Wp(t, e), Xx = () => ({ state: t, dispatch: e }) => Kp(t, e), eC = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
@@ -13362,7 +13362,7 @@ var Wx = (t) => !("type" in t), $x = (t, e, n) => ({ tr: r, dispatch: i, editor:
|
|
|
13362
13362
|
return !1;
|
|
13363
13363
|
}
|
|
13364
13364
|
}, nC = () => ({ state: t, dispatch: e }) => w3(t, e), rC = () => ({ state: t, dispatch: e }) => y3(t, e);
|
|
13365
|
-
function
|
|
13365
|
+
function _m() {
|
|
13366
13366
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
13367
13367
|
}
|
|
13368
13368
|
function iC(t) {
|
|
@@ -13381,7 +13381,7 @@ function iC(t) {
|
|
|
13381
13381
|
else if (/^s(hift)?$/i.test(f))
|
|
13382
13382
|
a = !0;
|
|
13383
13383
|
else if (/^mod$/i.test(f))
|
|
13384
|
-
kd() ||
|
|
13384
|
+
kd() || _m() ? o = !0 : i = !0;
|
|
13385
13385
|
else
|
|
13386
13386
|
throw new Error(`Unrecognized modifier name: ${f}`);
|
|
13387
13387
|
}
|
|
@@ -13477,7 +13477,7 @@ var vC = (t, { errorOnInvalidContent: e, emitUpdate: n = !0, parseOptions: r = {
|
|
|
13477
13477
|
errorOnInvalidContent: e ?? i.options.enableContentCheck
|
|
13478
13478
|
});
|
|
13479
13479
|
};
|
|
13480
|
-
function
|
|
13480
|
+
function Gm(t, e) {
|
|
13481
13481
|
const n = Tn(e, t.schema), { from: r, to: i, empty: a } = t.selection, o = [];
|
|
13482
13482
|
a ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (f) => {
|
|
13483
13483
|
o.push(...f.marks);
|
|
@@ -13830,7 +13830,7 @@ function eg(t, e) {
|
|
|
13830
13830
|
typeof e == "string" ? e : e.name,
|
|
13831
13831
|
t.schema
|
|
13832
13832
|
);
|
|
13833
|
-
return n === "node" ? SC(t, e) : n === "mark" ?
|
|
13833
|
+
return n === "node" ? SC(t, e) : n === "mark" ? Gm(t, e) : {};
|
|
13834
13834
|
}
|
|
13835
13835
|
function IC(t, e = JSON.stringify) {
|
|
13836
13836
|
const n = {};
|
|
@@ -14066,7 +14066,7 @@ var BC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
14066
14066
|
const { selection: a } = n, { empty: o, ranges: s } = a, f = Tn(t, r.schema);
|
|
14067
14067
|
if (i)
|
|
14068
14068
|
if (o) {
|
|
14069
|
-
const c =
|
|
14069
|
+
const c = Gm(r, f);
|
|
14070
14070
|
n.addStoredMark(
|
|
14071
14071
|
f.create({
|
|
14072
14072
|
...c,
|
|
@@ -14112,7 +14112,7 @@ var BC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
14112
14112
|
}), !0;
|
|
14113
14113
|
}, YC = (t) => ({ tr: e, dispatch: n }) => {
|
|
14114
14114
|
if (n) {
|
|
14115
|
-
const { doc: r } = e, { from: i, to: a } = typeof t == "number" ? { from: t, to: t } : t, o =
|
|
14115
|
+
const { doc: r } = e, { from: i, to: a } = typeof t == "number" ? { from: t, to: t } : t, o = Z.atStart(r).from, s = Z.atEnd(r).to, f = mr(i, o, s), c = mr(a, o, s), d = Z.create(r, f, c);
|
|
14116
14116
|
e.setSelection(d);
|
|
14117
14117
|
}
|
|
14118
14118
|
return !0;
|
|
@@ -14120,7 +14120,7 @@ var BC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
14120
14120
|
const r = De(t, e.schema);
|
|
14121
14121
|
return B3(r)(e, n);
|
|
14122
14122
|
};
|
|
14123
|
-
function
|
|
14123
|
+
function _0(t, e) {
|
|
14124
14124
|
const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
|
|
14125
14125
|
if (n) {
|
|
14126
14126
|
const r = n.filter((i) => e == null ? void 0 : e.includes(i.type.name));
|
|
@@ -14130,7 +14130,7 @@ function G0(t, e) {
|
|
|
14130
14130
|
var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
|
|
14131
14131
|
const { selection: a, doc: o } = e, { $from: s, $to: f } = a, c = i.extensionManager.attributes, d = Fo(c, s.node().type.name, s.node().attrs);
|
|
14132
14132
|
if (a instanceof V && a.node.isBlock)
|
|
14133
|
-
return !s.parentOffset || !Nn(o, s.pos) ? !1 : (r && (t &&
|
|
14133
|
+
return !s.parentOffset || !Nn(o, s.pos) ? !1 : (r && (t && _0(n, i.extensionManager.splittableMarks), e.split(s.pos).scrollIntoView()), !0);
|
|
14134
14134
|
if (!s.parent.isBlock)
|
|
14135
14135
|
return !1;
|
|
14136
14136
|
const u = f.parentOffset === f.parent.content.size, p = s.depth === 0 ? void 0 : wC(s.node(-1).contentMatchAt(s.indexAfter(-1)));
|
|
@@ -14146,14 +14146,14 @@ var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14146
14146
|
attrs: d
|
|
14147
14147
|
}
|
|
14148
14148
|
] : void 0), r) {
|
|
14149
|
-
if (m && (a instanceof
|
|
14149
|
+
if (m && (a instanceof Z && e.deleteSelection(), e.split(e.mapping.map(s.pos), 1, h), p && !u && !s.parentOffset && s.parent.type !== p)) {
|
|
14150
14150
|
const g = e.mapping.map(s.before()), v = e.doc.resolve(g);
|
|
14151
14151
|
s.node(-1).canReplaceWith(v.index(), v.index() + 1, p) && e.setNodeMarkup(e.mapping.map(s.before()), p);
|
|
14152
14152
|
}
|
|
14153
|
-
t &&
|
|
14153
|
+
t && _0(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
14154
14154
|
}
|
|
14155
14155
|
return m;
|
|
14156
|
-
},
|
|
14156
|
+
}, _C = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: a }) => {
|
|
14157
14157
|
var o;
|
|
14158
14158
|
const s = De(t, r.schema), { $from: f, $to: c } = r.selection, d = r.selection.node;
|
|
14159
14159
|
if (d && d.isBlock || f.depth < 2 || !f.sameParent(c))
|
|
@@ -14185,7 +14185,7 @@ var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14185
14185
|
if (k > -1)
|
|
14186
14186
|
return !1;
|
|
14187
14187
|
S.isTextblock && S.content.size === 0 && (k = I + 1);
|
|
14188
|
-
}), k > -1 && n.setSelection(
|
|
14188
|
+
}), k > -1 && n.setSelection(Z.near(n.doc.resolve(k))), n.scrollIntoView();
|
|
14189
14189
|
}
|
|
14190
14190
|
return !0;
|
|
14191
14191
|
}
|
|
@@ -14229,7 +14229,7 @@ var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
|
|
|
14229
14229
|
return !0;
|
|
14230
14230
|
const i = t.doc.nodeAt(r);
|
|
14231
14231
|
return n.node.type === (i == null ? void 0 : i.type) && Xn(t.doc, r) && t.join(r), !0;
|
|
14232
|
-
},
|
|
14232
|
+
}, GC = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: f, commands: c, can: d }) => {
|
|
14233
14233
|
const { extensions: u, splittableMarks: p } = i.extensionManager, h = De(t, o.schema), m = De(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();
|
|
14234
14234
|
if (!L)
|
|
14235
14235
|
return !1;
|
|
@@ -15028,7 +15028,7 @@ var ke = class sg extends Dd {
|
|
|
15028
15028
|
const p = d.mapping;
|
|
15029
15029
|
d.steps.forEach((h, m) => {
|
|
15030
15030
|
var g, v;
|
|
15031
|
-
if (h instanceof
|
|
15031
|
+
if (h instanceof Gt) {
|
|
15032
15032
|
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), N = (g = d.doc.nodeAt(w - 1)) == null ? void 0 : g.marks.some((k) => k.eq(h.mark)), C = (v = d.doc.nodeAt(x)) == null ? void 0 : v.marks.some((k) => k.eq(h.mark));
|
|
15033
15033
|
this.editor.emit("delete", {
|
|
15034
15034
|
type: "mark",
|
|
@@ -15153,7 +15153,7 @@ var ke = class sg extends Dd {
|
|
|
15153
15153
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
15154
15154
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
15155
15155
|
};
|
|
15156
|
-
return kd() ||
|
|
15156
|
+
return kd() || _m() ? a : i;
|
|
15157
15157
|
},
|
|
15158
15158
|
addProseMirrorPlugins() {
|
|
15159
15159
|
return [
|
|
@@ -16653,7 +16653,7 @@ function Dr(t) {
|
|
|
16653
16653
|
});
|
|
16654
16654
|
}
|
|
16655
16655
|
var T6 = Object.getOwnPropertyNames, j6 = Object.getOwnPropertySymbols, D6 = Object.prototype.hasOwnProperty;
|
|
16656
|
-
function
|
|
16656
|
+
function G0(t, e) {
|
|
16657
16657
|
return function(r, i, a) {
|
|
16658
16658
|
return t(r, i, a) && e(r, i, a);
|
|
16659
16659
|
};
|
|
@@ -16782,13 +16782,13 @@ function V6(t, e) {
|
|
|
16782
16782
|
return !1;
|
|
16783
16783
|
return !0;
|
|
16784
16784
|
}
|
|
16785
|
-
function
|
|
16785
|
+
function _6(t, e) {
|
|
16786
16786
|
return t.hostname === e.hostname && t.pathname === e.pathname && t.protocol === e.protocol && t.port === e.port && t.hash === e.hash && t.username === e.username && t.password === e.password;
|
|
16787
16787
|
}
|
|
16788
16788
|
function xg(t, e, n, r) {
|
|
16789
16789
|
return (r === P6 || r === O6 || r === z6) && (t.$$typeof || e.$$typeof) ? !0 : A6(e, r) && n.equals(t[r], e[r], r, r, t, e, n);
|
|
16790
16790
|
}
|
|
16791
|
-
var
|
|
16791
|
+
var G6 = "[object Arguments]", W6 = "[object Boolean]", $6 = "[object Date]", Z6 = "[object Error]", q6 = "[object Map]", K6 = "[object Number]", X6 = "[object Object]", eL = "[object RegExp]", tL = "[object Set]", nL = "[object String]", rL = "[object URL]", iL = Array.isArray, X0 = typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView : null, eh = Object.assign, aL = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
16792
16792
|
function oL(t) {
|
|
16793
16793
|
var e = t.areArraysEqual, n = t.areDatesEqual, r = t.areErrorsEqual, i = t.areFunctionsEqual, a = t.areMapsEqual, o = t.areNumbersEqual, s = t.areObjectsEqual, f = t.arePrimitiveWrappersEqual, c = t.areRegExpsEqual, d = t.areSetsEqual, u = t.areTypedArraysEqual, p = t.areUrlsEqual, h = t.unknownTagComparators;
|
|
16794
16794
|
return function(g, v, w) {
|
|
@@ -16833,7 +16833,7 @@ function oL(t) {
|
|
|
16833
16833
|
return p(g, v, w);
|
|
16834
16834
|
if (y === Z6)
|
|
16835
16835
|
return r(g, v, w);
|
|
16836
|
-
if (y ===
|
|
16836
|
+
if (y === G6)
|
|
16837
16837
|
return s(g, v, w);
|
|
16838
16838
|
if (y === W6 || y === K6 || y === nL)
|
|
16839
16839
|
return f(g, v, w);
|
|
@@ -16855,14 +16855,14 @@ function sL(t) {
|
|
|
16855
16855
|
areDatesEqual: B6,
|
|
16856
16856
|
areErrorsEqual: H6,
|
|
16857
16857
|
areFunctionsEqual: U6,
|
|
16858
|
-
areMapsEqual: r ?
|
|
16858
|
+
areMapsEqual: r ? G0(q0, Yi) : q0,
|
|
16859
16859
|
areNumbersEqual: F6,
|
|
16860
16860
|
areObjectsEqual: r ? Yi : J6,
|
|
16861
16861
|
arePrimitiveWrappersEqual: Y6,
|
|
16862
16862
|
areRegExpsEqual: Q6,
|
|
16863
|
-
areSetsEqual: r ?
|
|
16863
|
+
areSetsEqual: r ? G0(K0, Yi) : K0,
|
|
16864
16864
|
areTypedArraysEqual: r ? Yi : V6,
|
|
16865
|
-
areUrlsEqual:
|
|
16865
|
+
areUrlsEqual: _6,
|
|
16866
16866
|
unknownTagComparators: void 0
|
|
16867
16867
|
};
|
|
16868
16868
|
if (n && (i = eh({}, i, n(i))), e) {
|
|
@@ -17702,7 +17702,7 @@ ${n}
|
|
|
17702
17702
|
let y = d;
|
|
17703
17703
|
for (let C = 0; C < m; C += 1)
|
|
17704
17704
|
y += h[C].length + 1;
|
|
17705
|
-
return s.delete(y, y + L), c - y <= L && s.setSelection(
|
|
17705
|
+
return s.delete(y, y + L), c - y <= L && s.setSelection(Z.create(s.doc, y)), !0;
|
|
17706
17706
|
}) : t.commands.command(({ tr: s }) => {
|
|
17707
17707
|
const { from: f, to: c } = i, p = r.doc.textBetween(f, c, `
|
|
17708
17708
|
`, `
|
|
@@ -17773,7 +17773,7 @@ ${n}
|
|
|
17773
17773
|
return !1;
|
|
17774
17774
|
const { tr: o, schema: s } = t.state, f = s.text(n.replace(/\r\n?/g, `
|
|
17775
17775
|
`));
|
|
17776
|
-
return o.replaceSelectionWith(this.type.create({ language: a }, f)), o.selection.$from.parent.type !== this.type && o.setSelection(
|
|
17776
|
+
return o.replaceSelectionWith(this.type.create({ language: a }, f)), o.selection.$from.parent.type !== this.type && o.setSelection(Z.near(o.doc.resolve(Math.max(0, o.selection.from - 2)))), o.setMeta("paste", !0), t.dispatch(o), !0;
|
|
17777
17777
|
}
|
|
17778
17778
|
}
|
|
17779
17779
|
})
|
|
@@ -17928,10 +17928,10 @@ ${n}
|
|
|
17928
17928
|
if (s) {
|
|
17929
17929
|
const { $to: f } = o.selection, c = f.end();
|
|
17930
17930
|
if (f.nodeAfter)
|
|
17931
|
-
f.nodeAfter.isTextblock ? o.setSelection(
|
|
17931
|
+
f.nodeAfter.isTextblock ? o.setSelection(Z.create(o.doc, f.pos + 1)) : f.nodeAfter.isBlock ? o.setSelection(V.create(o.doc, f.pos)) : o.setSelection(Z.create(o.doc, f.pos));
|
|
17932
17932
|
else {
|
|
17933
17933
|
const d = a.schema.nodes[this.options.nextNodeType] || f.parent.type.contentMatch.defaultType, u = d == null ? void 0 : d.create();
|
|
17934
|
-
u && (o.insert(c, u), o.setSelection(
|
|
17934
|
+
u && (o.insert(c, u), o.setSelection(Z.create(o.doc, c + 1)));
|
|
17935
17935
|
}
|
|
17936
17936
|
o.scrollIntoView();
|
|
17937
17937
|
}
|
|
@@ -17948,7 +17948,7 @@ ${n}
|
|
|
17948
17948
|
})
|
|
17949
17949
|
];
|
|
17950
17950
|
}
|
|
17951
|
-
}), VL = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,
|
|
17951
|
+
}), VL = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, _L = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, GL = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, WL = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, $L = Rr.create({
|
|
17952
17952
|
name: "italic",
|
|
17953
17953
|
addOptions() {
|
|
17954
17954
|
return {
|
|
@@ -17999,7 +17999,7 @@ ${n}
|
|
|
17999
17999
|
type: this.type
|
|
18000
18000
|
}),
|
|
18001
18001
|
yi({
|
|
18002
|
-
find:
|
|
18002
|
+
find: GL,
|
|
18003
18003
|
type: this.type
|
|
18004
18004
|
})
|
|
18005
18005
|
];
|
|
@@ -18007,7 +18007,7 @@ ${n}
|
|
|
18007
18007
|
addPasteRules() {
|
|
18008
18008
|
return [
|
|
18009
18009
|
Dr({
|
|
18010
|
-
find:
|
|
18010
|
+
find: _L,
|
|
18011
18011
|
type: this.type
|
|
18012
18012
|
}),
|
|
18013
18013
|
Dr({
|
|
@@ -18629,10 +18629,10 @@ function sN({
|
|
|
18629
18629
|
for (let J = 0; J < H.length; J++) {
|
|
18630
18630
|
const [P, F] = H[J], A = z(N, P);
|
|
18631
18631
|
z(C, P, A), z(A, F, N);
|
|
18632
|
-
const
|
|
18633
|
-
X(A, e,
|
|
18632
|
+
const _ = St(Do);
|
|
18633
|
+
X(A, e, _);
|
|
18634
18634
|
const q = St();
|
|
18635
|
-
X(A, n), X(
|
|
18635
|
+
X(A, n), X(_, e, _), X(_, n, q), X(q, e, _), X(q, n, q), z(_, F, N), z(q, F, N);
|
|
18636
18636
|
}
|
|
18637
18637
|
return z(i, Pa, x), z(i, Pd, oN), {
|
|
18638
18638
|
start: i,
|
|
@@ -19811,7 +19811,7 @@ var AN = lt.create({
|
|
|
19811
19811
|
text: t.text || ""
|
|
19812
19812
|
}),
|
|
19813
19813
|
renderMarkdown: (t) => t.text || ""
|
|
19814
|
-
}),
|
|
19814
|
+
}), _g = Rr.create({
|
|
19815
19815
|
name: "underline",
|
|
19816
19816
|
addOptions() {
|
|
19817
19817
|
return {
|
|
@@ -19871,7 +19871,7 @@ var AN = lt.create({
|
|
|
19871
19871
|
"Mod-U": () => this.editor.commands.toggleUnderline()
|
|
19872
19872
|
};
|
|
19873
19873
|
}
|
|
19874
|
-
}), BN =
|
|
19874
|
+
}), BN = _g;
|
|
19875
19875
|
function HN(t = {}) {
|
|
19876
19876
|
return new Me({
|
|
19877
19877
|
view(e) {
|
|
@@ -20053,7 +20053,7 @@ class Vd {
|
|
|
20053
20053
|
return Ne.valid(n) ? new Ne(n) : ee.near(n);
|
|
20054
20054
|
}
|
|
20055
20055
|
}
|
|
20056
|
-
function
|
|
20056
|
+
function Gg(t) {
|
|
20057
20057
|
return t.isAtom || t.spec.isolating || t.spec.createGapCursor;
|
|
20058
20058
|
}
|
|
20059
20059
|
function FN(t) {
|
|
@@ -20065,7 +20065,7 @@ function FN(t) {
|
|
|
20065
20065
|
continue;
|
|
20066
20066
|
}
|
|
20067
20067
|
for (let i = r.child(n - 1); ; i = i.lastChild) {
|
|
20068
|
-
if (i.childCount == 0 && !i.inlineContent ||
|
|
20068
|
+
if (i.childCount == 0 && !i.inlineContent || Gg(i.type))
|
|
20069
20069
|
return !0;
|
|
20070
20070
|
if (i.inlineContent)
|
|
20071
20071
|
return !1;
|
|
@@ -20082,7 +20082,7 @@ function JN(t) {
|
|
|
20082
20082
|
continue;
|
|
20083
20083
|
}
|
|
20084
20084
|
for (let i = r.child(n); ; i = i.firstChild) {
|
|
20085
|
-
if (i.childCount == 0 && !i.inlineContent ||
|
|
20085
|
+
if (i.childCount == 0 && !i.inlineContent || Gg(i.type))
|
|
20086
20086
|
return !0;
|
|
20087
20087
|
if (i.inlineContent)
|
|
20088
20088
|
return !1;
|
|
@@ -20093,13 +20093,13 @@ function JN(t) {
|
|
|
20093
20093
|
function YN() {
|
|
20094
20094
|
return new Me({
|
|
20095
20095
|
props: {
|
|
20096
|
-
decorations:
|
|
20096
|
+
decorations: GN,
|
|
20097
20097
|
createSelectionBetween(t, e, n) {
|
|
20098
20098
|
return e.pos == n.pos && Ne.valid(n) ? new Ne(n) : null;
|
|
20099
20099
|
},
|
|
20100
20100
|
handleClick: VN,
|
|
20101
20101
|
handleKeyDown: QN,
|
|
20102
|
-
handleDOMEvents: { beforeinput:
|
|
20102
|
+
handleDOMEvents: { beforeinput: _N }
|
|
20103
20103
|
}
|
|
20104
20104
|
});
|
|
20105
20105
|
}
|
|
@@ -20113,7 +20113,7 @@ function Eo(t, e) {
|
|
|
20113
20113
|
const n = t == "vert" ? e > 0 ? "down" : "up" : e > 0 ? "right" : "left";
|
|
20114
20114
|
return function(r, i, a) {
|
|
20115
20115
|
let o = r.selection, s = e > 0 ? o.$to : o.$from, f = o.empty;
|
|
20116
|
-
if (o instanceof
|
|
20116
|
+
if (o instanceof Z) {
|
|
20117
20117
|
if (!a.endOfTextblock(n) || s.depth == 0)
|
|
20118
20118
|
return !1;
|
|
20119
20119
|
f = !1, s = r.doc.resolve(e > 0 ? s.after() : s.before());
|
|
@@ -20131,7 +20131,7 @@ function VN(t, e, n) {
|
|
|
20131
20131
|
let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
|
|
20132
20132
|
return i && i.inside > -1 && V.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new Ne(r))), !0);
|
|
20133
20133
|
}
|
|
20134
|
-
function
|
|
20134
|
+
function _N(t, e) {
|
|
20135
20135
|
if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof Ne))
|
|
20136
20136
|
return !1;
|
|
20137
20137
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
@@ -20141,9 +20141,9 @@ function GN(t, e) {
|
|
|
20141
20141
|
for (let o = r.length - 1; o >= 0; o--)
|
|
20142
20142
|
i = E.from(r[o].createAndFill(null, i));
|
|
20143
20143
|
let a = t.state.tr.replace(n.pos, n.pos, new U(i, 0, 0));
|
|
20144
|
-
return a.setSelection(
|
|
20144
|
+
return a.setSelection(Z.near(a.doc.resolve(n.pos + 1))), t.dispatch(a), !1;
|
|
20145
20145
|
}
|
|
20146
|
-
function
|
|
20146
|
+
function GN(t) {
|
|
20147
20147
|
if (!(t.selection instanceof Ne))
|
|
20148
20148
|
return null;
|
|
20149
20149
|
let e = document.createElement("div");
|
|
@@ -20247,7 +20247,7 @@ var WN = /* @__PURE__ */ (function(t) {
|
|
|
20247
20247
|
}, e;
|
|
20248
20248
|
})(Be);
|
|
20249
20249
|
const $N = 500;
|
|
20250
|
-
class
|
|
20250
|
+
class _t {
|
|
20251
20251
|
constructor(e, n) {
|
|
20252
20252
|
this.items = e, this.eventCount = n;
|
|
20253
20253
|
}
|
|
@@ -20277,7 +20277,7 @@ class Gt {
|
|
|
20277
20277
|
} else
|
|
20278
20278
|
o.maybeStep(u.step);
|
|
20279
20279
|
if (u.selection)
|
|
20280
|
-
return s = i ? u.selection.map(i.slice(a)) : u.selection, f = new
|
|
20280
|
+
return s = i ? u.selection.map(i.slice(a)) : u.selection, f = new _t(this.items.slice(0, r).append(d.reverse().concat(c)), this.eventCount - 1), !1;
|
|
20281
20281
|
}, this.items.length, 0), { remaining: f, transform: o, selection: s };
|
|
20282
20282
|
}
|
|
20283
20283
|
// Create a new branch with the given transform added.
|
|
@@ -20288,7 +20288,7 @@ class Gt {
|
|
|
20288
20288
|
(h = f && f.merge(p)) && (p = h, d ? a.pop() : s = s.slice(0, s.length - 1)), a.push(p), n && (o++, n = void 0), i || (f = p);
|
|
20289
20289
|
}
|
|
20290
20290
|
let c = o - r.depth;
|
|
20291
|
-
return c > qN && (s = ZN(s, c), o -= c), new
|
|
20291
|
+
return c > qN && (s = ZN(s, c), o -= c), new _t(s.append(a), o);
|
|
20292
20292
|
}
|
|
20293
20293
|
remapping(e, n) {
|
|
20294
20294
|
let r = new ja();
|
|
@@ -20298,7 +20298,7 @@ class Gt {
|
|
|
20298
20298
|
}, e, n), r;
|
|
20299
20299
|
}
|
|
20300
20300
|
addMaps(e) {
|
|
20301
|
-
return this.eventCount == 0 ? this : new
|
|
20301
|
+
return this.eventCount == 0 ? this : new _t(this.items.append(e.map((n) => new qt(n))), this.eventCount);
|
|
20302
20302
|
}
|
|
20303
20303
|
// When the collab module receives remote changes, the history has
|
|
20304
20304
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -20327,7 +20327,7 @@ class Gt {
|
|
|
20327
20327
|
let c = [];
|
|
20328
20328
|
for (let p = n; p < o; p++)
|
|
20329
20329
|
c.push(new qt(a.maps[p]));
|
|
20330
|
-
let d = this.items.slice(0, i).append(c).append(r), u = new
|
|
20330
|
+
let d = this.items.slice(0, i).append(c).append(r), u = new _t(d, s);
|
|
20331
20331
|
return u.emptyItemCount() > $N && (u = u.compress(this.items.length - r.length)), u;
|
|
20332
20332
|
}
|
|
20333
20333
|
emptyItemCount() {
|
|
@@ -20356,10 +20356,10 @@ class Gt {
|
|
|
20356
20356
|
(p = i.length && i[h].merge(u)) ? i[h] = p : i.push(u);
|
|
20357
20357
|
}
|
|
20358
20358
|
} else o.map && r--;
|
|
20359
|
-
}, this.items.length, 0), new
|
|
20359
|
+
}, this.items.length, 0), new _t(Be.from(i.reverse()), a);
|
|
20360
20360
|
}
|
|
20361
20361
|
}
|
|
20362
|
-
|
|
20362
|
+
_t.empty = new _t(Be.empty, 0);
|
|
20363
20363
|
function ZN(t, e) {
|
|
20364
20364
|
let n;
|
|
20365
20365
|
return t.forEach((r, i) => {
|
|
@@ -20397,7 +20397,7 @@ function KN(t, e, n, r) {
|
|
|
20397
20397
|
return o.getMeta(Lr).redo ? new Pn(t.done.addTransform(n, void 0, r, Yo(e)), t.undone, gh(n.mapping.maps), t.prevTime, t.prevComposition) : new Pn(t.done, t.undone.addTransform(n, void 0, r, Yo(e)), null, t.prevTime, t.prevComposition);
|
|
20398
20398
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
20399
20399
|
let s = n.getMeta("composition"), f = t.prevTime == 0 || !o && t.prevComposition != s && (t.prevTime < (n.time || 0) - r.newGroupDelay || !XN(n, t.prevRanges)), c = o ? Il(t.prevRanges, n.mapping) : gh(n.mapping.maps);
|
|
20400
|
-
return new Pn(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, r, Yo(e)),
|
|
20400
|
+
return new Pn(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, r, Yo(e)), _t.empty, c, n.time, s ?? t.prevComposition);
|
|
20401
20401
|
} else return (a = n.getMeta("rebased")) ? new Pn(t.done.rebased(n, a), t.undone.rebased(n, a), Il(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Pn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Il(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
20402
20402
|
}
|
|
20403
20403
|
function XN(t, e) {
|
|
@@ -20456,7 +20456,7 @@ function nk(t = {}) {
|
|
|
20456
20456
|
key: Lr,
|
|
20457
20457
|
state: {
|
|
20458
20458
|
init() {
|
|
20459
|
-
return new Pn(
|
|
20459
|
+
return new Pn(_t.empty, _t.empty, null, 0, -1);
|
|
20460
20460
|
},
|
|
20461
20461
|
apply(e, n, r) {
|
|
20462
20462
|
return KN(n, r, e, t);
|
|
@@ -20767,7 +20767,7 @@ var ok = ke.create({
|
|
|
20767
20767
|
addExtensions() {
|
|
20768
20768
|
var t, e, n, r;
|
|
20769
20769
|
const i = [];
|
|
20770
|
-
return this.options.bold !== !1 && i.push(zL.configure(this.options.bold)), this.options.blockquote !== !1 && i.push(TL.configure(this.options.blockquote)), this.options.bulletList !== !1 && i.push(Pg.configure(this.options.bulletList)), this.options.code !== !1 && i.push(RL.configure(this.options.code)), this.options.codeBlock !== !1 && i.push(UL.configure(this.options.codeBlock)), this.options.document !== !1 && i.push(FL.configure(this.options.document)), this.options.dropcursor !== !1 && i.push(rk.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && i.push(ik.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && i.push(JL.configure(this.options.hardBreak)), this.options.heading !== !1 && i.push(YL.configure(this.options.heading)), this.options.undoRedo !== !1 && i.push(sk.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && i.push(QL.configure(this.options.horizontalRule)), this.options.italic !== !1 && i.push($L.configure(this.options.italic)), this.options.listItem !== !1 && i.push(Rg.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(Yg.configure((t = this.options) == null ? void 0 : t.listKeymap)), this.options.link !== !1 && i.push(Og.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && i.push(Vg.configure(this.options.orderedList)), this.options.paragraph !== !1 && i.push(AN.configure(this.options.paragraph)), this.options.strike !== !1 && i.push(PN.configure(this.options.strike)), this.options.text !== !1 && i.push(RN.configure(this.options.text)), this.options.underline !== !1 && i.push(
|
|
20770
|
+
return this.options.bold !== !1 && i.push(zL.configure(this.options.bold)), this.options.blockquote !== !1 && i.push(TL.configure(this.options.blockquote)), this.options.bulletList !== !1 && i.push(Pg.configure(this.options.bulletList)), this.options.code !== !1 && i.push(RL.configure(this.options.code)), this.options.codeBlock !== !1 && i.push(UL.configure(this.options.codeBlock)), this.options.document !== !1 && i.push(FL.configure(this.options.document)), this.options.dropcursor !== !1 && i.push(rk.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && i.push(ik.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && i.push(JL.configure(this.options.hardBreak)), this.options.heading !== !1 && i.push(YL.configure(this.options.heading)), this.options.undoRedo !== !1 && i.push(sk.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && i.push(QL.configure(this.options.horizontalRule)), this.options.italic !== !1 && i.push($L.configure(this.options.italic)), this.options.listItem !== !1 && i.push(Rg.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(Yg.configure((t = this.options) == null ? void 0 : t.listKeymap)), this.options.link !== !1 && i.push(Og.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && i.push(Vg.configure(this.options.orderedList)), this.options.paragraph !== !1 && i.push(AN.configure(this.options.paragraph)), this.options.strike !== !1 && i.push(PN.configure(this.options.strike)), this.options.text !== !1 && i.push(RN.configure(this.options.text)), this.options.underline !== !1 && i.push(_g.configure((n = this.options) == null ? void 0 : n.underline)), this.options.trailingNode !== !1 && i.push(ok.configure((r = this.options) == null ? void 0 : r.trailingNode)), i;
|
|
20771
20771
|
}
|
|
20772
20772
|
}), Kg = fk, lk = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, ck = lt.create({
|
|
20773
20773
|
name: "image",
|
|
@@ -20972,10 +20972,10 @@ function hk({
|
|
|
20972
20972
|
return {
|
|
20973
20973
|
update: async (C, k) => {
|
|
20974
20974
|
var S, I, D, H, J, P, F;
|
|
20975
|
-
const A = (S = this.key) == null ? void 0 : S.getState(k),
|
|
20975
|
+
const A = (S = this.key) == null ? void 0 : S.getState(k), _ = (I = this.key) == null ? void 0 : I.getState(C.state), q = A.active && _.active && A.range.from !== _.range.from, fe = !A.active && _.active, Ee = A.active && !_.active, G = !fe && !Ee && A.query !== _.query, be = fe || q && G, he = G || q, He = Ee || q && G;
|
|
20976
20976
|
if (!be && !he && !He)
|
|
20977
20977
|
return;
|
|
20978
|
-
const R = He && !be ? A :
|
|
20978
|
+
const R = He && !be ? A : _, W = C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`);
|
|
20979
20979
|
v = {
|
|
20980
20980
|
editor: e,
|
|
20981
20981
|
range: R.range,
|
|
@@ -20987,8 +20987,8 @@ function hk({
|
|
|
20987
20987
|
range: R.range,
|
|
20988
20988
|
props: se
|
|
20989
20989
|
}),
|
|
20990
|
-
decorationNode:
|
|
20991
|
-
clientRect: L(C,
|
|
20990
|
+
decorationNode: W,
|
|
20991
|
+
clientRect: L(C, W)
|
|
20992
20992
|
}, be && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), he && ((H = w == null ? void 0 : w.onBeforeUpdate) == null || H.call(w, v)), (he || be) && (v.items = await p({
|
|
20993
20993
|
editor: e,
|
|
20994
20994
|
query: R.query
|
|
@@ -21016,8 +21016,8 @@ function hk({
|
|
|
21016
21016
|
},
|
|
21017
21017
|
// Apply changes to the plugin state from a view transaction.
|
|
21018
21018
|
apply(C, k, S, I) {
|
|
21019
|
-
const { isEditable: D } = e, { composing: H } = e.view, { selection: J } = C, { empty: P, from: F } = J, A = { ...k },
|
|
21020
|
-
if (
|
|
21019
|
+
const { isEditable: D } = e, { composing: H } = e.view, { selection: J } = C, { empty: P, from: F } = J, A = { ...k }, _ = C.getMeta(t);
|
|
21020
|
+
if (_ && _.exit)
|
|
21021
21021
|
return A.active = !1, A.decorationId = null, A.range = { from: 0, to: 0 }, A.query = null, A.text = null, A;
|
|
21022
21022
|
if (A.composing = H, D && (P || e.view.composing)) {
|
|
21023
21023
|
(F < k.range.from || F > k.range.to) && !H && !k.composing && (A.active = !1);
|
|
@@ -21048,7 +21048,7 @@ function hk({
|
|
|
21048
21048
|
if (!J)
|
|
21049
21049
|
return !1;
|
|
21050
21050
|
if (k.key === "Escape" || k.key === "Esc") {
|
|
21051
|
-
const A = N.getState(C.state),
|
|
21051
|
+
const A = N.getState(C.state), _ = (S = v == null ? void 0 : v.decorationNode) != null ? S : null, q = _ ?? (A != null && A.decorationId ? C.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
|
|
21052
21052
|
if (((I = w == null ? void 0 : w.onKeyDown) == null ? void 0 : I.call(w, { view: C, event: k, range: A.range })) || !1)
|
|
21053
21053
|
return !0;
|
|
21054
21054
|
const Ee = {
|
|
@@ -21057,7 +21057,7 @@ function hk({
|
|
|
21057
21057
|
query: A.query,
|
|
21058
21058
|
text: A.text,
|
|
21059
21059
|
items: [],
|
|
21060
|
-
command: (
|
|
21060
|
+
command: (G) => u({ editor: e, range: A.range, props: G }),
|
|
21061
21061
|
decorationNode: q,
|
|
21062
21062
|
// If we have a cached decoration node, use it for the clientRect
|
|
21063
21063
|
// to avoid another DOM lookup. If not, leave clientRect null and
|
|
@@ -21265,9 +21265,9 @@ var mk = lt.create({
|
|
|
21265
21265
|
addProseMirrorPlugins() {
|
|
21266
21266
|
return e2(this).map(hk);
|
|
21267
21267
|
}
|
|
21268
|
-
}), gk = mk, pt = "top", Ut = "bottom", Ft = "right", mt = "left",
|
|
21268
|
+
}), gk = mk, pt = "top", Ut = "bottom", Ft = "right", mt = "left", _d = "auto", to = [pt, Ut, Ft, mt], xi = "start", Ba = "end", bk = "clippingParents", t2 = "viewport", Vi = "popper", vk = "reference", yh = /* @__PURE__ */ to.reduce(function(t, e) {
|
|
21269
21269
|
return t.concat([e + "-" + xi, e + "-" + Ba]);
|
|
21270
|
-
}, []), n2 = /* @__PURE__ */ [].concat(to, [
|
|
21270
|
+
}, []), n2 = /* @__PURE__ */ [].concat(to, [_d]).reduce(function(t, e) {
|
|
21271
21271
|
return t.concat([e, e + "-" + xi, e + "-" + Ba]);
|
|
21272
21272
|
}, []), wk = "beforeRead", yk = "read", Mk = "afterRead", xk = "beforeMain", Ck = "main", Lk = "afterMain", Nk = "beforeWrite", kk = "write", Sk = "afterWrite", Ik = [wk, yk, Mk, xk, Ck, Lk, Nk, kk, Sk];
|
|
21273
21273
|
function on(t) {
|
|
@@ -21290,7 +21290,7 @@ function Ht(t) {
|
|
|
21290
21290
|
var e = Mt(t).HTMLElement;
|
|
21291
21291
|
return t instanceof e || t instanceof HTMLElement;
|
|
21292
21292
|
}
|
|
21293
|
-
function
|
|
21293
|
+
function Gd(t) {
|
|
21294
21294
|
if (typeof ShadowRoot > "u")
|
|
21295
21295
|
return !1;
|
|
21296
21296
|
var e = Mt(t).ShadowRoot;
|
|
@@ -21380,7 +21380,7 @@ function a2(t, e) {
|
|
|
21380
21380
|
var n = e.getRootNode && e.getRootNode();
|
|
21381
21381
|
if (t.contains(e))
|
|
21382
21382
|
return !0;
|
|
21383
|
-
if (n &&
|
|
21383
|
+
if (n && Gd(n)) {
|
|
21384
21384
|
var r = e;
|
|
21385
21385
|
do {
|
|
21386
21386
|
if (r && t.isSameNode(r))
|
|
@@ -21409,7 +21409,7 @@ function kf(t) {
|
|
|
21409
21409
|
// $FlowFixMe[prop-missing]
|
|
21410
21410
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
21411
21411
|
t.parentNode || // DOM Element detected
|
|
21412
|
-
(
|
|
21412
|
+
(Gd(t) ? t.host : null) || // ShadowRoot detected
|
|
21413
21413
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
21414
21414
|
nr(t)
|
|
21415
21415
|
);
|
|
@@ -21426,7 +21426,7 @@ function Ek(t) {
|
|
|
21426
21426
|
return null;
|
|
21427
21427
|
}
|
|
21428
21428
|
var i = kf(t);
|
|
21429
|
-
for (
|
|
21429
|
+
for (Gd(i) && (i = i.host); Ht(i) && ["html", "body"].indexOf(on(i)) < 0; ) {
|
|
21430
21430
|
var a = Sn(i);
|
|
21431
21431
|
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
|
|
21432
21432
|
return i;
|
|
@@ -21632,7 +21632,7 @@ function Zd(t) {
|
|
|
21632
21632
|
function qd(t) {
|
|
21633
21633
|
return Li(nr(t)).left + Zd(t).scrollLeft;
|
|
21634
21634
|
}
|
|
21635
|
-
function
|
|
21635
|
+
function _k(t, e) {
|
|
21636
21636
|
var n = Mt(t), r = nr(t), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, f = 0;
|
|
21637
21637
|
if (i) {
|
|
21638
21638
|
a = i.width, o = i.height;
|
|
@@ -21646,7 +21646,7 @@ function Gk(t, e) {
|
|
|
21646
21646
|
y: f
|
|
21647
21647
|
};
|
|
21648
21648
|
}
|
|
21649
|
-
function
|
|
21649
|
+
function Gk(t) {
|
|
21650
21650
|
var e, n = nr(t), r = Zd(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = Nr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Nr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + qd(t), f = -r.scrollTop;
|
|
21651
21651
|
return Sn(i || n).direction === "rtl" && (s += Nr(n.clientWidth, i ? i.clientWidth : 0) - a), {
|
|
21652
21652
|
width: a,
|
|
@@ -21684,7 +21684,7 @@ function Wk(t, e) {
|
|
|
21684
21684
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
21685
21685
|
}
|
|
21686
21686
|
function Lh(t, e, n) {
|
|
21687
|
-
return e === t2 ? Sc(
|
|
21687
|
+
return e === t2 ? Sc(_k(t, n)) : Er(e) ? Wk(e, n) : Sc(Gk(nr(t)));
|
|
21688
21688
|
}
|
|
21689
21689
|
function $k(t) {
|
|
21690
21690
|
var e = ga(kf(t)), n = ["absolute", "fixed"].indexOf(Sn(t).position) >= 0, r = n && Ht(t) ? no(t) : t;
|
|
@@ -21788,7 +21788,7 @@ function qk(t, e) {
|
|
|
21788
21788
|
});
|
|
21789
21789
|
}
|
|
21790
21790
|
function Kk(t) {
|
|
21791
|
-
if (Xt(t) ===
|
|
21791
|
+
if (Xt(t) === _d)
|
|
21792
21792
|
return [];
|
|
21793
21793
|
var e = Qo(t);
|
|
21794
21794
|
return [Ch(t), e, Ch(e)];
|
|
@@ -21796,17 +21796,17 @@ function Kk(t) {
|
|
|
21796
21796
|
function Xk(t) {
|
|
21797
21797
|
var e = t.state, n = t.options, r = t.name;
|
|
21798
21798
|
if (!e.modifiersData[r]._skip) {
|
|
21799
|
-
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 = Xt(v), x = w === v, L = f || (x || !m ? [Qo(v)] : Kk(v)), y = [v].concat(L).reduce(function(R,
|
|
21800
|
-
return R.concat(Xt(
|
|
21801
|
-
placement:
|
|
21799
|
+
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 = Xt(v), x = w === v, L = f || (x || !m ? [Qo(v)] : Kk(v)), y = [v].concat(L).reduce(function(R, W) {
|
|
21800
|
+
return R.concat(Xt(W) === _d ? qk(e, {
|
|
21801
|
+
placement: W,
|
|
21802
21802
|
boundary: d,
|
|
21803
21803
|
rootBoundary: u,
|
|
21804
21804
|
padding: c,
|
|
21805
21805
|
flipVariations: m,
|
|
21806
21806
|
allowedAutoPlacements: g
|
|
21807
|
-
}) :
|
|
21807
|
+
}) : W);
|
|
21808
21808
|
}, []), N = e.rects.reference, C = e.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, I = y[0], D = 0; D < y.length; D++) {
|
|
21809
|
-
var H = y[D], J = Xt(H), P = Ni(H) === xi, F = [pt, Ut].indexOf(J) >= 0, A = F ? "width" : "height",
|
|
21809
|
+
var H = y[D], J = Xt(H), P = Ni(H) === xi, F = [pt, Ut].indexOf(J) >= 0, A = F ? "width" : "height", _ = Ha(e, {
|
|
21810
21810
|
placement: H,
|
|
21811
21811
|
boundary: d,
|
|
21812
21812
|
rootBoundary: u,
|
|
@@ -21815,7 +21815,7 @@ function Xk(t) {
|
|
|
21815
21815
|
}), q = F ? P ? Ft : mt : P ? Ut : pt;
|
|
21816
21816
|
N[A] > C[A] && (q = Qo(q));
|
|
21817
21817
|
var fe = Qo(q), Ee = [];
|
|
21818
|
-
if (a && Ee.push(
|
|
21818
|
+
if (a && Ee.push(_[J] <= 0), s && Ee.push(_[q] <= 0, _[fe] <= 0), Ee.every(function(R) {
|
|
21819
21819
|
return R;
|
|
21820
21820
|
})) {
|
|
21821
21821
|
I = H, S = !1;
|
|
@@ -21824,17 +21824,17 @@ function Xk(t) {
|
|
|
21824
21824
|
k.set(H, Ee);
|
|
21825
21825
|
}
|
|
21826
21826
|
if (S)
|
|
21827
|
-
for (var
|
|
21827
|
+
for (var G = m ? 3 : 1, be = function(W) {
|
|
21828
21828
|
var se = y.find(function(tt) {
|
|
21829
21829
|
var Nt = k.get(tt);
|
|
21830
21830
|
if (Nt)
|
|
21831
|
-
return Nt.slice(0,
|
|
21831
|
+
return Nt.slice(0, W).every(function(ln) {
|
|
21832
21832
|
return ln;
|
|
21833
21833
|
});
|
|
21834
21834
|
});
|
|
21835
21835
|
if (se)
|
|
21836
21836
|
return I = se, "break";
|
|
21837
|
-
}, he =
|
|
21837
|
+
}, he = G; he > 0; he--) {
|
|
21838
21838
|
var He = be(he);
|
|
21839
21839
|
if (He === "break") break;
|
|
21840
21840
|
}
|
|
@@ -21953,10 +21953,10 @@ function l9(t) {
|
|
|
21953
21953
|
};
|
|
21954
21954
|
if (C) {
|
|
21955
21955
|
if (a) {
|
|
21956
|
-
var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft,
|
|
21956
|
+
var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft, _ = y === "y" ? "height" : "width", q = C[y], fe = q + v[F], Ee = q - v[A], G = h ? -S[_] / 2 : 0, be = x === xi ? k[_] : S[_], he = x === xi ? -S[_] : -k[_], He = e.elements.arrow, R = h && He ? Wd(He) : {
|
|
21957
21957
|
width: 0,
|
|
21958
21958
|
height: 0
|
|
21959
|
-
},
|
|
21959
|
+
}, W = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o2(), se = W[F], tt = W[A], Nt = ma(0, k[_], R[_]), ln = L ? k[_] / 2 - G - Nt - se - D.mainAxis : be - Nt - se - D.mainAxis, ze = L ? -k[_] / 2 + G + Nt + tt + D.mainAxis : he + Nt + tt + D.mainAxis, Yt = e.elements.arrow && no(e.elements.arrow), ar = Yt ? y === "y" ? Yt.clientTop || 0 : Yt.clientLeft || 0 : 0, or = (P = H == null ? void 0 : H[y]) != null ? P : 0, fo = q + ln - or - ar, lo = q + ze - or, Pi = ma(h ? Ys(fe, fo) : fe, q, h ? Nr(Ee, lo) : Ee);
|
|
21960
21960
|
C[y] = Pi, J[y] = Pi - q;
|
|
21961
21961
|
}
|
|
21962
21962
|
if (s) {
|
|
@@ -22442,7 +22442,7 @@ function w2(t) {
|
|
|
22442
22442
|
}, {});
|
|
22443
22443
|
return Object.assign({}, t, n);
|
|
22444
22444
|
}
|
|
22445
|
-
function
|
|
22445
|
+
function _9(t, e) {
|
|
22446
22446
|
var n = e ? Object.keys(w2(Object.assign({}, bt, {
|
|
22447
22447
|
plugins: e
|
|
22448
22448
|
}))) : Q9, r = n.reduce(function(i, a) {
|
|
@@ -22464,7 +22464,7 @@ function G9(t, e) {
|
|
|
22464
22464
|
function Ph(t, e) {
|
|
22465
22465
|
var n = Object.assign({}, e, {
|
|
22466
22466
|
content: m2(e.content, [t])
|
|
22467
|
-
}, e.ignoreAttributes ? {} :
|
|
22467
|
+
}, e.ignoreAttributes ? {} : _9(t, e.plugins));
|
|
22468
22468
|
return n.aria = Object.assign({}, bt.aria, n.aria), n.aria = {
|
|
22469
22469
|
expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
|
|
22470
22470
|
content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
|
|
@@ -22483,11 +22483,11 @@ function y2(t, e) {
|
|
|
22483
22483
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
22484
22484
|
});
|
|
22485
22485
|
}
|
|
22486
|
-
var
|
|
22486
|
+
var G9 = function() {
|
|
22487
22487
|
return "innerHTML";
|
|
22488
22488
|
};
|
|
22489
22489
|
function Tc(t, e) {
|
|
22490
|
-
t[
|
|
22490
|
+
t[G9()] = e;
|
|
22491
22491
|
}
|
|
22492
22492
|
function Rh(t) {
|
|
22493
22493
|
var e = ba();
|
|
@@ -22567,7 +22567,7 @@ function $9(t, e) {
|
|
|
22567
22567
|
var S = x.map(function(j) {
|
|
22568
22568
|
return j.fn(y);
|
|
22569
22569
|
}), I = t.hasAttribute("aria-expanded");
|
|
22570
|
-
return Yt(),
|
|
22570
|
+
return Yt(), G(), q(), fe("onCreate", [y]), n.showOnCreate && Bi(), C.addEventListener("mouseenter", function() {
|
|
22571
22571
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
22572
22572
|
}), C.addEventListener("mouseleave", function() {
|
|
22573
22573
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", m);
|
|
@@ -22593,16 +22593,16 @@ function $9(t, e) {
|
|
|
22593
22593
|
function A() {
|
|
22594
22594
|
return jc(C);
|
|
22595
22595
|
}
|
|
22596
|
-
function
|
|
22596
|
+
function _(j) {
|
|
22597
22597
|
return y.state.isMounted && !y.state.isVisible || Kt.isTouch || d && d.type === "focus" ? 0 : jl(y.props.delay, j ? 0 : 1, bt.delay);
|
|
22598
22598
|
}
|
|
22599
22599
|
function q(j) {
|
|
22600
22600
|
j === void 0 && (j = !1), C.style.pointerEvents = y.props.interactive && !j ? "" : "none", C.style.zIndex = "" + y.props.zIndex;
|
|
22601
22601
|
}
|
|
22602
|
-
function fe(j, Y,
|
|
22603
|
-
if (
|
|
22602
|
+
function fe(j, Y, $) {
|
|
22603
|
+
if ($ === void 0 && ($ = !0), S.forEach(function(ae) {
|
|
22604
22604
|
ae[j] && ae[j].apply(ae, Y);
|
|
22605
|
-
}),
|
|
22605
|
+
}), $) {
|
|
22606
22606
|
var le;
|
|
22607
22607
|
(le = y.props)[j].apply(le, Y);
|
|
22608
22608
|
}
|
|
@@ -22610,19 +22610,19 @@ function $9(t, e) {
|
|
|
22610
22610
|
function Ee() {
|
|
22611
22611
|
var j = y.props.aria;
|
|
22612
22612
|
if (j.content) {
|
|
22613
|
-
var Y = "aria-" + j.content,
|
|
22613
|
+
var Y = "aria-" + j.content, $ = C.id, le = ni(y.props.triggerTarget || t);
|
|
22614
22614
|
le.forEach(function(ae) {
|
|
22615
22615
|
var nt = ae.getAttribute(Y);
|
|
22616
22616
|
if (y.state.isVisible)
|
|
22617
|
-
ae.setAttribute(Y, nt ? nt + " " +
|
|
22617
|
+
ae.setAttribute(Y, nt ? nt + " " + $ : $);
|
|
22618
22618
|
else {
|
|
22619
|
-
var kt = nt && nt.replace(
|
|
22619
|
+
var kt = nt && nt.replace($, "").trim();
|
|
22620
22620
|
kt ? ae.setAttribute(Y, kt) : ae.removeAttribute(Y);
|
|
22621
22621
|
}
|
|
22622
22622
|
});
|
|
22623
22623
|
}
|
|
22624
22624
|
}
|
|
22625
|
-
function
|
|
22625
|
+
function G() {
|
|
22626
22626
|
if (!(I || !y.props.aria.expanded)) {
|
|
22627
22627
|
var j = ni(y.props.triggerTarget || t);
|
|
22628
22628
|
j.forEach(function(Y) {
|
|
@@ -22639,8 +22639,8 @@ function $9(t, e) {
|
|
|
22639
22639
|
if (!(Kt.isTouch && (f || j.type === "mousedown"))) {
|
|
22640
22640
|
var Y = j.composedPath && j.composedPath()[0] || j.target;
|
|
22641
22641
|
if (!(y.props.interactive && Ah(C, Y))) {
|
|
22642
|
-
if (ni(y.props.triggerTarget || t).some(function(
|
|
22643
|
-
return Ah(
|
|
22642
|
+
if (ni(y.props.triggerTarget || t).some(function($) {
|
|
22643
|
+
return Ah($, Y);
|
|
22644
22644
|
})) {
|
|
22645
22645
|
if (Kt.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
22646
22646
|
return;
|
|
@@ -22658,7 +22658,7 @@ function $9(t, e) {
|
|
|
22658
22658
|
function R() {
|
|
22659
22659
|
f = !1;
|
|
22660
22660
|
}
|
|
22661
|
-
function
|
|
22661
|
+
function W() {
|
|
22662
22662
|
var j = F();
|
|
22663
22663
|
j.addEventListener("mousedown", he, !0), j.addEventListener("touchend", he, cr), j.addEventListener("touchstart", R, cr), j.addEventListener("touchmove", He, cr);
|
|
22664
22664
|
}
|
|
@@ -22675,23 +22675,23 @@ function $9(t, e) {
|
|
|
22675
22675
|
ln(j, Y);
|
|
22676
22676
|
}
|
|
22677
22677
|
function ln(j, Y) {
|
|
22678
|
-
var
|
|
22678
|
+
var $ = A().box;
|
|
22679
22679
|
function le(ae) {
|
|
22680
|
-
ae.target ===
|
|
22680
|
+
ae.target === $ && (El($, "remove", le), Y());
|
|
22681
22681
|
}
|
|
22682
22682
|
if (j === 0)
|
|
22683
22683
|
return Y();
|
|
22684
|
-
El(
|
|
22684
|
+
El($, "remove", u), El($, "add", le), u = le;
|
|
22685
22685
|
}
|
|
22686
|
-
function ze(j, Y,
|
|
22687
|
-
|
|
22686
|
+
function ze(j, Y, $) {
|
|
22687
|
+
$ === void 0 && ($ = !1);
|
|
22688
22688
|
var le = ni(y.props.triggerTarget || t);
|
|
22689
22689
|
le.forEach(function(ae) {
|
|
22690
|
-
ae.addEventListener(j, Y,
|
|
22690
|
+
ae.addEventListener(j, Y, $), h.push({
|
|
22691
22691
|
node: ae,
|
|
22692
22692
|
eventType: j,
|
|
22693
22693
|
handler: Y,
|
|
22694
|
-
options:
|
|
22694
|
+
options: $
|
|
22695
22695
|
});
|
|
22696
22696
|
});
|
|
22697
22697
|
}
|
|
@@ -22717,22 +22717,22 @@ function $9(t, e) {
|
|
|
22717
22717
|
}
|
|
22718
22718
|
function ar() {
|
|
22719
22719
|
h.forEach(function(j) {
|
|
22720
|
-
var Y = j.node,
|
|
22721
|
-
Y.removeEventListener(
|
|
22720
|
+
var Y = j.node, $ = j.eventType, le = j.handler, ae = j.options;
|
|
22721
|
+
Y.removeEventListener($, le, ae);
|
|
22722
22722
|
}), h = [];
|
|
22723
22723
|
}
|
|
22724
22724
|
function or(j) {
|
|
22725
|
-
var Y,
|
|
22725
|
+
var Y, $ = !1;
|
|
22726
22726
|
if (!(!y.state.isEnabled || Ri(j) || s)) {
|
|
22727
22727
|
var le = ((Y = d) == null ? void 0 : Y.type) === "focus";
|
|
22728
|
-
d = j, g = j.currentTarget,
|
|
22728
|
+
d = j, g = j.currentTarget, G(), !y.state.isVisible && j9(j) && zo.forEach(function(ae) {
|
|
22729
22729
|
return ae(j);
|
|
22730
|
-
}), j.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ?
|
|
22730
|
+
}), j.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? $ = !0 : Bi(j), j.type === "click" && (o = !$), $ && !le && sr(j);
|
|
22731
22731
|
}
|
|
22732
22732
|
}
|
|
22733
22733
|
function fo(j) {
|
|
22734
|
-
var Y = j.target,
|
|
22735
|
-
if (!(j.type === "mousemove" &&
|
|
22734
|
+
var Y = j.target, $ = P().contains(Y) || C.contains(Y);
|
|
22735
|
+
if (!(j.type === "mousemove" && $)) {
|
|
22736
22736
|
var le = Dn().concat(C).map(function(ae) {
|
|
22737
22737
|
var nt, kt = ae._tippy, Vr = (nt = kt.popperInstance) == null ? void 0 : nt.state;
|
|
22738
22738
|
return Vr ? {
|
|
@@ -22762,7 +22762,7 @@ function $9(t, e) {
|
|
|
22762
22762
|
}
|
|
22763
22763
|
function co() {
|
|
22764
22764
|
uo();
|
|
22765
|
-
var j = y.props, Y = j.popperOptions,
|
|
22765
|
+
var j = y.props, Y = j.popperOptions, $ = j.placement, le = j.offset, ae = j.getReferenceClientRect, nt = j.moveTransition, kt = J() ? jc(C).arrow : null, Vr = ae ? {
|
|
22766
22766
|
getBoundingClientRect: ae,
|
|
22767
22767
|
contextElement: ae.contextElement || P()
|
|
22768
22768
|
} : t, Su = {
|
|
@@ -22771,12 +22771,12 @@ function $9(t, e) {
|
|
|
22771
22771
|
phase: "beforeWrite",
|
|
22772
22772
|
requires: ["computeStyles"],
|
|
22773
22773
|
fn: function(bo) {
|
|
22774
|
-
var
|
|
22774
|
+
var _r = bo.state;
|
|
22775
22775
|
if (J()) {
|
|
22776
22776
|
var R4 = A(), tl = R4.box;
|
|
22777
22777
|
["placement", "reference-hidden", "escaped"].forEach(function(vo) {
|
|
22778
|
-
vo === "placement" ? tl.setAttribute("data-placement",
|
|
22779
|
-
}),
|
|
22778
|
+
vo === "placement" ? tl.setAttribute("data-placement", _r.placement) : _r.attributes.popper["data-popper-" + vo] ? tl.setAttribute("data-" + vo, "") : tl.removeAttribute("data-" + vo);
|
|
22779
|
+
}), _r.attributes.popper = {};
|
|
22780
22780
|
}
|
|
22781
22781
|
}
|
|
22782
22782
|
}, fr = [{
|
|
@@ -22812,7 +22812,7 @@ function $9(t, e) {
|
|
|
22812
22812
|
padding: 3
|
|
22813
22813
|
}
|
|
22814
22814
|
}), fr.push.apply(fr, (Y == null ? void 0 : Y.modifiers) || []), y.popperInstance = M9(Vr, C, Object.assign({}, Y, {
|
|
22815
|
-
placement:
|
|
22815
|
+
placement: $,
|
|
22816
22816
|
onFirstUpdate: p,
|
|
22817
22817
|
modifiers: fr
|
|
22818
22818
|
}));
|
|
@@ -22821,8 +22821,8 @@ function $9(t, e) {
|
|
|
22821
22821
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
22822
22822
|
}
|
|
22823
22823
|
function cn() {
|
|
22824
|
-
var j = y.props.appendTo, Y,
|
|
22825
|
-
y.props.interactive && j === p2 || j === "parent" ? Y =
|
|
22824
|
+
var j = y.props.appendTo, Y, $ = P();
|
|
22825
|
+
y.props.interactive && j === p2 || j === "parent" ? Y = $.parentNode : Y = m2(j, [$]), Y.contains(C) || Y.appendChild(C), y.state.isMounted = !0, co(), process.env.NODE_ENV !== "production" && wn(y.props.interactive && j === bt.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.", `
|
|
22826
22826
|
|
|
22827
22827
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
22828
22828
|
|
|
@@ -22834,8 +22834,8 @@ function $9(t, e) {
|
|
|
22834
22834
|
return Qs(C.querySelectorAll("[data-tippy-root]"));
|
|
22835
22835
|
}
|
|
22836
22836
|
function Bi(j) {
|
|
22837
|
-
y.clearDelayTimeouts(), j && fe("onTrigger", [y, j]),
|
|
22838
|
-
var Y =
|
|
22837
|
+
y.clearDelayTimeouts(), j && fe("onTrigger", [y, j]), W();
|
|
22838
|
+
var Y = _(!0), $ = D(), le = $[0], ae = $[1];
|
|
22839
22839
|
Kt.isTouch && le === "hold" && ae && (Y = ae), Y ? r = setTimeout(function() {
|
|
22840
22840
|
y.show();
|
|
22841
22841
|
}, Y) : y.show();
|
|
@@ -22846,7 +22846,7 @@ function $9(t, e) {
|
|
|
22846
22846
|
return;
|
|
22847
22847
|
}
|
|
22848
22848
|
if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(j.type) >= 0 && o)) {
|
|
22849
|
-
var Y =
|
|
22849
|
+
var Y = _(!1);
|
|
22850
22850
|
Y ? i = setTimeout(function() {
|
|
22851
22851
|
y.state.isVisible && y.hide();
|
|
22852
22852
|
}, Y) : a = requestAnimationFrame(function() {
|
|
@@ -22866,12 +22866,12 @@ function $9(t, e) {
|
|
|
22866
22866
|
function mo(j) {
|
|
22867
22867
|
if (process.env.NODE_ENV !== "production" && wn(y.state.isDestroyed, $r("setProps")), !y.state.isDestroyed) {
|
|
22868
22868
|
fe("onBeforeUpdate", [y, j]), ar();
|
|
22869
|
-
var Y = y.props,
|
|
22869
|
+
var Y = y.props, $ = Ph(t, Object.assign({}, Y, Dh(j), {
|
|
22870
22870
|
ignoreAttributes: !0
|
|
22871
22871
|
}));
|
|
22872
|
-
y.props =
|
|
22872
|
+
y.props = $, Yt(), Y.interactiveDebounce !== $.interactiveDebounce && (be(), m = Th(fo, $.interactiveDebounce)), Y.triggerTarget && !$.triggerTarget ? ni(Y.triggerTarget).forEach(function(le) {
|
|
22873
22873
|
le.removeAttribute("aria-expanded");
|
|
22874
|
-
}) :
|
|
22874
|
+
}) : $.triggerTarget && t.removeAttribute("aria-expanded"), G(), q(), k && k(Y, $), y.popperInstance && (co(), Dn().forEach(function(le) {
|
|
22875
22875
|
requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
|
|
22876
22876
|
})), fe("onAfterUpdate", [y, j]);
|
|
22877
22877
|
}
|
|
@@ -22883,9 +22883,9 @@ function $9(t, e) {
|
|
|
22883
22883
|
}
|
|
22884
22884
|
function E4() {
|
|
22885
22885
|
process.env.NODE_ENV !== "production" && wn(y.state.isDestroyed, $r("show"));
|
|
22886
|
-
var j = y.state.isVisible, Y = y.state.isDestroyed,
|
|
22887
|
-
if (!(j || Y ||
|
|
22888
|
-
if (y.state.isVisible = !0, J() && (C.style.visibility = "visible"), q(),
|
|
22886
|
+
var j = y.state.isVisible, Y = y.state.isDestroyed, $ = !y.state.isEnabled, le = Kt.isTouch && !y.props.touch, ae = jl(y.props.duration, 0, bt.duration);
|
|
22887
|
+
if (!(j || Y || $ || le) && !P().hasAttribute("disabled") && (fe("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
22888
|
+
if (y.state.isVisible = !0, J() && (C.style.visibility = "visible"), q(), W(), y.state.isMounted || (C.style.transition = "none"), J()) {
|
|
22889
22889
|
var nt = A(), kt = nt.box, Vr = nt.content;
|
|
22890
22890
|
Dl([kt, Vr], 0);
|
|
22891
22891
|
}
|
|
@@ -22893,10 +22893,10 @@ function $9(t, e) {
|
|
|
22893
22893
|
var fr;
|
|
22894
22894
|
if (!(!y.state.isVisible || c)) {
|
|
22895
22895
|
if (c = !0, C.offsetHeight, C.style.transition = y.props.moveTransition, J() && y.props.animation) {
|
|
22896
|
-
var el = A(), bo = el.box,
|
|
22897
|
-
Dl([bo,
|
|
22896
|
+
var el = A(), bo = el.box, _r = el.content;
|
|
22897
|
+
Dl([bo, _r], ae), Eh([bo, _r], "visible");
|
|
22898
22898
|
}
|
|
22899
|
-
Ee(),
|
|
22899
|
+
Ee(), G(), jh(Al, y), (fr = y.popperInstance) == null || fr.forceUpdate(), fe("onMount", [y]), y.props.animation && J() && Nt(ae, function() {
|
|
22900
22900
|
y.state.isShown = !0, fe("onShown", [y]);
|
|
22901
22901
|
});
|
|
22902
22902
|
}
|
|
@@ -22905,13 +22905,13 @@ function $9(t, e) {
|
|
|
22905
22905
|
}
|
|
22906
22906
|
function A4() {
|
|
22907
22907
|
process.env.NODE_ENV !== "production" && wn(y.state.isDestroyed, $r("hide"));
|
|
22908
|
-
var j = !y.state.isVisible, Y = y.state.isDestroyed,
|
|
22909
|
-
if (!(j || Y ||
|
|
22908
|
+
var j = !y.state.isVisible, Y = y.state.isDestroyed, $ = !y.state.isEnabled, le = jl(y.props.duration, 1, bt.duration);
|
|
22909
|
+
if (!(j || Y || $) && (fe("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
22910
22910
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (C.style.visibility = "hidden"), be(), se(), q(!0), J()) {
|
|
22911
22911
|
var ae = A(), nt = ae.box, kt = ae.content;
|
|
22912
22912
|
y.props.animation && (Dl([nt, kt], le), Eh([nt, kt], "hidden"));
|
|
22913
22913
|
}
|
|
22914
|
-
Ee(),
|
|
22914
|
+
Ee(), G(), y.props.animation ? J() && tt(le, y.unmount) : y.unmount();
|
|
22915
22915
|
}
|
|
22916
22916
|
}
|
|
22917
22917
|
function z4(j) {
|
|
@@ -23325,7 +23325,7 @@ function Jt() {
|
|
|
23325
23325
|
return "." + r;
|
|
23326
23326
|
}).join("");
|
|
23327
23327
|
}
|
|
23328
|
-
var xe = /* @__PURE__ */ rS("epr", null),
|
|
23328
|
+
var xe = /* @__PURE__ */ rS("epr", null), _o = {
|
|
23329
23329
|
display: "none",
|
|
23330
23330
|
opacity: "0",
|
|
23331
23331
|
pointerEvents: "none",
|
|
@@ -23334,7 +23334,7 @@ var xe = /* @__PURE__ */ rS("epr", null), Go = {
|
|
|
23334
23334
|
}, nu = /* @__PURE__ */ xe.create({
|
|
23335
23335
|
hidden: /* @__PURE__ */ ge({
|
|
23336
23336
|
".": ie.hidden
|
|
23337
|
-
},
|
|
23337
|
+
}, _o)
|
|
23338
23338
|
}), lS = /* @__PURE__ */ qc(function() {
|
|
23339
23339
|
return O("style", {
|
|
23340
23340
|
suppressHydrationWarning: !0,
|
|
@@ -23353,10 +23353,10 @@ var xe = /* @__PURE__ */ rS("epr", null), Go = {
|
|
|
23353
23353
|
},
|
|
23354
23354
|
hiddenOnSearch: /* @__PURE__ */ ge({
|
|
23355
23355
|
".": ie.hiddenOnSearch
|
|
23356
|
-
},
|
|
23356
|
+
}, _o)
|
|
23357
23357
|
},
|
|
23358
23358
|
":has(input:placeholder-shown)": {
|
|
23359
|
-
visibleOnSearchOnly:
|
|
23359
|
+
visibleOnSearchOnly: _o
|
|
23360
23360
|
}
|
|
23361
23361
|
},
|
|
23362
23362
|
hiddenOnReactions: {
|
|
@@ -23384,7 +23384,7 @@ var xe = /* @__PURE__ */ rS("epr", null), Go = {
|
|
|
23384
23384
|
},
|
|
23385
23385
|
visibleOnSearchOnly: /* @__PURE__ */ ge({
|
|
23386
23386
|
".": "epr-visible-on-search-only"
|
|
23387
|
-
},
|
|
23387
|
+
}, _o)
|
|
23388
23388
|
}
|
|
23389
23389
|
});
|
|
23390
23390
|
function Zn(t, e) {
|
|
@@ -40459,7 +40459,7 @@ var NS = [], kS = [
|
|
|
40459
40459
|
u: "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
|
|
40460
40460
|
a: "5.0"
|
|
40461
40461
|
}
|
|
40462
|
-
],
|
|
40462
|
+
], _s = {
|
|
40463
40463
|
custom: NS,
|
|
40464
40464
|
smileys_people: kS,
|
|
40465
40465
|
animals_nature: SS,
|
|
@@ -40469,10 +40469,10 @@ var NS = [], kS = [
|
|
|
40469
40469
|
objects: DS,
|
|
40470
40470
|
symbols: ES,
|
|
40471
40471
|
flags: AS
|
|
40472
|
-
},
|
|
40472
|
+
}, Gs = [Vt.NEUTRAL, Vt.LIGHT, Vt.MEDIUM_LIGHT, Vt.MEDIUM, Vt.MEDIUM_DARK, Vt.DARK], zS = /* @__PURE__ */ Object.entries(Vt).reduce(function(t, e) {
|
|
40473
40473
|
var n = e[0], r = e[1];
|
|
40474
40474
|
return t[r] = n, t;
|
|
40475
|
-
}, {}), OS = /* @__PURE__ */
|
|
40475
|
+
}, {}), OS = /* @__PURE__ */ Gs.reduce(function(t, e) {
|
|
40476
40476
|
var n;
|
|
40477
40477
|
return Object.assign(t, (n = {}, n[e] = e, n));
|
|
40478
40478
|
}, {}), Ot;
|
|
@@ -40542,10 +40542,10 @@ function V2() {
|
|
|
40542
40542
|
);
|
|
40543
40543
|
return function(a) {
|
|
40544
40544
|
var o;
|
|
40545
|
-
return a === te.SUGGESTED ? r : (o =
|
|
40545
|
+
return a === te.SUGGESTED ? r : (o = _s[a]) != null ? o : [];
|
|
40546
40546
|
};
|
|
40547
40547
|
}
|
|
40548
|
-
function
|
|
40548
|
+
function _2(t, e) {
|
|
40549
40549
|
return "" + LS(e) + t + ".png";
|
|
40550
40550
|
}
|
|
40551
40551
|
function oo(t) {
|
|
@@ -40568,11 +40568,11 @@ function Si(t) {
|
|
|
40568
40568
|
return di[e];
|
|
40569
40569
|
}
|
|
40570
40570
|
}
|
|
40571
|
-
var Ef = /* @__PURE__ */ Object.values(
|
|
40571
|
+
var Ef = /* @__PURE__ */ Object.values(_s).flat();
|
|
40572
40572
|
function HS(t) {
|
|
40573
|
-
|
|
40573
|
+
_s[te.CUSTOM].length = 0, t.forEach(function(e) {
|
|
40574
40574
|
var n = US(e);
|
|
40575
|
-
|
|
40575
|
+
_s[te.CUSTOM].push(n), !di[n[Ot.unified]] && (Ef.push(n), di[n[Ot.unified]] = n, O2(n));
|
|
40576
40576
|
});
|
|
40577
40577
|
}
|
|
40578
40578
|
function US(t) {
|
|
@@ -40591,9 +40591,9 @@ setTimeout(function() {
|
|
|
40591
40591
|
});
|
|
40592
40592
|
function FS(t) {
|
|
40593
40593
|
var e = t.split("-"), n = e[1];
|
|
40594
|
-
return
|
|
40594
|
+
return Gs.includes(n) ? n : null;
|
|
40595
40595
|
}
|
|
40596
|
-
var JS = ["2640-fe0f", "2642-fe0f", "2695-fe0f"], Ws = "Search",
|
|
40596
|
+
var JS = ["2640-fe0f", "2642-fe0f", "2695-fe0f"], Ws = "Search", G2 = "Clear", YS = "No results found", W2 = " found. Use up and down arrow keys to navigate.", QS = "1 result" + W2, VS = "%n results" + W2;
|
|
40597
40597
|
function Yh(t) {
|
|
40598
40598
|
var e, n;
|
|
40599
40599
|
t === void 0 && (t = {});
|
|
@@ -40619,14 +40619,14 @@ function $2() {
|
|
|
40619
40619
|
defaultSkinTone: Vt.NEUTRAL,
|
|
40620
40620
|
emojiStyle: vt.APPLE,
|
|
40621
40621
|
emojiVersion: null,
|
|
40622
|
-
getEmojiUrl:
|
|
40622
|
+
getEmojiUrl: _2,
|
|
40623
40623
|
height: 450,
|
|
40624
40624
|
lazyLoadEmojis: !1,
|
|
40625
|
-
previewConfig: ge({},
|
|
40625
|
+
previewConfig: ge({}, _S),
|
|
40626
40626
|
searchDisabled: !1,
|
|
40627
40627
|
searchPlaceHolder: Ws,
|
|
40628
40628
|
searchPlaceholder: Ws,
|
|
40629
|
-
searchClearButtonLabel:
|
|
40629
|
+
searchClearButtonLabel: G2,
|
|
40630
40630
|
skinTonePickerLocation: ki.SEARCH,
|
|
40631
40631
|
skinTonesDisabled: !1,
|
|
40632
40632
|
style: {},
|
|
@@ -40641,13 +40641,13 @@ function $2() {
|
|
|
40641
40641
|
hiddenEmojis: []
|
|
40642
40642
|
};
|
|
40643
40643
|
}
|
|
40644
|
-
var
|
|
40644
|
+
var _S = {
|
|
40645
40645
|
defaultEmoji: "1f60a",
|
|
40646
40646
|
defaultCaption: "What's your mood?",
|
|
40647
40647
|
showPreview: !0
|
|
40648
|
-
},
|
|
40648
|
+
}, GS = ["children"], Z2 = /* @__PURE__ */ Ti(/* @__PURE__ */ $2());
|
|
40649
40649
|
function WS(t) {
|
|
40650
|
-
var e = t.children, n = A2(t,
|
|
40650
|
+
var e = t.children, n = A2(t, GS), r = $S(n);
|
|
40651
40651
|
return O(Z2.Provider, {
|
|
40652
40652
|
value: r
|
|
40653
40653
|
}, e);
|
|
@@ -40694,7 +40694,7 @@ function qS() {
|
|
|
40694
40694
|
}
|
|
40695
40695
|
function KS() {
|
|
40696
40696
|
var t = Ce(), e = t.searchClearButtonLabel;
|
|
40697
|
-
return e ??
|
|
40697
|
+
return e ?? G2;
|
|
40698
40698
|
}
|
|
40699
40699
|
function XS() {
|
|
40700
40700
|
var t = Ce(), e = t.defaultSkinTone;
|
|
@@ -41256,12 +41256,12 @@ function JI() {
|
|
|
41256
41256
|
case Ie.ArrowLeft:
|
|
41257
41257
|
if (p.preventDefault(), !a)
|
|
41258
41258
|
return e();
|
|
41259
|
-
|
|
41259
|
+
_h(e);
|
|
41260
41260
|
break;
|
|
41261
41261
|
case Ie.ArrowRight:
|
|
41262
41262
|
if (p.preventDefault(), !a)
|
|
41263
41263
|
return e();
|
|
41264
|
-
|
|
41264
|
+
Gh();
|
|
41265
41265
|
break;
|
|
41266
41266
|
case Ie.ArrowDown:
|
|
41267
41267
|
p.preventDefault(), a && o(!1), r();
|
|
@@ -41275,12 +41275,12 @@ function JI() {
|
|
|
41275
41275
|
case Ie.ArrowUp:
|
|
41276
41276
|
if (p.preventDefault(), !a)
|
|
41277
41277
|
return e();
|
|
41278
|
-
|
|
41278
|
+
_h(e);
|
|
41279
41279
|
break;
|
|
41280
41280
|
case Ie.ArrowDown:
|
|
41281
41281
|
if (p.preventDefault(), !a)
|
|
41282
41282
|
return e();
|
|
41283
|
-
|
|
41283
|
+
Gh();
|
|
41284
41284
|
break;
|
|
41285
41285
|
default:
|
|
41286
41286
|
c(p);
|
|
@@ -41385,11 +41385,11 @@ function VI() {
|
|
|
41385
41385
|
return n ? t() : e();
|
|
41386
41386
|
}, [t, n, e]);
|
|
41387
41387
|
}
|
|
41388
|
-
function
|
|
41388
|
+
function _h(t) {
|
|
41389
41389
|
var e = Va();
|
|
41390
41390
|
e && (eT(e) || t(), ob(e));
|
|
41391
41391
|
}
|
|
41392
|
-
function
|
|
41392
|
+
function Gh() {
|
|
41393
41393
|
var t = Va();
|
|
41394
41394
|
t && ab(t);
|
|
41395
41395
|
}
|
|
@@ -41397,14 +41397,14 @@ function uu() {
|
|
|
41397
41397
|
var t = DI(), e = Qr(), n = rb(), r = Yr();
|
|
41398
41398
|
return function(a) {
|
|
41399
41399
|
var o = a.key;
|
|
41400
|
-
|
|
41400
|
+
_I(a) || n || o.match(/(^[a-zA-Z0-9]$){1}/) && (a.preventDefault(), r(), e(), t(o));
|
|
41401
41401
|
};
|
|
41402
41402
|
}
|
|
41403
|
-
function
|
|
41403
|
+
function _I(t) {
|
|
41404
41404
|
var e = t.metaKey, n = t.ctrlKey, r = t.altKey;
|
|
41405
41405
|
return e || n || r;
|
|
41406
41406
|
}
|
|
41407
|
-
function
|
|
41407
|
+
function GI(t, e, n, r, i, a, o, s) {
|
|
41408
41408
|
if (t && e !== vt.NATIVE) {
|
|
41409
41409
|
var f = Qe(t);
|
|
41410
41410
|
Oc.has(f) || !a || !o || setTimeout(function() {
|
|
@@ -41455,7 +41455,7 @@ function KI(t) {
|
|
|
41455
41455
|
HI(), $I();
|
|
41456
41456
|
var d = c || {}, u = d.width, p = d.height, h = A2(d, ZI);
|
|
41457
41457
|
return O("aside", {
|
|
41458
|
-
className: re(
|
|
41458
|
+
className: re(_i.main, _i.baseVariables, a === Ya.DARK && _i.darkTheme, a === Ya.AUTO && _i.autoThemeDark, (e = {}, e[ie.searchActive] = o, e), i && _i.reactionsMenu, f),
|
|
41459
41459
|
ref: s,
|
|
41460
41460
|
style: ge({}, h, !i && {
|
|
41461
41461
|
height: p,
|
|
@@ -41481,7 +41481,7 @@ var Wh = {
|
|
|
41481
41481
|
"--epr-skin-tone-picker-menu-color": "var(--epr-dark-skin-tone-picker-menu-color)",
|
|
41482
41482
|
"--epr-skin-tone-outer-border-color": "var(--epr-dark-skin-tone-outer-border-color)",
|
|
41483
41483
|
"--epr-skin-tone-inner-border-color": "var(--epr-dark-skin-tone-inner-border-color)"
|
|
41484
|
-
},
|
|
41484
|
+
}, _i = /* @__PURE__ */ xe.create({
|
|
41485
41485
|
main: {
|
|
41486
41486
|
".": ["epr-main", ie.emojiPicker],
|
|
41487
41487
|
position: "relative",
|
|
@@ -41634,10 +41634,10 @@ function xb(t) {
|
|
|
41634
41634
|
}
|
|
41635
41635
|
return Pc;
|
|
41636
41636
|
}
|
|
41637
|
-
var
|
|
41637
|
+
var _a = "button" + /* @__PURE__ */ Jt(ie.emoji), tT = /* @__PURE__ */ [_a, Jt(ie.visible), ":not(" + Jt(ie.hidden) + ")"].join("");
|
|
41638
41638
|
function Wt(t) {
|
|
41639
41639
|
var e;
|
|
41640
|
-
return (e = t == null ? void 0 : t.closest(
|
|
41640
|
+
return (e = t == null ? void 0 : t.closest(_a)) != null ? e : null;
|
|
41641
41641
|
}
|
|
41642
41642
|
function hu(t) {
|
|
41643
41643
|
var e = Sb(t), n = mu(t);
|
|
@@ -41648,7 +41648,7 @@ function hu(t) {
|
|
|
41648
41648
|
}
|
|
41649
41649
|
function nT(t) {
|
|
41650
41650
|
var e;
|
|
41651
|
-
return !!(t != null && t.matches(
|
|
41651
|
+
return !!(t != null && t.matches(_a) || !(t == null || (e = t.parentElement) == null) && e.matches(_a));
|
|
41652
41652
|
}
|
|
41653
41653
|
function $h(t) {
|
|
41654
41654
|
var e;
|
|
@@ -41987,7 +41987,7 @@ var pT = /* @__PURE__ */ xe.create({
|
|
|
41987
41987
|
}
|
|
41988
41988
|
});
|
|
41989
41989
|
function Rc(t) {
|
|
41990
|
-
var e = t.emoji, n = t.unified, r = t.emojiStyle, i = t.size, a = t.lazyLoad, o = t.getEmojiUrl, s = o === void 0 ?
|
|
41990
|
+
var e = t.emoji, n = t.unified, r = t.emojiStyle, i = t.size, a = t.lazyLoad, o = t.getEmojiUrl, s = o === void 0 ? _2 : o, f = t.className, c = R2(), d = c[1], u = {};
|
|
41991
41991
|
i && (u.width = u.height = u.fontSize = i + "px");
|
|
41992
41992
|
var p = e || Si(n);
|
|
41993
41993
|
if (!p)
|
|
@@ -42182,7 +42182,7 @@ function CT(t) {
|
|
|
42182
42182
|
var e = lb(), n = Ur(), r = n[0], i = Ai(), a = Ae(), o = au(), s = o[0], f = B2(), c = f[0], d = ne(), u = d[0], p = d[1], h = Ye(function() {
|
|
42183
42183
|
var m = e.current;
|
|
42184
42184
|
if (m) {
|
|
42185
|
-
var g = m.querySelector(
|
|
42185
|
+
var g = m.querySelector(_a), v = g == null ? void 0 : g.clientHeight;
|
|
42186
42186
|
v && (a.current = v);
|
|
42187
42187
|
var w = c || v || a.current || xT, x = m.clientWidth;
|
|
42188
42188
|
if (!(x === 0 || w === 0)) {
|
|
@@ -42248,7 +42248,7 @@ function NT(t) {
|
|
|
42248
42248
|
var k = Qe(N, d), S = MT(w, C);
|
|
42249
42249
|
if (x(S)) {
|
|
42250
42250
|
var I, D;
|
|
42251
|
-
return g++,
|
|
42251
|
+
return g++, GI(N, f, i, (I = (D = m.current) == null ? void 0 : D.clientHeight) != null ? I : 0, n, S, w, p), y;
|
|
42252
42252
|
}
|
|
42253
42253
|
return a ? (y.push(O(Hf, {
|
|
42254
42254
|
showVariations: h,
|
|
@@ -42600,12 +42600,12 @@ function HT(t, e) {
|
|
|
42600
42600
|
originalUnified: a
|
|
42601
42601
|
}));
|
|
42602
42602
|
}
|
|
42603
|
-
var Ro,
|
|
42603
|
+
var Ro, Ga;
|
|
42604
42604
|
(function(t) {
|
|
42605
42605
|
t.ROW = "FlexRow", t.COLUMN = "FlexColumn";
|
|
42606
|
-
})(
|
|
42606
|
+
})(Ga || (Ga = {}));
|
|
42607
42607
|
function Pb(t) {
|
|
42608
|
-
var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ?
|
|
42608
|
+
var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ? Ga.ROW : a;
|
|
42609
42609
|
return O("div", {
|
|
42610
42610
|
style: ge({}, i),
|
|
42611
42611
|
className: re(t1.flex, n, t1[o])
|
|
@@ -42615,9 +42615,9 @@ var t1 = /* @__PURE__ */ xe.create((Ro = {
|
|
|
42615
42615
|
flex: {
|
|
42616
42616
|
display: "flex"
|
|
42617
42617
|
}
|
|
42618
|
-
}, Ro[
|
|
42618
|
+
}, Ro[Ga.ROW] = {
|
|
42619
42619
|
flexDirection: "row"
|
|
42620
|
-
}, Ro[
|
|
42620
|
+
}, Ro[Ga.COLUMN] = {
|
|
42621
42621
|
flexDirection: "column"
|
|
42622
42622
|
}, Ro));
|
|
42623
42623
|
function UT(t) {
|
|
@@ -42724,9 +42724,9 @@ function Rb(t) {
|
|
|
42724
42724
|
var e = t.direction, n = e === void 0 ? Wa.HORIZONTAL : e, r = fu(), i = eb(), a = io(), o = a[0], s = a[1], f = jf(), c = f[0], d = f[1], u = iI(), p = Yr(), h = Qr();
|
|
42725
42725
|
if (i)
|
|
42726
42726
|
return null;
|
|
42727
|
-
var m = Ki *
|
|
42727
|
+
var m = Ki * Gs.length + "px", g = o ? m : Ki + "px", v = n === Wa.VERTICAL;
|
|
42728
42728
|
return O(Uf, {
|
|
42729
|
-
className: re(
|
|
42729
|
+
className: re(Gi.skinTones, v && Gi.vertical, o && Gi.open, v && o && Gi.verticalShadow),
|
|
42730
42730
|
style: v ? {
|
|
42731
42731
|
flexBasis: g,
|
|
42732
42732
|
height: g
|
|
@@ -42734,9 +42734,9 @@ function Rb(t) {
|
|
|
42734
42734
|
flexBasis: g
|
|
42735
42735
|
}
|
|
42736
42736
|
}, O("div", {
|
|
42737
|
-
className: re(
|
|
42737
|
+
className: re(Gi.select),
|
|
42738
42738
|
ref: r
|
|
42739
|
-
},
|
|
42739
|
+
}, Gs.map(function(w, x) {
|
|
42740
42740
|
var L = w === c;
|
|
42741
42741
|
return O(JT, {
|
|
42742
42742
|
key: w,
|
|
@@ -42756,7 +42756,7 @@ var Wa;
|
|
|
42756
42756
|
(function(t) {
|
|
42757
42757
|
t.VERTICAL = "epr-vertical", t.HORIZONTAL = "epr-horizontal";
|
|
42758
42758
|
})(Wa || (Wa = {}));
|
|
42759
|
-
var
|
|
42759
|
+
var Gi = /* @__PURE__ */ xe.create({
|
|
42760
42760
|
skinTones: {
|
|
42761
42761
|
".": "epr-skin-tones",
|
|
42762
42762
|
"--": {
|
|
@@ -42851,17 +42851,17 @@ var wa = /* @__PURE__ */ xe.create({
|
|
|
42851
42851
|
transition: "opacity 0.5s ease-in-out"
|
|
42852
42852
|
}
|
|
42853
42853
|
});
|
|
42854
|
-
function
|
|
42854
|
+
function _T(t) {
|
|
42855
42855
|
var e;
|
|
42856
42856
|
return (e = t == null ? void 0 : t.getAttribute("data-name")) != null ? e : null;
|
|
42857
42857
|
}
|
|
42858
|
-
function
|
|
42858
|
+
function GT(t) {
|
|
42859
42859
|
var e = t.setActiveCategory, n = t.setVisibleCategories, r = Lt();
|
|
42860
42860
|
ue(function() {
|
|
42861
42861
|
var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.current, s = new IntersectionObserver(function(f) {
|
|
42862
42862
|
if (o) {
|
|
42863
42863
|
for (var c = fS(f), d; !(d = c()).done; ) {
|
|
42864
|
-
var u = d.value, p =
|
|
42864
|
+
var u = d.value, p = _T(u.target);
|
|
42865
42865
|
p && (i.set(p, u.intersectionRatio), a.set(p, u.isIntersecting));
|
|
42866
42866
|
}
|
|
42867
42867
|
var h = Array.from(i), m = h.filter(function(N) {
|
|
@@ -42994,7 +42994,7 @@ var n1 = {
|
|
|
42994
42994
|
}));
|
|
42995
42995
|
function ej() {
|
|
42996
42996
|
var t = ne(null), e = t[0], n = t[1], r = au(), i = r[1], a = WT();
|
|
42997
|
-
|
|
42997
|
+
GT({
|
|
42998
42998
|
setActiveCategory: n,
|
|
42999
42999
|
setVisibleCategories: i
|
|
43000
43000
|
});
|
|
@@ -43129,19 +43129,19 @@ var oj = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
|
|
|
43129
43129
|
function sj() {
|
|
43130
43130
|
var t = rb(), e = du();
|
|
43131
43131
|
return t ? null : O(Pb, {
|
|
43132
|
-
className: re(
|
|
43132
|
+
className: re(Go.overlay)
|
|
43133
43133
|
}, O(fj, null), e ? O(Rb, null) : null);
|
|
43134
43134
|
}
|
|
43135
43135
|
function fj() {
|
|
43136
43136
|
var t = Yr(), e = rr(), n = qS(), r = eI(), i = EI(), a = i.statusSearchResults, o = i.searchTerm, s = i.onChange, f = e == null ? void 0 : e.current, c = f == null ? void 0 : f.value;
|
|
43137
43137
|
return O(Uf, {
|
|
43138
|
-
className: re(
|
|
43138
|
+
className: re(Go.searchContainer)
|
|
43139
43139
|
}, O("input", {
|
|
43140
43140
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
43141
43141
|
autoFocus: r,
|
|
43142
43142
|
"aria-label": "Type to search for an emoji",
|
|
43143
43143
|
onFocus: t,
|
|
43144
|
-
className: re(
|
|
43144
|
+
className: re(Go.search),
|
|
43145
43145
|
type: "text",
|
|
43146
43146
|
"aria-controls": "epr-search-id",
|
|
43147
43147
|
placeholder: n,
|
|
@@ -43152,13 +43152,13 @@ function fj() {
|
|
|
43152
43152
|
ref: e
|
|
43153
43153
|
}), o ? O("div", {
|
|
43154
43154
|
role: "status",
|
|
43155
|
-
className: re("epr-status-search-results",
|
|
43155
|
+
className: re("epr-status-search-results", Go.visuallyHidden),
|
|
43156
43156
|
"aria-live": "polite",
|
|
43157
43157
|
id: "epr-search-id",
|
|
43158
43158
|
"aria-atomic": "true"
|
|
43159
43159
|
}, a) : null, O(aj, null), O(nj, null));
|
|
43160
43160
|
}
|
|
43161
|
-
var
|
|
43161
|
+
var Go = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
|
|
43162
43162
|
overlay: {
|
|
43163
43163
|
padding: "var(--epr-header-padding)",
|
|
43164
43164
|
zIndex: "var(--epr-header-overlay-z-index)"
|
|
@@ -43277,7 +43277,7 @@ var hj = /* @__PURE__ */ qc(cj, z2), pj = /* @__PURE__ */ (function(t) {
|
|
|
43277
43277
|
}, n.render = function() {
|
|
43278
43278
|
return this.state.hasError ? null : this.props.children;
|
|
43279
43279
|
}, e;
|
|
43280
|
-
})(
|
|
43280
|
+
})(_v);
|
|
43281
43281
|
function Bc(t) {
|
|
43282
43282
|
var e = ZS({
|
|
43283
43283
|
onEmojiClick: t.onEmojiClick,
|
|
@@ -43963,7 +43963,7 @@ function Zs({
|
|
|
43963
43963
|
return /* @__PURE__ */ b("div", { className: M("relative", f), children: [
|
|
43964
43964
|
c && /* @__PURE__ */ l(ai, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground pointer-events-none" }),
|
|
43965
43965
|
/* @__PURE__ */ l(
|
|
43966
|
-
|
|
43966
|
+
Gn,
|
|
43967
43967
|
{
|
|
43968
43968
|
type: "text",
|
|
43969
43969
|
value: t || "",
|
|
@@ -44252,20 +44252,20 @@ function Lj({
|
|
|
44252
44252
|
e == null || e(P);
|
|
44253
44253
|
}, I = (P) => {
|
|
44254
44254
|
if (!(t != null && t.from)) return;
|
|
44255
|
-
const F = new Date(t.from), [A,
|
|
44256
|
-
F.setHours(A,
|
|
44255
|
+
const F = new Date(t.from), [A, _] = P.split(":").map(Number);
|
|
44256
|
+
F.setHours(A, _, 0, 0), e == null || e({ ...t, from: F });
|
|
44257
44257
|
}, D = (P) => {
|
|
44258
44258
|
if (!(t != null && t.to)) return;
|
|
44259
|
-
const F = new Date(t.to), [A,
|
|
44260
|
-
F.setHours(A,
|
|
44259
|
+
const F = new Date(t.to), [A, _] = P.split(":").map(Number);
|
|
44260
|
+
F.setHours(A, _, 0, 0), e == null || e({ ...t, to: F });
|
|
44261
44261
|
}, H = (P) => {
|
|
44262
44262
|
const F = {
|
|
44263
44263
|
from: new Date(P.value.from),
|
|
44264
44264
|
to: new Date(P.value.to)
|
|
44265
44265
|
};
|
|
44266
44266
|
if (u) {
|
|
44267
|
-
const [A,
|
|
44268
|
-
F.from.setHours(A,
|
|
44267
|
+
const [A, _] = C.split(":").map(Number), [q, fe] = k.split(":").map(Number);
|
|
44268
|
+
F.from.setHours(A, _, 0, 0), F.to.setHours(q, fe, 0, 0);
|
|
44269
44269
|
}
|
|
44270
44270
|
e == null || e(F);
|
|
44271
44271
|
}, J = T.useMemo(() => {
|
|
@@ -44626,7 +44626,7 @@ const kj = {
|
|
|
44626
44626
|
] })
|
|
44627
44627
|
] }),
|
|
44628
44628
|
f !== void 0 && f > 0 && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
|
|
44629
|
-
/* @__PURE__ */ l(
|
|
44629
|
+
/* @__PURE__ */ l(_c, { className: "h-3 w-3" }),
|
|
44630
44630
|
/* @__PURE__ */ l("span", { children: f })
|
|
44631
44631
|
] }),
|
|
44632
44632
|
c !== void 0 && c > 0 && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
|
|
@@ -44983,33 +44983,33 @@ function B8({
|
|
|
44983
44983
|
function H8({
|
|
44984
44984
|
...t
|
|
44985
44985
|
}) {
|
|
44986
|
-
return /* @__PURE__ */ l(
|
|
44986
|
+
return /* @__PURE__ */ l(_e.Root, { "data-slot": "context-menu", ...t });
|
|
44987
44987
|
}
|
|
44988
44988
|
function U8({
|
|
44989
44989
|
...t
|
|
44990
44990
|
}) {
|
|
44991
|
-
return /* @__PURE__ */ l(
|
|
44991
|
+
return /* @__PURE__ */ l(_e.Trigger, { "data-slot": "context-menu-trigger", ...t });
|
|
44992
44992
|
}
|
|
44993
44993
|
function F8({
|
|
44994
44994
|
...t
|
|
44995
44995
|
}) {
|
|
44996
|
-
return /* @__PURE__ */ l(
|
|
44996
|
+
return /* @__PURE__ */ l(_e.Group, { "data-slot": "context-menu-group", ...t });
|
|
44997
44997
|
}
|
|
44998
44998
|
function J8({
|
|
44999
44999
|
...t
|
|
45000
45000
|
}) {
|
|
45001
|
-
return /* @__PURE__ */ l(
|
|
45001
|
+
return /* @__PURE__ */ l(_e.Portal, { "data-slot": "context-menu-portal", ...t });
|
|
45002
45002
|
}
|
|
45003
45003
|
function Y8({
|
|
45004
45004
|
...t
|
|
45005
45005
|
}) {
|
|
45006
|
-
return /* @__PURE__ */ l(
|
|
45006
|
+
return /* @__PURE__ */ l(_e.Sub, { "data-slot": "context-menu-sub", ...t });
|
|
45007
45007
|
}
|
|
45008
45008
|
function Q8({
|
|
45009
45009
|
...t
|
|
45010
45010
|
}) {
|
|
45011
45011
|
return /* @__PURE__ */ l(
|
|
45012
|
-
|
|
45012
|
+
_e.RadioGroup,
|
|
45013
45013
|
{
|
|
45014
45014
|
"data-slot": "context-menu-radio-group",
|
|
45015
45015
|
...t
|
|
@@ -45023,7 +45023,7 @@ function V8({
|
|
|
45023
45023
|
...r
|
|
45024
45024
|
}) {
|
|
45025
45025
|
return /* @__PURE__ */ b(
|
|
45026
|
-
|
|
45026
|
+
_e.SubTrigger,
|
|
45027
45027
|
{
|
|
45028
45028
|
"data-slot": "context-menu-sub-trigger",
|
|
45029
45029
|
"data-inset": e,
|
|
@@ -45039,12 +45039,12 @@ function V8({
|
|
|
45039
45039
|
}
|
|
45040
45040
|
);
|
|
45041
45041
|
}
|
|
45042
|
-
function
|
|
45042
|
+
function _8({
|
|
45043
45043
|
className: t,
|
|
45044
45044
|
...e
|
|
45045
45045
|
}) {
|
|
45046
45046
|
return /* @__PURE__ */ l(
|
|
45047
|
-
|
|
45047
|
+
_e.SubContent,
|
|
45048
45048
|
{
|
|
45049
45049
|
"data-slot": "context-menu-sub-content",
|
|
45050
45050
|
className: M(
|
|
@@ -45055,12 +45055,12 @@ function G8({
|
|
|
45055
45055
|
}
|
|
45056
45056
|
);
|
|
45057
45057
|
}
|
|
45058
|
-
function
|
|
45058
|
+
function G8({
|
|
45059
45059
|
className: t,
|
|
45060
45060
|
...e
|
|
45061
45061
|
}) {
|
|
45062
|
-
return /* @__PURE__ */ l(
|
|
45063
|
-
|
|
45062
|
+
return /* @__PURE__ */ l(_e.Portal, { children: /* @__PURE__ */ l(
|
|
45063
|
+
_e.Content,
|
|
45064
45064
|
{
|
|
45065
45065
|
"data-slot": "context-menu-content",
|
|
45066
45066
|
className: M(
|
|
@@ -45078,7 +45078,7 @@ function W8({
|
|
|
45078
45078
|
...r
|
|
45079
45079
|
}) {
|
|
45080
45080
|
return /* @__PURE__ */ l(
|
|
45081
|
-
|
|
45081
|
+
_e.Item,
|
|
45082
45082
|
{
|
|
45083
45083
|
"data-slot": "context-menu-item",
|
|
45084
45084
|
"data-inset": e,
|
|
@@ -45098,7 +45098,7 @@ function $8({
|
|
|
45098
45098
|
...r
|
|
45099
45099
|
}) {
|
|
45100
45100
|
return /* @__PURE__ */ b(
|
|
45101
|
-
|
|
45101
|
+
_e.CheckboxItem,
|
|
45102
45102
|
{
|
|
45103
45103
|
"data-slot": "context-menu-checkbox-item",
|
|
45104
45104
|
className: M(
|
|
@@ -45108,7 +45108,7 @@ function $8({
|
|
|
45108
45108
|
checked: n,
|
|
45109
45109
|
...r,
|
|
45110
45110
|
children: [
|
|
45111
|
-
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(
|
|
45111
|
+
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
|
|
45112
45112
|
e
|
|
45113
45113
|
]
|
|
45114
45114
|
}
|
|
@@ -45120,7 +45120,7 @@ function Z8({
|
|
|
45120
45120
|
...n
|
|
45121
45121
|
}) {
|
|
45122
45122
|
return /* @__PURE__ */ b(
|
|
45123
|
-
|
|
45123
|
+
_e.RadioItem,
|
|
45124
45124
|
{
|
|
45125
45125
|
"data-slot": "context-menu-radio-item",
|
|
45126
45126
|
className: M(
|
|
@@ -45129,7 +45129,7 @@ function Z8({
|
|
|
45129
45129
|
),
|
|
45130
45130
|
...n,
|
|
45131
45131
|
children: [
|
|
45132
|
-
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(
|
|
45132
|
+
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
|
|
45133
45133
|
e
|
|
45134
45134
|
]
|
|
45135
45135
|
}
|
|
@@ -45141,7 +45141,7 @@ function q8({
|
|
|
45141
45141
|
...n
|
|
45142
45142
|
}) {
|
|
45143
45143
|
return /* @__PURE__ */ l(
|
|
45144
|
-
|
|
45144
|
+
_e.Label,
|
|
45145
45145
|
{
|
|
45146
45146
|
"data-slot": "context-menu-label",
|
|
45147
45147
|
"data-inset": e,
|
|
@@ -45158,7 +45158,7 @@ function K8({
|
|
|
45158
45158
|
...e
|
|
45159
45159
|
}) {
|
|
45160
45160
|
return /* @__PURE__ */ l(
|
|
45161
|
-
|
|
45161
|
+
_e.Separator,
|
|
45162
45162
|
{
|
|
45163
45163
|
"data-slot": "context-menu-separator",
|
|
45164
45164
|
className: M("bg-border -mx-1 my-1 h-px", t),
|
|
@@ -45525,11 +45525,11 @@ function Jj({
|
|
|
45525
45525
|
[t, d]
|
|
45526
45526
|
), H = T.useCallback(
|
|
45527
45527
|
async (A) => {
|
|
45528
|
-
const
|
|
45529
|
-
if (
|
|
45528
|
+
const _ = A ?? v;
|
|
45529
|
+
if (_) {
|
|
45530
45530
|
k(!0);
|
|
45531
45531
|
try {
|
|
45532
|
-
await n(
|
|
45532
|
+
await n(_), L(!1), w(null);
|
|
45533
45533
|
} catch (q) {
|
|
45534
45534
|
console.error("Error confirming value change:", q);
|
|
45535
45535
|
} finally {
|
|
@@ -45685,13 +45685,13 @@ var f1 = (function() {
|
|
|
45685
45685
|
INIT: "@@redux/INIT" + l1(),
|
|
45686
45686
|
REPLACE: "@@redux/REPLACE" + l1()
|
|
45687
45687
|
};
|
|
45688
|
-
function
|
|
45688
|
+
function _j(t) {
|
|
45689
45689
|
if (typeof t != "object" || t === null) return !1;
|
|
45690
45690
|
for (var e = t; Object.getPrototypeOf(e) !== null; )
|
|
45691
45691
|
e = Object.getPrototypeOf(e);
|
|
45692
45692
|
return Object.getPrototypeOf(t) === e;
|
|
45693
45693
|
}
|
|
45694
|
-
function
|
|
45694
|
+
function Gj(t) {
|
|
45695
45695
|
if (t === void 0) return "undefined";
|
|
45696
45696
|
if (t === null) return "null";
|
|
45697
45697
|
var e = typeof t;
|
|
@@ -45729,7 +45729,7 @@ function Zj(t) {
|
|
|
45729
45729
|
}
|
|
45730
45730
|
function Zr(t) {
|
|
45731
45731
|
var e = typeof t;
|
|
45732
|
-
return process.env.NODE_ENV !== "production" && (e =
|
|
45732
|
+
return process.env.NODE_ENV !== "production" && (e = Gj(t)), e;
|
|
45733
45733
|
}
|
|
45734
45734
|
function Qb(t, e, n) {
|
|
45735
45735
|
var r;
|
|
@@ -45768,7 +45768,7 @@ function Qb(t, e, n) {
|
|
|
45768
45768
|
};
|
|
45769
45769
|
}
|
|
45770
45770
|
function p(g) {
|
|
45771
|
-
if (!
|
|
45771
|
+
if (!_j(g))
|
|
45772
45772
|
throw new Error(process.env.NODE_ENV === "production" ? Tt(7) : "Actions must be plain objects. Instead, the actual type was: '" + Zr(g) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
|
|
45773
45773
|
if (typeof g.type > "u")
|
|
45774
45774
|
throw new Error(process.env.NODE_ENV === "production" ? Tt(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
@@ -45876,7 +45876,7 @@ function tD(t, e) {
|
|
|
45876
45876
|
(n) => e.indexOf(n) > -1
|
|
45877
45877
|
);
|
|
45878
45878
|
}
|
|
45879
|
-
const yu = "dnd-core/INIT_COORDS",
|
|
45879
|
+
const yu = "dnd-core/INIT_COORDS", _f = "dnd-core/BEGIN_DRAG", Mu = "dnd-core/PUBLISH_DRAG_SOURCE", Gf = "dnd-core/HOVER", Wf = "dnd-core/DROP", $f = "dnd-core/END_DRAG";
|
|
45880
45880
|
function d1(t, e) {
|
|
45881
45881
|
return {
|
|
45882
45882
|
type: yu,
|
|
@@ -45917,7 +45917,7 @@ function rD(t) {
|
|
|
45917
45917
|
oD(p), f.pinSource(c);
|
|
45918
45918
|
const h = f.getSourceType(c);
|
|
45919
45919
|
return {
|
|
45920
|
-
type:
|
|
45920
|
+
type: _f,
|
|
45921
45921
|
payload: {
|
|
45922
45922
|
itemType: h,
|
|
45923
45923
|
item: p,
|
|
@@ -46020,7 +46020,7 @@ function bD(t) {
|
|
|
46020
46020
|
vD(n);
|
|
46021
46021
|
const i = n.slice(0), a = t.getMonitor(), o = t.getRegistry(), s = a.getItemType();
|
|
46022
46022
|
return yD(i, o, s), wD(i, a, o), MD(i, a, o), {
|
|
46023
|
-
type:
|
|
46023
|
+
type: Gf,
|
|
46024
46024
|
payload: {
|
|
46025
46025
|
targetIds: i,
|
|
46026
46026
|
clientOffset: r || null
|
|
@@ -46111,7 +46111,7 @@ function ND(t, e) {
|
|
|
46111
46111
|
y: t.y + e.y
|
|
46112
46112
|
};
|
|
46113
46113
|
}
|
|
46114
|
-
function
|
|
46114
|
+
function _b(t, e) {
|
|
46115
46115
|
return {
|
|
46116
46116
|
x: t.x - e.x,
|
|
46117
46117
|
y: t.y - e.y
|
|
@@ -46119,11 +46119,11 @@ function Gb(t, e) {
|
|
|
46119
46119
|
}
|
|
46120
46120
|
function kD(t) {
|
|
46121
46121
|
const { clientOffset: e, initialClientOffset: n, initialSourceClientOffset: r } = t;
|
|
46122
|
-
return !e || !n || !r ? null :
|
|
46122
|
+
return !e || !n || !r ? null : _b(ND(e, r), n);
|
|
46123
46123
|
}
|
|
46124
46124
|
function SD(t) {
|
|
46125
46125
|
const { clientOffset: e, initialClientOffset: n } = t;
|
|
46126
|
-
return !e || !n ? null :
|
|
46126
|
+
return !e || !n ? null : _b(e, n);
|
|
46127
46127
|
}
|
|
46128
46128
|
const ya = [], xu = [];
|
|
46129
46129
|
ya.__IS_NONE__ = !0;
|
|
@@ -46239,7 +46239,7 @@ class TD {
|
|
|
46239
46239
|
this.store = e, this.registry = n;
|
|
46240
46240
|
}
|
|
46241
46241
|
}
|
|
46242
|
-
const u1 = typeof global < "u" ? global : self,
|
|
46242
|
+
const u1 = typeof global < "u" ? global : self, Gb = u1.MutationObserver || u1.WebKitMutationObserver;
|
|
46243
46243
|
function Wb(t) {
|
|
46244
46244
|
return function() {
|
|
46245
46245
|
const n = setTimeout(i, 0), r = setInterval(i, 50);
|
|
@@ -46250,14 +46250,14 @@ function Wb(t) {
|
|
|
46250
46250
|
}
|
|
46251
46251
|
function jD(t) {
|
|
46252
46252
|
let e = 1;
|
|
46253
|
-
const n = new
|
|
46253
|
+
const n = new Gb(t), r = document.createTextNode("");
|
|
46254
46254
|
return n.observe(r, {
|
|
46255
46255
|
characterData: !0
|
|
46256
46256
|
}), function() {
|
|
46257
46257
|
e = -e, r.data = e;
|
|
46258
46258
|
};
|
|
46259
46259
|
}
|
|
46260
|
-
const DD = typeof
|
|
46260
|
+
const DD = typeof Gb == "function" ? (
|
|
46261
46261
|
// reliably everywhere they are implemented.
|
|
46262
46262
|
// They are implemented in all modern browsers.
|
|
46263
46263
|
//
|
|
@@ -46449,7 +46449,7 @@ function p1(t, e) {
|
|
|
46449
46449
|
} while (!r);
|
|
46450
46450
|
return !1;
|
|
46451
46451
|
}
|
|
46452
|
-
class
|
|
46452
|
+
class _D {
|
|
46453
46453
|
addSource(e, n) {
|
|
46454
46454
|
Uc(e), FD(n);
|
|
46455
46455
|
const r = this.addHandler(At.SOURCE, e, n);
|
|
@@ -46504,11 +46504,11 @@ class GD {
|
|
|
46504
46504
|
this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
|
|
46505
46505
|
}
|
|
46506
46506
|
}
|
|
46507
|
-
const
|
|
46507
|
+
const GD = (t, e) => t === e;
|
|
46508
46508
|
function WD(t, e) {
|
|
46509
46509
|
return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
|
|
46510
46510
|
}
|
|
46511
|
-
function $D(t, e, n =
|
|
46511
|
+
function $D(t, e, n = GD) {
|
|
46512
46512
|
if (t.length !== e.length)
|
|
46513
46513
|
return !1;
|
|
46514
46514
|
for (let r = 0; r < t.length; ++r)
|
|
@@ -46518,14 +46518,14 @@ function $D(t, e, n = _D) {
|
|
|
46518
46518
|
}
|
|
46519
46519
|
function ZD(t = ya, e) {
|
|
46520
46520
|
switch (e.type) {
|
|
46521
|
-
case
|
|
46521
|
+
case Gf:
|
|
46522
46522
|
break;
|
|
46523
46523
|
case Cu:
|
|
46524
46524
|
case Lu:
|
|
46525
46525
|
case Zf:
|
|
46526
46526
|
case Nu:
|
|
46527
46527
|
return ya;
|
|
46528
|
-
case
|
|
46528
|
+
case _f:
|
|
46529
46529
|
case Mu:
|
|
46530
46530
|
case $f:
|
|
46531
46531
|
case Wf:
|
|
@@ -46566,13 +46566,13 @@ function XD(t = m1, e) {
|
|
|
46566
46566
|
const { payload: n } = e;
|
|
46567
46567
|
switch (e.type) {
|
|
46568
46568
|
case yu:
|
|
46569
|
-
case
|
|
46569
|
+
case _f:
|
|
46570
46570
|
return {
|
|
46571
46571
|
initialSourceClientOffset: n.sourceClientOffset,
|
|
46572
46572
|
initialClientOffset: n.clientOffset,
|
|
46573
46573
|
clientOffset: n.clientOffset
|
|
46574
46574
|
};
|
|
46575
|
-
case
|
|
46575
|
+
case Gf:
|
|
46576
46576
|
return WD(t.clientOffset, n.clientOffset) ? t : KD({}, t, {
|
|
46577
46577
|
clientOffset: n.clientOffset
|
|
46578
46578
|
});
|
|
@@ -46614,7 +46614,7 @@ const t5 = {
|
|
|
46614
46614
|
function n5(t = t5, e) {
|
|
46615
46615
|
const { payload: n } = e;
|
|
46616
46616
|
switch (e.type) {
|
|
46617
|
-
case
|
|
46617
|
+
case _f:
|
|
46618
46618
|
return qr({}, t, {
|
|
46619
46619
|
itemType: n.itemType,
|
|
46620
46620
|
item: n.item,
|
|
@@ -46627,7 +46627,7 @@ function n5(t = t5, e) {
|
|
|
46627
46627
|
return qr({}, t, {
|
|
46628
46628
|
isSourcePublic: !0
|
|
46629
46629
|
});
|
|
46630
|
-
case
|
|
46630
|
+
case Gf:
|
|
46631
46631
|
return qr({}, t, {
|
|
46632
46632
|
targetIds: n.targetIds
|
|
46633
46633
|
});
|
|
@@ -46704,7 +46704,7 @@ function s5(t = {}, e) {
|
|
|
46704
46704
|
};
|
|
46705
46705
|
}
|
|
46706
46706
|
function f5(t, e = void 0, n = {}, r = !1) {
|
|
46707
|
-
const i = l5(r), a = new TD(i, new
|
|
46707
|
+
const i = l5(r), a = new TD(i, new _D(i)), o = new LD(i, a), s = t(o, e, n);
|
|
46708
46708
|
return o.receiveBackend(s), o;
|
|
46709
46709
|
}
|
|
46710
46710
|
function l5(t) {
|
|
@@ -47055,7 +47055,7 @@ function k5(t) {
|
|
|
47055
47055
|
}
|
|
47056
47056
|
function S5(t) {
|
|
47057
47057
|
return (e = null, n = null) => {
|
|
47058
|
-
if (!
|
|
47058
|
+
if (!Gv(e)) {
|
|
47059
47059
|
const a = e;
|
|
47060
47060
|
return t(a, n), a;
|
|
47061
47061
|
}
|
|
@@ -47415,7 +47415,7 @@ function V5(t, e) {
|
|
|
47415
47415
|
(n) => n !== e
|
|
47416
47416
|
);
|
|
47417
47417
|
}
|
|
47418
|
-
function
|
|
47418
|
+
function _5(t, e) {
|
|
47419
47419
|
const n = /* @__PURE__ */ new Set(), r = (a) => n.add(a);
|
|
47420
47420
|
t.forEach(r), e.forEach(r);
|
|
47421
47421
|
const i = [];
|
|
@@ -47423,10 +47423,10 @@ function G5(t, e) {
|
|
|
47423
47423
|
(a) => i.push(a)
|
|
47424
47424
|
), i;
|
|
47425
47425
|
}
|
|
47426
|
-
class
|
|
47426
|
+
class G5 {
|
|
47427
47427
|
enter(e) {
|
|
47428
47428
|
const n = this.entered.length, r = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
|
|
47429
|
-
return this.entered =
|
|
47429
|
+
return this.entered = _5(this.entered.filter(r), [
|
|
47430
47430
|
e
|
|
47431
47431
|
]), n === 0 && this.entered.length > 0;
|
|
47432
47432
|
}
|
|
@@ -47962,7 +47962,7 @@ class rE {
|
|
|
47962
47962
|
}, this.handleSelectStart = (i) => {
|
|
47963
47963
|
const a = i.target;
|
|
47964
47964
|
typeof a.dragDrop == "function" && (a.tagName === "INPUT" || a.tagName === "SELECT" || a.tagName === "TEXTAREA" || a.isContentEditable || (i.preventDefault(), a.dragDrop()));
|
|
47965
|
-
}, this.options = new tE(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new
|
|
47965
|
+
}, this.options = new tE(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new G5(this.isNodeInDocument);
|
|
47966
47966
|
}
|
|
47967
47967
|
}
|
|
47968
47968
|
const f4 = function(e, n, r) {
|
|
@@ -48563,8 +48563,8 @@ function u4({
|
|
|
48563
48563
|
let F = new Date(H);
|
|
48564
48564
|
if (o === "month" || J === "editorial")
|
|
48565
48565
|
if (P.date) {
|
|
48566
|
-
const
|
|
48567
|
-
F.setHours(
|
|
48566
|
+
const _ = new Date(P.date);
|
|
48567
|
+
F.setHours(_.getHours(), _.getMinutes());
|
|
48568
48568
|
} else
|
|
48569
48569
|
F.setHours(9, 0);
|
|
48570
48570
|
const A = { ...P, date: F };
|
|
@@ -48986,7 +48986,7 @@ const w4 = T.memo(({
|
|
|
48986
48986
|
u.stopPropagation(), o(t);
|
|
48987
48987
|
},
|
|
48988
48988
|
"aria-label": "Editar marco",
|
|
48989
|
-
children: /* @__PURE__ */ l(
|
|
48989
|
+
children: /* @__PURE__ */ l(_l, { className: "size-3" })
|
|
48990
48990
|
}
|
|
48991
48991
|
)
|
|
48992
48992
|
]
|
|
@@ -49040,7 +49040,7 @@ const w4 = T.memo(({
|
|
|
49040
49040
|
u.stopPropagation(), o(t);
|
|
49041
49041
|
},
|
|
49042
49042
|
"aria-label": "Editar tarefa",
|
|
49043
|
-
children: /* @__PURE__ */ l(
|
|
49043
|
+
children: /* @__PURE__ */ l(_l, { className: "size-3.5" })
|
|
49044
49044
|
}
|
|
49045
49045
|
)
|
|
49046
49046
|
]
|
|
@@ -49248,7 +49248,7 @@ const cE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], dE = T.forwardRef(
|
|
|
49248
49248
|
/* @__PURE__ */ l("span", { className: "text-sm truncate flex-1", children: C.name }),
|
|
49249
49249
|
o === "projects" && C.assignee && /* @__PURE__ */ l(tn, { className: "size-6 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ l(nn, { className: "text-[10px]", children: C.assignee.initials || C.assignee.name.substring(0, 2).toUpperCase() }) }),
|
|
49250
49250
|
r && /* @__PURE__ */ l(
|
|
49251
|
-
|
|
49251
|
+
_l,
|
|
49252
49252
|
{
|
|
49253
49253
|
className: "size-4 text-muted-foreground cursor-pointer hover:text-primary ml-2 opacity-0 group-hover:opacity-100",
|
|
49254
49254
|
onClick: () => r(C)
|
|
@@ -49411,11 +49411,11 @@ const Vc = T.forwardRef(
|
|
|
49411
49411
|
readOnly: m,
|
|
49412
49412
|
...g
|
|
49413
49413
|
}, v) => {
|
|
49414
|
-
const [w, x] = T.useState(n), [L, y] = T.useState(""), [N, C] = T.useState(!1), k = T.useRef(null), S = e !== void 0 ? e : w, I = T.useCallback((
|
|
49415
|
-
const he =
|
|
49414
|
+
const [w, x] = T.useState(n), [L, y] = T.useState(""), [N, C] = T.useState(!1), k = T.useRef(null), S = e !== void 0 ? e : w, I = T.useCallback((G) => f ? new Intl.NumberFormat(c, f).format(G) : G.toFixed(s), [f, c, s]), D = (G) => {
|
|
49415
|
+
const he = G.replace(/[^\d,.-]/g, "").replace(",", "."), He = parseFloat(he);
|
|
49416
49416
|
return isNaN(He) ? 0 : He;
|
|
49417
|
-
}, H = (
|
|
49418
|
-
const he = be ? H(
|
|
49417
|
+
}, H = (G) => p ? Math.min(Math.max(G, i), a) : G, J = T.useCallback((G, be = !1) => {
|
|
49418
|
+
const he = be ? H(G) : G;
|
|
49419
49419
|
e === void 0 && x(he), r && r(he);
|
|
49420
49420
|
}, [e, r, H]);
|
|
49421
49421
|
T.useEffect(() => {
|
|
@@ -49423,30 +49423,30 @@ const Vc = T.forwardRef(
|
|
|
49423
49423
|
}, [S, I, N]);
|
|
49424
49424
|
const P = () => {
|
|
49425
49425
|
if (h || m) return;
|
|
49426
|
-
const
|
|
49427
|
-
|
|
49426
|
+
const G = S + o;
|
|
49427
|
+
G <= a && J(G);
|
|
49428
49428
|
}, F = () => {
|
|
49429
49429
|
if (h || m) return;
|
|
49430
|
-
const
|
|
49431
|
-
|
|
49432
|
-
}, A = (
|
|
49433
|
-
const be =
|
|
49430
|
+
const G = S - o;
|
|
49431
|
+
G >= i && J(G);
|
|
49432
|
+
}, A = (G) => {
|
|
49433
|
+
const be = G.target.value;
|
|
49434
49434
|
y(be);
|
|
49435
49435
|
const he = D(be);
|
|
49436
49436
|
J(he, !1);
|
|
49437
|
-
},
|
|
49437
|
+
}, _ = (G) => {
|
|
49438
49438
|
if (C(!1), u) {
|
|
49439
49439
|
const be = H(S);
|
|
49440
49440
|
J(be, !1), y(I(be));
|
|
49441
49441
|
} else
|
|
49442
49442
|
y(I(S));
|
|
49443
|
-
g.onBlur && g.onBlur(
|
|
49444
|
-
}, q = (
|
|
49445
|
-
C(!0), y(S.toString()),
|
|
49446
|
-
}, fe = (
|
|
49447
|
-
h || m || (
|
|
49448
|
-
}, Ee = (
|
|
49449
|
-
!d || h || m || !N || (
|
|
49443
|
+
g.onBlur && g.onBlur(G);
|
|
49444
|
+
}, q = (G) => {
|
|
49445
|
+
C(!0), y(S.toString()), G.target.select(), g.onFocus && g.onFocus(G);
|
|
49446
|
+
}, fe = (G) => {
|
|
49447
|
+
h || m || (G.key === "ArrowUp" ? (G.preventDefault(), P()) : G.key === "ArrowDown" && (G.preventDefault(), F()), g.onKeyDown && g.onKeyDown(G));
|
|
49448
|
+
}, Ee = (G) => {
|
|
49449
|
+
!d || h || m || !N || (G.preventDefault(), G.deltaY < 0 ? P() : G.deltaY > 0 && F());
|
|
49450
49450
|
};
|
|
49451
49451
|
return T.useImperativeHandle(v, () => k.current), /* @__PURE__ */ b("div", { className: "relative flex w-full items-center", children: [
|
|
49452
49452
|
/* @__PURE__ */ l(
|
|
@@ -49465,7 +49465,7 @@ const Vc = T.forwardRef(
|
|
|
49465
49465
|
),
|
|
49466
49466
|
value: L,
|
|
49467
49467
|
onChange: A,
|
|
49468
|
-
onBlur:
|
|
49468
|
+
onBlur: _,
|
|
49469
49469
|
onFocus: q,
|
|
49470
49470
|
onKeyDown: fe,
|
|
49471
49471
|
onWheel: Ee,
|
|
@@ -49659,7 +49659,7 @@ function C7({
|
|
|
49659
49659
|
...e
|
|
49660
49660
|
}) {
|
|
49661
49661
|
return /* @__PURE__ */ l(
|
|
49662
|
-
|
|
49662
|
+
Gn,
|
|
49663
49663
|
{
|
|
49664
49664
|
"data-slot": "input-group-control",
|
|
49665
49665
|
className: M("cn-input-group-input flex-1", t),
|
|
@@ -49755,7 +49755,7 @@ function N7({
|
|
|
49755
49755
|
...e
|
|
49756
49756
|
}) {
|
|
49757
49757
|
return /* @__PURE__ */ l(
|
|
49758
|
-
|
|
49758
|
+
Ge.Root,
|
|
49759
49759
|
{
|
|
49760
49760
|
"data-slot": "menubar",
|
|
49761
49761
|
className: M(
|
|
@@ -49769,29 +49769,29 @@ function N7({
|
|
|
49769
49769
|
function k7({
|
|
49770
49770
|
...t
|
|
49771
49771
|
}) {
|
|
49772
|
-
return /* @__PURE__ */ l(
|
|
49772
|
+
return /* @__PURE__ */ l(Ge.Menu, { "data-slot": "menubar-menu", ...t });
|
|
49773
49773
|
}
|
|
49774
49774
|
function S7({
|
|
49775
49775
|
...t
|
|
49776
49776
|
}) {
|
|
49777
|
-
return /* @__PURE__ */ l(
|
|
49777
|
+
return /* @__PURE__ */ l(Ge.Group, { "data-slot": "menubar-group", ...t });
|
|
49778
49778
|
}
|
|
49779
49779
|
function wE({
|
|
49780
49780
|
...t
|
|
49781
49781
|
}) {
|
|
49782
|
-
return /* @__PURE__ */ l(
|
|
49782
|
+
return /* @__PURE__ */ l(Ge.Portal, { "data-slot": "menubar-portal", ...t });
|
|
49783
49783
|
}
|
|
49784
49784
|
function I7({
|
|
49785
49785
|
...t
|
|
49786
49786
|
}) {
|
|
49787
|
-
return /* @__PURE__ */ l(
|
|
49787
|
+
return /* @__PURE__ */ l(Ge.RadioGroup, { "data-slot": "menubar-radio-group", ...t });
|
|
49788
49788
|
}
|
|
49789
49789
|
function T7({
|
|
49790
49790
|
className: t,
|
|
49791
49791
|
...e
|
|
49792
49792
|
}) {
|
|
49793
49793
|
return /* @__PURE__ */ l(
|
|
49794
|
-
|
|
49794
|
+
Ge.Trigger,
|
|
49795
49795
|
{
|
|
49796
49796
|
"data-slot": "menubar-trigger",
|
|
49797
49797
|
className: M(
|
|
@@ -49810,7 +49810,7 @@ function j7({
|
|
|
49810
49810
|
...i
|
|
49811
49811
|
}) {
|
|
49812
49812
|
return /* @__PURE__ */ l(wE, { children: /* @__PURE__ */ l(
|
|
49813
|
-
|
|
49813
|
+
Ge.Content,
|
|
49814
49814
|
{
|
|
49815
49815
|
"data-slot": "menubar-content",
|
|
49816
49816
|
align: e,
|
|
@@ -49831,7 +49831,7 @@ function D7({
|
|
|
49831
49831
|
...r
|
|
49832
49832
|
}) {
|
|
49833
49833
|
return /* @__PURE__ */ l(
|
|
49834
|
-
|
|
49834
|
+
Ge.Item,
|
|
49835
49835
|
{
|
|
49836
49836
|
"data-slot": "menubar-item",
|
|
49837
49837
|
"data-inset": e,
|
|
@@ -49851,7 +49851,7 @@ function E7({
|
|
|
49851
49851
|
...r
|
|
49852
49852
|
}) {
|
|
49853
49853
|
return /* @__PURE__ */ b(
|
|
49854
|
-
|
|
49854
|
+
Ge.CheckboxItem,
|
|
49855
49855
|
{
|
|
49856
49856
|
"data-slot": "menubar-checkbox-item",
|
|
49857
49857
|
className: M(
|
|
@@ -49861,7 +49861,7 @@ function E7({
|
|
|
49861
49861
|
checked: n,
|
|
49862
49862
|
...r,
|
|
49863
49863
|
children: [
|
|
49864
|
-
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(
|
|
49864
|
+
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
|
|
49865
49865
|
e
|
|
49866
49866
|
]
|
|
49867
49867
|
}
|
|
@@ -49873,7 +49873,7 @@ function A7({
|
|
|
49873
49873
|
...n
|
|
49874
49874
|
}) {
|
|
49875
49875
|
return /* @__PURE__ */ b(
|
|
49876
|
-
|
|
49876
|
+
Ge.RadioItem,
|
|
49877
49877
|
{
|
|
49878
49878
|
"data-slot": "menubar-radio-item",
|
|
49879
49879
|
className: M(
|
|
@@ -49882,7 +49882,7 @@ function A7({
|
|
|
49882
49882
|
),
|
|
49883
49883
|
...n,
|
|
49884
49884
|
children: [
|
|
49885
|
-
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(
|
|
49885
|
+
/* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
|
|
49886
49886
|
e
|
|
49887
49887
|
]
|
|
49888
49888
|
}
|
|
@@ -49894,7 +49894,7 @@ function z7({
|
|
|
49894
49894
|
...n
|
|
49895
49895
|
}) {
|
|
49896
49896
|
return /* @__PURE__ */ l(
|
|
49897
|
-
|
|
49897
|
+
Ge.Label,
|
|
49898
49898
|
{
|
|
49899
49899
|
"data-slot": "menubar-label",
|
|
49900
49900
|
"data-inset": e,
|
|
@@ -49911,7 +49911,7 @@ function O7({
|
|
|
49911
49911
|
...e
|
|
49912
49912
|
}) {
|
|
49913
49913
|
return /* @__PURE__ */ l(
|
|
49914
|
-
|
|
49914
|
+
Ge.Separator,
|
|
49915
49915
|
{
|
|
49916
49916
|
"data-slot": "menubar-separator",
|
|
49917
49917
|
className: M("bg-border -mx-1 my-1 h-px", t),
|
|
@@ -49938,7 +49938,7 @@ function P7({
|
|
|
49938
49938
|
function R7({
|
|
49939
49939
|
...t
|
|
49940
49940
|
}) {
|
|
49941
|
-
return /* @__PURE__ */ l(
|
|
49941
|
+
return /* @__PURE__ */ l(Ge.Sub, { "data-slot": "menubar-sub", ...t });
|
|
49942
49942
|
}
|
|
49943
49943
|
function B7({
|
|
49944
49944
|
className: t,
|
|
@@ -49947,7 +49947,7 @@ function B7({
|
|
|
49947
49947
|
...r
|
|
49948
49948
|
}) {
|
|
49949
49949
|
return /* @__PURE__ */ b(
|
|
49950
|
-
|
|
49950
|
+
Ge.SubTrigger,
|
|
49951
49951
|
{
|
|
49952
49952
|
"data-slot": "menubar-sub-trigger",
|
|
49953
49953
|
"data-inset": e,
|
|
@@ -49968,7 +49968,7 @@ function H7({
|
|
|
49968
49968
|
...e
|
|
49969
49969
|
}) {
|
|
49970
49970
|
return /* @__PURE__ */ l(
|
|
49971
|
-
|
|
49971
|
+
Ge.SubContent,
|
|
49972
49972
|
{
|
|
49973
49973
|
"data-slot": "menubar-sub-content",
|
|
49974
49974
|
className: M(
|
|
@@ -50116,7 +50116,7 @@ function V7({
|
|
|
50116
50116
|
}
|
|
50117
50117
|
);
|
|
50118
50118
|
}
|
|
50119
|
-
function
|
|
50119
|
+
function _7({
|
|
50120
50120
|
title: t,
|
|
50121
50121
|
description: e,
|
|
50122
50122
|
breadcrumbs: n,
|
|
@@ -50148,7 +50148,7 @@ function G7({
|
|
|
50148
50148
|
e && /* @__PURE__ */ l("div", { className: "border-t px-6 py-3", children: /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground", children: e }) })
|
|
50149
50149
|
] });
|
|
50150
50150
|
}
|
|
50151
|
-
function
|
|
50151
|
+
function G7({
|
|
50152
50152
|
title: t,
|
|
50153
50153
|
icon: e,
|
|
50154
50154
|
badge: n,
|
|
@@ -50285,7 +50285,7 @@ function ez({
|
|
|
50285
50285
|
...e
|
|
50286
50286
|
}) {
|
|
50287
50287
|
return /* @__PURE__ */ l(
|
|
50288
|
-
|
|
50288
|
+
Gl.Root,
|
|
50289
50289
|
{
|
|
50290
50290
|
"data-slot": "radio-group",
|
|
50291
50291
|
className: M("grid gap-3", t),
|
|
@@ -50298,7 +50298,7 @@ function tz({
|
|
|
50298
50298
|
...e
|
|
50299
50299
|
}) {
|
|
50300
50300
|
return /* @__PURE__ */ l(
|
|
50301
|
-
|
|
50301
|
+
Gl.Item,
|
|
50302
50302
|
{
|
|
50303
50303
|
"data-slot": "radio-group-item",
|
|
50304
50304
|
className: M(
|
|
@@ -50307,7 +50307,7 @@ function tz({
|
|
|
50307
50307
|
),
|
|
50308
50308
|
...e,
|
|
50309
50309
|
children: /* @__PURE__ */ l(
|
|
50310
|
-
|
|
50310
|
+
Gl.Indicator,
|
|
50311
50311
|
{
|
|
50312
50312
|
"data-slot": "radio-group-indicator",
|
|
50313
50313
|
className: "flex items-center justify-center",
|
|
@@ -51146,22 +51146,32 @@ function JE({
|
|
|
51146
51146
|
}
|
|
51147
51147
|
);
|
|
51148
51148
|
}
|
|
51149
|
-
|
|
51149
|
+
function jz(t) {
|
|
51150
51150
|
const { theme: e = "system" } = pw();
|
|
51151
51151
|
return /* @__PURE__ */ l(
|
|
51152
51152
|
mw,
|
|
51153
51153
|
{
|
|
51154
51154
|
theme: e,
|
|
51155
51155
|
className: "toaster group",
|
|
51156
|
-
|
|
51157
|
-
|
|
51158
|
-
|
|
51159
|
-
|
|
51156
|
+
toastOptions: {
|
|
51157
|
+
unstyled: !0,
|
|
51158
|
+
classNames: {
|
|
51159
|
+
toast: "w-full rounded-lg border px-4 py-3 shadow-lg flex items-start gap-3 bg-card text-card-foreground border-border",
|
|
51160
|
+
title: "font-medium text-sm",
|
|
51161
|
+
description: "text-sm mt-1",
|
|
51162
|
+
actionButton: "inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 h-8 px-3",
|
|
51163
|
+
cancelButton: "inline-flex items-center justify-center rounded-md text-sm font-medium bg-muted text-muted-foreground hover:bg-muted/90 h-8 px-3",
|
|
51164
|
+
closeButton: "absolute right-2 top-2 rounded-md p-1 text-foreground/50 hover:text-foreground",
|
|
51165
|
+
error: "!bg-red-50 dark:!bg-red-950/30 !text-red-700 dark:!text-red-400 !border-red-200 dark:!border-red-800 [&_[data-title]]:text-red-700 dark:[&_[data-title]]:text-red-400 [&_[data-description]]:text-red-700/90 dark:[&_[data-description]]:text-red-400/90",
|
|
51166
|
+
success: "!bg-green-50 dark:!bg-green-950/30 !text-green-700 dark:!text-green-400 !border-green-200 dark:!border-green-800 [&_[data-title]]:text-green-700 dark:[&_[data-title]]:text-green-400 [&_[data-description]]:text-green-700/90 dark:[&_[data-description]]:text-green-400/90",
|
|
51167
|
+
warning: "!bg-yellow-50 dark:!bg-yellow-950/30 !text-yellow-700 dark:!text-yellow-400 !border-yellow-200 dark:!border-yellow-800 [&_[data-title]]:text-yellow-700 dark:[&_[data-title]]:text-yellow-400 [&_[data-description]]:text-yellow-700/90 dark:[&_[data-description]]:text-yellow-400/90",
|
|
51168
|
+
info: "!bg-cyan-50 dark:!bg-cyan-950/30 !text-cyan-700 dark:!text-cyan-400 !border-cyan-200 dark:!border-cyan-800 [&_[data-title]]:text-cyan-700 dark:[&_[data-title]]:text-cyan-400 [&_[data-description]]:text-cyan-700/90 dark:[&_[data-description]]:text-cyan-400/90"
|
|
51169
|
+
}
|
|
51160
51170
|
},
|
|
51161
51171
|
...t
|
|
51162
51172
|
}
|
|
51163
51173
|
);
|
|
51164
|
-
}
|
|
51174
|
+
}
|
|
51165
51175
|
function YE({
|
|
51166
51176
|
className: t,
|
|
51167
51177
|
...e
|
|
@@ -51302,7 +51312,7 @@ const VE = T.forwardRef(
|
|
|
51302
51312
|
)
|
|
51303
51313
|
);
|
|
51304
51314
|
VE.displayName = "TableCaption";
|
|
51305
|
-
const
|
|
51315
|
+
const _E = {
|
|
51306
51316
|
previous: "Anterior",
|
|
51307
51317
|
next: "Próxima",
|
|
51308
51318
|
first: "Primeira",
|
|
@@ -51312,7 +51322,7 @@ const GE = {
|
|
|
51312
51322
|
results: "resultados",
|
|
51313
51323
|
itemsPerPage: "Itens por página",
|
|
51314
51324
|
page: "Página"
|
|
51315
|
-
},
|
|
51325
|
+
}, GE = [10, 20, 30, 50, 100];
|
|
51316
51326
|
function WE(t, e, n = 5) {
|
|
51317
51327
|
if (e <= n)
|
|
51318
51328
|
return Array.from({ length: e }, (s, f) => f + 1);
|
|
@@ -51331,7 +51341,7 @@ function I4({
|
|
|
51331
51341
|
totalItems: r,
|
|
51332
51342
|
onPageChange: i,
|
|
51333
51343
|
onPageSizeChange: a,
|
|
51334
|
-
pageSizeOptions: o =
|
|
51344
|
+
pageSizeOptions: o = GE,
|
|
51335
51345
|
maxVisiblePages: s = 5,
|
|
51336
51346
|
showInfo: f = !0,
|
|
51337
51347
|
showPageNumbers: c = !0,
|
|
@@ -51340,7 +51350,7 @@ function I4({
|
|
|
51340
51350
|
labels: p,
|
|
51341
51351
|
className: h
|
|
51342
51352
|
}) {
|
|
51343
|
-
const m = { ...
|
|
51353
|
+
const m = { ..._E, ...p }, g = WE(t, e, s), v = (t - 1) * n + 1, w = Math.min(t * n, r), x = t > 1, L = t < e;
|
|
51344
51354
|
return e === 0 ? null : /* @__PURE__ */ b(
|
|
51345
51355
|
"div",
|
|
51346
51356
|
{
|
|
@@ -51640,7 +51650,7 @@ function XE({
|
|
|
51640
51650
|
onClick: n,
|
|
51641
51651
|
className: "gap-2",
|
|
51642
51652
|
children: [
|
|
51643
|
-
/* @__PURE__ */ l(
|
|
51653
|
+
/* @__PURE__ */ l(_1, { className: "h-4 w-4" }),
|
|
51644
51654
|
"Filtros",
|
|
51645
51655
|
a && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: t.length })
|
|
51646
51656
|
]
|
|
@@ -51837,9 +51847,9 @@ function tA({
|
|
|
51837
51847
|
/* @__PURE__ */ l(at, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ b("div", { className: "space-y-2", children: [
|
|
51838
51848
|
/* @__PURE__ */ l($e, { className: "text-xs text-muted-foreground", children: s ? "Selecionar valores" : "Selecionar valor" }),
|
|
51839
51849
|
/* @__PURE__ */ b("div", { className: "relative", children: [
|
|
51840
|
-
/* @__PURE__ */ l(
|
|
51850
|
+
/* @__PURE__ */ l(G1, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
|
|
51841
51851
|
/* @__PURE__ */ l(
|
|
51842
|
-
|
|
51852
|
+
Gn,
|
|
51843
51853
|
{
|
|
51844
51854
|
type: "text",
|
|
51845
51855
|
placeholder: "Buscar...",
|
|
@@ -51929,7 +51939,7 @@ function tA({
|
|
|
51929
51939
|
/* @__PURE__ */ l(at, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ b("div", { className: "space-y-2", children: [
|
|
51930
51940
|
/* @__PURE__ */ l($e, { className: "text-xs text-muted-foreground", children: "Inserir valor" }),
|
|
51931
51941
|
/* @__PURE__ */ l(
|
|
51932
|
-
|
|
51942
|
+
Gn,
|
|
51933
51943
|
{
|
|
51934
51944
|
type: (a == null ? void 0 : a.type) === "number" ? "number" : "text",
|
|
51935
51945
|
value: Array.isArray(t.value) ? "" : t.value,
|
|
@@ -52040,48 +52050,51 @@ function nA({
|
|
|
52040
52050
|
return "contains";
|
|
52041
52051
|
}
|
|
52042
52052
|
}, J = Ye(async (R) => {
|
|
52043
|
-
g && (u != null && u.onFilterChange) ? await u.onFilterChange(R, y) : (x.clearFilters(), y && x.setFilter(D, y, "contains"), R.forEach((
|
|
52044
|
-
const se = H(
|
|
52045
|
-
x.setFilter(
|
|
52053
|
+
g && (u != null && u.onFilterChange) ? await u.onFilterChange(R, y) : (x.clearFilters(), y && x.setFilter(D, y, "contains"), R.forEach((W) => {
|
|
52054
|
+
const se = H(W.operator);
|
|
52055
|
+
x.setFilter(W.field, W.value, se);
|
|
52046
52056
|
}));
|
|
52047
52057
|
}, [g, u, y, x, D]);
|
|
52048
52058
|
ue(() => {
|
|
52049
|
-
s && (I(s), s.length > 0 &&
|
|
52050
|
-
|
|
52059
|
+
s && (I(s), s.length > 0 && (g && (u != null && u.onFilterChange) ? u.onFilterChange(s, y) : (x.clearFilters(), y && x.setFilter(D, y, "contains"), s.forEach((R) => {
|
|
52060
|
+
const W = H(R.operator);
|
|
52061
|
+
x.setFilter(R.field, R.value, W);
|
|
52062
|
+
}))));
|
|
52063
|
+
}, [JSON.stringify(s)]);
|
|
52051
52064
|
const P = Ye(async (R) => {
|
|
52052
52065
|
N(R), g && (u != null && u.onFilterChange) ? await u.onFilterChange(S, R) : x.setFilter(D, R, "contains");
|
|
52053
52066
|
}, [g, u, S, x, D]), F = (R) => {
|
|
52054
52067
|
if (/^\d{4}-\d{2}-\d{2}/.test(R)) {
|
|
52055
|
-
const
|
|
52056
|
-
if (!isNaN(
|
|
52057
|
-
return
|
|
52068
|
+
const W = /* @__PURE__ */ new Date(R + "T00:00:00");
|
|
52069
|
+
if (!isNaN(W.getTime()))
|
|
52070
|
+
return W.toLocaleDateString("pt-BR");
|
|
52058
52071
|
}
|
|
52059
52072
|
return R;
|
|
52060
52073
|
}, A = S.map((R) => {
|
|
52061
52074
|
var Nt, ln;
|
|
52062
|
-
const
|
|
52075
|
+
const W = a.find((ze) => ze.value === R.field), se = R.operator === "is" ? "" : ` ${R.operator}`;
|
|
52063
52076
|
let tt;
|
|
52064
52077
|
return Array.isArray(R.value) ? tt = R.value.map((ze) => {
|
|
52065
52078
|
var Yt, ar;
|
|
52066
|
-
return ((ar = (Yt =
|
|
52067
|
-
}).join(", ") : (
|
|
52079
|
+
return ((ar = (Yt = W == null ? void 0 : W.options) == null ? void 0 : Yt.find((or) => or.value === ze)) == null ? void 0 : ar.label) || ze;
|
|
52080
|
+
}).join(", ") : (W == null ? void 0 : W.type) === "date" ? tt = F(R.value) : tt = ((ln = (Nt = W == null ? void 0 : W.options) == null ? void 0 : Nt.find((ze) => ze.value === R.value)) == null ? void 0 : ln.label) || R.value, {
|
|
52068
52081
|
id: R.id,
|
|
52069
|
-
label: (
|
|
52082
|
+
label: (W == null ? void 0 : W.label) || R.field,
|
|
52070
52083
|
value: `${se} ${tt}`.trim(),
|
|
52071
52084
|
onRemove: () => {
|
|
52072
52085
|
const ze = S.filter((Yt) => Yt.id !== R.id);
|
|
52073
52086
|
I(ze), J(ze);
|
|
52074
52087
|
}
|
|
52075
52088
|
};
|
|
52076
|
-
}),
|
|
52089
|
+
}), _ = () => {
|
|
52077
52090
|
J(S), k(!1);
|
|
52078
52091
|
}, q = () => {
|
|
52079
52092
|
I([]), g && (u != null && u.onFilterChange) ? u.onFilterChange([], y) : (x.clearFilters(), y && x.setFilter(D, y, "contains"));
|
|
52080
52093
|
}, fe = Ye(async (R) => {
|
|
52081
52094
|
if (g && (u != null && u.onSortChange)) {
|
|
52082
|
-
const
|
|
52095
|
+
const W = w.sort;
|
|
52083
52096
|
let se = "asc";
|
|
52084
|
-
|
|
52097
|
+
W.column === R && (se = W.direction === "asc" ? "desc" : W.direction === "desc" ? null : "asc");
|
|
52085
52098
|
const tt = {
|
|
52086
52099
|
column: se ? R : null,
|
|
52087
52100
|
direction: se
|
|
@@ -52091,19 +52104,19 @@ function nA({
|
|
|
52091
52104
|
x.onSort(R);
|
|
52092
52105
|
}, [g, u, w.sort, x]), Ee = Ye(async (R) => {
|
|
52093
52106
|
g && (u != null && u.onPageChange) ? await u.onPageChange(R, w.pagination.pageSize) : w.pagination.onPageChange && w.pagination.onPageChange(R);
|
|
52094
|
-
}, [g, u, w.pagination]),
|
|
52107
|
+
}, [g, u, w.pagination]), G = Ye(async (R) => {
|
|
52095
52108
|
g && (u != null && u.onPageChange) ? await u.onPageChange(1, R) : w.pagination.onPageSizeChange && w.pagination.onPageSizeChange(R);
|
|
52096
52109
|
}, [g, u, w.pagination]), be = () => {
|
|
52097
|
-
const R = S.length > 0,
|
|
52098
|
-
return R ||
|
|
52110
|
+
const R = S.length > 0, W = y.trim().length > 0;
|
|
52111
|
+
return R || W ? "Nenhum resultado encontrado para os filtros aplicados." : h || "Nenhum dado disponível.";
|
|
52099
52112
|
};
|
|
52100
52113
|
return /* @__PURE__ */ b("div", { className: M("space-y-4", m), children: [
|
|
52101
52114
|
/* @__PURE__ */ b("div", { className: "flex items-center justify-between gap-2", children: [
|
|
52102
52115
|
/* @__PURE__ */ b("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
52103
52116
|
i && /* @__PURE__ */ b("div", { className: "relative max-w-sm flex-1", children: [
|
|
52104
|
-
/* @__PURE__ */ l(
|
|
52117
|
+
/* @__PURE__ */ l(G1, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" }),
|
|
52105
52118
|
/* @__PURE__ */ l(
|
|
52106
|
-
|
|
52119
|
+
Gn,
|
|
52107
52120
|
{
|
|
52108
52121
|
placeholder: n,
|
|
52109
52122
|
value: y,
|
|
@@ -52117,7 +52130,7 @@ function nA({
|
|
|
52117
52130
|
] }),
|
|
52118
52131
|
o && a.length > 0 && /* @__PURE__ */ b(dt, { open: C, onOpenChange: k, children: [
|
|
52119
52132
|
/* @__PURE__ */ l(it, { asChild: !0, children: /* @__PURE__ */ b(B, { variant: "outline", size: "sm", className: "gap-2", children: [
|
|
52120
|
-
/* @__PURE__ */ l(
|
|
52133
|
+
/* @__PURE__ */ l(_1, { className: "h-4 w-4" }),
|
|
52121
52134
|
"Filtros",
|
|
52122
52135
|
S.length > 0 && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: S.length })
|
|
52123
52136
|
] }) }),
|
|
@@ -52148,7 +52161,7 @@ function nA({
|
|
|
52148
52161
|
B,
|
|
52149
52162
|
{
|
|
52150
52163
|
size: "sm",
|
|
52151
|
-
onClick:
|
|
52164
|
+
onClick: _,
|
|
52152
52165
|
children: "Aplicar Filtros"
|
|
52153
52166
|
}
|
|
52154
52167
|
)
|
|
@@ -52186,17 +52199,17 @@ function nA({
|
|
|
52186
52199
|
)) }) }),
|
|
52187
52200
|
/* @__PURE__ */ l(k4, { children: p ? (
|
|
52188
52201
|
// SKELETON ROWS - limitar a max 15 para performance
|
|
52189
|
-
Array.from({ length: Math.min(w.pagination.pageSize, 15) }).map((R,
|
|
52202
|
+
Array.from({ length: Math.min(w.pagination.pageSize, 15) }).map((R, W) => /* @__PURE__ */ l(Xi, { children: e.map((se, tt) => /* @__PURE__ */ l($o, { className: se.className, children: /* @__PURE__ */ l(br, { className: "h-4 w-full" }) }, tt)) }, `skeleton-${W}`))
|
|
52190
52203
|
) : v.length > 0 ? (
|
|
52191
52204
|
// DADOS NORMAIS
|
|
52192
|
-
v.map((R,
|
|
52205
|
+
v.map((R, W) => /* @__PURE__ */ l(Xi, { children: e.map((se) => /* @__PURE__ */ l(
|
|
52193
52206
|
$o,
|
|
52194
52207
|
{
|
|
52195
52208
|
className: M(se.className, se.align ? `text-${se.align}` : "text-left"),
|
|
52196
|
-
children: se.render ? se.render(R[se.key], R,
|
|
52209
|
+
children: se.render ? se.render(R[se.key], R, W) : R[se.key]
|
|
52197
52210
|
},
|
|
52198
52211
|
String(se.key)
|
|
52199
|
-
)) },
|
|
52212
|
+
)) }, W))
|
|
52200
52213
|
) : (
|
|
52201
52214
|
// EMPTY STATE
|
|
52202
52215
|
/* @__PURE__ */ l(Xi, { children: /* @__PURE__ */ l(
|
|
@@ -52217,7 +52230,7 @@ function nA({
|
|
|
52217
52230
|
pageSize: w.pagination.pageSize,
|
|
52218
52231
|
totalItems: w.pagination.totalItems,
|
|
52219
52232
|
onPageChange: Ee,
|
|
52220
|
-
onPageSizeChange:
|
|
52233
|
+
onPageSizeChange: G,
|
|
52221
52234
|
pageSizeOptions: f
|
|
52222
52235
|
}
|
|
52223
52236
|
)
|
|
@@ -52289,7 +52302,7 @@ function Dz({
|
|
|
52289
52302
|
const a = t.filter((s) => s.isFavorite), o = t.filter((s) => !s.isFavorite);
|
|
52290
52303
|
return /* @__PURE__ */ b(sf, { children: [
|
|
52291
52304
|
/* @__PURE__ */ l(ff, { asChild: !0, children: /* @__PURE__ */ b(B, { variant: "outline", size: "sm", className: M("gap-2", i), children: [
|
|
52292
|
-
/* @__PURE__ */ l(
|
|
52305
|
+
/* @__PURE__ */ l(Gc, { className: "h-4 w-4" }),
|
|
52293
52306
|
"Filtros salvos",
|
|
52294
52307
|
t.length > 0 && /* @__PURE__ */ b("span", { className: "text-xs text-muted-foreground", children: [
|
|
52295
52308
|
"(",
|
|
@@ -52422,7 +52435,7 @@ function Ez({
|
|
|
52422
52435
|
/* @__PURE__ */ b("div", { className: "space-y-2", children: [
|
|
52423
52436
|
/* @__PURE__ */ l($e, { htmlFor: "task-name", children: "Nome da Tarefa *" }),
|
|
52424
52437
|
/* @__PURE__ */ l(
|
|
52425
|
-
|
|
52438
|
+
Gn,
|
|
52426
52439
|
{
|
|
52427
52440
|
id: "task-name",
|
|
52428
52441
|
value: o.name,
|
|
@@ -52642,7 +52655,7 @@ const oA = (t) => {
|
|
|
52642
52655
|
case "status_change":
|
|
52643
52656
|
return /* @__PURE__ */ l(Uv, { className: "h-4 w-4 text-blue-600" });
|
|
52644
52657
|
case "comment":
|
|
52645
|
-
return /* @__PURE__ */ l(
|
|
52658
|
+
return /* @__PURE__ */ l(_c, { className: "h-4 w-4 text-slate-500" });
|
|
52646
52659
|
case "upload":
|
|
52647
52660
|
return /* @__PURE__ */ l(xa, { className: "h-4 w-4 text-orange-600" });
|
|
52648
52661
|
case "assignment":
|
|
@@ -53174,8 +53187,8 @@ export {
|
|
|
53174
53187
|
WA as Alert,
|
|
53175
53188
|
ZA as AlertDescription,
|
|
53176
53189
|
HA as AlertDialog,
|
|
53177
|
-
|
|
53178
|
-
|
|
53190
|
+
_A as AlertDialogAction,
|
|
53191
|
+
GA as AlertDialogCancel,
|
|
53179
53192
|
FA as AlertDialogContent,
|
|
53180
53193
|
VA as AlertDialogDescription,
|
|
53181
53194
|
YA as AlertDialogFooter,
|
|
@@ -53235,10 +53248,10 @@ export {
|
|
|
53235
53248
|
P8 as CommandSeparator,
|
|
53236
53249
|
B8 as CommandShortcut,
|
|
53237
53250
|
N8 as CommentSystem,
|
|
53238
|
-
|
|
53251
|
+
G7 as CompactPageHeader,
|
|
53239
53252
|
H8 as ContextMenu,
|
|
53240
53253
|
$8 as ContextMenuCheckboxItem,
|
|
53241
|
-
|
|
53254
|
+
G8 as ContextMenuContent,
|
|
53242
53255
|
F8 as ContextMenuGroup,
|
|
53243
53256
|
W8 as ContextMenuItem,
|
|
53244
53257
|
q8 as ContextMenuLabel,
|
|
@@ -53248,7 +53261,7 @@ export {
|
|
|
53248
53261
|
K8 as ContextMenuSeparator,
|
|
53249
53262
|
X8 as ContextMenuShortcut,
|
|
53250
53263
|
Y8 as ContextMenuSub,
|
|
53251
|
-
|
|
53264
|
+
_8 as ContextMenuSubContent,
|
|
53252
53265
|
V8 as ContextMenuSubTrigger,
|
|
53253
53266
|
U8 as ContextMenuTrigger,
|
|
53254
53267
|
u8 as ContractPrint,
|
|
@@ -53314,7 +53327,7 @@ export {
|
|
|
53314
53327
|
m7 as HoverCardTrigger,
|
|
53315
53328
|
Uz as Illustrations,
|
|
53316
53329
|
py as ImageWithFallback,
|
|
53317
|
-
|
|
53330
|
+
Gn as Input,
|
|
53318
53331
|
pE as InputGroup,
|
|
53319
53332
|
N1 as InputGroupAddon,
|
|
53320
53333
|
M7 as InputGroupButton,
|
|
@@ -53352,7 +53365,7 @@ export {
|
|
|
53352
53365
|
F7 as NavigationMenuList,
|
|
53353
53366
|
Y7 as NavigationMenuTrigger,
|
|
53354
53367
|
Vc as NumberInput,
|
|
53355
|
-
|
|
53368
|
+
_7 as PageHeader,
|
|
53356
53369
|
W7 as Pagination,
|
|
53357
53370
|
$7 as PaginationContent,
|
|
53358
53371
|
X7 as PaginationEllipsis,
|
|
@@ -53422,7 +53435,6 @@ export {
|
|
|
53422
53435
|
br as Skeleton,
|
|
53423
53436
|
JE as Slider,
|
|
53424
53437
|
FE as SocialButton,
|
|
53425
|
-
jz as Sonner,
|
|
53426
53438
|
pA as SuccessStateIllustration,
|
|
53427
53439
|
YE as Switch,
|
|
53428
53440
|
L4 as Table,
|
|
@@ -53443,6 +53455,7 @@ export {
|
|
|
53443
53455
|
y4 as Textarea,
|
|
53444
53456
|
Zs as TimePicker,
|
|
53445
53457
|
Az as Timeline,
|
|
53458
|
+
jz as Toaster,
|
|
53446
53459
|
zj as Toggle,
|
|
53447
53460
|
Bz as ToggleGroup,
|
|
53448
53461
|
Hz as ToggleGroupItem,
|