@factorialco/f0-react 1.306.2 → 1.306.4
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/experimental.d.ts +12 -13
- package/dist/experimental.js +608 -607
- package/dist/f0.d.ts +5 -7
- package/dist/f0.js +2 -2
- package/dist/{hooks-sYse0T_h.js → hooks-DRjrmneu.js} +21651 -21655
- package/package.json +5 -3
package/dist/experimental.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { bK as Km, bL as $c, bM as gA, bN as vA, bO as Zm, bP as v7, bQ as
|
|
2
|
-
import { aH as Y4e, f9 as Q4e, fa as ege, f8 as tge, a$ as nge, b7 as ige, f7 as rge, ba as sge } from "./hooks-
|
|
1
|
+
import { bK as Km, bL as $c, bM as gA, bN as vA, bO as Zm, bP as v7, bQ as Ls, av as c0, bR as Wr, bS as f0, bT as Ts, bU as Tf, az as ii, bV as sl, bW as Jm, bX as yA, e as ks, bY as Vc, bZ as xA, b_ as kA, b$ as wA, c0 as bA, c1 as Xm, c2 as y7, c3 as x7, c4 as CA, c5 as _A, c6 as SA, d as da, c7 as Ym, c8 as Af, c9 as EA, ca as k7, cb as Qm, cc as e3, cd as LA, ce as d0, aI as w7, cf as t3, cg as TA, ch as b7, ci as C7, cj as A5, ck as Nf, cl as AA, cm as NA, cn as MA, co as Th, cp as OA, cq as FA, cr as DA, m as xe, cs as _7, ct as IA, cu as Mf, l as qa, cv as zc, z as x1, cw as S7, x as cd, cx as RA, n as Ah, cy as PA, q as BA, r as fd, i as HA, H as $A, J as VA, t as N5, cz as zA, G as M5, cA as jA, N as WA, cB as E7, cC as L7, cD as UA, aA as Te, F as je, c as F, cE as Of, cF as n3, cG as i3, cH as Gn, cI as Vn, cJ as Ff, cK as Nl, cL as k1, bG as Ml, cM as Qs, b as Je, cN as ua, A as ut, b8 as fs, B as Ft, cO as qA, cP as r3, a as Rn, cQ as O5, cR as GA, cS as KA, cT as ZA, aw as T7, ax as A7, cU as N7, cV as M7, cW as To, cX as JA, cY as F5, cZ as XA, c_ as YA, c$ as QA, w as Kt, S as ye, d0 as u0, d1 as Ci, d2 as s3, ao as Oi, ap as eN, d3 as O7, D as o3, b9 as ol, d4 as e2, d5 as F7, d6 as D7, d7 as I7, d8 as R7, d9 as P7, am as zt, da as B7, db as H7, dc as $7, dd as V7, de as z7, df as tN, dg as nN, dh as h0, di as j7, C as iN, bm as rN, dj as Fi, au as Jo, g as hn, as as a3, dk as D5, dl as sN, ay as W7, dm as U7, dn as w1, dp as oN, f as ha, dq as Xo, dr as q7, ds as aN, dt as I5, du as al, dv as l3, dw as Df, dx as b1, dy as lN, dz as G7, dA as cN, dB as c3, dC as jc, dD as Di, dE as fN, dF as dN, dG as $s, dH as Nh, dI as uN, dJ as fc, dK as Da, dL as hN, dM as K7, dN as pN, dO as mN, dP as gN, dQ as vN, O as ri, U as yN, Z as xN, _ as kN, a0 as wN, a5 as R5, a6 as P5, a7 as bN, a8 as CN, dR as _N, dS as Mh, dT as f3, dU as SN, dV as EN, dW as LN, b6 as TN, dX as AN, bH as If, b5 as C1, dY as t2, dZ as Z7, h as Pi, d_ as p0, b2 as ws, d$ as NN, e0 as MN, e1 as J7, b0 as yr, e2 as ON, e3 as X7, e4 as Y7, e5 as Ol, e6 as d3, e7 as FN, e8 as Q7, e9 as DN, ea as IN, ak as u3, al as h3, an as p3, eb as ex, ec as RN, ed as PN, ee as BN, ef as tx, aE as HN, eg as n2, eh as nx, aZ as _1, ei as $N, ej as VN, ek as zN, el as jN, em as WN, aW as i2, bJ as UN, bI as qN, en as ix, at as so, eo as GN, ep as KN, bf as m0, a_ as m3, aT as Rf, eq as rx, b1 as ZN, aV as sx, aR as ox, er as JN, es as ax, et as XN, aU as Fl, aX as lx, aG as YN, eu as QN, bo as eM, bp as tM, bw as g0, bu as g3, aC as v0, ev as y0, ew as x0, aD as k0, ex as v3, bv as cx, b4 as y3, ey as nM, bA as iM, ez as r2, eA as rM, eB as S1, eC as sM, bq as E1, bB as oM, eD as aM, bz as fx, eE as lM, by as cM, bx as fM, eF as dM, eG as uM, eH as x3, eI as hM, eJ as pM, eK as mM, eL as gM, eM as vM, eN as yM, eO as xM, eP as kM, u as dx, bb as wM, bt as bM, eQ as CM, eR as _M, aY as SM, eS as Pf, eT as k3, b3 as w3, eU as b3, eV as Bf, eW as EM, eX as ux, eY as LM, eZ as TM, bC as hx, e_ as px, bc as mx, e$ as AM, f0 as NM, f1 as MM, aF as OM, aa as FM, ab as DM, ad as IM, ae as RM, af as PM, ac as BM, f2 as B5, f3 as HM, f4 as $M, K as VM, f5 as gx, f6 as zM } from "./hooks-DRjrmneu.js";
|
|
2
|
+
import { aH as Y4e, f9 as Q4e, fa as ege, f8 as tge, a$ as nge, b7 as ige, f7 as rge, ba as sge } from "./hooks-DRjrmneu.js";
|
|
3
3
|
import { jsxs as x, jsx as f, Fragment as Ke } from "react/jsx-runtime";
|
|
4
4
|
import * as Se from "react";
|
|
5
|
-
import we, { forwardRef as B, createContext as li, useRef as Ce, useState as X, useCallback as
|
|
5
|
+
import we, { forwardRef as B, createContext as li, useRef as Ce, useState as X, useCallback as Ze, useContext as Kn, useMemo as ke, useEffect as Ae, PureComponent as jM, useId as vo, useTransition as WM, useLayoutEffect as pa, memo as Hf, Fragment as Hr, isValidElement as vx, cloneElement as C3, createElement as s2, useDebugValue as yx, createRef as UM, version as H5, useImperativeHandle as w0, Children as xx } from "react";
|
|
6
6
|
import { useCopilotChatInternal as Dl, useCopilotContext as qM, useCopilotAction as $5, CopilotKit as GM } from "@copilotkit/react-core";
|
|
7
7
|
import { Markdown as KM, useChatContext as ZM, CopilotSidebar as JM } from "@copilotkit/react-ui";
|
|
8
8
|
import { randomId as kx } from "@copilotkit/shared";
|
|
@@ -4260,13 +4260,13 @@ import './experimental.css';const XM = (t, e) => x("svg", {
|
|
|
4260
4260
|
CardPin: jO,
|
|
4261
4261
|
ChartLine: UO,
|
|
4262
4262
|
ChartPie: GO,
|
|
4263
|
-
Check:
|
|
4263
|
+
Check: Ls,
|
|
4264
4264
|
CheckCircle: c0,
|
|
4265
4265
|
CheckCircleLine: Ex,
|
|
4266
4266
|
CheckDouble: _0,
|
|
4267
4267
|
ChevronDown: Wr,
|
|
4268
4268
|
ChevronLeft: f0,
|
|
4269
|
-
ChevronRight:
|
|
4269
|
+
ChevronRight: Ts,
|
|
4270
4270
|
ChevronUp: Tf,
|
|
4271
4271
|
Chip: XO,
|
|
4272
4272
|
Circle: N3,
|
|
@@ -4296,7 +4296,7 @@ import './experimental.css';const XM = (t, e) => x("svg", {
|
|
|
4296
4296
|
Download: O3,
|
|
4297
4297
|
DropdownDefault: Ax,
|
|
4298
4298
|
DropdownOpen: yA,
|
|
4299
|
-
Ellipsis:
|
|
4299
|
+
Ellipsis: ks,
|
|
4300
4300
|
EllipsisHorizontal: Vc,
|
|
4301
4301
|
Envelope: BF,
|
|
4302
4302
|
EnvelopeOpen: $F,
|
|
@@ -4465,10 +4465,10 @@ function ZP() {
|
|
|
4465
4465
|
}), []), t;
|
|
4466
4466
|
}
|
|
4467
4467
|
function JP() {
|
|
4468
|
-
const t = ZP(), [e, n] = X(0), i =
|
|
4468
|
+
const t = ZP(), [e, n] = X(0), i = Ze(() => {
|
|
4469
4469
|
t.current && n(e + 1);
|
|
4470
4470
|
}, [e]);
|
|
4471
|
-
return [
|
|
4471
|
+
return [Ze(() => C7.postRender(i), [i]), e];
|
|
4472
4472
|
}
|
|
4473
4473
|
const XP = (t) => !t.isLayoutDirty && t.willUpdate(!1);
|
|
4474
4474
|
function V5() {
|
|
@@ -4722,15 +4722,15 @@ function gB(t, e) {
|
|
|
4722
4722
|
}
|
|
4723
4723
|
return n;
|
|
4724
4724
|
}
|
|
4725
|
-
function
|
|
4726
|
-
return
|
|
4725
|
+
function bs() {
|
|
4726
|
+
return bs = Object.assign ? Object.assign.bind() : function(t) {
|
|
4727
4727
|
for (var e = 1; e < arguments.length; e++) {
|
|
4728
4728
|
var n = arguments[e];
|
|
4729
4729
|
for (var i in n)
|
|
4730
4730
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
4731
4731
|
}
|
|
4732
4732
|
return t;
|
|
4733
|
-
},
|
|
4733
|
+
}, bs.apply(this, arguments);
|
|
4734
4734
|
}
|
|
4735
4735
|
function W5(t, e) {
|
|
4736
4736
|
var n = Object.keys(t);
|
|
@@ -4787,7 +4787,7 @@ var kB = function(e, n, i, r) {
|
|
|
4787
4787
|
className: "recharts-polar-grid-angle"
|
|
4788
4788
|
}, o.map(function(c) {
|
|
4789
4789
|
var d = zc(n, i, r, c), u = zc(n, i, s, c);
|
|
4790
|
-
return /* @__PURE__ */ we.createElement("line",
|
|
4790
|
+
return /* @__PURE__ */ we.createElement("line", bs({}, l, {
|
|
4791
4791
|
key: "line-".concat(c),
|
|
4792
4792
|
x1: d.x,
|
|
4793
4793
|
y1: d.y,
|
|
@@ -4801,7 +4801,7 @@ var kB = function(e, n, i, r) {
|
|
|
4801
4801
|
}, qa(e, !1)), {}, {
|
|
4802
4802
|
fill: "none"
|
|
4803
4803
|
});
|
|
4804
|
-
return /* @__PURE__ */ we.createElement("circle",
|
|
4804
|
+
return /* @__PURE__ */ we.createElement("circle", bs({}, o, {
|
|
4805
4805
|
className: x1("recharts-polar-grid-concentric-circle", e.className),
|
|
4806
4806
|
key: "circle-".concat(s),
|
|
4807
4807
|
cx: n,
|
|
@@ -4814,7 +4814,7 @@ var kB = function(e, n, i, r) {
|
|
|
4814
4814
|
}, qa(e, !1)), {}, {
|
|
4815
4815
|
fill: "none"
|
|
4816
4816
|
});
|
|
4817
|
-
return /* @__PURE__ */ we.createElement("path",
|
|
4817
|
+
return /* @__PURE__ */ we.createElement("path", bs({}, r, {
|
|
4818
4818
|
className: x1("recharts-polar-grid-concentric-polygon", e.className),
|
|
4819
4819
|
key: "path-".concat(i),
|
|
4820
4820
|
d: kB(n, e.cx, e.cy, e.polarAngles)
|
|
@@ -4825,12 +4825,12 @@ var kB = function(e, n, i, r) {
|
|
|
4825
4825
|
className: "recharts-polar-grid-concentric"
|
|
4826
4826
|
}, n.map(function(r, s) {
|
|
4827
4827
|
var o = s;
|
|
4828
|
-
return i === "circle" ? /* @__PURE__ */ we.createElement(bB,
|
|
4828
|
+
return i === "circle" ? /* @__PURE__ */ we.createElement(bB, bs({
|
|
4829
4829
|
key: o
|
|
4830
4830
|
}, e, {
|
|
4831
4831
|
radius: r,
|
|
4832
4832
|
index: s
|
|
4833
|
-
})) : /* @__PURE__ */ we.createElement(CB,
|
|
4833
|
+
})) : /* @__PURE__ */ we.createElement(CB, bs({
|
|
4834
4834
|
key: o
|
|
4835
4835
|
}, e, {
|
|
4836
4836
|
radius: r,
|
|
@@ -4841,14 +4841,14 @@ var kB = function(e, n, i, r) {
|
|
|
4841
4841
|
var n = e.cx, i = n === void 0 ? 0 : n, r = e.cy, s = r === void 0 ? 0 : r, o = e.innerRadius, a = o === void 0 ? 0 : o, l = e.outerRadius, c = l === void 0 ? 0 : l, d = e.gridType, u = d === void 0 ? "polygon" : d, h = e.radialLines, p = h === void 0 ? !0 : h, m = mB(e, pB);
|
|
4842
4842
|
return c <= 0 ? null : /* @__PURE__ */ we.createElement("g", {
|
|
4843
4843
|
className: "recharts-polar-grid"
|
|
4844
|
-
}, /* @__PURE__ */ we.createElement(wB,
|
|
4844
|
+
}, /* @__PURE__ */ we.createElement(wB, bs({
|
|
4845
4845
|
cx: i,
|
|
4846
4846
|
cy: s,
|
|
4847
4847
|
innerRadius: a,
|
|
4848
4848
|
outerRadius: c,
|
|
4849
4849
|
gridType: u,
|
|
4850
4850
|
radialLines: p
|
|
4851
|
-
}, m)), /* @__PURE__ */ we.createElement(_B,
|
|
4851
|
+
}, m)), /* @__PURE__ */ we.createElement(_B, bs({
|
|
4852
4852
|
cx: i,
|
|
4853
4853
|
cy: s,
|
|
4854
4854
|
innerRadius: a,
|
|
@@ -5235,7 +5235,7 @@ const I3e = ({ text: t, confirmationText: e, onConfirm: n, cancelText: i, onCanc
|
|
|
5235
5235
|
type: "button",
|
|
5236
5236
|
variant: "outline",
|
|
5237
5237
|
size: "sm",
|
|
5238
|
-
icon:
|
|
5238
|
+
icon: Ls,
|
|
5239
5239
|
onClick: n,
|
|
5240
5240
|
label: e
|
|
5241
5241
|
}), f(Te, {
|
|
@@ -5431,7 +5431,7 @@ const J5 = [{
|
|
|
5431
5431
|
className: "flex w-full items-start gap-1 text-f1-foreground-secondary",
|
|
5432
5432
|
children: [e === "inProgress" && f("div", {
|
|
5433
5433
|
className: "-mt-[2px] *:block",
|
|
5434
|
-
children: f(
|
|
5434
|
+
children: f(je, {
|
|
5435
5435
|
state: "animate",
|
|
5436
5436
|
size: n ? "md" : "lg",
|
|
5437
5437
|
icon: Jm
|
|
@@ -5441,7 +5441,7 @@ const J5 = [{
|
|
|
5441
5441
|
children: f(qB, {})
|
|
5442
5442
|
}), e === "completed" && f("div", {
|
|
5443
5443
|
className: "-mt-[2px] *:block",
|
|
5444
|
-
children: f(
|
|
5444
|
+
children: f(je, {
|
|
5445
5445
|
color: "secondary",
|
|
5446
5446
|
state: "animate",
|
|
5447
5447
|
size: n ? "md" : "lg",
|
|
@@ -5562,15 +5562,15 @@ const J3 = JB, XB = pk, X3 = mk, gk = ({ icon: t, title: e, children: n }) => {
|
|
|
5562
5562
|
className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90",
|
|
5563
5563
|
children: [f("span", {
|
|
5564
5564
|
className: "mr-2 *:block",
|
|
5565
|
-
children: f(
|
|
5565
|
+
children: f(Qs, {
|
|
5566
5566
|
icon: t,
|
|
5567
5567
|
className: "block"
|
|
5568
5568
|
})
|
|
5569
5569
|
}), f("span", {
|
|
5570
5570
|
className: "mr-[2px]",
|
|
5571
5571
|
children: e
|
|
5572
|
-
}), f(
|
|
5573
|
-
icon:
|
|
5572
|
+
}), f(Qs, {
|
|
5573
|
+
icon: Ts,
|
|
5574
5574
|
className: "h-4 w-4 transition-transform duration-200"
|
|
5575
5575
|
})]
|
|
5576
5576
|
}), f(X3, {
|
|
@@ -5609,7 +5609,7 @@ const J3 = JB, XB = pk, X3 = mk, gk = ({ icon: t, title: e, children: n }) => {
|
|
|
5609
5609
|
duration: 0.15,
|
|
5610
5610
|
ease: "easeOut"
|
|
5611
5611
|
}, Y3 = B(({ valueToCopy: t, onCopy: e, copyTooltipLabel: n, copiedTooltipLabel: i, variant: r = "neutral", size: s = "sm", ...o }, a) => {
|
|
5612
|
-
const [l, c] = X(!1), d =
|
|
5612
|
+
const [l, c] = X(!1), d = Je(), u = n ?? d.actions.copy, p = l ? i ?? "Copied" : u;
|
|
5613
5613
|
return Ae(() => {
|
|
5614
5614
|
let g = null;
|
|
5615
5615
|
return l && (g = setTimeout(() => c(!1), 1e3)), () => {
|
|
@@ -5642,9 +5642,9 @@ const J3 = JB, XB = pk, X3 = mk, gk = ({ icon: t, title: e, children: n }) => {
|
|
|
5642
5642
|
justifyContent: "center",
|
|
5643
5643
|
verticalAlign: "middle"
|
|
5644
5644
|
},
|
|
5645
|
-
children: f(
|
|
5645
|
+
children: f(je, {
|
|
5646
5646
|
size: s === "sm" ? "sm" : "md",
|
|
5647
|
-
icon: l ?
|
|
5647
|
+
icon: l ? Ls : $f
|
|
5648
5648
|
})
|
|
5649
5649
|
}, l ? "check" : "copy")
|
|
5650
5650
|
})
|
|
@@ -5745,22 +5745,22 @@ var dd = function(e) {
|
|
|
5745
5745
|
return String.fromCharCode(e);
|
|
5746
5746
|
}, X5 = function(e) {
|
|
5747
5747
|
return String.fromCharCode(e);
|
|
5748
|
-
}, Y5,
|
|
5748
|
+
}, Y5, Us = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
5749
5749
|
function Gc(t) {
|
|
5750
5750
|
for (var e = "", n = 0, i = 0, r = 0, s = 0, o = 0, a = 0, l = 0, c = 0; c < t.length; )
|
|
5751
|
-
n = t.charCodeAt(c++), s = n >> 2, i = t.charCodeAt(c++), o = (n & 3) << 4 | i >> 4, r = t.charCodeAt(c++), a = (i & 15) << 2 | r >> 6, l = r & 63, isNaN(i) ? a = l = 64 : isNaN(r) && (l = 64), e +=
|
|
5751
|
+
n = t.charCodeAt(c++), s = n >> 2, i = t.charCodeAt(c++), o = (n & 3) << 4 | i >> 4, r = t.charCodeAt(c++), a = (i & 15) << 2 | r >> 6, l = r & 63, isNaN(i) ? a = l = 64 : isNaN(r) && (l = 64), e += Us.charAt(s) + Us.charAt(o) + Us.charAt(a) + Us.charAt(l);
|
|
5752
5752
|
return e;
|
|
5753
5753
|
}
|
|
5754
|
-
function
|
|
5754
|
+
function Cs(t) {
|
|
5755
5755
|
var e = "", n = 0, i = 0, r = 0, s = 0, o = 0, a = 0, l = 0;
|
|
5756
5756
|
t = t.replace(/[^\w\+\/\=]/g, "");
|
|
5757
5757
|
for (var c = 0; c < t.length; )
|
|
5758
|
-
s =
|
|
5758
|
+
s = Us.indexOf(t.charAt(c++)), o = Us.indexOf(t.charAt(c++)), n = s << 2 | o >> 4, e += String.fromCharCode(n), a = Us.indexOf(t.charAt(c++)), i = (o & 15) << 4 | a >> 2, a !== 64 && (e += String.fromCharCode(i)), l = Us.indexOf(t.charAt(c++)), r = (a & 3) << 6 | l, l !== 64 && (e += String.fromCharCode(r));
|
|
5759
5759
|
return e;
|
|
5760
5760
|
}
|
|
5761
5761
|
var kt = /* @__PURE__ */ function() {
|
|
5762
5762
|
return typeof Buffer < "u" && typeof process < "u" && typeof process.versions < "u" && !!process.versions.node;
|
|
5763
|
-
}(),
|
|
5763
|
+
}(), As = /* @__PURE__ */ function() {
|
|
5764
5764
|
if (typeof Buffer < "u") {
|
|
5765
5765
|
var t = !Buffer.from;
|
|
5766
5766
|
if (!t) try {
|
|
@@ -5782,7 +5782,7 @@ function Q5(t) {
|
|
|
5782
5782
|
return kt ? Buffer.allocUnsafe ? Buffer.allocUnsafe(t) : new Buffer(t) : typeof Uint8Array < "u" ? new Uint8Array(t) : new Array(t);
|
|
5783
5783
|
}
|
|
5784
5784
|
var cr = function(e) {
|
|
5785
|
-
return kt ?
|
|
5785
|
+
return kt ? As(e, "binary") : e.split("").map(function(n) {
|
|
5786
5786
|
return n.charCodeAt(0) & 255;
|
|
5787
5787
|
});
|
|
5788
5788
|
};
|
|
@@ -5804,7 +5804,7 @@ function dH(t) {
|
|
|
5804
5804
|
}
|
|
5805
5805
|
var On = kt ? function(t) {
|
|
5806
5806
|
return Buffer.concat(t.map(function(e) {
|
|
5807
|
-
return Buffer.isBuffer(e) ? e :
|
|
5807
|
+
return Buffer.isBuffer(e) ? e : As(e);
|
|
5808
5808
|
}));
|
|
5809
5809
|
} : function(t) {
|
|
5810
5810
|
if (typeof Uint8Array < "u") {
|
|
@@ -6172,7 +6172,7 @@ function _H(t, e, n, i) {
|
|
|
6172
6172
|
var d = c > 0 ? hr(l, c) : "";
|
|
6173
6173
|
return d;
|
|
6174
6174
|
}
|
|
6175
|
-
function
|
|
6175
|
+
function qs(t) {
|
|
6176
6176
|
var e = 3;
|
|
6177
6177
|
if (t.length <= e) return t;
|
|
6178
6178
|
for (var n = t.length % e, i = t.substr(0, n); n != t.length; n += e) i += (i.length > 0 ? "," : "") + t.substr(n, e);
|
|
@@ -6181,11 +6181,11 @@ function Gs(t) {
|
|
|
6181
6181
|
var wk = /%/g;
|
|
6182
6182
|
function SH(t, e, n) {
|
|
6183
6183
|
var i = e.replace(wk, ""), r = e.length - i.length;
|
|
6184
|
-
return
|
|
6184
|
+
return hs(t, i, n * Math.pow(10, 2 * r)) + Jt("%", r);
|
|
6185
6185
|
}
|
|
6186
6186
|
function EH(t, e, n) {
|
|
6187
6187
|
for (var i = e.length - 1; e.charCodeAt(i - 1) === 44; ) --i;
|
|
6188
|
-
return
|
|
6188
|
+
return hs(t, e.substr(0, i), n / Math.pow(10, 3 * (e.length - i)));
|
|
6189
6189
|
}
|
|
6190
6190
|
function bk(t, e) {
|
|
6191
6191
|
var n, i = t.indexOf("E") - t.indexOf(".") - 1;
|
|
@@ -6269,9 +6269,9 @@ function Vi(t, e, n) {
|
|
|
6269
6269
|
}), e.indexOf("0.") !== -1 ? r : r.replace(/^0\./, ".");
|
|
6270
6270
|
if (e = e.replace(/^#+([0.])/, "$1"), s = e.match(/^(0*)\.(#*)$/))
|
|
6271
6271
|
return c + i6(l, s[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s[1].length ? "0." : ".");
|
|
6272
|
-
if (s = e.match(/^#{1,3},##0(\.?)$/)) return c +
|
|
6272
|
+
if (s = e.match(/^#{1,3},##0(\.?)$/)) return c + qs(Sa(l, 0));
|
|
6273
6273
|
if (s = e.match(/^#,##0\.([#0]*0)$/))
|
|
6274
|
-
return n < 0 ? "-" + Vi(t, e, -n) :
|
|
6274
|
+
return n < 0 ? "-" + Vi(t, e, -n) : qs("" + (Math.floor(n) + AH(n, s[1].length))) + "." + hr(r6(n, s[1].length), s[1].length);
|
|
6275
6275
|
if (s = e.match(/^#,#*,#0/)) return Vi(t, e.replace(/^#,#*,/, ""), n);
|
|
6276
6276
|
if (s = e.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
6277
6277
|
return r = Ga(Vi(t, e.replace(/[\\-]/g, ""), n)), o = 0, Ga(Ga(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
|
|
@@ -6285,7 +6285,7 @@ function Vi(t, e, n) {
|
|
|
6285
6285
|
/*::String(*/
|
|
6286
6286
|
s[4].length,
|
|
6287
6287
|
7
|
|
6288
|
-
), a = D1(l, Math.pow(10, o) - 1, !1), r = "" + c, d =
|
|
6288
|
+
), a = D1(l, Math.pow(10, o) - 1, !1), r = "" + c, d = hs(
|
|
6289
6289
|
"n",
|
|
6290
6290
|
/*::String(*/
|
|
6291
6291
|
s[1],
|
|
@@ -6303,7 +6303,7 @@ function Vi(t, e, n) {
|
|
|
6303
6303
|
return Yn(e.substr(0, u) + r + e.substr(e.length - h));
|
|
6304
6304
|
}
|
|
6305
6305
|
if (s = e.match(/^00,000\.([#0]*0)$/))
|
|
6306
|
-
return o = r6(n, s[1].length), n < 0 ? "-" + Vi(t, e, -n) :
|
|
6306
|
+
return o = r6(n, s[1].length), n < 0 ? "-" + Vi(t, e, -n) : qs(NH(n)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
|
|
6307
6307
|
return "00," + (m.length < 3 ? hr(0, 3 - m.length) : "") + m;
|
|
6308
6308
|
}) + "." + hr(o, s[1].length);
|
|
6309
6309
|
switch (e) {
|
|
@@ -6312,7 +6312,7 @@ function Vi(t, e, n) {
|
|
|
6312
6312
|
case "###,###":
|
|
6313
6313
|
case "##,###":
|
|
6314
6314
|
case "#,###":
|
|
6315
|
-
var p =
|
|
6315
|
+
var p = qs(Sa(l, 0));
|
|
6316
6316
|
return p !== "0" ? c + p : "";
|
|
6317
6317
|
case "###,###.00":
|
|
6318
6318
|
return Vi(t, "###,##0.00", n).replace(/^0\./, ".");
|
|
@@ -6323,11 +6323,11 @@ function Vi(t, e, n) {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
function MH(t, e, n) {
|
|
6325
6325
|
for (var i = e.length - 1; e.charCodeAt(i - 1) === 44; ) --i;
|
|
6326
|
-
return
|
|
6326
|
+
return hs(t, e.substr(0, i), n / Math.pow(10, 3 * (e.length - i)));
|
|
6327
6327
|
}
|
|
6328
6328
|
function OH(t, e, n) {
|
|
6329
6329
|
var i = e.replace(wk, ""), r = e.length - i.length;
|
|
6330
|
-
return
|
|
6330
|
+
return hs(t, i, n * Math.pow(10, 2 * r)) + Jt("%", r);
|
|
6331
6331
|
}
|
|
6332
6332
|
function Lk(t, e) {
|
|
6333
6333
|
var n, i = t.indexOf("E") - t.indexOf(".") - 1;
|
|
@@ -6368,9 +6368,9 @@ function Lr(t, e, n) {
|
|
|
6368
6368
|
}), e.indexOf("0.") !== -1 ? r : r.replace(/^0\./, ".");
|
|
6369
6369
|
if (e = e.replace(/^#+([0.])/, "$1"), s = e.match(/^(0*)\.(#*)$/))
|
|
6370
6370
|
return c + ("" + l).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s[1].length ? "0." : ".");
|
|
6371
|
-
if (s = e.match(/^#{1,3},##0(\.?)$/)) return c +
|
|
6371
|
+
if (s = e.match(/^#{1,3},##0(\.?)$/)) return c + qs("" + l);
|
|
6372
6372
|
if (s = e.match(/^#,##0\.([#0]*0)$/))
|
|
6373
|
-
return n < 0 ? "-" + Lr(t, e, -n) :
|
|
6373
|
+
return n < 0 ? "-" + Lr(t, e, -n) : qs("" + n) + "." + Jt("0", s[1].length);
|
|
6374
6374
|
if (s = e.match(/^#,#*,#0/)) return Lr(t, e.replace(/^#,#*,/, ""), n);
|
|
6375
6375
|
if (s = e.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
6376
6376
|
return r = Ga(Lr(t, e.replace(/[\\-]/g, ""), n)), o = 0, Ga(Ga(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
|
|
@@ -6384,7 +6384,7 @@ function Lr(t, e, n) {
|
|
|
6384
6384
|
/*::String(*/
|
|
6385
6385
|
s[4].length,
|
|
6386
6386
|
7
|
|
6387
|
-
), a = D1(l, Math.pow(10, o) - 1, !1), r = "" + c, d =
|
|
6387
|
+
), a = D1(l, Math.pow(10, o) - 1, !1), r = "" + c, d = hs(
|
|
6388
6388
|
"n",
|
|
6389
6389
|
/*::String(*/
|
|
6390
6390
|
s[1],
|
|
@@ -6402,21 +6402,21 @@ function Lr(t, e, n) {
|
|
|
6402
6402
|
return Yn(e.substr(0, u) + r + e.substr(e.length - h));
|
|
6403
6403
|
}
|
|
6404
6404
|
if (s = e.match(/^00,000\.([#0]*0)$/))
|
|
6405
|
-
return n < 0 ? "-" + Lr(t, e, -n) :
|
|
6405
|
+
return n < 0 ? "-" + Lr(t, e, -n) : qs("" + n).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
|
|
6406
6406
|
return "00," + (m.length < 3 ? hr(0, 3 - m.length) : "") + m;
|
|
6407
6407
|
}) + "." + hr(0, s[1].length);
|
|
6408
6408
|
switch (e) {
|
|
6409
6409
|
case "###,###":
|
|
6410
6410
|
case "##,###":
|
|
6411
6411
|
case "#,###":
|
|
6412
|
-
var p =
|
|
6412
|
+
var p = qs("" + l);
|
|
6413
6413
|
return p !== "0" ? c + p : "";
|
|
6414
6414
|
default:
|
|
6415
6415
|
if (e.match(/\.[0#?]*$/)) return Lr(t, e.slice(0, e.lastIndexOf(".")), n) + Yn(e.slice(e.lastIndexOf(".")));
|
|
6416
6416
|
}
|
|
6417
6417
|
throw new Error("unsupported format |" + e + "|");
|
|
6418
6418
|
}
|
|
6419
|
-
function
|
|
6419
|
+
function hs(t, e, n) {
|
|
6420
6420
|
return (n | 0) === n ? Lr(t, e, n) : Vi(t, e, n);
|
|
6421
6421
|
}
|
|
6422
6422
|
function FH(t) {
|
|
@@ -6714,7 +6714,7 @@ function DH(t, e, n, i) {
|
|
|
6714
6714
|
}
|
|
6715
6715
|
var C = "", S, E;
|
|
6716
6716
|
if (w.length > 0) {
|
|
6717
|
-
w.charCodeAt(0) == 40 ? (S = e < 0 && w.charCodeAt(0) === 45 ? -e : e, E =
|
|
6717
|
+
w.charCodeAt(0) == 40 ? (S = e < 0 && w.charCodeAt(0) === 45 ? -e : e, E = hs("n", w, S)) : (S = e < 0 && i > 1 ? -e : e, E = hs("n", w, S), S < 0 && r[0] && r[0].t == "t" && (E = E.substr(1), r[0].v = "-" + r[0].v)), k = E.length - 1;
|
|
6718
6718
|
var T = r.length;
|
|
6719
6719
|
for (o = 0; o < r.length; ++o) if (r[o] != null && r[o].t != "t" && r[o].v.indexOf(".") > -1) {
|
|
6720
6720
|
T = o;
|
|
@@ -6740,7 +6740,7 @@ function DH(t, e, n, i) {
|
|
|
6740
6740
|
}
|
|
6741
6741
|
}
|
|
6742
6742
|
}
|
|
6743
|
-
for (o = 0; o < r.length; ++o) r[o] != null && "n?".indexOf(r[o].t) > -1 && (S = i > 1 && e < 0 && o > 0 && r[o - 1].v === "-" ? -e : e, r[o].v =
|
|
6743
|
+
for (o = 0; o < r.length; ++o) r[o] != null && "n?".indexOf(r[o].t) > -1 && (S = i > 1 && e < 0 && o > 0 && r[o - 1].v === "-" ? -e : e, r[o].v = hs(r[o].t, r[o].v, S), r[o].t = "t");
|
|
6744
6744
|
var L = "";
|
|
6745
6745
|
for (o = 0; o !== r.length; ++o) r[o] != null && (L += r[o].v);
|
|
6746
6746
|
return L;
|
|
@@ -6993,8 +6993,8 @@ var BH = /* @__PURE__ */ function() {
|
|
|
6993
6993
|
));
|
|
6994
6994
|
var He = A.slice(0, I);
|
|
6995
6995
|
h(re, D);
|
|
6996
|
-
var
|
|
6997
|
-
if (D === 3 &&
|
|
6996
|
+
var We = re.read_shift(4, "i");
|
|
6997
|
+
if (D === 3 && We !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + We);
|
|
6998
6998
|
re.l += 4, ee = re.read_shift(4, "i"), re.l += 4, re.chk("00100000", "Mini Stream Cutoff Size: "), fe = re.read_shift(4, "i"), H = re.read_shift(4, "i"), Q = re.read_shift(4, "i"), V = re.read_shift(4, "i");
|
|
6999
6999
|
for (var Oe = -1, $e = 0; $e < 109 && (Oe = re.read_shift(4, "i"), !(Oe < 0)); ++$e)
|
|
7000
7000
|
te[$e] = Oe;
|
|
@@ -7081,7 +7081,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7081
7081
|
return { nodes: V, data: p6([ee]) };
|
|
7082
7082
|
}
|
|
7083
7083
|
function b(A, P, D, I) {
|
|
7084
|
-
var H = A.length, V = [], ee = [], fe = [], Q = [], te = I - 1, re = 0, Ee = 0, He = 0,
|
|
7084
|
+
var H = A.length, V = [], ee = [], fe = [], Q = [], te = I - 1, re = 0, Ee = 0, He = 0, We = 0;
|
|
7085
7085
|
for (re = 0; re < H; ++re)
|
|
7086
7086
|
if (fe = [], He = re + P, He >= H && (He -= H), !ee[He]) {
|
|
7087
7087
|
Q = [];
|
|
@@ -7089,22 +7089,22 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7089
7089
|
for (Ee = He; Ee >= 0; ) {
|
|
7090
7090
|
Oe[Ee] = !0, ee[Ee] = !0, fe[fe.length] = Ee, Q.push(A[Ee]);
|
|
7091
7091
|
var $e = D[Math.floor(Ee * 4 / I)];
|
|
7092
|
-
if (
|
|
7093
|
-
if (!A[$e] || (Ee = No(A[$e],
|
|
7092
|
+
if (We = Ee * 4 & te, I < 4 + We) throw new Error("FAT boundary crossed: " + Ee + " 4 " + I);
|
|
7093
|
+
if (!A[$e] || (Ee = No(A[$e], We), Oe[Ee])) break;
|
|
7094
7094
|
}
|
|
7095
7095
|
V[He] = { nodes: fe, data: p6([Q]) };
|
|
7096
7096
|
}
|
|
7097
7097
|
return V;
|
|
7098
7098
|
}
|
|
7099
7099
|
function w(A, P, D, I, H, V, ee, fe) {
|
|
7100
|
-
for (var Q = 0, te = I.length ? 2 : 0, re = P[A].data, Ee = 0, He = 0,
|
|
7100
|
+
for (var Q = 0, te = I.length ? 2 : 0, re = P[A].data, Ee = 0, He = 0, We; Ee < re.length; Ee += 128) {
|
|
7101
7101
|
var Oe = (
|
|
7102
7102
|
/*::(*/
|
|
7103
7103
|
re.slice(Ee, Ee + 128)
|
|
7104
7104
|
);
|
|
7105
|
-
Ei(Oe, 64), He = Oe.read_shift(2),
|
|
7105
|
+
Ei(Oe, 64), He = Oe.read_shift(2), We = s4(Oe, 0, He - te), I.push(We);
|
|
7106
7106
|
var $e = {
|
|
7107
|
-
name:
|
|
7107
|
+
name: We,
|
|
7108
7108
|
type: Oe.read_shift(1),
|
|
7109
7109
|
color: Oe.read_shift(1),
|
|
7110
7110
|
L: Oe.read_shift(4, "i"),
|
|
@@ -7117,7 +7117,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7117
7117
|
}, rt = Oe.read_shift(2) + Oe.read_shift(2) + Oe.read_shift(2) + Oe.read_shift(2);
|
|
7118
7118
|
rt !== 0 && ($e.ct = k(Oe, Oe.l - 8));
|
|
7119
7119
|
var qt = Oe.read_shift(2) + Oe.read_shift(2) + Oe.read_shift(2) + Oe.read_shift(2);
|
|
7120
|
-
qt !== 0 && ($e.mt = k(Oe, Oe.l - 8)), $e.start = Oe.read_shift(4, "i"), $e.size = Oe.read_shift(4, "i"), $e.size < 0 && $e.start < 0 && ($e.size = $e.type = 0, $e.start = O, $e.name = ""), $e.type === 5 ? (Q = $e.start, H > 0 && Q !== O && (P[Q].name = "!StreamData")) : $e.size >= 4096 ? ($e.storage = "fat", P[$e.start] === void 0 && (P[$e.start] = y(D, $e.start, P.fat_addrs, P.ssz)), P[$e.start].name = $e.name, $e.content = P[$e.start].data.slice(0, $e.size)) : ($e.storage = "minifat", $e.size < 0 ? $e.size = 0 : Q !== O && $e.start !== O && P[Q] && ($e.content = g($e, P[Q].data, (P[fe] || {}).data))), $e.content && Ei($e.content, 0), V[
|
|
7120
|
+
qt !== 0 && ($e.mt = k(Oe, Oe.l - 8)), $e.start = Oe.read_shift(4, "i"), $e.size = Oe.read_shift(4, "i"), $e.size < 0 && $e.start < 0 && ($e.size = $e.type = 0, $e.start = O, $e.name = ""), $e.type === 5 ? (Q = $e.start, H > 0 && Q !== O && (P[Q].name = "!StreamData")) : $e.size >= 4096 ? ($e.storage = "fat", P[$e.start] === void 0 && (P[$e.start] = y(D, $e.start, P.fat_addrs, P.ssz)), P[$e.start].name = $e.name, $e.content = P[$e.start].data.slice(0, $e.size)) : ($e.storage = "minifat", $e.size < 0 ? $e.size = 0 : Q !== O && $e.start !== O && P[Q] && ($e.content = g($e, P[Q].data, (P[fe] || {}).data))), $e.content && Ei($e.content, 0), V[We] = $e, ee.push($e);
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
7123
|
function k(A, P) {
|
|
@@ -7132,7 +7132,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7132
7132
|
case "file":
|
|
7133
7133
|
return C(A, P);
|
|
7134
7134
|
case "base64":
|
|
7135
|
-
return d(cr(
|
|
7135
|
+
return d(cr(Cs(A)), P);
|
|
7136
7136
|
case "binary":
|
|
7137
7137
|
return d(cr(A), P);
|
|
7138
7138
|
}
|
|
@@ -7187,8 +7187,8 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7187
7187
|
content: null
|
|
7188
7188
|
}]), Q[re] = !0);
|
|
7189
7189
|
}
|
|
7190
|
-
for (te.sort(function(
|
|
7191
|
-
return n(
|
|
7190
|
+
for (te.sort(function(We, Oe) {
|
|
7191
|
+
return n(We[0], Oe[0]);
|
|
7192
7192
|
}), A.FullPaths = [], A.FileIndex = [], H = 0; H < te.length; ++H)
|
|
7193
7193
|
A.FullPaths[H] = te[H][0], A.FileIndex[H] = te[H][1];
|
|
7194
7194
|
for (H = 0; H < te.length; ++H) {
|
|
@@ -7211,17 +7211,17 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7211
7211
|
case "zip":
|
|
7212
7212
|
return ct(A, D);
|
|
7213
7213
|
}
|
|
7214
|
-
var I = function(
|
|
7215
|
-
for (var Oe = 0, $e = 0, rt = 0; rt <
|
|
7216
|
-
var qt =
|
|
7214
|
+
var I = function(We) {
|
|
7215
|
+
for (var Oe = 0, $e = 0, rt = 0; rt < We.FileIndex.length; ++rt) {
|
|
7216
|
+
var qt = We.FileIndex[rt];
|
|
7217
7217
|
if (qt.content) {
|
|
7218
7218
|
var Gt = qt.content.length;
|
|
7219
7219
|
Gt > 0 && (Gt < 4096 ? Oe += Gt + 63 >> 6 : $e += Gt + 511 >> 9);
|
|
7220
7220
|
}
|
|
7221
7221
|
}
|
|
7222
|
-
for (var Pn =
|
|
7222
|
+
for (var Pn = We.FullPaths.length + 3 >> 2, Ql = Oe + 7 >> 3, ec = Oe + 127 >> 7, tc = Ql + $e + Pn + ec, So = tc + 127 >> 7, Lh = So <= 109 ? 0 : Math.ceil((So - 109) / 127); tc + So + Lh + 127 >> 7 > So; ) Lh = ++So <= 109 ? 0 : Math.ceil((So - 109) / 127);
|
|
7223
7223
|
var Jr = [1, Lh, So, ec, Pn, $e, Oe, 0];
|
|
7224
|
-
return
|
|
7224
|
+
return We.FileIndex[0].size = Oe << 6, Jr[7] = (We.FileIndex[0].start = Jr[0] + Jr[1] + Jr[2] + Jr[3] + Jr[4] + Jr[5]) + (Jr[6] + 7 >> 3), Jr;
|
|
7225
7225
|
}(A), H = ce(I[7] << 9), V = 0, ee = 0;
|
|
7226
7226
|
{
|
|
7227
7227
|
for (V = 0; V < 8; ++V) H.write_shift(1, z[V]);
|
|
@@ -7234,9 +7234,9 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7234
7234
|
for (; V < 236 + ee * 127; ++V) H.write_shift(-4, V < I[2] ? I[1] + V : -1);
|
|
7235
7235
|
H.write_shift(-4, ee === I[1] - 1 ? O : ee + 1);
|
|
7236
7236
|
}
|
|
7237
|
-
var fe = function(
|
|
7238
|
-
for (ee +=
|
|
7239
|
-
|
|
7237
|
+
var fe = function(We) {
|
|
7238
|
+
for (ee += We; V < ee - 1; ++V) H.write_shift(-4, V + 1);
|
|
7239
|
+
We && (++V, H.write_shift(-4, O));
|
|
7240
7240
|
};
|
|
7241
7241
|
for (ee = V = 0, ee += I[1]; V < ee; ++V) H.write_shift(-4, ae.DIFSECT);
|
|
7242
7242
|
for (ee += I[2]; V < ee; ++V) H.write_shift(-4, ae.FATSECT);
|
|
@@ -7333,7 +7333,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7333
7333
|
case "base64":
|
|
7334
7334
|
return Gc(typeof D == "string" ? D : he(D));
|
|
7335
7335
|
case "buffer":
|
|
7336
|
-
if (kt) return Buffer.isBuffer(D) ? D :
|
|
7336
|
+
if (kt) return Buffer.isBuffer(D) ? D : As(D);
|
|
7337
7337
|
/* falls through */
|
|
7338
7338
|
case "array":
|
|
7339
7339
|
return typeof D == "string" ? cr(D) : D;
|
|
@@ -7428,7 +7428,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7428
7428
|
for (var P = new Array(A), D = 0; D < A; ++D) P[D] = 0;
|
|
7429
7429
|
return P;
|
|
7430
7430
|
}
|
|
7431
|
-
function
|
|
7431
|
+
function Xe(A, P, D) {
|
|
7432
7432
|
var I = 1, H = 0, V = 0, ee = 0, fe = 0, Q = A.length, te = oe ? new Uint16Array(32) : Be(32);
|
|
7433
7433
|
for (V = 0; V < 32; ++V) te[V] = 0;
|
|
7434
7434
|
for (V = Q; V < D; ++V) A[V] = 0;
|
|
@@ -7453,13 +7453,13 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7453
7453
|
}
|
|
7454
7454
|
(function() {
|
|
7455
7455
|
for (var A = [], P = 0; P < 32; P++) A.push(5);
|
|
7456
|
-
|
|
7456
|
+
Xe(A, vt, 32);
|
|
7457
7457
|
var D = [];
|
|
7458
7458
|
for (P = 0; P <= 143; P++) D.push(8);
|
|
7459
7459
|
for (; P <= 255; P++) D.push(9);
|
|
7460
7460
|
for (; P <= 279; P++) D.push(7);
|
|
7461
7461
|
for (; P <= 287; P++) D.push(8);
|
|
7462
|
-
|
|
7462
|
+
Xe(D, gt, 288);
|
|
7463
7463
|
})();
|
|
7464
7464
|
var _o = /* @__PURE__ */ function() {
|
|
7465
7465
|
for (var P = oe ? new Uint8Array(32768) : [], D = 0, I = 0; D < Y.length - 1; ++D)
|
|
@@ -7487,11 +7487,11 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7487
7487
|
continue;
|
|
7488
7488
|
}
|
|
7489
7489
|
te = J(Q, te, +(re + He == fe.length) + 2);
|
|
7490
|
-
for (var
|
|
7490
|
+
for (var We = 0; He-- > 0; ) {
|
|
7491
7491
|
var Oe = fe[re];
|
|
7492
|
-
|
|
7492
|
+
We = (We << 5 ^ Oe) & 32767;
|
|
7493
7493
|
var $e = -1, rt = 0;
|
|
7494
|
-
if (($e = Ee[
|
|
7494
|
+
if (($e = Ee[We]) && ($e |= re & -32768, $e > re && ($e -= 32768), $e < re))
|
|
7495
7495
|
for (; fe[$e + rt] == fe[re + rt] && rt < 250; ) ++rt;
|
|
7496
7496
|
if (rt > 2) {
|
|
7497
7497
|
Oe = H[rt], Oe <= 22 ? te = be(Q, te, se[Oe + 1] >> 1) - 1 : (be(Q, te, 3), te += 5, be(Q, te, se[Oe - 23] >> 5), te += 3);
|
|
@@ -7500,10 +7500,10 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7500
7500
|
var Gt = Oe < 4 ? 0 : Oe - 2 >> 1;
|
|
7501
7501
|
Gt > 0 && (Ne(Q, te, re - $e - Y[Oe]), te += Gt);
|
|
7502
7502
|
for (var Pn = 0; Pn < rt; ++Pn)
|
|
7503
|
-
Ee[
|
|
7503
|
+
Ee[We] = re & 32767, We = (We << 5 ^ fe[re]) & 32767, ++re;
|
|
7504
7504
|
He -= rt - 1;
|
|
7505
7505
|
} else
|
|
7506
|
-
Oe <= 143 ? Oe = Oe + 48 : te = ie(Q, te, 1), te = be(Q, te, se[Oe]), Ee[
|
|
7506
|
+
Oe <= 143 ? Oe = Oe + 48 : te = ie(Q, te, 1), te = be(Q, te, se[Oe]), Ee[We] = re & 32767, ++re;
|
|
7507
7507
|
}
|
|
7508
7508
|
te = be(Q, te, 0) - 1;
|
|
7509
7509
|
}
|
|
@@ -7527,20 +7527,20 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7527
7527
|
P += 4;
|
|
7528
7528
|
for (var V = 0, ee = oe ? new Uint8Array(19) : Be(19), fe = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], Q = 1, te = oe ? new Uint8Array(8) : Be(8), re = oe ? new Uint8Array(8) : Be(8), Ee = ee.length, He = 0; He < H; ++He)
|
|
7529
7529
|
ee[q[He]] = V = Re(A, P), Q < V && (Q = V), te[V]++, P += 3;
|
|
7530
|
-
var
|
|
7531
|
-
for (te[0] = 0, He = 1; He <= Q; ++He) re[He] =
|
|
7532
|
-
for (He = 0; He < Ee; ++He) (
|
|
7530
|
+
var We = 0;
|
|
7531
|
+
for (te[0] = 0, He = 1; He <= Q; ++He) re[He] = We = We + te[He - 1] << 1;
|
|
7532
|
+
for (He = 0; He < Ee; ++He) (We = ee[He]) != 0 && (fe[He] = re[We]++);
|
|
7533
7533
|
var Oe = 0;
|
|
7534
7534
|
for (He = 0; He < Ee; ++He)
|
|
7535
7535
|
if (Oe = ee[He], Oe != 0) {
|
|
7536
|
-
|
|
7537
|
-
for (var $e = (1 << 7 - Oe) - 1; $e >= 0; --$e) Kr[
|
|
7536
|
+
We = se[fe[He]] >> 8 - Oe;
|
|
7537
|
+
for (var $e = (1 << 7 - Oe) - 1; $e >= 0; --$e) Kr[We | $e << Oe] = Oe & 7 | He << 3;
|
|
7538
7538
|
}
|
|
7539
7539
|
var rt = [];
|
|
7540
7540
|
for (Q = 1; rt.length < D + I; )
|
|
7541
|
-
switch (
|
|
7541
|
+
switch (We = Kr[Me(A, P)], P += We & 7, We >>>= 3) {
|
|
7542
7542
|
case 16:
|
|
7543
|
-
for (V = 3 + nt(A, P), P += 2,
|
|
7543
|
+
for (V = 3 + nt(A, P), P += 2, We = rt[rt.length - 1]; V-- > 0; ) rt.push(We);
|
|
7544
7544
|
break;
|
|
7545
7545
|
case 17:
|
|
7546
7546
|
for (V = 3 + Re(A, P), P += 3; V-- > 0; ) rt.push(0);
|
|
@@ -7549,13 +7549,13 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7549
7549
|
for (V = 11 + Me(A, P), P += 7; V-- > 0; ) rt.push(0);
|
|
7550
7550
|
break;
|
|
7551
7551
|
default:
|
|
7552
|
-
rt.push(
|
|
7552
|
+
rt.push(We), Q < We && (Q = We);
|
|
7553
7553
|
break;
|
|
7554
7554
|
}
|
|
7555
7555
|
var qt = rt.slice(0, D), Gt = rt.slice(D);
|
|
7556
7556
|
for (He = D; He < 286; ++He) qt[He] = 0;
|
|
7557
7557
|
for (He = I; He < 30; ++He) Gt[He] = 0;
|
|
7558
|
-
return le =
|
|
7558
|
+
return le = Xe(qt, or, 286), ze = Xe(Gt, _r, 30), P;
|
|
7559
7559
|
}
|
|
7560
7560
|
function ht(A, P) {
|
|
7561
7561
|
if (A[0] == 3 && !(A[1] & 3))
|
|
@@ -7580,10 +7580,10 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7580
7580
|
Ee -= 257;
|
|
7581
7581
|
var He = Ee < 8 ? 0 : Ee - 4 >> 2;
|
|
7582
7582
|
He > 5 && (He = 0);
|
|
7583
|
-
var
|
|
7584
|
-
He > 0 && (
|
|
7583
|
+
var We = V + ne[Ee];
|
|
7584
|
+
He > 0 && (We += W(A, D, He), D += He), re = W(A, D, Q), Ee = I >>> 1 == 1 ? vt[re] : _r[re], D += Ee & 15, Ee >>>= 4;
|
|
7585
7585
|
var Oe = Ee < 4 ? 0 : Ee - 2 >> 1, $e = Y[Ee];
|
|
7586
|
-
for (Oe > 0 && ($e += W(A, D, Oe), D += Oe), !P && ee <
|
|
7586
|
+
for (Oe > 0 && ($e += W(A, D, Oe), D += Oe), !P && ee < We && (H = ve(H, We + 100), ee = H.length); V < We; )
|
|
7587
7587
|
H[V] = H[V - $e], ++V;
|
|
7588
7588
|
}
|
|
7589
7589
|
}
|
|
@@ -7617,14 +7617,14 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7617
7617
|
var Q = D.read_shift(4);
|
|
7618
7618
|
for (D.l = Q, ee = 0; ee < fe; ++ee) {
|
|
7619
7619
|
D.l += 20;
|
|
7620
|
-
var te = D.read_shift(4), re = D.read_shift(4), Ee = D.read_shift(2), He = D.read_shift(2),
|
|
7620
|
+
var te = D.read_shift(4), re = D.read_shift(4), Ee = D.read_shift(2), He = D.read_shift(2), We = D.read_shift(2);
|
|
7621
7621
|
D.l += 8;
|
|
7622
7622
|
var Oe = D.read_shift(4), $e = a(
|
|
7623
7623
|
/*::(*/
|
|
7624
7624
|
D.slice(D.l + Ee, D.l + Ee + He)
|
|
7625
7625
|
/*:: :any)*/
|
|
7626
7626
|
);
|
|
7627
|
-
D.l += Ee + He +
|
|
7627
|
+
D.l += Ee + He + We;
|
|
7628
7628
|
var rt = D.l;
|
|
7629
7629
|
D.l = Oe + 4, Sr(D, te, re, V, $e), D.l = rt;
|
|
7630
7630
|
}
|
|
@@ -7634,7 +7634,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7634
7634
|
A.l += 2;
|
|
7635
7635
|
var V = A.read_shift(2), ee = A.read_shift(2), fe = o(A);
|
|
7636
7636
|
if (V & 8257) throw new Error("Unsupported ZIP encryption");
|
|
7637
|
-
for (var Q = A.read_shift(4), te = A.read_shift(4), re = A.read_shift(4), Ee = A.read_shift(2), He = A.read_shift(2),
|
|
7637
|
+
for (var Q = A.read_shift(4), te = A.read_shift(4), re = A.read_shift(4), Ee = A.read_shift(2), He = A.read_shift(2), We = "", Oe = 0; Oe < Ee; ++Oe) We += String.fromCharCode(A[A.l++]);
|
|
7638
7638
|
if (He) {
|
|
7639
7639
|
var $e = a(
|
|
7640
7640
|
/*::(*/
|
|
@@ -7656,14 +7656,14 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7656
7656
|
throw new Error("Unsupported ZIP Compression method " + ee);
|
|
7657
7657
|
}
|
|
7658
7658
|
var qt = !1;
|
|
7659
|
-
V & 8 && (Q = A.read_shift(4), Q == 134695760 && (Q = A.read_shift(4), qt = !0), te = A.read_shift(4), re = A.read_shift(4)), te != P && Ht(qt, "Bad compressed size: " + P + " != " + te), re != D && Ht(qt, "Bad uncompressed size: " + D + " != " + re), Eh(I,
|
|
7659
|
+
V & 8 && (Q = A.read_shift(4), Q == 134695760 && (Q = A.read_shift(4), qt = !0), te = A.read_shift(4), re = A.read_shift(4)), te != P && Ht(qt, "Bad compressed size: " + P + " != " + te), re != D && Ht(qt, "Bad uncompressed size: " + D + " != " + re), Eh(I, We, rt, { unsafe: !0, mt: fe });
|
|
7660
7660
|
}
|
|
7661
7661
|
function ct(A, P) {
|
|
7662
|
-
var D = P || {}, I = [], H = [], V = ce(1), ee = D.compression ? 8 : 0, fe = 0, Q = 0, te = 0, re = 0, Ee = 0, He = A.FullPaths[0],
|
|
7662
|
+
var D = P || {}, I = [], H = [], V = ce(1), ee = D.compression ? 8 : 0, fe = 0, Q = 0, te = 0, re = 0, Ee = 0, He = A.FullPaths[0], We = He, Oe = A.FileIndex[0], $e = [], rt = 0;
|
|
7663
7663
|
for (Q = 1; Q < A.FullPaths.length; ++Q)
|
|
7664
|
-
if (
|
|
7665
|
-
var qt = re, Gt = ce(
|
|
7666
|
-
for (te = 0; te <
|
|
7664
|
+
if (We = A.FullPaths[Q].slice(He.length), Oe = A.FileIndex[Q], !(!Oe.size || !Oe.content || We == "Sh33tJ5")) {
|
|
7665
|
+
var qt = re, Gt = ce(We.length);
|
|
7666
|
+
for (te = 0; te < We.length; ++te) Gt.write_shift(1, We.charCodeAt(te) & 127);
|
|
7667
7667
|
Gt = Gt.slice(0, Gt.l), $e[Ee] = BH.buf(
|
|
7668
7668
|
/*::((*/
|
|
7669
7669
|
Oe.content,
|
|
@@ -7756,7 +7756,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7756
7756
|
}
|
|
7757
7757
|
switch (++fe, H.toLowerCase()) {
|
|
7758
7758
|
case "base64":
|
|
7759
|
-
ee = cr(
|
|
7759
|
+
ee = cr(Cs(P.slice(fe).join("")));
|
|
7760
7760
|
break;
|
|
7761
7761
|
case "quoted-printable":
|
|
7762
7762
|
ee = Zr(P.slice(fe));
|
|
@@ -7784,8 +7784,8 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7784
7784
|
E(re);
|
|
7785
7785
|
var Ee, He = 0;
|
|
7786
7786
|
for (H = 0; H < I.length; ++H) {
|
|
7787
|
-
var
|
|
7788
|
-
|
|
7787
|
+
var We = I[H];
|
|
7788
|
+
We !== fe && We !== fe + "--" || (He++ && Yl(re, I.slice(Ee, H), D), Ee = H);
|
|
7789
7789
|
}
|
|
7790
7790
|
return re;
|
|
7791
7791
|
}
|
|
@@ -7805,7 +7805,7 @@ var BH = /* @__PURE__ */ function() {
|
|
|
7805
7805
|
}).replace(/[\u0080-\uFFFF]/g, function(rt) {
|
|
7806
7806
|
return "_u" + rt.charCodeAt(0).toString(16) + "_";
|
|
7807
7807
|
});
|
|
7808
|
-
for (var te = fe.content, re = kt && Buffer.isBuffer(te) ? te.toString("binary") : he(te), Ee = 0, He = Math.min(1024, re.length),
|
|
7808
|
+
for (var te = fe.content, re = kt && Buffer.isBuffer(te) ? te.toString("binary") : he(te), Ee = 0, He = Math.min(1024, re.length), We = 0, Oe = 0; Oe <= He; ++Oe) (We = re.charCodeAt(Oe)) >= 32 && We < 128 && ++Ee;
|
|
7809
7809
|
var $e = Ee >= He * 4 / 5;
|
|
7810
7810
|
H.push(I), H.push("Content-Location: " + (D.root || "file:///C:/SheetJS/") + ee), H.push("Content-Transfer-Encoding: " + ($e ? "quoted-printable" : "base64")), H.push("Content-Type: " + Et(fe, ee)), H.push(""), H.push($e ? Sn(re) : pn(re));
|
|
7811
7811
|
}
|
|
@@ -8006,7 +8006,7 @@ function Jt(t, e) {
|
|
|
8006
8006
|
for (var n = ""; n.length < e; ) n += t;
|
|
8007
8007
|
return n;
|
|
8008
8008
|
}
|
|
8009
|
-
function
|
|
8009
|
+
function ps(t) {
|
|
8010
8010
|
var e = Number(t);
|
|
8011
8011
|
if (!isNaN(e)) return isFinite(e) ? e : NaN;
|
|
8012
8012
|
if (!/\d/.test(t)) return e;
|
|
@@ -8031,7 +8031,7 @@ function lt(t, e, n) {
|
|
|
8031
8031
|
if (t.FullPaths) {
|
|
8032
8032
|
if (typeof n == "string") {
|
|
8033
8033
|
var i;
|
|
8034
|
-
return kt ? i =
|
|
8034
|
+
return kt ? i = As(n) : i = uH(n), Ot.utils.cfb_add(t, e, i);
|
|
8035
8035
|
}
|
|
8036
8036
|
Ot.utils.cfb_add(t, e, n);
|
|
8037
8037
|
} else t.file(e, n);
|
|
@@ -8116,10 +8116,10 @@ function d6(t) {
|
|
|
8116
8116
|
return e.slice(0, s).toString("ucs2");
|
|
8117
8117
|
}
|
|
8118
8118
|
function u6(t) {
|
|
8119
|
-
return
|
|
8119
|
+
return As(t, "binary").toString("utf8");
|
|
8120
8120
|
}
|
|
8121
8121
|
var pd = "foo bar bazâð£", yc = kt && (/* @__PURE__ */ u6(pd) == /* @__PURE__ */ Rh(pd) && u6 || /* @__PURE__ */ d6(pd) == /* @__PURE__ */ Rh(pd) && d6) || Rh, Zc = kt ? function(t) {
|
|
8122
|
-
return
|
|
8122
|
+
return As(t, "utf8").toString("binary");
|
|
8123
8123
|
} : function(t) {
|
|
8124
8124
|
for (var e = [], n = 0, i = 0, r = 0; n < t.length; )
|
|
8125
8125
|
switch (i = t.charCodeAt(n++), !0) {
|
|
@@ -8229,7 +8229,7 @@ var h6 = function(t) {
|
|
|
8229
8229
|
return e;
|
|
8230
8230
|
}, p6 = kt ? function(t) {
|
|
8231
8231
|
return t[0].length > 0 && Buffer.isBuffer(t[0][0]) ? Buffer.concat(t[0].map(function(e) {
|
|
8232
|
-
return Buffer.isBuffer(e) ? e :
|
|
8232
|
+
return Buffer.isBuffer(e) ? e : As(e);
|
|
8233
8233
|
})) : h6(t);
|
|
8234
8234
|
} : h6, m6 = function(t, e, n) {
|
|
8235
8235
|
for (var i = [], r = e; r < n; r += 2) i.push(String.fromCharCode(dc(t, r)));
|
|
@@ -8591,7 +8591,7 @@ function x6(t, e) {
|
|
|
8591
8591
|
return "" + e;
|
|
8592
8592
|
}
|
|
8593
8593
|
}
|
|
8594
|
-
function
|
|
8594
|
+
function _s(t, e, n) {
|
|
8595
8595
|
return t == null || t.t == null || t.t == "z" ? "" : t.w !== void 0 ? t.w : (t.t == "d" && !t.z && n && n.dateNF && (t.z = n.dateNF), t.t == "e" ? qf[t.v] || t.v : e == null ? x6(t, t.v) : x6(t, e));
|
|
8596
8596
|
}
|
|
8597
8597
|
function ga(t, e) {
|
|
@@ -10082,7 +10082,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10082
10082
|
var c = [], d = Yo(1);
|
|
10083
10083
|
switch (l.type) {
|
|
10084
10084
|
case "base64":
|
|
10085
|
-
d = cr(
|
|
10085
|
+
d = cr(Cs(a));
|
|
10086
10086
|
break;
|
|
10087
10087
|
case "binary":
|
|
10088
10088
|
d = cr(a);
|
|
@@ -10479,7 +10479,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10479
10479
|
function r(h, p) {
|
|
10480
10480
|
switch (p.type) {
|
|
10481
10481
|
case "base64":
|
|
10482
|
-
return s(
|
|
10482
|
+
return s(Cs(h), p);
|
|
10483
10483
|
case "binary":
|
|
10484
10484
|
return s(h, p);
|
|
10485
10485
|
case "buffer":
|
|
@@ -10528,7 +10528,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10528
10528
|
for (g = parseInt(O[b].slice(1)) - 1, ae || (v = 0), M = w.length; M <= g; ++M) w[M] = [];
|
|
10529
10529
|
break;
|
|
10530
10530
|
case "K":
|
|
10531
|
-
z = O[b].slice(1), z.charAt(0) === '"' ? z = z.slice(1, z.length - 1) : z === "TRUE" ? z = !0 : z === "FALSE" ? z = !1 : isNaN(
|
|
10531
|
+
z = O[b].slice(1), z.charAt(0) === '"' ? z = z.slice(1, z.length - 1) : z === "TRUE" ? z = !0 : z === "FALSE" ? z = !1 : isNaN(ps(z)) ? isNaN(Kc(z).getDate()) || (z = ti(z)) : (z = ps(z), C !== null && Ak(C) && (z = Fk(z))), Z = !0;
|
|
10532
10532
|
break;
|
|
10533
10533
|
case "E":
|
|
10534
10534
|
he = !0;
|
|
@@ -10670,7 +10670,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10670
10670
|
function t(s, o) {
|
|
10671
10671
|
switch (o.type) {
|
|
10672
10672
|
case "base64":
|
|
10673
|
-
return e(
|
|
10673
|
+
return e(Cs(s), o);
|
|
10674
10674
|
case "binary":
|
|
10675
10675
|
return e(s, o);
|
|
10676
10676
|
case "buffer":
|
|
@@ -10700,7 +10700,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10700
10700
|
} else if (g !== "EOD") throw new Error("Unrecognized DIF special command " + g);
|
|
10701
10701
|
break;
|
|
10702
10702
|
case 0:
|
|
10703
|
-
g === "TRUE" ? u[l][c] = !0 : g === "FALSE" ? u[l][c] = !1 : isNaN(
|
|
10703
|
+
g === "TRUE" ? u[l][c] = !0 : g === "FALSE" ? u[l][c] = !1 : isNaN(ps(m)) ? isNaN(Kc(m).getDate()) ? u[l][c] = m : u[l][c] = ti(m) : u[l][c] = ps(m), ++c;
|
|
10704
10704
|
break;
|
|
10705
10705
|
case 1:
|
|
10706
10706
|
g = g.slice(1, g.length - 1), g = g.replace(/""/g, '"'), g && g.match(/^=".*"$/) && (g = g.slice(2, -1)), u[l][c++] = g !== "" ? g : null;
|
|
@@ -10864,7 +10864,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10864
10864
|
};
|
|
10865
10865
|
}(), kV = /* @__PURE__ */ function() {
|
|
10866
10866
|
function t(d, u, h, p, m) {
|
|
10867
|
-
m.raw ? u[h][p] = d : d === "" || (d === "TRUE" ? u[h][p] = !0 : d === "FALSE" ? u[h][p] = !1 : isNaN(
|
|
10867
|
+
m.raw ? u[h][p] = d : d === "" || (d === "TRUE" ? u[h][p] = !0 : d === "FALSE" ? u[h][p] = !1 : isNaN(ps(d)) ? isNaN(Kc(d).getDate()) ? u[h][p] = d : u[h][p] = ti(d) : u[h][p] = ps(d));
|
|
10868
10868
|
}
|
|
10869
10869
|
function e(d, u) {
|
|
10870
10870
|
var h = u || {}, p = [];
|
|
@@ -10932,7 +10932,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10932
10932
|
N.t = "b", N.v = !0;
|
|
10933
10933
|
else if (M == "FALSE")
|
|
10934
10934
|
N.t = "b", N.v = !1;
|
|
10935
|
-
else if (!isNaN(b =
|
|
10935
|
+
else if (!isNaN(b = ps(M)))
|
|
10936
10936
|
N.t = "n", h.cellText !== !1 && (N.w = M), N.v = b;
|
|
10937
10937
|
else if (!isNaN(Kc(M).getDate()) || _ && M.match(_)) {
|
|
10938
10938
|
N.z = h.dateNF || Qt[14];
|
|
@@ -10962,7 +10962,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10962
10962
|
var h = "", p = u.type == "string" ? [0, 0, 0, 0] : Oq(d, u);
|
|
10963
10963
|
switch (u.type) {
|
|
10964
10964
|
case "base64":
|
|
10965
|
-
h =
|
|
10965
|
+
h = Cs(d);
|
|
10966
10966
|
break;
|
|
10967
10967
|
case "binary":
|
|
10968
10968
|
h = d;
|
|
@@ -10992,7 +10992,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
10992
10992
|
v.push(" ");
|
|
10993
10993
|
continue;
|
|
10994
10994
|
}
|
|
10995
|
-
for (var w = (p.w || (
|
|
10995
|
+
for (var w = (p.w || (_s(p), p.w) || "").slice(0, 10); w.length < 10; ) w += " ";
|
|
10996
10996
|
v.push(w + (y === 0 ? " " : ""));
|
|
10997
10997
|
}
|
|
10998
10998
|
u.push(v.join(""));
|
|
@@ -11018,7 +11018,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
11018
11018
|
function e(R, G) {
|
|
11019
11019
|
switch (G.type) {
|
|
11020
11020
|
case "base64":
|
|
11021
|
-
return n(cr(
|
|
11021
|
+
return n(cr(Cs(R)), G);
|
|
11022
11022
|
case "binary":
|
|
11023
11023
|
return n(cr(R), G);
|
|
11024
11024
|
case "buffer":
|
|
@@ -11120,7 +11120,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
11120
11120
|
if (Re.t == "n")
|
|
11121
11121
|
(Re.v | 0) == Re.v && Re.v >= -32768 && Re.v <= 32767 ? De(q, 13, p(se, Ue, Re.v)) : De(q, 14, g(se, Ue, Re.v));
|
|
11122
11122
|
else {
|
|
11123
|
-
var Ct =
|
|
11123
|
+
var Ct = _s(Re);
|
|
11124
11124
|
De(q, 15, u(se, Ue, Ct.slice(0, 239)));
|
|
11125
11125
|
}
|
|
11126
11126
|
}
|
|
@@ -11144,7 +11144,7 @@ var vV = /* @__PURE__ */ function() {
|
|
|
11144
11144
|
if (W.t == "n")
|
|
11145
11145
|
De(q, 23, L(Re, st, K, W.v));
|
|
11146
11146
|
else {
|
|
11147
|
-
var J =
|
|
11147
|
+
var J = _s(W);
|
|
11148
11148
|
De(q, 22, E(Re, st, K, J.slice(0, 239)));
|
|
11149
11149
|
}
|
|
11150
11150
|
}
|
|
@@ -11887,7 +11887,7 @@ var LV = /* @__PURE__ */ function() {
|
|
|
11887
11887
|
function t(r, s) {
|
|
11888
11888
|
switch (s.type) {
|
|
11889
11889
|
case "base64":
|
|
11890
|
-
return e(
|
|
11890
|
+
return e(Cs(r), s);
|
|
11891
11891
|
case "binary":
|
|
11892
11892
|
return e(r, s);
|
|
11893
11893
|
case "buffer":
|
|
@@ -11927,7 +11927,7 @@ var LV = /* @__PURE__ */ function() {
|
|
|
11927
11927
|
for (var d = o.s.c; d <= o.e.c; ++d) s.push("\\cellx" + (d + 1));
|
|
11928
11928
|
for (s.push("\\pard\\intbl"), d = o.s.c; d <= o.e.c; ++d) {
|
|
11929
11929
|
var u = Nt({ r: c, c: d });
|
|
11930
|
-
a = l ? (r[c] || [])[d] : r[u], !(!a || a.v == null && (!a.f || a.F)) && (s.push(" " + (a.w || (
|
|
11930
|
+
a = l ? (r[c] || [])[d] : r[u], !(!a || a.v == null && (!a.f || a.F)) && (s.push(" " + (a.w || (_s(a), a.w))), s.push("\\cell"));
|
|
11931
11931
|
}
|
|
11932
11932
|
s.push("\\pard\\intbl\\row");
|
|
11933
11933
|
}
|
|
@@ -11943,18 +11943,18 @@ function N6(t) {
|
|
|
11943
11943
|
for (var e = 0, n = 1; e != 3; ++e) n = n * 256 + (t[e] > 255 ? 255 : t[e] < 0 ? 0 : t[e]);
|
|
11944
11944
|
return n.toString(16).toUpperCase().slice(1);
|
|
11945
11945
|
}
|
|
11946
|
-
var TV = 6,
|
|
11946
|
+
var TV = 6, ms = TV;
|
|
11947
11947
|
function $1(t) {
|
|
11948
|
-
return Math.floor((t + Math.round(128 /
|
|
11948
|
+
return Math.floor((t + Math.round(128 / ms) / 256) * ms);
|
|
11949
11949
|
}
|
|
11950
11950
|
function V1(t) {
|
|
11951
|
-
return Math.floor((t - 5) /
|
|
11951
|
+
return Math.floor((t - 5) / ms * 100 + 0.5) / 100;
|
|
11952
11952
|
}
|
|
11953
11953
|
function m2(t) {
|
|
11954
|
-
return Math.round((t *
|
|
11954
|
+
return Math.round((t * ms + 5) / ms * 256) / 256;
|
|
11955
11955
|
}
|
|
11956
11956
|
function h4(t) {
|
|
11957
|
-
t.width ? (t.wpx = $1(t.width), t.wch = V1(t.wpx), t.MDW =
|
|
11957
|
+
t.width ? (t.wpx = $1(t.width), t.wch = V1(t.wpx), t.MDW = ms) : t.wpx ? (t.wch = V1(t.wpx), t.width = m2(t.wch), t.MDW = ms) : typeof t.wch == "number" && (t.width = m2(t.wch), t.wpx = $1(t.width), t.MDW = ms), t.customWidth && delete t.customWidth;
|
|
11958
11958
|
}
|
|
11959
11959
|
var AV = 96, xw = AV;
|
|
11960
11960
|
function z1(t) {
|
|
@@ -14629,7 +14629,7 @@ function v4(t, e, n) {
|
|
|
14629
14629
|
}
|
|
14630
14630
|
function O0(t, e) {
|
|
14631
14631
|
var n = { min: t + 1, max: t + 1 }, i = -1;
|
|
14632
|
-
return e.MDW && (
|
|
14632
|
+
return e.MDW && (ms = e.MDW), e.width != null ? n.customWidth = 1 : e.wpx != null ? i = V1(e.wpx) : e.wch != null && (i = e.wch), i > -1 ? (n.width = m2(i), n.customWidth = 1) : e.width != null && (n.width = e.width), e.hidden && (n.hidden = !0), e.level != null && (n.outlineLevel = n.level = e.level), n;
|
|
14633
14633
|
}
|
|
14634
14634
|
function Iw(t, e) {
|
|
14635
14635
|
if (t) {
|
|
@@ -20015,7 +20015,7 @@ function mq(t, e, n, i) {
|
|
|
20015
20015
|
break;
|
|
20016
20016
|
}
|
|
20017
20017
|
if (!(a < 0)) {
|
|
20018
|
-
var d = Nt({ r: n, c: o }), u = i.dense ? (t[n] || [])[o] : t[d], h = u && u.v != null && (u.h || qH(u.w || (
|
|
20018
|
+
var d = Nt({ r: n, c: o }), u = i.dense ? (t[n] || [])[o] : t[d], h = u && u.v != null && (u.h || qH(u.w || (_s(u), u.w) || "")) || "", p = {};
|
|
20019
20019
|
a > 1 && (p.rowspan = a), l > 1 && (p.colspan = l), i.editable ? h = '<span contenteditable="true">' + h + "</span>" : u && (p["data-t"] = u && u.t || "z", u.v != null && (p["data-v"] = u.v), u.z != null && (p["data-z"] = u.z), u.l && (u.l.Target || "#").charAt(0) != "#" && (h = '<a href="' + u.l.Target + '">' + h + "</a>")), p.id = (i.id || "sjs") + "-" + d, s.push(Fe("td", h, p));
|
|
20020
20020
|
}
|
|
20021
20021
|
}
|
|
@@ -20064,7 +20064,7 @@ function jw(t, e, n) {
|
|
|
20064
20064
|
}
|
|
20065
20065
|
w = +S.getAttribute("colspan") || 1, ((b = +S.getAttribute("rowspan") || 1) > 1 || w > 1) && u.push({ s: { r: g + r, c: y + s }, e: { r: g + r + (b || 1) - 1, c: y + s + (w || 1) - 1 } });
|
|
20066
20066
|
var L = { t: "s", v: E }, M = S.getAttribute("data-t") || S.getAttribute("t") || "";
|
|
20067
|
-
E != null && (E.length == 0 ? L.t = M || "z" : i.raw || E.trim().length == 0 || M == "s" || (E === "TRUE" ? L = { t: "b", v: !0 } : E === "FALSE" ? L = { t: "b", v: !1 } : isNaN(
|
|
20067
|
+
E != null && (E.length == 0 ? L.t = M || "z" : i.raw || E.trim().length == 0 || M == "s" || (E === "TRUE" ? L = { t: "b", v: !0 } : E === "FALSE" ? L = { t: "b", v: !1 } : isNaN(ps(E)) ? isNaN(Kc(E).getDate()) || (L = { t: "d", v: ti(E) }, i.cellDates || (L = { t: "n", v: ki(L.v) }), L.z = i.dateNF || Qt[14]) : L = { t: "n", v: ps(E) })), L.z === void 0 && T != null && (L.z = T);
|
|
20068
20068
|
var N = "", O = S.getElementsByTagName("A");
|
|
20069
20069
|
if (O && O.length) for (var j = 0; j < O.length && !(O[j].hasAttribute("href") && (N = O[j].getAttribute("href"), N.charAt(0) != "#")); ++j) ;
|
|
20070
20070
|
N && N.charAt(0) != "#" && (L.l = { Target: N }), i.dense ? (t[g + r] || (t[g + r] = []), t[g + r][y + s] = L) : t[Nt({ c: y + s, r: g + r })] = L, c.e.c < y + s && (c.e.c = y + s), y += w;
|
|
@@ -20528,7 +20528,7 @@ function zh(t, e) {
|
|
|
20528
20528
|
}
|
|
20529
20529
|
return i.setUint32(4, s, !0), n.slice(0, r);
|
|
20530
20530
|
}
|
|
20531
|
-
function
|
|
20531
|
+
function Fs(t) {
|
|
20532
20532
|
var e = un(t);
|
|
20533
20533
|
return Xc(e[1][0].data);
|
|
20534
20534
|
}
|
|
@@ -20620,17 +20620,17 @@ function Lq(t, e) {
|
|
|
20620
20620
|
var g = h[m];
|
|
20621
20621
|
g.id == 1 && (p = g);
|
|
20622
20622
|
}
|
|
20623
|
-
var v =
|
|
20623
|
+
var v = Fs(un(p.messages[0].data)[1][0].data);
|
|
20624
20624
|
for (u = Ot.find(c, a[v].location), h = ar(lr(u.content)), m = 0; m < h.length; ++m)
|
|
20625
20625
|
g = h[m], g.id == v && (p = g);
|
|
20626
|
-
for (v =
|
|
20626
|
+
for (v = Fs(un(p.messages[0].data)[2][0].data), u = Ot.find(c, a[v].location), h = ar(lr(u.content)), m = 0; m < h.length; ++m)
|
|
20627
20627
|
g = h[m], g.id == v && (p = g);
|
|
20628
|
-
for (v =
|
|
20628
|
+
for (v = Fs(un(p.messages[0].data)[2][0].data), u = Ot.find(c, a[v].location), h = ar(lr(u.content)), m = 0; m < h.length; ++m)
|
|
20629
20629
|
g = h[m], g.id == v && (p = g);
|
|
20630
20630
|
var y = un(p.messages[0].data);
|
|
20631
20631
|
{
|
|
20632
20632
|
y[6][0].data = Lt(i.e.r + 1), y[7][0].data = Lt(i.e.c + 1);
|
|
20633
|
-
var b =
|
|
20633
|
+
var b = Fs(y[46][0].data), w = Ot.find(c, a[b].location), k = ar(lr(w.content));
|
|
20634
20634
|
{
|
|
20635
20635
|
for (var C = 0; C < k.length && k[C].id != b; ++C)
|
|
20636
20636
|
;
|
|
@@ -20651,7 +20651,7 @@ function Lq(t, e) {
|
|
|
20651
20651
|
var L = un(y[4][0].data);
|
|
20652
20652
|
{
|
|
20653
20653
|
L[7][0].data = Lt(i.e.r + 1);
|
|
20654
|
-
var M = un(L[1][0].data), N =
|
|
20654
|
+
var M = un(L[1][0].data), N = Fs(M[2][0].data);
|
|
20655
20655
|
w = Ot.find(c, a[N].location), k = ar(lr(w.content));
|
|
20656
20656
|
{
|
|
20657
20657
|
if (k[0].id != N)
|
|
@@ -20664,7 +20664,7 @@ function Lq(t, e) {
|
|
|
20664
20664
|
k[0].messages[0].data = En(O);
|
|
20665
20665
|
}
|
|
20666
20666
|
w.content = La(Ea(k)), w.size = w.content.length;
|
|
20667
|
-
var z =
|
|
20667
|
+
var z = Fs(L[2][0].data);
|
|
20668
20668
|
w = Ot.find(c, a[z].location), k = ar(lr(w.content));
|
|
20669
20669
|
{
|
|
20670
20670
|
if (k[0].id != z)
|
|
@@ -20674,7 +20674,7 @@ function Lq(t, e) {
|
|
|
20674
20674
|
k[0].messages[0].data = En(O);
|
|
20675
20675
|
}
|
|
20676
20676
|
w.content = La(Ea(k)), w.size = w.content.length;
|
|
20677
|
-
var Z =
|
|
20677
|
+
var Z = Fs(L[4][0].data);
|
|
20678
20678
|
(function() {
|
|
20679
20679
|
for (var G = Ot.find(c, a[Z].location), U = ar(lr(G.content)), q, ne = 0; ne < U.length; ++ne) {
|
|
20680
20680
|
var Y = U[ne];
|
|
@@ -20698,7 +20698,7 @@ function Lq(t, e) {
|
|
|
20698
20698
|
delete ae[2];
|
|
20699
20699
|
var he = un(me.data);
|
|
20700
20700
|
{
|
|
20701
|
-
var _e =
|
|
20701
|
+
var _e = Fs(he[2][0].data);
|
|
20702
20702
|
(function() {
|
|
20703
20703
|
for (var G = Ot.find(c, a[_e].location), U = ar(lr(G.content)), q, ne = 0; ne < U.length; ++ne) {
|
|
20704
20704
|
var Y = U[ne];
|
|
@@ -20827,7 +20827,7 @@ function Oq(t, e) {
|
|
|
20827
20827
|
case "buffer":
|
|
20828
20828
|
return [t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7]];
|
|
20829
20829
|
case "base64":
|
|
20830
|
-
n =
|
|
20830
|
+
n = Cs(t.slice(0, 12));
|
|
20831
20831
|
break;
|
|
20832
20832
|
case "binary":
|
|
20833
20833
|
n = t;
|
|
@@ -20911,7 +20911,7 @@ function Tr(t, e, n) {
|
|
|
20911
20911
|
case "file":
|
|
20912
20912
|
return Wf(e.file, i, "utf8");
|
|
20913
20913
|
case "buffer":
|
|
20914
|
-
return kt ?
|
|
20914
|
+
return kt ? As(i, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(i) : Tr(i, { type: "binary" }).split("").map(function(r) {
|
|
20915
20915
|
return r.charCodeAt(0);
|
|
20916
20916
|
});
|
|
20917
20917
|
}
|
|
@@ -20929,7 +20929,7 @@ function Rq(t, e) {
|
|
|
20929
20929
|
case "file":
|
|
20930
20930
|
return Wf(e.file, t, "binary");
|
|
20931
20931
|
case "buffer":
|
|
20932
|
-
return kt ?
|
|
20932
|
+
return kt ? As(t, "binary") : t.split("").map(function(n) {
|
|
20933
20933
|
return n.charCodeAt(0);
|
|
20934
20934
|
});
|
|
20935
20935
|
}
|
|
@@ -21056,7 +21056,7 @@ function Pq(t, e, n, i, r, s, o, a) {
|
|
|
21056
21056
|
else if (d && g === null) h[s[p]] = null;
|
|
21057
21057
|
else continue;
|
|
21058
21058
|
else
|
|
21059
|
-
h[s[p]] = d && (m.t !== "n" || m.t === "n" && a.rawNumbers !== !1) ? g :
|
|
21059
|
+
h[s[p]] = d && (m.t !== "n" || m.t === "n" && a.rawNumbers !== !1) ? g : _s(m, g, a);
|
|
21060
21060
|
g != null && (u = !1);
|
|
21061
21061
|
}
|
|
21062
21062
|
}
|
|
@@ -21092,7 +21092,7 @@ function W1(t, e) {
|
|
|
21092
21092
|
s[b] = c.header[b - l.s.c];
|
|
21093
21093
|
break;
|
|
21094
21094
|
default:
|
|
21095
|
-
if (n == null && (n = { w: "__EMPTY", t: "s" }), a = o =
|
|
21095
|
+
if (n == null && (n = { w: "__EMPTY", t: "s" }), a = o = _s(n, null, c), g = w[o] || 0, !g) w[o] = 1;
|
|
21096
21096
|
else {
|
|
21097
21097
|
do
|
|
21098
21098
|
a = o + "_" + g++;
|
|
@@ -21115,7 +21115,7 @@ function Bq(t, e, n, i, r, s, o, a) {
|
|
|
21115
21115
|
var p = a.dense ? (t[n] || [])[h] : t[i[h] + u];
|
|
21116
21116
|
if (p == null) d = "";
|
|
21117
21117
|
else if (p.v != null) {
|
|
21118
|
-
l = !1, d = "" + (a.rawNumbers && p.t == "n" ? p.v :
|
|
21118
|
+
l = !1, d = "" + (a.rawNumbers && p.t == "n" ? p.v : _s(p, null, a));
|
|
21119
21119
|
for (var m = 0, g = 0; m !== d.length; ++m) if ((g = d.charCodeAt(m)) === r || g === s || g === 34 || a.forceQuotes) {
|
|
21120
21120
|
d = '"' + d.replace(P6, '""') + '"';
|
|
21121
21121
|
break;
|
|
@@ -21277,7 +21277,7 @@ var jh = {
|
|
|
21277
21277
|
split_cell: f$,
|
|
21278
21278
|
decode_cell: yn,
|
|
21279
21279
|
decode_range: Ii,
|
|
21280
|
-
format_cell:
|
|
21280
|
+
format_cell: _s,
|
|
21281
21281
|
sheet_add_aoa: Jk,
|
|
21282
21282
|
sheet_add_json: Zw,
|
|
21283
21283
|
sheet_add_dom: jw,
|
|
@@ -21342,7 +21342,7 @@ function Jq(t, e = "table-export") {
|
|
|
21342
21342
|
l.href = URL.createObjectURL(a), l.download = `${e}.xlsx`, l.click(), URL.revokeObjectURL(l.href);
|
|
21343
21343
|
}
|
|
21344
21344
|
function Xq({ children: t, ...e }) {
|
|
21345
|
-
const { ai: n } =
|
|
21345
|
+
const { ai: n } = Je(), i = Ce(null);
|
|
21346
21346
|
return x("div", {
|
|
21347
21347
|
className: "mb-2 flex flex-col gap-2",
|
|
21348
21348
|
children: [f("div", {
|
|
@@ -21474,9 +21474,9 @@ const oG = {
|
|
|
21474
21474
|
var b, w;
|
|
21475
21475
|
const s = (i == null ? void 0 : i.content) || "", o = (i == null ? void 0 : i.role) === "assistant" && ((b = i.toolCalls) == null ? void 0 : b.find((k) => k.function.name === "orchestratorThinking")), a = (w = i == null ? void 0 : i.generativeUI) == null ? void 0 : w.call(i, o ? {
|
|
21476
21476
|
status: e ? "executing" : "completed"
|
|
21477
|
-
} : void 0), l = !s && !a, c =
|
|
21477
|
+
} : void 0), l = !s && !a, c = Je(), { open: d } = Yw(), [u, h] = X(null), [p, m] = X(!1), g = Ce(), v = Ze(() => {
|
|
21478
21478
|
g.current && clearTimeout(g.current), !e && !t && !a && m(!0);
|
|
21479
|
-
}, [t, e, a]), y =
|
|
21479
|
+
}, [t, e, a]), y = Ze(() => {
|
|
21480
21480
|
g.current = setTimeout(() => {
|
|
21481
21481
|
m(!1);
|
|
21482
21482
|
}, 150);
|
|
@@ -21547,7 +21547,7 @@ const oG = {
|
|
|
21547
21547
|
})]
|
|
21548
21548
|
});
|
|
21549
21549
|
}, cG = () => null, Qw = li(null), fG = 15, dG = ({ children: t, enabled: e, agent: n, initialMessage: i, welcomeScreenSuggestions: r = [], onThumbsDown: s, onThumbsUp: o, ...a }) => {
|
|
21550
|
-
const [l, c] = X(e), [d, u] = X(!1), [h, p] = X(!0), [m, g] = X(n), [v, y] = X(r), b =
|
|
21550
|
+
const [l, c] = X(e), [d, u] = X(!1), [h, p] = X(!0), [m, g] = X(n), [v, y] = X(r), b = Je(), [w, k] = X([b.t("ai.inputPlaceholder")]), [C, S] = X(fG), [E, T] = X(i), _ = Ce(null), L = Ce(null), M = (Z) => {
|
|
21551
21551
|
g(Z);
|
|
21552
21552
|
}, N = (Z) => {
|
|
21553
21553
|
_.current = Z;
|
|
@@ -21632,7 +21632,7 @@ function Ur() {
|
|
|
21632
21632
|
} : t;
|
|
21633
21633
|
}
|
|
21634
21634
|
const uG = (t) => {
|
|
21635
|
-
const { labels: e } = ZM(), { messages: n } = Dl(), { setOpen: i, clear: r } = Ur(), s =
|
|
21635
|
+
const { labels: e } = ZM(), { messages: n } = Dl(), { setOpen: i, clear: r } = Ur(), s = Je(), o = e.title === "CopilotKit", a = n.length > 0;
|
|
21636
21636
|
return x("header", {
|
|
21637
21637
|
className: F("flex justify-between border-0 border-solid border-f1-border-secondary p-3"),
|
|
21638
21638
|
children: [f("h2", {
|
|
@@ -21713,7 +21713,7 @@ const uG = (t) => {
|
|
|
21713
21713
|
})
|
|
21714
21714
|
});
|
|
21715
21715
|
}, pG = ({ submitLabel: t, inProgress: e, onSend: n, onStop: i }) => {
|
|
21716
|
-
const [r, s] = X(""), [o, a] = X(!1), l = Ce(null), c = Ce(null), d =
|
|
21716
|
+
const [r, s] = X(""), [o, a] = X(!1), l = Ce(null), c = Ce(null), d = Je(), { placeholders: u } = Ur(), h = r.trim().length > 0;
|
|
21717
21717
|
Ae(() => {
|
|
21718
21718
|
if (c.current && r.length > 0) {
|
|
21719
21719
|
const { scrollHeight: v } = c.current;
|
|
@@ -21937,7 +21937,7 @@ const yG = ["buttonToggle"], k4 = (t) => {
|
|
|
21937
21937
|
variant: "center"
|
|
21938
21938
|
}
|
|
21939
21939
|
}), wG = ({ asBottomSheetInMobile: t = !0, position: e = "center", onClose: n, isOpen: i, contentPadding: r = "md", children: s, width: o = "md" }) => {
|
|
21940
|
-
const [a, l] = X(null), c = Ce(null), d =
|
|
21940
|
+
const [a, l] = X(null), c = Ce(null), d = Ze((y) => {
|
|
21941
21941
|
c.current = y, l(y);
|
|
21942
21942
|
}, []), u = (y) => {
|
|
21943
21943
|
y || n();
|
|
@@ -22677,7 +22677,7 @@ const GG = Rn({
|
|
|
22677
22677
|
children: x(Ci, {
|
|
22678
22678
|
role: "link",
|
|
22679
22679
|
...p,
|
|
22680
|
-
children: [p.variant === "upsell" && f(
|
|
22680
|
+
children: [p.variant === "upsell" && f(je, {
|
|
22681
22681
|
icon: w7,
|
|
22682
22682
|
size: "md",
|
|
22683
22683
|
className: "mr-1 text-[hsl(var(--promote-50))]"
|
|
@@ -22775,7 +22775,7 @@ const N4 = B((t, e) => f("span", {
|
|
|
22775
22775
|
"aria-hidden": "true",
|
|
22776
22776
|
className: "h-4 w-4 text-f1-icon-secondary",
|
|
22777
22777
|
...t,
|
|
22778
|
-
children: f(
|
|
22778
|
+
children: f(Ts, {})
|
|
22779
22779
|
}));
|
|
22780
22780
|
N4.displayName = "BreadcrumbSeparator";
|
|
22781
22781
|
const yb = B(({ className: t, items: e }, n) => f(A4, {
|
|
@@ -22953,7 +22953,7 @@ function aK({ ...t }) {
|
|
|
22953
22953
|
rotate: e ? 180 : 0
|
|
22954
22954
|
},
|
|
22955
22955
|
className: "h-[16px] w-[16px]",
|
|
22956
|
-
children: f(
|
|
22956
|
+
children: f(je, {
|
|
22957
22957
|
icon: Wr,
|
|
22958
22958
|
size: "sm",
|
|
22959
22959
|
className: "rounded-2xs bg-f1-background-secondary p-0.5"
|
|
@@ -22983,11 +22983,11 @@ function lK({ children: t }) {
|
|
|
22983
22983
|
}), [l, c] = X(() => {
|
|
22984
22984
|
const y = localStorage.getItem(V6);
|
|
22985
22985
|
return y !== null ? !!y : !0;
|
|
22986
|
-
}), [d, u] = X(!1), [h, p] = X(null), m =
|
|
22986
|
+
}), [d, u] = X(!1), [h, p] = X(null), m = Ze(({ isInvokedByUser: y } = {
|
|
22987
22987
|
isInvokedByUser: !0
|
|
22988
22988
|
}) => {
|
|
22989
22989
|
s(y ?? !0), a && u(!d), c(!l);
|
|
22990
|
-
}, [a, d, l, c, u]), g =
|
|
22990
|
+
}, [a, d, l, c, u]), g = Ze((y) => {
|
|
22991
22991
|
a || (y.clientX < 32 && u(!0), y.clientX > 280 && u(!1));
|
|
22992
22992
|
}, [a, u]), v = ke(() => a ? d ? "unlocked" : "hidden" : !l && !d ? "hidden" : !l && d ? "unlocked" : "locked", [a, d, l]);
|
|
22993
22993
|
return Ae(() => {
|
|
@@ -23155,7 +23155,7 @@ const cK = Rn({
|
|
|
23155
23155
|
})
|
|
23156
23156
|
});
|
|
23157
23157
|
}, O4 = B(fK), kb = ({ className: t, disabled: e }) => {
|
|
23158
|
-
const { enabled: n, setOpen: i, open: r } = Ur(), s =
|
|
23158
|
+
const { enabled: n, setOpen: i, open: r } = Ur(), s = Je(), [o, a] = X(!1);
|
|
23159
23159
|
return n ? f("div", {
|
|
23160
23160
|
className: "flex items-center",
|
|
23161
23161
|
children: f(F7, {
|
|
@@ -23399,7 +23399,7 @@ function F0() {
|
|
|
23399
23399
|
} : t;
|
|
23400
23400
|
}
|
|
23401
23401
|
const Cb = ({ className: t, disabled: e }) => {
|
|
23402
|
-
const { enabled: n, setOpen: i, open: r } = F0(), s =
|
|
23402
|
+
const { enabled: n, setOpen: i, open: r } = F0(), s = Je(), [o, a] = X(!1);
|
|
23403
23403
|
return n ? f("div", {
|
|
23404
23404
|
className: "flex items-center",
|
|
23405
23405
|
children: f(F7, {
|
|
@@ -23455,7 +23455,7 @@ const Cb = ({ className: t, disabled: e }) => {
|
|
|
23455
23455
|
})
|
|
23456
23456
|
})
|
|
23457
23457
|
}) : null;
|
|
23458
|
-
}, W6 = xe.create(
|
|
23458
|
+
}, W6 = xe.create(je), U6 = {
|
|
23459
23459
|
initial: {
|
|
23460
23460
|
scale: 1
|
|
23461
23461
|
},
|
|
@@ -23523,7 +23523,7 @@ const Cb = ({ className: t, disabled: e }) => {
|
|
|
23523
23523
|
Ae(() => {
|
|
23524
23524
|
m(null), h("idle");
|
|
23525
23525
|
}, [t]);
|
|
23526
|
-
const w =
|
|
23526
|
+
const w = Ze(async () => {
|
|
23527
23527
|
try {
|
|
23528
23528
|
h("fetching");
|
|
23529
23529
|
const k = await n();
|
|
@@ -23693,7 +23693,7 @@ const Cb = ({ className: t, disabled: e }) => {
|
|
|
23693
23693
|
}), f(Te, {
|
|
23694
23694
|
variant: "outline",
|
|
23695
23695
|
size: "sm",
|
|
23696
|
-
icon:
|
|
23696
|
+
icon: Ts,
|
|
23697
23697
|
label: t,
|
|
23698
23698
|
hideLabel: !0,
|
|
23699
23699
|
onClick: n
|
|
@@ -23719,7 +23719,7 @@ const Cb = ({ className: t, disabled: e }) => {
|
|
|
23719
23719
|
}), kK = ({ title: t, buttonText: e, buttonUrl: n, description: i }) => f(_b, {
|
|
23720
23720
|
title: t,
|
|
23721
23721
|
description: i,
|
|
23722
|
-
icon: f(
|
|
23722
|
+
icon: f(je, {
|
|
23723
23723
|
icon: R3,
|
|
23724
23724
|
size: "lg",
|
|
23725
23725
|
className: "block"
|
|
@@ -23734,7 +23734,7 @@ const Cb = ({ className: t, disabled: e }) => {
|
|
|
23734
23734
|
title: t,
|
|
23735
23735
|
description: e,
|
|
23736
23736
|
iconWrapperClassName: "text-f1-icon-critical bg-f1-background-critical border-f1-critical",
|
|
23737
|
-
icon: f(
|
|
23737
|
+
icon: f(je, {
|
|
23738
23738
|
icon: Km,
|
|
23739
23739
|
size: "lg"
|
|
23740
23740
|
}),
|
|
@@ -24174,7 +24174,7 @@ Io.Header = EK;
|
|
|
24174
24174
|
Io.Content = QG;
|
|
24175
24175
|
Io.Footer = tK;
|
|
24176
24176
|
const LK = ({ onClose: t, onSubmit: e, reactionType: n, message: i }) => {
|
|
24177
|
-
const [r, s] = X(""), o =
|
|
24177
|
+
const [r, s] = X(""), o = Je(), { title: a, label: l, placeholder: c } = n === "like" ? o.ai.feedbackModal.positive : o.ai.feedbackModal.negative, d = Ze(() => {
|
|
24178
24178
|
e(i, r);
|
|
24179
24179
|
}, [r, i, e]), u = () => {
|
|
24180
24180
|
t(i);
|
|
@@ -24221,7 +24221,7 @@ const LK = ({ onClose: t, onSubmit: e, reactionType: n, message: i }) => {
|
|
|
24221
24221
|
})]
|
|
24222
24222
|
});
|
|
24223
24223
|
}, TK = ({ messages: t }) => {
|
|
24224
|
-
const e =
|
|
24224
|
+
const e = Je();
|
|
24225
24225
|
return f(gk, {
|
|
24226
24226
|
icon: Bx,
|
|
24227
24227
|
title: e.ai.thoughtsGroupTitle,
|
|
@@ -24380,15 +24380,16 @@ const MK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
24380
24380
|
delay: 0.9 + o * 0.1
|
|
24381
24381
|
}
|
|
24382
24382
|
},
|
|
24383
|
-
children: f(
|
|
24384
|
-
|
|
24385
|
-
|
|
24386
|
-
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24383
|
+
children: f("div", {
|
|
24384
|
+
children: f(Ft, {
|
|
24385
|
+
variant: "ghost",
|
|
24386
|
+
label: s.message,
|
|
24387
|
+
icon: s.icon,
|
|
24388
|
+
onClick: () => i({
|
|
24389
|
+
id: kx(),
|
|
24390
|
+
role: "user",
|
|
24391
|
+
content: s.prompt || s.message
|
|
24392
|
+
})
|
|
24392
24393
|
})
|
|
24393
24394
|
})
|
|
24394
24395
|
}, o))
|
|
@@ -24400,7 +24401,7 @@ const MK = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
24400
24401
|
...t
|
|
24401
24402
|
})
|
|
24402
24403
|
}), FK = ({ inProgress: t, children: e, RenderMessage: n, AssistantMessage: i, UserMessage: r, ImageRenderer: s, onRegenerate: o, onCopy: a, markdownTagRenderers: l }) => {
|
|
24403
|
-
const c = Ce(null), { messages: d, interrupt: u } = Dl(), { threadId: h } = qM(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = Yw(), y =
|
|
24404
|
+
const c = Ce(null), { messages: d, interrupt: u } = Dl(), { threadId: h } = qM(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = Yw(), y = Je(), { greeting: b, initialMessage: w, welcomeScreenSuggestions: k, onThumbsUp: C, onThumbsDown: S } = Ur(), E = ke(() => DK(w || y.ai.defaultInitialMessage), [w, y.ai.defaultInitialMessage]), T = d.length == 0 && (b || E.length > 0), { messagesContainerRef: _, messagesEndRef: L, showScrollToBottom: M, scrollToBottom: N } = IK(), { height: O = 0 } = w1({
|
|
24404
24405
|
ref: _,
|
|
24405
24406
|
box: "border-box"
|
|
24406
24407
|
}), j = ke(() => RK(d), [d]);
|
|
@@ -24527,7 +24528,7 @@ function IK() {
|
|
|
24527
24528
|
}
|
|
24528
24529
|
const { scrollTop: d, scrollHeight: u, clientHeight: h } = e.current, p = d < u - 3 * h;
|
|
24529
24530
|
s(p);
|
|
24530
|
-
}, c =
|
|
24531
|
+
}, c = Ze(() => {
|
|
24531
24532
|
if (n.current) {
|
|
24532
24533
|
n.current = !1;
|
|
24533
24534
|
return;
|
|
@@ -24592,13 +24593,13 @@ function K6(t) {
|
|
|
24592
24593
|
}
|
|
24593
24594
|
const BK = (t) => GP[t] || Xm, HK = ({ iconName: t }) => t ? f("div", {
|
|
24594
24595
|
className: "mr-1 flex items-center justify-center",
|
|
24595
|
-
children: f(
|
|
24596
|
+
children: f(je, {
|
|
24596
24597
|
icon: BK(t),
|
|
24597
24598
|
size: "md",
|
|
24598
24599
|
color: "default"
|
|
24599
24600
|
})
|
|
24600
24601
|
}) : null, $K = ({ sources: t }) => {
|
|
24601
|
-
const e =
|
|
24602
|
+
const e = Je();
|
|
24602
24603
|
return !t || t.length === 0 || !Array.isArray(t) ? null : f(gk, {
|
|
24603
24604
|
icon: d0,
|
|
24604
24605
|
title: e.ai.resourcesGroupTitle,
|
|
@@ -24744,12 +24745,12 @@ const BK = (t) => GP[t] || Xm, HK = ({ iconName: t }) => t ? f("div", {
|
|
|
24744
24745
|
sources: r.args.sources || []
|
|
24745
24746
|
})
|
|
24746
24747
|
});
|
|
24747
|
-
const i = ({ ...r }) => f("div", {
|
|
24748
|
+
const i = Ze(({ ...r }) => f("div", {
|
|
24748
24749
|
className: "m-3 mt-2",
|
|
24749
24750
|
children: f(pG, {
|
|
24750
24751
|
...r
|
|
24751
24752
|
})
|
|
24752
|
-
});
|
|
24753
|
+
}), []);
|
|
24753
24754
|
return t ? f(JM, {
|
|
24754
24755
|
className: F("h-full", e && "py-1 xs:pr-1"),
|
|
24755
24756
|
defaultOpen: e,
|
|
@@ -24766,7 +24767,7 @@ const BK = (t) => GP[t] || Xm, HK = ({ iconName: t }) => t ? f("div", {
|
|
|
24766
24767
|
RenderSuggestionsList: VK
|
|
24767
24768
|
}) : null;
|
|
24768
24769
|
}, KK = ha("AiChat", GK), ZK = ha("AiChatProvider", jK), JK = () => {
|
|
24769
|
-
const t =
|
|
24770
|
+
const t = Je();
|
|
24770
24771
|
return x(xe.div, {
|
|
24771
24772
|
className: F("relative isolate m-3 mt-2 flex flex-col gap-3 rounded-lg border border-solid border-f1-border", "after:pointer-events-none after:absolute after:inset-0.5 after:z-[-2] after:rounded-[inherit] after:bg-f1-foreground-secondary after:opacity-0 after:blur-[5px] after:content-['']", "from-[#E55619] via-[#A1ADE5] to-[#E51943] after:scale-90 after:bg-[conic-gradient(from_var(--gradient-angle),var(--tw-gradient-stops))]", "after:transition-all after:delay-200 after:duration-300", "before:bg-white before:pointer-events-none before:absolute before:inset-0 before:z-[-1] before:rounded-[inherit] before:content-['']"),
|
|
24772
24773
|
animate: {
|
|
@@ -24960,7 +24961,7 @@ const BK = (t) => GP[t] || Xm, HK = ({ iconName: t }) => t ? f("div", {
|
|
|
24960
24961
|
className: "flex flex-col gap-2",
|
|
24961
24962
|
children: r.map((c, d) => x("li", {
|
|
24962
24963
|
className: "flex items-center gap-1",
|
|
24963
|
-
children: [f(
|
|
24964
|
+
children: [f(Ls, {
|
|
24964
24965
|
className: "h-5 w-5 flex-shrink-0"
|
|
24965
24966
|
}), x("span", {
|
|
24966
24967
|
className: "text-md text-f1-foreground",
|
|
@@ -26201,7 +26202,7 @@ const FJ = {
|
|
|
26201
26202
|
name: "protocolAutolink",
|
|
26202
26203
|
tokenize: BJ,
|
|
26203
26204
|
previous: Kb
|
|
26204
|
-
},
|
|
26205
|
+
}, Ns = {
|
|
26205
26206
|
name: "emailAutolink",
|
|
26206
26207
|
tokenize: RJ,
|
|
26207
26208
|
previous: Zb
|
|
@@ -26213,15 +26214,15 @@ function IJ() {
|
|
|
26213
26214
|
}
|
|
26214
26215
|
let Eo = 48;
|
|
26215
26216
|
for (; Eo < 123; )
|
|
26216
|
-
qr[Eo] =
|
|
26217
|
-
qr[43] =
|
|
26218
|
-
qr[45] =
|
|
26219
|
-
qr[46] =
|
|
26220
|
-
qr[95] =
|
|
26221
|
-
qr[72] = [
|
|
26222
|
-
qr[104] = [
|
|
26223
|
-
qr[87] = [
|
|
26224
|
-
qr[119] = [
|
|
26217
|
+
qr[Eo] = Ns, Eo++, Eo === 58 ? Eo = 65 : Eo === 91 && (Eo = 97);
|
|
26218
|
+
qr[43] = Ns;
|
|
26219
|
+
qr[45] = Ns;
|
|
26220
|
+
qr[46] = Ns;
|
|
26221
|
+
qr[95] = Ns;
|
|
26222
|
+
qr[72] = [Ns, qb];
|
|
26223
|
+
qr[104] = [Ns, qb];
|
|
26224
|
+
qr[87] = [Ns, Ub];
|
|
26225
|
+
qr[119] = [Ns, Ub];
|
|
26225
26226
|
function RJ(t, e, n) {
|
|
26226
26227
|
const i = this;
|
|
26227
26228
|
let r, s;
|
|
@@ -26532,7 +26533,7 @@ function ZJ(t, e, n) {
|
|
|
26532
26533
|
return m === 91 || m === 92 || m === 93 ? (t.consume(m), o++, d) : d(m);
|
|
26533
26534
|
}
|
|
26534
26535
|
function h(m) {
|
|
26535
|
-
return m === 58 ? (t.enter("definitionMarker"), t.consume(m), t.exit("definitionMarker"), r.includes(s) || r.push(s),
|
|
26536
|
+
return m === 58 ? (t.enter("definitionMarker"), t.consume(m), t.exit("definitionMarker"), r.includes(s) || r.push(s), $s(t, p, "gfmFootnoteDefinitionWhitespace")) : n(m);
|
|
26536
26537
|
}
|
|
26537
26538
|
function p(m) {
|
|
26538
26539
|
return e(m);
|
|
@@ -26546,7 +26547,7 @@ function XJ(t) {
|
|
|
26546
26547
|
}
|
|
26547
26548
|
function YJ(t, e, n) {
|
|
26548
26549
|
const i = this;
|
|
26549
|
-
return
|
|
26550
|
+
return $s(t, r, "gfmFootnoteDefinitionIndent", 5);
|
|
26550
26551
|
function r(s) {
|
|
26551
26552
|
const o = i.events[i.events.length - 1];
|
|
26552
26553
|
return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? e(s) : n(s);
|
|
@@ -26734,7 +26735,7 @@ function rX(t, e, n) {
|
|
|
26734
26735
|
return L === 124 || (o = !0, s += 1), d(L);
|
|
26735
26736
|
}
|
|
26736
26737
|
function d(L) {
|
|
26737
|
-
return L === null ? n(L) : fc(L) ? s > 1 ? (s = 0, i.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(L), t.exit("lineEnding"), p) : n(L) : Da(L) ?
|
|
26738
|
+
return L === null ? n(L) : fc(L) ? s > 1 ? (s = 0, i.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(L), t.exit("lineEnding"), p) : n(L) : Da(L) ? $s(t, d, "whitespace")(L) : (s += 1, o && (o = !1, r += 1), L === 124 ? (t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"), o = !0, d) : (t.enter("data"), u(L)));
|
|
26738
26739
|
}
|
|
26739
26740
|
function u(L) {
|
|
26740
26741
|
return L === null || L === 124 || Di(L) ? (t.exit("data"), d(L)) : (t.consume(L), L === 92 ? h : u);
|
|
@@ -26743,13 +26744,13 @@ function rX(t, e, n) {
|
|
|
26743
26744
|
return L === 92 || L === 124 ? (t.consume(L), u) : u(L);
|
|
26744
26745
|
}
|
|
26745
26746
|
function p(L) {
|
|
26746
|
-
return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(L) : (t.enter("tableDelimiterRow"), o = !1, Da(L) ?
|
|
26747
|
+
return i.interrupt = !1, i.parser.lazy[i.now().line] ? n(L) : (t.enter("tableDelimiterRow"), o = !1, Da(L) ? $s(t, m, "linePrefix", i.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : m(L));
|
|
26747
26748
|
}
|
|
26748
26749
|
function m(L) {
|
|
26749
26750
|
return L === 45 || L === 58 ? v(L) : L === 124 ? (o = !0, t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"), g) : C(L);
|
|
26750
26751
|
}
|
|
26751
26752
|
function g(L) {
|
|
26752
|
-
return Da(L) ?
|
|
26753
|
+
return Da(L) ? $s(t, v, "whitespace")(L) : v(L);
|
|
26753
26754
|
}
|
|
26754
26755
|
function v(L) {
|
|
26755
26756
|
return L === 58 ? (s += 1, o = !0, t.enter("tableDelimiterMarker"), t.consume(L), t.exit("tableDelimiterMarker"), y) : L === 45 ? (s += 1, y(L)) : L === null || fc(L) ? k(L) : C(L);
|
|
@@ -26761,7 +26762,7 @@ function rX(t, e, n) {
|
|
|
26761
26762
|
return L === 45 ? (t.consume(L), b) : L === 58 ? (o = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(L), t.exit("tableDelimiterMarker"), w) : (t.exit("tableDelimiterFiller"), w(L));
|
|
26762
26763
|
}
|
|
26763
26764
|
function w(L) {
|
|
26764
|
-
return Da(L) ?
|
|
26765
|
+
return Da(L) ? $s(t, k, "whitespace")(L) : k(L);
|
|
26765
26766
|
}
|
|
26766
26767
|
function k(L) {
|
|
26767
26768
|
return L === 124 ? m(L) : L === null || fc(L) ? !o || r !== s ? C(L) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), e(L)) : C(L);
|
|
@@ -26773,7 +26774,7 @@ function rX(t, e, n) {
|
|
|
26773
26774
|
return t.enter("tableRow"), E(L);
|
|
26774
26775
|
}
|
|
26775
26776
|
function E(L) {
|
|
26776
|
-
return L === 124 ? (t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"), E) : L === null || fc(L) ? (t.exit("tableRow"), e(L)) : Da(L) ?
|
|
26777
|
+
return L === 124 ? (t.enter("tableCellDivider"), t.consume(L), t.exit("tableCellDivider"), E) : L === null || fc(L) ? (t.exit("tableRow"), e(L)) : Da(L) ? $s(t, E, "whitespace")(L) : (t.enter("data"), T(L));
|
|
26777
26778
|
}
|
|
26778
26779
|
function T(L) {
|
|
26779
26780
|
return L === null || L === 124 || Di(L) ? (t.exit("data"), E(L)) : (t.consume(L), L === 92 ? _ : T);
|
|
@@ -26874,7 +26875,7 @@ function lX(t, e, n) {
|
|
|
26874
26875
|
}
|
|
26875
26876
|
}
|
|
26876
26877
|
function cX(t, e, n) {
|
|
26877
|
-
return
|
|
26878
|
+
return $s(t, i, "whitespace");
|
|
26878
26879
|
function i(r) {
|
|
26879
26880
|
return r === null ? n(r) : e(r);
|
|
26880
26881
|
}
|
|
@@ -27027,7 +27028,7 @@ const tv = Kt(Jb, vX), Xb = Rn({
|
|
|
27027
27028
|
className: "flex flex-row items-center justify-between px-4 py-2",
|
|
27028
27029
|
children: [x("div", {
|
|
27029
27030
|
className: F("flex flex-row items-center gap-2", iv[s]),
|
|
27030
|
-
children: [nv[s] && f(
|
|
27031
|
+
children: [nv[s] && f(je, {
|
|
27031
27032
|
icon: nv[s],
|
|
27032
27033
|
size: "sm",
|
|
27033
27034
|
"aria-hidden": !0
|
|
@@ -27146,7 +27147,7 @@ const H3e = Kt(Yb, kX), wX = ({ data: t, dataConfig: e, scaleMin: n, scaleMax: i
|
|
|
27146
27147
|
})
|
|
27147
27148
|
});
|
|
27148
27149
|
}, $3e = yN(ha("RadarChart", wX)), bX = xe.create(O4), CX = () => {
|
|
27149
|
-
const t =
|
|
27150
|
+
const t = Je();
|
|
27150
27151
|
return x("div", {
|
|
27151
27152
|
className: "absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
|
|
27152
27153
|
children: [f(bX, {
|
|
@@ -27289,7 +27290,7 @@ function LX({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
27289
27290
|
}
|
|
27290
27291
|
} : S);
|
|
27291
27292
|
r(C);
|
|
27292
|
-
}, c =
|
|
27293
|
+
}, c = Ze(({ element: w, afterId: k }) => {
|
|
27293
27294
|
const C = [...t];
|
|
27294
27295
|
if (!k) {
|
|
27295
27296
|
C.push(w), r(C);
|
|
@@ -27313,7 +27314,7 @@ function LX({ elements: t, children: e, isEditMode: n, disallowOptionalQuestions
|
|
|
27313
27314
|
}
|
|
27314
27315
|
});
|
|
27315
27316
|
}), r(C);
|
|
27316
|
-
}, [t, r]), d =
|
|
27317
|
+
}, [t, r]), d = Ze(({ type: w, afterId: k }) => {
|
|
27317
27318
|
const C = kd(w === "section" ? "section" : "question"), S = EX(s), E = w === "section" ? {
|
|
27318
27319
|
type: "section",
|
|
27319
27320
|
section: {
|
|
@@ -27446,7 +27447,7 @@ function D0() {
|
|
|
27446
27447
|
};
|
|
27447
27448
|
}
|
|
27448
27449
|
const B4 = () => {
|
|
27449
|
-
const { isQuestionTypeAllowed: t } = Bi(), { t: e } =
|
|
27450
|
+
const { isQuestionTypeAllowed: t } = Bi(), { t: e } = Je();
|
|
27450
27451
|
return [
|
|
27451
27452
|
{
|
|
27452
27453
|
label: e("coCreationForm.questionTypes.rating"),
|
|
@@ -27460,7 +27461,7 @@ const B4 = () => {
|
|
|
27460
27461
|
},
|
|
27461
27462
|
{
|
|
27462
27463
|
label: e("coCreationForm.questionTypes.singleChoice"),
|
|
27463
|
-
icon:
|
|
27464
|
+
icon: Ls,
|
|
27464
27465
|
questionType: "select"
|
|
27465
27466
|
},
|
|
27466
27467
|
{
|
|
@@ -27488,7 +27489,7 @@ const B4 = () => {
|
|
|
27488
27489
|
},
|
|
27489
27490
|
children: x("div", {
|
|
27490
27491
|
className: "flex w-full flex-row items-center gap-2",
|
|
27491
|
-
children: [f(
|
|
27492
|
+
children: [f(Qs, {
|
|
27492
27493
|
icon: e,
|
|
27493
27494
|
color: "default"
|
|
27494
27495
|
}), f("span", {
|
|
@@ -27509,7 +27510,7 @@ const B4 = () => {
|
|
|
27509
27510
|
className: "px-3 py-2",
|
|
27510
27511
|
children: x("div", {
|
|
27511
27512
|
className: "flex w-full flex-row items-center gap-2",
|
|
27512
|
-
children: [f(
|
|
27513
|
+
children: [f(Qs, {
|
|
27513
27514
|
icon: i,
|
|
27514
27515
|
color: "default"
|
|
27515
27516
|
}), f("span", {
|
|
@@ -27526,14 +27527,14 @@ const B4 = () => {
|
|
|
27526
27527
|
onClick: () => r(a.value),
|
|
27527
27528
|
children: x("div", {
|
|
27528
27529
|
className: "flex w-full flex-row items-center gap-2",
|
|
27529
|
-
children: [f(
|
|
27530
|
+
children: [f(Qs, {
|
|
27530
27531
|
icon: a.icon,
|
|
27531
27532
|
color: "default"
|
|
27532
27533
|
}), f("span", {
|
|
27533
27534
|
className: "flex-1",
|
|
27534
27535
|
children: a.label
|
|
27535
|
-
}), e === a.value && f(
|
|
27536
|
-
icon:
|
|
27536
|
+
}), e === a.value && f(Qs, {
|
|
27537
|
+
icon: Ls,
|
|
27537
27538
|
color: "default"
|
|
27538
27539
|
})]
|
|
27539
27540
|
})
|
|
@@ -27546,7 +27547,7 @@ const B4 = () => {
|
|
|
27546
27547
|
className: F(i ? "text-f1-foreground-critical" : void 0),
|
|
27547
27548
|
children: x("div", {
|
|
27548
27549
|
className: "flex w-full flex-row items-center gap-2",
|
|
27549
|
-
children: [f(
|
|
27550
|
+
children: [f(Qs, {
|
|
27550
27551
|
icon: e,
|
|
27551
27552
|
color: i ? "critical" : "default"
|
|
27552
27553
|
}), f("span", {
|
|
@@ -27556,7 +27557,7 @@ const B4 = () => {
|
|
|
27556
27557
|
})
|
|
27557
27558
|
});
|
|
27558
27559
|
function NX({ open: t, setOpen: e, questionId: n, questionType: i, canDeleteQuestion: r = !0 }) {
|
|
27559
|
-
const { t: s } =
|
|
27560
|
+
const { t: s } = Je(), { onQuestionChange: o, getQuestionById: a, deleteElement: l, onDuplicateElement: c, disallowOptionalQuestions: d } = Bi(), u = ke(() => a(n), [n, a]), h = B4(), p = (y) => {
|
|
27560
27561
|
o == null || o({
|
|
27561
27562
|
id: n,
|
|
27562
27563
|
type: i,
|
|
@@ -27586,7 +27587,7 @@ function NX({ open: t, setOpen: e, questionId: n, questionType: i, canDeleteQues
|
|
|
27586
27587
|
tabIndex: -1,
|
|
27587
27588
|
asChild: !0,
|
|
27588
27589
|
children: f(Te, {
|
|
27589
|
-
icon:
|
|
27590
|
+
icon: ks,
|
|
27590
27591
|
label: s("coCreationForm.labels.actions"),
|
|
27591
27592
|
size: "md",
|
|
27592
27593
|
variant: "ghost",
|
|
@@ -27635,7 +27636,7 @@ function NX({ open: t, setOpen: e, questionId: n, questionType: i, canDeleteQues
|
|
|
27635
27636
|
const av = {
|
|
27636
27637
|
fieldSizing: "content"
|
|
27637
27638
|
}, jl = ({ id: t, title: e, description: n, children: i, required: r, locked: s, type: o }) => {
|
|
27638
|
-
const { onQuestionChange: a, onAddNewElement: l, isEditMode: c, getIsSingleQuestionInSection: d, getSectionContainingQuestion: u } = Bi(), h = u(t), p = (h == null ? void 0 : h.locked) || s, m = !!h, [g, v] = X(!1), [y, b] = X(!1), { isDragging: w } = D0(), { t: k } =
|
|
27639
|
+
const { onQuestionChange: a, onAddNewElement: l, isEditMode: c, getIsSingleQuestionInSection: d, getSectionContainingQuestion: u } = Bi(), h = u(t), p = (h == null ? void 0 : h.locked) || s, m = !!h, [g, v] = X(!1), [y, b] = X(!1), { isDragging: w } = D0(), { t: k } = Je(), C = (O) => {
|
|
27639
27640
|
a == null || a({
|
|
27640
27641
|
id: t,
|
|
27641
27642
|
type: o,
|
|
@@ -27726,7 +27727,7 @@ const av = {
|
|
|
27726
27727
|
})]
|
|
27727
27728
|
});
|
|
27728
27729
|
}, MX = ({ value: t, ...e }) => {
|
|
27729
|
-
const { onQuestionChange: n, isEditMode: i } = Bi(), { t: r } =
|
|
27730
|
+
const { onQuestionChange: n, isEditMode: i } = Bi(), { t: r } = Je(), s = (a) => {
|
|
27730
27731
|
var l;
|
|
27731
27732
|
i || n == null || n({
|
|
27732
27733
|
...e,
|
|
@@ -27758,7 +27759,7 @@ const av = {
|
|
|
27758
27759
|
})
|
|
27759
27760
|
});
|
|
27760
27761
|
}, OX = ({ value: t, ...e }) => {
|
|
27761
|
-
const { t: n } =
|
|
27762
|
+
const { t: n } = Je(), { onQuestionChange: i, isEditMode: r } = Bi();
|
|
27762
27763
|
return f(jl, {
|
|
27763
27764
|
...e,
|
|
27764
27765
|
children: f("div", {
|
|
@@ -27791,7 +27792,7 @@ const av = {
|
|
|
27791
27792
|
...e
|
|
27792
27793
|
});
|
|
27793
27794
|
}, IX = ha("NumberInput", DX), RX = ({ value: t, ...e }) => {
|
|
27794
|
-
const { t: n } =
|
|
27795
|
+
const { t: n } = Je(), { onQuestionChange: i, isEditMode: r } = Bi();
|
|
27795
27796
|
return f(jl, {
|
|
27796
27797
|
...e,
|
|
27797
27798
|
children: f("div", {
|
|
@@ -27852,7 +27853,7 @@ const av = {
|
|
|
27852
27853
|
}), $X = {
|
|
27853
27854
|
fieldSizing: "content"
|
|
27854
27855
|
}, VX = ({ index: t, option: e, selected: n, onClick: i, onClickAction: r, onChangeLabel: s, isEditMode: o, correct: a, locked: l }) => {
|
|
27855
|
-
const { value: c, label: d } = e, { isDragging: u, setIsDragging: h, setDraggedItemId: p, draggedItemId: m } = D0(), { t: g } =
|
|
27856
|
+
const { value: c, label: d } = e, { isDragging: u, setIsDragging: h, setDraggedItemId: p, draggedItemId: m } = D0(), { t: g } = Je(), v = u && m === c, y = () => {
|
|
27856
27857
|
o || i(c);
|
|
27857
27858
|
}, b = (L) => {
|
|
27858
27859
|
r({
|
|
@@ -27900,7 +27901,7 @@ const av = {
|
|
|
27900
27901
|
className: F("hidden scale-75 cursor-grab", _ && "active:cursor-grabbing", T && "group-hover:block", u && "cursor-grabbing", !_ && "cursor-not-allowed"),
|
|
27901
27902
|
children: f("div", {
|
|
27902
27903
|
className: "flex aspect-square w-6 scale-90 items-center justify-center",
|
|
27903
|
-
children: f(
|
|
27904
|
+
children: f(Qs, {
|
|
27904
27905
|
icon: da,
|
|
27905
27906
|
size: "sm"
|
|
27906
27907
|
})
|
|
@@ -27938,7 +27939,7 @@ const av = {
|
|
|
27938
27939
|
})
|
|
27939
27940
|
});
|
|
27940
27941
|
}, zX = ({ options: t, ...e }) => {
|
|
27941
|
-
const { onQuestionChange: n, isEditMode: i, getSectionContainingQuestion: r } = Bi(), s = new Set(t.map((g) => g.value)).size !== t.length, o = r(e.id), a = e.locked || (o == null ? void 0 : o.locked), { t: l } =
|
|
27942
|
+
const { onQuestionChange: n, isEditMode: i, getSectionContainingQuestion: r } = Bi(), s = new Set(t.map((g) => g.value)).size !== t.length, o = r(e.id), a = e.locked || (o == null ? void 0 : o.locked), { t: l } = Je(), c = ke(() => ({
|
|
27942
27943
|
id: e.id,
|
|
27943
27944
|
type: e.type,
|
|
27944
27945
|
options: t
|
|
@@ -28092,7 +28093,7 @@ const jX = Pi({
|
|
|
28092
28093
|
name: "Textarea",
|
|
28093
28094
|
type: "form"
|
|
28094
28095
|
}, tC), WX = ({ value: t, ...e }) => {
|
|
28095
|
-
const { onQuestionChange: n, isEditMode: i } = Bi(), { t: r } =
|
|
28096
|
+
const { onQuestionChange: n, isEditMode: i } = Bi(), { t: r } = Je(), s = (c) => {
|
|
28096
28097
|
i || n == null || n({
|
|
28097
28098
|
...e,
|
|
28098
28099
|
value: c
|
|
@@ -28172,7 +28173,7 @@ const jX = Pi({
|
|
|
28172
28173
|
},
|
|
28173
28174
|
children: [!!r && f("div", {
|
|
28174
28175
|
className: F("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/question-element:opacity-40", !e && "cursor-grab", !d && "cursor-not-allowed"),
|
|
28175
|
-
children: f(
|
|
28176
|
+
children: f(je, {
|
|
28176
28177
|
icon: da,
|
|
28177
28178
|
size: "sm"
|
|
28178
28179
|
})
|
|
@@ -28184,7 +28185,7 @@ const jX = Pi({
|
|
|
28184
28185
|
}, qX = {
|
|
28185
28186
|
fieldSizing: "content"
|
|
28186
28187
|
}, GX = ({ id: t, title: e, description: n, questions: i = [], locked: r }) => {
|
|
28187
|
-
const { onSectionChange: s, isEditMode: o, deleteElement: a, onDuplicateElement: l } = Bi(), [c, d] = X(!1), { t: u } =
|
|
28188
|
+
const { onSectionChange: s, isEditMode: o, deleteElement: a, onDuplicateElement: l } = Bi(), [c, d] = X(!1), { t: u } = Je(), h = ke(() => ({
|
|
28188
28189
|
id: t,
|
|
28189
28190
|
title: e,
|
|
28190
28191
|
description: n
|
|
@@ -28239,12 +28240,12 @@ const jX = Pi({
|
|
|
28239
28240
|
className: F("opacity-0 group-hover/section:opacity-100", c && "opacity-100"),
|
|
28240
28241
|
children: f(hn, {
|
|
28241
28242
|
items: b,
|
|
28242
|
-
icon:
|
|
28243
|
+
icon: ks,
|
|
28243
28244
|
open: c,
|
|
28244
28245
|
onOpenChange: d,
|
|
28245
28246
|
align: "start",
|
|
28246
28247
|
children: f(Te, {
|
|
28247
|
-
icon:
|
|
28248
|
+
icon: ks,
|
|
28248
28249
|
label: u("coCreationForm.actions.actions"),
|
|
28249
28250
|
size: "md",
|
|
28250
28251
|
variant: "ghost",
|
|
@@ -28288,7 +28289,7 @@ const jX = Pi({
|
|
|
28288
28289
|
})]
|
|
28289
28290
|
});
|
|
28290
28291
|
}, KX = () => {
|
|
28291
|
-
const { isEditMode: t, onAddNewElement: e, lastElementId: n } = Bi(), i = B4(), { t: r } =
|
|
28292
|
+
const { isEditMode: t, onAddNewElement: e, lastElementId: n } = Bi(), i = B4(), { t: r } = Je(), s = (l) => {
|
|
28292
28293
|
e == null || e({
|
|
28293
28294
|
type: l,
|
|
28294
28295
|
afterId: n
|
|
@@ -28336,7 +28337,7 @@ const jX = Pi({
|
|
|
28336
28337
|
className: F("group/element flex flex-row items-start gap-1", e && "cursor-grabbing", !d && "cursor-not-allowed"),
|
|
28337
28338
|
children: [!!r && f("div", {
|
|
28338
28339
|
className: F("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/element:opacity-40", !e && "cursor-grab", !d && "cursor-not-allowed"),
|
|
28339
|
-
children: f(
|
|
28340
|
+
children: f(je, {
|
|
28340
28341
|
icon: da,
|
|
28341
28342
|
size: "sm"
|
|
28342
28343
|
})
|
|
@@ -28443,7 +28444,7 @@ const XX = (t) => Array.isArray(t) ? t.every((e) => JX(e)) ? t : [{
|
|
|
28443
28444
|
description: u.description,
|
|
28444
28445
|
disabled: u.disabled
|
|
28445
28446
|
}))
|
|
28446
|
-
})), [o]), l = ke(() => o.length === 1 && o[0].items.length === 1 ? o[0].items[0] : null, [o]), c =
|
|
28447
|
+
})), [o]), l = ke(() => o.length === 1 && o[0].items.length === 1 ? o[0].items[0] : null, [o]), c = Ze((d) => o.flatMap((u) => u.items).find((u) => u.label === d), [o]);
|
|
28447
28448
|
return f(ut, {
|
|
28448
28449
|
children: t && x(xe.div, {
|
|
28449
28450
|
initial: {
|
|
@@ -28481,7 +28482,7 @@ const XX = (t) => Array.isArray(t) ? t.every((e) => JX(e)) ? t : [{
|
|
|
28481
28482
|
onClick: l.onClick,
|
|
28482
28483
|
disabled: l.disabled,
|
|
28483
28484
|
size: "lg"
|
|
28484
|
-
}) : f(
|
|
28485
|
+
}) : f(ws, {
|
|
28485
28486
|
items: a,
|
|
28486
28487
|
onClick: (d) => {
|
|
28487
28488
|
var h;
|
|
@@ -28508,7 +28509,7 @@ const XX = (t) => Array.isArray(t) ? t.every((e) => JX(e)) ? t : [{
|
|
|
28508
28509
|
onClick: l.onClick,
|
|
28509
28510
|
disabled: l.disabled
|
|
28510
28511
|
}) : f(Ke, {
|
|
28511
|
-
children: f(
|
|
28512
|
+
children: f(ws, {
|
|
28512
28513
|
items: a,
|
|
28513
28514
|
onClick: (d) => {
|
|
28514
28515
|
var h;
|
|
@@ -28531,7 +28532,7 @@ function YX({ title: t, isActive: e = !1, onClick: n }) {
|
|
|
28531
28532
|
disabled: !n,
|
|
28532
28533
|
"aria-label": `${t}${e ? " (selected)" : ""}`,
|
|
28533
28534
|
"aria-pressed": n ? e : void 0,
|
|
28534
|
-
children: [f(
|
|
28535
|
+
children: [f(je, {
|
|
28535
28536
|
icon: Sx,
|
|
28536
28537
|
size: "md",
|
|
28537
28538
|
color: "selected"
|
|
@@ -28705,7 +28706,7 @@ const eY = ({ entity: t, selected: e, onSelect: n, onRemove: i, marginLeft: r, s
|
|
|
28705
28706
|
onClick: m,
|
|
28706
28707
|
onKeyDown: g,
|
|
28707
28708
|
className: F("pointer-events-none ml-auto", l ? "opacity-0" : "")
|
|
28708
|
-
}), l && e && f(
|
|
28709
|
+
}), l && e && f(je, {
|
|
28709
28710
|
className: "text-f1-icon-selected",
|
|
28710
28711
|
icon: c0,
|
|
28711
28712
|
size: "md"
|
|
@@ -28765,7 +28766,7 @@ const eY = ({ entity: t, selected: e, onSelect: n, onRemove: i, marginLeft: r, s
|
|
|
28765
28766
|
b(!0);
|
|
28766
28767
|
},
|
|
28767
28768
|
className: "flex flex-1 flex-row items-center gap-2 rounded-[10px] border px-2 py-1.5 focus-within:outline focus-within:outline-1 focus-within:-outline-offset-1 focus-within:outline-f1-border-selected-bold hover:cursor-pointer hover:bg-f1-background-hover",
|
|
28768
|
-
children: [p && f(
|
|
28769
|
+
children: [p && f(je, {
|
|
28769
28770
|
icon: Hx,
|
|
28770
28771
|
className: "rounded-xs bg-f1-foreground-secondary text-f1-foreground-inverse"
|
|
28771
28772
|
}), x("div", {
|
|
@@ -28843,7 +28844,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28843
28844
|
const a = n.find((c) => c.label === o);
|
|
28844
28845
|
a && !a.disabled && ((l = a.onClick) == null || l.call(a));
|
|
28845
28846
|
}, s = n.every((o) => o.disabled);
|
|
28846
|
-
return f(
|
|
28847
|
+
return f(ws, {
|
|
28847
28848
|
items: i,
|
|
28848
28849
|
value: t.label,
|
|
28849
28850
|
disabled: s,
|
|
@@ -28893,7 +28894,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28893
28894
|
};
|
|
28894
28895
|
return x("div", {
|
|
28895
28896
|
className: "flex justify-between gap-1 rounded-[10px] border-[1px] border-solid border-f1-border px-2 py-[3px] transition-all focus-within:border-f1-border-hover hover:border-f1-border-hover",
|
|
28896
|
-
children: [f(
|
|
28897
|
+
children: [f(je, {
|
|
28897
28898
|
icon: uB,
|
|
28898
28899
|
size: "md"
|
|
28899
28900
|
}), f("input", {
|
|
@@ -28904,7 +28905,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28904
28905
|
placeholder: n,
|
|
28905
28906
|
value: t,
|
|
28906
28907
|
onChange: (a) => e(a.target.value)
|
|
28907
|
-
}), t && f(
|
|
28908
|
+
}), t && f(je, {
|
|
28908
28909
|
icon: sl,
|
|
28909
28910
|
size: "md",
|
|
28910
28911
|
onClick: () => e(""),
|
|
@@ -28915,7 +28916,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28915
28916
|
const N = we.useRef(null), O = ke(() => t ? e.reduce((Y, K) => {
|
|
28916
28917
|
var oe;
|
|
28917
28918
|
return Y + (((oe = K.subItems) == null ? void 0 : oe.length) ?? 0);
|
|
28918
|
-
}, 0) : e.length, [e, t]), j =
|
|
28919
|
+
}, 0) : e.length, [e, t]), j = Ze(() => {
|
|
28919
28920
|
setTimeout(() => {
|
|
28920
28921
|
var Y;
|
|
28921
28922
|
(Y = N.current) == null || Y.scrollTo({
|
|
@@ -28925,7 +28926,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28925
28926
|
var K;
|
|
28926
28927
|
(K = Array.from(document.querySelectorAll(dv))[0]) == null || K.focus();
|
|
28927
28928
|
}, fv);
|
|
28928
|
-
}, []), z =
|
|
28929
|
+
}, []), z = Ze(() => {
|
|
28929
28930
|
setTimeout(() => {
|
|
28930
28931
|
var Y, K;
|
|
28931
28932
|
(K = N.current) == null || K.scrollTo({
|
|
@@ -28936,7 +28937,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28936
28937
|
const Y = Array.from(document.querySelectorAll(dv));
|
|
28937
28938
|
(K = Y[Y.length - 1]) == null || K.focus();
|
|
28938
28939
|
}, fv);
|
|
28939
|
-
}, []), Z = ke(() => new Map(h.map((Y) => [Y.id, Y])), [h]), ae =
|
|
28940
|
+
}, []), Z = ke(() => new Map(h.map((Y) => [Y.id, Y])), [h]), ae = Ze((Y) => {
|
|
28940
28941
|
var Ue;
|
|
28941
28942
|
const K = Z.get(Y.id);
|
|
28942
28943
|
if (!t)
|
|
@@ -28952,7 +28953,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
28952
28953
|
selected: se,
|
|
28953
28954
|
partialSelected: ge
|
|
28954
28955
|
};
|
|
28955
|
-
}, [t, Z]), me =
|
|
28956
|
+
}, [t, Z]), me = Ze((Y) => {
|
|
28956
28957
|
if (Y.index === 0 && S)
|
|
28957
28958
|
return f(lv, {
|
|
28958
28959
|
label: E ?? "",
|
|
@@ -29005,7 +29006,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
29005
29006
|
subAvatar: Y.avatar,
|
|
29006
29007
|
subSearchKeys: Y.searchKeys
|
|
29007
29008
|
}
|
|
29008
|
-
})), [t, e, h]), _e =
|
|
29009
|
+
})), [t, e, h]), _e = Ze((Y) => {
|
|
29009
29010
|
var Ue, nt;
|
|
29010
29011
|
if (Y.index === 0 && S)
|
|
29011
29012
|
return f(lv, {
|
|
@@ -29185,7 +29186,7 @@ const lv = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => f("div", {
|
|
|
29185
29186
|
size: "xs",
|
|
29186
29187
|
type: "rounded"
|
|
29187
29188
|
}),
|
|
29188
|
-
right: !n && f(
|
|
29189
|
+
right: !n && f(je, {
|
|
29189
29190
|
icon: ii,
|
|
29190
29191
|
size: "sm",
|
|
29191
29192
|
className: "cursor-pointer text-f1-icon-secondary",
|
|
@@ -30254,7 +30255,7 @@ var Jh = () => {
|
|
|
30254
30255
|
}
|
|
30255
30256
|
};
|
|
30256
30257
|
}, _2 = (t) => ei(t) || !gC(t);
|
|
30257
|
-
function
|
|
30258
|
+
function Vs(t, e) {
|
|
30258
30259
|
if (_2(t) || _2(e))
|
|
30259
30260
|
return t === e;
|
|
30260
30261
|
if (Ro(t) && Ro(e))
|
|
@@ -30268,7 +30269,7 @@ function zs(t, e) {
|
|
|
30268
30269
|
return !1;
|
|
30269
30270
|
if (r !== "ref") {
|
|
30270
30271
|
const o = e[r];
|
|
30271
|
-
if (Ro(s) && Ro(o) || rn(s) && rn(o) || Array.isArray(s) && Array.isArray(o) ? !
|
|
30272
|
+
if (Ro(s) && Ro(o) || rn(s) && rn(o) || Array.isArray(s) && Array.isArray(o) ? !Vs(s, o) : s !== o)
|
|
30272
30273
|
return !1;
|
|
30273
30274
|
}
|
|
30274
30275
|
}
|
|
@@ -30291,7 +30292,7 @@ function NC(t, e, n) {
|
|
|
30291
30292
|
const i = Array.isArray(t);
|
|
30292
30293
|
if (rn(t) || i)
|
|
30293
30294
|
for (const r in t)
|
|
30294
|
-
Array.isArray(t[r]) || rn(t[r]) && !AC(t[r]) ? tn(e) || _2(n[r]) ? n[r] = Array.isArray(t[r]) ? eu(t[r], []) : { ...eu(t[r]) } : NC(t[r], ei(e) ? {} : e[r], n[r]) : n[r] = !
|
|
30295
|
+
Array.isArray(t[r]) || rn(t[r]) && !AC(t[r]) ? tn(e) || _2(n[r]) ? n[r] = Array.isArray(t[r]) ? eu(t[r], []) : { ...eu(t[r]) } : NC(t[r], ei(e) ? {} : e[r], n[r]) : n[r] = !Vs(t[r], e[r]);
|
|
30295
30296
|
return n;
|
|
30296
30297
|
}
|
|
30297
30298
|
var rc = (t, e) => NC(t, e, eu(e)), MC = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: i }) => tn(t) ? t : e ? t === "" ? NaN : t && +t : n && Dr(t) ? new Date(t) : i ? i(t) : t;
|
|
@@ -30440,26 +30441,26 @@ function FY(t = {}) {
|
|
|
30440
30441
|
}
|
|
30441
30442
|
}, S = (W, J, ie, be, Ne) => {
|
|
30442
30443
|
let ve = !1, Be = !1;
|
|
30443
|
-
const
|
|
30444
|
+
const Xe = {
|
|
30444
30445
|
name: W
|
|
30445
30446
|
};
|
|
30446
30447
|
if (!e.disabled) {
|
|
30447
30448
|
const gt = !!(Pe(i, W) && Pe(i, W)._f && Pe(i, W)._f.disabled);
|
|
30448
30449
|
if (!ie || be) {
|
|
30449
|
-
d.isDirty && (Be = n.isDirty, n.isDirty =
|
|
30450
|
-
const vt = gt ||
|
|
30451
|
-
Be = !!(!gt && Pe(n.dirtyFields, W)), vt || gt ? dn(n.dirtyFields, W) : _t(n.dirtyFields, W, !0),
|
|
30450
|
+
d.isDirty && (Be = n.isDirty, n.isDirty = Xe.isDirty = N(), ve = Be !== Xe.isDirty);
|
|
30451
|
+
const vt = gt || Vs(Pe(r, W), J);
|
|
30452
|
+
Be = !!(!gt && Pe(n.dirtyFields, W)), vt || gt ? dn(n.dirtyFields, W) : _t(n.dirtyFields, W, !0), Xe.dirtyFields = n.dirtyFields, ve = ve || d.dirtyFields && Be !== !vt;
|
|
30452
30453
|
}
|
|
30453
30454
|
if (ie) {
|
|
30454
30455
|
const vt = Pe(n.touchedFields, W);
|
|
30455
|
-
vt || (_t(n.touchedFields, W, ie),
|
|
30456
|
+
vt || (_t(n.touchedFields, W, ie), Xe.touchedFields = n.touchedFields, ve = ve || d.touchedFields && vt !== ie);
|
|
30456
30457
|
}
|
|
30457
|
-
ve && Ne && u.state.next(
|
|
30458
|
+
ve && Ne && u.state.next(Xe);
|
|
30458
30459
|
}
|
|
30459
|
-
return ve ?
|
|
30460
|
+
return ve ? Xe : {};
|
|
30460
30461
|
}, E = (W, J, ie, be) => {
|
|
30461
30462
|
const Ne = Pe(n.errors, W), ve = d.isValid && qi(J) && n.isValid !== J;
|
|
30462
|
-
if (e.delayError && ie ? (l = g(() => w(W, ie)), l(e.delayError)) : (clearTimeout(c), l = null, ie ? _t(n.errors, W, ie) : dn(n.errors, W)), (ie ? !
|
|
30463
|
+
if (e.delayError && ie ? (l = g(() => w(W, ie)), l(e.delayError)) : (clearTimeout(c), l = null, ie ? _t(n.errors, W, ie) : dn(n.errors, W)), (ie ? !Vs(Ne, ie) : Ne) || !di(be) || ve) {
|
|
30463
30464
|
const Be = {
|
|
30464
30465
|
...be,
|
|
30465
30466
|
...ve && qi(J) ? { isValid: J } : {},
|
|
@@ -30493,12 +30494,12 @@ function FY(t = {}) {
|
|
|
30493
30494
|
if (Ne) {
|
|
30494
30495
|
const { _f: ve, ...Be } = Ne;
|
|
30495
30496
|
if (ve) {
|
|
30496
|
-
const
|
|
30497
|
+
const Xe = a.array.has(ve.name), gt = Ne._f && TY(Ne._f);
|
|
30497
30498
|
gt && d.validatingFields && y([be], !0);
|
|
30498
|
-
const vt = await Cv(Ne, a.disabled, s, m, e.shouldUseNativeValidation && !J,
|
|
30499
|
+
const vt = await Cv(Ne, a.disabled, s, m, e.shouldUseNativeValidation && !J, Xe);
|
|
30499
30500
|
if (gt && d.validatingFields && y([be]), vt[ve.name] && (ie.valid = !1, J))
|
|
30500
30501
|
break;
|
|
30501
|
-
!J && (Pe(vt, ve.name) ?
|
|
30502
|
+
!J && (Pe(vt, ve.name) ? Xe ? CY(n.errors, vt, ve.name) : _t(n.errors, ve.name, vt[ve.name]) : dn(n.errors, ve.name));
|
|
30502
30503
|
}
|
|
30503
30504
|
!di(Be) && await L(Be, J, ie);
|
|
30504
30505
|
}
|
|
@@ -30510,14 +30511,14 @@ function FY(t = {}) {
|
|
|
30510
30511
|
J && (J._f.refs ? J._f.refs.every((ie) => !Xh(ie)) : !Xh(J._f.ref)) && ne(W);
|
|
30511
30512
|
}
|
|
30512
30513
|
a.unMount = /* @__PURE__ */ new Set();
|
|
30513
|
-
}, N = (W, J) => !e.disabled && (W && J && _t(s, W, J), !
|
|
30514
|
+
}, N = (W, J) => !e.disabled && (W && J && _t(s, W, J), !Vs(Ve(), r)), O = (W, J, ie) => _C(W, a, {
|
|
30514
30515
|
...o.mount ? s : tn(J) ? r : Dr(W) ? { [W]: J } : J
|
|
30515
30516
|
}, ie, J), j = (W) => P0(Pe(o.mount ? s : r, W, e.shouldUnregister ? Pe(r, W, []) : [])), z = (W, J, ie = {}) => {
|
|
30516
30517
|
const be = Pe(i, W);
|
|
30517
30518
|
let Ne = J;
|
|
30518
30519
|
if (be) {
|
|
30519
30520
|
const ve = be._f;
|
|
30520
|
-
ve && (!ve.disabled && _t(s, W, MC(J, ve)), Ne = Y1(ve.ref) && ei(J) ? "" : J, TC(ve.ref) ? [...ve.ref.options].forEach((Be) => Be.selected = Ne.includes(Be.value)) : ve.refs ? Zf(ve.ref) ? ve.refs.length > 1 ? ve.refs.forEach((Be) => (!Be.defaultChecked || !Be.disabled) && (Be.checked = Array.isArray(Ne) ? !!Ne.find((
|
|
30521
|
+
ve && (!ve.disabled && _t(s, W, MC(J, ve)), Ne = Y1(ve.ref) && ei(J) ? "" : J, TC(ve.ref) ? [...ve.ref.options].forEach((Be) => Be.selected = Ne.includes(Be.value)) : ve.refs ? Zf(ve.ref) ? ve.refs.length > 1 ? ve.refs.forEach((Be) => (!Be.defaultChecked || !Be.disabled) && (Be.checked = Array.isArray(Ne) ? !!Ne.find((Xe) => Xe === Be.value) : Ne === Be.value)) : ve.refs[0] && (ve.refs[0].checked = !!Ne) : ve.refs.forEach((Be) => Be.checked = Be.value === Ne) : j4(ve.ref) ? ve.ref.value = "" : (ve.ref.value = Ne, ve.ref.type || u.values.next({
|
|
30521
30522
|
name: W,
|
|
30522
30523
|
values: { ...s }
|
|
30523
30524
|
})));
|
|
@@ -30545,11 +30546,11 @@ function FY(t = {}) {
|
|
|
30545
30546
|
o.mount = !0;
|
|
30546
30547
|
const J = W.target;
|
|
30547
30548
|
let ie = J.name, be = !0;
|
|
30548
|
-
const Ne = Pe(i, ie), ve = () => J.type ? Yh(Ne._f) : vC(W), Be = (
|
|
30549
|
-
be = Number.isNaN(
|
|
30549
|
+
const Ne = Pe(i, ie), ve = () => J.type ? Yh(Ne._f) : vC(W), Be = (Xe) => {
|
|
30550
|
+
be = Number.isNaN(Xe) || Ro(Xe) && isNaN(Xe.getTime()) || Vs(Xe, Pe(s, ie, Xe));
|
|
30550
30551
|
};
|
|
30551
30552
|
if (Ne) {
|
|
30552
|
-
let
|
|
30553
|
+
let Xe, gt;
|
|
30553
30554
|
const vt = ve(), Rt = W.type === X1.BLUR || W.type === X1.FOCUS_OUT, _o = !AY(Ne._f) && !e.resolver && !Pe(n.errors, ie) && !Ne._f.deps || NY(Rt, Pe(n.touchedFields, ie), n.isSubmitted, p, h), sr = yv(ie, a, Rt);
|
|
30554
30555
|
_t(s, ie, vt), Rt ? (Ne._f.onBlur && Ne._f.onBlur(W), l && l(0)) : Ne._f.onChange && Ne._f.onChange(W);
|
|
30555
30556
|
const or = S(ie, vt, Rt, !1), _r = !di(or) || sr;
|
|
@@ -30563,11 +30564,11 @@ function FY(t = {}) {
|
|
|
30563
30564
|
const { errors: Kr } = await T([ie]);
|
|
30564
30565
|
if (Be(vt), be) {
|
|
30565
30566
|
const le = Sv(n.errors, i, ie), ze = Sv(Kr, i, le.name || ie);
|
|
30566
|
-
|
|
30567
|
+
Xe = ze.error, ie = ze.name, gt = di(Kr);
|
|
30567
30568
|
}
|
|
30568
30569
|
} else
|
|
30569
|
-
y([ie], !0),
|
|
30570
|
-
be && (Ne._f.deps && _e(Ne._f.deps), E(ie, gt,
|
|
30570
|
+
y([ie], !0), Xe = (await Cv(Ne, a.disabled, s, m, e.shouldUseNativeValidation))[ie], y([ie]), Be(vt), be && (Xe ? gt = !1 : d.isValid && (gt = await L(i, !0)));
|
|
30571
|
+
be && (Ne._f.deps && _e(Ne._f.deps), E(ie, gt, Xe, or));
|
|
30571
30572
|
}
|
|
30572
30573
|
}, he = (W, J) => {
|
|
30573
30574
|
if (Pe(n.errors, J) && W.focus)
|
|
@@ -30603,7 +30604,7 @@ function FY(t = {}) {
|
|
|
30603
30604
|
errors: W ? n.errors : {}
|
|
30604
30605
|
});
|
|
30605
30606
|
}, U = (W, J, ie) => {
|
|
30606
|
-
const be = (Pe(i, W, { _f: {} })._f || {}).ref, Ne = Pe(n.errors, W) || {}, { ref: ve, message: Be, type:
|
|
30607
|
+
const be = (Pe(i, W, { _f: {} })._f || {}).ref, Ne = Pe(n.errors, W) || {}, { ref: ve, message: Be, type: Xe, ...gt } = Ne;
|
|
30607
30608
|
_t(n.errors, W, {
|
|
30608
30609
|
...gt,
|
|
30609
30610
|
...J,
|
|
@@ -30657,15 +30658,15 @@ function FY(t = {}) {
|
|
|
30657
30658
|
ref: (Ne) => {
|
|
30658
30659
|
if (Ne) {
|
|
30659
30660
|
K(W, J), ie = Pe(i, W);
|
|
30660
|
-
const ve = tn(Ne.value) && Ne.querySelectorAll && Ne.querySelectorAll("input,select,textarea")[0] || Ne, Be = EY(ve),
|
|
30661
|
-
if (Be ?
|
|
30661
|
+
const ve = tn(Ne.value) && Ne.querySelectorAll && Ne.querySelectorAll("input,select,textarea")[0] || Ne, Be = EY(ve), Xe = ie._f.refs || [];
|
|
30662
|
+
if (Be ? Xe.find((gt) => gt === ve) : ve === ie._f.ref)
|
|
30662
30663
|
return;
|
|
30663
30664
|
_t(i, W, {
|
|
30664
30665
|
_f: {
|
|
30665
30666
|
...ie._f,
|
|
30666
30667
|
...Be ? {
|
|
30667
30668
|
refs: [
|
|
30668
|
-
...
|
|
30669
|
+
...Xe.filter(Xh),
|
|
30669
30670
|
ve,
|
|
30670
30671
|
...Array.isArray(Pe(r, W)) ? [{}] : []
|
|
30671
30672
|
],
|
|
@@ -30727,14 +30728,14 @@ function FY(t = {}) {
|
|
|
30727
30728
|
...a.mount,
|
|
30728
30729
|
...Object.keys(rc(r, s))
|
|
30729
30730
|
]);
|
|
30730
|
-
for (const
|
|
30731
|
-
Pe(n.dirtyFields,
|
|
30731
|
+
for (const Xe of Array.from(Be))
|
|
30732
|
+
Pe(n.dirtyFields, Xe) ? _t(ve, Xe, Pe(s, Xe)) : ae(Xe, Pe(ve, Xe));
|
|
30732
30733
|
} else {
|
|
30733
30734
|
if ($4 && tn(W))
|
|
30734
30735
|
for (const Be of a.mount) {
|
|
30735
|
-
const
|
|
30736
|
-
if (
|
|
30737
|
-
const gt = Array.isArray(
|
|
30736
|
+
const Xe = Pe(i, Be);
|
|
30737
|
+
if (Xe && Xe._f) {
|
|
30738
|
+
const gt = Array.isArray(Xe._f.refs) ? Xe._f.refs[0] : Xe._f.ref;
|
|
30738
30739
|
if (Y1(gt)) {
|
|
30739
30740
|
const vt = gt.closest("form");
|
|
30740
30741
|
if (vt) {
|
|
@@ -30762,7 +30763,7 @@ function FY(t = {}) {
|
|
|
30762
30763
|
focus: ""
|
|
30763
30764
|
}, o.mount = !d.isValid || !!J.keepIsValid || !!J.keepDirtyValues, o.watch = !!e.shouldUnregister, u.state.next({
|
|
30764
30765
|
submitCount: J.keepSubmitCount ? n.submitCount : 0,
|
|
30765
|
-
isDirty: Ne ? !1 : J.keepDirty ? n.isDirty : !!(J.keepDefaultValues && !
|
|
30766
|
+
isDirty: Ne ? !1 : J.keepDirty ? n.isDirty : !!(J.keepDefaultValues && !Vs(W, r)),
|
|
30766
30767
|
isSubmitted: J.keepIsSubmitted ? n.isSubmitted : !1,
|
|
30767
30768
|
dirtyFields: Ne ? {} : J.keepDirtyValues ? J.keepDefaultValues && s ? rc(r, s) : n.dirtyFields : J.keepDefaultValues && W ? rc(r, W) : J.keepDirty ? n.dirtyFields : {},
|
|
30768
30769
|
touchedFields: J.keepTouched ? n.touchedFields : {},
|
|
@@ -30895,7 +30896,7 @@ function DY(t = {}) {
|
|
|
30895
30896
|
});
|
|
30896
30897
|
}
|
|
30897
30898
|
}, [s, i.isDirty]), we.useEffect(() => {
|
|
30898
|
-
t.values && !
|
|
30899
|
+
t.values && !Vs(t.values, n.current) ? (s._reset(t.values, s._options.resetOptions), n.current = t.values, r((o) => ({ ...o }))) : s._resetDefaultValues();
|
|
30899
30900
|
}, [t.values, s]), we.useEffect(() => {
|
|
30900
30901
|
t.errors && s._setErrors(t.errors);
|
|
30901
30902
|
}, [t.errors, s]), we.useEffect(() => {
|
|
@@ -31189,7 +31190,7 @@ const VY = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
|
|
|
31189
31190
|
}), S2 = () => f("div", {
|
|
31190
31191
|
className: "-mx-2 h-px bg-f1-background-secondary"
|
|
31191
31192
|
}), KY = ({ items: t, loadingMoreItems: e = !1, onClickItem: n, onEndReached: i, onEndReachedItemsThreshold: r = 5 }) => {
|
|
31192
|
-
const s =
|
|
31193
|
+
const s = Je(), o = $N(t, "createdAt"), a = Object.values(o).slice().flatMap((d) => d.map((u) => u.id)).slice(-r), l = VN((d) => {
|
|
31193
31194
|
a.includes(d) && (i == null || i());
|
|
31194
31195
|
}, 1e3), c = GY(Object.entries(o).filter(([d, u]) => !!u.length));
|
|
31195
31196
|
return x("div", {
|
|
@@ -31204,7 +31205,7 @@ const VY = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
|
|
|
31204
31205
|
}, d)), e && new Array(UY).fill(null).map((d, u) => f(U4.Skeleton, {}, u))]
|
|
31205
31206
|
});
|
|
31206
31207
|
}, ZY = () => {
|
|
31207
|
-
const t =
|
|
31208
|
+
const t = Je();
|
|
31208
31209
|
return x("div", {
|
|
31209
31210
|
className: "flex flex-col gap-2 p-2",
|
|
31210
31211
|
children: [f(Jd.Skeleton, {
|
|
@@ -31290,7 +31291,7 @@ function zi(t, e, n) {
|
|
|
31290
31291
|
}) : t[e] = n, t;
|
|
31291
31292
|
}
|
|
31292
31293
|
var H0, tt, zC, Sc, jC, Lv, tu = {}, WC = [], iQ = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
31293
|
-
function
|
|
31294
|
+
function Gs(t, e) {
|
|
31294
31295
|
for (var n in e) t[n] = e[n];
|
|
31295
31296
|
return t;
|
|
31296
31297
|
}
|
|
@@ -31356,7 +31357,7 @@ function nu() {
|
|
|
31356
31357
|
return e.__v.__b - n.__v.__b;
|
|
31357
31358
|
}), Sc = [], t.some(function(e) {
|
|
31358
31359
|
var n, i, r, s, o, a;
|
|
31359
|
-
e.__d && (o = (s = (n = e).__v).__e, (a = n.__P) && (i = [], (r =
|
|
31360
|
+
e.__d && (o = (s = (n = e).__v).__e, (a = n.__P) && (i = [], (r = Gs({}, s)).__v = s.__v + 1, q4(a, s, r, n.__n, a.ownerSVGElement !== void 0, s.__h != null ? [
|
|
31360
31361
|
o
|
|
31361
31362
|
] : null, i, o ?? ul(s), s.__h), JC(i, s), s.__e != o && qC(s)));
|
|
31362
31363
|
});
|
|
@@ -31439,7 +31440,7 @@ function q4(t, e, n, i, r, s, o, a, l) {
|
|
|
31439
31440
|
]), (c = tt.__b) && c(e);
|
|
31440
31441
|
try {
|
|
31441
31442
|
e: if (typeof k == "function") {
|
|
31442
|
-
if (v = e.props, y = (c = k.contextType) && i[c.__c], b = c ? y ? y.props.value : c.__ : i, n.__c ? g = (d = e.__c = n.__c).__ = d.__E : ("prototype" in k && k.prototype.render ? e.__c = d = new k(v, b) : (e.__c = d = new Rr(v, b), d.constructor = k, d.render = oQ), y && y.sub(d), d.props = v, d.state || (d.state = {}), d.context = b, d.__n = i, u = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), k.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s =
|
|
31443
|
+
if (v = e.props, y = (c = k.contextType) && i[c.__c], b = c ? y ? y.props.value : c.__ : i, n.__c ? g = (d = e.__c = n.__c).__ = d.__E : ("prototype" in k && k.prototype.render ? e.__c = d = new k(v, b) : (e.__c = d = new Rr(v, b), d.constructor = k, d.render = oQ), y && y.sub(d), d.props = v, d.state || (d.state = {}), d.context = b, d.__n = i, u = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), k.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Gs({}, d.__s)), Gs(d.__s, k.getDerivedStateFromProps(v, d.__s))), h = d.props, p = d.state, u) k.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
|
|
31443
31444
|
else {
|
|
31444
31445
|
if (k.getDerivedStateFromProps == null && v !== h && d.componentWillReceiveProps != null && d.componentWillReceiveProps(v, b), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(v, d.__s, b) === !1 || e.__v === n.__v) {
|
|
31445
31446
|
d.props = v, d.state = d.__s, e.__v !== n.__v && (d.__d = !1), d.__v = e, e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(C) {
|
|
@@ -31451,7 +31452,7 @@ function q4(t, e, n, i, r, s, o, a, l) {
|
|
|
31451
31452
|
d.componentDidUpdate(h, p, m);
|
|
31452
31453
|
});
|
|
31453
31454
|
}
|
|
31454
|
-
d.context = b, d.props = v, d.state = d.__s, (c = tt.__r) && c(e), d.__d = !1, d.__v = e, d.__P = t, c = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (i =
|
|
31455
|
+
d.context = b, d.props = v, d.state = d.__s, (c = tt.__r) && c(e), d.__d = !1, d.__v = e, d.__P = t, c = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (i = Gs(Gs({}, i), d.getChildContext())), u || d.getSnapshotBeforeUpdate == null || (m = d.getSnapshotBeforeUpdate(h, p)), w = c != null && c.type === dl && c.key == null ? c.props.children : c, GC(t, Array.isArray(w) ? w : [
|
|
31455
31456
|
w
|
|
31456
31457
|
], e, n, i, r, s, o, a, l), d.base = e.__e, e.__h = null, d.__h.length && o.push(d), g && (d.__E = d.__ = null), d.__e = !1;
|
|
31457
31458
|
} else s == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = sQ(n.__e, e, n, i, r, s, o, l);
|
|
@@ -31539,7 +31540,7 @@ H0 = WC.slice, tt = {
|
|
|
31539
31540
|
}
|
|
31540
31541
|
}, zC = 0, Rr.prototype.setState = function(t, e) {
|
|
31541
31542
|
var n;
|
|
31542
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
31543
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Gs({}, this.state), typeof t == "function" && (t = t(Gs({}, n), this.props)), t && Gs(n, t), t != null && this.__v && (e && this.__h.push(e), Tv(this));
|
|
31543
31544
|
}, Rr.prototype.forceUpdate = function(t) {
|
|
31544
31545
|
this.__v && (this.__e = !0, t && this.__h.push(t), Tv(this));
|
|
31545
31546
|
}, Rr.prototype.render = dl, Sc = [], jC = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, nu.__r = 0;
|
|
@@ -34339,7 +34340,7 @@ function JQ({ firstName: t, lastName: e, src: n, canReact: i, lastEmojiReaction:
|
|
|
34339
34340
|
});
|
|
34340
34341
|
}
|
|
34341
34342
|
function XQ(t) {
|
|
34342
|
-
const e = Ce(null), n = Ce(), i =
|
|
34343
|
+
const e = Ce(null), n = Ce(), i = Ze(() => {
|
|
34343
34344
|
const s = e.current;
|
|
34344
34345
|
if (!s) return;
|
|
34345
34346
|
const o = WN.create(s, {
|
|
@@ -34365,7 +34366,7 @@ function XQ(t) {
|
|
|
34365
34366
|
]
|
|
34366
34367
|
});
|
|
34367
34368
|
}, 100);
|
|
34368
|
-
}, [t]), r =
|
|
34369
|
+
}, [t]), r = Ze(() => {
|
|
34369
34370
|
clearInterval(n.current);
|
|
34370
34371
|
}, []);
|
|
34371
34372
|
return { canvasRef: e, handleMouseEnter: i, handleMouseLeave: r };
|
|
@@ -34615,8 +34616,8 @@ const Zv = (t) => {
|
|
|
34615
34616
|
children: [c && x(Ke, {
|
|
34616
34617
|
children: [f(i2, {
|
|
34617
34618
|
date: c
|
|
34618
|
-
}), f(
|
|
34619
|
-
icon:
|
|
34619
|
+
}), f(je, {
|
|
34620
|
+
icon: Ts,
|
|
34620
34621
|
size: "sm",
|
|
34621
34622
|
className: "text-f1-foreground-tertiary"
|
|
34622
34623
|
})]
|
|
@@ -34874,7 +34875,7 @@ const Zv = (t) => {
|
|
|
34874
34875
|
})]
|
|
34875
34876
|
})]
|
|
34876
34877
|
}), n4e = Kt(lee, cee), fee = ({ description: t }) => {
|
|
34877
|
-
const [e, n] = X(!1), [i, r] = X(!1), s =
|
|
34878
|
+
const [e, n] = X(!1), [i, r] = X(!1), s = Je(), o = Ce(null), a = Ce(null), l = w1({
|
|
34878
34879
|
ref: o
|
|
34879
34880
|
}), c = w1({
|
|
34880
34881
|
ref: a
|
|
@@ -34991,7 +34992,7 @@ function ip({ item: t, collapse: e = !1 }) {
|
|
|
34991
34992
|
const { icon: i, iconColor: r, textColor: s } = dee[n.icon];
|
|
34992
34993
|
return x("div", {
|
|
34993
34994
|
className: "flex items-center justify-center gap-0.5 font-medium",
|
|
34994
|
-
children: [f(
|
|
34995
|
+
children: [f(je, {
|
|
34995
34996
|
icon: i,
|
|
34996
34997
|
color: r
|
|
34997
34998
|
}), f("span", {
|
|
@@ -35038,7 +35039,7 @@ function pee({ item: t }) {
|
|
|
35038
35039
|
children: f(Fi, {
|
|
35039
35040
|
label: t.info.title,
|
|
35040
35041
|
description: t.info.description,
|
|
35041
|
-
children: f(
|
|
35042
|
+
children: f(je, {
|
|
35042
35043
|
icon: Af,
|
|
35043
35044
|
size: "sm"
|
|
35044
35045
|
})
|
|
@@ -35195,7 +35196,7 @@ function mee({ title: t, avatar: e, description: n, primaryAction: i, secondaryA
|
|
|
35195
35196
|
})
|
|
35196
35197
|
}), u && m(i) && f("div", {
|
|
35197
35198
|
className: "w-full md:hidden [&>*]:w-full",
|
|
35198
|
-
children: f(
|
|
35199
|
+
children: f(ws, {
|
|
35199
35200
|
items: i.items,
|
|
35200
35201
|
onClick: i.onClick,
|
|
35201
35202
|
variant: "default",
|
|
@@ -35257,7 +35258,7 @@ function mee({ title: t, avatar: e, description: n, primaryAction: i, secondaryA
|
|
|
35257
35258
|
})
|
|
35258
35259
|
}), u && m(i) && f("div", {
|
|
35259
35260
|
className: "hidden md:block",
|
|
35260
|
-
children: f(
|
|
35261
|
+
children: f(ws, {
|
|
35261
35262
|
items: i.items,
|
|
35262
35263
|
onClick: i.onClick,
|
|
35263
35264
|
variant: "default",
|
|
@@ -35385,7 +35386,7 @@ const i4e = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
|
|
|
35385
35386
|
duration: 0.1
|
|
35386
35387
|
},
|
|
35387
35388
|
className: "absolute inset-0",
|
|
35388
|
-
children: f(
|
|
35389
|
+
children: f(je, {
|
|
35389
35390
|
icon: $f,
|
|
35390
35391
|
size: "md",
|
|
35391
35392
|
"aria-hidden": !0,
|
|
@@ -35409,7 +35410,7 @@ const i4e = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
|
|
|
35409
35410
|
duration: 0.1
|
|
35410
35411
|
},
|
|
35411
35412
|
className: "absolute inset-0",
|
|
35412
|
-
children: f(
|
|
35413
|
+
children: f(je, {
|
|
35413
35414
|
icon: c0,
|
|
35414
35415
|
size: "md",
|
|
35415
35416
|
"aria-hidden": !0,
|
|
@@ -35425,9 +35426,9 @@ const i4e = ({ avatar: t, title: e, description: n, primaryAction: i, secondaryA
|
|
|
35425
35426
|
className: F("text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground", "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover", e),
|
|
35426
35427
|
children: [t, f("div", {
|
|
35427
35428
|
className: "grid",
|
|
35428
|
-
children: f(
|
|
35429
|
+
children: f(je, {
|
|
35429
35430
|
"aria-hidden": !0,
|
|
35430
|
-
icon:
|
|
35431
|
+
icon: Ts,
|
|
35431
35432
|
size: "md"
|
|
35432
35433
|
})
|
|
35433
35434
|
})]
|
|
@@ -35441,7 +35442,7 @@ const m_ = Hf(({ children: t, className: e, href: n, ...i }) => x(Ci, {
|
|
|
35441
35442
|
className: F("text-inherit group flex items-center gap-1.5 rounded p-1.5 text-f1-foreground", "no-underline hover:bg-f1-background-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-f1-border-selected-bold active:bg-f1-background-secondary-hover", e),
|
|
35442
35443
|
children: [t, f("div", {
|
|
35443
35444
|
className: "grid opacity-0 transition-opacity duration-300 group-hover:opacity-100 group-focus-visible:opacity-100 group-active:opacity-100",
|
|
35444
|
-
children: f(
|
|
35445
|
+
children: f(je, {
|
|
35445
35446
|
"aria-hidden": !0,
|
|
35446
35447
|
icon: Xm,
|
|
35447
35448
|
size: "md",
|
|
@@ -35460,7 +35461,7 @@ const Xf = B((t, e) => {
|
|
|
35460
35461
|
children: x(kee, {
|
|
35461
35462
|
action: s,
|
|
35462
35463
|
className: F("flex items-center gap-1.5 p-1.5", r),
|
|
35463
|
-
children: [i && (typeof i == "function" ? i({}) : f(
|
|
35464
|
+
children: [i && (typeof i == "function" ? i({}) : f(je, {
|
|
35464
35465
|
icon: i,
|
|
35465
35466
|
size: "md",
|
|
35466
35467
|
"aria-hidden": "true"
|
|
@@ -35647,7 +35648,7 @@ const V0 = (t, e) => t && t.type === "copy" ? {
|
|
|
35647
35648
|
children: `${t.firstName} ${t.lastName}`
|
|
35648
35649
|
}), n.info && f(Fi, {
|
|
35649
35650
|
label: n.info,
|
|
35650
|
-
children: f(
|
|
35651
|
+
children: f(je, {
|
|
35651
35652
|
icon: Ym,
|
|
35652
35653
|
size: "sm",
|
|
35653
35654
|
className: "text-f1-icon-secondary"
|
|
@@ -35720,7 +35721,7 @@ function a4e({ children: t, sidebar: e, banner: n, ai: i, aiPromotion: r }) {
|
|
|
35720
35721
|
});
|
|
35721
35722
|
}
|
|
35722
35723
|
const _ee = ({ contentId: t }) => {
|
|
35723
|
-
const e =
|
|
35724
|
+
const e = Je();
|
|
35724
35725
|
return f("a", {
|
|
35725
35726
|
href: `#${t}`,
|
|
35726
35727
|
className: zt("absolute z-50 -translate-y-[1000px] translate-x-4 rounded-md bg-f1-background px-4 py-2.5 text-base font-medium text-f1-foreground no-underline transition-transform duration-200 focus-visible:translate-y-4"),
|
|
@@ -35827,7 +35828,7 @@ const F2 = {
|
|
|
35827
35828
|
positive: "mood-positive",
|
|
35828
35829
|
superPositive: "mood-super-positive"
|
|
35829
35830
|
}, C_ = ({ firstName: t, lastName: e, src: n, "aria-label": i, "aria-labelledby": r, pulse: s, onPulseClick: o }) => {
|
|
35830
|
-
const a =
|
|
35831
|
+
const a = Je(), [l, c] = X(!s);
|
|
35831
35832
|
return f("div", {
|
|
35832
35833
|
className: "relative h-10 w-10",
|
|
35833
35834
|
children: f(ut, {
|
|
@@ -35939,7 +35940,7 @@ const F2 = {
|
|
|
35939
35940
|
d.preventDefault(), d.stopPropagation(), o();
|
|
35940
35941
|
},
|
|
35941
35942
|
"aria-label": a.actions.edit,
|
|
35942
|
-
children: f(
|
|
35943
|
+
children: f(je, {
|
|
35943
35944
|
icon: F2[s],
|
|
35944
35945
|
color: D2[s],
|
|
35945
35946
|
size: "sm"
|
|
@@ -36071,7 +36072,7 @@ function Oee({ otherActions: t, open: e, setOpen: n, disabled: i }) {
|
|
|
36071
36072
|
open: e,
|
|
36072
36073
|
onOpenChange: n,
|
|
36073
36074
|
children: f(Ft, {
|
|
36074
|
-
icon:
|
|
36075
|
+
icon: ks,
|
|
36075
36076
|
label: "Actions",
|
|
36076
36077
|
hideLabel: !0,
|
|
36077
36078
|
variant: "ghost",
|
|
@@ -36083,7 +36084,7 @@ function Oee({ otherActions: t, open: e, setOpen: n, disabled: i }) {
|
|
|
36083
36084
|
}
|
|
36084
36085
|
function Yv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1, isExpanded: s = !1, onToggleExpanded: o = () => {
|
|
36085
36086
|
}, dragControls: a, children: l, open: c, setOpen: d, isHovered: u, setIsHovered: h }) {
|
|
36086
|
-
const p =
|
|
36087
|
+
const p = Je(), { label: m, onClick: g, icon: v, disabled: y, otherActions: b } = t, k = b && b.length > 0 && (u || c), C = e && !k, S = i && (u || c);
|
|
36087
36088
|
return x("div", {
|
|
36088
36089
|
className: "flex w-full min-w-0 items-center",
|
|
36089
36090
|
children: [r && f(Ft, {
|
|
@@ -36133,7 +36134,7 @@ function Yv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
36133
36134
|
E.preventDefault(), E.stopPropagation(), a == null || a.start(E);
|
|
36134
36135
|
},
|
|
36135
36136
|
"aria-label": "Drag to reorder",
|
|
36136
|
-
children: f(
|
|
36137
|
+
children: f(je, {
|
|
36137
36138
|
icon: da,
|
|
36138
36139
|
size: "xs"
|
|
36139
36140
|
})
|
|
@@ -36156,7 +36157,7 @@ function Yv({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
36156
36157
|
ease: [0.25, 0.1, 0.25, 1]
|
|
36157
36158
|
},
|
|
36158
36159
|
className: "flex flex-shrink-0 items-center justify-center p-0.5 text-f1-icon",
|
|
36159
|
-
children: f(
|
|
36160
|
+
children: f(je, {
|
|
36160
36161
|
icon: v,
|
|
36161
36162
|
size: "md"
|
|
36162
36163
|
})
|
|
@@ -36419,25 +36420,25 @@ function au(t, e, n, i, r, s, o, a, l) {
|
|
|
36419
36420
|
}, t.id);
|
|
36420
36421
|
}
|
|
36421
36422
|
function Ree({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, sortable: s = !1, showSearchBox: o = !1, searchPlaceholder: a, onReorder: l, hideChildrenCounter: c = !1 }) {
|
|
36422
|
-
const d =
|
|
36423
|
+
const d = Je(), [u, h] = X(""), p = (_) => {
|
|
36423
36424
|
h(_);
|
|
36424
36425
|
}, m = ke(() => e9(e, u), [e, u]), [g, v] = X(Iee(e, i)), [y, b] = X(e);
|
|
36425
36426
|
Ae(() => {
|
|
36426
36427
|
b(e);
|
|
36427
36428
|
}, [e]);
|
|
36428
|
-
const w = Ce(null), k =
|
|
36429
|
+
const w = Ce(null), k = Ze((_) => _.map((L) => ({
|
|
36429
36430
|
id: L.id,
|
|
36430
36431
|
...L.children && {
|
|
36431
36432
|
children: k(L.children)
|
|
36432
36433
|
}
|
|
36433
|
-
})), []), C =
|
|
36434
|
+
})), []), C = Ze((_) => {
|
|
36434
36435
|
v((L) => {
|
|
36435
36436
|
const M = new Set(L);
|
|
36436
36437
|
return M.has(_) ? M.delete(_) : M.add(_), M;
|
|
36437
36438
|
});
|
|
36438
|
-
}, [v]), S =
|
|
36439
|
+
}, [v]), S = Ze((_) => {
|
|
36439
36440
|
b(_), l && l(k(_));
|
|
36440
|
-
}, [l, k]), E =
|
|
36441
|
+
}, [l, k]), E = Ze((_, L) => {
|
|
36441
36442
|
const M = (O) => O.map((j) => j.id === _ ? L : j.children ? {
|
|
36442
36443
|
...j,
|
|
36443
36444
|
children: M(j.children)
|
|
@@ -36511,7 +36512,7 @@ function c4e({ label: t, options: e, hasNewUpdate: n }) {
|
|
|
36511
36512
|
children: x("button", {
|
|
36512
36513
|
className: F("relative flex h-6 w-6 items-center justify-center rounded-full bg-f1-background-inverse text-f1-foreground-inverse shadow-md transition-all", zt()),
|
|
36513
36514
|
"aria-label": t,
|
|
36514
|
-
children: [f(
|
|
36515
|
+
children: [f(je, {
|
|
36515
36516
|
icon: H3,
|
|
36516
36517
|
size: "sm"
|
|
36517
36518
|
}), n && f("div", {
|
|
@@ -36567,7 +36568,7 @@ function Hee({ companies: t, selected: e, onChange: n, isLoading: i = !1, withNo
|
|
|
36567
36568
|
});
|
|
36568
36569
|
}
|
|
36569
36570
|
const $ee = ({ companies: t, selected: e, onChange: n, children: i, additionalOptions: r = [] }) => {
|
|
36570
|
-
const s =
|
|
36571
|
+
const s = Je(), [o, a] = X(!1), l = ke(() => [...t.map((d) => ({
|
|
36571
36572
|
value: d.id,
|
|
36572
36573
|
label: d.name,
|
|
36573
36574
|
avatar: {
|
|
@@ -36611,7 +36612,7 @@ const $ee = ({ companies: t, selected: e, onChange: n, children: i, additionalOp
|
|
|
36611
36612
|
duration: 0.2
|
|
36612
36613
|
},
|
|
36613
36614
|
className: "flex h-3 w-3 shrink-0 items-center justify-center text-f1-icon-bold",
|
|
36614
|
-
children: f(
|
|
36615
|
+
children: f(je, {
|
|
36615
36616
|
icon: Wr,
|
|
36616
36617
|
size: "xs"
|
|
36617
36618
|
})
|
|
@@ -36639,7 +36640,7 @@ const $ee = ({ companies: t, selected: e, onChange: n, children: i, additionalOp
|
|
|
36639
36640
|
});
|
|
36640
36641
|
};
|
|
36641
36642
|
function f4e({ user: t, options: e, showActivityButton: n = !1, activityButtonShortcut: i, onActivityButtonClick: r, onDropdownClick: s, hasActivityUpdates: o }) {
|
|
36642
|
-
const a =
|
|
36643
|
+
const a = Je();
|
|
36643
36644
|
return x("div", {
|
|
36644
36645
|
className: "flex flex-row items-center justify-between gap-1 p-3",
|
|
36645
36646
|
children: [f("div", {
|
|
@@ -36740,7 +36741,7 @@ function zee() {
|
|
|
36740
36741
|
className: F("hidden", {
|
|
36741
36742
|
flex: i
|
|
36742
36743
|
}),
|
|
36743
|
-
children: f(
|
|
36744
|
+
children: f(je, {
|
|
36744
36745
|
icon: ii,
|
|
36745
36746
|
size: "md"
|
|
36746
36747
|
})
|
|
@@ -36789,7 +36790,7 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
36789
36790
|
className: "flex w-full items-center justify-between",
|
|
36790
36791
|
children: [x("div", {
|
|
36791
36792
|
className: "flex items-center gap-1.5 font-medium text-f1-foreground",
|
|
36792
|
-
children: [f(
|
|
36793
|
+
children: [f(je, {
|
|
36793
36794
|
icon: t.icon,
|
|
36794
36795
|
size: "md",
|
|
36795
36796
|
className: F("transition-colors", e ? "text-f1-icon-bold" : "text-f1-icon")
|
|
@@ -36814,7 +36815,7 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
36814
36815
|
})
|
|
36815
36816
|
});
|
|
36816
36817
|
}, Gee = ({ item: t, tooltip: e, dragConstraints: n, onRemove: i, index: r, total: s, onMove: o, onReorderFinish: a, isSortable: l = !0 }) => {
|
|
36817
|
-
const c =
|
|
36818
|
+
const c = Je(), { isDragging: d, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = J4(), { isActive: m } = u0(), g = m(t.href, {
|
|
36818
36819
|
exact: t.exactMatch
|
|
36819
36820
|
}), v = Ce(!1), [y, b] = X(!1), w = r === 0, k = r === s - 1, C = s === 1, S = ke(() => {
|
|
36820
36821
|
const N = [];
|
|
@@ -36851,7 +36852,7 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
36851
36852
|
exactMatch: t.exactMatch,
|
|
36852
36853
|
className: F("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline", _ && "pointer-events-none"),
|
|
36853
36854
|
draggable: !1,
|
|
36854
|
-
children: [t.type === "icon" ? f(
|
|
36855
|
+
children: [t.type === "icon" ? f(je, {
|
|
36855
36856
|
icon: t.icon,
|
|
36856
36857
|
size: "md",
|
|
36857
36858
|
className: F("transition-colors", g ? "text-f1-icon-bold" : "text-f1-icon")
|
|
@@ -36876,7 +36877,7 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
36876
36877
|
children: f("div", {
|
|
36877
36878
|
className: "flex items-center justify-center",
|
|
36878
36879
|
role: "list",
|
|
36879
|
-
children: f(
|
|
36880
|
+
children: f(je, {
|
|
36880
36881
|
icon: Vc,
|
|
36881
36882
|
size: "sm"
|
|
36882
36883
|
})
|
|
@@ -36927,7 +36928,7 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
36927
36928
|
duration: c ? 0 : 0.1
|
|
36928
36929
|
},
|
|
36929
36930
|
className: "h-3 w-3",
|
|
36930
|
-
children: f(
|
|
36931
|
+
children: f(je, {
|
|
36931
36932
|
icon: Wr,
|
|
36932
36933
|
size: "xs",
|
|
36933
36934
|
className: "text-f1-icon-secondary"
|
|
@@ -37031,9 +37032,9 @@ const Uee = ({ item: t, active: e }) => x("div", {
|
|
|
37031
37032
|
}) : p;
|
|
37032
37033
|
};
|
|
37033
37034
|
function u4e({ tree: t, onCollapse: e, onSort: n, onFavoritesChange: i, favorites: r }) {
|
|
37034
|
-
const s = Ce(null), o = t.filter((m) => m.isSortable === !1), [a, l] = X(t.filter((m) => m.isSortable !== !1)), [c, d] = X(0), u =
|
|
37035
|
+
const s = Ce(null), o = t.filter((m) => m.isSortable === !1), [a, l] = X(t.filter((m) => m.isSortable !== !1)), [c, d] = X(0), u = Ze((m) => {
|
|
37035
37036
|
l(m);
|
|
37036
|
-
}, []), h =
|
|
37037
|
+
}, []), h = Ze((m) => {
|
|
37037
37038
|
n == null || n(m);
|
|
37038
37039
|
}, [n]), p = jee();
|
|
37039
37040
|
return f(Wee, {
|
|
@@ -37055,16 +37056,16 @@ function u4e({ tree: t, onCollapse: e, onSort: n, onFavoritesChange: i, favorite
|
|
|
37055
37056
|
});
|
|
37056
37057
|
}
|
|
37057
37058
|
function Kee({ nonSortableItems: t, sortableItems: e, setSortableItems: n, containerRef: i, onCollapse: r, onDragEnd: s, favorites: o = [], onFavoritesChange: a, forceUpdate: l, disableDragging: c = !1 }) {
|
|
37058
|
-
const d =
|
|
37059
|
+
const d = Je(), { isDragging: u } = J4(), h = t.some((j) => j.isRoot), p = t.filter((j) => !j.isRoot).length > 0, m = e.length > 0, g = Ce(null), [v, y] = X(o), b = o.length > 0;
|
|
37059
37060
|
Ae(() => {
|
|
37060
37061
|
JSON.stringify(o) !== JSON.stringify(v) && y(o);
|
|
37061
37062
|
}, [o]);
|
|
37062
37063
|
const w = (j) => {
|
|
37063
37064
|
y(j);
|
|
37064
|
-
}, k =
|
|
37065
|
+
}, k = Ze((j) => {
|
|
37065
37066
|
const z = v.filter((Z) => Z.href !== j.href);
|
|
37066
37067
|
y(z), a == null || a(z);
|
|
37067
|
-
}, [v, a]), C =
|
|
37068
|
+
}, [v, a]), C = Ze((j, z) => {
|
|
37068
37069
|
if (z < 0 || z >= v.length) return;
|
|
37069
37070
|
const Z = [...v], [ae] = Z.splice(j, 1);
|
|
37070
37071
|
Z.splice(z, 0, ae), y(Z), a == null || a(Z);
|
|
@@ -37164,7 +37165,7 @@ function h4e({ onClick: t, placeholder: e, shortcut: n = ["cmd", "k"], ...i }) {
|
|
|
37164
37165
|
...i,
|
|
37165
37166
|
children: [x("div", {
|
|
37166
37167
|
className: "flex items-center gap-1",
|
|
37167
|
-
children: [f(
|
|
37168
|
+
children: [f(je, {
|
|
37168
37169
|
icon: d0,
|
|
37169
37170
|
size: "md"
|
|
37170
37171
|
}), f("span", {
|
|
@@ -37200,7 +37201,7 @@ function p4e({ header: t, body: e, footer: n, onFooterDropdownClick: i }) {
|
|
|
37200
37201
|
threshold: 1
|
|
37201
37202
|
}), [c, d] = n2({
|
|
37202
37203
|
threshold: 1
|
|
37203
|
-
}), u =
|
|
37204
|
+
}), u = Je(), h = {
|
|
37204
37205
|
x: {
|
|
37205
37206
|
ease: r !== "locked" ? s ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
|
|
37206
37207
|
duration: o ? 0 : r !== "locked" && !s ? 0.3 : 0.2
|
|
@@ -37347,7 +37348,7 @@ const Jee = Rn({
|
|
|
37347
37348
|
rejected: "critical"
|
|
37348
37349
|
}, i9 = {
|
|
37349
37350
|
approved: {
|
|
37350
|
-
icon:
|
|
37351
|
+
icon: Ls,
|
|
37351
37352
|
type: "positive",
|
|
37352
37353
|
size: "sm"
|
|
37353
37354
|
},
|
|
@@ -37371,7 +37372,7 @@ function r9(t) {
|
|
|
37371
37372
|
return ete[t ?? "neutral"] ?? 0;
|
|
37372
37373
|
}
|
|
37373
37374
|
const nte = ({ title: t, approvalsRequired: e = 1, status: n, approvers: i }) => {
|
|
37374
|
-
const r =
|
|
37375
|
+
const r = Je(), s = e === 1 ? r.approvals.requiredNumbers.one : r.approvals.requiredNumbers.other.replace("{{count}}", e.toString()), o = r.approvals.statuses[n], a = ke(() => i.map((l) => {
|
|
37375
37376
|
const c = tte(l.status);
|
|
37376
37377
|
return {
|
|
37377
37378
|
firstName: l.firstName,
|
|
@@ -37410,7 +37411,7 @@ const nte = ({ title: t, approvalsRequired: e = 1, status: n, approvers: i }) =>
|
|
|
37410
37411
|
})]
|
|
37411
37412
|
});
|
|
37412
37413
|
}, g4e = ({ steps: t }) => {
|
|
37413
|
-
const n =
|
|
37414
|
+
const n = Je().approvals.history, i = t.findIndex((r) => r.status === "pending");
|
|
37414
37415
|
return x("div", {
|
|
37415
37416
|
className: "flex w-full flex-col gap-4",
|
|
37416
37417
|
children: [f("h2", {
|
|
@@ -37512,7 +37513,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37512
37513
|
children: t
|
|
37513
37514
|
})]
|
|
37514
37515
|
}), dte = ({ isOpen: t, secondaryActions: e = [], selectedNumber: n = void 0, onUnselect: i, warningMessage: r, ...s }) => {
|
|
37515
|
-
const o =
|
|
37516
|
+
const o = Je(), a = n === 1 ? o.status.selected.singular : o.status.selected.plural, l = e.slice(0, 2), c = e.slice(2).map((m) => ({
|
|
37516
37517
|
...m,
|
|
37517
37518
|
critical: m.critical || !1
|
|
37518
37519
|
})), d = ke(() => fte(s.primaryActions ?? []), [s.primaryActions]), u = ke(() => d.map((m) => ({
|
|
@@ -37525,7 +37526,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37525
37526
|
description: g.description,
|
|
37526
37527
|
disabled: g.disabled
|
|
37527
37528
|
}))
|
|
37528
|
-
})), [d]), h = ke(() => d.length === 1 && d[0].items.length === 1 ? d[0].items[0] : null, [d]), p =
|
|
37529
|
+
})), [d]), h = ke(() => d.length === 1 && d[0].items.length === 1 ? d[0].items[0] : null, [d]), p = Ze((m) => d.flatMap((g) => g.items).find((g) => g.label === m), [d]);
|
|
37529
37530
|
return f(ut, {
|
|
37530
37531
|
children: t && x(xe.div, {
|
|
37531
37532
|
initial: {
|
|
@@ -37582,7 +37583,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37582
37583
|
onClick: h.onClick,
|
|
37583
37584
|
disabled: h.disabled,
|
|
37584
37585
|
size: "lg"
|
|
37585
|
-
}) : f(
|
|
37586
|
+
}) : f(ws, {
|
|
37586
37587
|
items: u,
|
|
37587
37588
|
onClick: (m) => {
|
|
37588
37589
|
var v;
|
|
@@ -37611,7 +37612,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37611
37612
|
onClick: h.onClick,
|
|
37612
37613
|
disabled: h.disabled
|
|
37613
37614
|
}) : f(Ke, {
|
|
37614
|
-
children: f(
|
|
37615
|
+
children: f(ws, {
|
|
37615
37616
|
items: u,
|
|
37616
37617
|
onClick: (m) => {
|
|
37617
37618
|
var v;
|
|
@@ -37639,7 +37640,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37639
37640
|
label: i[0].label,
|
|
37640
37641
|
loading: i[0].loading,
|
|
37641
37642
|
disabled: i[0].disabled
|
|
37642
|
-
}) : i.length > 1 && f(
|
|
37643
|
+
}) : i.length > 1 && f(ws, {
|
|
37643
37644
|
size: "md",
|
|
37644
37645
|
items: i.map((l, c) => ({
|
|
37645
37646
|
label: l.label,
|
|
@@ -37666,21 +37667,21 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37666
37667
|
onOpenChange: a,
|
|
37667
37668
|
children: f(Ft, {
|
|
37668
37669
|
variant: "outline",
|
|
37669
|
-
icon:
|
|
37670
|
+
icon: ks,
|
|
37670
37671
|
label: "Actions",
|
|
37671
37672
|
hideLabel: !0,
|
|
37672
37673
|
pressed: o
|
|
37673
37674
|
})
|
|
37674
37675
|
})]
|
|
37675
37676
|
});
|
|
37676
|
-
}, a9 = ({ loading: t }) => t ? f(
|
|
37677
|
+
}, a9 = ({ loading: t }) => t ? f(je, {
|
|
37677
37678
|
icon: Kx,
|
|
37678
37679
|
className: "animate-spin"
|
|
37679
|
-
}) : f(
|
|
37680
|
+
}) : f(je, {
|
|
37680
37681
|
icon: d0,
|
|
37681
37682
|
className: "text"
|
|
37682
37683
|
}), hte = ({ value: t, onChange: e, loading: n = !1 }) => {
|
|
37683
|
-
const [i, r] = X(!1), s = vo(), o = Ce(null), a = Ce(null), l =
|
|
37684
|
+
const [i, r] = X(!1), s = vo(), o = Ce(null), a = Ce(null), l = Je(), c = () => {
|
|
37684
37685
|
e(void 0), r(!1), a != null && a.current && (a.current.value = "");
|
|
37685
37686
|
};
|
|
37686
37687
|
QN(o, () => {
|
|
@@ -37754,7 +37755,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37754
37755
|
},
|
|
37755
37756
|
role: "button",
|
|
37756
37757
|
"aria-label": l.actions.clear,
|
|
37757
|
-
children: f(
|
|
37758
|
+
children: f(je, {
|
|
37758
37759
|
icon: sl,
|
|
37759
37760
|
size: "md",
|
|
37760
37761
|
color: "secondary"
|
|
@@ -37802,7 +37803,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37802
37803
|
},
|
|
37803
37804
|
role: "button",
|
|
37804
37805
|
"aria-label": l.actions.clear,
|
|
37805
|
-
children: f(
|
|
37806
|
+
children: f(je, {
|
|
37806
37807
|
icon: sl,
|
|
37807
37808
|
size: "md",
|
|
37808
37809
|
color: "secondary"
|
|
@@ -37816,7 +37817,7 @@ const fte = (t) => Array.isArray(t) ? t.every((e) => cte(e)) ? t : [{
|
|
|
37816
37817
|
})
|
|
37817
37818
|
});
|
|
37818
37819
|
}, pte = (t = {}, e) => {
|
|
37819
|
-
const n =
|
|
37820
|
+
const n = Je(), i = {
|
|
37820
37821
|
"no-data": {
|
|
37821
37822
|
emoji: "📄",
|
|
37822
37823
|
title: n.collections.emptyStates.noData.title,
|
|
@@ -37916,7 +37917,7 @@ const A_ = ({ className: t, ...e }) => f(j0, {
|
|
|
37916
37917
|
"aria-label": "Go to previous page",
|
|
37917
37918
|
className: F("border border-solid border-f1-border hover:border-f1-border-hover hover:bg-f1-background", t),
|
|
37918
37919
|
...e,
|
|
37919
|
-
children: f(
|
|
37920
|
+
children: f(je, {
|
|
37920
37921
|
icon: f0
|
|
37921
37922
|
})
|
|
37922
37923
|
});
|
|
@@ -37926,8 +37927,8 @@ const N_ = ({ className: t, ...e }) => f(j0, {
|
|
|
37926
37927
|
"aria-label": "Go to next page",
|
|
37927
37928
|
className: F("border border-solid border-f1-border hover:border-f1-border-hover hover:bg-f1-background", t),
|
|
37928
37929
|
...e,
|
|
37929
|
-
children: f(
|
|
37930
|
-
icon:
|
|
37930
|
+
children: f(je, {
|
|
37931
|
+
icon: Ts
|
|
37931
37932
|
})
|
|
37932
37933
|
});
|
|
37933
37934
|
N_.displayName = "PaginationNext";
|
|
@@ -37936,13 +37937,13 @@ const M_ = ({ className: t, ...e }) => f("span", {
|
|
|
37936
37937
|
"aria-hidden": !0,
|
|
37937
37938
|
className: F("flex h-9 w-9 items-center justify-center", t),
|
|
37938
37939
|
...e,
|
|
37939
|
-
children: f(
|
|
37940
|
+
children: f(je, {
|
|
37940
37941
|
icon: Vc
|
|
37941
37942
|
})
|
|
37942
37943
|
});
|
|
37943
37944
|
M_.displayName = "PaginationEllipsis";
|
|
37944
37945
|
function gte({ totalPages: t, currentPage: e = 1, onPageChange: n, showControls: i = !0, ariaLabel: r = "Page navigation", visibleRange: s = 3, hasNextPage: o = !0, disabled: a = !1 }) {
|
|
37945
|
-
const l = t === 0, c =
|
|
37946
|
+
const l = t === 0, c = Ze((u) => {
|
|
37946
37947
|
n && (l || u >= 1 && u <= t) && n(u);
|
|
37947
37948
|
}, [n, t, l]), d = ke(() => {
|
|
37948
37949
|
if (l) return [];
|
|
@@ -38003,7 +38004,7 @@ function gte({ totalPages: t, currentPage: e = 1, onPageChange: n, showControls:
|
|
|
38003
38004
|
});
|
|
38004
38005
|
}
|
|
38005
38006
|
const X4 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
38006
|
-
const i =
|
|
38007
|
+
const i = Je();
|
|
38007
38008
|
return tM(t) && x("div", {
|
|
38008
38009
|
className: F("flex w-full items-center justify-between px-4", n),
|
|
38009
38010
|
children: [f("span", {
|
|
@@ -38234,7 +38235,7 @@ function wte(t, e = {}) {
|
|
|
38234
38235
|
const { lanes: n } = t;
|
|
38235
38236
|
if (!ke(() => n && n.length > 0, [n]))
|
|
38236
38237
|
throw new Error("Lanes has not been configured on data source");
|
|
38237
|
-
const [r, s] = X({}), o =
|
|
38238
|
+
const [r, s] = X({}), o = Ze((v, y) => {
|
|
38238
38239
|
s((b) => ({
|
|
38239
38240
|
...b,
|
|
38240
38241
|
[v]: y
|
|
@@ -38294,7 +38295,7 @@ const bte = (t) => {
|
|
|
38294
38295
|
const [i, r] = X(/* @__PURE__ */ new Map()), [s, o] = X({
|
|
38295
38296
|
selectItemsStatus: /* @__PURE__ */ new Map(),
|
|
38296
38297
|
clearCallback: /* @__PURE__ */ new Map()
|
|
38297
|
-
}), a =
|
|
38298
|
+
}), a = Ze(() => {
|
|
38298
38299
|
s.clearCallback.forEach((c) => c());
|
|
38299
38300
|
}, [s.clearCallback]);
|
|
38300
38301
|
Ae(() => {
|
|
@@ -38777,8 +38778,8 @@ function Ute({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
38777
38778
|
if (W.length > 0) {
|
|
38778
38779
|
let J = -1, ie = Number.POSITIVE_INFINITY, be = "top";
|
|
38779
38780
|
for (const ve of W) {
|
|
38780
|
-
const Be = ve.getAttribute("data-index"),
|
|
38781
|
-
Rt < ie && (ie = Rt, J =
|
|
38781
|
+
const Be = ve.getAttribute("data-index"), Xe = Be ? Number(Be) : -1, gt = ve.getBoundingClientRect(), vt = gt.top + gt.height / 2, Rt = Math.abs(K - vt);
|
|
38782
|
+
Rt < ie && (ie = Rt, J = Xe, be = K < vt ? "top" : "bottom");
|
|
38782
38783
|
}
|
|
38783
38784
|
he && _e >= 0 && (J === _e && be === "top" || J === _e && be === "bottom" || J === _e - 1 && be === "bottom" || J === _e + 1 && be === "top") ? (k(null), S(null)) : (k(J >= 0 ? J : null), S(J >= 0 ? be : null));
|
|
38784
38785
|
}
|
|
@@ -39286,7 +39287,7 @@ const qte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
39286
39287
|
o(a), e == null || e(a);
|
|
39287
39288
|
},
|
|
39288
39289
|
children: f(Ft, {
|
|
39289
|
-
icon:
|
|
39290
|
+
icon: ks,
|
|
39290
39291
|
label: i,
|
|
39291
39292
|
hideLabel: !0,
|
|
39292
39293
|
variant: "ghost",
|
|
@@ -39409,7 +39410,7 @@ const qte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
39409
39410
|
})]
|
|
39410
39411
|
})]
|
|
39411
39412
|
}), Jte = ({ source: t, item: e, selectedItems: n, handleSelectItemChange: i, fields: r, itemDefinition: s }) => {
|
|
39412
|
-
const o =
|
|
39413
|
+
const o = Je(), { actions: a } = o, l = (b, w) => H_(b, w, "list", o), c = t.itemUrl ? t.itemUrl(e) : void 0, d = t.itemOnClick ? t.itemOnClick(e) : void 0, u = t.selectable ? t.selectable(e) : void 0, h = s(e), { primaryItemActions: p, dropdownItemActions: m, mobileDropdownItemActions: g, handleDropDownOpenChange: v, dropDownOpen: y } = B_({
|
|
39413
39414
|
source: t,
|
|
39414
39415
|
item: e
|
|
39415
39416
|
});
|
|
@@ -39780,10 +39781,10 @@ const qte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
39780
39781
|
onPointerDown: (a) => {
|
|
39781
39782
|
t.sortable && s.start(a);
|
|
39782
39783
|
},
|
|
39783
|
-
children: t.sortable ? f(
|
|
39784
|
+
children: t.sortable ? f(je, {
|
|
39784
39785
|
icon: da,
|
|
39785
39786
|
size: "xs"
|
|
39786
|
-
}) : f(
|
|
39787
|
+
}) : f(je, {
|
|
39787
39788
|
icon: k7,
|
|
39788
39789
|
size: "sm"
|
|
39789
39790
|
})
|
|
@@ -39838,7 +39839,7 @@ const qte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
|
|
|
39838
39839
|
}, o.id))
|
|
39839
39840
|
});
|
|
39840
39841
|
}, sne = ({ columns: t, frozenColumns: e, allowSorting: n, allowHiding: i }) => {
|
|
39841
|
-
const r =
|
|
39842
|
+
const r = Je(), { settings: s, setVisualizationSettings: o } = W0(), { columnsWithStatus: a } = V_(t, e, s.visualization.table, n, i), l = ke(() => a.filter((h) => i || h.visible).map((h) => ({
|
|
39842
39843
|
id: h.column.id,
|
|
39843
39844
|
label: h.column.label,
|
|
39844
39845
|
sortable: h.sortable,
|
|
@@ -40046,7 +40047,7 @@ const lne = {
|
|
|
40046
40047
|
});
|
|
40047
40048
|
};
|
|
40048
40049
|
function Mr({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r = !1, sticky: s, colSpan: o, className: a, loading: l = !1, nestedRowProps: c }) {
|
|
40049
|
-
const { isScrolled: d, isScrolledRight: u } = K_(), { actions: h } =
|
|
40050
|
+
const { isScrolled: d, isScrolledRight: u } = K_(), { actions: h } = Je(), p = (s == null ? void 0 : s.left) !== void 0, m = (s == null ? void 0 : s.right) !== void 0, g = p || m, v = s == null ? void 0 : s.left, y = s == null ? void 0 : s.right, b = J_(i), w = Ce(null), k = (c == null ? void 0 : c.depth) ?? 0, C = (c == null ? void 0 : c.nestedVariant) === "detailed", S = Q_(r, !!(c != null && c.tableWithChildren)) && {
|
|
40050
40051
|
marginLeft: `${(k + (C ? 0 : 1)) * U0}px`
|
|
40051
40052
|
};
|
|
40052
40053
|
return x(G_, {
|
|
@@ -40144,7 +40145,7 @@ function n1({ children: t, width: e = "auto", sortState: n = "none", onSortClick
|
|
|
40144
40145
|
children: f("div", {
|
|
40145
40146
|
className: F("flex h-5 w-5 items-center justify-center rounded-xs", zt()),
|
|
40146
40147
|
tabIndex: 0,
|
|
40147
|
-
children: f(
|
|
40148
|
+
children: f(je, {
|
|
40148
40149
|
icon: s,
|
|
40149
40150
|
size: "sm"
|
|
40150
40151
|
})
|
|
@@ -40173,7 +40174,7 @@ function n1({ children: t, width: e = "auto", sortState: n = "none", onSortClick
|
|
|
40173
40174
|
duration: 0.2,
|
|
40174
40175
|
ease: [0.175, 0.885, 0.32, 1.275]
|
|
40175
40176
|
},
|
|
40176
|
-
children: f(
|
|
40177
|
+
children: f(je, {
|
|
40177
40178
|
icon: $c,
|
|
40178
40179
|
size: "xs"
|
|
40179
40180
|
})
|
|
@@ -40201,7 +40202,7 @@ function n1({ children: t, width: e = "auto", sortState: n = "none", onSortClick
|
|
|
40201
40202
|
duration: 0.2,
|
|
40202
40203
|
ease: [0.175, 0.885, 0.32, 1.275]
|
|
40203
40204
|
},
|
|
40204
|
-
children: f(
|
|
40205
|
+
children: f(je, {
|
|
40205
40206
|
icon: $c,
|
|
40206
40207
|
size: "xs"
|
|
40207
40208
|
})
|
|
@@ -40247,12 +40248,12 @@ function eS({ children: t, sticky: e = !1 }) {
|
|
|
40247
40248
|
children: t
|
|
40248
40249
|
});
|
|
40249
40250
|
}
|
|
40250
|
-
const
|
|
40251
|
+
const Ks = B(({ children: t, selected: e, className: n, sticky: i }, r) => f(U_, {
|
|
40251
40252
|
ref: r,
|
|
40252
40253
|
className: F(e && "bg-f1-background-selected hover:bg-f1-background-selected", n, "relative before:pointer-events-none before:absolute before:inset-0 before:z-10 before:content-['']", "[&:has(.table-cell-action-button:focus)]:before:rounded-sm [&:has(.table-cell-action-button:focus)]:before:ring-1 [&:has(.table-cell-action-button:focus)]:before:ring-inset [&:has(.table-cell-action-button:focus)]:before:ring-f1-special-ring", "[&:has(a:focus)]:before:rounded-sm [&:has(a:focus)]:before:ring-1 [&:has(a:focus)]:before:ring-inset [&:has(a:focus)]:before:ring-f1-special-ring", i && "hover:bg-f1-background-hover! sticky top-10 z-50 bg-f1-background"),
|
|
40253
40254
|
children: t
|
|
40254
40255
|
}));
|
|
40255
|
-
|
|
40256
|
+
Ks.displayName = "TableRow";
|
|
40256
40257
|
function Cne({ children: t, loading: e = !1 }) {
|
|
40257
40258
|
const [n, i] = X(!1), [r, s] = X(!1), o = Ce(null);
|
|
40258
40259
|
return Ae(() => {
|
|
@@ -40312,7 +40313,7 @@ function _ne({ columns: t = 5 }) {
|
|
|
40312
40313
|
role: "presentation",
|
|
40313
40314
|
"aria-hidden": "true",
|
|
40314
40315
|
children: [f(eS, {
|
|
40315
|
-
children: f(
|
|
40316
|
+
children: f(Ks, {
|
|
40316
40317
|
children: Array.from({
|
|
40317
40318
|
length: t
|
|
40318
40319
|
}).map((e, n) => f(n1, {
|
|
@@ -40324,7 +40325,7 @@ function _ne({ columns: t = 5 }) {
|
|
|
40324
40325
|
}), f(Z_, {
|
|
40325
40326
|
children: Array.from({
|
|
40326
40327
|
length: 5
|
|
40327
|
-
}).map((e, n) => f(
|
|
40328
|
+
}).map((e, n) => f(Ks, {
|
|
40328
40329
|
children: Array.from({
|
|
40329
40330
|
length: t
|
|
40330
40331
|
}).map((i, r) => f(Mr, {
|
|
@@ -40347,7 +40348,7 @@ function Sne({ children: t }) {
|
|
|
40347
40348
|
const tS = (t, e, n) => {
|
|
40348
40349
|
const i = n ? 52 : 0;
|
|
40349
40350
|
return {
|
|
40350
|
-
getStickyPosition:
|
|
40351
|
+
getStickyPosition: Ze(
|
|
40351
40352
|
(s) => s < t && e.length > 1 ? {
|
|
40352
40353
|
left: e.slice(0, Math.max(0, s)).reduce(
|
|
40353
40354
|
(o, a) => o + (a.width ?? 0),
|
|
@@ -40359,12 +40360,12 @@ const tS = (t, e, n) => {
|
|
|
40359
40360
|
checkColumnWidth: i
|
|
40360
40361
|
};
|
|
40361
40362
|
}, Ene = (t) => {
|
|
40362
|
-
const [e, n] = X(null), [i, r] = X(null), [s, o] = X(0), a = Ce(null), l = Ce(null), c =
|
|
40363
|
+
const [e, n] = X(null), [i, r] = X(null), [s, o] = X(0), a = Ce(null), l = Ce(null), c = Ze(
|
|
40363
40364
|
(u) => {
|
|
40364
40365
|
a.current = u, u && n(u);
|
|
40365
40366
|
},
|
|
40366
40367
|
[n]
|
|
40367
|
-
), d =
|
|
40368
|
+
), d = Ze(
|
|
40368
40369
|
(u) => {
|
|
40369
40370
|
l.current = u, u && r(u);
|
|
40370
40371
|
},
|
|
@@ -40425,7 +40426,7 @@ const tS = (t, e, n) => {
|
|
|
40425
40426
|
p9(i == null ? void 0 : i[t])
|
|
40426
40427
|
), [a, l] = X((m = i == null ? void 0 : i[t]) == null ? void 0 : m.paginationInfo), [c, d] = X(!1), [u, h] = X(
|
|
40427
40428
|
m9(i == null ? void 0 : i[t])
|
|
40428
|
-
), p =
|
|
40429
|
+
), p = Ze(async () => {
|
|
40429
40430
|
var w;
|
|
40430
40431
|
if (s.length > 0 && !(a != null && a.hasMore)) return s;
|
|
40431
40432
|
d(!0);
|
|
@@ -40534,7 +40535,7 @@ const tS = (t, e, n) => {
|
|
|
40534
40535
|
rowId: s,
|
|
40535
40536
|
item: t.item,
|
|
40536
40537
|
source: t.source
|
|
40537
|
-
}), { calculatedHeight: u, setFirstChildRef: h, setLastChildRef: p } = Ene(c), m = n && l, g = n, v = n && (d == null ? void 0 : d.hasMore), y =
|
|
40538
|
+
}), { calculatedHeight: u, setFirstChildRef: h, setLastChildRef: p } = Ene(c), m = n && l, g = n, v = n && (d == null ? void 0 : d.hasMore), y = Ze((T) => {
|
|
40538
40539
|
r.current = T, typeof e == "function" && e(T);
|
|
40539
40540
|
}, [e]), b = () => {
|
|
40540
40541
|
const T = !n;
|
|
@@ -40631,7 +40632,7 @@ const tS = (t, e, n) => {
|
|
|
40631
40632
|
});
|
|
40632
40633
|
}, g9 = B(Bne), iS = B(Hne), $ne = ({ source: t, item: e, onCheckedChange: n, selectedItems: i, columns: r, frozenColumnsLeft: s, checkColumnWidth: o, index: a, groupIndex: l, noBorder: c = !1, loading: d = !1, nestedRowProps: u, tableWithChildren: h }, p) => {
|
|
40633
40634
|
var N;
|
|
40634
|
-
const m = t.itemUrl ? t.itemUrl(e) : void 0, g = t.itemOnClick ? t.itemOnClick(e) : void 0, v = t.selectable ? t.selectable(e) : void 0, y = !!((N = t.itemsWithChildren) != null && N.call(t, e)), b =
|
|
40635
|
+
const m = t.itemUrl ? t.itemUrl(e) : void 0, g = t.itemOnClick ? t.itemOnClick(e) : void 0, v = t.selectable ? t.selectable(e) : void 0, y = !!((N = t.itemsWithChildren) != null && N.call(t, e)), b = Je(), w = (O, j) => H_(O, j, "table", b), k = `table-row-${l}-${a}`, { getStickyPosition: C } = tS(s, r, !!t.selectable), { primaryItemActions: S, dropdownItemActions: E, mobileDropdownItemActions: T, handleDropDownOpenChange: _, dropDownOpen: L } = B_({
|
|
40635
40636
|
source: t,
|
|
40636
40637
|
item: e
|
|
40637
40638
|
}), M = (u == null ? void 0 : u.hasLoadedChildren) === void 0 || (u == null ? void 0 : u.hasLoadedChildren);
|
|
@@ -40647,7 +40648,7 @@ const tS = (t, e, n) => {
|
|
|
40647
40648
|
groupIndex: l,
|
|
40648
40649
|
nestedRowProps: u,
|
|
40649
40650
|
tableWithChildren: h
|
|
40650
|
-
}, k) : x(
|
|
40651
|
+
}, k) : x(Ks, {
|
|
40651
40652
|
ref: p,
|
|
40652
40653
|
className: F("group transition-colors hover:bg-f1-background-hover", "after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-['']", c && "after:bg-white-100", !!(u != null && u.onLoadMoreChildren) && "hover:bg-transparent"),
|
|
40653
40654
|
children: [t.selectable && f(Mr, {
|
|
@@ -40709,7 +40710,7 @@ const tS = (t, e, n) => {
|
|
|
40709
40710
|
}, k);
|
|
40710
40711
|
}, hl = B($ne), Vne = ({ columns: t, source: e, frozenColumns: n = 0, onSelectItems: i, onLoadData: r, onLoadError: s, allowColumnHiding: o, allowColumnReordering: a }) => {
|
|
40711
40712
|
var q, ne, Y;
|
|
40712
|
-
const l =
|
|
40713
|
+
const l = Je(), [c] = X(() => xe.create(hl)), { settings: d } = W0(), { columns: u } = V_(t, n, (q = d.visualization) == null ? void 0 : q.table, a, o), { data: h, paginationInfo: p, setPage: m, isInitialLoading: g, isLoadingMore: v, loadMore: y, summaries: b } = z0(e, {
|
|
40713
40714
|
onError: (K) => {
|
|
40714
40715
|
s(K);
|
|
40715
40716
|
}
|
|
@@ -40762,7 +40763,7 @@ const tS = (t, e, n) => {
|
|
|
40762
40763
|
loading: C,
|
|
40763
40764
|
children: [f(eS, {
|
|
40764
40765
|
sticky: !0,
|
|
40765
|
-
children: x(
|
|
40766
|
+
children: x(Ks, {
|
|
40766
40767
|
children: [e.selectable && f(n1, {
|
|
40767
40768
|
width: G,
|
|
40768
40769
|
sticky: {
|
|
@@ -40807,7 +40808,7 @@ const tS = (t, e, n) => {
|
|
|
40807
40808
|
children: [(h == null ? void 0 : h.type) === "grouped" && h.groups.map((K, oe) => {
|
|
40808
40809
|
const se = K.itemCount;
|
|
40809
40810
|
return x(Hr, {
|
|
40810
|
-
children: [x(
|
|
40811
|
+
children: [x(Ks, {
|
|
40811
40812
|
sticky: !0,
|
|
40812
40813
|
children: [f(Mr, {
|
|
40813
40814
|
sticky: {
|
|
@@ -40862,7 +40863,7 @@ const tS = (t, e, n) => {
|
|
|
40862
40863
|
tableWithChildren: U
|
|
40863
40864
|
}, `row-${oe}`)), (p == null ? void 0 : p.type) === "infinite-scroll" && v && Array.from({
|
|
40864
40865
|
length: 5
|
|
40865
|
-
}).map((K, oe) => f(
|
|
40866
|
+
}).map((K, oe) => f(Ks, {
|
|
40866
40867
|
children: Array.from({
|
|
40867
40868
|
length: Ve
|
|
40868
40869
|
}).map((se, ge) => f(Mr, {
|
|
@@ -40879,7 +40880,7 @@ const tS = (t, e, n) => {
|
|
|
40879
40880
|
})
|
|
40880
40881
|
})]
|
|
40881
40882
|
}), j && f(Sne, {
|
|
40882
|
-
children: x(
|
|
40883
|
+
children: x(Ks, {
|
|
40883
40884
|
className: F(j.sticky && "sticky bottom-0 z-10 bg-f1-background shadow-[0_-1px_0_0_var(--f1-border-secondary)] hover:bg-f1-background", "font-medium"),
|
|
40884
40885
|
children: [e.selectable && f(Mr, {
|
|
40885
40886
|
width: G,
|
|
@@ -40996,7 +40997,7 @@ const tS = (t, e, n) => {
|
|
|
40996
40997
|
tmpFullWidth: s
|
|
40997
40998
|
});
|
|
40998
40999
|
}, _d = "__no-sorting__", jne = ({ currentSortings: t, sortings: e, onChange: n }) => {
|
|
40999
|
-
const i =
|
|
41000
|
+
const i = Je(), r = [{
|
|
41000
41001
|
label: i.collections.sorting.noSorting,
|
|
41001
41002
|
value: _d
|
|
41002
41003
|
}, ...Object.entries(e || {}).map(([l, c]) => ({
|
|
@@ -41044,7 +41045,7 @@ const tS = (t, e, n) => {
|
|
|
41044
41045
|
})
|
|
41045
41046
|
});
|
|
41046
41047
|
}, Wne = ({ visualizations: t, currentVisualization: e, onVisualizationChange: n }) => {
|
|
41047
|
-
const i =
|
|
41048
|
+
const i = Je(), r = (o) => {
|
|
41048
41049
|
n(o);
|
|
41049
41050
|
}, s = (o) => o.type === "custom" ? {
|
|
41050
41051
|
icon: o.icon,
|
|
@@ -41060,7 +41061,7 @@ const tS = (t, e, n) => {
|
|
|
41060
41061
|
return x("button", {
|
|
41061
41062
|
className: F("flex w-full flex-col items-center justify-center gap-1 rounded-sm p-2 font-medium text-f1-foreground-secondary transition-colors", e === a && "bg-f1-background-secondary text-f1-foreground", zt()),
|
|
41062
41063
|
onClick: () => r(a),
|
|
41063
|
-
children: [f(
|
|
41064
|
+
children: [f(je, {
|
|
41064
41065
|
icon: l
|
|
41065
41066
|
}), c]
|
|
41066
41067
|
}, o.type);
|
|
@@ -41087,7 +41088,7 @@ const tS = (t, e, n) => {
|
|
|
41087
41088
|
const e = rS(t);
|
|
41088
41089
|
return e ? e(t.options) : null;
|
|
41089
41090
|
}, Kne = ({ visualizations: t, currentVisualization: e, onVisualizationChange: n, grouping: i, currentGrouping: r, onGroupingChange: s, sortings: o, currentSortings: a, onSortingsChange: l }) => {
|
|
41090
|
-
const c =
|
|
41091
|
+
const c = Je(), d = i ? Object.keys(i.groupBy).length + (i.mandatory ? 1 : 0) : 0, [u, h] = X(!1), p = (T) => {
|
|
41091
41092
|
h(!1), n(T);
|
|
41092
41093
|
}, m = (T) => {
|
|
41093
41094
|
s(T);
|
|
@@ -41167,7 +41168,7 @@ const tS = (t, e, n) => {
|
|
|
41167
41168
|
});
|
|
41168
41169
|
}, sS = B(({ value: t, compareToValue: e, onDateChange: n, disabled: i, error: r, className: s, highlighted: o, onClick: a, navigation: l, granularity: c, hideGoToCurrent: d, ...u }, h) => {
|
|
41169
41170
|
var E;
|
|
41170
|
-
const p =
|
|
41171
|
+
const p = Je(), m = ke(() => {
|
|
41171
41172
|
if (!t || !t.value)
|
|
41172
41173
|
return [p.date.selectDate];
|
|
41173
41174
|
const T = x3[t.granularity];
|
|
@@ -41227,7 +41228,7 @@ const tS = (t, e, n) => {
|
|
|
41227
41228
|
className: F(o && "bg-f1-background-secondary-hover")
|
|
41228
41229
|
}), l && f(Te, {
|
|
41229
41230
|
variant: "ghost",
|
|
41230
|
-
icon:
|
|
41231
|
+
icon: Ts,
|
|
41231
41232
|
label: "Next",
|
|
41232
41233
|
hideLabel: !0,
|
|
41233
41234
|
size: "sm",
|
|
@@ -41293,7 +41294,7 @@ function Zne({ onSelect: t, defaultValue: e, presets: n = [], granularities: i =
|
|
|
41293
41294
|
});
|
|
41294
41295
|
}
|
|
41295
41296
|
function Jne({ filter: t, value: e, onChange: n }) {
|
|
41296
|
-
const i =
|
|
41297
|
+
const i = Je(), r = {
|
|
41297
41298
|
granularity: "day",
|
|
41298
41299
|
...t
|
|
41299
41300
|
}, s = Array.isArray(r.granularity) ? r.granularity : [r.granularity], o = vM(e.granularity || s[0]);
|
|
@@ -41462,7 +41463,7 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41462
41463
|
..._e[0],
|
|
41463
41464
|
items: ((ct = _e[0]) == null ? void 0 : ct.items.slice(Ve)) || []
|
|
41464
41465
|
}, ..._e.slice(1)].filter((xt) => xt.items.length > 0);
|
|
41465
|
-
}, [_e, Ve]), U = (he == null ? void 0 : he.length) > 0 || (_e == null ? void 0 : _e.length) > 0, [q, ne] = X(void 0), Y = rx(), [K, oe] = X(void 0), se =
|
|
41466
|
+
}, [_e, Ve]), U = (he == null ? void 0 : he.length) > 0 || (_e == null ? void 0 : _e.length) > 0, [q, ne] = X(void 0), Y = rx(), [K, oe] = X(void 0), se = Ze((ct) => {
|
|
41466
41467
|
if (!ct)
|
|
41467
41468
|
return [];
|
|
41468
41469
|
const xt = [];
|
|
@@ -41482,7 +41483,7 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41482
41483
|
primary: se(K.primary ?? []),
|
|
41483
41484
|
secondary: ((K == null ? void 0 : K.secondary) ?? []).filter((ct) => !("type" in ct && ct.type === "separator"))
|
|
41484
41485
|
};
|
|
41485
|
-
}, [K, se]), [Ue, nt] = X(!1), [Re, Ct] = X(0), st =
|
|
41486
|
+
}, [K, se]), [Ue, nt] = X(!1), [Re, Ct] = X(0), st = Je(), Me = ke(() => T === !0 ? (ct) => ct !== void 0 ? `${ct} ${st.collections.itemsCount}` : null : T || void 0, [T, st]), W = (ct, xt) => {
|
|
41486
41487
|
n == null || n(ct, xt), nt(!!ct.allSelected || ct.itemsStatus.some((Sn) => Sn.checked)), Ct(ct.selectedCount), ne(() => xt);
|
|
41487
41488
|
const Et = t.bulkActions ? t.bulkActions(ct) : void 0, pn = (Sn) => {
|
|
41488
41489
|
if ("type" in Sn && Sn.type === "separator")
|
|
@@ -41503,25 +41504,25 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41503
41504
|
}) : "warningMessage" in Et && oe({
|
|
41504
41505
|
warningMessage: Et.warningMessage
|
|
41505
41506
|
}));
|
|
41506
|
-
}, [J, ie] = X(void 0), [be, Ne] = X(!0), ve = ke(() => [b == null ? void 0 : b.enabled, e.length > 1].some(Boolean), [b, e]), { emptyState: Be, setEmptyStateType:
|
|
41507
|
+
}, [J, ie] = X(void 0), [be, Ne] = X(!0), ve = ke(() => [b == null ? void 0 : b.enabled, e.length > 1].some(Boolean), [b, e]), { emptyState: Be, setEmptyStateType: Xe } = pte(s, {
|
|
41507
41508
|
retry: () => {
|
|
41508
|
-
|
|
41509
|
+
Xe(!1), h({
|
|
41509
41510
|
...u
|
|
41510
41511
|
});
|
|
41511
41512
|
},
|
|
41512
41513
|
clearFilters: () => {
|
|
41513
|
-
|
|
41514
|
+
Xe(!1), h({}), k(void 0);
|
|
41514
41515
|
}
|
|
41515
41516
|
}), gt = (ct, xt, Et) => ct === 0 ? Object.keys(xt).length > 0 || Et ? "no-results" : "no-data" : !1, vt = ({ totalItems: ct, filters: xt, isInitialLoading: Et, search: pn }) => {
|
|
41516
|
-
Et || (Ne(Et), ie(ct),
|
|
41517
|
+
Et || (Ne(Et), ie(ct), Xe(gt(ct, xt, pn)));
|
|
41517
41518
|
}, Rt = (ct) => {
|
|
41518
|
-
|
|
41519
|
+
Xe("error", ct.cause instanceof Error ? ct.cause.message : ct.message);
|
|
41519
41520
|
}, _o = R2({
|
|
41520
41521
|
value: !!m,
|
|
41521
41522
|
delay: 100
|
|
41522
41523
|
});
|
|
41523
41524
|
Ae(() => {
|
|
41524
|
-
|
|
41525
|
+
Xe(!1);
|
|
41525
41526
|
}, [u, w, g, t.dataAdapter]);
|
|
41526
41527
|
const sr = ke(() => Me !== void 0, [Me]), or = Me === void 0 ? null : J !== void 0 ? Me(J) : null, { settings: _r, setSettings: Kr } = W0(), { storageReady: le } = nie(l, typeof a == "object" ? (a == null ? void 0 : a.features) ?? ["*"] : ["*"], {
|
|
41527
41528
|
settings: {
|
|
@@ -41679,7 +41680,7 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41679
41680
|
...t
|
|
41680
41681
|
})
|
|
41681
41682
|
}), v4e = ha("OneDataCollection", rie), y4e = (t, e = []) => {
|
|
41682
|
-
const n =
|
|
41683
|
+
const n = Je(), {
|
|
41683
41684
|
navigationFilters: i,
|
|
41684
41685
|
summaries: r,
|
|
41685
41686
|
currentNavigationFilters: s
|
|
@@ -41710,7 +41711,7 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41710
41711
|
setCurrentNavigationFilters: l
|
|
41711
41712
|
};
|
|
41712
41713
|
}, aS = B(({ header: t, actions: e, open: n, onClose: i }, r) => {
|
|
41713
|
-
const [s, o] = X(!1), a =
|
|
41714
|
+
const [s, o] = X(!1), a = Ze(() => {
|
|
41714
41715
|
o(!0);
|
|
41715
41716
|
const l = setTimeout(() => {
|
|
41716
41717
|
i == null || i(), o(!1);
|
|
@@ -41722,7 +41723,7 @@ const Xne = (t) => "date" in t, Yne = {
|
|
|
41722
41723
|
onOpenChange: (l) => !l && (a == null ? void 0 : a()),
|
|
41723
41724
|
children: x(A7, {
|
|
41724
41725
|
ref: r,
|
|
41725
|
-
className: "bottom-3 top-auto max-w-[400px]
|
|
41726
|
+
className: "bottom-3 top-auto max-w-[400px]",
|
|
41726
41727
|
children: [x(CM, {
|
|
41727
41728
|
className: "flex flex-col gap-4 px-4 py-5",
|
|
41728
41729
|
children: [f(Fl, {
|
|
@@ -41788,14 +41789,14 @@ const x4e = Pi({
|
|
|
41788
41789
|
className: "text-neutral-1000 grow overflow-hidden truncate text-ellipsis text-sm font-medium",
|
|
41789
41790
|
children: t.name
|
|
41790
41791
|
})
|
|
41791
|
-
}), o && (a ? f(
|
|
41792
|
+
}), o && (a ? f(je, {
|
|
41792
41793
|
size: "md",
|
|
41793
41794
|
icon: a.icon ?? sl,
|
|
41794
41795
|
className: F("cursor-pointer text-f1-icon", n ? "cursor-not-allowed" : "hover:text-f1-icon-bold", a.critical && "text-f1-foreground-critical"),
|
|
41795
41796
|
onClick: n ? void 0 : a.onClick
|
|
41796
41797
|
}) : f(o3, {
|
|
41797
41798
|
items: l,
|
|
41798
|
-
icon:
|
|
41799
|
+
icon: ks,
|
|
41799
41800
|
size: "sm"
|
|
41800
41801
|
}))]
|
|
41801
41802
|
});
|
|
@@ -44954,7 +44955,7 @@ function ng(t, e, n) {
|
|
|
44954
44955
|
}
|
|
44955
44956
|
return de.fromArray(i);
|
|
44956
44957
|
}
|
|
44957
|
-
class
|
|
44958
|
+
class Zs extends Jn {
|
|
44958
44959
|
/**
|
|
44959
44960
|
Create a mark step.
|
|
44960
44961
|
*/
|
|
@@ -44970,10 +44971,10 @@ class Js extends Jn {
|
|
|
44970
44971
|
}
|
|
44971
44972
|
map(e) {
|
|
44972
44973
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
44973
|
-
return n.deleted && i.deleted || n.pos >= i.pos ? null : new
|
|
44974
|
+
return n.deleted && i.deleted || n.pos >= i.pos ? null : new Zs(n.pos, i.pos, this.mark);
|
|
44974
44975
|
}
|
|
44975
44976
|
merge(e) {
|
|
44976
|
-
return e instanceof
|
|
44977
|
+
return e instanceof Zs && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Zs(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
44977
44978
|
}
|
|
44978
44979
|
toJSON() {
|
|
44979
44980
|
return {
|
|
@@ -44989,10 +44990,10 @@ class Js extends Jn {
|
|
|
44989
44990
|
static fromJSON(e, n) {
|
|
44990
44991
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
44991
44992
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
44992
|
-
return new
|
|
44993
|
+
return new Zs(n.from, n.to, e.markFromJSON(n.mark));
|
|
44993
44994
|
}
|
|
44994
44995
|
}
|
|
44995
|
-
Jn.jsonID("addMark",
|
|
44996
|
+
Jn.jsonID("addMark", Zs);
|
|
44996
44997
|
class Ir extends Jn {
|
|
44997
44998
|
/**
|
|
44998
44999
|
Create a mark-removing step.
|
|
@@ -45005,7 +45006,7 @@ class Ir extends Jn {
|
|
|
45005
45006
|
return on.fromReplace(e, this.from, this.to, i);
|
|
45006
45007
|
}
|
|
45007
45008
|
invert() {
|
|
45008
|
-
return new
|
|
45009
|
+
return new Zs(this.from, this.to, this.mark);
|
|
45009
45010
|
}
|
|
45010
45011
|
map(e) {
|
|
45011
45012
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
@@ -45032,7 +45033,7 @@ class Ir extends Jn {
|
|
|
45032
45033
|
}
|
|
45033
45034
|
}
|
|
45034
45035
|
Jn.jsonID("removeMark", Ir);
|
|
45035
|
-
class
|
|
45036
|
+
class Js extends Jn {
|
|
45036
45037
|
/**
|
|
45037
45038
|
Create a node mark step.
|
|
45038
45039
|
*/
|
|
@@ -45053,15 +45054,15 @@ class Xs extends Jn {
|
|
|
45053
45054
|
if (i.length == n.marks.length) {
|
|
45054
45055
|
for (let r = 0; r < n.marks.length; r++)
|
|
45055
45056
|
if (!n.marks[r].isInSet(i))
|
|
45056
|
-
return new
|
|
45057
|
-
return new
|
|
45057
|
+
return new Js(this.pos, n.marks[r]);
|
|
45058
|
+
return new Js(this.pos, this.mark);
|
|
45058
45059
|
}
|
|
45059
45060
|
}
|
|
45060
45061
|
return new pl(this.pos, this.mark);
|
|
45061
45062
|
}
|
|
45062
45063
|
map(e) {
|
|
45063
45064
|
let n = e.mapResult(this.pos, 1);
|
|
45064
|
-
return n.deletedAfter ? null : new
|
|
45065
|
+
return n.deletedAfter ? null : new Js(n.pos, this.mark);
|
|
45065
45066
|
}
|
|
45066
45067
|
toJSON() {
|
|
45067
45068
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -45072,10 +45073,10 @@ class Xs extends Jn {
|
|
|
45072
45073
|
static fromJSON(e, n) {
|
|
45073
45074
|
if (typeof n.pos != "number")
|
|
45074
45075
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
45075
|
-
return new
|
|
45076
|
+
return new Js(n.pos, e.markFromJSON(n.mark));
|
|
45076
45077
|
}
|
|
45077
45078
|
}
|
|
45078
|
-
Jn.jsonID("addNodeMark",
|
|
45079
|
+
Jn.jsonID("addNodeMark", Js);
|
|
45079
45080
|
class pl extends Jn {
|
|
45080
45081
|
/**
|
|
45081
45082
|
Create a mark-removing step.
|
|
@@ -45092,7 +45093,7 @@ class pl extends Jn {
|
|
|
45092
45093
|
}
|
|
45093
45094
|
invert(e) {
|
|
45094
45095
|
let n = e.nodeAt(this.pos);
|
|
45095
|
-
return !n || !this.mark.isInSet(n.marks) ? this : new
|
|
45096
|
+
return !n || !this.mark.isInSet(n.marks) ? this : new Js(this.pos, this.mark);
|
|
45096
45097
|
}
|
|
45097
45098
|
map(e) {
|
|
45098
45099
|
let n = e.mapResult(this.pos, 1);
|
|
@@ -45245,7 +45246,7 @@ function Nie(t, e, n, i) {
|
|
|
45245
45246
|
let h = Math.max(c, e), p = Math.min(c + l.nodeSize, n), m = i.addToSet(u);
|
|
45246
45247
|
for (let g = 0; g < u.length; g++)
|
|
45247
45248
|
u[g].isInSet(m) || (o && o.to == h && o.mark.eq(u[g]) ? o.to = p : r.push(o = new Ir(h, p, u[g])));
|
|
45248
|
-
a && a.to == h ? a.to = p : s.push(a = new
|
|
45249
|
+
a && a.to == h ? a.to = p : s.push(a = new Zs(h, p, i));
|
|
45249
45250
|
}
|
|
45250
45251
|
}), r.forEach((l) => t.step(l)), s.forEach((l) => t.step(l));
|
|
45251
45252
|
}
|
|
@@ -45412,7 +45413,7 @@ function Hie(t, e, n, i, r) {
|
|
|
45412
45413
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
45413
45414
|
t.step(new kn(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new Ie(de.from(o), 0, 0), 1, !0));
|
|
45414
45415
|
}
|
|
45415
|
-
function
|
|
45416
|
+
function gs(t, e, n = 1, i) {
|
|
45416
45417
|
let r = t.resolve(e), s = r.depth - n, o = i && i[i.length - 1] || r.parent;
|
|
45417
45418
|
if (s < 0 || r.parent.type.spec.isolating || !r.parent.canReplace(r.index(), r.parent.childCount) || !o.type.validContent(r.parent.content.cutByIndex(r.index(), r.parent.childCount)))
|
|
45418
45419
|
return !1;
|
|
@@ -46056,7 +46057,7 @@ class sg {
|
|
|
46056
46057
|
Add a mark to the node at position `pos`.
|
|
46057
46058
|
*/
|
|
46058
46059
|
addNodeMark(e, n) {
|
|
46059
|
-
return this.step(new
|
|
46060
|
+
return this.step(new Js(e, n)), this;
|
|
46060
46061
|
}
|
|
46061
46062
|
/**
|
|
46062
46063
|
Remove a mark (or a mark of the given type) from the node at
|
|
@@ -47151,7 +47152,7 @@ function hre(t, e) {
|
|
|
47151
47152
|
let n = t.nodeValue.length, i = document.createRange();
|
|
47152
47153
|
for (let r = 0; r < n; r++) {
|
|
47153
47154
|
i.setEnd(t, r + 1), i.setStart(t, r);
|
|
47154
|
-
let s =
|
|
47155
|
+
let s = Rs(i, 1);
|
|
47155
47156
|
if (s.top != s.bottom && lg(e, s))
|
|
47156
47157
|
return { node: t, offset: r + (e.left >= (s.left + s.right) / 2 ? 1 : 0) };
|
|
47157
47158
|
}
|
|
@@ -47230,7 +47231,7 @@ function vre(t, e) {
|
|
|
47230
47231
|
function j9(t) {
|
|
47231
47232
|
return t.top < t.bottom || t.left < t.right;
|
|
47232
47233
|
}
|
|
47233
|
-
function
|
|
47234
|
+
function Rs(t, e) {
|
|
47234
47235
|
let n = t.getClientRects();
|
|
47235
47236
|
if (n.length) {
|
|
47236
47237
|
let i = n[e < 0 ? 0 : n.length - 1];
|
|
@@ -47244,11 +47245,11 @@ function KS(t, e, n) {
|
|
|
47244
47245
|
let { node: i, offset: r, atom: s } = t.docView.domFromPos(e, n < 0 ? -1 : 1), o = ed || xr;
|
|
47245
47246
|
if (i.nodeType == 3)
|
|
47246
47247
|
if (o && (yre.test(i.nodeValue) || (n < 0 ? !r : r == i.nodeValue.length))) {
|
|
47247
|
-
let l =
|
|
47248
|
+
let l = Rs(ss(i, r, r), n);
|
|
47248
47249
|
if (xr && r && /\s/.test(i.nodeValue[r - 1]) && r < i.nodeValue.length) {
|
|
47249
|
-
let c =
|
|
47250
|
+
let c = Rs(ss(i, r - 1, r - 1), -1);
|
|
47250
47251
|
if (c.top == l.top) {
|
|
47251
|
-
let d =
|
|
47252
|
+
let d = Rs(ss(i, r, r + 1), -1);
|
|
47252
47253
|
if (d.top != l.top)
|
|
47253
47254
|
return oc(d, d.left < c.left);
|
|
47254
47255
|
}
|
|
@@ -47256,7 +47257,7 @@ function KS(t, e, n) {
|
|
|
47256
47257
|
return l;
|
|
47257
47258
|
} else {
|
|
47258
47259
|
let l = r, c = r, d = n < 0 ? 1 : -1;
|
|
47259
|
-
return n < 0 && !r ? (c++, d = -1) : n >= 0 && r == i.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c++, oc(
|
|
47260
|
+
return n < 0 && !r ? (c++, d = -1) : n >= 0 && r == i.nodeValue.length ? (l--, d = 1) : n < 0 ? l-- : c++, oc(Rs(ss(i, l, c), d), d < 0);
|
|
47260
47261
|
}
|
|
47261
47262
|
if (!t.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
|
|
47262
47263
|
if (s == null && r && (n < 0 || r == Ki(i))) {
|
|
@@ -47274,7 +47275,7 @@ function KS(t, e, n) {
|
|
|
47274
47275
|
if (s == null && r && (n < 0 || r == Ki(i))) {
|
|
47275
47276
|
let l = i.childNodes[r - 1], c = l.nodeType == 3 ? ss(l, Ki(l) - (o ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
47276
47277
|
if (c)
|
|
47277
|
-
return oc(
|
|
47278
|
+
return oc(Rs(c, 1), !1);
|
|
47278
47279
|
}
|
|
47279
47280
|
if (s == null && r < Ki(i)) {
|
|
47280
47281
|
let l = i.childNodes[r];
|
|
@@ -47282,9 +47283,9 @@ function KS(t, e, n) {
|
|
|
47282
47283
|
l = l.nextSibling;
|
|
47283
47284
|
let c = l ? l.nodeType == 3 ? ss(l, 0, o ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
47284
47285
|
if (c)
|
|
47285
|
-
return oc(
|
|
47286
|
+
return oc(Rs(c, -1), !0);
|
|
47286
47287
|
}
|
|
47287
|
-
return oc(
|
|
47288
|
+
return oc(Rs(i.nodeType == 3 ? ss(i) : i, -n), n >= 0);
|
|
47288
47289
|
}
|
|
47289
47290
|
function oc(t, e) {
|
|
47290
47291
|
if (t.width == 0)
|
|
@@ -48415,7 +48416,7 @@ function cg(t, e = null) {
|
|
|
48415
48416
|
function tE(t) {
|
|
48416
48417
|
return t.editable ? t.hasFocus() : iE(t) && document.activeElement && document.activeElement.contains(t.dom);
|
|
48417
48418
|
}
|
|
48418
|
-
function
|
|
48419
|
+
function vs(t, e = !1) {
|
|
48419
48420
|
let n = t.state.selection;
|
|
48420
48421
|
if (nE(t, n), !!tE(t)) {
|
|
48421
48422
|
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && zn) {
|
|
@@ -48503,7 +48504,7 @@ function X2(t, e) {
|
|
|
48503
48504
|
let { $anchor: n, $head: i } = t.selection, r = e > 0 ? n.max(i) : n.min(i), s = r.parent.inlineContent ? r.depth ? t.doc.resolve(e > 0 ? r.after() : r.before()) : null : r;
|
|
48504
48505
|
return s && et.findFrom(s, e);
|
|
48505
48506
|
}
|
|
48506
|
-
function
|
|
48507
|
+
function Ps(t, e) {
|
|
48507
48508
|
return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
48508
48509
|
}
|
|
48509
48510
|
function t8(t, e, n) {
|
|
@@ -48514,25 +48515,25 @@ function t8(t, e, n) {
|
|
|
48514
48515
|
if (!s || s.isText || !s.isLeaf)
|
|
48515
48516
|
return !1;
|
|
48516
48517
|
let o = t.state.doc.resolve(r.pos + s.nodeSize * (e < 0 ? -1 : 1));
|
|
48517
|
-
return
|
|
48518
|
+
return Ps(t, new Ye(i.$anchor, o));
|
|
48518
48519
|
} else if (i.empty) {
|
|
48519
48520
|
if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
48520
48521
|
let r = X2(t.state, e);
|
|
48521
|
-
return r && r instanceof Ge ?
|
|
48522
|
+
return r && r instanceof Ge ? Ps(t, r) : !1;
|
|
48522
48523
|
} else if (!(Gi && n.indexOf("m") > -1)) {
|
|
48523
48524
|
let r = i.$head, s = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, o;
|
|
48524
48525
|
if (!s || s.isText)
|
|
48525
48526
|
return !1;
|
|
48526
48527
|
let a = e < 0 ? r.pos - s.nodeSize : r.pos;
|
|
48527
|
-
return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Ge.isSelectable(s) ?
|
|
48528
|
+
return s.isAtom || (o = t.docView.descAt(a)) && !o.contentDOM ? Ge.isSelectable(s) ? Ps(t, new Ge(e < 0 ? t.state.doc.resolve(r.pos - s.nodeSize) : r)) : ed ? Ps(t, new Ye(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))) : !1 : !1;
|
|
48528
48529
|
}
|
|
48529
48530
|
} else return !1;
|
|
48530
48531
|
else {
|
|
48531
48532
|
if (i instanceof Ge && i.node.isInline)
|
|
48532
|
-
return
|
|
48533
|
+
return Ps(t, new Ye(e > 0 ? i.$to : i.$from));
|
|
48533
48534
|
{
|
|
48534
48535
|
let r = X2(t.state, e);
|
|
48535
|
-
return r ?
|
|
48536
|
+
return r ? Ps(t, r) : !1;
|
|
48536
48537
|
}
|
|
48537
48538
|
}
|
|
48538
48539
|
}
|
|
@@ -48657,7 +48658,7 @@ function Y2(t, e, n) {
|
|
|
48657
48658
|
t.domObserver.setCurSelection();
|
|
48658
48659
|
let { state: r } = t;
|
|
48659
48660
|
setTimeout(() => {
|
|
48660
|
-
t.state == r &&
|
|
48661
|
+
t.state == r && vs(t);
|
|
48661
48662
|
}, 50);
|
|
48662
48663
|
}
|
|
48663
48664
|
function n8(t, e) {
|
|
@@ -48685,11 +48686,11 @@ function i8(t, e, n) {
|
|
|
48685
48686
|
if (!r.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
48686
48687
|
let o = X2(t.state, e);
|
|
48687
48688
|
if (o && o instanceof Ge)
|
|
48688
|
-
return
|
|
48689
|
+
return Ps(t, o);
|
|
48689
48690
|
}
|
|
48690
48691
|
if (!r.parent.inlineContent) {
|
|
48691
48692
|
let o = e < 0 ? r : s, a = i instanceof mi ? et.near(o, e) : et.findFrom(o, e);
|
|
48692
|
-
return a ?
|
|
48693
|
+
return a ? Ps(t, a) : !1;
|
|
48693
48694
|
}
|
|
48694
48695
|
return !1;
|
|
48695
48696
|
}
|
|
@@ -48954,7 +48955,7 @@ function Jre(t) {
|
|
|
48954
48955
|
}
|
|
48955
48956
|
si && t.dom.addEventListener("input", () => null), em(t);
|
|
48956
48957
|
}
|
|
48957
|
-
function
|
|
48958
|
+
function Xs(t, e) {
|
|
48958
48959
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
48959
48960
|
}
|
|
48960
48961
|
function Xre(t) {
|
|
@@ -48996,7 +48997,7 @@ ai.keydown = (t, e) => {
|
|
|
48996
48997
|
t.input.lastIOSEnter = i, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
48997
48998
|
t.input.lastIOSEnter == i && (t.someProp("handleKeyDown", (r) => r(t, Oo(13, "Enter"))), t.input.lastIOSEnter = 0);
|
|
48998
48999
|
}, 200);
|
|
48999
|
-
} else t.someProp("handleKeyDown", (i) => i(t, n)) || Vre(t, n) ? n.preventDefault() :
|
|
49000
|
+
} else t.someProp("handleKeyDown", (i) => i(t, n)) || Vre(t, n) ? n.preventDefault() : Xs(t, "key");
|
|
49000
49001
|
};
|
|
49001
49002
|
ai.keyup = (t, e) => {
|
|
49002
49003
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
@@ -49095,7 +49096,7 @@ oi.mousedown = (t, e) => {
|
|
|
49095
49096
|
let i = pg(t), r = Date.now(), s = "singleClick";
|
|
49096
49097
|
r - t.input.lastClick.time < 500 && ese(n, t.input.lastClick) && !n[dE] && (t.input.lastClick.type == "singleClick" ? s = "doubleClick" : t.input.lastClick.type == "doubleClick" && (s = "tripleClick")), t.input.lastClick = { time: r, x: n.clientX, y: n.clientY, type: s };
|
|
49097
49098
|
let o = t.posAtCoords(Y0(n));
|
|
49098
|
-
o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new ase(t, o, n, !!i)) : (s == "doubleClick" ? rse : sse)(t, o.pos, o.inside, n) ? n.preventDefault() :
|
|
49099
|
+
o && (s == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new ase(t, o, n, !!i)) : (s == "doubleClick" ? rse : sse)(t, o.pos, o.inside, n) ? n.preventDefault() : Xs(t, "pointer"));
|
|
49099
49100
|
};
|
|
49100
49101
|
class ase {
|
|
49101
49102
|
constructor(e, n, i, r) {
|
|
@@ -49117,16 +49118,16 @@ class ase {
|
|
|
49117
49118
|
setUneditable: !!(this.target && xr && !this.target.hasAttribute("contentEditable"))
|
|
49118
49119
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
49119
49120
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
49120
|
-
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)),
|
|
49121
|
+
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), Xs(e, "pointer");
|
|
49121
49122
|
}
|
|
49122
49123
|
done() {
|
|
49123
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
49124
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => vs(this.view)), this.view.input.mouseDown = null;
|
|
49124
49125
|
}
|
|
49125
49126
|
up(e) {
|
|
49126
49127
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
49127
49128
|
return;
|
|
49128
49129
|
let n = this.pos;
|
|
49129
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Y0(e))), this.updateAllowDefault(e), this.allowDefault || !n ?
|
|
49130
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Y0(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Xs(this.view, "pointer") : ise(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
49130
49131
|
si && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
49131
49132
|
// cursor, but still report that the node is selected
|
|
49132
49133
|
// when asked through getSelection. You'll then get a
|
|
@@ -49134,20 +49135,20 @@ class ase {
|
|
|
49134
49135
|
// (hidden) cursor is doesn't change the selection, and
|
|
49135
49136
|
// thus doesn't get a reaction from ProseMirror. This
|
|
49136
49137
|
// works around that.
|
|
49137
|
-
zn && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Qa(this.view, et.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) :
|
|
49138
|
+
zn && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Qa(this.view, et.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Xs(this.view, "pointer");
|
|
49138
49139
|
}
|
|
49139
49140
|
move(e) {
|
|
49140
|
-
this.updateAllowDefault(e),
|
|
49141
|
+
this.updateAllowDefault(e), Xs(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
49141
49142
|
}
|
|
49142
49143
|
updateAllowDefault(e) {
|
|
49143
49144
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
|
|
49144
49145
|
}
|
|
49145
49146
|
}
|
|
49146
49147
|
oi.touchstart = (t) => {
|
|
49147
|
-
t.input.lastTouch = Date.now(), pg(t),
|
|
49148
|
+
t.input.lastTouch = Date.now(), pg(t), Xs(t, "pointer");
|
|
49148
49149
|
};
|
|
49149
49150
|
oi.touchmove = (t) => {
|
|
49150
|
-
t.input.lastTouch = Date.now(),
|
|
49151
|
+
t.input.lastTouch = Date.now(), Xs(t, "pointer");
|
|
49151
49152
|
};
|
|
49152
49153
|
oi.contextmenu = (t) => pg(t);
|
|
49153
49154
|
function uE(t, e) {
|
|
@@ -49343,7 +49344,7 @@ ai.drop = (t, e) => {
|
|
|
49343
49344
|
};
|
|
49344
49345
|
oi.focus = (t) => {
|
|
49345
49346
|
t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = !0, setTimeout(() => {
|
|
49346
|
-
t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) &&
|
|
49347
|
+
t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && vs(t);
|
|
49347
49348
|
}, 20));
|
|
49348
49349
|
};
|
|
49349
49350
|
oi.blur = (t, e) => {
|
|
@@ -49634,7 +49635,7 @@ class St {
|
|
|
49634
49635
|
}
|
|
49635
49636
|
if (r) {
|
|
49636
49637
|
let a = new St(r.sort(Uo), Ha);
|
|
49637
|
-
return i ? new
|
|
49638
|
+
return i ? new zs([a, i]) : a;
|
|
49638
49639
|
}
|
|
49639
49640
|
return i || Hn;
|
|
49640
49641
|
}
|
|
@@ -49680,13 +49681,13 @@ class St {
|
|
|
49680
49681
|
St.empty = new St([], []);
|
|
49681
49682
|
St.removeOverlap = gg;
|
|
49682
49683
|
const Hn = St.empty;
|
|
49683
|
-
class
|
|
49684
|
+
class zs {
|
|
49684
49685
|
constructor(e) {
|
|
49685
49686
|
this.members = e;
|
|
49686
49687
|
}
|
|
49687
49688
|
map(e, n) {
|
|
49688
49689
|
const i = this.members.map((r) => r.map(e, n, Wo));
|
|
49689
|
-
return
|
|
49690
|
+
return zs.from(i);
|
|
49690
49691
|
}
|
|
49691
49692
|
forChild(e, n) {
|
|
49692
49693
|
if (n.isLeaf)
|
|
@@ -49694,12 +49695,12 @@ class js {
|
|
|
49694
49695
|
let i = [];
|
|
49695
49696
|
for (let r = 0; r < this.members.length; r++) {
|
|
49696
49697
|
let s = this.members[r].forChild(e, n);
|
|
49697
|
-
s != Hn && (s instanceof
|
|
49698
|
+
s != Hn && (s instanceof zs ? i = i.concat(s.members) : i.push(s));
|
|
49698
49699
|
}
|
|
49699
|
-
return
|
|
49700
|
+
return zs.from(i);
|
|
49700
49701
|
}
|
|
49701
49702
|
eq(e) {
|
|
49702
|
-
if (!(e instanceof
|
|
49703
|
+
if (!(e instanceof zs) || e.members.length != this.members.length)
|
|
49703
49704
|
return !1;
|
|
49704
49705
|
for (let n = 0; n < this.members.length; n++)
|
|
49705
49706
|
if (!this.members[n].eq(e.members[n]))
|
|
@@ -49730,7 +49731,7 @@ class js {
|
|
|
49730
49731
|
case 1:
|
|
49731
49732
|
return e[0];
|
|
49732
49733
|
default:
|
|
49733
|
-
return new
|
|
49734
|
+
return new zs(e.every((n) => n instanceof St) ? e : e.reduce((n, i) => n.concat(i instanceof St ? i : i.members), []));
|
|
49734
49735
|
}
|
|
49735
49736
|
}
|
|
49736
49737
|
forEachSet(e) {
|
|
@@ -49870,7 +49871,7 @@ function yp(t) {
|
|
|
49870
49871
|
return t.someProp("decorations", (n) => {
|
|
49871
49872
|
let i = n(t.state);
|
|
49872
49873
|
i && i != Hn && e.push(i);
|
|
49873
|
-
}), t.cursorWrapper && e.push(St.create(t.state.doc, [t.cursorWrapper.deco])),
|
|
49874
|
+
}), t.cursorWrapper && e.push(St.create(t.state.doc, [t.cursorWrapper.deco])), zs.from(e);
|
|
49874
49875
|
}
|
|
49875
49876
|
const gse = {
|
|
49876
49877
|
childList: !0,
|
|
@@ -49939,7 +49940,7 @@ class xse {
|
|
|
49939
49940
|
onSelectionChange() {
|
|
49940
49941
|
if (e8(this.view)) {
|
|
49941
49942
|
if (this.suppressingSelectionUpdates)
|
|
49942
|
-
return
|
|
49943
|
+
return vs(this.view);
|
|
49943
49944
|
if (gi && no <= 11 && !this.view.state.selection.empty) {
|
|
49944
49945
|
let e = this.view.domSelectionRange();
|
|
49945
49946
|
if (e.focusNode && na(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
@@ -50001,7 +50002,7 @@ class xse {
|
|
|
50001
50002
|
}
|
|
50002
50003
|
}
|
|
50003
50004
|
let c = null;
|
|
50004
|
-
s < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && J0(i) && (c = cg(e)) && c.eq(et.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0,
|
|
50005
|
+
s < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && J0(i) && (c = cg(e)) && c.eq(et.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, vs(e), this.currentSelection.set(i), e.scrollToSelection()) : (s > -1 || r) && (s > -1 && (e.docView.markDirty(s, o), kse(e)), this.handleDOMChange(s, o, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || vs(e), this.currentSelection.set(i));
|
|
50005
50006
|
}
|
|
50006
50007
|
registerMutation(e, n) {
|
|
50007
50008
|
if (n.indexOf(e.target) > -1)
|
|
@@ -50164,7 +50165,7 @@ function Ese(t, e, n, i, r) {
|
|
|
50164
50165
|
let k = m.start, C = m.endA, S, E, T;
|
|
50165
50166
|
if (b) {
|
|
50166
50167
|
if (g.pos == v.pos)
|
|
50167
|
-
gi && no <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
50168
|
+
gi && no <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => vs(t), 20)), S = t.state.tr.delete(k, C), E = d.resolve(m.start).marksAcross(d.resolve(m.endA));
|
|
50168
50169
|
else if (
|
|
50169
50170
|
// Adding or removing a mark
|
|
50170
50171
|
m.endA == m.endB && (T = Lse(g.parent.content.cut(g.parentOffset, v.parentOffset), y.parent.content.cut(y.parentOffset, m.endA - y.start())))
|
|
@@ -50338,7 +50339,7 @@ class Nse {
|
|
|
50338
50339
|
let m = zn ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
50339
50340
|
this.composing && (this.input.compositionNode = cse(this)), (s || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = K9(e.doc, c, l, this.dom, this)), m && !this.trackWrites && (p = !0);
|
|
50340
50341
|
}
|
|
50341
|
-
p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Dre(this)) ?
|
|
50342
|
+
p || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Dre(this)) ? vs(this, p) : (nE(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
50342
50343
|
}
|
|
50343
50344
|
this.updatePluginViews(r), !((i = this.dragging) === null || i === void 0) && i.node && !r.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, r), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : h && dre(h);
|
|
50344
50345
|
}
|
|
@@ -50427,7 +50428,7 @@ class Nse {
|
|
|
50427
50428
|
Focus the editor.
|
|
50428
50429
|
*/
|
|
50429
50430
|
focus() {
|
|
50430
|
-
this.domObserver.stop(), this.editable && ure(this.dom),
|
|
50431
|
+
this.domObserver.stop(), this.editable && ure(this.dom), vs(this), this.domObserver.start();
|
|
50431
50432
|
}
|
|
50432
50433
|
/**
|
|
50433
50434
|
Get the document root in which the editor exists. This will
|
|
@@ -51008,7 +51009,7 @@ const Use = (t, e) => {
|
|
|
51008
51009
|
return !1;
|
|
51009
51010
|
if (n.depth > 1 && n.after() != n.end(-1)) {
|
|
51010
51011
|
let s = n.before();
|
|
51011
|
-
if (
|
|
51012
|
+
if (gs(t.doc, s))
|
|
51012
51013
|
return e && e(t.tr.split(s).scrollIntoView()), !0;
|
|
51013
51014
|
}
|
|
51014
51015
|
let i = n.blockRange(), r = i && Ul(i);
|
|
@@ -51018,7 +51019,7 @@ function qse(t) {
|
|
|
51018
51019
|
return (e, n) => {
|
|
51019
51020
|
let { $from: i, $to: r } = e.selection;
|
|
51020
51021
|
if (e.selection instanceof Ge && e.selection.node.isBlock)
|
|
51021
|
-
return !i.parentOffset || !
|
|
51022
|
+
return !i.parentOffset || !gs(e.doc, i.pos) ? !1 : (n && n(e.tr.split(i.pos).scrollIntoView()), !0);
|
|
51022
51023
|
if (!i.depth)
|
|
51023
51024
|
return !1;
|
|
51024
51025
|
let s = [], o, a, l = !1, c = !1;
|
|
@@ -51033,8 +51034,8 @@ function qse(t) {
|
|
|
51033
51034
|
}
|
|
51034
51035
|
let d = e.tr;
|
|
51035
51036
|
(e.selection instanceof Ye || e.selection instanceof mi) && d.deleteSelection();
|
|
51036
|
-
let u = d.mapping.map(i.pos), h =
|
|
51037
|
-
if (h || (s[0] = a ? { type: a } : null, h =
|
|
51037
|
+
let u = d.mapping.map(i.pos), h = gs(d.doc, u, s.length, s);
|
|
51038
|
+
if (h || (s[0] = a ? { type: a } : null, h = gs(d.doc, u, s.length, s)), d.split(u, s.length, s), !l && c && i.node(o).type != a) {
|
|
51038
51039
|
let p = d.mapping.map(i.before(o)), m = d.doc.resolve(p);
|
|
51039
51040
|
a && i.node(o - 1).canReplaceWith(m.index(), m.index() + 1, a) && d.setNodeMarkup(d.mapping.map(i.before(o)), a);
|
|
51040
51041
|
}
|
|
@@ -51178,7 +51179,7 @@ function toe(t, e, n, i, r) {
|
|
|
51178
51179
|
n[d].type == r && (o = d + 1);
|
|
51179
51180
|
let a = n.length - o, l = e.start + n.length - (i ? 2 : 0), c = e.parent;
|
|
51180
51181
|
for (let d = e.startIndex, u = e.endIndex, h = !0; d < u; d++, h = !1)
|
|
51181
|
-
!h &&
|
|
51182
|
+
!h && gs(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c.child(d).nodeSize;
|
|
51182
51183
|
return t;
|
|
51183
51184
|
}
|
|
51184
51185
|
function noe(t) {
|
|
@@ -52879,7 +52880,7 @@ function E8(t, e) {
|
|
|
52879
52880
|
const Eae = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, editor: r }) => {
|
|
52880
52881
|
const { selection: s, doc: o } = e, { $from: a, $to: l } = s, c = r.extensionManager.attributes, d = a1(c, a.node().type.name, a.node().attrs);
|
|
52881
52882
|
if (s instanceof Ge && s.node.isBlock)
|
|
52882
|
-
return !a.parentOffset || !
|
|
52883
|
+
return !a.parentOffset || !gs(o, a.pos) ? !1 : (i && (t && E8(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
|
|
52883
52884
|
if (!a.parent.isBlock)
|
|
52884
52885
|
return !1;
|
|
52885
52886
|
const u = l.parentOffset === l.parent.content.size, h = a.depth === 0 ? void 0 : Eg(a.node(-1).contentMatchAt(a.indexAfter(-1)));
|
|
@@ -52888,8 +52889,8 @@ const Eae = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edi
|
|
|
52888
52889
|
type: h,
|
|
52889
52890
|
attrs: d
|
|
52890
52891
|
}
|
|
52891
|
-
] : void 0, m =
|
|
52892
|
-
if (!p && !m &&
|
|
52892
|
+
] : void 0, m = gs(e.doc, e.mapping.map(a.pos), 1, p);
|
|
52893
|
+
if (!p && !m && gs(e.doc, e.mapping.map(a.pos), 1, h ? [{ type: h }] : void 0) && (m = !0, p = h ? [
|
|
52893
52894
|
{
|
|
52894
52895
|
type: h,
|
|
52895
52896
|
attrs: d
|
|
@@ -52947,7 +52948,7 @@ const Eae = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: i, edi
|
|
|
52947
52948
|
{ type: a, attrs: m },
|
|
52948
52949
|
{ type: p, attrs: g }
|
|
52949
52950
|
] : [{ type: a, attrs: m }];
|
|
52950
|
-
if (!
|
|
52951
|
+
if (!gs(n.doc, l.pos, 2))
|
|
52951
52952
|
return !1;
|
|
52952
52953
|
if (r) {
|
|
52953
52954
|
const { selection: y, storedMarks: b } = i, { splittableMarks: w } = s.extensionManager, k = b || y.$to.parentOffset && y.$from.marks();
|
|
@@ -54230,7 +54231,7 @@ function XE(t, e) {
|
|
|
54230
54231
|
}
|
|
54231
54232
|
return !1;
|
|
54232
54233
|
}
|
|
54233
|
-
function
|
|
54234
|
+
function Ss(t) {
|
|
54234
54235
|
return Ri(t).getComputedStyle(t);
|
|
54235
54236
|
}
|
|
54236
54237
|
function hle(t) {
|
|
@@ -54256,18 +54257,18 @@ function ah(t) {
|
|
|
54256
54257
|
}
|
|
54257
54258
|
function T8(t) {
|
|
54258
54259
|
return !Yi(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
54259
|
-
|
|
54260
|
+
Ss(t).position === "fixed" ? null : t.offsetParent;
|
|
54260
54261
|
}
|
|
54261
54262
|
function ple(t) {
|
|
54262
54263
|
var e = /firefox/i.test(sm()), n = /Trident/i.test(sm());
|
|
54263
54264
|
if (n && Yi(t)) {
|
|
54264
|
-
var i =
|
|
54265
|
+
var i = Ss(t);
|
|
54265
54266
|
if (i.position === "fixed")
|
|
54266
54267
|
return null;
|
|
54267
54268
|
}
|
|
54268
54269
|
var r = ah(t);
|
|
54269
54270
|
for (Ag(r) && (r = r.host); Yi(r) && ["html", "body"].indexOf(jr(r)) < 0; ) {
|
|
54270
|
-
var s =
|
|
54271
|
+
var s = Ss(r);
|
|
54271
54272
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
|
|
54272
54273
|
return r;
|
|
54273
54274
|
r = r.parentNode;
|
|
@@ -54275,9 +54276,9 @@ function ple(t) {
|
|
|
54275
54276
|
return null;
|
|
54276
54277
|
}
|
|
54277
54278
|
function rd(t) {
|
|
54278
|
-
for (var e = Ri(t), n = T8(t); n && hle(n) &&
|
|
54279
|
+
for (var e = Ri(t), n = T8(t); n && hle(n) && Ss(n).position === "static"; )
|
|
54279
54280
|
n = T8(n);
|
|
54280
|
-
return n && (jr(n) === "html" || jr(n) === "body" &&
|
|
54281
|
+
return n && (jr(n) === "html" || jr(n) === "body" && Ss(n).position === "static") ? e : n || ple(t) || e;
|
|
54281
54282
|
}
|
|
54282
54283
|
function Mg(t) {
|
|
54283
54284
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -54358,7 +54359,7 @@ function A8(t) {
|
|
|
54358
54359
|
var y = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), w = yi, k = vi, C = window;
|
|
54359
54360
|
if (c) {
|
|
54360
54361
|
var S = rd(n), E = "clientHeight", T = "clientWidth";
|
|
54361
|
-
if (S === Ri(n) && (S = Co(n),
|
|
54362
|
+
if (S === Ri(n) && (S = Co(n), Ss(S).position !== "static" && a === "absolute" && (E = "scrollHeight", T = "scrollWidth")), S = S, r === vi || (r === yi || r === tr) && s === df) {
|
|
54362
54363
|
k = er;
|
|
54363
54364
|
var _ = u && S === C && C.visualViewport ? C.visualViewport.height : (
|
|
54364
54365
|
// $FlowFixMe[prop-missing]
|
|
@@ -54488,7 +54489,7 @@ function Tle(t, e) {
|
|
|
54488
54489
|
}
|
|
54489
54490
|
function Ale(t) {
|
|
54490
54491
|
var e, n = Co(t), i = Og(t), r = (e = t.ownerDocument) == null ? void 0 : e.body, s = qo(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), o = qo(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), a = -i.scrollLeft + Fg(t), l = -i.scrollTop;
|
|
54491
|
-
return
|
|
54492
|
+
return Ss(r || n).direction === "rtl" && (a += qo(n.clientWidth, r ? r.clientWidth : 0) - s), {
|
|
54492
54493
|
width: s,
|
|
54493
54494
|
height: o,
|
|
54494
54495
|
x: a,
|
|
@@ -54496,7 +54497,7 @@ function Ale(t) {
|
|
|
54496
54497
|
};
|
|
54497
54498
|
}
|
|
54498
54499
|
function Dg(t) {
|
|
54499
|
-
var e =
|
|
54500
|
+
var e = Ss(t), n = e.overflow, i = e.overflowX, r = e.overflowY;
|
|
54500
54501
|
return /auto|scroll|overlay|hidden/.test(n + r + i);
|
|
54501
54502
|
}
|
|
54502
54503
|
function tL(t) {
|
|
@@ -54527,7 +54528,7 @@ function M8(t, e, n) {
|
|
|
54527
54528
|
return e === GE ? om(Tle(t, n)) : sa(e) ? Nle(e, n) : om(Ale(Co(t)));
|
|
54528
54529
|
}
|
|
54529
54530
|
function Mle(t) {
|
|
54530
|
-
var e = Mc(ah(t)), n = ["absolute", "fixed"].indexOf(
|
|
54531
|
+
var e = Mc(ah(t)), n = ["absolute", "fixed"].indexOf(Ss(t).position) >= 0, i = n && Yi(t) ? rd(t) : t;
|
|
54531
54532
|
return sa(i) ? e.filter(function(r) {
|
|
54532
54533
|
return sa(r) && XE(r, i) && jr(r) !== "body";
|
|
54533
54534
|
}) : [];
|
|
@@ -54800,7 +54801,7 @@ function Ule(t) {
|
|
|
54800
54801
|
S[k] = st, N[k] = st - ae;
|
|
54801
54802
|
}
|
|
54802
54803
|
if (a) {
|
|
54803
|
-
var Me, W = k === "x" ? vi : yi, J = k === "x" ? er : tr, ie = S[C], be = C === "y" ? "height" : "width", Ne = ie + v[W], ve = ie - v[J], Be = [vi, yi].indexOf(y) !== -1,
|
|
54804
|
+
var Me, W = k === "x" ? vi : yi, J = k === "x" ? er : tr, ie = S[C], be = C === "y" ? "height" : "width", Ne = ie + v[W], ve = ie - v[J], Be = [vi, yi].indexOf(y) !== -1, Xe = (Me = M == null ? void 0 : M[C]) != null ? Me : 0, gt = Be ? Ne : ie - E[be] - T[be] - Xe + L.altAxis, vt = Be ? ie + E[be] + T[be] - Xe - L.altAxis : ve, Rt = p && Be ? mle(gt, ie, vt) : Nc(p ? gt : Ne, ie, p ? vt : ve);
|
|
54804
54805
|
S[C] = Rt, N[C] = Rt - ie;
|
|
54805
54806
|
}
|
|
54806
54807
|
e.modifiersData[i] = N;
|
|
@@ -55396,7 +55397,7 @@ function Mce(t, e) {
|
|
|
55396
55397
|
hide: sr,
|
|
55397
55398
|
hideWithInteractivity: or,
|
|
55398
55399
|
enable: Be,
|
|
55399
|
-
disable:
|
|
55400
|
+
disable: Xe,
|
|
55400
55401
|
unmount: _r,
|
|
55401
55402
|
destroy: Kr
|
|
55402
55403
|
};
|
|
@@ -55697,7 +55698,7 @@ function Mce(t, e) {
|
|
|
55697
55698
|
function Be() {
|
|
55698
55699
|
k.state.isEnabled = !0;
|
|
55699
55700
|
}
|
|
55700
|
-
function
|
|
55701
|
+
function Xe() {
|
|
55701
55702
|
k.hide(), k.state.isEnabled = !1;
|
|
55702
55703
|
}
|
|
55703
55704
|
function gt() {
|
|
@@ -56775,7 +56776,7 @@ function dh(t, e) {
|
|
|
56775
56776
|
return (n) => n.editor.contentComponent ? new tfe(t, n, e) : {};
|
|
56776
56777
|
}
|
|
56777
56778
|
const nfe = ({ editor: t, disabled: e, labels: n }) => {
|
|
56778
|
-
const i =
|
|
56779
|
+
const i = Je(), [r, s] = X(!1), [o, a] = X(t.getAttributes("link").href || ""), l = (m) => {
|
|
56779
56780
|
e || s(!r);
|
|
56780
56781
|
}, c = (m) => {
|
|
56781
56782
|
const g = m.trim();
|
|
@@ -56858,7 +56859,7 @@ const nfe = ({ editor: t, disabled: e, labels: n }) => {
|
|
|
56858
56859
|
children: [f("div", {
|
|
56859
56860
|
className: F("flex items-center justify-center", o.length > 0 ? "w-6" : "w-4"),
|
|
56860
56861
|
children: f(ax, {
|
|
56861
|
-
icon: o.length > 0 ? c(o) ?
|
|
56862
|
+
icon: o.length > 0 ? c(o) ? Ls : wx : a2,
|
|
56862
56863
|
type: o ? c(o) ? "positive" : "warning" : "neutral",
|
|
56863
56864
|
size: o.length > 0 ? "sm" : "lg"
|
|
56864
56865
|
})
|
|
@@ -56871,7 +56872,7 @@ const nfe = ({ editor: t, disabled: e, labels: n }) => {
|
|
|
56871
56872
|
onKeyDown: (m) => {
|
|
56872
56873
|
m.key === "Enter" && d();
|
|
56873
56874
|
}
|
|
56874
|
-
}), t.isActive("link") && f(
|
|
56875
|
+
}), t.isActive("link") && f(je, {
|
|
56875
56876
|
size: "md",
|
|
56876
56877
|
icon: sl,
|
|
56877
56878
|
className: "cursor-pointer text-f1-foreground-tertiary hover:text-f1-foreground-secondary",
|
|
@@ -56914,7 +56915,7 @@ const nfe = ({ editor: t, disabled: e, labels: n }) => {
|
|
|
56914
56915
|
disabled: i,
|
|
56915
56916
|
"aria-label": n,
|
|
56916
56917
|
...a,
|
|
56917
|
-
prepend: f(
|
|
56918
|
+
prepend: f(je, {
|
|
56918
56919
|
icon: r
|
|
56919
56920
|
}),
|
|
56920
56921
|
children: o && f("span", {
|
|
@@ -57200,7 +57201,7 @@ const Q8 = ({ items: t, disabled: e = !1, activator: n, darkMode: i = !1, positi
|
|
|
57200
57201
|
disabled: n,
|
|
57201
57202
|
activator: {
|
|
57202
57203
|
label: s.moreOptions,
|
|
57203
|
-
icon:
|
|
57204
|
+
icon: ks
|
|
57204
57205
|
}
|
|
57205
57206
|
})]
|
|
57206
57207
|
}), v = [f(nfe, {
|
|
@@ -58336,7 +58337,7 @@ ui.prototype = {
|
|
|
58336
58337
|
return r.j[t] = o, o;
|
|
58337
58338
|
}
|
|
58338
58339
|
};
|
|
58339
|
-
const ot = (t, e, n, i, r) => t.ta(e, n, i, r), Zt = (t, e, n, i, r) => t.tr(e, n, i, r), ty = (t, e, n, i, r) => t.ts(e, n, i, r), Le = (t, e, n, i, r) => t.tt(e, n, i, r), is = "WORD", vm = "UWORD", SL = "ASCIINUMERICAL", EL = "ALPHANUMERICAL", mf = "LOCALHOST", ym = "TLD", xm = "UTLD", c1 = "SCHEME", Va = "SLASH_SCHEME", qg = "NUM", km = "WS", Gg = "NL", Dc = "OPENBRACE", Ic = "CLOSEBRACE", _u = "OPENBRACKET", Su = "CLOSEBRACKET", Eu = "OPENPAREN", Lu = "CLOSEPAREN", Tu = "OPENANGLEBRACKET", Au = "CLOSEANGLEBRACKET", Nu = "FULLWIDTHLEFTPAREN", Mu = "FULLWIDTHRIGHTPAREN", Ou = "LEFTCORNERBRACKET", Fu = "RIGHTCORNERBRACKET", Du = "LEFTWHITECORNERBRACKET", Iu = "RIGHTWHITECORNERBRACKET", Ru = "FULLWIDTHLESSTHAN", Pu = "FULLWIDTHGREATERTHAN", Bu = "AMPERSAND", Kg = "APOSTROPHE", Hu = "ASTERISK",
|
|
58340
|
+
const ot = (t, e, n, i, r) => t.ta(e, n, i, r), Zt = (t, e, n, i, r) => t.tr(e, n, i, r), ty = (t, e, n, i, r) => t.ts(e, n, i, r), Le = (t, e, n, i, r) => t.tt(e, n, i, r), is = "WORD", vm = "UWORD", SL = "ASCIINUMERICAL", EL = "ALPHANUMERICAL", mf = "LOCALHOST", ym = "TLD", xm = "UTLD", c1 = "SCHEME", Va = "SLASH_SCHEME", qg = "NUM", km = "WS", Gg = "NL", Dc = "OPENBRACE", Ic = "CLOSEBRACE", _u = "OPENBRACKET", Su = "CLOSEBRACKET", Eu = "OPENPAREN", Lu = "CLOSEPAREN", Tu = "OPENANGLEBRACKET", Au = "CLOSEANGLEBRACKET", Nu = "FULLWIDTHLEFTPAREN", Mu = "FULLWIDTHRIGHTPAREN", Ou = "LEFTCORNERBRACKET", Fu = "RIGHTCORNERBRACKET", Du = "LEFTWHITECORNERBRACKET", Iu = "RIGHTWHITECORNERBRACKET", Ru = "FULLWIDTHLESSTHAN", Pu = "FULLWIDTHGREATERTHAN", Bu = "AMPERSAND", Kg = "APOSTROPHE", Hu = "ASTERISK", Bs = "AT", $u = "BACKSLASH", Vu = "BACKTICK", zu = "CARET", js = "COLON", Zg = "COMMA", ju = "DOLLAR", Ar = "DOT", Wu = "EQUALS", Jg = "EXCLAMATION", ji = "HYPHEN", Rc = "PERCENT", Uu = "PIPE", qu = "PLUS", Gu = "POUND", Pc = "QUERY", Xg = "QUOTE", LL = "FULLWIDTHMIDDLEDOT", Yg = "SEMI", Nr = "SLASH", Bc = "TILDE", Ku = "UNDERSCORE", TL = "EMOJI", Zu = "SYM";
|
|
58340
58341
|
var AL = /* @__PURE__ */ Object.freeze({
|
|
58341
58342
|
__proto__: null,
|
|
58342
58343
|
WORD: is,
|
|
@@ -58370,11 +58371,11 @@ var AL = /* @__PURE__ */ Object.freeze({
|
|
|
58370
58371
|
AMPERSAND: Bu,
|
|
58371
58372
|
APOSTROPHE: Kg,
|
|
58372
58373
|
ASTERISK: Hu,
|
|
58373
|
-
AT:
|
|
58374
|
+
AT: Bs,
|
|
58374
58375
|
BACKSLASH: $u,
|
|
58375
58376
|
BACKTICK: Vu,
|
|
58376
58377
|
CARET: zu,
|
|
58377
|
-
COLON:
|
|
58378
|
+
COLON: js,
|
|
58378
58379
|
COMMA: Zg,
|
|
58379
58380
|
DOLLAR: ju,
|
|
58380
58381
|
DOT: Ar,
|
|
@@ -58402,7 +58403,7 @@ function sde(t = []) {
|
|
|
58402
58403
|
const e = {};
|
|
58403
58404
|
ui.groups = e;
|
|
58404
58405
|
const n = new ui();
|
|
58405
|
-
Dd == null && (Dd = iy(Xfe)), Id == null && (Id = iy(Yfe)), Le(n, "'", Kg), Le(n, "{", Dc), Le(n, "}", Ic), Le(n, "[", _u), Le(n, "]", Su), Le(n, "(", Eu), Le(n, ")", Lu), Le(n, "<", Tu), Le(n, ">", Au), Le(n, "(", Nu), Le(n, ")", Mu), Le(n, "「", Ou), Le(n, "」", Fu), Le(n, "『", Du), Le(n, "』", Iu), Le(n, "<", Ru), Le(n, ">", Pu), Le(n, "&", Bu), Le(n, "*", Hu), Le(n, "@",
|
|
58406
|
+
Dd == null && (Dd = iy(Xfe)), Id == null && (Id = iy(Yfe)), Le(n, "'", Kg), Le(n, "{", Dc), Le(n, "}", Ic), Le(n, "[", _u), Le(n, "]", Su), Le(n, "(", Eu), Le(n, ")", Lu), Le(n, "<", Tu), Le(n, ">", Au), Le(n, "(", Nu), Le(n, ")", Mu), Le(n, "「", Ou), Le(n, "」", Fu), Le(n, "『", Du), Le(n, "』", Iu), Le(n, "<", Ru), Le(n, ">", Pu), Le(n, "&", Bu), Le(n, "*", Hu), Le(n, "@", Bs), Le(n, "`", Vu), Le(n, "^", zu), Le(n, ":", js), Le(n, ",", Zg), Le(n, "$", ju), Le(n, ".", Ar), Le(n, "=", Wu), Le(n, "!", Jg), Le(n, "-", ji), Le(n, "%", Rc), Le(n, "|", Uu), Le(n, "+", qu), Le(n, "#", Gu), Le(n, "?", Pc), Le(n, '"', Xg), Le(n, "/", Nr), Le(n, ";", Yg), Le(n, "~", Bc), Le(n, "_", Ku), Le(n, "\\", $u), Le(n, "・", LL);
|
|
58406
58407
|
const i = Zt(n, ts, qg, {
|
|
58407
58408
|
[hm]: !0
|
|
58408
58409
|
});
|
|
@@ -58435,16 +58436,16 @@ function sde(t = []) {
|
|
|
58435
58436
|
Le(h, "#"), Zt(h, Dp, u);
|
|
58436
58437
|
const p = [[es, o], [ts, r]], m = [[es, null], [lc, a], [ts, s]];
|
|
58437
58438
|
for (let g = 0; g < Dd.length; g++)
|
|
58438
|
-
|
|
58439
|
+
Ds(n, Dd[g], ym, is, p);
|
|
58439
58440
|
for (let g = 0; g < Id.length; g++)
|
|
58440
|
-
|
|
58441
|
+
Ds(n, Id[g], xm, vm, m);
|
|
58441
58442
|
Ho(ym, {
|
|
58442
58443
|
tld: !0,
|
|
58443
58444
|
ascii: !0
|
|
58444
58445
|
}, e), Ho(xm, {
|
|
58445
58446
|
utld: !0,
|
|
58446
58447
|
alpha: !0
|
|
58447
|
-
}, e),
|
|
58448
|
+
}, e), Ds(n, "file", c1, is, p), Ds(n, "mailto", c1, is, p), Ds(n, "http", Va, is, p), Ds(n, "https", Va, is, p), Ds(n, "ftp", Va, is, p), Ds(n, "ftps", Va, is, p), Ho(c1, {
|
|
58448
58449
|
scheme: !0,
|
|
58449
58450
|
ascii: !0
|
|
58450
58451
|
}, e), Ho(Va, {
|
|
@@ -58497,7 +58498,7 @@ function ode(t) {
|
|
|
58497
58498
|
}
|
|
58498
58499
|
return e;
|
|
58499
58500
|
}
|
|
58500
|
-
function
|
|
58501
|
+
function Ds(t, e, n, i, r) {
|
|
58501
58502
|
let s;
|
|
58502
58503
|
const o = e.length;
|
|
58503
58504
|
for (let a = 0; a < o - 1; a++) {
|
|
@@ -58752,18 +58753,18 @@ const sy = uh("email", {
|
|
|
58752
58753
|
*/
|
|
58753
58754
|
hasProtocol() {
|
|
58754
58755
|
const t = this.tk;
|
|
58755
|
-
return t.length >= 2 && t[0].t !== mf && t[1].t ===
|
|
58756
|
+
return t.length >= 2 && t[0].t !== mf && t[1].t === js;
|
|
58756
58757
|
}
|
|
58757
58758
|
}), Hi = (t) => new ui(t);
|
|
58758
58759
|
function lde({
|
|
58759
58760
|
groups: t
|
|
58760
58761
|
}) {
|
|
58761
|
-
const e = t.domain.concat([Bu, Hu,
|
|
58762
|
+
const e = t.domain.concat([Bu, Hu, Bs, $u, Vu, zu, ju, Wu, ji, qg, Rc, Uu, qu, Gu, Nr, Zu, Bc, Ku]), n = [js, Zg, Ar, Jg, Rc, Pc, Xg, Yg, Tu, Au, Dc, Ic, Su, _u, Eu, Lu, Nu, Mu, Ou, Fu, Du, Iu, Ru, Pu], i = [Bu, Kg, Hu, $u, Vu, zu, ju, Wu, ji, Dc, Ic, Rc, Uu, qu, Gu, Pc, Nr, Zu, Bc, Ku], r = Hi(), s = Le(r, Bc);
|
|
58762
58763
|
ot(s, i, s), ot(s, t.domain, s);
|
|
58763
58764
|
const o = Hi(), a = Hi(), l = Hi();
|
|
58764
58765
|
ot(r, t.domain, o), ot(r, t.scheme, a), ot(r, t.slashscheme, l), ot(o, i, s), ot(o, t.domain, o);
|
|
58765
|
-
const c = Le(o,
|
|
58766
|
-
Le(s,
|
|
58766
|
+
const c = Le(o, Bs);
|
|
58767
|
+
Le(s, Bs, c), Le(a, Bs, c), Le(l, Bs, c);
|
|
58767
58768
|
const d = Le(s, Ar);
|
|
58768
58769
|
ot(d, i, s), ot(d, t.domain, s);
|
|
58769
58770
|
const u = Hi();
|
|
@@ -58774,17 +58775,17 @@ function lde({
|
|
|
58774
58775
|
ot(h, t.tld, p), ot(h, t.utld, p), Le(c, mf, p);
|
|
58775
58776
|
const m = Le(u, ji);
|
|
58776
58777
|
Le(m, ji, m), ot(m, t.domain, u), ot(p, t.domain, u), Le(p, Ar, h), Le(p, ji, m);
|
|
58777
|
-
const g = Le(p,
|
|
58778
|
+
const g = Le(p, js);
|
|
58778
58779
|
ot(g, t.numeric, sy);
|
|
58779
58780
|
const v = Le(o, ji), y = Le(o, Ar);
|
|
58780
58781
|
Le(v, ji, v), ot(v, t.domain, o), ot(y, i, s), ot(y, t.domain, o);
|
|
58781
58782
|
const b = Hi(Rd);
|
|
58782
|
-
ot(y, t.tld, b), ot(y, t.utld, b), ot(b, t.domain, o), ot(b, i, s), Le(b, Ar, y), Le(b, ji, v), Le(b,
|
|
58783
|
-
const w = Le(b,
|
|
58783
|
+
ot(y, t.tld, b), ot(y, t.utld, b), ot(b, t.domain, o), ot(b, i, s), Le(b, Ar, y), Le(b, ji, v), Le(b, Bs, c);
|
|
58784
|
+
const w = Le(b, js), k = Hi(Rd);
|
|
58784
58785
|
ot(w, t.numeric, k);
|
|
58785
58786
|
const C = Hi(Rd), S = Hi();
|
|
58786
58787
|
ot(C, e, C), ot(C, n, S), ot(S, e, C), ot(S, n, S), Le(b, Nr, C), Le(k, Nr, C);
|
|
58787
|
-
const E = Le(a,
|
|
58788
|
+
const E = Le(a, js), T = Le(l, js), _ = Le(T, Nr), L = Le(_, Nr);
|
|
58788
58789
|
ot(a, t.domain, o), Le(a, Ar, y), Le(a, ji, v), ot(l, t.domain, o), Le(l, Ar, y), Le(l, ji, v), ot(E, t.domain, C), Le(E, Nr, C), Le(E, Pc, C), ot(L, t.domain, C), ot(L, e, C), Le(L, Nr, C);
|
|
58789
58790
|
const M = [
|
|
58790
58791
|
[Dc, Ic],
|
|
@@ -59814,9 +59815,9 @@ class dr {
|
|
|
59814
59815
|
return;
|
|
59815
59816
|
}
|
|
59816
59817
|
if (r) {
|
|
59817
|
-
d.push(new
|
|
59818
|
+
d.push(new Is(u.map));
|
|
59818
59819
|
let p = u.step.map(r.slice(s)), m;
|
|
59819
|
-
p && o.maybeStep(p).doc && (m = o.mapping.maps[o.mapping.maps.length - 1], c.push(new
|
|
59820
|
+
p && o.maybeStep(p).doc && (m = o.mapping.maps[o.mapping.maps.length - 1], c.push(new Is(m, void 0, void 0, c.length + d.length))), s--, m && r.appendMap(m, s);
|
|
59820
59821
|
} else
|
|
59821
59822
|
o.maybeStep(u.step);
|
|
59822
59823
|
if (u.selection)
|
|
@@ -59827,7 +59828,7 @@ class dr {
|
|
|
59827
59828
|
addTransform(e, n, i, r) {
|
|
59828
59829
|
let s = [], o = this.eventCount, a = this.items, l = !r && a.length ? a.get(a.length - 1) : null;
|
|
59829
59830
|
for (let d = 0; d < e.steps.length; d++) {
|
|
59830
|
-
let u = e.steps[d].invert(e.docs[d]), h = new
|
|
59831
|
+
let u = e.steps[d].invert(e.docs[d]), h = new Is(e.mapping.maps[d], u, n), p;
|
|
59831
59832
|
(p = l && l.merge(h)) && (h = p, d ? s.pop() : a = a.slice(0, a.length - 1)), s.push(h), n && (o++, n = void 0), r || (l = h);
|
|
59832
59833
|
}
|
|
59833
59834
|
let c = o - i.depth;
|
|
@@ -59841,7 +59842,7 @@ class dr {
|
|
|
59841
59842
|
}, e, n), i;
|
|
59842
59843
|
}
|
|
59843
59844
|
addMaps(e) {
|
|
59844
|
-
return this.eventCount == 0 ? this : new dr(this.items.append(e.map((n) => new
|
|
59845
|
+
return this.eventCount == 0 ? this : new dr(this.items.append(e.map((n) => new Is(n))), this.eventCount);
|
|
59845
59846
|
}
|
|
59846
59847
|
// When the collab module receives remote changes, the history has
|
|
59847
59848
|
// to know about those, so that it can adjust the steps that were
|
|
@@ -59863,13 +59864,13 @@ class dr {
|
|
|
59863
59864
|
let m = s.maps[p];
|
|
59864
59865
|
if (h.step) {
|
|
59865
59866
|
let g = e.steps[p].invert(e.docs[p]), v = h.selection && h.selection.map(s.slice(l + 1, p));
|
|
59866
|
-
v && a++, i.push(new
|
|
59867
|
+
v && a++, i.push(new Is(m, g, v));
|
|
59867
59868
|
} else
|
|
59868
|
-
i.push(new
|
|
59869
|
+
i.push(new Is(m));
|
|
59869
59870
|
}, r);
|
|
59870
59871
|
let c = [];
|
|
59871
59872
|
for (let h = n; h < o; h++)
|
|
59872
|
-
c.push(new
|
|
59873
|
+
c.push(new Is(s.maps[h]));
|
|
59873
59874
|
let d = this.items.slice(0, r).append(c).append(i), u = new dr(d, a);
|
|
59874
59875
|
return u.emptyItemCount() > jde && (u = u.compress(this.items.length - i.length)), u;
|
|
59875
59876
|
}
|
|
@@ -59895,7 +59896,7 @@ class dr {
|
|
|
59895
59896
|
if (i--, c && n.appendMap(c, i), l) {
|
|
59896
59897
|
let d = o.selection && o.selection.map(n.slice(i));
|
|
59897
59898
|
d && s++;
|
|
59898
|
-
let u = new
|
|
59899
|
+
let u = new Is(c.invert(), l, d), h, p = r.length - 1;
|
|
59899
59900
|
(h = r.length && r[p].merge(u)) ? r[p] = h : r.push(u);
|
|
59900
59901
|
}
|
|
59901
59902
|
} else o.map && i--;
|
|
@@ -59910,7 +59911,7 @@ function Wde(t, e) {
|
|
|
59910
59911
|
return n = r, !1;
|
|
59911
59912
|
}), t.slice(n);
|
|
59912
59913
|
}
|
|
59913
|
-
let
|
|
59914
|
+
let Is = class DL {
|
|
59914
59915
|
constructor(e, n, i, r) {
|
|
59915
59916
|
this.map = e, this.step = n, this.selection = i, this.mirrorOffset = r;
|
|
59916
59917
|
}
|
|
@@ -59922,7 +59923,7 @@ let Rs = class DL {
|
|
|
59922
59923
|
}
|
|
59923
59924
|
}
|
|
59924
59925
|
};
|
|
59925
|
-
class
|
|
59926
|
+
class Hs {
|
|
59926
59927
|
constructor(e, n, i, r, s) {
|
|
59927
59928
|
this.done = e, this.undone = n, this.prevRanges = i, this.prevTime = r, this.prevComposition = s;
|
|
59928
59929
|
}
|
|
@@ -59932,16 +59933,16 @@ function qde(t, e, n, i) {
|
|
|
59932
59933
|
let r = n.getMeta(Go), s;
|
|
59933
59934
|
if (r)
|
|
59934
59935
|
return r.historyState;
|
|
59935
|
-
n.getMeta(Zde) && (t = new
|
|
59936
|
+
n.getMeta(Zde) && (t = new Hs(t.done, t.undone, null, 0, -1));
|
|
59936
59937
|
let o = n.getMeta("appendedTransaction");
|
|
59937
59938
|
if (n.steps.length == 0)
|
|
59938
59939
|
return t;
|
|
59939
59940
|
if (o && o.getMeta(Go))
|
|
59940
|
-
return o.getMeta(Go).redo ? new
|
|
59941
|
+
return o.getMeta(Go).redo ? new Hs(t.done.addTransform(n, void 0, i, f1(e)), t.undone, fy(n.mapping.maps), t.prevTime, t.prevComposition) : new Hs(t.done, t.undone.addTransform(n, void 0, i, f1(e)), null, t.prevTime, t.prevComposition);
|
|
59941
59942
|
if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
|
|
59942
59943
|
let a = n.getMeta("composition"), l = t.prevTime == 0 || !o && t.prevComposition != a && (t.prevTime < (n.time || 0) - i.newGroupDelay || !Gde(n, t.prevRanges)), c = o ? Hp(t.prevRanges, n.mapping) : fy(n.mapping.maps);
|
|
59943
|
-
return new
|
|
59944
|
-
} else return (s = n.getMeta("rebased")) ? new
|
|
59944
|
+
return new Hs(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, i, f1(e)), dr.empty, c, n.time, a ?? t.prevComposition);
|
|
59945
|
+
} else return (s = n.getMeta("rebased")) ? new Hs(t.done.rebased(n, s), t.undone.rebased(n, s), Hp(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Hs(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Hp(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
59945
59946
|
}
|
|
59946
59947
|
function Gde(t, e) {
|
|
59947
59948
|
if (!e)
|
|
@@ -59974,7 +59975,7 @@ function Kde(t, e, n) {
|
|
|
59974
59975
|
let i = f1(e), r = Go.get(e).spec.config, s = (n ? t.undone : t.done).popEvent(e, i);
|
|
59975
59976
|
if (!s)
|
|
59976
59977
|
return null;
|
|
59977
|
-
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), r, i), l = new
|
|
59978
|
+
let o = s.selection.resolve(s.transform.doc), a = (n ? t.done : t.undone).addTransform(s.transform, e.selection.getBookmark(), r, i), l = new Hs(n ? a : s.remaining, n ? s.remaining : a, null, 0, -1);
|
|
59978
59979
|
return s.transform.setSelection(o).setMeta(Go, { redo: n, historyState: l });
|
|
59979
59980
|
}
|
|
59980
59981
|
let $p = !1, dy = null;
|
|
@@ -59999,7 +60000,7 @@ function Jde(t = {}) {
|
|
|
59999
60000
|
key: Go,
|
|
60000
60001
|
state: {
|
|
60001
60002
|
init() {
|
|
60002
|
-
return new
|
|
60003
|
+
return new Hs(dr.empty, dr.empty, null, 0, -1);
|
|
60003
60004
|
},
|
|
60004
60005
|
apply(e, n, i) {
|
|
60005
60006
|
return qde(n, i, e, t);
|
|
@@ -60581,7 +60582,7 @@ function Zn(t) {
|
|
|
60581
60582
|
}
|
|
60582
60583
|
return e;
|
|
60583
60584
|
}
|
|
60584
|
-
var
|
|
60585
|
+
var Ws = new bt("selectingCells");
|
|
60585
60586
|
function Kl(t) {
|
|
60586
60587
|
for (let e = t.depth - 1; e > 0; e--)
|
|
60587
60588
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -61706,21 +61707,21 @@ function X1e(t, e) {
|
|
|
61706
61707
|
return;
|
|
61707
61708
|
function s(l, c) {
|
|
61708
61709
|
let d = Vp(t, c);
|
|
61709
|
-
const u =
|
|
61710
|
+
const u = Ws.getState(t.state) == null;
|
|
61710
61711
|
if (!d || !i5(l, d))
|
|
61711
61712
|
if (u) d = l;
|
|
61712
61713
|
else return;
|
|
61713
61714
|
const h = new Bt(l, d);
|
|
61714
61715
|
if (u || !t.state.selection.eq(h)) {
|
|
61715
61716
|
const p = t.state.tr.setSelection(h);
|
|
61716
|
-
u && p.setMeta(
|
|
61717
|
+
u && p.setMeta(Ws, l.pos), t.dispatch(p);
|
|
61717
61718
|
}
|
|
61718
61719
|
}
|
|
61719
61720
|
function o() {
|
|
61720
|
-
t.root.removeEventListener("mouseup", o), t.root.removeEventListener("dragstart", o), t.root.removeEventListener("mousemove", a),
|
|
61721
|
+
t.root.removeEventListener("mouseup", o), t.root.removeEventListener("dragstart", o), t.root.removeEventListener("mousemove", a), Ws.getState(t.state) != null && t.dispatch(t.state.tr.setMeta(Ws, -1));
|
|
61721
61722
|
}
|
|
61722
61723
|
function a(l) {
|
|
61723
|
-
const c = l, d =
|
|
61724
|
+
const c = l, d = Ws.getState(t.state);
|
|
61724
61725
|
let u;
|
|
61725
61726
|
if (d != null)
|
|
61726
61727
|
u = t.state.doc.resolve(d);
|
|
@@ -62024,7 +62025,7 @@ function cue({
|
|
|
62024
62025
|
allowTableNodeSelection: t = !1
|
|
62025
62026
|
} = {}) {
|
|
62026
62027
|
return new wt({
|
|
62027
|
-
key:
|
|
62028
|
+
key: Ws,
|
|
62028
62029
|
// This piece of state is used to remember when a mouse-drag
|
|
62029
62030
|
// cell-selection is happening, so that it can continue even as
|
|
62030
62031
|
// transactions (which might move its anchor cell) come in.
|
|
@@ -62033,7 +62034,7 @@ function cue({
|
|
|
62033
62034
|
return null;
|
|
62034
62035
|
},
|
|
62035
62036
|
apply(e, n) {
|
|
62036
|
-
const i = e.getMeta(
|
|
62037
|
+
const i = e.getMeta(Ws);
|
|
62037
62038
|
if (i != null) return i == -1 ? null : i;
|
|
62038
62039
|
if (n == null || !e.docChanged) return n;
|
|
62039
62040
|
const { deleted: r, pos: s } = e.mapping.mapResult(n);
|
|
@@ -62046,7 +62047,7 @@ function cue({
|
|
|
62046
62047
|
mousedown: X1e
|
|
62047
62048
|
},
|
|
62048
62049
|
createSelectionBetween(e) {
|
|
62049
|
-
return
|
|
62050
|
+
return Ws.getState(e.state) != null ? e.state.selection : null;
|
|
62050
62051
|
},
|
|
62051
62052
|
handleTripleClick: Z1e,
|
|
62052
62053
|
handleKeyDown: K1e,
|
|
@@ -62884,14 +62885,14 @@ const Iue = ({ item: t, selected: e }) => x("div", {
|
|
|
62884
62885
|
children: t.label
|
|
62885
62886
|
})]
|
|
62886
62887
|
}), ZL = B(({ items: t, command: e, component: n = Iue }, i) => {
|
|
62887
|
-
const [r, s] = X(0), o =
|
|
62888
|
+
const [r, s] = X(0), o = Ze((d) => {
|
|
62888
62889
|
const u = t[d];
|
|
62889
62890
|
u && e(u);
|
|
62890
|
-
}, [t, e]), a =
|
|
62891
|
+
}, [t, e]), a = Ze(() => {
|
|
62891
62892
|
s((d) => (d + t.length - 1) % t.length);
|
|
62892
|
-
}, [t.length]), l =
|
|
62893
|
+
}, [t.length]), l = Ze(() => {
|
|
62893
62894
|
s((d) => (d + 1) % t.length);
|
|
62894
|
-
}, [t.length]), c =
|
|
62895
|
+
}, [t.length]), c = Ze(() => {
|
|
62895
62896
|
o(r);
|
|
62896
62897
|
}, [r, o]);
|
|
62897
62898
|
return Ae(() => {
|
|
@@ -63477,7 +63478,7 @@ const Pue = Fue.extend({
|
|
|
63477
63478
|
currentConfig: l
|
|
63478
63479
|
}), l5, a5(t), o5(t), tT(e, n)];
|
|
63479
63480
|
}, Uue = (t, e, n, i, r) => {
|
|
63480
|
-
const s = ke(() => Wue(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), o = Ce(null), a =
|
|
63481
|
+
const s = ke(() => Wue(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), o = Ce(null), a = Ze(({ editor: c }) => {
|
|
63481
63482
|
o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
63482
63483
|
const { from: d, to: u } = c.state.selection, h = c.isEmpty;
|
|
63483
63484
|
h && (t != null && t.selectedAction) && !e ? i({
|
|
@@ -63588,7 +63589,7 @@ const Pue = Fue.extend({
|
|
|
63588
63589
|
});
|
|
63589
63590
|
}
|
|
63590
63591
|
}, [o, a, e]);
|
|
63591
|
-
const m =
|
|
63592
|
+
const m = Ze(async (k) => {
|
|
63592
63593
|
var E;
|
|
63593
63594
|
const C = (E = a.buttons) == null ? void 0 : E.find((T) => T.type === k), S = {
|
|
63594
63595
|
selectedAction: k,
|
|
@@ -63813,7 +63814,7 @@ const Pue = Fue.extend({
|
|
|
63813
63814
|
className: "flex flex-row items-center",
|
|
63814
63815
|
children: o.days.map((p, m) => f("div", {
|
|
63815
63816
|
className: "-ml-1.5 flex items-center justify-center rounded-full bg-f1-background",
|
|
63816
|
-
children: f(
|
|
63817
|
+
children: f(je, {
|
|
63817
63818
|
icon: F2[p.mood],
|
|
63818
63819
|
size: "lg",
|
|
63819
63820
|
color: D2[p.mood]
|
|
@@ -63847,7 +63848,7 @@ const Pue = Fue.extend({
|
|
|
63847
63848
|
className: "flex flex-row items-center gap-2",
|
|
63848
63849
|
children: [f("div", {
|
|
63849
63850
|
className: "flex items-center justify-center rounded-full",
|
|
63850
|
-
children: f(
|
|
63851
|
+
children: f(je, {
|
|
63851
63852
|
icon: F2[p.mood],
|
|
63852
63853
|
size: "lg",
|
|
63853
63854
|
color: D2[p.mood]
|
|
@@ -64139,19 +64140,19 @@ const Pue = Fue.extend({
|
|
|
64139
64140
|
const [r, s] = X(0), o = Ce(null), a = Ce(null), l = e || [{
|
|
64140
64141
|
title: "",
|
|
64141
64142
|
commands: t
|
|
64142
|
-
}], c = l.flatMap((v) => v.commands), d =
|
|
64143
|
+
}], c = l.flatMap((v) => v.commands), d = Ze((v) => {
|
|
64143
64144
|
const y = c[v];
|
|
64144
64145
|
y && n(y);
|
|
64145
|
-
}, [c, n]), u =
|
|
64146
|
+
}, [c, n]), u = Ze((v) => {
|
|
64146
64147
|
const y = o.current;
|
|
64147
64148
|
if (!y) return;
|
|
64148
64149
|
const b = y.getBoundingClientRect(), w = v.getBoundingClientRect();
|
|
64149
64150
|
w.top < b.top ? y.scrollTop += w.top - b.top : w.bottom > b.bottom && (y.scrollTop += w.bottom - b.bottom);
|
|
64150
|
-
}, []), h =
|
|
64151
|
+
}, []), h = Ze(() => {
|
|
64151
64152
|
s((v) => v <= 0 ? c.length - 1 : v - 1);
|
|
64152
|
-
}, [c.length]), p =
|
|
64153
|
+
}, [c.length]), p = Ze(() => {
|
|
64153
64154
|
s((v) => v >= c.length - 1 ? 0 : v + 1);
|
|
64154
|
-
}, [c.length]), m =
|
|
64155
|
+
}, [c.length]), m = Ze(() => {
|
|
64155
64156
|
d(r);
|
|
64156
64157
|
}, [r, d]);
|
|
64157
64158
|
Ae(() => {
|
|
@@ -64191,7 +64192,7 @@ const Pue = Fue.extend({
|
|
|
64191
64192
|
children: [b.emoji ? f("span", {
|
|
64192
64193
|
className: "text-base",
|
|
64193
64194
|
children: b.emoji
|
|
64194
|
-
}) : b.icon ? f(
|
|
64195
|
+
}) : b.icon ? f(je, {
|
|
64195
64196
|
icon: b.icon,
|
|
64196
64197
|
className: "text-f1-foreground-secondary"
|
|
64197
64198
|
}) : null, f("p", {
|
|
@@ -64390,7 +64391,7 @@ const tT = (t, e, n) => Mt.create({
|
|
|
64390
64391
|
return t.forEach((n, i) => {
|
|
64391
64392
|
e.set(i, n);
|
|
64392
64393
|
}), e;
|
|
64393
|
-
},
|
|
64394
|
+
}, Ms = (t, e, n) => {
|
|
64394
64395
|
let i = t.get(e);
|
|
64395
64396
|
return i === void 0 && t.set(e, i = n()), i;
|
|
64396
64397
|
}, r0e = (t, e) => {
|
|
@@ -64422,7 +64423,7 @@ class nT {
|
|
|
64422
64423
|
* @param {EVENTS[NAME]} f
|
|
64423
64424
|
*/
|
|
64424
64425
|
on(e, n) {
|
|
64425
|
-
return
|
|
64426
|
+
return Ms(
|
|
64426
64427
|
this._observers,
|
|
64427
64428
|
/** @type {string} */
|
|
64428
64429
|
e,
|
|
@@ -64474,7 +64475,7 @@ class nT {
|
|
|
64474
64475
|
this._observers = gr();
|
|
64475
64476
|
}
|
|
64476
64477
|
}
|
|
64477
|
-
const
|
|
64478
|
+
const Es = Math.floor, h1 = Math.abs, El = (t, e) => t < e ? t : e, ho = (t, e) => t > e ? t : e, iT = (t) => t !== 0 ? t < 0 : 1 / t < 0, Oy = 1, Fy = 2, jp = 4, Wp = 8, yf = 32, ys = 64, ni = 128, l0e = 1 << 29, ph = 31, Nm = 63, Ko = 127, c0e = 2147483647, rT = Number.MAX_SAFE_INTEGER, f0e = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && Es(t) === t), d0e = String.fromCharCode, u0e = (t) => t.toLowerCase(), h0e = /^\s*/g, p0e = (t) => t.replace(h0e, ""), m0e = /([A-Z])/g, Dy = (t, e) => p0e(t.replace(m0e, (n) => `${e}${u0e(n)}`)), g0e = (t) => {
|
|
64478
64479
|
const e = unescape(encodeURIComponent(t)), n = e.length, i = new Uint8Array(n);
|
|
64479
64480
|
for (let r = 0; r < n; r++)
|
|
64480
64481
|
i[r] = /** @type {number} */
|
|
@@ -64515,12 +64516,12 @@ const od = () => new sd(), x0e = (t) => {
|
|
|
64515
64516
|
t.cpos === n && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(n * 2), t.cpos = 0), t.cbuf[t.cpos++] = e;
|
|
64516
64517
|
}, Mm = mn, mt = (t, e) => {
|
|
64517
64518
|
for (; e > Ko; )
|
|
64518
|
-
mn(t, ni | Ko & e), e =
|
|
64519
|
+
mn(t, ni | Ko & e), e = Es(e / 128);
|
|
64519
64520
|
mn(t, Ko & e);
|
|
64520
64521
|
}, c5 = (t, e) => {
|
|
64521
64522
|
const n = iT(e);
|
|
64522
|
-
for (n && (e = -e), mn(t, (e > Nm ? ni : 0) | (n ?
|
|
64523
|
-
mn(t, (e > Ko ? ni : 0) | Ko & e), e =
|
|
64523
|
+
for (n && (e = -e), mn(t, (e > Nm ? ni : 0) | (n ? ys : 0) | Nm & e), e = Es(e / 64); e > 0; )
|
|
64524
|
+
mn(t, (e > Ko ? ni : 0) | Ko & e), e = Es(e / 128);
|
|
64524
64525
|
}, Om = new Uint8Array(3e4), b0e = Om.length / 3, C0e = (t, e) => {
|
|
64525
64526
|
if (e.length < b0e) {
|
|
64526
64527
|
const n = xf.encodeInto(e, Om).written || 0;
|
|
@@ -64693,7 +64694,7 @@ const d5 = (t) => new gh(t), N0e = (t) => t.pos !== t.arr.length, M0e = (t, e) =
|
|
|
64693
64694
|
throw sT;
|
|
64694
64695
|
}, u5 = (t) => {
|
|
64695
64696
|
let e = t.arr[t.pos++], n = e & Nm, i = 64;
|
|
64696
|
-
const r = (e &
|
|
64697
|
+
const r = (e & ys) > 0 ? -1 : 1;
|
|
64697
64698
|
if ((e & ni) === 0)
|
|
64698
64699
|
return r * n;
|
|
64699
64700
|
const s = t.arr.length;
|
|
@@ -64813,7 +64814,7 @@ class qp extends gh {
|
|
|
64813
64814
|
read() {
|
|
64814
64815
|
if (this.count === 0) {
|
|
64815
64816
|
const e = u5(this), n = e & 1;
|
|
64816
|
-
this.diff =
|
|
64817
|
+
this.diff = Es(e / 2), this.count = 1, n && (this.count = Vt(this) + 2);
|
|
64817
64818
|
}
|
|
64818
64819
|
return this.s += this.diff, this.count--, this.s;
|
|
64819
64820
|
}
|
|
@@ -64833,7 +64834,7 @@ class B0e {
|
|
|
64833
64834
|
return this.spos = e, n;
|
|
64834
64835
|
}
|
|
64835
64836
|
}
|
|
64836
|
-
const H0e = crypto.getRandomValues.bind(crypto), $0e = Math.random, aT = () => H0e(new Uint32Array(1))[0], V0e = (t) => t[
|
|
64837
|
+
const H0e = crypto.getRandomValues.bind(crypto), $0e = Math.random, aT = () => H0e(new Uint32Array(1))[0], V0e = (t) => t[Es($0e() * t.length)], z0e = "10000000-1000-4000-8000" + -1e11, j0e = () => z0e.replace(
|
|
64837
64838
|
/[018]/g,
|
|
64838
64839
|
/** @param {number} c */
|
|
64839
64840
|
(t) => (t ^ aT() & 15 >> t / 4).toString(16)
|
|
@@ -64944,7 +64945,7 @@ const fhe = (t) => r0e(t, (e, n) => `${n}:${e};`).join(""), dhe = (t) => class {
|
|
|
64944
64945
|
destroy() {
|
|
64945
64946
|
t(this._);
|
|
64946
64947
|
}
|
|
64947
|
-
}, uhe = dhe(clearTimeout), pT = (t, e) => new uhe(setTimeout(e, t)),
|
|
64948
|
+
}, uhe = dhe(clearTimeout), pT = (t, e) => new uhe(setTimeout(e, t)), Os = Symbol, mT = Os(), gT = Os(), hhe = Os(), phe = Os(), mhe = Os(), vT = Os(), ghe = Os(), m5 = Os(), vhe = Os(), yhe = (t) => {
|
|
64948
64949
|
var r;
|
|
64949
64950
|
t.length === 1 && ((r = t[0]) == null ? void 0 : r.constructor) === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
|
|
64950
64951
|
/** @type {[function]} */
|
|
@@ -65052,7 +65053,7 @@ const mo = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
65052
65053
|
}), Che = (t, e) => {
|
|
65053
65054
|
let n = 0, i = t.length - 1;
|
|
65054
65055
|
for (; n <= i; ) {
|
|
65055
|
-
const r =
|
|
65056
|
+
const r = Es((n + i) / 2), s = t[r], o = s.clock;
|
|
65056
65057
|
if (o <= e) {
|
|
65057
65058
|
if (e < o + s.len)
|
|
65058
65059
|
return r;
|
|
@@ -65087,7 +65088,7 @@ const mo = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
65087
65088
|
});
|
|
65088
65089
|
return v5(e), e;
|
|
65089
65090
|
}, wf = (t, e, n, i) => {
|
|
65090
|
-
|
|
65091
|
+
Ms(t.clients, e, () => (
|
|
65091
65092
|
/** @type {Array<DeleteItem>} */
|
|
65092
65093
|
[]
|
|
65093
65094
|
)).push(new g5(n, i));
|
|
@@ -65124,7 +65125,7 @@ const mo = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
65124
65125
|
t.resetDsCurVal();
|
|
65125
65126
|
const r = Vt(t.restDecoder), s = Vt(t.restDecoder);
|
|
65126
65127
|
if (s > 0) {
|
|
65127
|
-
const o =
|
|
65128
|
+
const o = Ms(e.clients, r, () => (
|
|
65128
65129
|
/** @type {Array<DeleteItem>} */
|
|
65129
65130
|
[]
|
|
65130
65131
|
));
|
|
@@ -65247,7 +65248,7 @@ class ba extends nT {
|
|
|
65247
65248
|
/** @type {any} */
|
|
65248
65249
|
bn
|
|
65249
65250
|
)) {
|
|
65250
|
-
const i =
|
|
65251
|
+
const i = Ms(this.share, e, () => {
|
|
65251
65252
|
const s = new n();
|
|
65252
65253
|
return s._integrate(this, null), s;
|
|
65253
65254
|
}), r = i.constructor;
|
|
@@ -65747,7 +65748,7 @@ const Nhe = (t, e, n, i) => {
|
|
|
65747
65748
|
break;
|
|
65748
65749
|
}
|
|
65749
65750
|
default: {
|
|
65750
|
-
const u = (d & (
|
|
65751
|
+
const u = (d & (ys | ni)) === 0, h = new Pt(
|
|
65751
65752
|
ft(a, l),
|
|
65752
65753
|
null,
|
|
65753
65754
|
// left
|
|
@@ -65755,7 +65756,7 @@ const Nhe = (t, e, n, i) => {
|
|
|
65755
65756
|
// origin
|
|
65756
65757
|
null,
|
|
65757
65758
|
// right
|
|
65758
|
-
(d &
|
|
65759
|
+
(d & ys) === ys ? t.readRightID() : null,
|
|
65759
65760
|
// right origin
|
|
65760
65761
|
u ? t.readParentInfo() ? e.get(t.readString()) : t.readLeftID() : null,
|
|
65761
65762
|
// parent
|
|
@@ -65813,7 +65814,7 @@ const Nhe = (t, e, n, i) => {
|
|
|
65813
65814
|
};
|
|
65814
65815
|
for (; ; ) {
|
|
65815
65816
|
if (d.constructor !== ur) {
|
|
65816
|
-
const m =
|
|
65817
|
+
const m = Ms(u, d.id.client, () => nn(e, d.id.client)) - d.id.clock;
|
|
65817
65818
|
if (m < 0)
|
|
65818
65819
|
i.push(d), c(d.id.client, d.id.clock - 1), h();
|
|
65819
65820
|
else {
|
|
@@ -66016,7 +66017,7 @@ class x5 {
|
|
|
66016
66017
|
}
|
|
66017
66018
|
}
|
|
66018
66019
|
const ET = (t, e) => new x5(t, e), Zp = (t) => ET(_he(t.store), yh(t.store)), Do = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && (e.sv.get(t.id.client) || 0) > t.id.clock && !Jl(e.ds, t.id), Pm = (t, e) => {
|
|
66019
|
-
const n =
|
|
66020
|
+
const n = Ms(t.meta, Pm, aa), i = t.doc.store;
|
|
66020
66021
|
n.has(e) || (e.sv.forEach((r, s) => {
|
|
66021
66022
|
r < nn(i, s) && hi(t, ft(s, r));
|
|
66022
66023
|
}), mo(t, e.ds, (r) => {
|
|
@@ -66053,7 +66054,7 @@ const yh = (t) => {
|
|
|
66053
66054
|
let n = 0, i = t.length - 1, r = t[i], s = r.id.clock;
|
|
66054
66055
|
if (s === e)
|
|
66055
66056
|
return i;
|
|
66056
|
-
let o =
|
|
66057
|
+
let o = Es(e / (s + r.length - 1) * i);
|
|
66057
66058
|
for (; n <= i; ) {
|
|
66058
66059
|
if (r = t[o], s = r.id.clock, s <= e) {
|
|
66059
66060
|
if (e < s + r.length)
|
|
@@ -66061,7 +66062,7 @@ const yh = (t) => {
|
|
|
66061
66062
|
n = o + 1;
|
|
66062
66063
|
} else
|
|
66063
66064
|
i = o - 1;
|
|
66064
|
-
o =
|
|
66065
|
+
o = Es((n + i) / 2);
|
|
66065
66066
|
}
|
|
66066
66067
|
throw bi();
|
|
66067
66068
|
}, $he = (t, e) => {
|
|
@@ -66109,7 +66110,7 @@ class zhe {
|
|
|
66109
66110
|
}
|
|
66110
66111
|
const Ky = (t, e) => e.deleteSet.clients.size === 0 && !s0e(e.afterState, (n, i) => e.beforeState.get(i) !== n) ? !1 : (v5(e.deleteSet), Fhe(t, e), y5(t, e.deleteSet), !0), Zy = (t, e, n) => {
|
|
66111
66112
|
const i = e._item;
|
|
66112
|
-
(i === null || i.id.clock < (t.beforeState.get(i.id.client) || 0) && !i.deleted) &&
|
|
66113
|
+
(i === null || i.id.clock < (t.beforeState.get(i.id.client) || 0) && !i.deleted) && Ms(t.changed, e, aa).add(n);
|
|
66113
66114
|
}, g1 = (t, e) => {
|
|
66114
66115
|
let n = t[e], i = t[e - 1], r = e;
|
|
66115
66116
|
for (; r > 0; n = i, i = t[--r - 1]) {
|
|
@@ -66453,7 +66454,7 @@ function* qhe(t) {
|
|
|
66453
66454
|
const l = Vt(t.restDecoder);
|
|
66454
66455
|
yield new ur(ft(r, s), l), s += l;
|
|
66455
66456
|
} else if ((ph & a) !== 0) {
|
|
66456
|
-
const l = (a & (
|
|
66457
|
+
const l = (a & (ys | ni)) === 0, c = new Pt(
|
|
66457
66458
|
ft(r, s),
|
|
66458
66459
|
null,
|
|
66459
66460
|
// left
|
|
@@ -66461,7 +66462,7 @@ function* qhe(t) {
|
|
|
66461
66462
|
// origin
|
|
66462
66463
|
null,
|
|
66463
66464
|
// right
|
|
66464
|
-
(a &
|
|
66465
|
+
(a & ys) === ys ? t.readRightID() : null,
|
|
66465
66466
|
// right origin
|
|
66466
66467
|
// @ts-ignore Force writing a string here.
|
|
66467
66468
|
l ? t.readParentInfo() ? t.readString() : t.readLeftID() : null,
|
|
@@ -66813,7 +66814,7 @@ const Qhe = (t) => {
|
|
|
66813
66814
|
}
|
|
66814
66815
|
}, wh = (t, e, n) => {
|
|
66815
66816
|
const i = t, r = e.changedParentTypes;
|
|
66816
|
-
for (;
|
|
66817
|
+
for (; Ms(r, t, () => []).push(n), t._item !== null; )
|
|
66817
66818
|
t = /** @type {AbstractType<any>} */
|
|
66818
66819
|
t._item.parent;
|
|
66819
66820
|
ST(i._eH, n, e);
|
|
@@ -67576,7 +67577,7 @@ class Al extends bn {
|
|
|
67576
67577
|
e.writeTypeRef(Npe);
|
|
67577
67578
|
}
|
|
67578
67579
|
}
|
|
67579
|
-
const ape = (t) => new Al(),
|
|
67580
|
+
const ape = (t) => new Al(), Ys = (t, e) => t === e || typeof t == "object" && typeof e == "object" && t && e && Y0e(t, e);
|
|
67580
67581
|
class Hm {
|
|
67581
67582
|
/**
|
|
67582
67583
|
* @param {Item|null} left
|
|
@@ -67633,7 +67634,7 @@ const e7 = (t, e, n) => {
|
|
|
67633
67634
|
return e7(t, o, n);
|
|
67634
67635
|
}
|
|
67635
67636
|
}, UT = (t, e, n, i) => {
|
|
67636
|
-
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === cn &&
|
|
67637
|
+
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === cn && Ys(
|
|
67637
67638
|
i.get(
|
|
67638
67639
|
/** @type {ContentFormat} */
|
|
67639
67640
|
n.right.content.key
|
|
@@ -67655,7 +67656,7 @@ const e7 = (t, e, n) => {
|
|
|
67655
67656
|
i === null ? t.delete(n) : t.set(n, i);
|
|
67656
67657
|
}, qT = (t, e) => {
|
|
67657
67658
|
for (; t.right !== null; ) {
|
|
67658
|
-
if (!(t.right.deleted || t.right.content.constructor === cn &&
|
|
67659
|
+
if (!(t.right.deleted || t.right.content.constructor === cn && Ys(
|
|
67659
67660
|
e[
|
|
67660
67661
|
/** @type {ContentFormat} */
|
|
67661
67662
|
t.right.content.key
|
|
@@ -67669,7 +67670,7 @@ const e7 = (t, e, n) => {
|
|
|
67669
67670
|
const r = t.doc, s = r.clientID, o = /* @__PURE__ */ new Map();
|
|
67670
67671
|
for (const a in i) {
|
|
67671
67672
|
const l = i[a], c = n.currentAttributes.get(a) ?? null;
|
|
67672
|
-
if (!
|
|
67673
|
+
if (!Ys(c, l)) {
|
|
67673
67674
|
o.set(a, c);
|
|
67674
67675
|
const { left: d, right: u } = n;
|
|
67675
67676
|
n.right = new Pt(ft(s, nn(r.store, s)), d, d && d.lastId, u, u && u.id, e, null, new cn(a, l)), n.right.integrate(t, 0), n.forward();
|
|
@@ -67701,7 +67702,7 @@ const e7 = (t, e, n) => {
|
|
|
67701
67702
|
n.right.content
|
|
67702
67703
|
), d = r[l];
|
|
67703
67704
|
if (d !== void 0) {
|
|
67704
|
-
if (
|
|
67705
|
+
if (Ys(d, c))
|
|
67705
67706
|
a.delete(l);
|
|
67706
67707
|
else {
|
|
67707
67708
|
if (i === 0)
|
|
@@ -67948,16 +67949,16 @@ class dpe extends xh {
|
|
|
67948
67949
|
if (this.adds(o)) {
|
|
67949
67950
|
if (!this.deletes(o)) {
|
|
67950
67951
|
const g = r.get(p) ?? null;
|
|
67951
|
-
|
|
67952
|
+
Ys(g, m) ? m !== null && o.delete(i) : (a === "retain" && h(), Ys(m, s.get(p) ?? null) ? delete l[p] : l[p] = m);
|
|
67952
67953
|
}
|
|
67953
67954
|
} else if (this.deletes(o)) {
|
|
67954
67955
|
s.set(p, m);
|
|
67955
67956
|
const g = r.get(p) ?? null;
|
|
67956
|
-
|
|
67957
|
+
Ys(g, m) || (a === "retain" && h(), l[p] = g);
|
|
67957
67958
|
} else if (!o.deleted) {
|
|
67958
67959
|
s.set(p, m);
|
|
67959
67960
|
const g = l[p];
|
|
67960
|
-
g !== void 0 && (
|
|
67961
|
+
g !== void 0 && (Ys(g, m) ? g !== null && o.delete(i) : (a === "retain" && h(), m === null ? delete l[p] : l[p] = m));
|
|
67961
67962
|
}
|
|
67962
67963
|
o.deleted || (a === "insert" && h(), Xl(
|
|
67963
67964
|
r,
|
|
@@ -70089,7 +70090,7 @@ let Pt = class Vm extends C5 {
|
|
|
70089
70090
|
*/
|
|
70090
70091
|
write(e, n) {
|
|
70091
70092
|
const i = n > 0 ? ft(this.id.client, this.id.clock + n - 1) : this.origin, r = this.rightOrigin, s = this.parentSub, o = this.content.getRef() & ph | (i === null ? 0 : ni) | // origin is defined
|
|
70092
|
-
(r === null ? 0 :
|
|
70093
|
+
(r === null ? 0 : ys) | // right origin is defined
|
|
70093
70094
|
(s === null ? 0 : yf);
|
|
70094
70095
|
if (e.writeInfo(o), i !== null && e.writeLeftID(i), r !== null && e.writeRightID(r), i === null && r === null) {
|
|
70095
70096
|
const a = (
|
|
@@ -70202,7 +70203,7 @@ const Hpe = () => {
|
|
|
70202
70203
|
remove: t.length - n - i,
|
|
70203
70204
|
insert: e.slice(n, e.length - i)
|
|
70204
70205
|
};
|
|
70205
|
-
}, jpe = zpe, Xt = new bt("y-sync"),
|
|
70206
|
+
}, jpe = zpe, Xt = new bt("y-sync"), xs = new bt("y-undo");
|
|
70206
70207
|
new bt("yjs-cursor");
|
|
70207
70208
|
const Br = (t, e) => t >>> e | t << 32 - e, Wpe = (t) => Br(t, 2) ^ Br(t, 13) ^ Br(t, 22), Upe = (t) => Br(t, 6) ^ Br(t, 11) ^ Br(t, 25), qpe = (t) => Br(t, 7) ^ Br(t, 18) ^ t >>> 3, Gpe = (t) => Br(t, 17) ^ Br(t, 19) ^ t >>> 10, Kpe = new Uint32Array([
|
|
70208
70209
|
1116352408,
|
|
@@ -70410,7 +70411,7 @@ e.sv.get(t.id.client) > t.id.clock && !Jl(e.ds, t.id), e2e = [{ light: "#ecd4443
|
|
|
70410
70411
|
c.state.doc.type.createAndFill().content
|
|
70411
70412
|
) !== null)) {
|
|
70412
70413
|
if (o = !0, d.addToHistory === !1 && !d.isChangeOrigin) {
|
|
70413
|
-
const u =
|
|
70414
|
+
const u = xs.getState(c.state), h = u && u.undoManager;
|
|
70414
70415
|
h && h.stopCapturing();
|
|
70415
70416
|
}
|
|
70416
70417
|
a.mux(() => {
|
|
@@ -70899,7 +70900,7 @@ const eA = (t, e, n, i, r, s) => {
|
|
|
70899
70900
|
const n = {};
|
|
70900
70901
|
return t.forEach((i) => {
|
|
70901
70902
|
if (i.type.name !== "ychange") {
|
|
70902
|
-
const r =
|
|
70903
|
+
const r = Ms(e.isOMark, i.type, () => !i.type.excludes(i.type));
|
|
70903
70904
|
n[r ? `${i.type.name}--${Qpe(i.toJSON())}` : i.type.name] = i.attrs;
|
|
70904
70905
|
}
|
|
70905
70906
|
}), n;
|
|
@@ -71128,12 +71129,12 @@ function h2e(t) {
|
|
|
71128
71129
|
}
|
|
71129
71130
|
const p2e = (t) => {
|
|
71130
71131
|
var e, n;
|
|
71131
|
-
return ((n = (e =
|
|
71132
|
+
return ((n = (e = xs.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.undo()) != null;
|
|
71132
71133
|
}, m2e = (t) => {
|
|
71133
71134
|
var e, n;
|
|
71134
|
-
return ((n = (e =
|
|
71135
|
+
return ((n = (e = xs.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.redo()) != null;
|
|
71135
71136
|
}, g2e = /* @__PURE__ */ new Set(["paragraph"]), v2e = (t, e) => !(t instanceof Pt) || !(t.content instanceof Cr) || !(t.content.type instanceof go || t.content.type instanceof jn && e.has(t.content.type.nodeName)) || t.content.type._length === 0, y2e = ({ protectedNodes: t = g2e, trackedOrigins: e = [], undoManager: n = null } = {}) => new wt({
|
|
71136
|
-
key:
|
|
71137
|
+
key: xs,
|
|
71137
71138
|
state: {
|
|
71138
71139
|
init: (i, r) => {
|
|
71139
71140
|
const s = Xt.getState(r), o = n || new MT(s.type, {
|
|
@@ -71162,10 +71163,10 @@ const p2e = (t) => {
|
|
|
71162
71163
|
}
|
|
71163
71164
|
},
|
|
71164
71165
|
view: (i) => {
|
|
71165
|
-
const r = Xt.getState(i.state), s =
|
|
71166
|
+
const r = Xt.getState(i.state), s = xs.getState(i.state).undoManager;
|
|
71166
71167
|
return s.on("stack-item-added", ({ stackItem: o }) => {
|
|
71167
71168
|
const a = r.binding;
|
|
71168
|
-
a && o.meta.set(a,
|
|
71169
|
+
a && o.meta.set(a, xs.getState(i.state).prevSel);
|
|
71169
71170
|
}), s.on("stack-item-popped", ({ stackItem: o }) => {
|
|
71170
71171
|
const a = r.binding;
|
|
71171
71172
|
a && (a.beforeTransactionSelection = o.meta.get(a) || a.beforeTransactionSelection);
|
|
@@ -71196,8 +71197,8 @@ Mt.create({
|
|
|
71196
71197
|
},
|
|
71197
71198
|
addCommands() {
|
|
71198
71199
|
return {
|
|
71199
|
-
undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0),
|
|
71200
|
-
redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0),
|
|
71200
|
+
undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), xs.getState(e).undoManager.undoStack.length === 0 ? !1 : n ? p2e(e) : !0),
|
|
71201
|
+
redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", !0), xs.getState(e).undoManager.redoStack.length === 0 ? !1 : n ? m2e(e) : !0)
|
|
71201
71202
|
};
|
|
71202
71203
|
},
|
|
71203
71204
|
addKeyboardShortcuts() {
|
|
@@ -71211,7 +71212,7 @@ Mt.create({
|
|
|
71211
71212
|
var t;
|
|
71212
71213
|
const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = y2e(this.options.yUndoOptions), i = n.spec.view;
|
|
71213
71214
|
n.spec.view = (o) => {
|
|
71214
|
-
const { undoManager: a } =
|
|
71215
|
+
const { undoManager: a } = xs.getState(o.state);
|
|
71215
71216
|
a.restore && (a.restore(), a.restore = () => {
|
|
71216
71217
|
});
|
|
71217
71218
|
const l = i ? i(o) : void 0;
|
|
@@ -71862,12 +71863,12 @@ const L2e = (t) => {
|
|
|
71862
71863
|
}));
|
|
71863
71864
|
const L = ke(() => ({
|
|
71864
71865
|
offset: [0, 5]
|
|
71865
|
-
}), []), M =
|
|
71866
|
+
}), []), M = Ze(({ node: z, pos: Z }) => {
|
|
71866
71867
|
k.current = z ? {
|
|
71867
71868
|
pos: Z,
|
|
71868
71869
|
nodeSize: z.nodeSize
|
|
71869
71870
|
} : null;
|
|
71870
|
-
}, []), N =
|
|
71871
|
+
}, []), N = Ze(() => {
|
|
71871
71872
|
const z = k.current;
|
|
71872
71873
|
if (!z || !_) return;
|
|
71873
71874
|
const { pos: Z, nodeSize: ae } = z, me = _.state.doc.nodeAt(Z);
|
|
@@ -71930,7 +71931,7 @@ const L2e = (t) => {
|
|
|
71930
71931
|
className: "flex cursor-move items-center justify-center p-0.5 text-f1-icon-secondary",
|
|
71931
71932
|
draggable: !0,
|
|
71932
71933
|
"data-drag-handle": !0,
|
|
71933
|
-
children: f(
|
|
71934
|
+
children: f(je, {
|
|
71934
71935
|
icon: da,
|
|
71935
71936
|
size: "xs"
|
|
71936
71937
|
})
|
|
@@ -72033,7 +72034,7 @@ const L2e = (t) => {
|
|
|
72033
72034
|
})]
|
|
72034
72035
|
})]
|
|
72035
72036
|
}), M2e = ({ labels: t, setLastIntent: e, lastIntent: n, setIsAcceptChangesOpen: i, editor: r, handleEnhanceWithAI: s }) => {
|
|
72036
|
-
const o =
|
|
72037
|
+
const o = Je();
|
|
72037
72038
|
return x("div", {
|
|
72038
72039
|
className: "dark flex items-center gap-1 rounded-md border border-solid border-f1-border bg-f1-background p-0.5 drop-shadow-sm",
|
|
72039
72040
|
children: [f(Te, {
|
|
@@ -72059,7 +72060,7 @@ const L2e = (t) => {
|
|
|
72059
72060
|
},
|
|
72060
72061
|
size: "sm",
|
|
72061
72062
|
variant: "default",
|
|
72062
|
-
icon:
|
|
72063
|
+
icon: Ls
|
|
72063
72064
|
})]
|
|
72064
72065
|
});
|
|
72065
72066
|
}, O2e = ({ label: t, isFullscreen: e }) => f("div", {
|
|
@@ -72211,8 +72212,8 @@ const L2e = (t) => {
|
|
|
72211
72212
|
children: [f("p", {
|
|
72212
72213
|
className: "text-neutral-40 text-md grow text-ellipsis font-normal",
|
|
72213
72214
|
children: t.label
|
|
72214
|
-
}), t.subOptions && t.subOptions.length > 0 && f(
|
|
72215
|
-
icon:
|
|
72215
|
+
}), t.subOptions && t.subOptions.length > 0 && f(je, {
|
|
72216
|
+
icon: Ts,
|
|
72216
72217
|
size: "md",
|
|
72217
72218
|
className: "text-f1-icon"
|
|
72218
72219
|
})]
|
|
@@ -72333,7 +72334,7 @@ const L2e = (t) => {
|
|
|
72333
72334
|
"aria-label": (i == null ? void 0 : i.enhanceLabels.enhanceButtonLabel) ?? "Magic",
|
|
72334
72335
|
disabled: r || n,
|
|
72335
72336
|
className: F("bg-gradient-to-r from-[#f9f0dd80] to-[#d4ccfd80] text-[#6143a7] dark:from-[#6143a7] dark:to-[#7846ef] dark:text-f1-foreground [&>button>svg]:text-[#6143a7] dark:[&>button>svg]:text-f1-foreground", s && "[&>button]:aspect-square [&>button]:px-0"),
|
|
72336
|
-
children: [f(
|
|
72337
|
+
children: [f(je, {
|
|
72337
72338
|
icon: S3
|
|
72338
72339
|
}), !s && ((i == null ? void 0 : i.enhanceLabels.enhanceButtonLabel) ?? "Magic")]
|
|
72339
72340
|
})
|
|
@@ -72468,7 +72469,7 @@ const L2e = (t) => {
|
|
|
72468
72469
|
l.preventDefault(), t.action.onClick();
|
|
72469
72470
|
}
|
|
72470
72471
|
})]
|
|
72471
|
-
}) : t.subActions || s ? f(
|
|
72472
|
+
}) : t.subActions || s ? f(ws, {
|
|
72472
72473
|
items: n,
|
|
72473
72474
|
onClick: i,
|
|
72474
72475
|
variant: t.action.variant ?? "default",
|
|
@@ -73262,7 +73263,7 @@ const Q2e = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
73262
73263
|
})]
|
|
73263
73264
|
}), e.info && f(Fi, {
|
|
73264
73265
|
label: e.info,
|
|
73265
|
-
children: f(
|
|
73266
|
+
children: f(je, {
|
|
73266
73267
|
icon: Af,
|
|
73267
73268
|
size: "sm",
|
|
73268
73269
|
className: "text-f1-foreground-secondary"
|
|
@@ -73755,7 +73756,7 @@ function Ime(t, e) {
|
|
|
73755
73756
|
c();
|
|
73756
73757
|
}
|
|
73757
73758
|
});
|
|
73758
|
-
const o =
|
|
73759
|
+
const o = Ze((d, u, h) => u < h - 1 ? d + e : d, [e]), a = Ze(() => {
|
|
73759
73760
|
if (!i.current) return [];
|
|
73760
73761
|
const d = i.current.children, u = [];
|
|
73761
73762
|
for (let h = 0; h < d.length; h++) {
|
|
@@ -73763,7 +73764,7 @@ function Ime(t, e) {
|
|
|
73763
73764
|
u.push(p);
|
|
73764
73765
|
}
|
|
73765
73766
|
return u;
|
|
73766
|
-
}, []), l =
|
|
73767
|
+
}, []), l = Ze((d, u) => {
|
|
73767
73768
|
let h = 0, p = 0;
|
|
73768
73769
|
for (let m = 0; m < d.length; m++) {
|
|
73769
73770
|
const g = p + d[m];
|
|
@@ -73771,7 +73772,7 @@ function Ime(t, e) {
|
|
|
73771
73772
|
p = g, p = o(p, m, d.length), h++;
|
|
73772
73773
|
}
|
|
73773
73774
|
return h;
|
|
73774
|
-
}, [o]), c =
|
|
73775
|
+
}, [o]), c = Ze(() => {
|
|
73775
73776
|
if (!n.current || t.length === 0) return;
|
|
73776
73777
|
const d = n.current.clientHeight, u = a(), h = l(u, d);
|
|
73777
73778
|
s(h === 0 ? {
|
|
@@ -74020,13 +74021,13 @@ function Vme({ text: t, placeholder: e, icon: n, onClick: i }) {
|
|
|
74020
74021
|
return x("div", {
|
|
74021
74022
|
className: "flex cursor-default flex-row items-center gap-1 rounded-xs px-1 py-0.5 hover:bg-f1-background-hover",
|
|
74022
74023
|
onClick: i,
|
|
74023
|
-
children: [n && f(
|
|
74024
|
+
children: [n && f(je, {
|
|
74024
74025
|
icon: n,
|
|
74025
74026
|
className: "text-f1-icon"
|
|
74026
74027
|
}), f("span", {
|
|
74027
74028
|
className: F("font-medium", t ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
74028
74029
|
children: t ?? e
|
|
74029
|
-
}), f(
|
|
74030
|
+
}), f(je, {
|
|
74030
74031
|
icon: Ax
|
|
74031
74032
|
})]
|
|
74032
74033
|
});
|
|
@@ -74223,7 +74224,7 @@ function H4e({ label: t, count: e, icon: n, iconClassName: i, onClick: r }) {
|
|
|
74223
74224
|
children: [f("p", {
|
|
74224
74225
|
className: "line-clamp-1 flex-1 text-f1-foreground-secondary",
|
|
74225
74226
|
children: t
|
|
74226
|
-
}), f(
|
|
74227
|
+
}), f(je, {
|
|
74227
74228
|
icon: n,
|
|
74228
74229
|
size: "md",
|
|
74229
74230
|
className: i
|
|
@@ -74250,7 +74251,7 @@ const jme = B(function({ content: e, label: n, color: i, ...r }, s) {
|
|
|
74250
74251
|
children: n
|
|
74251
74252
|
}), "icon" in r && r.icon && f("span", {
|
|
74252
74253
|
className: F("flex", i),
|
|
74253
|
-
children: f(
|
|
74254
|
+
children: f(je, {
|
|
74254
74255
|
icon: r.icon
|
|
74255
74256
|
})
|
|
74256
74257
|
}), "emoji" in r && r.emoji && f("span", {
|
|
@@ -74366,14 +74367,14 @@ function Gm({ id: t, title: e, alert: n, rawTag: i, count: r, icon: s, rightIcon
|
|
|
74366
74367
|
className: d,
|
|
74367
74368
|
children: [x("div", {
|
|
74368
74369
|
className: "flex flex-1 flex-row items-start gap-1",
|
|
74369
|
-
children: [s && f(
|
|
74370
|
+
children: [s && f(je, {
|
|
74370
74371
|
icon: s,
|
|
74371
74372
|
size: "md",
|
|
74372
74373
|
className: F("mt-0.5", a)
|
|
74373
74374
|
}), f("p", {
|
|
74374
74375
|
className: "mt-0.5 line-clamp-2 font-medium",
|
|
74375
74376
|
children: e
|
|
74376
|
-
}), o && f(
|
|
74377
|
+
}), o && f(je, {
|
|
74377
74378
|
icon: o,
|
|
74378
74379
|
size: "md",
|
|
74379
74380
|
className: F("mt-0.5", l)
|
|
@@ -74511,7 +74512,7 @@ const Kme = ({ title: t, info: e }) => x("div", {
|
|
|
74511
74512
|
children: f(Fi, {
|
|
74512
74513
|
label: i.label,
|
|
74513
74514
|
description: i.description,
|
|
74514
|
-
children: f(
|
|
74515
|
+
children: f(je, {
|
|
74515
74516
|
icon: Af,
|
|
74516
74517
|
size: "sm"
|
|
74517
74518
|
})
|