@factorialco/f0-react 13.5.0 → 13.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +13 -8
- package/dist/experimental.js +605 -588
- package/package.json +1 -1
package/dist/experimental.js
CHANGED
|
@@ -25451,20 +25451,11 @@ var WV = 3, GV = "slot-skeleton-item", KV = [
|
|
|
25451
25451
|
className: B(t && "animate-clock-tick motion-reduce:animate-none"),
|
|
25452
25452
|
children: ":"
|
|
25453
25453
|
}) : null, e] }, n))
|
|
25454
|
-
}), nH =
|
|
25455
|
-
let t = Zn(), [n, r] = X(!0), i = e && !t;
|
|
25456
|
-
return K(() => {
|
|
25457
|
-
if (!i) return;
|
|
25458
|
-
let e = setInterval(() => r((e) => !e), nH);
|
|
25459
|
-
return () => {
|
|
25460
|
-
clearInterval(e), r(!0);
|
|
25461
|
-
};
|
|
25462
|
-
}, [i]), !i || n;
|
|
25463
|
-
}, iH = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(tH, {
|
|
25454
|
+
}), nH = ({ text: e, ticking: t }) => /* @__PURE__ */ Q(tH, {
|
|
25464
25455
|
text: e,
|
|
25465
25456
|
ticking: t,
|
|
25466
25457
|
className: "px-2 text-2xl font-semibold"
|
|
25467
|
-
}),
|
|
25458
|
+
}), rH = {
|
|
25468
25459
|
neutral: {
|
|
25469
25460
|
pill: "bg-f1-background-inverse text-f1-foreground-inverse",
|
|
25470
25461
|
button: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
@@ -25519,7 +25510,7 @@ var WV = 3, GV = "slot-skeleton-item", KV = [
|
|
|
25519
25510
|
soloIcon: "inverse",
|
|
25520
25511
|
soloRing: "ring-f1-border-inverse"
|
|
25521
25512
|
}
|
|
25522
|
-
},
|
|
25513
|
+
}, iH = (e, t) => {
|
|
25523
25514
|
let n = Zn();
|
|
25524
25515
|
return {
|
|
25525
25516
|
initial: {
|
|
@@ -25540,43 +25531,65 @@ var WV = 3, GV = "slot-skeleton-item", KV = [
|
|
|
25540
25531
|
delay: wB(e, t)
|
|
25541
25532
|
}, n)
|
|
25542
25533
|
};
|
|
25543
|
-
},
|
|
25544
|
-
let s =
|
|
25534
|
+
}, aH = ({ hasUpdates: e }) => e ? /* @__PURE__ */ Q("span", { className: "pointer-events-none absolute -right-0.5 -top-0.5 h-2 w-2 rounded-full bg-f1-background-accent-bold ring-2 ring-f1-background" }) : null, oH = ({ widget: e, action: t, order: n, open: r, delayMs: i, onOpen: a, onCancelOpen: o }) => {
|
|
25535
|
+
let s = iH(n, i), [c, l] = X({
|
|
25536
|
+
hover: !1,
|
|
25537
|
+
focus: !1
|
|
25538
|
+
}), u = c.hover || c.focus || r, d = t.text && !r ? t.text : void 0, f = rH[t.tone ?? "neutral"];
|
|
25545
25539
|
return /* @__PURE__ */ Q(zn, {
|
|
25546
25540
|
label: t.label,
|
|
25547
25541
|
instant: !0,
|
|
25548
25542
|
children: /* @__PURE__ */ $(V.div, {
|
|
25549
|
-
className: B("group pointer-events-auto relative shrink-0",
|
|
25543
|
+
className: B("group pointer-events-auto relative shrink-0", d ? B("-mr-1 -my-1 flex flex-row items-center gap-1 rounded-lg p-1", f.pill) : "rounded-lg"),
|
|
25550
25544
|
"data-widget-glyph": e.id,
|
|
25551
|
-
onMouseEnter: (t) =>
|
|
25552
|
-
|
|
25553
|
-
|
|
25545
|
+
onMouseEnter: (t) => {
|
|
25546
|
+
l((e) => ({
|
|
25547
|
+
...e,
|
|
25548
|
+
hover: !0
|
|
25549
|
+
})), a(e.id, t.currentTarget);
|
|
25550
|
+
},
|
|
25551
|
+
onMouseLeave: () => {
|
|
25552
|
+
l((e) => ({
|
|
25553
|
+
...e,
|
|
25554
|
+
hover: !1
|
|
25555
|
+
})), o();
|
|
25556
|
+
},
|
|
25557
|
+
onFocus: (t) => {
|
|
25558
|
+
l((e) => ({
|
|
25559
|
+
...e,
|
|
25560
|
+
focus: !0
|
|
25561
|
+
})), a(e.id, t.currentTarget, !0);
|
|
25562
|
+
},
|
|
25563
|
+
onBlur: () => l((e) => ({
|
|
25564
|
+
...e,
|
|
25565
|
+
focus: !1
|
|
25566
|
+
})),
|
|
25554
25567
|
...s,
|
|
25555
25568
|
children: [
|
|
25556
|
-
|
|
25557
|
-
text:
|
|
25569
|
+
d ? /* @__PURE__ */ Q(nH, {
|
|
25570
|
+
text: d,
|
|
25558
25571
|
ticking: !!t.ticking
|
|
25559
25572
|
}) : null,
|
|
25560
25573
|
/* @__PURE__ */ Q(Un, {
|
|
25561
25574
|
type: "button",
|
|
25562
25575
|
variant: "ghost",
|
|
25563
25576
|
size: "lg",
|
|
25564
|
-
className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", t.text ?
|
|
25577
|
+
className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", t.text ? f.button : f.solo, "ring-inset group-hover:ring-1", r && "ring-1", t.text ? f.ring : f.soloRing),
|
|
25565
25578
|
"aria-label": `${t.label}, ${DV(e)}`,
|
|
25566
25579
|
onClick: () => t.onClick(),
|
|
25567
25580
|
children: /* @__PURE__ */ Q(W, {
|
|
25568
25581
|
size: "lg",
|
|
25569
|
-
color: t.text ?
|
|
25570
|
-
icon:
|
|
25582
|
+
color: t.text ? f.icon : f.soloIcon,
|
|
25583
|
+
icon: u || !e.icon ? t.icon : e.icon
|
|
25571
25584
|
})
|
|
25572
25585
|
}),
|
|
25573
|
-
/* @__PURE__ */ Q(
|
|
25586
|
+
/* @__PURE__ */ Q(aH, { hasUpdates: e.hasUpdates })
|
|
25574
25587
|
]
|
|
25575
25588
|
})
|
|
25576
25589
|
});
|
|
25577
|
-
},
|
|
25578
|
-
let c = e.railAction, l =
|
|
25579
|
-
return c ? /* @__PURE__ */ Q(
|
|
25590
|
+
}, sH = ({ widget: e, order: t, open: n, delayMs: r, onOpen: i, onCancelOpen: a, onClose: o, look: s = "tile" }) => {
|
|
25591
|
+
let c = e.railAction, l = iH(t, r);
|
|
25592
|
+
return c ? /* @__PURE__ */ Q(oH, {
|
|
25580
25593
|
widget: e,
|
|
25581
25594
|
action: c,
|
|
25582
25595
|
order: t,
|
|
@@ -25617,11 +25630,11 @@ var WV = 3, GV = "slot-skeleton-item", KV = [
|
|
|
25617
25630
|
}) : /* @__PURE__ */ Q("span", {
|
|
25618
25631
|
className: "flex h-10 w-10 items-center justify-center rounded-lg border border-solid border-f1-border-secondary bg-f1-background font-medium text-f1-foreground-secondary",
|
|
25619
25632
|
children: DV(e).charAt(0)
|
|
25620
|
-
}), /* @__PURE__ */ Q(
|
|
25633
|
+
}), /* @__PURE__ */ Q(aH, { hasUpdates: e.hasUpdates })]
|
|
25621
25634
|
})
|
|
25622
25635
|
});
|
|
25623
25636
|
};
|
|
25624
|
-
function
|
|
25637
|
+
function cH(e = 24) {
|
|
25625
25638
|
let [t, n] = X(null), [r, i] = X({
|
|
25626
25639
|
top: !1,
|
|
25627
25640
|
bottom: !1
|
|
@@ -25655,8 +25668,8 @@ function uH(e = 24) {
|
|
|
25655
25668
|
}
|
|
25656
25669
|
//#endregion
|
|
25657
25670
|
//#region src/domains/platform/home/Home/SlotWidget/SlotWidget.tsx
|
|
25658
|
-
var
|
|
25659
|
-
function
|
|
25671
|
+
var lH = "-ml-0.5 mt-2", uH = 450, dH = "cubic-bezier(0.4, 0, 0.1, 1)", fH = 1.04;
|
|
25672
|
+
function pH({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless: i = !1 }) {
|
|
25660
25673
|
let a = n ? {
|
|
25661
25674
|
...eH,
|
|
25662
25675
|
...n
|
|
@@ -25689,7 +25702,7 @@ function hH({ slots: e, loading: t = !1, slotRenderers: n, ctx: r = {}, headless
|
|
|
25689
25702
|
})
|
|
25690
25703
|
});
|
|
25691
25704
|
}
|
|
25692
|
-
function
|
|
25705
|
+
function mH({ header: e, params: t, fullHeight: n, action: r, summaries: i, headerControls: a, headerActions: o, headerSelect: s, alert: c, status: l, slots: u, loading: d = !1, slotRenderers: f, actions: p, flipped: m = !1, onFlipBack: h, isDragging: g, ctx: _ = {}, headless: v = !1 }) {
|
|
25693
25706
|
let y = R(), b = Zn(), [x, S] = X(!1), C = Y(!1);
|
|
25694
25707
|
K(() => {
|
|
25695
25708
|
if (!C.current) {
|
|
@@ -25698,7 +25711,7 @@ function gH({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
25698
25711
|
}
|
|
25699
25712
|
if (b) return;
|
|
25700
25713
|
S(!0);
|
|
25701
|
-
let e = setTimeout(() => S(!1),
|
|
25714
|
+
let e = setTimeout(() => S(!1), uH);
|
|
25702
25715
|
return () => clearTimeout(e);
|
|
25703
25716
|
}, [m, b]);
|
|
25704
25717
|
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), O = (e) => {
|
|
@@ -25739,13 +25752,13 @@ function gH({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
25739
25752
|
header: P,
|
|
25740
25753
|
fullHeight: n,
|
|
25741
25754
|
action: I,
|
|
25742
|
-
footerClassName:
|
|
25755
|
+
footerClassName: lH,
|
|
25743
25756
|
actions: v ? void 0 : p,
|
|
25744
25757
|
headerControls: v ? void 0 : k,
|
|
25745
25758
|
summaries: i,
|
|
25746
25759
|
...c ? { alert: c } : { status: l },
|
|
25747
25760
|
isDragging: g,
|
|
25748
|
-
children: u.length === 0 ? null : /* @__PURE__ */ Q(
|
|
25761
|
+
children: u.length === 0 ? null : /* @__PURE__ */ Q(pH, {
|
|
25749
25762
|
ctx: {
|
|
25750
25763
|
..._,
|
|
25751
25764
|
hasFooter: !!r,
|
|
@@ -25764,14 +25777,14 @@ function gH({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
25764
25777
|
className: "h-full",
|
|
25765
25778
|
"data-turning": x || void 0,
|
|
25766
25779
|
style: {
|
|
25767
|
-
transform: `scale(${x ?
|
|
25768
|
-
transition: b ? void 0 : `transform ${
|
|
25780
|
+
transform: `scale(${x ? fH : 1})`,
|
|
25781
|
+
transition: b ? void 0 : `transform ${uH / 2}ms ease-out`
|
|
25769
25782
|
},
|
|
25770
25783
|
children: /* @__PURE__ */ $("div", {
|
|
25771
25784
|
className: "relative h-full [transform-style:preserve-3d]",
|
|
25772
25785
|
style: {
|
|
25773
25786
|
transform: `rotateY(${m ? 180 : 0}deg)`,
|
|
25774
|
-
transition: b ? void 0 : `transform ${
|
|
25787
|
+
transition: b ? void 0 : `transform ${uH}ms ${dH}`
|
|
25775
25788
|
},
|
|
25776
25789
|
children: [/* @__PURE__ */ Q("div", {
|
|
25777
25790
|
className: B("[backface-visibility:hidden]", m && "pointer-events-none"),
|
|
@@ -25803,8 +25816,8 @@ function gH({ header: e, params: t, fullHeight: n, action: r, summaries: i, head
|
|
|
25803
25816
|
}
|
|
25804
25817
|
//#endregion
|
|
25805
25818
|
//#region src/domains/platform/home/Home/WidgetPreview/WidgetPreview.tsx
|
|
25806
|
-
var
|
|
25807
|
-
let e = qn(
|
|
25819
|
+
var hH = "(min-width: 2200px) and (min-height: 900px)", gH = () => {
|
|
25820
|
+
let e = qn(hH, {
|
|
25808
25821
|
initializeWithValue: !0,
|
|
25809
25822
|
defaultValue: !1
|
|
25810
25823
|
}), t = qn(`(max-width: ${xl.md}px)`, {
|
|
@@ -25818,14 +25831,14 @@ var _H = "(min-width: 2200px) and (min-height: 900px)", vH = () => {
|
|
|
25818
25831
|
asideClassName: t ? "w-full shrink-0" : "w-80 shrink-0",
|
|
25819
25832
|
stacked: t
|
|
25820
25833
|
};
|
|
25821
|
-
},
|
|
25822
|
-
function
|
|
25834
|
+
}, _H = "animate-in fade-in zoom-in-95 duration-300 ease-out motion-reduce:animate-none";
|
|
25835
|
+
function vH({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
25823
25836
|
return /* @__PURE__ */ Q("div", {
|
|
25824
25837
|
className: "flex min-w-0 flex-1 flex-col overflow-y-auto rounded-lg bg-f1-background-secondary p-6",
|
|
25825
25838
|
children: /* @__PURE__ */ $("div", {
|
|
25826
25839
|
className: "my-auto flex w-full flex-col items-center gap-6",
|
|
25827
25840
|
children: [/* @__PURE__ */ Q("div", {
|
|
25828
|
-
className: B("w-full",
|
|
25841
|
+
className: B("w-full", _H),
|
|
25829
25842
|
style: { maxWidth: `${r}px` },
|
|
25830
25843
|
children: t
|
|
25831
25844
|
}, e), n ? /* @__PURE__ */ Q("p", {
|
|
@@ -25837,9 +25850,9 @@ function bH({ previewKey: e, children: t, info: n, previewWidth: r = 396 }) {
|
|
|
25837
25850
|
}
|
|
25838
25851
|
//#endregion
|
|
25839
25852
|
//#region src/domains/platform/home/Home/WidgetUpdateDialog/WidgetUpdateDialog.tsx
|
|
25840
|
-
var
|
|
25841
|
-
function
|
|
25842
|
-
let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } =
|
|
25853
|
+
var yH = (e, t) => typeof e == "function" ? e(t) : e, bH = 250;
|
|
25854
|
+
function xH({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, info: a, onSave: o, previewWidth: s = 396, title: c, saveLabel: u = "Save" }) {
|
|
25855
|
+
let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = gH(), { formRef: g, getValues: _, trigger: v } = l(), [y, b] = X(r ?? {});
|
|
25843
25856
|
return K(() => {
|
|
25844
25857
|
e && b(r ?? {});
|
|
25845
25858
|
}, [e, r]), /* @__PURE__ */ Q(Ai, {
|
|
@@ -25865,15 +25878,15 @@ function CH({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
25865
25878
|
defaultValues: r,
|
|
25866
25879
|
submitConfig: {
|
|
25867
25880
|
type: "autosubmit",
|
|
25868
|
-
delay:
|
|
25881
|
+
delay: bH,
|
|
25869
25882
|
hideActionBar: !0
|
|
25870
25883
|
},
|
|
25871
25884
|
styling: { noPadding: !0 },
|
|
25872
25885
|
onSubmit: (e) => (b(e), { success: !0 })
|
|
25873
25886
|
})
|
|
25874
|
-
}), /* @__PURE__ */ Q(
|
|
25887
|
+
}), /* @__PURE__ */ Q(vH, {
|
|
25875
25888
|
previewKey: "widget-params",
|
|
25876
|
-
info:
|
|
25889
|
+
info: yH(a, y),
|
|
25877
25890
|
previewWidth: s,
|
|
25878
25891
|
children: i(y)
|
|
25879
25892
|
})]
|
|
@@ -25882,10 +25895,10 @@ function CH({ isOpen: e, onClose: t, schema: n, params: r, renderPreview: i, inf
|
|
|
25882
25895
|
}
|
|
25883
25896
|
//#endregion
|
|
25884
25897
|
//#region src/domains/platform/home/Home/WidgetContainer/dragGhost.ts
|
|
25885
|
-
var
|
|
25898
|
+
var SH = (e) => {
|
|
25886
25899
|
let t = e?.cloneNode(!0);
|
|
25887
25900
|
return t instanceof HTMLElement ? (t.classList.remove("invisible"), t.style.transform = "none", t.style.transition = "none", t.removeAttribute("id"), t.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), t.setAttribute("aria-hidden", "true"), t.setAttribute("inert", ""), t) : null;
|
|
25888
|
-
},
|
|
25901
|
+
}, CH = (e, t) => {
|
|
25889
25902
|
if (!e || !t) return null;
|
|
25890
25903
|
let n = e.cloneNode(!0);
|
|
25891
25904
|
if (!(n instanceof HTMLElement)) return null;
|
|
@@ -25899,61 +25912,61 @@ var wH = (e) => {
|
|
|
25899
25912
|
width: r.width,
|
|
25900
25913
|
height: r.height
|
|
25901
25914
|
},
|
|
25902
|
-
base:
|
|
25915
|
+
base: TH(e)
|
|
25903
25916
|
};
|
|
25904
|
-
},
|
|
25917
|
+
}, wH = /* @__PURE__ */ new Set([
|
|
25905
25918
|
"rgba(0, 0, 0, 0)",
|
|
25906
25919
|
"transparent",
|
|
25907
25920
|
""
|
|
25908
|
-
]),
|
|
25921
|
+
]), TH = (e) => {
|
|
25909
25922
|
if (typeof getComputedStyle != "function") return null;
|
|
25910
25923
|
for (let t = e; t; t = t.parentElement) {
|
|
25911
25924
|
let e = getComputedStyle(t).backgroundColor;
|
|
25912
|
-
if (!
|
|
25925
|
+
if (!wH.has(e)) return e;
|
|
25913
25926
|
}
|
|
25914
25927
|
return null;
|
|
25915
|
-
},
|
|
25928
|
+
}, EH = /^(https?:\/\/|mailto:|tel:|\/|\.\/|\.\.\/|#|\?)/i, DH = (e) => e && EH.test(e) ? e : void 0, OH = /\[([^[\]\n]+)\]\(([^)\s]+)\)/g, kH = (e) => EH.test(e), AH = (e) => {
|
|
25916
25929
|
let t = [], n = 0;
|
|
25917
|
-
for (let r of e.matchAll(
|
|
25930
|
+
for (let r of e.matchAll(OH)) {
|
|
25918
25931
|
let i = r[1] ?? "", a = r[2] ?? "", o = r.index, s = e[o - 1] === "!", c = e.slice(n, s ? o - 1 : o);
|
|
25919
|
-
c && t.push({ text: c }), t.push(s || !
|
|
25932
|
+
c && t.push({ text: c }), t.push(s || !kH(a) ? { text: i } : {
|
|
25920
25933
|
label: i,
|
|
25921
25934
|
href: a
|
|
25922
25935
|
}), n = o + r[0].length;
|
|
25923
25936
|
}
|
|
25924
25937
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
25925
|
-
},
|
|
25938
|
+
}, jH = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
25926
25939
|
className: "text-center text-f1-foreground-secondary",
|
|
25927
|
-
children:
|
|
25940
|
+
children: AH(e).map((e, t) => /* @__PURE__ */ Q(du, { children: "href" in e ? /* @__PURE__ */ Q(Wa, {
|
|
25928
25941
|
href: e.href,
|
|
25929
25942
|
children: e.label
|
|
25930
25943
|
}) : e.text }, t))
|
|
25931
|
-
}),
|
|
25944
|
+
}), MH = (e) => {
|
|
25932
25945
|
let t = e.findIndex((e) => !e.locked);
|
|
25933
25946
|
return e.slice(0, t < 0 ? e.length : t);
|
|
25934
|
-
},
|
|
25935
|
-
let r =
|
|
25947
|
+
}, NH = (e, t, n) => {
|
|
25948
|
+
let r = MH(e).flatMap((e) => {
|
|
25936
25949
|
let n = t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
25937
25950
|
return n ? [n.bottom] : [];
|
|
25938
25951
|
});
|
|
25939
25952
|
return r.length > 0 ? Math.max(...r) + n : null;
|
|
25940
|
-
},
|
|
25953
|
+
}, PH = (e) => ({ transform: t, draggingNodeRect: n, activeNodeRect: r }) => {
|
|
25941
25954
|
let i = e(), a = (n ?? r)?.top;
|
|
25942
25955
|
return i == null || a == null ? t : {
|
|
25943
25956
|
...t,
|
|
25944
25957
|
y: Math.max(t.y, i - a)
|
|
25945
25958
|
};
|
|
25946
|
-
},
|
|
25959
|
+
}, FH = (e, t, n, r) => {
|
|
25947
25960
|
if (n < 0 || r < 0 || n === r || t.has(r)) return null;
|
|
25948
25961
|
let i = Array.from({ length: e }, (e, t) => t), a = Bt(i, n, r).filter((e) => !t.has(e));
|
|
25949
25962
|
return i.map((e) => t.has(e) ? e : a.shift());
|
|
25950
|
-
},
|
|
25963
|
+
}, IH = (e, t) => new Map(e.flatMap((e, n) => {
|
|
25951
25964
|
let r = e.locked ? t?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect() : void 0;
|
|
25952
25965
|
return r ? [[n, r.height]] : [];
|
|
25953
|
-
})),
|
|
25966
|
+
})), LH = ({ pinned: e, pinnedHeights: t, gap: n }) => (r) => {
|
|
25954
25967
|
let { rects: i, activeIndex: a, overIndex: o, index: s } = r, c = Array.from({ length: i.length }, (e, n) => i[n]?.height ?? t.get(n));
|
|
25955
25968
|
if (e.size === 0 || c.some((e) => e == null)) return De(r);
|
|
25956
|
-
let l =
|
|
25969
|
+
let l = FH(i.length, e, a, o);
|
|
25957
25970
|
if (!l) return null;
|
|
25958
25971
|
let u = (e, t) => e.slice(0, e.indexOf(t)).reduce((e, t) => e + c[t] + n, 0), d = l.map((e, t) => t), f = u(l, s) - u(d, s);
|
|
25959
25972
|
return f === 0 ? null : {
|
|
@@ -25962,14 +25975,14 @@ var wH = (e) => {
|
|
|
25962
25975
|
scaleX: 1,
|
|
25963
25976
|
scaleY: 1
|
|
25964
25977
|
};
|
|
25965
|
-
},
|
|
25978
|
+
}, RH = () => !1, zH = {
|
|
25966
25979
|
duration: .2,
|
|
25967
25980
|
ease: "easeOut"
|
|
25968
|
-
},
|
|
25981
|
+
}, BH = ({ id: e, disabled: t = !1, settle: n, children: r }) => {
|
|
25969
25982
|
let i = Zn(), { listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = ke({
|
|
25970
25983
|
id: e,
|
|
25971
25984
|
disabled: t,
|
|
25972
|
-
animateLayoutChanges:
|
|
25985
|
+
animateLayoutChanges: RH
|
|
25973
25986
|
}), u = {
|
|
25974
25987
|
transform: ft.Translate.toString(s && {
|
|
25975
25988
|
...s,
|
|
@@ -25986,26 +25999,26 @@ var wH = (e) => {
|
|
|
25986
25999
|
children: /* @__PURE__ */ Q(V.div, {
|
|
25987
26000
|
layout: "position",
|
|
25988
26001
|
layoutDependency: n,
|
|
25989
|
-
transition: { layout: IB(
|
|
26002
|
+
transition: { layout: IB(zH, i) },
|
|
25990
26003
|
children: r({ isDragging: l })
|
|
25991
26004
|
})
|
|
25992
26005
|
});
|
|
25993
|
-
},
|
|
26006
|
+
}, VH = 12, HH = 280, UH = 2, WH = /* @__PURE__ */ new Set([
|
|
25994
26007
|
"auto",
|
|
25995
26008
|
"scroll",
|
|
25996
26009
|
"overlay"
|
|
25997
|
-
]),
|
|
26010
|
+
]), GH = (e) => {
|
|
25998
26011
|
let t = e.parentElement;
|
|
25999
26012
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
26000
|
-
if (
|
|
26013
|
+
if (WH.has(getComputedStyle(t).getPropertyValue("overflow-y"))) return t;
|
|
26001
26014
|
t = t.parentElement;
|
|
26002
26015
|
}
|
|
26003
26016
|
return null;
|
|
26004
26017
|
};
|
|
26005
|
-
function
|
|
26018
|
+
function KH({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
26006
26019
|
let a = e === !1 ? null : e, [o, s] = X(null), [c, l] = X(null), u = a?.scrollElement ?? c, d = a != null && !i, f = a?.scrollElement != null;
|
|
26007
26020
|
q(() => {
|
|
26008
|
-
d && !f && o && l(
|
|
26021
|
+
d && !f && o && l(GH(o));
|
|
26009
26022
|
}, [
|
|
26010
26023
|
d,
|
|
26011
26024
|
f,
|
|
@@ -26026,7 +26039,7 @@ function JH({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
26026
26039
|
o,
|
|
26027
26040
|
u
|
|
26028
26041
|
]);
|
|
26029
|
-
let h = d && u != null && t >= (a?.threshold ??
|
|
26042
|
+
let h = d && u != null && t >= (a?.threshold ?? VH), g = Y(r);
|
|
26030
26043
|
g.current = r;
|
|
26031
26044
|
let _ = r.join(","), v = G((e) => {
|
|
26032
26045
|
let t = new Set(Zs(e));
|
|
@@ -26038,8 +26051,8 @@ function JH({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
26038
26051
|
gap: n,
|
|
26039
26052
|
scrollMargin: p,
|
|
26040
26053
|
rangeExtractor: v,
|
|
26041
|
-
overscan: a?.overscan ??
|
|
26042
|
-
estimateSize: () => a?.estimateHeight ??
|
|
26054
|
+
overscan: a?.overscan ?? UH,
|
|
26055
|
+
estimateSize: () => a?.estimateHeight ?? HH,
|
|
26043
26056
|
getScrollElement: () => u
|
|
26044
26057
|
});
|
|
26045
26058
|
return {
|
|
@@ -26056,10 +26069,10 @@ function JH({ config: e, count: t, gap: n, pinned: r = [], paused: i = !1 }) {
|
|
|
26056
26069
|
}
|
|
26057
26070
|
//#endregion
|
|
26058
26071
|
//#region src/domains/platform/home/Home/WidgetContainer/verticalOnly.ts
|
|
26059
|
-
var
|
|
26072
|
+
var qH = ({ transform: e }) => ({
|
|
26060
26073
|
...e,
|
|
26061
26074
|
x: 0
|
|
26062
|
-
}),
|
|
26075
|
+
}), JH = ({ arrival: e, stow: t, fullHeight: n, widgetId: r, children: i }) => {
|
|
26063
26076
|
let a = Zn(), o = t?.stowed ?? !1, s = e?.order ?? 0, c = a ? CB : e?.arriving ? TB(s, e.delayMs) : !t || t.instant ? CB : o ? NB : PB;
|
|
26064
26077
|
return /* @__PURE__ */ Q(V.div, {
|
|
26065
26078
|
"data-widget-id": r,
|
|
@@ -26075,7 +26088,7 @@ var YH = ({ transform: e }) => ({
|
|
|
26075
26088
|
transition: c,
|
|
26076
26089
|
children: i
|
|
26077
26090
|
});
|
|
26078
|
-
},
|
|
26091
|
+
}, YH = ({ host: e, children: t }) => {
|
|
26079
26092
|
let n = Y();
|
|
26080
26093
|
if (!n.current) {
|
|
26081
26094
|
let e = document.createElement("div");
|
|
@@ -26095,7 +26108,7 @@ var YH = ({ transform: e }) => ({
|
|
|
26095
26108
|
ref: o,
|
|
26096
26109
|
className: "contents"
|
|
26097
26110
|
}), Eu(t, r)] });
|
|
26098
|
-
},
|
|
26111
|
+
}, XH = [
|
|
26099
26112
|
"a",
|
|
26100
26113
|
"button",
|
|
26101
26114
|
"input",
|
|
@@ -26109,28 +26122,28 @@ var YH = ({ transform: e }) => ({
|
|
|
26109
26122
|
"[role='checkbox']",
|
|
26110
26123
|
"[role='tab']",
|
|
26111
26124
|
"[contenteditable='true']"
|
|
26112
|
-
].join(","),
|
|
26125
|
+
].join(","), ZH = class extends Qe {
|
|
26113
26126
|
static activators = [{
|
|
26114
26127
|
eventName: "onPointerDown",
|
|
26115
26128
|
handler: ({ nativeEvent: e }, { onActivation: t }) => {
|
|
26116
26129
|
if (!e.isPrimary || e.button !== 0) return !1;
|
|
26117
26130
|
let n = e.target;
|
|
26118
|
-
return n instanceof Element && n.closest(
|
|
26131
|
+
return n instanceof Element && n.closest(XH) ? !1 : (t?.({ event: e }), !0);
|
|
26119
26132
|
}
|
|
26120
26133
|
}];
|
|
26121
|
-
},
|
|
26134
|
+
}, QH = {
|
|
26122
26135
|
duration: 450,
|
|
26123
26136
|
easing: "cubic-bezier(0.4, 0, 0.1, 1)"
|
|
26124
|
-
},
|
|
26137
|
+
}, $H = (e, t) => {
|
|
26125
26138
|
for (let n = e; n; n = n.parentElement) {
|
|
26126
26139
|
let e = n.querySelector(t);
|
|
26127
26140
|
if (e) return e;
|
|
26128
26141
|
}
|
|
26129
26142
|
return null;
|
|
26130
|
-
},
|
|
26143
|
+
}, eU = {
|
|
26131
26144
|
main: 24,
|
|
26132
26145
|
right: 16
|
|
26133
|
-
},
|
|
26146
|
+
}, tU = ({ hidden: e, placement: t, measureRef: n, children: r }) => /* @__PURE__ */ Q("div", {
|
|
26134
26147
|
ref: t ? n : void 0,
|
|
26135
26148
|
"data-index": t?.index,
|
|
26136
26149
|
hidden: e,
|
|
@@ -26141,7 +26154,7 @@ var YH = ({ transform: e }) => ({
|
|
|
26141
26154
|
width: "100%"
|
|
26142
26155
|
} : { display: e ? void 0 : "contents" },
|
|
26143
26156
|
children: r
|
|
26144
|
-
}),
|
|
26157
|
+
}), nU = ({ onClick: e, label: t, side: n }) => /* @__PURE__ */ Q(zn, {
|
|
26145
26158
|
label: t,
|
|
26146
26159
|
children: /* @__PURE__ */ Q("button", {
|
|
26147
26160
|
type: "button",
|
|
@@ -26155,18 +26168,18 @@ var YH = ({ transform: e }) => ({
|
|
|
26155
26168
|
})
|
|
26156
26169
|
})
|
|
26157
26170
|
});
|
|
26158
|
-
function
|
|
26159
|
-
let O = R(), A = !o, j = (e) => m !== void 0 && e.id !== m, M = A && p != null, N = e.filter((e) => !e.locked).length > 1, [P, F] = X(null), [I, ee] = X(0), [te, ne] = X(() => /* @__PURE__ */ new Map()), re = J(() => new Set(e.flatMap((e, t) => e.locked ? [t] : [])), [e]), ie = J(() =>
|
|
26171
|
+
function rU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotRenderers: i, renderWidget: a, disableEdition: o = !1, disableDrag: s = !1, widgetHostFor: c, afterWidgets: l, dragSurfaceSelector: u, onRemoveWidget: d, onClickAddNewWidget: f, onReorder: p, visibleWidgetId: m, entrance: h = {}, virtualized: g = !1, stow: _, addWidgetLabel: v, onChangeWidgetParams: y, rebuildWidget: b, renderWidgetPreview: x, paramsPreviewWidth: S, removeLabel: C, editParamsLabel: w, ctx: T = {}, className: E, style: D }) {
|
|
26172
|
+
let O = R(), A = !o, j = (e) => m !== void 0 && e.id !== m, M = A && p != null, N = e.filter((e) => !e.locked).length > 1, [P, F] = X(null), [I, ee] = X(0), [te, ne] = X(() => /* @__PURE__ */ new Map()), re = J(() => new Set(e.flatMap((e, t) => e.locked ? [t] : [])), [e]), ie = J(() => LH({
|
|
26160
26173
|
pinned: re,
|
|
26161
26174
|
pinnedHeights: te,
|
|
26162
|
-
gap:
|
|
26175
|
+
gap: eU[t]
|
|
26163
26176
|
}), [
|
|
26164
26177
|
re,
|
|
26165
26178
|
te,
|
|
26166
26179
|
t
|
|
26167
|
-
]), ae = Ut(Ot(
|
|
26180
|
+
]), ae = Ut(Ot(ZH, { activationConstraint: { distance: 4 } })), [L, oe] = X(null), se = e.find((e) => e.id === L), [ce, le] = X(null), de = Y(null), fe = Y(null), pe = Y(null), me = Y(null), he = J(() => [qH, PH(() => me.current)], []), ge = (e) => {
|
|
26168
26181
|
let t = de.current?.querySelector(`[data-widget-id="${e}"]`);
|
|
26169
|
-
fe.current =
|
|
26182
|
+
fe.current = SH(t), pe.current = u ? CH($H(de.current, u), t) : null;
|
|
26170
26183
|
}, _e = (e) => {
|
|
26171
26184
|
e && fe.current && e.replaceChildren(fe.current);
|
|
26172
26185
|
}, ve = Y(0), ye = () => cancelAnimationFrame(ve.current), be = (e) => {
|
|
@@ -26181,14 +26194,14 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26181
26194
|
e.style.transform = `translate3d(${-t}px, ${-i}px, 0)`, ve.current = requestAnimationFrame(r);
|
|
26182
26195
|
};
|
|
26183
26196
|
r();
|
|
26184
|
-
}, xe =
|
|
26197
|
+
}, xe = KH({
|
|
26185
26198
|
config: g === !0 ? {} : g,
|
|
26186
26199
|
count: e.length,
|
|
26187
|
-
gap:
|
|
26200
|
+
gap: eU[t],
|
|
26188
26201
|
pinned: P ? [e.findIndex((e) => e.id === P)] : [],
|
|
26189
26202
|
paused: m !== void 0
|
|
26190
26203
|
}), Se = g !== !1 && m !== void 0, Ce = ({ activatorEvent: t, delta: n, active: r }) => {
|
|
26191
|
-
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 = me.current == null ? [] :
|
|
26204
|
+
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 = me.current == null ? [] : MH(e);
|
|
26192
26205
|
return e.find((e) => {
|
|
26193
26206
|
if (!e.locked || c.includes(e)) return !1;
|
|
26194
26207
|
let t = de.current?.querySelector(`[data-widget-id="${e.id}"]`)?.getBoundingClientRect();
|
|
@@ -26213,7 +26226,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26213
26226
|
onClick: () => d(e.id)
|
|
26214
26227
|
})), t;
|
|
26215
26228
|
}, Te = (t) => {
|
|
26216
|
-
let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ?
|
|
26229
|
+
let { active: n, over: r } = t, i = e.map((e) => e.id), a = r ? FH(i.length, re, i.indexOf(String(n.id)), i.indexOf(String(r.id))) : null;
|
|
26217
26230
|
if (a) {
|
|
26218
26231
|
p?.(a.map((e) => i[e]));
|
|
26219
26232
|
return;
|
|
@@ -26228,7 +26241,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26228
26241
|
children: De(e, t, n)
|
|
26229
26242
|
}), De = (e, t, n = e.params) => {
|
|
26230
26243
|
let r = we(e);
|
|
26231
|
-
if (!a) return /* @__PURE__ */ Q(
|
|
26244
|
+
if (!a) return /* @__PURE__ */ Q(mH, {
|
|
26232
26245
|
...AV(e),
|
|
26233
26246
|
header: e.header,
|
|
26234
26247
|
params: n,
|
|
@@ -26266,7 +26279,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26266
26279
|
instant: _.stowed
|
|
26267
26280
|
}, je = (e, t, n, r) => {
|
|
26268
26281
|
let i = n ? Ae(n) : void 0;
|
|
26269
|
-
return !Oe && !i && !r ? t : /* @__PURE__ */ Q(
|
|
26282
|
+
return !Oe && !i && !r ? t : /* @__PURE__ */ Q(JH, {
|
|
26270
26283
|
arrival: Oe ? {
|
|
26271
26284
|
order: (Oe.order ?? 0) + e,
|
|
26272
26285
|
delayMs: Oe.delayMs ?? 0,
|
|
@@ -26277,13 +26290,13 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26277
26290
|
widgetId: r,
|
|
26278
26291
|
children: t
|
|
26279
26292
|
});
|
|
26280
|
-
}, Ne = (e, t, n) => /* @__PURE__ */ Q(
|
|
26293
|
+
}, Ne = (e, t, n) => /* @__PURE__ */ Q(tU, {
|
|
26281
26294
|
hidden: j(e),
|
|
26282
26295
|
placement: n,
|
|
26283
26296
|
measureRef: xe.measureRef,
|
|
26284
|
-
children: /* @__PURE__ */ Q(
|
|
26297
|
+
children: /* @__PURE__ */ Q(YH, {
|
|
26285
26298
|
host: c?.(e),
|
|
26286
|
-
children: M ? /* @__PURE__ */ Q(
|
|
26299
|
+
children: M ? /* @__PURE__ */ Q(BH, {
|
|
26287
26300
|
id: e.id,
|
|
26288
26301
|
disabled: e.locked || s || !N,
|
|
26289
26302
|
settle: I,
|
|
@@ -26310,7 +26323,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26310
26323
|
collisionDetection: Xt,
|
|
26311
26324
|
modifiers: he,
|
|
26312
26325
|
onDragStart: ({ active: n }) => {
|
|
26313
|
-
ge(String(n.id)), me.current =
|
|
26326
|
+
ge(String(n.id)), me.current = NH(e, de.current, eU[t]), ne(IH(e, de.current)), F(String(n.id));
|
|
26314
26327
|
},
|
|
26315
26328
|
onDragCancel: () => {
|
|
26316
26329
|
F(null), ye(), fe.current = null, pe.current = null, me.current = null;
|
|
@@ -26330,7 +26343,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26330
26343
|
className: "fixed inset-0 z-50 cursor-grabbing"
|
|
26331
26344
|
}) : null,
|
|
26332
26345
|
/* @__PURE__ */ Q(ue, {
|
|
26333
|
-
dropAnimation:
|
|
26346
|
+
dropAnimation: QH,
|
|
26334
26347
|
children: P ? /* @__PURE__ */ $("div", {
|
|
26335
26348
|
className: "relative h-full w-full cursor-grabbing overflow-hidden rounded-xl bg-f1-background",
|
|
26336
26349
|
children: [/* @__PURE__ */ Q("div", {
|
|
@@ -26345,13 +26358,13 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26345
26358
|
]
|
|
26346
26359
|
}) : Pe,
|
|
26347
26360
|
l,
|
|
26348
|
-
r == null ? null : je(e.length, /* @__PURE__ */ Q(
|
|
26349
|
-
!o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(
|
|
26361
|
+
r == null ? null : je(e.length, /* @__PURE__ */ Q(jH, { text: r })),
|
|
26362
|
+
!o && f ? je(e.length + (r == null ? 0 : 1), /* @__PURE__ */ Q(nU, {
|
|
26350
26363
|
onClick: f,
|
|
26351
26364
|
label: v ?? O.widgets.addWidget,
|
|
26352
26365
|
side: t
|
|
26353
26366
|
})) : null,
|
|
26354
|
-
se?.paramsSchema && y ? /* @__PURE__ */ Q(
|
|
26367
|
+
se?.paramsSchema && y ? /* @__PURE__ */ Q(xH, {
|
|
26355
26368
|
isOpen: !0,
|
|
26356
26369
|
onClose: () => oe(null),
|
|
26357
26370
|
schema: se.paramsSchema,
|
|
@@ -26366,7 +26379,7 @@ function aU({ widgets: e = [], side: t = "main", children: n, footnote: r, slotR
|
|
|
26366
26379
|
}
|
|
26367
26380
|
//#endregion
|
|
26368
26381
|
//#region src/domains/platform/home/Home/NewHomeLayout/useRailMotion.ts
|
|
26369
|
-
var
|
|
26382
|
+
var iU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
26370
26383
|
let a = Zn(), [o, s] = X(!1);
|
|
26371
26384
|
K(() => {
|
|
26372
26385
|
r && s(!0);
|
|
@@ -26396,14 +26409,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26396
26409
|
},
|
|
26397
26410
|
glyphDelayMs: o ? 90 : 220
|
|
26398
26411
|
};
|
|
26399
|
-
},
|
|
26412
|
+
}, aU = {
|
|
26400
26413
|
morning: "bg-gradient-to-bl from-[#E51943] from-20% via-[#F97316] via-35% to-transparent to-50%",
|
|
26401
26414
|
afternoon: "bg-gradient-to-bl from-[#5596F6] from-20% via-[#10B881] via-35% to-transparent to-50%",
|
|
26402
26415
|
evening: "bg-gradient-to-bl from-[#3739A8] from-20% via-[#CB6687] via-35% to-transparent to-50%"
|
|
26403
|
-
},
|
|
26416
|
+
}, oU = ({ period: e, className: t }) => /* @__PURE__ */ Q("div", {
|
|
26404
26417
|
"aria-hidden": !0,
|
|
26405
|
-
className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]",
|
|
26406
|
-
}),
|
|
26418
|
+
className: B("pointer-events-none absolute inset-0 h-screen max-h-[1000px] opacity-[0.08]", aU[e], t)
|
|
26419
|
+
}), sU = 40, cU = 672, lU = "[scrollbar-width:none] [&::-webkit-scrollbar]:hidden", uU = 16, dU = 768, fU = { display: "contents" }, pU = 150, mU = 150, hU = hu(function({ children: e, mainFootnote: t, leftWidgets: n = [], rightWidgets: r = [], aside: i, slotRenderers: a, renderWidget: o, editableWidgetContainers: s = ["main", "right"], addableWidgetContainers: c, draggableWidgetContainers: l, virtualizedWidgetContainers: u = [], virtualization: d, onRemoveWidget: f, onChangeWidgetParams: p, rebuildWidget: m, renderWidgetPreview: h, onClickAddNewWidget: g, onReorderWidgets: _, tracking: v, period: y = "morning", asideWidth: b = 396, mainWidth: x = cU, bleed: S = 24, stackedPinsAfter: C = 2, ctx: w = {}, className: T, oneSwitchTooltip: E, oneSwitchAutoOpen: D, hideOneSwitch: O = !1 }, k) {
|
|
26407
26420
|
let A = R(), j = Zn(), M = Y(null), [N, P] = X(0), [F, I] = X(!1), [ee, te] = X(null), [ne, re] = X(0), [ie, ae] = X(!1), L = Y(null), oe = Y(null);
|
|
26408
26421
|
q(function() {
|
|
26409
26422
|
let e = M.current;
|
|
@@ -26416,10 +26429,10 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26416
26429
|
let n = new ResizeObserver(t);
|
|
26417
26430
|
return n.observe(e), () => n.disconnect();
|
|
26418
26431
|
}, []);
|
|
26419
|
-
let [se, ce] = X(null), le = (e) => s.includes(e), ue = (e) => le(e) && (c?.includes(e) ?? !0), de = (e) => le(e) && (l?.includes(e) ?? !0), fe =
|
|
26432
|
+
let [se, ce] = X(null), le = (e) => s.includes(e), ue = (e) => le(e) && (c?.includes(e) ?? !0), de = (e) => le(e) && (l?.includes(e) ?? !0), fe = cH(), pe = cH(), me = cH(), he = (e) => u.includes(e) ? {
|
|
26420
26433
|
...d,
|
|
26421
26434
|
scrollElement: e === "main" ? fe.element : pe.element
|
|
26422
|
-
} : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x +
|
|
26435
|
+
} : !1, ge = i != null || r.length > 0 || g != null && ue("right"), _e = N > 0 && N < x + uU + b, ve = ge && r.length > 0 && (_e || (se ?? !1)), ye = ve ? sU : b, be = ve ? A.actions.expand : A.actions.collapse, xe = ge && F, Se = N > 0 && N < dU, Ce = xe && !Se && (ve || N >= dU), we = {
|
|
26423
26436
|
pinned: r.filter((e) => e.locked),
|
|
26424
26437
|
rest: r.filter((e) => !e.locked)
|
|
26425
26438
|
}, [Te, Ee] = X({}), De = Y(/* @__PURE__ */ new Map()), Oe = (e) => {
|
|
@@ -26437,7 +26450,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26437
26450
|
...Ae.slice(0, C).map(je),
|
|
26438
26451
|
...we.pinned.map((e) => /* @__PURE__ */ Q("div", {
|
|
26439
26452
|
ref: Oe(e.id),
|
|
26440
|
-
style:
|
|
26453
|
+
style: fU
|
|
26441
26454
|
}, `pin-host-${e.id}`)),
|
|
26442
26455
|
...Ae.slice(C).map((e, t) => je(e, C + t))
|
|
26443
26456
|
], Ne = ve ? r.find((e) => e.id === ee) : void 0;
|
|
@@ -26448,7 +26461,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26448
26461
|
oe.current && clearTimeout(oe.current), L.current && clearTimeout(L.current);
|
|
26449
26462
|
};
|
|
26450
26463
|
}, []);
|
|
26451
|
-
let Pe =
|
|
26464
|
+
let Pe = iU({
|
|
26452
26465
|
collapsed: ve,
|
|
26453
26466
|
open: Ne != null,
|
|
26454
26467
|
glide: ie,
|
|
@@ -26482,7 +26495,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26482
26495
|
}, Ve = () => {
|
|
26483
26496
|
oe.current && clearTimeout(oe.current), oe.current = null;
|
|
26484
26497
|
}, He = () => {
|
|
26485
|
-
Be(), Ve(), L.current = setTimeout(() => te(null),
|
|
26498
|
+
Be(), Ve(), L.current = setTimeout(() => te(null), pU);
|
|
26486
26499
|
}, Ue = (e, t) => {
|
|
26487
26500
|
Ve();
|
|
26488
26501
|
let n = M.current;
|
|
@@ -26492,7 +26505,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26492
26505
|
}
|
|
26493
26506
|
ae(Le.current != null), te(e);
|
|
26494
26507
|
}, We = (e, t, n = !1) => {
|
|
26495
|
-
Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t),
|
|
26508
|
+
Be(), Ve(), Le.current !== e && (n ? Ue(e, t) : oe.current = setTimeout(() => Ue(e, t), mU));
|
|
26496
26509
|
}, Ge = /* @__PURE__ */ $(V.div, {
|
|
26497
26510
|
ref: (e) => {
|
|
26498
26511
|
M.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
|
|
@@ -26515,7 +26528,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26515
26528
|
left: -S,
|
|
26516
26529
|
right: -S
|
|
26517
26530
|
},
|
|
26518
|
-
children: /* @__PURE__ */ Q(
|
|
26531
|
+
children: /* @__PURE__ */ Q(oU, { period: y })
|
|
26519
26532
|
}),
|
|
26520
26533
|
/* @__PURE__ */ $(KB, {
|
|
26521
26534
|
order: 0,
|
|
@@ -26543,7 +26556,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26543
26556
|
}),
|
|
26544
26557
|
/* @__PURE__ */ Q("div", {
|
|
26545
26558
|
ref: fe.ref,
|
|
26546
|
-
className: B("relative isolate min-h-0 overflow-y-auto",
|
|
26559
|
+
className: B("relative isolate min-h-0 overflow-y-auto", lU),
|
|
26547
26560
|
style: {
|
|
26548
26561
|
gridColumn: 1,
|
|
26549
26562
|
gridRow: 2,
|
|
@@ -26554,17 +26567,17 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26554
26567
|
marginLeft: -S,
|
|
26555
26568
|
paddingLeft: S,
|
|
26556
26569
|
marginRight: Ce ? -16 : -S,
|
|
26557
|
-
paddingRight: Ce ?
|
|
26570
|
+
paddingRight: Ce ? uU : S,
|
|
26558
26571
|
...fe.style
|
|
26559
26572
|
},
|
|
26560
|
-
children: /* @__PURE__ */ Q(
|
|
26573
|
+
children: /* @__PURE__ */ Q(rU, {
|
|
26561
26574
|
side: "main",
|
|
26562
26575
|
className: "relative mx-auto w-full",
|
|
26563
26576
|
style: { maxWidth: `${x}px` },
|
|
26564
26577
|
widgets: n,
|
|
26565
26578
|
afterWidgets: we.rest.map((e) => /* @__PURE__ */ Q("div", {
|
|
26566
26579
|
ref: Oe(e.id),
|
|
26567
|
-
style:
|
|
26580
|
+
style: fU
|
|
26568
26581
|
}, `loose-host-${e.id}`)),
|
|
26569
26582
|
footnote: t,
|
|
26570
26583
|
slotRenderers: a,
|
|
@@ -26587,7 +26600,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26587
26600
|
}),
|
|
26588
26601
|
/* @__PURE__ */ Q(ir, { children: Se || !xe || !ve ? null : /* @__PURE__ */ $(V.aside, {
|
|
26589
26602
|
ref: me.ref,
|
|
26590
|
-
className: B("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20",
|
|
26603
|
+
className: B("-m-1 -ml-3 flex min-h-0 flex-col items-end gap-2 overflow-y-auto p-1 pl-3", "pointer-events-none z-20", lU),
|
|
26591
26604
|
style: {
|
|
26592
26605
|
gridColumn: 2,
|
|
26593
26606
|
gridRow: 2,
|
|
@@ -26601,7 +26614,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26601
26614
|
transition: IB(AB, j),
|
|
26602
26615
|
onMouseLeave: He,
|
|
26603
26616
|
onMouseEnter: Be,
|
|
26604
|
-
children: [r.map((e, t) => /* @__PURE__ */ Q(
|
|
26617
|
+
children: [r.map((e, t) => /* @__PURE__ */ Q(sH, {
|
|
26605
26618
|
widget: e,
|
|
26606
26619
|
order: t,
|
|
26607
26620
|
open: ee === e.id,
|
|
@@ -26632,7 +26645,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26632
26645
|
xe ? /* @__PURE__ */ Q(V.aside, {
|
|
26633
26646
|
ref: pe.ref,
|
|
26634
26647
|
hidden: Se || Fe && Pe.panelHidden,
|
|
26635
|
-
className: B("min-h-0 overflow-y-auto overflow-x-hidden",
|
|
26648
|
+
className: B("min-h-0 overflow-y-auto overflow-x-hidden", lU, Fe && "absolute z-10 rounded-xl bg-f1-background dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", Pe.mode === "retracting" && "relative z-10"),
|
|
26636
26649
|
style: ze,
|
|
26637
26650
|
initial: !1,
|
|
26638
26651
|
animate: {
|
|
@@ -26644,7 +26657,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26644
26657
|
transition: Pe.transition,
|
|
26645
26658
|
onMouseEnter: ve ? Be : void 0,
|
|
26646
26659
|
onMouseLeave: ve ? He : void 0,
|
|
26647
|
-
children: /* @__PURE__ */ Q(
|
|
26660
|
+
children: /* @__PURE__ */ Q(rU, {
|
|
26648
26661
|
side: "right",
|
|
26649
26662
|
widgets: r,
|
|
26650
26663
|
visibleWidgetId: !Se && Fe ? Re : void 0,
|
|
@@ -26686,36 +26699,36 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26686
26699
|
tracking: v,
|
|
26687
26700
|
children: Ge
|
|
26688
26701
|
});
|
|
26689
|
-
}),
|
|
26702
|
+
}), gU = (e) => e ? ii[e] : void 0, _U = (e) => e.type === "icon" ? {
|
|
26690
26703
|
...e,
|
|
26691
|
-
icon:
|
|
26692
|
-
} : e,
|
|
26693
|
-
...e.type === "navigate" &&
|
|
26704
|
+
icon: gU(e.icon) ?? Ua
|
|
26705
|
+
} : e, vU = (e, t, n) => ({
|
|
26706
|
+
...e.type === "navigate" && DH(e.href) ? { href: e.href } : {},
|
|
26694
26707
|
onClick: () => n(e, t)
|
|
26695
|
-
}),
|
|
26708
|
+
}), yU = (e, t, n) => ({
|
|
26696
26709
|
label: e.label,
|
|
26697
|
-
icon:
|
|
26710
|
+
icon: gU(e.icon),
|
|
26698
26711
|
variant: e.variant,
|
|
26699
|
-
...
|
|
26700
|
-
}),
|
|
26712
|
+
...vU(e.action, t, n)
|
|
26713
|
+
}), bU = ({ title: e, slots: t, loading: n, slotRenderers: r, fullHeight: i }) => /* @__PURE__ */ Q(mH, {
|
|
26701
26714
|
headless: !e,
|
|
26702
26715
|
header: e ? { title: e } : void 0,
|
|
26703
26716
|
fullHeight: i,
|
|
26704
26717
|
slots: t,
|
|
26705
26718
|
loading: n,
|
|
26706
26719
|
slotRenderers: r
|
|
26707
|
-
}),
|
|
26720
|
+
}), xU = "agentic-empty-state", SU = [
|
|
26708
26721
|
"default",
|
|
26709
26722
|
"outline",
|
|
26710
26723
|
"neutral",
|
|
26711
26724
|
"promote"
|
|
26712
|
-
],
|
|
26725
|
+
], CU = (e) => SU.find((t) => t === e), wU = ({ empty: e, elementId: t, onAction: n }) => {
|
|
26713
26726
|
let r = R(), i = e?.title ?? r.collections.emptyStates.noData.title, a = e ? e.description : r.collections.emptyStates.noData.description, o = e?.actions?.slice(0, 2).map((e) => ({
|
|
26714
26727
|
label: e.label,
|
|
26715
|
-
icon:
|
|
26716
|
-
variant:
|
|
26728
|
+
icon: gU(e.icon),
|
|
26729
|
+
variant: CU(e.variant),
|
|
26717
26730
|
onClick: () => n(e.action, t ? { elementId: t } : {})
|
|
26718
|
-
})), s = J(() => ({ [
|
|
26731
|
+
})), s = J(() => ({ [xU]: () => /* @__PURE__ */ Q(E, {
|
|
26719
26732
|
title: i,
|
|
26720
26733
|
description: a,
|
|
26721
26734
|
emoji: e?.emoji ?? "📭",
|
|
@@ -26726,27 +26739,27 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26726
26739
|
e?.emoji,
|
|
26727
26740
|
o
|
|
26728
26741
|
]);
|
|
26729
|
-
return /* @__PURE__ */ Q(
|
|
26742
|
+
return /* @__PURE__ */ Q(bU, {
|
|
26730
26743
|
slots: [{
|
|
26731
|
-
visualization:
|
|
26744
|
+
visualization: xU,
|
|
26732
26745
|
params: {}
|
|
26733
26746
|
}],
|
|
26734
26747
|
slotRenderers: s
|
|
26735
26748
|
});
|
|
26736
|
-
},
|
|
26737
|
-
let t = R(), n = J(() => ({ [
|
|
26749
|
+
}, TU = ({ message: e }) => {
|
|
26750
|
+
let t = R(), n = J(() => ({ [xU]: () => /* @__PURE__ */ Q(E, {
|
|
26738
26751
|
variant: "critical",
|
|
26739
26752
|
title: t.collections.emptyStates.error.title,
|
|
26740
26753
|
description: e ?? t.collections.emptyStates.error.description
|
|
26741
26754
|
}) }), [t, e]);
|
|
26742
|
-
return /* @__PURE__ */ Q(
|
|
26755
|
+
return /* @__PURE__ */ Q(bU, {
|
|
26743
26756
|
slots: [{
|
|
26744
|
-
visualization:
|
|
26757
|
+
visualization: xU,
|
|
26745
26758
|
params: {}
|
|
26746
26759
|
}],
|
|
26747
26760
|
slotRenderers: n
|
|
26748
26761
|
});
|
|
26749
|
-
},
|
|
26762
|
+
}, EU = (e) => {
|
|
26750
26763
|
switch (e.type) {
|
|
26751
26764
|
case "stats": return e.stats;
|
|
26752
26765
|
case "charts": return e.charts;
|
|
@@ -26757,15 +26770,15 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26757
26770
|
case "posts": return e.posts.map(({ id: e }) => ({ id: e }));
|
|
26758
26771
|
case "text": return [];
|
|
26759
26772
|
}
|
|
26760
|
-
},
|
|
26773
|
+
}, DU = (e, t, n, r) => {
|
|
26761
26774
|
let i = t?.itemActions;
|
|
26762
|
-
if (i) for (let t of
|
|
26775
|
+
if (i) for (let t of EU(e)) (!t.action || !i.includes(t.action.type)) && r.push({
|
|
26763
26776
|
rule: "itemAction",
|
|
26764
26777
|
...n,
|
|
26765
26778
|
itemId: t.id,
|
|
26766
26779
|
expected: i
|
|
26767
26780
|
});
|
|
26768
|
-
},
|
|
26781
|
+
}, OU = {
|
|
26769
26782
|
stats: 3,
|
|
26770
26783
|
charts: 2,
|
|
26771
26784
|
list: 3,
|
|
@@ -26773,7 +26786,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26773
26786
|
events: 2,
|
|
26774
26787
|
posts: 1,
|
|
26775
26788
|
widget: 3
|
|
26776
|
-
},
|
|
26789
|
+
}, kU = (e) => Math.max(1, e.expectedItemsCount ?? OU[e.type]), AU = (e) => {
|
|
26777
26790
|
switch (e.type) {
|
|
26778
26791
|
case "stats": return e.stats.length;
|
|
26779
26792
|
case "charts": return e.charts.length;
|
|
@@ -26784,7 +26797,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26784
26797
|
case "shortcuts": return e.shortcuts.length;
|
|
26785
26798
|
case "text": return 1;
|
|
26786
26799
|
}
|
|
26787
|
-
},
|
|
26800
|
+
}, jU = (e, t) => {
|
|
26788
26801
|
switch (e.type) {
|
|
26789
26802
|
case "stats": return {
|
|
26790
26803
|
...e,
|
|
@@ -26816,22 +26829,22 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26816
26829
|
};
|
|
26817
26830
|
case "text": return e;
|
|
26818
26831
|
}
|
|
26819
|
-
},
|
|
26820
|
-
let i =
|
|
26832
|
+
}, MU = (e, t) => e.blocks?.find((e) => e.type === t), NU = (e, t) => e.allowedBlockTypes?.includes(t) ?? !0, PU = (e, t, n, r) => {
|
|
26833
|
+
let i = MU(n, e.type)?.maxItems, a = AU(e);
|
|
26821
26834
|
return i === void 0 || a <= i ? e : (r.push({
|
|
26822
26835
|
rule: "maxItems",
|
|
26823
26836
|
elementId: t,
|
|
26824
26837
|
blockType: e.type,
|
|
26825
26838
|
limit: i,
|
|
26826
26839
|
count: a
|
|
26827
|
-
}),
|
|
26828
|
-
},
|
|
26829
|
-
let n = e.type === "widget" ? void 0 :
|
|
26830
|
-
return n !== void 0 &&
|
|
26840
|
+
}), jU(e, i));
|
|
26841
|
+
}, FU = (e, t) => {
|
|
26842
|
+
let n = e.type === "widget" ? void 0 : MU(t, e.type)?.maxItems;
|
|
26843
|
+
return n !== void 0 && kU(e) > n ? {
|
|
26831
26844
|
...e,
|
|
26832
26845
|
expectedItemsCount: Math.max(1, n)
|
|
26833
26846
|
} : e;
|
|
26834
|
-
},
|
|
26847
|
+
}, IU = (e, t, n) => t === n || (t === "widget" || n === "widget") && !MU(e, "widget") || (MU(e, t)?.combinesWith?.includes(n) ?? !0) && (MU(e, n)?.combinesWith?.includes(t) ?? !0), LU = (e, t) => {
|
|
26835
26848
|
let n = t ? e.lead : void 0;
|
|
26836
26849
|
if (!n) return e;
|
|
26837
26850
|
let r = new Set(n.blocks?.map((e) => e.type));
|
|
@@ -26839,30 +26852,30 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26839
26852
|
...e,
|
|
26840
26853
|
...n,
|
|
26841
26854
|
blocks: [...(e.blocks ?? []).filter((e) => !r.has(e.type)), ...(n.blocks ?? []).map((t) => ({
|
|
26842
|
-
...
|
|
26855
|
+
...MU(e, t.type),
|
|
26843
26856
|
...t
|
|
26844
26857
|
}))]
|
|
26845
26858
|
};
|
|
26846
|
-
},
|
|
26859
|
+
}, RU = (e, t) => {
|
|
26847
26860
|
let n = Array.isArray(e.params) ? e.params : [], r = t ?? {};
|
|
26848
26861
|
return {
|
|
26849
26862
|
missingParams: n.filter((e) => typeof r[e] != "string" || r[e] === ""),
|
|
26850
26863
|
undeclaredParams: Object.keys(r).filter((e) => !n.includes(e))
|
|
26851
26864
|
};
|
|
26852
|
-
},
|
|
26853
|
-
if (Array.isArray(e)) for (let r of e)
|
|
26854
|
-
else if (
|
|
26855
|
-
if (
|
|
26865
|
+
}, zU = (e) => "type" in e && e.type === "openAccessoryView" && "id" in e && typeof e.id == "string", BU = (e) => typeof e == "object" && !!e, VU = (e) => BU(e) && "id" in e && typeof e.id == "string" ? e.id : void 0, HU = (e, t, n = []) => {
|
|
26866
|
+
if (Array.isArray(e)) for (let r of e) HU(r, VU(r) ?? t, n);
|
|
26867
|
+
else if (BU(e)) {
|
|
26868
|
+
if (zU(e)) n.push(t ? {
|
|
26856
26869
|
action: e,
|
|
26857
26870
|
itemId: t
|
|
26858
26871
|
} : { action: e });
|
|
26859
|
-
else for (let r of Object.values(e))
|
|
26872
|
+
else for (let r of Object.values(e)) HU(r, t, n);
|
|
26860
26873
|
}
|
|
26861
26874
|
return n;
|
|
26862
|
-
},
|
|
26875
|
+
}, UU = (e) => [...new Map(e.map((e) => [JSON.stringify(e), e])).values()], WU = (e, t, n) => HU(e).flatMap(({ action: e, itemId: r }) => {
|
|
26863
26876
|
let i = t.find(({ id: t }) => t === e.id);
|
|
26864
26877
|
if (!i) return [];
|
|
26865
|
-
let a =
|
|
26878
|
+
let a = RU(i, e.params);
|
|
26866
26879
|
return !a.missingParams.length && !a.undeclaredParams.length ? [] : [{
|
|
26867
26880
|
rule: "accessoryViewParams",
|
|
26868
26881
|
viewId: i.id,
|
|
@@ -26871,39 +26884,39 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26871
26884
|
...r && r !== n.elementId ? { itemId: r } : {},
|
|
26872
26885
|
...n.accessoryViewId ? { accessoryViewId: n.accessoryViewId } : {}
|
|
26873
26886
|
}];
|
|
26874
|
-
}),
|
|
26887
|
+
}), GU = (e, t, n) => [...WU([e.followUps, e.actions], t, { accessoryViewId: n }), ...e.elements.flatMap((e) => e.type === "shortcuts" || e.type === "text" ? WU(e, t, {
|
|
26875
26888
|
elementId: e.id,
|
|
26876
26889
|
accessoryViewId: n
|
|
26877
|
-
}) : [])],
|
|
26890
|
+
}) : [])], KU = (e) => {
|
|
26878
26891
|
let t = e.accessoryViews ?? [];
|
|
26879
|
-
return
|
|
26880
|
-
},
|
|
26892
|
+
return UU([...e.sections.flatMap((e) => GU(e, t, void 0)), ...t.flatMap((e) => [...(e.sections ?? []).flatMap((n) => GU(n, t, e.id)), ...WU(e.actions, t, { accessoryViewId: e.id })])]);
|
|
26893
|
+
}, qU = (e, t, n) => (r, i) => r?.type !== "goToSection" || r.sectionId !== t.sectionId && e.has(r.sectionId) ? !0 : (n.push({
|
|
26881
26894
|
rule: "sectionLink",
|
|
26882
26895
|
...t,
|
|
26883
26896
|
...i ? { itemId: i } : {},
|
|
26884
26897
|
targetSectionId: r.sectionId
|
|
26885
|
-
}), !1),
|
|
26898
|
+
}), !1), JU = (e, t) => {
|
|
26886
26899
|
if (t(e.action, e.id)) return e;
|
|
26887
26900
|
let { action: n, ...r } = e;
|
|
26888
26901
|
return r;
|
|
26889
|
-
},
|
|
26902
|
+
}, YU = (e, t) => {
|
|
26890
26903
|
switch (e.type) {
|
|
26891
26904
|
case "stats": return {
|
|
26892
26905
|
...e,
|
|
26893
|
-
stats: e.stats.map((e) =>
|
|
26906
|
+
stats: e.stats.map((e) => JU(e, t))
|
|
26894
26907
|
};
|
|
26895
26908
|
case "charts": return {
|
|
26896
26909
|
...e,
|
|
26897
|
-
charts: e.charts.map((e) =>
|
|
26910
|
+
charts: e.charts.map((e) => JU(e, t))
|
|
26898
26911
|
};
|
|
26899
26912
|
case "events": return {
|
|
26900
26913
|
...e,
|
|
26901
|
-
events: e.events.map((e) =>
|
|
26914
|
+
events: e.events.map((e) => JU(e, t))
|
|
26902
26915
|
};
|
|
26903
26916
|
case "list": return {
|
|
26904
26917
|
...e,
|
|
26905
26918
|
rows: e.rows.map((e) => ({
|
|
26906
|
-
...
|
|
26919
|
+
...JU(e, t),
|
|
26907
26920
|
actions: e.actions?.filter((n) => t(n.action, e.id))
|
|
26908
26921
|
}))
|
|
26909
26922
|
};
|
|
@@ -26915,24 +26928,24 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26915
26928
|
case "posts":
|
|
26916
26929
|
case "text": return e;
|
|
26917
26930
|
}
|
|
26918
|
-
},
|
|
26931
|
+
}, XU = (e, t, n, r) => YU(e, qU(t, n, r)), ZU = (e, t) => {
|
|
26919
26932
|
let n = new Set(e.map((e) => e.id));
|
|
26920
26933
|
return e.map((e) => {
|
|
26921
|
-
let r =
|
|
26934
|
+
let r = qU(n, { sectionId: e.id }, t);
|
|
26922
26935
|
return {
|
|
26923
26936
|
...e,
|
|
26924
26937
|
actions: e.actions?.filter((e) => e.type === "separator" || r(e.action)),
|
|
26925
26938
|
followUps: e.followUps?.filter((e) => r(e.action)),
|
|
26926
|
-
elements: e.elements.map((r) => r.type === "shortcuts" ?
|
|
26939
|
+
elements: e.elements.map((r) => r.type === "shortcuts" ? YU(r, qU(n, {
|
|
26927
26940
|
sectionId: e.id,
|
|
26928
26941
|
elementId: r.id
|
|
26929
26942
|
}, t)) : r)
|
|
26930
26943
|
};
|
|
26931
26944
|
});
|
|
26932
|
-
},
|
|
26945
|
+
}, QU = (e) => e.widget ? "widget" : e.block.type, $U = (e, t) => QU(t) === e.type, eW = (e, t, n) => {
|
|
26933
26946
|
let r = /* @__PURE__ */ new Map();
|
|
26934
26947
|
e.sections.forEach((e, n) => {
|
|
26935
|
-
let i =
|
|
26948
|
+
let i = LU(t, n === 0);
|
|
26936
26949
|
for (let t of e.elements) r.set(t.id, {
|
|
26937
26950
|
element: t,
|
|
26938
26951
|
rules: i,
|
|
@@ -26952,23 +26965,23 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26952
26965
|
});
|
|
26953
26966
|
}
|
|
26954
26967
|
return r;
|
|
26955
|
-
},
|
|
26956
|
-
let i = new Set(t.sections.map((e) => e.id)), a =
|
|
26968
|
+
}, tW = (e, t, n, r = []) => {
|
|
26969
|
+
let i = new Set(t.sections.map((e) => e.id)), a = eW(t, n, r), o = [], s = Object.entries(e).map(([e, t]) => {
|
|
26957
26970
|
let n = a.get(e);
|
|
26958
26971
|
if (!n || t.status !== "ready") return [e, t];
|
|
26959
26972
|
let r = [], s = t;
|
|
26960
|
-
if (
|
|
26973
|
+
if (!$U(n.element, t)) r.push({
|
|
26961
26974
|
rule: "sourceType",
|
|
26962
26975
|
elementId: e,
|
|
26963
26976
|
expected: n.element.type,
|
|
26964
|
-
received:
|
|
26977
|
+
received: QU(t)
|
|
26965
26978
|
});
|
|
26966
26979
|
else if (t.block) {
|
|
26967
26980
|
let a = {
|
|
26968
26981
|
sectionId: n.sectionId,
|
|
26969
26982
|
elementId: e
|
|
26970
|
-
}, o =
|
|
26971
|
-
|
|
26983
|
+
}, o = XU(PU(t.block, e, n.rules, r), i, a, r);
|
|
26984
|
+
DU(o, MU(n.rules, o.type), a, r), s = {
|
|
26972
26985
|
...t,
|
|
26973
26986
|
block: o
|
|
26974
26987
|
};
|
|
@@ -26979,25 +26992,25 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
26979
26992
|
} : e)), [e, s];
|
|
26980
26993
|
}), c = t.accessoryViews ?? [], l = s.flatMap(([e, t]) => {
|
|
26981
26994
|
let n = a.get(e);
|
|
26982
|
-
return n && t.status === "ready" && t.block ?
|
|
26995
|
+
return n && t.status === "ready" && t.block ? WU(t.block, c, {
|
|
26983
26996
|
elementId: e,
|
|
26984
26997
|
accessoryViewId: n.accessoryViewId
|
|
26985
26998
|
}) : [];
|
|
26986
26999
|
});
|
|
26987
27000
|
return {
|
|
26988
27001
|
sources: Object.fromEntries(s),
|
|
26989
|
-
violations: [...o, ...
|
|
27002
|
+
violations: [...o, ...UU(l)]
|
|
26990
27003
|
};
|
|
26991
|
-
},
|
|
27004
|
+
}, nW = ({ press: e, children: t }) => /* @__PURE__ */ Q("div", {
|
|
26992
27005
|
"data-agentic-card": "",
|
|
26993
27006
|
className: B("relative h-full rounded-xl", e && "transition-colors hover:bg-f1-background-hover"),
|
|
26994
27007
|
children: t
|
|
26995
|
-
}),
|
|
27008
|
+
}), rW = "after:absolute after:inset-0 after:z-[1] after:rounded-xl after:content-['']", iW = ({ label: e, press: t }) => {
|
|
26996
27009
|
if (!t) return /* @__PURE__ */ Q(vl, {
|
|
26997
27010
|
variant: "label",
|
|
26998
27011
|
content: e
|
|
26999
27012
|
});
|
|
27000
|
-
let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline",
|
|
27013
|
+
let n = B("border-none bg-transparent p-0 text-left font-medium text-f1-foreground no-underline", rW, En());
|
|
27001
27014
|
return t.href ? /* @__PURE__ */ Q(Vn, {
|
|
27002
27015
|
href: t.href,
|
|
27003
27016
|
onClick: t.onClick,
|
|
@@ -27013,9 +27026,9 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27013
27026
|
className: B("cursor-pointer", n),
|
|
27014
27027
|
children: e
|
|
27015
27028
|
});
|
|
27016
|
-
},
|
|
27029
|
+
}, aW = (e) => {
|
|
27017
27030
|
if (!e) return;
|
|
27018
|
-
let t =
|
|
27031
|
+
let t = oW(e.type === "percent" ? {
|
|
27019
27032
|
style: "percent",
|
|
27020
27033
|
maximumFractionDigits: 1
|
|
27021
27034
|
} : e.type === "compact" ? {
|
|
@@ -27026,27 +27039,27 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27026
27039
|
currency: e.currency
|
|
27027
27040
|
} : {});
|
|
27028
27041
|
return (e) => t.format(e);
|
|
27029
|
-
},
|
|
27042
|
+
}, oW = (e) => {
|
|
27030
27043
|
try {
|
|
27031
27044
|
return new Intl.NumberFormat(void 0, e);
|
|
27032
27045
|
} catch {
|
|
27033
27046
|
return new Intl.NumberFormat();
|
|
27034
27047
|
}
|
|
27035
|
-
},
|
|
27036
|
-
let r =
|
|
27048
|
+
}, sW = ({ spec: e, label: t, format: n }) => {
|
|
27049
|
+
let r = aW(n);
|
|
27037
27050
|
return /* @__PURE__ */ Q(Xe, {
|
|
27038
27051
|
...e,
|
|
27039
27052
|
ariaLabel: t,
|
|
27040
27053
|
valueFormatter: r
|
|
27041
27054
|
});
|
|
27042
|
-
},
|
|
27055
|
+
}, cW = ({ chart: e, press: t }) => /* @__PURE__ */ $(bs, {
|
|
27043
27056
|
display: "flex",
|
|
27044
27057
|
flexDirection: "column",
|
|
27045
27058
|
gap: "md",
|
|
27046
27059
|
children: [/* @__PURE__ */ $(bs, {
|
|
27047
27060
|
display: "flex",
|
|
27048
27061
|
flexDirection: "column",
|
|
27049
|
-
children: [/* @__PURE__ */ Q(
|
|
27062
|
+
children: [/* @__PURE__ */ Q(iW, {
|
|
27050
27063
|
label: e.label,
|
|
27051
27064
|
press: t
|
|
27052
27065
|
}), e.caption ? /* @__PURE__ */ Q(vl, {
|
|
@@ -27055,24 +27068,24 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27055
27068
|
}) : null]
|
|
27056
27069
|
}), /* @__PURE__ */ Q("div", {
|
|
27057
27070
|
className: "h-48 w-full",
|
|
27058
|
-
children: /* @__PURE__ */ Q(
|
|
27071
|
+
children: /* @__PURE__ */ Q(sW, {
|
|
27059
27072
|
spec: e.chart,
|
|
27060
27073
|
label: e.label,
|
|
27061
27074
|
format: e.format
|
|
27062
27075
|
})
|
|
27063
27076
|
})]
|
|
27064
|
-
}),
|
|
27077
|
+
}), lW = 300, uW = 7, dW = 14, fW = 5, pW = 18, mW = 3, hW = (e) => Math.max(0, ...e.map((e) => e.length)), gW = (e) => {
|
|
27065
27078
|
if (e.type === "pie") {
|
|
27066
27079
|
let t = e.series.data.map((e) => e.name);
|
|
27067
|
-
return t.length >
|
|
27080
|
+
return t.length > fW || hW(t) > pW;
|
|
27068
27081
|
}
|
|
27069
|
-
if (e.series.length >
|
|
27070
|
-
if (e.type === "bar" && e.orientation === "horizontal") return
|
|
27071
|
-
let t =
|
|
27072
|
-
return
|
|
27073
|
-
},
|
|
27082
|
+
if (e.series.length > mW) return !0;
|
|
27083
|
+
if (e.type === "bar" && e.orientation === "horizontal") return hW(e.categories) > dW;
|
|
27084
|
+
let t = lW / Math.max(1, e.categories.length);
|
|
27085
|
+
return hW(e.categories) * uW > t;
|
|
27086
|
+
}, _W = (e) => {
|
|
27074
27087
|
if (e.length === 1) return ["full"];
|
|
27075
|
-
let t = e.map((e) =>
|
|
27088
|
+
let t = e.map((e) => gW(e.chart) ? "full" : "half"), n = 0;
|
|
27076
27089
|
return t.forEach((e, r) => {
|
|
27077
27090
|
if (e === "half" && (n += 1), (e === "full" || r === t.length - 1) && n % 2 == 1) {
|
|
27078
27091
|
let n = e === "half" ? r : r - 1;
|
|
@@ -27080,42 +27093,42 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27080
27093
|
}
|
|
27081
27094
|
e === "full" && (n = 0);
|
|
27082
27095
|
}), t;
|
|
27083
|
-
},
|
|
27084
|
-
let r =
|
|
27096
|
+
}, vW = "agentic-chart", yW = { [vW]: (e) => /* @__PURE__ */ Q(cW, { ...e }) }, bW = ({ charts: e, elementId: t, onAction: n }) => {
|
|
27097
|
+
let r = _W(e);
|
|
27085
27098
|
return /* @__PURE__ */ Q("div", {
|
|
27086
27099
|
className: "grid w-full max-w-content grid-cols-1 gap-4 sm:grid-cols-2",
|
|
27087
27100
|
children: e.map((e, i) => {
|
|
27088
|
-
let a = e.action ?
|
|
27101
|
+
let a = e.action ? vU(e.action, {
|
|
27089
27102
|
elementId: t,
|
|
27090
27103
|
itemId: e.id
|
|
27091
27104
|
}, n) : void 0;
|
|
27092
27105
|
return /* @__PURE__ */ Q("div", {
|
|
27093
27106
|
"data-chart-span": r[i],
|
|
27094
27107
|
className: r[i] === "full" ? "min-w-0 sm:col-span-2" : "min-w-0",
|
|
27095
|
-
children: /* @__PURE__ */ Q(
|
|
27108
|
+
children: /* @__PURE__ */ Q(nW, {
|
|
27096
27109
|
press: a,
|
|
27097
|
-
children: /* @__PURE__ */ Q(
|
|
27110
|
+
children: /* @__PURE__ */ Q(bU, {
|
|
27098
27111
|
fullHeight: !0,
|
|
27099
27112
|
slots: [{
|
|
27100
|
-
visualization:
|
|
27113
|
+
visualization: vW,
|
|
27101
27114
|
params: {
|
|
27102
27115
|
chart: e,
|
|
27103
27116
|
press: a
|
|
27104
27117
|
}
|
|
27105
27118
|
}],
|
|
27106
|
-
slotRenderers:
|
|
27119
|
+
slotRenderers: yW
|
|
27107
27120
|
})
|
|
27108
27121
|
})
|
|
27109
27122
|
}, e.id);
|
|
27110
27123
|
})
|
|
27111
27124
|
});
|
|
27112
|
-
},
|
|
27125
|
+
}, xW = ({ events: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(bs, {
|
|
27113
27126
|
display: "flex",
|
|
27114
27127
|
flexDirection: "column",
|
|
27115
27128
|
gap: "md",
|
|
27116
|
-
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(
|
|
27129
|
+
children: e.map(({ id: e, from: r, to: i, pending: a, action: o, ...s }) => /* @__PURE__ */ Q(bU, { slots: [CV("event-list", { events: [{
|
|
27117
27130
|
...s,
|
|
27118
|
-
...o ?
|
|
27131
|
+
...o ? vU(o, {
|
|
27119
27132
|
elementId: t,
|
|
27120
27133
|
itemId: e
|
|
27121
27134
|
}, n) : {},
|
|
@@ -27124,22 +27137,22 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27124
27137
|
fromDate: r ? new Date(r) : void 0,
|
|
27125
27138
|
toDate: i ? new Date(i) : void 0
|
|
27126
27139
|
}] })] }, e))
|
|
27127
|
-
}),
|
|
27140
|
+
}), SW = ({ action: e, rows: t, ...n }, r, i) => ({
|
|
27128
27141
|
...n,
|
|
27129
|
-
href:
|
|
27142
|
+
href: DH(n.href),
|
|
27130
27143
|
...e ? {
|
|
27131
27144
|
href: void 0,
|
|
27132
|
-
...
|
|
27145
|
+
...vU(e, {
|
|
27133
27146
|
elementId: r,
|
|
27134
27147
|
itemId: n.id
|
|
27135
27148
|
}, i)
|
|
27136
27149
|
} : {},
|
|
27137
|
-
avatar: n.avatar &&
|
|
27138
|
-
rightAvatar: n.rightAvatar &&
|
|
27139
|
-
avatars: n.avatars?.map(
|
|
27150
|
+
avatar: n.avatar && _U(n.avatar),
|
|
27151
|
+
rightAvatar: n.rightAvatar && _U(n.rightAvatar),
|
|
27152
|
+
avatars: n.avatars?.map(_U),
|
|
27140
27153
|
actions: n.actions?.map((e) => ({
|
|
27141
27154
|
label: e.label,
|
|
27142
|
-
icon:
|
|
27155
|
+
icon: gU(e.icon),
|
|
27143
27156
|
critical: e.critical,
|
|
27144
27157
|
showLabel: e.showLabel,
|
|
27145
27158
|
onClick: () => i(e.action, {
|
|
@@ -27147,19 +27160,19 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27147
27160
|
itemId: n.id
|
|
27148
27161
|
})
|
|
27149
27162
|
}))
|
|
27150
|
-
}),
|
|
27151
|
-
...
|
|
27152
|
-
items: e.rows?.map((e) =>
|
|
27153
|
-
}),
|
|
27163
|
+
}), CW = (e, t, n) => ({
|
|
27164
|
+
...SW(e, t, n),
|
|
27165
|
+
items: e.rows?.map((e) => SW(e, t, n))
|
|
27166
|
+
}), wW = (e) => e.rows.flatMap((e) => [e, ...e.rows ?? []]).some(({ action: e }) => e?.type === "navigate") ? {
|
|
27154
27167
|
...e.schema,
|
|
27155
27168
|
clickBehavior: "link"
|
|
27156
|
-
} : e.schema,
|
|
27169
|
+
} : e.schema, TW = (e, t, n) => [{
|
|
27157
27170
|
visualization: "list",
|
|
27158
27171
|
params: {
|
|
27159
|
-
schema:
|
|
27160
|
-
items: e.rows.map((e) =>
|
|
27172
|
+
schema: wW(e),
|
|
27173
|
+
items: e.rows.map((e) => CW(e, t, n))
|
|
27161
27174
|
}
|
|
27162
|
-
}],
|
|
27175
|
+
}], EW = ({ className: e, children: t }) => {
|
|
27163
27176
|
let n = Y(null), r = Kt(n);
|
|
27164
27177
|
return /* @__PURE__ */ Q("div", {
|
|
27165
27178
|
ref: n,
|
|
@@ -27169,7 +27182,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27169
27182
|
children: t
|
|
27170
27183
|
})
|
|
27171
27184
|
});
|
|
27172
|
-
},
|
|
27185
|
+
}, DW = ({ content: e, elementId: t, onAction: n }) => /* @__PURE__ */ $(bs, {
|
|
27173
27186
|
display: "flex",
|
|
27174
27187
|
flexDirection: "column",
|
|
27175
27188
|
gap: "md",
|
|
@@ -27177,18 +27190,18 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27177
27190
|
children: [e.title ? /* @__PURE__ */ Q("h3", {
|
|
27178
27191
|
className: "m-0 text-lg font-normal text-f1-foreground-secondary",
|
|
27179
27192
|
children: e.title
|
|
27180
|
-
}) : null, /* @__PURE__ */ Q(
|
|
27193
|
+
}) : null, /* @__PURE__ */ Q(EW, {
|
|
27181
27194
|
className: "text-lg [&_[data-list-row]]:gap-4",
|
|
27182
|
-
children: /* @__PURE__ */ Q(
|
|
27195
|
+
children: /* @__PURE__ */ Q(pH, { slots: TW(e, t, n) })
|
|
27183
27196
|
})]
|
|
27184
|
-
}),
|
|
27197
|
+
}), OW = ({ content: e, elementId: t, onAction: n }) => e.bare ? /* @__PURE__ */ Q(DW, {
|
|
27185
27198
|
content: e,
|
|
27186
27199
|
elementId: t,
|
|
27187
27200
|
onAction: n
|
|
27188
|
-
}) : /* @__PURE__ */ Q(
|
|
27201
|
+
}) : /* @__PURE__ */ Q(bU, {
|
|
27189
27202
|
title: e.title,
|
|
27190
|
-
slots:
|
|
27191
|
-
}),
|
|
27203
|
+
slots: TW(e, t, n)
|
|
27204
|
+
}), kW = ({ posts: e }) => /* @__PURE__ */ Q(bs, {
|
|
27192
27205
|
display: "flex",
|
|
27193
27206
|
flexDirection: "column",
|
|
27194
27207
|
gap: "md",
|
|
@@ -27196,11 +27209,11 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27196
27209
|
variant: "row",
|
|
27197
27210
|
post: {
|
|
27198
27211
|
...n,
|
|
27199
|
-
href:
|
|
27212
|
+
href: DH(t),
|
|
27200
27213
|
createdAt: new Date(e)
|
|
27201
27214
|
}
|
|
27202
27215
|
}, n.id))
|
|
27203
|
-
}),
|
|
27216
|
+
}), AW = ({ shortcuts: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(bs, {
|
|
27204
27217
|
display: "flex",
|
|
27205
27218
|
flexWrap: "wrap",
|
|
27206
27219
|
gap: "sm",
|
|
@@ -27208,27 +27221,27 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27208
27221
|
variant: "neutral",
|
|
27209
27222
|
size: "md",
|
|
27210
27223
|
label: e.label,
|
|
27211
|
-
icon:
|
|
27212
|
-
...
|
|
27224
|
+
icon: gU(e.icon),
|
|
27225
|
+
...vU(e.action, {
|
|
27213
27226
|
elementId: t,
|
|
27214
27227
|
itemId: e.id
|
|
27215
27228
|
}, n)
|
|
27216
27229
|
}, e.id))
|
|
27217
|
-
}),
|
|
27230
|
+
}), jW = "agentic-stats", MW = {
|
|
27218
27231
|
positive: "text-f1-foreground-positive",
|
|
27219
27232
|
negative: "text-f1-foreground-critical",
|
|
27220
27233
|
neutral: "text-f1-foreground-secondary"
|
|
27221
|
-
},
|
|
27222
|
-
visualization:
|
|
27234
|
+
}, NW = (e, t, n) => ({
|
|
27235
|
+
visualization: jW,
|
|
27223
27236
|
params: { stats: e.map((e) => ({
|
|
27224
27237
|
stat: e,
|
|
27225
|
-
press: e.action ?
|
|
27238
|
+
press: e.action ? vU(e.action, {
|
|
27226
27239
|
elementId: t,
|
|
27227
27240
|
itemId: e.id
|
|
27228
27241
|
}, n) : void 0
|
|
27229
27242
|
})) }
|
|
27230
|
-
}),
|
|
27231
|
-
let n =
|
|
27243
|
+
}), PW = ({ stat: e, press: t }) => {
|
|
27244
|
+
let n = gU(e.icon);
|
|
27232
27245
|
return /* @__PURE__ */ $(bs, {
|
|
27233
27246
|
display: "flex",
|
|
27234
27247
|
flexDirection: "column",
|
|
@@ -27252,7 +27265,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27252
27265
|
children: [e.eyebrow ? /* @__PURE__ */ Q(vl, {
|
|
27253
27266
|
variant: "description",
|
|
27254
27267
|
content: e.eyebrow
|
|
27255
|
-
}) : null, /* @__PURE__ */ Q(
|
|
27268
|
+
}) : null, /* @__PURE__ */ Q(iW, {
|
|
27256
27269
|
label: e.label,
|
|
27257
27270
|
press: t
|
|
27258
27271
|
})]
|
|
@@ -27272,7 +27285,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27272
27285
|
className: "size-2 shrink-0 rounded-full bg-f1-background-warning-bold"
|
|
27273
27286
|
}) : null, e.value]
|
|
27274
27287
|
}), e.trend ? /* @__PURE__ */ Q("span", {
|
|
27275
|
-
className: B("text-base font-medium",
|
|
27288
|
+
className: B("text-base font-medium", MW[e.trend.tone ?? "neutral"]),
|
|
27276
27289
|
children: e.trend.text
|
|
27277
27290
|
}) : null]
|
|
27278
27291
|
}), e.caption ? /* @__PURE__ */ Q(vl, {
|
|
@@ -27281,59 +27294,59 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27281
27294
|
}) : null]
|
|
27282
27295
|
})]
|
|
27283
27296
|
});
|
|
27284
|
-
},
|
|
27297
|
+
}, FW = "overflow-hidden rounded-t-[calc(theme(borderRadius.xl)-1px)] [:last-child>&]:rounded-b-[calc(theme(borderRadius.xl)-1px)]", IW = (e, t) => {
|
|
27285
27298
|
let n = Math.max(1, Math.floor(t / 160)), r = Math.ceil(Math.max(1, e) / n);
|
|
27286
27299
|
return Math.ceil(Math.max(1, e) / r);
|
|
27287
|
-
},
|
|
27300
|
+
}, LW = ({ stats: e }) => {
|
|
27288
27301
|
let t = Y(null), { width: n } = Hn({
|
|
27289
27302
|
ref: t,
|
|
27290
27303
|
box: "border-box"
|
|
27291
|
-
}), r =
|
|
27304
|
+
}), r = IW(e.length, n || 712);
|
|
27292
27305
|
return /* @__PURE__ */ Q("div", {
|
|
27293
27306
|
ref: t,
|
|
27294
|
-
className: B("-m-4",
|
|
27307
|
+
className: B("-m-4", FW),
|
|
27295
27308
|
children: /* @__PURE__ */ Q("div", {
|
|
27296
27309
|
className: "-mb-px -mr-px flex flex-wrap",
|
|
27297
27310
|
children: e.map(({ stat: e, press: t }) => /* @__PURE__ */ Q("div", {
|
|
27298
27311
|
"data-agentic-card": "",
|
|
27299
27312
|
className: B("relative min-w-0 grow border-0 border-b border-r border-solid border-f1-border-secondary p-4", t && "transition-colors hover:bg-f1-background-hover"),
|
|
27300
27313
|
style: { flexBasis: `${100 / r}%` },
|
|
27301
|
-
children: /* @__PURE__ */ Q(
|
|
27314
|
+
children: /* @__PURE__ */ Q(PW, {
|
|
27302
27315
|
stat: e,
|
|
27303
27316
|
press: t
|
|
27304
27317
|
})
|
|
27305
27318
|
}, e.id))
|
|
27306
27319
|
})
|
|
27307
27320
|
});
|
|
27308
|
-
},
|
|
27309
|
-
slots: [
|
|
27310
|
-
slotRenderers:
|
|
27311
|
-
}),
|
|
27321
|
+
}, RW = { [jW]: (e) => /* @__PURE__ */ Q(LW, { ...e }) }, zW = ({ stats: e, elementId: t, onAction: n }) => /* @__PURE__ */ Q(bU, {
|
|
27322
|
+
slots: [NW(e, t, n)],
|
|
27323
|
+
slotRenderers: RW
|
|
27324
|
+
}), BW = $n().use(Jn), VW = (e) => BW.parse(e), HW = (e) => e.value ?? e.alt ?? (e.children ?? []).map(HW).join(""), UW = (e) => (e ?? []).map((e, t) => WW(e, t)), WW = (e, t) => {
|
|
27312
27325
|
switch (e.type) {
|
|
27313
|
-
case "root": return
|
|
27326
|
+
case "root": return UW(e.children);
|
|
27314
27327
|
case "text": return e.value;
|
|
27315
27328
|
case "paragraph": return /* @__PURE__ */ Q("p", {
|
|
27316
27329
|
className: "m-0",
|
|
27317
|
-
children:
|
|
27330
|
+
children: UW(e.children)
|
|
27318
27331
|
}, t);
|
|
27319
27332
|
case "heading": return /* @__PURE__ */ Q(on, {
|
|
27320
27333
|
as: `h${Math.min((e.depth ?? 1) + 2, 6)}`,
|
|
27321
27334
|
variant: "heading",
|
|
27322
|
-
content:
|
|
27335
|
+
content: HW(e)
|
|
27323
27336
|
}, t);
|
|
27324
27337
|
case "list": return e.ordered ? /* @__PURE__ */ Q("ol", {
|
|
27325
27338
|
className: "m-0 flex list-decimal flex-col gap-1 pl-5",
|
|
27326
|
-
children:
|
|
27339
|
+
children: UW(e.children)
|
|
27327
27340
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
27328
27341
|
className: "m-0 flex list-disc flex-col gap-1 pl-5",
|
|
27329
|
-
children:
|
|
27342
|
+
children: UW(e.children)
|
|
27330
27343
|
}, t);
|
|
27331
|
-
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ?
|
|
27344
|
+
case "listItem": return /* @__PURE__ */ Q("li", { children: (e.children ?? []).map((e, t) => e.type === "paragraph" ? UW(e.children) : WW(e, t)) }, t);
|
|
27332
27345
|
case "strong": return /* @__PURE__ */ Q("strong", {
|
|
27333
27346
|
className: "font-semibold",
|
|
27334
|
-
children:
|
|
27347
|
+
children: UW(e.children)
|
|
27335
27348
|
}, t);
|
|
27336
|
-
case "emphasis": return /* @__PURE__ */ Q("em", { children:
|
|
27349
|
+
case "emphasis": return /* @__PURE__ */ Q("em", { children: UW(e.children) }, t);
|
|
27337
27350
|
case "inlineCode": return /* @__PURE__ */ Q(vl, {
|
|
27338
27351
|
as: "code",
|
|
27339
27352
|
variant: "code",
|
|
@@ -27349,69 +27362,69 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27349
27362
|
content: e.value ?? ""
|
|
27350
27363
|
})
|
|
27351
27364
|
}, t);
|
|
27352
|
-
case "link": return e.url &&
|
|
27365
|
+
case "link": return e.url && kH(e.url) ? /* @__PURE__ */ Q(Wa, {
|
|
27353
27366
|
href: e.url,
|
|
27354
|
-
children:
|
|
27355
|
-
}, t) :
|
|
27367
|
+
children: HW(e)
|
|
27368
|
+
}, t) : HW(e);
|
|
27356
27369
|
case "break": return /* @__PURE__ */ Q("br", {}, t);
|
|
27357
|
-
default: return
|
|
27370
|
+
default: return HW(e);
|
|
27358
27371
|
}
|
|
27359
|
-
},
|
|
27372
|
+
}, GW = ({ text: e, lead: t = !1 }) => /* @__PURE__ */ Q("div", {
|
|
27360
27373
|
"data-agentic-text": !0,
|
|
27361
27374
|
className: B("flex flex-col gap-2 text-f1-foreground", t ? "text-lg" : "text-base"),
|
|
27362
|
-
children:
|
|
27363
|
-
}),
|
|
27375
|
+
children: WW(VW(e), 0)
|
|
27376
|
+
}), KW = ({ text: e, lead: t }) => /* @__PURE__ */ Q(GW, {
|
|
27364
27377
|
text: e,
|
|
27365
27378
|
lead: t
|
|
27366
|
-
}),
|
|
27379
|
+
}), qW = ({ items: e }) => /* @__PURE__ */ Q(im, { items: e.map((e) => ({
|
|
27367
27380
|
id: e.id,
|
|
27368
27381
|
status: e.status ?? "completed",
|
|
27369
|
-
icon:
|
|
27382
|
+
icon: gU(e.icon),
|
|
27370
27383
|
title: e.title,
|
|
27371
27384
|
description: [e.time, e.description].filter(Boolean).join(" · ") || void 0
|
|
27372
|
-
})) }),
|
|
27385
|
+
})) }), JW = "agentic-timeline", YW = { [JW]: (e) => /* @__PURE__ */ Q(qW, { items: e.items }) }, XW = ({ items: e }) => /* @__PURE__ */ Q(bU, {
|
|
27373
27386
|
slots: [{
|
|
27374
|
-
visualization:
|
|
27387
|
+
visualization: JW,
|
|
27375
27388
|
params: { items: e }
|
|
27376
27389
|
}],
|
|
27377
|
-
slotRenderers:
|
|
27378
|
-
}),
|
|
27390
|
+
slotRenderers: YW
|
|
27391
|
+
}), ZW = ({ block: e, elementId: t, onAction: n, lead: r }) => {
|
|
27379
27392
|
switch (e.type) {
|
|
27380
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
27393
|
+
case "stats": return /* @__PURE__ */ Q(zW, {
|
|
27381
27394
|
stats: e.stats,
|
|
27382
27395
|
elementId: t,
|
|
27383
27396
|
onAction: n
|
|
27384
27397
|
});
|
|
27385
|
-
case "list": return /* @__PURE__ */ Q(
|
|
27398
|
+
case "list": return /* @__PURE__ */ Q(OW, {
|
|
27386
27399
|
content: e,
|
|
27387
27400
|
elementId: t,
|
|
27388
27401
|
onAction: n
|
|
27389
27402
|
});
|
|
27390
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
27391
|
-
case "events": return /* @__PURE__ */ Q(
|
|
27403
|
+
case "timeline": return /* @__PURE__ */ Q(XW, { items: e.items });
|
|
27404
|
+
case "events": return /* @__PURE__ */ Q(xW, {
|
|
27392
27405
|
events: e.events,
|
|
27393
27406
|
elementId: t,
|
|
27394
27407
|
onAction: n
|
|
27395
27408
|
});
|
|
27396
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
27397
|
-
case "shortcuts": return /* @__PURE__ */ Q(
|
|
27409
|
+
case "posts": return /* @__PURE__ */ Q(kW, { posts: e.posts });
|
|
27410
|
+
case "shortcuts": return /* @__PURE__ */ Q(AW, {
|
|
27398
27411
|
shortcuts: e.shortcuts,
|
|
27399
27412
|
elementId: t,
|
|
27400
27413
|
onAction: n
|
|
27401
27414
|
});
|
|
27402
|
-
case "text": return /* @__PURE__ */ Q(
|
|
27415
|
+
case "text": return /* @__PURE__ */ Q(KW, {
|
|
27403
27416
|
text: e.text,
|
|
27404
27417
|
lead: r
|
|
27405
27418
|
});
|
|
27406
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
27419
|
+
case "charts": return /* @__PURE__ */ Q(bW, {
|
|
27407
27420
|
charts: e.charts,
|
|
27408
27421
|
elementId: t,
|
|
27409
27422
|
onAction: n
|
|
27410
27423
|
});
|
|
27411
27424
|
}
|
|
27412
|
-
},
|
|
27425
|
+
}, QW = (e) => e % 2 == 1 && e !== 3 || e > 4, $W = ({ cards: e }) => {
|
|
27413
27426
|
let t = R();
|
|
27414
|
-
return
|
|
27427
|
+
return QW(e.length) ? /* @__PURE__ */ Q(It, {
|
|
27415
27428
|
columns: {
|
|
27416
27429
|
default: 2,
|
|
27417
27430
|
xs: 2,
|
|
@@ -27436,14 +27449,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27436
27449
|
md: { columns: e.length === 3 ? "3" : "2" },
|
|
27437
27450
|
children: e
|
|
27438
27451
|
});
|
|
27439
|
-
},
|
|
27452
|
+
}, eG = ({ className: e }) => /* @__PURE__ */ Q(z, { className: B("rounded-2xs motion-reduce:animate-none", e) }), tG = "agentic-skeleton", nG = { [tG]: (e) => e.content }, rG = ({ children: e, fullHeight: t }) => /* @__PURE__ */ Q(bU, {
|
|
27440
27453
|
fullHeight: t,
|
|
27441
27454
|
slots: [{
|
|
27442
|
-
visualization:
|
|
27455
|
+
visualization: tG,
|
|
27443
27456
|
params: { content: e }
|
|
27444
27457
|
}],
|
|
27445
|
-
slotRenderers:
|
|
27446
|
-
}),
|
|
27458
|
+
slotRenderers: nG
|
|
27459
|
+
}), iG = (e) => Array.from({ length: e }, (e, t) => t), aG = ({ count: e }) => /* @__PURE__ */ Q($W, { cards: iG(e).map((e) => /* @__PURE__ */ Q(nW, { children: /* @__PURE__ */ Q(rG, {
|
|
27447
27460
|
fullHeight: !0,
|
|
27448
27461
|
children: /* @__PURE__ */ $(bs, {
|
|
27449
27462
|
display: "flex",
|
|
@@ -27453,50 +27466,50 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27453
27466
|
display: "flex",
|
|
27454
27467
|
flexDirection: "column",
|
|
27455
27468
|
gap: "xs",
|
|
27456
|
-
children: [/* @__PURE__ */ Q(
|
|
27457
|
-
}), /* @__PURE__ */ Q(
|
|
27469
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-4 w-32" }), /* @__PURE__ */ Q(eG, { className: "h-3 w-24" })]
|
|
27470
|
+
}), /* @__PURE__ */ Q(eG, { className: "h-48 w-full rounded-md" })]
|
|
27458
27471
|
})
|
|
27459
|
-
}) }, e)) }),
|
|
27472
|
+
}) }, e)) }), oG = ({ count: e }) => /* @__PURE__ */ Q(bs, {
|
|
27460
27473
|
display: "flex",
|
|
27461
27474
|
flexDirection: "column",
|
|
27462
27475
|
gap: "md",
|
|
27463
|
-
children:
|
|
27476
|
+
children: iG(e).map((e) => /* @__PURE__ */ Q(rG, { children: /* @__PURE__ */ $(bs, {
|
|
27464
27477
|
display: "flex",
|
|
27465
27478
|
alignItems: "center",
|
|
27466
27479
|
gap: "md",
|
|
27467
|
-
children: [/* @__PURE__ */ Q(
|
|
27480
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-12 w-12 shrink-0 rounded-md" }), /* @__PURE__ */ $(bs, {
|
|
27468
27481
|
display: "flex",
|
|
27469
27482
|
flexDirection: "column",
|
|
27470
27483
|
gap: "xs",
|
|
27471
27484
|
grow: !0,
|
|
27472
|
-
children: [/* @__PURE__ */ Q(
|
|
27485
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(eG, { className: "h-3 w-2/3" })]
|
|
27473
27486
|
})]
|
|
27474
27487
|
}) }, e))
|
|
27475
|
-
}),
|
|
27488
|
+
}), sG = ({ count: e, schema: t }) => {
|
|
27476
27489
|
let n = !!(t?.descriptionRequired || t?.descriptionOptional), r = t?.left;
|
|
27477
|
-
return /* @__PURE__ */ Q(
|
|
27490
|
+
return /* @__PURE__ */ Q(rG, { children: /* @__PURE__ */ Q(bs, {
|
|
27478
27491
|
display: "flex",
|
|
27479
27492
|
flexDirection: "column",
|
|
27480
27493
|
gap: "md",
|
|
27481
|
-
children:
|
|
27494
|
+
children: iG(e).map((e) => /* @__PURE__ */ $(bs, {
|
|
27482
27495
|
display: "flex",
|
|
27483
27496
|
alignItems: "center",
|
|
27484
27497
|
gap: "md",
|
|
27485
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
27498
|
+
children: [r ? /* @__PURE__ */ Q(eG, { className: B("shrink-0", n ? "h-8 w-8" : "h-6 w-6", r === "person" ? "rounded-full" : "rounded-sm") }) : null, /* @__PURE__ */ $(bs, {
|
|
27486
27499
|
display: "flex",
|
|
27487
27500
|
flexDirection: "column",
|
|
27488
27501
|
gap: "xs",
|
|
27489
27502
|
grow: !0,
|
|
27490
|
-
children: [/* @__PURE__ */ Q(
|
|
27503
|
+
children: [/* @__PURE__ */ Q(eG, { className: B("h-4", e % 2 ? "w-1/2" : "w-2/3") }), n ? /* @__PURE__ */ Q(eG, { className: "h-3 w-1/3" }) : null]
|
|
27491
27504
|
})]
|
|
27492
27505
|
}, e))
|
|
27493
27506
|
}) });
|
|
27494
|
-
},
|
|
27507
|
+
}, cG = ({ count: e }) => /* @__PURE__ */ Q(bs, {
|
|
27495
27508
|
display: "flex",
|
|
27496
27509
|
flexDirection: "column",
|
|
27497
27510
|
gap: "md",
|
|
27498
|
-
children:
|
|
27499
|
-
}),
|
|
27511
|
+
children: iG(e).map((e) => /* @__PURE__ */ Q(Jh, { variant: "row" }, e))
|
|
27512
|
+
}), lG = ({ count: e }) => /* @__PURE__ */ Q($W, { cards: iG(e).map((e) => /* @__PURE__ */ Q(nW, { children: /* @__PURE__ */ Q(rG, {
|
|
27500
27513
|
fullHeight: !0,
|
|
27501
27514
|
children: /* @__PURE__ */ $(bs, {
|
|
27502
27515
|
display: "flex",
|
|
@@ -27506,53 +27519,53 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27506
27519
|
display: "flex",
|
|
27507
27520
|
alignItems: "center",
|
|
27508
27521
|
gap: "md",
|
|
27509
|
-
children: [/* @__PURE__ */ Q(
|
|
27510
|
-
}), /* @__PURE__ */ Q(
|
|
27522
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-10 w-10 shrink-0 rounded-md" }), /* @__PURE__ */ Q(eG, { className: "h-4 w-24" })]
|
|
27523
|
+
}), /* @__PURE__ */ Q(eG, { className: "h-7 w-20" })]
|
|
27511
27524
|
})
|
|
27512
|
-
}) }, e)) }),
|
|
27525
|
+
}) }, e)) }), uG = ({ count: e }) => /* @__PURE__ */ Q(rG, { children: /* @__PURE__ */ Q(bs, {
|
|
27513
27526
|
display: "flex",
|
|
27514
27527
|
flexDirection: "column",
|
|
27515
|
-
children:
|
|
27528
|
+
children: iG(e).map((t) => /* @__PURE__ */ $(bs, {
|
|
27516
27529
|
display: "flex",
|
|
27517
27530
|
gap: "md",
|
|
27518
27531
|
children: [/* @__PURE__ */ $(bs, {
|
|
27519
27532
|
display: "flex",
|
|
27520
27533
|
flexDirection: "column",
|
|
27521
27534
|
alignItems: "center",
|
|
27522
|
-
children: [/* @__PURE__ */ Q(
|
|
27535
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-5 w-5 shrink-0 rounded-full" }), t < e - 1 ? /* @__PURE__ */ Q("div", { className: "min-h-4 w-px grow bg-f1-border-secondary" }) : null]
|
|
27523
27536
|
}), /* @__PURE__ */ $(bs, {
|
|
27524
27537
|
display: "flex",
|
|
27525
27538
|
flexDirection: "column",
|
|
27526
27539
|
gap: "xs",
|
|
27527
27540
|
grow: !0,
|
|
27528
27541
|
paddingBottom: t < e - 1 ? "md" : void 0,
|
|
27529
|
-
children: [/* @__PURE__ */ Q(
|
|
27542
|
+
children: [/* @__PURE__ */ Q(eG, { className: "h-4 w-1/2" }), /* @__PURE__ */ Q(eG, { className: "h-3 w-1/3" })]
|
|
27530
27543
|
})]
|
|
27531
27544
|
}, t))
|
|
27532
|
-
}) }),
|
|
27545
|
+
}) }), dG = ({ count: e }) => /* @__PURE__ */ Q(rG, { children: /* @__PURE__ */ Q(bs, {
|
|
27533
27546
|
display: "flex",
|
|
27534
27547
|
flexDirection: "column",
|
|
27535
27548
|
gap: "md",
|
|
27536
|
-
children:
|
|
27537
|
-
}) }),
|
|
27549
|
+
children: iG(e).map((e) => /* @__PURE__ */ Q(eG, { className: B("h-4", e % 2 ? "w-1/2" : "w-3/4") }, e))
|
|
27550
|
+
}) }), fG = (e, t) => {
|
|
27538
27551
|
switch (e.type) {
|
|
27539
|
-
case "stats": return /* @__PURE__ */ Q(
|
|
27540
|
-
case "charts": return /* @__PURE__ */ Q(
|
|
27541
|
-
case "list": return /* @__PURE__ */ Q(
|
|
27552
|
+
case "stats": return /* @__PURE__ */ Q(lG, { count: t });
|
|
27553
|
+
case "charts": return /* @__PURE__ */ Q(aG, { count: t });
|
|
27554
|
+
case "list": return /* @__PURE__ */ Q(sG, {
|
|
27542
27555
|
count: t,
|
|
27543
27556
|
schema: e.display?.schema
|
|
27544
27557
|
});
|
|
27545
|
-
case "timeline": return /* @__PURE__ */ Q(
|
|
27546
|
-
case "events": return /* @__PURE__ */ Q(
|
|
27547
|
-
case "posts": return /* @__PURE__ */ Q(
|
|
27548
|
-
case "widget": return /* @__PURE__ */ Q(
|
|
27558
|
+
case "timeline": return /* @__PURE__ */ Q(uG, { count: t });
|
|
27559
|
+
case "events": return /* @__PURE__ */ Q(oG, { count: t });
|
|
27560
|
+
case "posts": return /* @__PURE__ */ Q(cG, { count: t });
|
|
27561
|
+
case "widget": return /* @__PURE__ */ Q(dG, { count: t });
|
|
27549
27562
|
}
|
|
27550
|
-
},
|
|
27563
|
+
}, pG = ({ element: e }) => /* @__PURE__ */ Q("div", {
|
|
27551
27564
|
"aria-busy": "true",
|
|
27552
27565
|
"aria-live": "polite",
|
|
27553
27566
|
"data-agentic-skeleton": e.type,
|
|
27554
|
-
children:
|
|
27555
|
-
}),
|
|
27567
|
+
children: fG(e, kU(e))
|
|
27568
|
+
}), mG = (e) => {
|
|
27556
27569
|
switch (e.type) {
|
|
27557
27570
|
case "stats": return e.stats.length === 0;
|
|
27558
27571
|
case "charts": return e.charts.length === 0;
|
|
@@ -27561,7 +27574,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27561
27574
|
case "events": return e.events.length === 0;
|
|
27562
27575
|
case "posts": return e.posts.length === 0;
|
|
27563
27576
|
}
|
|
27564
|
-
},
|
|
27577
|
+
}, hG = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && !t.widget && $U(e, t) && mG(t.block), gG = (e, t) => {
|
|
27565
27578
|
let n = {
|
|
27566
27579
|
...t,
|
|
27567
27580
|
empty: e.display?.empty ?? t.empty
|
|
@@ -27580,14 +27593,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27580
27593
|
format: r
|
|
27581
27594
|
}))
|
|
27582
27595
|
} : n;
|
|
27583
|
-
},
|
|
27584
|
-
let n =
|
|
27585
|
-
return t ? /* @__PURE__ */ Q(
|
|
27596
|
+
}, _G = (e, t) => e.type !== "shortcuts" && e.type !== "text" && e.type !== "widget" && t?.status === "ready" && t.block && $U(e, t) ? gG(e, t.block) : void 0, vG = mu(void 0), yG = vG.Provider, bG = () => yu(vG), xG = ({ widget: e, bare: t = !1 }) => {
|
|
27597
|
+
let n = bG();
|
|
27598
|
+
return t ? /* @__PURE__ */ Q(pH, {
|
|
27586
27599
|
headless: !0,
|
|
27587
27600
|
slots: e.slots,
|
|
27588
27601
|
loading: e.loading,
|
|
27589
27602
|
slotRenderers: n
|
|
27590
|
-
}) : /* @__PURE__ */ Q(
|
|
27603
|
+
}) : /* @__PURE__ */ Q(mH, {
|
|
27591
27604
|
...AV(e),
|
|
27592
27605
|
headless: !0,
|
|
27593
27606
|
params: e.params,
|
|
@@ -27595,52 +27608,52 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27595
27608
|
loading: e.loading,
|
|
27596
27609
|
slotRenderers: n
|
|
27597
27610
|
});
|
|
27598
|
-
},
|
|
27599
|
-
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(
|
|
27611
|
+
}, SG = ({ element: e, state: t, onAction: n, lead: r }) => {
|
|
27612
|
+
if (e.type === "shortcuts" || e.type === "text") return /* @__PURE__ */ Q(ZW, {
|
|
27600
27613
|
block: e,
|
|
27601
27614
|
elementId: e.id,
|
|
27602
27615
|
onAction: n,
|
|
27603
27616
|
lead: r
|
|
27604
27617
|
});
|
|
27605
|
-
if (!t || t.status === "loading") return /* @__PURE__ */ Q(
|
|
27606
|
-
if (t.status === "error") return /* @__PURE__ */ Q(
|
|
27607
|
-
if (
|
|
27608
|
-
if (t.widget) return /* @__PURE__ */ Q(
|
|
27618
|
+
if (!t || t.status === "loading") return /* @__PURE__ */ Q(pG, { element: e });
|
|
27619
|
+
if (t.status === "error") return /* @__PURE__ */ Q(TU, { message: t.message });
|
|
27620
|
+
if (!$U(e, t)) return /* @__PURE__ */ Q(TU, {});
|
|
27621
|
+
if (t.widget) return /* @__PURE__ */ Q(xG, {
|
|
27609
27622
|
widget: t.widget,
|
|
27610
27623
|
bare: t.bare
|
|
27611
27624
|
});
|
|
27612
|
-
if (e.type === "widget") return /* @__PURE__ */ Q(
|
|
27613
|
-
let i =
|
|
27614
|
-
return
|
|
27625
|
+
if (e.type === "widget") return /* @__PURE__ */ Q(TU, {});
|
|
27626
|
+
let i = gG(e, t.block);
|
|
27627
|
+
return mG(i) ? e.display?.hideWhenEmpty ? null : /* @__PURE__ */ Q(wU, {
|
|
27615
27628
|
empty: i.empty,
|
|
27616
27629
|
elementId: e.id,
|
|
27617
27630
|
onAction: n
|
|
27618
|
-
}) : /* @__PURE__ */ Q(
|
|
27631
|
+
}) : /* @__PURE__ */ Q(ZW, {
|
|
27619
27632
|
block: i,
|
|
27620
27633
|
elementId: e.id,
|
|
27621
27634
|
onAction: n
|
|
27622
27635
|
});
|
|
27623
|
-
},
|
|
27636
|
+
}, CG = "agentic-list-stack", wG = ({ title: e }) => /* @__PURE__ */ Q(bs, {
|
|
27624
27637
|
paddingY: "sm",
|
|
27625
27638
|
children: /* @__PURE__ */ Q(vl, {
|
|
27626
27639
|
variant: "description",
|
|
27627
27640
|
content: e
|
|
27628
27641
|
})
|
|
27629
|
-
}),
|
|
27642
|
+
}), TG = {
|
|
27630
27643
|
...eH,
|
|
27631
|
-
...
|
|
27632
|
-
},
|
|
27644
|
+
...RW
|
|
27645
|
+
}, EG = ({ entries: e, ctx: t }) => /* @__PURE__ */ Q("div", {
|
|
27633
27646
|
className: "-mx-4 flex flex-col divide-x-0 divide-y divide-solid divide-f1-border-secondary",
|
|
27634
27647
|
children: e.map(({ slot: n, header: r }, i) => /* @__PURE__ */ $("div", {
|
|
27635
27648
|
className: B("px-4", n.visualization === "agentic-stats" ? "pb-4" : [i > 0 && "pt-2", i < e.length - 1 && "pb-2"]),
|
|
27636
|
-
children: [r ? /* @__PURE__ */ Q(
|
|
27649
|
+
children: [r ? /* @__PURE__ */ Q(wG, { title: r }) : null, bV(TG[n.visualization])?.render(n.params, {
|
|
27637
27650
|
...t,
|
|
27638
27651
|
isFirstUnderNoHeader: t.isFirstUnderNoHeader && i === 0 && !r,
|
|
27639
27652
|
isLastSlot: t.isLastSlot && i === e.length - 1
|
|
27640
27653
|
})]
|
|
27641
27654
|
}, i))
|
|
27642
|
-
}),
|
|
27643
|
-
let r =
|
|
27655
|
+
}), DG = (e) => e.type === "list" && !e.bare || e.type === "stats", OG = (e, t) => e.reduce((e, n) => {
|
|
27656
|
+
let r = _G(n, t?.[n.id]), i = r && DG(r) && !mG(r) ? {
|
|
27644
27657
|
elementId: n.id,
|
|
27645
27658
|
block: r
|
|
27646
27659
|
} : void 0, a = e.at(-1);
|
|
@@ -27652,32 +27665,32 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27652
27665
|
element: n,
|
|
27653
27666
|
member: i
|
|
27654
27667
|
}), e;
|
|
27655
|
-
}, []),
|
|
27656
|
-
if (t.type === "stats") return [{ slot:
|
|
27668
|
+
}, []), kG = ({ elementId: e, block: t }, n, r) => {
|
|
27669
|
+
if (t.type === "stats") return [{ slot: NW(t.stats, e, r) }];
|
|
27657
27670
|
let i = n > 0 ? t.title : void 0;
|
|
27658
|
-
return
|
|
27671
|
+
return TW(t, e, r).map((e, t) => ({
|
|
27659
27672
|
slot: e,
|
|
27660
27673
|
header: t === 0 ? i : void 0
|
|
27661
27674
|
}));
|
|
27662
|
-
},
|
|
27675
|
+
}, AG = { [CG]: (e, t) => /* @__PURE__ */ Q(EG, {
|
|
27663
27676
|
entries: e,
|
|
27664
27677
|
ctx: t
|
|
27665
|
-
}) },
|
|
27678
|
+
}) }, jG = ({ members: e, onAction: t }) => {
|
|
27666
27679
|
let n = e[0]?.block;
|
|
27667
|
-
return /* @__PURE__ */ Q(
|
|
27680
|
+
return /* @__PURE__ */ Q(bU, {
|
|
27668
27681
|
title: n?.type === "list" ? n.title : void 0,
|
|
27669
27682
|
slots: [{
|
|
27670
|
-
visualization:
|
|
27671
|
-
params: e.flatMap((e, n) =>
|
|
27683
|
+
visualization: CG,
|
|
27684
|
+
params: e.flatMap((e, n) => kG(e, n, t))
|
|
27672
27685
|
}],
|
|
27673
|
-
slotRenderers:
|
|
27686
|
+
slotRenderers: AG
|
|
27674
27687
|
});
|
|
27675
|
-
},
|
|
27688
|
+
}, MG = ({ items: e, onAction: t }) => {
|
|
27676
27689
|
let n = R();
|
|
27677
27690
|
return /* @__PURE__ */ Q(Za, {
|
|
27678
27691
|
items: e.map((e) => e.type === "separator" ? { type: "separator" } : {
|
|
27679
27692
|
label: e.label,
|
|
27680
|
-
icon:
|
|
27693
|
+
icon: gU(e.icon),
|
|
27681
27694
|
critical: e.critical,
|
|
27682
27695
|
onClick: () => t(e.action, {})
|
|
27683
27696
|
}),
|
|
@@ -27689,12 +27702,12 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27689
27702
|
label: n.actions.more
|
|
27690
27703
|
})
|
|
27691
27704
|
});
|
|
27692
|
-
},
|
|
27705
|
+
}, NG = mu(void 0), PG = NG.Provider, FG = () => yu(NG), IG = /\*\*(.+?)\*\*/g, LG = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: e.split(IG).map((e, t) => t % 2 == 1 ? /* @__PURE__ */ Q("strong", {
|
|
27693
27706
|
className: "font-medium",
|
|
27694
27707
|
children: e
|
|
27695
|
-
}, t) : e) }),
|
|
27708
|
+
}, t) : e) }), RG = /\[([^\]]+)\]\(mention:([^:)\s]+):([^)\s]+)\)/g, zG = (e) => {
|
|
27696
27709
|
let t = [], n = 0;
|
|
27697
|
-
for (let r of e.matchAll(
|
|
27710
|
+
for (let r of e.matchAll(RG)) {
|
|
27698
27711
|
let [i, a, o, s] = r, c = r.index ?? 0;
|
|
27699
27712
|
c > n && t.push({ text: e.slice(n, c) }), t.push({ mention: {
|
|
27700
27713
|
type: o,
|
|
@@ -27703,48 +27716,48 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27703
27716
|
} }), n = c + i.length;
|
|
27704
27717
|
}
|
|
27705
27718
|
return n < e.length && t.push({ text: e.slice(n) }), t;
|
|
27706
|
-
},
|
|
27719
|
+
}, BG = ({ text: e }) => /* @__PURE__ */ Q(Z, { children: AH(e).map((e, t) => /* @__PURE__ */ Q(du, { children: "href" in e ? /* @__PURE__ */ Q(Wa, {
|
|
27707
27720
|
href: e.href,
|
|
27708
27721
|
children: e.label
|
|
27709
|
-
}) : /* @__PURE__ */ Q(
|
|
27710
|
-
let t =
|
|
27711
|
-
return /* @__PURE__ */ Q(Z, { children:
|
|
27712
|
-
},
|
|
27722
|
+
}) : /* @__PURE__ */ Q(LG, { text: e.text }) }, t)) }), VG = ({ text: e }) => {
|
|
27723
|
+
let t = FG();
|
|
27724
|
+
return /* @__PURE__ */ Q(Z, { children: zG(e).map((e, n) => /* @__PURE__ */ Q(du, { children: "mention" in e ? t?.(e.mention) ?? e.mention.label : /* @__PURE__ */ Q(BG, { text: e.text }) }, n)) });
|
|
27725
|
+
}, HG = ({ items: e }) => /* @__PURE__ */ Q(Z, { children: e.map((e, t) => /* @__PURE__ */ Q("li", { children: /* @__PURE__ */ Q(VG, { text: e }) }, t)) }), UG = /^\d+\.\s+/, WG = /^[-*]\s+/, GG = (e) => UG.test(e) ? "ol" : WG.test(e) ? "ul" : "p", KG = (e, t) => {
|
|
27713
27726
|
let n = e.at(-1);
|
|
27714
27727
|
t && n?.kind === "p" && n.text ? n.text = `${n.text} ${t}` : e.push({
|
|
27715
27728
|
kind: "p",
|
|
27716
27729
|
text: t
|
|
27717
27730
|
});
|
|
27718
|
-
},
|
|
27719
|
-
let r = e.at(-1), i = n.replace(t === "ol" ?
|
|
27731
|
+
}, qG = (e, t, n) => {
|
|
27732
|
+
let r = e.at(-1), i = n.replace(t === "ol" ? UG : WG, "");
|
|
27720
27733
|
r?.kind === t ? r.items.push(i) : e.push({
|
|
27721
27734
|
kind: t,
|
|
27722
27735
|
items: [i]
|
|
27723
27736
|
});
|
|
27724
|
-
},
|
|
27737
|
+
}, JG = (e) => {
|
|
27725
27738
|
let t = [];
|
|
27726
27739
|
for (let n of e.split("\n").map((e) => e.trim())) {
|
|
27727
|
-
let e =
|
|
27728
|
-
e === "p" ?
|
|
27740
|
+
let e = GG(n);
|
|
27741
|
+
e === "p" ? KG(t, n) : qG(t, e, n);
|
|
27729
27742
|
}
|
|
27730
27743
|
return t.filter((e) => e.kind !== "p" || e.text);
|
|
27731
|
-
},
|
|
27744
|
+
}, YG = ({ text: e }) => /* @__PURE__ */ Q("div", {
|
|
27732
27745
|
className: "flex flex-col gap-2 text-lg text-f1-foreground",
|
|
27733
|
-
children:
|
|
27746
|
+
children: JG(e).map((e, t) => e.kind === "p" ? /* @__PURE__ */ Q("div", { children: /* @__PURE__ */ Q(VG, { text: e.text }) }, t) : e.kind === "ol" ? /* @__PURE__ */ Q("ol", {
|
|
27734
27747
|
className: "m-0 list-decimal space-y-1 pl-5",
|
|
27735
|
-
children: /* @__PURE__ */ Q(
|
|
27748
|
+
children: /* @__PURE__ */ Q(HG, { items: e.items })
|
|
27736
27749
|
}, t) : /* @__PURE__ */ Q("ul", {
|
|
27737
27750
|
className: "m-0 list-disc space-y-1 pl-5",
|
|
27738
|
-
children: /* @__PURE__ */ Q(
|
|
27751
|
+
children: /* @__PURE__ */ Q(HG, { items: e.items })
|
|
27739
27752
|
}, t))
|
|
27740
|
-
}),
|
|
27753
|
+
}), XG = ({ title: e, size: t }) => t === "home" ? /* @__PURE__ */ Q(on, {
|
|
27741
27754
|
as: "h2",
|
|
27742
27755
|
variant: "heading-large",
|
|
27743
27756
|
content: e
|
|
27744
27757
|
}) : /* @__PURE__ */ Q("h2", {
|
|
27745
27758
|
className: B("m-0 font-semibold text-f1-foreground", t === "lead" ? "text-4xl" : "text-base"),
|
|
27746
27759
|
children: e
|
|
27747
|
-
}),
|
|
27760
|
+
}), ZG = ({ section: e, size: t, composer: n, onAction: r }) => {
|
|
27748
27761
|
let i = t === "lead", a = e.actions?.length ? e.actions : void 0, o = !!(e.title || a);
|
|
27749
27762
|
return !o && !e.eyebrow && !e.text && !n ? null : /* @__PURE__ */ $(bs, {
|
|
27750
27763
|
display: "flex",
|
|
@@ -27766,43 +27779,43 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27766
27779
|
alignItems: "start",
|
|
27767
27780
|
justifyContent: e.title ? "between" : "end",
|
|
27768
27781
|
gap: "md",
|
|
27769
|
-
children: [e.title ? /* @__PURE__ */ Q(
|
|
27782
|
+
children: [e.title ? /* @__PURE__ */ Q(XG, {
|
|
27770
27783
|
title: e.title,
|
|
27771
27784
|
size: t
|
|
27772
|
-
}) : null, a ? /* @__PURE__ */ Q(
|
|
27785
|
+
}) : null, a ? /* @__PURE__ */ Q(MG, {
|
|
27773
27786
|
items: a,
|
|
27774
27787
|
onAction: r
|
|
27775
27788
|
}) : null]
|
|
27776
27789
|
}) : null]
|
|
27777
27790
|
}),
|
|
27778
27791
|
n,
|
|
27779
|
-
e.text ? /* @__PURE__ */ Q(
|
|
27792
|
+
e.text ? /* @__PURE__ */ Q(YG, { text: e.text }) : null
|
|
27780
27793
|
]
|
|
27781
27794
|
});
|
|
27782
|
-
},
|
|
27795
|
+
}, QG = (e, t) => e.elements.length > 0 && e.elements.every((e) => hG(e, t?.[e.id])), $G = ({ section: e, sources: t, onAction: n, size: r = "home", composer: i }) => {
|
|
27783
27796
|
let a = (t, r) => n(t, {
|
|
27784
27797
|
...r,
|
|
27785
27798
|
sectionId: e.id
|
|
27786
|
-
}), o =
|
|
27799
|
+
}), o = QG(e, t);
|
|
27787
27800
|
return o && e.hideWhenEmpty ? null : /* @__PURE__ */ $("section", {
|
|
27788
27801
|
id: e.id,
|
|
27789
27802
|
"aria-label": e.title,
|
|
27790
27803
|
tabIndex: -1,
|
|
27791
27804
|
className: "flex scroll-mt-10 flex-col gap-4 focus:outline-none",
|
|
27792
27805
|
children: [
|
|
27793
|
-
/* @__PURE__ */ Q(
|
|
27806
|
+
/* @__PURE__ */ Q(ZG, {
|
|
27794
27807
|
section: e,
|
|
27795
27808
|
size: r,
|
|
27796
27809
|
composer: i,
|
|
27797
27810
|
onAction: a
|
|
27798
27811
|
}),
|
|
27799
|
-
o && e.empty ? /* @__PURE__ */ Q(
|
|
27812
|
+
o && e.empty ? /* @__PURE__ */ Q(wU, {
|
|
27800
27813
|
empty: e.empty,
|
|
27801
27814
|
onAction: a
|
|
27802
|
-
}) :
|
|
27815
|
+
}) : OG(e.elements, t).map((e) => e.kind === "stack" ? /* @__PURE__ */ Q(jG, {
|
|
27803
27816
|
members: e.members,
|
|
27804
27817
|
onAction: a
|
|
27805
|
-
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(
|
|
27818
|
+
}, e.members[0]?.elementId) : /* @__PURE__ */ Q(SG, {
|
|
27806
27819
|
element: e.element,
|
|
27807
27820
|
state: t?.[e.element.id],
|
|
27808
27821
|
onAction: a,
|
|
@@ -27814,16 +27827,16 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27814
27827
|
gap: "sm",
|
|
27815
27828
|
children: e.followUps.map((e, t) => /* @__PURE__ */ Q(U, {
|
|
27816
27829
|
size: "md",
|
|
27817
|
-
...
|
|
27830
|
+
...yU(e, {}, a),
|
|
27818
27831
|
variant: e.variant ?? "neutral"
|
|
27819
27832
|
}, t))
|
|
27820
27833
|
}) : null
|
|
27821
27834
|
]
|
|
27822
27835
|
});
|
|
27823
|
-
},
|
|
27836
|
+
}, eK = (e, t) => {
|
|
27824
27837
|
let [n, ...r] = e ?? [], i = (e) => ({
|
|
27825
27838
|
label: e.label,
|
|
27826
|
-
icon:
|
|
27839
|
+
icon: gU(e.icon),
|
|
27827
27840
|
onClick: () => t(e)
|
|
27828
27841
|
});
|
|
27829
27842
|
return {
|
|
@@ -27836,19 +27849,19 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27836
27849
|
value: String(t)
|
|
27837
27850
|
})) : r[0] ? i(r[0]) : void 0
|
|
27838
27851
|
};
|
|
27839
|
-
},
|
|
27840
|
-
let n =
|
|
27841
|
-
return !t || t.status === "loading" ? /* @__PURE__ */ Q(
|
|
27852
|
+
}, tK = (e, t) => JSON.stringify([e, Object.entries(t).sort(([e], [t]) => e.localeCompare(t))]), nK = ({ element: e, state: t }) => {
|
|
27853
|
+
let n = bG();
|
|
27854
|
+
return !t || t.status === "loading" ? /* @__PURE__ */ Q(pG, { element: e }) : t.status === "error" ? /* @__PURE__ */ Q(TU, { message: t.message }) : t.widget ? /* @__PURE__ */ Q(pH, {
|
|
27842
27855
|
slots: t.widget.slots,
|
|
27843
27856
|
loading: t.widget.loading,
|
|
27844
27857
|
slotRenderers: n
|
|
27845
|
-
}) : /* @__PURE__ */ Q(
|
|
27846
|
-
},
|
|
27858
|
+
}) : /* @__PURE__ */ Q(TU, {});
|
|
27859
|
+
}, rK = ({ view: e, params: t = {}, presentation: n, width: r = "md", bleed: i = !1, isOpen: a, onClose: o, sources: s, onAction: c }) => {
|
|
27847
27860
|
let l = Object.keys(t).length > 0, u = (n, r) => c(n, {
|
|
27848
27861
|
...r,
|
|
27849
27862
|
accessoryViewId: e.id,
|
|
27850
27863
|
...l ? { accessoryViewParams: t } : {}
|
|
27851
|
-
}), d =
|
|
27864
|
+
}), d = eK(e.actions, (e) => {
|
|
27852
27865
|
o(), u(e.action, {});
|
|
27853
27866
|
});
|
|
27854
27867
|
return /* @__PURE__ */ Q(Ai, {
|
|
@@ -27860,22 +27873,22 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27860
27873
|
description: e.description,
|
|
27861
27874
|
disableContentPadding: i,
|
|
27862
27875
|
...d,
|
|
27863
|
-
children: e.widget ? /* @__PURE__ */ Q(
|
|
27876
|
+
children: e.widget ? /* @__PURE__ */ Q(nK, {
|
|
27864
27877
|
element: e.widget,
|
|
27865
27878
|
state: s?.[e.widget.id]
|
|
27866
|
-
},
|
|
27879
|
+
}, tK(e.id, t)) : /* @__PURE__ */ Q(bs, {
|
|
27867
27880
|
display: "flex",
|
|
27868
27881
|
flexDirection: "column",
|
|
27869
27882
|
gap: "3xl",
|
|
27870
|
-
children: e.sections.map((e) => /* @__PURE__ */ Q(
|
|
27883
|
+
children: e.sections.map((e) => /* @__PURE__ */ Q($G, {
|
|
27871
27884
|
size: "accessory",
|
|
27872
27885
|
section: e,
|
|
27873
27886
|
sources: s,
|
|
27874
27887
|
onAction: u
|
|
27875
27888
|
}, e.id))
|
|
27876
|
-
},
|
|
27889
|
+
}, tK(e.id, t))
|
|
27877
27890
|
});
|
|
27878
|
-
},
|
|
27891
|
+
}, iK = hu(function({ children: e }, t) {
|
|
27879
27892
|
return /* @__PURE__ */ Q("div", {
|
|
27880
27893
|
ref: t,
|
|
27881
27894
|
className: "-m-1 p-1",
|
|
@@ -27884,7 +27897,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27884
27897
|
children: e
|
|
27885
27898
|
})
|
|
27886
27899
|
});
|
|
27887
|
-
}),
|
|
27900
|
+
}), aK = ({ greeting: e }) => /* @__PURE__ */ $(bs, {
|
|
27888
27901
|
display: "flex",
|
|
27889
27902
|
flexDirection: "column",
|
|
27890
27903
|
gap: "xs",
|
|
@@ -27896,14 +27909,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27896
27909
|
variant: "description",
|
|
27897
27910
|
content: e.subtitle
|
|
27898
27911
|
}) : null]
|
|
27899
|
-
}),
|
|
27912
|
+
}), oK = 150, sK = 150, cK = {
|
|
27900
27913
|
neutral: "bg-f1-background-inverse",
|
|
27901
27914
|
accent: "bg-f1-background-accent-bold hover:bg-f1-background-accent-bold-hover",
|
|
27902
27915
|
critical: "bg-f1-background-critical-bold hover:bg-f1-background-critical-bold",
|
|
27903
27916
|
warning: "bg-f1-background-warning-bold hover:bg-f1-background-warning-bold",
|
|
27904
27917
|
promote: "bg-f1-background-promote-bold hover:bg-f1-background-promote-bold",
|
|
27905
27918
|
positive: "bg-f1-background-positive-bold hover:bg-f1-background-positive-bold"
|
|
27906
|
-
},
|
|
27919
|
+
}, lK = "inverse", uK = (e) => {
|
|
27907
27920
|
let t = Y(null), n = Y(e), [r, i] = X({
|
|
27908
27921
|
face: e,
|
|
27909
27922
|
animate: !1
|
|
@@ -27929,8 +27942,8 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27929
27942
|
size: r.size,
|
|
27930
27943
|
animate: r.animate
|
|
27931
27944
|
};
|
|
27932
|
-
},
|
|
27933
|
-
let n = Zn(), [r, i] = X(!1), { ref: a, size: o, animate: s } =
|
|
27945
|
+
}, dK = ({ clockIn: e, expanded: t = !1 }) => {
|
|
27946
|
+
let n = Zn(), [r, i] = X(!1), { ref: a, size: o, animate: s } = uK(t ? "card" : "chip");
|
|
27934
27947
|
return /* @__PURE__ */ $("div", {
|
|
27935
27948
|
ref: a,
|
|
27936
27949
|
className: "relative isolate",
|
|
@@ -27942,32 +27955,32 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27942
27955
|
transition: s ? IB(kB, n) : CB
|
|
27943
27956
|
}), /* @__PURE__ */ Q(ir, {
|
|
27944
27957
|
initial: !1,
|
|
27945
|
-
children: /* @__PURE__ */ Q(
|
|
27958
|
+
children: /* @__PURE__ */ Q(mK, { children: t ? /* @__PURE__ */ Q(hK, { clockIn: e }) : /* @__PURE__ */ Q(gK, {
|
|
27946
27959
|
clockIn: e,
|
|
27947
27960
|
open: r,
|
|
27948
27961
|
setOpen: i
|
|
27949
27962
|
}) }, t ? "card" : "chip")
|
|
27950
27963
|
})]
|
|
27951
27964
|
});
|
|
27952
|
-
},
|
|
27965
|
+
}, fK = PB, pK = {
|
|
27953
27966
|
duration: .16,
|
|
27954
27967
|
ease: "easeOut"
|
|
27955
|
-
},
|
|
27968
|
+
}, mK = ({ children: e }) => {
|
|
27956
27969
|
let t = Zn(), n = Wn();
|
|
27957
27970
|
return /* @__PURE__ */ Q(V.div, {
|
|
27958
27971
|
className: B(!n && "pointer-events-none absolute right-0 top-0"),
|
|
27959
27972
|
initial: { opacity: 0 },
|
|
27960
27973
|
animate: {
|
|
27961
27974
|
opacity: 1,
|
|
27962
|
-
transition: IB(
|
|
27975
|
+
transition: IB(fK, t)
|
|
27963
27976
|
},
|
|
27964
27977
|
exit: {
|
|
27965
27978
|
opacity: 0,
|
|
27966
|
-
transition: IB(
|
|
27979
|
+
transition: IB(pK, t)
|
|
27967
27980
|
},
|
|
27968
27981
|
children: e
|
|
27969
27982
|
});
|
|
27970
|
-
},
|
|
27983
|
+
}, hK = ({ clockIn: e }) => /* @__PURE__ */ $("div", {
|
|
27971
27984
|
role: "group",
|
|
27972
27985
|
"aria-label": e.title,
|
|
27973
27986
|
className: "flex w-[396px] flex-col gap-4 rounded-xl border border-solid border-transparent p-4",
|
|
@@ -27975,22 +27988,26 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
27975
27988
|
variant: "label",
|
|
27976
27989
|
content: e.title
|
|
27977
27990
|
}), e.content]
|
|
27978
|
-
}),
|
|
27979
|
-
let { caption: r, text: i, ticking: a, icon: o, action: s, tone: c, title: l, content: u } = e, d = Zn(), f = Y(null), p = Y(null), m = Y(!1), h = bu(), g = () => {
|
|
27991
|
+
}), gK = ({ clockIn: e, open: t, setOpen: n }) => {
|
|
27992
|
+
let { caption: r, text: i, ticking: a, icon: o, action: s, tone: c, title: l, content: u } = e, d = Zn(), f = Y(null), p = Y(null), m = Y(!1), h = bu(), [g, _] = X(!1), v = () => {
|
|
27980
27993
|
f.current && clearTimeout(f.current), f.current = null;
|
|
27981
|
-
},
|
|
27982
|
-
|
|
27994
|
+
}, y = (e, t) => {
|
|
27995
|
+
v(), f.current = setTimeout(() => n(e), t);
|
|
27983
27996
|
};
|
|
27984
|
-
return K(() =>
|
|
27997
|
+
return K(() => v, []), /* @__PURE__ */ $("div", {
|
|
27985
27998
|
className: "relative",
|
|
27986
|
-
onMouseEnter: () =>
|
|
27987
|
-
|
|
27999
|
+
onMouseEnter: () => {
|
|
28000
|
+
_(!0), t ? v() : y(!0, oK);
|
|
28001
|
+
},
|
|
28002
|
+
onMouseLeave: () => {
|
|
28003
|
+
_(!1), y(!1, sK);
|
|
28004
|
+
},
|
|
27988
28005
|
onFocus: () => {
|
|
27989
|
-
|
|
28006
|
+
v(), m.current ? m.current = !1 : n(!0);
|
|
27990
28007
|
},
|
|
27991
|
-
onBlur: () =>
|
|
28008
|
+
onBlur: () => y(!1, 0),
|
|
27992
28009
|
onKeyDownCapture: (e) => {
|
|
27993
|
-
e.key === "Escape" && t && e.currentTarget.contains(e.target) && (
|
|
28010
|
+
e.key === "Escape" && t && e.currentTarget.contains(e.target) && (v(), n(!1), document.activeElement !== p.current && (m.current = !0, p.current?.focus()));
|
|
27994
28011
|
},
|
|
27995
28012
|
children: [/* @__PURE__ */ $("div", {
|
|
27996
28013
|
className: B("flex items-center gap-3 rounded-xl border border-solid border-transparent p-2", !t && "pl-3"),
|
|
@@ -28012,14 +28029,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28012
28029
|
type: "button",
|
|
28013
28030
|
variant: "ghost",
|
|
28014
28031
|
size: "lg",
|
|
28015
|
-
className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0",
|
|
28032
|
+
className: B("size-10 shadow-none after:hidden hover:shadow-none active:shadow-none [&_.main]:px-0", cK[c ?? "accent"]),
|
|
28016
28033
|
"aria-label": s.label,
|
|
28017
28034
|
"aria-controls": t ? h : void 0,
|
|
28018
28035
|
onClick: () => s.onClick(),
|
|
28019
28036
|
children: /* @__PURE__ */ Q(W, {
|
|
28020
28037
|
size: "lg",
|
|
28021
|
-
color:
|
|
28022
|
-
icon: t ? s.icon : o ?? Fi
|
|
28038
|
+
color: lK,
|
|
28039
|
+
icon: t || g ? s.icon : o ?? Fi
|
|
28023
28040
|
})
|
|
28024
28041
|
})
|
|
28025
28042
|
})]
|
|
@@ -28050,11 +28067,11 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28050
28067
|
})
|
|
28051
28068
|
}) : null })]
|
|
28052
28069
|
});
|
|
28053
|
-
},
|
|
28054
|
-
let r = n - t -
|
|
28055
|
-
return r <=
|
|
28056
|
-
},
|
|
28057
|
-
className: B(
|
|
28070
|
+
}, _K = 180, vK = 8, yK = ({ glyphCenter: e, panelHeight: t, railHeight: n }) => {
|
|
28071
|
+
let r = n - t - vK;
|
|
28072
|
+
return r <= vK ? vK : Math.min(Math.max(e - t / 2, vK), r);
|
|
28073
|
+
}, bK = "w-[396px] overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", xK = "pointer-events-auto overflow-y-auto overflow-x-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", SK = ({ open: e, out: t, top: n, transition: r }) => ({
|
|
28074
|
+
className: B(bK, "absolute right-[68px] top-0 z-20 max-h-[calc(100%-1rem)] max-w-[calc(100vw-6rem)] rounded-xl bg-f1-background shadow-lg dark:bg-f1-background-secondary dark:backdrop-blur-[100px] dark:backdrop-saturate-150", e ? "pointer-events-auto" : "pointer-events-none"),
|
|
28058
28075
|
animate: {
|
|
28059
28076
|
opacity: +!!t,
|
|
28060
28077
|
scale: t ? 1 : DB,
|
|
@@ -28062,7 +28079,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28062
28079
|
y: n
|
|
28063
28080
|
},
|
|
28064
28081
|
transition: r
|
|
28065
|
-
}),
|
|
28082
|
+
}), CK = (e, t) => ({
|
|
28066
28083
|
className: B("mt-4 w-[396px] shrink-0", e ? "pointer-events-none" : "pointer-events-auto"),
|
|
28067
28084
|
animate: {
|
|
28068
28085
|
opacity: +!e,
|
|
@@ -28074,7 +28091,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28074
28091
|
...e ? NB : kB,
|
|
28075
28092
|
y: CB
|
|
28076
28093
|
}, t)
|
|
28077
|
-
}),
|
|
28094
|
+
}), wK = ({ collapsed: e, onToggle: t }) => {
|
|
28078
28095
|
let n = R(), r = e ? n.actions.expand : n.actions.collapse;
|
|
28079
28096
|
return /* @__PURE__ */ Q(zn, {
|
|
28080
28097
|
label: r,
|
|
@@ -28088,26 +28105,26 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28088
28105
|
children: /* @__PURE__ */ Q(Al, { isExpanded: !e })
|
|
28089
28106
|
})
|
|
28090
28107
|
});
|
|
28091
|
-
},
|
|
28108
|
+
}, TK = (e) => {
|
|
28092
28109
|
let t = Zn(), [n, r] = X(!1), i = LB(e, t ? 0 : 180), a = n ? i : e;
|
|
28093
28110
|
return {
|
|
28094
28111
|
stowed: a,
|
|
28095
28112
|
leaving: e && !a,
|
|
28096
28113
|
markToggled: () => r(!0)
|
|
28097
28114
|
};
|
|
28098
|
-
},
|
|
28115
|
+
}, EK = (e, t) => e.key !== "Escape" || !t || !e.currentTarget.contains(e.target) ? !1 : (e.stopPropagation(), e.currentTarget.querySelector(`[data-widget-glyph="${t}"]`)?.focus(), !0), DK = ({ clockIn: e, stowed: t, underToggle: n }) => /* @__PURE__ */ Q("div", {
|
|
28099
28116
|
className: B("pointer-events-auto shrink-0", n && "mt-2"),
|
|
28100
|
-
children: /* @__PURE__ */ Q(
|
|
28117
|
+
children: /* @__PURE__ */ Q(dK, {
|
|
28101
28118
|
clockIn: e,
|
|
28102
28119
|
expanded: !t
|
|
28103
28120
|
})
|
|
28104
|
-
}),
|
|
28121
|
+
}), OK = ({ widgets: e, openId: t, onOpen: n, onHold: r, onLeave: i, onAdd: a }) => {
|
|
28105
28122
|
let o = R();
|
|
28106
28123
|
return /* @__PURE__ */ $("div", {
|
|
28107
28124
|
className: "my-auto hidden flex-col items-end gap-2 md:flex",
|
|
28108
28125
|
onMouseEnter: r,
|
|
28109
28126
|
onMouseLeave: i,
|
|
28110
|
-
children: [e.map((e, i) => /* @__PURE__ */ Q(
|
|
28127
|
+
children: [e.map((e, i) => /* @__PURE__ */ Q(sH, {
|
|
28111
28128
|
look: "ghost",
|
|
28112
28129
|
widget: e,
|
|
28113
28130
|
order: i,
|
|
@@ -28137,10 +28154,10 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28137
28154
|
})
|
|
28138
28155
|
})] }) : null]
|
|
28139
28156
|
});
|
|
28140
|
-
},
|
|
28141
|
-
let l = Zn(), { stowed: u, leaving: d, markToggled: f } =
|
|
28157
|
+
}, kK = ({ widgets: e, slotRenderers: t, clockIn: n, collapsed: r = !0, onToggleCollapsed: i, onReorder: a, onAdd: o, onRemove: s, onChangeParams: c }) => {
|
|
28158
|
+
let l = Zn(), { stowed: u, leaving: d, markToggled: f } = TK(r), p = bu(), m = Y(null), h = Y(null), g = Y(null), [_, v] = X(null), [y, b] = X(null), [x, S] = X(!1), [C, w] = X(0), T = () => {
|
|
28142
28159
|
g.current && clearTimeout(g.current), g.current = null;
|
|
28143
|
-
}, E = (e =
|
|
28160
|
+
}, E = (e = _K) => {
|
|
28144
28161
|
T(), g.current = setTimeout(() => v(null), e);
|
|
28145
28162
|
}, D = (e, t) => {
|
|
28146
28163
|
T();
|
|
@@ -28157,13 +28174,13 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28157
28174
|
let t = new ResizeObserver(() => w(e.offsetHeight));
|
|
28158
28175
|
return t.observe(e), () => t.disconnect();
|
|
28159
28176
|
}, []);
|
|
28160
|
-
let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A =
|
|
28177
|
+
let O = (t) => e.some((e) => e.id === t), k = u && O(_) ? _ : null, A = iU({
|
|
28161
28178
|
collapsed: !0,
|
|
28162
28179
|
open: k != null,
|
|
28163
28180
|
glide: x,
|
|
28164
28181
|
drawn: !0,
|
|
28165
28182
|
width: 396
|
|
28166
|
-
}), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ?
|
|
28183
|
+
}), j = k ?? (!A.panelHidden && y && O(y.id) ? y.id : null), M = e.find((e) => e.id === j), N = y ? yK({
|
|
28167
28184
|
glyphCenter: y.center,
|
|
28168
28185
|
panelHeight: C,
|
|
28169
28186
|
railHeight: y.railHeight
|
|
@@ -28174,25 +28191,25 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28174
28191
|
onFocus: T,
|
|
28175
28192
|
onBlur: () => E(0),
|
|
28176
28193
|
onKeyDown: (e) => {
|
|
28177
|
-
|
|
28194
|
+
EK(e, k) && v(null);
|
|
28178
28195
|
},
|
|
28179
28196
|
children: [i ? /* @__PURE__ */ Q("div", {
|
|
28180
28197
|
className: "pointer-events-auto shrink-0",
|
|
28181
|
-
children: /* @__PURE__ */ Q(
|
|
28198
|
+
children: /* @__PURE__ */ Q(wK, {
|
|
28182
28199
|
collapsed: r,
|
|
28183
28200
|
onToggle: () => {
|
|
28184
28201
|
f(), i();
|
|
28185
28202
|
}
|
|
28186
28203
|
})
|
|
28187
28204
|
}) : null, /* @__PURE__ */ $("div", {
|
|
28188
|
-
className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u &&
|
|
28205
|
+
className: B("flex min-h-0 flex-1 flex-col items-end self-stretch", !u && xK),
|
|
28189
28206
|
children: [
|
|
28190
|
-
n ? /* @__PURE__ */ Q(
|
|
28207
|
+
n ? /* @__PURE__ */ Q(DK, {
|
|
28191
28208
|
clockIn: n,
|
|
28192
28209
|
stowed: u,
|
|
28193
28210
|
underToggle: i != null
|
|
28194
28211
|
}) : null,
|
|
28195
|
-
u ? /* @__PURE__ */ Q(
|
|
28212
|
+
u ? /* @__PURE__ */ Q(OK, {
|
|
28196
28213
|
widgets: e,
|
|
28197
28214
|
openId: k,
|
|
28198
28215
|
onOpen: D,
|
|
@@ -28208,15 +28225,15 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28208
28225
|
hidden: u && A.panelHidden,
|
|
28209
28226
|
style: { transformOrigin: EB },
|
|
28210
28227
|
initial: !1,
|
|
28211
|
-
...u ?
|
|
28228
|
+
...u ? SK({
|
|
28212
28229
|
open: k != null,
|
|
28213
28230
|
out: A.bodyOut,
|
|
28214
28231
|
top: N,
|
|
28215
28232
|
transition: A.transition
|
|
28216
|
-
}) :
|
|
28233
|
+
}) : CK(d, l),
|
|
28217
28234
|
onMouseEnter: T,
|
|
28218
28235
|
onMouseLeave: () => E(),
|
|
28219
|
-
children: /* @__PURE__ */ Q(
|
|
28236
|
+
children: /* @__PURE__ */ Q(rU, {
|
|
28220
28237
|
side: "right",
|
|
28221
28238
|
widgets: e,
|
|
28222
28239
|
visibleWidgetId: u ? j : void 0,
|
|
@@ -28234,19 +28251,19 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28234
28251
|
]
|
|
28235
28252
|
})]
|
|
28236
28253
|
});
|
|
28237
|
-
},
|
|
28254
|
+
}, AK = (e, t, n) => {
|
|
28238
28255
|
let r = Array.from(e.current?.querySelectorAll("section") ?? []).find((e) => e.id === t);
|
|
28239
28256
|
r?.scrollIntoView({
|
|
28240
28257
|
behavior: n ? "auto" : "smooth",
|
|
28241
28258
|
block: "start"
|
|
28242
28259
|
}), r?.focus({ preventScroll: !0 });
|
|
28243
|
-
},
|
|
28260
|
+
}, jK = (e) => {
|
|
28244
28261
|
let t = Zn();
|
|
28245
|
-
return G((n) =>
|
|
28246
|
-
},
|
|
28262
|
+
return G((n) => AK(e, n, t), [e, t]);
|
|
28263
|
+
}, MK = (e, t, n) => {
|
|
28247
28264
|
let r = [], i = /* @__PURE__ */ new Map(), a = [];
|
|
28248
28265
|
for (let o of e.elements) {
|
|
28249
|
-
if (!
|
|
28266
|
+
if (!NU(t, o.type)) {
|
|
28250
28267
|
n.push({
|
|
28251
28268
|
rule: "allowedBlockTypes",
|
|
28252
28269
|
sectionId: e.id,
|
|
@@ -28255,7 +28272,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28255
28272
|
});
|
|
28256
28273
|
continue;
|
|
28257
28274
|
}
|
|
28258
|
-
let s =
|
|
28275
|
+
let s = MU(t, o.type)?.maxPerSection, c = i.get(o.type) ?? [];
|
|
28259
28276
|
if (s !== void 0 && c.length >= s) {
|
|
28260
28277
|
n.push({
|
|
28261
28278
|
rule: "maxPerSection",
|
|
@@ -28266,14 +28283,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28266
28283
|
});
|
|
28267
28284
|
continue;
|
|
28268
28285
|
}
|
|
28269
|
-
let l = a.find((e) => !
|
|
28286
|
+
let l = a.find((e) => !IU(t, e, o.type));
|
|
28270
28287
|
l ? n.push({
|
|
28271
28288
|
rule: "combinesWith",
|
|
28272
28289
|
sectionId: e.id,
|
|
28273
28290
|
elementId: o.id,
|
|
28274
28291
|
blockType: o.type,
|
|
28275
28292
|
conflictsWith: l
|
|
28276
|
-
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ?
|
|
28293
|
+
}) : (i.set(o.type, [...c, o.id]), a.push(o.type), r.push(o.type === "shortcuts" || o.type === "text" ? PU(o, o.id, t, n) : FU(o, t)));
|
|
28277
28294
|
}
|
|
28278
28295
|
let o = t.maxElementsPerSection;
|
|
28279
28296
|
return o !== void 0 && r.length > o ? (n.push({
|
|
@@ -28288,14 +28305,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28288
28305
|
...e,
|
|
28289
28306
|
elements: r
|
|
28290
28307
|
};
|
|
28291
|
-
},
|
|
28308
|
+
}, NK = (e, t, n) => {
|
|
28292
28309
|
let r = e;
|
|
28293
28310
|
return t.maxSections !== void 0 && r.length > t.maxSections && (n.push({
|
|
28294
28311
|
rule: "maxSections",
|
|
28295
28312
|
limit: t.maxSections,
|
|
28296
28313
|
droppedSectionIds: r.slice(t.maxSections).map((e) => e.id)
|
|
28297
|
-
}), r = r.slice(0, t.maxSections)), r.map((e, r) =>
|
|
28298
|
-
},
|
|
28314
|
+
}), r = r.slice(0, t.maxSections)), r.map((e, r) => MK(e, LU(t, r === 0), n));
|
|
28315
|
+
}, PK = (e, t, n) => {
|
|
28299
28316
|
if (e.type !== "text" || !t.text) return;
|
|
28300
28317
|
let r = e.text.trim().length, { minLength: i, maxLength: a } = t.text;
|
|
28301
28318
|
return (i === void 0 || r >= i) && (a === void 0 || r <= a) ? void 0 : {
|
|
@@ -28306,14 +28323,14 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28306
28323
|
...i === void 0 ? {} : { minLength: i },
|
|
28307
28324
|
...a === void 0 ? {} : { maxLength: a }
|
|
28308
28325
|
};
|
|
28309
|
-
},
|
|
28326
|
+
}, FK = (e, t, n) => {
|
|
28310
28327
|
let r = e.flatMap((e) => e.elements), i = /* @__PURE__ */ new Set(), a = 0;
|
|
28311
28328
|
t.forEach((e, t) => {
|
|
28312
28329
|
let o = e.min ?? 1, s = e.max ?? 1, c = 0;
|
|
28313
28330
|
for (; c < s && a < r.length && e.types.includes(r[a].type);) {
|
|
28314
28331
|
let o = r[a];
|
|
28315
28332
|
a += 1, c += 1;
|
|
28316
|
-
let s =
|
|
28333
|
+
let s = PK(o, e, t);
|
|
28317
28334
|
s && (i.add(o.id), n.push(s));
|
|
28318
28335
|
}
|
|
28319
28336
|
c < o && n.push({
|
|
@@ -28332,59 +28349,59 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28332
28349
|
...e,
|
|
28333
28350
|
elements: e.elements.filter(({ id: e }) => !i.has(e))
|
|
28334
28351
|
}));
|
|
28335
|
-
},
|
|
28352
|
+
}, IK = (e) => typeof e == "object" && !!e, LK = (e) => {
|
|
28336
28353
|
let t = e.widget, n = Array.isArray(e.sections);
|
|
28337
|
-
return t === void 0 ? n ? "sections" : null :
|
|
28338
|
-
},
|
|
28339
|
-
if (!
|
|
28354
|
+
return t === void 0 ? n ? "sections" : null : IK(t) && t.type === "widget" && typeof t.id == "string" && IK(t.source) && !n ? "widget" : null;
|
|
28355
|
+
}, RK = (e, t, n) => {
|
|
28356
|
+
if (!LK(e)) return n.push({ rule: "accessoryViewBody" }), [];
|
|
28340
28357
|
let r = t.rules ?? {};
|
|
28341
|
-
if (e.widget) return
|
|
28358
|
+
if (e.widget) return NU(r, "widget") ? [e] : (n.push({
|
|
28342
28359
|
rule: "allowedBlockTypes",
|
|
28343
28360
|
sectionId: e.id,
|
|
28344
28361
|
elementId: e.widget.id,
|
|
28345
28362
|
blockType: "widget"
|
|
28346
28363
|
}), []);
|
|
28347
|
-
let i =
|
|
28364
|
+
let i = NK(e.sections, r, n), a = t.shape ? FK(i, t.shape, n) : i;
|
|
28348
28365
|
return [{
|
|
28349
28366
|
...e,
|
|
28350
28367
|
sections: a
|
|
28351
28368
|
}];
|
|
28352
|
-
},
|
|
28369
|
+
}, zK = (e, t, n) => e.flatMap((e) => {
|
|
28353
28370
|
let r = t.find((t) => t.type === e.type);
|
|
28354
28371
|
if (!r) return n.push({
|
|
28355
28372
|
rule: "accessoryViewType",
|
|
28356
28373
|
accessoryViewId: e.id,
|
|
28357
28374
|
viewType: e.type
|
|
28358
28375
|
}), [];
|
|
28359
|
-
let i = [], a =
|
|
28376
|
+
let i = [], a = RK(e, r, i);
|
|
28360
28377
|
return n.push(...i.map((t) => ({
|
|
28361
28378
|
...t,
|
|
28362
28379
|
accessoryViewId: e.id
|
|
28363
28380
|
}))), a;
|
|
28364
|
-
}),
|
|
28365
|
-
let r = [], i =
|
|
28381
|
+
}), BK = (e, t, n = []) => {
|
|
28382
|
+
let r = [], i = ZU(NK(e.sections.filter((e) => e.title?.trim() ? !0 : (r.push({
|
|
28366
28383
|
rule: "sectionTitle",
|
|
28367
28384
|
sectionId: e.id
|
|
28368
28385
|
}), !1)), t, r), r);
|
|
28369
28386
|
i.forEach((e, n) => {
|
|
28370
|
-
let i =
|
|
28371
|
-
for (let t of e.elements) t.type === "shortcuts" &&
|
|
28387
|
+
let i = LU(t, n === 0);
|
|
28388
|
+
for (let t of e.elements) t.type === "shortcuts" && DU(t, MU(i, t.type), {
|
|
28372
28389
|
sectionId: e.id,
|
|
28373
28390
|
elementId: t.id
|
|
28374
28391
|
}, r);
|
|
28375
28392
|
});
|
|
28376
|
-
let a = e.accessoryViews ?
|
|
28393
|
+
let a = e.accessoryViews ? zK(e.accessoryViews, n, r) : void 0, o = {
|
|
28377
28394
|
...e,
|
|
28378
28395
|
sections: i,
|
|
28379
28396
|
...a ? { accessoryViews: a } : {}
|
|
28380
28397
|
};
|
|
28381
28398
|
return {
|
|
28382
28399
|
spec: o,
|
|
28383
|
-
violations: [...r, ...
|
|
28400
|
+
violations: [...r, ...KU(o)]
|
|
28384
28401
|
};
|
|
28385
|
-
},
|
|
28402
|
+
}, VK = ({ spec: e, sources: t, rules: n, accessoryViewTypes: r, onRulesViolation: i }) => {
|
|
28386
28403
|
let a = J(() => {
|
|
28387
|
-
let i =
|
|
28404
|
+
let i = BK(e, n ?? {}, r), a = t ? tW(t, i.spec, n ?? {}, r) : {
|
|
28388
28405
|
sources: t,
|
|
28389
28406
|
violations: []
|
|
28390
28407
|
};
|
|
@@ -28407,7 +28424,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28407
28424
|
let e = JSON.parse(s);
|
|
28408
28425
|
e.length !== 0 && (o.current ? o.current(e) : console.warn("F0AgenticHome: the spec breaks its rules", e));
|
|
28409
28426
|
}, [s]), a;
|
|
28410
|
-
},
|
|
28427
|
+
}, HK = (e, t, n) => {
|
|
28411
28428
|
let r = Y(n);
|
|
28412
28429
|
K(() => {
|
|
28413
28430
|
r.current = n;
|
|
@@ -28422,7 +28439,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28422
28439
|
t,
|
|
28423
28440
|
i
|
|
28424
28441
|
]);
|
|
28425
|
-
},
|
|
28442
|
+
}, UK = 1164, WK = ({ hasWidgets: e, collapsed: t, defaultCollapsed: n, onCollapsedChange: r }) => {
|
|
28426
28443
|
let i = Y(null), [a, o] = X(0);
|
|
28427
28444
|
q(() => {
|
|
28428
28445
|
let e = i.current;
|
|
@@ -28437,40 +28454,40 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28437
28454
|
defaultProp: n,
|
|
28438
28455
|
onChange: r,
|
|
28439
28456
|
caller: "F0AgenticHome"
|
|
28440
|
-
}), l = e && (a === 0 || a >=
|
|
28457
|
+
}), l = e && (a === 0 || a >= UK);
|
|
28441
28458
|
return {
|
|
28442
28459
|
root: i,
|
|
28443
28460
|
collapsed: !l || s,
|
|
28444
28461
|
toggle: l ? () => c(!s) : void 0
|
|
28445
28462
|
};
|
|
28446
|
-
},
|
|
28463
|
+
}, GK = (e, t) => {
|
|
28447
28464
|
let n = Object.keys(e.params);
|
|
28448
28465
|
return e.id === t.id && n.length === Object.keys(t.params).length && n.every((n) => e.params[n] === t.params[n]);
|
|
28449
|
-
},
|
|
28450
|
-
let { missingParams: n, undeclaredParams: r } =
|
|
28466
|
+
}, KK = (e, t) => {
|
|
28467
|
+
let { missingParams: n, undeclaredParams: r } = RU(e, t);
|
|
28451
28468
|
return n.length === 0 && r.length === 0;
|
|
28452
|
-
},
|
|
28453
|
-
let { spec: T, sources: E } =
|
|
28469
|
+
}, qK = {}, JK = (e, t, n, r) => !n || r && GK(r, t) ? e : qK, YK = "pt-[max(4rem,22vh)]", XK = "pb-40", ZK = "pb-10", QK = (e, t) => e ? t && "md:px-20" : "pr-[428px]", $K = hu(function({ spec: e, greeting: t, clockIn: n, showSidebarToggle: r = !1, widgets: i = [], widgetsCollapsed: a, defaultWidgetsCollapsed: o = !0, onWidgetsCollapsedChange: s, onClickAddWidget: c, onRemoveWidget: l, onReorderWidgets: u, onChangeWidgetParams: d, sources: f, sourcesFor: p, onAccessoryViewOpen: m, onAccessoryViewClose: h, onAction: g, composer: _, onComposerVisibilityChange: v, rules: y, onRulesViolation: b, accessoryViewTypes: x, slotRenderers: S, renderMention: C }, w) {
|
|
28470
|
+
let { spec: T, sources: E } = VK({
|
|
28454
28471
|
spec: e,
|
|
28455
28472
|
sources: f,
|
|
28456
28473
|
rules: y,
|
|
28457
28474
|
accessoryViewTypes: x,
|
|
28458
28475
|
onRulesViolation: b
|
|
28459
28476
|
}), D = Y(null), O = Y(null);
|
|
28460
|
-
xu(w, () => D.current),
|
|
28461
|
-
let k =
|
|
28477
|
+
xu(w, () => D.current), HK(D, O, v);
|
|
28478
|
+
let k = jK(D), A = WK({
|
|
28462
28479
|
hasWidgets: i.length > 0,
|
|
28463
28480
|
collapsed: a,
|
|
28464
28481
|
defaultCollapsed: o,
|
|
28465
28482
|
onCollapsedChange: s
|
|
28466
|
-
}), j = _ ? /* @__PURE__ */ Q(
|
|
28483
|
+
}), j = _ ? /* @__PURE__ */ Q(iK, {
|
|
28467
28484
|
ref: O,
|
|
28468
28485
|
children: _
|
|
28469
28486
|
}) : null, [M, ...N] = T.sections, [P, F] = X(), I = T.accessoryViews?.find(({ id: e }) => e === P?.id), ee = x?.find(({ type: e }) => e === I?.type), te = J(() => (e, t) => {
|
|
28470
28487
|
if (e.type === "goToSection" && k(e.sectionId), e.type === "openAccessoryView") {
|
|
28471
28488
|
let t = T.accessoryViews?.find(({ id: t }) => t === e.id);
|
|
28472
28489
|
if (!t) console.warn(`F0AgenticHome: no accessory view "${e.id}" to open`);
|
|
28473
|
-
else if (
|
|
28490
|
+
else if (KK(t, e.params)) {
|
|
28474
28491
|
let n = {
|
|
28475
28492
|
id: t.id,
|
|
28476
28493
|
params: e.params ?? {}
|
|
@@ -28488,9 +28505,9 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28488
28505
|
m,
|
|
28489
28506
|
T.accessoryViews
|
|
28490
28507
|
]);
|
|
28491
|
-
return /* @__PURE__ */ Q(
|
|
28508
|
+
return /* @__PURE__ */ Q(yG, {
|
|
28492
28509
|
value: S,
|
|
28493
|
-
children: /* @__PURE__ */ Q(
|
|
28510
|
+
children: /* @__PURE__ */ Q(PG, {
|
|
28494
28511
|
value: C,
|
|
28495
28512
|
children: /* @__PURE__ */ $("div", {
|
|
28496
28513
|
ref: A.root,
|
|
@@ -28498,26 +28515,26 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28498
28515
|
children: [
|
|
28499
28516
|
/* @__PURE__ */ $("div", {
|
|
28500
28517
|
ref: D,
|
|
28501
|
-
className: B("h-full w-full overflow-y-auto bg-f1-background px-6", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none",
|
|
28518
|
+
className: B("h-full w-full overflow-y-auto bg-f1-background px-6", "transition-[padding] duration-[280ms] ease-[cubic-bezier(0.05,0.7,0.1,1)] motion-reduce:transition-none", QK(A.collapsed, i.length > 0 || !!c)),
|
|
28502
28519
|
children: [/* @__PURE__ */ $("div", {
|
|
28503
|
-
className: B("mx-auto flex w-full max-w-content flex-col gap-20",
|
|
28520
|
+
className: B("mx-auto flex w-full max-w-content flex-col gap-20", YK, _ && v ? XK : ZK),
|
|
28504
28521
|
children: [
|
|
28505
|
-
t ? /* @__PURE__ */ Q(
|
|
28522
|
+
t ? /* @__PURE__ */ Q(aK, { greeting: t }) : null,
|
|
28506
28523
|
M ? null : j,
|
|
28507
|
-
M ? /* @__PURE__ */ Q(
|
|
28524
|
+
M ? /* @__PURE__ */ Q($G, {
|
|
28508
28525
|
size: "lead",
|
|
28509
28526
|
section: M,
|
|
28510
28527
|
sources: E,
|
|
28511
28528
|
onAction: te,
|
|
28512
28529
|
composer: j
|
|
28513
28530
|
}, M.id) : null,
|
|
28514
|
-
N.map((e) => /* @__PURE__ */ Q(
|
|
28531
|
+
N.map((e) => /* @__PURE__ */ Q($G, {
|
|
28515
28532
|
section: e,
|
|
28516
28533
|
sources: E,
|
|
28517
28534
|
onAction: te
|
|
28518
28535
|
}, e.id))
|
|
28519
28536
|
]
|
|
28520
|
-
}), P && I && ee ? /* @__PURE__ */ Q(
|
|
28537
|
+
}), P && I && ee ? /* @__PURE__ */ Q(rK, {
|
|
28521
28538
|
view: I,
|
|
28522
28539
|
params: P.params,
|
|
28523
28540
|
presentation: ee.presentation,
|
|
@@ -28530,7 +28547,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28530
28547
|
open: !1
|
|
28531
28548
|
}), h?.();
|
|
28532
28549
|
},
|
|
28533
|
-
sources:
|
|
28550
|
+
sources: JK(E, P, !!I.params?.length, p),
|
|
28534
28551
|
onAction: te
|
|
28535
28552
|
}) : null]
|
|
28536
28553
|
}),
|
|
@@ -28538,7 +28555,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28538
28555
|
className: "absolute left-4 top-5 z-30 flex items-center xs:top-4",
|
|
28539
28556
|
children: /* @__PURE__ */ Q(qB, {})
|
|
28540
28557
|
}) : null,
|
|
28541
|
-
n || i.length || c ? /* @__PURE__ */ Q(
|
|
28558
|
+
n || i.length || c ? /* @__PURE__ */ Q(kK, {
|
|
28542
28559
|
widgets: i,
|
|
28543
28560
|
collapsed: A.collapsed,
|
|
28544
28561
|
onToggleCollapsed: A.toggle,
|
|
@@ -28553,20 +28570,20 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28553
28570
|
})
|
|
28554
28571
|
})
|
|
28555
28572
|
});
|
|
28556
|
-
}),
|
|
28573
|
+
}), eq = Tn("F0AgenticHome", $K), tq = hu(function({ element: e, state: t, onAction: n, slotRenderers: r }, i) {
|
|
28557
28574
|
let a = J(() => (e, t) => n?.(e, t), [n]);
|
|
28558
28575
|
return /* @__PURE__ */ Q("div", {
|
|
28559
28576
|
ref: i,
|
|
28560
|
-
children: /* @__PURE__ */ Q(
|
|
28577
|
+
children: /* @__PURE__ */ Q(yG, {
|
|
28561
28578
|
value: r,
|
|
28562
|
-
children: /* @__PURE__ */ Q(
|
|
28579
|
+
children: /* @__PURE__ */ Q(SG, {
|
|
28563
28580
|
element: e,
|
|
28564
28581
|
state: t,
|
|
28565
28582
|
onAction: a
|
|
28566
28583
|
})
|
|
28567
28584
|
})
|
|
28568
28585
|
});
|
|
28569
|
-
}),
|
|
28586
|
+
}), nq = Tn("F0AgenticHomeBlock", tq), rq = {
|
|
28570
28587
|
maxSections: 12,
|
|
28571
28588
|
maxElementsPerSection: 3,
|
|
28572
28589
|
blocks: [
|
|
@@ -28614,10 +28631,10 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28614
28631
|
type: "list",
|
|
28615
28632
|
itemActions: ["goToSection"]
|
|
28616
28633
|
}] }
|
|
28617
|
-
},
|
|
28634
|
+
}, iq = 1, aq = {
|
|
28618
28635
|
main: 672,
|
|
28619
28636
|
right: 396
|
|
28620
|
-
},
|
|
28637
|
+
}, oq = 250, sq = (e) => typeof e == "object" && !!e && !gu(e) && Array.isArray(e.slots), cq = ({ preview: e, params: t, slotRenderers: n }) => sq(e) ? /* @__PURE__ */ Q(mH, {
|
|
28621
28638
|
...AV(e),
|
|
28622
28639
|
header: e.header,
|
|
28623
28640
|
params: t ?? e.params,
|
|
@@ -28625,7 +28642,7 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28625
28642
|
slots: e.slots,
|
|
28626
28643
|
loading: e.loading,
|
|
28627
28644
|
slotRenderers: n
|
|
28628
|
-
}) : /* @__PURE__ */ Q(Z, { children: e }),
|
|
28645
|
+
}) : /* @__PURE__ */ Q(Z, { children: e }), lq = (e, t, n) => e.info ?? (sq(t) ? EV(t.header, n ?? t.params)?.info : void 0), uq = (e) => e.paramsSchema ?? (sq(e.preview) ? e.preview.paramsSchema : void 0), dq = (e) => e.params ?? (sq(e.preview) ? e.preview.params : void 0) ?? {}, fq = ({ label: e, icon: t }) => /* @__PURE__ */ $("div", {
|
|
28629
28646
|
className: "flex items-center gap-1.5 px-2 pb-1 pt-5 first:pt-1",
|
|
28630
28647
|
children: [t ? /* @__PURE__ */ Q(W, {
|
|
28631
28648
|
icon: t,
|
|
@@ -28636,10 +28653,10 @@ var oU = ({ collapsed: e, open: t, glide: n, drawn: r, width: i }) => {
|
|
|
28636
28653
|
children: e
|
|
28637
28654
|
})]
|
|
28638
28655
|
});
|
|
28639
|
-
function
|
|
28640
|
-
let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } =
|
|
28656
|
+
function pq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, previewWidth: o, slotRenderers: s, rebuildPreview: c, title: u = "Add widget" }) {
|
|
28657
|
+
let d = R(), { position: f, width: p, bodyClassName: m, asideClassName: h } = gH(), [g, _] = X(""), [v, y] = X(null), [b, x] = X("pick"), [S, C] = X(!1), w = (e) => {
|
|
28641
28658
|
C(!0), x(e);
|
|
28642
|
-
}, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = l(), A = g.trim().toLowerCase(), j = o ?? (a ?
|
|
28659
|
+
}, [T, E] = X(null), { formRef: D, getValues: O, trigger: k } = l(), A = g.trim().toLowerCase(), j = o ?? (a ? aq[a] : aq.right), M = J(() => {
|
|
28643
28660
|
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));
|
|
28644
28661
|
return [
|
|
28645
28662
|
...r.length ? [{
|
|
@@ -28664,7 +28681,7 @@ function hq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
28664
28681
|
A,
|
|
28665
28682
|
a,
|
|
28666
28683
|
d
|
|
28667
|
-
]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ?
|
|
28684
|
+
]), N = M.flatMap((e) => e.items), P = N.find((e) => e.id === v) ?? N[0] ?? null, F = P ? uq(P) : void 0, I = F !== void 0 && !(P?.addWithDefaults && OV(F, dq(P))), ee = b === "configure" && I, te = P && T?.id === P.id ? T.params : P ? dq(P) : {}, ne = ee && P && c ? c(P, te) : P?.preview;
|
|
28668
28685
|
return K(() => {
|
|
28669
28686
|
e && (x("pick"), C(!1), E(null));
|
|
28670
28687
|
}, [e]), K(() => {
|
|
@@ -28711,7 +28728,7 @@ function hq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
28711
28728
|
defaultValues: te,
|
|
28712
28729
|
submitConfig: {
|
|
28713
28730
|
type: "autosubmit",
|
|
28714
|
-
delay:
|
|
28731
|
+
delay: oq,
|
|
28715
28732
|
hideActionBar: !0
|
|
28716
28733
|
},
|
|
28717
28734
|
styling: { noPadding: !0 },
|
|
@@ -28726,7 +28743,7 @@ function hq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
28726
28743
|
placeholder: "Search widgets"
|
|
28727
28744
|
}), /* @__PURE__ */ $("div", {
|
|
28728
28745
|
className: "flex flex-col gap-1 overflow-y-auto",
|
|
28729
|
-
children: [M.map((e) => /* @__PURE__ */ $(du, { children: [e.label ? /* @__PURE__ */ Q(
|
|
28746
|
+
children: [M.map((e) => /* @__PURE__ */ $(du, { children: [e.label ? /* @__PURE__ */ Q(fq, {
|
|
28730
28747
|
label: e.label,
|
|
28731
28748
|
icon: e.icon
|
|
28732
28749
|
}) : null, e.items.map((e) => /* @__PURE__ */ $("button", {
|
|
@@ -28745,11 +28762,11 @@ function hq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
28745
28762
|
children: A ? "No widgets match your search." : "No widgets to add here."
|
|
28746
28763
|
}) : null]
|
|
28747
28764
|
})] })
|
|
28748
|
-
}, b), /* @__PURE__ */ Q(
|
|
28765
|
+
}, b), /* @__PURE__ */ Q(vH, {
|
|
28749
28766
|
previewKey: P?.id,
|
|
28750
|
-
info: P ?
|
|
28767
|
+
info: P ? lq(P, ne, ee ? te : void 0) : void 0,
|
|
28751
28768
|
previewWidth: j,
|
|
28752
|
-
children: P ? /* @__PURE__ */ Q(
|
|
28769
|
+
children: P ? /* @__PURE__ */ Q(cq, {
|
|
28753
28770
|
preview: ne,
|
|
28754
28771
|
params: ee ? te : void 0,
|
|
28755
28772
|
slotRenderers: s
|
|
@@ -28760,62 +28777,62 @@ function hq({ isOpen: e, onClose: t, widgets: n, onAdd: r, groups: i, area: a, p
|
|
|
28760
28777
|
}
|
|
28761
28778
|
//#endregion
|
|
28762
28779
|
//#region ../../node_modules/.pnpm/react-masonry@1.0.7/node_modules/react-masonry/dist/index.js
|
|
28763
|
-
var
|
|
28780
|
+
var mq = Object.defineProperty, hq = Object.defineProperties, gq = Object.getOwnPropertyDescriptors, _q = Object.getOwnPropertySymbols, vq = Object.prototype.hasOwnProperty, yq = Object.prototype.propertyIsEnumerable, bq = (e, t, n) => t in e ? mq(e, t, {
|
|
28764
28781
|
enumerable: !0,
|
|
28765
28782
|
configurable: !0,
|
|
28766
28783
|
writable: !0,
|
|
28767
28784
|
value: n
|
|
28768
|
-
}) : e[t] = n,
|
|
28769
|
-
for (var n in t ||= {})
|
|
28770
|
-
if (
|
|
28785
|
+
}) : e[t] = n, xq = (e, t) => {
|
|
28786
|
+
for (var n in t ||= {}) vq.call(t, n) && bq(e, n, t[n]);
|
|
28787
|
+
if (_q) for (var n of _q(t)) yq.call(t, n) && bq(e, n, t[n]);
|
|
28771
28788
|
return e;
|
|
28772
|
-
},
|
|
28789
|
+
}, Sq = (e, t) => hq(e, gq(t)), Cq = (e, t) => {
|
|
28773
28790
|
var n = {};
|
|
28774
|
-
for (var r in e)
|
|
28775
|
-
if (e != null &&
|
|
28791
|
+
for (var r in e) vq.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
28792
|
+
if (e != null && _q) for (var r of _q(e)) t.indexOf(r) < 0 && yq.call(e, r) && (n[r] = e[r]);
|
|
28776
28793
|
return n;
|
|
28777
|
-
},
|
|
28794
|
+
}, wq = (e) => e.right - e.left < 5 || e.bottom && e.bottom - e.top < 5, Tq = ({ spotsList: e, usedSpot: t }) => e.some((e) => e !== t && t.left === e.left), Eq = ({ position: e, spot: t, stone: n }) => {
|
|
28778
28795
|
if (e.left > t.left && t.right >= e.left && e.top + n.height > t.top) {
|
|
28779
28796
|
if (t.bottom && t.bottom < e.top) return t;
|
|
28780
|
-
let n =
|
|
28797
|
+
let n = xq({}, t);
|
|
28781
28798
|
return n.right = e.left, n;
|
|
28782
28799
|
}
|
|
28783
28800
|
return null;
|
|
28784
|
-
},
|
|
28801
|
+
}, Dq = ({ position: e, stone: t, spot: n }) => {
|
|
28785
28802
|
if (e.left + t.width > n.left && e.top >= n.top) {
|
|
28786
28803
|
if (n.bottom && n.bottom < e.top || n.right < e.left) return n;
|
|
28787
|
-
let t =
|
|
28804
|
+
let t = xq({}, n);
|
|
28788
28805
|
return t.bottom = e.top, t;
|
|
28789
28806
|
}
|
|
28790
28807
|
return null;
|
|
28791
|
-
},
|
|
28792
|
-
let i =
|
|
28793
|
-
return i.left = t.left + e.width,
|
|
28808
|
+
}, Oq = ({ stone: e, position: t, spotsList: n, optimalSpot: r }) => {
|
|
28809
|
+
let i = xq({}, r);
|
|
28810
|
+
return i.left = t.left + e.width, wq(i) || Tq({
|
|
28794
28811
|
usedSpot: i,
|
|
28795
28812
|
spotsList: n
|
|
28796
28813
|
}) ? null : i;
|
|
28797
|
-
},
|
|
28814
|
+
}, kq = ({ spots: e, position: t, optimalSpot: n, stone: r }) => e.map((e, i, a) => e === n ? Oq({
|
|
28798
28815
|
stone: r,
|
|
28799
28816
|
position: t,
|
|
28800
28817
|
optimalSpot: n,
|
|
28801
28818
|
spotsList: a
|
|
28802
|
-
}) :
|
|
28819
|
+
}) : Eq({
|
|
28803
28820
|
position: t,
|
|
28804
28821
|
spot: e,
|
|
28805
28822
|
stone: r
|
|
28806
|
-
}) ||
|
|
28823
|
+
}) || Dq({
|
|
28807
28824
|
position: t,
|
|
28808
28825
|
stone: r,
|
|
28809
28826
|
spot: e
|
|
28810
28827
|
}) || e);
|
|
28811
|
-
function
|
|
28828
|
+
function Aq(e, t) {
|
|
28812
28829
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
28813
28830
|
let r = t[n];
|
|
28814
28831
|
if (e(r)) return r;
|
|
28815
28832
|
}
|
|
28816
28833
|
return null;
|
|
28817
28834
|
}
|
|
28818
|
-
var
|
|
28835
|
+
var jq = (e, t) => t.filter(e), Mq = (e, t) => [...t].sort(e), Nq = (e, t) => e.top === t.top ? e.left < t.left ? -1 : 1 : e.top < t.top ? -1 : 1, Pq = (e) => Mq(Nq, e), Fq = ({ availableSpots: e, optimalSpot: t, containerSize: n, stone: r }) => {
|
|
28819
28836
|
let i = {
|
|
28820
28837
|
right: n,
|
|
28821
28838
|
top: t.top + r.height,
|
|
@@ -28830,36 +28847,36 @@ var Nq = (e, t) => t.filter(e), Pq = (e, t) => [...t].sort(e), Fq = (e, t) => e.
|
|
|
28830
28847
|
}
|
|
28831
28848
|
}
|
|
28832
28849
|
return i;
|
|
28833
|
-
},
|
|
28850
|
+
}, Iq = (e, t) => {
|
|
28834
28851
|
let n = e.right - e.left >= t.width;
|
|
28835
28852
|
if (!e.bottom) return n;
|
|
28836
28853
|
let r = e.bottom - e.top >= t.height;
|
|
28837
28854
|
return n && r;
|
|
28838
|
-
},
|
|
28839
|
-
function
|
|
28840
|
-
let r =
|
|
28855
|
+
}, Lq = ({ availableSpots: e, stone: t }) => Aq((e) => Iq(e, t), e);
|
|
28856
|
+
function Rq({ stone: e, availableSpots: t, containerSize: n }) {
|
|
28857
|
+
let r = Lq({
|
|
28841
28858
|
availableSpots: t,
|
|
28842
28859
|
stone: e
|
|
28843
28860
|
}), i = {
|
|
28844
28861
|
left: r.left,
|
|
28845
28862
|
top: r.top
|
|
28846
|
-
}, a =
|
|
28863
|
+
}, a = Fq({
|
|
28847
28864
|
optimalSpot: r,
|
|
28848
28865
|
availableSpots: t.filter((e) => e !== r),
|
|
28849
28866
|
stone: e,
|
|
28850
28867
|
containerSize: n
|
|
28851
|
-
}), o = [...t, a], s =
|
|
28868
|
+
}), o = [...t, a], s = kq({
|
|
28852
28869
|
spots: o,
|
|
28853
28870
|
position: i,
|
|
28854
28871
|
optimalSpot: r,
|
|
28855
28872
|
stone: e
|
|
28856
28873
|
});
|
|
28857
|
-
return o = [...
|
|
28874
|
+
return o = [...jq(Boolean, s)], o = Pq(o), {
|
|
28858
28875
|
position: i,
|
|
28859
28876
|
availableSpots: o
|
|
28860
28877
|
};
|
|
28861
28878
|
}
|
|
28862
|
-
var
|
|
28879
|
+
var zq = ({ stones: e, containerSize: t }) => {
|
|
28863
28880
|
let n = {
|
|
28864
28881
|
positions: [],
|
|
28865
28882
|
containerHeight: 0,
|
|
@@ -28872,7 +28889,7 @@ var Vq = ({ stones: e, containerSize: t }) => {
|
|
|
28872
28889
|
right: t
|
|
28873
28890
|
}];
|
|
28874
28891
|
for (let n of e) {
|
|
28875
|
-
let e =
|
|
28892
|
+
let e = Rq({
|
|
28876
28893
|
availableSpots: a,
|
|
28877
28894
|
stone: n,
|
|
28878
28895
|
containerSize: t
|
|
@@ -28884,14 +28901,14 @@ var Vq = ({ stones: e, containerSize: t }) => {
|
|
|
28884
28901
|
positions: i,
|
|
28885
28902
|
containerHeight: r
|
|
28886
28903
|
};
|
|
28887
|
-
},
|
|
28904
|
+
}, Bq = (e) => e.reduce((e, t) => {
|
|
28888
28905
|
if (!t) return e;
|
|
28889
28906
|
let n = t.getBoundingClientRect();
|
|
28890
28907
|
return e.push({
|
|
28891
28908
|
width: n.width,
|
|
28892
28909
|
height: n.height
|
|
28893
28910
|
}), e;
|
|
28894
|
-
}, []),
|
|
28911
|
+
}, []), Vq = ({ boxesRefs: e, wrapperRef: t, children: n, windowWidth: r, wrapperWidth: i }) => {
|
|
28895
28912
|
let [{ positions: a, containerHeight: o, stones: s, availableSpots: c }, l] = X({
|
|
28896
28913
|
positions: [],
|
|
28897
28914
|
containerHeight: null,
|
|
@@ -28899,13 +28916,13 @@ var Vq = ({ stones: e, containerSize: t }) => {
|
|
|
28899
28916
|
availableSpots: []
|
|
28900
28917
|
});
|
|
28901
28918
|
return K(() => {
|
|
28902
|
-
let n =
|
|
28919
|
+
let n = Bq(e.current), r = t.current?.offsetWidth ?? 0;
|
|
28903
28920
|
if (r === null) return;
|
|
28904
|
-
let i =
|
|
28921
|
+
let i = zq({
|
|
28905
28922
|
stones: n,
|
|
28906
28923
|
containerSize: r
|
|
28907
28924
|
});
|
|
28908
|
-
l(
|
|
28925
|
+
l(Sq(xq({}, i), { stones: n }));
|
|
28909
28926
|
}, [
|
|
28910
28927
|
n,
|
|
28911
28928
|
e,
|
|
@@ -28918,7 +28935,7 @@ var Vq = ({ stones: e, containerSize: t }) => {
|
|
|
28918
28935
|
stones: s,
|
|
28919
28936
|
availableSpots: c
|
|
28920
28937
|
};
|
|
28921
|
-
},
|
|
28938
|
+
}, Hq = (e) => ({
|
|
28922
28939
|
fade: `${e}ms opacity ease`,
|
|
28923
28940
|
fadeMove: `
|
|
28924
28941
|
${e}ms opacity ease,
|
|
@@ -28929,15 +28946,15 @@ var Vq = ({ stones: e, containerSize: t }) => {
|
|
|
28929
28946
|
${e}ms top ease,
|
|
28930
28947
|
${e}ms left ease
|
|
28931
28948
|
`
|
|
28932
|
-
}),
|
|
28949
|
+
}), Uq = ({ transition: e, transitionDuration: t }) => e ? { transition: Hq(t)[e] } : null, Wq = (e) => e ? Sq(xq({}, e), { opacity: 1 }) : {
|
|
28933
28950
|
opacity: 0,
|
|
28934
28951
|
top: 0,
|
|
28935
28952
|
left: 0
|
|
28936
|
-
},
|
|
28953
|
+
}, Gq = ({ style: e, position: t, transition: n, transitionDuration: r }) => xq(xq(Sq(xq({}, e), { position: "absolute" }), Wq(t)), Uq({
|
|
28937
28954
|
transition: n,
|
|
28938
28955
|
transitionDuration: r
|
|
28939
28956
|
}));
|
|
28940
|
-
function
|
|
28957
|
+
function Kq(e, t, n) {
|
|
28941
28958
|
let r;
|
|
28942
28959
|
return function(...i) {
|
|
28943
28960
|
r && clearTimeout(r), r = setTimeout(function() {
|
|
@@ -28945,8 +28962,8 @@ function Jq(e, t, n) {
|
|
|
28945
28962
|
}, t), n && !r && e.apply(null, i);
|
|
28946
28963
|
};
|
|
28947
28964
|
}
|
|
28948
|
-
var
|
|
28949
|
-
let [e, t] = X(), n = Y(
|
|
28965
|
+
var qq = () => {
|
|
28966
|
+
let [e, t] = X(), n = Y(Kq(t, 300));
|
|
28950
28967
|
return K(() => {
|
|
28951
28968
|
let e = () => {
|
|
28952
28969
|
n.current(window.innerWidth);
|
|
@@ -28955,7 +28972,7 @@ var Yq = () => {
|
|
|
28955
28972
|
window.removeEventListener("resize", e);
|
|
28956
28973
|
};
|
|
28957
28974
|
}, []), e;
|
|
28958
|
-
},
|
|
28975
|
+
}, Jq = (e) => {
|
|
28959
28976
|
let [t, n] = X(null);
|
|
28960
28977
|
return K(() => {
|
|
28961
28978
|
let t = new ResizeObserver((e) => {
|
|
@@ -28965,31 +28982,31 @@ var Yq = () => {
|
|
|
28965
28982
|
t.disconnect();
|
|
28966
28983
|
};
|
|
28967
28984
|
}, [e]), t;
|
|
28968
|
-
},
|
|
28969
|
-
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s =
|
|
28985
|
+
}, Yq = (e) => {
|
|
28986
|
+
var t = e, { children: n, style: r, transition: i = !1, transitionDuration: a = 500, transitionStep: o = 50 } = t, s = Cq(t, [
|
|
28970
28987
|
"children",
|
|
28971
28988
|
"style",
|
|
28972
28989
|
"transition",
|
|
28973
28990
|
"transitionDuration",
|
|
28974
28991
|
"transitionStep"
|
|
28975
28992
|
]);
|
|
28976
|
-
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } =
|
|
28993
|
+
let c = Y([]), l = Y(null), { positions: u, containerHeight: d } = Vq({
|
|
28977
28994
|
boxesRefs: c,
|
|
28978
28995
|
wrapperRef: l,
|
|
28979
28996
|
children: n,
|
|
28980
|
-
windowWidth:
|
|
28981
|
-
wrapperWidth:
|
|
28982
|
-
}), f =
|
|
28997
|
+
windowWidth: qq(),
|
|
28998
|
+
wrapperWidth: Jq(l)
|
|
28999
|
+
}), f = xq({
|
|
28983
29000
|
minHeight: d ?? 0,
|
|
28984
29001
|
position: "relative"
|
|
28985
29002
|
}, r);
|
|
28986
|
-
return Q("div",
|
|
29003
|
+
return Q("div", Sq(xq({
|
|
28987
29004
|
ref: l,
|
|
28988
29005
|
style: f
|
|
28989
29006
|
}, s), { children: uu.map(n, (e, t) => {
|
|
28990
29007
|
if (typeof e != "object" || !e || !("type" in e)) return e;
|
|
28991
29008
|
let n = {
|
|
28992
|
-
style:
|
|
29009
|
+
style: Gq({
|
|
28993
29010
|
style: e.props.style,
|
|
28994
29011
|
position: u[t],
|
|
28995
29012
|
transition: i,
|
|
@@ -28997,14 +29014,14 @@ var Yq = () => {
|
|
|
28997
29014
|
}),
|
|
28998
29015
|
ref: (e) => c.current[t] = e
|
|
28999
29016
|
};
|
|
29000
|
-
return pu(e,
|
|
29017
|
+
return pu(e, xq(xq({}, e.props), n));
|
|
29001
29018
|
}) }));
|
|
29002
|
-
},
|
|
29019
|
+
}, Xq = {
|
|
29003
29020
|
sm: 340,
|
|
29004
29021
|
md: 480,
|
|
29005
29022
|
lg: 640
|
|
29006
|
-
},
|
|
29007
|
-
let r =
|
|
29023
|
+
}, Zq = hu(function({ children: e, widgetWidth: t = "sm" }, n) {
|
|
29024
|
+
let r = Xq[t], [i, a] = X(), o = uu.toArray(e), s = Y(null);
|
|
29008
29025
|
return K(() => {
|
|
29009
29026
|
let e = () => {
|
|
29010
29027
|
let e = s.current?.offsetWidth;
|
|
@@ -29023,7 +29040,7 @@ var Yq = () => {
|
|
|
29023
29040
|
children: e
|
|
29024
29041
|
}) : i && i > 1 && /* @__PURE__ */ Q("div", {
|
|
29025
29042
|
className: "relative -mr-4",
|
|
29026
|
-
children: /* @__PURE__ */ Q(
|
|
29043
|
+
children: /* @__PURE__ */ Q(Yq, { children: o.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
29027
29044
|
style: { width: `${Math.floor(1 / i * 1e4) / 100 - .05}%` },
|
|
29028
29045
|
className: "pb-[0.01px] pr-4 *:mb-4 *:shadow",
|
|
29029
29046
|
children: e
|
|
@@ -29031,7 +29048,7 @@ var Yq = () => {
|
|
|
29031
29048
|
})
|
|
29032
29049
|
})
|
|
29033
29050
|
});
|
|
29034
|
-
}),
|
|
29051
|
+
}), Qq = [
|
|
29035
29052
|
"sm",
|
|
29036
29053
|
"lg",
|
|
29037
29054
|
"md",
|
|
@@ -29044,26 +29061,26 @@ var Yq = () => {
|
|
|
29044
29061
|
"sm",
|
|
29045
29062
|
"md",
|
|
29046
29063
|
"md"
|
|
29047
|
-
],
|
|
29064
|
+
], $q = ea(Zq, () => /* @__PURE__ */ Q(as, { children: /* @__PURE__ */ Q(Zq, { children: Qq.map((e, t) => /* @__PURE__ */ Q(Re.Skeleton, { height: e }, t)) }) })), eJ = ({ children: e }) => /* @__PURE__ */ Q("div", {
|
|
29048
29065
|
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)]",
|
|
29049
29066
|
children: e
|
|
29050
|
-
}),
|
|
29067
|
+
}), tJ = ea(hu(function({ children: e }, t) {
|
|
29051
29068
|
return /* @__PURE__ */ Q(ml, {
|
|
29052
29069
|
ref: t,
|
|
29053
29070
|
showBar: !1,
|
|
29054
|
-
children: /* @__PURE__ */ Q(
|
|
29071
|
+
children: /* @__PURE__ */ Q(eJ, { children: e })
|
|
29055
29072
|
});
|
|
29056
29073
|
}), () => /* @__PURE__ */ Q(as, {
|
|
29057
29074
|
orientation: "horizontal",
|
|
29058
|
-
children: /* @__PURE__ */ $(
|
|
29075
|
+
children: /* @__PURE__ */ $(eJ, { children: [
|
|
29059
29076
|
/* @__PURE__ */ Q(Re.Skeleton, {}),
|
|
29060
29077
|
/* @__PURE__ */ Q(Re.Skeleton, {}),
|
|
29061
29078
|
/* @__PURE__ */ Q(Re.Skeleton, {})
|
|
29062
29079
|
] })
|
|
29063
|
-
})),
|
|
29080
|
+
})), nJ = Re;
|
|
29064
29081
|
//#endregion
|
|
29065
29082
|
//#region src/blocks/Widgets/WidgetEmptyState/WidgetEmptyState.tsx
|
|
29066
|
-
function
|
|
29083
|
+
function rJ({ title: e, description: t, emoji: n, actions: r }) {
|
|
29067
29084
|
if ((r?.length ?? 0) > 2) throw Error("You can only provide up to two actions for the WidgetEmptyState");
|
|
29068
29085
|
return /* @__PURE__ */ Q(E, {
|
|
29069
29086
|
title: e,
|
|
@@ -29074,7 +29091,7 @@ function aJ({ title: e, description: t, emoji: n, actions: r }) {
|
|
|
29074
29091
|
}
|
|
29075
29092
|
//#endregion
|
|
29076
29093
|
//#region src/blocks/Widgets/WidgetEmptyState/index.tsx
|
|
29077
|
-
var
|
|
29094
|
+
var iJ = xn(Tn("WidgetEmptyState", rJ)), aJ = ({ identifier: e, allowedRoutes: t, disallowedRoutes: n, children: r }) => {
|
|
29078
29095
|
let i = Sn(), a = window.location.pathname, o = J(() => t?.length ? t.includes(a) : !n?.length || !n.includes(a), [
|
|
29079
29096
|
a,
|
|
29080
29097
|
t,
|
|
@@ -29088,9 +29105,9 @@ var oJ = xn(Tn("WidgetEmptyState", aJ)), sJ = ({ identifier: e, allowedRoutes: t
|
|
|
29088
29105
|
n
|
|
29089
29106
|
]);
|
|
29090
29107
|
return o ? r : (i && console.error(s), null);
|
|
29091
|
-
},
|
|
29108
|
+
}, oJ = xn(ds({
|
|
29092
29109
|
name: "ScrollArea",
|
|
29093
29110
|
type: "layout"
|
|
29094
29111
|
}, ml));
|
|
29095
29112
|
//#endregion
|
|
29096
|
-
export {
|
|
29113
|
+
export { iq as AGENTIC_HOME_SPEC_VERSION, d as AUTO_PER_PAGE_MAX, cn as AUTO_PER_PAGE_MIN_RESERVED_ROWS, ph as ActivityItemList, fh as ActivityItemListSkeleton, id as AiPromotionChat, ad as AiPromotionChatProvider, Vw as ApplicationFrame, _e as AreaChart, az as AreaChartWidget, GR as AutoGrid, xs as Badge, m as BarChart, oz as BarChartWidget, dh as BaseActivityItemList, lt as BaseBanner, yh as BaseCelebration, Ih as BaseCommunityPost, wi as BaseTabs, ba as BreadcrumbSelect, cT as Breadcrumbs, jh as CalendarEvent, xz as CalendarEventList, qe as CardSelectableContainer, It as Carousel, f as CategoryBarChart, Hz as CategoryBarSection, xh as Celebration, bh as CelebrationSkeleton, vz as ChartWidgetEmptyState, Hs as Chip, _B as ClockInControls, Yt as CoachmarkProvider, ie as ComboChart, Rh as CommunityPost, qh as CommunityPostCard, Jh as CommunityPostCardSkeleton, Lh as CommunityPostSkeleton, HD as CompanySelector, rr as Counter, WV as DEFAULT_EXPECTED_ITEMS_COUNT, $q as Dashboard, $w as DaytimePage, Jo as DetailsItem, mr as DetailsItemsList, tn as Dialog, Za as Dropdown, FV as EVENT_LIST_GAP, Mm as EntitySelect, xt as F0ActionBar, eq as F0AgenticHome, nq as F0AgenticHomeBlock, de as F0AiBanner, Ld as F0AiCallout, ys as F0AvatarColor, Ns as F0AvatarColorList, Ps as F0AvatarModule, Vc as F0ButtonToggle, Gd as F0Callout, dr as F0CardHorizontal, dr as F0CardRow, Np as F0CarouselDialog, ER as F0Chat, Mj as F0ChatHistoryLimitCard, Jl as F0ChatProvider, kA as F0CommandPaletteProvider, Qh as F0CommunityPostsCarousel, pp as F0Composer, rf as F0Confetti, NR as F0ENPSButton, md as F0EmojiPicker, ho as F0FileItem, Ne as F0FormEditableTable, Ve as F0LocationInput, Vl as F0Map, Tl as F0MapControls, Wl as F0MapList, Gl as F0MapSidebar, Fl as F0MapSidebarToggle, Rl as F0MapSkeleton, ow as F0Meeting, Ef as F0MeetingCard, bg as F0MeetingProvider, HC as F0MeetingRoom, sw as F0MeetingSlot, aw as F0MeetingSurface, pn as F0NotesTextEditor, He as F0NotesTextEditorSkeleton, fe as F0NumberInput, j as F0NumberInputInline, Qr as F0PersonCard, ht as F0PhoneInput, rk as F0PrimarySidebar, Fc as F0ProgressSeries, jf as F0PulseDot, Ap as F0Resizable, Pe as F0ResourceHeader, Pe as ResourceHeader, Ui as F0RichTextDisplay, gt as F0RichTextEditor, Sc as F0SearchInput, ok as F0SecondarySidebar, Fp as F0SegmentedBar, Kr as F0SegmentedControl, Kp as F0SwipeDeck, pt as F0TableOfContent, th as F0TemplateTextInput, _ as F0TextAreaInput, oe as F0TextAreaInputInline, Va as F0TextInput, te as F0TextInputInline, im as F0Timeline, nm as F0VersionHistory, Dj as F0_CHAT_HEADER_TITLE_SELECTOR, FA as F0_CHAT_MESSAGES_TAB_ID, gc as F1SearchBox, ee as FILE_TYPES, to as FileItem, Sh as HighlightBanner, GB as HomeSlotItem, WB as HomeSlotItems, Ez as IndicatorsList, qr as Input, Mt as Item, ze as ItemSectionHeader, IA as LATEST, xV as LIST_COMPACT_AFTER, NV as LIST_MORE_BUTTON_CLASS, yt as LineChart, sz as LineChartWidget, bw as MeetingNotes, lw as MeetingPanelContent, yw as MeetingParticipants, dw as MeetingRoomChat, TC as MeetingSidePanel, Kv as MeetingSurfaceProvider, mw as MeetingTranscript, aO as Menu, Bo as MobileDropdown, hU as NewHomeLayout, ln as NotesTextEditor, me as NotesTextEditorSkeleton, vn as NumberInput, PT as OmniButton, bk as OneApprovalHistory, pc as OneCalendar, Pt as OneDataCollection, Ce as OneDateNavigator, E as OneEmptyState, rg as OneListItem, ng as OneListItemSkeleton, I as OnePagination, og as OnePersonListItem, aJ as OneRestrictComponent, IT as Page, AT as PageHeader, lT as PageHeaderNavigationContext, uT as PageHeaderNavigationProvider, cr as PageNavigation, r as PieChart, cz as PieChartWidget, Qt as PrivateBox, _t as ProgressBarChart, rq as RECOMMENDED_AGENTIC_HOME_RULES, kl as RECOMMENDED_MAX_MARKERS, F as RadarChart, Th as Reactions, ui as RichTextDisplay, P as RichTextEditor, jV as SLOT_ROW_BLEED, GV as SLOT_SKELETON_ITEM_TESTID, oJ as ScrollArea, ik as SearchBar, $e as SectionHeader, Ac as Select, Rn as Shortcut, lk as Sidebar, tD as SidebarChatBlankState, lD as SidebarChatItem, rD as SidebarChatItemSkeleton, wD as SidebarChatList, aD as SidebarChatListSkeleton, KT as SidebarChatProvider, aE as SidebarCollapsibleSection, JD as SidebarFooter, XD as SidebarHeader, cO as SidebarPanelHeader, SE as SidebarTabPanel, pE as SidebarTabPanelSearch, fk as SidebarTabs, qD as SidebarUserMenu, mH as SlotWidget, pH as SlotWidgetContent, ac as Spinner, WR as Split, UR as Stack, uz as SummariesWidget, Ec as Switch, Ii as Tabs, Ar as TabsSkeleton, xB as TasksList, w as Textarea, Cr as ToggleGroup, vr as ToggleGroupItem, zn as Tooltip, Bn as TooltipGroup, Vz as TwoColumnsList, L as UPLOAD_INPUT_ID, ne as VerticalBarChart, lz as VerticalBarChartWidget, om as VirtualList, Cc as WeekStartDay, vi as Weekdays, nJ as Widget, kz as WidgetAvatarsListItem, pq as WidgetCatalog, iJ as WidgetEmptyState, wz as WidgetHighlightButton, Lz as WidgetInboxList, Mz as WidgetInboxListItem, XB as WidgetSection, zz as WidgetSimpleList, Fz as WidgetSimpleListItem, tJ as WidgetStrip, $t as actionBarStatuses, hd as aiCalloutStatuses, Of as attendeesDisplays, sv as buildTiles, Be as buttonToggleColors, Nt as buttonToggleSizes, qt as buttonToggleVariants, kh as calendarEventVariants, Rc as chipVariants, zu as coachmarks, cA as commandActionRisks, Kh as communityPostCardVariants, mp as composerVariants, Kd as confettiPalette, xS as createMeetingSignalStore, Ll as defaultMapStyle, eH as defaultSlotRenderers, $V as defaultSlotSkeleton, Wu as defineStepByStepCoachmarkGuidance, Je as downloadAsCSV, Ok as downloadAsExcel, AA as f0ChatSenderColors, od as f0EmojiPickerSizes, ja as f0FileItemSizes, Ol as f0MapMarkerVariants, Bl as f0MapStyles, gv as f0MeetingConnectionQualities, bv as f0MeetingCoreActionIds, mv as f0MeetingDisconnectReasons, hv as f0MeetingPermissions, fv as f0MeetingPresences, pv as f0MeetingStatuses, _v as f0MeetingSurfaceDestinations, vv as f0MeetingSurfaceModes, dv as f0MeetingTrackKinds, Nu as f0ProgressSeriesColors, Mu as f0ProgressSeriesSizes, yv as f0WindowCorners, TV as fromParams, Ze as generateCSVContent, ve as getAutoPerPageMinHeight, cc as getGranularityDefinition, Ls as getGranularityDefinitions, Pc as getGranularitySimpleDefinition, Pl as googleMapStyles, Dl as googlePinlessMapStyles, fc as granularityDefinitions, BV as heldDialogActions, CV as homeSlot, Oi as isPossiblePhoneValue, PA as isPost, jA as isSystemMessage, NA as isUserMessage, Nr as isValidPhoneValue, dS as layoutGrid, p as listIconColors, PV as listMoreButtonClass, wV as listSlot, Lm as locationInputSizes, Rm as locationParts, ux as matchDevice, Df as meetingStates, fs as modules, Ov as nearestCorner, $h as oneListItemRowClassName, zm as phoneInputSizes, Dv as placementFromRect, mt as predefinedPresets, Mf as pulseDotVariants, kV as railActionTones, kc as rangeSeparator, ix as readMeetingMediaPreferences, mS as reorderForSpeakers, hp as resizableDirections, $x as resolveAutoFocus, Mc as resolveGranularityDefinition, Ev as resolvePlacement, bV as resolveSlotRenderer, EV as resolveWidgetHeader, i_ as sanitizeMeetingReaction, Sk as seedFromStorage, je as selectSizes, le as selectVariants, kv as settlePlacement, MV as slotRowBleed, uS as solveGrid, hS as solveSpotlight, Qp as swipeDirections, uv as tileAspectRatio, av as tileKey, ax as updateMeetingMediaPreferences, Zu as useAiPromotionChat, DA as useCommandPalette, mh as useCompactOnScroll, tf as useConfetti, re as useDataCollectionData, Ck as useDataCollectionItemNavigation, bn as useDataCollectionSource, Jt as useExportAction, cu as useF0Chat, Sg as useF0Meeting, wg as useF0MeetingRoster, Cg as useF0MeetingStable, xg as useHasF0Meeting, vt as useInfiniteScrollPagination, UB as useIsBulkChange, ox as useMeetingMediaPreferences, TS as useMeetingSignal, ES as useMeetingSpeakers, qv as useMeetingSurface, Jv as useMeetingSurfaceOptional, fT as usePageHeaderItemNavigation, dT as usePageHeaderNavigation, Tr as useSidePanel, Ml as useSidebar, XT as useSidebarChatActions, YT as useSidebarChats, Zp as useSwipeDeck, Ng as useTrackBinding, Ke as useWidgetIsWide, xw as viewportRect, AV as widgetChrome, OV as widgetParamsAreComplete, DV as widgetTitle };
|