@factorialco/f0-react 10.17.0 → 10.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPostComposerDialog-BrFO4dUM.js → ChatPostComposerDialog-Dy9Bc6xI.js} +1 -1
- package/dist/{CoachmarkProvider-wJuq_MOd.js → CoachmarkProvider-9OvXRTHG.js} +2 -2
- package/dist/{F0Map-3gjaLOrR.js → F0Map-Bu2AMIUf.js} +16 -16
- package/dist/{Map-z7w2uK4I.js → Map-DzJXQ-bz.js} +4 -4
- package/dist/component-status.js +2 -2
- package/dist/experimental.js +638 -638
- package/dist/f0.js +2429 -2402
- package/dist/{maplibre-CYMg4HQB.js → maplibre-6nvRH0dC.js} +1 -1
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, $r as r,
|
|
2
|
+
import { $ as t, $n as n, $r as r, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C as u, Cn as d, Cr as f, Ct as p, Dn as m, Dr as h, Dt as g, En as _, Er as v, Et as y, F as b, Fr as x, Ft as S, G as C, Gn as w, Gr as T, H as E, Hn as D, Hr as O, I as k, It as A, J as j, Jr as M, K as N, Kt as P, L as F, Lr as I, M as ee, Mr as te, Mt as ne, N as re, Nr as ie, On as ae, Or as L, Ot as oe, P as se, Pr as ce, Q as le, Qn as ue, Qr as de, R as fe, Rr as pe, Rt as me, S as R, Sn as he, Sr as ge, T as _e, Tn as ve, Tr as ye, Tt as be, U as xe, Un as Se, Ur as Ce, V as we, Vr as Te, W as Ee, Wn as De, Wr as Oe, X as ke, Xn as Ae, Xr as je, Xt as Me, Y as Ne, Yn as Pe, Yr as Fe, Z as Ie, Zn as Le, Zr as Re, _ as ze, _r as Be, ai as Ve, an as He, at as Ue, b as We, br as Ge, ct as Ke, d as qe, dr as Je, dt as Ye, ei as Xe, er as Ze, et as Qe, fn as $e, fr as et, ft as tt, g as nt, gr as rt, h as it, hr as at, ii as ot, in as st, ir as ct, it as lt, j as ut, jt as dt, kr as ft, lt as pt, m as mt, mr as ht, mt as gt, n as _t, ni as vt, nr as yt, nt as bt, ot as xt, p as St, pr as Ct, pt as wt, q as Tt, qn as Et, r as Dt, rn as Ot, rr as kt, rt as At, s as jt, st as Mt, t as Nt, ti as Pt, tr as Ft, tt as It, ur as Lt, ut as Rt, v as zt, vr as Bt, w as Vt, wn as Ht, wr as Ut, wt as Wt, x as Gt, xr as Kt, y as qt, yr as Jt, z as Yt, zr as Xt } from "./CoachmarkProvider-9OvXRTHG.js";
|
|
3
3
|
import { $t as Zt, A as Qt, At as $t, Bt as en, Ft as tn, G as nn, Ht as rn, K as an, Lt as on, Mt as sn, N as cn, Ot as ln, Pt as un, Qt as dn, St as fn, U as pn, Ut as mn, Vt as hn, Wt as gn, Xt as _n, Zn as vn, Zt as yn, _t as bn, a as xn, an as Sn, ar as Cn, b as z, cr as wn, fn as Tn, gn as B, hn as En, i as Dn, in as V, ir as On, j as kn, jt as An, kt as jn, ln as H, lr as Mn, mn as Nn, n as Pn, on as Fn, pn as In, pt as Ln, rn as U, rr as Rn, t as zn, un as Bn, vt as Vn, wt as Hn, yt as Un, zt as Wn } from "./popover-DNcAIP25.js";
|
|
4
4
|
import { L as W, R as G, a as Gn, i as Kn, o as qn, r as Jn, t as Yn } from "./tooltip-BX4dSfeL.js";
|
|
5
5
|
import { i as Xn, n as Zn, r as Qn, t as $n } from "./F0Text-eOwHoc51.js";
|
|
@@ -11,7 +11,7 @@ import { n as rc } from "./dist-Ck_UA8Lz.js";
|
|
|
11
11
|
import { a as ic, i as ac, n as oc, r as sc, s as cc } from "./dist-Cuwaibqg.js";
|
|
12
12
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
13
13
|
import { t as lc } from "./useFullscreen-CNwpzjpz.js";
|
|
14
|
-
import { C as uc, D as dc, E as fc, O as pc, S as mc, T as hc, _ as gc, a as _c, b as vc, c as yc, d as bc, f as xc, g as Sc, h as Cc, i as wc, k as Tc, l as Ec, m as Dc, n as Oc, o as kc, p as Ac, r as jc, t as Mc, u as Nc, v as Pc, w as Fc, x as Ic, y as Lc } from "./F0Map-
|
|
14
|
+
import { C as uc, D as dc, E as fc, O as pc, S as mc, T as hc, _ as gc, a as _c, b as vc, c as yc, d as bc, f as xc, g as Sc, h as Cc, i as wc, k as Tc, l as Ec, m as Dc, n as Oc, o as kc, p as Ac, r as jc, t as Mc, u as Nc, v as Pc, w as Fc, x as Ic, y as Lc } from "./F0Map-Bu2AMIUf.js";
|
|
15
15
|
import { _ as Rc, a as zc, c as Bc, d as Vc, f as Hc, g as Uc, h as Wc, i as Gc, l as Kc, m as qc, n as Jc, o as Yc, p as Xc, r as Zc, s as Qc, t as $c, u as el } from "./posts-DgzHTT_B.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import tl, { Children as nl, Fragment as rl, Suspense as il, cloneElement as al, createContext as ol, forwardRef as sl, isValidElement as cl, lazy as ll, memo as ul, useCallback as K, useContext as dl, useEffect as q, useId as fl, useImperativeHandle as pl, useLayoutEffect as ml, useMemo as J, useReducer as hl, useRef as Y, useState as X, useSyncExternalStore as gl, useTransition as _l } from "react";
|
|
@@ -64,7 +64,7 @@ var wl = [
|
|
|
64
64
|
], El = process.env.NODE_ENV !== "production", Dl = (e) => {
|
|
65
65
|
El && console.warn(`[f0] ${e}`);
|
|
66
66
|
}, Ol = (e) => {
|
|
67
|
-
El && !
|
|
67
|
+
El && !Dt.hasProvider() && console.warn(`[f0] ${e} was called but no <F0Provider> is mounted, so the coachmark will not render. Make sure your app is wrapped in <F0Provider>.`);
|
|
68
68
|
}, kl = (e) => Array.isArray(e.steps), Al = (e) => (kl(e) ? e.steps : [{
|
|
69
69
|
title: e.title,
|
|
70
70
|
description: e.description,
|
|
@@ -87,7 +87,7 @@ var wl = [
|
|
|
87
87
|
let t = e.id ?? h();
|
|
88
88
|
Ol("coachmarks.open()");
|
|
89
89
|
let n = Al(e);
|
|
90
|
-
return n.length === 0 ? (Dl("coachmarks.open() was called with no anchorable step. Nothing to show."), t) : (
|
|
90
|
+
return n.length === 0 ? (Dl("coachmarks.open() was called with no anchorable step. Nothing to show."), t) : (Dt.addItem({
|
|
91
91
|
id: t,
|
|
92
92
|
steps: n,
|
|
93
93
|
onEnd: e.onEnd,
|
|
@@ -98,12 +98,12 @@ var wl = [
|
|
|
98
98
|
}), t);
|
|
99
99
|
},
|
|
100
100
|
close: (e) => {
|
|
101
|
-
|
|
101
|
+
Dt.removeItem(e);
|
|
102
102
|
},
|
|
103
103
|
closeAll: () => {
|
|
104
|
-
|
|
104
|
+
Dt.clear();
|
|
105
105
|
}
|
|
106
|
-
}, Ml = "data-f0-coachmark", Nl = 2e3, Pl = 50, Fl = (e) => e.targetElement !== void 0 &&
|
|
106
|
+
}, Ml = "data-f0-coachmark", Nl = 2e3, Pl = 50, Fl = (e) => e.targetElement !== void 0 && _t(e.targetElement) !== null, Il = (e) => {
|
|
107
107
|
let t = e.id ?? h(), n = (e) => `[${Ml}="${e}"]`, r = (e) => ({ [Ml]: e }), i = e.steps.map(({ element: e, targetElement: t, ...r }) => ({
|
|
108
108
|
...r,
|
|
109
109
|
targetElement: t ?? n(e)
|
|
@@ -598,9 +598,9 @@ var Wl = ({ children: e }) => {
|
|
|
598
598
|
"aria-label": e,
|
|
599
599
|
style: iu,
|
|
600
600
|
className: "flex w-fit flex-col !overflow-y-auto rounded-md border-none p-0 shadow-none [&>div:first-child]:min-h-0 [&>div:first-child]:overflow-hidden [&_em-emoji-picker]:!h-full [&_em-emoji-picker]:!min-h-0 [&_em-emoji-picker]:!max-h-[min(451px,calc(100vh-81px))] [&_em-emoji-picker]:!w-[372px] [&_em-emoji-picker]:!max-w-[calc(100vw-32px)] [@media(max-height:320px)]:[&>div:first-child]:!min-h-[230px] [@media(max-height:320px)]:[&_em-emoji-picker]:!min-h-[230px]",
|
|
601
|
-
children: [/* @__PURE__ */ Q(
|
|
601
|
+
children: [/* @__PURE__ */ Q(ke, {
|
|
602
602
|
className: W("box-border border border-solid border-f1-border-secondary shadow-none [--color-border-over:rgba(1,22,55,0.2)] [--color-border:rgba(1,22,55,0.08)] [--shadow:none]", h && "rounded-b-none border-b-0"),
|
|
603
|
-
data:
|
|
603
|
+
data: Ie,
|
|
604
604
|
onEmojiSelect: p,
|
|
605
605
|
locale: o,
|
|
606
606
|
icons: "outline",
|
|
@@ -1245,16 +1245,16 @@ var Yu = Cn(Rn("F0Confetti", Ju)), Xu = (e, t) => {
|
|
|
1245
1245
|
today: s.today,
|
|
1246
1246
|
yesterday: s.yesterday,
|
|
1247
1247
|
tomorrow: s.tomorrow
|
|
1248
|
-
}[Zu(t, r)] ?? ld(t, c), u = $u(t, r), d = e === "inProgress" ? u === 0 ? s.startingNow :
|
|
1248
|
+
}[Zu(t, r)] ?? ld(t, c), u = $u(t, r), d = e === "inProgress" ? u === 0 ? s.startingNow : qe(s.startedAgo, u) : l, f = Qu(t, r), p = nd({
|
|
1249
1249
|
state: e,
|
|
1250
1250
|
startsAt: t,
|
|
1251
1251
|
now: r,
|
|
1252
1252
|
windowMinutes: i
|
|
1253
|
-
}) ? f <= 0 ? s.startingNow :
|
|
1253
|
+
}) ? f <= 0 ? s.startingNow : qe(s.startsIn, f) : void 0, m = e === "inProgress" && o !== void 0 ? qe(s.inside, o) : a > 0 ? qe(s.invited, a) : void 0, h = e === "finished" || e === "summarizing" ? id(t, n) : void 0;
|
|
1254
1254
|
return {
|
|
1255
1255
|
leadLabel: d,
|
|
1256
1256
|
timeLabel: cd(t, c),
|
|
1257
|
-
durationLabel: h === void 0 ? void 0 :
|
|
1257
|
+
durationLabel: h === void 0 ? void 0 : qe(s.duration, h),
|
|
1258
1258
|
countdownLabel: p,
|
|
1259
1259
|
attendeesLabel: m
|
|
1260
1260
|
};
|
|
@@ -1802,7 +1802,7 @@ var Wd = Cn(Rn("F0SegmentedBar", Ud)), Gd = ({ labels: e, canUndo: t, undoLabel:
|
|
|
1802
1802
|
zIndex: 1
|
|
1803
1803
|
}
|
|
1804
1804
|
}, Xd = sl(function({ riseFromStack: e, onCommit: t, offsetThreshold: n, velocityThreshold: r, reduceMotion: i, children: a }, o) {
|
|
1805
|
-
let s =
|
|
1805
|
+
let s = vt(), c = Ea(0), l = ot(c, [
|
|
1806
1806
|
-480,
|
|
1807
1807
|
0,
|
|
1808
1808
|
qd
|
|
@@ -2181,7 +2181,7 @@ var ff = Cn(Rn("F0VersionHistory", df)), pf = sl(function({ items: e }, t) {
|
|
|
2181
2181
|
return /* @__PURE__ */ Q("ol", {
|
|
2182
2182
|
ref: t,
|
|
2183
2183
|
className: "m-0 list-none p-0",
|
|
2184
|
-
children: e.map(({ id: t, ...n }, r) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(
|
|
2184
|
+
children: e.map(({ id: t, ...n }, r) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(u, {
|
|
2185
2185
|
...n,
|
|
2186
2186
|
isLast: r === e.length - 1
|
|
2187
2187
|
}) }, t))
|
|
@@ -2690,7 +2690,7 @@ var Sf = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2690
2690
|
t,
|
|
2691
2691
|
M,
|
|
2692
2692
|
e
|
|
2693
|
-
]), ne = F.length, re = !w && (g || _), ie = x && x.length > 0,
|
|
2693
|
+
]), ne = F.length, re = !w && (g || _), ie = x && x.length > 0, ae = !T && (!w && re || ie);
|
|
2694
2694
|
return /* @__PURE__ */ $("div", {
|
|
2695
2695
|
className: W("flex w-full flex-col rounded-l-xl border-0", w || T ? "rounded-r-xl" : "", b),
|
|
2696
2696
|
children: [
|
|
@@ -2719,7 +2719,7 @@ var Sf = ({ label: e, onCreate: t, goToFirst: n, goToLast: r }) => /* @__PURE__
|
|
|
2719
2719
|
}) : null]
|
|
2720
2720
|
}),
|
|
2721
2721
|
/* @__PURE__ */ $("section", {
|
|
2722
|
-
className: W("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background",
|
|
2722
|
+
className: W("flex-grow-1 flex h-96 flex-col justify-start gap-1 border-0 border-r-[1px] border-solid border-f1-border-secondary bg-f1-background", ae ? "" : "rounded-b-xl border-r-0"),
|
|
2723
2723
|
children: [
|
|
2724
2724
|
T ? /* @__PURE__ */ Q("div", {
|
|
2725
2725
|
className: "flex h-full w-full flex-row items-center justify-center",
|
|
@@ -3252,11 +3252,11 @@ var qf = Yo, Jf = [
|
|
|
3252
3252
|
"city",
|
|
3253
3253
|
"state",
|
|
3254
3254
|
"postalCode"
|
|
3255
|
-
], Yf = Yo, Xf = 50, Zf = { preserveWhitespace: !0 }, Qf =
|
|
3255
|
+
], Yf = Yo, Xf = 50, Zf = { preserveWhitespace: !0 }, Qf = It.create({
|
|
3256
3256
|
name: "doc",
|
|
3257
3257
|
topNode: !0,
|
|
3258
3258
|
content: "paragraph"
|
|
3259
|
-
}), $f =
|
|
3259
|
+
}), $f = j.configure({
|
|
3260
3260
|
document: !1,
|
|
3261
3261
|
blockquote: !1,
|
|
3262
3262
|
bold: !1,
|
|
@@ -3272,7 +3272,7 @@ var qf = Yo, Jf = [
|
|
|
3272
3272
|
listItem: !1,
|
|
3273
3273
|
orderedList: !1,
|
|
3274
3274
|
strike: !1
|
|
3275
|
-
}), ep =
|
|
3275
|
+
}), ep = Qe.create({
|
|
3276
3276
|
name: "singleLineKeymap",
|
|
3277
3277
|
priority: Xf,
|
|
3278
3278
|
addKeyboardShortcuts: () => ({
|
|
@@ -3280,32 +3280,32 @@ var qf = Yo, Jf = [
|
|
|
3280
3280
|
"Shift-Enter": () => !0,
|
|
3281
3281
|
"Mod-Enter": () => !0
|
|
3282
3282
|
})
|
|
3283
|
-
}), tp = (e) => e.textBetween(0, e.content.size, " ",
|
|
3283
|
+
}), tp = (e) => e.textBetween(0, e.content.size, " ", E), np = "templateTextIgnoreMaxLength", rp = (e) => Qe.create({
|
|
3284
3284
|
name: "templateTextMaxLength",
|
|
3285
|
-
addProseMirrorPlugins: () => [new
|
|
3286
|
-
key: new
|
|
3285
|
+
addProseMirrorPlugins: () => [new bt({
|
|
3286
|
+
key: new At("templateTextMaxLength"),
|
|
3287
3287
|
filterTransaction: (t, n) => {
|
|
3288
3288
|
if (e === void 0 || !t.docChanged || t.getMeta("templateTextIgnoreMaxLength")) return !0;
|
|
3289
3289
|
let r = tp(t.doc).length;
|
|
3290
3290
|
return r <= e || r <= tp(n.doc).length;
|
|
3291
3291
|
}
|
|
3292
3292
|
})]
|
|
3293
|
-
}), ip =
|
|
3293
|
+
}), ip = Qe.create({
|
|
3294
3294
|
name: "singleLinePlainTextPaste",
|
|
3295
3295
|
addProseMirrorPlugins() {
|
|
3296
|
-
return [new
|
|
3297
|
-
key: new
|
|
3296
|
+
return [new bt({
|
|
3297
|
+
key: new At("singleLinePlainTextPaste"),
|
|
3298
3298
|
props: { handlePaste: (e, t, n) => {
|
|
3299
|
-
let r = n.content.textBetween(0, n.content.size, " ",
|
|
3300
|
-
return this.editor.commands.insertContent(
|
|
3299
|
+
let r = n.content.textBetween(0, n.content.size, " ", E).replace(/[\r\n]+/g, " "), i = N(s(this.editor));
|
|
3300
|
+
return this.editor.commands.insertContent(C(r, i)), !0;
|
|
3301
3301
|
} }
|
|
3302
3302
|
})];
|
|
3303
3303
|
}
|
|
3304
3304
|
}), ap = ({ placeholder: e, maxLength: t, variablesConfig: n }) => [
|
|
3305
3305
|
Qf,
|
|
3306
3306
|
$f,
|
|
3307
|
-
|
|
3308
|
-
...
|
|
3307
|
+
Tt(e ?? ""),
|
|
3308
|
+
...Yt(n),
|
|
3309
3309
|
ip,
|
|
3310
3310
|
ep,
|
|
3311
3311
|
rp(t)
|
|
@@ -3351,7 +3351,7 @@ var qf = Yo, Jf = [
|
|
|
3351
3351
|
parseOptions: Zf,
|
|
3352
3352
|
metadata: { [np]: !0 }
|
|
3353
3353
|
}, up = Rn("F0TemplateTextInput", ({ label: e, value: n, defaultValue: r, onChange: i, variablesConfig: a, placeholder: o, hint: s, error: c, required: l = !1, disabled: u = !1, hideLabel: d = !1, maxLength: f, name: p, id: m }) => {
|
|
3354
|
-
let h = fl(), g = m ?? h, _ = fl(), { variables: v } = a, y = J(() =>
|
|
3354
|
+
let h = fl(), g = m ?? h, _ = fl(), { variables: v } = a, y = J(() => N(v), [v]), [b, x] = Ln({
|
|
3355
3355
|
prop: n,
|
|
3356
3356
|
defaultProp: r ?? "",
|
|
3357
3357
|
caller: "F0TemplateTextInput"
|
|
@@ -3359,30 +3359,30 @@ var qf = Yo, Jf = [
|
|
|
3359
3359
|
placeholder: o,
|
|
3360
3360
|
maxLength: f,
|
|
3361
3361
|
variablesConfig: a
|
|
3362
|
-
})), [D] = X(() =>
|
|
3362
|
+
})), [D] = X(() => Ee(b, y)), O = cp(s, c), k = !!O?.message, A = !!c, j = J(() => ({
|
|
3363
3363
|
id: g,
|
|
3364
3364
|
role: "textbox",
|
|
3365
3365
|
"aria-multiline": "false",
|
|
3366
3366
|
"aria-label": e,
|
|
3367
3367
|
...l && { "aria-required": "true" },
|
|
3368
|
-
...
|
|
3368
|
+
...A && { "aria-invalid": "true" },
|
|
3369
3369
|
...u && { "aria-disabled": "true" },
|
|
3370
|
-
...
|
|
3370
|
+
...k && { "aria-describedby": _ },
|
|
3371
3371
|
class: W(sp, u && "cursor-not-allowed")
|
|
3372
3372
|
}), [
|
|
3373
3373
|
g,
|
|
3374
3374
|
e,
|
|
3375
3375
|
l,
|
|
3376
|
-
j,
|
|
3377
|
-
u,
|
|
3378
3376
|
A,
|
|
3377
|
+
u,
|
|
3378
|
+
k,
|
|
3379
3379
|
_
|
|
3380
|
-
]),
|
|
3380
|
+
]), M = t({
|
|
3381
3381
|
extensions: E,
|
|
3382
3382
|
content: D,
|
|
3383
3383
|
parseOptions: Zf,
|
|
3384
3384
|
editable: !u,
|
|
3385
|
-
editorProps: { attributes:
|
|
3385
|
+
editorProps: { attributes: j },
|
|
3386
3386
|
onUpdate: ({ editor: e, transaction: t }) => {
|
|
3387
3387
|
let n = tp(e.state.doc);
|
|
3388
3388
|
n !== tp(t.before) && (T.current = !0, S.current += 1, x(n), i?.(n), w());
|
|
@@ -3390,20 +3390,20 @@ var qf = Yo, Jf = [
|
|
|
3390
3390
|
shouldRerenderOnTransaction: !1
|
|
3391
3391
|
});
|
|
3392
3392
|
return q(() => {
|
|
3393
|
-
|
|
3394
|
-
}, [
|
|
3395
|
-
if (!
|
|
3396
|
-
let e =
|
|
3397
|
-
e !==
|
|
3393
|
+
M?.setEditable(!u, !1);
|
|
3394
|
+
}, [M, u]), q(() => {
|
|
3395
|
+
if (!M || !xe(M, v) || T.current) return;
|
|
3396
|
+
let e = Ee(tp(M.state.doc), y);
|
|
3397
|
+
e !== M.getHTML() && we(M, e, lp);
|
|
3398
3398
|
}, [
|
|
3399
|
-
|
|
3399
|
+
M,
|
|
3400
3400
|
v,
|
|
3401
3401
|
y
|
|
3402
3402
|
]), q(() => {
|
|
3403
3403
|
let e = C === S.current;
|
|
3404
|
-
|
|
3404
|
+
M && e && b !== tp(M.state.doc) && we(M, Ee(b, y), lp);
|
|
3405
3405
|
}, [
|
|
3406
|
-
|
|
3406
|
+
M,
|
|
3407
3407
|
b,
|
|
3408
3408
|
y,
|
|
3409
3409
|
C
|
|
@@ -3419,12 +3419,12 @@ var qf = Yo, Jf = [
|
|
|
3419
3419
|
}) : null,
|
|
3420
3420
|
/* @__PURE__ */ Q("div", {
|
|
3421
3421
|
className: op({
|
|
3422
|
-
status:
|
|
3422
|
+
status: A ? "error" : "default",
|
|
3423
3423
|
disabled: u
|
|
3424
3424
|
}),
|
|
3425
3425
|
"data-testid": "input-field-wrapper",
|
|
3426
|
-
children: /* @__PURE__ */ Q(
|
|
3427
|
-
editor:
|
|
3426
|
+
children: /* @__PURE__ */ Q(le, {
|
|
3427
|
+
editor: M,
|
|
3428
3428
|
className: "flex min-w-0 flex-1"
|
|
3429
3429
|
})
|
|
3430
3430
|
}),
|
|
@@ -3434,7 +3434,7 @@ var qf = Yo, Jf = [
|
|
|
3434
3434
|
value: b,
|
|
3435
3435
|
disabled: u
|
|
3436
3436
|
}) : null,
|
|
3437
|
-
|
|
3437
|
+
k ? /* @__PURE__ */ Q("div", {
|
|
3438
3438
|
id: _,
|
|
3439
3439
|
role: O?.type === "error" ? "alert" : void 0,
|
|
3440
3440
|
children: /* @__PURE__ */ Q(bs, { status: O })
|
|
@@ -3613,7 +3613,7 @@ function Ep({ firstName: e, lastName: t, src: n, canReact: r, lastEmojiReaction:
|
|
|
3613
3613
|
}), r ? /* @__PURE__ */ Q("div", {
|
|
3614
3614
|
ref: o,
|
|
3615
3615
|
className: W("absolute -right-0.5", n ? "bottom-0.5" : "-bottom-[3px]"),
|
|
3616
|
-
children: /* @__PURE__ */ Q(
|
|
3616
|
+
children: /* @__PURE__ */ Q(Ne, {
|
|
3617
3617
|
lastEmojiReaction: i,
|
|
3618
3618
|
onSelect: a,
|
|
3619
3619
|
size: "sm",
|
|
@@ -3837,7 +3837,7 @@ function Np({ items: e, onInteraction: t, locale: n, action: r }) {
|
|
|
3837
3837
|
variant: "outline",
|
|
3838
3838
|
hideLabel: !0
|
|
3839
3839
|
}) : null,
|
|
3840
|
-
/* @__PURE__ */ Q(
|
|
3840
|
+
/* @__PURE__ */ Q(Ne, {
|
|
3841
3841
|
onSelect: t,
|
|
3842
3842
|
locale: n
|
|
3843
3843
|
}),
|
|
@@ -4364,18 +4364,18 @@ var Ip = ei(Fp, () => /* @__PURE__ */ $("div", {
|
|
|
4364
4364
|
]
|
|
4365
4365
|
})]
|
|
4366
4366
|
}), im = (e) => e.length === 0 || e.some((e) => e.imageUrl), am = "basis-full @lg:basis-1/2", om = ({ posts: e, loading: t, expectedItemsCount: n }) => {
|
|
4367
|
-
let { isPageInFlight:
|
|
4367
|
+
let { isPageInFlight: i } = r(), a = t || i ? n : 0;
|
|
4368
4368
|
return /* @__PURE__ */ $(je, {
|
|
4369
|
-
"aria-busy": t ||
|
|
4370
|
-
children: [t ? null : e.map((e) => /* @__PURE__ */ Q(
|
|
4369
|
+
"aria-busy": t || i || void 0,
|
|
4370
|
+
children: [t ? null : e.map((e) => /* @__PURE__ */ Q(de, {
|
|
4371
4371
|
className: am,
|
|
4372
4372
|
children: /* @__PURE__ */ Q(nm, { post: e })
|
|
4373
|
-
}, e.id)), Array.from({ length:
|
|
4373
|
+
}, e.id)), Array.from({ length: a }, (t, n) => /* @__PURE__ */ Q(de, {
|
|
4374
4374
|
className: am,
|
|
4375
4375
|
children: /* @__PURE__ */ Q(rm, { withImage: im(e) })
|
|
4376
4376
|
}, `placeholder-${n}`))]
|
|
4377
4377
|
});
|
|
4378
|
-
}, sm = ({ posts: e, labels: t, loading: n = !1, expectedItemsCount: r = 2, pagination: i }) => /* @__PURE__ */ $(
|
|
4378
|
+
}, sm = ({ posts: e, labels: t, loading: n = !1, expectedItemsCount: r = 2, pagination: i }) => /* @__PURE__ */ $(Fe, {
|
|
4379
4379
|
opts: {
|
|
4380
4380
|
align: "start",
|
|
4381
4381
|
containScroll: "trimSnaps",
|
|
@@ -4387,7 +4387,7 @@ var Ip = ei(Fp, () => /* @__PURE__ */ $("div", {
|
|
|
4387
4387
|
posts: e,
|
|
4388
4388
|
loading: n,
|
|
4389
4389
|
expectedItemsCount: r
|
|
4390
|
-
}), /* @__PURE__ */ Q(
|
|
4390
|
+
}), /* @__PURE__ */ Q(Re, { labels: t })]
|
|
4391
4391
|
}), cm = "flex w-full flex-row flex-wrap items-start gap-2 rounded-md border p-2 focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold", lm = ({ actions: { primary: e, secondary: t } }) => /* @__PURE__ */ $("div", {
|
|
4392
4392
|
className: "flex flex-1 flex-row items-center justify-end gap-2",
|
|
4393
4393
|
children: [e ? /* @__PURE__ */ Q(z, {
|
|
@@ -5165,45 +5165,45 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5165
5165
|
}, [N]), ie = K(() => {
|
|
5166
5166
|
let e = ne.current;
|
|
5167
5167
|
e.pipWindow ? e.close() : e.pipVideo && e.closeVideo();
|
|
5168
|
-
}, []),
|
|
5168
|
+
}, []), ae = ee?.status, L = ee !== null;
|
|
5169
5169
|
q(() => {
|
|
5170
|
-
P && (!
|
|
5170
|
+
P && (!L || ae === "disconnected" || ae === "error") && (ne.current.pipWindow?.close(), window.focus());
|
|
5171
5171
|
}, [
|
|
5172
|
+
ae,
|
|
5172
5173
|
L,
|
|
5173
|
-
R,
|
|
5174
5174
|
P
|
|
5175
5175
|
]);
|
|
5176
|
-
let
|
|
5176
|
+
let oe = K((e) => {
|
|
5177
5177
|
ne.current.pipWindow?.close(), a({
|
|
5178
5178
|
roomId: t,
|
|
5179
5179
|
mode: e
|
|
5180
5180
|
});
|
|
5181
|
-
}, [a, t]), { placement:
|
|
5181
|
+
}, [a, t]), { placement: se, viewport: ce, rect: le, settle: ue, resize: de } = rg(), fe = J(() => P ? "pip" : o === "inline" && !s || (o === "panel" || o === "fullscreen") && !d ? "floating" : o, [
|
|
5182
5182
|
P,
|
|
5183
5183
|
o,
|
|
5184
5184
|
s,
|
|
5185
5185
|
d
|
|
5186
|
-
]),
|
|
5187
|
-
...
|
|
5186
|
+
]), pe = J(() => fe === "inline" && s ? s : fe === "minimized" ? Uh({
|
|
5187
|
+
...se,
|
|
5188
5188
|
width: 280,
|
|
5189
5189
|
height: 56
|
|
5190
|
-
},
|
|
5191
|
-
|
|
5192
|
-
|
|
5190
|
+
}, ce, 280, 56) : le, [
|
|
5191
|
+
fe,
|
|
5192
|
+
ce,
|
|
5193
5193
|
s,
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
]),
|
|
5194
|
+
se,
|
|
5195
|
+
le
|
|
5196
|
+
]), me = K((e) => {
|
|
5197
5197
|
j(e);
|
|
5198
|
-
}, []),
|
|
5198
|
+
}, []), R = J(() => ({
|
|
5199
5199
|
mode: o,
|
|
5200
|
-
effectiveMode:
|
|
5201
|
-
setMode:
|
|
5202
|
-
rect:
|
|
5200
|
+
effectiveMode: fe,
|
|
5201
|
+
setMode: oe,
|
|
5202
|
+
rect: pe,
|
|
5203
5203
|
isDragging: f,
|
|
5204
5204
|
setIsDragging: p,
|
|
5205
|
-
settleRect:
|
|
5206
|
-
resizeRect:
|
|
5205
|
+
settleRect: ue,
|
|
5206
|
+
resizeRect: de,
|
|
5207
5207
|
hasPanelSlot: d,
|
|
5208
5208
|
panelSide: l,
|
|
5209
5209
|
setPanelSlot: u,
|
|
@@ -5221,7 +5221,7 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5221
5221
|
sidePanelWidth: D,
|
|
5222
5222
|
setSidePanelWidth: O,
|
|
5223
5223
|
resetSidePanelWidth: k,
|
|
5224
|
-
announce:
|
|
5224
|
+
announce: me,
|
|
5225
5225
|
liveMessage: A,
|
|
5226
5226
|
pipSupport: N,
|
|
5227
5227
|
pipWindow: M.pipWindow,
|
|
@@ -5230,12 +5230,12 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5230
5230
|
registerVideo: I
|
|
5231
5231
|
}), [
|
|
5232
5232
|
o,
|
|
5233
|
-
de,
|
|
5234
|
-
ae,
|
|
5235
5233
|
fe,
|
|
5234
|
+
oe,
|
|
5235
|
+
pe,
|
|
5236
5236
|
f,
|
|
5237
|
-
le,
|
|
5238
5237
|
ue,
|
|
5238
|
+
de,
|
|
5239
5239
|
d,
|
|
5240
5240
|
l,
|
|
5241
5241
|
m,
|
|
@@ -5250,7 +5250,7 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5250
5250
|
D,
|
|
5251
5251
|
O,
|
|
5252
5252
|
k,
|
|
5253
|
-
|
|
5253
|
+
me,
|
|
5254
5254
|
A,
|
|
5255
5255
|
N,
|
|
5256
5256
|
M.pipWindow,
|
|
@@ -5259,7 +5259,7 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5259
5259
|
I
|
|
5260
5260
|
]);
|
|
5261
5261
|
return /* @__PURE__ */ Q(cg.Provider, {
|
|
5262
|
-
value:
|
|
5262
|
+
value: R,
|
|
5263
5263
|
children: r
|
|
5264
5264
|
});
|
|
5265
5265
|
}, ug = () => {
|
|
@@ -5324,7 +5324,7 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5324
5324
|
role: "group",
|
|
5325
5325
|
"aria-label": e.meeting.modeSwitch,
|
|
5326
5326
|
className: W(wg()),
|
|
5327
|
-
children: /* @__PURE__ */ Q(
|
|
5327
|
+
children: /* @__PURE__ */ Q(mt, {
|
|
5328
5328
|
size: "md",
|
|
5329
5329
|
required: !0,
|
|
5330
5330
|
value: t,
|
|
@@ -5382,7 +5382,7 @@ var wm = ol(null), Tm = ol(null), Em = ol(null), Dm = ol(null), Om = (e) => {
|
|
|
5382
5382
|
if (!o.current) {
|
|
5383
5383
|
o.current = !0;
|
|
5384
5384
|
try {
|
|
5385
|
-
await
|
|
5385
|
+
await P.confirmation(s ? {
|
|
5386
5386
|
type: "warning",
|
|
5387
5387
|
title: t.meeting.pauseTranscriptTitle,
|
|
5388
5388
|
msg: t.meeting.pauseTranscriptMessage,
|
|
@@ -8018,23 +8018,23 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8018
8018
|
q(function() {
|
|
8019
8019
|
ne.current = te;
|
|
8020
8020
|
});
|
|
8021
|
-
let re = Y(j), ie = !j && re.current, [
|
|
8021
|
+
let re = Y(j), ie = !j && re.current, [ae, L] = X(!1);
|
|
8022
8022
|
q(function() {
|
|
8023
|
-
!j && re.current &&
|
|
8023
|
+
!j && re.current && L(!0), re.current = j;
|
|
8024
8024
|
}, [j]), q(function() {
|
|
8025
|
-
if (!
|
|
8026
|
-
let e = g ? vy : yy, t = window.setTimeout(() =>
|
|
8025
|
+
if (!ae) return;
|
|
8026
|
+
let e = g ? vy : yy, t = window.setTimeout(() => L(!1), m ? 0 : e);
|
|
8027
8027
|
return () => window.clearTimeout(t);
|
|
8028
8028
|
}, [
|
|
8029
|
-
|
|
8029
|
+
ae,
|
|
8030
8030
|
g,
|
|
8031
8031
|
m
|
|
8032
8032
|
]);
|
|
8033
|
-
let
|
|
8034
|
-
|
|
8035
|
-
let
|
|
8033
|
+
let oe = j || ae || ie, se = Y(g), ce = Y(!1), le = Y(te);
|
|
8034
|
+
se.current !== g && (ce.current = !g && (j || re.current), le.current = ne.current, se.current = g);
|
|
8035
|
+
let ue = !g && ce.current && (j || ae), de = ue ? le.current : te, fe = (de ? T : C) === "left", pe = g && (!ee || !de), me = g && ee && de, R = g && (!!e?.enabled || te), he = Y(pe), ge = Y(me);
|
|
8036
8036
|
q(function() {
|
|
8037
|
-
he.current =
|
|
8037
|
+
he.current = pe, ge.current = me;
|
|
8038
8038
|
});
|
|
8039
8039
|
let _e = on(`(max-width: ${oc.xl}px)`, { initializeWithValue: !0 }), ve = on(`(max-width: ${oc.lg}px)`, { initializeWithValue: !0 }), ye = Y(null), be = f ? f.hasSecondarySidebar ? f.secondarySidebarWidth : 0 : cc.panel, xe = p + (s === "locked" ? be : 0), Se = g && j && w?.id === "f0-meeting", [Ce, we] = X(0);
|
|
8040
8040
|
q(function() {
|
|
@@ -8061,19 +8061,19 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8061
8061
|
d,
|
|
8062
8062
|
Se
|
|
8063
8063
|
]);
|
|
8064
|
-
let De = !!D || Te || !!f?.isInstant, Oe = Pc(De, m), ke = (e, t) => Lc(De,
|
|
8065
|
-
left: Me &&
|
|
8066
|
-
right: Me && !
|
|
8064
|
+
let De = !!D || Te || !!f?.isInstant, Oe = Pc(De, m), ke = (e, t) => Lc(De, oe && e && t, m), Ae = b ?? !1, je = g && j, Me = R && !Ae, Ne = {
|
|
8065
|
+
left: Me && fe ? P : 0,
|
|
8066
|
+
right: Me && !fe ? P : 0
|
|
8067
8067
|
}, Pe = Y(Ne);
|
|
8068
8068
|
je || (Pe.current = Ne);
|
|
8069
|
-
let Fe = je ? Pe.current : Ne, Ie = !(De ||
|
|
8069
|
+
let Fe = je ? Pe.current : Ne, Ie = !(De || oe || ue) && !m, Le = Ie ? Dc : Cc, Re = R && (!fe || ve);
|
|
8070
8070
|
return q(function() {
|
|
8071
8071
|
u(Re || N);
|
|
8072
8072
|
}, [
|
|
8073
8073
|
Re,
|
|
8074
8074
|
N,
|
|
8075
8075
|
u
|
|
8076
|
-
]), Ey(Re, _e), /* @__PURE__ */ Q(
|
|
8076
|
+
]), Ey(Re, _e), /* @__PURE__ */ Q(Ve, {
|
|
8077
8077
|
reducedMotion: m ? "always" : "never",
|
|
8078
8078
|
transition: {
|
|
8079
8079
|
ease: ic.ease.outSwift,
|
|
@@ -8111,7 +8111,7 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8111
8111
|
"z-10",
|
|
8112
8112
|
"after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:z-0 after:shadow after:content-[''] xs:after:bottom-1 xs:after:rounded-xl",
|
|
8113
8113
|
i ? "after:top-[42px]" : "after:top-0 xs:after:top-1",
|
|
8114
|
-
!
|
|
8114
|
+
!R && !N ? "after:right-0 xs:after:right-1" : "after:right-0"
|
|
8115
8115
|
]),
|
|
8116
8116
|
animate: {
|
|
8117
8117
|
paddingRight: Fe.right,
|
|
@@ -8129,13 +8129,13 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8129
8129
|
}) : null,
|
|
8130
8130
|
/* @__PURE__ */ Q("main", {
|
|
8131
8131
|
id: "content",
|
|
8132
|
-
className: W("relative z-10 flex h-full max-w-full flex-1 xs:py-1",
|
|
8132
|
+
className: W("relative z-10 flex h-full max-w-full flex-1 xs:py-1", oe ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto", !R && !N && "xs:pr-1", s === "locked" || d || fe && R ? "pl-0" : "xs:pl-1", R && fe && "xs:pr-1"),
|
|
8133
8133
|
children: /* @__PURE__ */ Q("div", {
|
|
8134
|
-
className: W("flex max-w-full flex-1",
|
|
8134
|
+
className: W("flex max-w-full flex-1", oe ? "overflow-hidden" : "overflow-x-hidden overflow-y-auto"),
|
|
8135
8135
|
children: n
|
|
8136
8136
|
})
|
|
8137
8137
|
}),
|
|
8138
|
-
e?.enabled && M && O &&
|
|
8138
|
+
e?.enabled && M && O && pe ? /* @__PURE__ */ Q(B.div, {
|
|
8139
8139
|
className: W("pointer-events-none flex", I ? "justify-start" : "justify-end", Ae ? "fixed inset-0 z-[50]" : W("absolute bottom-0 top-0 z-[21]", I ? "right-0" : "left-0")),
|
|
8140
8140
|
animate: Ae ? {
|
|
8141
8141
|
left: 0,
|
|
@@ -8159,7 +8159,7 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8159
8159
|
let t = (e, t, n, r) => /* @__PURE__ */ Q(B.div, {
|
|
8160
8160
|
"data-side-panel-container": "",
|
|
8161
8161
|
"data-side-panel-side": e,
|
|
8162
|
-
className: W("pointer-events-none", "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full", Ae ? "fixed inset-0 z-[30]" : W("absolute top-0 bottom-0", e === "left" ? "left-0" : "right-0",
|
|
8162
|
+
className: W("pointer-events-none", "[&_.copilotKitSidebarContentWrapper]:relative [&_.copilotKitSidebarContentWrapper]:h-full [&_.copilotKitSidebarContentWrapper]:w-full", Ae ? "fixed inset-0 z-[30]" : W("absolute top-0 bottom-0", e === "left" ? "left-0" : "right-0", oe || M ? "z-20" : "z-0", (s !== "locked" || Se) && (e === "left" || oe) && "md:pl-1")),
|
|
8163
8163
|
animate: Se && t && !Ae && Ce > 0 ? {
|
|
8164
8164
|
width: Ce,
|
|
8165
8165
|
left: e === "left" ? -xe : "auto"
|
|
@@ -8167,7 +8167,7 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8167
8167
|
width: vc({
|
|
8168
8168
|
coversFrame: Ae,
|
|
8169
8169
|
isFullscreen: j,
|
|
8170
|
-
isClosingFromFullscreen:
|
|
8170
|
+
isClosingFromFullscreen: ue,
|
|
8171
8171
|
isActivePanel: t,
|
|
8172
8172
|
reservedWidth: P
|
|
8173
8173
|
}),
|
|
@@ -8176,7 +8176,7 @@ function Oy({ ai: e, aiPromotion: t, children: n, navigation: r, topBar: i, bann
|
|
|
8176
8176
|
transition: ke(t, n),
|
|
8177
8177
|
children: r
|
|
8178
8178
|
}, `panel-${e}`);
|
|
8179
|
-
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !ee || !
|
|
8179
|
+
return /* @__PURE__ */ $(Z, { children: [e?.enabled ? t(C, !ee || !de, he.current, /* @__PURE__ */ Q(pi, {})) : null, !e?.enabled || ee ? t(T, de || !e?.enabled, ge.current, /* @__PURE__ */ Q(gm, {})) : null] });
|
|
8180
8180
|
})() : null
|
|
8181
8181
|
]
|
|
8182
8182
|
}),
|
|
@@ -8367,8 +8367,8 @@ var My = ({ firstName: e, lastName: t, src: n, "aria-label": r, "aria-labelledby
|
|
|
8367
8367
|
},
|
|
8368
8368
|
"aria-label": s.actions.edit,
|
|
8369
8369
|
children: /* @__PURE__ */ Q(V, {
|
|
8370
|
-
icon:
|
|
8371
|
-
color:
|
|
8370
|
+
icon: b[a],
|
|
8371
|
+
color: k[a],
|
|
8372
8372
|
size: "sm"
|
|
8373
8373
|
})
|
|
8374
8374
|
})
|
|
@@ -8840,7 +8840,7 @@ var Yy = B.create(V), Xy = {
|
|
|
8840
8840
|
icon: qa,
|
|
8841
8841
|
size: "sm",
|
|
8842
8842
|
className: "text-f1-icon-secondary"
|
|
8843
|
-
}), /* @__PURE__ */ Q(
|
|
8843
|
+
}), /* @__PURE__ */ Q(Vt, {
|
|
8844
8844
|
as: "h2",
|
|
8845
8845
|
content: e
|
|
8846
8846
|
})]
|
|
@@ -8997,11 +8997,11 @@ var Yy = B.create(V), Xy = {
|
|
|
8997
8997
|
label: n.actions.close
|
|
8998
8998
|
})
|
|
8999
8999
|
}) : null]
|
|
9000
|
-
}), /* @__PURE__ */ Q(
|
|
9000
|
+
}), /* @__PURE__ */ Q(M, {
|
|
9001
9001
|
columns: { default: 1 },
|
|
9002
9002
|
showDots: !0,
|
|
9003
9003
|
showArrows: !1,
|
|
9004
|
-
children: e.products.map((e) => /* @__PURE__ */ Q(
|
|
9004
|
+
children: e.products.map((e) => /* @__PURE__ */ Q(nt, {
|
|
9005
9005
|
...e,
|
|
9006
9006
|
isVisible: !0,
|
|
9007
9007
|
trackVisibility: e.trackVisibility,
|
|
@@ -10611,46 +10611,46 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10611
10611
|
className: W("group/item flex items-center rounded", s ? "bg-f1-background-secondary" : "hover:bg-f1-background-secondary"),
|
|
10612
10612
|
children: [c, /* @__PURE__ */ Q(Zx, { pin: a })]
|
|
10613
10613
|
}) : c;
|
|
10614
|
-
}, $x = ({ item: e, tooltip: t, dragConstraints: n, onRemove:
|
|
10615
|
-
let
|
|
10614
|
+
}, $x = ({ item: e, tooltip: t, dragConstraints: n, onRemove: r, index: i, total: a, onMove: o, onReorderFinish: s, isSortable: c = !0 }) => {
|
|
10615
|
+
let l = Ac() === "two-level", u = U(), { isDragging: d, setIsDragging: f, draggedItemId: p, setDraggedItemId: m } = Yx(), { isActive: h } = Nn(), g = h(e.href, { exact: e.exactMatch }), _ = Y(!1), [v, y] = X(!1), b = i === 0, x = i === a - 1, S = a === 1, C = J(function() {
|
|
10616
10616
|
let t = [];
|
|
10617
|
-
return !
|
|
10618
|
-
label:
|
|
10619
|
-
onClick: () =>
|
|
10617
|
+
return !S && !b && t.push({
|
|
10618
|
+
label: u.actions.moveUp,
|
|
10619
|
+
onClick: () => o?.(i, i - 1),
|
|
10620
10620
|
icon: ui
|
|
10621
|
-
}), !
|
|
10622
|
-
label:
|
|
10623
|
-
onClick: () =>
|
|
10621
|
+
}), !S && !x && t.push({
|
|
10622
|
+
label: u.actions.moveDown,
|
|
10623
|
+
onClick: () => o?.(i, i + 1),
|
|
10624
10624
|
icon: xo
|
|
10625
10625
|
}), t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
10626
|
-
label:
|
|
10627
|
-
onClick: () =>
|
|
10626
|
+
label: u.favorites.remove,
|
|
10627
|
+
onClick: () => r?.(e),
|
|
10628
10628
|
icon: Xr,
|
|
10629
10629
|
critical: !0
|
|
10630
10630
|
}), t;
|
|
10631
10631
|
}, [
|
|
10632
|
-
C,
|
|
10633
|
-
x,
|
|
10634
10632
|
S,
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10633
|
+
b,
|
|
10634
|
+
x,
|
|
10635
|
+
u,
|
|
10636
|
+
o,
|
|
10638
10637
|
i,
|
|
10638
|
+
r,
|
|
10639
10639
|
e
|
|
10640
|
-
]),
|
|
10641
|
-
|
|
10642
|
-
},
|
|
10643
|
-
|
|
10644
|
-
|
|
10640
|
+
]), w = () => {
|
|
10641
|
+
f(!0), y(!1), m(e.href || null), _.current = !0;
|
|
10642
|
+
}, T = () => {
|
|
10643
|
+
f(!1), m(null), s(), setTimeout(() => {
|
|
10644
|
+
_.current = !1;
|
|
10645
10645
|
}, 0);
|
|
10646
|
-
},
|
|
10647
|
-
return W("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing",
|
|
10646
|
+
}, E = d && p === e.href, D = J(function() {
|
|
10647
|
+
return W("group relative cursor-pointer select-none list-none rounded backdrop-blur-sm active:cursor-grabbing", c && "touch-none", g ? "bg-f1-background-secondary text-f1-foreground" : "hover:bg-f1-background-secondary", v && "bg-f1-background-secondary", E && "bg-f1-background-secondary");
|
|
10648
10648
|
}, [
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
]),
|
|
10649
|
+
g,
|
|
10650
|
+
v,
|
|
10651
|
+
E,
|
|
10652
|
+
c
|
|
10653
|
+
]), O = J(function() {
|
|
10654
10654
|
return /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("div", {
|
|
10655
10655
|
className: "flex w-full items-center justify-between px-1.5 py-1.5",
|
|
10656
10656
|
children: /* @__PURE__ */ Q(rS, {
|
|
@@ -10659,12 +10659,12 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10659
10659
|
onClick: e.onClick,
|
|
10660
10660
|
href: e.href,
|
|
10661
10661
|
exactMatch: e.exactMatch,
|
|
10662
|
-
className: W("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline",
|
|
10662
|
+
className: W("flex w-[calc(100%-24px-2px)] items-center gap-1.5 no-underline", E && "pointer-events-none"),
|
|
10663
10663
|
draggable: !1,
|
|
10664
10664
|
children: [e.type === "icon" ? /* @__PURE__ */ Q(V, {
|
|
10665
10665
|
icon: e.icon,
|
|
10666
10666
|
size: "md",
|
|
10667
|
-
className: W(!
|
|
10667
|
+
className: W(!l && "transition-colors", g ? "text-f1-icon-bold" : "text-f1-icon")
|
|
10668
10668
|
}) : e.avatar ? /* @__PURE__ */ Q(qo, {
|
|
10669
10669
|
size: "xs",
|
|
10670
10670
|
avatar: e.avatar
|
|
@@ -10678,11 +10678,11 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10678
10678
|
})
|
|
10679
10679
|
})
|
|
10680
10680
|
}), /* @__PURE__ */ Q("div", {
|
|
10681
|
-
className: W("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100",
|
|
10681
|
+
className: W("absolute inset-y-1 right-1 z-10 flex h-6 w-6 items-center justify-center rounded-sm opacity-0 transition-opacity duration-100 hover:bg-f1-background-secondary group-hover:opacity-100", v && "bg-f1-background-secondary opacity-100", E && "opacity-100"),
|
|
10682
10682
|
children: /* @__PURE__ */ Q(ji, {
|
|
10683
|
-
open:
|
|
10684
|
-
onOpenChange:
|
|
10685
|
-
items:
|
|
10683
|
+
open: v,
|
|
10684
|
+
onOpenChange: y,
|
|
10685
|
+
items: C,
|
|
10686
10686
|
children: /* @__PURE__ */ Q("div", {
|
|
10687
10687
|
className: "flex items-center justify-center",
|
|
10688
10688
|
role: "list",
|
|
@@ -10695,56 +10695,56 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10695
10695
|
})] });
|
|
10696
10696
|
}, [
|
|
10697
10697
|
e,
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10698
|
+
g,
|
|
10699
|
+
l,
|
|
10700
|
+
v,
|
|
10701
|
+
E,
|
|
10702
|
+
C,
|
|
10703
10703
|
t
|
|
10704
10704
|
]);
|
|
10705
|
-
return
|
|
10705
|
+
return c ? /* @__PURE__ */ Q(Xe, {
|
|
10706
10706
|
value: e,
|
|
10707
10707
|
drag: "y",
|
|
10708
10708
|
dragConstraints: n,
|
|
10709
10709
|
dragElastic: .1,
|
|
10710
|
-
onDragStart:
|
|
10711
|
-
onDragEnd:
|
|
10712
|
-
className:
|
|
10710
|
+
onDragStart: w,
|
|
10711
|
+
onDragEnd: T,
|
|
10712
|
+
className: D,
|
|
10713
10713
|
whileDrag: { scale: 1.05 },
|
|
10714
|
-
children:
|
|
10714
|
+
children: O
|
|
10715
10715
|
}) : /* @__PURE__ */ Q("div", {
|
|
10716
|
-
className:
|
|
10717
|
-
children:
|
|
10718
|
-
});
|
|
10719
|
-
}, eS = ({ category: e, isSortable: t = !1, dragConstraints: n, onCollapse:
|
|
10720
|
-
let
|
|
10721
|
-
|
|
10722
|
-
},
|
|
10723
|
-
|
|
10724
|
-
|
|
10716
|
+
className: D,
|
|
10717
|
+
children: O
|
|
10718
|
+
});
|
|
10719
|
+
}, eS = ({ category: e, isSortable: t = !1, dragConstraints: n, onCollapse: r, onDragEnd: i, currentOrder: a }) => {
|
|
10720
|
+
let o = Ac() === "two-level", { isDragging: s, setIsDragging: c } = Yx(), l = Y(!1), u = vt(), d = () => {
|
|
10721
|
+
c(!0), l.current = !0;
|
|
10722
|
+
}, f = () => {
|
|
10723
|
+
c(!1), setTimeout(() => {
|
|
10724
|
+
l.current = !1, a && i?.(a);
|
|
10725
10725
|
}, 0);
|
|
10726
|
-
},
|
|
10726
|
+
}, p = /* @__PURE__ */ Q(zb, {
|
|
10727
10727
|
title: e.title,
|
|
10728
10728
|
isOpen: e.isOpen,
|
|
10729
10729
|
isRoot: e.isRoot,
|
|
10730
10730
|
onCollapse: (t) => {
|
|
10731
|
-
!
|
|
10731
|
+
!s && !l.current && r?.(e, t);
|
|
10732
10732
|
},
|
|
10733
|
-
isDragging:
|
|
10734
|
-
wasDragging:
|
|
10733
|
+
isDragging: s,
|
|
10734
|
+
wasDragging: l,
|
|
10735
10735
|
children: /* @__PURE__ */ Q("div", {
|
|
10736
|
-
className: W("flex flex-col gap-0.5",
|
|
10736
|
+
className: W("flex flex-col gap-0.5", s && !l.current && "pointer-events-none"),
|
|
10737
10737
|
children: e.items.map((e) => /* @__PURE__ */ Q(Qx, { item: e }, `${e.href ?? ""}|${e.label}`))
|
|
10738
10738
|
})
|
|
10739
10739
|
});
|
|
10740
|
-
return t ? /* @__PURE__ */ Q(
|
|
10740
|
+
return t ? /* @__PURE__ */ Q(Xe, {
|
|
10741
10741
|
id: e.id,
|
|
10742
10742
|
value: e,
|
|
10743
10743
|
dragConstraints: n,
|
|
10744
10744
|
dragElastic: .1,
|
|
10745
|
-
dragControls:
|
|
10746
|
-
onDragStart:
|
|
10747
|
-
onDragEnd:
|
|
10745
|
+
dragControls: u,
|
|
10746
|
+
onDragStart: d,
|
|
10747
|
+
onDragEnd: f,
|
|
10748
10748
|
layout: !0,
|
|
10749
10749
|
layoutId: `category-${e.id}`,
|
|
10750
10750
|
initial: { opacity: 1 },
|
|
@@ -10775,7 +10775,7 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10775
10775
|
1.275
|
|
10776
10776
|
]
|
|
10777
10777
|
},
|
|
10778
|
-
layout:
|
|
10778
|
+
layout: s || !o ? {
|
|
10779
10779
|
type: "spring",
|
|
10780
10780
|
bounce: .1,
|
|
10781
10781
|
damping: 15
|
|
@@ -10788,8 +10788,8 @@ var Xx = ({ item: e, active: t }) => {
|
|
|
10788
10788
|
backdropFilter: "blur(4px)"
|
|
10789
10789
|
},
|
|
10790
10790
|
className: "relative",
|
|
10791
|
-
children:
|
|
10792
|
-
}) :
|
|
10791
|
+
children: p
|
|
10792
|
+
}) : p;
|
|
10793
10793
|
};
|
|
10794
10794
|
function tS({ tree: e, onCollapse: t, onSort: n, onFavoritesChange: r, favorites: i }) {
|
|
10795
10795
|
let a = Y(null), o = e.filter((e) => e.isSortable === !1), s = J(function() {
|
|
@@ -10912,7 +10912,7 @@ function nS({ nonSortableItems: e, sortableItems: t, setSortableItems: n, contai
|
|
|
10912
10912
|
children: l ? /* @__PURE__ */ Q("div", {
|
|
10913
10913
|
className: T,
|
|
10914
10914
|
children: D
|
|
10915
|
-
}) : /* @__PURE__ */ Q(
|
|
10915
|
+
}) : /* @__PURE__ */ Q(Pt, {
|
|
10916
10916
|
axis: "y",
|
|
10917
10917
|
values: g,
|
|
10918
10918
|
onReorder: y,
|
|
@@ -10935,7 +10935,7 @@ function nS({ nonSortableItems: e, sortableItems: t, setSortableItems: n, contai
|
|
|
10935
10935
|
children: l ? /* @__PURE__ */ Q("div", {
|
|
10936
10936
|
className: O,
|
|
10937
10937
|
children: k
|
|
10938
|
-
}) : /* @__PURE__ */ Q(
|
|
10938
|
+
}) : /* @__PURE__ */ Q(Pt, {
|
|
10939
10939
|
axis: "y",
|
|
10940
10940
|
values: t,
|
|
10941
10941
|
onReorder: n,
|
|
@@ -11617,21 +11617,21 @@ function QS({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
11617
11617
|
ml(function() {
|
|
11618
11618
|
te.current = I, ie.current = P.map((e) => e.id);
|
|
11619
11619
|
}, [I, P]);
|
|
11620
|
-
let
|
|
11620
|
+
let ae = (e) => {
|
|
11621
11621
|
e !== void 0 && T.current.get(e)?.focus();
|
|
11622
11622
|
};
|
|
11623
11623
|
sS(i, t, n, r);
|
|
11624
|
-
let
|
|
11624
|
+
let L = Y(null);
|
|
11625
11625
|
xS({
|
|
11626
11626
|
enabled: u,
|
|
11627
11627
|
platform: m,
|
|
11628
11628
|
shortcutOrderRef: te,
|
|
11629
11629
|
tabRefs: T,
|
|
11630
|
-
shortcutPressRef:
|
|
11630
|
+
shortcutPressRef: L,
|
|
11631
11631
|
hasSecondarySidebar: v,
|
|
11632
11632
|
toggleSidebar: h
|
|
11633
11633
|
});
|
|
11634
|
-
let
|
|
11634
|
+
let oe = P[Math.max(0, P.findIndex((e) => e.id === n))]?.id, se = K(function(e, t) {
|
|
11635
11635
|
e === n ? a ? a() : v && g === "hidden" && h() : (y?.(), b?.(), r(e, { source: t }));
|
|
11636
11636
|
}, [
|
|
11637
11637
|
n,
|
|
@@ -11642,7 +11642,7 @@ function QS({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
11642
11642
|
b,
|
|
11643
11643
|
g,
|
|
11644
11644
|
h
|
|
11645
|
-
]),
|
|
11645
|
+
]), ce = yS(ie, ae), le = lS(t, XS, w ? 0 : 120);
|
|
11646
11646
|
return /* @__PURE__ */ Q(Mx, {
|
|
11647
11647
|
onTooltipShow: d,
|
|
11648
11648
|
onTooltipHide: f,
|
|
@@ -11675,7 +11675,7 @@ function QS({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
11675
11675
|
ref: D,
|
|
11676
11676
|
"aria-label": p.navigation.sidebar.primarySidebar.label,
|
|
11677
11677
|
className: "flex min-h-0 w-full flex-1 flex-col overflow-hidden",
|
|
11678
|
-
children:
|
|
11678
|
+
children: le.map(({ item: e, key: t, leaving: r, appear: i }) => /* @__PURE__ */ Q(FS, {
|
|
11679
11679
|
appear: i,
|
|
11680
11680
|
leaving: r,
|
|
11681
11681
|
reducedMotion: w,
|
|
@@ -11686,9 +11686,9 @@ function QS({ company: e, tabs: t, activeTab: n, onTabChange: r, persistKey: i,
|
|
|
11686
11686
|
ref: r ? void 0 : re(e.id),
|
|
11687
11687
|
tab: e,
|
|
11688
11688
|
isActive: e.id === n,
|
|
11689
|
-
isFocusable: !r && e.id ===
|
|
11690
|
-
onSelect: () =>
|
|
11691
|
-
onKeyDown: (t) =>
|
|
11689
|
+
isFocusable: !r && e.id === oe,
|
|
11690
|
+
onSelect: () => se(e.id, L.current === e.id ? "shortcut" : "click"),
|
|
11691
|
+
onKeyDown: (t) => ce(t, e.id),
|
|
11692
11692
|
flyout: e.flyout,
|
|
11693
11693
|
shortcut: ee(e.id) === void 0 ? void 0 : ["option", String(ee(e.id))],
|
|
11694
11694
|
showShortcut: C && ee(e.id) !== void 0
|
|
@@ -12148,20 +12148,20 @@ function vC(e, t, n) {
|
|
|
12148
12148
|
//#endregion
|
|
12149
12149
|
//#region src/addons/data-collection/OneDataCollection/hooks/useDataCollectionItemNavigation/useDataCollectionItemNavigation.ts
|
|
12150
12150
|
function yC(e) {
|
|
12151
|
-
let { source: t, collectionId: n, activeItemId: r, defaultActiveItemId: i, onActiveItemChange: a, idProvider: o, itemUrl: s, getItemTitle: c, enabled: l = !0, restorePersistedState: u = !0, currentFilters: d, navigationMode: f = "url", deps: p = [] } = e, m = dr(), h =
|
|
12151
|
+
let { source: t, collectionId: n, activeItemId: r, defaultActiveItemId: i, onActiveItemChange: a, idProvider: o, itemUrl: s, getItemTitle: c, enabled: l = !0, restorePersistedState: u = !0, currentFilters: d, navigationMode: f = "url", deps: p = [] } = e, m = dr(), h = me(t, p), [g, _] = X(null), v = g?.key === n && g.settled, y = Y(h);
|
|
12152
12152
|
y.current = h;
|
|
12153
12153
|
let b = Y(m);
|
|
12154
12154
|
b.current = m;
|
|
12155
12155
|
let x = Y(null), S = d === void 0 ? null : JSON.stringify(d), C = Y(d);
|
|
12156
12156
|
C.current = d;
|
|
12157
|
-
let
|
|
12157
|
+
let T = Y(null), E = () => {
|
|
12158
12158
|
let e = C.current;
|
|
12159
|
-
e !== void 0 && (
|
|
12159
|
+
e !== void 0 && (T.current = JSON.stringify(e), y.current.setCurrentFilters(e));
|
|
12160
12160
|
};
|
|
12161
12161
|
q(() => {
|
|
12162
12162
|
if (!l || x.current === n) return;
|
|
12163
12163
|
if (!u) {
|
|
12164
|
-
x.current = n,
|
|
12164
|
+
x.current = n, E(), _({
|
|
12165
12165
|
key: n,
|
|
12166
12166
|
applied: null,
|
|
12167
12167
|
settled: !1
|
|
@@ -12175,7 +12175,7 @@ function yC(e) {
|
|
|
12175
12175
|
let r = await b.current.get(n);
|
|
12176
12176
|
r && !e && (t = vC(r, y.current, y.current));
|
|
12177
12177
|
} catch {}
|
|
12178
|
-
e || (x.current = n,
|
|
12178
|
+
e || (x.current = n, E(), _({
|
|
12179
12179
|
key: n,
|
|
12180
12180
|
applied: t,
|
|
12181
12181
|
settled: !1
|
|
@@ -12188,7 +12188,7 @@ function yC(e) {
|
|
|
12188
12188
|
l,
|
|
12189
12189
|
u
|
|
12190
12190
|
]), q(() => {
|
|
12191
|
-
v && S !== null &&
|
|
12191
|
+
v && S !== null && T.current !== S && E();
|
|
12192
12192
|
}, [v, S]), q(() => {
|
|
12193
12193
|
if (!l || !u) return;
|
|
12194
12194
|
let e = async () => {
|
|
@@ -12212,7 +12212,7 @@ function yC(e) {
|
|
|
12212
12212
|
l,
|
|
12213
12213
|
u
|
|
12214
12214
|
]);
|
|
12215
|
-
let { data:
|
|
12215
|
+
let { data: D, paginationInfo: O, setPage: k, loadMore: A, isLoading: j, isInitialLoading: M } = zo(h, {
|
|
12216
12216
|
enabled: l && v,
|
|
12217
12217
|
fetchParamsProvider: (e) => ({
|
|
12218
12218
|
...e,
|
|
@@ -12225,66 +12225,66 @@ function yC(e) {
|
|
|
12225
12225
|
settled: !0
|
|
12226
12226
|
} : e);
|
|
12227
12227
|
}, [g, n]);
|
|
12228
|
-
let
|
|
12228
|
+
let N = s ?? t.itemUrl, P = w({
|
|
12229
12229
|
dataSource: h,
|
|
12230
|
-
data:
|
|
12231
|
-
paginationInfo:
|
|
12232
|
-
setPage:
|
|
12233
|
-
loadMore:
|
|
12230
|
+
data: D,
|
|
12231
|
+
paginationInfo: O,
|
|
12232
|
+
setPage: k,
|
|
12233
|
+
loadMore: A,
|
|
12234
12234
|
isLoading: j,
|
|
12235
12235
|
idProvider: o,
|
|
12236
|
-
itemUrl:
|
|
12236
|
+
itemUrl: N,
|
|
12237
12237
|
activeItemId: r,
|
|
12238
12238
|
defaultActiveItemId: i,
|
|
12239
12239
|
onActiveItemChange: a
|
|
12240
|
-
}),
|
|
12240
|
+
}), F = typeof P.activeItemId == "string" || typeof P.activeItemId == "number" ? P.activeItemId : null, I = P.activeItem !== null, ee = I && P.nextItem === null && P.hasNext, te = I && P.previousItem === null && P.hasPrevious, ne = F !== null && (!I || ee || te), re = [...h.currentSortings ? [{
|
|
12241
12241
|
field: h.currentSortings.field,
|
|
12242
12242
|
order: h.currentSortings.order
|
|
12243
12243
|
}] : [], ...h.currentGrouping ? [{
|
|
12244
12244
|
field: h.currentGrouping.field,
|
|
12245
12245
|
order: h.currentGrouping.order ?? "asc"
|
|
12246
|
-
}] : []], { neighbors:
|
|
12246
|
+
}] : []], { neighbors: ie, isSupported: ae } = Et({
|
|
12247
12247
|
dataAdapter: h.dataAdapter,
|
|
12248
|
-
id:
|
|
12248
|
+
id: F,
|
|
12249
12249
|
filters: h.currentFilters,
|
|
12250
|
-
sortings:
|
|
12250
|
+
sortings: re,
|
|
12251
12251
|
search: h.debouncedCurrentSearch,
|
|
12252
|
-
enabled: l && v && !M && !j &&
|
|
12252
|
+
enabled: l && v && !M && !j && ne,
|
|
12253
12253
|
fetchParamsProvider: (e) => ({
|
|
12254
12254
|
...e,
|
|
12255
12255
|
navigationFilters: h.currentNavigationFilters
|
|
12256
12256
|
})
|
|
12257
|
-
}),
|
|
12258
|
-
if (!
|
|
12259
|
-
let e =
|
|
12257
|
+
}), L = J(() => o || (h.idProvider ? (e, t) => h.idProvider(e, t) : De), [o, h.idProvider]), oe = J(() => {
|
|
12258
|
+
if (!ne || ie === null) return P;
|
|
12259
|
+
let e = P.previousItem ?? ie.previous, t = P.nextItem ?? ie.next, n = (e) => e && N ? N(e) ?? null : null;
|
|
12260
12260
|
return {
|
|
12261
|
-
...
|
|
12261
|
+
...P,
|
|
12262
12262
|
previousItem: e,
|
|
12263
12263
|
nextItem: t,
|
|
12264
|
-
previousItemUrl:
|
|
12265
|
-
nextItemUrl:
|
|
12266
|
-
absoluteIndex:
|
|
12267
|
-
totalItems:
|
|
12268
|
-
hasPrevious:
|
|
12269
|
-
hasNext:
|
|
12270
|
-
goToPrevious:
|
|
12271
|
-
|
|
12264
|
+
previousItemUrl: P.previousItemUrl ?? n(e),
|
|
12265
|
+
nextItemUrl: P.nextItemUrl ?? n(t),
|
|
12266
|
+
absoluteIndex: P.absoluteIndex ?? (ie.position === void 0 ? null : ie.position - 1),
|
|
12267
|
+
totalItems: P.totalItems ?? ie.total,
|
|
12268
|
+
hasPrevious: P.hasPrevious || e !== null,
|
|
12269
|
+
hasNext: P.hasNext || t !== null,
|
|
12270
|
+
goToPrevious: I ? P.goToPrevious : () => {
|
|
12271
|
+
ie.previous && P.setActiveItemId(L(ie.previous));
|
|
12272
12272
|
},
|
|
12273
|
-
goToNext:
|
|
12274
|
-
|
|
12273
|
+
goToNext: I ? P.goToNext : () => {
|
|
12274
|
+
ie.next && P.setActiveItemId(L(ie.next));
|
|
12275
12275
|
}
|
|
12276
12276
|
};
|
|
12277
12277
|
}, [
|
|
12278
|
-
F,
|
|
12279
|
-
re,
|
|
12280
|
-
L,
|
|
12281
|
-
ee,
|
|
12282
12278
|
P,
|
|
12283
|
-
|
|
12279
|
+
ne,
|
|
12280
|
+
ie,
|
|
12281
|
+
I,
|
|
12282
|
+
N,
|
|
12283
|
+
L
|
|
12284
12284
|
]), se = Jy(oe, {
|
|
12285
12285
|
getItemTitle: c,
|
|
12286
12286
|
mode: f
|
|
12287
|
-
}), ce = l && v &&
|
|
12287
|
+
}), ce = l && v && ae && ne && ie === null, le = Y(null), ue = se ?? (ce ? le.current : null);
|
|
12288
12288
|
return q(() => {
|
|
12289
12289
|
se !== null && (le.current = se);
|
|
12290
12290
|
}, [se]), {
|
|
@@ -12294,8 +12294,8 @@ function yC(e) {
|
|
|
12294
12294
|
navigation: ue,
|
|
12295
12295
|
appliedCollectionState: g?.applied ?? null,
|
|
12296
12296
|
dataSource: h,
|
|
12297
|
-
data:
|
|
12298
|
-
paginationInfo:
|
|
12297
|
+
data: D,
|
|
12298
|
+
paginationInfo: O,
|
|
12299
12299
|
isLoading: j
|
|
12300
12300
|
};
|
|
12301
12301
|
}
|
|
@@ -12312,18 +12312,18 @@ function SC(e) {
|
|
|
12312
12312
|
if (t === "amount") return xC(n) ?? xC(r?.amount);
|
|
12313
12313
|
}
|
|
12314
12314
|
function CC(e, t) {
|
|
12315
|
-
let n = t.value ? t.value(e) : t.field ?
|
|
12315
|
+
let n = t.value ? t.value(e) : t.field ? gt(e, t.field) : e, r = SC(n);
|
|
12316
12316
|
if (r !== void 0) return r;
|
|
12317
|
-
let i =
|
|
12317
|
+
let i = Rt(n);
|
|
12318
12318
|
return i === "" ? null : i.slice(0, bC);
|
|
12319
12319
|
}
|
|
12320
12320
|
async function wC(e, t, n) {
|
|
12321
12321
|
if (!e || e.length === 0) throw Error("No data available for export");
|
|
12322
|
-
let r =
|
|
12323
|
-
|
|
12322
|
+
let r = wt(e, t, n), i = [...n?.includeHeaders === !1 ? [] : [r.map((e) => e.label)], ...e.map((e) => r.map((t) => CC(e, t)))];
|
|
12323
|
+
pt(await po([{
|
|
12324
12324
|
name: "Data",
|
|
12325
12325
|
rows: i
|
|
12326
|
-
}]),
|
|
12326
|
+
}]), tt(n?.filename || "data_collection", "xlsx"));
|
|
12327
12327
|
}
|
|
12328
12328
|
//#endregion
|
|
12329
12329
|
//#region src/blocks/F0CommandPalette/components/CommandFooter.tsx
|
|
@@ -12423,7 +12423,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
12423
12423
|
phone: a,
|
|
12424
12424
|
tinted: i
|
|
12425
12425
|
});
|
|
12426
|
-
let l = e.color && !e.avatar ?
|
|
12426
|
+
let l = e.color && !e.avatar ? oe(e.color) : void 0, u = i ? OC.tinted : OC.flat, d = l ? kC.tinted[a ? "phone" : "desktop"] : kC.flat[a ? "phone" : "desktop"];
|
|
12427
12427
|
return /* @__PURE__ */ $("div", {
|
|
12428
12428
|
id: `f0-command-option-${t}`,
|
|
12429
12429
|
"data-index": t,
|
|
@@ -13093,7 +13093,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13093
13093
|
S
|
|
13094
13094
|
]), ie = K((e) => {
|
|
13095
13095
|
_(e), y([e]), j.current?.focus(), ZC(j.current);
|
|
13096
|
-
}, []),
|
|
13096
|
+
}, []), ae = J(() => ({
|
|
13097
13097
|
navigate: ne,
|
|
13098
13098
|
ask: re,
|
|
13099
13099
|
setQuery: ie
|
|
@@ -13101,33 +13101,33 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13101
13101
|
re,
|
|
13102
13102
|
ne,
|
|
13103
13103
|
ie
|
|
13104
|
-
]),
|
|
13104
|
+
]), L = K(() => {
|
|
13105
13105
|
O(null), j.current?.focus();
|
|
13106
|
-
}, []),
|
|
13106
|
+
}, []), oe = K((e) => {
|
|
13107
13107
|
O(null), N.current?.querySelector(`[data-index="${e}"]`)?.focus();
|
|
13108
|
-
}, []),
|
|
13108
|
+
}, []), se = K((e, t) => {
|
|
13109
13109
|
let n = ee.current?.querySelector(`[data-row="${e}"][data-action="${t}"] button`);
|
|
13110
13110
|
n && (O(t), n.focus());
|
|
13111
|
-
}, []),
|
|
13111
|
+
}, []), ce = K((e) => {
|
|
13112
13112
|
let t = new URL(e, window.location.origin).toString();
|
|
13113
|
-
navigator.clipboard?.writeText(t),
|
|
13113
|
+
navigator.clipboard?.writeText(t), jt.open({
|
|
13114
13114
|
title: d.rowActions.linkCopied,
|
|
13115
13115
|
variant: "success"
|
|
13116
13116
|
}), A(d.announce.linkCopied(t));
|
|
13117
|
-
}, [d]),
|
|
13117
|
+
}, [d]), le = K((e) => {
|
|
13118
13118
|
x((t) => [...t, e]), w({ kind: "browse" }), _(""), y([""]), E(0), O(null);
|
|
13119
13119
|
let t = (p.find((t) => t.type === e.type)?.actions?.(e) ?? []).reduce((e, t) => e + t.items.length, 0);
|
|
13120
13120
|
A(d.announce.scoped(e.label, t));
|
|
13121
|
-
}, [d, p]),
|
|
13121
|
+
}, [d, p]), ue = K((e, t) => {
|
|
13122
13122
|
x((t) => t.slice(0, e)), w({ kind: "browse" }), _(t), y([t]), A(d.announce.cleared), j.current?.focus(), ZC(j.current);
|
|
13123
|
-
}, [d]),
|
|
13123
|
+
}, [d]), de = K(() => C.kind === "param" ? (w(C.step > 0 ? {
|
|
13124
13124
|
...C,
|
|
13125
13125
|
step: C.step - 1
|
|
13126
|
-
} : { kind: "browse" }), _(""), !0) : b.length > 0 && (
|
|
13126
|
+
} : { kind: "browse" }), _(""), !0) : b.length > 0 && (ue(b.length - 1, ""), !0), [
|
|
13127
13127
|
b,
|
|
13128
13128
|
C,
|
|
13129
|
-
|
|
13130
|
-
]),
|
|
13129
|
+
ue
|
|
13130
|
+
]), fe = K((e, t, n) => {
|
|
13131
13131
|
if (n < (e.params ?? []).length) w({
|
|
13132
13132
|
kind: "param",
|
|
13133
13133
|
action: e,
|
|
@@ -13135,7 +13135,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13135
13135
|
values: t
|
|
13136
13136
|
}), _(""), E(0);
|
|
13137
13137
|
else if (S) {
|
|
13138
|
-
if (e.run) e.run(S, t,
|
|
13138
|
+
if (e.run) e.run(S, t, ae);
|
|
13139
13139
|
else {
|
|
13140
13140
|
let n = aw(e, S, t);
|
|
13141
13141
|
n && ne(n);
|
|
@@ -13145,16 +13145,16 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13145
13145
|
}
|
|
13146
13146
|
}, [
|
|
13147
13147
|
te,
|
|
13148
|
-
|
|
13148
|
+
ae,
|
|
13149
13149
|
S
|
|
13150
|
-
]),
|
|
13150
|
+
]), pe = _w({
|
|
13151
13151
|
providers: p,
|
|
13152
13152
|
query: g
|
|
13153
|
-
}),
|
|
13153
|
+
}), me = yw({
|
|
13154
13154
|
providers: p,
|
|
13155
13155
|
scope: S,
|
|
13156
13156
|
query: g
|
|
13157
|
-
}),
|
|
13157
|
+
}), R = dw({
|
|
13158
13158
|
query: g,
|
|
13159
13159
|
scope: S,
|
|
13160
13160
|
stage: C,
|
|
@@ -13164,18 +13164,18 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13164
13164
|
maxItemRows: a,
|
|
13165
13165
|
reveal: o,
|
|
13166
13166
|
assistant: c,
|
|
13167
|
-
context:
|
|
13168
|
-
onAdvance:
|
|
13169
|
-
onCopyLink:
|
|
13167
|
+
context: ae,
|
|
13168
|
+
onAdvance: fe,
|
|
13169
|
+
onCopyLink: ce,
|
|
13170
13170
|
labels: d,
|
|
13171
|
-
search:
|
|
13172
|
-
children:
|
|
13171
|
+
search: pe,
|
|
13172
|
+
children: me,
|
|
13173
13173
|
ask: re,
|
|
13174
|
-
onEnterScope:
|
|
13174
|
+
onEnterScope: le,
|
|
13175
13175
|
canDrill: b.length < bw
|
|
13176
|
-
}), he =
|
|
13177
|
-
ge.current =
|
|
13178
|
-
let _e = `${
|
|
13176
|
+
}), he = R.some((e) => e.color !== void 0), ge = Y(R);
|
|
13177
|
+
ge.current = R;
|
|
13178
|
+
let _e = `${pe.pending.join(" ")}|${me.pending}`, ve = Y(null), ye = K((e) => {
|
|
13179
13179
|
E((t) => {
|
|
13180
13180
|
let n = typeof e == "function" ? e(t) : e;
|
|
13181
13181
|
return n !== t && (ve.current = ge.current[n]?.id ?? null), n;
|
|
@@ -13219,7 +13219,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13219
13219
|
let t = ge.current.slice(0, T).every((e) => e.skeleton);
|
|
13220
13220
|
ve.current === null && T > 0 && t ? e.scrollTop = 0 : e.querySelector(`[data-index="${T}"]`)?.scrollIntoView({ block: "nearest" });
|
|
13221
13221
|
}, [T]);
|
|
13222
|
-
let be =
|
|
13222
|
+
let be = R[T], [xe, Se] = X(null), [Ce, we] = X(!1), [Te, Ee] = X(!1);
|
|
13223
13223
|
ml(() => {
|
|
13224
13224
|
let e = P;
|
|
13225
13225
|
if (!e) return;
|
|
@@ -13237,20 +13237,20 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13237
13237
|
}, [
|
|
13238
13238
|
T,
|
|
13239
13239
|
P,
|
|
13240
|
-
|
|
13240
|
+
R
|
|
13241
13241
|
]);
|
|
13242
13242
|
let De = K((e) => {
|
|
13243
|
-
let t =
|
|
13243
|
+
let t = R[e];
|
|
13244
13244
|
t && (t.disabledReason ? A(d.announce.unavailable(t.label, t.disabledReason)) : t.run());
|
|
13245
|
-
}, [d,
|
|
13246
|
-
for (let n = e + t; n >= 0 && n <
|
|
13245
|
+
}, [d, R]), Oe = (e, t) => {
|
|
13246
|
+
for (let n = e + t; n >= 0 && n < R.length; n += t) if (!R[n]?.skeleton) return n;
|
|
13247
13247
|
return e;
|
|
13248
13248
|
}, ke = (e) => {
|
|
13249
|
-
let t =
|
|
13249
|
+
let t = R[e];
|
|
13250
13250
|
return t ? (t.rowActions?.length ?? 0) + +!t.disabledReason : 0;
|
|
13251
13251
|
}, Ae = (e) => {
|
|
13252
|
-
let t =
|
|
13253
|
-
return C.kind !== "browse" || !t?.scopeRef || b.length >= bw ? !1 : (
|
|
13252
|
+
let t = R[e];
|
|
13253
|
+
return C.kind !== "browse" || !t?.scopeRef || b.length >= bw ? !1 : (le(t.scopeRef), !0);
|
|
13254
13254
|
}, je = (e) => {
|
|
13255
13255
|
let t = j.current;
|
|
13256
13256
|
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
|
|
@@ -13260,38 +13260,38 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13260
13260
|
if (b.length > 0 && C.kind === "browse" && (e.key === "Backspace" || e.key === "Delete")) {
|
|
13261
13261
|
let n = GC(t, e.key === "Backspace" ? "after" : "before");
|
|
13262
13262
|
if (n !== -1) {
|
|
13263
|
-
e.preventDefault(),
|
|
13263
|
+
e.preventDefault(), ue(n, g);
|
|
13264
13264
|
return;
|
|
13265
13265
|
}
|
|
13266
13266
|
}
|
|
13267
|
-
if (e.key === "ArrowRight" && HC(t) && ke(T) > 0) e.preventDefault(), M.current = "field",
|
|
13267
|
+
if (e.key === "ArrowRight" && HC(t) && ke(T) > 0) e.preventDefault(), M.current = "field", se(T, 0);
|
|
13268
13268
|
else if (e.key === "ArrowDown") e.preventDefault(), ye((e) => Oe(e, 1));
|
|
13269
13269
|
else if (e.key === "ArrowUp") e.preventDefault(), ye((e) => Oe(e, -1));
|
|
13270
13270
|
else if (e.key === "Tab" && e.shiftKey) e.preventDefault();
|
|
13271
13271
|
else if (e.key === "Tab") {
|
|
13272
13272
|
if (e.preventDefault(), Ae(T)) return;
|
|
13273
|
-
|
|
13274
|
-
} else e.key === "Backspace" && S && UC(t) && VC(t) ? e.preventDefault() : e.key === "Backspace" && g === "" ?
|
|
13273
|
+
R.length > 0 && (ye(0), oe(0));
|
|
13274
|
+
} else e.key === "Backspace" && S && UC(t) && VC(t) ? e.preventDefault() : e.key === "Backspace" && g === "" ? de() && e.preventDefault() : e.key === "Enter" && (e.preventDefault(), De(T));
|
|
13275
13275
|
}
|
|
13276
13276
|
}, Me = (e, t) => {
|
|
13277
13277
|
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
13278
13278
|
e.preventDefault();
|
|
13279
13279
|
let n = e.key === "ArrowDown" ? Oe(t, 1) : Oe(t, -1);
|
|
13280
|
-
ye(n),
|
|
13281
|
-
} else e.key === "ArrowRight" ? (e.preventDefault(), ke(t) > 0 && (M.current = "row",
|
|
13280
|
+
ye(n), oe(n);
|
|
13281
|
+
} else e.key === "ArrowRight" ? (e.preventDefault(), ke(t) > 0 && (M.current = "row", se(t, 0))) : e.key === "ArrowLeft" || e.key === "Escape" ? (e.preventDefault(), L()) : e.key === "Tab" ? (e.preventDefault(), (e.shiftKey || !Ae(t)) && L()) : e.key === "Enter" ? (e.preventDefault(), De(t)) : e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (e.preventDefault(), L(), _((t) => t + e.key));
|
|
13282
13282
|
}, Ne = (e, t, n) => {
|
|
13283
13283
|
let r = () => {
|
|
13284
13284
|
e.preventDefault(), e.stopPropagation();
|
|
13285
13285
|
};
|
|
13286
|
-
if (e.key === "Tab") r(),
|
|
13287
|
-
else if (e.key === "ArrowRight") r(), t + 1 < n &&
|
|
13288
|
-
else if (e.key === "ArrowLeft") r(), t > 0 ?
|
|
13289
|
-
else if (e.key === "Escape") r(),
|
|
13286
|
+
if (e.key === "Tab") r(), L();
|
|
13287
|
+
else if (e.key === "ArrowRight") r(), t + 1 < n && se(T, t + 1);
|
|
13288
|
+
else if (e.key === "ArrowLeft") r(), t > 0 ? se(T, t - 1) : M.current === "row" ? oe(T) : L();
|
|
13289
|
+
else if (e.key === "Escape") r(), L();
|
|
13290
13290
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
13291
13291
|
r();
|
|
13292
13292
|
let t = e.key === "ArrowDown" ? Oe(T, 1) : Oe(T, -1);
|
|
13293
|
-
ye(t),
|
|
13294
|
-
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(),
|
|
13293
|
+
ye(t), oe(t);
|
|
13294
|
+
} else e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey && (r(), L(), _((t) => t + e.key));
|
|
13295
13295
|
}, Pe = (e) => e && e.kind === "one" && e.sublabel ? `${e.label} · ${e.sublabel}` : e?.label ?? "", Fe = Pe(S ?? void 0), Ie = S ? void 0 : h ? d.placeholderPhone : d.placeholder, Le = C.kind === "param" ? (C.action.params ?? [])[C.step]?.label ?? d.placeholderScoped : S ? d.fieldLabelScoped(Fe) : d.placeholder, Re = v.flatMap((e, t) => [e.trim(), b[t]?.label ?? ""]).filter(Boolean).join(" "), ze = S ? g.trim() ? Re : b.map((e) => e.label).join(" ") : g.trim();
|
|
13296
13296
|
return /* @__PURE__ */ Q(ar, {
|
|
13297
13297
|
open: e,
|
|
@@ -13303,7 +13303,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13303
13303
|
wrapperClassName: W("origin-top justify-center [animation-duration:400ms] [animation-timing-function:cubic-bezier(0.16,1,0.3,1)] motion-reduce:animate-none", h ? "items-end" : "items-start pt-[12vh]"),
|
|
13304
13304
|
className: W("overflow-hidden", h ? "w-full max-h-[92dvh] flex-col-reverse rounded-b-none rounded-t-2xl" : "max-h-[60vh] max-w-[840px] rounded-2xl", "border border-solid border-f1-border-secondary bg-f1-background/95 backdrop-blur-xl", "shadow-[inset_0_1px_0_hsl(0_0%_100%/0.5),0_12px_24px_hsl(220_60%_10%/0.16),0_32px_64px_hsl(220_60%_10%/0.28)]", "select-none"),
|
|
13305
13305
|
onEscapeKeyDown: (e) => {
|
|
13306
|
-
|
|
13306
|
+
de() && e.preventDefault();
|
|
13307
13307
|
},
|
|
13308
13308
|
onOpenAutoFocus: (e) => {
|
|
13309
13309
|
e.preventDefault(), j.current?.focus(), ZC(j.current);
|
|
@@ -13321,7 +13321,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13321
13321
|
onQueryChange: _,
|
|
13322
13322
|
onSegmentsChange: y,
|
|
13323
13323
|
onKeyDown: je,
|
|
13324
|
-
onChipTakingEdit:
|
|
13324
|
+
onChipTakingEdit: ue,
|
|
13325
13325
|
placeholder: Ie,
|
|
13326
13326
|
fieldLabel: Le,
|
|
13327
13327
|
scopes: b,
|
|
@@ -13329,13 +13329,13 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13329
13329
|
removeScopeLabel: (e) => d.scope.remove(Pe(b[e])),
|
|
13330
13330
|
assistant: c,
|
|
13331
13331
|
askLabel: S ? d.row.ask(S.label) : c?.label ?? "",
|
|
13332
|
-
onRemoveScope: (e) =>
|
|
13332
|
+
onRemoveScope: (e) => ue(e, ""),
|
|
13333
13333
|
onAsk: () => re(ze),
|
|
13334
13334
|
fieldRef: j,
|
|
13335
13335
|
listboxId: m,
|
|
13336
|
-
hasResults:
|
|
13336
|
+
hasResults: R.length > 0,
|
|
13337
13337
|
atFoot: h,
|
|
13338
|
-
activeOptionId:
|
|
13338
|
+
activeOptionId: R[T] ? `f0-command-option-${T}` : void 0
|
|
13339
13339
|
}),
|
|
13340
13340
|
/* @__PURE__ */ Q("div", {
|
|
13341
13341
|
className: "sr-only",
|
|
@@ -13352,11 +13352,11 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13352
13352
|
id: m,
|
|
13353
13353
|
role: "listbox",
|
|
13354
13354
|
"aria-label": d.label,
|
|
13355
|
-
"aria-busy":
|
|
13355
|
+
"aria-busy": pe.pending.length > 0 || void 0,
|
|
13356
13356
|
tabIndex: -1,
|
|
13357
13357
|
className: W("flex-1 overflow-y-auto p-1.5 outline-none", h && "flex flex-col-reverse", !h && Ce && "[mask-image:linear-gradient(to_bottom,#000_calc(100%-16px),transparent_100%)]", h && Te && "[mask-image:linear-gradient(to_top,#000_calc(100%-16px),transparent_100%)]"),
|
|
13358
|
-
children:
|
|
13359
|
-
let n =
|
|
13358
|
+
children: R.map((e, t) => {
|
|
13359
|
+
let n = R[t - 1], r = R[t + 1], i = !n || n.group !== e.group, a = !r || r.group !== e.group, o = !e.assistant && (h ? a : i);
|
|
13360
13360
|
return /* @__PURE__ */ $("div", { children: [o ? /* @__PURE__ */ Q("div", {
|
|
13361
13361
|
className: "px-2 pb-1 pt-3 text-base font-medium text-f1-foreground-secondary",
|
|
13362
13362
|
children: e.group
|
|
@@ -13373,7 +13373,7 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13373
13373
|
})] }, e.id);
|
|
13374
13374
|
})
|
|
13375
13375
|
}),
|
|
13376
|
-
|
|
13376
|
+
R.length === 0 ? /* @__PURE__ */ $("div", {
|
|
13377
13377
|
className: "flex flex-col gap-0.5 p-7 text-center",
|
|
13378
13378
|
children: [/* @__PURE__ */ Q("span", {
|
|
13379
13379
|
className: "text-lg text-f1-foreground",
|
|
@@ -13542,46 +13542,46 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13542
13542
|
}, []), ie = K((e, t) => v({
|
|
13543
13543
|
images: e,
|
|
13544
13544
|
index: t
|
|
13545
|
-
}), []),
|
|
13545
|
+
}), []), ae = K(() => v(null), []), L = K((e) => v((t) => t && {
|
|
13546
13546
|
...t,
|
|
13547
13547
|
index: e
|
|
13548
|
-
}), []),
|
|
13548
|
+
}), []), oe = K((e) => {
|
|
13549
13549
|
let t = Qa(e);
|
|
13550
13550
|
t && b({
|
|
13551
13551
|
file: e,
|
|
13552
13552
|
kind: t
|
|
13553
13553
|
});
|
|
13554
|
-
}, []),
|
|
13554
|
+
}, []), se = K(() => b(null), []), ce = K((e) => {
|
|
13555
13555
|
p.current = e;
|
|
13556
|
-
}, []),
|
|
13556
|
+
}, []), le = K((e) => {
|
|
13557
13557
|
let t = m.current;
|
|
13558
13558
|
m.current = e, c(e), p.current?.retarget(t, e), e.kind === "reply" ? o.onReplyStarted({ messageId: e.message.id }) : e.kind === "edit" && o.onEditStarted({ messageId: e.message.id });
|
|
13559
|
-
}, [o]),
|
|
13560
|
-
h.current !== !1 &&
|
|
13559
|
+
}, [o]), ue = K((e) => {
|
|
13560
|
+
h.current !== !1 && le({
|
|
13561
13561
|
kind: "reply",
|
|
13562
13562
|
message: e
|
|
13563
13563
|
});
|
|
13564
|
-
}, [
|
|
13565
|
-
h.current !== !1 &&
|
|
13564
|
+
}, [le]), de = K((e) => {
|
|
13565
|
+
h.current !== !1 && le({
|
|
13566
13566
|
kind: "edit",
|
|
13567
13567
|
message: e
|
|
13568
13568
|
});
|
|
13569
|
-
}, [
|
|
13569
|
+
}, [le]), fe = K(() => le({ kind: "none" }), [le]), pe = Y(i.id);
|
|
13570
13570
|
ml(function() {
|
|
13571
|
-
|
|
13572
|
-
}, [i.id,
|
|
13573
|
-
let
|
|
13571
|
+
pe.current !== i.id && (pe.current = i.id, p.current?.abandonDraft(), fe());
|
|
13572
|
+
}, [i.id, fe]);
|
|
13573
|
+
let me = K((e, t) => {
|
|
13574
13574
|
d.current?.(e), u(e), g.current && clearTimeout(g.current), t || (g.current = setTimeout(() => u(null), Lw));
|
|
13575
|
-
}, [u]),
|
|
13575
|
+
}, [u]), R = K((e) => {
|
|
13576
13576
|
let t = j.current.some((t) => t.id === e), n = N.current;
|
|
13577
|
-
!t && n ? n(e).then(() =>
|
|
13578
|
-
}, [
|
|
13577
|
+
!t && n ? n(e).then(() => me(e, !1)) : me(e, !1);
|
|
13578
|
+
}, [me]), he = K((e, t = P.current) => {
|
|
13579
13579
|
let n = t[e];
|
|
13580
13580
|
if (n == null) return;
|
|
13581
13581
|
O(e);
|
|
13582
|
-
let r = () =>
|
|
13582
|
+
let r = () => me(n, !0), i = N.current;
|
|
13583
13583
|
i ? i(n).then(r) : r();
|
|
13584
|
-
}, [
|
|
13584
|
+
}, [me]);
|
|
13585
13585
|
q(() => {
|
|
13586
13586
|
if (!x) return;
|
|
13587
13587
|
let e = C.trim();
|
|
@@ -13622,39 +13622,39 @@ var TC = ({ keys: e, label: t }) => /* @__PURE__ */ $("span", {
|
|
|
13622
13622
|
let e = P.current;
|
|
13623
13623
|
e.length !== 0 && (o.onSearchResultNavigated({ direction: "prev" }), he((F.current - 1 + e.length) % e.length, e));
|
|
13624
13624
|
}, [he, o]), be = T.length, xe = D >= 0 ? D + 1 : 0, Se = J(() => ({
|
|
13625
|
-
jumpToMessage:
|
|
13625
|
+
jumpToMessage: R,
|
|
13626
13626
|
registerScrollToMessage: te
|
|
13627
|
-
}), [
|
|
13628
|
-
startReply:
|
|
13629
|
-
startEdit:
|
|
13630
|
-
clearComposeTarget:
|
|
13631
|
-
registerComposerHandle:
|
|
13627
|
+
}), [R, te]), Ce = J(() => ({ target: s }), [s]), we = J(() => ({
|
|
13628
|
+
startReply: ue,
|
|
13629
|
+
startEdit: de,
|
|
13630
|
+
clearComposeTarget: fe,
|
|
13631
|
+
registerComposerHandle: ce
|
|
13632
13632
|
}), [
|
|
13633
|
-
le,
|
|
13634
13633
|
ue,
|
|
13635
13634
|
de,
|
|
13636
|
-
|
|
13635
|
+
fe,
|
|
13636
|
+
ce
|
|
13637
13637
|
]), Te = J(() => ({
|
|
13638
13638
|
registerFileDropHandler: ne,
|
|
13639
13639
|
dropFiles: re
|
|
13640
13640
|
}), [ne, re]), Ee = J(() => ({
|
|
13641
13641
|
imagePreview: _,
|
|
13642
13642
|
openImagePreview: ie,
|
|
13643
|
-
closeImagePreview:
|
|
13644
|
-
setImagePreviewIndex:
|
|
13643
|
+
closeImagePreview: ae,
|
|
13644
|
+
setImagePreviewIndex: L
|
|
13645
13645
|
}), [
|
|
13646
13646
|
_,
|
|
13647
13647
|
ie,
|
|
13648
|
-
|
|
13649
|
-
|
|
13648
|
+
ae,
|
|
13649
|
+
L
|
|
13650
13650
|
]), De = J(() => ({
|
|
13651
13651
|
documentPreview: y,
|
|
13652
|
-
openDocumentPreview:
|
|
13653
|
-
closeDocumentPreview:
|
|
13652
|
+
openDocumentPreview: oe,
|
|
13653
|
+
closeDocumentPreview: se
|
|
13654
13654
|
}), [
|
|
13655
13655
|
y,
|
|
13656
|
-
|
|
13657
|
-
|
|
13656
|
+
oe,
|
|
13657
|
+
se
|
|
13658
13658
|
]), Oe = J(() => ({
|
|
13659
13659
|
searchOpen: x,
|
|
13660
13660
|
openSearch: ge,
|
|
@@ -14239,7 +14239,7 @@ var Jw = () => qw(Rw, "useChatJump"), Yw = (e) => {
|
|
|
14239
14239
|
description: e.description,
|
|
14240
14240
|
children: /* @__PURE__ */ $("div", {
|
|
14241
14241
|
className: "flex flex-wrap items-center gap-2 pt-1 justify-between",
|
|
14242
|
-
children: [/* @__PURE__ */ Q(
|
|
14242
|
+
children: [/* @__PURE__ */ Q(A, {
|
|
14243
14243
|
...e.action,
|
|
14244
14244
|
variant: e.action.variant ?? "outlinePromote",
|
|
14245
14245
|
size: e.action.size ?? "md"
|
|
@@ -16643,7 +16643,7 @@ var yk = (e) => {
|
|
|
16643
16643
|
};
|
|
16644
16644
|
}, [e]), t;
|
|
16645
16645
|
}, Lk = ({ voice: e, isMine: t = !1, cornerClass: n = "rounded-xl", className: r, surfaceClassName: i }) => {
|
|
16646
|
-
let a = U(), o = Y(null), s =
|
|
16646
|
+
let a = U(), o = Y(null), s = Ft(o), c = Ik(e.url), [l, u] = X(0), d = Y(null), f = Hc(), p = vk(), m = Wc(), h = s.duration > 0 ? s.duration : e.durationSeconds ?? 0, g = h > 0 ? Math.min(1, s.currentTime / h) : 0, _ = K(() => {
|
|
16647
16647
|
s.isPlaying ? s.pause() : (p === "transcript" && !m.hasReported(e.url) && (m.markReported(e.url), f.onVoiceNotePlayed({ durationSeconds: e.durationSeconds })), h > 0 && s.currentTime >= h && s.seek(0), s.play());
|
|
16648
16648
|
}, [
|
|
16649
16649
|
s,
|
|
@@ -17624,8 +17624,8 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17624
17624
|
signature: aj(o),
|
|
17625
17625
|
size: i
|
|
17626
17626
|
}), i;
|
|
17627
|
-
}, [t]), ne = K((t) => e[t]?.key ?? t, [e]), re = Y(/* @__PURE__ */ new Set()), [ie,
|
|
17628
|
-
let t =
|
|
17627
|
+
}, [t]), ne = K((t) => e[t]?.key ?? t, [e]), re = Y(/* @__PURE__ */ new Set()), [ie, ae] = X(0), L = Y(null), oe = K((e) => {
|
|
17628
|
+
let t = L.current, n = ms(e);
|
|
17629
17629
|
if (!t) return n;
|
|
17630
17630
|
let r = t.measurementsCache, i = t.scrollRect?.height ?? 0, a = r[e.startIndex]?.start ?? 0, o = r[e.endIndex]?.end ?? 0, s = e.startIndex;
|
|
17631
17631
|
for (; s > 0 && a - (r[s - 1]?.start ?? 0) < bj;) --s;
|
|
@@ -17636,31 +17636,31 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17636
17636
|
return n.forEach((e) => u.add(e)), re.current.size > 0 && C.current.forEach((e, t) => {
|
|
17637
17637
|
re.current.has(e.key) && u.add(t);
|
|
17638
17638
|
}), [...u].sort((e, t) => e - t);
|
|
17639
|
-
}, [ie]),
|
|
17639
|
+
}, [ie]), se = K(() => {
|
|
17640
17640
|
if (n.kind !== "end") return 0;
|
|
17641
17641
|
let e = 0;
|
|
17642
17642
|
for (let t = 0; t < C.current.length; t++) e += ee(t);
|
|
17643
17643
|
return e;
|
|
17644
|
-
}, []),
|
|
17645
|
-
|
|
17646
|
-
let
|
|
17647
|
-
let t = x.current, n = t ? Number.parseFloat(getComputedStyle(t).getPropertyValue(CA)) : 0, r = 88 + (Number.isFinite(n) ? n : 0), i = e === "center" ? (r -
|
|
17648
|
-
|
|
17649
|
-
let a =
|
|
17644
|
+
}, []), ce = Y(88), le = Y(v);
|
|
17645
|
+
le.current = v;
|
|
17646
|
+
let ue = K((e = "start") => {
|
|
17647
|
+
let t = x.current, n = t ? Number.parseFloat(getComputedStyle(t).getPropertyValue(CA)) : 0, r = 88 + (Number.isFinite(n) ? n : 0), i = e === "center" ? (r - le.current) / 2 : r;
|
|
17648
|
+
ce.current = i;
|
|
17649
|
+
let a = L.current;
|
|
17650
17650
|
return a && (a.options.scrollPaddingStart = i), r;
|
|
17651
|
-
}, []),
|
|
17651
|
+
}, []), de = ss({
|
|
17652
17652
|
count: e.length,
|
|
17653
17653
|
getScrollElement: () => y,
|
|
17654
17654
|
estimateSize: ee,
|
|
17655
17655
|
getItemKey: ne,
|
|
17656
17656
|
measureElement: te,
|
|
17657
|
-
rangeExtractor:
|
|
17658
|
-
initialOffset:
|
|
17657
|
+
rangeExtractor: oe,
|
|
17658
|
+
initialOffset: se,
|
|
17659
17659
|
scrollToFn: P,
|
|
17660
17660
|
overscan: 4,
|
|
17661
17661
|
paddingStart: 8,
|
|
17662
17662
|
paddingEnd: v,
|
|
17663
|
-
scrollPaddingStart:
|
|
17663
|
+
scrollPaddingStart: ce.current,
|
|
17664
17664
|
scrollPaddingEnd: v,
|
|
17665
17665
|
anchorTo: "end",
|
|
17666
17666
|
followOnAppend: !1,
|
|
@@ -17673,13 +17673,13 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17673
17673
|
t && t.scrollHeight <= t.clientHeight && (e.scrollOffset ?? 0) > 0 && (e.scrollOffset = 0), Se();
|
|
17674
17674
|
}
|
|
17675
17675
|
});
|
|
17676
|
-
|
|
17677
|
-
let
|
|
17678
|
-
|
|
17679
|
-
let r = (n.scrollOffset ?? 0) + n.scrollAdjustments, i = C.current[e.index], a = i ? JSON.stringify(YT(i) ?? null) : "", o =
|
|
17680
|
-
return
|
|
17676
|
+
L.current = de;
|
|
17677
|
+
let fe = Y(/* @__PURE__ */ new Map());
|
|
17678
|
+
de.shouldAdjustScrollPositionOnItemSizeChange = (e, t, n) => {
|
|
17679
|
+
let r = (n.scrollOffset ?? 0) + n.scrollAdjustments, i = C.current[e.index], a = i ? JSON.stringify(YT(i) ?? null) : "", o = fe.current.get(String(e.key));
|
|
17680
|
+
return fe.current.set(String(e.key), a), e.end <= r ? !0 : e.start >= r ? !1 : !n.itemSizeCache.has(e.key) || o !== void 0 && o !== a;
|
|
17681
17681
|
};
|
|
17682
|
-
let
|
|
17682
|
+
let pe = Y(null), me = Y(null), R = Y(w), he = Y(!0), ge = Y(!1), _e = Y({
|
|
17683
17683
|
hasMoreOlder: r,
|
|
17684
17684
|
loadingOlder: i,
|
|
17685
17685
|
loadOlder: a,
|
|
@@ -17715,14 +17715,14 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17715
17715
|
onSeenRowIndex: p
|
|
17716
17716
|
};
|
|
17717
17717
|
let xe = K(() => {
|
|
17718
|
-
let e =
|
|
17718
|
+
let e = L.current, t = x.current;
|
|
17719
17719
|
if (!e || !t) return;
|
|
17720
17720
|
let n = t.clientHeight;
|
|
17721
17721
|
if (n === 0) return;
|
|
17722
|
-
let r = t.scrollTop, i = Math.max(0, t.scrollHeight - r - n), a =
|
|
17723
|
-
|
|
17722
|
+
let r = t.scrollTop, i = Math.max(0, t.scrollHeight - r - n), a = me.current !== null && r < me.current;
|
|
17723
|
+
me.current = r;
|
|
17724
17724
|
let o = i <= gj;
|
|
17725
|
-
o !==
|
|
17725
|
+
o !== R.current && (R.current = o, be.current.onAtBottomChange(o));
|
|
17726
17726
|
let s = r <= 1;
|
|
17727
17727
|
s !== he.current && (he.current = s, be.current.onAtTopChange(s));
|
|
17728
17728
|
let c = e.getVirtualItems(), l = e.getVirtualItemForOffset(r);
|
|
@@ -17748,8 +17748,8 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17748
17748
|
h,
|
|
17749
17749
|
u
|
|
17750
17750
|
]), Se = K(() => {
|
|
17751
|
-
|
|
17752
|
-
|
|
17751
|
+
pe.current === null && typeof window < "u" && (pe.current = window.requestAnimationFrame(() => {
|
|
17752
|
+
pe.current = null, xe();
|
|
17753
17753
|
}));
|
|
17754
17754
|
}, [xe]), Ce = J(() => fj(() => S.current, () => Math.min(bj, (x.current?.clientHeight ?? 0) * 1.5), () => S.current?.parentElement ?? null), []), we = Y(null), Te = Y(() => {}), Ee = Y(null), De = Y(!1), Oe = Y(null), ke = (e) => e.scrollHeight - e.scrollTop - e.clientHeight <= vj, Ae = (e) => !_e.current.hasMoreNewer && ke(e), je = (e) => N.current === null && Ae(e), Me = K(() => {
|
|
17755
17755
|
let e = x.current;
|
|
@@ -17764,7 +17764,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17764
17764
|
let o = r !== null && n < r.height;
|
|
17765
17765
|
!a && !o && r !== null && t < r.top - 1 && j(!1), a || Te.current(), je(e) && j(!0), Se();
|
|
17766
17766
|
}, [Se, j]), Ne = K(() => {
|
|
17767
|
-
M.current = null, N.current = null, Je.current = performance.now(),
|
|
17767
|
+
M.current = null, N.current = null, Je.current = performance.now(), L.current && kj(L.current), g.current && _();
|
|
17768
17768
|
}, [g, _]), Pe = K((e) => {
|
|
17769
17769
|
if (!(e.deltaY === 0 || e.ctrlKey || Math.abs(e.deltaX) > Math.abs(e.deltaY)) && (Ne(), Se(), e.deltaY < 0)) {
|
|
17770
17770
|
Ce.handoff(), j(!1), Ee.current !== null && window.clearTimeout(Ee.current);
|
|
@@ -17808,7 +17808,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17808
17808
|
t !== F.current && (F.current = t, I.current.clear());
|
|
17809
17809
|
let i = n(), a = i - r;
|
|
17810
17810
|
r = i;
|
|
17811
|
-
let o =
|
|
17811
|
+
let o = L.current;
|
|
17812
17812
|
T.current && !g.current ? o?.scrollToEnd() : o && Math.abs(a) >= .5 && (o.scrollBy(a), Te.current()), Se();
|
|
17813
17813
|
});
|
|
17814
17814
|
return i.observe(e), () => i.disconnect();
|
|
@@ -17817,12 +17817,12 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17817
17817
|
Se,
|
|
17818
17818
|
y
|
|
17819
17819
|
]), q(() => () => {
|
|
17820
|
-
|
|
17820
|
+
pe.current !== null && cancelAnimationFrame(pe.current), Ee.current !== null && window.clearTimeout(Ee.current), Oe.current !== null && window.clearTimeout(Oe.current), Ce.stop(), Re(null);
|
|
17821
17821
|
}, []);
|
|
17822
17822
|
let ze = Y(!1), Be = Y(null), Ve = K((e) => C.current.findIndex((t) => t.key === e), []), He = K((e, t) => {
|
|
17823
17823
|
let n = performance.now(), r = 0, i = NaN, a = null, o = () => {
|
|
17824
17824
|
a = null;
|
|
17825
|
-
let s = x.current, c =
|
|
17825
|
+
let s = x.current, c = L.current;
|
|
17826
17826
|
if (!s || !c) {
|
|
17827
17827
|
t();
|
|
17828
17828
|
return;
|
|
@@ -17841,10 +17841,10 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17841
17841
|
a !== null && cancelAnimationFrame(a), e.kind === "key" && N.current?.key === e.key && (N.current = null);
|
|
17842
17842
|
};
|
|
17843
17843
|
}, [Ve]), Ue = K((e, t) => {
|
|
17844
|
-
let n =
|
|
17844
|
+
let n = L.current, r = x.current, i = Ve(e);
|
|
17845
17845
|
if (!n || i < 0) return !1;
|
|
17846
|
-
let a = oE(n.measurementsCache[i]?.size ?? 0, r?.clientHeight ?? 0,
|
|
17847
|
-
return
|
|
17846
|
+
let a = oE(n.measurementsCache[i]?.size ?? 0, r?.clientHeight ?? 0, ue() + v);
|
|
17847
|
+
return ue(a), j(!1), N.current = {
|
|
17848
17848
|
key: e,
|
|
17849
17849
|
index: i,
|
|
17850
17850
|
align: a,
|
|
@@ -17856,15 +17856,15 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17856
17856
|
}, [
|
|
17857
17857
|
Ve,
|
|
17858
17858
|
v,
|
|
17859
|
-
|
|
17859
|
+
ue,
|
|
17860
17860
|
j
|
|
17861
17861
|
]), We = K(() => {
|
|
17862
|
-
N.current = null, j(!0),
|
|
17862
|
+
N.current = null, j(!0), L.current?.scrollToEnd();
|
|
17863
17863
|
}, [j]);
|
|
17864
17864
|
ml(() => {
|
|
17865
17865
|
if (ze.current || !y || e.length === 0) return;
|
|
17866
17866
|
ze.current = !0;
|
|
17867
|
-
let t =
|
|
17867
|
+
let t = L.current;
|
|
17868
17868
|
if (!t) return;
|
|
17869
17869
|
let r = { kind: "end" };
|
|
17870
17870
|
if (n.kind === "end") t.scrollToEnd();
|
|
@@ -17875,8 +17875,8 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17875
17875
|
else {
|
|
17876
17876
|
let e = Ve(n.key);
|
|
17877
17877
|
if (e >= 0) {
|
|
17878
|
-
let i = n.align === "center" ? oE(t.measurementsCache[e]?.size ?? 0, y.clientHeight,
|
|
17879
|
-
|
|
17878
|
+
let i = n.align === "center" ? oE(t.measurementsCache[e]?.size ?? 0, y.clientHeight, ue() + v) : n.align;
|
|
17879
|
+
ue(i), N.current = {
|
|
17880
17880
|
key: n.key,
|
|
17881
17881
|
index: e,
|
|
17882
17882
|
align: i,
|
|
@@ -17897,7 +17897,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17897
17897
|
let r = n.querySelector(Aj(e));
|
|
17898
17898
|
return r ? r.getBoundingClientRect().top - t.getBoundingClientRect().top - Ce.offset() : null;
|
|
17899
17899
|
}, [Ce]), qe = K(() => {
|
|
17900
|
-
let e =
|
|
17900
|
+
let e = L.current, t = x.current, n = C.current, r;
|
|
17901
17901
|
if (e && t) {
|
|
17902
17902
|
let i = T.current ? t.scrollTop : t.scrollTop + t.clientHeight * Ej, a = e.getVirtualItemForOffset(i);
|
|
17903
17903
|
for (let e = a?.index ?? 0; e < n.length && !r; e++) WT(n[e]) !== null && (r = n[e]);
|
|
@@ -17912,7 +17912,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17912
17912
|
Te.current = qe;
|
|
17913
17913
|
}, [qe]);
|
|
17914
17914
|
let Je = Y(0), Ye = K(() => {
|
|
17915
|
-
let e =
|
|
17915
|
+
let e = L.current, t = Ge.current, n = x.current;
|
|
17916
17916
|
if (n && !T.current && h.current && !g.current && performance.now() - Je.current > Dj && je(n) && j(!0), e && t && h.current && !g.current && performance.now() - Je.current > Dj) {
|
|
17917
17917
|
let n = Ke(t.key);
|
|
17918
17918
|
if (n !== null) {
|
|
@@ -17931,7 +17931,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17931
17931
|
j
|
|
17932
17932
|
]);
|
|
17933
17933
|
ml(() => {
|
|
17934
|
-
let e =
|
|
17934
|
+
let e = L.current, t = x.current;
|
|
17935
17935
|
if (!e || !t || !ze.current) return;
|
|
17936
17936
|
let n = N.current;
|
|
17937
17937
|
if (n) {
|
|
@@ -17947,7 +17947,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17947
17947
|
scrollToKey: Ue,
|
|
17948
17948
|
scrollToEnd: We,
|
|
17949
17949
|
topVisibleIndex: () => {
|
|
17950
|
-
let e =
|
|
17950
|
+
let e = L.current, t = x.current;
|
|
17951
17951
|
return !e || !t ? null : e.getVirtualItemForOffset(t.scrollTop)?.index ?? null;
|
|
17952
17952
|
},
|
|
17953
17953
|
watchLanding: He,
|
|
@@ -17961,20 +17961,20 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
17961
17961
|
j,
|
|
17962
17962
|
He
|
|
17963
17963
|
]), Ze = K((e) => {
|
|
17964
|
-
let t =
|
|
17964
|
+
let t = L.current;
|
|
17965
17965
|
if (!t || (t.measureElement(e), !e || !e.isConnected)) return;
|
|
17966
17966
|
let n = Number(e.dataset.index), r = e.dataset.chatRowKey;
|
|
17967
17967
|
if (Number.isNaN(n) || !r || t.itemSizeCache.has(r)) return;
|
|
17968
17968
|
let i = Math.round(e.offsetHeight);
|
|
17969
17969
|
i > 0 && t.resizeItem(n, i);
|
|
17970
17970
|
}, []), Qe = K((e) => {
|
|
17971
|
-
S.current = e,
|
|
17972
|
-
}, [
|
|
17971
|
+
S.current = e, de.containerRef(e);
|
|
17972
|
+
}, [de]), $e = Y(/* @__PURE__ */ new Map()), et = K((e, t) => {
|
|
17973
17973
|
let n = $e.current.get(e), r = new Set(t);
|
|
17974
17974
|
if (n && n.size === r.size && [...r].every((e) => n.has(e))) return;
|
|
17975
17975
|
$e.current.set(e, r);
|
|
17976
17976
|
let i = /* @__PURE__ */ new Set();
|
|
17977
|
-
$e.current.forEach((e) => e.forEach((e) => i.add(e))), re.current = i,
|
|
17977
|
+
$e.current.forEach((e) => e.forEach((e) => i.add(e))), re.current = i, ae((e) => e + 1);
|
|
17978
17978
|
}, []);
|
|
17979
17979
|
return q(() => {
|
|
17980
17980
|
let e = () => {
|
|
@@ -18021,7 +18021,7 @@ function jj({ rows: e, conversationKey: t, entry: n, hasMoreOlder: r, loadingOld
|
|
|
18021
18021
|
et,
|
|
18022
18022
|
Ne
|
|
18023
18023
|
]), {
|
|
18024
|
-
virtualizer:
|
|
18024
|
+
virtualizer: de,
|
|
18025
18025
|
setScrollElement: Re,
|
|
18026
18026
|
setSizerElement: Qe,
|
|
18027
18027
|
measureRow: Ze,
|
|
@@ -18269,54 +18269,54 @@ var Mj = ({ channel: e }) => {
|
|
|
18269
18269
|
t.memberCount
|
|
18270
18270
|
]), I = Y(F);
|
|
18271
18271
|
I.current = F;
|
|
18272
|
-
let [ee] = X(eE), [te, ne] = X(null), [re, ie] = X(null),
|
|
18272
|
+
let [ee] = X(eE), [te, ne] = X(null), [re, ie] = X(null), ae = Y(!1), L = QT({
|
|
18273
18273
|
enabled: _,
|
|
18274
18274
|
rows: F,
|
|
18275
|
-
readyRef:
|
|
18275
|
+
readyRef: ae,
|
|
18276
18276
|
markRead: d
|
|
18277
|
-
}), { ready:
|
|
18278
|
-
|
|
18279
|
-
let
|
|
18277
|
+
}), { ready: oe, setViewport: se, markLanded: ce } = IT(D);
|
|
18278
|
+
ae.current = oe;
|
|
18279
|
+
let le = Y(null);
|
|
18280
18280
|
q(() => {
|
|
18281
|
-
|
|
18282
|
-
}, [
|
|
18283
|
-
let
|
|
18284
|
-
|
|
18281
|
+
oe && le.current?.refresh();
|
|
18282
|
+
}, [oe]);
|
|
18283
|
+
let ue = Y(!1), [de, fe] = X(!1), pe = Y(0), me = Y(null), R = Y(null), he = Y(null), ge = K(() => {
|
|
18284
|
+
me.current?.(), me.current = null, ue.current = !1, fe(!1);
|
|
18285
18285
|
}, []), _e = K(() => {
|
|
18286
|
-
|
|
18286
|
+
pe.current += 1, ge();
|
|
18287
18287
|
}, [ge]), ve = K(() => {
|
|
18288
|
-
|
|
18288
|
+
R.current = null, he.current !== null && (clearTimeout(he.current), he.current = null);
|
|
18289
18289
|
}, []), ye = K((e) => {
|
|
18290
|
-
ve(),
|
|
18291
|
-
|
|
18290
|
+
ve(), R.current = e, he.current = setTimeout(() => {
|
|
18291
|
+
R.current = null, he.current = null;
|
|
18292
18292
|
}, zj);
|
|
18293
18293
|
}, [ve]), be = K((e) => {
|
|
18294
18294
|
_e();
|
|
18295
|
-
let t =
|
|
18295
|
+
let t = pe.current, n = () => pe.current === t, r = le.current;
|
|
18296
18296
|
if (!r) return;
|
|
18297
18297
|
let i = I.current, a = e.kind === "end" ? i.length - 1 : i.findIndex((t) => t.key === e.key);
|
|
18298
18298
|
if (a < 0) return;
|
|
18299
|
-
let o = !
|
|
18299
|
+
let o = !ae.current, s = cE({
|
|
18300
18300
|
from: o ? null : r.topVisibleIndex(),
|
|
18301
18301
|
to: a,
|
|
18302
18302
|
rowCount: i.length
|
|
18303
18303
|
}), c = (t) => {
|
|
18304
|
-
let r =
|
|
18305
|
-
r && n() && (e.kind === "end" ? r.scrollToEnd() : r.scrollToKey(e.key, t),
|
|
18306
|
-
n() && (e.kind === "end" && r.resumeFollowing(), o &&
|
|
18304
|
+
let r = le.current;
|
|
18305
|
+
r && n() && (e.kind === "end" ? r.scrollToEnd() : r.scrollToKey(e.key, t), me.current = r.watchLanding(e, () => {
|
|
18306
|
+
n() && (e.kind === "end" && r.resumeFollowing(), o && ce(), ge());
|
|
18307
18307
|
}));
|
|
18308
18308
|
};
|
|
18309
|
-
if (
|
|
18309
|
+
if (ue.current = !0, s.kind !== "teleport" || p) {
|
|
18310
18310
|
c(s.kind === "smooth" && !p && e.kind === "key" ? "smooth" : "auto");
|
|
18311
18311
|
return;
|
|
18312
18312
|
}
|
|
18313
|
-
|
|
18313
|
+
fe(!0);
|
|
18314
18314
|
let l = setTimeout(() => c("auto"), Rj);
|
|
18315
|
-
|
|
18315
|
+
me.current = () => clearTimeout(l);
|
|
18316
18316
|
}, [
|
|
18317
18317
|
_e,
|
|
18318
18318
|
ge,
|
|
18319
|
-
|
|
18319
|
+
ce,
|
|
18320
18320
|
p
|
|
18321
18321
|
]), xe = K((e) => {
|
|
18322
18322
|
I.current.some((t) => t.key === e) ? (ve(), be({
|
|
@@ -18335,7 +18335,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18335
18335
|
q(() => {
|
|
18336
18336
|
v(xe);
|
|
18337
18337
|
}, [v, xe]), q(() => {
|
|
18338
|
-
let e = uE(
|
|
18338
|
+
let e = uE(R.current, {
|
|
18339
18339
|
rowKeys: F.map((e) => e.key),
|
|
18340
18340
|
hasMoreNewer: a ?? !1
|
|
18341
18341
|
});
|
|
@@ -18357,7 +18357,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18357
18357
|
be
|
|
18358
18358
|
]);
|
|
18359
18359
|
ml(() => {
|
|
18360
|
-
j.current && (j.current = !1,
|
|
18360
|
+
j.current && (j.current = !1, le.current && !le.current.isFollowing() && Se());
|
|
18361
18361
|
});
|
|
18362
18362
|
let Ce = Y(() => {});
|
|
18363
18363
|
Ce.current = () => {
|
|
@@ -18367,7 +18367,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18367
18367
|
}), [t.id]);
|
|
18368
18368
|
let we = Y(null);
|
|
18369
18369
|
if (we.current?.key !== D) {
|
|
18370
|
-
let e =
|
|
18370
|
+
let e = R.current, t;
|
|
18371
18371
|
e?.kind === "bottom" ? (t = { kind: "end" }, ve()) : (t = aE({
|
|
18372
18372
|
pendingKey: e?.kind === "key" ? e.key : null,
|
|
18373
18373
|
rows: F,
|
|
@@ -18390,7 +18390,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18390
18390
|
let e = () => je(document.hidden);
|
|
18391
18391
|
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
|
|
18392
18392
|
}, []);
|
|
18393
|
-
let Me =
|
|
18393
|
+
let Me = oe && Ee && (y || x) && !Ae;
|
|
18394
18394
|
q(() => {
|
|
18395
18395
|
_ || Me && l > 0 && d?.();
|
|
18396
18396
|
}, [
|
|
@@ -18406,11 +18406,11 @@ var Mj = ({ channel: e }) => {
|
|
|
18406
18406
|
}) : null : /* @__PURE__ */ Q(bA, {
|
|
18407
18407
|
row: e,
|
|
18408
18408
|
isGroup: g
|
|
18409
|
-
}), [f, g]), Pe = K((e) =>
|
|
18409
|
+
}), [f, g]), Pe = K((e) => se(e), [se]);
|
|
18410
18410
|
return /* @__PURE__ */ $("div", {
|
|
18411
18411
|
ref: Pe,
|
|
18412
18412
|
className: "scrollbar-macos relative min-h-0 flex-1",
|
|
18413
|
-
"aria-busy": !
|
|
18413
|
+
"aria-busy": !oe,
|
|
18414
18414
|
onMouseEnter: () => b(!0),
|
|
18415
18415
|
onMouseLeave: () => b(!1),
|
|
18416
18416
|
onFocus: () => S(!0),
|
|
@@ -18419,7 +18419,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18419
18419
|
},
|
|
18420
18420
|
children: [/* @__PURE__ */ Q("div", {
|
|
18421
18421
|
"data-chat-transcript": "",
|
|
18422
|
-
className: W("size-full", !p && "transition-opacity duration-100",
|
|
18422
|
+
className: W("size-full", !p && "transition-opacity duration-100", oe ? "visible" : "invisible", oe && !de ? "opacity-100" : "opacity-0", !oe && "pointer-events-none"),
|
|
18423
18423
|
children: /* @__PURE__ */ Q(Pj, {
|
|
18424
18424
|
rows: F,
|
|
18425
18425
|
conversationKey: t.id,
|
|
@@ -18435,15 +18435,15 @@ var Mj = ({ channel: e }) => {
|
|
|
18435
18435
|
viewportStore: ee,
|
|
18436
18436
|
onAtBottomChange: Oe,
|
|
18437
18437
|
onAtTopChange: ke,
|
|
18438
|
-
onSeenRowIndex:
|
|
18439
|
-
onLanded:
|
|
18440
|
-
readyRef:
|
|
18441
|
-
jumpActiveRef:
|
|
18438
|
+
onSeenRowIndex: L,
|
|
18439
|
+
onLanded: ce,
|
|
18440
|
+
readyRef: ae,
|
|
18441
|
+
jumpActiveRef: ue,
|
|
18442
18442
|
onUserTakeover: _e,
|
|
18443
|
-
handleRef:
|
|
18443
|
+
handleRef: le,
|
|
18444
18444
|
renderRow: Ne
|
|
18445
18445
|
}, D)
|
|
18446
|
-
}),
|
|
18446
|
+
}), oe ? /* @__PURE__ */ Q(Lj, {
|
|
18447
18447
|
atTop: De,
|
|
18448
18448
|
viewportStore: ee,
|
|
18449
18449
|
rows: F,
|
|
@@ -18456,7 +18456,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18456
18456
|
onJumpToBottom: Se
|
|
18457
18457
|
}) : null]
|
|
18458
18458
|
});
|
|
18459
|
-
}, Hj = ll(() => import("./ChatPostComposerDialog-
|
|
18459
|
+
}, Hj = ll(() => import("./ChatPostComposerDialog-Dy9Bc6xI.js").then((e) => ({ default: e.ChatPostComposerDialog }))), Uj = () => {
|
|
18460
18460
|
let e = U(), { createPost: t, composePost: n, searchMembers: r } = el(), i = Hc(), [a, o] = X(!1);
|
|
18461
18461
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
18462
18462
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -18606,7 +18606,7 @@ var Mj = ({ channel: e }) => {
|
|
|
18606
18606
|
let e = U();
|
|
18607
18607
|
return /* @__PURE__ */ Q("div", {
|
|
18608
18608
|
className: "flex h-full flex-1 items-center justify-center p-6",
|
|
18609
|
-
children: /* @__PURE__ */ Q(
|
|
18609
|
+
children: /* @__PURE__ */ Q(S, {
|
|
18610
18610
|
emoji: "💬",
|
|
18611
18611
|
title: e.chat.emptyConversation,
|
|
18612
18612
|
description: e.chat.emptyConversationDescription
|
|
@@ -19185,7 +19185,7 @@ var yM = {
|
|
|
19185
19185
|
]), ie = uM({
|
|
19186
19186
|
searchMembers: d,
|
|
19187
19187
|
everyoneLabel: u.type === "group" ? e.chat.mentionEveryone : void 0
|
|
19188
|
-
}),
|
|
19188
|
+
}), ae = K(({ mentions: t, mentionedEveryone: n }) => [...(t ?? []).map((e) => cM({
|
|
19189
19189
|
id: e.id,
|
|
19190
19190
|
name: e.name,
|
|
19191
19191
|
avatar: e.avatar,
|
|
@@ -19194,34 +19194,34 @@ var yM = {
|
|
|
19194
19194
|
})), ...n && u.type === "group" ? [cM({
|
|
19195
19195
|
id: iM,
|
|
19196
19196
|
name: e.chat.mentionEveryone
|
|
19197
|
-
})] : []], [u.type, e.chat.mentionEveryone]),
|
|
19197
|
+
})] : []], [u.type, e.chat.mentionEveryone]), L = xM({
|
|
19198
19198
|
getComposer: K(() => S.current, []),
|
|
19199
19199
|
isEditing: M,
|
|
19200
|
-
toComposerMentions:
|
|
19201
|
-
}),
|
|
19202
|
-
|
|
19200
|
+
toComposerMentions: ae
|
|
19201
|
+
}), oe = K((e) => {
|
|
19202
|
+
L.noteTextChange(), r(), e.trim().length === 0 && i?.();
|
|
19203
19203
|
}, [
|
|
19204
|
-
|
|
19204
|
+
L,
|
|
19205
19205
|
r,
|
|
19206
19206
|
i
|
|
19207
19207
|
]);
|
|
19208
19208
|
q(() => () => {
|
|
19209
19209
|
i?.();
|
|
19210
19210
|
}, [i]);
|
|
19211
|
-
let
|
|
19211
|
+
let se = K((e) => {
|
|
19212
19212
|
D.current.delete(e) && URL.revokeObjectURL(e);
|
|
19213
19213
|
}, []);
|
|
19214
19214
|
q(() => () => {
|
|
19215
19215
|
for (let e of D.current) URL.revokeObjectURL(e);
|
|
19216
19216
|
D.current.clear();
|
|
19217
19217
|
}, []);
|
|
19218
|
-
let
|
|
19218
|
+
let ce = C.some((e) => e.status === "uploading"), le = J(() => [...C.filter(TM), ...C.filter((e) => !TM(e))], [C]), ue = Y(0);
|
|
19219
19219
|
q(() => {
|
|
19220
|
-
|
|
19220
|
+
ue.current = C.length;
|
|
19221
19221
|
}, [C]);
|
|
19222
|
-
let
|
|
19222
|
+
let de = K(async (t, n) => {
|
|
19223
19223
|
if (t.length === 0 || !a || !p) return;
|
|
19224
|
-
if (j(), s !== void 0 &&
|
|
19224
|
+
if (j(), s !== void 0 && ue.current + t.length > s) {
|
|
19225
19225
|
A(e.chat.tooManyFilesError.replace("{{maxFiles}}", String(s)));
|
|
19226
19226
|
return;
|
|
19227
19227
|
}
|
|
@@ -19257,10 +19257,10 @@ var yM = {
|
|
|
19257
19257
|
return t ? [t] : [];
|
|
19258
19258
|
});
|
|
19259
19259
|
});
|
|
19260
|
-
for (let e of r)
|
|
19260
|
+
for (let e of r) se(e.attachment.url);
|
|
19261
19261
|
} catch {
|
|
19262
19262
|
w((e) => e.filter((e) => !i.has(e.id)));
|
|
19263
|
-
for (let e of r)
|
|
19263
|
+
for (let e of r) se(e.attachment.url);
|
|
19264
19264
|
A(e.chat.fileUploadError);
|
|
19265
19265
|
}
|
|
19266
19266
|
}, [
|
|
@@ -19273,53 +19273,53 @@ var yM = {
|
|
|
19273
19273
|
e.chat.tooManyFilesError,
|
|
19274
19274
|
e.chat.fileTooLargeError,
|
|
19275
19275
|
e.chat.fileUploadError,
|
|
19276
|
-
|
|
19276
|
+
se,
|
|
19277
19277
|
y
|
|
19278
|
-
]),
|
|
19278
|
+
]), fe = K((e) => {
|
|
19279
19279
|
let t = C.find((t) => t.id === e), n = t?.attachment;
|
|
19280
19280
|
n && n.kind !== "voice" && n.kind !== "location" && y.onAttachmentRemoved({ kind: Mw(n) });
|
|
19281
19281
|
let r = C.some((t) => t.id !== e);
|
|
19282
|
-
t?.status === "uploading" &&
|
|
19282
|
+
t?.status === "uploading" && se(t.attachment.url), w((t) => t.filter((t) => t.id !== e)), requestAnimationFrame(() => {
|
|
19283
19283
|
r ? E.current?.focus() : S.current?.focus();
|
|
19284
19284
|
});
|
|
19285
19285
|
}, [
|
|
19286
19286
|
C,
|
|
19287
|
-
|
|
19287
|
+
se,
|
|
19288
19288
|
y
|
|
19289
|
-
]),
|
|
19290
|
-
for (let t of e) t.status === "uploading" &&
|
|
19291
|
-
}, [
|
|
19289
|
+
]), pe = K((e) => {
|
|
19290
|
+
for (let t of e) t.status === "uploading" && se(t.attachment.url);
|
|
19291
|
+
}, [se]);
|
|
19292
19292
|
q(() => {
|
|
19293
|
-
v((e) => void
|
|
19294
|
-
}, [v,
|
|
19295
|
-
let
|
|
19293
|
+
v((e) => void de(e, "drop"));
|
|
19294
|
+
}, [v, de]);
|
|
19295
|
+
let me = K((e) => void de(e, "paste"), [de]), R = K(() => {
|
|
19296
19296
|
let e = S.current;
|
|
19297
|
-
e?.cancelRecording(), e?.clear(),
|
|
19298
|
-
}, [
|
|
19299
|
-
w((t) => (
|
|
19297
|
+
e?.cancelRecording(), e?.clear(), pe(C), w([]), e?.breakHistory();
|
|
19298
|
+
}, [pe, C]), he = K((e) => {
|
|
19299
|
+
w((t) => (pe(t), (e.attachments ?? []).filter((e) => e.kind !== "card").map((e) => ({
|
|
19300
19300
|
id: `att-${O.current++}`,
|
|
19301
19301
|
status: "ready",
|
|
19302
19302
|
attachment: e
|
|
19303
19303
|
})))), S.current?.loadDraft({
|
|
19304
19304
|
value: e.body,
|
|
19305
|
-
mentions:
|
|
19305
|
+
mentions: ae(e)
|
|
19306
19306
|
});
|
|
19307
|
-
}, [
|
|
19307
|
+
}, [ae, pe]), ge = K((e, t) => {
|
|
19308
19308
|
let n = e.kind === "edit" && t.kind !== "edit", r = e.kind === "edit" && t.kind === "edit" && e.message.id === t.message.id;
|
|
19309
|
-
n && (
|
|
19309
|
+
n && (R(), L.restore({ cleared: !0 })), t.kind === "edit" && !r && (e.kind !== "edit" && L.flush(), he(t.message)), t.kind !== "none" && S.current?.focus({ preventScroll: !0 });
|
|
19310
19310
|
}, [
|
|
19311
|
-
|
|
19311
|
+
R,
|
|
19312
19312
|
he,
|
|
19313
|
-
|
|
19313
|
+
L
|
|
19314
19314
|
]), _e = J(() => ({
|
|
19315
19315
|
retarget: ge,
|
|
19316
19316
|
abandonDraft: () => {
|
|
19317
|
-
|
|
19317
|
+
R(), L.restore({ cleared: !0 });
|
|
19318
19318
|
}
|
|
19319
19319
|
}), [
|
|
19320
19320
|
ge,
|
|
19321
|
-
|
|
19322
|
-
|
|
19321
|
+
R,
|
|
19322
|
+
L
|
|
19323
19323
|
]);
|
|
19324
19324
|
q(function() {
|
|
19325
19325
|
return g(_e), () => g(null);
|
|
@@ -19347,7 +19347,7 @@ var yM = {
|
|
|
19347
19347
|
attachments: o.length > 0 ? o : void 0,
|
|
19348
19348
|
mentions: s.length > 0 ? s : void 0,
|
|
19349
19349
|
mentionedEveryone: c || void 0
|
|
19350
|
-
}), h()) : (zc(u.id),
|
|
19350
|
+
}), h()) : (zc(u.id), L.noteSent(), t({
|
|
19351
19351
|
body: a,
|
|
19352
19352
|
attachments: o.length > 0 ? o : void 0,
|
|
19353
19353
|
replyToId: P?.id,
|
|
@@ -19363,7 +19363,7 @@ var yM = {
|
|
|
19363
19363
|
i,
|
|
19364
19364
|
N,
|
|
19365
19365
|
n,
|
|
19366
|
-
|
|
19366
|
+
L
|
|
19367
19367
|
]), xe = K((e) => m.kind !== "none" && (e.preventDefault(), M ? ve() : ye(), !0), [
|
|
19368
19368
|
m.kind,
|
|
19369
19369
|
M,
|
|
@@ -19424,16 +19424,16 @@ var yM = {
|
|
|
19424
19424
|
})
|
|
19425
19425
|
}, "reply-chip") : null
|
|
19426
19426
|
}), Ee = /* @__PURE__ */ Q(Zr, {
|
|
19427
|
-
items:
|
|
19427
|
+
items: le.map((e) => ({
|
|
19428
19428
|
id: e.id,
|
|
19429
19429
|
content: /* @__PURE__ */ Q(tM, {
|
|
19430
19430
|
attachment: e.attachment,
|
|
19431
19431
|
uploading: e.status === "uploading",
|
|
19432
|
-
onRemove: () =>
|
|
19432
|
+
onRemove: () => fe(e.id)
|
|
19433
19433
|
})
|
|
19434
19434
|
})),
|
|
19435
19435
|
label: e.t(C.length === 1 ? "chat.attachmentCount.one" : "chat.attachmentCount.other", { count: C.length }),
|
|
19436
|
-
busy:
|
|
19436
|
+
busy: ce,
|
|
19437
19437
|
reducedMotion: x,
|
|
19438
19438
|
stripRef: E
|
|
19439
19439
|
}), De = (t) => /* @__PURE__ */ $(Z, { children: [
|
|
@@ -19443,7 +19443,7 @@ var yM = {
|
|
|
19443
19443
|
multiple: !0,
|
|
19444
19444
|
className: "hidden",
|
|
19445
19445
|
onChange: (e) => {
|
|
19446
|
-
|
|
19446
|
+
de(Array.from(e.target.files ?? []), "button"), e.target.value = "";
|
|
19447
19447
|
}
|
|
19448
19448
|
}),
|
|
19449
19449
|
/* @__PURE__ */ Q(Vn, {
|
|
@@ -19469,7 +19469,7 @@ var yM = {
|
|
|
19469
19469
|
onSend: be,
|
|
19470
19470
|
sendKind: M ? "save" : "send",
|
|
19471
19471
|
hasAttachments: C.length > 0,
|
|
19472
|
-
sendBlocked:
|
|
19472
|
+
sendBlocked: ce || I,
|
|
19473
19473
|
maxLength: l,
|
|
19474
19474
|
maxLengthError: Oe,
|
|
19475
19475
|
error: k,
|
|
@@ -19487,13 +19487,13 @@ var yM = {
|
|
|
19487
19487
|
onStarted: y.onVoiceRecordingStarted,
|
|
19488
19488
|
onCancelled: y.onVoiceRecordingCancelled
|
|
19489
19489
|
},
|
|
19490
|
-
onTextChange:
|
|
19490
|
+
onTextChange: oe,
|
|
19491
19491
|
onCleared: () => {
|
|
19492
|
-
i?.(),
|
|
19492
|
+
i?.(), L.noteTextChange();
|
|
19493
19493
|
},
|
|
19494
19494
|
onEscape: xe,
|
|
19495
19495
|
onArrowUpWhenEmpty: Se,
|
|
19496
|
-
onPasteFiles: p ?
|
|
19496
|
+
onPasteFiles: p ? me : void 0,
|
|
19497
19497
|
header: Te,
|
|
19498
19498
|
tray: Ee,
|
|
19499
19499
|
toolbarStart: De,
|
|
@@ -19717,14 +19717,14 @@ var IM = 1e3, LM = (e, t, n) => {
|
|
|
19717
19717
|
neutral: "text-f1-icon-mood-neutral",
|
|
19718
19718
|
positive: "text-f1-icon-mood-positive",
|
|
19719
19719
|
superPositive: "text-f1-icon-mood-super-positive"
|
|
19720
|
-
}, qM = "text-f1-icon-secondary", JM = (e) =>
|
|
19720
|
+
}, qM = "text-f1-icon-secondary", JM = (e) => F.includes(e), YM = ({ value: e, onChange: t, labels: n, icons: r, size: i = "lg", fullWidth: a = !0, disabled: o = !1, required: s = !1 }) => {
|
|
19721
19721
|
let [c, l] = X(e);
|
|
19722
19722
|
q(() => {
|
|
19723
19723
|
l(e);
|
|
19724
19724
|
}, [e]);
|
|
19725
|
-
let u = J(() =>
|
|
19725
|
+
let u = J(() => F.map((e) => ({
|
|
19726
19726
|
value: e,
|
|
19727
|
-
icon: r?.[e] ??
|
|
19727
|
+
icon: r?.[e] ?? b[e],
|
|
19728
19728
|
label: n[e],
|
|
19729
19729
|
color: WM[e],
|
|
19730
19730
|
tooltip: {
|
|
@@ -19738,7 +19738,7 @@ var IM = 1e3, LM = (e, t, n) => {
|
|
|
19738
19738
|
i,
|
|
19739
19739
|
c
|
|
19740
19740
|
]);
|
|
19741
|
-
return /* @__PURE__ */ Q(
|
|
19741
|
+
return /* @__PURE__ */ Q(St, {
|
|
19742
19742
|
items: u,
|
|
19743
19743
|
value: c ?? "",
|
|
19744
19744
|
onChange: (e) => {
|
|
@@ -19936,7 +19936,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19936
19936
|
name: "AutoGrid",
|
|
19937
19937
|
type: "layout"
|
|
19938
19938
|
}, $M), lN = Object.assign(sl(function({ chart: e, summaries: t, ...n }, r) {
|
|
19939
|
-
return /* @__PURE__ */ Q(
|
|
19939
|
+
return /* @__PURE__ */ Q(O, {
|
|
19940
19940
|
ref: r,
|
|
19941
19941
|
...n,
|
|
19942
19942
|
summaries: t,
|
|
@@ -19945,7 +19945,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19945
19945
|
children: e
|
|
19946
19946
|
}) : null
|
|
19947
19947
|
});
|
|
19948
|
-
}), { Skeleton:
|
|
19948
|
+
}), { Skeleton: O.Skeleton }), uN = ei(sl(function({ canBeBlurred: e, ...t }, n) {
|
|
19949
19949
|
let r = {
|
|
19950
19950
|
...t,
|
|
19951
19951
|
header: {
|
|
@@ -19959,7 +19959,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19959
19959
|
return /* @__PURE__ */ Q(lN, {
|
|
19960
19960
|
ref: n,
|
|
19961
19961
|
...r,
|
|
19962
|
-
chart: /* @__PURE__ */ Q(
|
|
19962
|
+
chart: /* @__PURE__ */ Q(Ut, {
|
|
19963
19963
|
...i,
|
|
19964
19964
|
canBeBlurred: e
|
|
19965
19965
|
})
|
|
@@ -19968,7 +19968,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19968
19968
|
return /* @__PURE__ */ Q(lN, {
|
|
19969
19969
|
ref: t,
|
|
19970
19970
|
...e,
|
|
19971
|
-
chart: /* @__PURE__ */ Q(
|
|
19971
|
+
chart: /* @__PURE__ */ Q(f, {
|
|
19972
19972
|
yAxis: { hide: !0 },
|
|
19973
19973
|
...e.chart
|
|
19974
19974
|
})
|
|
@@ -19977,7 +19977,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19977
19977
|
return /* @__PURE__ */ Q(lN, {
|
|
19978
19978
|
ref: t,
|
|
19979
19979
|
...e,
|
|
19980
|
-
chart: /* @__PURE__ */ Q(
|
|
19980
|
+
chart: /* @__PURE__ */ Q(Kt, {
|
|
19981
19981
|
yAxis: { hide: !0 },
|
|
19982
19982
|
...e.chart
|
|
19983
19983
|
})
|
|
@@ -19986,7 +19986,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19986
19986
|
return /* @__PURE__ */ Q(lN, {
|
|
19987
19987
|
ref: t,
|
|
19988
19988
|
...e,
|
|
19989
|
-
chart: /* @__PURE__ */ Q(
|
|
19989
|
+
chart: /* @__PURE__ */ Q(Ge, { ...e.chart })
|
|
19990
19990
|
});
|
|
19991
19991
|
}), lN.Skeleton), _N = Rn("PieChartWidget", gN), vN = ei(sl(function(e, t) {
|
|
19992
19992
|
return /* @__PURE__ */ Q(lN, {
|
|
@@ -19998,7 +19998,7 @@ var XM = Cn(Rn("F0ENPSButton", YM)), ZM = {
|
|
|
19998
19998
|
return /* @__PURE__ */ Q(lN, {
|
|
19999
19999
|
ref: t,
|
|
20000
20000
|
...e,
|
|
20001
|
-
chart: /* @__PURE__ */ Q(
|
|
20001
|
+
chart: /* @__PURE__ */ Q(Jt, {
|
|
20002
20002
|
xAxis: { hide: !0 },
|
|
20003
20003
|
...e.chart
|
|
20004
20004
|
})
|
|
@@ -20707,7 +20707,7 @@ function $N({ title: e, subtitle: t, data: n, helpText: r, legend: i = !1, hideT
|
|
|
20707
20707
|
}),
|
|
20708
20708
|
/* @__PURE__ */ Q("div", {
|
|
20709
20709
|
className: "mt-2",
|
|
20710
|
-
children: /* @__PURE__ */ Q(
|
|
20710
|
+
children: /* @__PURE__ */ Q(ge, {
|
|
20711
20711
|
data: n,
|
|
20712
20712
|
legend: i,
|
|
20713
20713
|
hideTooltip: a
|
|
@@ -20821,10 +20821,10 @@ function uP({ data: e = [], trackedMinutes: t = 0, remainingMinutes: n, variant:
|
|
|
20821
20821
|
return /* @__PURE__ */ $("div", {
|
|
20822
20822
|
className: "relative h-40 w-40",
|
|
20823
20823
|
children: [
|
|
20824
|
-
/* @__PURE__ */ Q(
|
|
20824
|
+
/* @__PURE__ */ Q(ye, {
|
|
20825
20825
|
width: 156,
|
|
20826
20826
|
height: 156,
|
|
20827
|
-
children: /* @__PURE__ */ Q(
|
|
20827
|
+
children: /* @__PURE__ */ Q(v, {
|
|
20828
20828
|
data: i,
|
|
20829
20829
|
cx: 74,
|
|
20830
20830
|
cy: 74,
|
|
@@ -21120,18 +21120,18 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21120
21120
|
}
|
|
21121
21121
|
}, te = (e) => {
|
|
21122
21122
|
f?.(e), I(!1), u?.(e);
|
|
21123
|
-
}, ne = N && a.length && !s && o, re = N && !C && _, ie = _P(bP(a), i),
|
|
21123
|
+
}, ne = N && a.length && !s && o, re = N && !C && _, ie = _P(bP(a), i), ae = a.map((e) => ({
|
|
21124
21124
|
value: e.id,
|
|
21125
21125
|
label: e.name,
|
|
21126
21126
|
icon: e.icon
|
|
21127
|
-
})),
|
|
21127
|
+
})), L = A === "break", [oe, se] = X(!1), ce = ne ? /* @__PURE__ */ Q(Ws, {
|
|
21128
21128
|
label: r.selectLocation,
|
|
21129
21129
|
hideLabel: !0,
|
|
21130
21130
|
value: i,
|
|
21131
|
-
options:
|
|
21131
|
+
options: ae,
|
|
21132
21132
|
onChange: g,
|
|
21133
|
-
open:
|
|
21134
|
-
onOpenChange:
|
|
21133
|
+
open: oe,
|
|
21134
|
+
onOpenChange: se,
|
|
21135
21135
|
disabled: s,
|
|
21136
21136
|
children: /* @__PURE__ */ Q("div", {
|
|
21137
21137
|
"aria-label": "Select location",
|
|
@@ -21144,7 +21144,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21144
21144
|
}) : ie ? /* @__PURE__ */ Q(Ns, {
|
|
21145
21145
|
text: ie.name,
|
|
21146
21146
|
icon: ie.icon
|
|
21147
|
-
}) : null,
|
|
21147
|
+
}) : null, le = a.length ? /* @__PURE__ */ Q(xP, {
|
|
21148
21148
|
locations: a,
|
|
21149
21149
|
locationId: i,
|
|
21150
21150
|
onChangeLocationId: g,
|
|
@@ -21152,7 +21152,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21152
21152
|
searchPlaceholder: r.searchLocation,
|
|
21153
21153
|
required: T,
|
|
21154
21154
|
disabled: !ne
|
|
21155
|
-
}) : null,
|
|
21155
|
+
}) : null, ue = b?.length && _ ? /* @__PURE__ */ Q(CP, {
|
|
21156
21156
|
projects: b,
|
|
21157
21157
|
projectId: x,
|
|
21158
21158
|
onChangeProjectId: S,
|
|
@@ -21160,7 +21160,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21160
21160
|
searchPlaceholder: r.searchProject,
|
|
21161
21161
|
required: w,
|
|
21162
21162
|
disabled: !re
|
|
21163
|
-
}) : null,
|
|
21163
|
+
}) : null, de = D ?? ((t ?? 0) < 0 ? "clock-out" : "resume"), fe = /* @__PURE__ */ $(Z, { children: [
|
|
21164
21164
|
A === "clocked-out" ? /* @__PURE__ */ Q("div", {
|
|
21165
21165
|
className: O === "default" ? "mr-3 @xs:mr-0" : void 0,
|
|
21166
21166
|
children: /* @__PURE__ */ Q(z, {
|
|
@@ -21201,7 +21201,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21201
21201
|
variant: "outline",
|
|
21202
21202
|
icon: oo
|
|
21203
21203
|
})] }) : null,
|
|
21204
|
-
A === "break" ?
|
|
21204
|
+
A === "break" ? de === "clock-out" ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q(z, {
|
|
21205
21205
|
onClick: c,
|
|
21206
21206
|
label: r.resume,
|
|
21207
21207
|
variant: "outline",
|
|
@@ -21222,22 +21222,22 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21222
21222
|
label: r.resume,
|
|
21223
21223
|
icon: Ji
|
|
21224
21224
|
})] }) : null
|
|
21225
|
-
] }),
|
|
21226
|
-
o ?
|
|
21227
|
-
_ ?
|
|
21228
|
-
|
|
21229
|
-
] }), he = o && !!
|
|
21225
|
+
] }), pe = O === "horizontal-bar" ? le : y ?? ce, me = O === "horizontal-bar" ? ue : v, R = /* @__PURE__ */ $(Z, { children: [
|
|
21226
|
+
o ? pe : null,
|
|
21227
|
+
_ ? me : null,
|
|
21228
|
+
L && E ? /* @__PURE__ */ Q(Ns, { text: E }) : null
|
|
21229
|
+
] }), he = o && !!pe, ge = _ && !!me, _e = he ? /* @__PURE__ */ Q("div", {
|
|
21230
21230
|
className: W("flex min-w-0 flex-1 flex-row", ne && EP),
|
|
21231
|
-
children:
|
|
21231
|
+
children: pe
|
|
21232
21232
|
}) : null, ve = ge ? /* @__PURE__ */ Q("div", {
|
|
21233
21233
|
className: W("min-w-0 flex-1", re && EP),
|
|
21234
|
-
children:
|
|
21234
|
+
children: me
|
|
21235
21235
|
}) : null, ye = he && ge, be = ye ? ve : null, xe = ye ? _e : _e ?? ve;
|
|
21236
21236
|
if (k) return /* @__PURE__ */ Q(TP, {
|
|
21237
21237
|
variant: O,
|
|
21238
21238
|
canSeeGraph: m,
|
|
21239
21239
|
canShowLocation: o,
|
|
21240
|
-
canShowProject: _ && !!(b?.length ??
|
|
21240
|
+
canShowProject: _ && !!(b?.length ?? me)
|
|
21241
21241
|
});
|
|
21242
21242
|
if (O === "horizontal-bar") {
|
|
21243
21243
|
let { primaryLabel: r, time: i } = aP({
|
|
@@ -21258,7 +21258,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21258
21258
|
children: j
|
|
21259
21259
|
}),
|
|
21260
21260
|
/* @__PURE__ */ Q(Sd, { variant: DP[A] }),
|
|
21261
|
-
|
|
21261
|
+
L && E ? /* @__PURE__ */ $(Z, { children: [/* @__PURE__ */ Q("span", {
|
|
21262
21262
|
"aria-hidden": !0,
|
|
21263
21263
|
className: "shrink-0 text-f1-foreground-secondary",
|
|
21264
21264
|
children: "·"
|
|
@@ -21295,7 +21295,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21295
21295
|
className: "flex w-full flex-row items-center gap-2",
|
|
21296
21296
|
children: [xe, /* @__PURE__ */ Q("div", {
|
|
21297
21297
|
className: "ml-auto flex shrink-0 flex-row items-center gap-2",
|
|
21298
|
-
children:
|
|
21298
|
+
children: fe
|
|
21299
21299
|
})]
|
|
21300
21300
|
})]
|
|
21301
21301
|
})
|
|
@@ -21324,7 +21324,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21324
21324
|
}) : null]
|
|
21325
21325
|
}), /* @__PURE__ */ Q("div", {
|
|
21326
21326
|
className: "flex justify-center gap-2 @xs:justify-start",
|
|
21327
|
-
children:
|
|
21327
|
+
children: fe
|
|
21328
21328
|
})]
|
|
21329
21329
|
}), m ? /* @__PURE__ */ Q(uP, {
|
|
21330
21330
|
data: n,
|
|
@@ -21333,7 +21333,7 @@ function OP({ trackedMinutes: e, remainingMinutes: t, data: n = [], labels: r, l
|
|
|
21333
21333
|
}) : null]
|
|
21334
21334
|
}), /* @__PURE__ */ Q("div", {
|
|
21335
21335
|
className: "mt-6 flex flex-row flex-wrap items-center justify-center gap-2 @xs:justify-start",
|
|
21336
|
-
children:
|
|
21336
|
+
children: R
|
|
21337
21337
|
})]
|
|
21338
21338
|
})
|
|
21339
21339
|
});
|
|
@@ -21544,7 +21544,7 @@ function sF(e) {
|
|
|
21544
21544
|
return oF(e).map((e) => e.text).join(" · ");
|
|
21545
21545
|
}
|
|
21546
21546
|
function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, subtitleCritical: a = !1, description: o, descriptionCritical: s = !1, right: c, actions: l, unread: u = !1, href: d, showChevron: f = !1, prominent: p = !1, onActivate: m, onClick: h }) {
|
|
21547
|
-
let g = !!l?.length, _ =
|
|
21547
|
+
let g = !!l?.length, _ = Ce(), [v, y] = X(null), b = n ?? (e ? /* @__PURE__ */ Q(qo, {
|
|
21548
21548
|
avatar: e,
|
|
21549
21549
|
size: t
|
|
21550
21550
|
}) : null), x = oF(o, s), S = /* @__PURE__ */ $(Z, { children: [
|
|
@@ -21580,13 +21580,13 @@ function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21580
21580
|
size: "sm",
|
|
21581
21581
|
color: "secondary"
|
|
21582
21582
|
}) : null
|
|
21583
|
-
] }),
|
|
21583
|
+
] }), C = !!(d || h), w = () => {
|
|
21584
21584
|
m?.(), h?.();
|
|
21585
|
-
},
|
|
21585
|
+
}, T = W("flex w-full items-center gap-3 rounded-md p-2 text-left", C && "cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-f1-special-ring", g ? "group-hover:bg-f1-background-tertiary group-focus-within:bg-f1-background-tertiary" : C && "hover:bg-f1-background-tertiary", v && "bg-f1-background-tertiary"), E = d ? /* @__PURE__ */ Q(Bn, {
|
|
21586
21586
|
href: d,
|
|
21587
21587
|
"data-list-row": "",
|
|
21588
|
-
onClick:
|
|
21589
|
-
className: W(
|
|
21588
|
+
onClick: w,
|
|
21589
|
+
className: W(T, "no-underline"),
|
|
21590
21590
|
...Tn(d) ? {
|
|
21591
21591
|
target: "_blank",
|
|
21592
21592
|
rel: "noreferrer"
|
|
@@ -21595,17 +21595,17 @@ function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21595
21595
|
}) : h ? /* @__PURE__ */ Q("button", {
|
|
21596
21596
|
type: "button",
|
|
21597
21597
|
"data-list-row": "",
|
|
21598
|
-
onClick:
|
|
21599
|
-
className: W(
|
|
21598
|
+
onClick: w,
|
|
21599
|
+
className: W(T, "border-none bg-transparent"),
|
|
21600
21600
|
children: S
|
|
21601
21601
|
}) : /* @__PURE__ */ Q("div", {
|
|
21602
21602
|
"data-list-row": "",
|
|
21603
|
-
className:
|
|
21603
|
+
className: T,
|
|
21604
21604
|
children: S
|
|
21605
21605
|
});
|
|
21606
21606
|
return g ? /* @__PURE__ */ $("div", {
|
|
21607
21607
|
className: "group relative",
|
|
21608
|
-
children: [
|
|
21608
|
+
children: [E, /* @__PURE__ */ Q("div", {
|
|
21609
21609
|
className: W(iF, v && aF),
|
|
21610
21610
|
children: l?.map((e) => {
|
|
21611
21611
|
let t = /* @__PURE__ */ Q(z, {
|
|
@@ -21625,7 +21625,7 @@ function cF({ avatar: e, avatarSize: t = "lg", left: n, title: r, subtitle: i, s
|
|
|
21625
21625
|
}, e.label) : /* @__PURE__ */ Q(rl, { children: t }, e.label);
|
|
21626
21626
|
})
|
|
21627
21627
|
})]
|
|
21628
|
-
}) :
|
|
21628
|
+
}) : E;
|
|
21629
21629
|
}
|
|
21630
21630
|
//#endregion
|
|
21631
21631
|
//#region src/domains/platform/home/Home/tracking.tsx
|
|
@@ -21703,8 +21703,8 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21703
21703
|
size: n
|
|
21704
21704
|
}) };
|
|
21705
21705
|
if (e === "icon" && t.avatar?.icon && t.avatar.color) {
|
|
21706
|
-
let e =
|
|
21707
|
-
if (e) return { left: /* @__PURE__ */ Q(
|
|
21706
|
+
let e = oe(t.avatar.color);
|
|
21707
|
+
if (e) return { left: /* @__PURE__ */ Q(y, {
|
|
21708
21708
|
icon: t.avatar.icon,
|
|
21709
21709
|
tint: e,
|
|
21710
21710
|
size: n
|
|
@@ -21719,7 +21719,7 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21719
21719
|
} : {};
|
|
21720
21720
|
}, MF = (e, t, n, r) => {
|
|
21721
21721
|
if (e) return e === "counter" ? t.count == null ? void 0 : /* @__PURE__ */ Q(hn, { value: t.count }) : e === "date" ? t.date ? /* @__PURE__ */ Q(Fa, {
|
|
21722
|
-
date:
|
|
21722
|
+
date: L(t.date),
|
|
21723
21723
|
size: r ? "lg" : "md"
|
|
21724
21724
|
}) : void 0 : e.endsWith("-list") ? t.avatars && t.avatars.length > 0 ? /* @__PURE__ */ Q(Ho, {
|
|
21725
21725
|
type: e.slice(0, -5),
|
|
@@ -21736,7 +21736,7 @@ var lF = tl.createContext(void 0), uF = ({ tracking: e, children: t }) => /* @__
|
|
|
21736
21736
|
}) : void 0;
|
|
21737
21737
|
}, NF = (e, t) => t ? e ? "lg" : "md" : e ? "md" : "sm";
|
|
21738
21738
|
function PF({ params: e, ctx: t }) {
|
|
21739
|
-
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } = pF(), l =
|
|
21739
|
+
let { schema: n, items: r } = e, i = r, [a, o] = X(!1), { reportAction: s, reportItemActivate: c } = pF(), l = Ce(), u = n.maxVisibleItems, d = u != null && i.length > u, f = d && !a ? i.slice(0, u) : i, p = eF(f.length), m = gF(n, f.length), h = NF((!!n.descriptionRequired || !!n.descriptionOptional) && !m, l), g = l ? "md" : "sm", _ = !!n.prominent;
|
|
21740
21740
|
return /* @__PURE__ */ $("div", {
|
|
21741
21741
|
className: W(EF(t), "flex flex-col"),
|
|
21742
21742
|
children: [/* @__PURE__ */ Q(tF, { children: f.map(({ href: e, description: t, ...r }, i) => {
|
|
@@ -21806,7 +21806,7 @@ var IF = 3, LF = "slot-skeleton-item", RF = [
|
|
|
21806
21806
|
className: "flex h-5 items-center",
|
|
21807
21807
|
children: /* @__PURE__ */ Q(H, { className: W("h-3", e) })
|
|
21808
21808
|
}), HF = ({ params: e, ctx: t }) => {
|
|
21809
|
-
let n = e.schema ?? {}, r =
|
|
21809
|
+
let n = e.schema ?? {}, r = Ce(), i = Math.max(0, Math.min(t.expectedItemsCount, n.maxVisibleItems ?? Infinity)), a = gF(n, i), o = (!!n.descriptionRequired || !!n.descriptionOptional) && !a, s = !!n.descriptionRequired && !a, c = t.expectedItemsCount > i;
|
|
21810
21810
|
return /* @__PURE__ */ $("div", {
|
|
21811
21811
|
className: W(EF(t), "flex flex-col"),
|
|
21812
21812
|
children: [Array.from({ length: i }, (e, t) => /* @__PURE__ */ $("div", {
|
|
@@ -22107,7 +22107,7 @@ function sI({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
22107
22107
|
};
|
|
22108
22108
|
return /* @__PURE__ */ $(rl, { children: [o > 0 ? /* @__PURE__ */ Q("div", {
|
|
22109
22109
|
className: "my-3",
|
|
22110
|
-
children: /* @__PURE__ */ Q(
|
|
22110
|
+
children: /* @__PURE__ */ Q(Oe, { bare: !0 })
|
|
22111
22111
|
}) : null, t ? /* @__PURE__ */ Q("div", {
|
|
22112
22112
|
"aria-hidden": "true",
|
|
22113
22113
|
children: (s?.skeleton ?? GF)(n.params, {
|
|
@@ -22133,9 +22133,9 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22133
22133
|
let e = setTimeout(() => S(!1), iI);
|
|
22134
22134
|
return () => clearTimeout(e);
|
|
22135
22135
|
}, [m, b]);
|
|
22136
|
-
let [w, T] = X(void 0), E = s ? w ?? s.value ?? s.options[0]?.value : void 0, D = s?.options.find((e) => e.value === E),
|
|
22136
|
+
let [w, T] = X(void 0), E = s ? w ?? s.value ?? s.options[0]?.value : void 0, D = s?.options.find((e) => e.value === E), k = (e) => {
|
|
22137
22137
|
T(e), s?.onChange?.(e);
|
|
22138
|
-
},
|
|
22138
|
+
}, A = o?.length || s ? /* @__PURE__ */ $(Z, { children: [
|
|
22139
22139
|
o?.map((e, t) => /* @__PURE__ */ Q(z, {
|
|
22140
22140
|
variant: "ghost",
|
|
22141
22141
|
size: "sm",
|
|
@@ -22145,7 +22145,7 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22145
22145
|
items: s.options.map((e) => ({
|
|
22146
22146
|
label: e.label,
|
|
22147
22147
|
...e.value === E ? { icon: nc } : e.icon ? { icon: e.icon } : {},
|
|
22148
|
-
onClick: () =>
|
|
22148
|
+
onClick: () => k(e.value)
|
|
22149
22149
|
})),
|
|
22150
22150
|
children: /* @__PURE__ */ Q(z, {
|
|
22151
22151
|
variant: "ghost",
|
|
@@ -22156,24 +22156,24 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22156
22156
|
})
|
|
22157
22157
|
}) : null,
|
|
22158
22158
|
a
|
|
22159
|
-
] }) : a, { reportAction:
|
|
22160
|
-
...
|
|
22159
|
+
] }) : a, { reportAction: j } = pF(), { info: M, ...N } = v ? {} : bF(e, t) ?? {}, P = Object.values(N).some((e) => e !== void 0) || !v && p && p.length > 0 || !v && A ? N : void 0, F = P?.link === void 0 ? P : {
|
|
22160
|
+
...P,
|
|
22161
22161
|
link: {
|
|
22162
|
-
...
|
|
22162
|
+
...P.link,
|
|
22163
22163
|
onClick: () => {
|
|
22164
|
-
|
|
22164
|
+
j("header-link"), P.link?.onClick?.();
|
|
22165
22165
|
}
|
|
22166
22166
|
}
|
|
22167
|
-
},
|
|
22167
|
+
}, I = (e) => ({
|
|
22168
22168
|
...e,
|
|
22169
|
-
onClick: (t) => (
|
|
22170
|
-
}),
|
|
22171
|
-
header:
|
|
22169
|
+
onClick: (t) => (j("footer-action"), e.onClick?.(t))
|
|
22170
|
+
}), ee = Array.isArray(r) ? r.map(I) : r && I(r), te = /* @__PURE__ */ Q(O, {
|
|
22171
|
+
header: F,
|
|
22172
22172
|
fullHeight: n,
|
|
22173
|
-
action:
|
|
22173
|
+
action: ee,
|
|
22174
22174
|
footerClassName: rI,
|
|
22175
22175
|
actions: v ? void 0 : p,
|
|
22176
|
-
headerControls: v ? void 0 :
|
|
22176
|
+
headerControls: v ? void 0 : A,
|
|
22177
22177
|
summaries: i,
|
|
22178
22178
|
...c ? { alert: c } : { status: l },
|
|
22179
22179
|
isDragging: g,
|
|
@@ -22189,7 +22189,7 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22189
22189
|
slots: u
|
|
22190
22190
|
})
|
|
22191
22191
|
});
|
|
22192
|
-
return
|
|
22192
|
+
return M ? /* @__PURE__ */ Q("div", {
|
|
22193
22193
|
className: "[perspective:1200px]",
|
|
22194
22194
|
style: { height: n ? "100%" : void 0 },
|
|
22195
22195
|
children: /* @__PURE__ */ Q("div", {
|
|
@@ -22208,18 +22208,18 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22208
22208
|
children: [/* @__PURE__ */ Q("div", {
|
|
22209
22209
|
className: W("[backface-visibility:hidden]", m && "pointer-events-none"),
|
|
22210
22210
|
"aria-hidden": m,
|
|
22211
|
-
children:
|
|
22211
|
+
children: te
|
|
22212
22212
|
}), /* @__PURE__ */ $("div", {
|
|
22213
22213
|
"aria-hidden": !m,
|
|
22214
22214
|
className: W("absolute inset-0 flex flex-col gap-4", "rounded-xl border border-solid border-f1-border-secondary bg-f1-background p-4", "[backface-visibility:hidden] [transform:rotateY(180deg)]", !m && "pointer-events-none"),
|
|
22215
|
-
children: [
|
|
22215
|
+
children: [P?.title ? /* @__PURE__ */ Q("div", {
|
|
22216
22216
|
className: "min-h-6 truncate font-medium text-f1-foreground",
|
|
22217
|
-
children:
|
|
22217
|
+
children: P.title
|
|
22218
22218
|
}) : null, /* @__PURE__ */ $("div", {
|
|
22219
22219
|
className: "flex flex-1 flex-col items-center justify-center gap-4 text-center",
|
|
22220
22220
|
children: [/* @__PURE__ */ Q("p", {
|
|
22221
22221
|
className: "m-0 text-lg font-medium text-f1-foreground-secondary",
|
|
22222
|
-
children:
|
|
22222
|
+
children: M
|
|
22223
22223
|
}), /* @__PURE__ */ Q(z, {
|
|
22224
22224
|
variant: "neutral",
|
|
22225
22225
|
size: "sm",
|
|
@@ -22231,7 +22231,7 @@ function cI({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
22231
22231
|
})]
|
|
22232
22232
|
})
|
|
22233
22233
|
})
|
|
22234
|
-
}) :
|
|
22234
|
+
}) : te;
|
|
22235
22235
|
}
|
|
22236
22236
|
//#endregion
|
|
22237
22237
|
//#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
|
|
@@ -22271,7 +22271,7 @@ function fI({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
|
22271
22271
|
//#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
|
|
22272
22272
|
var pI = (e, t) => typeof e == "function" ? e(t) : e, mI = 250;
|
|
22273
22273
|
function hI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: l = "Save" }) {
|
|
22274
|
-
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = uI(), { formRef: h, getValues: g, trigger: _ } =
|
|
22274
|
+
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = uI(), { formRef: h, getValues: g, trigger: _ } = $e(), [v, y] = X(r ?? {});
|
|
22275
22275
|
return q(() => {
|
|
22276
22276
|
e && y(r ?? {});
|
|
22277
22277
|
}, [e, r]), /* @__PURE__ */ Q(Za, {
|
|
@@ -22290,7 +22290,7 @@ function hI({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
22290
22290
|
className: p,
|
|
22291
22291
|
children: [/* @__PURE__ */ Q("div", {
|
|
22292
22292
|
className: W("overflow-y-auto", m),
|
|
22293
|
-
children: /* @__PURE__ */ Q(
|
|
22293
|
+
children: /* @__PURE__ */ Q(_e, {
|
|
22294
22294
|
formRef: h,
|
|
22295
22295
|
name: "widget-params",
|
|
22296
22296
|
schema: n,
|
|
@@ -22376,23 +22376,23 @@ var gI = (e) => {
|
|
|
22376
22376
|
y: Math.max(t.y, i - a)
|
|
22377
22377
|
};
|
|
22378
22378
|
}, kI = ({ id: e, disabled: t = !1, children: n }) => {
|
|
22379
|
-
let { listeners: r, setNodeRef: i, transform: a, transition:
|
|
22379
|
+
let { listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = te({
|
|
22380
22380
|
id: e,
|
|
22381
22381
|
disabled: t
|
|
22382
|
-
}),
|
|
22383
|
-
transform:
|
|
22382
|
+
}), c = {
|
|
22383
|
+
transform: Te.Translate.toString(a && {
|
|
22384
22384
|
...a,
|
|
22385
22385
|
x: 0
|
|
22386
22386
|
}),
|
|
22387
|
-
transition:
|
|
22387
|
+
transition: o ?? void 0
|
|
22388
22388
|
};
|
|
22389
22389
|
return /* @__PURE__ */ Q("div", {
|
|
22390
22390
|
ref: i,
|
|
22391
|
-
style:
|
|
22391
|
+
style: c,
|
|
22392
22392
|
"data-widget-id": e,
|
|
22393
|
-
className: W(!t && "cursor-grab active:cursor-grabbing",
|
|
22393
|
+
className: W(!t && "cursor-grab active:cursor-grabbing", s && "invisible"),
|
|
22394
22394
|
...t ? {} : r,
|
|
22395
|
-
children: n({ isDragging:
|
|
22395
|
+
children: n({ isDragging: s })
|
|
22396
22396
|
});
|
|
22397
22397
|
}, AI = 12, jI = 280, MI = 2, NI = /* @__PURE__ */ new Set([
|
|
22398
22398
|
"auto",
|
|
@@ -22513,7 +22513,7 @@ var II = ({ transform: e }) => ({
|
|
|
22513
22513
|
"[role='checkbox']",
|
|
22514
22514
|
"[role='tab']",
|
|
22515
22515
|
"[contenteditable='true']"
|
|
22516
|
-
].join(","), BI = class extends
|
|
22516
|
+
].join(","), BI = class extends I {
|
|
22517
22517
|
static activators = [{
|
|
22518
22518
|
eventName: "onPointerDown",
|
|
22519
22519
|
handler: ({ nativeEvent: e }, { onActivation: t }) => {
|
|
@@ -22559,12 +22559,12 @@ var II = ({ transform: e }) => ({
|
|
|
22559
22559
|
})
|
|
22560
22560
|
})
|
|
22561
22561
|
});
|
|
22562
|
-
function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget:
|
|
22563
|
-
let
|
|
22562
|
+
function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: o, disableEdition: s = !1, disableDrag: l = !1, widgetHostFor: u, afterWidgets: d, dragSurfaceSelector: f, onRemoveWidget: p, onClickAddNewWidget: m, onReorder: h, visibleWidgetId: g, entrance: _ = {}, virtualized: v = !1, stow: y, addWidgetLabel: b, onChangeWidgetParams: S, rebuildWidget: C, renderWidgetPreview: w, paramsPreviewWidth: T, removeLabel: E, editParamsLabel: D, ctx: O = {}, className: k, style: A }) {
|
|
22563
|
+
let j = U(), M = !s, N = (e) => g !== void 0 && e.id !== g, P = M && h != null, F = e.filter((e) => !e.locked).length > 1, [I, ee] = X(null), te = c(Xt(BI, { activationConstraint: { distance: 4 } })), [ne, re] = X(null), ae = e.find((e) => e.id === ne), [L, oe] = X(null), se = Y(null), le = Y(null), ue = Y(null), de = Y(null), fe = J(() => [II, OI(() => de.current)], []), me = (e) => {
|
|
22564
22564
|
let t = se.current?.querySelector(`[data-widget-id="${e}"]`);
|
|
22565
|
-
|
|
22566
|
-
},
|
|
22567
|
-
e &&
|
|
22565
|
+
le.current = gI(t), ue.current = f ? _I(HI(se.current, f), t) : null;
|
|
22566
|
+
}, R = (e) => {
|
|
22567
|
+
e && le.current && e.replaceChildren(le.current);
|
|
22568
22568
|
}, he = Y(0), ge = () => cancelAnimationFrame(he.current), _e = (e) => {
|
|
22569
22569
|
ge();
|
|
22570
22570
|
let t = ue.current;
|
|
@@ -22578,12 +22578,12 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22578
22578
|
};
|
|
22579
22579
|
r();
|
|
22580
22580
|
}, ve = FI({
|
|
22581
|
-
config:
|
|
22581
|
+
config: v === !0 ? {} : v,
|
|
22582
22582
|
count: e.length,
|
|
22583
22583
|
gap: UI[t],
|
|
22584
|
-
pinned:
|
|
22585
|
-
paused:
|
|
22586
|
-
}), ye =
|
|
22584
|
+
pinned: I ? [e.findIndex((e) => e.id === I)] : [],
|
|
22585
|
+
paused: g !== void 0
|
|
22586
|
+
}), ye = v !== !1 && g !== void 0, be = ({ activatorEvent: t, delta: n, active: r }) => {
|
|
22587
22587
|
let i = r.rect.current.translated, a = t, o = a.clientX == null ? null : a.clientX + n.x, s = a.clientY == null ? null : a.clientY + n.y, c = de.current == null ? [] : EI(e);
|
|
22588
22588
|
return e.find((e) => {
|
|
22589
22589
|
if (!e.locked || c.includes(e)) return !1;
|
|
@@ -22595,45 +22595,45 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22595
22595
|
}, xe = (e) => {
|
|
22596
22596
|
let t = [...e.actions ?? []];
|
|
22597
22597
|
return bF(e.header, e.params)?.info && t.push({
|
|
22598
|
-
label:
|
|
22598
|
+
label: j.widgets.whatThisMeans,
|
|
22599
22599
|
icon: Rs,
|
|
22600
22600
|
onClick: () => oe(e.id)
|
|
22601
|
-
}), e.paramsSchema &&
|
|
22602
|
-
label:
|
|
22601
|
+
}), e.paramsSchema && S && t.push({
|
|
22602
|
+
label: D ?? j.widgets.editParams,
|
|
22603
22603
|
icon: Ba,
|
|
22604
|
-
onClick: () =>
|
|
22605
|
-
}),
|
|
22606
|
-
label:
|
|
22604
|
+
onClick: () => re(e.id)
|
|
22605
|
+
}), M && !e.locked && p && (t.length > 0 && t.push({ type: "separator" }), t.push({
|
|
22606
|
+
label: E ?? j.widgets.removeWidget,
|
|
22607
22607
|
icon: Xr,
|
|
22608
22608
|
critical: !0,
|
|
22609
|
-
onClick: () =>
|
|
22609
|
+
onClick: () => p(e.id)
|
|
22610
22610
|
})), t;
|
|
22611
22611
|
}, Se = (t) => {
|
|
22612
22612
|
let { active: n, over: r } = t, i = be(t);
|
|
22613
22613
|
if (i) {
|
|
22614
|
-
|
|
22614
|
+
jt.open({
|
|
22615
22615
|
variant: "warning",
|
|
22616
|
-
title:
|
|
22616
|
+
title: j.widgets.cannotMoveHere.replace("{{title}}", xF(i))
|
|
22617
22617
|
});
|
|
22618
22618
|
return;
|
|
22619
22619
|
}
|
|
22620
22620
|
if (!r || n.id === r.id) return;
|
|
22621
|
-
let
|
|
22622
|
-
if (
|
|
22623
|
-
let
|
|
22624
|
-
if (
|
|
22625
|
-
|
|
22621
|
+
let o = e.map((e) => e.id), s = o.indexOf(String(n.id)), c = o.indexOf(String(r.id));
|
|
22622
|
+
if (s < 0 || c < 0) return;
|
|
22623
|
+
let l = new Map(e.flatMap((e, t) => e.locked ? [[t, e.id]] : []));
|
|
22624
|
+
if (l.size === 0) {
|
|
22625
|
+
h?.(a(o, s, c));
|
|
22626
22626
|
return;
|
|
22627
22627
|
}
|
|
22628
|
-
if ([...
|
|
22629
|
-
let
|
|
22630
|
-
|
|
22628
|
+
if ([...l.values()].includes(String(r.id))) return;
|
|
22629
|
+
let u = a(o, s, c).filter((e) => !l.has(o.indexOf(e))), d = o.map((e, t) => l.get(t) ?? u.shift());
|
|
22630
|
+
h?.(d);
|
|
22631
22631
|
}, Ce = (e, t, n = e.params) => /* @__PURE__ */ Q(fF, {
|
|
22632
22632
|
widgetId: e.id,
|
|
22633
22633
|
children: we(e, t, n)
|
|
22634
22634
|
}), we = (e, t, n = e.params) => {
|
|
22635
22635
|
let r = xe(e);
|
|
22636
|
-
if (!
|
|
22636
|
+
if (!o) return /* @__PURE__ */ Q(cI, {
|
|
22637
22637
|
...wF(e),
|
|
22638
22638
|
header: e.header,
|
|
22639
22639
|
params: n,
|
|
@@ -22641,16 +22641,16 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22641
22641
|
slots: e.slots,
|
|
22642
22642
|
loading: e.loading,
|
|
22643
22643
|
slotRenderers: i,
|
|
22644
|
-
ctx:
|
|
22644
|
+
ctx: O,
|
|
22645
22645
|
actions: r.length > 0 ? r : void 0,
|
|
22646
|
-
flipped:
|
|
22646
|
+
flipped: L === e.id,
|
|
22647
22647
|
onFlipBack: () => oe(null),
|
|
22648
22648
|
isDragging: t?.isDragging
|
|
22649
22649
|
});
|
|
22650
|
-
let
|
|
22651
|
-
return r.length === 0 ?
|
|
22650
|
+
let a = o(e, O);
|
|
22651
|
+
return r.length === 0 ? a : /* @__PURE__ */ $("div", {
|
|
22652
22652
|
className: "relative",
|
|
22653
|
-
children: [
|
|
22653
|
+
children: [a, /* @__PURE__ */ Q("div", {
|
|
22654
22654
|
className: "absolute right-3 top-3 z-10",
|
|
22655
22655
|
children: /* @__PURE__ */ Q(ba, {
|
|
22656
22656
|
items: r,
|
|
@@ -22665,10 +22665,10 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22665
22665
|
})
|
|
22666
22666
|
})]
|
|
22667
22667
|
});
|
|
22668
|
-
}, Te =
|
|
22669
|
-
...
|
|
22670
|
-
stowed:
|
|
22671
|
-
instant:
|
|
22668
|
+
}, Te = _ === !1 ? null : _, Ee = YP(XP(Te?.delayMs)), De = (e) => y && {
|
|
22669
|
+
...y,
|
|
22670
|
+
stowed: y.stowed && e.id !== g,
|
|
22671
|
+
instant: y.stowed
|
|
22672
22672
|
}, Oe = (e, t, n, r) => {
|
|
22673
22673
|
let i = n ? De(n) : void 0;
|
|
22674
22674
|
return !Te && !i && !r ? t : /* @__PURE__ */ Q(LI, {
|
|
@@ -22683,14 +22683,14 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22683
22683
|
children: t
|
|
22684
22684
|
});
|
|
22685
22685
|
}, ke = (e, t, n) => /* @__PURE__ */ Q(WI, {
|
|
22686
|
-
hidden:
|
|
22686
|
+
hidden: N(e),
|
|
22687
22687
|
placement: n,
|
|
22688
22688
|
measureRef: ve.measureRef,
|
|
22689
22689
|
children: /* @__PURE__ */ Q(RI, {
|
|
22690
|
-
host:
|
|
22691
|
-
children:
|
|
22690
|
+
host: u?.(e),
|
|
22691
|
+
children: P ? /* @__PURE__ */ Q(kI, {
|
|
22692
22692
|
id: e.id,
|
|
22693
|
-
disabled: e.locked ||
|
|
22693
|
+
disabled: e.locked || l || !F,
|
|
22694
22694
|
children: (n) => Oe(t, Ce(e, n), e)
|
|
22695
22695
|
}) : Oe(t, Ce(e), e, e.id)
|
|
22696
22696
|
})
|
|
@@ -22701,70 +22701,70 @@ function KI({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
22701
22701
|
position: "relative",
|
|
22702
22702
|
height: ve.window.totalSize
|
|
22703
22703
|
} : void 0,
|
|
22704
|
-
children: ve.window ? ve.window.placements.map((t) => ke(e[t.index], t.index, t)) : e.flatMap((e, t) => ye && e.id !==
|
|
22704
|
+
children: ve.window ? ve.window.placements.map((t) => ke(e[t.index], t.index, t)) : e.flatMap((e, t) => ye && e.id !== g ? [] : [ke(e, t)])
|
|
22705
22705
|
});
|
|
22706
22706
|
return /* @__PURE__ */ $("div", {
|
|
22707
22707
|
ref: se,
|
|
22708
|
-
className: W("relative flex flex-col [&_*]:shadow-none", t === "main" ? "gap-6" : "gap-4",
|
|
22709
|
-
style:
|
|
22708
|
+
className: W("relative flex flex-col [&_*]:shadow-none", t === "main" ? "gap-6" : "gap-4", k),
|
|
22709
|
+
style: A,
|
|
22710
22710
|
children: [
|
|
22711
22711
|
n,
|
|
22712
|
-
|
|
22713
|
-
sensors:
|
|
22714
|
-
collisionDetection:
|
|
22712
|
+
P ? /* @__PURE__ */ $(ce, {
|
|
22713
|
+
sensors: te,
|
|
22714
|
+
collisionDetection: pe,
|
|
22715
22715
|
modifiers: fe,
|
|
22716
22716
|
onDragStart: ({ active: n }) => {
|
|
22717
|
-
|
|
22717
|
+
me(String(n.id)), de.current = DI(e, se.current, UI[t]), ee(String(n.id));
|
|
22718
22718
|
},
|
|
22719
22719
|
onDragCancel: () => {
|
|
22720
|
-
|
|
22720
|
+
ee(null), ge(), le.current = null, ue.current = null, de.current = null;
|
|
22721
22721
|
},
|
|
22722
22722
|
onDragEnd: (e) => {
|
|
22723
|
-
|
|
22723
|
+
ee(null), le.current = null, ue.current = null, Se(e), de.current = null;
|
|
22724
22724
|
},
|
|
22725
22725
|
children: [
|
|
22726
|
-
/* @__PURE__ */ Q(
|
|
22726
|
+
/* @__PURE__ */ Q(ft, {
|
|
22727
22727
|
items: e.map((e) => e.id),
|
|
22728
|
-
strategy:
|
|
22728
|
+
strategy: ie,
|
|
22729
22729
|
children: Ae
|
|
22730
22730
|
}),
|
|
22731
|
-
|
|
22731
|
+
I ? /* @__PURE__ */ Q("div", {
|
|
22732
22732
|
"aria-hidden": !0,
|
|
22733
22733
|
"data-drag-cursor": !0,
|
|
22734
22734
|
className: "fixed inset-0 z-50 cursor-grabbing"
|
|
22735
22735
|
}) : null,
|
|
22736
|
-
/* @__PURE__ */ Q(
|
|
22736
|
+
/* @__PURE__ */ Q(x, {
|
|
22737
22737
|
dropAnimation: VI,
|
|
22738
|
-
children:
|
|
22738
|
+
children: I ? /* @__PURE__ */ $("div", {
|
|
22739
22739
|
className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
|
|
22740
22740
|
children: [/* @__PURE__ */ Q("div", {
|
|
22741
22741
|
ref: _e,
|
|
22742
22742
|
className: "absolute isolate"
|
|
22743
22743
|
}), /* @__PURE__ */ Q("div", {
|
|
22744
|
-
ref:
|
|
22744
|
+
ref: R,
|
|
22745
22745
|
className: "relative h-full w-full [&_*]:shadow-none"
|
|
22746
22746
|
})]
|
|
22747
22747
|
}) : null
|
|
22748
22748
|
})
|
|
22749
22749
|
]
|
|
22750
22750
|
}) : Ae,
|
|
22751
|
-
|
|
22751
|
+
d,
|
|
22752
22752
|
r == null ? null : Oe(e.length, /* @__PURE__ */ Q(TI, { text: r })),
|
|
22753
|
-
!
|
|
22754
|
-
onClick:
|
|
22755
|
-
label:
|
|
22753
|
+
!s && m ? Oe(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(GI, {
|
|
22754
|
+
onClick: m,
|
|
22755
|
+
label: b ?? j.widgets.addWidget,
|
|
22756
22756
|
side: t
|
|
22757
22757
|
})) : null,
|
|
22758
|
-
|
|
22758
|
+
ae?.paramsSchema && S ? /* @__PURE__ */ Q(hI, {
|
|
22759
22759
|
isOpen: !0,
|
|
22760
|
-
onClose: () =>
|
|
22761
|
-
schema:
|
|
22762
|
-
params:
|
|
22763
|
-
info:
|
|
22764
|
-
previewWidth:
|
|
22765
|
-
renderPreview: (e) =>
|
|
22766
|
-
onSave: (e) =>
|
|
22767
|
-
},
|
|
22760
|
+
onClose: () => re(null),
|
|
22761
|
+
schema: ae.paramsSchema,
|
|
22762
|
+
params: ae.params,
|
|
22763
|
+
info: ae.header?.info,
|
|
22764
|
+
previewWidth: T,
|
|
22765
|
+
renderPreview: (e) => C ? Ce(C(ae, e), void 0, e) : w ? w(ae, e) : Ce(ae, void 0, e),
|
|
22766
|
+
onSave: (e) => S(ae.id, e)
|
|
22767
|
+
}, ae.id) : null
|
|
22768
22768
|
]
|
|
22769
22769
|
});
|
|
22770
22770
|
}
|
|
@@ -22775,7 +22775,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22775
22775
|
q(() => {
|
|
22776
22776
|
r && s(!0);
|
|
22777
22777
|
}, [r]);
|
|
22778
|
-
let c = o && !a, l = JP(e, c ? 180 : 0), u = e ? l || t ? "panel" : "retracting" : "column", d = u === "panel", f = !d || t, p = Ea(i), m =
|
|
22778
|
+
let c = o && !a, l = JP(e, c ? 180 : 0), u = e ? l || t ? "panel" : "retracting" : "column", d = u === "panel", f = !d || t, p = Ea(i), m = ot(p, (e) => `${e}px`);
|
|
22779
22779
|
return ml(() => {
|
|
22780
22780
|
if (!r) return;
|
|
22781
22781
|
if (!c) {
|
|
@@ -22808,7 +22808,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22808
22808
|
"aria-hidden": !0,
|
|
22809
22809
|
className: W("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", JI[e], t)
|
|
22810
22810
|
}), XI = 40, ZI = 672, QI = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", $I = 16, eL = 768, tL = { display: "contents" }, nL = 150, rL = 150, iL = sl(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, virtualizedWidgetContainers: l = [], virtualization: u, onRemoveWidget: d, onChangeWidgetParams: f, rebuildWidget: p, renderWidgetPreview: m, onClickAddNewWidget: h, onReorderWidgets: g, tracking: _, period: v = "morning", asideWidth: y = 396, mainWidth: b = ZI, bleed: x = 24, stackedPinsAfter: S = 2, ctx: C = {}, className: w, oneSwitchTooltip: T, oneSwitchAutoOpen: E, hideOneSwitch: D = !1 }, O) {
|
|
22811
|
-
let k = U(), { sidebarState: A, toggleSidebar: j, isSmallScreen: M, hasPrimarySidebar: N } = uc(), P = sn(), F = Y(null), [I, ee] = X(0), [te, ne] = X(!1), [re, ie] = X(null), [
|
|
22811
|
+
let k = U(), { sidebarState: A, toggleSidebar: j, isSmallScreen: M, hasPrimarySidebar: N } = uc(), P = sn(), F = Y(null), [I, ee] = X(0), [te, ne] = X(!1), [re, ie] = X(null), [ae, L] = X(0), [oe, se] = X(!1), ce = Y(null), le = Y(null);
|
|
22812
22812
|
ml(function() {
|
|
22813
22813
|
let e = F.current;
|
|
22814
22814
|
if (!e) return;
|
|
@@ -22820,10 +22820,10 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22820
22820
|
let n = new ResizeObserver(t);
|
|
22821
22821
|
return n.observe(e), () => n.disconnect();
|
|
22822
22822
|
}, []);
|
|
22823
|
-
let [
|
|
22823
|
+
let [ue, de] = X(null), fe = (e) => s.includes(e), pe = (e) => fe(e) && (c?.includes(e) ?? !0), me = nI(), R = nI(), he = nI(), ge = (e) => l.includes(e) ? {
|
|
22824
22824
|
...u,
|
|
22825
|
-
scrollElement: e === "main" ?
|
|
22826
|
-
} : !1, _e = i != null || r.length > 0 || h != null &&
|
|
22825
|
+
scrollElement: e === "main" ? me.element : R.element
|
|
22826
|
+
} : !1, _e = i != null || r.length > 0 || h != null && pe("right"), ve = I > 0 && I < b + $I + y, ye = _e && r.length > 0 && (ve || (ue ?? !1)), be = ye ? XI : y, xe = ye ? "Expand widgets panel" : "Collapse widgets panel", Se = _e && te, Ce = I > 0 && I < eL, we = Se && !Ce && (ye || I >= eL), Te = {
|
|
22827
22827
|
pinned: r.filter((e) => e.locked),
|
|
22828
22828
|
rest: r.filter((e) => !e.locked)
|
|
22829
22829
|
}, [Ee, De] = X({}), Oe = Y(/* @__PURE__ */ new Map()), ke = (e) => {
|
|
@@ -22846,16 +22846,16 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22846
22846
|
...je.slice(S).map((e, t) => Me(e, S + t))
|
|
22847
22847
|
], Pe = ye ? r.find((e) => e.id === re) : void 0;
|
|
22848
22848
|
q(function() {
|
|
22849
|
-
ye || (
|
|
22849
|
+
ye || (le.current && clearTimeout(le.current), le.current = null, ie(null));
|
|
22850
22850
|
}, [ye]), q(function() {
|
|
22851
22851
|
return () => {
|
|
22852
|
-
|
|
22852
|
+
le.current && clearTimeout(le.current), ce.current && clearTimeout(ce.current);
|
|
22853
22853
|
};
|
|
22854
22854
|
}, []);
|
|
22855
22855
|
let Fe = qI({
|
|
22856
22856
|
collapsed: ye,
|
|
22857
22857
|
open: Pe != null,
|
|
22858
|
-
glide:
|
|
22858
|
+
glide: oe,
|
|
22859
22859
|
drawn: Se,
|
|
22860
22860
|
width: be
|
|
22861
22861
|
}), Ie = Fe.mode === "panel", Le = Y(null);
|
|
@@ -22867,7 +22867,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22867
22867
|
top: 0,
|
|
22868
22868
|
right: 48,
|
|
22869
22869
|
width: y,
|
|
22870
|
-
maxHeight: `calc(100% - ${
|
|
22870
|
+
maxHeight: `calc(100% - ${ae}px)`,
|
|
22871
22871
|
pointerEvents: Pe ? void 0 : "none"
|
|
22872
22872
|
} : {
|
|
22873
22873
|
transformOrigin: LP,
|
|
@@ -22880,23 +22880,23 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22880
22880
|
paddingTop: x,
|
|
22881
22881
|
paddingBottom: x,
|
|
22882
22882
|
...Fe.mode === "retracting" ? { pointerEvents: "none" } : null,
|
|
22883
|
-
...
|
|
22883
|
+
...R.style
|
|
22884
22884
|
}, Ve = () => {
|
|
22885
|
-
se.current && clearTimeout(se.current), se.current = null;
|
|
22886
|
-
}, He = () => {
|
|
22887
22885
|
ce.current && clearTimeout(ce.current), ce.current = null;
|
|
22886
|
+
}, He = () => {
|
|
22887
|
+
le.current && clearTimeout(le.current), le.current = null;
|
|
22888
22888
|
}, Ue = () => {
|
|
22889
|
-
Ve(), He(),
|
|
22889
|
+
Ve(), He(), ce.current = setTimeout(() => ie(null), nL);
|
|
22890
22890
|
}, We = (e, t) => {
|
|
22891
22891
|
He();
|
|
22892
22892
|
let n = F.current;
|
|
22893
22893
|
if (n) {
|
|
22894
22894
|
let e = t.getBoundingClientRect().top - n.getBoundingClientRect().top;
|
|
22895
|
-
|
|
22895
|
+
L(Math.max(0, e));
|
|
22896
22896
|
}
|
|
22897
|
-
|
|
22897
|
+
se(Re.current != null), ie(e);
|
|
22898
22898
|
}, Ge = (e, t, n = !1) => {
|
|
22899
|
-
Ve(), He(), Re.current !== e && (n ? We(e, t) :
|
|
22899
|
+
Ve(), He(), Re.current !== e && (n ? We(e, t) : le.current = setTimeout(() => We(e, t), rL));
|
|
22900
22900
|
}, Ke = /* @__PURE__ */ $(B.div, {
|
|
22901
22901
|
ref: (e) => {
|
|
22902
22902
|
F.current = e, typeof O == "function" ? O(e) : O && (O.current = e);
|
|
@@ -22941,7 +22941,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22941
22941
|
variant: "ghost",
|
|
22942
22942
|
size: "md",
|
|
22943
22943
|
compact: !0,
|
|
22944
|
-
onClick: () =>
|
|
22944
|
+
onClick: () => de(!ye),
|
|
22945
22945
|
"aria-label": xe,
|
|
22946
22946
|
children: /* @__PURE__ */ Q(bc, { isExpanded: !ye })
|
|
22947
22947
|
})
|
|
@@ -22952,7 +22952,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22952
22952
|
})]
|
|
22953
22953
|
}),
|
|
22954
22954
|
/* @__PURE__ */ Q("div", {
|
|
22955
|
-
ref:
|
|
22955
|
+
ref: me.ref,
|
|
22956
22956
|
className: W("relative isolate min-h-0 overflow-y-auto", QI),
|
|
22957
22957
|
style: {
|
|
22958
22958
|
gridColumn: 1,
|
|
@@ -22965,7 +22965,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22965
22965
|
paddingLeft: x,
|
|
22966
22966
|
marginRight: we ? -16 : -x,
|
|
22967
22967
|
paddingRight: we ? $I : x,
|
|
22968
|
-
...
|
|
22968
|
+
...me.style
|
|
22969
22969
|
},
|
|
22970
22970
|
children: /* @__PURE__ */ Q(KI, {
|
|
22971
22971
|
side: "main",
|
|
@@ -22981,7 +22981,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22981
22981
|
renderWidget: o,
|
|
22982
22982
|
ctx: C,
|
|
22983
22983
|
virtualized: ge("main"),
|
|
22984
|
-
disableEdition: !
|
|
22984
|
+
disableEdition: !fe("main"),
|
|
22985
22985
|
dragSurfaceSelector: "[data-page-surface]",
|
|
22986
22986
|
onReorder: g ? (e) => g("main", e) : void 0,
|
|
22987
22987
|
onRemoveWidget: d,
|
|
@@ -22989,7 +22989,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
22989
22989
|
rebuildWidget: p,
|
|
22990
22990
|
renderWidgetPreview: m,
|
|
22991
22991
|
paramsPreviewWidth: b,
|
|
22992
|
-
onClickAddNewWidget: h &&
|
|
22992
|
+
onClickAddNewWidget: h && pe("main") ? () => h("main") : void 0,
|
|
22993
22993
|
entrance: { order: je.length },
|
|
22994
22994
|
children: Ne
|
|
22995
22995
|
})
|
|
@@ -23018,7 +23018,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23018
23018
|
onOpen: Ge,
|
|
23019
23019
|
onCancelOpen: He,
|
|
23020
23020
|
onClose: () => ie(null)
|
|
23021
|
-
}, e.id)),
|
|
23021
|
+
}, e.id)), pe("right") && h ? /* @__PURE__ */ Q(_n, {
|
|
23022
23022
|
label: k.widgets.addWidget,
|
|
23023
23023
|
children: /* @__PURE__ */ Q(B.button, {
|
|
23024
23024
|
type: "button",
|
|
@@ -23039,7 +23039,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23039
23039
|
}, "collapsed-strip") }),
|
|
23040
23040
|
" ",
|
|
23041
23041
|
Se ? /* @__PURE__ */ Q(B.aside, {
|
|
23042
|
-
ref:
|
|
23042
|
+
ref: R.ref,
|
|
23043
23043
|
hidden: Ce || Ie && Fe.panelHidden,
|
|
23044
23044
|
className: W("min-h-0 overflow-y-auto overflow-x-hidden", QI, Ie && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Fe.mode === "retracting" && "relative z-10"),
|
|
23045
23045
|
style: Be,
|
|
@@ -23048,7 +23048,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23048
23048
|
opacity: +!!Fe.bodyOut,
|
|
23049
23049
|
scale: Fe.bodyOut ? 1 : RP,
|
|
23050
23050
|
x: Fe.bodyOut ? 0 : 10,
|
|
23051
|
-
y: Ie ?
|
|
23051
|
+
y: Ie ? ae : 0
|
|
23052
23052
|
},
|
|
23053
23053
|
transition: Fe.transition,
|
|
23054
23054
|
onMouseEnter: ye ? Ve : void 0,
|
|
@@ -23063,7 +23063,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23063
23063
|
renderWidget: o,
|
|
23064
23064
|
ctx: C,
|
|
23065
23065
|
virtualized: !Ce && ge("right"),
|
|
23066
|
-
disableEdition: !
|
|
23066
|
+
disableEdition: !fe("right"),
|
|
23067
23067
|
disableDrag: ye || Ce,
|
|
23068
23068
|
dragSurfaceSelector: "[data-page-surface]",
|
|
23069
23069
|
onReorder: g ? (e) => g("right", e) : void 0,
|
|
@@ -23072,7 +23072,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23072
23072
|
rebuildWidget: p,
|
|
23073
23073
|
renderWidgetPreview: m,
|
|
23074
23074
|
paramsPreviewWidth: y,
|
|
23075
|
-
onClickAddNewWidget: h &&
|
|
23075
|
+
onClickAddNewWidget: h && pe("right") && !ye && !Ce ? () => h("right") : void 0,
|
|
23076
23076
|
entrance: { delayMs: 220 },
|
|
23077
23077
|
children: ye ? null : i
|
|
23078
23078
|
})
|
|
@@ -23081,7 +23081,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23081
23081
|
"aria-hidden": !0,
|
|
23082
23082
|
className: "absolute z-10",
|
|
23083
23083
|
style: {
|
|
23084
|
-
top:
|
|
23084
|
+
top: ae,
|
|
23085
23085
|
bottom: 0,
|
|
23086
23086
|
right: 0,
|
|
23087
23087
|
width: 48
|
|
@@ -23124,7 +23124,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23124
23124
|
icon: aL(e.icon),
|
|
23125
23125
|
variant: fL(e.variant),
|
|
23126
23126
|
onClick: () => n(e.action, t ? { elementId: t } : {})
|
|
23127
|
-
})), s = J(() => ({ [uL]: () => /* @__PURE__ */ Q(
|
|
23127
|
+
})), s = J(() => ({ [uL]: () => /* @__PURE__ */ Q(S, {
|
|
23128
23128
|
title: i,
|
|
23129
23129
|
description: a,
|
|
23130
23130
|
emoji: e?.emoji ?? "📭",
|
|
@@ -23143,7 +23143,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23143
23143
|
slotRenderers: s
|
|
23144
23144
|
});
|
|
23145
23145
|
}, mL = ({ message: e }) => {
|
|
23146
|
-
let t = U(), n = J(() => ({ [uL]: () => /* @__PURE__ */ Q(
|
|
23146
|
+
let t = U(), n = J(() => ({ [uL]: () => /* @__PURE__ */ Q(S, {
|
|
23147
23147
|
variant: "critical",
|
|
23148
23148
|
title: t.collections.emptyStates.error.title,
|
|
23149
23149
|
description: e ?? t.collections.emptyStates.error.description
|
|
@@ -23443,7 +23443,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23443
23443
|
}
|
|
23444
23444
|
}, XL = ({ spec: e, label: t, format: n }) => {
|
|
23445
23445
|
let r = JL(n);
|
|
23446
|
-
return /* @__PURE__ */ Q(
|
|
23446
|
+
return /* @__PURE__ */ Q(ct, {
|
|
23447
23447
|
...e,
|
|
23448
23448
|
ariaLabel: t,
|
|
23449
23449
|
valueFormatter: r
|
|
@@ -23712,7 +23712,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23712
23712
|
className: "m-0",
|
|
23713
23713
|
children: AR(e.children)
|
|
23714
23714
|
}, t);
|
|
23715
|
-
case "heading": return /* @__PURE__ */ Q(
|
|
23715
|
+
case "heading": return /* @__PURE__ */ Q(Vt, {
|
|
23716
23716
|
as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
|
|
23717
23717
|
variant: "heading",
|
|
23718
23718
|
content: kR(e)
|
|
@@ -23807,7 +23807,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
23807
23807
|
}
|
|
23808
23808
|
}, zR = (e) => e % 2 == 1 && e !== 3 || e > 4, BR = ({ cards: e }) => {
|
|
23809
23809
|
let t = U();
|
|
23810
|
-
return zR(e.length) ? /* @__PURE__ */ Q(
|
|
23810
|
+
return zR(e.length) ? /* @__PURE__ */ Q(M, {
|
|
23811
23811
|
columns: {
|
|
23812
23812
|
default: 2,
|
|
23813
23813
|
xs: 2,
|
|
@@ -24153,7 +24153,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24153
24153
|
className: "m-0 list-disc space-y-1 pl-5",
|
|
24154
24154
|
children: /* @__PURE__ */ Q(kz, { items: e.items })
|
|
24155
24155
|
}, t))
|
|
24156
|
-
}), Lz = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(
|
|
24156
|
+
}), Lz = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(Vt, {
|
|
24157
24157
|
as: "h2",
|
|
24158
24158
|
variant: "heading-large",
|
|
24159
24159
|
content: e
|
|
@@ -24386,7 +24386,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24386
24386
|
display: "flex",
|
|
24387
24387
|
flexDirection: "column",
|
|
24388
24388
|
gap: "xs",
|
|
24389
|
-
children: [/* @__PURE__ */ Q(
|
|
24389
|
+
children: [/* @__PURE__ */ Q(Vt, {
|
|
24390
24390
|
as: "h1",
|
|
24391
24391
|
variant: "heading-large",
|
|
24392
24392
|
content: e.title
|
|
@@ -24876,7 +24876,7 @@ var qI = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
24876
24876
|
function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
|
|
24877
24877
|
let u = U(), { position: d, width: f, bodyClassName: p, asideClassName: m } = uI(), [h, g] = X(""), [_, v] = X(null), [y, b] = X("pick"), [x, S] = X(!1), C = (e) => {
|
|
24878
24878
|
S(!0), b(e);
|
|
24879
|
-
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } =
|
|
24879
|
+
}, [w, T] = X(null), { formRef: E, getValues: D, trigger: O } = $e(), k = h.trim().toLowerCase(), A = o ?? (a ? kB[a] : kB.right), j = J(() => {
|
|
24880
24880
|
let e = a ? n.filter((e) => !e.areas || e.areas.includes(a)) : n, t = k ? e.filter((e) => e.title.toLowerCase().includes(k)) : e, r = t.filter((e) => e.recommended), o = t.filter((e) => !e.recommended), s = new Set((i ?? []).map((e) => e.id)), c = o.filter((e) => !e.group || !s.has(e.group));
|
|
24881
24881
|
return [
|
|
24882
24882
|
...r.length ? [{
|
|
@@ -24941,7 +24941,7 @@ function LB({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
24941
24941
|
className: W("flex min-h-0 flex-col gap-2", m, x && W("duration-300 ease-out animate-in fade-in motion-reduce:animate-none", I ? "slide-in-from-right-4" : "slide-in-from-left-4")),
|
|
24942
24942
|
children: I && N && P ? /* @__PURE__ */ Q("div", {
|
|
24943
24943
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
24944
|
-
children: /* @__PURE__ */ Q(
|
|
24944
|
+
children: /* @__PURE__ */ Q(_e, {
|
|
24945
24945
|
formRef: E,
|
|
24946
24946
|
name: "widget-params",
|
|
24947
24947
|
schema: P,
|
|
@@ -25281,7 +25281,7 @@ var _V = () => {
|
|
|
25281
25281
|
"sm",
|
|
25282
25282
|
"md",
|
|
25283
25283
|
"md"
|
|
25284
|
-
], CV = ei(xV, () => /* @__PURE__ */ Q(pr, { children: /* @__PURE__ */ Q(xV, { children: SV.map((e, t) => /* @__PURE__ */ Q(
|
|
25284
|
+
], CV = ei(xV, () => /* @__PURE__ */ Q(pr, { children: /* @__PURE__ */ Q(xV, { children: SV.map((e, t) => /* @__PURE__ */ Q(O.Skeleton, { height: e }, t)) }) })), wV = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
25285
25285
|
className: "flex min-h-40 flex-row items-stretch gap-4 text-f1-foreground @container [&>div]:min-w-[calc(100vw-64px)] @2xl:[&>div]:min-w-[calc(50vw-48px)]",
|
|
25286
25286
|
children: e
|
|
25287
25287
|
}), TV = ei(sl(function({ children: e }, t) {
|
|
@@ -25293,16 +25293,16 @@ var _V = () => {
|
|
|
25293
25293
|
}), () => /* @__PURE__ */ Q(pr, {
|
|
25294
25294
|
orientation: "horizontal",
|
|
25295
25295
|
children: /* @__PURE__ */ $(wV, { children: [
|
|
25296
|
-
/* @__PURE__ */ Q(
|
|
25297
|
-
/* @__PURE__ */ Q(
|
|
25298
|
-
/* @__PURE__ */ Q(
|
|
25296
|
+
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25297
|
+
/* @__PURE__ */ Q(O.Skeleton, {}),
|
|
25298
|
+
/* @__PURE__ */ Q(O.Skeleton, {})
|
|
25299
25299
|
] })
|
|
25300
25300
|
}));
|
|
25301
25301
|
//#endregion
|
|
25302
25302
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
25303
25303
|
function EV({ title: e, description: t, emoji: n, actions: r }) {
|
|
25304
25304
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
25305
|
-
return /* @__PURE__ */ Q(
|
|
25305
|
+
return /* @__PURE__ */ Q(S, {
|
|
25306
25306
|
title: e,
|
|
25307
25307
|
description: t,
|
|
25308
25308
|
...n ? { emoji: n } : { variant: "warning" },
|
|
@@ -25337,4 +25337,4 @@ var kV = Cn(Rn("WidgetSection", OV)), AV = ({ identifier: e, allowedRoutes: t, d
|
|
|
25337
25337
|
type: "layout"
|
|
25338
25338
|
}, Io));
|
|
25339
25339
|
//#endregion
|
|
25340
|
-
export { OB as AGENTIC_HOME_SPEC_VERSION,
|
|
25340
|
+
export { OB as AGENTIC_HOME_SPEC_VERSION, p as AUTO_PER_PAGE_MAX, Wt as AUTO_PER_PAGE_MIN_RESERVED_ROWS, Sp as ActivityItemList, xp as ActivityItemListSkeleton, Xl as AiPromotionChat, Zl as AiPromotionChatProvider, Cy as ApplicationFrame, Lt as AreaChart, SN as AreaChartWidget, cN as AutoGrid, Mo as Badge, Je as BarChart, CN as BarChartWidget, bp as BaseActivityItemList, it as BaseBanner, Op as BaseCelebration, Gp as BaseCommunityPost, Li as BaseTabs, ni as BreadcrumbSelect, Wy as Breadcrumbs, Bp as CalendarEvent, RN as CalendarEventList, n as CardSelectableContainer, M as Carousel, et as CategoryBarChart, $N as CategoryBarSection, Ap as Celebration, kp as CelebrationSkeleton, FN as ChartWidgetEmptyState, Qo as Chip, OP as ClockInControls, Nt as CoachmarkProvider, Ct as ComboChart, qp as CommunityPost, nm as CommunityPostCard, Kp as CommunityPostSkeleton, Lx as CompanySelector, hn as Counter, IF as DEFAULT_EXPECTED_ITEMS_COUNT, CV as Dashboard, Fy as DaytimePage, Ai as DetailsItem, ea as DetailsItemsList, zt as Dialog, ji as Dropdown, kF as EVENT_LIST_GAP, Hf as EntitySelect, yt as F0ActionBar, wB as F0AgenticHome, EB as F0AgenticHomeBlock, fe as F0AiBanner, ku as F0AiCallout, wo as F0AvatarModule, $s as F0ButtonToggle, Lu as F0Callout, qr as F0CardHorizontal, qr as F0CardRow, Hd as F0CarouselDialog, UM as F0Chat, ET as F0ChatHistoryLimitCard, Bc as F0ChatProvider, Tw as F0CommandPaletteProvider, sm as F0CommunityPostsCarousel, Yu as F0Confetti, XM as F0ENPSButton, ou as F0EmojiPicker, Ca as F0FileItem, Me as F0FormEditableTable, Ue as F0LocationInput, Mc as F0Map, Tc as F0MapControls, pc as F0MapList, fc as F0MapSidebar, Ec as F0MapSidebarToggle, kc as F0MapSkeleton, ry as F0Meeting, _d as F0MeetingCard, km as F0MeetingProvider, Bv as F0MeetingRoom, iy as F0MeetingSlot, ny as F0MeetingSurface, qt as F0NotesTextEditor, We as F0NotesTextEditorSkeleton, m as F0NumberInput, _ as F0NumberInputInline, lt as F0PhoneInput, $S as F0PrimarySidebar, Xs as F0ProgressSeries, Sd as F0PulseDot, zd as F0Resizable, ze as F0ResourceHeader, ze as ResourceHeader, Va as F0RichTextDisplay, ut as F0RichTextEditor, Is as F0SearchInput, nC as F0SecondarySidebar, Wd as F0SegmentedBar, Ze as F0SegmentedControl, tf as F0SwipeDeck, Ot as F0TableOfContent, up as F0TemplateTextInput, Ht as F0TextAreaInput, d as F0TextAreaInputInline, Ka as F0TextInput, he as F0TextInputInline, mf as F0Timeline, ff as F0VersionHistory, wT as F0_CHAT_HEADER_TITLE_SELECTOR, Os as F1SearchBox, re as FILE_TYPES, sr as FileItem, jp as HighlightBanner, nF as HomeSlotItem, tF as HomeSlotItems, HN as IndicatorsList, Ir as Input, He as Item, st as ItemSectionHeader, jw as LATEST, hF as LIST_COMPACT_AFTER, DF as LIST_MORE_BUTTON_CLASS, ht as LineChart, wN as LineChartWidget, dy as MeetingNotes, ay as MeetingPanelContent, sy as MeetingRoomChat, Rv as MeetingSidePanel, lg as MeetingSurfaceProvider, uy as MeetingTranscript, tS as Menu, lo as MobileDropdown, iL as NewHomeLayout, Gt as NotesTextEditor, R as NotesTextEditorSkeleton, ae as NumberInput, gb as OmniButton, gC as OneApprovalHistory, Es as OneCalendar, xs as OneCalendarInternal, xt as OneDataCollection, l as OneDateNavigator, S as OneEmptyState, fm as OneListItem, dm as OneListItemSkeleton, dt as OnePagination, hm as OnePersonListItem, AV as OneRestrictComponent, vb as Page, fb as PageHeader, Gy as PageHeaderNavigationContext, Ky as PageHeaderNavigationProvider, sa as PageNavigation, at as PieChart, TN as PieChartWidget, T as PrivateBox, rt as ProgressBarChart, DB as RECOMMENDED_AGENTIC_HOME_RULES, yc as RECOMMENDED_MAX_MARKERS, Be as RadarChart, Pp as Reactions, Aa as RichTextDisplay, ee as RichTextEditor, TF as SLOT_ROW_BLEED, LF as SLOT_SKELETON_ITEM_TESTID, jV as ScrollArea, eC as SearchBar, i as SectionHeader, Ws as Select, Zt as Shortcut, aC as Sidebar, tx as SidebarChatBlankState, lx as SidebarChatItem, rx as SidebarChatItemSkeleton, yx as SidebarChatList, ax as SidebarChatListSkeleton, Ob as SidebarChatProvider, zb as SidebarCollapsibleSection, Ux as SidebarFooter, Gx as SidebarHeader, iS as SidebarPanelHeader, $b as SidebarTabPanel, qb as SidebarTabPanelSearch, cC as SidebarTabs, Hx as SidebarUserMenu, cI as SlotWidget, sI as SlotWidgetContent, ps as Spinner, sN as Split, oN as Stack, DN as SummariesWidget, Vs as Switch, Ra as Tabs, to as TabsSkeleton, MP as TasksList, ve as Textarea, _o as ToggleGroup, zi as ToggleGroupItem, _n as Tooltip, yn as TooltipGroup, QN as TwoColumnsList, se as UPLOAD_INPUT_ID, Bt as VerticalBarChart, EN as VerticalBarChartWidget, gf as VirtualList, Cs as WeekStartDay, co as Weekdays, O as Widget, WN as WidgetAvatarsListItem, LB as WidgetCatalog, DV as WidgetEmptyState, BN as WidgetHighlightButton, YN as WidgetInboxList, KN as WidgetInboxListItem, kV as WidgetSection, XN as WidgetSimpleList, JN as WidgetSimpleListItem, TV as WidgetStrip, kt as actionBarStatuses, su as aiCalloutStatuses, yd as attendeesDisplays, mh as buildTiles, Ae as buttonToggleColors, Le as buttonToggleSizes, ue as buttonToggleVariants, Rp as calendarEventVariants, Qs as chipVariants, jl as coachmarks, iw as commandActionRisks, tm as communityPostCardVariants, Ru as confettiPalette, W_ as createMeetingSignalStore, Oc as defaultMapStyle, KF as defaultSlotRenderers, GF as defaultSlotSkeleton, Il as defineStepByStepCoachmarkGuidance, Ke as downloadAsCSV, wC as downloadAsExcel, Ew as f0ChatSenderColors, Ql as f0EmojiPickerSizes, ya as f0FileItemSizes, dc as f0MapMarkerVariants, jc as f0MapStyles, Ch as f0MeetingConnectionQualities, Dh as f0MeetingCoreActionIds, xh as f0MeetingDisconnectReasons, Sh as f0MeetingPermissions, yh as f0MeetingPresences, bh as f0MeetingStatuses, wh as f0MeetingSurfaceDestinations, Th as f0MeetingSurfaceModes, vh as f0MeetingTrackKinds, Tl as f0ProgressSeriesColors, wl as f0ProgressSeriesSizes, Eh as f0WindowCorners, yF as fromParams, Ye as generateCSVContent, be as getAutoPerPageMinHeight, Ys as getGranularityDefinition, Ts as getGranularityDefinitions, ec as getGranularitySimpleDefinition, wc as googleMapStyles, _c as googlePinlessMapStyles, Ks as granularityDefinitions, _F as homeSlot, Xa as isPossiblePhoneValue, Aw as isPost, Dw as isSystemMessage, kw as isUserMessage, fa as isValidPhoneValue, P_ as layoutGrid, g as listIconColors, OF as listMoreButtonClass, vF as listSlot, qf as locationInputSizes, Jf as locationParts, vd as meetingStates, Do as modules, Gh as nearestCorner, cm as oneListItemRowClassName, Yf as phoneInputSizes, Wh as placementFromRect, Pe as predefinedPresets, Cd as pulseDotVariants, CF as railActionTones, Us as rangeSeparator, L_ as reorderForSpeakers, wd as resizableDirections, S_ as resolveAutoFocus, Bs as resolveGranularityDefinition, Uh as resolvePlacement, mF as resolveSlotRenderer, bF as resolveWidgetHeader, vC as seedFromStorage, D as selectSizes, Se as selectVariants, Kh as settlePlacement, EF as slotRowBleed, N_ as solveGrid, R_ as solveSpotlight, cf as swipeDirections, _h as tileAspectRatio, fh as tileKey, Ul as useAiPromotionChat, Cw as useCommandPalette, Cp as useCompactOnScroll, qu as useConfetti, ne as useDataCollectionData, yC as useDataCollectionItemNavigation, me as useDataCollectionSource, Mt as useExportAction, el as useF0Chat, jm as useF0Meeting, Nm as useF0MeetingRoster, Mm as useF0MeetingStable, Am as useHasF0Meeting, o as useInfiniteScrollPagination, eF as useIsBulkChange, J_ as useMeetingSignal, Y_ as useMeetingSpeakers, ug as useMeetingSurface, dg as useMeetingSurfaceOptional, Jy as usePageHeaderItemNavigation, qy as usePageHeaderNavigation, Ei as useSidePanel, uc as useSidebar, Mb as useSidebarChatActions, jb as useSidebarChats, sf as useSwipeDeck, Im as useTrackBinding, Ce as useWidgetIsWide, fy as viewportRect, wF as widgetChrome, SF as widgetParamsAreComplete, xF as widgetTitle };
|