@factorialco/f0-react 16.18.0 → 16.20.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-CAzO9emN.js → ArchiveThumbnail-D5RdDTI0.js} +6 -6
- package/dist/{ArchiveViewer-BkqvVOz0.js → ArchiveViewer-rn7u3Dpm.js} +5 -5
- package/dist/{ChatPostComposerDialog-BY1-ToCS.js → ChatPostComposerDialog-K_Vnt0ro.js} +3 -3
- package/dist/{CoachmarkProvider-CFjffyu5.js → CoachmarkProvider-BmIZobyx.js} +14230 -14230
- package/dist/{CodeThumbnail-D-gb6TUF.js → CodeThumbnail-DQbEA2Rl.js} +1 -1
- package/dist/{CodeViewer-SI7TC_K2.js → CodeViewer-BvFVnvZG.js} +6 -6
- package/dist/{DocumentToolbar-DGyD9SN0.js → DocumentToolbar-94u6vk8m.js} +7 -7
- package/dist/{DocxViewer-kDcXxo0v.js → DocxViewer-C20S3kO5.js} +3 -3
- package/dist/{F0AiProcessingOverlay-OhgXIPB4.js → F0AiProcessingOverlay-DdYHU_e8.js} +1859 -1931
- package/dist/{F0Alert-TC2esFmC.js → F0Alert-DBVF8WK7.js} +7 -7
- package/dist/F0AudioPlayer-LlajNDAA.js +2 -0
- package/dist/{F0Button-BPjCHo83.js → F0Button-B217B6lh.js} +9 -9
- package/dist/{F0CanvasPanel-CwuS7Fc_.js → F0CanvasPanel-CVk_7eK7.js} +7699 -7722
- package/dist/{F0DocumentViewer-CNQvQsnx.js → F0DocumentViewer-7SDA8bY3.js} +1 -1
- package/dist/{F0DocumentViewer-DIFsg5pY.js → F0DocumentViewer-CLwKmjK-.js} +4 -4
- package/dist/{F0Icon-BWIoBqUz.js → F0Icon-CRETnjaC.js} +1 -1
- package/dist/{F0Map-BxSjjHyY.js → F0Map-Dz64Vvtw.js} +19 -19
- package/dist/{F0Select-CaRfMBA3.js → F0Select-Ef_MkLqL.js} +9 -9
- package/dist/{F0Text-D9BR3ipr.js → F0Text-DEJMiNLl.js} +2 -2
- package/dist/{F0VideoPlayer-CfY8KJ7I.js → F0VideoPlayer-Boe5ntER.js} +71 -71
- package/dist/F0VideoPlayer-CWr6L2CQ.js +1 -0
- package/dist/{HtmlThumbnail-Cj27H9QK.js → HtmlThumbnail-DLYEHdZx.js} +1 -1
- package/dist/{HtmlViewer-DRfrtuKN.js → HtmlViewer-DnBkFfLk.js} +9 -9
- package/dist/{LayoutGroup-Clgr-vB9.js → LayoutGroup-DECnUFBB.js} +1 -1
- package/dist/{Map-x2t4rK66.js → Map-XGapa9ke.js} +13 -13
- package/dist/{PdfThumbnail-Ue08FfiS.js → PdfThumbnail-f8cxvUJR.js} +1 -1
- package/dist/{PdfViewer-V3C2gmbs.js → PdfViewer-DfEWMASa.js} +12 -12
- package/dist/{SandboxedHtmlFrame-DQqfMeCl.js → SandboxedHtmlFrame-Ba5FAjt6.js} +2 -2
- package/dist/{SheetViewer-ByBIMFf1.js → SheetViewer-8TM8_Mcn.js} +5 -5
- package/dist/{TextViewer-CR4-k8HR.js → TextViewer-gYqYfc8o.js} +4 -4
- package/dist/ai.d.ts +4 -4
- package/dist/ai.js +5 -5
- package/dist/component-status.js +2 -2
- package/dist/{dist-DYydiVIh.js → dist-BAsn0JfF.js} +1 -1
- package/dist/{dist-CAmWmLKl.js → dist-CBsv_N04.js} +4 -4
- package/dist/{dist-tqa6n0_D.js → dist-CLXu6f__.js} +2 -2
- package/dist/{dist-tiM2lERI.js → dist-ClS5kbGd.js} +1 -1
- package/dist/{dist-qs-4_N_R.js → dist-CpxH3Mhm.js} +1 -1
- package/dist/experimental.d.ts +8 -2
- package/dist/experimental.js +618 -618
- package/dist/{exports-CLYkiCcv.d.ts → exports-B8qwxvwL.d.ts} +14 -44
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +218 -218
- package/dist/{highlight-D7BcbXP5.js → highlight-Bg7vgyjH.js} +4 -4
- package/dist/{i18n-provider-B3-kjPXK.js → i18n-provider-DyI_r6Au.js} +1 -1
- package/dist/{i18n-provider-defaults-BlGnW4EH.js → i18n-provider-defaults-C8fwj3sA.js} +4 -6
- package/dist/{i18n-provider-defaults-Csxr33dy.d.ts → i18n-provider-defaults-FGAsdJJR.d.ts} +4 -6
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-B01mneLV.d.ts → index-DC_v_uUG.d.ts} +33 -79
- package/dist/{maplibre-BMusGtni.js → maplibre-eOX45GBr.js} +1 -1
- package/dist/{pdfWorker-csDGfjpV.js → pdfWorker-DBQyzjMh.js} +1 -1
- package/dist/{popover-CBQ6ifku.js → popover-CKVOp9XF.js} +1 -1
- package/dist/{skeleton-Dl-alAMY.js → skeleton-Dw-7r7zp.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-Dx_088Js.js → toolbarStyles-C_OrVxv7.js} +1 -1
- package/dist/{types-QOTzx6bl.d.ts → types-Ia5pcWL6.d.ts} +2 -2
- package/dist/{useData-0FR__MaY.js → useData-CVTa0m1L.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-GshtwrMI.js +0 -2
- package/dist/F0VideoPlayer-HzLnLN2W.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $ as t, $n as n, $r as r, A as i, An as a, Ar as o, Bn as s, C as c, Cn as l, Cr as u, D as d, Dn as f, Dr as p, E as m, En as h, Er as g, F as _, Fn as v, Ft as y, Gn as b, Gt as x, Hn as S, Ht as C, I as w, In as T, It as E, Jn as D, Jr as O, Jt as k, Kn as A, Kr as j, Kt as M, Ln as N, Lt as P, M as F, Mn as I, Mr as ee, N as te, Nn as L, Nr as ne, O as re, On as ie, Or as ae, Ot as oe, P as se, Pn as ce, Pt as le, Q as ue, Qr as de, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, Sr as _e, T as ve, Tn as ye, Tr as be, Un as xe, Ut as Se, Vn as Ce, Vt as we, Wn as Te, Wr as Ee, Wt as De, Xn as Oe, Yn as ke, Yr as Ae, Yt as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _r as Ie, _t as Le, ai as Re, ar as ze, b as Be, bi as Ve, br as He, bt as Ue, c as We, cn as Ge, cr as Ke, d as qe, di as Je, dr as Ye, ei as Xe, en as Ze, er as Qe, et as $e, f as et, fi as tt, fr as nt, ft as rt, gr as it, gt as at, h as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, jr as mt, k as ht, kn as gt, kr as _t, l as vt, ln as yt, lr as bt, lt as xt, m as St, mr as Ct, mt as wt, ni as Tt, nn as Et, nr as Dt, on as Ot, or as kt, pi as At, pr as jt, qn as Mt, qr as Nt, qt as Pt, ri as Ft, rn as It, rr as Lt, s as Rt, sn as zt, sr as Bt, t as Vt, tn as Ht, tr as Ut, u as Wt, un as Gt, ur as Kt, v as qt, vr as Jt, vt as Yt, w as Xt, wi as Zt, wn as Qt, wr as $t, x as en, xi as tn, xn as nn, xr as rn, xt as an, y as on, yi as sn, yr as cn, yt as ln, zn as un, zt as dn } from "./CoachmarkProvider-
|
|
3
|
-
import { a as R, i as fn, n as pn, o as mn, r as z, t as hn } from "./i18n-provider-
|
|
4
|
-
import { n as gn, t as _n } from "./skeleton-
|
|
2
|
+
import { $ as t, $n as n, $r as r, A as i, An as a, Ar as o, Bn as s, C as c, Cn as l, Cr as u, D as d, Dn as f, Dr as p, E as m, En as h, Er as g, F as _, Fn as v, Ft as y, Gn as b, Gt as x, Hn as S, Ht as C, I as w, In as T, It as E, Jn as D, Jr as O, Jt as k, Kn as A, Kr as j, Kt as M, Ln as N, Lt as P, M as F, Mn as I, Mr as ee, N as te, Nn as L, Nr as ne, O as re, On as ie, Or as ae, Ot as oe, P as se, Pn as ce, Pt as le, Q as ue, Qr as de, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, Sr as _e, T as ve, Tn as ye, Tr as be, Un as xe, Ut as Se, Vn as Ce, Vt as we, Wn as Te, Wr as Ee, Wt as De, Xn as Oe, Yn as ke, Yr as Ae, Yt as je, Zn as Me, Zr as Ne, Zt as Pe, _ as Fe, _r as Ie, _t as Le, ai as Re, ar as ze, b as Be, bi as Ve, br as He, bt as Ue, c as We, cn as Ge, cr as Ke, d as qe, di as Je, dr as Ye, ei as Xe, en as Ze, er as Qe, et as $e, f as et, fi as tt, fr as nt, ft as rt, gr as it, gt as at, h as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, jr as mt, k as ht, kn as gt, kr as _t, l as vt, ln as yt, lr as bt, lt as xt, m as St, mr as Ct, mt as wt, ni as Tt, nn as Et, nr as Dt, on as Ot, or as kt, pi as At, pr as jt, qn as Mt, qr as Nt, qt as Pt, ri as Ft, rn as It, rr as Lt, s as Rt, sn as zt, sr as Bt, t as Vt, tn as Ht, tr as Ut, u as Wt, un as Gt, ur as Kt, v as qt, vr as Jt, vt as Yt, w as Xt, wi as Zt, wn as Qt, wr as $t, x as en, xi as tn, xn as nn, xr as rn, xt as an, y as on, yi as sn, yr as cn, yt as ln, zn as un, zt as dn } from "./CoachmarkProvider-BmIZobyx.js";
|
|
3
|
+
import { a as R, i as fn, n as pn, o as mn, r as z, t as hn } from "./i18n-provider-DyI_r6Au.js";
|
|
4
|
+
import { n as gn, t as _n } from "./skeleton-Dw-7r7zp.js";
|
|
5
5
|
import { A as vn, C as yn, D as bn, F as xn, I as Sn, L as B, M as Cn, N as wn, O as Tn, P as En, R as Dn, S as On, _ as kn, b as An, c as jn, f as Mn, g as Nn, h as Pn, j as Fn, k as In, l as Ln, m as Rn, p as zn, v as Bn, w as Vn, x as Hn, y as Un } from "./tooltip-NXXT56H4.js";
|
|
6
|
-
import { E as Wn, F as Gn, H as Kn, I as qn, K as Jn, N as Yn, P as Xn, Y as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, r as ir, t as V, x as ar } from "./F0Button-
|
|
7
|
-
import { $
|
|
8
|
-
import { A as pa, B as ma, C as ha, D as ga, E as _a, F as va, H as ya, I as ba, L as xa, M as Sa, N as Ca, O as wa, P as Ta, R as Ea, S as Da, T as Oa, V as ka, _ as Aa, a as ja, b as Ma, c as Na, d as Pa, f as Fa, g as Ia, h as La, i as Ra, j as za, k as Ba, l as Va, m as Ha, n as Ua, o as Wa, p as Ga, r as Ka, s as qa, t as Ja, u as Ya, v as Xa, w as Za, x as Qa, y as $a, z as eo } from "./F0AiProcessingOverlay-
|
|
9
|
-
import { a as to, i as no, n as ro, o as io, r as ao, t as H } from "./F0Icon-
|
|
10
|
-
import { t as oo } from "./i18n-provider-defaults-
|
|
11
|
-
import { A as so, C as co, D as lo, H as uo, N as fo, S as po, U as mo, _ as ho, a as go, b as _o, d as vo, g as yo, h as bo, i as xo, k as So, n as Co, o as wo, p as To, r as Eo, t as Do, u as Oo } from "./useData-
|
|
12
|
-
import { $ as ko,
|
|
6
|
+
import { E as Wn, F as Gn, H as Kn, I as qn, K as Jn, N as Yn, P as Xn, Y as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, r as ir, t as V, x as ar } from "./F0Button-B217B6lh.js";
|
|
7
|
+
import { $c as or, $i as sr, $r as cr, Ac as lr, Ao as ur, B as dr, Bn as fr, Bo as pr, Bs as mr, Cc as hr, Di as gr, Fc as _r, Fl as vr, Fs as yr, G as br, Gi as xr, Gn as Sr, Gs as Cr, H as wr, Hn as Tr, Ii as Er, Ji as Dr, K as Or, Ki as kr, Kt as Ar, Mi as jr, Ml as Mr, Ni as Nr, Oi as Pr, Pi as Fr, Qi as Ir, Ri as Lr, Ss as Rr, Tc as zr, Tl as Br, U as Vr, Un as Hr, V as Ur, Vo as Wr, W as Gr, Wi as Kr, Wn as qr, Xn as Jr, Yi as Yr, Yn as Xr, Zi as Zr, Zn as Qr, _a as $r, _i as ei, _l as ti, a as ni, aa as ri, ai as ii, ar as ai, as as oi, bc as si, bl as ci, ca as li, ci as ui, cr as di, cs as fi, da as pi, dr as mi, ea as hi, ei as gi, fa as _i, fi as vi, fl as yi, fs as bi, ga as xi, gi as Si, gl as Ci, ha as wi, hi as Ti, hl as Ei, i as Di, ia as Oi, ii as ki, il as Ai, js as ji, jt as Mi, kc as Ni, ks as Pi, la as Fi, lr as Ii, ls as Li, ma as Ri, mi as zi, ml as Bi, ni as Vi, oa as Hi, or as Ui, pa as Wi, pc as Gi, pi as Ki, pl as qi, q as Ji, qn as Yi, ra as Xi, ri as Zi, rl as Qi, sa as $i, sc as ea, si as ta, sn as na, sr as ra, ss as ia, t as aa, ti as oa, ts as sa, ua as ca, ur as la, vl as ua, wc as da, xs as fa } from "./F0CanvasPanel-CVk_7eK7.js";
|
|
8
|
+
import { A as pa, B as ma, C as ha, D as ga, E as _a, F as va, H as ya, I as ba, L as xa, M as Sa, N as Ca, O as wa, P as Ta, R as Ea, S as Da, T as Oa, V as ka, _ as Aa, a as ja, b as Ma, c as Na, d as Pa, f as Fa, g as Ia, h as La, i as Ra, j as za, k as Ba, l as Va, m as Ha, n as Ua, o as Wa, p as Ga, r as Ka, s as qa, t as Ja, u as Ya, v as Xa, w as Za, x as Qa, y as $a, z as eo } from "./F0AiProcessingOverlay-DdYHU_e8.js";
|
|
9
|
+
import { a as to, i as no, n as ro, o as io, r as ao, t as H } from "./F0Icon-CRETnjaC.js";
|
|
10
|
+
import { t as oo } from "./i18n-provider-defaults-C8fwj3sA.js";
|
|
11
|
+
import { A as so, C as co, D as lo, H as uo, N as fo, S as po, U as mo, _ as ho, a as go, b as _o, d as vo, g as yo, h as bo, i as xo, k as So, n as Co, o as wo, p as To, r as Eo, t as Do, u as Oo } from "./useData-CVTa0m1L.js";
|
|
12
|
+
import { $ as ko, B as Ao, Bt as jo, Cr as Mo, Dn as No, Dr as Po, Dt as Fo, En as Io, Et as Lo, Ft as Ro, G as zo, H as Bo, In as Vo, It as Ho, J as Uo, K as Wo, Lt as Go, Mt as Ko, Nt as qo, Or as Jo, Ot as Yo, Pt as Xo, Q as Zo, R as Qo, Rt as $o, St as es, Tr as ts, U as ns, W as rs, X as is, Y as as, _ as os, _t as ss, a as cs, an as ls, bt as us, c as ds, cr as fs, d as ps, dt as ms, fr as hs, g as gs, gt as _s, h as vs, hr as ys, it as bs, jt as xs, kn as Ss, kr as Cs, kt as ws, l as Ts, m as Es, nt as Ds, o as Os, q as ks, r as As, rn as js, rt as Ms, s as Ns, t as Ps, tt as Fs, u as Is, ur as Ls, ut as Rs, v as zs, vt as Bs, w as Vs, wr as Hs, wt as Us, y as Ws, yt as Gs } from "./F0Select-Ef_MkLqL.js";
|
|
13
13
|
import { t as Ks } from "./Check-DAp9gCRh.js";
|
|
14
|
-
import { a as qs } from "./dist-
|
|
14
|
+
import { a as qs } from "./dist-CpxH3Mhm.js";
|
|
15
15
|
import { t as Js } from "./Ellipsis-CBouJQYY.js";
|
|
16
16
|
import { t as Ys } from "./LockLocked-gdodYvT_.js";
|
|
17
17
|
import { t as Xs } from "./purify.es-CJ7gZxxn.js";
|
|
18
|
-
import { J as Zs, S as Qs, a as $s, b as ec, d as tc, f as nc, g as rc, h as ic, i as ac, m as oc, p as sc, t as cc, w as lc, x as uc, y as dc } from "./popover-
|
|
19
|
-
import { i as fc, r as pc } from "./dist-
|
|
20
|
-
import { t as mc } from "./F0Text-
|
|
21
|
-
import { t as hc } from "./F0Alert-
|
|
22
|
-
import { n as gc, r as _c, t as vc } from "./F0DocumentViewer-
|
|
18
|
+
import { J as Zs, S as Qs, a as $s, b as ec, d as tc, f as nc, g as rc, h as ic, i as ac, m as oc, p as sc, t as cc, w as lc, x as uc, y as dc } from "./popover-CKVOp9XF.js";
|
|
19
|
+
import { i as fc, r as pc } from "./dist-CLXu6f__.js";
|
|
20
|
+
import { t as mc } from "./F0Text-DEJMiNLl.js";
|
|
21
|
+
import { t as hc } from "./F0Alert-DBVF8WK7.js";
|
|
22
|
+
import { n as gc, r as _c, t as vc } from "./F0DocumentViewer-CLwKmjK-.js";
|
|
23
23
|
import { t as yc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as bc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as bc } from "./F0VideoPlayer-Boe5ntER.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
import xc, { Children as Sc, Fragment as Cc, createContext as wc, forwardRef as Tc, isValidElement as Ec, memo as Dc, useCallback as W, useContext as Oc, useEffect as G, useId as kc, useImperativeHandle as Ac, useLayoutEffect as jc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Mc } from "react";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ var Ic = {
|
|
|
45
45
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
46
46
|
children: e
|
|
47
47
|
}, t));
|
|
48
|
-
return /* @__PURE__ */ X(
|
|
48
|
+
return /* @__PURE__ */ X(bi, {
|
|
49
49
|
layout: "home",
|
|
50
50
|
children: /* @__PURE__ */ Z("div", {
|
|
51
51
|
ref: r,
|
|
@@ -79,7 +79,7 @@ var Ic = {
|
|
|
79
79
|
}), Rc = io({
|
|
80
80
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-page py-5",
|
|
81
81
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
82
|
-
}), zc = xc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
82
|
+
}), zc = xc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(bi, {
|
|
83
83
|
layout: "standard",
|
|
84
84
|
children: /* @__PURE__ */ X("section", {
|
|
85
85
|
ref: a,
|
|
@@ -187,7 +187,7 @@ function Xc({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
187
187
|
for (let t of i || []) t.id && e.set(t.id, Kc(t));
|
|
188
188
|
return e;
|
|
189
189
|
});
|
|
190
|
-
|
|
190
|
+
fs(() => {
|
|
191
191
|
if (!s) return;
|
|
192
192
|
let e = s.save();
|
|
193
193
|
if (!Array.isArray(e)) return;
|
|
@@ -2598,7 +2598,7 @@ xl.renderCB = (e, t) => {
|
|
|
2598
2598
|
}, xl.resizeToContentParent = ".grid-stack-item-content", xl.Utils = Q, xl.Engine = tl, xl.GDRev = "12.3.2";
|
|
2599
2599
|
//#endregion
|
|
2600
2600
|
//#region src/blocks/F0GridStack/components/grid-stack-render-provider.tsx
|
|
2601
|
-
var Sl = /* @__PURE__ */ e(
|
|
2601
|
+
var Sl = /* @__PURE__ */ e(Vo(), 1), Cl = /* @__PURE__ */ new WeakMap();
|
|
2602
2602
|
function wl({ children: e }) {
|
|
2603
2603
|
let { _gridStack: { value: t, set: n }, options: r } = Gc(), i = q(/* @__PURE__ */ new Map()), a = q(null), o = q(r), s = W((e, t) => {
|
|
2604
2604
|
if (t.id && t.grid) {
|
|
@@ -2928,7 +2928,7 @@ var Fl = Al("Dashboard", Pl), Il = R(gn("Dashboard", Fl)), Ll = io({
|
|
|
2928
2928
|
...l,
|
|
2929
2929
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2930
2930
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2931
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2931
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(Wr, {
|
|
2932
2932
|
items: Rl(d),
|
|
2933
2933
|
"data-testid": "actions-dropdown"
|
|
2934
2934
|
}) : null]
|
|
@@ -3002,7 +3002,7 @@ var Kl = ({ id: e, children: t }) => {
|
|
|
3002
3002
|
});
|
|
3003
3003
|
}, ql = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: i = !1 }) => {
|
|
3004
3004
|
let [a, o] = J([]);
|
|
3005
|
-
|
|
3005
|
+
fs(() => {
|
|
3006
3006
|
o(e.map((e, t) => ({
|
|
3007
3007
|
id: e.id ?? t.toString(),
|
|
3008
3008
|
render: e.render
|
|
@@ -3083,7 +3083,7 @@ var Jl = Tc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3083
3083
|
show: e.show ?? !0,
|
|
3084
3084
|
invertStatus: e.invertStatus ?? !1
|
|
3085
3085
|
}, tu = ({ label: e, ...t }) => {
|
|
3086
|
-
let n =
|
|
3086
|
+
let n = Ho(), r = n(t.value, { formatterOptions: { decimalPlaces: 2 } }), i = eu(t.trend), a = n(t.comparison), o = Go(r.numericValue, r.formatterOptions), s = $o(a.numericValue), c = $o(r.numericValue), l = K(() => {
|
|
3087
3087
|
if (s && i.show && s && c) return (c - s) / s * 100;
|
|
3088
3088
|
}, [
|
|
3089
3089
|
c,
|
|
@@ -3113,7 +3113,7 @@ var Jl = Tc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3113
3113
|
})]
|
|
3114
3114
|
});
|
|
3115
3115
|
tu.displayName = "F0BigNumber";
|
|
3116
|
-
var ru =
|
|
3116
|
+
var ru = sa(tu, nu), iu = R(ru), au = [
|
|
3117
3117
|
"default",
|
|
3118
3118
|
"outline",
|
|
3119
3119
|
"neutral"
|
|
@@ -3121,14 +3121,14 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3121
3121
|
className: "flex items-center gap-2",
|
|
3122
3122
|
children: e.map((e, t) => {
|
|
3123
3123
|
switch (e.type) {
|
|
3124
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3124
|
+
case "segmentedControl": return /* @__PURE__ */ X(Fi, {
|
|
3125
3125
|
items: e.items,
|
|
3126
3126
|
value: e.value,
|
|
3127
3127
|
onChange: e.onChange,
|
|
3128
3128
|
disabled: e.disabled,
|
|
3129
3129
|
ariaLabel: e.ariaLabel
|
|
3130
3130
|
}, t);
|
|
3131
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3131
|
+
case "dropdown": return /* @__PURE__ */ X(Wr, {
|
|
3132
3132
|
items: e.items,
|
|
3133
3133
|
disabled: e.disabled,
|
|
3134
3134
|
children: /* @__PURE__ */ X(V, {
|
|
@@ -3144,7 +3144,7 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3144
3144
|
})
|
|
3145
3145
|
}), du = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3146
3146
|
let r = er(), i = z().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3147
|
-
return /* @__PURE__ */ X(
|
|
3147
|
+
return /* @__PURE__ */ X(Xi, {
|
|
3148
3148
|
open: t,
|
|
3149
3149
|
onOpenChange: n,
|
|
3150
3150
|
asChild: !0,
|
|
@@ -3152,7 +3152,7 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3152
3152
|
className: "flex flex-col",
|
|
3153
3153
|
children: [/* @__PURE__ */ Z("div", {
|
|
3154
3154
|
className: "flex items-center",
|
|
3155
|
-
children: [/* @__PURE__ */ X(
|
|
3155
|
+
children: [/* @__PURE__ */ X(ri, {
|
|
3156
3156
|
asChild: !0,
|
|
3157
3157
|
children: /* @__PURE__ */ X("button", {
|
|
3158
3158
|
type: "button",
|
|
@@ -3170,12 +3170,12 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3170
3170
|
children: e.summary
|
|
3171
3171
|
}) : null,
|
|
3172
3172
|
a ? /* @__PURE__ */ X(uu, { actions: e.actions }) : null,
|
|
3173
|
-
/* @__PURE__ */ X(
|
|
3173
|
+
/* @__PURE__ */ X(ri, {
|
|
3174
3174
|
asChild: !0,
|
|
3175
3175
|
children: /* @__PURE__ */ X(V, {
|
|
3176
3176
|
variant: "outline",
|
|
3177
3177
|
size: "sm",
|
|
3178
|
-
icon: t ?
|
|
3178
|
+
icon: t ? Mo : uo,
|
|
3179
3179
|
label: i,
|
|
3180
3180
|
hideLabel: !0
|
|
3181
3181
|
})
|
|
@@ -3199,7 +3199,7 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3199
3199
|
},
|
|
3200
3200
|
transition: { duration: r ? 0 : .2 },
|
|
3201
3201
|
className: "overflow-hidden",
|
|
3202
|
-
children: /* @__PURE__ */ X(
|
|
3202
|
+
children: /* @__PURE__ */ X(Oi, {
|
|
3203
3203
|
forceMount: !0,
|
|
3204
3204
|
asChild: !0,
|
|
3205
3205
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3243,7 +3243,7 @@ var ru = Yi(tu, nu), iu = R(ru), au = [
|
|
|
3243
3243
|
});
|
|
3244
3244
|
});
|
|
3245
3245
|
pu.displayName = "F0Accordion";
|
|
3246
|
-
var mu = R(gn("F0Accordion",
|
|
3246
|
+
var mu = R(gn("F0Accordion", sa(pu, fu))), hu = [
|
|
3247
3247
|
"info",
|
|
3248
3248
|
"warning",
|
|
3249
3249
|
"critical",
|
|
@@ -3306,7 +3306,7 @@ var vu = R(gn("F0ChipList", _u)), yu = [
|
|
|
3306
3306
|
"escape",
|
|
3307
3307
|
"commit",
|
|
3308
3308
|
"popupClose"
|
|
3309
|
-
], bu =
|
|
3309
|
+
], bu = Fs, xu = [
|
|
3310
3310
|
"info",
|
|
3311
3311
|
"warning",
|
|
3312
3312
|
"critical",
|
|
@@ -3314,9 +3314,9 @@ var vu = R(gn("F0ChipList", _u)), yu = [
|
|
|
3314
3314
|
"positive",
|
|
3315
3315
|
"transparent"
|
|
3316
3316
|
], Su = {
|
|
3317
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3317
|
+
get: async (e) => JSON.parse(localStorage.getItem(Lr(e)) ?? "{}"),
|
|
3318
3318
|
set: async (e, t) => {
|
|
3319
|
-
localStorage.setItem(
|
|
3319
|
+
localStorage.setItem(Lr(e), JSON.stringify(t));
|
|
3320
3320
|
}
|
|
3321
3321
|
}, Cu = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position: i = "right", size: a = "md", primaryAction: o, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
3322
3322
|
let [b, x] = J(n);
|
|
@@ -3414,7 +3414,7 @@ function Du({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3414
3414
|
children: /* @__PURE__ */ X("div", {
|
|
3415
3415
|
className: B("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
3416
3416
|
style: { maxWidth: i },
|
|
3417
|
-
children: /* @__PURE__ */ X(
|
|
3417
|
+
children: /* @__PURE__ */ X(Ns, {
|
|
3418
3418
|
filters: e,
|
|
3419
3419
|
tempFilters: p,
|
|
3420
3420
|
selectedFilterKey: d,
|
|
@@ -3433,11 +3433,11 @@ var Ou = Du;
|
|
|
3433
3433
|
//#endregion
|
|
3434
3434
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3435
3435
|
function ku(e) {
|
|
3436
|
-
let t =
|
|
3436
|
+
let t = la(e).shape, n = [];
|
|
3437
3437
|
for (let [e, r] of Object.entries(t)) {
|
|
3438
|
-
let t = r, i =
|
|
3438
|
+
let t = r, i = Ui(t);
|
|
3439
3439
|
if (!i) continue;
|
|
3440
|
-
let a =
|
|
3440
|
+
let a = di(t, i), o = pt(t, a), s = {
|
|
3441
3441
|
name: e,
|
|
3442
3442
|
type: a,
|
|
3443
3443
|
label: i.label,
|
|
@@ -3509,9 +3509,9 @@ function ju(e) {
|
|
|
3509
3509
|
let r = {
|
|
3510
3510
|
...n,
|
|
3511
3511
|
...e
|
|
3512
|
-
}, i =
|
|
3512
|
+
}, i = la(t), a = [];
|
|
3513
3513
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3514
|
-
let n =
|
|
3514
|
+
let n = Ui(t);
|
|
3515
3515
|
n?.renderIf ? ie(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3516
3516
|
}
|
|
3517
3517
|
return a;
|
|
@@ -3555,7 +3555,7 @@ var Nu = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3555
3555
|
modal: !0,
|
|
3556
3556
|
children: /* @__PURE__ */ Z("div", {
|
|
3557
3557
|
className: "flex flex-col gap-4 py-2",
|
|
3558
|
-
children: [/* @__PURE__ */ X(
|
|
3558
|
+
children: [/* @__PURE__ */ X(pr, {
|
|
3559
3559
|
type: n,
|
|
3560
3560
|
size: "lg"
|
|
3561
3561
|
}), /* @__PURE__ */ Z("div", {
|
|
@@ -3620,8 +3620,8 @@ var Nu = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3620
3620
|
return r.map((t) => ({
|
|
3621
3621
|
...t,
|
|
3622
3622
|
actions: {
|
|
3623
|
-
primary:
|
|
3624
|
-
secondary:
|
|
3623
|
+
primary: Qo(t.actions.primary).map((n, r) => e(t, n, "primary", r)),
|
|
3624
|
+
secondary: Qo(t.actions.secondary).map((n, r) => e(t, n, "secondary", r))
|
|
3625
3625
|
}
|
|
3626
3626
|
}));
|
|
3627
3627
|
}, [r]), d = K(() => {
|
|
@@ -3947,7 +3947,7 @@ var Zu = () => {}, Qu = ({ steps: e, children: t, isOpen: n, onClose: r = Zu, ti
|
|
|
3947
3947
|
onClose: r
|
|
3948
3948
|
}), g = z(), _ = e[h.currentStep], v = h.currentStep === 0, y = h.currentStep === e.length - 1, b = y ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, S = _?.previousLabel ?? c ?? g.wizard.previous, C = K(() => ({
|
|
3949
3949
|
label: b,
|
|
3950
|
-
icon: y ? void 0 :
|
|
3950
|
+
icon: y ? void 0 : Br,
|
|
3951
3951
|
onClick: () => void h.goNext(),
|
|
3952
3952
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
3953
3953
|
loading: h.loading
|
|
@@ -3958,7 +3958,7 @@ var Zu = () => {}, Qu = ({ steps: e, children: t, isOpen: n, onClose: r = Zu, ti
|
|
|
3958
3958
|
_
|
|
3959
3959
|
]), w = K(() => v ? void 0 : {
|
|
3960
3960
|
label: S,
|
|
3961
|
-
icon:
|
|
3961
|
+
icon: Jo,
|
|
3962
3962
|
onClick: h.goPrevious,
|
|
3963
3963
|
disabled: h.loading
|
|
3964
3964
|
}, [
|
|
@@ -4004,14 +4004,14 @@ Qu.displayName = "F0Wizard", R(Qu);
|
|
|
4004
4004
|
//#endregion
|
|
4005
4005
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4006
4006
|
function $u(e) {
|
|
4007
|
-
let t =
|
|
4008
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4007
|
+
let t = la(e).shape, n = Object.entries(t);
|
|
4008
|
+
return n.length !== 0 && n.every(([, e]) => Ui(e)?.disabled === !0);
|
|
4009
4009
|
}
|
|
4010
4010
|
function ed(e, t) {
|
|
4011
4011
|
if (t) return Object.keys(t);
|
|
4012
|
-
let n =
|
|
4012
|
+
let n = la(e).shape, r = /* @__PURE__ */ new Set();
|
|
4013
4013
|
for (let e of Object.values(n)) {
|
|
4014
|
-
let t =
|
|
4014
|
+
let t = Ui(e);
|
|
4015
4015
|
t?.section && r.add(t.section);
|
|
4016
4016
|
}
|
|
4017
4017
|
return Array.from(r);
|
|
@@ -4019,15 +4019,15 @@ function ed(e, t) {
|
|
|
4019
4019
|
function td(e, t) {
|
|
4020
4020
|
let n = e.shape, r = {};
|
|
4021
4021
|
for (let [e, i] of Object.entries(n)) {
|
|
4022
|
-
let n =
|
|
4022
|
+
let n = Ui(i);
|
|
4023
4023
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4024
4024
|
}
|
|
4025
|
-
return
|
|
4025
|
+
return Zi(r);
|
|
4026
4026
|
}
|
|
4027
4027
|
function nd(e, t, n) {
|
|
4028
4028
|
let r = t ?? {};
|
|
4029
4029
|
if (n) return n({ data: r });
|
|
4030
|
-
let i =
|
|
4030
|
+
let i = la(e).shape;
|
|
4031
4031
|
return Object.entries(i).every(([e, t]) => {
|
|
4032
4032
|
if (t.isOptional()) return !0;
|
|
4033
4033
|
let n = r[e];
|
|
@@ -4253,7 +4253,7 @@ function cd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4253
4253
|
});
|
|
4254
4254
|
}
|
|
4255
4255
|
function ld({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: u, allowStepSkipping: d, autoCloseOnLastStepSubmit: f, linkAfterLastStepSubmit: p, autoSkipCompletedSteps: m = !1, renderCustomField: h }) {
|
|
4256
|
-
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() =>
|
|
4256
|
+
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => la(_), [_]), T = K(() => ed(_, v), [_, v]), E = W((e) => $u(td(w, e)), [w]), D = ge(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
|
|
4257
4257
|
await D.submit();
|
|
4258
4258
|
}, [D]), j = W((e) => D.hasErrors, [D.hasErrors]), M = t ?? e.steps, N = K(() => M ?? T.map((e) => ({
|
|
4259
4259
|
title: v?.[e]?.title ?? e,
|
|
@@ -4536,14 +4536,14 @@ var _d = { open: gd }, vd = [
|
|
|
4536
4536
|
L.current = !1;
|
|
4537
4537
|
},
|
|
4538
4538
|
children: [
|
|
4539
|
-
ie ? /* @__PURE__ */ X(
|
|
4539
|
+
ie ? /* @__PURE__ */ X(Zo, {
|
|
4540
4540
|
label: n,
|
|
4541
4541
|
required: s,
|
|
4542
4542
|
htmlFor: S,
|
|
4543
4543
|
id: C,
|
|
4544
4544
|
disabled: c
|
|
4545
4545
|
}) : null,
|
|
4546
|
-
/* @__PURE__ */ Z(
|
|
4546
|
+
/* @__PURE__ */ Z(ca, {
|
|
4547
4547
|
value: [O],
|
|
4548
4548
|
onValueChange: j,
|
|
4549
4549
|
onValueCommit: M,
|
|
@@ -4558,14 +4558,14 @@ var _d = { open: gd }, vd = [
|
|
|
4558
4558
|
onMouseEnter: () => P(!0),
|
|
4559
4559
|
onMouseLeave: () => P(!1),
|
|
4560
4560
|
children: [
|
|
4561
|
-
/* @__PURE__ */ X(
|
|
4561
|
+
/* @__PURE__ */ X(Wi, {
|
|
4562
4562
|
className: Cd({ status: re }),
|
|
4563
4563
|
children: /* @__PURE__ */ X(pi, { className: wd({
|
|
4564
4564
|
status: re,
|
|
4565
4565
|
disabled: c
|
|
4566
4566
|
}) })
|
|
4567
4567
|
}),
|
|
4568
|
-
/* @__PURE__ */ X(
|
|
4568
|
+
/* @__PURE__ */ X(_i, {
|
|
4569
4569
|
id: S,
|
|
4570
4570
|
"aria-label": ie ? void 0 : T,
|
|
4571
4571
|
"aria-labelledby": ie ? C : void 0,
|
|
@@ -4604,7 +4604,7 @@ var _d = { open: gd }, vd = [
|
|
|
4604
4604
|
});
|
|
4605
4605
|
});
|
|
4606
4606
|
Dd.displayName = "F0Slider";
|
|
4607
|
-
var Od = gn("F0Slider",
|
|
4607
|
+
var Od = gn("F0Slider", sa(R(Dd), Sd)), kd = [
|
|
4608
4608
|
"completed",
|
|
4609
4609
|
"in-progress",
|
|
4610
4610
|
"not-started",
|
|
@@ -4759,7 +4759,7 @@ function Ud({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
4759
4759
|
onOpenChange: _,
|
|
4760
4760
|
openDelay: Vd,
|
|
4761
4761
|
closeDelay: Bd,
|
|
4762
|
-
children: [/* @__PURE__ */ X(
|
|
4762
|
+
children: [/* @__PURE__ */ X(us, {
|
|
4763
4763
|
asChild: !0,
|
|
4764
4764
|
children: /* @__PURE__ */ X("button", {
|
|
4765
4765
|
className: B(Dn(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", n),
|
|
@@ -4885,7 +4885,7 @@ function Yd(e) {
|
|
|
4885
4885
|
}
|
|
4886
4886
|
//#endregion
|
|
4887
4887
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
4888
|
-
var Xd = Jn.create(
|
|
4888
|
+
var Xd = Jn.create(fr), Zd = Dc(() => {
|
|
4889
4889
|
let e = z();
|
|
4890
4890
|
return /* @__PURE__ */ Z("div", {
|
|
4891
4891
|
className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
|
|
@@ -5241,12 +5241,12 @@ var pf = () => {
|
|
|
5241
5241
|
let { isQuestionTypeAllowed: e, datasets: t } = lf(), { t: n } = z(), r = [
|
|
5242
5242
|
{
|
|
5243
5243
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5244
|
-
icon:
|
|
5244
|
+
icon: yr,
|
|
5245
5245
|
questionType: "rating"
|
|
5246
5246
|
},
|
|
5247
5247
|
{
|
|
5248
5248
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5249
|
-
icon:
|
|
5249
|
+
icon: yi,
|
|
5250
5250
|
questionType: "multi-select"
|
|
5251
5251
|
},
|
|
5252
5252
|
{
|
|
@@ -5256,32 +5256,32 @@ var pf = () => {
|
|
|
5256
5256
|
},
|
|
5257
5257
|
{
|
|
5258
5258
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5259
|
-
icon:
|
|
5259
|
+
icon: Pi,
|
|
5260
5260
|
questionType: "text"
|
|
5261
5261
|
},
|
|
5262
5262
|
{
|
|
5263
5263
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5264
|
-
icon:
|
|
5264
|
+
icon: hr,
|
|
5265
5265
|
questionType: "longText"
|
|
5266
5266
|
},
|
|
5267
5267
|
{
|
|
5268
5268
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5269
|
-
icon:
|
|
5269
|
+
icon: ea,
|
|
5270
5270
|
questionType: "numeric"
|
|
5271
5271
|
},
|
|
5272
5272
|
{
|
|
5273
5273
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5274
|
-
icon:
|
|
5274
|
+
icon: da,
|
|
5275
5275
|
questionType: "link"
|
|
5276
5276
|
},
|
|
5277
5277
|
{
|
|
5278
5278
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5279
|
-
icon:
|
|
5279
|
+
icon: ci,
|
|
5280
5280
|
questionType: "date"
|
|
5281
5281
|
},
|
|
5282
5282
|
{
|
|
5283
5283
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5284
|
-
icon:
|
|
5284
|
+
icon: Rr,
|
|
5285
5285
|
questionType: "file"
|
|
5286
5286
|
},
|
|
5287
5287
|
{
|
|
@@ -5297,17 +5297,17 @@ var pf = () => {
|
|
|
5297
5297
|
})) : [];
|
|
5298
5298
|
return [...r, ...i];
|
|
5299
5299
|
}, mf = {
|
|
5300
|
-
rating:
|
|
5301
|
-
"multi-select":
|
|
5300
|
+
rating: yr,
|
|
5301
|
+
"multi-select": yi,
|
|
5302
5302
|
select: Ks,
|
|
5303
|
-
text:
|
|
5304
|
-
longText:
|
|
5305
|
-
numeric:
|
|
5306
|
-
link:
|
|
5307
|
-
date:
|
|
5303
|
+
text: Pi,
|
|
5304
|
+
longText: hr,
|
|
5305
|
+
numeric: ea,
|
|
5306
|
+
link: da,
|
|
5307
|
+
date: ci,
|
|
5308
5308
|
"dropdown-single": uo,
|
|
5309
5309
|
"dropdown-multi": uo,
|
|
5310
|
-
file:
|
|
5310
|
+
file: Rr,
|
|
5311
5311
|
checkbox: qs
|
|
5312
5312
|
}, hf = () => {
|
|
5313
5313
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = lf(), [a, o] = J(!1), s = pf(), { t: c } = z(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5341,7 +5341,7 @@ var pf = () => {
|
|
|
5341
5341
|
children: /* @__PURE__ */ Z("div", {
|
|
5342
5342
|
className: "flex w-full flex-row items-center gap-2",
|
|
5343
5343
|
children: [/* @__PURE__ */ X(H, {
|
|
5344
|
-
icon:
|
|
5344
|
+
icon: vr,
|
|
5345
5345
|
color: "default"
|
|
5346
5346
|
}), /* @__PURE__ */ X("span", {
|
|
5347
5347
|
className: "flex-1 text-base font-medium",
|
|
@@ -5394,7 +5394,7 @@ var pf = () => {
|
|
|
5394
5394
|
children: /* @__PURE__ */ Z("div", {
|
|
5395
5395
|
className: "flex w-full flex-row items-center gap-2",
|
|
5396
5396
|
children: [/* @__PURE__ */ X(H, {
|
|
5397
|
-
icon:
|
|
5397
|
+
icon: yi,
|
|
5398
5398
|
color: "default"
|
|
5399
5399
|
}), /* @__PURE__ */ X("span", {
|
|
5400
5400
|
className: "flex-1",
|
|
@@ -5574,7 +5574,7 @@ var Sf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(o
|
|
|
5574
5574
|
className: "flex w-full flex-row items-center gap-2",
|
|
5575
5575
|
children: [
|
|
5576
5576
|
/* @__PURE__ */ X(ro, {
|
|
5577
|
-
icon:
|
|
5577
|
+
icon: lr,
|
|
5578
5578
|
color: "default"
|
|
5579
5579
|
}),
|
|
5580
5580
|
/* @__PURE__ */ X("span", {
|
|
@@ -5686,7 +5686,7 @@ var Sf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(o
|
|
|
5686
5686
|
className: "flex w-full flex-row items-center gap-2",
|
|
5687
5687
|
children: [
|
|
5688
5688
|
/* @__PURE__ */ X(ro, {
|
|
5689
|
-
icon:
|
|
5689
|
+
icon: yi,
|
|
5690
5690
|
color: "default"
|
|
5691
5691
|
}),
|
|
5692
5692
|
/* @__PURE__ */ X("span", {
|
|
@@ -5715,11 +5715,11 @@ var Sf = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(o
|
|
|
5715
5715
|
let { t: a } = z(), { labels: o } = lf();
|
|
5716
5716
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(dc, {}) : null, /* @__PURE__ */ Z(sc, { children: [e ? /* @__PURE__ */ X(wf, {
|
|
5717
5717
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
5718
|
-
icon:
|
|
5718
|
+
icon: zr,
|
|
5719
5719
|
onClick: r
|
|
5720
5720
|
}) : null, t ? /* @__PURE__ */ X(wf, {
|
|
5721
5721
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
5722
|
-
icon:
|
|
5722
|
+
icon: Qi,
|
|
5723
5723
|
onClick: i,
|
|
5724
5724
|
critical: !0
|
|
5725
5725
|
}) : null] })] });
|
|
@@ -5754,19 +5754,19 @@ function Ef({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
5754
5754
|
}),
|
|
5755
5755
|
T ? /* @__PURE__ */ X(sc, { children: /* @__PURE__ */ X(Sf, {
|
|
5756
5756
|
label: o("surveyFormBuilder.labels.required"),
|
|
5757
|
-
icon:
|
|
5757
|
+
icon: Mr,
|
|
5758
5758
|
checked: !!l?.required,
|
|
5759
5759
|
onChange: _
|
|
5760
5760
|
}) }) : null,
|
|
5761
5761
|
E ? /* @__PURE__ */ X(sc, { children: /* @__PURE__ */ X(Sf, {
|
|
5762
5762
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
5763
|
-
icon:
|
|
5763
|
+
icon: yi,
|
|
5764
5764
|
checked: p,
|
|
5765
5765
|
onChange: b
|
|
5766
5766
|
}) }) : null,
|
|
5767
5767
|
D ? /* @__PURE__ */ X(sc, { children: /* @__PURE__ */ X(Sf, {
|
|
5768
5768
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
5769
|
-
icon:
|
|
5769
|
+
icon: Ls,
|
|
5770
5770
|
checked: m,
|
|
5771
5771
|
onChange: x
|
|
5772
5772
|
}) }) : null,
|
|
@@ -5811,7 +5811,7 @@ function Ff({ text: e }) {
|
|
|
5811
5811
|
return /* @__PURE__ */ X(Y, { children: t.map((e, t) => {
|
|
5812
5812
|
if (t % 2 == 0) return /* @__PURE__ */ X(Cc, { children: e }, t);
|
|
5813
5813
|
let [n, r] = Nf(e), i = Pf(n);
|
|
5814
|
-
return i ? /* @__PURE__ */ Z(Cc, { children: [/* @__PURE__ */ X(
|
|
5814
|
+
return i ? /* @__PURE__ */ Z(Cc, { children: [/* @__PURE__ */ X(Hi, {
|
|
5815
5815
|
variant: "inline",
|
|
5816
5816
|
href: i,
|
|
5817
5817
|
target: "_blank",
|
|
@@ -5981,7 +5981,7 @@ var If = ({ notice: e, className: t, children: n }) => {
|
|
|
5981
5981
|
children: /* @__PURE__ */ Z("div", {
|
|
5982
5982
|
className: "flex w-full flex-row items-center gap-2",
|
|
5983
5983
|
children: [/* @__PURE__ */ X(H, {
|
|
5984
|
-
icon:
|
|
5984
|
+
icon: vr,
|
|
5985
5985
|
color: "default"
|
|
5986
5986
|
}), /* @__PURE__ */ X("span", {
|
|
5987
5987
|
className: "flex-1 text-base font-medium",
|
|
@@ -6033,7 +6033,7 @@ var If = ({ notice: e, className: t, children: n }) => {
|
|
|
6033
6033
|
children: /* @__PURE__ */ Z("div", {
|
|
6034
6034
|
className: "flex w-full flex-row items-center gap-2",
|
|
6035
6035
|
children: [/* @__PURE__ */ X(H, {
|
|
6036
|
-
icon:
|
|
6036
|
+
icon: yi,
|
|
6037
6037
|
color: "default"
|
|
6038
6038
|
}), /* @__PURE__ */ X("span", {
|
|
6039
6039
|
className: "flex-1",
|
|
@@ -6061,7 +6061,7 @@ var zf = ({ value: e, label: t, ...n }) => {
|
|
|
6061
6061
|
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = lf(), s = Rf(n), { t: c } = z();
|
|
6062
6062
|
if (i) return /* @__PURE__ */ X(Lf, {
|
|
6063
6063
|
...n,
|
|
6064
|
-
children: /* @__PURE__ */ X(
|
|
6064
|
+
children: /* @__PURE__ */ X(ms, {
|
|
6065
6065
|
id: n.id,
|
|
6066
6066
|
checked: e ?? !1,
|
|
6067
6067
|
onCheckedChange: (e) => {
|
|
@@ -6081,7 +6081,7 @@ var zf = ({ value: e, label: t, ...n }) => {
|
|
|
6081
6081
|
...n,
|
|
6082
6082
|
children: /* @__PURE__ */ Z("div", {
|
|
6083
6083
|
className: "flex items-start",
|
|
6084
|
-
children: [/* @__PURE__ */ X(
|
|
6084
|
+
children: [/* @__PURE__ */ X(ms, {
|
|
6085
6085
|
checked: !1,
|
|
6086
6086
|
disabled: !0,
|
|
6087
6087
|
hideLabel: !0,
|
|
@@ -6267,8 +6267,8 @@ var zf = ({ value: e, label: t, ...n }) => {
|
|
|
6267
6267
|
required: t.required,
|
|
6268
6268
|
maxDecimals: 0,
|
|
6269
6269
|
placeholder: s,
|
|
6270
|
-
icon:
|
|
6271
|
-
}) : /* @__PURE__ */ X(
|
|
6270
|
+
icon: ea
|
|
6271
|
+
}) : /* @__PURE__ */ X(ta, {
|
|
6272
6272
|
type: "text",
|
|
6273
6273
|
size: "md",
|
|
6274
6274
|
value: s,
|
|
@@ -6276,7 +6276,7 @@ var zf = ({ value: e, label: t, ...n }) => {
|
|
|
6276
6276
|
disabled: !0,
|
|
6277
6277
|
label: n("surveyFormBuilder.answer.label"),
|
|
6278
6278
|
hideLabel: !0,
|
|
6279
|
-
icon:
|
|
6279
|
+
icon: ea
|
|
6280
6280
|
})
|
|
6281
6281
|
});
|
|
6282
6282
|
}, qf = ({ option: e, selected: n, onClick: r, onChangeLabel: i, disabled: a, isEmojiMode: o = !1 }) => {
|
|
@@ -6433,7 +6433,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6433
6433
|
children: [
|
|
6434
6434
|
/* @__PURE__ */ X("div", {
|
|
6435
6435
|
className: B("block", E ? "group-hover:hidden" : "cursor-default", p && "cursor-grabbing [&_button]:cursor-grabbing"),
|
|
6436
|
-
children: u === "multi-select" ? /* @__PURE__ */ X(
|
|
6436
|
+
children: u === "multi-select" ? /* @__PURE__ */ X(ms, {
|
|
6437
6437
|
title: f,
|
|
6438
6438
|
checked: o ? !!s : !1,
|
|
6439
6439
|
onCheckedChange: y,
|
|
@@ -6450,7 +6450,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6450
6450
|
children: /* @__PURE__ */ X("div", {
|
|
6451
6451
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6452
6452
|
children: /* @__PURE__ */ X(ro, {
|
|
6453
|
-
icon:
|
|
6453
|
+
icon: _r,
|
|
6454
6454
|
size: "sm"
|
|
6455
6455
|
})
|
|
6456
6456
|
})
|
|
@@ -6473,13 +6473,13 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6473
6473
|
children: [/* @__PURE__ */ X(V, {
|
|
6474
6474
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6475
6475
|
variant: "ghost",
|
|
6476
|
-
icon: c ?
|
|
6476
|
+
icon: c ? Ai : qi,
|
|
6477
6477
|
onClick: x,
|
|
6478
6478
|
hideLabel: !0
|
|
6479
6479
|
}), /* @__PURE__ */ X(V, {
|
|
6480
6480
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6481
6481
|
variant: "ghost",
|
|
6482
|
-
icon:
|
|
6482
|
+
icon: Qi,
|
|
6483
6483
|
hideLabel: !0,
|
|
6484
6484
|
onClick: S
|
|
6485
6485
|
})]
|
|
@@ -6706,7 +6706,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6706
6706
|
h && c.start(e);
|
|
6707
6707
|
},
|
|
6708
6708
|
children: /* @__PURE__ */ X(H, {
|
|
6709
|
-
icon:
|
|
6709
|
+
icon: _r,
|
|
6710
6710
|
size: "sm"
|
|
6711
6711
|
})
|
|
6712
6712
|
}) : null, /* @__PURE__ */ X(tp, { ...e.question })]
|
|
@@ -6736,7 +6736,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6736
6736
|
f && i.start(e);
|
|
6737
6737
|
},
|
|
6738
6738
|
children: /* @__PURE__ */ X(H, {
|
|
6739
|
-
icon:
|
|
6739
|
+
icon: _r,
|
|
6740
6740
|
size: "sm"
|
|
6741
6741
|
})
|
|
6742
6742
|
}) : null, /* @__PURE__ */ X(tp, { ...e })]
|
|
@@ -6768,7 +6768,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6768
6768
|
});
|
|
6769
6769
|
}, x = [{
|
|
6770
6770
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
6771
|
-
icon:
|
|
6771
|
+
icon: zr,
|
|
6772
6772
|
onClick: () => {
|
|
6773
6773
|
d?.({
|
|
6774
6774
|
elementId: e,
|
|
@@ -6777,7 +6777,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6777
6777
|
}
|
|
6778
6778
|
}, {
|
|
6779
6779
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
6780
|
-
icon:
|
|
6780
|
+
icon: Qi,
|
|
6781
6781
|
onClick: () => {
|
|
6782
6782
|
u(e);
|
|
6783
6783
|
},
|
|
@@ -6786,7 +6786,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6786
6786
|
G(() => {
|
|
6787
6787
|
T.current?.focus({ preventScroll: !0 });
|
|
6788
6788
|
}, []);
|
|
6789
|
-
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(
|
|
6789
|
+
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(Ss, {
|
|
6790
6790
|
text: h("surveyFormBuilder.labels.locked"),
|
|
6791
6791
|
icon: Ys,
|
|
6792
6792
|
className: "bg-f1-background"
|
|
@@ -6822,7 +6822,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6822
6822
|
}) : null,
|
|
6823
6823
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
6824
6824
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
6825
|
-
children: /* @__PURE__ */ X(
|
|
6825
|
+
children: /* @__PURE__ */ X(Wr, {
|
|
6826
6826
|
items: x,
|
|
6827
6827
|
icon: Js,
|
|
6828
6828
|
open: p,
|
|
@@ -6901,7 +6901,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6901
6901
|
o.start(e);
|
|
6902
6902
|
},
|
|
6903
6903
|
children: /* @__PURE__ */ X(H, {
|
|
6904
|
-
icon:
|
|
6904
|
+
icon: _r,
|
|
6905
6905
|
size: "sm"
|
|
6906
6906
|
})
|
|
6907
6907
|
}) : null, /* @__PURE__ */ X(ap, {
|
|
@@ -6931,7 +6931,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6931
6931
|
p || x.push({
|
|
6932
6932
|
type: "toggle",
|
|
6933
6933
|
label: l,
|
|
6934
|
-
icon:
|
|
6934
|
+
icon: Mr,
|
|
6935
6935
|
checked: !!r?.required,
|
|
6936
6936
|
onCheckedChange: m
|
|
6937
6937
|
});
|
|
@@ -6976,7 +6976,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6976
6976
|
selected: s === e && t === "dropdown-single"
|
|
6977
6977
|
}, {
|
|
6978
6978
|
label: f,
|
|
6979
|
-
icon:
|
|
6979
|
+
icon: yi,
|
|
6980
6980
|
onClick: () => h("dropdown-multi", e),
|
|
6981
6981
|
selected: s === e && t === "dropdown-multi"
|
|
6982
6982
|
}]
|
|
@@ -6990,16 +6990,16 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6990
6990
|
return x.push({
|
|
6991
6991
|
type: "submenu",
|
|
6992
6992
|
label: u,
|
|
6993
|
-
icon:
|
|
6993
|
+
icon: lr,
|
|
6994
6994
|
selectedLabel: E,
|
|
6995
6995
|
children: w
|
|
6996
6996
|
}), x.push({ type: "separator" }), x.push({
|
|
6997
6997
|
label: i,
|
|
6998
|
-
icon:
|
|
6998
|
+
icon: zr,
|
|
6999
6999
|
onClick: y
|
|
7000
7000
|
}), n && x.push({
|
|
7001
7001
|
label: a,
|
|
7002
|
-
icon:
|
|
7002
|
+
icon: Qi,
|
|
7003
7003
|
onClick: b,
|
|
7004
7004
|
critical: !0
|
|
7005
7005
|
}), x;
|
|
@@ -7020,12 +7020,12 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7020
7020
|
return {
|
|
7021
7021
|
id: i,
|
|
7022
7022
|
label: t.title || n,
|
|
7023
|
-
icon:
|
|
7023
|
+
icon: vr,
|
|
7024
7024
|
onClick: y,
|
|
7025
7025
|
...!h && !g && !t.locked && { otherActions: [
|
|
7026
7026
|
{
|
|
7027
7027
|
label: o,
|
|
7028
|
-
icon:
|
|
7028
|
+
icon: zr,
|
|
7029
7029
|
onClick: () => m?.({
|
|
7030
7030
|
elementId: t.id,
|
|
7031
7031
|
type: "section"
|
|
@@ -7034,7 +7034,7 @@ var Qf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7034
7034
|
{ type: "separator" },
|
|
7035
7035
|
{
|
|
7036
7036
|
label: s,
|
|
7037
|
-
icon:
|
|
7037
|
+
icon: Qi,
|
|
7038
7038
|
onClick: () => p(t.id),
|
|
7039
7039
|
critical: !0
|
|
7040
7040
|
}
|
|
@@ -7101,7 +7101,7 @@ function fp(e, t) {
|
|
|
7101
7101
|
return i;
|
|
7102
7102
|
}
|
|
7103
7103
|
var pp = ({ elements: e, onChange: t, answering: n }) => {
|
|
7104
|
-
let { t: r } = z(), { disabled: i, labels: a } = lf(), { portalContainer: o } = Oc(
|
|
7104
|
+
let { t: r } = z(), { disabled: i, labels: a } = lf(), { portalContainer: o } = Oc(Uo), s = lp(e, {
|
|
7105
7105
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
7106
7106
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
7107
7107
|
duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -7549,7 +7549,7 @@ function Mp({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7549
7549
|
s || a === "multi-select" && e.target.closest("input") || p(t.value);
|
|
7550
7550
|
},
|
|
7551
7551
|
children: [
|
|
7552
|
-
a === "multi-select" ? /* @__PURE__ */ X(
|
|
7552
|
+
a === "multi-select" ? /* @__PURE__ */ X(ms, {
|
|
7553
7553
|
title: t.label,
|
|
7554
7554
|
checked: !!n,
|
|
7555
7555
|
onCheckedChange: () => f(t.value),
|
|
@@ -7562,7 +7562,7 @@ function Mp({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
7562
7562
|
u ? /* @__PURE__ */ X("div", {
|
|
7563
7563
|
className: "min-h-8 p-1",
|
|
7564
7564
|
children: /* @__PURE__ */ X(H, {
|
|
7565
|
-
icon: t.correct ?
|
|
7565
|
+
icon: t.correct ? qi : Ai,
|
|
7566
7566
|
color: t.correct ? "positive" : "critical",
|
|
7567
7567
|
"aria-hidden": !0
|
|
7568
7568
|
})
|
|
@@ -7584,7 +7584,7 @@ var Np = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, Pp = () => ({
|
|
|
7584
7584
|
status: "idle"
|
|
7585
7585
|
});
|
|
7586
7586
|
function Fp(e, t) {
|
|
7587
|
-
return
|
|
7587
|
+
return ki().optional().superRefine((n, r) => {
|
|
7588
7588
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
7589
7589
|
code: "custom",
|
|
7590
7590
|
message: t("forms.validation.required")
|
|
@@ -7592,7 +7592,7 @@ function Fp(e, t) {
|
|
|
7592
7592
|
});
|
|
7593
7593
|
}
|
|
7594
7594
|
function Ip(e, t) {
|
|
7595
|
-
return
|
|
7595
|
+
return ki().optional().superRefine((n, r) => {
|
|
7596
7596
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
7597
7597
|
code: "custom",
|
|
7598
7598
|
message: t("forms.validation.required")
|
|
@@ -7603,7 +7603,7 @@ function Ip(e, t) {
|
|
|
7603
7603
|
});
|
|
7604
7604
|
}
|
|
7605
7605
|
function Lp(e, t) {
|
|
7606
|
-
return
|
|
7606
|
+
return Vi().optional().superRefine((n, r) => {
|
|
7607
7607
|
e && n == null && r.addIssue({
|
|
7608
7608
|
code: "custom",
|
|
7609
7609
|
message: t("forms.validation.required")
|
|
@@ -7611,7 +7611,7 @@ function Lp(e, t) {
|
|
|
7611
7611
|
});
|
|
7612
7612
|
}
|
|
7613
7613
|
function Rp(e, t) {
|
|
7614
|
-
return
|
|
7614
|
+
return cr(ki()).optional().superRefine((n, r) => {
|
|
7615
7615
|
e && (!n || n.length === 0) && r.addIssue({
|
|
7616
7616
|
code: "custom",
|
|
7617
7617
|
message: t("forms.validation.required")
|
|
@@ -7619,7 +7619,7 @@ function Rp(e, t) {
|
|
|
7619
7619
|
});
|
|
7620
7620
|
}
|
|
7621
7621
|
function zp(e, t) {
|
|
7622
|
-
return
|
|
7622
|
+
return oa().optional().superRefine((n, r) => {
|
|
7623
7623
|
e && !n && r.addIssue({
|
|
7624
7624
|
code: "custom",
|
|
7625
7625
|
message: t("forms.validation.required")
|
|
@@ -7628,7 +7628,7 @@ function zp(e, t) {
|
|
|
7628
7628
|
}
|
|
7629
7629
|
var Bp = Rp;
|
|
7630
7630
|
function Vp(e, t) {
|
|
7631
|
-
return
|
|
7631
|
+
return gi().optional().superRefine((n, r) => {
|
|
7632
7632
|
e && !n && r.addIssue({
|
|
7633
7633
|
code: "custom",
|
|
7634
7634
|
message: t("forms.validation.required")
|
|
@@ -7681,7 +7681,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7681
7681
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
7682
7682
|
disabled: i
|
|
7683
7683
|
};
|
|
7684
|
-
return
|
|
7684
|
+
return ai(Fp(!!e.required, t), {
|
|
7685
7685
|
...l,
|
|
7686
7686
|
fieldType: "custom",
|
|
7687
7687
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7709,7 +7709,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7709
7709
|
rows: 4,
|
|
7710
7710
|
disabled: i
|
|
7711
7711
|
};
|
|
7712
|
-
return
|
|
7712
|
+
return ai(Fp(!!e.required, t), {
|
|
7713
7713
|
...l,
|
|
7714
7714
|
fieldType: "custom",
|
|
7715
7715
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7736,7 +7736,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7736
7736
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
7737
7737
|
disabled: i
|
|
7738
7738
|
};
|
|
7739
|
-
return
|
|
7739
|
+
return ai(Lp(!!e.required, t), {
|
|
7740
7740
|
...l,
|
|
7741
7741
|
fieldType: "custom",
|
|
7742
7742
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7764,7 +7764,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7764
7764
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
7765
7765
|
disabled: i
|
|
7766
7766
|
};
|
|
7767
|
-
return
|
|
7767
|
+
return ai(Ip(!!e.required, t), {
|
|
7768
7768
|
...l,
|
|
7769
7769
|
fieldType: "custom",
|
|
7770
7770
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7791,7 +7791,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7791
7791
|
clearable: !e.required,
|
|
7792
7792
|
disabled: i
|
|
7793
7793
|
};
|
|
7794
|
-
return
|
|
7794
|
+
return ai(zp(!!e.required, t), {
|
|
7795
7795
|
...l,
|
|
7796
7796
|
fieldType: "custom",
|
|
7797
7797
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7827,7 +7827,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7827
7827
|
showSearchBox: r,
|
|
7828
7828
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7829
7829
|
};
|
|
7830
|
-
return
|
|
7830
|
+
return ai(Fp(!!e.required, t), {
|
|
7831
7831
|
...l,
|
|
7832
7832
|
fieldType: "custom",
|
|
7833
7833
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -7876,7 +7876,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7876
7876
|
showSearchBox: r,
|
|
7877
7877
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
7878
7878
|
};
|
|
7879
|
-
return
|
|
7879
|
+
return ai(Rp(!!e.required, t), {
|
|
7880
7880
|
...l,
|
|
7881
7881
|
fieldType: "custom",
|
|
7882
7882
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -7903,7 +7903,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7903
7903
|
disabled: i,
|
|
7904
7904
|
showAnswerValidation: r
|
|
7905
7905
|
};
|
|
7906
|
-
return
|
|
7906
|
+
return ai(Fp(!!e.required, t), {
|
|
7907
7907
|
...l,
|
|
7908
7908
|
fieldType: "custom",
|
|
7909
7909
|
fieldConfig: n,
|
|
@@ -7926,7 +7926,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7926
7926
|
disabled: i,
|
|
7927
7927
|
showAnswerValidation: r
|
|
7928
7928
|
};
|
|
7929
|
-
return
|
|
7929
|
+
return ai(Rp(!!e.required, t), {
|
|
7930
7930
|
...l,
|
|
7931
7931
|
fieldType: "custom",
|
|
7932
7932
|
fieldConfig: n,
|
|
@@ -7948,7 +7948,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7948
7948
|
maxLabel: n.maxLabel,
|
|
7949
7949
|
disabled: i
|
|
7950
7950
|
};
|
|
7951
|
-
return
|
|
7951
|
+
return ai(Lp(!!e.required, t), {
|
|
7952
7952
|
...l,
|
|
7953
7953
|
fieldType: "custom",
|
|
7954
7954
|
fieldConfig: r,
|
|
@@ -7974,7 +7974,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
7974
7974
|
useUpload: r ?? Pp,
|
|
7975
7975
|
disabled: i || !r
|
|
7976
7976
|
};
|
|
7977
|
-
return
|
|
7977
|
+
return ai(Bp(!!e.required, t), {
|
|
7978
7978
|
...l,
|
|
7979
7979
|
fieldType: "custom",
|
|
7980
7980
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -8000,7 +8000,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8000
8000
|
label: n.label || c,
|
|
8001
8001
|
disabled: i
|
|
8002
8002
|
};
|
|
8003
|
-
return
|
|
8003
|
+
return ai(Vp(!!e.required, t), {
|
|
8004
8004
|
...l,
|
|
8005
8005
|
fieldType: "custom",
|
|
8006
8006
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Lf, {
|
|
@@ -8019,7 +8019,7 @@ function Kp({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8019
8019
|
})
|
|
8020
8020
|
});
|
|
8021
8021
|
}
|
|
8022
|
-
default: return
|
|
8022
|
+
default: return ai(ii(), {
|
|
8023
8023
|
...l,
|
|
8024
8024
|
fieldType: "custom",
|
|
8025
8025
|
render: () => null
|
|
@@ -8066,7 +8066,7 @@ function Xp({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8066
8066
|
}), f[t] = a?.[t] ?? Hp(e, r);
|
|
8067
8067
|
}
|
|
8068
8068
|
return {
|
|
8069
|
-
schema:
|
|
8069
|
+
schema: Zi(d),
|
|
8070
8070
|
defaultValues: f,
|
|
8071
8071
|
flatQuestions: m,
|
|
8072
8072
|
sections: p
|
|
@@ -8202,16 +8202,16 @@ function rm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8202
8202
|
]);
|
|
8203
8203
|
let Se = !!v && P && !p && !h, Ce = u && !p, we = Se || Ce ? [...Se ? [{
|
|
8204
8204
|
label: v.label,
|
|
8205
|
-
icon:
|
|
8205
|
+
icon: mr,
|
|
8206
8206
|
onClick: ye
|
|
8207
8207
|
}] : [], ...Ce ? [{
|
|
8208
8208
|
label: b(T ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8209
|
-
icon: T ?
|
|
8209
|
+
icon: T ? Gi : si,
|
|
8210
8210
|
onClick: () => E((e) => !e)
|
|
8211
8211
|
}] : []] : void 0, Te = P ? p || ee ? void 0 : te ? I && !N.isLastStep ? {
|
|
8212
8212
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8213
8213
|
onClick: N.goToNext,
|
|
8214
|
-
icon:
|
|
8214
|
+
icon: Br
|
|
8215
8215
|
} : {
|
|
8216
8216
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
8217
8217
|
onClick: Zp,
|
|
@@ -8219,7 +8219,7 @@ function rm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8219
8219
|
} : I && !N.isLastStep ? {
|
|
8220
8220
|
label: b("surveyAnsweringForm.actions.next"),
|
|
8221
8221
|
onClick: _e,
|
|
8222
|
-
icon:
|
|
8222
|
+
icon: Br,
|
|
8223
8223
|
disabled: x
|
|
8224
8224
|
} : {
|
|
8225
8225
|
label: b("surveyAnsweringForm.actions.submit"),
|
|
@@ -8229,9 +8229,9 @@ function rm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8229
8229
|
} : void 0, Ee = P ? p || ee ? void 0 : I && !N.isFirstStep ? {
|
|
8230
8230
|
label: b("surveyAnsweringForm.actions.previous"),
|
|
8231
8231
|
onClick: ve,
|
|
8232
|
-
icon:
|
|
8232
|
+
icon: Jo
|
|
8233
8233
|
} : void 0 : void 0, De = n === "all-questions" && P && !p, Oe = I && P && !p, ke = I && !!N.currentQuestion?.sectionTitle && !p, Ae = ue === "center" || ue === "fullscreen";
|
|
8234
|
-
return /* @__PURE__ */ X(
|
|
8234
|
+
return /* @__PURE__ */ X(ei, {
|
|
8235
8235
|
isOpen: o,
|
|
8236
8236
|
onClose: s,
|
|
8237
8237
|
title: r,
|
|
@@ -8257,7 +8257,7 @@ function rm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8257
8257
|
}) : null,
|
|
8258
8258
|
Oe ? /* @__PURE__ */ X("div", {
|
|
8259
8259
|
className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
|
|
8260
|
-
children: /* @__PURE__ */ X(
|
|
8260
|
+
children: /* @__PURE__ */ X(es, {
|
|
8261
8261
|
label: "Value",
|
|
8262
8262
|
value: N.progress,
|
|
8263
8263
|
hideLabel: !0
|
|
@@ -8482,10 +8482,10 @@ var cm = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
8482
8482
|
}),
|
|
8483
8483
|
s || c ? /* @__PURE__ */ Z("div", {
|
|
8484
8484
|
className: "flex justify-start gap-2",
|
|
8485
|
-
children: [s ? /* @__PURE__ */ X(
|
|
8485
|
+
children: [s ? /* @__PURE__ */ X(Ss, {
|
|
8486
8486
|
icon: s.icon,
|
|
8487
8487
|
text: s.label
|
|
8488
|
-
}) : null, c ? /* @__PURE__ */ X(
|
|
8488
|
+
}) : null, c ? /* @__PURE__ */ X(Io, {
|
|
8489
8489
|
variant: c.variant || "positive",
|
|
8490
8490
|
text: c.label
|
|
8491
8491
|
}) : null]
|
|
@@ -8510,13 +8510,13 @@ function fm({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8510
8510
|
let [o, s] = J(e);
|
|
8511
8511
|
return G(() => {
|
|
8512
8512
|
s(e);
|
|
8513
|
-
}, [e]), /* @__PURE__ */ X(
|
|
8513
|
+
}, [e]), /* @__PURE__ */ X(Kr, {
|
|
8514
8514
|
open: o,
|
|
8515
8515
|
onOpenChange: (e) => {
|
|
8516
8516
|
s(e), e || t();
|
|
8517
8517
|
},
|
|
8518
8518
|
modal: !0,
|
|
8519
|
-
children: /* @__PURE__ */ Z(
|
|
8519
|
+
children: /* @__PURE__ */ Z(kr, {
|
|
8520
8520
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
8521
8521
|
container: a,
|
|
8522
8522
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -8529,7 +8529,7 @@ function fm({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
8529
8529
|
}) : null, n]
|
|
8530
8530
|
}), /* @__PURE__ */ X(nr, {
|
|
8531
8531
|
variant: "outline",
|
|
8532
|
-
icon:
|
|
8532
|
+
icon: Ai,
|
|
8533
8533
|
onClick: t,
|
|
8534
8534
|
label: "Close modal",
|
|
8535
8535
|
hideLabel: !0
|
|
@@ -8619,14 +8619,14 @@ function hm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8619
8619
|
o && o(!l);
|
|
8620
8620
|
}, [o, l]);
|
|
8621
8621
|
let f = e?.includes(".mp4");
|
|
8622
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
8622
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(oi, {
|
|
8623
8623
|
style: { width: a },
|
|
8624
8624
|
className: "relative bg-f1-background p-1",
|
|
8625
|
-
children: [/* @__PURE__ */ Z(
|
|
8625
|
+
children: [/* @__PURE__ */ Z(ia, { children: [i ? /* @__PURE__ */ X("div", {
|
|
8626
8626
|
className: "absolute right-2 top-2 z-10",
|
|
8627
8627
|
children: /* @__PURE__ */ X(V, {
|
|
8628
8628
|
variant: "ghost",
|
|
8629
|
-
icon:
|
|
8629
|
+
icon: Ai,
|
|
8630
8630
|
size: "sm",
|
|
8631
8631
|
hideLabel: !0,
|
|
8632
8632
|
onClick: d,
|
|
@@ -8652,7 +8652,7 @@ function hm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8652
8652
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8653
8653
|
children: n
|
|
8654
8654
|
})]
|
|
8655
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
8655
|
+
})] })] }), s ? /* @__PURE__ */ X(fi, {
|
|
8656
8656
|
className: "p-3",
|
|
8657
8657
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(E, {
|
|
8658
8658
|
label: e.label,
|
|
@@ -8675,7 +8675,7 @@ function hm({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8675
8675
|
var gm = R(hm), _m = ({ onDismiss: e }) => {
|
|
8676
8676
|
let { actions: t } = z();
|
|
8677
8677
|
return /* @__PURE__ */ X(V, {
|
|
8678
|
-
icon:
|
|
8678
|
+
icon: Ai,
|
|
8679
8679
|
label: t.close,
|
|
8680
8680
|
hideLabel: !0,
|
|
8681
8681
|
variant: "outline",
|
|
@@ -8766,7 +8766,7 @@ bm.displayName = "UpsellingBanner";
|
|
|
8766
8766
|
var xm = R(bm);
|
|
8767
8767
|
//#endregion
|
|
8768
8768
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
8769
|
-
function Sm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
8769
|
+
function Sm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = fa, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
8770
8770
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
8771
8771
|
t(e), h && h();
|
|
8772
8772
|
}, w = async (e) => {
|
|
@@ -8826,9 +8826,9 @@ function Sm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8826
8826
|
}
|
|
8827
8827
|
var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
8828
8828
|
let a = z(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
8829
|
-
return /* @__PURE__ */ Z(
|
|
8829
|
+
return /* @__PURE__ */ Z(oi, {
|
|
8830
8830
|
className: "flex flex-col overflow-hidden",
|
|
8831
|
-
children: [/* @__PURE__ */ Z(
|
|
8831
|
+
children: [/* @__PURE__ */ Z(ia, {
|
|
8832
8832
|
className: "flex flex-col gap-4 p-0",
|
|
8833
8833
|
children: [/* @__PURE__ */ X("div", {
|
|
8834
8834
|
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"),
|
|
@@ -8843,7 +8843,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8843
8843
|
children: n
|
|
8844
8844
|
})]
|
|
8845
8845
|
})]
|
|
8846
|
-
}), /* @__PURE__ */ X(
|
|
8846
|
+
}), /* @__PURE__ */ X(fi, {
|
|
8847
8847
|
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",
|
|
8848
8848
|
children: i ? /* @__PURE__ */ X(V, {
|
|
8849
8849
|
variant: "default",
|
|
@@ -8874,7 +8874,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8874
8874
|
}), /* @__PURE__ */ X("span", {
|
|
8875
8875
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
8876
8876
|
children: /* @__PURE__ */ X(H, {
|
|
8877
|
-
icon: t ? uo :
|
|
8877
|
+
icon: t ? uo : Hs,
|
|
8878
8878
|
size: "sm",
|
|
8879
8879
|
className: B("transition-transform duration-200", t && "text-f1-foreground")
|
|
8880
8880
|
})
|
|
@@ -8890,7 +8890,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8890
8890
|
})
|
|
8891
8891
|
})]
|
|
8892
8892
|
}), Em = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
8893
|
-
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
8893
|
+
let o = z()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Cr, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
8894
8894
|
u,
|
|
8895
8895
|
r,
|
|
8896
8896
|
c
|
|
@@ -8905,9 +8905,9 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8905
8905
|
i,
|
|
8906
8906
|
a
|
|
8907
8907
|
]);
|
|
8908
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
8908
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(oi, {
|
|
8909
8909
|
className: "flex flex-col overflow-hidden",
|
|
8910
|
-
children: [/* @__PURE__ */ Z(
|
|
8910
|
+
children: [/* @__PURE__ */ Z(Li, {
|
|
8911
8911
|
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",
|
|
8912
8912
|
children: [/* @__PURE__ */ X("div", {
|
|
8913
8913
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -8920,7 +8920,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8920
8920
|
className: "text-base font-semibold text-f1-foreground",
|
|
8921
8921
|
children: o
|
|
8922
8922
|
})]
|
|
8923
|
-
}), /* @__PURE__ */ X(
|
|
8923
|
+
}), /* @__PURE__ */ X(ia, {
|
|
8924
8924
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
8925
8925
|
children: t.map((e) => /* @__PURE__ */ X(Tm, {
|
|
8926
8926
|
item: e,
|
|
@@ -8931,9 +8931,9 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8931
8931
|
});
|
|
8932
8932
|
}, Dm = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
8933
8933
|
let a = z()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
8934
|
-
return /* @__PURE__ */ Z(
|
|
8934
|
+
return /* @__PURE__ */ Z(oi, {
|
|
8935
8935
|
className: "flex flex-col overflow-hidden",
|
|
8936
|
-
children: [/* @__PURE__ */ X(
|
|
8936
|
+
children: [/* @__PURE__ */ X(ia, {
|
|
8937
8937
|
className: "flex flex-col gap-3 p-0",
|
|
8938
8938
|
children: /* @__PURE__ */ Z("div", {
|
|
8939
8939
|
className: "flex items-start gap-3",
|
|
@@ -8955,7 +8955,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8955
8955
|
})]
|
|
8956
8956
|
})]
|
|
8957
8957
|
})
|
|
8958
|
-
}), /* @__PURE__ */ X(
|
|
8958
|
+
}), /* @__PURE__ */ X(fi, {
|
|
8959
8959
|
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",
|
|
8960
8960
|
children: r ? /* @__PURE__ */ X(V, {
|
|
8961
8961
|
variant: "outline",
|
|
@@ -8973,12 +8973,12 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8973
8973
|
});
|
|
8974
8974
|
}, Om = ({ onAction: e, actionHref: t }) => {
|
|
8975
8975
|
let n = z()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
|
|
8976
|
-
return /* @__PURE__ */ Z(
|
|
8976
|
+
return /* @__PURE__ */ Z(oi, {
|
|
8977
8977
|
className: "flex flex-col overflow-hidden",
|
|
8978
|
-
children: [/* @__PURE__ */ Z(
|
|
8978
|
+
children: [/* @__PURE__ */ Z(ia, {
|
|
8979
8979
|
className: "flex flex-col gap-3 p-0",
|
|
8980
8980
|
children: [/* @__PURE__ */ X(H, {
|
|
8981
|
-
icon:
|
|
8981
|
+
icon: ci,
|
|
8982
8982
|
size: "lg"
|
|
8983
8983
|
}), /* @__PURE__ */ Z("div", {
|
|
8984
8984
|
className: "flex flex-col gap-0.5",
|
|
@@ -8990,7 +8990,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
8990
8990
|
children: i
|
|
8991
8991
|
})]
|
|
8992
8992
|
})]
|
|
8993
|
-
}), /* @__PURE__ */ X(
|
|
8993
|
+
}), /* @__PURE__ */ X(fi, {
|
|
8994
8994
|
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",
|
|
8995
8995
|
children: t ? /* @__PURE__ */ X(V, {
|
|
8996
8996
|
variant: "default",
|
|
@@ -9036,9 +9036,9 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9036
9036
|
e,
|
|
9037
9037
|
t
|
|
9038
9038
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
9039
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
9039
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(oi, {
|
|
9040
9040
|
className: "flex flex-col overflow-hidden",
|
|
9041
|
-
children: [/* @__PURE__ */ Z(
|
|
9041
|
+
children: [/* @__PURE__ */ Z(ia, {
|
|
9042
9042
|
className: "flex flex-col gap-4",
|
|
9043
9043
|
children: [/* @__PURE__ */ X("h3", {
|
|
9044
9044
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -9047,7 +9047,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9047
9047
|
className: "flex flex-col gap-3",
|
|
9048
9048
|
children: d.options.map((e) => /* @__PURE__ */ X("div", {
|
|
9049
9049
|
className: "flex items-center gap-2.5",
|
|
9050
|
-
children: /* @__PURE__ */ X(
|
|
9050
|
+
children: /* @__PURE__ */ X(ms, {
|
|
9051
9051
|
id: e.id,
|
|
9052
9052
|
title: e.label,
|
|
9053
9053
|
checked: f.includes(e.id),
|
|
@@ -9055,7 +9055,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9055
9055
|
})
|
|
9056
9056
|
}, e.id))
|
|
9057
9057
|
})]
|
|
9058
|
-
}), /* @__PURE__ */ Z(
|
|
9058
|
+
}), /* @__PURE__ */ Z(fi, {
|
|
9059
9059
|
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",
|
|
9060
9060
|
children: [/* @__PURE__ */ X("div", {
|
|
9061
9061
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9067,7 +9067,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9067
9067
|
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",
|
|
9068
9068
|
"aria-label": "Previous",
|
|
9069
9069
|
children: /* @__PURE__ */ X(H, {
|
|
9070
|
-
icon:
|
|
9070
|
+
icon: ts,
|
|
9071
9071
|
size: "sm"
|
|
9072
9072
|
})
|
|
9073
9073
|
}),
|
|
@@ -9086,7 +9086,7 @@ var Cm = R(Sm), wm = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9086
9086
|
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",
|
|
9087
9087
|
"aria-label": "Next",
|
|
9088
9088
|
children: /* @__PURE__ */ X(H, {
|
|
9089
|
-
icon:
|
|
9089
|
+
icon: Hs,
|
|
9090
9090
|
size: "sm"
|
|
9091
9091
|
})
|
|
9092
9092
|
})
|
|
@@ -9522,7 +9522,7 @@ function uh(e, t) {
|
|
|
9522
9522
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
9523
9523
|
}
|
|
9524
9524
|
async function dh(e, t, n, { keys: r, preamble: i } = {}) {
|
|
9525
|
-
uh(await
|
|
9525
|
+
uh(await dr([{
|
|
9526
9526
|
name: "Data",
|
|
9527
9527
|
rows: ch({
|
|
9528
9528
|
columns: e,
|
|
@@ -9544,7 +9544,7 @@ function ph(e, t, n) {
|
|
|
9544
9544
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
9545
9545
|
}
|
|
9546
9546
|
async function mh(e, t) {
|
|
9547
|
-
uh(await
|
|
9547
|
+
uh(await dr(e.map((e) => ({
|
|
9548
9548
|
name: e.name,
|
|
9549
9549
|
rows: ch(e)
|
|
9550
9550
|
}))), `${t}.xlsx`);
|
|
@@ -9605,23 +9605,23 @@ function _h({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
9605
9605
|
return K(() => n ? [
|
|
9606
9606
|
{
|
|
9607
9607
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
9608
|
-
icon:
|
|
9608
|
+
icon: Ni,
|
|
9609
9609
|
onClick: () => a("png")
|
|
9610
9610
|
},
|
|
9611
9611
|
{
|
|
9612
9612
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
9613
|
-
icon:
|
|
9613
|
+
icon: Ni,
|
|
9614
9614
|
onClick: () => a("jpg")
|
|
9615
9615
|
},
|
|
9616
9616
|
{ type: "separator" },
|
|
9617
9617
|
{
|
|
9618
9618
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
9619
|
-
icon:
|
|
9619
|
+
icon: ji,
|
|
9620
9620
|
onClick: s
|
|
9621
9621
|
},
|
|
9622
9622
|
{
|
|
9623
9623
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
9624
|
-
icon:
|
|
9624
|
+
icon: ji,
|
|
9625
9625
|
onClick: c
|
|
9626
9626
|
}
|
|
9627
9627
|
] : [], [
|
|
@@ -9679,7 +9679,7 @@ function yh({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9679
9679
|
}, [h, d]), G(() => {
|
|
9680
9680
|
l || m(t);
|
|
9681
9681
|
}, [l, t]);
|
|
9682
|
-
let v = Oc(
|
|
9682
|
+
let v = Oc(Uo), y = v.portalContainer && (v.position === "center" || v.position === "fullscreen") ? v.portalContainer : void 0, b = K(() => Is(e, t, i), [
|
|
9683
9683
|
e,
|
|
9684
9684
|
t,
|
|
9685
9685
|
i
|
|
@@ -9719,7 +9719,7 @@ function yh({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9719
9719
|
asChild: !0,
|
|
9720
9720
|
children: /* @__PURE__ */ X(nr, {
|
|
9721
9721
|
label: i.filters.label,
|
|
9722
|
-
icon:
|
|
9722
|
+
icon: ys,
|
|
9723
9723
|
variant: "ghost",
|
|
9724
9724
|
size: "md",
|
|
9725
9725
|
hideLabel: !0,
|
|
@@ -9756,7 +9756,7 @@ function yh({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9756
9756
|
className: "flex shrink-0 items-center gap-2 py-1.5 pl-1.5 pr-3",
|
|
9757
9757
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(V, {
|
|
9758
9758
|
label: i.filters.availableFilters,
|
|
9759
|
-
icon:
|
|
9759
|
+
icon: Jo,
|
|
9760
9760
|
hideLabel: !0,
|
|
9761
9761
|
variant: "ghost",
|
|
9762
9762
|
size: "sm",
|
|
@@ -9772,7 +9772,7 @@ function yh({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9772
9772
|
className: "flex min-h-0 flex-1 flex-col",
|
|
9773
9773
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
9774
9774
|
className: "min-h-0 flex-1 overflow-y-auto border-0 border-t border-solid border-f1-border-secondary",
|
|
9775
|
-
children: /* @__PURE__ */ X(
|
|
9775
|
+
children: /* @__PURE__ */ X(Ts, {
|
|
9776
9776
|
selectedFilterKey: g,
|
|
9777
9777
|
definition: e,
|
|
9778
9778
|
tempFilters: p,
|
|
@@ -9790,7 +9790,7 @@ function yh({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
9790
9790
|
onClick: w,
|
|
9791
9791
|
label: i.filters.applySelection
|
|
9792
9792
|
})
|
|
9793
|
-
})] }) : /* @__PURE__ */ X(
|
|
9793
|
+
})] }) : /* @__PURE__ */ X(ds, {
|
|
9794
9794
|
definition: _,
|
|
9795
9795
|
tempFilters: p,
|
|
9796
9796
|
selectedFilterKey: g,
|
|
@@ -9851,7 +9851,7 @@ function Sh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9851
9851
|
//#endregion
|
|
9852
9852
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9853
9853
|
function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: p, onAskAiTarget: m, itemId: h, chartTypeOptions: g, explanation: _, isFullscreen: v = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
9854
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } =
|
|
9854
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = z(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = Ar(), I = (e) => {
|
|
9855
9855
|
T(e), e || A(!1);
|
|
9856
9856
|
}, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, L = u && f && h, ne = g && g.length > 0, re = !!_ && _.trim().length > 0, ie = !!C, ae = !d && e.trim().length > 0 && (p ? !!h : M), oe = ae || te || L || ne || re, se = !!l || ie || !!oe, ce = !v && (w || E), le = B("flex flex-shrink-0 gap-0.5", !v && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !v && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = Sh({
|
|
9857
9857
|
title: e,
|
|
@@ -9982,7 +9982,7 @@ function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9982
9982
|
}) : null,
|
|
9983
9983
|
ie ? /* @__PURE__ */ X(nr, {
|
|
9984
9984
|
label: v ? j.actions.collapse : j.actions.expand,
|
|
9985
|
-
icon: v ?
|
|
9985
|
+
icon: v ? Gi : si,
|
|
9986
9986
|
variant: "ghost",
|
|
9987
9987
|
size: "md",
|
|
9988
9988
|
hideLabel: !0,
|
|
@@ -10010,7 +10010,7 @@ function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10010
10010
|
onCloseAutoFocus: he,
|
|
10011
10011
|
children: k && re ? /* @__PURE__ */ X("div", {
|
|
10012
10012
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
10013
|
-
children: /* @__PURE__ */ X(
|
|
10013
|
+
children: /* @__PURE__ */ X(gr, {
|
|
10014
10014
|
content: _,
|
|
10015
10015
|
format: "markdown"
|
|
10016
10016
|
})
|
|
@@ -10042,7 +10042,7 @@ function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10042
10042
|
},
|
|
10043
10043
|
children: /* @__PURE__ */ Z("div", {
|
|
10044
10044
|
className: "flex w-full flex-row items-center gap-2",
|
|
10045
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10045
|
+
children: [/* @__PURE__ */ X(H, { icon: hs }), /* @__PURE__ */ X("span", {
|
|
10046
10046
|
className: "flex-1",
|
|
10047
10047
|
children: j.ai.dashboardItem.dataExplanation
|
|
10048
10048
|
})]
|
|
@@ -10053,7 +10053,7 @@ function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10053
10053
|
className: "mx-1 rounded-sm px-2",
|
|
10054
10054
|
children: /* @__PURE__ */ Z("div", {
|
|
10055
10055
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
10056
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10056
|
+
children: [/* @__PURE__ */ X(H, { icon: or }), /* @__PURE__ */ X("span", {
|
|
10057
10057
|
className: "flex-1 text-base font-medium",
|
|
10058
10058
|
children: j.ai.dataDownload.title
|
|
10059
10059
|
})]
|
|
@@ -10075,7 +10075,7 @@ function Ch({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10075
10075
|
className: B("text-f1-foreground-critical"),
|
|
10076
10076
|
children: /* @__PURE__ */ Z("div", {
|
|
10077
10077
|
className: "flex w-full flex-row items-center gap-2",
|
|
10078
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10078
|
+
children: [/* @__PURE__ */ X(H, { icon: Qi }), /* @__PURE__ */ X("span", {
|
|
10079
10079
|
className: "flex-1",
|
|
10080
10080
|
children: j.actions.delete
|
|
10081
10081
|
})]
|
|
@@ -10209,21 +10209,21 @@ function Fh(e) {
|
|
|
10209
10209
|
{
|
|
10210
10210
|
label: e.dataChart.barChartVertical,
|
|
10211
10211
|
value: "bar-vertical",
|
|
10212
|
-
icon:
|
|
10212
|
+
icon: Bi,
|
|
10213
10213
|
type: "bar",
|
|
10214
10214
|
orientation: "vertical"
|
|
10215
10215
|
},
|
|
10216
10216
|
{
|
|
10217
10217
|
label: e.dataChart.barChartHorizontal,
|
|
10218
10218
|
value: "bar-horizontal",
|
|
10219
|
-
icon:
|
|
10219
|
+
icon: ti,
|
|
10220
10220
|
type: "bar",
|
|
10221
10221
|
orientation: "horizontal"
|
|
10222
10222
|
},
|
|
10223
10223
|
{
|
|
10224
10224
|
label: e.dataChart.lineChart,
|
|
10225
10225
|
value: "line",
|
|
10226
|
-
icon:
|
|
10226
|
+
icon: Ci,
|
|
10227
10227
|
type: "line"
|
|
10228
10228
|
},
|
|
10229
10229
|
{
|
|
@@ -10235,13 +10235,13 @@ function Fh(e) {
|
|
|
10235
10235
|
{
|
|
10236
10236
|
label: e.dataChart.pieChart,
|
|
10237
10237
|
value: "pie",
|
|
10238
|
-
icon:
|
|
10238
|
+
icon: Ei,
|
|
10239
10239
|
type: "pie"
|
|
10240
10240
|
},
|
|
10241
10241
|
{
|
|
10242
10242
|
label: e.dataChart.table,
|
|
10243
10243
|
value: "table",
|
|
10244
|
-
icon:
|
|
10244
|
+
icon: ji,
|
|
10245
10245
|
type: "table"
|
|
10246
10246
|
}
|
|
10247
10247
|
];
|
|
@@ -10409,7 +10409,7 @@ function Hh(e) {
|
|
|
10409
10409
|
return Im(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
10410
10410
|
}
|
|
10411
10411
|
function Uh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
10412
|
-
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
10412
|
+
let f = z(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = Ar(), y = !Im(e.chart), b = y ? Ih : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = vh(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? zh(e, T) : void 0, [
|
|
10413
10413
|
e,
|
|
10414
10414
|
T,
|
|
10415
10415
|
y
|
|
@@ -10641,11 +10641,11 @@ function Zh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10641
10641
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
10642
10642
|
return K(() => e ? [{
|
|
10643
10643
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
10644
|
-
icon:
|
|
10644
|
+
icon: ji,
|
|
10645
10645
|
onClick: l
|
|
10646
10646
|
}, {
|
|
10647
10647
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
10648
|
-
icon:
|
|
10648
|
+
icon: ji,
|
|
10649
10649
|
onClick: u
|
|
10650
10650
|
}] : [], [
|
|
10651
10651
|
e,
|
|
@@ -10766,12 +10766,12 @@ function ng({ value: e, trend: t, comparison: n }) {
|
|
|
10766
10766
|
className: "flex shrink-0 items-center",
|
|
10767
10767
|
children: [
|
|
10768
10768
|
t.direction === "up" ? /* @__PURE__ */ X(H, {
|
|
10769
|
-
icon:
|
|
10769
|
+
icon: Po,
|
|
10770
10770
|
color: "positive",
|
|
10771
10771
|
size: "sm",
|
|
10772
10772
|
"aria-hidden": "true"
|
|
10773
10773
|
}) : /* @__PURE__ */ X(H, {
|
|
10774
|
-
icon:
|
|
10774
|
+
icon: Cs,
|
|
10775
10775
|
color: "critical",
|
|
10776
10776
|
size: "sm",
|
|
10777
10777
|
"aria-hidden": "true"
|
|
@@ -10973,7 +10973,7 @@ function fg({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
10973
10973
|
if (Math.hypot(t.clientX - n, t.clientY - r) < sg) return;
|
|
10974
10974
|
i = !0, E(e), P.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
10975
10975
|
let a = A.current.get(e)?.title ?? "";
|
|
10976
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
10976
|
+
a && window.dispatchEvent(new CustomEvent(Gr, { detail: {
|
|
10977
10977
|
id: e,
|
|
10978
10978
|
title: a,
|
|
10979
10979
|
onAskAi: l,
|
|
@@ -10987,7 +10987,7 @@ function fg({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
10987
10987
|
}, o = (e) => {
|
|
10988
10988
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", c), F.current = null;
|
|
10989
10989
|
let t = j.current, n = M.current;
|
|
10990
|
-
e && i && t && n && I(t, n), j.current = null, M.current = null, P.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(
|
|
10990
|
+
e && i && t && n && I(t, n), j.current = null, M.current = null, P.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(Vr));
|
|
10991
10991
|
}, s = (e) => {
|
|
10992
10992
|
i && (P.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), M.current = ee(e.clientX, e.clientY)), o(!0);
|
|
10993
10993
|
}, c = () => o(!1);
|
|
@@ -11168,7 +11168,7 @@ function pg({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11168
11168
|
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",
|
|
11169
11169
|
"aria-label": "Drag to reorder",
|
|
11170
11170
|
children: /* @__PURE__ */ X(H, {
|
|
11171
|
-
icon:
|
|
11171
|
+
icon: _r,
|
|
11172
11172
|
size: "xs"
|
|
11173
11173
|
})
|
|
11174
11174
|
}) : null, s]
|
|
@@ -11338,10 +11338,10 @@ function Dg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11338
11338
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11339
11339
|
function Og({ onExportExcel: e, isExporting: t }) {
|
|
11340
11340
|
let { t: n } = z();
|
|
11341
|
-
return /* @__PURE__ */ X(
|
|
11341
|
+
return /* @__PURE__ */ X(Wr, {
|
|
11342
11342
|
items: [{
|
|
11343
11343
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11344
|
-
icon:
|
|
11344
|
+
icon: or,
|
|
11345
11345
|
onClick: t ? () => {} : e
|
|
11346
11346
|
}],
|
|
11347
11347
|
icon: Js
|
|
@@ -11350,9 +11350,9 @@ function Og({ onExportExcel: e, isExporting: t }) {
|
|
|
11350
11350
|
//#endregion
|
|
11351
11351
|
//#region src/blocks/OneFilterPicker/internal/ControlledOneFilterPicker.tsx
|
|
11352
11352
|
function kg(e) {
|
|
11353
|
-
return /* @__PURE__ */ X(
|
|
11353
|
+
return /* @__PURE__ */ X(cs.Provider, {
|
|
11354
11354
|
value: "controlled",
|
|
11355
|
-
children: /* @__PURE__ */ X(
|
|
11355
|
+
children: /* @__PURE__ */ X(As, { ...e })
|
|
11356
11356
|
});
|
|
11357
11357
|
}
|
|
11358
11358
|
kg.displayName = "ControlledOneFilterPicker";
|
|
@@ -12311,7 +12311,7 @@ var C_ = ({ onClose: e }) => {
|
|
|
12311
12311
|
className: "dark flex-shrink-0",
|
|
12312
12312
|
children: /* @__PURE__ */ X(V, {
|
|
12313
12313
|
variant: "outline",
|
|
12314
|
-
icon:
|
|
12314
|
+
icon: Ai,
|
|
12315
12315
|
size: "sm",
|
|
12316
12316
|
hideLabel: !0,
|
|
12317
12317
|
onClick: e,
|
|
@@ -12328,7 +12328,7 @@ var C_ = ({ onClose: e }) => {
|
|
|
12328
12328
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12329
12329
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12330
12330
|
onClick: () => n(e),
|
|
12331
|
-
children: /* @__PURE__ */ X(
|
|
12331
|
+
children: /* @__PURE__ */ X(Hi, {
|
|
12332
12332
|
href: e.href,
|
|
12333
12333
|
children: e.label
|
|
12334
12334
|
})
|
|
@@ -12340,7 +12340,7 @@ var C_ = ({ onClose: e }) => {
|
|
|
12340
12340
|
onClick: () => n(e)
|
|
12341
12341
|
}, `button-${e.label}`))]
|
|
12342
12342
|
}), E_ = (e, t) => {
|
|
12343
|
-
let n =
|
|
12343
|
+
let n = Qo(e);
|
|
12344
12344
|
return {
|
|
12345
12345
|
buttonActions: n.filter((e) => e.type === "button"),
|
|
12346
12346
|
linkActions: n.filter((e) => e.type === "link"),
|
|
@@ -12389,14 +12389,14 @@ var C_ = ({ onClose: e }) => {
|
|
|
12389
12389
|
_ ? /* @__PURE__ */ X("div", {
|
|
12390
12390
|
className: "flex-shrink-0",
|
|
12391
12391
|
"aria-hidden": "true",
|
|
12392
|
-
children: /* @__PURE__ */ X(
|
|
12392
|
+
children: /* @__PURE__ */ X(Yo, {
|
|
12393
12393
|
size: "small",
|
|
12394
12394
|
className: "text-f1-foreground-inverse"
|
|
12395
12395
|
})
|
|
12396
12396
|
}) : g && /* @__PURE__ */ X("div", {
|
|
12397
12397
|
className: "flex-shrink-0",
|
|
12398
12398
|
"aria-hidden": "true",
|
|
12399
|
-
children: /* @__PURE__ */ X(
|
|
12399
|
+
children: /* @__PURE__ */ X(pr, {
|
|
12400
12400
|
type: g,
|
|
12401
12401
|
size: "sm"
|
|
12402
12402
|
})
|
|
@@ -12723,7 +12723,7 @@ var L_ = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
12723
12723
|
renderDataTestIdAttribute: l,
|
|
12724
12724
|
hourCycle: o,
|
|
12725
12725
|
newButtonStyles: u,
|
|
12726
|
-
children: /* @__PURE__ */ X(
|
|
12726
|
+
children: /* @__PURE__ */ X(js, {
|
|
12727
12727
|
...a,
|
|
12728
12728
|
children: /* @__PURE__ */ X(hn, {
|
|
12729
12729
|
...i,
|
|
@@ -12769,7 +12769,7 @@ var L_ = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
12769
12769
|
newButtonStyles: f,
|
|
12770
12770
|
children: /* @__PURE__ */ X(sv, {
|
|
12771
12771
|
...t,
|
|
12772
|
-
children: /* @__PURE__ */ X(
|
|
12772
|
+
children: /* @__PURE__ */ X(Er, {
|
|
12773
12773
|
handler: l,
|
|
12774
12774
|
children: /* @__PURE__ */ X(ga, { children: /* @__PURE__ */ X(lt, {
|
|
12775
12775
|
...m,
|
|
@@ -12788,4 +12788,4 @@ var L_ = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
12788
12788
|
})
|
|
12789
12789
|
});
|
|
12790
12790
|
//#endregion
|
|
12791
|
-
export { Qa as AiChatTranslationsProvider, be as AreaChart,
|
|
12791
|
+
export { Qa as AiChatTranslationsProvider, be as AreaChart, Ao as Await, g as BarChart, it as BarChartSkeleton, Bt as CardSelectableContainer, p as CategoryBarChart, Yi as ChatSpinner, Lo as Chip, Na as CollapsibleGroup, ae as ComboChart, wt as DATA_COLLECTION_URL_PARAMS, ct as DATA_COLLECTION_URL_PARAM_PREFIX, Il as Dashboard, $t as DataChartEmptyStateView, fn as DataTestIdWrapper, yt as DndProvider, Ji as DropOverlay, $n as EmojiImage, mu as F0Accordion, Ke as F0ActionBar, Sr as F0ActionItem, Ur as F0AiChat, Ya as F0AiChatHeader, qa as F0AiChatHistory, wr as F0AiChatProvider, ba as F0AiChatTextArea, eo as F0AiChatUsageLimitsButton, _a as F0AiFileAttachments, na as F0AiFilePreviewsProvider, Xr as F0AiFormRegistryProvider, La as F0AiInsightCard, Xa as F0AiMask, Fa as F0AiMessageSources, Za as F0AiMessagesContainer, br as F0AiPong, Ja as F0AiProcessingOverlay, Ga as F0AiProposalCard, Pa as F0AiTableCard, hc as F0Alert, Rg as F0AnalyticsDashboard, $i as F0AudioPlayer, li as F0AudioPlayerCard, Aa as F0AuraVoiceAnimation, To as F0Avatar, pr as F0AvatarAlert, co as F0AvatarCompany, ur as F0AvatarDate, po as F0AvatarEmoji, _o as F0AvatarFile, ho as F0AvatarIcon, Oo as F0AvatarList, So as F0AvatarModule, yo as F0AvatarPerson, bo as F0AvatarTeam, iu as F0BigNumber, Om as F0BookAMeetingCard, fo as F0Box, V as F0Button, $r as F0ButtonDropdown, Us as F0ButtonToggle, pa as F0CanvasCard, aa as F0CanvasPanel, Yr as F0Card, ni as F0CardRow, ma as F0ChatComposer, ms as F0Checkbox, vu as F0ChipList, $a as F0ClarifyingPanel, Kt as F0DataChart, ke as F0DatePicker, D as F0DatePickerInline, wm as F0DemoCard, ei as F0Dialog, Te as F0DialogAlikeContext, b as F0DialogAlikeProvider, Uo as F0DialogContext, as as F0DialogProvider, vc as F0DocumentViewer, Tu as F0Drawer, un as F0DurationInput, Vs as F0EventCatcherProvider, Em as F0FAQCard, Tr as F0FileItem, Ou as F0FilterPickerContent, d as F0Form, Hu as F0FormField, El as F0GridStack, Ia as F0HILActionConfirmation, m as F0Heading, H as F0Icon, Hi as F0Link, Dm as F0ModuleCard, en as F0NotesTextEditor, he as F0NotesTextEditorSkeleton, N as F0NumberInput, T as F0NumberInputInline, fr as F0OneIcon, Di as F0OneSwitch, gc as F0PdfViewer, uv as F0Provider, km as F0QuestionCardMultiStep, gr as F0RichTextDisplay, te as F0RichTextEditor, vs as F0SearchInput, Ps as F0Select, F as F0SelectInline, Od as F0Slider, Wd as F0TableOfContentPopover, No as F0TagAlert, Ro as F0TagBalance, Xo as F0TagCompany, qo as F0TagDot, _s as F0TagList, Ko as F0TagPerson, Ss as F0TagRaw, Io as F0TagStatus, xs as F0TagTeam, mc as F0Text, ce as F0TextAreaInput, L as F0TextAreaInputInline, ta as F0TextInput, I as F0TextInputInline, ve as F0TimelineRow, bc as F0VideoPlayer, dd as F0WizardForm, gs as F1SearchBox, _ as FILE_TYPES, Hr as FileItem, ga as FormCardValueFormatterProvider, Ie as FunnelChartSkeleton, wo as GROUP_ID_SYMBOL, Do as GROUP_KEY_SEPARATOR, Jt as GaugeChartSkeleton, cn as HeatmapChartSkeleton, Ql as HomeLayout, l as InlineFieldRow, Qt as InlineFieldRowList, ui as Input, Yl as Layout, _t as LineChart, He as LineChartSkeleton, at as MAX_URL_FILTER_VALUES, c as NotesTextEditor, Xt as NotesTextEditorSkeleton, pe as NumberInput, os as OneCalendar, ir as OneEllipsis, y as OneEmptyState, As as OneFilterPicker, o as PieChart, rn as PieChartSkeleton, Or as PongBall, Je as PrivacyModeProvider, dm as ProductBlankslate, qt as ProductCard, mm as ProductModal, gm as ProductWidget, mt as ProgressBarChart, ee as RadarChart, _e as RadarChartSkeleton, Pr as RichTextDisplay, se as RichTextEditor, u as ScatterChartSkeleton, Xl as StandardLayout, Dp as SurveyAllQuestionsLoadingSkeleton, nm as SurveyAnsweringForm, yp as SurveyFormBuilder, am as SurveySampleQuestion, Op as SurveySteppedLoadingSkeleton, ws as Tag, ss as TagCounter, v as Textarea, Va as ThreadItem, Wa as ThreadListSkeleton, iv as ToastProvider, Zl as TwoColumnLayout, w as UPLOAD_INPUT_ID, P as UpsellRequestResponseDialog, ym as UpsellingAlert, xm as UpsellingBanner, E as UpsellingButton, Cm as UpsellingPopover, ne as VerticalBarChart, ls as WeekStartDay, Ea as WelcomeScreenCardsRow, bt as actionBarStatuses, ya as actionItemStatuses, Dr as adaptDataAdapterToInfiniteScroll, za as aiChatFileFromShowFilesItem, Sa as aiChatFileFromUploadedFile, Ca as aiChatFilesFromMessage, Ta as aiChatMessageText, ha as aiTranslations, xu as alertVariantOptions, cu as audioPlayerSizes, $l as avatarVariants, Le as buildDataCollectionUrlParams, pn as buildTranslations, su as buttonDropdownModes, ou as buttonDropdownSizes, au as buttonDropdownVariants, Ml as buttonSizes, dt as buttonToggleColors, ze as buttonToggleSizes, kt as buttonToggleVariants, jl as buttonVariants, hu as cardAlertVariants, Zr as cardImageAspectRatios, Ir as cardImageFits, sr as cardImageSizes, hi as cardLayouts, jo as chartColorTokens, Ka as chatHistoryIndicators, Ra as chatThreadStatuses, Fo as chipVariants, Yd as computeSectionEndIds, yc as configurePdfWorker, Ha as contentTypes, Gt as createAtlaskitDriver, zo as createDataSourceDefinition, Mu as createF0FormDefinitionTester, ju as createF0FormTester, kl as createPageLayoutBlock, Al as createPageLayoutBlockGroup, xa as createPersonMentionSource, Su as dataCollectionLocalStorageHandler, yu as datePickerInlineDismissReasons, bu as datepickerSizes, oo as defaultTranslations, Jr as defineAvailableForm, ku as describeFormSchema, M as dialog, M as dialogs, Pt as drawers, Ti as durationInputSizes, Si as durationUnits, Mi as escapeUserText, ie as evaluateRenderIf, gn as experimental, qr as f0FileItemSizes, ai as f0FormField, vi as fieldsToSeconds, Gd as flattenElements, xi as formatPlaybackTime, _d as forms, h as generateAnchorId, ns as getAnimationVariants, Lr as getDataCollectionStorageKey, Wo as getDataSourcePaginationType, rr as getEmojiLabel, Ui as getF0Config, zs as getGranularityDefinition, Ds as getGranularityDefinitions, Ws as getGranularitySimpleDefinition, gt as getSchemaDefinition, Ms as granularityDefinitions, ra as hasF0Config, di as inferFieldType, Jd as injectSectionEnds, Co as isInfiniteScrollPagination, Eo as isPageBasedPagination, Ii as isZodType, lu as linkVariants, va as markdownRenderers, jr as mergeDataCollectionFilters, so as modules, ka as oneIconSizes, xo as paginationTotals, Yt as parseDataCollectionUrlParams, _c as pdfScales, Lt as predefinedPresets, Rs as rangeSeparator, Nr as readDataCollectionStorage, qd as reconstructElements, Fr as resolveDataCollectionFilters, bs as resolveGranularityDefinition, Dt as resolveItemNeighbors, Qe as resolveWindowNeighbors, Ki as secondsToFields, zi as secondsToVisibleFields, vd as selectInlineDismissReasons, Oe as selectSizes, Me as selectVariants, ln as setDataCollectionUrlParams, yd as sliderTooltipModes, Ue as syncDataCollectionUrlParams, Md as tagDotColors, Ad as timelineRowApproverStatuses, kd as timelineRowStatuses, jd as timelineRowTagVariants, Rt as toasts, mi as unwrapZodSchema, Ua as usageLimitsPopoverSides, Ar as useAiChat, Da as useAiChatTranslations, wi as useAudioPlayer, Ma as useCanvasEntity, ja as useChatHistory, go as useData, ks as useDataSource, n as useDataSourceItemNavigation, Ri as useDerivedTranscription, Ot as useDndEvents, zt as useDraggable, Ge as useDroppableList, tr as useEmojiConfetti, Qr as useF0AiFormRegistry, is as useF0Dialog, A as useF0DialogAlikeContext, ge as useF0Form, Et as useF0FormDefinition, wa as useFormCardValueFormatter, lv as useFormComponent, rs as useGroups, zg as useIsDesktop, Bg as useIsMobile, Ut as useItemNeighbors, tt as usePrivacyMode, er as useReducedMotion, a as useSchemaDefinition, Bo as useSelectable, Ba as useSetFormCardValueFormatter, Oa as useToolCallId, to as useXRay, R as withDataTestId, an as writeDataCollectionStorage };
|