@factorialco/f0-react 12.12.0 → 12.13.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-b34U-zTc.js → ArchiveThumbnail-BZgITTo2.js} +4 -4
- package/dist/{ArchiveViewer-BpmryW7A.js → ArchiveViewer-BHu224N3.js} +2 -2
- package/dist/{ChatPostComposerDialog-Cr207fXs.js → ChatPostComposerDialog-CsxxDqxh.js} +2 -2
- package/dist/{CoachmarkProvider-CsytVD-X.js → CoachmarkProvider-9PVhiN-N.js} +17650 -17650
- package/dist/{CodeThumbnail-8NiQ3uzU.js → CodeThumbnail-ChpXV1S-.js} +1 -1
- package/dist/{CodeViewer-BNZqt-5s.js → CodeViewer-BKw04W0G.js} +5 -5
- package/dist/{DocumentToolbar-DUe9R1rU.js → DocumentToolbar-mB3bK8uS.js} +1 -1
- package/dist/{DocxViewer-BUMy2iL7.js → DocxViewer-Dr8WXU1s.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CiUTeBwG.js → F0AiProcessingOverlay-BUynKfyI.js} +542 -542
- package/dist/{F0Alert-Ca8sBfXN.js → F0Alert-ALRcL0Af.js} +10 -10
- package/dist/F0AudioPlayer-Cd9nIQX5.js +2 -0
- package/dist/{F0AudioPlayer-BefDLQA2.js → F0AudioPlayer-vRJmmSpp.js} +423 -331
- package/dist/{F0CanvasPanel-BOo_mxBl.js → F0CanvasPanel-D1QmpvzX.js} +799 -780
- package/dist/{F0DocumentViewer-CaYAO9ok.js → F0DocumentViewer-CEuF9b_u.js} +1 -1
- package/dist/{F0DocumentViewer-h0XY5tgT.js → F0DocumentViewer-ChCqzIK3.js} +2 -2
- package/dist/{F0Map-b1uYlF_H.js → F0Map-CWhV5A03.js} +10 -10
- package/dist/F0VideoPlayer-DUw-DouS.js +1 -0
- package/dist/{F0VideoPlayer-D85XCpqh.js → F0VideoPlayer-wTc25_qN.js} +62 -62
- package/dist/{HtmlViewer-DxOnMV30.js → HtmlViewer-Uxb8n2vn.js} +3 -3
- package/dist/{Map-BOMgctnS.js → Map-95w5slTZ.js} +9 -9
- package/dist/{PdfThumbnail-98PDy4ud.js → PdfThumbnail-BYrhsyMw.js} +1 -1
- package/dist/{PdfViewer-nBnKrTYD.js → PdfViewer-DUxhQr-O.js} +5 -5
- package/dist/{SheetViewer-CD9SHbXJ.js → SheetViewer-C9Rbh_xJ.js} +12 -12
- package/dist/{TextViewer-DxRBCXzV.js → TextViewer-DP9lYxAB.js} +1 -1
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +14 -2
- package/dist/experimental.js +4984 -4897
- package/dist/f0.d.ts +6 -127
- package/dist/f0.js +171 -172
- package/dist/{highlight-CqFL-_MG.js → highlight-Bjt-wXg6.js} +7 -7
- package/dist/{maplibre-Ip4Qe9dM.js → maplibre-tJ3UolSF.js} +1 -1
- package/dist/{pdfWorker-DMjHHAyP.js → pdfWorker-BBnYtb1A.js} +1 -1
- package/dist/{types-geibVrTM.d.ts → types-oJKIDe-E.d.ts} +122 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-CNb4kXOk.js +0 -3
- package/dist/F0SegmentedControl-DXoAzTmH.js +0 -103
- package/dist/F0VideoPlayer-_zLFiEIp.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $n as t, $r as n, A as r, An as i, Bn as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Fn as p, Ft as m, Gn as h, Gt as g, Hn as _, Hr as v, Ht as y, In as b, Ir as x, It as S, Jn as C, Jr as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as ee, On as te, P as ne, Pn as I, Pr as re, Pt as ie, Qn as ae, Qt as oe, Rn as se, Rr as ce, Rt as le, S as ue, Sn as de, Sr as fe, St as pe, T as me, Tn as he, Ur as ge, Ut as _e, Vn as ve, Vr as ye, Vt as be, Wn as xe, Wr as Se, Wt as Ce, X as we, Xn as Te, Yn as Ee, Yr as De, Yt as Oe, Z as ke, Zn as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, ci as He, cn as Ue, cr as We, d as Ge, dn as Ke, dr as qe, ei as Je, en as Ye, er as Xe, f as Ze, fi as Qe, fn as $e, fr as et, g as tt, gn as nt, gr as rt, gt as it, h as at, hn as ot, hr as st, ht as ct, i as lt, ir as ut, j as dt, jn as ft, k as pt, kn as mt, kt as ht, l as gt, li as _t, ln as vt, lr as yt, mn as bt, mr as xt, nn as St, nr as Ct, on as wt, or as Tt, ot as Et, p as Dt, pn as Ot, pr as kt, qn as At, qr as jt, qt as Mt, rn as Nt, rr as Pt, s as Ft, si as It, sn as Lt, sr as Rt, t as zt, ti as Bt, tn as Vt, tr as Ht, u as Ut, un as Wt, ur as Gt, ut as Kt, v as qt, vn as Jt, vr as Yt, vt as Xt, w as Zt, wn as Qt, x as $t, xn as en, xr as tn, xt as nn, y as rn, yn as an, yr as on, yt as sn, zn as cn, zr as ln, zt as un } from "./CoachmarkProvider-
|
|
2
|
+
import { $n as t, $r as n, A as r, An as i, Bn as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Fn as p, Ft as m, Gn as h, Gt as g, Hn as _, Hr as v, Ht as y, In as b, Ir as x, It as S, Jn as C, Jr as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as ee, On as te, P as ne, Pn as I, Pr as re, Pt as ie, Qn as ae, Qt as oe, Rn as se, Rr as ce, Rt as le, S as ue, Sn as de, Sr as fe, St as pe, T as me, Tn as he, Ur as ge, Ut as _e, Vn as ve, Vr as ye, Vt as be, Wn as xe, Wr as Se, Wt as Ce, X as we, Xn as Te, Yn as Ee, Yr as De, Yt as Oe, Z as ke, Zn as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, ci as He, cn as Ue, cr as We, d as Ge, dn as Ke, dr as qe, ei as Je, en as Ye, er as Xe, f as Ze, fi as Qe, fn as $e, fr as et, g as tt, gn as nt, gr as rt, gt as it, h as at, hn as ot, hr as st, ht as ct, i as lt, ir as ut, j as dt, jn as ft, k as pt, kn as mt, kt as ht, l as gt, li as _t, ln as vt, lr as yt, mn as bt, mr as xt, nn as St, nr as Ct, on as wt, or as Tt, ot as Et, p as Dt, pn as Ot, pr as kt, qn as At, qr as jt, qt as Mt, rn as Nt, rr as Pt, s as Ft, si as It, sn as Lt, sr as Rt, t as zt, ti as Bt, tn as Vt, tr as Ht, u as Ut, un as Wt, ur as Gt, ut as Kt, v as qt, vn as Jt, vr as Yt, vt as Xt, w as Zt, wn as Qt, x as $t, xn as en, xr as tn, xt as nn, y as rn, yn as an, yr as on, yt as sn, zn as cn, zr as ln, zt as un } from "./CoachmarkProvider-9PVhiN-N.js";
|
|
3
3
|
import { a as L, i as dn, n as fn, o as pn, r as R, t as mn } from "./i18n-provider-Bdgo-LeP.js";
|
|
4
4
|
import { n as hn, t as z } from "./skeleton-AC0Fb8zj.js";
|
|
5
5
|
import { A as gn, C as _n, D as vn, F as yn, I as bn, L as B, M as xn, N as Sn, O as Cn, P as wn, R as Tn, S as En, _ as Dn, b as On, c as kn, f as An, g as jn, h as Mn, j as Nn, k as Pn, l as Fn, m as In, p as Ln, v as Rn, w as zn, x as Bn, y as Vn } from "./tooltip-BX4dSfeL.js";
|
|
6
6
|
import { A as Hn, M as Un, N as Wn, U as Gn, b as Kn, f as qn, h as Jn, j as Yn, m as Xn, n as Zn, p as Qn, r as $n, t as V, w as er, wt as tr, y as nr, z as rr } from "./F0Button-d91IgOnc.js";
|
|
7
|
-
import { A as ir, C as ar, D as or, E as sr, F as cr, I as lr, L as ur, M as dr, N as fr, O as pr, P as mr, R as hr, S as gr, T as _r, _ as vr, a as yr, b as br, c as xr, d as Sr, f as Cr, g as wr, h as Tr, i as Er, j as Dr, k as Or, l as kr, m as Ar, n as jr, o as Mr, p as Nr, r as Pr, s as Fr, t as Ir, u as Lr, v as Rr, w as zr, x as Br, y as Vr, z as Hr } from "./F0AiProcessingOverlay-
|
|
8
|
-
import { $
|
|
7
|
+
import { A as ir, C as ar, D as or, E as sr, F as cr, I as lr, L as ur, M as dr, N as fr, O as pr, P as mr, R as hr, S as gr, T as _r, _ as vr, a as yr, b as br, c as xr, d as Sr, f as Cr, g as wr, h as Tr, i as Er, j as Dr, k as Or, l as kr, m as Ar, n as jr, o as Mr, p as Nr, r as Pr, s as Fr, t as Ir, u as Lr, v as Rr, w as zr, x as Br, y as Vr, z as Hr } from "./F0AiProcessingOverlay-BUynKfyI.js";
|
|
8
|
+
import { $n as Ur, $o as Wr, $s as Gr, Ar as Kr, B as qr, C as Jr, D as Yr, Da as Xr, E as Zr, Ea as Qr, Er as $r, Ga as ei, Gt as ti, Ha as ni, Hr as ri, Ht as ii, Ir as ai, Jt as oi, Ka as si, Kr as ci, Ls as li, Mr as ui, Pr as di, Qn as fi, Qs as pi, Ra as mi, S as hi, Ss as gi, T as _i, Tr as vi, Ur as yi, Us as bi, Ut as xi, V as Si, Va as Ci, Vt as wi, Wa as Ti, Wr as Ei, Ws as Di, Wt as Oi, Xa as ki, Xr as Ai, Yr as ji, Yt as Mi, Za as Ni, Zn as Pi, Zr as Fi, Zs as Ii, _c as Li, _s as Ri, ac as zi, an as Bi, ar as Vi, b as Hi, bc as Ui, bo as Wi, cn as Gi, dr as Ki, ec as qi, ei as Ji, er as Yi, fr as Xi, fs as Zi, ga as Qi, go as $i, gs as ea, hr as ta, ii as na, in as ra, jo as ia, jr as aa, ln as oa, ls as sa, mo as ca, mr as la, n as ua, nc as da, ni as fa, nr as pa, on as ma, oo as ha, or as ga, os as _a, pr as va, qo as ya, qr as ba, qt as xa, rc as Sa, ri as Ca, rn as wa, rr as Ta, rt as Ea, sn as Da, so as Oa, t as ka, tc as Aa, ti as ja, tr as Ma, uc as Na, ur as Pa, us as Fa, w as Ia, x as La, y as Ra, zs as za, zt as Ba } from "./F0CanvasPanel-D1QmpvzX.js";
|
|
9
9
|
import { a as Va, i as Ha, n as Ua, o as Wa, r as Ga, t as H } from "./F0Icon-DmCBV0gK.js";
|
|
10
10
|
import { t as Ka } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
11
11
|
import { A as qa, C as Ja, D as Ya, H as Xa, N as Za, S as Qa, U as $a, a as eo, b as to, f as no, g as ro, h as io, i as ao, k as oo, l as so, m as co, n as lo, r as uo, t as fo, u as po } from "./useData-BYkiGUHX.js";
|
|
@@ -16,12 +16,11 @@ import { t as Ps } from "./LockLocked-gdodYvT_.js";
|
|
|
16
16
|
import { t as Fs } from "./purify.es-ZpfdAuNV.js";
|
|
17
17
|
import { A as Is, B as Ls, H as Rs, L as zs, M as Bs, N as Vs, P as Hs, R as Us, a as Ws, ft as Gs, i as Ks, j as qs, k as Js, t as Ys, z as Xs } from "./popover-ics24JxK.js";
|
|
18
18
|
import { n as Zs, r as Qs } from "./scrollarea-cxaFAWG5.js";
|
|
19
|
-
import { a as $s, c as ec, i as tc,
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-h0XY5tgT.js";
|
|
19
|
+
import { a as $s, c as ec, i as tc, l as nc, n as rc, o as ic, r as ac, s as oc, t as sc, u as cc } from "./F0AudioPlayer-vRJmmSpp.js";
|
|
20
|
+
import { t as lc } from "./F0Alert-ALRcL0Af.js";
|
|
21
|
+
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-ChCqzIK3.js";
|
|
23
22
|
import { t as pc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as mc } from "./F0VideoPlayer-
|
|
23
|
+
import { t as mc } from "./F0VideoPlayer-wTc25_qN.js";
|
|
25
24
|
import * as U from "react";
|
|
26
25
|
import hc, { Children as gc, Fragment as _c, createContext as vc, forwardRef as yc, isValidElement as bc, memo as xc, useCallback as W, useContext as Sc, useEffect as G, useId as Cc, useImperativeHandle as wc, useLayoutEffect as Tc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Ec } from "react";
|
|
27
26
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,7 +44,7 @@ var Ac = {
|
|
|
45
44
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
46
45
|
children: e
|
|
47
46
|
}, t));
|
|
48
|
-
return /* @__PURE__ */ X(
|
|
47
|
+
return /* @__PURE__ */ X(Ni, {
|
|
49
48
|
layout: "home",
|
|
50
49
|
children: /* @__PURE__ */ Z("div", {
|
|
51
50
|
ref: r,
|
|
@@ -79,7 +78,7 @@ var Ac = {
|
|
|
79
78
|
}), Mc = Wa({
|
|
80
79
|
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
80
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
82
|
-
}), Nc = hc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
81
|
+
}), Nc = hc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(Ni, {
|
|
83
82
|
layout: "standard",
|
|
84
83
|
children: /* @__PURE__ */ X("section", {
|
|
85
84
|
ref: a,
|
|
@@ -2954,7 +2953,7 @@ var Al = Tl("Dashboard", kl), jl = L(hn("Dashboard", Al)), Ml = Wa({
|
|
|
2954
2953
|
...l,
|
|
2955
2954
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2956
2955
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2957
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2956
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(Xr, {
|
|
2958
2957
|
items: Nl(d),
|
|
2959
2958
|
"data-testid": "actions-dropdown"
|
|
2960
2959
|
}) : null]
|
|
@@ -3139,7 +3138,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3139
3138
|
})]
|
|
3140
3139
|
});
|
|
3141
3140
|
Xl.displayName = "F0BigNumber";
|
|
3142
|
-
var Ql =
|
|
3141
|
+
var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
3143
3142
|
"default",
|
|
3144
3143
|
"outline",
|
|
3145
3144
|
"neutral"
|
|
@@ -3147,20 +3146,20 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3147
3146
|
className: "flex items-center gap-2",
|
|
3148
3147
|
children: e.map((e, t) => {
|
|
3149
3148
|
switch (e.type) {
|
|
3150
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3149
|
+
case "segmentedControl": return /* @__PURE__ */ X(ac, {
|
|
3151
3150
|
items: e.items,
|
|
3152
3151
|
value: e.value,
|
|
3153
3152
|
onChange: e.onChange,
|
|
3154
3153
|
disabled: e.disabled,
|
|
3155
3154
|
ariaLabel: e.ariaLabel
|
|
3156
3155
|
}, t);
|
|
3157
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3156
|
+
case "dropdown": return /* @__PURE__ */ X(Xr, {
|
|
3158
3157
|
items: e.items,
|
|
3159
3158
|
disabled: e.disabled,
|
|
3160
3159
|
children: /* @__PURE__ */ X(V, {
|
|
3161
3160
|
variant: "outline",
|
|
3162
3161
|
size: "sm",
|
|
3163
|
-
icon:
|
|
3162
|
+
icon: li,
|
|
3164
3163
|
label: e.ariaLabel,
|
|
3165
3164
|
hideLabel: !0,
|
|
3166
3165
|
disabled: e.disabled
|
|
@@ -3170,7 +3169,7 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3170
3169
|
})
|
|
3171
3170
|
}), ou = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3172
3171
|
let r = Jn(), i = R().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3173
|
-
return /* @__PURE__ */ X(
|
|
3172
|
+
return /* @__PURE__ */ X(Ji, {
|
|
3174
3173
|
open: t,
|
|
3175
3174
|
onOpenChange: n,
|
|
3176
3175
|
asChild: !0,
|
|
@@ -3178,7 +3177,7 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3178
3177
|
className: "flex flex-col",
|
|
3179
3178
|
children: [/* @__PURE__ */ Z("div", {
|
|
3180
3179
|
className: "flex items-center",
|
|
3181
|
-
children: [/* @__PURE__ */ X(
|
|
3180
|
+
children: [/* @__PURE__ */ X(fa, {
|
|
3182
3181
|
asChild: !0,
|
|
3183
3182
|
children: /* @__PURE__ */ X("button", {
|
|
3184
3183
|
type: "button",
|
|
@@ -3196,7 +3195,7 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3196
3195
|
children: e.summary
|
|
3197
3196
|
}) : null,
|
|
3198
3197
|
a ? /* @__PURE__ */ X(au, { actions: e.actions }) : null,
|
|
3199
|
-
/* @__PURE__ */ X(
|
|
3198
|
+
/* @__PURE__ */ X(fa, {
|
|
3200
3199
|
asChild: !0,
|
|
3201
3200
|
children: /* @__PURE__ */ X(V, {
|
|
3202
3201
|
variant: "outline",
|
|
@@ -3225,7 +3224,7 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3225
3224
|
},
|
|
3226
3225
|
transition: { duration: r ? 0 : .2 },
|
|
3227
3226
|
className: "overflow-hidden",
|
|
3228
|
-
children: /* @__PURE__ */ X(
|
|
3227
|
+
children: /* @__PURE__ */ X(ja, {
|
|
3229
3228
|
forceMount: !0,
|
|
3230
3229
|
asChild: !0,
|
|
3231
3230
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3269,7 +3268,7 @@ var Ql = sa(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3269
3268
|
});
|
|
3270
3269
|
});
|
|
3271
3270
|
cu.displayName = "F0Accordion";
|
|
3272
|
-
var lu = L(hn("F0Accordion",
|
|
3271
|
+
var lu = L(hn("F0Accordion", mi(cu, su))), uu = [
|
|
3273
3272
|
"info",
|
|
3274
3273
|
"warning",
|
|
3275
3274
|
"critical",
|
|
@@ -3340,9 +3339,9 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3340
3339
|
"positive",
|
|
3341
3340
|
"transparent"
|
|
3342
3341
|
], _u = {
|
|
3343
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3342
|
+
get: async (e) => JSON.parse(localStorage.getItem(ai(e)) ?? "{}"),
|
|
3344
3343
|
set: async (e, t) => {
|
|
3345
|
-
localStorage.setItem(
|
|
3344
|
+
localStorage.setItem(ai(e), JSON.stringify(t));
|
|
3346
3345
|
}
|
|
3347
3346
|
}, vu = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position: a = "right", size: o = "md", primaryAction: s, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
3348
3347
|
let [b, x] = J(n);
|
|
@@ -3465,11 +3464,11 @@ var wu = Cu;
|
|
|
3465
3464
|
//#endregion
|
|
3466
3465
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3467
3466
|
function Tu(e) {
|
|
3468
|
-
let t =
|
|
3467
|
+
let t = Gi(e).shape, n = [];
|
|
3469
3468
|
for (let [e, r] of Object.entries(t)) {
|
|
3470
|
-
let t = r, i =
|
|
3469
|
+
let t = r, i = ra(t);
|
|
3471
3470
|
if (!i) continue;
|
|
3472
|
-
let a =
|
|
3471
|
+
let a = ma(t, i), o = en(t, a), s = {
|
|
3473
3472
|
name: e,
|
|
3474
3473
|
type: a,
|
|
3475
3474
|
label: i.label,
|
|
@@ -3541,9 +3540,9 @@ function Du(e) {
|
|
|
3541
3540
|
let r = {
|
|
3542
3541
|
...n,
|
|
3543
3542
|
...e
|
|
3544
|
-
}, i =
|
|
3543
|
+
}, i = Gi(t), a = [];
|
|
3545
3544
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3546
|
-
let n =
|
|
3545
|
+
let n = ra(t);
|
|
3547
3546
|
n?.renderIf ? Jt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3548
3547
|
}
|
|
3549
3548
|
return a;
|
|
@@ -3587,12 +3586,12 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3587
3586
|
modal: !0,
|
|
3588
3587
|
children: /* @__PURE__ */ Z("div", {
|
|
3589
3588
|
className: "flex flex-col gap-4 py-2",
|
|
3590
|
-
children: [/* @__PURE__ */ X(
|
|
3589
|
+
children: [/* @__PURE__ */ X(Qr, {
|
|
3591
3590
|
type: n,
|
|
3592
3591
|
size: "lg"
|
|
3593
3592
|
}), /* @__PURE__ */ Z("div", {
|
|
3594
3593
|
className: "flex flex-col gap-0.5",
|
|
3595
|
-
children: [/* @__PURE__ */ X(
|
|
3594
|
+
children: [/* @__PURE__ */ X(yi, {
|
|
3596
3595
|
className: "text-xl sm:text-lg",
|
|
3597
3596
|
children: r
|
|
3598
3597
|
}), /* @__PURE__ */ X(se, {
|
|
@@ -3979,7 +3978,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3979
3978
|
onClose: r
|
|
3980
3979
|
}), _ = R(), v = e[h.currentStep], y = h.currentStep === 0, b = h.currentStep === e.length - 1, x = b ? v?.nextLabel ?? l ?? _.wizard.submit : v?.nextLabel ?? s ?? _.wizard.next, S = v?.previousLabel ?? c ?? _.wizard.previous, C = K(() => ({
|
|
3981
3980
|
label: x,
|
|
3982
|
-
icon: b ? void 0 :
|
|
3981
|
+
icon: b ? void 0 : Na,
|
|
3983
3982
|
onClick: () => void h.goNext(),
|
|
3984
3983
|
disabled: v?.isCompleted?.() === !1 || v?.hasErrors?.() === !0,
|
|
3985
3984
|
loading: h.loading
|
|
@@ -4036,14 +4035,14 @@ Ju.displayName = "F0Wizard", L(Ju);
|
|
|
4036
4035
|
//#endregion
|
|
4037
4036
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4038
4037
|
function Yu(e) {
|
|
4039
|
-
let t =
|
|
4040
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4038
|
+
let t = Gi(e).shape, n = Object.entries(t);
|
|
4039
|
+
return n.length !== 0 && n.every(([, e]) => ra(e)?.disabled === !0);
|
|
4041
4040
|
}
|
|
4042
4041
|
function Xu(e, t) {
|
|
4043
4042
|
if (t) return Object.keys(t);
|
|
4044
|
-
let n =
|
|
4043
|
+
let n = Gi(e).shape, r = /* @__PURE__ */ new Set();
|
|
4045
4044
|
for (let e of Object.values(n)) {
|
|
4046
|
-
let t =
|
|
4045
|
+
let t = ra(e);
|
|
4047
4046
|
t?.section && r.add(t.section);
|
|
4048
4047
|
}
|
|
4049
4048
|
return Array.from(r);
|
|
@@ -4051,15 +4050,15 @@ function Xu(e, t) {
|
|
|
4051
4050
|
function Zu(e, t) {
|
|
4052
4051
|
let n = e.shape, r = {};
|
|
4053
4052
|
for (let [e, i] of Object.entries(n)) {
|
|
4054
|
-
let n =
|
|
4053
|
+
let n = ra(i);
|
|
4055
4054
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4056
4055
|
}
|
|
4057
|
-
return
|
|
4056
|
+
return Ma(r);
|
|
4058
4057
|
}
|
|
4059
4058
|
function Qu(e, t, n) {
|
|
4060
4059
|
let r = t ?? {};
|
|
4061
4060
|
if (n) return n({ data: r });
|
|
4062
|
-
let i =
|
|
4061
|
+
let i = Gi(e).shape;
|
|
4063
4062
|
return Object.entries(i).every(([e, t]) => {
|
|
4064
4063
|
if (t.isOptional()) return !0;
|
|
4065
4064
|
let n = r[e];
|
|
@@ -4285,7 +4284,7 @@ function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4285
4284
|
});
|
|
4286
4285
|
}
|
|
4287
4286
|
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: f, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
|
|
4288
|
-
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() =>
|
|
4287
|
+
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Gi(v), [v]), E = K(() => Xu(v, y), [v, y]), D = W((e) => Yu(Zu(T, e)), [T]), O = $e(), k = q(b ? { ...b } : {}), A = q(s ?? 0), j = W((e) => async () => {
|
|
4289
4288
|
await O.submit();
|
|
4290
4289
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
4291
4290
|
title: y?.[e]?.title ?? e,
|
|
@@ -4575,7 +4574,7 @@ var pd = { open: fd }, md = [
|
|
|
4575
4574
|
id: C,
|
|
4576
4575
|
disabled: c
|
|
4577
4576
|
}) : null,
|
|
4578
|
-
/* @__PURE__ */ Z(
|
|
4577
|
+
/* @__PURE__ */ Z(tc, {
|
|
4579
4578
|
value: [O],
|
|
4580
4579
|
onValueChange: j,
|
|
4581
4580
|
onValueCommit: M,
|
|
@@ -4590,14 +4589,14 @@ var pd = { open: fd }, md = [
|
|
|
4590
4589
|
onMouseEnter: () => P(!0),
|
|
4591
4590
|
onMouseLeave: () => P(!1),
|
|
4592
4591
|
children: [
|
|
4593
|
-
/* @__PURE__ */ X(
|
|
4592
|
+
/* @__PURE__ */ X(oc, {
|
|
4594
4593
|
className: yd({ status: ie }),
|
|
4595
|
-
children: /* @__PURE__ */ X(
|
|
4594
|
+
children: /* @__PURE__ */ X($s, { className: bd({
|
|
4596
4595
|
status: ie,
|
|
4597
4596
|
disabled: c
|
|
4598
4597
|
}) })
|
|
4599
4598
|
}),
|
|
4600
|
-
/* @__PURE__ */ X(
|
|
4599
|
+
/* @__PURE__ */ X(ic, {
|
|
4601
4600
|
id: S,
|
|
4602
4601
|
"aria-label": ae ? void 0 : T,
|
|
4603
4602
|
"aria-labelledby": ae ? C : void 0,
|
|
@@ -4636,7 +4635,7 @@ var pd = { open: fd }, md = [
|
|
|
4636
4635
|
});
|
|
4637
4636
|
});
|
|
4638
4637
|
Cd.displayName = "F0Slider";
|
|
4639
|
-
var wd = hn("F0Slider",
|
|
4638
|
+
var wd = hn("F0Slider", mi(L(Cd), vd)), Td = [
|
|
4640
4639
|
"completed",
|
|
4641
4640
|
"in-progress",
|
|
4642
4641
|
"not-started"
|
|
@@ -4904,7 +4903,7 @@ function Ud(e) {
|
|
|
4904
4903
|
}
|
|
4905
4904
|
//#endregion
|
|
4906
4905
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4907
|
-
var Wd = Gn.create(
|
|
4906
|
+
var Wd = Gn.create(Ba), Gd = xc(() => {
|
|
4908
4907
|
let e = R();
|
|
4909
4908
|
return /* @__PURE__ */ Z("div", {
|
|
4910
4909
|
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",
|
|
@@ -5260,12 +5259,12 @@ var sf = () => {
|
|
|
5260
5259
|
let { isQuestionTypeAllowed: e, datasets: t } = nf(), { t: n } = R(), r = [
|
|
5261
5260
|
{
|
|
5262
5261
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5263
|
-
icon:
|
|
5262
|
+
icon: Wi,
|
|
5264
5263
|
questionType: "rating"
|
|
5265
5264
|
},
|
|
5266
5265
|
{
|
|
5267
5266
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5268
|
-
icon:
|
|
5267
|
+
icon: Ii,
|
|
5269
5268
|
questionType: "multi-select"
|
|
5270
5269
|
},
|
|
5271
5270
|
{
|
|
@@ -5275,32 +5274,32 @@ var sf = () => {
|
|
|
5275
5274
|
},
|
|
5276
5275
|
{
|
|
5277
5276
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5278
|
-
icon:
|
|
5277
|
+
icon: ca,
|
|
5279
5278
|
questionType: "text"
|
|
5280
5279
|
},
|
|
5281
5280
|
{
|
|
5282
5281
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5283
|
-
icon:
|
|
5282
|
+
icon: sa,
|
|
5284
5283
|
questionType: "longText"
|
|
5285
5284
|
},
|
|
5286
5285
|
{
|
|
5287
5286
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5288
|
-
icon:
|
|
5287
|
+
icon: ya,
|
|
5289
5288
|
questionType: "numeric"
|
|
5290
5289
|
},
|
|
5291
5290
|
{
|
|
5292
5291
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5293
|
-
icon:
|
|
5292
|
+
icon: Fa,
|
|
5294
5293
|
questionType: "link"
|
|
5295
5294
|
},
|
|
5296
5295
|
{
|
|
5297
5296
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5298
|
-
icon:
|
|
5297
|
+
icon: zi,
|
|
5299
5298
|
questionType: "date"
|
|
5300
5299
|
},
|
|
5301
5300
|
{
|
|
5302
5301
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5303
|
-
icon:
|
|
5302
|
+
icon: Oa,
|
|
5304
5303
|
questionType: "file"
|
|
5305
5304
|
},
|
|
5306
5305
|
{
|
|
@@ -5316,17 +5315,17 @@ var sf = () => {
|
|
|
5316
5315
|
})) : [];
|
|
5317
5316
|
return [...r, ...i];
|
|
5318
5317
|
}, cf = {
|
|
5319
|
-
rating:
|
|
5320
|
-
"multi-select":
|
|
5318
|
+
rating: Wi,
|
|
5319
|
+
"multi-select": Ii,
|
|
5321
5320
|
select: Ms,
|
|
5322
|
-
text:
|
|
5323
|
-
longText:
|
|
5324
|
-
numeric:
|
|
5325
|
-
link:
|
|
5326
|
-
date:
|
|
5321
|
+
text: ca,
|
|
5322
|
+
longText: sa,
|
|
5323
|
+
numeric: ya,
|
|
5324
|
+
link: Fa,
|
|
5325
|
+
date: zi,
|
|
5327
5326
|
"dropdown-single": Xa,
|
|
5328
5327
|
"dropdown-multi": Xa,
|
|
5329
|
-
file:
|
|
5328
|
+
file: Oa,
|
|
5330
5329
|
checkbox: Ns
|
|
5331
5330
|
}, lf = () => {
|
|
5332
5331
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = nf(), [a, o] = J(!1), s = sf(), { t: c } = R(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5360,7 +5359,7 @@ var sf = () => {
|
|
|
5360
5359
|
children: /* @__PURE__ */ Z("div", {
|
|
5361
5360
|
className: "flex w-full flex-row items-center gap-2",
|
|
5362
5361
|
children: [/* @__PURE__ */ X(H, {
|
|
5363
|
-
icon:
|
|
5362
|
+
icon: Ui,
|
|
5364
5363
|
color: "default"
|
|
5365
5364
|
}), /* @__PURE__ */ X("span", {
|
|
5366
5365
|
className: "flex-1 text-base font-medium",
|
|
@@ -5413,7 +5412,7 @@ var sf = () => {
|
|
|
5413
5412
|
children: /* @__PURE__ */ Z("div", {
|
|
5414
5413
|
className: "flex w-full flex-row items-center gap-2",
|
|
5415
5414
|
children: [/* @__PURE__ */ X(H, {
|
|
5416
|
-
icon:
|
|
5415
|
+
icon: Ii,
|
|
5417
5416
|
color: "default"
|
|
5418
5417
|
}), /* @__PURE__ */ X("span", {
|
|
5419
5418
|
className: "flex-1",
|
|
@@ -5593,7 +5592,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5593
5592
|
className: "flex w-full flex-row items-center gap-2",
|
|
5594
5593
|
children: [
|
|
5595
5594
|
/* @__PURE__ */ X(Ua, {
|
|
5596
|
-
icon:
|
|
5595
|
+
icon: Ri,
|
|
5597
5596
|
color: "default"
|
|
5598
5597
|
}),
|
|
5599
5598
|
/* @__PURE__ */ X("span", {
|
|
@@ -5705,7 +5704,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5705
5704
|
className: "flex w-full flex-row items-center gap-2",
|
|
5706
5705
|
children: [
|
|
5707
5706
|
/* @__PURE__ */ X(Ua, {
|
|
5708
|
-
icon:
|
|
5707
|
+
icon: Ii,
|
|
5709
5708
|
color: "default"
|
|
5710
5709
|
}),
|
|
5711
5710
|
/* @__PURE__ */ X("span", {
|
|
@@ -5734,11 +5733,11 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5734
5733
|
let { t: a } = R(), { labels: o } = nf();
|
|
5735
5734
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(zs, {}) : null, /* @__PURE__ */ Z(qs, { children: [e ? /* @__PURE__ */ X(vf, {
|
|
5736
5735
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5737
|
-
icon:
|
|
5736
|
+
icon: Zi,
|
|
5738
5737
|
onClick: r
|
|
5739
5738
|
}) : null, t ? /* @__PURE__ */ X(vf, {
|
|
5740
5739
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5741
|
-
icon:
|
|
5740
|
+
icon: bi,
|
|
5742
5741
|
onClick: i,
|
|
5743
5742
|
critical: !0
|
|
5744
5743
|
}) : null] })] });
|
|
@@ -5756,7 +5755,7 @@ function bf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5756
5755
|
tabIndex: -1,
|
|
5757
5756
|
asChild: !0,
|
|
5758
5757
|
children: /* @__PURE__ */ X(V, {
|
|
5759
|
-
icon:
|
|
5758
|
+
icon: li,
|
|
5760
5759
|
label: o("surveyFormBuilder.labels.actions"),
|
|
5761
5760
|
size: "md",
|
|
5762
5761
|
variant: "ghost",
|
|
@@ -5773,13 +5772,13 @@ function bf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5773
5772
|
}),
|
|
5774
5773
|
T ? /* @__PURE__ */ X(qs, { children: /* @__PURE__ */ X(gf, {
|
|
5775
5774
|
label: o("surveyFormBuilder.labels.required"),
|
|
5776
|
-
icon:
|
|
5775
|
+
icon: Li,
|
|
5777
5776
|
checked: !!l?.required,
|
|
5778
5777
|
onChange: _
|
|
5779
5778
|
}) }) : null,
|
|
5780
5779
|
E ? /* @__PURE__ */ X(qs, { children: /* @__PURE__ */ X(gf, {
|
|
5781
5780
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5782
|
-
icon:
|
|
5781
|
+
icon: Ii,
|
|
5783
5782
|
checked: p,
|
|
5784
5783
|
onChange: b
|
|
5785
5784
|
}) }) : null,
|
|
@@ -5969,7 +5968,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5969
5968
|
children: /* @__PURE__ */ Z("div", {
|
|
5970
5969
|
className: "flex w-full flex-row items-center gap-2",
|
|
5971
5970
|
children: [/* @__PURE__ */ X(H, {
|
|
5972
|
-
icon:
|
|
5971
|
+
icon: Ui,
|
|
5973
5972
|
color: "default"
|
|
5974
5973
|
}), /* @__PURE__ */ X("span", {
|
|
5975
5974
|
className: "flex-1 text-base font-medium",
|
|
@@ -6021,7 +6020,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
6021
6020
|
children: /* @__PURE__ */ Z("div", {
|
|
6022
6021
|
className: "flex w-full flex-row items-center gap-2",
|
|
6023
6022
|
children: [/* @__PURE__ */ X(H, {
|
|
6024
|
-
icon:
|
|
6023
|
+
icon: Ii,
|
|
6025
6024
|
color: "default"
|
|
6026
6025
|
}), /* @__PURE__ */ X("span", {
|
|
6027
6026
|
className: "flex-1",
|
|
@@ -6255,8 +6254,8 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6255
6254
|
required: t.required,
|
|
6256
6255
|
maxDecimals: 0,
|
|
6257
6256
|
placeholder: s,
|
|
6258
|
-
icon:
|
|
6259
|
-
}) : /* @__PURE__ */ X(
|
|
6257
|
+
icon: ya
|
|
6258
|
+
}) : /* @__PURE__ */ X(Vi, {
|
|
6260
6259
|
type: "text",
|
|
6261
6260
|
size: "md",
|
|
6262
6261
|
value: s,
|
|
@@ -6264,7 +6263,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6264
6263
|
disabled: !0,
|
|
6265
6264
|
label: n("surveyFormBuilder.answer.label"),
|
|
6266
6265
|
hideLabel: !0,
|
|
6267
|
-
icon:
|
|
6266
|
+
icon: ya
|
|
6268
6267
|
})
|
|
6269
6268
|
});
|
|
6270
6269
|
}, Mf = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -6438,7 +6437,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6438
6437
|
children: /* @__PURE__ */ X("div", {
|
|
6439
6438
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6440
6439
|
children: /* @__PURE__ */ X(Ua, {
|
|
6441
|
-
icon:
|
|
6440
|
+
icon: gi,
|
|
6442
6441
|
size: "sm"
|
|
6443
6442
|
})
|
|
6444
6443
|
})
|
|
@@ -6461,13 +6460,13 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6461
6460
|
children: [/* @__PURE__ */ X(V, {
|
|
6462
6461
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6463
6462
|
variant: "ghost",
|
|
6464
|
-
icon: c ?
|
|
6463
|
+
icon: c ? Di : pi,
|
|
6465
6464
|
onClick: x,
|
|
6466
6465
|
hideLabel: !0
|
|
6467
6466
|
}), /* @__PURE__ */ X(V, {
|
|
6468
6467
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6469
6468
|
variant: "ghost",
|
|
6470
|
-
icon:
|
|
6469
|
+
icon: bi,
|
|
6471
6470
|
hideLabel: !0,
|
|
6472
6471
|
onClick: S
|
|
6473
6472
|
})]
|
|
@@ -6694,7 +6693,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6694
6693
|
h && c.start(e);
|
|
6695
6694
|
},
|
|
6696
6695
|
children: /* @__PURE__ */ X(H, {
|
|
6697
|
-
icon:
|
|
6696
|
+
icon: gi,
|
|
6698
6697
|
size: "sm"
|
|
6699
6698
|
})
|
|
6700
6699
|
}) : null, /* @__PURE__ */ X(Bf, { ...e.question })]
|
|
@@ -6724,7 +6723,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6724
6723
|
f && i.start(e);
|
|
6725
6724
|
},
|
|
6726
6725
|
children: /* @__PURE__ */ X(H, {
|
|
6727
|
-
icon:
|
|
6726
|
+
icon: gi,
|
|
6728
6727
|
size: "sm"
|
|
6729
6728
|
})
|
|
6730
6729
|
}) : null, /* @__PURE__ */ X(Bf, { ...e })]
|
|
@@ -6756,7 +6755,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6756
6755
|
});
|
|
6757
6756
|
}, x = [{
|
|
6758
6757
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6759
|
-
icon:
|
|
6758
|
+
icon: Zi,
|
|
6760
6759
|
onClick: () => {
|
|
6761
6760
|
d?.({
|
|
6762
6761
|
elementId: e,
|
|
@@ -6765,7 +6764,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6765
6764
|
}
|
|
6766
6765
|
}, {
|
|
6767
6766
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6768
|
-
icon:
|
|
6767
|
+
icon: bi,
|
|
6769
6768
|
onClick: () => {
|
|
6770
6769
|
u(e);
|
|
6771
6770
|
},
|
|
@@ -6810,14 +6809,14 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6810
6809
|
}) : null,
|
|
6811
6810
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6812
6811
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6813
|
-
children: /* @__PURE__ */ X(
|
|
6812
|
+
children: /* @__PURE__ */ X(Xr, {
|
|
6814
6813
|
items: x,
|
|
6815
|
-
icon:
|
|
6814
|
+
icon: li,
|
|
6816
6815
|
open: p,
|
|
6817
6816
|
onOpenChange: m,
|
|
6818
6817
|
align: "start",
|
|
6819
6818
|
children: /* @__PURE__ */ X(V, {
|
|
6820
|
-
icon:
|
|
6819
|
+
icon: li,
|
|
6821
6820
|
label: h("surveyFormBuilder.actions.actions"),
|
|
6822
6821
|
size: "md",
|
|
6823
6822
|
variant: "ghost",
|
|
@@ -6886,7 +6885,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6886
6885
|
o.start(e);
|
|
6887
6886
|
},
|
|
6888
6887
|
children: /* @__PURE__ */ X(H, {
|
|
6889
|
-
icon:
|
|
6888
|
+
icon: gi,
|
|
6890
6889
|
size: "sm"
|
|
6891
6890
|
})
|
|
6892
6891
|
}) : null, /* @__PURE__ */ X(Wf, {
|
|
@@ -6916,7 +6915,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6916
6915
|
p || x.push({
|
|
6917
6916
|
type: "toggle",
|
|
6918
6917
|
label: l,
|
|
6919
|
-
icon:
|
|
6918
|
+
icon: Li,
|
|
6920
6919
|
checked: !!r?.required,
|
|
6921
6920
|
onCheckedChange: m
|
|
6922
6921
|
});
|
|
@@ -6961,7 +6960,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6961
6960
|
selected: s === e && t === "dropdown-single"
|
|
6962
6961
|
}, {
|
|
6963
6962
|
label: f,
|
|
6964
|
-
icon:
|
|
6963
|
+
icon: Ii,
|
|
6965
6964
|
onClick: () => h("dropdown-multi", e),
|
|
6966
6965
|
selected: s === e && t === "dropdown-multi"
|
|
6967
6966
|
}]
|
|
@@ -6975,16 +6974,16 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6975
6974
|
return x.push({
|
|
6976
6975
|
type: "submenu",
|
|
6977
6976
|
label: u,
|
|
6978
|
-
icon:
|
|
6977
|
+
icon: Ri,
|
|
6979
6978
|
selectedLabel: E,
|
|
6980
6979
|
children: w
|
|
6981
6980
|
}), x.push({ type: "separator" }), x.push({
|
|
6982
6981
|
label: i,
|
|
6983
|
-
icon:
|
|
6982
|
+
icon: Zi,
|
|
6984
6983
|
onClick: y
|
|
6985
6984
|
}), n && x.push({
|
|
6986
6985
|
label: a,
|
|
6987
|
-
icon:
|
|
6986
|
+
icon: bi,
|
|
6988
6987
|
onClick: b,
|
|
6989
6988
|
critical: !0
|
|
6990
6989
|
}), x;
|
|
@@ -7005,12 +7004,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7005
7004
|
return {
|
|
7006
7005
|
id: i,
|
|
7007
7006
|
label: t.title || n,
|
|
7008
|
-
icon:
|
|
7007
|
+
icon: Ui,
|
|
7009
7008
|
onClick: y,
|
|
7010
7009
|
...!h && !g && !t.locked && { otherActions: [
|
|
7011
7010
|
{
|
|
7012
7011
|
label: o,
|
|
7013
|
-
icon:
|
|
7012
|
+
icon: Zi,
|
|
7014
7013
|
onClick: () => m?.({
|
|
7015
7014
|
elementId: t.id,
|
|
7016
7015
|
type: "section"
|
|
@@ -7019,7 +7018,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7019
7018
|
{ type: "separator" },
|
|
7020
7019
|
{
|
|
7021
7020
|
label: s,
|
|
7022
|
-
icon:
|
|
7021
|
+
icon: bi,
|
|
7023
7022
|
onClick: () => p(t.id),
|
|
7024
7023
|
critical: !0
|
|
7025
7024
|
}
|
|
@@ -7547,7 +7546,7 @@ function _p({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7547
7546
|
u ? /* @__PURE__ */ X("div", {
|
|
7548
7547
|
className: "min-h-8 p-1",
|
|
7549
7548
|
children: /* @__PURE__ */ X(H, {
|
|
7550
|
-
icon: t.correct ?
|
|
7549
|
+
icon: t.correct ? pi : Di,
|
|
7551
7550
|
color: t.correct ? "positive" : "critical",
|
|
7552
7551
|
"aria-hidden": !0
|
|
7553
7552
|
})
|
|
@@ -7569,7 +7568,7 @@ var vp = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, yp = () => ({
|
|
|
7569
7568
|
status: "idle"
|
|
7570
7569
|
});
|
|
7571
7570
|
function bp(e, t) {
|
|
7572
|
-
return
|
|
7571
|
+
return pa().optional().superRefine((n, r) => {
|
|
7573
7572
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7574
7573
|
code: "custom",
|
|
7575
7574
|
message: t("forms.validation.required")
|
|
@@ -7577,7 +7576,7 @@ function bp(e, t) {
|
|
|
7577
7576
|
});
|
|
7578
7577
|
}
|
|
7579
7578
|
function xp(e, t) {
|
|
7580
|
-
return
|
|
7579
|
+
return pa().optional().superRefine((n, r) => {
|
|
7581
7580
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7582
7581
|
code: "custom",
|
|
7583
7582
|
message: t("forms.validation.required")
|
|
@@ -7588,7 +7587,7 @@ function xp(e, t) {
|
|
|
7588
7587
|
});
|
|
7589
7588
|
}
|
|
7590
7589
|
function Sp(e, t) {
|
|
7591
|
-
return
|
|
7590
|
+
return Yi().optional().superRefine((n, r) => {
|
|
7592
7591
|
e && n == null && r.addIssue({
|
|
7593
7592
|
code: "custom",
|
|
7594
7593
|
message: t("forms.validation.required")
|
|
@@ -7596,7 +7595,7 @@ function Sp(e, t) {
|
|
|
7596
7595
|
});
|
|
7597
7596
|
}
|
|
7598
7597
|
function Cp(e, t) {
|
|
7599
|
-
return
|
|
7598
|
+
return Pi(pa()).optional().superRefine((n, r) => {
|
|
7600
7599
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7601
7600
|
code: "custom",
|
|
7602
7601
|
message: t("forms.validation.required")
|
|
@@ -7604,7 +7603,7 @@ function Cp(e, t) {
|
|
|
7604
7603
|
});
|
|
7605
7604
|
}
|
|
7606
7605
|
function wp(e, t) {
|
|
7607
|
-
return
|
|
7606
|
+
return Ur().optional().superRefine((n, r) => {
|
|
7608
7607
|
e && !n && r.addIssue({
|
|
7609
7608
|
code: "custom",
|
|
7610
7609
|
message: t("forms.validation.required")
|
|
@@ -7613,7 +7612,7 @@ function wp(e, t) {
|
|
|
7613
7612
|
}
|
|
7614
7613
|
var Tp = Cp;
|
|
7615
7614
|
function Ep(e, t) {
|
|
7616
|
-
return
|
|
7615
|
+
return fi().optional().superRefine((n, r) => {
|
|
7617
7616
|
e && !n && r.addIssue({
|
|
7618
7617
|
code: "custom",
|
|
7619
7618
|
message: t("forms.validation.required")
|
|
@@ -7666,7 +7665,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7666
7665
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7667
7666
|
disabled: i
|
|
7668
7667
|
};
|
|
7669
|
-
return
|
|
7668
|
+
return wa(bp(!!e.required, t), {
|
|
7670
7669
|
...l,
|
|
7671
7670
|
fieldType: "custom",
|
|
7672
7671
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7694,7 +7693,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7694
7693
|
rows: 4,
|
|
7695
7694
|
disabled: i
|
|
7696
7695
|
};
|
|
7697
|
-
return
|
|
7696
|
+
return wa(bp(!!e.required, t), {
|
|
7698
7697
|
...l,
|
|
7699
7698
|
fieldType: "custom",
|
|
7700
7699
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7721,7 +7720,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7721
7720
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7722
7721
|
disabled: i
|
|
7723
7722
|
};
|
|
7724
|
-
return
|
|
7723
|
+
return wa(Sp(!!e.required, t), {
|
|
7725
7724
|
...l,
|
|
7726
7725
|
fieldType: "custom",
|
|
7727
7726
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7749,7 +7748,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7749
7748
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7750
7749
|
disabled: i
|
|
7751
7750
|
};
|
|
7752
|
-
return
|
|
7751
|
+
return wa(xp(!!e.required, t), {
|
|
7753
7752
|
...l,
|
|
7754
7753
|
fieldType: "custom",
|
|
7755
7754
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7776,7 +7775,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7776
7775
|
clearable: !e.required,
|
|
7777
7776
|
disabled: i
|
|
7778
7777
|
};
|
|
7779
|
-
return
|
|
7778
|
+
return wa(wp(!!e.required, t), {
|
|
7780
7779
|
...l,
|
|
7781
7780
|
fieldType: "custom",
|
|
7782
7781
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7812,7 +7811,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7812
7811
|
showSearchBox: r,
|
|
7813
7812
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7814
7813
|
};
|
|
7815
|
-
return
|
|
7814
|
+
return wa(bp(!!e.required, t), {
|
|
7816
7815
|
...l,
|
|
7817
7816
|
fieldType: "custom",
|
|
7818
7817
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7861,7 +7860,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7861
7860
|
showSearchBox: r,
|
|
7862
7861
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7863
7862
|
};
|
|
7864
|
-
return
|
|
7863
|
+
return wa(Cp(!!e.required, t), {
|
|
7865
7864
|
...l,
|
|
7866
7865
|
fieldType: "custom",
|
|
7867
7866
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7888,7 +7887,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7888
7887
|
disabled: i,
|
|
7889
7888
|
showAnswerValidation: r
|
|
7890
7889
|
};
|
|
7891
|
-
return
|
|
7890
|
+
return wa(bp(!!e.required, t), {
|
|
7892
7891
|
...l,
|
|
7893
7892
|
fieldType: "custom",
|
|
7894
7893
|
fieldConfig: n,
|
|
@@ -7911,7 +7910,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7911
7910
|
disabled: i,
|
|
7912
7911
|
showAnswerValidation: r
|
|
7913
7912
|
};
|
|
7914
|
-
return
|
|
7913
|
+
return wa(Cp(!!e.required, t), {
|
|
7915
7914
|
...l,
|
|
7916
7915
|
fieldType: "custom",
|
|
7917
7916
|
fieldConfig: n,
|
|
@@ -7933,7 +7932,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7933
7932
|
maxLabel: n.maxLabel,
|
|
7934
7933
|
disabled: i
|
|
7935
7934
|
};
|
|
7936
|
-
return
|
|
7935
|
+
return wa(Sp(!!e.required, t), {
|
|
7937
7936
|
...l,
|
|
7938
7937
|
fieldType: "custom",
|
|
7939
7938
|
fieldConfig: r,
|
|
@@ -7959,7 +7958,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7959
7958
|
useUpload: r ?? yp,
|
|
7960
7959
|
disabled: i || !r
|
|
7961
7960
|
};
|
|
7962
|
-
return
|
|
7961
|
+
return wa(Tp(!!e.required, t), {
|
|
7963
7962
|
...l,
|
|
7964
7963
|
fieldType: "custom",
|
|
7965
7964
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7985,7 +7984,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7985
7984
|
label: n.label || c,
|
|
7986
7985
|
disabled: i
|
|
7987
7986
|
};
|
|
7988
|
-
return
|
|
7987
|
+
return wa(Ep(!!e.required, t), {
|
|
7989
7988
|
...l,
|
|
7990
7989
|
fieldType: "custom",
|
|
7991
7990
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -8004,7 +8003,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8004
8003
|
})
|
|
8005
8004
|
});
|
|
8006
8005
|
}
|
|
8007
|
-
default: return
|
|
8006
|
+
default: return wa(Ta(), {
|
|
8008
8007
|
...l,
|
|
8009
8008
|
fieldType: "custom",
|
|
8010
8009
|
render: () => null
|
|
@@ -8045,7 +8044,7 @@ function Mp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8045
8044
|
}), f[e.id] = a?.[e.id] ?? Dp(e, r);
|
|
8046
8045
|
}
|
|
8047
8046
|
return {
|
|
8048
|
-
schema:
|
|
8047
|
+
schema: Ma(d),
|
|
8049
8048
|
defaultValues: f,
|
|
8050
8049
|
flatQuestions: m,
|
|
8051
8050
|
sections: p
|
|
@@ -8150,12 +8149,12 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8150
8149
|
]);
|
|
8151
8150
|
let ve = u && !h ? [{
|
|
8152
8151
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8153
|
-
icon: C ?
|
|
8152
|
+
icon: C ? Wr : _a,
|
|
8154
8153
|
onClick: () => w((e) => !e)
|
|
8155
8154
|
}] : void 0, ye = M ? h || F ? void 0 : ee ? P && !j.isLastStep ? {
|
|
8156
8155
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8157
8156
|
onClick: j.goToNext,
|
|
8158
|
-
icon:
|
|
8157
|
+
icon: Na
|
|
8159
8158
|
} : {
|
|
8160
8159
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8161
8160
|
onClick: Np,
|
|
@@ -8163,7 +8162,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8163
8162
|
} : P && !j.isLastStep ? {
|
|
8164
8163
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8165
8164
|
onClick: me,
|
|
8166
|
-
icon:
|
|
8165
|
+
icon: Na
|
|
8167
8166
|
} : {
|
|
8168
8167
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8169
8168
|
onClick: me,
|
|
@@ -8459,12 +8458,12 @@ function Kp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8459
8458
|
s(e), e || t();
|
|
8460
8459
|
},
|
|
8461
8460
|
modal: !0,
|
|
8462
|
-
children: /* @__PURE__ */ Z(
|
|
8461
|
+
children: /* @__PURE__ */ Z(Ei, {
|
|
8463
8462
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8464
8463
|
container: a,
|
|
8465
8464
|
children: [/* @__PURE__ */ Z("div", {
|
|
8466
8465
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8467
|
-
children: [/* @__PURE__ */ Z(
|
|
8466
|
+
children: [/* @__PURE__ */ Z(yi, {
|
|
8468
8467
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8469
8468
|
children: [i ? /* @__PURE__ */ X(oo, {
|
|
8470
8469
|
module: i,
|
|
@@ -8472,7 +8471,7 @@ function Kp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8472
8471
|
}) : null, n]
|
|
8473
8472
|
}), /* @__PURE__ */ X(Zn, {
|
|
8474
8473
|
variant: "outline",
|
|
8475
|
-
icon:
|
|
8474
|
+
icon: Di,
|
|
8476
8475
|
onClick: t,
|
|
8477
8476
|
label: "Close modal",
|
|
8478
8477
|
hideLabel: !0
|
|
@@ -8565,11 +8564,11 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8565
8564
|
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(ni, {
|
|
8566
8565
|
style: { width: a },
|
|
8567
8566
|
className: "relative bg-f1-background p-1",
|
|
8568
|
-
children: [/* @__PURE__ */ Z(
|
|
8567
|
+
children: [/* @__PURE__ */ Z(Ti, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8569
8568
|
className: "absolute right-2 top-2 z-10",
|
|
8570
8569
|
children: /* @__PURE__ */ X(V, {
|
|
8571
8570
|
variant: "ghost",
|
|
8572
|
-
icon:
|
|
8571
|
+
icon: Di,
|
|
8573
8572
|
size: "sm",
|
|
8574
8573
|
hideLabel: !0,
|
|
8575
8574
|
onClick: d,
|
|
@@ -8595,7 +8594,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8595
8594
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8596
8595
|
children: n
|
|
8597
8596
|
})]
|
|
8598
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8597
|
+
})] })] }), s ? /* @__PURE__ */ X(ei, {
|
|
8599
8598
|
className: "p-3",
|
|
8600
8599
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(S, {
|
|
8601
8600
|
label: e.label,
|
|
@@ -8618,7 +8617,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8618
8617
|
var Xp = L(Yp), Zp = ({ onDismiss: e }) => {
|
|
8619
8618
|
let { actions: t } = R();
|
|
8620
8619
|
return /* @__PURE__ */ X(V, {
|
|
8621
|
-
icon:
|
|
8620
|
+
icon: Di,
|
|
8622
8621
|
label: t.close,
|
|
8623
8622
|
hideLabel: !0,
|
|
8624
8623
|
variant: "outline",
|
|
@@ -8709,7 +8708,7 @@ em.displayName = "UpsellingBanner";
|
|
|
8709
8708
|
var tm = L(em);
|
|
8710
8709
|
//#endregion
|
|
8711
8710
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
8712
|
-
function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
8711
|
+
function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = ha, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
8713
8712
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8714
8713
|
t(e), h && h();
|
|
8715
8714
|
}, w = async (e) => {
|
|
@@ -8771,7 +8770,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8771
8770
|
let a = R(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
8772
8771
|
return /* @__PURE__ */ Z(ni, {
|
|
8773
8772
|
className: "flex flex-col overflow-hidden",
|
|
8774
|
-
children: [/* @__PURE__ */ Z(
|
|
8773
|
+
children: [/* @__PURE__ */ Z(Ti, {
|
|
8775
8774
|
className: "flex flex-col gap-4 p-0",
|
|
8776
8775
|
children: [/* @__PURE__ */ X("div", {
|
|
8777
8776
|
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"),
|
|
@@ -8786,7 +8785,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8786
8785
|
children: n
|
|
8787
8786
|
})]
|
|
8788
8787
|
})]
|
|
8789
|
-
}), /* @__PURE__ */ X(
|
|
8788
|
+
}), /* @__PURE__ */ X(ei, {
|
|
8790
8789
|
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",
|
|
8791
8790
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8792
8791
|
variant: "default",
|
|
@@ -8833,7 +8832,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8833
8832
|
})
|
|
8834
8833
|
})]
|
|
8835
8834
|
}), om = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
8836
|
-
let o = R()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
8835
|
+
let o = R()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? ia, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8837
8836
|
u,
|
|
8838
8837
|
r,
|
|
8839
8838
|
c
|
|
@@ -8850,7 +8849,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8850
8849
|
]);
|
|
8851
8850
|
return t.length === 0 ? null : /* @__PURE__ */ Z(ni, {
|
|
8852
8851
|
className: "flex flex-col overflow-hidden",
|
|
8853
|
-
children: [/* @__PURE__ */ Z(
|
|
8852
|
+
children: [/* @__PURE__ */ Z(si, {
|
|
8854
8853
|
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",
|
|
8855
8854
|
children: [/* @__PURE__ */ X("div", {
|
|
8856
8855
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8863,7 +8862,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8863
8862
|
className: "text-base font-semibold text-f1-foreground",
|
|
8864
8863
|
children: o
|
|
8865
8864
|
})]
|
|
8866
|
-
}), /* @__PURE__ */ X(
|
|
8865
|
+
}), /* @__PURE__ */ X(Ti, {
|
|
8867
8866
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8868
8867
|
children: t.map((e) => /* @__PURE__ */ X(am, {
|
|
8869
8868
|
item: e,
|
|
@@ -8876,7 +8875,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8876
8875
|
let a = R()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8877
8876
|
return /* @__PURE__ */ Z(ni, {
|
|
8878
8877
|
className: "flex flex-col overflow-hidden",
|
|
8879
|
-
children: [/* @__PURE__ */ X(
|
|
8878
|
+
children: [/* @__PURE__ */ X(Ti, {
|
|
8880
8879
|
className: "flex flex-col gap-3 p-0",
|
|
8881
8880
|
children: /* @__PURE__ */ Z("div", {
|
|
8882
8881
|
className: "flex items-start gap-3",
|
|
@@ -8898,7 +8897,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8898
8897
|
})]
|
|
8899
8898
|
})]
|
|
8900
8899
|
})
|
|
8901
|
-
}), /* @__PURE__ */ X(
|
|
8900
|
+
}), /* @__PURE__ */ X(ei, {
|
|
8902
8901
|
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",
|
|
8903
8902
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8904
8903
|
variant: "outline",
|
|
@@ -8918,10 +8917,10 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8918
8917
|
let n = R()?.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";
|
|
8919
8918
|
return /* @__PURE__ */ Z(ni, {
|
|
8920
8919
|
className: "flex flex-col overflow-hidden",
|
|
8921
|
-
children: [/* @__PURE__ */ Z(
|
|
8920
|
+
children: [/* @__PURE__ */ Z(Ti, {
|
|
8922
8921
|
className: "flex flex-col gap-3 p-0",
|
|
8923
8922
|
children: [/* @__PURE__ */ X(H, {
|
|
8924
|
-
icon:
|
|
8923
|
+
icon: zi,
|
|
8925
8924
|
size: "lg"
|
|
8926
8925
|
}), /* @__PURE__ */ Z("div", {
|
|
8927
8926
|
className: "flex flex-col gap-0.5",
|
|
@@ -8933,7 +8932,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8933
8932
|
children: i
|
|
8934
8933
|
})]
|
|
8935
8934
|
})]
|
|
8936
|
-
}), /* @__PURE__ */ X(
|
|
8935
|
+
}), /* @__PURE__ */ X(ei, {
|
|
8937
8936
|
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",
|
|
8938
8937
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8939
8938
|
variant: "default",
|
|
@@ -8981,7 +8980,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8981
8980
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
8982
8981
|
return u === 0 || !d ? null : /* @__PURE__ */ Z(ni, {
|
|
8983
8982
|
className: "flex flex-col overflow-hidden",
|
|
8984
|
-
children: [/* @__PURE__ */ Z(
|
|
8983
|
+
children: [/* @__PURE__ */ Z(Ti, {
|
|
8985
8984
|
className: "flex flex-col gap-4",
|
|
8986
8985
|
children: [/* @__PURE__ */ X("h3", {
|
|
8987
8986
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -8998,7 +8997,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8998
8997
|
})
|
|
8999
8998
|
}, e.id))
|
|
9000
8999
|
})]
|
|
9001
|
-
}), /* @__PURE__ */ Z(
|
|
9000
|
+
}), /* @__PURE__ */ Z(ei, {
|
|
9002
9001
|
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",
|
|
9003
9002
|
children: [/* @__PURE__ */ X("div", {
|
|
9004
9003
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9462,7 +9461,7 @@ function Wm(e, t) {
|
|
|
9462
9461
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9463
9462
|
}
|
|
9464
9463
|
async function Gm(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9465
|
-
Wm(await
|
|
9464
|
+
Wm(await Ra([{
|
|
9466
9465
|
name: "Data",
|
|
9467
9466
|
rows: Hm({
|
|
9468
9467
|
columns: e,
|
|
@@ -9484,7 +9483,7 @@ function qm(e, t, n) {
|
|
|
9484
9483
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9485
9484
|
}
|
|
9486
9485
|
async function Jm(e, t) {
|
|
9487
|
-
Wm(await
|
|
9486
|
+
Wm(await Ra(e.map((e) => ({
|
|
9488
9487
|
name: e.name,
|
|
9489
9488
|
rows: Hm(e)
|
|
9490
9489
|
}))), `${t}.xlsx`);
|
|
@@ -9545,23 +9544,23 @@ function Zm({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9545
9544
|
return K(() => n ? [
|
|
9546
9545
|
{
|
|
9547
9546
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9548
|
-
icon:
|
|
9547
|
+
icon: ea,
|
|
9549
9548
|
onClick: () => a("png")
|
|
9550
9549
|
},
|
|
9551
9550
|
{
|
|
9552
9551
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9553
|
-
icon:
|
|
9552
|
+
icon: ea,
|
|
9554
9553
|
onClick: () => a("jpg")
|
|
9555
9554
|
},
|
|
9556
9555
|
{ type: "separator" },
|
|
9557
9556
|
{
|
|
9558
9557
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9559
|
-
icon:
|
|
9558
|
+
icon: $i,
|
|
9560
9559
|
onClick: s
|
|
9561
9560
|
},
|
|
9562
9561
|
{
|
|
9563
9562
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9564
|
-
icon:
|
|
9563
|
+
icon: $i,
|
|
9565
9564
|
onClick: c
|
|
9566
9565
|
}
|
|
9567
9566
|
] : [], [
|
|
@@ -9791,7 +9790,7 @@ function nh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9791
9790
|
//#endregion
|
|
9792
9791
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9793
9792
|
function rh({ 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: h, itemId: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
9794
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
9793
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = qr(), ee = (e) => {
|
|
9795
9794
|
T(e), e || A(!1);
|
|
9796
9795
|
}, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, I = u && f && g, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (p ? !!g : M), se = oe || ne || I || re || ie, ce = !!l || ae || !!se, le = !y && (w || E), ue = B("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", le && "delay-0 !opacity-100"), de = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", le && "delay-0 !grid-cols-[1fr]"), fe = nh({
|
|
9797
9796
|
title: e,
|
|
@@ -9819,7 +9818,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9819
9818
|
onClick: he,
|
|
9820
9819
|
children: /* @__PURE__ */ Z("div", {
|
|
9821
9820
|
className: "flex w-full flex-row items-center gap-2",
|
|
9822
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9821
|
+
children: [/* @__PURE__ */ X(H, { icon: ki }), /* @__PURE__ */ X("span", {
|
|
9823
9822
|
className: "flex-1",
|
|
9824
9823
|
children: j.ai.dashboardItem.askOne
|
|
9825
9824
|
})]
|
|
@@ -9856,7 +9855,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9856
9855
|
asChild: !0,
|
|
9857
9856
|
children: /* @__PURE__ */ X(Zn, {
|
|
9858
9857
|
label: j.actions.other,
|
|
9859
|
-
icon:
|
|
9858
|
+
icon: li,
|
|
9860
9859
|
variant: "ghost",
|
|
9861
9860
|
size: "md",
|
|
9862
9861
|
hideLabel: !0,
|
|
@@ -9922,7 +9921,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9922
9921
|
}) : null,
|
|
9923
9922
|
ae ? /* @__PURE__ */ X(Zn, {
|
|
9924
9923
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
9925
|
-
icon: y ?
|
|
9924
|
+
icon: y ? Wr : _a,
|
|
9926
9925
|
variant: "ghost",
|
|
9927
9926
|
size: "md",
|
|
9928
9927
|
hideLabel: !0,
|
|
@@ -9936,7 +9935,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9936
9935
|
asChild: !0,
|
|
9937
9936
|
children: /* @__PURE__ */ X(Zn, {
|
|
9938
9937
|
label: j.actions.other,
|
|
9939
|
-
icon:
|
|
9938
|
+
icon: li,
|
|
9940
9939
|
variant: "ghost",
|
|
9941
9940
|
size: "md",
|
|
9942
9941
|
hideLabel: !0,
|
|
@@ -9950,7 +9949,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9950
9949
|
onCloseAutoFocus: ge,
|
|
9951
9950
|
children: k && ie ? /* @__PURE__ */ X("div", {
|
|
9952
9951
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
9953
|
-
children: /* @__PURE__ */ X(
|
|
9952
|
+
children: /* @__PURE__ */ X(vi, {
|
|
9954
9953
|
content: v,
|
|
9955
9954
|
format: "markdown"
|
|
9956
9955
|
})
|
|
@@ -9993,7 +9992,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9993
9992
|
className: "mx-1 rounded-sm px-2",
|
|
9994
9993
|
children: /* @__PURE__ */ Z("div", {
|
|
9995
9994
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
9996
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9995
|
+
children: [/* @__PURE__ */ X(H, { icon: za }), /* @__PURE__ */ X("span", {
|
|
9997
9996
|
className: "flex-1 text-base font-medium",
|
|
9998
9997
|
children: j.ai.dataDownload.title
|
|
9999
9998
|
})]
|
|
@@ -10015,7 +10014,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10015
10014
|
className: B("text-f1-foreground-critical"),
|
|
10016
10015
|
children: /* @__PURE__ */ Z("div", {
|
|
10017
10016
|
className: "flex w-full flex-row items-center gap-2",
|
|
10018
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10017
|
+
children: [/* @__PURE__ */ X(H, { icon: bi }), /* @__PURE__ */ X("span", {
|
|
10019
10018
|
className: "flex-1",
|
|
10020
10019
|
children: j.actions.delete
|
|
10021
10020
|
})]
|
|
@@ -10106,7 +10105,7 @@ function oh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
10106
10105
|
type: "button",
|
|
10107
10106
|
variant: "ghost",
|
|
10108
10107
|
label: i.ai.dashboardItem.askOne,
|
|
10109
|
-
icon:
|
|
10108
|
+
icon: ki,
|
|
10110
10109
|
onClick: t
|
|
10111
10110
|
})
|
|
10112
10111
|
}), document.body);
|
|
@@ -10149,39 +10148,39 @@ function hh(e) {
|
|
|
10149
10148
|
{
|
|
10150
10149
|
label: e.dataChart.barChartVertical,
|
|
10151
10150
|
value: "bar-vertical",
|
|
10152
|
-
icon:
|
|
10151
|
+
icon: Gr,
|
|
10153
10152
|
type: "bar",
|
|
10154
10153
|
orientation: "vertical"
|
|
10155
10154
|
},
|
|
10156
10155
|
{
|
|
10157
10156
|
label: e.dataChart.barChartHorizontal,
|
|
10158
10157
|
value: "bar-horizontal",
|
|
10159
|
-
icon:
|
|
10158
|
+
icon: da,
|
|
10160
10159
|
type: "bar",
|
|
10161
10160
|
orientation: "horizontal"
|
|
10162
10161
|
},
|
|
10163
10162
|
{
|
|
10164
10163
|
label: e.dataChart.lineChart,
|
|
10165
10164
|
value: "line",
|
|
10166
|
-
icon:
|
|
10165
|
+
icon: Aa,
|
|
10167
10166
|
type: "line"
|
|
10168
10167
|
},
|
|
10169
10168
|
{
|
|
10170
10169
|
label: e.dataChart.funnel,
|
|
10171
10170
|
value: "funnel",
|
|
10172
|
-
icon:
|
|
10171
|
+
icon: Sa,
|
|
10173
10172
|
type: "funnel"
|
|
10174
10173
|
},
|
|
10175
10174
|
{
|
|
10176
10175
|
label: e.dataChart.pieChart,
|
|
10177
10176
|
value: "pie",
|
|
10178
|
-
icon:
|
|
10177
|
+
icon: qi,
|
|
10179
10178
|
type: "pie"
|
|
10180
10179
|
},
|
|
10181
10180
|
{
|
|
10182
10181
|
label: e.dataChart.table,
|
|
10183
10182
|
value: "table",
|
|
10184
|
-
icon:
|
|
10183
|
+
icon: $i,
|
|
10185
10184
|
type: "table"
|
|
10186
10185
|
}
|
|
10187
10186
|
];
|
|
@@ -10349,7 +10348,7 @@ function Sh(e) {
|
|
|
10349
10348
|
return _m(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10350
10349
|
}
|
|
10351
10350
|
function Ch({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
10352
|
-
let f = R(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
10351
|
+
let f = R(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = qr(), y = !_m(e.chart), b = y ? gh : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = Qm(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? yh(e, T) : void 0, [
|
|
10353
10352
|
e,
|
|
10354
10353
|
T,
|
|
10355
10354
|
y
|
|
@@ -10574,11 +10573,11 @@ function jh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10574
10573
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10575
10574
|
return K(() => e ? [{
|
|
10576
10575
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10577
|
-
icon:
|
|
10576
|
+
icon: $i,
|
|
10578
10577
|
onClick: l
|
|
10579
10578
|
}, {
|
|
10580
10579
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10581
|
-
icon:
|
|
10580
|
+
icon: $i,
|
|
10582
10581
|
onClick: u
|
|
10583
10582
|
}] : [], [
|
|
10584
10583
|
e,
|
|
@@ -10906,7 +10905,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10906
10905
|
if (Math.hypot(t.clientX - n, t.clientY - r) < Vh) return;
|
|
10907
10906
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10908
10907
|
let a = k.current.get(e)?.title ?? "";
|
|
10909
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10908
|
+
a && window.dispatchEvent(new CustomEvent(Jr, { detail: {
|
|
10910
10909
|
id: e,
|
|
10911
10910
|
title: a,
|
|
10912
10911
|
onAskAi: c,
|
|
@@ -10920,7 +10919,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10920
10919
|
}, o = (e) => {
|
|
10921
10920
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
10922
10921
|
let t = A.current, n = j.current;
|
|
10923
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
10922
|
+
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(hi));
|
|
10924
10923
|
}, s = (e) => {
|
|
10925
10924
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = ee(e.clientX, e.clientY)), o(!0);
|
|
10926
10925
|
}, u = () => o(!1);
|
|
@@ -11098,7 +11097,7 @@ function qh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11098
11097
|
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",
|
|
11099
11098
|
"aria-label": "Drag to reorder",
|
|
11100
11099
|
children: /* @__PURE__ */ X(H, {
|
|
11101
|
-
icon:
|
|
11100
|
+
icon: gi,
|
|
11102
11101
|
size: "xs"
|
|
11103
11102
|
})
|
|
11104
11103
|
}) : null, s]
|
|
@@ -11268,13 +11267,13 @@ function sg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11268
11267
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11269
11268
|
function cg({ onExportExcel: e, isExporting: t }) {
|
|
11270
11269
|
let { t: n } = R();
|
|
11271
|
-
return /* @__PURE__ */ X(
|
|
11270
|
+
return /* @__PURE__ */ X(Xr, {
|
|
11272
11271
|
items: [{
|
|
11273
11272
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11274
|
-
icon:
|
|
11273
|
+
icon: za,
|
|
11275
11274
|
onClick: t ? () => {} : e
|
|
11276
11275
|
}],
|
|
11277
|
-
icon:
|
|
11276
|
+
icon: li
|
|
11278
11277
|
});
|
|
11279
11278
|
}
|
|
11280
11279
|
//#endregion
|
|
@@ -12240,7 +12239,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12240
12239
|
className: "dark flex-shrink-0",
|
|
12241
12240
|
children: /* @__PURE__ */ X(V, {
|
|
12242
12241
|
variant: "outline",
|
|
12243
|
-
icon:
|
|
12242
|
+
icon: Di,
|
|
12244
12243
|
size: "sm",
|
|
12245
12244
|
hideLabel: !0,
|
|
12246
12245
|
onClick: e,
|
|
@@ -12257,7 +12256,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12257
12256
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12258
12257
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12259
12258
|
onClick: () => n(e),
|
|
12260
|
-
children: /* @__PURE__ */ X(
|
|
12259
|
+
children: /* @__PURE__ */ X(Ca, {
|
|
12261
12260
|
href: e.href,
|
|
12262
12261
|
children: e.label
|
|
12263
12262
|
})
|
|
@@ -12325,7 +12324,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12325
12324
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12326
12325
|
className: "flex-shrink-0",
|
|
12327
12326
|
"aria-hidden": "true",
|
|
12328
|
-
children: /* @__PURE__ */ X(
|
|
12327
|
+
children: /* @__PURE__ */ X(Qr, {
|
|
12329
12328
|
type: g,
|
|
12330
12329
|
size: "sm"
|
|
12331
12330
|
})
|
|
@@ -12688,7 +12687,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12688
12687
|
renderDataTestIdAttribute: d,
|
|
12689
12688
|
children: /* @__PURE__ */ X(H_, {
|
|
12690
12689
|
...t,
|
|
12691
|
-
children: /* @__PURE__ */ X(
|
|
12690
|
+
children: /* @__PURE__ */ X(di, {
|
|
12692
12691
|
handler: l,
|
|
12693
12692
|
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(lt, {
|
|
12694
12693
|
...p,
|
|
@@ -12707,4 +12706,4 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12707
12706
|
})
|
|
12708
12707
|
});
|
|
12709
12708
|
//#endregion
|
|
12710
|
-
export { br as AiChatTranslationsProvider, st as AreaChart, js as Await, rt as BarChart, Tt as BarChartSkeleton, ae as CardSelectableContainer, Pe as CategoryBarChart,
|
|
12709
|
+
export { br as AiChatTranslationsProvider, st as AreaChart, js as Await, rt as BarChart, Tt as BarChartSkeleton, ae as CardSelectableContainer, Pe as CategoryBarChart, ti as ChatSpinner, _o as Chip, Mr as CollapsibleGroup, Yt as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, it as DATA_COLLECTION_URL_PARAM_PREFIX, jl as Dashboard, xt as DataChartEmptyStateView, dn as DataTestIdWrapper, vt as DndProvider, Zr as DropOverlay, qn as EmojiImage, lu as F0Accordion, t as F0ActionBar, Oi as F0ActionItem, Hi as F0AiChat, xr as F0AiChatCreditsButton, kr as F0AiChatHeader, Er as F0AiChatHistory, La as F0AiChatProvider, cr as F0AiChatTextArea, ur as F0AiChatUsageLimitsButton, _r as F0AiFileAttachments, Ea as F0AiFilePreviewsProvider, xa as F0AiFormRegistryProvider, Ar as F0AiInsightCard, vr as F0AiMask, Sr as F0AiMessageSources, ar as F0AiMessagesContainer, Ia as F0AiPong, Ir as F0AiProcessingOverlay, Cr as F0AiProposalCard, Lr as F0AiTableCard, lc as F0Alert, vg as F0AnalyticsDashboard, sc as F0AudioPlayer, rc as F0AudioPlayerCard, wr as F0AuraVoiceAnimation, no as F0Avatar, Qr as F0AvatarAlert, Ja as F0AvatarCompany, Qi as F0AvatarDate, Qa as F0AvatarEmoji, to as F0AvatarFile, ro as F0AvatarIcon, so as F0AvatarList, oo as F0AvatarModule, io as F0AvatarPerson, co as F0AvatarTeam, $l as F0BigNumber, cm as F0BookAMeetingCard, Za as F0Box, V as F0Button, na as F0ButtonDropdown, Os as F0ButtonToggle, Or as F0CanvasCard, ka as F0CanvasPanel, ba as F0Card, Yr as F0CardRow, Si as F0ChatComposer, Jo as F0Checkbox, pu as F0ChipList, Rr as F0ClarifyingPanel, Ht as F0DataChart, a as F0DatePicker, cn as F0DatePickerInline, im as F0DemoCard, ta as F0Dialog, p as F0DialogAlikeContext, b as F0DialogAlikeProvider, To as F0DialogContext, ms as F0DialogProvider, fc as F0DocumentViewer, xu as F0Drawer, mt as F0DurationInput, Cs as F0EventCatcherProvider, om as F0FAQCard, wi as F0FileItem, wu as F0FilterPickerContent, me as F0Form, Ru as F0FormField, xl as F0GridStack, Tr as F0HILActionConfirmation, Zt as F0Heading, H as F0Icon, Ca as F0Link, sm as F0ModuleCard, rn as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, Ba as F0OneIcon, ua as F0OneSwitch, uc as F0PdfViewer, G_ as F0Provider, lm as F0QuestionCardMultiStep, vi as F0RichTextDisplay, dt as F0RichTextEditor, ss as F0SearchInput, ys as F0Select, r as F0SelectInline, wd as F0Slider, Rd as F0TableOfContentPopover, Po as F0TagAlert, Oo as F0TagBalance, rs as F0TagCompany, ho as F0TagDot, ps as F0TagList, is as F0TagPerson, vo as F0TagRaw, ws as F0TagStatus, jo as F0TagTeam, Ci as F0Text, Qt as F0TextAreaInput, s as F0TextAreaInputInline, Vi as F0TextInput, de as F0TextInputInline, o as F0TimelineRow, mc as F0VideoPlayer, sd as F0WizardForm, es as F1SearchBox, P as FILE_TYPES, ii as FileItem, sr as FormCardValueFormatterProvider, Rt as FunnelChartSkeleton, eo as GROUP_ID_SYMBOL, fo as GROUP_KEY_SEPARATOR, We as GaugeChartSkeleton, yt as HeatmapChartSkeleton, ql as HomeLayout, Ot as InlineFieldRow, bt as InlineFieldRowList, ga as Input, Wl as Layout, on as LineChart, Gt as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, $t as NotesTextEditor, ue as NotesTextEditorSkeleton, te as NumberInput, Qo as OneCalendar, Ho as OneCalendarInternal, $n as OneEllipsis, m as OneEmptyState, hs as OneFilterPicker, ze as PieChart, qe as PieChartSkeleton, _i as PongBall, n as PrivacyModeProvider, Gp as ProductBlankslate, tt as ProductCard, Jp as ProductModal, Xp as ProductWidget, tn as ProgressBarChart, fe as RadarChart, et as RadarChartSkeleton, $r as RichTextDisplay, M as RichTextEditor, kt as ScatterChartSkeleton, Gl as StandardLayout, fp as SurveyAllQuestionsLoadingSkeleton, Ip as SurveyAnsweringForm, ip as SurveyFormBuilder, zp as SurveySampleQuestion, pp as SurveySteppedLoadingSkeleton, bo as Tag, cs as TagCounter, he as Textarea, Fr as ThreadItem, yr as ThreadListSkeleton, z_ as ToastProvider, Kl as TwoColumnLayout, ne as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, $p as UpsellingAlert, tm as UpsellingBanner, S as UpsellingButton, rm as UpsellingPopover, c as VerticalBarChart, ls as WeekStartDay, Xe as actionBarStatuses, Hr as actionItemStatuses, ci as adaptDataAdapterToInfiniteScroll, ir as aiChatFileFromShowFilesItem, Dr as aiChatFileFromUploadedFile, dr as aiChatFilesFromMessage, fr as aiChatMessageText, gr as aiTranslations, gu as alertVariantOptions, ru as audioPlayerSizes, Jl as avatarVariants, Xt as buildDataCollectionUrlParams, fn as buildTranslations, nu as buttonDropdownModes, tu as buttonDropdownSizes, eu as buttonDropdownVariants, Dl as buttonSizes, Ee as buttonToggleColors, Te as buttonToggleSizes, Ae as buttonToggleVariants, El as buttonVariants, uu as cardAlertVariants, ji as cardImageAspectRatios, Ai as cardImageFits, Fi as cardImageSizes, Do as chartColorTokens, Es as chipVariants, Ud as computeSectionEndIds, pc as configurePdfWorker, Nr as contentTypes, Wt as createAtlaskitDriver, Lo as createDataSourceDefinition, Ou as createF0FormDefinitionTester, Du as createF0FormTester, wl as createPageLayoutBlock, Tl as createPageLayoutBlockGroup, lr as createPersonMentionSource, _u as dataCollectionLocalStorageHandler, mu as datePickerInlineDismissReasons, hu as datepickerSizes, Ka as defaultTranslations, oi as defineAvailableForm, Tu as describeFormSchema, O as dialog, O as dialogs, Mt as drawers, va as durationInputSizes, la as durationUnits, Jt as evaluateRenderIf, hn as experimental, xi as f0FileItemSizes, wa as f0FormField, Pa as fieldsToSeconds, zd as flattenElements, cc as formatPlaybackTime, pd as forms, nt as generateAnchorId, Ro as getAnimationVariants, ai as getDataCollectionStorageKey, zo as getDataSourcePaginationType, Qn as getEmojiLabel, ra as getF0Config, Ss as getGranularityDefinition, Xo as getGranularityDefinitions, ks as getGranularitySimpleDefinition, an as getSchemaDefinition, bs as granularityDefinitions, Bi as hasF0Config, ma as inferFieldType, Hd as injectSectionEnds, lo as isInfiniteScrollPagination, uo as isPageBasedPagination, Da as isZodType, iu as linkVariants, mr as markdownRenderers, Kr as mergeDataCollectionFilters, qa as modules, hr as oneIconSizes, sn as parseDataCollectionUrlParams, dc as pdfScales, C as predefinedPresets, vs as rangeSeparator, aa as readDataCollectionStorage, Vd as reconstructElements, ui as resolveDataCollectionFilters, us as resolveGranularityDefinition, At as resolveItemNeighbors, h as resolveWindowNeighbors, Ki as secondsToFields, Xi as secondsToVisibleFields, md as selectInlineDismissReasons, ve as selectSizes, _ as selectVariants, Be as setDataCollectionUrlParams, hd as sliderTooltipModes, nn as syncDataCollectionUrlParams, Ed as tagDotColors, Td as timelineRowStatuses, Ft as toasts, oa as unwrapZodSchema, jr as usageLimitsPopoverSides, qr as useAiChat, Br as useAiChatTranslations, nc as useAudioPlayer, Vr as useCanvasEntity, Pr as useChatHistory, ao as useData, So as useDataSource, xe as useDataSourceItemNavigation, ec as useDerivedTranscription, wt as useDndEvents, Lt as useDraggable, Ue as useDroppableList, Xn as useEmojiConfetti, Mi as useF0AiFormRegistry, wo as useF0Dialog, k as useF0DialogAlikeContext, $e as useF0Form, St as useF0FormDefinition, or as useFormCardValueFormatter, W_ as useFormComponent, Co as useGroups, yg as useIsDesktop, bg as useIsMobile, E as useItemNeighbors, Je as usePrivacyMode, Jn as useReducedMotion, Re as useSchemaDefinition, go as useSelectable, pr as useSetFormCardValueFormatter, zr as useToolCallId, Va as useXRay, L as withDataTestId, pe as writeDataCollectionStorage };
|