@factorialco/f0-react 16.36.0 → 16.37.1
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-BOkvHgd_.js → ArchiveThumbnail-ZYA4PswK.js} +6 -6
- package/dist/{ArchiveViewer-CmoM8uO2.js → ArchiveViewer-2b9dN49e.js} +6 -6
- package/dist/{ChatPostComposerDialog-BlfRnich.js → ChatPostComposerDialog-7EqVcFTq.js} +4 -4
- package/dist/{Check-DSKdy4lh.js → Check-C_yDxMGY.js} +1 -1
- package/dist/{CoachmarkProvider-CE07lM-i.js → CoachmarkProvider-BJ4juEZJ.js} +22090 -22195
- package/dist/{CodeThumbnail-4Juwr4va.js → CodeThumbnail-BC1J1xCG.js} +1 -1
- package/dist/{CodeViewer-DxoMNOPf.js → CodeViewer-mQxlWTTr.js} +6 -6
- package/dist/{DocumentToolbar-Ce7J0eV7.js → DocumentToolbar-CzBcw-pR.js} +7 -7
- package/dist/{DocxViewer-D2CnuS5p.js → DocxViewer-mfc65BLH.js} +3 -3
- package/dist/{Ellipsis-D5UwpzSY.js → Ellipsis-CQUxNnJr.js} +1 -1
- package/dist/{ExternalLink-DOVErzVl.js → ExternalLink-Fo1hQrhp.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CqKJmZXs.js → F0AiProcessingOverlay-B1objX19.js} +415 -415
- package/dist/{F0Alert-DEa3QgeO.js → F0Alert-BQPEGRLa.js} +11 -11
- package/dist/F0AudioPlayer-B1qiG0Y0.js +2 -0
- package/dist/{F0Button-BJsJt_ZL.js → F0Button-CRX5bM7l.js} +3 -3
- package/dist/{F0CanvasPanel-BrBCO_gi.js → F0CanvasPanel-CjdXI0dP.js} +9199 -9053
- package/dist/{F0DocumentViewer-DirgMVCZ.js → F0DocumentViewer-C7LU44FE.js} +1 -1
- package/dist/{F0DocumentViewer-CFQCY5i6.js → F0DocumentViewer-DTf5dyv1.js} +4 -4
- package/dist/{F0Map-BPrVyqim.js → F0Map-BGvqrXQP.js} +66 -66
- package/dist/{F0Select-CLzwJBvd.js → F0Select-DZ9MlzrJ.js} +12 -12
- package/dist/{F0Text-DO-opB9S.js → F0Text-nln_5mr_.js} +2 -2
- package/dist/{F0VideoPlayer-Cyb1Vidm.js → F0VideoPlayer-CfUDjkoQ.js} +30 -30
- package/dist/F0VideoPlayer-DFUojQQ4.js +1 -0
- package/dist/{HtmlThumbnail-Hi747Tmk.js → HtmlThumbnail-DLR_pxKp.js} +1 -1
- package/dist/{HtmlViewer-mwi7RfDB.js → HtmlViewer-CoBHrnSy.js} +9 -9
- package/dist/{LayoutGroup-B9BnZypT.js → LayoutGroup-DjozJ14S.js} +1 -1
- package/dist/{LockLocked-FmZAbVxB.js → LockLocked-eJV3xZDn.js} +1 -1
- package/dist/{Map-BNiGhT41.js → Map-Dz1LV4ng.js} +10 -10
- package/dist/{PdfThumbnail-Dy7HLwhC.js → PdfThumbnail-Dii7dDPf.js} +1 -1
- package/dist/{PdfViewer-BMC6IGXj.js → PdfViewer-Bvn8sMuB.js} +12 -12
- package/dist/{SandboxedHtmlFrame-Ck62HtyP.js → SandboxedHtmlFrame-BVvitEn4.js} +3 -3
- package/dist/{SheetViewer-BhLETKTA.js → SheetViewer-DZF4U5_5.js} +6 -6
- package/dist/{TextViewer-CGxs4kaE.js → TextViewer-DnZ8xPWo.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +30 -8
- package/dist/{createIcon-l_kbsdJi.js → createIcon-DRrxxnkK.js} +1 -1
- package/dist/{dist-BVf4ny05.js → dist-B9Q5wICd.js} +4 -4
- package/dist/{dist-mt9P132m.js → dist-BB49d7CP.js} +2 -2
- package/dist/{dist-vWDXrm7a.js → dist-BlR9WJJ8.js} +1 -1
- package/dist/{dist-C04XuJk3.js → dist-CDjojOPL.js} +1 -1
- package/dist/{dist-TC4hmHdB.js → dist-CFLvAnX2.js} +2 -2
- package/dist/experimental.d.ts +139 -14
- package/dist/experimental.js +6662 -6298
- package/dist/{exports-OhW2O8GE.d.ts → exports-B363KqBU.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +315 -315
- package/dist/{highlight-CEZ90xPK.js → highlight-BDXA485a.js} +1 -1
- package/dist/{i18n-provider-DEmElb7u.js → i18n-provider-CnVpBH9I.js} +1 -1
- package/dist/{i18n-provider-defaults-SQ7US7M7.d.ts → i18n-provider-defaults-Bh7XGTvG.d.ts} +3 -0
- package/dist/{i18n-provider-defaults-CTH1Ugiz.js → i18n-provider-defaults-DCJs6SOs.js} +2 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BJ6j_yIt.d.ts → index-BPqcoGhj.d.ts} +41 -10
- package/dist/{index-sUM6VG1q.d.ts → index-BWn4S6tf.d.ts} +6 -2
- package/dist/{localized-D86_eL7B.js → localized-7ETR3yDx.js} +1 -1
- package/dist/{maplibre-IpicW_Aq.js → maplibre-DIO3t9oC.js} +1 -1
- package/dist/{pdfWorker-DwlPZetS.js → pdfWorker-CI_LSQM5.js} +1 -1
- package/dist/{popover-B7-MjlA_.js → popover-gRMsK8nl.js} +1 -1
- package/dist/{posts-riN1RZ23.js → posts-Bw2z5wOP.js} +24 -21
- package/dist/{skeleton-cJaQYsv6.js → skeleton-B2Nqp_5d.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-Al2tzXoH.js → toolbarStyles-fzsbc4zM.js} +1 -1
- package/dist/{useData-CZW0gG0I.js → useData-i0Sxq9o0.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-BnSS3X1L.js +0 -2
- package/dist/F0VideoPlayer-BCA2f2Pf.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, Gr as x, Gt as S, Hn as C, Ht as w, I as T, In as E, It as D, Jn as O, Jr as k, Jt as A, Kn as j,
|
|
3
|
-
import { a as L, i as mn, n as hn, o as gn, r as R, t as _n } from "./i18n-provider-
|
|
4
|
-
import { n as vn, t as z } 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, Gr as x, Gt as S, Hn as C, Ht as w, I as T, In as E, It as D, Jn as O, Jr as k, Jt as A, Kn as j, Kr as M, Kt as ee, Ln as N, Lt as P, M as te, Mn as ne, Mr as re, N as F, Nn as ie, Nr as ae, O as oe, On as se, Or as ce, Ot as le, P as ue, Pn as de, Pr as I, Pt as fe, Q as pe, Qr as me, Qt as he, Rn as ge, Rt as _e, S as ve, Sn as ye, Sr as be, T as xe, Tn as Se, Tr as Ce, Un as we, Ut as Te, Vn as Ee, Vt as De, Wn as Oe, Wt as ke, Xn as Ae, Yn as je, Yr as Me, Yt as Ne, Zn as Pe, Zr as Fe, Zt as Ie, _ as Le, _r as Re, _t as ze, ai as Be, ar as Ve, b as He, bi as Ue, br as We, bt as Ge, c as Ke, cn as qe, cr as Je, d as Ye, di as Xe, dr as Ze, ei as Qe, en as $e, er as et, et as tt, f as nt, fi as rt, fr as it, ft as at, gr as ot, gt as st, h as ct, hr as lt, ht as ut, i as dt, ii as ft, ir as pt, j as mt, jn as ht, jr as gt, k as _t, kn as vt, kr as yt, l as bt, ln as xt, lr as St, lt as Ct, m as wt, mr as Tt, mt as Et, ni as Dt, nn as Ot, nr as kt, on as At, or as jt, pi as Mt, pr as Nt, qn as Pt, qr as Ft, qt as It, ri as Lt, rn as Rt, rr as zt, s as Bt, sn as Vt, sr as Ht, t as Ut, tn as Wt, tr as Gt, u as Kt, un as qt, ur as Jt, v as Yt, vr as Xt, vt as Zt, w as Qt, wi as $t, wn as en, wr as tn, x as nn, xi as rn, xn as an, xr as on, xt as sn, y as cn, yi as ln, yr as un, yt as dn, zn as fn, zt as pn } from "./CoachmarkProvider-BJ4juEZJ.js";
|
|
3
|
+
import { a as L, i as mn, n as hn, o as gn, r as R, t as _n } from "./i18n-provider-CnVpBH9I.js";
|
|
4
|
+
import { n as vn, t as z } from "./skeleton-B2Nqp_5d.js";
|
|
5
5
|
import { A as yn, C as bn, D as xn, F as Sn, I as Cn, L as B, M as wn, N as Tn, O as En, P as Dn, R as On, S as kn, _ as An, b as jn, c as Mn, f as Nn, g as Pn, h as Fn, j as In, k as Ln, l as Rn, m as zn, p as Bn, v as Vn, w as Hn, x as Un, y as Wn } from "./tooltip-NXXT56H4.js";
|
|
6
|
-
import { E as Gn, F as Kn, I as qn, L as Jn, P as Yn, U as Xn, X as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, q as ir, r as ar, t as V, x as or } from "./F0Button-
|
|
7
|
-
import { $i as sr,
|
|
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 H, c as to, i as no, l as ro, n as io, o as ao, r as oo, s as so, u as co } from "./createIcon-
|
|
10
|
-
import { t as lo } from "./i18n-provider-defaults-
|
|
11
|
-
import { A as uo, C as fo, D as po, H as mo, N as ho, S as go, U as _o, _ as vo, a as yo, b as bo, d as xo, f as So, g as Co, h as wo, i as To, k as Eo, n as Do, o as Oo, p as ko, r as Ao, t as jo, u as Mo } from "./useData-
|
|
12
|
-
import { $ as No,
|
|
13
|
-
import { t as Qs } from "./Check-
|
|
14
|
-
import { a as $s } from "./dist-
|
|
15
|
-
import { t as ec } from "./Ellipsis-
|
|
16
|
-
import { t as tc } from "./LockLocked-
|
|
6
|
+
import { E as Gn, F as Kn, I as qn, L as Jn, P as Yn, U as Xn, X as Zn, b as Qn, f as $n, h as er, m as tr, n as nr, p as rr, q as ir, r as ar, t as V, x as or } from "./F0Button-CRX5bM7l.js";
|
|
7
|
+
import { $i as sr, $s as cr, As as lr, At as ur, B as dr, Bi as fr, Cl as pr, El as mr, G as hr, Gn as gr, Gt as _r, H as vr, Hi as yr, Ii as br, Ji as xr, Jn as Sr, Jo as Cr, K as wr, Kn as Tr, Lc as Er, Li as Dr, Lo as Or, Ls as kr, Mc as Ar, Nc as jr, Oc as Mr, Oi as Nr, Ol as Pr, Pl as Fr, Qi as Ir, Qn as Lr, Rc as Rr, Ri as zr, Sl as Br, Tl as Vr, U as Hr, Uc as Ur, Un as Wr, Us as Gr, V as Kr, Vl as qr, Vn as Jr, W as Yr, Wl as Xr, Wn as Zr, Xi as Qr, Xn as $r, Yi as ei, Yo as ti, Zn as ni, _a as ri, _i as ii, _s as ai, a as oi, ai as si, ba as ci, bl as li, bs as ui, ci as di, cn as fi, cr as pi, da as mi, dl as hi, dr as gi, ei as _i, fa as vi, fl as yi, fr as bi, ga as xi, gi as Si, gs as Ci, ha as wi, hc as Ti, hi as Ei, hs as Di, i as Oi, ia as ki, ii as Ai, jc as ji, ki as Mi, ks as Ni, la as Pi, li as Fi, lr as Ii, ls as Li, ma as Ri, mi as zi, na as Bi, ni as Vi, oi as Hi, or as Ui, pa as Wi, pi as Gi, ps as Ki, ra as qi, ri as Ji, sa as Yi, sl as Xi, sr as Zi, t as Qi, ta as $i, ti as ea, ua as ta, ur as na, va as ra, vi as ia, wa as aa, wl as oa, xa as sa, xc as ca, xl as la, ya as ua, z as da, zs as fa } from "./F0CanvasPanel-CjdXI0dP.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-B1objX19.js";
|
|
9
|
+
import { a as H, c as to, i as no, l as ro, n as io, o as ao, r as oo, s as so, u as co } from "./createIcon-DRrxxnkK.js";
|
|
10
|
+
import { t as lo } from "./i18n-provider-defaults-DCJs6SOs.js";
|
|
11
|
+
import { A as uo, C as fo, D as po, H as mo, N as ho, S as go, U as _o, _ as vo, a as yo, b as bo, d as xo, f as So, g as Co, h as wo, i as To, k as Eo, n as Do, o as Oo, p as ko, r as Ao, t as jo, u as Mo } from "./useData-i0Sxq9o0.js";
|
|
12
|
+
import { $ as No, Ar as Po, B as Fo, Br as Io, Bt as Lo, Cr as Ro, Dr as zo, Et as Bo, G as Vo, Gt as Ho, H as Uo, Hn as Wo, Hr as Go, Ht as Ko, J as qo, Jt as Jo, K as Yo, Kt as Xo, Lt as Zo, Q as Qo, Qt as $o, R as es, Rr as ts, St as ns, Tr as rs, U as is, Ur as as, Ut as os, Vn as ss, Vt as cs, W as ls, Wn as us, Wr as ds, X as fs, Xt as ps, Y as ms, Yt as hs, Zn as gs, Zt as _s, _ as vs, a as ys, bn as bs, bt as xs, c as Ss, d as Cs, dt as ws, en as Ts, ft as Es, g as Ds, h as Os, it as ks, l as As, m as js, nt as Ms, o as Ns, q as Ps, qt as Fs, r as Is, rt as Ls, s as Rs, t as zs, tn as Bs, tt as Vs, u as Hs, v as Us, vn as Ws, vt as Gs, w as Ks, xt as qs, y as Js, yt as Ys, zr as Xs, zt as Zs } from "./F0Select-DZ9MlzrJ.js";
|
|
13
|
+
import { t as Qs } from "./Check-C_yDxMGY.js";
|
|
14
|
+
import { a as $s } from "./dist-BB49d7CP.js";
|
|
15
|
+
import { t as ec } from "./Ellipsis-CQUxNnJr.js";
|
|
16
|
+
import { t as tc } from "./LockLocked-eJV3xZDn.js";
|
|
17
17
|
import { t as nc } from "./purify.es-CJ7gZxxn.js";
|
|
18
|
-
import { J as rc, S as ic, a as ac, b as oc, d as sc, f as cc, g as lc, h as uc, i as dc, m as fc, p as pc, t as mc, w as hc, x as gc, y as _c } from "./popover-
|
|
19
|
-
import { i as vc, r as yc } from "./dist-
|
|
20
|
-
import { t as bc } from "./F0Text-
|
|
21
|
-
import { t as xc } from "./F0Alert-
|
|
22
|
-
import { n as Sc, r as Cc, t as wc } from "./F0DocumentViewer-
|
|
18
|
+
import { J as rc, S as ic, a as ac, b as oc, d as sc, f as cc, g as lc, h as uc, i as dc, m as fc, p as pc, t as mc, w as hc, x as gc, y as _c } from "./popover-gRMsK8nl.js";
|
|
19
|
+
import { i as vc, r as yc } from "./dist-CFLvAnX2.js";
|
|
20
|
+
import { t as bc } from "./F0Text-nln_5mr_.js";
|
|
21
|
+
import { t as xc } from "./F0Alert-BQPEGRLa.js";
|
|
22
|
+
import { n as Sc, r as Cc, t as wc } from "./F0DocumentViewer-DTf5dyv1.js";
|
|
23
23
|
import { t as Tc } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
24
|
-
import { t as Ec } from "./F0VideoPlayer-
|
|
24
|
+
import { t as Ec } from "./F0VideoPlayer-CfUDjkoQ.js";
|
|
25
25
|
import * as U from "react";
|
|
26
26
|
import Dc, { Children as Oc, Fragment as kc, createContext as Ac, forwardRef as jc, isValidElement as Mc, memo as Nc, useCallback as W, useContext as Pc, useEffect as G, useId as Fc, useImperativeHandle as Ic, useLayoutEffect as Lc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Rc } from "react";
|
|
27
27
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -45,14 +45,14 @@ var Hc = {
|
|
|
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(ui, {
|
|
49
49
|
layout: "home",
|
|
50
50
|
children: /* @__PURE__ */ Z("div", {
|
|
51
51
|
ref: r,
|
|
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: Hc,
|
|
57
57
|
showArrows: !1,
|
|
58
58
|
children: i
|
|
@@ -79,7 +79,7 @@ var Hc = {
|
|
|
79
79
|
}), Wc = co({
|
|
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
|
-
}), Gc = Dc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
82
|
+
}), Gc = Dc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(ui, {
|
|
83
83
|
layout: "standard",
|
|
84
84
|
children: /* @__PURE__ */ X("section", {
|
|
85
85
|
ref: a,
|
|
@@ -187,7 +187,7 @@ function nl({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
187
187
|
for (let t of i || []) t.id && e.set(t.id, Qc(t));
|
|
188
188
|
return e;
|
|
189
189
|
});
|
|
190
|
-
|
|
190
|
+
Ro(() => {
|
|
191
191
|
if (!s) return;
|
|
192
192
|
let e = s.save();
|
|
193
193
|
if (!Array.isArray(e)) return;
|
|
@@ -2598,7 +2598,7 @@ Dl.renderCB = (e, t) => {
|
|
|
2598
2598
|
}, Dl.resizeToContentParent = ".grid-stack-item-content", Dl.Utils = Q, Dl.Engine = sl, Dl.GDRev = "12.3.2";
|
|
2599
2599
|
//#endregion
|
|
2600
2600
|
//#region src/blocks/F0GridStack/components/grid-stack-render-provider.tsx
|
|
2601
|
-
var Ol = /* @__PURE__ */ e(
|
|
2601
|
+
var Ol = /* @__PURE__ */ e(gs(), 1), kl = /* @__PURE__ */ new WeakMap();
|
|
2602
2602
|
function Al({ children: e }) {
|
|
2603
2603
|
let { _gridStack: { value: t, set: n }, options: r } = Zc(), i = q(/* @__PURE__ */ new Map()), a = q(null), o = q(r), s = W((e, t) => {
|
|
2604
2604
|
if (t.id && t.grid) {
|
|
@@ -2886,7 +2886,7 @@ var Fl = (e, t) => {
|
|
|
2886
2886
|
}, Il = (e, t) => {
|
|
2887
2887
|
let n = t;
|
|
2888
2888
|
return n.displayName = e, n.__isPageLayoutGroup = !0, n;
|
|
2889
|
-
}, Ll = Yn, Rl = qn, zl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(
|
|
2889
|
+
}, Ll = Yn, Rl = qn, zl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(Be, {
|
|
2890
2890
|
header: { title: t },
|
|
2891
2891
|
draggable: n,
|
|
2892
2892
|
actions: r,
|
|
@@ -2928,7 +2928,7 @@ var Vl = Il("Dashboard", Bl), Hl = L(vn("Dashboard", Vl)), Ul = co({
|
|
|
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(ti, {
|
|
2932
2932
|
items: Wl(d),
|
|
2933
2933
|
"data-testid": "actions-dropdown"
|
|
2934
2934
|
}) : null]
|
|
@@ -2987,7 +2987,7 @@ Zl.displayName = "GroupLinear", Zl.__isPageLayoutGroup = !0;
|
|
|
2987
2987
|
//#region src/blocks/layouts/Layout/groups/GroupMasonry/components/SortableBlock.tsx
|
|
2988
2988
|
var Ql = ({ id: e, children: t }) => {
|
|
2989
2989
|
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = Me({ id: e }), s = {
|
|
2990
|
-
transform:
|
|
2990
|
+
transform: ft.Translate.toString(a),
|
|
2991
2991
|
transition: o,
|
|
2992
2992
|
flex: "1 1",
|
|
2993
2993
|
display: "flex",
|
|
@@ -3002,16 +3002,16 @@ var Ql = ({ id: e, children: t }) => {
|
|
|
3002
3002
|
});
|
|
3003
3003
|
}, $l = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: i = !1 }) => {
|
|
3004
3004
|
let [a, o] = J([]);
|
|
3005
|
-
|
|
3005
|
+
Ro(() => {
|
|
3006
3006
|
o(e.map((e, t) => ({
|
|
3007
3007
|
id: e.id ?? t.toString(),
|
|
3008
3008
|
render: e.render
|
|
3009
3009
|
})));
|
|
3010
3010
|
}, [e]);
|
|
3011
|
-
let [s, c] = J(null), l =
|
|
3011
|
+
let [s, c] = J(null), l = Lt(Dt(Qe), Dt(r, { coordinateGetter: k }));
|
|
3012
3012
|
return /* @__PURE__ */ X("div", {
|
|
3013
3013
|
className: B("flex flex-wrap items-stretch gap-4", i && "flex-1"),
|
|
3014
|
-
children: /* @__PURE__ */ Z(
|
|
3014
|
+
children: /* @__PURE__ */ Z(Fe, {
|
|
3015
3015
|
sensors: l,
|
|
3016
3016
|
onDragStart: (e) => {
|
|
3017
3017
|
c(e.active.id);
|
|
@@ -3020,16 +3020,16 @@ var Ql = ({ id: e, children: t }) => {
|
|
|
3020
3020
|
let { active: t, over: n } = e;
|
|
3021
3021
|
c(null), n && t.id !== n.id && o((e) => {
|
|
3022
3022
|
let r = e.findIndex((e) => e.id === t.id), i = e.findIndex((e) => e.id === n.id);
|
|
3023
|
-
return
|
|
3023
|
+
return Ft(e, r, i);
|
|
3024
3024
|
});
|
|
3025
3025
|
},
|
|
3026
|
-
children: [/* @__PURE__ */ X(
|
|
3026
|
+
children: [/* @__PURE__ */ X(M, {
|
|
3027
3027
|
items: a,
|
|
3028
3028
|
children: a.map((e) => /* @__PURE__ */ X(Ql, {
|
|
3029
3029
|
id: e.id,
|
|
3030
3030
|
children: e.render
|
|
3031
3031
|
}, e.id))
|
|
3032
|
-
}), /* @__PURE__ */ X(
|
|
3032
|
+
}), /* @__PURE__ */ X(me, { children: s ? /* @__PURE__ */ X(Ql, {
|
|
3033
3033
|
id: s,
|
|
3034
3034
|
children: a.find((e) => e.id === s)?.render
|
|
3035
3035
|
}) : null })]
|
|
@@ -3083,7 +3083,7 @@ function ou({ label: e, orientation: t }) {
|
|
|
3083
3083
|
return /* @__PURE__ */ Z("span", {
|
|
3084
3084
|
className: B("flex shrink-0 items-center justify-center gap-1 text-sm text-f1-foreground-secondary", t === "vertical" && "rotate-180 writing-vertical"),
|
|
3085
3085
|
children: [e, /* @__PURE__ */ X(H, {
|
|
3086
|
-
icon: t === "vertical" ?
|
|
3086
|
+
icon: t === "vertical" ? ds : Fr,
|
|
3087
3087
|
size: "sm",
|
|
3088
3088
|
color: "currentColor"
|
|
3089
3089
|
})]
|
|
@@ -3114,7 +3114,7 @@ var uu = {
|
|
|
3114
3114
|
strong: "bg-opacity-35"
|
|
3115
3115
|
};
|
|
3116
3116
|
function du(e, t) {
|
|
3117
|
-
return `${
|
|
3117
|
+
return `${Ts[e]} ${uu[t]}`;
|
|
3118
3118
|
}
|
|
3119
3119
|
//#endregion
|
|
3120
3120
|
//#region src/addons/charts/F0MatrixChart/components/MatrixCellAvatars.tsx
|
|
@@ -3375,7 +3375,7 @@ function Nu(e, t) {
|
|
|
3375
3375
|
return Number.isFinite(e) ? t.findIndex(({ min: t, max: n }, r) => (t === void 0 || e > t || r === 0 && e === t) && (n === void 0 || e <= n)) : -1;
|
|
3376
3376
|
}
|
|
3377
3377
|
function Pu(e) {
|
|
3378
|
-
return
|
|
3378
|
+
return Bs.some((t) => t === e);
|
|
3379
3379
|
}
|
|
3380
3380
|
function Fu(e, t) {
|
|
3381
3381
|
return Number.isInteger(e) && e >= 0 && e < t;
|
|
@@ -3455,7 +3455,7 @@ function zu({ columns: e, rows: t, cells: n, items: r, emptyState: i, ...a }) {
|
|
|
3455
3455
|
n,
|
|
3456
3456
|
r
|
|
3457
3457
|
]);
|
|
3458
|
-
return Ou(o), !i?.disabled && ku(o) ? /* @__PURE__ */ X(
|
|
3458
|
+
return Ou(o), !i?.disabled && ku(o) ? /* @__PURE__ */ X(Ce, { emptyState: i }) : /* @__PURE__ */ X(Du, {
|
|
3459
3459
|
layout: o,
|
|
3460
3460
|
...a
|
|
3461
3461
|
});
|
|
@@ -3521,7 +3521,7 @@ var Uu = (e) => typeof e == "boolean" || !e ? {
|
|
|
3521
3521
|
show: e.show ?? !0,
|
|
3522
3522
|
invertStatus: e.invertStatus ?? !1
|
|
3523
3523
|
}, Wu = ({ label: e, ...t }) => {
|
|
3524
|
-
let n =
|
|
3524
|
+
let n = ps(), r = n(t.value, { formatterOptions: { decimalPlaces: 2 } }), i = Uu(t.trend), a = n(t.comparison), o = _s(r.numericValue, r.formatterOptions), s = $o(a.numericValue), c = $o(r.numericValue), l = K(() => {
|
|
3525
3525
|
if (s && i.show && s && c) return (c - s) / s * 100;
|
|
3526
3526
|
}, [
|
|
3527
3527
|
c,
|
|
@@ -3535,7 +3535,7 @@ var Uu = (e) => typeof e == "boolean" || !e ? {
|
|
|
3535
3535
|
children: [/* @__PURE__ */ X("span", {
|
|
3536
3536
|
className: "font-bold text-2xl",
|
|
3537
3537
|
children: o
|
|
3538
|
-
}), s === void 0 ? null : /* @__PURE__ */ X(
|
|
3538
|
+
}), s === void 0 ? null : /* @__PURE__ */ X(hs, {
|
|
3539
3539
|
percentage: l,
|
|
3540
3540
|
amount: a,
|
|
3541
3541
|
invertStatus: i.invertStatus,
|
|
@@ -3551,7 +3551,7 @@ var Uu = (e) => typeof e == "boolean" || !e ? {
|
|
|
3551
3551
|
})]
|
|
3552
3552
|
});
|
|
3553
3553
|
Wu.displayName = "F0BigNumber";
|
|
3554
|
-
var Ku =
|
|
3554
|
+
var Ku = Li(Wu, Gu), qu = L(Ku), Ju = [
|
|
3555
3555
|
"default",
|
|
3556
3556
|
"outline",
|
|
3557
3557
|
"neutral"
|
|
@@ -3559,14 +3559,14 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3559
3559
|
className: "flex items-center gap-2",
|
|
3560
3560
|
children: e.map((e, t) => {
|
|
3561
3561
|
switch (e.type) {
|
|
3562
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
3562
|
+
case "segmentedControl": return /* @__PURE__ */ X(Ri, {
|
|
3563
3563
|
items: e.items,
|
|
3564
3564
|
value: e.value,
|
|
3565
3565
|
onChange: e.onChange,
|
|
3566
3566
|
disabled: e.disabled,
|
|
3567
3567
|
ariaLabel: e.ariaLabel
|
|
3568
3568
|
}, t);
|
|
3569
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
3569
|
+
case "dropdown": return /* @__PURE__ */ X(ti, {
|
|
3570
3570
|
items: e.items,
|
|
3571
3571
|
disabled: e.disabled,
|
|
3572
3572
|
children: /* @__PURE__ */ X(V, {
|
|
@@ -3582,7 +3582,7 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3582
3582
|
})
|
|
3583
3583
|
}), ed = ({ item: e, open: t, onOpenChange: n }) => {
|
|
3584
3584
|
let r = er(), i = R().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
3585
|
-
return /* @__PURE__ */ X(
|
|
3585
|
+
return /* @__PURE__ */ X(Pi, {
|
|
3586
3586
|
open: t,
|
|
3587
3587
|
onOpenChange: n,
|
|
3588
3588
|
asChild: !0,
|
|
@@ -3590,7 +3590,7 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3590
3590
|
className: "flex flex-col",
|
|
3591
3591
|
children: [/* @__PURE__ */ Z("div", {
|
|
3592
3592
|
className: "flex items-center",
|
|
3593
|
-
children: [/* @__PURE__ */ X(
|
|
3593
|
+
children: [/* @__PURE__ */ X(mi, {
|
|
3594
3594
|
asChild: !0,
|
|
3595
3595
|
children: /* @__PURE__ */ X("button", {
|
|
3596
3596
|
type: "button",
|
|
@@ -3608,12 +3608,12 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3608
3608
|
children: e.summary
|
|
3609
3609
|
}) : null,
|
|
3610
3610
|
a ? /* @__PURE__ */ X($u, { actions: e.actions }) : null,
|
|
3611
|
-
/* @__PURE__ */ X(
|
|
3611
|
+
/* @__PURE__ */ X(mi, {
|
|
3612
3612
|
asChild: !0,
|
|
3613
3613
|
children: /* @__PURE__ */ X(V, {
|
|
3614
3614
|
variant: "outline",
|
|
3615
3615
|
size: "sm",
|
|
3616
|
-
icon: t ?
|
|
3616
|
+
icon: t ? ts : mo,
|
|
3617
3617
|
label: i,
|
|
3618
3618
|
hideLabel: !0
|
|
3619
3619
|
})
|
|
@@ -3637,7 +3637,7 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3637
3637
|
},
|
|
3638
3638
|
transition: { duration: r ? 0 : .2 },
|
|
3639
3639
|
className: "overflow-hidden",
|
|
3640
|
-
children: /* @__PURE__ */ X(
|
|
3640
|
+
children: /* @__PURE__ */ X(ta, {
|
|
3641
3641
|
forceMount: !0,
|
|
3642
3642
|
asChild: !0,
|
|
3643
3643
|
children: /* @__PURE__ */ Z("div", {
|
|
@@ -3681,8 +3681,8 @@ var Ku = ii(Wu, Gu), qu = L(Ku), Ju = [
|
|
|
3681
3681
|
});
|
|
3682
3682
|
});
|
|
3683
3683
|
nd.displayName = "F0Accordion";
|
|
3684
|
-
var rd = L(vn("F0Accordion",
|
|
3685
|
-
let [n, r] = J(!1), i = /* @__PURE__ */ X(
|
|
3684
|
+
var rd = L(vn("F0Accordion", Li(nd, td))), id = ({ count: e, list: t }) => {
|
|
3685
|
+
let [n, r] = J(!1), i = /* @__PURE__ */ X(Zs, { label: `+${e}` });
|
|
3686
3686
|
return t?.length ? /* @__PURE__ */ Z(mc, {
|
|
3687
3687
|
open: n,
|
|
3688
3688
|
onOpenChange: r,
|
|
@@ -3699,7 +3699,7 @@ var rd = L(vn("F0Accordion", ii(nd, td))), id = ({ count: e, list: t }) => {
|
|
|
3699
3699
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
3700
3700
|
children: [t.map((e, t) => /* @__PURE__ */ X("div", {
|
|
3701
3701
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
3702
|
-
children: /* @__PURE__ */ X(
|
|
3702
|
+
children: /* @__PURE__ */ X(Zs, { ...e })
|
|
3703
3703
|
}, t)), /* @__PURE__ */ X(vc, {
|
|
3704
3704
|
orientation: "vertical",
|
|
3705
3705
|
className: "[&_div]:bg-f1-background"
|
|
@@ -3714,7 +3714,7 @@ id.displayName = "ChipCounter";
|
|
|
3714
3714
|
var ad = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) => {
|
|
3715
3715
|
if (r === "fill") return /* @__PURE__ */ X(So, {
|
|
3716
3716
|
items: e,
|
|
3717
|
-
renderListItem: (e) => /* @__PURE__ */ X(
|
|
3717
|
+
renderListItem: (e) => /* @__PURE__ */ X(Zs, { ...e }),
|
|
3718
3718
|
renderDropdownItem: () => null,
|
|
3719
3719
|
forceShowingOverflowIndicator: n !== void 0,
|
|
3720
3720
|
renderOverflowIndicator: (t) => /* @__PURE__ */ X(id, {
|
|
@@ -3727,7 +3727,7 @@ var ad = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
|
|
|
3727
3727
|
let i = e.slice(0, t), a = e.slice(t), o = n ?? e.length - t, s = o > 0;
|
|
3728
3728
|
return /* @__PURE__ */ Z("div", {
|
|
3729
3729
|
className: "flex items-center gap-2",
|
|
3730
|
-
children: [i.map((e, t) => /* @__PURE__ */ X(
|
|
3730
|
+
children: [i.map((e, t) => /* @__PURE__ */ X(Zs, { ...e }, t)), s ? /* @__PURE__ */ X(id, {
|
|
3731
3731
|
count: o,
|
|
3732
3732
|
list: n ? void 0 : a
|
|
3733
3733
|
}) : null]
|
|
@@ -3739,7 +3739,7 @@ var od = L(vn("F0ChipList", ad)), sd = [
|
|
|
3739
3739
|
"escape",
|
|
3740
3740
|
"commit",
|
|
3741
3741
|
"popupClose"
|
|
3742
|
-
], cd =
|
|
3742
|
+
], cd = Vs, ld = [
|
|
3743
3743
|
"info",
|
|
3744
3744
|
"warning",
|
|
3745
3745
|
"critical",
|
|
@@ -3747,9 +3747,9 @@ var od = L(vn("F0ChipList", ad)), sd = [
|
|
|
3747
3747
|
"positive",
|
|
3748
3748
|
"transparent"
|
|
3749
3749
|
], ud = {
|
|
3750
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
3750
|
+
get: async (e) => JSON.parse(localStorage.getItem(yr(e)) ?? "{}"),
|
|
3751
3751
|
set: async (e, t) => {
|
|
3752
|
-
localStorage.setItem(
|
|
3752
|
+
localStorage.setItem(yr(e), JSON.stringify(t));
|
|
3753
3753
|
}
|
|
3754
3754
|
}, dd = ({ 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 }) => {
|
|
3755
3755
|
let [b, x] = J(n);
|
|
@@ -3757,7 +3757,7 @@ var od = L(vn("F0ChipList", ad)), sd = [
|
|
|
3757
3757
|
x(n);
|
|
3758
3758
|
}, [n]);
|
|
3759
3759
|
let S = K(() => /* @__PURE__ */ Z(Y, { children: [
|
|
3760
|
-
/* @__PURE__ */ X(
|
|
3760
|
+
/* @__PURE__ */ X(Ee, {
|
|
3761
3761
|
title: l,
|
|
3762
3762
|
description: u,
|
|
3763
3763
|
module: d,
|
|
@@ -3767,7 +3767,7 @@ var od = L(vn("F0ChipList", ad)), sd = [
|
|
|
3767
3767
|
setActiveTabId: g,
|
|
3768
3768
|
disableClose: e
|
|
3769
3769
|
}),
|
|
3770
|
-
/* @__PURE__ */ X(
|
|
3770
|
+
/* @__PURE__ */ X(we, {
|
|
3771
3771
|
disableContentPadding: _ ?? !1,
|
|
3772
3772
|
children: r
|
|
3773
3773
|
}),
|
|
@@ -3815,7 +3815,7 @@ function hd({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3815
3815
|
let t = Object.keys(e);
|
|
3816
3816
|
if (t.length > 0) {
|
|
3817
3817
|
let n = t.find((t) => {
|
|
3818
|
-
let n = p[t], r =
|
|
3818
|
+
let n = p[t], r = Cs(e[t].type);
|
|
3819
3819
|
return n !== void 0 && !r.isEmpty(n, {
|
|
3820
3820
|
schema: e[t],
|
|
3821
3821
|
i18n: l
|
|
@@ -3839,7 +3839,7 @@ function hd({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3839
3839
|
}, g = () => {
|
|
3840
3840
|
n(p);
|
|
3841
3841
|
}, _ = K(() => r || Object.entries(e).reduce((e, [t, n]) => {
|
|
3842
|
-
let r =
|
|
3842
|
+
let r = Cs(n.type);
|
|
3843
3843
|
return Math.max(e, r?.formHeight || md);
|
|
3844
3844
|
}, 0), [e, r]);
|
|
3845
3845
|
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(mn, {
|
|
@@ -3847,7 +3847,7 @@ function hd({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
3847
3847
|
children: /* @__PURE__ */ X("div", {
|
|
3848
3848
|
className: B("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
3849
3849
|
style: { maxWidth: i },
|
|
3850
|
-
children: /* @__PURE__ */ X(
|
|
3850
|
+
children: /* @__PURE__ */ X(Rs, {
|
|
3851
3851
|
filters: e,
|
|
3852
3852
|
tempFilters: p,
|
|
3853
3853
|
selectedFilterKey: d,
|
|
@@ -3866,11 +3866,11 @@ var gd = hd;
|
|
|
3866
3866
|
//#endregion
|
|
3867
3867
|
//#region src/blocks/F0Form/describeFormSchema.ts
|
|
3868
3868
|
function _d(e) {
|
|
3869
|
-
let t =
|
|
3869
|
+
let t = gi(e).shape, n = [];
|
|
3870
3870
|
for (let [e, r] of Object.entries(t)) {
|
|
3871
|
-
let t = r, i =
|
|
3871
|
+
let t = r, i = Zi(t);
|
|
3872
3872
|
if (!i) continue;
|
|
3873
|
-
let a =
|
|
3873
|
+
let a = Ii(t, i), o = ht(t, a), s = {
|
|
3874
3874
|
name: e,
|
|
3875
3875
|
type: a,
|
|
3876
3876
|
label: i.label,
|
|
@@ -3913,7 +3913,7 @@ function yd(e) {
|
|
|
3913
3913
|
let i = {
|
|
3914
3914
|
...n,
|
|
3915
3915
|
...e
|
|
3916
|
-
}, a =
|
|
3916
|
+
}, a = an(t, i), o = {};
|
|
3917
3917
|
for (let [e, t] of Object.entries(i)) o[e] = t === null ? void 0 : t;
|
|
3918
3918
|
let s = r ? { errorMap: r } : void 0, c = await a.safeParseAsync(o, s);
|
|
3919
3919
|
if (c.success) return {
|
|
@@ -3942,10 +3942,10 @@ function yd(e) {
|
|
|
3942
3942
|
let r = {
|
|
3943
3943
|
...n,
|
|
3944
3944
|
...e
|
|
3945
|
-
}, i =
|
|
3945
|
+
}, i = gi(t), a = [];
|
|
3946
3946
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
3947
|
-
let n =
|
|
3948
|
-
n?.renderIf ?
|
|
3947
|
+
let n = Zi(t);
|
|
3948
|
+
n?.renderIf ? se(n.renderIf, r) && a.push(e) : a.push(e);
|
|
3949
3949
|
}
|
|
3950
3950
|
return a;
|
|
3951
3951
|
},
|
|
@@ -3976,7 +3976,7 @@ function bd(e, t) {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
//#endregion
|
|
3978
3978
|
//#region src/blocks/dialog-alike/F0Dialog/internal/DialogNotification.tsx
|
|
3979
|
-
var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, description: i, primaryAction: a, secondaryAction: o, dismissable: s = !1 }) => /* @__PURE__ */ X(
|
|
3979
|
+
var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, description: i, primaryAction: a, secondaryAction: o, dismissable: s = !1 }) => /* @__PURE__ */ X(Ne, {
|
|
3980
3980
|
isOpen: e,
|
|
3981
3981
|
onClose: t,
|
|
3982
3982
|
variant: "notification",
|
|
@@ -3988,15 +3988,15 @@ var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
3988
3988
|
modal: !0,
|
|
3989
3989
|
children: /* @__PURE__ */ Z("div", {
|
|
3990
3990
|
className: "flex flex-col gap-4 py-2",
|
|
3991
|
-
children: [/* @__PURE__ */ X(
|
|
3991
|
+
children: [/* @__PURE__ */ X(Cr, {
|
|
3992
3992
|
type: n,
|
|
3993
3993
|
size: "lg"
|
|
3994
3994
|
}), /* @__PURE__ */ Z("div", {
|
|
3995
3995
|
className: "flex flex-col gap-0.5",
|
|
3996
|
-
children: [/* @__PURE__ */ X(
|
|
3996
|
+
children: [/* @__PURE__ */ X(ei, {
|
|
3997
3997
|
className: "text-xl sm:text-lg",
|
|
3998
3998
|
children: r
|
|
3999
|
-
}), /* @__PURE__ */ X(
|
|
3999
|
+
}), /* @__PURE__ */ X(Pt, {
|
|
4000
4000
|
className: "text-lg sm:text-base",
|
|
4001
4001
|
children: i
|
|
4002
4002
|
})]
|
|
@@ -4053,8 +4053,8 @@ var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
4053
4053
|
return r.map((t) => ({
|
|
4054
4054
|
...t,
|
|
4055
4055
|
actions: {
|
|
4056
|
-
primary:
|
|
4057
|
-
secondary:
|
|
4056
|
+
primary: es(t.actions.primary).map((n, r) => e(t, n, "primary", r)),
|
|
4057
|
+
secondary: es(t.actions.secondary).map((n, r) => e(t, n, "secondary", r))
|
|
4058
4058
|
}
|
|
4059
4059
|
}));
|
|
4060
4060
|
}, [r]), d = K(() => {
|
|
@@ -4092,7 +4092,7 @@ var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
4092
4092
|
position: e.position,
|
|
4093
4093
|
module: e.module,
|
|
4094
4094
|
children: e.content
|
|
4095
|
-
}, e.id) : /* @__PURE__ */ X(
|
|
4095
|
+
}, e.id) : /* @__PURE__ */ X(Ne, {
|
|
4096
4096
|
disableClose: c(e.id),
|
|
4097
4097
|
isOpen: s.has(e.id),
|
|
4098
4098
|
size: e.size,
|
|
@@ -4119,12 +4119,12 @@ var xd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
4119
4119
|
});
|
|
4120
4120
|
}, [n]), /* @__PURE__ */ Z(Y, { children: [o && typeof document < "u" ? Bc(/* @__PURE__ */ X(wd, { items: t }), document.body) : null, e] });
|
|
4121
4121
|
}, Ed = 200, Dd = ({ children: e }) => {
|
|
4122
|
-
let t = Rc(
|
|
4122
|
+
let t = Rc(ke.subscribe, ke.getSnapshot, ke.getServerSnapshot), [n, r] = J(null);
|
|
4123
4123
|
G(() => {
|
|
4124
|
-
let e =
|
|
4124
|
+
let e = ke.acquireRenderer();
|
|
4125
4125
|
return r(e.id), e.release;
|
|
4126
4126
|
}, []);
|
|
4127
|
-
let i = Rc(
|
|
4127
|
+
let i = Rc(ke.subscribeRenderer, ke.getActiveRendererId, () => null);
|
|
4128
4128
|
return /* @__PURE__ */ Z(Y, { children: [n !== null && n === i && typeof document < "u" ? Bc(/* @__PURE__ */ X(Od, { items: t }), document.body) : null, e] });
|
|
4129
4129
|
}, Od = ({ items: e }) => {
|
|
4130
4130
|
let [t, n] = J(e), r = q(e), i = q(/* @__PURE__ */ new Map());
|
|
@@ -4165,9 +4165,9 @@ function kd({ children: e }) {
|
|
|
4165
4165
|
registerInlineRow: void 0,
|
|
4166
4166
|
nullableEmptyFields: void 0
|
|
4167
4167
|
}, [t]);
|
|
4168
|
-
return /* @__PURE__ */ X(
|
|
4168
|
+
return /* @__PURE__ */ X(Se.Provider, {
|
|
4169
4169
|
value: n,
|
|
4170
|
-
children: /* @__PURE__ */ X(
|
|
4170
|
+
children: /* @__PURE__ */ X(he.Provider, {
|
|
4171
4171
|
value: null,
|
|
4172
4172
|
children: e
|
|
4173
4173
|
})
|
|
@@ -4195,7 +4195,7 @@ function Ad({ field: e, value: t, onChange: n, onBlur: r, error: a, errorMessage
|
|
|
4195
4195
|
}, x = e.type === "file" ? f : void 0;
|
|
4196
4196
|
return p ? /* @__PURE__ */ X(kd, { children: /* @__PURE__ */ X("div", {
|
|
4197
4197
|
id: m,
|
|
4198
|
-
children: /* @__PURE__ */ X(
|
|
4198
|
+
children: /* @__PURE__ */ X(en, { children: /* @__PURE__ */ X(i, {
|
|
4199
4199
|
field: b,
|
|
4200
4200
|
formField: _,
|
|
4201
4201
|
fieldState: v,
|
|
@@ -4380,7 +4380,7 @@ var zd = () => {}, Bd = ({ steps: e, children: t, isOpen: n, onClose: r = zd, ti
|
|
|
4380
4380
|
onClose: r
|
|
4381
4381
|
}), g = R(), _ = 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, x = _?.previousLabel ?? c ?? g.wizard.previous, C = K(() => ({
|
|
4382
4382
|
label: b,
|
|
4383
|
-
icon: y ? void 0 :
|
|
4383
|
+
icon: y ? void 0 : Fr,
|
|
4384
4384
|
onClick: () => void h.goNext(),
|
|
4385
4385
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
4386
4386
|
loading: h.loading
|
|
@@ -4391,7 +4391,7 @@ var zd = () => {}, Bd = ({ steps: e, children: t, isOpen: n, onClose: r = zd, ti
|
|
|
4391
4391
|
_
|
|
4392
4392
|
]), w = K(() => v ? void 0 : {
|
|
4393
4393
|
label: x,
|
|
4394
|
-
icon:
|
|
4394
|
+
icon: as,
|
|
4395
4395
|
onClick: h.goPrevious,
|
|
4396
4396
|
disabled: h.loading
|
|
4397
4397
|
}, [
|
|
@@ -4437,14 +4437,14 @@ Bd.displayName = "F0Wizard", L(Bd);
|
|
|
4437
4437
|
//#endregion
|
|
4438
4438
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
4439
4439
|
function Vd(e) {
|
|
4440
|
-
let t =
|
|
4441
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
4440
|
+
let t = gi(e).shape, n = Object.entries(t);
|
|
4441
|
+
return n.length !== 0 && n.every(([, e]) => Zi(e)?.disabled === !0);
|
|
4442
4442
|
}
|
|
4443
4443
|
function Hd(e, t) {
|
|
4444
4444
|
if (t) return Object.keys(t);
|
|
4445
|
-
let n =
|
|
4445
|
+
let n = gi(e).shape, r = /* @__PURE__ */ new Set();
|
|
4446
4446
|
for (let e of Object.values(n)) {
|
|
4447
|
-
let t =
|
|
4447
|
+
let t = Zi(e);
|
|
4448
4448
|
t?.section && r.add(t.section);
|
|
4449
4449
|
}
|
|
4450
4450
|
return Array.from(r);
|
|
@@ -4452,15 +4452,15 @@ function Hd(e, t) {
|
|
|
4452
4452
|
function Ud(e, t) {
|
|
4453
4453
|
let n = e.shape, r = {};
|
|
4454
4454
|
for (let [e, i] of Object.entries(n)) {
|
|
4455
|
-
let n =
|
|
4455
|
+
let n = Zi(i);
|
|
4456
4456
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
4457
4457
|
}
|
|
4458
|
-
return
|
|
4458
|
+
return Ai(r);
|
|
4459
4459
|
}
|
|
4460
4460
|
function Wd(e, t, n) {
|
|
4461
4461
|
let r = t ?? {};
|
|
4462
4462
|
if (n) return n({ data: r });
|
|
4463
|
-
let i =
|
|
4463
|
+
let i = gi(e).shape;
|
|
4464
4464
|
return Object.entries(i).every(([e, t]) => {
|
|
4465
4465
|
if (t.isOptional()) return !0;
|
|
4466
4466
|
let n = r[e];
|
|
@@ -4480,7 +4480,7 @@ function Kd() {
|
|
|
4480
4480
|
}, []), s = t === "success" ? r ?? e.actionBar.saved : void 0;
|
|
4481
4481
|
return {
|
|
4482
4482
|
showSuccess: o,
|
|
4483
|
-
ActionBar: K(() => /* @__PURE__ */ X(
|
|
4483
|
+
ActionBar: K(() => /* @__PURE__ */ X(Je, {
|
|
4484
4484
|
isOpen: t === "success",
|
|
4485
4485
|
variant: "light",
|
|
4486
4486
|
status: t,
|
|
@@ -4686,7 +4686,7 @@ function Xd({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
4686
4686
|
});
|
|
4687
4687
|
}
|
|
4688
4688
|
function Zd({ 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 }) {
|
|
4689
|
-
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() =>
|
|
4689
|
+
let { name: g, schema: _, sections: v, defaultValues: y, onSubmit: b, submitConfig: x, errorTriggerMode: S = "on-blur" } = e, C = x?.label, w = K(() => gi(_), [_]), T = K(() => Hd(_, v), [_, v]), E = W((e) => Vd(Ud(w, e)), [w]), D = ye(), O = q(y ? { ...y } : {}), k = q(s ?? 0), A = W((e) => async () => {
|
|
4690
4690
|
await D.submit();
|
|
4691
4691
|
}, [D]), j = W((e) => D.hasErrors, [D.hasErrors]), M = t ?? e.steps, ee = K(() => M ?? T.map((e) => ({
|
|
4692
4692
|
title: v?.[e]?.title ?? e,
|
|
@@ -4731,7 +4731,7 @@ function Zd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
4731
4731
|
j,
|
|
4732
4732
|
m,
|
|
4733
4733
|
N
|
|
4734
|
-
]), ne = q(null), re = q(null), { showSuccess: F, ActionBar: ie } = Kd(),
|
|
4734
|
+
]), ne = q(null), re = q(null), { showSuccess: F, ActionBar: ie } = Kd(), ae = W(async (e) => {
|
|
4735
4735
|
Object.assign(O.current, e);
|
|
4736
4736
|
let t = { ...O.current };
|
|
4737
4737
|
re.current = t;
|
|
@@ -4771,12 +4771,12 @@ function Zd({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
4771
4771
|
let n = Jd(t, T, M), r = Ud(w, n), i = n.reduce((e, t) => (v?.[t] && (e[t] = v[t]), e), {});
|
|
4772
4772
|
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
4773
4773
|
className: "pb-5",
|
|
4774
|
-
children: /* @__PURE__ */ X(
|
|
4774
|
+
children: /* @__PURE__ */ X(oe, {
|
|
4775
4775
|
name: `${g}-step-${t}`,
|
|
4776
4776
|
schema: r,
|
|
4777
4777
|
sections: i,
|
|
4778
4778
|
defaultValues: O.current,
|
|
4779
|
-
onSubmit:
|
|
4779
|
+
onSubmit: ae,
|
|
4780
4780
|
submitConfig: {
|
|
4781
4781
|
hideSubmitButton: !0,
|
|
4782
4782
|
hideActionBar: !0
|
|
@@ -4838,7 +4838,7 @@ function nf({ options: e, isOpen: t, onResolve: n }) {
|
|
|
4838
4838
|
function rf(e) {
|
|
4839
4839
|
return new Promise((t) => {
|
|
4840
4840
|
let n = e.id ?? x(), r = !1, i = (e) => {
|
|
4841
|
-
r || (r = !0, t(e),
|
|
4841
|
+
r || (r = !0, t(e), Te(n));
|
|
4842
4842
|
};
|
|
4843
4843
|
w({
|
|
4844
4844
|
id: n,
|
|
@@ -4855,7 +4855,7 @@ function rf(e) {
|
|
|
4855
4855
|
//#region src/facade/forms/forms.ts
|
|
4856
4856
|
function af(e) {
|
|
4857
4857
|
let { mode: t, ...n } = e;
|
|
4858
|
-
return t === "wizard" ? rf(n) :
|
|
4858
|
+
return t === "wizard" ? rf(n) : De(n);
|
|
4859
4859
|
}
|
|
4860
4860
|
var of = { open: af }, sf = [
|
|
4861
4861
|
"escape",
|
|
@@ -4969,14 +4969,14 @@ var of = { open: af }, sf = [
|
|
|
4969
4969
|
F.current = !1;
|
|
4970
4970
|
},
|
|
4971
4971
|
children: [
|
|
4972
|
-
oe ? /* @__PURE__ */ X(
|
|
4972
|
+
oe ? /* @__PURE__ */ X(Qo, {
|
|
4973
4973
|
label: n,
|
|
4974
4974
|
required: s,
|
|
4975
4975
|
htmlFor: S,
|
|
4976
4976
|
id: C,
|
|
4977
4977
|
disabled: c
|
|
4978
4978
|
}) : null,
|
|
4979
|
-
/* @__PURE__ */ Z(
|
|
4979
|
+
/* @__PURE__ */ Z(wi, {
|
|
4980
4980
|
value: [O],
|
|
4981
4981
|
onValueChange: j,
|
|
4982
4982
|
onValueCommit: M,
|
|
@@ -4991,14 +4991,14 @@ var of = { open: af }, sf = [
|
|
|
4991
4991
|
onMouseEnter: () => N(!0),
|
|
4992
4992
|
onMouseLeave: () => N(!1),
|
|
4993
4993
|
children: [
|
|
4994
|
-
/* @__PURE__ */ X(
|
|
4994
|
+
/* @__PURE__ */ X(ra, {
|
|
4995
4995
|
className: ff({ status: ae }),
|
|
4996
|
-
children: /* @__PURE__ */ X(
|
|
4996
|
+
children: /* @__PURE__ */ X(xi, { className: pf({
|
|
4997
4997
|
status: ae,
|
|
4998
4998
|
disabled: c
|
|
4999
4999
|
}) })
|
|
5000
5000
|
}),
|
|
5001
|
-
/* @__PURE__ */ X(
|
|
5001
|
+
/* @__PURE__ */ X(ri, {
|
|
5002
5002
|
id: S,
|
|
5003
5003
|
"aria-label": oe ? void 0 : T,
|
|
5004
5004
|
"aria-labelledby": oe ? C : void 0,
|
|
@@ -5037,7 +5037,7 @@ var of = { open: af }, sf = [
|
|
|
5037
5037
|
});
|
|
5038
5038
|
});
|
|
5039
5039
|
gf.displayName = "F0Slider";
|
|
5040
|
-
var _f = vn("F0Slider",
|
|
5040
|
+
var _f = vn("F0Slider", Li(L(gf), df)), vf = [
|
|
5041
5041
|
"completed",
|
|
5042
5042
|
"in-progress",
|
|
5043
5043
|
"not-started",
|
|
@@ -5187,12 +5187,12 @@ function Mf({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
5187
5187
|
});
|
|
5188
5188
|
}));
|
|
5189
5189
|
}, []);
|
|
5190
|
-
return /* @__PURE__ */ Z(
|
|
5190
|
+
return /* @__PURE__ */ Z(xs, {
|
|
5191
5191
|
open: f,
|
|
5192
5192
|
onOpenChange: _,
|
|
5193
5193
|
openDelay: Af,
|
|
5194
5194
|
closeDelay: kf,
|
|
5195
|
-
children: [/* @__PURE__ */ X(
|
|
5195
|
+
children: [/* @__PURE__ */ X(ns, {
|
|
5196
5196
|
asChild: !0,
|
|
5197
5197
|
children: /* @__PURE__ */ X("button", {
|
|
5198
5198
|
className: B(On(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", n),
|
|
@@ -5204,14 +5204,14 @@ function Mf({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
5204
5204
|
variant: u
|
|
5205
5205
|
})
|
|
5206
5206
|
})
|
|
5207
|
-
}), /* @__PURE__ */ X(
|
|
5207
|
+
}), /* @__PURE__ */ X(qs, {
|
|
5208
5208
|
ref: v,
|
|
5209
5209
|
side: c === "left" ? "right" : "left",
|
|
5210
5210
|
align: "center",
|
|
5211
5211
|
sideOffset: -28,
|
|
5212
5212
|
container: d,
|
|
5213
5213
|
className: B(jf({ size: l }), !e && "pt-2", "scrollbar-macos"),
|
|
5214
|
-
children: /* @__PURE__ */ X(
|
|
5214
|
+
children: /* @__PURE__ */ X(Rt, {
|
|
5215
5215
|
title: e,
|
|
5216
5216
|
items: t,
|
|
5217
5217
|
activeItem: r,
|
|
@@ -5318,7 +5318,7 @@ function Rf(e) {
|
|
|
5318
5318
|
}
|
|
5319
5319
|
//#endregion
|
|
5320
5320
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
5321
|
-
var zf = ir.create(
|
|
5321
|
+
var zf = ir.create(Jr), Bf = Nc(() => {
|
|
5322
5322
|
let e = R();
|
|
5323
5323
|
return /* @__PURE__ */ Z("div", {
|
|
5324
5324
|
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",
|
|
@@ -5455,7 +5455,7 @@ var zf = ir.create(Ur), Bf = Nc(() => {
|
|
|
5455
5455
|
return t;
|
|
5456
5456
|
}, Yf = Ac(void 0);
|
|
5457
5457
|
function Xf({ 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 }) {
|
|
5458
|
-
let m =
|
|
5458
|
+
let m = le(o), h = le(s), g = le(u), _ = le(d), v = le(f), y = q(e);
|
|
5459
5459
|
y.current = e;
|
|
5460
5460
|
let b = q(a);
|
|
5461
5461
|
b.current = a;
|
|
@@ -5674,12 +5674,12 @@ var tp = () => {
|
|
|
5674
5674
|
let { isQuestionTypeAllowed: e, datasets: t } = Zf(), { t: n } = R(), r = [
|
|
5675
5675
|
{
|
|
5676
5676
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
5677
|
-
icon:
|
|
5677
|
+
icon: Gr,
|
|
5678
5678
|
questionType: "rating"
|
|
5679
5679
|
},
|
|
5680
5680
|
{
|
|
5681
5681
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
5682
|
-
icon:
|
|
5682
|
+
icon: li,
|
|
5683
5683
|
questionType: "multi-select"
|
|
5684
5684
|
},
|
|
5685
5685
|
{
|
|
@@ -5689,32 +5689,32 @@ var tp = () => {
|
|
|
5689
5689
|
},
|
|
5690
5690
|
{
|
|
5691
5691
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
5692
|
-
icon:
|
|
5692
|
+
icon: kr,
|
|
5693
5693
|
questionType: "text"
|
|
5694
5694
|
},
|
|
5695
5695
|
{
|
|
5696
5696
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
5697
|
-
icon:
|
|
5697
|
+
icon: ji,
|
|
5698
5698
|
questionType: "longText"
|
|
5699
5699
|
},
|
|
5700
5700
|
{
|
|
5701
5701
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
5702
|
-
icon:
|
|
5702
|
+
icon: Ti,
|
|
5703
5703
|
questionType: "numeric"
|
|
5704
5704
|
},
|
|
5705
5705
|
{
|
|
5706
5706
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
5707
|
-
icon:
|
|
5707
|
+
icon: Ar,
|
|
5708
5708
|
questionType: "link"
|
|
5709
5709
|
},
|
|
5710
5710
|
{
|
|
5711
5711
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
5712
|
-
icon:
|
|
5712
|
+
icon: Pr,
|
|
5713
5713
|
questionType: "date"
|
|
5714
5714
|
},
|
|
5715
5715
|
{
|
|
5716
5716
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
5717
|
-
icon:
|
|
5717
|
+
icon: lr,
|
|
5718
5718
|
questionType: "file"
|
|
5719
5719
|
},
|
|
5720
5720
|
{
|
|
@@ -5730,17 +5730,17 @@ var tp = () => {
|
|
|
5730
5730
|
})) : [];
|
|
5731
5731
|
return [...r, ...i];
|
|
5732
5732
|
}, np = {
|
|
5733
|
-
rating:
|
|
5734
|
-
"multi-select":
|
|
5733
|
+
rating: Gr,
|
|
5734
|
+
"multi-select": li,
|
|
5735
5735
|
select: Qs,
|
|
5736
|
-
text:
|
|
5737
|
-
longText:
|
|
5738
|
-
numeric:
|
|
5739
|
-
link:
|
|
5740
|
-
date:
|
|
5736
|
+
text: kr,
|
|
5737
|
+
longText: ji,
|
|
5738
|
+
numeric: Ti,
|
|
5739
|
+
link: Ar,
|
|
5740
|
+
date: Pr,
|
|
5741
5741
|
"dropdown-single": mo,
|
|
5742
5742
|
"dropdown-multi": mo,
|
|
5743
|
-
file:
|
|
5743
|
+
file: lr,
|
|
5744
5744
|
checkbox: $s
|
|
5745
5745
|
}, rp = () => {
|
|
5746
5746
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Zf(), [a, o] = J(!1), s = tp(), { t: c } = R(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -5774,7 +5774,7 @@ var tp = () => {
|
|
|
5774
5774
|
children: /* @__PURE__ */ Z("div", {
|
|
5775
5775
|
className: "flex w-full flex-row items-center gap-2",
|
|
5776
5776
|
children: [/* @__PURE__ */ X(H, {
|
|
5777
|
-
icon:
|
|
5777
|
+
icon: Xr,
|
|
5778
5778
|
color: "default"
|
|
5779
5779
|
}), /* @__PURE__ */ X("span", {
|
|
5780
5780
|
className: "flex-1 text-base font-medium",
|
|
@@ -5827,7 +5827,7 @@ var tp = () => {
|
|
|
5827
5827
|
children: /* @__PURE__ */ Z("div", {
|
|
5828
5828
|
className: "flex w-full flex-row items-center gap-2",
|
|
5829
5829
|
children: [/* @__PURE__ */ X(H, {
|
|
5830
|
-
icon:
|
|
5830
|
+
icon: li,
|
|
5831
5831
|
color: "default"
|
|
5832
5832
|
}), /* @__PURE__ */ X("span", {
|
|
5833
5833
|
className: "flex-1",
|
|
@@ -5842,7 +5842,7 @@ var tp = () => {
|
|
|
5842
5842
|
});
|
|
5843
5843
|
}, ip = ({ open: e, onConfirm: t, onCancel: n }) => {
|
|
5844
5844
|
let { t: r } = R();
|
|
5845
|
-
return /* @__PURE__ */ X(
|
|
5845
|
+
return /* @__PURE__ */ X(He, {
|
|
5846
5846
|
open: e,
|
|
5847
5847
|
onClose: n,
|
|
5848
5848
|
header: {
|
|
@@ -5991,7 +5991,7 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
5991
5991
|
className: "flex-1",
|
|
5992
5992
|
children: e
|
|
5993
5993
|
}),
|
|
5994
|
-
/* @__PURE__ */ X(
|
|
5994
|
+
/* @__PURE__ */ X(js, {
|
|
5995
5995
|
title: e,
|
|
5996
5996
|
checked: n,
|
|
5997
5997
|
onCheckedChange: r,
|
|
@@ -6007,7 +6007,7 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6007
6007
|
className: "flex w-full flex-row items-center gap-2",
|
|
6008
6008
|
children: [
|
|
6009
6009
|
/* @__PURE__ */ X(ao, {
|
|
6010
|
-
icon:
|
|
6010
|
+
icon: Rr,
|
|
6011
6011
|
color: "default"
|
|
6012
6012
|
}),
|
|
6013
6013
|
/* @__PURE__ */ X("span", {
|
|
@@ -6119,7 +6119,7 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6119
6119
|
className: "flex w-full flex-row items-center gap-2",
|
|
6120
6120
|
children: [
|
|
6121
6121
|
/* @__PURE__ */ X(ao, {
|
|
6122
|
-
icon:
|
|
6122
|
+
icon: li,
|
|
6123
6123
|
color: "default"
|
|
6124
6124
|
}),
|
|
6125
6125
|
/* @__PURE__ */ X("span", {
|
|
@@ -6148,11 +6148,11 @@ var up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(f
|
|
|
6148
6148
|
let { t: a } = R(), { labels: o } = Zf();
|
|
6149
6149
|
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(_c, {}) : null, /* @__PURE__ */ Z(pc, { children: [e ? /* @__PURE__ */ X(fp, {
|
|
6150
6150
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
6151
|
-
icon:
|
|
6151
|
+
icon: jr,
|
|
6152
6152
|
onClick: r
|
|
6153
6153
|
}) : null, t ? /* @__PURE__ */ X(fp, {
|
|
6154
6154
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
6155
|
-
icon:
|
|
6155
|
+
icon: hi,
|
|
6156
6156
|
onClick: i,
|
|
6157
6157
|
critical: !0
|
|
6158
6158
|
}) : null] })] });
|
|
@@ -6187,19 +6187,19 @@ function mp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6187
6187
|
}),
|
|
6188
6188
|
T ? /* @__PURE__ */ X(pc, { children: /* @__PURE__ */ X(up, {
|
|
6189
6189
|
label: o("surveyFormBuilder.labels.required"),
|
|
6190
|
-
icon:
|
|
6190
|
+
icon: qr,
|
|
6191
6191
|
checked: !!l?.required,
|
|
6192
6192
|
onChange: _
|
|
6193
6193
|
}) }) : null,
|
|
6194
6194
|
E ? /* @__PURE__ */ X(pc, { children: /* @__PURE__ */ X(up, {
|
|
6195
6195
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
6196
|
-
icon:
|
|
6196
|
+
icon: li,
|
|
6197
6197
|
checked: p,
|
|
6198
6198
|
onChange: b
|
|
6199
6199
|
}) }) : null,
|
|
6200
6200
|
D ? /* @__PURE__ */ X(pc, { children: /* @__PURE__ */ X(up, {
|
|
6201
6201
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
6202
|
-
icon:
|
|
6202
|
+
icon: rs,
|
|
6203
6203
|
checked: m,
|
|
6204
6204
|
onChange: x
|
|
6205
6205
|
}) }) : null,
|
|
@@ -6244,7 +6244,7 @@ function Cp({ text: e }) {
|
|
|
6244
6244
|
return /* @__PURE__ */ X(Y, { children: t.map((e, t) => {
|
|
6245
6245
|
if (t % 2 == 0) return /* @__PURE__ */ X(kc, { children: e }, t);
|
|
6246
6246
|
let [n, r] = xp(e), i = Sp(n);
|
|
6247
|
-
return i ? /* @__PURE__ */ Z(kc, { children: [/* @__PURE__ */ X(
|
|
6247
|
+
return i ? /* @__PURE__ */ Z(kc, { children: [/* @__PURE__ */ X(cs, {
|
|
6248
6248
|
variant: "inline",
|
|
6249
6249
|
href: i,
|
|
6250
6250
|
target: "_blank",
|
|
@@ -6414,7 +6414,7 @@ var wp = ({ notice: e, className: t, children: n }) => {
|
|
|
6414
6414
|
children: /* @__PURE__ */ Z("div", {
|
|
6415
6415
|
className: "flex w-full flex-row items-center gap-2",
|
|
6416
6416
|
children: [/* @__PURE__ */ X(H, {
|
|
6417
|
-
icon:
|
|
6417
|
+
icon: Xr,
|
|
6418
6418
|
color: "default"
|
|
6419
6419
|
}), /* @__PURE__ */ X("span", {
|
|
6420
6420
|
className: "flex-1 text-base font-medium",
|
|
@@ -6466,7 +6466,7 @@ var wp = ({ notice: e, className: t, children: n }) => {
|
|
|
6466
6466
|
children: /* @__PURE__ */ Z("div", {
|
|
6467
6467
|
className: "flex w-full flex-row items-center gap-2",
|
|
6468
6468
|
children: [/* @__PURE__ */ X(H, {
|
|
6469
|
-
icon:
|
|
6469
|
+
icon: li,
|
|
6470
6470
|
color: "default"
|
|
6471
6471
|
}), /* @__PURE__ */ X("span", {
|
|
6472
6472
|
className: "flex-1",
|
|
@@ -6494,7 +6494,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6494
6494
|
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = Zf(), s = Ep(n), { t: c } = R();
|
|
6495
6495
|
if (i) return /* @__PURE__ */ X(Tp, {
|
|
6496
6496
|
...n,
|
|
6497
|
-
children: /* @__PURE__ */ X(
|
|
6497
|
+
children: /* @__PURE__ */ X(Es, {
|
|
6498
6498
|
id: n.id,
|
|
6499
6499
|
checked: e ?? !1,
|
|
6500
6500
|
onCheckedChange: (e) => {
|
|
@@ -6514,7 +6514,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6514
6514
|
...n,
|
|
6515
6515
|
children: /* @__PURE__ */ Z("div", {
|
|
6516
6516
|
className: "flex items-start",
|
|
6517
|
-
children: [/* @__PURE__ */ X(
|
|
6517
|
+
children: [/* @__PURE__ */ X(Es, {
|
|
6518
6518
|
checked: !1,
|
|
6519
6519
|
disabled: !0,
|
|
6520
6520
|
hideLabel: !0,
|
|
@@ -6689,7 +6689,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6689
6689
|
}, s = n("surveyFormBuilder.answer.numericPlaceholder");
|
|
6690
6690
|
return /* @__PURE__ */ X(Tp, {
|
|
6691
6691
|
...t,
|
|
6692
|
-
children: i ? /* @__PURE__ */ X(
|
|
6692
|
+
children: i ? /* @__PURE__ */ X(N, {
|
|
6693
6693
|
locale: "en-US",
|
|
6694
6694
|
size: "md",
|
|
6695
6695
|
value: e,
|
|
@@ -6700,8 +6700,8 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6700
6700
|
required: t.required,
|
|
6701
6701
|
maxDecimals: 0,
|
|
6702
6702
|
placeholder: s,
|
|
6703
|
-
icon:
|
|
6704
|
-
}) : /* @__PURE__ */ X(
|
|
6703
|
+
icon: Ti
|
|
6704
|
+
}) : /* @__PURE__ */ X(di, {
|
|
6705
6705
|
type: "text",
|
|
6706
6706
|
size: "md",
|
|
6707
6707
|
value: s,
|
|
@@ -6709,7 +6709,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6709
6709
|
disabled: !0,
|
|
6710
6710
|
label: n("surveyFormBuilder.answer.label"),
|
|
6711
6711
|
hideLabel: !0,
|
|
6712
|
-
icon:
|
|
6712
|
+
icon: Ti
|
|
6713
6713
|
})
|
|
6714
6714
|
});
|
|
6715
6715
|
}, Fp = ({ option: e, selected: n, onClick: r, onChangeLabel: i, disabled: a, isEmojiMode: o = !1 }) => {
|
|
@@ -6742,7 +6742,7 @@ var Dp = ({ value: e, label: t, ...n }) => {
|
|
|
6742
6742
|
onClick: (e) => {
|
|
6743
6743
|
e.preventDefault(), e.stopPropagation();
|
|
6744
6744
|
},
|
|
6745
|
-
children: /* @__PURE__ */ X(
|
|
6745
|
+
children: /* @__PURE__ */ X(pe, {
|
|
6746
6746
|
data: t,
|
|
6747
6747
|
onEmojiSelect: (e) => {
|
|
6748
6748
|
i?.(s, e.native), u(!1);
|
|
@@ -6853,7 +6853,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6853
6853
|
}, T = () => {
|
|
6854
6854
|
m(!1), h(null);
|
|
6855
6855
|
}, E = p ? v : !a && !o, D = !a && !o && !l;
|
|
6856
|
-
return /* @__PURE__ */ X(
|
|
6856
|
+
return /* @__PURE__ */ X(ln, {
|
|
6857
6857
|
value: t,
|
|
6858
6858
|
onDragStart: w,
|
|
6859
6859
|
onDragEnd: T,
|
|
@@ -6866,7 +6866,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6866
6866
|
children: [
|
|
6867
6867
|
/* @__PURE__ */ X("div", {
|
|
6868
6868
|
className: B("block", E ? "group-hover:hidden" : "cursor-default", p && "cursor-grabbing [&_button]:cursor-grabbing"),
|
|
6869
|
-
children: u === "multi-select" ? /* @__PURE__ */ X(
|
|
6869
|
+
children: u === "multi-select" ? /* @__PURE__ */ X(Es, {
|
|
6870
6870
|
title: f,
|
|
6871
6871
|
checked: o ? !!s : !1,
|
|
6872
6872
|
onCheckedChange: y,
|
|
@@ -6883,7 +6883,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6883
6883
|
children: /* @__PURE__ */ X("div", {
|
|
6884
6884
|
className: B("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
6885
6885
|
children: /* @__PURE__ */ X(ao, {
|
|
6886
|
-
icon:
|
|
6886
|
+
icon: Ur,
|
|
6887
6887
|
size: "sm"
|
|
6888
6888
|
})
|
|
6889
6889
|
})
|
|
@@ -6906,13 +6906,13 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
6906
6906
|
children: [/* @__PURE__ */ X(V, {
|
|
6907
6907
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
6908
6908
|
variant: "ghost",
|
|
6909
|
-
icon: c ?
|
|
6909
|
+
icon: c ? yi : la,
|
|
6910
6910
|
onClick: x,
|
|
6911
6911
|
hideLabel: !0
|
|
6912
6912
|
}), /* @__PURE__ */ X(V, {
|
|
6913
6913
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
6914
6914
|
variant: "ghost",
|
|
6915
|
-
icon:
|
|
6915
|
+
icon: hi,
|
|
6916
6916
|
hideLabel: !0,
|
|
6917
6917
|
onClick: S
|
|
6918
6918
|
})]
|
|
@@ -7012,7 +7012,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7012
7012
|
...t,
|
|
7013
7013
|
children: /* @__PURE__ */ Z("div", {
|
|
7014
7014
|
className: "-mx-0.5 flex flex-col items-start [&>div]:w-full",
|
|
7015
|
-
children: [/* @__PURE__ */ X($f, { children: /* @__PURE__ */ X(
|
|
7015
|
+
children: [/* @__PURE__ */ X($f, { children: /* @__PURE__ */ X(Ue, {
|
|
7016
7016
|
axis: "y",
|
|
7017
7017
|
values: e,
|
|
7018
7018
|
onReorder: m,
|
|
@@ -7112,12 +7112,12 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7112
7112
|
]
|
|
7113
7113
|
});
|
|
7114
7114
|
}, Gp = Nc(({ item: e, section: t, showEndOfSection: n, className: r }) => {
|
|
7115
|
-
let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = ep(), c =
|
|
7115
|
+
let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = ep(), c = rn(), { disabled: l, answering: u } = Zf(), d = !!t && s === t.id, f = () => {
|
|
7116
7116
|
a(!0), o(e.question.id);
|
|
7117
7117
|
}, p = () => {
|
|
7118
7118
|
a(!1), o(null);
|
|
7119
7119
|
}, m = t?.locked, h = !l && !u && !m;
|
|
7120
|
-
return /* @__PURE__ */ Z(
|
|
7120
|
+
return /* @__PURE__ */ Z(ln, {
|
|
7121
7121
|
value: e.id,
|
|
7122
7122
|
onDragStart: f,
|
|
7123
7123
|
onDragEnd: p,
|
|
@@ -7139,7 +7139,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7139
7139
|
h && c.start(e);
|
|
7140
7140
|
},
|
|
7141
7141
|
children: /* @__PURE__ */ X(H, {
|
|
7142
|
-
icon:
|
|
7142
|
+
icon: Ur,
|
|
7143
7143
|
size: "sm"
|
|
7144
7144
|
})
|
|
7145
7145
|
}) : null, /* @__PURE__ */ X(Up, { ...e.question })]
|
|
@@ -7147,12 +7147,12 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7147
7147
|
}), n ? /* @__PURE__ */ X(Wp, {}) : null]
|
|
7148
7148
|
});
|
|
7149
7149
|
}, (e, t) => e.showEndOfSection === t.showEndOfSection && e.className === t.className && (0, Ol.default)(e.section, t.section) && (0, Ol.default)(e.item, t.item)), Kp = ({ question: e }) => {
|
|
7150
|
-
let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = ep(), i =
|
|
7150
|
+
let { isDragging: t, setIsDragging: n, setDraggedItemId: r } = ep(), i = rn(), { disabled: a, answering: o, getSectionContainingQuestion: s } = Zf(), c = s(e.id), l = () => {
|
|
7151
7151
|
n(!0), r(e.id);
|
|
7152
7152
|
}, u = () => {
|
|
7153
7153
|
n(!1), r(null);
|
|
7154
7154
|
}, d = c?.locked, f = !a && !o && !d;
|
|
7155
|
-
return /* @__PURE__ */ X(
|
|
7155
|
+
return /* @__PURE__ */ X(ln, {
|
|
7156
7156
|
value: e,
|
|
7157
7157
|
as: "div",
|
|
7158
7158
|
onDragStart: l,
|
|
@@ -7169,7 +7169,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7169
7169
|
f && i.start(e);
|
|
7170
7170
|
},
|
|
7171
7171
|
children: /* @__PURE__ */ X(H, {
|
|
7172
|
-
icon:
|
|
7172
|
+
icon: Ur,
|
|
7173
7173
|
size: "sm"
|
|
7174
7174
|
})
|
|
7175
7175
|
}) : null, /* @__PURE__ */ X(Up, { ...e })]
|
|
@@ -7201,7 +7201,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7201
7201
|
});
|
|
7202
7202
|
}, x = [{
|
|
7203
7203
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
7204
|
-
icon:
|
|
7204
|
+
icon: jr,
|
|
7205
7205
|
onClick: () => {
|
|
7206
7206
|
d?.({
|
|
7207
7207
|
elementId: e,
|
|
@@ -7210,7 +7210,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7210
7210
|
}
|
|
7211
7211
|
}, {
|
|
7212
7212
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
7213
|
-
icon:
|
|
7213
|
+
icon: hi,
|
|
7214
7214
|
onClick: () => {
|
|
7215
7215
|
u(e);
|
|
7216
7216
|
},
|
|
@@ -7219,7 +7219,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7219
7219
|
G(() => {
|
|
7220
7220
|
T.current?.focus({ preventScroll: !0 });
|
|
7221
7221
|
}, []);
|
|
7222
|
-
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(
|
|
7222
|
+
let E = r?.description ?? h("surveyFormBuilder.labels.lockedSectionNotice"), D = a && !l ? /* @__PURE__ */ X(us, {
|
|
7223
7223
|
text: h("surveyFormBuilder.labels.locked"),
|
|
7224
7224
|
icon: tc,
|
|
7225
7225
|
className: "bg-f1-background"
|
|
@@ -7255,7 +7255,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7255
7255
|
}) : null,
|
|
7256
7256
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
7257
7257
|
className: B("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
7258
|
-
children: /* @__PURE__ */ X(
|
|
7258
|
+
children: /* @__PURE__ */ X(ti, {
|
|
7259
7259
|
items: x,
|
|
7260
7260
|
open: p,
|
|
7261
7261
|
onOpenChange: m,
|
|
@@ -7282,7 +7282,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7282
7282
|
disabled: S,
|
|
7283
7283
|
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")
|
|
7284
7284
|
}) : null]
|
|
7285
|
-
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X($f, { children: /* @__PURE__ */ X(
|
|
7285
|
+
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X($f, { children: /* @__PURE__ */ X(Ue, {
|
|
7286
7286
|
axis: "y",
|
|
7287
7287
|
values: i,
|
|
7288
7288
|
onReorder: b,
|
|
@@ -7304,8 +7304,8 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7304
7304
|
})] })]
|
|
7305
7305
|
});
|
|
7306
7306
|
}, Jp = Nc(({ item: e, className: t }) => {
|
|
7307
|
-
let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = ep(), o =
|
|
7308
|
-
return /* @__PURE__ */ X(
|
|
7307
|
+
let { isDragging: n, setIsDragging: r, setDraggedItemId: i, draggedItemId: a } = ep(), o = rn(), { disabled: s, answering: c } = Zf(), l = a === e.section.id;
|
|
7308
|
+
return /* @__PURE__ */ X(ln, {
|
|
7309
7309
|
value: e.id,
|
|
7310
7310
|
onDragStart: () => {
|
|
7311
7311
|
r(!0), i(e.section.id);
|
|
@@ -7333,7 +7333,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7333
7333
|
o.start(e);
|
|
7334
7334
|
},
|
|
7335
7335
|
children: /* @__PURE__ */ X(H, {
|
|
7336
|
-
icon:
|
|
7336
|
+
icon: Ur,
|
|
7337
7337
|
size: "sm"
|
|
7338
7338
|
})
|
|
7339
7339
|
}) : null, /* @__PURE__ */ X(qp, {
|
|
@@ -7363,7 +7363,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7363
7363
|
p || x.push({
|
|
7364
7364
|
type: "toggle",
|
|
7365
7365
|
label: l,
|
|
7366
|
-
icon:
|
|
7366
|
+
icon: qr,
|
|
7367
7367
|
checked: !!r?.required,
|
|
7368
7368
|
onCheckedChange: m
|
|
7369
7369
|
});
|
|
@@ -7408,7 +7408,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7408
7408
|
selected: s === e && t === "dropdown-single"
|
|
7409
7409
|
}, {
|
|
7410
7410
|
label: f,
|
|
7411
|
-
icon:
|
|
7411
|
+
icon: li,
|
|
7412
7412
|
onClick: () => h("dropdown-multi", e),
|
|
7413
7413
|
selected: s === e && t === "dropdown-multi"
|
|
7414
7414
|
}]
|
|
@@ -7422,16 +7422,16 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7422
7422
|
return x.push({
|
|
7423
7423
|
type: "submenu",
|
|
7424
7424
|
label: u,
|
|
7425
|
-
icon:
|
|
7425
|
+
icon: Rr,
|
|
7426
7426
|
selectedLabel: E,
|
|
7427
7427
|
children: w
|
|
7428
7428
|
}), x.push({ type: "separator" }), x.push({
|
|
7429
7429
|
label: i,
|
|
7430
|
-
icon:
|
|
7430
|
+
icon: jr,
|
|
7431
7431
|
onClick: y
|
|
7432
7432
|
}), n && x.push({
|
|
7433
7433
|
label: a,
|
|
7434
|
-
icon:
|
|
7434
|
+
icon: hi,
|
|
7435
7435
|
onClick: b,
|
|
7436
7436
|
critical: !0
|
|
7437
7437
|
}), x;
|
|
@@ -7452,12 +7452,12 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7452
7452
|
return {
|
|
7453
7453
|
id: i,
|
|
7454
7454
|
label: t.title || n,
|
|
7455
|
-
icon:
|
|
7455
|
+
icon: Xr,
|
|
7456
7456
|
onClick: y,
|
|
7457
7457
|
...!h && !g && !t.locked && { otherActions: [
|
|
7458
7458
|
{
|
|
7459
7459
|
label: o,
|
|
7460
|
-
icon:
|
|
7460
|
+
icon: jr,
|
|
7461
7461
|
onClick: () => m?.({
|
|
7462
7462
|
elementId: t.id,
|
|
7463
7463
|
type: "section"
|
|
@@ -7466,7 +7466,7 @@ var Bp = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7466
7466
|
{ type: "separator" },
|
|
7467
7467
|
{
|
|
7468
7468
|
label: s,
|
|
7469
|
-
icon:
|
|
7469
|
+
icon: hi,
|
|
7470
7470
|
onClick: () => p(t.id),
|
|
7471
7471
|
critical: !0
|
|
7472
7472
|
}
|
|
@@ -7533,7 +7533,7 @@ function em(e, t) {
|
|
|
7533
7533
|
return i;
|
|
7534
7534
|
}
|
|
7535
7535
|
var tm = ({ elements: e, onChange: t, answering: n }) => {
|
|
7536
|
-
let { t: r } = R(), { disabled: i, labels: a } = Zf(), { portalContainer: o } = Pc(
|
|
7536
|
+
let { t: r } = R(), { disabled: i, labels: a } = Zf(), { portalContainer: o } = Pc(qo), s = Zp(e, {
|
|
7537
7537
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
7538
7538
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
7539
7539
|
duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -7736,7 +7736,7 @@ var im = (e, t, n) => {
|
|
|
7736
7736
|
initial: { filter: "blur(0px)" },
|
|
7737
7737
|
animate: { filter: a ? "blur(2px)" : "none" },
|
|
7738
7738
|
exit: { filter: "blur(0px)" },
|
|
7739
|
-
children: [/* @__PURE__ */ X(
|
|
7739
|
+
children: [/* @__PURE__ */ X(Ue, {
|
|
7740
7740
|
axis: "y",
|
|
7741
7741
|
values: h,
|
|
7742
7742
|
onReorder: b,
|
|
@@ -8040,7 +8040,7 @@ function Sm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
8040
8040
|
s || a === "multi-select" && e.target.closest("input") || p(t.value);
|
|
8041
8041
|
},
|
|
8042
8042
|
children: [
|
|
8043
|
-
a === "multi-select" ? /* @__PURE__ */ X(
|
|
8043
|
+
a === "multi-select" ? /* @__PURE__ */ X(Es, {
|
|
8044
8044
|
title: t.label,
|
|
8045
8045
|
checked: !!n,
|
|
8046
8046
|
onCheckedChange: () => f(t.value),
|
|
@@ -8053,7 +8053,7 @@ function Sm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
8053
8053
|
u ? /* @__PURE__ */ X("div", {
|
|
8054
8054
|
className: "min-h-8 p-1",
|
|
8055
8055
|
children: /* @__PURE__ */ X(H, {
|
|
8056
|
-
icon: t.correct ?
|
|
8056
|
+
icon: t.correct ? la : yi,
|
|
8057
8057
|
color: t.correct ? "positive" : "critical",
|
|
8058
8058
|
"aria-hidden": !0
|
|
8059
8059
|
})
|
|
@@ -8075,7 +8075,7 @@ var Cm = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, wm = () => ({
|
|
|
8075
8075
|
status: "idle"
|
|
8076
8076
|
});
|
|
8077
8077
|
function Tm(e, t) {
|
|
8078
|
-
return
|
|
8078
|
+
return si().optional().superRefine((n, r) => {
|
|
8079
8079
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
8080
8080
|
code: "custom",
|
|
8081
8081
|
message: t("forms.validation.required")
|
|
@@ -8083,7 +8083,7 @@ function Tm(e, t) {
|
|
|
8083
8083
|
});
|
|
8084
8084
|
}
|
|
8085
8085
|
function Em(e, t) {
|
|
8086
|
-
return
|
|
8086
|
+
return si().optional().superRefine((n, r) => {
|
|
8087
8087
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
8088
8088
|
code: "custom",
|
|
8089
8089
|
message: t("forms.validation.required")
|
|
@@ -8094,7 +8094,7 @@ function Em(e, t) {
|
|
|
8094
8094
|
});
|
|
8095
8095
|
}
|
|
8096
8096
|
function Dm(e, t) {
|
|
8097
|
-
return
|
|
8097
|
+
return Ji().optional().superRefine((n, r) => {
|
|
8098
8098
|
e && n == null && r.addIssue({
|
|
8099
8099
|
code: "custom",
|
|
8100
8100
|
message: t("forms.validation.required")
|
|
@@ -8102,7 +8102,7 @@ function Dm(e, t) {
|
|
|
8102
8102
|
});
|
|
8103
8103
|
}
|
|
8104
8104
|
function Om(e, t) {
|
|
8105
|
-
return
|
|
8105
|
+
return _i(si()).optional().superRefine((n, r) => {
|
|
8106
8106
|
e && (!n || n.length === 0) && r.addIssue({
|
|
8107
8107
|
code: "custom",
|
|
8108
8108
|
message: t("forms.validation.required")
|
|
@@ -8110,7 +8110,7 @@ function Om(e, t) {
|
|
|
8110
8110
|
});
|
|
8111
8111
|
}
|
|
8112
8112
|
function km(e, t) {
|
|
8113
|
-
return
|
|
8113
|
+
return Vi().optional().superRefine((n, r) => {
|
|
8114
8114
|
e && !n && r.addIssue({
|
|
8115
8115
|
code: "custom",
|
|
8116
8116
|
message: t("forms.validation.required")
|
|
@@ -8119,7 +8119,7 @@ function km(e, t) {
|
|
|
8119
8119
|
}
|
|
8120
8120
|
var Am = Om;
|
|
8121
8121
|
function jm(e, t) {
|
|
8122
|
-
return
|
|
8122
|
+
return ea().optional().superRefine((n, r) => {
|
|
8123
8123
|
e && !n && r.addIssue({
|
|
8124
8124
|
code: "custom",
|
|
8125
8125
|
message: t("forms.validation.required")
|
|
@@ -8172,7 +8172,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8172
8172
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
8173
8173
|
disabled: i
|
|
8174
8174
|
};
|
|
8175
|
-
return
|
|
8175
|
+
return Ui(Tm(!!e.required, t), {
|
|
8176
8176
|
...l,
|
|
8177
8177
|
fieldType: "custom",
|
|
8178
8178
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8200,7 +8200,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8200
8200
|
rows: 4,
|
|
8201
8201
|
disabled: i
|
|
8202
8202
|
};
|
|
8203
|
-
return
|
|
8203
|
+
return Ui(Tm(!!e.required, t), {
|
|
8204
8204
|
...l,
|
|
8205
8205
|
fieldType: "custom",
|
|
8206
8206
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8227,7 +8227,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8227
8227
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
8228
8228
|
disabled: i
|
|
8229
8229
|
};
|
|
8230
|
-
return
|
|
8230
|
+
return Ui(Dm(!!e.required, t), {
|
|
8231
8231
|
...l,
|
|
8232
8232
|
fieldType: "custom",
|
|
8233
8233
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8255,7 +8255,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8255
8255
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
8256
8256
|
disabled: i
|
|
8257
8257
|
};
|
|
8258
|
-
return
|
|
8258
|
+
return Ui(Em(!!e.required, t), {
|
|
8259
8259
|
...l,
|
|
8260
8260
|
fieldType: "custom",
|
|
8261
8261
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8282,7 +8282,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8282
8282
|
clearable: !e.required,
|
|
8283
8283
|
disabled: i
|
|
8284
8284
|
};
|
|
8285
|
-
return
|
|
8285
|
+
return Ui(km(!!e.required, t), {
|
|
8286
8286
|
...l,
|
|
8287
8287
|
fieldType: "custom",
|
|
8288
8288
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8318,7 +8318,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8318
8318
|
showSearchBox: r,
|
|
8319
8319
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8320
8320
|
};
|
|
8321
|
-
return
|
|
8321
|
+
return Ui(Tm(!!e.required, t), {
|
|
8322
8322
|
...l,
|
|
8323
8323
|
fieldType: "custom",
|
|
8324
8324
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -8367,7 +8367,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8367
8367
|
showSearchBox: r,
|
|
8368
8368
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
8369
8369
|
};
|
|
8370
|
-
return
|
|
8370
|
+
return Ui(Om(!!e.required, t), {
|
|
8371
8371
|
...l,
|
|
8372
8372
|
fieldType: "custom",
|
|
8373
8373
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8394,7 +8394,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8394
8394
|
disabled: i,
|
|
8395
8395
|
showAnswerValidation: r
|
|
8396
8396
|
};
|
|
8397
|
-
return
|
|
8397
|
+
return Ui(Tm(!!e.required, t), {
|
|
8398
8398
|
...l,
|
|
8399
8399
|
fieldType: "custom",
|
|
8400
8400
|
fieldConfig: n,
|
|
@@ -8417,7 +8417,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8417
8417
|
disabled: i,
|
|
8418
8418
|
showAnswerValidation: r
|
|
8419
8419
|
};
|
|
8420
|
-
return
|
|
8420
|
+
return Ui(Om(!!e.required, t), {
|
|
8421
8421
|
...l,
|
|
8422
8422
|
fieldType: "custom",
|
|
8423
8423
|
fieldConfig: n,
|
|
@@ -8439,7 +8439,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8439
8439
|
maxLabel: n.maxLabel,
|
|
8440
8440
|
disabled: i
|
|
8441
8441
|
};
|
|
8442
|
-
return
|
|
8442
|
+
return Ui(Dm(!!e.required, t), {
|
|
8443
8443
|
...l,
|
|
8444
8444
|
fieldType: "custom",
|
|
8445
8445
|
fieldConfig: r,
|
|
@@ -8465,7 +8465,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8465
8465
|
useUpload: r ?? wm,
|
|
8466
8466
|
disabled: i || !r
|
|
8467
8467
|
};
|
|
8468
|
-
return
|
|
8468
|
+
return Ui(Am(!!e.required, t), {
|
|
8469
8469
|
...l,
|
|
8470
8470
|
fieldType: "custom",
|
|
8471
8471
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8491,7 +8491,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8491
8491
|
label: n.label || c,
|
|
8492
8492
|
disabled: i
|
|
8493
8493
|
};
|
|
8494
|
-
return
|
|
8494
|
+
return Ui(jm(!!e.required, t), {
|
|
8495
8495
|
...l,
|
|
8496
8496
|
fieldType: "custom",
|
|
8497
8497
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Tp, {
|
|
@@ -8510,7 +8510,7 @@ function Im({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
8510
8510
|
})
|
|
8511
8511
|
});
|
|
8512
8512
|
}
|
|
8513
|
-
default: return
|
|
8513
|
+
default: return Ui(Hi(), {
|
|
8514
8514
|
...l,
|
|
8515
8515
|
fieldType: "custom",
|
|
8516
8516
|
render: () => null
|
|
@@ -8557,7 +8557,7 @@ function Bm({ elements: e, mode: t, t: n, defaultValues: r, currentQuestionId: i
|
|
|
8557
8557
|
}), f[t] = a?.[t] ?? Mm(e, r);
|
|
8558
8558
|
}
|
|
8559
8559
|
return {
|
|
8560
|
-
schema:
|
|
8560
|
+
schema: Ai(d),
|
|
8561
8561
|
defaultValues: f,
|
|
8562
8562
|
flatQuestions: m,
|
|
8563
8563
|
sections: p
|
|
@@ -8582,7 +8582,7 @@ function Hm(e) {
|
|
|
8582
8582
|
return {
|
|
8583
8583
|
label: e.t("surveyAnsweringForm.actions.next"),
|
|
8584
8584
|
onClick: e.onNext,
|
|
8585
|
-
icon:
|
|
8585
|
+
icon: Fr
|
|
8586
8586
|
};
|
|
8587
8587
|
}
|
|
8588
8588
|
function Um(e) {
|
|
@@ -8604,7 +8604,7 @@ function Wm(e) {
|
|
|
8604
8604
|
secondaryAction: e.isActive && e.isStepped && !e.isFirstStep ? {
|
|
8605
8605
|
label: e.t("surveyAnsweringForm.actions.previous"),
|
|
8606
8606
|
onClick: e.onPrevious,
|
|
8607
|
-
icon:
|
|
8607
|
+
icon: as
|
|
8608
8608
|
} : void 0
|
|
8609
8609
|
};
|
|
8610
8610
|
}
|
|
@@ -8651,7 +8651,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8651
8651
|
isOpen: o,
|
|
8652
8652
|
readAnswers: j,
|
|
8653
8653
|
readStartingAnswers: M
|
|
8654
|
-
}), te = K(() => Nm(e), [e]), { currentStep: ne, progress: re, currentQuestion: F, isFirstStep: ie, isLastStep:
|
|
8654
|
+
}), te = K(() => Nm(e), [e]), { currentStep: ne, progress: re, currentQuestion: F, isFirstStep: ie, isLastStep: ae, goToNext: se, goToPrevious: ce, setProgress: le } = vm(te), ue = te.length > 0, de = {
|
|
8655
8655
|
title: m?.empty?.title ?? b("surveyAnsweringForm.labels.empty.title"),
|
|
8656
8656
|
description: m?.empty?.description ?? b("surveyAnsweringForm.labels.empty.description"),
|
|
8657
8657
|
emoji: m?.empty?.emoji ?? b("surveyAnsweringForm.labels.empty.emoji")
|
|
@@ -8680,7 +8680,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8680
8680
|
}, [Te]), Oe = W(async (e) => {
|
|
8681
8681
|
if (h) return { success: !0 };
|
|
8682
8682
|
if (!t) throw Error("onSubmit is required when preview is false");
|
|
8683
|
-
if (I && !
|
|
8683
|
+
if (I && !ae) return A((t) => ({
|
|
8684
8684
|
...t,
|
|
8685
8685
|
...e
|
|
8686
8686
|
})), N("step"), se(), { success: !0 };
|
|
@@ -8700,7 +8700,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8700
8700
|
De,
|
|
8701
8701
|
I,
|
|
8702
8702
|
k,
|
|
8703
|
-
|
|
8703
|
+
ae,
|
|
8704
8704
|
se,
|
|
8705
8705
|
le,
|
|
8706
8706
|
N,
|
|
@@ -8725,7 +8725,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8725
8725
|
Ee,
|
|
8726
8726
|
N,
|
|
8727
8727
|
s
|
|
8728
|
-
]), Me = I && !
|
|
8728
|
+
]), Me = I && !ae && !p && !fe, Ne = pe ? se : ke;
|
|
8729
8729
|
G(() => {
|
|
8730
8730
|
ge.current = Me ? Ne : Jm;
|
|
8731
8731
|
}, [Me, Ne]), G(() => () => _e(), [
|
|
@@ -8738,7 +8738,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8738
8738
|
isActive: ue && !p && !fe,
|
|
8739
8739
|
isStepped: I,
|
|
8740
8740
|
isFirstStep: ie,
|
|
8741
|
-
isLastStep:
|
|
8741
|
+
isLastStep: ae,
|
|
8742
8742
|
isEditablePreview: pe,
|
|
8743
8743
|
isSubmitting: D,
|
|
8744
8744
|
isSavingDraft: ee,
|
|
@@ -8748,10 +8748,10 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8748
8748
|
onPrevious: Ae
|
|
8749
8749
|
}), Ie = u && !p ? [{
|
|
8750
8750
|
label: b(C ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
8751
|
-
icon: C ?
|
|
8751
|
+
icon: C ? ca : Mr,
|
|
8752
8752
|
onClick: () => w((e) => !e)
|
|
8753
8753
|
}] : void 0, Le = n === "all-questions" && ue && !p, Re = I && ue && !p, ze = I && !!F?.sectionTitle && !p, Be = Ce === "center" || Ce === "fullscreen";
|
|
8754
|
-
return /* @__PURE__ */ X(
|
|
8754
|
+
return /* @__PURE__ */ X(ia, {
|
|
8755
8755
|
isOpen: o,
|
|
8756
8756
|
onClose: je,
|
|
8757
8757
|
title: r,
|
|
@@ -8777,7 +8777,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8777
8777
|
}) : null,
|
|
8778
8778
|
Re ? /* @__PURE__ */ X("div", {
|
|
8779
8779
|
className: "absolute left-0 right-0 top-0 [&>div>div>div]:h-1 [&>div>div>div]:rounded-none",
|
|
8780
|
-
children: /* @__PURE__ */ X(
|
|
8780
|
+
children: /* @__PURE__ */ X(Bo, {
|
|
8781
8781
|
label: "Value",
|
|
8782
8782
|
value: re,
|
|
8783
8783
|
hideLabel: !0
|
|
@@ -8788,7 +8788,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8788
8788
|
children: [
|
|
8789
8789
|
/* @__PURE__ */ X("div", {
|
|
8790
8790
|
className: "mb-6",
|
|
8791
|
-
children: /* @__PURE__ */ X(
|
|
8791
|
+
children: /* @__PURE__ */ X(cn, {
|
|
8792
8792
|
title: r,
|
|
8793
8793
|
description: i,
|
|
8794
8794
|
...a
|
|
@@ -8817,7 +8817,7 @@ function Zm({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
8817
8817
|
children: /* @__PURE__ */ X(Cp, { text: F.sectionDescription })
|
|
8818
8818
|
}) : null]
|
|
8819
8819
|
}) : null,
|
|
8820
|
-
ue && !p ? /* @__PURE__ */ X(
|
|
8820
|
+
ue && !p ? /* @__PURE__ */ X(oe, {
|
|
8821
8821
|
formRef: T,
|
|
8822
8822
|
name: "survey-answering",
|
|
8823
8823
|
schema: be,
|
|
@@ -8858,12 +8858,12 @@ function Qm({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
8858
8858
|
className: "mx-auto flex w-full max-w-3xl flex-col",
|
|
8859
8859
|
children: [l ? null : /* @__PURE__ */ X("div", {
|
|
8860
8860
|
className: "mb-6",
|
|
8861
|
-
children: /* @__PURE__ */ X(
|
|
8861
|
+
children: /* @__PURE__ */ X(cn, {
|
|
8862
8862
|
title: t,
|
|
8863
8863
|
description: n,
|
|
8864
8864
|
...r
|
|
8865
8865
|
})
|
|
8866
|
-
}), a ? /* @__PURE__ */ X(hm, {}) : d ? /* @__PURE__ */ X(
|
|
8866
|
+
}), a ? /* @__PURE__ */ X(hm, {}) : d ? /* @__PURE__ */ X(oe, {
|
|
8867
8867
|
name: "survey-answering-inline",
|
|
8868
8868
|
schema: p,
|
|
8869
8869
|
defaultValues: m,
|
|
@@ -9005,10 +9005,10 @@ var rh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
9005
9005
|
}),
|
|
9006
9006
|
s || c ? /* @__PURE__ */ Z("div", {
|
|
9007
9007
|
className: "flex justify-start gap-2",
|
|
9008
|
-
children: [s ? /* @__PURE__ */ X(
|
|
9008
|
+
children: [s ? /* @__PURE__ */ X(us, {
|
|
9009
9009
|
icon: s.icon,
|
|
9010
9010
|
text: s.label
|
|
9011
|
-
}) : null, c ? /* @__PURE__ */ X(
|
|
9011
|
+
}) : null, c ? /* @__PURE__ */ X(ss, {
|
|
9012
9012
|
variant: c.variant || "positive",
|
|
9013
9013
|
text: c.label
|
|
9014
9014
|
}) : null]
|
|
@@ -9033,18 +9033,18 @@ function sh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9033
9033
|
let [o, s] = J(e);
|
|
9034
9034
|
return G(() => {
|
|
9035
9035
|
s(e);
|
|
9036
|
-
}, [e]), /* @__PURE__ */ X(
|
|
9036
|
+
}, [e]), /* @__PURE__ */ X(xr, {
|
|
9037
9037
|
open: o,
|
|
9038
9038
|
onOpenChange: (e) => {
|
|
9039
9039
|
s(e), e || t();
|
|
9040
9040
|
},
|
|
9041
9041
|
modal: !0,
|
|
9042
|
-
children: /* @__PURE__ */ Z(
|
|
9042
|
+
children: /* @__PURE__ */ Z(Qr, {
|
|
9043
9043
|
className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
|
|
9044
9044
|
container: a,
|
|
9045
9045
|
children: [/* @__PURE__ */ Z("div", {
|
|
9046
9046
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
9047
|
-
children: [/* @__PURE__ */ Z(
|
|
9047
|
+
children: [/* @__PURE__ */ Z(ei, {
|
|
9048
9048
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
9049
9049
|
children: [i ? /* @__PURE__ */ X(Eo, {
|
|
9050
9050
|
module: i,
|
|
@@ -9052,7 +9052,7 @@ function sh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9052
9052
|
}) : null, n]
|
|
9053
9053
|
}), /* @__PURE__ */ X(nr, {
|
|
9054
9054
|
variant: "outline",
|
|
9055
|
-
icon:
|
|
9055
|
+
icon: yi,
|
|
9056
9056
|
onClick: t,
|
|
9057
9057
|
label: "Close modal",
|
|
9058
9058
|
hideLabel: !0
|
|
@@ -9118,7 +9118,7 @@ function ch({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
9118
9118
|
})
|
|
9119
9119
|
})
|
|
9120
9120
|
})
|
|
9121
|
-
}), b && _ ? /* @__PURE__ */ X(
|
|
9121
|
+
}), b && _ ? /* @__PURE__ */ X(P, {
|
|
9122
9122
|
open: !0,
|
|
9123
9123
|
onClose: () => {
|
|
9124
9124
|
T(), x(null);
|
|
@@ -9142,14 +9142,14 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9142
9142
|
o && o(!l);
|
|
9143
9143
|
}, [o, l]);
|
|
9144
9144
|
let f = e?.includes(".mp4");
|
|
9145
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
9145
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(Ki, {
|
|
9146
9146
|
style: { width: a },
|
|
9147
9147
|
className: "relative bg-f1-background p-1",
|
|
9148
|
-
children: [/* @__PURE__ */ Z(
|
|
9148
|
+
children: [/* @__PURE__ */ Z(Di, { children: [i ? /* @__PURE__ */ X("div", {
|
|
9149
9149
|
className: "absolute right-2 top-2 z-10",
|
|
9150
9150
|
children: /* @__PURE__ */ X(V, {
|
|
9151
9151
|
variant: "ghost",
|
|
9152
|
-
icon:
|
|
9152
|
+
icon: yi,
|
|
9153
9153
|
size: "sm",
|
|
9154
9154
|
hideLabel: !0,
|
|
9155
9155
|
onClick: d,
|
|
@@ -9168,14 +9168,14 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9168
9168
|
className: "h-full w-full rounded-md"
|
|
9169
9169
|
}) : null }), /* @__PURE__ */ Z("div", {
|
|
9170
9170
|
className: "flex flex-col gap-[2px] p-3",
|
|
9171
|
-
children: [/* @__PURE__ */ X(
|
|
9171
|
+
children: [/* @__PURE__ */ X(Wt, {
|
|
9172
9172
|
className: "text-lg font-medium",
|
|
9173
9173
|
children: t
|
|
9174
|
-
}), /* @__PURE__ */ X(
|
|
9174
|
+
}), /* @__PURE__ */ X(Wt, {
|
|
9175
9175
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
9176
9176
|
children: n
|
|
9177
9177
|
})]
|
|
9178
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
9178
|
+
})] })] }), s ? /* @__PURE__ */ X(Ci, {
|
|
9179
9179
|
className: "p-3",
|
|
9180
9180
|
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(D, {
|
|
9181
9181
|
label: e.label,
|
|
@@ -9198,7 +9198,7 @@ function uh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9198
9198
|
var dh = L(uh), fh = ({ onDismiss: e }) => {
|
|
9199
9199
|
let { actions: t } = R();
|
|
9200
9200
|
return /* @__PURE__ */ X(V, {
|
|
9201
|
-
icon:
|
|
9201
|
+
icon: yi,
|
|
9202
9202
|
label: t.close,
|
|
9203
9203
|
hideLabel: !0,
|
|
9204
9204
|
variant: "outline",
|
|
@@ -9278,7 +9278,7 @@ var mh = L(ph), hh = jc(function({ primaryAction: e, secondaryAction: t, ...n },
|
|
|
9278
9278
|
size: "md",
|
|
9279
9279
|
icon: e.icon
|
|
9280
9280
|
}), a = e?.variant === "promote" ? void 0 : e, o = t?.variant === "promote" ? void 0 : t;
|
|
9281
|
-
return /* @__PURE__ */ Z(
|
|
9281
|
+
return /* @__PURE__ */ Z(Le, {
|
|
9282
9282
|
ref: r,
|
|
9283
9283
|
...n,
|
|
9284
9284
|
primaryAction: a,
|
|
@@ -9290,7 +9290,7 @@ hh.displayName = "UpsellingBanner";
|
|
|
9290
9290
|
var gh = L(hh);
|
|
9291
9291
|
//#endregion
|
|
9292
9292
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
9293
|
-
function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
9293
|
+
function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = Ni, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
9294
9294
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
9295
9295
|
t(e), h && h();
|
|
9296
9296
|
}, w = async (e) => {
|
|
@@ -9337,7 +9337,7 @@ function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9337
9337
|
showConfirmation: !1
|
|
9338
9338
|
})
|
|
9339
9339
|
})]
|
|
9340
|
-
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(
|
|
9340
|
+
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(P, {
|
|
9341
9341
|
open: !0,
|
|
9342
9342
|
onClose: T,
|
|
9343
9343
|
success: y === "success",
|
|
@@ -9350,9 +9350,9 @@ function _h({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9350
9350
|
}
|
|
9351
9351
|
var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
9352
9352
|
let a = R(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
9353
|
-
return /* @__PURE__ */ Z(
|
|
9353
|
+
return /* @__PURE__ */ Z(Ki, {
|
|
9354
9354
|
className: "flex flex-col overflow-hidden",
|
|
9355
|
-
children: [/* @__PURE__ */ Z(
|
|
9355
|
+
children: [/* @__PURE__ */ Z(Di, {
|
|
9356
9356
|
className: "flex flex-col gap-4 p-0",
|
|
9357
9357
|
children: [/* @__PURE__ */ X("div", {
|
|
9358
9358
|
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"),
|
|
@@ -9367,7 +9367,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9367
9367
|
children: n
|
|
9368
9368
|
})]
|
|
9369
9369
|
})]
|
|
9370
|
-
}), /* @__PURE__ */ X(
|
|
9370
|
+
}), /* @__PURE__ */ X(Ci, {
|
|
9371
9371
|
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",
|
|
9372
9372
|
children: i ? /* @__PURE__ */ X(V, {
|
|
9373
9373
|
variant: "default",
|
|
@@ -9398,7 +9398,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9398
9398
|
}), /* @__PURE__ */ X("span", {
|
|
9399
9399
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
9400
9400
|
children: /* @__PURE__ */ X(H, {
|
|
9401
|
-
icon: t ? mo :
|
|
9401
|
+
icon: t ? mo : Xs,
|
|
9402
9402
|
size: "sm",
|
|
9403
9403
|
className: B("transition-transform duration-200", t && "text-f1-foreground")
|
|
9404
9404
|
})
|
|
@@ -9414,7 +9414,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9414
9414
|
})
|
|
9415
9415
|
})]
|
|
9416
9416
|
}), xh = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
9417
|
-
let o = R()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
9417
|
+
let o = R()?.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), [
|
|
9418
9418
|
u,
|
|
9419
9419
|
r,
|
|
9420
9420
|
c
|
|
@@ -9429,9 +9429,9 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9429
9429
|
i,
|
|
9430
9430
|
a
|
|
9431
9431
|
]);
|
|
9432
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
9432
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(Ki, {
|
|
9433
9433
|
className: "flex flex-col overflow-hidden",
|
|
9434
|
-
children: [/* @__PURE__ */ Z(
|
|
9434
|
+
children: [/* @__PURE__ */ Z(ai, {
|
|
9435
9435
|
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",
|
|
9436
9436
|
children: [/* @__PURE__ */ X("div", {
|
|
9437
9437
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -9444,7 +9444,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9444
9444
|
className: "text-base font-semibold text-f1-foreground",
|
|
9445
9445
|
children: o
|
|
9446
9446
|
})]
|
|
9447
|
-
}), /* @__PURE__ */ X(
|
|
9447
|
+
}), /* @__PURE__ */ X(Di, {
|
|
9448
9448
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
9449
9449
|
children: t.map((e) => /* @__PURE__ */ X(bh, {
|
|
9450
9450
|
item: e,
|
|
@@ -9455,9 +9455,9 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9455
9455
|
});
|
|
9456
9456
|
}, Sh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
9457
9457
|
let a = R()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
9458
|
-
return /* @__PURE__ */ Z(
|
|
9458
|
+
return /* @__PURE__ */ Z(Ki, {
|
|
9459
9459
|
className: "flex flex-col overflow-hidden",
|
|
9460
|
-
children: [/* @__PURE__ */ X(
|
|
9460
|
+
children: [/* @__PURE__ */ X(Di, {
|
|
9461
9461
|
className: "flex flex-col gap-3 p-0",
|
|
9462
9462
|
children: /* @__PURE__ */ Z("div", {
|
|
9463
9463
|
className: "flex items-start gap-3",
|
|
@@ -9479,7 +9479,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9479
9479
|
})]
|
|
9480
9480
|
})]
|
|
9481
9481
|
})
|
|
9482
|
-
}), /* @__PURE__ */ X(
|
|
9482
|
+
}), /* @__PURE__ */ X(Ci, {
|
|
9483
9483
|
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",
|
|
9484
9484
|
children: r ? /* @__PURE__ */ X(V, {
|
|
9485
9485
|
variant: "outline",
|
|
@@ -9497,12 +9497,12 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9497
9497
|
});
|
|
9498
9498
|
}, Ch = ({ onAction: e, actionHref: t }) => {
|
|
9499
9499
|
let n = R()?.ai?.growth?.bookAMeetingCard, r = n?.title ?? "Talk with an expert", i = n?.schedule ?? "Mon-Fri · 09:00-21:00 (CEST)", a = n?.actionLabel ?? "Book a meeting";
|
|
9500
|
-
return /* @__PURE__ */ Z(
|
|
9500
|
+
return /* @__PURE__ */ Z(Ki, {
|
|
9501
9501
|
className: "flex flex-col overflow-hidden",
|
|
9502
|
-
children: [/* @__PURE__ */ Z(
|
|
9502
|
+
children: [/* @__PURE__ */ Z(Di, {
|
|
9503
9503
|
className: "flex flex-col gap-3 p-0",
|
|
9504
9504
|
children: [/* @__PURE__ */ X(H, {
|
|
9505
|
-
icon:
|
|
9505
|
+
icon: Pr,
|
|
9506
9506
|
size: "lg"
|
|
9507
9507
|
}), /* @__PURE__ */ Z("div", {
|
|
9508
9508
|
className: "flex flex-col gap-0.5",
|
|
@@ -9514,7 +9514,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9514
9514
|
children: i
|
|
9515
9515
|
})]
|
|
9516
9516
|
})]
|
|
9517
|
-
}), /* @__PURE__ */ X(
|
|
9517
|
+
}), /* @__PURE__ */ X(Ci, {
|
|
9518
9518
|
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",
|
|
9519
9519
|
children: t ? /* @__PURE__ */ X(V, {
|
|
9520
9520
|
variant: "default",
|
|
@@ -9560,9 +9560,9 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9560
9560
|
e,
|
|
9561
9561
|
t
|
|
9562
9562
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
9563
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
9563
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(Ki, {
|
|
9564
9564
|
className: "flex flex-col overflow-hidden",
|
|
9565
|
-
children: [/* @__PURE__ */ Z(
|
|
9565
|
+
children: [/* @__PURE__ */ Z(Di, {
|
|
9566
9566
|
className: "flex flex-col gap-4",
|
|
9567
9567
|
children: [/* @__PURE__ */ X("h3", {
|
|
9568
9568
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -9571,7 +9571,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9571
9571
|
className: "flex flex-col gap-3",
|
|
9572
9572
|
children: d.options.map((e) => /* @__PURE__ */ X("div", {
|
|
9573
9573
|
className: "flex items-center gap-2.5",
|
|
9574
|
-
children: /* @__PURE__ */ X(
|
|
9574
|
+
children: /* @__PURE__ */ X(Es, {
|
|
9575
9575
|
id: e.id,
|
|
9576
9576
|
title: e.label,
|
|
9577
9577
|
checked: f.includes(e.id),
|
|
@@ -9579,7 +9579,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9579
9579
|
})
|
|
9580
9580
|
}, e.id))
|
|
9581
9581
|
})]
|
|
9582
|
-
}), /* @__PURE__ */ Z(
|
|
9582
|
+
}), /* @__PURE__ */ Z(Ci, {
|
|
9583
9583
|
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",
|
|
9584
9584
|
children: [/* @__PURE__ */ X("div", {
|
|
9585
9585
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -9591,7 +9591,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9591
9591
|
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",
|
|
9592
9592
|
"aria-label": "Previous",
|
|
9593
9593
|
children: /* @__PURE__ */ X(H, {
|
|
9594
|
-
icon:
|
|
9594
|
+
icon: Io,
|
|
9595
9595
|
size: "sm"
|
|
9596
9596
|
})
|
|
9597
9597
|
}),
|
|
@@ -9610,7 +9610,7 @@ var vh = L(_h), yh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9610
9610
|
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",
|
|
9611
9611
|
"aria-label": "Next",
|
|
9612
9612
|
children: /* @__PURE__ */ X(H, {
|
|
9613
|
-
icon:
|
|
9613
|
+
icon: Xs,
|
|
9614
9614
|
size: "sm"
|
|
9615
9615
|
})
|
|
9616
9616
|
})
|
|
@@ -10102,7 +10102,7 @@ function sg(e, t) {
|
|
|
10102
10102
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
10103
10103
|
}
|
|
10104
10104
|
async function cg(e, t, n, { keys: r, preamble: i } = {}) {
|
|
10105
|
-
sg(await
|
|
10105
|
+
sg(await da([{
|
|
10106
10106
|
name: "Data",
|
|
10107
10107
|
rows: ag({
|
|
10108
10108
|
columns: e,
|
|
@@ -10124,7 +10124,7 @@ function ug(e, t, n) {
|
|
|
10124
10124
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
10125
10125
|
}
|
|
10126
10126
|
async function dg(e, t) {
|
|
10127
|
-
sg(await
|
|
10127
|
+
sg(await da(e.map((e) => ({
|
|
10128
10128
|
name: e.name,
|
|
10129
10129
|
rows: ag(e)
|
|
10130
10130
|
}))), `${t}.xlsx`);
|
|
@@ -10133,10 +10133,10 @@ async function dg(e, t) {
|
|
|
10133
10133
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useChartDownloadActions.ts
|
|
10134
10134
|
function fg(e) {
|
|
10135
10135
|
let t = e.current?.querySelector(":scope > div");
|
|
10136
|
-
return t ?
|
|
10136
|
+
return t ? Nt(t) ?? null : null;
|
|
10137
10137
|
}
|
|
10138
10138
|
function pg(e, t, n) {
|
|
10139
|
-
let r =
|
|
10139
|
+
let r = Tt(document.createElement("div"), void 0, {
|
|
10140
10140
|
renderer: "canvas",
|
|
10141
10141
|
width: e.getWidth(),
|
|
10142
10142
|
height: e.getHeight()
|
|
@@ -10188,24 +10188,24 @@ function mg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
10188
10188
|
...t.type === "matrix" ? [] : [
|
|
10189
10189
|
{
|
|
10190
10190
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
10191
|
-
icon:
|
|
10191
|
+
icon: Er,
|
|
10192
10192
|
onClick: () => a("png")
|
|
10193
10193
|
},
|
|
10194
10194
|
{
|
|
10195
10195
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
10196
|
-
icon:
|
|
10196
|
+
icon: Er,
|
|
10197
10197
|
onClick: () => a("jpg")
|
|
10198
10198
|
},
|
|
10199
10199
|
{ type: "separator" }
|
|
10200
10200
|
],
|
|
10201
10201
|
{
|
|
10202
10202
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
10203
|
-
icon:
|
|
10203
|
+
icon: fa,
|
|
10204
10204
|
onClick: s
|
|
10205
10205
|
},
|
|
10206
10206
|
{
|
|
10207
10207
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
10208
|
-
icon:
|
|
10208
|
+
icon: fa,
|
|
10209
10209
|
onClick: c
|
|
10210
10210
|
}
|
|
10211
10211
|
] : [], [
|
|
@@ -10264,7 +10264,7 @@ function gg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10264
10264
|
}, [h, d]), G(() => {
|
|
10265
10265
|
l || m(t);
|
|
10266
10266
|
}, [l, t]);
|
|
10267
|
-
let v = Pc(
|
|
10267
|
+
let v = Pc(qo), y = v.portalContainer && (v.position === "center" || v.position === "fullscreen") ? v.portalContainer : void 0, b = K(() => Hs(e, t, i), [
|
|
10268
10268
|
e,
|
|
10269
10269
|
t,
|
|
10270
10270
|
i
|
|
@@ -10304,7 +10304,7 @@ function gg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10304
10304
|
asChild: !0,
|
|
10305
10305
|
children: /* @__PURE__ */ X(nr, {
|
|
10306
10306
|
label: i.filters.label,
|
|
10307
|
-
icon:
|
|
10307
|
+
icon: Po,
|
|
10308
10308
|
variant: "ghost",
|
|
10309
10309
|
size: "md",
|
|
10310
10310
|
hideLabel: !0,
|
|
@@ -10341,7 +10341,7 @@ function gg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10341
10341
|
className: "flex shrink-0 items-center gap-2 py-1.5 pl-1.5 pr-3",
|
|
10342
10342
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(V, {
|
|
10343
10343
|
label: i.filters.availableFilters,
|
|
10344
|
-
icon:
|
|
10344
|
+
icon: as,
|
|
10345
10345
|
hideLabel: !0,
|
|
10346
10346
|
variant: "ghost",
|
|
10347
10347
|
size: "sm",
|
|
@@ -10357,7 +10357,7 @@ function gg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10357
10357
|
className: "flex min-h-0 flex-1 flex-col",
|
|
10358
10358
|
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
|
|
10359
10359
|
className: "min-h-0 flex-1 overflow-y-auto border-0 border-t border-solid border-f1-border-secondary",
|
|
10360
|
-
children: /* @__PURE__ */ X(
|
|
10360
|
+
children: /* @__PURE__ */ X(As, {
|
|
10361
10361
|
selectedFilterKey: g,
|
|
10362
10362
|
definition: e,
|
|
10363
10363
|
tempFilters: p,
|
|
@@ -10375,13 +10375,13 @@ function gg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10375
10375
|
onClick: w,
|
|
10376
10376
|
label: i.filters.applySelection
|
|
10377
10377
|
})
|
|
10378
|
-
})] }) : /* @__PURE__ */ X(
|
|
10378
|
+
})] }) : /* @__PURE__ */ X(Ss, {
|
|
10379
10379
|
definition: _,
|
|
10380
10380
|
tempFilters: p,
|
|
10381
10381
|
selectedFilterKey: g,
|
|
10382
10382
|
onFilterSelect: C,
|
|
10383
10383
|
onClickApplyFilters: () => {
|
|
10384
|
-
n(
|
|
10384
|
+
n(Ns(e, p, i)), u(!1), r?.(!1), f(null);
|
|
10385
10385
|
},
|
|
10386
10386
|
isCompactMode: !0
|
|
10387
10387
|
})
|
|
@@ -10436,7 +10436,7 @@ function yg({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
10436
10436
|
//#endregion
|
|
10437
10437
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
10438
10438
|
function bg({ 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 }) {
|
|
10439
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: ee, setOpen: N, focusChatInput: P } =
|
|
10439
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = R(), { enabled: M, setPendingQuote: ee, setOpen: N, focusChatInput: P } = _r(), te = (e) => {
|
|
10440
10440
|
T(e), e || A(!1);
|
|
10441
10441
|
}, ne = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), re = ne.length > 0, F = u && f && h, ie = g && g.length > 0, ae = !!_ && _.trim().length > 0, oe = !!C, se = !d && e.trim().length > 0 && (p ? !!h : M), ce = se || re || F || ie || ae, le = !!l || oe || !!ce, ue = !v && (w || E), de = 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", ue && "delay-0 !opacity-100"), I = 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]", ue && "delay-0 !grid-cols-[1fr]"), fe = yg({
|
|
10442
10442
|
title: e,
|
|
@@ -10483,7 +10483,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10483
10483
|
children: e
|
|
10484
10484
|
}), n ? /* @__PURE__ */ X("div", {
|
|
10485
10485
|
className: "flex shrink-0 items-center text-f1-foreground-secondary",
|
|
10486
|
-
children: /* @__PURE__ */ X(
|
|
10486
|
+
children: /* @__PURE__ */ X(Ie, { info: n })
|
|
10487
10487
|
}) : null]
|
|
10488
10488
|
}), t ? /* @__PURE__ */ X("p", {
|
|
10489
10489
|
className: "text-base text-f1-foreground-secondary",
|
|
@@ -10551,7 +10551,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10551
10551
|
}), n ? /* @__PURE__ */ X("div", {
|
|
10552
10552
|
ref: fe.infoRef,
|
|
10553
10553
|
className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
|
|
10554
|
-
children: /* @__PURE__ */ X(
|
|
10554
|
+
children: /* @__PURE__ */ X(Ie, { info: n })
|
|
10555
10555
|
}) : null]
|
|
10556
10556
|
}), le ? /* @__PURE__ */ X("div", {
|
|
10557
10557
|
ref: fe.actionsRef,
|
|
@@ -10567,7 +10567,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10567
10567
|
}) : null,
|
|
10568
10568
|
oe ? /* @__PURE__ */ X(nr, {
|
|
10569
10569
|
label: v ? j.actions.collapse : j.actions.expand,
|
|
10570
|
-
icon: v ?
|
|
10570
|
+
icon: v ? ca : Mr,
|
|
10571
10571
|
variant: "ghost",
|
|
10572
10572
|
size: "md",
|
|
10573
10573
|
hideLabel: !0,
|
|
@@ -10595,7 +10595,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10595
10595
|
onCloseAutoFocus: ge,
|
|
10596
10596
|
children: k && ae ? /* @__PURE__ */ X("div", {
|
|
10597
10597
|
className: "px-3 py-2 text-base text-f1-foreground [&>div]:flex [&>div]:flex-col [&>div]:gap-2",
|
|
10598
|
-
children: /* @__PURE__ */ X(
|
|
10598
|
+
children: /* @__PURE__ */ X(Nr, {
|
|
10599
10599
|
content: _,
|
|
10600
10600
|
format: "markdown"
|
|
10601
10601
|
})
|
|
@@ -10627,7 +10627,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10627
10627
|
},
|
|
10628
10628
|
children: /* @__PURE__ */ Z("div", {
|
|
10629
10629
|
className: "flex w-full flex-row items-center gap-2",
|
|
10630
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10630
|
+
children: [/* @__PURE__ */ X(H, { icon: zo }), /* @__PURE__ */ X("span", {
|
|
10631
10631
|
className: "flex-1",
|
|
10632
10632
|
children: j.ai.dashboardItem.dataExplanation
|
|
10633
10633
|
})]
|
|
@@ -10638,7 +10638,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10638
10638
|
className: "mx-1 rounded-sm px-2",
|
|
10639
10639
|
children: /* @__PURE__ */ Z("div", {
|
|
10640
10640
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
10641
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10641
|
+
children: [/* @__PURE__ */ X(H, { icon: Xi }), /* @__PURE__ */ X("span", {
|
|
10642
10642
|
className: "flex-1 text-base font-medium",
|
|
10643
10643
|
children: j.ai.dataDownload.title
|
|
10644
10644
|
})]
|
|
@@ -10660,7 +10660,7 @@ function bg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10660
10660
|
className: B("text-f1-foreground-critical"),
|
|
10661
10661
|
children: /* @__PURE__ */ Z("div", {
|
|
10662
10662
|
className: "flex w-full flex-row items-center gap-2",
|
|
10663
|
-
children: [/* @__PURE__ */ X(H, { icon:
|
|
10663
|
+
children: [/* @__PURE__ */ X(H, { icon: hi }), /* @__PURE__ */ X("span", {
|
|
10664
10664
|
className: "flex-1",
|
|
10665
10665
|
children: j.actions.delete
|
|
10666
10666
|
})]
|
|
@@ -10794,39 +10794,39 @@ function Mg(e) {
|
|
|
10794
10794
|
{
|
|
10795
10795
|
label: e.dataChart.barChartVertical,
|
|
10796
10796
|
value: "bar-vertical",
|
|
10797
|
-
icon:
|
|
10797
|
+
icon: Br,
|
|
10798
10798
|
type: "bar",
|
|
10799
10799
|
orientation: "vertical"
|
|
10800
10800
|
},
|
|
10801
10801
|
{
|
|
10802
10802
|
label: e.dataChart.barChartHorizontal,
|
|
10803
10803
|
value: "bar-horizontal",
|
|
10804
|
-
icon:
|
|
10804
|
+
icon: Vr,
|
|
10805
10805
|
type: "bar",
|
|
10806
10806
|
orientation: "horizontal"
|
|
10807
10807
|
},
|
|
10808
10808
|
{
|
|
10809
10809
|
label: e.dataChart.lineChart,
|
|
10810
10810
|
value: "line",
|
|
10811
|
-
icon:
|
|
10811
|
+
icon: oa,
|
|
10812
10812
|
type: "line"
|
|
10813
10813
|
},
|
|
10814
10814
|
{
|
|
10815
10815
|
label: e.dataChart.funnel,
|
|
10816
10816
|
value: "funnel",
|
|
10817
|
-
icon:
|
|
10817
|
+
icon: mr,
|
|
10818
10818
|
type: "funnel"
|
|
10819
10819
|
},
|
|
10820
10820
|
{
|
|
10821
10821
|
label: e.dataChart.pieChart,
|
|
10822
10822
|
value: "pie",
|
|
10823
|
-
icon:
|
|
10823
|
+
icon: pr,
|
|
10824
10824
|
type: "pie"
|
|
10825
10825
|
},
|
|
10826
10826
|
{
|
|
10827
10827
|
label: e.dataChart.table,
|
|
10828
10828
|
value: "table",
|
|
10829
|
-
icon:
|
|
10829
|
+
icon: fa,
|
|
10830
10830
|
type: "table"
|
|
10831
10831
|
}
|
|
10832
10832
|
];
|
|
@@ -10834,18 +10834,18 @@ function Mg(e) {
|
|
|
10834
10834
|
var Ng = { type: "bar" };
|
|
10835
10835
|
function Pg(e) {
|
|
10836
10836
|
switch (e.type) {
|
|
10837
|
-
case "bar": return /* @__PURE__ */ X(
|
|
10837
|
+
case "bar": return /* @__PURE__ */ X(Re, {
|
|
10838
10838
|
orientation: e.orientation,
|
|
10839
10839
|
stacked: e.stacked,
|
|
10840
10840
|
showLegend: e.showLegend
|
|
10841
10841
|
});
|
|
10842
|
-
case "line": return /* @__PURE__ */ X(
|
|
10842
|
+
case "line": return /* @__PURE__ */ X(on, {
|
|
10843
10843
|
lineType: e.lineType,
|
|
10844
10844
|
showArea: e.showArea,
|
|
10845
10845
|
showDots: e.showDots,
|
|
10846
10846
|
showLegend: e.showLegend
|
|
10847
10847
|
});
|
|
10848
|
-
case "funnel": return /* @__PURE__ */ X(
|
|
10848
|
+
case "funnel": return /* @__PURE__ */ X(Xt, {
|
|
10849
10849
|
orient: e.orient,
|
|
10850
10850
|
sort: e.sort,
|
|
10851
10851
|
showLegend: e.showLegend
|
|
@@ -10856,8 +10856,8 @@ function Pg(e) {
|
|
|
10856
10856
|
});
|
|
10857
10857
|
case "radar": return /* @__PURE__ */ X(u, { showLegend: e.showLegend });
|
|
10858
10858
|
case "gauge": return /* @__PURE__ */ X(un, {});
|
|
10859
|
-
case "heatmap": return /* @__PURE__ */ X(
|
|
10860
|
-
case "scatter": return /* @__PURE__ */ X(
|
|
10859
|
+
case "heatmap": return /* @__PURE__ */ X(We, {});
|
|
10860
|
+
case "scatter": return /* @__PURE__ */ X(tn, { showLegend: e.showLegend ?? !1 });
|
|
10861
10861
|
case "matrix": return /* @__PURE__ */ X(Hu, {
|
|
10862
10862
|
columns: Math.max(e.columns?.length ?? 1, 1),
|
|
10863
10863
|
rows: Math.max(e.rows?.length ?? 1, 1)
|
|
@@ -11004,7 +11004,7 @@ function zg({ config: e, data: t }) {
|
|
|
11004
11004
|
label: e,
|
|
11005
11005
|
id: e
|
|
11006
11006
|
}))
|
|
11007
|
-
}), [a]), s =
|
|
11007
|
+
}), [a]), s = _e(o, [a]), c = K(() => [{
|
|
11008
11008
|
type: "table",
|
|
11009
11009
|
options: { columns: a.columns.map((e, t) => ({
|
|
11010
11010
|
label: e,
|
|
@@ -11021,7 +11021,7 @@ function Bg(e) {
|
|
|
11021
11021
|
return jh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
11022
11022
|
}
|
|
11023
11023
|
function Vg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
11024
|
-
let f = R(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
11024
|
+
let f = R(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = _r(), y = !jh(e.chart), b = y ? Ng : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = hg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Ig(e, T) : void 0, [
|
|
11025
11025
|
e,
|
|
11026
11026
|
T,
|
|
11027
11027
|
y
|
|
@@ -11123,7 +11123,7 @@ function Vg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11123
11123
|
children: [A.type === "matrix" ? /* @__PURE__ */ X(Bu, {
|
|
11124
11124
|
...A.matrix,
|
|
11125
11125
|
ariaLabel: e.title
|
|
11126
|
-
}) : /* @__PURE__ */ X(
|
|
11126
|
+
}) : /* @__PURE__ */ X(Jt, {
|
|
11127
11127
|
...A,
|
|
11128
11128
|
ariaLabel: e.title,
|
|
11129
11129
|
onPointClick: M ? (e) => S(e) : void 0,
|
|
@@ -11142,7 +11142,7 @@ function Vg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11142
11142
|
})]
|
|
11143
11143
|
}) : E ? null : /* @__PURE__ */ X("div", {
|
|
11144
11144
|
className: "h-full w-full px-4 py-3",
|
|
11145
|
-
children: /* @__PURE__ */ X(
|
|
11145
|
+
children: /* @__PURE__ */ X(Ce, {})
|
|
11146
11146
|
})
|
|
11147
11147
|
});
|
|
11148
11148
|
}
|
|
@@ -11256,11 +11256,11 @@ function Yg({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
11256
11256
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
11257
11257
|
return K(() => e ? [{
|
|
11258
11258
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
11259
|
-
icon:
|
|
11259
|
+
icon: fa,
|
|
11260
11260
|
onClick: l
|
|
11261
11261
|
}, {
|
|
11262
11262
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
11263
|
-
icon:
|
|
11263
|
+
icon: fa,
|
|
11264
11264
|
onClick: u
|
|
11265
11265
|
}] : [], [
|
|
11266
11266
|
e,
|
|
@@ -11272,7 +11272,7 @@ function Yg({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
11272
11272
|
//#endregion
|
|
11273
11273
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
|
|
11274
11274
|
function Xg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
|
|
11275
|
-
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h =
|
|
11275
|
+
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = _e(m, [f, p]), [g, _] = J(), v = K(() => Hg(e.visualizations), [e]), y = Yg({
|
|
11276
11276
|
source: h,
|
|
11277
11277
|
title: e.title,
|
|
11278
11278
|
description: e.description,
|
|
@@ -11381,12 +11381,12 @@ function e_({ value: e, trend: t, comparison: n }) {
|
|
|
11381
11381
|
className: "flex shrink-0 items-center",
|
|
11382
11382
|
children: [
|
|
11383
11383
|
t.direction === "up" ? /* @__PURE__ */ X(H, {
|
|
11384
|
-
icon:
|
|
11384
|
+
icon: Go,
|
|
11385
11385
|
color: "positive",
|
|
11386
11386
|
size: "sm",
|
|
11387
11387
|
"aria-hidden": "true"
|
|
11388
11388
|
}) : /* @__PURE__ */ X(H, {
|
|
11389
|
-
icon:
|
|
11389
|
+
icon: ds,
|
|
11390
11390
|
color: "critical",
|
|
11391
11391
|
size: "sm",
|
|
11392
11392
|
"aria-hidden": "true"
|
|
@@ -11415,7 +11415,7 @@ function e_({ value: e, trend: t, comparison: n }) {
|
|
|
11415
11415
|
" ",
|
|
11416
11416
|
n.value
|
|
11417
11417
|
]
|
|
11418
|
-
}), n.info ? /* @__PURE__ */ X(
|
|
11418
|
+
}), n.info ? /* @__PURE__ */ X(Ie, {
|
|
11419
11419
|
info: n.info,
|
|
11420
11420
|
label: n.label
|
|
11421
11421
|
}) : null]
|
|
@@ -11588,7 +11588,7 @@ function u_({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
11588
11588
|
if (Math.hypot(t.clientX - n, t.clientY - r) < a_) return;
|
|
11589
11589
|
i = !0, E(e), N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
11590
11590
|
let a = A.current.get(e)?.title ?? "";
|
|
11591
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
11591
|
+
a && window.dispatchEvent(new CustomEvent(Hr, { detail: {
|
|
11592
11592
|
id: e,
|
|
11593
11593
|
title: a,
|
|
11594
11594
|
onAskAi: l,
|
|
@@ -11602,7 +11602,7 @@ function u_({ items: e, itemFilters: t, itemDownloadActions: n, filters: r, edit
|
|
|
11602
11602
|
}, o = (e) => {
|
|
11603
11603
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", c), P.current = null;
|
|
11604
11604
|
let t = j.current, n = M.current;
|
|
11605
|
-
e && i && t && n && te(t, n), j.current = null, M.current = null, N.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(
|
|
11605
|
+
e && i && t && n && te(t, n), j.current = null, M.current = null, N.current = [], E(null), O(null), i && window.dispatchEvent(new CustomEvent(vr));
|
|
11606
11606
|
}, s = (e) => {
|
|
11607
11607
|
i && (N.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), M.current = ne(e.clientX, e.clientY)), o(!0);
|
|
11608
11608
|
}, c = () => o(!1);
|
|
@@ -11783,7 +11783,7 @@ function d_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
11783
11783
|
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",
|
|
11784
11784
|
"aria-label": "Drag to reorder",
|
|
11785
11785
|
children: /* @__PURE__ */ X(H, {
|
|
11786
|
-
icon:
|
|
11786
|
+
icon: Ur,
|
|
11787
11787
|
size: "xs"
|
|
11788
11788
|
})
|
|
11789
11789
|
}) : null, s]
|
|
@@ -11953,9 +11953,9 @@ function T_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11953
11953
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
11954
11954
|
function E_({ onExportExcel: e, isExporting: t }) {
|
|
11955
11955
|
let { t: n } = R();
|
|
11956
|
-
return /* @__PURE__ */ X(
|
|
11956
|
+
return /* @__PURE__ */ X(ti, { items: [{
|
|
11957
11957
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
11958
|
-
icon:
|
|
11958
|
+
icon: Xi,
|
|
11959
11959
|
onClick: t ? () => {} : e
|
|
11960
11960
|
}] });
|
|
11961
11961
|
}
|
|
@@ -11964,7 +11964,7 @@ function E_({ onExportExcel: e, isExporting: t }) {
|
|
|
11964
11964
|
function D_(e) {
|
|
11965
11965
|
return /* @__PURE__ */ X(ys.Provider, {
|
|
11966
11966
|
value: "controlled",
|
|
11967
|
-
children: /* @__PURE__ */ X(
|
|
11967
|
+
children: /* @__PURE__ */ X(Is, { ...e })
|
|
11968
11968
|
});
|
|
11969
11969
|
}
|
|
11970
11970
|
D_.displayName = "ControlledOneFilterPicker";
|
|
@@ -12147,7 +12147,7 @@ var F_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
|
|
|
12147
12147
|
}) : y ? /* @__PURE__ */ X(k_, {}) : null
|
|
12148
12148
|
}), /* @__PURE__ */ Z("div", {
|
|
12149
12149
|
className: "flex shrink-0 items-center gap-2",
|
|
12150
|
-
children: [v ? /* @__PURE__ */ X(
|
|
12150
|
+
children: [v ? /* @__PURE__ */ X(fe, {
|
|
12151
12151
|
navigationFilters: v,
|
|
12152
12152
|
currentNavigationFilters: w,
|
|
12153
12153
|
onChangeNavigationFilters: T,
|
|
@@ -12925,7 +12925,7 @@ var xv = ({ onClose: e }) => {
|
|
|
12925
12925
|
className: "dark flex-shrink-0",
|
|
12926
12926
|
children: /* @__PURE__ */ X(V, {
|
|
12927
12927
|
variant: "outline",
|
|
12928
|
-
icon:
|
|
12928
|
+
icon: yi,
|
|
12929
12929
|
size: "sm",
|
|
12930
12930
|
hideLabel: !0,
|
|
12931
12931
|
onClick: e,
|
|
@@ -12942,7 +12942,7 @@ var xv = ({ onClose: e }) => {
|
|
|
12942
12942
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
12943
12943
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
12944
12944
|
onClick: () => n(e),
|
|
12945
|
-
children: /* @__PURE__ */ X(
|
|
12945
|
+
children: /* @__PURE__ */ X(cs, {
|
|
12946
12946
|
href: e.href,
|
|
12947
12947
|
children: e.label
|
|
12948
12948
|
})
|
|
@@ -12954,7 +12954,7 @@ var xv = ({ onClose: e }) => {
|
|
|
12954
12954
|
onClick: () => n(e)
|
|
12955
12955
|
}, `button-${e.label}`))]
|
|
12956
12956
|
}), wv = (e, t) => {
|
|
12957
|
-
let n =
|
|
12957
|
+
let n = es(e);
|
|
12958
12958
|
return {
|
|
12959
12959
|
buttonActions: n.filter((e) => e.type === "button"),
|
|
12960
12960
|
linkActions: n.filter((e) => e.type === "link"),
|
|
@@ -13003,14 +13003,14 @@ var xv = ({ onClose: e }) => {
|
|
|
13003
13003
|
_ ? /* @__PURE__ */ X("div", {
|
|
13004
13004
|
className: "flex-shrink-0",
|
|
13005
13005
|
"aria-hidden": "true",
|
|
13006
|
-
children: /* @__PURE__ */ X(
|
|
13006
|
+
children: /* @__PURE__ */ X(Ko, {
|
|
13007
13007
|
size: "small",
|
|
13008
13008
|
className: "text-f1-foreground-inverse"
|
|
13009
13009
|
})
|
|
13010
13010
|
}) : g && /* @__PURE__ */ X("div", {
|
|
13011
13011
|
className: "flex-shrink-0",
|
|
13012
13012
|
"aria-hidden": "true",
|
|
13013
|
-
children: /* @__PURE__ */ X(
|
|
13013
|
+
children: /* @__PURE__ */ X(Cr, {
|
|
13014
13014
|
type: g,
|
|
13015
13015
|
size: "sm"
|
|
13016
13016
|
})
|
|
@@ -13094,7 +13094,7 @@ var Nv = (e) => e instanceof Element && e.closest("button, a") !== null, Pv = jc
|
|
|
13094
13094
|
}),
|
|
13095
13095
|
i > 0 ? /* @__PURE__ */ X("p", {
|
|
13096
13096
|
className: "text-sm text-f1-foreground-inverse-secondary",
|
|
13097
|
-
children:
|
|
13097
|
+
children: Ye(d.toasts.moreMessages, i)
|
|
13098
13098
|
}) : null
|
|
13099
13099
|
]
|
|
13100
13100
|
}, l),
|
|
@@ -13311,9 +13311,9 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13311
13311
|
mobile: "#f0-overlay-root",
|
|
13312
13312
|
desktop: "#f0-overlay-root"
|
|
13313
13313
|
} }) => {
|
|
13314
|
-
let n = q(null), r = Rc(
|
|
13314
|
+
let n = q(null), r = Rc(Ke.subscribeRenderer, Ke.getActiveRendererId, () => null);
|
|
13315
13315
|
G(function() {
|
|
13316
|
-
let { id: e, release: t } =
|
|
13316
|
+
let { id: e, release: t } = Ke.acquireRenderer();
|
|
13317
13317
|
return n.current = e, t;
|
|
13318
13318
|
}, []);
|
|
13319
13319
|
let i = r !== null && r === n.current, a = R_(), [o, s] = J(null), [c, l] = J(0), u = q(null);
|
|
@@ -13326,10 +13326,10 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13326
13326
|
t?.mobile,
|
|
13327
13327
|
t?.desktop
|
|
13328
13328
|
]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? Bc(/* @__PURE__ */ X(kc, { children: /* @__PURE__ */ X(ty, {
|
|
13329
|
-
messages:
|
|
13329
|
+
messages: Kt,
|
|
13330
13330
|
app: bt
|
|
13331
13331
|
}) }, c), o) : null, e] });
|
|
13332
|
-
}, ry = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1, newButtonStyles: u = !1 }) => /* @__PURE__ */ X(
|
|
13332
|
+
}, ry = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1, newButtonStyles: u = !1 }) => /* @__PURE__ */ X($t, {
|
|
13333
13333
|
reducedMotion: "user",
|
|
13334
13334
|
children: /* @__PURE__ */ X(gn, {
|
|
13335
13335
|
isDev: s,
|
|
@@ -13337,13 +13337,13 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13337
13337
|
renderDataTestIdAttribute: l,
|
|
13338
13338
|
hourCycle: o,
|
|
13339
13339
|
newButtonStyles: u,
|
|
13340
|
-
children: /* @__PURE__ */ X(
|
|
13340
|
+
children: /* @__PURE__ */ X(Ws, {
|
|
13341
13341
|
...a,
|
|
13342
13342
|
children: /* @__PURE__ */ X(_n, {
|
|
13343
13343
|
...i,
|
|
13344
13344
|
children: /* @__PURE__ */ X(Xn, {
|
|
13345
13345
|
...t,
|
|
13346
|
-
children: /* @__PURE__ */ X(to, { children: /* @__PURE__ */ X(
|
|
13346
|
+
children: /* @__PURE__ */ X(to, { children: /* @__PURE__ */ X(Xe, {
|
|
13347
13347
|
initiallyEnabled: n,
|
|
13348
13348
|
children: /* @__PURE__ */ X(po, {
|
|
13349
13349
|
...r,
|
|
@@ -13385,7 +13385,7 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13385
13385
|
newButtonStyles: f,
|
|
13386
13386
|
children: /* @__PURE__ */ X(ay, {
|
|
13387
13387
|
...t,
|
|
13388
|
-
children: /* @__PURE__ */ X(
|
|
13388
|
+
children: /* @__PURE__ */ X(fr, {
|
|
13389
13389
|
handler: l,
|
|
13390
13390
|
children: /* @__PURE__ */ X(ga, { children: /* @__PURE__ */ X(dt, {
|
|
13391
13391
|
...h,
|
|
@@ -13396,7 +13396,7 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13396
13396
|
mobile: "#f0-overlay-root",
|
|
13397
13397
|
desktop: "#f0-overlay-root"
|
|
13398
13398
|
},
|
|
13399
|
-
children: /* @__PURE__ */ X(Dd, { children: /* @__PURE__ */ X(
|
|
13399
|
+
children: /* @__PURE__ */ X(Dd, { children: /* @__PURE__ */ X(Ut, { children: e }) })
|
|
13400
13400
|
}) })
|
|
13401
13401
|
})
|
|
13402
13402
|
}) })
|
|
@@ -13405,4 +13405,4 @@ var Fv = B("group/toast pointer-events-auto absolute left-0 right-0 top-0 flex w
|
|
|
13405
13405
|
})
|
|
13406
13406
|
});
|
|
13407
13407
|
//#endregion
|
|
13408
|
-
export { Qa as AiChatTranslationsProvider, g as AreaChart, Fo as Await, p as BarChart,
|
|
13408
|
+
export { Qa as AiChatTranslationsProvider, g as AreaChart, Fo as Await, p as BarChart, Re as BarChartSkeleton, Ht as CardSelectableContainer, ce as CategoryBarChart, Sr as ChatSpinner, Zs as Chip, Na as CollapsibleGroup, yt as ComboChart, Et as DATA_COLLECTION_URL_PARAMS, ut as DATA_COLLECTION_URL_PARAM_PREFIX, Hl as Dashboard, Ce as DataChartEmptyStateView, mn as DataTestIdWrapper, xt as DndProvider, wr as DropOverlay, $n as EmojiImage, rd as F0Accordion, Je as F0ActionBar, Tr as F0ActionItem, dr as F0AiChat, Ya as F0AiChatHeader, qa as F0AiChatHistory, Kr as F0AiChatProvider, ba as F0AiChatTextArea, eo as F0AiChatUsageLimitsButton, _a as F0AiFileAttachments, fi as F0AiFilePreviewsProvider, $r as F0AiFormRegistryProvider, La as F0AiInsightCard, Xa as F0AiMask, Fa as F0AiMessageSources, Za as F0AiMessagesContainer, Yr as F0AiPong, Ja as F0AiProcessingOverlay, Ga as F0AiProposalCard, Pa as F0AiTableCard, xc as F0Alert, I_ as F0AnalyticsDashboard, vi as F0AudioPlayer, Wi as F0AudioPlayerCard, Aa as F0AuraVoiceAnimation, ko as F0Avatar, Cr as F0AvatarAlert, fo as F0AvatarCompany, Or as F0AvatarDate, go as F0AvatarEmoji, bo as F0AvatarFile, vo as F0AvatarIcon, Mo as F0AvatarList, Eo as F0AvatarModule, Co as F0AvatarPerson, wo as F0AvatarTeam, qu as F0BigNumber, Ch as F0BookAMeetingCard, ho as F0Box, V as F0Button, aa as F0ButtonDropdown, Zo as F0ButtonToggle, pa as F0CanvasCard, Qi as F0CanvasPanel, sr as F0Card, oi as F0CardRow, ma as F0ChatComposer, Es as F0Checkbox, od as F0ChipList, $a as F0ClarifyingPanel, Jt as F0DataChart, je as F0DatePicker, O as F0DatePickerInline, yh as F0DemoCard, ia as F0Dialog, Oe as F0DialogAlikeContext, b as F0DialogAlikeProvider, qo as F0DialogContext, ms as F0DialogProvider, wc as F0DocumentViewer, pd as F0Drawer, fn as F0DurationInput, Ks as F0EventCatcherProvider, xh as F0FAQCard, Wr as F0FileItem, gd as F0FilterPickerContent, d as F0Form, Ad as F0FormField, Ml as F0GridStack, Ia as F0HILActionConfirmation, m as F0Heading, H as F0Icon, cs as F0Link, Bu as F0MatrixChart, Sh as F0ModuleCard, nn as F0NotesTextEditor, ve as F0NotesTextEditorSkeleton, N as F0NumberInput, E as F0NumberInputInline, Jr as F0OneIcon, Oi as F0OneSwitch, Sc as F0PdfViewer, cy as F0Provider, wh as F0QuestionCardMultiStep, Nr as F0RichTextDisplay, F as F0RichTextEditor, Os as F0SearchInput, zs as F0Select, te as F0SelectInline, _f as F0Slider, Nf as F0TableOfContentPopover, Wo as F0TagAlert, hs as F0TagBalance, Jo as F0TagCompany, Fs as F0TagDot, Gs as F0TagList, Xo as F0TagPerson, us as F0TagRaw, ss as F0TagStatus, Ho as F0TagTeam, bc as F0Text, de as F0TextAreaInput, ie as F0TextAreaInputInline, di as F0TextInput, ne as F0TextInputInline, xe as F0TimelineRow, Ec as F0VideoPlayer, $d as F0WizardForm, Ds as F1SearchBox, _ as FILE_TYPES, Zr as FileItem, ga as FormCardValueFormatterProvider, Xt as FunnelChartSkeleton, Oo as GROUP_ID_SYMBOL, jo as GROUP_KEY_SEPARATOR, un as GaugeChartSkeleton, We as HeatmapChartSkeleton, iu as HomeLayout, l as InlineFieldRow, en as InlineFieldRowList, Fi as Input, tu as Layout, o as LineChart, on as LineChartSkeleton, st as MAX_URL_FILTER_VALUES, Hu as MatrixChartSkeleton, c as NotesTextEditor, Qt as NotesTextEditorSkeleton, ge as NumberInput, vs as OneCalendar, ar as OneEllipsis, y as OneEmptyState, Is as OneFilterPicker, gt as PieChart, be as PieChartSkeleton, hr as PongBall, Xe as PrivacyModeProvider, oh as ProductBlankslate, Yt as ProductCard, lh as ProductModal, dh as ProductWidget, re as ProgressBarChart, ae as RadarChart, u as RadarChartSkeleton, Mi as RichTextDisplay, ue as RichTextEditor, tn as ScatterChartSkeleton, nu as StandardLayout, hm as SurveyAllQuestionsLoadingSkeleton, Xm as SurveyAnsweringForm, sm as SurveyFormBuilder, eh as SurveySampleQuestion, gm as SurveySteppedLoadingSkeleton, os as Tag, Ys as TagCounter, v as Textarea, Va as ThreadItem, Wa as ThreadListSkeleton, ny as ToastProvider, ru as TwoColumnLayout, T as UPLOAD_INPUT_ID, P as UpsellRequestResponseDialog, mh as UpsellingAlert, gh as UpsellingBanner, D as UpsellingButton, vh as UpsellingPopover, I as VerticalBarChart, bs as WeekStartDay, Ea as WelcomeScreenCardsRow, St as actionBarStatuses, ya as actionItemStatuses, Ir as adaptDataAdapterToInfiniteScroll, za as aiChatFileFromShowFilesItem, Sa as aiChatFileFromUploadedFile, Ca as aiChatFilesFromMessage, Ta as aiChatMessageText, ha as aiTranslations, ld as alertVariantOptions, Zu as audioPlayerSizes, au as avatarVariants, ze as buildDataCollectionUrlParams, hn as buildTranslations, Xu as buttonDropdownModes, Yu as buttonDropdownSizes, Ju as buttonDropdownVariants, Rl as buttonSizes, pt as buttonToggleColors, Ve as buttonToggleSizes, jt as buttonToggleVariants, Ll as buttonVariants, Yi as cardAlertVariants, $i as cardImageAspectRatios, Bi as cardImageFits, qi as cardImageSizes, ki as cardLayouts, Bs as chartColorTokens, Ka as chatHistoryIndicators, Ra as chatThreadStatuses, Lo as chipVariants, Rf as computeSectionEndIds, Tc as configurePdfWorker, Ha as contentTypes, qt as createAtlaskitDriver, Vo as createDataSourceDefinition, bd as createF0FormDefinitionTester, yd as createF0FormTester, Fl as createPageLayoutBlock, Il as createPageLayoutBlockGroup, xa as createPersonMentionSource, ud as dataCollectionLocalStorageHandler, sd as datePickerInlineDismissReasons, cd as datepickerSizes, lo as defaultTranslations, ni as defineAvailableForm, _d as describeFormSchema, ee as dialog, ee as dialogs, It as drawers, Si as durationInputSizes, ii as durationUnits, ur as escapeUserText, se as evaluateRenderIf, vn as experimental, gr as f0FileItemSizes, Ui as f0FormField, Gi as fieldsToSeconds, Pf as flattenElements, sa as formatPlaybackTime, of as forms, h as generateAnchorId, is as getAnimationVariants, yr as getDataCollectionStorageKey, Yo as getDataSourcePaginationType, rr as getEmojiLabel, Zi as getF0Config, Us as getGranularityDefinition, Ms as getGranularityDefinitions, Js as getGranularitySimpleDefinition, vt as getSchemaDefinition, Ls as granularityDefinitions, pi as hasF0Config, oo as iconSets, Ii as inferFieldType, Lf as injectSectionEnds, Do as isInfiniteScrollPagination, Ao as isPageBasedPagination, na as isZodType, Qu as linkVariants, va as markdownRenderers, br as mergeDataCollectionFilters, uo as modules, ka as oneIconSizes, To as paginationTotals, Zt as parseDataCollectionUrlParams, Cc as pdfScales, zt as predefinedPresets, ws as rangeSeparator, Dr as readDataCollectionStorage, If as reconstructElements, zr as resolveDataCollectionFilters, ks as resolveGranularityDefinition, kt as resolveItemNeighbors, et as resolveWindowNeighbors, zi as secondsToFields, Ei as secondsToVisibleFields, sf as selectInlineDismissReasons, Ae as selectSizes, Pe as selectVariants, dn as setDataCollectionUrlParams, cf as sliderTooltipModes, $m as surveyDraftSaveTriggers, Ge as syncDataCollectionUrlParams, xf as tagDotColors, yf as timelineRowApproverStatuses, vf as timelineRowStatuses, bf as timelineRowTagVariants, Bt as toasts, bi as unwrapZodSchema, Ua as usageLimitsPopoverSides, _r as useAiChat, Da as useAiChatTranslations, ci as useAudioPlayer, Ma as useCanvasEntity, ja as useChatHistory, yo as useData, Ps as useDataSource, n as useDataSourceItemNavigation, ua as useDerivedTranscription, At as useDndEvents, Vt as useDraggable, qe as useDroppableList, tr as useEmojiConfetti, Lr as useF0AiFormRegistry, fs as useF0Dialog, j as useF0DialogAlikeContext, ye as useF0Form, Ot as useF0FormDefinition, wa as useFormCardValueFormatter, sy as useFormComponent, ls as useGroups, no as useIconSet, L_ as useIsDesktop, R_ as useIsMobile, Gt as useItemNeighbors, rt as usePrivacyMode, er as useReducedMotion, a as useSchemaDefinition, Uo as useSelectable, Ba as useSetFormCardValueFormatter, Oa as useToolCallId, ro as useXRay, L as withDataTestId, sn as writeDataCollectionStorage };
|