@factorialco/f0-react 1.414.1 → 1.415.0
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/F0AiChat-CrcLUV-I.js +63788 -0
- package/dist/F0AiChat.css +1 -1
- package/dist/{F0AnalyticsDashboard-C74qJ7sF.js → F0AnalyticsDashboard-BhvG-yU1.js} +2 -2
- package/dist/F0ChatDashboard.d.ts +5 -5
- package/dist/F0ChatDashboard.js +1 -1
- package/dist/{F0HILActionConfirmation-BvAjbJKj.js → F0HILActionConfirmation-Bu877U3G.js} +35 -35
- package/dist/{F0Input-C9w04Jpr.js → F0Input-Ctwd5zZH.js} +23551 -21684
- package/dist/ai.d.ts +34 -5
- package/dist/ai.js +42 -38
- package/dist/experimental.d.ts +5 -5
- package/dist/experimental.js +402 -402
- package/dist/f0.d.ts +498 -19
- package/dist/f0.js +4313 -11766
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/index-BZMnPkIB.js +22909 -0
- package/dist/styles.css +1 -1
- package/dist/useDataCollectionSource-BH2-U4PN.js +8206 -0
- package/package.json +2 -1
- package/dist/F0AiChat-CBy7rZCW.js +0 -29274
- package/dist/index-c9MQbjVB.js +0 -48076
- package/dist/index.css +0 -1
- package/dist/useDataCollectionSource-BzzlFsAB.js +0 -10118
package/dist/experimental.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cY as mf, T as _r, ao as gf, M as bf, cZ as As, c_ as ga, c$ as Bi, t as k, z as q, w as rt, u as de, cz as wf, cA as xf, cB as yf, d0 as vf, d1 as kf, a5 as Le, cC as Cf, K as Et, G as H, at as Sf, au as Nf, B as Ht, aE as If, av as Af, F as B, c4 as _s, E, cr as it, d2 as _f, d3 as Ef, az as Tf, cD as Df, ay as Rf, aI as Tt, c3 as Lf, cs as Dt, aO as kn, d4 as Es, ar as cn, Q as mt, d5 as ba, d6 as Of, d7 as ko, d8 as tn, d9 as Ts, da as jn, db as Er, dc as Mf, dd as wa, de as Pf, df as Ds, dg as Cn, dh as Re, di as Ff, dj as zf, dk as kt, dl as gi, dm as $f, dn as yn, dp as Kt, dq as Bf, y as ue, dr as jf, ds as Hf, dt as Vf, du as Wf, dv as Uf, O as $e, D as fe, cu as Rs, bL as Xr, dw as xa, dx as Ls, ap as Gf, dy as Kf, dz as qf, dA as Jf, dB as Yf, b7 as nt, cF as ya, dC as Xf, P as V, x as va, dD as ka, dE as Zf, aP as Os, U as Co, W as So, c8 as Qf, dF as eh, a7 as dn, dG as th, cp as nh, cq as rh, cK as Zr, cx as Ca, cL as Sa, b9 as Na, cf as ih, bi as Tr, dH as sh, dI as oh, dJ as lh, dK as ah, dL as ch, a3 as dh, a4 as uh, a6 as fh, dM as hh, dN as Ia, dO as ph, dP as Aa, dQ as mh, dR as gh, dS as bh, dT as No, dU as _a, dV as ji, ac as Hi, dW as wh, dX as xh, bK as Hn, aM as Ea, bN as yh, bM as vh, c0 as kh, aN as nn, dY as Ch, af as er, cj as Vi, dZ as Sh, b2 as Ta, b8 as Nh, bm as Da, bk as Ms, $ as Ih, bn as Ah, b5 as Ps, ah as Ra, ce as La, d_ as _h, b1 as Eh, ch as Th, d$ as Dh, ae as Oa, J as Rh, C as st, aT as Fs, ck as zs, cl as $s, e0 as Ma, aU as Bs, ct as Pa, e1 as Lh, e2 as Oh, e3 as Mh, e4 as Ph, aV as Fh, e5 as zh, b3 as $h, b$ as Bh, aq as jh, e6 as Fa, e7 as Hh, cN as Vh } from "./F0Input-Ctwd5zZH.js";
|
|
2
|
+
import { e8 as GI, aG as KI, c1 as qI, eb as JI, ec as YI, aB as XI, c9 as ZI, cc as QI, ca as eA, ea as tA, c2 as nA, b6 as rA, e9 as iA } from "./F0Input-Ctwd5zZH.js";
|
|
3
3
|
import { jsx as c, jsxs as g, Fragment as ne } from "react/jsx-runtime";
|
|
4
4
|
import * as Sn from "react";
|
|
5
5
|
import z, { PureComponent as Wh, forwardRef as P, useRef as K, useTransition as Uh, useState as L, useLayoutEffect as za, useContext as js, createContext as Hs, useCallback as X, useMemo as ee, useEffect as W, useId as $a, useImperativeHandle as Ba, memo as ja, Fragment as Gh, isValidElement as Kh, cloneElement as Ha, Children as Va } from "react";
|
|
6
|
-
import { f as Jt,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { f as Jt, a3 as Nn, e as tr, a4 as qh, L as bi, a5 as Jh, A as Yh, i as nr, k as Xh, G as Zh, g as Io, a6 as Qh, j as Ao, n as ep, a7 as Wa, a8 as Ua, a9 as tp, C as np, a1 as rp, T as _o, w as ip, x as sp, z as op, J as lp, K as ap, s as cp, aa as Ga, ab as dp, ac as up, ad as fp, _ as Wi, ae as hp, af as pp, a2 as Ka, M as mp, N as gp, P as bp, Q as wp, V as xp, O as yp, ag as Eo, ah as vp, ai as kp, l as Cp } from "./index-BZMnPkIB.js";
|
|
7
|
+
import { W as oA, R as lA, U as aA, $ as cA, a0 as dA } from "./index-BZMnPkIB.js";
|
|
8
|
+
import { aI as Sp, aJ as Np, aK as To, aL as rr, aM as Ip, aN as Ap, _ as _p, aO as qa, aP as Ja, J as Ya, aQ as He, aR as ot, aS as Ee, aT as Ep, aU as gr, aV as Ge, aW as Xa, aX as Me, aY as Vs, aZ as Be, a_ as Do, a$ as Tp, b0 as Za, b1 as Ie, b2 as Fe, b3 as In, b4 as Dr, b5 as Qa, b6 as Dp, b7 as Vt, b8 as Rp, b9 as Lp, ba as Op, bb as Vn, bc as Wn, bd as Ws, be as Mp, bf as ec, bg as tc, bh as nc, bi as Pp, bj as rc, bk as ic, bl as sc, bm as oc, bn as lc, bo as ac, bp as Fp, a6 as Un, bq as zp, br as $p, bs as Bp, bt as jp, bu as Hp, bv as Vp, bw as Ro, bx as Wp, by as Up, bz as Gp, bA as Kp, $ as qp, bB as Jp, bC as Yp, bD as Xp, bE as Zp, bF as Qp, bG as em, bH as tm, bI as nm, bJ as rm, bK as cc, bL as dc, bM as Lo, bN as im, a5 as sm, u as uc, g as om, a as lm, bO as am, F as cm, bP as fc, bQ as hc, bR as dm, bS as um, bT as fm, bU as hm, bV as pm, bW as mm, bX as gm, bY as bm, bZ as wm, b_ as xm, b$ as ym, c0 as vm, c1 as km, c2 as Cm, c3 as Sm, c4 as Oo, c5 as Mo, c6 as Po, c7 as Nm, c8 as Im } from "./F0AiChat-CrcLUV-I.js";
|
|
9
|
+
import { cg as fA, cf as hA, ca as pA, c9 as mA, Z as gA, cl as bA, cj as wA, cd as xA, ce as yA, a9 as vA, ck as kA, cc as CA, ci as SA, ch as NA, cb as IA } from "./F0AiChat-CrcLUV-I.js";
|
|
10
|
+
import { i as Am, M as _m, a as Fo, R as pc, u as Em, S as Tm, O as Dm } from "./useDataCollectionSource-BH2-U4PN.js";
|
|
11
|
+
import { c as _A, g as EA, h as TA, d as DA, e as RA, f as LA } from "./useDataCollectionSource-BH2-U4PN.js";
|
|
12
12
|
import './experimental.css';const Rm = mf("Search", [
|
|
13
13
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
14
14
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -428,7 +428,7 @@ var Gn = /* @__PURE__ */ (function(t) {
|
|
|
428
428
|
key: "renderPolygon",
|
|
429
429
|
value: function() {
|
|
430
430
|
var r = this.props, i = r.points, s = r.isAnimationActive, o = r.isRange, l = this.state.prevPoints;
|
|
431
|
-
return s && i && i.length && !o && (!l || !
|
|
431
|
+
return s && i && i.length && !o && (!l || !Am(l, i)) ? this.renderPolygonWithAnimation() : this.renderPolygonStatically(i);
|
|
432
432
|
}
|
|
433
433
|
}, {
|
|
434
434
|
key: "render",
|
|
@@ -534,8 +534,8 @@ var ig = ep({
|
|
|
534
534
|
outerRadius: "80%"
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
|
-
const wc = P(({ className: t, items: e }, n) => /* @__PURE__ */ c(
|
|
538
|
-
/* @__PURE__ */ c(
|
|
537
|
+
const wc = P(({ className: t, items: e }, n) => /* @__PURE__ */ c(Sp, { ref: n, className: t, children: /* @__PURE__ */ g("div", { className: "flex items-center", children: [
|
|
538
|
+
/* @__PURE__ */ c(Np, {}),
|
|
539
539
|
/* @__PURE__ */ c(bf, { items: e, children: /* @__PURE__ */ c("button", { className: "rounded-sm px-1.5 py-0.5 font-medium text-f1-foreground no-underline transition-colors hover:bg-f1-background-secondary", children: "..." }) })
|
|
540
540
|
] }) }));
|
|
541
541
|
wc.displayName = "CollapsedBreadcrumbItem";
|
|
@@ -626,8 +626,8 @@ function cg({ breadcrumbs: t, append: e }) {
|
|
|
626
626
|
});
|
|
627
627
|
}, u = new ResizeObserver(f);
|
|
628
628
|
return u.observe(a), f(), () => u.disconnect();
|
|
629
|
-
}, [t, e]), !t.length || s && !s.headItem ? /* @__PURE__ */ c(
|
|
630
|
-
|
|
629
|
+
}, [t, e]), !t.length || s && !s.headItem ? /* @__PURE__ */ c(To, { ref: n, className: "w-full" }) : /* @__PURE__ */ g(
|
|
630
|
+
To,
|
|
631
631
|
{
|
|
632
632
|
ref: n,
|
|
633
633
|
className: "w-full overflow-x-hidden",
|
|
@@ -653,7 +653,7 @@ function cg({ breadcrumbs: t, append: e }) {
|
|
|
653
653
|
))
|
|
654
654
|
}
|
|
655
655
|
),
|
|
656
|
-
s && s.headItem && /* @__PURE__ */ g(
|
|
656
|
+
s && s.headItem && /* @__PURE__ */ g(Ip, { children: [
|
|
657
657
|
/* @__PURE__ */ c(
|
|
658
658
|
rr,
|
|
659
659
|
{
|
|
@@ -1061,7 +1061,7 @@ const kc = ({
|
|
|
1061
1061
|
Go,
|
|
1062
1062
|
{
|
|
1063
1063
|
size: "sm",
|
|
1064
|
-
icon:
|
|
1064
|
+
icon: Ap,
|
|
1065
1065
|
className: "text-[hsl(var(--promote-50))] outline-none",
|
|
1066
1066
|
variants: Ko,
|
|
1067
1067
|
initial: r ? "enterFromUnfavorite" : "initial",
|
|
@@ -1080,7 +1080,7 @@ const kc = ({
|
|
|
1080
1080
|
{
|
|
1081
1081
|
size: "sm",
|
|
1082
1082
|
whileTap: { scale: 0.8 },
|
|
1083
|
-
icon:
|
|
1083
|
+
icon: _p,
|
|
1084
1084
|
className: "outline-none",
|
|
1085
1085
|
variants: Ko,
|
|
1086
1086
|
initial: r ? "enterFromFavorite" : "initial",
|
|
@@ -1138,7 +1138,7 @@ const kc = ({
|
|
|
1138
1138
|
Ht,
|
|
1139
1139
|
{
|
|
1140
1140
|
variant: "outline",
|
|
1141
|
-
icon:
|
|
1141
|
+
icon: qa,
|
|
1142
1142
|
hideLabel: !0,
|
|
1143
1143
|
label: e,
|
|
1144
1144
|
pressed: x,
|
|
@@ -1339,7 +1339,7 @@ const kc = ({
|
|
|
1339
1339
|
{
|
|
1340
1340
|
title: t,
|
|
1341
1341
|
description: r,
|
|
1342
|
-
icon: /* @__PURE__ */ c(H, { icon:
|
|
1342
|
+
icon: /* @__PURE__ */ c(H, { icon: qa, size: "lg", className: "block" }),
|
|
1343
1343
|
button: /* @__PURE__ */ c(it, { href: n, children: /* @__PURE__ */ c(B, { label: e }) })
|
|
1344
1344
|
}
|
|
1345
1345
|
), vg = ({
|
|
@@ -1502,7 +1502,7 @@ function KN({
|
|
|
1502
1502
|
hideLabel: !0,
|
|
1503
1503
|
onClick: () => u(),
|
|
1504
1504
|
label: "Open main menu",
|
|
1505
|
-
icon:
|
|
1505
|
+
icon: Ja
|
|
1506
1506
|
}
|
|
1507
1507
|
) })
|
|
1508
1508
|
}
|
|
@@ -1594,7 +1594,7 @@ function KN({
|
|
|
1594
1594
|
] }),
|
|
1595
1595
|
/* @__PURE__ */ g("div", { className: "flex items-center gap-3", children: [
|
|
1596
1596
|
/* @__PURE__ */ c(
|
|
1597
|
-
|
|
1597
|
+
Ya,
|
|
1598
1598
|
{
|
|
1599
1599
|
tooltip: a,
|
|
1600
1600
|
autoOpen: d
|
|
@@ -1663,10 +1663,10 @@ const Mr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1663
1663
|
const u = gr(f.node, (x) => x.type === s.nodes.detailsContent);
|
|
1664
1664
|
if (!u.length || Mr(f.start + u[0].pos + 1, t))
|
|
1665
1665
|
return !1;
|
|
1666
|
-
const p = n.doc.resolve(f.pos + f.node.nodeSize), m =
|
|
1666
|
+
const p = n.doc.resolve(f.pos + f.node.nodeSize), m = Do.findFrom(p, 1, !1);
|
|
1667
1667
|
if (!m)
|
|
1668
1668
|
return !1;
|
|
1669
|
-
const { tr: b } = n, w = new
|
|
1669
|
+
const { tr: b } = n, w = new Do(m);
|
|
1670
1670
|
return b.setSelection(w), b.scrollIntoView(), r.dispatch(b), !0;
|
|
1671
1671
|
}, Ig = He.create({
|
|
1672
1672
|
name: "details",
|
|
@@ -1815,7 +1815,7 @@ const Mr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1815
1815
|
const o = Mr(s.after() + 1, t), l = o ? e.doc.nodeAt(s.after()) : s.node(-2);
|
|
1816
1816
|
if (!l)
|
|
1817
1817
|
return !1;
|
|
1818
|
-
const a = o ? 0 : s.indexAfter(-1), d =
|
|
1818
|
+
const a = o ? 0 : s.indexAfter(-1), d = Xa(l.contentMatchAt(a));
|
|
1819
1819
|
if (!d || !l.canReplaceWith(a, a, d))
|
|
1820
1820
|
return !1;
|
|
1821
1821
|
const f = d.createAndFill();
|
|
@@ -1838,7 +1838,7 @@ const Mr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1838
1838
|
key: new Ee("detailsSelection"),
|
|
1839
1839
|
appendTransaction: (t, e, n) => {
|
|
1840
1840
|
const { editor: r, type: i } = this;
|
|
1841
|
-
if (!t.some((w) => w.selectionSet) || !e.selection.empty || !n.selection.empty || !
|
|
1841
|
+
if (!t.some((w) => w.selectionSet) || !e.selection.empty || !n.selection.empty || !Ep(n, i.name))
|
|
1842
1842
|
return;
|
|
1843
1843
|
const { $from: l } = n.selection;
|
|
1844
1844
|
if (Mr(l.pos, r))
|
|
@@ -1921,7 +1921,7 @@ const Mr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
|
|
|
1921
1921
|
const x = i.node(-3);
|
|
1922
1922
|
if (!x)
|
|
1923
1923
|
return !1;
|
|
1924
|
-
const v = i.indexAfter(-3), S =
|
|
1924
|
+
const v = i.indexAfter(-3), S = Xa(x.contentMatchAt(v));
|
|
1925
1925
|
if (!S || !x.canReplaceWith(v, v, S))
|
|
1926
1926
|
return !1;
|
|
1927
1927
|
const _ = S.createAndFill();
|
|
@@ -2259,7 +2259,7 @@ var Q = class ut extends Me {
|
|
|
2259
2259
|
if (!u)
|
|
2260
2260
|
throw RangeError(`No cell with offset ${f} found`);
|
|
2261
2261
|
const h = s + f + 1;
|
|
2262
|
-
return new
|
|
2262
|
+
return new Za(
|
|
2263
2263
|
l.resolve(h),
|
|
2264
2264
|
l.resolve(h + u.content.size)
|
|
2265
2265
|
);
|
|
@@ -2460,7 +2460,7 @@ function Bg({ $from: t, $to: e }) {
|
|
|
2460
2460
|
function jg(t, e, n) {
|
|
2461
2461
|
const r = (e || t).selection, i = (e || t).doc;
|
|
2462
2462
|
let s, o;
|
|
2463
|
-
if (r instanceof
|
|
2463
|
+
if (r instanceof Qa && (o = r.node.type.spec.tableRole)) {
|
|
2464
2464
|
if (o == "cell" || o == "header_cell")
|
|
2465
2465
|
s = Q.create(i, r.from);
|
|
2466
2466
|
else if (o == "row") {
|
|
@@ -3036,7 +3036,7 @@ function lb(t, e) {
|
|
|
3036
3036
|
}
|
|
3037
3037
|
function Ji(t, e) {
|
|
3038
3038
|
const n = t.createAndFill();
|
|
3039
|
-
return new
|
|
3039
|
+
return new Dp(n).replace(0, n.content.size, e).doc;
|
|
3040
3040
|
}
|
|
3041
3041
|
function ab({ width: t, height: e, rows: n }, r, i) {
|
|
3042
3042
|
if (t != r) {
|
|
@@ -3183,7 +3183,7 @@ function rl(t, e, n, r, i) {
|
|
|
3183
3183
|
)
|
|
3184
3184
|
), e(u);
|
|
3185
3185
|
}
|
|
3186
|
-
var db =
|
|
3186
|
+
var db = Tp({
|
|
3187
3187
|
ArrowLeft: sr("horiz", -1),
|
|
3188
3188
|
ArrowRight: sr("horiz", 1),
|
|
3189
3189
|
ArrowUp: sr("vert", -1),
|
|
@@ -3833,7 +3833,7 @@ var lr = ({ editor: t }) => {
|
|
|
3833
3833
|
if (!Lb(e))
|
|
3834
3834
|
return !1;
|
|
3835
3835
|
let n = 0;
|
|
3836
|
-
const r =
|
|
3836
|
+
const r = Op(e.ranges[0].$from, (s) => s.type.name === "table");
|
|
3837
3837
|
return r?.node.descendants((s) => {
|
|
3838
3838
|
if (s.type.name === "table")
|
|
3839
3839
|
return !1;
|
|
@@ -4003,7 +4003,7 @@ var Fb = Pb, zb = He.create({
|
|
|
4003
4003
|
storage: t.storage
|
|
4004
4004
|
};
|
|
4005
4005
|
return {
|
|
4006
|
-
tableRole:
|
|
4006
|
+
tableRole: Rp(Lp(t, "tableRole", e))
|
|
4007
4007
|
};
|
|
4008
4008
|
}
|
|
4009
4009
|
}), $b = Vt.create({
|
|
@@ -4022,7 +4022,7 @@ function jb(t) {
|
|
|
4022
4022
|
return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
4023
4023
|
}
|
|
4024
4024
|
function Hb(t, e, n) {
|
|
4025
|
-
const i =
|
|
4025
|
+
const i = ba((n || {}).ignore || []), s = Vb(e);
|
|
4026
4026
|
let o = -1;
|
|
4027
4027
|
for (; ++o < s.length; )
|
|
4028
4028
|
Of(t, "text", l);
|
|
@@ -4622,7 +4622,7 @@ function P0(t, e) {
|
|
|
4622
4622
|
return Mf(t, function(r) {
|
|
4623
4623
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
4624
4624
|
return n = !0, Pf;
|
|
4625
|
-
}), !!((!t.depth || t.depth < 3) &&
|
|
4625
|
+
}), !!((!t.depth || t.depth < 3) && wa(t) && (e.options.setext || n));
|
|
4626
4626
|
}
|
|
4627
4627
|
function F0(t, e, n, r) {
|
|
4628
4628
|
const i = Math.max(Math.min(6, t.depth || 1), 1), s = n.createTracker(r);
|
|
@@ -4733,7 +4733,7 @@ function j0() {
|
|
|
4733
4733
|
return "`";
|
|
4734
4734
|
}
|
|
4735
4735
|
function Uc(t, e) {
|
|
4736
|
-
const n =
|
|
4736
|
+
const n = wa(t);
|
|
4737
4737
|
return !!(!e.options.resourceLink && // If there’s a url…
|
|
4738
4738
|
t.url && // And there’s a no title…
|
|
4739
4739
|
!t.title && // And the content of `node` is a single text node…
|
|
@@ -4909,7 +4909,7 @@ function J0(t, e, n, r) {
|
|
|
4909
4909
|
}
|
|
4910
4910
|
const Y0 = (
|
|
4911
4911
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
4912
|
-
|
|
4912
|
+
ba([
|
|
4913
4913
|
"break",
|
|
4914
4914
|
"delete",
|
|
4915
4915
|
"emphasis",
|
|
@@ -4973,10 +4973,10 @@ function Jc(t, e, n, r) {
|
|
|
4973
4973
|
function Q0(t, e, n) {
|
|
4974
4974
|
return n.options.strong || "*";
|
|
4975
4975
|
}
|
|
4976
|
-
function
|
|
4976
|
+
function e1(t, e, n, r) {
|
|
4977
4977
|
return n.safe(t.value, r);
|
|
4978
4978
|
}
|
|
4979
|
-
function
|
|
4979
|
+
function t1(t) {
|
|
4980
4980
|
const e = t.options.ruleRepetition || 3;
|
|
4981
4981
|
if (e < 3)
|
|
4982
4982
|
throw new Error(
|
|
@@ -4984,8 +4984,8 @@ function tw(t) {
|
|
|
4984
4984
|
);
|
|
4985
4985
|
return e;
|
|
4986
4986
|
}
|
|
4987
|
-
function
|
|
4988
|
-
const r = (qc(n) + (n.options.ruleSpaces ? " " : "")).repeat(
|
|
4987
|
+
function n1(t, e, n) {
|
|
4988
|
+
const r = (qc(n) + (n.options.ruleSpaces ? " " : "")).repeat(t1(n));
|
|
4989
4989
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
4990
4990
|
}
|
|
4991
4991
|
const Yc = {
|
|
@@ -5007,27 +5007,27 @@ const Yc = {
|
|
|
5007
5007
|
paragraph: J0,
|
|
5008
5008
|
root: X0,
|
|
5009
5009
|
strong: Jc,
|
|
5010
|
-
text:
|
|
5011
|
-
thematicBreak:
|
|
5010
|
+
text: e1,
|
|
5011
|
+
thematicBreak: n1
|
|
5012
5012
|
};
|
|
5013
|
-
function
|
|
5013
|
+
function r1() {
|
|
5014
5014
|
return {
|
|
5015
5015
|
enter: {
|
|
5016
|
-
table:
|
|
5016
|
+
table: i1,
|
|
5017
5017
|
tableData: hl,
|
|
5018
5018
|
tableHeader: hl,
|
|
5019
|
-
tableRow:
|
|
5019
|
+
tableRow: o1
|
|
5020
5020
|
},
|
|
5021
5021
|
exit: {
|
|
5022
|
-
codeText:
|
|
5023
|
-
table:
|
|
5022
|
+
codeText: l1,
|
|
5023
|
+
table: s1,
|
|
5024
5024
|
tableData: Si,
|
|
5025
5025
|
tableHeader: Si,
|
|
5026
5026
|
tableRow: Si
|
|
5027
5027
|
}
|
|
5028
5028
|
};
|
|
5029
5029
|
}
|
|
5030
|
-
function
|
|
5030
|
+
function i1(t) {
|
|
5031
5031
|
const e = t._align;
|
|
5032
5032
|
this.enter(
|
|
5033
5033
|
{
|
|
@@ -5040,10 +5040,10 @@ function iw(t) {
|
|
|
5040
5040
|
t
|
|
5041
5041
|
), this.data.inTable = !0;
|
|
5042
5042
|
}
|
|
5043
|
-
function
|
|
5043
|
+
function s1(t) {
|
|
5044
5044
|
this.exit(t), this.data.inTable = void 0;
|
|
5045
5045
|
}
|
|
5046
|
-
function
|
|
5046
|
+
function o1(t) {
|
|
5047
5047
|
this.enter({ type: "tableRow", children: [] }, t);
|
|
5048
5048
|
}
|
|
5049
5049
|
function Si(t) {
|
|
@@ -5052,16 +5052,16 @@ function Si(t) {
|
|
|
5052
5052
|
function hl(t) {
|
|
5053
5053
|
this.enter({ type: "tableCell", children: [] }, t);
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function l1(t) {
|
|
5056
5056
|
let e = this.resume();
|
|
5057
|
-
this.data.inTable && (e = e.replace(/\\([\\|])/g,
|
|
5057
|
+
this.data.inTable && (e = e.replace(/\\([\\|])/g, a1));
|
|
5058
5058
|
const n = this.stack[this.stack.length - 1];
|
|
5059
5059
|
n.type, n.value = e, this.exit(t);
|
|
5060
5060
|
}
|
|
5061
|
-
function
|
|
5061
|
+
function a1(t, e) {
|
|
5062
5062
|
return e === "|" ? e : t;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function c1(t) {
|
|
5065
5065
|
const e = t || {}, n = e.tableCellPadding, r = e.tablePipeAlign, i = e.stringLength, s = n ? " " : "|";
|
|
5066
5066
|
return {
|
|
5067
5067
|
unsafe: [
|
|
@@ -5138,26 +5138,26 @@ function cw(t) {
|
|
|
5138
5138
|
return b.stack.includes("tableCell") && (w = w.replace(/\|/g, "\\$&")), w;
|
|
5139
5139
|
}
|
|
5140
5140
|
}
|
|
5141
|
-
function
|
|
5141
|
+
function d1() {
|
|
5142
5142
|
return {
|
|
5143
5143
|
exit: {
|
|
5144
5144
|
taskListCheckValueChecked: pl,
|
|
5145
5145
|
taskListCheckValueUnchecked: pl,
|
|
5146
|
-
paragraph:
|
|
5146
|
+
paragraph: f1
|
|
5147
5147
|
}
|
|
5148
5148
|
};
|
|
5149
5149
|
}
|
|
5150
|
-
function
|
|
5150
|
+
function u1() {
|
|
5151
5151
|
return {
|
|
5152
5152
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
5153
|
-
handlers: { listItem:
|
|
5153
|
+
handlers: { listItem: h1 }
|
|
5154
5154
|
};
|
|
5155
5155
|
}
|
|
5156
5156
|
function pl(t) {
|
|
5157
5157
|
const e = this.stack[this.stack.length - 2];
|
|
5158
5158
|
e.type, e.checked = t.type === "taskListCheckValueChecked";
|
|
5159
5159
|
}
|
|
5160
|
-
function
|
|
5160
|
+
function f1(t) {
|
|
5161
5161
|
const e = this.stack[this.stack.length - 2];
|
|
5162
5162
|
if (e && e.type === "listItem" && typeof e.checked == "boolean") {
|
|
5163
5163
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -5178,7 +5178,7 @@ function fw(t) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
this.exit(t);
|
|
5180
5180
|
}
|
|
5181
|
-
function
|
|
5181
|
+
function h1(t, e, n, r) {
|
|
5182
5182
|
const i = t.children[0], s = typeof t.checked == "boolean" && i && i.type === "paragraph", o = "[" + (t.checked ? "x" : " ") + "] ", l = n.createTracker(r);
|
|
5183
5183
|
s && l.move(o);
|
|
5184
5184
|
let a = Yc.listItem(t, e, n, {
|
|
@@ -5190,55 +5190,55 @@ function hw(t, e, n, r) {
|
|
|
5190
5190
|
return f + o;
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5193
|
+
function p1() {
|
|
5194
5194
|
return [
|
|
5195
5195
|
Gb(),
|
|
5196
5196
|
h0(),
|
|
5197
5197
|
b0(),
|
|
5198
|
-
|
|
5199
|
-
|
|
5198
|
+
r1(),
|
|
5199
|
+
d1()
|
|
5200
5200
|
];
|
|
5201
5201
|
}
|
|
5202
|
-
function
|
|
5202
|
+
function m1(t) {
|
|
5203
5203
|
return {
|
|
5204
5204
|
extensions: [
|
|
5205
5205
|
Kb(),
|
|
5206
5206
|
p0(t),
|
|
5207
5207
|
w0(),
|
|
5208
|
-
|
|
5209
|
-
|
|
5208
|
+
c1(t),
|
|
5209
|
+
u1()
|
|
5210
5210
|
]
|
|
5211
5211
|
};
|
|
5212
5212
|
}
|
|
5213
|
-
const
|
|
5214
|
-
tokenize:
|
|
5213
|
+
const g1 = {
|
|
5214
|
+
tokenize: k1,
|
|
5215
5215
|
partial: !0
|
|
5216
5216
|
}, Xc = {
|
|
5217
|
-
tokenize:
|
|
5217
|
+
tokenize: C1,
|
|
5218
5218
|
partial: !0
|
|
5219
5219
|
}, Zc = {
|
|
5220
|
-
tokenize:
|
|
5220
|
+
tokenize: S1,
|
|
5221
5221
|
partial: !0
|
|
5222
5222
|
}, Qc = {
|
|
5223
|
-
tokenize:
|
|
5223
|
+
tokenize: N1,
|
|
5224
5224
|
partial: !0
|
|
5225
|
-
},
|
|
5226
|
-
tokenize:
|
|
5225
|
+
}, b1 = {
|
|
5226
|
+
tokenize: I1,
|
|
5227
5227
|
partial: !0
|
|
5228
5228
|
}, ed = {
|
|
5229
5229
|
name: "wwwAutolink",
|
|
5230
|
-
tokenize:
|
|
5230
|
+
tokenize: y1,
|
|
5231
5231
|
previous: nd
|
|
5232
5232
|
}, td = {
|
|
5233
5233
|
name: "protocolAutolink",
|
|
5234
|
-
tokenize:
|
|
5234
|
+
tokenize: v1,
|
|
5235
5235
|
previous: rd
|
|
5236
5236
|
}, wt = {
|
|
5237
5237
|
name: "emailAutolink",
|
|
5238
|
-
tokenize:
|
|
5238
|
+
tokenize: x1,
|
|
5239
5239
|
previous: id
|
|
5240
5240
|
}, at = {};
|
|
5241
|
-
function
|
|
5241
|
+
function w1() {
|
|
5242
5242
|
return {
|
|
5243
5243
|
text: at
|
|
5244
5244
|
};
|
|
@@ -5254,7 +5254,7 @@ at[72] = [wt, td];
|
|
|
5254
5254
|
at[104] = [wt, td];
|
|
5255
5255
|
at[87] = [wt, ed];
|
|
5256
5256
|
at[119] = [wt, ed];
|
|
5257
|
-
function
|
|
5257
|
+
function x1(t, e, n) {
|
|
5258
5258
|
const r = this;
|
|
5259
5259
|
let i, s;
|
|
5260
5260
|
return o;
|
|
@@ -5265,7 +5265,7 @@ function xw(t, e, n) {
|
|
|
5265
5265
|
return Zi(u) ? (t.consume(u), l) : u === 64 ? (t.consume(u), a) : n(u);
|
|
5266
5266
|
}
|
|
5267
5267
|
function a(u) {
|
|
5268
|
-
return u === 46 ? t.check(
|
|
5268
|
+
return u === 46 ? t.check(b1, f, d)(u) : u === 45 || u === 95 || Ds(u) ? (s = !0, t.consume(u), a) : f(u);
|
|
5269
5269
|
}
|
|
5270
5270
|
function d(u) {
|
|
5271
5271
|
return t.consume(u), i = !0, a;
|
|
@@ -5274,17 +5274,17 @@ function xw(t, e, n) {
|
|
|
5274
5274
|
return s && i && Cn(r.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), e(u)) : n(u);
|
|
5275
5275
|
}
|
|
5276
5276
|
}
|
|
5277
|
-
function
|
|
5277
|
+
function y1(t, e, n) {
|
|
5278
5278
|
const r = this;
|
|
5279
5279
|
return i;
|
|
5280
5280
|
function i(o) {
|
|
5281
|
-
return o !== 87 && o !== 119 || !nd.call(r, r.previous) || Ys(r.events) ? n(o) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
5281
|
+
return o !== 87 && o !== 119 || !nd.call(r, r.previous) || Ys(r.events) ? n(o) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(g1, t.attempt(Xc, t.attempt(Zc, s), n), n)(o));
|
|
5282
5282
|
}
|
|
5283
5283
|
function s(o) {
|
|
5284
5284
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), e(o);
|
|
5285
5285
|
}
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5287
|
+
function v1(t, e, n) {
|
|
5288
5288
|
const r = this;
|
|
5289
5289
|
let i = "", s = !1;
|
|
5290
5290
|
return o;
|
|
@@ -5311,7 +5311,7 @@ function vw(t, e, n) {
|
|
|
5311
5311
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), e(u);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
|
-
function
|
|
5314
|
+
function k1(t, e, n) {
|
|
5315
5315
|
let r = 0;
|
|
5316
5316
|
return i;
|
|
5317
5317
|
function i(o) {
|
|
@@ -5321,7 +5321,7 @@ function kw(t, e, n) {
|
|
|
5321
5321
|
return o === null ? n(o) : e(o);
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
|
-
function
|
|
5324
|
+
function C1(t, e, n) {
|
|
5325
5325
|
let r, i, s;
|
|
5326
5326
|
return o;
|
|
5327
5327
|
function o(d) {
|
|
@@ -5334,7 +5334,7 @@ function Cw(t, e, n) {
|
|
|
5334
5334
|
return i || r || !s ? n(d) : e(d);
|
|
5335
5335
|
}
|
|
5336
5336
|
}
|
|
5337
|
-
function
|
|
5337
|
+
function S1(t, e) {
|
|
5338
5338
|
let n = 0, r = 0;
|
|
5339
5339
|
return i;
|
|
5340
5340
|
function i(o) {
|
|
@@ -5344,7 +5344,7 @@ function Sw(t, e) {
|
|
|
5344
5344
|
return o === 41 && r++, t.consume(o), i;
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
|
-
function
|
|
5347
|
+
function N1(t, e, n) {
|
|
5348
5348
|
return r;
|
|
5349
5349
|
function r(l) {
|
|
5350
5350
|
return l === 33 || l === 34 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 63 || l === 95 || l === 126 ? (t.consume(l), r) : l === 38 ? (t.consume(l), s) : l === 93 ? (t.consume(l), i) : (
|
|
@@ -5363,7 +5363,7 @@ function Nw(t, e, n) {
|
|
|
5363
5363
|
return l === 59 ? (t.consume(l), r) : Cn(l) ? (t.consume(l), o) : n(l);
|
|
5364
5364
|
}
|
|
5365
5365
|
}
|
|
5366
|
-
function
|
|
5366
|
+
function I1(t, e, n) {
|
|
5367
5367
|
return r;
|
|
5368
5368
|
function r(s) {
|
|
5369
5369
|
return t.consume(s), i;
|
|
@@ -5399,37 +5399,37 @@ function Ys(t) {
|
|
|
5399
5399
|
}
|
|
5400
5400
|
return t.length > 0 && !n && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
5401
5401
|
}
|
|
5402
|
-
const
|
|
5403
|
-
tokenize:
|
|
5402
|
+
const A1 = {
|
|
5403
|
+
tokenize: M1,
|
|
5404
5404
|
partial: !0
|
|
5405
5405
|
};
|
|
5406
|
-
function
|
|
5406
|
+
function _1() {
|
|
5407
5407
|
return {
|
|
5408
5408
|
document: {
|
|
5409
5409
|
91: {
|
|
5410
5410
|
name: "gfmFootnoteDefinition",
|
|
5411
|
-
tokenize:
|
|
5411
|
+
tokenize: R1,
|
|
5412
5412
|
continuation: {
|
|
5413
|
-
tokenize:
|
|
5413
|
+
tokenize: L1
|
|
5414
5414
|
},
|
|
5415
|
-
exit:
|
|
5415
|
+
exit: O1
|
|
5416
5416
|
}
|
|
5417
5417
|
},
|
|
5418
5418
|
text: {
|
|
5419
5419
|
91: {
|
|
5420
5420
|
name: "gfmFootnoteCall",
|
|
5421
|
-
tokenize:
|
|
5421
|
+
tokenize: D1
|
|
5422
5422
|
},
|
|
5423
5423
|
93: {
|
|
5424
5424
|
name: "gfmPotentialFootnoteCall",
|
|
5425
5425
|
add: "after",
|
|
5426
|
-
tokenize:
|
|
5427
|
-
resolveTo:
|
|
5426
|
+
tokenize: E1,
|
|
5427
|
+
resolveTo: T1
|
|
5428
5428
|
}
|
|
5429
5429
|
}
|
|
5430
5430
|
};
|
|
5431
5431
|
}
|
|
5432
|
-
function
|
|
5432
|
+
function E1(t, e, n) {
|
|
5433
5433
|
const r = this;
|
|
5434
5434
|
let i = r.events.length;
|
|
5435
5435
|
const s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -5454,7 +5454,7 @@ function Ew(t, e, n) {
|
|
|
5454
5454
|
return d.codePointAt(0) !== 94 || !s.includes(d.slice(1)) ? n(a) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(a), t.exit("gfmFootnoteCallLabelMarker"), e(a));
|
|
5455
5455
|
}
|
|
5456
5456
|
}
|
|
5457
|
-
function
|
|
5457
|
+
function T1(t, e) {
|
|
5458
5458
|
let n = t.length;
|
|
5459
5459
|
for (; n--; )
|
|
5460
5460
|
if (t[n][1].type === "labelImage" && t[n][0] === "enter") {
|
|
@@ -5504,7 +5504,7 @@ function Tw(t, e) {
|
|
|
5504
5504
|
];
|
|
5505
5505
|
return t.splice(n, t.length - n + 1, ...l), t;
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function D1(t, e, n) {
|
|
5508
5508
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
5509
5509
|
let s = 0, o;
|
|
5510
5510
|
return l;
|
|
@@ -5534,7 +5534,7 @@ function Dw(t, e, n) {
|
|
|
5534
5534
|
return u === 91 || u === 92 || u === 93 ? (t.consume(u), s++, d) : d(u);
|
|
5535
5535
|
}
|
|
5536
5536
|
}
|
|
5537
|
-
function
|
|
5537
|
+
function R1(t, e, n) {
|
|
5538
5538
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
5539
5539
|
let s, o = 0, l;
|
|
5540
5540
|
return a;
|
|
@@ -5570,13 +5570,13 @@ function Rw(t, e, n) {
|
|
|
5570
5570
|
return e(m);
|
|
5571
5571
|
}
|
|
5572
5572
|
}
|
|
5573
|
-
function
|
|
5574
|
-
return t.check(zf, e, t.attempt(
|
|
5573
|
+
function L1(t, e, n) {
|
|
5574
|
+
return t.check(zf, e, t.attempt(A1, e, n));
|
|
5575
5575
|
}
|
|
5576
|
-
function
|
|
5576
|
+
function O1(t) {
|
|
5577
5577
|
t.exit("gfmFootnoteDefinition");
|
|
5578
5578
|
}
|
|
5579
|
-
function
|
|
5579
|
+
function M1(t, e, n) {
|
|
5580
5580
|
const r = this;
|
|
5581
5581
|
return kt(t, i, "gfmFootnoteDefinitionIndent", 5);
|
|
5582
5582
|
function i(s) {
|
|
@@ -5584,7 +5584,7 @@ function Mw(t, e, n) {
|
|
|
5584
5584
|
return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? e(s) : n(s);
|
|
5585
5585
|
}
|
|
5586
5586
|
}
|
|
5587
|
-
function
|
|
5587
|
+
function P1(t) {
|
|
5588
5588
|
let n = (t || {}).singleTilde;
|
|
5589
5589
|
const r = {
|
|
5590
5590
|
name: "strikethrough",
|
|
@@ -5645,7 +5645,7 @@ function Pw(t) {
|
|
|
5645
5645
|
}
|
|
5646
5646
|
}
|
|
5647
5647
|
}
|
|
5648
|
-
class
|
|
5648
|
+
class F1 {
|
|
5649
5649
|
/**
|
|
5650
5650
|
* Create a new edit map.
|
|
5651
5651
|
*/
|
|
@@ -5661,7 +5661,7 @@ class Fw {
|
|
|
5661
5661
|
* @returns {undefined}
|
|
5662
5662
|
*/
|
|
5663
5663
|
add(e, n, r) {
|
|
5664
|
-
|
|
5664
|
+
z1(this, e, n, r);
|
|
5665
5665
|
}
|
|
5666
5666
|
// To do: add this when moving to `micromark`.
|
|
5667
5667
|
// /**
|
|
@@ -5700,7 +5700,7 @@ class Fw {
|
|
|
5700
5700
|
this.map.length = 0;
|
|
5701
5701
|
}
|
|
5702
5702
|
}
|
|
5703
|
-
function
|
|
5703
|
+
function z1(t, e, n, r) {
|
|
5704
5704
|
let i = 0;
|
|
5705
5705
|
if (!(n === 0 && r.length === 0)) {
|
|
5706
5706
|
for (; i < t.map.length; ) {
|
|
@@ -5713,7 +5713,7 @@ function zw(t, e, n, r) {
|
|
|
5713
5713
|
t.map.push([e, n, r]);
|
|
5714
5714
|
}
|
|
5715
5715
|
}
|
|
5716
|
-
function $
|
|
5716
|
+
function $1(t, e) {
|
|
5717
5717
|
let n = !1;
|
|
5718
5718
|
const r = [];
|
|
5719
5719
|
for (; e < t.length; ) {
|
|
@@ -5733,18 +5733,18 @@ function $w(t, e) {
|
|
|
5733
5733
|
}
|
|
5734
5734
|
return r;
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function B1() {
|
|
5737
5737
|
return {
|
|
5738
5738
|
flow: {
|
|
5739
5739
|
null: {
|
|
5740
5740
|
name: "table",
|
|
5741
|
-
tokenize:
|
|
5742
|
-
resolveAll:
|
|
5741
|
+
tokenize: j1,
|
|
5742
|
+
resolveAll: H1
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
5745
|
};
|
|
5746
5746
|
}
|
|
5747
|
-
function
|
|
5747
|
+
function j1(t, e, n) {
|
|
5748
5748
|
const r = this;
|
|
5749
5749
|
let i = 0, s = 0, o;
|
|
5750
5750
|
return l;
|
|
@@ -5814,9 +5814,9 @@ function jw(t, e, n) {
|
|
|
5814
5814
|
return y === 92 || y === 124 ? (t.consume(y), N) : N(y);
|
|
5815
5815
|
}
|
|
5816
5816
|
}
|
|
5817
|
-
function
|
|
5817
|
+
function H1(t, e) {
|
|
5818
5818
|
let n = -1, r = !0, i = 0, s = [0, 0, 0, 0], o = [0, 0, 0, 0], l = !1, a = 0, d, f, u;
|
|
5819
|
-
const h = new
|
|
5819
|
+
const h = new F1();
|
|
5820
5820
|
for (; ++n < t.length; ) {
|
|
5821
5821
|
const p = t[n], m = p[1];
|
|
5822
5822
|
p[0] === "enter" ? m.type === "tableHead" ? (l = !1, a !== 0 && (ml(h, e, a, d, f), f = void 0, a = 0), d = {
|
|
@@ -5833,7 +5833,7 @@ function Hw(t, e) {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
for (a !== 0 && ml(h, e, a, d, f), h.consume(e.events), n = -1; ++n < e.events.length; ) {
|
|
5835
5835
|
const p = e.events[n];
|
|
5836
|
-
p[0] === "enter" && p[1].type === "table" && (p[1]._align = $
|
|
5836
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = $1(e.events, n));
|
|
5837
5837
|
}
|
|
5838
5838
|
return t;
|
|
5839
5839
|
}
|
|
@@ -5871,18 +5871,18 @@ function qt(t, e) {
|
|
|
5871
5871
|
const n = t[e], r = n[0] === "enter" ? "start" : "end";
|
|
5872
5872
|
return n[1][r];
|
|
5873
5873
|
}
|
|
5874
|
-
const
|
|
5874
|
+
const V1 = {
|
|
5875
5875
|
name: "tasklistCheck",
|
|
5876
|
-
tokenize:
|
|
5876
|
+
tokenize: U1
|
|
5877
5877
|
};
|
|
5878
|
-
function
|
|
5878
|
+
function W1() {
|
|
5879
5879
|
return {
|
|
5880
5880
|
text: {
|
|
5881
|
-
91:
|
|
5881
|
+
91: V1
|
|
5882
5882
|
}
|
|
5883
5883
|
};
|
|
5884
5884
|
}
|
|
5885
|
-
function
|
|
5885
|
+
function U1(t, e, n) {
|
|
5886
5886
|
const r = this;
|
|
5887
5887
|
return i;
|
|
5888
5888
|
function i(a) {
|
|
@@ -5901,37 +5901,37 @@ function Uw(t, e, n) {
|
|
|
5901
5901
|
}
|
|
5902
5902
|
function l(a) {
|
|
5903
5903
|
return yn(a) ? e(a) : Kt(a) ? t.check({
|
|
5904
|
-
tokenize:
|
|
5904
|
+
tokenize: G1
|
|
5905
5905
|
}, e, n)(a) : n(a);
|
|
5906
5906
|
}
|
|
5907
5907
|
}
|
|
5908
|
-
function
|
|
5908
|
+
function G1(t, e, n) {
|
|
5909
5909
|
return kt(t, r, "whitespace");
|
|
5910
5910
|
function r(i) {
|
|
5911
5911
|
return i === null ? n(i) : e(i);
|
|
5912
5912
|
}
|
|
5913
5913
|
}
|
|
5914
|
-
function
|
|
5914
|
+
function K1(t) {
|
|
5915
5915
|
return Bf([
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5916
|
+
w1(),
|
|
5917
|
+
_1(),
|
|
5918
|
+
P1(t),
|
|
5919
|
+
B1(),
|
|
5920
|
+
W1()
|
|
5921
5921
|
]);
|
|
5922
5922
|
}
|
|
5923
|
-
const
|
|
5924
|
-
function
|
|
5923
|
+
const q1 = {};
|
|
5924
|
+
function J1(t) {
|
|
5925
5925
|
const e = (
|
|
5926
5926
|
/** @type {Processor<Root>} */
|
|
5927
5927
|
this
|
|
5928
|
-
), n = t ||
|
|
5929
|
-
i.push(
|
|
5928
|
+
), n = t || q1, r = e.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
5929
|
+
i.push(K1(n)), s.push(p1()), o.push(m1(n));
|
|
5930
5930
|
}
|
|
5931
|
-
const
|
|
5931
|
+
const Y1 = Hf().use(Vf).use(J1).use(Wf).use(Uf), X1 = P(function({ content: e, className: n, format: r = "html", ...i }, s) {
|
|
5932
5932
|
const o = ee(
|
|
5933
5933
|
() => jf.sanitize(
|
|
5934
|
-
r === "markdown" ? String(
|
|
5934
|
+
r === "markdown" ? String(Y1.processSync(e)) : e,
|
|
5935
5935
|
{
|
|
5936
5936
|
ADD_ATTR: ["target"],
|
|
5937
5937
|
ALLOWED_ATTR: ["href", "target", "rel", "class"]
|
|
@@ -5954,7 +5954,7 @@ const Yw = Hf().use(Vf).use(Jw).use(Wf).use(Uf), Xw = P(function({ content: e, c
|
|
|
5954
5954
|
...i
|
|
5955
5955
|
}
|
|
5956
5956
|
);
|
|
5957
|
-
}), sd = ue(
|
|
5957
|
+
}), sd = ue(X1), Z1 = P(function({ title: e, onClose: n, content: r, primaryAction: i, secondaryAction: s }, o) {
|
|
5958
5958
|
return /* @__PURE__ */ g(
|
|
5959
5959
|
"div",
|
|
5960
5960
|
{
|
|
@@ -6011,7 +6011,7 @@ const Yw = Hf().use(Vf).use(Jw).use(Wf).use(Uf), Xw = P(function({ content: e, c
|
|
|
6011
6011
|
]
|
|
6012
6012
|
}
|
|
6013
6013
|
);
|
|
6014
|
-
}),
|
|
6014
|
+
}), Q1 = ({ compact: t }) => /* @__PURE__ */ g(
|
|
6015
6015
|
"div",
|
|
6016
6016
|
{
|
|
6017
6017
|
className: "flex w-full flex-col rounded-lg bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F] p-[1px]",
|
|
@@ -6042,26 +6042,26 @@ const Yw = Hf().use(Vf).use(Jw).use(Wf).use(Uf), Xw = P(function({ content: e, c
|
|
|
6042
6042
|
]
|
|
6043
6043
|
}
|
|
6044
6044
|
), od = P(
|
|
6045
|
-
(t, e) => /* @__PURE__ */ c(
|
|
6046
|
-
),
|
|
6045
|
+
(t, e) => /* @__PURE__ */ c(Z1, { ref: e, ...t })
|
|
6046
|
+
), ew = ({ compact: t }) => /* @__PURE__ */ c(Q1, { compact: t });
|
|
6047
6047
|
od.displayName = "F0AiBanner";
|
|
6048
6048
|
const ld = fe(
|
|
6049
6049
|
ue(od),
|
|
6050
|
-
|
|
6051
|
-
),
|
|
6050
|
+
ew
|
|
6051
|
+
), tw = (t) => {
|
|
6052
6052
|
if (!t?.content) return "";
|
|
6053
6053
|
try {
|
|
6054
|
-
return
|
|
6055
|
-
Ja,
|
|
6056
|
-
Ya,
|
|
6057
|
-
Xa,
|
|
6058
|
-
up,
|
|
6059
|
-
Za,
|
|
6060
|
-
Qa,
|
|
6054
|
+
return Mp(t.content, [
|
|
6061
6055
|
ec,
|
|
6062
6056
|
tc,
|
|
6063
6057
|
nc,
|
|
6058
|
+
Pp,
|
|
6064
6059
|
rc,
|
|
6060
|
+
ic,
|
|
6061
|
+
sc,
|
|
6062
|
+
oc,
|
|
6063
|
+
lc,
|
|
6064
|
+
ac,
|
|
6065
6065
|
Sc,
|
|
6066
6066
|
Ic,
|
|
6067
6067
|
Nc
|
|
@@ -6069,7 +6069,7 @@ const ld = fe(
|
|
|
6069
6069
|
} catch {
|
|
6070
6070
|
return "";
|
|
6071
6071
|
}
|
|
6072
|
-
},
|
|
6072
|
+
}, nw = (t, e) => ee(() => {
|
|
6073
6073
|
if (e?.selectedTitle || e?.selectedEmoji)
|
|
6074
6074
|
return {
|
|
6075
6075
|
title: e.selectedTitle || t.title,
|
|
@@ -6079,7 +6079,7 @@ const ld = fe(
|
|
|
6079
6079
|
(r) => r.type === e?.selectedAction
|
|
6080
6080
|
);
|
|
6081
6081
|
return n ? { title: n.label, emoji: n.emoji } : { title: t.title };
|
|
6082
|
-
}, [e, t]),
|
|
6082
|
+
}, [e, t]), rw = (t, e) => {
|
|
6083
6083
|
const [n, r] = L(!1), i = X(
|
|
6084
6084
|
async (s) => {
|
|
6085
6085
|
const o = t.buttons?.find(
|
|
@@ -6103,7 +6103,7 @@ const ld = fe(
|
|
|
6103
6103
|
[t, e]
|
|
6104
6104
|
);
|
|
6105
6105
|
return { isLoading: n, handleClick: i };
|
|
6106
|
-
},
|
|
6106
|
+
}, iw = (t, e, n) => {
|
|
6107
6107
|
W(() => {
|
|
6108
6108
|
if (!n?.selectedAction || !t?.buttons) return;
|
|
6109
6109
|
if (!n?.selectedTitle || !n?.selectedEmoji || n?.isEditable === void 0) {
|
|
@@ -6120,17 +6120,17 @@ const ld = fe(
|
|
|
6120
6120
|
});
|
|
6121
6121
|
}
|
|
6122
6122
|
}, [n, t, e]);
|
|
6123
|
-
},
|
|
6123
|
+
}, sw = (t, e, n) => {
|
|
6124
6124
|
W(() => {
|
|
6125
6125
|
t?.shouldExecute && t?.selectedAction && e && n && (n({ data: { ...t, shouldExecute: !1 } }), e(t.selectedAction));
|
|
6126
6126
|
}, [e, n, t]);
|
|
6127
|
-
},
|
|
6127
|
+
}, ow = (t, e, n, r) => {
|
|
6128
6128
|
W(() => {
|
|
6129
6129
|
if (!r?.content || !r?.isEditable || !t || !n) return;
|
|
6130
6130
|
const i = n();
|
|
6131
6131
|
i !== void 0 && (e(), r.content && t.chain().focus().setTextSelection(i).insertContent(r.content).run());
|
|
6132
6132
|
}, [r, t, n, e]);
|
|
6133
|
-
},
|
|
6133
|
+
}, lw = ({
|
|
6134
6134
|
config: t,
|
|
6135
6135
|
isLoading: e,
|
|
6136
6136
|
onButtonClick: n
|
|
@@ -6147,12 +6147,12 @@ const ld = fe(
|
|
|
6147
6147
|
},
|
|
6148
6148
|
i
|
|
6149
6149
|
)) })
|
|
6150
|
-
] }),
|
|
6150
|
+
] }), aw = ({ isEditable: t }) => t ? /* @__PURE__ */ g("div", { className: "flex flex-col gap-2", children: [
|
|
6151
6151
|
/* @__PURE__ */ c(E, { className: "h-4 w-1/2 rounded-md" }),
|
|
6152
6152
|
/* @__PURE__ */ c(E, { className: "h-4 w-full rounded-md" }),
|
|
6153
6153
|
/* @__PURE__ */ c(E, { className: "h-4 w-3/4 rounded-md" }),
|
|
6154
6154
|
/* @__PURE__ */ c(E, { className: "h-4 w-1/3 rounded-md" })
|
|
6155
|
-
] }) : /* @__PURE__ */ c(ld.Skeleton, { compact: !0 }),
|
|
6155
|
+
] }) : /* @__PURE__ */ c(ld.Skeleton, { compact: !0 }), cw = ({
|
|
6156
6156
|
node: t,
|
|
6157
6157
|
updateAttributes: e,
|
|
6158
6158
|
deleteNode: n,
|
|
@@ -6160,14 +6160,14 @@ const ld = fe(
|
|
|
6160
6160
|
editor: i,
|
|
6161
6161
|
getPos: s
|
|
6162
6162
|
}) => {
|
|
6163
|
-
const o = t.attrs.data, l = r.options.currentConfig || t.attrs.config, { title: a } =
|
|
6163
|
+
const o = t.attrs.data, l = r.options.currentConfig || t.attrs.config, { title: a } = nw(l, o), { isLoading: d, handleClick: f } = rw(
|
|
6164
6164
|
l,
|
|
6165
6165
|
e
|
|
6166
|
-
), u = !!(o?.selectedAction && !o?.content), h = d || u, p =
|
|
6167
|
-
if (
|
|
6166
|
+
), u = !!(o?.selectedAction && !o?.content), h = d || u, p = tw(o);
|
|
6167
|
+
if (ow(i, n, s, o), iw(l, e, o), sw(o, f, e), !o || !l || !l.buttons?.length) return null;
|
|
6168
6168
|
const m = !!o?.content, w = !!(o?.selectedTitle || o?.selectedAction) && m && !o?.isEditable;
|
|
6169
6169
|
return /* @__PURE__ */ c(Wn, { contentEditable: !1, children: /* @__PURE__ */ g("div", { className: "mb-3", children: [
|
|
6170
|
-
h ? /* @__PURE__ */ c(
|
|
6170
|
+
h ? /* @__PURE__ */ c(aw, { isEditable: o?.isEditable }) : w ? /* @__PURE__ */ c(
|
|
6171
6171
|
ld,
|
|
6172
6172
|
{
|
|
6173
6173
|
title: a,
|
|
@@ -6180,7 +6180,7 @@ const ld = fe(
|
|
|
6180
6180
|
className: "editor-ai-block mb-3 flex w-full flex-col gap-4 rounded-lg",
|
|
6181
6181
|
onClick: (v) => v.stopPropagation(),
|
|
6182
6182
|
children: /* @__PURE__ */ c(
|
|
6183
|
-
|
|
6183
|
+
lw,
|
|
6184
6184
|
{
|
|
6185
6185
|
config: l,
|
|
6186
6186
|
isLoading: h,
|
|
@@ -6191,7 +6191,7 @@ const ld = fe(
|
|
|
6191
6191
|
),
|
|
6192
6192
|
/* @__PURE__ */ c(Ws, { style: { display: "none" } })
|
|
6193
6193
|
] }) });
|
|
6194
|
-
},
|
|
6194
|
+
}, dw = He.create({
|
|
6195
6195
|
name: "aiBlock",
|
|
6196
6196
|
group: "block",
|
|
6197
6197
|
atom: !0,
|
|
@@ -6242,7 +6242,7 @@ const ld = fe(
|
|
|
6242
6242
|
];
|
|
6243
6243
|
},
|
|
6244
6244
|
addNodeView() {
|
|
6245
|
-
return Vn(
|
|
6245
|
+
return Vn(cw);
|
|
6246
6246
|
},
|
|
6247
6247
|
addCommands() {
|
|
6248
6248
|
return {
|
|
@@ -6274,7 +6274,7 @@ const ld = fe(
|
|
|
6274
6274
|
}
|
|
6275
6275
|
};
|
|
6276
6276
|
}
|
|
6277
|
-
}),
|
|
6277
|
+
}), uw = dw, ad = [
|
|
6278
6278
|
"paragraph",
|
|
6279
6279
|
"heading",
|
|
6280
6280
|
"blockquote",
|
|
@@ -6284,7 +6284,7 @@ const ld = fe(
|
|
|
6284
6284
|
"listItem",
|
|
6285
6285
|
"table",
|
|
6286
6286
|
"details"
|
|
6287
|
-
], gl = new Set(ad),
|
|
6287
|
+
], gl = new Set(ad), fw = Vt.create({
|
|
6288
6288
|
name: "blockId",
|
|
6289
6289
|
addGlobalAttributes() {
|
|
6290
6290
|
return [
|
|
@@ -6333,7 +6333,7 @@ const ld = fe(
|
|
|
6333
6333
|
}), o.length > 0 ? o.forEach(({ from: l, to: a }) => {
|
|
6334
6334
|
l >= 0 && a <= n.doc.content.size && l < a && n.doc.nodesBetween(l, a, (d, f) => {
|
|
6335
6335
|
if (gl.has(d.type.name) && !d.attrs.id) {
|
|
6336
|
-
const u =
|
|
6336
|
+
const u = _o(5);
|
|
6337
6337
|
i.setNodeMarkup(f, void 0, {
|
|
6338
6338
|
...d.attrs,
|
|
6339
6339
|
id: u
|
|
@@ -6342,7 +6342,7 @@ const ld = fe(
|
|
|
6342
6342
|
});
|
|
6343
6343
|
}) : n.doc.descendants((l, a) => {
|
|
6344
6344
|
if (gl.has(l.type.name) && !l.attrs.id) {
|
|
6345
|
-
const d =
|
|
6345
|
+
const d = _o(5);
|
|
6346
6346
|
i.setNodeMarkup(a, void 0, {
|
|
6347
6347
|
...l.attrs,
|
|
6348
6348
|
id: d
|
|
@@ -6355,7 +6355,7 @@ const ld = fe(
|
|
|
6355
6355
|
];
|
|
6356
6356
|
}
|
|
6357
6357
|
});
|
|
6358
|
-
var
|
|
6358
|
+
var hw = ({ key: t, editor: e, onPaste: n, onDrop: r, allowedMimeTypes: i }) => new ot({
|
|
6359
6359
|
key: t || new Ee("fileHandler"),
|
|
6360
6360
|
props: {
|
|
6361
6361
|
handleDrop(s, o) {
|
|
@@ -6378,7 +6378,7 @@ var h1 = ({ key: t, editor: e, onPaste: n, onDrop: r, allowedMimeTypes: i }) =>
|
|
|
6378
6378
|
return i && (a = a.filter((f) => i.includes(f.type))), !(a.length === 0 || (o.preventDefault(), o.stopPropagation(), n(e, a, d), d.length > 0));
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
|
-
}),
|
|
6381
|
+
}), pw = Vt.create({
|
|
6382
6382
|
name: "fileHandler",
|
|
6383
6383
|
addOptions() {
|
|
6384
6384
|
return {
|
|
@@ -6389,7 +6389,7 @@ var h1 = ({ key: t, editor: e, onPaste: n, onDrop: r, allowedMimeTypes: i }) =>
|
|
|
6389
6389
|
},
|
|
6390
6390
|
addProseMirrorPlugins() {
|
|
6391
6391
|
return [
|
|
6392
|
-
|
|
6392
|
+
hw({
|
|
6393
6393
|
key: new Ee(this.name),
|
|
6394
6394
|
editor: this.editor,
|
|
6395
6395
|
allowedMimeTypes: this.options.allowedMimeTypes,
|
|
@@ -6399,7 +6399,7 @@ var h1 = ({ key: t, editor: e, onPaste: n, onDrop: r, allowedMimeTypes: i }) =>
|
|
|
6399
6399
|
];
|
|
6400
6400
|
}
|
|
6401
6401
|
});
|
|
6402
|
-
const
|
|
6402
|
+
const mw = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, gw = He.create({
|
|
6403
6403
|
name: "image",
|
|
6404
6404
|
addOptions() {
|
|
6405
6405
|
return {
|
|
@@ -6448,8 +6448,8 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6448
6448
|
},
|
|
6449
6449
|
addInputRules() {
|
|
6450
6450
|
return [
|
|
6451
|
-
|
|
6452
|
-
find:
|
|
6451
|
+
Fp({
|
|
6452
|
+
find: mw,
|
|
6453
6453
|
type: this.type,
|
|
6454
6454
|
getAttributes: (t) => {
|
|
6455
6455
|
const [, , e, n, r] = t;
|
|
@@ -6458,12 +6458,12 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6458
6458
|
})
|
|
6459
6459
|
];
|
|
6460
6460
|
}
|
|
6461
|
-
}),
|
|
6461
|
+
}), bw = 50 * 1024 * 1024, Xs = [
|
|
6462
6462
|
"image/jpeg",
|
|
6463
6463
|
"image/png",
|
|
6464
6464
|
"image/gif",
|
|
6465
6465
|
"image/webp"
|
|
6466
|
-
],
|
|
6466
|
+
], ww = 10, Ot = 100, xw = ({
|
|
6467
6467
|
node: t,
|
|
6468
6468
|
deleteNode: e,
|
|
6469
6469
|
selected: n,
|
|
@@ -6476,7 +6476,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6476
6476
|
const w = b.clientX, x = d ?? Ot, v = r.view.dom.clientWidth, S = (I) => {
|
|
6477
6477
|
const T = (I.clientX - w) / v * 100, N = Math.min(
|
|
6478
6478
|
Ot,
|
|
6479
|
-
Math.max(
|
|
6479
|
+
Math.max(ww, x + T)
|
|
6480
6480
|
);
|
|
6481
6481
|
i({ width: Math.round(N) });
|
|
6482
6482
|
}, _ = () => {
|
|
@@ -6536,7 +6536,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6536
6536
|
]
|
|
6537
6537
|
}
|
|
6538
6538
|
) });
|
|
6539
|
-
},
|
|
6539
|
+
}, yw = gw.extend({
|
|
6540
6540
|
addAttributes() {
|
|
6541
6541
|
return {
|
|
6542
6542
|
...this.parent?.(),
|
|
@@ -6562,7 +6562,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6562
6562
|
};
|
|
6563
6563
|
},
|
|
6564
6564
|
addNodeView() {
|
|
6565
|
-
return Vn(
|
|
6565
|
+
return Vn(xw);
|
|
6566
6566
|
},
|
|
6567
6567
|
renderHTML({ HTMLAttributes: t }) {
|
|
6568
6568
|
return ["img", Be(this.options.HTMLAttributes, t)];
|
|
@@ -6571,7 +6571,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6571
6571
|
inline: !1,
|
|
6572
6572
|
allowBase64: !0
|
|
6573
6573
|
}), Qi = async (t, e, n, r) => {
|
|
6574
|
-
const i = n.maxFileSize ??
|
|
6574
|
+
const i = n.maxFileSize ?? bw, { onError: s } = n;
|
|
6575
6575
|
if (!Xs.includes(e.type)) {
|
|
6576
6576
|
s?.("invalid-type");
|
|
6577
6577
|
return;
|
|
@@ -6607,7 +6607,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6607
6607
|
} finally {
|
|
6608
6608
|
URL.revokeObjectURL(o);
|
|
6609
6609
|
}
|
|
6610
|
-
},
|
|
6610
|
+
}, vw = (t) => pw.configure({
|
|
6611
6611
|
allowedMimeTypes: Xs,
|
|
6612
6612
|
onDrop: (e, n, r) => {
|
|
6613
6613
|
n.forEach((i) => {
|
|
@@ -6622,11 +6622,11 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6622
6622
|
}), cd = (t, e, n) => {
|
|
6623
6623
|
Qi(t, e, n);
|
|
6624
6624
|
}, es = {
|
|
6625
|
-
superNegative:
|
|
6626
|
-
negative:
|
|
6627
|
-
neutral:
|
|
6628
|
-
positive:
|
|
6629
|
-
superPositive:
|
|
6625
|
+
superNegative: Hp,
|
|
6626
|
+
negative: jp,
|
|
6627
|
+
neutral: Bp,
|
|
6628
|
+
positive: $p,
|
|
6629
|
+
superPositive: zp
|
|
6630
6630
|
}, ts = {
|
|
6631
6631
|
superNegative: "mood-super-negative",
|
|
6632
6632
|
negative: "mood-negative",
|
|
@@ -6708,7 +6708,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6708
6708
|
},
|
|
6709
6709
|
children: [
|
|
6710
6710
|
/* @__PURE__ */ c(
|
|
6711
|
-
|
|
6711
|
+
xa,
|
|
6712
6712
|
{
|
|
6713
6713
|
type: "rounded",
|
|
6714
6714
|
name: [t, e],
|
|
@@ -6756,7 +6756,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6756
6756
|
label: l.actions.add,
|
|
6757
6757
|
variant: "neutral",
|
|
6758
6758
|
size: "sm",
|
|
6759
|
-
icon:
|
|
6759
|
+
icon: Vp,
|
|
6760
6760
|
onClick: (f) => {
|
|
6761
6761
|
f.preventDefault(), f.stopPropagation(), o();
|
|
6762
6762
|
},
|
|
@@ -6772,7 +6772,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = He.c
|
|
|
6772
6772
|
) }) });
|
|
6773
6773
|
};
|
|
6774
6774
|
dd.displayName = "PulseAvatar";
|
|
6775
|
-
const
|
|
6775
|
+
const kw = ({
|
|
6776
6776
|
node: t,
|
|
6777
6777
|
deleteNode: e,
|
|
6778
6778
|
updateAttributes: n
|
|
@@ -6857,7 +6857,7 @@ const k1 = ({
|
|
|
6857
6857
|
),
|
|
6858
6858
|
/* @__PURE__ */ c(Ws, { style: { display: "none" } })
|
|
6859
6859
|
] });
|
|
6860
|
-
},
|
|
6860
|
+
}, Cw = He.create({
|
|
6861
6861
|
name: "moodTracker",
|
|
6862
6862
|
group: "block",
|
|
6863
6863
|
atom: !0,
|
|
@@ -6908,7 +6908,7 @@ const k1 = ({
|
|
|
6908
6908
|
] : ["div"];
|
|
6909
6909
|
},
|
|
6910
6910
|
addNodeView() {
|
|
6911
|
-
return Vn(
|
|
6911
|
+
return Vn(kw);
|
|
6912
6912
|
},
|
|
6913
6913
|
addCommands() {
|
|
6914
6914
|
return {
|
|
@@ -6918,23 +6918,23 @@ const k1 = ({
|
|
|
6918
6918
|
})
|
|
6919
6919
|
};
|
|
6920
6920
|
}
|
|
6921
|
-
}),
|
|
6921
|
+
}), Sw = Cw, Nw = /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]+)/, Iw = /(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/|player\.vimeo\.com\/video\/)(\d+)/, Aw = /^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]+)(?:\S*)$/gm, _w = /^(?:https?:\/\/)?(?:www\.)?(?:vimeo\.com\/|player\.vimeo\.com\/video\/)(\d+)(?:\S*)$/gm;
|
|
6922
6922
|
function xr(t) {
|
|
6923
|
-
const e = t.match(
|
|
6923
|
+
const e = t.match(Nw);
|
|
6924
6924
|
if (e)
|
|
6925
6925
|
return {
|
|
6926
6926
|
provider: "youtube",
|
|
6927
6927
|
videoId: e[1],
|
|
6928
6928
|
embedUrl: `https://www.youtube-nocookie.com/embed/${e[1]}`
|
|
6929
6929
|
};
|
|
6930
|
-
const n = t.match(
|
|
6930
|
+
const n = t.match(Iw);
|
|
6931
6931
|
return n ? {
|
|
6932
6932
|
provider: "vimeo",
|
|
6933
6933
|
videoId: n[1],
|
|
6934
6934
|
embedUrl: `https://player.vimeo.com/video/${n[1]}`
|
|
6935
6935
|
} : null;
|
|
6936
6936
|
}
|
|
6937
|
-
const
|
|
6937
|
+
const Ew = ({
|
|
6938
6938
|
node: t,
|
|
6939
6939
|
deleteNode: e,
|
|
6940
6940
|
selected: n,
|
|
@@ -6973,7 +6973,7 @@ const E1 = ({
|
|
|
6973
6973
|
]
|
|
6974
6974
|
}
|
|
6975
6975
|
) });
|
|
6976
|
-
},
|
|
6976
|
+
}, Tw = He.create({
|
|
6977
6977
|
name: "videoEmbed",
|
|
6978
6978
|
group: "block",
|
|
6979
6979
|
atom: !0,
|
|
@@ -7009,7 +7009,7 @@ const E1 = ({
|
|
|
7009
7009
|
];
|
|
7010
7010
|
},
|
|
7011
7011
|
addNodeView() {
|
|
7012
|
-
return Vn(
|
|
7012
|
+
return Vn(Ew);
|
|
7013
7013
|
},
|
|
7014
7014
|
addCommands() {
|
|
7015
7015
|
return {
|
|
@@ -7028,8 +7028,8 @@ const E1 = ({
|
|
|
7028
7028
|
},
|
|
7029
7029
|
addPasteRules() {
|
|
7030
7030
|
return [
|
|
7031
|
-
|
|
7032
|
-
find:
|
|
7031
|
+
Ro({
|
|
7032
|
+
find: Aw,
|
|
7033
7033
|
type: this.type,
|
|
7034
7034
|
getAttributes: (t) => {
|
|
7035
7035
|
const e = xr(t[0]);
|
|
@@ -7040,8 +7040,8 @@ const E1 = ({
|
|
|
7040
7040
|
} : !1;
|
|
7041
7041
|
}
|
|
7042
7042
|
}),
|
|
7043
|
-
|
|
7044
|
-
find:
|
|
7043
|
+
Ro({
|
|
7044
|
+
find: _w,
|
|
7045
7045
|
type: this.type,
|
|
7046
7046
|
getAttributes: (t) => {
|
|
7047
7047
|
const e = xr(t[0]);
|
|
@@ -7054,7 +7054,7 @@ const E1 = ({
|
|
|
7054
7054
|
})
|
|
7055
7055
|
];
|
|
7056
7056
|
}
|
|
7057
|
-
}),
|
|
7057
|
+
}), Dw = ({
|
|
7058
7058
|
aiBlockConfig: t,
|
|
7059
7059
|
translations: e,
|
|
7060
7060
|
imageUploadConfig: n
|
|
@@ -7091,7 +7091,7 @@ const E1 = ({
|
|
|
7091
7091
|
const { from: i, to: s } = r.state.selection;
|
|
7092
7092
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleHeading({ level: 1 }).run();
|
|
7093
7093
|
},
|
|
7094
|
-
icon:
|
|
7094
|
+
icon: Wp
|
|
7095
7095
|
},
|
|
7096
7096
|
{
|
|
7097
7097
|
title: e.richTextEditor.heading2,
|
|
@@ -7099,7 +7099,7 @@ const E1 = ({
|
|
|
7099
7099
|
const { from: i, to: s } = r.state.selection;
|
|
7100
7100
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleHeading({ level: 2 }).run();
|
|
7101
7101
|
},
|
|
7102
|
-
icon:
|
|
7102
|
+
icon: Up
|
|
7103
7103
|
},
|
|
7104
7104
|
{
|
|
7105
7105
|
title: e.richTextEditor.heading3,
|
|
@@ -7107,7 +7107,7 @@ const E1 = ({
|
|
|
7107
7107
|
const { from: i, to: s } = r.state.selection;
|
|
7108
7108
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleHeading({ level: 3 }).run();
|
|
7109
7109
|
},
|
|
7110
|
-
icon:
|
|
7110
|
+
icon: Gp
|
|
7111
7111
|
}
|
|
7112
7112
|
]
|
|
7113
7113
|
},
|
|
@@ -7128,7 +7128,7 @@ const E1 = ({
|
|
|
7128
7128
|
const { from: i, to: s } = r.state.selection;
|
|
7129
7129
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleOrderedList().run();
|
|
7130
7130
|
},
|
|
7131
|
-
icon:
|
|
7131
|
+
icon: Kp
|
|
7132
7132
|
},
|
|
7133
7133
|
{
|
|
7134
7134
|
title: e.richTextEditor.taskList,
|
|
@@ -7136,7 +7136,7 @@ const E1 = ({
|
|
|
7136
7136
|
const { from: i, to: s } = r.state.selection;
|
|
7137
7137
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleTaskList().run();
|
|
7138
7138
|
},
|
|
7139
|
-
icon:
|
|
7139
|
+
icon: qp
|
|
7140
7140
|
}
|
|
7141
7141
|
]
|
|
7142
7142
|
},
|
|
@@ -7153,7 +7153,7 @@ const E1 = ({
|
|
|
7153
7153
|
s && cd(r, s, n);
|
|
7154
7154
|
}, i.click();
|
|
7155
7155
|
},
|
|
7156
|
-
icon:
|
|
7156
|
+
icon: Jp
|
|
7157
7157
|
}
|
|
7158
7158
|
] : [],
|
|
7159
7159
|
{
|
|
@@ -7164,7 +7164,7 @@ const E1 = ({
|
|
|
7164
7164
|
);
|
|
7165
7165
|
i && (xr(i) ? r.commands.setVideoEmbed({ src: i }) : window.alert(e.richTextEditor.videoUrlInvalid));
|
|
7166
7166
|
},
|
|
7167
|
-
icon:
|
|
7167
|
+
icon: Yp
|
|
7168
7168
|
},
|
|
7169
7169
|
{
|
|
7170
7170
|
title: e.richTextEditor.details,
|
|
@@ -7180,7 +7180,7 @@ const E1 = ({
|
|
|
7180
7180
|
const { from: i, to: s } = r.state.selection;
|
|
7181
7181
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleCodeBlock().run();
|
|
7182
7182
|
},
|
|
7183
|
-
icon:
|
|
7183
|
+
icon: Xp
|
|
7184
7184
|
},
|
|
7185
7185
|
{
|
|
7186
7186
|
title: e.richTextEditor.quote,
|
|
@@ -7188,7 +7188,7 @@ const E1 = ({
|
|
|
7188
7188
|
const { from: i, to: s } = r.state.selection;
|
|
7189
7189
|
r.chain().focus().setTextSelection({ from: i, to: s }).toggleBlockquote().run();
|
|
7190
7190
|
},
|
|
7191
|
-
icon:
|
|
7191
|
+
icon: Zp
|
|
7192
7192
|
},
|
|
7193
7193
|
{
|
|
7194
7194
|
title: e.richTextEditor.divider,
|
|
@@ -7281,7 +7281,7 @@ const E1 = ({
|
|
|
7281
7281
|
}
|
|
7282
7282
|
);
|
|
7283
7283
|
ud.displayName = "CommandList";
|
|
7284
|
-
const
|
|
7284
|
+
const Rw = ({
|
|
7285
7285
|
aiBlockConfig: t,
|
|
7286
7286
|
translations: e,
|
|
7287
7287
|
imageUploadConfig: n
|
|
@@ -7319,11 +7319,11 @@ const R1 = ({
|
|
|
7319
7319
|
},
|
|
7320
7320
|
addProseMirrorPlugins() {
|
|
7321
7321
|
return [
|
|
7322
|
-
|
|
7322
|
+
Qp({
|
|
7323
7323
|
editor: this.editor,
|
|
7324
7324
|
...this.options.suggestion,
|
|
7325
7325
|
items: ({ query: r }) => {
|
|
7326
|
-
const i = r.toLowerCase().trim(), s =
|
|
7326
|
+
const i = r.toLowerCase().trim(), s = Dw({
|
|
7327
7327
|
translations: e,
|
|
7328
7328
|
aiBlockConfig: t,
|
|
7329
7329
|
imageUploadConfig: n
|
|
@@ -7405,7 +7405,7 @@ const R1 = ({
|
|
|
7405
7405
|
commands: m.commands.filter((b) => b.title.toLowerCase().includes(p))
|
|
7406
7406
|
})).filter((m) => m.commands.length > 0);
|
|
7407
7407
|
}
|
|
7408
|
-
r = new
|
|
7408
|
+
r = new em(ud, {
|
|
7409
7409
|
props: {
|
|
7410
7410
|
items: a.items,
|
|
7411
7411
|
groups: f,
|
|
@@ -7420,7 +7420,7 @@ const R1 = ({
|
|
|
7420
7420
|
}
|
|
7421
7421
|
return o();
|
|
7422
7422
|
})();
|
|
7423
|
-
s = document.createElement("div"), document.body.appendChild(s), i =
|
|
7423
|
+
s = document.createElement("div"), document.body.appendChild(s), i = tm.createRoot(s), i.render(
|
|
7424
7424
|
/* @__PURE__ */ c(
|
|
7425
7425
|
l,
|
|
7426
7426
|
{
|
|
@@ -7486,7 +7486,7 @@ const R1 = ({
|
|
|
7486
7486
|
})
|
|
7487
7487
|
];
|
|
7488
7488
|
}
|
|
7489
|
-
}),
|
|
7489
|
+
}), Lw = ({
|
|
7490
7490
|
node: t,
|
|
7491
7491
|
deleteNode: e,
|
|
7492
7492
|
updateAttributes: n
|
|
@@ -7506,7 +7506,7 @@ const R1 = ({
|
|
|
7506
7506
|
], d = (u) => o.users.find((h) => h.id === u), f = (u) => {
|
|
7507
7507
|
try {
|
|
7508
7508
|
const h = new Date(u);
|
|
7509
|
-
return
|
|
7509
|
+
return ya(h, "HH:mm");
|
|
7510
7510
|
} catch (h) {
|
|
7511
7511
|
return console.error(h), u;
|
|
7512
7512
|
}
|
|
@@ -7564,7 +7564,7 @@ const R1 = ({
|
|
|
7564
7564
|
),
|
|
7565
7565
|
/* @__PURE__ */ c(Ws, { style: { display: "none" } })
|
|
7566
7566
|
] });
|
|
7567
|
-
},
|
|
7567
|
+
}, Ow = He.create({
|
|
7568
7568
|
name: "transcript",
|
|
7569
7569
|
group: "block",
|
|
7570
7570
|
atom: !0,
|
|
@@ -7615,7 +7615,7 @@ const R1 = ({
|
|
|
7615
7615
|
] : ["div"];
|
|
7616
7616
|
},
|
|
7617
7617
|
addNodeView() {
|
|
7618
|
-
return Vn(
|
|
7618
|
+
return Vn(Lw);
|
|
7619
7619
|
},
|
|
7620
7620
|
addCommands() {
|
|
7621
7621
|
return {
|
|
@@ -7625,7 +7625,7 @@ const R1 = ({
|
|
|
7625
7625
|
})
|
|
7626
7626
|
};
|
|
7627
7627
|
}
|
|
7628
|
-
}),
|
|
7628
|
+
}), Mw = Ow, Pw = () => {
|
|
7629
7629
|
const t = de();
|
|
7630
7630
|
return /* @__PURE__ */ g(
|
|
7631
7631
|
q.div,
|
|
@@ -7679,7 +7679,7 @@ const R1 = ({
|
|
|
7679
7679
|
]
|
|
7680
7680
|
}
|
|
7681
7681
|
);
|
|
7682
|
-
},
|
|
7682
|
+
}, Fw = ({
|
|
7683
7683
|
autoClearMinutes: t,
|
|
7684
7684
|
reset: e,
|
|
7685
7685
|
isOpen: n
|
|
@@ -7692,14 +7692,14 @@ const R1 = ({
|
|
|
7692
7692
|
)), () => {
|
|
7693
7693
|
r.current && (clearTimeout(r.current), r.current = null);
|
|
7694
7694
|
}), [e, n, t]);
|
|
7695
|
-
},
|
|
7695
|
+
}, zw = ({ children: t }) => {
|
|
7696
7696
|
const {
|
|
7697
7697
|
open: e,
|
|
7698
7698
|
shouldPlayEntranceAnimation: n,
|
|
7699
7699
|
setShouldPlayEntranceAnimation: r,
|
|
7700
7700
|
autoClearMinutes: i
|
|
7701
7701
|
} = Qr();
|
|
7702
|
-
return
|
|
7702
|
+
return Fw({
|
|
7703
7703
|
reset: () => {
|
|
7704
7704
|
},
|
|
7705
7705
|
isOpen: e,
|
|
@@ -7737,7 +7737,7 @@ const R1 = ({
|
|
|
7737
7737
|
},
|
|
7738
7738
|
"chat-window"
|
|
7739
7739
|
) });
|
|
7740
|
-
}, $
|
|
7740
|
+
}, $w = ({ action: t, onClose: e }) => {
|
|
7741
7741
|
const n = () => {
|
|
7742
7742
|
t.onClick(), e();
|
|
7743
7743
|
};
|
|
@@ -7782,7 +7782,7 @@ const R1 = ({
|
|
|
7782
7782
|
}
|
|
7783
7783
|
);
|
|
7784
7784
|
}
|
|
7785
|
-
},
|
|
7785
|
+
}, Bw = ({
|
|
7786
7786
|
enabled: t = !1,
|
|
7787
7787
|
greeting: e,
|
|
7788
7788
|
title: n,
|
|
@@ -7805,7 +7805,7 @@ const R1 = ({
|
|
|
7805
7805
|
onHide: l,
|
|
7806
7806
|
children: a
|
|
7807
7807
|
}
|
|
7808
|
-
),
|
|
7808
|
+
), jw = () => {
|
|
7809
7809
|
const {
|
|
7810
7810
|
enabled: t,
|
|
7811
7811
|
greeting: e,
|
|
@@ -7818,7 +7818,7 @@ const R1 = ({
|
|
|
7818
7818
|
} = Qr(), a = () => {
|
|
7819
7819
|
o(!1), l?.();
|
|
7820
7820
|
};
|
|
7821
|
-
return t ? /* @__PURE__ */ g(
|
|
7821
|
+
return t ? /* @__PURE__ */ g(zw, { clickOutsideToClose: !0, hitEscapeToClose: !0, shortcut: "", children: [
|
|
7822
7822
|
/* @__PURE__ */ c("div", { className: "flex items-center justify-end p-3 pb-0", children: /* @__PURE__ */ c(
|
|
7823
7823
|
Ht,
|
|
7824
7824
|
{
|
|
@@ -7839,7 +7839,7 @@ const R1 = ({
|
|
|
7839
7839
|
] }),
|
|
7840
7840
|
r && /* @__PURE__ */ c("p", { className: "text-md text-f1-foreground-secondary", children: r }),
|
|
7841
7841
|
i?.length && /* @__PURE__ */ c("ul", { className: "flex flex-col gap-2", children: i.map((d, f) => /* @__PURE__ */ g("li", { className: "flex items-center gap-1", children: [
|
|
7842
|
-
/* @__PURE__ */ c(
|
|
7842
|
+
/* @__PURE__ */ c(va, { className: "h-5 w-5 flex-shrink-0" }),
|
|
7843
7843
|
/* @__PURE__ */ g("span", { className: "text-md text-f1-foreground", children: [
|
|
7844
7844
|
d.noBoldText,
|
|
7845
7845
|
" ",
|
|
@@ -7847,7 +7847,7 @@ const R1 = ({
|
|
|
7847
7847
|
] })
|
|
7848
7848
|
] }, f)) }),
|
|
7849
7849
|
s?.length && /* @__PURE__ */ c("div", { className: "flex flex-col gap-3 pt-2", children: s.map((d, f) => /* @__PURE__ */ c(
|
|
7850
|
-
$
|
|
7850
|
+
$w,
|
|
7851
7851
|
{
|
|
7852
7852
|
action: d,
|
|
7853
7853
|
onClose: () => o(!1)
|
|
@@ -7855,12 +7855,12 @@ const R1 = ({
|
|
|
7855
7855
|
f
|
|
7856
7856
|
)) })
|
|
7857
7857
|
] }) }),
|
|
7858
|
-
/* @__PURE__ */ c("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ c(
|
|
7858
|
+
/* @__PURE__ */ c("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ c(Pw, {}) })
|
|
7859
7859
|
] }) : null;
|
|
7860
|
-
},
|
|
7861
|
-
V("AiPromotionChat",
|
|
7862
|
-
),
|
|
7863
|
-
V("AiPromotionChatProvider",
|
|
7860
|
+
}, Hw = ue(
|
|
7861
|
+
V("AiPromotionChat", jw)
|
|
7862
|
+
), Vw = ue(
|
|
7863
|
+
V("AiPromotionChatProvider", Bw)
|
|
7864
7864
|
), fd = rt({
|
|
7865
7865
|
base: "flex w-full flex-col rounded-lg p-[1px]",
|
|
7866
7866
|
variants: {
|
|
@@ -7878,12 +7878,12 @@ const R1 = ({
|
|
|
7878
7878
|
}), bl = {
|
|
7879
7879
|
positive: Os,
|
|
7880
7880
|
warning: Zf,
|
|
7881
|
-
info:
|
|
7881
|
+
info: ka
|
|
7882
7882
|
}, wl = {
|
|
7883
7883
|
positive: "text-f1-foreground-positive font-medium",
|
|
7884
7884
|
warning: "text-f1-foreground-warning font-medium",
|
|
7885
7885
|
info: "text-f1-foreground-info font-medium"
|
|
7886
|
-
},
|
|
7886
|
+
}, Ww = P(
|
|
7887
7887
|
function({ title: e, onClose: n, children: r, actions: i = [], variant: s }, o) {
|
|
7888
7888
|
if (i.length > 2)
|
|
7889
7889
|
throw new Error(
|
|
@@ -7954,7 +7954,7 @@ const R1 = ({
|
|
|
7954
7954
|
}
|
|
7955
7955
|
);
|
|
7956
7956
|
}
|
|
7957
|
-
),
|
|
7957
|
+
), Uw = ({
|
|
7958
7958
|
compact: t,
|
|
7959
7959
|
variant: e = "ai"
|
|
7960
7960
|
}) => /* @__PURE__ */ g(
|
|
@@ -7988,19 +7988,19 @@ const R1 = ({
|
|
|
7988
7988
|
]
|
|
7989
7989
|
}
|
|
7990
7990
|
), hd = P(
|
|
7991
|
-
(t, e) => /* @__PURE__ */ c(
|
|
7992
|
-
),
|
|
7991
|
+
(t, e) => /* @__PURE__ */ c(Ww, { ref: e, ...t })
|
|
7992
|
+
), Gw = ({ compact: t, variant: e }) => /* @__PURE__ */ c(Uw, { compact: t, variant: e });
|
|
7993
7993
|
hd.displayName = "F0Callout";
|
|
7994
7994
|
const JN = fe(
|
|
7995
7995
|
ue(hd),
|
|
7996
|
-
|
|
7997
|
-
),
|
|
7996
|
+
Gw
|
|
7997
|
+
), Kw = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: r, aspect: i }, s) => {
|
|
7998
7998
|
const o = Object.keys(e), l = t.map((a) => ({
|
|
7999
7999
|
subject: a.label,
|
|
8000
8000
|
...a.values
|
|
8001
8001
|
}));
|
|
8002
8002
|
return /* @__PURE__ */ c(
|
|
8003
|
-
|
|
8003
|
+
ip,
|
|
8004
8004
|
{
|
|
8005
8005
|
config: e,
|
|
8006
8006
|
ref: s,
|
|
@@ -8008,12 +8008,12 @@ const JN = fe(
|
|
|
8008
8008
|
"data-chromatic": "ignore",
|
|
8009
8009
|
children: /* @__PURE__ */ g(ig, { accessibilityLayer: !0, data: l, children: [
|
|
8010
8010
|
/* @__PURE__ */ c(
|
|
8011
|
-
|
|
8011
|
+
sp,
|
|
8012
8012
|
{
|
|
8013
8013
|
cursor: !0,
|
|
8014
8014
|
animationDuration: 100,
|
|
8015
8015
|
offset: 20,
|
|
8016
|
-
content: /* @__PURE__ */ c(
|
|
8016
|
+
content: /* @__PURE__ */ c(op, { indicator: "dot" })
|
|
8017
8017
|
}
|
|
8018
8018
|
),
|
|
8019
8019
|
/* @__PURE__ */ c(mc, { gridType: "circle" }),
|
|
@@ -8039,16 +8039,16 @@ const JN = fe(
|
|
|
8039
8039
|
},
|
|
8040
8040
|
a
|
|
8041
8041
|
)),
|
|
8042
|
-
Object.keys(e).length > 1 && /* @__PURE__ */ c(
|
|
8042
|
+
Object.keys(e).length > 1 && /* @__PURE__ */ c(lp, { iconType: "star", content: /* @__PURE__ */ c(ap, {}) })
|
|
8043
8043
|
] })
|
|
8044
8044
|
}
|
|
8045
8045
|
);
|
|
8046
|
-
},
|
|
8047
|
-
|
|
8048
|
-
V("RadarChart",
|
|
8046
|
+
}, qw = ue(
|
|
8047
|
+
cp(
|
|
8048
|
+
V("RadarChart", Kw)
|
|
8049
8049
|
)
|
|
8050
|
-
), YN =
|
|
8051
|
-
function
|
|
8050
|
+
), YN = qw;
|
|
8051
|
+
function Jw({
|
|
8052
8052
|
title: t,
|
|
8053
8053
|
isActive: e = !1,
|
|
8054
8054
|
onClick: n
|
|
@@ -8068,7 +8068,7 @@ function J1({
|
|
|
8068
8068
|
"aria-label": `${t}${e ? " (selected)" : ""}`,
|
|
8069
8069
|
"aria-pressed": n ? e : void 0,
|
|
8070
8070
|
children: [
|
|
8071
|
-
/* @__PURE__ */ c(H, { icon:
|
|
8071
|
+
/* @__PURE__ */ c(H, { icon: nm, size: "md", color: "selected" }),
|
|
8072
8072
|
/* @__PURE__ */ c(
|
|
8073
8073
|
$e,
|
|
8074
8074
|
{
|
|
@@ -8081,13 +8081,13 @@ function J1({
|
|
|
8081
8081
|
}
|
|
8082
8082
|
);
|
|
8083
8083
|
}
|
|
8084
|
-
function
|
|
8084
|
+
function Yw({
|
|
8085
8085
|
author: t,
|
|
8086
8086
|
timestamp: e,
|
|
8087
8087
|
onClick: n,
|
|
8088
8088
|
isActive: r
|
|
8089
8089
|
}) {
|
|
8090
|
-
const { locale: i } = Qf(), s = eh(i), o =
|
|
8090
|
+
const { locale: i } = Qf(), s = eh(i), o = ya(e, "PPPp", { locale: s }), l = `${t.firstName} ${t.lastName}`;
|
|
8091
8091
|
return /* @__PURE__ */ g(
|
|
8092
8092
|
"button",
|
|
8093
8093
|
{
|
|
@@ -8127,7 +8127,7 @@ function Y1({
|
|
|
8127
8127
|
}
|
|
8128
8128
|
);
|
|
8129
8129
|
}
|
|
8130
|
-
function
|
|
8130
|
+
function Xw({
|
|
8131
8131
|
title: t,
|
|
8132
8132
|
versions: e,
|
|
8133
8133
|
currentVersion: n,
|
|
@@ -8150,7 +8150,7 @@ function X1({
|
|
|
8150
8150
|
),
|
|
8151
8151
|
/* @__PURE__ */ c(dn, { className: "h-full flex-1", children: /* @__PURE__ */ g("div", { className: "flex flex-col gap-1", children: [
|
|
8152
8152
|
n && /* @__PURE__ */ c(
|
|
8153
|
-
|
|
8153
|
+
Jw,
|
|
8154
8154
|
{
|
|
8155
8155
|
title: n.title,
|
|
8156
8156
|
onClick: n.onClick,
|
|
@@ -8158,7 +8158,7 @@ function X1({
|
|
|
8158
8158
|
}
|
|
8159
8159
|
),
|
|
8160
8160
|
e.map((i) => /* @__PURE__ */ c(
|
|
8161
|
-
|
|
8161
|
+
Yw,
|
|
8162
8162
|
{
|
|
8163
8163
|
author: i.author,
|
|
8164
8164
|
timestamp: i.timestamp,
|
|
@@ -8173,7 +8173,7 @@ function X1({
|
|
|
8173
8173
|
);
|
|
8174
8174
|
}
|
|
8175
8175
|
const XN = ue(
|
|
8176
|
-
V("F0VersionHistory",
|
|
8176
|
+
V("F0VersionHistory", Xw)
|
|
8177
8177
|
), pd = P(
|
|
8178
8178
|
({ height: t, itemCount: e, itemSize: n, className: r, renderer: i }, s) => {
|
|
8179
8179
|
const o = z.useRef(null);
|
|
@@ -8268,7 +8268,7 @@ function ni(t, e) {
|
|
|
8268
8268
|
), i = r.indexOf(t);
|
|
8269
8269
|
i > 0 ? r[i - 1].focus() : r.length > 0 && e?.();
|
|
8270
8270
|
}
|
|
8271
|
-
const
|
|
8271
|
+
const Zw = ({
|
|
8272
8272
|
entity: t,
|
|
8273
8273
|
selected: e,
|
|
8274
8274
|
onSelect: n,
|
|
@@ -8328,7 +8328,7 @@ const Z1 = ({
|
|
|
8328
8328
|
}
|
|
8329
8329
|
) }),
|
|
8330
8330
|
/* @__PURE__ */ c(
|
|
8331
|
-
|
|
8331
|
+
Ca,
|
|
8332
8332
|
{
|
|
8333
8333
|
"data-avatarname-navigator-element": "true",
|
|
8334
8334
|
checked: e,
|
|
@@ -8374,7 +8374,7 @@ const Z1 = ({
|
|
|
8374
8374
|
const [x, v] = L(!1);
|
|
8375
8375
|
if (!t)
|
|
8376
8376
|
return /* @__PURE__ */ c(
|
|
8377
|
-
|
|
8377
|
+
Zw,
|
|
8378
8378
|
{
|
|
8379
8379
|
marginLeft: u ? "ml-6" : "ml-0",
|
|
8380
8380
|
entity: r,
|
|
@@ -8434,7 +8434,7 @@ const Z1 = ({
|
|
|
8434
8434
|
p && /* @__PURE__ */ c(
|
|
8435
8435
|
H,
|
|
8436
8436
|
{
|
|
8437
|
-
icon:
|
|
8437
|
+
icon: rm,
|
|
8438
8438
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
8439
8439
|
}
|
|
8440
8440
|
),
|
|
@@ -8451,7 +8451,7 @@ const Z1 = ({
|
|
|
8451
8451
|
/* @__PURE__ */ c(Zr, { value: r.subItems?.length ?? 0 })
|
|
8452
8452
|
] }),
|
|
8453
8453
|
/* @__PURE__ */ c(
|
|
8454
|
-
|
|
8454
|
+
Ca,
|
|
8455
8455
|
{
|
|
8456
8456
|
checked: I,
|
|
8457
8457
|
disabled: b,
|
|
@@ -8496,7 +8496,7 @@ const xl = ({
|
|
|
8496
8496
|
hideLabel: !0,
|
|
8497
8497
|
label: t,
|
|
8498
8498
|
onClick: () => e(),
|
|
8499
|
-
icon:
|
|
8499
|
+
icon: Sa,
|
|
8500
8500
|
size: "sm",
|
|
8501
8501
|
variant: "outline"
|
|
8502
8502
|
}
|
|
@@ -8527,7 +8527,7 @@ const xl = ({
|
|
|
8527
8527
|
l && !l.disabled && l.onClick?.();
|
|
8528
8528
|
}, s = n.every((o) => o.disabled);
|
|
8529
8529
|
return /* @__PURE__ */ c(
|
|
8530
|
-
|
|
8530
|
+
Na,
|
|
8531
8531
|
{
|
|
8532
8532
|
items: r,
|
|
8533
8533
|
value: t.label,
|
|
@@ -8537,7 +8537,7 @@ const xl = ({
|
|
|
8537
8537
|
size: "sm"
|
|
8538
8538
|
}
|
|
8539
8539
|
);
|
|
8540
|
-
},
|
|
8540
|
+
}, Qw = ({
|
|
8541
8541
|
actions: t,
|
|
8542
8542
|
selectAllLabel: e,
|
|
8543
8543
|
clearLabel: n,
|
|
@@ -9004,7 +9004,7 @@ const xl = ({
|
|
|
9004
9004
|
}
|
|
9005
9005
|
),
|
|
9006
9006
|
/* @__PURE__ */ c(
|
|
9007
|
-
|
|
9007
|
+
Qw,
|
|
9008
9008
|
{
|
|
9009
9009
|
onSelectAll: f,
|
|
9010
9010
|
onClear: d,
|
|
@@ -9036,7 +9036,7 @@ const xl = ({
|
|
|
9036
9036
|
i ? "pl-2" : "pl-0"
|
|
9037
9037
|
),
|
|
9038
9038
|
left: !i && /* @__PURE__ */ c(
|
|
9039
|
-
|
|
9039
|
+
xa,
|
|
9040
9040
|
{
|
|
9041
9041
|
src: t.subAvatar,
|
|
9042
9042
|
name: t.subName,
|
|
@@ -9676,8 +9676,8 @@ function ax(t, e) {
|
|
|
9676
9676
|
}, 1 / 0)), Math.min(n, r);
|
|
9677
9677
|
}
|
|
9678
9678
|
var hn = "ToggleGroup", [gd] = hh(hn, [
|
|
9679
|
-
|
|
9680
|
-
]), bd =
|
|
9679
|
+
Ia
|
|
9680
|
+
]), bd = Ia(), Zs = z.forwardRef((t, e) => {
|
|
9681
9681
|
const { type: n, ...r } = t;
|
|
9682
9682
|
if (n === "single")
|
|
9683
9683
|
return /* @__PURE__ */ c(cx, { ...r, ref: e });
|
|
@@ -9693,7 +9693,7 @@ var [wd, xd] = gd(hn), cx = z.forwardRef((t, e) => {
|
|
|
9693
9693
|
onValueChange: i = () => {
|
|
9694
9694
|
},
|
|
9695
9695
|
...s
|
|
9696
|
-
} = t, [o, l] =
|
|
9696
|
+
} = t, [o, l] = Aa({
|
|
9697
9697
|
prop: n,
|
|
9698
9698
|
defaultProp: r,
|
|
9699
9699
|
onChange: i
|
|
@@ -9716,7 +9716,7 @@ var [wd, xd] = gd(hn), cx = z.forwardRef((t, e) => {
|
|
|
9716
9716
|
onValueChange: i = () => {
|
|
9717
9717
|
},
|
|
9718
9718
|
...s
|
|
9719
|
-
} = t, [o = [], l] =
|
|
9719
|
+
} = t, [o = [], l] = Aa({
|
|
9720
9720
|
prop: n,
|
|
9721
9721
|
defaultProp: r,
|
|
9722
9722
|
onChange: i
|
|
@@ -9817,14 +9817,14 @@ const Sd = rt({
|
|
|
9817
9817
|
size: "default"
|
|
9818
9818
|
}
|
|
9819
9819
|
}), hx = Sn.forwardRef(({ className: t, variant: e, size: n, ...r }, i) => /* @__PURE__ */ c(
|
|
9820
|
-
|
|
9820
|
+
_a,
|
|
9821
9821
|
{
|
|
9822
9822
|
ref: i,
|
|
9823
9823
|
className: k(Sd({ variant: e, size: n, className: t })),
|
|
9824
9824
|
...r
|
|
9825
9825
|
}
|
|
9826
9826
|
));
|
|
9827
|
-
hx.displayName =
|
|
9827
|
+
hx.displayName = _a.displayName;
|
|
9828
9828
|
const Nd = Sn.createContext({
|
|
9829
9829
|
size: "default",
|
|
9830
9830
|
variant: "default"
|
|
@@ -9873,7 +9873,7 @@ const px = ({
|
|
|
9873
9873
|
onChange(h) {
|
|
9874
9874
|
h && a?.(t);
|
|
9875
9875
|
}
|
|
9876
|
-
}), f =
|
|
9876
|
+
}), f = Ga(e, {
|
|
9877
9877
|
yesterdayRelative: !1
|
|
9878
9878
|
});
|
|
9879
9879
|
return /* @__PURE__ */ g(
|
|
@@ -9885,7 +9885,7 @@ const px = ({
|
|
|
9885
9885
|
l(t);
|
|
9886
9886
|
},
|
|
9887
9887
|
children: [
|
|
9888
|
-
/* @__PURE__ */ c(Hi, { icon: i ??
|
|
9888
|
+
/* @__PURE__ */ c(Hi, { icon: i ?? cc }),
|
|
9889
9889
|
/* @__PURE__ */ g("div", { className: "flex-1", children: [
|
|
9890
9890
|
/* @__PURE__ */ c(
|
|
9891
9891
|
"p",
|
|
@@ -9942,7 +9942,7 @@ const px = ({
|
|
|
9942
9942
|
)) }), bx = ({
|
|
9943
9943
|
title: t,
|
|
9944
9944
|
numItems: e
|
|
9945
|
-
}) => /* @__PURE__ */ c(_d, { title: t, children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ c(Qs.Skeleton, {}, r)) }), vr = fe(gx, bx), wx = 3, xx = ["today", "yesterday", "lastWeek", "lastMonth"], yx = (t) =>
|
|
9945
|
+
}) => /* @__PURE__ */ c(_d, { title: t, children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ c(Qs.Skeleton, {}, r)) }), vr = fe(gx, bx), wx = 3, xx = ["today", "yesterday", "lastWeek", "lastMonth"], yx = (t) => fp(t, ([e]) => {
|
|
9946
9946
|
const n = xx.indexOf(e);
|
|
9947
9947
|
return n === -1 ? -Number(e) : n - 4e3;
|
|
9948
9948
|
}), ss = () => /* @__PURE__ */ c("div", { className: "-mx-2 h-px bg-f1-background-secondary" }), vx = ({
|
|
@@ -9952,7 +9952,7 @@ const px = ({
|
|
|
9952
9952
|
onEndReached: r,
|
|
9953
9953
|
onEndReachedItemsThreshold: i = 5
|
|
9954
9954
|
}) => {
|
|
9955
|
-
const s = de(), o =
|
|
9955
|
+
const s = de(), o = dp(t, "createdAt"), l = Object.values(o).slice().flatMap((f) => f.map((u) => u.id)).slice(-i), a = up((f) => {
|
|
9956
9956
|
l.includes(f) && r?.();
|
|
9957
9957
|
}, 1e3), d = yx(
|
|
9958
9958
|
Object.entries(o).filter(([f, u]) => !!u.length)
|
|
@@ -10066,7 +10066,7 @@ function Nx({
|
|
|
10066
10066
|
n ? "bottom-0.5" : "-bottom-[3px]"
|
|
10067
10067
|
),
|
|
10068
10068
|
children: /* @__PURE__ */ c(
|
|
10069
|
-
|
|
10069
|
+
dc,
|
|
10070
10070
|
{
|
|
10071
10071
|
lastEmojiReaction: i,
|
|
10072
10072
|
onSelect: s,
|
|
@@ -10206,7 +10206,7 @@ const Ax = ({
|
|
|
10206
10206
|
onClick: r
|
|
10207
10207
|
}) => /* @__PURE__ */ g("div", { className: "flex w-full flex-col items-start justify-between gap-4 rounded-md bg-gradient-to-r from-[#F5A51C]/30 via-[#E51943]/30 to-[#5596F6]/30 px-3 py-3 ring-1 ring-inset ring-f1-border-secondary sm:flex-row sm:items-center sm:px-4", children: [
|
|
10208
10208
|
/* @__PURE__ */ g("div", { className: "flex flex-col items-start gap-3 sm:flex-row sm:items-center", children: [
|
|
10209
|
-
/* @__PURE__ */ c(
|
|
10209
|
+
/* @__PURE__ */ c(Ea, { module: "kudos", size: "lg" }),
|
|
10210
10210
|
/* @__PURE__ */ g("div", { className: "flex flex-col", children: [
|
|
10211
10211
|
/* @__PURE__ */ c("span", { className: "font-medium text-f1-foreground", children: t }),
|
|
10212
10212
|
/* @__PURE__ */ c("span", { className: "text-f1-foreground-secondary", children: e })
|
|
@@ -10269,7 +10269,7 @@ function Tx({ items: t, onInteraction: e, locale: n, action: r }) {
|
|
|
10269
10269
|
hideLabel: !0
|
|
10270
10270
|
}
|
|
10271
10271
|
),
|
|
10272
|
-
/* @__PURE__ */ c(
|
|
10272
|
+
/* @__PURE__ */ c(dc, { onSelect: e, locale: n }),
|
|
10273
10273
|
t.map((i) => /* @__PURE__ */ c(
|
|
10274
10274
|
Ex,
|
|
10275
10275
|
{
|
|
@@ -10432,7 +10432,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10432
10432
|
place: n,
|
|
10433
10433
|
date: r
|
|
10434
10434
|
}) => {
|
|
10435
|
-
let i =
|
|
10435
|
+
let i = hp(r);
|
|
10436
10436
|
const s = (o) => {
|
|
10437
10437
|
o.stopPropagation();
|
|
10438
10438
|
};
|
|
@@ -10505,7 +10505,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10505
10505
|
dropdownItems: m,
|
|
10506
10506
|
noReactionsButton: b = !1
|
|
10507
10507
|
}) => {
|
|
10508
|
-
const w = [d.views, d.comments].filter(Boolean).join(" · "), x = !0, v =
|
|
10508
|
+
const w = [d.views, d.comments].filter(Boolean).join(" · "), x = !0, v = Ga(r), S = () => {
|
|
10509
10509
|
o(t);
|
|
10510
10510
|
}, _ = (C) => {
|
|
10511
10511
|
C.stopPropagation();
|
|
@@ -10532,7 +10532,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10532
10532
|
}
|
|
10533
10533
|
)
|
|
10534
10534
|
}
|
|
10535
|
-
) : /* @__PURE__ */ c(Hi, { icon:
|
|
10535
|
+
) : /* @__PURE__ */ c(Hi, { icon: Lo }) }),
|
|
10536
10536
|
/* @__PURE__ */ g("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
|
|
10537
10537
|
/* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col gap-2", children: [
|
|
10538
10538
|
/* @__PURE__ */ g("div", { className: "flex flex-row justify-between", children: [
|
|
@@ -10566,7 +10566,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10566
10566
|
children: I
|
|
10567
10567
|
}
|
|
10568
10568
|
)
|
|
10569
|
-
] }) : /* @__PURE__ */ c("div", { className: "block md:hidden", children: /* @__PURE__ */ c(Hi, { icon:
|
|
10569
|
+
] }) : /* @__PURE__ */ c("div", { className: "block md:hidden", children: /* @__PURE__ */ c(Hi, { icon: Lo, size: "sm" }) }),
|
|
10570
10570
|
/* @__PURE__ */ c(
|
|
10571
10571
|
"span",
|
|
10572
10572
|
{
|
|
@@ -10674,7 +10674,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10674
10674
|
action: {
|
|
10675
10675
|
label: h.label,
|
|
10676
10676
|
onClick: h.onClick,
|
|
10677
|
-
icon:
|
|
10677
|
+
icon: im
|
|
10678
10678
|
}
|
|
10679
10679
|
}
|
|
10680
10680
|
)
|
|
@@ -10779,7 +10779,7 @@ const Dx = V("Reactions", Tx), Rx = ({
|
|
|
10779
10779
|
children: /* @__PURE__ */ c(
|
|
10780
10780
|
H,
|
|
10781
10781
|
{
|
|
10782
|
-
icon:
|
|
10782
|
+
icon: sm,
|
|
10783
10783
|
size: "md",
|
|
10784
10784
|
"aria-hidden": !0,
|
|
10785
10785
|
color: "default",
|
|
@@ -10954,7 +10954,7 @@ const Ux = V("PersonItem", Md), Pd = P(
|
|
|
10954
10954
|
Kn,
|
|
10955
10955
|
{
|
|
10956
10956
|
ref: r,
|
|
10957
|
-
leftIcon: () => /* @__PURE__ */ c(
|
|
10957
|
+
leftIcon: () => /* @__PURE__ */ c(Ta, { name: e, size: "xs", src: t }),
|
|
10958
10958
|
text: e,
|
|
10959
10959
|
action: ri(n, e)
|
|
10960
10960
|
}
|
|
@@ -10974,7 +10974,7 @@ const Gx = V("CompanyItem", Pd), Fd = P(
|
|
|
10974
10974
|
);
|
|
10975
10975
|
Fd.displayName = "TeamItem";
|
|
10976
10976
|
const Kx = V("TeamItem", Fd), zd = P(
|
|
10977
|
-
({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(
|
|
10977
|
+
({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Da, { ...t }) })
|
|
10978
10978
|
);
|
|
10979
10979
|
zd.displayName = "DotTagItem";
|
|
10980
10980
|
const qx = V("DotTagItem", zd), $d = P(
|
|
@@ -11073,7 +11073,7 @@ const ty = V("DataList", Wd), We = Object.assign(ty, {
|
|
|
11073
11073
|
V("DetailsItem", ry)
|
|
11074
11074
|
), sy = P(
|
|
11075
11075
|
function({ title: e, tableView: n = !1, details: r, dataTestId: i }, s) {
|
|
11076
|
-
return /* @__PURE__ */ c(
|
|
11076
|
+
return /* @__PURE__ */ c(Ra, { dataTestId: i, children: /* @__PURE__ */ g("div", { ref: s, className: "flex flex-col gap-4", children: [
|
|
11077
11077
|
!!e && /* @__PURE__ */ c("p", { className: "mb-1 pl-1.5 text-sm font-semibold text-f1-foreground-secondary", children: e.toLocaleUpperCase() }),
|
|
11078
11078
|
/* @__PURE__ */ c(
|
|
11079
11079
|
"div",
|
|
@@ -11131,7 +11131,7 @@ const ty = V("DataList", Wd), We = Object.assign(ty, {
|
|
|
11131
11131
|
n.info && /* @__PURE__ */ c(Dt, { label: n.info, children: /* @__PURE__ */ c(
|
|
11132
11132
|
H,
|
|
11133
11133
|
{
|
|
11134
|
-
icon:
|
|
11134
|
+
icon: ka,
|
|
11135
11135
|
size: "sm",
|
|
11136
11136
|
className: "text-f1-icon-secondary"
|
|
11137
11137
|
}
|
|
@@ -11144,7 +11144,7 @@ const ty = V("DataList", Wd), We = Object.assign(ty, {
|
|
|
11144
11144
|
"description" in n && n.description && /* @__PURE__ */ c("p", { className: "truncate text-f1-foreground-secondary", children: n.description })
|
|
11145
11145
|
] }),
|
|
11146
11146
|
/* @__PURE__ */ g("div", { className: "flex flex-row items-center justify-between gap-2", children: [
|
|
11147
|
-
"rightTag" in n && n.rightTag && /* @__PURE__ */ c(
|
|
11147
|
+
"rightTag" in n && n.rightTag && /* @__PURE__ */ c(Da, { ...n.rightTag }),
|
|
11148
11148
|
"actions" in n && /* @__PURE__ */ g("div", { className: "flex flex-1 flex-row items-center justify-end gap-2", children: [
|
|
11149
11149
|
n.actions?.primary && /* @__PURE__ */ c(
|
|
11150
11150
|
B,
|
|
@@ -11185,11 +11185,11 @@ const iI = ue(
|
|
|
11185
11185
|
)
|
|
11186
11186
|
);
|
|
11187
11187
|
function Gd() {
|
|
11188
|
-
const { canvasContent: t, closeCanvas: e } =
|
|
11188
|
+
const { canvasContent: t, closeCanvas: e } = uc(), n = de(), r = Hn(), [i, s] = L(0), o = K(t);
|
|
11189
11189
|
W(() => {
|
|
11190
11190
|
t && o.current && t !== o.current && s((d) => d + 1), o.current = t;
|
|
11191
11191
|
}, [t]);
|
|
11192
|
-
const l = t ?
|
|
11192
|
+
const l = t ? om(t.type) : void 0, a = () => {
|
|
11193
11193
|
if (!t || !l) return null;
|
|
11194
11194
|
const d = l.renderHeaderActions({ content: t }), f = l.renderContent({
|
|
11195
11195
|
content: t,
|
|
@@ -11282,7 +11282,7 @@ function cy({
|
|
|
11282
11282
|
ai: r,
|
|
11283
11283
|
aiPromotion: i
|
|
11284
11284
|
}) {
|
|
11285
|
-
const s = r?.enabled ?
|
|
11285
|
+
const s = r?.enabled ? lm : i?.enabled ? Vw : Gh, o = r?.enabled ? r : i?.enabled ? i : void 0;
|
|
11286
11286
|
return /* @__PURE__ */ c(s, { ...o, children: /* @__PURE__ */ c(
|
|
11287
11287
|
hy,
|
|
11288
11288
|
{
|
|
@@ -11336,7 +11336,7 @@ function hy({
|
|
|
11336
11336
|
canvasContent: h,
|
|
11337
11337
|
chatWidth: p,
|
|
11338
11338
|
resizable: m
|
|
11339
|
-
} =
|
|
11339
|
+
} = uc(), b = u === "fullscreen", w = u === "canvas", { open: x } = Qr(), v = m ? p : am, S = K(b), _ = b && !S.current, I = !b && S.current, [
|
|
11340
11340
|
C,
|
|
11341
11341
|
T
|
|
11342
11342
|
] = L(!1);
|
|
@@ -11352,7 +11352,7 @@ function hy({
|
|
|
11352
11352
|
}, [f, a]), W(() => {
|
|
11353
11353
|
a(x);
|
|
11354
11354
|
}, [x, a]), fy(f, y), /* @__PURE__ */ c(
|
|
11355
|
-
|
|
11355
|
+
_m,
|
|
11356
11356
|
{
|
|
11357
11357
|
reducedMotion: d ? "always" : "never",
|
|
11358
11358
|
transition: {
|
|
@@ -11361,7 +11361,7 @@ function hy({
|
|
|
11361
11361
|
},
|
|
11362
11362
|
children: /* @__PURE__ */ g("div", { className: "scrollbar-macos grid h-screen grid-cols-1 grid-rows-[auto_minmax(0,1fr)]", children: [
|
|
11363
11363
|
/* @__PURE__ */ c("div", { className: "col-[1/-1]", children: i }),
|
|
11364
|
-
/* @__PURE__ */ c(
|
|
11364
|
+
/* @__PURE__ */ c(La, { id: "ai-chat-group", children: /* @__PURE__ */ g("div", { className: "relative isolate flex h-full", children: [
|
|
11365
11365
|
/* @__PURE__ */ c(Et, { children: s === "unlocked" && /* @__PURE__ */ c(
|
|
11366
11366
|
q.nav,
|
|
11367
11367
|
{
|
|
@@ -11451,13 +11451,13 @@ function hy({
|
|
|
11451
11451
|
onAnimationComplete: () => {
|
|
11452
11452
|
C && T(!1);
|
|
11453
11453
|
},
|
|
11454
|
-
children: /* @__PURE__ */ c(
|
|
11454
|
+
children: /* @__PURE__ */ c(cm, {})
|
|
11455
11455
|
}
|
|
11456
11456
|
)
|
|
11457
11457
|
]
|
|
11458
11458
|
}
|
|
11459
11459
|
),
|
|
11460
|
-
e?.enabled && /* @__PURE__ */ c(
|
|
11460
|
+
e?.enabled && /* @__PURE__ */ c(Hw, {})
|
|
11461
11461
|
] }) })
|
|
11462
11462
|
] })
|
|
11463
11463
|
}
|
|
@@ -11497,7 +11497,7 @@ function Kd({
|
|
|
11497
11497
|
variant: "ghost",
|
|
11498
11498
|
onClick: () => s(),
|
|
11499
11499
|
label: "Open main menu",
|
|
11500
|
-
icon:
|
|
11500
|
+
icon: Ja,
|
|
11501
11501
|
hideLabel: !0
|
|
11502
11502
|
}
|
|
11503
11503
|
),
|
|
@@ -11554,7 +11554,7 @@ function Kd({
|
|
|
11554
11554
|
)
|
|
11555
11555
|
] }),
|
|
11556
11556
|
/* @__PURE__ */ g("div", { children: [
|
|
11557
|
-
/* @__PURE__ */ c(
|
|
11557
|
+
/* @__PURE__ */ c(Ya, {}),
|
|
11558
11558
|
/* @__PURE__ */ c(kc, {})
|
|
11559
11559
|
] })
|
|
11560
11560
|
] }),
|
|
@@ -11602,7 +11602,7 @@ function gy({ label: t, options: e, hasNewUpdate: n }) {
|
|
|
11602
11602
|
),
|
|
11603
11603
|
"aria-label": t,
|
|
11604
11604
|
children: [
|
|
11605
|
-
/* @__PURE__ */ c(H, { icon:
|
|
11605
|
+
/* @__PURE__ */ c(H, { icon: fc, size: "sm" }),
|
|
11606
11606
|
n && /* @__PURE__ */ c("div", { className: "absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-f1-background-critical-bold ring-2 ring-f1-background-critical" })
|
|
11607
11607
|
]
|
|
11608
11608
|
}
|
|
@@ -11744,12 +11744,12 @@ const wy = ({
|
|
|
11744
11744
|
),
|
|
11745
11745
|
children: [
|
|
11746
11746
|
/* @__PURE__ */ c(
|
|
11747
|
-
|
|
11747
|
+
Ta,
|
|
11748
11748
|
{
|
|
11749
11749
|
name: t?.name?.[0],
|
|
11750
11750
|
src: t?.logo,
|
|
11751
11751
|
size: "sm",
|
|
11752
|
-
badge: e ? { icon:
|
|
11752
|
+
badge: e ? { icon: hc, type: "highlight" } : void 0
|
|
11753
11753
|
}
|
|
11754
11754
|
),
|
|
11755
11755
|
/* @__PURE__ */ c($e, { tag: "span", children: t?.name ?? "" })
|
|
@@ -11793,14 +11793,14 @@ function cI({
|
|
|
11793
11793
|
/* @__PURE__ */ c(
|
|
11794
11794
|
B,
|
|
11795
11795
|
{
|
|
11796
|
-
icon:
|
|
11796
|
+
icon: cc,
|
|
11797
11797
|
label: l.notifications,
|
|
11798
11798
|
onClick: i,
|
|
11799
11799
|
variant: "ghost",
|
|
11800
11800
|
hideLabel: !0
|
|
11801
11801
|
}
|
|
11802
11802
|
),
|
|
11803
|
-
o && /* @__PURE__ */ c("div", { className: "absolute -right-1 -top-1 rounded-full bg-f1-background", children: /* @__PURE__ */ c(_h, { type: "highlight", size: "sm", icon:
|
|
11803
|
+
o && /* @__PURE__ */ c("div", { className: "absolute -right-1 -top-1 rounded-full bg-f1-background", children: /* @__PURE__ */ c(_h, { type: "highlight", size: "sm", icon: hc }) })
|
|
11804
11804
|
] }) })
|
|
11805
11805
|
] });
|
|
11806
11806
|
}
|
|
@@ -11976,11 +11976,11 @@ const Cy = ({
|
|
|
11976
11976
|
return !I && !S && M.push({
|
|
11977
11977
|
label: d.actions.moveUp,
|
|
11978
11978
|
onClick: () => o?.(i, i - 1),
|
|
11979
|
-
icon:
|
|
11979
|
+
icon: dm
|
|
11980
11980
|
}), !I && !_ && M.push({
|
|
11981
11981
|
label: d.actions.moveDown,
|
|
11982
11982
|
onClick: () => o?.(i, i + 1),
|
|
11983
|
-
icon:
|
|
11983
|
+
icon: um
|
|
11984
11984
|
}), M.length > 0 && M.push({ type: "separator" }), M.push({
|
|
11985
11985
|
label: d.favorites.remove,
|
|
11986
11986
|
onClick: () => r?.(t),
|
|
@@ -12061,7 +12061,7 @@ const Cy = ({
|
|
|
12061
12061
|
)
|
|
12062
12062
|
] }), [t, b, x, R, C, e]);
|
|
12063
12063
|
return a ? /* @__PURE__ */ c(
|
|
12064
|
-
|
|
12064
|
+
pc,
|
|
12065
12065
|
{
|
|
12066
12066
|
value: t,
|
|
12067
12067
|
drag: "y",
|
|
@@ -12090,7 +12090,7 @@ const Cy = ({
|
|
|
12090
12090
|
const u = !l;
|
|
12091
12091
|
a(u), r?.(u);
|
|
12092
12092
|
};
|
|
12093
|
-
return /* @__PURE__ */ c("div", { children: /* @__PURE__ */ g(
|
|
12093
|
+
return /* @__PURE__ */ c("div", { children: /* @__PURE__ */ g(fm, { open: l, children: [
|
|
12094
12094
|
/* @__PURE__ */ c("div", { className: "group relative flex items-center", children: /* @__PURE__ */ g(
|
|
12095
12095
|
"div",
|
|
12096
12096
|
{
|
|
@@ -12126,7 +12126,7 @@ const Cy = ({
|
|
|
12126
12126
|
]
|
|
12127
12127
|
}
|
|
12128
12128
|
) }),
|
|
12129
|
-
/* @__PURE__ */ c(
|
|
12129
|
+
/* @__PURE__ */ c(hm, { forceMount: !0, className: "flex flex-col gap-1", children: /* @__PURE__ */ c(
|
|
12130
12130
|
q.div,
|
|
12131
12131
|
{
|
|
12132
12132
|
initial: !1,
|
|
@@ -12151,7 +12151,7 @@ const Cy = ({
|
|
|
12151
12151
|
onDragEnd: i,
|
|
12152
12152
|
currentOrder: s
|
|
12153
12153
|
}) => {
|
|
12154
|
-
const { isDragging: o, setIsDragging: l } = eo(), a = K(!1), d =
|
|
12154
|
+
const { isDragging: o, setIsDragging: l } = eo(), a = K(!1), d = Em(), f = () => {
|
|
12155
12155
|
l(!0), a.current = !0;
|
|
12156
12156
|
}, u = () => {
|
|
12157
12157
|
l(!1), setTimeout(() => {
|
|
@@ -12181,7 +12181,7 @@ const Cy = ({
|
|
|
12181
12181
|
}
|
|
12182
12182
|
);
|
|
12183
12183
|
return e ? /* @__PURE__ */ c(
|
|
12184
|
-
|
|
12184
|
+
pc,
|
|
12185
12185
|
{
|
|
12186
12186
|
id: t.id,
|
|
12187
12187
|
value: t,
|
|
@@ -12238,7 +12238,7 @@ function uI({
|
|
|
12238
12238
|
},
|
|
12239
12239
|
[n]
|
|
12240
12240
|
), p = vy();
|
|
12241
|
-
return /* @__PURE__ */ c(ky, { children: /* @__PURE__ */ c(
|
|
12241
|
+
return /* @__PURE__ */ c(ky, { children: /* @__PURE__ */ c(La, { id: "sidebar-menu", children: /* @__PURE__ */ c(
|
|
12242
12242
|
Iy,
|
|
12243
12243
|
{
|
|
12244
12244
|
disableDragging: p,
|
|
@@ -12361,7 +12361,7 @@ function Iy({
|
|
|
12361
12361
|
`fixed-${$}`
|
|
12362
12362
|
)) }),
|
|
12363
12363
|
v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(Yd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: R, children: A }) : /* @__PURE__ */ c(
|
|
12364
|
-
|
|
12364
|
+
Fo,
|
|
12365
12365
|
{
|
|
12366
12366
|
axis: "y",
|
|
12367
12367
|
values: w,
|
|
@@ -12386,7 +12386,7 @@ function Iy({
|
|
|
12386
12386
|
),
|
|
12387
12387
|
ref: r,
|
|
12388
12388
|
children: d ? /* @__PURE__ */ c("div", { className: M, children: U }) : /* @__PURE__ */ c(
|
|
12389
|
-
|
|
12389
|
+
Fo,
|
|
12390
12390
|
{
|
|
12391
12391
|
axis: "y",
|
|
12392
12392
|
values: e,
|
|
@@ -12535,7 +12535,7 @@ const hI = ue(_y), Ey = {
|
|
|
12535
12535
|
rejected: "critical"
|
|
12536
12536
|
}, Dl = {
|
|
12537
12537
|
approved: {
|
|
12538
|
-
icon:
|
|
12538
|
+
icon: va,
|
|
12539
12539
|
type: "positive",
|
|
12540
12540
|
size: "sm"
|
|
12541
12541
|
},
|
|
@@ -12545,7 +12545,7 @@ const hI = ue(_y), Ey = {
|
|
|
12545
12545
|
size: "sm"
|
|
12546
12546
|
}
|
|
12547
12547
|
}, Ty = {
|
|
12548
|
-
icon:
|
|
12548
|
+
icon: fc,
|
|
12549
12549
|
type: "neutral",
|
|
12550
12550
|
size: "sm"
|
|
12551
12551
|
}, Dy = {
|
|
@@ -18635,7 +18635,7 @@ e.sv.get(t.id.client) > t.id.clock && !mn(e.ds, t.id), DC = [{ light: "#ecd44433
|
|
|
18635
18635
|
}, OC = (t, e, n) => {
|
|
18636
18636
|
if (e !== null && e.anchor !== null && e.head !== null)
|
|
18637
18637
|
if (e.type === "all")
|
|
18638
|
-
t.setSelection(new
|
|
18638
|
+
t.setSelection(new pm(t.doc));
|
|
18639
18639
|
else if (e.type === "node") {
|
|
18640
18640
|
const r = Ar(
|
|
18641
18641
|
n.doc,
|
|
@@ -18643,7 +18643,7 @@ e.sv.get(t.id.client) > t.id.clock && !mn(e.ds, t.id), DC = [{ light: "#ecd44433
|
|
|
18643
18643
|
e.anchor,
|
|
18644
18644
|
n.mapping
|
|
18645
18645
|
);
|
|
18646
|
-
t.setSelection(
|
|
18646
|
+
t.setSelection(Qa.create(t.doc, r));
|
|
18647
18647
|
} else {
|
|
18648
18648
|
const r = Ar(
|
|
18649
18649
|
n.doc,
|
|
@@ -19470,12 +19470,12 @@ function la(t) {
|
|
|
19470
19470
|
function hi(t, e, n) {
|
|
19471
19471
|
const r = [], i = t.node(0);
|
|
19472
19472
|
n = typeof n == "number" && n >= 0 ? n : t.sameParent(e) ? Math.max(0, t.sharedDepth(e.pos) - 1) : t.sharedDepth(e.pos);
|
|
19473
|
-
const s = new
|
|
19473
|
+
const s = new mm(t, e, n), o = s.depth === 0 ? 0 : i.resolve(s.start).posAtIndex(0);
|
|
19474
19474
|
return s.parent.forEach((l, a) => {
|
|
19475
19475
|
const d = o + a, f = d + l.nodeSize;
|
|
19476
19476
|
if (d < s.start || d >= s.end)
|
|
19477
19477
|
return;
|
|
19478
|
-
const u = new
|
|
19478
|
+
const u = new Za(i.resolve(d), i.resolve(f));
|
|
19479
19479
|
r.push(u);
|
|
19480
19480
|
}), r;
|
|
19481
19481
|
}
|
|
@@ -19772,7 +19772,7 @@ const aa = (t, e) => {
|
|
|
19772
19772
|
o?.destroy(), o = null;
|
|
19773
19773
|
return;
|
|
19774
19774
|
}
|
|
19775
|
-
if (o || (o =
|
|
19775
|
+
if (o || (o = gm(u.dom, {
|
|
19776
19776
|
getReferenceClientRect: null,
|
|
19777
19777
|
interactive: !0,
|
|
19778
19778
|
trigger: "manual",
|
|
@@ -19895,33 +19895,33 @@ const iS = (t) => {
|
|
|
19895
19895
|
aiBlockConfig: n,
|
|
19896
19896
|
imageUploadConfig: r
|
|
19897
19897
|
}) => [
|
|
19898
|
-
Ja,
|
|
19899
|
-
Ya,
|
|
19900
|
-
Xa,
|
|
19901
|
-
Za,
|
|
19902
|
-
Qa,
|
|
19903
19898
|
ec,
|
|
19904
19899
|
tc,
|
|
19905
19900
|
nc,
|
|
19906
19901
|
rc,
|
|
19902
|
+
ic,
|
|
19903
|
+
sc,
|
|
19904
|
+
oc,
|
|
19905
|
+
lc,
|
|
19906
|
+
ac,
|
|
19907
19907
|
Sc,
|
|
19908
19908
|
Ic,
|
|
19909
19909
|
Nc,
|
|
19910
19910
|
Bb,
|
|
19911
|
-
|
|
19912
|
-
|
|
19913
|
-
|
|
19911
|
+
Sw,
|
|
19912
|
+
Mw,
|
|
19913
|
+
uw.configure({
|
|
19914
19914
|
currentConfig: n
|
|
19915
19915
|
}),
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
...r ? [
|
|
19919
|
-
|
|
19916
|
+
yw,
|
|
19917
|
+
Tw,
|
|
19918
|
+
...r ? [vw(r)] : [],
|
|
19919
|
+
fw,
|
|
19920
19920
|
// Automatically add unique IDs to all block nodes
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19921
|
+
bm,
|
|
19922
|
+
wm(t),
|
|
19923
|
+
xm(t),
|
|
19924
|
+
Rw({
|
|
19925
19925
|
aiBlockConfig: n,
|
|
19926
19926
|
translations: e,
|
|
19927
19927
|
imageUploadConfig: r
|
|
@@ -19950,7 +19950,7 @@ const iS = (t) => {
|
|
|
19950
19950
|
const s = e.filter(ua), o = r.filter(lS), l = t && ua(t), a = s.length > 0, d = o.length > 0, f = a || d || l;
|
|
19951
19951
|
return /* @__PURE__ */ g("div", { className: "flex flex-col", children: [
|
|
19952
19952
|
(n && n.length > 0 || f) && /* @__PURE__ */ g("div", { className: "flex flex-col items-start justify-between gap-2 sm:px-6 px-0 py-4 sm:flex-row sm:items-center", children: [
|
|
19953
|
-
n && n.length > 0 && /* @__PURE__ */ c(
|
|
19953
|
+
n && n.length > 0 && /* @__PURE__ */ c(pp, { items: n }),
|
|
19954
19954
|
/* @__PURE__ */ g("div", { className: "flex flex-shrink-0 flex-row items-center gap-2", children: [
|
|
19955
19955
|
d && /* @__PURE__ */ c(mt, { items: o }),
|
|
19956
19956
|
s.map((u, h) => /* @__PURE__ */ c(
|
|
@@ -19979,7 +19979,7 @@ const iS = (t) => {
|
|
|
19979
19979
|
}
|
|
19980
19980
|
),
|
|
19981
19981
|
l && aS(t) && /* @__PURE__ */ c(
|
|
19982
|
-
|
|
19982
|
+
Na,
|
|
19983
19983
|
{
|
|
19984
19984
|
items: t.items,
|
|
19985
19985
|
onClick: t.onClick,
|
|
@@ -20052,7 +20052,7 @@ const iS = (t) => {
|
|
|
20052
20052
|
W(() => {
|
|
20053
20053
|
l && l(C);
|
|
20054
20054
|
}, [C, l]);
|
|
20055
|
-
const A =
|
|
20055
|
+
const A = ym({
|
|
20056
20056
|
extensions: sS({
|
|
20057
20057
|
placeholder: n,
|
|
20058
20058
|
translations: x,
|
|
@@ -20134,7 +20134,7 @@ const iS = (t) => {
|
|
|
20134
20134
|
A.chain().focus().insertContentAt(Zn, { type: "paragraph" }).setTextSelection(Zn + 1).insertContent("/").run();
|
|
20135
20135
|
}
|
|
20136
20136
|
}, [A]), $ = a || d && d.length > 0 || u && u.length > 0 || f && f.length > 0 || h, re = l || C;
|
|
20137
|
-
return A ? /* @__PURE__ */ c(
|
|
20137
|
+
return A ? /* @__PURE__ */ c(Ra, { dataTestId: b, children: /* @__PURE__ */ g(
|
|
20138
20138
|
"div",
|
|
20139
20139
|
{
|
|
20140
20140
|
className: "relative flex h-full w-full flex-col",
|
|
@@ -20153,7 +20153,7 @@ const iS = (t) => {
|
|
|
20153
20153
|
),
|
|
20154
20154
|
N && /* @__PURE__ */ c("div", { className: "mx-auto flex w-full max-w-[824px] px-14 py-2", children: /* @__PURE__ */ g("div", { className: "flex w-max max-w-full items-center gap-4 rounded-md bg-f1-background-critical p-2 drop-shadow-sm", children: [
|
|
20155
20155
|
/* @__PURE__ */ g("div", { className: "flex w-full flex-row items-center gap-2", children: [
|
|
20156
|
-
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(
|
|
20156
|
+
/* @__PURE__ */ c("div", { className: "flex-shrink-0", children: /* @__PURE__ */ c(Oa, { size: "sm", type: "critical" }) }),
|
|
20157
20157
|
/* @__PURE__ */ c(
|
|
20158
20158
|
"p",
|
|
20159
20159
|
{
|
|
@@ -20174,7 +20174,7 @@ const iS = (t) => {
|
|
|
20174
20174
|
) })
|
|
20175
20175
|
] }) }),
|
|
20176
20176
|
!i && !p && /* @__PURE__ */ c("div", { className: "absolute bottom-8 left-1/2 z-50 max-w-[calc(100%-48px)] -translate-x-1/2 rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-2 shadow-md", children: /* @__PURE__ */ c(
|
|
20177
|
-
|
|
20177
|
+
vm,
|
|
20178
20178
|
{
|
|
20179
20179
|
editor: A,
|
|
20180
20180
|
disableButtons: !1,
|
|
@@ -20215,7 +20215,7 @@ const iS = (t) => {
|
|
|
20215
20215
|
onClick: D,
|
|
20216
20216
|
label: "Add paragraph",
|
|
20217
20217
|
hideLabel: !0,
|
|
20218
|
-
icon:
|
|
20218
|
+
icon: Sa
|
|
20219
20219
|
}
|
|
20220
20220
|
),
|
|
20221
20221
|
/* @__PURE__ */ c(
|
|
@@ -20231,7 +20231,7 @@ const iS = (t) => {
|
|
|
20231
20231
|
}
|
|
20232
20232
|
),
|
|
20233
20233
|
/* @__PURE__ */ c(
|
|
20234
|
-
|
|
20234
|
+
km,
|
|
20235
20235
|
{
|
|
20236
20236
|
editor: A,
|
|
20237
20237
|
className: "pb-28 [&>div]:mx-auto [&>div]:w-full [&>div]:max-w-[824px] [&>div]:transition-[padding] [&>div]:duration-300 sm:[&>div]:px-14 [&>div]:px-0"
|
|
@@ -20242,7 +20242,7 @@ const iS = (t) => {
|
|
|
20242
20242
|
)
|
|
20243
20243
|
] }),
|
|
20244
20244
|
!i && /* @__PURE__ */ c(
|
|
20245
|
-
|
|
20245
|
+
Cm,
|
|
20246
20246
|
{
|
|
20247
20247
|
editorId: _,
|
|
20248
20248
|
editor: A,
|
|
@@ -20542,7 +20542,7 @@ const iS = (t) => {
|
|
|
20542
20542
|
},
|
|
20543
20543
|
pS
|
|
20544
20544
|
), yS = ({ children: t }) => {
|
|
20545
|
-
const { enabled: e } =
|
|
20545
|
+
const { enabled: e } = Ka();
|
|
20546
20546
|
return /* @__PURE__ */ c(
|
|
20547
20547
|
"div",
|
|
20548
20548
|
{
|
|
@@ -20566,7 +20566,7 @@ const iS = (t) => {
|
|
|
20566
20566
|
}
|
|
20567
20567
|
);
|
|
20568
20568
|
}, vS = () => /* @__PURE__ */ c("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), kS = P(function({ header: e, children: n, action: r, summaries: i, alert: s, status: o, fullHeight: l = !1 }, a) {
|
|
20569
|
-
const { enabled: d, toggle: f } =
|
|
20569
|
+
const { enabled: d, toggle: f } = Ka();
|
|
20570
20570
|
W(() => {
|
|
20571
20571
|
if (s && o)
|
|
20572
20572
|
throw Error(
|
|
@@ -20642,7 +20642,7 @@ const iS = (t) => {
|
|
|
20642
20642
|
] })
|
|
20643
20643
|
] }, m)) }),
|
|
20644
20644
|
z.Children.toArray(n).filter(u).map((p, m) => /* @__PURE__ */ g(z.Fragment, { children: [
|
|
20645
|
-
m > 0 && /* @__PURE__ */ c(
|
|
20645
|
+
m > 0 && /* @__PURE__ */ c(Tm, { bare: !0 }),
|
|
20646
20646
|
p
|
|
20647
20647
|
] }, m))
|
|
20648
20648
|
] }),
|
|
@@ -20726,7 +20726,7 @@ const iS = (t) => {
|
|
|
20726
20726
|
{
|
|
20727
20727
|
ref: r,
|
|
20728
20728
|
...i,
|
|
20729
|
-
chart: /* @__PURE__ */ c(
|
|
20729
|
+
chart: /* @__PURE__ */ c(mp, { ...s, canBeBlurred: e })
|
|
20730
20730
|
}
|
|
20731
20731
|
);
|
|
20732
20732
|
}),
|
|
@@ -20740,7 +20740,7 @@ const iS = (t) => {
|
|
|
20740
20740
|
{
|
|
20741
20741
|
ref: n,
|
|
20742
20742
|
...e,
|
|
20743
|
-
chart: /* @__PURE__ */ c(
|
|
20743
|
+
chart: /* @__PURE__ */ c(gp, { yAxis: { hide: !0 }, ...e.chart })
|
|
20744
20744
|
}
|
|
20745
20745
|
);
|
|
20746
20746
|
}), _S = V(
|
|
@@ -20754,7 +20754,7 @@ const iS = (t) => {
|
|
|
20754
20754
|
{
|
|
20755
20755
|
ref: n,
|
|
20756
20756
|
...e,
|
|
20757
|
-
chart: /* @__PURE__ */ c(
|
|
20757
|
+
chart: /* @__PURE__ */ c(bp, { yAxis: { hide: !0 }, ...e.chart })
|
|
20758
20758
|
}
|
|
20759
20759
|
);
|
|
20760
20760
|
}
|
|
@@ -20771,7 +20771,7 @@ const iS = (t) => {
|
|
|
20771
20771
|
{
|
|
20772
20772
|
ref: n,
|
|
20773
20773
|
...e,
|
|
20774
|
-
chart: /* @__PURE__ */ c(
|
|
20774
|
+
chart: /* @__PURE__ */ c(wp, { ...e.chart })
|
|
20775
20775
|
}
|
|
20776
20776
|
);
|
|
20777
20777
|
}
|
|
@@ -20798,7 +20798,7 @@ const iS = (t) => {
|
|
|
20798
20798
|
{
|
|
20799
20799
|
ref: n,
|
|
20800
20800
|
...e,
|
|
20801
|
-
chart: /* @__PURE__ */ c(
|
|
20801
|
+
chart: /* @__PURE__ */ c(xp, { xAxis: { hide: !0 }, ...e.chart })
|
|
20802
20802
|
}
|
|
20803
20803
|
);
|
|
20804
20804
|
}
|
|
@@ -21421,7 +21421,7 @@ function DI({
|
|
|
21421
21421
|
withEmoji: "emoji" in l && !!l.emoji,
|
|
21422
21422
|
withPointerCursor: s,
|
|
21423
21423
|
children: [
|
|
21424
|
-
"alert" in l && l.alert && /* @__PURE__ */ c(
|
|
21424
|
+
"alert" in l && l.alert && /* @__PURE__ */ c(Oa, { type: l.alert }),
|
|
21425
21425
|
"emoji" in l && l.emoji && /* @__PURE__ */ c($h, { emoji: l.emoji }),
|
|
21426
21426
|
/* @__PURE__ */ g("div", { className: "flex-1", children: [
|
|
21427
21427
|
/* @__PURE__ */ c("p", { className: "line-clamp-1 font-medium", children: e }),
|
|
@@ -21455,7 +21455,7 @@ function fa({
|
|
|
21455
21455
|
return /* @__PURE__ */ g(YS, { onClick: (l) => {
|
|
21456
21456
|
l.preventDefault(), r?.(t);
|
|
21457
21457
|
}, className: s, children: [
|
|
21458
|
-
/* @__PURE__ */ c(
|
|
21458
|
+
/* @__PURE__ */ c(Ea, { module: i ?? "inbox", size: "md" }),
|
|
21459
21459
|
/* @__PURE__ */ g("div", { className: "flex-1", children: [
|
|
21460
21460
|
/* @__PURE__ */ c("p", { className: "line-clamp-1 font-medium", children: e }),
|
|
21461
21461
|
/* @__PURE__ */ c("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: n })
|
|
@@ -21581,7 +21581,7 @@ function MI({
|
|
|
21581
21581
|
/* @__PURE__ */ c("span", { className: "text-xl text-f1-foreground-secondary", children: e })
|
|
21582
21582
|
] }),
|
|
21583
21583
|
/* @__PURE__ */ c("div", { className: "mt-2", children: /* @__PURE__ */ c(
|
|
21584
|
-
|
|
21584
|
+
yp,
|
|
21585
21585
|
{
|
|
21586
21586
|
data: n,
|
|
21587
21587
|
legend: i,
|
|
@@ -21686,7 +21686,7 @@ const rf = (t, e) => ((e ?? 0) < -1 * (t ?? 0) ? -1 * t : e) ?? 0, QS = ({
|
|
|
21686
21686
|
remainingMinutes: e,
|
|
21687
21687
|
trackedMinutes: n = 0
|
|
21688
21688
|
}) => {
|
|
21689
|
-
const r = t.find((h) => h.variant === "clocked-in")?.from, i = t.at(-1), s = r ?
|
|
21689
|
+
const r = t.find((h) => h.variant === "clocked-in")?.from, i = t.at(-1), s = r ? Eo(r) : $i, o = e === void 0 || e > 0 ? $i : i ? Eo(i.to) : $i, a = i?.variant === "break" ? i?.to.getTime() - i?.from.getTime() || 0 : n * 60 * 1e3, d = Math.floor(a / (1e3 * 60 * 60)), f = Math.floor(a % (1e3 * 60 * 60) / (1e3 * 60)), u = `${d.toString().padStart(2, "0")}:${f.toString().padStart(2, "0")}`;
|
|
21690
21690
|
return {
|
|
21691
21691
|
primaryLabel: s,
|
|
21692
21692
|
secondaryLabel: o,
|
|
@@ -21714,8 +21714,8 @@ function rN({
|
|
|
21714
21714
|
remainingMinutes: n
|
|
21715
21715
|
});
|
|
21716
21716
|
return /* @__PURE__ */ g("div", { className: "relative h-40 w-40", children: [
|
|
21717
|
-
/* @__PURE__ */ c(
|
|
21718
|
-
|
|
21717
|
+
/* @__PURE__ */ c(vp, { width: 156, height: 156, children: /* @__PURE__ */ c(
|
|
21718
|
+
kp,
|
|
21719
21719
|
{
|
|
21720
21720
|
data: r,
|
|
21721
21721
|
cx: 74,
|
|
@@ -21730,7 +21730,7 @@ function rN({
|
|
|
21730
21730
|
strokeWidth: 0,
|
|
21731
21731
|
isAnimationActive: !1,
|
|
21732
21732
|
children: r.map((l, a) => /* @__PURE__ */ c(
|
|
21733
|
-
|
|
21733
|
+
Cp,
|
|
21734
21734
|
{
|
|
21735
21735
|
fill: l.color,
|
|
21736
21736
|
role: "presentation",
|
|
@@ -21770,7 +21770,7 @@ function iN({
|
|
|
21770
21770
|
children: t ?? e
|
|
21771
21771
|
}
|
|
21772
21772
|
),
|
|
21773
|
-
/* @__PURE__ */ c(H, { icon:
|
|
21773
|
+
/* @__PURE__ */ c(H, { icon: Sm })
|
|
21774
21774
|
]
|
|
21775
21775
|
}
|
|
21776
21776
|
);
|
|
@@ -21865,7 +21865,7 @@ function PI({
|
|
|
21865
21865
|
{
|
|
21866
21866
|
onClick: a,
|
|
21867
21867
|
label: r.clockIn,
|
|
21868
|
-
icon:
|
|
21868
|
+
icon: Oo
|
|
21869
21869
|
}
|
|
21870
21870
|
) }),
|
|
21871
21871
|
_ === "clocked-in" && /* @__PURE__ */ g(ne, { children: [
|
|
@@ -21884,7 +21884,7 @@ function PI({
|
|
|
21884
21884
|
{
|
|
21885
21885
|
label: r.break,
|
|
21886
21886
|
variant: "neutral",
|
|
21887
|
-
icon:
|
|
21887
|
+
icon: Mo,
|
|
21888
21888
|
hideLabel: !0
|
|
21889
21889
|
}
|
|
21890
21890
|
) })
|
|
@@ -21895,7 +21895,7 @@ function PI({
|
|
|
21895
21895
|
onClick: M,
|
|
21896
21896
|
label: r.break,
|
|
21897
21897
|
variant: "neutral",
|
|
21898
|
-
icon:
|
|
21898
|
+
icon: Mo,
|
|
21899
21899
|
hideLabel: !0
|
|
21900
21900
|
}
|
|
21901
21901
|
) }),
|
|
@@ -21905,7 +21905,7 @@ function PI({
|
|
|
21905
21905
|
onClick: d,
|
|
21906
21906
|
label: r.clockOut,
|
|
21907
21907
|
variant: "neutral",
|
|
21908
|
-
icon:
|
|
21908
|
+
icon: Po
|
|
21909
21909
|
}
|
|
21910
21910
|
)
|
|
21911
21911
|
] }),
|
|
@@ -21916,7 +21916,7 @@ function PI({
|
|
|
21916
21916
|
onClick: d,
|
|
21917
21917
|
label: r.clockOut,
|
|
21918
21918
|
variant: "neutral",
|
|
21919
|
-
icon:
|
|
21919
|
+
icon: Po,
|
|
21920
21920
|
hideLabel: !0
|
|
21921
21921
|
}
|
|
21922
21922
|
),
|
|
@@ -21925,7 +21925,7 @@ function PI({
|
|
|
21925
21925
|
{
|
|
21926
21926
|
onClick: a,
|
|
21927
21927
|
label: r.resume,
|
|
21928
|
-
icon:
|
|
21928
|
+
icon: Oo
|
|
21929
21929
|
}
|
|
21930
21930
|
)
|
|
21931
21931
|
] })
|
|
@@ -21971,8 +21971,8 @@ function PI({
|
|
|
21971
21971
|
] }) });
|
|
21972
21972
|
}
|
|
21973
21973
|
const sN = {
|
|
21974
|
-
done:
|
|
21975
|
-
"in-progress":
|
|
21974
|
+
done: Im,
|
|
21975
|
+
"in-progress": Nm,
|
|
21976
21976
|
todo: Bh
|
|
21977
21977
|
}, oN = {
|
|
21978
21978
|
done: "text-f1-icon-success",
|
|
@@ -22217,7 +22217,7 @@ function BN({
|
|
|
22217
22217
|
"You can only provide up to two actions for the WidgetEmptyState"
|
|
22218
22218
|
);
|
|
22219
22219
|
return /* @__PURE__ */ c(
|
|
22220
|
-
|
|
22220
|
+
Dm,
|
|
22221
22221
|
{
|
|
22222
22222
|
title: t,
|
|
22223
22223
|
description: e,
|
|
@@ -22264,8 +22264,8 @@ const jI = ue(
|
|
|
22264
22264
|
export {
|
|
22265
22265
|
QN as ActivityItemList,
|
|
22266
22266
|
kx as ActivityItemListSkeleton,
|
|
22267
|
-
|
|
22268
|
-
|
|
22267
|
+
Hw as AiPromotionChat,
|
|
22268
|
+
Vw as AiPromotionChatProvider,
|
|
22269
22269
|
sI as ApplicationFrame,
|
|
22270
22270
|
vI as AreaChartWidget,
|
|
22271
22271
|
yI as AutoGrid,
|
|
@@ -22275,12 +22275,12 @@ export {
|
|
|
22275
22275
|
oA as BaseBanner,
|
|
22276
22276
|
Ax as BaseCelebration,
|
|
22277
22277
|
Fx as BaseCommunityPost,
|
|
22278
|
-
|
|
22279
|
-
|
|
22278
|
+
fA as BaseTabs,
|
|
22279
|
+
hA as BreadcrumbSelect,
|
|
22280
22280
|
cg as Breadcrumbs,
|
|
22281
22281
|
os as CalendarEvent,
|
|
22282
22282
|
_I as CalendarEventList,
|
|
22283
|
-
|
|
22283
|
+
pA as CardSelectableContainer,
|
|
22284
22284
|
np as Carousel,
|
|
22285
22285
|
MI as CategoryBarSection,
|
|
22286
22286
|
eI as Celebration,
|
|
@@ -22295,37 +22295,37 @@ export {
|
|
|
22295
22295
|
oI as DaytimePage,
|
|
22296
22296
|
iy as DetailsItem,
|
|
22297
22297
|
rI as DetailsItemsList,
|
|
22298
|
-
|
|
22298
|
+
lA as Dialog,
|
|
22299
22299
|
mt as Dropdown,
|
|
22300
22300
|
ZN as EntitySelect,
|
|
22301
|
-
|
|
22301
|
+
mA as F0ActionBar,
|
|
22302
22302
|
ld as F0AiBanner,
|
|
22303
|
-
|
|
22303
|
+
Ea as F0AvatarModule,
|
|
22304
22304
|
JN as F0Callout,
|
|
22305
|
-
|
|
22305
|
+
gA as F0TableOfContent,
|
|
22306
22306
|
XN as F0VersionHistory,
|
|
22307
22307
|
GI as F1SearchBox,
|
|
22308
|
-
|
|
22309
|
-
|
|
22308
|
+
bA as FILE_TYPES,
|
|
22309
|
+
wA as FileItem,
|
|
22310
22310
|
tI as HighlightBanner,
|
|
22311
22311
|
TI as IndicatorsList,
|
|
22312
22312
|
KI as Input,
|
|
22313
|
-
|
|
22314
|
-
|
|
22313
|
+
xA as Item,
|
|
22314
|
+
yA as ItemSectionHeader,
|
|
22315
22315
|
CI as LineChartWidget,
|
|
22316
22316
|
uI as Menu,
|
|
22317
22317
|
qI as MobileDropdown,
|
|
22318
22318
|
bI as NotesTextEditor,
|
|
22319
22319
|
gI as NotesTextEditorSkeleton,
|
|
22320
|
-
|
|
22320
|
+
vA as NumberInput,
|
|
22321
22321
|
lI as OmniButton,
|
|
22322
22322
|
pI as OneApprovalHistory,
|
|
22323
22323
|
JI as OneCalendar,
|
|
22324
22324
|
YI as OneCalendarInternal,
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22328
|
-
|
|
22325
|
+
_A as OneDataCollection,
|
|
22326
|
+
EA as OneDateNavigator,
|
|
22327
|
+
Dm as OneEmptyState,
|
|
22328
|
+
TA as OnePagination,
|
|
22329
22329
|
iI as OnePersonListItem,
|
|
22330
22330
|
HI as OneRestrictComponent,
|
|
22331
22331
|
aI as Page,
|
|
@@ -22333,12 +22333,12 @@ export {
|
|
|
22333
22333
|
SI as PieChartWidget,
|
|
22334
22334
|
yS as PrivateBox,
|
|
22335
22335
|
YN as RadarChart,
|
|
22336
|
-
|
|
22336
|
+
aA as ResourceHeader,
|
|
22337
22337
|
sd as RichTextDisplay,
|
|
22338
|
-
|
|
22338
|
+
kA as RichTextEditor,
|
|
22339
22339
|
VI as ScrollArea,
|
|
22340
22340
|
fI as SearchBar,
|
|
22341
|
-
|
|
22341
|
+
CA as SectionHeader,
|
|
22342
22342
|
Tr as Select,
|
|
22343
22343
|
Dh as Shortcut,
|
|
22344
22344
|
hI as Sidebar,
|
|
@@ -22349,10 +22349,10 @@ export {
|
|
|
22349
22349
|
wI as Stack,
|
|
22350
22350
|
II as SummariesWidget,
|
|
22351
22351
|
XI as Switch,
|
|
22352
|
-
|
|
22353
|
-
|
|
22352
|
+
SA as Tabs,
|
|
22353
|
+
NA as TabsSkeleton,
|
|
22354
22354
|
FI as TasksList,
|
|
22355
|
-
|
|
22355
|
+
IA as Textarea,
|
|
22356
22356
|
Id as ToggleGroup,
|
|
22357
22357
|
Ad as ToggleGroupItem,
|
|
22358
22358
|
Dt as Tooltip,
|
|
@@ -22370,18 +22370,18 @@ export {
|
|
|
22370
22370
|
LI as WidgetSimpleList,
|
|
22371
22371
|
Is as WidgetSimpleListItem,
|
|
22372
22372
|
$I as WidgetStrip,
|
|
22373
|
-
|
|
22373
|
+
Kw as _RadarChart,
|
|
22374
22374
|
QI as getGranularityDefinition,
|
|
22375
22375
|
eA as getGranularityDefinitions,
|
|
22376
22376
|
tA as getGranularitySimpleDefinition,
|
|
22377
22377
|
nA as granularityDefinitions,
|
|
22378
22378
|
rA as modules,
|
|
22379
|
-
|
|
22379
|
+
cA as predefinedPresets,
|
|
22380
22380
|
iA as rangeSeparator,
|
|
22381
|
-
|
|
22381
|
+
dA as selectSizes,
|
|
22382
22382
|
Qr as useAiPromotionChat,
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22383
|
+
DA as useDataCollectionData,
|
|
22384
|
+
RA as useDataCollectionSource,
|
|
22385
|
+
LA as useInfiniteScrollPagination,
|
|
22386
22386
|
un as useSidebar
|
|
22387
22387
|
};
|