@factorialco/f0-react 1.470.1 → 1.471.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/f0.d.ts CHANGED
@@ -720,9 +720,9 @@ declare type AiChatProviderReturnValue = {
720
720
  /** Close the canvas panel and restore the previous visualization mode */
721
721
  closeCanvas: () => void;
722
722
  /** The currently active mini-game (easter egg), or null */
723
- activeGame: "dino" | "pong" | null;
723
+ activeGame: "pong" | null;
724
724
  /** Launch a mini-game overlay */
725
- openGame: (game: "dino" | "pong") => void;
725
+ openGame: (game: "pong") => void;
726
726
  /** Close the active mini-game overlay */
727
727
  closeGame: () => void;
728
728
  /** The currently active tool hint, or null if none is selected */
@@ -863,6 +863,7 @@ export declare const aiTranslations: {
863
863
  readonly unsavedChanges: "Unsaved changes";
864
864
  readonly saveChanges: "Save changes";
865
865
  readonly discardChanges: "Discard";
866
+ readonly saveAsChanges: "Save as";
866
867
  readonly exportTable: "Download table";
867
868
  readonly generatedTableFilename: "OneGeneratedTable";
868
869
  readonly feedbackModal: {
@@ -912,6 +913,7 @@ export declare const aiTranslations: {
912
913
  };
913
914
  readonly reportCard: {
914
915
  readonly reportLabel: "Report";
916
+ readonly tableLabel: "Table";
915
917
  readonly openButton: "Open";
916
918
  };
917
919
  readonly formCard: {
@@ -920,6 +922,7 @@ export declare const aiTranslations: {
920
922
  readonly dashboard: {
921
923
  readonly save: "Save";
922
924
  readonly saveToAnalytics: "Save the dashboard in Analytics";
925
+ readonly saveTableToAnalytics: "Save the table in Analytics";
923
926
  readonly saveAs: "Save as";
924
927
  readonly saveDialog: {
925
928
  readonly title: "Save dashboard";
@@ -929,12 +932,21 @@ export declare const aiTranslations: {
929
932
  readonly save: "Save";
930
933
  readonly cancel: "Cancel";
931
934
  };
935
+ readonly status: {
936
+ readonly saved: "Saved";
937
+ readonly draft: "Draft";
938
+ readonly unsaved: "Unsaved";
939
+ };
940
+ readonly statusLabel: "Status";
941
+ readonly lastEdited: "Last edited";
942
+ readonly createdBy: "Created by";
932
943
  };
933
944
  readonly dataDownload: {
934
945
  readonly title: "Download";
935
946
  readonly download: "Download {{format}}";
936
947
  readonly exportDashboard: "Export dashboard as {{format}}";
937
- readonly exporting: "Exporting...";
948
+ readonly export: "Export";
949
+ readonly exporting: "Exporting…";
938
950
  readonly rows: "{{amount}} rows";
939
951
  };
940
952
  readonly dashboardItem: {
@@ -951,18 +963,6 @@ export declare const aiTranslations: {
951
963
  readonly controls: "← → to move";
952
964
  readonly escToExit: "Esc to exit";
953
965
  };
954
- readonly dino: {
955
- readonly title: "One Run";
956
- readonly tapToStart: "Press Space or tap to start";
957
- readonly gameOver: "Game over";
958
- readonly pressToRestart: "Space to restart";
959
- readonly score: "Score";
960
- readonly yourScore: "Your score";
961
- readonly newRecord: "New record!";
962
- readonly hi: "HI";
963
- readonly controls: "Space to jump · ↓ to crouch";
964
- readonly escToExit: "Esc to exit";
965
- };
966
966
  readonly creditWarning: {
967
967
  readonly soft: "You're running low on AI credits.";
968
968
  readonly getCredits: "Get credits";
@@ -2389,6 +2389,13 @@ declare interface ChatDashboardColumn {
2389
2389
  declare interface ChatDashboardConfig {
2390
2390
  /** Dashboard title displayed in the canvas header and chat report card */
2391
2391
  title: string;
2392
+ /**
2393
+ * AI-generated 1–2 sentence summary of what the dashboard shows. Displayed
2394
+ * under the title in the canvas header. Optional at the type level so
2395
+ * legacy persisted dashboards (before the agent started emitting it) still
2396
+ * parse; the agent schema makes it required going forward.
2397
+ */
2398
+ description?: string;
2392
2399
  /** Filter definitions — keys become filter IDs */
2393
2400
  filters?: Record<string, ChatDashboardFilterDefinition>;
2394
2401
  /**
@@ -3091,8 +3098,23 @@ export declare const Dashboard: WithDataTestIdReturnType_3<ComponentType<Dashboa
3091
3098
  declare type DashboardCanvasActions = {
3092
3099
  /** Update an existing saved dashboard */
3093
3100
  save: (id: string, category: string, config: ChatDashboardConfig) => Promise<void>;
3094
- /** Create a new saved dashboard. Returns the new dashboard ID if available. */
3095
- create: (title: string, description: string, config: ChatDashboardConfig, category?: string) => Promise<string | void>;
3101
+ /**
3102
+ * Create a new saved dashboard. Returns the new dashboard's id and
3103
+ * category so subsequent edits can call `save` (which requires both).
3104
+ * Returning void / undefined leaves the canvas in its current state.
3105
+ */
3106
+ create: (title: string, description: string, config: ChatDashboardConfig, category?: string) => Promise<{
3107
+ id: string;
3108
+ category: string;
3109
+ } | void>;
3110
+ /**
3111
+ * Fetch creator + last-edited metadata for a saved dashboard. The header
3112
+ * calls this lazily, only when the current dashboard has a
3113
+ * `savedDashboardId`. Returning `void` signals "no metadata available" —
3114
+ * the header will skip rendering the avatar and the last-edited row
3115
+ * instead of showing a placeholder.
3116
+ */
3117
+ getMetadata?: (id: string) => Promise<DashboardMetadata | void>;
3096
3118
  };
3097
3119
 
3098
3120
  /**
@@ -3260,6 +3282,42 @@ declare type DashboardItemLayout = {
3260
3282
  y: number;
3261
3283
  };
3262
3284
 
3285
+ /**
3286
+ * Creator + last-edited metadata for a saved dashboard. Returned by
3287
+ * `DashboardCanvasActions.getMetadata` so the header can render the author
3288
+ * avatar and the freshness signal only once a dashboard has been persisted.
3289
+ *
3290
+ * `title` and `description` are also returned: once a dashboard has an id
3291
+ * the backend is the source of truth and may diverge from what's stored in
3292
+ * the chat history (e.g. someone renamed the dashboard from the Analytics
3293
+ * list page since this conversation was first opened). The header prefers
3294
+ * these values over the ones baked into `content` / `config`.
3295
+ */
3296
+ declare type DashboardMetadata = {
3297
+ /**
3298
+ * Latest persisted title. When present, the header displays this instead
3299
+ * of `content.title` so the chat-history snapshot never shadows the
3300
+ * authoritative backend copy.
3301
+ */
3302
+ title?: string;
3303
+ /**
3304
+ * Latest persisted description. Same rationale as `title` — takes
3305
+ * precedence over `config.description` once the dashboard is saved.
3306
+ */
3307
+ description?: string;
3308
+ creator: {
3309
+ firstName: string;
3310
+ lastName: string;
3311
+ /** Optional avatar image URL. Falls back to initials when omitted. */
3312
+ src?: string;
3313
+ };
3314
+ /**
3315
+ * Last edited timestamp. Accepts `Date` or an ISO-8601 string so host apps
3316
+ * can forward backend payloads verbatim without pre-parsing.
3317
+ */
3318
+ lastEdited: Date | string;
3319
+ };
3320
+
3263
3321
  /** Data returned by a metric item's fetchData */
3264
3322
  export declare interface DashboardMetricData {
3265
3323
  /** The main numeric value displayed in large text */
@@ -4175,6 +4233,7 @@ export declare const defaultTranslations: {
4175
4233
  readonly unsavedChanges: "Unsaved changes";
4176
4234
  readonly saveChanges: "Save changes";
4177
4235
  readonly discardChanges: "Discard";
4236
+ readonly saveAsChanges: "Save as";
4178
4237
  readonly exportTable: "Download table";
4179
4238
  readonly generatedTableFilename: "OneGeneratedTable";
4180
4239
  readonly feedbackModal: {
@@ -4224,6 +4283,7 @@ export declare const defaultTranslations: {
4224
4283
  };
4225
4284
  readonly reportCard: {
4226
4285
  readonly reportLabel: "Report";
4286
+ readonly tableLabel: "Table";
4227
4287
  readonly openButton: "Open";
4228
4288
  };
4229
4289
  readonly formCard: {
@@ -4232,6 +4292,7 @@ export declare const defaultTranslations: {
4232
4292
  readonly dashboard: {
4233
4293
  readonly save: "Save";
4234
4294
  readonly saveToAnalytics: "Save the dashboard in Analytics";
4295
+ readonly saveTableToAnalytics: "Save the table in Analytics";
4235
4296
  readonly saveAs: "Save as";
4236
4297
  readonly saveDialog: {
4237
4298
  readonly title: "Save dashboard";
@@ -4241,12 +4302,21 @@ export declare const defaultTranslations: {
4241
4302
  readonly save: "Save";
4242
4303
  readonly cancel: "Cancel";
4243
4304
  };
4305
+ readonly status: {
4306
+ readonly saved: "Saved";
4307
+ readonly draft: "Draft";
4308
+ readonly unsaved: "Unsaved";
4309
+ };
4310
+ readonly statusLabel: "Status";
4311
+ readonly lastEdited: "Last edited";
4312
+ readonly createdBy: "Created by";
4244
4313
  };
4245
4314
  readonly dataDownload: {
4246
4315
  readonly title: "Download";
4247
4316
  readonly download: "Download {{format}}";
4248
4317
  readonly exportDashboard: "Export dashboard as {{format}}";
4249
- readonly exporting: "Exporting...";
4318
+ readonly export: "Export";
4319
+ readonly exporting: "Exporting…";
4250
4320
  readonly rows: "{{amount}} rows";
4251
4321
  };
4252
4322
  readonly dashboardItem: {
@@ -4263,18 +4333,6 @@ export declare const defaultTranslations: {
4263
4333
  readonly controls: "← → to move";
4264
4334
  readonly escToExit: "Esc to exit";
4265
4335
  };
4266
- readonly dino: {
4267
- readonly title: "One Run";
4268
- readonly tapToStart: "Press Space or tap to start";
4269
- readonly gameOver: "Game over";
4270
- readonly pressToRestart: "Space to restart";
4271
- readonly score: "Score";
4272
- readonly yourScore: "Your score";
4273
- readonly newRecord: "New record!";
4274
- readonly hi: "HI";
4275
- readonly controls: "Space to jump · ↓ to crouch";
4276
- readonly escToExit: "Esc to exit";
4277
- };
4278
4336
  readonly creditWarning: {
4279
4337
  readonly soft: "You're running low on AI credits.";
4280
4338
  readonly getCredits: "Get credits";
@@ -13623,6 +13681,11 @@ declare module "gridstack" {
13623
13681
  }
13624
13682
 
13625
13683
 
13684
+ declare namespace Calendar {
13685
+ var displayName: string;
13686
+ }
13687
+
13688
+
13626
13689
  declare module "@tiptap/core" {
13627
13690
  interface Commands<ReturnType> {
13628
13691
  aiBlock: {
@@ -13670,8 +13733,3 @@ declare module "@tiptap/core" {
13670
13733
  };
13671
13734
  }
13672
13735
  }
13673
-
13674
-
13675
- declare namespace Calendar {
13676
- var displayName: string;
13677
- }
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { fz as Or, a6 as se, bU as Tn, O as P, P as ht, fA as Mr, W as yt, dG as zo, aS as Yi, fB as Io, a7 as zr, a8 as de, u as oe, ar as he, fq as Ut, U as Bo, ac as Po, M as Ir, fC as un, aO as Oe, aL as hi, fD as Ho, fE as Wo, fF as qo, fG as Ji, a0 as Go, fH as $o, fI as Br, fJ as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fK as Hr, fL as Uo, eg as Vo, fM as Zi, ef as Qo, fN as Ko, fO as wt, fP as Vt, fQ as Xo, fR as Wr, fS as Yo, fT as Jo, fU as An, fV as Zo, fW as ea, R as We, b0 as ta, d4 as si, d3 as qr, fX as na, fY as pi, cn as ia, fZ as ra, f_ as Gr, f$ as Ln, g0 as sa, g1 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g2 as ca, aR as On, g3 as $r, g4 as da, g5 as ua, g6 as ha, g7 as fa, cB as ma, m as ga, dq as pa, aq as jr, f5 as ft, g8 as Ur, f3 as Vr, g9 as mn, ga as Qr, ch as Kr, gb as Xr, as as bi, at as yi, gc as xi, aw as wi, aB as De, gd as Ci, aD as xt, ge as At, gf as Lt, av as Ot, gg as Mt, gh as va, gi as Zt, gj as Yr, gk as gn, bM as Pt, gl as _e, cs as ba, gm as Jr, gn as ya, go as pn, cr as xa, cq as wa, gp as Ca, gq as Sa, bO as Mn, aE as zn, gr as Zr, bJ as Si, bP as Ei, bc as Ea, gs as Ae, gt as Na, gu as _a, gv as es, gw as In, gx as Da, gy as Ra, cj as ts, gz as ka, gA as Ta, gB as Fa, gC as Aa, bp as ns, bv as La, ft as Oa, fu as Ma, fw as za, gD as is, bW as Ia, b_ as Ba, gE as er, c5 as Pa, gF as rs, gG as Ha, gH as Wa } from "./F0AiChat-BoBl_LAm.js";
2
- import { hl as Lf, gM as Of, co as Mf, l as zf, hz as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hc as Gf, b as $f, gZ as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gJ as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gT as nm, gX as im, gK as rm, gY as sm, g_ as om, h0 as am, hE as lm, bx as cm, n as dm, hw as um, b5 as hm, $ as fm, hg as mm, bB as gm, hh as pm, hj as vm, hk as bm, d1 as ym, c$ as xm, d as wm, gN as Cm, hm as Sm, gO as Em, gP as Nm, gQ as _m, cN as Dm, cO as Rm, gI as km, gR as Tm, hD as Fm, gS as Am, bu as Lm, d0 as Om, hi as Mm, cP as zm, cm as Im, hF as Bm, gU as Pm, gV as Hm, gW as Wm, gL as qm, cQ as Gm, hy as $m, hr as jm, he as Um, h5 as Vm, h4 as Qm, h3 as Km, hb as Xm, hu as Ym, g as Jm, hq as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, ha as rg, cI as sg, h6 as og, hp as ag, ho as lg, h7 as cg, cw as dg, cK as ug, h1 as hg, h2 as fg, h8 as mg, c as gg, hn as pg, hs as vg, h as bg, hA as yg, hB as xg, hC as wg, bq as Cg, hd as Sg, g$ as Eg, hf as Ng, e as _g, hx as Dg, ht as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h9 as Lg, hv as Og, f as Mg, hG as zg } from "./F0AiChat-BoBl_LAm.js";
1
+ import { fA as Or, a6 as se, bU as Tn, O as P, P as ht, fB as Mr, W as yt, dH as zo, aS as Yi, fC as Io, a7 as zr, a8 as de, u as oe, ar as he, fr as Ut, U as Bo, ac as Po, M as Ir, fD as un, aO as Oe, aL as hi, fE as Ho, fF as Wo, fG as qo, fH as Ji, a0 as Go, fI as $o, fJ as Br, fK as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cS as hn, fL as Hr, fM as Uo, eh as Vo, fN as Zi, eg as Qo, fO as Ko, fP as wt, fQ as Vt, fR as Xo, fS as Wr, fT as Yo, fU as Jo, fV as An, fW as Zo, fX as ea, R as We, b0 as ta, d5 as si, d4 as qr, fY as na, fZ as pi, cn as ia, f_ as ra, f$ as Gr, g0 as Ln, g1 as sa, g2 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g3 as ca, aR as On, fo as bi, g4 as $r, g5 as da, g6 as ua, g7 as ha, g8 as fa, cC as ma, m as ga, dr as pa, aq as jr, f6 as ft, g9 as Ur, f4 as Vr, ga as mn, gb as Qr, ch as Kr, gc as Xr, as as yi, at as xi, gd as wi, aw as Ci, aB as De, ge as Si, aD as xt, gf as At, gg as Lt, av as Ot, gh as Mt, gi as va, gj as Zt, gk as Yr, gl as gn, bM as Pt, gm as _e, cs as ba, gn as Jr, go as ya, gp as pn, cr as xa, cq as wa, gq as Ca, gr as Sa, bO as Mn, aE as zn, gs as Zr, bJ as Ei, bP as Ni, bc as Ea, gt as Ae, gu as Na, gv as _a, gw as es, gx as In, gy as Da, gz as Ra, cx as ts, cj as ns, gA as ka, gB as Ta, gC as Fa, gD as Aa, bp as is, bv as La, fu as Oa, fv as Ma, fx as za, gE as rs, bW as Ia, b_ as Ba, gF as er, c5 as Pa, gG as ss, gH as Ha, gI as Wa } from "./F0AiChat-8fybwXzd.js";
2
+ import { hm as Lf, gN as Of, co as Mf, l as zf, hA as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hd as Gf, b as $f, g_ as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gK as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gU as nm, gY as im, gL as rm, gZ as sm, g$ as om, h1 as am, hF as lm, bx as cm, n as dm, hx as um, b5 as hm, $ as fm, hh as mm, bB as gm, hi as pm, hk as vm, hl as bm, d2 as ym, d0 as xm, d as wm, gO as Cm, hn as Sm, gP as Em, gQ as Nm, gR as _m, cO as Dm, cP as Rm, gJ as km, gS as Tm, hE as Fm, gT as Am, bu as Lm, d1 as Om, hj as Mm, cQ as zm, cm as Im, hG as Bm, gV as Pm, gW as Hm, gX as Wm, gM as qm, cR as Gm, hz as $m, hs as jm, hf as Um, h6 as Vm, h5 as Qm, h4 as Km, hc as Xm, hv as Ym, g as Jm, hr as Zm, bs as eg, cN as tg, cK as ng, cM as ig, hb as rg, cJ as sg, h7 as og, hq as ag, hp as lg, h8 as cg, cw as dg, cL as ug, h2 as hg, h3 as fg, h9 as mg, c as gg, ho as pg, ht as vg, h as bg, hB as yg, hC as xg, hD as wg, bq as Cg, he as Sg, h0 as Eg, hg as Ng, e as _g, hy as Dg, hu as Rg, j as kg, i as Tg, bV as Fg, T as Ag, ha as Lg, hw as Og, f as Mg, hH as zg } from "./F0AiChat-8fybwXzd.js";
3
3
  import { jsx as l, jsxs as C, Fragment as we } from "react/jsx-runtime";
4
- import ae, { forwardRef as qe, useRef as W, useImperativeHandle as qa, Children as vn, createContext as Qe, useContext as Re, useState as j, useMemo as B, useEffect as V, useCallback as I, useLayoutEffect as oi, createElement as en, isValidElement as ss, Fragment as Ga, memo as os, useReducer as $a, cloneElement as ja, useId as as } from "react";
5
- import { g as Ua, h as Va } from "./types-Cc9C2iNK.js";
6
- import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-Cc9C2iNK.js";
7
- import { createPortal as ls, unstable_batchedUpdates as tn } from "react-dom";
8
- import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-DMB7wOHp.js";
9
- import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-DMB7wOHp.js";
4
+ import ae, { forwardRef as qe, useRef as W, useImperativeHandle as qa, Children as vn, createContext as Qe, useContext as Re, useState as j, useMemo as B, useEffect as V, useCallback as I, useLayoutEffect as oi, createElement as en, isValidElement as os, Fragment as Ga, memo as as, useReducer as $a, cloneElement as ja, useId as ls } from "react";
5
+ import { g as Ua, h as Va } from "./types-P8YgnkYR.js";
6
+ import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-P8YgnkYR.js";
7
+ import { createPortal as cs, unstable_batchedUpdates as tn } from "react-dom";
8
+ import { C as Qa, D as Ka, y as Xa, j as Ya } from "./index-DLIosSvl.js";
9
+ import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, v as tp, w as np, N as ip, x as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, u as up, t as hp } from "./index-DLIosSvl.js";
10
10
  import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const Ja = {
12
12
  xs: 1,
@@ -515,7 +515,7 @@ function ul() {
515
515
  const { _reactContentMap: n } = hs(), { getWidgetContainer: e } = cl();
516
516
  return /* @__PURE__ */ l(we, { children: Array.from(n.value.entries()).map(([t, i]) => {
517
517
  const r = e(t);
518
- return r ? /* @__PURE__ */ l(dl.Provider, { value: { widget: { id: t } }, children: i && ls(i, r) }, t) : (console.error(`Widget container not found for widget ${t}`), null);
518
+ return r ? /* @__PURE__ */ l(dl.Provider, { value: { widget: { id: t } }, children: i && cs(i, r) }, t) : (console.error(`Widget container not found for widget ${t}`), null);
519
519
  }) });
520
520
  }
521
521
  function hl(n, e, t, i, r) {
@@ -4641,7 +4641,7 @@ const Rl = ({
4641
4641
  }, kl = bl(
4642
4642
  "BlockContent",
4643
4643
  Rl
4644
- ), Tl = (n) => !ss(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, Fl = (n) => !ss(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, bs = (n, e, t) => {
4644
+ ), Tl = (n) => !os(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutBlock" in n.type, Fl = (n) => !os(n) || !n.type || typeof n.type == "string" || typeof n.type == "symbol" ? !1 : "__isPageLayoutGroup" in n.type, bs = (n, e, t) => {
4645
4645
  const i = vn.toArray(e);
4646
4646
  for (const r of i)
4647
4647
  t.includes("block") && Tl(r) || t.includes("group") && Fl(r) || console.warn(
@@ -5045,7 +5045,7 @@ function jl(n) {
5045
5045
  id: a,
5046
5046
  announcement: o
5047
5047
  }));
5048
- return t ? ls(c, t) : c;
5048
+ return t ? cs(c, t) : c;
5049
5049
  }
5050
5050
  var pe;
5051
5051
  (function(n) {
@@ -6693,7 +6693,7 @@ var dt;
6693
6693
  (function(n) {
6694
6694
  n[n.Uninitialized = 0] = "Uninitialized", n[n.Initializing = 1] = "Initializing", n[n.Initialized = 2] = "Initialized";
6695
6695
  })(dt || (dt = {}));
6696
- const jc = /* @__PURE__ */ os(function(e) {
6696
+ const jc = /* @__PURE__ */ as(function(e) {
6697
6697
  var t, i, r, s;
6698
6698
  let {
6699
6699
  id: o,
@@ -9349,7 +9349,7 @@ function Ee({
9349
9349
  hideLabel: c,
9350
9350
  initialFiles: h
9351
9351
  }) {
9352
- const f = as(), m = d ?? (n.validation ? Wr(n.validation) : !1), p = !c && n.type !== "checkbox" && n.type !== "custom", v = {
9352
+ const f = ls(), m = d ?? (n.validation ? Wr(n.validation) : !1), p = !c && n.type !== "checkbox" && n.type !== "custom", v = {
9353
9353
  value: e,
9354
9354
  onChange: t,
9355
9355
  onBlur: i ?? (() => {
@@ -10294,10 +10294,10 @@ const bf = se(ho), uu = ({
10294
10294
  primaryAction: a,
10295
10295
  secondaryActions: d,
10296
10296
  otherActions: u
10297
- } = n, c = as(), h = o?.some(Boolean), f = a || d && d.length > 0 || u && u.length > 0;
10297
+ } = n, c = ls(), h = o?.some(Boolean), f = a || d && d.length > 0 || u && u.length > 0;
10298
10298
  return /* @__PURE__ */ C(Wi, { status: e, isLast: t, hideStatus: i, children: [
10299
10299
  /* @__PURE__ */ l("div", { className: "flex min-h-8 items-center gap-3", children: /* @__PURE__ */ l(hu, { props: n, contentId: c }) }),
10300
- o && h && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(Ni, { items: o }) }),
10300
+ o && h && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(bi, { items: o }) }),
10301
10301
  r && /* @__PURE__ */ l("div", { id: c, role: "region", className: "flex flex-col gap-0 pl-4", children: s.map((m, p) => /* @__PURE__ */ l(gu, { props: m }, `${m.title}-${p}`)) }),
10302
10302
  f && /* @__PURE__ */ l("div", { className: "pl-9", children: /* @__PURE__ */ l(
10303
10303
  fo,
@@ -10311,7 +10311,7 @@ const bf = se(ho), uu = ({
10311
10311
  }, pu = ({ props: n }) => {
10312
10312
  const { metadata: e, primaryAction: t, secondaryActions: i, otherActions: r } = n, s = e?.some(Boolean), o = t || i && i.length > 0 || r && r.length > 0;
10313
10313
  return /* @__PURE__ */ C("div", { className: "pl-9", children: [
10314
- e && s && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(Ni, { items: e }) }),
10314
+ e && s && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(bi, { items: e }) }),
10315
10315
  o && /* @__PURE__ */ l("div", { className: "mb-3", children: /* @__PURE__ */ l(
10316
10316
  fo,
10317
10317
  {
@@ -10338,7 +10338,7 @@ const bf = se(ho), uu = ({
10338
10338
  ),
10339
10339
  r && /* @__PURE__ */ l(qt, { content: r, variant: "description" })
10340
10340
  ] }),
10341
- /* @__PURE__ */ l("div", { className: "flex justify-end items-center gap-3 pl-9", children: e === "completed" && s && o && /* @__PURE__ */ l(Ni, { items: s }) })
10341
+ /* @__PURE__ */ l("div", { className: "flex justify-end items-center gap-3 pl-9", children: e === "completed" && s && o && /* @__PURE__ */ l(bi, { items: s }) })
10342
10342
  ] });
10343
10343
  }, go = ({ props: n }) => {
10344
10344
  const { status: e, isLast: t = !1, hideStatus: i = !1 } = n;
@@ -10643,7 +10643,7 @@ const Sf = se(
10643
10643
  ),
10644
10644
  /* @__PURE__ */ l("span", { className: "font-medium", children: n.t("surveyFormBuilder.labels.applyingChanges") })
10645
10645
  ] });
10646
- }, Au = os(Fu);
10646
+ }, Au = as(Fu);
10647
10647
  var Lu = Dd();
10648
10648
  const yr = /* @__PURE__ */ pa(Lu), bo = (n) => {
10649
10649
  switch (n) {
@@ -11083,20 +11083,20 @@ const $i = () => {
11083
11083
  o.filter((f) => !!f.datasetKey).map((f) => f.datasetKey)
11084
11084
  )
11085
11085
  );
11086
- return n || e ? null : /* @__PURE__ */ l("div", { className: "ml-6 flex justify-center", children: /* @__PURE__ */ C(bi, { open: r, onOpenChange: s, children: [
11087
- /* @__PURE__ */ l(yi, { asChild: !0, children: /* @__PURE__ */ l(
11086
+ return n || e ? null : /* @__PURE__ */ l("div", { className: "ml-6 flex justify-center", children: /* @__PURE__ */ C(yi, { open: r, onOpenChange: s, children: [
11087
+ /* @__PURE__ */ l(xi, { asChild: !0, children: /* @__PURE__ */ l(
11088
11088
  Ce,
11089
11089
  {
11090
- icon: xi,
11090
+ icon: wi,
11091
11091
  label: a("surveyFormBuilder.actions.addQuestion"),
11092
11092
  size: "md",
11093
11093
  variant: "outline",
11094
11094
  hideLabel: !0
11095
11095
  }
11096
11096
  ) }),
11097
- /* @__PURE__ */ C(wi, { align: "center", className: "w-80", children: [
11097
+ /* @__PURE__ */ C(Ci, { align: "center", className: "w-80", children: [
11098
11098
  /* @__PURE__ */ l(De, { onClick: u, children: /* @__PURE__ */ C("div", { className: "flex w-full flex-row items-center gap-2", children: [
11099
- /* @__PURE__ */ l(he, { icon: Ci, color: "default" }),
11099
+ /* @__PURE__ */ l(he, { icon: Si, color: "default" }),
11100
11100
  /* @__PURE__ */ l("span", { className: "flex-1 text-base font-medium", children: a("surveyFormBuilder.questionTypes.section") })
11101
11101
  ] }) }),
11102
11102
  /* @__PURE__ */ l(xt, {}),
@@ -11452,8 +11452,8 @@ function qu({
11452
11452
  questionType: i,
11453
11453
  canDelete: r
11454
11454
  });
11455
- return /* @__PURE__ */ C(bi, { open: n, onOpenChange: e, children: [
11456
- /* @__PURE__ */ l(yi, { tabIndex: -1, asChild: !0, children: /* @__PURE__ */ l(
11455
+ return /* @__PURE__ */ C(yi, { open: n, onOpenChange: e, children: [
11456
+ /* @__PURE__ */ l(xi, { tabIndex: -1, asChild: !0, children: /* @__PURE__ */ l(
11457
11457
  Ce,
11458
11458
  {
11459
11459
  icon: un,
@@ -11464,7 +11464,7 @@ function qu({
11464
11464
  hideLabel: !0
11465
11465
  }
11466
11466
  ) }),
11467
- /* @__PURE__ */ C(wi, { className: "w-80", align: "start", children: [
11467
+ /* @__PURE__ */ C(Ci, { className: "w-80", align: "start", children: [
11468
11468
  /* @__PURE__ */ l(va, { className: "p-4 pb-2 font-medium text-f1-foreground-secondary", children: s("surveyFormBuilder.labels.questionOptions") }),
11469
11469
  !f && /* @__PURE__ */ l(Zt, { children: /* @__PURE__ */ l(
11470
11470
  wr,
@@ -11678,25 +11678,25 @@ const Sr = {
11678
11678
  b && "opacity-100"
11679
11679
  ),
11680
11680
  children: /* @__PURE__ */ C(
11681
- bi,
11681
+ yi,
11682
11682
  {
11683
11683
  open: b,
11684
11684
  onOpenChange: w,
11685
11685
  children: [
11686
- /* @__PURE__ */ l(yi, { asChild: !0, children: /* @__PURE__ */ l(
11686
+ /* @__PURE__ */ l(xi, { asChild: !0, children: /* @__PURE__ */ l(
11687
11687
  Ce,
11688
11688
  {
11689
- icon: xi,
11689
+ icon: wi,
11690
11690
  label: x("surveyFormBuilder.actions.addQuestion"),
11691
11691
  size: "sm",
11692
11692
  variant: "outline",
11693
11693
  hideLabel: !0
11694
11694
  }
11695
11695
  ) }),
11696
- /* @__PURE__ */ C(wi, { align: "center", className: "w-80", children: [
11696
+ /* @__PURE__ */ C(Ci, { align: "center", className: "w-80", children: [
11697
11697
  !g && /* @__PURE__ */ C(we, { children: [
11698
11698
  /* @__PURE__ */ l(De, { onClick: F, children: /* @__PURE__ */ C("div", { className: "flex w-full flex-row items-center gap-2", children: [
11699
- /* @__PURE__ */ l(he, { icon: Ci, color: "default" }),
11699
+ /* @__PURE__ */ l(he, { icon: Si, color: "default" }),
11700
11700
  /* @__PURE__ */ l("span", { className: "flex-1 text-base font-medium", children: x("surveyFormBuilder.questionTypes.section") })
11701
11701
  ] }) }),
11702
11702
  /* @__PURE__ */ l(xt, {})
@@ -12366,7 +12366,7 @@ const th = {
12366
12366
  };
12367
12367
  return o ? null : /* @__PURE__ */ l(ce, { ...e, children: /* @__PURE__ */ C("div", { className: "-mx-0.5 flex flex-col items-start [&>div]:w-full", children: [
12368
12368
  /* @__PURE__ */ l(Gi, { children: /* @__PURE__ */ l(
12369
- Si,
12369
+ Ei,
12370
12370
  {
12371
12371
  axis: "y",
12372
12372
  values: n,
@@ -12398,7 +12398,7 @@ const th = {
12398
12398
  {
12399
12399
  label: u("surveyFormBuilder.selectQuestion.addOption"),
12400
12400
  variant: "ghost",
12401
- icon: xi,
12401
+ icon: wi,
12402
12402
  onClick: p
12403
12403
  }
12404
12404
  ) })
@@ -12482,7 +12482,7 @@ const th = {
12482
12482
  showEndOfSection: e,
12483
12483
  className: t
12484
12484
  }) => {
12485
- const { isDragging: i, setIsDragging: r, setDraggedItemId: s, draggedItemId: o } = Nt(), a = Ei(), { disabled: d, answering: u, getSectionContainingQuestion: c } = ue(), h = c(n.question.id), f = !!h && o === h.id, m = () => {
12485
+ const { isDragging: i, setIsDragging: r, setDraggedItemId: s, draggedItemId: o } = Nt(), a = Ni(), { disabled: d, answering: u, getSectionContainingQuestion: c } = ue(), h = c(n.question.id), f = !!h && o === h.id, m = () => {
12486
12486
  r(!0), s(n.question.id);
12487
12487
  }, p = () => {
12488
12488
  r(!1), s(null);
@@ -12538,7 +12538,7 @@ const th = {
12538
12538
  }
12539
12539
  );
12540
12540
  }, oh = ({ question: n }) => {
12541
- const { isDragging: e, setIsDragging: t, setDraggedItemId: i } = Nt(), r = Ei(), { disabled: s, answering: o, getSectionContainingQuestion: a } = ue(), d = a(n.id), u = () => {
12541
+ const { isDragging: e, setIsDragging: t, setDraggedItemId: i } = Nt(), r = Ni(), { disabled: s, answering: o, getSectionContainingQuestion: a } = ue(), d = a(n.id), u = () => {
12542
12542
  t(!0), i(n.id);
12543
12543
  }, c = () => {
12544
12544
  t(!1), i(null);
@@ -12713,7 +12713,7 @@ const th = {
12713
12713
  ] }),
12714
12714
  !s && /* @__PURE__ */ C(we, { children: [
12715
12715
  /* @__PURE__ */ l(Gi, { children: /* @__PURE__ */ l(
12716
- Si,
12716
+ Ei,
12717
12717
  {
12718
12718
  axis: "y",
12719
12719
  values: i,
@@ -12735,7 +12735,7 @@ const th = {
12735
12735
  item: n,
12736
12736
  className: e
12737
12737
  }) => {
12738
- const { isDragging: t, setIsDragging: i, setDraggedItemId: r, draggedItemId: s } = Nt(), o = Ei(), { disabled: a, answering: d } = ue(), u = s === n.section.id, c = () => {
12738
+ const { isDragging: t, setIsDragging: i, setDraggedItemId: r, draggedItemId: s } = Nt(), o = Ni(), { disabled: a, answering: d } = ue(), u = s === n.section.id, c = () => {
12739
12739
  i(!0), r(n.section.id);
12740
12740
  }, h = () => {
12741
12741
  i(!1), r(null);
@@ -12920,7 +12920,7 @@ const th = {
12920
12920
  return {
12921
12921
  id: _,
12922
12922
  label: y.title || t,
12923
- icon: Ci,
12923
+ icon: Si,
12924
12924
  onClick: S,
12925
12925
  ...!v && !g && !y.locked && {
12926
12926
  otherActions: [
@@ -13313,7 +13313,7 @@ const bh = ({
13313
13313
  exit: { filter: "blur(0px)" },
13314
13314
  children: [
13315
13315
  /* @__PURE__ */ l(
13316
- Si,
13316
+ Ei,
13317
13317
  {
13318
13318
  axis: "y",
13319
13319
  values: h,
@@ -14308,7 +14308,7 @@ function Ah({
14308
14308
  ),
14309
14309
  children: [
14310
14310
  /* @__PURE__ */ l("div", { className: "mb-6", children: /* @__PURE__ */ l(
14311
- cs,
14311
+ ts,
14312
14312
  {
14313
14313
  title: i,
14314
14314
  description: r,
@@ -14325,7 +14325,7 @@ function Ah({
14325
14325
  alignItems: "center",
14326
14326
  paddingX: "lg",
14327
14327
  children: /* @__PURE__ */ l(
14328
- ts,
14328
+ ns,
14329
14329
  {
14330
14330
  emoji: L.emoji,
14331
14331
  title: L.title,
@@ -14408,7 +14408,7 @@ function Lh({
14408
14408
  datasets: d,
14409
14409
  children: /* @__PURE__ */ C("div", { className: "mx-auto flex w-full max-w-3xl flex-col", children: [
14410
14410
  /* @__PURE__ */ l("div", { className: "mb-6", children: /* @__PURE__ */ l(
14411
- cs,
14411
+ ts,
14412
14412
  {
14413
14413
  title: e,
14414
14414
  description: t,
@@ -14437,7 +14437,7 @@ function Lh({
14437
14437
  alignItems: "center",
14438
14438
  paddingX: "lg",
14439
14439
  children: /* @__PURE__ */ l(
14440
- ts,
14440
+ ns,
14441
14441
  {
14442
14442
  emoji: f.emoji,
14443
14443
  title: f.title,
@@ -14485,7 +14485,7 @@ const Oh = ({ benefits: n }) => /* @__PURE__ */ l("div", { className: "flex flex
14485
14485
  /* @__PURE__ */ C("div", { className: "flex flex-col gap-5", children: [
14486
14486
  /* @__PURE__ */ C("div", { className: "flex flex-col gap-2", children: [
14487
14487
  /* @__PURE__ */ C("div", { className: "flex flex-row items-center gap-2", children: [
14488
- s && /* @__PURE__ */ l(ns, { module: s }),
14488
+ s && /* @__PURE__ */ l(is, { module: s }),
14489
14489
  o && /* @__PURE__ */ l("p", { className: "text-base font-medium text-f1-foreground", children: o })
14490
14490
  ] }),
14491
14491
  (a || d) && /* @__PURE__ */ C("div", { className: "flex justify-start gap-2", children: [
@@ -14531,7 +14531,7 @@ function Ih({
14531
14531
  children: [
14532
14532
  /* @__PURE__ */ C("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
14533
14533
  /* @__PURE__ */ C(za, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
14534
- r && /* @__PURE__ */ l(ns, { module: r, size: "lg" }),
14534
+ r && /* @__PURE__ */ l(is, { module: r, size: "lg" }),
14535
14535
  t
14536
14536
  ] }),
14537
14537
  /* @__PURE__ */ l(
@@ -14639,7 +14639,7 @@ function Bh({
14639
14639
  }
14640
14640
  ),
14641
14641
  T && b && /* @__PURE__ */ l(
14642
- is,
14642
+ rs,
14643
14643
  {
14644
14644
  open: !0,
14645
14645
  onClose: () => {
@@ -14714,7 +14714,7 @@ function Ph({
14714
14714
  ] }),
14715
14715
  a && /* @__PURE__ */ l(Pa, { className: "p-3", children: a.map(
14716
14716
  (m) => m.type === "upsell" ? /* @__PURE__ */ l(
14717
- rs,
14717
+ ss,
14718
14718
  {
14719
14719
  label: m.label,
14720
14720
  onRequest: m.onClick,
@@ -14742,7 +14742,7 @@ function Ph({
14742
14742
  const Hh = se(Ph), ko = qe(
14743
14743
  function({ primaryAction: e, secondaryAction: t, ...i }, r) {
14744
14744
  const s = (d) => d.variant === "promote" ? /* @__PURE__ */ l(
14745
- rs,
14745
+ ss,
14746
14746
  {
14747
14747
  label: d.label,
14748
14748
  onRequest: async () => {
@@ -14857,7 +14857,7 @@ function Wh({
14857
14857
  )
14858
14858
  ] }),
14859
14859
  R?.type === "upsell" && R.showConfirmation && S && /* @__PURE__ */ l(
14860
- is,
14860
+ rs,
14861
14861
  {
14862
14862
  open: !0,
14863
14863
  onClose: k,
@@ -14917,7 +14917,7 @@ export {
14917
14917
  Xf as F0AvatarFile,
14918
14918
  Yf as F0AvatarIcon,
14919
14919
  Jf as F0AvatarList,
14920
- ns as F0AvatarModule,
14920
+ is as F0AvatarModule,
14921
14921
  Zf as F0AvatarPerson,
14922
14922
  em as F0AvatarTeam,
14923
14923
  tf as F0BigNumber,
@@ -14978,7 +14978,7 @@ export {
14978
14978
  Dm as OneCalendar,
14979
14979
  Rm as OneCalendarInternal,
14980
14980
  Yi as OneEllipsis,
14981
- ts as OneEmptyState,
14981
+ ns as OneEmptyState,
14982
14982
  km as OneFilterPicker,
14983
14983
  sp as PieChart,
14984
14984
  Tm as PieChartSkeleton,
@@ -15000,9 +15000,9 @@ export {
15000
15000
  wf as Tag,
15001
15001
  Mm as TagCounter,
15002
15002
  Jh as TwoColumnLayout,
15003
- is as UpsellRequestResponseDialog,
15003
+ rs as UpsellRequestResponseDialog,
15004
15004
  Df as UpsellingBanner,
15005
- rs as UpsellingButton,
15005
+ ss as UpsellingButton,
15006
15006
  Rf as UpsellingPopover,
15007
15007
  cp as VerticalBarChart,
15008
15008
  zm as WeekStartDay,