@factorialco/f0-react 13.3.0 → 13.5.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/{ArchiveThumbnail-C983HhkS.js → ArchiveThumbnail-BI7pgnAC.js} +7 -7
- package/dist/{ArchiveViewer-FbFCVvzg.js → ArchiveViewer-mhv-yGtw.js} +5 -5
- package/dist/{ChatPostComposerDialog-nCBk-R6w.js → ChatPostComposerDialog-DeP9Phs8.js} +4 -4
- package/dist/{CoachmarkProvider-ClZ21hwe.js → CoachmarkProvider-CuUjs6QC.js} +17001 -17001
- package/dist/{CodeThumbnail-DC6Fapz1.js → CodeThumbnail-BTH-wEBR.js} +1 -1
- package/dist/{CodeViewer-BiPZi_1v.js → CodeViewer-B-WvPLtI.js} +8 -8
- package/dist/{DocumentToolbar-D8UEbOgN.js → DocumentToolbar-DS3PyBTl.js} +5 -5
- package/dist/{DocxViewer-DWcuVQ-p.js → DocxViewer-DXlgCicZ.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DZwUVW9l.js → F0AiProcessingOverlay-CJvxxlsA.js} +1950 -1730
- package/dist/{F0Alert-B0X1NQZt.js → F0Alert-PwH28ciS.js} +14 -14
- package/dist/F0AudioPlayer-BFx1oHaA.js +2 -0
- package/dist/{F0Button-D77FmQ8C.js → F0Button-xbk-nrvL.js} +3 -3
- package/dist/{F0CanvasPanel-CJhaPJQu.js → F0CanvasPanel-DxGAla5J.js} +9287 -9455
- package/dist/{F0DocumentViewer-Bh3YTPo0.js → F0DocumentViewer-CnkhmQ7D.js} +4 -4
- package/dist/{F0DocumentViewer-BxLI6uSI.js → F0DocumentViewer-xr-beeYT.js} +1 -1
- package/dist/{F0Icon-BNbi0D6w.js → F0Icon-Dr2xuQq2.js} +1 -1
- package/dist/{F0Map-De-tzoLR.js → F0Map-tFtFJtP4.js} +17 -17
- package/dist/{F0Select-B7ieIoT3.js → F0Select-DD_AdtqV.js} +8 -8
- package/dist/{F0Text-DviQkBfb.js → F0Text-DzVOqGyO.js} +2 -2
- package/dist/F0VideoPlayer-BFFYbcYS.js +1 -0
- package/dist/{F0VideoPlayer-DUurEQQl.js → F0VideoPlayer-DU_Cro6a.js} +19 -19
- package/dist/{HtmlThumbnail-CIVF0Blj.js → HtmlThumbnail-BNAinxys.js} +1 -1
- package/dist/{HtmlViewer-BOO3_ZIO.js → HtmlViewer-D3wKqOzs.js} +9 -9
- package/dist/{LayoutGroup-tF3JJB3u.js → LayoutGroup-CXsoUZn_.js} +1 -1
- package/dist/{Map-CLpAJaWO.js → Map-B8TeG7oj.js} +13 -13
- package/dist/{PdfThumbnail-D7uDK81R.js → PdfThumbnail-kBD_x9E3.js} +1 -1
- package/dist/{PdfViewer-DsgPEXkU.js → PdfViewer-CsIZKhkG.js} +10 -10
- package/dist/{SandboxedHtmlFrame-B1M4shqP.js → SandboxedHtmlFrame-Pi5lxvZj.js} +2 -2
- package/dist/{SheetViewer-CUX493Vk.js → SheetViewer-BjMKD7JX.js} +5 -5
- package/dist/{TextViewer-BmzjNF6r.js → TextViewer-DQWC74l9.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +29 -7
- package/dist/{dist-DgXiI4WF.js → dist-BgfZJh24.js} +1 -1
- package/dist/{dist-Bh73WT95.js → dist-Bvf79ox7.js} +4 -4
- package/dist/{dist-ChMbkCVF.js → dist-CvYOoTs5.js} +1 -1
- package/dist/experimental.d.ts +230 -150
- package/dist/experimental.js +7263 -6134
- package/dist/{exports-CcA3MJIQ.d.ts → exports-DBaGx_h5.d.ts} +7 -255
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +183 -183
- package/dist/{highlight-yZiopYgr.js → highlight-D78L3lJD.js} +1 -1
- package/dist/{i18n-provider-DOsrN9vZ.js → i18n-provider-aZCxX7lT.js} +1 -1
- package/dist/{i18n-provider-defaults-TuWORJa7.d.ts → i18n-provider-defaults-BUY-YS7I.d.ts} +18 -0
- package/dist/{i18n-provider-defaults-DW-ORCam.js → i18n-provider-defaults-BpglikGz.js} +18 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CVwiBJ7Q.d.ts → index-BHnszH8I.d.ts} +438 -3
- package/dist/{maplibre-AHkgKCQi.js → maplibre-BkIfNzww.js} +1 -1
- package/dist/{pdfWorker-DcPe6nxA.js → pdfWorker-Bx_18LOR.js} +1 -1
- package/dist/{popover-CJEgjHEo.js → popover-CT3rox5D.js} +1 -1
- package/dist/{posts-BHRBUAYJ.js → posts-i2uZfohA.js} +16 -11
- package/dist/{scrollarea-CpmGfD8i.js → scrollarea-iuapGs70.js} +3 -3
- package/dist/{skeleton-B89BXlEW.js → skeleton-C5JQM5pK.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-BHbEKlGW.js → toolbarStyles-DblQOIMP.js} +1 -1
- package/dist/{types-DJqxacZz.d.ts → types-BYO_PD6I.d.ts} +2 -2
- package/dist/{useData-DjfhwI-2.js → useData-Af3QuQSP.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Bm0gqQE_.js +0 -2
- package/dist/F0VideoPlayer-DrXizQ53.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $r as t, $t as n, A as r, An as i, Ar as a, Bn as o, Bt as s, C as c, Cn as l, Cr as u, D as d, Dn as f, Dr as p, E as m, En as h, Er as g, Fn as _, Ft as v, Gn as y, Gt as b, Hn as x, Ht as S, In 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, Lt as M, M as N, Mn as P, Mr as F, N as I, Nn as ee, Nr as te, O as L, On as ne, Or as re, P as ie, Pn as ae, Qn as oe, Qr as se, Qt as ce, Rn as le, Rt as ue, S as de, Sn as fe, Sr as pe, St as me, T as he, Tn as ge, Tr as _e, Un as ve, Ut as ye, Vn as be, Wn as xe, Wr as Se, Wt as Ce, X as we, Xn as Te, Xt as Ee, Yn as De, Yr as Oe, Yt as ke, Z as Ae, Zn as je, Zr as Me, _ as Ne, _r as Pe, _t as Fe, ai as Ie, ar as Le, b as Re, bi as ze, br as Be, bt as Ve, c as He, cn as Ue, cr as We, d as Ge, di as Ke, dn as qe, dr as Je, ei as Ye, er as Xe, f as Ze, fi as Qe, fr as $e, g as et, gr as tt, gt as nt, h as rt, hr as it, ht as at, i as ot, ii as st, in as ct, ir as lt, j as ut, jn as dt, jr as ft, k as pt, kn as mt, kr as ht, kt as gt, l as _t, ln as vt, lr as yt, mr as bt, ni as xt, nn as St, nr as Ct, or as wt, ot as Tt, p as Et, pi as Dt, pr as Ot, qn as kt, qr as At, qt as jt, ri as Mt, rn as Nt, rr as Pt, s as Ft, sn as It, sr as Lt, t as Rt, tn as zt, tr as Bt, u as Vt, un as Ht, ur as Ut, ut as Wt, v as Gt, vr as Kt, vt as qt, w as Jt, wi as Yt, wn as Xt, wr as Zt, x as Qt, xi as $t, xr as en, xt as tn, y as nn, yi as rn, yr as an, yt as on, zn as sn, zt as cn } from "./CoachmarkProvider-
|
|
3
|
-
import { a as R, i as ln, n as un, o as dn, r as z, t as fn } from "./i18n-provider-
|
|
4
|
-
import { n as pn, t as mn } from "./skeleton-
|
|
2
|
+
import { $r as t, $t as n, A as r, An as i, Ar as a, Bn as o, Bt as s, C as c, Cn as l, Cr as u, D as d, Dn as f, Dr as p, E as m, En as h, Er as g, Fn as _, Ft as v, Gn as y, Gt as b, Hn as x, Ht as S, In 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, Lt as M, M as N, Mn as P, Mr as F, N as I, Nn as ee, Nr as te, O as L, On as ne, Or as re, P as ie, Pn as ae, Qn as oe, Qr as se, Qt as ce, Rn as le, Rt as ue, S as de, Sn as fe, Sr as pe, St as me, T as he, Tn as ge, Tr as _e, Un as ve, Ut as ye, Vn as be, Wn as xe, Wr as Se, Wt as Ce, X as we, Xn as Te, Xt as Ee, Yn as De, Yr as Oe, Yt as ke, Z as Ae, Zn as je, Zr as Me, _ as Ne, _r as Pe, _t as Fe, ai as Ie, ar as Le, b as Re, bi as ze, br as Be, bt as Ve, c as He, cn as Ue, cr as We, d as Ge, di as Ke, dn as qe, dr as Je, ei as Ye, er as Xe, f as Ze, fi as Qe, fr as $e, g as et, gr as tt, gt as nt, h as rt, hr as it, ht as at, i as ot, ii as st, in as ct, ir as lt, j as ut, jn as dt, jr as ft, k as pt, kn as mt, kr as ht, kt as gt, l as _t, ln as vt, lr as yt, mr as bt, ni as xt, nn as St, nr as Ct, or as wt, ot as Tt, p as Et, pi as Dt, pr as Ot, qn as kt, qr as At, qt as jt, ri as Mt, rn as Nt, rr as Pt, s as Ft, sn as It, sr as Lt, t as Rt, tn as zt, tr as Bt, u as Vt, un as Ht, ur as Ut, ut as Wt, v as Gt, vr as Kt, vt as qt, w as Jt, wi as Yt, wn as Xt, wr as Zt, x as Qt, xi as $t, xr as en, xt as tn, y as nn, yi as rn, yr as an, yt as on, zn as sn, zt as cn } from "./CoachmarkProvider-CuUjs6QC.js";
|
|
3
|
+
import { a as R, i as ln, n as un, o as dn, r as z, t as fn } from "./i18n-provider-aZCxX7lT.js";
|
|
4
|
+
import { n as pn, t as mn } from "./skeleton-C5JQM5pK.js";
|
|
5
5
|
import { A as hn, C as gn, D as _n, F as vn, I as yn, L as B, M as bn, N as xn, O as Sn, P as Cn, R as wn, S as Tn, _ as En, b as Dn, c as On, f as kn, g as An, h as jn, j as Mn, k as Nn, l as Pn, m as Fn, p as In, v as Ln, w as Rn, x as zn, y as Bn } from "./tooltip-BX4dSfeL.js";
|
|
6
|
-
import { A as Vn, M as Hn, N as Un, U as Wn, b as Gn, f as Kn, h as qn, j as Jn, m as Yn, n as Xn, p as Zn, r as Qn, t as V, w as $n, wt as er, y as tr, z as nr } from "./F0Button-
|
|
7
|
-
import { A as rr,
|
|
8
|
-
import { $
|
|
9
|
-
import { a as Ja, i as Ya, n as Xa, o as Za, r as Qa, t as H } from "./F0Icon-
|
|
10
|
-
import { t as $a } from "./i18n-provider-defaults-
|
|
11
|
-
import { A as eo, C as to, D as no, H as ro, N as io, S as ao, U as oo, a as so, b as co, f as lo, g as uo, h as fo, i as po, k as mo, l as ho, m as go, n as _o, r as vo, t as yo, u as bo } from "./useData-
|
|
12
|
-
import { $ as xo, At as So, B as Co, C as wo, Ct as To, En as Eo, Er as Do, Et as Oo, Ft as ko, G as Ao, H as jo, I as Mo, K as No, Lt as Po, Mt as Fo, Nn as Io, Nt as Lo, Ot as Ro, Pt as zo, Q as Bo, R as Vo, Sr as Ho, Tn as Uo, Tr as Wo, Tt as Go, U as Ko, V as qo, W as Jo, X as Yo, Y as Xo, _ as Zo, _t as Qo, a as $o, ar as es, br as ts, c as ns, ct as rs, en as is, et as as, fr as os, g as ss, gt as cs, h as ls, ht as us, i as ds, jt as fs, kt as ps, l as ms, lr as hs, m as gs, mt as _s, nn as vs, o as ys, p as bs, pt as xs, q as Ss, r as Cs, s as ws, sr as Ts, st as Es, t as Ds, tt as Os, u as ks, v as As, wn as js, wr as Ms, wt as Ns, xr as Ps, xt as Fs, yt as Is, z as Ls } from "./F0Select-
|
|
6
|
+
import { A as Vn, M as Hn, N as Un, U as Wn, b as Gn, f as Kn, h as qn, j as Jn, m as Yn, n as Xn, p as Zn, r as Qn, t as V, w as $n, wt as er, y as tr, z as nr } from "./F0Button-xbk-nrvL.js";
|
|
7
|
+
import { A as rr, B as ir, C as ar, D as or, E as sr, F as cr, I as lr, L as ur, M as dr, N as fr, O as pr, P as mr, R as hr, S as gr, T as _r, _ as vr, a as yr, b as br, c as xr, d as Sr, f as Cr, g as wr, h as Tr, i as Er, j as Dr, k as Or, l as kr, m as Ar, n as jr, o as Mr, p as Nr, r as Pr, s as Fr, t as Ir, u as Lr, v as Rr, w as zr, x as Br, y as Vr, z as Hr } from "./F0AiProcessingOverlay-CJvxxlsA.js";
|
|
8
|
+
import { $c as Ur, Ac as Wr, Ai as Gr, An as Kr, B as qr, Bi as Jr, Br as Yr, Cc as Xr, Ci as Zr, Co as Qr, Cr as $r, Di as ei, Do as ti, Dr as ni, Ei as ri, Eo as ii, Er as ai, Es as oi, F as si, Fc as ci, Fi as li, Fn as ui, Gs as di, Ho as fi, Hs as pi, I as mi, Ic as hi, Ii as gi, Ir as _i, L as vi, Li as yi, Lr as bi, M as xi, Mc as Si, Mi as Ci, Mn as wi, Mo as Ti, Mr as Ei, Ms as Di, N as Oi, Nc as ki, Ni as Ai, Nn as ji, Oi as Mi, Or as Ni, P as Pi, Pc as Fi, Pi as Ii, Pn as Li, Qa as Ri, Qr as zi, R as Bi, Rc as Vi, Ri as Hi, Rr as Ui, Sc as Wi, Si as Gi, To as Ki, Tr as qi, Uc as Ji, Us as Yi, Vo as Xi, Vr as Zi, Xc as Qi, Xs as $i, Yo as ea, Ys as ta, Zo as na, Zr as ra, _n as ia, bn as aa, bo as oa, ci as sa, co as ca, dn as la, gi as ua, gn as da, hi as fa, hn as pa, ii as ma, jc as ha, ji as ga, jn as _a, jo as va, jr as ya, jt as ba, ki as xa, kn as Sa, kr as Ca, lo as wa, mi as Ta, mn as Ea, n as Da, ni as Oa, oi as ka, pn as Aa, ri as ja, rt as Ma, t as Na, tc as Pa, ts as Fa, us as Ia, vc as La, vi as Ra, wr as za, xi as Ba, xn as Va, yi as Ha, yn as Ua, z as Wa, zi as Ga, zr as Ka, zs as qa } from "./F0CanvasPanel-DxGAla5J.js";
|
|
9
|
+
import { a as Ja, i as Ya, n as Xa, o as Za, r as Qa, t as H } from "./F0Icon-Dr2xuQq2.js";
|
|
10
|
+
import { t as $a } from "./i18n-provider-defaults-BpglikGz.js";
|
|
11
|
+
import { A as eo, C as to, D as no, H as ro, N as io, S as ao, U as oo, a as so, b as co, f as lo, g as uo, h as fo, i as po, k as mo, l as ho, m as go, n as _o, r as vo, t as yo, u as bo } from "./useData-Af3QuQSP.js";
|
|
12
|
+
import { $ as xo, At as So, B as Co, C as wo, Ct as To, En as Eo, Er as Do, Et as Oo, Ft as ko, G as Ao, H as jo, I as Mo, K as No, Lt as Po, Mt as Fo, Nn as Io, Nt as Lo, Ot as Ro, Pt as zo, Q as Bo, R as Vo, Sr as Ho, Tn as Uo, Tr as Wo, Tt as Go, U as Ko, V as qo, W as Jo, X as Yo, Y as Xo, _ as Zo, _t as Qo, a as $o, ar as es, br as ts, c as ns, ct as rs, en as is, et as as, fr as os, g as ss, gt as cs, h as ls, ht as us, i as ds, jt as fs, kt as ps, l as ms, lr as hs, m as gs, mt as _s, nn as vs, o as ys, p as bs, pt as xs, q as Ss, r as Cs, s as ws, sr as Ts, st as Es, t as Ds, tt as Os, u as ks, v as As, wn as js, wr as Ms, wt as Ns, xr as Ps, xt as Fs, yt as Is, z as Ls } from "./F0Select-DD_AdtqV.js";
|
|
13
13
|
import { t as Rs } from "./Check-DAp9gCRh.js";
|
|
14
|
-
import { a as zs } from "./dist-
|
|
14
|
+
import { a as zs } from "./dist-BgfZJh24.js";
|
|
15
15
|
import { t as Bs } from "./Ellipsis-CBouJQYY.js";
|
|
16
16
|
import { t as Vs } from "./LockLocked-gdodYvT_.js";
|
|
17
17
|
import { t as Hs } from "./purify.es-ZpfdAuNV.js";
|
|
18
|
-
import { A as Us, B as Ws, H as Gs, L as Ks, M as qs, N as Js, P as Ys, R as Xs, a as Zs, ft as Qs, i as $s, j as ec, k as tc, t as nc, z as rc } from "./popover-
|
|
19
|
-
import { n as ic, r as ac } from "./scrollarea-
|
|
20
|
-
import { t as oc } from "./F0Text-
|
|
21
|
-
import { t as sc } from "./F0Alert-
|
|
22
|
-
import { n as cc, r as lc, t as uc } from "./F0DocumentViewer-
|
|
18
|
+
import { A as Us, B as Ws, H as Gs, L as Ks, M as qs, N as Js, P as Ys, R as Xs, a as Zs, ft as Qs, i as $s, j as ec, k as tc, t as nc, z as rc } from "./popover-CT3rox5D.js";
|
|
19
|
+
import { n as ic, r as ac } from "./scrollarea-iuapGs70.js";
|
|
20
|
+
import { t as oc } from "./F0Text-DzVOqGyO.js";
|
|
21
|
+
import { t as sc } from "./F0Alert-PwH28ciS.js";
|
|
22
|
+
import { n as cc, r as lc, t as uc } from "./F0DocumentViewer-CnkhmQ7D.js";
|
|
23
23
|
import { t as dc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as fc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as fc } from "./F0VideoPlayer-DU_Cro6a.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
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";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var Oc = {
|
|
|
45
45
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
46
46
|
children: e
|
|
47
47
|
}, t));
|
|
48
|
-
return /* @__PURE__ */ X(
|
|
48
|
+
return /* @__PURE__ */ X(Ti, {
|
|
49
49
|
layout: "home",
|
|
50
50
|
children: /* @__PURE__ */ Z("div", {
|
|
51
51
|
ref: r,
|
|
@@ -79,7 +79,7 @@ var Oc = {
|
|
|
79
79
|
}), Ac = Za({
|
|
80
80
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-page py-5",
|
|
81
81
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
82
|
-
}), jc = pc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
82
|
+
}), jc = pc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(Ti, {
|
|
83
83
|
layout: "standard",
|
|
84
84
|
children: /* @__PURE__ */ X("section", {
|
|
85
85
|
ref: a,
|
|
@@ -2954,7 +2954,7 @@ var Ol = Cl("Dashboard", Dl), kl = R(pn("Dashboard", Ol)), Al = Za({
|
|
|
2954
2954
|
...l,
|
|
2955
2955
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2956
2956
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2957
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2957
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(wa, {
|
|
2958
2958
|
items: jl(d),
|
|
2959
2959
|
"data-testid": "actions-dropdown"
|
|
2960
2960
|
}) : null]
|
|
@@ -3139,7 +3139,7 @@ var Vl = _c(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3139
3139
|
})]
|
|
3140
3140
|
});
|
|
3141
3141
|
Jl.displayName = "F0BigNumber";
|
|
3142
|
-
var Xl =
|
|
3142
|
+
var Xl = oa(Jl, Yl), Zl = R(Xl), Ql = [
|
|
3143
3143
|
"default",
|
|
3144
3144
|
"outline",
|
|
3145
3145
|
"neutral"
|
|
@@ -3147,14 +3147,14 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3147
3147
|
className: "flex items-center gap-2",
|
|
3148
3148
|
children: e.map((e, t) => {
|
|
3149
3149
|
switch (e.type) {
|
|
3150
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3150
|
+
case "segmentedControl": return /* @__PURE__ */ X(Ci, {
|
|
3151
3151
|
items: e.items,
|
|
3152
3152
|
value: e.value,
|
|
3153
3153
|
onChange: e.onChange,
|
|
3154
3154
|
disabled: e.disabled,
|
|
3155
3155
|
ariaLabel: e.ariaLabel
|
|
3156
3156
|
}, t);
|
|
3157
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3157
|
+
case "dropdown": return /* @__PURE__ */ X(wa, {
|
|
3158
3158
|
items: e.items,
|
|
3159
3159
|
disabled: e.disabled,
|
|
3160
3160
|
children: /* @__PURE__ */ X(V, {
|
|
@@ -3170,7 +3170,7 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3170
3170
|
})
|
|
3171
3171
|
}), iu = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3172
3172
|
let r = qn(), i = z().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3173
|
-
return /* @__PURE__ */ X(
|
|
3173
|
+
return /* @__PURE__ */ X(ri, {
|
|
3174
3174
|
open: t,
|
|
3175
3175
|
onOpenChange: n,
|
|
3176
3176
|
asChild: !0,
|
|
@@ -3178,7 +3178,7 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3178
3178
|
className: "flex flex-col",
|
|
3179
3179
|
children: [/* @__PURE__ */ Z("div", {
|
|
3180
3180
|
className: "flex items-center",
|
|
3181
|
-
children: [/* @__PURE__ */ X(
|
|
3181
|
+
children: [/* @__PURE__ */ X(Mi, {
|
|
3182
3182
|
asChild: !0,
|
|
3183
3183
|
children: /* @__PURE__ */ X("button", {
|
|
3184
3184
|
type: "button",
|
|
@@ -3196,7 +3196,7 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3196
3196
|
children: e.summary
|
|
3197
3197
|
}) : null,
|
|
3198
3198
|
a ? /* @__PURE__ */ X(ru, { actions: e.actions }) : null,
|
|
3199
|
-
/* @__PURE__ */ X(
|
|
3199
|
+
/* @__PURE__ */ X(Mi, {
|
|
3200
3200
|
asChild: !0,
|
|
3201
3201
|
children: /* @__PURE__ */ X(V, {
|
|
3202
3202
|
variant: "outline",
|
|
@@ -3225,7 +3225,7 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3225
3225
|
},
|
|
3226
3226
|
transition: { duration: r ? 0 : .2 },
|
|
3227
3227
|
className: "overflow-hidden",
|
|
3228
|
-
children: /* @__PURE__ */ X(
|
|
3228
|
+
children: /* @__PURE__ */ X(ei, {
|
|
3229
3229
|
forceMount: !0,
|
|
3230
3230
|
asChild: !0,
|
|
3231
3231
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3269,7 +3269,7 @@ var Xl = Wi(Jl, Yl), Zl = R(Xl), Ql = [
|
|
|
3269
3269
|
});
|
|
3270
3270
|
});
|
|
3271
3271
|
ou.displayName = "F0Accordion";
|
|
3272
|
-
var su = R(pn("F0Accordion",
|
|
3272
|
+
var su = R(pn("F0Accordion", oa(ou, au))), cu = [
|
|
3273
3273
|
"info",
|
|
3274
3274
|
"warning",
|
|
3275
3275
|
"critical",
|
|
@@ -3340,9 +3340,9 @@ var du = R(pn("F0ChipList", uu)), fu = [
|
|
|
3340
3340
|
"positive",
|
|
3341
3341
|
"transparent"
|
|
3342
3342
|
], hu = {
|
|
3343
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3343
|
+
get: async (e) => JSON.parse(localStorage.getItem(sa(e)) ?? "{}"),
|
|
3344
3344
|
set: async (e, t) => {
|
|
3345
|
-
localStorage.setItem(
|
|
3345
|
+
localStorage.setItem(sa(e), JSON.stringify(t));
|
|
3346
3346
|
}
|
|
3347
3347
|
}, gu = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position: i = "right", size: a = "md", primaryAction: o, secondaryAction: s, title: c, description: l, module: u, otherActions: d, tabs: f, modal: p = !1, activeTabId: m, setActiveTabId: h, disableContentPadding: g, container: _, onWidthChange: v }) => {
|
|
3348
3348
|
let [y, b] = J(n);
|
|
@@ -3459,11 +3459,11 @@ var xu = bu;
|
|
|
3459
3459
|
//#endregion
|
|
3460
3460
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3461
3461
|
function Su(e) {
|
|
3462
|
-
let t =
|
|
3462
|
+
let t = Li(e).shape, n = [];
|
|
3463
3463
|
for (let [e, r] of Object.entries(t)) {
|
|
3464
|
-
let t = r, i =
|
|
3464
|
+
let t = r, i = Kr(t);
|
|
3465
3465
|
if (!i) continue;
|
|
3466
|
-
let a =
|
|
3466
|
+
let a = wi(t, i), o = P(t, a), s = {
|
|
3467
3467
|
name: e,
|
|
3468
3468
|
type: a,
|
|
3469
3469
|
label: i.label,
|
|
@@ -3535,9 +3535,9 @@ function wu(e) {
|
|
|
3535
3535
|
let r = {
|
|
3536
3536
|
...n,
|
|
3537
3537
|
...e
|
|
3538
|
-
}, i =
|
|
3538
|
+
}, i = Li(t), a = [];
|
|
3539
3539
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3540
|
-
let n =
|
|
3540
|
+
let n = Kr(t);
|
|
3541
3541
|
n?.renderIf ? mt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3542
3542
|
}
|
|
3543
3543
|
return a;
|
|
@@ -3581,12 +3581,12 @@ var Eu = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3581
3581
|
modal: !0,
|
|
3582
3582
|
children: /* @__PURE__ */ Z("div", {
|
|
3583
3583
|
className: "flex flex-col gap-4 py-2",
|
|
3584
|
-
children: [/* @__PURE__ */ X(
|
|
3584
|
+
children: [/* @__PURE__ */ X(ca, {
|
|
3585
3585
|
type: n,
|
|
3586
3586
|
size: "lg"
|
|
3587
3587
|
}), /* @__PURE__ */ Z("div", {
|
|
3588
3588
|
className: "flex flex-col gap-0.5",
|
|
3589
|
-
children: [/* @__PURE__ */ X(
|
|
3589
|
+
children: [/* @__PURE__ */ X(fa, {
|
|
3590
3590
|
className: "text-xl sm:text-lg",
|
|
3591
3591
|
children: r
|
|
3592
3592
|
}), /* @__PURE__ */ X(T, {
|
|
@@ -3973,7 +3973,7 @@ var Wu = () => {}, Gu = ({ steps: e, children: t, isOpen: n, onClose: r = Wu, ti
|
|
|
3973
3973
|
onClose: r
|
|
3974
3974
|
}), g = z(), _ = e[h.currentStep], v = h.currentStep === 0, y = h.currentStep === e.length - 1, b = y ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, x = _?.previousLabel ?? c ?? g.wizard.previous, S = K(() => ({
|
|
3975
3975
|
label: b,
|
|
3976
|
-
icon: y ? void 0 :
|
|
3976
|
+
icon: y ? void 0 : Ji,
|
|
3977
3977
|
onClick: () => void h.goNext(),
|
|
3978
3978
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
3979
3979
|
loading: h.loading
|
|
@@ -4030,14 +4030,14 @@ Gu.displayName = "F0Wizard", R(Gu);
|
|
|
4030
4030
|
//#endregion
|
|
4031
4031
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4032
4032
|
function Ku(e) {
|
|
4033
|
-
let t =
|
|
4034
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4033
|
+
let t = Li(e).shape, n = Object.entries(t);
|
|
4034
|
+
return n.length !== 0 && n.every(([, e]) => Kr(e)?.disabled === !0);
|
|
4035
4035
|
}
|
|
4036
4036
|
function qu(e, t) {
|
|
4037
4037
|
if (t) return Object.keys(t);
|
|
4038
|
-
let n =
|
|
4038
|
+
let n = Li(e).shape, r = /* @__PURE__ */ new Set();
|
|
4039
4039
|
for (let e of Object.values(n)) {
|
|
4040
|
-
let t =
|
|
4040
|
+
let t = Kr(e);
|
|
4041
4041
|
t?.section && r.add(t.section);
|
|
4042
4042
|
}
|
|
4043
4043
|
return Array.from(r);
|
|
@@ -4045,15 +4045,15 @@ function qu(e, t) {
|
|
|
4045
4045
|
function Ju(e, t) {
|
|
4046
4046
|
let n = e.shape, r = {};
|
|
4047
4047
|
for (let [e, i] of Object.entries(n)) {
|
|
4048
|
-
let n =
|
|
4048
|
+
let n = Kr(i);
|
|
4049
4049
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4050
4050
|
}
|
|
4051
|
-
return
|
|
4051
|
+
return ni(r);
|
|
4052
4052
|
}
|
|
4053
4053
|
function Yu(e, t, n) {
|
|
4054
4054
|
let r = t ?? {};
|
|
4055
4055
|
if (n) return n({ data: r });
|
|
4056
|
-
let i =
|
|
4056
|
+
let i = Li(e).shape;
|
|
4057
4057
|
return Object.entries(i).every(([e, t]) => {
|
|
4058
4058
|
if (t.isOptional()) return !0;
|
|
4059
4059
|
let n = r[e];
|
|
@@ -4279,7 +4279,7 @@ function td({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4279
4279
|
});
|
|
4280
4280
|
}
|
|
4281
4281
|
function nd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: u, onStepChanged: d, allowStepSkipping: f, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: h, autoSkipCompletedSteps: g = !1, renderCustomField: _ }) {
|
|
4282
|
-
let { name: v, schema: y, sections: b, defaultValues: x, onSubmit: S, submitConfig: C, errorTriggerMode: w = "on-blur" } = e, T = C?.label, E = K(() =>
|
|
4282
|
+
let { name: v, schema: y, sections: b, defaultValues: x, onSubmit: S, submitConfig: C, errorTriggerMode: w = "on-blur" } = e, T = C?.label, E = K(() => Li(y), [y]), D = K(() => qu(y, b), [y, b]), O = W((e) => Ku(Ju(E, e)), [E]), k = l(), A = q(x ? { ...x } : {}), j = q(s ?? 0), M = W((e) => async () => {
|
|
4283
4283
|
await k.submit();
|
|
4284
4284
|
}, [k]), N = W((e) => k.hasErrors, [k.hasErrors]), P = t ?? e.steps, F = K(() => P ?? D.map((e) => ({
|
|
4285
4285
|
title: b?.[e]?.title ?? e,
|
|
@@ -4569,7 +4569,7 @@ var ud = { open: ld }, dd = [
|
|
|
4569
4569
|
id: C,
|
|
4570
4570
|
disabled: c
|
|
4571
4571
|
}) : null,
|
|
4572
|
-
/* @__PURE__ */ Z(
|
|
4572
|
+
/* @__PURE__ */ Z(Ai, {
|
|
4573
4573
|
value: [O],
|
|
4574
4574
|
onValueChange: j,
|
|
4575
4575
|
onValueCommit: M,
|
|
@@ -4584,14 +4584,14 @@ var ud = { open: ld }, dd = [
|
|
|
4584
4584
|
onMouseEnter: () => P(!0),
|
|
4585
4585
|
onMouseLeave: () => P(!1),
|
|
4586
4586
|
children: [
|
|
4587
|
-
/* @__PURE__ */ X(
|
|
4587
|
+
/* @__PURE__ */ X(gi, {
|
|
4588
4588
|
className: gd({ status: re }),
|
|
4589
|
-
children: /* @__PURE__ */ X(
|
|
4589
|
+
children: /* @__PURE__ */ X(Ii, { className: _d({
|
|
4590
4590
|
status: re,
|
|
4591
4591
|
disabled: c
|
|
4592
4592
|
}) })
|
|
4593
4593
|
}),
|
|
4594
|
-
/* @__PURE__ */ X(
|
|
4594
|
+
/* @__PURE__ */ X(li, {
|
|
4595
4595
|
id: S,
|
|
4596
4596
|
"aria-label": ie ? void 0 : T,
|
|
4597
4597
|
"aria-labelledby": ie ? C : void 0,
|
|
@@ -4630,7 +4630,7 @@ var ud = { open: ld }, dd = [
|
|
|
4630
4630
|
});
|
|
4631
4631
|
});
|
|
4632
4632
|
bd.displayName = "F0Slider";
|
|
4633
|
-
var xd = pn("F0Slider",
|
|
4633
|
+
var xd = pn("F0Slider", oa(R(bd), hd)), Sd = [
|
|
4634
4634
|
"completed",
|
|
4635
4635
|
"in-progress",
|
|
4636
4636
|
"not-started"
|
|
@@ -4898,7 +4898,7 @@ function Bd(e) {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
//#endregion
|
|
4900
4900
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4901
|
-
var Vd = Wn.create(
|
|
4901
|
+
var Vd = Wn.create(la), Hd = yc(() => {
|
|
4902
4902
|
let e = z();
|
|
4903
4903
|
return /* @__PURE__ */ Z("div", {
|
|
4904
4904
|
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",
|
|
@@ -5254,12 +5254,12 @@ var rf = () => {
|
|
|
5254
5254
|
let { isQuestionTypeAllowed: e, datasets: t } = $d(), { t: n } = z(), r = [
|
|
5255
5255
|
{
|
|
5256
5256
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5257
|
-
icon:
|
|
5257
|
+
icon: Fa,
|
|
5258
5258
|
questionType: "rating"
|
|
5259
5259
|
},
|
|
5260
5260
|
{
|
|
5261
5261
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5262
|
-
icon:
|
|
5262
|
+
icon: Wr,
|
|
5263
5263
|
questionType: "multi-select"
|
|
5264
5264
|
},
|
|
5265
5265
|
{
|
|
@@ -5269,32 +5269,32 @@ var rf = () => {
|
|
|
5269
5269
|
},
|
|
5270
5270
|
{
|
|
5271
5271
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5272
|
-
icon:
|
|
5272
|
+
icon: ea,
|
|
5273
5273
|
questionType: "text"
|
|
5274
5274
|
},
|
|
5275
5275
|
{
|
|
5276
5276
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5277
|
-
icon:
|
|
5277
|
+
icon: pi,
|
|
5278
5278
|
questionType: "longText"
|
|
5279
5279
|
},
|
|
5280
5280
|
{
|
|
5281
5281
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5282
|
-
icon:
|
|
5282
|
+
icon: oi,
|
|
5283
5283
|
questionType: "numeric"
|
|
5284
5284
|
},
|
|
5285
5285
|
{
|
|
5286
5286
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5287
|
-
icon:
|
|
5287
|
+
icon: Yi,
|
|
5288
5288
|
questionType: "link"
|
|
5289
5289
|
},
|
|
5290
5290
|
{
|
|
5291
5291
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5292
|
-
icon:
|
|
5292
|
+
icon: Vi,
|
|
5293
5293
|
questionType: "date"
|
|
5294
5294
|
},
|
|
5295
5295
|
{
|
|
5296
5296
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5297
|
-
icon:
|
|
5297
|
+
icon: fi,
|
|
5298
5298
|
questionType: "file"
|
|
5299
5299
|
},
|
|
5300
5300
|
{
|
|
@@ -5310,17 +5310,17 @@ var rf = () => {
|
|
|
5310
5310
|
})) : [];
|
|
5311
5311
|
return [...r, ...i];
|
|
5312
5312
|
}, af = {
|
|
5313
|
-
rating:
|
|
5314
|
-
"multi-select":
|
|
5313
|
+
rating: Fa,
|
|
5314
|
+
"multi-select": Wr,
|
|
5315
5315
|
select: Rs,
|
|
5316
|
-
text:
|
|
5317
|
-
longText:
|
|
5318
|
-
numeric:
|
|
5319
|
-
link:
|
|
5320
|
-
date:
|
|
5316
|
+
text: ea,
|
|
5317
|
+
longText: pi,
|
|
5318
|
+
numeric: oi,
|
|
5319
|
+
link: Yi,
|
|
5320
|
+
date: Vi,
|
|
5321
5321
|
"dropdown-single": ro,
|
|
5322
5322
|
"dropdown-multi": ro,
|
|
5323
|
-
file:
|
|
5323
|
+
file: fi,
|
|
5324
5324
|
checkbox: zs
|
|
5325
5325
|
}, of = () => {
|
|
5326
5326
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = $d(), [a, o] = J(!1), s = rf(), { t: c } = z(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5354,7 +5354,7 @@ var rf = () => {
|
|
|
5354
5354
|
children: /* @__PURE__ */ Z("div", {
|
|
5355
5355
|
className: "flex w-full flex-row items-center gap-2",
|
|
5356
5356
|
children: [/* @__PURE__ */ X(H, {
|
|
5357
|
-
icon:
|
|
5357
|
+
icon: Ur,
|
|
5358
5358
|
color: "default"
|
|
5359
5359
|
}), /* @__PURE__ */ X("span", {
|
|
5360
5360
|
className: "flex-1 text-base font-medium",
|
|
@@ -5407,7 +5407,7 @@ var rf = () => {
|
|
|
5407
5407
|
children: /* @__PURE__ */ Z("div", {
|
|
5408
5408
|
className: "flex w-full flex-row items-center gap-2",
|
|
5409
5409
|
children: [/* @__PURE__ */ X(H, {
|
|
5410
|
-
icon:
|
|
5410
|
+
icon: Wr,
|
|
5411
5411
|
color: "default"
|
|
5412
5412
|
}), /* @__PURE__ */ X("span", {
|
|
5413
5413
|
className: "flex-1",
|
|
@@ -5587,7 +5587,7 @@ var pf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(q
|
|
|
5587
5587
|
className: "flex w-full flex-row items-center gap-2",
|
|
5588
5588
|
children: [
|
|
5589
5589
|
/* @__PURE__ */ X(Xa, {
|
|
5590
|
-
icon:
|
|
5590
|
+
icon: $i,
|
|
5591
5591
|
color: "default"
|
|
5592
5592
|
}),
|
|
5593
5593
|
/* @__PURE__ */ X("span", {
|
|
@@ -5699,7 +5699,7 @@ var pf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(q
|
|
|
5699
5699
|
className: "flex w-full flex-row items-center gap-2",
|
|
5700
5700
|
children: [
|
|
5701
5701
|
/* @__PURE__ */ X(Xa, {
|
|
5702
|
-
icon:
|
|
5702
|
+
icon: Wr,
|
|
5703
5703
|
color: "default"
|
|
5704
5704
|
}),
|
|
5705
5705
|
/* @__PURE__ */ X("span", {
|
|
@@ -5728,11 +5728,11 @@ var pf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(q
|
|
|
5728
5728
|
let { t: a } = z(), { labels: o } = $d();
|
|
5729
5729
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Ks, {}) : null, /* @__PURE__ */ Z(ec, { children: [e ? /* @__PURE__ */ X(hf, {
|
|
5730
5730
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5731
|
-
icon:
|
|
5731
|
+
icon: di,
|
|
5732
5732
|
onClick: r
|
|
5733
5733
|
}) : null, t ? /* @__PURE__ */ X(hf, {
|
|
5734
5734
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5735
|
-
icon:
|
|
5735
|
+
icon: Wi,
|
|
5736
5736
|
onClick: i,
|
|
5737
5737
|
critical: !0
|
|
5738
5738
|
}) : null] })] });
|
|
@@ -5767,13 +5767,13 @@ function _f({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5767
5767
|
}),
|
|
5768
5768
|
T ? /* @__PURE__ */ X(ec, { children: /* @__PURE__ */ X(pf, {
|
|
5769
5769
|
label: o("surveyFormBuilder.labels.required"),
|
|
5770
|
-
icon:
|
|
5770
|
+
icon: Qi,
|
|
5771
5771
|
checked: !!l?.required,
|
|
5772
5772
|
onChange: _
|
|
5773
5773
|
}) }) : null,
|
|
5774
5774
|
E ? /* @__PURE__ */ X(ec, { children: /* @__PURE__ */ X(pf, {
|
|
5775
5775
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5776
|
-
icon:
|
|
5776
|
+
icon: Wr,
|
|
5777
5777
|
checked: p,
|
|
5778
5778
|
onChange: b
|
|
5779
5779
|
}) }) : null,
|
|
@@ -5963,7 +5963,7 @@ var vf = ({ notice: e, className: t, children: n }) => {
|
|
|
5963
5963
|
children: /* @__PURE__ */ Z("div", {
|
|
5964
5964
|
className: "flex w-full flex-row items-center gap-2",
|
|
5965
5965
|
children: [/* @__PURE__ */ X(H, {
|
|
5966
|
-
icon:
|
|
5966
|
+
icon: Ur,
|
|
5967
5967
|
color: "default"
|
|
5968
5968
|
}), /* @__PURE__ */ X("span", {
|
|
5969
5969
|
className: "flex-1 text-base font-medium",
|
|
@@ -6015,7 +6015,7 @@ var vf = ({ notice: e, className: t, children: n }) => {
|
|
|
6015
6015
|
children: /* @__PURE__ */ Z("div", {
|
|
6016
6016
|
className: "flex w-full flex-row items-center gap-2",
|
|
6017
6017
|
children: [/* @__PURE__ */ X(H, {
|
|
6018
|
-
icon:
|
|
6018
|
+
icon: Wr,
|
|
6019
6019
|
color: "default"
|
|
6020
6020
|
}), /* @__PURE__ */ X("span", {
|
|
6021
6021
|
className: "flex-1",
|
|
@@ -6249,8 +6249,8 @@ var xf = ({ value: e, label: t, ...n }) => {
|
|
|
6249
6249
|
required: t.required,
|
|
6250
6250
|
maxDecimals: 0,
|
|
6251
6251
|
placeholder: s,
|
|
6252
|
-
icon:
|
|
6253
|
-
}) : /* @__PURE__ */ X(
|
|
6252
|
+
icon: oi
|
|
6253
|
+
}) : /* @__PURE__ */ X(ya, {
|
|
6254
6254
|
type: "text",
|
|
6255
6255
|
size: "md",
|
|
6256
6256
|
value: s,
|
|
@@ -6258,7 +6258,7 @@ var xf = ({ value: e, label: t, ...n }) => {
|
|
|
6258
6258
|
disabled: !0,
|
|
6259
6259
|
label: n("surveyFormBuilder.answer.label"),
|
|
6260
6260
|
hideLabel: !0,
|
|
6261
|
-
icon:
|
|
6261
|
+
icon: oi
|
|
6262
6262
|
})
|
|
6263
6263
|
});
|
|
6264
6264
|
}, kf = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -6432,7 +6432,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6432
6432
|
children: /* @__PURE__ */ X("div", {
|
|
6433
6433
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6434
6434
|
children: /* @__PURE__ */ X(Xa, {
|
|
6435
|
-
icon:
|
|
6435
|
+
icon: Pa,
|
|
6436
6436
|
size: "sm"
|
|
6437
6437
|
})
|
|
6438
6438
|
})
|
|
@@ -6455,13 +6455,13 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6455
6455
|
children: [/* @__PURE__ */ X(V, {
|
|
6456
6456
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6457
6457
|
variant: "ghost",
|
|
6458
|
-
icon: c ?
|
|
6458
|
+
icon: c ? Xr : ha,
|
|
6459
6459
|
onClick: x,
|
|
6460
6460
|
hideLabel: !0
|
|
6461
6461
|
}), /* @__PURE__ */ X(V, {
|
|
6462
6462
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6463
6463
|
variant: "ghost",
|
|
6464
|
-
icon:
|
|
6464
|
+
icon: Wi,
|
|
6465
6465
|
hideLabel: !0,
|
|
6466
6466
|
onClick: S
|
|
6467
6467
|
})]
|
|
@@ -6688,7 +6688,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6688
6688
|
h && c.start(e);
|
|
6689
6689
|
},
|
|
6690
6690
|
children: /* @__PURE__ */ X(H, {
|
|
6691
|
-
icon:
|
|
6691
|
+
icon: Pa,
|
|
6692
6692
|
size: "sm"
|
|
6693
6693
|
})
|
|
6694
6694
|
}) : null, /* @__PURE__ */ X(Lf, { ...e.question })]
|
|
@@ -6718,7 +6718,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6718
6718
|
f && i.start(e);
|
|
6719
6719
|
},
|
|
6720
6720
|
children: /* @__PURE__ */ X(H, {
|
|
6721
|
-
icon:
|
|
6721
|
+
icon: Pa,
|
|
6722
6722
|
size: "sm"
|
|
6723
6723
|
})
|
|
6724
6724
|
}) : null, /* @__PURE__ */ X(Lf, { ...e })]
|
|
@@ -6750,7 +6750,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6750
6750
|
});
|
|
6751
6751
|
}, x = [{
|
|
6752
6752
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6753
|
-
icon:
|
|
6753
|
+
icon: di,
|
|
6754
6754
|
onClick: () => {
|
|
6755
6755
|
d?.({
|
|
6756
6756
|
elementId: e,
|
|
@@ -6759,7 +6759,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6759
6759
|
}
|
|
6760
6760
|
}, {
|
|
6761
6761
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6762
|
-
icon:
|
|
6762
|
+
icon: Wi,
|
|
6763
6763
|
onClick: () => {
|
|
6764
6764
|
u(e);
|
|
6765
6765
|
},
|
|
@@ -6804,7 +6804,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6804
6804
|
}) : null,
|
|
6805
6805
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6806
6806
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6807
|
-
children: /* @__PURE__ */ X(
|
|
6807
|
+
children: /* @__PURE__ */ X(wa, {
|
|
6808
6808
|
items: x,
|
|
6809
6809
|
icon: Bs,
|
|
6810
6810
|
open: p,
|
|
@@ -6880,7 +6880,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6880
6880
|
o.start(e);
|
|
6881
6881
|
},
|
|
6882
6882
|
children: /* @__PURE__ */ X(H, {
|
|
6883
|
-
icon:
|
|
6883
|
+
icon: Pa,
|
|
6884
6884
|
size: "sm"
|
|
6885
6885
|
})
|
|
6886
6886
|
}) : null, /* @__PURE__ */ X(Vf, {
|
|
@@ -6910,7 +6910,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6910
6910
|
p || x.push({
|
|
6911
6911
|
type: "toggle",
|
|
6912
6912
|
label: l,
|
|
6913
|
-
icon:
|
|
6913
|
+
icon: Qi,
|
|
6914
6914
|
checked: !!r?.required,
|
|
6915
6915
|
onCheckedChange: m
|
|
6916
6916
|
});
|
|
@@ -6955,7 +6955,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6955
6955
|
selected: s === e && t === "dropdown-single"
|
|
6956
6956
|
}, {
|
|
6957
6957
|
label: f,
|
|
6958
|
-
icon:
|
|
6958
|
+
icon: Wr,
|
|
6959
6959
|
onClick: () => h("dropdown-multi", e),
|
|
6960
6960
|
selected: s === e && t === "dropdown-multi"
|
|
6961
6961
|
}]
|
|
@@ -6969,16 +6969,16 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6969
6969
|
return x.push({
|
|
6970
6970
|
type: "submenu",
|
|
6971
6971
|
label: u,
|
|
6972
|
-
icon:
|
|
6972
|
+
icon: $i,
|
|
6973
6973
|
selectedLabel: E,
|
|
6974
6974
|
children: w
|
|
6975
6975
|
}), x.push({ type: "separator" }), x.push({
|
|
6976
6976
|
label: i,
|
|
6977
|
-
icon:
|
|
6977
|
+
icon: di,
|
|
6978
6978
|
onClick: y
|
|
6979
6979
|
}), n && x.push({
|
|
6980
6980
|
label: a,
|
|
6981
|
-
icon:
|
|
6981
|
+
icon: Wi,
|
|
6982
6982
|
onClick: b,
|
|
6983
6983
|
critical: !0
|
|
6984
6984
|
}), x;
|
|
@@ -6999,12 +6999,12 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6999
6999
|
return {
|
|
7000
7000
|
id: i,
|
|
7001
7001
|
label: t.title || n,
|
|
7002
|
-
icon:
|
|
7002
|
+
icon: Ur,
|
|
7003
7003
|
onClick: y,
|
|
7004
7004
|
...!h && !g && !t.locked && { otherActions: [
|
|
7005
7005
|
{
|
|
7006
7006
|
label: o,
|
|
7007
|
-
icon:
|
|
7007
|
+
icon: di,
|
|
7008
7008
|
onClick: () => m?.({
|
|
7009
7009
|
elementId: t.id,
|
|
7010
7010
|
type: "section"
|
|
@@ -7013,7 +7013,7 @@ var Pf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7013
7013
|
{ type: "separator" },
|
|
7014
7014
|
{
|
|
7015
7015
|
label: s,
|
|
7016
|
-
icon:
|
|
7016
|
+
icon: Wi,
|
|
7017
7017
|
onClick: () => p(t.id),
|
|
7018
7018
|
critical: !0
|
|
7019
7019
|
}
|
|
@@ -7541,7 +7541,7 @@ function mp({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7541
7541
|
u ? /* @__PURE__ */ X("div", {
|
|
7542
7542
|
className: "min-h-8 p-1",
|
|
7543
7543
|
children: /* @__PURE__ */ X(H, {
|
|
7544
|
-
icon: t.correct ?
|
|
7544
|
+
icon: t.correct ? ha : Xr,
|
|
7545
7545
|
color: t.correct ? "positive" : "critical",
|
|
7546
7546
|
"aria-hidden": !0
|
|
7547
7547
|
})
|
|
@@ -7563,7 +7563,7 @@ var hp = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, gp = () => ({
|
|
|
7563
7563
|
status: "idle"
|
|
7564
7564
|
});
|
|
7565
7565
|
function _p(e, t) {
|
|
7566
|
-
return
|
|
7566
|
+
return Ni().optional().superRefine((n, r) => {
|
|
7567
7567
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7568
7568
|
code: "custom",
|
|
7569
7569
|
message: t("forms.validation.required")
|
|
@@ -7571,7 +7571,7 @@ function _p(e, t) {
|
|
|
7571
7571
|
});
|
|
7572
7572
|
}
|
|
7573
7573
|
function vp(e, t) {
|
|
7574
|
-
return
|
|
7574
|
+
return Ni().optional().superRefine((n, r) => {
|
|
7575
7575
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7576
7576
|
code: "custom",
|
|
7577
7577
|
message: t("forms.validation.required")
|
|
@@ -7582,7 +7582,7 @@ function vp(e, t) {
|
|
|
7582
7582
|
});
|
|
7583
7583
|
}
|
|
7584
7584
|
function yp(e, t) {
|
|
7585
|
-
return
|
|
7585
|
+
return ai().optional().superRefine((n, r) => {
|
|
7586
7586
|
e && n == null && r.addIssue({
|
|
7587
7587
|
code: "custom",
|
|
7588
7588
|
message: t("forms.validation.required")
|
|
@@ -7590,7 +7590,7 @@ function yp(e, t) {
|
|
|
7590
7590
|
});
|
|
7591
7591
|
}
|
|
7592
7592
|
function bp(e, t) {
|
|
7593
|
-
return
|
|
7593
|
+
return $r(Ni()).optional().superRefine((n, r) => {
|
|
7594
7594
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7595
7595
|
code: "custom",
|
|
7596
7596
|
message: t("forms.validation.required")
|
|
@@ -7598,7 +7598,7 @@ function bp(e, t) {
|
|
|
7598
7598
|
});
|
|
7599
7599
|
}
|
|
7600
7600
|
function xp(e, t) {
|
|
7601
|
-
return
|
|
7601
|
+
return qi().optional().superRefine((n, r) => {
|
|
7602
7602
|
e && !n && r.addIssue({
|
|
7603
7603
|
code: "custom",
|
|
7604
7604
|
message: t("forms.validation.required")
|
|
@@ -7607,7 +7607,7 @@ function xp(e, t) {
|
|
|
7607
7607
|
}
|
|
7608
7608
|
var Sp = bp;
|
|
7609
7609
|
function Cp(e, t) {
|
|
7610
|
-
return
|
|
7610
|
+
return za().optional().superRefine((n, r) => {
|
|
7611
7611
|
e && !n && r.addIssue({
|
|
7612
7612
|
code: "custom",
|
|
7613
7613
|
message: t("forms.validation.required")
|
|
@@ -7660,7 +7660,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7660
7660
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7661
7661
|
disabled: i
|
|
7662
7662
|
};
|
|
7663
|
-
return
|
|
7663
|
+
return Sa(_p(!!e.required, t), {
|
|
7664
7664
|
...l,
|
|
7665
7665
|
fieldType: "custom",
|
|
7666
7666
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7688,7 +7688,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7688
7688
|
rows: 4,
|
|
7689
7689
|
disabled: i
|
|
7690
7690
|
};
|
|
7691
|
-
return
|
|
7691
|
+
return Sa(_p(!!e.required, t), {
|
|
7692
7692
|
...l,
|
|
7693
7693
|
fieldType: "custom",
|
|
7694
7694
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7715,7 +7715,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7715
7715
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7716
7716
|
disabled: i
|
|
7717
7717
|
};
|
|
7718
|
-
return
|
|
7718
|
+
return Sa(yp(!!e.required, t), {
|
|
7719
7719
|
...l,
|
|
7720
7720
|
fieldType: "custom",
|
|
7721
7721
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7743,7 +7743,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7743
7743
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7744
7744
|
disabled: i
|
|
7745
7745
|
};
|
|
7746
|
-
return
|
|
7746
|
+
return Sa(vp(!!e.required, t), {
|
|
7747
7747
|
...l,
|
|
7748
7748
|
fieldType: "custom",
|
|
7749
7749
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7770,7 +7770,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7770
7770
|
clearable: !e.required,
|
|
7771
7771
|
disabled: i
|
|
7772
7772
|
};
|
|
7773
|
-
return
|
|
7773
|
+
return Sa(xp(!!e.required, t), {
|
|
7774
7774
|
...l,
|
|
7775
7775
|
fieldType: "custom",
|
|
7776
7776
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7806,7 +7806,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7806
7806
|
showSearchBox: r,
|
|
7807
7807
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7808
7808
|
};
|
|
7809
|
-
return
|
|
7809
|
+
return Sa(_p(!!e.required, t), {
|
|
7810
7810
|
...l,
|
|
7811
7811
|
fieldType: "custom",
|
|
7812
7812
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7855,7 +7855,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7855
7855
|
showSearchBox: r,
|
|
7856
7856
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7857
7857
|
};
|
|
7858
|
-
return
|
|
7858
|
+
return Sa(bp(!!e.required, t), {
|
|
7859
7859
|
...l,
|
|
7860
7860
|
fieldType: "custom",
|
|
7861
7861
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7882,7 +7882,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7882
7882
|
disabled: i,
|
|
7883
7883
|
showAnswerValidation: r
|
|
7884
7884
|
};
|
|
7885
|
-
return
|
|
7885
|
+
return Sa(_p(!!e.required, t), {
|
|
7886
7886
|
...l,
|
|
7887
7887
|
fieldType: "custom",
|
|
7888
7888
|
fieldConfig: n,
|
|
@@ -7905,7 +7905,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7905
7905
|
disabled: i,
|
|
7906
7906
|
showAnswerValidation: r
|
|
7907
7907
|
};
|
|
7908
|
-
return
|
|
7908
|
+
return Sa(bp(!!e.required, t), {
|
|
7909
7909
|
...l,
|
|
7910
7910
|
fieldType: "custom",
|
|
7911
7911
|
fieldConfig: n,
|
|
@@ -7927,7 +7927,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7927
7927
|
maxLabel: n.maxLabel,
|
|
7928
7928
|
disabled: i
|
|
7929
7929
|
};
|
|
7930
|
-
return
|
|
7930
|
+
return Sa(yp(!!e.required, t), {
|
|
7931
7931
|
...l,
|
|
7932
7932
|
fieldType: "custom",
|
|
7933
7933
|
fieldConfig: r,
|
|
@@ -7953,7 +7953,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7953
7953
|
useUpload: r ?? gp,
|
|
7954
7954
|
disabled: i || !r
|
|
7955
7955
|
};
|
|
7956
|
-
return
|
|
7956
|
+
return Sa(Sp(!!e.required, t), {
|
|
7957
7957
|
...l,
|
|
7958
7958
|
fieldType: "custom",
|
|
7959
7959
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7979,7 +7979,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7979
7979
|
label: n.label || c,
|
|
7980
7980
|
disabled: i
|
|
7981
7981
|
};
|
|
7982
|
-
return
|
|
7982
|
+
return Sa(Cp(!!e.required, t), {
|
|
7983
7983
|
...l,
|
|
7984
7984
|
fieldType: "custom",
|
|
7985
7985
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(yf, {
|
|
@@ -7998,7 +7998,7 @@ function Op({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7998
7998
|
})
|
|
7999
7999
|
});
|
|
8000
8000
|
}
|
|
8001
|
-
default: return
|
|
8001
|
+
default: return Sa(Ca(), {
|
|
8002
8002
|
...l,
|
|
8003
8003
|
fieldType: "custom",
|
|
8004
8004
|
render: () => null
|
|
@@ -8039,7 +8039,7 @@ function kp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8039
8039
|
}), f[e.id] = a?.[e.id] ?? wp(e, r);
|
|
8040
8040
|
}
|
|
8041
8041
|
return {
|
|
8042
|
-
schema:
|
|
8042
|
+
schema: ni(d),
|
|
8043
8043
|
defaultValues: f,
|
|
8044
8044
|
flatQuestions: m,
|
|
8045
8045
|
sections: p
|
|
@@ -8144,12 +8144,12 @@ function Pp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8144
8144
|
]);
|
|
8145
8145
|
let ve = d && !h ? [{
|
|
8146
8146
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8147
|
-
icon: C ?
|
|
8147
|
+
icon: C ? Di : qa,
|
|
8148
8148
|
onClick: () => T((e) => !e)
|
|
8149
8149
|
}] : void 0, ye = N ? h || I ? void 0 : ee ? F && !M.isLastStep ? {
|
|
8150
8150
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8151
8151
|
onClick: M.goToNext,
|
|
8152
|
-
icon:
|
|
8152
|
+
icon: Ji
|
|
8153
8153
|
} : {
|
|
8154
8154
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8155
8155
|
onClick: Ap,
|
|
@@ -8157,7 +8157,7 @@ function Pp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8157
8157
|
} : F && !M.isLastStep ? {
|
|
8158
8158
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8159
8159
|
onClick: me,
|
|
8160
|
-
icon:
|
|
8160
|
+
icon: Ji
|
|
8161
8161
|
} : {
|
|
8162
8162
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8163
8163
|
onClick: me,
|
|
@@ -8168,7 +8168,7 @@ function Pp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8168
8168
|
onClick: he,
|
|
8169
8169
|
icon: Wo
|
|
8170
8170
|
} : void 0 : void 0, xe = n === "all-questions" && N && !h, Se = F && N && !h, Ce = F && !!M.currentQuestion?.sectionTitle && !h, we = ce === "center" || ce === "fullscreen";
|
|
8171
|
-
return /* @__PURE__ */ X(
|
|
8171
|
+
return /* @__PURE__ */ X(Zi, {
|
|
8172
8172
|
isOpen: o,
|
|
8173
8173
|
onClose: s,
|
|
8174
8174
|
title: r,
|
|
@@ -8447,18 +8447,18 @@ function Up({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8447
8447
|
let [o, s] = J(e);
|
|
8448
8448
|
return G(() => {
|
|
8449
8449
|
s(e);
|
|
8450
|
-
}, [e]), /* @__PURE__ */ X(
|
|
8450
|
+
}, [e]), /* @__PURE__ */ X(Ta, {
|
|
8451
8451
|
open: o,
|
|
8452
8452
|
onOpenChange: (e) => {
|
|
8453
8453
|
s(e), e || t();
|
|
8454
8454
|
},
|
|
8455
8455
|
modal: !0,
|
|
8456
|
-
children: /* @__PURE__ */ Z(
|
|
8456
|
+
children: /* @__PURE__ */ Z(ua, {
|
|
8457
8457
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8458
8458
|
container: a,
|
|
8459
8459
|
children: [/* @__PURE__ */ Z("div", {
|
|
8460
8460
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8461
|
-
children: [/* @__PURE__ */ Z(
|
|
8461
|
+
children: [/* @__PURE__ */ Z(fa, {
|
|
8462
8462
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8463
8463
|
children: [i ? /* @__PURE__ */ X(mo, {
|
|
8464
8464
|
module: i,
|
|
@@ -8466,7 +8466,7 @@ function Up({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8466
8466
|
}) : null, n]
|
|
8467
8467
|
}), /* @__PURE__ */ X(Xn, {
|
|
8468
8468
|
variant: "outline",
|
|
8469
|
-
icon:
|
|
8469
|
+
icon: Xr,
|
|
8470
8470
|
onClick: t,
|
|
8471
8471
|
label: "Close modal",
|
|
8472
8472
|
hideLabel: !0
|
|
@@ -8556,14 +8556,14 @@ function Kp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8556
8556
|
o && o(!l);
|
|
8557
8557
|
}, [o, l]);
|
|
8558
8558
|
let f = e?.includes(".mp4");
|
|
8559
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
8559
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Qr, {
|
|
8560
8560
|
style: { width: a },
|
|
8561
8561
|
className: "relative bg-f1-background p-1",
|
|
8562
|
-
children: [/* @__PURE__ */ Z(
|
|
8562
|
+
children: [/* @__PURE__ */ Z(Ki, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8563
8563
|
className: "absolute right-2 top-2 z-10",
|
|
8564
8564
|
children: /* @__PURE__ */ X(V, {
|
|
8565
8565
|
variant: "ghost",
|
|
8566
|
-
icon:
|
|
8566
|
+
icon: Xr,
|
|
8567
8567
|
size: "sm",
|
|
8568
8568
|
hideLabel: !0,
|
|
8569
8569
|
onClick: d,
|
|
@@ -8589,7 +8589,7 @@ function Kp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8589
8589
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8590
8590
|
children: n
|
|
8591
8591
|
})]
|
|
8592
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8592
|
+
})] })] }), s ? /* @__PURE__ */ X(ii, {
|
|
8593
8593
|
className: "p-3",
|
|
8594
8594
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(M, {
|
|
8595
8595
|
label: e.label,
|
|
@@ -8612,7 +8612,7 @@ function Kp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8612
8612
|
var qp = R(Kp), Jp = ({ onDismiss: e }) => {
|
|
8613
8613
|
let { actions: t } = z();
|
|
8614
8614
|
return /* @__PURE__ */ X(V, {
|
|
8615
|
-
icon:
|
|
8615
|
+
icon: Xr,
|
|
8616
8616
|
label: t.close,
|
|
8617
8617
|
hideLabel: !0,
|
|
8618
8618
|
variant: "outline",
|
|
@@ -8703,7 +8703,7 @@ Zp.displayName = "UpsellingBanner";
|
|
|
8703
8703
|
var Qp = R(Zp);
|
|
8704
8704
|
//#endregion
|
|
8705
8705
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
8706
|
-
function $p({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
8706
|
+
function $p({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Xi, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
8707
8707
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8708
8708
|
t(e), h && h();
|
|
8709
8709
|
}, w = async (e) => {
|
|
@@ -8763,9 +8763,9 @@ function $p({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8763
8763
|
}
|
|
8764
8764
|
var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
8765
8765
|
let a = z(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
8766
|
-
return /* @__PURE__ */ Z(
|
|
8766
|
+
return /* @__PURE__ */ Z(Qr, {
|
|
8767
8767
|
className: "flex flex-col overflow-hidden",
|
|
8768
|
-
children: [/* @__PURE__ */ Z(
|
|
8768
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8769
8769
|
className: "flex flex-col gap-4 p-0",
|
|
8770
8770
|
children: [/* @__PURE__ */ X("div", {
|
|
8771
8771
|
className: B("overflow-hidden rounded-lg border border-f1-border", "ring-1 ring-f1-border/50 bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary"),
|
|
@@ -8780,7 +8780,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8780
8780
|
children: n
|
|
8781
8781
|
})]
|
|
8782
8782
|
})]
|
|
8783
|
-
}), /* @__PURE__ */ X(
|
|
8783
|
+
}), /* @__PURE__ */ X(ii, {
|
|
8784
8784
|
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",
|
|
8785
8785
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8786
8786
|
variant: "default",
|
|
@@ -8827,7 +8827,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8827
8827
|
})
|
|
8828
8828
|
})]
|
|
8829
8829
|
}), rm = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
8830
|
-
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
8830
|
+
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Ia, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8831
8831
|
u,
|
|
8832
8832
|
r,
|
|
8833
8833
|
c
|
|
@@ -8842,9 +8842,9 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8842
8842
|
i,
|
|
8843
8843
|
a
|
|
8844
8844
|
]);
|
|
8845
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
8845
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Qr, {
|
|
8846
8846
|
className: "flex flex-col overflow-hidden",
|
|
8847
|
-
children: [/* @__PURE__ */ Z(
|
|
8847
|
+
children: [/* @__PURE__ */ Z(ti, {
|
|
8848
8848
|
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",
|
|
8849
8849
|
children: [/* @__PURE__ */ X("div", {
|
|
8850
8850
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8857,7 +8857,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8857
8857
|
className: "text-base font-semibold text-f1-foreground",
|
|
8858
8858
|
children: o
|
|
8859
8859
|
})]
|
|
8860
|
-
}), /* @__PURE__ */ X(
|
|
8860
|
+
}), /* @__PURE__ */ X(Ki, {
|
|
8861
8861
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8862
8862
|
children: t.map((e) => /* @__PURE__ */ X(nm, {
|
|
8863
8863
|
item: e,
|
|
@@ -8868,9 +8868,9 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8868
8868
|
});
|
|
8869
8869
|
}, im = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
8870
8870
|
let a = z()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8871
|
-
return /* @__PURE__ */ Z(
|
|
8871
|
+
return /* @__PURE__ */ Z(Qr, {
|
|
8872
8872
|
className: "flex flex-col overflow-hidden",
|
|
8873
|
-
children: [/* @__PURE__ */ X(
|
|
8873
|
+
children: [/* @__PURE__ */ X(Ki, {
|
|
8874
8874
|
className: "flex flex-col gap-3 p-0",
|
|
8875
8875
|
children: /* @__PURE__ */ Z("div", {
|
|
8876
8876
|
className: "flex items-start gap-3",
|
|
@@ -8892,7 +8892,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8892
8892
|
})]
|
|
8893
8893
|
})]
|
|
8894
8894
|
})
|
|
8895
|
-
}), /* @__PURE__ */ X(
|
|
8895
|
+
}), /* @__PURE__ */ X(ii, {
|
|
8896
8896
|
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",
|
|
8897
8897
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8898
8898
|
variant: "outline",
|
|
@@ -8910,12 +8910,12 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8910
8910
|
});
|
|
8911
8911
|
}, am = ({ onAction: e, actionHref: t }) => {
|
|
8912
8912
|
let n = z()?.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";
|
|
8913
|
-
return /* @__PURE__ */ Z(
|
|
8913
|
+
return /* @__PURE__ */ Z(Qr, {
|
|
8914
8914
|
className: "flex flex-col overflow-hidden",
|
|
8915
|
-
children: [/* @__PURE__ */ Z(
|
|
8915
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8916
8916
|
className: "flex flex-col gap-3 p-0",
|
|
8917
8917
|
children: [/* @__PURE__ */ X(H, {
|
|
8918
|
-
icon:
|
|
8918
|
+
icon: Vi,
|
|
8919
8919
|
size: "lg"
|
|
8920
8920
|
}), /* @__PURE__ */ Z("div", {
|
|
8921
8921
|
className: "flex flex-col gap-0.5",
|
|
@@ -8927,7 +8927,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8927
8927
|
children: i
|
|
8928
8928
|
})]
|
|
8929
8929
|
})]
|
|
8930
|
-
}), /* @__PURE__ */ X(
|
|
8930
|
+
}), /* @__PURE__ */ X(ii, {
|
|
8931
8931
|
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",
|
|
8932
8932
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8933
8933
|
variant: "default",
|
|
@@ -8973,9 +8973,9 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8973
8973
|
e,
|
|
8974
8974
|
t
|
|
8975
8975
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
8976
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
8976
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Qr, {
|
|
8977
8977
|
className: "flex flex-col overflow-hidden",
|
|
8978
|
-
children: [/* @__PURE__ */ Z(
|
|
8978
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8979
8979
|
className: "flex flex-col gap-4",
|
|
8980
8980
|
children: [/* @__PURE__ */ X("h3", {
|
|
8981
8981
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -8992,7 +8992,7 @@ var em = R($p), tm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8992
8992
|
})
|
|
8993
8993
|
}, e.id))
|
|
8994
8994
|
})]
|
|
8995
|
-
}), /* @__PURE__ */ Z(
|
|
8995
|
+
}), /* @__PURE__ */ Z(ii, {
|
|
8996
8996
|
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",
|
|
8997
8997
|
children: [/* @__PURE__ */ X("div", {
|
|
8998
8998
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9456,7 +9456,7 @@ function Vm(e, t) {
|
|
|
9456
9456
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9457
9457
|
}
|
|
9458
9458
|
async function Hm(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9459
|
-
Vm(await
|
|
9459
|
+
Vm(await xi([{
|
|
9460
9460
|
name: "Data",
|
|
9461
9461
|
rows: zm({
|
|
9462
9462
|
columns: e,
|
|
@@ -9478,7 +9478,7 @@ function Wm(e, t, n) {
|
|
|
9478
9478
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9479
9479
|
}
|
|
9480
9480
|
async function Gm(e, t) {
|
|
9481
|
-
Vm(await
|
|
9481
|
+
Vm(await xi(e.map((e) => ({
|
|
9482
9482
|
name: e.name,
|
|
9483
9483
|
rows: zm(e)
|
|
9484
9484
|
}))), `${t}.xlsx`);
|
|
@@ -9539,23 +9539,23 @@ function Jm({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9539
9539
|
return K(() => n ? [
|
|
9540
9540
|
{
|
|
9541
9541
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9542
|
-
icon:
|
|
9542
|
+
icon: ta,
|
|
9543
9543
|
onClick: () => a("png")
|
|
9544
9544
|
},
|
|
9545
9545
|
{
|
|
9546
9546
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9547
|
-
icon:
|
|
9547
|
+
icon: ta,
|
|
9548
9548
|
onClick: () => a("jpg")
|
|
9549
9549
|
},
|
|
9550
9550
|
{ type: "separator" },
|
|
9551
9551
|
{
|
|
9552
9552
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9553
|
-
icon:
|
|
9553
|
+
icon: na,
|
|
9554
9554
|
onClick: s
|
|
9555
9555
|
},
|
|
9556
9556
|
{
|
|
9557
9557
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9558
|
-
icon:
|
|
9558
|
+
icon: na,
|
|
9559
9559
|
onClick: c
|
|
9560
9560
|
}
|
|
9561
9561
|
] : [], [
|
|
@@ -9785,7 +9785,7 @@ function $m({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9785
9785
|
//#endregion
|
|
9786
9786
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9787
9787
|
function eh({ 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: g, explanation: _, isFullscreen: v = !1, descriptionAction: y, headerLines: b = 2, fitContent: x = !1, onFullscreenChange: S }) {
|
|
9788
|
-
let [C, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
9788
|
+
let [C, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = Ma(), I = (e) => {
|
|
9789
9789
|
T(e), e || A(!1);
|
|
9790
9790
|
}, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, L = u && f && h, ne = g && g.length > 0, re = !!_ && _.trim().length > 0, ie = !!S, ae = !d && e.trim().length > 0 && (p ? !!h : M), oe = ae || te || L || ne || re, se = !!l || ie || !!oe, le = !v && (C || E), ue = B("flex flex-shrink-0 gap-0.5", !v && "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 = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !v && "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 = $m({
|
|
9791
9791
|
title: e,
|
|
@@ -9813,7 +9813,7 @@ function eh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9813
9813
|
onClick: he,
|
|
9814
9814
|
children: /* @__PURE__ */ Z("div", {
|
|
9815
9815
|
className: "flex w-full flex-row items-center gap-2",
|
|
9816
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9816
|
+
children: [/* @__PURE__ */ X(H, { icon: va }), /* @__PURE__ */ X("span", {
|
|
9817
9817
|
className: "flex-1",
|
|
9818
9818
|
children: j.ai.dashboardItem.askOne
|
|
9819
9819
|
})]
|
|
@@ -9916,7 +9916,7 @@ function eh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9916
9916
|
}) : null,
|
|
9917
9917
|
ie ? /* @__PURE__ */ X(Xn, {
|
|
9918
9918
|
label: v ? j.actions.collapse : j.actions.expand,
|
|
9919
|
-
icon: v ?
|
|
9919
|
+
icon: v ? Di : qa,
|
|
9920
9920
|
variant: "ghost",
|
|
9921
9921
|
size: "md",
|
|
9922
9922
|
hideLabel: !0,
|
|
@@ -9944,7 +9944,7 @@ function eh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9944
9944
|
onCloseAutoFocus: ge,
|
|
9945
9945
|
children: k && re ? /* @__PURE__ */ X("div", {
|
|
9946
9946
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
9947
|
-
children: /* @__PURE__ */ X(
|
|
9947
|
+
children: /* @__PURE__ */ X(ra, {
|
|
9948
9948
|
content: _,
|
|
9949
9949
|
format: "markdown"
|
|
9950
9950
|
})
|
|
@@ -9987,7 +9987,7 @@ function eh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9987
9987
|
className: "mx-1 rounded-sm px-2",
|
|
9988
9988
|
children: /* @__PURE__ */ Z("div", {
|
|
9989
9989
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
9990
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9990
|
+
children: [/* @__PURE__ */ X(H, { icon: La }), /* @__PURE__ */ X("span", {
|
|
9991
9991
|
className: "flex-1 text-base font-medium",
|
|
9992
9992
|
children: j.ai.dataDownload.title
|
|
9993
9993
|
})]
|
|
@@ -10009,7 +10009,7 @@ function eh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10009
10009
|
className: B("text-f1-foreground-critical"),
|
|
10010
10010
|
children: /* @__PURE__ */ Z("div", {
|
|
10011
10011
|
className: "flex w-full flex-row items-center gap-2",
|
|
10012
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10012
|
+
children: [/* @__PURE__ */ X(H, { icon: Wi }), /* @__PURE__ */ X("span", {
|
|
10013
10013
|
className: "flex-1",
|
|
10014
10014
|
children: j.actions.delete
|
|
10015
10015
|
})]
|
|
@@ -10100,7 +10100,7 @@ function rh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
10100
10100
|
type: "button",
|
|
10101
10101
|
variant: "ghost",
|
|
10102
10102
|
label: i.ai.dashboardItem.askOne,
|
|
10103
|
-
icon:
|
|
10103
|
+
icon: va,
|
|
10104
10104
|
onClick: t
|
|
10105
10105
|
})
|
|
10106
10106
|
}), document.body);
|
|
@@ -10143,39 +10143,39 @@ function fh(e) {
|
|
|
10143
10143
|
{
|
|
10144
10144
|
label: e.dataChart.barChartVertical,
|
|
10145
10145
|
value: "bar-vertical",
|
|
10146
|
-
icon:
|
|
10146
|
+
icon: Si,
|
|
10147
10147
|
type: "bar",
|
|
10148
10148
|
orientation: "vertical"
|
|
10149
10149
|
},
|
|
10150
10150
|
{
|
|
10151
10151
|
label: e.dataChart.barChartHorizontal,
|
|
10152
10152
|
value: "bar-horizontal",
|
|
10153
|
-
icon:
|
|
10153
|
+
icon: ci,
|
|
10154
10154
|
type: "bar",
|
|
10155
10155
|
orientation: "horizontal"
|
|
10156
10156
|
},
|
|
10157
10157
|
{
|
|
10158
10158
|
label: e.dataChart.lineChart,
|
|
10159
10159
|
value: "line",
|
|
10160
|
-
icon:
|
|
10160
|
+
icon: Fi,
|
|
10161
10161
|
type: "line"
|
|
10162
10162
|
},
|
|
10163
10163
|
{
|
|
10164
10164
|
label: e.dataChart.funnel,
|
|
10165
10165
|
value: "funnel",
|
|
10166
|
-
icon:
|
|
10166
|
+
icon: hi,
|
|
10167
10167
|
type: "funnel"
|
|
10168
10168
|
},
|
|
10169
10169
|
{
|
|
10170
10170
|
label: e.dataChart.pieChart,
|
|
10171
10171
|
value: "pie",
|
|
10172
|
-
icon:
|
|
10172
|
+
icon: ki,
|
|
10173
10173
|
type: "pie"
|
|
10174
10174
|
},
|
|
10175
10175
|
{
|
|
10176
10176
|
label: e.dataChart.table,
|
|
10177
10177
|
value: "table",
|
|
10178
|
-
icon:
|
|
10178
|
+
icon: na,
|
|
10179
10179
|
type: "table"
|
|
10180
10180
|
}
|
|
10181
10181
|
];
|
|
@@ -10343,7 +10343,7 @@ function yh(e) {
|
|
|
10343
10343
|
return mm(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10344
10344
|
}
|
|
10345
10345
|
function bh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
10346
|
-
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
10346
|
+
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = Ma(), y = !mm(e.chart), b = y ? ph : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = Ym(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? gh(e, T) : void 0, [
|
|
10347
10347
|
e,
|
|
10348
10348
|
T,
|
|
10349
10349
|
y
|
|
@@ -10568,11 +10568,11 @@ function Oh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10568
10568
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10569
10569
|
return K(() => e ? [{
|
|
10570
10570
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10571
|
-
icon:
|
|
10571
|
+
icon: na,
|
|
10572
10572
|
onClick: l
|
|
10573
10573
|
}, {
|
|
10574
10574
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10575
|
-
icon:
|
|
10575
|
+
icon: na,
|
|
10576
10576
|
onClick: u
|
|
10577
10577
|
}] : [], [
|
|
10578
10578
|
e,
|
|
@@ -10900,7 +10900,7 @@ function Uh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10900
10900
|
if (Math.hypot(t.clientX - n, t.clientY - r) < Rh) return;
|
|
10901
10901
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10902
10902
|
let a = k.current.get(e)?.title ?? "";
|
|
10903
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10903
|
+
a && window.dispatchEvent(new CustomEvent(mi, { detail: {
|
|
10904
10904
|
id: e,
|
|
10905
10905
|
title: a,
|
|
10906
10906
|
onAskAi: c,
|
|
@@ -10914,7 +10914,7 @@ function Uh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10914
10914
|
}, o = (e) => {
|
|
10915
10915
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
10916
10916
|
let t = A.current, n = j.current;
|
|
10917
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
10917
|
+
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(si));
|
|
10918
10918
|
}, s = (e) => {
|
|
10919
10919
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = I(e.clientX, e.clientY)), o(!0);
|
|
10920
10920
|
}, u = () => o(!1);
|
|
@@ -11092,7 +11092,7 @@ function Wh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11092
11092
|
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",
|
|
11093
11093
|
"aria-label": "Drag to reorder",
|
|
11094
11094
|
children: /* @__PURE__ */ X(H, {
|
|
11095
|
-
icon:
|
|
11095
|
+
icon: Pa,
|
|
11096
11096
|
size: "xs"
|
|
11097
11097
|
})
|
|
11098
11098
|
}) : null, s]
|
|
@@ -11262,10 +11262,10 @@ function ig({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11262
11262
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11263
11263
|
function ag({ onExportExcel: e, isExporting: t }) {
|
|
11264
11264
|
let { t: n } = z();
|
|
11265
|
-
return /* @__PURE__ */ X(
|
|
11265
|
+
return /* @__PURE__ */ X(wa, {
|
|
11266
11266
|
items: [{
|
|
11267
11267
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11268
|
-
icon:
|
|
11268
|
+
icon: La,
|
|
11269
11269
|
onClick: t ? () => {} : e
|
|
11270
11270
|
}],
|
|
11271
11271
|
icon: Bs
|
|
@@ -12234,7 +12234,7 @@ var e_ = ({ onClose: e }) => {
|
|
|
12234
12234
|
className: "dark flex-shrink-0",
|
|
12235
12235
|
children: /* @__PURE__ */ X(V, {
|
|
12236
12236
|
variant: "outline",
|
|
12237
|
-
icon:
|
|
12237
|
+
icon: Xr,
|
|
12238
12238
|
size: "sm",
|
|
12239
12239
|
hideLabel: !0,
|
|
12240
12240
|
onClick: e,
|
|
@@ -12251,7 +12251,7 @@ var e_ = ({ onClose: e }) => {
|
|
|
12251
12251
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12252
12252
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12253
12253
|
onClick: () => n(e),
|
|
12254
|
-
children: /* @__PURE__ */ X(
|
|
12254
|
+
children: /* @__PURE__ */ X(xa, {
|
|
12255
12255
|
href: e.href,
|
|
12256
12256
|
children: e.label
|
|
12257
12257
|
})
|
|
@@ -12319,7 +12319,7 @@ var e_ = ({ onClose: e }) => {
|
|
|
12319
12319
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12320
12320
|
className: "flex-shrink-0",
|
|
12321
12321
|
"aria-hidden": "true",
|
|
12322
|
-
children: /* @__PURE__ */ X(
|
|
12322
|
+
children: /* @__PURE__ */ X(ca, {
|
|
12323
12323
|
type: g,
|
|
12324
12324
|
size: "sm"
|
|
12325
12325
|
})
|
|
@@ -12682,9 +12682,9 @@ var m_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12682
12682
|
renderDataTestIdAttribute: d,
|
|
12683
12683
|
children: /* @__PURE__ */ X(z_, {
|
|
12684
12684
|
...t,
|
|
12685
|
-
children: /* @__PURE__ */ X(
|
|
12685
|
+
children: /* @__PURE__ */ X(ka, {
|
|
12686
12686
|
handler: l,
|
|
12687
|
-
children: /* @__PURE__ */ X(
|
|
12687
|
+
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(ot, {
|
|
12688
12688
|
...p,
|
|
12689
12689
|
children: /* @__PURE__ */ X(B_.Provider, {
|
|
12690
12690
|
value: f,
|
|
@@ -12701,4 +12701,4 @@ var m_ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12701
12701
|
})
|
|
12702
12702
|
});
|
|
12703
12703
|
//#endregion
|
|
12704
|
-
export {
|
|
12704
|
+
export { br as AiChatTranslationsProvider, _e as AreaChart, Vo as Await, g as BarChart, tt as BarChartSkeleton, We as CardSelectableContainer, p as CategoryBarChart, ia as ChatSpinner, To as Chip, Mr as CollapsibleGroup, re as ComboChart, at as DATA_COLLECTION_URL_PARAMS, nt as DATA_COLLECTION_URL_PARAM_PREFIX, kl as Dashboard, Zt as DataChartEmptyStateView, ln as DataTestIdWrapper, Ht as DndProvider, Wa as DropOverlay, Kn as EmojiImage, su as F0Accordion, yt as F0ActionBar, da as F0ActionItem, Oi as F0AiChat, xr as F0AiChatCreditsButton, kr as F0AiChatHeader, Er as F0AiChatHistory, Pi as F0AiChatProvider, cr as F0AiChatTextArea, ur as F0AiChatUsageLimitsButton, _r as F0AiFileAttachments, ba as F0AiFilePreviewsProvider, Ua as F0AiFormRegistryProvider, Ar as F0AiInsightCard, vr as F0AiMask, Sr as F0AiMessageSources, ar as F0AiMessagesContainer, vi as F0AiPong, Ir as F0AiProcessingOverlay, Cr as F0AiProposalCard, Lr as F0AiTableCard, sc as F0Alert, hg as F0AnalyticsDashboard, Gr as F0AudioPlayer, ga as F0AudioPlayerCard, wr as F0AuraVoiceAnimation, lo as F0Avatar, ca as F0AvatarAlert, to as F0AvatarCompany, Ri as F0AvatarDate, ao as F0AvatarEmoji, co as F0AvatarFile, uo as F0AvatarIcon, ho as F0AvatarList, mo as F0AvatarModule, fo as F0AvatarPerson, go as F0AvatarTeam, Zl as F0BigNumber, am as F0BookAMeetingCard, io as F0Box, V as F0Button, Jr as F0ButtonDropdown, Fs as F0ButtonToggle, Or as F0CanvasCard, Na as F0CanvasPanel, Ha as F0Card, qr as F0CardRow, hr as F0ChatComposer, rs as F0Checkbox, du as F0ChipList, Rr as F0ClarifyingPanel, Je as F0DataChart, Te as F0DatePicker, De as F0DatePickerInline, tm as F0DemoCard, Zi as F0Dialog, y as F0DialogAlikeContext, O as F0DialogAlikeProvider, Ao as F0DialogContext, No as F0DialogProvider, uc as F0DocumentViewer, vu as F0Drawer, o as F0DurationInput, wo as F0EventCatcherProvider, rm as F0FAQCard, Aa as F0FileItem, xu as F0FilterPickerContent, he as F0Form, Fu as F0FormField, yl as F0GridStack, Tr as F0HILActionConfirmation, Jt as F0Heading, H as F0Icon, xa as F0Link, im as F0ModuleCard, nn as F0NotesTextEditor, Re as F0NotesTextEditorSkeleton, le as F0NumberInput, j as F0NumberInputInline, la as F0OneIcon, Da as F0OneSwitch, cc as F0PdfViewer, H_ as F0Provider, om as F0QuestionCardMultiStep, ra as F0RichTextDisplay, ut as F0RichTextEditor, gs as F0SearchInput, Ds as F0Select, r as F0SelectInline, xd as F0Slider, Fd as F0TableOfContentPopover, Uo as F0TagAlert, Fo as F0TagBalance, fs as F0TagCompany, So as F0TagDot, xs as F0TagList, ps as F0TagPerson, Eo as F0TagRaw, js as F0TagStatus, Ro as F0TagTeam, oc as F0Text, _ as F0TextAreaInput, ae as F0TextAreaInputInline, ya as F0TextInput, ee as F0TextInputInline, c as F0TimelineRow, fc as F0VideoPlayer, id as F0WizardForm, ls as F1SearchBox, I as FILE_TYPES, Ea as FileItem, sr as FormCardValueFormatterProvider, Pe as FunnelChartSkeleton, so as GROUP_ID_SYMBOL, yo as GROUP_KEY_SEPARATOR, Kt as GaugeChartSkeleton, an as HeatmapChartSkeleton, Gl as HomeLayout, Xt as InlineFieldRow, ge as InlineFieldRowList, Ei as Input, Hl as Layout, ht as LineChart, Be as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, Qt as NotesTextEditor, de as NotesTextEditorSkeleton, sn as NumberInput, ss as OneCalendar, Qn as OneEllipsis, w as OneEmptyState, Cs as OneFilterPicker, a as PieChart, en as PieChartSkeleton, Bi as PongBall, Ke as PrivacyModeProvider, Hp as ProductBlankslate, et as ProductCard, Gp as ProductModal, qp as ProductWidget, ft as ProgressBarChart, F as RadarChart, pe as RadarChartSkeleton, zi as RichTextDisplay, N as RichTextEditor, u as ScatterChartSkeleton, Ul as StandardLayout, lp as SurveyAllQuestionsLoadingSkeleton, Np as SurveyAnsweringForm, tp as SurveyFormBuilder, Ip as SurveySampleQuestion, up as SurveySteppedLoadingSkeleton, Oo as Tag, _s as TagCounter, C as Textarea, Fr as ThreadItem, yr as ThreadListSkeleton, I_ as ToastProvider, Wl as TwoColumnLayout, ie as UPLOAD_INPUT_ID, ue as UpsellRequestResponseDialog, Xp as UpsellingAlert, Qp as UpsellingBanner, M as UpsellingButton, em as UpsellingPopover, te as VerticalBarChart, vs as WeekStartDay, Ut as actionBarStatuses, ir as actionItemStatuses, Ra as adaptDataAdapterToInfiniteScroll, rr as aiChatFileFromShowFilesItem, Dr as aiChatFileFromUploadedFile, dr as aiChatFilesFromMessage, fr as aiChatMessageText, gr as aiTranslations, mu as alertVariantOptions, tu as audioPlayerSizes, Kl as avatarVariants, qt as buildDataCollectionUrlParams, un as buildTranslations, eu as buttonDropdownModes, $l as buttonDropdownSizes, Ql as buttonDropdownVariants, Tl as buttonSizes, Le as buttonToggleColors, wt as buttonToggleSizes, Lt as buttonToggleVariants, wl as buttonVariants, cu as cardAlertVariants, Ba as cardImageAspectRatios, Gi as cardImageFits, Zr as cardImageSizes, Po as chartColorTokens, Ns as chipVariants, Bd as computeSectionEndIds, dc as configurePdfWorker, Nr as contentTypes, qe as createAtlaskitDriver, jo as createDataSourceDefinition, Tu as createF0FormDefinitionTester, wu as createF0FormTester, Sl as createPageLayoutBlock, Cl as createPageLayoutBlockGroup, lr as createPersonMentionSource, hu as dataCollectionLocalStorageHandler, fu as datePickerInlineDismissReasons, pu as datepickerSizes, $a as defaultTranslations, aa as defineAvailableForm, Su as describeFormSchema, jt as dialog, jt as dialogs, D as drawers, Ka as durationInputSizes, Yr as durationUnits, mt as evaluateRenderIf, pn as experimental, pa as f0FileItemSizes, Sa as f0FormField, _i as fieldsToSeconds, Id as flattenElements, Ga as formatPlaybackTime, ud as forms, f as generateAnchorId, Co as getAnimationVariants, sa as getDataCollectionStorageKey, Ko as getDataSourcePaginationType, Zn as getEmojiLabel, Kr as getF0Config, Zo as getGranularityDefinition, xo as getGranularityDefinitions, As as getGranularitySimpleDefinition, i as getSchemaDefinition, as as granularityDefinitions, _a as hasF0Config, wi as inferFieldType, zd as injectSectionEnds, _o as isInfiniteScrollPagination, vo as isPageBasedPagination, ji as isZodType, nu as linkVariants, mr as markdownRenderers, Oa as mergeDataCollectionFilters, eo as modules, Hr as oneIconSizes, on as parseDataCollectionUrlParams, lc as pdfScales, lt as predefinedPresets, Es as rangeSeparator, ja as readDataCollectionStorage, Rd as reconstructElements, ma as resolveDataCollectionFilters, Os as resolveGranularityDefinition, Pt as resolveItemNeighbors, Bt as resolveWindowNeighbors, bi as secondsToFields, Ui as secondsToVisibleFields, dd as selectInlineDismissReasons, je as selectSizes, oe as selectVariants, Ve as setDataCollectionUrlParams, fd as sliderTooltipModes, tn as syncDataCollectionUrlParams, Cd as tagDotColors, Sd as timelineRowStatuses, Ft as toasts, ui as unwrapZodSchema, jr as usageLimitsPopoverSides, Ma as useAiChat, Br as useAiChatTranslations, Hi as useAudioPlayer, Vr as useCanvasEntity, Pr as useChatHistory, po as useData, Jo as useDataSource, Xe as useDataSourceItemNavigation, yi as useDerivedTranscription, It as useDndEvents, Ue as useDraggable, vt as useDroppableList, Yn as useEmojiConfetti, Va as useF0AiFormRegistry, Ss as useF0Dialog, kt as useF0DialogAlikeContext, l as useF0Form, Nt as useF0FormDefinition, or as useFormCardValueFormatter, V_ as useFormComponent, qo as useGroups, gg as useIsDesktop, _g as useIsMobile, Ct as useItemNeighbors, Qe as usePrivacyMode, qn as useReducedMotion, dt as useSchemaDefinition, Ls as useSelectable, pr as useSetFormCardValueFormatter, zr as useToolCallId, Ja as useXRay, R as withDataTestId, me as writeDataCollectionStorage };
|