@factorialco/f0-react 12.13.0 → 12.14.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-BZgITTo2.js → ArchiveThumbnail-CgaNJ6v9.js} +4 -4
- package/dist/{ArchiveViewer-BHu224N3.js → ArchiveViewer-Uohl6wf1.js} +2 -2
- package/dist/{ChatPostComposerDialog-CsxxDqxh.js → ChatPostComposerDialog-Cr6Ci2dz.js} +2 -2
- package/dist/{CoachmarkProvider-9PVhiN-N.js → CoachmarkProvider-Cfb6WvLp.js} +22331 -22330
- package/dist/{CodeThumbnail-ChpXV1S-.js → CodeThumbnail-CFNKh12S.js} +1 -1
- package/dist/{CodeViewer-BKw04W0G.js → CodeViewer-C4XxNdq4.js} +5 -5
- package/dist/{DocumentToolbar-mB3bK8uS.js → DocumentToolbar-CcEggNyX.js} +1 -1
- package/dist/{DocxViewer-Dr8WXU1s.js → DocxViewer-DIiFGMl7.js} +1 -1
- package/dist/Ellipsis-CBouJQYY.js +34 -0
- package/dist/{F0AiProcessingOverlay-BUynKfyI.js → F0AiProcessingOverlay-wFS85Arm.js} +1396 -1342
- package/dist/{F0Alert-ALRcL0Af.js → F0Alert-DRK5Na7T.js} +1 -1
- package/dist/F0AudioPlayer-Ds4txTh4.js +2 -0
- package/dist/{F0CanvasPanel-D1QmpvzX.js → F0CanvasPanel-CbJxX6Qv.js} +8632 -7464
- package/dist/{F0DocumentViewer-CEuF9b_u.js → F0DocumentViewer-B2_6INMo.js} +1 -1
- package/dist/{F0DocumentViewer-ChCqzIK3.js → F0DocumentViewer-B6ccmcTZ.js} +2 -2
- package/dist/{F0Map-CWhV5A03.js → F0Map-BkrkSniz.js} +16 -16
- package/dist/F0Text-CXHuzMbj.js +14 -0
- package/dist/F0VideoPlayer-5bnm6ryg.js +1 -0
- package/dist/{F0VideoPlayer-wTc25_qN.js → F0VideoPlayer-BkRdc58E.js} +303 -303
- package/dist/{HtmlViewer-Uxb8n2vn.js → HtmlViewer-qkAWMkJy.js} +3 -3
- package/dist/{Map-95w5slTZ.js → Map-CZcZoNEa.js} +29 -28
- package/dist/{PdfThumbnail-BYrhsyMw.js → PdfThumbnail-RTw1aKm_.js} +1 -1
- package/dist/{PdfViewer-DUxhQr-O.js → PdfViewer-m56GqoJt.js} +2 -2
- package/dist/{SheetViewer-C9Rbh_xJ.js → SheetViewer-C80n4nta.js} +2 -2
- package/dist/{TextViewer-DP9lYxAB.js → TextViewer-BINEouL8.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +5072 -5152
- package/dist/{exports-cxvNeHfV.d.ts → exports-BGemf1WM.d.ts} +13 -11
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +382 -381
- package/dist/{highlight-Bjt-wXg6.js → highlight-BNASV9vz.js} +6 -6
- package/dist/{index-DF8ubeg6.d.ts → index-BkCnaiJG.d.ts} +326 -10
- package/dist/localized-CnKvEJya.js +73 -0
- package/dist/{maplibre-tJ3UolSF.js → maplibre-DTAAiC-N.js} +1 -1
- package/dist/{pdfWorker-BBnYtb1A.js → pdfWorker-D16_euGm.js} +1 -1
- package/dist/{types-oJKIDe-E.d.ts → types-C2gKTwyT.d.ts} +2 -300
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Cd9nIQX5.js +0 -2
- package/dist/F0AudioPlayer-vRJmmSpp.js +0 -1175
- package/dist/F0VideoPlayer-DUw-DouS.js +0 -1
- package/dist/localized-BrUgGMzm.js +0 -46
package/dist/f0.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
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-Cfb6WvLp.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 { $n as Ur,
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { A as
|
|
12
|
-
import { $ as
|
|
13
|
-
import { t as
|
|
14
|
-
import { a as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
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-wFS85Arm.js";
|
|
8
|
+
import { $n as Ur, Ao as Wr, As as Gr, Bt as Kr, C as qr, D as Jr, Da as Yr, Dc as Xr, Dr as Zr, E as Qr, Eo as $r, Er as ei, Fr as ti, G as ni, Gr as ri, Gt as ii, Ht as ai, Jr as oi, Jt as si, Ks as ci, Kt as li, La as ui, Lr as di, Mr as fi, Nr as pi, O as mi, Qa as hi, Qn as gi, Qr as _i, Ra as vi, S as yi, T as bi, Ts as xi, Ur as Si, Ut as Ci, W as wi, Wr as Ti, Wt as Ei, Xr as Di, Xs as Oi, Xt as ki, Ya as Ai, Yt as ji, Zr as Mi, Zs as Ni, _c as Pi, _o as Fi, _s as Ii, ac as Li, ai as Ri, an as zi, bs as Bi, cc as Vi, ci as Hi, cn as Ui, di as Wi, dr as Gi, eo as Ki, er as qi, fc as Ji, fi as Yi, fr as Xi, go as Zi, gr as Qi, hi as $i, hr as ea, ic as ta, ii as na, in as ra, ir as ia, jr as aa, k as oa, lc as sa, li as ca, ln as la, mi as ua, mr as da, ms as fa, n as pa, ni as ma, no as ha, nr as ga, oc as _a, oi as va, on as ya, oo as ba, or as xa, pi as Sa, pr as Ca, qr as wa, ri as Ta, rr as Ea, sc as Da, si as Oa, sn as ka, so as Aa, sr as ja, ss as Ma, st as Na, t as Pa, ti as Fa, to as Ia, tr as La, ts as Ra, uc as za, ui as Ba, un as Va, vs as Ha, w as Ua, wc as Wa, wo as Ga, ws as Ka, x as qa, zo as Ja } from "./F0CanvasPanel-CbJxX6Qv.js";
|
|
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
|
+
import { t as eo } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
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, Ct as To, En as Eo, Er as Do, Et as Oo, Ft as ko, G as Ao, H as jo, J as Mo, K as No, L as Po, Lt as Fo, Mt as Io, Nn as Lo, Nt as Ro, Ot as zo, Pt as Bo, Sr as Vo, Tn as Ho, Tr as Uo, Tt as Wo, U as Go, V as Ko, W as qo, X as Jo, Z as Yo, _ as Xo, _t as Zo, a as Qo, ar as $o, br as es, c as ts, ct as ns, en as rs, et as is, fr as as, g as os, gt as ss, h as cs, ht as ls, i as us, jt as ds, kt as fs, l as ps, lr as ms, m as hs, mt as gs, nn as _s, nt as vs, o as ys, p as bs, pt as xs, q as Ss, r as Cs, s as ws, sr as Ts, st as Es, t as Ds, tt as Os, u as ks, v as As, w as js, wn as Ms, wr as Ns, wt as Ps, xr as Fs, xt as Is, y as Ls, yt as Rs, z as zs } from "./F0Select-BZ20yXKy.js";
|
|
13
|
+
import { t as Bs } from "./Check-DAp9gCRh.js";
|
|
14
|
+
import { a as Vs } from "./dist-CFY0KELA.js";
|
|
15
|
+
import { t as Hs } from "./Ellipsis-CBouJQYY.js";
|
|
16
|
+
import { t as Us } from "./LockLocked-gdodYvT_.js";
|
|
17
|
+
import { t as Ws } from "./purify.es-ZpfdAuNV.js";
|
|
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
|
+
import { n as oc, r as sc } from "./scrollarea-cxaFAWG5.js";
|
|
20
|
+
import { t as cc } from "./F0Text-CXHuzMbj.js";
|
|
21
|
+
import { t as lc } from "./F0Alert-DRK5Na7T.js";
|
|
22
|
+
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-B6ccmcTZ.js";
|
|
22
23
|
import { t as pc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
23
|
-
import { t as mc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as mc } from "./F0VideoPlayer-BkRdc58E.js";
|
|
24
25
|
import * as U from "react";
|
|
25
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";
|
|
26
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -44,7 +45,7 @@ var Ac = {
|
|
|
44
45
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
45
46
|
children: e
|
|
46
47
|
}, t));
|
|
47
|
-
return /* @__PURE__ */ X(
|
|
48
|
+
return /* @__PURE__ */ X(Aa, {
|
|
48
49
|
layout: "home",
|
|
49
50
|
children: /* @__PURE__ */ Z("div", {
|
|
50
51
|
ref: r,
|
|
@@ -75,10 +76,10 @@ var Ac = {
|
|
|
75
76
|
})]
|
|
76
77
|
})
|
|
77
78
|
});
|
|
78
|
-
}), Mc =
|
|
79
|
+
}), Mc = Qa({
|
|
79
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",
|
|
80
81
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
81
|
-
}), 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(Aa, {
|
|
82
83
|
layout: "standard",
|
|
83
84
|
children: /* @__PURE__ */ X("section", {
|
|
84
85
|
ref: a,
|
|
@@ -91,7 +92,7 @@ var Ac = {
|
|
|
91
92
|
})
|
|
92
93
|
}));
|
|
93
94
|
Nc.displayName = "StandardLayout";
|
|
94
|
-
var Pc = L(
|
|
95
|
+
var Pc = L($a({
|
|
95
96
|
name: "StandardLayout",
|
|
96
97
|
type: "layout"
|
|
97
98
|
}, Nc)), Fc = yc(function({ children: e, sideContent: t, mainColumnPosition: n = "left", sticky: r = !1, responsiveStackOrder: i = "side" }, a) {
|
|
@@ -110,7 +111,7 @@ var Pc = L(Ga({
|
|
|
110
111
|
})]
|
|
111
112
|
})
|
|
112
113
|
});
|
|
113
|
-
}), Ic = L(
|
|
114
|
+
}), Ic = L($a({
|
|
114
115
|
name: "TwoColumnLayout",
|
|
115
116
|
type: "layout"
|
|
116
117
|
}, Fc)), Lc = ({ children: e, className: t }) => /* @__PURE__ */ X("aside", {
|
|
@@ -212,7 +213,7 @@ function Gc({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
212
213
|
n(e);
|
|
213
214
|
}), e;
|
|
214
215
|
});
|
|
215
|
-
|
|
216
|
+
$o(() => {
|
|
216
217
|
if (!s) return;
|
|
217
218
|
let e = s.save();
|
|
218
219
|
if (!Array.isArray(e)) return;
|
|
@@ -263,7 +264,7 @@ function Gc({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
263
264
|
return e.forEach((e) => {
|
|
264
265
|
if (n.get(e)) {
|
|
265
266
|
let t = s.el.querySelector(`[gs-id="${e}"] .grid-stack-item-content`), r = "";
|
|
266
|
-
t && (r =
|
|
267
|
+
t && (r = Ws.sanitize(Wc(t))), n.set(e, /* @__PURE__ */ X(Gn.div, {
|
|
267
268
|
className: "h-full w-full",
|
|
268
269
|
initial: {
|
|
269
270
|
opacity: 1,
|
|
@@ -2623,7 +2624,7 @@ gl.renderCB = (e, t) => {
|
|
|
2623
2624
|
}, gl.resizeToContentParent = ".grid-stack-item-content", gl.Utils = Q, gl.Engine = Xc, gl.GDRev = "12.3.2";
|
|
2624
2625
|
//#endregion
|
|
2625
2626
|
//#region src/blocks/F0GridStack/components/grid-stack-render-provider.tsx
|
|
2626
|
-
var _l = /* @__PURE__ */ e(
|
|
2627
|
+
var _l = /* @__PURE__ */ e(Lo(), 1), vl = /* @__PURE__ */ new WeakMap();
|
|
2627
2628
|
function yl({ children: e }) {
|
|
2628
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) => {
|
|
2629
2630
|
if (t.id && t.grid) {
|
|
@@ -2933,7 +2934,7 @@ var wl = (e, t) => {
|
|
|
2933
2934
|
})
|
|
2934
2935
|
});
|
|
2935
2936
|
kl.displayName = "Dashboard";
|
|
2936
|
-
var Al = Tl("Dashboard", kl), jl = L(hn("Dashboard", Al)), Ml =
|
|
2937
|
+
var Al = Tl("Dashboard", kl), jl = L(hn("Dashboard", Al)), Ml = Qa({
|
|
2937
2938
|
base: "flex w-full flex-col p-4",
|
|
2938
2939
|
variants: { variant: {
|
|
2939
2940
|
default: "",
|
|
@@ -2953,7 +2954,7 @@ var Al = Tl("Dashboard", kl), jl = L(hn("Dashboard", Al)), Ml = Wa({
|
|
|
2953
2954
|
...l,
|
|
2954
2955
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2955
2956
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2956
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2957
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(vi, {
|
|
2957
2958
|
items: Nl(d),
|
|
2958
2959
|
"data-testid": "actions-dropdown"
|
|
2959
2960
|
}) : null]
|
|
@@ -3027,7 +3028,7 @@ var Vl = ({ id: e, children: t }) => {
|
|
|
3027
3028
|
});
|
|
3028
3029
|
}, Hl = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: r = !1 }) => {
|
|
3029
3030
|
let [i, a] = J([]);
|
|
3030
|
-
|
|
3031
|
+
$o(() => {
|
|
3031
3032
|
a(e.map((e, t) => ({
|
|
3032
3033
|
id: e.id ?? t.toString(),
|
|
3033
3034
|
render: e.render
|
|
@@ -3092,7 +3093,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3092
3093
|
Group: L(hn("Group", Bl)),
|
|
3093
3094
|
GroupGrid: L(hn("GroupGrid", Cl)),
|
|
3094
3095
|
GroupMasonry: L(hn("GroupMasonry", Hl))
|
|
3095
|
-
}, Gl = Pc, Kl = Ic, ql = L(
|
|
3096
|
+
}, Gl = Pc, Kl = Ic, ql = L($a({
|
|
3096
3097
|
name: "HomeLayout",
|
|
3097
3098
|
type: "layout"
|
|
3098
3099
|
}, jc)), Jl = [
|
|
@@ -3108,7 +3109,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3108
3109
|
show: e.show ?? !0,
|
|
3109
3110
|
invertStatus: e.invertStatus ?? !1
|
|
3110
3111
|
}, Xl = ({ label: e, ...t }) => {
|
|
3111
|
-
let n =
|
|
3112
|
+
let n = Ro(), r = n(t.value, { formatterOptions: { decimalPlaces: 2 } }), i = Yl(t.trend), a = n(t.comparison), o = Bo(r.numericValue, r.formatterOptions), s = ko(a.numericValue), c = ko(r.numericValue), l = K(() => {
|
|
3112
3113
|
if (s && i.show && s && c) return (c - s) / s * 100;
|
|
3113
3114
|
}, [
|
|
3114
3115
|
c,
|
|
@@ -3122,7 +3123,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3122
3123
|
children: [/* @__PURE__ */ X("span", {
|
|
3123
3124
|
className: "font-bold text-2xl",
|
|
3124
3125
|
children: o
|
|
3125
|
-
}), s === void 0 ? null : /* @__PURE__ */ X(
|
|
3126
|
+
}), s === void 0 ? null : /* @__PURE__ */ X(Io, {
|
|
3126
3127
|
percentage: l,
|
|
3127
3128
|
amount: a,
|
|
3128
3129
|
invertStatus: i.invertStatus,
|
|
@@ -3138,7 +3139,7 @@ var Ul = yc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3138
3139
|
})]
|
|
3139
3140
|
});
|
|
3140
3141
|
Xl.displayName = "F0BigNumber";
|
|
3141
|
-
var Ql =
|
|
3142
|
+
var Ql = Ai(Xl, Zl), $l = L(Ql), eu = [
|
|
3142
3143
|
"default",
|
|
3143
3144
|
"outline",
|
|
3144
3145
|
"neutral"
|
|
@@ -3146,20 +3147,20 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3146
3147
|
className: "flex items-center gap-2",
|
|
3147
3148
|
children: e.map((e, t) => {
|
|
3148
3149
|
switch (e.type) {
|
|
3149
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3150
|
+
case "segmentedControl": return /* @__PURE__ */ X(Oa, {
|
|
3150
3151
|
items: e.items,
|
|
3151
3152
|
value: e.value,
|
|
3152
3153
|
onChange: e.onChange,
|
|
3153
3154
|
disabled: e.disabled,
|
|
3154
3155
|
ariaLabel: e.ariaLabel
|
|
3155
3156
|
}, t);
|
|
3156
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3157
|
+
case "dropdown": return /* @__PURE__ */ X(vi, {
|
|
3157
3158
|
items: e.items,
|
|
3158
3159
|
disabled: e.disabled,
|
|
3159
3160
|
children: /* @__PURE__ */ X(V, {
|
|
3160
3161
|
variant: "outline",
|
|
3161
3162
|
size: "sm",
|
|
3162
|
-
icon:
|
|
3163
|
+
icon: Hs,
|
|
3163
3164
|
label: e.ariaLabel,
|
|
3164
3165
|
hideLabel: !0,
|
|
3165
3166
|
disabled: e.disabled
|
|
@@ -3169,7 +3170,7 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3169
3170
|
})
|
|
3170
3171
|
}), ou = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3171
3172
|
let r = Jn(), i = R().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3172
|
-
return /* @__PURE__ */ X(
|
|
3173
|
+
return /* @__PURE__ */ X(Fa, {
|
|
3173
3174
|
open: t,
|
|
3174
3175
|
onOpenChange: n,
|
|
3175
3176
|
asChild: !0,
|
|
@@ -3177,7 +3178,7 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3177
3178
|
className: "flex flex-col",
|
|
3178
3179
|
children: [/* @__PURE__ */ Z("div", {
|
|
3179
3180
|
className: "flex items-center",
|
|
3180
|
-
children: [/* @__PURE__ */ X(
|
|
3181
|
+
children: [/* @__PURE__ */ X(Ta, {
|
|
3181
3182
|
asChild: !0,
|
|
3182
3183
|
children: /* @__PURE__ */ X("button", {
|
|
3183
3184
|
type: "button",
|
|
@@ -3195,12 +3196,12 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3195
3196
|
children: e.summary
|
|
3196
3197
|
}) : null,
|
|
3197
3198
|
a ? /* @__PURE__ */ X(au, { actions: e.actions }) : null,
|
|
3198
|
-
/* @__PURE__ */ X(
|
|
3199
|
+
/* @__PURE__ */ X(Ta, {
|
|
3199
3200
|
asChild: !0,
|
|
3200
3201
|
children: /* @__PURE__ */ X(V, {
|
|
3201
3202
|
variant: "outline",
|
|
3202
3203
|
size: "sm",
|
|
3203
|
-
icon: t ?
|
|
3204
|
+
icon: t ? es : io,
|
|
3204
3205
|
label: i,
|
|
3205
3206
|
hideLabel: !0
|
|
3206
3207
|
})
|
|
@@ -3224,7 +3225,7 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3224
3225
|
},
|
|
3225
3226
|
transition: { duration: r ? 0 : .2 },
|
|
3226
3227
|
className: "overflow-hidden",
|
|
3227
|
-
children: /* @__PURE__ */ X(
|
|
3228
|
+
children: /* @__PURE__ */ X(ma, {
|
|
3228
3229
|
forceMount: !0,
|
|
3229
3230
|
asChild: !0,
|
|
3230
3231
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3248,7 +3249,7 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3248
3249
|
children: [/* @__PURE__ */ X(z, { className: "h-4 flex-1 max-w-48" }), /* @__PURE__ */ X(z, { className: "ml-auto h-7 w-7 shrink-0 rounded" })]
|
|
3249
3250
|
})] }, t))
|
|
3250
3251
|
}), cu = yc((e, t) => {
|
|
3251
|
-
let { items: n, value: r, defaultValue: i, onValueChange: a, ...o } = e, s = K(() => i === void 0 ? n.filter((e) => e.defaultOpen).map((e) => e.id) : i, [i, n]), [c = [], l] =
|
|
3252
|
+
let { items: n, value: r, defaultValue: i, onValueChange: a, ...o } = e, s = K(() => i === void 0 ? n.filter((e) => e.defaultOpen).map((e) => e.id) : i, [i, n]), [c = [], l] = ec({
|
|
3252
3253
|
prop: r,
|
|
3253
3254
|
defaultProp: s,
|
|
3254
3255
|
onChange: a
|
|
@@ -3268,31 +3269,31 @@ var Ql = mi(Xl, Zl), $l = L(Ql), eu = [
|
|
|
3268
3269
|
});
|
|
3269
3270
|
});
|
|
3270
3271
|
cu.displayName = "F0Accordion";
|
|
3271
|
-
var lu = L(hn("F0Accordion",
|
|
3272
|
+
var lu = L(hn("F0Accordion", Ai(cu, su))), uu = [
|
|
3272
3273
|
"info",
|
|
3273
3274
|
"warning",
|
|
3274
3275
|
"critical",
|
|
3275
3276
|
"positive"
|
|
3276
3277
|
], du = ({ count: e, list: t }) => {
|
|
3277
|
-
let [n, r] = J(!1), i = /* @__PURE__ */ X(
|
|
3278
|
-
return t?.length ? /* @__PURE__ */ Z(
|
|
3278
|
+
let [n, r] = J(!1), i = /* @__PURE__ */ X(To, { label: `+${e}` });
|
|
3279
|
+
return t?.length ? /* @__PURE__ */ Z(ic, {
|
|
3279
3280
|
open: n,
|
|
3280
3281
|
onOpenChange: r,
|
|
3281
|
-
children: [/* @__PURE__ */ X(
|
|
3282
|
+
children: [/* @__PURE__ */ X($s, {
|
|
3282
3283
|
asChild: !0,
|
|
3283
3284
|
children: /* @__PURE__ */ X("button", {
|
|
3284
3285
|
className: Tn("inline-flex flex-shrink-0 items-center"),
|
|
3285
3286
|
children: i
|
|
3286
3287
|
})
|
|
3287
|
-
}), /* @__PURE__ */ X(
|
|
3288
|
+
}), /* @__PURE__ */ X(tc, {
|
|
3288
3289
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
3289
3290
|
align: "end",
|
|
3290
|
-
children: /* @__PURE__ */ Z(
|
|
3291
|
+
children: /* @__PURE__ */ Z(oc, {
|
|
3291
3292
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
3292
3293
|
children: [t.map((e, t) => /* @__PURE__ */ X("div", {
|
|
3293
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",
|
|
3294
|
-
children: /* @__PURE__ */ X(
|
|
3295
|
-
}, t)), /* @__PURE__ */ X(
|
|
3295
|
+
children: /* @__PURE__ */ X(To, { ...e })
|
|
3296
|
+
}, t)), /* @__PURE__ */ X(sc, {
|
|
3296
3297
|
orientation: "vertical",
|
|
3297
3298
|
className: "[&_div]:bg-f1-background"
|
|
3298
3299
|
})]
|
|
@@ -3304,9 +3305,9 @@ du.displayName = "ChipCounter";
|
|
|
3304
3305
|
//#endregion
|
|
3305
3306
|
//#region src/elements/F0ChipList/F0ChipList.tsx
|
|
3306
3307
|
var fu = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) => {
|
|
3307
|
-
if (r === "fill") return /* @__PURE__ */ X(
|
|
3308
|
+
if (r === "fill") return /* @__PURE__ */ X(xo, {
|
|
3308
3309
|
items: e,
|
|
3309
|
-
renderListItem: (e) => /* @__PURE__ */ X(
|
|
3310
|
+
renderListItem: (e) => /* @__PURE__ */ X(To, { ...e }),
|
|
3310
3311
|
renderDropdownItem: () => null,
|
|
3311
3312
|
forceShowingOverflowIndicator: n !== void 0,
|
|
3312
3313
|
renderOverflowIndicator: (t) => /* @__PURE__ */ X(du, {
|
|
@@ -3319,7 +3320,7 @@ var fu = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
|
|
|
3319
3320
|
let i = e.slice(0, t), a = e.slice(t), o = n ?? e.length - t, s = o > 0;
|
|
3320
3321
|
return /* @__PURE__ */ Z("div", {
|
|
3321
3322
|
className: "flex items-center gap-2",
|
|
3322
|
-
children: [i.map((e, t) => /* @__PURE__ */ X(
|
|
3323
|
+
children: [i.map((e, t) => /* @__PURE__ */ X(To, { ...e }, t)), s ? /* @__PURE__ */ X(du, {
|
|
3323
3324
|
count: o,
|
|
3324
3325
|
list: n ? void 0 : a
|
|
3325
3326
|
}) : null]
|
|
@@ -3331,7 +3332,7 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3331
3332
|
"escape",
|
|
3332
3333
|
"commit",
|
|
3333
3334
|
"popupClose"
|
|
3334
|
-
], hu =
|
|
3335
|
+
], hu = So, gu = [
|
|
3335
3336
|
"info",
|
|
3336
3337
|
"warning",
|
|
3337
3338
|
"critical",
|
|
@@ -3339,9 +3340,9 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3339
3340
|
"positive",
|
|
3340
3341
|
"transparent"
|
|
3341
3342
|
], _u = {
|
|
3342
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3343
|
+
get: async (e) => JSON.parse(localStorage.getItem(di(e)) ?? "{}"),
|
|
3343
3344
|
set: async (e, t) => {
|
|
3344
|
-
localStorage.setItem(
|
|
3345
|
+
localStorage.setItem(di(e), JSON.stringify(t));
|
|
3345
3346
|
}
|
|
3346
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 }) => {
|
|
3347
3348
|
let [b, x] = J(n);
|
|
@@ -3413,7 +3414,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3413
3414
|
let t = Object.keys(e);
|
|
3414
3415
|
if (t.length > 0) {
|
|
3415
3416
|
let n = t.find((t) => {
|
|
3416
|
-
let n = p[t], r =
|
|
3417
|
+
let n = p[t], r = ks(e[t].type);
|
|
3417
3418
|
return n !== void 0 && !r.isEmpty(n, {
|
|
3418
3419
|
schema: e[t],
|
|
3419
3420
|
i18n: l
|
|
@@ -3437,7 +3438,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3437
3438
|
}, g = () => {
|
|
3438
3439
|
n(p);
|
|
3439
3440
|
}, _ = K(() => r || Object.entries(e).reduce((e, [t, n]) => {
|
|
3440
|
-
let r =
|
|
3441
|
+
let r = ks(n.type);
|
|
3441
3442
|
return Math.max(e, r?.formHeight || Su);
|
|
3442
3443
|
}, 0), [e, r]);
|
|
3443
3444
|
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(dn, {
|
|
@@ -3445,7 +3446,7 @@ function Cu({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3445
3446
|
children: /* @__PURE__ */ X("div", {
|
|
3446
3447
|
className: B("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
3447
3448
|
style: { maxWidth: i },
|
|
3448
|
-
children: /* @__PURE__ */ X(
|
|
3449
|
+
children: /* @__PURE__ */ X(ys, {
|
|
3449
3450
|
filters: e,
|
|
3450
3451
|
tempFilters: p,
|
|
3451
3452
|
selectedFilterKey: d,
|
|
@@ -3464,11 +3465,11 @@ var wu = Cu;
|
|
|
3464
3465
|
//#endregion
|
|
3465
3466
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3466
3467
|
function Tu(e) {
|
|
3467
|
-
let t =
|
|
3468
|
+
let t = la(e).shape, n = [];
|
|
3468
3469
|
for (let [e, r] of Object.entries(t)) {
|
|
3469
|
-
let t = r, i =
|
|
3470
|
+
let t = r, i = zi(t);
|
|
3470
3471
|
if (!i) continue;
|
|
3471
|
-
let a =
|
|
3472
|
+
let a = ka(t, i), o = en(t, a), s = {
|
|
3472
3473
|
name: e,
|
|
3473
3474
|
type: a,
|
|
3474
3475
|
label: i.label,
|
|
@@ -3540,9 +3541,9 @@ function Du(e) {
|
|
|
3540
3541
|
let r = {
|
|
3541
3542
|
...n,
|
|
3542
3543
|
...e
|
|
3543
|
-
}, i =
|
|
3544
|
+
}, i = la(t), a = [];
|
|
3544
3545
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3545
|
-
let n =
|
|
3546
|
+
let n = zi(t);
|
|
3546
3547
|
n?.renderIf ? Jt(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3547
3548
|
}
|
|
3548
3549
|
return a;
|
|
@@ -3586,12 +3587,12 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3586
3587
|
modal: !0,
|
|
3587
3588
|
children: /* @__PURE__ */ Z("div", {
|
|
3588
3589
|
className: "flex flex-col gap-4 py-2",
|
|
3589
|
-
children: [/* @__PURE__ */ X(
|
|
3590
|
+
children: [/* @__PURE__ */ X(ui, {
|
|
3590
3591
|
type: n,
|
|
3591
3592
|
size: "lg"
|
|
3592
3593
|
}), /* @__PURE__ */ Z("div", {
|
|
3593
3594
|
className: "flex flex-col gap-0.5",
|
|
3594
|
-
children: [/* @__PURE__ */ X(
|
|
3595
|
+
children: [/* @__PURE__ */ X(Ti, {
|
|
3595
3596
|
className: "text-xl sm:text-lg",
|
|
3596
3597
|
children: r
|
|
3597
3598
|
}), /* @__PURE__ */ X(se, {
|
|
@@ -3651,8 +3652,8 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3651
3652
|
return r.map((t) => ({
|
|
3652
3653
|
...t,
|
|
3653
3654
|
actions: {
|
|
3654
|
-
primary:
|
|
3655
|
-
secondary:
|
|
3655
|
+
primary: Po(t.actions.primary).map((n, r) => e(t, n, "primary", r)),
|
|
3656
|
+
secondary: Po(t.actions.secondary).map((n, r) => e(t, n, "secondary", r))
|
|
3656
3657
|
}
|
|
3657
3658
|
}));
|
|
3658
3659
|
}, [r]), d = K(() => {
|
|
@@ -3832,7 +3833,7 @@ function Ru({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
3832
3833
|
className: "text-base text-f1-foreground-secondary",
|
|
3833
3834
|
children: e.helpText
|
|
3834
3835
|
}) : null,
|
|
3835
|
-
/* @__PURE__ */ X(
|
|
3836
|
+
/* @__PURE__ */ X(Yo, { status: v })
|
|
3836
3837
|
]
|
|
3837
3838
|
}) });
|
|
3838
3839
|
}
|
|
@@ -3853,7 +3854,7 @@ function Vu({ children: e, ...t }) {
|
|
|
3853
3854
|
}
|
|
3854
3855
|
//#endregion
|
|
3855
3856
|
//#region src/blocks/F0Wizard/components/WizardSteps.tsx
|
|
3856
|
-
var Hu =
|
|
3857
|
+
var Hu = Qa({
|
|
3857
3858
|
base: "flex-1 text-base font-medium leading-5 tracking-[-0.005em]",
|
|
3858
3859
|
variants: { state: {
|
|
3859
3860
|
active: "text-f1-foreground",
|
|
@@ -3867,7 +3868,7 @@ function Uu(e, t, n) {
|
|
|
3867
3868
|
function Wu({ state: e, index: t }) {
|
|
3868
3869
|
return e === "completed" ? /* @__PURE__ */ X("span", {
|
|
3869
3870
|
className: "flex h-5 w-5 min-w-5 shrink-0 items-center justify-center rounded-xs bg-f1-background-secondary text-f1-foreground-secondary",
|
|
3870
|
-
children: /* @__PURE__ */ X(
|
|
3871
|
+
children: /* @__PURE__ */ X(Bs, { className: "h-3 w-3" })
|
|
3871
3872
|
}) : /* @__PURE__ */ X(er, {
|
|
3872
3873
|
value: t + 1,
|
|
3873
3874
|
type: e === "active" ? "selected" : "default",
|
|
@@ -3978,7 +3979,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3978
3979
|
onClose: r
|
|
3979
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(() => ({
|
|
3980
3981
|
label: x,
|
|
3981
|
-
icon: b ? void 0 :
|
|
3982
|
+
icon: b ? void 0 : Pi,
|
|
3982
3983
|
onClick: () => void h.goNext(),
|
|
3983
3984
|
disabled: v?.isCompleted?.() === !1 || v?.hasErrors?.() === !0,
|
|
3984
3985
|
loading: h.loading
|
|
@@ -3989,7 +3990,7 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3989
3990
|
v
|
|
3990
3991
|
]), w = K(() => y ? void 0 : {
|
|
3991
3992
|
label: S,
|
|
3992
|
-
icon:
|
|
3993
|
+
icon: Uo,
|
|
3993
3994
|
onClick: h.goPrevious,
|
|
3994
3995
|
disabled: h.loading
|
|
3995
3996
|
}, [
|
|
@@ -4035,14 +4036,14 @@ Ju.displayName = "F0Wizard", L(Ju);
|
|
|
4035
4036
|
//#endregion
|
|
4036
4037
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4037
4038
|
function Yu(e) {
|
|
4038
|
-
let t =
|
|
4039
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4039
|
+
let t = la(e).shape, n = Object.entries(t);
|
|
4040
|
+
return n.length !== 0 && n.every(([, e]) => zi(e)?.disabled === !0);
|
|
4040
4041
|
}
|
|
4041
4042
|
function Xu(e, t) {
|
|
4042
4043
|
if (t) return Object.keys(t);
|
|
4043
|
-
let n =
|
|
4044
|
+
let n = la(e).shape, r = /* @__PURE__ */ new Set();
|
|
4044
4045
|
for (let e of Object.values(n)) {
|
|
4045
|
-
let t =
|
|
4046
|
+
let t = zi(e);
|
|
4046
4047
|
t?.section && r.add(t.section);
|
|
4047
4048
|
}
|
|
4048
4049
|
return Array.from(r);
|
|
@@ -4050,15 +4051,15 @@ function Xu(e, t) {
|
|
|
4050
4051
|
function Zu(e, t) {
|
|
4051
4052
|
let n = e.shape, r = {};
|
|
4052
4053
|
for (let [e, i] of Object.entries(n)) {
|
|
4053
|
-
let n =
|
|
4054
|
+
let n = zi(i);
|
|
4054
4055
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4055
4056
|
}
|
|
4056
|
-
return
|
|
4057
|
+
return ga(r);
|
|
4057
4058
|
}
|
|
4058
4059
|
function Qu(e, t, n) {
|
|
4059
4060
|
let r = t ?? {};
|
|
4060
4061
|
if (n) return n({ data: r });
|
|
4061
|
-
let i =
|
|
4062
|
+
let i = la(e).shape;
|
|
4062
4063
|
return Object.entries(i).every(([e, t]) => {
|
|
4063
4064
|
if (t.isOptional()) return !0;
|
|
4064
4065
|
let n = r[e];
|
|
@@ -4284,7 +4285,7 @@ function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4284
4285
|
});
|
|
4285
4286
|
}
|
|
4286
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 }) {
|
|
4287
|
-
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(() => la(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 () => {
|
|
4288
4289
|
await O.submit();
|
|
4289
4290
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
4290
4291
|
title: y?.[e]?.title ?? e,
|
|
@@ -4501,7 +4502,7 @@ var pd = { open: fd }, md = [
|
|
|
4501
4502
|
className: "flex items-center py-2",
|
|
4502
4503
|
children: /* @__PURE__ */ X(z, { className: "h-1.5 w-full rounded-full" })
|
|
4503
4504
|
})]
|
|
4504
|
-
}), yd =
|
|
4505
|
+
}), yd = Qa({
|
|
4505
4506
|
base: "relative h-1.5 grow overflow-hidden rounded-full bg-f1-background-tertiary",
|
|
4506
4507
|
variants: { status: {
|
|
4507
4508
|
default: "",
|
|
@@ -4509,7 +4510,7 @@ var pd = { open: fd }, md = [
|
|
|
4509
4510
|
info: "",
|
|
4510
4511
|
error: ""
|
|
4511
4512
|
} }
|
|
4512
|
-
}), bd =
|
|
4513
|
+
}), bd = Qa({
|
|
4513
4514
|
base: "absolute h-full",
|
|
4514
4515
|
variants: {
|
|
4515
4516
|
status: {
|
|
@@ -4523,7 +4524,7 @@ var pd = { open: fd }, md = [
|
|
|
4523
4524
|
false: ""
|
|
4524
4525
|
}
|
|
4525
4526
|
}
|
|
4526
|
-
}), xd = 20, Sd =
|
|
4527
|
+
}), xd = 20, Sd = Qa({
|
|
4527
4528
|
base: B("relative block rounded-full bg-f1-background border-[2px] border-solid", "transition-[transform,border-color] hover:scale-110", "motion-reduce:transition-none motion-reduce:hover:scale-100", "data-[disabled]:cursor-not-allowed data-[disabled]:hover:scale-100"),
|
|
4528
4529
|
variants: {
|
|
4529
4530
|
status: {
|
|
@@ -4542,7 +4543,7 @@ var pd = { open: fd }, md = [
|
|
|
4542
4543
|
G(() => {
|
|
4543
4544
|
process.env.NODE_ENV !== "production" && !T && console.warn("F0Slider: provide a non-empty `label` or `ariaLabel` for accessibility.");
|
|
4544
4545
|
}, [T]);
|
|
4545
|
-
let [E, D] =
|
|
4546
|
+
let [E, D] = ec({
|
|
4546
4547
|
prop: u,
|
|
4547
4548
|
defaultProp: d ?? m,
|
|
4548
4549
|
onChange: f
|
|
@@ -4567,14 +4568,14 @@ var pd = { open: fd }, md = [
|
|
|
4567
4568
|
I.current = !1;
|
|
4568
4569
|
},
|
|
4569
4570
|
children: [
|
|
4570
|
-
ae ? /* @__PURE__ */ X(
|
|
4571
|
+
ae ? /* @__PURE__ */ X(Jo, {
|
|
4571
4572
|
label: n,
|
|
4572
4573
|
required: s,
|
|
4573
4574
|
htmlFor: S,
|
|
4574
4575
|
id: C,
|
|
4575
4576
|
disabled: c
|
|
4576
4577
|
}) : null,
|
|
4577
|
-
/* @__PURE__ */ Z(
|
|
4578
|
+
/* @__PURE__ */ Z(Hi, {
|
|
4578
4579
|
value: [O],
|
|
4579
4580
|
onValueChange: j,
|
|
4580
4581
|
onValueCommit: M,
|
|
@@ -4589,14 +4590,14 @@ var pd = { open: fd }, md = [
|
|
|
4589
4590
|
onMouseEnter: () => P(!0),
|
|
4590
4591
|
onMouseLeave: () => P(!1),
|
|
4591
4592
|
children: [
|
|
4592
|
-
/* @__PURE__ */ X(
|
|
4593
|
+
/* @__PURE__ */ X(Wi, {
|
|
4593
4594
|
className: yd({ status: ie }),
|
|
4594
|
-
children: /* @__PURE__ */ X(
|
|
4595
|
+
children: /* @__PURE__ */ X(ca, { className: bd({
|
|
4595
4596
|
status: ie,
|
|
4596
4597
|
disabled: c
|
|
4597
4598
|
}) })
|
|
4598
4599
|
}),
|
|
4599
|
-
/* @__PURE__ */ X(
|
|
4600
|
+
/* @__PURE__ */ X(Ba, {
|
|
4600
4601
|
id: S,
|
|
4601
4602
|
"aria-label": ae ? void 0 : T,
|
|
4602
4603
|
"aria-labelledby": ae ? C : void 0,
|
|
@@ -4629,13 +4630,13 @@ var pd = { open: fd }, md = [
|
|
|
4629
4630
|
id: w,
|
|
4630
4631
|
role: "status",
|
|
4631
4632
|
"aria-live": "polite",
|
|
4632
|
-
children: /* @__PURE__ */ X(
|
|
4633
|
+
children: /* @__PURE__ */ X(Yo, { status: oe })
|
|
4633
4634
|
})
|
|
4634
4635
|
]
|
|
4635
4636
|
});
|
|
4636
4637
|
});
|
|
4637
4638
|
Cd.displayName = "F0Slider";
|
|
4638
|
-
var wd = hn("F0Slider",
|
|
4639
|
+
var wd = hn("F0Slider", Ai(L(Cd), vd)), Td = [
|
|
4639
4640
|
"completed",
|
|
4640
4641
|
"in-progress",
|
|
4641
4642
|
"not-started"
|
|
@@ -4655,7 +4656,7 @@ var wd = hn("F0Slider", mi(L(Cd), vd)), Td = [
|
|
|
4655
4656
|
"grey",
|
|
4656
4657
|
"orange",
|
|
4657
4658
|
"radical"
|
|
4658
|
-
], Dd = 16, Od =
|
|
4659
|
+
], Dd = 16, Od = Qa({
|
|
4659
4660
|
base: "h-0.5 rounded-full bg-f1-foreground cursor-pointer",
|
|
4660
4661
|
variants: {
|
|
4661
4662
|
depth: {
|
|
@@ -4752,7 +4753,7 @@ function Nd(e, t) {
|
|
|
4752
4753
|
}
|
|
4753
4754
|
//#endregion
|
|
4754
4755
|
//#region src/blocks/F0TableOfContentPopover/F0TableOfContentPopover.tsx
|
|
4755
|
-
var Pd = 300, Fd = 0, Id =
|
|
4756
|
+
var Pd = 300, Fd = 0, Id = Qa({
|
|
4756
4757
|
base: "w-auto overflow-y-auto rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-0 shadow-lg",
|
|
4757
4758
|
variants: { size: {
|
|
4758
4759
|
sm: "max-h-[240px]",
|
|
@@ -4772,12 +4773,12 @@ function Ld({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
4772
4773
|
});
|
|
4773
4774
|
}));
|
|
4774
4775
|
}, []);
|
|
4775
|
-
return /* @__PURE__ */ Z(
|
|
4776
|
+
return /* @__PURE__ */ Z(ls, {
|
|
4776
4777
|
open: f,
|
|
4777
4778
|
onOpenChange: _,
|
|
4778
4779
|
openDelay: Fd,
|
|
4779
4780
|
closeDelay: Pd,
|
|
4780
|
-
children: [/* @__PURE__ */ X(
|
|
4781
|
+
children: [/* @__PURE__ */ X(Zo, {
|
|
4781
4782
|
asChild: !0,
|
|
4782
4783
|
children: /* @__PURE__ */ X("button", {
|
|
4783
4784
|
className: B(Tn(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", n),
|
|
@@ -4789,7 +4790,7 @@ function Ld({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
4789
4790
|
variant: u
|
|
4790
4791
|
})
|
|
4791
4792
|
})
|
|
4792
|
-
}), /* @__PURE__ */ X(
|
|
4793
|
+
}), /* @__PURE__ */ X(ss, {
|
|
4793
4794
|
ref: v,
|
|
4794
4795
|
side: c === "left" ? "right" : "left",
|
|
4795
4796
|
align: "center",
|
|
@@ -4903,7 +4904,7 @@ function Ud(e) {
|
|
|
4903
4904
|
}
|
|
4904
4905
|
//#endregion
|
|
4905
4906
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4906
|
-
var Wd = Gn.create(
|
|
4907
|
+
var Wd = Gn.create(Kr), Gd = xc(() => {
|
|
4907
4908
|
let e = R();
|
|
4908
4909
|
return /* @__PURE__ */ Z("div", {
|
|
4909
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",
|
|
@@ -5259,74 +5260,74 @@ var sf = () => {
|
|
|
5259
5260
|
let { isQuestionTypeAllowed: e, datasets: t } = nf(), { t: n } = R(), r = [
|
|
5260
5261
|
{
|
|
5261
5262
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5262
|
-
icon:
|
|
5263
|
+
icon: Wr,
|
|
5263
5264
|
questionType: "rating"
|
|
5264
5265
|
},
|
|
5265
5266
|
{
|
|
5266
5267
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5267
|
-
icon:
|
|
5268
|
+
icon: ta,
|
|
5268
5269
|
questionType: "multi-select"
|
|
5269
5270
|
},
|
|
5270
5271
|
{
|
|
5271
5272
|
label: n("surveyFormBuilder.questionTypes.singleChoice"),
|
|
5272
|
-
icon:
|
|
5273
|
+
icon: Bs,
|
|
5273
5274
|
questionType: "select"
|
|
5274
5275
|
},
|
|
5275
5276
|
{
|
|
5276
5277
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5277
|
-
icon:
|
|
5278
|
+
icon: Ga,
|
|
5278
5279
|
questionType: "text"
|
|
5279
5280
|
},
|
|
5280
5281
|
{
|
|
5281
5282
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5282
|
-
icon:
|
|
5283
|
+
icon: Ii,
|
|
5283
5284
|
questionType: "longText"
|
|
5284
5285
|
},
|
|
5285
5286
|
{
|
|
5286
5287
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5287
|
-
icon:
|
|
5288
|
+
icon: Ra,
|
|
5288
5289
|
questionType: "numeric"
|
|
5289
5290
|
},
|
|
5290
5291
|
{
|
|
5291
5292
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5292
|
-
icon:
|
|
5293
|
+
icon: Ha,
|
|
5293
5294
|
questionType: "link"
|
|
5294
5295
|
},
|
|
5295
5296
|
{
|
|
5296
5297
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5297
|
-
icon:
|
|
5298
|
+
icon: Ji,
|
|
5298
5299
|
questionType: "date"
|
|
5299
5300
|
},
|
|
5300
5301
|
{
|
|
5301
5302
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5302
|
-
icon:
|
|
5303
|
+
icon: Fi,
|
|
5303
5304
|
questionType: "file"
|
|
5304
5305
|
},
|
|
5305
5306
|
{
|
|
5306
5307
|
label: n("surveyFormBuilder.questionTypes.checkbox"),
|
|
5307
|
-
icon:
|
|
5308
|
+
icon: Vs,
|
|
5308
5309
|
questionType: "checkbox"
|
|
5309
5310
|
}
|
|
5310
5311
|
].filter((t) => e(t.questionType)), i = e("dropdown-single") ? Object.entries(t ?? {}).map(([e, t]) => ({
|
|
5311
5312
|
label: t.title,
|
|
5312
|
-
icon: t.icon ??
|
|
5313
|
+
icon: t.icon ?? io,
|
|
5313
5314
|
questionType: "dropdown-single",
|
|
5314
5315
|
datasetKey: e
|
|
5315
5316
|
})) : [];
|
|
5316
5317
|
return [...r, ...i];
|
|
5317
5318
|
}, cf = {
|
|
5318
|
-
rating:
|
|
5319
|
-
"multi-select":
|
|
5320
|
-
select:
|
|
5321
|
-
text:
|
|
5322
|
-
longText:
|
|
5323
|
-
numeric:
|
|
5324
|
-
link:
|
|
5325
|
-
date:
|
|
5326
|
-
"dropdown-single":
|
|
5327
|
-
"dropdown-multi":
|
|
5328
|
-
file:
|
|
5329
|
-
checkbox:
|
|
5319
|
+
rating: Wr,
|
|
5320
|
+
"multi-select": ta,
|
|
5321
|
+
select: Bs,
|
|
5322
|
+
text: Ga,
|
|
5323
|
+
longText: Ii,
|
|
5324
|
+
numeric: Ra,
|
|
5325
|
+
link: Ha,
|
|
5326
|
+
date: Ji,
|
|
5327
|
+
"dropdown-single": io,
|
|
5328
|
+
"dropdown-multi": io,
|
|
5329
|
+
file: Fi,
|
|
5330
|
+
checkbox: Vs
|
|
5330
5331
|
}, lf = () => {
|
|
5331
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) => {
|
|
5332
5333
|
n?.({
|
|
@@ -5338,28 +5339,28 @@ var sf = () => {
|
|
|
5338
5339
|
}, f = s.filter((e) => !e.datasetKey), p = Array.from(new Set(s.filter((e) => !!e.datasetKey).map((e) => e.datasetKey)));
|
|
5339
5340
|
return e || t ? null : /* @__PURE__ */ X("div", {
|
|
5340
5341
|
className: "ml-6 flex justify-center",
|
|
5341
|
-
children: /* @__PURE__ */ Z(
|
|
5342
|
+
children: /* @__PURE__ */ Z(rc, {
|
|
5342
5343
|
open: a,
|
|
5343
5344
|
onOpenChange: o,
|
|
5344
|
-
children: [/* @__PURE__ */ X(
|
|
5345
|
+
children: [/* @__PURE__ */ X(qs, {
|
|
5345
5346
|
asChild: !0,
|
|
5346
5347
|
children: /* @__PURE__ */ X(V, {
|
|
5347
|
-
icon:
|
|
5348
|
+
icon: so,
|
|
5348
5349
|
label: l,
|
|
5349
5350
|
size: "md",
|
|
5350
5351
|
variant: "outline",
|
|
5351
5352
|
hideLabel: !0
|
|
5352
5353
|
})
|
|
5353
|
-
}), /* @__PURE__ */ Z(
|
|
5354
|
+
}), /* @__PURE__ */ Z(Gs, {
|
|
5354
5355
|
align: "center",
|
|
5355
5356
|
className: "w-80",
|
|
5356
5357
|
children: [
|
|
5357
|
-
/* @__PURE__ */ X(
|
|
5358
|
+
/* @__PURE__ */ X(Ys, {
|
|
5358
5359
|
onClick: d,
|
|
5359
5360
|
children: /* @__PURE__ */ Z("div", {
|
|
5360
5361
|
className: "flex w-full flex-row items-center gap-2",
|
|
5361
5362
|
children: [/* @__PURE__ */ X(H, {
|
|
5362
|
-
icon:
|
|
5363
|
+
icon: Xr,
|
|
5363
5364
|
color: "default"
|
|
5364
5365
|
}), /* @__PURE__ */ X("span", {
|
|
5365
5366
|
className: "flex-1 text-base font-medium",
|
|
@@ -5367,8 +5368,8 @@ var sf = () => {
|
|
|
5367
5368
|
})]
|
|
5368
5369
|
})
|
|
5369
5370
|
}),
|
|
5370
|
-
/* @__PURE__ */ X(
|
|
5371
|
-
f.map((e) => /* @__PURE__ */ X(
|
|
5371
|
+
/* @__PURE__ */ X(Js, {}),
|
|
5372
|
+
f.map((e) => /* @__PURE__ */ X(Ys, {
|
|
5372
5373
|
onClick: () => u(e.questionType),
|
|
5373
5374
|
children: /* @__PURE__ */ Z("div", {
|
|
5374
5375
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -5381,9 +5382,9 @@ var sf = () => {
|
|
|
5381
5382
|
})]
|
|
5382
5383
|
})
|
|
5383
5384
|
}, e.questionType)),
|
|
5384
|
-
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
5385
|
+
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Js, {}), p.map((e) => {
|
|
5385
5386
|
let t = s.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
5386
|
-
return /* @__PURE__ */ Z(
|
|
5387
|
+
return /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
5387
5388
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
5388
5389
|
children: /* @__PURE__ */ Z("div", {
|
|
5389
5390
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -5395,24 +5396,24 @@ var sf = () => {
|
|
|
5395
5396
|
children: t?.label ?? e
|
|
5396
5397
|
})]
|
|
5397
5398
|
})
|
|
5398
|
-
}), /* @__PURE__ */ X(
|
|
5399
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ Z(ac, { children: [r("dropdown-single") ? /* @__PURE__ */ X(Ys, {
|
|
5399
5400
|
onClick: () => u("dropdown-single", e),
|
|
5400
5401
|
children: /* @__PURE__ */ Z("div", {
|
|
5401
5402
|
className: "flex w-full flex-row items-center gap-2",
|
|
5402
5403
|
children: [/* @__PURE__ */ X(H, {
|
|
5403
|
-
icon:
|
|
5404
|
+
icon: Bs,
|
|
5404
5405
|
color: "default"
|
|
5405
5406
|
}), /* @__PURE__ */ X("span", {
|
|
5406
5407
|
className: "flex-1",
|
|
5407
5408
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
5408
5409
|
})]
|
|
5409
5410
|
})
|
|
5410
|
-
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(
|
|
5411
|
+
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(Ys, {
|
|
5411
5412
|
onClick: () => u("dropdown-multi", e),
|
|
5412
5413
|
children: /* @__PURE__ */ Z("div", {
|
|
5413
5414
|
className: "flex w-full flex-row items-center gap-2",
|
|
5414
5415
|
children: [/* @__PURE__ */ X(H, {
|
|
5415
|
-
icon:
|
|
5416
|
+
icon: ta,
|
|
5416
5417
|
color: "default"
|
|
5417
5418
|
}), /* @__PURE__ */ X("span", {
|
|
5418
5419
|
className: "flex-1",
|
|
@@ -5560,7 +5561,7 @@ function hf({ questionId: e, questionType: t, canDelete: n = !0 }) {
|
|
|
5560
5561
|
}
|
|
5561
5562
|
//#endregion
|
|
5562
5563
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/QuestionTypes/BaseQuestion/ActionsMenu/ActionsMenu.tsx
|
|
5563
|
-
var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(
|
|
5564
|
+
var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Ys, {
|
|
5564
5565
|
className: "!pb-2.5 pr-4",
|
|
5565
5566
|
onClick: (e) => {
|
|
5566
5567
|
e.preventDefault(), r(!n);
|
|
@@ -5568,7 +5569,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5568
5569
|
children: /* @__PURE__ */ Z("div", {
|
|
5569
5570
|
className: "flex w-full flex-row items-center gap-2",
|
|
5570
5571
|
children: [
|
|
5571
|
-
/* @__PURE__ */ X(
|
|
5572
|
+
/* @__PURE__ */ X(Za, {
|
|
5572
5573
|
icon: t,
|
|
5573
5574
|
color: "default"
|
|
5574
5575
|
}),
|
|
@@ -5576,7 +5577,7 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5576
5577
|
className: "flex-1",
|
|
5577
5578
|
children: e
|
|
5578
5579
|
}),
|
|
5579
|
-
/* @__PURE__ */ X(
|
|
5580
|
+
/* @__PURE__ */ X(bs, {
|
|
5580
5581
|
title: e,
|
|
5581
5582
|
checked: n,
|
|
5582
5583
|
onCheckedChange: r,
|
|
@@ -5586,13 +5587,13 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5586
5587
|
})
|
|
5587
5588
|
}), _f = ({ label: e, value: t, currentDatasetKey: n, questionTypes: r, currentRatingType: i, isQuestionTypeAllowed: a, onSelectQuestionType: o, onSelectRatingType: s }) => {
|
|
5588
5589
|
let { t: c } = R(), l = r.filter((e) => !e.datasetKey), u = Array.from(new Set(r.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), d = n ? r.find((e) => e.questionType === t && e.datasetKey === n)?.label ?? void 0 : r.find((e) => e.questionType === t && !e.datasetKey)?.label ?? void 0;
|
|
5589
|
-
return /* @__PURE__ */ Z(
|
|
5590
|
+
return /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
5590
5591
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
5591
5592
|
children: /* @__PURE__ */ Z("div", {
|
|
5592
5593
|
className: "flex w-full flex-row items-center gap-2",
|
|
5593
5594
|
children: [
|
|
5594
|
-
/* @__PURE__ */ X(
|
|
5595
|
-
icon:
|
|
5595
|
+
/* @__PURE__ */ X(Za, {
|
|
5596
|
+
icon: xi,
|
|
5596
5597
|
color: "default"
|
|
5597
5598
|
}),
|
|
5598
5599
|
/* @__PURE__ */ X("span", {
|
|
@@ -5605,14 +5606,14 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5605
5606
|
}) : null
|
|
5606
5607
|
]
|
|
5607
5608
|
})
|
|
5608
|
-
}), /* @__PURE__ */ X(
|
|
5609
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ Z(ac, { children: [l.map((e) => {
|
|
5609
5610
|
let r = e.questionType === "rating", a = t === e.questionType && !n;
|
|
5610
|
-
return r ? /* @__PURE__ */ Z(
|
|
5611
|
+
return r ? /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
5611
5612
|
className: "mx-1 mt-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
5612
5613
|
children: /* @__PURE__ */ Z("div", {
|
|
5613
5614
|
className: "flex w-full flex-row items-center gap-2 text-base font-medium",
|
|
5614
5615
|
children: [
|
|
5615
|
-
/* @__PURE__ */ X(
|
|
5616
|
+
/* @__PURE__ */ X(Za, {
|
|
5616
5617
|
icon: e.icon,
|
|
5617
5618
|
color: "default"
|
|
5618
5619
|
}),
|
|
@@ -5626,24 +5627,24 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5626
5627
|
}) : null
|
|
5627
5628
|
]
|
|
5628
5629
|
})
|
|
5629
|
-
}), /* @__PURE__ */ X(
|
|
5630
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ X(ac, { children: df.map((e) => /* @__PURE__ */ X(Ys, {
|
|
5630
5631
|
onClick: () => s(e.value),
|
|
5631
5632
|
children: /* @__PURE__ */ Z("div", {
|
|
5632
5633
|
className: "flex w-full flex-row items-center gap-2 pl-2",
|
|
5633
5634
|
children: [/* @__PURE__ */ X("span", {
|
|
5634
5635
|
className: "flex-1",
|
|
5635
5636
|
children: e.label
|
|
5636
|
-
}), i === e.value ? /* @__PURE__ */ X(
|
|
5637
|
-
icon:
|
|
5637
|
+
}), i === e.value ? /* @__PURE__ */ X(Za, {
|
|
5638
|
+
icon: Bs,
|
|
5638
5639
|
color: "default"
|
|
5639
5640
|
}) : null]
|
|
5640
5641
|
})
|
|
5641
|
-
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(
|
|
5642
|
+
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(Ys, {
|
|
5642
5643
|
onClick: () => o(e.questionType),
|
|
5643
5644
|
children: /* @__PURE__ */ Z("div", {
|
|
5644
5645
|
className: "flex w-full flex-row items-center gap-2",
|
|
5645
5646
|
children: [
|
|
5646
|
-
/* @__PURE__ */ X(
|
|
5647
|
+
/* @__PURE__ */ X(Za, {
|
|
5647
5648
|
icon: e.icon,
|
|
5648
5649
|
color: "default"
|
|
5649
5650
|
}),
|
|
@@ -5651,21 +5652,21 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5651
5652
|
className: "flex-1",
|
|
5652
5653
|
children: e.label
|
|
5653
5654
|
}),
|
|
5654
|
-
a ? /* @__PURE__ */ X(
|
|
5655
|
-
icon:
|
|
5655
|
+
a ? /* @__PURE__ */ X(Za, {
|
|
5656
|
+
icon: Bs,
|
|
5656
5657
|
color: "default"
|
|
5657
5658
|
}) : null
|
|
5658
5659
|
]
|
|
5659
5660
|
})
|
|
5660
5661
|
}, e.questionType);
|
|
5661
|
-
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
5662
|
+
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Js, {}), u.map((e) => {
|
|
5662
5663
|
let i = r.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
5663
|
-
return /* @__PURE__ */ Z(
|
|
5664
|
+
return /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
5664
5665
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
5665
5666
|
children: /* @__PURE__ */ Z("div", {
|
|
5666
5667
|
className: "flex w-full flex-row items-center gap-2",
|
|
5667
5668
|
children: [
|
|
5668
|
-
i ? /* @__PURE__ */ X(
|
|
5669
|
+
i ? /* @__PURE__ */ X(Za, {
|
|
5669
5670
|
icon: i.icon,
|
|
5670
5671
|
color: "default"
|
|
5671
5672
|
}) : null,
|
|
@@ -5673,71 +5674,71 @@ var gf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(B
|
|
|
5673
5674
|
className: "flex-1 text-base font-medium",
|
|
5674
5675
|
children: i?.label ?? e
|
|
5675
5676
|
}),
|
|
5676
|
-
n === e ? /* @__PURE__ */ X(
|
|
5677
|
-
icon:
|
|
5677
|
+
n === e ? /* @__PURE__ */ X(Za, {
|
|
5678
|
+
icon: Bs,
|
|
5678
5679
|
color: "default"
|
|
5679
5680
|
}) : null
|
|
5680
5681
|
]
|
|
5681
5682
|
})
|
|
5682
|
-
}), /* @__PURE__ */ X(
|
|
5683
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ Z(ac, { children: [a("dropdown-single") ? /* @__PURE__ */ X(Ys, {
|
|
5683
5684
|
onClick: () => o("dropdown-single", e),
|
|
5684
5685
|
children: /* @__PURE__ */ Z("div", {
|
|
5685
5686
|
className: "flex w-full flex-row items-center gap-2",
|
|
5686
5687
|
children: [
|
|
5687
|
-
/* @__PURE__ */ X(
|
|
5688
|
-
icon:
|
|
5688
|
+
/* @__PURE__ */ X(Za, {
|
|
5689
|
+
icon: Bs,
|
|
5689
5690
|
color: "default"
|
|
5690
5691
|
}),
|
|
5691
5692
|
/* @__PURE__ */ X("span", {
|
|
5692
5693
|
className: "flex-1",
|
|
5693
5694
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
5694
5695
|
}),
|
|
5695
|
-
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(
|
|
5696
|
-
icon:
|
|
5696
|
+
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(Za, {
|
|
5697
|
+
icon: Bs,
|
|
5697
5698
|
color: "default"
|
|
5698
5699
|
}) : null
|
|
5699
5700
|
]
|
|
5700
5701
|
})
|
|
5701
|
-
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(
|
|
5702
|
+
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(Ys, {
|
|
5702
5703
|
onClick: () => o("dropdown-multi", e),
|
|
5703
5704
|
children: /* @__PURE__ */ Z("div", {
|
|
5704
5705
|
className: "flex w-full flex-row items-center gap-2",
|
|
5705
5706
|
children: [
|
|
5706
|
-
/* @__PURE__ */ X(
|
|
5707
|
-
icon:
|
|
5707
|
+
/* @__PURE__ */ X(Za, {
|
|
5708
|
+
icon: ta,
|
|
5708
5709
|
color: "default"
|
|
5709
5710
|
}),
|
|
5710
5711
|
/* @__PURE__ */ X("span", {
|
|
5711
5712
|
className: "flex-1",
|
|
5712
5713
|
children: c("surveyFormBuilder.labels.multiSelection")
|
|
5713
5714
|
}),
|
|
5714
|
-
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(
|
|
5715
|
-
icon:
|
|
5715
|
+
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(Za, {
|
|
5716
|
+
icon: Bs,
|
|
5716
5717
|
color: "default"
|
|
5717
5718
|
}) : null
|
|
5718
5719
|
]
|
|
5719
5720
|
})
|
|
5720
5721
|
}) : null] }) })] }, e);
|
|
5721
5722
|
})] }) : null] }) })] });
|
|
5722
|
-
}, vf = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(
|
|
5723
|
+
}, vf = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(Ys, {
|
|
5723
5724
|
onClick: n,
|
|
5724
5725
|
className: B(r ? "text-f1-foreground-critical" : void 0),
|
|
5725
5726
|
children: /* @__PURE__ */ Z("div", {
|
|
5726
5727
|
className: "flex w-full flex-row items-center gap-2",
|
|
5727
|
-
children: [/* @__PURE__ */ X(
|
|
5728
|
+
children: [/* @__PURE__ */ X(Za, { icon: t }), /* @__PURE__ */ X("span", {
|
|
5728
5729
|
className: "flex-1",
|
|
5729
5730
|
children: e
|
|
5730
5731
|
})]
|
|
5731
5732
|
})
|
|
5732
5733
|
}), yf = ({ showDuplicate: e, showDelete: t, withSeparator: n, onDuplicate: r, onDelete: i }) => {
|
|
5733
5734
|
let { t: a } = R(), { labels: o } = nf();
|
|
5734
|
-
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(
|
|
5735
|
+
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Js, {}) : null, /* @__PURE__ */ Z(nc, { children: [e ? /* @__PURE__ */ X(vf, {
|
|
5735
5736
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5736
|
-
icon:
|
|
5737
|
+
icon: Bi,
|
|
5737
5738
|
onClick: r
|
|
5738
5739
|
}) : null, t ? /* @__PURE__ */ X(vf, {
|
|
5739
5740
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5740
|
-
icon:
|
|
5741
|
+
icon: Oi,
|
|
5741
5742
|
onClick: i,
|
|
5742
5743
|
critical: !0
|
|
5743
5744
|
}) : null] })] });
|
|
@@ -5748,47 +5749,47 @@ function bf({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5748
5749
|
questionType: r,
|
|
5749
5750
|
canDelete: i
|
|
5750
5751
|
}), w = (e) => a?.includes(e) ?? !1, T = !g && !w("required"), E = !!f && !w("multiSelect"), D = !!f && h && r === "dropdown-single" && !w("allowCreate"), O = !w("questionType"), k = !w("duplicate"), A = i && !w("delete");
|
|
5751
|
-
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(
|
|
5752
|
+
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(rc, {
|
|
5752
5753
|
open: e,
|
|
5753
5754
|
onOpenChange: t,
|
|
5754
|
-
children: [/* @__PURE__ */ X(
|
|
5755
|
+
children: [/* @__PURE__ */ X(qs, {
|
|
5755
5756
|
tabIndex: -1,
|
|
5756
5757
|
asChild: !0,
|
|
5757
5758
|
children: /* @__PURE__ */ X(V, {
|
|
5758
|
-
icon:
|
|
5759
|
+
icon: Hs,
|
|
5759
5760
|
label: o("surveyFormBuilder.labels.actions"),
|
|
5760
5761
|
size: "md",
|
|
5761
5762
|
variant: "ghost",
|
|
5762
5763
|
tooltip: !1,
|
|
5763
5764
|
hideLabel: !0
|
|
5764
5765
|
})
|
|
5765
|
-
}), /* @__PURE__ */ Z(
|
|
5766
|
+
}), /* @__PURE__ */ Z(Gs, {
|
|
5766
5767
|
className: "w-80",
|
|
5767
5768
|
align: "start",
|
|
5768
5769
|
children: [
|
|
5769
|
-
/* @__PURE__ */ X(
|
|
5770
|
+
/* @__PURE__ */ X(Xs, {
|
|
5770
5771
|
className: "p-4 pb-2 font-medium text-f1-foreground-secondary",
|
|
5771
5772
|
children: c?.questionOptions ?? o("surveyFormBuilder.labels.questionOptions")
|
|
5772
5773
|
}),
|
|
5773
|
-
T ? /* @__PURE__ */ X(
|
|
5774
|
+
T ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5774
5775
|
label: o("surveyFormBuilder.labels.required"),
|
|
5775
|
-
icon:
|
|
5776
|
+
icon: Wa,
|
|
5776
5777
|
checked: !!l?.required,
|
|
5777
5778
|
onChange: _
|
|
5778
5779
|
}) }) : null,
|
|
5779
|
-
E ? /* @__PURE__ */ X(
|
|
5780
|
+
E ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5780
5781
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5781
|
-
icon:
|
|
5782
|
+
icon: ta,
|
|
5782
5783
|
checked: p,
|
|
5783
5784
|
onChange: b
|
|
5784
5785
|
}) }) : null,
|
|
5785
|
-
D ? /* @__PURE__ */ X(
|
|
5786
|
+
D ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(gf, {
|
|
5786
5787
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
5787
|
-
icon:
|
|
5788
|
+
icon: Ts,
|
|
5788
5789
|
checked: m,
|
|
5789
5790
|
onChange: x
|
|
5790
5791
|
}) }) : null,
|
|
5791
|
-
O ? /* @__PURE__ */ X(
|
|
5792
|
+
O ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(_f, {
|
|
5792
5793
|
label: c?.questionType ?? o("surveyFormBuilder.labels.questionType"),
|
|
5793
5794
|
value: r,
|
|
5794
5795
|
currentDatasetKey: f,
|
|
@@ -5893,7 +5894,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5893
5894
|
children: /* @__PURE__ */ X("span", {
|
|
5894
5895
|
className: "inline-flex",
|
|
5895
5896
|
children: /* @__PURE__ */ X(V, {
|
|
5896
|
-
icon:
|
|
5897
|
+
icon: Us,
|
|
5897
5898
|
label: A("surveyFormBuilder.labels.locked"),
|
|
5898
5899
|
size: "md",
|
|
5899
5900
|
variant: "ghost",
|
|
@@ -5904,7 +5905,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5904
5905
|
})
|
|
5905
5906
|
})
|
|
5906
5907
|
}) : /* @__PURE__ */ X(V, {
|
|
5907
|
-
icon:
|
|
5908
|
+
icon: Us,
|
|
5908
5909
|
label: A("surveyFormBuilder.labels.locked"),
|
|
5909
5910
|
size: "md",
|
|
5910
5911
|
variant: "ghost",
|
|
@@ -5947,36 +5948,36 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5947
5948
|
}) : null,
|
|
5948
5949
|
!f && !p && !b ? /* @__PURE__ */ X("div", {
|
|
5949
5950
|
className: B("absolute bottom-0 left-1/2 translate-x-[-50%] translate-y-[50%] bg-f1-background opacity-0 group-hover/question:opacity-100", T && "opacity-100"),
|
|
5950
|
-
children: /* @__PURE__ */ Z(
|
|
5951
|
+
children: /* @__PURE__ */ Z(rc, {
|
|
5951
5952
|
open: T,
|
|
5952
5953
|
onOpenChange: E,
|
|
5953
|
-
children: [/* @__PURE__ */ X(
|
|
5954
|
+
children: [/* @__PURE__ */ X(qs, {
|
|
5954
5955
|
asChild: !0,
|
|
5955
5956
|
children: /* @__PURE__ */ X(V, {
|
|
5956
|
-
icon:
|
|
5957
|
+
icon: so,
|
|
5957
5958
|
label: M,
|
|
5958
5959
|
size: "sm",
|
|
5959
5960
|
variant: "outline",
|
|
5960
5961
|
hideLabel: !0
|
|
5961
5962
|
})
|
|
5962
|
-
}), /* @__PURE__ */ Z(
|
|
5963
|
+
}), /* @__PURE__ */ Z(Gs, {
|
|
5963
5964
|
align: "center",
|
|
5964
5965
|
className: "w-80",
|
|
5965
5966
|
children: [
|
|
5966
|
-
w ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
5967
|
+
w ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Ys, {
|
|
5967
5968
|
onClick: te,
|
|
5968
5969
|
children: /* @__PURE__ */ Z("div", {
|
|
5969
5970
|
className: "flex w-full flex-row items-center gap-2",
|
|
5970
5971
|
children: [/* @__PURE__ */ X(H, {
|
|
5971
|
-
icon:
|
|
5972
|
+
icon: Xr,
|
|
5972
5973
|
color: "default"
|
|
5973
5974
|
}), /* @__PURE__ */ X("span", {
|
|
5974
5975
|
className: "flex-1 text-base font-medium",
|
|
5975
5976
|
children: A("surveyFormBuilder.questionTypes.section")
|
|
5976
5977
|
})]
|
|
5977
5978
|
})
|
|
5978
|
-
}), /* @__PURE__ */ X(
|
|
5979
|
-
I.map((e) => /* @__PURE__ */ X(
|
|
5979
|
+
}), /* @__PURE__ */ X(Js, {})] }),
|
|
5980
|
+
I.map((e) => /* @__PURE__ */ X(Ys, {
|
|
5980
5981
|
onClick: () => ee(e.questionType),
|
|
5981
5982
|
children: /* @__PURE__ */ Z("div", {
|
|
5982
5983
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -5989,9 +5990,9 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5989
5990
|
})]
|
|
5990
5991
|
})
|
|
5991
5992
|
}, e.questionType)),
|
|
5992
|
-
re.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
5993
|
+
re.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Js, {}), re.map((e) => {
|
|
5993
5994
|
let t = ne.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
5994
|
-
return /* @__PURE__ */ Z(
|
|
5995
|
+
return /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
5995
5996
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
5996
5997
|
children: /* @__PURE__ */ Z("div", {
|
|
5997
5998
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -6003,24 +6004,24 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
6003
6004
|
children: t?.label ?? e
|
|
6004
6005
|
})]
|
|
6005
6006
|
})
|
|
6006
|
-
}), /* @__PURE__ */ X(
|
|
6007
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ Z(ac, { children: [g("dropdown-single") ? /* @__PURE__ */ X(Ys, {
|
|
6007
6008
|
onClick: () => ee("dropdown-single", e),
|
|
6008
6009
|
children: /* @__PURE__ */ Z("div", {
|
|
6009
6010
|
className: "flex w-full flex-row items-center gap-2",
|
|
6010
6011
|
children: [/* @__PURE__ */ X(H, {
|
|
6011
|
-
icon:
|
|
6012
|
+
icon: Bs,
|
|
6012
6013
|
color: "default"
|
|
6013
6014
|
}), /* @__PURE__ */ X("span", {
|
|
6014
6015
|
className: "flex-1",
|
|
6015
6016
|
children: A("surveyFormBuilder.labels.singleSelection")
|
|
6016
6017
|
})]
|
|
6017
6018
|
})
|
|
6018
|
-
}) : null, g("dropdown-multi") ? /* @__PURE__ */ X(
|
|
6019
|
+
}) : null, g("dropdown-multi") ? /* @__PURE__ */ X(Ys, {
|
|
6019
6020
|
onClick: () => ee("dropdown-multi", e),
|
|
6020
6021
|
children: /* @__PURE__ */ Z("div", {
|
|
6021
6022
|
className: "flex w-full flex-row items-center gap-2",
|
|
6022
6023
|
children: [/* @__PURE__ */ X(H, {
|
|
6023
|
-
icon:
|
|
6024
|
+
icon: ta,
|
|
6024
6025
|
color: "default"
|
|
6025
6026
|
}), /* @__PURE__ */ X("span", {
|
|
6026
6027
|
className: "flex-1",
|
|
@@ -6048,7 +6049,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6048
6049
|
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = nf(), s = Cf(n), { t: c } = R();
|
|
6049
6050
|
if (i) return /* @__PURE__ */ X(Sf, {
|
|
6050
6051
|
...n,
|
|
6051
|
-
children: /* @__PURE__ */ X(
|
|
6052
|
+
children: /* @__PURE__ */ X(ns, {
|
|
6052
6053
|
id: n.id,
|
|
6053
6054
|
checked: e ?? !1,
|
|
6054
6055
|
onCheckedChange: (e) => {
|
|
@@ -6068,7 +6069,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6068
6069
|
...n,
|
|
6069
6070
|
children: /* @__PURE__ */ Z("div", {
|
|
6070
6071
|
className: "flex items-start",
|
|
6071
|
-
children: [/* @__PURE__ */ X(
|
|
6072
|
+
children: [/* @__PURE__ */ X(ns, {
|
|
6072
6073
|
checked: !1,
|
|
6073
6074
|
disabled: !0,
|
|
6074
6075
|
hideLabel: !0,
|
|
@@ -6254,8 +6255,8 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6254
6255
|
required: t.required,
|
|
6255
6256
|
maxDecimals: 0,
|
|
6256
6257
|
placeholder: s,
|
|
6257
|
-
icon:
|
|
6258
|
-
}) : /* @__PURE__ */ X(
|
|
6258
|
+
icon: Ra
|
|
6259
|
+
}) : /* @__PURE__ */ X(xa, {
|
|
6259
6260
|
type: "text",
|
|
6260
6261
|
size: "md",
|
|
6261
6262
|
value: s,
|
|
@@ -6263,7 +6264,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6263
6264
|
disabled: !0,
|
|
6264
6265
|
label: n("surveyFormBuilder.answer.label"),
|
|
6265
6266
|
hideLabel: !0,
|
|
6266
|
-
icon:
|
|
6267
|
+
icon: Ra
|
|
6267
6268
|
})
|
|
6268
6269
|
});
|
|
6269
6270
|
}, Mf = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -6276,10 +6277,10 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6276
6277
|
onClick: () => {
|
|
6277
6278
|
i || n(o);
|
|
6278
6279
|
},
|
|
6279
|
-
children: a ? /* @__PURE__ */ Z(
|
|
6280
|
+
children: a ? /* @__PURE__ */ Z(ic, {
|
|
6280
6281
|
open: !i && c,
|
|
6281
6282
|
onOpenChange: i ? void 0 : l,
|
|
6282
|
-
children: [/* @__PURE__ */ X(
|
|
6283
|
+
children: [/* @__PURE__ */ X($s, {
|
|
6283
6284
|
asChild: !0,
|
|
6284
6285
|
children: /* @__PURE__ */ X(V, {
|
|
6285
6286
|
emoji: s,
|
|
@@ -6289,7 +6290,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6289
6290
|
withoutDisabledAppearance: !0,
|
|
6290
6291
|
hideLabel: !0
|
|
6291
6292
|
})
|
|
6292
|
-
}), /* @__PURE__ */ X(
|
|
6293
|
+
}), /* @__PURE__ */ X(tc, {
|
|
6293
6294
|
side: "bottom",
|
|
6294
6295
|
align: "center",
|
|
6295
6296
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -6420,7 +6421,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6420
6421
|
children: [
|
|
6421
6422
|
/* @__PURE__ */ X("div", {
|
|
6422
6423
|
className: B("block", E ? "group-hover:hidden" : "cursor-default", p && "cursor-grabbing [&_button]:cursor-grabbing"),
|
|
6423
|
-
children: u === "multi-select" ? /* @__PURE__ */ X(
|
|
6424
|
+
children: u === "multi-select" ? /* @__PURE__ */ X(ns, {
|
|
6424
6425
|
title: f,
|
|
6425
6426
|
checked: o ? !!s : !1,
|
|
6426
6427
|
onCheckedChange: y,
|
|
@@ -6436,8 +6437,8 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6436
6437
|
className: B("hidden scale-75 cursor-grab", D && "active:cursor-grabbing", E && "group-hover:block", p && "cursor-grabbing", !D && "cursor-not-allowed"),
|
|
6437
6438
|
children: /* @__PURE__ */ X("div", {
|
|
6438
6439
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6439
|
-
children: /* @__PURE__ */ X(
|
|
6440
|
-
icon:
|
|
6440
|
+
children: /* @__PURE__ */ X(Za, {
|
|
6441
|
+
icon: Gr,
|
|
6441
6442
|
size: "sm"
|
|
6442
6443
|
})
|
|
6443
6444
|
})
|
|
@@ -6460,13 +6461,13 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6460
6461
|
children: [/* @__PURE__ */ X(V, {
|
|
6461
6462
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6462
6463
|
variant: "ghost",
|
|
6463
|
-
icon: c ?
|
|
6464
|
+
icon: c ? Ni : Li,
|
|
6464
6465
|
onClick: x,
|
|
6465
6466
|
hideLabel: !0
|
|
6466
6467
|
}), /* @__PURE__ */ X(V, {
|
|
6467
6468
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6468
6469
|
variant: "ghost",
|
|
6469
|
-
icon:
|
|
6470
|
+
icon: Oi,
|
|
6470
6471
|
hideLabel: !0,
|
|
6471
6472
|
onClick: S
|
|
6472
6473
|
})]
|
|
@@ -6595,7 +6596,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6595
6596
|
children: /* @__PURE__ */ X(V, {
|
|
6596
6597
|
label: c("surveyFormBuilder.selectQuestion.addOption"),
|
|
6597
6598
|
variant: "ghost",
|
|
6598
|
-
icon:
|
|
6599
|
+
icon: so,
|
|
6599
6600
|
onClick: p
|
|
6600
6601
|
})
|
|
6601
6602
|
}) : null]
|
|
@@ -6693,7 +6694,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6693
6694
|
h && c.start(e);
|
|
6694
6695
|
},
|
|
6695
6696
|
children: /* @__PURE__ */ X(H, {
|
|
6696
|
-
icon:
|
|
6697
|
+
icon: Gr,
|
|
6697
6698
|
size: "sm"
|
|
6698
6699
|
})
|
|
6699
6700
|
}) : null, /* @__PURE__ */ X(Bf, { ...e.question })]
|
|
@@ -6723,7 +6724,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6723
6724
|
f && i.start(e);
|
|
6724
6725
|
},
|
|
6725
6726
|
children: /* @__PURE__ */ X(H, {
|
|
6726
|
-
icon:
|
|
6727
|
+
icon: Gr,
|
|
6727
6728
|
size: "sm"
|
|
6728
6729
|
})
|
|
6729
6730
|
}) : null, /* @__PURE__ */ X(Bf, { ...e })]
|
|
@@ -6755,7 +6756,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6755
6756
|
});
|
|
6756
6757
|
}, x = [{
|
|
6757
6758
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6758
|
-
icon:
|
|
6759
|
+
icon: Bi,
|
|
6759
6760
|
onClick: () => {
|
|
6760
6761
|
d?.({
|
|
6761
6762
|
elementId: e,
|
|
@@ -6764,7 +6765,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6764
6765
|
}
|
|
6765
6766
|
}, {
|
|
6766
6767
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6767
|
-
icon:
|
|
6768
|
+
icon: Oi,
|
|
6768
6769
|
onClick: () => {
|
|
6769
6770
|
u(e);
|
|
6770
6771
|
},
|
|
@@ -6773,9 +6774,9 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6773
6774
|
G(() => {
|
|
6774
6775
|
T.current?.focus({ preventScroll: !0 });
|
|
6775
6776
|
}, []);
|
|
6776
|
-
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(
|
|
6777
|
+
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(Eo, {
|
|
6777
6778
|
text: h("surveyFormBuilder.labels.locked"),
|
|
6778
|
-
icon:
|
|
6779
|
+
icon: Us,
|
|
6779
6780
|
className: "bg-f1-background"
|
|
6780
6781
|
}) : null;
|
|
6781
6782
|
return /* @__PURE__ */ Z("div", {
|
|
@@ -6809,14 +6810,14 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6809
6810
|
}) : null,
|
|
6810
6811
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6811
6812
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6812
|
-
children: /* @__PURE__ */ X(
|
|
6813
|
+
children: /* @__PURE__ */ X(vi, {
|
|
6813
6814
|
items: x,
|
|
6814
|
-
icon:
|
|
6815
|
+
icon: Hs,
|
|
6815
6816
|
open: p,
|
|
6816
6817
|
onOpenChange: m,
|
|
6817
6818
|
align: "start",
|
|
6818
6819
|
children: /* @__PURE__ */ X(V, {
|
|
6819
|
-
icon:
|
|
6820
|
+
icon: Hs,
|
|
6820
6821
|
label: h("surveyFormBuilder.actions.actions"),
|
|
6821
6822
|
size: "md",
|
|
6822
6823
|
variant: "ghost",
|
|
@@ -6885,7 +6886,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6885
6886
|
o.start(e);
|
|
6886
6887
|
},
|
|
6887
6888
|
children: /* @__PURE__ */ X(H, {
|
|
6888
|
-
icon:
|
|
6889
|
+
icon: Gr,
|
|
6889
6890
|
size: "sm"
|
|
6890
6891
|
})
|
|
6891
6892
|
}) : null, /* @__PURE__ */ X(Wf, {
|
|
@@ -6915,7 +6916,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6915
6916
|
p || x.push({
|
|
6916
6917
|
type: "toggle",
|
|
6917
6918
|
label: l,
|
|
6918
|
-
icon:
|
|
6919
|
+
icon: Wa,
|
|
6919
6920
|
checked: !!r?.required,
|
|
6920
6921
|
onCheckedChange: m
|
|
6921
6922
|
});
|
|
@@ -6955,12 +6956,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6955
6956
|
selectedLabel: s === e ? t === "dropdown-multi" ? f : d : void 0,
|
|
6956
6957
|
children: [{
|
|
6957
6958
|
label: d,
|
|
6958
|
-
icon:
|
|
6959
|
+
icon: Bs,
|
|
6959
6960
|
onClick: () => h("dropdown-single", e),
|
|
6960
6961
|
selected: s === e && t === "dropdown-single"
|
|
6961
6962
|
}, {
|
|
6962
6963
|
label: f,
|
|
6963
|
-
icon:
|
|
6964
|
+
icon: ta,
|
|
6964
6965
|
onClick: () => h("dropdown-multi", e),
|
|
6965
6966
|
selected: s === e && t === "dropdown-multi"
|
|
6966
6967
|
}]
|
|
@@ -6974,16 +6975,16 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6974
6975
|
return x.push({
|
|
6975
6976
|
type: "submenu",
|
|
6976
6977
|
label: u,
|
|
6977
|
-
icon:
|
|
6978
|
+
icon: xi,
|
|
6978
6979
|
selectedLabel: E,
|
|
6979
6980
|
children: w
|
|
6980
6981
|
}), x.push({ type: "separator" }), x.push({
|
|
6981
6982
|
label: i,
|
|
6982
|
-
icon:
|
|
6983
|
+
icon: Bi,
|
|
6983
6984
|
onClick: y
|
|
6984
6985
|
}), n && x.push({
|
|
6985
6986
|
label: a,
|
|
6986
|
-
icon:
|
|
6987
|
+
icon: Oi,
|
|
6987
6988
|
onClick: b,
|
|
6988
6989
|
critical: !0
|
|
6989
6990
|
}), x;
|
|
@@ -7004,12 +7005,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7004
7005
|
return {
|
|
7005
7006
|
id: i,
|
|
7006
7007
|
label: t.title || n,
|
|
7007
|
-
icon:
|
|
7008
|
+
icon: Xr,
|
|
7008
7009
|
onClick: y,
|
|
7009
7010
|
...!h && !g && !t.locked && { otherActions: [
|
|
7010
7011
|
{
|
|
7011
7012
|
label: o,
|
|
7012
|
-
icon:
|
|
7013
|
+
icon: Bi,
|
|
7013
7014
|
onClick: () => m?.({
|
|
7014
7015
|
elementId: t.id,
|
|
7015
7016
|
type: "section"
|
|
@@ -7018,7 +7019,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7018
7019
|
{ type: "separator" },
|
|
7019
7020
|
{
|
|
7020
7021
|
label: s,
|
|
7021
|
-
icon:
|
|
7022
|
+
icon: Oi,
|
|
7022
7023
|
onClick: () => p(t.id),
|
|
7023
7024
|
critical: !0
|
|
7024
7025
|
}
|
|
@@ -7085,7 +7086,7 @@ function Zf(e, t) {
|
|
|
7085
7086
|
return i;
|
|
7086
7087
|
}
|
|
7087
7088
|
var Qf = ({ elements: e, onChange: t, answering: n }) => {
|
|
7088
|
-
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(No), s = Jf(e, {
|
|
7089
7090
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
7090
7091
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
7091
7092
|
duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -7533,7 +7534,7 @@ function _p({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7533
7534
|
s || a === "multi-select" && e.target.closest("input") || p(t.value);
|
|
7534
7535
|
},
|
|
7535
7536
|
children: [
|
|
7536
|
-
a === "multi-select" ? /* @__PURE__ */ X(
|
|
7537
|
+
a === "multi-select" ? /* @__PURE__ */ X(ns, {
|
|
7537
7538
|
title: t.label,
|
|
7538
7539
|
checked: !!n,
|
|
7539
7540
|
onCheckedChange: () => f(t.value),
|
|
@@ -7546,7 +7547,7 @@ function _p({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7546
7547
|
u ? /* @__PURE__ */ X("div", {
|
|
7547
7548
|
className: "min-h-8 p-1",
|
|
7548
7549
|
children: /* @__PURE__ */ X(H, {
|
|
7549
|
-
icon: t.correct ?
|
|
7550
|
+
icon: t.correct ? Li : Ni,
|
|
7550
7551
|
color: t.correct ? "positive" : "critical",
|
|
7551
7552
|
"aria-hidden": !0
|
|
7552
7553
|
})
|
|
@@ -7568,7 +7569,7 @@ var vp = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, yp = () => ({
|
|
|
7568
7569
|
status: "idle"
|
|
7569
7570
|
});
|
|
7570
7571
|
function bp(e, t) {
|
|
7571
|
-
return
|
|
7572
|
+
return Ea().optional().superRefine((n, r) => {
|
|
7572
7573
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7573
7574
|
code: "custom",
|
|
7574
7575
|
message: t("forms.validation.required")
|
|
@@ -7576,7 +7577,7 @@ function bp(e, t) {
|
|
|
7576
7577
|
});
|
|
7577
7578
|
}
|
|
7578
7579
|
function xp(e, t) {
|
|
7579
|
-
return
|
|
7580
|
+
return Ea().optional().superRefine((n, r) => {
|
|
7580
7581
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7581
7582
|
code: "custom",
|
|
7582
7583
|
message: t("forms.validation.required")
|
|
@@ -7587,7 +7588,7 @@ function xp(e, t) {
|
|
|
7587
7588
|
});
|
|
7588
7589
|
}
|
|
7589
7590
|
function Sp(e, t) {
|
|
7590
|
-
return
|
|
7591
|
+
return La().optional().superRefine((n, r) => {
|
|
7591
7592
|
e && n == null && r.addIssue({
|
|
7592
7593
|
code: "custom",
|
|
7593
7594
|
message: t("forms.validation.required")
|
|
@@ -7595,7 +7596,7 @@ function Sp(e, t) {
|
|
|
7595
7596
|
});
|
|
7596
7597
|
}
|
|
7597
7598
|
function Cp(e, t) {
|
|
7598
|
-
return
|
|
7599
|
+
return gi(Ea()).optional().superRefine((n, r) => {
|
|
7599
7600
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7600
7601
|
code: "custom",
|
|
7601
7602
|
message: t("forms.validation.required")
|
|
@@ -7603,7 +7604,7 @@ function Cp(e, t) {
|
|
|
7603
7604
|
});
|
|
7604
7605
|
}
|
|
7605
7606
|
function wp(e, t) {
|
|
7606
|
-
return
|
|
7607
|
+
return qi().optional().superRefine((n, r) => {
|
|
7607
7608
|
e && !n && r.addIssue({
|
|
7608
7609
|
code: "custom",
|
|
7609
7610
|
message: t("forms.validation.required")
|
|
@@ -7612,7 +7613,7 @@ function wp(e, t) {
|
|
|
7612
7613
|
}
|
|
7613
7614
|
var Tp = Cp;
|
|
7614
7615
|
function Ep(e, t) {
|
|
7615
|
-
return
|
|
7616
|
+
return Ur().optional().superRefine((n, r) => {
|
|
7616
7617
|
e && !n && r.addIssue({
|
|
7617
7618
|
code: "custom",
|
|
7618
7619
|
message: t("forms.validation.required")
|
|
@@ -7665,7 +7666,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7665
7666
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7666
7667
|
disabled: i
|
|
7667
7668
|
};
|
|
7668
|
-
return
|
|
7669
|
+
return ra(bp(!!e.required, t), {
|
|
7669
7670
|
...l,
|
|
7670
7671
|
fieldType: "custom",
|
|
7671
7672
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7693,7 +7694,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7693
7694
|
rows: 4,
|
|
7694
7695
|
disabled: i
|
|
7695
7696
|
};
|
|
7696
|
-
return
|
|
7697
|
+
return ra(bp(!!e.required, t), {
|
|
7697
7698
|
...l,
|
|
7698
7699
|
fieldType: "custom",
|
|
7699
7700
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7720,7 +7721,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7720
7721
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7721
7722
|
disabled: i
|
|
7722
7723
|
};
|
|
7723
|
-
return
|
|
7724
|
+
return ra(Sp(!!e.required, t), {
|
|
7724
7725
|
...l,
|
|
7725
7726
|
fieldType: "custom",
|
|
7726
7727
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7748,7 +7749,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7748
7749
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7749
7750
|
disabled: i
|
|
7750
7751
|
};
|
|
7751
|
-
return
|
|
7752
|
+
return ra(xp(!!e.required, t), {
|
|
7752
7753
|
...l,
|
|
7753
7754
|
fieldType: "custom",
|
|
7754
7755
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7775,7 +7776,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7775
7776
|
clearable: !e.required,
|
|
7776
7777
|
disabled: i
|
|
7777
7778
|
};
|
|
7778
|
-
return
|
|
7779
|
+
return ra(wp(!!e.required, t), {
|
|
7779
7780
|
...l,
|
|
7780
7781
|
fieldType: "custom",
|
|
7781
7782
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7811,7 +7812,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7811
7812
|
showSearchBox: r,
|
|
7812
7813
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7813
7814
|
};
|
|
7814
|
-
return
|
|
7815
|
+
return ra(bp(!!e.required, t), {
|
|
7815
7816
|
...l,
|
|
7816
7817
|
fieldType: "custom",
|
|
7817
7818
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7860,7 +7861,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7860
7861
|
showSearchBox: r,
|
|
7861
7862
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7862
7863
|
};
|
|
7863
|
-
return
|
|
7864
|
+
return ra(Cp(!!e.required, t), {
|
|
7864
7865
|
...l,
|
|
7865
7866
|
fieldType: "custom",
|
|
7866
7867
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7887,7 +7888,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7887
7888
|
disabled: i,
|
|
7888
7889
|
showAnswerValidation: r
|
|
7889
7890
|
};
|
|
7890
|
-
return
|
|
7891
|
+
return ra(bp(!!e.required, t), {
|
|
7891
7892
|
...l,
|
|
7892
7893
|
fieldType: "custom",
|
|
7893
7894
|
fieldConfig: n,
|
|
@@ -7910,7 +7911,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7910
7911
|
disabled: i,
|
|
7911
7912
|
showAnswerValidation: r
|
|
7912
7913
|
};
|
|
7913
|
-
return
|
|
7914
|
+
return ra(Cp(!!e.required, t), {
|
|
7914
7915
|
...l,
|
|
7915
7916
|
fieldType: "custom",
|
|
7916
7917
|
fieldConfig: n,
|
|
@@ -7932,7 +7933,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7932
7933
|
maxLabel: n.maxLabel,
|
|
7933
7934
|
disabled: i
|
|
7934
7935
|
};
|
|
7935
|
-
return
|
|
7936
|
+
return ra(Sp(!!e.required, t), {
|
|
7936
7937
|
...l,
|
|
7937
7938
|
fieldType: "custom",
|
|
7938
7939
|
fieldConfig: r,
|
|
@@ -7958,7 +7959,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7958
7959
|
useUpload: r ?? yp,
|
|
7959
7960
|
disabled: i || !r
|
|
7960
7961
|
};
|
|
7961
|
-
return
|
|
7962
|
+
return ra(Tp(!!e.required, t), {
|
|
7962
7963
|
...l,
|
|
7963
7964
|
fieldType: "custom",
|
|
7964
7965
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -7984,7 +7985,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7984
7985
|
label: n.label || c,
|
|
7985
7986
|
disabled: i
|
|
7986
7987
|
};
|
|
7987
|
-
return
|
|
7988
|
+
return ra(Ep(!!e.required, t), {
|
|
7988
7989
|
...l,
|
|
7989
7990
|
fieldType: "custom",
|
|
7990
7991
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Sf, {
|
|
@@ -8003,7 +8004,7 @@ function jp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8003
8004
|
})
|
|
8004
8005
|
});
|
|
8005
8006
|
}
|
|
8006
|
-
default: return
|
|
8007
|
+
default: return ra(ia(), {
|
|
8007
8008
|
...l,
|
|
8008
8009
|
fieldType: "custom",
|
|
8009
8010
|
render: () => null
|
|
@@ -8044,7 +8045,7 @@ function Mp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8044
8045
|
}), f[e.id] = a?.[e.id] ?? Dp(e, r);
|
|
8045
8046
|
}
|
|
8046
8047
|
return {
|
|
8047
|
-
schema:
|
|
8048
|
+
schema: ga(d),
|
|
8048
8049
|
defaultValues: f,
|
|
8049
8050
|
flatQuestions: m,
|
|
8050
8051
|
sections: p
|
|
@@ -8149,12 +8150,12 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8149
8150
|
]);
|
|
8150
8151
|
let ve = u && !h ? [{
|
|
8151
8152
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8152
|
-
icon: C ?
|
|
8153
|
+
icon: C ? Ma : fa,
|
|
8153
8154
|
onClick: () => w((e) => !e)
|
|
8154
8155
|
}] : void 0, ye = M ? h || F ? void 0 : ee ? P && !j.isLastStep ? {
|
|
8155
8156
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8156
8157
|
onClick: j.goToNext,
|
|
8157
|
-
icon:
|
|
8158
|
+
icon: Pi
|
|
8158
8159
|
} : {
|
|
8159
8160
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8160
8161
|
onClick: Np,
|
|
@@ -8162,7 +8163,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8162
8163
|
} : P && !j.isLastStep ? {
|
|
8163
8164
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8164
8165
|
onClick: me,
|
|
8165
|
-
icon:
|
|
8166
|
+
icon: Pi
|
|
8166
8167
|
} : {
|
|
8167
8168
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8168
8169
|
onClick: me,
|
|
@@ -8171,9 +8172,9 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8171
8172
|
} : void 0, be = M ? h || F ? void 0 : P && !j.isFirstStep ? {
|
|
8172
8173
|
label: b("surveyAnsweringForm.actions.previous"),
|
|
8173
8174
|
onClick: he,
|
|
8174
|
-
icon:
|
|
8175
|
+
icon: Uo
|
|
8175
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";
|
|
8176
|
-
return /* @__PURE__ */ X(
|
|
8177
|
+
return /* @__PURE__ */ X(Qi, {
|
|
8177
8178
|
isOpen: o,
|
|
8178
8179
|
onClose: s,
|
|
8179
8180
|
title: r,
|
|
@@ -8199,7 +8200,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8199
8200
|
}) : null,
|
|
8200
8201
|
Se ? /* @__PURE__ */ X("div", {
|
|
8201
8202
|
className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
|
|
8202
|
-
children: /* @__PURE__ */ X(
|
|
8203
|
+
children: /* @__PURE__ */ X(Rs, {
|
|
8203
8204
|
label: "Value",
|
|
8204
8205
|
value: j.progress,
|
|
8205
8206
|
hideLabel: !0
|
|
@@ -8216,7 +8217,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8216
8217
|
...a
|
|
8217
8218
|
})
|
|
8218
8219
|
}),
|
|
8219
|
-
h ? X(n === "stepped" ? pp : fp, {}) : M ? null : /* @__PURE__ */ X(
|
|
8220
|
+
h ? X(n === "stepped" ? pp : fp, {}) : M ? null : /* @__PURE__ */ X(ao, {
|
|
8220
8221
|
display: "flex",
|
|
8221
8222
|
flexDirection: "column",
|
|
8222
8223
|
height: "full",
|
|
@@ -8295,7 +8296,7 @@ function Rp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
8295
8296
|
hideActionBar: !0
|
|
8296
8297
|
},
|
|
8297
8298
|
sections: _
|
|
8298
|
-
}) : /* @__PURE__ */ X(
|
|
8299
|
+
}) : /* @__PURE__ */ X(ao, {
|
|
8299
8300
|
display: "flex",
|
|
8300
8301
|
flexDirection: "column",
|
|
8301
8302
|
justifyContent: "center",
|
|
@@ -8313,7 +8314,7 @@ function Rp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
8313
8314
|
//#endregion
|
|
8314
8315
|
//#region src/domains/talent/surveys/surveys/SurveySampleQuestion/SurveySampleQuestion.tsx
|
|
8315
8316
|
function zp(e) {
|
|
8316
|
-
return /* @__PURE__ */ Z(
|
|
8317
|
+
return /* @__PURE__ */ Z(ao, {
|
|
8317
8318
|
display: "flex",
|
|
8318
8319
|
flexDirection: "column",
|
|
8319
8320
|
gap: "lg",
|
|
@@ -8331,21 +8332,21 @@ function zp(e) {
|
|
|
8331
8332
|
});
|
|
8332
8333
|
}
|
|
8333
8334
|
function Bp({ steps: e, minLabel: t, maxLabel: n }) {
|
|
8334
|
-
return /* @__PURE__ */ Z(
|
|
8335
|
+
return /* @__PURE__ */ Z(ao, {
|
|
8335
8336
|
display: "flex",
|
|
8336
8337
|
flexDirection: "column",
|
|
8337
8338
|
gap: "sm",
|
|
8338
|
-
children: [/* @__PURE__ */ X(
|
|
8339
|
+
children: [/* @__PURE__ */ X(ao, {
|
|
8339
8340
|
display: "grid",
|
|
8340
8341
|
columns: String(e),
|
|
8341
8342
|
gap: "sm",
|
|
8342
|
-
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(
|
|
8343
|
+
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(ao, {
|
|
8343
8344
|
height: "8",
|
|
8344
8345
|
border: "default",
|
|
8345
8346
|
borderRadius: "md",
|
|
8346
8347
|
background: "primary"
|
|
8347
8348
|
}, t))
|
|
8348
|
-
}), t || n ? /* @__PURE__ */ Z(
|
|
8349
|
+
}), t || n ? /* @__PURE__ */ Z(ao, {
|
|
8349
8350
|
display: "flex",
|
|
8350
8351
|
justifyContent: "between",
|
|
8351
8352
|
alignItems: "center",
|
|
@@ -8360,11 +8361,11 @@ function Bp({ steps: e, minLabel: t, maxLabel: n }) {
|
|
|
8360
8361
|
});
|
|
8361
8362
|
}
|
|
8362
8363
|
function Vp({ options: e }) {
|
|
8363
|
-
return /* @__PURE__ */ X(
|
|
8364
|
+
return /* @__PURE__ */ X(ao, {
|
|
8364
8365
|
display: "flex",
|
|
8365
8366
|
flexDirection: "column",
|
|
8366
8367
|
gap: "md",
|
|
8367
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
8368
|
+
children: e.map((e) => /* @__PURE__ */ Z(ao, {
|
|
8368
8369
|
display: "flex",
|
|
8369
8370
|
alignItems: "center",
|
|
8370
8371
|
gap: "md",
|
|
@@ -8373,7 +8374,7 @@ function Vp({ options: e }) {
|
|
|
8373
8374
|
border: "default",
|
|
8374
8375
|
borderRadius: "md",
|
|
8375
8376
|
background: "primary",
|
|
8376
|
-
children: [/* @__PURE__ */ X(
|
|
8377
|
+
children: [/* @__PURE__ */ X(ao, {
|
|
8377
8378
|
shrink: !1,
|
|
8378
8379
|
width: "4",
|
|
8379
8380
|
height: "4",
|
|
@@ -8394,7 +8395,7 @@ var Hp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
8394
8395
|
}), Up = ({ text: e }) => /* @__PURE__ */ Z("div", {
|
|
8395
8396
|
className: "flex flex-row items-start gap-2",
|
|
8396
8397
|
children: [/* @__PURE__ */ X(H, {
|
|
8397
|
-
icon:
|
|
8398
|
+
icon: Vs,
|
|
8398
8399
|
size: "md",
|
|
8399
8400
|
className: "text-f1-icon-positive"
|
|
8400
8401
|
}), /* @__PURE__ */ X("span", { children: e })]
|
|
@@ -8417,17 +8418,17 @@ var Hp = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
8417
8418
|
children: [
|
|
8418
8419
|
/* @__PURE__ */ Z("div", {
|
|
8419
8420
|
className: "flex flex-row items-center gap-2",
|
|
8420
|
-
children: [a ? /* @__PURE__ */ X(
|
|
8421
|
+
children: [a ? /* @__PURE__ */ X(ho, { module: a }) : null, o ? /* @__PURE__ */ X("p", {
|
|
8421
8422
|
className: "text-base font-medium text-f1-foreground",
|
|
8422
8423
|
children: o
|
|
8423
8424
|
}) : null]
|
|
8424
8425
|
}),
|
|
8425
8426
|
s || c ? /* @__PURE__ */ Z("div", {
|
|
8426
8427
|
className: "flex justify-start gap-2",
|
|
8427
|
-
children: [s ? /* @__PURE__ */ X(
|
|
8428
|
+
children: [s ? /* @__PURE__ */ X(Eo, {
|
|
8428
8429
|
icon: s.icon,
|
|
8429
8430
|
text: s.label
|
|
8430
|
-
}) : null, c ? /* @__PURE__ */ X(
|
|
8431
|
+
}) : null, c ? /* @__PURE__ */ X(Ms, {
|
|
8431
8432
|
variant: c.variant || "positive",
|
|
8432
8433
|
text: c.label
|
|
8433
8434
|
}) : null]
|
|
@@ -8452,33 +8453,33 @@ function Kp({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8452
8453
|
let [o, s] = J(e);
|
|
8453
8454
|
return G(() => {
|
|
8454
8455
|
s(e);
|
|
8455
|
-
}, [e]), /* @__PURE__ */ X(
|
|
8456
|
+
}, [e]), /* @__PURE__ */ X(Si, {
|
|
8456
8457
|
open: o,
|
|
8457
8458
|
onOpenChange: (e) => {
|
|
8458
8459
|
s(e), e || t();
|
|
8459
8460
|
},
|
|
8460
8461
|
modal: !0,
|
|
8461
|
-
children: /* @__PURE__ */ Z(
|
|
8462
|
+
children: /* @__PURE__ */ Z(ri, {
|
|
8462
8463
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8463
8464
|
container: a,
|
|
8464
8465
|
children: [/* @__PURE__ */ Z("div", {
|
|
8465
8466
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
8466
|
-
children: [/* @__PURE__ */ Z(
|
|
8467
|
+
children: [/* @__PURE__ */ Z(Ti, {
|
|
8467
8468
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
8468
|
-
children: [i ? /* @__PURE__ */ X(
|
|
8469
|
+
children: [i ? /* @__PURE__ */ X(ho, {
|
|
8469
8470
|
module: i,
|
|
8470
8471
|
size: "md"
|
|
8471
8472
|
}) : null, n]
|
|
8472
8473
|
}), /* @__PURE__ */ X(Zn, {
|
|
8473
8474
|
variant: "outline",
|
|
8474
|
-
icon:
|
|
8475
|
+
icon: Ni,
|
|
8475
8476
|
onClick: t,
|
|
8476
8477
|
label: "Close modal",
|
|
8477
8478
|
hideLabel: !0
|
|
8478
8479
|
})]
|
|
8479
|
-
}), /* @__PURE__ */ Z(
|
|
8480
|
+
}), /* @__PURE__ */ Z(oc, {
|
|
8480
8481
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
8481
|
-
children: [r, /* @__PURE__ */ X(
|
|
8482
|
+
children: [r, /* @__PURE__ */ X(sc, {
|
|
8482
8483
|
orientation: "vertical",
|
|
8483
8484
|
className: "[&_div]:bg-f1-background"
|
|
8484
8485
|
})]
|
|
@@ -8561,14 +8562,14 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8561
8562
|
o && o(!l);
|
|
8562
8563
|
}, [o, l]);
|
|
8563
8564
|
let f = e?.includes(".mp4");
|
|
8564
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
8565
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(hi, {
|
|
8565
8566
|
style: { width: a },
|
|
8566
8567
|
className: "relative bg-f1-background p-1",
|
|
8567
|
-
children: [/* @__PURE__ */ Z(
|
|
8568
|
+
children: [/* @__PURE__ */ Z(Ki, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8568
8569
|
className: "absolute right-2 top-2 z-10",
|
|
8569
8570
|
children: /* @__PURE__ */ X(V, {
|
|
8570
8571
|
variant: "ghost",
|
|
8571
|
-
icon:
|
|
8572
|
+
icon: Ni,
|
|
8572
8573
|
size: "sm",
|
|
8573
8574
|
hideLabel: !0,
|
|
8574
8575
|
onClick: d,
|
|
@@ -8594,7 +8595,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8594
8595
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8595
8596
|
children: n
|
|
8596
8597
|
})]
|
|
8597
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8598
|
+
})] })] }), s ? /* @__PURE__ */ X(Ia, {
|
|
8598
8599
|
className: "p-3",
|
|
8599
8600
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(S, {
|
|
8600
8601
|
label: e.label,
|
|
@@ -8617,7 +8618,7 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8617
8618
|
var Xp = L(Yp), Zp = ({ onDismiss: e }) => {
|
|
8618
8619
|
let { actions: t } = R();
|
|
8619
8620
|
return /* @__PURE__ */ X(V, {
|
|
8620
|
-
icon:
|
|
8621
|
+
icon: Ni,
|
|
8621
8622
|
label: t.close,
|
|
8622
8623
|
hideLabel: !0,
|
|
8623
8624
|
variant: "outline",
|
|
@@ -8708,7 +8709,7 @@ em.displayName = "UpsellingBanner";
|
|
|
8708
8709
|
var tm = L(em);
|
|
8709
8710
|
//#endregion
|
|
8710
8711
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
8711
|
-
function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
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 = Zi, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
8712
8713
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8713
8714
|
t(e), h && h();
|
|
8714
8715
|
}, w = async (e) => {
|
|
@@ -8726,10 +8727,10 @@ function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8726
8727
|
...e,
|
|
8727
8728
|
onClick: () => w(e)
|
|
8728
8729
|
} : e);
|
|
8729
|
-
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(
|
|
8730
|
+
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(ic, {
|
|
8730
8731
|
open: E,
|
|
8731
8732
|
onOpenChange: C,
|
|
8732
|
-
children: [/* @__PURE__ */ X(
|
|
8733
|
+
children: [/* @__PURE__ */ X($s, {
|
|
8733
8734
|
asChild: !0,
|
|
8734
8735
|
children: /* @__PURE__ */ X(V, {
|
|
8735
8736
|
variant: r,
|
|
@@ -8739,7 +8740,7 @@ function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8739
8740
|
onClick: () => t(e),
|
|
8740
8741
|
hideLabel: g
|
|
8741
8742
|
})
|
|
8742
|
-
}), /* @__PURE__ */ X(
|
|
8743
|
+
}), /* @__PURE__ */ X(tc, {
|
|
8743
8744
|
side: o,
|
|
8744
8745
|
align: s,
|
|
8745
8746
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -8768,9 +8769,9 @@ function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8768
8769
|
}
|
|
8769
8770
|
var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
8770
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);
|
|
8771
|
-
return /* @__PURE__ */ Z(
|
|
8772
|
+
return /* @__PURE__ */ Z(hi, {
|
|
8772
8773
|
className: "flex flex-col overflow-hidden",
|
|
8773
|
-
children: [/* @__PURE__ */ Z(
|
|
8774
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8774
8775
|
className: "flex flex-col gap-4 p-0",
|
|
8775
8776
|
children: [/* @__PURE__ */ X("div", {
|
|
8776
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"),
|
|
@@ -8785,7 +8786,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8785
8786
|
children: n
|
|
8786
8787
|
})]
|
|
8787
8788
|
})]
|
|
8788
|
-
}), /* @__PURE__ */ X(
|
|
8789
|
+
}), /* @__PURE__ */ X(Ia, {
|
|
8789
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",
|
|
8790
8791
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8791
8792
|
variant: "default",
|
|
@@ -8816,7 +8817,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8816
8817
|
}), /* @__PURE__ */ X("span", {
|
|
8817
8818
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
8818
8819
|
children: /* @__PURE__ */ X(H, {
|
|
8819
|
-
icon: t ?
|
|
8820
|
+
icon: t ? io : Fs,
|
|
8820
8821
|
size: "sm",
|
|
8821
8822
|
className: B("transition-transform duration-200", t && "text-f1-foreground")
|
|
8822
8823
|
})
|
|
@@ -8832,7 +8833,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8832
8833
|
})
|
|
8833
8834
|
})]
|
|
8834
8835
|
}), om = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
8835
|
-
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 ?? Ja, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8836
8837
|
u,
|
|
8837
8838
|
r,
|
|
8838
8839
|
c
|
|
@@ -8847,9 +8848,9 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8847
8848
|
i,
|
|
8848
8849
|
a
|
|
8849
8850
|
]);
|
|
8850
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
8851
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(hi, {
|
|
8851
8852
|
className: "flex flex-col overflow-hidden",
|
|
8852
|
-
children: [/* @__PURE__ */ Z(
|
|
8853
|
+
children: [/* @__PURE__ */ Z(ha, {
|
|
8853
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",
|
|
8854
8855
|
children: [/* @__PURE__ */ X("div", {
|
|
8855
8856
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8862,7 +8863,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8862
8863
|
className: "text-base font-semibold text-f1-foreground",
|
|
8863
8864
|
children: o
|
|
8864
8865
|
})]
|
|
8865
|
-
}), /* @__PURE__ */ X(
|
|
8866
|
+
}), /* @__PURE__ */ X(Ki, {
|
|
8866
8867
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8867
8868
|
children: t.map((e) => /* @__PURE__ */ X(am, {
|
|
8868
8869
|
item: e,
|
|
@@ -8873,13 +8874,13 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8873
8874
|
});
|
|
8874
8875
|
}, sm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
8875
8876
|
let a = R()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8876
|
-
return /* @__PURE__ */ Z(
|
|
8877
|
+
return /* @__PURE__ */ Z(hi, {
|
|
8877
8878
|
className: "flex flex-col overflow-hidden",
|
|
8878
|
-
children: [/* @__PURE__ */ X(
|
|
8879
|
+
children: [/* @__PURE__ */ X(Ki, {
|
|
8879
8880
|
className: "flex flex-col gap-3 p-0",
|
|
8880
8881
|
children: /* @__PURE__ */ Z("div", {
|
|
8881
8882
|
className: "flex items-start gap-3",
|
|
8882
|
-
children: [/* @__PURE__ */ X(
|
|
8883
|
+
children: [/* @__PURE__ */ X(uo, {
|
|
8883
8884
|
avatar: {
|
|
8884
8885
|
type: "company",
|
|
8885
8886
|
name: e || "",
|
|
@@ -8897,7 +8898,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8897
8898
|
})]
|
|
8898
8899
|
})]
|
|
8899
8900
|
})
|
|
8900
|
-
}), /* @__PURE__ */ X(
|
|
8901
|
+
}), /* @__PURE__ */ X(Ia, {
|
|
8901
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",
|
|
8902
8903
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8903
8904
|
variant: "outline",
|
|
@@ -8915,12 +8916,12 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8915
8916
|
});
|
|
8916
8917
|
}, cm = ({ onAction: e, actionHref: t }) => {
|
|
8917
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";
|
|
8918
|
-
return /* @__PURE__ */ Z(
|
|
8919
|
+
return /* @__PURE__ */ Z(hi, {
|
|
8919
8920
|
className: "flex flex-col overflow-hidden",
|
|
8920
|
-
children: [/* @__PURE__ */ Z(
|
|
8921
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8921
8922
|
className: "flex flex-col gap-3 p-0",
|
|
8922
8923
|
children: [/* @__PURE__ */ X(H, {
|
|
8923
|
-
icon:
|
|
8924
|
+
icon: Ji,
|
|
8924
8925
|
size: "lg"
|
|
8925
8926
|
}), /* @__PURE__ */ Z("div", {
|
|
8926
8927
|
className: "flex flex-col gap-0.5",
|
|
@@ -8932,7 +8933,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8932
8933
|
children: i
|
|
8933
8934
|
})]
|
|
8934
8935
|
})]
|
|
8935
|
-
}), /* @__PURE__ */ X(
|
|
8936
|
+
}), /* @__PURE__ */ X(Ia, {
|
|
8936
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",
|
|
8937
8938
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8938
8939
|
variant: "default",
|
|
@@ -8978,9 +8979,9 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8978
8979
|
e,
|
|
8979
8980
|
t
|
|
8980
8981
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
8981
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
8982
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(hi, {
|
|
8982
8983
|
className: "flex flex-col overflow-hidden",
|
|
8983
|
-
children: [/* @__PURE__ */ Z(
|
|
8984
|
+
children: [/* @__PURE__ */ Z(Ki, {
|
|
8984
8985
|
className: "flex flex-col gap-4",
|
|
8985
8986
|
children: [/* @__PURE__ */ X("h3", {
|
|
8986
8987
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -8989,7 +8990,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8989
8990
|
className: "flex flex-col gap-3",
|
|
8990
8991
|
children: d.options.map((e) => /* @__PURE__ */ X("div", {
|
|
8991
8992
|
className: "flex items-center gap-2.5",
|
|
8992
|
-
children: /* @__PURE__ */ X(
|
|
8993
|
+
children: /* @__PURE__ */ X(ns, {
|
|
8993
8994
|
id: e.id,
|
|
8994
8995
|
title: e.label,
|
|
8995
8996
|
checked: f.includes(e.id),
|
|
@@ -8997,7 +8998,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8997
8998
|
})
|
|
8998
8999
|
}, e.id))
|
|
8999
9000
|
})]
|
|
9000
|
-
}), /* @__PURE__ */ Z(
|
|
9001
|
+
}), /* @__PURE__ */ Z(Ia, {
|
|
9001
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",
|
|
9002
9003
|
children: [/* @__PURE__ */ X("div", {
|
|
9003
9004
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9009,7 +9010,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9009
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",
|
|
9010
9011
|
"aria-label": "Previous",
|
|
9011
9012
|
children: /* @__PURE__ */ X(H, {
|
|
9012
|
-
icon:
|
|
9013
|
+
icon: Vo,
|
|
9013
9014
|
size: "sm"
|
|
9014
9015
|
})
|
|
9015
9016
|
}),
|
|
@@ -9028,7 +9029,7 @@ var rm = L(nm), im = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9028
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",
|
|
9029
9030
|
"aria-label": "Next",
|
|
9030
9031
|
children: /* @__PURE__ */ X(H, {
|
|
9031
|
-
icon:
|
|
9032
|
+
icon: Fs,
|
|
9032
9033
|
size: "sm"
|
|
9033
9034
|
})
|
|
9034
9035
|
})
|
|
@@ -9461,7 +9462,7 @@ function Wm(e, t) {
|
|
|
9461
9462
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9462
9463
|
}
|
|
9463
9464
|
async function Gm(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9464
|
-
Wm(await
|
|
9465
|
+
Wm(await qa([{
|
|
9465
9466
|
name: "Data",
|
|
9466
9467
|
rows: Hm({
|
|
9467
9468
|
columns: e,
|
|
@@ -9483,7 +9484,7 @@ function qm(e, t, n) {
|
|
|
9483
9484
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9484
9485
|
}
|
|
9485
9486
|
async function Jm(e, t) {
|
|
9486
|
-
Wm(await
|
|
9487
|
+
Wm(await qa(e.map((e) => ({
|
|
9487
9488
|
name: e.name,
|
|
9488
9489
|
rows: Hm(e)
|
|
9489
9490
|
}))), `${t}.xlsx`);
|
|
@@ -9544,23 +9545,23 @@ function Zm({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9544
9545
|
return K(() => n ? [
|
|
9545
9546
|
{
|
|
9546
9547
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9547
|
-
icon:
|
|
9548
|
+
icon: Ka,
|
|
9548
9549
|
onClick: () => a("png")
|
|
9549
9550
|
},
|
|
9550
9551
|
{
|
|
9551
9552
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9552
|
-
icon:
|
|
9553
|
+
icon: Ka,
|
|
9553
9554
|
onClick: () => a("jpg")
|
|
9554
9555
|
},
|
|
9555
9556
|
{ type: "separator" },
|
|
9556
9557
|
{
|
|
9557
9558
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9558
|
-
icon: $
|
|
9559
|
+
icon: $r,
|
|
9559
9560
|
onClick: s
|
|
9560
9561
|
},
|
|
9561
9562
|
{
|
|
9562
9563
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9563
|
-
icon: $
|
|
9564
|
+
icon: $r,
|
|
9564
9565
|
onClick: c
|
|
9565
9566
|
}
|
|
9566
9567
|
] : [], [
|
|
@@ -9618,7 +9619,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9618
9619
|
}, [h, d]), G(() => {
|
|
9619
9620
|
l || m(t);
|
|
9620
9621
|
}, [l, t]);
|
|
9621
|
-
let v = Sc(
|
|
9622
|
+
let v = Sc(No), y = v.portalContainer && (v.position === "center" || v.position === "fullscreen") ? v.portalContainer : void 0, b = K(() => ps(e, t, i), [
|
|
9622
9623
|
e,
|
|
9623
9624
|
t,
|
|
9624
9625
|
i
|
|
@@ -9647,18 +9648,18 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9647
9648
|
let e = o.current?.querySelector("[aria-invalid=\"true\"]");
|
|
9648
9649
|
e ? e.focus() : f(null);
|
|
9649
9650
|
};
|
|
9650
|
-
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(
|
|
9651
|
+
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(ic, {
|
|
9651
9652
|
open: l,
|
|
9652
9653
|
onOpenChange: (e) => {
|
|
9653
9654
|
u(e), r?.(e), !e && (f(null), m(t));
|
|
9654
9655
|
},
|
|
9655
9656
|
modal: !1,
|
|
9656
9657
|
children: [
|
|
9657
|
-
/* @__PURE__ */ X(
|
|
9658
|
+
/* @__PURE__ */ X($s, {
|
|
9658
9659
|
asChild: !0,
|
|
9659
9660
|
children: /* @__PURE__ */ X(Zn, {
|
|
9660
9661
|
label: i.filters.label,
|
|
9661
|
-
icon:
|
|
9662
|
+
icon: as,
|
|
9662
9663
|
variant: "ghost",
|
|
9663
9664
|
size: "md",
|
|
9664
9665
|
hideLabel: !0,
|
|
@@ -9681,7 +9682,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9681
9682
|
")"
|
|
9682
9683
|
]
|
|
9683
9684
|
}) : null,
|
|
9684
|
-
/* @__PURE__ */ X(
|
|
9685
|
+
/* @__PURE__ */ X(tc, {
|
|
9685
9686
|
ref: o,
|
|
9686
9687
|
"aria-label": i.filters.label,
|
|
9687
9688
|
className: "w-[380px] max-w-[calc(100vw-1rem)] rounded-xl border border-solid border-f1-border-secondary p-0 shadow-md",
|
|
@@ -9695,7 +9696,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9695
9696
|
className: "flex shrink-0 items-center gap-2 py-1.5 pl-1.5 pr-3",
|
|
9696
9697
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(V, {
|
|
9697
9698
|
label: i.filters.availableFilters,
|
|
9698
|
-
icon:
|
|
9699
|
+
icon: Uo,
|
|
9699
9700
|
hideLabel: !0,
|
|
9700
9701
|
variant: "ghost",
|
|
9701
9702
|
size: "sm",
|
|
@@ -9711,7 +9712,7 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9711
9712
|
className: "flex min-h-0 flex-1 flex-col",
|
|
9712
9713
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
9713
9714
|
className: "min-h-0 flex-1 overflow-y-auto border-0 border-t border-solid border-f1-border-secondary",
|
|
9714
|
-
children: /* @__PURE__ */ X(
|
|
9715
|
+
children: /* @__PURE__ */ X(ts, {
|
|
9715
9716
|
selectedFilterKey: g,
|
|
9716
9717
|
definition: e,
|
|
9717
9718
|
tempFilters: p,
|
|
@@ -9729,13 +9730,13 @@ function $m({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9729
9730
|
onClick: w,
|
|
9730
9731
|
label: i.filters.applySelection
|
|
9731
9732
|
})
|
|
9732
|
-
})] }) : /* @__PURE__ */ X(
|
|
9733
|
+
})] }) : /* @__PURE__ */ X(ws, {
|
|
9733
9734
|
definition: _,
|
|
9734
9735
|
tempFilters: p,
|
|
9735
9736
|
selectedFilterKey: g,
|
|
9736
9737
|
onFilterSelect: C,
|
|
9737
9738
|
onClickApplyFilters: () => {
|
|
9738
|
-
n(
|
|
9739
|
+
n(Qo(e, p, i)), u(!1), r?.(!1), f(null);
|
|
9739
9740
|
},
|
|
9740
9741
|
isCompactMode: !0
|
|
9741
9742
|
})
|
|
@@ -9790,7 +9791,7 @@ function nh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9790
9791
|
//#endregion
|
|
9791
9792
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9792
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 }) {
|
|
9793
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
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 } = wi(), ee = (e) => {
|
|
9794
9795
|
T(e), e || A(!1);
|
|
9795
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({
|
|
9796
9797
|
title: e,
|
|
@@ -9814,11 +9815,11 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9814
9815
|
}), N(t), P(!0);
|
|
9815
9816
|
}, ge = (e) => {
|
|
9816
9817
|
O.current && (O.current = !1, F() && e.preventDefault());
|
|
9817
|
-
}, _e = oe ? /* @__PURE__ */ X(
|
|
9818
|
+
}, _e = oe ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(Ys, {
|
|
9818
9819
|
onClick: he,
|
|
9819
9820
|
children: /* @__PURE__ */ Z("div", {
|
|
9820
9821
|
className: "flex w-full flex-row items-center gap-2",
|
|
9821
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9822
|
+
children: [/* @__PURE__ */ X(H, { icon: ba }), /* @__PURE__ */ X("span", {
|
|
9822
9823
|
className: "flex-1",
|
|
9823
9824
|
children: j.ai.dashboardItem.askOne
|
|
9824
9825
|
})]
|
|
@@ -9848,14 +9849,14 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9848
9849
|
children: [l ? /* @__PURE__ */ X($m, {
|
|
9849
9850
|
...l,
|
|
9850
9851
|
onOpenChange: D
|
|
9851
|
-
}) : null, oe ? /* @__PURE__ */ Z(
|
|
9852
|
+
}) : null, oe ? /* @__PURE__ */ Z(rc, {
|
|
9852
9853
|
open: w,
|
|
9853
9854
|
onOpenChange: ee,
|
|
9854
|
-
children: [/* @__PURE__ */ X(
|
|
9855
|
+
children: [/* @__PURE__ */ X(qs, {
|
|
9855
9856
|
asChild: !0,
|
|
9856
9857
|
children: /* @__PURE__ */ X(Zn, {
|
|
9857
9858
|
label: j.actions.other,
|
|
9858
|
-
icon:
|
|
9859
|
+
icon: Hs,
|
|
9859
9860
|
variant: "ghost",
|
|
9860
9861
|
size: "md",
|
|
9861
9862
|
hideLabel: !0,
|
|
@@ -9863,7 +9864,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9863
9864
|
compact: !0,
|
|
9864
9865
|
onClick: (e) => e.stopPropagation()
|
|
9865
9866
|
})
|
|
9866
|
-
}), /* @__PURE__ */ X(
|
|
9867
|
+
}), /* @__PURE__ */ X(Gs, {
|
|
9867
9868
|
align: "end",
|
|
9868
9869
|
className: "py-1",
|
|
9869
9870
|
onCloseAutoFocus: ge,
|
|
@@ -9890,7 +9891,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9890
9891
|
"aria-live": r ? "polite" : void 0,
|
|
9891
9892
|
children: [/* @__PURE__ */ Z("div", {
|
|
9892
9893
|
className: B("flex flex-col px-4 py-3", ce && "min-h-14"),
|
|
9893
|
-
children: [/* @__PURE__ */ Z(
|
|
9894
|
+
children: [/* @__PURE__ */ Z(ao, {
|
|
9894
9895
|
ref: fe.rowRef,
|
|
9895
9896
|
display: "flex",
|
|
9896
9897
|
minWidth: "0",
|
|
@@ -9921,21 +9922,21 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9921
9922
|
}) : null,
|
|
9922
9923
|
ae ? /* @__PURE__ */ X(Zn, {
|
|
9923
9924
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
9924
|
-
icon: y ?
|
|
9925
|
+
icon: y ? Ma : fa,
|
|
9925
9926
|
variant: "ghost",
|
|
9926
9927
|
size: "md",
|
|
9927
9928
|
hideLabel: !0,
|
|
9928
9929
|
compact: !0,
|
|
9929
9930
|
onClick: () => C?.(!y)
|
|
9930
9931
|
}) : null,
|
|
9931
|
-
se ? /* @__PURE__ */ Z(
|
|
9932
|
+
se ? /* @__PURE__ */ Z(rc, {
|
|
9932
9933
|
open: w,
|
|
9933
9934
|
onOpenChange: ee,
|
|
9934
|
-
children: [/* @__PURE__ */ X(
|
|
9935
|
+
children: [/* @__PURE__ */ X(qs, {
|
|
9935
9936
|
asChild: !0,
|
|
9936
9937
|
children: /* @__PURE__ */ X(Zn, {
|
|
9937
9938
|
label: j.actions.other,
|
|
9938
|
-
icon:
|
|
9939
|
+
icon: Hs,
|
|
9939
9940
|
variant: "ghost",
|
|
9940
9941
|
size: "md",
|
|
9941
9942
|
hideLabel: !0,
|
|
@@ -9943,13 +9944,13 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9943
9944
|
compact: !0,
|
|
9944
9945
|
onClick: (e) => e.stopPropagation()
|
|
9945
9946
|
})
|
|
9946
|
-
}), /* @__PURE__ */ X(
|
|
9947
|
+
}), /* @__PURE__ */ X(Gs, {
|
|
9947
9948
|
align: "end",
|
|
9948
9949
|
className: B("py-1", k && "w-96 max-w-[90vw]"),
|
|
9949
9950
|
onCloseAutoFocus: ge,
|
|
9950
9951
|
children: k && ie ? /* @__PURE__ */ X("div", {
|
|
9951
9952
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
9952
|
-
children: /* @__PURE__ */ X(
|
|
9953
|
+
children: /* @__PURE__ */ X(ei, {
|
|
9953
9954
|
content: v,
|
|
9954
9955
|
format: "markdown"
|
|
9955
9956
|
})
|
|
@@ -9975,29 +9976,29 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9975
9976
|
fullWidth: !0
|
|
9976
9977
|
})]
|
|
9977
9978
|
}) : null,
|
|
9978
|
-
ie ? /* @__PURE__ */ X(
|
|
9979
|
+
ie ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(Ys, {
|
|
9979
9980
|
onSelect: (e) => {
|
|
9980
9981
|
e.preventDefault(), A(!0);
|
|
9981
9982
|
},
|
|
9982
9983
|
children: /* @__PURE__ */ Z("div", {
|
|
9983
9984
|
className: "flex w-full flex-row items-center gap-2",
|
|
9984
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9985
|
+
children: [/* @__PURE__ */ X(H, { icon: ms }), /* @__PURE__ */ X("span", {
|
|
9985
9986
|
className: "flex-1",
|
|
9986
9987
|
children: j.ai.dashboardItem.dataExplanation
|
|
9987
9988
|
})]
|
|
9988
9989
|
})
|
|
9989
9990
|
}) }) : null,
|
|
9990
9991
|
_e,
|
|
9991
|
-
ne ? /* @__PURE__ */ X(
|
|
9992
|
+
ne ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ Z(Qs, { children: [/* @__PURE__ */ X(Ks, {
|
|
9992
9993
|
className: "mx-1 rounded-sm px-2",
|
|
9993
9994
|
children: /* @__PURE__ */ Z("div", {
|
|
9994
9995
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
9995
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
9996
|
+
children: [/* @__PURE__ */ X(H, { icon: ci }), /* @__PURE__ */ X("span", {
|
|
9996
9997
|
className: "flex-1 text-base font-medium",
|
|
9997
9998
|
children: j.ai.dataDownload.title
|
|
9998
9999
|
})]
|
|
9999
10000
|
})
|
|
10000
|
-
}), /* @__PURE__ */ X(
|
|
10001
|
+
}), /* @__PURE__ */ X(Zs, { children: /* @__PURE__ */ X(ac, { children: te.map((e) => /* @__PURE__ */ X(Ys, {
|
|
10001
10002
|
onClick: e.onClick,
|
|
10002
10003
|
children: /* @__PURE__ */ Z("div", {
|
|
10003
10004
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -10007,14 +10008,14 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10007
10008
|
})]
|
|
10008
10009
|
})
|
|
10009
10010
|
}, e.label)) }) })] }) }) : null,
|
|
10010
|
-
I ? /* @__PURE__ */ X(
|
|
10011
|
+
I ? /* @__PURE__ */ X(nc, { children: /* @__PURE__ */ X(Ys, {
|
|
10011
10012
|
onClick: () => {
|
|
10012
10013
|
y && C?.(!1), f(g);
|
|
10013
10014
|
},
|
|
10014
10015
|
className: B("text-f1-foreground-critical"),
|
|
10015
10016
|
children: /* @__PURE__ */ Z("div", {
|
|
10016
10017
|
className: "flex w-full flex-row items-center gap-2",
|
|
10017
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10018
|
+
children: [/* @__PURE__ */ X(H, { icon: Oi }), /* @__PURE__ */ X("span", {
|
|
10018
10019
|
className: "flex-1",
|
|
10019
10020
|
children: j.actions.delete
|
|
10020
10021
|
})]
|
|
@@ -10105,7 +10106,7 @@ function oh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
10105
10106
|
type: "button",
|
|
10106
10107
|
variant: "ghost",
|
|
10107
10108
|
label: i.ai.dashboardItem.askOne,
|
|
10108
|
-
icon:
|
|
10109
|
+
icon: ba,
|
|
10109
10110
|
onClick: t
|
|
10110
10111
|
})
|
|
10111
10112
|
}), document.body);
|
|
@@ -10148,39 +10149,39 @@ function hh(e) {
|
|
|
10148
10149
|
{
|
|
10149
10150
|
label: e.dataChart.barChartVertical,
|
|
10150
10151
|
value: "bar-vertical",
|
|
10151
|
-
icon:
|
|
10152
|
+
icon: _a,
|
|
10152
10153
|
type: "bar",
|
|
10153
10154
|
orientation: "vertical"
|
|
10154
10155
|
},
|
|
10155
10156
|
{
|
|
10156
10157
|
label: e.dataChart.barChartHorizontal,
|
|
10157
10158
|
value: "bar-horizontal",
|
|
10158
|
-
icon:
|
|
10159
|
+
icon: sa,
|
|
10159
10160
|
type: "bar",
|
|
10160
10161
|
orientation: "horizontal"
|
|
10161
10162
|
},
|
|
10162
10163
|
{
|
|
10163
10164
|
label: e.dataChart.lineChart,
|
|
10164
10165
|
value: "line",
|
|
10165
|
-
icon:
|
|
10166
|
+
icon: Vi,
|
|
10166
10167
|
type: "line"
|
|
10167
10168
|
},
|
|
10168
10169
|
{
|
|
10169
10170
|
label: e.dataChart.funnel,
|
|
10170
10171
|
value: "funnel",
|
|
10171
|
-
icon:
|
|
10172
|
+
icon: za,
|
|
10172
10173
|
type: "funnel"
|
|
10173
10174
|
},
|
|
10174
10175
|
{
|
|
10175
10176
|
label: e.dataChart.pieChart,
|
|
10176
10177
|
value: "pie",
|
|
10177
|
-
icon:
|
|
10178
|
+
icon: Da,
|
|
10178
10179
|
type: "pie"
|
|
10179
10180
|
},
|
|
10180
10181
|
{
|
|
10181
10182
|
label: e.dataChart.table,
|
|
10182
10183
|
value: "table",
|
|
10183
|
-
icon: $
|
|
10184
|
+
icon: $r,
|
|
10184
10185
|
type: "table"
|
|
10185
10186
|
}
|
|
10186
10187
|
];
|
|
@@ -10348,7 +10349,7 @@ function Sh(e) {
|
|
|
10348
10349
|
return _m(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10349
10350
|
}
|
|
10350
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 }) {
|
|
10351
|
-
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 } = wi(), 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, [
|
|
10352
10353
|
e,
|
|
10353
10354
|
T,
|
|
10354
10355
|
y
|
|
@@ -10573,11 +10574,11 @@ function jh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10573
10574
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10574
10575
|
return K(() => e ? [{
|
|
10575
10576
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10576
|
-
icon: $
|
|
10577
|
+
icon: $r,
|
|
10577
10578
|
onClick: l
|
|
10578
10579
|
}, {
|
|
10579
10580
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10580
|
-
icon: $
|
|
10581
|
+
icon: $r,
|
|
10581
10582
|
onClick: u
|
|
10582
10583
|
}] : [], [
|
|
10583
10584
|
e,
|
|
@@ -10698,12 +10699,12 @@ function Ih({ value: e, trend: t, comparison: n }) {
|
|
|
10698
10699
|
className: "flex shrink-0 items-center",
|
|
10699
10700
|
children: [
|
|
10700
10701
|
t.direction === "up" ? /* @__PURE__ */ X(H, {
|
|
10701
|
-
icon:
|
|
10702
|
+
icon: Ns,
|
|
10702
10703
|
color: "positive",
|
|
10703
10704
|
size: "sm",
|
|
10704
10705
|
"aria-hidden": "true"
|
|
10705
10706
|
}) : /* @__PURE__ */ X(H, {
|
|
10706
|
-
icon:
|
|
10707
|
+
icon: Do,
|
|
10707
10708
|
color: "critical",
|
|
10708
10709
|
size: "sm",
|
|
10709
10710
|
"aria-hidden": "true"
|
|
@@ -10905,7 +10906,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10905
10906
|
if (Math.hypot(t.clientX - n, t.clientY - r) < Vh) return;
|
|
10906
10907
|
i = !0, T(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10907
10908
|
let a = k.current.get(e)?.title ?? "";
|
|
10908
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10909
|
+
a && window.dispatchEvent(new CustomEvent(bi, { detail: {
|
|
10909
10910
|
id: e,
|
|
10910
10911
|
title: a,
|
|
10911
10912
|
onAskAi: c,
|
|
@@ -10919,7 +10920,7 @@ function Kh({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
10919
10920
|
}, o = (e) => {
|
|
10920
10921
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), P.current = null;
|
|
10921
10922
|
let t = A.current, n = j.current;
|
|
10922
|
-
e && i && t && n && F(t, n), A.current = null, j.current = null, N.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
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(Ua));
|
|
10923
10924
|
}, s = (e) => {
|
|
10924
10925
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = ee(e.clientX, e.clientY)), o(!0);
|
|
10925
10926
|
}, u = () => o(!1);
|
|
@@ -11097,7 +11098,7 @@ function qh({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11097
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",
|
|
11098
11099
|
"aria-label": "Drag to reorder",
|
|
11099
11100
|
children: /* @__PURE__ */ X(H, {
|
|
11100
|
-
icon:
|
|
11101
|
+
icon: Gr,
|
|
11101
11102
|
size: "xs"
|
|
11102
11103
|
})
|
|
11103
11104
|
}) : null, s]
|
|
@@ -11267,21 +11268,21 @@ function sg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11267
11268
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11268
11269
|
function cg({ onExportExcel: e, isExporting: t }) {
|
|
11269
11270
|
let { t: n } = R();
|
|
11270
|
-
return /* @__PURE__ */ X(
|
|
11271
|
+
return /* @__PURE__ */ X(vi, {
|
|
11271
11272
|
items: [{
|
|
11272
11273
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11273
|
-
icon:
|
|
11274
|
+
icon: ci,
|
|
11274
11275
|
onClick: t ? () => {} : e
|
|
11275
11276
|
}],
|
|
11276
|
-
icon:
|
|
11277
|
+
icon: Hs
|
|
11277
11278
|
});
|
|
11278
11279
|
}
|
|
11279
11280
|
//#endregion
|
|
11280
11281
|
//#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
|
|
11281
11282
|
function lg(e) {
|
|
11282
|
-
return /* @__PURE__ */ X(
|
|
11283
|
+
return /* @__PURE__ */ X(us.Provider, {
|
|
11283
11284
|
value: "controlled",
|
|
11284
|
-
children: /* @__PURE__ */ X(
|
|
11285
|
+
children: /* @__PURE__ */ X(Cs, { ...e })
|
|
11285
11286
|
});
|
|
11286
11287
|
}
|
|
11287
11288
|
lg.displayName = "ControlledOneFilterPicker";
|
|
@@ -11424,7 +11425,7 @@ function gg({ items: e, filters: t, filename: n = "dashboard" }) {
|
|
|
11424
11425
|
//#endregion
|
|
11425
11426
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
|
|
11426
11427
|
var _g = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
|
|
11427
|
-
let y = R(), [b = {}, x] =
|
|
11428
|
+
let y = R(), [b = {}, x] = ec({
|
|
11428
11429
|
prop: r,
|
|
11429
11430
|
defaultProp: n ?? {},
|
|
11430
11431
|
onChange: i
|
|
@@ -12239,7 +12240,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12239
12240
|
className: "dark flex-shrink-0",
|
|
12240
12241
|
children: /* @__PURE__ */ X(V, {
|
|
12241
12242
|
variant: "outline",
|
|
12242
|
-
icon:
|
|
12243
|
+
icon: Ni,
|
|
12243
12244
|
size: "sm",
|
|
12244
12245
|
hideLabel: !0,
|
|
12245
12246
|
onClick: e,
|
|
@@ -12256,7 +12257,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12256
12257
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12257
12258
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12258
12259
|
onClick: () => n(e),
|
|
12259
|
-
children: /* @__PURE__ */ X(
|
|
12260
|
+
children: /* @__PURE__ */ X(na, {
|
|
12260
12261
|
href: e.href,
|
|
12261
12262
|
children: e.label
|
|
12262
12263
|
})
|
|
@@ -12268,7 +12269,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12268
12269
|
onClick: () => n(e)
|
|
12269
12270
|
}, `button-${e.label}`))]
|
|
12270
12271
|
}), o_ = (e, t) => {
|
|
12271
|
-
let n =
|
|
12272
|
+
let n = Po(e);
|
|
12272
12273
|
return {
|
|
12273
12274
|
buttonActions: n.filter((e) => e.type === "button"),
|
|
12274
12275
|
linkActions: n.filter((e) => e.type === "link"),
|
|
@@ -12287,7 +12288,7 @@ var r_ = ({ onClose: e }) => {
|
|
|
12287
12288
|
children: t
|
|
12288
12289
|
}),
|
|
12289
12290
|
inStack: !1
|
|
12290
|
-
}), c_ = () => Sc(s_), l_ = (e) => B("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), u_ =
|
|
12291
|
+
}), c_ = () => Sc(s_), l_ = (e) => B("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), u_ = Qa({
|
|
12291
12292
|
base: "text-base font-medium text-f1-foreground-inverse",
|
|
12292
12293
|
variants: { hasIcon: {
|
|
12293
12294
|
true: "pt-[3px]",
|
|
@@ -12317,14 +12318,14 @@ var r_ = ({ onClose: e }) => {
|
|
|
12317
12318
|
_ ? /* @__PURE__ */ X("div", {
|
|
12318
12319
|
className: "flex-shrink-0",
|
|
12319
12320
|
"aria-hidden": "true",
|
|
12320
|
-
children: /* @__PURE__ */ X(
|
|
12321
|
+
children: /* @__PURE__ */ X(Wo, {
|
|
12321
12322
|
size: "small",
|
|
12322
12323
|
className: "text-f1-foreground-inverse"
|
|
12323
12324
|
})
|
|
12324
12325
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12325
12326
|
className: "flex-shrink-0",
|
|
12326
12327
|
"aria-hidden": "true",
|
|
12327
|
-
children: /* @__PURE__ */ X(
|
|
12328
|
+
children: /* @__PURE__ */ X(ui, {
|
|
12328
12329
|
type: g,
|
|
12329
12330
|
size: "sm"
|
|
12330
12331
|
})
|
|
@@ -12384,7 +12385,7 @@ var h_ = (e) => e instanceof Element && e.closest("button, a") !== null, g_ = yc
|
|
|
12384
12385
|
children: [
|
|
12385
12386
|
/* @__PURE__ */ X("div", {
|
|
12386
12387
|
className: "flex-shrink-0",
|
|
12387
|
-
children: /* @__PURE__ */ X(
|
|
12388
|
+
children: /* @__PURE__ */ X(uo, {
|
|
12388
12389
|
avatar: e,
|
|
12389
12390
|
size: "md"
|
|
12390
12391
|
})
|
|
@@ -12642,15 +12643,15 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12642
12643
|
showExperimentalWarnings: l,
|
|
12643
12644
|
renderDataTestIdAttribute: u,
|
|
12644
12645
|
hourCycle: s,
|
|
12645
|
-
children: /* @__PURE__ */ X(
|
|
12646
|
+
children: /* @__PURE__ */ X(rs, {
|
|
12646
12647
|
...o,
|
|
12647
12648
|
children: /* @__PURE__ */ X(mn, {
|
|
12648
12649
|
...a,
|
|
12649
12650
|
children: /* @__PURE__ */ X(rr, {
|
|
12650
12651
|
...t,
|
|
12651
|
-
children: /* @__PURE__ */ X(
|
|
12652
|
+
children: /* @__PURE__ */ X(Xa, { children: /* @__PURE__ */ X(n, {
|
|
12652
12653
|
initiallyEnabled: r,
|
|
12653
|
-
children: /* @__PURE__ */ X(
|
|
12654
|
+
children: /* @__PURE__ */ X(ro, {
|
|
12654
12655
|
...i,
|
|
12655
12656
|
children: e
|
|
12656
12657
|
})
|
|
@@ -12687,7 +12688,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12687
12688
|
renderDataTestIdAttribute: d,
|
|
12688
12689
|
children: /* @__PURE__ */ X(H_, {
|
|
12689
12690
|
...t,
|
|
12690
|
-
children: /* @__PURE__ */ X(
|
|
12691
|
+
children: /* @__PURE__ */ X(ti, {
|
|
12691
12692
|
handler: l,
|
|
12692
12693
|
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(lt, {
|
|
12693
12694
|
...p,
|
|
@@ -12706,4 +12707,4 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12706
12707
|
})
|
|
12707
12708
|
});
|
|
12708
12709
|
//#endregion
|
|
12709
|
-
export { br as AiChatTranslationsProvider, st as AreaChart,
|
|
12710
|
+
export { br as AiChatTranslationsProvider, st as AreaChart, zs as Await, rt as BarChart, Tt as BarChartSkeleton, ae as CardSelectableContainer, Pe as CategoryBarChart, li as ChatSpinner, To 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, mi as DropOverlay, qn as EmojiImage, lu as F0Accordion, t as F0ActionBar, ii as F0ActionItem, yi as F0AiChat, xr as F0AiChatCreditsButton, kr as F0AiChatHeader, Er as F0AiChatHistory, qr as F0AiChatProvider, cr as F0AiChatTextArea, ur as F0AiChatUsageLimitsButton, _r as F0AiFileAttachments, Na as F0AiFilePreviewsProvider, si as F0AiFormRegistryProvider, Ar as F0AiInsightCard, vr as F0AiMask, Sr as F0AiMessageSources, ar as F0AiMessagesContainer, Qr as F0AiPong, Ir as F0AiProcessingOverlay, Cr as F0AiProposalCard, Lr as F0AiTableCard, lc as F0Alert, vg as F0AnalyticsDashboard, Ri as F0AudioPlayer, va as F0AudioPlayerCard, wr as F0AuraVoiceAnimation, uo as F0Avatar, ui as F0AvatarAlert, no as F0AvatarCompany, Yr 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, Is as F0ButtonToggle, Or as F0CanvasCard, Pa as F0CanvasPanel, oi as F0Card, oa as F0CardRow, ni as F0ChatComposer, ns as F0Checkbox, pu as F0ChipList, Rr as F0ClarifyingPanel, Ht as F0DataChart, a as F0DatePicker, cn as F0DatePickerInline, im as F0DemoCard, Qi as F0Dialog, p as F0DialogAlikeContext, b as F0DialogAlikeProvider, No as F0DialogContext, Ss as F0DialogProvider, fc as F0DocumentViewer, xu as F0Drawer, mt as F0DurationInput, js as F0EventCatcherProvider, om as F0FAQCard, ai as F0FileItem, wu as F0FilterPickerContent, me as F0Form, Ru as F0FormField, xl as F0GridStack, Tr as F0HILActionConfirmation, Zt as F0Heading, H as F0Icon, na as F0Link, sm as F0ModuleCard, rn as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, Kr as F0OneIcon, pa as F0OneSwitch, uc as F0PdfViewer, G_ as F0Provider, lm as F0QuestionCardMultiStep, ei as F0RichTextDisplay, dt as F0RichTextEditor, hs as F0SearchInput, Ds as F0Select, r as F0SelectInline, wd as F0Slider, Rd as F0TableOfContentPopover, Ho as F0TagAlert, Io as F0TagBalance, ds as F0TagCompany, Co as F0TagDot, xs as F0TagList, fs as F0TagPerson, Eo as F0TagRaw, Ms as F0TagStatus, zo as F0TagTeam, cc as F0Text, Qt as F0TextAreaInput, s as F0TextAreaInputInline, xa as F0TextInput, de as F0TextInputInline, o as F0TimelineRow, mc as F0VideoPlayer, sd as F0WizardForm, cs as F1SearchBox, P as FILE_TYPES, Ci 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, ja 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, os as OneCalendar, Xo as OneCalendarInternal, $n as OneEllipsis, m as OneEmptyState, Cs as OneFilterPicker, ze as PieChart, qe as PieChartSkeleton, Jr 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, Zr 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, gs 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, _s as WeekStartDay, Xe as actionBarStatuses, Hr as actionItemStatuses, wa 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, Di as cardImageAspectRatios, Mi as cardImageFits, _i as cardImageSizes, Fo as chartColorTokens, Ps as chipVariants, Ud as computeSectionEndIds, pc as configurePdfWorker, Nr as contentTypes, Wt as createAtlaskitDriver, Go 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, ji as defineAvailableForm, Tu as describeFormSchema, O as dialog, O as dialogs, Mt as drawers, da as durationInputSizes, ea as durationUnits, Jt as evaluateRenderIf, hn as experimental, Ei as f0FileItemSizes, ra as f0FormField, Gi as fieldsToSeconds, zd as flattenElements, ua as formatPlaybackTime, pd as forms, nt as generateAnchorId, Ko as getAnimationVariants, di as getDataCollectionStorageKey, qo as getDataSourcePaginationType, Qn as getEmojiLabel, zi as getF0Config, As as getGranularityDefinition, is as getGranularityDefinitions, Ls as getGranularitySimpleDefinition, an as getSchemaDefinition, Os as granularityDefinitions, ya as hasF0Config, ka as inferFieldType, Hd as injectSectionEnds, vo as isInfiniteScrollPagination, yo as isPageBasedPagination, Ui as isZodType, iu as linkVariants, mr as markdownRenderers, aa as mergeDataCollectionFilters, to as modules, hr as oneIconSizes, sn as parseDataCollectionUrlParams, dc as pdfScales, C as predefinedPresets, Es as rangeSeparator, fi as readDataCollectionStorage, Vd as reconstructElements, pi as resolveDataCollectionFilters, vs as resolveGranularityDefinition, At as resolveItemNeighbors, h as resolveWindowNeighbors, Xi as secondsToFields, Ca 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, Va as unwrapZodSchema, jr as usageLimitsPopoverSides, wi as useAiChat, Br as useAiChatTranslations, Sa as useAudioPlayer, Vr as useCanvasEntity, Pr as useChatHistory, mo as useData, Ao as useDataSource, xe as useDataSourceItemNavigation, Yi as useDerivedTranscription, wt as useDndEvents, Lt as useDraggable, Ue as useDroppableList, Xn as useEmojiConfetti, ki as useF0AiFormRegistry, Mo as useF0Dialog, k as useF0DialogAlikeContext, $e as useF0Form, St as useF0FormDefinition, or as useFormCardValueFormatter, W_ as useFormComponent, jo 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 };
|