@factorialco/f0-react 12.9.1 → 12.10.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/{ChatPostComposerDialog-CWTlUs36.js → ChatPostComposerDialog-DcmLrQk6.js} +2 -2
- package/dist/{CoachmarkProvider-BMunnTvE.js → CoachmarkProvider-XfLjB3dH.js} +27678 -27678
- package/dist/{DocumentToolbar-iHZHYbFM.js → DocumentToolbar-CqbY6eID.js} +2 -2
- package/dist/{DocxViewer-C1yw4Yqt.js → DocxViewer-CqHgSExq.js} +1 -1
- package/dist/{F0AiProcessingOverlay-cdj77_VP.js → F0AiProcessingOverlay-H23WHd7F.js} +1227 -1123
- package/dist/{F0CanvasPanel-DPEwyR89.js → F0CanvasPanel--hLKeQvg.js} +7639 -7637
- package/dist/{F0DocumentViewer-sRCjFb2O.js → F0DocumentViewer-BN-2IVgz.js} +5 -5
- package/dist/F0DocumentViewer-D1G3M2J_.js +3 -0
- package/dist/{F0Map-ZSo-alK8.js → F0Map-hvgCUGk8.js} +13 -6
- package/dist/{F0VideoPlayer-B1-tEFuq.js → F0VideoPlayer-CNp5hXgp.js} +275 -275
- package/dist/F0VideoPlayer-D4bZBBLK.js +1 -0
- package/dist/{Map-B_Hw6nIS.js → Map-eIXVKc1x.js} +6 -6
- package/dist/{PdfThumbnail-BWqOqM04.js → PdfThumbnail-CCSmwxQU.js} +1 -1
- package/dist/{SheetViewer-B8JTSi3B.js → SheetViewer-BN5UYkEZ.js} +3 -3
- package/dist/{TextViewer-CEZd1H8u.js → TextViewer-Bt0_dYB-.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +4494 -4306
- package/dist/{exports-BdFDYdp1.d.ts → exports-BByQBwpi.d.ts} +13 -2
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +171 -171
- package/dist/{index-DIwa_k8B.d.ts → index-D3nEDg8x.d.ts} +15 -1
- package/dist/{maplibre-BSY0r3_z.js → maplibre-Bywi9z2G.js} +1 -1
- package/dist/{pdfWorker-DRgGoc3T.js → pdfWorker-CKgxOaCl.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-hr47rxX3.d.ts → types-UMYBr8Mi.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-CzNVxjsJ.js +0 -3
- package/dist/F0VideoPlayer-B4Nu7ugx.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $n as t, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as ne, Pt as re, Qn as ie, Qr as ae, Qt as oe, Rn as se, Rt as L, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-
|
|
2
|
+
import { $n as t, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as ne, Pt as re, Qn as ie, Qr as ae, Qt as oe, Rn as se, Rt as L, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-XfLjB3dH.js";
|
|
3
3
|
import { A as pn, At as mn, B as hn, Dt as gn, F as _n, It as vn, Jt as yn, Lt as bn, M as xn, Mt as Sn, N as Cn, P as wn, R as Tn, U as En, V as Dn, Vt as On, Xt as kn, Yt as An, Zn as jn, _t as Mn, a as Nn, an as Pn, ar as R, b as z, cn as Fn, ct as In, dn as Ln, gn as Rn, gt as zn, hn as Bn, ht as Vn, i as Hn, in as B, ir as Un, j as Wn, jt as Gn, kt as Kn, ln as qn, lt as Jn, nn as Yn, nt as Xn, on as Zn, or as Qn, pt as $n, qt as er, rn as V, rr as tr, sn as nr, t as rr, tn as ir, ut as ar, vt as or, yt as sr, z as cr } from "./popover-BjrPOMeQ.js";
|
|
4
4
|
import { A as lr, C as ur, D as dr, F as fr, I as pr, L as H, M as mr, N as hr, O as gr, P as _r, R as vr, S as yr, _ as br, b as xr, c as Sr, f as Cr, g as wr, h as Tr, j as Er, k as Dr, l as Or, m as kr, p as Ar, v as jr, w as Mr, x as Nr, y as Pr } from "./tooltip-BX4dSfeL.js";
|
|
5
5
|
import { n as Fr, t as Ir } from "./F0Text-D92NWQRd.js";
|
|
6
|
-
import { A as Lr, C as Rr, D as zr, E as Br, F as Vr, I as Hr, L as Ur, M as Wr, N as Gr, O as Kr, P as qr, R as Jr, S as Yr, T as Xr, _ as Zr, a as Qr, b as $r, c as ei, d as ti, f as ni, g as ri, h as ii, i as ai, j as oi, k as si, l as ci, m as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi, v as _i, w as vi, x as yi, y as bi, z as xi } from "./F0AiProcessingOverlay-
|
|
7
|
-
import { $n as Si, $o as Ci,
|
|
6
|
+
import { A as Lr, C as Rr, D as zr, E as Br, F as Vr, I as Hr, L as Ur, M as Wr, N as Gr, O as Kr, P as qr, R as Jr, S as Yr, T as Xr, _ as Zr, a as Qr, b as $r, c as ei, d as ti, f as ni, g as ri, h as ii, i as ai, j as oi, k as si, l as ci, m as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi, v as _i, w as vi, x as yi, y as bi, z as xi } from "./F0AiProcessingOverlay-H23WHd7F.js";
|
|
7
|
+
import { $n as Si, $o as Ci, $s as wi, A as Ti, At as Ei, Ba as Di, Bn as Oi, Br as ki, Bs as Ai, Cr as ji, D as Mi, Ds as Ni, E as Pi, Fa as Fi, Fr as Ii, Gn as Li, Gr as Ri, Gs as zi, Hn as Bi, Hs as Vi, Ia as Hi, Ir as Ui, It as Wi, Jn as Gi, Js as Ki, Jt as qi, Kn as Ji, Kr as Yi, Ks as Xi, Kt as Zi, Lo as Qi, Lt as $i, M as ea, Ma as ta, Mr as na, Mt as ra, Nr as ia, Ns as aa, Nt as oa, O as sa, Ot as ca, Pa as la, Pt as ua, Qt as da, R as fa, Rr as pa, Rt as ma, T as ha, Tr as ga, Un as _a, Uo as va, Ur as ya, Us as ba, Va as xa, Vn as Sa, Vs as Ca, Wn as wa, Wr as Ta, Ws as Ea, Xa as Da, Xo as Oa, Xt as ka, Yn as Aa, Yr as ja, Yt as Ma, Za as Na, Zt as Pa, _a as Fa, ac as Ia, br as La, cc as Ra, er as za, es as Ba, fo as Va, fs as Ha, hr as Ua, io as Wa, ir as Ga, j as Ka, jr as qa, jt as Ja, k as Ya, ka as Xa, ks as Za, mr as Qa, n as $a, nr as eo, ns as to, oo as no, os as ro, po as io, qt as ao, rr as oo, sa as so, ss as co, t as lo, tr as uo, tt as fo, uo as po, va as mo, w as ho, xo as go, xr as _o, yr as vo, z as yo, zr as bo } from "./F0CanvasPanel--hLKeQvg.js";
|
|
8
8
|
import { t as xo } from "./i18n-provider-defaults-p0UGTA_k.js";
|
|
9
9
|
import { C as So, D as Co, F as wo, I as To, N as Eo, O as Do, S as Oo, V as ko, X as Ao, Z as jo, _ as Mo, a as No, d as Po, f as Fo, i as Io, k as Lo, l as Ro, n as zo, r as Bo, t as Vo, x as Ho, y as Uo } from "./useData-B7LYSzh0.js";
|
|
10
10
|
import { $ as Wo, B as Go, Bt as Ko, Ct as qo, Dn as Jo, Dr as Yo, Dt as Xo, Er as Zo, Fn as Qo, Ft as $o, G as es, H as ts, It as ns, J as rs, K as is, L as as, Ln as os, Lt as ss, Mr as cs, Mt as ls, Nr as us, Nt as ds, On as fs, Or as ps, Ot as ms, Pt as hs, Rt as gs, U as _s, V as vs, W as ys, X as bs, Z as xs, _ as Ss, _t as Cs, a as ws, an as Ts, c as Es, ct as Ds, dr as Os, et as ks, fr as As, g as js, gt as Ms, h as Ns, ht as Ps, i as Fs, jr as Is, jt as Ls, kn as Rs, kr as zs, kt as Bs, l as Vs, lr as Hs, m as Us, mr as Ws, mt as Gs, nt as Ks, o as qs, p as Js, pt as Ys, q as Xs, r as Zs, rn as Qs, s as $s, st as ec, t as tc, tt as nc, u as rc, v as ic, vr as ac, w as oc, wt as sc, xt as cc, y as lc, yt as uc, z as dc } from "./F0Select-B-ZxVjXG.js";
|
|
11
11
|
import { t as fc } from "./Check-DAp9gCRh.js";
|
|
12
|
-
import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-
|
|
13
|
-
import { t as vc } from "./pdfWorker-
|
|
14
|
-
import { n as yc, t as bc } from "./F0DocumentViewer-
|
|
12
|
+
import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-CNp5hXgp.js";
|
|
13
|
+
import { t as vc } from "./pdfWorker-CKgxOaCl.js";
|
|
14
|
+
import { n as yc, t as bc } from "./F0DocumentViewer-BN-2IVgz.js";
|
|
15
15
|
import * as U from "react";
|
|
16
16
|
import xc, { Children as Sc, Fragment as Cc, createContext as wc, forwardRef as Tc, isValidElement as Ec, memo as Dc, useCallback as W, useContext as Oc, useEffect as G, useId as kc, useImperativeHandle as Ac, useLayoutEffect as jc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Mc } from "react";
|
|
17
17
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -35,7 +35,7 @@ var Ic = {
|
|
|
35
35
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
36
36
|
children: e
|
|
37
37
|
}, t));
|
|
38
|
-
return /* @__PURE__ */ X(
|
|
38
|
+
return /* @__PURE__ */ X(xa, {
|
|
39
39
|
layout: "home",
|
|
40
40
|
children: /* @__PURE__ */ Z("div", {
|
|
41
41
|
ref: r,
|
|
@@ -69,7 +69,7 @@ var Ic = {
|
|
|
69
69
|
}), Rc = Bn({
|
|
70
70
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-page py-5",
|
|
71
71
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
72
|
-
}), zc = xc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
72
|
+
}), zc = xc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(xa, {
|
|
73
73
|
layout: "standard",
|
|
74
74
|
children: /* @__PURE__ */ X("section", {
|
|
75
75
|
ref: a,
|
|
@@ -2944,7 +2944,7 @@ var Il = jl("Dashboard", Fl), Ll = R(tr("Dashboard", Il)), Rl = Bn({
|
|
|
2944
2944
|
...l,
|
|
2945
2945
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2946
2946
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2947
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2947
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(mo, {
|
|
2948
2948
|
items: zl(d),
|
|
2949
2949
|
"data-testid": "actions-dropdown"
|
|
2950
2950
|
}) : null]
|
|
@@ -3129,7 +3129,7 @@ var Yl = Tc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3129
3129
|
})]
|
|
3130
3130
|
});
|
|
3131
3131
|
nu.displayName = "F0BigNumber";
|
|
3132
|
-
var iu =
|
|
3132
|
+
var iu = Xa(nu, ru), au = R(iu), ou = [
|
|
3133
3133
|
"default",
|
|
3134
3134
|
"outline",
|
|
3135
3135
|
"neutral"
|
|
@@ -3691,7 +3691,7 @@ var dd = Bn({
|
|
|
3691
3691
|
du(t)
|
|
3692
3692
|
]
|
|
3693
3693
|
}), pd = ({ isPlaying: e, disabled: t, size: n = "md", onToggle: r }) => {
|
|
3694
|
-
let i = V(), a = e ?
|
|
3694
|
+
let i = V(), a = e ? io : Va;
|
|
3695
3695
|
return /* @__PURE__ */ X("button", {
|
|
3696
3696
|
type: "button",
|
|
3697
3697
|
"aria-label": e ? i.audioPlayer.pause : i.audioPlayer.play,
|
|
@@ -3707,7 +3707,7 @@ var dd = Bn({
|
|
|
3707
3707
|
children: /* @__PURE__ */ X(z, {
|
|
3708
3708
|
variant: "ghost",
|
|
3709
3709
|
size: "sm",
|
|
3710
|
-
icon:
|
|
3710
|
+
icon: Ni,
|
|
3711
3711
|
label: c.audioPlayer.options,
|
|
3712
3712
|
hideLabel: !0,
|
|
3713
3713
|
disabled: r
|
|
@@ -4208,13 +4208,13 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4208
4208
|
disabled: e.disabled,
|
|
4209
4209
|
ariaLabel: e.ariaLabel
|
|
4210
4210
|
}, t);
|
|
4211
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
4211
|
+
case "dropdown": return /* @__PURE__ */ X(mo, {
|
|
4212
4212
|
items: e.items,
|
|
4213
4213
|
disabled: e.disabled,
|
|
4214
4214
|
children: /* @__PURE__ */ X(z, {
|
|
4215
4215
|
variant: "outline",
|
|
4216
4216
|
size: "sm",
|
|
4217
|
-
icon:
|
|
4217
|
+
icon: Ni,
|
|
4218
4218
|
label: e.ariaLabel,
|
|
4219
4219
|
hideLabel: !0,
|
|
4220
4220
|
disabled: e.disabled
|
|
@@ -4224,7 +4224,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4224
4224
|
})
|
|
4225
4225
|
}), kd = ({ item: e, open: t, onOpenChange: n }) => {
|
|
4226
4226
|
let r = Sn(), i = V().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
4227
|
-
return /* @__PURE__ */ X(
|
|
4227
|
+
return /* @__PURE__ */ X(ya, {
|
|
4228
4228
|
open: t,
|
|
4229
4229
|
onOpenChange: n,
|
|
4230
4230
|
asChild: !0,
|
|
@@ -4232,7 +4232,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4232
4232
|
className: "flex flex-col",
|
|
4233
4233
|
children: [/* @__PURE__ */ Z("div", {
|
|
4234
4234
|
className: "flex items-center",
|
|
4235
|
-
children: [/* @__PURE__ */ X(
|
|
4235
|
+
children: [/* @__PURE__ */ X(Ri, {
|
|
4236
4236
|
asChild: !0,
|
|
4237
4237
|
children: /* @__PURE__ */ X("button", {
|
|
4238
4238
|
type: "button",
|
|
@@ -4250,7 +4250,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4250
4250
|
children: e.summary
|
|
4251
4251
|
}) : null,
|
|
4252
4252
|
a ? /* @__PURE__ */ X(Od, { actions: e.actions }) : null,
|
|
4253
|
-
/* @__PURE__ */ X(
|
|
4253
|
+
/* @__PURE__ */ X(Ri, {
|
|
4254
4254
|
asChild: !0,
|
|
4255
4255
|
children: /* @__PURE__ */ X(z, {
|
|
4256
4256
|
variant: "outline",
|
|
@@ -4279,7 +4279,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4279
4279
|
},
|
|
4280
4280
|
transition: { duration: r ? 0 : .2 },
|
|
4281
4281
|
className: "overflow-hidden",
|
|
4282
|
-
children: /* @__PURE__ */ X(
|
|
4282
|
+
children: /* @__PURE__ */ X(Ta, {
|
|
4283
4283
|
forceMount: !0,
|
|
4284
4284
|
asChild: !0,
|
|
4285
4285
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4323,7 +4323,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4323
4323
|
});
|
|
4324
4324
|
});
|
|
4325
4325
|
jd.displayName = "F0Accordion";
|
|
4326
|
-
var Md = R(tr("F0Accordion",
|
|
4326
|
+
var Md = R(tr("F0Accordion", Xa(jd, Ad))), Nd = [
|
|
4327
4327
|
"info",
|
|
4328
4328
|
"warning",
|
|
4329
4329
|
"critical",
|
|
@@ -4394,9 +4394,9 @@ var Id = R(tr("F0ChipList", Fd)), Ld = [
|
|
|
4394
4394
|
"positive",
|
|
4395
4395
|
"transparent"
|
|
4396
4396
|
], Bd = {
|
|
4397
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
4397
|
+
get: async (e) => JSON.parse(localStorage.getItem(ga(e)) ?? "{}"),
|
|
4398
4398
|
set: async (e, t) => {
|
|
4399
|
-
localStorage.setItem(
|
|
4399
|
+
localStorage.setItem(ga(e), JSON.stringify(t));
|
|
4400
4400
|
}
|
|
4401
4401
|
}, Vd = ({ disableClose: e = !1, onClose: t, isOpen: n, children: i, position: a = "right", size: o = "md", primaryAction: s, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
4402
4402
|
let [b, x] = J(n);
|
|
@@ -4519,11 +4519,11 @@ var qd = Kd;
|
|
|
4519
4519
|
//#endregion
|
|
4520
4520
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
4521
4521
|
function Jd(e) {
|
|
4522
|
-
let t =
|
|
4522
|
+
let t = Pa(e).shape, n = [];
|
|
4523
4523
|
for (let [e, r] of Object.entries(t)) {
|
|
4524
|
-
let t = r, i =
|
|
4524
|
+
let t = r, i = ao(t);
|
|
4525
4525
|
if (!i) continue;
|
|
4526
|
-
let a =
|
|
4526
|
+
let a = Ma(t, i), o = nn(t, a), s = {
|
|
4527
4527
|
name: e,
|
|
4528
4528
|
type: a,
|
|
4529
4529
|
label: i.label,
|
|
@@ -4595,9 +4595,9 @@ function Xd(e) {
|
|
|
4595
4595
|
let r = {
|
|
4596
4596
|
...n,
|
|
4597
4597
|
...e
|
|
4598
|
-
}, i =
|
|
4598
|
+
}, i = Pa(t), a = [];
|
|
4599
4599
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
4600
|
-
let n =
|
|
4600
|
+
let n = ao(t);
|
|
4601
4601
|
n?.renderIf ? Yt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
4602
4602
|
}
|
|
4603
4603
|
return a;
|
|
@@ -4641,12 +4641,12 @@ var Qd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
4641
4641
|
modal: !0,
|
|
4642
4642
|
children: /* @__PURE__ */ Z("div", {
|
|
4643
4643
|
className: "flex flex-col gap-4 py-2",
|
|
4644
|
-
children: [/* @__PURE__ */ X(
|
|
4644
|
+
children: [/* @__PURE__ */ X(Fa, {
|
|
4645
4645
|
type: n,
|
|
4646
4646
|
size: "lg"
|
|
4647
4647
|
}), /* @__PURE__ */ Z("div", {
|
|
4648
4648
|
className: "flex flex-col gap-0.5",
|
|
4649
|
-
children: [/* @__PURE__ */ X(
|
|
4649
|
+
children: [/* @__PURE__ */ X(na, {
|
|
4650
4650
|
className: "text-xl sm:text-lg",
|
|
4651
4651
|
children: r
|
|
4652
4652
|
}), /* @__PURE__ */ X(se, {
|
|
@@ -5033,7 +5033,7 @@ var _f = () => {}, vf = ({ steps: e, children: t, isOpen: n, onClose: r = _f, ti
|
|
|
5033
5033
|
onClose: r
|
|
5034
5034
|
}), g = V(), _ = e[h.currentStep], y = h.currentStep === 0, b = h.currentStep === e.length - 1, x = b ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, S = _?.previousLabel ?? c ?? g.wizard.previous, C = K(() => ({
|
|
5035
5035
|
label: x,
|
|
5036
|
-
icon: b ? void 0 :
|
|
5036
|
+
icon: b ? void 0 : wi,
|
|
5037
5037
|
onClick: () => void h.goNext(),
|
|
5038
5038
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
5039
5039
|
loading: h.loading
|
|
@@ -5090,14 +5090,14 @@ vf.displayName = "F0Wizard", R(vf);
|
|
|
5090
5090
|
//#endregion
|
|
5091
5091
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
5092
5092
|
function yf(e) {
|
|
5093
|
-
let t =
|
|
5094
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
5093
|
+
let t = Pa(e).shape, n = Object.entries(t);
|
|
5094
|
+
return n.length !== 0 && n.every(([, e]) => ao(e)?.disabled === !0);
|
|
5095
5095
|
}
|
|
5096
5096
|
function bf(e, t) {
|
|
5097
5097
|
if (t) return Object.keys(t);
|
|
5098
|
-
let n =
|
|
5098
|
+
let n = Pa(e).shape, r = /* @__PURE__ */ new Set();
|
|
5099
5099
|
for (let e of Object.values(n)) {
|
|
5100
|
-
let t =
|
|
5100
|
+
let t = ao(e);
|
|
5101
5101
|
t?.section && r.add(t.section);
|
|
5102
5102
|
}
|
|
5103
5103
|
return Array.from(r);
|
|
@@ -5105,15 +5105,15 @@ function bf(e, t) {
|
|
|
5105
5105
|
function xf(e, t) {
|
|
5106
5106
|
let n = e.shape, r = {};
|
|
5107
5107
|
for (let [e, i] of Object.entries(n)) {
|
|
5108
|
-
let n =
|
|
5108
|
+
let n = ao(i);
|
|
5109
5109
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
5110
5110
|
}
|
|
5111
|
-
return
|
|
5111
|
+
return wa(r);
|
|
5112
5112
|
}
|
|
5113
5113
|
function Sf(e, t, n) {
|
|
5114
5114
|
let r = t ?? {};
|
|
5115
5115
|
if (n) return n({ data: r });
|
|
5116
|
-
let i =
|
|
5116
|
+
let i = Pa(e).shape;
|
|
5117
5117
|
return Object.entries(i).every(([e, t]) => {
|
|
5118
5118
|
if (t.isOptional()) return !0;
|
|
5119
5119
|
let n = r[e];
|
|
@@ -5339,7 +5339,7 @@ function Of({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
5339
5339
|
});
|
|
5340
5340
|
}
|
|
5341
5341
|
function kf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: u, allowStepSkipping: f, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
|
|
5342
|
-
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() =>
|
|
5342
|
+
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Pa(v), [v]), E = K(() => bf(v, y), [v, y]), D = W((e) => yf(xf(T, e)), [T]), O = Qe(), k = q(b ? { ...b } : {}), A = q(s ?? 0), j = W((e) => async () => {
|
|
5343
5343
|
await O.submit();
|
|
5344
5344
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
5345
5345
|
title: y?.[e]?.title ?? e,
|
|
@@ -5701,7 +5701,7 @@ var Lf = { open: If }, Rf = [
|
|
|
5701
5701
|
});
|
|
5702
5702
|
});
|
|
5703
5703
|
Jf.displayName = "F0Slider";
|
|
5704
|
-
var Yf = tr("F0Slider",
|
|
5704
|
+
var Yf = tr("F0Slider", Xa(R(Jf), Uf)), Xf = [
|
|
5705
5705
|
"completed",
|
|
5706
5706
|
"in-progress",
|
|
5707
5707
|
"not-started"
|
|
@@ -5969,7 +5969,7 @@ function mp(e) {
|
|
|
5969
5969
|
}
|
|
5970
5970
|
//#endregion
|
|
5971
5971
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
5972
|
-
var hp = Rn.create(
|
|
5972
|
+
var hp = Rn.create(ca), gp = Dc(() => {
|
|
5973
5973
|
let e = V();
|
|
5974
5974
|
return /* @__PURE__ */ Z("div", {
|
|
5975
5975
|
className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
|
|
@@ -6325,12 +6325,12 @@ var jp = () => {
|
|
|
6325
6325
|
let { isQuestionTypeAllowed: e, datasets: t } = Dp(), { t: n } = V(), r = [
|
|
6326
6326
|
{
|
|
6327
6327
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
6328
|
-
icon:
|
|
6328
|
+
icon: po,
|
|
6329
6329
|
questionType: "rating"
|
|
6330
6330
|
},
|
|
6331
6331
|
{
|
|
6332
6332
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
6333
|
-
icon:
|
|
6333
|
+
icon: Ai,
|
|
6334
6334
|
questionType: "multi-select"
|
|
6335
6335
|
},
|
|
6336
6336
|
{
|
|
@@ -6340,32 +6340,32 @@ var jp = () => {
|
|
|
6340
6340
|
},
|
|
6341
6341
|
{
|
|
6342
6342
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
6343
|
-
icon:
|
|
6343
|
+
icon: Wa,
|
|
6344
6344
|
questionType: "text"
|
|
6345
6345
|
},
|
|
6346
6346
|
{
|
|
6347
6347
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
6348
|
-
icon:
|
|
6348
|
+
icon: Ci,
|
|
6349
6349
|
questionType: "longText"
|
|
6350
6350
|
},
|
|
6351
6351
|
{
|
|
6352
6352
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
6353
|
-
icon:
|
|
6353
|
+
icon: Qi,
|
|
6354
6354
|
questionType: "numeric"
|
|
6355
6355
|
},
|
|
6356
6356
|
{
|
|
6357
6357
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
6358
|
-
icon:
|
|
6358
|
+
icon: Ba,
|
|
6359
6359
|
questionType: "link"
|
|
6360
6360
|
},
|
|
6361
6361
|
{
|
|
6362
6362
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
6363
|
-
icon:
|
|
6363
|
+
icon: Ki,
|
|
6364
6364
|
questionType: "date"
|
|
6365
6365
|
},
|
|
6366
6366
|
{
|
|
6367
6367
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
6368
|
-
icon:
|
|
6368
|
+
icon: Na,
|
|
6369
6369
|
questionType: "file"
|
|
6370
6370
|
},
|
|
6371
6371
|
{
|
|
@@ -6381,17 +6381,17 @@ var jp = () => {
|
|
|
6381
6381
|
})) : [];
|
|
6382
6382
|
return [...r, ...i];
|
|
6383
6383
|
}, Mp = {
|
|
6384
|
-
rating:
|
|
6385
|
-
"multi-select":
|
|
6384
|
+
rating: po,
|
|
6385
|
+
"multi-select": Ai,
|
|
6386
6386
|
select: fc,
|
|
6387
|
-
text:
|
|
6388
|
-
longText:
|
|
6389
|
-
numeric:
|
|
6390
|
-
link:
|
|
6391
|
-
date:
|
|
6387
|
+
text: Wa,
|
|
6388
|
+
longText: Ci,
|
|
6389
|
+
numeric: Qi,
|
|
6390
|
+
link: Ba,
|
|
6391
|
+
date: Ki,
|
|
6392
6392
|
"dropdown-single": Ao,
|
|
6393
6393
|
"dropdown-multi": Ao,
|
|
6394
|
-
file:
|
|
6394
|
+
file: Na,
|
|
6395
6395
|
checkbox: zs
|
|
6396
6396
|
}, Np = () => {
|
|
6397
6397
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Dp(), [a, o] = J(!1), s = jp(), { t: c } = V(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -6425,7 +6425,7 @@ var jp = () => {
|
|
|
6425
6425
|
children: /* @__PURE__ */ Z("div", {
|
|
6426
6426
|
className: "flex w-full flex-row items-center gap-2",
|
|
6427
6427
|
children: [/* @__PURE__ */ X(B, {
|
|
6428
|
-
icon:
|
|
6428
|
+
icon: Ra,
|
|
6429
6429
|
color: "default"
|
|
6430
6430
|
}), /* @__PURE__ */ X("span", {
|
|
6431
6431
|
className: "flex-1 text-base font-medium",
|
|
@@ -6478,7 +6478,7 @@ var jp = () => {
|
|
|
6478
6478
|
children: /* @__PURE__ */ Z("div", {
|
|
6479
6479
|
className: "flex w-full flex-row items-center gap-2",
|
|
6480
6480
|
children: [/* @__PURE__ */ X(B, {
|
|
6481
|
-
icon:
|
|
6481
|
+
icon: Ai,
|
|
6482
6482
|
color: "default"
|
|
6483
6483
|
}), /* @__PURE__ */ X("span", {
|
|
6484
6484
|
className: "flex-1",
|
|
@@ -6658,7 +6658,7 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6658
6658
|
className: "flex w-full flex-row items-center gap-2",
|
|
6659
6659
|
children: [
|
|
6660
6660
|
/* @__PURE__ */ X(Pn, {
|
|
6661
|
-
icon:
|
|
6661
|
+
icon: co,
|
|
6662
6662
|
color: "default"
|
|
6663
6663
|
}),
|
|
6664
6664
|
/* @__PURE__ */ X("span", {
|
|
@@ -6770,7 +6770,7 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6770
6770
|
className: "flex w-full flex-row items-center gap-2",
|
|
6771
6771
|
children: [
|
|
6772
6772
|
/* @__PURE__ */ X(Pn, {
|
|
6773
|
-
icon:
|
|
6773
|
+
icon: Ai,
|
|
6774
6774
|
color: "default"
|
|
6775
6775
|
}),
|
|
6776
6776
|
/* @__PURE__ */ X("span", {
|
|
@@ -6799,11 +6799,11 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6799
6799
|
let { t: a } = V(), { labels: o } = Dp();
|
|
6800
6800
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Tn, {}) : null, /* @__PURE__ */ Z(xn, { children: [e ? /* @__PURE__ */ X(Hp, {
|
|
6801
6801
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
6802
|
-
icon:
|
|
6802
|
+
icon: to,
|
|
6803
6803
|
onClick: r
|
|
6804
6804
|
}) : null, t ? /* @__PURE__ */ X(Hp, {
|
|
6805
6805
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
6806
|
-
icon:
|
|
6806
|
+
icon: aa,
|
|
6807
6807
|
onClick: i,
|
|
6808
6808
|
critical: !0
|
|
6809
6809
|
}) : null] })] });
|
|
@@ -6821,7 +6821,7 @@ function Wp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6821
6821
|
tabIndex: -1,
|
|
6822
6822
|
asChild: !0,
|
|
6823
6823
|
children: /* @__PURE__ */ X(z, {
|
|
6824
|
-
icon:
|
|
6824
|
+
icon: Ni,
|
|
6825
6825
|
label: o("surveyFormBuilder.labels.actions"),
|
|
6826
6826
|
size: "md",
|
|
6827
6827
|
variant: "ghost",
|
|
@@ -6838,13 +6838,13 @@ function Wp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6838
6838
|
}),
|
|
6839
6839
|
T ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Bp, {
|
|
6840
6840
|
label: o("surveyFormBuilder.labels.required"),
|
|
6841
|
-
icon:
|
|
6841
|
+
icon: Ia,
|
|
6842
6842
|
checked: !!l?.required,
|
|
6843
6843
|
onChange: _
|
|
6844
6844
|
}) }) : null,
|
|
6845
6845
|
E ? /* @__PURE__ */ X(xn, { children: /* @__PURE__ */ X(Bp, {
|
|
6846
6846
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
6847
|
-
icon:
|
|
6847
|
+
icon: Ai,
|
|
6848
6848
|
checked: p,
|
|
6849
6849
|
onChange: b
|
|
6850
6850
|
}) }) : null,
|
|
@@ -7034,7 +7034,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7034
7034
|
children: /* @__PURE__ */ Z("div", {
|
|
7035
7035
|
className: "flex w-full flex-row items-center gap-2",
|
|
7036
7036
|
children: [/* @__PURE__ */ X(B, {
|
|
7037
|
-
icon:
|
|
7037
|
+
icon: Ra,
|
|
7038
7038
|
color: "default"
|
|
7039
7039
|
}), /* @__PURE__ */ X("span", {
|
|
7040
7040
|
className: "flex-1 text-base font-medium",
|
|
@@ -7086,7 +7086,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7086
7086
|
children: /* @__PURE__ */ Z("div", {
|
|
7087
7087
|
className: "flex w-full flex-row items-center gap-2",
|
|
7088
7088
|
children: [/* @__PURE__ */ X(B, {
|
|
7089
|
-
icon:
|
|
7089
|
+
icon: Ai,
|
|
7090
7090
|
color: "default"
|
|
7091
7091
|
}), /* @__PURE__ */ X("span", {
|
|
7092
7092
|
className: "flex-1",
|
|
@@ -7320,8 +7320,8 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7320
7320
|
required: t.required,
|
|
7321
7321
|
maxDecimals: 0,
|
|
7322
7322
|
placeholder: s,
|
|
7323
|
-
icon:
|
|
7324
|
-
}) : /* @__PURE__ */ X(
|
|
7323
|
+
icon: Qi
|
|
7324
|
+
}) : /* @__PURE__ */ X(Gi, {
|
|
7325
7325
|
type: "text",
|
|
7326
7326
|
size: "md",
|
|
7327
7327
|
value: s,
|
|
@@ -7329,7 +7329,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7329
7329
|
disabled: !0,
|
|
7330
7330
|
label: n("surveyFormBuilder.answer.label"),
|
|
7331
7331
|
hideLabel: !0,
|
|
7332
|
-
icon:
|
|
7332
|
+
icon: Qi
|
|
7333
7333
|
})
|
|
7334
7334
|
});
|
|
7335
7335
|
}, nm = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -7503,7 +7503,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7503
7503
|
children: /* @__PURE__ */ X("div", {
|
|
7504
7504
|
className: H("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
7505
7505
|
children: /* @__PURE__ */ X(Pn, {
|
|
7506
|
-
icon:
|
|
7506
|
+
icon: Ha,
|
|
7507
7507
|
size: "sm"
|
|
7508
7508
|
})
|
|
7509
7509
|
})
|
|
@@ -7526,13 +7526,13 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7526
7526
|
children: [/* @__PURE__ */ X(z, {
|
|
7527
7527
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
7528
7528
|
variant: "ghost",
|
|
7529
|
-
icon: c ? Fr :
|
|
7529
|
+
icon: c ? Fr : Ca,
|
|
7530
7530
|
onClick: x,
|
|
7531
7531
|
hideLabel: !0
|
|
7532
7532
|
}), /* @__PURE__ */ X(z, {
|
|
7533
7533
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
7534
7534
|
variant: "ghost",
|
|
7535
|
-
icon:
|
|
7535
|
+
icon: aa,
|
|
7536
7536
|
hideLabel: !0,
|
|
7537
7537
|
onClick: S
|
|
7538
7538
|
})]
|
|
@@ -7759,7 +7759,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7759
7759
|
h && c.start(e);
|
|
7760
7760
|
},
|
|
7761
7761
|
children: /* @__PURE__ */ X(B, {
|
|
7762
|
-
icon:
|
|
7762
|
+
icon: Ha,
|
|
7763
7763
|
size: "sm"
|
|
7764
7764
|
})
|
|
7765
7765
|
}) : null, /* @__PURE__ */ X(um, { ...e.question })]
|
|
@@ -7789,7 +7789,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7789
7789
|
f && i.start(e);
|
|
7790
7790
|
},
|
|
7791
7791
|
children: /* @__PURE__ */ X(B, {
|
|
7792
|
-
icon:
|
|
7792
|
+
icon: Ha,
|
|
7793
7793
|
size: "sm"
|
|
7794
7794
|
})
|
|
7795
7795
|
}) : null, /* @__PURE__ */ X(um, { ...e })]
|
|
@@ -7821,7 +7821,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7821
7821
|
});
|
|
7822
7822
|
}, x = [{
|
|
7823
7823
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
7824
|
-
icon:
|
|
7824
|
+
icon: to,
|
|
7825
7825
|
onClick: () => {
|
|
7826
7826
|
d?.({
|
|
7827
7827
|
elementId: e,
|
|
@@ -7830,7 +7830,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7830
7830
|
}
|
|
7831
7831
|
}, {
|
|
7832
7832
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
7833
|
-
icon:
|
|
7833
|
+
icon: aa,
|
|
7834
7834
|
onClick: () => {
|
|
7835
7835
|
u(e);
|
|
7836
7836
|
},
|
|
@@ -7875,14 +7875,14 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7875
7875
|
}) : null,
|
|
7876
7876
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
7877
7877
|
className: H("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
7878
|
-
children: /* @__PURE__ */ X(
|
|
7878
|
+
children: /* @__PURE__ */ X(mo, {
|
|
7879
7879
|
items: x,
|
|
7880
|
-
icon:
|
|
7880
|
+
icon: Ni,
|
|
7881
7881
|
open: p,
|
|
7882
7882
|
onOpenChange: m,
|
|
7883
7883
|
align: "start",
|
|
7884
7884
|
children: /* @__PURE__ */ X(z, {
|
|
7885
|
-
icon:
|
|
7885
|
+
icon: Ni,
|
|
7886
7886
|
label: h("surveyFormBuilder.actions.actions"),
|
|
7887
7887
|
size: "md",
|
|
7888
7888
|
variant: "ghost",
|
|
@@ -7951,7 +7951,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7951
7951
|
o.start(e);
|
|
7952
7952
|
},
|
|
7953
7953
|
children: /* @__PURE__ */ X(B, {
|
|
7954
|
-
icon:
|
|
7954
|
+
icon: Ha,
|
|
7955
7955
|
size: "sm"
|
|
7956
7956
|
})
|
|
7957
7957
|
}) : null, /* @__PURE__ */ X(mm, {
|
|
@@ -7981,7 +7981,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7981
7981
|
p || x.push({
|
|
7982
7982
|
type: "toggle",
|
|
7983
7983
|
label: l,
|
|
7984
|
-
icon:
|
|
7984
|
+
icon: Ia,
|
|
7985
7985
|
checked: !!r?.required,
|
|
7986
7986
|
onCheckedChange: m
|
|
7987
7987
|
});
|
|
@@ -8026,7 +8026,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8026
8026
|
selected: s === e && t === "dropdown-single"
|
|
8027
8027
|
}, {
|
|
8028
8028
|
label: f,
|
|
8029
|
-
icon:
|
|
8029
|
+
icon: Ai,
|
|
8030
8030
|
onClick: () => h("dropdown-multi", e),
|
|
8031
8031
|
selected: s === e && t === "dropdown-multi"
|
|
8032
8032
|
}]
|
|
@@ -8040,16 +8040,16 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8040
8040
|
return x.push({
|
|
8041
8041
|
type: "submenu",
|
|
8042
8042
|
label: u,
|
|
8043
|
-
icon:
|
|
8043
|
+
icon: co,
|
|
8044
8044
|
selectedLabel: E,
|
|
8045
8045
|
children: w
|
|
8046
8046
|
}), x.push({ type: "separator" }), x.push({
|
|
8047
8047
|
label: i,
|
|
8048
|
-
icon:
|
|
8048
|
+
icon: to,
|
|
8049
8049
|
onClick: y
|
|
8050
8050
|
}), n && x.push({
|
|
8051
8051
|
label: a,
|
|
8052
|
-
icon:
|
|
8052
|
+
icon: aa,
|
|
8053
8053
|
onClick: b,
|
|
8054
8054
|
critical: !0
|
|
8055
8055
|
}), x;
|
|
@@ -8070,12 +8070,12 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8070
8070
|
return {
|
|
8071
8071
|
id: i,
|
|
8072
8072
|
label: t.title || n,
|
|
8073
|
-
icon:
|
|
8073
|
+
icon: Ra,
|
|
8074
8074
|
onClick: y,
|
|
8075
8075
|
...!h && !g && !t.locked && { otherActions: [
|
|
8076
8076
|
{
|
|
8077
8077
|
label: o,
|
|
8078
|
-
icon:
|
|
8078
|
+
icon: to,
|
|
8079
8079
|
onClick: () => m?.({
|
|
8080
8080
|
elementId: t.id,
|
|
8081
8081
|
type: "section"
|
|
@@ -8084,7 +8084,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8084
8084
|
{ type: "separator" },
|
|
8085
8085
|
{
|
|
8086
8086
|
label: s,
|
|
8087
|
-
icon:
|
|
8087
|
+
icon: aa,
|
|
8088
8088
|
onClick: () => p(t.id),
|
|
8089
8089
|
critical: !0
|
|
8090
8090
|
}
|
|
@@ -8612,7 +8612,7 @@ function Vm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
8612
8612
|
u ? /* @__PURE__ */ X("div", {
|
|
8613
8613
|
className: "min-h-8 p-1",
|
|
8614
8614
|
children: /* @__PURE__ */ X(B, {
|
|
8615
|
-
icon: t.correct ?
|
|
8615
|
+
icon: t.correct ? Ca : Fr,
|
|
8616
8616
|
color: t.correct ? "positive" : "critical",
|
|
8617
8617
|
"aria-hidden": !0
|
|
8618
8618
|
})
|
|
@@ -8634,7 +8634,7 @@ var Hm = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, Um = () => ({
|
|
|
8634
8634
|
status: "idle"
|
|
8635
8635
|
});
|
|
8636
8636
|
function Wm(e, t) {
|
|
8637
|
-
return
|
|
8637
|
+
return Li().optional().superRefine((n, r) => {
|
|
8638
8638
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
8639
8639
|
code: "custom",
|
|
8640
8640
|
message: t("forms.validation.required")
|
|
@@ -8642,7 +8642,7 @@ function Wm(e, t) {
|
|
|
8642
8642
|
});
|
|
8643
8643
|
}
|
|
8644
8644
|
function Gm(e, t) {
|
|
8645
|
-
return
|
|
8645
|
+
return Li().optional().superRefine((n, r) => {
|
|
8646
8646
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
8647
8647
|
code: "custom",
|
|
8648
8648
|
message: t("forms.validation.required")
|
|
@@ -8653,7 +8653,7 @@ function Gm(e, t) {
|
|
|
8653
8653
|
});
|
|
8654
8654
|
}
|
|
8655
8655
|
function Km(e, t) {
|
|
8656
|
-
return
|
|
8656
|
+
return _a().optional().superRefine((n, r) => {
|
|
8657
8657
|
e && n == null && r.addIssue({
|
|
8658
8658
|
code: "custom",
|
|
8659
8659
|
message: t("forms.validation.required")
|
|
@@ -8661,7 +8661,7 @@ function Km(e, t) {
|
|
|
8661
8661
|
});
|
|
8662
8662
|
}
|
|
8663
8663
|
function qm(e, t) {
|
|
8664
|
-
return
|
|
8664
|
+
return Oi(Li()).optional().superRefine((n, r) => {
|
|
8665
8665
|
e && (!n || n.length === 0) && r.addIssue({
|
|
8666
8666
|
code: "custom",
|
|
8667
8667
|
message: t("forms.validation.required")
|
|
@@ -8669,7 +8669,7 @@ function qm(e, t) {
|
|
|
8669
8669
|
});
|
|
8670
8670
|
}
|
|
8671
8671
|
function Jm(e, t) {
|
|
8672
|
-
return
|
|
8672
|
+
return Bi().optional().superRefine((n, r) => {
|
|
8673
8673
|
e && !n && r.addIssue({
|
|
8674
8674
|
code: "custom",
|
|
8675
8675
|
message: t("forms.validation.required")
|
|
@@ -8678,7 +8678,7 @@ function Jm(e, t) {
|
|
|
8678
8678
|
}
|
|
8679
8679
|
var Ym = qm;
|
|
8680
8680
|
function Xm(e, t) {
|
|
8681
|
-
return
|
|
8681
|
+
return Sa().optional().superRefine((n, r) => {
|
|
8682
8682
|
e && !n && r.addIssue({
|
|
8683
8683
|
code: "custom",
|
|
8684
8684
|
message: t("forms.validation.required")
|
|
@@ -8731,7 +8731,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8731
8731
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
8732
8732
|
disabled: i
|
|
8733
8733
|
};
|
|
8734
|
-
return
|
|
8734
|
+
return Zi(Wm(!!e.required, t), {
|
|
8735
8735
|
...l,
|
|
8736
8736
|
fieldType: "custom",
|
|
8737
8737
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8759,7 +8759,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8759
8759
|
rows: 4,
|
|
8760
8760
|
disabled: i
|
|
8761
8761
|
};
|
|
8762
|
-
return
|
|
8762
|
+
return Zi(Wm(!!e.required, t), {
|
|
8763
8763
|
...l,
|
|
8764
8764
|
fieldType: "custom",
|
|
8765
8765
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8786,7 +8786,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8786
8786
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
8787
8787
|
disabled: i
|
|
8788
8788
|
};
|
|
8789
|
-
return
|
|
8789
|
+
return Zi(Km(!!e.required, t), {
|
|
8790
8790
|
...l,
|
|
8791
8791
|
fieldType: "custom",
|
|
8792
8792
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8814,7 +8814,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8814
8814
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
8815
8815
|
disabled: i
|
|
8816
8816
|
};
|
|
8817
|
-
return
|
|
8817
|
+
return Zi(Gm(!!e.required, t), {
|
|
8818
8818
|
...l,
|
|
8819
8819
|
fieldType: "custom",
|
|
8820
8820
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8841,7 +8841,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8841
8841
|
clearable: !e.required,
|
|
8842
8842
|
disabled: i
|
|
8843
8843
|
};
|
|
8844
|
-
return
|
|
8844
|
+
return Zi(Jm(!!e.required, t), {
|
|
8845
8845
|
...l,
|
|
8846
8846
|
fieldType: "custom",
|
|
8847
8847
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8877,7 +8877,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8877
8877
|
showSearchBox: r,
|
|
8878
8878
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8879
8879
|
};
|
|
8880
|
-
return
|
|
8880
|
+
return Zi(Wm(!!e.required, t), {
|
|
8881
8881
|
...l,
|
|
8882
8882
|
fieldType: "custom",
|
|
8883
8883
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -8926,7 +8926,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8926
8926
|
showSearchBox: r,
|
|
8927
8927
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8928
8928
|
};
|
|
8929
|
-
return
|
|
8929
|
+
return Zi(qm(!!e.required, t), {
|
|
8930
8930
|
...l,
|
|
8931
8931
|
fieldType: "custom",
|
|
8932
8932
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -8953,7 +8953,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8953
8953
|
disabled: i,
|
|
8954
8954
|
showAnswerValidation: r
|
|
8955
8955
|
};
|
|
8956
|
-
return
|
|
8956
|
+
return Zi(Wm(!!e.required, t), {
|
|
8957
8957
|
...l,
|
|
8958
8958
|
fieldType: "custom",
|
|
8959
8959
|
fieldConfig: n,
|
|
@@ -8976,7 +8976,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8976
8976
|
disabled: i,
|
|
8977
8977
|
showAnswerValidation: r
|
|
8978
8978
|
};
|
|
8979
|
-
return
|
|
8979
|
+
return Zi(qm(!!e.required, t), {
|
|
8980
8980
|
...l,
|
|
8981
8981
|
fieldType: "custom",
|
|
8982
8982
|
fieldConfig: n,
|
|
@@ -8998,7 +8998,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8998
8998
|
maxLabel: n.maxLabel,
|
|
8999
8999
|
disabled: i
|
|
9000
9000
|
};
|
|
9001
|
-
return
|
|
9001
|
+
return Zi(Km(!!e.required, t), {
|
|
9002
9002
|
...l,
|
|
9003
9003
|
fieldType: "custom",
|
|
9004
9004
|
fieldConfig: r,
|
|
@@ -9024,7 +9024,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9024
9024
|
useUpload: r ?? Um,
|
|
9025
9025
|
disabled: i || !r
|
|
9026
9026
|
};
|
|
9027
|
-
return
|
|
9027
|
+
return Zi(Ym(!!e.required, t), {
|
|
9028
9028
|
...l,
|
|
9029
9029
|
fieldType: "custom",
|
|
9030
9030
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -9050,7 +9050,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9050
9050
|
label: n.label || c,
|
|
9051
9051
|
disabled: i
|
|
9052
9052
|
};
|
|
9053
|
-
return
|
|
9053
|
+
return Zi(Xm(!!e.required, t), {
|
|
9054
9054
|
...l,
|
|
9055
9055
|
fieldType: "custom",
|
|
9056
9056
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Kp, {
|
|
@@ -9069,7 +9069,7 @@ function th({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9069
9069
|
})
|
|
9070
9070
|
});
|
|
9071
9071
|
}
|
|
9072
|
-
default: return
|
|
9072
|
+
default: return Zi(Ji(), {
|
|
9073
9073
|
...l,
|
|
9074
9074
|
fieldType: "custom",
|
|
9075
9075
|
render: () => null
|
|
@@ -9110,7 +9110,7 @@ function nh({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
9110
9110
|
}), f[e.id] = a?.[e.id] ?? Zm(e, r);
|
|
9111
9111
|
}
|
|
9112
9112
|
return {
|
|
9113
|
-
schema:
|
|
9113
|
+
schema: wa(d),
|
|
9114
9114
|
defaultValues: f,
|
|
9115
9115
|
flatQuestions: m,
|
|
9116
9116
|
sections: p
|
|
@@ -9215,12 +9215,12 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9215
9215
|
]);
|
|
9216
9216
|
let _e = u && !m ? [{
|
|
9217
9217
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
9218
|
-
icon: C ?
|
|
9218
|
+
icon: C ? va : Oa,
|
|
9219
9219
|
onClick: () => w((e) => !e)
|
|
9220
9220
|
}] : void 0, ve = M ? m || F ? void 0 : I ? P && !j.isLastStep ? {
|
|
9221
9221
|
label: b("surveyAnsweringForm.actions.next"),
|
|
9222
9222
|
onClick: j.goToNext,
|
|
9223
|
-
icon:
|
|
9223
|
+
icon: wi
|
|
9224
9224
|
} : {
|
|
9225
9225
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
9226
9226
|
onClick: rh,
|
|
@@ -9228,7 +9228,7 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9228
9228
|
} : P && !j.isLastStep ? {
|
|
9229
9229
|
label: b("surveyAnsweringForm.actions.next"),
|
|
9230
9230
|
onClick: pe,
|
|
9231
|
-
icon:
|
|
9231
|
+
icon: wi
|
|
9232
9232
|
} : {
|
|
9233
9233
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
9234
9234
|
onClick: pe,
|
|
@@ -9239,7 +9239,7 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9239
9239
|
onClick: me,
|
|
9240
9240
|
icon: cs
|
|
9241
9241
|
} : void 0 : void 0, be = n === "all-questions" && M && !m, xe = P && M && !m, Se = P && !!j.currentQuestion?.sectionTitle && !m, Ce = L === "center" || L === "fullscreen";
|
|
9242
|
-
return /* @__PURE__ */ X(
|
|
9242
|
+
return /* @__PURE__ */ X(Ga, {
|
|
9243
9243
|
isOpen: o,
|
|
9244
9244
|
onClose: s,
|
|
9245
9245
|
title: r,
|
|
@@ -9518,18 +9518,18 @@ function gh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9518
9518
|
let [o, s] = J(e);
|
|
9519
9519
|
return G(() => {
|
|
9520
9520
|
s(e);
|
|
9521
|
-
}, [e]), /* @__PURE__ */ X(
|
|
9521
|
+
}, [e]), /* @__PURE__ */ X(qa, {
|
|
9522
9522
|
open: o,
|
|
9523
9523
|
onOpenChange: (e) => {
|
|
9524
9524
|
s(e), e || t();
|
|
9525
9525
|
},
|
|
9526
9526
|
modal: !0,
|
|
9527
|
-
children: /* @__PURE__ */ Z(
|
|
9527
|
+
children: /* @__PURE__ */ Z(ia, {
|
|
9528
9528
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
9529
9529
|
container: a,
|
|
9530
9530
|
children: [/* @__PURE__ */ Z("div", {
|
|
9531
9531
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
9532
|
-
children: [/* @__PURE__ */ Z(
|
|
9532
|
+
children: [/* @__PURE__ */ Z(na, {
|
|
9533
9533
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
9534
9534
|
children: [i ? /* @__PURE__ */ X(wo, {
|
|
9535
9535
|
module: i,
|
|
@@ -9627,10 +9627,10 @@ function yh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9627
9627
|
o && o(!l);
|
|
9628
9628
|
}, [o, l]);
|
|
9629
9629
|
let f = e?.includes(".mp4");
|
|
9630
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
9630
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(ta, {
|
|
9631
9631
|
style: { width: a },
|
|
9632
9632
|
className: "relative bg-f1-background p-1",
|
|
9633
|
-
children: [/* @__PURE__ */ Z(
|
|
9633
|
+
children: [/* @__PURE__ */ Z(la, { children: [i ? /* @__PURE__ */ X("div", {
|
|
9634
9634
|
className: "absolute right-2 top-2 z-10",
|
|
9635
9635
|
children: /* @__PURE__ */ X(z, {
|
|
9636
9636
|
variant: "ghost",
|
|
@@ -9660,7 +9660,7 @@ function yh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9660
9660
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
9661
9661
|
children: n
|
|
9662
9662
|
})]
|
|
9663
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
9663
|
+
})] })] }), s ? /* @__PURE__ */ X(Fi, {
|
|
9664
9664
|
className: "p-3",
|
|
9665
9665
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(C, {
|
|
9666
9666
|
label: e.label,
|
|
@@ -9774,7 +9774,7 @@ wh.displayName = "UpsellingBanner";
|
|
|
9774
9774
|
var Th = R(wh);
|
|
9775
9775
|
//#endregion
|
|
9776
9776
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
9777
|
-
function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
9777
|
+
function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Da, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
9778
9778
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
9779
9779
|
t(e), h && h();
|
|
9780
9780
|
}, w = async (e) => {
|
|
@@ -9834,9 +9834,9 @@ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9834
9834
|
}
|
|
9835
9835
|
var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
9836
9836
|
let a = V(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
9837
|
-
return /* @__PURE__ */ Z(
|
|
9837
|
+
return /* @__PURE__ */ Z(ta, {
|
|
9838
9838
|
className: "flex flex-col overflow-hidden",
|
|
9839
|
-
children: [/* @__PURE__ */ Z(
|
|
9839
|
+
children: [/* @__PURE__ */ Z(la, {
|
|
9840
9840
|
className: "flex flex-col gap-4 p-0",
|
|
9841
9841
|
children: [/* @__PURE__ */ X("div", {
|
|
9842
9842
|
className: H("overflow-hidden rounded-lg border border-f1-border", "ring-1 ring-f1-border/50 bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary"),
|
|
@@ -9851,7 +9851,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9851
9851
|
children: n
|
|
9852
9852
|
})]
|
|
9853
9853
|
})]
|
|
9854
|
-
}), /* @__PURE__ */ X(
|
|
9854
|
+
}), /* @__PURE__ */ X(Fi, {
|
|
9855
9855
|
className: "-mx-4 -mb-4 mt-4 flex justify-end rounded-b-xl border-0 border-t border-t-f1-border bg-f1-background-secondary px-4 py-3",
|
|
9856
9856
|
children: i ? /* @__PURE__ */ X(z, {
|
|
9857
9857
|
variant: "default",
|
|
@@ -9898,7 +9898,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9898
9898
|
})
|
|
9899
9899
|
})]
|
|
9900
9900
|
}), Ah = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
9901
|
-
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
9901
|
+
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? go, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
9902
9902
|
u,
|
|
9903
9903
|
r,
|
|
9904
9904
|
c
|
|
@@ -9913,9 +9913,9 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9913
9913
|
i,
|
|
9914
9914
|
a
|
|
9915
9915
|
]);
|
|
9916
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
9916
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(ta, {
|
|
9917
9917
|
className: "flex flex-col overflow-hidden",
|
|
9918
|
-
children: [/* @__PURE__ */ Z(
|
|
9918
|
+
children: [/* @__PURE__ */ Z(Hi, {
|
|
9919
9919
|
className: "-mx-4 -mt-4 mb-2 flex flex-row items-center gap-2 rounded-t-xl bg-f1-background-secondary px-4 py-3",
|
|
9920
9920
|
children: [/* @__PURE__ */ X("div", {
|
|
9921
9921
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -9928,7 +9928,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9928
9928
|
className: "text-base font-semibold text-f1-foreground",
|
|
9929
9929
|
children: o
|
|
9930
9930
|
})]
|
|
9931
|
-
}), /* @__PURE__ */ X(
|
|
9931
|
+
}), /* @__PURE__ */ X(la, {
|
|
9932
9932
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
9933
9933
|
children: t.map((e) => /* @__PURE__ */ X(kh, {
|
|
9934
9934
|
item: e,
|
|
@@ -9939,9 +9939,9 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9939
9939
|
});
|
|
9940
9940
|
}, jh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
9941
9941
|
let a = V()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
9942
|
-
return /* @__PURE__ */ Z(
|
|
9942
|
+
return /* @__PURE__ */ Z(ta, {
|
|
9943
9943
|
className: "flex flex-col overflow-hidden",
|
|
9944
|
-
children: [/* @__PURE__ */ X(
|
|
9944
|
+
children: [/* @__PURE__ */ X(la, {
|
|
9945
9945
|
className: "flex flex-col gap-3 p-0",
|
|
9946
9946
|
children: /* @__PURE__ */ Z("div", {
|
|
9947
9947
|
className: "flex items-start gap-3",
|
|
@@ -9963,7 +9963,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9963
9963
|
})]
|
|
9964
9964
|
})]
|
|
9965
9965
|
})
|
|
9966
|
-
}), /* @__PURE__ */ X(
|
|
9966
|
+
}), /* @__PURE__ */ X(Fi, {
|
|
9967
9967
|
className: "-mx-4 -mb-4 mt-4 flex justify-end rounded-b-xl border-0 border-t border-t-f1-border bg-f1-background-secondary px-4 py-3",
|
|
9968
9968
|
children: r ? /* @__PURE__ */ X(z, {
|
|
9969
9969
|
variant: "outline",
|
|
@@ -9981,12 +9981,12 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9981
9981
|
});
|
|
9982
9982
|
}, Mh = ({ onAction: e, actionHref: t }) => {
|
|
9983
9983
|
let n = V()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
|
|
9984
|
-
return /* @__PURE__ */ Z(
|
|
9984
|
+
return /* @__PURE__ */ Z(ta, {
|
|
9985
9985
|
className: "flex flex-col overflow-hidden",
|
|
9986
|
-
children: [/* @__PURE__ */ Z(
|
|
9986
|
+
children: [/* @__PURE__ */ Z(la, {
|
|
9987
9987
|
className: "flex flex-col gap-3 p-0",
|
|
9988
9988
|
children: [/* @__PURE__ */ X(B, {
|
|
9989
|
-
icon:
|
|
9989
|
+
icon: Ki,
|
|
9990
9990
|
size: "lg"
|
|
9991
9991
|
}), /* @__PURE__ */ Z("div", {
|
|
9992
9992
|
className: "flex flex-col gap-0.5",
|
|
@@ -9998,7 +9998,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9998
9998
|
children: i
|
|
9999
9999
|
})]
|
|
10000
10000
|
})]
|
|
10001
|
-
}), /* @__PURE__ */ X(
|
|
10001
|
+
}), /* @__PURE__ */ X(Fi, {
|
|
10002
10002
|
className: "-mx-4 -mb-4 mt-4 flex justify-end rounded-b-xl border-0 border-t border-t-f1-border bg-f1-background-secondary px-4 py-3",
|
|
10003
10003
|
children: t ? /* @__PURE__ */ X(z, {
|
|
10004
10004
|
variant: "default",
|
|
@@ -10044,9 +10044,9 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10044
10044
|
e,
|
|
10045
10045
|
t
|
|
10046
10046
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
10047
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
10047
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(ta, {
|
|
10048
10048
|
className: "flex flex-col overflow-hidden",
|
|
10049
|
-
children: [/* @__PURE__ */ Z(
|
|
10049
|
+
children: [/* @__PURE__ */ Z(la, {
|
|
10050
10050
|
className: "flex flex-col gap-4",
|
|
10051
10051
|
children: [/* @__PURE__ */ X("h3", {
|
|
10052
10052
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -10063,7 +10063,7 @@ var Dh = R(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10063
10063
|
})
|
|
10064
10064
|
}, e.id))
|
|
10065
10065
|
})]
|
|
10066
|
-
}), /* @__PURE__ */ Z(
|
|
10066
|
+
}), /* @__PURE__ */ Z(Fi, {
|
|
10067
10067
|
className: "-mx-4 -mb-4 mt-4 flex items-center justify-between rounded-b-xl border-0 border-t border-t-f1-border bg-f1-background-secondary px-4 py-3",
|
|
10068
10068
|
children: [/* @__PURE__ */ X("div", {
|
|
10069
10069
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -10527,7 +10527,7 @@ function mg(e, t) {
|
|
|
10527
10527
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
10528
10528
|
}
|
|
10529
10529
|
async function hg(e, t, n, { keys: r, preamble: i } = {}) {
|
|
10530
|
-
mg(await
|
|
10530
|
+
mg(await ho([{
|
|
10531
10531
|
name: "Data",
|
|
10532
10532
|
rows: fg({
|
|
10533
10533
|
columns: e,
|
|
@@ -10549,7 +10549,7 @@ function _g(e, t, n) {
|
|
|
10549
10549
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
10550
10550
|
}
|
|
10551
10551
|
async function vg(e, t) {
|
|
10552
|
-
mg(await
|
|
10552
|
+
mg(await ho(e.map((e) => ({
|
|
10553
10553
|
name: e.name,
|
|
10554
10554
|
rows: fg(e)
|
|
10555
10555
|
}))), `${t}.xlsx`);
|
|
@@ -10610,23 +10610,23 @@ function xg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
10610
10610
|
return K(() => n ? [
|
|
10611
10611
|
{
|
|
10612
10612
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
10613
|
-
icon:
|
|
10613
|
+
icon: ro,
|
|
10614
10614
|
onClick: () => a("png")
|
|
10615
10615
|
},
|
|
10616
10616
|
{
|
|
10617
10617
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
10618
|
-
icon:
|
|
10618
|
+
icon: ro,
|
|
10619
10619
|
onClick: () => a("jpg")
|
|
10620
10620
|
},
|
|
10621
10621
|
{ type: "separator" },
|
|
10622
10622
|
{
|
|
10623
10623
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
10624
|
-
icon:
|
|
10624
|
+
icon: no,
|
|
10625
10625
|
onClick: s
|
|
10626
10626
|
},
|
|
10627
10627
|
{
|
|
10628
10628
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
10629
|
-
icon:
|
|
10629
|
+
icon: no,
|
|
10630
10630
|
onClick: c
|
|
10631
10631
|
}
|
|
10632
10632
|
] : [], [
|
|
@@ -10856,7 +10856,7 @@ function Eg({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
10856
10856
|
//#endregion
|
|
10857
10857
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
10858
10858
|
function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: p, onAskAiTarget: m, itemId: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
10859
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = V(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
10859
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = V(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = fa(), I = (e) => {
|
|
10860
10860
|
T(e), e || A(!1);
|
|
10861
10861
|
}, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, ne = u && f && g, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (p ? !!g : M), se = oe || te || ne || re || ie, L = !!l || ae || !!se, ce = !y && (w || E), le = H("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = H("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = Eg({
|
|
10862
10862
|
title: e,
|
|
@@ -10884,7 +10884,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10884
10884
|
onClick: me,
|
|
10885
10885
|
children: /* @__PURE__ */ Z("div", {
|
|
10886
10886
|
className: "flex w-full flex-row items-center gap-2",
|
|
10887
|
-
children: [/* @__PURE__ */ X(B, { icon:
|
|
10887
|
+
children: [/* @__PURE__ */ X(B, { icon: Di }), /* @__PURE__ */ X("span", {
|
|
10888
10888
|
className: "flex-1",
|
|
10889
10889
|
children: j.ai.dashboardItem.askOne
|
|
10890
10890
|
})]
|
|
@@ -10921,7 +10921,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10921
10921
|
asChild: !0,
|
|
10922
10922
|
children: /* @__PURE__ */ X(or, {
|
|
10923
10923
|
label: j.actions.other,
|
|
10924
|
-
icon:
|
|
10924
|
+
icon: Ni,
|
|
10925
10925
|
variant: "ghost",
|
|
10926
10926
|
size: "md",
|
|
10927
10927
|
hideLabel: !0,
|
|
@@ -10987,7 +10987,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10987
10987
|
}) : null,
|
|
10988
10988
|
ae ? /* @__PURE__ */ X(or, {
|
|
10989
10989
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
10990
|
-
icon: y ?
|
|
10990
|
+
icon: y ? va : Oa,
|
|
10991
10991
|
variant: "ghost",
|
|
10992
10992
|
size: "md",
|
|
10993
10993
|
hideLabel: !0,
|
|
@@ -11001,7 +11001,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11001
11001
|
asChild: !0,
|
|
11002
11002
|
children: /* @__PURE__ */ X(or, {
|
|
11003
11003
|
label: j.actions.other,
|
|
11004
|
-
icon:
|
|
11004
|
+
icon: Ni,
|
|
11005
11005
|
variant: "ghost",
|
|
11006
11006
|
size: "md",
|
|
11007
11007
|
hideLabel: !0,
|
|
@@ -11015,7 +11015,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11015
11015
|
onCloseAutoFocus: he,
|
|
11016
11016
|
children: k && ie ? /* @__PURE__ */ X("div", {
|
|
11017
11017
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
11018
|
-
children: /* @__PURE__ */ X(
|
|
11018
|
+
children: /* @__PURE__ */ X(Qa, {
|
|
11019
11019
|
content: v,
|
|
11020
11020
|
format: "markdown"
|
|
11021
11021
|
})
|
|
@@ -11058,7 +11058,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11058
11058
|
className: "mx-1 rounded-sm px-2",
|
|
11059
11059
|
children: /* @__PURE__ */ Z("div", {
|
|
11060
11060
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
11061
|
-
children: [/* @__PURE__ */ X(B, { icon:
|
|
11061
|
+
children: [/* @__PURE__ */ X(B, { icon: Za }), /* @__PURE__ */ X("span", {
|
|
11062
11062
|
className: "flex-1 text-base font-medium",
|
|
11063
11063
|
children: j.ai.dataDownload.title
|
|
11064
11064
|
})]
|
|
@@ -11080,7 +11080,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11080
11080
|
className: H("text-f1-foreground-critical"),
|
|
11081
11081
|
children: /* @__PURE__ */ Z("div", {
|
|
11082
11082
|
className: "flex w-full flex-row items-center gap-2",
|
|
11083
|
-
children: [/* @__PURE__ */ X(B, { icon:
|
|
11083
|
+
children: [/* @__PURE__ */ X(B, { icon: aa }), /* @__PURE__ */ X("span", {
|
|
11084
11084
|
className: "flex-1",
|
|
11085
11085
|
children: j.actions.delete
|
|
11086
11086
|
})]
|
|
@@ -11171,7 +11171,7 @@ function Ag({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
11171
11171
|
type: "button",
|
|
11172
11172
|
variant: "ghost",
|
|
11173
11173
|
label: i.ai.dashboardItem.askOne,
|
|
11174
|
-
icon:
|
|
11174
|
+
icon: Di,
|
|
11175
11175
|
onClick: t
|
|
11176
11176
|
})
|
|
11177
11177
|
}), document.body);
|
|
@@ -11214,39 +11214,39 @@ function zg(e) {
|
|
|
11214
11214
|
{
|
|
11215
11215
|
label: e.dataChart.barChartVertical,
|
|
11216
11216
|
value: "bar-vertical",
|
|
11217
|
-
icon:
|
|
11217
|
+
icon: Vi,
|
|
11218
11218
|
type: "bar",
|
|
11219
11219
|
orientation: "vertical"
|
|
11220
11220
|
},
|
|
11221
11221
|
{
|
|
11222
11222
|
label: e.dataChart.barChartHorizontal,
|
|
11223
11223
|
value: "bar-horizontal",
|
|
11224
|
-
icon:
|
|
11224
|
+
icon: zi,
|
|
11225
11225
|
type: "bar",
|
|
11226
11226
|
orientation: "horizontal"
|
|
11227
11227
|
},
|
|
11228
11228
|
{
|
|
11229
11229
|
label: e.dataChart.lineChart,
|
|
11230
11230
|
value: "line",
|
|
11231
|
-
icon:
|
|
11231
|
+
icon: Ea,
|
|
11232
11232
|
type: "line"
|
|
11233
11233
|
},
|
|
11234
11234
|
{
|
|
11235
11235
|
label: e.dataChart.funnel,
|
|
11236
11236
|
value: "funnel",
|
|
11237
|
-
icon:
|
|
11237
|
+
icon: Xi,
|
|
11238
11238
|
type: "funnel"
|
|
11239
11239
|
},
|
|
11240
11240
|
{
|
|
11241
11241
|
label: e.dataChart.pieChart,
|
|
11242
11242
|
value: "pie",
|
|
11243
|
-
icon:
|
|
11243
|
+
icon: ba,
|
|
11244
11244
|
type: "pie"
|
|
11245
11245
|
},
|
|
11246
11246
|
{
|
|
11247
11247
|
label: e.dataChart.table,
|
|
11248
11248
|
value: "table",
|
|
11249
|
-
icon:
|
|
11249
|
+
icon: no,
|
|
11250
11250
|
type: "table"
|
|
11251
11251
|
}
|
|
11252
11252
|
];
|
|
@@ -11414,7 +11414,7 @@ function Kg(e) {
|
|
|
11414
11414
|
return Vh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
11415
11415
|
}
|
|
11416
11416
|
function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
11417
|
-
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
11417
|
+
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = fa(), y = !Vh(e.chart), b = y ? Bg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = Sg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Ug(e, T) : void 0, [
|
|
11418
11418
|
e,
|
|
11419
11419
|
T,
|
|
11420
11420
|
y
|
|
@@ -11639,11 +11639,11 @@ function t_({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
11639
11639
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
11640
11640
|
return K(() => e ? [{
|
|
11641
11641
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
11642
|
-
icon:
|
|
11642
|
+
icon: no,
|
|
11643
11643
|
onClick: l
|
|
11644
11644
|
}, {
|
|
11645
11645
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
11646
|
-
icon:
|
|
11646
|
+
icon: no,
|
|
11647
11647
|
onClick: u
|
|
11648
11648
|
}] : [], [
|
|
11649
11649
|
e,
|
|
@@ -11971,7 +11971,7 @@ function g_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
11971
11971
|
if (Math.hypot(t.clientX - n, t.clientY - r) < d_) return;
|
|
11972
11972
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
11973
11973
|
let a = k.current.get(e)?.title ?? "";
|
|
11974
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
11974
|
+
a && window.dispatchEvent(new CustomEvent(sa, { detail: {
|
|
11975
11975
|
id: e,
|
|
11976
11976
|
title: a,
|
|
11977
11977
|
onAskAi: c,
|
|
@@ -11985,7 +11985,7 @@ function g_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
11985
11985
|
}, o = (e) => {
|
|
11986
11986
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
11987
11987
|
let t = A.current, n = j.current;
|
|
11988
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
11988
|
+
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(Mi));
|
|
11989
11989
|
}, s = (e) => {
|
|
11990
11990
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = I(e.clientX, e.clientY)), o(!0);
|
|
11991
11991
|
}, u = () => o(!1);
|
|
@@ -12163,7 +12163,7 @@ function __({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
12163
12163
|
className: "shadow-sm absolute -left-3 top-2.5 z-20 flex cursor-grab touch-none items-center justify-center rounded bg-f1-background p-2 opacity-0 transition-opacity hover:bg-f1-background-hover active:cursor-grabbing group-hover/rowitem:opacity-100",
|
|
12164
12164
|
"aria-label": "Drag to reorder",
|
|
12165
12165
|
children: /* @__PURE__ */ X(B, {
|
|
12166
|
-
icon:
|
|
12166
|
+
icon: Ha,
|
|
12167
12167
|
size: "xs"
|
|
12168
12168
|
})
|
|
12169
12169
|
}) : null, s]
|
|
@@ -12333,13 +12333,13 @@ function j_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12333
12333
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
12334
12334
|
function M_({ onExportExcel: e, isExporting: t }) {
|
|
12335
12335
|
let { t: n } = V();
|
|
12336
|
-
return /* @__PURE__ */ X(
|
|
12336
|
+
return /* @__PURE__ */ X(mo, {
|
|
12337
12337
|
items: [{
|
|
12338
12338
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
12339
|
-
icon:
|
|
12339
|
+
icon: Za,
|
|
12340
12340
|
onClick: t ? () => {} : e
|
|
12341
12341
|
}],
|
|
12342
|
-
icon:
|
|
12342
|
+
icon: Ni
|
|
12343
12343
|
});
|
|
12344
12344
|
}
|
|
12345
12345
|
//#endregion
|
|
@@ -13322,7 +13322,7 @@ var Dv = ({ onClose: e }) => {
|
|
|
13322
13322
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
13323
13323
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
13324
13324
|
onClick: () => n(e),
|
|
13325
|
-
children: /* @__PURE__ */ X(
|
|
13325
|
+
children: /* @__PURE__ */ X(Yi, {
|
|
13326
13326
|
href: e.href,
|
|
13327
13327
|
children: e.label
|
|
13328
13328
|
})
|
|
@@ -13390,7 +13390,7 @@ var Dv = ({ onClose: e }) => {
|
|
|
13390
13390
|
}) : g && /* @__PURE__ */ X("div", {
|
|
13391
13391
|
className: "flex-shrink-0",
|
|
13392
13392
|
"aria-hidden": "true",
|
|
13393
|
-
children: /* @__PURE__ */ X(
|
|
13393
|
+
children: /* @__PURE__ */ X(Fa, {
|
|
13394
13394
|
type: g,
|
|
13395
13395
|
size: "sm"
|
|
13396
13396
|
})
|
|
@@ -13753,7 +13753,7 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13753
13753
|
renderDataTestIdAttribute: d,
|
|
13754
13754
|
children: /* @__PURE__ */ X(fy, {
|
|
13755
13755
|
...t,
|
|
13756
|
-
children: /* @__PURE__ */ X(
|
|
13756
|
+
children: /* @__PURE__ */ X(ji, {
|
|
13757
13757
|
handler: l,
|
|
13758
13758
|
children: /* @__PURE__ */ X(Br, { children: /* @__PURE__ */ X(lt, {
|
|
13759
13759
|
...p,
|
|
@@ -13772,4 +13772,4 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13772
13772
|
})
|
|
13773
13773
|
});
|
|
13774
13774
|
//#endregion
|
|
13775
|
-
export { $r as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart,
|
|
13775
|
+
export { $r as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart, ua as ChatSpinner, qo as Chip, di as CollapsibleGroup, rn as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ll as Dashboard, Pe as DataChartEmptyStateView, Un as DataTestIdWrapper, vt as DndProvider, Ka as DropOverlay, Kn as EmojiImage, Md as F0Accordion, wt as F0ActionBar, oa as F0ActionItem, ha as F0AiChat, ei as F0AiChatCreditsButton, ci as F0AiChatHeader, ai as F0AiChatHistory, Pi as F0AiChatProvider, Vr as F0AiChatTextArea, Ur as F0AiChatUsageLimitsButton, Xr as F0AiFileAttachments, fo as F0AiFilePreviewsProvider, Wi as F0AiFormRegistryProvider, li as F0AiInsightCard, Zr as F0AiMask, ti as F0AiMessageSources, Rr as F0AiMessagesContainer, Ya as F0AiPong, hi as F0AiProcessingOverlay, ni as F0AiProposalCard, gi as F0AiTableCard, un as F0Alert, H_ as F0AnalyticsDashboard, Td as F0AudioPlayer, Ed as F0AudioPlayerCard, ri as F0AuraVoiceAnimation, Uo as F0Avatar, Fa as F0AvatarAlert, Lo as F0AvatarCompany, so as F0AvatarDate, Do as F0AvatarEmoji, Co as F0AvatarFile, So as F0AvatarIcon, Ro as F0AvatarList, wo as F0AvatarModule, Oo as F0AvatarPerson, Ho as F0AvatarTeam, au as F0BigNumber, Mh as F0BookAMeetingCard, ko as F0Box, z as F0Button, ja as F0ButtonDropdown, cc as F0ButtonToggle, si as F0CanvasCard, lo as F0CanvasPanel, Ui as F0Card, ea as F0CardRow, yo as F0ChatComposer, Ds as F0Checkbox, Id as F0ChipList, _i as F0ClarifyingPanel, dt as F0DataChart, _e as F0DatePicker, i as F0DatePickerInline, Oh as F0DemoCard, Ga as F0Dialog, m as F0DialogAlikeContext, S as F0DialogAlikeProvider, is as F0DialogContext, Xs as F0DialogProvider, bc as F0DocumentViewer, Wd as F0Drawer, ht as F0DurationInput, oc as F0EventCatcherProvider, Ah as F0FAQCard, Ei as F0FileItem, qd as F0FilterPickerContent, fe as F0Form, cf as F0FormField, Dl as F0GridStack, ii as F0HILActionConfirmation, Qt as F0Heading, B as F0Icon, Yi as F0Link, jh as F0ModuleCard, on as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, ca as F0OneIcon, $a as F0OneSwitch, yc as F0PdfViewer, hy as F0Provider, Nh as F0QuestionCardMultiStep, Qa as F0RichTextDisplay, ft as F0RichTextEditor, Us as F0SearchInput, tc as F0Select, n as F0SelectInline, Yf as F0Slider, lp as F0TableOfContentPopover, fs as F0TagAlert, $o as F0TagBalance, hs as F0TagCompany, ds as F0TagDot, Ys as F0TagList, ls as F0TagPerson, Rs as F0TagRaw, Jo as F0TagStatus, Ls as F0TagTeam, Ir as F0Text, $t as F0TextAreaInput, s as F0TextAreaInputInline, Gi as F0TextInput, le as F0TextInputInline, o as F0TimelineRow, _c as F0VideoPlayer, jf as F0WizardForm, Ns as F1SearchBox, P as FILE_TYPES, Ja as FileItem, Br as FormCardValueFormatterProvider, Kt as FunnelChartSkeleton, No as GROUP_ID_SYMBOL, Vo as GROUP_KEY_SEPARATOR, qe as GaugeChartSkeleton, $e as HeatmapChartSkeleton, $l as HomeLayout, kt as InlineFieldRow, bt as InlineFieldRowList, Aa as Input, Xl as Layout, ue as LineChart, At as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, tn as NotesTextEditor, ce as NotesTextEditorSkeleton, ee as NumberInput, js as OneCalendar, Ss as OneCalendarInternal, sr as OneEllipsis, h as OneEmptyState, Zs as OneFilterPicker, c as PieChart, xt as PieChartSkeleton, Ti as PongBall, St as PrivacyModeProvider, hh as ProductBlankslate, et as ProductCard, vh as ProductModal, bh as ProductWidget, en as ProgressBarChart, me as RadarChart, st as RadarChartSkeleton, Ua as RichTextDisplay, M as RichTextEditor, nt as ScatterChartSkeleton, Zl as StandardLayout, Im as SurveyAllQuestionsLoadingSkeleton, oh as SurveyAnsweringForm, Om as SurveyFormBuilder, lh as SurveySampleQuestion, Lm as SurveySteppedLoadingSkeleton, Bs as Tag, Gs as TagCounter, pe as Textarea, mi as ThreadItem, Qr as ThreadListSkeleton, ly as ToastProvider, Ql as TwoColumnLayout, te as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, Ch as UpsellingAlert, Th as UpsellingBanner, C as UpsellingButton, Dh as UpsellingPopover, p as VerticalBarChart, Ts as WeekStartDay, It as actionBarStatuses, xi as actionItemStatuses, Ii as adaptDataAdapterToInfiniteScroll, Lr as aiChatFileFromShowFilesItem, oi as aiChatFileFromUploadedFile, Wr as aiChatFilesFromMessage, Gr as aiChatMessageText, Yr as aiTranslations, zd as alertVariantOptions, lu as audioPlayerSizes, eu as avatarVariants, Zt as buildDataCollectionUrlParams, Yn as buildTranslations, cu as buttonDropdownModes, su as buttonDropdownSizes, ou as buttonDropdownVariants, Nl as buttonSizes, Ce as buttonToggleColors, ke as buttonToggleSizes, ie as buttonToggleVariants, Ml as buttonVariants, Nd as cardAlertVariants, pa as cardImageAspectRatios, bo as cardImageFits, ki as cardImageSizes, Ko as chartColorTokens, sc as chipVariants, mp as computeSectionEndIds, vc as configurePdfWorker, fi as contentTypes, Gt as createAtlaskitDriver, _s as createDataSourceDefinition, Zd as createF0FormDefinitionTester, Xd as createF0FormTester, Al as createPageLayoutBlock, jl as createPageLayoutBlockGroup, Hr as createPersonMentionSource, Bd as dataCollectionLocalStorageHandler, Ld as datePickerInlineDismissReasons, Rd as datepickerSizes, xo as defaultTranslations, $i as defineAvailableForm, Jd as describeFormSchema, O as dialog, O as dialogs, Nt as drawers, eo as durationInputSizes, oo as durationUnits, Yt as evaluateRenderIf, tr as experimental, ra as f0FileItemSizes, Zi as f0FormField, Si as fieldsToSeconds, up as flattenElements, du as formatPlaybackTime, Lf as forms, tt as generateAnchorId, vs as getAnimationVariants, ga as getDataCollectionStorageKey, ys as getDataSourcePaginationType, mn as getEmojiLabel, ao as getF0Config, ic as getGranularityDefinition, ks as getGranularityDefinitions, lc as getGranularitySimpleDefinition, sn as getSchemaDefinition, nc as granularityDefinitions, qi as hasF0Config, Ma as inferFieldType, pp as injectSectionEnds, zo as isInfiniteScrollPagination, Bo as isPageBasedPagination, ka as isZodType, Dd as linkVariants, qr as markdownRenderers, vo as mergeDataCollectionFilters, To as modules, Jr as oneIconSizes, ln as parseDataCollectionUrlParams, Rf as pdfScales, Te as predefinedPresets, ec as rangeSeparator, La as readDataCollectionStorage, fp as reconstructElements, _o as resolveDataCollectionFilters, Ks as resolveGranularityDefinition, w as resolveItemNeighbors, E as resolveWindowNeighbors, za as secondsToFields, uo as secondsToVisibleFields, zf as selectInlineDismissReasons, y as selectSizes, he as selectVariants, Be as setDataCollectionUrlParams, Bf as sliderTooltipModes, an as syncDataCollectionUrlParams, Zf as tagDotColors, Xf as timelineRowStatuses, Lt as toasts, da as unwrapZodSchema, ui as usageLimitsPopoverSides, fa as useAiChat, yi as useAiChatTranslations, Ht as useAudioPlayer, bi as useCanvasEntity, pi as useChatHistory, Io as useData, es as useDataSource, g as useDataSourceItemNavigation, vu as useDerivedTranscription, Tt as useDndEvents, Rt as useDraggable, He as useDroppableList, Gn as useEmojiConfetti, ma as useF0AiFormRegistry, rs as useF0Dialog, k as useF0DialogAlikeContext, Qe as useF0Form, Ct as useF0FormDefinition, zr as useFormCardValueFormatter, my as useFormComponent, ts as useGroups, U_ as useIsDesktop, W_ as useIsMobile, jt as useItemNeighbors, Pt as usePrivacyMode, Sn as useReducedMotion, Re as useSchemaDefinition, Go as useSelectable, Kr as useSetFormCardValueFormatter, vi as useToolCallId, Fn as useXRay, R as withDataTestId, de as writeDataCollectionStorage };
|