@factorialco/f0-react 16.7.1 → 16.8.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-DxxGStkI.js → ArchiveThumbnail-BKvu3lcu.js} +3 -3
- package/dist/{ArchiveViewer-nuxVYoSA.js → ArchiveViewer-PokpRAw4.js} +5 -5
- package/dist/{ChatPostComposerDialog-B-n-Hqds.js → ChatPostComposerDialog-D-5viWxQ.js} +3 -3
- package/dist/{CoachmarkProvider-BGx__lPw.js → CoachmarkProvider-C47BcI7u.js} +14355 -14354
- package/dist/{CodeThumbnail-DqH5gHZu.js → CodeThumbnail-CroXmUci.js} +1 -1
- package/dist/{CodeViewer-T59a8NjB.js → CodeViewer-DVTJp_wA.js} +6 -6
- package/dist/{DocumentToolbar-Dylh5Ap4.js → DocumentToolbar-BANw77k3.js} +5 -5
- package/dist/{DocxViewer-7n-AYpP4.js → DocxViewer-CevgUJLK.js} +3 -3
- package/dist/{F0AiProcessingOverlay-ODrQ_8Bz.js → F0AiProcessingOverlay-DI6jMuCD.js} +339 -339
- package/dist/{F0Alert-Ck3zBYdd.js → F0Alert-ieGe_wih.js} +7 -7
- package/dist/F0AudioPlayer-uMvUIjPA.js +2 -0
- package/dist/{F0Button-K-Tsj-wR.js → F0Button-CfK_6Dfx.js} +3 -3
- package/dist/{F0CanvasPanel-8sSInjUf.js → F0CanvasPanel-C4ph6y28.js} +4195 -4195
- package/dist/{F0DocumentViewer-BrWkziLK.js → F0DocumentViewer-CB-M5vkX.js} +4 -4
- package/dist/{F0DocumentViewer-CAHZnuNS.js → F0DocumentViewer-NYnR9AyB.js} +1 -1
- package/dist/{F0Icon-BBCAaVEn.js → F0Icon-BPx-9kOK.js} +1 -1
- package/dist/{F0Map-DvLUX9Ft.js → F0Map-CGd46RFu.js} +13 -13
- package/dist/{F0Select-FocuIygc.js → F0Select-mxxXMo_K.js} +10 -12
- package/dist/{F0Text-40EQGsxS.js → F0Text-1893f70w.js} +2 -2
- package/dist/F0VideoPlayer-BA5EvMse.js +1 -0
- package/dist/{F0VideoPlayer-7r47FGZM.js → F0VideoPlayer-C0z6zvj3.js} +20 -20
- package/dist/{HtmlThumbnail-B9Gz3J8v.js → HtmlThumbnail-BXothSJU.js} +1 -1
- package/dist/{HtmlViewer-CCBntGYz.js → HtmlViewer-0nFbOUq8.js} +9 -9
- package/dist/{LayoutGroup-B8iuK3D7.js → LayoutGroup-CAwOHvO6.js} +1 -1
- package/dist/{Map-D-WSG3i2.js → Map-B08PBTa7.js} +10 -10
- package/dist/{PdfThumbnail-etMVzOej.js → PdfThumbnail-D7J4iWRY.js} +1 -1
- package/dist/{PdfViewer-N8tnidrx.js → PdfViewer-cW_JCDxU.js} +11 -11
- package/dist/{SandboxedHtmlFrame-DYYjEWYn.js → SandboxedHtmlFrame-jclBkupb.js} +2 -2
- package/dist/{SheetViewer-DyNij5aV.js → SheetViewer-DqoHh8uJ.js} +5 -5
- package/dist/{TextViewer-Cb52tMok.js → TextViewer-Bj4KGv39.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +51 -7
- package/dist/{dist-jtkUGoUE.js → dist-BWgB2Pxk.js} +2 -2
- package/dist/{dist-Bqn2Tvbv.js → dist-CCGn12Jl.js} +1 -1
- package/dist/{dist-DQLaXxAV.js → dist-D12pKTJH.js} +1 -1
- package/dist/{dist-DT2eYug9.js → dist-DG8KKI8a.js} +1 -1
- package/dist/{dist-RnbZP6nJ.js → dist-DjDZq_T-.js} +4 -4
- package/dist/experimental.d.ts +122 -3
- package/dist/experimental.js +5738 -5299
- package/dist/{exports-DyepZL4X.d.ts → exports-DRNFj_kP.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +177 -177
- package/dist/{highlight-BmHT5bVt.js → highlight-CciFQ6gi.js} +1 -1
- package/dist/{i18n-provider-B3-P0gAN.js → i18n-provider-C-057er8.js} +1 -1
- package/dist/{i18n-provider-defaults-D4jZJwqk.js → i18n-provider-defaults-C660Phfh.js} +4 -0
- package/dist/{i18n-provider-defaults-DDg-0uul.d.ts → i18n-provider-defaults-ClM5fIad.d.ts} +4 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-Bon-AuSX.d.ts → index-Ccf5oVQR.d.ts} +13 -13
- package/dist/{maplibre-CBdPIfGt.js → maplibre-DSB7gj3I.js} +1 -1
- package/dist/{pdfWorker-GOiDQZal.js → pdfWorker-D4A-2BUo.js} +1 -1
- package/dist/{popover-Fe5Kn3Xb.js → popover-BVz3QY-0.js} +1 -1
- package/dist/{skeleton-C-H2S5ZI.js → skeleton-C__vPA8D.js} +1 -1
- package/dist/{toolbarStyles-BAunJtAw.js → toolbarStyles-umCmRgJJ.js} +1 -1
- package/dist/{types-B_RODWSZ.d.ts → types-DBhqq-Lu.d.ts} +2 -2
- package/dist/{useData-CKJGQ0mx.js → useData-CaY41foq.js} +20 -14
- package/package.json +1 -1
- package/dist/F0AudioPlayer-DadfbJQp.js +0 -2
- package/dist/F0VideoPlayer-CZ2o-kkq.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, Gt as x, Hn as S, Ht as C, I as w, In as T, It as E, Jn as D, Jr as O, Jt as k, Kn as A, Kr as j, Kt as M, Ln as N, Lt as P, M as F, Mn as I, Mr as ee, N as te, Nn as L, Nr as ne, O as re, On as ie, Or as ae, Ot as oe, P as se, Pn as ce, Pt as le, Q as ue, Qr as de, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, Sr as _e, T as ve, Tn as ye, Tr as be, Un as xe, Ut as Se, Vn as Ce, Vt as we, Wn as Te, Wr as Ee, Wt as De, Xn as Oe, Yn as ke, Yr as Ae, Yt as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _r as Ie, _t as Le, ai as Re, ar as ze, b as Be, bi as Ve, br as He, bt as Ue, c as We, cn as Ge, cr as Ke, d as qe, di as Je, dr as Ye, ei as Xe, en as Ze, er as Qe, et as $e, f as et, fi as tt, fr as nt, ft as rt, gr as it, gt as at, h as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, jr as mt, k as ht, kn as gt, kr as _t, l as vt, ln as yt, lr as bt, lt as xt, m as St, mr as Ct, mt as wt, ni as Tt, nn as Et, nr as Dt, on as Ot, or as kt, pi as At, pr as jt, qn as Mt, qr as Nt, qt as Pt, ri as Ft, rn as It, rr as Lt, s as Rt, sn as zt, sr as Bt, t as Vt, tn as Ht, tr as Ut, u as Wt, un as Gt, ur as Kt, v as qt, vr as Jt, vt as Yt, w as Xt, wi as Zt, wn as Qt, wr as $t, x as en, xi as tn, xn as nn, xr as rn, xt as an, y as on, yi as sn, yr as cn, yt as ln, zn as un, zt as dn } from "./CoachmarkProvider-
|
|
3
|
-
import { a as R, i as fn, n as pn, o as mn, r as z, t as hn } from "./i18n-provider-
|
|
4
|
-
import { n as gn, t as _n } from "./skeleton-
|
|
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, Gt as x, Hn as S, Ht as C, I as w, In as T, It as E, Jn as D, Jr as O, Jt as k, Kn as A, Kr as j, Kt as M, Ln as N, Lt as P, M as F, Mn as I, Mr as ee, N as te, Nn as L, Nr as ne, O as re, On as ie, Or as ae, Ot as oe, P as se, Pn as ce, Pt as le, Q as ue, Qr as de, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, Sr as _e, T as ve, Tn as ye, Tr as be, Un as xe, Ut as Se, Vn as Ce, Vt as we, Wn as Te, Wr as Ee, Wt as De, Xn as Oe, Yn as ke, Yr as Ae, Yt as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _r as Ie, _t as Le, ai as Re, ar as ze, b as Be, bi as Ve, br as He, bt as Ue, c as We, cn as Ge, cr as Ke, d as qe, di as Je, dr as Ye, ei as Xe, en as Ze, er as Qe, et as $e, f as et, fi as tt, fr as nt, ft as rt, gr as it, gt as at, h as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, jr as mt, k as ht, kn as gt, kr as _t, l as vt, ln as yt, lr as bt, lt as xt, m as St, mr as Ct, mt as wt, ni as Tt, nn as Et, nr as Dt, on as Ot, or as kt, pi as At, pr as jt, qn as Mt, qr as Nt, qt as Pt, ri as Ft, rn as It, rr as Lt, s as Rt, sn as zt, sr as Bt, t as Vt, tn as Ht, tr as Ut, u as Wt, un as Gt, ur as Kt, v as qt, vr as Jt, vt as Yt, w as Xt, wi as Zt, wn as Qt, wr as $t, x as en, xi as tn, xn as nn, xr as rn, xt as an, y as on, yi as sn, yr as cn, yt as ln, zn as un, zt as dn } from "./CoachmarkProvider-C47BcI7u.js";
|
|
3
|
+
import { a as R, i as fn, n as pn, o as mn, r as z, t as hn } from "./i18n-provider-C-057er8.js";
|
|
4
|
+
import { n as gn, t as _n } from "./skeleton-C__vPA8D.js";
|
|
5
5
|
import { A as vn, C as yn, D as bn, F as xn, I as Sn, L as B, M as Cn, N as wn, O as Tn, P as En, R as Dn, S as On, _ as kn, b as An, c as jn, f as Mn, g as Nn, h as Pn, j as Fn, k as In, l as Ln, m as Rn, p as zn, v as Bn, w as Vn, x as Hn, y as Un } from "./tooltip-NXXT56H4.js";
|
|
6
|
-
import { E as Wn, F as Gn, H as Kn, I as qn, K as Jn, N as Yn, P as Xn, Y as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, r as ir, t as V, x as ar } from "./F0Button-
|
|
7
|
-
import { $c as or, $i as sr, $o as cr, $r as lr, $s as ur, Ai as dr, An as fr, B as pr,
|
|
8
|
-
import { A as fa, B as pa, C as ma, D as ha, E as ga, F as _a, I as va, L as ya, M as ba, N as xa, O as Sa, P as Ca, R as wa, S as Ta, T as Ea, _ as Da, a as Oa, b as ka, c as Aa, d as ja, f as Ma, g as Na, h as Pa, i as Fa, j as Ia, k as La, l as Ra, m as za, n as Ba, o as Va, p as Ha, r as Ua, s as Wa, t as Ga, u as Ka, v as qa, w as Ja, x as Ya, y as Xa, z as Za } from "./F0AiProcessingOverlay-
|
|
9
|
-
import { a as Qa, i as $a, n as eo, o as to, r as no, t as H } from "./F0Icon-
|
|
10
|
-
import { t as ro } from "./i18n-provider-defaults-
|
|
11
|
-
import { F as io, G as ao, M as oo, S as so, W as co, a as lo, f as uo, g as fo, h as po, i as mo, j as ho, k as go, l as _o, m as vo, n as yo, r as bo, t as xo, u as So, x as Co, y as wo } from "./useData-
|
|
12
|
-
import { $ as To, An as Eo, Ar as Do, B as Oo, Bt as ko, Dn as Ao, Dt as jo, Er as Mo, Et as No, Ft as Po, G as Fo, H as Io, It as Lo, J as Ro, K as zo, Ln as Bo, Lt as Vo, Mt as Ho, Nt as Uo, On as Wo, Or as Go, Ot as Ko, Pt as qo, Q as Jo, R as Yo, Rt as Xo, St as Zo, Tr as Qo, U as $o, W as es, X as ts, Y as ns, _ as rs, _t as is, a as as, an as os, bt as ss, c as cs, d as ls, dr as us, dt as ds, g as fs, gr as ps, gt as ms, h as hs, it as gs, jt as _s, kr as vs, kt as ys, l as bs, lr as xs, m as Ss, nt as Cs, o as ws, pr as Ts, q as Es, r as Ds, rn as Os, rt as ks, s as As, t as js, tt as Ms, u as Ns, ut as Ps, v as Fs, vt as Is, w as Ls, wr as Rs, wt as zs, y as Bs, yt as Vs } from "./F0Select-
|
|
6
|
+
import { E as Wn, F as Gn, H as Kn, I as qn, K as Jn, N as Yn, P as Xn, Y as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, r as ir, t as V, x as ar } from "./F0Button-CfK_6Dfx.js";
|
|
7
|
+
import { $c as or, $i as sr, $o as cr, $r as lr, $s as ur, Ai as dr, An as fr, B as pr, Bc as mr, Bi as hr, Br as gr, Do as _r, En as vr, F as yr, Fi as br, Fn as xr, Gc as Sr, Gi as Cr, Gn as wr, Gr as Tr, H as Er, Ho as Dr, Hr as Or, I as kr, In as Ar, Ji as jr, Jn as Mr, Jo as Nr, Jr as Pr, Ki as Fr, Kn as Ir, Ko as Lr, L as Rr, Li as zr, Ln as Br, Mi as Vr, Mt as Hr, Nn as Ur, On as Wr, Oo as Gr, Pi as Kr, Qi as qr, Qr as Jr, R as Yr, Ri as Xr, Sc as Zr, Si as Qr, Sl as $r, Ss as ei, Tt as ti, U as ni, Ui as ri, Ur as ii, V as ai, Vr as oi, Wc as si, Wi as ci, Wr as li, Xi as ui, Xn as di, Xo as fi, Yi as pi, Yn as mi, Yo as hi, Zi as gi, Zn as _i, _c as vi, al as yi, bi, cs as xi, ea as Si, ei as Ci, el as wi, fc as Ti, fl as Ei, gc as Di, go as Oi, gs as ki, il as Ai, ji, jn as Mi, js as Ni, kn as Pi, lc as Fi, ls as Ii, mi as Li, n as Ri, na as zi, ni as Bi, nl as Vi, oc as Hi, pi as Ui, qi as Wi, qn as Gi, qr as Ki, qs as qi, qt as Ji, ra as Yi, ri as Xi, rl as Zi, sl as Qi, t as $i, ta as ea, ti as ta, tl as na, uc as ra, vi as ia, vs as aa, wi as oa, yi as sa, yl as ca, z as la, zi as ua, zr as da } from "./F0CanvasPanel-C4ph6y28.js";
|
|
8
|
+
import { A as fa, B as pa, C as ma, D as ha, E as ga, F as _a, I as va, L as ya, M as ba, N as xa, O as Sa, P as Ca, R as wa, S as Ta, T as Ea, _ as Da, a as Oa, b as ka, c as Aa, d as ja, f as Ma, g as Na, h as Pa, i as Fa, j as Ia, k as La, l as Ra, m as za, n as Ba, o as Va, p as Ha, r as Ua, s as Wa, t as Ga, u as Ka, v as qa, w as Ja, x as Ya, y as Xa, z as Za } from "./F0AiProcessingOverlay-DI6jMuCD.js";
|
|
9
|
+
import { a as Qa, i as $a, n as eo, o as to, r as no, t as H } from "./F0Icon-BPx-9kOK.js";
|
|
10
|
+
import { t as ro } from "./i18n-provider-defaults-C660Phfh.js";
|
|
11
|
+
import { F as io, G as ao, M as oo, S as so, W as co, a as lo, f as uo, g as fo, h as po, i as mo, j as ho, k as go, l as _o, m as vo, n as yo, r as bo, t as xo, u as So, x as Co, y as wo } from "./useData-CaY41foq.js";
|
|
12
|
+
import { $ as To, An as Eo, Ar as Do, B as Oo, Bt as ko, Dn as Ao, Dt as jo, Er as Mo, Et as No, Ft as Po, G as Fo, H as Io, It as Lo, J as Ro, K as zo, Ln as Bo, Lt as Vo, Mt as Ho, Nt as Uo, On as Wo, Or as Go, Ot as Ko, Pt as qo, Q as Jo, R as Yo, Rt as Xo, St as Zo, Tr as Qo, U as $o, W as es, X as ts, Y as ns, _ as rs, _t as is, a as as, an as os, bt as ss, c as cs, d as ls, dr as us, dt as ds, g as fs, gr as ps, gt as ms, h as hs, it as gs, jt as _s, kr as vs, kt as ys, l as bs, lr as xs, m as Ss, nt as Cs, o as ws, pr as Ts, q as Es, r as Ds, rn as Os, rt as ks, s as As, t as js, tt as Ms, u as Ns, ut as Ps, v as Fs, vt as Is, w as Ls, wr as Rs, wt as zs, y as Bs, yt as Vs } from "./F0Select-mxxXMo_K.js";
|
|
13
13
|
import { t as Hs } from "./Check-DAp9gCRh.js";
|
|
14
|
-
import { a as Us } from "./dist-
|
|
14
|
+
import { a as Us } from "./dist-CCGn12Jl.js";
|
|
15
15
|
import { t as Ws } from "./Ellipsis-CBouJQYY.js";
|
|
16
16
|
import { t as Gs } from "./LockLocked-gdodYvT_.js";
|
|
17
17
|
import { t as Ks } from "./purify.es-CJ7gZxxn.js";
|
|
18
|
-
import { J as qs, S as Js, a as Ys, b as Xs, d as Zs, f as Qs, g as $s, h as ec, i as tc, m as nc, p as rc, t as ic, w as ac, x as oc, y as sc } from "./popover-
|
|
19
|
-
import { i as cc, r as lc } from "./dist-
|
|
20
|
-
import { t as uc } from "./F0Text-
|
|
21
|
-
import { t as dc } from "./F0Alert-
|
|
22
|
-
import { n as fc, r as pc, t as mc } from "./F0DocumentViewer-
|
|
18
|
+
import { J as qs, S as Js, a as Ys, b as Xs, d as Zs, f as Qs, g as $s, h as ec, i as tc, m as nc, p as rc, t as ic, w as ac, x as oc, y as sc } from "./popover-BVz3QY-0.js";
|
|
19
|
+
import { i as cc, r as lc } from "./dist-BWgB2Pxk.js";
|
|
20
|
+
import { t as uc } from "./F0Text-1893f70w.js";
|
|
21
|
+
import { t as dc } from "./F0Alert-ieGe_wih.js";
|
|
22
|
+
import { n as fc, r as pc, t as mc } from "./F0DocumentViewer-CB-M5vkX.js";
|
|
23
23
|
import { t as hc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as gc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as gc } from "./F0VideoPlayer-C0z6zvj3.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
import _c, { Children as vc, Fragment as yc, createContext as bc, forwardRef as xc, isValidElement as Sc, memo as Cc, useCallback as W, useContext as wc, useEffect as G, useId as Tc, useImperativeHandle as Ec, useLayoutEffect as Dc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Oc } from "react";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -2928,7 +2928,7 @@ var jl = El("Dashboard", Al), Ml = R(gn("Dashboard", jl)), Nl = to({
|
|
|
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(Gr, {
|
|
2932
2932
|
items: Pl(d),
|
|
2933
2933
|
"data-testid": "actions-dropdown"
|
|
2934
2934
|
}) : null]
|
|
@@ -3113,7 +3113,7 @@ var Wl = xc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3113
3113
|
})]
|
|
3114
3114
|
});
|
|
3115
3115
|
Zl.displayName = "F0BigNumber";
|
|
3116
|
-
var $l =
|
|
3116
|
+
var $l = Dr(Zl, Ql), eu = R($l), tu = [
|
|
3117
3117
|
"default",
|
|
3118
3118
|
"outline",
|
|
3119
3119
|
"neutral"
|
|
@@ -3121,14 +3121,14 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3121
3121
|
className: "flex items-center gap-2",
|
|
3122
3122
|
children: e.map((e, t) => {
|
|
3123
3123
|
switch (e.type) {
|
|
3124
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3124
|
+
case "segmentedControl": return /* @__PURE__ */ X(pi, {
|
|
3125
3125
|
items: e.items,
|
|
3126
3126
|
value: e.value,
|
|
3127
3127
|
onChange: e.onChange,
|
|
3128
3128
|
disabled: e.disabled,
|
|
3129
3129
|
ariaLabel: e.ariaLabel
|
|
3130
3130
|
}, t);
|
|
3131
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3131
|
+
case "dropdown": return /* @__PURE__ */ X(Gr, {
|
|
3132
3132
|
items: e.items,
|
|
3133
3133
|
disabled: e.disabled,
|
|
3134
3134
|
children: /* @__PURE__ */ X(V, {
|
|
@@ -3144,7 +3144,7 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3144
3144
|
})
|
|
3145
3145
|
}), su = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3146
3146
|
let r = er(), i = z().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3147
|
-
return /* @__PURE__ */ X(
|
|
3147
|
+
return /* @__PURE__ */ X(ri, {
|
|
3148
3148
|
open: t,
|
|
3149
3149
|
onOpenChange: n,
|
|
3150
3150
|
asChild: !0,
|
|
@@ -3152,7 +3152,7 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3152
3152
|
className: "flex flex-col",
|
|
3153
3153
|
children: [/* @__PURE__ */ Z("div", {
|
|
3154
3154
|
className: "flex items-center",
|
|
3155
|
-
children: [/* @__PURE__ */ X(
|
|
3155
|
+
children: [/* @__PURE__ */ X(Cr, {
|
|
3156
3156
|
asChild: !0,
|
|
3157
3157
|
children: /* @__PURE__ */ X("button", {
|
|
3158
3158
|
type: "button",
|
|
@@ -3170,7 +3170,7 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3170
3170
|
children: e.summary
|
|
3171
3171
|
}) : null,
|
|
3172
3172
|
a ? /* @__PURE__ */ X(ou, { actions: e.actions }) : null,
|
|
3173
|
-
/* @__PURE__ */ X(
|
|
3173
|
+
/* @__PURE__ */ X(Cr, {
|
|
3174
3174
|
asChild: !0,
|
|
3175
3175
|
children: /* @__PURE__ */ X(V, {
|
|
3176
3176
|
variant: "outline",
|
|
@@ -3199,7 +3199,7 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3199
3199
|
},
|
|
3200
3200
|
transition: { duration: r ? 0 : .2 },
|
|
3201
3201
|
className: "overflow-hidden",
|
|
3202
|
-
children: /* @__PURE__ */ X(
|
|
3202
|
+
children: /* @__PURE__ */ X(ci, {
|
|
3203
3203
|
forceMount: !0,
|
|
3204
3204
|
asChild: !0,
|
|
3205
3205
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3243,7 +3243,7 @@ var $l = Tr(Zl, Ql), eu = R($l), tu = [
|
|
|
3243
3243
|
});
|
|
3244
3244
|
});
|
|
3245
3245
|
lu.displayName = "F0Accordion";
|
|
3246
|
-
var uu = R(gn("F0Accordion",
|
|
3246
|
+
var uu = R(gn("F0Accordion", Dr(lu, cu))), du = [
|
|
3247
3247
|
"info",
|
|
3248
3248
|
"warning",
|
|
3249
3249
|
"critical",
|
|
@@ -3314,9 +3314,9 @@ var mu = R(gn("F0ChipList", pu)), hu = [
|
|
|
3314
3314
|
"positive",
|
|
3315
3315
|
"transparent"
|
|
3316
3316
|
], vu = {
|
|
3317
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3317
|
+
get: async (e) => JSON.parse(localStorage.getItem(oa(e)) ?? "{}"),
|
|
3318
3318
|
set: async (e, t) => {
|
|
3319
|
-
localStorage.setItem(
|
|
3319
|
+
localStorage.setItem(oa(e), JSON.stringify(t));
|
|
3320
3320
|
}
|
|
3321
3321
|
}, yu = ({ 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 }) => {
|
|
3322
3322
|
let [b, x] = J(n);
|
|
@@ -3433,11 +3433,11 @@ var wu = Cu;
|
|
|
3433
3433
|
//#endregion
|
|
3434
3434
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3435
3435
|
function Tu(e) {
|
|
3436
|
-
let t =
|
|
3436
|
+
let t = di(e).shape, n = [];
|
|
3437
3437
|
for (let [e, r] of Object.entries(t)) {
|
|
3438
|
-
let t = r, i =
|
|
3438
|
+
let t = r, i = Ir(t);
|
|
3439
3439
|
if (!i) continue;
|
|
3440
|
-
let a =
|
|
3440
|
+
let a = Mr(t, i), o = pt(t, a), s = {
|
|
3441
3441
|
name: e,
|
|
3442
3442
|
type: a,
|
|
3443
3443
|
label: i.label,
|
|
@@ -3509,9 +3509,9 @@ function Du(e) {
|
|
|
3509
3509
|
let r = {
|
|
3510
3510
|
...n,
|
|
3511
3511
|
...e
|
|
3512
|
-
}, i =
|
|
3512
|
+
}, i = di(t), a = [];
|
|
3513
3513
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3514
|
-
let n =
|
|
3514
|
+
let n = Ir(t);
|
|
3515
3515
|
n?.renderIf ? ie(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3516
3516
|
}
|
|
3517
3517
|
return a;
|
|
@@ -3555,12 +3555,12 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3555
3555
|
modal: !0,
|
|
3556
3556
|
children: /* @__PURE__ */ Z("div", {
|
|
3557
3557
|
className: "flex flex-col gap-4 py-2",
|
|
3558
|
-
children: [/* @__PURE__ */ X(
|
|
3558
|
+
children: [/* @__PURE__ */ X(_r, {
|
|
3559
3559
|
type: n,
|
|
3560
3560
|
size: "lg"
|
|
3561
3561
|
}), /* @__PURE__ */ Z("div", {
|
|
3562
3562
|
className: "flex flex-col gap-0.5",
|
|
3563
|
-
children: [/* @__PURE__ */ X(
|
|
3563
|
+
children: [/* @__PURE__ */ X(ji, {
|
|
3564
3564
|
className: "text-xl sm:text-lg",
|
|
3565
3565
|
children: r
|
|
3566
3566
|
}), /* @__PURE__ */ X(Mt, {
|
|
@@ -3947,7 +3947,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3947
3947
|
onClose: r
|
|
3948
3948
|
}), 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, S = _?.previousLabel ?? c ?? g.wizard.previous, C = K(() => ({
|
|
3949
3949
|
label: b,
|
|
3950
|
-
icon: y ? void 0 :
|
|
3950
|
+
icon: y ? void 0 : Ei,
|
|
3951
3951
|
onClick: () => void h.goNext(),
|
|
3952
3952
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
3953
3953
|
loading: h.loading
|
|
@@ -4004,14 +4004,14 @@ Ju.displayName = "F0Wizard", R(Ju);
|
|
|
4004
4004
|
//#endregion
|
|
4005
4005
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4006
4006
|
function Yu(e) {
|
|
4007
|
-
let t =
|
|
4008
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4007
|
+
let t = di(e).shape, n = Object.entries(t);
|
|
4008
|
+
return n.length !== 0 && n.every(([, e]) => Ir(e)?.disabled === !0);
|
|
4009
4009
|
}
|
|
4010
4010
|
function Xu(e, t) {
|
|
4011
4011
|
if (t) return Object.keys(t);
|
|
4012
|
-
let n =
|
|
4012
|
+
let n = di(e).shape, r = /* @__PURE__ */ new Set();
|
|
4013
4013
|
for (let e of Object.values(n)) {
|
|
4014
|
-
let t =
|
|
4014
|
+
let t = Ir(e);
|
|
4015
4015
|
t?.section && r.add(t.section);
|
|
4016
4016
|
}
|
|
4017
4017
|
return Array.from(r);
|
|
@@ -4019,15 +4019,15 @@ function Xu(e, t) {
|
|
|
4019
4019
|
function Zu(e, t) {
|
|
4020
4020
|
let n = e.shape, r = {};
|
|
4021
4021
|
for (let [e, i] of Object.entries(n)) {
|
|
4022
|
-
let n =
|
|
4022
|
+
let n = Ir(i);
|
|
4023
4023
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4024
4024
|
}
|
|
4025
|
-
return
|
|
4025
|
+
return ii(r);
|
|
4026
4026
|
}
|
|
4027
4027
|
function Qu(e, t, n) {
|
|
4028
4028
|
let r = t ?? {};
|
|
4029
4029
|
if (n) return n({ data: r });
|
|
4030
|
-
let i =
|
|
4030
|
+
let i = di(e).shape;
|
|
4031
4031
|
return Object.entries(i).every(([e, t]) => {
|
|
4032
4032
|
if (t.isOptional()) return !0;
|
|
4033
4033
|
let n = r[e];
|
|
@@ -4253,7 +4253,7 @@ function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4253
4253
|
});
|
|
4254
4254
|
}
|
|
4255
4255
|
function ad({ 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 }) {
|
|
4256
|
-
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() =>
|
|
4256
|
+
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => di(_), [_]), T = K(() => Xu(_, v), [_, v]), E = W((e) => Yu(Zu(w, e)), [w]), D = ge(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
|
|
4257
4257
|
await D.submit();
|
|
4258
4258
|
}, [D]), j = W((e) => D.hasErrors, [D.hasErrors]), M = t ?? e.steps, N = K(() => M ?? T.map((e) => ({
|
|
4259
4259
|
title: v?.[e]?.title ?? e,
|
|
@@ -4543,7 +4543,7 @@ var pd = { open: fd }, md = [
|
|
|
4543
4543
|
id: C,
|
|
4544
4544
|
disabled: c
|
|
4545
4545
|
}) : null,
|
|
4546
|
-
/* @__PURE__ */ Z(
|
|
4546
|
+
/* @__PURE__ */ Z(ui, {
|
|
4547
4547
|
value: [O],
|
|
4548
4548
|
onValueChange: j,
|
|
4549
4549
|
onValueCommit: M,
|
|
@@ -4560,12 +4560,12 @@ var pd = { open: fd }, md = [
|
|
|
4560
4560
|
children: [
|
|
4561
4561
|
/* @__PURE__ */ X(sr, {
|
|
4562
4562
|
className: yd({ status: re }),
|
|
4563
|
-
children: /* @__PURE__ */ X(
|
|
4563
|
+
children: /* @__PURE__ */ X(gi, { className: bd({
|
|
4564
4564
|
status: re,
|
|
4565
4565
|
disabled: c
|
|
4566
4566
|
}) })
|
|
4567
4567
|
}),
|
|
4568
|
-
/* @__PURE__ */ X(
|
|
4568
|
+
/* @__PURE__ */ X(qr, {
|
|
4569
4569
|
id: S,
|
|
4570
4570
|
"aria-label": ie ? void 0 : T,
|
|
4571
4571
|
"aria-labelledby": ie ? C : void 0,
|
|
@@ -4604,7 +4604,7 @@ var pd = { open: fd }, md = [
|
|
|
4604
4604
|
});
|
|
4605
4605
|
});
|
|
4606
4606
|
Cd.displayName = "F0Slider";
|
|
4607
|
-
var wd = gn("F0Slider",
|
|
4607
|
+
var wd = gn("F0Slider", Dr(R(Cd), vd)), Td = [
|
|
4608
4608
|
"completed",
|
|
4609
4609
|
"in-progress",
|
|
4610
4610
|
"not-started",
|
|
@@ -4885,7 +4885,7 @@ function Gd(e) {
|
|
|
4885
4885
|
}
|
|
4886
4886
|
//#endregion
|
|
4887
4887
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4888
|
-
var Kd = Jn.create(
|
|
4888
|
+
var Kd = Jn.create(vr), qd = Cc(() => {
|
|
4889
4889
|
let e = z();
|
|
4890
4890
|
return /* @__PURE__ */ Z("div", {
|
|
4891
4891
|
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",
|
|
@@ -5241,12 +5241,12 @@ var lf = () => {
|
|
|
5241
5241
|
let { isQuestionTypeAllowed: e, datasets: t } = af(), { t: n } = z(), r = [
|
|
5242
5242
|
{
|
|
5243
5243
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5244
|
-
icon:
|
|
5244
|
+
icon: ei,
|
|
5245
5245
|
questionType: "rating"
|
|
5246
5246
|
},
|
|
5247
5247
|
{
|
|
5248
5248
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5249
|
-
icon:
|
|
5249
|
+
icon: or,
|
|
5250
5250
|
questionType: "multi-select"
|
|
5251
5251
|
},
|
|
5252
5252
|
{
|
|
@@ -5256,32 +5256,32 @@ var lf = () => {
|
|
|
5256
5256
|
},
|
|
5257
5257
|
{
|
|
5258
5258
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5259
|
-
icon:
|
|
5259
|
+
icon: ki,
|
|
5260
5260
|
questionType: "text"
|
|
5261
5261
|
},
|
|
5262
5262
|
{
|
|
5263
5263
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5264
|
-
icon:
|
|
5264
|
+
icon: Fi,
|
|
5265
5265
|
questionType: "longText"
|
|
5266
5266
|
},
|
|
5267
5267
|
{
|
|
5268
5268
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5269
|
-
icon:
|
|
5269
|
+
icon: qi,
|
|
5270
5270
|
questionType: "numeric"
|
|
5271
5271
|
},
|
|
5272
5272
|
{
|
|
5273
5273
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5274
|
-
icon:
|
|
5274
|
+
icon: ra,
|
|
5275
5275
|
questionType: "link"
|
|
5276
5276
|
},
|
|
5277
5277
|
{
|
|
5278
5278
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5279
|
-
icon:
|
|
5279
|
+
icon: Qi,
|
|
5280
5280
|
questionType: "date"
|
|
5281
5281
|
},
|
|
5282
5282
|
{
|
|
5283
5283
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5284
|
-
icon:
|
|
5284
|
+
icon: Ii,
|
|
5285
5285
|
questionType: "file"
|
|
5286
5286
|
},
|
|
5287
5287
|
{
|
|
@@ -5297,17 +5297,17 @@ var lf = () => {
|
|
|
5297
5297
|
})) : [];
|
|
5298
5298
|
return [...r, ...i];
|
|
5299
5299
|
}, uf = {
|
|
5300
|
-
rating:
|
|
5301
|
-
"multi-select":
|
|
5300
|
+
rating: ei,
|
|
5301
|
+
"multi-select": or,
|
|
5302
5302
|
select: Hs,
|
|
5303
|
-
text:
|
|
5304
|
-
longText:
|
|
5305
|
-
numeric:
|
|
5306
|
-
link:
|
|
5307
|
-
date:
|
|
5303
|
+
text: ki,
|
|
5304
|
+
longText: Fi,
|
|
5305
|
+
numeric: qi,
|
|
5306
|
+
link: ra,
|
|
5307
|
+
date: Qi,
|
|
5308
5308
|
"dropdown-single": co,
|
|
5309
5309
|
"dropdown-multi": co,
|
|
5310
|
-
file:
|
|
5310
|
+
file: Ii,
|
|
5311
5311
|
checkbox: Us
|
|
5312
5312
|
}, df = () => {
|
|
5313
5313
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = af(), [a, o] = J(!1), s = lf(), { t: c } = z(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5341,7 +5341,7 @@ var lf = () => {
|
|
|
5341
5341
|
children: /* @__PURE__ */ Z("div", {
|
|
5342
5342
|
className: "flex w-full flex-row items-center gap-2",
|
|
5343
5343
|
children: [/* @__PURE__ */ X(H, {
|
|
5344
|
-
icon:
|
|
5344
|
+
icon: $r,
|
|
5345
5345
|
color: "default"
|
|
5346
5346
|
}), /* @__PURE__ */ X("span", {
|
|
5347
5347
|
className: "flex-1 text-base font-medium",
|
|
@@ -5394,7 +5394,7 @@ var lf = () => {
|
|
|
5394
5394
|
children: /* @__PURE__ */ Z("div", {
|
|
5395
5395
|
className: "flex w-full flex-row items-center gap-2",
|
|
5396
5396
|
children: [/* @__PURE__ */ X(H, {
|
|
5397
|
-
icon:
|
|
5397
|
+
icon: or,
|
|
5398
5398
|
color: "default"
|
|
5399
5399
|
}), /* @__PURE__ */ X("span", {
|
|
5400
5400
|
className: "flex-1",
|
|
@@ -5574,7 +5574,7 @@ var vf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(n
|
|
|
5574
5574
|
className: "flex w-full flex-row items-center gap-2",
|
|
5575
5575
|
children: [
|
|
5576
5576
|
/* @__PURE__ */ X(eo, {
|
|
5577
|
-
icon:
|
|
5577
|
+
icon: vi,
|
|
5578
5578
|
color: "default"
|
|
5579
5579
|
}),
|
|
5580
5580
|
/* @__PURE__ */ X("span", {
|
|
@@ -5686,7 +5686,7 @@ var vf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(n
|
|
|
5686
5686
|
className: "flex w-full flex-row items-center gap-2",
|
|
5687
5687
|
children: [
|
|
5688
5688
|
/* @__PURE__ */ X(eo, {
|
|
5689
|
-
icon:
|
|
5689
|
+
icon: or,
|
|
5690
5690
|
color: "default"
|
|
5691
5691
|
}),
|
|
5692
5692
|
/* @__PURE__ */ X("span", {
|
|
@@ -5715,11 +5715,11 @@ var vf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(n
|
|
|
5715
5715
|
let { t: a } = z(), { labels: o } = af();
|
|
5716
5716
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(sc, {}) : null, /* @__PURE__ */ Z(rc, { children: [e ? /* @__PURE__ */ X(bf, {
|
|
5717
5717
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5718
|
-
icon:
|
|
5718
|
+
icon: Ti,
|
|
5719
5719
|
onClick: r
|
|
5720
5720
|
}) : null, t ? /* @__PURE__ */ X(bf, {
|
|
5721
5721
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5722
|
-
icon:
|
|
5722
|
+
icon: si,
|
|
5723
5723
|
onClick: i,
|
|
5724
5724
|
critical: !0
|
|
5725
5725
|
}) : null] })] });
|
|
@@ -5754,13 +5754,13 @@ function Sf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5754
5754
|
}),
|
|
5755
5755
|
T ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(vf, {
|
|
5756
5756
|
label: o("surveyFormBuilder.labels.required"),
|
|
5757
|
-
icon:
|
|
5757
|
+
icon: ca,
|
|
5758
5758
|
checked: !!l?.required,
|
|
5759
5759
|
onChange: _
|
|
5760
5760
|
}) }) : null,
|
|
5761
5761
|
E ? /* @__PURE__ */ X(rc, { children: /* @__PURE__ */ X(vf, {
|
|
5762
5762
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5763
|
-
icon:
|
|
5763
|
+
icon: or,
|
|
5764
5764
|
checked: p,
|
|
5765
5765
|
onChange: b
|
|
5766
5766
|
}) }) : null,
|
|
@@ -5811,7 +5811,7 @@ function jf({ text: e }) {
|
|
|
5811
5811
|
return /* @__PURE__ */ X(Y, { children: t.map((e, t) => {
|
|
5812
5812
|
if (t % 2 == 0) return /* @__PURE__ */ X(yc, { children: e }, t);
|
|
5813
5813
|
let [n, r] = kf(e), i = Af(n);
|
|
5814
|
-
return i ? /* @__PURE__ */ Z(yc, { children: [/* @__PURE__ */ X(
|
|
5814
|
+
return i ? /* @__PURE__ */ Z(yc, { children: [/* @__PURE__ */ X(Fr, {
|
|
5815
5815
|
variant: "inline",
|
|
5816
5816
|
href: i,
|
|
5817
5817
|
target: "_blank",
|
|
@@ -5981,7 +5981,7 @@ var Mf = ({ notice: e, className: t, children: n }) => {
|
|
|
5981
5981
|
children: /* @__PURE__ */ Z("div", {
|
|
5982
5982
|
className: "flex w-full flex-row items-center gap-2",
|
|
5983
5983
|
children: [/* @__PURE__ */ X(H, {
|
|
5984
|
-
icon:
|
|
5984
|
+
icon: $r,
|
|
5985
5985
|
color: "default"
|
|
5986
5986
|
}), /* @__PURE__ */ X("span", {
|
|
5987
5987
|
className: "flex-1 text-base font-medium",
|
|
@@ -6033,7 +6033,7 @@ var Mf = ({ notice: e, className: t, children: n }) => {
|
|
|
6033
6033
|
children: /* @__PURE__ */ Z("div", {
|
|
6034
6034
|
className: "flex w-full flex-row items-center gap-2",
|
|
6035
6035
|
children: [/* @__PURE__ */ X(H, {
|
|
6036
|
-
icon:
|
|
6036
|
+
icon: or,
|
|
6037
6037
|
color: "default"
|
|
6038
6038
|
}), /* @__PURE__ */ X("span", {
|
|
6039
6039
|
className: "flex-1",
|
|
@@ -6267,8 +6267,8 @@ var Ff = ({ value: e, label: t, ...n }) => {
|
|
|
6267
6267
|
required: t.required,
|
|
6268
6268
|
maxDecimals: 0,
|
|
6269
6269
|
placeholder: s,
|
|
6270
|
-
icon:
|
|
6271
|
-
}) : /* @__PURE__ */ X(
|
|
6270
|
+
icon: qi
|
|
6271
|
+
}) : /* @__PURE__ */ X(Ki, {
|
|
6272
6272
|
type: "text",
|
|
6273
6273
|
size: "md",
|
|
6274
6274
|
value: s,
|
|
@@ -6276,7 +6276,7 @@ var Ff = ({ value: e, label: t, ...n }) => {
|
|
|
6276
6276
|
disabled: !0,
|
|
6277
6277
|
label: n("surveyFormBuilder.answer.label"),
|
|
6278
6278
|
hideLabel: !0,
|
|
6279
|
-
icon:
|
|
6279
|
+
icon: qi
|
|
6280
6280
|
})
|
|
6281
6281
|
});
|
|
6282
6282
|
}, Uf = ({ option: e, selected: n, onClick: r, onChangeLabel: i, disabled: a, isEmojiMode: o = !1 }) => {
|
|
@@ -6450,7 +6450,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6450
6450
|
children: /* @__PURE__ */ X("div", {
|
|
6451
6451
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6452
6452
|
children: /* @__PURE__ */ X(eo, {
|
|
6453
|
-
icon:
|
|
6453
|
+
icon: Zr,
|
|
6454
6454
|
size: "sm"
|
|
6455
6455
|
})
|
|
6456
6456
|
})
|
|
@@ -6473,13 +6473,13 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6473
6473
|
children: [/* @__PURE__ */ X(V, {
|
|
6474
6474
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6475
6475
|
variant: "ghost",
|
|
6476
|
-
icon: c ?
|
|
6476
|
+
icon: c ? Sr : wi,
|
|
6477
6477
|
onClick: x,
|
|
6478
6478
|
hideLabel: !0
|
|
6479
6479
|
}), /* @__PURE__ */ X(V, {
|
|
6480
6480
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6481
6481
|
variant: "ghost",
|
|
6482
|
-
icon:
|
|
6482
|
+
icon: si,
|
|
6483
6483
|
hideLabel: !0,
|
|
6484
6484
|
onClick: S
|
|
6485
6485
|
})]
|
|
@@ -6706,7 +6706,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6706
6706
|
h && c.start(e);
|
|
6707
6707
|
},
|
|
6708
6708
|
children: /* @__PURE__ */ X(H, {
|
|
6709
|
-
icon:
|
|
6709
|
+
icon: Zr,
|
|
6710
6710
|
size: "sm"
|
|
6711
6711
|
})
|
|
6712
6712
|
}) : null, /* @__PURE__ */ X(Zf, { ...e.question })]
|
|
@@ -6736,7 +6736,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6736
6736
|
f && i.start(e);
|
|
6737
6737
|
},
|
|
6738
6738
|
children: /* @__PURE__ */ X(H, {
|
|
6739
|
-
icon:
|
|
6739
|
+
icon: Zr,
|
|
6740
6740
|
size: "sm"
|
|
6741
6741
|
})
|
|
6742
6742
|
}) : null, /* @__PURE__ */ X(Zf, { ...e })]
|
|
@@ -6768,7 +6768,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6768
6768
|
});
|
|
6769
6769
|
}, x = [{
|
|
6770
6770
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6771
|
-
icon:
|
|
6771
|
+
icon: Ti,
|
|
6772
6772
|
onClick: () => {
|
|
6773
6773
|
d?.({
|
|
6774
6774
|
elementId: e,
|
|
@@ -6777,7 +6777,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6777
6777
|
}
|
|
6778
6778
|
}, {
|
|
6779
6779
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6780
|
-
icon:
|
|
6780
|
+
icon: si,
|
|
6781
6781
|
onClick: () => {
|
|
6782
6782
|
u(e);
|
|
6783
6783
|
},
|
|
@@ -6822,7 +6822,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6822
6822
|
}) : null,
|
|
6823
6823
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6824
6824
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6825
|
-
children: /* @__PURE__ */ X(
|
|
6825
|
+
children: /* @__PURE__ */ X(Gr, {
|
|
6826
6826
|
items: x,
|
|
6827
6827
|
icon: Ws,
|
|
6828
6828
|
open: p,
|
|
@@ -6901,7 +6901,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6901
6901
|
o.start(e);
|
|
6902
6902
|
},
|
|
6903
6903
|
children: /* @__PURE__ */ X(H, {
|
|
6904
|
-
icon:
|
|
6904
|
+
icon: Zr,
|
|
6905
6905
|
size: "sm"
|
|
6906
6906
|
})
|
|
6907
6907
|
}) : null, /* @__PURE__ */ X(tp, {
|
|
@@ -6931,7 +6931,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6931
6931
|
p || x.push({
|
|
6932
6932
|
type: "toggle",
|
|
6933
6933
|
label: l,
|
|
6934
|
-
icon:
|
|
6934
|
+
icon: ca,
|
|
6935
6935
|
checked: !!r?.required,
|
|
6936
6936
|
onCheckedChange: m
|
|
6937
6937
|
});
|
|
@@ -6976,7 +6976,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6976
6976
|
selected: s === e && t === "dropdown-single"
|
|
6977
6977
|
}, {
|
|
6978
6978
|
label: f,
|
|
6979
|
-
icon:
|
|
6979
|
+
icon: or,
|
|
6980
6980
|
onClick: () => h("dropdown-multi", e),
|
|
6981
6981
|
selected: s === e && t === "dropdown-multi"
|
|
6982
6982
|
}]
|
|
@@ -6990,16 +6990,16 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6990
6990
|
return x.push({
|
|
6991
6991
|
type: "submenu",
|
|
6992
6992
|
label: u,
|
|
6993
|
-
icon:
|
|
6993
|
+
icon: vi,
|
|
6994
6994
|
selectedLabel: E,
|
|
6995
6995
|
children: w
|
|
6996
6996
|
}), x.push({ type: "separator" }), x.push({
|
|
6997
6997
|
label: i,
|
|
6998
|
-
icon:
|
|
6998
|
+
icon: Ti,
|
|
6999
6999
|
onClick: y
|
|
7000
7000
|
}), n && x.push({
|
|
7001
7001
|
label: a,
|
|
7002
|
-
icon:
|
|
7002
|
+
icon: si,
|
|
7003
7003
|
onClick: b,
|
|
7004
7004
|
critical: !0
|
|
7005
7005
|
}), x;
|
|
@@ -7020,12 +7020,12 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7020
7020
|
return {
|
|
7021
7021
|
id: i,
|
|
7022
7022
|
label: t.title || n,
|
|
7023
|
-
icon:
|
|
7023
|
+
icon: $r,
|
|
7024
7024
|
onClick: y,
|
|
7025
7025
|
...!h && !g && !t.locked && { otherActions: [
|
|
7026
7026
|
{
|
|
7027
7027
|
label: o,
|
|
7028
|
-
icon:
|
|
7028
|
+
icon: Ti,
|
|
7029
7029
|
onClick: () => m?.({
|
|
7030
7030
|
elementId: t.id,
|
|
7031
7031
|
type: "section"
|
|
@@ -7034,7 +7034,7 @@ var Jf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7034
7034
|
{ type: "separator" },
|
|
7035
7035
|
{
|
|
7036
7036
|
label: s,
|
|
7037
|
-
icon:
|
|
7037
|
+
icon: si,
|
|
7038
7038
|
onClick: () => p(t.id),
|
|
7039
7039
|
critical: !0
|
|
7040
7040
|
}
|
|
@@ -7562,7 +7562,7 @@ function Op({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7562
7562
|
u ? /* @__PURE__ */ X("div", {
|
|
7563
7563
|
className: "min-h-8 p-1",
|
|
7564
7564
|
children: /* @__PURE__ */ X(H, {
|
|
7565
|
-
icon: t.correct ?
|
|
7565
|
+
icon: t.correct ? wi : Sr,
|
|
7566
7566
|
color: t.correct ? "positive" : "critical",
|
|
7567
7567
|
"aria-hidden": !0
|
|
7568
7568
|
})
|
|
@@ -7584,7 +7584,7 @@ var kp = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, Ap = () => ({
|
|
|
7584
7584
|
status: "idle"
|
|
7585
7585
|
});
|
|
7586
7586
|
function jp(e, t) {
|
|
7587
|
-
return
|
|
7587
|
+
return li().optional().superRefine((n, r) => {
|
|
7588
7588
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7589
7589
|
code: "custom",
|
|
7590
7590
|
message: t("forms.validation.required")
|
|
@@ -7592,7 +7592,7 @@ function jp(e, t) {
|
|
|
7592
7592
|
});
|
|
7593
7593
|
}
|
|
7594
7594
|
function Mp(e, t) {
|
|
7595
|
-
return
|
|
7595
|
+
return li().optional().superRefine((n, r) => {
|
|
7596
7596
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7597
7597
|
code: "custom",
|
|
7598
7598
|
message: t("forms.validation.required")
|
|
@@ -7603,7 +7603,7 @@ function Mp(e, t) {
|
|
|
7603
7603
|
});
|
|
7604
7604
|
}
|
|
7605
7605
|
function Np(e, t) {
|
|
7606
|
-
return
|
|
7606
|
+
return Or().optional().superRefine((n, r) => {
|
|
7607
7607
|
e && n == null && r.addIssue({
|
|
7608
7608
|
code: "custom",
|
|
7609
7609
|
message: t("forms.validation.required")
|
|
@@ -7611,7 +7611,7 @@ function Np(e, t) {
|
|
|
7611
7611
|
});
|
|
7612
7612
|
}
|
|
7613
7613
|
function Pp(e, t) {
|
|
7614
|
-
return da(
|
|
7614
|
+
return da(li()).optional().superRefine((n, r) => {
|
|
7615
7615
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7616
7616
|
code: "custom",
|
|
7617
7617
|
message: t("forms.validation.required")
|
|
@@ -7619,7 +7619,7 @@ function Pp(e, t) {
|
|
|
7619
7619
|
});
|
|
7620
7620
|
}
|
|
7621
7621
|
function Fp(e, t) {
|
|
7622
|
-
return
|
|
7622
|
+
return oi().optional().superRefine((n, r) => {
|
|
7623
7623
|
e && !n && r.addIssue({
|
|
7624
7624
|
code: "custom",
|
|
7625
7625
|
message: t("forms.validation.required")
|
|
@@ -7628,7 +7628,7 @@ function Fp(e, t) {
|
|
|
7628
7628
|
}
|
|
7629
7629
|
var Ip = Pp;
|
|
7630
7630
|
function Lp(e, t) {
|
|
7631
|
-
return
|
|
7631
|
+
return gr().optional().superRefine((n, r) => {
|
|
7632
7632
|
e && !n && r.addIssue({
|
|
7633
7633
|
code: "custom",
|
|
7634
7634
|
message: t("forms.validation.required")
|
|
@@ -7681,7 +7681,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7681
7681
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7682
7682
|
disabled: i
|
|
7683
7683
|
};
|
|
7684
|
-
return
|
|
7684
|
+
return wr(jp(!!e.required, t), {
|
|
7685
7685
|
...l,
|
|
7686
7686
|
fieldType: "custom",
|
|
7687
7687
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7709,7 +7709,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7709
7709
|
rows: 4,
|
|
7710
7710
|
disabled: i
|
|
7711
7711
|
};
|
|
7712
|
-
return
|
|
7712
|
+
return wr(jp(!!e.required, t), {
|
|
7713
7713
|
...l,
|
|
7714
7714
|
fieldType: "custom",
|
|
7715
7715
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7736,7 +7736,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7736
7736
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7737
7737
|
disabled: i
|
|
7738
7738
|
};
|
|
7739
|
-
return
|
|
7739
|
+
return wr(Np(!!e.required, t), {
|
|
7740
7740
|
...l,
|
|
7741
7741
|
fieldType: "custom",
|
|
7742
7742
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7764,7 +7764,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7764
7764
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7765
7765
|
disabled: i
|
|
7766
7766
|
};
|
|
7767
|
-
return
|
|
7767
|
+
return wr(Mp(!!e.required, t), {
|
|
7768
7768
|
...l,
|
|
7769
7769
|
fieldType: "custom",
|
|
7770
7770
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7791,7 +7791,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7791
7791
|
clearable: !e.required,
|
|
7792
7792
|
disabled: i
|
|
7793
7793
|
};
|
|
7794
|
-
return
|
|
7794
|
+
return wr(Fp(!!e.required, t), {
|
|
7795
7795
|
...l,
|
|
7796
7796
|
fieldType: "custom",
|
|
7797
7797
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7827,7 +7827,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7827
7827
|
showSearchBox: r,
|
|
7828
7828
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7829
7829
|
};
|
|
7830
|
-
return
|
|
7830
|
+
return wr(jp(!!e.required, t), {
|
|
7831
7831
|
...l,
|
|
7832
7832
|
fieldType: "custom",
|
|
7833
7833
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7876,7 +7876,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7876
7876
|
showSearchBox: r,
|
|
7877
7877
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7878
7878
|
};
|
|
7879
|
-
return
|
|
7879
|
+
return wr(Pp(!!e.required, t), {
|
|
7880
7880
|
...l,
|
|
7881
7881
|
fieldType: "custom",
|
|
7882
7882
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -7903,7 +7903,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7903
7903
|
disabled: i,
|
|
7904
7904
|
showAnswerValidation: r
|
|
7905
7905
|
};
|
|
7906
|
-
return
|
|
7906
|
+
return wr(jp(!!e.required, t), {
|
|
7907
7907
|
...l,
|
|
7908
7908
|
fieldType: "custom",
|
|
7909
7909
|
fieldConfig: n,
|
|
@@ -7926,7 +7926,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7926
7926
|
disabled: i,
|
|
7927
7927
|
showAnswerValidation: r
|
|
7928
7928
|
};
|
|
7929
|
-
return
|
|
7929
|
+
return wr(Pp(!!e.required, t), {
|
|
7930
7930
|
...l,
|
|
7931
7931
|
fieldType: "custom",
|
|
7932
7932
|
fieldConfig: n,
|
|
@@ -7948,7 +7948,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7948
7948
|
maxLabel: n.maxLabel,
|
|
7949
7949
|
disabled: i
|
|
7950
7950
|
};
|
|
7951
|
-
return
|
|
7951
|
+
return wr(Np(!!e.required, t), {
|
|
7952
7952
|
...l,
|
|
7953
7953
|
fieldType: "custom",
|
|
7954
7954
|
fieldConfig: r,
|
|
@@ -7974,7 +7974,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7974
7974
|
useUpload: r ?? Ap,
|
|
7975
7975
|
disabled: i || !r
|
|
7976
7976
|
};
|
|
7977
|
-
return
|
|
7977
|
+
return wr(Ip(!!e.required, t), {
|
|
7978
7978
|
...l,
|
|
7979
7979
|
fieldType: "custom",
|
|
7980
7980
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -8000,7 +8000,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8000
8000
|
label: n.label || c,
|
|
8001
8001
|
disabled: i
|
|
8002
8002
|
};
|
|
8003
|
-
return
|
|
8003
|
+
return wr(Lp(!!e.required, t), {
|
|
8004
8004
|
...l,
|
|
8005
8005
|
fieldType: "custom",
|
|
8006
8006
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Nf, {
|
|
@@ -8019,7 +8019,7 @@ function Hp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8019
8019
|
})
|
|
8020
8020
|
});
|
|
8021
8021
|
}
|
|
8022
|
-
default: return
|
|
8022
|
+
default: return wr(Tr(), {
|
|
8023
8023
|
...l,
|
|
8024
8024
|
fieldType: "custom",
|
|
8025
8025
|
render: () => null
|
|
@@ -8066,7 +8066,7 @@ function Kp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8066
8066
|
}), f[t] = a?.[t] ?? Rp(e, r);
|
|
8067
8067
|
}
|
|
8068
8068
|
return {
|
|
8069
|
-
schema:
|
|
8069
|
+
schema: ii(d),
|
|
8070
8070
|
defaultValues: f,
|
|
8071
8071
|
flatQuestions: m,
|
|
8072
8072
|
sections: p
|
|
@@ -8200,12 +8200,12 @@ function $p({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8200
8200
|
]);
|
|
8201
8201
|
let Se = u && !p ? [{
|
|
8202
8202
|
label: b(T ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8203
|
-
icon: T ? ur :
|
|
8203
|
+
icon: T ? ur : Hi,
|
|
8204
8204
|
onClick: () => E((e) => !e)
|
|
8205
8205
|
}] : void 0, Ce = P ? p || ee ? void 0 : te ? I && !N.isLastStep ? {
|
|
8206
8206
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8207
8207
|
onClick: N.goToNext,
|
|
8208
|
-
icon:
|
|
8208
|
+
icon: Ei
|
|
8209
8209
|
} : {
|
|
8210
8210
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8211
8211
|
onClick: qp,
|
|
@@ -8213,7 +8213,7 @@ function $p({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8213
8213
|
} : I && !N.isLastStep ? {
|
|
8214
8214
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8215
8215
|
onClick: _e,
|
|
8216
|
-
icon:
|
|
8216
|
+
icon: Ei,
|
|
8217
8217
|
disabled: x
|
|
8218
8218
|
} : {
|
|
8219
8219
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
@@ -8229,7 +8229,7 @@ function $p({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8229
8229
|
onClick: ye,
|
|
8230
8230
|
disabled: k
|
|
8231
8231
|
}] : void 0, Ee = n === "all-questions" && P && !p, De = I && P && !p, Oe = I && !!N.currentQuestion?.sectionTitle && !p, ke = ue === "center" || ue === "fullscreen";
|
|
8232
|
-
return /* @__PURE__ */ X(
|
|
8232
|
+
return /* @__PURE__ */ X(Xi, {
|
|
8233
8233
|
isOpen: o,
|
|
8234
8234
|
onClose: s,
|
|
8235
8235
|
title: r,
|
|
@@ -8515,12 +8515,12 @@ function cm({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8515
8515
|
s(e), e || t();
|
|
8516
8516
|
},
|
|
8517
8517
|
modal: !0,
|
|
8518
|
-
children: /* @__PURE__ */ Z(
|
|
8518
|
+
children: /* @__PURE__ */ Z(Vr, {
|
|
8519
8519
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8520
8520
|
container: a,
|
|
8521
8521
|
children: [/* @__PURE__ */ Z("div", {
|
|
8522
8522
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8523
|
-
children: [/* @__PURE__ */ Z(
|
|
8523
|
+
children: [/* @__PURE__ */ Z(ji, {
|
|
8524
8524
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8525
8525
|
children: [i ? /* @__PURE__ */ X(ho, {
|
|
8526
8526
|
module: i,
|
|
@@ -8528,7 +8528,7 @@ function cm({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8528
8528
|
}) : null, n]
|
|
8529
8529
|
}), /* @__PURE__ */ X(nr, {
|
|
8530
8530
|
variant: "outline",
|
|
8531
|
-
icon:
|
|
8531
|
+
icon: Sr,
|
|
8532
8532
|
onClick: t,
|
|
8533
8533
|
label: "Close modal",
|
|
8534
8534
|
hideLabel: !0
|
|
@@ -8618,14 +8618,14 @@ function dm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8618
8618
|
o && o(!l);
|
|
8619
8619
|
}, [o, l]);
|
|
8620
8620
|
let f = e?.includes(".mp4");
|
|
8621
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
8621
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Lr, {
|
|
8622
8622
|
style: { width: a },
|
|
8623
8623
|
className: "relative bg-f1-background p-1",
|
|
8624
|
-
children: [/* @__PURE__ */ Z(
|
|
8624
|
+
children: [/* @__PURE__ */ Z(Nr, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8625
8625
|
className: "absolute right-2 top-2 z-10",
|
|
8626
8626
|
children: /* @__PURE__ */ X(V, {
|
|
8627
8627
|
variant: "ghost",
|
|
8628
|
-
icon:
|
|
8628
|
+
icon: Sr,
|
|
8629
8629
|
size: "sm",
|
|
8630
8630
|
hideLabel: !0,
|
|
8631
8631
|
onClick: d,
|
|
@@ -8651,7 +8651,7 @@ function dm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8651
8651
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8652
8652
|
children: n
|
|
8653
8653
|
})]
|
|
8654
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8654
|
+
})] })] }), s ? /* @__PURE__ */ X(hi, {
|
|
8655
8655
|
className: "p-3",
|
|
8656
8656
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(E, {
|
|
8657
8657
|
label: e.label,
|
|
@@ -8674,7 +8674,7 @@ function dm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8674
8674
|
var fm = R(dm), pm = ({ onDismiss: e }) => {
|
|
8675
8675
|
let { actions: t } = z();
|
|
8676
8676
|
return /* @__PURE__ */ X(V, {
|
|
8677
|
-
icon:
|
|
8677
|
+
icon: Sr,
|
|
8678
8678
|
label: t.close,
|
|
8679
8679
|
hideLabel: !0,
|
|
8680
8680
|
variant: "outline",
|
|
@@ -8765,7 +8765,7 @@ gm.displayName = "UpsellingBanner";
|
|
|
8765
8765
|
var _m = R(gm);
|
|
8766
8766
|
//#endregion
|
|
8767
8767
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
8768
|
-
function vm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
8768
|
+
function vm({ 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 }) {
|
|
8769
8769
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8770
8770
|
t(e), h && h();
|
|
8771
8771
|
}, w = async (e) => {
|
|
@@ -8825,9 +8825,9 @@ function vm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8825
8825
|
}
|
|
8826
8826
|
var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
8827
8827
|
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);
|
|
8828
|
-
return /* @__PURE__ */ Z(
|
|
8828
|
+
return /* @__PURE__ */ Z(Lr, {
|
|
8829
8829
|
className: "flex flex-col overflow-hidden",
|
|
8830
|
-
children: [/* @__PURE__ */ Z(
|
|
8830
|
+
children: [/* @__PURE__ */ Z(Nr, {
|
|
8831
8831
|
className: "flex flex-col gap-4 p-0",
|
|
8832
8832
|
children: [/* @__PURE__ */ X("div", {
|
|
8833
8833
|
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"),
|
|
@@ -8842,7 +8842,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8842
8842
|
children: n
|
|
8843
8843
|
})]
|
|
8844
8844
|
})]
|
|
8845
|
-
}), /* @__PURE__ */ X(
|
|
8845
|
+
}), /* @__PURE__ */ X(hi, {
|
|
8846
8846
|
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",
|
|
8847
8847
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8848
8848
|
variant: "default",
|
|
@@ -8889,7 +8889,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8889
8889
|
})
|
|
8890
8890
|
})]
|
|
8891
8891
|
}), Sm = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
8892
|
-
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
8892
|
+
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Ni, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8893
8893
|
u,
|
|
8894
8894
|
r,
|
|
8895
8895
|
c
|
|
@@ -8904,9 +8904,9 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8904
8904
|
i,
|
|
8905
8905
|
a
|
|
8906
8906
|
]);
|
|
8907
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
8907
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Lr, {
|
|
8908
8908
|
className: "flex flex-col overflow-hidden",
|
|
8909
|
-
children: [/* @__PURE__ */ Z(
|
|
8909
|
+
children: [/* @__PURE__ */ Z(fi, {
|
|
8910
8910
|
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",
|
|
8911
8911
|
children: [/* @__PURE__ */ X("div", {
|
|
8912
8912
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8919,7 +8919,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8919
8919
|
className: "text-base font-semibold text-f1-foreground",
|
|
8920
8920
|
children: o
|
|
8921
8921
|
})]
|
|
8922
|
-
}), /* @__PURE__ */ X(
|
|
8922
|
+
}), /* @__PURE__ */ X(Nr, {
|
|
8923
8923
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8924
8924
|
children: t.map((e) => /* @__PURE__ */ X(xm, {
|
|
8925
8925
|
item: e,
|
|
@@ -8930,9 +8930,9 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8930
8930
|
});
|
|
8931
8931
|
}, Cm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
8932
8932
|
let a = z()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8933
|
-
return /* @__PURE__ */ Z(
|
|
8933
|
+
return /* @__PURE__ */ Z(Lr, {
|
|
8934
8934
|
className: "flex flex-col overflow-hidden",
|
|
8935
|
-
children: [/* @__PURE__ */ X(
|
|
8935
|
+
children: [/* @__PURE__ */ X(Nr, {
|
|
8936
8936
|
className: "flex flex-col gap-3 p-0",
|
|
8937
8937
|
children: /* @__PURE__ */ Z("div", {
|
|
8938
8938
|
className: "flex items-start gap-3",
|
|
@@ -8954,7 +8954,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8954
8954
|
})]
|
|
8955
8955
|
})]
|
|
8956
8956
|
})
|
|
8957
|
-
}), /* @__PURE__ */ X(
|
|
8957
|
+
}), /* @__PURE__ */ X(hi, {
|
|
8958
8958
|
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",
|
|
8959
8959
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8960
8960
|
variant: "outline",
|
|
@@ -8972,12 +8972,12 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8972
8972
|
});
|
|
8973
8973
|
}, wm = ({ onAction: e, actionHref: t }) => {
|
|
8974
8974
|
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";
|
|
8975
|
-
return /* @__PURE__ */ Z(
|
|
8975
|
+
return /* @__PURE__ */ Z(Lr, {
|
|
8976
8976
|
className: "flex flex-col overflow-hidden",
|
|
8977
|
-
children: [/* @__PURE__ */ Z(
|
|
8977
|
+
children: [/* @__PURE__ */ Z(Nr, {
|
|
8978
8978
|
className: "flex flex-col gap-3 p-0",
|
|
8979
8979
|
children: [/* @__PURE__ */ X(H, {
|
|
8980
|
-
icon:
|
|
8980
|
+
icon: Qi,
|
|
8981
8981
|
size: "lg"
|
|
8982
8982
|
}), /* @__PURE__ */ Z("div", {
|
|
8983
8983
|
className: "flex flex-col gap-0.5",
|
|
@@ -8989,7 +8989,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8989
8989
|
children: i
|
|
8990
8990
|
})]
|
|
8991
8991
|
})]
|
|
8992
|
-
}), /* @__PURE__ */ X(
|
|
8992
|
+
}), /* @__PURE__ */ X(hi, {
|
|
8993
8993
|
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",
|
|
8994
8994
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8995
8995
|
variant: "default",
|
|
@@ -9035,9 +9035,9 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9035
9035
|
e,
|
|
9036
9036
|
t
|
|
9037
9037
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
9038
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
9038
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Lr, {
|
|
9039
9039
|
className: "flex flex-col overflow-hidden",
|
|
9040
|
-
children: [/* @__PURE__ */ Z(
|
|
9040
|
+
children: [/* @__PURE__ */ Z(Nr, {
|
|
9041
9041
|
className: "flex flex-col gap-4",
|
|
9042
9042
|
children: [/* @__PURE__ */ X("h3", {
|
|
9043
9043
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -9054,7 +9054,7 @@ var ym = R(vm), bm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9054
9054
|
})
|
|
9055
9055
|
}, e.id))
|
|
9056
9056
|
})]
|
|
9057
|
-
}), /* @__PURE__ */ Z(
|
|
9057
|
+
}), /* @__PURE__ */ Z(hi, {
|
|
9058
9058
|
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",
|
|
9059
9059
|
children: [/* @__PURE__ */ X("div", {
|
|
9060
9060
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9521,7 +9521,7 @@ function oh(e, t) {
|
|
|
9521
9521
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9522
9522
|
}
|
|
9523
9523
|
async function sh(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9524
|
-
oh(await
|
|
9524
|
+
oh(await yr([{
|
|
9525
9525
|
name: "Data",
|
|
9526
9526
|
rows: ih({
|
|
9527
9527
|
columns: e,
|
|
@@ -9543,7 +9543,7 @@ function lh(e, t, n) {
|
|
|
9543
9543
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9544
9544
|
}
|
|
9545
9545
|
async function uh(e, t) {
|
|
9546
|
-
oh(await
|
|
9546
|
+
oh(await yr(e.map((e) => ({
|
|
9547
9547
|
name: e.name,
|
|
9548
9548
|
rows: ih(e)
|
|
9549
9549
|
}))), `${t}.xlsx`);
|
|
@@ -9604,23 +9604,23 @@ function ph({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9604
9604
|
return K(() => n ? [
|
|
9605
9605
|
{
|
|
9606
9606
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9607
|
-
icon:
|
|
9607
|
+
icon: Di,
|
|
9608
9608
|
onClick: () => a("png")
|
|
9609
9609
|
},
|
|
9610
9610
|
{
|
|
9611
9611
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9612
|
-
icon:
|
|
9612
|
+
icon: Di,
|
|
9613
9613
|
onClick: () => a("jpg")
|
|
9614
9614
|
},
|
|
9615
9615
|
{ type: "separator" },
|
|
9616
9616
|
{
|
|
9617
9617
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9618
|
-
icon:
|
|
9618
|
+
icon: aa,
|
|
9619
9619
|
onClick: s
|
|
9620
9620
|
},
|
|
9621
9621
|
{
|
|
9622
9622
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9623
|
-
icon:
|
|
9623
|
+
icon: aa,
|
|
9624
9624
|
onClick: c
|
|
9625
9625
|
}
|
|
9626
9626
|
] : [], [
|
|
@@ -9850,7 +9850,7 @@ function vh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9850
9850
|
//#endregion
|
|
9851
9851
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9852
9852
|
function yh({ 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 }) {
|
|
9853
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
9853
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = Hr(), I = (e) => {
|
|
9854
9854
|
T(e), e || A(!1);
|
|
9855
9855
|
}, 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 = !!C, ae = !d && e.trim().length > 0 && (p ? !!h : M), oe = ae || te || L || ne || re, se = !!l || ie || !!oe, ce = !v && (w || E), le = 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", ce && "delay-0 !opacity-100"), ue = 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]", ce && "delay-0 !grid-cols-[1fr]"), de = vh({
|
|
9856
9856
|
title: e,
|
|
@@ -9981,7 +9981,7 @@ function yh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9981
9981
|
}) : null,
|
|
9982
9982
|
ie ? /* @__PURE__ */ X(nr, {
|
|
9983
9983
|
label: v ? j.actions.collapse : j.actions.expand,
|
|
9984
|
-
icon: v ? ur :
|
|
9984
|
+
icon: v ? ur : Hi,
|
|
9985
9985
|
variant: "ghost",
|
|
9986
9986
|
size: "md",
|
|
9987
9987
|
hideLabel: !0,
|
|
@@ -10009,7 +10009,7 @@ function yh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10009
10009
|
onCloseAutoFocus: he,
|
|
10010
10010
|
children: k && re ? /* @__PURE__ */ X("div", {
|
|
10011
10011
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
10012
|
-
children: /* @__PURE__ */ X(
|
|
10012
|
+
children: /* @__PURE__ */ X(Ui, {
|
|
10013
10013
|
content: _,
|
|
10014
10014
|
format: "markdown"
|
|
10015
10015
|
})
|
|
@@ -10052,7 +10052,7 @@ function yh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10052
10052
|
className: "mx-1 rounded-sm px-2",
|
|
10053
10053
|
children: /* @__PURE__ */ Z("div", {
|
|
10054
10054
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
10055
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10055
|
+
children: [/* @__PURE__ */ X(H, { icon: mr }), /* @__PURE__ */ X("span", {
|
|
10056
10056
|
className: "flex-1 text-base font-medium",
|
|
10057
10057
|
children: j.ai.dataDownload.title
|
|
10058
10058
|
})]
|
|
@@ -10074,7 +10074,7 @@ function yh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10074
10074
|
className: B("text-f1-foreground-critical"),
|
|
10075
10075
|
children: /* @__PURE__ */ Z("div", {
|
|
10076
10076
|
className: "flex w-full flex-row items-center gap-2",
|
|
10077
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10077
|
+
children: [/* @__PURE__ */ X(H, { icon: si }), /* @__PURE__ */ X("span", {
|
|
10078
10078
|
className: "flex-1",
|
|
10079
10079
|
children: j.actions.delete
|
|
10080
10080
|
})]
|
|
@@ -10208,39 +10208,39 @@ function jh(e) {
|
|
|
10208
10208
|
{
|
|
10209
10209
|
label: e.dataChart.barChartVertical,
|
|
10210
10210
|
value: "bar-vertical",
|
|
10211
|
-
icon:
|
|
10211
|
+
icon: na,
|
|
10212
10212
|
type: "bar",
|
|
10213
10213
|
orientation: "vertical"
|
|
10214
10214
|
},
|
|
10215
10215
|
{
|
|
10216
10216
|
label: e.dataChart.barChartHorizontal,
|
|
10217
10217
|
value: "bar-horizontal",
|
|
10218
|
-
icon:
|
|
10218
|
+
icon: Ai,
|
|
10219
10219
|
type: "bar",
|
|
10220
10220
|
orientation: "horizontal"
|
|
10221
10221
|
},
|
|
10222
10222
|
{
|
|
10223
10223
|
label: e.dataChart.lineChart,
|
|
10224
10224
|
value: "line",
|
|
10225
|
-
icon:
|
|
10225
|
+
icon: Zi,
|
|
10226
10226
|
type: "line"
|
|
10227
10227
|
},
|
|
10228
10228
|
{
|
|
10229
10229
|
label: e.dataChart.funnel,
|
|
10230
10230
|
value: "funnel",
|
|
10231
|
-
icon:
|
|
10231
|
+
icon: yi,
|
|
10232
10232
|
type: "funnel"
|
|
10233
10233
|
},
|
|
10234
10234
|
{
|
|
10235
10235
|
label: e.dataChart.pieChart,
|
|
10236
10236
|
value: "pie",
|
|
10237
|
-
icon:
|
|
10237
|
+
icon: Vi,
|
|
10238
10238
|
type: "pie"
|
|
10239
10239
|
},
|
|
10240
10240
|
{
|
|
10241
10241
|
label: e.dataChart.table,
|
|
10242
10242
|
value: "table",
|
|
10243
|
-
icon:
|
|
10243
|
+
icon: aa,
|
|
10244
10244
|
type: "table"
|
|
10245
10245
|
}
|
|
10246
10246
|
];
|
|
@@ -10408,7 +10408,7 @@ function Rh(e) {
|
|
|
10408
10408
|
return Mm(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10409
10409
|
}
|
|
10410
10410
|
function zh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
10411
|
-
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
10411
|
+
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = Hr(), y = !Mm(e.chart), b = y ? Mh : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = mh(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Fh(e, T) : void 0, [
|
|
10412
10412
|
e,
|
|
10413
10413
|
T,
|
|
10414
10414
|
y
|
|
@@ -10640,11 +10640,11 @@ function qh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10640
10640
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10641
10641
|
return K(() => e ? [{
|
|
10642
10642
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10643
|
-
icon:
|
|
10643
|
+
icon: aa,
|
|
10644
10644
|
onClick: l
|
|
10645
10645
|
}, {
|
|
10646
10646
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10647
|
-
icon:
|
|
10647
|
+
icon: aa,
|
|
10648
10648
|
onClick: u
|
|
10649
10649
|
}] : [], [
|
|
10650
10650
|
e,
|
|
@@ -10972,7 +10972,7 @@ function cg({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10972
10972
|
if (Math.hypot(t.clientX - n, t.clientY - r) < rg) return;
|
|
10973
10973
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10974
10974
|
let a = k.current.get(e)?.title ?? "";
|
|
10975
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10975
|
+
a && window.dispatchEvent(new CustomEvent(la, { detail: {
|
|
10976
10976
|
id: e,
|
|
10977
10977
|
title: a,
|
|
10978
10978
|
onAskAi: c,
|
|
@@ -10986,7 +10986,7 @@ function cg({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10986
10986
|
}, o = (e) => {
|
|
10987
10987
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
10988
10988
|
let t = A.current, n = j.current;
|
|
10989
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
10989
|
+
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(Yr));
|
|
10990
10990
|
}, s = (e) => {
|
|
10991
10991
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = I(e.clientX, e.clientY)), o(!0);
|
|
10992
10992
|
}, u = () => o(!1);
|
|
@@ -11164,7 +11164,7 @@ function lg({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11164
11164
|
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",
|
|
11165
11165
|
"aria-label": "Drag to reorder",
|
|
11166
11166
|
children: /* @__PURE__ */ X(H, {
|
|
11167
|
-
icon:
|
|
11167
|
+
icon: Zr,
|
|
11168
11168
|
size: "xs"
|
|
11169
11169
|
})
|
|
11170
11170
|
}) : null, s]
|
|
@@ -11334,10 +11334,10 @@ function Cg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11334
11334
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11335
11335
|
function wg({ onExportExcel: e, isExporting: t }) {
|
|
11336
11336
|
let { t: n } = z();
|
|
11337
|
-
return /* @__PURE__ */ X(
|
|
11337
|
+
return /* @__PURE__ */ X(Gr, {
|
|
11338
11338
|
items: [{
|
|
11339
11339
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11340
|
-
icon:
|
|
11340
|
+
icon: mr,
|
|
11341
11341
|
onClick: t ? () => {} : e
|
|
11342
11342
|
}],
|
|
11343
11343
|
icon: Ws
|
|
@@ -12306,7 +12306,7 @@ var y_ = ({ onClose: e }) => {
|
|
|
12306
12306
|
className: "dark flex-shrink-0",
|
|
12307
12307
|
children: /* @__PURE__ */ X(V, {
|
|
12308
12308
|
variant: "outline",
|
|
12309
|
-
icon:
|
|
12309
|
+
icon: Sr,
|
|
12310
12310
|
size: "sm",
|
|
12311
12311
|
hideLabel: !0,
|
|
12312
12312
|
onClick: e,
|
|
@@ -12323,7 +12323,7 @@ var y_ = ({ onClose: e }) => {
|
|
|
12323
12323
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12324
12324
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12325
12325
|
onClick: () => n(e),
|
|
12326
|
-
children: /* @__PURE__ */ X(
|
|
12326
|
+
children: /* @__PURE__ */ X(Fr, {
|
|
12327
12327
|
href: e.href,
|
|
12328
12328
|
children: e.label
|
|
12329
12329
|
})
|
|
@@ -12391,7 +12391,7 @@ var y_ = ({ onClose: e }) => {
|
|
|
12391
12391
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12392
12392
|
className: "flex-shrink-0",
|
|
12393
12393
|
"aria-hidden": "true",
|
|
12394
|
-
children: /* @__PURE__ */ X(
|
|
12394
|
+
children: /* @__PURE__ */ X(_r, {
|
|
12395
12395
|
type: g,
|
|
12396
12396
|
size: "sm"
|
|
12397
12397
|
})
|
|
@@ -12764,7 +12764,7 @@ var N_ = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
12764
12764
|
newButtonStyles: f,
|
|
12765
12765
|
children: /* @__PURE__ */ X(rv, {
|
|
12766
12766
|
...t,
|
|
12767
|
-
children: /* @__PURE__ */ X(
|
|
12767
|
+
children: /* @__PURE__ */ X(Qr, {
|
|
12768
12768
|
handler: l,
|
|
12769
12769
|
children: /* @__PURE__ */ X(Ea, { children: /* @__PURE__ */ X(lt, {
|
|
12770
12770
|
...m,
|
|
@@ -12783,4 +12783,4 @@ var N_ = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
12783
12783
|
})
|
|
12784
12784
|
});
|
|
12785
12785
|
//#endregion
|
|
12786
|
-
export { Xa as AiChatTranslationsProvider, be as AreaChart, Oo as Await, g as BarChart, it as BarChartSkeleton, Bt as CardSelectableContainer, p as CategoryBarChart,
|
|
12786
|
+
export { Xa as AiChatTranslationsProvider, be as AreaChart, Oo as Await, g as BarChart, it as BarChartSkeleton, Bt as CardSelectableContainer, p as CategoryBarChart, Ur as ChatSpinner, No as Chip, Va as CollapsibleGroup, ae as ComboChart, wt as DATA_COLLECTION_URL_PARAMS, ct as DATA_COLLECTION_URL_PARAM_PREFIX, Ml as Dashboard, $t as DataChartEmptyStateView, fn as DataTestIdWrapper, yt as DndProvider, Er as DropOverlay, $n as EmojiImage, uu as F0Accordion, Ke as F0ActionBar, Mi as F0ActionItem, kr as F0AiChat, Aa as F0AiChatHeader, Oa as F0AiChatHistory, Rr as F0AiChatProvider, Ca as F0AiChatTextArea, ya as F0AiChatUsageLimitsButton, Ja as F0AiFileAttachments, Ji as F0AiFilePreviewsProvider, xr as F0AiFormRegistryProvider, Ha as F0AiInsightCard, Na as F0AiMask, Ka as F0AiMessageSources, Ta as F0AiMessagesContainer, pr as F0AiPong, Ga as F0AiProcessingOverlay, ja as F0AiProposalCard, Ra as F0AiTableCard, dc as F0Alert, Pg as F0AnalyticsDashboard, Wi as F0AudioPlayer, jr as F0AudioPlayerCard, Pa as F0AuraVoiceAnimation, uo as F0Avatar, _r as F0AvatarAlert, so as F0AvatarCompany, Oi as F0AvatarDate, Co as F0AvatarEmoji, wo as F0AvatarFile, fo as F0AvatarIcon, _o as F0AvatarList, ho as F0AvatarModule, po as F0AvatarPerson, vo as F0AvatarTeam, eu as F0BigNumber, wm as F0BookAMeetingCard, io as F0Box, V as F0Button, Yi as F0ButtonDropdown, zs as F0ButtonToggle, Sa as F0CanvasCard, $i as F0CanvasPanel, br as F0Card, ni as F0CardRow, wa as F0ChatComposer, ds as F0Checkbox, mu as F0ChipList, Da as F0ClarifyingPanel, Kt as F0DataChart, ke as F0DatePicker, D as F0DatePickerInline, bm as F0DemoCard, Xi as F0Dialog, Te as F0DialogAlikeContext, b as F0DialogAlikeProvider, Ro as F0DialogContext, ns as F0DialogProvider, mc as F0DocumentViewer, xu as F0Drawer, un as F0DurationInput, Ls as F0EventCatcherProvider, Sm as F0FAQCard, Wr as F0FileItem, wu as F0FilterPickerContent, d as F0Form, Ru as F0FormField, Sl as F0GridStack, za as F0HILActionConfirmation, m as F0Heading, H as F0Icon, Fr as F0Link, Cm as F0ModuleCard, en as F0NotesTextEditor, he as F0NotesTextEditorSkeleton, N as F0NumberInput, T as F0NumberInputInline, vr as F0OneIcon, Ri as F0OneSwitch, fc as F0PdfViewer, ov as F0Provider, Tm as F0QuestionCardMultiStep, Ui as F0RichTextDisplay, te as F0RichTextEditor, hs as F0SearchInput, js as F0Select, F as F0SelectInline, wd as F0Slider, Bd as F0TableOfContentPopover, Wo as F0TagAlert, Po as F0TagBalance, qo as F0TagCompany, Uo as F0TagDot, ms as F0TagList, Ho as F0TagPerson, Eo as F0TagRaw, Ao as F0TagStatus, _s as F0TagTeam, uc as F0Text, ce as F0TextAreaInput, L as F0TextAreaInputInline, Ki as F0TextInput, I as F0TextInputInline, ve as F0TimelineRow, gc as F0VideoPlayer, sd as F0WizardForm, fs as F1SearchBox, _ as FILE_TYPES, Pi as FileItem, Ea as FormCardValueFormatterProvider, Ie as FunnelChartSkeleton, lo as GROUP_ID_SYMBOL, xo as GROUP_KEY_SEPARATOR, Jt as GaugeChartSkeleton, cn as HeatmapChartSkeleton, Jl as HomeLayout, l as InlineFieldRow, Qt as InlineFieldRowList, Pr as Input, Gl as Layout, _t as LineChart, He as LineChartSkeleton, at as MAX_URL_FILTER_VALUES, c as NotesTextEditor, Xt as NotesTextEditorSkeleton, pe as NumberInput, rs as OneCalendar, ir as OneEllipsis, y as OneEmptyState, Ds as OneFilterPicker, o as PieChart, rn as PieChartSkeleton, ai as PongBall, Je as PrivacyModeProvider, sm as ProductBlankslate, qt as ProductCard, um as ProductModal, fm as ProductWidget, mt as ProgressBarChart, ee as RadarChart, _e as RadarChartSkeleton, Li as RichTextDisplay, se as RichTextEditor, u as ScatterChartSkeleton, Kl as StandardLayout, Cp as SurveyAllQuestionsLoadingSkeleton, Qp as SurveyAnsweringForm, hp as SurveyFormBuilder, tm as SurveySampleQuestion, wp as SurveySteppedLoadingSkeleton, ys as Tag, is as TagCounter, v as Textarea, Wa as ThreadItem, Fa as ThreadListSkeleton, ev as ToastProvider, ql as TwoColumnLayout, w as UPLOAD_INPUT_ID, P as UpsellRequestResponseDialog, hm as UpsellingAlert, _m as UpsellingBanner, E as UpsellingButton, ym as UpsellingPopover, ne as VerticalBarChart, os as WeekStartDay, va as WelcomeScreenCardsRow, bt as actionBarStatuses, pa as actionItemStatuses, Kr as adaptDataAdapterToInfiniteScroll, La as aiChatFileFromShowFilesItem, fa as aiChatFileFromUploadedFile, Ia as aiChatFilesFromMessage, ba as aiChatMessageText, Ya as aiTranslations, _u as alertVariantOptions, iu as audioPlayerSizes, Yl as avatarVariants, Le as buildDataCollectionUrlParams, pn as buildTranslations, ru as buttonDropdownModes, nu as buttonDropdownSizes, tu as buttonDropdownVariants, Ol as buttonSizes, dt as buttonToggleColors, ze as buttonToggleSizes, kt as buttonToggleVariants, Dl as buttonVariants, du as cardAlertVariants, zr as cardImageAspectRatios, Xr as cardImageFits, ua as cardImageSizes, hr as cardLayouts, ko as chartColorTokens, jo as chipVariants, Gd as computeSectionEndIds, hc as configurePdfWorker, Ma as contentTypes, Gt as createAtlaskitDriver, Fo as createDataSourceDefinition, Ou as createF0FormDefinitionTester, Du as createF0FormTester, Tl as createPageLayoutBlock, El as createPageLayoutBlockGroup, _a as createPersonMentionSource, vu as dataCollectionLocalStorageHandler, hu as datePickerInlineDismissReasons, gu as datepickerSizes, ro as defaultTranslations, Ar as defineAvailableForm, Tu as describeFormSchema, M as dialog, M as dialogs, Pt as drawers, ta as durationInputSizes, Bi as durationUnits, ti as escapeUserText, ie as evaluateRenderIf, gn as experimental, fr as f0FileItemSizes, wr as f0FormField, Jr as fieldsToSeconds, Vd as flattenElements, zi as formatPlaybackTime, pd as forms, h as generateAnchorId, $o as getAnimationVariants, oa as getDataCollectionStorageKey, zo as getDataSourcePaginationType, rr as getEmojiLabel, Ir as getF0Config, Fs as getGranularityDefinition, Cs as getGranularityDefinitions, Bs as getGranularitySimpleDefinition, gt as getSchemaDefinition, ks as granularityDefinitions, Gi as hasF0Config, Mr as inferFieldType, Wd as injectSectionEnds, yo as isInfiniteScrollPagination, bo as isPageBasedPagination, mi as isZodType, au as linkVariants, xa as markdownRenderers, ia as mergeDataCollectionFilters, oo as modules, Za as oneIconSizes, Yt as parseDataCollectionUrlParams, pc as pdfScales, Lt as predefinedPresets, Ps as rangeSeparator, sa as readDataCollectionStorage, Ud as reconstructElements, bi as resolveDataCollectionFilters, gs as resolveGranularityDefinition, Dt as resolveItemNeighbors, Qe as resolveWindowNeighbors, lr as secondsToFields, Ci as secondsToVisibleFields, md as selectInlineDismissReasons, Oe as selectSizes, Me as selectVariants, ln as setDataCollectionUrlParams, hd as sliderTooltipModes, Ue as syncDataCollectionUrlParams, Od as tagDotColors, Ed as timelineRowApproverStatuses, Td as timelineRowStatuses, Dd as timelineRowTagVariants, Rt as toasts, _i as unwrapZodSchema, Ba as usageLimitsPopoverSides, Hr as useAiChat, ka as useAiChatTranslations, ea as useAudioPlayer, qa as useCanvasEntity, Ua as useChatHistory, mo as useData, Es as useDataSource, n as useDataSourceItemNavigation, Si as useDerivedTranscription, Ot as useDndEvents, zt as useDraggable, Ge as useDroppableList, tr as useEmojiConfetti, Br as useF0AiFormRegistry, ts as useF0Dialog, A as useF0DialogAlikeContext, ge as useF0Form, Et as useF0FormDefinition, ga as useFormCardValueFormatter, av as useFormComponent, es as useGroups, Fg as useIsDesktop, Ig as useIsMobile, Ut as useItemNeighbors, tt as usePrivacyMode, er as useReducedMotion, a as useSchemaDefinition, Io as useSelectable, ha as useSetFormCardValueFormatter, ma as useToolCallId, Qa as useXRay, R as withDataTestId, an as writeDataCollectionStorage };
|