@factorialco/f0-react 6.88.3 → 6.88.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPdfThumbnail-DdrOp7Rm.js → ChatPdfThumbnail-DyN19lpl.js} +1 -1
- package/dist/{CoachmarkProvider-CoPINK6_.js → CoachmarkProvider-DEb5iYR1.js} +2701 -2711
- package/dist/{DocumentToolbar-p4qZSVUD.js → DocumentToolbar-yRNLFw0I.js} +29 -29
- package/dist/{DocxViewer-_Z59Wr2S.js → DocxViewer-DRIhy7xS.js} +10 -10
- package/dist/{F0AiProcessingOverlay-CwJG6TgU.js → F0AiProcessingOverlay-D13utNB6.js} +408 -402
- package/dist/{F0CanvasPanel-CpgOQnbI.js → F0CanvasPanel-CHIKqAx1.js} +1420 -1414
- package/dist/{F0VideoPlayer-CXAjfSnS.js → F0VideoPlayer-DNtsUfgx.js} +143 -139
- package/dist/{LocationMap-Bp7gglCx.js → LocationMap-CjCx8Izp.js} +1 -1
- package/dist/{SheetViewer-DSbC_CR2.js → SheetViewer-Z6YuRpt5.js} +12 -12
- package/dist/{TextViewer-BkgAiijZ.js → TextViewer-BDO172lU.js} +2 -2
- package/dist/ai.d.ts +9 -9
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +9 -9
- package/dist/component-status.js +72 -70
- package/dist/{experimental-Crt7EEav.js → experimental-DTSd_ojK.js} +583 -569
- package/dist/experimental.d.ts +9 -9
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +9 -9
- package/dist/f0.js +396 -388
- package/dist/i18n-provider-defaults.d.ts +9 -9
- package/dist/{index-BP9845Kl.js → index-ChySRaDP.js} +49 -49
- package/dist/index-DZQja3s3.js +4 -0
- package/dist/{pdfWorker-wHv_aPH2.js → pdfWorker-BQ72TLRX.js} +2 -2
- package/package.json +2 -1
- package/dist/index-uG8opRj1.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t, Fragment as F1 } from "react/jsx-runtime";
|
|
2
2
|
import { useInsertionEffect as _r, forwardRef as m, useRef as $, useEffect as z, useLayoutEffect as re, useState as I, useMemo as X, useId as U1, useCallback as _, createContext as z1, useContext as $1, createElement as jr, memo as Or } from "react";
|
|
3
|
-
import { X as Zr, Y as Ur, Z as zr, _ as ft, $ as Gr, a0 as Wr, a1 as qr, a2 as Xr, a3 as Yr, a4 as Kr, a5 as ht, a6 as Qr, a7 as Jr, a8 as ne, a9 as en, aa as tn, ab as rn, ac as nn, ad as on, ae as sn, af as an, ag as ln, y as Ct, ah as cn, ai as dn, o as oe, aj as pt, ak as G1, n as mt, al as un, am as fn, an as hn, ao as Cn, ap as pn, aq as mn, ar as N1, as as gn, at as gt, au as wn, av as vn, l as R1, aw as Ln, ax as xn, ay as wt, az as bn, aA as kn, aB as yn, aC as Mn, aD as Rn, aE as Fn, aF as vt, aG as Nn, aH as Sn, aI as Vn, aJ as Tn, aK as Hn, aL as An, aM as En, aN as $n, aO as Bn, aP as In, aQ as Pn, aR as Dn, E as _n, aS as jn, aT as On, aU as Zn, aV as Un, aW as zn, aX as Gn, aY as Wn, aZ as qn, a_ as Xn, a$ as Yn, b0 as Kn, b1 as Qn, b2 as Jn, b3 as eo, b4 as to, b5 as ro, b6 as no, b7 as oo, U as Lt, b8 as so, b9 as ao, ba as io, bb as lo, bc as xt, R as bt, bd as co, i as uo, be as fo, bf as ho, bg as Co, bh as po, bi as mo, bj as kt, bk as go, bl as wo, bm as vo, bn as Lo, bo as xo, bp as bo, j as ko, bq as yt, br as Mt, bs as yo, bt as Rt, bu as Mo, bv as se, q as Ro, bw as ae, bx as Fo, by as No, bz as ie, O as So, Q as Vo, bA as Ft, bB as To, bC as Ho, bD as Ao, bE as Eo, bF as $o, bG as Bo, bH as Io, bI as Po, bJ as Do, bK as _o, bL as Nt, bM as jo, bN as Oo, bO as Zo, bP as Uo, u as G, bQ as r1, bR as zo, S as u1, bS as St, V as n1, bT as Go, m as w1, bU as Wo, bV as o1, bW as C1, bX as L1, bY as Y, bZ as Vt, t as le, b_ as qo, x as ce, b as y1, b$ as Xo, c0 as Yo, c1 as Ko, d as Tt, c2 as Qo, c3 as Jo, c4 as de, c5 as es, c6 as ts, c7 as rs, c8 as He, c9 as ns, ca as Ht, cb as At, cc as os, cd as ss, ce as as, cf as is, cg as ls, ch as Et, ci as cs, cj as ds, ck as us, cl as E1, cm as $t, cn as Bt, co as It, c as J1, cp as Ae, cq as Pt, cr as fs, cs as hs, ct as B1, cu as Cs, cv as ps, cw as ms, cx as ue, cy as gs, cz as ws, cA as vs, cB as Ls, cC as xs, cD as bs, w as ks, s as ys, cE as K1, v as Dt, cF as Ms, cG as Rs, cH as Ee, cI as _t, cJ as jt, cK as Fs, cL as Ns, cM as Ss, cN as Vs, cO as Ts, cP as Hs } from "./F0CanvasPanel-
|
|
3
|
+
import { X as Zr, Y as Ur, Z as zr, _ as ft, $ as Gr, a0 as Wr, a1 as qr, a2 as Xr, a3 as Yr, a4 as Kr, a5 as ht, a6 as Qr, a7 as Jr, a8 as ne, a9 as en, aa as tn, ab as rn, ac as nn, ad as on, ae as sn, af as an, ag as ln, y as Ct, ah as cn, ai as dn, o as oe, aj as pt, ak as G1, n as mt, al as un, am as fn, an as hn, ao as Cn, ap as pn, aq as mn, ar as N1, as as gn, at as gt, au as wn, av as vn, l as R1, aw as Ln, ax as xn, ay as wt, az as bn, aA as kn, aB as yn, aC as Mn, aD as Rn, aE as Fn, aF as vt, aG as Nn, aH as Sn, aI as Vn, aJ as Tn, aK as Hn, aL as An, aM as En, aN as $n, aO as Bn, aP as In, aQ as Pn, aR as Dn, E as _n, aS as jn, aT as On, aU as Zn, aV as Un, aW as zn, aX as Gn, aY as Wn, aZ as qn, a_ as Xn, a$ as Yn, b0 as Kn, b1 as Qn, b2 as Jn, b3 as eo, b4 as to, b5 as ro, b6 as no, b7 as oo, U as Lt, b8 as so, b9 as ao, ba as io, bb as lo, bc as xt, R as bt, bd as co, i as uo, be as fo, bf as ho, bg as Co, bh as po, bi as mo, bj as kt, bk as go, bl as wo, bm as vo, bn as Lo, bo as xo, bp as bo, j as ko, bq as yt, br as Mt, bs as yo, bt as Rt, bu as Mo, bv as se, q as Ro, bw as ae, bx as Fo, by as No, bz as ie, O as So, Q as Vo, bA as Ft, bB as To, bC as Ho, bD as Ao, bE as Eo, bF as $o, bG as Bo, bH as Io, bI as Po, bJ as Do, bK as _o, bL as Nt, bM as jo, bN as Oo, bO as Zo, bP as Uo, u as G, bQ as r1, bR as zo, S as u1, bS as St, V as n1, bT as Go, m as w1, bU as Wo, bV as o1, bW as C1, bX as L1, bY as Y, bZ as Vt, t as le, b_ as qo, x as ce, b as y1, b$ as Xo, c0 as Yo, c1 as Ko, d as Tt, c2 as Qo, c3 as Jo, c4 as de, c5 as es, c6 as ts, c7 as rs, c8 as He, c9 as ns, ca as Ht, cb as At, cc as os, cd as ss, ce as as, cf as is, cg as ls, ch as Et, ci as cs, cj as ds, ck as us, cl as E1, cm as $t, cn as Bt, co as It, c as J1, cp as Ae, cq as Pt, cr as fs, cs as hs, ct as B1, cu as Cs, cv as ps, cw as ms, cx as ue, cy as gs, cz as ws, cA as vs, cB as Ls, cC as xs, cD as bs, w as ks, s as ys, cE as K1, v as Dt, cF as Ms, cG as Rs, cH as Ee, cI as _t, cJ as jt, cK as Fs, cL as Ns, cM as Ss, cN as Vs, cO as Ts, cP as Hs } from "./F0CanvasPanel-CHIKqAx1.js";
|
|
4
4
|
import { d as b, f as f1, u as As } from "./tooltip-CMBdJvJA.js";
|
|
5
5
|
import { createPortal as Ot } from "react-dom";
|
|
6
6
|
import { defaultTranslations as Es } from "./i18n-provider-defaults.js";
|
|
@@ -4107,7 +4107,7 @@ const _0 = (e, r) => /* @__PURE__ */ i(
|
|
|
4107
4107
|
// `justify-between`, which would strand a lone send button on the left the
|
|
4108
4108
|
// moment the row has nothing else in it.
|
|
4109
4109
|
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 p-3", children: [
|
|
4110
|
-
|
|
4110
|
+
e || r ? /* @__PURE__ */ i(
|
|
4111
4111
|
"div",
|
|
4112
4112
|
{
|
|
4113
4113
|
className: b(
|
|
@@ -4118,7 +4118,7 @@ const _0 = (e, r) => /* @__PURE__ */ i(
|
|
|
4118
4118
|
n ? "shrink-0" : "min-w-0"
|
|
4119
4119
|
),
|
|
4120
4120
|
children: [
|
|
4121
|
-
e
|
|
4121
|
+
e ? /* @__PURE__ */ i(F1, { children: [
|
|
4122
4122
|
/* @__PURE__ */ t(
|
|
4123
4123
|
r1,
|
|
4124
4124
|
{
|
|
@@ -4146,30 +4146,32 @@ const _0 = (e, r) => /* @__PURE__ */ i(
|
|
|
4146
4146
|
onChange: d
|
|
4147
4147
|
}
|
|
4148
4148
|
)
|
|
4149
|
-
] }),
|
|
4150
|
-
r
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4149
|
+
] }) : null,
|
|
4150
|
+
r ? (
|
|
4151
|
+
// Host controls keep their own focus instead of bubbling to the
|
|
4152
|
+
// form's click handler, which intentionally focuses the textarea.
|
|
4153
|
+
/* @__PURE__ */ t(
|
|
4154
|
+
"div",
|
|
4155
|
+
{
|
|
4156
|
+
className: "min-w-0 cursor-default",
|
|
4157
|
+
onClick: (F) => F.stopPropagation(),
|
|
4158
|
+
children: r
|
|
4159
|
+
}
|
|
4160
|
+
)
|
|
4161
|
+
) : null
|
|
4160
4162
|
]
|
|
4161
4163
|
}
|
|
4162
|
-
),
|
|
4163
|
-
n
|
|
4164
|
+
) : null,
|
|
4165
|
+
n ? /* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: n }) : null,
|
|
4164
4166
|
/* @__PURE__ */ i("div", { className: "ml-auto flex shrink-0 items-center gap-2", children: [
|
|
4165
|
-
C
|
|
4167
|
+
C ? /* @__PURE__ */ t(
|
|
4166
4168
|
Yt,
|
|
4167
4169
|
{
|
|
4168
4170
|
inProgress: l,
|
|
4169
4171
|
recordingStatus: g,
|
|
4170
4172
|
onStartRecording: w
|
|
4171
4173
|
}
|
|
4172
|
-
),
|
|
4174
|
+
) : null,
|
|
4173
4175
|
/* @__PURE__ */ t(
|
|
4174
4176
|
Kt,
|
|
4175
4177
|
{
|
|
@@ -4275,7 +4277,7 @@ const y2 = {
|
|
|
4275
4277
|
}
|
|
4276
4278
|
),
|
|
4277
4279
|
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
4278
|
-
e.onGetCredits
|
|
4280
|
+
e.onGetCredits ? /* @__PURE__ */ t(
|
|
4279
4281
|
w1,
|
|
4280
4282
|
{
|
|
4281
4283
|
label: n.ai.creditWarning.getCredits ?? "",
|
|
@@ -4285,8 +4287,8 @@ const y2 = {
|
|
|
4285
4287
|
tooltip: n.ai.creditWarning.getCredits ?? "",
|
|
4286
4288
|
onClick: e.onGetCredits
|
|
4287
4289
|
}
|
|
4288
|
-
),
|
|
4289
|
-
e.onDismiss
|
|
4290
|
+
) : null,
|
|
4291
|
+
e.onDismiss ? /* @__PURE__ */ t(
|
|
4290
4292
|
w1,
|
|
4291
4293
|
{
|
|
4292
4294
|
label: n.ai.creditWarning.dismiss ?? "",
|
|
@@ -4296,7 +4298,7 @@ const y2 = {
|
|
|
4296
4298
|
hideLabel: !0,
|
|
4297
4299
|
onClick: e.onDismiss
|
|
4298
4300
|
}
|
|
4299
|
-
)
|
|
4301
|
+
) : null
|
|
4300
4302
|
] })
|
|
4301
4303
|
] }),
|
|
4302
4304
|
r
|
|
@@ -4496,7 +4498,7 @@ const F2 = ({
|
|
|
4496
4498
|
),
|
|
4497
4499
|
children: [
|
|
4498
4500
|
a,
|
|
4499
|
-
f && !s
|
|
4501
|
+
f && !s ? /* @__PURE__ */ t("span", { className: "f0-chat-cursor-blink", children: "|" }) : null
|
|
4500
4502
|
]
|
|
4501
4503
|
}
|
|
4502
4504
|
)
|
|
@@ -4537,7 +4539,7 @@ const F2 = ({
|
|
|
4537
4539
|
`) ? n + "_" : n
|
|
4538
4540
|
}
|
|
4539
4541
|
),
|
|
4540
|
-
l
|
|
4542
|
+
l ? /* @__PURE__ */ t(
|
|
4541
4543
|
"div",
|
|
4542
4544
|
{
|
|
4543
4545
|
ref: r,
|
|
@@ -4563,8 +4565,8 @@ const F2 = ({
|
|
|
4563
4565
|
) : h.type === "ghost" ? /* @__PURE__ */ t("span", { className: "text-f1-foreground-secondary opacity-50", children: h.text }, w) : /* @__PURE__ */ t("span", { children: h.text }, w)
|
|
4564
4566
|
)
|
|
4565
4567
|
}
|
|
4566
|
-
),
|
|
4567
|
-
!n && !f
|
|
4568
|
+
) : null,
|
|
4569
|
+
!n && !f ? /* @__PURE__ */ t(
|
|
4568
4570
|
"p",
|
|
4569
4571
|
{
|
|
4570
4572
|
className: b(
|
|
@@ -4577,7 +4579,7 @@ const F2 = ({
|
|
|
4577
4579
|
),
|
|
4578
4580
|
children: u.length === 1 ? u[0] : C
|
|
4579
4581
|
}
|
|
4580
|
-
),
|
|
4582
|
+
) : null,
|
|
4581
4583
|
/* @__PURE__ */ t(
|
|
4582
4584
|
"textarea",
|
|
4583
4585
|
{
|
|
@@ -4617,7 +4619,7 @@ const F2 = ({
|
|
|
4617
4619
|
)
|
|
4618
4620
|
}
|
|
4619
4621
|
),
|
|
4620
|
-
f
|
|
4622
|
+
f ? /* @__PURE__ */ t(
|
|
4621
4623
|
N2,
|
|
4622
4624
|
{
|
|
4623
4625
|
placeholders: u,
|
|
@@ -4625,7 +4627,7 @@ const F2 = ({
|
|
|
4625
4627
|
inputValue: n,
|
|
4626
4628
|
inProgress: g ?? !1
|
|
4627
4629
|
}
|
|
4628
|
-
)
|
|
4630
|
+
) : null
|
|
4629
4631
|
]
|
|
4630
4632
|
}
|
|
4631
4633
|
), V2 = 4, T2 = ({
|
|
@@ -4740,7 +4742,7 @@ const _2 = ({
|
|
|
4740
4742
|
) })
|
|
4741
4743
|
}
|
|
4742
4744
|
),
|
|
4743
|
-
v
|
|
4745
|
+
v ? /* @__PURE__ */ i(
|
|
4744
4746
|
ce,
|
|
4745
4747
|
{
|
|
4746
4748
|
side: o,
|
|
@@ -4788,7 +4790,7 @@ const _2 = ({
|
|
|
4788
4790
|
)) })
|
|
4789
4791
|
]
|
|
4790
4792
|
}
|
|
4791
|
-
)
|
|
4793
|
+
) : null
|
|
4792
4794
|
]
|
|
4793
4795
|
}
|
|
4794
4796
|
);
|
|
@@ -5433,7 +5435,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5433
5435
|
...H ? Dr : {},
|
|
5434
5436
|
children: [
|
|
5435
5437
|
/* @__PURE__ */ i("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
|
|
5436
|
-
H1 && !T1
|
|
5438
|
+
H1 && !T1 ? /* @__PURE__ */ t("div", { children: E ? /* @__PURE__ */ t(L1, { initial: !1, children: ye ? /* @__PURE__ */ t(
|
|
5437
5439
|
Y.div,
|
|
5438
5440
|
{
|
|
5439
5441
|
className: "overflow-hidden",
|
|
@@ -5444,7 +5446,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5444
5446
|
children: H1
|
|
5445
5447
|
},
|
|
5446
5448
|
"welcome-suggestions"
|
|
5447
|
-
) }) : H1 }),
|
|
5449
|
+
) : null }) : H1 }) : null,
|
|
5448
5450
|
/* @__PURE__ */ t(M2, { creditWarning: a, children: /* @__PURE__ */ i(
|
|
5449
5451
|
"form",
|
|
5450
5452
|
{
|
|
@@ -5537,14 +5539,14 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5537
5539
|
ease: [0.4, 0, 0.2, 1]
|
|
5538
5540
|
},
|
|
5539
5541
|
children: [
|
|
5540
|
-
f
|
|
5542
|
+
f ? /* @__PURE__ */ t(
|
|
5541
5543
|
F2,
|
|
5542
5544
|
{
|
|
5543
5545
|
quote: f,
|
|
5544
5546
|
onRemove: () => u?.(null)
|
|
5545
5547
|
}
|
|
5546
|
-
),
|
|
5547
|
-
/* @__PURE__ */ t(L1, { initial: !1, children: Ce
|
|
5548
|
+
) : null,
|
|
5549
|
+
/* @__PURE__ */ t(L1, { initial: !1, children: Ce ? /* @__PURE__ */ t(
|
|
5548
5550
|
Y.div,
|
|
5549
5551
|
{
|
|
5550
5552
|
role: "alert",
|
|
@@ -5572,7 +5574,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5572
5574
|
)
|
|
5573
5575
|
},
|
|
5574
5576
|
"transient-error"
|
|
5575
|
-
) }),
|
|
5577
|
+
) : null }),
|
|
5576
5578
|
/* @__PURE__ */ t(
|
|
5577
5579
|
b2,
|
|
5578
5580
|
{
|
|
@@ -5590,7 +5592,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5590
5592
|
X1 && "pr-3"
|
|
5591
5593
|
),
|
|
5592
5594
|
children: [
|
|
5593
|
-
_1
|
|
5595
|
+
_1 ? /* @__PURE__ */ t("div", { className: "flex shrink-0 self-center pl-3", children: /* @__PURE__ */ t(Tt, { size: "sm", spin: n }) }) : null,
|
|
5594
5596
|
/* @__PURE__ */ t(
|
|
5595
5597
|
S2,
|
|
5596
5598
|
{
|
|
@@ -5611,52 +5613,54 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5611
5613
|
inProgress: n
|
|
5612
5614
|
}
|
|
5613
5615
|
),
|
|
5614
|
-
X1
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5616
|
+
X1 ? (
|
|
5617
|
+
// `preventDefault` ON MOUSEDOWN IS LOAD-BEARING, and the
|
|
5618
|
+
// bug it fixes is worth spelling out: taking focus is the
|
|
5619
|
+
// browser's DEFAULT ACTION for mousedown, focus is what
|
|
5620
|
+
// opens the bar, and opening the bar unmounts this very
|
|
5621
|
+
// line — so the button was destroyed between mousedown and
|
|
5622
|
+
// mouseup and its `click` never fired. Pressing the
|
|
5623
|
+
// microphone did nothing at all.
|
|
5624
|
+
//
|
|
5625
|
+
// These buttons therefore refuse the pointer focus and let
|
|
5626
|
+
// the form's own onClick put it on the textarea instead,
|
|
5627
|
+
// which opens the bar AFTER the click has been handled.
|
|
5628
|
+
// Nothing is lost: keyboard users reach the textarea first
|
|
5629
|
+
// (it is the first tab stop), so by the time Tab could
|
|
5630
|
+
// arrive here the bar is already open and this line is gone.
|
|
5631
|
+
/* @__PURE__ */ i(
|
|
5632
|
+
"div",
|
|
5633
|
+
{
|
|
5634
|
+
className: "flex shrink-0 items-center gap-2 pb-[10px] pl-2",
|
|
5635
|
+
onMouseDown: (Z) => Z.preventDefault(),
|
|
5636
|
+
children: [
|
|
5637
|
+
ge ? /* @__PURE__ */ t(
|
|
5638
|
+
Yt,
|
|
5639
|
+
{
|
|
5640
|
+
inProgress: n,
|
|
5641
|
+
recordingStatus: g1.status,
|
|
5642
|
+
onStartRecording: we,
|
|
5643
|
+
size: "sm"
|
|
5644
|
+
}
|
|
5645
|
+
) : null,
|
|
5646
|
+
/* @__PURE__ */ t(
|
|
5647
|
+
Kt,
|
|
5648
|
+
{
|
|
5649
|
+
inProgress: n,
|
|
5650
|
+
hasDataToSend: D1,
|
|
5651
|
+
isPreSending: t1 || Q,
|
|
5652
|
+
recordingStatus: g1.status,
|
|
5653
|
+
size: "sm"
|
|
5654
|
+
}
|
|
5655
|
+
)
|
|
5656
|
+
]
|
|
5657
|
+
}
|
|
5658
|
+
)
|
|
5659
|
+
) : null
|
|
5656
5660
|
]
|
|
5657
5661
|
}
|
|
5658
5662
|
),
|
|
5659
|
-
Me ? /* @__PURE__ */ t(L1, { initial: !1, children:
|
|
5663
|
+
Me ? /* @__PURE__ */ t(L1, { initial: !1, children: X1 ? null : /* @__PURE__ */ t(
|
|
5660
5664
|
Y.div,
|
|
5661
5665
|
{
|
|
5662
5666
|
className: "overflow-hidden",
|
|
@@ -5676,8 +5680,8 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5676
5680
|
}
|
|
5677
5681
|
) })
|
|
5678
5682
|
] }),
|
|
5679
|
-
Pr
|
|
5680
|
-
k && F && H
|
|
5683
|
+
Pr ? /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(T2, { cards: V }) }) : null,
|
|
5684
|
+
k && F && H ? /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: k }) : null,
|
|
5681
5685
|
/* @__PURE__ */ t(L1, { mode: "wait", initial: !1, children: L ? /* @__PURE__ */ i(
|
|
5682
5686
|
Y.div,
|
|
5683
5687
|
{
|
|
@@ -5741,7 +5745,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5741
5745
|
)
|
|
5742
5746
|
}
|
|
5743
5747
|
) : /* @__PURE__ */ t(o1, { className: "text-sm font-medium text-f1-foreground-tertiary", children: p.text }),
|
|
5744
|
-
p.link && p.linkText
|
|
5748
|
+
p.link && p.linkText ? /* @__PURE__ */ t(
|
|
5745
5749
|
Qo,
|
|
5746
5750
|
{
|
|
5747
5751
|
href: p.link,
|
|
@@ -5750,7 +5754,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5750
5754
|
className: "flex-shrink-0 text-sm font-medium text-f1-foreground-tertiary",
|
|
5751
5755
|
children: p.linkText
|
|
5752
5756
|
}
|
|
5753
|
-
)
|
|
5757
|
+
) : null
|
|
5754
5758
|
]
|
|
5755
5759
|
},
|
|
5756
5760
|
"chat-disclaimer"
|
|
@@ -5759,7 +5763,7 @@ const Q2 = /[\\`*_{}[\]()#+\-.!|~>]/g, J2 = (e) => e.split(/(<entity-ref\b[^>]*>
|
|
|
5759
5763
|
}
|
|
5760
5764
|
);
|
|
5761
5765
|
};
|
|
5762
|
-
function
|
|
5766
|
+
function el({
|
|
5763
5767
|
children: e,
|
|
5764
5768
|
...r
|
|
5765
5769
|
}) {
|
|
@@ -5775,7 +5779,7 @@ function e6({
|
|
|
5775
5779
|
}
|
|
5776
5780
|
);
|
|
5777
5781
|
}
|
|
5778
|
-
function
|
|
5782
|
+
function tl({
|
|
5779
5783
|
children: e,
|
|
5780
5784
|
...r
|
|
5781
5785
|
}) {
|
|
@@ -5794,7 +5798,7 @@ function t6({
|
|
|
5794
5798
|
}
|
|
5795
5799
|
);
|
|
5796
5800
|
}
|
|
5797
|
-
function
|
|
5801
|
+
function rl({
|
|
5798
5802
|
children: e,
|
|
5799
5803
|
...r
|
|
5800
5804
|
}) {
|
|
@@ -5810,7 +5814,7 @@ function r6({
|
|
|
5810
5814
|
}
|
|
5811
5815
|
);
|
|
5812
5816
|
}
|
|
5813
|
-
function
|
|
5817
|
+
function nl({ ...e }) {
|
|
5814
5818
|
return /* @__PURE__ */ t(
|
|
5815
5819
|
"hr",
|
|
5816
5820
|
{
|
|
@@ -5819,7 +5823,7 @@ function n6({ ...e }) {
|
|
|
5819
5823
|
}
|
|
5820
5824
|
);
|
|
5821
5825
|
}
|
|
5822
|
-
function
|
|
5826
|
+
function ol({
|
|
5823
5827
|
src: e,
|
|
5824
5828
|
alt: r,
|
|
5825
5829
|
...n
|
|
@@ -5852,13 +5856,13 @@ function o6({
|
|
|
5852
5856
|
) })
|
|
5853
5857
|
] });
|
|
5854
5858
|
}
|
|
5855
|
-
function
|
|
5859
|
+
function sl({
|
|
5856
5860
|
children: e,
|
|
5857
5861
|
...r
|
|
5858
5862
|
}) {
|
|
5859
5863
|
return /* @__PURE__ */ t(Jo, { ...r, variant: "link", href: r.href, children: e });
|
|
5860
5864
|
}
|
|
5861
|
-
function
|
|
5865
|
+
function al({
|
|
5862
5866
|
children: e,
|
|
5863
5867
|
...r
|
|
5864
5868
|
}) {
|
|
@@ -5874,7 +5878,7 @@ function a6({
|
|
|
5874
5878
|
}
|
|
5875
5879
|
);
|
|
5876
5880
|
}
|
|
5877
|
-
function
|
|
5881
|
+
function il({
|
|
5878
5882
|
children: e,
|
|
5879
5883
|
...r
|
|
5880
5884
|
}) {
|
|
@@ -5890,17 +5894,17 @@ function i6({
|
|
|
5890
5894
|
}
|
|
5891
5895
|
);
|
|
5892
5896
|
}
|
|
5893
|
-
function
|
|
5897
|
+
function ll({
|
|
5894
5898
|
children: e,
|
|
5895
5899
|
...r
|
|
5896
5900
|
}) {
|
|
5897
5901
|
return /* @__PURE__ */ t("li", { ...r, className: b("mb-2", r.className), children: e });
|
|
5898
5902
|
}
|
|
5899
|
-
async function
|
|
5903
|
+
async function cl(e, r, n) {
|
|
5900
5904
|
const o = await import("./xlsx-CzlURDDb.js"), s = o.utils.table_to_book(e, { sheet: "Data" });
|
|
5901
5905
|
o.writeFile(s, `${n}.${r}`);
|
|
5902
5906
|
}
|
|
5903
|
-
function
|
|
5907
|
+
function dl({
|
|
5904
5908
|
children: e,
|
|
5905
5909
|
title: r,
|
|
5906
5910
|
...n
|
|
@@ -5910,7 +5914,7 @@ function d6({
|
|
|
5910
5914
|
if (!s.current)
|
|
5911
5915
|
return;
|
|
5912
5916
|
const d = r?.replace(/\s+/g, "_").toLowerCase() || "table";
|
|
5913
|
-
|
|
5917
|
+
cl(s.current, c, d);
|
|
5914
5918
|
},
|
|
5915
5919
|
[r]
|
|
5916
5920
|
);
|
|
@@ -5962,7 +5966,7 @@ function d6({
|
|
|
5962
5966
|
) })
|
|
5963
5967
|
] });
|
|
5964
5968
|
}
|
|
5965
|
-
function
|
|
5969
|
+
function ul({
|
|
5966
5970
|
children: e,
|
|
5967
5971
|
...r
|
|
5968
5972
|
}) {
|
|
@@ -5978,7 +5982,7 @@ function u6({
|
|
|
5978
5982
|
}
|
|
5979
5983
|
);
|
|
5980
5984
|
}
|
|
5981
|
-
function
|
|
5985
|
+
function fl({
|
|
5982
5986
|
children: e,
|
|
5983
5987
|
...r
|
|
5984
5988
|
}) {
|
|
@@ -5994,13 +5998,13 @@ function f6({
|
|
|
5994
5998
|
}
|
|
5995
5999
|
);
|
|
5996
6000
|
}
|
|
5997
|
-
function
|
|
6001
|
+
function hl({
|
|
5998
6002
|
children: e,
|
|
5999
6003
|
...r
|
|
6000
6004
|
}) {
|
|
6001
6005
|
return /* @__PURE__ */ t("p", { ...r, className: b("text-base font-normal", r.className), children: e });
|
|
6002
6006
|
}
|
|
6003
|
-
function
|
|
6007
|
+
function Cl({
|
|
6004
6008
|
children: e,
|
|
6005
6009
|
...r
|
|
6006
6010
|
}) {
|
|
@@ -6016,7 +6020,7 @@ function C6({
|
|
|
6016
6020
|
}
|
|
6017
6021
|
);
|
|
6018
6022
|
}
|
|
6019
|
-
function
|
|
6023
|
+
function pl({
|
|
6020
6024
|
children: e,
|
|
6021
6025
|
...r
|
|
6022
6026
|
}) {
|
|
@@ -6032,7 +6036,7 @@ function p6({
|
|
|
6032
6036
|
}
|
|
6033
6037
|
);
|
|
6034
6038
|
}
|
|
6035
|
-
function
|
|
6039
|
+
function ml({
|
|
6036
6040
|
children: e,
|
|
6037
6041
|
...r
|
|
6038
6042
|
}) {
|
|
@@ -6048,13 +6052,13 @@ function m6({
|
|
|
6048
6052
|
}
|
|
6049
6053
|
);
|
|
6050
6054
|
}
|
|
6051
|
-
function
|
|
6055
|
+
function gl({
|
|
6052
6056
|
children: e,
|
|
6053
6057
|
...r
|
|
6054
6058
|
}) {
|
|
6055
6059
|
return /* @__PURE__ */ t("strong", { ...r, className: b("font-semibold", r.className), children: e });
|
|
6056
6060
|
}
|
|
6057
|
-
function
|
|
6061
|
+
function wl({
|
|
6058
6062
|
children: e,
|
|
6059
6063
|
...r
|
|
6060
6064
|
}) {
|
|
@@ -6128,7 +6132,7 @@ const Qt = m(
|
|
|
6128
6132
|
)
|
|
6129
6133
|
);
|
|
6130
6134
|
Qt.displayName = "CandidateTrigger";
|
|
6131
|
-
function
|
|
6135
|
+
function vl({
|
|
6132
6136
|
id: e,
|
|
6133
6137
|
label: r
|
|
6134
6138
|
}) {
|
|
@@ -6203,7 +6207,7 @@ const Jt = m(
|
|
|
6203
6207
|
)
|
|
6204
6208
|
);
|
|
6205
6209
|
Jt.displayName = "ExpenseTrigger";
|
|
6206
|
-
function
|
|
6210
|
+
function Ll({ id: e, label: r }) {
|
|
6207
6211
|
const { entityRefs: n } = y1(), o = n?.resolvers?.expense, s = G(), a = n?.urls?.expense?.(e), c = X(
|
|
6208
6212
|
() => (l) => ({
|
|
6209
6213
|
avatar: {
|
|
@@ -6259,7 +6263,7 @@ const er = m(
|
|
|
6259
6263
|
)
|
|
6260
6264
|
);
|
|
6261
6265
|
er.displayName = "JobPostingTrigger";
|
|
6262
|
-
function
|
|
6266
|
+
function xl({
|
|
6263
6267
|
id: e,
|
|
6264
6268
|
label: r
|
|
6265
6269
|
}) {
|
|
@@ -6317,7 +6321,7 @@ const tr = m(
|
|
|
6317
6321
|
)
|
|
6318
6322
|
);
|
|
6319
6323
|
tr.displayName = "PersonTrigger";
|
|
6320
|
-
function
|
|
6324
|
+
function bl({ id: e, label: r }) {
|
|
6321
6325
|
const { entityRefs: n } = y1(), o = n?.resolvers?.person, s = G(), a = n?.urls?.person?.(e), c = X(
|
|
6322
6326
|
() => (l) => ({
|
|
6323
6327
|
avatar: {
|
|
@@ -6359,9 +6363,9 @@ function b6({ id: e, label: r }) {
|
|
|
6359
6363
|
}
|
|
6360
6364
|
) : /* @__PURE__ */ t("span", { children: r });
|
|
6361
6365
|
}
|
|
6362
|
-
function
|
|
6366
|
+
function kl({ rows: e }) {
|
|
6363
6367
|
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "flex flex-col gap-2", children: e.map((r, n) => /* @__PURE__ */ i("div", { className: "flex flex-col", children: [
|
|
6364
|
-
r.label
|
|
6368
|
+
r.label ? /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: r.label }) : null,
|
|
6365
6369
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: r.value })
|
|
6366
6370
|
] }, r.label ?? n)) });
|
|
6367
6371
|
}
|
|
@@ -6381,7 +6385,7 @@ const rr = m(
|
|
|
6381
6385
|
)
|
|
6382
6386
|
);
|
|
6383
6387
|
rr.displayName = "RequisitionTrigger";
|
|
6384
|
-
function
|
|
6388
|
+
function yl({
|
|
6385
6389
|
id: e,
|
|
6386
6390
|
label: r
|
|
6387
6391
|
}) {
|
|
@@ -6424,7 +6428,7 @@ function y6({
|
|
|
6424
6428
|
title: l.title,
|
|
6425
6429
|
...l.location && { description: l.location },
|
|
6426
6430
|
...C.length > 0 && {
|
|
6427
|
-
children: /* @__PURE__ */ t(
|
|
6431
|
+
children: /* @__PURE__ */ t(kl, { rows: C })
|
|
6428
6432
|
},
|
|
6429
6433
|
...a && {
|
|
6430
6434
|
secondaryActions: {
|
|
@@ -6474,7 +6478,7 @@ const nr = m(
|
|
|
6474
6478
|
)
|
|
6475
6479
|
);
|
|
6476
6480
|
nr.displayName = "VacancyTrigger";
|
|
6477
|
-
function
|
|
6481
|
+
function Ml({ id: e, label: r }) {
|
|
6478
6482
|
const { entityRefs: n } = y1(), o = n?.resolvers?.vacancy, s = G(), a = n?.urls?.vacancy?.(e), c = X(
|
|
6479
6483
|
() => (l) => ({
|
|
6480
6484
|
title: l.name,
|
|
@@ -6510,50 +6514,50 @@ function M6({ id: e, label: r }) {
|
|
|
6510
6514
|
}
|
|
6511
6515
|
) : /* @__PURE__ */ t("span", { children: r });
|
|
6512
6516
|
}
|
|
6513
|
-
const
|
|
6514
|
-
person:
|
|
6515
|
-
candidate:
|
|
6516
|
-
expense:
|
|
6517
|
-
"job-posting":
|
|
6518
|
-
requisition:
|
|
6519
|
-
vacancy:
|
|
6517
|
+
const Rl = {
|
|
6518
|
+
person: bl,
|
|
6519
|
+
candidate: vl,
|
|
6520
|
+
expense: Ll,
|
|
6521
|
+
"job-posting": xl,
|
|
6522
|
+
requisition: yl,
|
|
6523
|
+
vacancy: Ml
|
|
6520
6524
|
};
|
|
6521
|
-
function
|
|
6522
|
-
return
|
|
6525
|
+
function Fl(e) {
|
|
6526
|
+
return Rl[e];
|
|
6523
6527
|
}
|
|
6524
6528
|
function ee(e) {
|
|
6525
6529
|
return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(ee).join("") : e && typeof e == "object" && "props" in e ? ee(e.props.children) : "";
|
|
6526
6530
|
}
|
|
6527
|
-
function
|
|
6531
|
+
function Nl({
|
|
6528
6532
|
type: e,
|
|
6529
6533
|
id: r,
|
|
6530
6534
|
children: n
|
|
6531
6535
|
}) {
|
|
6532
6536
|
if (!r || !e)
|
|
6533
6537
|
return /* @__PURE__ */ t("span", { children: n });
|
|
6534
|
-
const o = ee(n), s =
|
|
6538
|
+
const o = ee(n), s = Fl(e);
|
|
6535
6539
|
return s ? /* @__PURE__ */ t(s, { id: r, label: o }) : /* @__PURE__ */ t("span", { children: n });
|
|
6536
6540
|
}
|
|
6537
6541
|
const I4 = {
|
|
6538
|
-
p:
|
|
6539
|
-
h1:
|
|
6540
|
-
h2:
|
|
6541
|
-
h3:
|
|
6542
|
-
a:
|
|
6543
|
-
strong:
|
|
6544
|
-
em:
|
|
6545
|
-
li:
|
|
6546
|
-
pre:
|
|
6547
|
-
code:
|
|
6548
|
-
blockquote:
|
|
6549
|
-
hr:
|
|
6550
|
-
ul:
|
|
6551
|
-
ol:
|
|
6552
|
-
table:
|
|
6553
|
-
th:
|
|
6554
|
-
td:
|
|
6555
|
-
img:
|
|
6556
|
-
"entity-ref":
|
|
6542
|
+
p: hl,
|
|
6543
|
+
h1: Cl,
|
|
6544
|
+
h2: pl,
|
|
6545
|
+
h3: ml,
|
|
6546
|
+
a: sl,
|
|
6547
|
+
strong: gl,
|
|
6548
|
+
em: wl,
|
|
6549
|
+
li: ll,
|
|
6550
|
+
pre: el,
|
|
6551
|
+
code: tl,
|
|
6552
|
+
blockquote: rl,
|
|
6553
|
+
hr: nl,
|
|
6554
|
+
ul: al,
|
|
6555
|
+
ol: il,
|
|
6556
|
+
table: dl,
|
|
6557
|
+
th: ul,
|
|
6558
|
+
td: fl,
|
|
6559
|
+
img: ol,
|
|
6560
|
+
"entity-ref": Nl
|
|
6557
6561
|
};
|
|
6558
6562
|
function or({
|
|
6559
6563
|
avatar: e,
|
|
@@ -6575,14 +6579,14 @@ function or({
|
|
|
6575
6579
|
onClick: l,
|
|
6576
6580
|
children: [
|
|
6577
6581
|
/* @__PURE__ */ i("div", { className: "flex w-full min-w-0 flex-row items-center gap-3", children: [
|
|
6578
|
-
e?.type === "module"
|
|
6579
|
-
e?.type === "file"
|
|
6580
|
-
e?.type === "icon"
|
|
6582
|
+
e?.type === "module" ? /* @__PURE__ */ t(At, { module: e.module, size: "md" }) : null,
|
|
6583
|
+
e?.type === "file" ? /* @__PURE__ */ t(os, { file: e.file, size: "lg" }) : null,
|
|
6584
|
+
e?.type === "icon" ? /* @__PURE__ */ t(ss, { icon: e.icon, size: "md" }) : null,
|
|
6581
6585
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
6582
6586
|
/* @__PURE__ */ t(o1, { className: "text-lg font-semibold text-f1-foreground", children: r }),
|
|
6583
|
-
n
|
|
6587
|
+
n ? /* @__PURE__ */ t(o1, { className: "text-base text-f1-foreground-secondary", children: n }) : null
|
|
6584
6588
|
] }),
|
|
6585
|
-
s.type === "open" && s.showButton !== !1
|
|
6589
|
+
s.type === "open" && s.showButton !== !1 ? /* @__PURE__ */ t(
|
|
6586
6590
|
w1,
|
|
6587
6591
|
{
|
|
6588
6592
|
variant: "outline",
|
|
@@ -6590,8 +6594,8 @@ function or({
|
|
|
6590
6594
|
label: o ? c.actions.close : c.ai.reportCard.openButton,
|
|
6591
6595
|
onClick: o ? s.onClose : s.onOpen
|
|
6592
6596
|
}
|
|
6593
|
-
),
|
|
6594
|
-
s.type === "custom"
|
|
6597
|
+
) : null,
|
|
6598
|
+
s.type === "custom" ? /* @__PURE__ */ t(
|
|
6595
6599
|
w1,
|
|
6596
6600
|
{
|
|
6597
6601
|
variant: "outline",
|
|
@@ -6601,7 +6605,7 @@ function or({
|
|
|
6601
6605
|
hideLabel: s.hideLabel,
|
|
6602
6606
|
onClick: s.onClick
|
|
6603
6607
|
}
|
|
6604
|
-
)
|
|
6608
|
+
) : null
|
|
6605
6609
|
] }),
|
|
6606
6610
|
a
|
|
6607
6611
|
]
|
|
@@ -6631,7 +6635,7 @@ function P4({
|
|
|
6631
6635
|
);
|
|
6632
6636
|
return /* @__PURE__ */ t(he.Provider, { value: a, children: e });
|
|
6633
6637
|
}
|
|
6634
|
-
function
|
|
6638
|
+
function Sl(e) {
|
|
6635
6639
|
const n = $1(he)?.formatters;
|
|
6636
6640
|
return X(() => !n || n.length === 0 ? null : (o, s, a) => {
|
|
6637
6641
|
let c, d = -1;
|
|
@@ -6654,14 +6658,14 @@ function D4() {
|
|
|
6654
6658
|
);
|
|
6655
6659
|
return e.setFormCardValueFormatter;
|
|
6656
6660
|
}
|
|
6657
|
-
const Be = 7,
|
|
6658
|
-
function
|
|
6661
|
+
const Be = 7, Vl = 625, Ie = /* @__PURE__ */ new Set();
|
|
6662
|
+
function Tl(e) {
|
|
6659
6663
|
return typeof DOMParser < "u" ? new DOMParser().parseFromString(e, "text/html").body.textContent?.replace(/\s+/g, " ").trim() ?? "" : e.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
|
|
6660
6664
|
}
|
|
6661
|
-
function
|
|
6665
|
+
function Hl(e) {
|
|
6662
6666
|
return e && e.charAt(0).toUpperCase() + e.slice(1);
|
|
6663
6667
|
}
|
|
6664
|
-
function
|
|
6668
|
+
function Al(e) {
|
|
6665
6669
|
const { days: r, hours: n, minutes: o, seconds: s } = is(e), a = [];
|
|
6666
6670
|
return r > 0 && a.push(`${r}d`), n > 0 && a.push(`${n}h`), o > 0 && a.push(`${o}m`), (s > 0 || a.length === 0) && a.push(`${s}s`), a.join(" ");
|
|
6667
6671
|
}
|
|
@@ -6683,10 +6687,10 @@ function sr(e, r) {
|
|
|
6683
6687
|
if (e == null || e === "")
|
|
6684
6688
|
return { type: "item", text: "—" };
|
|
6685
6689
|
if (r === "duration" && typeof e == "number")
|
|
6686
|
-
return { type: "item", text:
|
|
6690
|
+
return { type: "item", text: Al(e) };
|
|
6687
6691
|
if (r === "richtext" && typeof e == "object" && e !== null && "value" in e) {
|
|
6688
6692
|
const n = e.value;
|
|
6689
|
-
return { type: "item", text: (n ?
|
|
6693
|
+
return { type: "item", text: (n ? Tl(n) : "") || "—" };
|
|
6690
6694
|
}
|
|
6691
6695
|
if (r === "daterange" && typeof e == "object" && e !== null && "from" in e && "to" in e) {
|
|
6692
6696
|
const { from: n, to: o } = e, s = Pe(n) ? De(n) : String(n), a = Pe(o) ? De(o) : String(o);
|
|
@@ -6705,7 +6709,7 @@ function sr(e, r) {
|
|
|
6705
6709
|
const n = e;
|
|
6706
6710
|
return typeof n.label == "string" ? { type: "item", text: n.label } : typeof n.name == "string" ? { type: "item", text: n.name } : typeof n.text == "string" ? { type: "item", text: n.text } : { type: "item", text: JSON.stringify(e) };
|
|
6707
6711
|
}
|
|
6708
|
-
return { type: "item", text:
|
|
6712
|
+
return { type: "item", text: Hl(String(e)) };
|
|
6709
6713
|
}
|
|
6710
6714
|
function ar({
|
|
6711
6715
|
formName: e,
|
|
@@ -6717,7 +6721,7 @@ function ar({
|
|
|
6717
6721
|
formValues: c,
|
|
6718
6722
|
valueFormatter: d
|
|
6719
6723
|
}) {
|
|
6720
|
-
const { canvasContent: l, openCanvas: f, closeCanvas: u } = y1(), C =
|
|
6724
|
+
const { canvasContent: l, openCanvas: f, closeCanvas: u } = y1(), C = Sl(e), g = d ?? C, h = $(() => {
|
|
6721
6725
|
}), w = o ?? e, v = s ?? r ?? "", p = l?.type === "form" && l.formName === e, k = () => f({
|
|
6722
6726
|
type: "form",
|
|
6723
6727
|
title: w,
|
|
@@ -6727,7 +6731,7 @@ function ar({
|
|
|
6727
6731
|
formModule: n
|
|
6728
6732
|
});
|
|
6729
6733
|
h.current = k, z(() => {
|
|
6730
|
-
typeof window > "u" || window.innerWidth <
|
|
6734
|
+
typeof window > "u" || window.innerWidth < Vl || Ie.has(e) || (Ie.add(e), h.current());
|
|
6731
6735
|
}, [e]);
|
|
6732
6736
|
const F = a && c ? Object.entries(a).map(([R, x]) => {
|
|
6733
6737
|
const E = c[R], V = g?.(R, E, {
|
|
@@ -6761,7 +6765,7 @@ function ar({
|
|
|
6761
6765
|
onClose: u,
|
|
6762
6766
|
showButton: p
|
|
6763
6767
|
},
|
|
6764
|
-
children: H.length > 0 && !p
|
|
6768
|
+
children: H.length > 0 && !p ? /* @__PURE__ */ t("div", { className: "-mx-3 flex w-full flex-col overflow-hidden pb-1", children: /* @__PURE__ */ t(
|
|
6765
6769
|
as,
|
|
6766
6770
|
{
|
|
6767
6771
|
details: H.map((R) => ({
|
|
@@ -6773,12 +6777,12 @@ function ar({
|
|
|
6773
6777
|
onClickSeeMore: k,
|
|
6774
6778
|
tableView: !0
|
|
6775
6779
|
}
|
|
6776
|
-
) })
|
|
6780
|
+
) }) : null
|
|
6777
6781
|
}
|
|
6778
6782
|
);
|
|
6779
6783
|
}
|
|
6780
6784
|
ar.displayName = "FormCard";
|
|
6781
|
-
function
|
|
6785
|
+
function El() {
|
|
6782
6786
|
const e = ls(), r = e?.activeForm;
|
|
6783
6787
|
if (!r)
|
|
6784
6788
|
return null;
|
|
@@ -6796,8 +6800,8 @@ function E6() {
|
|
|
6796
6800
|
}
|
|
6797
6801
|
) });
|
|
6798
6802
|
}
|
|
6799
|
-
const $
|
|
6800
|
-
function
|
|
6803
|
+
const $l = 2;
|
|
6804
|
+
function Bl(e, r) {
|
|
6801
6805
|
if (!e.intersectsNode(r))
|
|
6802
6806
|
return null;
|
|
6803
6807
|
const n = document.createRange();
|
|
@@ -6805,7 +6809,7 @@ function B6(e, r) {
|
|
|
6805
6809
|
const o = e.cloneRange();
|
|
6806
6810
|
o.compareBoundaryPoints(Range.START_TO_START, n) < 0 && o.setStart(n.startContainer, n.startOffset), o.compareBoundaryPoints(Range.END_TO_END, n) > 0 && o.setEnd(n.endContainer, n.endOffset);
|
|
6807
6811
|
const s = o.toString().trim();
|
|
6808
|
-
if (s.length < $
|
|
6812
|
+
if (s.length < $l)
|
|
6809
6813
|
return null;
|
|
6810
6814
|
const a = o.getBoundingClientRect();
|
|
6811
6815
|
return { rect: a.width > 0 || a.height > 0 ? a : r.getBoundingClientRect(), text: s };
|
|
@@ -6827,7 +6831,7 @@ function ir({
|
|
|
6827
6831
|
o(null);
|
|
6828
6832
|
return;
|
|
6829
6833
|
}
|
|
6830
|
-
o(
|
|
6834
|
+
o(Bl(f.getRangeAt(0), a));
|
|
6831
6835
|
}, d = () => {
|
|
6832
6836
|
window.setTimeout(c, 0);
|
|
6833
6837
|
}, l = () => {
|
|
@@ -6898,7 +6902,7 @@ function lr({ anchor: e, onReply: r }) {
|
|
|
6898
6902
|
document.body
|
|
6899
6903
|
);
|
|
6900
6904
|
}
|
|
6901
|
-
const cr = z1(void 0), _4 = () => $1(cr),
|
|
6905
|
+
const cr = z1(void 0), _4 = () => $1(cr), Il = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), Pl = ({
|
|
6902
6906
|
isGenerating: e,
|
|
6903
6907
|
isLoading: r,
|
|
6904
6908
|
message: n,
|
|
@@ -6914,15 +6918,15 @@ const cr = z1(void 0), _4 = () => $1(cr), I6 = (e) => /* @__PURE__ */ t(Et, { co
|
|
|
6914
6918
|
return z(() => {
|
|
6915
6919
|
n?.id && !r && !e && a?.(n);
|
|
6916
6920
|
}, [n, r, e, a]), !r && !e && u ? null : /* @__PURE__ */ t(cr.Provider, { value: f, children: /* @__PURE__ */ i("div", { className: "relative isolate flex w-full flex-col items-start justify-center", children: [
|
|
6917
|
-
n && d
|
|
6921
|
+
n && d ? /* @__PURE__ */ t(
|
|
6918
6922
|
"div",
|
|
6919
6923
|
{
|
|
6920
6924
|
ref: C,
|
|
6921
6925
|
className: "w-full max-w-full [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
|
|
6922
|
-
children: (c ??
|
|
6926
|
+
children: (c ?? Il)(d)
|
|
6923
6927
|
}
|
|
6924
|
-
),
|
|
6925
|
-
|
|
6928
|
+
) : null,
|
|
6929
|
+
l ? /* @__PURE__ */ t("div", { className: "w-full", children: l }) : null,
|
|
6926
6930
|
/* @__PURE__ */ t(
|
|
6927
6931
|
lr,
|
|
6928
6932
|
{
|
|
@@ -6933,7 +6937,7 @@ const cr = z1(void 0), _4 = () => $1(cr), I6 = (e) => /* @__PURE__ */ t(Et, { co
|
|
|
6933
6937
|
}
|
|
6934
6938
|
)
|
|
6935
6939
|
] }) });
|
|
6936
|
-
},
|
|
6940
|
+
}, Dl = ({
|
|
6937
6941
|
onClose: e,
|
|
6938
6942
|
onSubmit: r,
|
|
6939
6943
|
reactionType: n,
|
|
@@ -6982,7 +6986,7 @@ const cr = z1(void 0), _4 = () => $1(cr), I6 = (e) => /* @__PURE__ */ t(Et, { co
|
|
|
6982
6986
|
) })
|
|
6983
6987
|
}
|
|
6984
6988
|
);
|
|
6985
|
-
}, dr = z1(null),
|
|
6989
|
+
}, dr = z1(null), _l = ({ children: e }) => {
|
|
6986
6990
|
const [r, n] = I(null), o = r ? {
|
|
6987
6991
|
isOpen: !0,
|
|
6988
6992
|
currentReaction: r.action,
|
|
@@ -7005,7 +7009,7 @@ const cr = z1(void 0), _4 = () => $1(cr), I6 = (e) => /* @__PURE__ */ t(Et, { co
|
|
|
7005
7009
|
);
|
|
7006
7010
|
return e;
|
|
7007
7011
|
};
|
|
7008
|
-
function
|
|
7012
|
+
function jl(e) {
|
|
7009
7013
|
const r = ur();
|
|
7010
7014
|
return { modal: r, handleSubmit: (s, a) => {
|
|
7011
7015
|
(r.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: a }), r.close();
|
|
@@ -7013,7 +7017,7 @@ function j6(e) {
|
|
|
7013
7017
|
(r.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: "" }), r.close();
|
|
7014
7018
|
} };
|
|
7015
7019
|
}
|
|
7016
|
-
const
|
|
7020
|
+
const Ol = ({
|
|
7017
7021
|
content: e,
|
|
7018
7022
|
targetMessage: r,
|
|
7019
7023
|
onCopy: n
|
|
@@ -7074,7 +7078,7 @@ const O6 = ({
|
|
|
7074
7078
|
}
|
|
7075
7079
|
)
|
|
7076
7080
|
] });
|
|
7077
|
-
},
|
|
7081
|
+
}, Zl = ({
|
|
7078
7082
|
icon: e,
|
|
7079
7083
|
title: r,
|
|
7080
7084
|
children: n,
|
|
@@ -7104,7 +7108,7 @@ const O6 = ({
|
|
|
7104
7108
|
children: [
|
|
7105
7109
|
/* @__PURE__ */ t("span", { className: "flex items-center justify-start h-6 w-6", children: /* @__PURE__ */ t(n1, { icon: e, className: "block" }) }),
|
|
7106
7110
|
/* @__PURE__ */ t("div", { className: "min-h-6 flex items-center", children: /* @__PURE__ */ t("span", { children: r }) }),
|
|
7107
|
-
|
|
7111
|
+
c ? null : /* @__PURE__ */ t(n1, { icon: G1 })
|
|
7108
7112
|
]
|
|
7109
7113
|
}
|
|
7110
7114
|
),
|
|
@@ -7128,7 +7132,7 @@ const O6 = ({
|
|
|
7128
7132
|
]
|
|
7129
7133
|
}
|
|
7130
7134
|
);
|
|
7131
|
-
},
|
|
7135
|
+
}, Ul = ({
|
|
7132
7136
|
titles: e,
|
|
7133
7137
|
title: r,
|
|
7134
7138
|
inProgress: n,
|
|
@@ -7140,7 +7144,7 @@ const O6 = ({
|
|
|
7140
7144
|
}, [n, a]);
|
|
7141
7145
|
const l = n ? s.ai.thoughtsGroupTitle : r ?? s.ai.thoughtsGroupTitle, f = e.length - 1, u = (C) => !n || o ? "completed" : C === f ? "executing" : "completed";
|
|
7142
7146
|
return /* @__PURE__ */ t(
|
|
7143
|
-
|
|
7147
|
+
Zl,
|
|
7144
7148
|
{
|
|
7145
7149
|
icon: Zt,
|
|
7146
7150
|
title: l,
|
|
@@ -7156,18 +7160,18 @@ const O6 = ({
|
|
|
7156
7160
|
inGroup: !0
|
|
7157
7161
|
}
|
|
7158
7162
|
),
|
|
7159
|
-
g < e.length - 1
|
|
7163
|
+
g < e.length - 1 ? /* @__PURE__ */ t(
|
|
7160
7164
|
"div",
|
|
7161
7165
|
{
|
|
7162
7166
|
"aria-hidden": !0,
|
|
7163
7167
|
className: "absolute -bottom-3 left-2 ml-px top-5 w-px bg-f1-border-secondary rounded"
|
|
7164
7168
|
}
|
|
7165
|
-
)
|
|
7169
|
+
) : null
|
|
7166
7170
|
] }, g)) })
|
|
7167
7171
|
}
|
|
7168
7172
|
);
|
|
7169
7173
|
};
|
|
7170
|
-
function
|
|
7174
|
+
function zl(e) {
|
|
7171
7175
|
if (typeof e == "string")
|
|
7172
7176
|
return e;
|
|
7173
7177
|
if (Array.isArray(e)) {
|
|
@@ -7175,7 +7179,7 @@ function z6(e) {
|
|
|
7175
7179
|
return r[r.length - 1];
|
|
7176
7180
|
}
|
|
7177
7181
|
}
|
|
7178
|
-
function
|
|
7182
|
+
function Gl(e, r) {
|
|
7179
7183
|
const n = Array.isArray(e) ? e.filter((o) => o.type === "binary").map((o) => ({
|
|
7180
7184
|
url: o.url,
|
|
7181
7185
|
filename: o.filename,
|
|
@@ -7187,13 +7191,13 @@ function G6(e, r) {
|
|
|
7187
7191
|
(o) => typeof o?.filename == "string" && typeof o?.mimetype == "string" && typeof o?.url == "string"
|
|
7188
7192
|
);
|
|
7189
7193
|
}
|
|
7190
|
-
const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }),
|
|
7194
|
+
const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), Wl = ({
|
|
7191
7195
|
text: e,
|
|
7192
7196
|
renderMarkdown: r
|
|
7193
7197
|
}) => /* @__PURE__ */ i("div", { className: "flex max-w-[90%] items-start gap-2 self-end pb-1 pr-2 text-f1-foreground-tertiary", children: [
|
|
7194
7198
|
/* @__PURE__ */ t("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ t(n1, { icon: se }) }),
|
|
7195
7199
|
/* @__PURE__ */ t("div", { className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0", children: (r ?? fr)(e) })
|
|
7196
|
-
] }),
|
|
7200
|
+
] }), ql = ({
|
|
7197
7201
|
message: e,
|
|
7198
7202
|
onReplyQuote: r,
|
|
7199
7203
|
autoScrollIntoView: n = !0,
|
|
@@ -7205,10 +7209,10 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7205
7209
|
behavior: "smooth"
|
|
7206
7210
|
});
|
|
7207
7211
|
}, [n]);
|
|
7208
|
-
const c = e.rawData, d =
|
|
7212
|
+
const c = e.rawData, d = Gl(
|
|
7209
7213
|
e?.content,
|
|
7210
7214
|
c
|
|
7211
|
-
), l = (
|
|
7215
|
+
), l = (zl(e?.content) ?? "").trim(), f = e?.replyQuote ?? null, u = l.length > 0, { anchor: C, clear: g } = ir({
|
|
7212
7216
|
containerRef: a,
|
|
7213
7217
|
enabled: u
|
|
7214
7218
|
});
|
|
@@ -7218,23 +7222,23 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7218
7222
|
ref: s,
|
|
7219
7223
|
className: "my-4 flex w-full flex-col items-end gap-2 first:mt-0 last:mb-0",
|
|
7220
7224
|
children: [
|
|
7221
|
-
f
|
|
7222
|
-
d.length > 0
|
|
7225
|
+
f ? /* @__PURE__ */ t(Wl, { text: f, renderMarkdown: o }) : null,
|
|
7226
|
+
d.length > 0 ? /* @__PURE__ */ t("div", { className: "flex max-w-[90%] flex-wrap justify-end gap-1.5", children: d.map((h, w) => /* @__PURE__ */ t(
|
|
7223
7227
|
St,
|
|
7224
7228
|
{
|
|
7225
7229
|
file: { name: h.filename, type: h.mimetype },
|
|
7226
7230
|
size: "lg"
|
|
7227
7231
|
},
|
|
7228
7232
|
`${h.filename}-${w}`
|
|
7229
|
-
)) }),
|
|
7230
|
-
u
|
|
7233
|
+
)) }) : null,
|
|
7234
|
+
u ? /* @__PURE__ */ t(
|
|
7231
7235
|
"div",
|
|
7232
7236
|
{
|
|
7233
7237
|
ref: a,
|
|
7234
7238
|
className: "w-fit max-w-[90%] self-end whitespace-pre-wrap rounded-xl bg-f1-background-tertiary px-4 py-3 [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
|
|
7235
7239
|
children: (o ?? fr)(l)
|
|
7236
7240
|
}
|
|
7237
|
-
),
|
|
7241
|
+
) : null,
|
|
7238
7242
|
/* @__PURE__ */ t(
|
|
7239
7243
|
lr,
|
|
7240
7244
|
{
|
|
@@ -7247,7 +7251,7 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7247
7251
|
]
|
|
7248
7252
|
}
|
|
7249
7253
|
);
|
|
7250
|
-
},
|
|
7254
|
+
}, Xl = 35, Yl = 22, Kl = 400, Ql = 2500, Jl = 220, e6 = ({
|
|
7251
7255
|
messages: e,
|
|
7252
7256
|
caption: r,
|
|
7253
7257
|
subtitle: n,
|
|
@@ -7267,16 +7271,16 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7267
7271
|
return;
|
|
7268
7272
|
let F;
|
|
7269
7273
|
if (u === "starting")
|
|
7270
|
-
F = setTimeout(() => C("writing"),
|
|
7274
|
+
F = setTimeout(() => C("writing"), Kl);
|
|
7271
7275
|
else if (u === "writing")
|
|
7272
|
-
l < h.length ? F = setTimeout(() => f((H) => H + 1),
|
|
7276
|
+
l < h.length ? F = setTimeout(() => f((H) => H + 1), Xl) : C("holding");
|
|
7273
7277
|
else if (u === "holding") {
|
|
7274
7278
|
if (e.length <= 1)
|
|
7275
7279
|
return;
|
|
7276
|
-
F = setTimeout(() => C("erasing"),
|
|
7277
|
-
} else u === "erasing" && (l > 0 ? F = setTimeout(() => f((H) => H - 1),
|
|
7280
|
+
F = setTimeout(() => C("erasing"), Ql);
|
|
7281
|
+
} else u === "erasing" && (l > 0 ? F = setTimeout(() => f((H) => H - 1), Yl) : F = setTimeout(() => {
|
|
7278
7282
|
d((H) => (H + 1) % e.length), C("starting");
|
|
7279
|
-
},
|
|
7283
|
+
}, Jl));
|
|
7280
7284
|
return () => {
|
|
7281
7285
|
F && clearTimeout(F);
|
|
7282
7286
|
};
|
|
@@ -7292,7 +7296,7 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7292
7296
|
a ? "items-end pb-24" : "items-center"
|
|
7293
7297
|
),
|
|
7294
7298
|
children: /* @__PURE__ */ i("div", { className: "flex flex-col items-center", children: [
|
|
7295
|
-
o
|
|
7299
|
+
o ? /* @__PURE__ */ t(
|
|
7296
7300
|
r1,
|
|
7297
7301
|
{
|
|
7298
7302
|
variant: "neutral",
|
|
@@ -7302,8 +7306,8 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7302
7306
|
icon: o.icon,
|
|
7303
7307
|
onClick: o.onClick
|
|
7304
7308
|
}
|
|
7305
|
-
),
|
|
7306
|
-
r
|
|
7309
|
+
) : null,
|
|
7310
|
+
r ? /* @__PURE__ */ t("p", { className: "animate-in fade-in-0 text-center text-2xl font-semibold leading-[28px] text-f1-foreground-secondary duration-500", children: r }) : null,
|
|
7307
7311
|
/* @__PURE__ */ i(
|
|
7308
7312
|
"p",
|
|
7309
7313
|
{
|
|
@@ -7327,12 +7331,12 @@ const fr = (e) => /* @__PURE__ */ t(Et, { content: e, format: "markdown" }), W6
|
|
|
7327
7331
|
},
|
|
7328
7332
|
c
|
|
7329
7333
|
),
|
|
7330
|
-
n
|
|
7334
|
+
n ? /* @__PURE__ */ t("p", { className: "animate-in fade-in-0 mt-3 text-center text-base leading-snug text-f1-foreground-secondary duration-500", children: n }) : null
|
|
7331
7335
|
] })
|
|
7332
7336
|
}
|
|
7333
7337
|
);
|
|
7334
7338
|
};
|
|
7335
|
-
function
|
|
7339
|
+
function t6({
|
|
7336
7340
|
viewportRef: e,
|
|
7337
7341
|
contentRef: r,
|
|
7338
7342
|
endRef: n,
|
|
@@ -7383,13 +7387,13 @@ function tl({
|
|
|
7383
7387
|
}), s === 0 && f(!1), u.current = s;
|
|
7384
7388
|
}, [s, o, e]), { showScrollBtn: l, turnMinHeight: c, scrollToBottom: g };
|
|
7385
7389
|
}
|
|
7386
|
-
const
|
|
7390
|
+
const r6 = {
|
|
7387
7391
|
threadId: "",
|
|
7388
7392
|
onThumbsUp: () => {
|
|
7389
7393
|
},
|
|
7390
7394
|
onThumbsDown: () => {
|
|
7391
7395
|
}
|
|
7392
|
-
}, j4 = (e) => /* @__PURE__ */ t(
|
|
7396
|
+
}, j4 = (e) => /* @__PURE__ */ t(_l, { children: /* @__PURE__ */ t(n6, { ...e }) }), n6 = ({
|
|
7393
7397
|
turns: e,
|
|
7394
7398
|
isLoadingThread: r = !1,
|
|
7395
7399
|
interrupt: n,
|
|
@@ -7413,12 +7417,12 @@ const rl = {
|
|
|
7413
7417
|
onRegenerate: T,
|
|
7414
7418
|
onCopy: R
|
|
7415
7419
|
}) => {
|
|
7416
|
-
const { modal: x, handleSubmit: E, handleClose: V } =
|
|
7417
|
-
h ??
|
|
7418
|
-
), P = G(), N = F ??
|
|
7420
|
+
const { modal: x, handleSubmit: E, handleClose: V } = jl(
|
|
7421
|
+
h ?? r6
|
|
7422
|
+
), P = G(), N = F ?? Pl, S = H ?? ql, B = X(() => {
|
|
7419
7423
|
const q = o ?? P.ai.defaultInitialMessage;
|
|
7420
7424
|
return (Array.isArray(q) ? q : [q]).filter((a1) => typeof a1 == "string" && a1.length > 0);
|
|
7421
|
-
}, [o, P.ai.defaultInitialMessage]), j = !r && e.length === 0 && B.length > 0, O = $(null), W = $(null), e1 = $(null), t1 = $(null), K = $(null), { showScrollBtn: Q, turnMinHeight: s1, scrollToBottom: p1 } =
|
|
7425
|
+
}, [o, P.ai.defaultInitialMessage]), j = !r && e.length === 0 && B.length > 0, O = $(null), W = $(null), e1 = $(null), t1 = $(null), K = $(null), { showScrollBtn: Q, turnMinHeight: s1, scrollToBottom: p1 } = t6({
|
|
7422
7426
|
viewportRef: O,
|
|
7423
7427
|
contentRef: W,
|
|
7424
7428
|
endRef: e1,
|
|
@@ -7490,29 +7494,29 @@ const rl = {
|
|
|
7490
7494
|
q.userMessages.map(
|
|
7491
7495
|
(L, y) => x1(L, y)
|
|
7492
7496
|
),
|
|
7493
|
-
q.thinking && q.thinking.titles.length > 0
|
|
7494
|
-
|
|
7497
|
+
q.thinking && q.thinking.titles.length > 0 ? /* @__PURE__ */ t(
|
|
7498
|
+
Ul,
|
|
7495
7499
|
{
|
|
7496
7500
|
titles: q.thinking.titles,
|
|
7497
7501
|
title: P.ai.thoughtsGroupTitle,
|
|
7498
7502
|
inProgress: q.thinking.inProgress,
|
|
7499
7503
|
isWriting: q.thinking.isWriting
|
|
7500
7504
|
}
|
|
7501
|
-
),
|
|
7505
|
+
) : null,
|
|
7502
7506
|
q.assistantMessages.map(
|
|
7503
7507
|
(L, y) => b1(L, y)
|
|
7504
7508
|
),
|
|
7505
|
-
q.endIndicator === "thinking"
|
|
7506
|
-
q.endIndicator === "activity"
|
|
7507
|
-
q.feedback
|
|
7508
|
-
|
|
7509
|
+
q.endIndicator === "thinking" ? /* @__PURE__ */ t(J1, { title: P.ai.thinking, status: "executing" }) : null,
|
|
7510
|
+
q.endIndicator === "activity" ? /* @__PURE__ */ t(J1, { status: "writing" }) : null,
|
|
7511
|
+
q.feedback ? /* @__PURE__ */ t(
|
|
7512
|
+
Ol,
|
|
7509
7513
|
{
|
|
7510
7514
|
content: q.feedback.content,
|
|
7511
7515
|
targetMessage: q.feedback.targetMessage,
|
|
7512
7516
|
onCopy: R
|
|
7513
7517
|
}
|
|
7514
|
-
),
|
|
7515
|
-
a1
|
|
7518
|
+
) : null,
|
|
7519
|
+
a1 ? /* @__PURE__ */ t(El, {}) : null
|
|
7516
7520
|
]
|
|
7517
7521
|
},
|
|
7518
7522
|
`turn-${d1}`
|
|
@@ -7546,9 +7550,9 @@ const rl = {
|
|
|
7546
7550
|
"w-full max-w-content"
|
|
7547
7551
|
),
|
|
7548
7552
|
children: [
|
|
7549
|
-
r
|
|
7550
|
-
j
|
|
7551
|
-
|
|
7553
|
+
r ? /* @__PURE__ */ t(o6, {}) : null,
|
|
7554
|
+
j ? /* @__PURE__ */ t(
|
|
7555
|
+
e6,
|
|
7552
7556
|
{
|
|
7553
7557
|
messages: B,
|
|
7554
7558
|
caption: s,
|
|
@@ -7557,15 +7561,15 @@ const rl = {
|
|
|
7557
7561
|
onClick: d,
|
|
7558
7562
|
fullscreen: p
|
|
7559
7563
|
}
|
|
7560
|
-
),
|
|
7561
|
-
|
|
7564
|
+
) : null,
|
|
7565
|
+
r ? null : e.map((q, d1) => c1(q, d1)),
|
|
7562
7566
|
n
|
|
7563
7567
|
]
|
|
7564
7568
|
}
|
|
7565
7569
|
),
|
|
7566
7570
|
/* @__PURE__ */ t("div", { ref: t1, className: "h-px shrink-0", "aria-hidden": !0 }),
|
|
7567
7571
|
/* @__PURE__ */ t("footer", { className: "copilotKitMessagesFooter", ref: e1, children: k }),
|
|
7568
|
-
/* @__PURE__ */ t(L1, { children: Q
|
|
7572
|
+
/* @__PURE__ */ t(L1, { children: Q ? /* @__PURE__ */ t(
|
|
7569
7573
|
Y.div,
|
|
7570
7574
|
{
|
|
7571
7575
|
className: "sticky bottom-2 z-10 flex justify-center",
|
|
@@ -7584,28 +7588,28 @@ const rl = {
|
|
|
7584
7588
|
}
|
|
7585
7589
|
) })
|
|
7586
7590
|
}
|
|
7587
|
-
) })
|
|
7591
|
+
) : null })
|
|
7588
7592
|
]
|
|
7589
7593
|
}
|
|
7590
7594
|
)
|
|
7591
7595
|
}
|
|
7592
7596
|
),
|
|
7593
|
-
!v && !j
|
|
7597
|
+
!v && !j ? /* @__PURE__ */ i(F1, { children: [
|
|
7594
7598
|
/* @__PURE__ */ t(Ae, { position: "top" }, "shadow-top"),
|
|
7595
7599
|
/* @__PURE__ */ t(Ae, { position: "bottom" }, "shadow-bottom")
|
|
7596
|
-
] })
|
|
7600
|
+
] }) : null
|
|
7597
7601
|
] }),
|
|
7598
|
-
x.isOpen
|
|
7599
|
-
|
|
7602
|
+
x.isOpen ? /* @__PURE__ */ t(
|
|
7603
|
+
Dl,
|
|
7600
7604
|
{
|
|
7601
7605
|
onSubmit: E,
|
|
7602
7606
|
onClose: V,
|
|
7603
7607
|
reactionType: x.currentReaction,
|
|
7604
7608
|
message: x.currentMessage
|
|
7605
7609
|
}
|
|
7606
|
-
)
|
|
7610
|
+
) : null
|
|
7607
7611
|
] });
|
|
7608
|
-
},
|
|
7612
|
+
}, o6 = () => /* @__PURE__ */ t("div", { className: "flex h-full w-full max-w-content flex-col gap-6", children: /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
|
|
7609
7613
|
/* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ t(u1, { className: "h-12 w-2/5 rounded-full" }) }),
|
|
7610
7614
|
/* @__PURE__ */ t(u1, { className: "mt-6 h-5 w-full rounded-md" }),
|
|
7611
7615
|
/* @__PURE__ */ t(u1, { className: "h-5 w-2/5 rounded-md" }),
|
|
@@ -7627,16 +7631,16 @@ function U4() {
|
|
|
7627
7631
|
);
|
|
7628
7632
|
return e;
|
|
7629
7633
|
}
|
|
7630
|
-
function
|
|
7634
|
+
function s6() {
|
|
7631
7635
|
const { canvasEntities: e } = y1();
|
|
7632
7636
|
return e;
|
|
7633
7637
|
}
|
|
7634
7638
|
function z4(e) {
|
|
7635
|
-
const r =
|
|
7639
|
+
const r = s6();
|
|
7636
7640
|
if (!(!e || !r))
|
|
7637
7641
|
return r[e];
|
|
7638
7642
|
}
|
|
7639
|
-
const
|
|
7643
|
+
const a6 = ({
|
|
7640
7644
|
canProceed: e,
|
|
7641
7645
|
submitDisabled: r,
|
|
7642
7646
|
label: n,
|
|
@@ -7646,7 +7650,7 @@ const al = ({
|
|
|
7646
7650
|
}) => {
|
|
7647
7651
|
const c = G();
|
|
7648
7652
|
return /* @__PURE__ */ i("div", { className: "flex items-center justify-end gap-3 p-3", children: [
|
|
7649
|
-
/* @__PURE__ */ t("div", { className: "flex items-center", children: a && s
|
|
7653
|
+
/* @__PURE__ */ t("div", { className: "flex items-center", children: a && s ? /* @__PURE__ */ t(
|
|
7650
7654
|
w1,
|
|
7651
7655
|
{
|
|
7652
7656
|
variant: "outline",
|
|
@@ -7655,7 +7659,7 @@ const al = ({
|
|
|
7655
7659
|
onClick: s,
|
|
7656
7660
|
disabled: r
|
|
7657
7661
|
}
|
|
7658
|
-
) }),
|
|
7662
|
+
) : null }),
|
|
7659
7663
|
/* @__PURE__ */ t(
|
|
7660
7664
|
w1,
|
|
7661
7665
|
{
|
|
@@ -7674,9 +7678,9 @@ const al = ({
|
|
|
7674
7678
|
"flex h-5 w-5 shrink-0 items-center justify-center rounded-full transition-colors",
|
|
7675
7679
|
e ? "bg-f1-background-selected-bold" : "border-2 border-solid border-f1-border bg-f1-background"
|
|
7676
7680
|
),
|
|
7677
|
-
children: e
|
|
7681
|
+
children: e ? /* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-f1-background" }) : null
|
|
7678
7682
|
}
|
|
7679
|
-
), Oe = 132,
|
|
7683
|
+
), Oe = 132, i6 = ({
|
|
7680
7684
|
mode: e,
|
|
7681
7685
|
hasSelection: r,
|
|
7682
7686
|
hasCustomText: n,
|
|
@@ -7790,7 +7794,7 @@ const al = ({
|
|
|
7790
7794
|
)
|
|
7791
7795
|
);
|
|
7792
7796
|
pr.displayName = "OptionRow";
|
|
7793
|
-
const
|
|
7797
|
+
const l6 = [0.23, 1, 0.32, 1], c6 = 0.2, d6 = 0.03, u6 = 4, f6 = ({
|
|
7794
7798
|
mode: e,
|
|
7795
7799
|
question: r,
|
|
7796
7800
|
options: n,
|
|
@@ -7845,12 +7849,12 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7845
7849
|
}
|
|
7846
7850
|
V.preventDefault(), T(N), R.current[N]?.focus();
|
|
7847
7851
|
}, E = (V) => ({
|
|
7848
|
-
initial: k ? !1 : { opacity: 0, y:
|
|
7852
|
+
initial: k ? !1 : { opacity: 0, y: u6 },
|
|
7849
7853
|
animate: { opacity: 1, y: 0 },
|
|
7850
7854
|
transition: {
|
|
7851
|
-
duration: k ? 0 :
|
|
7852
|
-
ease:
|
|
7853
|
-
delay: k ? 0 : V *
|
|
7855
|
+
duration: k ? 0 : c6,
|
|
7856
|
+
ease: l6,
|
|
7857
|
+
delay: k ? 0 : V * d6
|
|
7854
7858
|
}
|
|
7855
7859
|
});
|
|
7856
7860
|
return /* @__PURE__ */ i(
|
|
@@ -7874,8 +7878,8 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7874
7878
|
onKeyNavigate: x
|
|
7875
7879
|
}
|
|
7876
7880
|
) }, V.id)),
|
|
7877
|
-
s
|
|
7878
|
-
|
|
7881
|
+
s ? /* @__PURE__ */ t(Y.div, { ...E(n.length), children: /* @__PURE__ */ t(
|
|
7882
|
+
i6,
|
|
7879
7883
|
{
|
|
7880
7884
|
mode: e,
|
|
7881
7885
|
hasSelection: a,
|
|
@@ -7889,11 +7893,11 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7889
7893
|
onToggleActive: v,
|
|
7890
7894
|
onConfirm: p
|
|
7891
7895
|
}
|
|
7892
|
-
) })
|
|
7896
|
+
) }) : null
|
|
7893
7897
|
]
|
|
7894
7898
|
}
|
|
7895
7899
|
);
|
|
7896
|
-
},
|
|
7900
|
+
}, h6 = ({
|
|
7897
7901
|
question: e,
|
|
7898
7902
|
stepLabel: r,
|
|
7899
7903
|
isFirstStep: n,
|
|
@@ -7913,7 +7917,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7913
7917
|
children: e
|
|
7914
7918
|
}
|
|
7915
7919
|
),
|
|
7916
|
-
r
|
|
7920
|
+
r ? /* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
7917
7921
|
/* @__PURE__ */ t(
|
|
7918
7922
|
w1,
|
|
7919
7923
|
{
|
|
@@ -7941,7 +7945,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7941
7945
|
icon: G1
|
|
7942
7946
|
}
|
|
7943
7947
|
)
|
|
7944
|
-
] }),
|
|
7948
|
+
] }) : null,
|
|
7945
7949
|
/* @__PURE__ */ t(
|
|
7946
7950
|
w1,
|
|
7947
7951
|
{
|
|
@@ -7955,16 +7959,16 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
7955
7959
|
}
|
|
7956
7960
|
)
|
|
7957
7961
|
] });
|
|
7958
|
-
}, Ze = "easeOut",
|
|
7962
|
+
}, Ze = "easeOut", C6 = 0.15, p6 = 0.1, G4 = ({
|
|
7959
7963
|
clarifyingQuestion: e,
|
|
7960
7964
|
isSubmitDisabled: r
|
|
7961
7965
|
}) => /* @__PURE__ */ t(
|
|
7962
|
-
|
|
7966
|
+
m6,
|
|
7963
7967
|
{
|
|
7964
7968
|
clarifyingQuestion: e,
|
|
7965
7969
|
isSubmitDisabled: r
|
|
7966
7970
|
}
|
|
7967
|
-
),
|
|
7971
|
+
), m6 = ({
|
|
7968
7972
|
clarifyingQuestion: e,
|
|
7969
7973
|
isSubmitDisabled: r
|
|
7970
7974
|
}) => {
|
|
@@ -8005,7 +8009,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
8005
8009
|
});
|
|
8006
8010
|
}, q = (J) => {
|
|
8007
8011
|
J.key === "Escape" && (J.preventDefault(), u());
|
|
8008
|
-
}, d1 = o ? 0 :
|
|
8012
|
+
}, d1 = o ? 0 : C6, a1 = o ? 0 : p6;
|
|
8009
8013
|
return /* @__PURE__ */ i("div", { className: "flex flex-col", onKeyDown: q, children: [
|
|
8010
8014
|
/* @__PURE__ */ t("div", { className: "flex flex-col gap-3 pt-3", children: /* @__PURE__ */ t(L1, { mode: "wait", initial: !1, children: /* @__PURE__ */ i(
|
|
8011
8015
|
Y.div,
|
|
@@ -8019,7 +8023,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
8019
8023
|
exit: { opacity: 0, transition: { duration: a1, ease: Ze } },
|
|
8020
8024
|
children: [
|
|
8021
8025
|
/* @__PURE__ */ t(
|
|
8022
|
-
|
|
8026
|
+
h6,
|
|
8023
8027
|
{
|
|
8024
8028
|
question: v,
|
|
8025
8029
|
stepLabel: B,
|
|
@@ -8032,7 +8036,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
8032
8036
|
}
|
|
8033
8037
|
),
|
|
8034
8038
|
/* @__PURE__ */ t(
|
|
8035
|
-
|
|
8039
|
+
f6,
|
|
8036
8040
|
{
|
|
8037
8041
|
mode: V,
|
|
8038
8042
|
question: v,
|
|
@@ -8057,7 +8061,7 @@ const ll = [0.23, 1, 0.32, 1], cl = 0.2, dl = 0.03, ul = 4, fl = ({
|
|
|
8057
8061
|
a
|
|
8058
8062
|
) }) }),
|
|
8059
8063
|
/* @__PURE__ */ t(
|
|
8060
|
-
|
|
8064
|
+
a6,
|
|
8061
8065
|
{
|
|
8062
8066
|
canProceed: W,
|
|
8063
8067
|
submitDisabled: e1,
|
|
@@ -8189,7 +8193,7 @@ function ze(e, r, n) {
|
|
|
8189
8193
|
}
|
|
8190
8194
|
return o;
|
|
8191
8195
|
}
|
|
8192
|
-
function
|
|
8196
|
+
function g6(e, r, n) {
|
|
8193
8197
|
const o = ze(e, e.VERTEX_SHADER, r), s = ze(e, e.FRAGMENT_SHADER, n), a = e.createProgram();
|
|
8194
8198
|
if (!a)
|
|
8195
8199
|
throw new Error("Failed to create program");
|
|
@@ -8199,7 +8203,7 @@ function gl(e, r, n) {
|
|
|
8199
8203
|
}
|
|
8200
8204
|
return e.deleteShader(o), e.deleteShader(s), a;
|
|
8201
8205
|
}
|
|
8202
|
-
const
|
|
8206
|
+
const w6 = `#version 300 es
|
|
8203
8207
|
precision lowp float;
|
|
8204
8208
|
|
|
8205
8209
|
in vec2 vUV;
|
|
@@ -8406,7 +8410,7 @@ void main() {
|
|
|
8406
8410
|
|
|
8407
8411
|
outColor = vec4(color, alpha);
|
|
8408
8412
|
}
|
|
8409
|
-
`,
|
|
8413
|
+
`, v6 = `#version 300 es
|
|
8410
8414
|
|
|
8411
8415
|
in vec2 aPosition;
|
|
8412
8416
|
in vec2 aUV;
|
|
@@ -8415,7 +8419,7 @@ void main() {
|
|
|
8415
8419
|
vUV = aUV;
|
|
8416
8420
|
gl_Position = vec4(aPosition, 0.0, 1.0);
|
|
8417
8421
|
}
|
|
8418
|
-
`,
|
|
8422
|
+
`, L6 = [
|
|
8419
8423
|
"rgb(229, 25, 67)",
|
|
8420
8424
|
// #E51943 red
|
|
8421
8425
|
"rgb(229, 86, 25)",
|
|
@@ -8425,7 +8429,7 @@ void main() {
|
|
|
8425
8429
|
"rgb(161, 173, 229)"
|
|
8426
8430
|
// #A1ADE5 light blue
|
|
8427
8431
|
];
|
|
8428
|
-
function
|
|
8432
|
+
function x6(e) {
|
|
8429
8433
|
const r = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
8430
8434
|
if (!r)
|
|
8431
8435
|
throw new Error(`Invalid color format: ${e}`);
|
|
@@ -8592,7 +8596,7 @@ class W4 {
|
|
|
8592
8596
|
});
|
|
8593
8597
|
if (!r)
|
|
8594
8598
|
throw new Error("WebGL2 is required but not available.");
|
|
8595
|
-
const n =
|
|
8599
|
+
const n = g6(r, v6, w6);
|
|
8596
8600
|
this.checkGLError(r, "setupGL: after createProgram");
|
|
8597
8601
|
const o = r.createVertexArray();
|
|
8598
8602
|
r.bindVertexArray(o), this.checkGLError(r, "setupGL: after VAO creation");
|
|
@@ -8611,7 +8615,7 @@ class W4 {
|
|
|
8611
8615
|
r.enableVertexAttribArray(C), r.vertexAttribPointer(C, 2, r.FLOAT, !1, 0, 0), this.checkGLError(r, "setupGL: after UV buffer setup");
|
|
8612
8616
|
const g = r.getUniformLocation(n, "uResolution"), h = r.getUniformLocation(n, "uTime"), w = r.getUniformLocation(n, "uBorderWidth"), v = r.getUniformLocation(n, "uGlowWidth"), p = r.getUniformLocation(n, "uBorderRadius"), k = r.getUniformLocation(n, "uColors"), F = r.getUniformLocation(n, "uGlowExponent"), H = r.getUniformLocation(n, "uGlowFactor");
|
|
8613
8617
|
r.useProgram(n), r.uniform1f(w, this.options.borderWidth), r.uniform1f(v, this.options.glowWidth), r.uniform1f(p, this.options.borderRadius), this.options.mode === "dark" ? (r.uniform1f(F, 2), r.uniform1f(H, 1.8)) : (r.uniform1f(F, 1), r.uniform1f(H, 1));
|
|
8614
|
-
const T = (this.options.colors ||
|
|
8618
|
+
const T = (this.options.colors || L6).map(x6);
|
|
8615
8619
|
for (let R = 0; R < T.length; R++)
|
|
8616
8620
|
r.uniform3f(
|
|
8617
8621
|
r.getUniformLocation(n, `uColors[${R}]`),
|
|
@@ -8638,7 +8642,7 @@ class W4 {
|
|
|
8638
8642
|
n.useProgram(o), n.bindVertexArray(s), n.uniform1f(a, r), n.disable(n.DEPTH_TEST), n.disable(n.CULL_FACE), n.disable(n.BLEND), n.clearColor(0, 0, 0, 0), n.clear(n.COLOR_BUFFER_BIT), n.drawArrays(n.TRIANGLES, 0, 24), this.checkGLError(n, "render: after draw call"), n.bindVertexArray(null);
|
|
8639
8643
|
}
|
|
8640
8644
|
}
|
|
8641
|
-
const
|
|
8645
|
+
const b6 = 10, k6 = 2, y6 = 0.5, M6 = 0.2, R6 = 1.5, h1 = {
|
|
8642
8646
|
duration: 0.5,
|
|
8643
8647
|
ease: "easeOut"
|
|
8644
8648
|
}, Ge = {
|
|
@@ -8658,12 +8662,12 @@ function O1(e) {
|
|
|
8658
8662
|
);
|
|
8659
8663
|
return { value: r, motionValue: o, controls: s, animate: a };
|
|
8660
8664
|
}
|
|
8661
|
-
function
|
|
8662
|
-
const [n, o] = I(
|
|
8665
|
+
function F6(e, r) {
|
|
8666
|
+
const [n, o] = I(b6), {
|
|
8663
8667
|
value: s,
|
|
8664
8668
|
animate: a,
|
|
8665
8669
|
motionValue: c
|
|
8666
|
-
} = O1(
|
|
8670
|
+
} = O1(M6), { value: d, animate: l } = O1(k6), { value: f, animate: u } = O1(y6), { value: C, animate: g } = O1(R6), h = $s(r, {
|
|
8667
8671
|
fftSize: 512,
|
|
8668
8672
|
smoothingTimeConstant: 0.55
|
|
8669
8673
|
});
|
|
@@ -8711,30 +8715,30 @@ function Fl(e, r) {
|
|
|
8711
8715
|
brightness: C
|
|
8712
8716
|
};
|
|
8713
8717
|
}
|
|
8714
|
-
const We = ["lowp", "mediump", "highp"],
|
|
8718
|
+
const We = ["lowp", "mediump", "highp"], N6 = `
|
|
8715
8719
|
void main(void){
|
|
8716
8720
|
vec4 color = vec4(0.0,0.0,0.0,1.0);
|
|
8717
8721
|
mainImage( color, gl_FragCoord.xy );
|
|
8718
8722
|
gl_FragColor = color;
|
|
8719
|
-
}`,
|
|
8723
|
+
}`, S6 = `void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
|
|
8720
8724
|
vec2 uv = fragCoord/iResolution.xy;
|
|
8721
8725
|
vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
|
|
8722
8726
|
fragColor = vec4(col,1.0);
|
|
8723
8727
|
}`, qe = `attribute vec3 aVertexPosition;
|
|
8724
8728
|
void main(void) {
|
|
8725
8729
|
gl_Position = vec4(aVertexPosition, 1.0);
|
|
8726
|
-
}`, Xe = "iTime", Ye = "iTimeDelta", Ke = "iDate", Qe = "iFrame", Je = "iMouse", et = "iResolution",
|
|
8727
|
-
function
|
|
8730
|
+
}`, Xe = "iTime", Ye = "iTimeDelta", Ke = "iDate", Qe = "iFrame", Je = "iMouse", et = "iResolution", V6 = "iChannel", tt = "iChannelResolution", rt = "iDeviceOrientation";
|
|
8731
|
+
function T6(e, r) {
|
|
8728
8732
|
return e.includes("Matrix") && Array.isArray(r);
|
|
8729
8733
|
}
|
|
8730
|
-
function
|
|
8734
|
+
function H6(e, r) {
|
|
8731
8735
|
return e.includes("v") && Array.isArray(r) && r.length > Number.parseInt(e.charAt(0));
|
|
8732
8736
|
}
|
|
8733
|
-
function
|
|
8737
|
+
function A6(e, r) {
|
|
8734
8738
|
return !e.includes("v") && Array.isArray(r) && r.length > Number.parseInt(e.charAt(0));
|
|
8735
8739
|
}
|
|
8736
|
-
const
|
|
8737
|
-
if (
|
|
8740
|
+
const E6 = (e, r, n, o) => {
|
|
8741
|
+
if (A6(n, o))
|
|
8738
8742
|
switch (n) {
|
|
8739
8743
|
case "2f":
|
|
8740
8744
|
return e.uniform2f(r, o[0], o[1]);
|
|
@@ -8775,7 +8779,7 @@ const El = (e, r, n, o) => {
|
|
|
8775
8779
|
case "Matrix4fv":
|
|
8776
8780
|
return e.uniformMatrix4fv(r, !1, o);
|
|
8777
8781
|
}
|
|
8778
|
-
}, $
|
|
8782
|
+
}, $6 = (e) => {
|
|
8779
8783
|
switch (e) {
|
|
8780
8784
|
case "1f":
|
|
8781
8785
|
return "float";
|
|
@@ -8822,8 +8826,8 @@ const El = (e, r, n, o) => {
|
|
|
8822
8826
|
)
|
|
8823
8827
|
);
|
|
8824
8828
|
}
|
|
8825
|
-
}, Q1 = 9729, nt = 9728,
|
|
8826
|
-
class
|
|
8829
|
+
}, Q1 = 9729, nt = 9728, B6 = 9987, ot = 33071, st = 10497;
|
|
8830
|
+
class I6 {
|
|
8827
8831
|
gl;
|
|
8828
8832
|
url;
|
|
8829
8833
|
wrapS;
|
|
@@ -8955,7 +8959,7 @@ class Il {
|
|
|
8955
8959
|
), n.texParameteri(
|
|
8956
8960
|
n.TEXTURE_2D,
|
|
8957
8961
|
n.TEXTURE_MIN_FILTER,
|
|
8958
|
-
this.minFilter ||
|
|
8962
|
+
this.minFilter || B6
|
|
8959
8963
|
), n.texParameteri(
|
|
8960
8964
|
n.TEXTURE_2D,
|
|
8961
8965
|
n.TEXTURE_MAG_FILTER,
|
|
@@ -8969,8 +8973,8 @@ const k1 = (e) => `react-shaders: ${e}`, at = (e) => {
|
|
|
8969
8973
|
return [r?.clientX ?? 0, r?.clientY ?? 0];
|
|
8970
8974
|
}
|
|
8971
8975
|
return [e.clientX, e.clientY];
|
|
8972
|
-
}, it = (e, r, n) => e * (1 - n) + r * n,
|
|
8973
|
-
function
|
|
8976
|
+
}, it = (e, r, n) => e * (1 - n) + r * n, P6 = (e, r, n) => n > 0 ? e.substring(0, n) + r + e.substring(n, e.length) : r + e;
|
|
8977
|
+
function D6({
|
|
8974
8978
|
fs: e,
|
|
8975
8979
|
vs: r = qe,
|
|
8976
8980
|
textures: n = [],
|
|
@@ -9113,14 +9117,14 @@ ${y}`));
|
|
|
9113
9117
|
const y = o[L];
|
|
9114
9118
|
if (!y)
|
|
9115
9119
|
continue;
|
|
9116
|
-
const { value: M, type: D } = y, A = $
|
|
9120
|
+
const { value: M, type: D } = y, A = $6(D);
|
|
9117
9121
|
if (!A)
|
|
9118
9122
|
continue;
|
|
9119
9123
|
const U = {};
|
|
9120
|
-
if (
|
|
9124
|
+
if (T6(D, M)) {
|
|
9121
9125
|
const i1 = D.length, m1 = Number.parseInt(D.charAt(i1 - 3)), M1 = Math.floor(M.length / (m1 * m1));
|
|
9122
9126
|
M.length > m1 * m1 && (U.arraySize = `[${M1}]`);
|
|
9123
|
-
} else
|
|
9127
|
+
} else H6(D, M) && (U.arraySize = `[${Math.floor(M.length / Number.parseInt(D.charAt(0)))}]`);
|
|
9124
9128
|
N.current[L] = {
|
|
9125
9129
|
type: A,
|
|
9126
9130
|
isNeeded: !1,
|
|
@@ -9139,10 +9143,10 @@ ${y}`));
|
|
|
9139
9143
|
value: []
|
|
9140
9144
|
};
|
|
9141
9145
|
const y = n.map(
|
|
9142
|
-
(M, D) => (N.current[`${
|
|
9146
|
+
(M, D) => (N.current[`${V6}${D}`] = {
|
|
9143
9147
|
type: "sampler2D",
|
|
9144
9148
|
isNeeded: !1
|
|
9145
|
-
}, B(M, D), E.current[D] = new
|
|
9149
|
+
}, B(M, D), E.current[D] = new I6(L), E.current[D]?.load(M).then((A) => {
|
|
9146
9150
|
B(A, D);
|
|
9147
9151
|
}))
|
|
9148
9152
|
);
|
|
@@ -9167,14 +9171,14 @@ ${y}`));
|
|
|
9167
9171
|
const i1 = N.current[U];
|
|
9168
9172
|
if (!i1)
|
|
9169
9173
|
continue;
|
|
9170
|
-
D =
|
|
9174
|
+
D = P6(
|
|
9171
9175
|
D,
|
|
9172
9176
|
`uniform ${i1.type} ${U}${i1.arraySize || ""};
|
|
9173
9177
|
`,
|
|
9174
9178
|
D.lastIndexOf(M) + M.length
|
|
9175
9179
|
), i1.isNeeded = !0;
|
|
9176
9180
|
}
|
|
9177
|
-
return L.includes("mainImage") && (D = D.concat(
|
|
9181
|
+
return L.includes("mainImage") && (D = D.concat(N6)), D;
|
|
9178
9182
|
}, a1 = (L) => {
|
|
9179
9183
|
const y = w.current;
|
|
9180
9184
|
if (!y || !p.current)
|
|
@@ -9194,7 +9198,7 @@ ${y}`));
|
|
|
9194
9198
|
);
|
|
9195
9199
|
if (!i1)
|
|
9196
9200
|
return;
|
|
9197
|
-
|
|
9201
|
+
E6(
|
|
9198
9202
|
y,
|
|
9199
9203
|
i1,
|
|
9200
9204
|
U.type,
|
|
@@ -9319,7 +9323,7 @@ ${y}`));
|
|
|
9319
9323
|
function y() {
|
|
9320
9324
|
j();
|
|
9321
9325
|
const M = w.current;
|
|
9322
|
-
M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, c1(), q(), p1(d1(e ||
|
|
9326
|
+
M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, c1(), q(), p1(d1(e || S6), r || qe), O(), requestAnimationFrame(J), x1(), Q());
|
|
9323
9327
|
}
|
|
9324
9328
|
return requestAnimationFrame(y), () => {
|
|
9325
9329
|
const M = w.current;
|
|
@@ -9339,7 +9343,7 @@ ${y}`));
|
|
|
9339
9343
|
}
|
|
9340
9344
|
);
|
|
9341
9345
|
}
|
|
9342
|
-
const
|
|
9346
|
+
const _6 = `
|
|
9343
9347
|
const float TAU = 6.283185;
|
|
9344
9348
|
|
|
9345
9349
|
// Noise for dithering
|
|
@@ -9506,7 +9510,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
9506
9510
|
float alpha = mappedBrightness * clamp(uMix, 1.0, 2.0);
|
|
9507
9511
|
fragColor = vec4(color, alpha);
|
|
9508
9512
|
}
|
|
9509
|
-
}`,
|
|
9513
|
+
}`, j6 = B1({
|
|
9510
9514
|
base: "aspect-square",
|
|
9511
9515
|
variants: {
|
|
9512
9516
|
size: {
|
|
@@ -9521,7 +9525,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
9521
9525
|
size: "lg"
|
|
9522
9526
|
}
|
|
9523
9527
|
});
|
|
9524
|
-
function
|
|
9528
|
+
function O6(e) {
|
|
9525
9529
|
const r = e.match(
|
|
9526
9530
|
/^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
9527
9531
|
);
|
|
@@ -9545,11 +9549,11 @@ function mr({
|
|
|
9545
9549
|
className: C,
|
|
9546
9550
|
...g
|
|
9547
9551
|
}) {
|
|
9548
|
-
const h = X(() =>
|
|
9552
|
+
const h = X(() => O6(c), [c]);
|
|
9549
9553
|
return /* @__PURE__ */ t("div", { ref: u, className: C, ...g, children: /* @__PURE__ */ t(
|
|
9550
|
-
|
|
9554
|
+
D6,
|
|
9551
9555
|
{
|
|
9552
|
-
fs:
|
|
9556
|
+
fs: _6,
|
|
9553
9557
|
devicePixelRatio: globalThis.devicePixelRatio ?? 1,
|
|
9554
9558
|
uniforms: {
|
|
9555
9559
|
// Aurora wave speed
|
|
@@ -9603,7 +9607,7 @@ function q4({
|
|
|
9603
9607
|
ref: d,
|
|
9604
9608
|
...l
|
|
9605
9609
|
}) {
|
|
9606
|
-
const { speed: f, scale: u, amplitude: C, frequency: g, brightness: h } =
|
|
9610
|
+
const { speed: f, scale: u, amplitude: C, frequency: g, brightness: h } = F6(r, s);
|
|
9607
9611
|
return /* @__PURE__ */ t(
|
|
9608
9612
|
mr,
|
|
9609
9613
|
{
|
|
@@ -9618,7 +9622,7 @@ function q4({
|
|
|
9618
9622
|
frequency: g,
|
|
9619
9623
|
brightness: h,
|
|
9620
9624
|
className: b(
|
|
9621
|
-
|
|
9625
|
+
j6({ size: e }),
|
|
9622
9626
|
"overflow-hidden rounded-full",
|
|
9623
9627
|
c
|
|
9624
9628
|
),
|
|
@@ -9651,7 +9655,7 @@ const X4 = ({
|
|
|
9651
9655
|
onClick: c
|
|
9652
9656
|
}
|
|
9653
9657
|
}
|
|
9654
|
-
),
|
|
9658
|
+
), Z6 = B1({
|
|
9655
9659
|
base: [
|
|
9656
9660
|
"relative flex flex-col rounded-2xl bg-f1-background",
|
|
9657
9661
|
"border border-solid border-f1-border-secondary",
|
|
@@ -9669,19 +9673,19 @@ const X4 = ({
|
|
|
9669
9673
|
}
|
|
9670
9674
|
}), gr = B1({
|
|
9671
9675
|
base: "text-lg font-semibold text-f1-foreground line-clamp-3"
|
|
9672
|
-
}),
|
|
9676
|
+
}), U6 = B1({
|
|
9673
9677
|
base: "text-sm text-f1-foreground-secondary leading-normal"
|
|
9674
9678
|
}), Z1 = B1({
|
|
9675
9679
|
base: "text-sm font-medium text-f1-foreground leading-normal"
|
|
9676
|
-
}),
|
|
9680
|
+
}), z6 = ({
|
|
9677
9681
|
description: e,
|
|
9678
9682
|
isRevealed: r,
|
|
9679
9683
|
onAskOne: n
|
|
9680
9684
|
}) => {
|
|
9681
9685
|
const o = G(), s = C1();
|
|
9682
9686
|
return /* @__PURE__ */ i(F1, { children: [
|
|
9683
|
-
e
|
|
9684
|
-
/* @__PURE__ */ t(L1, { children: n && r
|
|
9687
|
+
e ? /* @__PURE__ */ t("span", { className: b(U6(), "truncate"), children: e }) : null,
|
|
9688
|
+
/* @__PURE__ */ t(L1, { children: n && r ? /* @__PURE__ */ t(
|
|
9685
9689
|
Y.div,
|
|
9686
9690
|
{
|
|
9687
9691
|
className: "absolute bottom-4 left-4 z-10",
|
|
@@ -9703,16 +9707,16 @@ const X4 = ({
|
|
|
9703
9707
|
}
|
|
9704
9708
|
)
|
|
9705
9709
|
}
|
|
9706
|
-
) })
|
|
9710
|
+
) : null })
|
|
9707
9711
|
] });
|
|
9708
|
-
},
|
|
9712
|
+
}, G6 = /* @__PURE__ */ new Set([
|
|
9709
9713
|
"person",
|
|
9710
9714
|
"people",
|
|
9711
9715
|
"team",
|
|
9712
9716
|
"company",
|
|
9713
9717
|
"alert",
|
|
9714
9718
|
"balance"
|
|
9715
|
-
]),
|
|
9719
|
+
]), W6 = ({ balance: e }) => /* @__PURE__ */ t(
|
|
9716
9720
|
ws,
|
|
9717
9721
|
{
|
|
9718
9722
|
amount: e.amount,
|
|
@@ -9720,7 +9724,7 @@ const X4 = ({
|
|
|
9720
9724
|
invertStatus: e.invertStatus,
|
|
9721
9725
|
hint: e.hint
|
|
9722
9726
|
}
|
|
9723
|
-
),
|
|
9727
|
+
), q6 = (e) => {
|
|
9724
9728
|
const {
|
|
9725
9729
|
heading: r,
|
|
9726
9730
|
label: n,
|
|
@@ -9737,7 +9741,7 @@ const X4 = ({
|
|
|
9737
9741
|
animate: { opacity: s ? 0 : 1 },
|
|
9738
9742
|
transition: a,
|
|
9739
9743
|
children: [
|
|
9740
|
-
o === "person"
|
|
9744
|
+
o === "person" ? /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
9741
9745
|
/* @__PURE__ */ t(
|
|
9742
9746
|
Ht,
|
|
9743
9747
|
{
|
|
@@ -9747,9 +9751,9 @@ const X4 = ({
|
|
|
9747
9751
|
size: "xs"
|
|
9748
9752
|
}
|
|
9749
9753
|
),
|
|
9750
|
-
n
|
|
9751
|
-
] }),
|
|
9752
|
-
o === "people"
|
|
9754
|
+
n ? /* @__PURE__ */ t("span", { className: b(Z1()), children: n }) : null
|
|
9755
|
+
] }) : null,
|
|
9756
|
+
o === "people" ? /* @__PURE__ */ t(
|
|
9753
9757
|
ps,
|
|
9754
9758
|
{
|
|
9755
9759
|
type: "person",
|
|
@@ -9757,8 +9761,8 @@ const X4 = ({
|
|
|
9757
9761
|
size: "md",
|
|
9758
9762
|
max: 3
|
|
9759
9763
|
}
|
|
9760
|
-
),
|
|
9761
|
-
o === "team"
|
|
9764
|
+
) : null,
|
|
9765
|
+
o === "team" ? /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
9762
9766
|
/* @__PURE__ */ t(
|
|
9763
9767
|
ms,
|
|
9764
9768
|
{
|
|
@@ -9767,9 +9771,9 @@ const X4 = ({
|
|
|
9767
9771
|
size: "xs"
|
|
9768
9772
|
}
|
|
9769
9773
|
),
|
|
9770
|
-
n
|
|
9771
|
-
] }),
|
|
9772
|
-
o === "company"
|
|
9774
|
+
n ? /* @__PURE__ */ t("span", { className: b(Z1()), children: n }) : null
|
|
9775
|
+
] }) : null,
|
|
9776
|
+
o === "company" ? /* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
9773
9777
|
/* @__PURE__ */ t(
|
|
9774
9778
|
ue,
|
|
9775
9779
|
{
|
|
@@ -9778,14 +9782,14 @@ const X4 = ({
|
|
|
9778
9782
|
size: "xs"
|
|
9779
9783
|
}
|
|
9780
9784
|
),
|
|
9781
|
-
n
|
|
9782
|
-
] }),
|
|
9783
|
-
o === "alert"
|
|
9784
|
-
o === "balance"
|
|
9785
|
+
n ? /* @__PURE__ */ t("span", { className: b(Z1()), children: n }) : null
|
|
9786
|
+
] }) : null,
|
|
9787
|
+
o === "alert" ? /* @__PURE__ */ t(gs, { text: e.alertLabel, level: e.level }) : null,
|
|
9788
|
+
o === "balance" ? /* @__PURE__ */ t(W6, { balance: e.balance }) : null
|
|
9785
9789
|
]
|
|
9786
9790
|
}
|
|
9787
9791
|
),
|
|
9788
|
-
n && !
|
|
9792
|
+
n && !G6.has(o) ? /* @__PURE__ */ t(
|
|
9789
9793
|
Y.span,
|
|
9790
9794
|
{
|
|
9791
9795
|
className: b(Z1()),
|
|
@@ -9793,7 +9797,7 @@ const X4 = ({
|
|
|
9793
9797
|
transition: a,
|
|
9794
9798
|
children: n
|
|
9795
9799
|
}
|
|
9796
|
-
)
|
|
9800
|
+
) : null
|
|
9797
9801
|
] });
|
|
9798
9802
|
}, wr = {
|
|
9799
9803
|
positive: {
|
|
@@ -9812,17 +9816,17 @@ const X4 = ({
|
|
|
9812
9816
|
border: "border-f1-border"
|
|
9813
9817
|
}
|
|
9814
9818
|
};
|
|
9815
|
-
function
|
|
9819
|
+
function X6(e, r) {
|
|
9816
9820
|
const n = e[0]?.value ?? 0, o = e[e.length - 1]?.value ?? 0, s = Math.sign(o - n), a = r ? s * -1 : s;
|
|
9817
9821
|
return a > 0 ? "positive" : a < 0 ? "negative" : "neutral";
|
|
9818
9822
|
}
|
|
9819
|
-
const
|
|
9823
|
+
const Y6 = ({
|
|
9820
9824
|
cx: e,
|
|
9821
9825
|
cy: r,
|
|
9822
9826
|
index: n,
|
|
9823
9827
|
dataLength: o,
|
|
9824
9828
|
color: s
|
|
9825
|
-
}) => n !== o - 1 || e == null || r == null ? null : /* @__PURE__ */ t("circle", { cx: e, cy: r, r: 2, fill: s, stroke: "none" }),
|
|
9829
|
+
}) => n !== o - 1 || e == null || r == null ? null : /* @__PURE__ */ t("circle", { cx: e, cy: r, r: 2, fill: s, stroke: "none" }), K6 = ({
|
|
9826
9830
|
label: e,
|
|
9827
9831
|
direction: r
|
|
9828
9832
|
}) => {
|
|
@@ -9844,12 +9848,12 @@ const Yl = ({
|
|
|
9844
9848
|
children: e
|
|
9845
9849
|
}
|
|
9846
9850
|
);
|
|
9847
|
-
},
|
|
9851
|
+
}, Q6 = ({
|
|
9848
9852
|
data: e,
|
|
9849
9853
|
label: r,
|
|
9850
9854
|
invertStatus: n
|
|
9851
9855
|
}) => {
|
|
9852
|
-
const s = `sparkline-gradient-${U1().replace(/:/g, "")}`, a =
|
|
9856
|
+
const s = `sparkline-gradient-${U1().replace(/:/g, "")}`, a = X6(e, n), c = wr[a];
|
|
9853
9857
|
return /* @__PURE__ */ t("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ i(
|
|
9854
9858
|
"div",
|
|
9855
9859
|
{
|
|
@@ -9879,7 +9883,7 @@ const Yl = ({
|
|
|
9879
9883
|
fillOpacity: 1,
|
|
9880
9884
|
isAnimationActive: !1,
|
|
9881
9885
|
dot: (d) => /* @__PURE__ */ jr(
|
|
9882
|
-
|
|
9886
|
+
Y6,
|
|
9883
9887
|
{
|
|
9884
9888
|
...d,
|
|
9885
9889
|
key: d.index,
|
|
@@ -9893,7 +9897,7 @@ const Yl = ({
|
|
|
9893
9897
|
]
|
|
9894
9898
|
}
|
|
9895
9899
|
) }),
|
|
9896
|
-
/* @__PURE__ */ t(
|
|
9900
|
+
/* @__PURE__ */ t(K6, { label: r, direction: a })
|
|
9897
9901
|
]
|
|
9898
9902
|
}
|
|
9899
9903
|
) });
|
|
@@ -9917,7 +9921,7 @@ const Yl = ({
|
|
|
9917
9921
|
T.currentTarget === T.target && (T.key === "Enter" || T.key === " ") && (T.preventDefault(), c?.());
|
|
9918
9922
|
};
|
|
9919
9923
|
return /* @__PURE__ */ i("div", { className: "relative", children: [
|
|
9920
|
-
a
|
|
9924
|
+
a ? /* @__PURE__ */ i(F1, { children: [
|
|
9921
9925
|
/* @__PURE__ */ t(
|
|
9922
9926
|
"div",
|
|
9923
9927
|
{
|
|
@@ -9942,7 +9946,7 @@ const Yl = ({
|
|
|
9942
9946
|
)
|
|
9943
9947
|
}
|
|
9944
9948
|
)
|
|
9945
|
-
] }),
|
|
9949
|
+
] }) : null,
|
|
9946
9950
|
/* @__PURE__ */ i(
|
|
9947
9951
|
"div",
|
|
9948
9952
|
{
|
|
@@ -9950,7 +9954,7 @@ const Yl = ({
|
|
|
9950
9954
|
role: c ? "button" : void 0,
|
|
9951
9955
|
tabIndex: c ? 0 : void 0,
|
|
9952
9956
|
className: b(
|
|
9953
|
-
|
|
9957
|
+
Z6({ selected: a }),
|
|
9954
9958
|
a && "relative border-transparent",
|
|
9955
9959
|
c && "cursor-pointer select-none",
|
|
9956
9960
|
c && f1(),
|
|
@@ -9964,7 +9968,7 @@ const Yl = ({
|
|
|
9964
9968
|
onBlur: () => h(!1),
|
|
9965
9969
|
children: [
|
|
9966
9970
|
/* @__PURE__ */ t(
|
|
9967
|
-
|
|
9971
|
+
z6,
|
|
9968
9972
|
{
|
|
9969
9973
|
description: n,
|
|
9970
9974
|
isRevealed: w,
|
|
@@ -9980,7 +9984,7 @@ const Yl = ({
|
|
|
9980
9984
|
animate: { opacity: p ? 0 : 1 },
|
|
9981
9985
|
transition: k,
|
|
9982
9986
|
children: /* @__PURE__ */ t(
|
|
9983
|
-
|
|
9987
|
+
Q6,
|
|
9984
9988
|
{
|
|
9985
9989
|
data: f.data,
|
|
9986
9990
|
label: s ?? "",
|
|
@@ -9990,7 +9994,7 @@ const Yl = ({
|
|
|
9990
9994
|
}
|
|
9991
9995
|
)
|
|
9992
9996
|
] }) : /* @__PURE__ */ t(
|
|
9993
|
-
|
|
9997
|
+
q6,
|
|
9994
9998
|
{
|
|
9995
9999
|
heading: o,
|
|
9996
10000
|
label: s,
|
|
@@ -10006,8 +10010,8 @@ const Yl = ({
|
|
|
10006
10010
|
}
|
|
10007
10011
|
);
|
|
10008
10012
|
vr.displayName = "F0AiInsightCardInternal";
|
|
10009
|
-
const
|
|
10010
|
-
const n =
|
|
10013
|
+
const J6 = ["className"], Lr = m((e, r) => {
|
|
10014
|
+
const n = J6.reduce((o, s) => {
|
|
10011
10015
|
const { [s]: a, ...c } = o;
|
|
10012
10016
|
return c;
|
|
10013
10017
|
}, e);
|
|
@@ -10069,10 +10073,10 @@ function s4(e) {
|
|
|
10069
10073
|
...p,
|
|
10070
10074
|
children: [
|
|
10071
10075
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
10072
|
-
r
|
|
10076
|
+
r ? /* @__PURE__ */ t(At, { module: r, size: "md" }) : null,
|
|
10073
10077
|
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
10074
10078
|
/* @__PURE__ */ t("h2", { className: "truncate text-lg font-semibold text-f1-foreground", children: n }),
|
|
10075
|
-
s
|
|
10079
|
+
s ? /* @__PURE__ */ t("p", { className: "truncate text-base text-f1-foreground-secondary", children: s }) : null
|
|
10076
10080
|
] })
|
|
10077
10081
|
] }),
|
|
10078
10082
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-2 px-4 py-3", children: [
|
|
@@ -10090,7 +10094,7 @@ function s4(e) {
|
|
|
10090
10094
|
),
|
|
10091
10095
|
children: [
|
|
10092
10096
|
w,
|
|
10093
|
-
h && !l
|
|
10097
|
+
h && !l ? /* @__PURE__ */ i(F1, { children: [
|
|
10094
10098
|
" ",
|
|
10095
10099
|
/* @__PURE__ */ t(
|
|
10096
10100
|
"button",
|
|
@@ -10106,12 +10110,12 @@ function s4(e) {
|
|
|
10106
10110
|
children: c
|
|
10107
10111
|
}
|
|
10108
10112
|
)
|
|
10109
|
-
] })
|
|
10113
|
+
] }) : null
|
|
10110
10114
|
]
|
|
10111
10115
|
}
|
|
10112
10116
|
)
|
|
10113
10117
|
] }),
|
|
10114
|
-
v
|
|
10118
|
+
v ? /* @__PURE__ */ t("div", { className: "flex items-center justify-end gap-3 border-0 border-t border-solid border-f1-border-secondary px-4 py-3", children: /* @__PURE__ */ t(
|
|
10115
10119
|
w1,
|
|
10116
10120
|
{
|
|
10117
10121
|
type: "button",
|
|
@@ -10119,7 +10123,7 @@ function s4(e) {
|
|
|
10119
10123
|
icon: v.primaryActionIcon,
|
|
10120
10124
|
onClick: v.onPrimaryAction
|
|
10121
10125
|
}
|
|
10122
|
-
) })
|
|
10126
|
+
) }) : null
|
|
10123
10127
|
]
|
|
10124
10128
|
}
|
|
10125
10129
|
);
|
|
@@ -10352,7 +10356,7 @@ function f4({ credits: e, trigger: r }) {
|
|
|
10352
10356
|
collisionPadding: 12,
|
|
10353
10357
|
className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
|
|
10354
10358
|
children: [
|
|
10355
|
-
h
|
|
10359
|
+
h ? /* @__PURE__ */ i("div", { className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground", children: [
|
|
10356
10360
|
/* @__PURE__ */ t(
|
|
10357
10361
|
ue,
|
|
10358
10362
|
{
|
|
@@ -10363,19 +10367,19 @@ function f4({ credits: e, trigger: r }) {
|
|
|
10363
10367
|
),
|
|
10364
10368
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-col", children: [
|
|
10365
10369
|
/* @__PURE__ */ t(o1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
|
|
10366
|
-
e.planName
|
|
10370
|
+
e.planName ? /* @__PURE__ */ t(
|
|
10367
10371
|
o1,
|
|
10368
10372
|
{
|
|
10369
10373
|
tag: "span",
|
|
10370
10374
|
className: "text-sm font-medium text-f1-foreground-secondary",
|
|
10371
10375
|
children: e.planName
|
|
10372
10376
|
}
|
|
10373
|
-
)
|
|
10377
|
+
) : null
|
|
10374
10378
|
] })
|
|
10375
|
-
] }),
|
|
10379
|
+
] }) : null,
|
|
10376
10380
|
/* @__PURE__ */ i("div", { className: "flex flex-col rounded border border-solid border-f1-border-secondary", children: [
|
|
10377
10381
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-2 p-3", children: [
|
|
10378
|
-
a
|
|
10382
|
+
a ? /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
|
|
10379
10383
|
/* @__PURE__ */ i("div", { className: "flex justify-between", children: [
|
|
10380
10384
|
/* @__PURE__ */ t("div", { className: "h-5 w-16 animate-pulse rounded bg-f1-background-secondary" }),
|
|
10381
10385
|
/* @__PURE__ */ t("div", { className: "h-5 w-20 animate-pulse rounded bg-f1-background-secondary" })
|
|
@@ -10385,9 +10389,9 @@ function f4({ credits: e, trigger: r }) {
|
|
|
10385
10389
|
/* @__PURE__ */ t("div", { className: "h-2 w-2 animate-pulse rounded-full bg-f1-background-secondary" }),
|
|
10386
10390
|
/* @__PURE__ */ t("div", { className: "h-3 w-28 animate-pulse rounded bg-f1-background-secondary" })
|
|
10387
10391
|
] })
|
|
10388
|
-
] }),
|
|
10389
|
-
d
|
|
10390
|
-
!a && !d && f
|
|
10392
|
+
] }) : null,
|
|
10393
|
+
d ? /* @__PURE__ */ t("span", { className: "text-sm text-f1-foreground-secondary", children: n.t("ai.credits.creditsError") }) : null,
|
|
10394
|
+
!a && !d && f ? /* @__PURE__ */ i(F1, { children: [
|
|
10391
10395
|
/* @__PURE__ */ i("div", { className: "flex justify-between", children: [
|
|
10392
10396
|
/* @__PURE__ */ t("span", { className: "text-base font-medium text-f1-foreground", children: n.t("ai.credits.title") }),
|
|
10393
10397
|
/* @__PURE__ */ t("span", { className: "font-medium text-f1-foreground-secondary", children: n.t("ai.credits.creditsLeft", {
|
|
@@ -10421,9 +10425,9 @@ function f4({ credits: e, trigger: r }) {
|
|
|
10421
10425
|
/* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-f1-border" }),
|
|
10422
10426
|
/* @__PURE__ */ t("span", { className: "text-sm tabular-nums text-f1-foreground-secondary", children: n.t("ai.credits.monthlyCredits") })
|
|
10423
10427
|
] })
|
|
10424
|
-
] })
|
|
10428
|
+
] }) : null
|
|
10425
10429
|
] }),
|
|
10426
|
-
e.upgradePlanUrl
|
|
10430
|
+
e.upgradePlanUrl ? /* @__PURE__ */ i("div", { className: "flex items-center justify-between border-0 border-t border-solid border-f1-border-secondary p-3", children: [
|
|
10427
10431
|
/* @__PURE__ */ t("span", { children: n.t("ai.credits.needMoreCredits") }),
|
|
10428
10432
|
/* @__PURE__ */ t(
|
|
10429
10433
|
w1,
|
|
@@ -10434,7 +10438,7 @@ function f4({ credits: e, trigger: r }) {
|
|
|
10434
10438
|
icon: Nt
|
|
10435
10439
|
}
|
|
10436
10440
|
)
|
|
10437
|
-
] })
|
|
10441
|
+
] }) : null
|
|
10438
10442
|
] })
|
|
10439
10443
|
]
|
|
10440
10444
|
}
|
|
@@ -10482,7 +10486,7 @@ function C4({
|
|
|
10482
10486
|
collisionPadding: 12,
|
|
10483
10487
|
className: "flex w-[324px] flex-col gap-3 rounded-md border border-solid border-f1-border-secondary p-3",
|
|
10484
10488
|
children: [
|
|
10485
|
-
h
|
|
10489
|
+
h ? /* @__PURE__ */ i("div", { className: "flex min-w-0 max-w-full flex-1 items-center gap-2 overflow-hidden text-left text-lg text-f1-foreground", children: [
|
|
10486
10490
|
/* @__PURE__ */ t(
|
|
10487
10491
|
ue,
|
|
10488
10492
|
{
|
|
@@ -10493,18 +10497,18 @@ function C4({
|
|
|
10493
10497
|
),
|
|
10494
10498
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-col", children: [
|
|
10495
10499
|
/* @__PURE__ */ t(o1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
|
|
10496
|
-
e.planName
|
|
10500
|
+
e.planName ? /* @__PURE__ */ t(
|
|
10497
10501
|
o1,
|
|
10498
10502
|
{
|
|
10499
10503
|
tag: "span",
|
|
10500
10504
|
className: "text-sm font-medium text-f1-foreground-secondary",
|
|
10501
10505
|
children: e.planName
|
|
10502
10506
|
}
|
|
10503
|
-
)
|
|
10507
|
+
) : null
|
|
10504
10508
|
] })
|
|
10505
|
-
] }),
|
|
10509
|
+
] }) : null,
|
|
10506
10510
|
/* @__PURE__ */ t("div", { className: "flex flex-col rounded border border-solid border-f1-border-secondary", children: /* @__PURE__ */ i("div", { className: "flex flex-col gap-2 p-3", children: [
|
|
10507
|
-
c
|
|
10511
|
+
c ? /* @__PURE__ */ i(
|
|
10508
10512
|
"div",
|
|
10509
10513
|
{
|
|
10510
10514
|
className: "flex flex-col gap-2",
|
|
@@ -10522,9 +10526,9 @@ function C4({
|
|
|
10522
10526
|
] })
|
|
10523
10527
|
]
|
|
10524
10528
|
}
|
|
10525
|
-
),
|
|
10526
|
-
l
|
|
10527
|
-
!c && !l && u
|
|
10529
|
+
) : null,
|
|
10530
|
+
l ? /* @__PURE__ */ t("span", { className: "text-sm text-f1-foreground-secondary", children: n.t("ai.credits.creditsError") }) : null,
|
|
10531
|
+
!c && !l && u ? /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
|
|
10528
10532
|
/* @__PURE__ */ i("div", { className: "flex justify-between", children: [
|
|
10529
10533
|
/* @__PURE__ */ t("span", { className: "text-base font-medium text-f1-foreground", children: n.t("ai.credits.employeeCredits") }),
|
|
10530
10534
|
/* @__PURE__ */ t("span", { className: "font-medium text-f1-foreground-secondary", children: n.t("ai.credits.creditsLeft", {
|
|
@@ -10553,7 +10557,7 @@ function C4({
|
|
|
10553
10557
|
/* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-f1-border" }),
|
|
10554
10558
|
/* @__PURE__ */ t("span", { className: "text-sm tabular-nums text-f1-foreground-secondary", children: n.t("ai.credits.monthlyCredits") })
|
|
10555
10559
|
] })
|
|
10556
|
-
] })
|
|
10560
|
+
] }) : null
|
|
10557
10561
|
] }) })
|
|
10558
10562
|
]
|
|
10559
10563
|
}
|
|
@@ -10657,7 +10661,7 @@ const te = ({
|
|
|
10657
10661
|
"flex justify-between pl-2.5 pr-3 py-3 w-full overflow-hidden gap-3"
|
|
10658
10662
|
),
|
|
10659
10663
|
children: [
|
|
10660
|
-
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center", children:
|
|
10664
|
+
/* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center", children: s ? null : /* @__PURE__ */ t(
|
|
10661
10665
|
E1,
|
|
10662
10666
|
{
|
|
10663
10667
|
variant: "ghost",
|
|
@@ -10709,7 +10713,7 @@ const te = ({
|
|
|
10709
10713
|
ease: "easeOut"
|
|
10710
10714
|
},
|
|
10711
10715
|
children: [
|
|
10712
|
-
f && !s
|
|
10716
|
+
f && !s ? /* @__PURE__ */ t(
|
|
10713
10717
|
r1,
|
|
10714
10718
|
{
|
|
10715
10719
|
variant: "ghost",
|
|
@@ -10718,7 +10722,7 @@ const te = ({
|
|
|
10718
10722
|
icon: fe,
|
|
10719
10723
|
onClick: d
|
|
10720
10724
|
}
|
|
10721
|
-
),
|
|
10725
|
+
) : null,
|
|
10722
10726
|
/* @__PURE__ */ t(
|
|
10723
10727
|
te,
|
|
10724
10728
|
{
|
|
@@ -10822,7 +10826,7 @@ function w4({
|
|
|
10822
10826
|
className: "flex w-full min-w-0 items-center gap-1",
|
|
10823
10827
|
onClick: () => s(e.id, e.title),
|
|
10824
10828
|
children: [
|
|
10825
|
-
e.icon
|
|
10829
|
+
e.icon ? /* @__PURE__ */ t(
|
|
10826
10830
|
n1,
|
|
10827
10831
|
{
|
|
10828
10832
|
icon: e.icon,
|
|
@@ -10830,13 +10834,13 @@ function w4({
|
|
|
10830
10834
|
className: "mr-1 shrink-0 text-f1-icon",
|
|
10831
10835
|
"aria-hidden": !0
|
|
10832
10836
|
}
|
|
10833
|
-
),
|
|
10837
|
+
) : null,
|
|
10834
10838
|
/* @__PURE__ */ t(o1, { lines: 1, className: "py-0.5 text-left font-medium", children: e.title }),
|
|
10835
10839
|
/* @__PURE__ */ t("span", { className: "hidden shrink-0 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: g })
|
|
10836
10840
|
]
|
|
10837
10841
|
}
|
|
10838
10842
|
),
|
|
10839
|
-
e.trailingLabel
|
|
10843
|
+
e.trailingLabel ? /* @__PURE__ */ t("span", { className: "hidden shrink-0 pr-1 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: e.trailingLabel }) : null,
|
|
10840
10844
|
o ? (
|
|
10841
10845
|
// While saving, the spinner sits where the actions button is and stays
|
|
10842
10846
|
// visible off-hover so the row reads as "working".
|
|
@@ -10917,7 +10921,7 @@ function lt({
|
|
|
10917
10921
|
]
|
|
10918
10922
|
}
|
|
10919
10923
|
),
|
|
10920
|
-
d
|
|
10924
|
+
d ? /* @__PURE__ */ t("div", { className: "flex flex-col", children: r.map((C) => /* @__PURE__ */ t(
|
|
10921
10925
|
w4,
|
|
10922
10926
|
{
|
|
10923
10927
|
thread: C,
|
|
@@ -10928,7 +10932,7 @@ function lt({
|
|
|
10928
10932
|
onDelete: c
|
|
10929
10933
|
},
|
|
10930
10934
|
C.id
|
|
10931
|
-
)) })
|
|
10935
|
+
)) }) : null
|
|
10932
10936
|
] });
|
|
10933
10937
|
}
|
|
10934
10938
|
const ct = ["w-3/5", "w-4/5", "w-2/5", "w-3/4", "w-1/2", "w-2/3"], v4 = ({ width: e }) => /* @__PURE__ */ t("div", { className: "flex items-center py-1.5 pl-1.5 pr-2", children: /* @__PURE__ */ t(u1, { className: b("h-4 rounded", e) }) }), dt = ({
|
|
@@ -11065,10 +11069,10 @@ const e9 = ({
|
|
|
11065
11069
|
] })
|
|
11066
11070
|
}
|
|
11067
11071
|
),
|
|
11068
|
-
s
|
|
11069
|
-
!s && a
|
|
11070
|
-
!s && !a && !R
|
|
11071
|
-
!s && !a && v.length > 0
|
|
11072
|
+
s ? /* @__PURE__ */ t(L4, {}) : null,
|
|
11073
|
+
!s && a ? /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: a }) : null,
|
|
11074
|
+
!s && !a && !R ? /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: u.ai.noPreviousChats }) : null,
|
|
11075
|
+
!s && !a && v.length > 0 ? /* @__PURE__ */ t(
|
|
11072
11076
|
lt,
|
|
11073
11077
|
{
|
|
11074
11078
|
label: u.ai.pinnedChats,
|
|
@@ -11079,8 +11083,8 @@ const e9 = ({
|
|
|
11079
11083
|
onUnpin: l,
|
|
11080
11084
|
onDelete: T
|
|
11081
11085
|
}
|
|
11082
|
-
),
|
|
11083
|
-
!s && !a
|
|
11086
|
+
) : null,
|
|
11087
|
+
!s && !a ? k.map((x) => /* @__PURE__ */ t(
|
|
11084
11088
|
lt,
|
|
11085
11089
|
{
|
|
11086
11090
|
label: h[x.key],
|
|
@@ -11092,7 +11096,7 @@ const e9 = ({
|
|
|
11092
11096
|
onDelete: T
|
|
11093
11097
|
},
|
|
11094
11098
|
x.key
|
|
11095
|
-
))
|
|
11099
|
+
)) : null
|
|
11096
11100
|
] })
|
|
11097
11101
|
]
|
|
11098
11102
|
}
|
|
@@ -11247,26 +11251,28 @@ const b4 = Y.create(Tt), k4 = ({
|
|
|
11247
11251
|
const l = document.activeElement;
|
|
11248
11252
|
l && l.getAttribute("name") !== "one-ai-input" && l.blur();
|
|
11249
11253
|
}, [r]), /* @__PURE__ */ i("div", { className: b("relative flex flex-1 flex-col", o), children: [
|
|
11250
|
-
/* @__PURE__ */ t(L1, { children: r
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11254
|
+
/* @__PURE__ */ t(L1, { children: r ? (
|
|
11255
|
+
// Zero-height sticky anchor pinned to the top of the scroll viewport,
|
|
11256
|
+
// with the pill pushed to ~half the viewport height. This keeps the
|
|
11257
|
+
// pill centred in the visible area regardless of how tall the blurred
|
|
11258
|
+
// content is or how far it's scrolled.
|
|
11259
|
+
/* @__PURE__ */ t(
|
|
11260
|
+
Y.div,
|
|
11261
|
+
{
|
|
11262
|
+
className: "pointer-events-none sticky top-0 z-50 flex h-0 w-full items-start justify-center overflow-visible",
|
|
11263
|
+
initial: { opacity: 0, scale: c ? 1 : 0.95 },
|
|
11264
|
+
animate: { opacity: 1, scale: 1 },
|
|
11265
|
+
exit: { opacity: 0, scale: c ? 1 : 0.95 },
|
|
11266
|
+
children: /* @__PURE__ */ t("div", { className: "mt-[40vh]", children: /* @__PURE__ */ t(
|
|
11267
|
+
k4,
|
|
11268
|
+
{
|
|
11269
|
+
label: d,
|
|
11270
|
+
reduceMotion: c
|
|
11271
|
+
}
|
|
11272
|
+
) })
|
|
11273
|
+
}
|
|
11274
|
+
)
|
|
11275
|
+
) : null }),
|
|
11270
11276
|
/* @__PURE__ */ t(
|
|
11271
11277
|
Y.div,
|
|
11272
11278
|
{
|
|
@@ -11297,7 +11303,7 @@ export {
|
|
|
11297
11303
|
w4 as T,
|
|
11298
11304
|
O4 as a,
|
|
11299
11305
|
U4 as b,
|
|
11300
|
-
|
|
11306
|
+
Sl as c,
|
|
11301
11307
|
D4 as d,
|
|
11302
11308
|
or as e,
|
|
11303
11309
|
z4 as f,
|