@factorialco/f0-react 12.17.0 → 12.18.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-dGuKclaw.js → ArchiveThumbnail-BLELkkQj.js} +1 -1
- package/dist/{ArchiveViewer-D4fZ2Zko.js → ArchiveViewer-BAvVk82B.js} +2 -2
- package/dist/{ChatPostComposerDialog-ZUy4oL4n.js → ChatPostComposerDialog-B3roGLPX.js} +2 -2
- package/dist/{CoachmarkProvider-Bui0J43V.js → CoachmarkProvider-B9fuRkcm.js} +20122 -20122
- package/dist/{CodeThumbnail-BN74kiZ4.js → CodeThumbnail-CDxjPEFC.js} +1 -1
- package/dist/{CodeViewer-DAISBEVU.js → CodeViewer-DHftBVCl.js} +3 -3
- package/dist/{DocumentToolbar-DY0Zl0N_.js → DocumentToolbar-P4c9LdMj.js} +1 -1
- package/dist/{DocxViewer-CU-h8JZo.js → DocxViewer-hhB0P1oY.js} +1 -1
- package/dist/{F0AiProcessingOverlay-1sgWr47b.js → F0AiProcessingOverlay-hx671vvU.js} +1 -1
- package/dist/{F0Alert--45qrdm9.js → F0Alert-B3h-jG8M.js} +1 -1
- package/dist/F0AudioPlayer-D_i4pruQ.js +2 -0
- package/dist/{F0CanvasPanel-B07KPl9L.js → F0CanvasPanel-BchoElHd.js} +98 -74
- package/dist/{F0DocumentViewer-gfD2E9-m.js → F0DocumentViewer-BTWC4jEX.js} +1 -1
- package/dist/{F0DocumentViewer-CPu9X2o1.js → F0DocumentViewer-BxKE1PvK.js} +2 -2
- package/dist/{F0Map-CpggFT94.js → F0Map-B-F66Wyh.js} +17 -17
- package/dist/{F0VideoPlayer-C1JRJ63P.js → F0VideoPlayer-B24WPRXX.js} +1 -1
- package/dist/F0VideoPlayer-Cs4ZJlbl.js +1 -0
- package/dist/{HtmlViewer-D6_vKugG.js → HtmlViewer-Km-KBQZ2.js} +3 -3
- package/dist/{Map-BSvthUb7.js → Map-DBfHyif3.js} +3 -3
- package/dist/{PdfThumbnail-CXumcn98.js → PdfThumbnail-iUruDcW_.js} +1 -1
- package/dist/{PdfViewer-Pdk37Dts.js → PdfViewer-Cpb0Lzp1.js} +2 -2
- package/dist/{SheetViewer-BvAA9h38.js → SheetViewer-Ddx1J8UK.js} +2 -2
- package/dist/{TextViewer-D9CCbblP.js → TextViewer-Dj8YeCwg.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +26 -1
- package/dist/experimental.js +4539 -4464
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +157 -157
- package/dist/{highlight-cuPZlWw_.js → highlight-BjHRPWgX.js} +1 -1
- package/dist/{maplibre-D0TBtDi0.js → maplibre-rUroLoQR.js} +1 -1
- package/dist/{pdfWorker-B3PnBrSO.js → pdfWorker-DOSf7ZRZ.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-BdObZULx.d.ts → types-BUdIuwt4.d.ts} +9 -0
- package/package.json +1 -1
- package/dist/F0AudioPlayer-ZqghWPaS.js +0 -2
- package/dist/F0VideoPlayer-BqAcQLm4.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $n as t,
|
|
2
|
+
import { $n as t, A as n, An as r, Bn as i, C as a, Cn as o, Cr as s, D as c, Dn as l, E as u, En as d, Fn as f, Ft as p, Gn as m, Gt as h, Hn as g, Hr as _, Ht as v, In as y, Ir as b, It as x, Jn as S, Jr as C, Jt as w, Kn as T, Kr as E, Kt as D, Ln as O, Lr as k, Lt as A, M as j, Mn as M, N, Nn as P, O as F, On as ee, P as te, Pn as ne, Pr as I, Pt as re, Qn as ie, Qt as ae, Rn as oe, Rr as se, Rt as ce, S as le, Sn as ue, Sr as de, St as fe, T as pe, Tn as me, Ur as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wn as be, Wr as xe, Wt as Se, X as Ce, Xn as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zt as Ae, _ as je, _n as Me, _r as Ne, _t as Pe, ar as Fe, b as Ie, bn as Le, br as Re, bt as ze, c as Be, cn as Ve, cr as He, d as Ue, di as We, dn as Ge, dr as Ke, en as qe, er as Je, f as Ye, fn as Xe, fr as Ze, g as Qe, gn as $e, gr as et, gt as tt, h as nt, hn as rt, hr as it, ht as at, i as ot, ir as st, j as ct, jn as lt, k as ut, kn as dt, kt as ft, l as pt, li as mt, ln as ht, lr as gt, mi as _t, mn as vt, mr as yt, ni as bt, nn as xt, nr as St, on as Ct, or as wt, ot as Tt, p as Et, pn as Dt, pr as Ot, qn as kt, qr as At, qt as jt, ri as Mt, rn as Nt, rr as Pt, s as Ft, sn as It, sr as Lt, t as Rt, ti as zt, tn as Bt, tr as Vt, u as Ht, ui as Ut, un as Wt, ur as Gt, ut as Kt, v as qt, vn as Jt, vr as Yt, vt as Xt, w as Zt, wn as Qt, x as $t, xn as en, xr as tn, xt as nn, y as rn, yn as an, yr as on, yt as sn, zn as cn, zr as ln, zt as un } from "./CoachmarkProvider-B9fuRkcm.js";
|
|
3
3
|
import { a as L, i as dn, n as fn, o as pn, r as R, t as mn } from "./i18n-provider-Bdgo-LeP.js";
|
|
4
4
|
import { n as hn, t as z } from "./skeleton-AC0Fb8zj.js";
|
|
5
5
|
import { A as gn, C as _n, D as vn, F as yn, I as bn, L as B, M as xn, N as Sn, O as Cn, P as wn, R as Tn, S as En, _ as Dn, b as On, c as kn, f as An, g as jn, h as Mn, j as Nn, k as Pn, l as Fn, m as In, p as Ln, v as Rn, w as zn, x as Bn, y as Vn } from "./tooltip-BX4dSfeL.js";
|
|
6
6
|
import { A as Hn, M as Un, N as Wn, U as Gn, b as Kn, f as qn, h as Jn, j as Yn, m as Xn, n as Zn, p as Qn, r as $n, t as V, w as er, wt as tr, y as nr, z as rr } from "./F0Button-d91IgOnc.js";
|
|
7
|
-
import { A as ir, C as ar, D as or, E as sr, F as cr, I as lr, L as ur, M as dr, N as fr, O as pr, P as mr, R as hr, S as gr, T as _r, _ as vr, a as yr, b as br, c as xr, d as Sr, f as Cr, g as wr, h as Tr, i as Er, j as Dr, k as Or, l as kr, m as Ar, n as jr, o as Mr, p as Nr, r as Pr, s as Fr, t as Ir, u as Lr, v as Rr, w as zr, x as Br, y as Vr, z as Hr } from "./F0AiProcessingOverlay-
|
|
8
|
-
import { $t as Ur, Ac as Wr, Ao as Gr, As as Kr, B as qr, Ba as Jr, Bc as Yr, Br as Xr, Cc as Zr, Ci as Qr, Cn as $r, Di as ei, Dr as ti, Ds as ni, Ei as ri, Er as ii, F as ai, Gr as oi, I as si, Jr as ci, Kr as li, L as ui, Lc as di, Lo as fi, Ls as pi, M as mi, N as hi, Ns as gi, Oi as _i, Or as vi, P as yi, Qo as bi, R as xi, Rs as Si, Sc as Ci, Si as wi, Sn as Ti, Tc as Ei, Ti as Di, Tr as Oi, Uo as ki, Us as Ai, Wr as ji, Xa as Mi, Xr as Ni, Za as Pi, _c as Fi, _i as Ii, _n as Li, _r as Ri, ac as zi, an as Bi, bc as Vi, bi as Hi, bn as Ui, bo as Wi, br as Gi, bs as Ki, cn as qi, co as Ji, di as Yi, do as Xi, dr as Zi, fr as Qi, gi as $i, gr as ea, hi as ta, ho as na, hr as ra, ii as ia, in as aa, js as oa, ko as sa, kr as ca, lc as la, li as ua, ln as da, mi as fa, mo as pa, mr as ma, ms as ha, n as ga, ni as _a, nn as va, nt as ya, oi as ba, po as xa, pr as Sa, ri as Ca, rn as wa, si as Ta, sn as Ea, t as Da, tn as Oa, tt as ka, uc as Aa, ui as ja, vc as Ma, vi as Na, vn as Pa, wi as Fa, wr as Ia, xc as La, xi as Ra, xn as za, yc as Ba, yi as Va, yn as Ha, yo as Ua, yr as Wa, yt as Ga, z as Ka, zo as qa, zr as Ja } from "./F0CanvasPanel-
|
|
7
|
+
import { A as ir, C as ar, D as or, E as sr, F as cr, I as lr, L as ur, M as dr, N as fr, O as pr, P as mr, R as hr, S as gr, T as _r, _ as vr, a as yr, b as br, c as xr, d as Sr, f as Cr, g as wr, h as Tr, i as Er, j as Dr, k as Or, l as kr, m as Ar, n as jr, o as Mr, p as Nr, r as Pr, s as Fr, t as Ir, u as Lr, v as Rr, w as zr, x as Br, y as Vr, z as Hr } from "./F0AiProcessingOverlay-hx671vvU.js";
|
|
8
|
+
import { $t as Ur, Ac as Wr, Ao as Gr, As as Kr, B as qr, Ba as Jr, Bc as Yr, Br as Xr, Cc as Zr, Ci as Qr, Cn as $r, Di as ei, Dr as ti, Ds as ni, Ei as ri, Er as ii, F as ai, Gr as oi, I as si, Jr as ci, Kr as li, L as ui, Lc as di, Lo as fi, Ls as pi, M as mi, N as hi, Ns as gi, Oi as _i, Or as vi, P as yi, Qo as bi, R as xi, Rs as Si, Sc as Ci, Si as wi, Sn as Ti, Tc as Ei, Ti as Di, Tr as Oi, Uo as ki, Us as Ai, Wr as ji, Xa as Mi, Xr as Ni, Za as Pi, _c as Fi, _i as Ii, _n as Li, _r as Ri, ac as zi, an as Bi, bc as Vi, bi as Hi, bn as Ui, bo as Wi, br as Gi, bs as Ki, cn as qi, co as Ji, di as Yi, do as Xi, dr as Zi, fr as Qi, gi as $i, gr as ea, hi as ta, ho as na, hr as ra, ii as ia, in as aa, js as oa, ko as sa, kr as ca, lc as la, li as ua, ln as da, mi as fa, mo as pa, mr as ma, ms as ha, n as ga, ni as _a, nn as va, nt as ya, oi as ba, po as xa, pr as Sa, ri as Ca, rn as wa, si as Ta, sn as Ea, t as Da, tn as Oa, tt as ka, uc as Aa, ui as ja, vc as Ma, vi as Na, vn as Pa, wi as Fa, wr as Ia, xc as La, xi as Ra, xn as za, yc as Ba, yi as Va, yn as Ha, yo as Ua, yr as Wa, yt as Ga, z as Ka, zo as qa, zr as Ja } from "./F0CanvasPanel-BchoElHd.js";
|
|
9
9
|
import { a as Ya, i as Xa, n as Za, o as Qa, r as $a, t as H } from "./F0Icon-DmCBV0gK.js";
|
|
10
10
|
import { t as eo } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
11
11
|
import { A as to, C as no, D as ro, H as io, N as ao, S as oo, U as so, a as co, b as lo, f as uo, g as fo, h as po, i as mo, k as ho, l as go, m as _o, n as vo, r as yo, t as bo, u as xo } from "./useData-BYkiGUHX.js";
|
|
@@ -18,10 +18,10 @@ import { t as Ws } from "./purify.es-ZpfdAuNV.js";
|
|
|
18
18
|
import { A as Gs, B as Ks, H as qs, L as Js, M as Ys, N as Xs, P as Zs, R as Qs, a as $s, ft as ec, i as tc, j as nc, k as rc, t as ic, z as ac } from "./popover-ics24JxK.js";
|
|
19
19
|
import { n as oc, r as sc } from "./scrollarea-cxaFAWG5.js";
|
|
20
20
|
import { t as cc } from "./F0Text-CXHuzMbj.js";
|
|
21
|
-
import { t as lc } from "./F0Alert
|
|
22
|
-
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-
|
|
21
|
+
import { t as lc } from "./F0Alert-B3h-jG8M.js";
|
|
22
|
+
import { n as uc, r as dc, t as fc } from "./F0DocumentViewer-BxKE1PvK.js";
|
|
23
23
|
import { t as pc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as mc } from "./F0VideoPlayer-
|
|
24
|
+
import { t as mc } from "./F0VideoPlayer-B24WPRXX.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
import hc, { Children as gc, Fragment as _c, createContext as vc, forwardRef as yc, isValidElement as bc, memo as xc, useCallback as W, useContext as Sc, useEffect as G, useId as Cc, useImperativeHandle as wc, useLayoutEffect as Tc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Ec } from "react";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -52,7 +52,7 @@ var Ac = {
|
|
|
52
52
|
className: "@container",
|
|
53
53
|
children: [/* @__PURE__ */ Z("div", {
|
|
54
54
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
55
|
-
children: [/* @__PURE__ */ X(
|
|
55
|
+
children: [/* @__PURE__ */ X(Mt, {
|
|
56
56
|
columns: Ac,
|
|
57
57
|
showArrows: !1,
|
|
58
58
|
children: i
|
|
@@ -2912,7 +2912,7 @@ var wl = (e, t) => {
|
|
|
2912
2912
|
}, Tl = (e, t) => {
|
|
2913
2913
|
let n = t;
|
|
2914
2914
|
return n.displayName = e, n.__isPageLayoutGroup = !0, n;
|
|
2915
|
-
}, El = Hn.filter((e) => e !== "ai"), Dl = Un, Ol = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(
|
|
2915
|
+
}, El = Hn.filter((e) => e !== "ai"), Dl = Un, Ol = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(Ee, {
|
|
2916
2916
|
header: { title: t },
|
|
2917
2917
|
draggable: n,
|
|
2918
2918
|
actions: r,
|
|
@@ -3013,7 +3013,7 @@ Bl.displayName = "GroupLinear", Bl.__isPageLayoutGroup = !0;
|
|
|
3013
3013
|
//#region src/blocks/layouts/Layout/groups/GroupMasonry/components/SortableBlock.tsx
|
|
3014
3014
|
var Vl = ({ id: e, children: t }) => {
|
|
3015
3015
|
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = ln({ id: e }), s = {
|
|
3016
|
-
transform:
|
|
3016
|
+
transform: C.Translate.toString(a),
|
|
3017
3017
|
transition: o,
|
|
3018
3018
|
flex: "1 1",
|
|
3019
3019
|
display: "flex",
|
|
@@ -3034,10 +3034,10 @@ var Vl = ({ id: e, children: t }) => {
|
|
|
3034
3034
|
render: e.render
|
|
3035
3035
|
})));
|
|
3036
3036
|
}, [e]);
|
|
3037
|
-
let [o, s] = J(null), c =
|
|
3037
|
+
let [o, s] = J(null), c = At(E(xe), E(he, { coordinateGetter: se }));
|
|
3038
3038
|
return /* @__PURE__ */ X("div", {
|
|
3039
3039
|
className: B("flex flex-wrap items-stretch gap-4", r && "flex-1"),
|
|
3040
|
-
children: /* @__PURE__ */ Z(
|
|
3040
|
+
children: /* @__PURE__ */ Z(ve, {
|
|
3041
3041
|
sensors: c,
|
|
3042
3042
|
onDragStart: (e) => {
|
|
3043
3043
|
s(e.active.id);
|
|
@@ -3046,16 +3046,16 @@ var Vl = ({ id: e, children: t }) => {
|
|
|
3046
3046
|
let { active: t, over: n } = e;
|
|
3047
3047
|
s(null), n && t.id !== n.id && a((e) => {
|
|
3048
3048
|
let r = e.findIndex((e) => e.id === t.id), i = e.findIndex((e) => e.id === n.id);
|
|
3049
|
-
return
|
|
3049
|
+
return k(e, r, i);
|
|
3050
3050
|
});
|
|
3051
3051
|
},
|
|
3052
|
-
children: [/* @__PURE__ */ X(
|
|
3052
|
+
children: [/* @__PURE__ */ X(b, {
|
|
3053
3053
|
items: i,
|
|
3054
3054
|
children: i.map((e) => /* @__PURE__ */ X(Vl, {
|
|
3055
3055
|
id: e.id,
|
|
3056
3056
|
children: e.render
|
|
3057
3057
|
}, e.id))
|
|
3058
|
-
}), /* @__PURE__ */ X(
|
|
3058
|
+
}), /* @__PURE__ */ X(_, { children: o ? /* @__PURE__ */ X(Vl, {
|
|
3059
3059
|
id: o,
|
|
3060
3060
|
children: i.find((e) => e.id === o)?.render
|
|
3061
3061
|
}) : null })]
|
|
@@ -3344,13 +3344,13 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3344
3344
|
set: async (e, t) => {
|
|
3345
3345
|
localStorage.setItem(Ni(e), JSON.stringify(t));
|
|
3346
3346
|
}
|
|
3347
|
-
}, vu = ({ disableClose: e = !1, onClose: t, isOpen: n, children:
|
|
3347
|
+
}, vu = ({ disableClose: e = !1, onClose: t, isOpen: n, children: i, position: a = "right", size: o = "md", primaryAction: s, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
3348
3348
|
let [b, x] = J(n);
|
|
3349
3349
|
G(() => {
|
|
3350
3350
|
x(n);
|
|
3351
3351
|
}, [n]);
|
|
3352
3352
|
let S = K(() => /* @__PURE__ */ Z(Y, { children: [
|
|
3353
|
-
/* @__PURE__ */ X(
|
|
3353
|
+
/* @__PURE__ */ X(lt, {
|
|
3354
3354
|
title: l,
|
|
3355
3355
|
description: u,
|
|
3356
3356
|
module: d,
|
|
@@ -3360,11 +3360,11 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3360
3360
|
setActiveTabId: g,
|
|
3361
3361
|
disableClose: e
|
|
3362
3362
|
}),
|
|
3363
|
-
/* @__PURE__ */ X(
|
|
3363
|
+
/* @__PURE__ */ X(P, {
|
|
3364
3364
|
disableContentPadding: _ ?? !1,
|
|
3365
|
-
children:
|
|
3365
|
+
children: i
|
|
3366
3366
|
}),
|
|
3367
|
-
/* @__PURE__ */ X(
|
|
3367
|
+
/* @__PURE__ */ X(M, {
|
|
3368
3368
|
primaryAction: s ?? [],
|
|
3369
3369
|
secondaryAction: c ?? [],
|
|
3370
3370
|
onClose: () => x(!1)
|
|
@@ -3379,11 +3379,11 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3379
3379
|
g,
|
|
3380
3380
|
e,
|
|
3381
3381
|
_,
|
|
3382
|
-
|
|
3382
|
+
i,
|
|
3383
3383
|
s,
|
|
3384
3384
|
c
|
|
3385
3385
|
]);
|
|
3386
|
-
return /* @__PURE__ */ X(
|
|
3386
|
+
return /* @__PURE__ */ X(r, {
|
|
3387
3387
|
isOpen: b,
|
|
3388
3388
|
onClose: t,
|
|
3389
3389
|
position: a,
|
|
@@ -3396,7 +3396,7 @@ var pu = L(hn("F0ChipList", fu)), mu = [
|
|
|
3396
3396
|
onWidthChange: y,
|
|
3397
3397
|
children: S
|
|
3398
3398
|
});
|
|
3399
|
-
}, yu =
|
|
3399
|
+
}, yu = ne, bu = (e) => {
|
|
3400
3400
|
let t = yu.reduce((e, t) => {
|
|
3401
3401
|
let { [t]: n, ...r } = e;
|
|
3402
3402
|
return r;
|
|
@@ -3512,7 +3512,7 @@ function Du(e) {
|
|
|
3512
3512
|
let i = {
|
|
3513
3513
|
...n,
|
|
3514
3514
|
...e
|
|
3515
|
-
}, a =
|
|
3515
|
+
}, a = Ge(t, i), o = {};
|
|
3516
3516
|
for (let [e, t] of Object.entries(i)) o[e] = t === null ? void 0 : t;
|
|
3517
3517
|
let s = r ? { errorMap: r } : void 0, c = await a.safeParseAsync(o, s);
|
|
3518
3518
|
if (c.success) return {
|
|
@@ -3575,7 +3575,7 @@ function Ou(e, t) {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
//#endregion
|
|
3577
3577
|
//#region src/blocks/dialog-alike/F0Dialog/internal/DialogNotification.tsx
|
|
3578
|
-
var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, description: i, primaryAction: a, secondaryAction: o, dismissable: s = !1 }) => /* @__PURE__ */ X(
|
|
3578
|
+
var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, description: i, primaryAction: a, secondaryAction: o, dismissable: s = !1 }) => /* @__PURE__ */ X(De, {
|
|
3579
3579
|
isOpen: e,
|
|
3580
3580
|
onClose: t,
|
|
3581
3581
|
variant: "notification",
|
|
@@ -3595,7 +3595,7 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3595
3595
|
children: [/* @__PURE__ */ X(Ca, {
|
|
3596
3596
|
className: "text-xl sm:text-lg",
|
|
3597
3597
|
children: r
|
|
3598
|
-
}), /* @__PURE__ */ X(
|
|
3598
|
+
}), /* @__PURE__ */ X(oe, {
|
|
3599
3599
|
className: "text-lg sm:text-base",
|
|
3600
3600
|
children: i
|
|
3601
3601
|
})]
|
|
@@ -3691,7 +3691,7 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3691
3691
|
position: e.position,
|
|
3692
3692
|
module: e.module,
|
|
3693
3693
|
children: e.content
|
|
3694
|
-
}, e.id) : /* @__PURE__ */ X(
|
|
3694
|
+
}, e.id) : /* @__PURE__ */ X(De, {
|
|
3695
3695
|
disableClose: c(e.id),
|
|
3696
3696
|
isOpen: s.has(e.id),
|
|
3697
3697
|
size: e.size,
|
|
@@ -3705,25 +3705,25 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3705
3705
|
children: e.content
|
|
3706
3706
|
}, e.id) }, e.id)) });
|
|
3707
3707
|
}, Nu = ({ children: e }) => {
|
|
3708
|
-
let t = Ec(
|
|
3708
|
+
let t = Ec(w.subscribe, w.getSnapshot, w.getServerSnapshot), n = R(), [r, i] = J(null);
|
|
3709
3709
|
G(() => {
|
|
3710
|
-
let e =
|
|
3710
|
+
let e = w.acquireRenderer();
|
|
3711
3711
|
return i(e.id), e.release;
|
|
3712
3712
|
}, []);
|
|
3713
|
-
let a = Ec(
|
|
3713
|
+
let a = Ec(w.subscribeRenderer, w.getActiveRendererId, () => null), o = r !== null && r === a;
|
|
3714
3714
|
return G(() => {
|
|
3715
|
-
|
|
3715
|
+
w.setDefaultActionLabels({
|
|
3716
3716
|
ok: n.actions.ok,
|
|
3717
3717
|
cancel: n.actions.cancel
|
|
3718
3718
|
});
|
|
3719
3719
|
}, [n]), /* @__PURE__ */ Z(Y, { children: [o && typeof document < "u" ? Oc(/* @__PURE__ */ X(Mu, { items: t }), document.body) : null, e] });
|
|
3720
3720
|
}, Pu = 200, Fu = ({ children: e }) => {
|
|
3721
|
-
let t = Ec(
|
|
3721
|
+
let t = Ec(Se.subscribe, Se.getSnapshot, Se.getServerSnapshot), [n, r] = J(null);
|
|
3722
3722
|
G(() => {
|
|
3723
|
-
let e =
|
|
3723
|
+
let e = Se.acquireRenderer();
|
|
3724
3724
|
return r(e.id), e.release;
|
|
3725
3725
|
}, []);
|
|
3726
|
-
let i = Ec(
|
|
3726
|
+
let i = Ec(Se.subscribeRenderer, Se.getActiveRendererId, () => null);
|
|
3727
3727
|
return /* @__PURE__ */ Z(Y, { children: [n !== null && n === i && typeof document < "u" ? Oc(/* @__PURE__ */ X(Iu, { items: t }), document.body) : null, e] });
|
|
3728
3728
|
}, Iu = ({ items: e }) => {
|
|
3729
3729
|
let [t, n] = J(e), r = q(e), i = q(/* @__PURE__ */ new Map());
|
|
@@ -3759,14 +3759,14 @@ var ku = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3759
3759
|
//#endregion
|
|
3760
3760
|
//#region src/blocks/F0FormField/F0FormField.tsx
|
|
3761
3761
|
function Lu({ children: e }) {
|
|
3762
|
-
let t =
|
|
3762
|
+
let t = Me(), n = K(() => t && {
|
|
3763
3763
|
...t,
|
|
3764
3764
|
registerInlineRow: void 0,
|
|
3765
3765
|
nullableEmptyFields: void 0
|
|
3766
3766
|
}, [t]);
|
|
3767
|
-
return /* @__PURE__ */ X(
|
|
3767
|
+
return /* @__PURE__ */ X(rt.Provider, {
|
|
3768
3768
|
value: n,
|
|
3769
|
-
children: /* @__PURE__ */ X(
|
|
3769
|
+
children: /* @__PURE__ */ X(ae.Provider, {
|
|
3770
3770
|
value: null,
|
|
3771
3771
|
children: e
|
|
3772
3772
|
})
|
|
@@ -3794,7 +3794,7 @@ function Ru({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
3794
3794
|
}, b = e.type === "file" ? d : void 0;
|
|
3795
3795
|
return f ? /* @__PURE__ */ X(Lu, { children: /* @__PURE__ */ X("div", {
|
|
3796
3796
|
id: p,
|
|
3797
|
-
children: /* @__PURE__ */ X(
|
|
3797
|
+
children: /* @__PURE__ */ X(vt, { children: /* @__PURE__ */ X(F, {
|
|
3798
3798
|
field: y,
|
|
3799
3799
|
formField: g,
|
|
3800
3800
|
fieldState: _,
|
|
@@ -3819,7 +3819,7 @@ function Ru({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
3819
3819
|
children: "*"
|
|
3820
3820
|
}) : null]
|
|
3821
3821
|
}) : null,
|
|
3822
|
-
|
|
3822
|
+
ut({
|
|
3823
3823
|
field: y,
|
|
3824
3824
|
formField: g,
|
|
3825
3825
|
fieldState: _,
|
|
@@ -3960,7 +3960,7 @@ function Ku({ steps: e, defaultStepIndex: t = 0, onSubmit: n, onStepChanged: r,
|
|
|
3960
3960
|
//#endregion
|
|
3961
3961
|
//#region src/blocks/F0Wizard/F0Wizard.tsx
|
|
3962
3962
|
var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, title: i, size: a = "xl", defaultStepIndex: o, nextLabel: s, previousLabel: c, submitLabel: l, onSubmit: u, onStepChanged: d, allowStepSkipping: f = !1, autoCloseOnLastStepSubmit: p = !1, autoSkipCompletedSteps: m = !1 }) => {
|
|
3963
|
-
let
|
|
3963
|
+
let g = Ku({
|
|
3964
3964
|
steps: e,
|
|
3965
3965
|
defaultStepIndex: K(() => {
|
|
3966
3966
|
if (o !== void 0) return o;
|
|
@@ -3977,28 +3977,28 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
3977
3977
|
allowStepSkipping: f,
|
|
3978
3978
|
autoCloseOnLastStepSubmit: p,
|
|
3979
3979
|
onClose: r
|
|
3980
|
-
}), _ = R(), v = e[
|
|
3980
|
+
}), _ = R(), v = e[g.currentStep], y = g.currentStep === 0, b = g.currentStep === e.length - 1, x = b ? v?.nextLabel ?? l ?? _.wizard.submit : v?.nextLabel ?? s ?? _.wizard.next, S = v?.previousLabel ?? c ?? _.wizard.previous, C = K(() => ({
|
|
3981
3981
|
label: x,
|
|
3982
3982
|
icon: b ? void 0 : Wr,
|
|
3983
|
-
onClick: () => void
|
|
3983
|
+
onClick: () => void g.goNext(),
|
|
3984
3984
|
disabled: v?.isCompleted?.() === !1 || v?.hasErrors?.() === !0,
|
|
3985
|
-
loading:
|
|
3985
|
+
loading: g.loading
|
|
3986
3986
|
}), [
|
|
3987
3987
|
x,
|
|
3988
3988
|
b,
|
|
3989
|
-
|
|
3989
|
+
g,
|
|
3990
3990
|
v
|
|
3991
3991
|
]), w = K(() => y ? void 0 : {
|
|
3992
3992
|
label: S,
|
|
3993
3993
|
icon: Ao,
|
|
3994
|
-
onClick:
|
|
3995
|
-
disabled:
|
|
3994
|
+
onClick: g.goPrevious,
|
|
3995
|
+
disabled: g.loading
|
|
3996
3996
|
}, [
|
|
3997
3997
|
y,
|
|
3998
3998
|
S,
|
|
3999
|
-
|
|
3999
|
+
g
|
|
4000
4000
|
]);
|
|
4001
|
-
return /* @__PURE__ */ X(
|
|
4001
|
+
return /* @__PURE__ */ X(h, {
|
|
4002
4002
|
isOpen: n,
|
|
4003
4003
|
onClose: r,
|
|
4004
4004
|
size: a,
|
|
@@ -4008,12 +4008,12 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
4008
4008
|
secondaryAction: w,
|
|
4009
4009
|
disableContentPadding: !0,
|
|
4010
4010
|
children: /* @__PURE__ */ X(Vu, {
|
|
4011
|
-
currentStep:
|
|
4011
|
+
currentStep: g.currentStep,
|
|
4012
4012
|
totalSteps: e.length,
|
|
4013
|
-
loading:
|
|
4014
|
-
goToStep:
|
|
4015
|
-
goNext:
|
|
4016
|
-
goPrevious:
|
|
4013
|
+
loading: g.loading,
|
|
4014
|
+
goToStep: g.goToStep,
|
|
4015
|
+
goNext: g.goNext,
|
|
4016
|
+
goPrevious: g.goPrevious,
|
|
4017
4017
|
steps: e,
|
|
4018
4018
|
allowStepSkipping: f,
|
|
4019
4019
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -4024,8 +4024,8 @@ var qu = () => {}, Ju = ({ steps: e, children: t, isOpen: n, onClose: r = qu, ti
|
|
|
4024
4024
|
}), /* @__PURE__ */ X("div", {
|
|
4025
4025
|
className: "flex-1 overflow-y-auto px-8",
|
|
4026
4026
|
children: t({
|
|
4027
|
-
currentStep:
|
|
4028
|
-
goToStep:
|
|
4027
|
+
currentStep: g.currentStep,
|
|
4028
|
+
goToStep: g.goToStep
|
|
4029
4029
|
})
|
|
4030
4030
|
})]
|
|
4031
4031
|
})
|
|
@@ -4255,19 +4255,19 @@ function rd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
4255
4255
|
}
|
|
4256
4256
|
});
|
|
4257
4257
|
}
|
|
4258
|
-
function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultValues: i, onSubmit: a, submitConfig: o, errorTriggerMode: s, sectionForms:
|
|
4259
|
-
let p =
|
|
4260
|
-
G(() => (
|
|
4261
|
-
|
|
4258
|
+
function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultValues: i, onSubmit: a, submitConfig: o, errorTriggerMode: s, sectionForms: l, onErrorStateChange: u, renderCustomField: d, isLoading: f }) {
|
|
4259
|
+
let p = Xe();
|
|
4260
|
+
G(() => (l[e] = p, () => {
|
|
4261
|
+
l[e] = null;
|
|
4262
4262
|
}), [
|
|
4263
|
-
|
|
4263
|
+
l,
|
|
4264
4264
|
e,
|
|
4265
4265
|
p
|
|
4266
4266
|
]);
|
|
4267
4267
|
let m = q(u);
|
|
4268
4268
|
return m.current = u, G(() => {
|
|
4269
4269
|
m.current(p.hasErrors);
|
|
4270
|
-
}, [p.hasErrors]), /* @__PURE__ */ X(
|
|
4270
|
+
}, [p.hasErrors]), /* @__PURE__ */ X(c, {
|
|
4271
4271
|
formName: t,
|
|
4272
4272
|
sectionId: e,
|
|
4273
4273
|
schema: n,
|
|
@@ -4284,8 +4284,8 @@ function id({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4284
4284
|
isLoading: f
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
|
-
function ad({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged:
|
|
4288
|
-
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Ti(v), [v]), E = K(() => Xu(v, y), [v, y]), D = W((e) => Yu(Zu(T, e)), [T]), O =
|
|
4287
|
+
function ad({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: d, allowStepSkipping: f, autoCloseOnLastStepSubmit: p, linkAfterLastStepSubmit: m, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
|
|
4288
|
+
let { name: _, schema: v, sections: y, defaultValues: b, onSubmit: x, submitConfig: S, errorTriggerMode: C = "on-blur" } = e, w = S?.label, T = K(() => Ti(v), [v]), E = K(() => Xu(v, y), [v, y]), D = W((e) => Yu(Zu(T, e)), [T]), O = Xe(), k = q(b ? { ...b } : {}), A = q(s ?? 0), j = W((e) => async () => {
|
|
4289
4289
|
await O.submit();
|
|
4290
4290
|
}, [O]), M = W((e) => O.hasErrors, [O.hasErrors]), N = t ?? e.steps, P = K(() => N ?? E.map((e) => ({
|
|
4291
4291
|
title: y?.[e]?.title ?? e,
|
|
@@ -4351,8 +4351,8 @@ function ad({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
4351
4351
|
re
|
|
4352
4352
|
]), se = W((e) => {
|
|
4353
4353
|
let t = O.getValues();
|
|
4354
|
-
Object.assign(k.current, t), A.current = e,
|
|
4355
|
-
}, [O,
|
|
4354
|
+
Object.assign(k.current, t), A.current = e, d?.(e);
|
|
4355
|
+
}, [O, d]);
|
|
4356
4356
|
return /* @__PURE__ */ X(Ju, {
|
|
4357
4357
|
steps: te,
|
|
4358
4358
|
isOpen: n,
|
|
@@ -4370,7 +4370,7 @@ function ad({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
4370
4370
|
let n = nd(t, E, N), r = Zu(T, n), i = n.reduce((e, t) => (y?.[t] && (e[t] = y[t]), e), {});
|
|
4371
4371
|
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
4372
4372
|
className: "pb-5",
|
|
4373
|
-
children: /* @__PURE__ */ X(
|
|
4373
|
+
children: /* @__PURE__ */ X(u, {
|
|
4374
4374
|
name: `${_}-step-${t}`,
|
|
4375
4375
|
schema: r,
|
|
4376
4376
|
sections: i,
|
|
@@ -4436,10 +4436,10 @@ function ud({ options: e, isOpen: t, onResolve: n }) {
|
|
|
4436
4436
|
}
|
|
4437
4437
|
function dd(e) {
|
|
4438
4438
|
return new Promise((t) => {
|
|
4439
|
-
let n = e.id ??
|
|
4440
|
-
r || (r = !0, t(e),
|
|
4439
|
+
let n = e.id ?? I(), r = !1, i = (e) => {
|
|
4440
|
+
r || (r = !0, t(e), ge(n));
|
|
4441
4441
|
};
|
|
4442
|
-
|
|
4442
|
+
v({
|
|
4443
4443
|
id: n,
|
|
4444
4444
|
onDismiss: () => i({ completed: !1 }),
|
|
4445
4445
|
render: ({ isOpen: t }) => /* @__PURE__ */ X(ud, {
|
|
@@ -4454,7 +4454,7 @@ function dd(e) {
|
|
|
4454
4454
|
//#region src/facade/forms/forms.ts
|
|
4455
4455
|
function fd(e) {
|
|
4456
4456
|
let { mode: t, ...n } = e;
|
|
4457
|
-
return t === "wizard" ? dd(n) :
|
|
4457
|
+
return t === "wizard" ? dd(n) : ye(n);
|
|
4458
4458
|
}
|
|
4459
4459
|
var pd = { open: fd }, md = [
|
|
4460
4460
|
"escape",
|
|
@@ -5041,7 +5041,7 @@ var Wd = Gn.create(Ur), Gd = xc(() => {
|
|
|
5041
5041
|
return t;
|
|
5042
5042
|
}, ef = vc(void 0);
|
|
5043
5043
|
function tf({ elements: e, children: t, disabled: n, answering: r, disallowOptionalQuestions: i, onChange: a, allowedQuestionTypes: o, errors: s, onFieldBlur: c, useUpload: l, datasets: u, placeholders: d, labels: f, skipDefaultSection: p }) {
|
|
5044
|
-
let m =
|
|
5044
|
+
let m = ft(o), h = ft(s), g = ft(u), _ = ft(d), v = ft(f), y = q(e);
|
|
5045
5045
|
y.current = e;
|
|
5046
5046
|
let b = q(a);
|
|
5047
5047
|
b.current = a;
|
|
@@ -5942,7 +5942,7 @@ var xf = ({ notice: e, className: t, children: n }) => {
|
|
|
5942
5942
|
}) : null]
|
|
5943
5943
|
}),
|
|
5944
5944
|
r,
|
|
5945
|
-
p ? /* @__PURE__ */ X(
|
|
5945
|
+
p ? /* @__PURE__ */ X(qe, {
|
|
5946
5946
|
className: "-mt-2",
|
|
5947
5947
|
fallback: A(i ? "forms.validation.required" : "forms.validation.invalidType")
|
|
5948
5948
|
}) : null,
|
|
@@ -6244,7 +6244,7 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6244
6244
|
}, s = n("surveyFormBuilder.answer.numericPlaceholder");
|
|
6245
6245
|
return /* @__PURE__ */ X(Sf, {
|
|
6246
6246
|
...t,
|
|
6247
|
-
children: i ? /* @__PURE__ */ X(
|
|
6247
|
+
children: i ? /* @__PURE__ */ X(l, {
|
|
6248
6248
|
locale: "en-US",
|
|
6249
6249
|
size: "md",
|
|
6250
6250
|
value: e,
|
|
@@ -6297,8 +6297,8 @@ var wf = ({ value: e, label: t, ...n }) => {
|
|
|
6297
6297
|
onClick: (e) => {
|
|
6298
6298
|
e.preventDefault(), e.stopPropagation();
|
|
6299
6299
|
},
|
|
6300
|
-
children: /* @__PURE__ */ X(
|
|
6301
|
-
data:
|
|
6300
|
+
children: /* @__PURE__ */ X(Ce, {
|
|
6301
|
+
data: Oe,
|
|
6302
6302
|
onEmojiSelect: (e) => {
|
|
6303
6303
|
r?.(o, e.native), l(!1);
|
|
6304
6304
|
},
|
|
@@ -6408,7 +6408,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6408
6408
|
}, T = () => {
|
|
6409
6409
|
m(!1), h(null);
|
|
6410
6410
|
}, E = p ? v : !a && !o, D = !a && !o && !l;
|
|
6411
|
-
return /* @__PURE__ */ X(
|
|
6411
|
+
return /* @__PURE__ */ X(mt, {
|
|
6412
6412
|
value: t,
|
|
6413
6413
|
onDragStart: w,
|
|
6414
6414
|
onDragEnd: T,
|
|
@@ -6496,7 +6496,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6496
6496
|
}, a = new Set(r.map((e) => e.value)).size !== r.length;
|
|
6497
6497
|
a && (r = r.map((e) => ({
|
|
6498
6498
|
...e,
|
|
6499
|
-
value:
|
|
6499
|
+
value: I()
|
|
6500
6500
|
})), a && n?.({
|
|
6501
6501
|
...i,
|
|
6502
6502
|
options: r
|
|
@@ -6567,7 +6567,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6567
6567
|
...t,
|
|
6568
6568
|
children: /* @__PURE__ */ Z("div", {
|
|
6569
6569
|
className: "-mx-0.5 flex flex-col items-start [&>div]:w-full",
|
|
6570
|
-
children: [/* @__PURE__ */ X(af, { children: /* @__PURE__ */ X(
|
|
6570
|
+
children: [/* @__PURE__ */ X(af, { children: /* @__PURE__ */ X(Ut, {
|
|
6571
6571
|
axis: "y",
|
|
6572
6572
|
values: e,
|
|
6573
6573
|
onReorder: m,
|
|
@@ -6667,12 +6667,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6667
6667
|
]
|
|
6668
6668
|
});
|
|
6669
6669
|
}, Hf = xc(({ item: e, section: t, showEndOfSection: n, className: r }) => {
|
|
6670
|
-
let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = of(), c =
|
|
6670
|
+
let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = of(), c = We(), { disabled: l, answering: u } = nf(), d = !!t && s === t.id, f = () => {
|
|
6671
6671
|
a(!0), o(e.question.id);
|
|
6672
6672
|
}, p = () => {
|
|
6673
6673
|
a(!1), o(null);
|
|
6674
6674
|
}, m = t?.locked, h = !l && !u && !m;
|
|
6675
|
-
return /* @__PURE__ */ Z(
|
|
6675
|
+
return /* @__PURE__ */ Z(mt, {
|
|
6676
6676
|
value: e.id,
|
|
6677
6677
|
onDragStart: f,
|
|
6678
6678
|
onDragEnd: p,
|
|
@@ -6702,12 +6702,12 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6702
6702
|
}), n ? /* @__PURE__ */ X(Vf, {}) : null]
|
|
6703
6703
|
});
|
|
6704
6704
|
}, (e, t) => e.showEndOfSection === t.showEndOfSection && e.className === t.className && (0, _l.default)(e.section, t.section) && (0, _l.default)(e.item, t.item)), Uf = ({ question: e }) => {
|
|
6705
|
-
let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = of(), i =
|
|
6705
|
+
let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = of(), i = We(), { disabled: a, answering: o, getSectionContainingQuestion: s } = nf(), c = s(e.id), l = () => {
|
|
6706
6706
|
n(!0), r(e.id);
|
|
6707
6707
|
}, u = () => {
|
|
6708
6708
|
n(!1), r(null);
|
|
6709
6709
|
}, d = c?.locked, f = !a && !o && !d;
|
|
6710
|
-
return /* @__PURE__ */ X(
|
|
6710
|
+
return /* @__PURE__ */ X(mt, {
|
|
6711
6711
|
value: e,
|
|
6712
6712
|
as: "div",
|
|
6713
6713
|
onDragStart: l,
|
|
@@ -6835,7 +6835,7 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6835
6835
|
disabled: S,
|
|
6836
6836
|
className: B("w-full [field-sizing:content] resize-none text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", S && "cursor-not-allowed")
|
|
6837
6837
|
}) : null]
|
|
6838
|
-
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(af, { children: /* @__PURE__ */ X(
|
|
6838
|
+
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(af, { children: /* @__PURE__ */ X(Ut, {
|
|
6839
6839
|
axis: "y",
|
|
6840
6840
|
values: i,
|
|
6841
6841
|
onReorder: b,
|
|
@@ -6857,8 +6857,8 @@ var Lf = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6857
6857
|
})] })]
|
|
6858
6858
|
});
|
|
6859
6859
|
}, Gf = xc(({ item: e, className: t }) => {
|
|
6860
|
-
let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = of(), o =
|
|
6861
|
-
return /* @__PURE__ */ X(
|
|
6860
|
+
let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = of(), o = We(), { disabled: s, answering: c } = nf(), l = a === e.section.id;
|
|
6861
|
+
return /* @__PURE__ */ X(mt, {
|
|
6862
6862
|
value: e.id,
|
|
6863
6863
|
onDragStart: () => {
|
|
6864
6864
|
r(!0), i(e.section.id);
|
|
@@ -7289,7 +7289,7 @@ var tp = (e, t, n) => {
|
|
|
7289
7289
|
initial: { filter: "blur(0px)" },
|
|
7290
7290
|
animate: { filter: a ? "blur(2px)" : "none" },
|
|
7291
7291
|
exit: { filter: "blur(0px)" },
|
|
7292
|
-
children: [/* @__PURE__ */ X(
|
|
7292
|
+
children: [/* @__PURE__ */ X(Ut, {
|
|
7293
7293
|
axis: "y",
|
|
7294
7294
|
values: h,
|
|
7295
7295
|
onReorder: b,
|
|
@@ -8074,8 +8074,8 @@ function Fp(e) {
|
|
|
8074
8074
|
function Ip(e) {
|
|
8075
8075
|
return e.inline ? /* @__PURE__ */ X(Rp, { ...e }) : /* @__PURE__ */ X(Lp, { ...e });
|
|
8076
8076
|
}
|
|
8077
|
-
function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen:
|
|
8078
|
-
let { t: b } = R(), x = c === "fullscreen", S = c === "fullscreen" ? "center" : c, [C, w] = J(x), { formRef: T, submit: E, isSubmitting: D, hasErrors: O } =
|
|
8077
|
+
function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen: d = !1, defaultValues: f, errorTriggerMode: m = "on-blur", loading: h = !1, labels: g, preview: _ = !1, useUpload: v, datasets: y }) {
|
|
8078
|
+
let { t: b } = R(), x = c === "fullscreen", S = c === "fullscreen" ? "center" : c, [C, w] = J(x), { formRef: T, submit: E, isSubmitting: D, hasErrors: O } = Xe(), k = q({}), A = K(() => Op(e), [e]), j = mp(A), M = A.length > 0, N = {
|
|
8079
8079
|
title: g?.empty?.title ?? b("surveyAnsweringForm.labels.empty.title"),
|
|
8080
8080
|
description: g?.empty?.description ?? b("surveyAnsweringForm.labels.empty.description"),
|
|
8081
8081
|
emoji: g?.empty?.emoji ?? b("surveyAnsweringForm.labels.empty.emoji")
|
|
@@ -8148,7 +8148,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8148
8148
|
o,
|
|
8149
8149
|
re
|
|
8150
8150
|
]);
|
|
8151
|
-
let ve =
|
|
8151
|
+
let ve = d && !h ? [{
|
|
8152
8152
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8153
8153
|
icon: C ? Ki : ni,
|
|
8154
8154
|
onClick: () => w((e) => !e)
|
|
@@ -8211,7 +8211,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8211
8211
|
children: [
|
|
8212
8212
|
/* @__PURE__ */ X("div", {
|
|
8213
8213
|
className: "mb-6",
|
|
8214
|
-
children: /* @__PURE__ */ X(
|
|
8214
|
+
children: /* @__PURE__ */ X(je, {
|
|
8215
8215
|
title: r,
|
|
8216
8216
|
description: i,
|
|
8217
8217
|
...a
|
|
@@ -8224,7 +8224,7 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8224
8224
|
justifyContent: "center",
|
|
8225
8225
|
alignItems: "center",
|
|
8226
8226
|
paddingX: "lg",
|
|
8227
|
-
children: /* @__PURE__ */ X(
|
|
8227
|
+
children: /* @__PURE__ */ X(p, {
|
|
8228
8228
|
emoji: N.emoji,
|
|
8229
8229
|
title: N.title,
|
|
8230
8230
|
description: N.description
|
|
@@ -8240,14 +8240,14 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8240
8240
|
children: j.currentQuestion?.sectionDescription
|
|
8241
8241
|
}) : null]
|
|
8242
8242
|
}) : null,
|
|
8243
|
-
M && !h ? /* @__PURE__ */ X(
|
|
8243
|
+
M && !h ? /* @__PURE__ */ X(u, {
|
|
8244
8244
|
formRef: T,
|
|
8245
8245
|
name: "survey-answering",
|
|
8246
8246
|
schema: ae,
|
|
8247
8247
|
defaultValues: oe,
|
|
8248
8248
|
onSubmit: pe,
|
|
8249
8249
|
submitConfig: { hideSubmitButton: !0 },
|
|
8250
|
-
errorTriggerMode:
|
|
8250
|
+
errorTriggerMode: m,
|
|
8251
8251
|
sections: se
|
|
8252
8252
|
}, P ? j.currentStep : void 0) : null
|
|
8253
8253
|
]
|
|
@@ -8258,14 +8258,14 @@ function Lp({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8258
8258
|
});
|
|
8259
8259
|
}
|
|
8260
8260
|
function Rp({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
|
|
8261
|
-
let { t:
|
|
8262
|
-
title: o?.empty?.title ??
|
|
8263
|
-
description: o?.empty?.description ??
|
|
8264
|
-
emoji: o?.empty?.emoji ??
|
|
8261
|
+
let { t: d } = R(), f = K(() => Op(e), [e]).length > 0, m = {
|
|
8262
|
+
title: o?.empty?.title ?? d("surveyAnsweringForm.labels.empty.title"),
|
|
8263
|
+
description: o?.empty?.description ?? d("surveyAnsweringForm.labels.empty.description"),
|
|
8264
|
+
emoji: o?.empty?.emoji ?? d("surveyAnsweringForm.labels.empty.emoji")
|
|
8265
8265
|
}, { schema: h, defaultValues: g, sections: _ } = Mp({
|
|
8266
8266
|
elements: e,
|
|
8267
8267
|
mode: "all-questions",
|
|
8268
|
-
t:
|
|
8268
|
+
t: d,
|
|
8269
8269
|
defaultValues: i,
|
|
8270
8270
|
previewMode: !0,
|
|
8271
8271
|
disableFields: !0,
|
|
@@ -8281,12 +8281,12 @@ function Rp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
8281
8281
|
className: "mx-auto flex w-full max-w-3xl flex-col",
|
|
8282
8282
|
children: [l ? null : /* @__PURE__ */ X("div", {
|
|
8283
8283
|
className: "mb-6",
|
|
8284
|
-
children: /* @__PURE__ */ X(
|
|
8284
|
+
children: /* @__PURE__ */ X(je, {
|
|
8285
8285
|
title: t,
|
|
8286
8286
|
description: n,
|
|
8287
8287
|
...r
|
|
8288
8288
|
})
|
|
8289
|
-
}), a ? /* @__PURE__ */ X(fp, {}) : f ? /* @__PURE__ */ X(
|
|
8289
|
+
}), a ? /* @__PURE__ */ X(fp, {}) : f ? /* @__PURE__ */ X(u, {
|
|
8290
8290
|
name: "survey-answering-inline",
|
|
8291
8291
|
schema: h,
|
|
8292
8292
|
defaultValues: g,
|
|
@@ -8302,10 +8302,10 @@ function Rp({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
8302
8302
|
justifyContent: "center",
|
|
8303
8303
|
alignItems: "center",
|
|
8304
8304
|
paddingX: "lg",
|
|
8305
|
-
children: /* @__PURE__ */ X(
|
|
8306
|
-
emoji:
|
|
8307
|
-
title:
|
|
8308
|
-
description:
|
|
8305
|
+
children: /* @__PURE__ */ X(p, {
|
|
8306
|
+
emoji: m.emoji,
|
|
8307
|
+
title: m.title,
|
|
8308
|
+
description: m.description
|
|
8309
8309
|
})
|
|
8310
8310
|
})]
|
|
8311
8311
|
})
|
|
@@ -8538,7 +8538,7 @@ function qp({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
8538
8538
|
})
|
|
8539
8539
|
})
|
|
8540
8540
|
})
|
|
8541
|
-
}), b && _ ? /* @__PURE__ */ X(
|
|
8541
|
+
}), b && _ ? /* @__PURE__ */ X(A, {
|
|
8542
8542
|
open: !0,
|
|
8543
8543
|
onClose: () => {
|
|
8544
8544
|
T(), x(null);
|
|
@@ -8588,16 +8588,16 @@ function Yp({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
8588
8588
|
className: "h-full w-full rounded-md"
|
|
8589
8589
|
}) : null }), /* @__PURE__ */ Z("div", {
|
|
8590
8590
|
className: "flex flex-col gap-[2px] p-3",
|
|
8591
|
-
children: [/* @__PURE__ */ X(
|
|
8591
|
+
children: [/* @__PURE__ */ X(Bt, {
|
|
8592
8592
|
className: "text-lg font-medium",
|
|
8593
8593
|
children: t
|
|
8594
|
-
}), /* @__PURE__ */ X(
|
|
8594
|
+
}), /* @__PURE__ */ X(Bt, {
|
|
8595
8595
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
8596
8596
|
children: n
|
|
8597
8597
|
})]
|
|
8598
8598
|
})] })] }), s ? /* @__PURE__ */ X(pa, {
|
|
8599
8599
|
className: "p-3",
|
|
8600
|
-
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(
|
|
8600
|
+
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(x, {
|
|
8601
8601
|
label: e.label,
|
|
8602
8602
|
onRequest: e.onClick,
|
|
8603
8603
|
errorMessage: e.errorMessage,
|
|
@@ -8657,7 +8657,7 @@ function Qp({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
8657
8657
|
})]
|
|
8658
8658
|
}), /* @__PURE__ */ X("div", {
|
|
8659
8659
|
className: B("flex flex-shrink-0 @xs:pl-0", e && "pl-8"),
|
|
8660
|
-
children: /* @__PURE__ */ X(
|
|
8660
|
+
children: /* @__PURE__ */ X(x, {
|
|
8661
8661
|
label: r.label,
|
|
8662
8662
|
onRequest: r.onRequest,
|
|
8663
8663
|
errorMessage: r.errorMessage,
|
|
@@ -8679,7 +8679,7 @@ function Qp({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
8679
8679
|
});
|
|
8680
8680
|
}
|
|
8681
8681
|
var $p = L(Qp), em = yc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
|
|
8682
|
-
let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(
|
|
8682
|
+
let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(x, {
|
|
8683
8683
|
label: e.label,
|
|
8684
8684
|
onRequest: e.onClick,
|
|
8685
8685
|
errorMessage: e.errorMessage,
|
|
@@ -8697,7 +8697,7 @@ var $p = L(Qp), em = yc(function({ primaryAction: e, secondaryAction: t, ...n },
|
|
|
8697
8697
|
size: "md",
|
|
8698
8698
|
icon: e.icon
|
|
8699
8699
|
}), a = e?.variant === "promote" ? void 0 : e, o = t?.variant === "promote" ? void 0 : t;
|
|
8700
|
-
return /* @__PURE__ */ Z(
|
|
8700
|
+
return /* @__PURE__ */ Z(nt, {
|
|
8701
8701
|
ref: r,
|
|
8702
8702
|
...n,
|
|
8703
8703
|
primaryAction: a,
|
|
@@ -8756,7 +8756,7 @@ function nm({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
8756
8756
|
showConfirmation: !1
|
|
8757
8757
|
})
|
|
8758
8758
|
})]
|
|
8759
|
-
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(
|
|
8759
|
+
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(A, {
|
|
8760
8760
|
open: !0,
|
|
8761
8761
|
onClose: T,
|
|
8762
8762
|
success: y === "success",
|
|
@@ -9496,7 +9496,7 @@ function Ym(e) {
|
|
|
9496
9496
|
return t ? Pt(t) ?? null : null;
|
|
9497
9497
|
}
|
|
9498
9498
|
function Xm(e, t, n) {
|
|
9499
|
-
let r =
|
|
9499
|
+
let r = st(document.createElement("div"), void 0, {
|
|
9500
9500
|
renderer: "canvas",
|
|
9501
9501
|
width: e.getWidth(),
|
|
9502
9502
|
height: e.getHeight()
|
|
@@ -9790,17 +9790,17 @@ function nh({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
9790
9790
|
}
|
|
9791
9791
|
//#endregion
|
|
9792
9792
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
9793
|
-
function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi:
|
|
9793
|
+
function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: m, onAskAiTarget: h, itemId: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
9794
9794
|
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = ka(), ee = (e) => {
|
|
9795
9795
|
T(e), e || A(!1);
|
|
9796
|
-
}, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, I = u && f && g, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (
|
|
9796
|
+
}, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, I = u && f && g, re = _ && _.length > 0, ie = !!v && v.trim().length > 0, ae = !!C, oe = !d && e.trim().length > 0 && (m ? !!g : M), se = oe || ne || I || re || ie, ce = !!l || ae || !!se, le = !y && (w || E), ue = B("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", le && "delay-0 !opacity-100"), de = B("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", le && "delay-0 !grid-cols-[1fr]"), fe = nh({
|
|
9797
9797
|
title: e,
|
|
9798
9798
|
enabled: x > 2,
|
|
9799
9799
|
actionsCollapse: !y
|
|
9800
9800
|
}), pe = fe.fits ? 1 : 2, me = x - pe, he = () => {
|
|
9801
|
-
if (
|
|
9801
|
+
if (m) {
|
|
9802
9802
|
if (!g) return;
|
|
9803
|
-
|
|
9803
|
+
m({
|
|
9804
9804
|
id: g,
|
|
9805
9805
|
title: e
|
|
9806
9806
|
});
|
|
@@ -9838,7 +9838,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9838
9838
|
children: e
|
|
9839
9839
|
}), n ? /* @__PURE__ */ X("div", {
|
|
9840
9840
|
className: "flex shrink-0 items-center text-f1-foreground-secondary",
|
|
9841
|
-
children: /* @__PURE__ */ X(
|
|
9841
|
+
children: /* @__PURE__ */ X(Ae, { info: n })
|
|
9842
9842
|
}) : null]
|
|
9843
9843
|
}), t ? /* @__PURE__ */ X("p", {
|
|
9844
9844
|
className: "text-base text-f1-foreground-secondary",
|
|
@@ -9874,7 +9874,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9874
9874
|
}) : null]
|
|
9875
9875
|
}), /* @__PURE__ */ X("div", {
|
|
9876
9876
|
className: "min-h-0 flex-1 overflow-auto",
|
|
9877
|
-
children: /* @__PURE__ */ X(
|
|
9877
|
+
children: /* @__PURE__ */ X(p, {
|
|
9878
9878
|
variant: "critical",
|
|
9879
9879
|
title: j.ai.dashboardItem.errorTitle,
|
|
9880
9880
|
description: i.message,
|
|
@@ -9906,7 +9906,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9906
9906
|
}), n ? /* @__PURE__ */ X("div", {
|
|
9907
9907
|
ref: fe.infoRef,
|
|
9908
9908
|
className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
|
|
9909
|
-
children: /* @__PURE__ */ X(
|
|
9909
|
+
children: /* @__PURE__ */ X(Ae, { info: n })
|
|
9910
9910
|
}) : null]
|
|
9911
9911
|
}), ce ? /* @__PURE__ */ X("div", {
|
|
9912
9912
|
ref: fe.actionsRef,
|
|
@@ -9960,7 +9960,7 @@ function rh({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
9960
9960
|
children: [/* @__PURE__ */ X($n, {
|
|
9961
9961
|
className: "text-base font-medium text-f1-foreground-tertiary",
|
|
9962
9962
|
children: j.ai.dashboardItem.chartType
|
|
9963
|
-
}), /* @__PURE__ */ X(
|
|
9963
|
+
}), /* @__PURE__ */ X(Et, {
|
|
9964
9964
|
items: _.map((e) => ({
|
|
9965
9965
|
value: e.value,
|
|
9966
9966
|
icon: e.icon,
|
|
@@ -10114,7 +10114,7 @@ function oh({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
10114
10114
|
//#endregion
|
|
10115
10115
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/pointQuote.ts
|
|
10116
10116
|
function sh(e, t, n, r = "y") {
|
|
10117
|
-
return t === null ? n : r === "x" && e.type === "scatter" ?
|
|
10117
|
+
return t === null ? n : r === "x" && e.type === "scatter" ? St(e.xTooltipValueFormatter, e.xValueFormatter)(t) : St(e.tooltipValueFormatter, e.valueFormatter)(t);
|
|
10118
10118
|
}
|
|
10119
10119
|
function ch(e, t) {
|
|
10120
10120
|
return t ? `${e} — ${t}` : e;
|
|
@@ -10189,7 +10189,7 @@ function hh(e) {
|
|
|
10189
10189
|
var gh = { type: "bar" };
|
|
10190
10190
|
function _h(e) {
|
|
10191
10191
|
switch (e.type) {
|
|
10192
|
-
case "bar": return /* @__PURE__ */ X(
|
|
10192
|
+
case "bar": return /* @__PURE__ */ X(wt, {
|
|
10193
10193
|
orientation: e.orientation,
|
|
10194
10194
|
stacked: e.stacked,
|
|
10195
10195
|
showLegend: e.showLegend
|
|
@@ -10200,19 +10200,19 @@ function _h(e) {
|
|
|
10200
10200
|
showDots: e.showDots,
|
|
10201
10201
|
showLegend: e.showLegend
|
|
10202
10202
|
});
|
|
10203
|
-
case "funnel": return /* @__PURE__ */ X(
|
|
10203
|
+
case "funnel": return /* @__PURE__ */ X(Lt, {
|
|
10204
10204
|
orient: e.orient,
|
|
10205
10205
|
sort: e.sort,
|
|
10206
10206
|
showLegend: e.showLegend
|
|
10207
10207
|
});
|
|
10208
|
-
case "pie": return /* @__PURE__ */ X(
|
|
10208
|
+
case "pie": return /* @__PURE__ */ X(Ke, {
|
|
10209
10209
|
innerRadius: e.innerRadius,
|
|
10210
10210
|
showLegend: e.showLegend
|
|
10211
10211
|
});
|
|
10212
|
-
case "radar": return /* @__PURE__ */ X(
|
|
10213
|
-
case "gauge": return /* @__PURE__ */ X(
|
|
10214
|
-
case "heatmap": return /* @__PURE__ */ X(
|
|
10215
|
-
case "scatter": return /* @__PURE__ */ X(
|
|
10212
|
+
case "radar": return /* @__PURE__ */ X(Ze, { showLegend: e.showLegend });
|
|
10213
|
+
case "gauge": return /* @__PURE__ */ X(He, {});
|
|
10214
|
+
case "heatmap": return /* @__PURE__ */ X(gt, {});
|
|
10215
|
+
case "scatter": return /* @__PURE__ */ X(Ot, { showLegend: e.showLegend ?? !1 });
|
|
10216
10216
|
}
|
|
10217
10217
|
}
|
|
10218
10218
|
function vh(e) {
|
|
@@ -10332,14 +10332,14 @@ function xh({ config: e, data: t }) {
|
|
|
10332
10332
|
label: e,
|
|
10333
10333
|
id: e
|
|
10334
10334
|
}))
|
|
10335
|
-
}), [i]), o =
|
|
10335
|
+
}), [i]), o = ce(a, [i]), s = K(() => [{
|
|
10336
10336
|
type: "table",
|
|
10337
10337
|
options: { columns: i.columns.map((e, t) => ({
|
|
10338
10338
|
label: e,
|
|
10339
10339
|
render: (n) => String(n[i.keys?.[t] ?? e] ?? "")
|
|
10340
10340
|
})) }
|
|
10341
10341
|
}], [i.columns]);
|
|
10342
|
-
return /* @__PURE__ */ X(
|
|
10342
|
+
return /* @__PURE__ */ X(Tt, {
|
|
10343
10343
|
fullHeight: !0,
|
|
10344
10344
|
source: o,
|
|
10345
10345
|
visualizations: s
|
|
@@ -10448,7 +10448,7 @@ function Ch({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
10448
10448
|
ref: k,
|
|
10449
10449
|
tabIndex: -1,
|
|
10450
10450
|
className: B("relative h-full w-full px-4 py-3", Tn("rounded-sm focus-visible:ring-inset focus-visible:ring-offset-0")),
|
|
10451
|
-
children: [/* @__PURE__ */ X(
|
|
10451
|
+
children: [/* @__PURE__ */ X(Vt, {
|
|
10452
10452
|
...A,
|
|
10453
10453
|
ariaLabel: e.title,
|
|
10454
10454
|
onPointClick: M ? (e) => S(e) : void 0,
|
|
@@ -10467,7 +10467,7 @@ function Ch({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
10467
10467
|
})]
|
|
10468
10468
|
}) : E ? null : /* @__PURE__ */ X("div", {
|
|
10469
10469
|
className: "h-full w-full px-4 py-3",
|
|
10470
|
-
children: /* @__PURE__ */ X(
|
|
10470
|
+
children: /* @__PURE__ */ X(yt, {})
|
|
10471
10471
|
})
|
|
10472
10472
|
});
|
|
10473
10473
|
}
|
|
@@ -10590,7 +10590,7 @@ function jh({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
10590
10590
|
//#endregion
|
|
10591
10591
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
|
|
10592
10592
|
function Mh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
|
|
10593
|
-
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h =
|
|
10593
|
+
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = ce(m, [f, p]), [g, _] = J(), v = K(() => wh(e.visualizations), [e]), y = jh({
|
|
10594
10594
|
source: h,
|
|
10595
10595
|
title: e.title,
|
|
10596
10596
|
description: e.description,
|
|
@@ -10613,7 +10613,7 @@ function Mh({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
10613
10613
|
itemId: e.id,
|
|
10614
10614
|
isFullscreen: l,
|
|
10615
10615
|
onFullscreenChange: u,
|
|
10616
|
-
children: /* @__PURE__ */ X(
|
|
10616
|
+
children: /* @__PURE__ */ X(Tt, {
|
|
10617
10617
|
fullHeight: !0,
|
|
10618
10618
|
source: h,
|
|
10619
10619
|
visualizations: e.visualizations,
|
|
@@ -10672,7 +10672,7 @@ function Fh(e, t) {
|
|
|
10672
10672
|
};
|
|
10673
10673
|
}
|
|
10674
10674
|
function Ih({ value: e, trend: t, comparison: n }) {
|
|
10675
|
-
let r = q(null), { height: i, width: a } =
|
|
10675
|
+
let r = q(null), { height: i, width: a } = Fe(r), [o, s] = J(!1), c = i > 220;
|
|
10676
10676
|
return Tc(() => {
|
|
10677
10677
|
let e = r.current;
|
|
10678
10678
|
s(e !== null && (e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight));
|
|
@@ -10733,7 +10733,7 @@ function Ih({ value: e, trend: t, comparison: n }) {
|
|
|
10733
10733
|
" ",
|
|
10734
10734
|
n.value
|
|
10735
10735
|
]
|
|
10736
|
-
}), n.info ? /* @__PURE__ */ X(
|
|
10736
|
+
}), n.info ? /* @__PURE__ */ X(Ae, {
|
|
10737
10737
|
info: n.info,
|
|
10738
10738
|
label: n.label
|
|
10739
10739
|
}) : null]
|
|
@@ -11463,7 +11463,7 @@ var _g = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
|
|
|
11463
11463
|
}) : v ? /* @__PURE__ */ X(dg, {}) : null
|
|
11464
11464
|
}), /* @__PURE__ */ Z("div", {
|
|
11465
11465
|
className: "flex shrink-0 items-center gap-2",
|
|
11466
|
-
children: [_ ? /* @__PURE__ */ X(
|
|
11466
|
+
children: [_ ? /* @__PURE__ */ X(re, {
|
|
11467
11467
|
navigationFilters: _,
|
|
11468
11468
|
currentNavigationFilters: C,
|
|
11469
11469
|
onChangeNavigationFilters: w,
|
|
@@ -11587,7 +11587,7 @@ var Eg = {
|
|
|
11587
11587
|
i.splice(n, 1), this.setToasts(i);
|
|
11588
11588
|
}
|
|
11589
11589
|
addToast = (e) => {
|
|
11590
|
-
let { timeout: t, limit: n } = this.state, r = e.id ||
|
|
11590
|
+
let { timeout: t, limit: n } = this.state, r = e.id || Ye("toast");
|
|
11591
11591
|
if (e.id) {
|
|
11592
11592
|
let t = Eg.toast(this.state, e.id);
|
|
11593
11593
|
if (t) {
|
|
@@ -12409,7 +12409,7 @@ var h_ = (e) => e instanceof Element && e.closest("button, a") !== null, g_ = yc
|
|
|
12409
12409
|
}),
|
|
12410
12410
|
i > 0 ? /* @__PURE__ */ X("p", {
|
|
12411
12411
|
className: "text-sm text-f1-foreground-inverse-secondary",
|
|
12412
|
-
children:
|
|
12412
|
+
children: Ue(d.toasts.moreMessages, i)
|
|
12413
12413
|
}) : null
|
|
12414
12414
|
]
|
|
12415
12415
|
}, l),
|
|
@@ -12589,7 +12589,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12589
12589
|
}, L_ = Infinity, R_ = ({ messages: e, app: t }) => {
|
|
12590
12590
|
let [n, r] = J(!1), [i, a] = J(!1), o = F_(n || i), s = I_(), c = R();
|
|
12591
12591
|
return /* @__PURE__ */ X("div", {
|
|
12592
|
-
className: "pointer-events-none fixed z-[
|
|
12592
|
+
className: "pointer-events-none fixed z-[1260] flex flex-col-reverse items-center overflow-y-auto overflow-x-hidden py-6",
|
|
12593
12593
|
style: o,
|
|
12594
12594
|
children: /* @__PURE__ */ Z("div", {
|
|
12595
12595
|
className: "flex w-[calc(100%-2rem)] shrink-0 flex-col gap-3 sm:w-96",
|
|
@@ -12618,9 +12618,9 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12618
12618
|
mobile: "#f0-overlay-root",
|
|
12619
12619
|
desktop: "#f0-overlay-root"
|
|
12620
12620
|
} }) => {
|
|
12621
|
-
let n = q(null), r = Ec(
|
|
12621
|
+
let n = q(null), r = Ec(Be.subscribeRenderer, Be.getActiveRendererId, () => null);
|
|
12622
12622
|
G(function() {
|
|
12623
|
-
let { id: e, release: t } =
|
|
12623
|
+
let { id: e, release: t } = Be.acquireRenderer();
|
|
12624
12624
|
return n.current = e, t;
|
|
12625
12625
|
}, []);
|
|
12626
12626
|
let i = r !== null && r === n.current, a = bg(), [o, s] = J(null), [c, l] = J(0), u = q(null);
|
|
@@ -12633,26 +12633,26 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12633
12633
|
t?.mobile,
|
|
12634
12634
|
t?.desktop
|
|
12635
12635
|
]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? Oc(/* @__PURE__ */ X(_c, { children: /* @__PURE__ */ X(R_, {
|
|
12636
|
-
messages:
|
|
12637
|
-
app:
|
|
12636
|
+
messages: Ht,
|
|
12637
|
+
app: pt
|
|
12638
12638
|
}) }, c), o) : null, e] });
|
|
12639
|
-
}, B_ = ({ children: e, link: t, privacyModeInitiallyEnabled:
|
|
12639
|
+
}, B_ = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1 }) => /* @__PURE__ */ X(_t, {
|
|
12640
12640
|
reducedMotion: "user",
|
|
12641
12641
|
children: /* @__PURE__ */ X(pn, {
|
|
12642
|
-
isDev:
|
|
12643
|
-
showExperimentalWarnings:
|
|
12644
|
-
renderDataTestIdAttribute:
|
|
12645
|
-
hourCycle:
|
|
12642
|
+
isDev: s,
|
|
12643
|
+
showExperimentalWarnings: c,
|
|
12644
|
+
renderDataTestIdAttribute: l,
|
|
12645
|
+
hourCycle: o,
|
|
12646
12646
|
children: /* @__PURE__ */ X(ks, {
|
|
12647
|
-
...
|
|
12647
|
+
...a,
|
|
12648
12648
|
children: /* @__PURE__ */ X(mn, {
|
|
12649
|
-
...
|
|
12649
|
+
...i,
|
|
12650
12650
|
children: /* @__PURE__ */ X(rr, {
|
|
12651
12651
|
...t,
|
|
12652
|
-
children: /* @__PURE__ */ X(Xa, { children: /* @__PURE__ */ X(
|
|
12653
|
-
initiallyEnabled:
|
|
12652
|
+
children: /* @__PURE__ */ X(Xa, { children: /* @__PURE__ */ X(zt, {
|
|
12653
|
+
initiallyEnabled: n,
|
|
12654
12654
|
children: /* @__PURE__ */ X(ro, {
|
|
12655
|
-
...
|
|
12655
|
+
...r,
|
|
12656
12656
|
children: e
|
|
12657
12657
|
})
|
|
12658
12658
|
}) })
|
|
@@ -12690,7 +12690,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12690
12690
|
...t,
|
|
12691
12691
|
children: /* @__PURE__ */ X(ci, {
|
|
12692
12692
|
handler: l,
|
|
12693
|
-
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(
|
|
12693
|
+
children: /* @__PURE__ */ X(sr, { children: /* @__PURE__ */ X(ot, {
|
|
12694
12694
|
...p,
|
|
12695
12695
|
children: /* @__PURE__ */ X(U_.Provider, {
|
|
12696
12696
|
value: f,
|
|
@@ -12699,7 +12699,7 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12699
12699
|
mobile: "#f0-overlay-root",
|
|
12700
12700
|
desktop: "#f0-overlay-root"
|
|
12701
12701
|
},
|
|
12702
|
-
children: /* @__PURE__ */ X(Fu, { children: /* @__PURE__ */ X(
|
|
12702
|
+
children: /* @__PURE__ */ X(Fu, { children: /* @__PURE__ */ X(Rt, { children: e }) })
|
|
12703
12703
|
}) })
|
|
12704
12704
|
})
|
|
12705
12705
|
}) })
|
|
@@ -12707,4 +12707,4 @@ var __ = B("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
12707
12707
|
})
|
|
12708
12708
|
});
|
|
12709
12709
|
//#endregion
|
|
12710
|
-
export { br as AiChatTranslationsProvider,
|
|
12710
|
+
export { br as AiChatTranslationsProvider, it as AreaChart, zs as Await, et as BarChart, wt as BarChartSkeleton, ie as CardSelectableContainer, Ne as CategoryBarChart, Bi as ChatSpinner, Is as Chip, Mr as CollapsibleGroup, Yt as ComboChart, at as DATA_COLLECTION_URL_PARAMS, tt as DATA_COLLECTION_URL_PARAM_PREFIX, jl as Dashboard, yt as DataChartEmptyStateView, dn as DataTestIdWrapper, ht as DndProvider, Ka as DropOverlay, qn as EmojiImage, lu as F0Accordion, t as F0ActionBar, aa as F0ActionItem, hi as F0AiChat, xr as F0AiChatCreditsButton, kr as F0AiChatHeader, Er as F0AiChatHistory, yi as F0AiChatProvider, cr as F0AiChatTextArea, ur as F0AiChatUsageLimitsButton, _r as F0AiFileAttachments, Ga as F0AiFilePreviewsProvider, Ea as F0AiFormRegistryProvider, Ar as F0AiInsightCard, vr as F0AiMask, Sr as F0AiMessageSources, ar as F0AiMessagesContainer, ui as F0AiPong, Ir as F0AiProcessingOverlay, Cr as F0AiProposalCard, Lr as F0AiTableCard, lc as F0Alert, vg as F0AnalyticsDashboard, Na as F0AudioPlayer, Va as F0AudioPlayerCard, wr as F0AuraVoiceAnimation, uo as F0Avatar, Mi as F0AvatarAlert, no as F0AvatarCompany, Jr as F0AvatarDate, oo as F0AvatarEmoji, lo as F0AvatarFile, fo as F0AvatarIcon, go as F0AvatarList, ho as F0AvatarModule, po as F0AvatarPerson, _o as F0AvatarTeam, $l as F0BigNumber, cm as F0BookAMeetingCard, ao as F0Box, V as F0Button, _i as F0ButtonDropdown, Go as F0ButtonToggle, Or as F0CanvasCard, Da as F0CanvasPanel, Ta as F0Card, qr as F0CardRow, ya as F0ChatComposer, gs as F0Checkbox, pu as F0ChipList, Rr as F0ClarifyingPanel, Vt as F0DataChart, i as F0DatePicker, cn as F0DatePickerInline, im as F0DemoCard, ca as F0Dialog, f as F0DialogAlikeContext, y as F0DialogAlikeProvider, Lo as F0DialogContext, ws as F0DialogProvider, fc as F0DocumentViewer, xu as F0Drawer, dt as F0DurationInput, Fs as F0EventCatcherProvider, om as F0FAQCard, Oa as F0FileItem, wu as F0FilterPickerContent, pe as F0Form, Ru as F0FormField, xl as F0GridStack, Tr as F0HILActionConfirmation, Zt as F0Heading, H as F0Icon, Ii as F0Link, sm as F0ModuleCard, rn as F0NotesTextEditor, Ie as F0NotesTextEditorSkeleton, l as F0NumberInput, d as F0NumberInputInline, Ur as F0OneIcon, ga as F0OneSwitch, uc as F0PdfViewer, G_ as F0Provider, lm as F0QuestionCardMultiStep, Ja as F0RichTextDisplay, ct as F0RichTextEditor, _s as F0SearchInput, Os as F0Select, n as F0SelectInline, wd as F0Slider, Rd as F0TableOfContentPopover, ko as F0TagAlert, Bo as F0TagBalance, zo as F0TagCompany, ps as F0TagDot, vs as F0TagList, Co as F0TagPerson, Eo as F0TagRaw, Ko as F0TagStatus, ms as F0TagTeam, cc as F0Text, Qt as F0TextAreaInput, o as F0TextAreaInputInline, Wa as F0TextInput, ue as F0TextInputInline, a as F0TimelineRow, mc as F0VideoPlayer, sd as F0WizardForm, us as F1SearchBox, N as FILE_TYPES, va as FileItem, sr as FormCardValueFormatterProvider, Lt as FunnelChartSkeleton, co as GROUP_ID_SYMBOL, bo as GROUP_KEY_SEPARATOR, He as GaugeChartSkeleton, gt as HeatmapChartSkeleton, ql as HomeLayout, Dt as InlineFieldRow, vt as InlineFieldRowList, Gi as Input, Wl as Layout, on as LineChart, Gt as LineChartSkeleton, Pe as MAX_URL_FILTER_VALUES, $t as NotesTextEditor, le as NotesTextEditorSkeleton, ee as NumberInput, cs as OneCalendar, es as OneCalendarInternal, $n as OneEllipsis, p as OneEmptyState, Ts as OneFilterPicker, Re as PieChart, Ke as PieChartSkeleton, xi as PongBall, zt as PrivacyModeProvider, Gp as ProductBlankslate, Qe as ProductCard, Jp as ProductModal, Xp as ProductWidget, tn as ProgressBarChart, de as RadarChart, Ze as RadarChartSkeleton, Xr as RichTextDisplay, j as RichTextEditor, Ot as ScatterChartSkeleton, Gl as StandardLayout, fp as SurveyAllQuestionsLoadingSkeleton, Ip as SurveyAnsweringForm, ip as SurveyFormBuilder, zp as SurveySampleQuestion, pp as SurveySteppedLoadingSkeleton, Oo as Tag, ds as TagCounter, me as Textarea, Fr as ThreadItem, yr as ThreadListSkeleton, z_ as ToastProvider, Kl as TwoColumnLayout, te as UPLOAD_INPUT_ID, A as UpsellRequestResponseDialog, $p as UpsellingAlert, tm as UpsellingBanner, x as UpsellingButton, rm as UpsellingPopover, s as VerticalBarChart, Es as WeekStartDay, Je as actionBarStatuses, Hr as actionItemStatuses, ba as adaptDataAdapterToInfiniteScroll, ir as aiChatFileFromShowFilesItem, Dr as aiChatFileFromUploadedFile, dr as aiChatFilesFromMessage, fr as aiChatMessageText, gr as aiTranslations, gu as alertVariantOptions, ru as audioPlayerSizes, Jl as avatarVariants, Xt as buildDataCollectionUrlParams, fn as buildTranslations, nu as buttonDropdownModes, tu as buttonDropdownSizes, eu as buttonDropdownVariants, Dl as buttonSizes, Te as buttonToggleColors, we as buttonToggleSizes, ke as buttonToggleVariants, El as buttonVariants, uu as cardAlertVariants, ua as cardImageAspectRatios, ja as cardImageFits, Yi as cardImageSizes, Uo as chartColorTokens, Jo as chipVariants, Ud as computeSectionEndIds, pc as configurePdfWorker, Nr as contentTypes, Wt as createAtlaskitDriver, Yo as createDataSourceDefinition, Ou as createF0FormDefinitionTester, Du as createF0FormTester, wl as createPageLayoutBlock, Tl as createPageLayoutBlockGroup, lr as createPersonMentionSource, _u as dataCollectionLocalStorageHandler, mu as datePickerInlineDismissReasons, hu as datepickerSizes, eo as defaultTranslations, qi as defineAvailableForm, Tu as describeFormSchema, D as dialog, D as dialogs, jt as drawers, ti as durationInputSizes, vi as durationUnits, Jt as evaluateRenderIf, hn as experimental, wa as f0FileItemSizes, Li as f0FormField, Ia as fieldsToSeconds, zd as flattenElements, ei as formatPlaybackTime, pd as forms, $e as generateAnchorId, Xo as getAnimationVariants, Ni as getDataCollectionStorageKey, Zo as getDataSourcePaginationType, Qn as getEmojiLabel, Pa as getF0Config, Ns as getGranularityDefinition, ss as getGranularityDefinitions, Rs as getGranularitySimpleDefinition, an as getSchemaDefinition, As as granularityDefinitions, Ha as hasF0Config, Ui as inferFieldType, Hd as injectSectionEnds, vo as isInfiniteScrollPagination, yo as isPageBasedPagination, za as isZodType, iu as linkVariants, mr as markdownRenderers, ji as mergeDataCollectionFilters, to as modules, hr as oneIconSizes, sn as parseDataCollectionUrlParams, dc as pdfScales, S as predefinedPresets, os as rangeSeparator, oi as readDataCollectionStorage, Vd as reconstructElements, li as resolveDataCollectionFilters, ys as resolveGranularityDefinition, kt as resolveItemNeighbors, m as resolveWindowNeighbors, Oi as secondsToFields, ii as secondsToVisibleFields, md as selectInlineDismissReasons, _e as selectSizes, g as selectVariants, ze as setDataCollectionUrlParams, hd as sliderTooltipModes, nn as syncDataCollectionUrlParams, Ed as tagDotColors, Td as timelineRowStatuses, Ft as toasts, $r as unwrapZodSchema, jr as usageLimitsPopoverSides, ka as useAiChat, Br as useAiChatTranslations, ri as useAudioPlayer, Vr as useCanvasEntity, Pr as useChatHistory, mo as useData, No as useDataSource, be as useDataSourceItemNavigation, Di as useDerivedTranscription, Ct as useDndEvents, It as useDraggable, Ve as useDroppableList, Xn as useEmojiConfetti, da as useF0AiFormRegistry, Io as useF0Dialog, O as useF0DialogAlikeContext, Xe as useF0Form, xt as useF0FormDefinition, or as useFormCardValueFormatter, W_ as useFormComponent, Po as useGroups, yg as useIsDesktop, bg as useIsMobile, T as useItemNeighbors, bt as usePrivacyMode, Jn as useReducedMotion, Le as useSchemaDefinition, wo as useSelectable, pr as useSetFormCardValueFormatter, zr as useToolCallId, Ya as useXRay, L as withDataTestId, fe as writeDataCollectionStorage };
|