@factorialco/f0-react 16.29.0 → 16.31.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-DYIMptq3.js → ArchiveThumbnail-snnCL51c.js} +5 -5
- package/dist/{ArchiveViewer-BrPp0CA3.js → ArchiveViewer-qrPGzl45.js} +12 -12
- package/dist/{ChatPostComposerDialog-BYmkWYzK.js → ChatPostComposerDialog-C7FQ5zej.js} +2 -2
- package/dist/{CoachmarkProvider-BAA3qCPM.js → CoachmarkProvider-CqkPfWAF.js} +19840 -19840
- package/dist/{CodeThumbnail-B3oQLXMY.js → CodeThumbnail-jrNjbGFK.js} +1 -1
- package/dist/{CodeViewer-D-taZc0E.js → CodeViewer-rskCF-XU.js} +4 -4
- package/dist/{DocumentToolbar-CrMaDP1Y.js → DocumentToolbar-C7f4MplQ.js} +3 -3
- package/dist/{DocxViewer-CWPqezrV.js → DocxViewer-Md9lijeE.js} +1 -1
- package/dist/{F0AiProcessingOverlay-2ur7x9yV.js → F0AiProcessingOverlay-Bz5bf3ZA.js} +499 -499
- package/dist/{F0Alert-DfoQ6QNW.js → F0Alert-Ctib1gD6.js} +6 -6
- package/dist/F0AudioPlayer-B4YvRRgo.js +2 -0
- package/dist/{F0CanvasPanel-Dsy1XGQ8.js → F0CanvasPanel-CZKTFPP7.js} +11044 -11030
- package/dist/{F0DocumentViewer-CBBIWsop.js → F0DocumentViewer-BgIPKW21.js} +1 -1
- package/dist/{F0DocumentViewer-6RmJDdEF.js → F0DocumentViewer-D9HXGXr_.js} +2 -2
- package/dist/{F0Map-CtZ50EMs.js → F0Map-C4p4mly7.js} +640 -624
- package/dist/{F0Select-v7_pmIe-.js → F0Select-D6mxgb1s.js} +3 -3
- package/dist/{F0Text-CUCHaP9i.js → F0Text-CcpTiEit.js} +1 -1
- package/dist/{F0VideoPlayer-C-6enHNl.js → F0VideoPlayer-D6cgKhcQ.js} +11 -11
- package/dist/F0VideoPlayer-DV84zT9b.js +1 -0
- package/dist/{HtmlViewer-DqpsDfeO.js → HtmlViewer-BVitdvD6.js} +4 -4
- package/dist/{Map-BwQhTxJl.js → Map-ZXcjPt4S.js} +9 -9
- package/dist/{PdfThumbnail-GoDwcO2G.js → PdfThumbnail-CwkqbqHx.js} +1 -1
- package/dist/{PdfViewer-CjC40poY.js → PdfViewer-Cytnm1Ks.js} +6 -6
- package/dist/{SheetViewer-nZ9BbsVs.js → SheetViewer-DFLeOh69.js} +11 -11
- package/dist/{TextViewer-Cce_dy1w.js → TextViewer-C9Ds2dE7.js} +1 -1
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/{dist-DZ9FjbuM.js → dist-BwlC-i6M.js} +1 -1
- package/dist/{dist-DmFbkLx6.js → dist-C691Abhf.js} +4 -4
- package/dist/{dist-Dlesu-9k.js → dist-CiC2ZqiK.js} +7 -8
- package/dist/{dist-C2ihEjaT.js → dist-DN0nDQy0.js} +1 -1
- package/dist/{dist-swS4bqxy.js → dist-_ts6SUAW.js} +1 -1
- package/dist/experimental.d.ts +28 -3
- package/dist/experimental.js +5810 -5713
- package/dist/f0.js +175 -175
- package/dist/{highlight-B9V0OIph.js → highlight-CT0Gl0kj.js} +4 -4
- package/dist/{maplibre-BFcRQVjt.js → maplibre-B3l6Byv4.js} +1 -1
- package/dist/{pdfWorker-Cp3pKYAZ.js → pdfWorker-BwmWYP-K.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useData-3UiKD6C0.js → useData-XExWuz7o.js} +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +137 -0
- package/dist/F0AudioPlayer-DQng2ypK.js +0 -2
- package/dist/F0VideoPlayer-oiKJ6HiF.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 { $ as t, $n as n, $r as r, A as i, An as a, Ar as o, Bn 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, F as _, Fn as v, Ft as y, Gn as b, Gr as x, Gt as S, Hn as C, Ht as w, I as T, In as E, It as D, Jn as O, Jr as k, Jt as A, Kn as j, Kt as M, Ln as ee, Lt as N, M as te, Mn as ne, Mr as re, N as ie, Nn as P, Nr as ae, O as oe, On as se, Or as ce, Ot as le, P as ue, Pn as de, Pr as fe, Pt as F, Q as pe, Qr as me, Qt as he, Rn as ge, Rt as _e, S as ve, Si as ye, Sn as be, Sr as xe, T as Se, Ti as Ce, Tn as we, Tr as Te, Un as Ee, Ut as De, Vn as Oe, Vt as ke, Wn as Ae, Wt as je, Xn as Me, Xr as Ne, Yn as Pe, Yr as Fe, Yt as Ie, Zn as Le, Zt as Re, _ as ze, _r as Be, _t as Ve, ai as He, ar as Ue, b as We, bi as Ge, br as Ke, bt as qe, c as Je, cn as Ye, cr as Xe, d as Ze, dr as Qe, ei as $e, en as et, er as tt, et as nt, f as rt, fi as it, fr as at, ft as ot, gr as st, gt as ct, h as lt, hr as ut, ht as dt, i as ft, ii as pt, ir as mt, j as ht, jn as gt, jr as _t, k as vt, kn as yt, kr as bt, l as xt, ln as St, lr as Ct, lt as wt, m as Tt, mi as Et, mr as Dt, mt as Ot, nn as kt, nr as At, oi as jt, on as Mt, or as Nt, pi as Pt, pr as Ft, qn as It, qr as Lt, qt as Rt, ri as zt, rn as Bt, rr as Vt, s as Ht, sn as Ut, sr as Wt, t as Gt, ti as Kt, tn as qt, tr as Jt, u as Yt, un as Xt, ur as Zt, v as Qt, vr as $t, vt as en, w as tn, wn as nn, wr as rn, x as an, xi as on, xn as sn, xr as cn, xt as ln, y as un, yr as dn, yt as fn, zn as pn, zt as mn } from "./CoachmarkProvider-
|
|
2
|
+
import { $ as t, $n as n, $r as r, A as i, An as a, Ar as o, Bn 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, F as _, Fn as v, Ft as y, Gn as b, Gr as x, Gt as S, Hn as C, Ht as w, I as T, In as E, It as D, Jn as O, Jr as k, Jt as A, Kn as j, Kt as M, Ln as ee, Lt as N, M as te, Mn as ne, Mr as re, N as ie, Nn as P, Nr as ae, O as oe, On as se, Or as ce, Ot as le, P as ue, Pn as de, Pr as fe, Pt as F, Q as pe, Qr as me, Qt as he, Rn as ge, Rt as _e, S as ve, Si as ye, Sn as be, Sr as xe, T as Se, Ti as Ce, Tn as we, Tr as Te, Un as Ee, Ut as De, Vn as Oe, Vt as ke, Wn as Ae, Wt as je, Xn as Me, Xr as Ne, Yn as Pe, Yr as Fe, Yt as Ie, Zn as Le, Zt as Re, _ as ze, _r as Be, _t as Ve, ai as He, ar as Ue, b as We, bi as Ge, br as Ke, bt as qe, c as Je, cn as Ye, cr as Xe, d as Ze, dr as Qe, ei as $e, en as et, er as tt, et as nt, f as rt, fi as it, fr as at, ft as ot, gr as st, gt as ct, h as lt, hr as ut, ht as dt, i as ft, ii as pt, ir as mt, j as ht, jn as gt, jr as _t, k as vt, kn as yt, kr as bt, l as xt, ln as St, lr as Ct, lt as wt, m as Tt, mi as Et, mr as Dt, mt as Ot, nn as kt, nr as At, oi as jt, on as Mt, or as Nt, pi as Pt, pr as Ft, qn as It, qr as Lt, qt as Rt, ri as zt, rn as Bt, rr as Vt, s as Ht, sn as Ut, sr as Wt, t as Gt, ti as Kt, tn as qt, tr as Jt, u as Yt, un as Xt, ur as Zt, v as Qt, vr as $t, vt as en, w as tn, wn as nn, wr as rn, x as an, xi as on, xn as sn, xr as cn, xt as ln, y as un, yr as dn, yt as fn, zn as pn, zt as mn } from "./CoachmarkProvider-CqkPfWAF.js";
|
|
3
3
|
import { a as I, i as hn, n as gn, o as _n, r as L, t as vn } from "./i18n-provider-kdMqj3iD.js";
|
|
4
4
|
import { n as yn, t as R } from "./skeleton-9cd4VWq0.js";
|
|
5
5
|
import { A as bn, C as xn, D as Sn, F as Cn, I as wn, L as z, M as Tn, N as En, O as Dn, P as On, R as kn, S as An, _ as jn, b as Mn, c as Nn, f as Pn, g as Fn, h as In, j as Ln, k as Rn, l as zn, m as Bn, p as Vn, v as Hn, w as Un, x as Wn, y as Gn } from "./tooltip-NXXT56H4.js";
|
|
6
6
|
import { E as Kn, F as qn, H as Jn, I as Yn, K as Xn, N as Zn, P as Qn, Y as $n, b as er, f as tr, h as nr, m as rr, n as ir, p as ar, r as or, t as B, x as sr } from "./F0Button-DVbQTicD.js";
|
|
7
|
-
import { $i as cr, $
|
|
8
|
-
import { A as ha, B as ga, C as _a, D as va, E as ya, F as ba, H as xa, I as Sa, L as Ca, M as wa, N as Ta, O as Ea, P as Da, R as Oa, S as ka, T as Aa, V as ja, _ as Ma, a as Na, b as Pa, c as Fa, d as Ia, f as La, g as Ra, h as za, i as Ba, j as Va, k as Ha, l as Ua, m as Wa, n as Ga, o as Ka, p as qa, r as Ja, s as Ya, t as Xa, u as Za, v as Qa, w as $a, x as eo, y as to, z as no } from "./F0AiProcessingOverlay-
|
|
7
|
+
import { $i as cr, $n as lr, Ai as ur, Al as dr, B as fr, Bi as pr, Bl as mr, Dc as hr, Es as gr, Fi as _r, Fs as vr, G as yr, Gn as br, Go as xr, H as Sr, Hn as Cr, Ii as wr, Ji as Tr, K as Er, Ki as Dr, Kn as Or, Kt as kr, Ll as Ar, Nc as jr, Ns as Mr, Oc as Nr, Pc as Pr, Pi as Fr, Po as Ir, Qn as Lr, Ri as Rr, Sl as zr, Ts as Br, U as Vr, V as Hr, W as Ur, Wn as Wr, Wo as Gr, Xi as Kr, Yn as qr, Ys as Jr, Zi as Yr, Zn as Xr, _a as Zr, _c as Qr, _i as $r, _l as ei, a as ti, ai as ni, as as ri, ba as ii, bl as ai, ca as oi, cl as si, cr as ci, da as li, dc as ui, dr as di, ds as fi, ea as pi, fa as mi, fr as hi, fs as gi, ga as _i, gi as vi, gl as yi, gs as bi, ha as xi, hi as Si, i as Ci, ia as wi, ii as Ti, jt as Ei, kc as Di, ki as Oi, la as ki, li as Ai, ln as ji, lr as Mi, ls as Ni, ma as Pi, mi as Fi, na as Ii, ni as Li, oi as Ri, pa as zi, pr as Bi, ps as Vi, q as Hi, qi as Ui, qn as Wi, ri as Gi, rl as Ki, sa as qi, si as Ji, sl as Yi, sr as Xi, t as Zi, ta as Qi, ti as $i, ua as ea, ui as ta, ur as na, va as ra, vi as ia, vl as aa, wc as oa, wl as sa, xa as ca, xl as la, ya as ua, yi as da, yl as fa, zc as pa, zs as ma } from "./F0CanvasPanel-CZKTFPP7.js";
|
|
8
|
+
import { A as ha, B as ga, C as _a, D as va, E as ya, F as ba, H as xa, I as Sa, L as Ca, M as wa, N as Ta, O as Ea, P as Da, R as Oa, S as ka, T as Aa, V as ja, _ as Ma, a as Na, b as Pa, c as Fa, d as Ia, f as La, g as Ra, h as za, i as Ba, j as Va, k as Ha, l as Ua, m as Wa, n as Ga, o as Ka, p as qa, r as Ja, s as Ya, t as Xa, u as Za, v as Qa, w as $a, x as eo, y as to, z as no } from "./F0AiProcessingOverlay-Bz5bf3ZA.js";
|
|
9
9
|
import { a as V, c as ro, i as io, l as ao, n as oo, o as so, r as co, s as lo, u as uo } from "./createIcon-B-z7hPQg.js";
|
|
10
10
|
import { t as fo } from "./i18n-provider-defaults-BRl6Z_VM.js";
|
|
11
|
-
import { A as po, C as mo, O as ho, P as H, U as go, W as _o, _ as vo, a as yo, d as bo, f as xo, g as So, i as Co, j as wo, m as To, n as Eo, o as Do, r as Oo, t as ko, u as Ao, v as jo, w as Mo, x as No } from "./useData-
|
|
12
|
-
import { $ as Po, $t as Fo, B as Io, Bn as Lo, Br as Ro, Bt as zo, Cr as Bo, Et as Vo, G as Ho, Gt as Uo, H as Wo, Hn as Go, Hr as Ko, Ir as qo, It as Jo, J as Yo, Jt as Xo, K as Zo, Kt as Qo, Lr as $o, Or as es, Q as ts, Qt as ns, R as rs, Rr as is, Rt as as, St as os, Tr as ss, U as cs, Ut as ls, Vr as us, Vt as ds, W as fs, Wt as ps, X as ms, Xt as hs, Y as gs, Yn as _s, Yt as vs, _ as ys, a as bs, bt as xs, c as Ss, d as Cs, dt as ws, g as Ts, gn as Es, h as Ds, it as Os, l as ks, m as As, nt as js, o as Ms, q as Ns, qt as Ps, r as Fs, rt as Is, s as Ls, t as Rs, tt as zs, u as Bs, ut as Vs, v as Hs, vn as Us, vt as Ws, w as Gs, xr as Ks, xt as qs, y as Js, yt as Ys, zn as Xs, zt as Zs } from "./F0Select-
|
|
11
|
+
import { A as po, C as mo, O as ho, P as H, U as go, W as _o, _ as vo, a as yo, d as bo, f as xo, g as So, i as Co, j as wo, m as To, n as Eo, o as Do, r as Oo, t as ko, u as Ao, v as jo, w as Mo, x as No } from "./useData-XExWuz7o.js";
|
|
12
|
+
import { $ as Po, $t as Fo, B as Io, Bn as Lo, Br as Ro, Bt as zo, Cr as Bo, Et as Vo, G as Ho, Gt as Uo, H as Wo, Hn as Go, Hr as Ko, Ir as qo, It as Jo, J as Yo, Jt as Xo, K as Zo, Kt as Qo, Lr as $o, Or as es, Q as ts, Qt as ns, R as rs, Rr as is, Rt as as, St as os, Tr as ss, U as cs, Ut as ls, Vr as us, Vt as ds, W as fs, Wt as ps, X as ms, Xt as hs, Y as gs, Yn as _s, Yt as vs, _ as ys, a as bs, bt as xs, c as Ss, d as Cs, dt as ws, g as Ts, gn as Es, h as Ds, it as Os, l as ks, m as As, nt as js, o as Ms, q as Ns, qt as Ps, r as Fs, rt as Is, s as Ls, t as Rs, tt as zs, u as Bs, ut as Vs, v as Hs, vn as Us, vt as Ws, w as Gs, xr as Ks, xt as qs, y as Js, yt as Ys, zn as Xs, zt as Zs } from "./F0Select-D6mxgb1s.js";
|
|
13
13
|
import { t as Qs } from "./Check-B2Oii9hT.js";
|
|
14
|
-
import { a as $s } from "./dist-
|
|
14
|
+
import { a as $s } from "./dist-BwlC-i6M.js";
|
|
15
15
|
import { t as ec } from "./Ellipsis-C36nOldJ.js";
|
|
16
16
|
import { t as tc } from "./LockLocked-B3KX44wv.js";
|
|
17
17
|
import { t as nc } from "./purify.es-CJ7gZxxn.js";
|
|
18
18
|
import { J as rc, S as ic, a as ac, b as oc, d as sc, f as cc, g as lc, h as uc, i as dc, m as fc, p as pc, t as mc, w as hc, x as gc, y as _c } from "./popover-BgQJIZoe.js";
|
|
19
|
-
import { i as vc, r as yc } from "./dist-
|
|
20
|
-
import { t as bc } from "./F0Text-
|
|
21
|
-
import { t as xc } from "./F0Alert-
|
|
22
|
-
import { n as Sc, r as Cc, t as wc } from "./F0DocumentViewer-
|
|
19
|
+
import { i as vc, r as yc } from "./dist-CiC2ZqiK.js";
|
|
20
|
+
import { t as bc } from "./F0Text-CcpTiEit.js";
|
|
21
|
+
import { t as xc } from "./F0Alert-Ctib1gD6.js";
|
|
22
|
+
import { n as Sc, r as Cc, t as wc } from "./F0DocumentViewer-D9HXGXr_.js";
|
|
23
23
|
import { t as Tc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as Ec } from "./F0VideoPlayer-
|
|
24
|
+
import { t as Ec } from "./F0VideoPlayer-D6cgKhcQ.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
import Dc, { Children as Oc, Fragment as kc, createContext as Ac, forwardRef as jc, isValidElement as Mc, memo as Nc, useCallback as W, useContext as Pc, useEffect as G, useId as Fc, useImperativeHandle as Ic, useLayoutEffect as Lc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Rc } from "react";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var Hc = {
|
|
|
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(bi, {
|
|
49
49
|
layout: "home",
|
|
50
50
|
children: /* @__PURE__ */ Z("div", {
|
|
51
51
|
ref: r,
|
|
@@ -79,7 +79,7 @@ var Hc = {
|
|
|
79
79
|
}), Wc = uo({
|
|
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
|
-
}), Gc = Dc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
82
|
+
}), Gc = Dc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(bi, {
|
|
83
83
|
layout: "standard",
|
|
84
84
|
children: /* @__PURE__ */ X("section", {
|
|
85
85
|
ref: a,
|
|
@@ -2928,7 +2928,7 @@ var Vl = Il("Dashboard", Bl), Hl = I(yn("Dashboard", Vl)), Ul = uo({
|
|
|
2928
2928
|
...l,
|
|
2929
2929
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2930
2930
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2931
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2931
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(xr, {
|
|
2932
2932
|
items: Wl(d),
|
|
2933
2933
|
"data-testid": "actions-dropdown"
|
|
2934
2934
|
}) : null]
|
|
@@ -3083,7 +3083,7 @@ function ou({ label: e, orientation: t }) {
|
|
|
3083
3083
|
return /* @__PURE__ */ Z("span", {
|
|
3084
3084
|
className: z("flex shrink-0 items-center justify-center gap-1 text-sm text-f1-foreground-secondary", t === "vertical" && "rotate-180 writing-vertical"),
|
|
3085
3085
|
children: [e, /* @__PURE__ */ X(V, {
|
|
3086
|
-
icon: t === "vertical" ? Ko :
|
|
3086
|
+
icon: t === "vertical" ? Ko : dr,
|
|
3087
3087
|
size: "sm",
|
|
3088
3088
|
color: "currentColor"
|
|
3089
3089
|
})]
|
|
@@ -3551,7 +3551,7 @@ var Uu = (e) => typeof e == "boolean" || !e ? {
|
|
|
3551
3551
|
})]
|
|
3552
3552
|
});
|
|
3553
3553
|
Wu.displayName = "F0BigNumber";
|
|
3554
|
-
var Ku =
|
|
3554
|
+
var Ku = ri(Wu, Gu), qu = I(Ku), Ju = [
|
|
3555
3555
|
"default",
|
|
3556
3556
|
"outline",
|
|
3557
3557
|
"neutral"
|
|
@@ -3559,14 +3559,14 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3559
3559
|
className: "flex items-center gap-2",
|
|
3560
3560
|
children: e.map((e, t) => {
|
|
3561
3561
|
switch (e.type) {
|
|
3562
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3562
|
+
case "segmentedControl": return /* @__PURE__ */ X(zi, {
|
|
3563
3563
|
items: e.items,
|
|
3564
3564
|
value: e.value,
|
|
3565
3565
|
onChange: e.onChange,
|
|
3566
3566
|
disabled: e.disabled,
|
|
3567
3567
|
ariaLabel: e.ariaLabel
|
|
3568
3568
|
}, t);
|
|
3569
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3569
|
+
case "dropdown": return /* @__PURE__ */ X(xr, {
|
|
3570
3570
|
items: e.items,
|
|
3571
3571
|
disabled: e.disabled,
|
|
3572
3572
|
children: /* @__PURE__ */ X(B, {
|
|
@@ -3582,7 +3582,7 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3582
3582
|
})
|
|
3583
3583
|
}), ed = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3584
3584
|
let r = nr(), i = L().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3585
|
-
return /* @__PURE__ */ X(
|
|
3585
|
+
return /* @__PURE__ */ X(qi, {
|
|
3586
3586
|
open: t,
|
|
3587
3587
|
onOpenChange: n,
|
|
3588
3588
|
asChild: !0,
|
|
@@ -3590,7 +3590,7 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3590
3590
|
className: "flex flex-col",
|
|
3591
3591
|
children: [/* @__PURE__ */ Z("div", {
|
|
3592
3592
|
className: "flex items-center",
|
|
3593
|
-
children: [/* @__PURE__ */ X(
|
|
3593
|
+
children: [/* @__PURE__ */ X(ki, {
|
|
3594
3594
|
asChild: !0,
|
|
3595
3595
|
children: /* @__PURE__ */ X("button", {
|
|
3596
3596
|
type: "button",
|
|
@@ -3608,7 +3608,7 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3608
3608
|
children: e.summary
|
|
3609
3609
|
}) : null,
|
|
3610
3610
|
a ? /* @__PURE__ */ X($u, { actions: e.actions }) : null,
|
|
3611
|
-
/* @__PURE__ */ X(
|
|
3611
|
+
/* @__PURE__ */ X(ki, {
|
|
3612
3612
|
asChild: !0,
|
|
3613
3613
|
children: /* @__PURE__ */ X(B, {
|
|
3614
3614
|
variant: "outline",
|
|
@@ -3637,7 +3637,7 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3637
3637
|
},
|
|
3638
3638
|
transition: { duration: r ? 0 : .2 },
|
|
3639
3639
|
className: "overflow-hidden",
|
|
3640
|
-
children: /* @__PURE__ */ X(
|
|
3640
|
+
children: /* @__PURE__ */ X(oi, {
|
|
3641
3641
|
forceMount: !0,
|
|
3642
3642
|
asChild: !0,
|
|
3643
3643
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3681,7 +3681,7 @@ var Ku = Qi(Wu, Gu), qu = I(Ku), Ju = [
|
|
|
3681
3681
|
});
|
|
3682
3682
|
});
|
|
3683
3683
|
nd.displayName = "F0Accordion";
|
|
3684
|
-
var rd = I(yn("F0Accordion",
|
|
3684
|
+
var rd = I(yn("F0Accordion", ri(nd, td))), id = ({ count: e, list: t }) => {
|
|
3685
3685
|
let [n, r] = J(!1), i = /* @__PURE__ */ X(as, { label: `+${e}` });
|
|
3686
3686
|
return t?.length ? /* @__PURE__ */ Z(mc, {
|
|
3687
3687
|
open: n,
|
|
@@ -3747,9 +3747,9 @@ var od = I(yn("F0ChipList", ad)), sd = [
|
|
|
3747
3747
|
"positive",
|
|
3748
3748
|
"transparent"
|
|
3749
3749
|
], ud = {
|
|
3750
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3750
|
+
get: async (e) => JSON.parse(localStorage.getItem(pr(e)) ?? "{}"),
|
|
3751
3751
|
set: async (e, t) => {
|
|
3752
|
-
localStorage.setItem(
|
|
3752
|
+
localStorage.setItem(pr(e), JSON.stringify(t));
|
|
3753
3753
|
}
|
|
3754
3754
|
}, dd = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position: i = "right", size: a = "md", primaryAction: o, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
3755
3755
|
let [b, x] = J(n);
|
|
@@ -3866,11 +3866,11 @@ var gd = hd;
|
|
|
3866
3866
|
//#endregion
|
|
3867
3867
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3868
3868
|
function _d(e) {
|
|
3869
|
-
let t =
|
|
3869
|
+
let t = hi(e).shape, n = [];
|
|
3870
3870
|
for (let [e, r] of Object.entries(t)) {
|
|
3871
|
-
let t = r, i =
|
|
3871
|
+
let t = r, i = ci(t);
|
|
3872
3872
|
if (!i) continue;
|
|
3873
|
-
let a =
|
|
3873
|
+
let a = na(t, i), o = gt(t, a), s = {
|
|
3874
3874
|
name: e,
|
|
3875
3875
|
type: a,
|
|
3876
3876
|
label: i.label,
|
|
@@ -3942,9 +3942,9 @@ function yd(e) {
|
|
|
3942
3942
|
let r = {
|
|
3943
3943
|
...n,
|
|
3944
3944
|
...e
|
|
3945
|
-
}, i =
|
|
3945
|
+
}, i = hi(t), a = [];
|
|
3946
3946
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3947
|
-
let n =
|
|
3947
|
+
let n = ci(t);
|
|
3948
3948
|
n?.renderIf ? se(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3949
3949
|
}
|
|
3950
3950
|
return a;
|
|
@@ -3988,12 +3988,12 @@ var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3988
3988
|
modal: !0,
|
|
3989
3989
|
children: /* @__PURE__ */ Z("div", {
|
|
3990
3990
|
className: "flex flex-col gap-4 py-2",
|
|
3991
|
-
children: [/* @__PURE__ */ X(
|
|
3991
|
+
children: [/* @__PURE__ */ X(Gr, {
|
|
3992
3992
|
type: n,
|
|
3993
3993
|
size: "lg"
|
|
3994
3994
|
}), /* @__PURE__ */ Z("div", {
|
|
3995
3995
|
className: "flex flex-col gap-0.5",
|
|
3996
|
-
children: [/* @__PURE__ */ X(
|
|
3996
|
+
children: [/* @__PURE__ */ X(Ui, {
|
|
3997
3997
|
className: "text-xl sm:text-lg",
|
|
3998
3998
|
children: r
|
|
3999
3999
|
}), /* @__PURE__ */ X(It, {
|
|
@@ -4380,7 +4380,7 @@ var zd = () => {}, Bd = ({ steps: e, children: t, isOpen: n, onClose: r = zd, ti
|
|
|
4380
4380
|
onClose: r
|
|
4381
4381
|
}), g = L(), _ = 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, C = K(() => ({
|
|
4382
4382
|
label: b,
|
|
4383
|
-
icon: y ? void 0 :
|
|
4383
|
+
icon: y ? void 0 : dr,
|
|
4384
4384
|
onClick: () => void h.goNext(),
|
|
4385
4385
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
4386
4386
|
loading: h.loading
|
|
@@ -4437,14 +4437,14 @@ Bd.displayName = "F0Wizard", I(Bd);
|
|
|
4437
4437
|
//#endregion
|
|
4438
4438
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4439
4439
|
function Vd(e) {
|
|
4440
|
-
let t =
|
|
4441
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4440
|
+
let t = hi(e).shape, n = Object.entries(t);
|
|
4441
|
+
return n.length !== 0 && n.every(([, e]) => ci(e)?.disabled === !0);
|
|
4442
4442
|
}
|
|
4443
4443
|
function Hd(e, t) {
|
|
4444
4444
|
if (t) return Object.keys(t);
|
|
4445
|
-
let n =
|
|
4445
|
+
let n = hi(e).shape, r = /* @__PURE__ */ new Set();
|
|
4446
4446
|
for (let e of Object.values(n)) {
|
|
4447
|
-
let t =
|
|
4447
|
+
let t = ci(e);
|
|
4448
4448
|
t?.section && r.add(t.section);
|
|
4449
4449
|
}
|
|
4450
4450
|
return Array.from(r);
|
|
@@ -4452,15 +4452,15 @@ function Hd(e, t) {
|
|
|
4452
4452
|
function Ud(e, t) {
|
|
4453
4453
|
let n = e.shape, r = {};
|
|
4454
4454
|
for (let [e, i] of Object.entries(n)) {
|
|
4455
|
-
let n =
|
|
4455
|
+
let n = ci(i);
|
|
4456
4456
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4457
4457
|
}
|
|
4458
|
-
return
|
|
4458
|
+
return ni(r);
|
|
4459
4459
|
}
|
|
4460
4460
|
function Wd(e, t, n) {
|
|
4461
4461
|
let r = t ?? {};
|
|
4462
4462
|
if (n) return n({ data: r });
|
|
4463
|
-
let i =
|
|
4463
|
+
let i = hi(e).shape;
|
|
4464
4464
|
return Object.entries(i).every(([e, t]) => {
|
|
4465
4465
|
if (t.isOptional()) return !0;
|
|
4466
4466
|
let n = r[e];
|
|
@@ -4686,7 +4686,7 @@ function Xd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4686
4686
|
});
|
|
4687
4687
|
}
|
|
4688
4688
|
function Zd({ 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: f, linkAfterLastStepSubmit: p, autoSkipCompletedSteps: m = !1, renderCustomField: h }) {
|
|
4689
|
-
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() =>
|
|
4689
|
+
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => hi(_), [_]), T = K(() => Hd(_, v), [_, v]), E = W((e) => Vd(Ud(w, e)), [w]), D = be(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
|
|
4690
4690
|
await D.submit();
|
|
4691
4691
|
}, [D]), j = W((e) => D.hasErrors, [D.hasErrors]), M = t ?? e.steps, ee = K(() => M ?? T.map((e) => ({
|
|
4692
4692
|
title: v?.[e]?.title ?? e,
|
|
@@ -4976,7 +4976,7 @@ var of = { open: af }, sf = [
|
|
|
4976
4976
|
id: C,
|
|
4977
4977
|
disabled: c
|
|
4978
4978
|
}) : null,
|
|
4979
|
-
/* @__PURE__ */ Z(
|
|
4979
|
+
/* @__PURE__ */ Z(Pi, {
|
|
4980
4980
|
value: [O],
|
|
4981
4981
|
onValueChange: j,
|
|
4982
4982
|
onValueCommit: M,
|
|
@@ -4991,14 +4991,14 @@ var of = { open: af }, sf = [
|
|
|
4991
4991
|
onMouseEnter: () => N(!0),
|
|
4992
4992
|
onMouseLeave: () => N(!1),
|
|
4993
4993
|
children: [
|
|
4994
|
-
/* @__PURE__ */ X(
|
|
4994
|
+
/* @__PURE__ */ X(Zr, {
|
|
4995
4995
|
className: ff({ status: oe }),
|
|
4996
|
-
children: /* @__PURE__ */ X(
|
|
4996
|
+
children: /* @__PURE__ */ X(xi, { className: pf({
|
|
4997
4997
|
status: oe,
|
|
4998
4998
|
disabled: c
|
|
4999
4999
|
}) })
|
|
5000
5000
|
}),
|
|
5001
|
-
/* @__PURE__ */ X(
|
|
5001
|
+
/* @__PURE__ */ X(_i, {
|
|
5002
5002
|
id: S,
|
|
5003
5003
|
"aria-label": se ? void 0 : T,
|
|
5004
5004
|
"aria-labelledby": se ? C : void 0,
|
|
@@ -5037,7 +5037,7 @@ var of = { open: af }, sf = [
|
|
|
5037
5037
|
});
|
|
5038
5038
|
});
|
|
5039
5039
|
gf.displayName = "F0Slider";
|
|
5040
|
-
var _f = yn("F0Slider",
|
|
5040
|
+
var _f = yn("F0Slider", ri(I(gf), df)), vf = [
|
|
5041
5041
|
"completed",
|
|
5042
5042
|
"in-progress",
|
|
5043
5043
|
"not-started",
|
|
@@ -5318,7 +5318,7 @@ function Rf(e) {
|
|
|
5318
5318
|
}
|
|
5319
5319
|
//#endregion
|
|
5320
5320
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
5321
|
-
var zf = Xn.create(
|
|
5321
|
+
var zf = Xn.create(Cr), Bf = Nc(() => {
|
|
5322
5322
|
let e = L();
|
|
5323
5323
|
return /* @__PURE__ */ Z("div", {
|
|
5324
5324
|
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",
|
|
@@ -5674,12 +5674,12 @@ var tp = () => {
|
|
|
5674
5674
|
let { isQuestionTypeAllowed: e, datasets: t } = Zf(), { t: n } = L(), r = [
|
|
5675
5675
|
{
|
|
5676
5676
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5677
|
-
icon:
|
|
5677
|
+
icon: ma,
|
|
5678
5678
|
questionType: "rating"
|
|
5679
5679
|
},
|
|
5680
5680
|
{
|
|
5681
5681
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5682
|
-
icon:
|
|
5682
|
+
icon: yi,
|
|
5683
5683
|
questionType: "multi-select"
|
|
5684
5684
|
},
|
|
5685
5685
|
{
|
|
@@ -5689,32 +5689,32 @@ var tp = () => {
|
|
|
5689
5689
|
},
|
|
5690
5690
|
{
|
|
5691
5691
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5692
|
-
icon:
|
|
5692
|
+
icon: Mr,
|
|
5693
5693
|
questionType: "text"
|
|
5694
5694
|
},
|
|
5695
5695
|
{
|
|
5696
5696
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5697
|
-
icon:
|
|
5697
|
+
icon: hr,
|
|
5698
5698
|
questionType: "longText"
|
|
5699
5699
|
},
|
|
5700
5700
|
{
|
|
5701
5701
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5702
|
-
icon:
|
|
5702
|
+
icon: ui,
|
|
5703
5703
|
questionType: "numeric"
|
|
5704
5704
|
},
|
|
5705
5705
|
{
|
|
5706
5706
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5707
|
-
icon:
|
|
5707
|
+
icon: Nr,
|
|
5708
5708
|
questionType: "link"
|
|
5709
5709
|
},
|
|
5710
5710
|
{
|
|
5711
5711
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5712
|
-
icon:
|
|
5712
|
+
icon: sa,
|
|
5713
5713
|
questionType: "date"
|
|
5714
5714
|
},
|
|
5715
5715
|
{
|
|
5716
5716
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5717
|
-
icon:
|
|
5717
|
+
icon: gr,
|
|
5718
5718
|
questionType: "file"
|
|
5719
5719
|
},
|
|
5720
5720
|
{
|
|
@@ -5730,17 +5730,17 @@ var tp = () => {
|
|
|
5730
5730
|
})) : [];
|
|
5731
5731
|
return [...r, ...i];
|
|
5732
5732
|
}, np = {
|
|
5733
|
-
rating:
|
|
5734
|
-
"multi-select":
|
|
5733
|
+
rating: ma,
|
|
5734
|
+
"multi-select": yi,
|
|
5735
5735
|
select: Qs,
|
|
5736
|
-
text:
|
|
5737
|
-
longText:
|
|
5738
|
-
numeric:
|
|
5739
|
-
link:
|
|
5740
|
-
date:
|
|
5736
|
+
text: Mr,
|
|
5737
|
+
longText: hr,
|
|
5738
|
+
numeric: ui,
|
|
5739
|
+
link: Nr,
|
|
5740
|
+
date: sa,
|
|
5741
5741
|
"dropdown-single": go,
|
|
5742
5742
|
"dropdown-multi": go,
|
|
5743
|
-
file:
|
|
5743
|
+
file: gr,
|
|
5744
5744
|
checkbox: $s
|
|
5745
5745
|
}, rp = () => {
|
|
5746
5746
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Zf(), [a, o] = J(!1), s = tp(), { t: c } = L(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5774,7 +5774,7 @@ var tp = () => {
|
|
|
5774
5774
|
children: /* @__PURE__ */ Z("div", {
|
|
5775
5775
|
className: "flex w-full flex-row items-center gap-2",
|
|
5776
5776
|
children: [/* @__PURE__ */ X(V, {
|
|
5777
|
-
icon:
|
|
5777
|
+
icon: mr,
|
|
5778
5778
|
color: "default"
|
|
5779
5779
|
}), /* @__PURE__ */ X("span", {
|
|
5780
5780
|
className: "flex-1 text-base font-medium",
|
|
@@ -5827,7 +5827,7 @@ var tp = () => {
|
|
|
5827
5827
|
children: /* @__PURE__ */ Z("div", {
|
|
5828
5828
|
className: "flex w-full flex-row items-center gap-2",
|
|
5829
5829
|
children: [/* @__PURE__ */ X(V, {
|
|
5830
|
-
icon:
|
|
5830
|
+
icon: yi,
|
|
5831
5831
|
color: "default"
|
|
5832
5832
|
}), /* @__PURE__ */ X("span", {
|
|
5833
5833
|
className: "flex-1",
|
|
@@ -6007,7 +6007,7 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6007
6007
|
className: "flex w-full flex-row items-center gap-2",
|
|
6008
6008
|
children: [
|
|
6009
6009
|
/* @__PURE__ */ X(so, {
|
|
6010
|
-
icon:
|
|
6010
|
+
icon: Pr,
|
|
6011
6011
|
color: "default"
|
|
6012
6012
|
}),
|
|
6013
6013
|
/* @__PURE__ */ X("span", {
|
|
@@ -6119,7 +6119,7 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6119
6119
|
className: "flex w-full flex-row items-center gap-2",
|
|
6120
6120
|
children: [
|
|
6121
6121
|
/* @__PURE__ */ X(so, {
|
|
6122
|
-
icon:
|
|
6122
|
+
icon: yi,
|
|
6123
6123
|
color: "default"
|
|
6124
6124
|
}),
|
|
6125
6125
|
/* @__PURE__ */ X("span", {
|
|
@@ -6148,11 +6148,11 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6148
6148
|
let { t: a } = L(), { labels: o } = Zf();
|
|
6149
6149
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(_c, {}) : null, /* @__PURE__ */ Z(pc, { children: [e ? /* @__PURE__ */ X(fp, {
|
|
6150
6150
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
6151
|
-
icon:
|
|
6151
|
+
icon: Di,
|
|
6152
6152
|
onClick: r
|
|
6153
6153
|
}) : null, t ? /* @__PURE__ */ X(fp, {
|
|
6154
6154
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
6155
|
-
icon:
|
|
6155
|
+
icon: Yi,
|
|
6156
6156
|
onClick: i,
|
|
6157
6157
|
critical: !0
|
|
6158
6158
|
}) : null] })] });
|
|
@@ -6187,13 +6187,13 @@ function mp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6187
6187
|
}),
|
|
6188
6188
|
T ? /* @__PURE__ */ X(pc, { children: /* @__PURE__ */ X(up, {
|
|
6189
6189
|
label: o("surveyFormBuilder.labels.required"),
|
|
6190
|
-
icon:
|
|
6190
|
+
icon: Ar,
|
|
6191
6191
|
checked: !!l?.required,
|
|
6192
6192
|
onChange: _
|
|
6193
6193
|
}) }) : null,
|
|
6194
6194
|
E ? /* @__PURE__ */ X(pc, { children: /* @__PURE__ */ X(up, {
|
|
6195
6195
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
6196
|
-
icon:
|
|
6196
|
+
icon: yi,
|
|
6197
6197
|
checked: p,
|
|
6198
6198
|
onChange: b
|
|
6199
6199
|
}) }) : null,
|
|
@@ -6244,7 +6244,7 @@ function Cp({ text: e }) {
|
|
|
6244
6244
|
return /* @__PURE__ */ X(Y, { children: t.map((e, t) => {
|
|
6245
6245
|
if (t % 2 == 0) return /* @__PURE__ */ X(kc, { children: e }, t);
|
|
6246
6246
|
let [n, r] = xp(e), i = Sp(n);
|
|
6247
|
-
return i ? /* @__PURE__ */ Z(kc, { children: [/* @__PURE__ */ X(
|
|
6247
|
+
return i ? /* @__PURE__ */ Z(kc, { children: [/* @__PURE__ */ X(ea, {
|
|
6248
6248
|
variant: "inline",
|
|
6249
6249
|
href: i,
|
|
6250
6250
|
target: "_blank",
|
|
@@ -6414,7 +6414,7 @@ var wp = ({ notice: e, className: t, children: n }) => {
|
|
|
6414
6414
|
children: /* @__PURE__ */ Z("div", {
|
|
6415
6415
|
className: "flex w-full flex-row items-center gap-2",
|
|
6416
6416
|
children: [/* @__PURE__ */ X(V, {
|
|
6417
|
-
icon:
|
|
6417
|
+
icon: mr,
|
|
6418
6418
|
color: "default"
|
|
6419
6419
|
}), /* @__PURE__ */ X("span", {
|
|
6420
6420
|
className: "flex-1 text-base font-medium",
|
|
@@ -6466,7 +6466,7 @@ var wp = ({ notice: e, className: t, children: n }) => {
|
|
|
6466
6466
|
children: /* @__PURE__ */ Z("div", {
|
|
6467
6467
|
className: "flex w-full flex-row items-center gap-2",
|
|
6468
6468
|
children: [/* @__PURE__ */ X(V, {
|
|
6469
|
-
icon:
|
|
6469
|
+
icon: yi,
|
|
6470
6470
|
color: "default"
|
|
6471
6471
|
}), /* @__PURE__ */ X("span", {
|
|
6472
6472
|
className: "flex-1",
|
|
@@ -6700,8 +6700,8 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6700
6700
|
required: t.required,
|
|
6701
6701
|
maxDecimals: 0,
|
|
6702
6702
|
placeholder: s,
|
|
6703
|
-
icon:
|
|
6704
|
-
}) : /* @__PURE__ */ X(
|
|
6703
|
+
icon: ui
|
|
6704
|
+
}) : /* @__PURE__ */ X(Ai, {
|
|
6705
6705
|
type: "text",
|
|
6706
6706
|
size: "md",
|
|
6707
6707
|
value: s,
|
|
@@ -6709,7 +6709,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6709
6709
|
disabled: !0,
|
|
6710
6710
|
label: n("surveyFormBuilder.answer.label"),
|
|
6711
6711
|
hideLabel: !0,
|
|
6712
|
-
icon:
|
|
6712
|
+
icon: ui
|
|
6713
6713
|
})
|
|
6714
6714
|
});
|
|
6715
6715
|
}, Fp = ({ option: e, selected: n, onClick: r, onChangeLabel: i, disabled: a, isEmojiMode: o = !1 }) => {
|
|
@@ -6883,7 +6883,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6883
6883
|
children: /* @__PURE__ */ X("div", {
|
|
6884
6884
|
className: z("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6885
6885
|
children: /* @__PURE__ */ X(so, {
|
|
6886
|
-
icon:
|
|
6886
|
+
icon: pa,
|
|
6887
6887
|
size: "sm"
|
|
6888
6888
|
})
|
|
6889
6889
|
})
|
|
@@ -6906,13 +6906,13 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6906
6906
|
children: [/* @__PURE__ */ X(B, {
|
|
6907
6907
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6908
6908
|
variant: "ghost",
|
|
6909
|
-
icon: c ?
|
|
6909
|
+
icon: c ? si : ei,
|
|
6910
6910
|
onClick: x,
|
|
6911
6911
|
hideLabel: !0
|
|
6912
6912
|
}), /* @__PURE__ */ X(B, {
|
|
6913
6913
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6914
6914
|
variant: "ghost",
|
|
6915
|
-
icon:
|
|
6915
|
+
icon: Yi,
|
|
6916
6916
|
hideLabel: !0,
|
|
6917
6917
|
onClick: S
|
|
6918
6918
|
})]
|
|
@@ -7139,7 +7139,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7139
7139
|
h && c.start(e);
|
|
7140
7140
|
},
|
|
7141
7141
|
children: /* @__PURE__ */ X(V, {
|
|
7142
|
-
icon:
|
|
7142
|
+
icon: pa,
|
|
7143
7143
|
size: "sm"
|
|
7144
7144
|
})
|
|
7145
7145
|
}) : null, /* @__PURE__ */ X(Up, { ...e.question })]
|
|
@@ -7169,7 +7169,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7169
7169
|
f && i.start(e);
|
|
7170
7170
|
},
|
|
7171
7171
|
children: /* @__PURE__ */ X(V, {
|
|
7172
|
-
icon:
|
|
7172
|
+
icon: pa,
|
|
7173
7173
|
size: "sm"
|
|
7174
7174
|
})
|
|
7175
7175
|
}) : null, /* @__PURE__ */ X(Up, { ...e })]
|
|
@@ -7201,7 +7201,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7201
7201
|
});
|
|
7202
7202
|
}, x = [{
|
|
7203
7203
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
7204
|
-
icon:
|
|
7204
|
+
icon: Di,
|
|
7205
7205
|
onClick: () => {
|
|
7206
7206
|
d?.({
|
|
7207
7207
|
elementId: e,
|
|
@@ -7210,7 +7210,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7210
7210
|
}
|
|
7211
7211
|
}, {
|
|
7212
7212
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
7213
|
-
icon:
|
|
7213
|
+
icon: Yi,
|
|
7214
7214
|
onClick: () => {
|
|
7215
7215
|
u(e);
|
|
7216
7216
|
},
|
|
@@ -7255,7 +7255,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7255
7255
|
}) : null,
|
|
7256
7256
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
7257
7257
|
className: z("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
7258
|
-
children: /* @__PURE__ */ X(
|
|
7258
|
+
children: /* @__PURE__ */ X(xr, {
|
|
7259
7259
|
items: x,
|
|
7260
7260
|
icon: ec,
|
|
7261
7261
|
open: p,
|
|
@@ -7334,7 +7334,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7334
7334
|
o.start(e);
|
|
7335
7335
|
},
|
|
7336
7336
|
children: /* @__PURE__ */ X(V, {
|
|
7337
|
-
icon:
|
|
7337
|
+
icon: pa,
|
|
7338
7338
|
size: "sm"
|
|
7339
7339
|
})
|
|
7340
7340
|
}) : null, /* @__PURE__ */ X(qp, {
|
|
@@ -7364,7 +7364,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7364
7364
|
p || x.push({
|
|
7365
7365
|
type: "toggle",
|
|
7366
7366
|
label: l,
|
|
7367
|
-
icon:
|
|
7367
|
+
icon: Ar,
|
|
7368
7368
|
checked: !!r?.required,
|
|
7369
7369
|
onCheckedChange: m
|
|
7370
7370
|
});
|
|
@@ -7409,7 +7409,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7409
7409
|
selected: s === e && t === "dropdown-single"
|
|
7410
7410
|
}, {
|
|
7411
7411
|
label: f,
|
|
7412
|
-
icon:
|
|
7412
|
+
icon: yi,
|
|
7413
7413
|
onClick: () => h("dropdown-multi", e),
|
|
7414
7414
|
selected: s === e && t === "dropdown-multi"
|
|
7415
7415
|
}]
|
|
@@ -7423,16 +7423,16 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7423
7423
|
return x.push({
|
|
7424
7424
|
type: "submenu",
|
|
7425
7425
|
label: u,
|
|
7426
|
-
icon:
|
|
7426
|
+
icon: Pr,
|
|
7427
7427
|
selectedLabel: E,
|
|
7428
7428
|
children: w
|
|
7429
7429
|
}), x.push({ type: "separator" }), x.push({
|
|
7430
7430
|
label: i,
|
|
7431
|
-
icon:
|
|
7431
|
+
icon: Di,
|
|
7432
7432
|
onClick: y
|
|
7433
7433
|
}), n && x.push({
|
|
7434
7434
|
label: a,
|
|
7435
|
-
icon:
|
|
7435
|
+
icon: Yi,
|
|
7436
7436
|
onClick: b,
|
|
7437
7437
|
critical: !0
|
|
7438
7438
|
}), x;
|
|
@@ -7453,12 +7453,12 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7453
7453
|
return {
|
|
7454
7454
|
id: i,
|
|
7455
7455
|
label: t.title || n,
|
|
7456
|
-
icon:
|
|
7456
|
+
icon: mr,
|
|
7457
7457
|
onClick: y,
|
|
7458
7458
|
...!h && !g && !t.locked && { otherActions: [
|
|
7459
7459
|
{
|
|
7460
7460
|
label: o,
|
|
7461
|
-
icon:
|
|
7461
|
+
icon: Di,
|
|
7462
7462
|
onClick: () => m?.({
|
|
7463
7463
|
elementId: t.id,
|
|
7464
7464
|
type: "section"
|
|
@@ -7467,7 +7467,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7467
7467
|
{ type: "separator" },
|
|
7468
7468
|
{
|
|
7469
7469
|
label: s,
|
|
7470
|
-
icon:
|
|
7470
|
+
icon: Yi,
|
|
7471
7471
|
onClick: () => p(t.id),
|
|
7472
7472
|
critical: !0
|
|
7473
7473
|
}
|
|
@@ -8054,7 +8054,7 @@ function Sm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
8054
8054
|
u ? /* @__PURE__ */ X("div", {
|
|
8055
8055
|
className: "min-h-8 p-1",
|
|
8056
8056
|
children: /* @__PURE__ */ X(V, {
|
|
8057
|
-
icon: t.correct ?
|
|
8057
|
+
icon: t.correct ? ei : si,
|
|
8058
8058
|
color: t.correct ? "positive" : "critical",
|
|
8059
8059
|
"aria-hidden": !0
|
|
8060
8060
|
})
|
|
@@ -8076,7 +8076,7 @@ var Cm = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, wm = () => ({
|
|
|
8076
8076
|
status: "idle"
|
|
8077
8077
|
});
|
|
8078
8078
|
function Tm(e, t) {
|
|
8079
|
-
return
|
|
8079
|
+
return Ri().optional().superRefine((n, r) => {
|
|
8080
8080
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
8081
8081
|
code: "custom",
|
|
8082
8082
|
message: t("forms.validation.required")
|
|
@@ -8084,7 +8084,7 @@ function Tm(e, t) {
|
|
|
8084
8084
|
});
|
|
8085
8085
|
}
|
|
8086
8086
|
function Em(e, t) {
|
|
8087
|
-
return
|
|
8087
|
+
return Ri().optional().superRefine((n, r) => {
|
|
8088
8088
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
8089
8089
|
code: "custom",
|
|
8090
8090
|
message: t("forms.validation.required")
|
|
@@ -8095,7 +8095,7 @@ function Em(e, t) {
|
|
|
8095
8095
|
});
|
|
8096
8096
|
}
|
|
8097
8097
|
function Dm(e, t) {
|
|
8098
|
-
return
|
|
8098
|
+
return Ti().optional().superRefine((n, r) => {
|
|
8099
8099
|
e && n == null && r.addIssue({
|
|
8100
8100
|
code: "custom",
|
|
8101
8101
|
message: t("forms.validation.required")
|
|
@@ -8103,7 +8103,7 @@ function Dm(e, t) {
|
|
|
8103
8103
|
});
|
|
8104
8104
|
}
|
|
8105
8105
|
function Om(e, t) {
|
|
8106
|
-
return
|
|
8106
|
+
return $i(Ri()).optional().superRefine((n, r) => {
|
|
8107
8107
|
e && (!n || n.length === 0) && r.addIssue({
|
|
8108
8108
|
code: "custom",
|
|
8109
8109
|
message: t("forms.validation.required")
|
|
@@ -8111,7 +8111,7 @@ function Om(e, t) {
|
|
|
8111
8111
|
});
|
|
8112
8112
|
}
|
|
8113
8113
|
function km(e, t) {
|
|
8114
|
-
return
|
|
8114
|
+
return Gi().optional().superRefine((n, r) => {
|
|
8115
8115
|
e && !n && r.addIssue({
|
|
8116
8116
|
code: "custom",
|
|
8117
8117
|
message: t("forms.validation.required")
|
|
@@ -8120,7 +8120,7 @@ function km(e, t) {
|
|
|
8120
8120
|
}
|
|
8121
8121
|
var Am = Om;
|
|
8122
8122
|
function jm(e, t) {
|
|
8123
|
-
return
|
|
8123
|
+
return Li().optional().superRefine((n, r) => {
|
|
8124
8124
|
e && !n && r.addIssue({
|
|
8125
8125
|
code: "custom",
|
|
8126
8126
|
message: t("forms.validation.required")
|
|
@@ -8173,7 +8173,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8173
8173
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
8174
8174
|
disabled: i
|
|
8175
8175
|
};
|
|
8176
|
-
return
|
|
8176
|
+
return Xi(Tm(!!e.required, t), {
|
|
8177
8177
|
...l,
|
|
8178
8178
|
fieldType: "custom",
|
|
8179
8179
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8201,7 +8201,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8201
8201
|
rows: 4,
|
|
8202
8202
|
disabled: i
|
|
8203
8203
|
};
|
|
8204
|
-
return
|
|
8204
|
+
return Xi(Tm(!!e.required, t), {
|
|
8205
8205
|
...l,
|
|
8206
8206
|
fieldType: "custom",
|
|
8207
8207
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8228,7 +8228,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8228
8228
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
8229
8229
|
disabled: i
|
|
8230
8230
|
};
|
|
8231
|
-
return
|
|
8231
|
+
return Xi(Dm(!!e.required, t), {
|
|
8232
8232
|
...l,
|
|
8233
8233
|
fieldType: "custom",
|
|
8234
8234
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8256,7 +8256,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8256
8256
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
8257
8257
|
disabled: i
|
|
8258
8258
|
};
|
|
8259
|
-
return
|
|
8259
|
+
return Xi(Em(!!e.required, t), {
|
|
8260
8260
|
...l,
|
|
8261
8261
|
fieldType: "custom",
|
|
8262
8262
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8283,7 +8283,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8283
8283
|
clearable: !e.required,
|
|
8284
8284
|
disabled: i
|
|
8285
8285
|
};
|
|
8286
|
-
return
|
|
8286
|
+
return Xi(km(!!e.required, t), {
|
|
8287
8287
|
...l,
|
|
8288
8288
|
fieldType: "custom",
|
|
8289
8289
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8319,7 +8319,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8319
8319
|
showSearchBox: r,
|
|
8320
8320
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8321
8321
|
};
|
|
8322
|
-
return
|
|
8322
|
+
return Xi(Tm(!!e.required, t), {
|
|
8323
8323
|
...l,
|
|
8324
8324
|
fieldType: "custom",
|
|
8325
8325
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -8368,7 +8368,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8368
8368
|
showSearchBox: r,
|
|
8369
8369
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8370
8370
|
};
|
|
8371
|
-
return
|
|
8371
|
+
return Xi(Om(!!e.required, t), {
|
|
8372
8372
|
...l,
|
|
8373
8373
|
fieldType: "custom",
|
|
8374
8374
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8395,7 +8395,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8395
8395
|
disabled: i,
|
|
8396
8396
|
showAnswerValidation: r
|
|
8397
8397
|
};
|
|
8398
|
-
return
|
|
8398
|
+
return Xi(Tm(!!e.required, t), {
|
|
8399
8399
|
...l,
|
|
8400
8400
|
fieldType: "custom",
|
|
8401
8401
|
fieldConfig: n,
|
|
@@ -8418,7 +8418,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8418
8418
|
disabled: i,
|
|
8419
8419
|
showAnswerValidation: r
|
|
8420
8420
|
};
|
|
8421
|
-
return
|
|
8421
|
+
return Xi(Om(!!e.required, t), {
|
|
8422
8422
|
...l,
|
|
8423
8423
|
fieldType: "custom",
|
|
8424
8424
|
fieldConfig: n,
|
|
@@ -8440,7 +8440,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8440
8440
|
maxLabel: n.maxLabel,
|
|
8441
8441
|
disabled: i
|
|
8442
8442
|
};
|
|
8443
|
-
return
|
|
8443
|
+
return Xi(Dm(!!e.required, t), {
|
|
8444
8444
|
...l,
|
|
8445
8445
|
fieldType: "custom",
|
|
8446
8446
|
fieldConfig: r,
|
|
@@ -8466,7 +8466,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8466
8466
|
useUpload: r ?? wm,
|
|
8467
8467
|
disabled: i || !r
|
|
8468
8468
|
};
|
|
8469
|
-
return
|
|
8469
|
+
return Xi(Am(!!e.required, t), {
|
|
8470
8470
|
...l,
|
|
8471
8471
|
fieldType: "custom",
|
|
8472
8472
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8492,7 +8492,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8492
8492
|
label: n.label || c,
|
|
8493
8493
|
disabled: i
|
|
8494
8494
|
};
|
|
8495
|
-
return
|
|
8495
|
+
return Xi(jm(!!e.required, t), {
|
|
8496
8496
|
...l,
|
|
8497
8497
|
fieldType: "custom",
|
|
8498
8498
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8511,7 +8511,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8511
8511
|
})
|
|
8512
8512
|
});
|
|
8513
8513
|
}
|
|
8514
|
-
default: return
|
|
8514
|
+
default: return Xi(Ji(), {
|
|
8515
8515
|
...l,
|
|
8516
8516
|
fieldType: "custom",
|
|
8517
8517
|
render: () => null
|
|
@@ -8558,7 +8558,7 @@ function Bm({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8558
8558
|
}), f[t] = a?.[t] ?? Mm(e, r);
|
|
8559
8559
|
}
|
|
8560
8560
|
return {
|
|
8561
|
-
schema:
|
|
8561
|
+
schema: ni(d),
|
|
8562
8562
|
defaultValues: f,
|
|
8563
8563
|
flatQuestions: m,
|
|
8564
8564
|
sections: p
|
|
@@ -8583,7 +8583,7 @@ function Hm(e) {
|
|
|
8583
8583
|
return {
|
|
8584
8584
|
label: e.t("surveyAnsweringForm.actions.next"),
|
|
8585
8585
|
onClick: e.onNext,
|
|
8586
|
-
icon:
|
|
8586
|
+
icon: dr
|
|
8587
8587
|
};
|
|
8588
8588
|
}
|
|
8589
8589
|
function Um(e) {
|
|
@@ -8749,10 +8749,10 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8749
8749
|
onPrevious: je
|
|
8750
8750
|
}), Le = u && !p ? [{
|
|
8751
8751
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8752
|
-
icon: C ?
|
|
8752
|
+
icon: C ? Qr : oa,
|
|
8753
8753
|
onClick: () => w((e) => !e)
|
|
8754
8754
|
}] : void 0, Re = n === "all-questions" && de && !p, ze = F && de && !p, Be = F && !!P?.sectionTitle && !p, Ve = we === "center" || we === "fullscreen";
|
|
8755
|
-
return /* @__PURE__ */ X(
|
|
8755
|
+
return /* @__PURE__ */ X(da, {
|
|
8756
8756
|
isOpen: o,
|
|
8757
8757
|
onClose: Me,
|
|
8758
8758
|
title: r,
|
|
@@ -9034,18 +9034,18 @@ function sh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9034
9034
|
let [o, s] = J(e);
|
|
9035
9035
|
return G(() => {
|
|
9036
9036
|
s(e);
|
|
9037
|
-
}, [e]), /* @__PURE__ */ X(
|
|
9037
|
+
}, [e]), /* @__PURE__ */ X(Dr, {
|
|
9038
9038
|
open: o,
|
|
9039
9039
|
onOpenChange: (e) => {
|
|
9040
9040
|
s(e), e || t();
|
|
9041
9041
|
},
|
|
9042
9042
|
modal: !0,
|
|
9043
|
-
children: /* @__PURE__ */ Z(
|
|
9043
|
+
children: /* @__PURE__ */ Z(Tr, {
|
|
9044
9044
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
9045
9045
|
container: a,
|
|
9046
9046
|
children: [/* @__PURE__ */ Z("div", {
|
|
9047
9047
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
9048
|
-
children: [/* @__PURE__ */ Z(
|
|
9048
|
+
children: [/* @__PURE__ */ Z(Ui, {
|
|
9049
9049
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
9050
9050
|
children: [i ? /* @__PURE__ */ X(po, {
|
|
9051
9051
|
module: i,
|
|
@@ -9053,7 +9053,7 @@ function sh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9053
9053
|
}) : null, n]
|
|
9054
9054
|
}), /* @__PURE__ */ X(ir, {
|
|
9055
9055
|
variant: "outline",
|
|
9056
|
-
icon:
|
|
9056
|
+
icon: si,
|
|
9057
9057
|
onClick: t,
|
|
9058
9058
|
label: "Close modal",
|
|
9059
9059
|
hideLabel: !0
|
|
@@ -9143,14 +9143,14 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9143
9143
|
o && o(!l);
|
|
9144
9144
|
}, [o, l]);
|
|
9145
9145
|
let f = e?.includes(".mp4");
|
|
9146
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
9146
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Ni, {
|
|
9147
9147
|
style: { width: a },
|
|
9148
9148
|
className: "relative bg-f1-background p-1",
|
|
9149
|
-
children: [/* @__PURE__ */ Z(
|
|
9149
|
+
children: [/* @__PURE__ */ Z(fi, { children: [i ? /* @__PURE__ */ X("div", {
|
|
9150
9150
|
className: "absolute right-2 top-2 z-10",
|
|
9151
9151
|
children: /* @__PURE__ */ X(B, {
|
|
9152
9152
|
variant: "ghost",
|
|
9153
|
-
icon:
|
|
9153
|
+
icon: si,
|
|
9154
9154
|
size: "sm",
|
|
9155
9155
|
hideLabel: !0,
|
|
9156
9156
|
onClick: d,
|
|
@@ -9176,7 +9176,7 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9176
9176
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
9177
9177
|
children: n
|
|
9178
9178
|
})]
|
|
9179
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
9179
|
+
})] })] }), s ? /* @__PURE__ */ X(gi, {
|
|
9180
9180
|
className: "p-3",
|
|
9181
9181
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(D, {
|
|
9182
9182
|
label: e.label,
|
|
@@ -9199,7 +9199,7 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9199
9199
|
var dh = I(uh), fh = ({ onDismiss: e }) => {
|
|
9200
9200
|
let { actions: t } = L();
|
|
9201
9201
|
return /* @__PURE__ */ X(B, {
|
|
9202
|
-
icon:
|
|
9202
|
+
icon: si,
|
|
9203
9203
|
label: t.close,
|
|
9204
9204
|
hideLabel: !0,
|
|
9205
9205
|
variant: "outline",
|
|
@@ -9290,7 +9290,7 @@ hh.displayName = "UpsellingBanner";
|
|
|
9290
9290
|
var gh = I(hh);
|
|
9291
9291
|
//#endregion
|
|
9292
9292
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
9293
|
-
function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
9293
|
+
function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Br, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
9294
9294
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
9295
9295
|
t(e), h && h();
|
|
9296
9296
|
}, w = async (e) => {
|
|
@@ -9350,9 +9350,9 @@ function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9350
9350
|
}
|
|
9351
9351
|
var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
9352
9352
|
let a = L(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
9353
|
-
return /* @__PURE__ */ Z(
|
|
9353
|
+
return /* @__PURE__ */ Z(Ni, {
|
|
9354
9354
|
className: "flex flex-col overflow-hidden",
|
|
9355
|
-
children: [/* @__PURE__ */ Z(
|
|
9355
|
+
children: [/* @__PURE__ */ Z(fi, {
|
|
9356
9356
|
className: "flex flex-col gap-4 p-0",
|
|
9357
9357
|
children: [/* @__PURE__ */ X("div", {
|
|
9358
9358
|
className: z("overflow-hidden rounded-lg border border-f1-border", "ring-1 ring-f1-border/50 bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary"),
|
|
@@ -9367,7 +9367,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9367
9367
|
children: n
|
|
9368
9368
|
})]
|
|
9369
9369
|
})]
|
|
9370
|
-
}), /* @__PURE__ */ X(
|
|
9370
|
+
}), /* @__PURE__ */ X(gi, {
|
|
9371
9371
|
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",
|
|
9372
9372
|
children: i ? /* @__PURE__ */ X(B, {
|
|
9373
9373
|
variant: "default",
|
|
@@ -9414,7 +9414,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9414
9414
|
})
|
|
9415
9415
|
})]
|
|
9416
9416
|
}), xh = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
9417
|
-
let o = L()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
9417
|
+
let o = L()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Jr, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
9418
9418
|
u,
|
|
9419
9419
|
r,
|
|
9420
9420
|
c
|
|
@@ -9429,9 +9429,9 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9429
9429
|
i,
|
|
9430
9430
|
a
|
|
9431
9431
|
]);
|
|
9432
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
9432
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Ni, {
|
|
9433
9433
|
className: "flex flex-col overflow-hidden",
|
|
9434
|
-
children: [/* @__PURE__ */ Z(
|
|
9434
|
+
children: [/* @__PURE__ */ Z(Vi, {
|
|
9435
9435
|
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",
|
|
9436
9436
|
children: [/* @__PURE__ */ X("div", {
|
|
9437
9437
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -9444,7 +9444,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9444
9444
|
className: "text-base font-semibold text-f1-foreground",
|
|
9445
9445
|
children: o
|
|
9446
9446
|
})]
|
|
9447
|
-
}), /* @__PURE__ */ X(
|
|
9447
|
+
}), /* @__PURE__ */ X(fi, {
|
|
9448
9448
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
9449
9449
|
children: t.map((e) => /* @__PURE__ */ X(bh, {
|
|
9450
9450
|
item: e,
|
|
@@ -9455,9 +9455,9 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9455
9455
|
});
|
|
9456
9456
|
}, Sh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
9457
9457
|
let a = L()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
9458
|
-
return /* @__PURE__ */ Z(
|
|
9458
|
+
return /* @__PURE__ */ Z(Ni, {
|
|
9459
9459
|
className: "flex flex-col overflow-hidden",
|
|
9460
|
-
children: [/* @__PURE__ */ X(
|
|
9460
|
+
children: [/* @__PURE__ */ X(fi, {
|
|
9461
9461
|
className: "flex flex-col gap-3 p-0",
|
|
9462
9462
|
children: /* @__PURE__ */ Z("div", {
|
|
9463
9463
|
className: "flex items-start gap-3",
|
|
@@ -9479,7 +9479,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9479
9479
|
})]
|
|
9480
9480
|
})]
|
|
9481
9481
|
})
|
|
9482
|
-
}), /* @__PURE__ */ X(
|
|
9482
|
+
}), /* @__PURE__ */ X(gi, {
|
|
9483
9483
|
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",
|
|
9484
9484
|
children: r ? /* @__PURE__ */ X(B, {
|
|
9485
9485
|
variant: "outline",
|
|
@@ -9497,12 +9497,12 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9497
9497
|
});
|
|
9498
9498
|
}, Ch = ({ onAction: e, actionHref: t }) => {
|
|
9499
9499
|
let n = L()?.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";
|
|
9500
|
-
return /* @__PURE__ */ Z(
|
|
9500
|
+
return /* @__PURE__ */ Z(Ni, {
|
|
9501
9501
|
className: "flex flex-col overflow-hidden",
|
|
9502
|
-
children: [/* @__PURE__ */ Z(
|
|
9502
|
+
children: [/* @__PURE__ */ Z(fi, {
|
|
9503
9503
|
className: "flex flex-col gap-3 p-0",
|
|
9504
9504
|
children: [/* @__PURE__ */ X(V, {
|
|
9505
|
-
icon:
|
|
9505
|
+
icon: sa,
|
|
9506
9506
|
size: "lg"
|
|
9507
9507
|
}), /* @__PURE__ */ Z("div", {
|
|
9508
9508
|
className: "flex flex-col gap-0.5",
|
|
@@ -9514,7 +9514,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9514
9514
|
children: i
|
|
9515
9515
|
})]
|
|
9516
9516
|
})]
|
|
9517
|
-
}), /* @__PURE__ */ X(
|
|
9517
|
+
}), /* @__PURE__ */ X(gi, {
|
|
9518
9518
|
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",
|
|
9519
9519
|
children: t ? /* @__PURE__ */ X(B, {
|
|
9520
9520
|
variant: "default",
|
|
@@ -9560,9 +9560,9 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9560
9560
|
e,
|
|
9561
9561
|
t
|
|
9562
9562
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
9563
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
9563
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Ni, {
|
|
9564
9564
|
className: "flex flex-col overflow-hidden",
|
|
9565
|
-
children: [/* @__PURE__ */ Z(
|
|
9565
|
+
children: [/* @__PURE__ */ Z(fi, {
|
|
9566
9566
|
className: "flex flex-col gap-4",
|
|
9567
9567
|
children: [/* @__PURE__ */ X("h3", {
|
|
9568
9568
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -9579,7 +9579,7 @@ var vh = I(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9579
9579
|
})
|
|
9580
9580
|
}, e.id))
|
|
9581
9581
|
})]
|
|
9582
|
-
}), /* @__PURE__ */ Z(
|
|
9582
|
+
}), /* @__PURE__ */ Z(gi, {
|
|
9583
9583
|
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",
|
|
9584
9584
|
children: [/* @__PURE__ */ X("div", {
|
|
9585
9585
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -10102,7 +10102,7 @@ function sg(e, t) {
|
|
|
10102
10102
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
10103
10103
|
}
|
|
10104
10104
|
async function cg(e, t, n, { keys: r, preamble: i } = {}) {
|
|
10105
|
-
sg(await
|
|
10105
|
+
sg(await fr([{
|
|
10106
10106
|
name: "Data",
|
|
10107
10107
|
rows: ag({
|
|
10108
10108
|
columns: e,
|
|
@@ -10124,7 +10124,7 @@ function ug(e, t, n) {
|
|
|
10124
10124
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
10125
10125
|
}
|
|
10126
10126
|
async function dg(e, t) {
|
|
10127
|
-
sg(await
|
|
10127
|
+
sg(await fr(e.map((e) => ({
|
|
10128
10128
|
name: e.name,
|
|
10129
10129
|
rows: ag(e)
|
|
10130
10130
|
}))), `${t}.xlsx`);
|
|
@@ -10188,24 +10188,24 @@ function mg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
10188
10188
|
...t.type === "matrix" ? [] : [
|
|
10189
10189
|
{
|
|
10190
10190
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
10191
|
-
icon:
|
|
10191
|
+
icon: jr,
|
|
10192
10192
|
onClick: () => a("png")
|
|
10193
10193
|
},
|
|
10194
10194
|
{
|
|
10195
10195
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
10196
|
-
icon:
|
|
10196
|
+
icon: jr,
|
|
10197
10197
|
onClick: () => a("jpg")
|
|
10198
10198
|
},
|
|
10199
10199
|
{ type: "separator" }
|
|
10200
10200
|
],
|
|
10201
10201
|
{
|
|
10202
10202
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
10203
|
-
icon:
|
|
10203
|
+
icon: vr,
|
|
10204
10204
|
onClick: s
|
|
10205
10205
|
},
|
|
10206
10206
|
{
|
|
10207
10207
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
10208
|
-
icon:
|
|
10208
|
+
icon: vr,
|
|
10209
10209
|
onClick: c
|
|
10210
10210
|
}
|
|
10211
10211
|
] : [], [
|
|
@@ -10436,7 +10436,7 @@ function yg({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
10436
10436
|
//#endregion
|
|
10437
10437
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
10438
10438
|
function bg({ 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: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
10439
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = L(), { enabled: M, setPendingQuote: ee, setOpen: N, focusChatInput: te } =
|
|
10439
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = L(), { enabled: M, setPendingQuote: ee, setOpen: N, focusChatInput: te } = kr(), ne = (e) => {
|
|
10440
10440
|
T(e), e || A(!1);
|
|
10441
10441
|
}, re = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ie = re.length > 0, P = u && f && h, ae = g && g.length > 0, oe = !!_ && _.trim().length > 0, se = !!C, ce = !d && e.trim().length > 0 && (p ? !!h : M), le = ce || ie || P || ae || oe, ue = !!l || se || !!le, de = !v && (w || E), fe = z("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", de && "delay-0 !opacity-100"), F = z("-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]", de && "delay-0 !grid-cols-[1fr]"), pe = yg({
|
|
10442
10442
|
title: e,
|
|
@@ -10567,7 +10567,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10567
10567
|
}) : null,
|
|
10568
10568
|
se ? /* @__PURE__ */ X(ir, {
|
|
10569
10569
|
label: v ? j.actions.collapse : j.actions.expand,
|
|
10570
|
-
icon: v ?
|
|
10570
|
+
icon: v ? Qr : oa,
|
|
10571
10571
|
variant: "ghost",
|
|
10572
10572
|
size: "md",
|
|
10573
10573
|
hideLabel: !0,
|
|
@@ -10595,7 +10595,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10595
10595
|
onCloseAutoFocus: _e,
|
|
10596
10596
|
children: k && oe ? /* @__PURE__ */ X("div", {
|
|
10597
10597
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
10598
|
-
children: /* @__PURE__ */ X(
|
|
10598
|
+
children: /* @__PURE__ */ X(Oi, {
|
|
10599
10599
|
content: _,
|
|
10600
10600
|
format: "markdown"
|
|
10601
10601
|
})
|
|
@@ -10638,7 +10638,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10638
10638
|
className: "mx-1 rounded-sm px-2",
|
|
10639
10639
|
children: /* @__PURE__ */ Z("div", {
|
|
10640
10640
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
10641
|
-
children: [/* @__PURE__ */ X(V, { icon:
|
|
10641
|
+
children: [/* @__PURE__ */ X(V, { icon: Ki }), /* @__PURE__ */ X("span", {
|
|
10642
10642
|
className: "flex-1 text-base font-medium",
|
|
10643
10643
|
children: j.ai.dataDownload.title
|
|
10644
10644
|
})]
|
|
@@ -10660,7 +10660,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10660
10660
|
className: z("text-f1-foreground-critical"),
|
|
10661
10661
|
children: /* @__PURE__ */ Z("div", {
|
|
10662
10662
|
className: "flex w-full flex-row items-center gap-2",
|
|
10663
|
-
children: [/* @__PURE__ */ X(V, { icon:
|
|
10663
|
+
children: [/* @__PURE__ */ X(V, { icon: Yi }), /* @__PURE__ */ X("span", {
|
|
10664
10664
|
className: "flex-1",
|
|
10665
10665
|
children: j.actions.delete
|
|
10666
10666
|
})]
|
|
@@ -10794,39 +10794,39 @@ function Mg(e) {
|
|
|
10794
10794
|
{
|
|
10795
10795
|
label: e.dataChart.barChartVertical,
|
|
10796
10796
|
value: "bar-vertical",
|
|
10797
|
-
icon:
|
|
10797
|
+
icon: aa,
|
|
10798
10798
|
type: "bar",
|
|
10799
10799
|
orientation: "vertical"
|
|
10800
10800
|
},
|
|
10801
10801
|
{
|
|
10802
10802
|
label: e.dataChart.barChartHorizontal,
|
|
10803
10803
|
value: "bar-horizontal",
|
|
10804
|
-
icon:
|
|
10804
|
+
icon: la,
|
|
10805
10805
|
type: "bar",
|
|
10806
10806
|
orientation: "horizontal"
|
|
10807
10807
|
},
|
|
10808
10808
|
{
|
|
10809
10809
|
label: e.dataChart.lineChart,
|
|
10810
10810
|
value: "line",
|
|
10811
|
-
icon:
|
|
10811
|
+
icon: ai,
|
|
10812
10812
|
type: "line"
|
|
10813
10813
|
},
|
|
10814
10814
|
{
|
|
10815
10815
|
label: e.dataChart.funnel,
|
|
10816
10816
|
value: "funnel",
|
|
10817
|
-
icon:
|
|
10817
|
+
icon: zr,
|
|
10818
10818
|
type: "funnel"
|
|
10819
10819
|
},
|
|
10820
10820
|
{
|
|
10821
10821
|
label: e.dataChart.pieChart,
|
|
10822
10822
|
value: "pie",
|
|
10823
|
-
icon:
|
|
10823
|
+
icon: fa,
|
|
10824
10824
|
type: "pie"
|
|
10825
10825
|
},
|
|
10826
10826
|
{
|
|
10827
10827
|
label: e.dataChart.table,
|
|
10828
10828
|
value: "table",
|
|
10829
|
-
icon:
|
|
10829
|
+
icon: vr,
|
|
10830
10830
|
type: "table"
|
|
10831
10831
|
}
|
|
10832
10832
|
];
|
|
@@ -11021,7 +11021,7 @@ function Bg(e) {
|
|
|
11021
11021
|
return jh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
11022
11022
|
}
|
|
11023
11023
|
function Vg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
11024
|
-
let f = L(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
11024
|
+
let f = L(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = kr(), y = !jh(e.chart), b = y ? Ng : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = hg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Ig(e, T) : void 0, [
|
|
11025
11025
|
e,
|
|
11026
11026
|
T,
|
|
11027
11027
|
y
|
|
@@ -11256,11 +11256,11 @@ function Yg({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
11256
11256
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
11257
11257
|
return K(() => e ? [{
|
|
11258
11258
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
11259
|
-
icon:
|
|
11259
|
+
icon: vr,
|
|
11260
11260
|
onClick: l
|
|
11261
11261
|
}, {
|
|
11262
11262
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
11263
|
-
icon:
|
|
11263
|
+
icon: vr,
|
|
11264
11264
|
onClick: u
|
|
11265
11265
|
}] : [], [
|
|
11266
11266
|
e,
|
|
@@ -11588,7 +11588,7 @@ function u_({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
11588
11588
|
if (Math.hypot(t.clientX - n, t.clientY - r) < a_) return;
|
|
11589
11589
|
i = !0, E(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
11590
11590
|
let a = A.current.get(e)?.title ?? "";
|
|
11591
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
11591
|
+
a && window.dispatchEvent(new CustomEvent(Ur, { detail: {
|
|
11592
11592
|
id: e,
|
|
11593
11593
|
title: a,
|
|
11594
11594
|
onAskAi: l,
|
|
@@ -11602,7 +11602,7 @@ function u_({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
11602
11602
|
}, o = (e) => {
|
|
11603
11603
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", c), te.current = null;
|
|
11604
11604
|
let t = j.current, n = M.current;
|
|
11605
|
-
e && i && t && n && ne(t, n), j.current = null, M.current = null, N.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(
|
|
11605
|
+
e && i && t && n && ne(t, n), j.current = null, M.current = null, N.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(Vr));
|
|
11606
11606
|
}, s = (e) => {
|
|
11607
11607
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), M.current = re(e.clientX, e.clientY)), o(!0);
|
|
11608
11608
|
}, c = () => o(!1);
|
|
@@ -11783,7 +11783,7 @@ function d_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11783
11783
|
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",
|
|
11784
11784
|
"aria-label": "Drag to reorder",
|
|
11785
11785
|
children: /* @__PURE__ */ X(V, {
|
|
11786
|
-
icon:
|
|
11786
|
+
icon: pa,
|
|
11787
11787
|
size: "xs"
|
|
11788
11788
|
})
|
|
11789
11789
|
}) : null, s]
|
|
@@ -11953,10 +11953,10 @@ function T_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11953
11953
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11954
11954
|
function E_({ onExportExcel: e, isExporting: t }) {
|
|
11955
11955
|
let { t: n } = L();
|
|
11956
|
-
return /* @__PURE__ */ X(
|
|
11956
|
+
return /* @__PURE__ */ X(xr, {
|
|
11957
11957
|
items: [{
|
|
11958
11958
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11959
|
-
icon:
|
|
11959
|
+
icon: Ki,
|
|
11960
11960
|
onClick: t ? () => {} : e
|
|
11961
11961
|
}],
|
|
11962
11962
|
icon: ec
|
|
@@ -12928,7 +12928,7 @@ var xv = ({ onClose: e }) => {
|
|
|
12928
12928
|
className: "dark flex-shrink-0",
|
|
12929
12929
|
children: /* @__PURE__ */ X(B, {
|
|
12930
12930
|
variant: "outline",
|
|
12931
|
-
icon:
|
|
12931
|
+
icon: si,
|
|
12932
12932
|
size: "sm",
|
|
12933
12933
|
hideLabel: !0,
|
|
12934
12934
|
onClick: e,
|
|
@@ -12945,7 +12945,7 @@ var xv = ({ onClose: e }) => {
|
|
|
12945
12945
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12946
12946
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12947
12947
|
onClick: () => n(e),
|
|
12948
|
-
children: /* @__PURE__ */ X(
|
|
12948
|
+
children: /* @__PURE__ */ X(ea, {
|
|
12949
12949
|
href: e.href,
|
|
12950
12950
|
children: e.label
|
|
12951
12951
|
})
|
|
@@ -13013,7 +13013,7 @@ var xv = ({ onClose: e }) => {
|
|
|
13013
13013
|
}) : g && /* @__PURE__ */ X("div", {
|
|
13014
13014
|
className: "flex-shrink-0",
|
|
13015
13015
|
"aria-hidden": "true",
|
|
13016
|
-
children: /* @__PURE__ */ X(
|
|
13016
|
+
children: /* @__PURE__ */ X(Gr, {
|
|
13017
13017
|
type: g,
|
|
13018
13018
|
size: "sm"
|
|
13019
13019
|
})
|
|
@@ -13388,7 +13388,7 @@ var Fv = z("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13388
13388
|
newButtonStyles: f,
|
|
13389
13389
|
children: /* @__PURE__ */ X(ay, {
|
|
13390
13390
|
...t,
|
|
13391
|
-
children: /* @__PURE__ */ X(
|
|
13391
|
+
children: /* @__PURE__ */ X(Rr, {
|
|
13392
13392
|
handler: l,
|
|
13393
13393
|
children: /* @__PURE__ */ X(va, { children: /* @__PURE__ */ X(ft, {
|
|
13394
13394
|
...h,
|
|
@@ -13408,4 +13408,4 @@ var Fv = z("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13408
13408
|
})
|
|
13409
13409
|
});
|
|
13410
13410
|
//#endregion
|
|
13411
|
-
export { eo as AiChatTranslationsProvider, g as AreaChart, Io as Await, p as BarChart, Be as BarChartSkeleton, Wt as CardSelectableContainer, ce as CategoryBarChart,
|
|
13411
|
+
export { eo as AiChatTranslationsProvider, g as AreaChart, Io as Await, p as BarChart, Be as BarChartSkeleton, Wt as CardSelectableContainer, ce as CategoryBarChart, qr as ChatSpinner, as as Chip, Fa as CollapsibleGroup, bt as ComboChart, Ot as DATA_COLLECTION_URL_PARAMS, dt as DATA_COLLECTION_URL_PARAM_PREFIX, Hl as Dashboard, Te as DataChartEmptyStateView, hn as DataTestIdWrapper, St as DndProvider, Hi as DropOverlay, tr as EmojiImage, rd as F0Accordion, Xe as F0ActionBar, Wi as F0ActionItem, Hr as F0AiChat, Za as F0AiChatHeader, Ya as F0AiChatHistory, Sr as F0AiChatProvider, Sa as F0AiChatTextArea, no as F0AiChatUsageLimitsButton, ya as F0AiFileAttachments, ji as F0AiFilePreviewsProvider, Xr as F0AiFormRegistryProvider, za as F0AiInsightCard, Qa as F0AiMask, La as F0AiMessageSources, $a as F0AiMessagesContainer, yr as F0AiPong, Xa as F0AiProcessingOverlay, qa as F0AiProposalCard, Ia as F0AiTableCard, xc as F0Alert, I_ as F0AnalyticsDashboard, li as F0AudioPlayer, mi as F0AudioPlayerCard, Ma as F0AuraVoiceAnimation, To as F0Avatar, Gr as F0AvatarAlert, Mo as F0AvatarCompany, Ir as F0AvatarDate, mo as F0AvatarEmoji, No as F0AvatarFile, jo as F0AvatarIcon, Ao as F0AvatarList, po as F0AvatarModule, vo as F0AvatarPerson, So as F0AvatarTeam, qu as F0BigNumber, Ch as F0BookAMeetingCard, H as F0Box, B as F0Button, ca as F0ButtonDropdown, Jo as F0ButtonToggle, ha as F0CanvasCard, Zi as F0CanvasPanel, Yr as F0Card, ti as F0CardRow, ga as F0ChatComposer, ws as F0Checkbox, od as F0ChipList, to as F0ClarifyingPanel, Zt as F0DataChart, Pe as F0DatePicker, O as F0DatePickerInline, yh as F0DemoCard, da as F0Dialog, Ae as F0DialogAlikeContext, b as F0DialogAlikeProvider, Yo as F0DialogContext, gs as F0DialogProvider, wc as F0DocumentViewer, pd as F0Drawer, pn as F0DurationInput, Gs as F0EventCatcherProvider, xh as F0FAQCard, Wr as F0FileItem, gd as F0FilterPickerContent, d as F0Form, Ad as F0FormField, Ml as F0GridStack, Ra as F0HILActionConfirmation, m as F0Heading, V as F0Icon, ea as F0Link, Bu as F0MatrixChart, Sh as F0ModuleCard, an as F0NotesTextEditor, ve as F0NotesTextEditorSkeleton, ee as F0NumberInput, E as F0NumberInputInline, Cr as F0OneIcon, Ci as F0OneSwitch, Sc as F0PdfViewer, cy as F0Provider, wh as F0QuestionCardMultiStep, Oi as F0RichTextDisplay, ie as F0RichTextEditor, Ds as F0SearchInput, Rs as F0Select, te as F0SelectInline, _f as F0Slider, Nf as F0TableOfContentPopover, Lo as F0TagAlert, Ps as F0TagBalance, Qo as F0TagCompany, Uo as F0TagDot, Ws as F0TagList, ps as F0TagPerson, Go as F0TagRaw, Xs as F0TagStatus, ls as F0TagTeam, bc as F0Text, de as F0TextAreaInput, P as F0TextAreaInputInline, Ai as F0TextInput, ne as F0TextInputInline, Se as F0TimelineRow, Ec as F0VideoPlayer, $d as F0WizardForm, Ts as F1SearchBox, _ as FILE_TYPES, br as FileItem, va as FormCardValueFormatterProvider, $t as FunnelChartSkeleton, Do as GROUP_ID_SYMBOL, ko as GROUP_KEY_SEPARATOR, dn as GaugeChartSkeleton, Ke as HeatmapChartSkeleton, iu as HomeLayout, l as InlineFieldRow, nn as InlineFieldRowList, ta as Input, tu as Layout, o as LineChart, cn as LineChartSkeleton, ct as MAX_URL_FILTER_VALUES, Hu as MatrixChartSkeleton, c as NotesTextEditor, tn as NotesTextEditorSkeleton, ge as NumberInput, ys as OneCalendar, or as OneEllipsis, y as OneEmptyState, Fs as OneFilterPicker, _t as PieChart, xe as PieChartSkeleton, Er as PongBall, it as PrivacyModeProvider, oh as ProductBlankslate, Qt as ProductCard, lh as ProductModal, dh as ProductWidget, re as ProgressBarChart, ae as RadarChart, u as RadarChartSkeleton, ur as RichTextDisplay, ue as RichTextEditor, rn as ScatterChartSkeleton, nu as StandardLayout, hm as SurveyAllQuestionsLoadingSkeleton, Xm as SurveyAnsweringForm, sm as SurveyFormBuilder, eh as SurveySampleQuestion, gm as SurveySteppedLoadingSkeleton, ds as Tag, Ys as TagCounter, v as Textarea, Ua as ThreadItem, Ka as ThreadListSkeleton, ny as ToastProvider, ru as TwoColumnLayout, T as UPLOAD_INPUT_ID, N as UpsellRequestResponseDialog, mh as UpsellingAlert, gh as UpsellingBanner, D as UpsellingButton, vh as UpsellingPopover, fe as VerticalBarChart, Us as WeekStartDay, Oa as WelcomeScreenCardsRow, Ct as actionBarStatuses, xa as actionItemStatuses, Kr as adaptDataAdapterToInfiniteScroll, Va as aiChatFileFromShowFilesItem, wa as aiChatFileFromUploadedFile, Ta as aiChatFilesFromMessage, Da as aiChatMessageText, _a as aiTranslations, ld as alertVariantOptions, Zu as audioPlayerSizes, au as avatarVariants, Ve as buildDataCollectionUrlParams, gn as buildTranslations, Xu as buttonDropdownModes, Yu as buttonDropdownSizes, Ju as buttonDropdownVariants, Rl as buttonSizes, mt as buttonToggleColors, Ue as buttonToggleSizes, Nt as buttonToggleVariants, Ll as buttonVariants, wi as cardAlertVariants, cr as cardImageAspectRatios, pi as cardImageFits, Qi as cardImageSizes, Ii as cardLayouts, Fo as chartColorTokens, Ja as chatHistoryIndicators, Ba as chatThreadStatuses, Zs as chipVariants, Rf as computeSectionEndIds, Tc as configurePdfWorker, Wa as contentTypes, Xt as createAtlaskitDriver, Ho as createDataSourceDefinition, bd as createF0FormDefinitionTester, yd as createF0FormTester, Fl as createPageLayoutBlock, Il as createPageLayoutBlockGroup, Ca as createPersonMentionSource, ud as dataCollectionLocalStorageHandler, sd as datePickerInlineDismissReasons, cd as datepickerSizes, fo as defaultTranslations, Lr as defineAvailableForm, _d as describeFormSchema, M as dialog, M as dialogs, Rt as drawers, $r as durationInputSizes, ia as durationUnits, Ei as escapeUserText, se as evaluateRenderIf, yn as experimental, Or as f0FileItemSizes, Xi as f0FormField, Fi as fieldsToSeconds, Pf as flattenElements, ii as formatPlaybackTime, of as forms, h as generateAnchorId, cs as getAnimationVariants, pr as getDataCollectionStorageKey, Zo as getDataSourcePaginationType, ar as getEmojiLabel, ci as getF0Config, Hs as getGranularityDefinition, js as getGranularityDefinitions, Js as getGranularitySimpleDefinition, yt as getSchemaDefinition, Is as granularityDefinitions, Mi as hasF0Config, co as iconSets, na as inferFieldType, Lf as injectSectionEnds, Eo as isInfiniteScrollPagination, Oo as isPageBasedPagination, di as isZodType, Qu as linkVariants, ba as markdownRenderers, Fr as mergeDataCollectionFilters, wo as modules, ja as oneIconSizes, Co as paginationTotals, en as parseDataCollectionUrlParams, Cc as pdfScales, Vt as predefinedPresets, Vs as rangeSeparator, _r as readDataCollectionStorage, If as reconstructElements, wr as resolveDataCollectionFilters, Os as resolveGranularityDefinition, At as resolveItemNeighbors, tt as resolveWindowNeighbors, Si as secondsToFields, vi as secondsToVisibleFields, sf as selectInlineDismissReasons, Me as selectSizes, Le as selectVariants, fn as setDataCollectionUrlParams, cf as sliderTooltipModes, $m as surveyDraftSaveTriggers, qe as syncDataCollectionUrlParams, xf as tagDotColors, yf as timelineRowApproverStatuses, vf as timelineRowStatuses, bf as timelineRowTagVariants, Ht as toasts, Bi as unwrapZodSchema, Ga as usageLimitsPopoverSides, kr as useAiChat, ka as useAiChatTranslations, ua as useAudioPlayer, Pa as useCanvasEntity, Na as useChatHistory, yo as useData, Ns as useDataSource, n as useDataSourceItemNavigation, ra as useDerivedTranscription, Mt as useDndEvents, Ut as useDraggable, Ye as useDroppableList, rr as useEmojiConfetti, lr as useF0AiFormRegistry, ms as useF0Dialog, j as useF0DialogAlikeContext, be as useF0Form, kt as useF0FormDefinition, Ea as useFormCardValueFormatter, sy as useFormComponent, fs as useGroups, io as useIconSet, L_ as useIsDesktop, R_ as useIsMobile, Jt as useItemNeighbors, Pt as usePrivacyMode, nr as useReducedMotion, a as useSchemaDefinition, Wo as useSelectable, Ha as useSetFormCardValueFormatter, Aa as useToolCallId, ao as useXRay, I as withDataTestId, ln as writeDataCollectionStorage };
|