@factorialco/f0-react 16.24.0 → 16.25.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-Ca3fcEzD.js → ChatPostComposerDialog-BkVTdJP1.js} +1 -1
- package/dist/{CoachmarkProvider-Bw3qcSzA.js → CoachmarkProvider-C9Oflsz-.js} +14737 -14735
- package/dist/{F0Map-ClnO_2tF.js → F0Map-YL4dv1Z1.js} +2 -2
- package/dist/{Map-Cs17xyE6.js → Map-BSw_AafU.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +12 -3
- package/dist/experimental.js +186 -182
- package/dist/{exports-Ov8gD_6H.d.ts → exports-BLEz8iU-.d.ts} +1 -1
- package/dist/f0.d.ts +2650 -2729
- package/dist/f0.js +1423 -1330
- package/dist/{index-DIIVN_RC.d.ts → index-DUvBbZtb.d.ts} +971 -12
- package/dist/{types-GYsHhskI.d.ts → index-rB6-YKod.d.ts} +10 -818
- package/dist/{maplibre-Vwv9Nk1T.js → maplibre-D5-cJ0JA.js} +1 -1
- package/dist/styles.css +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, $t as i, Ar as a, At as o, B as s, Br as c, Bt as l, C as u, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, Jr as M, K as N, Kr as P, Kt as F, L as I, Ln as ee, Lr as te, Mn as ne, Mr as re, Mt as ie, N as ae, Nn as oe, Nr as se, Or as ce, P as le, Pn as ue, Pr as de, Q as fe, Qn as pe, Qr as me, R as he, Rn as ge, Rr as _e, Rt as ve, S as L, Si as ye, Sn as be, Sr as xe, St as Se, T as Ce, Ti as we, Tt as Te, U as Ee, Ur as De, V as Oe, Vr as ke, W as Ae, Wr as je, X as Me, Xn as Ne, Xr as Pe, Xt as Fe, Y as Ie, Yn as Le, Z as Re, Zn as ze, Zr as Be, Zt as Ve, _ as He, _i as Ue, _n as We, _r as Ge, ai as Ke, an as qe, ar as Je, at as Ye, b as Xe, bi as Ze, bn as Qe, br as $e, ci as et, cr as tt, ct as nt, d as rt, di as it, dn as at, dt as ot, et as st, fn as ct, g as lt, gi as ut, gn as dt, h as ft, hi as pt, hn as mt, ii as ht, in as gt, ir as _t, it as vt, jr as yt, jt as bt, kr as xt, kt as St, li as Ct, lr as wt, lt as Tt, mi as Et, mn as Dt, n as Ot, ni as kt, nt as At, oi as jt, or as Mt, ot as Nt, p as Pt, pi as Ft, pn as It, pt as Lt, q as Rt, qr as zt, r as Bt, ri as Vt, rn as Ht, rr as Ut, rt as Wt, s as Gt, si as Kt, sr as qt, st as Jt, t as Yt, ti as Xt, tr as Zt, tt as Qt, ui as $t, ur as en, ut as tn, v as nn, vi as rn, vn as an, vr as on, w as sn, wi as cn, wr as ln, wt as un, x as dn, xi as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zr as yn } from "./CoachmarkProvider-
|
|
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, Cr as d, Ct as f, D as p, Dr as m, Dt as h, E as g, Er as _, Et as v, F as y, Fn as b, Fr as x, Ft as S, G as C, Gr as w, H as T, Hr as E, I as D, In as O, Ir as k, It as A, J as j, Jr as M, K as N, Kr as P, Kt as F, L as I, Ln as ee, Lr as te, Mn as ne, Mr as re, Mt as ie, N as ae, Nn as oe, Nr as se, Or as ce, P as le, Pn as ue, Pr as de, Q as fe, Qn as pe, Qr as me, R as he, Rn as ge, Rr as _e, Rt as ve, S as L, Si as ye, Sn as be, Sr as xe, St as Se, T as Ce, Ti as we, Tt as Te, U as Ee, Ur as De, V as Oe, Vr as ke, W as Ae, Wr as je, X as Me, Xn as Ne, Xr as Pe, Xt as Fe, Y as Ie, Yn as Le, Z as Re, Zn as ze, Zr as Be, Zt as Ve, _ as He, _i as Ue, _n as We, _r as Ge, ai as Ke, an as qe, ar as Je, at as Ye, b as Xe, bi as Ze, bn as Qe, br as $e, ci as et, cr as tt, ct as nt, d as rt, di as it, dn as at, dt as ot, et as st, fn as ct, g as lt, gi as ut, gn as dt, h as ft, hi as pt, hn as mt, ii as ht, in as gt, ir as _t, it as vt, jr as yt, jt as bt, kr as xt, kt as St, li as Ct, lr as wt, lt as Tt, mi as Et, mn as Dt, n as Ot, ni as kt, nt as At, oi as jt, or as Mt, ot as Nt, p as Pt, pi as Ft, pn as It, pt as Lt, q as Rt, qr as zt, r as Bt, ri as Vt, rn as Ht, rr as Ut, rt as Wt, s as Gt, si as Kt, sr as qt, st as Jt, t as Yt, ti as Xt, tr as Zt, tt as Qt, ui as $t, ur as en, ut as tn, v as nn, vi as rn, vn as an, vr as on, w as sn, wi as cn, wr as ln, wt as un, x as dn, xi as fn, xr as pn, y as mn, yi as hn, yn as gn, yr as _n, z as vn, zr as yn } from "./CoachmarkProvider-C9Oflsz-.js";
|
|
3
3
|
import { a as bn, c as xn, d as Sn, i as Cn, l as wn, r as R } from "./i18n-provider-CCg0vfdK.js";
|
|
4
4
|
import { n as Tn, t as z } from "./skeleton-B05pNPYx.js";
|
|
5
5
|
import { L as B, R as En, a as Dn, i as On, o as kn, r as An, t as jn } from "./tooltip-NXXT56H4.js";
|
|
@@ -21,7 +21,7 @@ import { t as Xl } from "./F0Text-C69-6-hA.js";
|
|
|
21
21
|
import { a as Zl, i as Ql, n as $l, r as eu, s as tu, t as nu } from "./dist-DMTFO2gF.js";
|
|
22
22
|
import './maplibre-gl.css';import './RichText.css';/* empty css */
|
|
23
23
|
import { t as ru } from "./useFullscreen-CNwpzjpz.js";
|
|
24
|
-
import { _ as iu, a as au, b as ou, c as su, d as cu, f as lu, g as uu, h as du, i as fu, l as pu, m as mu, n as hu, o as gu, p as _u, r as vu, t as yu, u as bu, v as xu, y as Su } from "./F0Map-
|
|
24
|
+
import { _ as iu, a as au, b as ou, c as su, d as cu, f as lu, g as uu, h as du, i as fu, l as pu, m as mu, n as hu, o as gu, p as _u, r as vu, t as yu, u as bu, v as xu, y as Su } from "./F0Map-YL4dv1Z1.js";
|
|
25
25
|
import { _ as Cu, a as wu, c as Tu, d as Eu, f as Du, g as Ou, h as ku, i as Au, l as ju, m as Mu, n as Nu, o as Pu, p as Fu, r as Iu, s as Lu, t as Ru, u as zu } from "./posts-riN1RZ23.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import Bu, { Children as Vu, Fragment as Hu, Suspense as Uu, cloneElement as Wu, createContext as Gu, forwardRef as Ku, isValidElement as qu, lazy as Ju, memo as Yu, useCallback as G, useContext as Xu, useEffect as K, useId as Zu, useImperativeHandle as Qu, useInsertionEffect as $u, useLayoutEffect as q, useMemo as J, useReducer as ed, useRef as Y, useState as X, useSyncExternalStore as td, useTransition as nd } from "react";
|
|
@@ -26028,7 +26028,7 @@ var aG = ({ channel: e }) => {
|
|
|
26028
26028
|
onJumpToBottom: Te
|
|
26029
26029
|
}) : null]
|
|
26030
26030
|
});
|
|
26031
|
-
}, vG = Ju(() => import("./ChatPostComposerDialog-
|
|
26031
|
+
}, vG = Ju(() => import("./ChatPostComposerDialog-BkVTdJP1.js").then((e) => ({ default: e.ChatPostComposerDialog }))), yG = () => {
|
|
26032
26032
|
let e = R(), { createPost: t, composePost: n, searchMembers: r } = zu(), i = Du(), [a, o] = X(!1);
|
|
26033
26033
|
return !t && !n ? null : /* @__PURE__ */ $("div", {
|
|
26034
26034
|
className: "pointer-events-none shrink-0 p-4 pt-0",
|
|
@@ -33719,22 +33719,26 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33719
33719
|
}, i2 = (e) => {
|
|
33720
33720
|
let t = Zn();
|
|
33721
33721
|
return G((n) => r2(e, n, t), [e, t]);
|
|
33722
|
-
}, a2 = 64, o2 = 32, s2 =
|
|
33723
|
-
let [
|
|
33724
|
-
return q(()
|
|
33725
|
-
let
|
|
33726
|
-
if (!
|
|
33727
|
-
let
|
|
33728
|
-
room:
|
|
33729
|
-
wide:
|
|
33730
|
-
lead:
|
|
33722
|
+
}, a2 = 64, o2 = 32, s2 = "pt-16 md:pt-8", c2 = 768, l2 = (e, { enabled: t = !0 } = {}) => {
|
|
33723
|
+
let [n, r] = X(null), [i, a] = X();
|
|
33724
|
+
return q(function() {
|
|
33725
|
+
let r = e.current;
|
|
33726
|
+
if (!t || !r || !n || typeof ResizeObserver != "function") return;
|
|
33727
|
+
let i = new ResizeObserver(() => a({
|
|
33728
|
+
room: r.clientHeight,
|
|
33729
|
+
wide: r.clientWidth >= c2,
|
|
33730
|
+
lead: n.offsetHeight
|
|
33731
33731
|
}));
|
|
33732
|
-
return
|
|
33733
|
-
}, [
|
|
33734
|
-
|
|
33735
|
-
|
|
33732
|
+
return i.observe(r), i.observe(n), () => i.disconnect();
|
|
33733
|
+
}, [
|
|
33734
|
+
e,
|
|
33735
|
+
n,
|
|
33736
|
+
t
|
|
33737
|
+
]), {
|
|
33738
|
+
lead: r,
|
|
33739
|
+
topInset: t && i && i.room > 0 ? Math.max(i.wide ? o2 : a2, (i.room - i.lead) / 2) : void 0
|
|
33736
33740
|
};
|
|
33737
|
-
},
|
|
33741
|
+
}, u2 = (e, t, n) => {
|
|
33738
33742
|
let r = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
33739
33743
|
for (let o of e.elements) {
|
|
33740
33744
|
if (!mQ(t, o.type)) {
|
|
@@ -33779,14 +33783,14 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33779
33783
|
...e,
|
|
33780
33784
|
elements: r
|
|
33781
33785
|
};
|
|
33782
|
-
},
|
|
33786
|
+
}, d2 = (e, t, n) => {
|
|
33783
33787
|
let r = e;
|
|
33784
33788
|
return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
|
|
33785
33789
|
rule: "maxSections",
|
|
33786
33790
|
limit: t.maxSections,
|
|
33787
33791
|
droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
|
|
33788
|
-
}), r = r.slice(0, t.maxSections)), r.map((e, r) =>
|
|
33789
|
-
},
|
|
33792
|
+
}), r = r.slice(0, t.maxSections)), r.map((e, r) => u2(e, vQ(t, r === 0), n));
|
|
33793
|
+
}, f2 = (e, t, n) => {
|
|
33790
33794
|
if (e.type !== "text" || !t.text) return;
|
|
33791
33795
|
let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
|
|
33792
33796
|
return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
|
|
@@ -33797,14 +33801,14 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33797
33801
|
...i === void 0 ? {} : { minLength: i },
|
|
33798
33802
|
...a === void 0 ? {} : { maxLength: a }
|
|
33799
33803
|
};
|
|
33800
|
-
},
|
|
33804
|
+
}, p2 = (e, t, n) => {
|
|
33801
33805
|
let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
|
|
33802
33806
|
t.forEach((e, t) => {
|
|
33803
33807
|
let o = e.min ?? 1, s = e.max ?? 1, c = 0;
|
|
33804
33808
|
for (; c < s && a < r.length && e.types.includes(r[a].type);) {
|
|
33805
33809
|
let o = r[a];
|
|
33806
33810
|
a += 1, c += 1;
|
|
33807
|
-
let s =
|
|
33811
|
+
let s = f2(o, e, t);
|
|
33808
33812
|
s && (i.add(o.id), n.push(s));
|
|
33809
33813
|
}
|
|
33810
33814
|
c < o && n.push({
|
|
@@ -33823,11 +33827,11 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33823
33827
|
...e,
|
|
33824
33828
|
elements: e.elements.filter(({ id: e }) => !i.has(e))
|
|
33825
33829
|
}));
|
|
33826
|
-
},
|
|
33830
|
+
}, m2 = (e) => typeof e == "object" && !!e, h2 = (e) => {
|
|
33827
33831
|
let t = e.widget, n = Array.isArray(e.sections);
|
|
33828
|
-
return t === void 0 ? n ? "sections" : null :
|
|
33829
|
-
},
|
|
33830
|
-
if (!
|
|
33832
|
+
return t === void 0 ? n ? "sections" : null : m2(t) && t.type === "widget" && typeof t.id == "string" && m2(t.source) && !n ? "widget" : null;
|
|
33833
|
+
}, g2 = (e, t, n) => {
|
|
33834
|
+
if (!h2(e)) return n.push({ rule: "accessoryViewBody" }), [];
|
|
33831
33835
|
let r = t.rules ?? {};
|
|
33832
33836
|
if (e.widget) return mQ(r, "widget") ? [e] : (n.push({
|
|
33833
33837
|
rule: "allowedBlockTypes",
|
|
@@ -33835,28 +33839,28 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33835
33839
|
elementId: e.widget.id,
|
|
33836
33840
|
blockType: "widget"
|
|
33837
33841
|
}), []);
|
|
33838
|
-
let i =
|
|
33842
|
+
let i = d2(e.sections, r, n), a = t.shape ? p2(i, t.shape, n) : i;
|
|
33839
33843
|
return [{
|
|
33840
33844
|
...e,
|
|
33841
33845
|
sections: a
|
|
33842
33846
|
}];
|
|
33843
|
-
},
|
|
33847
|
+
}, _2 = (e, t, n) => e.flatMap((e) => {
|
|
33844
33848
|
let r = t.find((t) => t.type === e.type);
|
|
33845
33849
|
if (!r) return n.push({
|
|
33846
33850
|
rule: "accessoryViewType",
|
|
33847
33851
|
accessoryViewId: e.id,
|
|
33848
33852
|
viewType: e.type
|
|
33849
33853
|
}), [];
|
|
33850
|
-
let i = [], a =
|
|
33854
|
+
let i = [], a = g2(e, r, i);
|
|
33851
33855
|
return n.push(...i.map((t) => ({
|
|
33852
33856
|
...t,
|
|
33853
33857
|
accessoryViewId: e.id
|
|
33854
33858
|
}))), a;
|
|
33855
|
-
}),
|
|
33856
|
-
let r = [], i = MQ(
|
|
33859
|
+
}), v2 = (e, t, n = []) => {
|
|
33860
|
+
let r = [], i = MQ(d2(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
|
|
33857
33861
|
rule: "sectionTitle",
|
|
33858
33862
|
sectionId: e.id
|
|
33859
|
-
}), !1)), t, r), r), a = e.accessoryViews ?
|
|
33863
|
+
}), !1)), t, r), r), a = e.accessoryViews ? _2(e.accessoryViews, n, r) : void 0, o = {
|
|
33860
33864
|
...e,
|
|
33861
33865
|
sections: i,
|
|
33862
33866
|
...a ? { accessoryViews: a } : {}
|
|
@@ -33865,9 +33869,9 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33865
33869
|
spec: o,
|
|
33866
33870
|
violations: [...r, ...DQ(o)]
|
|
33867
33871
|
};
|
|
33868
|
-
},
|
|
33872
|
+
}, y2 = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
|
|
33869
33873
|
let a = J(() => {
|
|
33870
|
-
let i =
|
|
33874
|
+
let i = v2(e, n ?? {}, r), a = t ? IQ(t, i.spec, n ?? {}, r) : {
|
|
33871
33875
|
sources: t,
|
|
33872
33876
|
violations: []
|
|
33873
33877
|
};
|
|
@@ -33890,7 +33894,7 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33890
33894
|
let e = JSON.parse(s);
|
|
33891
33895
|
e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
|
|
33892
33896
|
}, [s]), a;
|
|
33893
|
-
},
|
|
33897
|
+
}, b2 = (e, t, n) => {
|
|
33894
33898
|
let r = Y(n);
|
|
33895
33899
|
K(() => {
|
|
33896
33900
|
r.current = n;
|
|
@@ -33905,7 +33909,7 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33905
33909
|
t,
|
|
33906
33910
|
i
|
|
33907
33911
|
]);
|
|
33908
|
-
},
|
|
33912
|
+
}, x2 = 1164, S2 = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
|
|
33909
33913
|
let i = Y(null), [a, o] = X(0);
|
|
33910
33914
|
q(() => {
|
|
33911
33915
|
let e = i.current;
|
|
@@ -33920,138 +33924,138 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
33920
33924
|
defaultProp: n,
|
|
33921
33925
|
onChange: r,
|
|
33922
33926
|
caller: "F0AgenticHome"
|
|
33923
|
-
}), l = e && (a === 0 || a >=
|
|
33927
|
+
}), l = e && (a === 0 || a >= x2);
|
|
33924
33928
|
return {
|
|
33925
33929
|
root: i,
|
|
33926
33930
|
collapsed: !l || s,
|
|
33927
33931
|
toggle: l ? () => c(!s) : void 0
|
|
33928
33932
|
};
|
|
33929
|
-
},
|
|
33933
|
+
}, C2 = (e, t) => {
|
|
33930
33934
|
let n = Object.keys(e.params);
|
|
33931
33935
|
return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
|
|
33932
|
-
},
|
|
33936
|
+
}, w2 = (e, t) => {
|
|
33933
33937
|
let { missingParams: n, undeclaredParams: r } = yQ(e, t);
|
|
33934
33938
|
return n.length === 0 && r.length === 0;
|
|
33935
|
-
},
|
|
33936
|
-
let { spec:
|
|
33939
|
+
}, T2 = {}, E2 = (e, t, n, r) => !n || r && C2(r, t) ? e : T2, D2 = "pt-[max(4rem,22vh)]", O2 = "pb-40", k2 = "pb-10", A2 = (e, t) => e ? t && "md:px-20" : "pr-[428px]", j2 = Ku(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, leadPosition: i = "center", widgets: a = [], widgetsCollapsed: o, defaultWidgetsCollapsed: s = !0, onWidgetsCollapsedChange: c, onClickAddWidget: l, addableWidgetContainers: u = ["right"], onRemoveWidget: d, onReorderWidgets: f, onChangeWidgetParams: p, sources: m, sourcesFor: h, onAccessoryViewOpen: g, onAccessoryViewClose: _, onAction: v, composer: y, onComposerVisibilityChange: b, rules: x, onRulesViolation: S, accessoryViewTypes: C, slotRenderers: w, renderMention: T }, E) {
|
|
33940
|
+
let { spec: D, sources: O } = y2({
|
|
33937
33941
|
spec: e,
|
|
33938
|
-
sources:
|
|
33939
|
-
rules:
|
|
33940
|
-
accessoryViewTypes:
|
|
33941
|
-
onRulesViolation:
|
|
33942
|
-
}),
|
|
33943
|
-
Qu(
|
|
33944
|
-
let
|
|
33945
|
-
hasWidgets:
|
|
33946
|
-
collapsed:
|
|
33947
|
-
defaultCollapsed:
|
|
33948
|
-
onCollapsedChange:
|
|
33949
|
-
}),
|
|
33950
|
-
ref:
|
|
33951
|
-
children:
|
|
33952
|
-
}) : null, [
|
|
33953
|
-
if (e.type === "goToSection" &&
|
|
33954
|
-
let t =
|
|
33942
|
+
sources: m,
|
|
33943
|
+
rules: x,
|
|
33944
|
+
accessoryViewTypes: C,
|
|
33945
|
+
onRulesViolation: S
|
|
33946
|
+
}), k = R(), A = Y(null), j = Y(null);
|
|
33947
|
+
Qu(E, () => A.current), b2(A, j, b);
|
|
33948
|
+
let M = i2(A), N = S2({
|
|
33949
|
+
hasWidgets: a.length > 0,
|
|
33950
|
+
collapsed: o,
|
|
33951
|
+
defaultCollapsed: s,
|
|
33952
|
+
onCollapsedChange: c
|
|
33953
|
+
}), P = (e) => l && u.includes(e) ? () => l(e) : void 0, F = P("right"), I = P("main"), ee = a.length > 0 || !!F, te = i === "center", ne = l2(A, { enabled: te }), re = y ? /* @__PURE__ */ Q(j0, {
|
|
33954
|
+
ref: j,
|
|
33955
|
+
children: y
|
|
33956
|
+
}) : null, [ie, ...ae] = D.sections, [oe, se] = X(), ce = D.accessoryViews?.find(({ id: e }) => e === oe?.id), le = C?.find(({ type: e }) => e === ce?.type), ue = J(() => (e, t) => {
|
|
33957
|
+
if (e.type === "goToSection" && M(e.sectionId), e.type === "openAccessoryView") {
|
|
33958
|
+
let t = D.accessoryViews?.find(({ id: t }) => t === e.id);
|
|
33955
33959
|
if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
|
|
33956
|
-
else if (
|
|
33960
|
+
else if (w2(t, e.params)) {
|
|
33957
33961
|
let n = {
|
|
33958
33962
|
id: t.id,
|
|
33959
33963
|
params: e.params ?? {}
|
|
33960
33964
|
};
|
|
33961
|
-
|
|
33965
|
+
se({
|
|
33962
33966
|
...n,
|
|
33963
33967
|
open: !0
|
|
33964
|
-
}),
|
|
33968
|
+
}), g?.(n);
|
|
33965
33969
|
}
|
|
33966
33970
|
}
|
|
33967
|
-
|
|
33971
|
+
v?.(e, t);
|
|
33968
33972
|
}, [
|
|
33969
|
-
|
|
33970
|
-
|
|
33971
|
-
|
|
33972
|
-
|
|
33973
|
+
v,
|
|
33974
|
+
M,
|
|
33975
|
+
g,
|
|
33976
|
+
D.accessoryViews
|
|
33973
33977
|
]);
|
|
33974
33978
|
return /* @__PURE__ */ Q(B1, {
|
|
33975
|
-
value:
|
|
33979
|
+
value: w,
|
|
33976
33980
|
children: /* @__PURE__ */ Q(s0, {
|
|
33977
|
-
value:
|
|
33981
|
+
value: T,
|
|
33978
33982
|
children: /* @__PURE__ */ $("div", {
|
|
33979
|
-
ref:
|
|
33983
|
+
ref: N.root,
|
|
33980
33984
|
className: "relative h-full min-h-0 w-full",
|
|
33981
33985
|
children: [
|
|
33982
33986
|
/* @__PURE__ */ $("div", {
|
|
33983
|
-
ref:
|
|
33984
|
-
className: B("h-full w-full overflow-y-auto bg-f1-background px-6 pb-page-room scroll-pb-page-room", "transition-[padding] duration-reveal ease-out-swift motion-reduce:transition-none",
|
|
33987
|
+
ref: A,
|
|
33988
|
+
className: B("h-full w-full overflow-y-auto bg-f1-background px-6 pb-page-room scroll-pb-page-room", "transition-[padding] duration-reveal ease-out-swift motion-reduce:transition-none", A2(N.collapsed, ee)),
|
|
33985
33989
|
children: [/* @__PURE__ */ $("div", {
|
|
33986
|
-
className: B("mx-auto flex w-full max-w-content flex-col gap-20", Vy,
|
|
33987
|
-
style:
|
|
33990
|
+
className: B("mx-auto flex w-full max-w-content flex-col gap-20", Vy, te ? D2 : s2, y && b ? O2 : k2),
|
|
33991
|
+
style: ne.topInset === void 0 ? void 0 : { paddingTop: ne.topInset },
|
|
33988
33992
|
children: [
|
|
33989
33993
|
/* @__PURE__ */ $("div", {
|
|
33990
|
-
ref:
|
|
33994
|
+
ref: ne.lead,
|
|
33991
33995
|
className: "flex flex-col gap-20",
|
|
33992
33996
|
children: [
|
|
33993
33997
|
t ? /* @__PURE__ */ Q(M0, { greeting: t }) : null,
|
|
33994
|
-
|
|
33995
|
-
|
|
33998
|
+
ie ? null : re,
|
|
33999
|
+
ie ? /* @__PURE__ */ Q(E0, {
|
|
33996
34000
|
size: "lead",
|
|
33997
|
-
section:
|
|
33998
|
-
sources:
|
|
33999
|
-
onAction:
|
|
34000
|
-
composer:
|
|
34001
|
-
},
|
|
34001
|
+
section: ie,
|
|
34002
|
+
sources: O,
|
|
34003
|
+
onAction: ue,
|
|
34004
|
+
composer: re
|
|
34005
|
+
}, ie.id) : null
|
|
34002
34006
|
]
|
|
34003
34007
|
}),
|
|
34004
|
-
|
|
34008
|
+
ae.map((e) => /* @__PURE__ */ Q(E0, {
|
|
34005
34009
|
section: e,
|
|
34006
|
-
sources:
|
|
34007
|
-
onAction:
|
|
34010
|
+
sources: O,
|
|
34011
|
+
onAction: ue
|
|
34008
34012
|
}, e.id)),
|
|
34009
|
-
|
|
34013
|
+
I ? /* @__PURE__ */ Q("div", {
|
|
34010
34014
|
className: "-mt-12",
|
|
34011
34015
|
children: /* @__PURE__ */ Q(LZ, {
|
|
34012
|
-
onClick:
|
|
34013
|
-
label:
|
|
34016
|
+
onClick: I,
|
|
34017
|
+
label: k.widgets.addWidget,
|
|
34014
34018
|
side: "main"
|
|
34015
34019
|
})
|
|
34016
34020
|
}) : null
|
|
34017
34021
|
]
|
|
34018
|
-
}),
|
|
34019
|
-
view:
|
|
34020
|
-
params:
|
|
34021
|
-
presentation:
|
|
34022
|
-
width:
|
|
34023
|
-
bleed:
|
|
34024
|
-
isOpen:
|
|
34022
|
+
}), oe && ce && le ? /* @__PURE__ */ Q(A0, {
|
|
34023
|
+
view: ce,
|
|
34024
|
+
params: oe.params,
|
|
34025
|
+
presentation: le.presentation,
|
|
34026
|
+
width: le.width,
|
|
34027
|
+
bleed: le.bleed,
|
|
34028
|
+
isOpen: oe.open,
|
|
34025
34029
|
onClose: () => {
|
|
34026
|
-
|
|
34030
|
+
se((e) => e && {
|
|
34027
34031
|
...e,
|
|
34028
34032
|
open: !1
|
|
34029
|
-
}),
|
|
34033
|
+
}), _?.();
|
|
34030
34034
|
},
|
|
34031
|
-
sources:
|
|
34032
|
-
onAction:
|
|
34035
|
+
sources: E2(O, oe, !!ce.params?.length, h),
|
|
34036
|
+
onAction: ue
|
|
34033
34037
|
}) : null]
|
|
34034
34038
|
}),
|
|
34035
34039
|
r ? /* @__PURE__ */ Q("div", {
|
|
34036
34040
|
className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
|
|
34037
34041
|
children: /* @__PURE__ */ Q(SY, {})
|
|
34038
34042
|
}) : null,
|
|
34039
|
-
n ||
|
|
34040
|
-
widgets:
|
|
34041
|
-
collapsed:
|
|
34042
|
-
onToggleCollapsed:
|
|
34043
|
-
onReorder:
|
|
34044
|
-
onAdd:
|
|
34045
|
-
onRemove:
|
|
34046
|
-
onChangeParams:
|
|
34047
|
-
slotRenderers:
|
|
34043
|
+
n || ee ? /* @__PURE__ */ Q(n2, {
|
|
34044
|
+
widgets: a,
|
|
34045
|
+
collapsed: N.collapsed,
|
|
34046
|
+
onToggleCollapsed: N.toggle,
|
|
34047
|
+
onReorder: f,
|
|
34048
|
+
onAdd: F,
|
|
34049
|
+
onRemove: d,
|
|
34050
|
+
onChangeParams: p,
|
|
34051
|
+
slotRenderers: w,
|
|
34048
34052
|
clockIn: n
|
|
34049
34053
|
}) : null
|
|
34050
34054
|
]
|
|
34051
34055
|
})
|
|
34052
34056
|
})
|
|
34053
34057
|
});
|
|
34054
|
-
}),
|
|
34058
|
+
}), M2 = Tn("F0AgenticHome", j2), N2 = Ku(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
|
|
34055
34059
|
let a = J(() => (e, t) => n?.(e, t), [n]);
|
|
34056
34060
|
return /* @__PURE__ */ Q("div", {
|
|
34057
34061
|
ref: i,
|
|
@@ -34064,7 +34068,7 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
34064
34068
|
})
|
|
34065
34069
|
})
|
|
34066
34070
|
});
|
|
34067
|
-
}),
|
|
34071
|
+
}), P2 = Tn("F0AgenticHomeBlock", N2), F2 = {
|
|
34068
34072
|
maxSections: 12,
|
|
34069
34073
|
maxElementsPerSection: 3,
|
|
34070
34074
|
blocks: [
|
|
@@ -34111,10 +34115,10 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
34111
34115
|
type: "list",
|
|
34112
34116
|
itemActions: ["goToSection"]
|
|
34113
34117
|
}] }
|
|
34114
|
-
},
|
|
34118
|
+
}, I2 = 1, L2 = {
|
|
34115
34119
|
main: 672,
|
|
34116
34120
|
right: 396
|
|
34117
|
-
},
|
|
34121
|
+
}, R2 = 250, z2 = (e) => typeof e == "object" && !!e && !qu(e) && Array.isArray(e.slots), B2 = ({ preview: e, params: t, slotRenderers: n }) => z2(e) ? /* @__PURE__ */ Q(JX, {
|
|
34118
34122
|
...uX(e),
|
|
34119
34123
|
header: e.header,
|
|
34120
34124
|
params: t ?? e.params,
|
|
@@ -34122,7 +34126,7 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
34122
34126
|
slots: e.slots,
|
|
34123
34127
|
loading: e.loading,
|
|
34124
34128
|
slotRenderers: n
|
|
34125
|
-
}) : /* @__PURE__ */ Q(Z, { children: e }),
|
|
34129
|
+
}) : /* @__PURE__ */ Q(Z, { children: e }), V2 = (e, t, n) => e.info ?? (z2(t) ? oX(t.header, n ?? t.params)?.info : void 0), H2 = (e) => e.paramsSchema ?? (z2(e.preview) ? e.preview.paramsSchema : void 0), U2 = (e) => e.params ?? (z2(e.preview) ? e.preview.params : void 0) ?? {}, W2 = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
|
|
34126
34130
|
className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
|
|
34127
34131
|
children: [t ? /* @__PURE__ */ Q(U, {
|
|
34128
34132
|
icon: t,
|
|
@@ -34133,10 +34137,10 @@ var A$ = Gu(null), j$ = () => Xu(A$), M$ = ({ action: e, rows: t, ...n }, r, i)
|
|
|
34133
34137
|
children: e
|
|
34134
34138
|
})]
|
|
34135
34139
|
});
|
|
34136
|
-
function
|
|
34140
|
+
function G2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: l = "Add widget" }) {
|
|
34137
34141
|
let u = R(), { position: d, width: f, bodyClassName: m, asideClassName: h } = XX(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
|
|
34138
34142
|
C(!0), x(e);
|
|
34139
|
-
}, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = be(), A = g.trim().toLowerCase(), j = o ?? (a ?
|
|
34143
|
+
}, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = be(), A = g.trim().toLowerCase(), j = o ?? (a ? L2[a] : L2.right), M = J(() => {
|
|
34140
34144
|
let e = a ? n.filter((e) => !e.areas || e.areas.includes(a)) : n, t = A ? e.filter((e) => e.title.toLowerCase().includes(A)) : 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));
|
|
34141
34145
|
return [
|
|
34142
34146
|
...r.length ? [{
|
|
@@ -34161,7 +34165,7 @@ function W2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34161
34165
|
A,
|
|
34162
34166
|
a,
|
|
34163
34167
|
u
|
|
34164
|
-
]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ?
|
|
34168
|
+
]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? H2(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && cX(F, U2(P))), ee = b === "configure" && I, te = P && T?.id === P.id ? T.params : P ? U2(P) : {}, ne = ee && P && c ? c(P, te) : P?.preview;
|
|
34165
34169
|
return K(() => {
|
|
34166
34170
|
e && (x("pick"), C(!1), E(null));
|
|
34167
34171
|
}, [e]), K(() => {
|
|
@@ -34208,7 +34212,7 @@ function W2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34208
34212
|
defaultValues: te,
|
|
34209
34213
|
submitConfig: {
|
|
34210
34214
|
type: "autosubmit",
|
|
34211
|
-
delay:
|
|
34215
|
+
delay: R2,
|
|
34212
34216
|
hideActionBar: !0
|
|
34213
34217
|
},
|
|
34214
34218
|
styling: { noPadding: !0 },
|
|
@@ -34223,7 +34227,7 @@ function W2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34223
34227
|
placeholder: "Search widgets"
|
|
34224
34228
|
}), /* @__PURE__ */ $("div", {
|
|
34225
34229
|
className: "flex flex-col gap-1 overflow-y-auto",
|
|
34226
|
-
children: [M.map((e) => /* @__PURE__ */ $(Hu, { children: [e.label ? /* @__PURE__ */ Q(
|
|
34230
|
+
children: [M.map((e) => /* @__PURE__ */ $(Hu, { children: [e.label ? /* @__PURE__ */ Q(W2, {
|
|
34227
34231
|
label: e.label,
|
|
34228
34232
|
icon: e.icon
|
|
34229
34233
|
}) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
|
|
@@ -34244,9 +34248,9 @@ function W2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34244
34248
|
})] })
|
|
34245
34249
|
}, b), /* @__PURE__ */ Q(QX, {
|
|
34246
34250
|
previewKey: P?.id,
|
|
34247
|
-
info: P ?
|
|
34251
|
+
info: P ? V2(P, ne, ee ? te : void 0) : void 0,
|
|
34248
34252
|
previewWidth: j,
|
|
34249
|
-
children: P ? /* @__PURE__ */ Q(
|
|
34253
|
+
children: P ? /* @__PURE__ */ Q(B2, {
|
|
34250
34254
|
preview: ne,
|
|
34251
34255
|
params: ee ? te : void 0,
|
|
34252
34256
|
slotRenderers: s
|
|
@@ -34257,62 +34261,62 @@ function W2({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
34257
34261
|
}
|
|
34258
34262
|
//#endregion
|
|
34259
34263
|
//#region ../../node_modules/.bun/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
|
|
34260
|
-
var
|
|
34264
|
+
var K2 = Object.defineProperty, q2 = Object.defineProperties, J2 = Object.getOwnPropertyDescriptors, Y2 = Object.getOwnPropertySymbols, X2 = Object.prototype.hasOwnProperty, Z2 = Object.prototype.propertyIsEnumerable, Q2 = (e, t, n) => t in e ? K2(e, t, {
|
|
34261
34265
|
enumerable: !0,
|
|
34262
34266
|
configurable: !0,
|
|
34263
34267
|
writable: !0,
|
|
34264
34268
|
value: n
|
|
34265
|
-
}) : e[t] = n,
|
|
34266
|
-
for (var n in t ||= {})
|
|
34267
|
-
if (
|
|
34269
|
+
}) : e[t] = n, $2 = (e, t) => {
|
|
34270
|
+
for (var n in t ||= {}) X2.call(t, n) && Q2(e, n, t[n]);
|
|
34271
|
+
if (Y2) for (var n of Y2(t)) Z2.call(t, n) && Q2(e, n, t[n]);
|
|
34268
34272
|
return e;
|
|
34269
|
-
},
|
|
34273
|
+
}, e4 = (e, t) => q2(e, J2(t)), t4 = (e, t) => {
|
|
34270
34274
|
var n = {};
|
|
34271
|
-
for (var r in e)
|
|
34272
|
-
if (e != null &&
|
|
34275
|
+
for (var r in e) X2.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
34276
|
+
if (e != null && Y2) for (var r of Y2(e)) t.indexOf(r) < 0 && Z2.call(e, r) && (n[r] = e[r]);
|
|
34273
34277
|
return n;
|
|
34274
|
-
},
|
|
34278
|
+
}, n4 = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, r4 = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), i4 = ({ position: e, spot: t, stone: n }) => {
|
|
34275
34279
|
if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
|
|
34276
34280
|
if (t.bottom && t.bottom < e.top) return t;
|
|
34277
|
-
let n =
|
|
34281
|
+
let n = $2({}, t);
|
|
34278
34282
|
return n.right = e.left, n;
|
|
34279
34283
|
}
|
|
34280
34284
|
return null;
|
|
34281
|
-
},
|
|
34285
|
+
}, a4 = ({ position: e, stone: t, spot: n }) => {
|
|
34282
34286
|
if (e.left + t.width > n.left && e.top >= n.top) {
|
|
34283
34287
|
if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
|
|
34284
|
-
let t =
|
|
34288
|
+
let t = $2({}, n);
|
|
34285
34289
|
return t.bottom = e.top, t;
|
|
34286
34290
|
}
|
|
34287
34291
|
return null;
|
|
34288
|
-
},
|
|
34289
|
-
let i =
|
|
34290
|
-
return i.left = t.left + e.width,
|
|
34292
|
+
}, o4 = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
|
|
34293
|
+
let i = $2({}, r);
|
|
34294
|
+
return i.left = t.left + e.width, n4(i) || r4({
|
|
34291
34295
|
usedSpot: i,
|
|
34292
34296
|
spotsList: n
|
|
34293
34297
|
}) ? null : i;
|
|
34294
|
-
},
|
|
34298
|
+
}, s4 = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? o4({
|
|
34295
34299
|
stone: r,
|
|
34296
34300
|
position: t,
|
|
34297
34301
|
optimalSpot: n,
|
|
34298
34302
|
spotsList: a
|
|
34299
|
-
}) :
|
|
34303
|
+
}) : i4({
|
|
34300
34304
|
position: t,
|
|
34301
34305
|
spot: e,
|
|
34302
34306
|
stone: r
|
|
34303
|
-
}) ||
|
|
34307
|
+
}) || a4({
|
|
34304
34308
|
position: t,
|
|
34305
34309
|
stone: r,
|
|
34306
34310
|
spot: e
|
|
34307
34311
|
}) || e);
|
|
34308
|
-
function
|
|
34312
|
+
function c4(e, t) {
|
|
34309
34313
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
34310
34314
|
let r = t[n];
|
|
34311
34315
|
if (e(r)) return r;
|
|
34312
34316
|
}
|
|
34313
34317
|
return null;
|
|
34314
34318
|
}
|
|
34315
|
-
var
|
|
34319
|
+
var l4 = (e, t) => t.filter(e), u4 = (e, t) => [...t].sort(e), d4 = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, f4 = (e) => u4(d4, e), p4 = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
|
|
34316
34320
|
let i = {
|
|
34317
34321
|
right: n,
|
|
34318
34322
|
top: t.top + r.height,
|
|
@@ -34327,36 +34331,36 @@ var c4 = (e, t) => t.filter(e), l4 = (e, t) => [...t].sort(e), u4 = (e, t) => e.
|
|
|
34327
34331
|
}
|
|
34328
34332
|
}
|
|
34329
34333
|
return i;
|
|
34330
|
-
},
|
|
34334
|
+
}, m4 = (e, t) => {
|
|
34331
34335
|
let n = e.right - e.left >= t.width;
|
|
34332
34336
|
if (!e.bottom) return n;
|
|
34333
34337
|
let r = e.bottom - e.top >= t.height;
|
|
34334
34338
|
return n && r;
|
|
34335
|
-
},
|
|
34336
|
-
function
|
|
34337
|
-
let r =
|
|
34339
|
+
}, h4 = ({ availableSpots: e, stone: t }) => c4((e) => m4(e, t), e);
|
|
34340
|
+
function g4({ stone: e, availableSpots: t, containerSize: n }) {
|
|
34341
|
+
let r = h4({
|
|
34338
34342
|
availableSpots: t,
|
|
34339
34343
|
stone: e
|
|
34340
34344
|
}), i = {
|
|
34341
34345
|
left: r.left,
|
|
34342
34346
|
top: r.top
|
|
34343
|
-
}, a =
|
|
34347
|
+
}, a = p4({
|
|
34344
34348
|
optimalSpot: r,
|
|
34345
34349
|
availableSpots: t.filter((e) => e !== r),
|
|
34346
34350
|
stone: e,
|
|
34347
34351
|
containerSize: n
|
|
34348
|
-
}), o = [...t, a], s =
|
|
34352
|
+
}), o = [...t, a], s = s4({
|
|
34349
34353
|
spots: o,
|
|
34350
34354
|
position: i,
|
|
34351
34355
|
optimalSpot: r,
|
|
34352
34356
|
stone: e
|
|
34353
34357
|
});
|
|
34354
|
-
return o = [...
|
|
34358
|
+
return o = [...l4(Boolean, s)], o = f4(o), {
|
|
34355
34359
|
position: i,
|
|
34356
34360
|
availableSpots: o
|
|
34357
34361
|
};
|
|
34358
34362
|
}
|
|
34359
|
-
var
|
|
34363
|
+
var _4 = ({ stones: e, containerSize: t }) => {
|
|
34360
34364
|
let n = {
|
|
34361
34365
|
positions: [],
|
|
34362
34366
|
containerHeight: 0,
|
|
@@ -34369,7 +34373,7 @@ var g4 = ({ stones: e, containerSize: t }) => {
|
|
|
34369
34373
|
right: t
|
|
34370
34374
|
}];
|
|
34371
34375
|
for (let n of e) {
|
|
34372
|
-
let e =
|
|
34376
|
+
let e = g4({
|
|
34373
34377
|
availableSpots: a,
|
|
34374
34378
|
stone: n,
|
|
34375
34379
|
containerSize: t
|
|
@@ -34381,14 +34385,14 @@ var g4 = ({ stones: e, containerSize: t }) => {
|
|
|
34381
34385
|
positions: i,
|
|
34382
34386
|
containerHeight: r
|
|
34383
34387
|
};
|
|
34384
|
-
},
|
|
34388
|
+
}, v4 = (e) => e.reduce((e, t) => {
|
|
34385
34389
|
if (!t) return e;
|
|
34386
34390
|
let n = t.getBoundingClientRect();
|
|
34387
34391
|
return e.push({
|
|
34388
34392
|
width: n.width,
|
|
34389
34393
|
height: n.height
|
|
34390
34394
|
}), e;
|
|
34391
|
-
}, []),
|
|
34395
|
+
}, []), y4 = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
|
|
34392
34396
|
let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
|
|
34393
34397
|
positions: [],
|
|
34394
34398
|
containerHeight: null,
|
|
@@ -34396,13 +34400,13 @@ var g4 = ({ stones: e, containerSize: t }) => {
|
|
|
34396
34400
|
availableSpots: []
|
|
34397
34401
|
});
|
|
34398
34402
|
return K(() => {
|
|
34399
|
-
let n =
|
|
34403
|
+
let n = v4(e.current), r = t.current?.offsetWidth ?? 0;
|
|
34400
34404
|
if (r === null) return;
|
|
34401
|
-
let i =
|
|
34405
|
+
let i = _4({
|
|
34402
34406
|
stones: n,
|
|
34403
34407
|
containerSize: r
|
|
34404
34408
|
});
|
|
34405
|
-
l($2(
|
|
34409
|
+
l(e4($2({}, i), { stones: n }));
|
|
34406
34410
|
}, [
|
|
34407
34411
|
n,
|
|
34408
34412
|
e,
|
|
@@ -34415,7 +34419,7 @@ var g4 = ({ stones: e, containerSize: t }) => {
|
|
|
34415
34419
|
stones: s,
|
|
34416
34420
|
availableSpots: c
|
|
34417
34421
|
};
|
|
34418
|
-
},
|
|
34422
|
+
}, b4 = (e) => ({
|
|
34419
34423
|
fade: `${e}ms opacity ease`,
|
|
34420
34424
|
fadeMove: `
|
|
34421
34425
|
${e}ms opacity ease,
|
|
@@ -34426,15 +34430,15 @@ var g4 = ({ stones: e, containerSize: t }) => {
|
|
|
34426
34430
|
${e}ms top ease,
|
|
34427
34431
|
${e}ms left ease
|
|
34428
34432
|
`
|
|
34429
|
-
}),
|
|
34433
|
+
}), x4 = ({ transition: e, transitionDuration: t }) => e ? { transition: b4(t)[e] } : null, S4 = (e) => e ? e4($2({}, e), { opacity: 1 }) : {
|
|
34430
34434
|
opacity: 0,
|
|
34431
34435
|
top: 0,
|
|
34432
34436
|
left: 0
|
|
34433
|
-
},
|
|
34437
|
+
}, C4 = ({ style: e, position: t, transition: n, transitionDuration: r }) => $2($2(e4($2({}, e), { position: "absolute" }), S4(t)), x4({
|
|
34434
34438
|
transition: n,
|
|
34435
34439
|
transitionDuration: r
|
|
34436
34440
|
}));
|
|
34437
|
-
function
|
|
34441
|
+
function w4(e, t, n) {
|
|
34438
34442
|
let r;
|
|
34439
34443
|
return function(...i) {
|
|
34440
34444
|
r && clearTimeout(r), r = setTimeout(function() {
|
|
@@ -34442,8 +34446,8 @@ function C4(e, t, n) {
|
|
|
34442
34446
|
}, t), n && !r && e.apply(null, i);
|
|
34443
34447
|
};
|
|
34444
34448
|
}
|
|
34445
|
-
var
|
|
34446
|
-
let [e, t] = X(), n = Y(
|
|
34449
|
+
var T4 = () => {
|
|
34450
|
+
let [e, t] = X(), n = Y(w4(t, 300));
|
|
34447
34451
|
return K(() => {
|
|
34448
34452
|
let e = () => {
|
|
34449
34453
|
n.current(window.innerWidth);
|
|
@@ -34452,7 +34456,7 @@ var w4 = () => {
|
|
|
34452
34456
|
window.removeEventListener("resize", e);
|
|
34453
34457
|
};
|
|
34454
34458
|
}, []), e;
|
|
34455
|
-
},
|
|
34459
|
+
}, E4 = (e) => {
|
|
34456
34460
|
let [t, n] = X(null);
|
|
34457
34461
|
return K(() => {
|
|
34458
34462
|
let t = new ResizeObserver((e) => {
|
|
@@ -34462,31 +34466,31 @@ var w4 = () => {
|
|
|
34462
34466
|
t.disconnect();
|
|
34463
34467
|
};
|
|
34464
34468
|
}, [e]), t;
|
|
34465
|
-
},
|
|
34466
|
-
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s =
|
|
34469
|
+
}, D4 = (e) => {
|
|
34470
|
+
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = t4(t, [
|
|
34467
34471
|
"children",
|
|
34468
34472
|
"style",
|
|
34469
34473
|
"transition",
|
|
34470
34474
|
"transitionDuration",
|
|
34471
34475
|
"transitionStep"
|
|
34472
34476
|
]);
|
|
34473
|
-
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } =
|
|
34477
|
+
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = y4({
|
|
34474
34478
|
boxesRefs: c,
|
|
34475
34479
|
wrapperRef: l,
|
|
34476
34480
|
children: n,
|
|
34477
|
-
windowWidth:
|
|
34478
|
-
wrapperWidth:
|
|
34479
|
-
}), f =
|
|
34481
|
+
windowWidth: T4(),
|
|
34482
|
+
wrapperWidth: E4(l)
|
|
34483
|
+
}), f = $2({
|
|
34480
34484
|
minHeight: d ?? 0,
|
|
34481
34485
|
position: "relative"
|
|
34482
34486
|
}, r);
|
|
34483
|
-
return Q("div", $2(
|
|
34487
|
+
return Q("div", e4($2({
|
|
34484
34488
|
ref: l,
|
|
34485
34489
|
style: f
|
|
34486
34490
|
}, s), { children: Vu.map(n, (e, t) => {
|
|
34487
34491
|
if (typeof e != "object" || !e || !("type" in e)) return e;
|
|
34488
34492
|
let n = {
|
|
34489
|
-
style:
|
|
34493
|
+
style: C4({
|
|
34490
34494
|
style: e.props.style,
|
|
34491
34495
|
position: u[t],
|
|
34492
34496
|
transition: i,
|
|
@@ -34494,14 +34498,14 @@ var w4 = () => {
|
|
|
34494
34498
|
}),
|
|
34495
34499
|
ref: (e) => c.current[t] = e
|
|
34496
34500
|
};
|
|
34497
|
-
return Wu(e,
|
|
34501
|
+
return Wu(e, $2($2({}, e.props), n));
|
|
34498
34502
|
}) }));
|
|
34499
|
-
},
|
|
34503
|
+
}, O4 = {
|
|
34500
34504
|
sm: 340,
|
|
34501
34505
|
md: 480,
|
|
34502
34506
|
lg: 640
|
|
34503
|
-
},
|
|
34504
|
-
let r =
|
|
34507
|
+
}, k4 = Ku(function({ children: e, widgetWidth: t = "sm" }, n) {
|
|
34508
|
+
let r = O4[t], [i, a] = X(), o = Vu.toArray(e), s = Y(null);
|
|
34505
34509
|
return K(() => {
|
|
34506
34510
|
let e = () => {
|
|
34507
34511
|
let e = s.current?.offsetWidth;
|
|
@@ -34520,7 +34524,7 @@ var w4 = () => {
|
|
|
34520
34524
|
children: e
|
|
34521
34525
|
}) : i && i > 1 && /* @__PURE__ */ Q("div", {
|
|
34522
34526
|
className: "relative -mr-4",
|
|
34523
|
-
children: /* @__PURE__ */ Q(
|
|
34527
|
+
children: /* @__PURE__ */ Q(D4, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
34524
34528
|
style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
|
|
34525
34529
|
className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
|
|
34526
34530
|
children: e
|
|
@@ -34528,7 +34532,7 @@ var w4 = () => {
|
|
|
34528
34532
|
})
|
|
34529
34533
|
})
|
|
34530
34534
|
});
|
|
34531
|
-
}),
|
|
34535
|
+
}), A4 = [
|
|
34532
34536
|
"sm",
|
|
34533
34537
|
"lg",
|
|
34534
34538
|
"md",
|
|
@@ -34541,26 +34545,26 @@ var w4 = () => {
|
|
|
34541
34545
|
"sm",
|
|
34542
34546
|
"md",
|
|
34543
34547
|
"md"
|
|
34544
|
-
],
|
|
34548
|
+
], j4 = Zo(k4, () => /* @__PURE__ */ Q(Po, { children: /* @__PURE__ */ Q(k4, { children: A4.map((e, t) => /* @__PURE__ */ Q(jt.Skeleton, { height: e }, t)) }) })), M4 = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
34545
34549
|
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)]",
|
|
34546
34550
|
children: e
|
|
34547
|
-
}),
|
|
34551
|
+
}), N4 = Zo(Ku(function({ children: e }, t) {
|
|
34548
34552
|
return /* @__PURE__ */ Q(ql, {
|
|
34549
34553
|
ref: t,
|
|
34550
34554
|
showBar: !1,
|
|
34551
|
-
children: /* @__PURE__ */ Q(
|
|
34555
|
+
children: /* @__PURE__ */ Q(M4, { children: e })
|
|
34552
34556
|
});
|
|
34553
34557
|
}), () => /* @__PURE__ */ Q(Po, {
|
|
34554
34558
|
orientation: "horizontal",
|
|
34555
|
-
children: /* @__PURE__ */ $(
|
|
34559
|
+
children: /* @__PURE__ */ $(M4, { children: [
|
|
34556
34560
|
/* @__PURE__ */ Q(jt.Skeleton, {}),
|
|
34557
34561
|
/* @__PURE__ */ Q(jt.Skeleton, {}),
|
|
34558
34562
|
/* @__PURE__ */ Q(jt.Skeleton, {})
|
|
34559
34563
|
] })
|
|
34560
|
-
})),
|
|
34564
|
+
})), P4 = jt;
|
|
34561
34565
|
//#endregion
|
|
34562
34566
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
34563
|
-
function
|
|
34567
|
+
function F4({ title: e, description: t, emoji: n, actions: r }) {
|
|
34564
34568
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
34565
34569
|
return /* @__PURE__ */ Q(S, {
|
|
34566
34570
|
title: e,
|
|
@@ -34571,7 +34575,7 @@ function P4({ title: e, description: t, emoji: n, actions: r }) {
|
|
|
34571
34575
|
}
|
|
34572
34576
|
//#endregion
|
|
34573
34577
|
//#region src/blocks/Widgets/WidgetEmptyState/index.tsx
|
|
34574
|
-
var
|
|
34578
|
+
var I4 = bn(Tn("WidgetEmptyState", F4)), L4 = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
|
|
34575
34579
|
let i = xn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
|
|
34576
34580
|
a,
|
|
34577
34581
|
t,
|
|
@@ -34585,9 +34589,9 @@ var F4 = bn(Tn("WidgetEmptyState", P4)), I4 = ({ identifier: e, allowedRoutes: t
|
|
|
34585
34589
|
n
|
|
34586
34590
|
]);
|
|
34587
34591
|
return o ? r : (i && console.error(s), null);
|
|
34588
|
-
},
|
|
34592
|
+
}, R4 = bn(Us({
|
|
34589
34593
|
name: "ScrollArea",
|
|
34590
34594
|
type: "layout"
|
|
34591
34595
|
}, ql));
|
|
34592
34596
|
//#endregion
|
|
34593
|
-
export {
|
|
34597
|
+
export { I2 as AGENTIC_HOME_SPEC_VERSION, Se as AUTO_PER_PAGE_MAX, f as AUTO_PER_PAGE_MIN_RESERVED_ROWS, av as ActivityItemList, iv as ActivityItemListSkeleton, RO as ApplicationFrame, _ as AreaChart, Eq as AreaChartWidget, fq as AutoGrid, oc as Badge, m as BarChart, Dq as BarChartWidget, rv as BaseActivityItemList, He as BaseBanner, iy as BaseCelebration, xy as BaseCommunityPost, Ps as BaseTabs, Gr as BreadcrumbSelect, ak as Breadcrumbs, gy as CalendarEvent, Hq as CalendarEventList, qt as CardSelectableContainer, Et as Carousel, ce as CategoryBarChart, lJ as CategoryBarSection, oy as Celebration, ay as CelebrationSkeleton, zq as ChartWidgetEmptyState, Cc as Chip, KJ as ClockInControls, Yt as CoachmarkProvider, xt as ComboChart, Cy as CommunityPost, My as CommunityPostCard, Ny as CommunityPostCardSkeleton, Sy as CommunityPostSkeleton, rM as CompanySelector, Pn as Counter, wX as DEFAULT_EXPECTED_ITEMS_COUNT, j4 as Dashboard, XO as DaytimePage, po as DetailsItem, bi as DetailsItemsList, Xe as Dialog, qi as Dropdown, hX as EVENT_LIST_GAP, w_ as EntitySelect, tt as F0ActionBar, M2 as F0AgenticHome, P2 as F0AgenticHomeBlock, s as F0AiBanner, $d as F0AiCallout, $o as F0AiPromptRow, Qs as F0AvatarColor, Zs as F0AvatarColorList, Ws as F0AvatarModule, Mc as F0ButtonToggle, cf as F0Callout, Sa as F0CardHorizontal, Sa as F0CardRow, $h as F0CarouselDialog, qK as F0Chat, JL as F0ChatHistoryLimitCard, Tu as F0ChatProvider, BF as F0CommandPaletteProvider, Ly as F0CommunityPostsCarousel, Ph as F0Composer, bf as F0Confetti, eq as F0ENPSButton, Ad as F0EmojiPicker, Kr as F0FileItem, Fe as F0FormEditableTable, oP as F0InboxItem, sP as F0InboxItemDecision, pP as F0InboxItemGroup, hP as F0InboxItemList, bP as F0InboxItemListSkeleton, yP as F0InboxItemSkeleton, nt as F0LocationInput, yu as F0Map, ou as F0MapControls, Su as F0MapList, iu as F0MapSidebar, pu as F0MapSidebarToggle, gu as F0MapSkeleton, eO as F0Meeting, Hf as F0MeetingCard, ab as F0MeetingProvider, ID as F0MeetingRoom, tO as F0MeetingSlot, $D as F0MeetingSurface, dn as F0NotesTextEditor, L as F0NotesTextEditorSkeleton, ee as F0NumberInput, O as F0NumberInputInline, wi as F0PersonCard, Jt as F0PhoneInput, dN as F0PrimarySidebar, Rc as F0ProgressSeries, _p as F0PulseDot, Xh as F0Resizable, mn as F0ResourceHeader, mn as ResourceHeader, Dr as F0RichTextDisplay, ae as F0RichTextEditor, dp as F0SalaryBenchmark, ip as F0SalaryBenchmarkIndicator, tl as F0SearchInput, mN as F0SecondarySidebar, tg as F0SegmentedBar, Ra as F0SegmentedControl, Dg as F0SharingDialog, Rg as F0SwipeDeck, $v as F0SystemBanner, Ht as F0TableOfContent, q_ as F0TemplateTextInput, ue as F0TextAreaInput, oe as F0TextAreaInputInline, ts as F0TextInput, ne as F0TextInputInline, Xg as F0Timeline, Jg as F0VersionHistory, UL as F0_CHAT_HEADER_TITLE_SELECTOR, qF as F0_CHAT_MESSAGES_TAB_ID, $c as F1SearchBox, y as FILE_TYPES, Ki as FileItem, sy as HighlightBanner, bY as HomeSlotItem, yY as HomeSlotItems, qq as IndicatorsList, Fa as Input, qe as Item, gt as ItemSectionHeader, JF as LATEST, tX as LIST_COMPACT_AFTER, pX as LIST_MORE_BUTTON_CLASS, a as LineChart, Oq as LineChartWidget, vO as MeetingNotes, rO as MeetingPanelContent, _O as MeetingParticipants, aO as MeetingRoomChat, yD as MeetingSidePanel, PS as MeetingSurfaceProvider, cO as MeetingTranscript, bM as Menu, ra as MobileDropdown, XZ as NewHomeLayout, u as NotesTextEditor, sn as NotesTextEditorSkeleton, ge as NumberInput, jk as OmniButton, PP as OneApprovalHistory, Gc as OneCalendar, Tt as OneDataCollection, l as OneDateNavigator, S as OneEmptyState, hg as OneListItem, mg as OneListItemSkeleton, bt as OnePagination, By as OnePersonListItem, L4 as OneRestrictComponent, Nk as Page, Dk as PageHeader, ok as PageHeaderNavigationContext, sk as PageHeaderNavigationProvider, ho as PageNavigation, yt as PieChart, kq as PieChartWidget, it as PrivateBox, re as ProgressBarChart, F2 as RECOMMENDED_AGENTIC_HOME_RULES, su as RECOMMENDED_MAX_MARKERS, se as RadarChart, uy as Reactions, xi as RichTextDisplay, le as RichTextEditor, dX as SLOT_ROW_BLEED, TX as SLOT_SKELETON_ITEM_TESTID, R4 as ScrollArea, fN as SearchBar, i as SectionHeader, ul as Select, cr as Shortcut, _N as Sidebar, $A as SidebarChatBlankState, sj as SidebarChatItem, tj as SidebarChatItemSkeleton, Kj as SidebarChatList, rj as SidebarChatListSkeleton, Uk as SidebarChatProvider, nA as SidebarCollapsibleSection, lM as SidebarFooter, dM as SidebarHeader, CM as SidebarPanelHeader, bA as SidebarTabPanel, uA as SidebarTabPanelSearch, bN as SidebarTabs, cM as SidebarUserMenu, JX as SlotWidget, qX as SlotWidgetContent, Ic as Spinner, dq as Split, uq as Stack, jq as SummariesWidget, al as Switch, ka as Tabs, Es as TabsSkeleton, XJ as TasksList, b as Textarea, lo as ToggleGroup, pi as ToggleGroupItem, In as Tooltip, Rn as TooltipGroup, cJ as TwoColumnsList, D as UPLOAD_INPUT_ID, de as VerticalBarChart, Aq as VerticalBarChartWidget, Qg as VirtualList, el as WeekStartDay, fr as Weekdays, P4 as Widget, Xq as WidgetAvatarsListItem, G2 as WidgetCatalog, I4 as WidgetEmptyState, Gq as WidgetHighlightButton, iJ as WidgetInboxList, $q as WidgetInboxListItem, TY as WidgetSection, oJ as WidgetSimpleList, nJ as WidgetSimpleListItem, N4 as WidgetStrip, wt as actionBarStatuses, jd as aiCalloutStatuses, Wf as attendeesDisplays, qx as buildTiles, _t as buttonToggleColors, Je as buttonToggleSizes, Mt as buttonToggleVariants, my as calendarEventVariants, Dc as chipVariants, gd as coachmarks, vF as commandActionRisks, jy as communityPostCardVariants, Im as composerFormats, Fm as composerVariants, lf as confettiPalette, mE as createMeetingSignalStore, hu as defaultMapStyle, PX as defaultSlotRenderers, NX as defaultSlotSkeleton, RP as defineSelectCellSubmenu, xd as defineStepByStepCoachmarkGuidance, lv as dismissibleSystemNoticeVariants, ot as downloadAsCSV, Pt as downloadAsExcel, HF as f0ChatOneAnswerFailures, VF as f0ChatSenderColors, Sd as f0EmojiPickerSizes, na as f0FileItemSizes, xu as f0MapMarkerVariants, vu as f0MapStyles, rS as f0MeetingConnectionQualities, sS as f0MeetingCoreActionIds, tS as f0MeetingDisconnectReasons, $x as f0MeetingGuestKinds, cS as f0MeetingInvitationStates, nS as f0MeetingPermissions, Qx as f0MeetingPresences, eS as f0MeetingStatuses, iS as f0MeetingSurfaceDestinations, aS as f0MeetingSurfaceModes, Zx as f0MeetingTrackKinds, ud as f0ProgressSeriesColors, ld as f0ProgressSeriesSizes, oS as f0WindowCorners, aX as fromParams, Lt as generateCSVContent, un as getAutoPerPageMinHeight, pl as getGranularityDefinition, ol as getGranularityDefinitions, vl as getGranularitySimpleDefinition, fu as googleMapStyles, au as googlePinlessMapStyles, ll as granularityDefinitions, bX as heldDialogActions, rX as homeSlot, TP as inboxItemDecisionSizes, EP as inboxItemSkeletonAvatars, wP as inboxItemStatuses, SP as inboxItemTints, CP as inboxItemTones, ba as isPossiblePhoneValue, KF as isPost, UF as isSystemMessage, GF as isUserMessage, _s as isValidPhoneValue, iE as layoutGrid, nX as listCompacts, yX as listGlyphSize, v as listIconColors, mX as listMoreButtonClass, iX as listSlot, k_ as locationInputSizes, A_ as locationParts, $w as matchDevice, Uf as meetingStates, VI as messageBodyText, ac as modules, gS as nearestCorner, dg as oneListItemRowClassName, j_ as phoneInputSizes, hS as placementFromRect, Ut as predefinedPresets, vp as pulseDotVariants, lX as railActionTones, fl as rangeSeparator, qw as readMeetingMediaPreferences, sE as reorderForSpeakers, Fh as resizableDirections, KT as resolveAutoFocus, rl as resolveGranularityDefinition, mS as resolvePlacement, eX as resolveSlotRenderer, oX as resolveWidgetHeader, mp as salaryBenchmarkIndicatorSizes, fp as salaryBenchmarkPositions, pp as salaryBenchmarkVariants, Wb as sanitizeMeetingReaction, IP as seedFromStorage, Ne as selectSizes, ze as selectVariants, _S as settlePlacement, fX as slotRowBleed, rE as solveGrid, cE as solveSpotlight, Wg as swipeDirections, cv as systemNoticeVariants, Xx as tileAspectRatio, Gx as tileKey, Jw as updateMeetingMediaPreferences, RF as useCommandPalette, ov as useCompactOnScroll, vf as useConfetti, ie as useDataCollectionData, LP as useDataCollectionItemNavigation, ve as useDataCollectionSource, tn as useExportAction, zu as useF0Chat, sb as useF0Meeting, ub as useF0MeetingRoster, lb as useF0MeetingStable, ob as useHasF0Meeting, o as useInfiniteScrollPagination, vY as useIsBulkChange, Yw as useMeetingMediaPreferences, vE as useMeetingSignal, yE as useMeetingSpeakers, FS as useMeetingSurface, IS as useMeetingSurfaceOptional, lk as usePageHeaderItemNavigation, ck as usePageHeaderNavigation, Ka as useSidePanel, mu as useSidebar, qk as useSidebarChatActions, Kk as useSidebarChats, Ug as useSwipeDeck, yb as useTrackBinding, Ct as useWidgetIsWide, yO as viewportRect, uX as widgetChrome, cX as widgetParamsAreComplete, sX as widgetTitle };
|