@factorialco/f0-react 12.14.0 → 12.16.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-CgaNJ6v9.js → ArchiveThumbnail-dGuKclaw.js} +5 -5
- package/dist/{ArchiveViewer-Uohl6wf1.js → ArchiveViewer-D4fZ2Zko.js} +12 -12
- package/dist/{ChatPostComposerDialog-Cr6Ci2dz.js → ChatPostComposerDialog-ZUy4oL4n.js} +2 -2
- package/dist/{CoachmarkProvider-Cfb6WvLp.js → CoachmarkProvider-Bui0J43V.js} +19184 -19184
- package/dist/{CodeThumbnail-CFNKh12S.js → CodeThumbnail-BN74kiZ4.js} +1 -1
- package/dist/{CodeViewer-C4XxNdq4.js → CodeViewer-DAISBEVU.js} +6 -6
- package/dist/{DocumentToolbar-CcEggNyX.js → DocumentToolbar-DY0Zl0N_.js} +2 -2
- package/dist/{DocxViewer-DIiFGMl7.js → DocxViewer-CU-h8JZo.js} +1 -1
- package/dist/{F0AiProcessingOverlay-wFS85Arm.js → F0AiProcessingOverlay-1sgWr47b.js} +1103 -1024
- package/dist/{F0Alert-DRK5Na7T.js → F0Alert--45qrdm9.js} +10 -10
- package/dist/F0AudioPlayer-ZqghWPaS.js +2 -0
- package/dist/{F0CanvasPanel-CbJxX6Qv.js → F0CanvasPanel-B07KPl9L.js} +9682 -9568
- package/dist/{F0DocumentViewer-B6ccmcTZ.js → F0DocumentViewer-CPu9X2o1.js} +2 -2
- package/dist/{F0DocumentViewer-B2_6INMo.js → F0DocumentViewer-gfD2E9-m.js} +1 -1
- package/dist/{F0Map-BkrkSniz.js → F0Map-CpggFT94.js} +129 -142
- package/dist/{F0Select-BZ20yXKy.js → F0Select-DmSUsNZ8.js} +1 -1
- package/dist/F0VideoPlayer-BqAcQLm4.js +1 -0
- package/dist/{F0VideoPlayer-BkRdc58E.js → F0VideoPlayer-C1JRJ63P.js} +22 -22
- package/dist/{HtmlViewer-qkAWMkJy.js → HtmlViewer-D6_vKugG.js} +4 -4
- package/dist/{Map-CZcZoNEa.js → Map-BSvthUb7.js} +5 -5
- package/dist/{PdfThumbnail-RTw1aKm_.js → PdfThumbnail-CXumcn98.js} +1 -1
- package/dist/{PdfViewer-m56GqoJt.js → PdfViewer-Pdk37Dts.js} +8 -8
- package/dist/{SheetViewer-C80n4nta.js → SheetViewer-BvAA9h38.js} +2 -2
- package/dist/{TextViewer-BINEouL8.js → TextViewer-D9CCbblP.js} +1 -1
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +13 -2
- package/dist/experimental.js +4463 -4459
- package/dist/{exports-BGemf1WM.d.ts → exports-4R3tYgiD.d.ts} +9 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +220 -220
- package/dist/{highlight-BNASV9vz.js → highlight-cuPZlWw_.js} +5 -5
- package/dist/{index-BkCnaiJG.d.ts → index-MOV0Rv_v.d.ts} +857 -845
- package/dist/{maplibre-DTAAiC-N.js → maplibre-D0TBtDi0.js} +1 -1
- package/dist/{pdfWorker-D16_euGm.js → pdfWorker-B3PnBrSO.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-C2gKTwyT.d.ts → types-BdObZULx.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Ds4txTh4.js +0 -2
- package/dist/F0VideoPlayer-5bnm6ryg.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-Bui0J43V.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-1sgWr47b.js";
|
|
8
|
+
import { $t as Ur, Ac as Wr, Ao as Gr, As as Kr, B as qr, Ba as Jr, Bc as Yr, Br as Xr, Cc as Zr, Ci as Qr, Cn as $r, Di as ei, Dr as ti, Ds as ni, Ei as ri, Er as ii, F as ai, Gr as oi, I as si, Jr as ci, Kr as li, L as ui, Lc as di, Lo as fi, Ls as pi, M as mi, N as hi, Ns as gi, Oi as _i, Or as vi, P as yi, Qo as bi, R as xi, Rs as Si, Sc as Ci, Si as wi, Sn as Ti, Tc as Ei, Ti as Di, Tr as Oi, Uo as ki, Us as Ai, Wr as ji, Xa as Mi, Xr as Ni, Za as Pi, _c as Fi, _i as Ii, _n as Li, _r as Ri, ac as zi, an as Bi, bc as Vi, bi as Hi, bn as Ui, bo as Wi, br as Gi, bs as Ki, cn as qi, co as Ji, di as Yi, do as Xi, dr as Zi, fr as Qi, gi as $i, gr as ea, hi as ta, ho as na, hr as ra, ii as ia, in as aa, js as oa, ko as sa, kr as ca, lc as la, li as ua, ln as da, mi as fa, mo as pa, mr as ma, ms as ha, n as ga, ni as _a, nn as va, nt as ya, oi as ba, po as xa, pr as Sa, ri as Ca, rn as wa, si as Ta, sn as Ea, t as Da, tn as Oa, tt as ka, uc as Aa, ui as ja, vc as Ma, vi as Na, vn as Pa, wi as Fa, wr as Ia, xc as La, xi as Ra, xn as za, yc as Ba, yi as Va, yn as Ha, yo as Ua, yr as Wa, yt as Ga, z as Ka, zo as qa, zr as Ja } from "./F0CanvasPanel-B07KPl9L.js";
|
|
9
9
|
import { a as Ya, i as Xa, n as Za, o as Qa, r as $a, t as H } from "./F0Icon-DmCBV0gK.js";
|
|
10
10
|
import { t as eo } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
11
11
|
import { A as to, C as no, D as ro, H as io, N as ao, S as oo, U as so, a as co, b as lo, f as uo, g as fo, h as po, i as mo, k as ho, l as go, m as _o, n as vo, r as yo, t as bo, u as xo } from "./useData-BYkiGUHX.js";
|
|
12
|
-
import { $ as So, At as Co, B as wo,
|
|
12
|
+
import { $ as So, At as Co, B as wo, Cr as To, Dn as Eo, Dr as Do, Dt as Oo, En as ko, Er as Ao, Et as jo, Ft as Mo, G as No, H as Po, It as Fo, J as Io, K as Lo, L as Ro, Mt as zo, Nt as Bo, Pn as Vo, Pt as Ho, Rt as Uo, Sr as Wo, St as Go, Tn as Ko, Tr as qo, Tt as Jo, U as Yo, V as Xo, W as Zo, X as Qo, Z as $o, _ as es, _t as ts, a as ns, bt as rs, c as is, cr as as, ct as os, et as ss, g as cs, gt as ls, h as us, ht as ds, i as fs, jt as ps, kt as ms, l as hs, lt as gs, m as _s, mt as vs, nt as ys, o as bs, or as xs, p as Ss, pr as Cs, q as ws, r as Ts, rn as Es, s as Ds, t as Os, tn as ks, tt as As, u as js, ur as Ms, v as Ns, vt as Ps, w as Fs, wt as Is, xr as Ls, y as Rs, z as zs } from "./F0Select-DmSUsNZ8.js";
|
|
13
13
|
import { t as Bs } from "./Check-DAp9gCRh.js";
|
|
14
14
|
import { a as Vs } from "./dist-CFY0KELA.js";
|
|
15
15
|
import { t as Hs } from "./Ellipsis-CBouJQYY.js";
|
|
@@ -18,10 +18,10 @@ import { t as Ws } from "./purify.es-ZpfdAuNV.js";
|
|
|
18
18
|
import { A as Gs, B as Ks, H as qs, L as Js, M as Ys, N as Xs, P as Zs, R as Qs, a as $s, ft as ec, i as tc, j as nc, k as rc, t as ic, z as ac } from "./popover-ics24JxK.js";
|
|
19
19
|
import { n as oc, r as sc } from "./scrollarea-cxaFAWG5.js";
|
|
20
20
|
import { t as cc } from "./F0Text-CXHuzMbj.js";
|
|
21
|
-
import { t as lc } from "./F0Alert
|
|
22
|
-
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-
|
|
21
|
+
import { t as lc } from "./F0Alert--45qrdm9.js";
|
|
22
|
+
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-CPu9X2o1.js";
|
|
23
23
|
import { t as pc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as mc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as mc } from "./F0VideoPlayer-C1JRJ63P.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
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
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var Ac = {
|
|
|
45
45
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
46
46
|
children: e
|
|
47
47
|
}, t));
|
|
48
|
-
return /* @__PURE__ */ X(
|
|
48
|
+
return /* @__PURE__ */ X(Wi, {
|
|
49
49
|
layout: "home",
|
|
50
50
|
children: /* @__PURE__ */ Z("div", {
|
|
51
51
|
ref: r,
|
|
@@ -79,7 +79,7 @@ var Ac = {
|
|
|
79
79
|
}), Mc = Qa({
|
|
80
80
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-page py-5",
|
|
81
81
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
82
|
-
}), Nc = hc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
82
|
+
}), Nc = hc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(Wi, {
|
|
83
83
|
layout: "standard",
|
|
84
84
|
children: /* @__PURE__ */ X("section", {
|
|
85
85
|
ref: a,
|
|
@@ -213,7 +213,7 @@ function Gc({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
213
213
|
n(e);
|
|
214
214
|
}), e;
|
|
215
215
|
});
|
|
216
|
-
|
|
216
|
+
xs(() => {
|
|
217
217
|
if (!s) return;
|
|
218
218
|
let e = s.save();
|
|
219
219
|
if (!Array.isArray(e)) return;
|
|
@@ -2624,7 +2624,7 @@ gl.renderCB = (e, t) => {
|
|
|
2624
2624
|
}, gl.resizeToContentParent = ".grid-stack-item-content", gl.Utils = Q, gl.Engine = Xc, gl.GDRev = "12.3.2";
|
|
2625
2625
|
//#endregion
|
|
2626
2626
|
//#region src/blocks/F0GridStack/components/grid-stack-render-provider.tsx
|
|
2627
|
-
var _l = /* @__PURE__ */ e(
|
|
2627
|
+
var _l = /* @__PURE__ */ e(Vo(), 1), vl = /* @__PURE__ */ new WeakMap();
|
|
2628
2628
|
function yl({ children: e }) {
|
|
2629
2629
|
let { _gridStack: { value: t, set: n }, options: r } = zc(), i = q(/* @__PURE__ */ new Map()), a = q(null), o = q(r), s = W((e, t) => {
|
|
2630
2630
|
if (t.id && t.grid) {
|
|
@@ -2954,7 +2954,7 @@ var Al = Tl("Dashboard", kl), jl = L(hn("Dashboard", Al)), Ml = Qa({
|
|
|
2954
2954
|
...l,
|
|
2955
2955
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2956
2956
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2957
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2957
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(Pi, {
|
|
2958
2958
|
items: Nl(d),
|
|
2959
2959
|
"data-testid": "actions-dropdown"
|
|
2960
2960
|
}) : null]
|
|
@@ -3028,7 +3028,7 @@ var Vl = ({ id: e, children: t }) => {
|
|
|
3028
3028
|
});
|
|
3029
3029
|
}, Hl = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: r = !1 }) => {
|
|
3030
3030
|
let [i, a] = J([]);
|
|
3031
|
-
|
|
3031
|
+
xs(() => {
|
|
3032
3032
|
a(e.map((e, t) => ({
|
|
3033
3033
|
id: e.id ?? t.toString(),
|
|
3034
3034
|
render: e.render
|
|
@@ -3109,7 +3109,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3109
3109
|
show: e.show ?? !0,
|
|
3110
3110
|
invertStatus: e.invertStatus ?? !1
|
|
3111
3111
|
}, Xl = ({ label: e, ...t }) => {
|
|
3112
|
-
let n =
|
|
3112
|
+
let n = Ho(), r = n(t.value, { formatterOptions: { decimalPlaces: 2 } }), i = Yl(t.trend), a = n(t.comparison), o = Mo(r.numericValue, r.formatterOptions), s = Fo(a.numericValue), c = Fo(r.numericValue), l = K(() => {
|
|
3113
3113
|
if (s && i.show && s && c) return (c - s) / s * 100;
|
|
3114
3114
|
}, [
|
|
3115
3115
|
c,
|
|
@@ -3123,7 +3123,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3123
3123
|
children: [/* @__PURE__ */ X("span", {
|
|
3124
3124
|
className: "font-bold text-2xl",
|
|
3125
3125
|
children: o
|
|
3126
|
-
}), s === void 0 ? null : /* @__PURE__ */ X(
|
|
3126
|
+
}), s === void 0 ? null : /* @__PURE__ */ X(Bo, {
|
|
3127
3127
|
percentage: l,
|
|
3128
3128
|
amount: a,
|
|
3129
3129
|
invertStatus: i.invertStatus,
|
|
@@ -3139,7 +3139,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3139
3139
|
})]
|
|
3140
3140
|
});
|
|
3141
3141
|
Xl.displayName = "F0BigNumber";
|
|
3142
|
-
var Ql =
|
|
3142
|
+
var Ql = Ji(Xl, Zl), $l = L(Ql), eu = [
|
|
3143
3143
|
"default",
|
|
3144
3144
|
"outline",
|
|
3145
3145
|
"neutral"
|
|
@@ -3147,14 +3147,14 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3147
3147
|
className: "flex items-center gap-2",
|
|
3148
3148
|
children: e.map((e, t) => {
|
|
3149
3149
|
switch (e.type) {
|
|
3150
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3150
|
+
case "segmentedControl": return /* @__PURE__ */ X(Hi, {
|
|
3151
3151
|
items: e.items,
|
|
3152
3152
|
value: e.value,
|
|
3153
3153
|
onChange: e.onChange,
|
|
3154
3154
|
disabled: e.disabled,
|
|
3155
3155
|
ariaLabel: e.ariaLabel
|
|
3156
3156
|
}, t);
|
|
3157
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3157
|
+
case "dropdown": return /* @__PURE__ */ X(Pi, {
|
|
3158
3158
|
items: e.items,
|
|
3159
3159
|
disabled: e.disabled,
|
|
3160
3160
|
children: /* @__PURE__ */ X(V, {
|
|
@@ -3170,7 +3170,7 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3170
3170
|
})
|
|
3171
3171
|
}), ou = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3172
3172
|
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(
|
|
3173
|
+
return /* @__PURE__ */ X(fa, {
|
|
3174
3174
|
open: t,
|
|
3175
3175
|
onOpenChange: n,
|
|
3176
3176
|
asChild: !0,
|
|
@@ -3178,7 +3178,7 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3178
3178
|
className: "flex flex-col",
|
|
3179
3179
|
children: [/* @__PURE__ */ Z("div", {
|
|
3180
3180
|
className: "flex items-center",
|
|
3181
|
-
children: [/* @__PURE__ */ X(
|
|
3181
|
+
children: [/* @__PURE__ */ X($i, {
|
|
3182
3182
|
asChild: !0,
|
|
3183
3183
|
children: /* @__PURE__ */ X("button", {
|
|
3184
3184
|
type: "button",
|
|
@@ -3196,12 +3196,12 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3196
3196
|
children: e.summary
|
|
3197
3197
|
}) : null,
|
|
3198
3198
|
a ? /* @__PURE__ */ X(au, { actions: e.actions }) : null,
|
|
3199
|
-
/* @__PURE__ */ X(
|
|
3199
|
+
/* @__PURE__ */ X($i, {
|
|
3200
3200
|
asChild: !0,
|
|
3201
3201
|
children: /* @__PURE__ */ X(V, {
|
|
3202
3202
|
variant: "outline",
|
|
3203
3203
|
size: "sm",
|
|
3204
|
-
icon: t ?
|
|
3204
|
+
icon: t ? Ls : io,
|
|
3205
3205
|
label: i,
|
|
3206
3206
|
hideLabel: !0
|
|
3207
3207
|
})
|
|
@@ -3225,7 +3225,7 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3225
3225
|
},
|
|
3226
3226
|
transition: { duration: r ? 0 : .2 },
|
|
3227
3227
|
className: "overflow-hidden",
|
|
3228
|
-
children: /* @__PURE__ */ X(
|
|
3228
|
+
children: /* @__PURE__ */ X(ta, {
|
|
3229
3229
|
forceMount: !0,
|
|
3230
3230
|
asChild: !0,
|
|
3231
3231
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3269,13 +3269,13 @@ var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3269
3269
|
});
|
|
3270
3270
|
});
|
|
3271
3271
|
cu.displayName = "F0Accordion";
|
|
3272
|
-
var lu = L(hn("F0Accordion",
|
|
3272
|
+
var lu = L(hn("F0Accordion", Ji(cu, su))), uu = [
|
|
3273
3273
|
"info",
|
|
3274
3274
|
"warning",
|
|
3275
3275
|
"critical",
|
|
3276
3276
|
"positive"
|
|
3277
3277
|
], du = ({ count: e, list: t }) => {
|
|
3278
|
-
let [n, r] = J(!1), i = /* @__PURE__ */ X(
|
|
3278
|
+
let [n, r] = J(!1), i = /* @__PURE__ */ X(Is, { label: `+${e}` });
|
|
3279
3279
|
return t?.length ? /* @__PURE__ */ Z(ic, {
|
|
3280
3280
|
open: n,
|
|
3281
3281
|
onOpenChange: r,
|
|
@@ -3292,7 +3292,7 @@ var lu = L(hn("F0Accordion", Ai(cu, su))), uu = [
|
|
|
3292
3292
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
3293
3293
|
children: [t.map((e, t) => /* @__PURE__ */ X("div", {
|
|
3294
3294
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
3295
|
-
children: /* @__PURE__ */ X(
|
|
3295
|
+
children: /* @__PURE__ */ X(Is, { ...e })
|
|
3296
3296
|
}, t)), /* @__PURE__ */ X(sc, {
|
|
3297
3297
|
orientation: "vertical",
|
|
3298
3298
|
className: "[&_div]:bg-f1-background"
|
|
@@ -3307,7 +3307,7 @@ du.displayName = "ChipCounter";
|
|
|
3307
3307
|
var fu = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) => {
|
|
3308
3308
|
if (r === "fill") return /* @__PURE__ */ X(xo, {
|
|
3309
3309
|
items: e,
|
|
3310
|
-
renderListItem: (e) => /* @__PURE__ */ X(
|
|
3310
|
+
renderListItem: (e) => /* @__PURE__ */ X(Is, { ...e }),
|
|
3311
3311
|
renderDropdownItem: () => null,
|
|
3312
3312
|
forceShowingOverflowIndicator: n !== void 0,
|
|
3313
3313
|
renderOverflowIndicator: (t) => /* @__PURE__ */ X(du, {
|
|
@@ -3320,7 +3320,7 @@ var fu = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
|
|
|
3320
3320
|
let i = e.slice(0, t), a = e.slice(t), o = n ?? e.length - t, s = o > 0;
|
|
3321
3321
|
return /* @__PURE__ */ Z("div", {
|
|
3322
3322
|
className: "flex items-center gap-2",
|
|
3323
|
-
children: [i.map((e, t) => /* @__PURE__ */ X(
|
|
3323
|
+
children: [i.map((e, t) => /* @__PURE__ */ X(Is, { ...e }, t)), s ? /* @__PURE__ */ X(du, {
|
|
3324
3324
|
count: o,
|
|
3325
3325
|
list: n ? void 0 : a
|
|
3326
3326
|
}) : null]
|
|
@@ -3340,9 +3340,9 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3340
3340
|
"positive",
|
|
3341
3341
|
"transparent"
|
|
3342
3342
|
], _u = {
|
|
3343
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3343
|
+
get: async (e) => JSON.parse(localStorage.getItem(Ni(e)) ?? "{}"),
|
|
3344
3344
|
set: async (e, t) => {
|
|
3345
|
-
localStorage.setItem(
|
|
3345
|
+
localStorage.setItem(Ni(e), JSON.stringify(t));
|
|
3346
3346
|
}
|
|
3347
3347
|
}, 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
3348
|
let [b, x] = J(n);
|
|
@@ -3414,7 +3414,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3414
3414
|
let t = Object.keys(e);
|
|
3415
3415
|
if (t.length > 0) {
|
|
3416
3416
|
let n = t.find((t) => {
|
|
3417
|
-
let n = p[t], r =
|
|
3417
|
+
let n = p[t], r = js(e[t].type);
|
|
3418
3418
|
return n !== void 0 && !r.isEmpty(n, {
|
|
3419
3419
|
schema: e[t],
|
|
3420
3420
|
i18n: l
|
|
@@ -3438,7 +3438,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3438
3438
|
}, g = () => {
|
|
3439
3439
|
n(p);
|
|
3440
3440
|
}, _ = K(() => r || Object.entries(e).reduce((e, [t, n]) => {
|
|
3441
|
-
let r =
|
|
3441
|
+
let r = js(n.type);
|
|
3442
3442
|
return Math.max(e, r?.formHeight || Su);
|
|
3443
3443
|
}, 0), [e, r]);
|
|
3444
3444
|
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(dn, {
|
|
@@ -3446,7 +3446,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3446
3446
|
children: /* @__PURE__ */ X("div", {
|
|
3447
3447
|
className: B("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
3448
3448
|
style: { maxWidth: i },
|
|
3449
|
-
children: /* @__PURE__ */ X(
|
|
3449
|
+
children: /* @__PURE__ */ X(bs, {
|
|
3450
3450
|
filters: e,
|
|
3451
3451
|
tempFilters: p,
|
|
3452
3452
|
selectedFilterKey: d,
|
|
@@ -3465,11 +3465,11 @@ var wu = Cu;
|
|
|
3465
3465
|
//#endregion
|
|
3466
3466
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3467
3467
|
function Tu(e) {
|
|
3468
|
-
let t =
|
|
3468
|
+
let t = Ti(e).shape, n = [];
|
|
3469
3469
|
for (let [e, r] of Object.entries(t)) {
|
|
3470
|
-
let t = r, i =
|
|
3470
|
+
let t = r, i = Pa(t);
|
|
3471
3471
|
if (!i) continue;
|
|
3472
|
-
let a =
|
|
3472
|
+
let a = Ui(t, i), o = en(t, a), s = {
|
|
3473
3473
|
name: e,
|
|
3474
3474
|
type: a,
|
|
3475
3475
|
label: i.label,
|
|
@@ -3541,9 +3541,9 @@ function Du(e) {
|
|
|
3541
3541
|
let r = {
|
|
3542
3542
|
...n,
|
|
3543
3543
|
...e
|
|
3544
|
-
}, i =
|
|
3544
|
+
}, i = Ti(t), a = [];
|
|
3545
3545
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3546
|
-
let n =
|
|
3546
|
+
let n = Pa(t);
|
|
3547
3547
|
n?.renderIf ? Jt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3548
3548
|
}
|
|
3549
3549
|
return a;
|
|
@@ -3587,12 +3587,12 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3587
3587
|
modal: !0,
|
|
3588
3588
|
children: /* @__PURE__ */ Z("div", {
|
|
3589
3589
|
className: "flex flex-col gap-4 py-2",
|
|
3590
|
-
children: [/* @__PURE__ */ X(
|
|
3590
|
+
children: [/* @__PURE__ */ X(Mi, {
|
|
3591
3591
|
type: n,
|
|
3592
3592
|
size: "lg"
|
|
3593
3593
|
}), /* @__PURE__ */ Z("div", {
|
|
3594
3594
|
className: "flex flex-col gap-0.5",
|
|
3595
|
-
children: [/* @__PURE__ */ X(
|
|
3595
|
+
children: [/* @__PURE__ */ X(Ca, {
|
|
3596
3596
|
className: "text-xl sm:text-lg",
|
|
3597
3597
|
children: r
|
|
3598
3598
|
}), /* @__PURE__ */ X(se, {
|
|
@@ -3652,8 +3652,8 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3652
3652
|
return r.map((t) => ({
|
|
3653
3653
|
...t,
|
|
3654
3654
|
actions: {
|
|
3655
|
-
primary:
|
|
3656
|
-
secondary:
|
|
3655
|
+
primary: Ro(t.actions.primary).map((n, r) => e(t, n, "primary", r)),
|
|
3656
|
+
secondary: Ro(t.actions.secondary).map((n, r) => e(t, n, "secondary", r))
|
|
3657
3657
|
}
|
|
3658
3658
|
}));
|
|
3659
3659
|
}, [r]), d = K(() => {
|
|
@@ -3833,7 +3833,7 @@ function Ru({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
3833
3833
|
className: "text-base text-f1-foreground-secondary",
|
|
3834
3834
|
children: e.helpText
|
|
3835
3835
|
}) : null,
|
|
3836
|
-
/* @__PURE__ */ X(
|
|
3836
|
+
/* @__PURE__ */ X($o, { status: v })
|
|
3837
3837
|
]
|
|
3838
3838
|
}) });
|
|
3839
3839
|
}
|
|
@@ -3979,7 +3979,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3979
3979
|
onClose: r
|
|
3980
3980
|
}), _ = 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
3981
|
label: x,
|
|
3982
|
-
icon: b ? void 0 :
|
|
3982
|
+
icon: b ? void 0 : Wr,
|
|
3983
3983
|
onClick: () => void h.goNext(),
|
|
3984
3984
|
disabled: v?.isCompleted?.() === !1 || v?.hasErrors?.() === !0,
|
|
3985
3985
|
loading: h.loading
|
|
@@ -3990,7 +3990,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3990
3990
|
v
|
|
3991
3991
|
]), w = K(() => y ? void 0 : {
|
|
3992
3992
|
label: S,
|
|
3993
|
-
icon:
|
|
3993
|
+
icon: Ao,
|
|
3994
3994
|
onClick: h.goPrevious,
|
|
3995
3995
|
disabled: h.loading
|
|
3996
3996
|
}, [
|
|
@@ -4036,14 +4036,14 @@ Ju.displayName = "F0Wizard", L(Ju);
|
|
|
4036
4036
|
//#endregion
|
|
4037
4037
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4038
4038
|
function Yu(e) {
|
|
4039
|
-
let t =
|
|
4040
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4039
|
+
let t = Ti(e).shape, n = Object.entries(t);
|
|
4040
|
+
return n.length !== 0 && n.every(([, e]) => Pa(e)?.disabled === !0);
|
|
4041
4041
|
}
|
|
4042
4042
|
function Xu(e, t) {
|
|
4043
4043
|
if (t) return Object.keys(t);
|
|
4044
|
-
let n =
|
|
4044
|
+
let n = Ti(e).shape, r = /* @__PURE__ */ new Set();
|
|
4045
4045
|
for (let e of Object.values(n)) {
|
|
4046
|
-
let t =
|
|
4046
|
+
let t = Pa(e);
|
|
4047
4047
|
t?.section && r.add(t.section);
|
|
4048
4048
|
}
|
|
4049
4049
|
return Array.from(r);
|
|
@@ -4051,15 +4051,15 @@ function Xu(e, t) {
|
|
|
4051
4051
|
function Zu(e, t) {
|
|
4052
4052
|
let n = e.shape, r = {};
|
|
4053
4053
|
for (let [e, i] of Object.entries(n)) {
|
|
4054
|
-
let n =
|
|
4054
|
+
let n = Pa(i);
|
|
4055
4055
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4056
4056
|
}
|
|
4057
|
-
return
|
|
4057
|
+
return ra(r);
|
|
4058
4058
|
}
|
|
4059
4059
|
function Qu(e, t, n) {
|
|
4060
4060
|
let r = t ?? {};
|
|
4061
4061
|
if (n) return n({ data: r });
|
|
4062
|
-
let i =
|
|
4062
|
+
let i = Ti(e).shape;
|
|
4063
4063
|
return Object.entries(i).every(([e, t]) => {
|
|
4064
4064
|
if (t.isOptional()) return !0;
|
|
4065
4065
|
let n = r[e];
|
|
@@ -4285,7 +4285,7 @@ function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
4287
|
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(() =>
|
|
4288
|
+
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Ti(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
4289
|
await O.submit();
|
|
4290
4290
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
4291
4291
|
title: y?.[e]?.title ?? e,
|
|
@@ -4568,14 +4568,14 @@ var pd = { open: fd }, md = [
|
|
|
4568
4568
|
I.current = !1;
|
|
4569
4569
|
},
|
|
4570
4570
|
children: [
|
|
4571
|
-
ae ? /* @__PURE__ */ X(
|
|
4571
|
+
ae ? /* @__PURE__ */ X(Qo, {
|
|
4572
4572
|
label: n,
|
|
4573
4573
|
required: s,
|
|
4574
4574
|
htmlFor: S,
|
|
4575
4575
|
id: C,
|
|
4576
4576
|
disabled: c
|
|
4577
4577
|
}) : null,
|
|
4578
|
-
/* @__PURE__ */ Z(
|
|
4578
|
+
/* @__PURE__ */ Z(Ra, {
|
|
4579
4579
|
value: [O],
|
|
4580
4580
|
onValueChange: j,
|
|
4581
4581
|
onValueCommit: M,
|
|
@@ -4590,14 +4590,14 @@ var pd = { open: fd }, md = [
|
|
|
4590
4590
|
onMouseEnter: () => P(!0),
|
|
4591
4591
|
onMouseLeave: () => P(!1),
|
|
4592
4592
|
children: [
|
|
4593
|
-
/* @__PURE__ */ X(
|
|
4593
|
+
/* @__PURE__ */ X(Fa, {
|
|
4594
4594
|
className: yd({ status: ie }),
|
|
4595
|
-
children: /* @__PURE__ */ X(
|
|
4595
|
+
children: /* @__PURE__ */ X(wi, { className: bd({
|
|
4596
4596
|
status: ie,
|
|
4597
4597
|
disabled: c
|
|
4598
4598
|
}) })
|
|
4599
4599
|
}),
|
|
4600
|
-
/* @__PURE__ */ X(
|
|
4600
|
+
/* @__PURE__ */ X(Qr, {
|
|
4601
4601
|
id: S,
|
|
4602
4602
|
"aria-label": ae ? void 0 : T,
|
|
4603
4603
|
"aria-labelledby": ae ? C : void 0,
|
|
@@ -4630,13 +4630,13 @@ var pd = { open: fd }, md = [
|
|
|
4630
4630
|
id: w,
|
|
4631
4631
|
role: "status",
|
|
4632
4632
|
"aria-live": "polite",
|
|
4633
|
-
children: /* @__PURE__ */ X(
|
|
4633
|
+
children: /* @__PURE__ */ X($o, { status: oe })
|
|
4634
4634
|
})
|
|
4635
4635
|
]
|
|
4636
4636
|
});
|
|
4637
4637
|
});
|
|
4638
4638
|
Cd.displayName = "F0Slider";
|
|
4639
|
-
var wd = hn("F0Slider",
|
|
4639
|
+
var wd = hn("F0Slider", Ji(L(Cd), vd)), Td = [
|
|
4640
4640
|
"completed",
|
|
4641
4641
|
"in-progress",
|
|
4642
4642
|
"not-started"
|
|
@@ -4778,7 +4778,7 @@ function Ld({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
4778
4778
|
onOpenChange: _,
|
|
4779
4779
|
openDelay: Fd,
|
|
4780
4780
|
closeDelay: Pd,
|
|
4781
|
-
children: [/* @__PURE__ */ X(
|
|
4781
|
+
children: [/* @__PURE__ */ X(Ps, {
|
|
4782
4782
|
asChild: !0,
|
|
4783
4783
|
children: /* @__PURE__ */ X("button", {
|
|
4784
4784
|
className: B(Tn(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", n),
|
|
@@ -4790,7 +4790,7 @@ function Ld({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
4790
4790
|
variant: u
|
|
4791
4791
|
})
|
|
4792
4792
|
})
|
|
4793
|
-
}), /* @__PURE__ */ X(
|
|
4793
|
+
}), /* @__PURE__ */ X(ts, {
|
|
4794
4794
|
ref: v,
|
|
4795
4795
|
side: c === "left" ? "right" : "left",
|
|
4796
4796
|
align: "center",
|
|
@@ -4904,7 +4904,7 @@ function Ud(e) {
|
|
|
4904
4904
|
}
|
|
4905
4905
|
//#endregion
|
|
4906
4906
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4907
|
-
var Wd = Gn.create(
|
|
4907
|
+
var Wd = Gn.create(Ur), Gd = xc(() => {
|
|
4908
4908
|
let e = R();
|
|
4909
4909
|
return /* @__PURE__ */ Z("div", {
|
|
4910
4910
|
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 +5260,12 @@ var sf = () => {
|
|
|
5260
5260
|
let { isQuestionTypeAllowed: e, datasets: t } = nf(), { t: n } = R(), r = [
|
|
5261
5261
|
{
|
|
5262
5262
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5263
|
-
icon:
|
|
5263
|
+
icon: ki,
|
|
5264
5264
|
questionType: "rating"
|
|
5265
5265
|
},
|
|
5266
5266
|
{
|
|
5267
5267
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5268
|
-
icon:
|
|
5268
|
+
icon: Fi,
|
|
5269
5269
|
questionType: "multi-select"
|
|
5270
5270
|
},
|
|
5271
5271
|
{
|
|
@@ -5275,32 +5275,32 @@ var sf = () => {
|
|
|
5275
5275
|
},
|
|
5276
5276
|
{
|
|
5277
5277
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5278
|
-
icon:
|
|
5278
|
+
icon: fi,
|
|
5279
5279
|
questionType: "text"
|
|
5280
5280
|
},
|
|
5281
5281
|
{
|
|
5282
5282
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5283
|
-
icon:
|
|
5283
|
+
icon: Kr,
|
|
5284
5284
|
questionType: "longText"
|
|
5285
5285
|
},
|
|
5286
5286
|
{
|
|
5287
5287
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5288
|
-
icon:
|
|
5288
|
+
icon: ha,
|
|
5289
5289
|
questionType: "numeric"
|
|
5290
5290
|
},
|
|
5291
5291
|
{
|
|
5292
5292
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5293
|
-
icon:
|
|
5293
|
+
icon: oa,
|
|
5294
5294
|
questionType: "link"
|
|
5295
5295
|
},
|
|
5296
5296
|
{
|
|
5297
5297
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5298
|
-
icon:
|
|
5298
|
+
icon: Ei,
|
|
5299
5299
|
questionType: "date"
|
|
5300
5300
|
},
|
|
5301
5301
|
{
|
|
5302
5302
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5303
|
-
icon:
|
|
5303
|
+
icon: Gr,
|
|
5304
5304
|
questionType: "file"
|
|
5305
5305
|
},
|
|
5306
5306
|
{
|
|
@@ -5316,17 +5316,17 @@ var sf = () => {
|
|
|
5316
5316
|
})) : [];
|
|
5317
5317
|
return [...r, ...i];
|
|
5318
5318
|
}, cf = {
|
|
5319
|
-
rating:
|
|
5320
|
-
"multi-select":
|
|
5319
|
+
rating: ki,
|
|
5320
|
+
"multi-select": Fi,
|
|
5321
5321
|
select: Bs,
|
|
5322
|
-
text:
|
|
5323
|
-
longText:
|
|
5324
|
-
numeric:
|
|
5325
|
-
link:
|
|
5326
|
-
date:
|
|
5322
|
+
text: fi,
|
|
5323
|
+
longText: Kr,
|
|
5324
|
+
numeric: ha,
|
|
5325
|
+
link: oa,
|
|
5326
|
+
date: Ei,
|
|
5327
5327
|
"dropdown-single": io,
|
|
5328
5328
|
"dropdown-multi": io,
|
|
5329
|
-
file:
|
|
5329
|
+
file: Gr,
|
|
5330
5330
|
checkbox: Vs
|
|
5331
5331
|
}, lf = () => {
|
|
5332
5332
|
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 +5360,7 @@ var sf = () => {
|
|
|
5360
5360
|
children: /* @__PURE__ */ Z("div", {
|
|
5361
5361
|
className: "flex w-full flex-row items-center gap-2",
|
|
5362
5362
|
children: [/* @__PURE__ */ X(H, {
|
|
5363
|
-
icon:
|
|
5363
|
+
icon: Yr,
|
|
5364
5364
|
color: "default"
|
|
5365
5365
|
}), /* @__PURE__ */ X("span", {
|
|
5366
5366
|
className: "flex-1 text-base font-medium",
|
|
@@ -5413,7 +5413,7 @@ var sf = () => {
|
|
|
5413
5413
|
children: /* @__PURE__ */ Z("div", {
|
|
5414
5414
|
className: "flex w-full flex-row items-center gap-2",
|
|
5415
5415
|
children: [/* @__PURE__ */ X(H, {
|
|
5416
|
-
icon:
|
|
5416
|
+
icon: Fi,
|
|
5417
5417
|
color: "default"
|
|
5418
5418
|
}), /* @__PURE__ */ X("span", {
|
|
5419
5419
|
className: "flex-1",
|
|
@@ -5577,7 +5577,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Y
|
|
|
5577
5577
|
className: "flex-1",
|
|
5578
5578
|
children: e
|
|
5579
5579
|
}),
|
|
5580
|
-
/* @__PURE__ */ X(
|
|
5580
|
+
/* @__PURE__ */ X(Ss, {
|
|
5581
5581
|
title: e,
|
|
5582
5582
|
checked: n,
|
|
5583
5583
|
onCheckedChange: r,
|
|
@@ -5593,7 +5593,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Y
|
|
|
5593
5593
|
className: "flex w-full flex-row items-center gap-2",
|
|
5594
5594
|
children: [
|
|
5595
5595
|
/* @__PURE__ */ X(Za, {
|
|
5596
|
-
icon:
|
|
5596
|
+
icon: Si,
|
|
5597
5597
|
color: "default"
|
|
5598
5598
|
}),
|
|
5599
5599
|
/* @__PURE__ */ X("span", {
|
|
@@ -5705,7 +5705,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Y
|
|
|
5705
5705
|
className: "flex w-full flex-row items-center gap-2",
|
|
5706
5706
|
children: [
|
|
5707
5707
|
/* @__PURE__ */ X(Za, {
|
|
5708
|
-
icon:
|
|
5708
|
+
icon: Fi,
|
|
5709
5709
|
color: "default"
|
|
5710
5710
|
}),
|
|
5711
5711
|
/* @__PURE__ */ X("span", {
|
|
@@ -5734,11 +5734,11 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Y
|
|
|
5734
5734
|
let { t: a } = R(), { labels: o } = nf();
|
|
5735
5735
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Js, {}) : null, /* @__PURE__ */ Z(nc, { children: [e ? /* @__PURE__ */ X(vf, {
|
|
5736
5736
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5737
|
-
icon:
|
|
5737
|
+
icon: gi,
|
|
5738
5738
|
onClick: r
|
|
5739
5739
|
}) : null, t ? /* @__PURE__ */ X(vf, {
|
|
5740
5740
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5741
|
-
icon:
|
|
5741
|
+
icon: la,
|
|
5742
5742
|
onClick: i,
|
|
5743
5743
|
critical: !0
|
|
5744
5744
|
}) : null] })] });
|
|
@@ -5773,19 +5773,19 @@ function bf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5773
5773
|
}),
|
|
5774
5774
|
T ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5775
5775
|
label: o("surveyFormBuilder.labels.required"),
|
|
5776
|
-
icon:
|
|
5776
|
+
icon: di,
|
|
5777
5777
|
checked: !!l?.required,
|
|
5778
5778
|
onChange: _
|
|
5779
5779
|
}) }) : null,
|
|
5780
5780
|
E ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5781
5781
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5782
|
-
icon:
|
|
5782
|
+
icon: Fi,
|
|
5783
5783
|
checked: p,
|
|
5784
5784
|
onChange: b
|
|
5785
5785
|
}) }) : null,
|
|
5786
5786
|
D ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5787
5787
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
5788
|
-
icon:
|
|
5788
|
+
icon: as,
|
|
5789
5789
|
checked: m,
|
|
5790
5790
|
onChange: x
|
|
5791
5791
|
}) }) : null,
|
|
@@ -5969,7 +5969,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5969
5969
|
children: /* @__PURE__ */ Z("div", {
|
|
5970
5970
|
className: "flex w-full flex-row items-center gap-2",
|
|
5971
5971
|
children: [/* @__PURE__ */ X(H, {
|
|
5972
|
-
icon:
|
|
5972
|
+
icon: Yr,
|
|
5973
5973
|
color: "default"
|
|
5974
5974
|
}), /* @__PURE__ */ X("span", {
|
|
5975
5975
|
className: "flex-1 text-base font-medium",
|
|
@@ -6021,7 +6021,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
6021
6021
|
children: /* @__PURE__ */ Z("div", {
|
|
6022
6022
|
className: "flex w-full flex-row items-center gap-2",
|
|
6023
6023
|
children: [/* @__PURE__ */ X(H, {
|
|
6024
|
-
icon:
|
|
6024
|
+
icon: Fi,
|
|
6025
6025
|
color: "default"
|
|
6026
6026
|
}), /* @__PURE__ */ X("span", {
|
|
6027
6027
|
className: "flex-1",
|
|
@@ -6049,7 +6049,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6049
6049
|
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = nf(), s = Cf(n), { t: c } = R();
|
|
6050
6050
|
if (i) return /* @__PURE__ */ X(Sf, {
|
|
6051
6051
|
...n,
|
|
6052
|
-
children: /* @__PURE__ */ X(
|
|
6052
|
+
children: /* @__PURE__ */ X(gs, {
|
|
6053
6053
|
id: n.id,
|
|
6054
6054
|
checked: e ?? !1,
|
|
6055
6055
|
onCheckedChange: (e) => {
|
|
@@ -6069,7 +6069,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6069
6069
|
...n,
|
|
6070
6070
|
children: /* @__PURE__ */ Z("div", {
|
|
6071
6071
|
className: "flex items-start",
|
|
6072
|
-
children: [/* @__PURE__ */ X(
|
|
6072
|
+
children: [/* @__PURE__ */ X(gs, {
|
|
6073
6073
|
checked: !1,
|
|
6074
6074
|
disabled: !0,
|
|
6075
6075
|
hideLabel: !0,
|
|
@@ -6255,8 +6255,8 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6255
6255
|
required: t.required,
|
|
6256
6256
|
maxDecimals: 0,
|
|
6257
6257
|
placeholder: s,
|
|
6258
|
-
icon:
|
|
6259
|
-
}) : /* @__PURE__ */ X(
|
|
6258
|
+
icon: ha
|
|
6259
|
+
}) : /* @__PURE__ */ X(Wa, {
|
|
6260
6260
|
type: "text",
|
|
6261
6261
|
size: "md",
|
|
6262
6262
|
value: s,
|
|
@@ -6264,7 +6264,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6264
6264
|
disabled: !0,
|
|
6265
6265
|
label: n("surveyFormBuilder.answer.label"),
|
|
6266
6266
|
hideLabel: !0,
|
|
6267
|
-
icon:
|
|
6267
|
+
icon: ha
|
|
6268
6268
|
})
|
|
6269
6269
|
});
|
|
6270
6270
|
}, Mf = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -6421,7 +6421,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6421
6421
|
children: [
|
|
6422
6422
|
/* @__PURE__ */ X("div", {
|
|
6423
6423
|
className: B("block", E ? "group-hover:hidden" : "cursor-default", p && "cursor-grabbing [&_button]:cursor-grabbing"),
|
|
6424
|
-
children: u === "multi-select" ? /* @__PURE__ */ X(
|
|
6424
|
+
children: u === "multi-select" ? /* @__PURE__ */ X(gs, {
|
|
6425
6425
|
title: f,
|
|
6426
6426
|
checked: o ? !!s : !1,
|
|
6427
6427
|
onCheckedChange: y,
|
|
@@ -6438,7 +6438,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6438
6438
|
children: /* @__PURE__ */ X("div", {
|
|
6439
6439
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6440
6440
|
children: /* @__PURE__ */ X(Za, {
|
|
6441
|
-
icon:
|
|
6441
|
+
icon: Ai,
|
|
6442
6442
|
size: "sm"
|
|
6443
6443
|
})
|
|
6444
6444
|
})
|
|
@@ -6461,13 +6461,13 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6461
6461
|
children: [/* @__PURE__ */ X(V, {
|
|
6462
6462
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6463
6463
|
variant: "ghost",
|
|
6464
|
-
icon: c ?
|
|
6464
|
+
icon: c ? Aa : Ma,
|
|
6465
6465
|
onClick: x,
|
|
6466
6466
|
hideLabel: !0
|
|
6467
6467
|
}), /* @__PURE__ */ X(V, {
|
|
6468
6468
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6469
6469
|
variant: "ghost",
|
|
6470
|
-
icon:
|
|
6470
|
+
icon: la,
|
|
6471
6471
|
hideLabel: !0,
|
|
6472
6472
|
onClick: S
|
|
6473
6473
|
})]
|
|
@@ -6694,7 +6694,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6694
6694
|
h && c.start(e);
|
|
6695
6695
|
},
|
|
6696
6696
|
children: /* @__PURE__ */ X(H, {
|
|
6697
|
-
icon:
|
|
6697
|
+
icon: Ai,
|
|
6698
6698
|
size: "sm"
|
|
6699
6699
|
})
|
|
6700
6700
|
}) : null, /* @__PURE__ */ X(Bf, { ...e.question })]
|
|
@@ -6724,7 +6724,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6724
6724
|
f && i.start(e);
|
|
6725
6725
|
},
|
|
6726
6726
|
children: /* @__PURE__ */ X(H, {
|
|
6727
|
-
icon:
|
|
6727
|
+
icon: Ai,
|
|
6728
6728
|
size: "sm"
|
|
6729
6729
|
})
|
|
6730
6730
|
}) : null, /* @__PURE__ */ X(Bf, { ...e })]
|
|
@@ -6756,7 +6756,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6756
6756
|
});
|
|
6757
6757
|
}, x = [{
|
|
6758
6758
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6759
|
-
icon:
|
|
6759
|
+
icon: gi,
|
|
6760
6760
|
onClick: () => {
|
|
6761
6761
|
d?.({
|
|
6762
6762
|
elementId: e,
|
|
@@ -6765,7 +6765,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6765
6765
|
}
|
|
6766
6766
|
}, {
|
|
6767
6767
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6768
|
-
icon:
|
|
6768
|
+
icon: la,
|
|
6769
6769
|
onClick: () => {
|
|
6770
6770
|
u(e);
|
|
6771
6771
|
},
|
|
@@ -6810,7 +6810,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6810
6810
|
}) : null,
|
|
6811
6811
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6812
6812
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6813
|
-
children: /* @__PURE__ */ X(
|
|
6813
|
+
children: /* @__PURE__ */ X(Pi, {
|
|
6814
6814
|
items: x,
|
|
6815
6815
|
icon: Hs,
|
|
6816
6816
|
open: p,
|
|
@@ -6886,7 +6886,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6886
6886
|
o.start(e);
|
|
6887
6887
|
},
|
|
6888
6888
|
children: /* @__PURE__ */ X(H, {
|
|
6889
|
-
icon:
|
|
6889
|
+
icon: Ai,
|
|
6890
6890
|
size: "sm"
|
|
6891
6891
|
})
|
|
6892
6892
|
}) : null, /* @__PURE__ */ X(Wf, {
|
|
@@ -6916,7 +6916,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6916
6916
|
p || x.push({
|
|
6917
6917
|
type: "toggle",
|
|
6918
6918
|
label: l,
|
|
6919
|
-
icon:
|
|
6919
|
+
icon: di,
|
|
6920
6920
|
checked: !!r?.required,
|
|
6921
6921
|
onCheckedChange: m
|
|
6922
6922
|
});
|
|
@@ -6961,7 +6961,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6961
6961
|
selected: s === e && t === "dropdown-single"
|
|
6962
6962
|
}, {
|
|
6963
6963
|
label: f,
|
|
6964
|
-
icon:
|
|
6964
|
+
icon: Fi,
|
|
6965
6965
|
onClick: () => h("dropdown-multi", e),
|
|
6966
6966
|
selected: s === e && t === "dropdown-multi"
|
|
6967
6967
|
}]
|
|
@@ -6975,16 +6975,16 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6975
6975
|
return x.push({
|
|
6976
6976
|
type: "submenu",
|
|
6977
6977
|
label: u,
|
|
6978
|
-
icon:
|
|
6978
|
+
icon: Si,
|
|
6979
6979
|
selectedLabel: E,
|
|
6980
6980
|
children: w
|
|
6981
6981
|
}), x.push({ type: "separator" }), x.push({
|
|
6982
6982
|
label: i,
|
|
6983
|
-
icon:
|
|
6983
|
+
icon: gi,
|
|
6984
6984
|
onClick: y
|
|
6985
6985
|
}), n && x.push({
|
|
6986
6986
|
label: a,
|
|
6987
|
-
icon:
|
|
6987
|
+
icon: la,
|
|
6988
6988
|
onClick: b,
|
|
6989
6989
|
critical: !0
|
|
6990
6990
|
}), x;
|
|
@@ -7005,12 +7005,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7005
7005
|
return {
|
|
7006
7006
|
id: i,
|
|
7007
7007
|
label: t.title || n,
|
|
7008
|
-
icon:
|
|
7008
|
+
icon: Yr,
|
|
7009
7009
|
onClick: y,
|
|
7010
7010
|
...!h && !g && !t.locked && { otherActions: [
|
|
7011
7011
|
{
|
|
7012
7012
|
label: o,
|
|
7013
|
-
icon:
|
|
7013
|
+
icon: gi,
|
|
7014
7014
|
onClick: () => m?.({
|
|
7015
7015
|
elementId: t.id,
|
|
7016
7016
|
type: "section"
|
|
@@ -7019,7 +7019,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7019
7019
|
{ type: "separator" },
|
|
7020
7020
|
{
|
|
7021
7021
|
label: s,
|
|
7022
|
-
icon:
|
|
7022
|
+
icon: la,
|
|
7023
7023
|
onClick: () => p(t.id),
|
|
7024
7024
|
critical: !0
|
|
7025
7025
|
}
|
|
@@ -7086,7 +7086,7 @@ function Zf(e, t) {
|
|
|
7086
7086
|
return i;
|
|
7087
7087
|
}
|
|
7088
7088
|
var Qf = ({ elements: e, onChange: t, answering: n }) => {
|
|
7089
|
-
let { t: r } = R(), { disabled: i, labels: a } = nf(), { portalContainer: o } = Sc(
|
|
7089
|
+
let { t: r } = R(), { disabled: i, labels: a } = nf(), { portalContainer: o } = Sc(Lo), s = Jf(e, {
|
|
7090
7090
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
7091
7091
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
7092
7092
|
duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -7534,7 +7534,7 @@ function _p({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7534
7534
|
s || a === "multi-select" && e.target.closest("input") || p(t.value);
|
|
7535
7535
|
},
|
|
7536
7536
|
children: [
|
|
7537
|
-
a === "multi-select" ? /* @__PURE__ */ X(
|
|
7537
|
+
a === "multi-select" ? /* @__PURE__ */ X(gs, {
|
|
7538
7538
|
title: t.label,
|
|
7539
7539
|
checked: !!n,
|
|
7540
7540
|
onCheckedChange: () => f(t.value),
|
|
@@ -7547,7 +7547,7 @@ function _p({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7547
7547
|
u ? /* @__PURE__ */ X("div", {
|
|
7548
7548
|
className: "min-h-8 p-1",
|
|
7549
7549
|
children: /* @__PURE__ */ X(H, {
|
|
7550
|
-
icon: t.correct ?
|
|
7550
|
+
icon: t.correct ? Ma : Aa,
|
|
7551
7551
|
color: t.correct ? "positive" : "critical",
|
|
7552
7552
|
"aria-hidden": !0
|
|
7553
7553
|
})
|
|
@@ -7569,7 +7569,7 @@ var vp = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, yp = () => ({
|
|
|
7569
7569
|
status: "idle"
|
|
7570
7570
|
});
|
|
7571
7571
|
function bp(e, t) {
|
|
7572
|
-
return
|
|
7572
|
+
return ea().optional().superRefine((n, r) => {
|
|
7573
7573
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7574
7574
|
code: "custom",
|
|
7575
7575
|
message: t("forms.validation.required")
|
|
@@ -7577,7 +7577,7 @@ function bp(e, t) {
|
|
|
7577
7577
|
});
|
|
7578
7578
|
}
|
|
7579
7579
|
function xp(e, t) {
|
|
7580
|
-
return
|
|
7580
|
+
return ea().optional().superRefine((n, r) => {
|
|
7581
7581
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7582
7582
|
code: "custom",
|
|
7583
7583
|
message: t("forms.validation.required")
|
|
@@ -7588,7 +7588,7 @@ function xp(e, t) {
|
|
|
7588
7588
|
});
|
|
7589
7589
|
}
|
|
7590
7590
|
function Sp(e, t) {
|
|
7591
|
-
return
|
|
7591
|
+
return ma().optional().superRefine((n, r) => {
|
|
7592
7592
|
e && n == null && r.addIssue({
|
|
7593
7593
|
code: "custom",
|
|
7594
7594
|
message: t("forms.validation.required")
|
|
@@ -7596,7 +7596,7 @@ function Sp(e, t) {
|
|
|
7596
7596
|
});
|
|
7597
7597
|
}
|
|
7598
7598
|
function Cp(e, t) {
|
|
7599
|
-
return
|
|
7599
|
+
return Zi(ea()).optional().superRefine((n, r) => {
|
|
7600
7600
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7601
7601
|
code: "custom",
|
|
7602
7602
|
message: t("forms.validation.required")
|
|
@@ -7604,7 +7604,7 @@ function Cp(e, t) {
|
|
|
7604
7604
|
});
|
|
7605
7605
|
}
|
|
7606
7606
|
function wp(e, t) {
|
|
7607
|
-
return
|
|
7607
|
+
return Sa().optional().superRefine((n, r) => {
|
|
7608
7608
|
e && !n && r.addIssue({
|
|
7609
7609
|
code: "custom",
|
|
7610
7610
|
message: t("forms.validation.required")
|
|
@@ -7613,7 +7613,7 @@ function wp(e, t) {
|
|
|
7613
7613
|
}
|
|
7614
7614
|
var Tp = Cp;
|
|
7615
7615
|
function Ep(e, t) {
|
|
7616
|
-
return
|
|
7616
|
+
return Qi().optional().superRefine((n, r) => {
|
|
7617
7617
|
e && !n && r.addIssue({
|
|
7618
7618
|
code: "custom",
|
|
7619
7619
|
message: t("forms.validation.required")
|
|
@@ -7666,7 +7666,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7666
7666
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7667
7667
|
disabled: i
|
|
7668
7668
|
};
|
|
7669
|
-
return
|
|
7669
|
+
return Li(bp(!!e.required, t), {
|
|
7670
7670
|
...l,
|
|
7671
7671
|
fieldType: "custom",
|
|
7672
7672
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7694,7 +7694,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7694
7694
|
rows: 4,
|
|
7695
7695
|
disabled: i
|
|
7696
7696
|
};
|
|
7697
|
-
return
|
|
7697
|
+
return Li(bp(!!e.required, t), {
|
|
7698
7698
|
...l,
|
|
7699
7699
|
fieldType: "custom",
|
|
7700
7700
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7721,7 +7721,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7721
7721
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7722
7722
|
disabled: i
|
|
7723
7723
|
};
|
|
7724
|
-
return
|
|
7724
|
+
return Li(Sp(!!e.required, t), {
|
|
7725
7725
|
...l,
|
|
7726
7726
|
fieldType: "custom",
|
|
7727
7727
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7749,7 +7749,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7749
7749
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7750
7750
|
disabled: i
|
|
7751
7751
|
};
|
|
7752
|
-
return
|
|
7752
|
+
return Li(xp(!!e.required, t), {
|
|
7753
7753
|
...l,
|
|
7754
7754
|
fieldType: "custom",
|
|
7755
7755
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7776,7 +7776,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7776
7776
|
clearable: !e.required,
|
|
7777
7777
|
disabled: i
|
|
7778
7778
|
};
|
|
7779
|
-
return
|
|
7779
|
+
return Li(wp(!!e.required, t), {
|
|
7780
7780
|
...l,
|
|
7781
7781
|
fieldType: "custom",
|
|
7782
7782
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7812,7 +7812,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7812
7812
|
showSearchBox: r,
|
|
7813
7813
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7814
7814
|
};
|
|
7815
|
-
return
|
|
7815
|
+
return Li(bp(!!e.required, t), {
|
|
7816
7816
|
...l,
|
|
7817
7817
|
fieldType: "custom",
|
|
7818
7818
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7861,7 +7861,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7861
7861
|
showSearchBox: r,
|
|
7862
7862
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7863
7863
|
};
|
|
7864
|
-
return
|
|
7864
|
+
return Li(Cp(!!e.required, t), {
|
|
7865
7865
|
...l,
|
|
7866
7866
|
fieldType: "custom",
|
|
7867
7867
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7888,7 +7888,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7888
7888
|
disabled: i,
|
|
7889
7889
|
showAnswerValidation: r
|
|
7890
7890
|
};
|
|
7891
|
-
return
|
|
7891
|
+
return Li(bp(!!e.required, t), {
|
|
7892
7892
|
...l,
|
|
7893
7893
|
fieldType: "custom",
|
|
7894
7894
|
fieldConfig: n,
|
|
@@ -7911,7 +7911,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7911
7911
|
disabled: i,
|
|
7912
7912
|
showAnswerValidation: r
|
|
7913
7913
|
};
|
|
7914
|
-
return
|
|
7914
|
+
return Li(Cp(!!e.required, t), {
|
|
7915
7915
|
...l,
|
|
7916
7916
|
fieldType: "custom",
|
|
7917
7917
|
fieldConfig: n,
|
|
@@ -7933,7 +7933,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7933
7933
|
maxLabel: n.maxLabel,
|
|
7934
7934
|
disabled: i
|
|
7935
7935
|
};
|
|
7936
|
-
return
|
|
7936
|
+
return Li(Sp(!!e.required, t), {
|
|
7937
7937
|
...l,
|
|
7938
7938
|
fieldType: "custom",
|
|
7939
7939
|
fieldConfig: r,
|
|
@@ -7959,7 +7959,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7959
7959
|
useUpload: r ?? yp,
|
|
7960
7960
|
disabled: i || !r
|
|
7961
7961
|
};
|
|
7962
|
-
return
|
|
7962
|
+
return Li(Tp(!!e.required, t), {
|
|
7963
7963
|
...l,
|
|
7964
7964
|
fieldType: "custom",
|
|
7965
7965
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7985,7 +7985,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7985
7985
|
label: n.label || c,
|
|
7986
7986
|
disabled: i
|
|
7987
7987
|
};
|
|
7988
|
-
return
|
|
7988
|
+
return Li(Ep(!!e.required, t), {
|
|
7989
7989
|
...l,
|
|
7990
7990
|
fieldType: "custom",
|
|
7991
7991
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -8004,7 +8004,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8004
8004
|
})
|
|
8005
8005
|
});
|
|
8006
8006
|
}
|
|
8007
|
-
default: return
|
|
8007
|
+
default: return Li(Ri(), {
|
|
8008
8008
|
...l,
|
|
8009
8009
|
fieldType: "custom",
|
|
8010
8010
|
render: () => null
|
|
@@ -8045,7 +8045,7 @@ function Mp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8045
8045
|
}), f[e.id] = a?.[e.id] ?? Dp(e, r);
|
|
8046
8046
|
}
|
|
8047
8047
|
return {
|
|
8048
|
-
schema:
|
|
8048
|
+
schema: ra(d),
|
|
8049
8049
|
defaultValues: f,
|
|
8050
8050
|
flatQuestions: m,
|
|
8051
8051
|
sections: p
|
|
@@ -8150,12 +8150,12 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8150
8150
|
]);
|
|
8151
8151
|
let ve = u && !h ? [{
|
|
8152
8152
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8153
|
-
icon: C ?
|
|
8153
|
+
icon: C ? Ki : ni,
|
|
8154
8154
|
onClick: () => w((e) => !e)
|
|
8155
8155
|
}] : void 0, ye = M ? h || F ? void 0 : ee ? P && !j.isLastStep ? {
|
|
8156
8156
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8157
8157
|
onClick: j.goToNext,
|
|
8158
|
-
icon:
|
|
8158
|
+
icon: Wr
|
|
8159
8159
|
} : {
|
|
8160
8160
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8161
8161
|
onClick: Np,
|
|
@@ -8163,7 +8163,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8163
8163
|
} : P && !j.isLastStep ? {
|
|
8164
8164
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8165
8165
|
onClick: me,
|
|
8166
|
-
icon:
|
|
8166
|
+
icon: Wr
|
|
8167
8167
|
} : {
|
|
8168
8168
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8169
8169
|
onClick: me,
|
|
@@ -8172,9 +8172,9 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8172
8172
|
} : void 0, be = M ? h || F ? void 0 : P && !j.isFirstStep ? {
|
|
8173
8173
|
label: b("surveyAnsweringForm.actions.previous"),
|
|
8174
8174
|
onClick: he,
|
|
8175
|
-
icon:
|
|
8175
|
+
icon: Ao
|
|
8176
8176
|
} : void 0 : void 0, xe = n === "all-questions" && M && !h, Se = P && M && !h, Ce = P && !!j.currentQuestion?.sectionTitle && !h, we = ce === "center" || ce === "fullscreen";
|
|
8177
|
-
return /* @__PURE__ */ X(
|
|
8177
|
+
return /* @__PURE__ */ X(ca, {
|
|
8178
8178
|
isOpen: o,
|
|
8179
8179
|
onClose: s,
|
|
8180
8180
|
title: r,
|
|
@@ -8200,7 +8200,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8200
8200
|
}) : null,
|
|
8201
8201
|
Se ? /* @__PURE__ */ X("div", {
|
|
8202
8202
|
className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
|
|
8203
|
-
children: /* @__PURE__ */ X(
|
|
8203
|
+
children: /* @__PURE__ */ X(rs, {
|
|
8204
8204
|
label: "Value",
|
|
8205
8205
|
value: j.progress,
|
|
8206
8206
|
hideLabel: !0
|
|
@@ -8428,7 +8428,7 @@ var Hp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
8428
8428
|
children: [s ? /* @__PURE__ */ X(Eo, {
|
|
8429
8429
|
icon: s.icon,
|
|
8430
8430
|
text: s.label
|
|
8431
|
-
}) : null, c ? /* @__PURE__ */ X(
|
|
8431
|
+
}) : null, c ? /* @__PURE__ */ X(Ko, {
|
|
8432
8432
|
variant: c.variant || "positive",
|
|
8433
8433
|
text: c.label
|
|
8434
8434
|
}) : null]
|
|
@@ -8453,18 +8453,18 @@ function Kp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8453
8453
|
let [o, s] = J(e);
|
|
8454
8454
|
return G(() => {
|
|
8455
8455
|
s(e);
|
|
8456
|
-
}, [e]), /* @__PURE__ */ X(
|
|
8456
|
+
}, [e]), /* @__PURE__ */ X(_a, {
|
|
8457
8457
|
open: o,
|
|
8458
8458
|
onOpenChange: (e) => {
|
|
8459
8459
|
s(e), e || t();
|
|
8460
8460
|
},
|
|
8461
8461
|
modal: !0,
|
|
8462
|
-
children: /* @__PURE__ */ Z(
|
|
8462
|
+
children: /* @__PURE__ */ Z(ia, {
|
|
8463
8463
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8464
8464
|
container: a,
|
|
8465
8465
|
children: [/* @__PURE__ */ Z("div", {
|
|
8466
8466
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8467
|
-
children: [/* @__PURE__ */ Z(
|
|
8467
|
+
children: [/* @__PURE__ */ Z(Ca, {
|
|
8468
8468
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8469
8469
|
children: [i ? /* @__PURE__ */ X(ho, {
|
|
8470
8470
|
module: i,
|
|
@@ -8472,7 +8472,7 @@ function Kp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8472
8472
|
}) : null, n]
|
|
8473
8473
|
}), /* @__PURE__ */ X(Zn, {
|
|
8474
8474
|
variant: "outline",
|
|
8475
|
-
icon:
|
|
8475
|
+
icon: Aa,
|
|
8476
8476
|
onClick: t,
|
|
8477
8477
|
label: "Close modal",
|
|
8478
8478
|
hideLabel: !0
|
|
@@ -8562,14 +8562,14 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8562
8562
|
o && o(!l);
|
|
8563
8563
|
}, [o, l]);
|
|
8564
8564
|
let f = e?.includes(".mp4");
|
|
8565
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
8565
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Xi, {
|
|
8566
8566
|
style: { width: a },
|
|
8567
8567
|
className: "relative bg-f1-background p-1",
|
|
8568
|
-
children: [/* @__PURE__ */ Z(
|
|
8568
|
+
children: [/* @__PURE__ */ Z(xa, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8569
8569
|
className: "absolute right-2 top-2 z-10",
|
|
8570
8570
|
children: /* @__PURE__ */ X(V, {
|
|
8571
8571
|
variant: "ghost",
|
|
8572
|
-
icon:
|
|
8572
|
+
icon: Aa,
|
|
8573
8573
|
size: "sm",
|
|
8574
8574
|
hideLabel: !0,
|
|
8575
8575
|
onClick: d,
|
|
@@ -8595,7 +8595,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8595
8595
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8596
8596
|
children: n
|
|
8597
8597
|
})]
|
|
8598
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8598
|
+
})] })] }), s ? /* @__PURE__ */ X(pa, {
|
|
8599
8599
|
className: "p-3",
|
|
8600
8600
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(S, {
|
|
8601
8601
|
label: e.label,
|
|
@@ -8618,7 +8618,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8618
8618
|
var Xp = L(Yp), Zp = ({ onDismiss: e }) => {
|
|
8619
8619
|
let { actions: t } = R();
|
|
8620
8620
|
return /* @__PURE__ */ X(V, {
|
|
8621
|
-
icon:
|
|
8621
|
+
icon: Aa,
|
|
8622
8622
|
label: t.close,
|
|
8623
8623
|
hideLabel: !0,
|
|
8624
8624
|
variant: "outline",
|
|
@@ -8709,7 +8709,7 @@ em.displayName = "UpsellingBanner";
|
|
|
8709
8709
|
var tm = L(em);
|
|
8710
8710
|
//#endregion
|
|
8711
8711
|
//#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 =
|
|
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 = sa, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
8713
8713
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8714
8714
|
t(e), h && h();
|
|
8715
8715
|
}, w = async (e) => {
|
|
@@ -8769,9 +8769,9 @@ function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8769
8769
|
}
|
|
8770
8770
|
var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
8771
8771
|
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
|
-
return /* @__PURE__ */ Z(
|
|
8772
|
+
return /* @__PURE__ */ Z(Xi, {
|
|
8773
8773
|
className: "flex flex-col overflow-hidden",
|
|
8774
|
-
children: [/* @__PURE__ */ Z(
|
|
8774
|
+
children: [/* @__PURE__ */ Z(xa, {
|
|
8775
8775
|
className: "flex flex-col gap-4 p-0",
|
|
8776
8776
|
children: [/* @__PURE__ */ X("div", {
|
|
8777
8777
|
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 +8786,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8786
8786
|
children: n
|
|
8787
8787
|
})]
|
|
8788
8788
|
})]
|
|
8789
|
-
}), /* @__PURE__ */ X(
|
|
8789
|
+
}), /* @__PURE__ */ X(pa, {
|
|
8790
8790
|
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
8791
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8792
8792
|
variant: "default",
|
|
@@ -8817,7 +8817,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8817
8817
|
}), /* @__PURE__ */ X("span", {
|
|
8818
8818
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
8819
8819
|
children: /* @__PURE__ */ X(H, {
|
|
8820
|
-
icon: t ? io :
|
|
8820
|
+
icon: t ? io : Wo,
|
|
8821
8821
|
size: "sm",
|
|
8822
8822
|
className: B("transition-transform duration-200", t && "text-f1-foreground")
|
|
8823
8823
|
})
|
|
@@ -8833,7 +8833,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8833
8833
|
})
|
|
8834
8834
|
})]
|
|
8835
8835
|
}), 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 ??
|
|
8836
|
+
let o = R()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? bi, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8837
8837
|
u,
|
|
8838
8838
|
r,
|
|
8839
8839
|
c
|
|
@@ -8848,9 +8848,9 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8848
8848
|
i,
|
|
8849
8849
|
a
|
|
8850
8850
|
]);
|
|
8851
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
8851
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Xi, {
|
|
8852
8852
|
className: "flex flex-col overflow-hidden",
|
|
8853
|
-
children: [/* @__PURE__ */ Z(
|
|
8853
|
+
children: [/* @__PURE__ */ Z(na, {
|
|
8854
8854
|
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
8855
|
children: [/* @__PURE__ */ X("div", {
|
|
8856
8856
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8863,7 +8863,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8863
8863
|
className: "text-base font-semibold text-f1-foreground",
|
|
8864
8864
|
children: o
|
|
8865
8865
|
})]
|
|
8866
|
-
}), /* @__PURE__ */ X(
|
|
8866
|
+
}), /* @__PURE__ */ X(xa, {
|
|
8867
8867
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8868
8868
|
children: t.map((e) => /* @__PURE__ */ X(am, {
|
|
8869
8869
|
item: e,
|
|
@@ -8874,9 +8874,9 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8874
8874
|
});
|
|
8875
8875
|
}, sm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
8876
8876
|
let a = R()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8877
|
-
return /* @__PURE__ */ Z(
|
|
8877
|
+
return /* @__PURE__ */ Z(Xi, {
|
|
8878
8878
|
className: "flex flex-col overflow-hidden",
|
|
8879
|
-
children: [/* @__PURE__ */ X(
|
|
8879
|
+
children: [/* @__PURE__ */ X(xa, {
|
|
8880
8880
|
className: "flex flex-col gap-3 p-0",
|
|
8881
8881
|
children: /* @__PURE__ */ Z("div", {
|
|
8882
8882
|
className: "flex items-start gap-3",
|
|
@@ -8898,7 +8898,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8898
8898
|
})]
|
|
8899
8899
|
})]
|
|
8900
8900
|
})
|
|
8901
|
-
}), /* @__PURE__ */ X(
|
|
8901
|
+
}), /* @__PURE__ */ X(pa, {
|
|
8902
8902
|
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
8903
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8904
8904
|
variant: "outline",
|
|
@@ -8916,12 +8916,12 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8916
8916
|
});
|
|
8917
8917
|
}, cm = ({ onAction: e, actionHref: t }) => {
|
|
8918
8918
|
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
|
-
return /* @__PURE__ */ Z(
|
|
8919
|
+
return /* @__PURE__ */ Z(Xi, {
|
|
8920
8920
|
className: "flex flex-col overflow-hidden",
|
|
8921
|
-
children: [/* @__PURE__ */ Z(
|
|
8921
|
+
children: [/* @__PURE__ */ Z(xa, {
|
|
8922
8922
|
className: "flex flex-col gap-3 p-0",
|
|
8923
8923
|
children: [/* @__PURE__ */ X(H, {
|
|
8924
|
-
icon:
|
|
8924
|
+
icon: Ei,
|
|
8925
8925
|
size: "lg"
|
|
8926
8926
|
}), /* @__PURE__ */ Z("div", {
|
|
8927
8927
|
className: "flex flex-col gap-0.5",
|
|
@@ -8933,7 +8933,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8933
8933
|
children: i
|
|
8934
8934
|
})]
|
|
8935
8935
|
})]
|
|
8936
|
-
}), /* @__PURE__ */ X(
|
|
8936
|
+
}), /* @__PURE__ */ X(pa, {
|
|
8937
8937
|
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
8938
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8939
8939
|
variant: "default",
|
|
@@ -8979,9 +8979,9 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8979
8979
|
e,
|
|
8980
8980
|
t
|
|
8981
8981
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
8982
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
8982
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Xi, {
|
|
8983
8983
|
className: "flex flex-col overflow-hidden",
|
|
8984
|
-
children: [/* @__PURE__ */ Z(
|
|
8984
|
+
children: [/* @__PURE__ */ Z(xa, {
|
|
8985
8985
|
className: "flex flex-col gap-4",
|
|
8986
8986
|
children: [/* @__PURE__ */ X("h3", {
|
|
8987
8987
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -8990,7 +8990,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8990
8990
|
className: "flex flex-col gap-3",
|
|
8991
8991
|
children: d.options.map((e) => /* @__PURE__ */ X("div", {
|
|
8992
8992
|
className: "flex items-center gap-2.5",
|
|
8993
|
-
children: /* @__PURE__ */ X(
|
|
8993
|
+
children: /* @__PURE__ */ X(gs, {
|
|
8994
8994
|
id: e.id,
|
|
8995
8995
|
title: e.label,
|
|
8996
8996
|
checked: f.includes(e.id),
|
|
@@ -8998,7 +8998,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8998
8998
|
})
|
|
8999
8999
|
}, e.id))
|
|
9000
9000
|
})]
|
|
9001
|
-
}), /* @__PURE__ */ Z(
|
|
9001
|
+
}), /* @__PURE__ */ Z(pa, {
|
|
9002
9002
|
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
9003
|
children: [/* @__PURE__ */ X("div", {
|
|
9004
9004
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9010,7 +9010,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9010
9010
|
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded text-f1-foreground-secondary transition-colors hover:bg-f1-background-tertiary hover:text-f1-foreground disabled:pointer-events-none disabled:opacity-50",
|
|
9011
9011
|
"aria-label": "Previous",
|
|
9012
9012
|
children: /* @__PURE__ */ X(H, {
|
|
9013
|
-
icon:
|
|
9013
|
+
icon: To,
|
|
9014
9014
|
size: "sm"
|
|
9015
9015
|
})
|
|
9016
9016
|
}),
|
|
@@ -9029,7 +9029,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9029
9029
|
className: "flex h-8 w-8 shrink-0 items-center justify-center rounded text-f1-foreground-secondary transition-colors hover:bg-f1-background-tertiary hover:text-f1-foreground disabled:pointer-events-none disabled:opacity-50",
|
|
9030
9030
|
"aria-label": "Next",
|
|
9031
9031
|
children: /* @__PURE__ */ X(H, {
|
|
9032
|
-
icon:
|
|
9032
|
+
icon: Wo,
|
|
9033
9033
|
size: "sm"
|
|
9034
9034
|
})
|
|
9035
9035
|
})
|
|
@@ -9462,7 +9462,7 @@ function Wm(e, t) {
|
|
|
9462
9462
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9463
9463
|
}
|
|
9464
9464
|
async function Gm(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9465
|
-
Wm(await
|
|
9465
|
+
Wm(await mi([{
|
|
9466
9466
|
name: "Data",
|
|
9467
9467
|
rows: Hm({
|
|
9468
9468
|
columns: e,
|
|
@@ -9484,7 +9484,7 @@ function qm(e, t, n) {
|
|
|
9484
9484
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9485
9485
|
}
|
|
9486
9486
|
async function Jm(e, t) {
|
|
9487
|
-
Wm(await
|
|
9487
|
+
Wm(await mi(e.map((e) => ({
|
|
9488
9488
|
name: e.name,
|
|
9489
9489
|
rows: Hm(e)
|
|
9490
9490
|
}))), `${t}.xlsx`);
|
|
@@ -9545,23 +9545,23 @@ function Zm({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9545
9545
|
return K(() => n ? [
|
|
9546
9546
|
{
|
|
9547
9547
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9548
|
-
icon:
|
|
9548
|
+
icon: pi,
|
|
9549
9549
|
onClick: () => a("png")
|
|
9550
9550
|
},
|
|
9551
9551
|
{
|
|
9552
9552
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9553
|
-
icon:
|
|
9553
|
+
icon: pi,
|
|
9554
9554
|
onClick: () => a("jpg")
|
|
9555
9555
|
},
|
|
9556
9556
|
{ type: "separator" },
|
|
9557
9557
|
{
|
|
9558
9558
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9559
|
-
icon:
|
|
9559
|
+
icon: qa,
|
|
9560
9560
|
onClick: s
|
|
9561
9561
|
},
|
|
9562
9562
|
{
|
|
9563
9563
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9564
|
-
icon:
|
|
9564
|
+
icon: qa,
|
|
9565
9565
|
onClick: c
|
|
9566
9566
|
}
|
|
9567
9567
|
] : [], [
|
|
@@ -9619,7 +9619,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9619
9619
|
}, [h, d]), G(() => {
|
|
9620
9620
|
l || m(t);
|
|
9621
9621
|
}, [l, t]);
|
|
9622
|
-
let v = Sc(
|
|
9622
|
+
let v = Sc(Lo), y = v.portalContainer && (v.position === "center" || v.position === "fullscreen") ? v.portalContainer : void 0, b = K(() => hs(e, t, i), [
|
|
9623
9623
|
e,
|
|
9624
9624
|
t,
|
|
9625
9625
|
i
|
|
@@ -9659,7 +9659,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9659
9659
|
asChild: !0,
|
|
9660
9660
|
children: /* @__PURE__ */ X(Zn, {
|
|
9661
9661
|
label: i.filters.label,
|
|
9662
|
-
icon:
|
|
9662
|
+
icon: Cs,
|
|
9663
9663
|
variant: "ghost",
|
|
9664
9664
|
size: "md",
|
|
9665
9665
|
hideLabel: !0,
|
|
@@ -9696,7 +9696,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9696
9696
|
className: "flex shrink-0 items-center gap-2 py-1.5 pl-1.5 pr-3",
|
|
9697
9697
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(V, {
|
|
9698
9698
|
label: i.filters.availableFilters,
|
|
9699
|
-
icon:
|
|
9699
|
+
icon: Ao,
|
|
9700
9700
|
hideLabel: !0,
|
|
9701
9701
|
variant: "ghost",
|
|
9702
9702
|
size: "sm",
|
|
@@ -9712,7 +9712,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9712
9712
|
className: "flex min-h-0 flex-1 flex-col",
|
|
9713
9713
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
9714
9714
|
className: "min-h-0 flex-1 overflow-y-auto border-0 border-t border-solid border-f1-border-secondary",
|
|
9715
|
-
children: /* @__PURE__ */ X(
|
|
9715
|
+
children: /* @__PURE__ */ X(is, {
|
|
9716
9716
|
selectedFilterKey: g,
|
|
9717
9717
|
definition: e,
|
|
9718
9718
|
tempFilters: p,
|
|
@@ -9730,13 +9730,13 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9730
9730
|
onClick: w,
|
|
9731
9731
|
label: i.filters.applySelection
|
|
9732
9732
|
})
|
|
9733
|
-
})] }) : /* @__PURE__ */ X(
|
|
9733
|
+
})] }) : /* @__PURE__ */ X(Ds, {
|
|
9734
9734
|
definition: _,
|
|
9735
9735
|
tempFilters: p,
|
|
9736
9736
|
selectedFilterKey: g,
|
|
9737
9737
|
onFilterSelect: C,
|
|
9738
9738
|
onClickApplyFilters: () => {
|
|
9739
|
-
n(
|
|
9739
|
+
n(ns(e, p, i)), u(!1), r?.(!1), f(null);
|
|
9740
9740
|
},
|
|
9741
9741
|
isCompactMode: !0
|
|
9742
9742
|
})
|
|
@@ -9791,7 +9791,7 @@ function nh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9791
9791
|
//#endregion
|
|
9792
9792
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9793
9793
|
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 } =
|
|
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 } = ka(), ee = (e) => {
|
|
9795
9795
|
T(e), e || A(!1);
|
|
9796
9796
|
}, 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
9797
|
title: e,
|
|
@@ -9819,7 +9819,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9819
9819
|
onClick: he,
|
|
9820
9820
|
children: /* @__PURE__ */ Z("div", {
|
|
9821
9821
|
className: "flex w-full flex-row items-center gap-2",
|
|
9822
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9822
|
+
children: [/* @__PURE__ */ X(H, { icon: Ua }), /* @__PURE__ */ X("span", {
|
|
9823
9823
|
className: "flex-1",
|
|
9824
9824
|
children: j.ai.dashboardItem.askOne
|
|
9825
9825
|
})]
|
|
@@ -9922,7 +9922,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9922
9922
|
}) : null,
|
|
9923
9923
|
ae ? /* @__PURE__ */ X(Zn, {
|
|
9924
9924
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
9925
|
-
icon: y ?
|
|
9925
|
+
icon: y ? Ki : ni,
|
|
9926
9926
|
variant: "ghost",
|
|
9927
9927
|
size: "md",
|
|
9928
9928
|
hideLabel: !0,
|
|
@@ -9950,7 +9950,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9950
9950
|
onCloseAutoFocus: ge,
|
|
9951
9951
|
children: k && ie ? /* @__PURE__ */ X("div", {
|
|
9952
9952
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
9953
|
-
children: /* @__PURE__ */ X(
|
|
9953
|
+
children: /* @__PURE__ */ X(Ja, {
|
|
9954
9954
|
content: v,
|
|
9955
9955
|
format: "markdown"
|
|
9956
9956
|
})
|
|
@@ -9982,7 +9982,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9982
9982
|
},
|
|
9983
9983
|
children: /* @__PURE__ */ Z("div", {
|
|
9984
9984
|
className: "flex w-full flex-row items-center gap-2",
|
|
9985
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9985
|
+
children: [/* @__PURE__ */ X(H, { icon: Ms }), /* @__PURE__ */ X("span", {
|
|
9986
9986
|
className: "flex-1",
|
|
9987
9987
|
children: j.ai.dashboardItem.dataExplanation
|
|
9988
9988
|
})]
|
|
@@ -9993,7 +9993,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9993
9993
|
className: "mx-1 rounded-sm px-2",
|
|
9994
9994
|
children: /* @__PURE__ */ Z("div", {
|
|
9995
9995
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
9996
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9996
|
+
children: [/* @__PURE__ */ X(H, { icon: zi }), /* @__PURE__ */ X("span", {
|
|
9997
9997
|
className: "flex-1 text-base font-medium",
|
|
9998
9998
|
children: j.ai.dataDownload.title
|
|
9999
9999
|
})]
|
|
@@ -10015,7 +10015,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10015
10015
|
className: B("text-f1-foreground-critical"),
|
|
10016
10016
|
children: /* @__PURE__ */ Z("div", {
|
|
10017
10017
|
className: "flex w-full flex-row items-center gap-2",
|
|
10018
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10018
|
+
children: [/* @__PURE__ */ X(H, { icon: la }), /* @__PURE__ */ X("span", {
|
|
10019
10019
|
className: "flex-1",
|
|
10020
10020
|
children: j.actions.delete
|
|
10021
10021
|
})]
|
|
@@ -10106,7 +10106,7 @@ function oh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
10106
10106
|
type: "button",
|
|
10107
10107
|
variant: "ghost",
|
|
10108
10108
|
label: i.ai.dashboardItem.askOne,
|
|
10109
|
-
icon:
|
|
10109
|
+
icon: Ua,
|
|
10110
10110
|
onClick: t
|
|
10111
10111
|
})
|
|
10112
10112
|
}), document.body);
|
|
@@ -10149,39 +10149,39 @@ function hh(e) {
|
|
|
10149
10149
|
{
|
|
10150
10150
|
label: e.dataChart.barChartVertical,
|
|
10151
10151
|
value: "bar-vertical",
|
|
10152
|
-
icon:
|
|
10152
|
+
icon: Ba,
|
|
10153
10153
|
type: "bar",
|
|
10154
10154
|
orientation: "vertical"
|
|
10155
10155
|
},
|
|
10156
10156
|
{
|
|
10157
10157
|
label: e.dataChart.barChartHorizontal,
|
|
10158
10158
|
value: "bar-horizontal",
|
|
10159
|
-
icon:
|
|
10159
|
+
icon: Ci,
|
|
10160
10160
|
type: "bar",
|
|
10161
10161
|
orientation: "horizontal"
|
|
10162
10162
|
},
|
|
10163
10163
|
{
|
|
10164
10164
|
label: e.dataChart.lineChart,
|
|
10165
10165
|
value: "line",
|
|
10166
|
-
icon:
|
|
10166
|
+
icon: La,
|
|
10167
10167
|
type: "line"
|
|
10168
10168
|
},
|
|
10169
10169
|
{
|
|
10170
10170
|
label: e.dataChart.funnel,
|
|
10171
10171
|
value: "funnel",
|
|
10172
|
-
icon:
|
|
10172
|
+
icon: Zr,
|
|
10173
10173
|
type: "funnel"
|
|
10174
10174
|
},
|
|
10175
10175
|
{
|
|
10176
10176
|
label: e.dataChart.pieChart,
|
|
10177
10177
|
value: "pie",
|
|
10178
|
-
icon:
|
|
10178
|
+
icon: Vi,
|
|
10179
10179
|
type: "pie"
|
|
10180
10180
|
},
|
|
10181
10181
|
{
|
|
10182
10182
|
label: e.dataChart.table,
|
|
10183
10183
|
value: "table",
|
|
10184
|
-
icon:
|
|
10184
|
+
icon: qa,
|
|
10185
10185
|
type: "table"
|
|
10186
10186
|
}
|
|
10187
10187
|
];
|
|
@@ -10349,7 +10349,7 @@ function Sh(e) {
|
|
|
10349
10349
|
return _m(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10350
10350
|
}
|
|
10351
10351
|
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 } =
|
|
10352
|
+
let f = R(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = ka(), 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
10353
|
e,
|
|
10354
10354
|
T,
|
|
10355
10355
|
y
|
|
@@ -10574,11 +10574,11 @@ function jh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10574
10574
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10575
10575
|
return K(() => e ? [{
|
|
10576
10576
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10577
|
-
icon:
|
|
10577
|
+
icon: qa,
|
|
10578
10578
|
onClick: l
|
|
10579
10579
|
}, {
|
|
10580
10580
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10581
|
-
icon:
|
|
10581
|
+
icon: qa,
|
|
10582
10582
|
onClick: u
|
|
10583
10583
|
}] : [], [
|
|
10584
10584
|
e,
|
|
@@ -10699,7 +10699,7 @@ function Ih({ value: e, trend: t, comparison: n }) {
|
|
|
10699
10699
|
className: "flex shrink-0 items-center",
|
|
10700
10700
|
children: [
|
|
10701
10701
|
t.direction === "up" ? /* @__PURE__ */ X(H, {
|
|
10702
|
-
icon:
|
|
10702
|
+
icon: qo,
|
|
10703
10703
|
color: "positive",
|
|
10704
10704
|
size: "sm",
|
|
10705
10705
|
"aria-hidden": "true"
|
|
@@ -10906,7 +10906,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10906
10906
|
if (Math.hypot(t.clientX - n, t.clientY - r) < Vh) return;
|
|
10907
10907
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10908
10908
|
let a = k.current.get(e)?.title ?? "";
|
|
10909
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10909
|
+
a && window.dispatchEvent(new CustomEvent(si, { detail: {
|
|
10910
10910
|
id: e,
|
|
10911
10911
|
title: a,
|
|
10912
10912
|
onAskAi: c,
|
|
@@ -10920,7 +10920,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10920
10920
|
}, o = (e) => {
|
|
10921
10921
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
10922
10922
|
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(
|
|
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(ai));
|
|
10924
10924
|
}, s = (e) => {
|
|
10925
10925
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = ee(e.clientX, e.clientY)), o(!0);
|
|
10926
10926
|
}, u = () => o(!1);
|
|
@@ -11098,7 +11098,7 @@ function qh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11098
11098
|
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
11099
|
"aria-label": "Drag to reorder",
|
|
11100
11100
|
children: /* @__PURE__ */ X(H, {
|
|
11101
|
-
icon:
|
|
11101
|
+
icon: Ai,
|
|
11102
11102
|
size: "xs"
|
|
11103
11103
|
})
|
|
11104
11104
|
}) : null, s]
|
|
@@ -11268,10 +11268,10 @@ function sg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11268
11268
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11269
11269
|
function cg({ onExportExcel: e, isExporting: t }) {
|
|
11270
11270
|
let { t: n } = R();
|
|
11271
|
-
return /* @__PURE__ */ X(
|
|
11271
|
+
return /* @__PURE__ */ X(Pi, {
|
|
11272
11272
|
items: [{
|
|
11273
11273
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11274
|
-
icon:
|
|
11274
|
+
icon: zi,
|
|
11275
11275
|
onClick: t ? () => {} : e
|
|
11276
11276
|
}],
|
|
11277
11277
|
icon: Hs
|
|
@@ -11280,9 +11280,9 @@ function cg({ onExportExcel: e, isExporting: t }) {
|
|
|
11280
11280
|
//#endregion
|
|
11281
11281
|
//#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
|
|
11282
11282
|
function lg(e) {
|
|
11283
|
-
return /* @__PURE__ */ X(
|
|
11283
|
+
return /* @__PURE__ */ X(fs.Provider, {
|
|
11284
11284
|
value: "controlled",
|
|
11285
|
-
children: /* @__PURE__ */ X(
|
|
11285
|
+
children: /* @__PURE__ */ X(Ts, { ...e })
|
|
11286
11286
|
});
|
|
11287
11287
|
}
|
|
11288
11288
|
lg.displayName = "ControlledOneFilterPicker";
|
|
@@ -12240,7 +12240,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12240
12240
|
className: "dark flex-shrink-0",
|
|
12241
12241
|
children: /* @__PURE__ */ X(V, {
|
|
12242
12242
|
variant: "outline",
|
|
12243
|
-
icon:
|
|
12243
|
+
icon: Aa,
|
|
12244
12244
|
size: "sm",
|
|
12245
12245
|
hideLabel: !0,
|
|
12246
12246
|
onClick: e,
|
|
@@ -12257,7 +12257,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12257
12257
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12258
12258
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12259
12259
|
onClick: () => n(e),
|
|
12260
|
-
children: /* @__PURE__ */ X(
|
|
12260
|
+
children: /* @__PURE__ */ X(Ii, {
|
|
12261
12261
|
href: e.href,
|
|
12262
12262
|
children: e.label
|
|
12263
12263
|
})
|
|
@@ -12269,7 +12269,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12269
12269
|
onClick: () => n(e)
|
|
12270
12270
|
}, `button-${e.label}`))]
|
|
12271
12271
|
}), o_ = (e, t) => {
|
|
12272
|
-
let n =
|
|
12272
|
+
let n = Ro(e);
|
|
12273
12273
|
return {
|
|
12274
12274
|
buttonActions: n.filter((e) => e.type === "button"),
|
|
12275
12275
|
linkActions: n.filter((e) => e.type === "link"),
|
|
@@ -12318,14 +12318,14 @@ var r_ = ({ onClose: e }) => {
|
|
|
12318
12318
|
_ ? /* @__PURE__ */ X("div", {
|
|
12319
12319
|
className: "flex-shrink-0",
|
|
12320
12320
|
"aria-hidden": "true",
|
|
12321
|
-
children: /* @__PURE__ */ X(
|
|
12321
|
+
children: /* @__PURE__ */ X(jo, {
|
|
12322
12322
|
size: "small",
|
|
12323
12323
|
className: "text-f1-foreground-inverse"
|
|
12324
12324
|
})
|
|
12325
12325
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12326
12326
|
className: "flex-shrink-0",
|
|
12327
12327
|
"aria-hidden": "true",
|
|
12328
|
-
children: /* @__PURE__ */ X(
|
|
12328
|
+
children: /* @__PURE__ */ X(Mi, {
|
|
12329
12329
|
type: g,
|
|
12330
12330
|
size: "sm"
|
|
12331
12331
|
})
|
|
@@ -12643,7 +12643,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12643
12643
|
showExperimentalWarnings: l,
|
|
12644
12644
|
renderDataTestIdAttribute: u,
|
|
12645
12645
|
hourCycle: s,
|
|
12646
|
-
children: /* @__PURE__ */ X(
|
|
12646
|
+
children: /* @__PURE__ */ X(ks, {
|
|
12647
12647
|
...o,
|
|
12648
12648
|
children: /* @__PURE__ */ X(mn, {
|
|
12649
12649
|
...a,
|
|
@@ -12688,7 +12688,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12688
12688
|
renderDataTestIdAttribute: d,
|
|
12689
12689
|
children: /* @__PURE__ */ X(H_, {
|
|
12690
12690
|
...t,
|
|
12691
|
-
children: /* @__PURE__ */ X(
|
|
12691
|
+
children: /* @__PURE__ */ X(ci, {
|
|
12692
12692
|
handler: l,
|
|
12693
12693
|
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(lt, {
|
|
12694
12694
|
...p,
|
|
@@ -12707,4 +12707,4 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12707
12707
|
})
|
|
12708
12708
|
});
|
|
12709
12709
|
//#endregion
|
|
12710
|
-
export { br as AiChatTranslationsProvider, st as AreaChart, zs as Await, rt as BarChart, Tt as BarChartSkeleton, ae as CardSelectableContainer, Pe as CategoryBarChart,
|
|
12710
|
+
export { br as AiChatTranslationsProvider, st as AreaChart, zs as Await, rt as BarChart, Tt as BarChartSkeleton, ae as CardSelectableContainer, Pe as CategoryBarChart, Bi as ChatSpinner, Is 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, Ka as DropOverlay, qn as EmojiImage, lu as F0Accordion, t as F0ActionBar, aa as F0ActionItem, hi as F0AiChat, xr as F0AiChatCreditsButton, kr as F0AiChatHeader, Er as F0AiChatHistory, yi as F0AiChatProvider, cr as F0AiChatTextArea, ur as F0AiChatUsageLimitsButton, _r as F0AiFileAttachments, Ga as F0AiFilePreviewsProvider, Ea as F0AiFormRegistryProvider, Ar as F0AiInsightCard, vr as F0AiMask, Sr as F0AiMessageSources, ar as F0AiMessagesContainer, ui as F0AiPong, Ir as F0AiProcessingOverlay, Cr as F0AiProposalCard, Lr as F0AiTableCard, lc as F0Alert, vg as F0AnalyticsDashboard, Na as F0AudioPlayer, Va as F0AudioPlayerCard, wr as F0AuraVoiceAnimation, uo as F0Avatar, Mi as F0AvatarAlert, no as F0AvatarCompany, Jr as F0AvatarDate, oo as F0AvatarEmoji, lo as F0AvatarFile, fo as F0AvatarIcon, go as F0AvatarList, ho as F0AvatarModule, po as F0AvatarPerson, _o as F0AvatarTeam, $l as F0BigNumber, cm as F0BookAMeetingCard, ao as F0Box, V as F0Button, _i as F0ButtonDropdown, Go as F0ButtonToggle, Or as F0CanvasCard, Da as F0CanvasPanel, Ta as F0Card, qr as F0CardRow, ya as F0ChatComposer, gs as F0Checkbox, pu as F0ChipList, Rr as F0ClarifyingPanel, Ht as F0DataChart, a as F0DatePicker, cn as F0DatePickerInline, im as F0DemoCard, ca as F0Dialog, p as F0DialogAlikeContext, b as F0DialogAlikeProvider, Lo as F0DialogContext, ws as F0DialogProvider, fc as F0DocumentViewer, xu as F0Drawer, mt as F0DurationInput, Fs as F0EventCatcherProvider, om as F0FAQCard, Oa as F0FileItem, wu as F0FilterPickerContent, me as F0Form, Ru as F0FormField, xl as F0GridStack, Tr as F0HILActionConfirmation, Zt as F0Heading, H as F0Icon, Ii as F0Link, sm as F0ModuleCard, rn as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, Ur as F0OneIcon, ga as F0OneSwitch, uc as F0PdfViewer, G_ as F0Provider, lm as F0QuestionCardMultiStep, Ja as F0RichTextDisplay, dt as F0RichTextEditor, _s as F0SearchInput, Os as F0Select, r as F0SelectInline, wd as F0Slider, Rd as F0TableOfContentPopover, ko as F0TagAlert, Bo as F0TagBalance, zo as F0TagCompany, ps as F0TagDot, vs as F0TagList, Co as F0TagPerson, Eo as F0TagRaw, Ko as F0TagStatus, ms as F0TagTeam, cc as F0Text, Qt as F0TextAreaInput, s as F0TextAreaInputInline, Wa as F0TextInput, de as F0TextInputInline, o as F0TimelineRow, mc as F0VideoPlayer, sd as F0WizardForm, us as F1SearchBox, P as FILE_TYPES, va as FileItem, sr as FormCardValueFormatterProvider, Rt as FunnelChartSkeleton, co as GROUP_ID_SYMBOL, bo as GROUP_KEY_SEPARATOR, We as GaugeChartSkeleton, yt as HeatmapChartSkeleton, ql as HomeLayout, Ot as InlineFieldRow, bt as InlineFieldRowList, Gi 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, cs as OneCalendar, es as OneCalendarInternal, $n as OneEllipsis, m as OneEmptyState, Ts as OneFilterPicker, ze as PieChart, qe as PieChartSkeleton, xi 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, Xr 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, Oo as Tag, ds 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, Es as WeekStartDay, Xe as actionBarStatuses, Hr as actionItemStatuses, ba 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, ua as cardImageAspectRatios, ja as cardImageFits, Yi as cardImageSizes, Uo as chartColorTokens, Jo as chipVariants, Ud as computeSectionEndIds, pc as configurePdfWorker, Nr as contentTypes, Wt as createAtlaskitDriver, Yo 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, eo as defaultTranslations, qi as defineAvailableForm, Tu as describeFormSchema, O as dialog, O as dialogs, Mt as drawers, ti as durationInputSizes, vi as durationUnits, Jt as evaluateRenderIf, hn as experimental, wa as f0FileItemSizes, Li as f0FormField, Ia as fieldsToSeconds, zd as flattenElements, ei as formatPlaybackTime, pd as forms, nt as generateAnchorId, Xo as getAnimationVariants, Ni as getDataCollectionStorageKey, Zo as getDataSourcePaginationType, Qn as getEmojiLabel, Pa as getF0Config, Ns as getGranularityDefinition, ss as getGranularityDefinitions, Rs as getGranularitySimpleDefinition, an as getSchemaDefinition, As as granularityDefinitions, Ha as hasF0Config, Ui as inferFieldType, Hd as injectSectionEnds, vo as isInfiniteScrollPagination, yo as isPageBasedPagination, za as isZodType, iu as linkVariants, mr as markdownRenderers, ji as mergeDataCollectionFilters, to as modules, hr as oneIconSizes, sn as parseDataCollectionUrlParams, dc as pdfScales, C as predefinedPresets, os as rangeSeparator, oi as readDataCollectionStorage, Vd as reconstructElements, li as resolveDataCollectionFilters, ys as resolveGranularityDefinition, At as resolveItemNeighbors, h as resolveWindowNeighbors, Oi as secondsToFields, ii 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, $r as unwrapZodSchema, jr as usageLimitsPopoverSides, ka as useAiChat, Br as useAiChatTranslations, ri as useAudioPlayer, Vr as useCanvasEntity, Pr as useChatHistory, mo as useData, No as useDataSource, xe as useDataSourceItemNavigation, Di as useDerivedTranscription, wt as useDndEvents, Lt as useDraggable, Ue as useDroppableList, Xn as useEmojiConfetti, da as useF0AiFormRegistry, Io as useF0Dialog, k as useF0DialogAlikeContext, $e as useF0Form, St as useF0FormDefinition, or as useFormCardValueFormatter, W_ as useFormComponent, Po as useGroups, yg as useIsDesktop, bg as useIsMobile, E as useItemNeighbors, Je as usePrivacyMode, Jn as useReducedMotion, Re as useSchemaDefinition, wo as useSelectable, pr as useSetFormCardValueFormatter, zr as useToolCallId, Ya as useXRay, L as withDataTestId, pe as writeDataCollectionStorage };
|