@factorialco/f0-react 11.0.0 → 11.2.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-BtPiTMRu.js → ChatPostComposerDialog-BRPhPg0V.js} +3 -3
- package/dist/{CoachmarkProvider-rDkLQ01u.js → CoachmarkProvider-Cv-8HfUP.js} +12978 -12978
- package/dist/{DocumentToolbar-KX3rz4K4.js → DocumentToolbar-Dibdy0XD.js} +5 -5
- package/dist/{DocxViewer-BSGDgnM3.js → DocxViewer-D4R37ej-.js} +2 -2
- package/dist/{F0AiProcessingOverlay-B3Spv9Lg.js → F0AiProcessingOverlay-DMiGnFsb.js} +926 -935
- package/dist/{F0CanvasPanel-BUFxHyKh.js → F0CanvasPanel-BwTjB_ef.js} +156 -127
- package/dist/{F0DocumentViewer-B5vLS5aP.js → F0DocumentViewer-CBDtqTP1.js} +8 -8
- package/dist/F0DocumentViewer-vZ5QrV_0.js +3 -0
- package/dist/{F0Map-FN0N9L8R.js → F0Map-xxT7h77R.js} +6 -6
- package/dist/{F0Select-Bzp4aOU7.js → F0Select-DSKdq9ZK.js} +2 -2
- package/dist/{F0Text-eOwHoc51.js → F0Text-CxMxdCn2.js} +2 -2
- package/dist/F0VideoPlayer-B96rE7Un.js +1 -0
- package/dist/{F0VideoPlayer-DRn2ln3H.js → F0VideoPlayer-BXkn2HYD.js} +276 -276
- package/dist/{Map-2DiynZpl.js → Map-DHXAVOwj.js} +9 -9
- package/dist/{PdfThumbnail-CST7SEFz.js → PdfThumbnail-CcphMSG_.js} +1 -1
- package/dist/{SheetViewer-DGsjtuo_.js → SheetViewer-Dfb0hEj5.js} +4 -4
- package/dist/{TextViewer-BjE8AxXq.js → TextViewer-D0aQleNb.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +29 -7
- package/dist/{dist-Ck_UA8Lz.js → dist-B7gjXV8f.js} +1 -1
- package/dist/experimental.d.ts +10 -10
- package/dist/experimental.js +3894 -3894
- package/dist/{exports-BaPJp_sC.d.ts → exports-CYHNvlyA.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +175 -175
- package/dist/{i18n-provider-defaults-Ch0JDGbK.js → i18n-provider-defaults-0FwmF5YL.js} +1 -0
- package/dist/{i18n-provider-defaults-D1lWzbYx.d.ts → i18n-provider-defaults-Yf7knX-_.d.ts} +3 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-2J8R9Uml.d.ts → index-CvmeBmNt.d.ts} +68 -33
- package/dist/{index-Cw2Dwul8.d.ts → index-D7hTWma8.d.ts} +2 -2
- package/dist/{maplibre-Dj1I8pzk.js → maplibre-Be6fCegj.js} +1 -1
- package/dist/{pdfWorker-BYbuhKsY.js → pdfWorker-BrM0bRsr.js} +1 -1
- package/dist/{popover-DNcAIP25.js → popover-CL68oVjH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useData-zygrn6e-.js → useData-B6HLHEev.js} +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-bKmfYHcz.js +0 -3
- package/dist/F0VideoPlayer-wBssbLIF.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, Ar as i, Bn as a, Br as o, C as s, Cn as c, D as l, Dn as u, Dr as d, E as f, En as p, Fn as m, Fr as h, Ft as g, Gn as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, Ir as C, It as w, Jn as T, Jr as E, Jt as D, Kn as O, Kr as k, Kt as A, Ln as j, Lr as M, Lt as N, M as P, Mn as F, Mr as I, N as ee, Nn as te, O as ne, On as re, P as ie, Pn as ae, Pr as oe, Pt as se, Qn as ce, Qt as le, Rn as ue, Rt as de, S as fe, Sn as pe, St as me, T as he, Tn as ge, Un as _e, Ut as ve, Vn as ye, Vr as be, Vt as xe, Wt as Se, X as Ce, Xn as we, Yn as Te, Yt as Ee, Z as De, Zn as Oe, Zt as ke, _ as Ae, _n as je, _r as Me, _t as Ne, ai as Pe, ar as Fe, b as Ie, bn as Le, bt as Re, c as ze, cn as Be, cr as Ve, d as He, dn as Ue, dr as We, ei as Ge, en as Ke, er as qe, f as Je, fn as Ye, fr as Xe, g as Ze, gn as Qe, gr as $e, gt as et, h as tt, hn as nt, hr as rt, ht as it, i as at, ir as ot, j as st, jn as ct, jr as lt, k as ut, kn as dt, kr as ft, kt as pt, l as mt, ln as ht, lr as gt, mn as _t, mr as vt, ni as yt, nn as bt, nr as xt, on as St, or as Ct, ot as wt, p as Tt, pn as Et, pr as Dt, qn as Ot, qr as kt, qt as At, rn as jt, rr as Mt, s as Nt, sn as Pt, sr as Ft, t as It, ti as Lt, tn as Rt, tr as zt, u as Bt, un as Vt, ur as Ht, ut as Ut, v as Wt, vn as Gt, vr as Kt, vt as qt, w as Jt, wn as Yt, x as Xt, xn as Zt, xt as Qt, y as $t, yn as en, yt as tn, zn as nn, zr as rn, zt as an } from "./CoachmarkProvider-
|
|
3
|
-
import { A as on, At as sn, B as cn, Dt as ln, F as un, It as dn, Jt as fn, Lt as pn, M as mn, Mt as hn, N as gn, P as _n, R as vn, U as yn, V as bn, Vt as xn, Xt as Sn, Yt as Cn, Zn as wn, _t as Tn, a as En, an as Dn, ar as L, b as R, cn as On, ct as kn, dn as An, gn as jn, gt as Mn, hn as Nn, ht as Pn, i as Fn, in as z, ir as In, j as Ln, jt as Rn, kt as zn, ln as B, lt as Bn, nn as Vn, nt as Hn, on as Un, or as Wn, pt as Gn, qt as Kn, rn as V, rr as qn, sn as Jn, t as Yn, tn as Xn, ut as Zn, vt as Qn, yt as $n, z as er } from "./popover-
|
|
2
|
+
import { $n as t, A as n, An as r, Ar as i, Bn as a, Br as o, C as s, Cn as c, D as l, Dn as u, Dr as d, E as f, En as p, Fn as m, Fr as h, Ft as g, Gn as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, Ir as C, It as w, Jn as T, Jr as E, Jt as D, Kn as O, Kr as k, Kt as A, Ln as j, Lr as M, Lt as N, M as P, Mn as F, Mr as I, N as ee, Nn as te, O as ne, On as re, P as ie, Pn as ae, Pr as oe, Pt as se, Qn as ce, Qt as le, Rn as ue, Rt as de, S as fe, Sn as pe, St as me, T as he, Tn as ge, Un as _e, Ut as ve, Vn as ye, Vr as be, Vt as xe, Wt as Se, X as Ce, Xn as we, Yn as Te, Yt as Ee, Z as De, Zn as Oe, Zt as ke, _ as Ae, _n as je, _r as Me, _t as Ne, ai as Pe, ar as Fe, b as Ie, bn as Le, bt as Re, c as ze, cn as Be, cr as Ve, d as He, dn as Ue, dr as We, ei as Ge, en as Ke, er as qe, f as Je, fn as Ye, fr as Xe, g as Ze, gn as Qe, gr as $e, gt as et, h as tt, hn as nt, hr as rt, ht as it, i as at, ir as ot, j as st, jn as ct, jr as lt, k as ut, kn as dt, kr as ft, kt as pt, l as mt, ln as ht, lr as gt, mn as _t, mr as vt, ni as yt, nn as bt, nr as xt, on as St, or as Ct, ot as wt, p as Tt, pn as Et, pr as Dt, qn as Ot, qr as kt, qt as At, rn as jt, rr as Mt, s as Nt, sn as Pt, sr as Ft, t as It, ti as Lt, tn as Rt, tr as zt, u as Bt, un as Vt, ur as Ht, ut as Ut, v as Wt, vn as Gt, vr as Kt, vt as qt, w as Jt, wn as Yt, x as Xt, xn as Zt, xt as Qt, y as $t, yn as en, yt as tn, zn as nn, zr as rn, zt as an } from "./CoachmarkProvider-Cv-8HfUP.js";
|
|
3
|
+
import { A as on, At as sn, B as cn, Dt as ln, F as un, It as dn, Jt as fn, Lt as pn, M as mn, Mt as hn, N as gn, P as _n, R as vn, U as yn, V as bn, Vt as xn, Xt as Sn, Yt as Cn, Zn as wn, _t as Tn, a as En, an as Dn, ar as L, b as R, cn as On, ct as kn, dn as An, gn as jn, gt as Mn, hn as Nn, ht as Pn, i as Fn, in as z, ir as In, j as Ln, jt as Rn, kt as zn, ln as B, lt as Bn, nn as Vn, nt as Hn, on as Un, or as Wn, pt as Gn, qt as Kn, rn as V, rr as qn, sn as Jn, t as Yn, tn as Xn, ut as Zn, vt as Qn, yt as $n, z as er } from "./popover-CL68oVjH.js";
|
|
4
4
|
import { A as tr, C as nr, D as rr, F as ir, I as ar, L as H, M as or, N as sr, O as cr, P as lr, R as ur, S as dr, _ as fr, b as pr, c as mr, f as hr, g as gr, h as _r, j as vr, k as yr, l as br, m as xr, p as Sr, v as Cr, w as wr, x as Tr, y as Er } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { n as Dr, r as Or, t as kr } from "./F0Text-
|
|
6
|
-
import { A as Ar, C as jr, D as Mr, E as Nr, F as Pr, I as Fr, L as Ir, M as Lr, N as Rr, O as zr, P as Br, R as Vr, S as Hr, T as Ur, _ as Wr, a as Gr, b as Kr, c as qr, d as Jr, f as Yr, g as Xr, h as Zr, i as Qr, j as $r, k as ei, l as ti, m as ni, n as ri, o as ii, p as ai, r as oi, s as si, t as ci, u as li, v as ui, w as di, x as fi, y as pi, z as mi } from "./F0AiProcessingOverlay-
|
|
7
|
-
import { $n as hi, $o as gi,
|
|
8
|
-
import { t as mo } from "./i18n-provider-defaults-
|
|
9
|
-
import { C as ho, D as go, F as _o, I as vo, J as yo, N as bo, O as xo, S as So, _ as Co, a as wo, d as To, f as Eo, i as Do, k as Oo, l as ko, n as Ao, q as jo, r as Mo, t as No, x as Po, y as Fo } from "./useData-
|
|
10
|
-
import { $ as Io, B as Lo, Bt as Ro, Ct as zo, Dn as Bo, Dr as Vo, Dt as Ho, Er as Uo, Fn as Wo, Ft as Go, G as Ko, H as qo, It as Jo, J as Yo, K as Xo, L as Zo, Ln as Qo, Lt as $o, Mr as es, Mt as ts, Nr as ns, Nt as rs, On as is, Or as as, Ot as os, Pt as ss, Rt as cs, U as ls, V as us, W as ds, X as fs, Z as ps, _ as ms, _t as hs, a as gs, an as _s, c as vs, ct as ys, dr as bs, et as xs, fr as Ss, g as Cs, gt as ws, h as Ts, ht as Es, i as Ds, jr as Os, jt as ks, kn as As, kr as js, kt as Ms, l as Ns, lr as Ps, m as Fs, mr as Is, mt as Ls, nt as Rs, o as zs, p as Bs, pt as Vs, q as Hs, r as Us, rn as Ws, s as Gs, st as Ks, t as qs, tt as Js, u as Ys, v as Xs, vr as Zs, w as Qs, wt as $s, xt as ec, y as tc, yt as nc, z as rc } from "./F0Select-
|
|
5
|
+
import { n as Dr, r as Or, t as kr } from "./F0Text-CxMxdCn2.js";
|
|
6
|
+
import { A as Ar, C as jr, D as Mr, E as Nr, F as Pr, I as Fr, L as Ir, M as Lr, N as Rr, O as zr, P as Br, R as Vr, S as Hr, T as Ur, _ as Wr, a as Gr, b as Kr, c as qr, d as Jr, f as Yr, g as Xr, h as Zr, i as Qr, j as $r, k as ei, l as ti, m as ni, n as ri, o as ii, p as ai, r as oi, s as si, t as ci, u as li, v as ui, w as di, x as fi, y as pi, z as mi } from "./F0AiProcessingOverlay-DMiGnFsb.js";
|
|
7
|
+
import { $n as hi, $o as gi, $s as _i, A as vi, At as yi, Ba as bi, Bn as xi, Br as Si, Bs as Ci, Cr as wi, D as Ti, Ds as Ei, E as Di, Fa as Oi, Fr as ki, Gn as Ai, Gr as ji, Gs as Mi, Hn as Ni, Hs as Pi, Ia as Fi, Ir as Ii, It as Li, Jn as Ri, Js as zi, Jt as Bi, Kn as Vi, Kr as Hi, Ks as Ui, Kt as Wi, Lo as Gi, Lt as Ki, M as qi, Ma as Ji, Mr as Yi, Mt as Xi, N as Zi, Nr as Qi, Ns as $i, Nt as ea, O as ta, Ot as na, Pa as ra, Pt as ia, Qt as aa, Rr as oa, Rt as sa, T as ca, Tr as la, Un as ua, Uo as da, Ur as fa, Us as pa, V as ma, Va as ha, Vn as ga, Vs as _a, Wn as va, Wr as ya, Ws as ba, Xa as xa, Xo as Sa, Xt as Ca, Yn as wa, Yr as Ta, Yt as Ea, Za as Da, Zt as Oa, _a as ka, ac as Aa, br as ja, cc as Ma, er as Na, es as Pa, fo as Fa, fs as Ia, hr as La, io as Ra, ir as za, j as Ba, jr as Va, jt as Ha, k as Ua, ka as Wa, ks as Ga, mr as Ka, n as qa, nr as Ja, ns as Ya, oo as Xa, os as Za, po as Qa, qt as $a, rr as eo, sa as to, ss as no, t as ro, tr as io, tt as ao, uo as oo, va as so, xo as co, xr as lo, yr as uo, z as fo, zr as po } from "./F0CanvasPanel-BwTjB_ef.js";
|
|
8
|
+
import { t as mo } from "./i18n-provider-defaults-0FwmF5YL.js";
|
|
9
|
+
import { C as ho, D as go, F as _o, I as vo, J as yo, N as bo, O as xo, S as So, _ as Co, a as wo, d as To, f as Eo, i as Do, k as Oo, l as ko, n as Ao, q as jo, r as Mo, t as No, x as Po, y as Fo } from "./useData-B6HLHEev.js";
|
|
10
|
+
import { $ as Io, B as Lo, Bt as Ro, Ct as zo, Dn as Bo, Dr as Vo, Dt as Ho, Er as Uo, Fn as Wo, Ft as Go, G as Ko, H as qo, It as Jo, J as Yo, K as Xo, L as Zo, Ln as Qo, Lt as $o, Mr as es, Mt as ts, Nr as ns, Nt as rs, On as is, Or as as, Ot as os, Pt as ss, Rt as cs, U as ls, V as us, W as ds, X as fs, Z as ps, _ as ms, _t as hs, a as gs, an as _s, c as vs, ct as ys, dr as bs, et as xs, fr as Ss, g as Cs, gt as ws, h as Ts, ht as Es, i as Ds, jr as Os, jt as ks, kn as As, kr as js, kt as Ms, l as Ns, lr as Ps, m as Fs, mr as Is, mt as Ls, nt as Rs, o as zs, p as Bs, pt as Vs, q as Hs, r as Us, rn as Ws, s as Gs, st as Ks, t as qs, tt as Js, u as Ys, v as Xs, vr as Zs, w as Qs, wt as $s, xt as ec, y as tc, yt as nc, z as rc } from "./F0Select-DSKdq9ZK.js";
|
|
11
11
|
import { t as ic } from "./Check-DAp9gCRh.js";
|
|
12
|
-
import { a as ac, i as oc, n as sc, r as cc, t as lc } from "./F0VideoPlayer-
|
|
13
|
-
import { t as uc } from "./pdfWorker-
|
|
14
|
-
import { n as dc, t as fc } from "./F0DocumentViewer-
|
|
12
|
+
import { a as ac, i as oc, n as sc, r as cc, t as lc } from "./F0VideoPlayer-BXkn2HYD.js";
|
|
13
|
+
import { t as uc } from "./pdfWorker-BrM0bRsr.js";
|
|
14
|
+
import { n as dc, t as fc } from "./F0DocumentViewer-CBDtqTP1.js";
|
|
15
15
|
import * as U from "react";
|
|
16
16
|
import pc, { Children as mc, Fragment as hc, createContext as gc, forwardRef as _c, isValidElement as vc, memo as yc, useCallback as W, useContext as bc, useEffect as G, useId as xc, useImperativeHandle as Sc, useLayoutEffect as Cc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as wc } from "react";
|
|
17
17
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -35,7 +35,7 @@ var Oc = {
|
|
|
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(ha, {
|
|
39
39
|
layout: "home",
|
|
40
40
|
children: /* @__PURE__ */ Z("div", {
|
|
41
41
|
ref: r,
|
|
@@ -69,7 +69,7 @@ var Oc = {
|
|
|
69
69
|
}), Ac = Nn({
|
|
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
|
-
}), jc = pc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
72
|
+
}), jc = pc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(ha, {
|
|
73
73
|
layout: "standard",
|
|
74
74
|
children: /* @__PURE__ */ X("section", {
|
|
75
75
|
ref: a,
|
|
@@ -2944,7 +2944,7 @@ var Ol = Cl("Dashboard", Dl), kl = L(qn("Dashboard", Ol)), Al = Nn({
|
|
|
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(so, {
|
|
2948
2948
|
items: jl(d),
|
|
2949
2949
|
"data-testid": "actions-dropdown"
|
|
2950
2950
|
}) : null]
|
|
@@ -3783,7 +3783,7 @@ var ou = (e) => typeof e == "boolean" || !e ? {
|
|
|
3783
3783
|
})]
|
|
3784
3784
|
});
|
|
3785
3785
|
su.displayName = "F0BigNumber";
|
|
3786
|
-
var lu =
|
|
3786
|
+
var lu = Wa(su, cu), uu = L(lu), du = [
|
|
3787
3787
|
"default",
|
|
3788
3788
|
"outline",
|
|
3789
3789
|
"neutral"
|
|
@@ -4345,7 +4345,7 @@ var gd = Nn({
|
|
|
4345
4345
|
gu(t)
|
|
4346
4346
|
]
|
|
4347
4347
|
}), vd = ({ isPlaying: e, disabled: t, size: n = "md", onToggle: r }) => {
|
|
4348
|
-
let i = V(), a = e ?
|
|
4348
|
+
let i = V(), a = e ? Qa : Fa;
|
|
4349
4349
|
return /* @__PURE__ */ X("button", {
|
|
4350
4350
|
type: "button",
|
|
4351
4351
|
"aria-label": e ? i.audioPlayer.pause : i.audioPlayer.play,
|
|
@@ -4361,7 +4361,7 @@ var gd = Nn({
|
|
|
4361
4361
|
children: /* @__PURE__ */ X(R, {
|
|
4362
4362
|
variant: "ghost",
|
|
4363
4363
|
size: "sm",
|
|
4364
|
-
icon:
|
|
4364
|
+
icon: Ei,
|
|
4365
4365
|
label: c.audioPlayer.options,
|
|
4366
4366
|
hideLabel: !0,
|
|
4367
4367
|
disabled: r
|
|
@@ -4862,13 +4862,13 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4862
4862
|
disabled: e.disabled,
|
|
4863
4863
|
ariaLabel: e.ariaLabel
|
|
4864
4864
|
}, t);
|
|
4865
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
4865
|
+
case "dropdown": return /* @__PURE__ */ X(so, {
|
|
4866
4866
|
items: e.items,
|
|
4867
4867
|
disabled: e.disabled,
|
|
4868
4868
|
children: /* @__PURE__ */ X(R, {
|
|
4869
4869
|
variant: "outline",
|
|
4870
4870
|
size: "sm",
|
|
4871
|
-
icon:
|
|
4871
|
+
icon: Ei,
|
|
4872
4872
|
label: e.ariaLabel,
|
|
4873
4873
|
hideLabel: !0,
|
|
4874
4874
|
disabled: e.disabled
|
|
@@ -4878,7 +4878,7 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4878
4878
|
})
|
|
4879
4879
|
}), Pd = ({ item: e, open: t, onOpenChange: n }) => {
|
|
4880
4880
|
let r = hn(), i = V().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
4881
|
-
return /* @__PURE__ */ X(
|
|
4881
|
+
return /* @__PURE__ */ X(fa, {
|
|
4882
4882
|
open: t,
|
|
4883
4883
|
onOpenChange: n,
|
|
4884
4884
|
asChild: !0,
|
|
@@ -4886,7 +4886,7 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4886
4886
|
className: "flex flex-col",
|
|
4887
4887
|
children: [/* @__PURE__ */ Z("div", {
|
|
4888
4888
|
className: "flex items-center",
|
|
4889
|
-
children: [/* @__PURE__ */ X(
|
|
4889
|
+
children: [/* @__PURE__ */ X(ji, {
|
|
4890
4890
|
asChild: !0,
|
|
4891
4891
|
children: /* @__PURE__ */ X("button", {
|
|
4892
4892
|
type: "button",
|
|
@@ -4904,7 +4904,7 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4904
4904
|
children: e.summary
|
|
4905
4905
|
}) : null,
|
|
4906
4906
|
a ? /* @__PURE__ */ X(Nd, { actions: e.actions }) : null,
|
|
4907
|
-
/* @__PURE__ */ X(
|
|
4907
|
+
/* @__PURE__ */ X(ji, {
|
|
4908
4908
|
asChild: !0,
|
|
4909
4909
|
children: /* @__PURE__ */ X(R, {
|
|
4910
4910
|
variant: "outline",
|
|
@@ -4933,7 +4933,7 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4933
4933
|
},
|
|
4934
4934
|
transition: { duration: r ? 0 : .2 },
|
|
4935
4935
|
className: "overflow-hidden",
|
|
4936
|
-
children: /* @__PURE__ */ X(
|
|
4936
|
+
children: /* @__PURE__ */ X(ya, {
|
|
4937
4937
|
forceMount: !0,
|
|
4938
4938
|
asChild: !0,
|
|
4939
4939
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4977,7 +4977,7 @@ var Ad = qn("F0AudioPlayer", L(kd)), jd = qn("F0AudioPlayerCard", L(Dd)), Md = f
|
|
|
4977
4977
|
});
|
|
4978
4978
|
});
|
|
4979
4979
|
Id.displayName = "F0Accordion";
|
|
4980
|
-
var Ld = L(qn("F0Accordion",
|
|
4980
|
+
var Ld = L(qn("F0Accordion", Wa(Id, Fd))), Rd = [
|
|
4981
4981
|
"info",
|
|
4982
4982
|
"warning",
|
|
4983
4983
|
"critical",
|
|
@@ -5048,9 +5048,9 @@ var Vd = L(qn("F0ChipList", Bd)), Hd = [
|
|
|
5048
5048
|
"positive",
|
|
5049
5049
|
"transparent"
|
|
5050
5050
|
], Gd = {
|
|
5051
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
5051
|
+
get: async (e) => JSON.parse(localStorage.getItem(la(e)) ?? "{}"),
|
|
5052
5052
|
set: async (e, t) => {
|
|
5053
|
-
localStorage.setItem(
|
|
5053
|
+
localStorage.setItem(la(e), JSON.stringify(t));
|
|
5054
5054
|
}
|
|
5055
5055
|
}, Kd = ({ 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 }) => {
|
|
5056
5056
|
let [b, x] = J(n);
|
|
@@ -5173,11 +5173,11 @@ var Qd = Zd;
|
|
|
5173
5173
|
//#endregion
|
|
5174
5174
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
5175
5175
|
function $d(e) {
|
|
5176
|
-
let t =
|
|
5176
|
+
let t = Oa(e).shape, n = [];
|
|
5177
5177
|
for (let [e, r] of Object.entries(t)) {
|
|
5178
|
-
let t = r, i =
|
|
5178
|
+
let t = r, i = $a(t);
|
|
5179
5179
|
if (!i) continue;
|
|
5180
|
-
let a =
|
|
5180
|
+
let a = Ea(t, i), o = Zt(t, a), s = {
|
|
5181
5181
|
name: e,
|
|
5182
5182
|
type: a,
|
|
5183
5183
|
label: i.label,
|
|
@@ -5249,9 +5249,9 @@ function tf(e) {
|
|
|
5249
5249
|
let r = {
|
|
5250
5250
|
...n,
|
|
5251
5251
|
...e
|
|
5252
|
-
}, i =
|
|
5252
|
+
}, i = Oa(t), a = [];
|
|
5253
5253
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
5254
|
-
let n =
|
|
5254
|
+
let n = $a(t);
|
|
5255
5255
|
n?.renderIf ? Gt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
5256
5256
|
}
|
|
5257
5257
|
return a;
|
|
@@ -5295,12 +5295,12 @@ var rf = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
5295
5295
|
modal: !0,
|
|
5296
5296
|
children: /* @__PURE__ */ Z("div", {
|
|
5297
5297
|
className: "flex flex-col gap-4 py-2",
|
|
5298
|
-
children: [/* @__PURE__ */ X(
|
|
5298
|
+
children: [/* @__PURE__ */ X(ka, {
|
|
5299
5299
|
type: n,
|
|
5300
5300
|
size: "lg"
|
|
5301
5301
|
}), /* @__PURE__ */ Z("div", {
|
|
5302
5302
|
className: "flex flex-col gap-0.5",
|
|
5303
|
-
children: [/* @__PURE__ */ X(
|
|
5303
|
+
children: [/* @__PURE__ */ X(Yi, {
|
|
5304
5304
|
className: "text-xl sm:text-lg",
|
|
5305
5305
|
children: r
|
|
5306
5306
|
}), /* @__PURE__ */ X(ue, {
|
|
@@ -5687,7 +5687,7 @@ var Sf = () => {}, Cf = ({ steps: e, children: t, isOpen: n, onClose: r = Sf, ti
|
|
|
5687
5687
|
onClose: r
|
|
5688
5688
|
}), 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(() => ({
|
|
5689
5689
|
label: x,
|
|
5690
|
-
icon: b ? void 0 :
|
|
5690
|
+
icon: b ? void 0 : _i,
|
|
5691
5691
|
onClick: () => void h.goNext(),
|
|
5692
5692
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
5693
5693
|
loading: h.loading
|
|
@@ -5744,14 +5744,14 @@ Cf.displayName = "F0Wizard", L(Cf);
|
|
|
5744
5744
|
//#endregion
|
|
5745
5745
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
5746
5746
|
function wf(e) {
|
|
5747
|
-
let t =
|
|
5748
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
5747
|
+
let t = Oa(e).shape, n = Object.entries(t);
|
|
5748
|
+
return n.length !== 0 && n.every(([, e]) => $a(e)?.disabled === !0);
|
|
5749
5749
|
}
|
|
5750
5750
|
function Tf(e, t) {
|
|
5751
5751
|
if (t) return Object.keys(t);
|
|
5752
|
-
let n =
|
|
5752
|
+
let n = Oa(e).shape, r = /* @__PURE__ */ new Set();
|
|
5753
5753
|
for (let e of Object.values(n)) {
|
|
5754
|
-
let t =
|
|
5754
|
+
let t = $a(e);
|
|
5755
5755
|
t?.section && r.add(t.section);
|
|
5756
5756
|
}
|
|
5757
5757
|
return Array.from(r);
|
|
@@ -5759,15 +5759,15 @@ function Tf(e, t) {
|
|
|
5759
5759
|
function Ef(e, t) {
|
|
5760
5760
|
let n = e.shape, r = {};
|
|
5761
5761
|
for (let [e, i] of Object.entries(n)) {
|
|
5762
|
-
let n =
|
|
5762
|
+
let n = $a(i);
|
|
5763
5763
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
5764
5764
|
}
|
|
5765
|
-
return
|
|
5765
|
+
return va(r);
|
|
5766
5766
|
}
|
|
5767
5767
|
function Df(e, t, n) {
|
|
5768
5768
|
let r = t ?? {};
|
|
5769
5769
|
if (n) return n({ data: r });
|
|
5770
|
-
let i =
|
|
5770
|
+
let i = Oa(e).shape;
|
|
5771
5771
|
return Object.entries(i).every(([e, t]) => {
|
|
5772
5772
|
if (t.isOptional()) return !0;
|
|
5773
5773
|
let n = r[e];
|
|
@@ -5993,7 +5993,7 @@ function Nf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
5993
5993
|
});
|
|
5994
5994
|
}
|
|
5995
5995
|
function Pf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: u, allowStepSkipping: d, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
|
|
5996
|
-
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() =>
|
|
5996
|
+
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Oa(v), [v]), E = K(() => Tf(v, y), [v, y]), D = W((e) => wf(Ef(T, e)), [T]), O = Ye(), k = q(b ? { ...b } : {}), A = q(s ?? 0), j = W((e) => async () => {
|
|
5997
5997
|
await O.submit();
|
|
5998
5998
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
5999
5999
|
title: y?.[e]?.title ?? e,
|
|
@@ -6355,7 +6355,7 @@ var Hf = { open: Vf }, Uf = [
|
|
|
6355
6355
|
});
|
|
6356
6356
|
});
|
|
6357
6357
|
$f.displayName = "F0Slider";
|
|
6358
|
-
var ep = qn("F0Slider",
|
|
6358
|
+
var ep = qn("F0Slider", Wa(L($f), Jf)), tp = [
|
|
6359
6359
|
"completed",
|
|
6360
6360
|
"in-progress",
|
|
6361
6361
|
"not-started"
|
|
@@ -6623,7 +6623,7 @@ function yp(e) {
|
|
|
6623
6623
|
}
|
|
6624
6624
|
//#endregion
|
|
6625
6625
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
6626
|
-
var bp = jn.create(
|
|
6626
|
+
var bp = jn.create(na), xp = yc(() => {
|
|
6627
6627
|
let e = V();
|
|
6628
6628
|
return /* @__PURE__ */ Z("div", {
|
|
6629
6629
|
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",
|
|
@@ -6979,12 +6979,12 @@ var Ip = () => {
|
|
|
6979
6979
|
let { isQuestionTypeAllowed: e, datasets: t } = Mp(), { t: n } = V(), r = [
|
|
6980
6980
|
{
|
|
6981
6981
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
6982
|
-
icon:
|
|
6982
|
+
icon: oo,
|
|
6983
6983
|
questionType: "rating"
|
|
6984
6984
|
},
|
|
6985
6985
|
{
|
|
6986
6986
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
6987
|
-
icon:
|
|
6987
|
+
icon: Ci,
|
|
6988
6988
|
questionType: "multi-select"
|
|
6989
6989
|
},
|
|
6990
6990
|
{
|
|
@@ -6994,32 +6994,32 @@ var Ip = () => {
|
|
|
6994
6994
|
},
|
|
6995
6995
|
{
|
|
6996
6996
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
6997
|
-
icon:
|
|
6997
|
+
icon: Ra,
|
|
6998
6998
|
questionType: "text"
|
|
6999
6999
|
},
|
|
7000
7000
|
{
|
|
7001
7001
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
7002
|
-
icon:
|
|
7002
|
+
icon: gi,
|
|
7003
7003
|
questionType: "longText"
|
|
7004
7004
|
},
|
|
7005
7005
|
{
|
|
7006
7006
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
7007
|
-
icon:
|
|
7007
|
+
icon: Gi,
|
|
7008
7008
|
questionType: "numeric"
|
|
7009
7009
|
},
|
|
7010
7010
|
{
|
|
7011
7011
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
7012
|
-
icon:
|
|
7012
|
+
icon: Pa,
|
|
7013
7013
|
questionType: "link"
|
|
7014
7014
|
},
|
|
7015
7015
|
{
|
|
7016
7016
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
7017
|
-
icon:
|
|
7017
|
+
icon: zi,
|
|
7018
7018
|
questionType: "date"
|
|
7019
7019
|
},
|
|
7020
7020
|
{
|
|
7021
7021
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
7022
|
-
icon:
|
|
7022
|
+
icon: Da,
|
|
7023
7023
|
questionType: "file"
|
|
7024
7024
|
},
|
|
7025
7025
|
{
|
|
@@ -7035,17 +7035,17 @@ var Ip = () => {
|
|
|
7035
7035
|
})) : [];
|
|
7036
7036
|
return [...r, ...i];
|
|
7037
7037
|
}, Lp = {
|
|
7038
|
-
rating:
|
|
7039
|
-
"multi-select":
|
|
7038
|
+
rating: oo,
|
|
7039
|
+
"multi-select": Ci,
|
|
7040
7040
|
select: ic,
|
|
7041
|
-
text:
|
|
7042
|
-
longText:
|
|
7043
|
-
numeric:
|
|
7044
|
-
link:
|
|
7045
|
-
date:
|
|
7041
|
+
text: Ra,
|
|
7042
|
+
longText: gi,
|
|
7043
|
+
numeric: Gi,
|
|
7044
|
+
link: Pa,
|
|
7045
|
+
date: zi,
|
|
7046
7046
|
"dropdown-single": jo,
|
|
7047
7047
|
"dropdown-multi": jo,
|
|
7048
|
-
file:
|
|
7048
|
+
file: Da,
|
|
7049
7049
|
checkbox: js
|
|
7050
7050
|
}, Rp = () => {
|
|
7051
7051
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Mp(), [a, o] = J(!1), s = Ip(), { t: c } = V(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -7079,7 +7079,7 @@ var Ip = () => {
|
|
|
7079
7079
|
children: /* @__PURE__ */ Z("div", {
|
|
7080
7080
|
className: "flex w-full flex-row items-center gap-2",
|
|
7081
7081
|
children: [/* @__PURE__ */ X(z, {
|
|
7082
|
-
icon:
|
|
7082
|
+
icon: Ma,
|
|
7083
7083
|
color: "default"
|
|
7084
7084
|
}), /* @__PURE__ */ X("span", {
|
|
7085
7085
|
className: "flex-1 text-base font-medium",
|
|
@@ -7132,7 +7132,7 @@ var Ip = () => {
|
|
|
7132
7132
|
children: /* @__PURE__ */ Z("div", {
|
|
7133
7133
|
className: "flex w-full flex-row items-center gap-2",
|
|
7134
7134
|
children: [/* @__PURE__ */ X(z, {
|
|
7135
|
-
icon:
|
|
7135
|
+
icon: Ci,
|
|
7136
7136
|
color: "default"
|
|
7137
7137
|
}), /* @__PURE__ */ X("span", {
|
|
7138
7138
|
className: "flex-1",
|
|
@@ -7312,7 +7312,7 @@ var Gp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7312
7312
|
className: "flex w-full flex-row items-center gap-2",
|
|
7313
7313
|
children: [
|
|
7314
7314
|
/* @__PURE__ */ X(Dn, {
|
|
7315
|
-
icon:
|
|
7315
|
+
icon: no,
|
|
7316
7316
|
color: "default"
|
|
7317
7317
|
}),
|
|
7318
7318
|
/* @__PURE__ */ X("span", {
|
|
@@ -7424,7 +7424,7 @@ var Gp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7424
7424
|
className: "flex w-full flex-row items-center gap-2",
|
|
7425
7425
|
children: [
|
|
7426
7426
|
/* @__PURE__ */ X(Dn, {
|
|
7427
|
-
icon:
|
|
7427
|
+
icon: Ci,
|
|
7428
7428
|
color: "default"
|
|
7429
7429
|
}),
|
|
7430
7430
|
/* @__PURE__ */ X("span", {
|
|
@@ -7453,11 +7453,11 @@ var Gp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7453
7453
|
let { t: a } = V(), { labels: o } = Mp();
|
|
7454
7454
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(vn, {}) : null, /* @__PURE__ */ Z(mn, { children: [e ? /* @__PURE__ */ X(qp, {
|
|
7455
7455
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
7456
|
-
icon:
|
|
7456
|
+
icon: Ya,
|
|
7457
7457
|
onClick: r
|
|
7458
7458
|
}) : null, t ? /* @__PURE__ */ X(qp, {
|
|
7459
7459
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
7460
|
-
icon:
|
|
7460
|
+
icon: $i,
|
|
7461
7461
|
onClick: i,
|
|
7462
7462
|
critical: !0
|
|
7463
7463
|
}) : null] })] });
|
|
@@ -7475,7 +7475,7 @@ function Yp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
7475
7475
|
tabIndex: -1,
|
|
7476
7476
|
asChild: !0,
|
|
7477
7477
|
children: /* @__PURE__ */ X(R, {
|
|
7478
|
-
icon:
|
|
7478
|
+
icon: Ei,
|
|
7479
7479
|
label: o("surveyFormBuilder.labels.actions"),
|
|
7480
7480
|
size: "md",
|
|
7481
7481
|
variant: "ghost",
|
|
@@ -7492,13 +7492,13 @@ function Yp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
7492
7492
|
}),
|
|
7493
7493
|
T ? /* @__PURE__ */ X(mn, { children: /* @__PURE__ */ X(Gp, {
|
|
7494
7494
|
label: o("surveyFormBuilder.labels.required"),
|
|
7495
|
-
icon:
|
|
7495
|
+
icon: Aa,
|
|
7496
7496
|
checked: !!l?.required,
|
|
7497
7497
|
onChange: _
|
|
7498
7498
|
}) }) : null,
|
|
7499
7499
|
E ? /* @__PURE__ */ X(mn, { children: /* @__PURE__ */ X(Gp, {
|
|
7500
7500
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
7501
|
-
icon:
|
|
7501
|
+
icon: Ci,
|
|
7502
7502
|
checked: p,
|
|
7503
7503
|
onChange: b
|
|
7504
7504
|
}) }) : null,
|
|
@@ -7688,7 +7688,7 @@ var Xp = ({ notice: e, className: t, children: n }) => {
|
|
|
7688
7688
|
children: /* @__PURE__ */ Z("div", {
|
|
7689
7689
|
className: "flex w-full flex-row items-center gap-2",
|
|
7690
7690
|
children: [/* @__PURE__ */ X(z, {
|
|
7691
|
-
icon:
|
|
7691
|
+
icon: Ma,
|
|
7692
7692
|
color: "default"
|
|
7693
7693
|
}), /* @__PURE__ */ X("span", {
|
|
7694
7694
|
className: "flex-1 text-base font-medium",
|
|
@@ -7740,7 +7740,7 @@ var Xp = ({ notice: e, className: t, children: n }) => {
|
|
|
7740
7740
|
children: /* @__PURE__ */ Z("div", {
|
|
7741
7741
|
className: "flex w-full flex-row items-center gap-2",
|
|
7742
7742
|
children: [/* @__PURE__ */ X(z, {
|
|
7743
|
-
icon:
|
|
7743
|
+
icon: Ci,
|
|
7744
7744
|
color: "default"
|
|
7745
7745
|
}), /* @__PURE__ */ X("span", {
|
|
7746
7746
|
className: "flex-1",
|
|
@@ -7974,8 +7974,8 @@ var $p = ({ value: e, label: t, ...n }) => {
|
|
|
7974
7974
|
required: t.required,
|
|
7975
7975
|
maxDecimals: 0,
|
|
7976
7976
|
placeholder: s,
|
|
7977
|
-
icon:
|
|
7978
|
-
}) : /* @__PURE__ */ X(
|
|
7977
|
+
icon: Gi
|
|
7978
|
+
}) : /* @__PURE__ */ X(Ri, {
|
|
7979
7979
|
type: "text",
|
|
7980
7980
|
size: "md",
|
|
7981
7981
|
value: s,
|
|
@@ -7983,7 +7983,7 @@ var $p = ({ value: e, label: t, ...n }) => {
|
|
|
7983
7983
|
disabled: !0,
|
|
7984
7984
|
label: n("surveyFormBuilder.answer.label"),
|
|
7985
7985
|
hideLabel: !0,
|
|
7986
|
-
icon:
|
|
7986
|
+
icon: Gi
|
|
7987
7987
|
})
|
|
7988
7988
|
});
|
|
7989
7989
|
}, sm = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -8157,7 +8157,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8157
8157
|
children: /* @__PURE__ */ X("div", {
|
|
8158
8158
|
className: H("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
8159
8159
|
children: /* @__PURE__ */ X(Dn, {
|
|
8160
|
-
icon:
|
|
8160
|
+
icon: Ia,
|
|
8161
8161
|
size: "sm"
|
|
8162
8162
|
})
|
|
8163
8163
|
})
|
|
@@ -8180,13 +8180,13 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8180
8180
|
children: [/* @__PURE__ */ X(R, {
|
|
8181
8181
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
8182
8182
|
variant: "ghost",
|
|
8183
|
-
icon: c ? Or :
|
|
8183
|
+
icon: c ? Or : _a,
|
|
8184
8184
|
onClick: x,
|
|
8185
8185
|
hideLabel: !0
|
|
8186
8186
|
}), /* @__PURE__ */ X(R, {
|
|
8187
8187
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
8188
8188
|
variant: "ghost",
|
|
8189
|
-
icon:
|
|
8189
|
+
icon: $i,
|
|
8190
8190
|
hideLabel: !0,
|
|
8191
8191
|
onClick: S
|
|
8192
8192
|
})]
|
|
@@ -8413,7 +8413,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8413
8413
|
h && c.start(e);
|
|
8414
8414
|
},
|
|
8415
8415
|
children: /* @__PURE__ */ X(z, {
|
|
8416
|
-
icon:
|
|
8416
|
+
icon: Ia,
|
|
8417
8417
|
size: "sm"
|
|
8418
8418
|
})
|
|
8419
8419
|
}) : null, /* @__PURE__ */ X(hm, { ...e.question })]
|
|
@@ -8443,7 +8443,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8443
8443
|
f && i.start(e);
|
|
8444
8444
|
},
|
|
8445
8445
|
children: /* @__PURE__ */ X(z, {
|
|
8446
|
-
icon:
|
|
8446
|
+
icon: Ia,
|
|
8447
8447
|
size: "sm"
|
|
8448
8448
|
})
|
|
8449
8449
|
}) : null, /* @__PURE__ */ X(hm, { ...e })]
|
|
@@ -8475,7 +8475,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8475
8475
|
});
|
|
8476
8476
|
}, x = [{
|
|
8477
8477
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
8478
|
-
icon:
|
|
8478
|
+
icon: Ya,
|
|
8479
8479
|
onClick: () => {
|
|
8480
8480
|
d?.({
|
|
8481
8481
|
elementId: e,
|
|
@@ -8484,7 +8484,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8484
8484
|
}
|
|
8485
8485
|
}, {
|
|
8486
8486
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
8487
|
-
icon:
|
|
8487
|
+
icon: $i,
|
|
8488
8488
|
onClick: () => {
|
|
8489
8489
|
u(e);
|
|
8490
8490
|
},
|
|
@@ -8529,14 +8529,14 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8529
8529
|
}) : null,
|
|
8530
8530
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
8531
8531
|
className: H("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
8532
|
-
children: /* @__PURE__ */ X(
|
|
8532
|
+
children: /* @__PURE__ */ X(so, {
|
|
8533
8533
|
items: x,
|
|
8534
|
-
icon:
|
|
8534
|
+
icon: Ei,
|
|
8535
8535
|
open: p,
|
|
8536
8536
|
onOpenChange: m,
|
|
8537
8537
|
align: "start",
|
|
8538
8538
|
children: /* @__PURE__ */ X(R, {
|
|
8539
|
-
icon:
|
|
8539
|
+
icon: Ei,
|
|
8540
8540
|
label: h("surveyFormBuilder.actions.actions"),
|
|
8541
8541
|
size: "md",
|
|
8542
8542
|
variant: "ghost",
|
|
@@ -8605,7 +8605,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8605
8605
|
o.start(e);
|
|
8606
8606
|
},
|
|
8607
8607
|
children: /* @__PURE__ */ X(z, {
|
|
8608
|
-
icon:
|
|
8608
|
+
icon: Ia,
|
|
8609
8609
|
size: "sm"
|
|
8610
8610
|
})
|
|
8611
8611
|
}) : null, /* @__PURE__ */ X(ym, {
|
|
@@ -8635,7 +8635,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8635
8635
|
p || x.push({
|
|
8636
8636
|
type: "toggle",
|
|
8637
8637
|
label: l,
|
|
8638
|
-
icon:
|
|
8638
|
+
icon: Aa,
|
|
8639
8639
|
checked: !!r?.required,
|
|
8640
8640
|
onCheckedChange: m
|
|
8641
8641
|
});
|
|
@@ -8680,7 +8680,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8680
8680
|
selected: s === e && t === "dropdown-single"
|
|
8681
8681
|
}, {
|
|
8682
8682
|
label: f,
|
|
8683
|
-
icon:
|
|
8683
|
+
icon: Ci,
|
|
8684
8684
|
onClick: () => h("dropdown-multi", e),
|
|
8685
8685
|
selected: s === e && t === "dropdown-multi"
|
|
8686
8686
|
}]
|
|
@@ -8694,16 +8694,16 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8694
8694
|
return x.push({
|
|
8695
8695
|
type: "submenu",
|
|
8696
8696
|
label: u,
|
|
8697
|
-
icon:
|
|
8697
|
+
icon: no,
|
|
8698
8698
|
selectedLabel: E,
|
|
8699
8699
|
children: w
|
|
8700
8700
|
}), x.push({ type: "separator" }), x.push({
|
|
8701
8701
|
label: i,
|
|
8702
|
-
icon:
|
|
8702
|
+
icon: Ya,
|
|
8703
8703
|
onClick: y
|
|
8704
8704
|
}), n && x.push({
|
|
8705
8705
|
label: a,
|
|
8706
|
-
icon:
|
|
8706
|
+
icon: $i,
|
|
8707
8707
|
onClick: b,
|
|
8708
8708
|
critical: !0
|
|
8709
8709
|
}), x;
|
|
@@ -8724,12 +8724,12 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8724
8724
|
return {
|
|
8725
8725
|
id: i,
|
|
8726
8726
|
label: t.title || n,
|
|
8727
|
-
icon:
|
|
8727
|
+
icon: Ma,
|
|
8728
8728
|
onClick: y,
|
|
8729
8729
|
...!h && !g && !t.locked && { otherActions: [
|
|
8730
8730
|
{
|
|
8731
8731
|
label: o,
|
|
8732
|
-
icon:
|
|
8732
|
+
icon: Ya,
|
|
8733
8733
|
onClick: () => m?.({
|
|
8734
8734
|
elementId: t.id,
|
|
8735
8735
|
type: "section"
|
|
@@ -8738,7 +8738,7 @@ var fm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8738
8738
|
{ type: "separator" },
|
|
8739
8739
|
{
|
|
8740
8740
|
label: s,
|
|
8741
|
-
icon:
|
|
8741
|
+
icon: $i,
|
|
8742
8742
|
onClick: () => p(t.id),
|
|
8743
8743
|
critical: !0
|
|
8744
8744
|
}
|
|
@@ -9266,7 +9266,7 @@ function Km({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
9266
9266
|
u ? /* @__PURE__ */ X("div", {
|
|
9267
9267
|
className: "min-h-8 p-1",
|
|
9268
9268
|
children: /* @__PURE__ */ X(z, {
|
|
9269
|
-
icon: t.correct ?
|
|
9269
|
+
icon: t.correct ? _a : Or,
|
|
9270
9270
|
color: t.correct ? "positive" : "critical",
|
|
9271
9271
|
"aria-hidden": !0
|
|
9272
9272
|
})
|
|
@@ -9288,7 +9288,7 @@ var qm = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, Jm = () => ({
|
|
|
9288
9288
|
status: "idle"
|
|
9289
9289
|
});
|
|
9290
9290
|
function Ym(e, t) {
|
|
9291
|
-
return
|
|
9291
|
+
return Ai().optional().superRefine((n, r) => {
|
|
9292
9292
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
9293
9293
|
code: "custom",
|
|
9294
9294
|
message: t("forms.validation.required")
|
|
@@ -9296,7 +9296,7 @@ function Ym(e, t) {
|
|
|
9296
9296
|
});
|
|
9297
9297
|
}
|
|
9298
9298
|
function Xm(e, t) {
|
|
9299
|
-
return
|
|
9299
|
+
return Ai().optional().superRefine((n, r) => {
|
|
9300
9300
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
9301
9301
|
code: "custom",
|
|
9302
9302
|
message: t("forms.validation.required")
|
|
@@ -9307,7 +9307,7 @@ function Xm(e, t) {
|
|
|
9307
9307
|
});
|
|
9308
9308
|
}
|
|
9309
9309
|
function Zm(e, t) {
|
|
9310
|
-
return
|
|
9310
|
+
return ua().optional().superRefine((n, r) => {
|
|
9311
9311
|
e && n == null && r.addIssue({
|
|
9312
9312
|
code: "custom",
|
|
9313
9313
|
message: t("forms.validation.required")
|
|
@@ -9315,7 +9315,7 @@ function Zm(e, t) {
|
|
|
9315
9315
|
});
|
|
9316
9316
|
}
|
|
9317
9317
|
function Qm(e, t) {
|
|
9318
|
-
return
|
|
9318
|
+
return xi(Ai()).optional().superRefine((n, r) => {
|
|
9319
9319
|
e && (!n || n.length === 0) && r.addIssue({
|
|
9320
9320
|
code: "custom",
|
|
9321
9321
|
message: t("forms.validation.required")
|
|
@@ -9323,7 +9323,7 @@ function Qm(e, t) {
|
|
|
9323
9323
|
});
|
|
9324
9324
|
}
|
|
9325
9325
|
function $m(e, t) {
|
|
9326
|
-
return
|
|
9326
|
+
return Ni().optional().superRefine((n, r) => {
|
|
9327
9327
|
e && !n && r.addIssue({
|
|
9328
9328
|
code: "custom",
|
|
9329
9329
|
message: t("forms.validation.required")
|
|
@@ -9332,7 +9332,7 @@ function $m(e, t) {
|
|
|
9332
9332
|
}
|
|
9333
9333
|
var eh = Qm;
|
|
9334
9334
|
function th(e, t) {
|
|
9335
|
-
return
|
|
9335
|
+
return ga().optional().superRefine((n, r) => {
|
|
9336
9336
|
e && !n && r.addIssue({
|
|
9337
9337
|
code: "custom",
|
|
9338
9338
|
message: t("forms.validation.required")
|
|
@@ -9382,7 +9382,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9382
9382
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
9383
9383
|
disabled: i
|
|
9384
9384
|
};
|
|
9385
|
-
return
|
|
9385
|
+
return Wi(Ym(!!e.required, t), {
|
|
9386
9386
|
...c,
|
|
9387
9387
|
fieldType: "custom",
|
|
9388
9388
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9410,7 +9410,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9410
9410
|
rows: 4,
|
|
9411
9411
|
disabled: i
|
|
9412
9412
|
};
|
|
9413
|
-
return
|
|
9413
|
+
return Wi(Ym(!!e.required, t), {
|
|
9414
9414
|
...c,
|
|
9415
9415
|
fieldType: "custom",
|
|
9416
9416
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9437,7 +9437,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9437
9437
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
9438
9438
|
disabled: i
|
|
9439
9439
|
};
|
|
9440
|
-
return
|
|
9440
|
+
return Wi(Zm(!!e.required, t), {
|
|
9441
9441
|
...c,
|
|
9442
9442
|
fieldType: "custom",
|
|
9443
9443
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9465,7 +9465,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9465
9465
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
9466
9466
|
disabled: i
|
|
9467
9467
|
};
|
|
9468
|
-
return
|
|
9468
|
+
return Wi(Xm(!!e.required, t), {
|
|
9469
9469
|
...c,
|
|
9470
9470
|
fieldType: "custom",
|
|
9471
9471
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9492,7 +9492,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9492
9492
|
clearable: !e.required,
|
|
9493
9493
|
disabled: i
|
|
9494
9494
|
};
|
|
9495
|
-
return
|
|
9495
|
+
return Wi($m(!!e.required, t), {
|
|
9496
9496
|
...c,
|
|
9497
9497
|
fieldType: "custom",
|
|
9498
9498
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9528,7 +9528,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9528
9528
|
showSearchBox: r,
|
|
9529
9529
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
9530
9530
|
};
|
|
9531
|
-
return
|
|
9531
|
+
return Wi(Ym(!!e.required, t), {
|
|
9532
9532
|
...c,
|
|
9533
9533
|
fieldType: "custom",
|
|
9534
9534
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -9577,7 +9577,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9577
9577
|
showSearchBox: r,
|
|
9578
9578
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
9579
9579
|
};
|
|
9580
|
-
return
|
|
9580
|
+
return Wi(Qm(!!e.required, t), {
|
|
9581
9581
|
...c,
|
|
9582
9582
|
fieldType: "custom",
|
|
9583
9583
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9604,7 +9604,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9604
9604
|
disabled: i,
|
|
9605
9605
|
showAnswerValidation: r
|
|
9606
9606
|
};
|
|
9607
|
-
return
|
|
9607
|
+
return Wi(Ym(!!e.required, t), {
|
|
9608
9608
|
...c,
|
|
9609
9609
|
fieldType: "custom",
|
|
9610
9610
|
fieldConfig: n,
|
|
@@ -9627,7 +9627,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9627
9627
|
disabled: i,
|
|
9628
9628
|
showAnswerValidation: r
|
|
9629
9629
|
};
|
|
9630
|
-
return
|
|
9630
|
+
return Wi(Qm(!!e.required, t), {
|
|
9631
9631
|
...c,
|
|
9632
9632
|
fieldType: "custom",
|
|
9633
9633
|
fieldConfig: n,
|
|
@@ -9649,7 +9649,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9649
9649
|
maxLabel: n.maxLabel,
|
|
9650
9650
|
disabled: i
|
|
9651
9651
|
};
|
|
9652
|
-
return
|
|
9652
|
+
return Wi(Zm(!!e.required, t), {
|
|
9653
9653
|
...c,
|
|
9654
9654
|
fieldType: "custom",
|
|
9655
9655
|
fieldConfig: r,
|
|
@@ -9675,7 +9675,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9675
9675
|
useUpload: r ?? Jm,
|
|
9676
9676
|
disabled: i || !r
|
|
9677
9677
|
};
|
|
9678
|
-
return
|
|
9678
|
+
return Wi(eh(!!e.required, t), {
|
|
9679
9679
|
...c,
|
|
9680
9680
|
fieldType: "custom",
|
|
9681
9681
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9701,7 +9701,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9701
9701
|
label: n.label || s,
|
|
9702
9702
|
disabled: i
|
|
9703
9703
|
};
|
|
9704
|
-
return
|
|
9704
|
+
return Wi(th(!!e.required, t), {
|
|
9705
9705
|
...c,
|
|
9706
9706
|
fieldType: "custom",
|
|
9707
9707
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Zp, {
|
|
@@ -9720,7 +9720,7 @@ function ih({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9720
9720
|
})
|
|
9721
9721
|
});
|
|
9722
9722
|
}
|
|
9723
|
-
default: return
|
|
9723
|
+
default: return Wi(Vi(), {
|
|
9724
9724
|
...c,
|
|
9725
9725
|
fieldType: "custom",
|
|
9726
9726
|
render: () => null
|
|
@@ -9759,7 +9759,7 @@ function ah({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
9759
9759
|
}), d[e.id] = a?.[e.id] ?? nh(e, r);
|
|
9760
9760
|
}
|
|
9761
9761
|
return {
|
|
9762
|
-
schema:
|
|
9762
|
+
schema: va(u),
|
|
9763
9763
|
defaultValues: d,
|
|
9764
9764
|
flatQuestions: p,
|
|
9765
9765
|
sections: f
|
|
@@ -9850,12 +9850,12 @@ function lh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9850
9850
|
}, j.goToPrevious();
|
|
9851
9851
|
}, [T, j.goToPrevious]), de = u && !m ? [{
|
|
9852
9852
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
9853
|
-
icon: C ?
|
|
9853
|
+
icon: C ? da : Sa,
|
|
9854
9854
|
onClick: () => w((e) => !e)
|
|
9855
9855
|
}] : void 0, fe = M ? m || F ? void 0 : I ? P && !j.isLastStep ? {
|
|
9856
9856
|
label: b("surveyAnsweringForm.actions.next"),
|
|
9857
9857
|
onClick: j.goToNext,
|
|
9858
|
-
icon:
|
|
9858
|
+
icon: _i
|
|
9859
9859
|
} : {
|
|
9860
9860
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
9861
9861
|
onClick: oh,
|
|
@@ -9863,7 +9863,7 @@ function lh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9863
9863
|
} : P && !j.isLastStep ? {
|
|
9864
9864
|
label: b("surveyAnsweringForm.actions.next"),
|
|
9865
9865
|
onClick: le,
|
|
9866
|
-
icon:
|
|
9866
|
+
icon: _i
|
|
9867
9867
|
} : {
|
|
9868
9868
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
9869
9869
|
onClick: le,
|
|
@@ -9874,7 +9874,7 @@ function lh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9874
9874
|
onClick: ue,
|
|
9875
9875
|
icon: es
|
|
9876
9876
|
} : void 0 : void 0, me = n === "all-questions" && M && !m, he = P && M && !m, ge = P && !!j.currentQuestion?.sectionTitle && !m, _e = re === "center" || re === "fullscreen";
|
|
9877
|
-
return /* @__PURE__ */ X(
|
|
9877
|
+
return /* @__PURE__ */ X(za, {
|
|
9878
9878
|
isOpen: o,
|
|
9879
9879
|
onClose: s,
|
|
9880
9880
|
title: r,
|
|
@@ -10153,18 +10153,18 @@ function vh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
10153
10153
|
let [o, s] = J(e);
|
|
10154
10154
|
return G(() => {
|
|
10155
10155
|
s(e);
|
|
10156
|
-
}, [e]), /* @__PURE__ */ X(
|
|
10156
|
+
}, [e]), /* @__PURE__ */ X(Va, {
|
|
10157
10157
|
open: o,
|
|
10158
10158
|
onOpenChange: (e) => {
|
|
10159
10159
|
s(e), e || t();
|
|
10160
10160
|
},
|
|
10161
10161
|
modal: !0,
|
|
10162
|
-
children: /* @__PURE__ */ Z(
|
|
10162
|
+
children: /* @__PURE__ */ Z(Qi, {
|
|
10163
10163
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
10164
10164
|
container: a,
|
|
10165
10165
|
children: [/* @__PURE__ */ Z("div", {
|
|
10166
10166
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
10167
|
-
children: [/* @__PURE__ */ Z(
|
|
10167
|
+
children: [/* @__PURE__ */ Z(Yi, {
|
|
10168
10168
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
10169
10169
|
children: [i ? /* @__PURE__ */ X(_o, {
|
|
10170
10170
|
module: i,
|
|
@@ -10262,10 +10262,10 @@ function xh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
10262
10262
|
o && o(!l);
|
|
10263
10263
|
}, [o, l]);
|
|
10264
10264
|
let f = e?.includes(".mp4");
|
|
10265
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
10265
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Ji, {
|
|
10266
10266
|
style: { width: a },
|
|
10267
10267
|
className: "relative bg-f1-background p-1",
|
|
10268
|
-
children: [/* @__PURE__ */ Z(
|
|
10268
|
+
children: [/* @__PURE__ */ Z(ra, { children: [i ? /* @__PURE__ */ X("div", {
|
|
10269
10269
|
className: "absolute right-2 top-2 z-10",
|
|
10270
10270
|
children: /* @__PURE__ */ X(R, {
|
|
10271
10271
|
variant: "ghost",
|
|
@@ -10295,7 +10295,7 @@ function xh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
10295
10295
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
10296
10296
|
children: n
|
|
10297
10297
|
})]
|
|
10298
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
10298
|
+
})] })] }), s ? /* @__PURE__ */ X(Oi, {
|
|
10299
10299
|
className: "p-3",
|
|
10300
10300
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(w, {
|
|
10301
10301
|
label: e.label,
|
|
@@ -10469,9 +10469,9 @@ function Oh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
10469
10469
|
}
|
|
10470
10470
|
var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
10471
10471
|
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);
|
|
10472
|
-
return /* @__PURE__ */ Z(
|
|
10472
|
+
return /* @__PURE__ */ Z(Ji, {
|
|
10473
10473
|
className: "flex flex-col overflow-hidden",
|
|
10474
|
-
children: [/* @__PURE__ */ Z(
|
|
10474
|
+
children: [/* @__PURE__ */ Z(ra, {
|
|
10475
10475
|
className: "flex flex-col gap-4 p-0",
|
|
10476
10476
|
children: [/* @__PURE__ */ X("div", {
|
|
10477
10477
|
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"),
|
|
@@ -10486,7 +10486,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10486
10486
|
children: n
|
|
10487
10487
|
})]
|
|
10488
10488
|
})]
|
|
10489
|
-
}), /* @__PURE__ */ X(
|
|
10489
|
+
}), /* @__PURE__ */ X(Oi, {
|
|
10490
10490
|
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",
|
|
10491
10491
|
children: i ? /* @__PURE__ */ X(R, {
|
|
10492
10492
|
variant: "default",
|
|
@@ -10533,7 +10533,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10533
10533
|
})
|
|
10534
10534
|
})]
|
|
10535
10535
|
}), Mh = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
10536
|
-
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
10536
|
+
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? co, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
10537
10537
|
u,
|
|
10538
10538
|
r,
|
|
10539
10539
|
c
|
|
@@ -10548,9 +10548,9 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10548
10548
|
i,
|
|
10549
10549
|
a
|
|
10550
10550
|
]);
|
|
10551
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
10551
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Ji, {
|
|
10552
10552
|
className: "flex flex-col overflow-hidden",
|
|
10553
|
-
children: [/* @__PURE__ */ Z(
|
|
10553
|
+
children: [/* @__PURE__ */ Z(Fi, {
|
|
10554
10554
|
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",
|
|
10555
10555
|
children: [/* @__PURE__ */ X("div", {
|
|
10556
10556
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -10563,7 +10563,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10563
10563
|
className: "text-base font-semibold text-f1-foreground",
|
|
10564
10564
|
children: o
|
|
10565
10565
|
})]
|
|
10566
|
-
}), /* @__PURE__ */ X(
|
|
10566
|
+
}), /* @__PURE__ */ X(ra, {
|
|
10567
10567
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
10568
10568
|
children: t.map((e) => /* @__PURE__ */ X(jh, {
|
|
10569
10569
|
item: e,
|
|
@@ -10574,9 +10574,9 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10574
10574
|
});
|
|
10575
10575
|
}, Nh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
10576
10576
|
let a = V()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
10577
|
-
return /* @__PURE__ */ Z(
|
|
10577
|
+
return /* @__PURE__ */ Z(Ji, {
|
|
10578
10578
|
className: "flex flex-col overflow-hidden",
|
|
10579
|
-
children: [/* @__PURE__ */ X(
|
|
10579
|
+
children: [/* @__PURE__ */ X(ra, {
|
|
10580
10580
|
className: "flex flex-col gap-3 p-0",
|
|
10581
10581
|
children: /* @__PURE__ */ Z("div", {
|
|
10582
10582
|
className: "flex items-start gap-3",
|
|
@@ -10598,7 +10598,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10598
10598
|
})]
|
|
10599
10599
|
})]
|
|
10600
10600
|
})
|
|
10601
|
-
}), /* @__PURE__ */ X(
|
|
10601
|
+
}), /* @__PURE__ */ X(Oi, {
|
|
10602
10602
|
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",
|
|
10603
10603
|
children: r ? /* @__PURE__ */ X(R, {
|
|
10604
10604
|
variant: "outline",
|
|
@@ -10616,12 +10616,12 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10616
10616
|
});
|
|
10617
10617
|
}, Ph = ({ onAction: e, actionHref: t }) => {
|
|
10618
10618
|
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";
|
|
10619
|
-
return /* @__PURE__ */ Z(
|
|
10619
|
+
return /* @__PURE__ */ Z(Ji, {
|
|
10620
10620
|
className: "flex flex-col overflow-hidden",
|
|
10621
|
-
children: [/* @__PURE__ */ Z(
|
|
10621
|
+
children: [/* @__PURE__ */ Z(ra, {
|
|
10622
10622
|
className: "flex flex-col gap-3 p-0",
|
|
10623
10623
|
children: [/* @__PURE__ */ X(z, {
|
|
10624
|
-
icon:
|
|
10624
|
+
icon: zi,
|
|
10625
10625
|
size: "lg"
|
|
10626
10626
|
}), /* @__PURE__ */ Z("div", {
|
|
10627
10627
|
className: "flex flex-col gap-0.5",
|
|
@@ -10633,7 +10633,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10633
10633
|
children: i
|
|
10634
10634
|
})]
|
|
10635
10635
|
})]
|
|
10636
|
-
}), /* @__PURE__ */ X(
|
|
10636
|
+
}), /* @__PURE__ */ X(Oi, {
|
|
10637
10637
|
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",
|
|
10638
10638
|
children: t ? /* @__PURE__ */ X(R, {
|
|
10639
10639
|
variant: "default",
|
|
@@ -10679,9 +10679,9 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10679
10679
|
e,
|
|
10680
10680
|
t
|
|
10681
10681
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
10682
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
10682
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Ji, {
|
|
10683
10683
|
className: "flex flex-col overflow-hidden",
|
|
10684
|
-
children: [/* @__PURE__ */ Z(
|
|
10684
|
+
children: [/* @__PURE__ */ Z(ra, {
|
|
10685
10685
|
className: "flex flex-col gap-4",
|
|
10686
10686
|
children: [/* @__PURE__ */ X("h3", {
|
|
10687
10687
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -10698,7 +10698,7 @@ var kh = L(Oh), Ah = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10698
10698
|
})
|
|
10699
10699
|
}, e.id))
|
|
10700
10700
|
})]
|
|
10701
|
-
}), /* @__PURE__ */ Z(
|
|
10701
|
+
}), /* @__PURE__ */ Z(Oi, {
|
|
10702
10702
|
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",
|
|
10703
10703
|
children: [/* @__PURE__ */ X("div", {
|
|
10704
10704
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -11162,7 +11162,7 @@ function gg(e, t) {
|
|
|
11162
11162
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
11163
11163
|
}
|
|
11164
11164
|
async function _g(e, t, n, { keys: r, preamble: i } = {}) {
|
|
11165
|
-
gg(await
|
|
11165
|
+
gg(await ca([{
|
|
11166
11166
|
name: "Data",
|
|
11167
11167
|
rows: mg({
|
|
11168
11168
|
columns: e,
|
|
@@ -11184,7 +11184,7 @@ function yg(e, t, n) {
|
|
|
11184
11184
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
11185
11185
|
}
|
|
11186
11186
|
async function bg(e, t) {
|
|
11187
|
-
gg(await
|
|
11187
|
+
gg(await ca(e.map((e) => ({
|
|
11188
11188
|
name: e.name,
|
|
11189
11189
|
rows: mg(e)
|
|
11190
11190
|
}))), `${t}.xlsx`);
|
|
@@ -11245,23 +11245,23 @@ function Cg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
11245
11245
|
return K(() => n ? [
|
|
11246
11246
|
{
|
|
11247
11247
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
11248
|
-
icon:
|
|
11248
|
+
icon: Za,
|
|
11249
11249
|
onClick: () => a("png")
|
|
11250
11250
|
},
|
|
11251
11251
|
{
|
|
11252
11252
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
11253
|
-
icon:
|
|
11253
|
+
icon: Za,
|
|
11254
11254
|
onClick: () => a("jpg")
|
|
11255
11255
|
},
|
|
11256
11256
|
{ type: "separator" },
|
|
11257
11257
|
{
|
|
11258
11258
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
11259
|
-
icon:
|
|
11259
|
+
icon: Xa,
|
|
11260
11260
|
onClick: s
|
|
11261
11261
|
},
|
|
11262
11262
|
{
|
|
11263
11263
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
11264
|
-
icon:
|
|
11264
|
+
icon: Xa,
|
|
11265
11265
|
onClick: c
|
|
11266
11266
|
}
|
|
11267
11267
|
] : [], [
|
|
@@ -11491,7 +11491,7 @@ function Og({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
11491
11491
|
//#endregion
|
|
11492
11492
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
11493
11493
|
function kg({ 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: h, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
11494
|
-
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 } =
|
|
11494
|
+
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 } = fo(), I = (e) => {
|
|
11495
11495
|
T(e), e || A(!1);
|
|
11496
11496
|
}, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, ne = u && f && h, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (p ? !!h : M), se = oe || te || ne || re || ie, ce = !!l || ae || !!se, le = !y && (w || E), ue = 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", le && "delay-0 !opacity-100"), de = 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]", le && "delay-0 !grid-cols-[1fr]"), fe = Og({
|
|
11497
11497
|
title: e,
|
|
@@ -11519,7 +11519,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11519
11519
|
onClick: he,
|
|
11520
11520
|
children: /* @__PURE__ */ Z("div", {
|
|
11521
11521
|
className: "flex w-full flex-row items-center gap-2",
|
|
11522
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11522
|
+
children: [/* @__PURE__ */ X(z, { icon: bi }), /* @__PURE__ */ X("span", {
|
|
11523
11523
|
className: "flex-1",
|
|
11524
11524
|
children: j.ai.dashboardItem.askOne
|
|
11525
11525
|
})]
|
|
@@ -11556,7 +11556,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11556
11556
|
asChild: !0,
|
|
11557
11557
|
children: /* @__PURE__ */ X(Qn, {
|
|
11558
11558
|
label: j.actions.other,
|
|
11559
|
-
icon:
|
|
11559
|
+
icon: Ei,
|
|
11560
11560
|
variant: "ghost",
|
|
11561
11561
|
size: "md",
|
|
11562
11562
|
hideLabel: !0,
|
|
@@ -11622,7 +11622,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11622
11622
|
}) : null,
|
|
11623
11623
|
ae ? /* @__PURE__ */ X(Qn, {
|
|
11624
11624
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
11625
|
-
icon: y ?
|
|
11625
|
+
icon: y ? da : Sa,
|
|
11626
11626
|
variant: "ghost",
|
|
11627
11627
|
size: "md",
|
|
11628
11628
|
hideLabel: !0,
|
|
@@ -11636,7 +11636,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11636
11636
|
asChild: !0,
|
|
11637
11637
|
children: /* @__PURE__ */ X(Qn, {
|
|
11638
11638
|
label: j.actions.other,
|
|
11639
|
-
icon:
|
|
11639
|
+
icon: Ei,
|
|
11640
11640
|
variant: "ghost",
|
|
11641
11641
|
size: "md",
|
|
11642
11642
|
hideLabel: !0,
|
|
@@ -11650,7 +11650,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11650
11650
|
onCloseAutoFocus: ge,
|
|
11651
11651
|
children: k && ie ? /* @__PURE__ */ X("div", {
|
|
11652
11652
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
11653
|
-
children: /* @__PURE__ */ X(
|
|
11653
|
+
children: /* @__PURE__ */ X(Ka, {
|
|
11654
11654
|
content: v,
|
|
11655
11655
|
format: "markdown"
|
|
11656
11656
|
})
|
|
@@ -11693,7 +11693,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11693
11693
|
className: "mx-1 rounded-sm px-2",
|
|
11694
11694
|
children: /* @__PURE__ */ Z("div", {
|
|
11695
11695
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
11696
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11696
|
+
children: [/* @__PURE__ */ X(z, { icon: Ga }), /* @__PURE__ */ X("span", {
|
|
11697
11697
|
className: "flex-1 text-base font-medium",
|
|
11698
11698
|
children: j.ai.dataDownload.title
|
|
11699
11699
|
})]
|
|
@@ -11715,7 +11715,7 @@ function kg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11715
11715
|
className: H("text-f1-foreground-critical"),
|
|
11716
11716
|
children: /* @__PURE__ */ Z("div", {
|
|
11717
11717
|
className: "flex w-full flex-row items-center gap-2",
|
|
11718
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11718
|
+
children: [/* @__PURE__ */ X(z, { icon: $i }), /* @__PURE__ */ X("span", {
|
|
11719
11719
|
className: "flex-1",
|
|
11720
11720
|
children: j.actions.delete
|
|
11721
11721
|
})]
|
|
@@ -11806,7 +11806,7 @@ function Mg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
11806
11806
|
type: "button",
|
|
11807
11807
|
variant: "ghost",
|
|
11808
11808
|
label: i.ai.dashboardItem.askOne,
|
|
11809
|
-
icon:
|
|
11809
|
+
icon: bi,
|
|
11810
11810
|
onClick: t
|
|
11811
11811
|
})
|
|
11812
11812
|
}), document.body);
|
|
@@ -11849,39 +11849,39 @@ function Vg(e) {
|
|
|
11849
11849
|
{
|
|
11850
11850
|
label: e.dataChart.barChartVertical,
|
|
11851
11851
|
value: "bar-vertical",
|
|
11852
|
-
icon:
|
|
11852
|
+
icon: Pi,
|
|
11853
11853
|
type: "bar",
|
|
11854
11854
|
orientation: "vertical"
|
|
11855
11855
|
},
|
|
11856
11856
|
{
|
|
11857
11857
|
label: e.dataChart.barChartHorizontal,
|
|
11858
11858
|
value: "bar-horizontal",
|
|
11859
|
-
icon:
|
|
11859
|
+
icon: Mi,
|
|
11860
11860
|
type: "bar",
|
|
11861
11861
|
orientation: "horizontal"
|
|
11862
11862
|
},
|
|
11863
11863
|
{
|
|
11864
11864
|
label: e.dataChart.lineChart,
|
|
11865
11865
|
value: "line",
|
|
11866
|
-
icon:
|
|
11866
|
+
icon: ba,
|
|
11867
11867
|
type: "line"
|
|
11868
11868
|
},
|
|
11869
11869
|
{
|
|
11870
11870
|
label: e.dataChart.funnel,
|
|
11871
11871
|
value: "funnel",
|
|
11872
|
-
icon:
|
|
11872
|
+
icon: Ui,
|
|
11873
11873
|
type: "funnel"
|
|
11874
11874
|
},
|
|
11875
11875
|
{
|
|
11876
11876
|
label: e.dataChart.pieChart,
|
|
11877
11877
|
value: "pie",
|
|
11878
|
-
icon:
|
|
11878
|
+
icon: pa,
|
|
11879
11879
|
type: "pie"
|
|
11880
11880
|
},
|
|
11881
11881
|
{
|
|
11882
11882
|
label: e.dataChart.table,
|
|
11883
11883
|
value: "table",
|
|
11884
|
-
icon:
|
|
11884
|
+
icon: Xa,
|
|
11885
11885
|
type: "table"
|
|
11886
11886
|
}
|
|
11887
11887
|
];
|
|
@@ -12049,7 +12049,7 @@ function Jg(e) {
|
|
|
12049
12049
|
return Uh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
12050
12050
|
}
|
|
12051
12051
|
function Yg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
12052
|
-
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
12052
|
+
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = fo(), y = !Uh(e.chart), b = y ? Hg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = wg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Gg(e, T) : void 0, [
|
|
12053
12053
|
e,
|
|
12054
12054
|
T,
|
|
12055
12055
|
y
|
|
@@ -12274,11 +12274,11 @@ function r_({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
12274
12274
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
12275
12275
|
return K(() => e ? [{
|
|
12276
12276
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
12277
|
-
icon:
|
|
12277
|
+
icon: Xa,
|
|
12278
12278
|
onClick: l
|
|
12279
12279
|
}, {
|
|
12280
12280
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
12281
|
-
icon:
|
|
12281
|
+
icon: Xa,
|
|
12282
12282
|
onClick: u
|
|
12283
12283
|
}] : [], [
|
|
12284
12284
|
e,
|
|
@@ -12606,7 +12606,7 @@ function v_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
12606
12606
|
if (Math.hypot(t.clientX - n, t.clientY - r) < p_) return;
|
|
12607
12607
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
12608
12608
|
let a = k.current.get(e)?.title ?? "";
|
|
12609
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
12609
|
+
a && window.dispatchEvent(new CustomEvent(Ua, { detail: {
|
|
12610
12610
|
id: e,
|
|
12611
12611
|
title: a,
|
|
12612
12612
|
onAskAi: c,
|
|
@@ -12620,7 +12620,7 @@ function v_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
12620
12620
|
}, o = (e) => {
|
|
12621
12621
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
12622
12622
|
let t = A.current, n = j.current;
|
|
12623
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
12623
|
+
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(ta));
|
|
12624
12624
|
}, s = (e) => {
|
|
12625
12625
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = I(e.clientX, e.clientY)), o(!0);
|
|
12626
12626
|
}, u = () => o(!1);
|
|
@@ -12798,7 +12798,7 @@ function y_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
12798
12798
|
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",
|
|
12799
12799
|
"aria-label": "Drag to reorder",
|
|
12800
12800
|
children: /* @__PURE__ */ X(z, {
|
|
12801
|
-
icon:
|
|
12801
|
+
icon: Ia,
|
|
12802
12802
|
size: "xs"
|
|
12803
12803
|
})
|
|
12804
12804
|
}) : null, s]
|
|
@@ -12968,13 +12968,13 @@ function N_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12968
12968
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
12969
12969
|
function P_({ onExportExcel: e, isExporting: t }) {
|
|
12970
12970
|
let { t: n } = V();
|
|
12971
|
-
return /* @__PURE__ */ X(
|
|
12971
|
+
return /* @__PURE__ */ X(so, {
|
|
12972
12972
|
items: [{
|
|
12973
12973
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
12974
|
-
icon:
|
|
12974
|
+
icon: Ga,
|
|
12975
12975
|
onClick: t ? () => {} : e
|
|
12976
12976
|
}],
|
|
12977
|
-
icon:
|
|
12977
|
+
icon: Ei
|
|
12978
12978
|
});
|
|
12979
12979
|
}
|
|
12980
12980
|
//#endregion
|
|
@@ -13957,7 +13957,7 @@ var kv = ({ onClose: e }) => {
|
|
|
13957
13957
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
13958
13958
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
13959
13959
|
onClick: () => n(e),
|
|
13960
|
-
children: /* @__PURE__ */ X(
|
|
13960
|
+
children: /* @__PURE__ */ X(Hi, {
|
|
13961
13961
|
href: e.href,
|
|
13962
13962
|
children: e.label
|
|
13963
13963
|
})
|
|
@@ -14025,7 +14025,7 @@ var kv = ({ onClose: e }) => {
|
|
|
14025
14025
|
}) : g && /* @__PURE__ */ X("div", {
|
|
14026
14026
|
className: "flex-shrink-0",
|
|
14027
14027
|
"aria-hidden": "true",
|
|
14028
|
-
children: /* @__PURE__ */ X(
|
|
14028
|
+
children: /* @__PURE__ */ X(ka, {
|
|
14029
14029
|
type: g,
|
|
14030
14030
|
size: "sm"
|
|
14031
14031
|
})
|
|
@@ -14388,7 +14388,7 @@ var Uv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14388
14388
|
renderDataTestIdAttribute: d,
|
|
14389
14389
|
children: /* @__PURE__ */ X(my, {
|
|
14390
14390
|
...t,
|
|
14391
|
-
children: /* @__PURE__ */ X(
|
|
14391
|
+
children: /* @__PURE__ */ X(wi, {
|
|
14392
14392
|
handler: l,
|
|
14393
14393
|
children: /* @__PURE__ */ X(Nr, { children: /* @__PURE__ */ X(at, {
|
|
14394
14394
|
...p,
|
|
@@ -14407,4 +14407,4 @@ var Uv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14407
14407
|
})
|
|
14408
14408
|
});
|
|
14409
14409
|
//#endregion
|
|
14410
|
-
export { Kr as AiChatTranslationsProvider, Ht as AreaChart, rc as Await, We as BarChart, Jl as BarChartSkeleton, t as CardSelectableContainer, Xe as CategoryBarChart,
|
|
14410
|
+
export { Kr as AiChatTranslationsProvider, Ht as AreaChart, rc as Await, We as BarChart, Jl as BarChartSkeleton, t as CardSelectableContainer, Xe as CategoryBarChart, ia as ChatSpinner, zo as Chip, ii as CollapsibleGroup, Dt as ComboChart, it as DATA_COLLECTION_URL_PARAMS, et as DATA_COLLECTION_URL_PARAM_PREFIX, kl as Dashboard, gt as DataChartEmptyStateView, In as DataTestIdWrapper, ht as DndProvider, qi as DropOverlay, zn as EmojiImage, Ld as F0Accordion, xt as F0ActionBar, ea as F0ActionItem, Di as F0AiChat, qr as F0AiChatCreditsButton, ti as F0AiChatHeader, Qr as F0AiChatHistory, Ti as F0AiChatProvider, Pr as F0AiChatTextArea, Ir as F0AiChatUsageLimitsButton, Ur as F0AiFileAttachments, ao as F0AiFilePreviewsProvider, Li as F0AiFormRegistryProvider, ni as F0AiInsightCard, Wr as F0AiMask, Jr as F0AiMessageSources, jr as F0AiMessagesContainer, vi as F0AiPong, ci as F0AiProcessingOverlay, Yr as F0AiProposalCard, li as F0AiTableCard, nn as F0Alert, W_ as F0AnalyticsDashboard, Ad as F0AudioPlayer, jd as F0AudioPlayerCard, Xr as F0AuraVoiceAnimation, Fo as F0Avatar, ka as F0AvatarAlert, Oo as F0AvatarCompany, to as F0AvatarDate, xo as F0AvatarEmoji, go as F0AvatarFile, ho as F0AvatarIcon, ko as F0AvatarList, _o as F0AvatarModule, So as F0AvatarPerson, Po as F0AvatarTeam, uu as F0BigNumber, Ph as F0BookAMeetingCard, Dr as F0Box, R as F0Button, Ta as F0ButtonDropdown, ec as F0ButtonToggle, ei as F0CanvasCard, ro as F0CanvasPanel, Ii as F0Card, Zi as F0CardRow, ma as F0ChatComposer, ys as F0Checkbox, Vd as F0ChipList, ui as F0ClarifyingPanel, ot as F0DataChart, ye as F0DatePicker, a as F0DatePickerInline, Ah as F0DemoCard, za as F0Dialog, m as F0DialogAlikeContext, S as F0DialogAlikeProvider, Xo as F0DialogContext, Hs as F0DialogProvider, fc as F0DocumentViewer, Yd as F0Drawer, dt as F0DurationInput, Qs as F0EventCatcherProvider, Mh as F0FAQCard, yi as F0FileItem, Qd as F0FilterPickerContent, he as F0Form, pf as F0FormField, yl as F0GridStack, Zr as F0HILActionConfirmation, Jt as F0Heading, z as F0Icon, Hi as F0Link, Nh as F0ModuleCard, $t as F0NotesTextEditor, Ie as F0NotesTextEditorSkeleton, u as F0NumberInput, p as F0NumberInputInline, na as F0OneIcon, qa as F0OneSwitch, dc as F0PdfViewer, _y as F0Provider, Fh as F0QuestionCardMultiStep, Ka as F0RichTextDisplay, st as F0RichTextEditor, Fs as F0SearchInput, qs as F0Select, n as F0SelectInline, ep as F0Slider, mp as F0TableOfContentPopover, is as F0TagAlert, Go as F0TagBalance, ss as F0TagCompany, rs as F0TagDot, Vs as F0TagList, ts as F0TagPerson, As as F0TagRaw, Bo as F0TagStatus, ks as F0TagTeam, kr as F0Text, Yt as F0TextAreaInput, c as F0TextAreaInputInline, Ri as F0TextInput, pe as F0TextInputInline, s as F0TimelineRow, lc as F0VideoPlayer, If as F0WizardForm, Ts as F1SearchBox, ee as FILE_TYPES, Ha as FileItem, Nr as FormCardValueFormatterProvider, tu as FunnelChartSkeleton, wo as GROUP_ID_SYMBOL, No as GROUP_KEY_SEPARATOR, iu as GaugeChartSkeleton, au as HeatmapChartSkeleton, Gl as HomeLayout, Et as InlineFieldRow, _t as InlineFieldRowList, wa as Input, Hl as Layout, vt as LineChart, Zl as LineChartSkeleton, Ne as MAX_URL_FILTER_VALUES, Xt as NotesTextEditor, fe as NotesTextEditorSkeleton, re as NumberInput, Cs as OneCalendar, ms as OneCalendarInternal, $n as OneEllipsis, g as OneEmptyState, Us as OneFilterPicker, rt as PieChart, nu as PieChartSkeleton, Ba as PongBall, k as PrivacyModeProvider, _h as ProductBlankslate, Ze as ProductCard, bh as ProductModal, Sh as ProductWidget, $e as ProgressBarChart, Me as RadarChart, ru as RadarChartSkeleton, La as RichTextDisplay, P as RichTextEditor, $l as ScatterChartSkeleton, Ul as StandardLayout, Vm as SurveyAllQuestionsLoadingSkeleton, ch as SurveyAnsweringForm, Nm as SurveyFormBuilder, dh as SurveySampleQuestion, Hm as SurveySteppedLoadingSkeleton, Ms as Tag, Ls as TagCounter, ge as Textarea, si as ThreadItem, Gr as ThreadListSkeleton, dy as ToastProvider, Wl as TwoColumnLayout, ie as UPLOAD_INPUT_ID, N as UpsellRequestResponseDialog, Th as UpsellingAlert, Dh as UpsellingBanner, w as UpsellingButton, kh as UpsellingPopover, Kt as VerticalBarChart, _s as WeekStartDay, Mt as actionBarStatuses, mi as actionItemStatuses, ki as adaptDataAdapterToInfiniteScroll, Ar as aiChatFileFromShowFilesItem, $r as aiChatFileFromUploadedFile, Lr as aiChatFilesFromMessage, Rr as aiChatMessageText, Hr as aiTranslations, Wd as alertVariantOptions, mu as audioPlayerSizes, Kl as avatarVariants, qt as buildDataCollectionUrlParams, Vn as buildTranslations, pu as buttonDropdownModes, fu as buttonDropdownSizes, du as buttonDropdownVariants, Tl as buttonSizes, we as buttonToggleColors, Oe as buttonToggleSizes, ce as buttonToggleVariants, wl as buttonVariants, Rd as cardAlertVariants, oa as cardImageAspectRatios, po as cardImageFits, Si as cardImageSizes, Ro as chartColorTokens, $s as chipVariants, yp as computeSectionEndIds, uc as configurePdfWorker, ai as contentTypes, Vt as createAtlaskitDriver, ls as createDataSourceDefinition, nf as createF0FormDefinitionTester, tf as createF0FormTester, Sl as createPageLayoutBlock, Cl as createPageLayoutBlockGroup, Fr as createPersonMentionSource, Gd as dataCollectionLocalStorageHandler, Hd as datePickerInlineDismissReasons, Ud as datepickerSizes, mo as defaultTranslations, Ki as defineAvailableForm, $d as describeFormSchema, A as dialog, A as dialogs, At as drawers, Ja as durationInputSizes, eo as durationUnits, Gt as evaluateRenderIf, qn as experimental, Xi as f0FileItemSizes, Wi as f0FormField, hi as fieldsToSeconds, hp as flattenElements, gu as formatPlaybackTime, Hf as forms, Qe as generateAnchorId, us as getAnimationVariants, la as getDataCollectionStorageKey, ds as getDataSourcePaginationType, sn as getEmojiLabel, $a as getF0Config, Xs as getGranularityDefinition, xs as getGranularityDefinitions, tc as getGranularitySimpleDefinition, en as getSchemaDefinition, Js as granularityDefinitions, Bi as hasF0Config, Ea as inferFieldType, vp as injectSectionEnds, Ao as isInfiniteScrollPagination, Mo as isPageBasedPagination, Ca as isZodType, Md as linkVariants, Br as markdownRenderers, uo as mergeDataCollectionFilters, vo as modules, Vr as oneIconSizes, tn as parseDataCollectionUrlParams, Uf as pdfScales, Te as predefinedPresets, Ks as rangeSeparator, ja as readDataCollectionStorage, _p as reconstructElements, lo as resolveDataCollectionFilters, Rs as resolveGranularityDefinition, T as resolveItemNeighbors, O as resolveWindowNeighbors, Na as secondsToFields, io as secondsToVisibleFields, Wf as selectInlineDismissReasons, y as selectSizes, _e as selectVariants, Re as setDataCollectionUrlParams, Gf as sliderTooltipModes, Qt as syncDataCollectionUrlParams, np as tagDotColors, tp as timelineRowStatuses, Nt as toasts, aa as unwrapZodSchema, ri as usageLimitsPopoverSides, fo as useAiChat, fi as useAiChatTranslations, zt as useAudioPlayer, pi as useCanvasEntity, oi as useChatHistory, Do as useData, Ko as useDataSource, _ as useDataSourceItemNavigation, Cu as useDerivedTranscription, St as useDndEvents, Pt as useDraggable, Be as useDroppableList, Rn as useEmojiConfetti, sa as useF0AiFormRegistry, Yo as useF0Dialog, j as useF0DialogAlikeContext, Ye as useF0Form, bt as useF0FormDefinition, Mr as useFormCardValueFormatter, gy as useFormComponent, qo as useGroups, G_ as useIsDesktop, K_ as useIsMobile, Ot as useItemNeighbors, kt as usePrivacyMode, hn as useReducedMotion, Le as useSchemaDefinition, Lo as useSelectable, zr as useSetFormCardValueFormatter, di as useToolCallId, On as useXRay, L as withDataTestId, me as writeDataCollectionStorage };
|