@factorialco/f0-react 10.12.1 → 10.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChatPostComposerDialog-Dxf_Nbbb.js → ChatPostComposerDialog-BxrYZgeD.js} +3 -3
- package/dist/{CoachmarkProvider-ByfCE0-j.js → CoachmarkProvider-B7vf6Rf8.js} +16122 -16128
- package/dist/{DocumentToolbar-UFkOiw8e.js → DocumentToolbar-i88m83fN.js} +5 -5
- package/dist/{DocxViewer-BjmzL4sn.js → DocxViewer-0VrDUDdP.js} +2 -2
- package/dist/{F0AiProcessingOverlay-B2kWuLdK.js → F0AiProcessingOverlay-E542wxCh.js} +466 -466
- package/dist/{F0CanvasPanel-9PijExob.js → F0CanvasPanel-Bcfvnx7a.js} +7368 -7340
- package/dist/{F0DocumentViewer-hMDS3Kpg.js → F0DocumentViewer-7wJ_GR18.js} +9 -9
- package/dist/F0DocumentViewer-CaYCivnb.js +3 -0
- package/dist/{F0Map-CznQg3YF.js → F0Map-D962E1Hx.js} +845 -607
- package/dist/{F0Select-By_QpX1S.js → F0Select-CFbVOJB3.js} +73 -73
- package/dist/{F0Box-CYL5_Zhb.js → F0Text-Bh96xM7I.js} +103 -96
- package/dist/{F0VideoPlayer-BByW1cIV.js → F0VideoPlayer-CFnv7V_M.js} +279 -279
- package/dist/F0VideoPlayer-Cog2q9vj.js +1 -0
- package/dist/{Map-DZ1yBUGL.js → Map-Ceow_6Vn.js} +53 -52
- package/dist/{PdfThumbnail-Dkwm6GDn.js → PdfThumbnail-D3CBg0nq.js} +1 -1
- package/dist/{SheetViewer-DT6WypD8.js → SheetViewer-CaBKc6ul.js} +4 -4
- package/dist/{TextViewer-D8MLMNev.js → TextViewer-C25UYWuA.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +26 -26
- package/dist/{dist-CUsub1Mu.js → dist-Ck_UA8Lz.js} +1 -1
- package/dist/{dist-CSP_0yKt.js → dist-Cuwaibqg.js} +2 -1
- package/dist/experimental.d.ts +243 -115
- package/dist/experimental.js +6213 -4884
- package/dist/{exports-0B2luDkl.d.ts → exports-CUQ_f1Aq.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +704 -704
- package/dist/{google-B7uAYsxU.js → google-D1V0swd7.js} +1 -1
- package/dist/{i18n-provider-defaults-BA2_-hRH.js → i18n-provider-defaults-Ch0JDGbK.js} +12 -3
- package/dist/{i18n-provider-defaults-m88KkXdP.d.ts → i18n-provider-defaults-D1lWzbYx.d.ts} +14 -1
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-Bdpf44A3.d.ts → index--CBjax6U.d.ts} +2 -2
- package/dist/{index-s5SdT3uE.d.ts → index-2J8R9Uml.d.ts} +3 -1
- package/dist/{maplibre-GffVTD0r.js → maplibre-BUEHHCOT.js} +2 -2
- package/dist/{pdfWorker-C3UVNtZV.js → pdfWorker-BbJO4zuj.js} +2 -2
- package/dist/{popover-B7fqB9lu.js → popover-DNcAIP25.js} +20 -20
- package/dist/styles.css +1 -1
- package/dist/{tooltip-TOvfXq9F.js → tooltip-BX4dSfeL.js} +338 -247
- package/dist/{useData-CAl9SKtE.js → useData-zygrn6e-.js} +950 -949
- package/package.json +2 -2
- package/dist/F0DocumentViewer-DDaXV0U3.js +0 -3
- package/dist/F0VideoPlayer-DerqL5g5.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, $
|
|
3
|
-
import { A as
|
|
4
|
-
import { A as
|
|
5
|
-
import { n as Dr, t as Or } from "./
|
|
6
|
-
import { A as kr, C as Ar, D as jr, E as Mr, F as Nr, I as Pr, L as Fr, M as Ir, N as Lr, O as Rr, P as zr, R as Br, S as Vr, T as Hr, _ as Ur, a as Wr, b as Gr, c as Kr, d as qr, f as Jr, g as Yr, h as Xr, i as Zr, j as Qr, k as $r, l as ei, m as ti, n as ni, o as ri, p as ii, r as ai, s as oi, t as si, u as ci, v as li, w as ui, x as di, y as fi, z as pi } from "./F0AiProcessingOverlay-
|
|
7
|
-
import { $n as mi,
|
|
8
|
-
import { t as po } from "./i18n-provider-defaults-
|
|
9
|
-
import {
|
|
10
|
-
import { $ as Fo, B as Io, Bt as Lo, Ct as Ro, Dn as zo, Dr as Bo, Dt as Vo, Er as Ho, Fn as Uo, Ft as Wo, G as Go, H as Ko, It as qo, J as Jo, K as Yo, L as Xo, Ln as Zo, Lt as Qo, Mr as $o, Mt as es, Nr as ts, Nt as ns, On as rs, Or as is, Ot as as, Pt as os, Rt as ss, U as cs, V as ls, W as us, X as ds, Z as fs, _ as ps, _t as ms, a as hs, an as gs, c as _s, ct as vs, dr as ys, et as bs, fr as xs, g as Ss, gt as Cs, h as ws, ht as Ts, i as Es, jr as Ds, jt as Os, kn as ks, kr as As, kt as js, l as Ms, lr as Ns, m as Ps, mr as Fs, mt as Is, nt as Ls, o as Rs, p as zs, pt as Bs, q as Vs, r as Hs, rn as Us, s as Ws, st as Gs, t as Ks, tt as qs, u as Js, v as Ys, vr as Xs, w as Zs, wt as Qs, xt as $s, y as ec, yt as tc, z as nc } from "./F0Select-
|
|
2
|
+
import { $n as t, $r as n, $t as r, A as i, An as a, Ar as o, Bn as s, Br as c, Bt as l, C as u, Cn as d, D as f, Dn as p, E as m, En as h, Er as g, Fn as _, Fr as v, Ft as y, Gn as b, Gr as x, Gt as S, Hn as C, Ht as w, In as T, Ir as E, It as D, Jn as O, Jt as k, Kn as A, Kr as j, Kt as ee, Ln as M, Lt as N, M as P, Mn as te, N as ne, Nn as re, Nr as F, Nt as ie, O as I, On as ae, Or as oe, P as se, Pn as ce, Pr as le, Pt as ue, Qn as de, Rn as fe, Rr as pe, Rt as me, S as he, Sn as ge, St as _e, T as ve, Tn as ye, Ut as be, Vn as xe, Vr as Se, Vt as Ce, Wn as we, Wt as Te, X as Ee, Xn as De, Xt as Oe, Yn as ke, Z as Ae, Zn as je, Zt as Me, _ as Ne, _n as Pe, _r as Fe, _t as Ie, an as Le, ar as Re, b as ze, bn as Be, bt as Ve, c as He, cn as Ue, cr as We, d as Ge, dn as Ke, dr as qe, ei as Je, en as Ye, er as Xe, f as Ze, fn as Qe, fr as $e, g as et, gn as tt, gr as nt, gt as rt, h as it, hn as at, hr as ot, ht as st, i as ct, ii as lt, ir as ut, j as dt, jn as ft, jr as pt, k as mt, kn as ht, kr as gt, l as _t, ln as vt, lr as yt, mn as bt, mr as xt, nn as St, nr as Ct, on as wt, or as Tt, ot as Et, p as Dt, pn as Ot, pr as kt, qn as At, qr as jt, qt as Mt, rr as Nt, s as Pt, sn as Ft, sr as It, t as Lt, ti as Rt, tn as zt, tr as Bt, u as Vt, un as Ht, ur as Ut, ut as Wt, v as Gt, vn as Kt, vt as qt, w as Jt, wn as Yt, x as Xt, xn as Zt, xt as Qt, y as $t, yn as en, yt as tn, zn as nn, zr as rn } from "./CoachmarkProvider-B7vf6Rf8.js";
|
|
3
|
+
import { A as an, At as on, B as sn, Dt as cn, F as ln, It as un, Jt as dn, Lt as fn, M as pn, Mt as mn, N as hn, P as gn, R as _n, U as vn, V as yn, Vt as bn, Xt as xn, Yt as Sn, Zn as Cn, _t as wn, a as Tn, an as En, ar as L, b as R, cn as Dn, ct as On, dn as kn, gn as An, gt as jn, hn as Mn, ht as Nn, i as Pn, in as z, ir as Fn, j as In, jt as Ln, kt as Rn, ln as B, lt as zn, nn as Bn, nt as Vn, on as Hn, or as Un, pt as Wn, qt as Gn, rn as V, rr as Kn, sn as qn, t as Jn, tn as Yn, ut as Xn, vt as Zn, yt as Qn, z as $n } from "./popover-DNcAIP25.js";
|
|
4
|
+
import { A as er, C as tr, D as nr, F as rr, I as ir, L as H, M as ar, N as or, O as sr, P as cr, R as lr, S as ur, _ as dr, b as fr, c as pr, f as mr, g as hr, h as gr, j as _r, k as vr, l as yr, m as br, p as xr, v as Sr, w as Cr, x as wr, y as Tr } from "./tooltip-BX4dSfeL.js";
|
|
5
|
+
import { n as Er, r as Dr, t as Or } from "./F0Text-Bh96xM7I.js";
|
|
6
|
+
import { A as kr, C as Ar, D as jr, E as Mr, F as Nr, I as Pr, L as Fr, M as Ir, N as Lr, O as Rr, P as zr, R as Br, S as Vr, T as Hr, _ as Ur, a as Wr, b as Gr, c as Kr, d as qr, f as Jr, g as Yr, h as Xr, i as Zr, j as Qr, k as $r, l as ei, m as ti, n as ni, o as ri, p as ii, r as ai, s as oi, t as si, u as ci, v as li, w as ui, x as di, y as fi, z as pi } from "./F0AiProcessingOverlay-E542wxCh.js";
|
|
7
|
+
import { $n as mi, $o as hi, A as gi, Ar as _i, At as vi, B as yi, Ba as bi, Bn as xi, Bs as Si, D as Ci, Dt as wi, E as Ti, Es as Ei, Fa as Di, Fr as Oi, Ft as ki, Gn as Ai, Gr as ji, Gs as Mi, Gt as Ni, Hn as Pi, Ho as Fi, Hr as Ii, Hs as Li, Io as Ri, It as zi, Jn as Bi, Jr as Vi, Jt as Hi, Kt as Ui, Lr as Wi, Lt as Gi, M as Ki, Mr as qi, Ms as Ji, Mt as Yi, Na as Xi, Nt as Zi, O as Qi, Oa as $i, Os as ea, Pa as ta, Pr as na, Qn as ra, Qo as ia, Qs as aa, R as oa, Rr as sa, Sr as ca, T as la, Un as ua, Ur as da, Us as fa, Vn as pa, Vs as ma, Wn as ha, Wr as ga, Ws as _a, Xa as va, Xt as ya, Ya as ba, Yo as xa, Yt as Sa, Zt as Ca, _a as wa, ao as Ta, as as Ea, bo as Da, br as Oa, do as ka, ds as Aa, er as ja, et as Ma, fo as Na, ga as Pa, ic as Fa, j as Ia, ja as La, jr as Ra, jt as za, k as Ba, kt as Va, lo as Ha, mr as Ua, n as Wa, nr as Ga, oa as Ka, os as qa, pr as Ja, qn as Ya, qs as Xa, qt as Za, ro as Qa, rr as $a, sc as eo, t as to, tr as no, ts as ro, vr as io, w as ao, wr as oo, yr as so, za as co, zn as lo, zr as uo, zs as fo } from "./F0CanvasPanel-Bcfvnx7a.js";
|
|
8
|
+
import { t as po } from "./i18n-provider-defaults-Ch0JDGbK.js";
|
|
9
|
+
import { C as mo, D as ho, F as go, I as _o, J as vo, N as yo, O as bo, S as xo, _ as So, a as Co, d as wo, f as To, i as Eo, k as Do, l as Oo, n as ko, q as Ao, r as jo, t as Mo, x as No, y as Po } from "./useData-zygrn6e-.js";
|
|
10
|
+
import { $ as Fo, B as Io, Bt as Lo, Ct as Ro, Dn as zo, Dr as Bo, Dt as Vo, Er as Ho, Fn as Uo, Ft as Wo, G as Go, H as Ko, It as qo, J as Jo, K as Yo, L as Xo, Ln as Zo, Lt as Qo, Mr as $o, Mt as es, Nr as ts, Nt as ns, On as rs, Or as is, Ot as as, Pt as os, Rt as ss, U as cs, V as ls, W as us, X as ds, Z as fs, _ as ps, _t as ms, a as hs, an as gs, c as _s, ct as vs, dr as ys, et as bs, fr as xs, g as Ss, gt as Cs, h as ws, ht as Ts, i as Es, jr as Ds, jt as Os, kn as ks, kr as As, kt as js, l as Ms, lr as Ns, m as Ps, mr as Fs, mt as Is, nt as Ls, o as Rs, p as zs, pt as Bs, q as Vs, r as Hs, rn as Us, s as Ws, st as Gs, t as Ks, tt as qs, u as Js, v as Ys, vr as Xs, w as Zs, wt as Qs, xt as $s, y as ec, yt as tc, z as nc } from "./F0Select-CFbVOJB3.js";
|
|
11
11
|
import { t as rc } from "./Check-DAp9gCRh.js";
|
|
12
|
-
import { a as ic, i as ac, n as oc, r as sc, t as cc } from "./F0VideoPlayer-
|
|
13
|
-
import { t as lc } from "./pdfWorker-
|
|
14
|
-
import { n as uc, t as dc } from "./F0DocumentViewer-
|
|
12
|
+
import { a as ic, i as ac, n as oc, r as sc, t as cc } from "./F0VideoPlayer-CFnv7V_M.js";
|
|
13
|
+
import { t as lc } from "./pdfWorker-BbJO4zuj.js";
|
|
14
|
+
import { n as uc, t as dc } from "./F0DocumentViewer-7wJ_GR18.js";
|
|
15
15
|
import * as U from "react";
|
|
16
16
|
import fc, { Children as pc, Fragment as mc, createContext as hc, forwardRef as gc, isValidElement as _c, memo as vc, useCallback as W, useContext as yc, useEffect as G, useId as bc, useImperativeHandle as xc, useLayoutEffect as Sc, useMemo as K, useRef as q, useState as J, useSyncExternalStore as Cc } from "react";
|
|
17
17
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -19,7 +19,7 @@ import * as wc from "react-dom";
|
|
|
19
19
|
import { createPortal as Tc } from "react-dom";
|
|
20
20
|
import './f0.css';//#region ../../node_modules/.pnpm/@base-ui+utils@0.4.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/utils/inertValue.mjs
|
|
21
21
|
function Ec(e) {
|
|
22
|
-
return
|
|
22
|
+
return gr(19) ? e : e ? "true" : void 0;
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/blocks/layouts/HomeLayout/HomeLayout.tsx
|
|
@@ -35,14 +35,14 @@ var Dc = {
|
|
|
35
35
|
className: "h-full @5xl:h-auto [&>div]:h-full",
|
|
36
36
|
children: e
|
|
37
37
|
}, t));
|
|
38
|
-
return /* @__PURE__ */ X(
|
|
38
|
+
return /* @__PURE__ */ X(bi, {
|
|
39
39
|
layout: "home",
|
|
40
40
|
children: /* @__PURE__ */ Z("div", {
|
|
41
41
|
ref: r,
|
|
42
42
|
className: "@container",
|
|
43
43
|
children: [/* @__PURE__ */ Z("div", {
|
|
44
44
|
className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
|
|
45
|
-
children: [/* @__PURE__ */ X(
|
|
45
|
+
children: [/* @__PURE__ */ X(jt, {
|
|
46
46
|
columns: Dc,
|
|
47
47
|
showArrows: !1,
|
|
48
48
|
children: i
|
|
@@ -66,10 +66,10 @@ var Dc = {
|
|
|
66
66
|
})]
|
|
67
67
|
})
|
|
68
68
|
});
|
|
69
|
-
}), kc =
|
|
69
|
+
}), kc = Mn({
|
|
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
|
-
}), Ac = fc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(
|
|
72
|
+
}), Ac = fc.forwardRef(({ children: e, variant: t, scrollable: n = !0, className: r, ...i }, a) => /* @__PURE__ */ X(bi, {
|
|
73
73
|
layout: "standard",
|
|
74
74
|
children: /* @__PURE__ */ X("section", {
|
|
75
75
|
ref: a,
|
|
@@ -82,7 +82,7 @@ var Dc = {
|
|
|
82
82
|
})
|
|
83
83
|
}));
|
|
84
84
|
Ac.displayName = "StandardLayout";
|
|
85
|
-
var jc = L(
|
|
85
|
+
var jc = L(Hn({
|
|
86
86
|
name: "StandardLayout",
|
|
87
87
|
type: "layout"
|
|
88
88
|
}, Ac)), Mc = gc(function({ children: e, sideContent: t, mainColumnPosition: n = "left", sticky: r = !1, responsiveStackOrder: i = "side" }, a) {
|
|
@@ -101,7 +101,7 @@ var jc = L(Un({
|
|
|
101
101
|
})]
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
|
-
}), Nc = L(
|
|
104
|
+
}), Nc = L(Hn({
|
|
105
105
|
name: "TwoColumnLayout",
|
|
106
106
|
type: "layout"
|
|
107
107
|
}, Mc)), Pc = ({ children: e, className: t }) => /* @__PURE__ */ X("aside", {
|
|
@@ -254,7 +254,7 @@ function Hc({ 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 = cn.sanitize(Vc(t))), n.set(e, /* @__PURE__ */ X(An.div, {
|
|
258
258
|
className: "h-full w-full",
|
|
259
259
|
initial: {
|
|
260
260
|
opacity: 1,
|
|
@@ -2718,8 +2718,8 @@ var _l = ({ options: e, widgets: t, onChange: n, className: r, static: i, forceP
|
|
|
2718
2718
|
});
|
|
2719
2719
|
};
|
|
2720
2720
|
_l.displayName = "F0GridStack";
|
|
2721
|
-
var vl = L(
|
|
2722
|
-
let o = W((e, t, n) => /* @__PURE__ */ X(
|
|
2721
|
+
var vl = L(Kn("F0GridStack", _l)), yl = (e, t, n) => /* @__PURE__ */ X("div", { children: e }), bl = ({ widgets: e = [], editMode: t = !1, onChange: n = () => {}, WidgetWrapper: r = yl, main: i = !1, deps: a }) => {
|
|
2722
|
+
let o = W((e, t, n) => /* @__PURE__ */ X(An.div, {
|
|
2723
2723
|
className: "h-full w-full",
|
|
2724
2724
|
initial: {
|
|
2725
2725
|
opacity: 0,
|
|
@@ -2902,7 +2902,7 @@ var xl = (e, t) => {
|
|
|
2902
2902
|
}, Sl = (e, t) => {
|
|
2903
2903
|
let n = t;
|
|
2904
2904
|
return n.displayName = e, n.__isPageLayoutGroup = !0, n;
|
|
2905
|
-
}, Cl =
|
|
2905
|
+
}, Cl = Gn.filter((e) => e !== "ai"), wl = Sn, Tl = ({ children: e, title: t, draggable: n = !1, actions: r, aiButton: i }) => /* @__PURE__ */ X(Se, {
|
|
2906
2906
|
header: { title: t },
|
|
2907
2907
|
draggable: n,
|
|
2908
2908
|
actions: r,
|
|
@@ -2924,7 +2924,7 @@ var xl = (e, t) => {
|
|
|
2924
2924
|
})
|
|
2925
2925
|
});
|
|
2926
2926
|
El.displayName = "Dashboard";
|
|
2927
|
-
var Dl = Sl("Dashboard", El), Ol = L(
|
|
2927
|
+
var Dl = Sl("Dashboard", El), Ol = L(Kn("Dashboard", Dl)), kl = Mn({
|
|
2928
2928
|
base: "flex w-full flex-col p-4",
|
|
2929
2929
|
variants: { variant: {
|
|
2930
2930
|
default: "",
|
|
@@ -2944,7 +2944,7 @@ var Dl = Sl("Dashboard", El), Ol = L(qn("Dashboard", Dl)), kl = Nn({
|
|
|
2944
2944
|
...l,
|
|
2945
2945
|
children: [p ? /* @__PURE__ */ Z("div", {
|
|
2946
2946
|
className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
|
|
2947
|
-
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(
|
|
2947
|
+
children: [c || null, f.length > 0 ? /* @__PURE__ */ X(wa, {
|
|
2948
2948
|
items: Al(d),
|
|
2949
2949
|
"data-testid": "actions-dropdown"
|
|
2950
2950
|
}) : null]
|
|
@@ -3002,8 +3002,8 @@ Ll.displayName = "GroupLinear", Ll.__isPageLayoutGroup = !0;
|
|
|
3002
3002
|
//#endregion
|
|
3003
3003
|
//#region src/blocks/layouts/Layout/groups/GroupMasonry/components/SortableBlock.tsx
|
|
3004
3004
|
var Rl = ({ id: e, children: t }) => {
|
|
3005
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } =
|
|
3006
|
-
transform:
|
|
3005
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o } = pt({ id: e }), s = {
|
|
3006
|
+
transform: c.Translate.toString(a),
|
|
3007
3007
|
transition: o,
|
|
3008
3008
|
flex: "1 1",
|
|
3009
3009
|
display: "flex",
|
|
@@ -3017,37 +3017,37 @@ var Rl = ({ id: e, children: t }) => {
|
|
|
3017
3017
|
children: t
|
|
3018
3018
|
});
|
|
3019
3019
|
}, zl = ({ blocks: e, sortable: t = !1, onSort: n = () => {}, main: r = !1 }) => {
|
|
3020
|
-
let [i,
|
|
3020
|
+
let [i, a] = J([]);
|
|
3021
3021
|
Ns(() => {
|
|
3022
|
-
|
|
3022
|
+
a(e.map((e, t) => ({
|
|
3023
3023
|
id: e.id ?? t.toString(),
|
|
3024
3024
|
render: e.render
|
|
3025
3025
|
})));
|
|
3026
3026
|
}, [e]);
|
|
3027
|
-
let [
|
|
3027
|
+
let [s, c] = J(null), l = rn(pe(E), pe(v, { coordinateGetter: o }));
|
|
3028
3028
|
return /* @__PURE__ */ X("div", {
|
|
3029
3029
|
className: H("flex flex-wrap items-stretch gap-4", r && "flex-1"),
|
|
3030
|
-
children: /* @__PURE__ */ Z(
|
|
3031
|
-
sensors:
|
|
3030
|
+
children: /* @__PURE__ */ Z(F, {
|
|
3031
|
+
sensors: l,
|
|
3032
3032
|
onDragStart: (e) => {
|
|
3033
|
-
|
|
3033
|
+
c(e.active.id);
|
|
3034
3034
|
},
|
|
3035
3035
|
onDragEnd: (e) => {
|
|
3036
3036
|
let { active: t, over: n } = e;
|
|
3037
|
-
|
|
3037
|
+
c(null), n && t.id !== n.id && a((e) => {
|
|
3038
3038
|
let r = e.findIndex((e) => e.id === t.id), i = e.findIndex((e) => e.id === n.id);
|
|
3039
|
-
return
|
|
3039
|
+
return gt(e, r, i);
|
|
3040
3040
|
});
|
|
3041
3041
|
},
|
|
3042
|
-
children: [/* @__PURE__ */ X(
|
|
3042
|
+
children: [/* @__PURE__ */ X(oe, {
|
|
3043
3043
|
items: i,
|
|
3044
3044
|
children: i.map((e) => /* @__PURE__ */ X(Rl, {
|
|
3045
3045
|
id: e.id,
|
|
3046
3046
|
children: e.render
|
|
3047
3047
|
}, e.id))
|
|
3048
|
-
}), /* @__PURE__ */ X(
|
|
3049
|
-
id:
|
|
3050
|
-
children: i.find((e) => e.id ===
|
|
3048
|
+
}), /* @__PURE__ */ X(le, { children: s ? /* @__PURE__ */ X(Rl, {
|
|
3049
|
+
id: s,
|
|
3050
|
+
children: i.find((e) => e.id === s)?.render
|
|
3051
3051
|
}) : null })]
|
|
3052
3052
|
})
|
|
3053
3053
|
});
|
|
@@ -3077,13 +3077,13 @@ var Bl = gc(function({ children: e, aside: t, header: n, variant: r = "main-asid
|
|
|
3077
3077
|
})
|
|
3078
3078
|
});
|
|
3079
3079
|
}), Vl = {
|
|
3080
|
-
Page: L(
|
|
3081
|
-
Block: L(
|
|
3082
|
-
BlockContent: L(
|
|
3083
|
-
Group: L(
|
|
3084
|
-
GroupGrid: L(
|
|
3085
|
-
GroupMasonry: L(
|
|
3086
|
-
}, Hl = jc, Ul = Nc, Wl = L(
|
|
3080
|
+
Page: L(Kn("Page", Bl)),
|
|
3081
|
+
Block: L(Kn("Block", Ml)),
|
|
3082
|
+
BlockContent: L(Kn("BlockContent", Nl)),
|
|
3083
|
+
Group: L(Kn("Group", Ll)),
|
|
3084
|
+
GroupGrid: L(Kn("GroupGrid", bl)),
|
|
3085
|
+
GroupMasonry: L(Kn("GroupMasonry", zl))
|
|
3086
|
+
}, Hl = jc, Ul = Nc, Wl = L(Hn({
|
|
3087
3087
|
name: "HomeLayout",
|
|
3088
3088
|
type: "layout"
|
|
3089
3089
|
}, Oc)), Gl = [
|
|
@@ -3783,11 +3783,11 @@ var au = (e) => typeof e == "boolean" || !e ? {
|
|
|
3783
3783
|
})]
|
|
3784
3784
|
});
|
|
3785
3785
|
ou.displayName = "F0BigNumber";
|
|
3786
|
-
var cu =
|
|
3786
|
+
var cu = $i(ou, su), lu = L(cu), uu = [
|
|
3787
3787
|
"default",
|
|
3788
3788
|
"outline",
|
|
3789
3789
|
"neutral"
|
|
3790
|
-
], du =
|
|
3790
|
+
], du = Sn, fu = ["split", "dropdown"], pu = ["sm", "md"], mu = (e) => Object.fromEntries(Object.entries(e).filter(([e]) => e.startsWith("data-"))), hu = (e) => {
|
|
3791
3791
|
(!Number.isFinite(e) || e < 0) && (e = 0);
|
|
3792
3792
|
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");
|
|
3793
3793
|
return n > 0 ? `${n}:${a(r)}:${a(i)}` : `${r}:${a(i)}`;
|
|
@@ -3889,8 +3889,8 @@ var cu = Qi(ou, su), lu = L(cu), uu = [
|
|
|
3889
3889
|
"ArrowUp",
|
|
3890
3890
|
"ArrowLeft"
|
|
3891
3891
|
]
|
|
3892
|
-
}, Eu = "Slider", [Du, Ou, ku] =
|
|
3893
|
-
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" ? Lu : Ru, [y = [], b] =
|
|
3892
|
+
}, Eu = "Slider", [Du, Ou, ku] = zn(Eu), [Au, ju] = Nn(Eu, [ku]), [Mu, Nu] = Au(Eu), Pu = U.forwardRef((e, t) => {
|
|
3893
|
+
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" ? Lu : Ru, [y = [], b] = Wn({
|
|
3894
3894
|
prop: u,
|
|
3895
3895
|
defaultProp: l,
|
|
3896
3896
|
onChange: (e) => {
|
|
@@ -3939,7 +3939,7 @@ var cu = Qi(ou, su), lu = L(cu), uu = [
|
|
|
3939
3939
|
"data-disabled": s ? "" : void 0,
|
|
3940
3940
|
...h,
|
|
3941
3941
|
ref: t,
|
|
3942
|
-
onPointerDown:
|
|
3942
|
+
onPointerDown: jn(h.onPointerDown, () => {
|
|
3943
3943
|
s || (x.current = y);
|
|
3944
3944
|
}),
|
|
3945
3945
|
min: r,
|
|
@@ -3968,7 +3968,7 @@ var [Fu, Iu] = Au(Eu, {
|
|
|
3968
3968
|
size: "width",
|
|
3969
3969
|
direction: 1
|
|
3970
3970
|
}), Lu = U.forwardRef((e, t) => {
|
|
3971
|
-
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 =
|
|
3971
|
+
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 = wn(t, (e) => f(e)), m = U.useRef(void 0), h = On(i), g = h === "ltr", _ = g && !a || !g && a;
|
|
3972
3972
|
function v(e) {
|
|
3973
3973
|
let t = m.current || d.getBoundingClientRect(), i = nd([0, t.width], _ ? [n, r] : [r, n]);
|
|
3974
3974
|
return m.current = t, i(e - t.left);
|
|
@@ -4009,7 +4009,7 @@ var [Fu, Iu] = Au(Eu, {
|
|
|
4009
4009
|
})
|
|
4010
4010
|
});
|
|
4011
4011
|
}), Ru = U.forwardRef((e, t) => {
|
|
4012
|
-
let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: c, ...l } = e, u = U.useRef(null), d =
|
|
4012
|
+
let { min: n, max: r, inverted: i, onSlideStart: a, onSlideMove: o, onSlideEnd: s, onStepKeyDown: c, ...l } = e, u = U.useRef(null), d = wn(t, u), f = U.useRef(void 0), p = !i;
|
|
4013
4013
|
function m(e) {
|
|
4014
4014
|
let t = f.current || u.current.getBoundingClientRect(), i = nd([0, t.height], p ? [r, n] : [n, r]);
|
|
4015
4015
|
return f.current = t, i(e - t.top);
|
|
@@ -4050,27 +4050,27 @@ var [Fu, Iu] = Au(Eu, {
|
|
|
4050
4050
|
});
|
|
4051
4051
|
}), zu = U.forwardRef((e, t) => {
|
|
4052
4052
|
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = Nu(Eu, n);
|
|
4053
|
-
return /* @__PURE__ */ X(
|
|
4053
|
+
return /* @__PURE__ */ X(Xn.span, {
|
|
4054
4054
|
...l,
|
|
4055
4055
|
ref: t,
|
|
4056
|
-
onKeyDown:
|
|
4056
|
+
onKeyDown: jn(e.onKeyDown, (e) => {
|
|
4057
4057
|
e.key === "Home" ? (o(e), e.preventDefault()) : e.key === "End" ? (s(e), e.preventDefault()) : Cu.concat(wu).includes(e.key) && (c(e), e.preventDefault());
|
|
4058
4058
|
}),
|
|
4059
|
-
onPointerDown:
|
|
4059
|
+
onPointerDown: jn(e.onPointerDown, (e) => {
|
|
4060
4060
|
let t = e.target;
|
|
4061
4061
|
t.setPointerCapture(e.pointerId), e.preventDefault(), u.thumbs.has(t) ? t.focus() : r(e);
|
|
4062
4062
|
}),
|
|
4063
|
-
onPointerMove:
|
|
4063
|
+
onPointerMove: jn(e.onPointerMove, (e) => {
|
|
4064
4064
|
e.target.hasPointerCapture(e.pointerId) && i(e);
|
|
4065
4065
|
}),
|
|
4066
|
-
onPointerUp:
|
|
4066
|
+
onPointerUp: jn(e.onPointerUp, (e) => {
|
|
4067
4067
|
let t = e.target;
|
|
4068
4068
|
t.hasPointerCapture(e.pointerId) && (t.releasePointerCapture(e.pointerId), a(e));
|
|
4069
4069
|
})
|
|
4070
4070
|
});
|
|
4071
4071
|
}), Bu = "SliderTrack", Vu = U.forwardRef((e, t) => {
|
|
4072
4072
|
let { __scopeSlider: n, ...r } = e, i = Nu(Bu, n);
|
|
4073
|
-
return /* @__PURE__ */ X(
|
|
4073
|
+
return /* @__PURE__ */ X(Xn.span, {
|
|
4074
4074
|
"data-disabled": i.disabled ? "" : void 0,
|
|
4075
4075
|
"data-orientation": i.orientation,
|
|
4076
4076
|
...r,
|
|
@@ -4079,8 +4079,8 @@ var [Fu, Iu] = Au(Eu, {
|
|
|
4079
4079
|
});
|
|
4080
4080
|
Vu.displayName = Bu;
|
|
4081
4081
|
var Hu = "SliderRange", Uu = U.forwardRef((e, t) => {
|
|
4082
|
-
let { __scopeSlider: n, ...r } = e, i = Nu(Hu, n), a = Iu(Hu, n), o = U.useRef(null), s =
|
|
4083
|
-
return /* @__PURE__ */ X(
|
|
4082
|
+
let { __scopeSlider: n, ...r } = e, i = Nu(Hu, n), a = Iu(Hu, n), o = U.useRef(null), s = wn(t, o), c = i.values.length, l = i.values.map((e) => Xu(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
4083
|
+
return /* @__PURE__ */ X(Xn.span, {
|
|
4084
4084
|
"data-orientation": i.orientation,
|
|
4085
4085
|
"data-disabled": i.disabled ? "" : void 0,
|
|
4086
4086
|
...r,
|
|
@@ -4094,14 +4094,14 @@ var Hu = "SliderRange", Uu = U.forwardRef((e, t) => {
|
|
|
4094
4094
|
});
|
|
4095
4095
|
Uu.displayName = Hu;
|
|
4096
4096
|
var Wu = "SliderThumb", Gu = U.forwardRef((e, t) => {
|
|
4097
|
-
let n = Ou(e.__scopeSlider), [r, i] = U.useState(null), a =
|
|
4097
|
+
let n = Ou(e.__scopeSlider), [r, i] = U.useState(null), a = wn(t, (e) => i(e)), o = U.useMemo(() => r ? n().findIndex((e) => e.ref.current === r) : -1, [n, r]);
|
|
4098
4098
|
return /* @__PURE__ */ X(Ku, {
|
|
4099
4099
|
...e,
|
|
4100
4100
|
ref: a,
|
|
4101
4101
|
index: o
|
|
4102
4102
|
});
|
|
4103
4103
|
}), Ku = U.forwardRef((e, t) => {
|
|
4104
|
-
let { __scopeSlider: n, index: r, name: i, ...a } = e, o = Nu(Wu, n), s = Iu(Wu, n), [c, l] = U.useState(null), u =
|
|
4104
|
+
let { __scopeSlider: n, index: r, name: i, ...a } = e, o = Nu(Wu, n), s = Iu(Wu, n), [c, l] = U.useState(null), u = wn(t, (e) => l(e)), d = !c || o.form || !!c.closest("form"), f = Vn(c), p = o.values[r], m = p === void 0 ? 0 : Xu(p, o.min, o.max), h = Zu(r, o.values.length), g = f?.[s.size], _ = g ? $u(g, m, s.direction) : 0;
|
|
4105
4105
|
return U.useEffect(() => {
|
|
4106
4106
|
if (c) return o.thumbs.add(c), () => {
|
|
4107
4107
|
o.thumbs.delete(c);
|
|
@@ -4114,7 +4114,7 @@ var Wu = "SliderThumb", Gu = U.forwardRef((e, t) => {
|
|
|
4114
4114
|
},
|
|
4115
4115
|
children: [/* @__PURE__ */ X(Du.ItemSlot, {
|
|
4116
4116
|
scope: e.__scopeSlider,
|
|
4117
|
-
children: /* @__PURE__ */ X(
|
|
4117
|
+
children: /* @__PURE__ */ X(Xn.span, {
|
|
4118
4118
|
role: "slider",
|
|
4119
4119
|
"aria-label": e["aria-label"] || h,
|
|
4120
4120
|
"aria-valuemin": o.min,
|
|
@@ -4127,7 +4127,7 @@ var Wu = "SliderThumb", Gu = U.forwardRef((e, t) => {
|
|
|
4127
4127
|
...a,
|
|
4128
4128
|
ref: u,
|
|
4129
4129
|
style: p === void 0 ? { display: "none" } : e.style,
|
|
4130
|
-
onFocus:
|
|
4130
|
+
onFocus: jn(e.onFocus, () => {
|
|
4131
4131
|
o.valueIndexToChangeRef.current = r;
|
|
4132
4132
|
})
|
|
4133
4133
|
})
|
|
@@ -4140,7 +4140,7 @@ var Wu = "SliderThumb", Gu = U.forwardRef((e, t) => {
|
|
|
4140
4140
|
});
|
|
4141
4141
|
Gu.displayName = Wu;
|
|
4142
4142
|
var qu = "RadioBubbleInput", Ju = U.forwardRef(({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
4143
|
-
let i = U.useRef(null), a =
|
|
4143
|
+
let i = U.useRef(null), a = wn(i, r), o = Uo(t);
|
|
4144
4144
|
return U.useEffect(() => {
|
|
4145
4145
|
let e = i.current;
|
|
4146
4146
|
if (!e) return;
|
|
@@ -4149,7 +4149,7 @@ var qu = "RadioBubbleInput", Ju = U.forwardRef(({ __scopeSlider: e, value: t, ..
|
|
|
4149
4149
|
let n = new Event("input", { bubbles: !0 });
|
|
4150
4150
|
r.call(e, t), e.dispatchEvent(n);
|
|
4151
4151
|
}
|
|
4152
|
-
}, [o, t]), /* @__PURE__ */ X(
|
|
4152
|
+
}, [o, t]), /* @__PURE__ */ X(Xn.input, {
|
|
4153
4153
|
style: { display: "none" },
|
|
4154
4154
|
...n,
|
|
4155
4155
|
ref: a,
|
|
@@ -4271,10 +4271,10 @@ var ad = Pu, od = Vu, sd = Uu, cd = Gu, ld = ad, ud = od, dd = sd, fd = cd, pd =
|
|
|
4271
4271
|
//#region src/blocks/F0AudioPlayer/components/LanguageSelect.tsx
|
|
4272
4272
|
function md({ value: e, options: t, onChange: n, kind: r }) {
|
|
4273
4273
|
let [i, a] = J(!1), o = t.find((t) => t.locale === e), s = o ? ac(o) : e;
|
|
4274
|
-
return /* @__PURE__ */ Z(
|
|
4274
|
+
return /* @__PURE__ */ Z(Jn, {
|
|
4275
4275
|
open: i,
|
|
4276
4276
|
onOpenChange: a,
|
|
4277
|
-
children: [/* @__PURE__ */ X(
|
|
4277
|
+
children: [/* @__PURE__ */ X(Tn, {
|
|
4278
4278
|
asChild: !0,
|
|
4279
4279
|
children: /* @__PURE__ */ X(R, {
|
|
4280
4280
|
variant: "outline",
|
|
@@ -4283,7 +4283,7 @@ function md({ value: e, options: t, onChange: n, kind: r }) {
|
|
|
4283
4283
|
"aria-label": `${r}: ${s}`,
|
|
4284
4284
|
tooltip: r
|
|
4285
4285
|
})
|
|
4286
|
-
}), /* @__PURE__ */ X(
|
|
4286
|
+
}), /* @__PURE__ */ X(Pn, {
|
|
4287
4287
|
align: "end",
|
|
4288
4288
|
sideOffset: 4,
|
|
4289
4289
|
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"),
|
|
@@ -4331,7 +4331,7 @@ function md({ value: e, options: t, onChange: n, kind: r }) {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
//#endregion
|
|
4333
4333
|
//#region src/blocks/F0AudioPlayer/components/PlaybackTime.tsx
|
|
4334
|
-
var hd =
|
|
4334
|
+
var hd = Mn({
|
|
4335
4335
|
base: "shrink-0 font-medium tabular-nums text-f1-foreground-secondary",
|
|
4336
4336
|
variants: { size: {
|
|
4337
4337
|
sm: "text-xs",
|
|
@@ -4345,37 +4345,37 @@ var hd = Nn({
|
|
|
4345
4345
|
hu(t)
|
|
4346
4346
|
]
|
|
4347
4347
|
}), _d = ({ isPlaying: e, disabled: t, size: n = "md", onToggle: r }) => {
|
|
4348
|
-
let i = V(), a = e ?
|
|
4348
|
+
let i = V(), a = e ? Na : ka;
|
|
4349
4349
|
return /* @__PURE__ */ X("button", {
|
|
4350
4350
|
type: "button",
|
|
4351
4351
|
"aria-label": e ? i.audioPlayer.pause : i.audioPlayer.play,
|
|
4352
4352
|
disabled: t,
|
|
4353
4353
|
onClick: r,
|
|
4354
|
-
className: H("flex shrink-0 items-center justify-center rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary text-f1-foreground-secondary transition-colors dark:bg-f1-background-tertiary", "hover:bg-f1-background-secondary disabled:cursor-not-allowed disabled:opacity-50", n === "sm" ? "size-8" : "size-10",
|
|
4354
|
+
className: H("flex shrink-0 items-center justify-center rounded-xl border border-solid border-f1-border-secondary bg-f1-background-inverse-secondary text-f1-foreground-secondary transition-colors dark:bg-f1-background-tertiary", "hover:bg-f1-background-secondary disabled:cursor-not-allowed disabled:opacity-50", n === "sm" ? "size-8" : "size-10", lr()),
|
|
4355
4355
|
children: /* @__PURE__ */ X(a, { className: n === "sm" ? "size-5" : "size-6" })
|
|
4356
4356
|
});
|
|
4357
4357
|
}, vd = ({ playbackRate: e, playbackRates: t, onRateChange: n, disabled: r, extraItems: i = [], audioLanguages: a = [], audioLanguage: o, onAudioLanguageChange: s }) => {
|
|
4358
4358
|
let c = V(), l = t.length > 0, u = a.length > 1;
|
|
4359
|
-
return /* @__PURE__ */ Z(
|
|
4359
|
+
return /* @__PURE__ */ Z(an, { children: [/* @__PURE__ */ X(vn, {
|
|
4360
4360
|
asChild: !0,
|
|
4361
4361
|
children: /* @__PURE__ */ X(R, {
|
|
4362
4362
|
variant: "ghost",
|
|
4363
4363
|
size: "sm",
|
|
4364
|
-
icon:
|
|
4364
|
+
icon: Ei,
|
|
4365
4365
|
label: c.audioPlayer.options,
|
|
4366
4366
|
hideLabel: !0,
|
|
4367
4367
|
disabled: r
|
|
4368
4368
|
})
|
|
4369
|
-
}), /* @__PURE__ */ Z(
|
|
4369
|
+
}), /* @__PURE__ */ Z(In, {
|
|
4370
4370
|
align: "end",
|
|
4371
4371
|
className: "flex min-w-44 flex-col gap-0.5",
|
|
4372
4372
|
children: [
|
|
4373
|
-
l ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
4373
|
+
l ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(gn, {
|
|
4374
4374
|
className: "text-f1-foreground-secondary",
|
|
4375
4375
|
children: c.audioPlayer.playbackSpeed
|
|
4376
4376
|
}), t.map((t) => {
|
|
4377
4377
|
let r = t === e;
|
|
4378
|
-
return /* @__PURE__ */ Z(
|
|
4378
|
+
return /* @__PURE__ */ Z(hn, {
|
|
4379
4379
|
onSelect: () => n(t),
|
|
4380
4380
|
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"),
|
|
4381
4381
|
children: [/* @__PURE__ */ Z("span", {
|
|
@@ -4391,14 +4391,14 @@ var hd = Nn({
|
|
|
4391
4391
|
}, t);
|
|
4392
4392
|
})] }) : null,
|
|
4393
4393
|
u ? /* @__PURE__ */ Z(Y, { children: [
|
|
4394
|
-
l ? /* @__PURE__ */ X(
|
|
4395
|
-
/* @__PURE__ */ X(
|
|
4394
|
+
l ? /* @__PURE__ */ X(_n, {}) : null,
|
|
4395
|
+
/* @__PURE__ */ X(gn, {
|
|
4396
4396
|
className: "text-f1-foreground-secondary",
|
|
4397
4397
|
children: c.audioPlayer.audio
|
|
4398
4398
|
}),
|
|
4399
4399
|
a.map((e) => {
|
|
4400
4400
|
let t = e.locale === o;
|
|
4401
|
-
return /* @__PURE__ */ Z(
|
|
4401
|
+
return /* @__PURE__ */ Z(hn, {
|
|
4402
4402
|
onSelect: () => s?.(e.locale),
|
|
4403
4403
|
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"),
|
|
4404
4404
|
children: [/* @__PURE__ */ X("span", {
|
|
@@ -4414,7 +4414,7 @@ var hd = Nn({
|
|
|
4414
4414
|
}, e.locale);
|
|
4415
4415
|
})
|
|
4416
4416
|
] }) : null,
|
|
4417
|
-
i.length > 0 ? /* @__PURE__ */ Z(Y, { children: [l || u ? /* @__PURE__ */ X(
|
|
4417
|
+
i.length > 0 ? /* @__PURE__ */ Z(Y, { children: [l || u ? /* @__PURE__ */ X(_n, {}) : null, i.map((e) => /* @__PURE__ */ Z(hn, {
|
|
4418
4418
|
onSelect: () => e.onClick(),
|
|
4419
4419
|
className: H("gap-2 px-3 text-sm", e.critical ? "text-f1-foreground-critical" : "text-f1-foreground"),
|
|
4420
4420
|
children: [e.icon ? /* @__PURE__ */ X("span", {
|
|
@@ -4430,28 +4430,28 @@ var hd = Nn({
|
|
|
4430
4430
|
}, e.label))] }) : null
|
|
4431
4431
|
]
|
|
4432
4432
|
})] });
|
|
4433
|
-
}, yd = (e) => H("block w-full rounded px-2 py-1 text-left transition-colors", e ? "bg-f1-background-selected-secondary font-medium" : "bg-transparent"), bd = vc(function({ cue: e, index:
|
|
4434
|
-
let
|
|
4435
|
-
|
|
4436
|
-
}, [
|
|
4437
|
-
|
|
4438
|
-
}, [
|
|
4433
|
+
}, yd = (e) => H("block w-full rounded px-2 py-1 text-left transition-colors", e ? "bg-f1-background-selected-secondary font-medium" : "bg-transparent"), bd = vc(function({ cue: e, index: t, isActive: n, onSeek: r, cueRefs: i }) {
|
|
4434
|
+
let a = V(), { startTime: o } = e, s = r && o !== void 0, c = W((e) => {
|
|
4435
|
+
i?.current && (i.current[t] = e);
|
|
4436
|
+
}, [i, t]), l = W(() => {
|
|
4437
|
+
o !== void 0 && r?.(o);
|
|
4438
|
+
}, [r, o]);
|
|
4439
4439
|
return /* @__PURE__ */ X("li", {
|
|
4440
|
-
ref:
|
|
4441
|
-
children:
|
|
4440
|
+
ref: c,
|
|
4441
|
+
children: s ? /* @__PURE__ */ X("button", {
|
|
4442
4442
|
type: "button",
|
|
4443
|
-
onClick:
|
|
4444
|
-
"aria-current":
|
|
4445
|
-
title:
|
|
4446
|
-
className: H(yd(
|
|
4447
|
-
children: /* @__PURE__ */ X(
|
|
4443
|
+
onClick: l,
|
|
4444
|
+
"aria-current": n || void 0,
|
|
4445
|
+
title: a.t("audioPlayer.jumpTo", { time: hu(o) }),
|
|
4446
|
+
className: H(yd(n), lr(), !n && "hover:bg-f1-background-secondary"),
|
|
4447
|
+
children: /* @__PURE__ */ X(Or, {
|
|
4448
4448
|
as: "span",
|
|
4449
4449
|
variant: "body",
|
|
4450
4450
|
content: e.text
|
|
4451
4451
|
})
|
|
4452
4452
|
}) : /* @__PURE__ */ X("div", {
|
|
4453
|
-
className: yd(
|
|
4454
|
-
children: /* @__PURE__ */ X(
|
|
4453
|
+
className: yd(n),
|
|
4454
|
+
children: /* @__PURE__ */ X(Or, {
|
|
4455
4455
|
as: "span",
|
|
4456
4456
|
variant: "body",
|
|
4457
4457
|
content: e.text
|
|
@@ -4518,7 +4518,7 @@ var wd = (e) => {
|
|
|
4518
4518
|
d,
|
|
4519
4519
|
f,
|
|
4520
4520
|
C
|
|
4521
|
-
]), E =
|
|
4521
|
+
]), E = Xe(m, {
|
|
4522
4522
|
onPlay: w,
|
|
4523
4523
|
onPause: s,
|
|
4524
4524
|
onSeek: c,
|
|
@@ -4588,24 +4588,24 @@ var wd = (e) => {
|
|
|
4588
4588
|
"Home",
|
|
4589
4589
|
"End",
|
|
4590
4590
|
" "
|
|
4591
|
-
]), Ed = gc((e,
|
|
4592
|
-
let { title:
|
|
4591
|
+
]), Ed = gc((e, n) => {
|
|
4592
|
+
let { title: r, subtitle: i, actions: a, className: o, src: s, preload: c, autoPlay: l = !1, disabled: u = !1, ariaLabel: d, size: f = "md", content: p, defaultLanguage: m, details: h, expanded: g, defaultExpanded: _ = !1, onExpandedChange: v, detailsMaxHeight: y = 200 } = e, b = V(), x = Sd(s, m), S = wd({
|
|
4593
4593
|
...e,
|
|
4594
|
-
src:
|
|
4595
|
-
}),
|
|
4596
|
-
Cd(
|
|
4597
|
-
},
|
|
4594
|
+
src: x.resolvedSrc
|
|
4595
|
+
}), C = mu(e), w = mn(), T = (e) => {
|
|
4596
|
+
Cd(S.audioRef.current), x.setLocale(e);
|
|
4597
|
+
}, E = !p && !!(h && h.length > 0), D = K(() => oc(p?.summary, p?.transcription), [p?.summary, p?.transcription]), [O, k] = J(() => sc(D, m)), A = D.some((e) => e.locale === O) ? O : sc(D, m), j = ic(p?.summary, A), ee = ic(p?.transcription, A), M = Su(S.audioRef, S.currentSrc, !ee), N = ee ?? M, P = Array.isArray(N) ? N : void 0, te = typeof N == "string" ? N : void 0, ne = !!(te || P?.length), re = K(() => P ? gu(P) : [], [P]), F = re.length > 0, ie = S.pendingTime ?? S.currentTime, I = K(() => F ? _u(re, ie) : -1, [
|
|
4598
|
+
F,
|
|
4598
4599
|
re,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
}, [x.seek]);
|
|
4600
|
+
ie
|
|
4601
|
+
]), ae = q(null), oe = q([]), se = q(!1), ce = W((e) => {
|
|
4602
|
+
se.current = !1, S.seek(e);
|
|
4603
|
+
}, [S.seek]);
|
|
4604
4604
|
G(() => {
|
|
4605
|
-
let e =
|
|
4605
|
+
let e = ae.current;
|
|
4606
4606
|
if (!e) return;
|
|
4607
4607
|
let t = () => {
|
|
4608
|
-
|
|
4608
|
+
se.current = !0;
|
|
4609
4609
|
}, n = (e) => {
|
|
4610
4610
|
Td.has(e.key) && t();
|
|
4611
4611
|
}, r = (n) => {
|
|
@@ -4614,141 +4614,141 @@ var wd = (e) => {
|
|
|
4614
4614
|
return e.addEventListener("wheel", t, { passive: !0 }), e.addEventListener("touchmove", t, { passive: !0 }), e.addEventListener("keydown", n), i?.addEventListener("pointerdown", r), () => {
|
|
4615
4615
|
e.removeEventListener("wheel", t), e.removeEventListener("touchmove", t), e.removeEventListener("keydown", n), i?.removeEventListener("pointerdown", r);
|
|
4616
4616
|
};
|
|
4617
|
-
}, [
|
|
4618
|
-
let
|
|
4619
|
-
if (
|
|
4617
|
+
}, [ne]);
|
|
4618
|
+
let le = K(() => {
|
|
4619
|
+
if (E) return h ?? [];
|
|
4620
4620
|
let e = [];
|
|
4621
|
-
return
|
|
4621
|
+
return j && e.push({
|
|
4622
4622
|
value: "summary",
|
|
4623
|
-
label:
|
|
4623
|
+
label: b.audioPlayer.summary,
|
|
4624
4624
|
content: /* @__PURE__ */ X("p", {
|
|
4625
4625
|
className: "whitespace-pre-line",
|
|
4626
|
-
children:
|
|
4626
|
+
children: j
|
|
4627
4627
|
})
|
|
4628
|
-
}),
|
|
4628
|
+
}), ne && e.push({
|
|
4629
4629
|
value: "transcription",
|
|
4630
|
-
label:
|
|
4631
|
-
content:
|
|
4632
|
-
cues:
|
|
4633
|
-
activeIndex:
|
|
4634
|
-
onSeek:
|
|
4635
|
-
cueRefs:
|
|
4630
|
+
label: b.audioPlayer.transcription,
|
|
4631
|
+
content: P ? /* @__PURE__ */ X(xd, {
|
|
4632
|
+
cues: P,
|
|
4633
|
+
activeIndex: I,
|
|
4634
|
+
onSeek: F ? ce : void 0,
|
|
4635
|
+
cueRefs: oe
|
|
4636
4636
|
}) : /* @__PURE__ */ X("p", {
|
|
4637
4637
|
className: "whitespace-pre-line",
|
|
4638
|
-
children:
|
|
4638
|
+
children: te
|
|
4639
4639
|
})
|
|
4640
4640
|
}), e;
|
|
4641
4641
|
}, [
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
N,
|
|
4642
|
+
E,
|
|
4643
|
+
h,
|
|
4644
|
+
j,
|
|
4645
|
+
ne,
|
|
4647
4646
|
P,
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4647
|
+
te,
|
|
4648
|
+
I,
|
|
4649
|
+
F,
|
|
4650
|
+
ce,
|
|
4651
|
+
b.audioPlayer.summary,
|
|
4652
|
+
b.audioPlayer.transcription
|
|
4653
|
+
]), ue = ne ? "available" : "missing", de = le.length > 0, fe = le.length === 1 ? le[0] : void 0, pe = (e) => fe?.value === "transcription" ? e ? b.audioPlayer.hideTranscription : b.audioPlayer.viewTranscription : fe?.value === "summary" ? e ? b.audioPlayer.hideSummary : b.audioPlayer.viewSummary : e ? b.audioPlayer.hideDetail : b.audioPlayer.viewDetail, [me = !1, he] = Wn({
|
|
4654
|
+
prop: g,
|
|
4655
|
+
defaultProp: _,
|
|
4656
|
+
onChange: v
|
|
4657
4657
|
});
|
|
4658
4658
|
G(() => {
|
|
4659
|
-
if (!
|
|
4660
|
-
let e =
|
|
4659
|
+
if (!me || I < 0 || se.current) return;
|
|
4660
|
+
let e = ae.current, t = oe.current[I];
|
|
4661
4661
|
if (!e || !t) return;
|
|
4662
4662
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.top - n.top, a = r.bottom - n.bottom;
|
|
4663
4663
|
i >= 0 && a <= 0 || e.scrollTo({
|
|
4664
4664
|
top: e.scrollTop + (i < 0 ? i : a),
|
|
4665
|
-
behavior:
|
|
4665
|
+
behavior: w ? "auto" : "smooth"
|
|
4666
4666
|
});
|
|
4667
4667
|
}, [
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4668
|
+
I,
|
|
4669
|
+
me,
|
|
4670
|
+
w
|
|
4671
4671
|
]);
|
|
4672
|
-
let [
|
|
4672
|
+
let [ge, _e] = J(le[0]?.value), ve = le.some((e) => e.value === ge) ? ge : le[0]?.value, ye = le.find((e) => e.value === ve)?.content;
|
|
4673
4673
|
return /* @__PURE__ */ Z("div", {
|
|
4674
|
-
ref:
|
|
4674
|
+
ref: n,
|
|
4675
4675
|
role: "group",
|
|
4676
|
-
"aria-label":
|
|
4677
|
-
"data-audio-transcription":
|
|
4678
|
-
className: H("flex flex-col gap-2.5 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-3",
|
|
4679
|
-
...
|
|
4676
|
+
"aria-label": d ?? r,
|
|
4677
|
+
"data-audio-transcription": ue,
|
|
4678
|
+
className: H("flex flex-col gap-2.5 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-3", o),
|
|
4679
|
+
...C,
|
|
4680
4680
|
children: [
|
|
4681
4681
|
/* @__PURE__ */ X("audio", {
|
|
4682
|
-
ref:
|
|
4683
|
-
src:
|
|
4684
|
-
preload:
|
|
4685
|
-
autoPlay:
|
|
4682
|
+
ref: S.audioRef,
|
|
4683
|
+
src: S.currentSrc,
|
|
4684
|
+
preload: c ?? (typeof x.resolvedSrc == "function" ? "none" : "metadata"),
|
|
4685
|
+
autoPlay: l
|
|
4686
4686
|
}),
|
|
4687
4687
|
/* @__PURE__ */ Z("div", {
|
|
4688
4688
|
className: "flex items-start justify-between gap-2",
|
|
4689
4689
|
children: [/* @__PURE__ */ Z("div", {
|
|
4690
4690
|
className: "flex min-w-0 flex-1 items-center gap-2.5",
|
|
4691
4691
|
children: [/* @__PURE__ */ X(_d, {
|
|
4692
|
-
isPlaying:
|
|
4693
|
-
disabled:
|
|
4694
|
-
size:
|
|
4695
|
-
onToggle:
|
|
4692
|
+
isPlaying: S.isPlaying,
|
|
4693
|
+
disabled: u,
|
|
4694
|
+
size: f,
|
|
4695
|
+
onToggle: S.toggle
|
|
4696
4696
|
}), /* @__PURE__ */ Z("div", {
|
|
4697
4697
|
className: "flex min-w-0 flex-col",
|
|
4698
4698
|
children: [/* @__PURE__ */ X("span", {
|
|
4699
4699
|
className: "truncate text-base font-medium text-f1-foreground",
|
|
4700
|
-
children: n
|
|
4701
|
-
}), r ? /* @__PURE__ */ X("span", {
|
|
4702
|
-
className: "truncate text-base text-f1-foreground-secondary",
|
|
4703
4700
|
children: r
|
|
4701
|
+
}), i ? /* @__PURE__ */ X("span", {
|
|
4702
|
+
className: "truncate text-base text-f1-foreground-secondary",
|
|
4703
|
+
children: i
|
|
4704
4704
|
}) : null]
|
|
4705
4705
|
})]
|
|
4706
|
-
}),
|
|
4706
|
+
}), de || S.playbackRates.length > 0 || x.languages.length > 1 || a ? /* @__PURE__ */ Z("div", {
|
|
4707
4707
|
className: "flex shrink-0 items-center gap-2",
|
|
4708
|
-
children: [
|
|
4708
|
+
children: [de ? /* @__PURE__ */ X(R, {
|
|
4709
4709
|
variant: "outline",
|
|
4710
4710
|
size: "sm",
|
|
4711
|
-
label:
|
|
4712
|
-
onClick: () =>
|
|
4713
|
-
"aria-expanded":
|
|
4714
|
-
}) : null,
|
|
4715
|
-
playbackRate:
|
|
4716
|
-
playbackRates:
|
|
4717
|
-
onRateChange:
|
|
4718
|
-
disabled:
|
|
4719
|
-
extraItems:
|
|
4720
|
-
audioLanguages:
|
|
4721
|
-
audioLanguage:
|
|
4722
|
-
onAudioLanguageChange:
|
|
4711
|
+
label: pe(me),
|
|
4712
|
+
onClick: () => he(!me),
|
|
4713
|
+
"aria-expanded": me
|
|
4714
|
+
}) : null, S.playbackRates.length > 0 || x.languages.length > 1 || a ? /* @__PURE__ */ X(vd, {
|
|
4715
|
+
playbackRate: S.playbackRate,
|
|
4716
|
+
playbackRates: S.playbackRates,
|
|
4717
|
+
onRateChange: S.setPlaybackRate,
|
|
4718
|
+
disabled: u,
|
|
4719
|
+
extraItems: a,
|
|
4720
|
+
audioLanguages: x.languages,
|
|
4721
|
+
audioLanguage: x.activeLocale,
|
|
4722
|
+
onAudioLanguageChange: T
|
|
4723
4723
|
}) : null]
|
|
4724
4724
|
}) : null]
|
|
4725
4725
|
}),
|
|
4726
4726
|
/* @__PURE__ */ Z("div", {
|
|
4727
4727
|
className: "flex w-full items-center gap-2",
|
|
4728
4728
|
children: [/* @__PURE__ */ X(pd, {
|
|
4729
|
-
currentTime:
|
|
4730
|
-
duration:
|
|
4731
|
-
buffered:
|
|
4732
|
-
disabled:
|
|
4733
|
-
onSeek:
|
|
4729
|
+
currentTime: S.currentTime,
|
|
4730
|
+
duration: S.duration,
|
|
4731
|
+
buffered: S.buffered,
|
|
4732
|
+
disabled: u,
|
|
4733
|
+
onSeek: ce
|
|
4734
4734
|
}), /* @__PURE__ */ X(gd, {
|
|
4735
|
-
currentTime:
|
|
4736
|
-
duration:
|
|
4737
|
-
size:
|
|
4735
|
+
currentTime: S.currentTime,
|
|
4736
|
+
duration: S.duration,
|
|
4737
|
+
size: f
|
|
4738
4738
|
})]
|
|
4739
4739
|
}),
|
|
4740
|
-
|
|
4740
|
+
de ? /* @__PURE__ */ Z(An.div, {
|
|
4741
4741
|
role: "region",
|
|
4742
|
-
"aria-label":
|
|
4742
|
+
"aria-label": fe ? fe.label : b.audioPlayer.details,
|
|
4743
4743
|
initial: !1,
|
|
4744
4744
|
animate: {
|
|
4745
|
-
height:
|
|
4746
|
-
marginTop:
|
|
4747
|
-
opacity: +!!
|
|
4748
|
-
visibility:
|
|
4745
|
+
height: me ? "auto" : 0,
|
|
4746
|
+
marginTop: me ? 0 : "-0.625rem",
|
|
4747
|
+
opacity: +!!me,
|
|
4748
|
+
visibility: me ? "visible" : "hidden"
|
|
4749
4749
|
},
|
|
4750
4750
|
transition: {
|
|
4751
|
-
duration:
|
|
4751
|
+
duration: w ? 0 : .15,
|
|
4752
4752
|
ease: [
|
|
4753
4753
|
.165,
|
|
4754
4754
|
.84,
|
|
@@ -4758,34 +4758,34 @@ var wd = (e) => {
|
|
|
4758
4758
|
},
|
|
4759
4759
|
className: "overflow-hidden",
|
|
4760
4760
|
children: [
|
|
4761
|
-
|
|
4761
|
+
D.length > 1 && A ? /* @__PURE__ */ X("div", {
|
|
4762
4762
|
className: "flex justify-end pb-2.5",
|
|
4763
4763
|
children: /* @__PURE__ */ X(md, {
|
|
4764
|
-
value:
|
|
4765
|
-
options:
|
|
4766
|
-
onChange:
|
|
4767
|
-
kind:
|
|
4764
|
+
value: A,
|
|
4765
|
+
options: D,
|
|
4766
|
+
onChange: k,
|
|
4767
|
+
kind: b.audioPlayer.language
|
|
4768
4768
|
})
|
|
4769
4769
|
}) : null,
|
|
4770
|
-
|
|
4770
|
+
fe ? null : /* @__PURE__ */ X(t, {
|
|
4771
4771
|
fullWidth: !0,
|
|
4772
|
-
ariaLabel:
|
|
4773
|
-
value:
|
|
4774
|
-
onChange:
|
|
4775
|
-
items:
|
|
4772
|
+
ariaLabel: b.audioPlayer.details,
|
|
4773
|
+
value: ve,
|
|
4774
|
+
onChange: _e,
|
|
4775
|
+
items: le.map((e) => ({
|
|
4776
4776
|
value: e.value,
|
|
4777
4777
|
label: e.label
|
|
4778
4778
|
}))
|
|
4779
4779
|
}),
|
|
4780
4780
|
/* @__PURE__ */ X("div", {
|
|
4781
|
-
className:
|
|
4782
|
-
children: /* @__PURE__ */ X(
|
|
4783
|
-
viewportRef:
|
|
4784
|
-
style: { "--audio-details-max-h": `${
|
|
4781
|
+
className: fe ? void 0 : "pt-2.5",
|
|
4782
|
+
children: /* @__PURE__ */ X(wo, {
|
|
4783
|
+
viewportRef: ae,
|
|
4784
|
+
style: { "--audio-details-max-h": `${y}px` },
|
|
4785
4785
|
className: "[&_[data-scroll-container]]:max-h-[var(--audio-details-max-h)]",
|
|
4786
4786
|
children: /* @__PURE__ */ X("div", {
|
|
4787
4787
|
className: "break-words pr-1 text-base text-f1-foreground",
|
|
4788
|
-
children:
|
|
4788
|
+
children: ye
|
|
4789
4789
|
})
|
|
4790
4790
|
})
|
|
4791
4791
|
})
|
|
@@ -4797,7 +4797,7 @@ var wd = (e) => {
|
|
|
4797
4797
|
Ed.displayName = "F0AudioPlayerCard";
|
|
4798
4798
|
//#endregion
|
|
4799
4799
|
//#region src/blocks/F0AudioPlayer/F0AudioPlayer.tsx
|
|
4800
|
-
var Dd =
|
|
4800
|
+
var Dd = Mn({
|
|
4801
4801
|
base: "flex w-full items-center",
|
|
4802
4802
|
variants: { size: {
|
|
4803
4803
|
sm: "gap-2",
|
|
@@ -4851,34 +4851,34 @@ var Dd = Nn({
|
|
|
4851
4851
|
});
|
|
4852
4852
|
});
|
|
4853
4853
|
Od.displayName = "F0AudioPlayer";
|
|
4854
|
-
var kd =
|
|
4854
|
+
var kd = Kn("F0AudioPlayer", L(Od)), Ad = Kn("F0AudioPlayerCard", L(Ed)), jd = dn, Md = ({ actions: e }) => /* @__PURE__ */ X("div", {
|
|
4855
4855
|
className: "flex items-center gap-2",
|
|
4856
|
-
children: e.map((e,
|
|
4856
|
+
children: e.map((e, n) => {
|
|
4857
4857
|
switch (e.type) {
|
|
4858
|
-
case "segmentedControl": return /* @__PURE__ */ X(
|
|
4858
|
+
case "segmentedControl": return /* @__PURE__ */ X(t, {
|
|
4859
4859
|
items: e.items,
|
|
4860
4860
|
value: e.value,
|
|
4861
4861
|
onChange: e.onChange,
|
|
4862
4862
|
disabled: e.disabled,
|
|
4863
4863
|
ariaLabel: e.ariaLabel
|
|
4864
|
-
},
|
|
4865
|
-
case "dropdown": return /* @__PURE__ */ X(
|
|
4864
|
+
}, n);
|
|
4865
|
+
case "dropdown": return /* @__PURE__ */ X(wa, {
|
|
4866
4866
|
items: e.items,
|
|
4867
4867
|
disabled: e.disabled,
|
|
4868
4868
|
children: /* @__PURE__ */ X(R, {
|
|
4869
4869
|
variant: "outline",
|
|
4870
4870
|
size: "sm",
|
|
4871
|
-
icon:
|
|
4871
|
+
icon: Ei,
|
|
4872
4872
|
label: e.ariaLabel,
|
|
4873
4873
|
hideLabel: !0,
|
|
4874
4874
|
disabled: e.disabled
|
|
4875
4875
|
})
|
|
4876
|
-
},
|
|
4876
|
+
}, n);
|
|
4877
4877
|
}
|
|
4878
4878
|
})
|
|
4879
4879
|
}), Nd = ({ item: e, open: t, onOpenChange: n }) => {
|
|
4880
|
-
let r =
|
|
4881
|
-
return /* @__PURE__ */ X(
|
|
4880
|
+
let r = mn(), i = V().t(t ? "actions.collapseItem" : "actions.expandItem", { title: e.title }), a = !!e.actions && e.actions.length > 0;
|
|
4881
|
+
return /* @__PURE__ */ X(Ii, {
|
|
4882
4882
|
open: t,
|
|
4883
4883
|
onOpenChange: n,
|
|
4884
4884
|
asChild: !0,
|
|
@@ -4886,11 +4886,11 @@ var kd = qn("F0AudioPlayer", L(Od)), Ad = qn("F0AudioPlayerCard", L(Ed)), jd = f
|
|
|
4886
4886
|
className: "flex flex-col",
|
|
4887
4887
|
children: [/* @__PURE__ */ Z("div", {
|
|
4888
4888
|
className: "flex items-center",
|
|
4889
|
-
children: [/* @__PURE__ */ X(
|
|
4889
|
+
children: [/* @__PURE__ */ X(ga, {
|
|
4890
4890
|
asChild: !0,
|
|
4891
4891
|
children: /* @__PURE__ */ X("button", {
|
|
4892
4892
|
type: "button",
|
|
4893
|
-
className: H("flex flex-1 min-w-0 items-center py-3 pl-4 pr-2 text-left",
|
|
4893
|
+
className: H("flex flex-1 min-w-0 items-center py-3 pl-4 pr-2 text-left", lr()),
|
|
4894
4894
|
children: /* @__PURE__ */ X("span", {
|
|
4895
4895
|
className: "flex-1 truncate font-medium text-f1-foreground",
|
|
4896
4896
|
children: e.title
|
|
@@ -4904,21 +4904,21 @@ var kd = qn("F0AudioPlayer", L(Od)), Ad = qn("F0AudioPlayerCard", L(Ed)), jd = f
|
|
|
4904
4904
|
children: e.summary
|
|
4905
4905
|
}) : null,
|
|
4906
4906
|
a ? /* @__PURE__ */ X(Md, { actions: e.actions }) : null,
|
|
4907
|
-
/* @__PURE__ */ X(
|
|
4907
|
+
/* @__PURE__ */ X(ga, {
|
|
4908
4908
|
asChild: !0,
|
|
4909
4909
|
children: /* @__PURE__ */ X(R, {
|
|
4910
4910
|
variant: "outline",
|
|
4911
4911
|
size: "sm",
|
|
4912
|
-
icon: t ? Ho :
|
|
4912
|
+
icon: t ? Ho : Ao,
|
|
4913
4913
|
label: i,
|
|
4914
4914
|
hideLabel: !0
|
|
4915
4915
|
})
|
|
4916
4916
|
})
|
|
4917
4917
|
]
|
|
4918
4918
|
})]
|
|
4919
|
-
}), /* @__PURE__ */ X(
|
|
4919
|
+
}), /* @__PURE__ */ X(Cn, {
|
|
4920
4920
|
initial: !1,
|
|
4921
|
-
children: t ? /* @__PURE__ */ X(
|
|
4921
|
+
children: t ? /* @__PURE__ */ X(An.div, {
|
|
4922
4922
|
initial: {
|
|
4923
4923
|
height: 0,
|
|
4924
4924
|
opacity: 0
|
|
@@ -4957,7 +4957,7 @@ var kd = qn("F0AudioPlayer", L(Od)), Ad = qn("F0AudioPlayerCard", L(Ed)), jd = f
|
|
|
4957
4957
|
children: [/* @__PURE__ */ X(B, { className: "h-4 flex-1 max-w-48" }), /* @__PURE__ */ X(B, { className: "ml-auto h-7 w-7 shrink-0 rounded" })]
|
|
4958
4958
|
})] }, t))
|
|
4959
4959
|
}), Fd = gc((e, t) => {
|
|
4960
|
-
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] =
|
|
4960
|
+
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({
|
|
4961
4961
|
prop: r,
|
|
4962
4962
|
defaultProp: s,
|
|
4963
4963
|
onChange: a
|
|
@@ -4977,31 +4977,31 @@ var kd = qn("F0AudioPlayer", L(Od)), Ad = qn("F0AudioPlayerCard", L(Ed)), jd = f
|
|
|
4977
4977
|
});
|
|
4978
4978
|
});
|
|
4979
4979
|
Fd.displayName = "F0Accordion";
|
|
4980
|
-
var Id = L(
|
|
4980
|
+
var Id = L(Kn("F0Accordion", $i(Fd, Pd))), Ld = [
|
|
4981
4981
|
"info",
|
|
4982
4982
|
"warning",
|
|
4983
4983
|
"critical",
|
|
4984
4984
|
"positive"
|
|
4985
4985
|
], Rd = ({ count: e, list: t }) => {
|
|
4986
4986
|
let [n, r] = J(!1), i = /* @__PURE__ */ X(Ro, { label: `+${e}` });
|
|
4987
|
-
return t?.length ? /* @__PURE__ */ Z(
|
|
4987
|
+
return t?.length ? /* @__PURE__ */ Z(Jn, {
|
|
4988
4988
|
open: n,
|
|
4989
4989
|
onOpenChange: r,
|
|
4990
|
-
children: [/* @__PURE__ */ X(
|
|
4990
|
+
children: [/* @__PURE__ */ X(Tn, {
|
|
4991
4991
|
asChild: !0,
|
|
4992
4992
|
children: /* @__PURE__ */ X("button", {
|
|
4993
|
-
className:
|
|
4993
|
+
className: lr("inline-flex flex-shrink-0 items-center"),
|
|
4994
4994
|
children: i
|
|
4995
4995
|
})
|
|
4996
|
-
}), /* @__PURE__ */ X(
|
|
4996
|
+
}), /* @__PURE__ */ X(Pn, {
|
|
4997
4997
|
className: "rounded-md border border-solid border-f1-border-secondary p-1 shadow-md",
|
|
4998
4998
|
align: "end",
|
|
4999
|
-
children: /* @__PURE__ */ Z(
|
|
4999
|
+
children: /* @__PURE__ */ Z(wo, {
|
|
5000
5000
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[172px] flex-col",
|
|
5001
5001
|
children: [t.map((e, t) => /* @__PURE__ */ X("div", {
|
|
5002
5002
|
className: "flex w-[220px] min-w-0 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
5003
5003
|
children: /* @__PURE__ */ X(Ro, { ...e })
|
|
5004
|
-
}, t)), /* @__PURE__ */ X(
|
|
5004
|
+
}, t)), /* @__PURE__ */ X(To, {
|
|
5005
5005
|
orientation: "vertical",
|
|
5006
5006
|
className: "[&_div]:bg-f1-background"
|
|
5007
5007
|
})]
|
|
@@ -5013,7 +5013,7 @@ Rd.displayName = "ChipCounter";
|
|
|
5013
5013
|
//#endregion
|
|
5014
5014
|
//#region src/elements/F0ChipList/F0ChipList.tsx
|
|
5015
5015
|
var zd = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) => {
|
|
5016
|
-
if (r === "fill") return /* @__PURE__ */ X(
|
|
5016
|
+
if (r === "fill") return /* @__PURE__ */ X(So, {
|
|
5017
5017
|
items: e,
|
|
5018
5018
|
renderListItem: (e) => /* @__PURE__ */ X(Ro, { ...e }),
|
|
5019
5019
|
renderDropdownItem: () => null,
|
|
@@ -5035,7 +5035,7 @@ var zd = ({ chips: e, max: t = 4, remainingCount: n, layout: r = "compact" }) =>
|
|
|
5035
5035
|
});
|
|
5036
5036
|
};
|
|
5037
5037
|
zd.displayName = "F0ChipList";
|
|
5038
|
-
var Bd = L(
|
|
5038
|
+
var Bd = L(Kn("F0ChipList", zd)), Vd = [
|
|
5039
5039
|
"blur",
|
|
5040
5040
|
"escape",
|
|
5041
5041
|
"commit",
|
|
@@ -5048,17 +5048,17 @@ var Bd = L(qn("F0ChipList", zd)), Vd = [
|
|
|
5048
5048
|
"positive",
|
|
5049
5049
|
"transparent"
|
|
5050
5050
|
], Wd = {
|
|
5051
|
-
get: async (e) => JSON.parse(localStorage.getItem(
|
|
5051
|
+
get: async (e) => JSON.parse(localStorage.getItem(oo(e)) ?? "{}"),
|
|
5052
5052
|
set: async (e, t) => {
|
|
5053
|
-
localStorage.setItem(
|
|
5053
|
+
localStorage.setItem(oo(e), JSON.stringify(t));
|
|
5054
5054
|
}
|
|
5055
|
-
}, Gd = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position:
|
|
5055
|
+
}, Gd = ({ disableClose: e = !1, onClose: t, isOpen: n, children: r, position: i = "right", size: o = "md", primaryAction: s, secondaryAction: c, title: l, description: u, module: d, otherActions: f, tabs: p, modal: m = !1, activeTabId: h, setActiveTabId: g, disableContentPadding: _, container: v, onWidthChange: y }) => {
|
|
5056
5056
|
let [b, x] = J(n);
|
|
5057
5057
|
G(() => {
|
|
5058
5058
|
x(n);
|
|
5059
5059
|
}, [n]);
|
|
5060
5060
|
let S = K(() => /* @__PURE__ */ Z(Y, { children: [
|
|
5061
|
-
/* @__PURE__ */ X(
|
|
5061
|
+
/* @__PURE__ */ X(a, {
|
|
5062
5062
|
title: l,
|
|
5063
5063
|
description: u,
|
|
5064
5064
|
module: d,
|
|
@@ -5068,11 +5068,11 @@ var Bd = L(qn("F0ChipList", zd)), Vd = [
|
|
|
5068
5068
|
setActiveTabId: g,
|
|
5069
5069
|
disableClose: e
|
|
5070
5070
|
}),
|
|
5071
|
-
/* @__PURE__ */ X(
|
|
5071
|
+
/* @__PURE__ */ X(te, {
|
|
5072
5072
|
disableContentPadding: _ ?? !1,
|
|
5073
5073
|
children: r
|
|
5074
5074
|
}),
|
|
5075
|
-
/* @__PURE__ */ X(
|
|
5075
|
+
/* @__PURE__ */ X(ft, {
|
|
5076
5076
|
primaryAction: s ?? [],
|
|
5077
5077
|
secondaryAction: c ?? [],
|
|
5078
5078
|
onClose: () => x(!1)
|
|
@@ -5091,10 +5091,10 @@ var Bd = L(qn("F0ChipList", zd)), Vd = [
|
|
|
5091
5091
|
s,
|
|
5092
5092
|
c
|
|
5093
5093
|
]);
|
|
5094
|
-
return /* @__PURE__ */ X(
|
|
5094
|
+
return /* @__PURE__ */ X(ht, {
|
|
5095
5095
|
isOpen: b,
|
|
5096
5096
|
onClose: t,
|
|
5097
|
-
position:
|
|
5097
|
+
position: i,
|
|
5098
5098
|
size: o,
|
|
5099
5099
|
modal: m,
|
|
5100
5100
|
showOverlay: m,
|
|
@@ -5104,7 +5104,7 @@ var Bd = L(qn("F0ChipList", zd)), Vd = [
|
|
|
5104
5104
|
onWidthChange: y,
|
|
5105
5105
|
children: S
|
|
5106
5106
|
});
|
|
5107
|
-
}, Kd =
|
|
5107
|
+
}, Kd = re, qd = (e) => {
|
|
5108
5108
|
let t = Kd.reduce((e, t) => {
|
|
5109
5109
|
let { [t]: n, ...r } = e;
|
|
5110
5110
|
return r;
|
|
@@ -5112,7 +5112,7 @@ var Bd = L(qn("F0ChipList", zd)), Vd = [
|
|
|
5112
5112
|
return /* @__PURE__ */ X(Gd, { ...t });
|
|
5113
5113
|
};
|
|
5114
5114
|
qd.displayName = "F0Drawer";
|
|
5115
|
-
var Jd =
|
|
5115
|
+
var Jd = Kn("F0Drawer", qd), Yd = 388;
|
|
5116
5116
|
function Xd({ filters: e, value: t, onChange: n, height: r, width: i = 600, className: a, showApplyButton: o = !0, applyButtonLabel: s, dataTestId: c }) {
|
|
5117
5117
|
let l = V(), u = Object.keys(e)[0] ?? null, [d, f] = J(u), [p, m] = J(t);
|
|
5118
5118
|
G(() => {
|
|
@@ -5149,7 +5149,7 @@ function Xd({ filters: e, value: t, onChange: n, height: r, width: i = 600, clas
|
|
|
5149
5149
|
let r = Js(n.type);
|
|
5150
5150
|
return Math.max(e, r?.formHeight || Yd);
|
|
5151
5151
|
}, 0), [e, r]);
|
|
5152
|
-
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(
|
|
5152
|
+
return !e || Object.keys(e).length === 0 ? null : /* @__PURE__ */ X(Fn, {
|
|
5153
5153
|
dataTestId: c,
|
|
5154
5154
|
children: /* @__PURE__ */ X("div", {
|
|
5155
5155
|
className: H("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", a),
|
|
@@ -5175,9 +5175,9 @@ var Zd = Xd;
|
|
|
5175
5175
|
function Qd(e) {
|
|
5176
5176
|
let t = ya(e).shape, n = [];
|
|
5177
5177
|
for (let [e, r] of Object.entries(t)) {
|
|
5178
|
-
let t = r, i =
|
|
5178
|
+
let t = r, i = Ui(t);
|
|
5179
5179
|
if (!i) continue;
|
|
5180
|
-
let a =
|
|
5180
|
+
let a = Hi(t, i), o = Be(t, a), s = {
|
|
5181
5181
|
name: e,
|
|
5182
5182
|
type: a,
|
|
5183
5183
|
label: i.label,
|
|
@@ -5251,8 +5251,8 @@ function ef(e) {
|
|
|
5251
5251
|
...e
|
|
5252
5252
|
}, i = ya(t), a = [];
|
|
5253
5253
|
for (let [e, t] of Object.entries(i.shape)) {
|
|
5254
|
-
let n =
|
|
5255
|
-
n?.renderIf ?
|
|
5254
|
+
let n = Ui(t);
|
|
5255
|
+
n?.renderIf ? Pe(n.renderIf, r) && a.push(e) : a.push(e);
|
|
5256
5256
|
}
|
|
5257
5257
|
return a;
|
|
5258
5258
|
},
|
|
@@ -5295,12 +5295,12 @@ var nf = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
5295
5295
|
modal: !0,
|
|
5296
5296
|
children: /* @__PURE__ */ Z("div", {
|
|
5297
5297
|
className: "flex flex-col gap-4 py-2",
|
|
5298
|
-
children: [/* @__PURE__ */ X(
|
|
5298
|
+
children: [/* @__PURE__ */ X(Pa, {
|
|
5299
5299
|
type: n,
|
|
5300
5300
|
size: "lg"
|
|
5301
5301
|
}), /* @__PURE__ */ Z("div", {
|
|
5302
5302
|
className: "flex flex-col gap-0.5",
|
|
5303
|
-
children: [/* @__PURE__ */ X(
|
|
5303
|
+
children: [/* @__PURE__ */ X(Ra, {
|
|
5304
5304
|
className: "text-xl sm:text-lg",
|
|
5305
5305
|
children: r
|
|
5306
5306
|
}), /* @__PURE__ */ X(M, {
|
|
@@ -5426,12 +5426,12 @@ var nf = ({ isOpen: e = !1, onClose: t = () => {}, type: n, title: r, descriptio
|
|
|
5426
5426
|
});
|
|
5427
5427
|
}, [n]), /* @__PURE__ */ Z(Y, { children: [o && typeof document < "u" ? Tc(/* @__PURE__ */ X(of, { items: t }), document.body) : null, e] });
|
|
5428
5428
|
}, cf = 200, lf = ({ children: e }) => {
|
|
5429
|
-
let t = Cc(
|
|
5429
|
+
let t = Cc(be.subscribe, be.getSnapshot, be.getServerSnapshot), [n, r] = J(null);
|
|
5430
5430
|
G(() => {
|
|
5431
|
-
let e =
|
|
5431
|
+
let e = be.acquireRenderer();
|
|
5432
5432
|
return r(e.id), e.release;
|
|
5433
5433
|
}, []);
|
|
5434
|
-
let i = Cc(
|
|
5434
|
+
let i = Cc(be.subscribeRenderer, be.getActiveRendererId, () => null);
|
|
5435
5435
|
return /* @__PURE__ */ Z(Y, { children: [n !== null && n === i && typeof document < "u" ? Tc(/* @__PURE__ */ X(uf, { items: t }), document.body) : null, e] });
|
|
5436
5436
|
}, uf = ({ items: e }) => {
|
|
5437
5437
|
let [t, n] = J(e), r = q(e), i = q(/* @__PURE__ */ new Map());
|
|
@@ -5472,9 +5472,9 @@ function df({ children: e }) {
|
|
|
5472
5472
|
registerInlineRow: void 0,
|
|
5473
5473
|
nullableEmptyFields: void 0
|
|
5474
5474
|
}, [t]);
|
|
5475
|
-
return /* @__PURE__ */ X(
|
|
5475
|
+
return /* @__PURE__ */ X(bt.Provider, {
|
|
5476
5476
|
value: n,
|
|
5477
|
-
children: /* @__PURE__ */ X(
|
|
5477
|
+
children: /* @__PURE__ */ X(Me.Provider, {
|
|
5478
5478
|
value: null,
|
|
5479
5479
|
children: e
|
|
5480
5480
|
})
|
|
@@ -5502,7 +5502,7 @@ function ff({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
5502
5502
|
}, b = e.type === "file" ? d : void 0;
|
|
5503
5503
|
return f ? /* @__PURE__ */ X(df, { children: /* @__PURE__ */ X("div", {
|
|
5504
5504
|
id: p,
|
|
5505
|
-
children: /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(
|
|
5505
|
+
children: /* @__PURE__ */ X(Ot, { children: /* @__PURE__ */ X(I, {
|
|
5506
5506
|
field: y,
|
|
5507
5507
|
formField: g,
|
|
5508
5508
|
fieldState: _,
|
|
@@ -5527,7 +5527,7 @@ function ff({ field: e, value: t, onChange: n, onBlur: r, error: i, errorMessage
|
|
|
5527
5527
|
children: "*"
|
|
5528
5528
|
}) : null]
|
|
5529
5529
|
}) : null,
|
|
5530
|
-
|
|
5530
|
+
mt({
|
|
5531
5531
|
field: y,
|
|
5532
5532
|
formField: g,
|
|
5533
5533
|
fieldState: _,
|
|
@@ -5562,7 +5562,7 @@ function hf({ children: e, ...t }) {
|
|
|
5562
5562
|
}
|
|
5563
5563
|
//#endregion
|
|
5564
5564
|
//#region src/blocks/F0Wizard/components/WizardSteps.tsx
|
|
5565
|
-
var gf =
|
|
5565
|
+
var gf = Mn({
|
|
5566
5566
|
base: "flex-1 text-base font-medium leading-5 tracking-[-0.005em]",
|
|
5567
5567
|
variants: { state: {
|
|
5568
5568
|
active: "text-f1-foreground",
|
|
@@ -5577,7 +5577,7 @@ function vf({ state: e, index: t }) {
|
|
|
5577
5577
|
return e === "completed" ? /* @__PURE__ */ X("span", {
|
|
5578
5578
|
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",
|
|
5579
5579
|
children: /* @__PURE__ */ X(rc, { className: "h-3 w-3" })
|
|
5580
|
-
}) : /* @__PURE__ */ X(
|
|
5580
|
+
}) : /* @__PURE__ */ X(bn, {
|
|
5581
5581
|
value: t + 1,
|
|
5582
5582
|
type: e === "active" ? "selected" : "default",
|
|
5583
5583
|
size: "md"
|
|
@@ -5600,7 +5600,7 @@ function yf() {
|
|
|
5600
5600
|
},
|
|
5601
5601
|
disabled: !u && a !== t,
|
|
5602
5602
|
"aria-current": a === t ? "step" : void 0,
|
|
5603
|
-
className: H(
|
|
5603
|
+
className: H(lr(), "flex cursor-pointer items-center gap-2 rounded p-2 text-left", s === "active" && "bg-f1-background-selected", u && "hover:bg-f1-background-secondary-hover", !u && a !== t && "cursor-default opacity-70"),
|
|
5604
5604
|
children: [/* @__PURE__ */ X(vf, {
|
|
5605
5605
|
state: s,
|
|
5606
5606
|
index: a
|
|
@@ -5687,7 +5687,7 @@ var xf = () => {}, Sf = ({ steps: e, children: t, isOpen: n, onClose: r = xf, ti
|
|
|
5687
5687
|
onClose: r
|
|
5688
5688
|
}), g = V(), _ = e[h.currentStep], v = h.currentStep === 0, y = h.currentStep === e.length - 1, b = y ? _?.nextLabel ?? l ?? g.wizard.submit : _?.nextLabel ?? s ?? g.wizard.next, x = _?.previousLabel ?? c ?? g.wizard.previous, S = K(() => ({
|
|
5689
5689
|
label: b,
|
|
5690
|
-
icon: y ? void 0 :
|
|
5690
|
+
icon: y ? void 0 : aa,
|
|
5691
5691
|
onClick: () => void h.goNext(),
|
|
5692
5692
|
disabled: _?.isCompleted?.() === !1 || _?.hasErrors?.() === !0,
|
|
5693
5693
|
loading: h.loading
|
|
@@ -5706,7 +5706,7 @@ var xf = () => {}, Sf = ({ steps: e, children: t, isOpen: n, onClose: r = xf, ti
|
|
|
5706
5706
|
x,
|
|
5707
5707
|
h
|
|
5708
5708
|
]);
|
|
5709
|
-
return /* @__PURE__ */ X(
|
|
5709
|
+
return /* @__PURE__ */ X(Te, {
|
|
5710
5710
|
isOpen: n,
|
|
5711
5711
|
onClose: r,
|
|
5712
5712
|
size: a,
|
|
@@ -5745,13 +5745,13 @@ Sf.displayName = "F0Wizard", L(Sf);
|
|
|
5745
5745
|
//#region src/blocks/F0WizardForm/F0WizardForm.tsx
|
|
5746
5746
|
function Cf(e) {
|
|
5747
5747
|
let t = ya(e).shape, n = Object.entries(t);
|
|
5748
|
-
return n.length !== 0 && n.every(([, e]) =>
|
|
5748
|
+
return n.length !== 0 && n.every(([, e]) => Ui(e)?.disabled === !0);
|
|
5749
5749
|
}
|
|
5750
5750
|
function wf(e, t) {
|
|
5751
5751
|
if (t) return Object.keys(t);
|
|
5752
5752
|
let n = ya(e).shape, r = /* @__PURE__ */ new Set();
|
|
5753
5753
|
for (let e of Object.values(n)) {
|
|
5754
|
-
let t =
|
|
5754
|
+
let t = Ui(e);
|
|
5755
5755
|
t?.section && r.add(t.section);
|
|
5756
5756
|
}
|
|
5757
5757
|
return Array.from(r);
|
|
@@ -5759,7 +5759,7 @@ function wf(e, t) {
|
|
|
5759
5759
|
function Tf(e, t) {
|
|
5760
5760
|
let n = e.shape, r = {};
|
|
5761
5761
|
for (let [e, i] of Object.entries(n)) {
|
|
5762
|
-
let n =
|
|
5762
|
+
let n = Ui(i);
|
|
5763
5763
|
n?.section && t.includes(n.section) && (r[e] = i);
|
|
5764
5764
|
}
|
|
5765
5765
|
return ua(r);
|
|
@@ -5787,7 +5787,7 @@ function Of() {
|
|
|
5787
5787
|
}, []), s = t === "success" ? r ?? e.actionBar.saved : void 0;
|
|
5788
5788
|
return {
|
|
5789
5789
|
showSuccess: o,
|
|
5790
|
-
ActionBar: K(() => /* @__PURE__ */ X(
|
|
5790
|
+
ActionBar: K(() => /* @__PURE__ */ X(Bt, {
|
|
5791
5791
|
isOpen: t === "success",
|
|
5792
5792
|
variant: "light",
|
|
5793
5793
|
status: t,
|
|
@@ -5963,7 +5963,7 @@ function jf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, widt
|
|
|
5963
5963
|
}
|
|
5964
5964
|
});
|
|
5965
5965
|
}
|
|
5966
|
-
function Mf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultValues: i, onSubmit: a, submitConfig: o, errorTriggerMode: s, sectionForms: c, onErrorStateChange: l, renderCustomField: u, isLoading:
|
|
5966
|
+
function Mf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultValues: i, onSubmit: a, submitConfig: o, errorTriggerMode: s, sectionForms: c, onErrorStateChange: l, renderCustomField: u, isLoading: d }) {
|
|
5967
5967
|
let p = Ke();
|
|
5968
5968
|
G(() => (c[e] = p, () => {
|
|
5969
5969
|
c[e] = null;
|
|
@@ -5975,7 +5975,7 @@ function Mf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
5975
5975
|
let m = q(l);
|
|
5976
5976
|
return m.current = l, G(() => {
|
|
5977
5977
|
m.current(p.hasErrors);
|
|
5978
|
-
}, [p.hasErrors]), /* @__PURE__ */ X(
|
|
5978
|
+
}, [p.hasErrors]), /* @__PURE__ */ X(f, {
|
|
5979
5979
|
formName: t,
|
|
5980
5980
|
sectionId: e,
|
|
5981
5981
|
schema: n,
|
|
@@ -5989,7 +5989,7 @@ function Mf({ sectionId: e, formName: t, schema: n, sectionConfig: r, defaultVal
|
|
|
5989
5989
|
errorTriggerMode: s,
|
|
5990
5990
|
formRef: p.formRef,
|
|
5991
5991
|
renderCustomField: u,
|
|
5992
|
-
isLoading:
|
|
5992
|
+
isLoading: d
|
|
5993
5993
|
});
|
|
5994
5994
|
}
|
|
5995
5995
|
function Nf({ formDefinition: e, steps: t, isOpen: n, onClose: r, title: i, width: a, size: o, defaultStepIndex: s, nextLabel: c, previousLabel: l, onStepChanged: u, allowStepSkipping: d, autoCloseOnLastStepSubmit: f, linkAfterLastStepSubmit: p, autoSkipCompletedSteps: h = !1, renderCustomField: g }) {
|
|
@@ -6144,10 +6144,10 @@ function Rf({ options: e, isOpen: t, onResolve: n }) {
|
|
|
6144
6144
|
}
|
|
6145
6145
|
function zf(e) {
|
|
6146
6146
|
return new Promise((t) => {
|
|
6147
|
-
let n = e.id ??
|
|
6148
|
-
r || (r = !0, t(e),
|
|
6147
|
+
let n = e.id ?? g(), r = !1, i = (e) => {
|
|
6148
|
+
r || (r = !0, t(e), w(n));
|
|
6149
6149
|
};
|
|
6150
|
-
|
|
6150
|
+
Ce({
|
|
6151
6151
|
id: n,
|
|
6152
6152
|
onDismiss: () => i({ completed: !1 }),
|
|
6153
6153
|
render: ({ isOpen: t }) => /* @__PURE__ */ X(Rf, {
|
|
@@ -6162,7 +6162,7 @@ function zf(e) {
|
|
|
6162
6162
|
//#region src/facade/forms/forms.ts
|
|
6163
6163
|
function Bf(e) {
|
|
6164
6164
|
let { mode: t, ...n } = e;
|
|
6165
|
-
return t === "wizard" ? zf(n) :
|
|
6165
|
+
return t === "wizard" ? zf(n) : l(n);
|
|
6166
6166
|
}
|
|
6167
6167
|
var Vf = { open: Bf }, Hf = [
|
|
6168
6168
|
"page-width",
|
|
@@ -6188,8 +6188,8 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6188
6188
|
className: "flex justify-between text-sm text-f1-foreground-secondary",
|
|
6189
6189
|
children: [/* @__PURE__ */ X("span", { children: e }), /* @__PURE__ */ X("span", { children: t })]
|
|
6190
6190
|
}), Kf = ({ visible: e, content: t, style: n }) => {
|
|
6191
|
-
let r =
|
|
6192
|
-
return /* @__PURE__ */ X(
|
|
6191
|
+
let r = mn() ? 0 : .15;
|
|
6192
|
+
return /* @__PURE__ */ X(Cn, { children: e ? /* @__PURE__ */ X(An.div, {
|
|
6193
6193
|
initial: {
|
|
6194
6194
|
opacity: 0,
|
|
6195
6195
|
x: "-50%",
|
|
@@ -6221,7 +6221,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6221
6221
|
className: "flex items-center py-2",
|
|
6222
6222
|
children: /* @__PURE__ */ X(B, { className: "h-1.5 w-full rounded-full" })
|
|
6223
6223
|
})]
|
|
6224
|
-
}), Jf =
|
|
6224
|
+
}), Jf = Mn({
|
|
6225
6225
|
base: "relative h-1.5 grow overflow-hidden rounded-full bg-f1-background-tertiary",
|
|
6226
6226
|
variants: { status: {
|
|
6227
6227
|
default: "",
|
|
@@ -6229,7 +6229,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6229
6229
|
info: "",
|
|
6230
6230
|
error: ""
|
|
6231
6231
|
} }
|
|
6232
|
-
}), Yf =
|
|
6232
|
+
}), Yf = Mn({
|
|
6233
6233
|
base: "absolute h-full",
|
|
6234
6234
|
variants: {
|
|
6235
6235
|
status: {
|
|
@@ -6243,7 +6243,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6243
6243
|
false: ""
|
|
6244
6244
|
}
|
|
6245
6245
|
}
|
|
6246
|
-
}), Xf = 20, Zf =
|
|
6246
|
+
}), Xf = 20, Zf = Mn({
|
|
6247
6247
|
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"),
|
|
6248
6248
|
variants: {
|
|
6249
6249
|
status: {
|
|
@@ -6262,7 +6262,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6262
6262
|
G(() => {
|
|
6263
6263
|
process.env.NODE_ENV !== "production" && !T && console.warn("F0Slider: provide a non-empty `label` or `ariaLabel` for accessibility.");
|
|
6264
6264
|
}, [T]);
|
|
6265
|
-
let [E, D] =
|
|
6265
|
+
let [E, D] = Wn({
|
|
6266
6266
|
prop: u,
|
|
6267
6267
|
defaultProp: d ?? m,
|
|
6268
6268
|
onChange: f
|
|
@@ -6330,7 +6330,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6330
6330
|
className: H(Zf({
|
|
6331
6331
|
status: I,
|
|
6332
6332
|
disabled: c
|
|
6333
|
-
}),
|
|
6333
|
+
}), lr("focus-visible:ring-offset-1")),
|
|
6334
6334
|
onFocus: () => te(!F.current),
|
|
6335
6335
|
onBlur: () => te(!1)
|
|
6336
6336
|
}),
|
|
@@ -6355,7 +6355,7 @@ var Vf = { open: Bf }, Hf = [
|
|
|
6355
6355
|
});
|
|
6356
6356
|
});
|
|
6357
6357
|
Qf.displayName = "F0Slider";
|
|
6358
|
-
var $f =
|
|
6358
|
+
var $f = Kn("F0Slider", $i(L(Qf), qf)), ep = [
|
|
6359
6359
|
"completed",
|
|
6360
6360
|
"in-progress",
|
|
6361
6361
|
"not-started"
|
|
@@ -6375,7 +6375,7 @@ var $f = qn("F0Slider", Qi(L(Qf), qf)), ep = [
|
|
|
6375
6375
|
"grey",
|
|
6376
6376
|
"orange",
|
|
6377
6377
|
"radical"
|
|
6378
|
-
], np = 16, rp =
|
|
6378
|
+
], np = 16, rp = Mn({
|
|
6379
6379
|
base: "h-0.5 rounded-full bg-f1-foreground cursor-pointer",
|
|
6380
6380
|
variants: {
|
|
6381
6381
|
depth: {
|
|
@@ -6472,7 +6472,7 @@ function cp(e, t) {
|
|
|
6472
6472
|
}
|
|
6473
6473
|
//#endregion
|
|
6474
6474
|
//#region src/blocks/F0TableOfContentPopover/F0TableOfContentPopover.tsx
|
|
6475
|
-
var lp = 300, up = 0, dp =
|
|
6475
|
+
var lp = 300, up = 0, dp = Mn({
|
|
6476
6476
|
base: "w-auto overflow-y-auto rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-0 shadow-lg",
|
|
6477
6477
|
variants: { size: {
|
|
6478
6478
|
sm: "max-h-[240px]",
|
|
@@ -6500,7 +6500,7 @@ function fp({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
6500
6500
|
children: [/* @__PURE__ */ X(ms, {
|
|
6501
6501
|
asChild: !0,
|
|
6502
6502
|
children: /* @__PURE__ */ X("button", {
|
|
6503
|
-
className: H(
|
|
6503
|
+
className: H(lr(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", n),
|
|
6504
6504
|
"aria-label": e ?? "Menu",
|
|
6505
6505
|
children: /* @__PURE__ */ X(op, {
|
|
6506
6506
|
items: t,
|
|
@@ -6529,7 +6529,7 @@ function fp({ title: e, items: t, className: n, activeItem: r, collapsible: i =
|
|
|
6529
6529
|
})]
|
|
6530
6530
|
});
|
|
6531
6531
|
}
|
|
6532
|
-
var pp = L(
|
|
6532
|
+
var pp = L(Kn("F0TableOfContentPopover", fp));
|
|
6533
6533
|
//#endregion
|
|
6534
6534
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/Form/utils.ts
|
|
6535
6535
|
function mp(e) {
|
|
@@ -6609,7 +6609,7 @@ function _p(e) {
|
|
|
6609
6609
|
}
|
|
6610
6610
|
//#endregion
|
|
6611
6611
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/ApplyingChangesTag/ApplyingChangesTag.tsx
|
|
6612
|
-
var vp =
|
|
6612
|
+
var vp = An.create(wi), yp = vc(() => {
|
|
6613
6613
|
let e = V();
|
|
6614
6614
|
return /* @__PURE__ */ Z("div", {
|
|
6615
6615
|
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",
|
|
@@ -6961,12 +6961,12 @@ var Pp = () => {
|
|
|
6961
6961
|
let { isQuestionTypeAllowed: e, datasets: t } = Ap(), { t: n } = V(), r = [
|
|
6962
6962
|
{
|
|
6963
6963
|
label: n("surveyFormBuilder.questionTypes.rating"),
|
|
6964
|
-
icon:
|
|
6964
|
+
icon: Ha,
|
|
6965
6965
|
questionType: "rating"
|
|
6966
6966
|
},
|
|
6967
6967
|
{
|
|
6968
6968
|
label: n("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
6969
|
-
icon:
|
|
6969
|
+
icon: fo,
|
|
6970
6970
|
questionType: "multi-select"
|
|
6971
6971
|
},
|
|
6972
6972
|
{
|
|
@@ -6976,32 +6976,32 @@ var Pp = () => {
|
|
|
6976
6976
|
},
|
|
6977
6977
|
{
|
|
6978
6978
|
label: n("surveyFormBuilder.questionTypes.text"),
|
|
6979
|
-
icon:
|
|
6979
|
+
icon: Qa,
|
|
6980
6980
|
questionType: "text"
|
|
6981
6981
|
},
|
|
6982
6982
|
{
|
|
6983
6983
|
label: n("surveyFormBuilder.questionTypes.longText"),
|
|
6984
|
-
icon:
|
|
6984
|
+
icon: ia,
|
|
6985
6985
|
questionType: "longText"
|
|
6986
6986
|
},
|
|
6987
6987
|
{
|
|
6988
6988
|
label: n("surveyFormBuilder.questionTypes.numeric"),
|
|
6989
|
-
icon:
|
|
6989
|
+
icon: Ri,
|
|
6990
6990
|
questionType: "numeric"
|
|
6991
6991
|
},
|
|
6992
6992
|
{
|
|
6993
6993
|
label: n("surveyFormBuilder.questionTypes.link"),
|
|
6994
|
-
icon:
|
|
6994
|
+
icon: hi,
|
|
6995
6995
|
questionType: "link"
|
|
6996
6996
|
},
|
|
6997
6997
|
{
|
|
6998
6998
|
label: n("surveyFormBuilder.questionTypes.date"),
|
|
6999
|
-
icon:
|
|
6999
|
+
icon: Xa,
|
|
7000
7000
|
questionType: "date"
|
|
7001
7001
|
},
|
|
7002
7002
|
{
|
|
7003
7003
|
label: n("surveyFormBuilder.questionTypes.file"),
|
|
7004
|
-
icon:
|
|
7004
|
+
icon: va,
|
|
7005
7005
|
questionType: "file"
|
|
7006
7006
|
},
|
|
7007
7007
|
{
|
|
@@ -7011,23 +7011,23 @@ var Pp = () => {
|
|
|
7011
7011
|
}
|
|
7012
7012
|
].filter((t) => e(t.questionType)), i = e("dropdown-single") ? Object.entries(t ?? {}).map(([e, t]) => ({
|
|
7013
7013
|
label: t.title,
|
|
7014
|
-
icon: t.icon ??
|
|
7014
|
+
icon: t.icon ?? Ao,
|
|
7015
7015
|
questionType: "dropdown-single",
|
|
7016
7016
|
datasetKey: e
|
|
7017
7017
|
})) : [];
|
|
7018
7018
|
return [...r, ...i];
|
|
7019
7019
|
}, Fp = {
|
|
7020
|
-
rating:
|
|
7021
|
-
"multi-select":
|
|
7020
|
+
rating: Ha,
|
|
7021
|
+
"multi-select": fo,
|
|
7022
7022
|
select: rc,
|
|
7023
|
-
text:
|
|
7024
|
-
longText:
|
|
7025
|
-
numeric:
|
|
7026
|
-
link:
|
|
7027
|
-
date:
|
|
7028
|
-
"dropdown-single":
|
|
7029
|
-
"dropdown-multi":
|
|
7030
|
-
file:
|
|
7023
|
+
text: Qa,
|
|
7024
|
+
longText: ia,
|
|
7025
|
+
numeric: Ri,
|
|
7026
|
+
link: hi,
|
|
7027
|
+
date: Xa,
|
|
7028
|
+
"dropdown-single": Ao,
|
|
7029
|
+
"dropdown-multi": Ao,
|
|
7030
|
+
file: va,
|
|
7031
7031
|
checkbox: As
|
|
7032
7032
|
}, Ip = () => {
|
|
7033
7033
|
let { disabled: e, answering: t, onAddNewElement: n, isQuestionTypeAllowed: r, labels: i } = Ap(), [a, o] = J(!1), s = Pp(), { t: c } = V(), l = i?.addQuestion ?? c("surveyFormBuilder.actions.addQuestion"), u = (e, t) => {
|
|
@@ -7040,28 +7040,28 @@ var Pp = () => {
|
|
|
7040
7040
|
}, f = s.filter((e) => !e.datasetKey), p = Array.from(new Set(s.filter((e) => !!e.datasetKey).map((e) => e.datasetKey)));
|
|
7041
7041
|
return e || t ? null : /* @__PURE__ */ X("div", {
|
|
7042
7042
|
className: "ml-6 flex justify-center",
|
|
7043
|
-
children: /* @__PURE__ */ Z(
|
|
7043
|
+
children: /* @__PURE__ */ Z(an, {
|
|
7044
7044
|
open: a,
|
|
7045
7045
|
onOpenChange: o,
|
|
7046
|
-
children: [/* @__PURE__ */ X(
|
|
7046
|
+
children: [/* @__PURE__ */ X(vn, {
|
|
7047
7047
|
asChild: !0,
|
|
7048
7048
|
children: /* @__PURE__ */ X(R, {
|
|
7049
|
-
icon:
|
|
7049
|
+
icon: vo,
|
|
7050
7050
|
label: l,
|
|
7051
7051
|
size: "md",
|
|
7052
7052
|
variant: "outline",
|
|
7053
7053
|
hideLabel: !0
|
|
7054
7054
|
})
|
|
7055
|
-
}), /* @__PURE__ */ Z(
|
|
7055
|
+
}), /* @__PURE__ */ Z(In, {
|
|
7056
7056
|
align: "center",
|
|
7057
7057
|
className: "w-80",
|
|
7058
7058
|
children: [
|
|
7059
|
-
/* @__PURE__ */ X(
|
|
7059
|
+
/* @__PURE__ */ X(hn, {
|
|
7060
7060
|
onClick: d,
|
|
7061
7061
|
children: /* @__PURE__ */ Z("div", {
|
|
7062
7062
|
className: "flex w-full flex-row items-center gap-2",
|
|
7063
7063
|
children: [/* @__PURE__ */ X(z, {
|
|
7064
|
-
icon:
|
|
7064
|
+
icon: eo,
|
|
7065
7065
|
color: "default"
|
|
7066
7066
|
}), /* @__PURE__ */ X("span", {
|
|
7067
7067
|
className: "flex-1 text-base font-medium",
|
|
@@ -7069,8 +7069,8 @@ var Pp = () => {
|
|
|
7069
7069
|
})]
|
|
7070
7070
|
})
|
|
7071
7071
|
}),
|
|
7072
|
-
/* @__PURE__ */ X(
|
|
7073
|
-
f.map((e) => /* @__PURE__ */ X(
|
|
7072
|
+
/* @__PURE__ */ X(_n, {}),
|
|
7073
|
+
f.map((e) => /* @__PURE__ */ X(hn, {
|
|
7074
7074
|
onClick: () => u(e.questionType),
|
|
7075
7075
|
children: /* @__PURE__ */ Z("div", {
|
|
7076
7076
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7083,9 +7083,9 @@ var Pp = () => {
|
|
|
7083
7083
|
})]
|
|
7084
7084
|
})
|
|
7085
7085
|
}, e.questionType)),
|
|
7086
|
-
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7086
|
+
p.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(_n, {}), p.map((e) => {
|
|
7087
7087
|
let t = s.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
7088
|
-
return /* @__PURE__ */ Z(
|
|
7088
|
+
return /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
7089
7089
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7090
7090
|
children: /* @__PURE__ */ Z("div", {
|
|
7091
7091
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7097,7 +7097,7 @@ var Pp = () => {
|
|
|
7097
7097
|
children: t?.label ?? e
|
|
7098
7098
|
})]
|
|
7099
7099
|
})
|
|
7100
|
-
}), /* @__PURE__ */ X(
|
|
7100
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ Z(sn, { children: [r("dropdown-single") ? /* @__PURE__ */ X(hn, {
|
|
7101
7101
|
onClick: () => u("dropdown-single", e),
|
|
7102
7102
|
children: /* @__PURE__ */ Z("div", {
|
|
7103
7103
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7109,12 +7109,12 @@ var Pp = () => {
|
|
|
7109
7109
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
7110
7110
|
})]
|
|
7111
7111
|
})
|
|
7112
|
-
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(
|
|
7112
|
+
}) : null, r("dropdown-multi") ? /* @__PURE__ */ X(hn, {
|
|
7113
7113
|
onClick: () => u("dropdown-multi", e),
|
|
7114
7114
|
children: /* @__PURE__ */ Z("div", {
|
|
7115
7115
|
className: "flex w-full flex-row items-center gap-2",
|
|
7116
7116
|
children: [/* @__PURE__ */ X(z, {
|
|
7117
|
-
icon:
|
|
7117
|
+
icon: fo,
|
|
7118
7118
|
color: "default"
|
|
7119
7119
|
}), /* @__PURE__ */ X("span", {
|
|
7120
7120
|
className: "flex-1",
|
|
@@ -7262,7 +7262,7 @@ function Hp({ questionId: e, questionType: t, canDelete: n = !0 }) {
|
|
|
7262
7262
|
}
|
|
7263
7263
|
//#endregion
|
|
7264
7264
|
//#region src/domains/talent/surveys/surveys/SurveyFormBuilder/QuestionTypes/BaseQuestion/ActionsMenu/ActionsMenu.tsx
|
|
7265
|
-
var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(
|
|
7265
|
+
var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(hn, {
|
|
7266
7266
|
className: "!pb-2.5 pr-4",
|
|
7267
7267
|
onClick: (e) => {
|
|
7268
7268
|
e.preventDefault(), r(!n);
|
|
@@ -7270,7 +7270,7 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7270
7270
|
children: /* @__PURE__ */ Z("div", {
|
|
7271
7271
|
className: "flex w-full flex-row items-center gap-2",
|
|
7272
7272
|
children: [
|
|
7273
|
-
/* @__PURE__ */ X(
|
|
7273
|
+
/* @__PURE__ */ X(En, {
|
|
7274
7274
|
icon: t,
|
|
7275
7275
|
color: "default"
|
|
7276
7276
|
}),
|
|
@@ -7288,13 +7288,13 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7288
7288
|
})
|
|
7289
7289
|
}), Wp = ({ label: e, value: t, currentDatasetKey: n, questionTypes: r, currentRatingType: i, isQuestionTypeAllowed: a, onSelectQuestionType: o, onSelectRatingType: s }) => {
|
|
7290
7290
|
let { t: c } = V(), 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;
|
|
7291
|
-
return /* @__PURE__ */ Z(
|
|
7291
|
+
return /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
7292
7292
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7293
7293
|
children: /* @__PURE__ */ Z("div", {
|
|
7294
7294
|
className: "flex w-full flex-row items-center gap-2",
|
|
7295
7295
|
children: [
|
|
7296
|
-
/* @__PURE__ */ X(
|
|
7297
|
-
icon:
|
|
7296
|
+
/* @__PURE__ */ X(En, {
|
|
7297
|
+
icon: qa,
|
|
7298
7298
|
color: "default"
|
|
7299
7299
|
}),
|
|
7300
7300
|
/* @__PURE__ */ X("span", {
|
|
@@ -7307,14 +7307,14 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7307
7307
|
}) : null
|
|
7308
7308
|
]
|
|
7309
7309
|
})
|
|
7310
|
-
}), /* @__PURE__ */ X(
|
|
7310
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ Z(sn, { children: [l.map((e) => {
|
|
7311
7311
|
let r = e.questionType === "rating", a = t === e.questionType && !n;
|
|
7312
|
-
return r ? /* @__PURE__ */ Z(
|
|
7312
|
+
return r ? /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
7313
7313
|
className: "mx-1 mt-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7314
7314
|
children: /* @__PURE__ */ Z("div", {
|
|
7315
7315
|
className: "flex w-full flex-row items-center gap-2 text-base font-medium",
|
|
7316
7316
|
children: [
|
|
7317
|
-
/* @__PURE__ */ X(
|
|
7317
|
+
/* @__PURE__ */ X(En, {
|
|
7318
7318
|
icon: e.icon,
|
|
7319
7319
|
color: "default"
|
|
7320
7320
|
}),
|
|
@@ -7328,24 +7328,24 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7328
7328
|
}) : null
|
|
7329
7329
|
]
|
|
7330
7330
|
})
|
|
7331
|
-
}), /* @__PURE__ */ X(
|
|
7331
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ X(sn, { children: Rp.map((e) => /* @__PURE__ */ X(hn, {
|
|
7332
7332
|
onClick: () => s(e.value),
|
|
7333
7333
|
children: /* @__PURE__ */ Z("div", {
|
|
7334
7334
|
className: "flex w-full flex-row items-center gap-2 pl-2",
|
|
7335
7335
|
children: [/* @__PURE__ */ X("span", {
|
|
7336
7336
|
className: "flex-1",
|
|
7337
7337
|
children: e.label
|
|
7338
|
-
}), i === e.value ? /* @__PURE__ */ X(
|
|
7338
|
+
}), i === e.value ? /* @__PURE__ */ X(En, {
|
|
7339
7339
|
icon: rc,
|
|
7340
7340
|
color: "default"
|
|
7341
7341
|
}) : null]
|
|
7342
7342
|
})
|
|
7343
|
-
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(
|
|
7343
|
+
}, e.value)) }) })] }, e.questionType) : /* @__PURE__ */ X(hn, {
|
|
7344
7344
|
onClick: () => o(e.questionType),
|
|
7345
7345
|
children: /* @__PURE__ */ Z("div", {
|
|
7346
7346
|
className: "flex w-full flex-row items-center gap-2",
|
|
7347
7347
|
children: [
|
|
7348
|
-
/* @__PURE__ */ X(
|
|
7348
|
+
/* @__PURE__ */ X(En, {
|
|
7349
7349
|
icon: e.icon,
|
|
7350
7350
|
color: "default"
|
|
7351
7351
|
}),
|
|
@@ -7353,21 +7353,21 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7353
7353
|
className: "flex-1",
|
|
7354
7354
|
children: e.label
|
|
7355
7355
|
}),
|
|
7356
|
-
a ? /* @__PURE__ */ X(
|
|
7356
|
+
a ? /* @__PURE__ */ X(En, {
|
|
7357
7357
|
icon: rc,
|
|
7358
7358
|
color: "default"
|
|
7359
7359
|
}) : null
|
|
7360
7360
|
]
|
|
7361
7361
|
})
|
|
7362
7362
|
}, e.questionType);
|
|
7363
|
-
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7363
|
+
}), u.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(_n, {}), u.map((e) => {
|
|
7364
7364
|
let i = r.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
7365
|
-
return /* @__PURE__ */ Z(
|
|
7365
|
+
return /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
7366
7366
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7367
7367
|
children: /* @__PURE__ */ Z("div", {
|
|
7368
7368
|
className: "flex w-full flex-row items-center gap-2",
|
|
7369
7369
|
children: [
|
|
7370
|
-
i ? /* @__PURE__ */ X(
|
|
7370
|
+
i ? /* @__PURE__ */ X(En, {
|
|
7371
7371
|
icon: i.icon,
|
|
7372
7372
|
color: "default"
|
|
7373
7373
|
}) : null,
|
|
@@ -7375,18 +7375,18 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7375
7375
|
className: "flex-1 text-base font-medium",
|
|
7376
7376
|
children: i?.label ?? e
|
|
7377
7377
|
}),
|
|
7378
|
-
n === e ? /* @__PURE__ */ X(
|
|
7378
|
+
n === e ? /* @__PURE__ */ X(En, {
|
|
7379
7379
|
icon: rc,
|
|
7380
7380
|
color: "default"
|
|
7381
7381
|
}) : null
|
|
7382
7382
|
]
|
|
7383
7383
|
})
|
|
7384
|
-
}), /* @__PURE__ */ X(
|
|
7384
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ Z(sn, { children: [a("dropdown-single") ? /* @__PURE__ */ X(hn, {
|
|
7385
7385
|
onClick: () => o("dropdown-single", e),
|
|
7386
7386
|
children: /* @__PURE__ */ Z("div", {
|
|
7387
7387
|
className: "flex w-full flex-row items-center gap-2",
|
|
7388
7388
|
children: [
|
|
7389
|
-
/* @__PURE__ */ X(
|
|
7389
|
+
/* @__PURE__ */ X(En, {
|
|
7390
7390
|
icon: rc,
|
|
7391
7391
|
color: "default"
|
|
7392
7392
|
}),
|
|
@@ -7394,26 +7394,26 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7394
7394
|
className: "flex-1",
|
|
7395
7395
|
children: c("surveyFormBuilder.labels.singleSelection")
|
|
7396
7396
|
}),
|
|
7397
|
-
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(
|
|
7397
|
+
n === e && t === "dropdown-single" ? /* @__PURE__ */ X(En, {
|
|
7398
7398
|
icon: rc,
|
|
7399
7399
|
color: "default"
|
|
7400
7400
|
}) : null
|
|
7401
7401
|
]
|
|
7402
7402
|
})
|
|
7403
|
-
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(
|
|
7403
|
+
}) : null, a("dropdown-multi") ? /* @__PURE__ */ X(hn, {
|
|
7404
7404
|
onClick: () => o("dropdown-multi", e),
|
|
7405
7405
|
children: /* @__PURE__ */ Z("div", {
|
|
7406
7406
|
className: "flex w-full flex-row items-center gap-2",
|
|
7407
7407
|
children: [
|
|
7408
|
-
/* @__PURE__ */ X(
|
|
7409
|
-
icon:
|
|
7408
|
+
/* @__PURE__ */ X(En, {
|
|
7409
|
+
icon: fo,
|
|
7410
7410
|
color: "default"
|
|
7411
7411
|
}),
|
|
7412
7412
|
/* @__PURE__ */ X("span", {
|
|
7413
7413
|
className: "flex-1",
|
|
7414
7414
|
children: c("surveyFormBuilder.labels.multiSelection")
|
|
7415
7415
|
}),
|
|
7416
|
-
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(
|
|
7416
|
+
n === e && t === "dropdown-multi" ? /* @__PURE__ */ X(En, {
|
|
7417
7417
|
icon: rc,
|
|
7418
7418
|
color: "default"
|
|
7419
7419
|
}) : null
|
|
@@ -7421,25 +7421,25 @@ var Up = ({ label: e, icon: t, checked: n, onChange: r }) => /* @__PURE__ */ X(g
|
|
|
7421
7421
|
})
|
|
7422
7422
|
}) : null] }) })] }, e);
|
|
7423
7423
|
})] }) : null] }) })] });
|
|
7424
|
-
}, Gp = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(
|
|
7424
|
+
}, Gp = ({ label: e, icon: t, onClick: n, critical: r }) => /* @__PURE__ */ X(hn, {
|
|
7425
7425
|
onClick: n,
|
|
7426
7426
|
className: H(r ? "text-f1-foreground-critical" : void 0),
|
|
7427
7427
|
children: /* @__PURE__ */ Z("div", {
|
|
7428
7428
|
className: "flex w-full flex-row items-center gap-2",
|
|
7429
|
-
children: [/* @__PURE__ */ X(
|
|
7429
|
+
children: [/* @__PURE__ */ X(En, { icon: t }), /* @__PURE__ */ X("span", {
|
|
7430
7430
|
className: "flex-1",
|
|
7431
7431
|
children: e
|
|
7432
7432
|
})]
|
|
7433
7433
|
})
|
|
7434
7434
|
}), Kp = ({ showDuplicate: e, showDelete: t, withSeparator: n, onDuplicate: r, onDelete: i }) => {
|
|
7435
7435
|
let { t: a } = V(), { labels: o } = Ap();
|
|
7436
|
-
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(
|
|
7436
|
+
return !e && !t ? null : /* @__PURE__ */ Z(Y, { children: [n ? /* @__PURE__ */ X(_n, {}) : null, /* @__PURE__ */ Z(pn, { children: [e ? /* @__PURE__ */ X(Gp, {
|
|
7437
7437
|
label: o?.duplicateQuestion ?? a("surveyFormBuilder.actions.duplicateQuestion"),
|
|
7438
|
-
icon:
|
|
7438
|
+
icon: ro,
|
|
7439
7439
|
onClick: r
|
|
7440
7440
|
}) : null, t ? /* @__PURE__ */ X(Gp, {
|
|
7441
7441
|
label: o?.deleteQuestion ?? a("surveyFormBuilder.actions.deleteQuestion"),
|
|
7442
|
-
icon:
|
|
7442
|
+
icon: Ji,
|
|
7443
7443
|
onClick: i,
|
|
7444
7444
|
critical: !0
|
|
7445
7445
|
}) : null] })] });
|
|
@@ -7450,47 +7450,47 @@ function qp({ open: e, setOpen: t, questionId: n, questionType: r, canDeleteQues
|
|
|
7450
7450
|
questionType: r,
|
|
7451
7451
|
canDelete: i
|
|
7452
7452
|
}), 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");
|
|
7453
|
-
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(
|
|
7453
|
+
return !T && !E && !D && !O && !k && !A ? null : /* @__PURE__ */ Z(an, {
|
|
7454
7454
|
open: e,
|
|
7455
7455
|
onOpenChange: t,
|
|
7456
|
-
children: [/* @__PURE__ */ X(
|
|
7456
|
+
children: [/* @__PURE__ */ X(vn, {
|
|
7457
7457
|
tabIndex: -1,
|
|
7458
7458
|
asChild: !0,
|
|
7459
7459
|
children: /* @__PURE__ */ X(R, {
|
|
7460
|
-
icon:
|
|
7460
|
+
icon: Ei,
|
|
7461
7461
|
label: o("surveyFormBuilder.labels.actions"),
|
|
7462
7462
|
size: "md",
|
|
7463
7463
|
variant: "ghost",
|
|
7464
7464
|
tooltip: !1,
|
|
7465
7465
|
hideLabel: !0
|
|
7466
7466
|
})
|
|
7467
|
-
}), /* @__PURE__ */ Z(
|
|
7467
|
+
}), /* @__PURE__ */ Z(In, {
|
|
7468
7468
|
className: "w-80",
|
|
7469
7469
|
align: "start",
|
|
7470
7470
|
children: [
|
|
7471
|
-
/* @__PURE__ */ X(
|
|
7471
|
+
/* @__PURE__ */ X(gn, {
|
|
7472
7472
|
className: "p-4 pb-2 font-medium text-f1-foreground-secondary",
|
|
7473
7473
|
children: c?.questionOptions ?? o("surveyFormBuilder.labels.questionOptions")
|
|
7474
7474
|
}),
|
|
7475
|
-
T ? /* @__PURE__ */ X(
|
|
7475
|
+
T ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(Up, {
|
|
7476
7476
|
label: o("surveyFormBuilder.labels.required"),
|
|
7477
|
-
icon:
|
|
7477
|
+
icon: Fa,
|
|
7478
7478
|
checked: !!l?.required,
|
|
7479
7479
|
onChange: _
|
|
7480
7480
|
}) }) : null,
|
|
7481
|
-
E ? /* @__PURE__ */ X(
|
|
7481
|
+
E ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(Up, {
|
|
7482
7482
|
label: o("surveyFormBuilder.labels.allowMultiSelection"),
|
|
7483
|
-
icon:
|
|
7483
|
+
icon: fo,
|
|
7484
7484
|
checked: p,
|
|
7485
7485
|
onChange: b
|
|
7486
7486
|
}) }) : null,
|
|
7487
|
-
D ? /* @__PURE__ */ X(
|
|
7487
|
+
D ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(Up, {
|
|
7488
7488
|
label: o("surveyFormBuilder.labels.allowCreate"),
|
|
7489
7489
|
icon: ys,
|
|
7490
7490
|
checked: m,
|
|
7491
7491
|
onChange: x
|
|
7492
7492
|
}) }) : null,
|
|
7493
|
-
O ? /* @__PURE__ */ X(
|
|
7493
|
+
O ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(Wp, {
|
|
7494
7494
|
label: c?.questionType ?? o("surveyFormBuilder.labels.questionType"),
|
|
7495
7495
|
value: r,
|
|
7496
7496
|
currentDatasetKey: f,
|
|
@@ -7518,12 +7518,12 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7518
7518
|
className: t,
|
|
7519
7519
|
children: n
|
|
7520
7520
|
});
|
|
7521
|
-
return e ? /* @__PURE__ */ X(
|
|
7521
|
+
return e ? /* @__PURE__ */ X(xn, {
|
|
7522
7522
|
instant: !0,
|
|
7523
7523
|
...e,
|
|
7524
7524
|
children: r
|
|
7525
7525
|
}) : r;
|
|
7526
|
-
}, Yp = ({ id: e, title: t, description:
|
|
7526
|
+
}, Yp = ({ id: e, title: t, description: n, children: i, required: a, type: o, hiddenActions: s, locked: c, lockedFields: l, lockedNote: u }) => {
|
|
7527
7527
|
let { onQuestionChange: d, onAddNewElement: f, disabled: p, answering: m, getIsSingleQuestionInSection: h, getSectionContainingQuestion: g, isQuestionTypeAllowed: _, placeholders: v, labels: y } = Ap(), b = g(e), x = !!b?.locked || !!c, S = x || !!l?.includes("title"), C = x || !!l?.includes("description"), w = !x && (S || C), T = !!b, [E, D] = J(!1), [O, k] = J(!1), { isDragging: A } = Np(), { t: j } = V(), ee = v?.questionTitle ?? j("surveyFormBuilder.labels.titlePlaceholder"), M = y?.addQuestion ?? j("surveyFormBuilder.actions.addQuestion"), N = v?.questionDescription ?? j("surveyFormBuilder.labels.questionDescriptionPlaceholder"), P = (t) => {
|
|
7528
7528
|
d?.({
|
|
7529
7529
|
id: e,
|
|
@@ -7551,7 +7551,7 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7551
7551
|
G(() => {
|
|
7552
7552
|
se.current && oe.current?.focus({ preventScroll: !0 });
|
|
7553
7553
|
}, []);
|
|
7554
|
-
let ce = p || S || m, le = p || C || m, ue = !le || !!
|
|
7554
|
+
let ce = p || S || m, le = p || C || m, ue = !le || !!n, de = x || w ? { description: u?.description ?? b?.lockedNote?.description ?? j("surveyFormBuilder.labels.lockedQuestionNotice") } : null;
|
|
7555
7555
|
return /* @__PURE__ */ Z("div", {
|
|
7556
7556
|
id: `co-creation-question-${e}`,
|
|
7557
7557
|
className: H("group/question relative flex w-full flex-col rounded-xl border border-solid border-f1-border bg-f1-background px-3 py-3", x && !m && "cursor-not-allowed [&_*]:!cursor-not-allowed", !A && !m && !x && "hover:border-f1-border-hover", ue ? "gap-4" : "gap-2"),
|
|
@@ -7589,7 +7589,7 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7589
7589
|
}) : null]
|
|
7590
7590
|
})] })
|
|
7591
7591
|
}),
|
|
7592
|
-
!m && x ? /* @__PURE__ */ X("div", { children: de ? /* @__PURE__ */ X(
|
|
7592
|
+
!m && x ? /* @__PURE__ */ X("div", { children: de ? /* @__PURE__ */ X(xn, {
|
|
7593
7593
|
instant: !0,
|
|
7594
7594
|
...de,
|
|
7595
7595
|
children: /* @__PURE__ */ X("span", {
|
|
@@ -7627,13 +7627,13 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7627
7627
|
})
|
|
7628
7628
|
}) : null
|
|
7629
7629
|
]
|
|
7630
|
-
}), m ?
|
|
7630
|
+
}), m ? n ? /* @__PURE__ */ X("p", {
|
|
7631
7631
|
className: "w-full whitespace-pre-wrap break-words px-2 text-f1-foreground-secondary",
|
|
7632
|
-
children:
|
|
7632
|
+
children: n
|
|
7633
7633
|
}) : null : ue ? /* @__PURE__ */ X(Jp, {
|
|
7634
7634
|
notice: w && C ? de : null,
|
|
7635
7635
|
children: /* @__PURE__ */ X("textarea", {
|
|
7636
|
-
value:
|
|
7636
|
+
value: n,
|
|
7637
7637
|
"aria-label": j("surveyFormBuilder.labels.description"),
|
|
7638
7638
|
placeholder: N,
|
|
7639
7639
|
onChange: te,
|
|
@@ -7643,42 +7643,42 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7643
7643
|
}) : null]
|
|
7644
7644
|
}),
|
|
7645
7645
|
i,
|
|
7646
|
-
m ? /* @__PURE__ */ X(
|
|
7646
|
+
m ? /* @__PURE__ */ X(r, {
|
|
7647
7647
|
className: "-mt-2",
|
|
7648
7648
|
fallback: j(a ? "forms.validation.required" : "forms.validation.invalidType")
|
|
7649
7649
|
}) : null,
|
|
7650
7650
|
!p && !m && !x ? /* @__PURE__ */ X("div", {
|
|
7651
7651
|
className: H("absolute bottom-0 left-1/2 translate-x-[-50%] translate-y-[50%] bg-f1-background opacity-0 group-hover/question:opacity-100", E && "opacity-100"),
|
|
7652
|
-
children: /* @__PURE__ */ Z(
|
|
7652
|
+
children: /* @__PURE__ */ Z(an, {
|
|
7653
7653
|
open: E,
|
|
7654
7654
|
onOpenChange: D,
|
|
7655
|
-
children: [/* @__PURE__ */ X(
|
|
7655
|
+
children: [/* @__PURE__ */ X(vn, {
|
|
7656
7656
|
asChild: !0,
|
|
7657
7657
|
children: /* @__PURE__ */ X(R, {
|
|
7658
|
-
icon:
|
|
7658
|
+
icon: vo,
|
|
7659
7659
|
label: M,
|
|
7660
7660
|
size: "sm",
|
|
7661
7661
|
variant: "outline",
|
|
7662
7662
|
hideLabel: !0
|
|
7663
7663
|
})
|
|
7664
|
-
}), /* @__PURE__ */ Z(
|
|
7664
|
+
}), /* @__PURE__ */ Z(In, {
|
|
7665
7665
|
align: "center",
|
|
7666
7666
|
className: "w-80",
|
|
7667
7667
|
children: [
|
|
7668
|
-
T ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7668
|
+
T ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(hn, {
|
|
7669
7669
|
onClick: re,
|
|
7670
7670
|
children: /* @__PURE__ */ Z("div", {
|
|
7671
7671
|
className: "flex w-full flex-row items-center gap-2",
|
|
7672
7672
|
children: [/* @__PURE__ */ X(z, {
|
|
7673
|
-
icon:
|
|
7673
|
+
icon: eo,
|
|
7674
7674
|
color: "default"
|
|
7675
7675
|
}), /* @__PURE__ */ X("span", {
|
|
7676
7676
|
className: "flex-1 text-base font-medium",
|
|
7677
7677
|
children: j("surveyFormBuilder.questionTypes.section")
|
|
7678
7678
|
})]
|
|
7679
7679
|
})
|
|
7680
|
-
}), /* @__PURE__ */ X(
|
|
7681
|
-
ie.map((e) => /* @__PURE__ */ X(
|
|
7680
|
+
}), /* @__PURE__ */ X(_n, {})] }),
|
|
7681
|
+
ie.map((e) => /* @__PURE__ */ X(hn, {
|
|
7682
7682
|
onClick: () => ne(e.questionType),
|
|
7683
7683
|
children: /* @__PURE__ */ Z("div", {
|
|
7684
7684
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7691,9 +7691,9 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7691
7691
|
})]
|
|
7692
7692
|
})
|
|
7693
7693
|
}, e.questionType)),
|
|
7694
|
-
I.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(
|
|
7694
|
+
I.length > 0 ? /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(_n, {}), I.map((e) => {
|
|
7695
7695
|
let t = F.find((t) => t.datasetKey === e && t.questionType === "dropdown-single");
|
|
7696
|
-
return /* @__PURE__ */ Z(
|
|
7696
|
+
return /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
7697
7697
|
className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover",
|
|
7698
7698
|
children: /* @__PURE__ */ Z("div", {
|
|
7699
7699
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7705,7 +7705,7 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7705
7705
|
children: t?.label ?? e
|
|
7706
7706
|
})]
|
|
7707
7707
|
})
|
|
7708
|
-
}), /* @__PURE__ */ X(
|
|
7708
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ Z(sn, { children: [_("dropdown-single") ? /* @__PURE__ */ X(hn, {
|
|
7709
7709
|
onClick: () => ne("dropdown-single", e),
|
|
7710
7710
|
children: /* @__PURE__ */ Z("div", {
|
|
7711
7711
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -7717,12 +7717,12 @@ var Jp = ({ notice: e, className: t, children: n }) => {
|
|
|
7717
7717
|
children: j("surveyFormBuilder.labels.singleSelection")
|
|
7718
7718
|
})]
|
|
7719
7719
|
})
|
|
7720
|
-
}) : null, _("dropdown-multi") ? /* @__PURE__ */ X(
|
|
7720
|
+
}) : null, _("dropdown-multi") ? /* @__PURE__ */ X(hn, {
|
|
7721
7721
|
onClick: () => ne("dropdown-multi", e),
|
|
7722
7722
|
children: /* @__PURE__ */ Z("div", {
|
|
7723
7723
|
className: "flex w-full flex-row items-center gap-2",
|
|
7724
7724
|
children: [/* @__PURE__ */ X(z, {
|
|
7725
|
-
icon:
|
|
7725
|
+
icon: fo,
|
|
7726
7726
|
color: "default"
|
|
7727
7727
|
}), /* @__PURE__ */ X("span", {
|
|
7728
7728
|
className: "flex-1",
|
|
@@ -7956,7 +7956,7 @@ var Zp = ({ value: e, label: t, ...n }) => {
|
|
|
7956
7956
|
required: t.required,
|
|
7957
7957
|
maxDecimals: 0,
|
|
7958
7958
|
placeholder: s,
|
|
7959
|
-
icon:
|
|
7959
|
+
icon: Ri
|
|
7960
7960
|
}) : /* @__PURE__ */ X(Ya, {
|
|
7961
7961
|
type: "text",
|
|
7962
7962
|
size: "md",
|
|
@@ -7965,7 +7965,7 @@ var Zp = ({ value: e, label: t, ...n }) => {
|
|
|
7965
7965
|
disabled: !0,
|
|
7966
7966
|
label: n("surveyFormBuilder.answer.label"),
|
|
7967
7967
|
hideLabel: !0,
|
|
7968
|
-
icon:
|
|
7968
|
+
icon: Ri
|
|
7969
7969
|
})
|
|
7970
7970
|
});
|
|
7971
7971
|
}, am = ({ option: e, selected: t, onClick: n, onChangeLabel: r, disabled: i, isEmojiMode: a = !1 }) => {
|
|
@@ -7978,10 +7978,10 @@ var Zp = ({ value: e, label: t, ...n }) => {
|
|
|
7978
7978
|
onClick: () => {
|
|
7979
7979
|
i || n(o);
|
|
7980
7980
|
},
|
|
7981
|
-
children: a ? /* @__PURE__ */ Z(
|
|
7981
|
+
children: a ? /* @__PURE__ */ Z(Jn, {
|
|
7982
7982
|
open: !i && c,
|
|
7983
7983
|
onOpenChange: i ? void 0 : l,
|
|
7984
|
-
children: [/* @__PURE__ */ X(
|
|
7984
|
+
children: [/* @__PURE__ */ X(Tn, {
|
|
7985
7985
|
asChild: !0,
|
|
7986
7986
|
children: /* @__PURE__ */ X(R, {
|
|
7987
7987
|
emoji: s,
|
|
@@ -7991,15 +7991,15 @@ var Zp = ({ value: e, label: t, ...n }) => {
|
|
|
7991
7991
|
withoutDisabledAppearance: !0,
|
|
7992
7992
|
hideLabel: !0
|
|
7993
7993
|
})
|
|
7994
|
-
}), /* @__PURE__ */ X(
|
|
7994
|
+
}), /* @__PURE__ */ X(Pn, {
|
|
7995
7995
|
side: "bottom",
|
|
7996
7996
|
align: "center",
|
|
7997
7997
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
7998
7998
|
onClick: (e) => {
|
|
7999
7999
|
e.preventDefault(), e.stopPropagation();
|
|
8000
8000
|
},
|
|
8001
|
-
children: /* @__PURE__ */ X(
|
|
8002
|
-
data:
|
|
8001
|
+
children: /* @__PURE__ */ X(Ee, {
|
|
8002
|
+
data: Ae,
|
|
8003
8003
|
onEmojiSelect: (e) => {
|
|
8004
8004
|
r?.(o, e.native), l(!1);
|
|
8005
8005
|
},
|
|
@@ -8084,93 +8084,93 @@ function lm({ checked: e, disabled: t }) {
|
|
|
8084
8084
|
children: e ? /* @__PURE__ */ X("div", { className: "h-2 w-2 rounded-full bg-f1-background" }) : null
|
|
8085
8085
|
});
|
|
8086
8086
|
}
|
|
8087
|
-
var um = ({ index: e, option: t, onClick:
|
|
8088
|
-
let { value:
|
|
8089
|
-
(
|
|
8090
|
-
},
|
|
8091
|
-
|
|
8092
|
-
value:
|
|
8087
|
+
var um = ({ index: e, option: t, onClick: r, onClickAction: i, onChangeLabel: a, disabled: o, answering: s, selected: c, correct: l, locked: u, type: d }) => {
|
|
8088
|
+
let { value: f, label: p } = t, { isDragging: m, setIsDragging: h, setDraggedItemId: g, draggedItemId: _ } = Np(), { t: v } = V(), y = m && _ === f, b = () => {
|
|
8089
|
+
(o || s) && r(f);
|
|
8090
|
+
}, x = (t) => {
|
|
8091
|
+
i({
|
|
8092
|
+
value: f,
|
|
8093
8093
|
index: e,
|
|
8094
8094
|
action: t
|
|
8095
8095
|
});
|
|
8096
|
-
}, x = (e) => {
|
|
8097
|
-
e.stopPropagation(), b("mark-as-correct");
|
|
8098
8096
|
}, S = (e) => {
|
|
8099
|
-
e.stopPropagation(),
|
|
8100
|
-
}, C = (
|
|
8097
|
+
e.stopPropagation(), x("mark-as-correct");
|
|
8098
|
+
}, C = (e) => {
|
|
8099
|
+
e.stopPropagation(), x("remove");
|
|
8100
|
+
}, w = (t) => {
|
|
8101
8101
|
let n = t.target.value;
|
|
8102
|
-
|
|
8103
|
-
value:
|
|
8102
|
+
a({
|
|
8103
|
+
value: f,
|
|
8104
8104
|
index: e,
|
|
8105
8105
|
newLabel: n
|
|
8106
8106
|
});
|
|
8107
|
-
}, w = () => {
|
|
8108
|
-
m(!0), h(d);
|
|
8109
8107
|
}, T = () => {
|
|
8110
|
-
|
|
8111
|
-
}, E =
|
|
8112
|
-
|
|
8108
|
+
h(!0), g(f);
|
|
8109
|
+
}, E = () => {
|
|
8110
|
+
h(!1), g(null);
|
|
8111
|
+
}, D = m ? y : !o && !s, O = !o && !s && !u;
|
|
8112
|
+
return /* @__PURE__ */ X(n, {
|
|
8113
8113
|
value: t,
|
|
8114
|
-
onDragStart:
|
|
8115
|
-
onDragEnd:
|
|
8116
|
-
dragListener:
|
|
8114
|
+
onDragStart: T,
|
|
8115
|
+
onDragEnd: E,
|
|
8116
|
+
dragListener: O,
|
|
8117
8117
|
layout: "position",
|
|
8118
8118
|
as: "div",
|
|
8119
8119
|
children: /* @__PURE__ */ Z("div", {
|
|
8120
|
-
className: H("group relative flex min-h-9 items-center gap-3 rounded-md bg-f1-background py-0.5 pl-2 pr-0.5 hover:bg-f1-background-hover", (
|
|
8121
|
-
onClick:
|
|
8120
|
+
className: H("group relative flex min-h-9 items-center gap-3 rounded-md bg-f1-background py-0.5 pl-2 pr-0.5 hover:bg-f1-background-hover", (o || s) && "cursor-pointer", m && "!cursor-grabbing active:!cursor-grabbing"),
|
|
8121
|
+
onClick: b,
|
|
8122
8122
|
children: [
|
|
8123
8123
|
/* @__PURE__ */ X("div", {
|
|
8124
|
-
className: H("block",
|
|
8125
|
-
children:
|
|
8126
|
-
title:
|
|
8127
|
-
checked:
|
|
8128
|
-
onCheckedChange:
|
|
8129
|
-
disabled: !
|
|
8130
|
-
presentational: !
|
|
8124
|
+
className: H("block", D ? "group-hover:hidden" : "cursor-default", m && "cursor-grabbing [&_button]:cursor-grabbing"),
|
|
8125
|
+
children: d === "multi-select" ? /* @__PURE__ */ X(vs, {
|
|
8126
|
+
title: p,
|
|
8127
|
+
checked: s ? !!c : !1,
|
|
8128
|
+
onCheckedChange: b,
|
|
8129
|
+
disabled: !s,
|
|
8130
|
+
presentational: !s,
|
|
8131
8131
|
hideLabel: !0
|
|
8132
8132
|
}) : /* @__PURE__ */ X(lm, {
|
|
8133
|
-
checked:
|
|
8134
|
-
disabled: !
|
|
8133
|
+
checked: s ? !!c : !1,
|
|
8134
|
+
disabled: !s
|
|
8135
8135
|
})
|
|
8136
8136
|
}),
|
|
8137
8137
|
/* @__PURE__ */ X("div", {
|
|
8138
|
-
className: H("hidden scale-75 cursor-grab",
|
|
8138
|
+
className: H("hidden scale-75 cursor-grab", O && "active:cursor-grabbing", D && "group-hover:block", m && "cursor-grabbing", !O && "cursor-not-allowed"),
|
|
8139
8139
|
children: /* @__PURE__ */ X("div", {
|
|
8140
|
-
className: H("flex aspect-square scale-90 items-center justify-center",
|
|
8141
|
-
children: /* @__PURE__ */ X(
|
|
8142
|
-
icon:
|
|
8140
|
+
className: H("flex aspect-square scale-90 items-center justify-center", d === "multi-select" ? "w-6" : "w-5"),
|
|
8141
|
+
children: /* @__PURE__ */ X(En, {
|
|
8142
|
+
icon: Aa,
|
|
8143
8143
|
size: "sm"
|
|
8144
8144
|
})
|
|
8145
8145
|
})
|
|
8146
8146
|
}),
|
|
8147
|
-
!
|
|
8148
|
-
placeholder:
|
|
8149
|
-
value:
|
|
8150
|
-
onChange:
|
|
8147
|
+
!o && !s && !u ? /* @__PURE__ */ X("textarea", {
|
|
8148
|
+
placeholder: v("surveyFormBuilder.selectQuestion.optionPlaceholder"),
|
|
8149
|
+
value: p,
|
|
8150
|
+
onChange: w,
|
|
8151
8151
|
className: "flex-1 [field-sizing:content] resize-none font-medium text-f1-foreground placeholder:text-f1-foreground-tertiary"
|
|
8152
8152
|
}) : /* @__PURE__ */ X("p", {
|
|
8153
8153
|
className: "flex-1 font-medium",
|
|
8154
|
-
children:
|
|
8154
|
+
children: p
|
|
8155
8155
|
}),
|
|
8156
|
-
!
|
|
8156
|
+
!o && !s && l ? /* @__PURE__ */ X("span", {
|
|
8157
8157
|
className: "text-sm font-medium text-f1-foreground-positive",
|
|
8158
|
-
children:
|
|
8158
|
+
children: v("surveyFormBuilder.selectQuestion.correct")
|
|
8159
8159
|
}) : null,
|
|
8160
|
-
!
|
|
8160
|
+
!o && !s && !u ? /* @__PURE__ */ Z("div", {
|
|
8161
8161
|
className: "hidden flex-row items-center gap-1 group-hover:inline-block",
|
|
8162
8162
|
children: [/* @__PURE__ */ X(R, {
|
|
8163
|
-
label:
|
|
8163
|
+
label: v("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
8164
8164
|
variant: "ghost",
|
|
8165
|
-
icon:
|
|
8166
|
-
onClick:
|
|
8165
|
+
icon: l ? Dr : Si,
|
|
8166
|
+
onClick: S,
|
|
8167
8167
|
hideLabel: !0
|
|
8168
8168
|
}), /* @__PURE__ */ X(R, {
|
|
8169
|
-
label:
|
|
8169
|
+
label: v("surveyFormBuilder.selectQuestion.remove"),
|
|
8170
8170
|
variant: "ghost",
|
|
8171
|
-
icon:
|
|
8171
|
+
icon: Ji,
|
|
8172
8172
|
hideLabel: !0,
|
|
8173
|
-
onClick:
|
|
8173
|
+
onClick: C
|
|
8174
8174
|
})]
|
|
8175
8175
|
}) : /* @__PURE__ */ X("div", { className: "min-h-8" })
|
|
8176
8176
|
]
|
|
@@ -8197,7 +8197,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8197
8197
|
}, a = new Set(r.map((e) => e.value)).size !== r.length;
|
|
8198
8198
|
a && (r = r.map((e) => ({
|
|
8199
8199
|
...e,
|
|
8200
|
-
value:
|
|
8200
|
+
value: g()
|
|
8201
8201
|
})), a && n?.({
|
|
8202
8202
|
...i,
|
|
8203
8203
|
options: r
|
|
@@ -8249,7 +8249,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8249
8249
|
...l,
|
|
8250
8250
|
options: r
|
|
8251
8251
|
});
|
|
8252
|
-
},
|
|
8252
|
+
}, p = () => {
|
|
8253
8253
|
let t = e.length, r = {
|
|
8254
8254
|
value: `new-option-${t + 1}`,
|
|
8255
8255
|
label: c("surveyFormBuilder.selectQuestion.newOption", { number: t + 1 })
|
|
@@ -8258,7 +8258,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8258
8258
|
...l,
|
|
8259
8259
|
options: [...e, r]
|
|
8260
8260
|
});
|
|
8261
|
-
},
|
|
8261
|
+
}, m = (e) => {
|
|
8262
8262
|
n?.({
|
|
8263
8263
|
...l,
|
|
8264
8264
|
options: e
|
|
@@ -8268,10 +8268,10 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8268
8268
|
...t,
|
|
8269
8269
|
children: /* @__PURE__ */ Z("div", {
|
|
8270
8270
|
className: "-mx-0.5 flex flex-col items-start [&>div]:w-full",
|
|
8271
|
-
children: [/* @__PURE__ */ X(Mp, { children: /* @__PURE__ */ X(
|
|
8271
|
+
children: [/* @__PURE__ */ X(Mp, { children: /* @__PURE__ */ X(Je, {
|
|
8272
8272
|
axis: "y",
|
|
8273
8273
|
values: e,
|
|
8274
|
-
onReorder:
|
|
8274
|
+
onReorder: m,
|
|
8275
8275
|
as: "div",
|
|
8276
8276
|
children: e.map((e, n) => {
|
|
8277
8277
|
let a = t.type === "select" ? t.value === e.value : Array.isArray(t.value) && t.value.includes(e.value);
|
|
@@ -8297,8 +8297,8 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8297
8297
|
children: /* @__PURE__ */ X(R, {
|
|
8298
8298
|
label: c("surveyFormBuilder.selectQuestion.addOption"),
|
|
8299
8299
|
variant: "ghost",
|
|
8300
|
-
icon:
|
|
8301
|
-
onClick:
|
|
8300
|
+
icon: vo,
|
|
8301
|
+
onClick: p
|
|
8302
8302
|
})
|
|
8303
8303
|
}) : null]
|
|
8304
8304
|
})
|
|
@@ -8367,35 +8367,35 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8367
8367
|
/* @__PURE__ */ X("div", { className: "h-px flex-1 bg-f1-border-secondary" })
|
|
8368
8368
|
]
|
|
8369
8369
|
});
|
|
8370
|
-
}, hm = ({ item: e, showEndOfSection: t, className:
|
|
8371
|
-
let { isDragging:
|
|
8372
|
-
|
|
8373
|
-
},
|
|
8374
|
-
|
|
8375
|
-
},
|
|
8376
|
-
return /* @__PURE__ */ Z(
|
|
8370
|
+
}, hm = ({ item: e, showEndOfSection: t, className: r }) => {
|
|
8371
|
+
let { isDragging: i, setIsDragging: a, setDraggedItemId: o, draggedItemId: s } = Np(), c = Rt(), { disabled: l, answering: u, getSectionContainingQuestion: d } = Ap(), f = d(e.question.id), p = !!f && s === f.id, m = () => {
|
|
8372
|
+
a(!0), o(e.question.id);
|
|
8373
|
+
}, h = () => {
|
|
8374
|
+
a(!1), o(null);
|
|
8375
|
+
}, g = f?.locked, _ = !l && !u && !g;
|
|
8376
|
+
return /* @__PURE__ */ Z(n, {
|
|
8377
8377
|
value: e,
|
|
8378
|
-
onDragStart:
|
|
8379
|
-
onDragEnd:
|
|
8378
|
+
onDragStart: m,
|
|
8379
|
+
onDragEnd: h,
|
|
8380
8380
|
dragListener: !1,
|
|
8381
|
-
dragControls:
|
|
8381
|
+
dragControls: c,
|
|
8382
8382
|
layout: "position",
|
|
8383
8383
|
as: "div",
|
|
8384
|
-
className: H(
|
|
8384
|
+
className: H(r, p && "invisible h-0 overflow-hidden"),
|
|
8385
8385
|
children: [/* @__PURE__ */ X("div", {
|
|
8386
8386
|
className: "w-full",
|
|
8387
8387
|
children: /* @__PURE__ */ Z("div", {
|
|
8388
|
-
className: H("group/element flex flex-row items-start gap-1", !
|
|
8389
|
-
children: [!
|
|
8388
|
+
className: H("group/element flex flex-row items-start gap-1", !l && !u && "pr-7", i && "cursor-grabbing"),
|
|
8389
|
+
children: [!l && !u ? g ? /* @__PURE__ */ X("div", {
|
|
8390
8390
|
className: "mt-2 aspect-square w-6 scale-75",
|
|
8391
8391
|
"aria-hidden": !0
|
|
8392
8392
|
}) : /* @__PURE__ */ X("div", {
|
|
8393
|
-
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/element:opacity-40", !
|
|
8393
|
+
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/element:opacity-40", !i && "cursor-grab"),
|
|
8394
8394
|
onPointerDown: (e) => {
|
|
8395
|
-
|
|
8395
|
+
_ && c.start(e);
|
|
8396
8396
|
},
|
|
8397
8397
|
children: /* @__PURE__ */ X(z, {
|
|
8398
|
-
icon:
|
|
8398
|
+
icon: Aa,
|
|
8399
8399
|
size: "sm"
|
|
8400
8400
|
})
|
|
8401
8401
|
}) : null, /* @__PURE__ */ X(pm, { ...e.question })]
|
|
@@ -8403,29 +8403,29 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8403
8403
|
}), t ? /* @__PURE__ */ X(mm, {}) : null]
|
|
8404
8404
|
});
|
|
8405
8405
|
}, gm = ({ question: e }) => {
|
|
8406
|
-
let { isDragging: t, setIsDragging:
|
|
8407
|
-
|
|
8408
|
-
},
|
|
8409
|
-
|
|
8410
|
-
},
|
|
8411
|
-
return /* @__PURE__ */ X(
|
|
8406
|
+
let { isDragging: t, setIsDragging: r, setDraggedItemId: i } = Np(), a = Rt(), { disabled: o, answering: s, getSectionContainingQuestion: c } = Ap(), l = c(e.id), u = () => {
|
|
8407
|
+
r(!0), i(e.id);
|
|
8408
|
+
}, d = () => {
|
|
8409
|
+
r(!1), i(null);
|
|
8410
|
+
}, f = l?.locked, p = !o && !s && !f;
|
|
8411
|
+
return /* @__PURE__ */ X(n, {
|
|
8412
8412
|
value: e,
|
|
8413
8413
|
as: "div",
|
|
8414
|
-
onDragStart:
|
|
8415
|
-
onDragEnd:
|
|
8414
|
+
onDragStart: u,
|
|
8415
|
+
onDragEnd: d,
|
|
8416
8416
|
dragListener: !1,
|
|
8417
|
-
dragControls:
|
|
8417
|
+
dragControls: a,
|
|
8418
8418
|
layout: "position",
|
|
8419
8419
|
children: /* @__PURE__ */ Z("div", {
|
|
8420
8420
|
className: H("group/question-element flex flex-row items-start gap-1", t && "cursor-grabbing"),
|
|
8421
|
-
style: { marginLeft:
|
|
8422
|
-
children: [!
|
|
8423
|
-
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/question-element:opacity-40", !t && "cursor-grab", !
|
|
8421
|
+
style: { marginLeft: o || s ? 0 : -27 },
|
|
8422
|
+
children: [!o && !s ? /* @__PURE__ */ X("div", {
|
|
8423
|
+
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/question-element:opacity-40", !t && "cursor-grab", !p && "cursor-not-allowed"),
|
|
8424
8424
|
onPointerDown: (e) => {
|
|
8425
|
-
|
|
8425
|
+
p && a.start(e);
|
|
8426
8426
|
},
|
|
8427
8427
|
children: /* @__PURE__ */ X(z, {
|
|
8428
|
-
icon:
|
|
8428
|
+
icon: Aa,
|
|
8429
8429
|
size: "sm"
|
|
8430
8430
|
})
|
|
8431
8431
|
}) : null, /* @__PURE__ */ X(pm, { ...e })]
|
|
@@ -8457,7 +8457,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8457
8457
|
});
|
|
8458
8458
|
}, x = [{
|
|
8459
8459
|
label: h("surveyFormBuilder.actions.duplicateSection"),
|
|
8460
|
-
icon:
|
|
8460
|
+
icon: ro,
|
|
8461
8461
|
onClick: () => {
|
|
8462
8462
|
d?.({
|
|
8463
8463
|
elementId: e,
|
|
@@ -8466,7 +8466,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8466
8466
|
}
|
|
8467
8467
|
}, {
|
|
8468
8468
|
label: h("surveyFormBuilder.actions.deleteSection"),
|
|
8469
|
-
icon:
|
|
8469
|
+
icon: Ji,
|
|
8470
8470
|
onClick: () => {
|
|
8471
8471
|
u(e);
|
|
8472
8472
|
},
|
|
@@ -8500,7 +8500,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8500
8500
|
}) : null,
|
|
8501
8501
|
D ? /* @__PURE__ */ X("div", {
|
|
8502
8502
|
className: "ml-auto flex shrink-0 items-center",
|
|
8503
|
-
children: /* @__PURE__ */ X(
|
|
8503
|
+
children: /* @__PURE__ */ X(xn, {
|
|
8504
8504
|
description: E,
|
|
8505
8505
|
instant: !0,
|
|
8506
8506
|
children: /* @__PURE__ */ X("span", {
|
|
@@ -8511,14 +8511,14 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8511
8511
|
}) : null,
|
|
8512
8512
|
!c && !l && !a ? /* @__PURE__ */ X("div", {
|
|
8513
8513
|
className: H("opacity-0 group-hover/section:opacity-100", p && "opacity-100"),
|
|
8514
|
-
children: /* @__PURE__ */ X(
|
|
8514
|
+
children: /* @__PURE__ */ X(wa, {
|
|
8515
8515
|
items: x,
|
|
8516
|
-
icon:
|
|
8516
|
+
icon: Ei,
|
|
8517
8517
|
open: p,
|
|
8518
8518
|
onOpenChange: m,
|
|
8519
8519
|
align: "start",
|
|
8520
8520
|
children: /* @__PURE__ */ X(R, {
|
|
8521
|
-
icon:
|
|
8521
|
+
icon: Ei,
|
|
8522
8522
|
label: h("surveyFormBuilder.actions.actions"),
|
|
8523
8523
|
size: "md",
|
|
8524
8524
|
variant: "ghost",
|
|
@@ -8536,7 +8536,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8536
8536
|
disabled: S,
|
|
8537
8537
|
className: H("w-full [field-sizing:content] resize-none text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden", S && "cursor-not-allowed")
|
|
8538
8538
|
}) : null]
|
|
8539
|
-
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Mp, { children: /* @__PURE__ */ X(
|
|
8539
|
+
}) : null, o ? null : /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(Mp, { children: /* @__PURE__ */ X(Je, {
|
|
8540
8540
|
axis: "y",
|
|
8541
8541
|
values: i,
|
|
8542
8542
|
onReorder: b,
|
|
@@ -8558,17 +8558,17 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8558
8558
|
})] })]
|
|
8559
8559
|
});
|
|
8560
8560
|
}, vm = ({ item: e, className: t }) => {
|
|
8561
|
-
let { isDragging:
|
|
8562
|
-
return /* @__PURE__ */ X(
|
|
8561
|
+
let { isDragging: r, setIsDragging: i, setDraggedItemId: a, draggedItemId: o } = Np(), s = Rt(), { disabled: c, answering: l } = Ap(), u = o === e.section.id;
|
|
8562
|
+
return /* @__PURE__ */ X(n, {
|
|
8563
8563
|
value: e,
|
|
8564
8564
|
onDragStart: () => {
|
|
8565
|
-
|
|
8565
|
+
i(!0), a(e.section.id);
|
|
8566
8566
|
},
|
|
8567
8567
|
onDragEnd: () => {
|
|
8568
|
-
|
|
8568
|
+
i(!1), a(null);
|
|
8569
8569
|
},
|
|
8570
8570
|
dragListener: !1,
|
|
8571
|
-
dragControls:
|
|
8571
|
+
dragControls: s,
|
|
8572
8572
|
layout: "position",
|
|
8573
8573
|
as: "div",
|
|
8574
8574
|
className: t,
|
|
@@ -8577,24 +8577,24 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8577
8577
|
children: /* @__PURE__ */ Z("div", {
|
|
8578
8578
|
className: "group/element w-full",
|
|
8579
8579
|
children: [/* @__PURE__ */ Z("div", {
|
|
8580
|
-
className: H("flex flex-row items-start gap-1 w-full", !
|
|
8581
|
-
children: [!
|
|
8580
|
+
className: H("flex flex-row items-start gap-1 w-full", !c && !l && "pr-7", r && "cursor-grabbing"),
|
|
8581
|
+
children: [!c && !l ? e.section.locked ? /* @__PURE__ */ X("div", {
|
|
8582
8582
|
className: "mt-2 aspect-square w-6 scale-75",
|
|
8583
8583
|
"aria-hidden": !0
|
|
8584
8584
|
}) : /* @__PURE__ */ X("div", {
|
|
8585
|
-
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/element:opacity-40", !
|
|
8585
|
+
className: H("mt-2 flex aspect-square w-6 scale-75 items-center opacity-0 hover:opacity-40 group-hover/element:opacity-40", !r && "cursor-grab"),
|
|
8586
8586
|
onPointerDown: (e) => {
|
|
8587
|
-
|
|
8587
|
+
s.start(e);
|
|
8588
8588
|
},
|
|
8589
8589
|
children: /* @__PURE__ */ X(z, {
|
|
8590
|
-
icon:
|
|
8590
|
+
icon: Aa,
|
|
8591
8591
|
size: "sm"
|
|
8592
8592
|
})
|
|
8593
8593
|
}) : null, /* @__PURE__ */ X(_m, {
|
|
8594
8594
|
...e.section,
|
|
8595
8595
|
hideQuestions: !0
|
|
8596
8596
|
})]
|
|
8597
|
-
}),
|
|
8597
|
+
}), u && (e.section.questions ?? []).length > 0 ? /* @__PURE__ */ Z("div", {
|
|
8598
8598
|
className: "flex flex-col gap-4 w-full mt-4 ml-7",
|
|
8599
8599
|
children: [(e.section.questions ?? []).map((e) => /* @__PURE__ */ X(pm, { ...e }, e.id)), /* @__PURE__ */ X(mm, {})]
|
|
8600
8600
|
}) : null]
|
|
@@ -8617,7 +8617,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8617
8617
|
p || x.push({
|
|
8618
8618
|
type: "toggle",
|
|
8619
8619
|
label: l,
|
|
8620
|
-
icon:
|
|
8620
|
+
icon: Fa,
|
|
8621
8621
|
checked: !!r?.required,
|
|
8622
8622
|
onCheckedChange: m
|
|
8623
8623
|
});
|
|
@@ -8662,7 +8662,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8662
8662
|
selected: s === e && t === "dropdown-single"
|
|
8663
8663
|
}, {
|
|
8664
8664
|
label: f,
|
|
8665
|
-
icon:
|
|
8665
|
+
icon: fo,
|
|
8666
8666
|
onClick: () => h("dropdown-multi", e),
|
|
8667
8667
|
selected: s === e && t === "dropdown-multi"
|
|
8668
8668
|
}]
|
|
@@ -8676,16 +8676,16 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8676
8676
|
return x.push({
|
|
8677
8677
|
type: "submenu",
|
|
8678
8678
|
label: u,
|
|
8679
|
-
icon:
|
|
8679
|
+
icon: qa,
|
|
8680
8680
|
selectedLabel: E,
|
|
8681
8681
|
children: w
|
|
8682
8682
|
}), x.push({ type: "separator" }), x.push({
|
|
8683
8683
|
label: i,
|
|
8684
|
-
icon:
|
|
8684
|
+
icon: ro,
|
|
8685
8685
|
onClick: y
|
|
8686
8686
|
}), n && x.push({
|
|
8687
8687
|
label: a,
|
|
8688
|
-
icon:
|
|
8688
|
+
icon: Ji,
|
|
8689
8689
|
onClick: b,
|
|
8690
8690
|
critical: !0
|
|
8691
8691
|
}), x;
|
|
@@ -8706,12 +8706,12 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8706
8706
|
return {
|
|
8707
8707
|
id: i,
|
|
8708
8708
|
label: t.title || n,
|
|
8709
|
-
icon:
|
|
8709
|
+
icon: eo,
|
|
8710
8710
|
onClick: y,
|
|
8711
8711
|
...!h && !g && !t.locked && { otherActions: [
|
|
8712
8712
|
{
|
|
8713
8713
|
label: o,
|
|
8714
|
-
icon:
|
|
8714
|
+
icon: ro,
|
|
8715
8715
|
onClick: () => m?.({
|
|
8716
8716
|
elementId: t.id,
|
|
8717
8717
|
type: "section"
|
|
@@ -8720,7 +8720,7 @@ var um = ({ index: e, option: t, onClick: n, onClickAction: r, onChangeLabel: i,
|
|
|
8720
8720
|
{ type: "separator" },
|
|
8721
8721
|
{
|
|
8722
8722
|
label: s,
|
|
8723
|
-
icon:
|
|
8723
|
+
icon: Ji,
|
|
8724
8724
|
onClick: () => p(t.id),
|
|
8725
8725
|
critical: !0
|
|
8726
8726
|
}
|
|
@@ -8977,12 +8977,12 @@ var Om = (e, t, n) => {
|
|
|
8977
8977
|
onChange: n
|
|
8978
8978
|
}) : null, /* @__PURE__ */ Z("div", {
|
|
8979
8979
|
className: "relative flex flex-1 flex-col",
|
|
8980
|
-
children: [/* @__PURE__ */ Z(
|
|
8980
|
+
children: [/* @__PURE__ */ Z(An.div, {
|
|
8981
8981
|
className: H("flex w-full max-w-[750px] self-center flex-col gap-6", a && "pointer-events-none"),
|
|
8982
8982
|
initial: { filter: "blur(0px)" },
|
|
8983
8983
|
animate: { filter: a ? "blur(2px)" : "none" },
|
|
8984
8984
|
exit: { filter: "blur(0px)" },
|
|
8985
|
-
children: [/* @__PURE__ */ X(
|
|
8985
|
+
children: [/* @__PURE__ */ X(Je, {
|
|
8986
8986
|
axis: "y",
|
|
8987
8987
|
values: m,
|
|
8988
8988
|
onReorder: v,
|
|
@@ -8997,7 +8997,7 @@ var Om = (e, t, n) => {
|
|
|
8997
8997
|
})
|
|
8998
8998
|
})
|
|
8999
8999
|
}), d ? /* @__PURE__ */ X(Ip, {}) : null]
|
|
9000
|
-
}), a ? /* @__PURE__ */ X(
|
|
9000
|
+
}), a ? /* @__PURE__ */ X(An.div, {
|
|
9001
9001
|
className: "sticky bottom-1/2 left-0 z-50 flex w-full items-center justify-center",
|
|
9002
9002
|
initial: {
|
|
9003
9003
|
opacity: 0,
|
|
@@ -9239,7 +9239,7 @@ function Wm({ value: e, onChange: t, onBlur: n, config: r }) {
|
|
|
9239
9239
|
u ? /* @__PURE__ */ X("div", {
|
|
9240
9240
|
className: "min-h-8 p-1",
|
|
9241
9241
|
children: /* @__PURE__ */ X(z, {
|
|
9242
|
-
icon: t.correct ?
|
|
9242
|
+
icon: t.correct ? Si : Dr,
|
|
9243
9243
|
color: t.correct ? "positive" : "critical",
|
|
9244
9244
|
"aria-hidden": !0
|
|
9245
9245
|
})
|
|
@@ -9261,7 +9261,7 @@ var Gm = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i, Km = () => ({
|
|
|
9261
9261
|
status: "idle"
|
|
9262
9262
|
});
|
|
9263
9263
|
function qm(e, t) {
|
|
9264
|
-
return
|
|
9264
|
+
return ha().optional().superRefine((n, r) => {
|
|
9265
9265
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
9266
9266
|
code: "custom",
|
|
9267
9267
|
message: t("forms.validation.required")
|
|
@@ -9269,7 +9269,7 @@ function qm(e, t) {
|
|
|
9269
9269
|
});
|
|
9270
9270
|
}
|
|
9271
9271
|
function Jm(e, t) {
|
|
9272
|
-
return
|
|
9272
|
+
return ha().optional().superRefine((n, r) => {
|
|
9273
9273
|
e && (!n || n.trim() === "") ? r.addIssue({
|
|
9274
9274
|
code: "custom",
|
|
9275
9275
|
message: t("forms.validation.required")
|
|
@@ -9280,7 +9280,7 @@ function Jm(e, t) {
|
|
|
9280
9280
|
});
|
|
9281
9281
|
}
|
|
9282
9282
|
function Ym(e, t) {
|
|
9283
|
-
return
|
|
9283
|
+
return Pi().optional().superRefine((n, r) => {
|
|
9284
9284
|
e && n == null && r.addIssue({
|
|
9285
9285
|
code: "custom",
|
|
9286
9286
|
message: t("forms.validation.required")
|
|
@@ -9288,7 +9288,7 @@ function Ym(e, t) {
|
|
|
9288
9288
|
});
|
|
9289
9289
|
}
|
|
9290
9290
|
function Xm(e, t) {
|
|
9291
|
-
return lo(
|
|
9291
|
+
return lo(ha()).optional().superRefine((n, r) => {
|
|
9292
9292
|
e && (!n || n.length === 0) && r.addIssue({
|
|
9293
9293
|
code: "custom",
|
|
9294
9294
|
message: t("forms.validation.required")
|
|
@@ -9305,7 +9305,7 @@ function Zm(e, t) {
|
|
|
9305
9305
|
}
|
|
9306
9306
|
var Qm = Xm;
|
|
9307
9307
|
function $m(e, t) {
|
|
9308
|
-
return
|
|
9308
|
+
return xi().optional().superRefine((n, r) => {
|
|
9309
9309
|
e && !n && r.addIssue({
|
|
9310
9310
|
code: "custom",
|
|
9311
9311
|
message: t("forms.validation.required")
|
|
@@ -9355,7 +9355,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9355
9355
|
placeholder: t("surveyFormBuilder.answer.textPlaceholder"),
|
|
9356
9356
|
disabled: i
|
|
9357
9357
|
};
|
|
9358
|
-
return
|
|
9358
|
+
return Ni(qm(!!e.required, t), {
|
|
9359
9359
|
...c,
|
|
9360
9360
|
fieldType: "custom",
|
|
9361
9361
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9383,7 +9383,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9383
9383
|
rows: 4,
|
|
9384
9384
|
disabled: i
|
|
9385
9385
|
};
|
|
9386
|
-
return
|
|
9386
|
+
return Ni(qm(!!e.required, t), {
|
|
9387
9387
|
...c,
|
|
9388
9388
|
fieldType: "custom",
|
|
9389
9389
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9410,7 +9410,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9410
9410
|
placeholder: t("surveyFormBuilder.answer.numericPlaceholder"),
|
|
9411
9411
|
disabled: i
|
|
9412
9412
|
};
|
|
9413
|
-
return
|
|
9413
|
+
return Ni(Ym(!!e.required, t), {
|
|
9414
9414
|
...c,
|
|
9415
9415
|
fieldType: "custom",
|
|
9416
9416
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9438,7 +9438,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9438
9438
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
9439
9439
|
disabled: i
|
|
9440
9440
|
};
|
|
9441
|
-
return
|
|
9441
|
+
return Ni(Jm(!!e.required, t), {
|
|
9442
9442
|
...c,
|
|
9443
9443
|
fieldType: "custom",
|
|
9444
9444
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9465,7 +9465,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9465
9465
|
clearable: !e.required,
|
|
9466
9466
|
disabled: i
|
|
9467
9467
|
};
|
|
9468
|
-
return
|
|
9468
|
+
return Ni(Zm(!!e.required, t), {
|
|
9469
9469
|
...c,
|
|
9470
9470
|
fieldType: "custom",
|
|
9471
9471
|
render: ({ value: e, onChange: t, onBlur: r, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9501,7 +9501,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9501
9501
|
showSearchBox: r,
|
|
9502
9502
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
9503
9503
|
};
|
|
9504
|
-
return
|
|
9504
|
+
return Ni(qm(!!e.required, t), {
|
|
9505
9505
|
...c,
|
|
9506
9506
|
fieldType: "custom",
|
|
9507
9507
|
render: ({ value: t, onChange: r, onBlur: i, error: o }) => {
|
|
@@ -9550,7 +9550,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9550
9550
|
showSearchBox: r,
|
|
9551
9551
|
searchBoxPlaceholder: e.searchBoxPlaceholder
|
|
9552
9552
|
};
|
|
9553
|
-
return
|
|
9553
|
+
return Ni(Xm(!!e.required, t), {
|
|
9554
9554
|
...c,
|
|
9555
9555
|
fieldType: "custom",
|
|
9556
9556
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9577,7 +9577,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9577
9577
|
disabled: i,
|
|
9578
9578
|
showAnswerValidation: r
|
|
9579
9579
|
};
|
|
9580
|
-
return
|
|
9580
|
+
return Ni(qm(!!e.required, t), {
|
|
9581
9581
|
...c,
|
|
9582
9582
|
fieldType: "custom",
|
|
9583
9583
|
fieldConfig: n,
|
|
@@ -9600,7 +9600,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9600
9600
|
disabled: i,
|
|
9601
9601
|
showAnswerValidation: r
|
|
9602
9602
|
};
|
|
9603
|
-
return
|
|
9603
|
+
return Ni(Xm(!!e.required, t), {
|
|
9604
9604
|
...c,
|
|
9605
9605
|
fieldType: "custom",
|
|
9606
9606
|
fieldConfig: n,
|
|
@@ -9622,7 +9622,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9622
9622
|
maxLabel: n.maxLabel,
|
|
9623
9623
|
disabled: i
|
|
9624
9624
|
};
|
|
9625
|
-
return
|
|
9625
|
+
return Ni(Ym(!!e.required, t), {
|
|
9626
9626
|
...c,
|
|
9627
9627
|
fieldType: "custom",
|
|
9628
9628
|
fieldConfig: r,
|
|
@@ -9648,7 +9648,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9648
9648
|
useUpload: r ?? Km,
|
|
9649
9649
|
disabled: i || !r
|
|
9650
9650
|
};
|
|
9651
|
-
return
|
|
9651
|
+
return Ni(Qm(!!e.required, t), {
|
|
9652
9652
|
...c,
|
|
9653
9653
|
fieldType: "custom",
|
|
9654
9654
|
render: ({ value: e, onChange: t, onBlur: n, error: r }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9674,7 +9674,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9674
9674
|
label: n.label || s,
|
|
9675
9675
|
disabled: i
|
|
9676
9676
|
};
|
|
9677
|
-
return
|
|
9677
|
+
return Ni($m(!!e.required, t), {
|
|
9678
9678
|
...c,
|
|
9679
9679
|
fieldType: "custom",
|
|
9680
9680
|
render: ({ value: e, onChange: t, onBlur: n, error: i }) => /* @__PURE__ */ X(Yp, {
|
|
@@ -9693,7 +9693,7 @@ function nh({ q: e, t, sectionId: n, previewMode: r = !1, disableFields: i = r,
|
|
|
9693
9693
|
})
|
|
9694
9694
|
});
|
|
9695
9695
|
}
|
|
9696
|
-
default: return
|
|
9696
|
+
default: return Ni(Ai(), {
|
|
9697
9697
|
...c,
|
|
9698
9698
|
fieldType: "custom",
|
|
9699
9699
|
render: () => null
|
|
@@ -9823,12 +9823,12 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9823
9823
|
}, A.goToPrevious();
|
|
9824
9824
|
}, [w, A.goToPrevious]), de = u && !p ? [{
|
|
9825
9825
|
label: y(S ? "surveyAnsweringForm.actions.collapse" : "surveyAnsweringForm.actions.expand"),
|
|
9826
|
-
icon: S ?
|
|
9826
|
+
icon: S ? Fi : xa,
|
|
9827
9827
|
onClick: () => C((e) => !e)
|
|
9828
9828
|
}] : void 0, fe = j ? p || N ? void 0 : P ? M && !A.isLastStep ? {
|
|
9829
9829
|
label: y("surveyAnsweringForm.actions.next"),
|
|
9830
9830
|
onClick: A.goToNext,
|
|
9831
|
-
icon:
|
|
9831
|
+
icon: aa
|
|
9832
9832
|
} : {
|
|
9833
9833
|
label: y("surveyAnsweringForm.actions.submit"),
|
|
9834
9834
|
onClick: ih,
|
|
@@ -9836,7 +9836,7 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9836
9836
|
} : M && !A.isLastStep ? {
|
|
9837
9837
|
label: y("surveyAnsweringForm.actions.next"),
|
|
9838
9838
|
onClick: ce,
|
|
9839
|
-
icon:
|
|
9839
|
+
icon: aa
|
|
9840
9840
|
} : {
|
|
9841
9841
|
label: y("surveyAnsweringForm.actions.submit"),
|
|
9842
9842
|
onClick: ce,
|
|
@@ -9847,7 +9847,7 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9847
9847
|
onClick: le,
|
|
9848
9848
|
icon: $o
|
|
9849
9849
|
} : void 0 : void 0, me = n === "all-questions" && j && !p, he = M && j && !p, ge = M && !!A.currentQuestion?.sectionTitle && !p, _e = F === "center" || F === "fullscreen";
|
|
9850
|
-
return /* @__PURE__ */ X(
|
|
9850
|
+
return /* @__PURE__ */ X($a, {
|
|
9851
9851
|
isOpen: o,
|
|
9852
9852
|
onClose: s,
|
|
9853
9853
|
title: r,
|
|
@@ -9884,13 +9884,13 @@ function sh({ elements: e, onSubmit: t, mode: n, title: r, description: i, resou
|
|
|
9884
9884
|
children: [
|
|
9885
9885
|
/* @__PURE__ */ X("div", {
|
|
9886
9886
|
className: "mb-6",
|
|
9887
|
-
children: /* @__PURE__ */ X(
|
|
9887
|
+
children: /* @__PURE__ */ X(Ne, {
|
|
9888
9888
|
title: r,
|
|
9889
9889
|
description: i,
|
|
9890
9890
|
...a
|
|
9891
9891
|
})
|
|
9892
9892
|
}),
|
|
9893
|
-
p ? X(n === "stepped" ? Bm : zm, {}) : j ? null : /* @__PURE__ */ X(
|
|
9893
|
+
p ? X(n === "stepped" ? Bm : zm, {}) : j ? null : /* @__PURE__ */ X(Er, {
|
|
9894
9894
|
display: "flex",
|
|
9895
9895
|
flexDirection: "column",
|
|
9896
9896
|
height: "full",
|
|
@@ -9954,7 +9954,7 @@ function ch({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
9954
9954
|
className: "mx-auto flex w-full max-w-3xl flex-col",
|
|
9955
9955
|
children: [l ? null : /* @__PURE__ */ X("div", {
|
|
9956
9956
|
className: "mb-6",
|
|
9957
|
-
children: /* @__PURE__ */ X(
|
|
9957
|
+
children: /* @__PURE__ */ X(Ne, {
|
|
9958
9958
|
title: t,
|
|
9959
9959
|
description: n,
|
|
9960
9960
|
...r
|
|
@@ -9969,7 +9969,7 @@ function ch({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
9969
9969
|
hideActionBar: !0
|
|
9970
9970
|
},
|
|
9971
9971
|
sections: g
|
|
9972
|
-
}) : /* @__PURE__ */ X(
|
|
9972
|
+
}) : /* @__PURE__ */ X(Er, {
|
|
9973
9973
|
display: "flex",
|
|
9974
9974
|
flexDirection: "column",
|
|
9975
9975
|
justifyContent: "center",
|
|
@@ -9987,7 +9987,7 @@ function ch({ elements: e, title: t, description: n, resourceHeader: r, defaultV
|
|
|
9987
9987
|
//#endregion
|
|
9988
9988
|
//#region src/domains/talent/surveys/surveys/SurveySampleQuestion/SurveySampleQuestion.tsx
|
|
9989
9989
|
function lh(e) {
|
|
9990
|
-
return /* @__PURE__ */ Z(
|
|
9990
|
+
return /* @__PURE__ */ Z(Er, {
|
|
9991
9991
|
display: "flex",
|
|
9992
9992
|
flexDirection: "column",
|
|
9993
9993
|
gap: "lg",
|
|
@@ -10005,21 +10005,21 @@ function lh(e) {
|
|
|
10005
10005
|
});
|
|
10006
10006
|
}
|
|
10007
10007
|
function uh({ steps: e, minLabel: t, maxLabel: n }) {
|
|
10008
|
-
return /* @__PURE__ */ Z(
|
|
10008
|
+
return /* @__PURE__ */ Z(Er, {
|
|
10009
10009
|
display: "flex",
|
|
10010
10010
|
flexDirection: "column",
|
|
10011
10011
|
gap: "sm",
|
|
10012
|
-
children: [/* @__PURE__ */ X(
|
|
10012
|
+
children: [/* @__PURE__ */ X(Er, {
|
|
10013
10013
|
display: "grid",
|
|
10014
10014
|
columns: String(e),
|
|
10015
10015
|
gap: "sm",
|
|
10016
|
-
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(
|
|
10016
|
+
children: Array.from({ length: e }).map((e, t) => /* @__PURE__ */ X(Er, {
|
|
10017
10017
|
height: "8",
|
|
10018
10018
|
border: "default",
|
|
10019
10019
|
borderRadius: "md",
|
|
10020
10020
|
background: "primary"
|
|
10021
10021
|
}, t))
|
|
10022
|
-
}), t || n ? /* @__PURE__ */ Z(
|
|
10022
|
+
}), t || n ? /* @__PURE__ */ Z(Er, {
|
|
10023
10023
|
display: "flex",
|
|
10024
10024
|
justifyContent: "between",
|
|
10025
10025
|
alignItems: "center",
|
|
@@ -10034,11 +10034,11 @@ function uh({ steps: e, minLabel: t, maxLabel: n }) {
|
|
|
10034
10034
|
});
|
|
10035
10035
|
}
|
|
10036
10036
|
function dh({ options: e }) {
|
|
10037
|
-
return /* @__PURE__ */ X(
|
|
10037
|
+
return /* @__PURE__ */ X(Er, {
|
|
10038
10038
|
display: "flex",
|
|
10039
10039
|
flexDirection: "column",
|
|
10040
10040
|
gap: "md",
|
|
10041
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
10041
|
+
children: e.map((e) => /* @__PURE__ */ Z(Er, {
|
|
10042
10042
|
display: "flex",
|
|
10043
10043
|
alignItems: "center",
|
|
10044
10044
|
gap: "md",
|
|
@@ -10047,7 +10047,7 @@ function dh({ options: e }) {
|
|
|
10047
10047
|
border: "default",
|
|
10048
10048
|
borderRadius: "md",
|
|
10049
10049
|
background: "primary",
|
|
10050
|
-
children: [/* @__PURE__ */ X(
|
|
10050
|
+
children: [/* @__PURE__ */ X(Er, {
|
|
10051
10051
|
shrink: !1,
|
|
10052
10052
|
width: "4",
|
|
10053
10053
|
height: "4",
|
|
@@ -10091,7 +10091,7 @@ var fh = ({ benefits: e }) => /* @__PURE__ */ X("div", {
|
|
|
10091
10091
|
children: [
|
|
10092
10092
|
/* @__PURE__ */ Z("div", {
|
|
10093
10093
|
className: "flex flex-row items-center gap-2",
|
|
10094
|
-
children: [a ? /* @__PURE__ */ X(
|
|
10094
|
+
children: [a ? /* @__PURE__ */ X(go, { module: a }) : null, o ? /* @__PURE__ */ X("p", {
|
|
10095
10095
|
className: "text-base font-medium text-f1-foreground",
|
|
10096
10096
|
children: o
|
|
10097
10097
|
}) : null]
|
|
@@ -10137,22 +10137,22 @@ function gh({ isOpen: e, onClose: t, title: n, children: r, module: i, portalCon
|
|
|
10137
10137
|
container: a,
|
|
10138
10138
|
children: [/* @__PURE__ */ Z("div", {
|
|
10139
10139
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
10140
|
-
children: [/* @__PURE__ */ Z(
|
|
10140
|
+
children: [/* @__PURE__ */ Z(Ra, {
|
|
10141
10141
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
10142
|
-
children: [i ? /* @__PURE__ */ X(
|
|
10142
|
+
children: [i ? /* @__PURE__ */ X(go, {
|
|
10143
10143
|
module: i,
|
|
10144
10144
|
size: "md"
|
|
10145
10145
|
}) : null, n]
|
|
10146
|
-
}), /* @__PURE__ */ X(
|
|
10146
|
+
}), /* @__PURE__ */ X(Zn, {
|
|
10147
10147
|
variant: "outline",
|
|
10148
10148
|
icon: Dr,
|
|
10149
10149
|
onClick: t,
|
|
10150
10150
|
label: "Close modal",
|
|
10151
10151
|
hideLabel: !0
|
|
10152
10152
|
})]
|
|
10153
|
-
}), /* @__PURE__ */ Z(
|
|
10153
|
+
}), /* @__PURE__ */ Z(wo, {
|
|
10154
10154
|
className: "[*[data-state=visible]_div]:bg-f1-background flex max-h-[512px] flex-col",
|
|
10155
|
-
children: [r, /* @__PURE__ */ X(
|
|
10155
|
+
children: [r, /* @__PURE__ */ X(To, {
|
|
10156
10156
|
orientation: "vertical",
|
|
10157
10157
|
className: "[&_div]:bg-f1-background"
|
|
10158
10158
|
})]
|
|
@@ -10176,7 +10176,7 @@ function _h({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
10176
10176
|
}
|
|
10177
10177
|
}, T = () => {
|
|
10178
10178
|
y(!1), t?.();
|
|
10179
|
-
},
|
|
10179
|
+
}, E = S;
|
|
10180
10180
|
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(gh, {
|
|
10181
10181
|
isOpen: v,
|
|
10182
10182
|
onClose: T,
|
|
@@ -10196,7 +10196,7 @@ function _h({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
10196
10196
|
className: "flex gap-3",
|
|
10197
10197
|
children: [u ? /* @__PURE__ */ X(R, {
|
|
10198
10198
|
variant: u.variant,
|
|
10199
|
-
label:
|
|
10199
|
+
label: E ? s.label : u.label,
|
|
10200
10200
|
icon: u.icon || void 0,
|
|
10201
10201
|
onClick: w,
|
|
10202
10202
|
loading: u.loading,
|
|
@@ -10211,7 +10211,7 @@ function _h({ isOpen: e, onClose: t, title: n, image: r, benefits: i, errorMessa
|
|
|
10211
10211
|
})
|
|
10212
10212
|
})
|
|
10213
10213
|
})
|
|
10214
|
-
}), b && _ ? /* @__PURE__ */ X(
|
|
10214
|
+
}), b && _ ? /* @__PURE__ */ X(D, {
|
|
10215
10215
|
open: !0,
|
|
10216
10216
|
onClose: () => {
|
|
10217
10217
|
T(), x(null);
|
|
@@ -10235,10 +10235,10 @@ function yh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
10235
10235
|
o && o(!l);
|
|
10236
10236
|
}, [o, l]);
|
|
10237
10237
|
let f = e?.includes(".mp4");
|
|
10238
|
-
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(
|
|
10238
|
+
return /* @__PURE__ */ X(Y, { children: l ? null : /* @__PURE__ */ Z(La, {
|
|
10239
10239
|
style: { width: a },
|
|
10240
10240
|
className: "relative bg-f1-background p-1",
|
|
10241
|
-
children: [/* @__PURE__ */ Z(
|
|
10241
|
+
children: [/* @__PURE__ */ Z(Xi, { children: [i ? /* @__PURE__ */ X("div", {
|
|
10242
10242
|
className: "absolute right-2 top-2 z-10",
|
|
10243
10243
|
children: /* @__PURE__ */ X(R, {
|
|
10244
10244
|
variant: "ghost",
|
|
@@ -10268,9 +10268,9 @@ function yh({ mediaUrl: e, title: t, description: n, onClose: r, dismissible: i,
|
|
|
10268
10268
|
className: "line-clamp-3 text-base font-normal text-f1-foreground-secondary",
|
|
10269
10269
|
children: n
|
|
10270
10270
|
})]
|
|
10271
|
-
})] })] }), s ? /* @__PURE__ */ X(
|
|
10271
|
+
})] })] }), s ? /* @__PURE__ */ X(ta, {
|
|
10272
10272
|
className: "p-3",
|
|
10273
|
-
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(
|
|
10273
|
+
children: s.map((e) => e.type === "upsell" ? /* @__PURE__ */ X(y, {
|
|
10274
10274
|
label: e.label,
|
|
10275
10275
|
onRequest: e.onClick,
|
|
10276
10276
|
errorMessage: e.errorMessage,
|
|
@@ -10330,7 +10330,7 @@ function Sh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
10330
10330
|
})]
|
|
10331
10331
|
}), /* @__PURE__ */ X("div", {
|
|
10332
10332
|
className: H("flex flex-shrink-0 @xs:pl-0", e && "pl-8"),
|
|
10333
|
-
children: /* @__PURE__ */ X(
|
|
10333
|
+
children: /* @__PURE__ */ X(y, {
|
|
10334
10334
|
label: r.label,
|
|
10335
10335
|
onRequest: r.onRequest,
|
|
10336
10336
|
errorMessage: r.errorMessage,
|
|
@@ -10352,7 +10352,7 @@ function Sh({ icon: e, title: t, description: n, action: r, onDismiss: i }) {
|
|
|
10352
10352
|
});
|
|
10353
10353
|
}
|
|
10354
10354
|
var Ch = L(Sh), wh = gc(function({ primaryAction: e, secondaryAction: t, ...n }, r) {
|
|
10355
|
-
let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(
|
|
10355
|
+
let i = (e) => e.variant === "promote" ? /* @__PURE__ */ X(y, {
|
|
10356
10356
|
label: e.label,
|
|
10357
10357
|
onRequest: e.onClick,
|
|
10358
10358
|
errorMessage: e.errorMessage,
|
|
@@ -10382,7 +10382,7 @@ wh.displayName = "UpsellingBanner";
|
|
|
10382
10382
|
var Th = L(wh);
|
|
10383
10383
|
//#endregion
|
|
10384
10384
|
//#region src/domains/growth/upselling/UpsellingKit/UpsellingPopover/UpsellingPopover.tsx
|
|
10385
|
-
function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c =
|
|
10385
|
+
function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i = "md", showIcon: a = !0, side: o = "right", align: s = "center", icon: c = ba, mediaUrl: l, title: u, description: d, width: f = "300px", trackVisibility: p, actions: m, onClick: h, hideLabel: g = !1 }) {
|
|
10386
10386
|
let [_, v] = J(!1), [y, b] = J(null), [x, S] = J(null), C = (e) => {
|
|
10387
10387
|
t(e), h && h();
|
|
10388
10388
|
}, w = async (e) => {
|
|
@@ -10396,14 +10396,14 @@ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
10396
10396
|
}
|
|
10397
10397
|
}, T = () => {
|
|
10398
10398
|
b(null), v(!1), S(null), t(!1);
|
|
10399
|
-
},
|
|
10399
|
+
}, E = e && !_, O = m?.map((e) => e.type === "upsell" ? {
|
|
10400
10400
|
...e,
|
|
10401
10401
|
onClick: () => w(e)
|
|
10402
10402
|
} : e);
|
|
10403
|
-
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(
|
|
10404
|
-
open:
|
|
10403
|
+
return /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ Z(Jn, {
|
|
10404
|
+
open: E,
|
|
10405
10405
|
onOpenChange: C,
|
|
10406
|
-
children: [/* @__PURE__ */ X(
|
|
10406
|
+
children: [/* @__PURE__ */ X(Tn, {
|
|
10407
10407
|
asChild: !0,
|
|
10408
10408
|
children: /* @__PURE__ */ X(R, {
|
|
10409
10409
|
variant: r,
|
|
@@ -10413,7 +10413,7 @@ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
10413
10413
|
onClick: () => t(e),
|
|
10414
10414
|
hideLabel: g
|
|
10415
10415
|
})
|
|
10416
|
-
}), /* @__PURE__ */ X(
|
|
10416
|
+
}), /* @__PURE__ */ X(Pn, {
|
|
10417
10417
|
side: o,
|
|
10418
10418
|
align: s,
|
|
10419
10419
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
@@ -10429,7 +10429,7 @@ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
10429
10429
|
showConfirmation: !1
|
|
10430
10430
|
})
|
|
10431
10431
|
})]
|
|
10432
|
-
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(
|
|
10432
|
+
}), x?.type === "upsell" && x.showConfirmation && y ? /* @__PURE__ */ X(D, {
|
|
10433
10433
|
open: !0,
|
|
10434
10434
|
onClose: T,
|
|
10435
10435
|
success: y === "success",
|
|
@@ -10442,9 +10442,9 @@ function Eh({ isOpen: e, setIsOpen: t, label: n, variant: r = "promote", size: i
|
|
|
10442
10442
|
}
|
|
10443
10443
|
var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r, actionHref: i }) => {
|
|
10444
10444
|
let a = V(), o = a?.ai?.growth?.demoCard?.title ?? "Show {{moduleName}} in action", s = a?.ai?.growth?.demoCard?.actionLabel ?? "Start demo", c = o.replace("{{moduleName}}", t);
|
|
10445
|
-
return /* @__PURE__ */ Z(
|
|
10445
|
+
return /* @__PURE__ */ Z(La, {
|
|
10446
10446
|
className: "flex flex-col overflow-hidden",
|
|
10447
|
-
children: [/* @__PURE__ */ Z(
|
|
10447
|
+
children: [/* @__PURE__ */ Z(Xi, {
|
|
10448
10448
|
className: "flex flex-col gap-4 p-0",
|
|
10449
10449
|
children: [/* @__PURE__ */ X("div", {
|
|
10450
10450
|
className: H("overflow-hidden rounded-lg border border-f1-border", "ring-1 ring-f1-border/50 bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary"),
|
|
@@ -10459,7 +10459,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10459
10459
|
children: n
|
|
10460
10460
|
})]
|
|
10461
10461
|
})]
|
|
10462
|
-
}), /* @__PURE__ */ X(
|
|
10462
|
+
}), /* @__PURE__ */ X(ta, {
|
|
10463
10463
|
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",
|
|
10464
10464
|
children: i ? /* @__PURE__ */ X(R, {
|
|
10465
10465
|
variant: "default",
|
|
@@ -10490,7 +10490,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10490
10490
|
}), /* @__PURE__ */ X("span", {
|
|
10491
10491
|
className: "mt-0.5 flex-shrink-0 text-f1-foreground-secondary",
|
|
10492
10492
|
children: /* @__PURE__ */ X(z, {
|
|
10493
|
-
icon: t ?
|
|
10493
|
+
icon: t ? Ao : Bo,
|
|
10494
10494
|
size: "sm",
|
|
10495
10495
|
className: H("transition-transform duration-200", t && "text-f1-foreground")
|
|
10496
10496
|
})
|
|
@@ -10506,7 +10506,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10506
10506
|
})
|
|
10507
10507
|
})]
|
|
10508
10508
|
}), Ah = ({ headerIcon: e, items: t, defaultExpandedId: n, expandedId: r, onExpandedChange: i, allowMultiple: a = !1 }) => {
|
|
10509
|
-
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ??
|
|
10509
|
+
let o = V()?.ai?.growth?.faqCard?.title ?? "Questions before getting started", s = e ?? Da, [c, l] = J(() => new Set(n ? [n] : [])), u = r !== void 0, d = W((e) => u ? r === e : c.has(e), [
|
|
10510
10510
|
u,
|
|
10511
10511
|
r,
|
|
10512
10512
|
c
|
|
@@ -10521,9 +10521,9 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10521
10521
|
i,
|
|
10522
10522
|
a
|
|
10523
10523
|
]);
|
|
10524
|
-
return t.length === 0 ? null : /* @__PURE__ */ Z(
|
|
10524
|
+
return t.length === 0 ? null : /* @__PURE__ */ Z(La, {
|
|
10525
10525
|
className: "flex flex-col overflow-hidden",
|
|
10526
|
-
children: [/* @__PURE__ */ Z(
|
|
10526
|
+
children: [/* @__PURE__ */ Z(Di, {
|
|
10527
10527
|
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",
|
|
10528
10528
|
children: [/* @__PURE__ */ X("div", {
|
|
10529
10529
|
className: "flex h-6 w-6 items-center justify-center rounded-full border border-f1-border-secondary",
|
|
@@ -10536,7 +10536,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10536
10536
|
className: "text-base font-semibold text-f1-foreground",
|
|
10537
10537
|
children: o
|
|
10538
10538
|
})]
|
|
10539
|
-
}), /* @__PURE__ */ X(
|
|
10539
|
+
}), /* @__PURE__ */ X(Xi, {
|
|
10540
10540
|
className: "flex flex-col divide-y divide-f1-border p-0",
|
|
10541
10541
|
children: t.map((e) => /* @__PURE__ */ X(kh, {
|
|
10542
10542
|
item: e,
|
|
@@ -10547,13 +10547,13 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10547
10547
|
});
|
|
10548
10548
|
}, jh = ({ moduleName: e, description: t, onAction: n, actionHref: r, imageSrc: i }) => {
|
|
10549
10549
|
let a = V()?.ai?.growth?.moduleCard?.actionLabel ?? "Learn more";
|
|
10550
|
-
return /* @__PURE__ */ Z(
|
|
10550
|
+
return /* @__PURE__ */ Z(La, {
|
|
10551
10551
|
className: "flex flex-col overflow-hidden",
|
|
10552
|
-
children: [/* @__PURE__ */ X(
|
|
10552
|
+
children: [/* @__PURE__ */ X(Xi, {
|
|
10553
10553
|
className: "flex flex-col gap-3 p-0",
|
|
10554
10554
|
children: /* @__PURE__ */ Z("div", {
|
|
10555
10555
|
className: "flex items-start gap-3",
|
|
10556
|
-
children: [/* @__PURE__ */ X(
|
|
10556
|
+
children: [/* @__PURE__ */ X(Po, {
|
|
10557
10557
|
avatar: {
|
|
10558
10558
|
type: "company",
|
|
10559
10559
|
name: e || "",
|
|
@@ -10571,7 +10571,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10571
10571
|
})]
|
|
10572
10572
|
})]
|
|
10573
10573
|
})
|
|
10574
|
-
}), /* @__PURE__ */ X(
|
|
10574
|
+
}), /* @__PURE__ */ X(ta, {
|
|
10575
10575
|
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",
|
|
10576
10576
|
children: r ? /* @__PURE__ */ X(R, {
|
|
10577
10577
|
variant: "outline",
|
|
@@ -10589,12 +10589,12 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10589
10589
|
});
|
|
10590
10590
|
}, Mh = ({ onAction: e, actionHref: t }) => {
|
|
10591
10591
|
let n = V()?.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";
|
|
10592
|
-
return /* @__PURE__ */ Z(
|
|
10592
|
+
return /* @__PURE__ */ Z(La, {
|
|
10593
10593
|
className: "flex flex-col overflow-hidden",
|
|
10594
|
-
children: [/* @__PURE__ */ Z(
|
|
10594
|
+
children: [/* @__PURE__ */ Z(Xi, {
|
|
10595
10595
|
className: "flex flex-col gap-3 p-0",
|
|
10596
10596
|
children: [/* @__PURE__ */ X(z, {
|
|
10597
|
-
icon:
|
|
10597
|
+
icon: Xa,
|
|
10598
10598
|
size: "lg"
|
|
10599
10599
|
}), /* @__PURE__ */ Z("div", {
|
|
10600
10600
|
className: "flex flex-col gap-0.5",
|
|
@@ -10606,7 +10606,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10606
10606
|
children: i
|
|
10607
10607
|
})]
|
|
10608
10608
|
})]
|
|
10609
|
-
}), /* @__PURE__ */ X(
|
|
10609
|
+
}), /* @__PURE__ */ X(ta, {
|
|
10610
10610
|
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",
|
|
10611
10611
|
children: t ? /* @__PURE__ */ X(R, {
|
|
10612
10612
|
variant: "default",
|
|
@@ -10652,9 +10652,9 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10652
10652
|
e,
|
|
10653
10653
|
t
|
|
10654
10654
|
]), g = a === u - 1, _ = u > 1, v = n != null;
|
|
10655
|
-
return u === 0 || !d ? null : /* @__PURE__ */ Z(
|
|
10655
|
+
return u === 0 || !d ? null : /* @__PURE__ */ Z(La, {
|
|
10656
10656
|
className: "flex flex-col overflow-hidden",
|
|
10657
|
-
children: [/* @__PURE__ */ Z(
|
|
10657
|
+
children: [/* @__PURE__ */ Z(Xi, {
|
|
10658
10658
|
className: "flex flex-col gap-4",
|
|
10659
10659
|
children: [/* @__PURE__ */ X("h3", {
|
|
10660
10660
|
className: "text-base font-semibold text-f1-foreground",
|
|
@@ -10671,7 +10671,7 @@ var Dh = L(Eh), Oh = ({ preview: e, moduleName: t, description: n, onAction: r,
|
|
|
10671
10671
|
})
|
|
10672
10672
|
}, e.id))
|
|
10673
10673
|
})]
|
|
10674
|
-
}), /* @__PURE__ */ Z(
|
|
10674
|
+
}), /* @__PURE__ */ Z(ta, {
|
|
10675
10675
|
className: "-mx-4 -mb-4 mt-4 flex items-center justify-between rounded-b-xl border-0 border-t border-t-f1-border bg-f1-background-secondary px-4 py-3",
|
|
10676
10676
|
children: [/* @__PURE__ */ X("div", {
|
|
10677
10677
|
className: "flex min-w-[7.5rem] items-center justify-start gap-1",
|
|
@@ -11135,7 +11135,7 @@ function mg(e, t) {
|
|
|
11135
11135
|
n.href = URL.createObjectURL(e), n.download = t, n.click(), URL.revokeObjectURL(n.href);
|
|
11136
11136
|
}
|
|
11137
11137
|
async function hg(e, t, n, { keys: r, preamble: i } = {}) {
|
|
11138
|
-
mg(await
|
|
11138
|
+
mg(await ao([{
|
|
11139
11139
|
name: "Data",
|
|
11140
11140
|
rows: fg({
|
|
11141
11141
|
columns: e,
|
|
@@ -11157,7 +11157,7 @@ function _g(e, t, n) {
|
|
|
11157
11157
|
r.href = e, r.download = `${t}.${n}`, r.click();
|
|
11158
11158
|
}
|
|
11159
11159
|
async function vg(e, t) {
|
|
11160
|
-
mg(await
|
|
11160
|
+
mg(await ao(e.map((e) => ({
|
|
11161
11161
|
name: e.name,
|
|
11162
11162
|
rows: fg(e)
|
|
11163
11163
|
}))), `${t}.xlsx`);
|
|
@@ -11166,10 +11166,10 @@ async function vg(e, t) {
|
|
|
11166
11166
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/hooks/useChartDownloadActions.ts
|
|
11167
11167
|
function yg(e) {
|
|
11168
11168
|
let t = e.current?.querySelector(":scope > div");
|
|
11169
|
-
return t ?
|
|
11169
|
+
return t ? Re(t) ?? null : null;
|
|
11170
11170
|
}
|
|
11171
11171
|
function bg(e, t, n) {
|
|
11172
|
-
let r =
|
|
11172
|
+
let r = Tt(document.createElement("div"), void 0, {
|
|
11173
11173
|
renderer: "canvas",
|
|
11174
11174
|
width: e.getWidth(),
|
|
11175
11175
|
height: e.getHeight()
|
|
@@ -11218,23 +11218,23 @@ function xg({ chartContainerRef: e, chartConfig: t, data: n, title: r }) {
|
|
|
11218
11218
|
return K(() => n ? [
|
|
11219
11219
|
{
|
|
11220
11220
|
label: i("ai.dataDownload.download", { format: "PNG" }),
|
|
11221
|
-
icon:
|
|
11221
|
+
icon: Ea,
|
|
11222
11222
|
onClick: () => a("png")
|
|
11223
11223
|
},
|
|
11224
11224
|
{
|
|
11225
11225
|
label: i("ai.dataDownload.download", { format: "JPG" }),
|
|
11226
|
-
icon:
|
|
11226
|
+
icon: Ea,
|
|
11227
11227
|
onClick: () => a("jpg")
|
|
11228
11228
|
},
|
|
11229
11229
|
{ type: "separator" },
|
|
11230
11230
|
{
|
|
11231
11231
|
label: i("ai.dataDownload.download", { format: "Excel" }),
|
|
11232
|
-
icon:
|
|
11232
|
+
icon: Ta,
|
|
11233
11233
|
onClick: s
|
|
11234
11234
|
},
|
|
11235
11235
|
{
|
|
11236
11236
|
label: i("ai.dataDownload.download", { format: "CSV" }),
|
|
11237
|
-
icon:
|
|
11237
|
+
icon: Ta,
|
|
11238
11238
|
onClick: c
|
|
11239
11239
|
}
|
|
11240
11240
|
] : [], [
|
|
@@ -11321,16 +11321,16 @@ function Cg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
11321
11321
|
let e = o.current?.querySelector("[aria-invalid=\"true\"]");
|
|
11322
11322
|
e ? e.focus() : f(null);
|
|
11323
11323
|
};
|
|
11324
|
-
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(
|
|
11324
|
+
return Object.keys(_).length === 0 ? null : /* @__PURE__ */ Z(Jn, {
|
|
11325
11325
|
open: l,
|
|
11326
11326
|
onOpenChange: (e) => {
|
|
11327
11327
|
u(e), r?.(e), !e && (f(null), m(t));
|
|
11328
11328
|
},
|
|
11329
11329
|
modal: !1,
|
|
11330
11330
|
children: [
|
|
11331
|
-
/* @__PURE__ */ X(
|
|
11331
|
+
/* @__PURE__ */ X(Tn, {
|
|
11332
11332
|
asChild: !0,
|
|
11333
|
-
children: /* @__PURE__ */ X(
|
|
11333
|
+
children: /* @__PURE__ */ X(Zn, {
|
|
11334
11334
|
label: i.filters.label,
|
|
11335
11335
|
icon: Xs,
|
|
11336
11336
|
variant: "ghost",
|
|
@@ -11355,7 +11355,7 @@ function Cg({ filters: e, value: t, onChange: n, onOpenChange: r }) {
|
|
|
11355
11355
|
")"
|
|
11356
11356
|
]
|
|
11357
11357
|
}) : null,
|
|
11358
|
-
/* @__PURE__ */ X(
|
|
11358
|
+
/* @__PURE__ */ X(Pn, {
|
|
11359
11359
|
ref: o,
|
|
11360
11360
|
"aria-label": i.filters.label,
|
|
11361
11361
|
className: "w-[380px] max-w-[calc(100vw-1rem)] rounded-xl border border-solid border-f1-border-secondary p-0 shadow-md",
|
|
@@ -11464,7 +11464,7 @@ function Eg({ title: e, enabled: t, actionsCollapse: n }) {
|
|
|
11464
11464
|
//#endregion
|
|
11465
11465
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/DashboardItem/DashboardItem.tsx
|
|
11466
11466
|
function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry: a, skeleton: o, children: s, actions: c = [], itemFilters: l, editMode: u, readOnly: d = !1, handleDelete: f, onAskAi: p, onAskAiTarget: m, itemId: h, chartTypeOptions: g, explanation: _, isFullscreen: v = !1, descriptionAction: y, headerLines: b = 2, fitContent: x = !1, onFullscreenChange: S }) {
|
|
11467
|
-
let [C, w] = J(!1), [T, E] = J(!1), D = q(!1), [O, k] = J(!1), A = V(), { enabled: j, setPendingQuote: ee, setOpen: M, focusChatInput: N } =
|
|
11467
|
+
let [C, w] = J(!1), [T, E] = J(!1), D = q(!1), [O, k] = J(!1), A = V(), { enabled: j, setPendingQuote: ee, setOpen: M, focusChatInput: N } = oa(), P = (e) => {
|
|
11468
11468
|
w(e), e || k(!1);
|
|
11469
11469
|
}, te = c.filter((e) => !("type" in e) || e.type === "item" || e.type === void 0), ne = te.length > 0, re = u && f && h, F = g && g.length > 0, ie = !!_ && _.trim().length > 0, I = !!S, ae = !d && e.trim().length > 0 && (p ? !!h : j), oe = ae || ne || re || F || ie, se = !!l || I || !!oe, ce = !v && (C || T), le = H("flex flex-shrink-0 gap-0.5", !v && "opacity-100 transition-opacity delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 sm:[@media(hover:hover)]:opacity-0 focus-within:sm:opacity-100 group-hover/dashitem:sm:opacity-100", ce && "delay-0 !opacity-100"), de = H("-my-2 -mr-0.5 isolate grid flex-shrink-0", !v && "transition-[grid-template-columns] delay-150 duration-150 focus-within:delay-0 group-hover/dashitem:delay-0 motion-reduce:duration-0 sm:[@media(hover:hover)]:grid-cols-[0fr] focus-within:sm:grid-cols-[1fr] group-hover/dashitem:sm:grid-cols-[1fr]", ce && "delay-0 !grid-cols-[1fr]"), fe = Eg({
|
|
11470
11470
|
title: e,
|
|
@@ -11488,11 +11488,11 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11488
11488
|
}), ee(t), M(!0);
|
|
11489
11489
|
}, ge = (e) => {
|
|
11490
11490
|
D.current && (D.current = !1, N() && e.preventDefault());
|
|
11491
|
-
}, _e = ae ? /* @__PURE__ */ X(
|
|
11491
|
+
}, _e = ae ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(hn, {
|
|
11492
11492
|
onClick: he,
|
|
11493
11493
|
children: /* @__PURE__ */ Z("div", {
|
|
11494
11494
|
className: "flex w-full flex-row items-center gap-2",
|
|
11495
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11495
|
+
children: [/* @__PURE__ */ X(z, { icon: co }), /* @__PURE__ */ X("span", {
|
|
11496
11496
|
className: "flex-1",
|
|
11497
11497
|
children: A.ai.dashboardItem.askOne
|
|
11498
11498
|
})]
|
|
@@ -11511,7 +11511,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11511
11511
|
children: e
|
|
11512
11512
|
}), n ? /* @__PURE__ */ X("div", {
|
|
11513
11513
|
className: "flex shrink-0 items-center text-f1-foreground-secondary",
|
|
11514
|
-
children: /* @__PURE__ */ X(
|
|
11514
|
+
children: /* @__PURE__ */ X(Oe, { info: n })
|
|
11515
11515
|
}) : null]
|
|
11516
11516
|
}), t ? /* @__PURE__ */ X("p", {
|
|
11517
11517
|
className: "text-base text-f1-foreground-secondary",
|
|
@@ -11522,14 +11522,14 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11522
11522
|
children: [l ? /* @__PURE__ */ X(Cg, {
|
|
11523
11523
|
...l,
|
|
11524
11524
|
onOpenChange: E
|
|
11525
|
-
}) : null, ae ? /* @__PURE__ */ Z(
|
|
11525
|
+
}) : null, ae ? /* @__PURE__ */ Z(an, {
|
|
11526
11526
|
open: C,
|
|
11527
11527
|
onOpenChange: P,
|
|
11528
|
-
children: [/* @__PURE__ */ X(
|
|
11528
|
+
children: [/* @__PURE__ */ X(vn, {
|
|
11529
11529
|
asChild: !0,
|
|
11530
|
-
children: /* @__PURE__ */ X(
|
|
11530
|
+
children: /* @__PURE__ */ X(Zn, {
|
|
11531
11531
|
label: A.actions.other,
|
|
11532
|
-
icon:
|
|
11532
|
+
icon: Ei,
|
|
11533
11533
|
variant: "ghost",
|
|
11534
11534
|
size: "md",
|
|
11535
11535
|
hideLabel: !0,
|
|
@@ -11537,7 +11537,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11537
11537
|
compact: !0,
|
|
11538
11538
|
onClick: (e) => e.stopPropagation()
|
|
11539
11539
|
})
|
|
11540
|
-
}), /* @__PURE__ */ X(
|
|
11540
|
+
}), /* @__PURE__ */ X(In, {
|
|
11541
11541
|
align: "end",
|
|
11542
11542
|
className: "py-1",
|
|
11543
11543
|
onCloseAutoFocus: ge,
|
|
@@ -11564,14 +11564,14 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11564
11564
|
"aria-live": r ? "polite" : void 0,
|
|
11565
11565
|
children: [/* @__PURE__ */ Z("div", {
|
|
11566
11566
|
className: H("flex flex-col px-4 py-3", se && "min-h-14"),
|
|
11567
|
-
children: [/* @__PURE__ */ Z(
|
|
11567
|
+
children: [/* @__PURE__ */ Z(Er, {
|
|
11568
11568
|
ref: fe.rowRef,
|
|
11569
11569
|
display: "flex",
|
|
11570
11570
|
minWidth: "0",
|
|
11571
11571
|
alignItems: pe > 1 ? "start" : "center",
|
|
11572
11572
|
children: [/* @__PURE__ */ Z("div", {
|
|
11573
11573
|
className: H("flex min-w-0 flex-1 gap-1", pe > 1 ? "items-start" : "items-center"),
|
|
11574
|
-
children: [/* @__PURE__ */ X(
|
|
11574
|
+
children: [/* @__PURE__ */ X(Qn, {
|
|
11575
11575
|
tag: "h3",
|
|
11576
11576
|
lines: pe,
|
|
11577
11577
|
className: H("text-base font-semibold text-f1-foreground", pe > 1 && "hyphens-auto"),
|
|
@@ -11579,7 +11579,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11579
11579
|
}), n ? /* @__PURE__ */ X("div", {
|
|
11580
11580
|
ref: fe.infoRef,
|
|
11581
11581
|
className: "flex h-5 shrink-0 items-center text-f1-foreground-secondary",
|
|
11582
|
-
children: /* @__PURE__ */ X(
|
|
11582
|
+
children: /* @__PURE__ */ X(Oe, { info: n })
|
|
11583
11583
|
}) : null]
|
|
11584
11584
|
}), se ? /* @__PURE__ */ X("div", {
|
|
11585
11585
|
ref: fe.actionsRef,
|
|
@@ -11593,23 +11593,23 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11593
11593
|
...l,
|
|
11594
11594
|
onOpenChange: E
|
|
11595
11595
|
}) : null,
|
|
11596
|
-
I ? /* @__PURE__ */ X(
|
|
11596
|
+
I ? /* @__PURE__ */ X(Zn, {
|
|
11597
11597
|
label: v ? A.actions.collapse : A.actions.expand,
|
|
11598
|
-
icon: v ?
|
|
11598
|
+
icon: v ? Fi : xa,
|
|
11599
11599
|
variant: "ghost",
|
|
11600
11600
|
size: "md",
|
|
11601
11601
|
hideLabel: !0,
|
|
11602
11602
|
compact: !0,
|
|
11603
11603
|
onClick: () => S?.(!v)
|
|
11604
11604
|
}) : null,
|
|
11605
|
-
oe ? /* @__PURE__ */ Z(
|
|
11605
|
+
oe ? /* @__PURE__ */ Z(an, {
|
|
11606
11606
|
open: C,
|
|
11607
11607
|
onOpenChange: P,
|
|
11608
|
-
children: [/* @__PURE__ */ X(
|
|
11608
|
+
children: [/* @__PURE__ */ X(vn, {
|
|
11609
11609
|
asChild: !0,
|
|
11610
|
-
children: /* @__PURE__ */ X(
|
|
11610
|
+
children: /* @__PURE__ */ X(Zn, {
|
|
11611
11611
|
label: A.actions.other,
|
|
11612
|
-
icon:
|
|
11612
|
+
icon: Ei,
|
|
11613
11613
|
variant: "ghost",
|
|
11614
11614
|
size: "md",
|
|
11615
11615
|
hideLabel: !0,
|
|
@@ -11617,7 +11617,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11617
11617
|
compact: !0,
|
|
11618
11618
|
onClick: (e) => e.stopPropagation()
|
|
11619
11619
|
})
|
|
11620
|
-
}), /* @__PURE__ */ X(
|
|
11620
|
+
}), /* @__PURE__ */ X(In, {
|
|
11621
11621
|
align: "end",
|
|
11622
11622
|
className: H("py-1", O && "w-96 max-w-[90vw]"),
|
|
11623
11623
|
onCloseAutoFocus: ge,
|
|
@@ -11630,7 +11630,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11630
11630
|
}) : /* @__PURE__ */ Z(Y, { children: [
|
|
11631
11631
|
F ? /* @__PURE__ */ Z("div", {
|
|
11632
11632
|
className: "mb-1 flex flex-col items-start gap-2 border-0 border-b border-solid border-f1-border-secondary p-3",
|
|
11633
|
-
children: [/* @__PURE__ */ X(
|
|
11633
|
+
children: [/* @__PURE__ */ X(Qn, {
|
|
11634
11634
|
className: "text-base font-medium text-f1-foreground-tertiary",
|
|
11635
11635
|
children: A.ai.dashboardItem.chartType
|
|
11636
11636
|
}), /* @__PURE__ */ X(Dt, {
|
|
@@ -11649,7 +11649,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11649
11649
|
fullWidth: !0
|
|
11650
11650
|
})]
|
|
11651
11651
|
}) : null,
|
|
11652
|
-
ie ? /* @__PURE__ */ X(
|
|
11652
|
+
ie ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(hn, {
|
|
11653
11653
|
onSelect: (e) => {
|
|
11654
11654
|
e.preventDefault(), k(!0);
|
|
11655
11655
|
},
|
|
@@ -11662,16 +11662,16 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11662
11662
|
})
|
|
11663
11663
|
}) }) : null,
|
|
11664
11664
|
_e,
|
|
11665
|
-
ne ? /* @__PURE__ */ X(
|
|
11665
|
+
ne ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ Z($n, { children: [/* @__PURE__ */ X(yn, {
|
|
11666
11666
|
className: "mx-1 rounded-sm px-2",
|
|
11667
11667
|
children: /* @__PURE__ */ Z("div", {
|
|
11668
11668
|
className: "flex w-full flex-row items-center gap-2 pr-2",
|
|
11669
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11669
|
+
children: [/* @__PURE__ */ X(z, { icon: ea }), /* @__PURE__ */ X("span", {
|
|
11670
11670
|
className: "flex-1 text-base font-medium",
|
|
11671
11671
|
children: A.ai.dataDownload.title
|
|
11672
11672
|
})]
|
|
11673
11673
|
})
|
|
11674
|
-
}), /* @__PURE__ */ X(
|
|
11674
|
+
}), /* @__PURE__ */ X(ln, { children: /* @__PURE__ */ X(sn, { children: te.map((e) => /* @__PURE__ */ X(hn, {
|
|
11675
11675
|
onClick: e.onClick,
|
|
11676
11676
|
children: /* @__PURE__ */ Z("div", {
|
|
11677
11677
|
className: "flex w-full flex-row items-center gap-2",
|
|
@@ -11681,14 +11681,14 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11681
11681
|
})]
|
|
11682
11682
|
})
|
|
11683
11683
|
}, e.label)) }) })] }) }) : null,
|
|
11684
|
-
re ? /* @__PURE__ */ X(
|
|
11684
|
+
re ? /* @__PURE__ */ X(pn, { children: /* @__PURE__ */ X(hn, {
|
|
11685
11685
|
onClick: () => {
|
|
11686
11686
|
v && S?.(!1), f(h);
|
|
11687
11687
|
},
|
|
11688
11688
|
className: H("text-f1-foreground-critical"),
|
|
11689
11689
|
children: /* @__PURE__ */ Z("div", {
|
|
11690
11690
|
className: "flex w-full flex-row items-center gap-2",
|
|
11691
|
-
children: [/* @__PURE__ */ X(z, { icon:
|
|
11691
|
+
children: [/* @__PURE__ */ X(z, { icon: Ji }), /* @__PURE__ */ X("span", {
|
|
11692
11692
|
className: "flex-1",
|
|
11693
11693
|
children: A.actions.delete
|
|
11694
11694
|
})]
|
|
@@ -11703,7 +11703,7 @@ function Dg({ title: e, description: t, info: n, isLoading: r, error: i, onRetry
|
|
|
11703
11703
|
}) : null]
|
|
11704
11704
|
}), t || y ? /* @__PURE__ */ Z("div", {
|
|
11705
11705
|
className: "relative flex items-baseline gap-1",
|
|
11706
|
-
children: [t ? /* @__PURE__ */ X(
|
|
11706
|
+
children: [t ? /* @__PURE__ */ X(Qn, {
|
|
11707
11707
|
lines: me,
|
|
11708
11708
|
className: "text-base text-f1-foreground-secondary",
|
|
11709
11709
|
children: t
|
|
@@ -11775,11 +11775,11 @@ function Ag({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
11775
11775
|
visibility: o ? "visible" : "hidden"
|
|
11776
11776
|
},
|
|
11777
11777
|
className: H("z-50 rounded-md bg-f1-background p-1 border border-solid border-f1-border-secondary", "drop-shadow"),
|
|
11778
|
-
children: /* @__PURE__ */ X(
|
|
11778
|
+
children: /* @__PURE__ */ X(Zn, {
|
|
11779
11779
|
type: "button",
|
|
11780
11780
|
variant: "ghost",
|
|
11781
11781
|
label: i.ai.dashboardItem.askOne,
|
|
11782
|
-
icon:
|
|
11782
|
+
icon: co,
|
|
11783
11783
|
onClick: t
|
|
11784
11784
|
})
|
|
11785
11785
|
}), document.body);
|
|
@@ -11787,7 +11787,7 @@ function Ag({ anchor: e, onAsk: t, onDismiss: n, returnFocusTo: r }) {
|
|
|
11787
11787
|
//#endregion
|
|
11788
11788
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ChartItem/pointQuote.ts
|
|
11789
11789
|
function jg(e, t, n, r = "y") {
|
|
11790
|
-
return t === null ? n : r === "x" && e.type === "scatter" ?
|
|
11790
|
+
return t === null ? n : r === "x" && e.type === "scatter" ? ut(e.xTooltipValueFormatter, e.xValueFormatter)(t) : ut(e.tooltipValueFormatter, e.valueFormatter)(t);
|
|
11791
11791
|
}
|
|
11792
11792
|
function Mg(e, t) {
|
|
11793
11793
|
return t ? `${e} — ${t}` : e;
|
|
@@ -11822,39 +11822,39 @@ function zg(e) {
|
|
|
11822
11822
|
{
|
|
11823
11823
|
label: e.dataChart.barChartVertical,
|
|
11824
11824
|
value: "bar-vertical",
|
|
11825
|
-
icon:
|
|
11825
|
+
icon: ma,
|
|
11826
11826
|
type: "bar",
|
|
11827
11827
|
orientation: "vertical"
|
|
11828
11828
|
},
|
|
11829
11829
|
{
|
|
11830
11830
|
label: e.dataChart.barChartHorizontal,
|
|
11831
11831
|
value: "bar-horizontal",
|
|
11832
|
-
icon:
|
|
11832
|
+
icon: _a,
|
|
11833
11833
|
type: "bar",
|
|
11834
11834
|
orientation: "horizontal"
|
|
11835
11835
|
},
|
|
11836
11836
|
{
|
|
11837
11837
|
label: e.dataChart.lineChart,
|
|
11838
11838
|
value: "line",
|
|
11839
|
-
icon:
|
|
11839
|
+
icon: fa,
|
|
11840
11840
|
type: "line"
|
|
11841
11841
|
},
|
|
11842
11842
|
{
|
|
11843
11843
|
label: e.dataChart.funnel,
|
|
11844
11844
|
value: "funnel",
|
|
11845
|
-
icon:
|
|
11845
|
+
icon: Mi,
|
|
11846
11846
|
type: "funnel"
|
|
11847
11847
|
},
|
|
11848
11848
|
{
|
|
11849
11849
|
label: e.dataChart.pieChart,
|
|
11850
11850
|
value: "pie",
|
|
11851
|
-
icon:
|
|
11851
|
+
icon: Li,
|
|
11852
11852
|
type: "pie"
|
|
11853
11853
|
},
|
|
11854
11854
|
{
|
|
11855
11855
|
label: e.dataChart.table,
|
|
11856
11856
|
value: "table",
|
|
11857
|
-
icon:
|
|
11857
|
+
icon: Ta,
|
|
11858
11858
|
type: "table"
|
|
11859
11859
|
}
|
|
11860
11860
|
];
|
|
@@ -12005,7 +12005,7 @@ function Gg({ config: e, data: t }) {
|
|
|
12005
12005
|
label: e,
|
|
12006
12006
|
id: e
|
|
12007
12007
|
}))
|
|
12008
|
-
}), [i]), o =
|
|
12008
|
+
}), [i]), o = N(a, [i]), s = K(() => [{
|
|
12009
12009
|
type: "table",
|
|
12010
12010
|
options: { columns: i.columns.map((e, t) => ({
|
|
12011
12011
|
label: e,
|
|
@@ -12022,7 +12022,7 @@ function Kg(e) {
|
|
|
12022
12022
|
return Vh(e.chart) && e.chart.type === "bar" && "orientation" in e.chart && e.chart.orientation === "horizontal";
|
|
12023
12023
|
}
|
|
12024
12024
|
function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, onTransformChart: l, isFullscreen: u, onFullscreenChange: d }) {
|
|
12025
|
-
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } =
|
|
12025
|
+
let f = V(), [p, m] = J("chart"), { enabled: h, setPendingQuote: g, setOpen: _, focusChatInput: v } = oa(), y = !Vh(e.chart), b = y ? Bg : e.chart, [x, S] = J(null), C = e.useDashboardFilters !== !1, w = JSON.stringify(r?.value ?? {}), { data: T, isLoading: E, error: D, retry: O } = Sg(e.fetchData, t, C, w), k = q(null), A = K(() => T && !y ? Ug(e, T) : void 0, [
|
|
12026
12026
|
e,
|
|
12027
12027
|
T,
|
|
12028
12028
|
y
|
|
@@ -12120,8 +12120,8 @@ function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12120
12120
|
}) : /* @__PURE__ */ Z("div", {
|
|
12121
12121
|
ref: k,
|
|
12122
12122
|
tabIndex: -1,
|
|
12123
|
-
className: H("relative h-full w-full px-4 py-3",
|
|
12124
|
-
children: [/* @__PURE__ */ X(
|
|
12123
|
+
className: H("relative h-full w-full px-4 py-3", lr("rounded-sm focus-visible:ring-inset focus-visible:ring-offset-0")),
|
|
12124
|
+
children: [/* @__PURE__ */ X(Nt, {
|
|
12125
12125
|
...A,
|
|
12126
12126
|
ariaLabel: e.title,
|
|
12127
12127
|
onPointClick: ee ? (e) => S(e) : void 0,
|
|
@@ -12140,7 +12140,7 @@ function qg({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12140
12140
|
})]
|
|
12141
12141
|
}) : E ? null : /* @__PURE__ */ X("div", {
|
|
12142
12142
|
className: "h-full w-full px-4 py-3",
|
|
12143
|
-
children: /* @__PURE__ */ X(
|
|
12143
|
+
children: /* @__PURE__ */ X(We, {})
|
|
12144
12144
|
})
|
|
12145
12145
|
});
|
|
12146
12146
|
}
|
|
@@ -12247,11 +12247,11 @@ function t_({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
12247
12247
|
]), l = W(() => c("excel"), [c]), u = W(() => c("csv"), [c]);
|
|
12248
12248
|
return K(() => e ? [{
|
|
12249
12249
|
label: a("ai.dataDownload.download", { format: "Excel" }),
|
|
12250
|
-
icon:
|
|
12250
|
+
icon: Ta,
|
|
12251
12251
|
onClick: l
|
|
12252
12252
|
}, {
|
|
12253
12253
|
label: a("ai.dataDownload.download", { format: "CSV" }),
|
|
12254
|
-
icon:
|
|
12254
|
+
icon: Ta,
|
|
12255
12255
|
onClick: u
|
|
12256
12256
|
}] : [], [
|
|
12257
12257
|
e,
|
|
@@ -12263,7 +12263,7 @@ function t_({ source: e, title: t, description: n, columns: r, tableSettings: i
|
|
|
12263
12263
|
//#endregion
|
|
12264
12264
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/CollectionItem/CollectionItem.tsx
|
|
12265
12265
|
function n_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, readOnly: a, handleDelete: o, onAskAi: s, onAskAiTarget: c, isFullscreen: l, onFullscreenChange: u }) {
|
|
12266
|
-
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h =
|
|
12266
|
+
let d = e.useDashboardFilters === !1 ? {} : t, f = JSON.stringify(d), p = JSON.stringify(r?.value ?? {}), m = K(() => e.createSource(d), [f, p]), h = N(m, [f, p]), [g, _] = J(), v = K(() => Jg(e.visualizations), [e]), y = t_({
|
|
12267
12267
|
source: h,
|
|
12268
12268
|
title: e.title,
|
|
12269
12269
|
description: e.description,
|
|
@@ -12345,7 +12345,7 @@ function a_(e, t) {
|
|
|
12345
12345
|
};
|
|
12346
12346
|
}
|
|
12347
12347
|
function o_({ value: e, trend: t, comparison: n }) {
|
|
12348
|
-
let r = q(null), { height: i, width: a } =
|
|
12348
|
+
let r = q(null), { height: i, width: a } = It(r), [o, s] = J(!1), c = i > 220;
|
|
12349
12349
|
return Sc(() => {
|
|
12350
12350
|
let e = r.current;
|
|
12351
12351
|
s(e !== null && (e.scrollWidth > e.clientWidth || e.scrollHeight > e.clientHeight));
|
|
@@ -12360,7 +12360,7 @@ function o_({ value: e, trend: t, comparison: n }) {
|
|
|
12360
12360
|
]), /* @__PURE__ */ X("div", {
|
|
12361
12361
|
ref: r,
|
|
12362
12362
|
tabIndex: o ? 0 : void 0,
|
|
12363
|
-
className: H("flex h-full min-h-0 overflow-auto px-4 pb-4", c ? "items-center" : "items-end", o &&
|
|
12363
|
+
className: H("flex h-full min-h-0 overflow-auto px-4 pb-4", c ? "items-center" : "items-end", o && lr("rounded-sm focus-visible:ring-inset focus-visible:ring-offset-0")),
|
|
12364
12364
|
children: /* @__PURE__ */ Z("div", {
|
|
12365
12365
|
className: H("flex flex-col gap-1", c && "mx-auto -translate-y-2"),
|
|
12366
12366
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -12406,7 +12406,7 @@ function o_({ value: e, trend: t, comparison: n }) {
|
|
|
12406
12406
|
" ",
|
|
12407
12407
|
n.value
|
|
12408
12408
|
]
|
|
12409
|
-
}), n.info ? /* @__PURE__ */ X(
|
|
12409
|
+
}), n.info ? /* @__PURE__ */ X(Oe, {
|
|
12410
12410
|
info: n.info,
|
|
12411
12411
|
label: n.label
|
|
12412
12412
|
}) : null]
|
|
@@ -12579,7 +12579,7 @@ function g_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
12579
12579
|
if (Math.hypot(t.clientX - n, t.clientY - r) < d_) return;
|
|
12580
12580
|
i = !0, T(e), M.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]"));
|
|
12581
12581
|
let a = k.current.get(e)?.title ?? "";
|
|
12582
|
-
a && window.dispatchEvent(new CustomEvent(
|
|
12582
|
+
a && window.dispatchEvent(new CustomEvent(Qi, { detail: {
|
|
12583
12583
|
id: e,
|
|
12584
12584
|
title: a,
|
|
12585
12585
|
onAskAi: c,
|
|
@@ -12593,7 +12593,7 @@ function g_({ items: e, itemFilters: t, filters: n, editMode: r, readOnly: i, on
|
|
|
12593
12593
|
}, o = (e) => {
|
|
12594
12594
|
document.removeEventListener("pointermove", a), document.removeEventListener("pointerup", s), document.removeEventListener("pointercancel", u), N.current = null;
|
|
12595
12595
|
let t = A.current, n = j.current;
|
|
12596
|
-
e && i && t && n && P(t, n), A.current = null, j.current = null, M.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(
|
|
12596
|
+
e && i && t && n && P(t, n), A.current = null, j.current = null, M.current = [], T(null), D(null), i && window.dispatchEvent(new CustomEvent(Ci));
|
|
12597
12597
|
}, s = (e) => {
|
|
12598
12598
|
i && (M.current = Array.from(document.querySelectorAll("[data-ai-chat-dropzone]")), j.current = te(e.clientX, e.clientY)), o(!0);
|
|
12599
12599
|
}, u = () => o(!1);
|
|
@@ -12771,7 +12771,7 @@ function __({ id: e, isDragging: t, showIndicatorBefore: n, showIndicatorAfter:
|
|
|
12771
12771
|
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",
|
|
12772
12772
|
"aria-label": "Drag to reorder",
|
|
12773
12773
|
children: /* @__PURE__ */ X(z, {
|
|
12774
|
-
icon:
|
|
12774
|
+
icon: Aa,
|
|
12775
12775
|
size: "xs"
|
|
12776
12776
|
})
|
|
12777
12777
|
}) : null, s]
|
|
@@ -12941,13 +12941,13 @@ function j_({ item: e, filters: t, actions: n, itemFilters: r, editMode: i, read
|
|
|
12941
12941
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/components/ExportDropdown/ExportDropdown.tsx
|
|
12942
12942
|
function M_({ onExportExcel: e, isExporting: t }) {
|
|
12943
12943
|
let { t: n } = V();
|
|
12944
|
-
return /* @__PURE__ */ X(
|
|
12944
|
+
return /* @__PURE__ */ X(wa, {
|
|
12945
12945
|
items: [{
|
|
12946
12946
|
label: t ? n("ai.dataDownload.exporting") : n("ai.dataDownload.exportDashboard", { format: "Excel" }),
|
|
12947
|
-
icon:
|
|
12947
|
+
icon: ea,
|
|
12948
12948
|
onClick: t ? () => {} : e
|
|
12949
12949
|
}],
|
|
12950
|
-
icon:
|
|
12950
|
+
icon: Ei
|
|
12951
12951
|
});
|
|
12952
12952
|
}
|
|
12953
12953
|
//#endregion
|
|
@@ -13098,14 +13098,14 @@ function B_({ items: e, filters: t, filename: n = "dashboard" }) {
|
|
|
13098
13098
|
//#endregion
|
|
13099
13099
|
//#region src/domains/platform/ai/analytics/F0AnalyticsDashboard/F0AnalyticsDashboard.tsx
|
|
13100
13100
|
var V_ = ({ 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 }) => {
|
|
13101
|
-
let y = V(), [b = {}, x] =
|
|
13101
|
+
let y = V(), [b = {}, x] = Wn({
|
|
13102
13102
|
prop: r,
|
|
13103
13103
|
defaultProp: n ?? {},
|
|
13104
13104
|
onChange: i
|
|
13105
13105
|
}), S = K(() => {
|
|
13106
13106
|
if (!_) return {};
|
|
13107
13107
|
let e = {};
|
|
13108
|
-
for (let [t, n] of Object.entries(_)) e[t] =
|
|
13108
|
+
for (let [t, n] of Object.entries(_)) e[t] = me[n.type].valueConverter?.(n.defaultValue, n, y) ?? n.defaultValue;
|
|
13109
13109
|
return e;
|
|
13110
13110
|
}, []), [C, w] = J(S), { exportAsExcel: T, isExporting: E } = B_({
|
|
13111
13111
|
items: a,
|
|
@@ -13136,7 +13136,7 @@ var V_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
|
|
|
13136
13136
|
}) : v ? /* @__PURE__ */ X(F_, {}) : null
|
|
13137
13137
|
}), /* @__PURE__ */ Z("div", {
|
|
13138
13138
|
className: "flex shrink-0 items-center gap-2",
|
|
13139
|
-
children: [_ ? /* @__PURE__ */ X(
|
|
13139
|
+
children: [_ ? /* @__PURE__ */ X(ie, {
|
|
13140
13140
|
navigationFilters: _,
|
|
13141
13141
|
currentNavigationFilters: C,
|
|
13142
13142
|
onChangeNavigationFilters: w,
|
|
@@ -13168,7 +13168,7 @@ var V_ = ({ filters: e, presets: t, defaultFilters: n, filtersValue: r, onFilter
|
|
|
13168
13168
|
});
|
|
13169
13169
|
};
|
|
13170
13170
|
V_.displayName = "F0AnalyticsDashboard";
|
|
13171
|
-
var H_ =
|
|
13171
|
+
var H_ = Kn("F0AnalyticsDashboard", V_), U_ = () => fn("(min-width: 640px)", { initializeWithValue: !1 }), W_ = () => fn("(max-width: 639px)", { initializeWithValue: !1 }), G_ = /*#__PURE__*/ U.createContext(void 0);
|
|
13172
13172
|
process.env.NODE_ENV !== "production" && (G_.displayName = "ToastContext");
|
|
13173
13173
|
function K_() {
|
|
13174
13174
|
let e = U.useContext(G_);
|
|
@@ -13221,7 +13221,7 @@ var X_ = {
|
|
|
13221
13221
|
expanded: (e) => e.hovering || e.focused,
|
|
13222
13222
|
expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
|
|
13223
13223
|
prevFocusElement: (e) => e.prevFocusElement
|
|
13224
|
-
}, Z_ = class extends
|
|
13224
|
+
}, Z_ = class extends yr {
|
|
13225
13225
|
timers = /* @__PURE__ */ new Map();
|
|
13226
13226
|
areTimersPaused = !1;
|
|
13227
13227
|
constructor(e) {
|
|
@@ -13342,7 +13342,7 @@ var X_ = {
|
|
|
13342
13342
|
}
|
|
13343
13343
|
resumeTimers() {
|
|
13344
13344
|
this.areTimersPaused && (this.areTimersPaused = !1, this.timers.forEach((e, t) => {
|
|
13345
|
-
e.remaining = e.remaining > 0 ? e.remaining : e.delay, e.timeout ??=
|
|
13345
|
+
e.remaining = e.remaining > 0 ? e.remaining : e.delay, e.timeout ??= _r.create(), e.timeout.start(e.remaining, () => {
|
|
13346
13346
|
this.handleTimerFired(t), e.callback();
|
|
13347
13347
|
}), e.start = Date.now();
|
|
13348
13348
|
}));
|
|
@@ -13352,14 +13352,14 @@ var X_ = {
|
|
|
13352
13352
|
}
|
|
13353
13353
|
handleDocumentPointerDown = (e) => {
|
|
13354
13354
|
if (e.pointerType !== "touch") return;
|
|
13355
|
-
let t =
|
|
13356
|
-
|
|
13355
|
+
let t = vr(e);
|
|
13356
|
+
sr(this.state.viewport, t) || (this.resumeTimers(), this.update({
|
|
13357
13357
|
hovering: !1,
|
|
13358
13358
|
focused: !1
|
|
13359
13359
|
}));
|
|
13360
13360
|
};
|
|
13361
13361
|
scheduleTimer(e, t, n) {
|
|
13362
|
-
let r = Date.now(), i = X_.expandedOrOutOfFocus(this.state) ? void 0 :
|
|
13362
|
+
let r = Date.now(), i = X_.expandedOrOutOfFocus(this.state) ? void 0 : _r.create();
|
|
13363
13363
|
i?.start(t, () => {
|
|
13364
13364
|
this.handleTimerFired(e), n();
|
|
13365
13365
|
}), this.timers.set(e, {
|
|
@@ -13392,8 +13392,8 @@ var X_ = {
|
|
|
13392
13392
|
t && (n.hovering = !1, n.focused = !1), this.update(n);
|
|
13393
13393
|
}
|
|
13394
13394
|
handleFocusManagement(e) {
|
|
13395
|
-
let t =
|
|
13396
|
-
if (!this.state.viewport || !
|
|
13395
|
+
let t = nr(Tr(this.state.viewport));
|
|
13396
|
+
if (!this.state.viewport || !sr(this.state.viewport, t) || !tr(t)) return;
|
|
13397
13397
|
if (e === void 0) {
|
|
13398
13398
|
this.restoreFocusToPrevElement();
|
|
13399
13399
|
return;
|
|
@@ -13405,7 +13405,7 @@ var X_ = {
|
|
|
13405
13405
|
a ? a.ref?.current?.focus() : this.restoreFocusToPrevElement();
|
|
13406
13406
|
}
|
|
13407
13407
|
}, Q_ = function(e) {
|
|
13408
|
-
let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a =
|
|
13408
|
+
let { children: t, timeout: n = 5e3, limit: r = 3, toastManager: i } = e, a = ir(() => new Z_({
|
|
13409
13409
|
timeout: n,
|
|
13410
13410
|
limit: r,
|
|
13411
13411
|
viewport: null,
|
|
@@ -13415,7 +13415,7 @@ var X_ = {
|
|
|
13415
13415
|
isWindowFocused: !0,
|
|
13416
13416
|
prevFocusElement: null
|
|
13417
13417
|
})).current;
|
|
13418
|
-
return
|
|
13418
|
+
return or(a.disposeEffect), U.useEffect(function() {
|
|
13419
13419
|
if (i) return i[" subscribe"](({ action: e, options: t }) => {
|
|
13420
13420
|
let n = t.id;
|
|
13421
13421
|
e === "promise" && t.promise ? a.promiseToast(t.promise, t) : e === "update" && n ? a.updateToast(n, t.updates) : e === "close" ? a.closeToast(n) : a.addToast(t);
|
|
@@ -13432,7 +13432,7 @@ var X_ = {
|
|
|
13432
13432
|
process.env.NODE_ENV !== "production" && (Q_.displayName = "ToastProvider");
|
|
13433
13433
|
function $_(e) {
|
|
13434
13434
|
let { store: t, timeout: n, limit: r } = e;
|
|
13435
|
-
return
|
|
13435
|
+
return rr(() => {
|
|
13436
13436
|
t.syncProviderProps(n, r);
|
|
13437
13437
|
}, [
|
|
13438
13438
|
t,
|
|
@@ -13443,23 +13443,23 @@ function $_(e) {
|
|
|
13443
13443
|
//#endregion
|
|
13444
13444
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/viewport/ToastViewportCssVars.mjs
|
|
13445
13445
|
var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
13446
|
-
let { render: n, className: r, style: i, children: a, ...o } = e, s = K_(), c =
|
|
13446
|
+
let { render: n, className: r, style: i, children: a, ...o } = e, s = K_(), c = ar(), l = U.useRef(!1), u = U.useRef(!1), d = U.useRef(!1), f = s.useState("isEmpty"), p = s.useState("toasts"), m = s.useState("focused"), h = s.useState("expanded"), g = s.useState("prevFocusElement"), _ = p[0]?.height, v = p.some((e) => e.transitionStatus === "ending"), y = p.filter((e) => e.priority === "high");
|
|
13447
13447
|
U.useEffect(() => {
|
|
13448
13448
|
let e = s.state.viewport;
|
|
13449
13449
|
if (!e || f) return;
|
|
13450
|
-
let t =
|
|
13450
|
+
let t = er(e), n = Tr(e);
|
|
13451
13451
|
function r(t) {
|
|
13452
|
-
t.key === "F6" &&
|
|
13452
|
+
t.key === "F6" && vr(t) !== e && (t.preventDefault(), s.set("prevFocusElement", nr(n)), e?.focus({ preventScroll: !0 }), s.pauseTimers(), s.set("focused", !0));
|
|
13453
13453
|
}
|
|
13454
13454
|
function i(e) {
|
|
13455
|
-
|
|
13455
|
+
vr(e) === t && (s.set("isWindowFocused", !1), s.pauseTimers());
|
|
13456
13456
|
}
|
|
13457
13457
|
function a(n) {
|
|
13458
13458
|
if (n.relatedTarget) return;
|
|
13459
|
-
let r =
|
|
13460
|
-
(r === t || !
|
|
13459
|
+
let r = vr(n), i = nr(Tr(e));
|
|
13460
|
+
(r === t || !sr(e, r) || !tr(i)) && s.resumeTimers(), c.start(0, () => s.set("isWindowFocused", !0));
|
|
13461
13461
|
}
|
|
13462
|
-
return
|
|
13462
|
+
return wr(ur(t, "keydown", r), ur(t, "blur", i, !0), ur(t, "focus", a, !0), ur(n, "pointerdown", s.handleDocumentPointerDown, !0));
|
|
13463
13463
|
}, [
|
|
13464
13464
|
s,
|
|
13465
13465
|
c,
|
|
@@ -13471,7 +13471,7 @@ var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e,
|
|
|
13471
13471
|
t ? t.ref?.current?.focus() : s.restoreFocusToPrevElement();
|
|
13472
13472
|
}
|
|
13473
13473
|
function x(e) {
|
|
13474
|
-
e.key === "Tab" && e.shiftKey &&
|
|
13474
|
+
e.key === "Tab" && e.shiftKey && vr(e.nativeEvent) === s.state.viewport && (e.preventDefault(), s.restoreFocusToPrevElement());
|
|
13475
13475
|
}
|
|
13476
13476
|
function S() {
|
|
13477
13477
|
s.state.toasts.some((e) => e.transitionStatus === "ending") || d.current || !u.current || (s.state.isWindowFocused && s.resumeTimers(), s.set("hovering", !1), u.current = !1);
|
|
@@ -13493,10 +13493,10 @@ var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e,
|
|
|
13493
13493
|
e.pointerType === "touch" && (d.current = !1, S());
|
|
13494
13494
|
}
|
|
13495
13495
|
function O() {
|
|
13496
|
-
l.current ? l.current = !1 : m ||
|
|
13496
|
+
l.current ? l.current = !1 : m || tr(nr(Tr(s.state.viewport))) && (s.set("focused", !0), s.pauseTimers());
|
|
13497
13497
|
}
|
|
13498
13498
|
function k(e) {
|
|
13499
|
-
m && !
|
|
13499
|
+
m && !sr(s.state.viewport, e.relatedTarget) && (s.set("focused", !1), w());
|
|
13500
13500
|
}
|
|
13501
13501
|
let A = {
|
|
13502
13502
|
tabIndex: -1,
|
|
@@ -13516,7 +13516,7 @@ var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e,
|
|
|
13516
13516
|
onPointerUp: D,
|
|
13517
13517
|
onPointerCancel: D,
|
|
13518
13518
|
style: { [ev]: _ ? `${_}px` : void 0 }
|
|
13519
|
-
}, j = { expanded: h }, ee = !f && g && /*#__PURE__*/ X(
|
|
13519
|
+
}, j = { expanded: h }, ee = !f && g && /*#__PURE__*/ X(dr, { onFocus: b }), M = br("div", e, {
|
|
13520
13520
|
ref: [t, s.setViewport],
|
|
13521
13521
|
state: j,
|
|
13522
13522
|
props: [
|
|
@@ -13533,7 +13533,7 @@ var ev = "--toast-frontmost-height", tv = /*#__PURE__*/ U.forwardRef(function(e,
|
|
|
13533
13533
|
ee,
|
|
13534
13534
|
M,
|
|
13535
13535
|
!m && y.length > 0 && /*#__PURE__*/ X("div", {
|
|
13536
|
-
style:
|
|
13536
|
+
style: Sr,
|
|
13537
13537
|
children: y.map((e) => /*#__PURE__*/ Z("div", {
|
|
13538
13538
|
role: "alert",
|
|
13539
13539
|
"aria-atomic": !0,
|
|
@@ -13555,7 +13555,7 @@ function rv() {
|
|
|
13555
13555
|
//#endregion
|
|
13556
13556
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/utils/getElementTransform.mjs
|
|
13557
13557
|
function iv(e, t) {
|
|
13558
|
-
let n = (t ??
|
|
13558
|
+
let n = (t ?? er(e).getComputedStyle(e)).transform, r = 0, i = 0, a = 1;
|
|
13559
13559
|
if (n && n !== "none") {
|
|
13560
13560
|
let e = n.match(/matrix(?:3d)?\(([^)]+)\)/);
|
|
13561
13561
|
if (e) {
|
|
@@ -13583,11 +13583,11 @@ function av(e, t, n) {
|
|
|
13583
13583
|
//#endregion
|
|
13584
13584
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/root/ToastRootCssVars.mjs
|
|
13585
13585
|
var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "--toast-swipe-movement-x", uv = "--toast-swipe-movement-y", dv = "data-swipe-direction", fv = {
|
|
13586
|
-
...
|
|
13586
|
+
...Cr,
|
|
13587
13587
|
swipeDirection(e) {
|
|
13588
13588
|
return e ? { [dv]: e } : null;
|
|
13589
13589
|
}
|
|
13590
|
-
}, pv = 40, mv = 10, hv = .5, gv = 1, _v = `${
|
|
13590
|
+
}, pv = 40, mv = 10, hv = .5, gv = 1, _v = `${mr},${xr}`, vv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
13591
13591
|
let { toast: n, render: r, className: i, swipeDirection: a = ["down", "right"], style: o, ...s } = e, c = n.positionerProps?.anchor !== void 0, l = [];
|
|
13592
13592
|
c || (l = Array.isArray(a) ? a : [a]);
|
|
13593
13593
|
let u = l.length > 0, d = K_(), [f, p] = U.useState(void 0), [m, h] = U.useState(!1), [g, _] = U.useState(!1), [v, y] = U.useState({
|
|
@@ -13611,14 +13611,14 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13611
13611
|
x: 0,
|
|
13612
13612
|
y: 0
|
|
13613
13613
|
}), re = U.useRef(null), F = U.useRef(null), ie = d.useState("toastIndex", n.id), I = d.useState("toastVisibleIndex", n.id), ae = d.useState("toastOffsetY", n.id), oe = d.useState("focused"), se = d.useState("expanded");
|
|
13614
|
-
|
|
13614
|
+
pr({
|
|
13615
13615
|
open: n.transitionStatus !== "ending",
|
|
13616
13616
|
ref: O,
|
|
13617
13617
|
onComplete() {
|
|
13618
13618
|
n.transitionStatus === "ending" && d.removeToast(n.id);
|
|
13619
13619
|
}
|
|
13620
13620
|
});
|
|
13621
|
-
let ce =
|
|
13621
|
+
let ce = fr((e = !1) => {
|
|
13622
13622
|
let t = O.current;
|
|
13623
13623
|
if (!t) return;
|
|
13624
13624
|
let r = t.style.height;
|
|
@@ -13634,7 +13634,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13634
13634
|
}
|
|
13635
13635
|
e ? wc.flushSync(a) : a();
|
|
13636
13636
|
});
|
|
13637
|
-
|
|
13637
|
+
rr(() => {
|
|
13638
13638
|
let e = k.current;
|
|
13639
13639
|
(n.transitionStatus === "starting" || e !== n.id) && (e !== void 0 && (p(void 0), x({
|
|
13640
13640
|
x: 0,
|
|
@@ -13652,7 +13652,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13652
13652
|
function le(e) {
|
|
13653
13653
|
ne.current = e, y(e);
|
|
13654
13654
|
}
|
|
13655
|
-
|
|
13655
|
+
rr(() => () => {
|
|
13656
13656
|
F.current?.abort();
|
|
13657
13657
|
}, []);
|
|
13658
13658
|
function ue(e, t) {
|
|
@@ -13662,7 +13662,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13662
13662
|
y: i ? n(t) : t
|
|
13663
13663
|
};
|
|
13664
13664
|
}
|
|
13665
|
-
let de =
|
|
13665
|
+
let de = fr((e) => {
|
|
13666
13666
|
if (e.pointerId !== re.current) return;
|
|
13667
13667
|
re.current = null, F.current?.abort(), F.current = null, h(!1), _(!1), D(null);
|
|
13668
13668
|
let t = j.current;
|
|
@@ -13684,7 +13684,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13684
13684
|
}), p(void 0));
|
|
13685
13685
|
});
|
|
13686
13686
|
function fe(e) {
|
|
13687
|
-
if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(),
|
|
13687
|
+
if (e.button !== 0 || (e.pointerType === "touch" && d.pauseTimers(), vr(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${_v}`))) return;
|
|
13688
13688
|
N.current = !1, ee.current = void 0, M.current = 0, re.current = e.pointerId, A.current = {
|
|
13689
13689
|
x: e.clientX,
|
|
13690
13690
|
y: e.clientY
|
|
@@ -13696,7 +13696,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13696
13696
|
}), d.set("hovering", !0), h(!0), _(!1), D(null), te.current = !0, F.current?.abort();
|
|
13697
13697
|
let r = new AbortController();
|
|
13698
13698
|
F.current = r;
|
|
13699
|
-
let i =
|
|
13699
|
+
let i = Tr(t);
|
|
13700
13700
|
i.addEventListener("pointerup", de, { signal: r.signal }), i.addEventListener("pointercancel", de, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
|
|
13701
13701
|
}
|
|
13702
13702
|
function pe(e) {
|
|
@@ -13733,7 +13733,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13733
13733
|
}
|
|
13734
13734
|
function me(e) {
|
|
13735
13735
|
if (e.key === "Escape") {
|
|
13736
|
-
if (!O.current || !
|
|
13736
|
+
if (!O.current || !sr(O.current, nr(Tr(O.current)))) return;
|
|
13737
13737
|
d.closeToast(n.id);
|
|
13738
13738
|
}
|
|
13739
13739
|
}
|
|
@@ -13741,9 +13741,9 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13741
13741
|
let e = O.current;
|
|
13742
13742
|
if (!u || !e) return;
|
|
13743
13743
|
function t(t) {
|
|
13744
|
-
re.current !== null &&
|
|
13744
|
+
re.current !== null && sr(e, vr(t)) && t.preventDefault();
|
|
13745
13745
|
}
|
|
13746
|
-
return
|
|
13746
|
+
return ur(e, "touchmove", t, { passive: !1 });
|
|
13747
13747
|
}, [u]);
|
|
13748
13748
|
function he() {
|
|
13749
13749
|
let e = v.x - b.x, t = v.y - b.y;
|
|
@@ -13794,7 +13794,7 @@ var ov = "--toast-index", sv = "--toast-offset-y", cv = "--toast-height", lv = "
|
|
|
13794
13794
|
type: n.type,
|
|
13795
13795
|
swiping: m,
|
|
13796
13796
|
swipeDirection: f
|
|
13797
|
-
}, be =
|
|
13797
|
+
}, be = br("div", e, {
|
|
13798
13798
|
ref: [t, O],
|
|
13799
13799
|
state: ye,
|
|
13800
13800
|
stateAttributesMapping: fv,
|
|
@@ -13810,7 +13810,7 @@ process.env.NODE_ENV !== "production" && (vv.displayName = "ToastRoot");
|
|
|
13810
13810
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/content/ToastContent.mjs
|
|
13811
13811
|
var yv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
13812
13812
|
let { render: n, className: r, style: i, ...a } = e, { visibleIndex: o, expanded: s, recalculateHeight: c } = rv(), l = U.useRef(null);
|
|
13813
|
-
return
|
|
13813
|
+
return rr(() => {
|
|
13814
13814
|
c();
|
|
13815
13815
|
let e = l.current;
|
|
13816
13816
|
if (!e || typeof ResizeObserver != "function" || typeof MutationObserver != "function") return;
|
|
@@ -13822,7 +13822,7 @@ var yv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
|
13822
13822
|
}), () => {
|
|
13823
13823
|
t.disconnect(), n.disconnect();
|
|
13824
13824
|
};
|
|
13825
|
-
}, [c]),
|
|
13825
|
+
}, [c]), br("div", e, {
|
|
13826
13826
|
ref: [t, l],
|
|
13827
13827
|
state: {
|
|
13828
13828
|
expanded: s,
|
|
@@ -13845,7 +13845,7 @@ function xv(e) {
|
|
|
13845
13845
|
function Sv(e, t, n) {
|
|
13846
13846
|
let { toast: r, setTitleId: i, setDescriptionId: a } = rv(), o = n === "title" ? i : a, s = t ?? (n === "title" ? r.title : r.description);
|
|
13847
13847
|
return {
|
|
13848
|
-
id:
|
|
13848
|
+
id: hr(e),
|
|
13849
13849
|
children: s,
|
|
13850
13850
|
type: r.type,
|
|
13851
13851
|
setId: o
|
|
@@ -13853,7 +13853,7 @@ function Sv(e, t, n) {
|
|
|
13853
13853
|
}
|
|
13854
13854
|
function Cv(e, t, n) {
|
|
13855
13855
|
let r = xv(e);
|
|
13856
|
-
return
|
|
13856
|
+
return rr(() => {
|
|
13857
13857
|
if (r) return n(t), () => {
|
|
13858
13858
|
n((e) => e === t ? void 0 : e);
|
|
13859
13859
|
};
|
|
@@ -13867,7 +13867,7 @@ function Cv(e, t, n) {
|
|
|
13867
13867
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/description/ToastDescription.mjs
|
|
13868
13868
|
var wv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
13869
13869
|
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = Sv(a, o, "description");
|
|
13870
|
-
return Cv(
|
|
13870
|
+
return Cv(br("p", e, {
|
|
13871
13871
|
ref: t,
|
|
13872
13872
|
state: { type: u },
|
|
13873
13873
|
props: {
|
|
@@ -13882,7 +13882,7 @@ process.env.NODE_ENV !== "production" && (wv.displayName = "ToastDescription");
|
|
|
13882
13882
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@types+react@18.3.18_date-fns@3.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/toast/title/ToastTitle.mjs
|
|
13883
13883
|
var Tv = /*#__PURE__*/ U.forwardRef(function(e, t) {
|
|
13884
13884
|
let { render: n, className: r, style: i, id: a, children: o, ...s } = e, { id: c, children: l, type: u, setId: d } = Sv(a, o, "title");
|
|
13885
|
-
return Cv(
|
|
13885
|
+
return Cv(br("h2", e, {
|
|
13886
13886
|
ref: t,
|
|
13887
13887
|
state: { type: u },
|
|
13888
13888
|
props: {
|
|
@@ -13930,7 +13930,7 @@ var Dv = ({ onClose: e }) => {
|
|
|
13930
13930
|
className: "dark flex flex-shrink-0 flex-row flex-wrap items-center gap-3",
|
|
13931
13931
|
children: [e.map((e) => /* @__PURE__ */ X("div", {
|
|
13932
13932
|
onClick: () => n(e),
|
|
13933
|
-
children: /* @__PURE__ */ X(
|
|
13933
|
+
children: /* @__PURE__ */ X(ji, {
|
|
13934
13934
|
href: e.href,
|
|
13935
13935
|
children: e.label
|
|
13936
13936
|
})
|
|
@@ -13961,7 +13961,7 @@ var Dv = ({ onClose: e }) => {
|
|
|
13961
13961
|
children: t
|
|
13962
13962
|
}),
|
|
13963
13963
|
inStack: !1
|
|
13964
|
-
}), Mv = () => yc(jv), Nv = (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"), Pv =
|
|
13964
|
+
}), Mv = () => yc(jv), Nv = (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"), Pv = Mn({
|
|
13965
13965
|
base: "text-base font-medium text-f1-foreground-inverse",
|
|
13966
13966
|
variants: { hasIcon: {
|
|
13967
13967
|
true: "pt-[3px]",
|
|
@@ -13998,7 +13998,7 @@ var Dv = ({ onClose: e }) => {
|
|
|
13998
13998
|
}) : g && /* @__PURE__ */ X("div", {
|
|
13999
13999
|
className: "flex-shrink-0",
|
|
14000
14000
|
"aria-hidden": "true",
|
|
14001
|
-
children: /* @__PURE__ */ X(
|
|
14001
|
+
children: /* @__PURE__ */ X(Pa, {
|
|
14002
14002
|
type: g,
|
|
14003
14003
|
size: "sm"
|
|
14004
14004
|
})
|
|
@@ -14051,14 +14051,14 @@ var zv = (e) => e instanceof Element && e.closest("button, a") !== null, Bv = gc
|
|
|
14051
14051
|
type: "button",
|
|
14052
14052
|
"aria-label": d.actions.view,
|
|
14053
14053
|
onClick: h,
|
|
14054
|
-
className: H("pointer-events-none absolute inset-0 rounded-lg",
|
|
14054
|
+
className: H("pointer-events-none absolute inset-0 rounded-lg", lr("focus-visible:ring-inset"))
|
|
14055
14055
|
}) : null,
|
|
14056
14056
|
/* @__PURE__ */ Z("div", {
|
|
14057
14057
|
className: "flex flex-row items-start gap-3",
|
|
14058
14058
|
children: [
|
|
14059
14059
|
/* @__PURE__ */ X("div", {
|
|
14060
14060
|
className: "flex-shrink-0",
|
|
14061
|
-
children: /* @__PURE__ */ X(
|
|
14061
|
+
children: /* @__PURE__ */ X(Po, {
|
|
14062
14062
|
avatar: e,
|
|
14063
14063
|
size: "md"
|
|
14064
14064
|
})
|
|
@@ -14102,7 +14102,7 @@ var zv = (e) => e instanceof Element && e.closest("button, a") !== null, Bv = gc
|
|
|
14102
14102
|
Bv.displayName = "F0MessageToast";
|
|
14103
14103
|
//#endregion
|
|
14104
14104
|
//#region src/elements/Toast/stack/ToastItem.tsx
|
|
14105
|
-
var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 flex w-full origin-bottom select-none flex-col justify-end rounded-lg",
|
|
14105
|
+
var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 flex w-full origin-bottom select-none flex-col justify-end rounded-lg", lr(), "before:pointer-events-none before:absolute before:inset-x-0 before:bottom-0 before:-z-10 before:rounded-lg before:shadow-lg before:content-['']", "before:border before:border-solid before:border-f1-border-inverse", "before:bg-f1-background-inverse before:bg-[linear-gradient(hsl(var(--neutral-90)),hsl(var(--neutral-90)))]", "dark:before:bg-f1-background-tertiary dark:before:bg-[linear-gradient(hsl(var(--neutral-5)),hsl(var(--neutral-5)))]", "before:h-[var(--height)] data-[expanded]:before:h-[var(--toast-height)]", "data-[ending-style]:before:h-full data-[expanded]:data-[ending-style]:before:h-full", "before:[transition:height_0.3s_cubic-bezier(0.22,1,0.36,1)] motion-reduce:before:[transition:none]", "[--gap:0.75rem] [--peek:6px]", "[--scale:calc(max(0,1_-_var(--toast-index)*0.05))] [--shrink:calc(1_-_var(--scale))]", "[--height:var(--toast-frontmost-height,var(--toast-height))]", "[--offset-y:calc(var(--toast-offset-y)*-1_-_var(--toast-index)*var(--gap)_+_var(--toast-swipe-movement-y))]", "z-[calc(1000_-_var(--toast-index))]", "h-[var(--height)] data-[expanded]:h-[var(--toast-height)]", "[interpolate-size:numeric-only]", "[transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height)))_scale(var(--scale))]", "data-[expanded]:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]", "after:absolute after:left-0 after:top-full after:h-[calc(var(--gap)_+_1px)] after:w-full after:content-['']", "data-[buried]:invisible data-[buried]:opacity-0 data-[expanded]:data-[buried]:visible data-[expanded]:data-[buried]:opacity-100", "data-[starting-style]:[transform:translateY(150%)]", "data-[ending-style]:opacity-0 group-data-[clearing]/toasts:data-[ending-style]:opacity-100", "[--exit-drop:100%]", "[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--toast-swipe-movement-y)_-_var(--toast-index)*var(--peek)_-_var(--shrink)*var(--height,0px)_+_var(--exit-drop)))_scale(var(--scale))]", "[&[data-ending-style][data-expanded]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(calc(var(--offset-y)_+_var(--exit-drop)))]", "data-[ending-style]:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)_+_150%))]", "data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)_+_150%))_translateY(var(--offset-y))]", "[transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s]", "motion-reduce:[transition:opacity_0.2s]"), Hv = H("shrink-0 overflow-hidden rounded-lg", "[--content-shift:calc(var(--toast-height,var(--height))_-_var(--height))]", "group-data-[ending-style]/toast:h-full", "[transform:translateY(var(--content-shift))] [clip-path:inset(0_0_max(0px,var(--content-shift))_0_round_theme(borderRadius.lg))]", "data-[expanded]:[transform:none] data-[expanded]:[clip-path:inset(0_0_0_0_round_theme(borderRadius.lg))]", "[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[behind]:opacity-0 data-[expanded]:opacity-100", "data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1)_300ms,transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "data-[expanded]:data-[behind]:[transition:opacity_250ms_cubic-bezier(0.22,1,0.36,1),transform_0.3s_cubic-bezier(0.22,1,0.36,1),clip-path_0.3s_cubic-bezier(0.22,1,0.36,1)]", "motion-reduce:[transition:opacity_250ms] motion-reduce:data-[behind]:[transition:opacity_250ms]"), Uv = ["down", "right"], Wv = {
|
|
14106
14106
|
Title: ({ className: e, children: t }) => /* @__PURE__ */ X(Tv, {
|
|
14107
14107
|
className: e,
|
|
14108
14108
|
render: /* @__PURE__ */ X("p", {}),
|
|
@@ -14229,7 +14229,7 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14229
14229
|
});
|
|
14230
14230
|
}, iy = "#content", ay = (e) => {
|
|
14231
14231
|
let [t, n] = J({ inset: 0 });
|
|
14232
|
-
return
|
|
14232
|
+
return un(function() {
|
|
14233
14233
|
if (!e || typeof document > "u") return;
|
|
14234
14234
|
let t = document.querySelector(iy);
|
|
14235
14235
|
if (!t) {
|
|
@@ -14307,24 +14307,24 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14307
14307
|
t?.desktop
|
|
14308
14308
|
]), /* @__PURE__ */ Z(Y, { children: [i && o != null ? Tc(/* @__PURE__ */ X(mc, { children: /* @__PURE__ */ X(cy, {
|
|
14309
14309
|
messages: Vt,
|
|
14310
|
-
app:
|
|
14310
|
+
app: _t
|
|
14311
14311
|
}) }, c), o) : null, e] });
|
|
14312
|
-
}, uy = ({ 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(
|
|
14312
|
+
}, uy = ({ 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(lt, {
|
|
14313
14313
|
reducedMotion: "user",
|
|
14314
|
-
children: /* @__PURE__ */ X(
|
|
14314
|
+
children: /* @__PURE__ */ X(Un, {
|
|
14315
14315
|
isDev: s,
|
|
14316
14316
|
showExperimentalWarnings: c,
|
|
14317
14317
|
renderDataTestIdAttribute: l,
|
|
14318
14318
|
hourCycle: o,
|
|
14319
14319
|
children: /* @__PURE__ */ X(Us, {
|
|
14320
14320
|
...a,
|
|
14321
|
-
children: /* @__PURE__ */ X(
|
|
14321
|
+
children: /* @__PURE__ */ X(Yn, {
|
|
14322
14322
|
...i,
|
|
14323
|
-
children: /* @__PURE__ */ X(
|
|
14323
|
+
children: /* @__PURE__ */ X(kn, {
|
|
14324
14324
|
...t,
|
|
14325
|
-
children: /* @__PURE__ */ X(
|
|
14325
|
+
children: /* @__PURE__ */ X(qn, { children: /* @__PURE__ */ X(x, {
|
|
14326
14326
|
initiallyEnabled: n,
|
|
14327
|
-
children: /* @__PURE__ */ X(
|
|
14327
|
+
children: /* @__PURE__ */ X(yo, {
|
|
14328
14328
|
...r,
|
|
14329
14329
|
children: e
|
|
14330
14330
|
})
|
|
@@ -14335,7 +14335,7 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14335
14335
|
})
|
|
14336
14336
|
}), dy = hc(null), fy = ({ children: e, fullScreen: t = !0 }) => {
|
|
14337
14337
|
let n = q(null), [r, i] = J(n.current);
|
|
14338
|
-
return
|
|
14338
|
+
return un(() => {
|
|
14339
14339
|
i(n.current);
|
|
14340
14340
|
}, []), /* @__PURE__ */ X(dy.Provider, {
|
|
14341
14341
|
value: { element: r },
|
|
@@ -14361,7 +14361,7 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14361
14361
|
renderDataTestIdAttribute: d,
|
|
14362
14362
|
children: /* @__PURE__ */ X(fy, {
|
|
14363
14363
|
...t,
|
|
14364
|
-
children: /* @__PURE__ */ X(
|
|
14364
|
+
children: /* @__PURE__ */ X(ca, {
|
|
14365
14365
|
handler: l,
|
|
14366
14366
|
children: /* @__PURE__ */ X(Mr, { children: /* @__PURE__ */ X(ct, {
|
|
14367
14367
|
...p,
|
|
@@ -14380,4 +14380,4 @@ var Vv = H("group/toast pointer-events-auto absolute bottom-0 left-0 right-0 fle
|
|
|
14380
14380
|
})
|
|
14381
14381
|
});
|
|
14382
14382
|
//#endregion
|
|
14383
|
-
export { Gr as AiChatTranslationsProvider,
|
|
14383
|
+
export { Gr as AiChatTranslationsProvider, yt as AreaChart, nc as Await, Ut as BarChart, ql as BarChartSkeleton, de as CardSelectableContainer, qe as CategoryBarChart, Zi as ChatSpinner, Ro as Chip, ri as CollapsibleGroup, $e as ComboChart, st as DATA_COLLECTION_URL_PARAMS, rt as DATA_COLLECTION_URL_PARAM_PREFIX, Ol as Dashboard, We as DataChartEmptyStateView, Fn as DataTestIdWrapper, Ue as DndProvider, Ia as DropOverlay, Rn as EmojiImage, Id as F0Accordion, Bt as F0ActionBar, Yi as F0ActionItem, la as F0AiChat, Kr as F0AiChatCreditsButton, ei as F0AiChatHeader, Zr as F0AiChatHistory, Ti as F0AiChatProvider, Nr as F0AiChatTextArea, Fr as F0AiChatUsageLimitsButton, Hr as F0AiFileAttachments, Ma as F0AiFilePreviewsProvider, ki as F0AiFormRegistryProvider, ti as F0AiInsightCard, Ur as F0AiMask, qr as F0AiMessageSources, Ar as F0AiMessagesContainer, Ba as F0AiPong, si as F0AiProcessingOverlay, Jr as F0AiProposalCard, ci as F0AiTableCard, fe as F0Alert, H_ as F0AnalyticsDashboard, kd as F0AudioPlayer, Ad as F0AudioPlayerCard, Yr as F0AuraVoiceAnimation, Po as F0Avatar, Pa as F0AvatarAlert, Do as F0AvatarCompany, Ka as F0AvatarDate, bo as F0AvatarEmoji, ho as F0AvatarFile, mo as F0AvatarIcon, Oo as F0AvatarList, go as F0AvatarModule, xo as F0AvatarPerson, No as F0AvatarTeam, lu as F0BigNumber, Mh as F0BookAMeetingCard, Er as F0Box, R as F0Button, Vi as F0ButtonDropdown, $s as F0ButtonToggle, $r as F0CanvasCard, to as F0CanvasPanel, Oi as F0Card, Ki as F0CardRow, yi as F0ChatComposer, vs as F0Checkbox, Bd as F0ChipList, li as F0ClarifyingPanel, Nt as F0DataChart, s as F0DatePicker, nn as F0DatePickerInline, Oh as F0DemoCard, $a as F0Dialog, ce as F0DialogAlikeContext, _ as F0DialogAlikeProvider, Yo as F0DialogContext, Vs as F0DialogProvider, dc as F0DocumentViewer, Jd as F0Drawer, ae as F0DurationInput, Zs as F0EventCatcherProvider, Ah as F0FAQCard, Va as F0FileItem, Zd as F0FilterPickerContent, ve as F0Form, ff as F0FormField, vl as F0GridStack, Xr as F0HILActionConfirmation, Jt as F0Heading, z as F0Icon, ji as F0Link, jh as F0ModuleCard, $t as F0NotesTextEditor, ze as F0NotesTextEditorSkeleton, h as F0NumberInput, ye as F0NumberInputInline, wi as F0OneIcon, Wa as F0OneSwitch, uc as F0PdfViewer, hy as F0Provider, Nh as F0QuestionCardMultiStep, Ja as F0RichTextDisplay, dt as F0RichTextEditor, Ps as F0SearchInput, Ks as F0Select, i as F0SelectInline, $f as F0Slider, pp as F0TableOfContentPopover, rs as F0TagAlert, Wo as F0TagBalance, os as F0TagCompany, ns as F0TagDot, Bs as F0TagList, es as F0TagPerson, ks as F0TagRaw, zo as F0TagStatus, Os as F0TagTeam, Or as F0Text, d as F0TextAreaInput, ge as F0TextAreaInputInline, Ya as F0TextInput, Zt as F0TextInputInline, u as F0TimelineRow, cc as F0VideoPlayer, Ff as F0WizardForm, ws as F1SearchBox, ne as FILE_TYPES, vi as FileItem, Mr as FormCardValueFormatterProvider, eu as FunnelChartSkeleton, Co as GROUP_ID_SYMBOL, Mo as GROUP_KEY_SEPARATOR, ru as GaugeChartSkeleton, iu as HeatmapChartSkeleton, Wl as HomeLayout, Qe as InlineFieldRow, Ot as InlineFieldRowList, Bi as Input, Vl as Layout, kt as LineChart, Xl as LineChartSkeleton, Ie as MAX_URL_FILTER_VALUES, Xt as NotesTextEditor, he as NotesTextEditorSkeleton, p as NumberInput, Ss as OneCalendar, ps as OneCalendarInternal, Qn as OneEllipsis, ue as OneEmptyState, Hs as OneFilterPicker, xt as PieChart, tu as PieChartSkeleton, gi as PongBall, x as PrivacyModeProvider, hh as ProductBlankslate, et as ProductCard, vh as ProductModal, bh as ProductWidget, ot as ProgressBarChart, nt as RadarChart, nu as RadarChartSkeleton, Ua as RichTextDisplay, P as RichTextEditor, Ql as ScatterChartSkeleton, Hl as StandardLayout, zm as SurveyAllQuestionsLoadingSkeleton, oh as SurveyAnsweringForm, jm as SurveyFormBuilder, lh as SurveySampleQuestion, Bm as SurveySteppedLoadingSkeleton, js as Tag, Is as TagCounter, Yt as Textarea, oi as ThreadItem, Wr as ThreadListSkeleton, ly as ToastProvider, Ul as TwoColumnLayout, se as UPLOAD_INPUT_ID, D as UpsellRequestResponseDialog, Ch as UpsellingAlert, Th as UpsellingBanner, y as UpsellingButton, Dh as UpsellingPopover, Fe as VerticalBarChart, gs as WeekStartDay, Ct as actionBarStatuses, pi as actionItemStatuses, na as adaptDataAdapterToInfiniteScroll, kr as aiChatFileFromShowFilesItem, Qr as aiChatFileFromUploadedFile, Ir as aiChatFilesFromMessage, Lr as aiChatMessageText, Vr as aiTranslations, Ud as alertVariantOptions, pu as audioPlayerSizes, Gl as avatarVariants, qt as buildDataCollectionUrlParams, Bn as buildTranslations, fu as buttonDropdownModes, du as buttonDropdownSizes, uu as buttonDropdownVariants, wl as buttonSizes, ke as buttonToggleColors, De as buttonToggleSizes, je as buttonToggleVariants, Cl as buttonVariants, Ld as cardAlertVariants, Wi as cardImageAspectRatios, sa as cardImageFits, uo as cardImageSizes, Lo as chartColorTokens, Qs as chipVariants, _p as computeSectionEndIds, lc as configurePdfWorker, ii as contentTypes, vt as createAtlaskitDriver, cs as createDataSourceDefinition, tf as createF0FormDefinitionTester, ef as createF0FormTester, xl as createPageLayoutBlock, Sl as createPageLayoutBlockGroup, Pr as createPersonMentionSource, Wd as dataCollectionLocalStorageHandler, Vd as datePickerInlineDismissReasons, Hd as datepickerSizes, po as defaultTranslations, zi as defineAvailableForm, Qd as describeFormSchema, S as dialog, S as dialogs, ee as drawers, no as durationInputSizes, Ga as durationUnits, Pe as evaluateRenderIf, Kn as experimental, za as f0FileItemSizes, Ni as f0FormField, ra as fieldsToSeconds, mp as flattenElements, hu as formatPlaybackTime, Vf as forms, at as generateAnchorId, ls as getAnimationVariants, oo as getDataCollectionStorageKey, us as getDataSourcePaginationType, on as getEmojiLabel, Ui as getF0Config, Ys as getGranularityDefinition, bs as getGranularityDefinitions, ec as getGranularitySimpleDefinition, Kt as getSchemaDefinition, qs as granularityDefinitions, Za as hasF0Config, Hi as inferFieldType, gp as injectSectionEnds, ko as isInfiniteScrollPagination, jo as isPageBasedPagination, Sa as isZodType, jd as linkVariants, zr as markdownRenderers, io as mergeDataCollectionFilters, _o as modules, Br as oneIconSizes, tn as parseDataCollectionUrlParams, Hf as pdfScales, O as predefinedPresets, Gs as rangeSeparator, so as readDataCollectionStorage, hp as reconstructElements, Oa as resolveDataCollectionFilters, Ls as resolveGranularityDefinition, At as resolveItemNeighbors, b as resolveWindowNeighbors, mi as secondsToFields, ja as secondsToVisibleFields, Uf as selectInlineDismissReasons, xe as selectSizes, C as selectVariants, Ve as setDataCollectionUrlParams, Wf as sliderTooltipModes, Qt as syncDataCollectionUrlParams, tp as tagDotColors, ep as timelineRowStatuses, Pt as toasts, Ca as unwrapZodSchema, ni as usageLimitsPopoverSides, oa as useAiChat, di as useAiChatTranslations, Xe as useAudioPlayer, fi as useCanvasEntity, ai as useChatHistory, Eo as useData, Go as useDataSource, we as useDataSourceItemNavigation, Su as useDerivedTranscription, Le as useDndEvents, wt as useDraggable, Ft as useDroppableList, Ln as useEmojiConfetti, Gi as useF0AiFormRegistry, Jo as useF0Dialog, T as useF0DialogAlikeContext, Ke as useF0Form, zt as useF0FormDefinition, jr as useFormCardValueFormatter, my as useFormComponent, Ko as useGroups, U_ as useIsDesktop, W_ as useIsMobile, A as useItemNeighbors, j as usePrivacyMode, mn as useReducedMotion, en as useSchemaDefinition, Io as useSelectable, Rr as useSetFormCardValueFormatter, ui as useToolCallId, Dn as useXRay, L as withDataTestId, _e as writeDataCollectionStorage };
|