@factorialco/f0-react 1.282.0 → 1.283.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/experimental.d.ts +29 -29
- package/dist/experimental.js +161 -154
- package/dist/f0.d.ts +29 -29
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/experimental.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsxs as k, jsx as c, Fragment as xe } from "react/jsx-runtime";
|
|
|
4
4
|
import { useCopilotChatInternal as wf, useCopilotContext as gS, useCopilotAction as Zm, CopilotKit as vS } from "@copilotkit/react-core";
|
|
5
5
|
import { Markdown as yS, useChatContext as kS, CopilotSidebar as bS } from "@copilotkit/react-ui";
|
|
6
6
|
import * as X from "react";
|
|
7
|
-
import Z, { forwardRef as T, createContext as an, useRef as
|
|
7
|
+
import Z, { forwardRef as T, createContext as an, useRef as re, useState as B, useCallback as Te, useContext as Gt, useMemo as ee, useEffect as ne, PureComponent as wS, useId as Or, useTransition as xS, useLayoutEffect as ul, memo as xf, Fragment as _r, isValidElement as A9, cloneElement as Q0, useDebugValue as O9, createRef as CS, createElement as _S, version as Jm, useImperativeHandle as Cf, Children as D9 } from "react";
|
|
8
8
|
import _f from "react-dom";
|
|
9
9
|
import { randomId as SS } from "@copilotkit/shared";
|
|
10
10
|
import './experimental.css';const LS = (t, e) => k("svg", {
|
|
@@ -4517,7 +4517,7 @@ import './experimental.css';const LS = (t, e) => k("svg", {
|
|
|
4517
4517
|
Windows: tC
|
|
4518
4518
|
}, Symbol.toStringTag, { value: "Module" })), NA = an(null);
|
|
4519
4519
|
function TA() {
|
|
4520
|
-
const t =
|
|
4520
|
+
const t = re(!1);
|
|
4521
4521
|
return B6(() => (t.current = !0, () => {
|
|
4522
4522
|
t.current = !1;
|
|
4523
4523
|
}), []), t;
|
|
@@ -4544,7 +4544,7 @@ function Ym() {
|
|
|
4544
4544
|
};
|
|
4545
4545
|
}
|
|
4546
4546
|
const v8 = (t) => t === !0, DA = (t) => v8(t === !0) || t === "id", Os = ({ children: t, id: e, inherit: n = !0 }) => {
|
|
4547
|
-
const i = Gt($m), r = Gt(NA), [o, s] = AA(), a =
|
|
4547
|
+
const i = Gt($m), r = Gt(NA), [o, s] = AA(), a = re(null), l = i.id || r;
|
|
4548
4548
|
a.current === null && (DA(n) && l && (e = e ? l + "-" + e : l), a.current = {
|
|
4549
4549
|
id: e,
|
|
4550
4550
|
group: v8(n) && i.group || Ym()
|
|
@@ -4645,7 +4645,7 @@ function $A(t, e, n, i) {
|
|
|
4645
4645
|
return o === 1 && a.layout.max + n > d || o === -1 && a.layout.min + n < d ? aC(t, r, r + o) : t;
|
|
4646
4646
|
}
|
|
4647
4647
|
function HA({ children: t, as: e = "ul", axis: n = "y", onReorder: i, values: r, ...o }, s) {
|
|
4648
|
-
const a = rl(() => Y[e]), l = [], d =
|
|
4648
|
+
const a = rl(() => Y[e]), l = [], d = re(!1);
|
|
4649
4649
|
H6(!!r, "Reorder.Group must be provided a values prop");
|
|
4650
4650
|
const f = {
|
|
4651
4651
|
axis: n,
|
|
@@ -5860,7 +5860,7 @@ const IO = {
|
|
|
5860
5860
|
var w, x;
|
|
5861
5861
|
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 ? {
|
|
5862
5862
|
status: e ? "executing" : "completed"
|
|
5863
|
-
} : void 0), l = !o && !a, d = be(), { open: f } = D8(), [u, h] = B(null), [p, m] = B(!1), g =
|
|
5863
|
+
} : void 0), l = !o && !a, d = be(), { open: f } = D8(), [u, h] = B(null), [p, m] = B(!1), g = re(), v = Te(() => {
|
|
5864
5864
|
g.current && clearTimeout(g.current), !e && !t && !a && m(!0);
|
|
5865
5865
|
}, [t, e, a]), y = Te(() => {
|
|
5866
5866
|
g.current = setTimeout(() => {
|
|
@@ -5933,7 +5933,7 @@ const IO = {
|
|
|
5933
5933
|
})]
|
|
5934
5934
|
});
|
|
5935
5935
|
}, BO = () => null, R8 = an(null), $O = 15, HO = ({ children: t, enabled: e, agent: n, initialMessage: i, welcomeScreenSuggestions: r = [], onThumbsDown: o, onThumbsUp: s, ...a }) => {
|
|
5936
|
-
const [l, d] = B(e), [f, u] = B(!1), [h, p] = B(!0), [m, g] = B(n), [v, y] = B(r), [w, x] = B($O), [b, C] = B(i), _ =
|
|
5936
|
+
const [l, d] = B(e), [f, u] = B(!1), [h, p] = B(!0), [m, g] = B(n), [v, y] = B(r), [w, x] = B($O), [b, C] = B(i), _ = re(null), A = (S) => {
|
|
5937
5937
|
g(S);
|
|
5938
5938
|
}, E = (S) => {
|
|
5939
5939
|
_.current = S;
|
|
@@ -6017,7 +6017,7 @@ const VO = (t) => {
|
|
|
6017
6017
|
})]
|
|
6018
6018
|
});
|
|
6019
6019
|
}, zO = ({ inProgress: t, onSend: e, onStop: n }) => {
|
|
6020
|
-
const [i, r] = B(""), [o, s] = B(!1), a =
|
|
6020
|
+
const [i, r] = B(""), [o, s] = B(!1), a = re(null), l = re(null), d = be(), f = i.trim().length > 0;
|
|
6021
6021
|
ne(() => {
|
|
6022
6022
|
if (l.current && i.length > 0) {
|
|
6023
6023
|
const { scrollHeight: p } = l.current;
|
|
@@ -6117,7 +6117,7 @@ const VO = (t) => {
|
|
|
6117
6117
|
reset: e,
|
|
6118
6118
|
isOpen: n
|
|
6119
6119
|
}) => {
|
|
6120
|
-
const i =
|
|
6120
|
+
const i = re(null);
|
|
6121
6121
|
ne(() => (n ? i.current && (clearTimeout(i.current), i.current = null) : t !== null && (i.current = setTimeout(
|
|
6122
6122
|
() => {
|
|
6123
6123
|
e();
|
|
@@ -7140,7 +7140,7 @@ function AD(t, e, n = []) {
|
|
|
7140
7140
|
}
|
|
7141
7141
|
function OD({ breadcrumbs: t, append: e }) {
|
|
7142
7142
|
var l;
|
|
7143
|
-
const n =
|
|
7143
|
+
const n = re(null), i = re(null), [, r] = xS(), [o, s] = B(null), a = ((o == null ? void 0 : o.collapsedItems) || []).length > 0;
|
|
7144
7144
|
return ul(() => {
|
|
7145
7145
|
const d = n.current, f = i.current;
|
|
7146
7146
|
if (!d || !f || f.children.length < t.length) return;
|
|
@@ -7626,7 +7626,7 @@ const ID = sn({
|
|
|
7626
7626
|
})
|
|
7627
7627
|
});
|
|
7628
7628
|
}, r7 = T(BD), o7 = an(null), $D = 15, HD = ({ children: t, enabled: e, onShow: n, ...i }) => {
|
|
7629
|
-
const [r, o] = B(e), [s, a] = B(!1), [l, d] = B(!0), [f, u] = B($D), h =
|
|
7629
|
+
const [r, o] = B(e), [s, a] = B(!1), [l, d] = B(!0), [f, u] = B($D), h = re(null), p = (g) => {
|
|
7630
7630
|
h.current = g;
|
|
7631
7631
|
}, m = () => {
|
|
7632
7632
|
h.current && h.current();
|
|
@@ -8096,7 +8096,7 @@ const s7 = ({ className: t, disabled: e }) => {
|
|
|
8096
8096
|
});
|
|
8097
8097
|
};
|
|
8098
8098
|
function g3({ icon: t, href: e, label: n, disabled: i }) {
|
|
8099
|
-
const r =
|
|
8099
|
+
const r = re(null);
|
|
8100
8100
|
return c(ie, {
|
|
8101
8101
|
href: e,
|
|
8102
8102
|
title: n,
|
|
@@ -8238,7 +8238,7 @@ function Hre({ module: t, statusTag: e = void 0, breadcrumbs: n = [], actions: i
|
|
|
8238
8238
|
});
|
|
8239
8239
|
}
|
|
8240
8240
|
function JD({ action: t }) {
|
|
8241
|
-
const e =
|
|
8241
|
+
const e = re(null), [n, i] = B(!1);
|
|
8242
8242
|
return "actions" in t ? c(Ot, {
|
|
8243
8243
|
items: t.actions,
|
|
8244
8244
|
open: n,
|
|
@@ -8651,7 +8651,7 @@ const iR = ({ greeting: t, initialMessages: e = [], suggestions: n = [] }) => {
|
|
|
8651
8651
|
...t
|
|
8652
8652
|
})
|
|
8653
8653
|
}), oR = ({ inProgress: t, children: e, RenderMessage: n, AssistantMessage: i, UserMessage: r, ImageRenderer: o, onRegenerate: s, onCopy: a, markdownTagRenderers: l }) => {
|
|
8654
|
-
const d =
|
|
8654
|
+
const d = re(null), { messages: f, interrupt: u } = wf(), { threadId: h } = gS(), { close: p, currentReaction: m, currentMessage: g, isOpen: v } = D8(), y = be(), { greeting: w, initialMessage: x, welcomeScreenSuggestions: b, onThumbsUp: C, onThumbsDown: _ } = Rr(), A = ee(() => sR(x || y.ai.defaultInitialMessage), [x, y.ai.defaultInitialMessage]), E = f.length == 0 && (w || A.length > 0), { messagesContainerRef: L, messagesEndRef: S, showScrollToBottom: I, scrollToBottom: N } = aR(), { height: O = 0 } = Ic({
|
|
8655
8655
|
ref: L,
|
|
8656
8656
|
box: "border-box"
|
|
8657
8657
|
}), R = ee(() => lR(f), [f]);
|
|
@@ -8761,7 +8761,7 @@ function sR(t) {
|
|
|
8761
8761
|
}));
|
|
8762
8762
|
}
|
|
8763
8763
|
function aR() {
|
|
8764
|
-
const t =
|
|
8764
|
+
const t = re(null), e = re(null), n = re(!1), i = re(!1), [r, o] = B(!1), s = (f = "smooth") => {
|
|
8765
8765
|
e.current && t.current && (o(!1), n.current = !0, t.current.scrollIntoView({
|
|
8766
8766
|
behavior: f
|
|
8767
8767
|
}));
|
|
@@ -8879,7 +8879,7 @@ const dR = (t) => {
|
|
|
8879
8879
|
label: n.message
|
|
8880
8880
|
}, i))
|
|
8881
8881
|
}), hR = ({ message: t, ImageRenderer: e }) => {
|
|
8882
|
-
const n = t && "image" in t && t.image, i =
|
|
8882
|
+
const n = t && "image" in t && t.image, i = re(null);
|
|
8883
8883
|
if (ne(() => {
|
|
8884
8884
|
i.current && i.current.scrollIntoView({
|
|
8885
8885
|
behavior: "smooth"
|
|
@@ -9038,7 +9038,7 @@ const dR = (t) => {
|
|
|
9038
9038
|
reset: e,
|
|
9039
9039
|
isOpen: n
|
|
9040
9040
|
}) => {
|
|
9041
|
-
const i =
|
|
9041
|
+
const i = re(null);
|
|
9042
9042
|
ne(() => (n ? i.current && (clearTimeout(i.current), i.current = null) : t !== null && (i.current = setTimeout(
|
|
9043
9043
|
() => {
|
|
9044
9044
|
},
|
|
@@ -13502,7 +13502,7 @@ const T3 = ({ label: t, onCreate: e, goToFirst: n, goToLast: i }) => c("div", {
|
|
|
13502
13502
|
o(A);
|
|
13503
13503
|
}
|
|
13504
13504
|
}, [l, t.entities, t.applySearchToGroup, f, o]);
|
|
13505
|
-
const x =
|
|
13505
|
+
const x = re(null), [b, C] = B(0);
|
|
13506
13506
|
return ul(() => {
|
|
13507
13507
|
const A = () => {
|
|
13508
13508
|
x.current && C(x.current.offsetWidth);
|
|
@@ -14373,19 +14373,19 @@ function KP(t = {}) {
|
|
|
14373
14373
|
validatingFields: n.validatingFields,
|
|
14374
14374
|
isValidating: !dn(n.validatingFields)
|
|
14375
14375
|
}));
|
|
14376
|
-
}, w = (D, P = [], H, te,
|
|
14376
|
+
}, w = (D, P = [], H, te, oe = !0, K = !0) => {
|
|
14377
14377
|
if (te && H && !e.disabled) {
|
|
14378
14378
|
if (s.action = !0, K && Array.isArray(le(i, D))) {
|
|
14379
14379
|
const he = H(le(i, D), te.argA, te.argB);
|
|
14380
|
-
|
|
14380
|
+
oe && Ue(i, D, he);
|
|
14381
14381
|
}
|
|
14382
14382
|
if (K && Array.isArray(le(n.errors, D))) {
|
|
14383
14383
|
const he = H(le(n.errors, D), te.argA, te.argB);
|
|
14384
|
-
|
|
14384
|
+
oe && Ue(n.errors, D, he), UP(n.errors, D);
|
|
14385
14385
|
}
|
|
14386
14386
|
if (f.touchedFields && K && Array.isArray(le(n.touchedFields, D))) {
|
|
14387
14387
|
const he = H(le(n.touchedFields, D), te.argA, te.argB);
|
|
14388
|
-
|
|
14388
|
+
oe && Ue(n.touchedFields, D, he);
|
|
14389
14389
|
}
|
|
14390
14390
|
f.dirtyFields && (n.dirtyFields = Us(r, o)), u.state.next({
|
|
14391
14391
|
name: D,
|
|
@@ -14406,12 +14406,12 @@ function KP(t = {}) {
|
|
|
14406
14406
|
isValid: !1
|
|
14407
14407
|
});
|
|
14408
14408
|
}, C = (D, P, H, te) => {
|
|
14409
|
-
const
|
|
14410
|
-
if (
|
|
14409
|
+
const oe = le(i, D);
|
|
14410
|
+
if (oe) {
|
|
14411
14411
|
const K = le(o, D, vt(H) ? le(r, D) : H);
|
|
14412
|
-
vt(K) || te && te.defaultChecked || P ? Ue(o, D, P ? K : I1(
|
|
14412
|
+
vt(K) || te && te.defaultChecked || P ? Ue(o, D, P ? K : I1(oe._f)) : F(D, K), s.mount && v();
|
|
14413
14413
|
}
|
|
14414
|
-
}, _ = (D, P, H, te,
|
|
14414
|
+
}, _ = (D, P, H, te, oe) => {
|
|
14415
14415
|
let K = !1, he = !1;
|
|
14416
14416
|
const Me = {
|
|
14417
14417
|
name: D
|
|
@@ -14427,12 +14427,12 @@ function KP(t = {}) {
|
|
|
14427
14427
|
const Ye = le(n.touchedFields, D);
|
|
14428
14428
|
Ye || (Ue(n.touchedFields, D, H), Me.touchedFields = n.touchedFields, K = K || f.touchedFields && Ye !== H);
|
|
14429
14429
|
}
|
|
14430
|
-
K &&
|
|
14430
|
+
K && oe && u.state.next(Me);
|
|
14431
14431
|
}
|
|
14432
14432
|
return K ? Me : {};
|
|
14433
14433
|
}, A = (D, P, H, te) => {
|
|
14434
|
-
const
|
|
14435
|
-
if (e.delayError && H ? (l = g(() => x(D, H)), l(e.delayError)) : (clearTimeout(d), l = null, H ? Ue(n.errors, D, H) : St(n.errors, D)), (H ? !lr(
|
|
14434
|
+
const oe = le(n.errors, D), K = f.isValid && Rn(P) && n.isValid !== P;
|
|
14435
|
+
if (e.delayError && H ? (l = g(() => x(D, H)), l(e.delayError)) : (clearTimeout(d), l = null, H ? Ue(n.errors, D, H) : St(n.errors, D)), (H ? !lr(oe, H) : oe) || !dn(te) || K) {
|
|
14436
14436
|
const he = {
|
|
14437
14437
|
...te,
|
|
14438
14438
|
...K && Rn(P) ? { isValid: P } : {},
|
|
@@ -14462,13 +14462,13 @@ function KP(t = {}) {
|
|
|
14462
14462
|
valid: !0
|
|
14463
14463
|
}) => {
|
|
14464
14464
|
for (const te in D) {
|
|
14465
|
-
const
|
|
14466
|
-
if (
|
|
14467
|
-
const { _f: K, ...he } =
|
|
14465
|
+
const oe = D[te];
|
|
14466
|
+
if (oe) {
|
|
14467
|
+
const { _f: K, ...he } = oe;
|
|
14468
14468
|
if (K) {
|
|
14469
|
-
const Me = a.array.has(K.name), Je =
|
|
14469
|
+
const Me = a.array.has(K.name), Je = oe._f && jP(oe._f);
|
|
14470
14470
|
Je && f.validatingFields && y([te], !0);
|
|
14471
|
-
const Ye = await q3(
|
|
14471
|
+
const Ye = await q3(oe, a.disabled, o, m, e.shouldUseNativeValidation && !P, Me);
|
|
14472
14472
|
if (Je && f.validatingFields && y([te]), Ye[K.name] && (H.valid = !1, P))
|
|
14473
14473
|
break;
|
|
14474
14474
|
!P && (le(Ye, K.name) ? Me ? BP(n.errors, Ye, K.name) : Ue(n.errors, K.name, Ye[K.name]) : St(n.errors, K.name));
|
|
@@ -14487,23 +14487,23 @@ function KP(t = {}) {
|
|
|
14487
14487
|
...s.mount ? o : vt(P) ? r : ui(D) ? { [D]: P } : P
|
|
14488
14488
|
}, H, P), R = (D) => Af(le(s.mount ? o : r, D, e.shouldUnregister ? le(r, D, []) : [])), F = (D, P, H = {}) => {
|
|
14489
14489
|
const te = le(i, D);
|
|
14490
|
-
let
|
|
14490
|
+
let oe = P;
|
|
14491
14491
|
if (te) {
|
|
14492
14492
|
const K = te._f;
|
|
14493
|
-
K && (!K.disabled && Ue(o, D, pv(P, K)),
|
|
14493
|
+
K && (!K.disabled && Ue(o, D, pv(P, K)), oe = Xc(K.ref) && Xt(P) ? "" : P, fv(K.ref) ? [...K.ref.options].forEach((he) => he.selected = oe.includes(he.value)) : K.refs ? vl(K.ref) ? K.refs.length > 1 ? K.refs.forEach((he) => (!he.defaultChecked || !he.disabled) && (he.checked = Array.isArray(oe) ? !!oe.find((Me) => Me === he.value) : oe === he.value)) : K.refs[0] && (K.refs[0].checked = !!oe) : K.refs.forEach((he) => he.checked = he.value === oe) : e2(K.ref) ? K.ref.value = "" : (K.ref.value = oe, K.ref.type || u.values.next({
|
|
14494
14494
|
name: D,
|
|
14495
14495
|
values: { ...o }
|
|
14496
14496
|
})));
|
|
14497
14497
|
}
|
|
14498
|
-
(H.shouldDirty || H.shouldTouch) && _(D,
|
|
14498
|
+
(H.shouldDirty || H.shouldTouch) && _(D, oe, H.shouldTouch, H.shouldDirty, !0), H.shouldValidate && ce(D);
|
|
14499
14499
|
}, $ = (D, P, H) => {
|
|
14500
14500
|
for (const te in P) {
|
|
14501
|
-
const
|
|
14502
|
-
(a.array.has(D) || kt(
|
|
14501
|
+
const oe = P[te], K = `${D}.${te}`, he = le(i, K);
|
|
14502
|
+
(a.array.has(D) || kt(oe) || he && !he._f) && !Jr(oe) ? $(K, oe, H) : F(K, oe, H);
|
|
14503
14503
|
}
|
|
14504
14504
|
}, W = (D, P, H = {}) => {
|
|
14505
|
-
const te = le(i, D),
|
|
14506
|
-
Ue(o, D, K),
|
|
14505
|
+
const te = le(i, D), oe = a.array.has(D), K = cn(P);
|
|
14506
|
+
Ue(o, D, K), oe ? (u.array.next({
|
|
14507
14507
|
name: D,
|
|
14508
14508
|
values: { ...o }
|
|
14509
14509
|
}), (f.isDirty || f.dirtyFields) && H.shouldDirty && u.state.next({
|
|
@@ -14518,13 +14518,13 @@ function KP(t = {}) {
|
|
|
14518
14518
|
s.mount = !0;
|
|
14519
14519
|
const P = D.target;
|
|
14520
14520
|
let H = P.name, te = !0;
|
|
14521
|
-
const
|
|
14521
|
+
const oe = le(i, H), K = () => P.type ? I1(oe._f) : ev(D), he = (Me) => {
|
|
14522
14522
|
te = Number.isNaN(Me) || Jr(Me) && isNaN(Me.getTime()) || lr(Me, le(o, H, Me));
|
|
14523
14523
|
};
|
|
14524
|
-
if (
|
|
14524
|
+
if (oe) {
|
|
14525
14525
|
let Me, Je;
|
|
14526
|
-
const Ye = K(), Lt = D.type === Yc.BLUR || D.type === Yc.FOCUS_OUT, Ws = !WP(
|
|
14527
|
-
Ue(o, H, Ye), Lt ? (
|
|
14526
|
+
const Ye = K(), Lt = D.type === Yc.BLUR || D.type === Yc.FOCUS_OUT, Ws = !WP(oe._f) && !e.resolver && !le(n.errors, H) && !oe._f.deps || qP(Lt, le(n.touchedFields, H), n.isSubmitted, p, h), Xi = H3(H, a, Lt);
|
|
14527
|
+
Ue(o, H, Ye), Lt ? (oe._f.onBlur && oe._f.onBlur(D), l && l(0)) : oe._f.onChange && oe._f.onChange(D);
|
|
14528
14528
|
const Qi = _(H, Ye, Lt, !1), $r = !dn(Qi) || Xi;
|
|
14529
14529
|
if (!Lt && u.values.next({
|
|
14530
14530
|
name: H,
|
|
@@ -14539,19 +14539,19 @@ function KP(t = {}) {
|
|
|
14539
14539
|
Me = me.error, H = me.name, Je = dn(To);
|
|
14540
14540
|
}
|
|
14541
14541
|
} else
|
|
14542
|
-
y([H], !0), Me = (await q3(
|
|
14543
|
-
te && (
|
|
14542
|
+
y([H], !0), Me = (await q3(oe, a.disabled, o, m, e.shouldUseNativeValidation))[H], y([H]), he(Ye), te && (Me ? Je = !1 : f.isValid && (Je = await S(i, !0)));
|
|
14543
|
+
te && (oe._f.deps && ce(oe._f.deps), A(H, Je, Me, Qi));
|
|
14544
14544
|
}
|
|
14545
14545
|
}, se = (D, P) => {
|
|
14546
14546
|
if (le(n.errors, P) && D.focus)
|
|
14547
14547
|
return D.focus(), 1;
|
|
14548
14548
|
}, ce = async (D, P = {}) => {
|
|
14549
14549
|
let H, te;
|
|
14550
|
-
const
|
|
14550
|
+
const oe = ra(D);
|
|
14551
14551
|
if (e.resolver) {
|
|
14552
|
-
const K = await L(vt(D) ? D :
|
|
14553
|
-
H = dn(K), te = D ? !
|
|
14554
|
-
} else D ? (te = (await Promise.all(
|
|
14552
|
+
const K = await L(vt(D) ? D : oe);
|
|
14553
|
+
H = dn(K), te = D ? !oe.some((he) => le(K, he)) : H;
|
|
14554
|
+
} else D ? (te = (await Promise.all(oe.map(async (K) => {
|
|
14555
14555
|
const he = le(i, K);
|
|
14556
14556
|
return await S(he && he._f ? { [K]: he } : he);
|
|
14557
14557
|
}))).every(Boolean), !(!te && !n.isValid) && v()) : te = H = await S(i);
|
|
@@ -14559,7 +14559,7 @@ function KP(t = {}) {
|
|
|
14559
14559
|
...!ui(D) || f.isValid && H !== n.isValid ? {} : { name: D },
|
|
14560
14560
|
...e.resolver || !D ? { isValid: H } : {},
|
|
14561
14561
|
errors: n.errors
|
|
14562
|
-
}), P.shouldFocus && !te && oa(i, se, D ?
|
|
14562
|
+
}), P.shouldFocus && !te && oa(i, se, D ? oe : a.mount), te;
|
|
14563
14563
|
}, we = (D) => {
|
|
14564
14564
|
const P = {
|
|
14565
14565
|
...s.mount ? o : r
|
|
@@ -14576,7 +14576,7 @@ function KP(t = {}) {
|
|
|
14576
14576
|
errors: D ? n.errors : {}
|
|
14577
14577
|
});
|
|
14578
14578
|
}, Ce = (D, P, H) => {
|
|
14579
|
-
const te = (le(i, D, { _f: {} })._f || {}).ref,
|
|
14579
|
+
const te = (le(i, D, { _f: {} })._f || {}).ref, oe = le(n.errors, D) || {}, { ref: K, message: he, type: Me, ...Je } = oe;
|
|
14580
14580
|
Ue(n.errors, D, {
|
|
14581
14581
|
...Je,
|
|
14582
14582
|
...P,
|
|
@@ -14627,10 +14627,10 @@ function KP(t = {}) {
|
|
|
14627
14627
|
name: D,
|
|
14628
14628
|
onChange: J,
|
|
14629
14629
|
onBlur: J,
|
|
14630
|
-
ref: (
|
|
14631
|
-
if (
|
|
14630
|
+
ref: (oe) => {
|
|
14631
|
+
if (oe) {
|
|
14632
14632
|
V(D, P), H = le(i, D);
|
|
14633
|
-
const K = vt(
|
|
14633
|
+
const K = vt(oe.value) && oe.querySelectorAll && oe.querySelectorAll("input,select,textarea")[0] || oe, he = VP(K), Me = H._f.refs || [];
|
|
14634
14634
|
if (he ? Me.find((Je) => Je === K) : K === H._f.ref)
|
|
14635
14635
|
return;
|
|
14636
14636
|
Ue(i, D, {
|
|
@@ -14653,22 +14653,22 @@ function KP(t = {}) {
|
|
|
14653
14653
|
}, de = () => e.shouldFocusError && oa(i, se, a.mount), ge = (D) => {
|
|
14654
14654
|
Rn(D) && (u.state.next({ disabled: D }), oa(i, (P, H) => {
|
|
14655
14655
|
const te = le(i, H);
|
|
14656
|
-
te && (P.disabled = te._f.disabled || D, Array.isArray(te._f.refs) && te._f.refs.forEach((
|
|
14657
|
-
|
|
14656
|
+
te && (P.disabled = te._f.disabled || D, Array.isArray(te._f.refs) && te._f.refs.forEach((oe) => {
|
|
14657
|
+
oe.disabled = te._f.disabled || D;
|
|
14658
14658
|
}));
|
|
14659
14659
|
}, 0, !1));
|
|
14660
14660
|
}, fe = (D, P) => async (H) => {
|
|
14661
14661
|
let te;
|
|
14662
14662
|
H && (H.preventDefault && H.preventDefault(), H.persist && H.persist());
|
|
14663
|
-
let
|
|
14663
|
+
let oe = cn(o);
|
|
14664
14664
|
if (a.disabled.size)
|
|
14665
14665
|
for (const K of a.disabled)
|
|
14666
|
-
Ue(
|
|
14666
|
+
Ue(oe, K, void 0);
|
|
14667
14667
|
if (u.state.next({
|
|
14668
14668
|
isSubmitting: !0
|
|
14669
14669
|
}), e.resolver) {
|
|
14670
14670
|
const { errors: K, values: he } = await E();
|
|
14671
|
-
n.errors = K,
|
|
14671
|
+
n.errors = K, oe = he;
|
|
14672
14672
|
} else
|
|
14673
14673
|
await S(i);
|
|
14674
14674
|
if (St(n.errors, "root"), dn(n.errors)) {
|
|
@@ -14676,7 +14676,7 @@ function KP(t = {}) {
|
|
|
14676
14676
|
errors: {}
|
|
14677
14677
|
});
|
|
14678
14678
|
try {
|
|
14679
|
-
await D(
|
|
14679
|
+
await D(oe, H);
|
|
14680
14680
|
} catch (K) {
|
|
14681
14681
|
te = K;
|
|
14682
14682
|
}
|
|
@@ -14693,7 +14693,7 @@ function KP(t = {}) {
|
|
|
14693
14693
|
}, je = (D, P = {}) => {
|
|
14694
14694
|
le(i, D) && (vt(P.defaultValue) ? W(D, cn(le(r, D))) : (W(D, P.defaultValue), Ue(r, D, cn(P.defaultValue))), P.keepTouched || St(n.touchedFields, D), P.keepDirty || (St(n.dirtyFields, D), n.isDirty = P.defaultValue ? N(D, cn(le(r, D))) : N()), P.keepError || (St(n.errors, D), f.isValid && v()), u.state.next({ ...n }));
|
|
14695
14695
|
}, Ze = (D, P = {}) => {
|
|
14696
|
-
const H = D ? cn(D) : r, te = cn(H),
|
|
14696
|
+
const H = D ? cn(D) : r, te = cn(H), oe = dn(D), K = oe ? r : te;
|
|
14697
14697
|
if (P.keepDefaultValues || (r = H), !P.keepValues) {
|
|
14698
14698
|
if (P.keepDirtyValues) {
|
|
14699
14699
|
const he = /* @__PURE__ */ new Set([
|
|
@@ -14735,9 +14735,9 @@ function KP(t = {}) {
|
|
|
14735
14735
|
focus: ""
|
|
14736
14736
|
}, s.mount = !f.isValid || !!P.keepIsValid || !!P.keepDirtyValues, s.watch = !!e.shouldUnregister, u.state.next({
|
|
14737
14737
|
submitCount: P.keepSubmitCount ? n.submitCount : 0,
|
|
14738
|
-
isDirty:
|
|
14738
|
+
isDirty: oe ? !1 : P.keepDirty ? n.isDirty : !!(P.keepDefaultValues && !lr(D, r)),
|
|
14739
14739
|
isSubmitted: P.keepIsSubmitted ? n.isSubmitted : !1,
|
|
14740
|
-
dirtyFields:
|
|
14740
|
+
dirtyFields: oe ? {} : P.keepDirtyValues ? P.keepDefaultValues && o ? Us(r, o) : n.dirtyFields : P.keepDefaultValues && D ? Us(r, D) : P.keepDirty ? n.dirtyFields : {},
|
|
14741
14741
|
touchedFields: P.keepTouched ? n.touchedFields : {},
|
|
14742
14742
|
errors: P.keepErrors ? n.errors : {},
|
|
14743
14743
|
isSubmitSuccessful: P.keepIsSubmitSuccessful ? n.isSubmitSuccessful : !1,
|
|
@@ -14826,8 +14826,8 @@ function KP(t = {}) {
|
|
|
14826
14826
|
setFocus: (D, P = {}) => {
|
|
14827
14827
|
const H = le(i, D), te = H && H._f;
|
|
14828
14828
|
if (te) {
|
|
14829
|
-
const
|
|
14830
|
-
|
|
14829
|
+
const oe = te.refs ? te.refs[0] : te.ref;
|
|
14830
|
+
oe.focus && (oe.focus(), P.shouldSelect && fi(oe.select) && oe.select());
|
|
14831
14831
|
}
|
|
14832
14832
|
},
|
|
14833
14833
|
getFieldState: ue
|
|
@@ -18198,7 +18198,7 @@ button {
|
|
|
18198
18198
|
|
|
18199
18199
|
`;
|
|
18200
18200
|
function r$(t) {
|
|
18201
|
-
const e =
|
|
18201
|
+
const e = re(null), n = re(null);
|
|
18202
18202
|
return n.current && n.current.update(t), ne(() => (n.current = new r2({
|
|
18203
18203
|
...t,
|
|
18204
18204
|
ref: e
|
|
@@ -18312,7 +18312,7 @@ function f$({ firstName: t, lastName: e, src: n, canReact: i, lastEmojiReaction:
|
|
|
18312
18312
|
});
|
|
18313
18313
|
}
|
|
18314
18314
|
function u$(t) {
|
|
18315
|
-
const e =
|
|
18315
|
+
const e = re(null), n = re(), i = Te(() => {
|
|
18316
18316
|
const o = e.current;
|
|
18317
18317
|
if (!o) return;
|
|
18318
18318
|
const s = v_.create(o, {
|
|
@@ -18344,7 +18344,7 @@ function u$(t) {
|
|
|
18344
18344
|
return { canvasRef: e, handleMouseEnter: i, handleMouseLeave: r };
|
|
18345
18345
|
}
|
|
18346
18346
|
const h$ = ({ link: t, firstName: e, lastName: n, src: i, onClick: r, canReact: o = !0, lastEmojiReaction: s, onReactionSelect: a, type: l, typeLabel: d, date: f }) => {
|
|
18347
|
-
const [u, h] = B(s), p =
|
|
18347
|
+
const [u, h] = B(s), p = re(null);
|
|
18348
18348
|
ne(() => {
|
|
18349
18349
|
h(s);
|
|
18350
18350
|
}, [s]);
|
|
@@ -18450,7 +18450,7 @@ const h$ = ({ link: t, firstName: e, lastName: n, src: i, onClick: r, canReact:
|
|
|
18450
18450
|
})]
|
|
18451
18451
|
});
|
|
18452
18452
|
function m$({ emoji: t, initialCount: e, hasReacted: n = !1, users: i, onInteraction: r }) {
|
|
18453
|
-
const [o, s] = B(n), [a, l] = B(e), d =
|
|
18453
|
+
const [o, s] = B(n), [a, l] = B(e), d = re(null), { fireEmojiConfetti: f } = y_(), u = (m, g) => {
|
|
18454
18454
|
m.stopPropagation(), l(a + (o ? -1 : 1)), s(!o), r == null || r(g), o || f(g, d);
|
|
18455
18455
|
}, h = (i == null ? void 0 : i.map((m) => m.name).join(", ")) || "", p = c(_o, {
|
|
18456
18456
|
ref: d,
|
|
@@ -18847,7 +18847,7 @@ const v4 = (t) => {
|
|
|
18847
18847
|
})]
|
|
18848
18848
|
})]
|
|
18849
18849
|
}), ioe = ft(C$, _$), S$ = ({ description: t }) => {
|
|
18850
|
-
const [e, n] = B(!1), [i, r] = B(!1), o = be(), s =
|
|
18850
|
+
const [e, n] = B(!1), [i, r] = B(!1), o = be(), s = re(null), a = re(null), l = Ic({
|
|
18851
18851
|
ref: s
|
|
18852
18852
|
}), d = Ic({
|
|
18853
18853
|
ref: a
|
|
@@ -19704,7 +19704,7 @@ function H$(t, e, n) {
|
|
|
19704
19704
|
return !e && t ? n === "hidden" : e && !t ? n !== "hidden" : !1;
|
|
19705
19705
|
}
|
|
19706
19706
|
function V$(t, e) {
|
|
19707
|
-
const { sidebarState: n, toggleSidebar: i } = Rs(), r =
|
|
19707
|
+
const { sidebarState: n, toggleSidebar: i } = Rs(), r = re(t);
|
|
19708
19708
|
ne(() => {
|
|
19709
19709
|
e && H$(t, r.current, n) && i({
|
|
19710
19710
|
isInvokedByUser: !1
|
|
@@ -20398,7 +20398,7 @@ function Y$({ title: t, items: e, className: n, activeItem: i, collapsible: r =
|
|
|
20398
20398
|
ne(() => {
|
|
20399
20399
|
w(e);
|
|
20400
20400
|
}, [e]);
|
|
20401
|
-
const x =
|
|
20401
|
+
const x = re(null), b = Te((L) => L.map((S) => ({
|
|
20402
20402
|
id: S.id,
|
|
20403
20403
|
...S.children && {
|
|
20404
20404
|
children: b(S.children)
|
|
@@ -20689,7 +20689,7 @@ function nH({ isExpanded: t }) {
|
|
|
20689
20689
|
});
|
|
20690
20690
|
}
|
|
20691
20691
|
function iH() {
|
|
20692
|
-
const { prevSidebarState: t, sidebarState: e, toggleSidebar: n, isSmallScreen: i } = Rs(), r =
|
|
20692
|
+
const { prevSidebarState: t, sidebarState: e, toggleSidebar: n, isSmallScreen: i } = Rs(), r = re(null);
|
|
20693
20693
|
return ne(() => {
|
|
20694
20694
|
var o;
|
|
20695
20695
|
t === "hidden" && e === "locked" && ((o = r.current) == null || o.focus());
|
|
@@ -20789,7 +20789,7 @@ const sH = ({ item: t, active: e }) => k("div", {
|
|
|
20789
20789
|
}, lH = ({ item: t, tooltip: e, dragConstraints: n, onRemove: i, index: r, total: o, onMove: s, onReorderFinish: a, isSortable: l = !0 }) => {
|
|
20790
20790
|
const d = be(), { isDragging: f, setIsDragging: u, draggedItemId: h, setDraggedItemId: p } = a2(), { isActive: m } = hf(), g = m(t.href, {
|
|
20791
20791
|
exact: t.exactMatch
|
|
20792
|
-
}), v =
|
|
20792
|
+
}), v = re(!1), [y, w] = B(!1), x = r === 0, b = r === o - 1, C = o === 1, _ = ee(() => {
|
|
20793
20793
|
const N = [];
|
|
20794
20794
|
return !C && !x && N.push({
|
|
20795
20795
|
label: d.actions.moveUp,
|
|
@@ -20930,7 +20930,7 @@ const sH = ({ item: t, active: e }) => k("div", {
|
|
|
20930
20930
|
})
|
|
20931
20931
|
});
|
|
20932
20932
|
}, z1 = ({ category: t, isSortable: e = !1, dragConstraints: n, onCollapse: i, onDragEnd: r, currentOrder: o }) => {
|
|
20933
|
-
const { isDragging: s, setIsDragging: a } = a2(), l =
|
|
20933
|
+
const { isDragging: s, setIsDragging: a } = a2(), l = re(!1), d = Cp(), f = () => {
|
|
20934
20934
|
a(!0), l.current = !0;
|
|
20935
20935
|
}, u = () => {
|
|
20936
20936
|
a(!1), setTimeout(() => {
|
|
@@ -21004,7 +21004,7 @@ const sH = ({ item: t, active: e }) => k("div", {
|
|
|
21004
21004
|
}) : p;
|
|
21005
21005
|
};
|
|
21006
21006
|
function hoe({ tree: t, onCollapse: e, onSort: n, onFavoritesChange: i, favorites: r }) {
|
|
21007
|
-
const o =
|
|
21007
|
+
const o = re(null), s = t.filter((m) => m.isSortable === !1), [a, l] = B(t.filter((m) => m.isSortable !== !1)), [d, f] = B(0), u = Te((m) => {
|
|
21008
21008
|
l(m);
|
|
21009
21009
|
}, []), h = Te((m) => {
|
|
21010
21010
|
n == null || n(m);
|
|
@@ -21028,7 +21028,7 @@ function hoe({ tree: t, onCollapse: e, onSort: n, onFavoritesChange: i, favorite
|
|
|
21028
21028
|
});
|
|
21029
21029
|
}
|
|
21030
21030
|
function cH({ nonSortableItems: t, sortableItems: e, setSortableItems: n, containerRef: i, onCollapse: r, onDragEnd: o, favorites: s = [], onFavoritesChange: a, forceUpdate: l, disableDragging: d = !1 }) {
|
|
21031
|
-
const f = be(), { isDragging: u } = a2(), h = t.some((R) => R.isRoot), p = t.filter((R) => !R.isRoot).length > 0, m = e.length > 0, g =
|
|
21031
|
+
const f = be(), { isDragging: u } = a2(), h = t.some((R) => R.isRoot), p = t.filter((R) => !R.isRoot).length > 0, m = e.length > 0, g = re(null), [v, y] = B(s), w = s.length > 0;
|
|
21032
21032
|
ne(() => {
|
|
21033
21033
|
JSON.stringify(s) !== JSON.stringify(v) && y(s);
|
|
21034
21034
|
}, [s]);
|
|
@@ -21041,7 +21041,7 @@ function cH({ nonSortableItems: t, sortableItems: e, setSortableItems: n, contai
|
|
|
21041
21041
|
if (F < 0 || F >= v.length) return;
|
|
21042
21042
|
const $ = [...v], [W] = $.splice(R, 1);
|
|
21043
21043
|
$.splice(F, 0, W), y($), a == null || a($);
|
|
21044
|
-
}, [v, a]), [_, A] = B(!1), E =
|
|
21044
|
+
}, [v, a]), [_, A] = B(!1), E = re(null);
|
|
21045
21045
|
ne(() => {
|
|
21046
21046
|
e.length > 0 && !_ && (n([...e]), A(!0));
|
|
21047
21047
|
}, [e, n, _]), ne(() => {
|
|
@@ -21236,7 +21236,7 @@ function moe({ header: t, body: e, footer: n, onFooterDropdownClick: i }) {
|
|
|
21236
21236
|
});
|
|
21237
21237
|
}
|
|
21238
21238
|
const fH = sn({
|
|
21239
|
-
base: "
|
|
21239
|
+
base: "w-full rounded-md p-2 pr-3 text-f1-foreground",
|
|
21240
21240
|
variants: {
|
|
21241
21241
|
variant: {
|
|
21242
21242
|
info: "bg-f1-background-info",
|
|
@@ -21263,50 +21263,57 @@ const fH = sn({
|
|
|
21263
21263
|
defaultVariants: {
|
|
21264
21264
|
variant: "info"
|
|
21265
21265
|
}
|
|
21266
|
-
}), goe = ({ title: t, description: e, action: n, link: i, icon: r, variant: o = "neutral" }) =>
|
|
21267
|
-
|
|
21268
|
-
|
|
21269
|
-
|
|
21270
|
-
|
|
21271
|
-
|
|
21272
|
-
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21284
|
-
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
}),
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
|
|
21266
|
+
}), goe = ({ title: t, description: e, action: n, link: i, icon: r, variant: o = "neutral" }) => {
|
|
21267
|
+
const s = re(null);
|
|
21268
|
+
return c("div", {
|
|
21269
|
+
ref: s,
|
|
21270
|
+
className: "@container",
|
|
21271
|
+
children: c("div", {
|
|
21272
|
+
className: fH({
|
|
21273
|
+
variant: o
|
|
21274
|
+
}),
|
|
21275
|
+
children: k("div", {
|
|
21276
|
+
className: M("flex flex-col items-start gap-3 @sm:flex-row @sm:items-center @sm:justify-between"),
|
|
21277
|
+
children: [k("div", {
|
|
21278
|
+
className: "flex flex-row gap-2",
|
|
21279
|
+
children: [c("div", {
|
|
21280
|
+
className: "h-6 w-6 flex-shrink-0",
|
|
21281
|
+
children: o === "neutral" ? c(Bc, {
|
|
21282
|
+
icon: r || gp,
|
|
21283
|
+
size: "sm"
|
|
21284
|
+
}) : c(As, {
|
|
21285
|
+
type: o,
|
|
21286
|
+
size: "sm"
|
|
21287
|
+
})
|
|
21288
|
+
}), k("div", {
|
|
21289
|
+
className: "flex flex-col gap-0.5",
|
|
21290
|
+
children: [c("p", {
|
|
21291
|
+
className: uH({
|
|
21292
|
+
variant: o
|
|
21293
|
+
}),
|
|
21294
|
+
children: t
|
|
21295
|
+
}), c("p", {
|
|
21296
|
+
className: "text-base text-f1-foreground-secondary",
|
|
21297
|
+
children: e
|
|
21298
|
+
})]
|
|
21299
|
+
})]
|
|
21300
|
+
}), (n || i) && k("div", {
|
|
21301
|
+
className: M("flex flex-shrink-0 flex-row items-center gap-3 pl-8 @sm:pl-0"),
|
|
21302
|
+
children: [i && c(Ii, {
|
|
21303
|
+
href: i.href,
|
|
21304
|
+
target: "_blank",
|
|
21305
|
+
variant: "link",
|
|
21306
|
+
children: i.label
|
|
21307
|
+
}), n && c(ie, {
|
|
21308
|
+
label: n.label,
|
|
21309
|
+
variant: "outline",
|
|
21310
|
+
onClick: n.onClick
|
|
21311
|
+
})]
|
|
21293
21312
|
})]
|
|
21294
|
-
})
|
|
21295
|
-
})
|
|
21296
|
-
|
|
21297
|
-
|
|
21298
|
-
href: i.href,
|
|
21299
|
-
target: "_blank",
|
|
21300
|
-
variant: "link",
|
|
21301
|
-
children: i.label
|
|
21302
|
-
}), n && c(ie, {
|
|
21303
|
-
label: n.label,
|
|
21304
|
-
variant: "outline",
|
|
21305
|
-
onClick: n.onClick
|
|
21306
|
-
})]
|
|
21307
|
-
})]
|
|
21308
|
-
})
|
|
21309
|
-
}), hH = {
|
|
21313
|
+
})
|
|
21314
|
+
})
|
|
21315
|
+
});
|
|
21316
|
+
}, hH = {
|
|
21310
21317
|
waiting: "neutral",
|
|
21311
21318
|
pending: "neutral",
|
|
21312
21319
|
approved: "positive",
|
|
@@ -21645,7 +21652,7 @@ const kH = (t) => Array.isArray(t) ? t.every((e) => yH(e)) ? t : [{
|
|
|
21645
21652
|
icon: ff,
|
|
21646
21653
|
className: "text"
|
|
21647
21654
|
}), EH = ({ value: t, onChange: e, loading: n = !1 }) => {
|
|
21648
|
-
const [i, r] = B(!1), o = Or(), s =
|
|
21655
|
+
const [i, r] = B(!1), o = Or(), s = re(null), a = re(null), l = be(), d = () => {
|
|
21649
21656
|
e(void 0), r(!1), a != null && a.current && (a.current.value = "");
|
|
21650
21657
|
};
|
|
21651
21658
|
L_(s, () => {
|
|
@@ -22375,7 +22382,7 @@ function ZH(t) {
|
|
|
22375
22382
|
}
|
|
22376
22383
|
const JH = 'button, a[href], input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="option"], [role="radio"], [role="switch"]', YH = (t) => t instanceof HTMLElement ? !!t.closest(JH) : !1;
|
|
22377
22384
|
function XH({ drag: t, id: e, index: n, total: i, laneId: r, draggable: o = !1, showIndicator: s = !0, disabledEdges: a = [], forcedEdge: l = null, ...d }) {
|
|
22378
|
-
const f =
|
|
22385
|
+
const f = re(null), u = re(null), [h, p] = B(null);
|
|
22379
22386
|
T_({
|
|
22380
22387
|
ref: f,
|
|
22381
22388
|
payload: {
|
|
@@ -22457,7 +22464,7 @@ function XH({ drag: t, id: e, index: n, total: i, laneId: r, draggable: o = !1,
|
|
|
22457
22464
|
});
|
|
22458
22465
|
}
|
|
22459
22466
|
const c2 = (t, e, n, i) => {
|
|
22460
|
-
const r =
|
|
22467
|
+
const r = re(null);
|
|
22461
22468
|
return ne(() => {
|
|
22462
22469
|
if (!Hc(t) || !t.hasMore)
|
|
22463
22470
|
return;
|
|
@@ -22663,7 +22670,7 @@ function oV(t) {
|
|
|
22663
22670
|
};
|
|
22664
22671
|
}
|
|
22665
22672
|
function sV({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
22666
|
-
const r =
|
|
22673
|
+
const r = re(null), o = re(null), s = re(null), [a, l] = B(!1), [d, f] = B(null), u = !!(t && e), h = re(null), p = re(null), m = re(null), g = re(0), v = re(null), [y, w] = B(!1), [x, b] = B(null), [C, _] = B(null), [A, E] = B(!1), [L, S] = B(-1);
|
|
22667
22674
|
return D_(u ? {
|
|
22668
22675
|
ref: r,
|
|
22669
22676
|
id: t,
|
|
@@ -22899,7 +22906,7 @@ function sV({ id: t, getLaneResourceIndexById: e, onMove: n, ...i }) {
|
|
|
22899
22906
|
});
|
|
22900
22907
|
}
|
|
22901
22908
|
function A4(t) {
|
|
22902
|
-
const { lanes: e, renderCard: n, getKey: i, className: r, dnd: o, loading: s, onCreate: a } = t, [l, d] = B(() => e), f =
|
|
22909
|
+
const { lanes: e, renderCard: n, getKey: i, className: r, dnd: o, loading: s, onCreate: a } = t, [l, d] = B(() => e), f = re(""), u = re(null);
|
|
22903
22910
|
ne(() => {
|
|
22904
22911
|
const _ = e.map((A) => `${A.id}:[${A.items.map((E, L) => i(E, L, A.id)).join(",")}]`).join("|");
|
|
22905
22912
|
if (u.current !== null)
|
|
@@ -22909,7 +22916,7 @@ function A4(t) {
|
|
|
22909
22916
|
return;
|
|
22910
22917
|
else _ !== f.current && (f.current = _, d(e));
|
|
22911
22918
|
}, [e, i, l]);
|
|
22912
|
-
const [h, p] = B(!1), m =
|
|
22919
|
+
const [h, p] = B(!1), m = re(null), g = re(null), v = re(null), y = re(null), w = re(0), x = re(null);
|
|
22913
22920
|
_9(({ phase: _ }) => {
|
|
22914
22921
|
_ === "start" && p(!0), (_ === "drop" || _ === "cancel") && p(!1);
|
|
22915
22922
|
}), ne(() => {
|
|
@@ -23952,7 +23959,7 @@ const CV = {
|
|
|
23952
23959
|
});
|
|
23953
23960
|
};
|
|
23954
23961
|
function ci({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r = !1, sticky: o, colSpan: s, className: a, hasChildren: l = !1, tableWithChildren: d = !1, depth: f = 0, expandedLevels: u = 0, onExpand: h, loading: p = !1, type: m = "basic" }) {
|
|
23955
|
-
const { isScrolled: g, isScrolledRight: v } = Ay(), { actions: y } = be(), w = (o == null ? void 0 : o.left) !== void 0, x = (o == null ? void 0 : o.right) !== void 0, b = w || x, C = o == null ? void 0 : o.left, _ = o == null ? void 0 : o.right, A = Dy(i), E =
|
|
23962
|
+
const { isScrolled: g, isScrolledRight: v } = Ay(), { actions: y } = be(), w = (o == null ? void 0 : o.left) !== void 0, x = (o == null ? void 0 : o.right) !== void 0, b = w || x, C = o == null ? void 0 : o.left, _ = o == null ? void 0 : o.right, A = Dy(i), E = re(null), L = Py(r, d) && {
|
|
23956
23963
|
marginLeft: `${(f + 1) * 24}px`
|
|
23957
23964
|
};
|
|
23958
23965
|
return k(Ty, {
|
|
@@ -24168,7 +24175,7 @@ const hr = T(({ children: t, selected: e, className: n, sticky: i }, r) => c(Ey,
|
|
|
24168
24175
|
}));
|
|
24169
24176
|
hr.displayName = "TableRow";
|
|
24170
24177
|
function DV({ children: t, loading: e = !1 }) {
|
|
24171
|
-
const [n, i] = B(!1), [r, o] = B(!1), s =
|
|
24178
|
+
const [n, i] = B(!1), [r, o] = B(!1), s = re(null);
|
|
24172
24179
|
return ne(() => {
|
|
24173
24180
|
const a = s.current;
|
|
24174
24181
|
if (!a) return;
|
|
@@ -24285,7 +24292,7 @@ const $y = (t, e, n) => {
|
|
|
24285
24292
|
}, [i, t, e, n]);
|
|
24286
24293
|
return { children: i, loadChildren: d, isLoading: o, childrenType: a };
|
|
24287
24294
|
}, Hy = 3, BV = ({ rowRef: t, rowIndex: e, source: n, item: i, columns: r, frozenColumnsLeft: o, depth: s, groupIndex: a, onCheckedChange: l, selectedItems: d, checkColumnWidth: f, tableWithChildren: u }) => {
|
|
24288
|
-
const h =
|
|
24295
|
+
const h = re(null), p = t == null ? void 0 : t.current;
|
|
24289
24296
|
return ul(() => {
|
|
24290
24297
|
if (h.current && p) {
|
|
24291
24298
|
const m = t.current.getBoundingClientRect().height;
|
|
@@ -24319,7 +24326,7 @@ const $y = (t, e, n) => {
|
|
|
24319
24326
|
...e
|
|
24320
24327
|
}, `row-loading-${s}`));
|
|
24321
24328
|
}, HV = ({ source: t, item: e, onCheckedChange: n, selectedItems: i, columns: r, frozenColumnsLeft: o, checkColumnWidth: s, index: a, groupIndex: l, tableWithChildren: d, depth: f = 0, onChildrenExpand: u, isLastOfRoot: h = !1 }) => {
|
|
24322
|
-
const [p, m] = B(0), [g, v] = B(0), [y, w] = B(!1), x =
|
|
24329
|
+
const [p, m] = B(0), [g, v] = B(0), [y, w] = B(!1), x = re(null), { children: b, loadChildren: C, isLoading: _, childrenType: A } = PV({
|
|
24323
24330
|
item: e,
|
|
24324
24331
|
filters: t.currentFilters,
|
|
24325
24332
|
fetchChildren: t.fetchChildren
|
|
@@ -25221,7 +25228,7 @@ const XV = (t) => "date" in t, QV = {
|
|
|
25221
25228
|
storageReady: r
|
|
25222
25229
|
};
|
|
25223
25230
|
}, rz = ({ source: t, visualizations: e, onSelectItems: n, onBulkAction: i, onStateChange: r, emptyStates: o, fullHeight: s, storage: a, id: l, tmpFullWidth: d }) => {
|
|
25224
|
-
const { filters: f, currentFilters: u, setCurrentFilters: h, presets: p, presetsLoading: m, currentNavigationFilters: g, navigationFilters: v, setCurrentNavigationFilters: y, search: w, currentSearch: x, setCurrentSearch: b, isLoading: C, primaryActions: _, secondaryActions: A, totalItemSummary: E, currentGrouping: L, setCurrentGrouping: S, grouping: I, currentSortings: N, setCurrentSortings: O, sortings: R } = t, [F, $] = B(0), W =
|
|
25231
|
+
const { filters: f, currentFilters: u, setCurrentFilters: h, presets: p, presetsLoading: m, currentNavigationFilters: g, navigationFilters: v, setCurrentNavigationFilters: y, search: w, currentSearch: x, setCurrentSearch: b, isLoading: C, primaryActions: _, secondaryActions: A, totalItemSummary: E, currentGrouping: L, setCurrentGrouping: S, grouping: I, currentSortings: N, setCurrentSortings: O, sortings: R } = t, [F, $] = B(0), W = re(N), { emitSortingChange: J } = G_({
|
|
25225
25232
|
defaultSorting: W.current
|
|
25226
25233
|
});
|
|
25227
25234
|
ne(() => {
|
|
@@ -25277,7 +25284,7 @@ const XV = (t) => "date" in t, QV = {
|
|
|
25277
25284
|
}) : "warningMessage" in Xe && de({
|
|
25278
25285
|
warningMessage: Xe.warningMessage
|
|
25279
25286
|
}));
|
|
25280
|
-
}, [P, H] = B(void 0), [te,
|
|
25287
|
+
}, [P, H] = B(void 0), [te, oe] = B(!0), K = ee(() => [w == null ? void 0 : w.enabled, e.length > 1].some(Boolean), [w, e]), { emptyState: he, setEmptyStateType: Me } = NH(o, {
|
|
25281
25288
|
retry: () => {
|
|
25282
25289
|
Me(!1), h({
|
|
25283
25290
|
...u
|
|
@@ -25287,7 +25294,7 @@ const XV = (t) => "date" in t, QV = {
|
|
|
25287
25294
|
Me(!1), h({}), b(void 0);
|
|
25288
25295
|
}
|
|
25289
25296
|
}), Je = (Pe, nt, Xe) => Pe === 0 ? Object.keys(nt).length > 0 || Xe ? "no-results" : "no-data" : !1, Ye = ({ totalItems: Pe, filters: nt, isInitialLoading: Xe, search: Bt }) => {
|
|
25290
|
-
Xe || (
|
|
25297
|
+
Xe || (oe(Xe), H(Pe), Me(Je(Pe, nt, Bt)));
|
|
25291
25298
|
}, Lt = (Pe) => {
|
|
25292
25299
|
Me("error", Pe.cause instanceof Error ? Pe.cause.message : Pe.message);
|
|
25293
25300
|
}, Ws = ph({
|
|
@@ -38574,7 +38581,7 @@ function UG(t) {
|
|
|
38574
38581
|
_[b] = _t, N[b] = _t - W;
|
|
38575
38582
|
}
|
|
38576
38583
|
if (a) {
|
|
38577
|
-
var dt, D = b === "x" ? mn : gn, P = b === "x" ? zn : jn, H = _[C], te = C === "y" ? "height" : "width",
|
|
38584
|
+
var dt, D = b === "x" ? mn : gn, P = b === "x" ? zn : jn, H = _[C], te = C === "y" ? "height" : "width", oe = H + v[D], K = H - v[P], he = [mn, gn].indexOf(y) !== -1, Me = (dt = I == null ? void 0 : I[C]) != null ? dt : 0, Je = he ? oe : H - A[te] - E[te] - Me + S.altAxis, Ye = he ? H + A[te] + E[te] - Me - S.altAxis : K, Lt = p && he ? gG(Je, H, Ye) : ua(p ? Je : oe, H, p ? Ye : K);
|
|
38578
38585
|
_[C] = Lt, N[C] = Lt - H;
|
|
38579
38586
|
}
|
|
38580
38587
|
e.modifiersData[i] = N;
|
|
@@ -39181,7 +39188,7 @@ function OK(t, e) {
|
|
|
39181
39188
|
var E = w.map(function(z) {
|
|
39182
39189
|
return z.fn(b);
|
|
39183
39190
|
}), L = t.hasAttribute("aria-expanded");
|
|
39184
|
-
return fe(), ce(), W(), J("onCreate", [b]), n.showOnCreate &&
|
|
39191
|
+
return fe(), ce(), W(), J("onCreate", [b]), n.showOnCreate && oe(), _.addEventListener("mouseenter", function() {
|
|
39185
39192
|
b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
|
|
39186
39193
|
}), _.addEventListener("mouseleave", function() {
|
|
39187
39194
|
b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && R().addEventListener("mousemove", m);
|
|
@@ -39341,7 +39348,7 @@ function OK(t, e) {
|
|
|
39341
39348
|
var Ve = ((me = f) == null ? void 0 : me.type) === "focus";
|
|
39342
39349
|
f = z, g = z.currentTarget, ce(), !b.state.isVisible && hK(z) && Gl.forEach(function(De) {
|
|
39343
39350
|
return De(z);
|
|
39344
|
-
}), z.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || s) && b.props.hideOnClick !== !1 && b.state.isVisible ? Ee = !0 :
|
|
39351
|
+
}), z.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || s) && b.props.hideOnClick !== !1 && b.state.isVisible ? Ee = !0 : oe(z), z.type === "click" && (s = !Ee), Ee && !Ve && K(z);
|
|
39345
39352
|
}
|
|
39346
39353
|
}
|
|
39347
39354
|
function Le(z) {
|
|
@@ -39447,7 +39454,7 @@ function OK(t, e) {
|
|
|
39447
39454
|
function te() {
|
|
39448
39455
|
return wd(_.querySelectorAll("[data-tippy-root]"));
|
|
39449
39456
|
}
|
|
39450
|
-
function
|
|
39457
|
+
function oe(z) {
|
|
39451
39458
|
b.clearDelayTimeouts(), z && J("onTrigger", [b, z]), Oe();
|
|
39452
39459
|
var me = $(!0), Ee = S(), Ve = Ee[0], De = Ee[1];
|
|
39453
39460
|
di.isTouch && Ve === "hold" && De && (me = De), me ? i = setTimeout(function() {
|
|
@@ -40278,7 +40285,7 @@ class U2 {
|
|
|
40278
40285
|
}
|
|
40279
40286
|
}
|
|
40280
40287
|
function G2(t = {}, e = []) {
|
|
40281
|
-
const n =
|
|
40288
|
+
const n = re(t);
|
|
40282
40289
|
n.current = t;
|
|
40283
40290
|
const [i] = B(() => new U2(n)), r = t1.useSyncExternalStore(i.subscribe, i.getEditor, i.getServerSnapshot);
|
|
40284
40291
|
return O9(r), ne(i.onRender(e)), ZK({
|
|
@@ -47251,7 +47258,7 @@ const BX = RX.extend({
|
|
|
47251
47258
|
currentConfig: l
|
|
47252
47259
|
}), ym, vm(t), gm(t), $w(e, n)];
|
|
47253
47260
|
}, UX = (t, e, n, i, r) => {
|
|
47254
|
-
const o = ee(() => qX(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), s =
|
|
47261
|
+
const o = ee(() => qX(r.placeholder || "", r.toolbarLabels, r.slashCommandGroupLabels, r.moodTrackerLabels, r.liveCompanionLabels, r.transcriptLabels), [r]), s = re(null), a = Te(({ editor: d }) => {
|
|
47255
47262
|
s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
47256
47263
|
const { from: f, to: u } = d.state.selection, h = d.isEmpty;
|
|
47257
47264
|
h && (t != null && t.selectedAction) && !e ? i({
|
|
@@ -47341,7 +47348,7 @@ const BX = RX.extend({
|
|
|
47341
47348
|
});
|
|
47342
47349
|
}, JX = ({ node: t, updateAttributes: e, deleteNode: n, extension: i, editor: r, getPos: o }) => {
|
|
47343
47350
|
var x;
|
|
47344
|
-
const s = t.attrs.data, a = i.options.currentConfig || t.attrs.config, l =
|
|
47351
|
+
const s = t.attrs.data, a = i.options.currentConfig || t.attrs.config, l = re(Math.random().toString(36).substr(2, 9)).current, { isLoading: d, setIsLoading: f } = GX(s), { title: u, emoji: h } = KX(s, a), p = UX(s, d, l, e, a);
|
|
47345
47352
|
ne(() => {
|
|
47346
47353
|
if (s != null && s.content && (s != null && s.isEditable) && r && o) {
|
|
47347
47354
|
const b = o();
|
|
@@ -47910,7 +47917,7 @@ const BX = RX.extend({
|
|
|
47910
47917
|
icon: A0
|
|
47911
47918
|
}]
|
|
47912
47919
|
}], Bw = T(({ items: t, groups: e, command: n }, i) => {
|
|
47913
|
-
const [r, o] = B(0), s =
|
|
47920
|
+
const [r, o] = B(0), s = re(null), a = re(null), l = e || [{
|
|
47914
47921
|
title: "",
|
|
47915
47922
|
commands: t
|
|
47916
47923
|
}], d = l.flatMap((v) => v.commands), f = Te((v) => {
|
|
@@ -55454,7 +55461,7 @@ Ke.create({
|
|
|
55454
55461
|
}
|
|
55455
55462
|
});
|
|
55456
55463
|
const Ene = (t) => {
|
|
55457
|
-
const { className: e = "drag-handle", children: n, editor: i, pluginKey: r = jx, onNodeChange: o, tippyOptions: s } = t, [a, l] = B(null), d =
|
|
55464
|
+
const { className: e = "drag-handle", children: n, editor: i, pluginKey: r = jx, onNodeChange: o, tippyOptions: s } = t, [a, l] = B(null), d = re(null);
|
|
55458
55465
|
return ne(() => a ? i.isDestroyed ? () => {
|
|
55459
55466
|
d.current = null;
|
|
55460
55467
|
} : (d.current || (d.current = Wx({
|
|
@@ -55559,7 +55566,7 @@ const Ene = (t) => {
|
|
|
55559
55566
|
}, r))]
|
|
55560
55567
|
})]
|
|
55561
55568
|
}), _oe = T(function({ onChange: e, placeholder: n, initialEditorState: i, readonly: r = !1, labels: o, aiBlockConfig: s, onTitleChange: a, actions: l, secondaryActions: d, metadata: f, withPadding: u = !1 }, h) {
|
|
55562
|
-
const { toolbarLabels: p, slashCommandGroupLabels: m, aiBlockLabels: g, moodTrackerLabels: v, liveCompanionLabels: y, transcriptLabels: w } = o, x =
|
|
55569
|
+
const { toolbarLabels: p, slashCommandGroupLabels: m, aiBlockLabels: g, moodTrackerLabels: v, liveCompanionLabels: y, transcriptLabels: w } = o, x = re(null), b = re(null), C = Or(), [_] = B(() => (i == null ? void 0 : i.content) || ""), [A, E] = B((i == null ? void 0 : i.title) || "");
|
|
55563
55570
|
ne(() => {
|
|
55564
55571
|
a && a(A);
|
|
55565
55572
|
}, [A, a]);
|
|
@@ -55991,7 +55998,7 @@ const Ene = (t) => {
|
|
|
55991
55998
|
className: "text-f1-icon"
|
|
55992
55999
|
})]
|
|
55993
56000
|
}), $ne = ({ onSelect: t, onClose: e, enhancementOptions: n, inputPlaceholder: i }) => {
|
|
55994
|
-
const [r, o] = B(null), [s, a] = B(""), l =
|
|
56001
|
+
const [r, o] = B(null), [s, a] = B(""), l = re(null), d = re(null), f = re(null);
|
|
55995
56002
|
ne(() => {
|
|
55996
56003
|
l.current && l.current.focus();
|
|
55997
56004
|
}, []), ne(() => {
|
|
@@ -56085,7 +56092,7 @@ const Ene = (t) => {
|
|
|
56085
56092
|
})]
|
|
56086
56093
|
});
|
|
56087
56094
|
}, Hne = ({ editor: t, onEnhanceWithAI: e, isLoadingEnhance: n, enhanceConfig: i, disableButtons: r, hideLabel: o, position: s = "bottom", setLastIntent: a }) => {
|
|
56088
|
-
const l =
|
|
56095
|
+
const l = re(null), [d, f] = B(!1), u = (h) => {
|
|
56089
56096
|
h.preventDefault(), l.current ? f((p) => !p) : f(!1);
|
|
56090
56097
|
};
|
|
56091
56098
|
return k(dl, {
|
|
@@ -56277,7 +56284,7 @@ const Ene = (t) => {
|
|
|
56277
56284
|
})]
|
|
56278
56285
|
});
|
|
56279
56286
|
}, Gne = ({ editor: t, maxCharacters: e, secondaryAction: n, primaryAction: i, fileInputRef: r, canUseFiles: o, onEnhanceWithAI: s, isLoadingEnhance: a, enhanceConfig: l, isFullscreen: d, setLastIntent: f, toolbarLabels: u, disableButtons: h, setIsToolbarOpen: p, isToolbarOpen: m, plainHtmlMode: g }) => {
|
|
56280
|
-
const [v, y] = B(!1), w =
|
|
56287
|
+
const [v, y] = B(!1), w = re(null), [x, b] = B(0);
|
|
56281
56288
|
ne(() => {
|
|
56282
56289
|
w.current && b(w.current.offsetWidth);
|
|
56283
56290
|
const _ = () => {
|
|
@@ -56527,7 +56534,7 @@ const eie = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
56527
56534
|
if (!t) return null;
|
|
56528
56535
|
t.commands.setContent(e);
|
|
56529
56536
|
}, aie = T(function({ mentionsConfig: e, enhanceConfig: n, filesConfig: i, secondaryAction: r, primaryAction: o, maxCharacters: s, initialEditorState: a, onChange: l, placeholder: d, toolbarLabels: f, title: u, errorConfig: h, height: p = "auto", plainHtmlMode: m = !1, fullScreenMode: g = !0 }, v) {
|
|
56530
|
-
const y = Or(), w =
|
|
56537
|
+
const y = Or(), w = re(null), x = re(null), b = re(null), [C, _] = B(!1), [A, E] = B(!0), [L, S] = B(!1), [I, N] = B(!1), [O, R] = B(!1), [F, $] = B(!1), [W, J] = B(null), [se, ce] = B(!1), [we, ue] = B(null), [Se, Ce] = B((a == null ? void 0 : a.files) || []), [Oe, Ae] = B((e == null ? void 0 : e.users) || []), [q, V] = B({
|
|
56531
56538
|
html: (a == null ? void 0 : a.content) || "",
|
|
56532
56539
|
json: null
|
|
56533
56540
|
});
|
|
@@ -57519,7 +57526,7 @@ const eie = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
|
|
|
57519
57526
|
});
|
|
57520
57527
|
});
|
|
57521
57528
|
function Fie(t, e) {
|
|
57522
|
-
const n =
|
|
57529
|
+
const n = re(null), i = re(null), [r, o] = B({
|
|
57523
57530
|
visibleItems: [],
|
|
57524
57531
|
overflowItems: []
|
|
57525
57532
|
});
|
|
@@ -58398,7 +58405,7 @@ function xre(t, e, n) {
|
|
|
58398
58405
|
};
|
|
58399
58406
|
}
|
|
58400
58407
|
var Cre = () => {
|
|
58401
|
-
let [t, e] = B(), n =
|
|
58408
|
+
let [t, e] = B(), n = re(xre(e, 300));
|
|
58402
58409
|
return ne(() => {
|
|
58403
58410
|
let i = () => {
|
|
58404
58411
|
n.current(window.innerWidth);
|
|
@@ -58419,7 +58426,7 @@ var Cre = () => {
|
|
|
58419
58426
|
}, [t]), e;
|
|
58420
58427
|
}, Sre = (t) => {
|
|
58421
58428
|
var e = t, { children: n, style: i, transition: r = !1, transitionDuration: o = 500, transitionStep: s = 50 } = e, a = Qie(e, ["children", "style", "transition", "transitionDuration", "transitionStep"]);
|
|
58422
|
-
let l =
|
|
58429
|
+
let l = re([]), d = re(null), f = Cre(), u = _re(d), { positions: h, containerHeight: p } = vre({ boxesRefs: l, wrapperRef: d, children: n, windowWidth: f, wrapperWidth: u }), m = Bn({ minHeight: p ?? 0, position: "relative" }, i);
|
|
58423
58430
|
return c("div", y1(Bn({ ref: d, style: m }, a), { children: D9.map(n, (g, v) => {
|
|
58424
58431
|
if (typeof g != "object" || !g || !("type" in g)) return g;
|
|
58425
58432
|
let y = { style: wre({ style: g.props.style, position: h[v], transition: r, transitionDuration: o }), ref: (w) => l.current[v] = w };
|
|
@@ -58431,7 +58438,7 @@ const Lre = {
|
|
|
58431
58438
|
md: 480,
|
|
58432
58439
|
lg: 640
|
|
58433
58440
|
}, R6 = T(function({ children: e, widgetWidth: n = "sm" }, i) {
|
|
58434
|
-
const r = Lre[n], [o, s] = B(), a = D9.toArray(e), l =
|
|
58441
|
+
const r = Lre[n], [o, s] = B(), a = D9.toArray(e), l = re(null);
|
|
58435
58442
|
return ne(() => {
|
|
58436
58443
|
const d = () => {
|
|
58437
58444
|
var u;
|