@factorialco/f0-react 11.10.0 → 11.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPostComposerDialog-s4prfEkC.js → ChatPostComposerDialog-BqAJZqD9.js} +4 -4
- package/dist/{CoachmarkProvider-DxDuinVA.js → CoachmarkProvider-DCHKWnIq.js} +2044 -2044
- package/dist/{DocumentToolbar-BuctnVHN.js → DocumentToolbar-BU9PTMlI.js} +5 -5
- package/dist/{DocxViewer-CAGBzliC.js → DocxViewer-8FiXi45s.js} +2 -2
- package/dist/{F0AiProcessingOverlay-Dl_56dL9.js → F0AiProcessingOverlay-L6LooNzN.js} +511 -511
- package/dist/{F0CanvasPanel-C8MuYy_8.js → F0CanvasPanel-D--qira6.js} +2641 -2623
- package/dist/{F0DocumentViewer-C9gCxjxk.js → F0DocumentViewer-C7Wv7NTY.js} +35 -35
- package/dist/F0DocumentViewer-DACK-OvI.js +3 -0
- package/dist/{F0Map-D4esyFFE.js → F0Map-DbbjpLjI.js} +100 -100
- package/dist/{F0Select-dBwkgMBc.js → F0Select-CY_CcXQ2.js} +1030 -1030
- package/dist/{F0Text-D0_mpu2P.js → F0Text-MLpPbWjh.js} +12 -12
- package/dist/{F0VideoPlayer-CUUQmvVm.js → F0VideoPlayer-BFo3wQQU.js} +38 -38
- package/dist/F0VideoPlayer-D7RCk_24.js +1 -0
- package/dist/{Map-DFCc5qR0.js → Map-BfheF0i_.js} +17 -17
- package/dist/{PdfThumbnail-D09QDkNP.js → PdfThumbnail-B8kgKi-5.js} +1 -1
- package/dist/{SheetViewer-Cvd2xwE5.js → SheetViewer-Dy1cNTbd.js} +4 -4
- package/dist/{TextViewer-Bk0Xz1nv.js → TextViewer-DSec8GUk.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +1 -1
- package/dist/{dist-r1yM6TIs.js → dist-BB2MlAD_.js} +1 -1
- package/dist/experimental.d.ts +85 -4
- package/dist/experimental.js +5370 -5027
- package/dist/{exports-DsGJH4CD.d.ts → exports-CJtG_boZ.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +326 -326
- package/dist/{i18n-provider-defaults-D7TVD4xk.js → i18n-provider-defaults-DD76Cjbd.js} +5 -0
- package/dist/{i18n-provider-defaults-14y_lreJ.d.ts → i18n-provider-defaults-iAsTLZ8q.d.ts} +6 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CL4pclEl.d.ts → index-DGmIutN2.d.ts} +1 -1
- package/dist/{maplibre-B5inXAW8.js → maplibre-Dg0SWOg-.js} +1 -1
- package/dist/{pdfWorker-5t9rytw2.js → pdfWorker-CK_VPj2f.js} +1 -1
- package/dist/{popover-DquDnBKd.js → popover-C8rmkngm.js} +2 -2
- package/dist/{posts-DgzHTT_B.js → posts-DGtDUrKT.js} +2 -0
- package/dist/styles.css +1 -1
- package/dist/{types-Di2cYBLz.d.ts → types-BkW50Whp.d.ts} +2 -2
- package/dist/{useData-BEZesy_8.js → useData-DqN-h3iG.js} +287 -287
- package/package.json +1 -1
- package/dist/F0DocumentViewer-CUkiuREP.js +0 -3
- package/dist/F0VideoPlayer-rLZ5qvuq.js +0 -1
package/dist/f0.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { $n as t, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as L, Pt as ne, Qn as re, Qr as ie, Qt as ae, Rn as oe, Rt as se, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-
|
|
3
|
-
import {
|
|
2
|
+
import { $n as t, A as n, An as r, Bn as i, Br as a, C as o, Cn as s, Cr as c, D as l, Dn as u, E as d, En as f, Er as p, Fn as m, Ft as h, Gn as g, Gr as _, Gt as v, Hn as y, Hr as b, Ht as x, In as S, It as C, Jn as w, Jt as T, Kn as E, Kr as D, Kt as O, Ln as k, Lr as A, Lt as j, M, Mn as N, N as P, Nn as F, O as I, On as ee, P as te, Pn as L, Pt as ne, Qn as re, Qr as ie, Qt as ae, Rn as oe, Rt as se, S as ce, Sn as le, Sr as ue, St as de, T as fe, Tn as pe, Tr as me, Un as he, Ut as ge, Vn as _e, Vr as ve, Vt as ye, Wr as be, Wt as xe, X as Se, Xn as Ce, Xr as we, Yn as Te, Yr as Ee, Yt as De, Z as Oe, Zn as ke, Zr as Ae, Zt as je, _ as Me, _n as Ne, _r as Pe, _t as Fe, ar as Ie, b as Le, bn as Re, br as ze, bt as Be, c as Ve, cn as He, cr as Ue, d as We, di as Ge, dn as Ke, dr as qe, en as Je, er as Ye, f as Xe, fi as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hi as at, hn as ot, hr as st, ht as ct, i as lt, ii as ut, ir as dt, j as ft, jn as pt, k as mt, kn as ht, kt as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, ni as St, nn as Ct, nr as wt, on as Tt, or as Et, ot as Dt, p as Ot, pn as kt, pr as At, qn as jt, qr as Mt, qt as Nt, ri as Pt, rn as Ft, rr as It, s as Lt, sn as Rt, sr as zt, t as Bt, tn as Vt, tr as Ht, u as Ut, ui as Wt, un as Gt, ur as Kt, ut as qt, v as Jt, vn as Yt, vr as Xt, vt as Zt, w as Qt, wn as $t, wr as en, x as tn, xn as nn, xr as rn, xt as an, y as on, yn as sn, yr as cn, yt as ln, zn as un, zr as dn, zt as fn } from "./CoachmarkProvider-DCHKWnIq.js";
|
|
3
|
+
import { $t as pn, A as mn, At as hn, B as gn, Bt as _n, F as vn, Ft as yn, M as bn, Mt as xn, N as Sn, Nt as Cn, P as wn, Pt as Tn, Qt as En, R as Dn, St as On, U as kn, V as An, Wt as jn, Xt as Mn, Zt as Nn, a as Pn, an as Fn, at as In, b as R, bt as Ln, cn as Rn, cr as z, dn as zn, dt as Bn, er as Vn, fn as Hn, ft as Un, gt as Wn, i as Gn, in as Kn, j as qn, ln as Jn, lr as Yn, mn as Xn, on as B, or as Zn, pt as Qn, sn as V, sr as $n, t as er, un as tr, vn as nr, vt as rr, xt as ir, yn as ar, yt as or, z as sr, zt as cr } from "./popover-C8rmkngm.js";
|
|
4
4
|
import { A as lr, C as ur, D as dr, F as fr, I as pr, L as H, M as mr, N as hr, O as gr, P as _r, R as vr, S as yr, _ as br, b as xr, c as Sr, f as Cr, g as wr, h as Tr, j as Er, k as Dr, l as Or, m as kr, p as Ar, v as jr, w as Mr, x as Nr, y as Pr } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { n as Fr, r as Ir, t as Lr } from "./F0Text-
|
|
6
|
-
import { A as Rr, C as zr, D as Br, E as Vr, F as Hr, I as Ur, L as Wr, M as Gr, N as Kr, O as qr, P as Jr, R as Yr, S as Xr, T as Zr, _ as Qr, a as $r, b as ei, c as ti, d as ni, f as ri, g as ii, h as ai, i as oi, j as si, k as ci, l as li, m as ui, n as di, o as fi, p as pi, r as mi, s as hi, t as gi, u as _i, v as vi, w as yi, x as bi, y as xi, z as Si } from "./F0AiProcessingOverlay-
|
|
7
|
-
import { $n as Ci, $o as wi, $s as Ti, A as Ei, At as Di, Ba as Oi, Bn as ki, Br as Ai, Bs as ji, Cr as Mi, D as Ni, Ds as Pi, E as Fi, Fa as Ii, Fr as Li, Gn as Ri, Gr as zi, Gs as Bi, Hn as Vi, Hs as Hi, Ia as Ui, Ir as Wi, It as Gi, Jn as Ki, Js as qi, Jt as Ji, Kn as Yi, Kr as Xi, Ks as Zi, Kt as Qi, Lo as $i, Lt as ea, M as ta, Ma as na, Mr as ra, Mt as ia, N as aa, Nr as oa, Ns as sa, Nt as ca, O as la, Ot as ua, Pa as da, Pt as fa, Qt as pa, Rr as ma, Rt as ha, T as ga, Tr as _a, Un as va, Uo as ya, Ur as ba, Us as xa, V as Sa, Va as Ca, Vn as wa, Vs as Ta, Wn as Ea, Wr as Da, Ws as Oa, Xa as ka, Xo as Aa, Xt as ja, Yn as Ma, Yr as Na, Yt as Pa, Za as Fa, Zt as Ia, _a as La, ac as Ra, br as za, cc as Ba, er as Va, es as Ha, fo as Ua, fs as Wa, hr as Ga, io as Ka, ir as qa, j as Ja, jr as Ya, jt as Xa, k as Za, ka as Qa, ks as $a, mr as eo, n as to, nr as no, ns as ro, oo as io, os as ao, po as oo, qt as so, rr as co, sa as lo, ss as uo, t as fo, tr as po, tt as mo, uo as ho, va as go, xo as _o, xr as vo, yr as yo, z as bo, zr as xo } from "./F0CanvasPanel-
|
|
8
|
-
import { t as So } from "./i18n-provider-defaults-
|
|
9
|
-
import { C as Co, D as wo, F as To, I as Eo, N as Do, O as Oo, S as ko, X as Ao, Y as jo, _ as Mo, a as No, d as Po, f as Fo, i as Io, k as Lo, l as Ro, n as zo, r as Bo, t as Vo, x as Ho, y as Uo } from "./useData-
|
|
10
|
-
import { $ as Wo, B as Go, Bt as Ko, Ct as qo, Dn as Jo, Dr as Yo, Dt as Xo, Er as Zo, Fn as Qo, Ft as $o, G as es, H as ts, It as ns, J as rs, K as is, L as as, Ln as os, Lt as ss, Mr as cs, Mt as ls, Nr as us, Nt as ds, On as fs, Or as ps, Ot as ms, Pt as hs, Rt as gs, U as _s, V as vs, W as ys, X as bs, Z as xs, _ as Ss, _t as Cs, a as ws, an as Ts, c as Es, ct as Ds, dr as Os, et as ks, fr as As, g as js, gt as Ms, h as Ns, ht as Ps, i as Fs, jr as Is, jt as Ls, kn as Rs, kr as zs, kt as Bs, l as Vs, lr as Hs, m as Us, mr as Ws, mt as Gs, nt as Ks, o as qs, p as Js, pt as Ys, q as Xs, r as Zs, rn as Qs, s as $s, st as ec, t as tc, tt as nc, u as rc, v as ic, vr as ac, w as oc, wt as sc, xt as cc, y as lc, yt as uc, z as dc } from "./F0Select-
|
|
5
|
+
import { n as Fr, r as Ir, t as Lr } from "./F0Text-MLpPbWjh.js";
|
|
6
|
+
import { A as Rr, C as zr, D as Br, E as Vr, F as Hr, I as Ur, L as Wr, M as Gr, N as Kr, O as qr, P as Jr, R as Yr, S as Xr, T as Zr, _ as Qr, a as $r, b as ei, c as ti, d as ni, f as ri, g as ii, h as ai, i as oi, j as si, k as ci, l as li, m as ui, n as di, o as fi, p as pi, r as mi, s as hi, t as gi, u as _i, v as vi, w as yi, x as bi, y as xi, z as Si } from "./F0AiProcessingOverlay-L6LooNzN.js";
|
|
7
|
+
import { $n as Ci, $o as wi, $s as Ti, A as Ei, At as Di, Ba as Oi, Bn as ki, Br as Ai, Bs as ji, Cr as Mi, D as Ni, Ds as Pi, E as Fi, Fa as Ii, Fr as Li, Gn as Ri, Gr as zi, Gs as Bi, Hn as Vi, Hs as Hi, Ia as Ui, Ir as Wi, It as Gi, Jn as Ki, Js as qi, Jt as Ji, Kn as Yi, Kr as Xi, Ks as Zi, Kt as Qi, Lo as $i, Lt as ea, M as ta, Ma as na, Mr as ra, Mt as ia, N as aa, Nr as oa, Ns as sa, Nt as ca, O as la, Ot as ua, Pa as da, Pt as fa, Qt as pa, Rr as ma, Rt as ha, T as ga, Tr as _a, Un as va, Uo as ya, Ur as ba, Us as xa, V as Sa, Va as Ca, Vn as wa, Vs as Ta, Wn as Ea, Wr as Da, Ws as Oa, Xa as ka, Xo as Aa, Xt as ja, Yn as Ma, Yr as Na, Yt as Pa, Za as Fa, Zt as Ia, _a as La, ac as Ra, br as za, cc as Ba, er as Va, es as Ha, fo as Ua, fs as Wa, hr as Ga, io as Ka, ir as qa, j as Ja, jr as Ya, jt as Xa, k as Za, ka as Qa, ks as $a, mr as eo, n as to, nr as no, ns as ro, oo as io, os as ao, po as oo, qt as so, rr as co, sa as lo, ss as uo, t as fo, tr as po, tt as mo, uo as ho, va as go, xo as _o, xr as vo, yr as yo, z as bo, zr as xo } from "./F0CanvasPanel-D--qira6.js";
|
|
8
|
+
import { t as So } from "./i18n-provider-defaults-DD76Cjbd.js";
|
|
9
|
+
import { C as Co, D as wo, F as To, I as Eo, N as Do, O as Oo, S as ko, X as Ao, Y as jo, _ as Mo, a as No, d as Po, f as Fo, i as Io, k as Lo, l as Ro, n as zo, r as Bo, t as Vo, x as Ho, y as Uo } from "./useData-DqN-h3iG.js";
|
|
10
|
+
import { $ as Wo, B as Go, Bt as Ko, Ct as qo, Dn as Jo, Dr as Yo, Dt as Xo, Er as Zo, Fn as Qo, Ft as $o, G as es, H as ts, It as ns, J as rs, K as is, L as as, Ln as os, Lt as ss, Mr as cs, Mt as ls, Nr as us, Nt as ds, On as fs, Or as ps, Ot as ms, Pt as hs, Rt as gs, U as _s, V as vs, W as ys, X as bs, Z as xs, _ as Ss, _t as Cs, a as ws, an as Ts, c as Es, ct as Ds, dr as Os, et as ks, fr as As, g as js, gt as Ms, h as Ns, ht as Ps, i as Fs, jr as Is, jt as Ls, kn as Rs, kr as zs, kt as Bs, l as Vs, lr as Hs, m as Us, mr as Ws, mt as Gs, nt as Ks, o as qs, p as Js, pt as Ys, q as Xs, r as Zs, rn as Qs, s as $s, st as ec, t as tc, tt as nc, u as rc, v as ic, vr as ac, w as oc, wt as sc, xt as cc, y as lc, yt as uc, z as dc } from "./F0Select-CY_CcXQ2.js";
|
|
11
11
|
import { t as fc } from "./Check-DAp9gCRh.js";
|
|
12
|
-
import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-
|
|
13
|
-
import { t as vc } from "./pdfWorker-
|
|
14
|
-
import { n as yc, t as bc } from "./F0DocumentViewer-
|
|
12
|
+
import { a as pc, i as mc, n as hc, r as gc, t as _c } from "./F0VideoPlayer-BFo3wQQU.js";
|
|
13
|
+
import { t as vc } from "./pdfWorker-CK_VPj2f.js";
|
|
14
|
+
import { n as yc, t as bc } from "./F0DocumentViewer-C7Wv7NTY.js";
|
|
15
15
|
import * as U from "react";
|
|
16
16
|
import xc, { Children as Sc, Fragment as Cc, createContext as wc, forwardRef as Tc, isValidElement as Ec, memo as Dc, useCallback as W, useContext as Oc, useEffect as G, useId as kc, useImperativeHandle as Ac, useLayoutEffect as jc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Mc } from "react";
|
|
17
17
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -66,7 +66,7 @@ var Ic = {
|
|
|
66
66
|
})]
|
|
67
67
|
})
|
|
68
68
|
});
|
|
69
|
-
}), Rc =
|
|
69
|
+
}), Rc = nr({
|
|
70
70
|
base: "relative flex min-h-full w-full flex-1 flex-col gap-4 place-self-center overflow-y-auto px-page py-5",
|
|
71
71
|
variants: { variant: { narrow: "max-w-screen-lg" } }
|
|
72
72
|
}), zc = xc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(Ca, {
|
|
@@ -82,7 +82,7 @@ var Ic = {
|
|
|
82
82
|
})
|
|
83
83
|
}));
|
|
84
84
|
zc.displayName = "StandardLayout";
|
|
85
|
-
var Bc =
|
|
85
|
+
var Bc = z(Jn({
|
|
86
86
|
name: "StandardLayout",
|
|
87
87
|
type: "layout"
|
|
88
88
|
}, zc)), Vc = Tc(function({ children: e, sideContent: t, mainColumnPosition: n = "left", sticky: r = !1, responsiveStackOrder: i = "side" }, a) {
|
|
@@ -101,7 +101,7 @@ var Bc = R(Zn({
|
|
|
101
101
|
})]
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
|
-
}), Hc =
|
|
104
|
+
}), Hc = z(Jn({
|
|
105
105
|
name: "TwoColumnLayout",
|
|
106
106
|
type: "layout"
|
|
107
107
|
}, Vc)), Uc = ({ children: e, className: t }) => /* @__PURE__ */ X("aside", {
|
|
@@ -254,7 +254,7 @@ function Zc({ children: e, options: t, onResizeStop: n, onChange: r, widgets: i,
|
|
|
254
254
|
return e.forEach((e) => {
|
|
255
255
|
if (n.get(e)) {
|
|
256
256
|
let t = s.el.querySelector(`[gs-id="${e}"] .grid-stack-item-content`), r = "";
|
|
257
|
-
t && (r =
|
|
257
|
+
t && (r = hn.sanitize(Xc(t))), n.set(e, /* @__PURE__ */ X(ar.div, {
|
|
258
258
|
className: "h-full w-full",
|
|
259
259
|
initial: {
|
|
260
260
|
opacity: 1,
|
|
@@ -2718,8 +2718,8 @@ var El = ({ options: e, widgets: t, onChange: n, className: r, static: i, forceP
|
|
|
2718
2718
|
});
|
|
2719
2719
|
};
|
|
2720
2720
|
El.displayName = "F0GridStack";
|
|
2721
|
-
var Dl =
|
|
2722
|
-
let o = W((e, t, n) => /* @__PURE__ */ X(
|
|
2721
|
+
var Dl = z(Zn("F0GridStack", El)), Ol = (e, t, n) => /* @__PURE__ */ X("div", { children: e }), kl = ({ widgets: e = [], editMode: t = !1, onChange: n = () => {}, WidgetWrapper: r = Ol, main: i = !1, deps: a }) => {
|
|
2722
|
+
let o = W((e, t, n) => /* @__PURE__ */ X(ar.div, {
|
|
2723
2723
|
className: "h-full w-full",
|
|
2724
2724
|
initial: {
|
|
2725
2725
|
opacity: 0,
|
|
@@ -2902,7 +2902,7 @@ var Al = (e, t) => {
|
|
|
2902
2902
|
}, jl = (e, t) => {
|
|
2903
2903
|
let n = t;
|
|
2904
2904
|
return n.displayName = e, n.__isPageLayoutGroup = !0, n;
|
|
2905
|
-
}, Ml =
|
|
2905
|
+
}, Ml = Mn.filter((e) => e !== "ai"), Nl = En, Pl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(ie, {
|
|
2906
2906
|
header: { title: t },
|
|
2907
2907
|
draggable: n,
|
|
2908
2908
|
actions: r,
|
|
@@ -2924,7 +2924,7 @@ var Al = (e, t) => {
|
|
|
2924
2924
|
})
|
|
2925
2925
|
});
|
|
2926
2926
|
Fl.displayName = "Dashboard";
|
|
2927
|
-
var Il = jl("Dashboard", Fl), Ll =
|
|
2927
|
+
var Il = jl("Dashboard", Fl), Ll = z(Zn("Dashboard", Il)), Rl = nr({
|
|
2928
2928
|
base: "flex w-full flex-col p-4",
|
|
2929
2929
|
variants: { variant: {
|
|
2930
2930
|
default: "",
|
|
@@ -3077,13 +3077,13 @@ var Yl = Tc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3077
3077
|
})
|
|
3078
3078
|
});
|
|
3079
3079
|
}), Xl = {
|
|
3080
|
-
Page:
|
|
3081
|
-
Block:
|
|
3082
|
-
BlockContent:
|
|
3083
|
-
Group:
|
|
3084
|
-
GroupGrid:
|
|
3085
|
-
GroupMasonry:
|
|
3086
|
-
}, Zl = Bc, Ql = Hc, $l =
|
|
3080
|
+
Page: z(Zn("Page", Yl)),
|
|
3081
|
+
Block: z(Zn("Block", Vl)),
|
|
3082
|
+
BlockContent: z(Zn("BlockContent", Hl)),
|
|
3083
|
+
Group: z(Zn("Group", Kl)),
|
|
3084
|
+
GroupGrid: z(Zn("GroupGrid", kl)),
|
|
3085
|
+
GroupMasonry: z(Zn("GroupMasonry", Jl))
|
|
3086
|
+
}, Zl = Bc, Ql = Hc, $l = z(Jn({
|
|
3087
3087
|
name: "HomeLayout",
|
|
3088
3088
|
type: "layout"
|
|
3089
3089
|
}, Lc)), eu = [
|
|
@@ -3123,17 +3123,17 @@ var Yl = Tc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3123
3123
|
});
|
|
3124
3124
|
}, ru = () => /* @__PURE__ */ Z("div", {
|
|
3125
3125
|
className: "relative flex h-full w-full cursor-progress flex-col gap-2",
|
|
3126
|
-
children: [/* @__PURE__ */ X(
|
|
3126
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-3 w-full max-w-16 rounded-md" }), /* @__PURE__ */ Z("div", {
|
|
3127
3127
|
className: "flex flex-row flex-wrap items-end gap-2",
|
|
3128
|
-
children: [/* @__PURE__ */ X(
|
|
3128
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-8 w-full max-w-36 rounded-sm" }), /* @__PURE__ */ X(Hn, { className: "h-6 w-full max-w-18 rounded-sm" })]
|
|
3129
3129
|
})]
|
|
3130
3130
|
});
|
|
3131
3131
|
nu.displayName = "F0BigNumber";
|
|
3132
|
-
var iu = Qa(nu, ru), au =
|
|
3132
|
+
var iu = Qa(nu, ru), au = z(iu), ou = [
|
|
3133
3133
|
"default",
|
|
3134
3134
|
"outline",
|
|
3135
3135
|
"neutral"
|
|
3136
|
-
], su =
|
|
3136
|
+
], su = En, cu = ["split", "dropdown"], lu = ["sm", "md"], uu = (e) => Object.fromEntries(Object.entries(e).filter(([e]) => e.startsWith("data-"))), du = (e) => {
|
|
3137
3137
|
(!Number.isFinite(e) || e < 0) && (e = 0);
|
|
3138
3138
|
let t = Math.floor(e), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = (e) => String(e).padStart(2, "0");
|
|
3139
3139
|
return n > 0 ? `${n}:${a(r)}:${a(i)}` : `${r}:${a(i)}`;
|
|
@@ -3235,8 +3235,8 @@ var iu = Qa(nu, ru), au = R(iu), ou = [
|
|
|
3235
3235
|
"ArrowUp",
|
|
3236
3236
|
"ArrowLeft"
|
|
3237
3237
|
]
|
|
3238
|
-
}, Su = "Slider", [Cu, wu, Tu] =
|
|
3239
|
-
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = () => {}, onValueCommit: f = () => {}, inverted: p = !1, form: m, ...h } = e, g = U.useRef(/* @__PURE__ */ new Set()), _ = U.useRef(0), v = o === "horizontal" ? Nu : Pu, [y = [], b] =
|
|
3238
|
+
}, Su = "Slider", [Cu, wu, Tu] = Un(Su), [Eu, Du] = rr(Su, [Tu]), [Ou, ku] = Eu(Su), Au = U.forwardRef((e, t) => {
|
|
3239
|
+
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = "horizontal", disabled: s = !1, minStepsBetweenThumbs: c = 0, defaultValue: l = [r], value: u, onValueChange: d = () => {}, onValueCommit: f = () => {}, inverted: p = !1, form: m, ...h } = e, g = U.useRef(/* @__PURE__ */ new Set()), _ = U.useRef(0), v = o === "horizontal" ? Nu : Pu, [y = [], b] = Wn({
|
|
3240
3240
|
prop: u,
|
|
3241
3241
|
defaultProp: l,
|
|
3242
3242
|
onChange: (e) => {
|
|
@@ -3285,7 +3285,7 @@ var iu = Qa(nu, ru), au = R(iu), ou = [
|
|
|
3285
3285
|
"data-disabled": s ? "" : void 0,
|
|
3286
3286
|
...h,
|
|
3287
3287
|
ref: t,
|
|
3288
|
-
onPointerDown:
|
|
3288
|
+
onPointerDown: or(h.onPointerDown, () => {
|
|
3289
3289
|
s || (x.current = y);
|
|
3290
3290
|
}),
|
|
3291
3291
|
min: r,
|
|
@@ -3314,7 +3314,7 @@ var [ju, Mu] = Eu(Su, {
|
|
|
3314
3314
|
size: "width",
|
|
3315
3315
|
direction: 1
|
|
3316
3316
|
}), Nu = U.forwardRef((e, t) => {
|
|
3317
|
-
let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, [d, f] = U.useState(null), p =
|
|
3317
|
+
let { min: n, max: r, dir: i, inverted: a, onSlideStart: o, onSlideMove: s, onSlideEnd: c, onStepKeyDown: l, ...u } = e, [d, f] = U.useState(null), p = Ln(t, (e) => f(e)), m = U.useRef(void 0), h = Bn(i), g = h === "ltr", _ = g && !a || !g && a;
|
|
3318
3318
|
function v(e) {
|
|
3319
3319
|
let t = m.current || d.getBoundingClientRect(), i = Qu([0, t.width], _ ? [n, r] : [r, n]);
|
|
3320
3320
|
return m.current = t, i(e - t.left);
|
|
@@ -3355,7 +3355,7 @@ var [ju, Mu] = Eu(Su, {
|
|
|
3355
3355
|
})
|
|
3356
3356
|
});
|
|
3357
3357
|
}), Pu = U.forwardRef((e, t) => {
|
|
3358
|
-
let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: c, ...l } = e, u = U.useRef(null), d =
|
|
3358
|
+
let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: c, ...l } = e, u = U.useRef(null), d = Ln(t, u), f = U.useRef(void 0), p = !i;
|
|
3359
3359
|
function m(e) {
|
|
3360
3360
|
let t = f.current || u.current.getBoundingClientRect(), i = Qu([0, t.height], p ? [r, n] : [n, r]);
|
|
3361
3361
|
return f.current = t, i(e - t.top);
|
|
@@ -3396,27 +3396,27 @@ var [ju, Mu] = Eu(Su, {
|
|
|
3396
3396
|
});
|
|
3397
3397
|
}), Fu = U.forwardRef((e, t) => {
|
|
3398
3398
|
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = ku(Su, n);
|
|
3399
|
-
return /* @__PURE__ */ X(
|
|
3399
|
+
return /* @__PURE__ */ X(Qn.span, {
|
|
3400
3400
|
...l,
|
|
3401
3401
|
ref: t,
|
|
3402
|
-
onKeyDown:
|
|
3402
|
+
onKeyDown: or(e.onKeyDown, (e) => {
|
|
3403
3403
|
e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (s(e), e.preventDefault()) : yu.concat(bu).includes(e.key) && (c(e), e.preventDefault());
|
|
3404
3404
|
}),
|
|
3405
|
-
onPointerDown:
|
|
3405
|
+
onPointerDown: or(e.onPointerDown, (e) => {
|
|
3406
3406
|
let t = e.target;
|
|
3407
3407
|
t.setPointerCapture(e.pointerId), e.preventDefault(), u.thumbs.has(t) ? t.focus() : r(e);
|
|
3408
3408
|
}),
|
|
3409
|
-
onPointerMove:
|
|
3409
|
+
onPointerMove: or(e.onPointerMove, (e) => {
|
|
3410
3410
|
e.target.hasPointerCapture(e.pointerId) && i(e);
|
|
3411
3411
|
}),
|
|
3412
|
-
onPointerUp:
|
|
3412
|
+
onPointerUp: or(e.onPointerUp, (e) => {
|
|
3413
3413
|
let t = e.target;
|
|
3414
3414
|
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
|
|
3415
3415
|
})
|
|
3416
3416
|
});
|
|
3417
3417
|
}), Iu = "SliderTrack", Lu = U.forwardRef((e, t) => {
|
|
3418
3418
|
let { __scopeSlider: n, ...r } = e, i = ku(Iu, n);
|
|
3419
|
-
return /* @__PURE__ */ X(
|
|
3419
|
+
return /* @__PURE__ */ X(Qn.span, {
|
|
3420
3420
|
"data-disabled": i.disabled ? "" : void 0,
|
|
3421
3421
|
"data-orientation": i.orientation,
|
|
3422
3422
|
...r,
|
|
@@ -3425,8 +3425,8 @@ var [ju, Mu] = Eu(Su, {
|
|
|
3425
3425
|
});
|
|
3426
3426
|
Lu.displayName = Iu;
|
|
3427
3427
|
var Ru = "SliderRange", zu = U.forwardRef((e, t) => {
|
|
3428
|
-
let { __scopeSlider: n, ...r } = e, i = ku(Ru, n), a = Mu(Ru, n), o = U.useRef(null), s =
|
|
3429
|
-
return /* @__PURE__ */ X(
|
|
3428
|
+
let { __scopeSlider: n, ...r } = e, i = ku(Ru, n), a = Mu(Ru, n), o = U.useRef(null), s = Ln(t, o), c = i.values.length, l = i.values.map((e) => Ku(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
3429
|
+
return /* @__PURE__ */ X(Qn.span, {
|
|
3430
3430
|
"data-orientation": i.orientation,
|
|
3431
3431
|
"data-disabled": i.disabled ? "" : void 0,
|
|
3432
3432
|
...r,
|
|
@@ -3440,14 +3440,14 @@ var Ru = "SliderRange", zu = U.forwardRef((e, t) => {
|
|
|
3440
3440
|
});
|
|
3441
3441
|
zu.displayName = Ru;
|
|
3442
3442
|
var Bu = "SliderThumb", Vu = U.forwardRef((e, t) => {
|
|
3443
|
-
let n = wu(e.__scopeSlider), [r, i] = U.useState(null), a =
|
|
3443
|
+
let n = wu(e.__scopeSlider), [r, i] = U.useState(null), a = Ln(t, (e) => i(e)), o = U.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
|
|
3444
3444
|
return /* @__PURE__ */ X(Hu, {
|
|
3445
3445
|
...e,
|
|
3446
3446
|
ref: a,
|
|
3447
3447
|
index: o
|
|
3448
3448
|
});
|
|
3449
3449
|
}), Hu = U.forwardRef((e, t) => {
|
|
3450
|
-
let { __scopeSlider: n, index: r, name: i, ...a } = e, o = ku(Bu, n), s = Mu(Bu, n), [c, l] = U.useState(null), u =
|
|
3450
|
+
let { __scopeSlider: n, index: r, name: i, ...a } = e, o = ku(Bu, n), s = Mu(Bu, n), [c, l] = U.useState(null), u = Ln(t, (e) => l(e)), d = !c || o.form || !!c.closest("form"), f = In(c), p = o.values[r], m = p === void 0 ? 0 : Ku(p, o.min, o.max), h = qu(r, o.values.length), g = f?.[s.size], _ = g ? Yu(g, m, s.direction) : 0;
|
|
3451
3451
|
return U.useEffect(() => {
|
|
3452
3452
|
if (c) return o.thumbs.add(c), () => {
|
|
3453
3453
|
o.thumbs.delete(c);
|
|
@@ -3460,7 +3460,7 @@ var Bu = "SliderThumb", Vu = U.forwardRef((e, t) => {
|
|
|
3460
3460
|
},
|
|
3461
3461
|
children: [/* @__PURE__ */ X(Cu.ItemSlot, {
|
|
3462
3462
|
scope: e.__scopeSlider,
|
|
3463
|
-
children: /* @__PURE__ */ X(
|
|
3463
|
+
children: /* @__PURE__ */ X(Qn.span, {
|
|
3464
3464
|
role: "slider",
|
|
3465
3465
|
"aria-label": e["aria-label"] || h,
|
|
3466
3466
|
"aria-valuemin": o.min,
|
|
@@ -3473,7 +3473,7 @@ var Bu = "SliderThumb", Vu = U.forwardRef((e, t) => {
|
|
|
3473
3473
|
...a,
|
|
3474
3474
|
ref: u,
|
|
3475
3475
|
style: p === void 0 ? { display: "none" } : e.style,
|
|
3476
|
-
onFocus:
|
|
3476
|
+
onFocus: or(e.onFocus, () => {
|
|
3477
3477
|
o.valueIndexToChangeRef.current = r;
|
|
3478
3478
|
})
|
|
3479
3479
|
})
|
|
@@ -3486,7 +3486,7 @@ var Bu = "SliderThumb", Vu = U.forwardRef((e, t) => {
|
|
|
3486
3486
|
});
|
|
3487
3487
|
Vu.displayName = Bu;
|
|
3488
3488
|
var Uu = "RadioBubbleInput", Wu = U.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
3489
|
-
let i = U.useRef(null), a =
|
|
3489
|
+
let i = U.useRef(null), a = Ln(i, r), o = Qo(t);
|
|
3490
3490
|
return U.useEffect(() => {
|
|
3491
3491
|
let e = i.current;
|
|
3492
3492
|
if (!e) return;
|
|
@@ -3495,7 +3495,7 @@ var Uu = "RadioBubbleInput", Wu = U.forwardRef(({ __scopeSlider: e, value: t, ..
|
|
|
3495
3495
|
let n = new Event("input", { bubbles: !0 });
|
|
3496
3496
|
r.call(e, t), e.dispatchEvent(n);
|
|
3497
3497
|
}
|
|
3498
|
-
}, [o, t]), /* @__PURE__ */ X(
|
|
3498
|
+
}, [o, t]), /* @__PURE__ */ X(Qn.input, {
|
|
3499
3499
|
style: { display: "none" },
|
|
3500
3500
|
...n,
|
|
3501
3501
|
ref: a,
|
|
@@ -3549,7 +3549,7 @@ function ed(e, t) {
|
|
|
3549
3549
|
return Math.round(e * n) / n;
|
|
3550
3550
|
}
|
|
3551
3551
|
var td = Au, nd = Lu, rd = zu, id = Vu, ad = td, od = nd, sd = rd, cd = id, ld = ({ currentTime: e, duration: t, buffered: n = 0, disabled: r, onSeek: i }) => {
|
|
3552
|
-
let a =
|
|
3552
|
+
let a = B(), [o, s] = J(null), c = q(!1), l = t > 0 ? t : 0, u = o ?? e, d = l > 0 ? Math.min(Math.max(u, 0), l) / l * 100 : 0, f = l > 0 ? Math.min(n / l * 100, 100) : 0, p = r || l === 0, m = q(null), [h, g] = J(0);
|
|
3553
3553
|
G(() => {
|
|
3554
3554
|
let e = m.current;
|
|
3555
3555
|
if (!e) return;
|
|
@@ -3617,19 +3617,19 @@ var td = Au, nd = Lu, rd = zu, id = Vu, ad = td, od = nd, sd = rd, cd = id, ld =
|
|
|
3617
3617
|
//#region src/blocks/F0AudioPlayer/components/LanguageSelect.tsx
|
|
3618
3618
|
function ud({ value: e, options: t, onChange: n, kind: r }) {
|
|
3619
3619
|
let [i, a] = J(!1), o = t.find((t) => t.locale === e), s = o ? mc(o) : e;
|
|
3620
|
-
return /* @__PURE__ */ Z(
|
|
3620
|
+
return /* @__PURE__ */ Z(er, {
|
|
3621
3621
|
open: i,
|
|
3622
3622
|
onOpenChange: a,
|
|
3623
|
-
children: [/* @__PURE__ */ X(
|
|
3623
|
+
children: [/* @__PURE__ */ X(Pn, {
|
|
3624
3624
|
asChild: !0,
|
|
3625
|
-
children: /* @__PURE__ */ X(
|
|
3625
|
+
children: /* @__PURE__ */ X(R, {
|
|
3626
3626
|
variant: "outline",
|
|
3627
3627
|
size: "sm",
|
|
3628
3628
|
label: s,
|
|
3629
3629
|
"aria-label": `${r}: ${s}`,
|
|
3630
3630
|
tooltip: r
|
|
3631
3631
|
})
|
|
3632
|
-
}), /* @__PURE__ */ X(
|
|
3632
|
+
}), /* @__PURE__ */ X(Gn, {
|
|
3633
3633
|
align: "end",
|
|
3634
3634
|
sideOffset: 4,
|
|
3635
3635
|
className: H("flex w-auto min-w-[8rem] flex-col gap-0.5 rounded-md border", "border-solid border-f1-border-secondary bg-f1-background p-1 shadow-md"),
|
|
@@ -3677,7 +3677,7 @@ function ud({ value: e, options: t, onChange: n, kind: r }) {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
//#endregion
|
|
3679
3679
|
//#region src/blocks/F0AudioPlayer/components/PlaybackTime.tsx
|
|
3680
|
-
var dd =
|
|
3680
|
+
var dd = nr({
|
|
3681
3681
|
base: "shrink-0 font-medium tabular-nums text-f1-foreground-secondary",
|
|
3682
3682
|
variants: { size: {
|
|
3683
3683
|
sm: "text-xs",
|
|
@@ -3691,7 +3691,7 @@ var dd = Bn({
|
|
|
3691
3691
|
du(t)
|
|
3692
3692
|
]
|
|
3693
3693
|
}), pd = ({ isPlaying: e, disabled: t, size: n = "md", onToggle: r }) => {
|
|
3694
|
-
let i =
|
|
3694
|
+
let i = B(), a = e ? oo : Ua;
|
|
3695
3695
|
return /* @__PURE__ */ X("button", {
|
|
3696
3696
|
type: "button",
|
|
3697
3697
|
"aria-label": e ? i.audioPlayer.pause : i.audioPlayer.play,
|
|
@@ -3701,10 +3701,10 @@ var dd = Bn({
|
|
|
3701
3701
|
children: /* @__PURE__ */ X(a, { className: n === "sm" ? "size-5" : "size-6" })
|
|
3702
3702
|
});
|
|
3703
3703
|
}, md = ({ playbackRate: e, playbackRates: t, onRateChange: n, disabled: r, extraItems: i = [], audioLanguages: a = [], audioLanguage: o, onAudioLanguageChange: s }) => {
|
|
3704
|
-
let c =
|
|
3705
|
-
return /* @__PURE__ */ Z(
|
|
3704
|
+
let c = B(), l = t.length > 0, u = a.length > 1;
|
|
3705
|
+
return /* @__PURE__ */ Z(mn, { children: [/* @__PURE__ */ X(kn, {
|
|
3706
3706
|
asChild: !0,
|
|
3707
|
-
children: /* @__PURE__ */ X(
|
|
3707
|
+
children: /* @__PURE__ */ X(R, {
|
|
3708
3708
|
variant: "ghost",
|
|
3709
3709
|
size: "sm",
|
|
3710
3710
|
icon: Pi,
|
|
@@ -3712,7 +3712,7 @@ var dd = Bn({
|
|
|
3712
3712
|
hideLabel: !0,
|
|
3713
3713
|
disabled: r
|
|
3714
3714
|
})
|
|
3715
|
-
}), /* @__PURE__ */ Z(
|
|
3715
|
+
}), /* @__PURE__ */ Z(qn, {
|
|
3716
3716
|
align: "end",
|
|
3717
3717
|
className: "flex min-w-44 flex-col gap-0.5",
|
|
3718
3718
|
children: [
|
|
@@ -3721,7 +3721,7 @@ var dd = Bn({
|
|
|
3721
3721
|
children: c.audioPlayer.playbackSpeed
|
|
3722
3722
|
}), t.map((t) => {
|
|
3723
3723
|
let r = t === e;
|
|
3724
|
-
return /* @__PURE__ */ Z(
|
|
3724
|
+
return /* @__PURE__ */ Z(Sn, {
|
|
3725
3725
|
onSelect: () => n(t),
|
|
3726
3726
|
className: H("justify-between gap-3 px-3 text-sm text-f1-foreground", r && "before:absolute before:inset-x-1 before:inset-y-0 before:rounded before:bg-f1-background-selected-bold/10 before:content-[''] dark:before:bg-f1-background-selected-bold/20"),
|
|
3727
3727
|
children: [/* @__PURE__ */ Z("span", {
|
|
@@ -3729,7 +3729,7 @@ var dd = Bn({
|
|
|
3729
3729
|
children: [t, "x"]
|
|
3730
3730
|
}), r ? /* @__PURE__ */ X("span", {
|
|
3731
3731
|
className: "relative flex text-f1-icon-selected",
|
|
3732
|
-
children: /* @__PURE__ */ X(
|
|
3732
|
+
children: /* @__PURE__ */ X(V, {
|
|
3733
3733
|
icon: zs,
|
|
3734
3734
|
size: "md"
|
|
3735
3735
|
})
|
|
@@ -3737,14 +3737,14 @@ var dd = Bn({
|
|
|
3737
3737
|
}, t);
|
|
3738
3738
|
})] }) : null,
|
|
3739
3739
|
u ? /* @__PURE__ */ Z(Y, { children: [
|
|
3740
|
-
l ? /* @__PURE__ */ X(
|
|
3740
|
+
l ? /* @__PURE__ */ X(Dn, {}) : null,
|
|
3741
3741
|
/* @__PURE__ */ X(wn, {
|
|
3742
3742
|
className: "text-f1-foreground-secondary",
|
|
3743
3743
|
children: c.audioPlayer.audio
|
|
3744
3744
|
}),
|
|
3745
3745
|
a.map((e) => {
|
|
3746
3746
|
let t = e.locale === o;
|
|
3747
|
-
return /* @__PURE__ */ Z(
|
|
3747
|
+
return /* @__PURE__ */ Z(Sn, {
|
|
3748
3748
|
onSelect: () => s?.(e.locale),
|
|
3749
3749
|
className: H("justify-between gap-3 px-3 text-sm text-f1-foreground", t && "before:absolute before:inset-x-1 before:inset-y-0 before:rounded before:bg-f1-background-selected-bold/10 before:content-[''] dark:before:bg-f1-background-selected-bold/20"),
|
|
3750
3750
|
children: [/* @__PURE__ */ X("span", {
|
|
@@ -3752,7 +3752,7 @@ var dd = Bn({
|
|
|
3752
3752
|
children: mc(e)
|
|
3753
3753
|
}), t ? /* @__PURE__ */ X("span", {
|
|
3754
3754
|
className: "relative flex text-f1-icon-selected",
|
|
3755
|
-
children: /* @__PURE__ */ X(
|
|
3755
|
+
children: /* @__PURE__ */ X(V, {
|
|
3756
3756
|
icon: zs,
|
|
3757
3757
|
size: "md"
|
|
3758
3758
|
})
|
|
@@ -3760,12 +3760,12 @@ var dd = Bn({
|
|
|
3760
3760
|
}, e.locale);
|
|
3761
3761
|
})
|
|
3762
3762
|
] }) : null,
|
|
3763
|
-
i.length > 0 ? /* @__PURE__ */ Z(Y, { children: [l || u ? /* @__PURE__ */ X(
|
|
3763
|
+
i.length > 0 ? /* @__PURE__ */ Z(Y, { children: [l || u ? /* @__PURE__ */ X(Dn, {}) : null, i.map((e) => /* @__PURE__ */ Z(Sn, {
|
|
3764
3764
|
onSelect: () => e.onClick(),
|
|
3765
3765
|
className: H("gap-2 px-3 text-sm", e.critical ? "text-f1-foreground-critical" : "text-f1-foreground"),
|
|
3766
3766
|
children: [e.icon ? /* @__PURE__ */ X("span", {
|
|
3767
3767
|
className: H("relative flex", e.critical ? "text-f1-icon-critical" : "text-f1-icon"),
|
|
3768
|
-
children: /* @__PURE__ */ X(
|
|
3768
|
+
children: /* @__PURE__ */ X(V, {
|
|
3769
3769
|
icon: e.icon,
|
|
3770
3770
|
size: "md"
|
|
3771
3771
|
})
|
|
@@ -3777,7 +3777,7 @@ var dd = Bn({
|
|
|
3777
3777
|
]
|
|
3778
3778
|
})] });
|
|
3779
3779
|
}, hd = (e) => H("block w-full rounded px-2 py-1 text-left transition-colors", e ? "bg-f1-background-selected-secondary font-medium" : "bg-transparent"), gd = Dc(function({ cue: e, index: t, isActive: n, onSeek: r, cueRefs: i }) {
|
|
3780
|
-
let a =
|
|
3780
|
+
let a = B(), { startTime: o } = e, s = r && o !== void 0, c = W((e) => {
|
|
3781
3781
|
i?.current && (i.current[t] = e);
|
|
3782
3782
|
}, [i, t]), l = W(() => {
|
|
3783
3783
|
o !== void 0 && r?.(o);
|
|
@@ -3805,7 +3805,7 @@ var dd = Bn({
|
|
|
3805
3805
|
})
|
|
3806
3806
|
});
|
|
3807
3807
|
}), _d = Dc(function({ cues: e, activeIndex: t, onSeek: n, cueRefs: r }) {
|
|
3808
|
-
let i =
|
|
3808
|
+
let i = B();
|
|
3809
3809
|
return /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X("p", {
|
|
3810
3810
|
className: "sr-only",
|
|
3811
3811
|
children: i.audioPlayer.transcriptHint
|
|
@@ -3935,10 +3935,10 @@ var bd = (e) => {
|
|
|
3935
3935
|
"End",
|
|
3936
3936
|
" "
|
|
3937
3937
|
]), Sd = Tc((e, t) => {
|
|
3938
|
-
let { title: n, subtitle: r, actions: i, className: a, src: o, preload: s, autoPlay: c = !1, disabled: l = !1, ariaLabel: u, size: d = "md", content: f, defaultLanguage: p, details: m, expanded: h, defaultExpanded: g = !1, onExpandedChange: _, detailsMaxHeight: v = 200 } = e, y =
|
|
3938
|
+
let { title: n, subtitle: r, actions: i, className: a, src: o, preload: s, autoPlay: c = !1, disabled: l = !1, ariaLabel: u, size: d = "md", content: f, defaultLanguage: p, details: m, expanded: h, defaultExpanded: g = !1, onExpandedChange: _, detailsMaxHeight: v = 200 } = e, y = B(), b = vd(o, p), x = bd({
|
|
3939
3939
|
...e,
|
|
3940
3940
|
src: b.resolvedSrc
|
|
3941
|
-
}), S = uu(e), C =
|
|
3941
|
+
}), S = uu(e), C = yn(), w = (e) => {
|
|
3942
3942
|
yd(x.audioRef.current), b.setLocale(e);
|
|
3943
3943
|
}, T = !f && !!(m && m.length > 0), E = K(() => hc(f?.summary, f?.transcription), [f?.summary, f?.transcription]), [D, O] = J(() => gc(E, p)), k = E.some((e) => e.locale === D) ? D : gc(E, p), A = pc(f?.summary, k), j = pc(f?.transcription, k), M = vu(x.audioRef, x.currentSrc, !j), N = j ?? M, P = Array.isArray(N) ? N : void 0, F = typeof N == "string" ? N : void 0, I = !!(F || P?.length), ee = K(() => P ? fu(P) : [], [P]), te = ee.length > 0, L = x.pendingTime ?? x.currentTime, ne = K(() => te ? pu(ee, L) : -1, [
|
|
3944
3944
|
te,
|
|
@@ -3996,7 +3996,7 @@ var bd = (e) => {
|
|
|
3996
3996
|
oe,
|
|
3997
3997
|
y.audioPlayer.summary,
|
|
3998
3998
|
y.audioPlayer.transcription
|
|
3999
|
-
]), ce = I ? "available" : "missing", le = se.length > 0, ue = se.length === 1 ? se[0] : void 0, de = (e) => ue?.value === "transcription" ? e ? y.audioPlayer.hideTranscription : y.audioPlayer.viewTranscription : ue?.value === "summary" ? e ? y.audioPlayer.hideSummary : y.audioPlayer.viewSummary : e ? y.audioPlayer.hideDetail : y.audioPlayer.viewDetail, [fe = !1, pe] =
|
|
3999
|
+
]), ce = I ? "available" : "missing", le = se.length > 0, ue = se.length === 1 ? se[0] : void 0, de = (e) => ue?.value === "transcription" ? e ? y.audioPlayer.hideTranscription : y.audioPlayer.viewTranscription : ue?.value === "summary" ? e ? y.audioPlayer.hideSummary : y.audioPlayer.viewSummary : e ? y.audioPlayer.hideDetail : y.audioPlayer.viewDetail, [fe = !1, pe] = Wn({
|
|
4000
4000
|
prop: h,
|
|
4001
4001
|
defaultProp: g,
|
|
4002
4002
|
onChange: _
|
|
@@ -4051,7 +4051,7 @@ var bd = (e) => {
|
|
|
4051
4051
|
})]
|
|
4052
4052
|
}), le || x.playbackRates.length > 0 || b.languages.length > 1 || i ? /* @__PURE__ */ Z("div", {
|
|
4053
4053
|
className: "flex shrink-0 items-center gap-2",
|
|
4054
|
-
children: [le ? /* @__PURE__ */ X(
|
|
4054
|
+
children: [le ? /* @__PURE__ */ X(R, {
|
|
4055
4055
|
variant: "outline",
|
|
4056
4056
|
size: "sm",
|
|
4057
4057
|
label: de(fe),
|
|
@@ -4083,7 +4083,7 @@ var bd = (e) => {
|
|
|
4083
4083
|
size: d
|
|
4084
4084
|
})]
|
|
4085
4085
|
}),
|
|
4086
|
-
le ? /* @__PURE__ */ Z(
|
|
4086
|
+
le ? /* @__PURE__ */ Z(ar.div, {
|
|
4087
4087
|
role: "region",
|
|
4088
4088
|
"aria-label": ue ? ue.label : y.audioPlayer.details,
|
|
4089
4089
|
initial: !1,
|
|
@@ -4143,14 +4143,14 @@ var bd = (e) => {
|
|
|
4143
4143
|
Sd.displayName = "F0AudioPlayerCard";
|
|
4144
4144
|
//#endregion
|
|
4145
4145
|
//#region src/blocks/F0AudioPlayer/F0AudioPlayer.tsx
|
|
4146
|
-
var Cd =
|
|
4146
|
+
var Cd = nr({
|
|
4147
4147
|
base: "flex w-full items-center",
|
|
4148
4148
|
variants: { size: {
|
|
4149
4149
|
sm: "gap-2",
|
|
4150
4150
|
md: "gap-3"
|
|
4151
4151
|
} }
|
|
4152
4152
|
}), wd = Tc((e, t) => {
|
|
4153
|
-
let { src: n, preload: r, autoPlay: i = !1, disabled: a = !1, ariaLabel: o, size: s = "md", defaultLanguage: c, className: l } = e, u =
|
|
4153
|
+
let { src: n, preload: r, autoPlay: i = !1, disabled: a = !1, ariaLabel: o, size: s = "md", defaultLanguage: c, className: l } = e, u = B(), d = vd(n, c), f = bd({
|
|
4154
4154
|
...e,
|
|
4155
4155
|
src: d.resolvedSrc
|
|
4156
4156
|
}), p = uu(e), m = (e) => {
|
|
@@ -4197,7 +4197,7 @@ var Cd = Bn({
|
|
|
4197
4197
|
});
|
|
4198
4198
|
});
|
|
4199
4199
|
wd.displayName = "F0AudioPlayer";
|
|
4200
|
-
var Td =
|
|
4200
|
+
var Td = Zn("F0AudioPlayer", z(wd)), Ed = Zn("F0AudioPlayerCard", z(Sd)), Dd = Nn, Od = ({ actions: e }) => /* @__PURE__ */ X("div", {
|
|
4201
4201
|
className: "flex items-center gap-2",
|
|
4202
4202
|
children: e.map((e, t) => {
|
|
4203
4203
|
switch (e.type) {
|
|
@@ -4211,7 +4211,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4211
4211
|
case "dropdown": return /* @__PURE__ */ X(go, {
|
|
4212
4212
|
items: e.items,
|
|
4213
4213
|
disabled: e.disabled,
|
|
4214
|
-
children: /* @__PURE__ */ X(
|
|
4214
|
+
children: /* @__PURE__ */ X(R, {
|
|
4215
4215
|
variant: "outline",
|
|
4216
4216
|
size: "sm",
|
|
4217
4217
|
icon: Pi,
|
|
@@ -4223,7 +4223,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4223
4223
|
}
|
|
4224
4224
|
})
|
|
4225
4225
|
}), kd = ({ item: e, open: t, onOpenChange: n }) => {
|
|
4226
|
-
let r =
|
|
4226
|
+
let r = yn(), i = B().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
4227
4227
|
return /* @__PURE__ */ X(ba, {
|
|
4228
4228
|
open: t,
|
|
4229
4229
|
onOpenChange: n,
|
|
@@ -4252,7 +4252,7 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4252
4252
|
a ? /* @__PURE__ */ X(Od, { actions: e.actions }) : null,
|
|
4253
4253
|
/* @__PURE__ */ X(zi, {
|
|
4254
4254
|
asChild: !0,
|
|
4255
|
-
children: /* @__PURE__ */ X(
|
|
4255
|
+
children: /* @__PURE__ */ X(R, {
|
|
4256
4256
|
variant: "outline",
|
|
4257
4257
|
size: "sm",
|
|
4258
4258
|
icon: t ? Zo : jo,
|
|
@@ -4262,9 +4262,9 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4262
4262
|
})
|
|
4263
4263
|
]
|
|
4264
4264
|
})]
|
|
4265
|
-
}), /* @__PURE__ */ X(
|
|
4265
|
+
}), /* @__PURE__ */ X(Vn, {
|
|
4266
4266
|
initial: !1,
|
|
4267
|
-
children: t ? /* @__PURE__ */ X(
|
|
4267
|
+
children: t ? /* @__PURE__ */ X(ar.div, {
|
|
4268
4268
|
initial: {
|
|
4269
4269
|
height: 0,
|
|
4270
4270
|
opacity: 0
|
|
@@ -4300,10 +4300,10 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4300
4300
|
className: H("flex flex-col rounded-md border border-solid border-f1-border-secondary", "overflow-hidden bg-f1-background"),
|
|
4301
4301
|
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ Z(Cc, { children: [t > 0 ? /* @__PURE__ */ X("div", { className: "h-px w-full bg-f1-border-secondary" }) : null, /* @__PURE__ */ Z("div", {
|
|
4302
4302
|
className: "flex items-center gap-3 px-4 py-3",
|
|
4303
|
-
children: [/* @__PURE__ */ X(
|
|
4303
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-4 flex-1 max-w-48" }), /* @__PURE__ */ X(Hn, { className: "ml-auto h-7 w-7 shrink-0 rounded" })]
|
|
4304
4304
|
})] }, t))
|
|
4305
4305
|
}), jd = Tc((e, t) => {
|
|
4306
|
-
let { items: n, value: r, defaultValue: i, onValueChange: a, ...o } = e, s = K(() => i === void 0 ? n.filter((e) => e.defaultOpen).map((e) => e.id) : i, [i, n]), [c = [], l] =
|
|
4306
|
+
let { items: n, value: r, defaultValue: i, onValueChange: a, ...o } = e, s = K(() => i === void 0 ? n.filter((e) => e.defaultOpen).map((e) => e.id) : i, [i, n]), [c = [], l] = Wn({
|
|
4307
4307
|
prop: r,
|
|
4308
4308
|
defaultProp: s,
|
|
4309
4309
|
onChange: a
|
|
@@ -4323,23 +4323,23 @@ var Td = tr("F0AudioPlayer", R(wd)), Ed = tr("F0AudioPlayerCard", R(Sd)), Dd = y
|
|
|
4323
4323
|
});
|
|
4324
4324
|
});
|
|
4325
4325
|
jd.displayName = "F0Accordion";
|
|
4326
|
-
var Md =
|
|
4326
|
+
var Md = z(Zn("F0Accordion", Qa(jd, Ad))), Nd = [
|
|
4327
4327
|
"info",
|
|
4328
4328
|
"warning",
|
|
4329
4329
|
"critical",
|
|
4330
4330
|
"positive"
|
|
4331
4331
|
], Pd = ({ count: e, list: t }) => {
|
|
4332
4332
|
let [n, r] = J(!1), i = /* @__PURE__ */ X(qo, { label: `+${e}` });
|
|
4333
|
-
return t?.length ? /* @__PURE__ */ Z(
|
|
4333
|
+
return t?.length ? /* @__PURE__ */ Z(er, {
|
|
4334
4334
|
open: n,
|
|
4335
4335
|
onOpenChange: r,
|
|
4336
|
-
children: [/* @__PURE__ */ X(
|
|
4336
|
+
children: [/* @__PURE__ */ X(Pn, {
|
|
4337
4337
|
asChild: !0,
|
|
4338
4338
|
children: /* @__PURE__ */ X("button", {
|
|
4339
4339
|
className: vr("inline-flex flex-shrink-0 items-center"),
|
|
4340
4340
|
children: i
|
|
4341
4341
|
})
|
|
4342
|
-
}), /* @__PURE__ */ X(
|
|
4342
|
+
}), /* @__PURE__ */ X(Gn, {
|
|
4343
4343
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
4344
4344
|
align: "end",
|
|
4345
4345
|
children: /* @__PURE__ */ Z(Po, {
|
|
@@ -4381,7 +4381,7 @@ var Fd = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
|
|
|
4381
4381
|
});
|
|
4382
4382
|
};
|
|
4383
4383
|
Fd.displayName = "F0ChipList";
|
|
4384
|
-
var Id =
|
|
4384
|
+
var Id = z(Zn("F0ChipList", Fd)), Ld = [
|
|
4385
4385
|
"blur",
|
|
4386
4386
|
"escape",
|
|
4387
4387
|
"commit",
|
|
@@ -4458,9 +4458,9 @@ var Id = R(tr("F0ChipList", Fd)), Ld = [
|
|
|
4458
4458
|
return /* @__PURE__ */ X(Vd, { ...t });
|
|
4459
4459
|
};
|
|
4460
4460
|
Ud.displayName = "F0Drawer";
|
|
4461
|
-
var Wd =
|
|
4461
|
+
var Wd = Zn("F0Drawer", Ud), Gd = 388;
|
|
4462
4462
|
function Kd({ filters: e, value: t, onChange: n, height: r, width: i = 600, className: a, showApplyButton: o = !0, applyButtonLabel: s, dataTestId: c }) {
|
|
4463
|
-
let l =
|
|
4463
|
+
let l = B(), u = Object.keys(e)[0] ?? null, [d, f] = J(u), [p, m] = J(t);
|
|
4464
4464
|
G(() => {
|
|
4465
4465
|
m(t);
|
|
4466
4466
|
}, [t]), G(() => {
|
|
@@ -4495,7 +4495,7 @@ function Kd({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
4495
4495
|
let r = rc(n.type);
|
|
4496
4496
|
return Math.max(e, r?.formHeight || Gd);
|
|
4497
4497
|
}, 0), [e, r]);
|
|
4498
|
-
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(
|
|
4498
|
+
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X($n, {
|
|
4499
4499
|
dataTestId: c,
|
|
4500
4500
|
children: /* @__PURE__ */ X("div", {
|
|
4501
4501
|
className: H("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
@@ -4759,7 +4759,7 @@ var Qd = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
4759
4759
|
children: e.content
|
|
4760
4760
|
}, e.id) }, e.id)) });
|
|
4761
4761
|
}, nf = ({ children: e }) => {
|
|
4762
|
-
let t = Mc(T.subscribe, T.getSnapshot, T.getServerSnapshot), n =
|
|
4762
|
+
let t = Mc(T.subscribe, T.getSnapshot, T.getServerSnapshot), n = B(), [r, i] = J(null);
|
|
4763
4763
|
G(() => {
|
|
4764
4764
|
let e = T.acquireRenderer();
|
|
4765
4765
|
return i(e.id), e.release;
|
|
@@ -4908,7 +4908,7 @@ function df({ children: e, ...t }) {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
//#endregion
|
|
4910
4910
|
//#region src/blocks/F0Wizard/components/WizardSteps.tsx
|
|
4911
|
-
var ff =
|
|
4911
|
+
var ff = nr({
|
|
4912
4912
|
base: "flex-1 text-base font-medium leading-5 tracking-[-0.005em]",
|
|
4913
4913
|
variants: { state: {
|
|
4914
4914
|
active: "text-f1-foreground",
|
|
@@ -4923,7 +4923,7 @@ function mf({ state: e, index: t }) {
|
|
|
4923
4923
|
return e === "completed" ? /* @__PURE__ */ X("span", {
|
|
4924
4924
|
className: "flex h-5 w-5 min-w-5 shrink-0 items-center justify-center rounded-xs bg-f1-background-secondary text-f1-foreground-secondary",
|
|
4925
4925
|
children: /* @__PURE__ */ X(fc, { className: "h-3 w-3" })
|
|
4926
|
-
}) : /* @__PURE__ */ X(
|
|
4926
|
+
}) : /* @__PURE__ */ X(jn, {
|
|
4927
4927
|
value: t + 1,
|
|
4928
4928
|
type: e === "active" ? "selected" : "default",
|
|
4929
4929
|
size: "md"
|
|
@@ -5031,7 +5031,7 @@ var _f = () => {}, vf = ({ steps: e, children: t, isOpen: n, onClose: r = _f, ti
|
|
|
5031
5031
|
allowStepSkipping: f,
|
|
5032
5032
|
autoCloseOnLastStepSubmit: p,
|
|
5033
5033
|
onClose: r
|
|
5034
|
-
}), g =
|
|
5034
|
+
}), g = B(), _ = e[h.currentStep], y = h.currentStep === 0, b = h.currentStep === e.length - 1, x = b ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, S = _?.previousLabel ?? c ?? g.wizard.previous, C = K(() => ({
|
|
5035
5035
|
label: x,
|
|
5036
5036
|
icon: b ? void 0 : Ti,
|
|
5037
5037
|
onClick: () => void h.goNext(),
|
|
@@ -5086,7 +5086,7 @@ var _f = () => {}, vf = ({ steps: e, children: t, isOpen: n, onClose: r = _f, ti
|
|
|
5086
5086
|
})
|
|
5087
5087
|
});
|
|
5088
5088
|
};
|
|
5089
|
-
vf.displayName = "F0Wizard",
|
|
5089
|
+
vf.displayName = "F0Wizard", z(vf);
|
|
5090
5090
|
//#endregion
|
|
5091
5091
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
5092
5092
|
function yf(e) {
|
|
@@ -5122,7 +5122,7 @@ function Sf(e, t, n) {
|
|
|
5122
5122
|
}
|
|
5123
5123
|
var Cf = 3e3;
|
|
5124
5124
|
function wf() {
|
|
5125
|
-
let { forms: e } =
|
|
5125
|
+
let { forms: e } = B(), [t, n] = J("idle"), [r, i] = J(), a = q(null);
|
|
5126
5126
|
G(() => () => {
|
|
5127
5127
|
a.current && clearTimeout(a.current);
|
|
5128
5128
|
}, []);
|
|
@@ -5447,7 +5447,7 @@ function Af(e) {
|
|
|
5447
5447
|
return e.formDefinition._brand === "per-section" ? /* @__PURE__ */ X(Df, { ...e }) : /* @__PURE__ */ X(kf, { ...e });
|
|
5448
5448
|
}
|
|
5449
5449
|
Af.displayName = "F0WizardForm";
|
|
5450
|
-
var jf =
|
|
5450
|
+
var jf = z(Af), Mf = Af;
|
|
5451
5451
|
function Nf(e, t) {
|
|
5452
5452
|
if (e._brand === "per-section") {
|
|
5453
5453
|
let n = e;
|
|
@@ -5534,8 +5534,8 @@ var Lf = { open: If }, Rf = [
|
|
|
5534
5534
|
className: "flex justify-between text-sm text-f1-foreground-secondary",
|
|
5535
5535
|
children: [/* @__PURE__ */ X("span", { children: e }), /* @__PURE__ */ X("span", { children: t })]
|
|
5536
5536
|
}), Hf = ({ visible: e, content: t, style: n }) => {
|
|
5537
|
-
let r =
|
|
5538
|
-
return /* @__PURE__ */ X(
|
|
5537
|
+
let r = yn() ? 0 : .15;
|
|
5538
|
+
return /* @__PURE__ */ X(Vn, { children: e ? /* @__PURE__ */ X(ar.div, {
|
|
5539
5539
|
initial: {
|
|
5540
5540
|
opacity: 0,
|
|
5541
5541
|
x: "-50%",
|
|
@@ -5563,11 +5563,11 @@ var Lf = { open: If }, Rf = [
|
|
|
5563
5563
|
"aria-label": "Loading slider",
|
|
5564
5564
|
"aria-busy": "true",
|
|
5565
5565
|
"aria-live": "polite",
|
|
5566
|
-
children: [e ? null : /* @__PURE__ */ X(
|
|
5566
|
+
children: [e ? null : /* @__PURE__ */ X(Hn, { className: "h-4 w-24 rounded-md" }), /* @__PURE__ */ X("div", {
|
|
5567
5567
|
className: "flex items-center py-2",
|
|
5568
|
-
children: /* @__PURE__ */ X(
|
|
5568
|
+
children: /* @__PURE__ */ X(Hn, { className: "h-1.5 w-full rounded-full" })
|
|
5569
5569
|
})]
|
|
5570
|
-
}), Wf =
|
|
5570
|
+
}), Wf = nr({
|
|
5571
5571
|
base: "relative h-1.5 grow overflow-hidden rounded-full bg-f1-background-tertiary",
|
|
5572
5572
|
variants: { status: {
|
|
5573
5573
|
default: "",
|
|
@@ -5575,7 +5575,7 @@ var Lf = { open: If }, Rf = [
|
|
|
5575
5575
|
info: "",
|
|
5576
5576
|
error: ""
|
|
5577
5577
|
} }
|
|
5578
|
-
}), Gf =
|
|
5578
|
+
}), Gf = nr({
|
|
5579
5579
|
base: "absolute h-full",
|
|
5580
5580
|
variants: {
|
|
5581
5581
|
status: {
|
|
@@ -5589,7 +5589,7 @@ var Lf = { open: If }, Rf = [
|
|
|
5589
5589
|
false: ""
|
|
5590
5590
|
}
|
|
5591
5591
|
}
|
|
5592
|
-
}), Kf = 20, qf =
|
|
5592
|
+
}), Kf = 20, qf = nr({
|
|
5593
5593
|
base: H("relative block rounded-full bg-f1-background border-[2px] border-solid", "transition-[transform,border-color] hover:scale-110", "motion-reduce:transition-none motion-reduce:hover:scale-100", "data-[disabled]:cursor-not-allowed data-[disabled]:hover:scale-100"),
|
|
5594
5594
|
variants: {
|
|
5595
5595
|
status: {
|
|
@@ -5608,7 +5608,7 @@ var Lf = { open: If }, Rf = [
|
|
|
5608
5608
|
G(() => {
|
|
5609
5609
|
process.env.NODE_ENV !== "production" && !T && console.warn("F0Slider: provide a non-empty `label` or `ariaLabel` for accessibility.");
|
|
5610
5610
|
}, [T]);
|
|
5611
|
-
let [E, D] =
|
|
5611
|
+
let [E, D] = Wn({
|
|
5612
5612
|
prop: u,
|
|
5613
5613
|
defaultProp: d ?? m,
|
|
5614
5614
|
onChange: f
|
|
@@ -5701,7 +5701,7 @@ var Lf = { open: If }, Rf = [
|
|
|
5701
5701
|
});
|
|
5702
5702
|
});
|
|
5703
5703
|
Jf.displayName = "F0Slider";
|
|
5704
|
-
var Yf =
|
|
5704
|
+
var Yf = Zn("F0Slider", Qa(z(Jf), Uf)), Xf = [
|
|
5705
5705
|
"completed",
|
|
5706
5706
|
"in-progress",
|
|
5707
5707
|
"not-started"
|
|
@@ -5721,7 +5721,7 @@ var Yf = tr("F0Slider", Qa(R(Jf), Uf)), Xf = [
|
|
|
5721
5721
|
"grey",
|
|
5722
5722
|
"orange",
|
|
5723
5723
|
"radical"
|
|
5724
|
-
], Qf = 16, $f =
|
|
5724
|
+
], Qf = 16, $f = nr({
|
|
5725
5725
|
base: "h-0.5 rounded-full bg-f1-foreground cursor-pointer",
|
|
5726
5726
|
variants: {
|
|
5727
5727
|
depth: {
|
|
@@ -5818,7 +5818,7 @@ function ip(e, t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
//#endregion
|
|
5820
5820
|
//#region src/blocks/F0TableOfContentPopover/F0TableOfContentPopover.tsx
|
|
5821
|
-
var ap = 300, op = 0, sp =
|
|
5821
|
+
var ap = 300, op = 0, sp = nr({
|
|
5822
5822
|
base: "w-auto overflow-y-auto rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-0 shadow-lg",
|
|
5823
5823
|
variants: { size: {
|
|
5824
5824
|
sm: "max-h-[240px]",
|
|
@@ -5875,7 +5875,7 @@ function cp({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
5875
5875
|
})]
|
|
5876
5876
|
});
|
|
5877
5877
|
}
|
|
5878
|
-
var lp =
|
|
5878
|
+
var lp = z(Zn("F0TableOfContentPopover", cp));
|
|
5879
5879
|
//#endregion
|
|
5880
5880
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/Form/utils.ts
|
|
5881
5881
|
function up(e) {
|
|
@@ -5969,8 +5969,8 @@ function mp(e) {
|
|
|
5969
5969
|
}
|
|
5970
5970
|
//#endregion
|
|
5971
5971
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
5972
|
-
var hp =
|
|
5973
|
-
let e =
|
|
5972
|
+
var hp = ar.create(ua), gp = Dc(() => {
|
|
5973
|
+
let e = B();
|
|
5974
5974
|
return /* @__PURE__ */ Z("div", {
|
|
5975
5975
|
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",
|
|
5976
5976
|
children: [/* @__PURE__ */ X(hp, {
|
|
@@ -6322,7 +6322,7 @@ function Ap() {
|
|
|
6322
6322
|
//#endregion
|
|
6323
6323
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/constants.ts
|
|
6324
6324
|
var jp = () => {
|
|
6325
|
-
let { isQuestionTypeAllowed: e, datasets: t } = Dp(), { t: n } =
|
|
6325
|
+
let { isQuestionTypeAllowed: e, datasets: t } = Dp(), { t: n } = B(), r = [
|
|
6326
6326
|
{
|
|
6327
6327
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
6328
6328
|
icon: ho,
|
|
@@ -6394,7 +6394,7 @@ var jp = () => {
|
|
|
6394
6394
|
file: Fa,
|
|
6395
6395
|
checkbox: zs
|
|
6396
6396
|
}, Np = () => {
|
|
6397
|
-
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Dp(), [a, o] = J(!1), s = jp(), { t: c } =
|
|
6397
|
+
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Dp(), [a, o] = J(!1), s = jp(), { t: c } = B(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
6398
6398
|
n?.({
|
|
6399
6399
|
type: e,
|
|
6400
6400
|
datasetKey: t
|
|
@@ -6404,27 +6404,27 @@ var jp = () => {
|
|
|
6404
6404
|
}, f = s.filter((e) => !e.datasetKey), p = Array.from(new Set(s.filter((e) => !!e.datasetKey).map((e) => e.datasetKey)));
|
|
6405
6405
|
return e || t ? null : /* @__PURE__ */ X("div", {
|
|
6406
6406
|
className: "ml-6 flex justify-center",
|
|
6407
|
-
children: /* @__PURE__ */ Z(
|
|
6407
|
+
children: /* @__PURE__ */ Z(mn, {
|
|
6408
6408
|
open: a,
|
|
6409
6409
|
onOpenChange: o,
|
|
6410
|
-
children: [/* @__PURE__ */ X(
|
|
6410
|
+
children: [/* @__PURE__ */ X(kn, {
|
|
6411
6411
|
asChild: !0,
|
|
6412
|
-
children: /* @__PURE__ */ X(
|
|
6412
|
+
children: /* @__PURE__ */ X(R, {
|
|
6413
6413
|
icon: Ao,
|
|
6414
6414
|
label: l,
|
|
6415
6415
|
size: "md",
|
|
6416
6416
|
variant: "outline",
|
|
6417
6417
|
hideLabel: !0
|
|
6418
6418
|
})
|
|
6419
|
-
}), /* @__PURE__ */ Z(
|
|
6419
|
+
}), /* @__PURE__ */ Z(qn, {
|
|
6420
6420
|
align: "center",
|
|
6421
6421
|
className: "w-80",
|
|
6422
6422
|
children: [
|
|
6423
|
-
/* @__PURE__ */ X(
|
|
6423
|
+
/* @__PURE__ */ X(Sn, {
|
|
6424
6424
|
onClick: d,
|
|
6425
6425
|
children: /* @__PURE__ */ Z("div", {
|
|
6426
6426
|
className: "flex w-full flex-row items-center gap-2",
|
|
6427
|
-
children: [/* @__PURE__ */ X(
|
|
6427
|
+
children: [/* @__PURE__ */ X(V, {
|
|
6428
6428
|
icon: Ba,
|
|
6429
6429
|
color: "default"
|
|
6430
6430
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -6433,12 +6433,12 @@ var jp = () => {
|
|
|
6433
6433
|
})]
|
|
6434
6434
|
})
|
|
6435
6435
|
}),
|
|
6436
|
-
/* @__PURE__ */ X(
|
|
6437
|
-
f.map((e) => /* @__PURE__ */ X(
|
|
6436
|
+
/* @__PURE__ */ X(Dn, {}),
|
|
6437
|
+
f.map((e) => /* @__PURE__ */ X(Sn, {
|
|
6438
6438
|
onClick: () => u(e.questionType),
|
|
6439
6439
|
children: /* @__PURE__ */ Z("div", {
|
|
6440
6440
|
className: "flex w-full flex-row items-center gap-2",
|
|
6441
|
-
children: [/* @__PURE__ */ X(
|
|
6441
|
+
children: [/* @__PURE__ */ X(V, {
|
|
6442
6442
|
icon: e.icon,
|
|
6443
6443
|
color: "default"
|
|
6444
6444
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -6447,13 +6447,13 @@ var jp = () => {
|
|
|
6447
6447
|
})]
|
|
6448
6448
|
})
|
|
6449
6449
|
}, e.questionType)),
|
|
6450
|
-
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
6450
|
+
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Dn, {}), p.map((e) => {
|
|
6451
6451
|
let t = s.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
6452
|
-
return /* @__PURE__ */ Z(
|
|
6452
|
+
return /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
6453
6453
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
6454
6454
|
children: /* @__PURE__ */ Z("div", {
|
|
6455
6455
|
className: "flex w-full flex-row items-center gap-2",
|
|
6456
|
-
children: [t ? /* @__PURE__ */ X(
|
|
6456
|
+
children: [t ? /* @__PURE__ */ X(V, {
|
|
6457
6457
|
icon: t.icon,
|
|
6458
6458
|
color: "default"
|
|
6459
6459
|
}) : null, /* @__PURE__ */ X("span", {
|
|
@@ -6461,11 +6461,11 @@ var jp = () => {
|
|
|
6461
6461
|
children: t?.label ?? e
|
|
6462
6462
|
})]
|
|
6463
6463
|
})
|
|
6464
|
-
}), /* @__PURE__ */ X(
|
|
6464
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ Z(gn, { children: [r("dropdown-single") ? /* @__PURE__ */ X(Sn, {
|
|
6465
6465
|
onClick: () => u("dropdown-single", e),
|
|
6466
6466
|
children: /* @__PURE__ */ Z("div", {
|
|
6467
6467
|
className: "flex w-full flex-row items-center gap-2",
|
|
6468
|
-
children: [/* @__PURE__ */ X(
|
|
6468
|
+
children: [/* @__PURE__ */ X(V, {
|
|
6469
6469
|
icon: fc,
|
|
6470
6470
|
color: "default"
|
|
6471
6471
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -6473,11 +6473,11 @@ var jp = () => {
|
|
|
6473
6473
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
6474
6474
|
})]
|
|
6475
6475
|
})
|
|
6476
|
-
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(
|
|
6476
|
+
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(Sn, {
|
|
6477
6477
|
onClick: () => u("dropdown-multi", e),
|
|
6478
6478
|
children: /* @__PURE__ */ Z("div", {
|
|
6479
6479
|
className: "flex w-full flex-row items-center gap-2",
|
|
6480
|
-
children: [/* @__PURE__ */ X(
|
|
6480
|
+
children: [/* @__PURE__ */ X(V, {
|
|
6481
6481
|
icon: ji,
|
|
6482
6482
|
color: "default"
|
|
6483
6483
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -6492,7 +6492,7 @@ var jp = () => {
|
|
|
6492
6492
|
})
|
|
6493
6493
|
});
|
|
6494
6494
|
}, Pp = ({ open: e, onConfirm: t, onCancel: n }) => {
|
|
6495
|
-
let { t: r } =
|
|
6495
|
+
let { t: r } = B();
|
|
6496
6496
|
return /* @__PURE__ */ X(Jt, {
|
|
6497
6497
|
open: e,
|
|
6498
6498
|
onClose: n,
|
|
@@ -6626,7 +6626,7 @@ function zp({ questionId: e, questionType: t, canDelete: n = !0 }) {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
//#endregion
|
|
6628
6628
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/QuestionTypes/BaseQuestion/ActionsMenu/ActionsMenu.tsx
|
|
6629
|
-
var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(
|
|
6629
|
+
var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(Sn, {
|
|
6630
6630
|
className: "!pb-2.5 pr-4",
|
|
6631
6631
|
onClick: (e) => {
|
|
6632
6632
|
e.preventDefault(), r(!n);
|
|
@@ -6634,7 +6634,7 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6634
6634
|
children: /* @__PURE__ */ Z("div", {
|
|
6635
6635
|
className: "flex w-full flex-row items-center gap-2",
|
|
6636
6636
|
children: [
|
|
6637
|
-
/* @__PURE__ */ X(
|
|
6637
|
+
/* @__PURE__ */ X(Rn, {
|
|
6638
6638
|
icon: t,
|
|
6639
6639
|
color: "default"
|
|
6640
6640
|
}),
|
|
@@ -6651,13 +6651,13 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6651
6651
|
]
|
|
6652
6652
|
})
|
|
6653
6653
|
}), Vp = ({ label: e, value: t, currentDatasetKey: n, questionTypes: r, currentRatingType: i, isQuestionTypeAllowed: a, onSelectQuestionType: o, onSelectRatingType: s }) => {
|
|
6654
|
-
let { t: c } =
|
|
6655
|
-
return /* @__PURE__ */ Z(
|
|
6654
|
+
let { t: c } = B(), l = r.filter((e) => !e.datasetKey), u = Array.from(new Set(r.filter((e) => !!e.datasetKey).map((e) => e.datasetKey))), d = n ? r.find((e) => e.questionType === t && e.datasetKey === n)?.label ?? void 0 : r.find((e) => e.questionType === t && !e.datasetKey)?.label ?? void 0;
|
|
6655
|
+
return /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
6656
6656
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
6657
6657
|
children: /* @__PURE__ */ Z("div", {
|
|
6658
6658
|
className: "flex w-full flex-row items-center gap-2",
|
|
6659
6659
|
children: [
|
|
6660
|
-
/* @__PURE__ */ X(
|
|
6660
|
+
/* @__PURE__ */ X(Rn, {
|
|
6661
6661
|
icon: uo,
|
|
6662
6662
|
color: "default"
|
|
6663
6663
|
}),
|
|
@@ -6671,14 +6671,14 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6671
6671
|
}) : null
|
|
6672
6672
|
]
|
|
6673
6673
|
})
|
|
6674
|
-
}), /* @__PURE__ */ X(
|
|
6674
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ Z(gn, { children: [l.map((e) => {
|
|
6675
6675
|
let r = e.questionType === "rating", a = t === e.questionType && !n;
|
|
6676
|
-
return r ? /* @__PURE__ */ Z(
|
|
6676
|
+
return r ? /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
6677
6677
|
className: "mx-1 mt-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
6678
6678
|
children: /* @__PURE__ */ Z("div", {
|
|
6679
6679
|
className: "flex w-full flex-row items-center gap-2 text-base font-medium",
|
|
6680
6680
|
children: [
|
|
6681
|
-
/* @__PURE__ */ X(
|
|
6681
|
+
/* @__PURE__ */ X(Rn, {
|
|
6682
6682
|
icon: e.icon,
|
|
6683
6683
|
color: "default"
|
|
6684
6684
|
}),
|
|
@@ -6692,24 +6692,24 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6692
6692
|
}) : null
|
|
6693
6693
|
]
|
|
6694
6694
|
})
|
|
6695
|
-
}), /* @__PURE__ */ X(
|
|
6695
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ X(gn, { children: Fp.map((e) => /* @__PURE__ */ X(Sn, {
|
|
6696
6696
|
onClick: () => s(e.value),
|
|
6697
6697
|
children: /* @__PURE__ */ Z("div", {
|
|
6698
6698
|
className: "flex w-full flex-row items-center gap-2 pl-2",
|
|
6699
6699
|
children: [/* @__PURE__ */ X("span", {
|
|
6700
6700
|
className: "flex-1",
|
|
6701
6701
|
children: e.label
|
|
6702
|
-
}), i === e.value ? /* @__PURE__ */ X(
|
|
6702
|
+
}), i === e.value ? /* @__PURE__ */ X(Rn, {
|
|
6703
6703
|
icon: fc,
|
|
6704
6704
|
color: "default"
|
|
6705
6705
|
}) : null]
|
|
6706
6706
|
})
|
|
6707
|
-
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(
|
|
6707
|
+
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(Sn, {
|
|
6708
6708
|
onClick: () => o(e.questionType),
|
|
6709
6709
|
children: /* @__PURE__ */ Z("div", {
|
|
6710
6710
|
className: "flex w-full flex-row items-center gap-2",
|
|
6711
6711
|
children: [
|
|
6712
|
-
/* @__PURE__ */ X(
|
|
6712
|
+
/* @__PURE__ */ X(Rn, {
|
|
6713
6713
|
icon: e.icon,
|
|
6714
6714
|
color: "default"
|
|
6715
6715
|
}),
|
|
@@ -6717,21 +6717,21 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6717
6717
|
className: "flex-1",
|
|
6718
6718
|
children: e.label
|
|
6719
6719
|
}),
|
|
6720
|
-
a ? /* @__PURE__ */ X(
|
|
6720
|
+
a ? /* @__PURE__ */ X(Rn, {
|
|
6721
6721
|
icon: fc,
|
|
6722
6722
|
color: "default"
|
|
6723
6723
|
}) : null
|
|
6724
6724
|
]
|
|
6725
6725
|
})
|
|
6726
6726
|
}, e.questionType);
|
|
6727
|
-
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
6727
|
+
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Dn, {}), u.map((e) => {
|
|
6728
6728
|
let i = r.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
6729
|
-
return /* @__PURE__ */ Z(
|
|
6729
|
+
return /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
6730
6730
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
6731
6731
|
children: /* @__PURE__ */ Z("div", {
|
|
6732
6732
|
className: "flex w-full flex-row items-center gap-2",
|
|
6733
6733
|
children: [
|
|
6734
|
-
i ? /* @__PURE__ */ X(
|
|
6734
|
+
i ? /* @__PURE__ */ X(Rn, {
|
|
6735
6735
|
icon: i.icon,
|
|
6736
6736
|
color: "default"
|
|
6737
6737
|
}) : null,
|
|
@@ -6739,18 +6739,18 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6739
6739
|
className: "flex-1 text-base font-medium",
|
|
6740
6740
|
children: i?.label ?? e
|
|
6741
6741
|
}),
|
|
6742
|
-
n === e ? /* @__PURE__ */ X(
|
|
6742
|
+
n === e ? /* @__PURE__ */ X(Rn, {
|
|
6743
6743
|
icon: fc,
|
|
6744
6744
|
color: "default"
|
|
6745
6745
|
}) : null
|
|
6746
6746
|
]
|
|
6747
6747
|
})
|
|
6748
|
-
}), /* @__PURE__ */ X(
|
|
6748
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ Z(gn, { children: [a("dropdown-single") ? /* @__PURE__ */ X(Sn, {
|
|
6749
6749
|
onClick: () => o("dropdown-single", e),
|
|
6750
6750
|
children: /* @__PURE__ */ Z("div", {
|
|
6751
6751
|
className: "flex w-full flex-row items-center gap-2",
|
|
6752
6752
|
children: [
|
|
6753
|
-
/* @__PURE__ */ X(
|
|
6753
|
+
/* @__PURE__ */ X(Rn, {
|
|
6754
6754
|
icon: fc,
|
|
6755
6755
|
color: "default"
|
|
6756
6756
|
}),
|
|
@@ -6758,18 +6758,18 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6758
6758
|
className: "flex-1",
|
|
6759
6759
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
6760
6760
|
}),
|
|
6761
|
-
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(
|
|
6761
|
+
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(Rn, {
|
|
6762
6762
|
icon: fc,
|
|
6763
6763
|
color: "default"
|
|
6764
6764
|
}) : null
|
|
6765
6765
|
]
|
|
6766
6766
|
})
|
|
6767
|
-
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(
|
|
6767
|
+
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(Sn, {
|
|
6768
6768
|
onClick: () => o("dropdown-multi", e),
|
|
6769
6769
|
children: /* @__PURE__ */ Z("div", {
|
|
6770
6770
|
className: "flex w-full flex-row items-center gap-2",
|
|
6771
6771
|
children: [
|
|
6772
|
-
/* @__PURE__ */ X(
|
|
6772
|
+
/* @__PURE__ */ X(Rn, {
|
|
6773
6773
|
icon: ji,
|
|
6774
6774
|
color: "default"
|
|
6775
6775
|
}),
|
|
@@ -6777,7 +6777,7 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6777
6777
|
className: "flex-1",
|
|
6778
6778
|
children: c("surveyFormBuilder.labels.multiSelection")
|
|
6779
6779
|
}),
|
|
6780
|
-
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(
|
|
6780
|
+
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(Rn, {
|
|
6781
6781
|
icon: fc,
|
|
6782
6782
|
color: "default"
|
|
6783
6783
|
}) : null
|
|
@@ -6785,19 +6785,19 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6785
6785
|
})
|
|
6786
6786
|
}) : null] }) })] }, e);
|
|
6787
6787
|
})] }) : null] }) })] });
|
|
6788
|
-
}, Hp = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(
|
|
6788
|
+
}, Hp = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(Sn, {
|
|
6789
6789
|
onClick: n,
|
|
6790
6790
|
className: H(r ? "text-f1-foreground-critical" : void 0),
|
|
6791
6791
|
children: /* @__PURE__ */ Z("div", {
|
|
6792
6792
|
className: "flex w-full flex-row items-center gap-2",
|
|
6793
|
-
children: [/* @__PURE__ */ X(
|
|
6793
|
+
children: [/* @__PURE__ */ X(Rn, { icon: t }), /* @__PURE__ */ X("span", {
|
|
6794
6794
|
className: "flex-1",
|
|
6795
6795
|
children: e
|
|
6796
6796
|
})]
|
|
6797
6797
|
})
|
|
6798
6798
|
}), Up = ({ showDuplicate: e, showDelete: t, withSeparator: n, onDuplicate: r, onDelete: i }) => {
|
|
6799
|
-
let { t: a } =
|
|
6800
|
-
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(
|
|
6799
|
+
let { t: a } = B(), { labels: o } = Dp();
|
|
6800
|
+
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(Dn, {}) : null, /* @__PURE__ */ Z(bn, { children: [e ? /* @__PURE__ */ X(Hp, {
|
|
6801
6801
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
6802
6802
|
icon: ro,
|
|
6803
6803
|
onClick: r
|
|
@@ -6809,18 +6809,18 @@ var Bp = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(C
|
|
|
6809
6809
|
}) : null] })] });
|
|
6810
6810
|
};
|
|
6811
6811
|
function Wp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQuestion: i = !0, hiddenActions: a }) {
|
|
6812
|
-
let { t: o } =
|
|
6812
|
+
let { t: o } = B(), { isQuestionTypeAllowed: s, labels: c } = Dp(), { question: l, questionTypes: u, currentRatingType: d, currentDatasetKey: f, isMultiSelectEnabled: p, isAllowCreateEnabled: m, datasetHasOnCreate: h, disallowOptionalQuestions: g, handleChangeRequired: _, handleSelectQuestionType: v, handleSelectRatingType: y, handleToggleMultiSelect: b, handleToggleAllowCreate: x, handleDuplicate: S, handleDelete: C } = zp({
|
|
6813
6813
|
questionId: n,
|
|
6814
6814
|
questionType: r,
|
|
6815
6815
|
canDelete: i
|
|
6816
6816
|
}), w = (e) => a?.includes(e) ?? !1, T = !g && !w("required"), E = !!f && !w("multiSelect"), D = !!f && h && r === "dropdown-single" && !w("allowCreate"), O = !w("questionType"), k = !w("duplicate"), A = i && !w("delete");
|
|
6817
|
-
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(
|
|
6817
|
+
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(mn, {
|
|
6818
6818
|
open: e,
|
|
6819
6819
|
onOpenChange: t,
|
|
6820
|
-
children: [/* @__PURE__ */ X(
|
|
6820
|
+
children: [/* @__PURE__ */ X(kn, {
|
|
6821
6821
|
tabIndex: -1,
|
|
6822
6822
|
asChild: !0,
|
|
6823
|
-
children: /* @__PURE__ */ X(
|
|
6823
|
+
children: /* @__PURE__ */ X(R, {
|
|
6824
6824
|
icon: Pi,
|
|
6825
6825
|
label: o("surveyFormBuilder.labels.actions"),
|
|
6826
6826
|
size: "md",
|
|
@@ -6828,7 +6828,7 @@ function Wp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6828
6828
|
tooltip: !1,
|
|
6829
6829
|
hideLabel: !0
|
|
6830
6830
|
})
|
|
6831
|
-
}), /* @__PURE__ */ Z(
|
|
6831
|
+
}), /* @__PURE__ */ Z(qn, {
|
|
6832
6832
|
className: "w-80",
|
|
6833
6833
|
align: "start",
|
|
6834
6834
|
children: [
|
|
@@ -6836,25 +6836,25 @@ function Wp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
6836
6836
|
className: "p-4 pb-2 font-medium text-f1-foreground-secondary",
|
|
6837
6837
|
children: c?.questionOptions ?? o("surveyFormBuilder.labels.questionOptions")
|
|
6838
6838
|
}),
|
|
6839
|
-
T ? /* @__PURE__ */ X(
|
|
6839
|
+
T ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Bp, {
|
|
6840
6840
|
label: o("surveyFormBuilder.labels.required"),
|
|
6841
6841
|
icon: Ra,
|
|
6842
6842
|
checked: !!l?.required,
|
|
6843
6843
|
onChange: _
|
|
6844
6844
|
}) }) : null,
|
|
6845
|
-
E ? /* @__PURE__ */ X(
|
|
6845
|
+
E ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Bp, {
|
|
6846
6846
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
6847
6847
|
icon: ji,
|
|
6848
6848
|
checked: p,
|
|
6849
6849
|
onChange: b
|
|
6850
6850
|
}) }) : null,
|
|
6851
|
-
D ? /* @__PURE__ */ X(
|
|
6851
|
+
D ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Bp, {
|
|
6852
6852
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
6853
6853
|
icon: Os,
|
|
6854
6854
|
checked: m,
|
|
6855
6855
|
onChange: x
|
|
6856
6856
|
}) }) : null,
|
|
6857
|
-
O ? /* @__PURE__ */ X(
|
|
6857
|
+
O ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Vp, {
|
|
6858
6858
|
label: c?.questionType ?? o("surveyFormBuilder.labels.questionType"),
|
|
6859
6859
|
value: r,
|
|
6860
6860
|
currentDatasetKey: f,
|
|
@@ -6882,13 +6882,13 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
6882
6882
|
className: t,
|
|
6883
6883
|
children: n
|
|
6884
6884
|
});
|
|
6885
|
-
return e ? /* @__PURE__ */ X(
|
|
6885
|
+
return e ? /* @__PURE__ */ X(pn, {
|
|
6886
6886
|
instant: !0,
|
|
6887
6887
|
...e,
|
|
6888
6888
|
children: r
|
|
6889
6889
|
}) : r;
|
|
6890
6890
|
}, Kp = ({ id: e, title: t, description: n, children: r, required: i, type: a, hiddenActions: o, locked: s, lockedFields: c, lockedNote: l }) => {
|
|
6891
|
-
let { onQuestionChange: u, onAddNewElement: d, disabled: f, answering: p, getIsSingleQuestionInSection: m, getSectionContainingQuestion: h, isQuestionTypeAllowed: g, placeholders: _, labels: v } = Dp(), y = h(e), b = !!y?.locked || !!s, x = b || !!c?.includes("title"), S = b || !!c?.includes("description"), C = !b && (x || S), w = !!y, [T, E] = J(!1), [D, O] = J(!1), { isDragging: k } = Ap(), { t: A } =
|
|
6891
|
+
let { onQuestionChange: u, onAddNewElement: d, disabled: f, answering: p, getIsSingleQuestionInSection: m, getSectionContainingQuestion: h, isQuestionTypeAllowed: g, placeholders: _, labels: v } = Dp(), y = h(e), b = !!y?.locked || !!s, x = b || !!c?.includes("title"), S = b || !!c?.includes("description"), C = !b && (x || S), w = !!y, [T, E] = J(!1), [D, O] = J(!1), { isDragging: k } = Ap(), { t: A } = B(), j = _?.questionTitle ?? A("surveyFormBuilder.labels.titlePlaceholder"), M = v?.addQuestion ?? A("surveyFormBuilder.actions.addQuestion"), N = _?.questionDescription ?? A("surveyFormBuilder.labels.questionDescriptionPlaceholder"), P = (t) => {
|
|
6892
6892
|
u?.({
|
|
6893
6893
|
id: e,
|
|
6894
6894
|
type: a,
|
|
@@ -6953,12 +6953,12 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
6953
6953
|
}) : null]
|
|
6954
6954
|
})] })
|
|
6955
6955
|
}),
|
|
6956
|
-
!p && b ? /* @__PURE__ */ X("div", { children: le ? /* @__PURE__ */ X(
|
|
6956
|
+
!p && b ? /* @__PURE__ */ X("div", { children: le ? /* @__PURE__ */ X(pn, {
|
|
6957
6957
|
instant: !0,
|
|
6958
6958
|
...le,
|
|
6959
6959
|
children: /* @__PURE__ */ X("span", {
|
|
6960
6960
|
className: "inline-flex",
|
|
6961
|
-
children: /* @__PURE__ */ X(
|
|
6961
|
+
children: /* @__PURE__ */ X(R, {
|
|
6962
6962
|
icon: As,
|
|
6963
6963
|
label: A("surveyFormBuilder.labels.locked"),
|
|
6964
6964
|
size: "md",
|
|
@@ -6969,7 +6969,7 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
6969
6969
|
withoutDisabledAppearance: !0
|
|
6970
6970
|
})
|
|
6971
6971
|
})
|
|
6972
|
-
}) : /* @__PURE__ */ X(
|
|
6972
|
+
}) : /* @__PURE__ */ X(R, {
|
|
6973
6973
|
icon: As,
|
|
6974
6974
|
label: A("surveyFormBuilder.labels.locked"),
|
|
6975
6975
|
size: "md",
|
|
@@ -7013,27 +7013,27 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7013
7013
|
}) : null,
|
|
7014
7014
|
!f && !p && !b ? /* @__PURE__ */ X("div", {
|
|
7015
7015
|
className: H("absolute bottom-0 left-1/2 translate-x-[-50%] translate-y-[50%] bg-f1-background opacity-0 group-hover/question:opacity-100", T && "opacity-100"),
|
|
7016
|
-
children: /* @__PURE__ */ Z(
|
|
7016
|
+
children: /* @__PURE__ */ Z(mn, {
|
|
7017
7017
|
open: T,
|
|
7018
7018
|
onOpenChange: E,
|
|
7019
|
-
children: [/* @__PURE__ */ X(
|
|
7019
|
+
children: [/* @__PURE__ */ X(kn, {
|
|
7020
7020
|
asChild: !0,
|
|
7021
|
-
children: /* @__PURE__ */ X(
|
|
7021
|
+
children: /* @__PURE__ */ X(R, {
|
|
7022
7022
|
icon: Ao,
|
|
7023
7023
|
label: M,
|
|
7024
7024
|
size: "sm",
|
|
7025
7025
|
variant: "outline",
|
|
7026
7026
|
hideLabel: !0
|
|
7027
7027
|
})
|
|
7028
|
-
}), /* @__PURE__ */ Z(
|
|
7028
|
+
}), /* @__PURE__ */ Z(qn, {
|
|
7029
7029
|
align: "center",
|
|
7030
7030
|
className: "w-80",
|
|
7031
7031
|
children: [
|
|
7032
|
-
w ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7032
|
+
w ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Sn, {
|
|
7033
7033
|
onClick: ee,
|
|
7034
7034
|
children: /* @__PURE__ */ Z("div", {
|
|
7035
7035
|
className: "flex w-full flex-row items-center gap-2",
|
|
7036
|
-
children: [/* @__PURE__ */ X(
|
|
7036
|
+
children: [/* @__PURE__ */ X(V, {
|
|
7037
7037
|
icon: Ba,
|
|
7038
7038
|
color: "default"
|
|
7039
7039
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -7041,12 +7041,12 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7041
7041
|
children: A("surveyFormBuilder.questionTypes.section")
|
|
7042
7042
|
})]
|
|
7043
7043
|
})
|
|
7044
|
-
}), /* @__PURE__ */ X(
|
|
7045
|
-
L.map((e) => /* @__PURE__ */ X(
|
|
7044
|
+
}), /* @__PURE__ */ X(Dn, {})] }),
|
|
7045
|
+
L.map((e) => /* @__PURE__ */ X(Sn, {
|
|
7046
7046
|
onClick: () => I(e.questionType),
|
|
7047
7047
|
children: /* @__PURE__ */ Z("div", {
|
|
7048
7048
|
className: "flex w-full flex-row items-center gap-2",
|
|
7049
|
-
children: [/* @__PURE__ */ X(
|
|
7049
|
+
children: [/* @__PURE__ */ X(V, {
|
|
7050
7050
|
icon: e.icon,
|
|
7051
7051
|
color: "default"
|
|
7052
7052
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -7055,13 +7055,13 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7055
7055
|
})]
|
|
7056
7056
|
})
|
|
7057
7057
|
}, e.questionType)),
|
|
7058
|
-
ne.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7058
|
+
ne.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Dn, {}), ne.map((e) => {
|
|
7059
7059
|
let t = te.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
7060
|
-
return /* @__PURE__ */ Z(
|
|
7060
|
+
return /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
7061
7061
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7062
7062
|
children: /* @__PURE__ */ Z("div", {
|
|
7063
7063
|
className: "flex w-full flex-row items-center gap-2",
|
|
7064
|
-
children: [t ? /* @__PURE__ */ X(
|
|
7064
|
+
children: [t ? /* @__PURE__ */ X(V, {
|
|
7065
7065
|
icon: t.icon,
|
|
7066
7066
|
color: "default"
|
|
7067
7067
|
}) : null, /* @__PURE__ */ X("span", {
|
|
@@ -7069,11 +7069,11 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7069
7069
|
children: t?.label ?? e
|
|
7070
7070
|
})]
|
|
7071
7071
|
})
|
|
7072
|
-
}), /* @__PURE__ */ X(
|
|
7072
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ Z(gn, { children: [g("dropdown-single") ? /* @__PURE__ */ X(Sn, {
|
|
7073
7073
|
onClick: () => I("dropdown-single", e),
|
|
7074
7074
|
children: /* @__PURE__ */ Z("div", {
|
|
7075
7075
|
className: "flex w-full flex-row items-center gap-2",
|
|
7076
|
-
children: [/* @__PURE__ */ X(
|
|
7076
|
+
children: [/* @__PURE__ */ X(V, {
|
|
7077
7077
|
icon: fc,
|
|
7078
7078
|
color: "default"
|
|
7079
7079
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -7081,11 +7081,11 @@ var Gp = ({ notice: e, className: t, children: n }) => {
|
|
|
7081
7081
|
children: A("surveyFormBuilder.labels.singleSelection")
|
|
7082
7082
|
})]
|
|
7083
7083
|
})
|
|
7084
|
-
}) : null, g("dropdown-multi") ? /* @__PURE__ */ X(
|
|
7084
|
+
}) : null, g("dropdown-multi") ? /* @__PURE__ */ X(Sn, {
|
|
7085
7085
|
onClick: () => I("dropdown-multi", e),
|
|
7086
7086
|
children: /* @__PURE__ */ Z("div", {
|
|
7087
7087
|
className: "flex w-full flex-row items-center gap-2",
|
|
7088
|
-
children: [/* @__PURE__ */ X(
|
|
7088
|
+
children: [/* @__PURE__ */ X(V, {
|
|
7089
7089
|
icon: ji,
|
|
7090
7090
|
color: "default"
|
|
7091
7091
|
}), /* @__PURE__ */ X("span", {
|
|
@@ -7111,7 +7111,7 @@ function qp(e) {
|
|
|
7111
7111
|
//#endregion
|
|
7112
7112
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/QuestionTypes/CheckboxQuestion/CheckboxQuestion.tsx
|
|
7113
7113
|
var Jp = ({ value: e, label: t, ...n }) => {
|
|
7114
|
-
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = Dp(), s = qp(n), { t: c } =
|
|
7114
|
+
let { onQuestionChange: r, answering: i, disabled: a, getSectionContainingQuestion: o } = Dp(), s = qp(n), { t: c } = B();
|
|
7115
7115
|
if (i) return /* @__PURE__ */ X(Kp, {
|
|
7116
7116
|
...n,
|
|
7117
7117
|
children: /* @__PURE__ */ X(Ds, {
|
|
@@ -7156,7 +7156,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7156
7156
|
})
|
|
7157
7157
|
});
|
|
7158
7158
|
}, Yp = ({ value: e, ...t }) => {
|
|
7159
|
-
let { onQuestionChange: n } = Dp(), r = qp(t), { t: i } =
|
|
7159
|
+
let { onQuestionChange: n } = Dp(), r = qp(t), { t: i } = B(), a = {
|
|
7160
7160
|
id: t.id,
|
|
7161
7161
|
type: "date",
|
|
7162
7162
|
label: i("surveyFormBuilder.answer.label"),
|
|
@@ -7179,7 +7179,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7179
7179
|
})
|
|
7180
7180
|
});
|
|
7181
7181
|
}, Xp = ({ datasetKey: e, showSearchBox: t, searchBoxPlaceholder: n, ...r }) => {
|
|
7182
|
-
let { onQuestionChange: i, answering: a, datasets: o } = Dp(), s = qp(r), { t: c } =
|
|
7182
|
+
let { onQuestionChange: i, answering: a, datasets: o } = Dp(), s = qp(r), { t: c } = B(), l = o?.[e];
|
|
7183
7183
|
if (!l) throw Error(`Dataset "${e}" not found for ${r.type}`);
|
|
7184
7184
|
let u = r.type === "dropdown-multi", d = t ?? !0, f = r.type === "dropdown-single" ? r.allowCreate : void 0, p = a && !u && f && l.onCreate ? async (e) => {
|
|
7185
7185
|
try {
|
|
@@ -7249,7 +7249,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7249
7249
|
progress: 0,
|
|
7250
7250
|
status: "idle"
|
|
7251
7251
|
}), $p = ({ value: e, useUpload: t, accept: n, maxSizeMB: r, ...i }) => {
|
|
7252
|
-
let { onQuestionChange: a, useUpload: o } = Dp(), s = qp(i), { t: c } =
|
|
7252
|
+
let { onQuestionChange: a, useUpload: o } = Dp(), s = qp(i), { t: c } = B(), l = t ?? o, u = {
|
|
7253
7253
|
id: i.id,
|
|
7254
7254
|
type: "file",
|
|
7255
7255
|
label: c("surveyFormBuilder.answer.label"),
|
|
@@ -7275,7 +7275,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7275
7275
|
})
|
|
7276
7276
|
});
|
|
7277
7277
|
}, em = ({ value: e, ...t }) => {
|
|
7278
|
-
let { t: n } =
|
|
7278
|
+
let { t: n } = B(), { onQuestionChange: r, answering: i } = Dp(), a = qp(t), o = n("surveyFormBuilder.answer.linkPlaceholder"), s = {
|
|
7279
7279
|
id: t.id,
|
|
7280
7280
|
type: "text",
|
|
7281
7281
|
inputType: "url",
|
|
@@ -7300,7 +7300,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7300
7300
|
})
|
|
7301
7301
|
});
|
|
7302
7302
|
}, tm = ({ value: e, ...t }) => {
|
|
7303
|
-
let { t: n } =
|
|
7303
|
+
let { t: n } = B(), { onQuestionChange: r, answering: i } = Dp(), a = qp(t), o = (e) => {
|
|
7304
7304
|
r?.({
|
|
7305
7305
|
...t,
|
|
7306
7306
|
type: "numeric",
|
|
@@ -7342,12 +7342,12 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7342
7342
|
onClick: () => {
|
|
7343
7343
|
i || n(o);
|
|
7344
7344
|
},
|
|
7345
|
-
children: a ? /* @__PURE__ */ Z(
|
|
7345
|
+
children: a ? /* @__PURE__ */ Z(er, {
|
|
7346
7346
|
open: !i && c,
|
|
7347
7347
|
onOpenChange: i ? void 0 : l,
|
|
7348
|
-
children: [/* @__PURE__ */ X(
|
|
7348
|
+
children: [/* @__PURE__ */ X(Pn, {
|
|
7349
7349
|
asChild: !0,
|
|
7350
|
-
children: /* @__PURE__ */ X(
|
|
7350
|
+
children: /* @__PURE__ */ X(R, {
|
|
7351
7351
|
emoji: s,
|
|
7352
7352
|
label: o.toString(),
|
|
7353
7353
|
variant: "ghost",
|
|
@@ -7355,7 +7355,7 @@ var Jp = ({ value: e, label: t, ...n }) => {
|
|
|
7355
7355
|
withoutDisabledAppearance: !0,
|
|
7356
7356
|
hideLabel: !0
|
|
7357
7357
|
})
|
|
7358
|
-
}), /* @__PURE__ */ X(
|
|
7358
|
+
}), /* @__PURE__ */ X(Gn, {
|
|
7359
7359
|
side: "bottom",
|
|
7360
7360
|
align: "center",
|
|
7361
7361
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -7449,7 +7449,7 @@ function om({ checked: e, disabled: t }) {
|
|
|
7449
7449
|
});
|
|
7450
7450
|
}
|
|
7451
7451
|
var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i, disabled: a, answering: o, selected: s, correct: c, locked: l, type: u }) => {
|
|
7452
|
-
let { value: d, label: f } = t, { isDragging: p, setIsDragging: m, setDraggedItemId: h, draggedItemId: g } = Ap(), { t: _ } =
|
|
7452
|
+
let { value: d, label: f } = t, { isDragging: p, setIsDragging: m, setDraggedItemId: h, draggedItemId: g } = Ap(), { t: _ } = B(), v = p && g === d, y = () => {
|
|
7453
7453
|
(a || o) && n(d);
|
|
7454
7454
|
}, b = (t) => {
|
|
7455
7455
|
r({
|
|
@@ -7502,7 +7502,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7502
7502
|
className: H("hidden scale-75 cursor-grab", D && "active:cursor-grabbing", E && "group-hover:block", p && "cursor-grabbing", !D && "cursor-not-allowed"),
|
|
7503
7503
|
children: /* @__PURE__ */ X("div", {
|
|
7504
7504
|
className: H("flex aspect-square scale-90 items-center justify-center", u === "multi-select" ? "w-6" : "w-5"),
|
|
7505
|
-
children: /* @__PURE__ */ X(
|
|
7505
|
+
children: /* @__PURE__ */ X(Rn, {
|
|
7506
7506
|
icon: Wa,
|
|
7507
7507
|
size: "sm"
|
|
7508
7508
|
})
|
|
@@ -7523,13 +7523,13 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7523
7523
|
}) : null,
|
|
7524
7524
|
!a && !o && !l ? /* @__PURE__ */ Z("div", {
|
|
7525
7525
|
className: "hidden flex-row items-center gap-1 group-hover:inline-block",
|
|
7526
|
-
children: [/* @__PURE__ */ X(
|
|
7526
|
+
children: [/* @__PURE__ */ X(R, {
|
|
7527
7527
|
label: _("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
7528
7528
|
variant: "ghost",
|
|
7529
7529
|
icon: c ? Ir : Ta,
|
|
7530
7530
|
onClick: x,
|
|
7531
7531
|
hideLabel: !0
|
|
7532
|
-
}), /* @__PURE__ */ X(
|
|
7532
|
+
}), /* @__PURE__ */ X(R, {
|
|
7533
7533
|
label: _("surveyFormBuilder.selectQuestion.remove"),
|
|
7534
7534
|
variant: "ghost",
|
|
7535
7535
|
icon: sa,
|
|
@@ -7541,7 +7541,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7541
7541
|
})
|
|
7542
7542
|
});
|
|
7543
7543
|
}, cm = ({ options: e, ...t }) => {
|
|
7544
|
-
let { onQuestionChange: n, disabled: r, answering: i, getSectionContainingQuestion: a } = Dp(), o = new Set(e.map((e) => e.value)).size !== e.length, s = a(t.id)?.locked || t.locked, { t: c } =
|
|
7544
|
+
let { onQuestionChange: n, disabled: r, answering: i, getSectionContainingQuestion: a } = Dp(), o = new Set(e.map((e) => e.value)).size !== e.length, s = a(t.id)?.locked || t.locked, { t: c } = B(), l = K(() => ({
|
|
7545
7545
|
id: t.id,
|
|
7546
7546
|
type: t.type,
|
|
7547
7547
|
options: e
|
|
@@ -7658,7 +7658,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7658
7658
|
})
|
|
7659
7659
|
}) }), !r && !i && !s ? /* @__PURE__ */ X("div", {
|
|
7660
7660
|
className: "opacity-70",
|
|
7661
|
-
children: /* @__PURE__ */ X(
|
|
7661
|
+
children: /* @__PURE__ */ X(R, {
|
|
7662
7662
|
label: c("surveyFormBuilder.selectQuestion.addOption"),
|
|
7663
7663
|
variant: "ghost",
|
|
7664
7664
|
icon: Ao,
|
|
@@ -7668,7 +7668,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7668
7668
|
})
|
|
7669
7669
|
});
|
|
7670
7670
|
}, lm = ({ value: e, ...t }) => {
|
|
7671
|
-
let { onQuestionChange: n, answering: r, placeholders: i } = Dp(), a = qp(t), { t: o } =
|
|
7671
|
+
let { onQuestionChange: n, answering: r, placeholders: i } = Dp(), a = qp(t), { t: o } = B(), s = i?.answer ?? o("surveyFormBuilder.answer.textPlaceholder"), c = K(() => t.type === "text" ? {
|
|
7672
7672
|
id: t.id,
|
|
7673
7673
|
type: "text",
|
|
7674
7674
|
label: o("surveyFormBuilder.answer.label"),
|
|
@@ -7719,7 +7719,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7719
7719
|
default: throw Error("Invalid question type provided");
|
|
7720
7720
|
}
|
|
7721
7721
|
}, dm = () => {
|
|
7722
|
-
let { t: e } =
|
|
7722
|
+
let { t: e } = B();
|
|
7723
7723
|
return /* @__PURE__ */ Z("div", {
|
|
7724
7724
|
className: "mt-8 ml-7 flex flex-row items-center gap-4",
|
|
7725
7725
|
children: [
|
|
@@ -7758,7 +7758,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7758
7758
|
onPointerDown: (e) => {
|
|
7759
7759
|
h && c.start(e);
|
|
7760
7760
|
},
|
|
7761
|
-
children: /* @__PURE__ */ X(
|
|
7761
|
+
children: /* @__PURE__ */ X(V, {
|
|
7762
7762
|
icon: Wa,
|
|
7763
7763
|
size: "sm"
|
|
7764
7764
|
})
|
|
@@ -7788,7 +7788,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7788
7788
|
onPointerDown: (e) => {
|
|
7789
7789
|
f && i.start(e);
|
|
7790
7790
|
},
|
|
7791
|
-
children: /* @__PURE__ */ X(
|
|
7791
|
+
children: /* @__PURE__ */ X(V, {
|
|
7792
7792
|
icon: Wa,
|
|
7793
7793
|
size: "sm"
|
|
7794
7794
|
})
|
|
@@ -7796,7 +7796,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7796
7796
|
})
|
|
7797
7797
|
});
|
|
7798
7798
|
}, mm = ({ id: e, title: t = "", description: n, lockedNote: r, questions: i = [], locked: a, hideQuestions: o }) => {
|
|
7799
|
-
let { onSectionChange: s, disabled: c, answering: l, deleteElement: u, onDuplicateElement: d, placeholders: f } = Dp(), [p, m] = J(!1), { t: h } =
|
|
7799
|
+
let { onSectionChange: s, disabled: c, answering: l, deleteElement: u, onDuplicateElement: d, placeholders: f } = Dp(), [p, m] = J(!1), { t: h } = B(), g = f?.sectionTitle ?? h("surveyFormBuilder.labels.sectionTitlePlaceholder"), _ = K(() => ({
|
|
7800
7800
|
id: e,
|
|
7801
7801
|
title: t,
|
|
7802
7802
|
description: n
|
|
@@ -7864,7 +7864,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7864
7864
|
}) : null,
|
|
7865
7865
|
D ? /* @__PURE__ */ X("div", {
|
|
7866
7866
|
className: "ml-auto flex shrink-0 items-center",
|
|
7867
|
-
children: /* @__PURE__ */ X(
|
|
7867
|
+
children: /* @__PURE__ */ X(pn, {
|
|
7868
7868
|
description: E,
|
|
7869
7869
|
instant: !0,
|
|
7870
7870
|
children: /* @__PURE__ */ X("span", {
|
|
@@ -7881,7 +7881,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7881
7881
|
open: p,
|
|
7882
7882
|
onOpenChange: m,
|
|
7883
7883
|
align: "start",
|
|
7884
|
-
children: /* @__PURE__ */ X(
|
|
7884
|
+
children: /* @__PURE__ */ X(R, {
|
|
7885
7885
|
icon: Pi,
|
|
7886
7886
|
label: h("surveyFormBuilder.actions.actions"),
|
|
7887
7887
|
size: "md",
|
|
@@ -7950,7 +7950,7 @@ var sm = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
7950
7950
|
onPointerDown: (e) => {
|
|
7951
7951
|
o.start(e);
|
|
7952
7952
|
},
|
|
7953
|
-
children: /* @__PURE__ */ X(
|
|
7953
|
+
children: /* @__PURE__ */ X(V, {
|
|
7954
7954
|
icon: Wa,
|
|
7955
7955
|
size: "sm"
|
|
7956
7956
|
})
|
|
@@ -8151,7 +8151,7 @@ function xm(e, t) {
|
|
|
8151
8151
|
return i;
|
|
8152
8152
|
}
|
|
8153
8153
|
var Sm = ({ elements: e, onChange: t, answering: n }) => {
|
|
8154
|
-
let { t: r } =
|
|
8154
|
+
let { t: r } = B(), { disabled: i, labels: a } = Dp(), { portalContainer: o } = Oc(is), s = vm(e, {
|
|
8155
8155
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
8156
8156
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
8157
8157
|
duplicateQuestionLabel: a?.duplicateQuestion ?? r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -8298,7 +8298,7 @@ var Tm = (e, t, n) => {
|
|
|
8298
8298
|
}, s.id)), o++;
|
|
8299
8299
|
}
|
|
8300
8300
|
return /* @__PURE__ */ X(Y, { children: a });
|
|
8301
|
-
}, Om =
|
|
8301
|
+
}, Om = z(({ elements: e, disabled: t, onChange: n, disallowOptionalQuestions: r, allowedQuestionTypes: i, applyingChanges: a, useUpload: o, datasets: s, placeholders: c, labels: l, skipDefaultSection: u }) => {
|
|
8302
8302
|
let d = !t, f = K(() => e.map((e) => e.type === "question" ? {
|
|
8303
8303
|
...e,
|
|
8304
8304
|
question: {
|
|
@@ -8349,7 +8349,7 @@ var Tm = (e, t, n) => {
|
|
|
8349
8349
|
onChange: n
|
|
8350
8350
|
}) : null, /* @__PURE__ */ Z("div", {
|
|
8351
8351
|
className: "relative flex flex-1 flex-col",
|
|
8352
|
-
children: [/* @__PURE__ */ Z(
|
|
8352
|
+
children: [/* @__PURE__ */ Z(ar.div, {
|
|
8353
8353
|
className: H("flex w-full max-w-[750px] self-center flex-col gap-6", a && "pointer-events-none"),
|
|
8354
8354
|
initial: { filter: "blur(0px)" },
|
|
8355
8355
|
animate: { filter: a ? "blur(2px)" : "none" },
|
|
@@ -8370,7 +8370,7 @@ var Tm = (e, t, n) => {
|
|
|
8370
8370
|
})
|
|
8371
8371
|
})
|
|
8372
8372
|
}), d ? /* @__PURE__ */ X(Np, {}) : null]
|
|
8373
|
-
}), a ? /* @__PURE__ */ X(
|
|
8373
|
+
}), a ? /* @__PURE__ */ X(ar.div, {
|
|
8374
8374
|
className: "sticky bottom-1/2 left-0 z-50 flex w-full items-center justify-center",
|
|
8375
8375
|
initial: {
|
|
8376
8376
|
opacity: 0,
|
|
@@ -8400,27 +8400,27 @@ function km({ titleWidth: e, descriptionWidth: t, answer: n }) {
|
|
|
8400
8400
|
className: "flex flex-col gap-4 rounded-xl border border-solid border-f1-border-secondary bg-f1-background p-4",
|
|
8401
8401
|
children: [/* @__PURE__ */ Z("div", {
|
|
8402
8402
|
className: "flex flex-col gap-2",
|
|
8403
|
-
children: [/* @__PURE__ */ X(
|
|
8403
|
+
children: [/* @__PURE__ */ X(Hn, {
|
|
8404
8404
|
className: "h-5 rounded-sm",
|
|
8405
8405
|
style: { width: e }
|
|
8406
|
-
}), t ? /* @__PURE__ */ X(
|
|
8406
|
+
}), t ? /* @__PURE__ */ X(Hn, {
|
|
8407
8407
|
className: "h-4 rounded-sm",
|
|
8408
8408
|
style: { width: t }
|
|
8409
8409
|
}) : null]
|
|
8410
8410
|
}), n]
|
|
8411
8411
|
});
|
|
8412
8412
|
}
|
|
8413
|
-
var Am = /* @__PURE__ */ X(
|
|
8413
|
+
var Am = /* @__PURE__ */ X(Hn, { className: "h-10 w-full rounded-sm" }), jm = /* @__PURE__ */ X(Hn, { className: "h-24 w-full rounded-sm" }), Mm = /* @__PURE__ */ X(Hn, { className: "h-10 w-56 max-w-full rounded-sm" });
|
|
8414
8414
|
function Nm() {
|
|
8415
8415
|
return /* @__PURE__ */ X("div", {
|
|
8416
8416
|
className: "grid grid-cols-5 gap-2 sm:max-w-80",
|
|
8417
|
-
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(
|
|
8417
|
+
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(Hn, { className: "h-9 rounded-sm" }, t))
|
|
8418
8418
|
});
|
|
8419
8419
|
}
|
|
8420
8420
|
function Pm({ count: e }) {
|
|
8421
8421
|
return /* @__PURE__ */ X("div", {
|
|
8422
8422
|
className: "flex flex-col gap-2",
|
|
8423
|
-
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(
|
|
8423
|
+
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(Hn, {
|
|
8424
8424
|
className: "h-7 w-56 max-w-full rounded-sm",
|
|
8425
8425
|
style: { width: `${Math.max(52, 76 - t * 7)}%` }
|
|
8426
8426
|
}, t))
|
|
@@ -8429,7 +8429,7 @@ function Pm({ count: e }) {
|
|
|
8429
8429
|
function Fm() {
|
|
8430
8430
|
return /* @__PURE__ */ X("div", {
|
|
8431
8431
|
className: "flex flex-wrap gap-2",
|
|
8432
|
-
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(
|
|
8432
|
+
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ X(Hn, {
|
|
8433
8433
|
className: "h-8 rounded-sm",
|
|
8434
8434
|
style: { width: `${18 + t * 3}%` }
|
|
8435
8435
|
}, t))
|
|
@@ -8445,7 +8445,7 @@ function Im() {
|
|
|
8445
8445
|
className: "flex flex-col gap-5",
|
|
8446
8446
|
children: [/* @__PURE__ */ Z("div", {
|
|
8447
8447
|
className: "flex flex-col gap-2 px-5",
|
|
8448
|
-
children: [/* @__PURE__ */ X(
|
|
8448
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-6 w-56 rounded-sm" }), /* @__PURE__ */ X(Hn, { className: "h-4 w-80 max-w-full rounded-sm" })]
|
|
8449
8449
|
}), /* @__PURE__ */ X("div", {
|
|
8450
8450
|
className: "flex flex-col gap-4",
|
|
8451
8451
|
children: e === 0 ? /* @__PURE__ */ Z(Y, { children: [
|
|
@@ -8513,7 +8513,7 @@ function Lm() {
|
|
|
8513
8513
|
"aria-live": "polite",
|
|
8514
8514
|
children: [/* @__PURE__ */ Z("div", {
|
|
8515
8515
|
className: "flex flex-col gap-2 px-5",
|
|
8516
|
-
children: [/* @__PURE__ */ X(
|
|
8516
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-6 w-52 rounded-sm" }), /* @__PURE__ */ X(Hn, { className: "h-4 w-72 max-w-full rounded-sm" })]
|
|
8517
8517
|
}), /* @__PURE__ */ X(km, {
|
|
8518
8518
|
titleWidth: "74%",
|
|
8519
8519
|
descriptionWidth: "50%",
|
|
@@ -8611,7 +8611,7 @@ function Vm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
8611
8611
|
}),
|
|
8612
8612
|
u ? /* @__PURE__ */ X("div", {
|
|
8613
8613
|
className: "min-h-8 p-1",
|
|
8614
|
-
children: /* @__PURE__ */ X(
|
|
8614
|
+
children: /* @__PURE__ */ X(V, {
|
|
8615
8615
|
icon: t.correct ? Ta : Ir,
|
|
8616
8616
|
color: t.correct ? "positive" : "critical",
|
|
8617
8617
|
"aria-hidden": !0
|
|
@@ -9134,7 +9134,7 @@ function rh(e) {
|
|
|
9134
9134
|
return e.inline ? /* @__PURE__ */ X(ah, { ...e }) : /* @__PURE__ */ X(ih, { ...e });
|
|
9135
9135
|
}
|
|
9136
9136
|
function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resourceHeader: a, isOpen: o, onClose: s, position: c = "center", module: l, allowToChangeFullscreen: u = !1, defaultValues: f, errorTriggerMode: p = "on-blur", loading: m = !1, labels: g, preview: _ = !1, useUpload: v, datasets: y }) {
|
|
9137
|
-
let { t: b } =
|
|
9137
|
+
let { t: b } = B(), x = c === "fullscreen", S = c === "fullscreen" ? "center" : c, [C, w] = J(x), { formRef: T, submit: E, isSubmitting: D, hasErrors: O } = Qe(), k = q({}), A = K(() => Qm(e), [e]), j = Rm(A), M = A.length > 0, N = {
|
|
9138
9138
|
title: g?.empty?.title ?? b("surveyAnsweringForm.labels.empty.title"),
|
|
9139
9139
|
description: g?.empty?.description ?? b("surveyAnsweringForm.labels.empty.description"),
|
|
9140
9140
|
emoji: g?.empty?.emoji ?? b("surveyAnsweringForm.labels.empty.emoji")
|
|
@@ -9304,7 +9304,7 @@ function ih({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9304
9304
|
});
|
|
9305
9305
|
}
|
|
9306
9306
|
function ah({ elements: e, title: t, description: n, resourceHeader: r, defaultValues: i, loading: a = !1, labels: o, useUpload: s, datasets: c, hideResourceHeader: l = !1 }) {
|
|
9307
|
-
let { t: u } =
|
|
9307
|
+
let { t: u } = B(), f = K(() => Qm(e), [e]).length > 0, p = {
|
|
9308
9308
|
title: o?.empty?.title ?? u("surveyAnsweringForm.labels.empty.title"),
|
|
9309
9309
|
description: o?.empty?.description ?? u("surveyAnsweringForm.labels.empty.description"),
|
|
9310
9310
|
emoji: o?.empty?.emoji ?? u("surveyAnsweringForm.labels.empty.emoji")
|
|
@@ -9440,7 +9440,7 @@ var lh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
9440
9440
|
children: e.map((e, t) => /* @__PURE__ */ X(uh, { text: e }, t))
|
|
9441
9441
|
}), uh = ({ text: e }) => /* @__PURE__ */ Z("div", {
|
|
9442
9442
|
className: "flex flex-row items-start gap-2",
|
|
9443
|
-
children: [/* @__PURE__ */ X(
|
|
9443
|
+
children: [/* @__PURE__ */ X(V, {
|
|
9444
9444
|
icon: zs,
|
|
9445
9445
|
size: "md",
|
|
9446
9446
|
className: "text-f1-icon-positive"
|
|
@@ -9492,7 +9492,7 @@ var lh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
9492
9492
|
})]
|
|
9493
9493
|
}));
|
|
9494
9494
|
dh.displayName = "ProductBlankslate";
|
|
9495
|
-
var fh =
|
|
9495
|
+
var fh = z(dh);
|
|
9496
9496
|
//#endregion
|
|
9497
9497
|
//#region src/domains/growth/upselling/UpsellingKit/ProductModal/components/CustomModal.tsx
|
|
9498
9498
|
function ph({ isOpen: e, onClose: t, title: n, children: r, module: i, portalContainer: a }) {
|
|
@@ -9516,7 +9516,7 @@ function ph({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
9516
9516
|
module: i,
|
|
9517
9517
|
size: "md"
|
|
9518
9518
|
}) : null, n]
|
|
9519
|
-
}), /* @__PURE__ */ X(
|
|
9519
|
+
}), /* @__PURE__ */ X(ir, {
|
|
9520
9520
|
variant: "outline",
|
|
9521
9521
|
icon: Ir,
|
|
9522
9522
|
onClick: t,
|
|
@@ -9567,14 +9567,14 @@ function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
9567
9567
|
promoTag: g,
|
|
9568
9568
|
actions: /* @__PURE__ */ Z("div", {
|
|
9569
9569
|
className: "flex gap-3",
|
|
9570
|
-
children: [u ? /* @__PURE__ */ X(
|
|
9570
|
+
children: [u ? /* @__PURE__ */ X(R, {
|
|
9571
9571
|
variant: u.variant,
|
|
9572
9572
|
label: E ? s.label : u.label,
|
|
9573
9573
|
icon: u.icon || void 0,
|
|
9574
9574
|
onClick: w,
|
|
9575
9575
|
loading: u.loading,
|
|
9576
9576
|
size: u.size
|
|
9577
|
-
}) : null, p ? /* @__PURE__ */ X(
|
|
9577
|
+
}) : null, p ? /* @__PURE__ */ X(R, {
|
|
9578
9578
|
onClick: p.onClick,
|
|
9579
9579
|
label: p.label,
|
|
9580
9580
|
variant: p.variant,
|
|
@@ -9597,7 +9597,7 @@ function mh({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
9597
9597
|
portalContainer: m
|
|
9598
9598
|
}) : null] });
|
|
9599
9599
|
}
|
|
9600
|
-
var hh =
|
|
9600
|
+
var hh = z(mh);
|
|
9601
9601
|
//#endregion
|
|
9602
9602
|
//#region src/domains/growth/upselling/UpsellingKit/ProductWidget/ProductWidget.tsx
|
|
9603
9603
|
function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i, width: a, trackVisibility: o, actions: s, showConfirmation: c = !0 }) {
|
|
@@ -9613,7 +9613,7 @@ function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9613
9613
|
className: "relative bg-f1-background p-1",
|
|
9614
9614
|
children: [/* @__PURE__ */ Z(da, { children: [i ? /* @__PURE__ */ X("div", {
|
|
9615
9615
|
className: "absolute right-2 top-2 z-10",
|
|
9616
|
-
children: /* @__PURE__ */ X(
|
|
9616
|
+
children: /* @__PURE__ */ X(R, {
|
|
9617
9617
|
variant: "ghost",
|
|
9618
9618
|
icon: Ir,
|
|
9619
9619
|
size: "sm",
|
|
@@ -9653,7 +9653,7 @@ function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9653
9653
|
closeLabel: e.closeLabel,
|
|
9654
9654
|
showConfirmation: c && e.showConfirmation,
|
|
9655
9655
|
variant: e.variant
|
|
9656
|
-
}, e.label) : /* @__PURE__ */ X(
|
|
9656
|
+
}, e.label) : /* @__PURE__ */ X(R, {
|
|
9657
9657
|
label: e.label,
|
|
9658
9658
|
onClick: e.onClick,
|
|
9659
9659
|
variant: e.variant
|
|
@@ -9661,9 +9661,9 @@ function gh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
9661
9661
|
}) : null]
|
|
9662
9662
|
}) });
|
|
9663
9663
|
}
|
|
9664
|
-
var _h =
|
|
9665
|
-
let { actions: t } =
|
|
9666
|
-
return /* @__PURE__ */ X(
|
|
9664
|
+
var _h = z(gh), vh = ({ onDismiss: e }) => {
|
|
9665
|
+
let { actions: t } = B();
|
|
9666
|
+
return /* @__PURE__ */ X(R, {
|
|
9667
9667
|
icon: Ir,
|
|
9668
9668
|
label: t.close,
|
|
9669
9669
|
hideLabel: !0,
|
|
@@ -9687,7 +9687,7 @@ function yh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
9687
9687
|
className: H("flex flex-row gap-2", n ? "items-start" : "items-center"),
|
|
9688
9688
|
children: [e ? /* @__PURE__ */ X("div", {
|
|
9689
9689
|
className: "flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-sm border border-solid text-f1-icon-promote [background:hsl(var(--promote-50)/0.1)] [border-color:hsl(var(--promote-50)/0.1)]",
|
|
9690
|
-
children: /* @__PURE__ */ X(
|
|
9690
|
+
children: /* @__PURE__ */ X(V, {
|
|
9691
9691
|
icon: e,
|
|
9692
9692
|
size: "sm"
|
|
9693
9693
|
})
|
|
@@ -9724,7 +9724,7 @@ function yh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
9724
9724
|
})
|
|
9725
9725
|
});
|
|
9726
9726
|
}
|
|
9727
|
-
var bh =
|
|
9727
|
+
var bh = z(yh), xh = Tc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
|
|
9728
9728
|
let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(C, {
|
|
9729
9729
|
label: e.label,
|
|
9730
9730
|
onRequest: e.onClick,
|
|
@@ -9736,7 +9736,7 @@ var bh = R(yh), xh = Tc(function({ primaryAction: e, secondaryAction: t, ...n },
|
|
|
9736
9736
|
showIcon: e.showIcon,
|
|
9737
9737
|
showConfirmation: e.showConfirmation,
|
|
9738
9738
|
variant: e.variant
|
|
9739
|
-
}) : /* @__PURE__ */ X(
|
|
9739
|
+
}) : /* @__PURE__ */ X(R, {
|
|
9740
9740
|
onClick: e.onClick,
|
|
9741
9741
|
label: e.label,
|
|
9742
9742
|
variant: e.variant || "default",
|
|
@@ -9752,7 +9752,7 @@ var bh = R(yh), xh = Tc(function({ primaryAction: e, secondaryAction: t, ...n },
|
|
|
9752
9752
|
});
|
|
9753
9753
|
});
|
|
9754
9754
|
xh.displayName = "UpsellingBanner";
|
|
9755
|
-
var Sh =
|
|
9755
|
+
var Sh = z(xh);
|
|
9756
9756
|
//#endregion
|
|
9757
9757
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
9758
9758
|
function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = ka, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
@@ -9773,12 +9773,12 @@ function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9773
9773
|
...e,
|
|
9774
9774
|
onClick: () => w(e)
|
|
9775
9775
|
} : e);
|
|
9776
|
-
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(
|
|
9776
|
+
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(er, {
|
|
9777
9777
|
open: E,
|
|
9778
9778
|
onOpenChange: C,
|
|
9779
|
-
children: [/* @__PURE__ */ X(
|
|
9779
|
+
children: [/* @__PURE__ */ X(Pn, {
|
|
9780
9780
|
asChild: !0,
|
|
9781
|
-
children: /* @__PURE__ */ X(
|
|
9781
|
+
children: /* @__PURE__ */ X(R, {
|
|
9782
9782
|
variant: r,
|
|
9783
9783
|
label: n,
|
|
9784
9784
|
size: i,
|
|
@@ -9786,7 +9786,7 @@ function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9786
9786
|
onClick: () => t(e),
|
|
9787
9787
|
hideLabel: g
|
|
9788
9788
|
})
|
|
9789
|
-
}), /* @__PURE__ */ X(
|
|
9789
|
+
}), /* @__PURE__ */ X(Gn, {
|
|
9790
9790
|
side: o,
|
|
9791
9791
|
align: s,
|
|
9792
9792
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -9813,8 +9813,8 @@ function Ch({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
9813
9813
|
portalContainer: null
|
|
9814
9814
|
}) : null] });
|
|
9815
9815
|
}
|
|
9816
|
-
var wh =
|
|
9817
|
-
let a =
|
|
9816
|
+
var wh = z(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
9817
|
+
let a = B(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
9818
9818
|
return /* @__PURE__ */ Z(na, {
|
|
9819
9819
|
className: "flex flex-col overflow-hidden",
|
|
9820
9820
|
children: [/* @__PURE__ */ Z(da, {
|
|
@@ -9834,13 +9834,13 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9834
9834
|
})]
|
|
9835
9835
|
}), /* @__PURE__ */ X(Ii, {
|
|
9836
9836
|
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",
|
|
9837
|
-
children: i ? /* @__PURE__ */ X(
|
|
9837
|
+
children: i ? /* @__PURE__ */ X(R, {
|
|
9838
9838
|
variant: "default",
|
|
9839
9839
|
size: "md",
|
|
9840
9840
|
label: s,
|
|
9841
9841
|
href: i,
|
|
9842
9842
|
target: "_blank"
|
|
9843
|
-
}) : /* @__PURE__ */ X(
|
|
9843
|
+
}) : /* @__PURE__ */ X(R, {
|
|
9844
9844
|
type: "button",
|
|
9845
9845
|
variant: "default",
|
|
9846
9846
|
size: "md",
|
|
@@ -9862,7 +9862,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9862
9862
|
children: e.question
|
|
9863
9863
|
}), /* @__PURE__ */ X("span", {
|
|
9864
9864
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
9865
|
-
children: /* @__PURE__ */ X(
|
|
9865
|
+
children: /* @__PURE__ */ X(V, {
|
|
9866
9866
|
icon: t ? jo : Yo,
|
|
9867
9867
|
size: "sm",
|
|
9868
9868
|
className: H("transition-transform duration-200", t && "text-f1-foreground")
|
|
@@ -9879,7 +9879,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9879
9879
|
})
|
|
9880
9880
|
})]
|
|
9881
9881
|
}), Dh = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
9882
|
-
let o =
|
|
9882
|
+
let o = B()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? _o, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
9883
9883
|
u,
|
|
9884
9884
|
r,
|
|
9885
9885
|
c
|
|
@@ -9900,7 +9900,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9900
9900
|
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",
|
|
9901
9901
|
children: [/* @__PURE__ */ X("div", {
|
|
9902
9902
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
9903
|
-
children: /* @__PURE__ */ X(
|
|
9903
|
+
children: /* @__PURE__ */ X(V, {
|
|
9904
9904
|
icon: s,
|
|
9905
9905
|
size: "sm",
|
|
9906
9906
|
className: "text-f1-foreground-secondary"
|
|
@@ -9919,7 +9919,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9919
9919
|
})]
|
|
9920
9920
|
});
|
|
9921
9921
|
}, Oh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
9922
|
-
let a =
|
|
9922
|
+
let a = B()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
9923
9923
|
return /* @__PURE__ */ Z(na, {
|
|
9924
9924
|
className: "flex flex-col overflow-hidden",
|
|
9925
9925
|
children: [/* @__PURE__ */ X(da, {
|
|
@@ -9946,12 +9946,12 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9946
9946
|
})
|
|
9947
9947
|
}), /* @__PURE__ */ X(Ii, {
|
|
9948
9948
|
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",
|
|
9949
|
-
children: r ? /* @__PURE__ */ X(
|
|
9949
|
+
children: r ? /* @__PURE__ */ X(R, {
|
|
9950
9950
|
variant: "outline",
|
|
9951
9951
|
size: "md",
|
|
9952
9952
|
label: a,
|
|
9953
9953
|
href: r
|
|
9954
|
-
}) : /* @__PURE__ */ X(
|
|
9954
|
+
}) : /* @__PURE__ */ X(R, {
|
|
9955
9955
|
type: "button",
|
|
9956
9956
|
variant: "outline",
|
|
9957
9957
|
size: "md",
|
|
@@ -9961,12 +9961,12 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9961
9961
|
})]
|
|
9962
9962
|
});
|
|
9963
9963
|
}, kh = ({ onAction: e, actionHref: t }) => {
|
|
9964
|
-
let n =
|
|
9964
|
+
let n = B()?.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";
|
|
9965
9965
|
return /* @__PURE__ */ Z(na, {
|
|
9966
9966
|
className: "flex flex-col overflow-hidden",
|
|
9967
9967
|
children: [/* @__PURE__ */ Z(da, {
|
|
9968
9968
|
className: "flex flex-col gap-3 p-0",
|
|
9969
|
-
children: [/* @__PURE__ */ X(
|
|
9969
|
+
children: [/* @__PURE__ */ X(V, {
|
|
9970
9970
|
icon: qi,
|
|
9971
9971
|
size: "lg"
|
|
9972
9972
|
}), /* @__PURE__ */ Z("div", {
|
|
@@ -9981,13 +9981,13 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9981
9981
|
})]
|
|
9982
9982
|
}), /* @__PURE__ */ X(Ii, {
|
|
9983
9983
|
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",
|
|
9984
|
-
children: t ? /* @__PURE__ */ X(
|
|
9984
|
+
children: t ? /* @__PURE__ */ X(R, {
|
|
9985
9985
|
variant: "default",
|
|
9986
9986
|
size: "md",
|
|
9987
9987
|
label: a,
|
|
9988
9988
|
href: t,
|
|
9989
9989
|
target: "_blank"
|
|
9990
|
-
}) : /* @__PURE__ */ X(
|
|
9990
|
+
}) : /* @__PURE__ */ X(R, {
|
|
9991
9991
|
type: "button",
|
|
9992
9992
|
variant: "default",
|
|
9993
9993
|
size: "md",
|
|
@@ -9997,7 +9997,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
9997
9997
|
})]
|
|
9998
9998
|
});
|
|
9999
9999
|
}, Ah = ({ steps: e, onComplete: t, onSkip: n, sendAsMessage: r = !1, onSendMessage: i }) => {
|
|
10000
|
-
let [a, o] = J(0), [s, c] = J({}), l =
|
|
10000
|
+
let [a, o] = J(0), [s, c] = J({}), l = B(), u = e.length, d = e[a], f = s[a] ?? [], p = W((e, t) => {
|
|
10001
10001
|
c((n) => {
|
|
10002
10002
|
let r = n[a] ?? [], i = t ? [...r, e] : r.filter((t) => t !== e);
|
|
10003
10003
|
return {
|
|
@@ -10055,7 +10055,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10055
10055
|
disabled: a <= 0,
|
|
10056
10056
|
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",
|
|
10057
10057
|
"aria-label": "Previous",
|
|
10058
|
-
children: /* @__PURE__ */ X(
|
|
10058
|
+
children: /* @__PURE__ */ X(V, {
|
|
10059
10059
|
icon: ps,
|
|
10060
10060
|
size: "sm"
|
|
10061
10061
|
})
|
|
@@ -10074,7 +10074,7 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10074
10074
|
disabled: a >= u - 1,
|
|
10075
10075
|
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",
|
|
10076
10076
|
"aria-label": "Next",
|
|
10077
|
-
children: /* @__PURE__ */ X(
|
|
10077
|
+
children: /* @__PURE__ */ X(V, {
|
|
10078
10078
|
icon: Yo,
|
|
10079
10079
|
size: "sm"
|
|
10080
10080
|
})
|
|
@@ -10082,13 +10082,13 @@ var wh = R(Ch), Th = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10082
10082
|
] }) : null
|
|
10083
10083
|
}), /* @__PURE__ */ Z("div", {
|
|
10084
10084
|
className: "flex items-center gap-2",
|
|
10085
|
-
children: [v ? /* @__PURE__ */ X(
|
|
10085
|
+
children: [v ? /* @__PURE__ */ X(R, {
|
|
10086
10086
|
type: "button",
|
|
10087
10087
|
variant: "ghost",
|
|
10088
10088
|
size: "md",
|
|
10089
10089
|
label: l?.ai?.growth?.questionCard?.skipLabel ?? "Skip",
|
|
10090
10090
|
onClick: n
|
|
10091
|
-
}) : null, /* @__PURE__ */ X(
|
|
10091
|
+
}) : null, /* @__PURE__ */ X(R, {
|
|
10092
10092
|
type: "button",
|
|
10093
10093
|
variant: "outline",
|
|
10094
10094
|
size: "md",
|
|
@@ -10561,7 +10561,7 @@ function _g(e, t, n) {
|
|
|
10561
10561
|
}
|
|
10562
10562
|
}
|
|
10563
10563
|
function vg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
10564
|
-
let { t: i } =
|
|
10564
|
+
let { t: i } = B(), a = W((t) => {
|
|
10565
10565
|
let n = gg(e);
|
|
10566
10566
|
n && mg(t === "jpg" ? _g(n, "jpeg", "#fff") : _g(n, "png"), r, t);
|
|
10567
10567
|
}, [e, r]), o = K(() => {
|
|
@@ -10653,7 +10653,7 @@ function yg(e, t, n, r = "") {
|
|
|
10653
10653
|
//#endregion
|
|
10654
10654
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItemFilters.tsx
|
|
10655
10655
|
function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
10656
|
-
let i =
|
|
10656
|
+
let i = B(), a = kc(), o = q(null), s = q(void 0), c = q(r), [l, u] = J(!1), [d, f] = J(null), [p, m] = J(t);
|
|
10657
10657
|
G(() => {
|
|
10658
10658
|
c.current = r;
|
|
10659
10659
|
}, [r]), G(() => () => {
|
|
@@ -10694,16 +10694,16 @@ function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10694
10694
|
let e = o.current?.querySelector("[aria-invalid=\"true\"]");
|
|
10695
10695
|
e ? e.focus() : f(null);
|
|
10696
10696
|
};
|
|
10697
|
-
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(
|
|
10697
|
+
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(er, {
|
|
10698
10698
|
open: l,
|
|
10699
10699
|
onOpenChange: (e) => {
|
|
10700
10700
|
u(e), r?.(e), !e && (f(null), m(t));
|
|
10701
10701
|
},
|
|
10702
10702
|
modal: !1,
|
|
10703
10703
|
children: [
|
|
10704
|
-
/* @__PURE__ */ X(
|
|
10704
|
+
/* @__PURE__ */ X(Pn, {
|
|
10705
10705
|
asChild: !0,
|
|
10706
|
-
children: /* @__PURE__ */ X(
|
|
10706
|
+
children: /* @__PURE__ */ X(ir, {
|
|
10707
10707
|
label: i.filters.label,
|
|
10708
10708
|
icon: ac,
|
|
10709
10709
|
variant: "ghost",
|
|
@@ -10728,7 +10728,7 @@ function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10728
10728
|
")"
|
|
10729
10729
|
]
|
|
10730
10730
|
}) : null,
|
|
10731
|
-
/* @__PURE__ */ X(
|
|
10731
|
+
/* @__PURE__ */ X(Gn, {
|
|
10732
10732
|
ref: o,
|
|
10733
10733
|
"aria-label": i.filters.label,
|
|
10734
10734
|
className: "w-[380px] max-w-[calc(100vw-1rem)] rounded-xl border border-solid border-f1-border-secondary p-0 shadow-md",
|
|
@@ -10740,7 +10740,7 @@ function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10740
10740
|
className: "flex h-[420px] flex-col",
|
|
10741
10741
|
children: [/* @__PURE__ */ X("div", {
|
|
10742
10742
|
className: "flex shrink-0 items-center gap-2 py-1.5 pl-1.5 pr-3",
|
|
10743
|
-
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
10743
|
+
children: g ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(R, {
|
|
10744
10744
|
label: i.filters.availableFilters,
|
|
10745
10745
|
icon: cs,
|
|
10746
10746
|
hideLabel: !0,
|
|
@@ -10772,7 +10772,7 @@ function bg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
10772
10772
|
})
|
|
10773
10773
|
}), /* @__PURE__ */ X("div", {
|
|
10774
10774
|
className: "flex shrink-0 items-center justify-end gap-2 border-0 border-t border-solid border-f1-border-secondary p-2",
|
|
10775
|
-
children: /* @__PURE__ */ X(
|
|
10775
|
+
children: /* @__PURE__ */ X(R, {
|
|
10776
10776
|
onClick: w,
|
|
10777
10777
|
label: i.filters.applySelection
|
|
10778
10778
|
})
|
|
@@ -10837,7 +10837,7 @@ function Cg({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
10837
10837
|
//#endregion
|
|
10838
10838
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
10839
10839
|
function wg({ 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: g, chartTypeOptions: _, explanation: v, isFullscreen: y = !1, descriptionAction: b, headerLines: x = 2, fitContent: S = !1, onFullscreenChange: C }) {
|
|
10840
|
-
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j =
|
|
10840
|
+
let [w, T] = J(!1), [E, D] = J(!1), O = q(!1), [k, A] = J(!1), j = B(), { enabled: M, setPendingQuote: N, setOpen: P, focusChatInput: F } = bo(), I = (e) => {
|
|
10841
10841
|
T(e), e || A(!1);
|
|
10842
10842
|
}, ee = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), te = ee.length > 0, L = u && f && g, ne = _ && _.length > 0, re = !!v && v.trim().length > 0, ie = !!C, ae = !d && e.trim().length > 0 && (p ? !!g : M), oe = ae || te || L || ne || re, se = !!l || ie || !!oe, ce = !y && (w || E), le = H("flex flex-shrink-0 gap-0.5", !y && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), ue = H("-my-2 -mr-0.5 isolate grid flex-shrink-0", !y && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), de = Cg({
|
|
10843
10843
|
title: e,
|
|
@@ -10861,11 +10861,11 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10861
10861
|
}), N(t), P(!0);
|
|
10862
10862
|
}, he = (e) => {
|
|
10863
10863
|
O.current && (O.current = !1, F() && e.preventDefault());
|
|
10864
|
-
}, ge = ae ? /* @__PURE__ */ X(
|
|
10864
|
+
}, ge = ae ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Sn, {
|
|
10865
10865
|
onClick: me,
|
|
10866
10866
|
children: /* @__PURE__ */ Z("div", {
|
|
10867
10867
|
className: "flex w-full flex-row items-center gap-2",
|
|
10868
|
-
children: [/* @__PURE__ */ X(
|
|
10868
|
+
children: [/* @__PURE__ */ X(V, { icon: Oi }), /* @__PURE__ */ X("span", {
|
|
10869
10869
|
className: "flex-1",
|
|
10870
10870
|
children: j.ai.dashboardItem.askOne
|
|
10871
10871
|
})]
|
|
@@ -10895,12 +10895,12 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10895
10895
|
children: [l ? /* @__PURE__ */ X(bg, {
|
|
10896
10896
|
...l,
|
|
10897
10897
|
onOpenChange: D
|
|
10898
|
-
}) : null, ae ? /* @__PURE__ */ Z(
|
|
10898
|
+
}) : null, ae ? /* @__PURE__ */ Z(mn, {
|
|
10899
10899
|
open: w,
|
|
10900
10900
|
onOpenChange: I,
|
|
10901
|
-
children: [/* @__PURE__ */ X(
|
|
10901
|
+
children: [/* @__PURE__ */ X(kn, {
|
|
10902
10902
|
asChild: !0,
|
|
10903
|
-
children: /* @__PURE__ */ X(
|
|
10903
|
+
children: /* @__PURE__ */ X(ir, {
|
|
10904
10904
|
label: j.actions.other,
|
|
10905
10905
|
icon: Pi,
|
|
10906
10906
|
variant: "ghost",
|
|
@@ -10910,7 +10910,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10910
10910
|
compact: !0,
|
|
10911
10911
|
onClick: (e) => e.stopPropagation()
|
|
10912
10912
|
})
|
|
10913
|
-
}), /* @__PURE__ */ X(
|
|
10913
|
+
}), /* @__PURE__ */ X(qn, {
|
|
10914
10914
|
align: "end",
|
|
10915
10915
|
className: "py-1",
|
|
10916
10916
|
onCloseAutoFocus: he,
|
|
@@ -10944,7 +10944,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10944
10944
|
alignItems: fe > 1 ? "start" : "center",
|
|
10945
10945
|
children: [/* @__PURE__ */ Z("div", {
|
|
10946
10946
|
className: H("flex min-w-0 flex-1 gap-1", fe > 1 ? "items-start" : "items-center"),
|
|
10947
|
-
children: [/* @__PURE__ */ X(
|
|
10947
|
+
children: [/* @__PURE__ */ X(On, {
|
|
10948
10948
|
tag: "h3",
|
|
10949
10949
|
lines: fe,
|
|
10950
10950
|
className: H("text-base font-semibold text-f1-foreground", fe > 1 && "hyphens-auto"),
|
|
@@ -10966,7 +10966,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10966
10966
|
...l,
|
|
10967
10967
|
onOpenChange: D
|
|
10968
10968
|
}) : null,
|
|
10969
|
-
ie ? /* @__PURE__ */ X(
|
|
10969
|
+
ie ? /* @__PURE__ */ X(ir, {
|
|
10970
10970
|
label: y ? j.actions.collapse : j.actions.expand,
|
|
10971
10971
|
icon: y ? ya : Aa,
|
|
10972
10972
|
variant: "ghost",
|
|
@@ -10975,12 +10975,12 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10975
10975
|
compact: !0,
|
|
10976
10976
|
onClick: () => C?.(!y)
|
|
10977
10977
|
}) : null,
|
|
10978
|
-
oe ? /* @__PURE__ */ Z(
|
|
10978
|
+
oe ? /* @__PURE__ */ Z(mn, {
|
|
10979
10979
|
open: w,
|
|
10980
10980
|
onOpenChange: I,
|
|
10981
|
-
children: [/* @__PURE__ */ X(
|
|
10981
|
+
children: [/* @__PURE__ */ X(kn, {
|
|
10982
10982
|
asChild: !0,
|
|
10983
|
-
children: /* @__PURE__ */ X(
|
|
10983
|
+
children: /* @__PURE__ */ X(ir, {
|
|
10984
10984
|
label: j.actions.other,
|
|
10985
10985
|
icon: Pi,
|
|
10986
10986
|
variant: "ghost",
|
|
@@ -10990,7 +10990,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
10990
10990
|
compact: !0,
|
|
10991
10991
|
onClick: (e) => e.stopPropagation()
|
|
10992
10992
|
})
|
|
10993
|
-
}), /* @__PURE__ */ X(
|
|
10993
|
+
}), /* @__PURE__ */ X(qn, {
|
|
10994
10994
|
align: "end",
|
|
10995
10995
|
className: H("py-1", k && "w-96 max-w-[90vw]"),
|
|
10996
10996
|
onCloseAutoFocus: he,
|
|
@@ -11003,7 +11003,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11003
11003
|
}) : /* @__PURE__ */ Z(Y, { children: [
|
|
11004
11004
|
ne ? /* @__PURE__ */ Z("div", {
|
|
11005
11005
|
className: "mb-1 flex flex-col items-start gap-2 border-0 border-b border-solid border-f1-border-secondary p-3",
|
|
11006
|
-
children: [/* @__PURE__ */ X(
|
|
11006
|
+
children: [/* @__PURE__ */ X(On, {
|
|
11007
11007
|
className: "text-base font-medium text-f1-foreground-tertiary",
|
|
11008
11008
|
children: j.ai.dashboardItem.chartType
|
|
11009
11009
|
}), /* @__PURE__ */ X(Ot, {
|
|
@@ -11022,46 +11022,46 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11022
11022
|
fullWidth: !0
|
|
11023
11023
|
})]
|
|
11024
11024
|
}) : null,
|
|
11025
|
-
re ? /* @__PURE__ */ X(
|
|
11025
|
+
re ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Sn, {
|
|
11026
11026
|
onSelect: (e) => {
|
|
11027
11027
|
e.preventDefault(), A(!0);
|
|
11028
11028
|
},
|
|
11029
11029
|
children: /* @__PURE__ */ Z("div", {
|
|
11030
11030
|
className: "flex w-full flex-row items-center gap-2",
|
|
11031
|
-
children: [/* @__PURE__ */ X(
|
|
11031
|
+
children: [/* @__PURE__ */ X(V, { icon: Ws }), /* @__PURE__ */ X("span", {
|
|
11032
11032
|
className: "flex-1",
|
|
11033
11033
|
children: j.ai.dashboardItem.dataExplanation
|
|
11034
11034
|
})]
|
|
11035
11035
|
})
|
|
11036
11036
|
}) }) : null,
|
|
11037
11037
|
ge,
|
|
11038
|
-
te ? /* @__PURE__ */ X(
|
|
11038
|
+
te ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ Z(sr, { children: [/* @__PURE__ */ X(An, {
|
|
11039
11039
|
className: "mx-1 rounded-sm px-2",
|
|
11040
11040
|
children: /* @__PURE__ */ Z("div", {
|
|
11041
11041
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
11042
|
-
children: [/* @__PURE__ */ X(
|
|
11042
|
+
children: [/* @__PURE__ */ X(V, { icon: $a }), /* @__PURE__ */ X("span", {
|
|
11043
11043
|
className: "flex-1 text-base font-medium",
|
|
11044
11044
|
children: j.ai.dataDownload.title
|
|
11045
11045
|
})]
|
|
11046
11046
|
})
|
|
11047
|
-
}), /* @__PURE__ */ X(
|
|
11047
|
+
}), /* @__PURE__ */ X(vn, { children: /* @__PURE__ */ X(gn, { children: ee.map((e) => /* @__PURE__ */ X(Sn, {
|
|
11048
11048
|
onClick: e.onClick,
|
|
11049
11049
|
children: /* @__PURE__ */ Z("div", {
|
|
11050
11050
|
className: "flex w-full flex-row items-center gap-2",
|
|
11051
|
-
children: [e.icon ? /* @__PURE__ */ X(
|
|
11051
|
+
children: [e.icon ? /* @__PURE__ */ X(V, { icon: e.icon }) : null, /* @__PURE__ */ X("span", {
|
|
11052
11052
|
className: "flex-1",
|
|
11053
11053
|
children: e.label
|
|
11054
11054
|
})]
|
|
11055
11055
|
})
|
|
11056
11056
|
}, e.label)) }) })] }) }) : null,
|
|
11057
|
-
L ? /* @__PURE__ */ X(
|
|
11057
|
+
L ? /* @__PURE__ */ X(bn, { children: /* @__PURE__ */ X(Sn, {
|
|
11058
11058
|
onClick: () => {
|
|
11059
11059
|
y && C?.(!1), f(g);
|
|
11060
11060
|
},
|
|
11061
11061
|
className: H("text-f1-foreground-critical"),
|
|
11062
11062
|
children: /* @__PURE__ */ Z("div", {
|
|
11063
11063
|
className: "flex w-full flex-row items-center gap-2",
|
|
11064
|
-
children: [/* @__PURE__ */ X(
|
|
11064
|
+
children: [/* @__PURE__ */ X(V, { icon: sa }), /* @__PURE__ */ X("span", {
|
|
11065
11065
|
className: "flex-1",
|
|
11066
11066
|
children: j.actions.delete
|
|
11067
11067
|
})]
|
|
@@ -11076,7 +11076,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11076
11076
|
}) : null]
|
|
11077
11077
|
}), t || b ? /* @__PURE__ */ Z("div", {
|
|
11078
11078
|
className: "relative flex items-baseline gap-1",
|
|
11079
|
-
children: [t ? /* @__PURE__ */ X(
|
|
11079
|
+
children: [t ? /* @__PURE__ */ X(On, {
|
|
11080
11080
|
lines: pe,
|
|
11081
11081
|
className: "text-base text-f1-foreground-secondary",
|
|
11082
11082
|
children: t
|
|
@@ -11101,7 +11101,7 @@ function wg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11101
11101
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/PointActionPopover.tsx
|
|
11102
11102
|
var Tg = 8, Eg = 8;
|
|
11103
11103
|
function Dg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
11104
|
-
let i =
|
|
11104
|
+
let i = B(), a = q(null), [o, s] = J(null);
|
|
11105
11105
|
return jc(() => {
|
|
11106
11106
|
if (!e) {
|
|
11107
11107
|
s(null);
|
|
@@ -11148,7 +11148,7 @@ function Dg({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
11148
11148
|
visibility: o ? "visible" : "hidden"
|
|
11149
11149
|
},
|
|
11150
11150
|
className: H("z-50 rounded-md bg-f1-background p-1 border border-solid border-f1-border-secondary", "drop-shadow"),
|
|
11151
|
-
children: /* @__PURE__ */ X(
|
|
11151
|
+
children: /* @__PURE__ */ X(ir, {
|
|
11152
11152
|
type: "button",
|
|
11153
11153
|
variant: "ghost",
|
|
11154
11154
|
label: i.ai.dashboardItem.askOne,
|
|
@@ -11395,7 +11395,7 @@ function Ug(e) {
|
|
|
11395
11395
|
return Rh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
11396
11396
|
}
|
|
11397
11397
|
function Wg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
11398
|
-
let f =
|
|
11398
|
+
let f = B(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = bo(), y = !Rh(e.chart), b = y ? Lg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = yg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Bg(e, T) : void 0, [
|
|
11399
11399
|
e,
|
|
11400
11400
|
T,
|
|
11401
11401
|
y
|
|
@@ -11595,7 +11595,7 @@ function Zg(e, t) {
|
|
|
11595
11595
|
return o;
|
|
11596
11596
|
}
|
|
11597
11597
|
function Qg({ source: e, title: t, description: n, columns: r, tableSettings: i }) {
|
|
11598
|
-
let { t: a } =
|
|
11598
|
+
let { t: a } = B(), [o, s] = J(!1), c = W(async (a) => {
|
|
11599
11599
|
if (e && !o) {
|
|
11600
11600
|
s(!0);
|
|
11601
11601
|
try {
|
|
@@ -11678,7 +11678,7 @@ function $g({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
11678
11678
|
function e_() {
|
|
11679
11679
|
return /* @__PURE__ */ Z("div", {
|
|
11680
11680
|
className: "flex h-full items-end gap-3 px-4 pb-4",
|
|
11681
|
-
children: [/* @__PURE__ */ X(
|
|
11681
|
+
children: [/* @__PURE__ */ X(Hn, { className: "h-10 w-36 rounded" }), /* @__PURE__ */ X(Hn, { className: "h-4 w-16 rounded" })]
|
|
11682
11682
|
});
|
|
11683
11683
|
}
|
|
11684
11684
|
//#endregion
|
|
@@ -11744,12 +11744,12 @@ function r_({ value: e, trend: t, comparison: n }) {
|
|
|
11744
11744
|
}), t && t.direction !== "flat" ? /* @__PURE__ */ Z("div", {
|
|
11745
11745
|
className: "flex shrink-0 items-center",
|
|
11746
11746
|
children: [
|
|
11747
|
-
t.direction === "up" ? /* @__PURE__ */ X(
|
|
11747
|
+
t.direction === "up" ? /* @__PURE__ */ X(V, {
|
|
11748
11748
|
icon: Is,
|
|
11749
11749
|
color: "positive",
|
|
11750
11750
|
size: "sm",
|
|
11751
11751
|
"aria-hidden": "true"
|
|
11752
|
-
}) : /* @__PURE__ */ X(
|
|
11752
|
+
}) : /* @__PURE__ */ X(V, {
|
|
11753
11753
|
icon: us,
|
|
11754
11754
|
color: "critical",
|
|
11755
11755
|
size: "sm",
|
|
@@ -12143,7 +12143,7 @@ function m_({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
12143
12143
|
onPointerDown: (t) => a(e, t),
|
|
12144
12144
|
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",
|
|
12145
12145
|
"aria-label": "Drag to reorder",
|
|
12146
|
-
children: /* @__PURE__ */ X(
|
|
12146
|
+
children: /* @__PURE__ */ X(V, {
|
|
12147
12147
|
icon: Wa,
|
|
12148
12148
|
size: "xs"
|
|
12149
12149
|
})
|
|
@@ -12313,7 +12313,7 @@ function O_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12313
12313
|
//#endregion
|
|
12314
12314
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
12315
12315
|
function k_({ onExportExcel: e, isExporting: t }) {
|
|
12316
|
-
let { t: n } =
|
|
12316
|
+
let { t: n } = B();
|
|
12317
12317
|
return /* @__PURE__ */ X(go, {
|
|
12318
12318
|
items: [{
|
|
12319
12319
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
@@ -12353,9 +12353,9 @@ function M_() {
|
|
|
12353
12353
|
role: "status",
|
|
12354
12354
|
"aria-label": "Loading filters",
|
|
12355
12355
|
children: [
|
|
12356
|
-
/* @__PURE__ */ X(
|
|
12357
|
-
/* @__PURE__ */ X(
|
|
12358
|
-
/* @__PURE__ */ X(
|
|
12356
|
+
/* @__PURE__ */ X(Hn, { className: "h-8 w-24 rounded-md" }),
|
|
12357
|
+
/* @__PURE__ */ X(Hn, { className: "h-8 w-20 rounded-md" }),
|
|
12358
|
+
/* @__PURE__ */ X(Hn, { className: "h-8 w-20 rounded-md" })
|
|
12359
12359
|
]
|
|
12360
12360
|
});
|
|
12361
12361
|
}
|
|
@@ -12471,7 +12471,7 @@ function L_({ items: e, filters: t, filename: n = "dashboard" }) {
|
|
|
12471
12471
|
//#endregion
|
|
12472
12472
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
|
|
12473
12473
|
var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFiltersChange: i, items: a, itemFilters: o, editMode: s, readOnly: c = !1, onLayoutChange: l, enableExport: u, exportFilename: d, onExportReady: f, resetKey: p, onTransformChart: m, onAskAi: h, onAskAiTarget: g, navigationFilters: _, filtersLoading: v }) => {
|
|
12474
|
-
let y =
|
|
12474
|
+
let y = B(), [b = {}, x] = Wn({
|
|
12475
12475
|
prop: r,
|
|
12476
12476
|
defaultProp: n ?? {},
|
|
12477
12477
|
onChange: i
|
|
@@ -12541,7 +12541,7 @@ var R_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
|
|
|
12541
12541
|
});
|
|
12542
12542
|
};
|
|
12543
12543
|
R_.displayName = "F0AnalyticsDashboard";
|
|
12544
|
-
var z_ =
|
|
12544
|
+
var z_ = Zn("F0AnalyticsDashboard", R_), B_ = () => _n("(min-width: 640px)", { initializeWithValue: !1 }), V_ = () => _n("(max-width: 639px)", { initializeWithValue: !1 }), H_ = /*#__PURE__*/ U.createContext(void 0);
|
|
12545
12545
|
process.env.NODE_ENV !== "production" && (H_.displayName = "ToastContext");
|
|
12546
12546
|
function U_() {
|
|
12547
12547
|
let e = U.useContext(H_);
|
|
@@ -13281,10 +13281,10 @@ function Cv() {
|
|
|
13281
13281
|
//#endregion
|
|
13282
13282
|
//#region src/elements/Toast/components/ToastCloseButton.tsx
|
|
13283
13283
|
var wv = ({ onClose: e }) => {
|
|
13284
|
-
let t =
|
|
13284
|
+
let t = B();
|
|
13285
13285
|
return /* @__PURE__ */ X("div", {
|
|
13286
13286
|
className: "dark flex-shrink-0",
|
|
13287
|
-
children: /* @__PURE__ */ X(
|
|
13287
|
+
children: /* @__PURE__ */ X(R, {
|
|
13288
13288
|
variant: "outline",
|
|
13289
13289
|
icon: Ir,
|
|
13290
13290
|
size: "sm",
|
|
@@ -13307,7 +13307,7 @@ var wv = ({ onClose: e }) => {
|
|
|
13307
13307
|
href: e.href,
|
|
13308
13308
|
children: e.label
|
|
13309
13309
|
})
|
|
13310
|
-
}, `link-${e.label}`)), t.map((e) => /* @__PURE__ */ X(
|
|
13310
|
+
}, `link-${e.label}`)), t.map((e) => /* @__PURE__ */ X(R, {
|
|
13311
13311
|
label: e.label,
|
|
13312
13312
|
icon: e.icon,
|
|
13313
13313
|
variant: "outline",
|
|
@@ -13334,7 +13334,7 @@ var wv = ({ onClose: e }) => {
|
|
|
13334
13334
|
children: t
|
|
13335
13335
|
}),
|
|
13336
13336
|
inStack: !1
|
|
13337
|
-
}), kv = () => Oc(Ov), Av = (e) => H("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), jv =
|
|
13337
|
+
}), kv = () => Oc(Ov), Av = (e) => H("pointer-events-auto relative flex w-full flex-col gap-3 overflow-hidden rounded-lg p-3", !e && "bg-f1-background-inverse dark:bg-f1-background-tertiary"), jv = nr({
|
|
13338
13338
|
base: "text-base font-medium text-f1-foreground-inverse",
|
|
13339
13339
|
variants: { hasIcon: {
|
|
13340
13340
|
true: "pt-[3px]",
|
|
@@ -13410,7 +13410,7 @@ Fv.displayName = "F0Toast";
|
|
|
13410
13410
|
//#endregion
|
|
13411
13411
|
//#region src/elements/Toast/F0MessageToast.tsx
|
|
13412
13412
|
var Iv = (e) => e instanceof Element && e.closest("button, a") !== null, Lv = Tc(({ avatar: e, sender: t, topic: n, message: r, moreCount: i = 0, onClick: a, duration: o, onClose: s, countdownKey: c, contentKey: l }, u) => {
|
|
13413
|
-
let d =
|
|
13413
|
+
let d = B(), { Title: f, Description: p, inStack: m } = kv(), h = () => {
|
|
13414
13414
|
a?.(), s?.();
|
|
13415
13415
|
}, g = o != null && o > 0;
|
|
13416
13416
|
return /* @__PURE__ */ Z("div", {
|
|
@@ -13552,10 +13552,10 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13552
13552
|
expanded: n + (e.length > 1 ? Jv : 0)
|
|
13553
13553
|
};
|
|
13554
13554
|
}, Qv = ({ onClear: e }) => {
|
|
13555
|
-
let t =
|
|
13555
|
+
let t = B(), { close: n } = Cv();
|
|
13556
13556
|
return /* @__PURE__ */ X("div", {
|
|
13557
13557
|
className: H("pointer-events-auto absolute right-0 flex h-[var(--clear-all-row)] items-start justify-end", "bottom-[calc(var(--stack-expanded-height)_-_var(--clear-all-row))]", "invisible opacity-0 [transform:translateY(calc(var(--stack-expanded-height)_-_var(--stack-collapsed-height)))]", "group-data-[expanded]/toasts:visible group-data-[expanded]/toasts:opacity-100 group-data-[expanded]/toasts:[transform:none]", "[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s_cubic-bezier(0.22,1,0.36,1),visibility_0.5s]", "motion-reduce:[transition:opacity_0.2s,visibility_0.2s]"),
|
|
13558
|
-
children: /* @__PURE__ */ X(
|
|
13558
|
+
children: /* @__PURE__ */ X(R, {
|
|
13559
13559
|
variant: "outline",
|
|
13560
13560
|
size: "sm",
|
|
13561
13561
|
label: t.toasts.clearAll,
|
|
@@ -13602,7 +13602,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13602
13602
|
});
|
|
13603
13603
|
}, ty = "#content", ny = (e) => {
|
|
13604
13604
|
let [t, n] = J({ inset: 0 });
|
|
13605
|
-
return
|
|
13605
|
+
return cr(function() {
|
|
13606
13606
|
if (!e || typeof document > "u") return;
|
|
13607
13607
|
let t = document.querySelector(ty);
|
|
13608
13608
|
if (!t) {
|
|
@@ -13633,7 +13633,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13633
13633
|
};
|
|
13634
13634
|
}, []), e;
|
|
13635
13635
|
}, iy = Infinity, ay = ({ messages: e, app: t }) => {
|
|
13636
|
-
let [n, r] = J(!1), [i, a] = J(!1), o = ny(n || i), s = ry(), c =
|
|
13636
|
+
let [n, r] = J(!1), [i, a] = J(!1), o = ny(n || i), s = ry(), c = B();
|
|
13637
13637
|
return /* @__PURE__ */ X("div", {
|
|
13638
13638
|
className: "pointer-events-none fixed z-[100] flex flex-col-reverse items-center overflow-y-auto overflow-x-hidden py-6",
|
|
13639
13639
|
style: o,
|
|
@@ -13684,18 +13684,18 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13684
13684
|
}) }, c), o) : null, e] });
|
|
13685
13685
|
}, sy = ({ children: e, link: t, privacyModeInitiallyEnabled: n, image: r, i18n: i, l10n: a, hourCycle: o, isDev: s = !1, showExperimentalWarnings: c = !1, renderDataTestIdAttribute: l = !1 }) => /* @__PURE__ */ X(at, {
|
|
13686
13686
|
reducedMotion: "user",
|
|
13687
|
-
children: /* @__PURE__ */ X(
|
|
13687
|
+
children: /* @__PURE__ */ X(Yn, {
|
|
13688
13688
|
isDev: s,
|
|
13689
13689
|
showExperimentalWarnings: c,
|
|
13690
13690
|
renderDataTestIdAttribute: l,
|
|
13691
13691
|
hourCycle: o,
|
|
13692
13692
|
children: /* @__PURE__ */ X(Qs, {
|
|
13693
13693
|
...a,
|
|
13694
|
-
children: /* @__PURE__ */ X(
|
|
13694
|
+
children: /* @__PURE__ */ X(Kn, {
|
|
13695
13695
|
...i,
|
|
13696
|
-
children: /* @__PURE__ */ X(
|
|
13696
|
+
children: /* @__PURE__ */ X(Xn, {
|
|
13697
13697
|
...t,
|
|
13698
|
-
children: /* @__PURE__ */ X(
|
|
13698
|
+
children: /* @__PURE__ */ X(tr, { children: /* @__PURE__ */ X(St, {
|
|
13699
13699
|
initiallyEnabled: n,
|
|
13700
13700
|
children: /* @__PURE__ */ X(Do, {
|
|
13701
13701
|
...r,
|
|
@@ -13708,7 +13708,7 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13708
13708
|
})
|
|
13709
13709
|
}), cy = wc(null), ly = ({ children: e, fullScreen: t = !0 }) => {
|
|
13710
13710
|
let n = q(null), [r, i] = J(n.current);
|
|
13711
|
-
return
|
|
13711
|
+
return cr(() => {
|
|
13712
13712
|
i(n.current);
|
|
13713
13713
|
}, []), /* @__PURE__ */ X(cy.Provider, {
|
|
13714
13714
|
value: { element: r },
|
|
@@ -13753,4 +13753,4 @@ var Rv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
13753
13753
|
})
|
|
13754
13754
|
});
|
|
13755
13755
|
//#endregion
|
|
13756
|
-
export { ei as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart, fa as ChatSpinner, qo as Chip, fi as CollapsibleGroup, rn as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ll as Dashboard, Pe as DataChartEmptyStateView,
|
|
13756
|
+
export { ei as AiChatTranslationsProvider, Xt as AreaChart, dc as Await, cn as BarChart, yt as BarChartSkeleton, t as CardSelectableContainer, ze as CategoryBarChart, fa as ChatSpinner, qo as Chip, fi as CollapsibleGroup, rn as ComboChart, ct as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ll as Dashboard, Pe as DataChartEmptyStateView, $n as DataTestIdWrapper, vt as DndProvider, ta as DropOverlay, xn as EmojiImage, Md as F0Accordion, wt as F0ActionBar, ca as F0ActionItem, Fi as F0AiChat, ti as F0AiChatCreditsButton, li as F0AiChatHeader, oi as F0AiChatHistory, Ni as F0AiChatProvider, Hr as F0AiChatTextArea, Wr as F0AiChatUsageLimitsButton, Zr as F0AiFileAttachments, mo as F0AiFilePreviewsProvider, Gi as F0AiFormRegistryProvider, ui as F0AiInsightCard, Qr as F0AiMask, ni as F0AiMessageSources, zr as F0AiMessagesContainer, Ei as F0AiPong, gi as F0AiProcessingOverlay, ri as F0AiProposalCard, _i as F0AiTableCard, un as F0Alert, z_ as F0AnalyticsDashboard, Td as F0AudioPlayer, Ed as F0AudioPlayerCard, ii as F0AuraVoiceAnimation, Uo as F0Avatar, La as F0AvatarAlert, Lo as F0AvatarCompany, lo as F0AvatarDate, Oo as F0AvatarEmoji, wo as F0AvatarFile, Co as F0AvatarIcon, Ro as F0AvatarList, To as F0AvatarModule, ko as F0AvatarPerson, Ho as F0AvatarTeam, au as F0BigNumber, kh as F0BookAMeetingCard, Fr as F0Box, R as F0Button, Na as F0ButtonDropdown, cc as F0ButtonToggle, ci as F0CanvasCard, fo as F0CanvasPanel, Wi as F0Card, aa as F0CardRow, Sa as F0ChatComposer, Ds as F0Checkbox, Id as F0ChipList, vi as F0ClarifyingPanel, dt as F0DataChart, _e as F0DatePicker, i as F0DatePickerInline, Th as F0DemoCard, qa as F0Dialog, m as F0DialogAlikeContext, S as F0DialogAlikeProvider, is as F0DialogContext, Xs as F0DialogProvider, bc as F0DocumentViewer, Wd as F0Drawer, ht as F0DurationInput, oc as F0EventCatcherProvider, Dh as F0FAQCard, Di as F0FileItem, qd as F0FilterPickerContent, fe as F0Form, cf as F0FormField, Dl as F0GridStack, ai as F0HILActionConfirmation, Qt as F0Heading, V as F0Icon, Xi as F0Link, Oh as F0ModuleCard, on as F0NotesTextEditor, Le as F0NotesTextEditorSkeleton, u as F0NumberInput, f as F0NumberInputInline, ua as F0OneIcon, to as F0OneSwitch, yc as F0PdfViewer, fy as F0Provider, Ah as F0QuestionCardMultiStep, eo as F0RichTextDisplay, ft as F0RichTextEditor, Us as F0SearchInput, tc as F0Select, n as F0SelectInline, Yf as F0Slider, lp as F0TableOfContentPopover, fs as F0TagAlert, $o as F0TagBalance, hs as F0TagCompany, ds as F0TagDot, Ys as F0TagList, ls as F0TagPerson, Rs as F0TagRaw, Jo as F0TagStatus, Ls as F0TagTeam, Lr as F0Text, $t as F0TextAreaInput, s as F0TextAreaInputInline, Ki as F0TextInput, le as F0TextInputInline, o as F0TimelineRow, _c as F0VideoPlayer, jf as F0WizardForm, Ns as F1SearchBox, P as FILE_TYPES, Xa as FileItem, Vr as FormCardValueFormatterProvider, Kt as FunnelChartSkeleton, No as GROUP_ID_SYMBOL, Vo as GROUP_KEY_SEPARATOR, qe as GaugeChartSkeleton, $e as HeatmapChartSkeleton, $l as HomeLayout, kt as InlineFieldRow, bt as InlineFieldRowList, Ma as Input, Xl as Layout, ue as LineChart, At as LineChartSkeleton, Fe as MAX_URL_FILTER_VALUES, tn as NotesTextEditor, ce as NotesTextEditorSkeleton, ee as NumberInput, js as OneCalendar, Ss as OneCalendarInternal, On as OneEllipsis, h as OneEmptyState, Zs as OneFilterPicker, c as PieChart, xt as PieChartSkeleton, Ja as PongBall, St as PrivacyModeProvider, fh as ProductBlankslate, et as ProductCard, hh as ProductModal, _h as ProductWidget, en as ProgressBarChart, me as RadarChart, st as RadarChartSkeleton, Ga as RichTextDisplay, M as RichTextEditor, nt as ScatterChartSkeleton, Zl as StandardLayout, Im as SurveyAllQuestionsLoadingSkeleton, rh as SurveyAnsweringForm, Om as SurveyFormBuilder, oh as SurveySampleQuestion, Lm as SurveySteppedLoadingSkeleton, Bs as Tag, Gs as TagCounter, pe as Textarea, hi as ThreadItem, $r as ThreadListSkeleton, oy as ToastProvider, Ql as TwoColumnLayout, te as UPLOAD_INPUT_ID, j as UpsellRequestResponseDialog, bh as UpsellingAlert, Sh as UpsellingBanner, C as UpsellingButton, wh as UpsellingPopover, p as VerticalBarChart, Ts as WeekStartDay, It as actionBarStatuses, Si as actionItemStatuses, Li as adaptDataAdapterToInfiniteScroll, Rr as aiChatFileFromShowFilesItem, si as aiChatFileFromUploadedFile, Gr as aiChatFilesFromMessage, Kr as aiChatMessageText, Xr as aiTranslations, zd as alertVariantOptions, lu as audioPlayerSizes, eu as avatarVariants, Zt as buildDataCollectionUrlParams, Fn as buildTranslations, cu as buttonDropdownModes, su as buttonDropdownSizes, ou as buttonDropdownVariants, Nl as buttonSizes, Ce as buttonToggleColors, ke as buttonToggleSizes, re as buttonToggleVariants, Ml as buttonVariants, Nd as cardAlertVariants, ma as cardImageAspectRatios, xo as cardImageFits, Ai as cardImageSizes, Ko as chartColorTokens, sc as chipVariants, mp as computeSectionEndIds, vc as configurePdfWorker, pi as contentTypes, Gt as createAtlaskitDriver, _s as createDataSourceDefinition, Zd as createF0FormDefinitionTester, Xd as createF0FormTester, Al as createPageLayoutBlock, jl as createPageLayoutBlockGroup, Ur as createPersonMentionSource, Bd as dataCollectionLocalStorageHandler, Ld as datePickerInlineDismissReasons, Rd as datepickerSizes, So as defaultTranslations, ea as defineAvailableForm, Jd as describeFormSchema, O as dialog, O as dialogs, Nt as drawers, no as durationInputSizes, co as durationUnits, Yt as evaluateRenderIf, Zn as experimental, ia as f0FileItemSizes, Qi as f0FormField, Ci as fieldsToSeconds, up as flattenElements, du as formatPlaybackTime, Lf as forms, tt as generateAnchorId, vs as getAnimationVariants, _a as getDataCollectionStorageKey, ys as getDataSourcePaginationType, Cn as getEmojiLabel, so as getF0Config, ic as getGranularityDefinition, ks as getGranularityDefinitions, lc as getGranularitySimpleDefinition, sn as getSchemaDefinition, nc as granularityDefinitions, Ji as hasF0Config, Pa as inferFieldType, pp as injectSectionEnds, zo as isInfiniteScrollPagination, Bo as isPageBasedPagination, ja as isZodType, Dd as linkVariants, Jr as markdownRenderers, yo as mergeDataCollectionFilters, Eo as modules, Yr as oneIconSizes, ln as parseDataCollectionUrlParams, Rf as pdfScales, Te as predefinedPresets, ec as rangeSeparator, za as readDataCollectionStorage, fp as reconstructElements, vo as resolveDataCollectionFilters, Ks as resolveGranularityDefinition, w as resolveItemNeighbors, E as resolveWindowNeighbors, Va as secondsToFields, po as secondsToVisibleFields, zf as selectInlineDismissReasons, y as selectSizes, he as selectVariants, Be as setDataCollectionUrlParams, Bf as sliderTooltipModes, an as syncDataCollectionUrlParams, Zf as tagDotColors, Xf as timelineRowStatuses, Lt as toasts, pa as unwrapZodSchema, di as usageLimitsPopoverSides, bo as useAiChat, bi as useAiChatTranslations, Ht as useAudioPlayer, xi as useCanvasEntity, mi as useChatHistory, Io as useData, es as useDataSource, g as useDataSourceItemNavigation, vu as useDerivedTranscription, Tt as useDndEvents, Rt as useDraggable, He as useDroppableList, Tn as useEmojiConfetti, ha as useF0AiFormRegistry, rs as useF0Dialog, k as useF0DialogAlikeContext, Qe as useF0Form, Ct as useF0FormDefinition, Br as useFormCardValueFormatter, dy as useFormComponent, ts as useGroups, B_ as useIsDesktop, V_ as useIsMobile, jt as useItemNeighbors, Pt as usePrivacyMode, yn as useReducedMotion, Re as useSchemaDefinition, Go as useSelectable, qr as useSetFormCardValueFormatter, yi as useToolCallId, zn as useXRay, z as withDataTestId, de as writeDataCollectionStorage };
|