@factorialco/f0-react 1.259.0 → 1.259.1
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 +8 -2
- package/dist/experimental.js +384 -383
- package/dist/f0.d.ts +7 -1
- package/dist/f0.js +7 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bD as Cp, bE as Qc, bF as H_, bG as V_, bH as _p, ad as f8, bI as Bo, aq as Of, bJ as ji, bK as If, bL as pr, bM as bl, av as Mn, bN as vs, bO as Sp, bP as j_, bQ as Hs, bR as Ha, bS as Lp, bT as W_, bU as q_, bV as Ep, bW as wl, bX as Mp, bY as Np, bZ as U_, b_ as Df, aE as u8, b$ as Ap, c0 as G_, c1 as h8, c2 as p8, c3 as H3, c4 as xl, c5 as K_, c6 as Z_, c7 as J_, c8 as J1, c9 as Y_, ca as X_, cb as Q_, cc as ne, cd as m8, ce as eS, f as as, cf as Va, j as ed, cg as g8, h as Kl, ch as tS, L as Y1, ci as nS, A as iS, i as Zl, c as rS, l as oS, G as sS, g as V3, cj as aS, k as j3, o as lS, ck as y8, cl as v8, cm as cS, cn as Vs, ai as dS, aw as me, ap as _e, co as Cl, O as Tp, cp as Op, P as on, cq as _l, cr as js, cs as td, ct as Qt, bz as Ws, cu as Ch, ab as
|
|
1
|
+
import { bD as Cp, bE as Qc, bF as H_, bG as V_, bH as _p, ad as f8, bI as Bo, aq as Of, bJ as ji, bK as If, bL as pr, bM as bl, av as Mn, bN as vs, bO as Sp, bP as j_, bQ as Hs, bR as Ha, bS as Lp, bT as W_, bU as q_, bV as Ep, bW as wl, bX as Mp, bY as Np, bZ as U_, b_ as Df, aE as u8, b$ as Ap, c0 as G_, c1 as h8, c2 as p8, c3 as H3, c4 as xl, c5 as K_, c6 as Z_, c7 as J_, c8 as J1, c9 as Y_, ca as X_, cb as Q_, cc as ne, cd as m8, ce as eS, f as as, cf as Va, j as ed, cg as g8, h as Kl, ch as tS, L as Y1, ci as nS, A as iS, i as Zl, c as rS, l as oS, G as sS, g as V3, cj as aS, k as j3, o as lS, ck as y8, cl as v8, cm as cS, cn as Vs, ai as dS, aw as me, ap as _e, co as Cl, O as Tp, cp as Op, P as on, cq as _l, cr as js, cs as td, ct as Qt, bz as Ws, cu as Ch, ab as Be, cv as $o, cw as Ye, cx as fS, Q as T, b3 as rr, au as ct, a$ as Rf, ac as k8, cy as Ip, cz as uS, cA as hS, cB as pS, ar as b8, as as w8, cC as x8, cD as C8, cE as io, cF as mS, cG as W3, cH as gS, cI as yS, cJ as vS, cK as wt, al as gn, cL as Q, cM as Ff, cN as On, a7 as ai, a8 as kS, cO as _8, cP as Dp, cQ as ks, cR as _h, cS as S8, cT as L8, cU as E8, cV as M8, cW as N8, a5 as bt, cX as A8, cY as bS, cZ as wS, c_ as xS, c$ as CS, d0 as _S, d1 as SS, d2 as LS, d3 as ES, ak as MS, be as NS, d4 as jn, ao as _o, d5 as Nn, am as Rp, at as Sh, d6 as q3, d7 as nd, d8 as AS, a9 as qs, d9 as So, da as T8, db as wi, s as TS, w as OS, x as IS, z as DS, J as U3, K as G3, M as RS, N as FS, dc as PS, dd as BS, de as Us, df as Fp, aY as $i, a_ as Lo, dg as $S, dh as O8, di as I8, dj as zS, dk as HS, a3 as Pp, a4 as Bp, a6 as $p, R as qn, dl as D8, dm as VS, dn as jS, dp as WS, dq as R8, aA as qS, dr as Lh, ds as F8, aV as id, dt as US, du as GS, dv as KS, dw as ZS, dx as JS, bA as Pf, aS as Eh, bC as YS, bB as XS, dy as P8, an as zr, dz as QS, dA as eL, b8 as Bf, aW as zp, aP as $f, dB as Hp, dC as B8, aZ as tL, aR as $8, aN as z8, dD as nL, dE as H8, dF as iL, aQ as Gs, aT as V8, aC as rL, dG as oL, bg as sL, bh as aL, bo as zf, bm as Vp, ay as Hf, dH as Vf, dI as jf, az as Wf, dJ as jp, bn as j8, b0 as Wp, dK as lL, bt as cL, dL as Mh, dM as dL, dN as rd, dO as fL, bi as od, bu as uL, dP as hL, bs as W8, dQ as pL, br as mL, bq as gL, dR as yL, b1 as Nh, dS as q8, dT as vL, af as qp, dU as kL, dV as bL, ag as wL, ah as xL, dW as CL, dX as _L, dY as SL, dZ as LL, d_ as U8, b4 as EL, bl as ML, d$ as NL, e0 as AL, e1 as TL, aU as OL, e2 as Sl, e3 as Up, e4 as Gp, e5 as Ll, e6 as IL, e7 as G8, e8 as DL, bv as K8, e9 as Z8, b5 as J8, ea as RL, eb as FL, ec as PL, aB as BL, _ as $L, T as zL, V as HL, W as VL, Z as jL, U as WL, ed as K3, ee as qL, ef as UL, m as GL, eg as Y8, eh as KL } from "./hooks-nJDkwAyV.js";
|
|
2
2
|
import { aD as Nfe, ei as Afe, el as Tfe, em as Ofe, ek as Ife, aX as Dfe, b2 as Rfe, ej as Ffe } from "./hooks-nJDkwAyV.js";
|
|
3
3
|
import { jsxs as k, jsx as d, Fragment as Te } from "react/jsx-runtime";
|
|
4
4
|
import { useCopilotChatInternal as qf, useCopilotContext as ZL, useCopilotAction as Z3, CopilotKit as JL } from "@copilotkit/react-core";
|
|
@@ -5588,7 +5588,7 @@ const xm = aD, lD = Uy, Cm = Gy, Ky = ({ icon: t, title: e, children: n }) => {
|
|
|
5588
5588
|
duration: 0.15,
|
|
5589
5589
|
ease: "easeOut"
|
|
5590
5590
|
}, _m = O(({ valueToCopy: t, onCopy: e, copyTooltipLabel: n, copiedTooltipLabel: i, variant: r = "neutral", size: o = "sm", ...s }, a) => {
|
|
5591
|
-
const [l, c] = V(!1), f =
|
|
5591
|
+
const [l, c] = V(!1), f = Be(), u = n ?? f.actions.copy, p = l ? i ?? "Copied" : u;
|
|
5592
5592
|
return le(() => {
|
|
5593
5593
|
let g = null;
|
|
5594
5594
|
return l && (g = setTimeout(() => c(!1), 1e3)), () => {
|
|
@@ -5773,7 +5773,7 @@ const fD = {
|
|
|
5773
5773
|
var w, x;
|
|
5774
5774
|
const o = (i == null ? void 0 : i.content) || "", s = (i == null ? void 0 : i.role) === "assistant" && ((w = i.toolCalls) == null ? void 0 : w.find((b) => b.function.name === "orchestratorThinking")), a = (x = i == null ? void 0 : i.generativeUI) == null ? void 0 : x.call(i, s ? {
|
|
5775
5775
|
status: e ? "executing" : "completed"
|
|
5776
|
-
} : void 0), l = !o && !a, c =
|
|
5776
|
+
} : void 0), l = !o && !a, c = Be(), { open: f } = Jy(), [u, h] = V(null), [p, m] = V(!1), g = fe(), y = Re(() => {
|
|
5777
5777
|
g.current && clearTimeout(g.current), !e && !t && !a && m(!0);
|
|
5778
5778
|
}, [t, e, a]), v = Re(() => {
|
|
5779
5779
|
g.current = setTimeout(() => {
|
|
@@ -5910,7 +5910,7 @@ function Zr() {
|
|
|
5910
5910
|
} : t;
|
|
5911
5911
|
}
|
|
5912
5912
|
const yD = (t) => {
|
|
5913
|
-
const { labels: e } = XL(), { setOpen: n } = Zr(), i =
|
|
5913
|
+
const { labels: e } = XL(), { setOpen: n } = Zr(), i = Be(), r = e.title === "CopilotKit";
|
|
5914
5914
|
return k("header", {
|
|
5915
5915
|
className: T("flex justify-between border-0 border-solid border-f1-border-secondary p-3"),
|
|
5916
5916
|
children: [d("h2", {
|
|
@@ -5930,7 +5930,7 @@ const yD = (t) => {
|
|
|
5930
5930
|
})]
|
|
5931
5931
|
});
|
|
5932
5932
|
}, vD = ({ inProgress: t, onSend: e, onStop: n }) => {
|
|
5933
|
-
const [i, r] = V(""), [o, s] = V(!1), a = fe(null), l = fe(null), c =
|
|
5933
|
+
const [i, r] = V(""), [o, s] = V(!1), a = fe(null), l = fe(null), c = Be(), f = i.trim().length > 0;
|
|
5934
5934
|
le(() => {
|
|
5935
5935
|
if (l.current && i.length > 0) {
|
|
5936
5936
|
const { scrollHeight: p } = l.current;
|
|
@@ -6093,7 +6093,7 @@ function wD(t) {
|
|
|
6093
6093
|
return t.role === "assistant" && t.agentName !== void 0;
|
|
6094
6094
|
}
|
|
6095
6095
|
const xD = ({ value: t, onChange: e }) => {
|
|
6096
|
-
const n =
|
|
6096
|
+
const n = Be();
|
|
6097
6097
|
return d(Rf, {
|
|
6098
6098
|
label: [n.inputs.password.show, n.inputs.password.hide],
|
|
6099
6099
|
icon: [im, rm],
|
|
@@ -7347,7 +7347,7 @@ const uR = gn({
|
|
|
7347
7347
|
})
|
|
7348
7348
|
});
|
|
7349
7349
|
}, k7 = O(hR), b7 = ({ className: t, disabled: e }) => {
|
|
7350
|
-
const { enabled: n, setOpen: i, open: r } = Zr(), o =
|
|
7350
|
+
const { enabled: n, setOpen: i, open: r } = Zr(), o = Be(), [s, a] = V(!1);
|
|
7351
7351
|
return n ? d("div", {
|
|
7352
7352
|
className: "flex items-center",
|
|
7353
7353
|
children: d(S8, {
|
|
@@ -7591,7 +7591,7 @@ function Qf() {
|
|
|
7591
7591
|
} : t;
|
|
7592
7592
|
}
|
|
7593
7593
|
const C7 = ({ className: t, disabled: e }) => {
|
|
7594
|
-
const { enabled: n, setOpen: i, open: r } = Qf(), o =
|
|
7594
|
+
const { enabled: n, setOpen: i, open: r } = Qf(), o = Be(), [s, a] = V(!1);
|
|
7595
7595
|
return n ? d("div", {
|
|
7596
7596
|
className: "flex items-center",
|
|
7597
7597
|
children: d(S8, {
|
|
@@ -8344,7 +8344,7 @@ co.Header = NR;
|
|
|
8344
8344
|
co.Content = nR;
|
|
8345
8345
|
co.Footer = rR;
|
|
8346
8346
|
const AR = ({ onClose: t, onSubmit: e, reactionType: n, message: i }) => {
|
|
8347
|
-
const [r, o] = V(""), s =
|
|
8347
|
+
const [r, o] = V(""), s = Be(), { title: a, label: l, placeholder: c } = n === "like" ? s.ai.feedbackModal.positive : s.ai.feedbackModal.negative, f = Re(() => {
|
|
8348
8348
|
e(i, r);
|
|
8349
8349
|
}, [r, i, e]), u = () => {
|
|
8350
8350
|
t(i);
|
|
@@ -8391,7 +8391,7 @@ const AR = ({ onClose: t, onSubmit: e, reactionType: n, message: i }) => {
|
|
|
8391
8391
|
})]
|
|
8392
8392
|
});
|
|
8393
8393
|
}, TR = ({ messages: t }) => {
|
|
8394
|
-
const e =
|
|
8394
|
+
const e = Be();
|
|
8395
8395
|
return d(Ky, {
|
|
8396
8396
|
icon: my,
|
|
8397
8397
|
title: e.ai.thoughtsGroupTitle,
|
|
@@ -8570,7 +8570,7 @@ const DR = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
8570
8570
|
...t
|
|
8571
8571
|
})
|
|
8572
8572
|
}), FR = ({ inProgress: t, children: e, RenderMessage: n, AssistantMessage: i, UserMessage: r, ImageRenderer: o, onRegenerate: s, onCopy: a, markdownTagRenderers: l }) => {
|
|
8573
|
-
const c = fe(null), { messages: f, interrupt: u } = qf(), { threadId: h } = ZL(), { close: p, currentReaction: m, currentMessage: g, isOpen: y } = Jy(), v =
|
|
8573
|
+
const c = fe(null), { messages: f, interrupt: u } = qf(), { threadId: h } = ZL(), { close: p, currentReaction: m, currentMessage: g, isOpen: y } = Jy(), v = Be(), { greeting: w, initialMessage: x, welcomeScreenSuggestions: b, onThumbsUp: S, onThumbsDown: C } = Zr(), A = de(() => PR(x || v.ai.defaultInitialMessage), [x, v.ai.defaultInitialMessage]), L = f.length == 0 && (w || A.length > 0), { messagesContainerRef: M, messagesEndRef: _, showScrollToBottom: P, scrollToBottom: E } = BR(), { height: D = 0 } = nd({
|
|
8574
8574
|
ref: M,
|
|
8575
8575
|
box: "border-box"
|
|
8576
8576
|
}), R = de(() => $R(f), [f]);
|
|
@@ -8764,7 +8764,7 @@ const HR = (t) => {
|
|
|
8764
8764
|
const e = rI[t];
|
|
8765
8765
|
return e || Lp;
|
|
8766
8766
|
}, VR = ({ sources: t }) => {
|
|
8767
|
-
const e =
|
|
8767
|
+
const e = Be();
|
|
8768
8768
|
return !t || t.length === 0 || !Array.isArray(t) ? null : d(Ky, {
|
|
8769
8769
|
icon: Df,
|
|
8770
8770
|
title: e.ai.resourcesGroupTitle,
|
|
@@ -8905,7 +8905,7 @@ const HR = (t) => {
|
|
|
8905
8905
|
RenderSuggestionsList: jR
|
|
8906
8906
|
}) : null;
|
|
8907
8907
|
}, ZR = qs("AiChat", KR), JR = qs("AiChatProvider", qR), YR = () => {
|
|
8908
|
-
const t =
|
|
8908
|
+
const t = Be();
|
|
8909
8909
|
return k(ne.div, {
|
|
8910
8910
|
className: T("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-['']"),
|
|
8911
8911
|
animate: {
|
|
@@ -9197,13 +9197,13 @@ In.prototype.property = "";
|
|
|
9197
9197
|
In.prototype.spaceSeparated = !1;
|
|
9198
9198
|
In.prototype.space = void 0;
|
|
9199
9199
|
let sF = 0;
|
|
9200
|
-
const
|
|
9200
|
+
const Ve = zo(), Ot = zo(), Vh = zo(), ae = zo(), ft = zo(), ls = zo(), Pn = zo();
|
|
9201
9201
|
function zo() {
|
|
9202
9202
|
return 2 ** ++sF;
|
|
9203
9203
|
}
|
|
9204
9204
|
const jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9205
9205
|
__proto__: null,
|
|
9206
|
-
boolean:
|
|
9206
|
+
boolean: Ve,
|
|
9207
9207
|
booleanish: Ot,
|
|
9208
9208
|
commaOrSpaceSeparated: Pn,
|
|
9209
9209
|
commaSeparated: ls,
|
|
@@ -9332,38 +9332,38 @@ const aF = Ys({
|
|
|
9332
9332
|
accessKey: ft,
|
|
9333
9333
|
action: null,
|
|
9334
9334
|
allow: null,
|
|
9335
|
-
allowFullScreen:
|
|
9336
|
-
allowPaymentRequest:
|
|
9337
|
-
allowUserMedia:
|
|
9335
|
+
allowFullScreen: Ve,
|
|
9336
|
+
allowPaymentRequest: Ve,
|
|
9337
|
+
allowUserMedia: Ve,
|
|
9338
9338
|
alt: null,
|
|
9339
9339
|
as: null,
|
|
9340
|
-
async:
|
|
9340
|
+
async: Ve,
|
|
9341
9341
|
autoCapitalize: null,
|
|
9342
9342
|
autoComplete: ft,
|
|
9343
|
-
autoFocus:
|
|
9344
|
-
autoPlay:
|
|
9343
|
+
autoFocus: Ve,
|
|
9344
|
+
autoPlay: Ve,
|
|
9345
9345
|
blocking: ft,
|
|
9346
9346
|
capture: null,
|
|
9347
9347
|
charSet: null,
|
|
9348
|
-
checked:
|
|
9348
|
+
checked: Ve,
|
|
9349
9349
|
cite: null,
|
|
9350
9350
|
className: ft,
|
|
9351
9351
|
cols: ae,
|
|
9352
9352
|
colSpan: null,
|
|
9353
9353
|
content: null,
|
|
9354
9354
|
contentEditable: Ot,
|
|
9355
|
-
controls:
|
|
9355
|
+
controls: Ve,
|
|
9356
9356
|
controlsList: ft,
|
|
9357
9357
|
coords: ae | ls,
|
|
9358
9358
|
crossOrigin: null,
|
|
9359
9359
|
data: null,
|
|
9360
9360
|
dateTime: null,
|
|
9361
9361
|
decoding: null,
|
|
9362
|
-
default:
|
|
9363
|
-
defer:
|
|
9362
|
+
default: Ve,
|
|
9363
|
+
defer: Ve,
|
|
9364
9364
|
dir: null,
|
|
9365
9365
|
dirName: null,
|
|
9366
|
-
disabled:
|
|
9366
|
+
disabled: Ve,
|
|
9367
9367
|
download: Vh,
|
|
9368
9368
|
draggable: Ot,
|
|
9369
9369
|
encType: null,
|
|
@@ -9373,7 +9373,7 @@ const aF = Ys({
|
|
|
9373
9373
|
formAction: null,
|
|
9374
9374
|
formEncType: null,
|
|
9375
9375
|
formMethod: null,
|
|
9376
|
-
formNoValidate:
|
|
9376
|
+
formNoValidate: Ve,
|
|
9377
9377
|
formTarget: null,
|
|
9378
9378
|
headers: ft,
|
|
9379
9379
|
height: ae,
|
|
@@ -9386,15 +9386,15 @@ const aF = Ys({
|
|
|
9386
9386
|
id: null,
|
|
9387
9387
|
imageSizes: null,
|
|
9388
9388
|
imageSrcSet: null,
|
|
9389
|
-
inert:
|
|
9389
|
+
inert: Ve,
|
|
9390
9390
|
inputMode: null,
|
|
9391
9391
|
integrity: null,
|
|
9392
9392
|
is: null,
|
|
9393
|
-
isMap:
|
|
9393
|
+
isMap: Ve,
|
|
9394
9394
|
itemId: null,
|
|
9395
9395
|
itemProp: ft,
|
|
9396
9396
|
itemRef: ft,
|
|
9397
|
-
itemScope:
|
|
9397
|
+
itemScope: Ve,
|
|
9398
9398
|
itemType: ft,
|
|
9399
9399
|
kind: null,
|
|
9400
9400
|
label: null,
|
|
@@ -9402,7 +9402,7 @@ const aF = Ys({
|
|
|
9402
9402
|
language: null,
|
|
9403
9403
|
list: null,
|
|
9404
9404
|
loading: null,
|
|
9405
|
-
loop:
|
|
9405
|
+
loop: Ve,
|
|
9406
9406
|
low: ae,
|
|
9407
9407
|
manifest: null,
|
|
9408
9408
|
max: null,
|
|
@@ -9411,12 +9411,12 @@ const aF = Ys({
|
|
|
9411
9411
|
method: null,
|
|
9412
9412
|
min: null,
|
|
9413
9413
|
minLength: ae,
|
|
9414
|
-
multiple:
|
|
9415
|
-
muted:
|
|
9414
|
+
multiple: Ve,
|
|
9415
|
+
muted: Ve,
|
|
9416
9416
|
name: null,
|
|
9417
9417
|
nonce: null,
|
|
9418
|
-
noModule:
|
|
9419
|
-
noValidate:
|
|
9418
|
+
noModule: Ve,
|
|
9419
|
+
noValidate: Ve,
|
|
9420
9420
|
onAbort: null,
|
|
9421
9421
|
onAfterPrint: null,
|
|
9422
9422
|
onAuxClick: null,
|
|
@@ -9505,31 +9505,31 @@ const aF = Ys({
|
|
|
9505
9505
|
onVolumeChange: null,
|
|
9506
9506
|
onWaiting: null,
|
|
9507
9507
|
onWheel: null,
|
|
9508
|
-
open:
|
|
9508
|
+
open: Ve,
|
|
9509
9509
|
optimum: ae,
|
|
9510
9510
|
pattern: null,
|
|
9511
9511
|
ping: ft,
|
|
9512
9512
|
placeholder: null,
|
|
9513
|
-
playsInline:
|
|
9513
|
+
playsInline: Ve,
|
|
9514
9514
|
popover: null,
|
|
9515
9515
|
popoverTarget: null,
|
|
9516
9516
|
popoverTargetAction: null,
|
|
9517
9517
|
poster: null,
|
|
9518
9518
|
preload: null,
|
|
9519
|
-
readOnly:
|
|
9519
|
+
readOnly: Ve,
|
|
9520
9520
|
referrerPolicy: null,
|
|
9521
9521
|
rel: ft,
|
|
9522
|
-
required:
|
|
9523
|
-
reversed:
|
|
9522
|
+
required: Ve,
|
|
9523
|
+
reversed: Ve,
|
|
9524
9524
|
rows: ae,
|
|
9525
9525
|
rowSpan: ae,
|
|
9526
9526
|
sandbox: ft,
|
|
9527
9527
|
scope: null,
|
|
9528
|
-
scoped:
|
|
9529
|
-
seamless:
|
|
9530
|
-
selected:
|
|
9531
|
-
shadowRootClonable:
|
|
9532
|
-
shadowRootDelegatesFocus:
|
|
9528
|
+
scoped: Ve,
|
|
9529
|
+
seamless: Ve,
|
|
9530
|
+
selected: Ve,
|
|
9531
|
+
shadowRootClonable: Ve,
|
|
9532
|
+
shadowRootDelegatesFocus: Ve,
|
|
9533
9533
|
shadowRootMode: null,
|
|
9534
9534
|
shape: null,
|
|
9535
9535
|
size: ae,
|
|
@@ -9549,7 +9549,7 @@ const aF = Ys({
|
|
|
9549
9549
|
title: null,
|
|
9550
9550
|
translate: null,
|
|
9551
9551
|
type: null,
|
|
9552
|
-
typeMustMatch:
|
|
9552
|
+
typeMustMatch: Ve,
|
|
9553
9553
|
useMap: null,
|
|
9554
9554
|
value: Ot,
|
|
9555
9555
|
width: ae,
|
|
@@ -9595,9 +9595,9 @@ const aF = Ys({
|
|
|
9595
9595
|
// `<object>`
|
|
9596
9596
|
color: null,
|
|
9597
9597
|
// `<font>` and `<hr>`. Use CSS instead
|
|
9598
|
-
compact:
|
|
9598
|
+
compact: Ve,
|
|
9599
9599
|
// Lists. Use CSS to reduce space between items instead
|
|
9600
|
-
declare:
|
|
9600
|
+
declare: Ve,
|
|
9601
9601
|
// `<object>`
|
|
9602
9602
|
event: null,
|
|
9603
9603
|
// `<script>`
|
|
@@ -9621,13 +9621,13 @@ const aF = Ys({
|
|
|
9621
9621
|
// `<body>`
|
|
9622
9622
|
marginWidth: ae,
|
|
9623
9623
|
// `<body>`
|
|
9624
|
-
noResize:
|
|
9624
|
+
noResize: Ve,
|
|
9625
9625
|
// `<frame>`
|
|
9626
|
-
noHref:
|
|
9626
|
+
noHref: Ve,
|
|
9627
9627
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
9628
|
-
noShade:
|
|
9628
|
+
noShade: Ve,
|
|
9629
9629
|
// `<hr>`. Use background-color and height instead of borders
|
|
9630
|
-
noWrap:
|
|
9630
|
+
noWrap: Ve,
|
|
9631
9631
|
// `<td>` and `<th>`
|
|
9632
9632
|
object: null,
|
|
9633
9633
|
// `<applet>`
|
|
@@ -9667,8 +9667,8 @@ const aF = Ys({
|
|
|
9667
9667
|
allowTransparency: null,
|
|
9668
9668
|
autoCorrect: null,
|
|
9669
9669
|
autoSave: null,
|
|
9670
|
-
disablePictureInPicture:
|
|
9671
|
-
disableRemotePlayback:
|
|
9670
|
+
disablePictureInPicture: Ve,
|
|
9671
|
+
disableRemotePlayback: Ve,
|
|
9672
9672
|
prefix: null,
|
|
9673
9673
|
property: null,
|
|
9674
9674
|
results: ae,
|
|
@@ -9903,7 +9903,7 @@ const aF = Ys({
|
|
|
9903
9903
|
dur: null,
|
|
9904
9904
|
divisor: ae,
|
|
9905
9905
|
dominantBaseline: null,
|
|
9906
|
-
download:
|
|
9906
|
+
download: Ve,
|
|
9907
9907
|
dx: null,
|
|
9908
9908
|
dy: null,
|
|
9909
9909
|
edgeMode: null,
|
|
@@ -15244,13 +15244,13 @@ function TH(t, e, n) {
|
|
|
15244
15244
|
function xe(ke) {
|
|
15245
15245
|
return z;
|
|
15246
15246
|
function z(K) {
|
|
15247
|
-
const pe = K !== null && ke[K], X = K !== null && ke.null,
|
|
15247
|
+
const pe = K !== null && ke[K], X = K !== null && ke.null, $e = [
|
|
15248
15248
|
// To do: add more extension tests.
|
|
15249
15249
|
/* c8 ignore next 2 */
|
|
15250
15250
|
...Array.isArray(pe) ? pe : pe ? [pe] : [],
|
|
15251
15251
|
...Array.isArray(X) ? X : X ? [X] : []
|
|
15252
15252
|
];
|
|
15253
|
-
return he(
|
|
15253
|
+
return he($e)(K);
|
|
15254
15254
|
}
|
|
15255
15255
|
}
|
|
15256
15256
|
function he(ke) {
|
|
@@ -15440,15 +15440,15 @@ function BH(t) {
|
|
|
15440
15440
|
blockQuote: o(X),
|
|
15441
15441
|
characterEscape: M,
|
|
15442
15442
|
characterReference: M,
|
|
15443
|
-
codeFenced: o(
|
|
15443
|
+
codeFenced: o($e),
|
|
15444
15444
|
codeFencedFenceInfo: s,
|
|
15445
15445
|
codeFencedFenceMeta: s,
|
|
15446
|
-
codeIndented: o(
|
|
15446
|
+
codeIndented: o($e, s),
|
|
15447
15447
|
codeText: o(et, s),
|
|
15448
15448
|
codeTextData: M,
|
|
15449
15449
|
data: M,
|
|
15450
15450
|
codeFlowValue: M,
|
|
15451
|
-
definition: o(
|
|
15451
|
+
definition: o(ze),
|
|
15452
15452
|
definitionDestinationString: s,
|
|
15453
15453
|
definitionLabelString: s,
|
|
15454
15454
|
definitionTitleString: s,
|
|
@@ -15839,7 +15839,7 @@ function BH(t) {
|
|
|
15839
15839
|
children: []
|
|
15840
15840
|
};
|
|
15841
15841
|
}
|
|
15842
|
-
function
|
|
15842
|
+
function $e() {
|
|
15843
15843
|
return {
|
|
15844
15844
|
type: "code",
|
|
15845
15845
|
lang: null,
|
|
@@ -15853,7 +15853,7 @@ function BH(t) {
|
|
|
15853
15853
|
value: ""
|
|
15854
15854
|
};
|
|
15855
15855
|
}
|
|
15856
|
-
function
|
|
15856
|
+
function ze() {
|
|
15857
15857
|
return {
|
|
15858
15858
|
type: "definition",
|
|
15859
15859
|
identifier: "",
|
|
@@ -16931,7 +16931,7 @@ Dn.prototype.fatal = void 0;
|
|
|
16931
16931
|
Dn.prototype.place = void 0;
|
|
16932
16932
|
Dn.prototype.ruleId = void 0;
|
|
16933
16933
|
Dn.prototype.source = void 0;
|
|
16934
|
-
const
|
|
16934
|
+
const Mi = { basename: OV, dirname: IV, extname: DV, join: RV, sep: "/" };
|
|
16935
16935
|
function OV(t, e) {
|
|
16936
16936
|
if (e !== void 0 && typeof e != "string")
|
|
16937
16937
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -17137,7 +17137,7 @@ class VV {
|
|
|
17137
17137
|
* Basename.
|
|
17138
17138
|
*/
|
|
17139
17139
|
get basename() {
|
|
17140
|
-
return typeof this.path == "string" ?
|
|
17140
|
+
return typeof this.path == "string" ? Mi.basename(this.path) : void 0;
|
|
17141
17141
|
}
|
|
17142
17142
|
/**
|
|
17143
17143
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -17152,7 +17152,7 @@ class VV {
|
|
|
17152
17152
|
* Nothing.
|
|
17153
17153
|
*/
|
|
17154
17154
|
set basename(e) {
|
|
17155
|
-
hu(e, "basename"), uu(e, "basename"), this.path =
|
|
17155
|
+
hu(e, "basename"), uu(e, "basename"), this.path = Mi.join(this.dirname || "", e);
|
|
17156
17156
|
}
|
|
17157
17157
|
/**
|
|
17158
17158
|
* Get the parent path (example: `'~'`).
|
|
@@ -17161,7 +17161,7 @@ class VV {
|
|
|
17161
17161
|
* Dirname.
|
|
17162
17162
|
*/
|
|
17163
17163
|
get dirname() {
|
|
17164
|
-
return typeof this.path == "string" ?
|
|
17164
|
+
return typeof this.path == "string" ? Mi.dirname(this.path) : void 0;
|
|
17165
17165
|
}
|
|
17166
17166
|
/**
|
|
17167
17167
|
* Set the parent path (example: `'~'`).
|
|
@@ -17174,7 +17174,7 @@ class VV {
|
|
|
17174
17174
|
* Nothing.
|
|
17175
17175
|
*/
|
|
17176
17176
|
set dirname(e) {
|
|
17177
|
-
Q4(this.basename, "dirname"), this.path =
|
|
17177
|
+
Q4(this.basename, "dirname"), this.path = Mi.join(e || "", this.basename);
|
|
17178
17178
|
}
|
|
17179
17179
|
/**
|
|
17180
17180
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -17183,7 +17183,7 @@ class VV {
|
|
|
17183
17183
|
* Extname.
|
|
17184
17184
|
*/
|
|
17185
17185
|
get extname() {
|
|
17186
|
-
return typeof this.path == "string" ?
|
|
17186
|
+
return typeof this.path == "string" ? Mi.extname(this.path) : void 0;
|
|
17187
17187
|
}
|
|
17188
17188
|
/**
|
|
17189
17189
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -17204,7 +17204,7 @@ class VV {
|
|
|
17204
17204
|
if (e.includes(".", 1))
|
|
17205
17205
|
throw new Error("`extname` cannot contain multiple dots");
|
|
17206
17206
|
}
|
|
17207
|
-
this.path =
|
|
17207
|
+
this.path = Mi.join(this.dirname, this.stem + (e || ""));
|
|
17208
17208
|
}
|
|
17209
17209
|
/**
|
|
17210
17210
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -17237,7 +17237,7 @@ class VV {
|
|
|
17237
17237
|
* Stem.
|
|
17238
17238
|
*/
|
|
17239
17239
|
get stem() {
|
|
17240
|
-
return typeof this.path == "string" ?
|
|
17240
|
+
return typeof this.path == "string" ? Mi.basename(this.path, this.extname) : void 0;
|
|
17241
17241
|
}
|
|
17242
17242
|
/**
|
|
17243
17243
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -17252,7 +17252,7 @@ class VV {
|
|
|
17252
17252
|
* Nothing.
|
|
17253
17253
|
*/
|
|
17254
17254
|
set stem(e) {
|
|
17255
|
-
hu(e, "stem"), uu(e, "stem"), this.path =
|
|
17255
|
+
hu(e, "stem"), uu(e, "stem"), this.path = Mi.join(this.dirname || "", e + (this.extname || ""));
|
|
17256
17256
|
}
|
|
17257
17257
|
// Normal prototypal methods.
|
|
17258
17258
|
/**
|
|
@@ -17466,9 +17466,9 @@ class VV {
|
|
|
17466
17466
|
}
|
|
17467
17467
|
}
|
|
17468
17468
|
function uu(t, e) {
|
|
17469
|
-
if (t && t.includes(
|
|
17469
|
+
if (t && t.includes(Mi.sep))
|
|
17470
17470
|
throw new Error(
|
|
17471
|
-
"`" + e + "` cannot be a path: did not expect `" +
|
|
17471
|
+
"`" + e + "` cannot be a path: did not expect `" + Mi.sep + "`"
|
|
17472
17472
|
);
|
|
17473
17473
|
}
|
|
17474
17474
|
function hu(t, e) {
|
|
@@ -18041,7 +18041,7 @@ const JV = UV().use(zH).use(cH).use(EV).use(wP), YV = O(function({ content: e, c
|
|
|
18041
18041
|
className: "flex w-full flex-col rounded-lg bg-gradient-to-l from-[#A1ADE51F] via-[#E519431F] to-[#E556191F] p-[1px]",
|
|
18042
18042
|
children: [k("div", {
|
|
18043
18043
|
className: "flex flex-row items-center justify-between px-4 py-2",
|
|
18044
|
-
children: [d(
|
|
18044
|
+
children: [d(wi, {
|
|
18045
18045
|
className: "font-medium",
|
|
18046
18046
|
children: e
|
|
18047
18047
|
}), n && d(me, {
|
|
@@ -18157,7 +18157,7 @@ const n5 = wt(Dv, ej), Rv = gn({
|
|
|
18157
18157
|
icon: i5[o],
|
|
18158
18158
|
size: "sm",
|
|
18159
18159
|
"aria-hidden": !0
|
|
18160
|
-
}), d(
|
|
18160
|
+
}), d(wi, {
|
|
18161
18161
|
className: r5[o] || "font-medium",
|
|
18162
18162
|
children: e
|
|
18163
18163
|
})]
|
|
@@ -18616,13 +18616,13 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18616
18616
|
selected: !!K,
|
|
18617
18617
|
partialSelected: !!K
|
|
18618
18618
|
};
|
|
18619
|
-
const pe = (z.subItems ?? []).filter((
|
|
18619
|
+
const pe = (z.subItems ?? []).filter((ze) => {
|
|
18620
18620
|
var Ue;
|
|
18621
|
-
return (Ue = K == null ? void 0 : K.subItems) == null ? void 0 : Ue.some((vt) => vt.subId ===
|
|
18622
|
-
}), X = (((et = z.subItems) == null ? void 0 : et.length) ?? 0) === pe.length,
|
|
18621
|
+
return (Ue = K == null ? void 0 : K.subItems) == null ? void 0 : Ue.some((vt) => vt.subId === ze.subId);
|
|
18622
|
+
}), X = (((et = z.subItems) == null ? void 0 : et.length) ?? 0) === pe.length, $e = !X && pe.length > 0;
|
|
18623
18623
|
return {
|
|
18624
18624
|
selected: X,
|
|
18625
|
-
partialSelected:
|
|
18625
|
+
partialSelected: $e
|
|
18626
18626
|
};
|
|
18627
18627
|
}, [t, H]), te = Re((z) => {
|
|
18628
18628
|
if (z.index === 0 && C)
|
|
@@ -18632,7 +18632,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18632
18632
|
goToFirst: R,
|
|
18633
18633
|
goToLast: B
|
|
18634
18634
|
});
|
|
18635
|
-
const K = C ? z.index - 1 : z.index, pe = e[K], { selected: X, partialSelected:
|
|
18635
|
+
const K = C ? z.index - 1 : z.index, pe = e[K], { selected: X, partialSelected: $e } = U(pe);
|
|
18636
18636
|
return d(Ac, {
|
|
18637
18637
|
expanded: pe.expanded ?? !1,
|
|
18638
18638
|
onExpand: () => m(pe, !0),
|
|
@@ -18642,7 +18642,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18642
18642
|
onSelect: o,
|
|
18643
18643
|
onRemove: s,
|
|
18644
18644
|
selected: X,
|
|
18645
|
-
partialSelected:
|
|
18645
|
+
partialSelected: $e,
|
|
18646
18646
|
showGroupIcon: dj(n, i),
|
|
18647
18647
|
singleSelector: L,
|
|
18648
18648
|
goToFirst: R,
|
|
@@ -18678,7 +18678,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18678
18678
|
subSearchKeys: z.searchKeys
|
|
18679
18679
|
}
|
|
18680
18680
|
})), [t, e, h]), N = Re((z) => {
|
|
18681
|
-
var et,
|
|
18681
|
+
var et, ze;
|
|
18682
18682
|
if (z.index === 0 && C)
|
|
18683
18683
|
return d(o5, {
|
|
18684
18684
|
label: A ?? "",
|
|
@@ -18709,7 +18709,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18709
18709
|
onRemove: s,
|
|
18710
18710
|
selected: kt,
|
|
18711
18711
|
partialSelected: F,
|
|
18712
|
-
showGroupIcon: ((
|
|
18712
|
+
showGroupIcon: ((ze = n.find(($) => $.value === i)) == null ? void 0 : ze.groupType) === "team",
|
|
18713
18713
|
singleSelector: L,
|
|
18714
18714
|
goToFirst: R,
|
|
18715
18715
|
goToLast: B,
|
|
@@ -18718,10 +18718,10 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18718
18718
|
hiddenAvatar: P
|
|
18719
18719
|
});
|
|
18720
18720
|
}
|
|
18721
|
-
let
|
|
18722
|
-
if (
|
|
18721
|
+
let $e = !!nc(h, X.subId);
|
|
18722
|
+
if (!$e) {
|
|
18723
18723
|
const Ue = nc(h, pe.id);
|
|
18724
|
-
|
|
18724
|
+
$e = !!((pe == null ? void 0 : pe.subItems) ?? []).filter((xt) => {
|
|
18725
18725
|
var kt;
|
|
18726
18726
|
return (kt = Ue == null ? void 0 : Ue.subItems) == null ? void 0 : kt.some((F) => F.subId === xt.subId);
|
|
18727
18727
|
}).find((xt) => xt.subId === X.subId);
|
|
@@ -18741,7 +18741,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18741
18741
|
l(pe, X);
|
|
18742
18742
|
},
|
|
18743
18743
|
onRemove: () => a(pe, X),
|
|
18744
|
-
selected:
|
|
18744
|
+
selected: !!$e,
|
|
18745
18745
|
partialSelected: !1,
|
|
18746
18746
|
singleSelector: L,
|
|
18747
18747
|
goToFirst: R,
|
|
@@ -18754,15 +18754,15 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
18754
18754
|
return [!1, !1];
|
|
18755
18755
|
let z = 0, K = 0;
|
|
18756
18756
|
if (!t)
|
|
18757
|
-
z = e.length, K = e.reduce((
|
|
18757
|
+
z = e.length, K = e.reduce(($e, { id: et }) => $e + (H.has(et) ? 1 : 0), 0);
|
|
18758
18758
|
else {
|
|
18759
|
-
const
|
|
18760
|
-
var
|
|
18761
|
-
return ((
|
|
18759
|
+
const $e = new Set([...H.values()].flatMap((et) => {
|
|
18760
|
+
var ze;
|
|
18761
|
+
return ((ze = et.subItems) == null ? void 0 : ze.map((Ue) => Ue.subId)) ?? [];
|
|
18762
18762
|
}));
|
|
18763
18763
|
e.forEach((et) => {
|
|
18764
|
-
const
|
|
18765
|
-
z +=
|
|
18764
|
+
const ze = et.subItems ?? [];
|
|
18765
|
+
z += ze.length, K += ze.filter((Ue) => $e.has(Ue.subId)).length;
|
|
18766
18766
|
});
|
|
18767
18767
|
}
|
|
18768
18768
|
const pe = z > 0 && K === z, X = K > 0;
|
|
@@ -19005,7 +19005,7 @@ const o5 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => d("div", {
|
|
|
19005
19005
|
children: d("span", {
|
|
19006
19006
|
role: "button",
|
|
19007
19007
|
className: T("my-auto flex items-center pr-1", t && "text-f1-foreground-secondary", C && "text-f1-foreground", S.length === 1 && !r || a && !C ? "pl-8" : "pl-2"),
|
|
19008
|
-
children: d(
|
|
19008
|
+
children: d(wi, {
|
|
19009
19009
|
tag: "span",
|
|
19010
19010
|
children: S.length === 0 ? t ?? "" : S.length === 1 ? S[0].subItem.subName : `${S.length} ${e}`
|
|
19011
19011
|
})
|
|
@@ -19656,7 +19656,7 @@ function _j(t) {
|
|
|
19656
19656
|
l.current = !1;
|
|
19657
19657
|
}), [n]), ee.useMemo(() => nk(s, n, c.current, !1), [s, n]);
|
|
19658
19658
|
}
|
|
19659
|
-
var
|
|
19659
|
+
var Di = (t) => typeof t == "string", ok = (t, e, n, i, r) => Di(t) ? (i && e.watch.add(t), ge(n, t, r)) : Array.isArray(t) ? t.map((o) => (i && e.watch.add(o), ge(n, o))) : (i && (e.watchAll = !0), n);
|
|
19660
19660
|
function Sj(t) {
|
|
19661
19661
|
const e = Dl(), { control: n = e.control, name: i, defaultValue: r, disabled: o, exact: s } = t || {}, a = ee.useRef(i);
|
|
19662
19662
|
a.current = i, t2({
|
|
@@ -19797,12 +19797,12 @@ const Sa = (t, e, n, i) => {
|
|
|
19797
19797
|
var Mj = (t, e, n) => {
|
|
19798
19798
|
const i = _a(ge(t, n));
|
|
19799
19799
|
return nt(i, "root", e[n]), nt(t, n, i), t;
|
|
19800
|
-
}, n2 = (t) => t.type === "file",
|
|
19800
|
+
}, n2 = (t) => t.type === "file", Ii = (t) => typeof t == "function", wd = (t) => {
|
|
19801
19801
|
if (!Qm)
|
|
19802
19802
|
return !1;
|
|
19803
19803
|
const e = t ? t.ownerDocument : 0;
|
|
19804
19804
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
19805
|
-
}, Tc = (t) =>
|
|
19805
|
+
}, Tc = (t) => Di(t), i2 = (t) => t.type === "radio", xd = (t) => t instanceof RegExp;
|
|
19806
19806
|
const g5 = {
|
|
19807
19807
|
value: !1,
|
|
19808
19808
|
isValid: !1
|
|
@@ -19872,17 +19872,17 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
|
|
|
19872
19872
|
dn(R.value) || (E = H > R.value), dn(B.value) || (D = H < B.value);
|
|
19873
19873
|
} else {
|
|
19874
19874
|
const H = s.valueAsDate || new Date(w), U = (N) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + N), te = s.type == "time", ie = s.type == "week";
|
|
19875
|
-
|
|
19875
|
+
Di(R.value) && w && (E = te ? U(w) > U(R.value) : ie ? w > R.value : H > new Date(R.value)), Di(B.value) && w && (D = te ? U(w) < U(B.value) : ie ? w < B.value : H < new Date(B.value));
|
|
19876
19876
|
}
|
|
19877
19877
|
if ((E || D) && (P(!!E, R.message, B.message, Ui.max, Ui.min), !i))
|
|
19878
19878
|
return b(S[g].message), S;
|
|
19879
19879
|
}
|
|
19880
|
-
if ((c || f) && !M && (
|
|
19880
|
+
if ((c || f) && !M && (Di(w) || o && Array.isArray(w))) {
|
|
19881
19881
|
const E = Uo(c), D = Uo(f), R = !dn(E.value) && w.length > +E.value, B = !dn(D.value) && w.length < +D.value;
|
|
19882
19882
|
if ((R || B) && (P(R, E.message, D.message), !i))
|
|
19883
19883
|
return b(S[g].message), S;
|
|
19884
19884
|
}
|
|
19885
|
-
if (p && !M &&
|
|
19885
|
+
if (p && !M && Di(w)) {
|
|
19886
19886
|
const { value: E, message: D } = Uo(p);
|
|
19887
19887
|
if (xd(E) && !w.match(E) && (S[g] = {
|
|
19888
19888
|
type: Ui.pattern,
|
|
@@ -19893,7 +19893,7 @@ var Uo = (t) => Tt(t) && !xd(t) ? t : {
|
|
|
19893
19893
|
return b(D), S;
|
|
19894
19894
|
}
|
|
19895
19895
|
if (m) {
|
|
19896
|
-
if (
|
|
19896
|
+
if (Ii(m)) {
|
|
19897
19897
|
const E = await m(w, n), D = k5(E, x);
|
|
19898
19898
|
if (D && (S[g] = {
|
|
19899
19899
|
...D,
|
|
@@ -19979,7 +19979,7 @@ function Sr(t, e) {
|
|
|
19979
19979
|
}
|
|
19980
19980
|
var ck = (t) => t.type === "select-multiple", Tj = (t) => i2(t) || Il(t), bu = (t) => wd(t) && t.isConnected, dk = (t) => {
|
|
19981
19981
|
for (const e in t)
|
|
19982
|
-
if (
|
|
19982
|
+
if (Ii(t[e]))
|
|
19983
19983
|
return !0;
|
|
19984
19984
|
return !1;
|
|
19985
19985
|
};
|
|
@@ -19997,7 +19997,7 @@ function fk(t, e, n) {
|
|
|
19997
19997
|
Array.isArray(t[r]) || Tt(t[r]) && !dk(t[r]) ? Nt(e) || e0(n[r]) ? n[r] = Array.isArray(t[r]) ? Cd(t[r], []) : { ...Cd(t[r]) } : fk(t[r], dn(e) ? {} : e[r], n[r]) : n[r] = !Sr(t[r], e[r]);
|
|
19998
19998
|
return n;
|
|
19999
19999
|
}
|
|
20000
|
-
var da = (t, e) => fk(t, e, Cd(e)), uk = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: i }) => Nt(t) ? t : e ? t === "" ? NaN : t && +t : n &&
|
|
20000
|
+
var da = (t, e) => fk(t, e, Cd(e)), uk = (t, { valueAsNumber: e, valueAsDate: n, setValueAs: i }) => Nt(t) ? t : e ? t === "" ? NaN : t && +t : n && Di(t) ? new Date(t) : i ? i(t) : t;
|
|
20001
20001
|
function wu(t) {
|
|
20002
20002
|
const e = t.ref;
|
|
20003
20003
|
return n2(e) ? e.files : i2(e) ? lk(t.refs).value : ck(e) ? [...e.selectedOptions].map(({ value: n }) => n) : Il(e) ? ak(t.refs).value : uk(Nt(e.value) ? t.ref.value : e.value, t);
|
|
@@ -20016,7 +20016,7 @@ var Oj = (t, e, n, i) => {
|
|
|
20016
20016
|
};
|
|
20017
20017
|
}, fa = (t) => Nt(t) ? t : xd(t) ? t.source : Tt(t) ? xd(t.value) ? t.value.source : t.value : t;
|
|
20018
20018
|
const w5 = "AsyncFunction";
|
|
20019
|
-
var Ij = (t) => !!t && !!t.validate && !!(
|
|
20019
|
+
var Ij = (t) => !!t && !!t.validate && !!(Ii(t.validate) && t.validate.constructor.name === w5 || Tt(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === w5)), Dj = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate);
|
|
20020
20020
|
function x5(t, e, n) {
|
|
20021
20021
|
const i = ge(t, n);
|
|
20022
20022
|
if (i || e2(n))
|
|
@@ -20053,7 +20053,7 @@ function Bj(t = {}) {
|
|
|
20053
20053
|
}, n = {
|
|
20054
20054
|
submitCount: 0,
|
|
20055
20055
|
isDirty: !1,
|
|
20056
|
-
isLoading:
|
|
20056
|
+
isLoading: Ii(e.defaultValues),
|
|
20057
20057
|
isValidating: !1,
|
|
20058
20058
|
isSubmitted: !1,
|
|
20059
20059
|
isSubmitting: !1,
|
|
@@ -20214,7 +20214,7 @@ function Bj(t = {}) {
|
|
|
20214
20214
|
}
|
|
20215
20215
|
a.unMount = /* @__PURE__ */ new Set();
|
|
20216
20216
|
}, E = (F, $) => !e.disabled && (F && $ && nt(o, F, $), !Sr(xe(), r)), D = (F, $, W) => ok(F, a, {
|
|
20217
|
-
...s.mount ? o : Nt($) ? r :
|
|
20217
|
+
...s.mount ? o : Nt($) ? r : Di(F) ? { [F]: $ } : $
|
|
20218
20218
|
}, W, $), R = (F) => a1(ge(s.mount ? o : r, F, e.shouldUnregister ? ge(r, F, []) : [])), B = (F, $, W = {}) => {
|
|
20219
20219
|
const se = ge(i, F);
|
|
20220
20220
|
let ce = $;
|
|
@@ -20286,7 +20286,7 @@ function Bj(t = {}) {
|
|
|
20286
20286
|
return await _(ve && ve._f ? { [Y]: ve } : ve);
|
|
20287
20287
|
}))).every(Boolean), !(!se && !n.isValid) && y()) : se = W = await _(i);
|
|
20288
20288
|
return u.state.next({
|
|
20289
|
-
...!
|
|
20289
|
+
...!Di(F) || f.isValid && W !== n.isValid ? {} : { name: F },
|
|
20290
20290
|
...e.resolver || !F ? { isValid: W } : {},
|
|
20291
20291
|
errors: n.errors
|
|
20292
20292
|
}), $.shouldFocus && !se && Sa(i, ie, F ? ce : a.mount), se;
|
|
@@ -20294,7 +20294,7 @@ function Bj(t = {}) {
|
|
|
20294
20294
|
const $ = {
|
|
20295
20295
|
...s.mount ? o : r
|
|
20296
20296
|
};
|
|
20297
|
-
return Nt(F) ? $ :
|
|
20297
|
+
return Nt(F) ? $ : Di(F) ? ge($, F) : F.map((W) => ge($, W));
|
|
20298
20298
|
}, he = (F, $) => ({
|
|
20299
20299
|
invalid: !!ge(($ || n).errors, F),
|
|
20300
20300
|
isDirty: !!ge(($ || n).dirtyFields, F),
|
|
@@ -20316,7 +20316,7 @@ function Bj(t = {}) {
|
|
|
20316
20316
|
errors: n.errors,
|
|
20317
20317
|
isValid: !1
|
|
20318
20318
|
}), W && W.shouldFocus && se && se.focus && se.focus();
|
|
20319
|
-
}, De = (F, $) =>
|
|
20319
|
+
}, De = (F, $) => Ii(F) ? u.values.subscribe({
|
|
20320
20320
|
next: (W) => F(D(void 0, $), W)
|
|
20321
20321
|
}) : D(F, $, !0), ke = (F, $ = {}) => {
|
|
20322
20322
|
for (const W of F ? _a(F) : a.mount)
|
|
@@ -20387,7 +20387,7 @@ function Bj(t = {}) {
|
|
|
20387
20387
|
ce.disabled = se._f.disabled || F;
|
|
20388
20388
|
}));
|
|
20389
20389
|
}, 0, !1));
|
|
20390
|
-
},
|
|
20390
|
+
}, $e = (F, $) => async (W) => {
|
|
20391
20391
|
let se;
|
|
20392
20392
|
W && (W.preventDefault && W.preventDefault(), W.persist && W.persist());
|
|
20393
20393
|
let ce = kn(o);
|
|
@@ -20422,7 +20422,7 @@ function Bj(t = {}) {
|
|
|
20422
20422
|
throw se;
|
|
20423
20423
|
}, et = (F, $ = {}) => {
|
|
20424
20424
|
ge(i, F) && (Nt($.defaultValue) ? U(F, kn(ge(r, F))) : (U(F, $.defaultValue), nt(r, F, kn($.defaultValue))), $.keepTouched || Ft(n.touchedFields, F), $.keepDirty || (Ft(n.dirtyFields, F), n.isDirty = $.defaultValue ? E(F, kn(ge(r, F))) : E()), $.keepError || (Ft(n.errors, F), f.isValid && y()), u.state.next({ ...n }));
|
|
20425
|
-
},
|
|
20425
|
+
}, ze = (F, $ = {}) => {
|
|
20426
20426
|
const W = F ? kn(F) : r, se = kn(W), ce = bn(F), Y = ce ? r : se;
|
|
20427
20427
|
if ($.keepDefaultValues || (r = W), !$.keepValues) {
|
|
20428
20428
|
if ($.keepDirtyValues) {
|
|
@@ -20473,13 +20473,13 @@ function Bj(t = {}) {
|
|
|
20473
20473
|
isSubmitSuccessful: $.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1,
|
|
20474
20474
|
isSubmitting: !1
|
|
20475
20475
|
});
|
|
20476
|
-
}, Ue = (F, $) =>
|
|
20476
|
+
}, Ue = (F, $) => ze(Ii(F) ? F(o) : F, $);
|
|
20477
20477
|
return {
|
|
20478
20478
|
control: {
|
|
20479
20479
|
register: K,
|
|
20480
20480
|
unregister: ke,
|
|
20481
20481
|
getFieldState: he,
|
|
20482
|
-
handleSubmit:
|
|
20482
|
+
handleSubmit: $e,
|
|
20483
20483
|
setError: be,
|
|
20484
20484
|
_executeSchema: L,
|
|
20485
20485
|
_getWatch: D,
|
|
@@ -20489,8 +20489,8 @@ function Bj(t = {}) {
|
|
|
20489
20489
|
_updateFieldArray: w,
|
|
20490
20490
|
_updateDisabledField: z,
|
|
20491
20491
|
_getFieldArray: R,
|
|
20492
|
-
_reset:
|
|
20493
|
-
_resetDefaultValues: () =>
|
|
20492
|
+
_reset: ze,
|
|
20493
|
+
_resetDefaultValues: () => Ii(e.defaultValues) && e.defaultValues().then((F) => {
|
|
20494
20494
|
Ue(F, e.resetOptions), u.state.next({
|
|
20495
20495
|
isLoading: !1
|
|
20496
20496
|
});
|
|
@@ -20544,7 +20544,7 @@ function Bj(t = {}) {
|
|
|
20544
20544
|
},
|
|
20545
20545
|
trigger: N,
|
|
20546
20546
|
register: K,
|
|
20547
|
-
handleSubmit:
|
|
20547
|
+
handleSubmit: $e,
|
|
20548
20548
|
watch: De,
|
|
20549
20549
|
setValue: U,
|
|
20550
20550
|
getValues: xe,
|
|
@@ -20557,7 +20557,7 @@ function Bj(t = {}) {
|
|
|
20557
20557
|
const W = ge(i, F), se = W && W._f;
|
|
20558
20558
|
if (se) {
|
|
20559
20559
|
const ce = se.refs ? se.refs[0] : se.ref;
|
|
20560
|
-
ce.focus && (ce.focus(), $.shouldSelect &&
|
|
20560
|
+
ce.focus && (ce.focus(), $.shouldSelect && Ii(ce.select) && ce.select());
|
|
20561
20561
|
}
|
|
20562
20562
|
},
|
|
20563
20563
|
getFieldState: he
|
|
@@ -20567,7 +20567,7 @@ function $j(t = {}) {
|
|
|
20567
20567
|
const e = ee.useRef(void 0), n = ee.useRef(void 0), [i, r] = ee.useState({
|
|
20568
20568
|
isDirty: !1,
|
|
20569
20569
|
isValidating: !1,
|
|
20570
|
-
isLoading:
|
|
20570
|
+
isLoading: Ii(t.defaultValues),
|
|
20571
20571
|
isSubmitted: !1,
|
|
20572
20572
|
isSubmitting: !1,
|
|
20573
20573
|
isSubmitSuccessful: !1,
|
|
@@ -20578,7 +20578,7 @@ function $j(t = {}) {
|
|
|
20578
20578
|
validatingFields: {},
|
|
20579
20579
|
errors: t.errors || {},
|
|
20580
20580
|
disabled: t.disabled || !1,
|
|
20581
|
-
defaultValues:
|
|
20581
|
+
defaultValues: Ii(t.defaultValues) ? void 0 : t.defaultValues
|
|
20582
20582
|
});
|
|
20583
20583
|
e.current || (e.current = {
|
|
20584
20584
|
...Bj(t),
|
|
@@ -20892,7 +20892,7 @@ const Uj = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
|
|
|
20892
20892
|
}), t0 = () => d("div", {
|
|
20893
20893
|
className: "-mx-2 h-px bg-f1-background-secondary"
|
|
20894
20894
|
}), Qj = ({ items: t, loadingMoreItems: e = !1, onClickItem: n, onEndReached: i, onEndReachedItemsThreshold: r = 5 }) => {
|
|
20895
|
-
const o =
|
|
20895
|
+
const o = Be(), s = US(t, "createdAt"), a = Object.values(s).slice().flatMap((f) => f.map((u) => u.id)).slice(-r), l = GS((f) => {
|
|
20896
20896
|
a.includes(f) && (i == null || i());
|
|
20897
20897
|
}, 1e3), c = Xj(Object.entries(s).filter(([f, u]) => !!u.length));
|
|
20898
20898
|
return k("div", {
|
|
@@ -20907,7 +20907,7 @@ const Uj = ({ id: t, createdAt: e, title: n, description: i, icon: r, category:
|
|
|
20907
20907
|
}, f)), e && new Array(Jj).fill(null).map((f, u) => d(r2.Skeleton, {}, u))]
|
|
20908
20908
|
});
|
|
20909
20909
|
}, eW = () => {
|
|
20910
|
-
const t =
|
|
20910
|
+
const t = Be();
|
|
20911
20911
|
return k("div", {
|
|
20912
20912
|
className: "flex flex-col gap-2 p-2",
|
|
20913
20913
|
children: [d(Oc.Skeleton, {
|
|
@@ -21033,7 +21033,7 @@ function Gi() {
|
|
|
21033
21033
|
function Cs(t) {
|
|
21034
21034
|
return t.children;
|
|
21035
21035
|
}
|
|
21036
|
-
function
|
|
21036
|
+
function Fi(t, e) {
|
|
21037
21037
|
this.props = t, this.context = e;
|
|
21038
21038
|
}
|
|
21039
21039
|
function _s(t, e) {
|
|
@@ -21142,7 +21142,7 @@ function o2(t, e, n, i, r, o, s, a, l) {
|
|
|
21142
21142
|
]), (c = Ae.__b) && c(e);
|
|
21143
21143
|
try {
|
|
21144
21144
|
e: if (typeof b == "function") {
|
|
21145
|
-
if (y = e.props, v = (c = b.contextType) && i[c.__c], w = c ? v ? v.props.value : c.__ : i, n.__c ? g = (f = e.__c = n.__c).__ = f.__E : ("prototype" in b && b.prototype.render ? e.__c = f = new b(y, w) : (e.__c = f = new
|
|
21145
|
+
if (y = e.props, v = (c = b.contextType) && i[c.__c], w = c ? v ? v.props.value : c.__ : i, n.__c ? g = (f = e.__c = n.__c).__ = f.__E : ("prototype" in b && b.prototype.render ? e.__c = f = new b(y, w) : (e.__c = f = new Fi(y, w), f.constructor = b, f.render = fW), v && v.sub(f), f.props = y, f.state || (f.state = {}), f.context = w, f.__n = i, u = f.__d = !0, f.__h = []), f.__s == null && (f.__s = f.state), b.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = Nr({}, f.__s)), Nr(f.__s, b.getDerivedStateFromProps(y, f.__s))), h = f.props, p = f.state, u) b.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount);
|
|
21146
21146
|
else {
|
|
21147
21147
|
if (b.getDerivedStateFromProps == null && y !== h && f.componentWillReceiveProps != null && f.componentWillReceiveProps(y, w), !f.__e && f.shouldComponentUpdate != null && f.shouldComponentUpdate(y, f.__s, w) === !1 || e.__v === n.__v) {
|
|
21148
21148
|
f.props = y, f.state = f.__s, e.__v !== n.__v && (f.__d = !1), f.__v = e, e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(S) {
|
|
@@ -21240,12 +21240,12 @@ c1 = Sk.slice, Ae = {
|
|
|
21240
21240
|
}
|
|
21241
21241
|
throw t;
|
|
21242
21242
|
}
|
|
21243
|
-
}, Ck = 0,
|
|
21243
|
+
}, Ck = 0, Fi.prototype.setState = function(t, e) {
|
|
21244
21244
|
var n;
|
|
21245
21245
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Nr({}, this.state), typeof t == "function" && (t = t(Nr({}, n), this.props)), t && Nr(n, t), t != null && this.__v && (e && this.__h.push(e), S5(this));
|
|
21246
|
-
},
|
|
21246
|
+
}, Fi.prototype.forceUpdate = function(t) {
|
|
21247
21247
|
this.__v && (this.__e = !0, t && this.__h.push(t), S5(this));
|
|
21248
|
-
},
|
|
21248
|
+
}, Fi.prototype.render = Cs, La = [], _k = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Sd.__r = 0;
|
|
21249
21249
|
var uW = 0;
|
|
21250
21250
|
function J(t, e, n, i, r) {
|
|
21251
21251
|
var o, s, a = {};
|
|
@@ -22167,7 +22167,7 @@ function B5(t, e) {
|
|
|
22167
22167
|
function Nd(t) {
|
|
22168
22168
|
this.props = t;
|
|
22169
22169
|
}
|
|
22170
|
-
(Nd.prototype = new
|
|
22170
|
+
(Nd.prototype = new Fi()).isPureReactComponent = !0, Nd.prototype.shouldComponentUpdate = function(t, e) {
|
|
22171
22171
|
return B5(this.props, t) || B5(this.state, e);
|
|
22172
22172
|
};
|
|
22173
22173
|
var $5 = Ae.__b;
|
|
@@ -22195,7 +22195,7 @@ function ic() {
|
|
|
22195
22195
|
Ae.unmount = function(t) {
|
|
22196
22196
|
var e = t.__c;
|
|
22197
22197
|
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), z5 && z5(t);
|
|
22198
|
-
}, (Su.prototype = new
|
|
22198
|
+
}, (Su.prototype = new Fi()).__c = function(t, e) {
|
|
22199
22199
|
var n = e.__c, i = this;
|
|
22200
22200
|
i.t == null && (i.t = []), i.t.push(n);
|
|
22201
22201
|
var r = qk(i.__v), o = !1, s = function() {
|
|
@@ -22250,7 +22250,7 @@ var H5 = function(t, e, n) {
|
|
|
22250
22250
|
t.u = n = n[2];
|
|
22251
22251
|
}
|
|
22252
22252
|
};
|
|
22253
|
-
(ic.prototype = new
|
|
22253
|
+
(ic.prototype = new Fi()).__e = function(t) {
|
|
22254
22254
|
var e = this, n = qk(e.__v), i = e.o.get(t);
|
|
22255
22255
|
return i[0]++, function(r) {
|
|
22256
22256
|
var o = function() {
|
|
@@ -22277,12 +22277,12 @@ var H5 = function(t, e, n) {
|
|
|
22277
22277
|
var PW = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, BW = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, $W = typeof document < "u", zW = function(t) {
|
|
22278
22278
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(t);
|
|
22279
22279
|
};
|
|
22280
|
-
|
|
22280
|
+
Fi.prototype.isReactComponent = {}, [
|
|
22281
22281
|
"componentWillMount",
|
|
22282
22282
|
"componentWillReceiveProps",
|
|
22283
22283
|
"componentWillUpdate"
|
|
22284
22284
|
].forEach(function(t) {
|
|
22285
|
-
Object.defineProperty(
|
|
22285
|
+
Object.defineProperty(Fi.prototype, t, {
|
|
22286
22286
|
configurable: !0,
|
|
22287
22287
|
get: function() {
|
|
22288
22288
|
return this["UNSAFE_" + t];
|
|
@@ -22415,7 +22415,7 @@ class UW extends Nd {
|
|
|
22415
22415
|
const rc = {
|
|
22416
22416
|
rowsPerRender: 10
|
|
22417
22417
|
};
|
|
22418
|
-
class GW extends
|
|
22418
|
+
class GW extends Fi {
|
|
22419
22419
|
getInitialState(e = this.props) {
|
|
22420
22420
|
return {
|
|
22421
22421
|
skin: Rr.get("skin") || e.skin,
|
|
@@ -24577,7 +24577,7 @@ const U5 = (t) => {
|
|
|
24577
24577
|
})]
|
|
24578
24578
|
})]
|
|
24579
24579
|
}), Ide = wt(hq, pq), mq = ({ description: t }) => {
|
|
24580
|
-
const [e, n] = V(!1), [i, r] = V(!1), o =
|
|
24580
|
+
const [e, n] = V(!1), [i, r] = V(!1), o = Be(), s = fe(null), a = fe(null), l = nd({
|
|
24581
24581
|
ref: s
|
|
24582
24582
|
}), c = nd({
|
|
24583
24583
|
ref: a
|
|
@@ -25423,7 +25423,7 @@ function Bde({ children: t, sidebar: e, banner: n, ai: i, aiPromotion: r }) {
|
|
|
25423
25423
|
});
|
|
25424
25424
|
}
|
|
25425
25425
|
const Nq = ({ contentId: t }) => {
|
|
25426
|
-
const e =
|
|
25426
|
+
const e = Be();
|
|
25427
25427
|
return d("a", {
|
|
25428
25428
|
href: `#${t}`,
|
|
25429
25429
|
className: bt("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"),
|
|
@@ -25530,7 +25530,7 @@ const c0 = {
|
|
|
25530
25530
|
positive: "mood-positive",
|
|
25531
25531
|
superPositive: "mood-super-positive"
|
|
25532
25532
|
}, rb = ({ firstName: t, lastName: e, src: n, "aria-label": i, "aria-labelledby": r, pulse: o, onPulseClick: s }) => {
|
|
25533
|
-
const a =
|
|
25533
|
+
const a = Be(), [l, c] = V(!o);
|
|
25534
25534
|
return d("div", {
|
|
25535
25535
|
className: "relative h-10 w-10",
|
|
25536
25536
|
children: d(Ye, {
|
|
@@ -25786,7 +25786,7 @@ function Pq({ otherActions: t, open: e, setOpen: n, disabled: i }) {
|
|
|
25786
25786
|
}
|
|
25787
25787
|
function Z5({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1, isExpanded: o = !1, onToggleExpanded: s = () => {
|
|
25788
25788
|
}, dragControls: a, children: l, open: c, setOpen: f, isHovered: u, setIsHovered: h }) {
|
|
25789
|
-
const p =
|
|
25789
|
+
const p = Be(), { label: m, onClick: g, icon: y, disabled: v, otherActions: w } = t, b = w && w.length > 0 && (u || c), S = e && !b, C = i && (u || c);
|
|
25790
25790
|
return k("div", {
|
|
25791
25791
|
className: "flex w-full min-w-0 items-center",
|
|
25792
25792
|
children: [r && d(ct, {
|
|
@@ -25865,7 +25865,7 @@ function Z5({ item: t, counter: e, isActive: n, sortable: i, collapsible: r = !1
|
|
|
25865
25865
|
})
|
|
25866
25866
|
}, "icon")
|
|
25867
25867
|
})
|
|
25868
|
-
}), d(
|
|
25868
|
+
}), d(wi, {
|
|
25869
25869
|
lines: 1,
|
|
25870
25870
|
className: T("flex-grow text-[14px] font-medium text-f1-foreground transition-all", C || y ? "pl-7" : "pl-0"),
|
|
25871
25871
|
children: m
|
|
@@ -26122,7 +26122,7 @@ function Ad(t, e, n, i, r, o, s, a, l) {
|
|
|
26122
26122
|
}, t.id);
|
|
26123
26123
|
}
|
|
26124
26124
|
function Hq({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, sortable: o = !1, showSearchBox: s = !1, searchPlaceholder: a, onReorder: l, hideChildrenCounter: c = !1 }) {
|
|
26125
|
-
const f =
|
|
26125
|
+
const f = Be(), [u, h] = V(""), p = (M) => {
|
|
26126
26126
|
h(M);
|
|
26127
26127
|
}, m = de(() => Y5(e, u), [e, u]), [g, y] = V(zq(e, i)), [v, w] = V(e);
|
|
26128
26128
|
le(() => {
|
|
@@ -26161,7 +26161,7 @@ function Hq({ title: t, items: e, className: n, activeItem: i, collapsible: r =
|
|
|
26161
26161
|
value: u,
|
|
26162
26162
|
clearable: !0
|
|
26163
26163
|
})
|
|
26164
|
-
}), d(
|
|
26164
|
+
}), d(wi, {
|
|
26165
26165
|
lines: 1,
|
|
26166
26166
|
tag: "h2",
|
|
26167
26167
|
className: "text-[14px] font-medium text-f1-foreground-secondary",
|
|
@@ -26255,46 +26255,49 @@ function Wq({ companies: t, selected: e, onChange: n, isLoading: i = !1, withNot
|
|
|
26255
26255
|
company: s,
|
|
26256
26256
|
withNotification: r
|
|
26257
26257
|
})
|
|
26258
|
-
}) : d(
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26262
|
-
|
|
26263
|
-
|
|
26264
|
-
|
|
26265
|
-
|
|
26258
|
+
}) : d("div", {
|
|
26259
|
+
className: "min-w-0 flex-1",
|
|
26260
|
+
children: d(qq, {
|
|
26261
|
+
companies: t,
|
|
26262
|
+
selected: s,
|
|
26263
|
+
onChange: n,
|
|
26264
|
+
additionalOptions: o,
|
|
26265
|
+
children: d(X5, {
|
|
26266
|
+
company: s,
|
|
26267
|
+
withNotification: r
|
|
26268
|
+
})
|
|
26266
26269
|
})
|
|
26267
26270
|
});
|
|
26268
26271
|
}
|
|
26269
26272
|
const qq = ({ companies: t, selected: e, onChange: n, children: i, additionalOptions: r = [] }) => {
|
|
26270
|
-
const
|
|
26271
|
-
value:
|
|
26272
|
-
label:
|
|
26273
|
+
const o = Be(), [s, a] = V(!1), l = de(() => [...t.map((f) => ({
|
|
26274
|
+
value: f.id,
|
|
26275
|
+
label: f.name,
|
|
26273
26276
|
avatar: {
|
|
26274
26277
|
type: "company",
|
|
26275
|
-
name:
|
|
26276
|
-
src:
|
|
26277
|
-
"aria-label": `${
|
|
26278
|
+
name: f.name,
|
|
26279
|
+
src: f.logo,
|
|
26280
|
+
"aria-label": `${f.name} logo`
|
|
26278
26281
|
}
|
|
26279
26282
|
})), ...r.length ? [{
|
|
26280
26283
|
type: "separator"
|
|
26281
|
-
}] : [], ...r], [t, r]),
|
|
26282
|
-
const
|
|
26283
|
-
if (
|
|
26284
|
-
|
|
26284
|
+
}] : [], ...r], [t, r]), c = (f) => {
|
|
26285
|
+
const u = r == null ? void 0 : r.find((h) => h.value === f);
|
|
26286
|
+
if (u != null && u.onClick) {
|
|
26287
|
+
u.onClick();
|
|
26285
26288
|
return;
|
|
26286
26289
|
}
|
|
26287
|
-
n(
|
|
26290
|
+
n(f);
|
|
26288
26291
|
};
|
|
26289
26292
|
return d(ks, {
|
|
26290
|
-
label:
|
|
26293
|
+
label: o.navigation.sidebar.companySelector.label,
|
|
26291
26294
|
hideLabel: !0,
|
|
26292
|
-
options:
|
|
26295
|
+
options: l,
|
|
26293
26296
|
value: e.id,
|
|
26294
|
-
onChange:
|
|
26295
|
-
placeholder:
|
|
26296
|
-
open:
|
|
26297
|
-
onOpenChange:
|
|
26297
|
+
onChange: c,
|
|
26298
|
+
placeholder: o.navigation.sidebar.companySelector.placeholder,
|
|
26299
|
+
open: s,
|
|
26300
|
+
onOpenChange: a,
|
|
26298
26301
|
children: k("div", {
|
|
26299
26302
|
className: T("group flex w-fit max-w-full flex-nowrap items-center justify-center gap-1 rounded p-1.5 text-f1-foreground transition-colors hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover", bt()),
|
|
26300
26303
|
tabIndex: 0,
|
|
@@ -26305,7 +26308,7 @@ const qq = ({ companies: t, selected: e, onChange: n, children: i, additionalOpt
|
|
|
26305
26308
|
className: "flex h-3 w-3 items-center justify-center rounded-2xs bg-f1-background-secondary transition-all",
|
|
26306
26309
|
children: d(ne.div, {
|
|
26307
26310
|
animate: {
|
|
26308
|
-
rotate:
|
|
26311
|
+
rotate: s ? 180 : 0
|
|
26309
26312
|
},
|
|
26310
26313
|
transition: {
|
|
26311
26314
|
duration: 0.2
|
|
@@ -26323,7 +26326,7 @@ const qq = ({ companies: t, selected: e, onChange: n, children: i, additionalOpt
|
|
|
26323
26326
|
}, X5 = ({ company: t, withNotification: e = !1 }) => {
|
|
26324
26327
|
var n;
|
|
26325
26328
|
return k("div", {
|
|
26326
|
-
className: T("flex
|
|
26329
|
+
className: T("flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden rounded text-lg font-semibold text-f1-foreground transition-colors"),
|
|
26327
26330
|
children: [d($8, {
|
|
26328
26331
|
name: (n = t == null ? void 0 : t.name) == null ? void 0 : n[0],
|
|
26329
26332
|
src: t == null ? void 0 : t.logo,
|
|
@@ -26332,17 +26335,14 @@ const qq = ({ companies: t, selected: e, onChange: n, children: i, additionalOpt
|
|
|
26332
26335
|
icon: tm,
|
|
26333
26336
|
type: "highlight"
|
|
26334
26337
|
} : void 0
|
|
26335
|
-
}), d(
|
|
26336
|
-
|
|
26337
|
-
children:
|
|
26338
|
-
className: "line-clamp-1",
|
|
26339
|
-
children: t == null ? void 0 : t.name
|
|
26340
|
-
})
|
|
26338
|
+
}), d(wi, {
|
|
26339
|
+
tag: "span",
|
|
26340
|
+
children: (t == null ? void 0 : t.name) ?? ""
|
|
26341
26341
|
})]
|
|
26342
26342
|
});
|
|
26343
26343
|
};
|
|
26344
26344
|
function Hde({ user: t, options: e, showActivityButton: n = !1, activityButtonShortcut: i, onActivityButtonClick: r, onDropdownClick: o, hasActivityUpdates: s }) {
|
|
26345
|
-
const a =
|
|
26345
|
+
const a = Be();
|
|
26346
26346
|
return k("div", {
|
|
26347
26347
|
className: "flex flex-row items-center justify-between gap-1 p-3",
|
|
26348
26348
|
children: [d("div", {
|
|
@@ -26357,7 +26357,7 @@ function Hde({ user: t, options: e, showActivityButton: n = !1, activityButtonSh
|
|
|
26357
26357
|
firstName: t.firstName,
|
|
26358
26358
|
lastName: t.lastName,
|
|
26359
26359
|
size: "xs"
|
|
26360
|
-
}), d(
|
|
26360
|
+
}), d(wi, {
|
|
26361
26361
|
children: `${t.firstName} ${t.lastName}`
|
|
26362
26362
|
})]
|
|
26363
26363
|
})
|
|
@@ -26450,13 +26450,14 @@ function Gq() {
|
|
|
26450
26450
|
})]
|
|
26451
26451
|
});
|
|
26452
26452
|
}
|
|
26453
|
-
function Vde({ companies: t, selected: e, onChange: n, withNotification: i = !1, additionalOptions: r }) {
|
|
26453
|
+
function Vde({ companies: t, selected: e, onChange: n, withNotification: i = !1, additionalOptions: r, isLoading: o = !1 }) {
|
|
26454
26454
|
return k("div", {
|
|
26455
|
-
className: "flex h-[72px] items-center justify-between gap-3 px-3",
|
|
26455
|
+
className: "flex h-[72px] w-full flex-1 items-center justify-between gap-3 px-3",
|
|
26456
26456
|
children: [d(Wq, {
|
|
26457
26457
|
companies: t,
|
|
26458
26458
|
selected: e,
|
|
26459
26459
|
onChange: n,
|
|
26460
|
+
isLoading: o,
|
|
26460
26461
|
withNotification: i,
|
|
26461
26462
|
additionalOptions: r
|
|
26462
26463
|
}), d(Gq, {})]
|
|
@@ -26516,7 +26517,7 @@ const Jq = ({ item: t, active: e }) => k("div", {
|
|
|
26516
26517
|
})
|
|
26517
26518
|
});
|
|
26518
26519
|
}, Xq = ({ item: t, tooltip: e, dragConstraints: n, onRemove: i, index: r, total: o, onMove: s, onReorderFinish: a, isSortable: l = !0 }) => {
|
|
26519
|
-
const c =
|
|
26520
|
+
const c = Be(), { isDragging: f, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = c2(), { isActive: m } = Ff(), g = m(t.href, {
|
|
26520
26521
|
exact: t.exactMatch
|
|
26521
26522
|
}), y = fe(!1), [v, w] = V(!1), x = r === 0, b = r === o - 1, S = o === 1, C = de(() => {
|
|
26522
26523
|
const E = [];
|
|
@@ -26560,7 +26561,7 @@ const Jq = ({ item: t, active: e }) => k("div", {
|
|
|
26560
26561
|
}) : t.avatar ? d($f, {
|
|
26561
26562
|
size: "xs",
|
|
26562
26563
|
avatar: t.avatar
|
|
26563
|
-
}) : null, d(
|
|
26564
|
+
}) : null, d(wi, {
|
|
26564
26565
|
tag: "span",
|
|
26565
26566
|
className: "line-clamp-1 font-medium text-f1-foreground",
|
|
26566
26567
|
lines: 1,
|
|
@@ -26757,7 +26758,7 @@ function jde({ tree: t, onCollapse: e, onSort: n, onFavoritesChange: i, favorite
|
|
|
26757
26758
|
});
|
|
26758
26759
|
}
|
|
26759
26760
|
function Qq({ nonSortableItems: t, sortableItems: e, setSortableItems: n, containerRef: i, onCollapse: r, onDragEnd: o, favorites: s = [], onFavoritesChange: a, forceUpdate: l, disableDragging: c = !1 }) {
|
|
26760
|
-
const f =
|
|
26761
|
+
const f = Be(), { isDragging: u } = c2(), h = t.some((R) => R.isRoot), p = t.filter((R) => !R.isRoot).length > 0, m = e.length > 0, g = fe(null), [y, v] = V(s), w = s.length > 0;
|
|
26761
26762
|
le(() => {
|
|
26762
26763
|
JSON.stringify(s) !== JSON.stringify(y) && v(s);
|
|
26763
26764
|
}, [s]);
|
|
@@ -26902,7 +26903,7 @@ function qde({ header: t, body: e, footer: n, onFooterDropdownClick: i }) {
|
|
|
26902
26903
|
threshold: 1
|
|
26903
26904
|
}), [c, f] = Lh({
|
|
26904
26905
|
threshold: 1
|
|
26905
|
-
}), u =
|
|
26906
|
+
}), u = Be(), h = {
|
|
26906
26907
|
x: {
|
|
26907
26908
|
ease: r !== "locked" ? o ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
|
|
26908
26909
|
duration: s ? 0 : r !== "locked" && !o ? 0.3 : 0.2
|
|
@@ -26921,7 +26922,7 @@ function qde({ header: t, body: e, footer: n, onFooterDropdownClick: i }) {
|
|
|
26921
26922
|
}) : n : null;
|
|
26922
26923
|
return k(ne.aside, {
|
|
26923
26924
|
initial: !1,
|
|
26924
|
-
"aria-label": u.navigation.sidebar,
|
|
26925
|
+
"aria-label": u.navigation.sidebar.label,
|
|
26925
26926
|
className: T("absolute bottom-0 left-0 top-0 z-10 flex w-[var(--ds-sidebar-width)] flex-col transition-[background-color]", r === "locked" ? "h-full" : T("shadow-lg ring-1 ring-f1-border-secondary backdrop-blur-2xl", o ? "h-full border-y-transparent border-l-transparent bg-f1-background/90" : "h-[calc(100%-16px)] bg-f1-background/60")),
|
|
26926
26927
|
animate: {
|
|
26927
26928
|
top: r === "locked" || o ? 0 : "8px",
|
|
@@ -27066,7 +27067,7 @@ function tg(t) {
|
|
|
27066
27067
|
return oU[t ?? "neutral"] ?? 0;
|
|
27067
27068
|
}
|
|
27068
27069
|
const aU = ({ title: t, approvalsRequired: e = 1, status: n, approvers: i }) => {
|
|
27069
|
-
const r =
|
|
27070
|
+
const r = Be(), o = e === 1 ? r.approvals.requiredNumbers.one : r.approvals.requiredNumbers.other.replace("{{count}}", e.toString()), s = r.approvals.statuses[n], a = de(() => i.map((l) => {
|
|
27070
27071
|
const c = sU(l.status);
|
|
27071
27072
|
return {
|
|
27072
27073
|
firstName: l.firstName,
|
|
@@ -27105,7 +27106,7 @@ const aU = ({ title: t, approvalsRequired: e = 1, status: n, approvers: i }) =>
|
|
|
27105
27106
|
})]
|
|
27106
27107
|
});
|
|
27107
27108
|
}, Gde = ({ steps: t }) => {
|
|
27108
|
-
const n =
|
|
27109
|
+
const n = Be().approvals.history, i = t.findIndex((r) => r.status === "pending");
|
|
27109
27110
|
return k("div", {
|
|
27110
27111
|
className: "flex w-full flex-col gap-4",
|
|
27111
27112
|
children: [d("h2", {
|
|
@@ -27194,7 +27195,7 @@ const cU = (t) => Array.isArray(t) ? t.every((e) => lU(e)) ? t : [{
|
|
|
27194
27195
|
children: t
|
|
27195
27196
|
})]
|
|
27196
27197
|
}), dU = ({ isOpen: t, secondaryActions: e = [], selectedNumber: n = void 0, onUnselect: i, warningMessage: r, ...o }) => {
|
|
27197
|
-
const s =
|
|
27198
|
+
const s = Be(), a = n === 1 ? s.status.selected.singular : s.status.selected.plural, l = e.slice(0, 2), c = e.slice(2).map((m) => ({
|
|
27198
27199
|
...m,
|
|
27199
27200
|
critical: m.critical || !1
|
|
27200
27201
|
})), f = de(() => cU(o.primaryActions ?? []), [o.primaryActions]), u = de(() => f.map((m) => ({
|
|
@@ -27370,7 +27371,7 @@ const cU = (t) => Array.isArray(t) ? t.every((e) => lU(e)) ? t : [{
|
|
|
27370
27371
|
icon: Df,
|
|
27371
27372
|
className: "text"
|
|
27372
27373
|
}), vU = ({ value: t, onChange: e, loading: n = !1 }) => {
|
|
27373
|
-
const [i, r] = V(!1), o = Kr(), s = fe(null), a = fe(null), l =
|
|
27374
|
+
const [i, r] = V(!1), o = Kr(), s = fe(null), a = fe(null), l = Be(), c = () => {
|
|
27374
27375
|
e(void 0), r(!1), a != null && a.current && (a.current.value = "");
|
|
27375
27376
|
};
|
|
27376
27377
|
oL(s, () => {
|
|
@@ -27506,7 +27507,7 @@ const cU = (t) => Array.isArray(t) ? t.every((e) => lU(e)) ? t : [{
|
|
|
27506
27507
|
})
|
|
27507
27508
|
});
|
|
27508
27509
|
}, kU = (t = {}, e) => {
|
|
27509
|
-
const n =
|
|
27510
|
+
const n = Be(), i = {
|
|
27510
27511
|
"no-data": {
|
|
27511
27512
|
emoji: "📄",
|
|
27512
27513
|
title: n.collections.emptyStates.noData.title,
|
|
@@ -27693,7 +27694,7 @@ function wU({ totalPages: t, currentPage: e = 1, onPageChange: n, showControls:
|
|
|
27693
27694
|
});
|
|
27694
27695
|
}
|
|
27695
27696
|
const d2 = ({ paginationInfo: t, setPage: e, className: n }) => {
|
|
27696
|
-
const i =
|
|
27697
|
+
const i = Be();
|
|
27697
27698
|
return aL(t) && k("div", {
|
|
27698
27699
|
className: T("flex w-full items-center justify-between px-4", n),
|
|
27699
27700
|
children: [d("span", {
|
|
@@ -28433,11 +28434,11 @@ function JU({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
28433
28434
|
if (ke) {
|
|
28434
28435
|
const z = ke.getBoundingClientRect(), K = (be = D.current.input) == null ? void 0 : be.clientY, pe = (De = D.current.input) == null ? void 0 : De.clientX;
|
|
28435
28436
|
if (typeof K == "number" && typeof pe == "number") {
|
|
28436
|
-
const X = z.top + z.height / 2,
|
|
28437
|
+
const X = z.top + z.height / 2, $e = K - X, et = 24, ze = 300, Ue = z.height / 2;
|
|
28437
28438
|
let vt = 0;
|
|
28438
|
-
if (Math.abs(
|
|
28439
|
-
const F = Math.min(Math.abs(
|
|
28440
|
-
vt = Math.sign(
|
|
28439
|
+
if (Math.abs($e) > et) {
|
|
28440
|
+
const F = Math.min(Math.abs($e) - et, Ue) / Ue;
|
|
28441
|
+
vt = Math.sign($e) * ze * F;
|
|
28441
28442
|
}
|
|
28442
28443
|
if (g.current = vt, P(), D.current.dropTargets.some((kt) => kt.data.type === "list-card-target"))
|
|
28443
28444
|
(x !== null || S !== null) && (b(null), C(null));
|
|
@@ -28737,7 +28738,7 @@ function sg(t) {
|
|
|
28737
28738
|
return I && c((be) => {
|
|
28738
28739
|
const De = be.map((z) => {
|
|
28739
28740
|
if (z.id !== L) return z;
|
|
28740
|
-
const K = [...z.items], pe = K.findIndex((X,
|
|
28741
|
+
const K = [...z.items], pe = K.findIndex((X, $e) => String(i(X, $e, L)) === String(M));
|
|
28741
28742
|
return pe !== -1 && K.splice(pe, 1, I), {
|
|
28742
28743
|
...z,
|
|
28743
28744
|
items: K
|
|
@@ -29057,7 +29058,7 @@ const YU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29057
29058
|
className: "flex flex-1 flex-col gap-0.5",
|
|
29058
29059
|
children: [d("header", {
|
|
29059
29060
|
children: d("h3", {
|
|
29060
|
-
children: d(
|
|
29061
|
+
children: d(wi, {
|
|
29061
29062
|
className: "text-base font-medium text-f1-foreground",
|
|
29062
29063
|
children: t
|
|
29063
29064
|
})
|
|
@@ -29067,7 +29068,7 @@ const YU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29067
29068
|
className: "flex w-full flex-col text-base font-normal text-f1-foreground-secondary md:flex-row md:gap-1",
|
|
29068
29069
|
children: n.map((i, r) => k("div", {
|
|
29069
29070
|
className: "flex min-w-0 gap-1",
|
|
29070
|
-
children: [d(
|
|
29071
|
+
children: [d(wi, {
|
|
29071
29072
|
children: i
|
|
29072
29073
|
}), r < n.length - 1 && d("span", {
|
|
29073
29074
|
className: "hidden md:inline",
|
|
@@ -29078,7 +29079,7 @@ const YU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29078
29079
|
})]
|
|
29079
29080
|
})]
|
|
29080
29081
|
}), tG = ({ source: t, item: e, selectedItems: n, handleSelectItemChange: i, fields: r, itemDefinition: o }) => {
|
|
29081
|
-
const s = (v, w) => bb(v, w, "list"), { actions: a } =
|
|
29082
|
+
const s = (v, w) => bb(v, w, "list"), { actions: a } = Be(), l = t.itemUrl ? t.itemUrl(e) : void 0, c = t.itemOnClick ? t.itemOnClick(e) : void 0, f = t.selectable ? t.selectable(e) : void 0, u = o(e), { primaryItemActions: h, dropdownItemActions: p, mobileDropdownItemActions: m, handleDropDownOpenChange: g, dropDownOpen: y } = kb({
|
|
29082
29083
|
source: t,
|
|
29083
29084
|
item: e
|
|
29084
29085
|
});
|
|
@@ -29451,7 +29452,7 @@ const YU = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMove
|
|
|
29451
29452
|
})
|
|
29452
29453
|
}), d("span", {
|
|
29453
29454
|
className: T("flex-1", t.sortable ? "text-f1-foreground" : "text-f1-foreground-secondary"),
|
|
29454
|
-
children: d(
|
|
29455
|
+
children: d(wi, {
|
|
29455
29456
|
children: t.label
|
|
29456
29457
|
})
|
|
29457
29458
|
}), i && d(q8, {
|
|
@@ -29596,8 +29597,8 @@ const hG = {
|
|
|
29596
29597
|
auto: void 0,
|
|
29597
29598
|
fit: 1
|
|
29598
29599
|
}, pG = (t) => typeof t == "number", Tb = (t) => pG(t) ? t : hG[t];
|
|
29599
|
-
function
|
|
29600
|
-
const { isScrolled: l, isScrolledRight: c } = Nb(), { actions: f } =
|
|
29600
|
+
function Ti({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r = !1, sticky: o, colSpan: s, className: a }) {
|
|
29601
|
+
const { isScrolled: l, isScrolledRight: c } = Nb(), { actions: f } = Be(), u = (o == null ? void 0 : o.left) !== void 0, h = (o == null ? void 0 : o.right) !== void 0, p = u || h, m = o == null ? void 0 : o.left, g = o == null ? void 0 : o.right, y = Tb(i), v = fe(null);
|
|
29601
29602
|
return k(Mb, {
|
|
29602
29603
|
colSpan: s,
|
|
29603
29604
|
className: T(r && "peer font-medium", p && l && "bg-f1-background before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:bg-f1-background before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-[''] group-hover:before:bg-f1-background-hover", p && "sticky z-10", h && "bg-f1-background before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:bg-f1-background before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-[''] group-hover:before:bg-f1-background-hover", e && "cursor-pointer", a),
|
|
@@ -29856,7 +29857,7 @@ function gG({ columns: t = 5 }) {
|
|
|
29856
29857
|
}).map((e, n) => d(Ar, {
|
|
29857
29858
|
children: Array.from({
|
|
29858
29859
|
length: t
|
|
29859
|
-
}).map((i, r) => d(
|
|
29860
|
+
}).map((i, r) => d(Ti, {
|
|
29860
29861
|
children: d(Q, {
|
|
29861
29862
|
className: "h-4 w-[80px]"
|
|
29862
29863
|
})
|
|
@@ -29895,7 +29896,7 @@ const Ib = (t, e, n) => {
|
|
|
29895
29896
|
return k(Ar, {
|
|
29896
29897
|
ref: c,
|
|
29897
29898
|
className: T("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-['']"),
|
|
29898
|
-
children: [t.selectable && d(
|
|
29899
|
+
children: [t.selectable && d(Ti, {
|
|
29899
29900
|
width: s,
|
|
29900
29901
|
sticky: {
|
|
29901
29902
|
left: 0
|
|
@@ -29909,7 +29910,7 @@ const Ib = (t, e, n) => {
|
|
|
29909
29910
|
hideLabel: !0
|
|
29910
29911
|
})
|
|
29911
29912
|
})
|
|
29912
|
-
}), r.map((S, C) => d(
|
|
29913
|
+
}), r.map((S, C) => d(Ti, {
|
|
29913
29914
|
firstCell: C === 0,
|
|
29914
29915
|
href: f,
|
|
29915
29916
|
onClick: u,
|
|
@@ -29930,7 +29931,7 @@ const Ib = (t, e, n) => {
|
|
|
29930
29931
|
handleDropDownOpenChange: x
|
|
29931
29932
|
})
|
|
29932
29933
|
})
|
|
29933
|
-
}), d(
|
|
29934
|
+
}), d(Ti, {
|
|
29934
29935
|
width: 68,
|
|
29935
29936
|
sticky: {
|
|
29936
29937
|
right: 0
|
|
@@ -29946,7 +29947,7 @@ const Ib = (t, e, n) => {
|
|
|
29946
29947
|
}, m);
|
|
29947
29948
|
}, fg = O(vG), kG = ({ columns: t, source: e, frozenColumns: n = 0, onSelectItems: i, onLoadData: r, onLoadError: o, allowColumnHiding: s, allowColumnReordering: a }) => {
|
|
29948
29949
|
var be, De, ke;
|
|
29949
|
-
const l =
|
|
29950
|
+
const l = Be(), [c] = V(() => ne.create(fg)), { settings: f } = p1(), { columns: u } = xb(t, n, (be = f.visualization) == null ? void 0 : be.table, a, s), { data: h, paginationInfo: p, setPage: m, isInitialLoading: g, isLoadingMore: y, loadMore: v, summaries: w } = u1(e, {
|
|
29950
29951
|
onError: (z) => {
|
|
29951
29952
|
o(z);
|
|
29952
29953
|
}
|
|
@@ -30036,7 +30037,7 @@ const Ib = (t, e, n) => {
|
|
|
30036
30037
|
return k(Hr, {
|
|
30037
30038
|
children: [k(Ar, {
|
|
30038
30039
|
sticky: !0,
|
|
30039
|
-
children: [d(
|
|
30040
|
+
children: [d(Ti, {
|
|
30040
30041
|
sticky: {
|
|
30041
30042
|
left: 0
|
|
30042
30043
|
},
|
|
@@ -30052,28 +30053,28 @@ const Ib = (t, e, n) => {
|
|
|
30052
30053
|
open: ie[z.key],
|
|
30053
30054
|
onOpenChange: (X) => N(z.key, X)
|
|
30054
30055
|
})
|
|
30055
|
-
}), d(
|
|
30056
|
+
}), d(Ti, {
|
|
30056
30057
|
colSpan: u.length - (A || 1) + (e.selectable ? 1 : 0),
|
|
30057
30058
|
children: " "
|
|
30058
30059
|
})]
|
|
30059
30060
|
}, `group-header-${z.key}`), d(Ye, {
|
|
30060
|
-
children: c && (!U || ie[z.key]) && z.records.map((X,
|
|
30061
|
+
children: c && (!U || ie[z.key]) && z.records.map((X, $e) => d(c, {
|
|
30061
30062
|
variants: j8(),
|
|
30062
30063
|
initial: U ? "hidden" : "visible",
|
|
30063
30064
|
animate: "visible",
|
|
30064
30065
|
exit: "hidden",
|
|
30065
|
-
custom:
|
|
30066
|
+
custom: $e,
|
|
30066
30067
|
layout: !0,
|
|
30067
30068
|
source: e,
|
|
30068
30069
|
item: X,
|
|
30069
|
-
index:
|
|
30070
|
+
index: $e,
|
|
30070
30071
|
groupIndex: K,
|
|
30071
30072
|
onCheckedChange: (et) => P(X, et),
|
|
30072
30073
|
selectedItems: L,
|
|
30073
30074
|
columns: u,
|
|
30074
30075
|
frozenColumnsLeft: A,
|
|
30075
30076
|
checkColumnWidth: I
|
|
30076
|
-
}, `row-${K}-${
|
|
30077
|
+
}, `row-${K}-${$e}`))
|
|
30077
30078
|
}, `group-animate-${K}`)]
|
|
30078
30079
|
}, `group-${z.key}`);
|
|
30079
30080
|
}), (h == null ? void 0 : h.type) === "flat" && h.records.map((z, K) => d(fg, {
|
|
@@ -30091,7 +30092,7 @@ const Ib = (t, e, n) => {
|
|
|
30091
30092
|
}).map((z, K) => d(Ar, {
|
|
30092
30093
|
children: Array.from({
|
|
30093
30094
|
length: xe
|
|
30094
|
-
}).map((pe, X) => d(
|
|
30095
|
+
}).map((pe, X) => d(Ti, {
|
|
30095
30096
|
children: d(Q, {
|
|
30096
30097
|
className: "h-4 w-full"
|
|
30097
30098
|
})
|
|
@@ -30107,7 +30108,7 @@ const Ib = (t, e, n) => {
|
|
|
30107
30108
|
}), R && d(yG, {
|
|
30108
30109
|
children: k(Ar, {
|
|
30109
30110
|
className: T(R.sticky && "sticky bottom-0 z-10 bg-f1-background shadow-[0_-1px_0_0_var(--f1-border-secondary)] hover:bg-f1-background", "font-medium"),
|
|
30110
|
-
children: [e.selectable && d(
|
|
30111
|
+
children: [e.selectable && d(Ti, {
|
|
30111
30112
|
width: I,
|
|
30112
30113
|
sticky: {
|
|
30113
30114
|
left: 0
|
|
@@ -30118,7 +30119,7 @@ const Ib = (t, e, n) => {
|
|
|
30118
30119
|
})
|
|
30119
30120
|
}), u.map((z, K) => {
|
|
30120
30121
|
var pe;
|
|
30121
|
-
return d(
|
|
30122
|
+
return d(Ti, {
|
|
30122
30123
|
firstCell: K === 0,
|
|
30123
30124
|
width: z.width,
|
|
30124
30125
|
sticky: he(K),
|
|
@@ -30139,7 +30140,7 @@ const Ib = (t, e, n) => {
|
|
|
30139
30140
|
}), e.itemActions && k(Te, {
|
|
30140
30141
|
children: [d("th", {
|
|
30141
30142
|
className: "hidden md:table-cell"
|
|
30142
|
-
}), d(
|
|
30143
|
+
}), d(Ti, {
|
|
30143
30144
|
width: 68,
|
|
30144
30145
|
sticky: {
|
|
30145
30146
|
right: 0
|
|
@@ -30221,7 +30222,7 @@ const Ib = (t, e, n) => {
|
|
|
30221
30222
|
onLoadError: r
|
|
30222
30223
|
});
|
|
30223
30224
|
}, oc = "__no-sorting__", wG = ({ currentSortings: t, sortings: e, onChange: n }) => {
|
|
30224
|
-
const i =
|
|
30225
|
+
const i = Be(), r = [{
|
|
30225
30226
|
label: i.collections.sorting.noSorting,
|
|
30226
30227
|
value: oc
|
|
30227
30228
|
}, ...Object.entries(e || {}).map(([l, c]) => ({
|
|
@@ -30269,7 +30270,7 @@ const Ib = (t, e, n) => {
|
|
|
30269
30270
|
})
|
|
30270
30271
|
});
|
|
30271
30272
|
}, xG = ({ visualizations: t, currentVisualization: e, onVisualizationChange: n }) => {
|
|
30272
|
-
const i =
|
|
30273
|
+
const i = Be(), r = (s) => {
|
|
30273
30274
|
n(s);
|
|
30274
30275
|
}, o = (s) => s.type === "custom" ? {
|
|
30275
30276
|
icon: s.icon,
|
|
@@ -30312,7 +30313,7 @@ const Ib = (t, e, n) => {
|
|
|
30312
30313
|
const e = Db(t);
|
|
30313
30314
|
return e ? e(t.options) : null;
|
|
30314
30315
|
}, LG = ({ visualizations: t, currentVisualization: e, onVisualizationChange: n, grouping: i, currentGrouping: r, onGroupingChange: o, sortings: s, currentSortings: a, onSortingsChange: l }) => {
|
|
30315
|
-
const c =
|
|
30316
|
+
const c = Be(), f = i ? Object.keys(i.groupBy).length + (i.mandatory ? 1 : 0) : 0, [u, h] = V(!1), p = (L) => {
|
|
30316
30317
|
h(!1), n(L);
|
|
30317
30318
|
}, m = (L) => {
|
|
30318
30319
|
o(L);
|
|
@@ -30395,7 +30396,7 @@ const Ib = (t, e, n) => {
|
|
|
30395
30396
|
});
|
|
30396
30397
|
}, Rb = O(({ value: t, compareToValue: e, onDateChange: n, disabled: i, error: r, className: o, highlighted: s, onClick: a, navigation: l, granularity: c, hideGoToCurrent: f, ...u }, h) => {
|
|
30397
30398
|
var A;
|
|
30398
|
-
const p =
|
|
30399
|
+
const p = Be(), m = de(() => {
|
|
30399
30400
|
if (!t || !t.value)
|
|
30400
30401
|
return [p.date.selectDate];
|
|
30401
30402
|
const L = qp[t.granularity];
|
|
@@ -30518,7 +30519,7 @@ function EG({ onSelect: t, defaultValue: e, presets: n = [], granularities: i =
|
|
|
30518
30519
|
});
|
|
30519
30520
|
}
|
|
30520
30521
|
function MG({ filter: t, value: e, onChange: n }) {
|
|
30521
|
-
const i =
|
|
30522
|
+
const i = Be(), r = {
|
|
30522
30523
|
granularity: "day",
|
|
30523
30524
|
...t
|
|
30524
30525
|
}, o = Array.isArray(r.granularity) ? r.granularity : [r.granularity], s = CL(e.granularity || o[0]);
|
|
@@ -30675,20 +30676,20 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30675
30676
|
U(P);
|
|
30676
30677
|
}, [U, P]);
|
|
30677
30678
|
const te = de(() => fU(S), [S]), ie = de(() => gU(mU(C)), [C]), N = de(() => Math.min(C && "expanded" in C && C.expanded || 0, uU), [C]), xe = de(() => {
|
|
30678
|
-
var
|
|
30679
|
-
return ((
|
|
30679
|
+
var He;
|
|
30680
|
+
return ((He = ie[0]) == null ? void 0 : He.items.slice(0, N)) || [];
|
|
30680
30681
|
}, [ie, N]), he = de(() => {
|
|
30681
|
-
var
|
|
30682
|
+
var He;
|
|
30682
30683
|
return [{
|
|
30683
30684
|
...ie[0],
|
|
30684
|
-
items: ((
|
|
30685
|
+
items: ((He = ie[0]) == null ? void 0 : He.items.slice(N)) || []
|
|
30685
30686
|
}, ...ie.slice(1)].filter((Mt) => Mt.items.length > 0);
|
|
30686
|
-
}, [ie, N]), I = (te == null ? void 0 : te.length) > 0 || (ie == null ? void 0 : ie.length) > 0, [be, De] = V(void 0), ke = B8(), [z, K] = V(void 0), pe = Re((
|
|
30687
|
-
if (!
|
|
30687
|
+
}, [ie, N]), I = (te == null ? void 0 : te.length) > 0 || (ie == null ? void 0 : ie.length) > 0, [be, De] = V(void 0), ke = B8(), [z, K] = V(void 0), pe = Re((He) => {
|
|
30688
|
+
if (!He)
|
|
30688
30689
|
return [];
|
|
30689
30690
|
const Mt = [];
|
|
30690
30691
|
let tt = [];
|
|
30691
|
-
for (const ln of
|
|
30692
|
+
for (const ln of He)
|
|
30692
30693
|
"type" in ln && ln.type === "separator" ? (Mt.push({
|
|
30693
30694
|
items: tt
|
|
30694
30695
|
}), tt = []) : tt.push(ln);
|
|
@@ -30701,11 +30702,11 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30701
30702
|
warningMessage: z.warningMessage
|
|
30702
30703
|
} : {
|
|
30703
30704
|
primary: pe(z.primary ?? []),
|
|
30704
|
-
secondary: ((z == null ? void 0 : z.secondary) ?? []).filter((
|
|
30705
|
+
secondary: ((z == null ? void 0 : z.secondary) ?? []).filter((He) => !("type" in He && He.type === "separator"))
|
|
30705
30706
|
};
|
|
30706
|
-
}, [z, pe]), [
|
|
30707
|
-
n == null || n(
|
|
30708
|
-
const tt = t.bulkActions ? t.bulkActions(
|
|
30707
|
+
}, [z, pe]), [$e, et] = V(!1), [ze, Ue] = V(0), vt = Be(), xt = de(() => A === !0 ? (He) => He !== void 0 ? `${He} ${vt.collections.itemsCount}` : null : A || void 0, [A, vt]), kt = (He, Mt) => {
|
|
30708
|
+
n == null || n(He, Mt), et(!!He.allSelected || He.itemsStatus.some((Fn) => Fn.checked)), Ue(He.selectedCount), De(() => Mt);
|
|
30709
|
+
const tt = t.bulkActions ? t.bulkActions(He) : void 0, ln = (Fn) => {
|
|
30709
30710
|
if ("type" in Fn && Fn.type === "separator")
|
|
30710
30711
|
return {
|
|
30711
30712
|
type: "separator"
|
|
@@ -30714,7 +30715,7 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30714
30715
|
return {
|
|
30715
30716
|
...Gn,
|
|
30716
30717
|
onClick: () => {
|
|
30717
|
-
i == null || i(Gn.id,
|
|
30718
|
+
i == null || i(Gn.id, He, Mt), Gn.keepSelection || Mt();
|
|
30718
30719
|
}
|
|
30719
30720
|
};
|
|
30720
30721
|
};
|
|
@@ -30733,10 +30734,10 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30733
30734
|
clearFilters: () => {
|
|
30734
30735
|
ve(!1), u({}), x(void 0);
|
|
30735
30736
|
}
|
|
30736
|
-
}), Ie = (
|
|
30737
|
-
tt || (se(tt), $(
|
|
30738
|
-
}, Z = (
|
|
30739
|
-
ve("error",
|
|
30737
|
+
}), Ie = (He, Mt, tt) => He === 0 ? Object.keys(Mt).length > 0 || tt ? "no-results" : "no-data" : !1, j = ({ totalItems: He, filters: Mt, isInitialLoading: tt, search: ln }) => {
|
|
30738
|
+
tt || (se(tt), $(He), ve(Ie(He, Mt, ln)));
|
|
30739
|
+
}, Z = (He) => {
|
|
30740
|
+
ve("error", He.cause instanceof Error ? He.cause.message : He.message);
|
|
30740
30741
|
}, Se = u0({
|
|
30741
30742
|
value: !!p,
|
|
30742
30743
|
delay: 100
|
|
@@ -30790,8 +30791,8 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30790
30791
|
}, [f, w, m, P, R, L, Et]);
|
|
30791
30792
|
const ye = de(() => {
|
|
30792
30793
|
var ln, Fn;
|
|
30793
|
-
const
|
|
30794
|
-
return e && e.length > 1 ||
|
|
30794
|
+
const He = _ ? Object.keys(_.groupBy).length + (_.mandatory ? 1 : 0) : 0, Mt = Object.values(e).find((Gn) => Gn.type === "table"), tt = !!Mt && (!!((ln = Mt.options) != null && ln.allowColumnHiding) || !!((Fn = Mt.options) != null && Fn.allowColumnReordering));
|
|
30795
|
+
return e && e.length > 1 || He > 0 && !(_ != null && _.hideSelector) || D && Object.keys(D).length > 0 || tt;
|
|
30795
30796
|
}, [e, _, D]), we = de(() => ce || I || ye || v && v.enabled, [ce, I, ye, v]), Fe = de(() => Pe ? c ? "top" : "bottom" : !1, [c, Pe]), Oe = de(() => g ? we ? "top" : "bottom" : !1, [g, we]), Wt = de(() => Fe === "top" || Oe === "top", [Fe, Oe]), yn = de(() => c || we || Oe === "bottom" || Fe === "bottom", [c, we, Oe, Fe]);
|
|
30796
30797
|
return k("div", {
|
|
30797
30798
|
className: T("flex flex-col gap-4", ke === "standard" && "-mx-6", s && "h-full flex-1"),
|
|
@@ -30823,7 +30824,7 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30823
30824
|
value: f,
|
|
30824
30825
|
presets: h,
|
|
30825
30826
|
presetsLoading: Se,
|
|
30826
|
-
onChange: (
|
|
30827
|
+
onChange: (He) => u(He),
|
|
30827
30828
|
children: [b && d(ne.div, {
|
|
30828
30829
|
className: "flex h-8 w-8 items-center justify-center",
|
|
30829
30830
|
initial: {
|
|
@@ -30885,8 +30886,8 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30885
30886
|
})
|
|
30886
30887
|
}) : d(Te, {
|
|
30887
30888
|
children: z && d(dU, {
|
|
30888
|
-
isOpen:
|
|
30889
|
-
selectedNumber:
|
|
30889
|
+
isOpen: $e,
|
|
30890
|
+
selectedNumber: ze,
|
|
30890
30891
|
primaryActions: X && "primary" in X ? X.primary : [],
|
|
30891
30892
|
secondaryActions: X && "secondary" in X ? X.secondary : [],
|
|
30892
30893
|
warningMessage: "warningMessage" in z ? z.warningMessage : void 0,
|
|
@@ -30899,7 +30900,7 @@ const NG = (t) => "date" in t, AG = {
|
|
|
30899
30900
|
...t
|
|
30900
30901
|
})
|
|
30901
30902
|
}), Kde = qs("OneDataCollection", FG), Zde = (t, e = []) => {
|
|
30902
|
-
const n =
|
|
30903
|
+
const n = Be(), {
|
|
30903
30904
|
navigationFilters: i,
|
|
30904
30905
|
summaries: r,
|
|
30905
30906
|
currentNavigationFilters: o
|
|
@@ -34186,7 +34187,7 @@ class Tr extends an {
|
|
|
34186
34187
|
return It.fromReplace(e, this.from, this.to, o);
|
|
34187
34188
|
}
|
|
34188
34189
|
invert() {
|
|
34189
|
-
return new
|
|
34190
|
+
return new Ri(this.from, this.to, this.mark);
|
|
34190
34191
|
}
|
|
34191
34192
|
map(e) {
|
|
34192
34193
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
@@ -34213,7 +34214,7 @@ class Tr extends an {
|
|
|
34213
34214
|
}
|
|
34214
34215
|
}
|
|
34215
34216
|
an.jsonID("addMark", Tr);
|
|
34216
|
-
class
|
|
34217
|
+
class Ri extends an {
|
|
34217
34218
|
/**
|
|
34218
34219
|
Create a mark-removing step.
|
|
34219
34220
|
*/
|
|
@@ -34229,10 +34230,10 @@ class Di extends an {
|
|
|
34229
34230
|
}
|
|
34230
34231
|
map(e) {
|
|
34231
34232
|
let n = e.mapResult(this.from, 1), i = e.mapResult(this.to, -1);
|
|
34232
|
-
return n.deleted && i.deleted || n.pos >= i.pos ? null : new
|
|
34233
|
+
return n.deleted && i.deleted || n.pos >= i.pos ? null : new Ri(n.pos, i.pos, this.mark);
|
|
34233
34234
|
}
|
|
34234
34235
|
merge(e) {
|
|
34235
|
-
return e instanceof
|
|
34236
|
+
return e instanceof Ri && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Ri(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
34236
34237
|
}
|
|
34237
34238
|
toJSON() {
|
|
34238
34239
|
return {
|
|
@@ -34248,10 +34249,10 @@ class Di extends an {
|
|
|
34248
34249
|
static fromJSON(e, n) {
|
|
34249
34250
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
34250
34251
|
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
34251
|
-
return new
|
|
34252
|
+
return new Ri(n.from, n.to, e.markFromJSON(n.mark));
|
|
34252
34253
|
}
|
|
34253
34254
|
}
|
|
34254
|
-
an.jsonID("removeMark",
|
|
34255
|
+
an.jsonID("removeMark", Ri);
|
|
34255
34256
|
class Or extends an {
|
|
34256
34257
|
/**
|
|
34257
34258
|
Create a node mark step.
|
|
@@ -34464,7 +34465,7 @@ function lK(t, e, n, i) {
|
|
|
34464
34465
|
if (!i.isInSet(u) && f.type.allowsMarkType(i.type)) {
|
|
34465
34466
|
let h = Math.max(c, e), p = Math.min(c + l.nodeSize, n), m = i.addToSet(u);
|
|
34466
34467
|
for (let g = 0; g < u.length; g++)
|
|
34467
|
-
u[g].isInSet(m) || (s && s.to == h && s.mark.eq(u[g]) ? s.to = p : r.push(s = new
|
|
34468
|
+
u[g].isInSet(m) || (s && s.to == h && s.mark.eq(u[g]) ? s.to = p : r.push(s = new Ri(h, p, u[g])));
|
|
34468
34469
|
a && a.to == h ? a.to = p : o.push(a = new Tr(h, p, i));
|
|
34469
34470
|
}
|
|
34470
34471
|
}), r.forEach((l) => t.step(l)), o.forEach((l) => t.step(l));
|
|
@@ -34492,7 +34493,7 @@ function cK(t, e, n, i) {
|
|
|
34492
34493
|
h ? (h.to = c, h.step = o) : r.push({ style: u, from: Math.max(a, e), to: c, step: o });
|
|
34493
34494
|
}
|
|
34494
34495
|
}
|
|
34495
|
-
}), r.forEach((s) => t.step(new
|
|
34496
|
+
}), r.forEach((s) => t.step(new Ri(s.from, s.to, s.style)));
|
|
34496
34497
|
}
|
|
34497
34498
|
function m2(t, e, n, i = n.contentMatch, r = !0) {
|
|
34498
34499
|
let o = t.doc.nodeAt(e), s = [], a = e + 1;
|
|
@@ -34503,7 +34504,7 @@ function m2(t, e, n, i = n.contentMatch, r = !0) {
|
|
|
34503
34504
|
else {
|
|
34504
34505
|
i = u;
|
|
34505
34506
|
for (let h = 0; h < c.marks.length; h++)
|
|
34506
|
-
n.allowsMarkType(c.marks[h].type) || t.step(new
|
|
34507
|
+
n.allowsMarkType(c.marks[h].type) || t.step(new Ri(a, f, c.marks[h]));
|
|
34507
34508
|
if (r && c.isText && n.whitespace != "pre") {
|
|
34508
34509
|
let h, p = /\r?\n|\r/g, m;
|
|
34509
34510
|
for (; h = p.exec(c.text); )
|
|
@@ -36244,8 +36245,8 @@ function PK(t, e, n) {
|
|
|
36244
36245
|
return { node: i.startContainer, offset: Math.min(ni(i.startContainer), i.startOffset) };
|
|
36245
36246
|
}
|
|
36246
36247
|
}
|
|
36247
|
-
const zi = typeof navigator < "u" ? navigator : null, Fg = typeof document < "u" ? document : null, Xr = zi && zi.userAgent || "", w0 = /Edge\/(\d+)/.exec(Xr), vw = /MSIE \d/.exec(Xr), x0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xr), _n = !!(vw || x0 || w0), Pr = vw ? document.documentMode : x0 ? +x0[1] : w0 ? +w0[1] : 0,
|
|
36248
|
-
|
|
36248
|
+
const zi = typeof navigator < "u" ? navigator : null, Fg = typeof document < "u" ? document : null, Xr = zi && zi.userAgent || "", w0 = /Edge\/(\d+)/.exec(Xr), vw = /MSIE \d/.exec(Xr), x0 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xr), _n = !!(vw || x0 || w0), Pr = vw ? document.documentMode : x0 ? +x0[1] : w0 ? +w0[1] : 0, xi = !_n && /gecko\/(\d+)/i.test(Xr);
|
|
36249
|
+
xi && +(/Firefox\/(\d+)/.exec(Xr) || [0, 0])[1];
|
|
36249
36250
|
const C0 = !_n && /Chrome\/(\d+)/.exec(Xr), tn = !!C0, kw = C0 ? +C0[1] : 0, hn = !_n && !!zi && /Apple Computer/.test(zi.vendor), Ms = hn && (/Mobile\/\w+/.test(Xr) || !!zi && zi.maxTouchPoints > 2), ei = Ms || (zi ? /Mac/.test(zi.platform) : !1), BK = zi ? /Win/.test(zi.platform) : !1, or = /Android \d/.test(Xr), Bl = !!Fg && "webkitFontSmoothing" in Fg.documentElement.style, $K = Bl ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
36250
36251
|
function zK(t) {
|
|
36251
36252
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
@@ -36436,7 +36437,7 @@ function ZK(t, e) {
|
|
|
36436
36437
|
for (let c = s; i && c; c = Es(c))
|
|
36437
36438
|
c.draggable && (i = void 0);
|
|
36438
36439
|
if (s = UK(s, e), i) {
|
|
36439
|
-
if (
|
|
36440
|
+
if (xi && i.nodeType == 1 && (r = Math.min(r, i.childNodes.length), r < i.childNodes.length)) {
|
|
36440
36441
|
let f = i.childNodes[r], u;
|
|
36441
36442
|
f.nodeName == "IMG" && (u = f.getBoundingClientRect()).right <= e.left && u.bottom > e.top && r++;
|
|
36442
36443
|
}
|
|
@@ -36461,11 +36462,11 @@ function wr(t, e) {
|
|
|
36461
36462
|
}
|
|
36462
36463
|
const JK = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
|
|
36463
36464
|
function _w(t, e, n) {
|
|
36464
|
-
let { node: i, offset: r, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Bl ||
|
|
36465
|
+
let { node: i, offset: r, atom: o } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Bl || xi;
|
|
36465
36466
|
if (i.nodeType == 3)
|
|
36466
36467
|
if (s && (JK.test(i.nodeValue) || (n < 0 ? !r : r == i.nodeValue.length))) {
|
|
36467
36468
|
let l = wr(er(i, r, r), n);
|
|
36468
|
-
if (
|
|
36469
|
+
if (xi && r && /\s/.test(i.nodeValue[r - 1]) && r < i.nodeValue.length) {
|
|
36469
36470
|
let c = wr(er(i, r - 1, r - 1), -1);
|
|
36470
36471
|
if (c.top == l.top) {
|
|
36471
36472
|
let f = wr(er(i, r, r + 1), -1);
|
|
@@ -36840,7 +36841,7 @@ class $l {
|
|
|
36840
36841
|
m = y;
|
|
36841
36842
|
}
|
|
36842
36843
|
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c = i.root.getSelection(), f = i.domSelectionRange(), u = !1;
|
|
36843
|
-
if ((
|
|
36844
|
+
if ((xi || hn) && e == n) {
|
|
36844
36845
|
let { node: p, offset: m } = a;
|
|
36845
36846
|
if (p.nodeType == 3) {
|
|
36846
36847
|
if (u = !!(m && p.nodeValue[m - 1] == `
|
|
@@ -36859,7 +36860,7 @@ class $l {
|
|
|
36859
36860
|
u = g && (g.nodeName == "BR" || g.contentEditable == "false");
|
|
36860
36861
|
}
|
|
36861
36862
|
}
|
|
36862
|
-
if (
|
|
36863
|
+
if (xi && f.focusNode && f.focusNode != l.node && f.focusNode.nodeType == 1) {
|
|
36863
36864
|
let p = f.focusNode.childNodes[f.focusOffset];
|
|
36864
36865
|
p && p.contentEditable == "false" && (r = !0);
|
|
36865
36866
|
}
|
|
@@ -37771,7 +37772,7 @@ function hZ(t) {
|
|
|
37771
37772
|
if (!n)
|
|
37772
37773
|
return;
|
|
37773
37774
|
let r, o, s = !1;
|
|
37774
|
-
for (
|
|
37775
|
+
for (xi && n.nodeType == 1 && i < Fd(n) && Aa(n.childNodes[i], -1) && (s = !0); ; )
|
|
37775
37776
|
if (i > 0) {
|
|
37776
37777
|
if (n.nodeType != 1)
|
|
37777
37778
|
break;
|
|
@@ -38334,7 +38335,7 @@ class $Z {
|
|
|
38334
38335
|
node: o,
|
|
38335
38336
|
pos: s,
|
|
38336
38337
|
addAttr: !!(this.target && !this.target.draggable),
|
|
38337
|
-
setUneditable: !!(this.target &&
|
|
38338
|
+
setUneditable: !!(this.target && xi && !this.target.hasAttribute("contentEditable"))
|
|
38338
38339
|
}), 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(() => {
|
|
38339
38340
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
38340
38341
|
}, 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)), Ir(e, "pointer");
|
|
@@ -38380,7 +38381,7 @@ mn.compositionstart = mn.compositionupdate = (t) => {
|
|
|
38380
38381
|
let { state: e } = t, n = e.selection.$to;
|
|
38381
38382
|
if (e.selection instanceof Ee && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((i) => i.type.spec.inclusive === !1)))
|
|
38382
38383
|
t.markCursor = t.state.storedMarks || n.marks(), Pd(t, !0), t.markCursor = null;
|
|
38383
|
-
else if (Pd(t, !e.selection.empty),
|
|
38384
|
+
else if (Pd(t, !e.selection.empty), xi && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
38384
38385
|
let i = t.domSelectionRange();
|
|
38385
38386
|
for (let r = i.focusNode, o = i.focusOffset; r && r.nodeType == 1 && o != 0; ) {
|
|
38386
38387
|
let s = o < 0 ? r.lastChild : r.childNodes[o - 1];
|
|
@@ -39207,7 +39208,7 @@ class YZ {
|
|
|
39207
39208
|
let u = this.registerMutation(n[f], l);
|
|
39208
39209
|
u && (o = o < 0 ? u.from : Math.min(u.from, o), s = s < 0 ? u.to : Math.max(u.to, s), u.typeOver && (a = !0));
|
|
39209
39210
|
}
|
|
39210
|
-
if (
|
|
39211
|
+
if (xi && l.length) {
|
|
39211
39212
|
let f = l.filter((u) => u.nodeName == "BR");
|
|
39212
39213
|
if (f.length == 2) {
|
|
39213
39214
|
let [u, h] = f;
|
|
@@ -39259,7 +39260,7 @@ class YZ {
|
|
|
39259
39260
|
let r6 = /* @__PURE__ */ new WeakMap(), o6 = !1;
|
|
39260
39261
|
function XZ(t) {
|
|
39261
39262
|
if (!r6.has(t) && (r6.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
|
|
39262
|
-
if (t.requiresGeckoHackNode =
|
|
39263
|
+
if (t.requiresGeckoHackNode = xi, o6)
|
|
39263
39264
|
return;
|
|
39264
39265
|
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), o6 = !0;
|
|
39265
39266
|
}
|
|
@@ -43398,7 +43399,7 @@ const Sx = {
|
|
|
43398
43399
|
effect: WX,
|
|
43399
43400
|
requires: ["computeStyles"]
|
|
43400
43401
|
};
|
|
43401
|
-
function
|
|
43402
|
+
function Pi(t) {
|
|
43402
43403
|
return t.split("-")[0];
|
|
43403
43404
|
}
|
|
43404
43405
|
var bo = Math.max, jd = Math.min, Os = Math.round;
|
|
@@ -43531,7 +43532,7 @@ var KX = function(e, n) {
|
|
|
43531
43532
|
})) : e, Nx(typeof e != "number" ? e : Ax(e, Hl));
|
|
43532
43533
|
};
|
|
43533
43534
|
function ZX(t) {
|
|
43534
|
-
var e, n = t.state, i = t.name, r = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a =
|
|
43535
|
+
var e, n = t.state, i = t.name, r = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Pi(n.placement), l = j2(a), c = [Ln, di].indexOf(a) >= 0, f = c ? "height" : "width";
|
|
43535
43536
|
if (!(!o || !s)) {
|
|
43536
43537
|
var u = KX(r.padding, n), h = V2(o), p = l === "y" ? Sn : Ln, m = l === "y" ? ci : di, g = n.rects.reference[f] + n.rects.reference[l] - s[l] - n.rects.popper[f], y = s[l] - n.rects.reference[l], v = Vl(o), w = v ? l === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, x = g / 2 - y / 2, b = u[p], S = w - h[f] - u[m], C = w / 2 - h[f] / 2 + x, A = Ta(b, C, S), L = l;
|
|
43537
43538
|
n.modifiersData[i] = (e = {}, e[L] = A, e.centerOffset = A - C, e);
|
|
@@ -43612,7 +43613,7 @@ function _6(t) {
|
|
|
43612
43613
|
}
|
|
43613
43614
|
function eQ(t) {
|
|
43614
43615
|
var e = t.state, n = t.options, i = n.gpuAcceleration, r = i === void 0 ? !0 : i, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
|
|
43615
|
-
placement:
|
|
43616
|
+
placement: Pi(e.placement),
|
|
43616
43617
|
variation: Ds(e.placement),
|
|
43617
43618
|
popper: e.elements.popper,
|
|
43618
43619
|
popperRect: e.rects.popper,
|
|
@@ -43760,7 +43761,7 @@ function dQ(t, e, n, i) {
|
|
|
43760
43761
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
43761
43762
|
}
|
|
43762
43763
|
function Ox(t) {
|
|
43763
|
-
var e = t.reference, n = t.element, i = t.placement, r = i ?
|
|
43764
|
+
var e = t.reference, n = t.element, i = t.placement, r = i ? Pi(i) : null, o = i ? Ds(i) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
|
|
43764
43765
|
switch (r) {
|
|
43765
43766
|
case Sn:
|
|
43766
43767
|
l = {
|
|
@@ -43841,14 +43842,14 @@ function fQ(t, e) {
|
|
|
43841
43842
|
boundary: r,
|
|
43842
43843
|
rootBoundary: o,
|
|
43843
43844
|
padding: s
|
|
43844
|
-
})[
|
|
43845
|
+
})[Pi(g)], m;
|
|
43845
43846
|
}, {});
|
|
43846
43847
|
return Object.keys(p).sort(function(m, g) {
|
|
43847
43848
|
return p[m] - p[g];
|
|
43848
43849
|
});
|
|
43849
43850
|
}
|
|
43850
43851
|
function uQ(t) {
|
|
43851
|
-
if (
|
|
43852
|
+
if (Pi(t) === z2)
|
|
43852
43853
|
return [];
|
|
43853
43854
|
var e = Vc(t);
|
|
43854
43855
|
return [S6(t), e, S6(e)];
|
|
@@ -43856,8 +43857,8 @@ function uQ(t) {
|
|
|
43856
43857
|
function hQ(t) {
|
|
43857
43858
|
var e = t.state, n = t.options, i = t.name;
|
|
43858
43859
|
if (!e.modifiersData[i]._skip) {
|
|
43859
|
-
for (var r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, f = n.boundary, u = n.rootBoundary, h = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, g = n.allowedAutoPlacements, y = e.options.placement, v =
|
|
43860
|
-
return be.concat(
|
|
43860
|
+
for (var r = n.mainAxis, o = r === void 0 ? !0 : r, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, f = n.boundary, u = n.rootBoundary, h = n.altBoundary, p = n.flipVariations, m = p === void 0 ? !0 : p, g = n.allowedAutoPlacements, y = e.options.placement, v = Pi(y), w = v === y, x = l || (w || !m ? [Vc(y)] : uQ(y)), b = [y].concat(x).reduce(function(be, De) {
|
|
43861
|
+
return be.concat(Pi(De) === z2 ? fQ(e, {
|
|
43861
43862
|
placement: De,
|
|
43862
43863
|
boundary: f,
|
|
43863
43864
|
rootBoundary: u,
|
|
@@ -43866,7 +43867,7 @@ function hQ(t) {
|
|
|
43866
43867
|
allowedAutoPlacements: g
|
|
43867
43868
|
}) : De);
|
|
43868
43869
|
}, []), S = e.rects.reference, C = e.rects.popper, A = /* @__PURE__ */ new Map(), L = !0, M = b[0], _ = 0; _ < b.length; _++) {
|
|
43869
|
-
var P = b[_], E =
|
|
43870
|
+
var P = b[_], E = Pi(P), D = Ds(P) === Ts, R = [Sn, ci].indexOf(E) >= 0, B = R ? "width" : "height", H = rl(e, {
|
|
43870
43871
|
placement: P,
|
|
43871
43872
|
boundary: f,
|
|
43872
43873
|
rootBoundary: u,
|
|
@@ -43951,7 +43952,7 @@ const gQ = {
|
|
|
43951
43952
|
fn: mQ
|
|
43952
43953
|
};
|
|
43953
43954
|
function yQ(t, e, n) {
|
|
43954
|
-
var i =
|
|
43955
|
+
var i = Pi(t), r = [Ln, Sn].indexOf(i) >= 0 ? -1 : 1, o = typeof n == "function" ? n(Object.assign({}, e, {
|
|
43955
43956
|
placement: t
|
|
43956
43957
|
})) : n, s = o[0], a = o[1];
|
|
43957
43958
|
return s = s || 0, a = (a || 0) * r, [Ln, di].indexOf(i) >= 0 ? {
|
|
@@ -43999,7 +44000,7 @@ function CQ(t) {
|
|
|
43999
44000
|
rootBoundary: c,
|
|
44000
44001
|
padding: u,
|
|
44001
44002
|
altBoundary: f
|
|
44002
|
-
}), v =
|
|
44003
|
+
}), v = Pi(e.placement), w = Ds(e.placement), x = !w, b = j2(v), S = xQ(b), C = e.modifiersData.popperOffsets, A = e.rects.reference, L = e.rects.popper, M = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
|
44003
44004
|
placement: e.placement
|
|
44004
44005
|
})) : g, _ = typeof M == "number" ? {
|
|
44005
44006
|
mainAxis: M,
|
|
@@ -44016,7 +44017,7 @@ function CQ(t) {
|
|
|
44016
44017
|
var D, R = b === "y" ? Sn : Ln, B = b === "y" ? ci : di, H = b === "y" ? "height" : "width", U = C[b], te = U + y[R], ie = U - y[B], N = p ? -L[H] / 2 : 0, xe = w === Ts ? A[H] : L[H], he = w === Ts ? -L[H] : -A[H], I = e.elements.arrow, be = p && I ? V2(I) : {
|
|
44017
44018
|
width: 0,
|
|
44018
44019
|
height: 0
|
|
44019
|
-
}, De = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Mx(), ke = De[R], z = De[B], K = Ta(0, A[H], be[H]), pe = x ? A[H] / 2 - N - K - ke - _.mainAxis : xe - K - ke - _.mainAxis, X = x ? -A[H] / 2 + N + K + z + _.mainAxis : he + K + z + _.mainAxis,
|
|
44020
|
+
}, De = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Mx(), ke = De[R], z = De[B], K = Ta(0, A[H], be[H]), pe = x ? A[H] / 2 - N - K - ke - _.mainAxis : xe - K - ke - _.mainAxis, X = x ? -A[H] / 2 + N + K + z + _.mainAxis : he + K + z + _.mainAxis, $e = e.elements.arrow && Vl(e.elements.arrow), et = $e ? b === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, ze = (D = P == null ? void 0 : P[b]) != null ? D : 0, Ue = U + pe - ze - et, vt = U + X - ze, xt = Ta(p ? jd(te, Ue) : te, U, p ? bo(ie, vt) : ie);
|
|
44020
44021
|
C[b] = xt, E[b] = xt - U;
|
|
44021
44022
|
}
|
|
44022
44023
|
if (a) {
|
|
@@ -44348,15 +44349,15 @@ function R6(t, e) {
|
|
|
44348
44349
|
}
|
|
44349
44350
|
return !1;
|
|
44350
44351
|
}
|
|
44351
|
-
var
|
|
44352
|
+
var Oi = {
|
|
44352
44353
|
isTouch: !1
|
|
44353
44354
|
}, F6 = 0;
|
|
44354
44355
|
function ZQ() {
|
|
44355
|
-
|
|
44356
|
+
Oi.isTouch || (Oi.isTouch = !0, window.performance && document.addEventListener("mousemove", Bx));
|
|
44356
44357
|
}
|
|
44357
44358
|
function Bx() {
|
|
44358
44359
|
var t = performance.now();
|
|
44359
|
-
t - F6 < 20 && (
|
|
44360
|
+
t - F6 < 20 && (Oi.isTouch = !1, document.removeEventListener("mousemove", Bx)), F6 = t;
|
|
44360
44361
|
}
|
|
44361
44362
|
function JQ() {
|
|
44362
44363
|
var t = document.activeElement;
|
|
@@ -44627,7 +44628,7 @@ function cee(t, e) {
|
|
|
44627
44628
|
var L = w.map(function(q) {
|
|
44628
44629
|
return q.fn(b);
|
|
44629
44630
|
}), M = t.hasAttribute("aria-expanded");
|
|
44630
|
-
return
|
|
44631
|
+
return $e(), N(), U(), te("onCreate", [b]), n.showOnCreate && ce(), C.addEventListener("mouseenter", function() {
|
|
44631
44632
|
b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
|
|
44632
44633
|
}), C.addEventListener("mouseleave", function() {
|
|
44633
44634
|
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && R().addEventListener("mousemove", m);
|
|
@@ -44654,7 +44655,7 @@ function cee(t, e) {
|
|
|
44654
44655
|
return B0(C);
|
|
44655
44656
|
}
|
|
44656
44657
|
function H(q) {
|
|
44657
|
-
return b.state.isMounted && !b.state.isVisible ||
|
|
44658
|
+
return b.state.isMounted && !b.state.isVisible || Oi.isTouch || f && f.type === "focus" ? 0 : Ku(b.props.delay, q ? 0 : 1, zn.delay);
|
|
44658
44659
|
}
|
|
44659
44660
|
function U(q) {
|
|
44660
44661
|
q === void 0 && (q = !1), C.style.pointerEvents = b.props.interactive && !q ? "" : "none", C.style.zIndex = "" + b.props.zIndex;
|
|
@@ -44696,13 +44697,13 @@ function cee(t, e) {
|
|
|
44696
44697
|
});
|
|
44697
44698
|
}
|
|
44698
44699
|
function he(q) {
|
|
44699
|
-
if (!(
|
|
44700
|
+
if (!(Oi.isTouch && (l || q.type === "mousedown"))) {
|
|
44700
44701
|
var ye = q.composedPath && q.composedPath()[0] || q.target;
|
|
44701
44702
|
if (!(b.props.interactive && R6(C, ye))) {
|
|
44702
44703
|
if (ts(b.props.triggerTarget || t).some(function(we) {
|
|
44703
44704
|
return R6(we, ye);
|
|
44704
44705
|
})) {
|
|
44705
|
-
if (
|
|
44706
|
+
if (Oi.isTouch || b.state.isVisible && b.props.trigger.indexOf("click") >= 0)
|
|
44706
44707
|
return;
|
|
44707
44708
|
} else
|
|
44708
44709
|
te("onClickOutside", [b, q]);
|
|
@@ -44755,14 +44756,14 @@ function cee(t, e) {
|
|
|
44755
44756
|
});
|
|
44756
44757
|
});
|
|
44757
44758
|
}
|
|
44758
|
-
function
|
|
44759
|
-
P() && (X("touchstart",
|
|
44759
|
+
function $e() {
|
|
44760
|
+
P() && (X("touchstart", ze, {
|
|
44760
44761
|
passive: !0
|
|
44761
44762
|
}), X("touchend", vt, {
|
|
44762
44763
|
passive: !0
|
|
44763
44764
|
})), zQ(b.props.trigger).forEach(function(q) {
|
|
44764
44765
|
if (q !== "manual")
|
|
44765
|
-
switch (X(q,
|
|
44766
|
+
switch (X(q, ze), q) {
|
|
44766
44767
|
case "mouseenter":
|
|
44767
44768
|
X("mouseleave", vt);
|
|
44768
44769
|
break;
|
|
@@ -44781,7 +44782,7 @@ function cee(t, e) {
|
|
|
44781
44782
|
ye.removeEventListener(we, Fe, Oe);
|
|
44782
44783
|
}), p = [];
|
|
44783
44784
|
}
|
|
44784
|
-
function
|
|
44785
|
+
function ze(q) {
|
|
44785
44786
|
var ye, we = !1;
|
|
44786
44787
|
if (!(!b.state.isEnabled || kt(q) || a)) {
|
|
44787
44788
|
var Fe = ((ye = f) == null ? void 0 : ye.type) === "focus";
|
|
@@ -44794,10 +44795,10 @@ function cee(t, e) {
|
|
|
44794
44795
|
var ye = q.target, we = D().contains(ye) || C.contains(ye);
|
|
44795
44796
|
if (!(q.type === "mousemove" && we)) {
|
|
44796
44797
|
var Fe = se().concat(C).map(function(Oe) {
|
|
44797
|
-
var Wt, yn = Oe._tippy,
|
|
44798
|
-
return
|
|
44798
|
+
var Wt, yn = Oe._tippy, He = (Wt = yn.popperInstance) == null ? void 0 : Wt.state;
|
|
44799
|
+
return He ? {
|
|
44799
44800
|
popperRect: Oe.getBoundingClientRect(),
|
|
44800
|
-
popperState:
|
|
44801
|
+
popperState: He,
|
|
44801
44802
|
props: n
|
|
44802
44803
|
} : null;
|
|
44803
44804
|
}).filter(Boolean);
|
|
@@ -44818,11 +44819,11 @@ function cee(t, e) {
|
|
|
44818
44819
|
b.props.trigger.indexOf("focusin") < 0 && q.target !== D() || b.props.interactive && q.relatedTarget && C.contains(q.relatedTarget) || Y(q);
|
|
44819
44820
|
}
|
|
44820
44821
|
function kt(q) {
|
|
44821
|
-
return
|
|
44822
|
+
return Oi.isTouch ? P() !== q.type.indexOf("touch") >= 0 : !1;
|
|
44822
44823
|
}
|
|
44823
44824
|
function F() {
|
|
44824
44825
|
$();
|
|
44825
|
-
var q = b.props, ye = q.popperOptions, we = q.placement, Fe = q.offset, Oe = q.getReferenceClientRect, Wt = q.moveTransition, yn = E() ? B0(C).arrow : null,
|
|
44826
|
+
var q = b.props, ye = q.popperOptions, we = q.placement, Fe = q.offset, Oe = q.getReferenceClientRect, Wt = q.moveTransition, yn = E() ? B0(C).arrow : null, He = Oe ? {
|
|
44826
44827
|
getBoundingClientRect: Oe,
|
|
44827
44828
|
contextElement: Oe.contextElement || D()
|
|
44828
44829
|
} : t, Mt = {
|
|
@@ -44871,7 +44872,7 @@ function cee(t, e) {
|
|
|
44871
44872
|
element: yn,
|
|
44872
44873
|
padding: 3
|
|
44873
44874
|
}
|
|
44874
|
-
}), tt.push.apply(tt, (ye == null ? void 0 : ye.modifiers) || []), b.popperInstance = RQ(
|
|
44875
|
+
}), tt.push.apply(tt, (ye == null ? void 0 : ye.modifiers) || []), b.popperInstance = RQ(He, C, Object.assign({}, ye, {
|
|
44875
44876
|
placement: we,
|
|
44876
44877
|
onFirstUpdate: h,
|
|
44877
44878
|
modifiers: tt
|
|
@@ -44896,7 +44897,7 @@ function cee(t, e) {
|
|
|
44896
44897
|
function ce(q) {
|
|
44897
44898
|
b.clearDelayTimeouts(), q && te("onTrigger", [b, q]), De();
|
|
44898
44899
|
var ye = H(!0), we = _(), Fe = we[0], Oe = we[1];
|
|
44899
|
-
|
|
44900
|
+
Oi.isTouch && Fe === "hold" && Oe && (ye = Oe), ye ? i = setTimeout(function() {
|
|
44900
44901
|
b.show();
|
|
44901
44902
|
}, ye) : b.show();
|
|
44902
44903
|
}
|
|
@@ -44929,7 +44930,7 @@ function cee(t, e) {
|
|
|
44929
44930
|
var ye = b.props, we = B6(t, Object.assign({}, ye, I6(q), {
|
|
44930
44931
|
ignoreAttributes: !0
|
|
44931
44932
|
}));
|
|
44932
|
-
b.props = we,
|
|
44933
|
+
b.props = we, $e(), ye.interactiveDebounce !== we.interactiveDebounce && (xe(), m = T6(Ue, we.interactiveDebounce)), ye.triggerTarget && !we.triggerTarget ? ts(ye.triggerTarget).forEach(function(Fe) {
|
|
44933
44934
|
Fe.removeAttribute("aria-expanded");
|
|
44934
44935
|
}) : we.triggerTarget && t.removeAttribute("aria-expanded"), N(), U(), A && A(ye, we), b.popperInstance && (F(), se().forEach(function(Fe) {
|
|
44935
44936
|
requestAnimationFrame(Fe._tippy.popperInstance.forceUpdate);
|
|
@@ -44943,11 +44944,11 @@ function cee(t, e) {
|
|
|
44943
44944
|
}
|
|
44944
44945
|
function Pe() {
|
|
44945
44946
|
process.env.NODE_ENV !== "production" && tr(b.state.isDestroyed, Zo("show"));
|
|
44946
|
-
var q = b.state.isVisible, ye = b.state.isDestroyed, we = !b.state.isEnabled, Fe =
|
|
44947
|
+
var q = b.state.isVisible, ye = b.state.isDestroyed, we = !b.state.isEnabled, Fe = Oi.isTouch && !b.props.touch, Oe = Ku(b.props.duration, 0, zn.duration);
|
|
44947
44948
|
if (!(q || ye || we || Fe) && !D().hasAttribute("disabled") && (te("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
|
44948
44949
|
if (b.state.isVisible = !0, E() && (C.style.visibility = "visible"), U(), De(), b.state.isMounted || (C.style.transition = "none"), E()) {
|
|
44949
|
-
var Wt = B(), yn = Wt.box,
|
|
44950
|
-
Zu([yn,
|
|
44950
|
+
var Wt = B(), yn = Wt.box, He = Wt.content;
|
|
44951
|
+
Zu([yn, He], 0);
|
|
44951
44952
|
}
|
|
44952
44953
|
h = function() {
|
|
44953
44954
|
var tt;
|
|
@@ -45012,7 +45013,7 @@ function na(t, e) {
|
|
|
45012
45013
|
}
|
|
45013
45014
|
na.defaultProps = zn;
|
|
45014
45015
|
na.setDefaultProps = oee;
|
|
45015
|
-
na.currentInput =
|
|
45016
|
+
na.currentInput = Oi;
|
|
45016
45017
|
Object.assign({}, Sx, {
|
|
45017
45018
|
effect: function(e) {
|
|
45018
45019
|
var n = e.state, i = {
|
|
@@ -45995,7 +45996,7 @@ function D1(t, e) {
|
|
|
45995
45996
|
return (n) => n.editor.contentComponent ? new Iee(t, n, e) : {};
|
|
45996
45997
|
}
|
|
45997
45998
|
const Dee = ({ editor: t, disabled: e, labels: n }) => {
|
|
45998
|
-
const i =
|
|
45999
|
+
const i = Be(), [r, o] = V(!1), [s, a] = V(t.getAttributes("link").href || ""), l = (m) => {
|
|
45999
46000
|
e || o(!r);
|
|
46000
46001
|
}, c = (m) => {
|
|
46001
46002
|
const g = m.trim();
|
|
@@ -47556,7 +47557,7 @@ wn.prototype = {
|
|
|
47556
47557
|
return r.j[t] = s, s;
|
|
47557
47558
|
}
|
|
47558
47559
|
};
|
|
47559
|
-
const je = (t, e, n, i, r) => t.ta(e, n, i, r), Ct = (t, e, n, i, r) => t.tr(e, n, i, r), J6 = (t, e, n, i, r) => t.ts(e, n, i, r), oe = (t, e, n, i, r) => t.tt(e, n, i, r), Xi = "WORD", U0 = "UWORD", tC = "ASCIINUMERICAL", nC = "ALPHANUMERICAL", al = "LOCALHOST", G0 = "TLD", K0 = "UTLD", jc = "SCHEME", ns = "SLASH_SCHEME", r3 = "NUM", Z0 = "WS", o3 = "NL", Ra = "OPENBRACE", Fa = "CLOSEBRACE", Ud = "OPENBRACKET", Gd = "CLOSEBRACKET", Kd = "OPENPAREN", Zd = "CLOSEPAREN", Jd = "OPENANGLEBRACKET", Yd = "CLOSEANGLEBRACKET", Xd = "FULLWIDTHLEFTPAREN", Qd = "FULLWIDTHRIGHTPAREN", ef = "LEFTCORNERBRACKET", tf = "RIGHTCORNERBRACKET", nf = "LEFTWHITECORNERBRACKET", rf = "RIGHTWHITECORNERBRACKET", of = "FULLWIDTHLESSTHAN", sf = "FULLWIDTHGREATERTHAN", af = "AMPERSAND", s3 = "APOSTROPHE", lf = "ASTERISK", Cr = "AT", cf = "BACKSLASH", df = "BACKTICK", ff = "CARET", Er = "COLON", a3 = "COMMA", uf = "DOLLAR",
|
|
47560
|
+
const je = (t, e, n, i, r) => t.ta(e, n, i, r), Ct = (t, e, n, i, r) => t.tr(e, n, i, r), J6 = (t, e, n, i, r) => t.ts(e, n, i, r), oe = (t, e, n, i, r) => t.tt(e, n, i, r), Xi = "WORD", U0 = "UWORD", tC = "ASCIINUMERICAL", nC = "ALPHANUMERICAL", al = "LOCALHOST", G0 = "TLD", K0 = "UTLD", jc = "SCHEME", ns = "SLASH_SCHEME", r3 = "NUM", Z0 = "WS", o3 = "NL", Ra = "OPENBRACE", Fa = "CLOSEBRACE", Ud = "OPENBRACKET", Gd = "CLOSEBRACKET", Kd = "OPENPAREN", Zd = "CLOSEPAREN", Jd = "OPENANGLEBRACKET", Yd = "CLOSEANGLEBRACKET", Xd = "FULLWIDTHLEFTPAREN", Qd = "FULLWIDTHRIGHTPAREN", ef = "LEFTCORNERBRACKET", tf = "RIGHTCORNERBRACKET", nf = "LEFTWHITECORNERBRACKET", rf = "RIGHTWHITECORNERBRACKET", of = "FULLWIDTHLESSTHAN", sf = "FULLWIDTHGREATERTHAN", af = "AMPERSAND", s3 = "APOSTROPHE", lf = "ASTERISK", Cr = "AT", cf = "BACKSLASH", df = "BACKTICK", ff = "CARET", Er = "COLON", a3 = "COMMA", uf = "DOLLAR", Ni = "DOT", hf = "EQUALS", l3 = "EXCLAMATION", Yn = "HYPHEN", Pa = "PERCENT", pf = "PIPE", mf = "PLUS", gf = "POUND", Ba = "QUERY", c3 = "QUOTE", iC = "FULLWIDTHMIDDLEDOT", d3 = "SEMI", Ai = "SLASH", $a = "TILDE", yf = "UNDERSCORE", rC = "EMOJI", vf = "SYM";
|
|
47560
47561
|
var oC = /* @__PURE__ */ Object.freeze({
|
|
47561
47562
|
__proto__: null,
|
|
47562
47563
|
WORD: Xi,
|
|
@@ -47597,7 +47598,7 @@ var oC = /* @__PURE__ */ Object.freeze({
|
|
|
47597
47598
|
COLON: Er,
|
|
47598
47599
|
COMMA: a3,
|
|
47599
47600
|
DOLLAR: uf,
|
|
47600
|
-
DOT:
|
|
47601
|
+
DOT: Ni,
|
|
47601
47602
|
EQUALS: hf,
|
|
47602
47603
|
EXCLAMATION: l3,
|
|
47603
47604
|
HYPHEN: Yn,
|
|
@@ -47609,7 +47610,7 @@ var oC = /* @__PURE__ */ Object.freeze({
|
|
|
47609
47610
|
QUOTE: c3,
|
|
47610
47611
|
FULLWIDTHMIDDLEDOT: iC,
|
|
47611
47612
|
SEMI: d3,
|
|
47612
|
-
SLASH:
|
|
47613
|
+
SLASH: Ai,
|
|
47613
47614
|
TILDE: $a,
|
|
47614
47615
|
UNDERSCORE: yf,
|
|
47615
47616
|
EMOJI: rC,
|
|
@@ -47622,7 +47623,7 @@ function Pte(t = []) {
|
|
|
47622
47623
|
const e = {};
|
|
47623
47624
|
wn.groups = e;
|
|
47624
47625
|
const n = new wn();
|
|
47625
|
-
mc == null && (mc = X6(Nte)), gc == null && (gc = X6(Ate)), oe(n, "'", s3), oe(n, "{", Ra), oe(n, "}", Fa), oe(n, "[", Ud), oe(n, "]", Gd), oe(n, "(", Kd), oe(n, ")", Zd), oe(n, "<", Jd), oe(n, ">", Yd), oe(n, "(", Xd), oe(n, ")", Qd), oe(n, "「", ef), oe(n, "」", tf), oe(n, "『", nf), oe(n, "』", rf), oe(n, "<", of), oe(n, ">", sf), oe(n, "&", af), oe(n, "*", lf), oe(n, "@", Cr), oe(n, "`", df), oe(n, "^", ff), oe(n, ":", Er), oe(n, ",", a3), oe(n, "$", uf), oe(n, ".",
|
|
47626
|
+
mc == null && (mc = X6(Nte)), gc == null && (gc = X6(Ate)), oe(n, "'", s3), oe(n, "{", Ra), oe(n, "}", Fa), oe(n, "[", Ud), oe(n, "]", Gd), oe(n, "(", Kd), oe(n, ")", Zd), oe(n, "<", Jd), oe(n, ">", Yd), oe(n, "(", Xd), oe(n, ")", Qd), oe(n, "「", ef), oe(n, "」", tf), oe(n, "『", nf), oe(n, "』", rf), oe(n, "<", of), oe(n, ">", sf), oe(n, "&", af), oe(n, "*", lf), oe(n, "@", Cr), oe(n, "`", df), oe(n, "^", ff), oe(n, ":", Er), oe(n, ",", a3), oe(n, "$", uf), oe(n, ".", Ni), oe(n, "=", hf), oe(n, "!", l3), oe(n, "-", Yn), oe(n, "%", Pa), oe(n, "|", pf), oe(n, "+", mf), oe(n, "#", gf), oe(n, "?", Ba), oe(n, '"', c3), oe(n, "/", Ai), oe(n, ";", d3), oe(n, "~", $a), oe(n, "_", yf), oe(n, "\\", cf), oe(n, "・", iC);
|
|
47626
47627
|
const i = Ct(n, Ji, r3, {
|
|
47627
47628
|
[V0]: !0
|
|
47628
47629
|
});
|
|
@@ -47978,34 +47979,34 @@ const e9 = R1("email", {
|
|
|
47978
47979
|
function zte({
|
|
47979
47980
|
groups: t
|
|
47980
47981
|
}) {
|
|
47981
|
-
const e = t.domain.concat([af, lf, Cr, cf, df, ff, uf, hf, Yn, r3, Pa, pf, mf, gf,
|
|
47982
|
+
const e = t.domain.concat([af, lf, Cr, cf, df, ff, uf, hf, Yn, r3, Pa, pf, mf, gf, Ai, vf, $a, yf]), n = [Er, a3, Ni, l3, Pa, Ba, c3, d3, Jd, Yd, Ra, Fa, Gd, Ud, Kd, Zd, Xd, Qd, ef, tf, nf, rf, of, sf], i = [af, s3, lf, cf, df, ff, uf, hf, Yn, Ra, Fa, Pa, pf, mf, gf, Ba, Ai, vf, $a, yf], r = Kn(), o = oe(r, $a);
|
|
47982
47983
|
je(o, i, o), je(o, t.domain, o);
|
|
47983
47984
|
const s = Kn(), a = Kn(), l = Kn();
|
|
47984
47985
|
je(r, t.domain, s), je(r, t.scheme, a), je(r, t.slashscheme, l), je(s, i, o), je(s, t.domain, s);
|
|
47985
47986
|
const c = oe(s, Cr);
|
|
47986
47987
|
oe(o, Cr, c), oe(a, Cr, c), oe(l, Cr, c);
|
|
47987
|
-
const f = oe(o,
|
|
47988
|
+
const f = oe(o, Ni);
|
|
47988
47989
|
je(f, i, o), je(f, t.domain, o);
|
|
47989
47990
|
const u = Kn();
|
|
47990
47991
|
je(c, t.domain, u), je(u, t.domain, u);
|
|
47991
|
-
const h = oe(u,
|
|
47992
|
+
const h = oe(u, Ni);
|
|
47992
47993
|
je(h, t.domain, u);
|
|
47993
47994
|
const p = Kn(e9);
|
|
47994
47995
|
je(h, t.tld, p), je(h, t.utld, p), oe(c, al, p);
|
|
47995
47996
|
const m = oe(u, Yn);
|
|
47996
|
-
oe(m, Yn, m), je(m, t.domain, u), je(p, t.domain, u), oe(p,
|
|
47997
|
+
oe(m, Yn, m), je(m, t.domain, u), je(p, t.domain, u), oe(p, Ni, h), oe(p, Yn, m);
|
|
47997
47998
|
const g = oe(p, Er);
|
|
47998
47999
|
je(g, t.numeric, e9);
|
|
47999
|
-
const y = oe(s, Yn), v = oe(s,
|
|
48000
|
+
const y = oe(s, Yn), v = oe(s, Ni);
|
|
48000
48001
|
oe(y, Yn, y), je(y, t.domain, s), je(v, i, o), je(v, t.domain, s);
|
|
48001
48002
|
const w = Kn(yc);
|
|
48002
|
-
je(v, t.tld, w), je(v, t.utld, w), je(w, t.domain, s), je(w, i, o), oe(w,
|
|
48003
|
+
je(v, t.tld, w), je(v, t.utld, w), je(w, t.domain, s), je(w, i, o), oe(w, Ni, v), oe(w, Yn, y), oe(w, Cr, c);
|
|
48003
48004
|
const x = oe(w, Er), b = Kn(yc);
|
|
48004
48005
|
je(x, t.numeric, b);
|
|
48005
48006
|
const S = Kn(yc), C = Kn();
|
|
48006
|
-
je(S, e, S), je(S, n, C), je(C, e, S), je(C, n, C), oe(w,
|
|
48007
|
-
const A = oe(a, Er), L = oe(l, Er), M = oe(L,
|
|
48008
|
-
je(a, t.domain, s), oe(a,
|
|
48007
|
+
je(S, e, S), je(S, n, C), je(C, e, S), je(C, n, C), oe(w, Ai, S), oe(b, Ai, S);
|
|
48008
|
+
const A = oe(a, Er), L = oe(l, Er), M = oe(L, Ai), _ = oe(M, Ai);
|
|
48009
|
+
je(a, t.domain, s), oe(a, Ni, v), oe(a, Yn, y), je(l, t.domain, s), oe(l, Ni, v), oe(l, Yn, y), je(A, t.domain, S), oe(A, Ai, S), oe(A, Ba, S), je(_, t.domain, S), je(_, e, S), oe(_, Ai, S);
|
|
48009
48010
|
const P = [
|
|
48010
48011
|
[Ra, Fa],
|
|
48011
48012
|
// {}
|
|
@@ -49815,7 +49816,7 @@ function Zne(t) {
|
|
|
49815
49816
|
}
|
|
49816
49817
|
return null;
|
|
49817
49818
|
}
|
|
49818
|
-
function
|
|
49819
|
+
function Si(t) {
|
|
49819
49820
|
const e = t.selection.$head;
|
|
49820
49821
|
for (let n = e.depth; n > 0; n--)
|
|
49821
49822
|
if (e.node(n).type.spec.tableRole == "row") return !0;
|
|
@@ -50211,7 +50212,7 @@ function kC(t, { map: e, tableStart: n, table: i }, r) {
|
|
|
50211
50212
|
return t;
|
|
50212
50213
|
}
|
|
50213
50214
|
function sie(t, e) {
|
|
50214
|
-
if (!
|
|
50215
|
+
if (!Si(t)) return !1;
|
|
50215
50216
|
if (e) {
|
|
50216
50217
|
const n = qi(t);
|
|
50217
50218
|
e(kC(t.tr, n, n.left));
|
|
@@ -50219,7 +50220,7 @@ function sie(t, e) {
|
|
|
50219
50220
|
return !0;
|
|
50220
50221
|
}
|
|
50221
50222
|
function aie(t, e) {
|
|
50222
|
-
if (!
|
|
50223
|
+
if (!Si(t)) return !1;
|
|
50223
50224
|
if (e) {
|
|
50224
50225
|
const n = qi(t);
|
|
50225
50226
|
e(kC(t.tr, n, n.right));
|
|
@@ -50244,7 +50245,7 @@ function lie(t, { map: e, table: n, tableStart: i }, r) {
|
|
|
50244
50245
|
}
|
|
50245
50246
|
}
|
|
50246
50247
|
function cie(t, e) {
|
|
50247
|
-
if (!
|
|
50248
|
+
if (!Si(t)) return !1;
|
|
50248
50249
|
if (e) {
|
|
50249
50250
|
const n = qi(t), i = t.tr;
|
|
50250
50251
|
if (n.left == 0 && n.right == n.map.width) return !1;
|
|
@@ -50287,7 +50288,7 @@ function bC(t, { map: e, tableStart: n, table: i }, r) {
|
|
|
50287
50288
|
return t.insert(s, sn(i.type.schema).row.create(null, a)), t;
|
|
50288
50289
|
}
|
|
50289
50290
|
function fie(t, e) {
|
|
50290
|
-
if (!
|
|
50291
|
+
if (!Si(t)) return !1;
|
|
50291
50292
|
if (e) {
|
|
50292
50293
|
const n = qi(t);
|
|
50293
50294
|
e(bC(t.tr, n, n.top));
|
|
@@ -50295,7 +50296,7 @@ function fie(t, e) {
|
|
|
50295
50296
|
return !0;
|
|
50296
50297
|
}
|
|
50297
50298
|
function uie(t, e) {
|
|
50298
|
-
if (!
|
|
50299
|
+
if (!Si(t)) return !1;
|
|
50299
50300
|
if (e) {
|
|
50300
50301
|
const n = qi(t);
|
|
50301
50302
|
e(bC(t.tr, n, n.bottom));
|
|
@@ -50328,7 +50329,7 @@ function hie(t, { map: e, table: n, tableStart: i }, r) {
|
|
|
50328
50329
|
}
|
|
50329
50330
|
}
|
|
50330
50331
|
function pie(t, e) {
|
|
50331
|
-
if (!
|
|
50332
|
+
if (!Si(t)) return !1;
|
|
50332
50333
|
if (e) {
|
|
50333
50334
|
const n = qi(t), i = t.tr;
|
|
50334
50335
|
if (n.top == 0 && n.bottom == n.map.height) return !1;
|
|
@@ -50456,7 +50457,7 @@ function gie(t) {
|
|
|
50456
50457
|
}
|
|
50457
50458
|
function yie(t, e) {
|
|
50458
50459
|
return function(n, i) {
|
|
50459
|
-
if (!
|
|
50460
|
+
if (!Si(n)) return !1;
|
|
50460
50461
|
const r = F1(n);
|
|
50461
50462
|
if (r.nodeAfter.attrs[t] === e) return !1;
|
|
50462
50463
|
if (i) {
|
|
@@ -50476,7 +50477,7 @@ function yie(t, e) {
|
|
|
50476
50477
|
}
|
|
50477
50478
|
function vie(t) {
|
|
50478
50479
|
return function(e, n) {
|
|
50479
|
-
if (!
|
|
50480
|
+
if (!Si(e)) return !1;
|
|
50480
50481
|
if (n) {
|
|
50481
50482
|
const i = sn(e.schema), r = qi(e), o = e.tr, s = r.map.cellsInRect(
|
|
50482
50483
|
t == "column" ? {
|
|
@@ -50525,7 +50526,7 @@ function u9(t, e, n) {
|
|
|
50525
50526
|
}
|
|
50526
50527
|
function cl(t, e) {
|
|
50527
50528
|
return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? vie(t) : function(n, i) {
|
|
50528
|
-
if (!
|
|
50529
|
+
if (!Si(n)) return !1;
|
|
50529
50530
|
if (i) {
|
|
50530
50531
|
const r = sn(n.schema), o = qi(n), s = n.tr, a = u9("row", o, r), l = u9(
|
|
50531
50532
|
"column",
|
|
@@ -50583,7 +50584,7 @@ function bie(t, e) {
|
|
|
50583
50584
|
}
|
|
50584
50585
|
function h9(t) {
|
|
50585
50586
|
return function(e, n) {
|
|
50586
|
-
if (!
|
|
50587
|
+
if (!Si(e)) return !1;
|
|
50587
50588
|
const i = bie(F1(e), t);
|
|
50588
50589
|
if (i == null) return !1;
|
|
50589
50590
|
if (n) {
|
|
@@ -50883,7 +50884,7 @@ function Eie(t, e) {
|
|
|
50883
50884
|
return i ? (t.dispatch(t.state.tr.setSelection(new ht(i))), !0) : !1;
|
|
50884
50885
|
}
|
|
50885
50886
|
function Mie(t, e, n) {
|
|
50886
|
-
if (!
|
|
50887
|
+
if (!Si(t.state)) return !1;
|
|
50887
50888
|
let i = xie(n);
|
|
50888
50889
|
const r = t.state.selection;
|
|
50889
50890
|
if (r instanceof ht) {
|
|
@@ -54053,25 +54054,25 @@ const _oe = PC, Soe = Object.assign, BC = Object.keys, Loe = (t, e) => {
|
|
|
54053
54054
|
n < t.length && L3(t, e, n + 1);
|
|
54054
54055
|
}
|
|
54055
54056
|
}, Toe = (t, e) => e.includes(t), $s = typeof process < "u" && process.release && /node|io\.js/.test(process.release.name) && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]", HC = typeof window < "u" && typeof document < "u" && !$s;
|
|
54056
|
-
let
|
|
54057
|
+
let Ei;
|
|
54057
54058
|
const Ooe = () => {
|
|
54058
|
-
if (
|
|
54059
|
+
if (Ei === void 0)
|
|
54059
54060
|
if ($s) {
|
|
54060
|
-
|
|
54061
|
+
Ei = ki();
|
|
54061
54062
|
const t = process.argv;
|
|
54062
54063
|
let e = null;
|
|
54063
54064
|
for (let n = 0; n < t.length; n++) {
|
|
54064
54065
|
const i = t[n];
|
|
54065
|
-
i[0] === "-" ? (e !== null &&
|
|
54066
|
+
i[0] === "-" ? (e !== null && Ei.set(e, ""), e = i) : e !== null && (Ei.set(e, i), e = null);
|
|
54066
54067
|
}
|
|
54067
|
-
e !== null &&
|
|
54068
|
-
} else typeof location == "object" ? (
|
|
54068
|
+
e !== null && Ei.set(e, "");
|
|
54069
|
+
} else typeof location == "object" ? (Ei = ki(), (location.search || "?").slice(1).split("&").forEach((t) => {
|
|
54069
54070
|
if (t.length !== 0) {
|
|
54070
54071
|
const [e, n] = t.split("=");
|
|
54071
|
-
|
|
54072
|
+
Ei.set(`--${M9(e, "-")}`, n), Ei.set(`-${M9(e, "-")}`, n);
|
|
54072
54073
|
}
|
|
54073
|
-
})) :
|
|
54074
|
-
return
|
|
54074
|
+
})) : Ei = ki();
|
|
54075
|
+
return Ei;
|
|
54075
54076
|
}, cp = (t) => Ooe().has(t), wf = (t) => R9($s ? process.env[t.toUpperCase().replaceAll("-", "_")] : _oe.getItem(t)), VC = (t) => cp("--" + t) || wf(t) !== null;
|
|
54076
54077
|
VC("production");
|
|
54077
54078
|
const Ioe = $s && Toe(process.env.FORCE_COLOR, ["true", "1", "2"]), Doe = Ioe || !cp("--no-colors") && // @todo deprecate --no-colors
|
|
@@ -54303,7 +54304,7 @@ const Ur = (t, e, n) => e.clients.forEach((i, r) => {
|
|
|
54303
54304
|
const u = t.readDsClock(), h = u + t.readDsLen();
|
|
54304
54305
|
if (u < c) {
|
|
54305
54306
|
c < h && hl(i, s, c, h - c);
|
|
54306
|
-
let p =
|
|
54307
|
+
let p = Ci(l, u), m = l[p];
|
|
54307
54308
|
for (!m.deleted && m.id.clock < u && (l.splice(p + 1, 0, Mf(e, m, u - m.id.clock)), p++); p < l.length && (m = l[p++], m.id.clock < h); )
|
|
54308
54309
|
m.deleted || (h < m.id.clock + m.length && l.splice(p, 0, Mf(e, m, h - m.id.clock)), m.delete(e));
|
|
54309
54310
|
} else
|
|
@@ -54867,7 +54868,7 @@ class z1 extends sse {
|
|
|
54867
54868
|
}
|
|
54868
54869
|
const ase = (t, e, n, i) => {
|
|
54869
54870
|
i = Wr(i, e[0].id.clock);
|
|
54870
|
-
const r =
|
|
54871
|
+
const r = Ci(e, i);
|
|
54871
54872
|
Qe(t.restEncoder, e.length - r), t.writeClient(n), Qe(t.restEncoder, i);
|
|
54872
54873
|
const o = e[r];
|
|
54873
54874
|
o.write(t, i - o.id.clock);
|
|
@@ -55157,7 +55158,7 @@ const pse = (t, e, n = 0) => new hse(t, e, n), Cc = (t, e, n) => {
|
|
|
55157
55158
|
if (At(i, o.client) <= o.clock)
|
|
55158
55159
|
return null;
|
|
55159
55160
|
const { item: f } = n ? mp(i, o) : { item: ms(i, o) };
|
|
55160
|
-
if (f instanceof ut && f.content instanceof
|
|
55161
|
+
if (f instanceof ut && f.content instanceof Li)
|
|
55161
55162
|
l = f.content.type;
|
|
55162
55163
|
else
|
|
55163
55164
|
return null;
|
|
@@ -55210,7 +55211,7 @@ const H1 = (t) => {
|
|
|
55210
55211
|
throw Tn();
|
|
55211
55212
|
}
|
|
55212
55213
|
n.push(e);
|
|
55213
|
-
},
|
|
55214
|
+
}, Ci = (t, e) => {
|
|
55214
55215
|
let n = 0, i = t.length - 1, r = t[i], o = r.id.clock;
|
|
55215
55216
|
if (o === e)
|
|
55216
55217
|
return i;
|
|
@@ -55227,12 +55228,12 @@ const H1 = (t) => {
|
|
|
55227
55228
|
throw Tn();
|
|
55228
55229
|
}, yse = (t, e) => {
|
|
55229
55230
|
const n = t.clients.get(e.client);
|
|
55230
|
-
return n[
|
|
55231
|
+
return n[Ci(n, e.clock)];
|
|
55231
55232
|
}, ms = (
|
|
55232
55233
|
/** @type {function(StructStore,ID):Item} */
|
|
55233
55234
|
yse
|
|
55234
55235
|
), hp = (t, e, n) => {
|
|
55235
|
-
const i =
|
|
55236
|
+
const i = Ci(e, n), r = e[i];
|
|
55236
55237
|
return r.id.clock < n && r instanceof ut ? (e.splice(i + 1, 0, Mf(t, r, n - r.id.clock)), i + 1) : i;
|
|
55237
55238
|
}, xn = (t, e) => {
|
|
55238
55239
|
const n = (
|
|
@@ -55241,14 +55242,14 @@ const H1 = (t) => {
|
|
|
55241
55242
|
);
|
|
55242
55243
|
return n[hp(t, n, e.clock)];
|
|
55243
55244
|
}, H9 = (t, e, n) => {
|
|
55244
|
-
const i = e.clients.get(n.client), r =
|
|
55245
|
+
const i = e.clients.get(n.client), r = Ci(i, n.clock), o = i[r];
|
|
55245
55246
|
return n.clock !== o.id.clock + o.length - 1 && o.constructor !== ii && i.splice(r + 1, 0, Mf(t, o, n.clock - o.id.clock + 1)), o;
|
|
55246
55247
|
}, vse = (t, e, n) => {
|
|
55247
55248
|
const i = (
|
|
55248
55249
|
/** @type {Array<GC|Item>} */
|
|
55249
55250
|
t.clients.get(e.id.client)
|
|
55250
55251
|
);
|
|
55251
|
-
i[
|
|
55252
|
+
i[Ci(i, e.id.clock)] = n;
|
|
55252
55253
|
}, r_ = (t, e, n, i, r) => {
|
|
55253
55254
|
if (i === 0)
|
|
55254
55255
|
return;
|
|
@@ -55295,7 +55296,7 @@ const V9 = (t, e) => e.deleteSet.clients.size === 0 && !Fre(e.afterState, (n, i)
|
|
|
55295
55296
|
);
|
|
55296
55297
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
55297
55298
|
const a = r[s], l = a.clock + a.len;
|
|
55298
|
-
for (let c =
|
|
55299
|
+
for (let c = Ci(o, a.clock), f = o[c]; c < o.length && f.id.clock < l; f = o[++c]) {
|
|
55299
55300
|
const u = o[c];
|
|
55300
55301
|
if (a.clock + a.len <= u.id.clock)
|
|
55301
55302
|
break;
|
|
@@ -55310,7 +55311,7 @@ const V9 = (t, e) => e.deleteSet.clients.size === 0 && !Fre(e.afterState, (n, i)
|
|
|
55310
55311
|
e.clients.get(i)
|
|
55311
55312
|
);
|
|
55312
55313
|
for (let o = n.length - 1; o >= 0; o--) {
|
|
55313
|
-
const s = n[o], a = Ps(r.length - 1, 1 +
|
|
55314
|
+
const s = n[o], a = Ps(r.length - 1, 1 + Ci(r, s.clock + s.len - 1));
|
|
55314
55315
|
for (let l = a, c = r[l]; l > 0 && c.id.clock >= s.clock; c = r[l])
|
|
55315
55316
|
l -= 1 + Jc(r, l);
|
|
55316
55317
|
}
|
|
@@ -55341,7 +55342,7 @@ const V9 = (t, e) => e.deleteSet.clients.size === 0 && !Fre(e.afterState, (n, i)
|
|
|
55341
55342
|
const p = (
|
|
55342
55343
|
/** @type {Array<GC|Item>} */
|
|
55343
55344
|
r.clients.get(u)
|
|
55344
|
-
), m = Wr(
|
|
55345
|
+
), m = Wr(Ci(p, h), 1);
|
|
55345
55346
|
for (let g = p.length - 1; g >= m; )
|
|
55346
55347
|
g -= 1 + Jc(p, g);
|
|
55347
55348
|
}
|
|
@@ -55350,7 +55351,7 @@ const V9 = (t, e) => e.deleteSet.clients.size === 0 && !Fre(e.afterState, (n, i)
|
|
|
55350
55351
|
const { client: u, clock: h } = s[f].id, p = (
|
|
55351
55352
|
/** @type {Array<GC|Item>} */
|
|
55352
55353
|
r.clients.get(u)
|
|
55353
|
-
), m =
|
|
55354
|
+
), m = Ci(p, h);
|
|
55354
55355
|
m + 1 < p.length && Jc(p, m + 1) > 1 || m > 0 && Jc(p, m);
|
|
55355
55356
|
}
|
|
55356
55357
|
if (!n.local && n.afterState.get(i.clientID) !== n.beforeState.get(i.clientID) && (Xoe(E3, WC, "[yjs] ", qC, UC, "Changed the client-id because another client seems to be using it."), i.clientID = XC()), i.emit("afterTransactionCleanup", [n, i]), i._observers.has("update")) {
|
|
@@ -56213,7 +56214,7 @@ const d_ = (t, e, n) => {
|
|
|
56213
56214
|
break;
|
|
56214
56215
|
default:
|
|
56215
56216
|
if (u instanceof Vt)
|
|
56216
|
-
r = new ut(qe(s, At(a, s)), r, r && r.lastId, l, l && l.id, e, null, new
|
|
56217
|
+
r = new ut(qe(s, At(a, s)), r, r && r.lastId, l, l && l.id, e, null, new Li(u)), r.integrate(t, 0);
|
|
56217
56218
|
else
|
|
56218
56219
|
throw new Error("Unexpected content type in insert operation");
|
|
56219
56220
|
}
|
|
@@ -56291,7 +56292,7 @@ const d_ = (t, e, n) => {
|
|
|
56291
56292
|
break;
|
|
56292
56293
|
default:
|
|
56293
56294
|
if (i instanceof Vt)
|
|
56294
|
-
a = new
|
|
56295
|
+
a = new Li(i);
|
|
56295
56296
|
else
|
|
56296
56297
|
throw new Error("Unexpected content type");
|
|
56297
56298
|
}
|
|
@@ -56843,10 +56844,10 @@ const K9 = (t, e, n) => {
|
|
|
56843
56844
|
});
|
|
56844
56845
|
const o = t.doc, s = o.clientID;
|
|
56845
56846
|
w_(n, r);
|
|
56846
|
-
const a = x_(t, e, n, r), l = i.constructor === String ? new
|
|
56847
|
+
const a = x_(t, e, n, r), l = i.constructor === String ? new _i(
|
|
56847
56848
|
/** @type {string} */
|
|
56848
56849
|
i
|
|
56849
|
-
) : i instanceof Vt ? new
|
|
56850
|
+
) : i instanceof Vt ? new Li(i) : new jo(i);
|
|
56850
56851
|
let { left: c, right: f, index: u } = n;
|
|
56851
56852
|
e._searchMarker && gl(e._searchMarker, n.index, l.getLength()), f = new ut(qe(s, At(o.store, s)), c, c && c.lastId, f, f && f.id, e, null, l), f.integrate(t, 0), n.right = f, n.index = u, n.forward(), b_(t, e, n, a);
|
|
56852
56853
|
}, Z9 = (t, e, n, i, r) => {
|
|
@@ -56885,7 +56886,7 @@ const K9 = (t, e, n) => {
|
|
|
56885
56886
|
for (; i > 0; i--)
|
|
56886
56887
|
l += `
|
|
56887
56888
|
`;
|
|
56888
|
-
n.right = new ut(qe(s, At(o.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new
|
|
56889
|
+
n.right = new ut(qe(s, At(o.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new _i(l)), n.right.integrate(t, 0), n.forward();
|
|
56889
56890
|
}
|
|
56890
56891
|
b_(t, e, n, a);
|
|
56891
56892
|
}, C_ = (t, e, n, i, r) => {
|
|
@@ -57008,9 +57009,9 @@ const K9 = (t, e, n) => {
|
|
|
57008
57009
|
for (; n > 0 && e.right !== null; ) {
|
|
57009
57010
|
if (e.right.deleted === !1)
|
|
57010
57011
|
switch (e.right.content.constructor) {
|
|
57011
|
-
case
|
|
57012
|
+
case Li:
|
|
57012
57013
|
case jo:
|
|
57013
|
-
case
|
|
57014
|
+
case _i:
|
|
57014
57015
|
n < e.right.length && xn(t, qe(e.right.id.client, e.right.id.clock + n)), n -= e.right.length, e.right.delete(t);
|
|
57015
57016
|
break;
|
|
57016
57017
|
}
|
|
@@ -57093,11 +57094,11 @@ class Vse extends V1 {
|
|
|
57093
57094
|
};
|
|
57094
57095
|
for (; s !== null; ) {
|
|
57095
57096
|
switch (s.content.constructor) {
|
|
57096
|
-
case
|
|
57097
|
+
case Li:
|
|
57097
57098
|
case jo:
|
|
57098
57099
|
this.adds(s) ? this.deletes(s) || (h(), a = "insert", c = s.content.getContent()[0], h()) : this.deletes(s) ? (a !== "delete" && (h(), a = "delete"), u += 1) : s.deleted || (a !== "retain" && (h(), a = "retain"), f += 1);
|
|
57099
57100
|
break;
|
|
57100
|
-
case
|
|
57101
|
+
case _i:
|
|
57101
57102
|
this.adds(s) ? this.deletes(s) || (a !== "insert" && (h(), a = "insert"), c += /** @type {ContentString} */
|
|
57102
57103
|
s.content.str) : this.deletes(s) ? (a !== "delete" && (h(), a = "delete"), u += s.length) : s.deleted || (a !== "retain" && (h(), a = "retain"), f += s.length);
|
|
57103
57104
|
break;
|
|
@@ -57207,7 +57208,7 @@ class Gr extends Vt {
|
|
|
57207
57208
|
this.doc ?? rn();
|
|
57208
57209
|
let e = "", n = this._start;
|
|
57209
57210
|
for (; n !== null; )
|
|
57210
|
-
!n.deleted && n.countable && n.content.constructor ===
|
|
57211
|
+
!n.deleted && n.countable && n.content.constructor === _i && (e += /** @type {ContentString} */
|
|
57211
57212
|
n.content.str), n = n.right;
|
|
57212
57213
|
return e;
|
|
57213
57214
|
}
|
|
@@ -57275,13 +57276,13 @@ class Gr extends Vt {
|
|
|
57275
57276
|
for (; l !== null; ) {
|
|
57276
57277
|
if (lo(l, e) || n !== void 0 && lo(l, n))
|
|
57277
57278
|
switch (l.content.constructor) {
|
|
57278
|
-
case
|
|
57279
|
+
case _i: {
|
|
57279
57280
|
const u = o.get("ychange");
|
|
57280
57281
|
e !== void 0 && !lo(l, e) ? (u === void 0 || u.user !== l.id.client || u.type !== "removed") && (c(), o.set("ychange", i ? i("removed", l.id) : { type: "removed" })) : n !== void 0 && !lo(l, n) ? (u === void 0 || u.user !== l.id.client || u.type !== "added") && (c(), o.set("ychange", i ? i("added", l.id) : { type: "added" })) : u !== void 0 && (c(), o.delete("ychange")), a += /** @type {ContentString} */
|
|
57281
57282
|
l.content.str;
|
|
57282
57283
|
break;
|
|
57283
57284
|
}
|
|
57284
|
-
case
|
|
57285
|
+
case Li:
|
|
57285
57286
|
case jo: {
|
|
57286
57287
|
c();
|
|
57287
57288
|
const u = {
|
|
@@ -58769,7 +58770,7 @@ const iae = (t) => {
|
|
|
58769
58770
|
n.push(t.readAny());
|
|
58770
58771
|
return new Po(n);
|
|
58771
58772
|
};
|
|
58772
|
-
class
|
|
58773
|
+
class _i {
|
|
58773
58774
|
/**
|
|
58774
58775
|
* @param {string} str
|
|
58775
58776
|
*/
|
|
@@ -58798,14 +58799,14 @@ class Ci {
|
|
|
58798
58799
|
* @return {ContentString}
|
|
58799
58800
|
*/
|
|
58800
58801
|
copy() {
|
|
58801
|
-
return new
|
|
58802
|
+
return new _i(this.str);
|
|
58802
58803
|
}
|
|
58803
58804
|
/**
|
|
58804
58805
|
* @param {number} offset
|
|
58805
58806
|
* @return {ContentString}
|
|
58806
58807
|
*/
|
|
58807
58808
|
splice(e) {
|
|
58808
|
-
const n = new
|
|
58809
|
+
const n = new _i(this.str.slice(e));
|
|
58809
58810
|
this.str = this.str.slice(0, e);
|
|
58810
58811
|
const i = this.str.charCodeAt(e - 1);
|
|
58811
58812
|
return i >= 55296 && i <= 56319 && (this.str = this.str.slice(0, e - 1) + "�", n.str = "�" + n.str.slice(1)), n;
|
|
@@ -58847,7 +58848,7 @@ class Ci {
|
|
|
58847
58848
|
return 4;
|
|
58848
58849
|
}
|
|
58849
58850
|
}
|
|
58850
|
-
const rae = (t) => new
|
|
58851
|
+
const rae = (t) => new _i(t.readString()), oae = [
|
|
58851
58852
|
Fse,
|
|
58852
58853
|
Bse,
|
|
58853
58854
|
jse,
|
|
@@ -58856,7 +58857,7 @@ const rae = (t) => new Ci(t.readString()), oae = [
|
|
|
58856
58857
|
Gse,
|
|
58857
58858
|
Kse
|
|
58858
58859
|
], sae = 0, aae = 1, lae = 2, cae = 3, dae = 4, fae = 5, uae = 6;
|
|
58859
|
-
class
|
|
58860
|
+
class Li {
|
|
58860
58861
|
/**
|
|
58861
58862
|
* @param {AbstractType<any>} type
|
|
58862
58863
|
*/
|
|
@@ -58885,7 +58886,7 @@ class Si {
|
|
|
58885
58886
|
* @return {ContentType}
|
|
58886
58887
|
*/
|
|
58887
58888
|
copy() {
|
|
58888
|
-
return new
|
|
58889
|
+
return new Li(this.type._copy());
|
|
58889
58890
|
}
|
|
58890
58891
|
/**
|
|
58891
58892
|
* @param {number} offset
|
|
@@ -58948,7 +58949,7 @@ class Si {
|
|
|
58948
58949
|
return 7;
|
|
58949
58950
|
}
|
|
58950
58951
|
}
|
|
58951
|
-
const hae = (t) => new
|
|
58952
|
+
const hae = (t) => new Li(oae[t.readTypeRef()](t)), mp = (t, e) => {
|
|
58952
58953
|
let n = e, i = 0, r;
|
|
58953
58954
|
do
|
|
58954
58955
|
i > 0 && (n = qe(n.client, n.clock + i)), r = ms(t, n), i = n.clock - r.id.clock, n = r.redone;
|
|
@@ -59365,7 +59366,7 @@ const gae = () => {
|
|
|
59365
59366
|
};
|
|
59366
59367
|
}, bae = kae, _t = new ot("y-sync"), dr = new ot("y-undo");
|
|
59367
59368
|
new ot("yjs-cursor");
|
|
59368
|
-
const
|
|
59369
|
+
const Bi = (t, e) => t >>> e | t << 32 - e, wae = (t) => Bi(t, 2) ^ Bi(t, 13) ^ Bi(t, 22), xae = (t) => Bi(t, 6) ^ Bi(t, 11) ^ Bi(t, 25), Cae = (t) => Bi(t, 7) ^ Bi(t, 18) ^ t >>> 3, _ae = (t) => Bi(t, 17) ^ Bi(t, 19) ^ t >>> 10, Sae = new Uint32Array([
|
|
59369
59370
|
1116352408,
|
|
59370
59371
|
1899447441,
|
|
59371
59372
|
3049323471,
|
|
@@ -59731,7 +59732,7 @@ class Rae {
|
|
|
59731
59732
|
);
|
|
59732
59733
|
o = r.getXmlFragment(s);
|
|
59733
59734
|
} else {
|
|
59734
|
-
const s = r.store.clients.get(o._item.id.client) ?? [], a =
|
|
59735
|
+
const s = r.store.clients.get(o._item.id.client) ?? [], a = Ci(
|
|
59735
59736
|
s,
|
|
59736
59737
|
o._item.id.clock
|
|
59737
59738
|
);
|
|
@@ -60028,7 +60029,7 @@ const N_ = (t, e, n, i, r, o) => {
|
|
|
60028
60029
|
let e = "", n = t._start;
|
|
60029
60030
|
const i = {};
|
|
60030
60031
|
for (; n !== null; )
|
|
60031
|
-
n.deleted || (n.countable && n.content instanceof
|
|
60032
|
+
n.deleted || (n.countable && n.content instanceof _i ? e += n.content.str : n.content instanceof Rt && (i[n.content.key] = null)), n = n.right;
|
|
60032
60033
|
return {
|
|
60033
60034
|
str: e,
|
|
60034
60035
|
nAttrs: i
|
|
@@ -60293,7 +60294,7 @@ const qae = (t) => {
|
|
|
60293
60294
|
}, Uae = (t) => {
|
|
60294
60295
|
var e, n;
|
|
60295
60296
|
return ((n = (e = dr.getState(t)) == null ? void 0 : e.undoManager) == null ? void 0 : n.redo()) != null;
|
|
60296
|
-
}, Gae = /* @__PURE__ */ new Set(["paragraph"]), Kae = (t, e) => !(t instanceof ut) || !(t.content instanceof
|
|
60297
|
+
}, Gae = /* @__PURE__ */ new Set(["paragraph"]), Kae = (t, e) => !(t instanceof ut) || !(t.content instanceof Li) || !(t.content.type instanceof Gr || t.content.type instanceof nn && e.has(t.content.type.nodeName)) || t.content.type._length === 0, Zae = ({ protectedNodes: t = Gae, trackedOrigins: e = [], undoManager: n = null } = {}) => new rt({
|
|
60297
60298
|
key: dr,
|
|
60298
60299
|
state: {
|
|
60299
60300
|
init: (i, r) => {
|
|
@@ -61168,7 +61169,7 @@ const rle = (t) => {
|
|
|
61168
61169
|
})]
|
|
61169
61170
|
})]
|
|
61170
61171
|
}), lle = ({ labels: t, setLastIntent: e, lastIntent: n, setIsAcceptChangesOpen: i, editor: r, handleEnhanceWithAI: o }) => {
|
|
61171
|
-
const s =
|
|
61172
|
+
const s = Be();
|
|
61172
61173
|
return k("div", {
|
|
61173
61174
|
className: "dark flex items-center gap-1 rounded-md border border-solid border-f1-border bg-f1-background p-0.5 drop-shadow-sm",
|
|
61174
61175
|
children: [d(me, {
|
|
@@ -61895,17 +61896,17 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
61895
61896
|
le(() => (_ ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
61896
61897
|
document.body.style.overflow = "";
|
|
61897
61898
|
}), [_]), le(() => {
|
|
61898
|
-
const
|
|
61899
|
+
const ze = _ ? window.innerHeight : Ole(p);
|
|
61899
61900
|
return Dle({
|
|
61900
61901
|
containerRef: x,
|
|
61901
61902
|
onHeightChange: S,
|
|
61902
61903
|
onScrollChange: A,
|
|
61903
|
-
heightThreshold:
|
|
61904
|
+
heightThreshold: ze
|
|
61904
61905
|
});
|
|
61905
61906
|
}, [p, _]), le(() => {
|
|
61906
61907
|
if (L && x.current) {
|
|
61907
|
-
const
|
|
61908
|
-
B(
|
|
61908
|
+
const ze = x.current.getBoundingClientRect().height;
|
|
61909
|
+
B(ze < 64);
|
|
61909
61910
|
} else
|
|
61910
61911
|
B(!1);
|
|
61911
61912
|
}, [L]);
|
|
@@ -61913,7 +61914,7 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
61913
61914
|
X && z({
|
|
61914
61915
|
...ke,
|
|
61915
61916
|
json: X.getJSON()
|
|
61916
|
-
}), P((
|
|
61917
|
+
}), P((ze) => !ze);
|
|
61917
61918
|
}, pe = !!(E || L || H), X = Z2({
|
|
61918
61919
|
extensions: Ale({
|
|
61919
61920
|
mentionsConfig: e,
|
|
@@ -61924,9 +61925,9 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
61924
61925
|
plainHtmlMode: m
|
|
61925
61926
|
}),
|
|
61926
61927
|
content: ke.json || ke.html,
|
|
61927
|
-
onUpdate: ({ editor:
|
|
61928
|
+
onUpdate: ({ editor: ze }) => {
|
|
61928
61929
|
Rle({
|
|
61929
|
-
editor:
|
|
61930
|
+
editor: ze,
|
|
61930
61931
|
onChange: l,
|
|
61931
61932
|
setEditorState: z
|
|
61932
61933
|
});
|
|
@@ -61945,20 +61946,20 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
61945
61946
|
I([]), i && i.onFiles([]);
|
|
61946
61947
|
},
|
|
61947
61948
|
focus: () => X == null ? void 0 : X.commands.focus(),
|
|
61948
|
-
setError: (
|
|
61949
|
-
U(
|
|
61949
|
+
setError: (ze) => {
|
|
61950
|
+
U(ze), ze ? X == null || X.setEditable(!1) : X == null || X.setEditable(!0);
|
|
61950
61951
|
},
|
|
61951
|
-
setContent: (
|
|
61952
|
+
setContent: (ze) => {
|
|
61952
61953
|
X && (Fle({
|
|
61953
61954
|
editor: X,
|
|
61954
|
-
content:
|
|
61955
|
+
content: ze
|
|
61955
61956
|
}), z({
|
|
61956
|
-
html:
|
|
61957
|
+
html: ze,
|
|
61957
61958
|
json: null
|
|
61958
61959
|
}));
|
|
61959
61960
|
}
|
|
61960
61961
|
}));
|
|
61961
|
-
const
|
|
61962
|
+
const $e = async (ze, Ue) => {
|
|
61962
61963
|
n && X && await Nle({
|
|
61963
61964
|
editor: X,
|
|
61964
61965
|
enhanceText: n.onEnhanceText,
|
|
@@ -61969,7 +61970,7 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
61969
61970
|
onError: (vt) => {
|
|
61970
61971
|
D(!1), U(vt || n.enhanceLabels.defaultError);
|
|
61971
61972
|
},
|
|
61972
|
-
selectedIntent:
|
|
61973
|
+
selectedIntent: ze,
|
|
61973
61974
|
customIntent: Ue
|
|
61974
61975
|
});
|
|
61975
61976
|
};
|
|
@@ -62058,7 +62059,7 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
62058
62059
|
setLastIntent: xe,
|
|
62059
62060
|
setIsAcceptChangesOpen: D,
|
|
62060
62061
|
editor: X,
|
|
62061
|
-
handleEnhanceWithAI:
|
|
62062
|
+
handleEnhanceWithAI: $e,
|
|
62062
62063
|
lastIntent: N
|
|
62063
62064
|
}), H && d(dle, {
|
|
62064
62065
|
error: H,
|
|
@@ -62085,7 +62086,7 @@ const Ale = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
62085
62086
|
disableButtons: pe,
|
|
62086
62087
|
enhanceConfig: n,
|
|
62087
62088
|
isFullscreen: _,
|
|
62088
|
-
onEnhanceWithAI:
|
|
62089
|
+
onEnhanceWithAI: $e,
|
|
62089
62090
|
setLastIntent: xe,
|
|
62090
62091
|
toolbarLabels: f,
|
|
62091
62092
|
setIsToolbarOpen: ie,
|