@factorialco/f0-react 1.418.0 → 1.418.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.d.ts +5 -5
- package/dist/experimental.d.ts +5 -5
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +476 -468
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { O as To, P as ye, Q as mt, K as Z, L as Lt, R as Gn, T as Oo, U as hi, W as ra, X as Au, Y as Eo, Z as Pe, u as Ee, _ as Mt, $ as nr, a0 as Fu, a1 as Tu, a2 as Sr, a3 as ft, a4 as Hr, a5 as Ou, a6 as Eu, a7 as Iu, a8 as Vn, a9 as bs, aa as Ru, ab as Pu, ac as Lu, ad as sa, ae as Mu, af as ju, ag as Io, ah as Bu, ai as mi, aj as pi, ak as Kr, al as gi, am as Ro, an as _r, ao as Po, ap as Vu, aq as $u, ar as zu, as as qu, at as Zu, au as Wu, M as ze, av as Uu, aw as Qu, ax as vi, ay as ia, az as Gu, aA as Hu, aB as Ku, aC as Lo, aD as Xu, aE as Yu, aF as bi, aG as yi, aH as Mo, aI as Xr, aJ as Ju, aK as ed, aL as rr, aM as td, aN as vn, aO as jo, aP as nd, aQ as xi, aR as Bo, N as Hn, aS as rd, aT as qs, aU as Vo, aV as sd, aW as $o, aX as yn, aY as id, aZ as ad, a_ as od, a$ as ld, j as cd, b0 as ud, b1 as zo, b2 as qo, b3 as Zo, b4 as Wo, b5 as Cr, b6 as Uo, b7 as wi, b8 as Si, b9 as dd, ba as fd, bb as hd, bc as md, bd as ys, be as Qo, bf as pd, bg as kr, bh as Nr, bi as Ht, bj as aa, bk as oa, bl as Go, bm as la, bn as ca, bo as Yr, bp as Ho, bq as _i, br as Ci, bs as gd, bt as vd, bu as bd, bv as yd, bw as xd, bx as Ko, by as wd, bz as Sd, bA as _d, bB as Cd, bC as kd, bD as Nd, bE as Xo, bF as Dd, bG as Ad, bH as Fd, bI as Yo, bJ as Td, bK as Od, bL as Ed, bM as Id, I as Rd, bN as Pd, bO as Ld, bP as Md, bQ as jd, bR as Bd, bS as Vd } from "./registry-QvKnuacs.js";
|
|
2
|
-
import { ce as
|
|
2
|
+
import { ce as R0, i as P0, cq as L0, cy as M0, h as j0, F as B0, a as V0, C as $0, b as z0, bT as q0, bU as Z0, bV as W0, bW as U0, bY as Q0, bZ as G0, b_ as H0, b$ as K0, c3 as X0, c4 as Y0, cu as J0, k as ew, c7 as tw, c8 as nw, c9 as rw, ca as sw, cc as iw, cd as aw, cf as ow, c6 as lw, cb as cw, cv as uw, c0 as dw, c1 as fw, c2 as hw, cp as mw, ck as pw, cn as gw, g as vw, cj as bw, cz as yw, ci as xw, ch as ww, bX as Sw, c as _w, cg as Cw, cl as kw, d as Nw, cr as Dw, cs as Aw, ct as Fw, cA as Tw, c5 as Ow, cm as Ew, f as Iw, e as Rw, cx as Pw, co as Lw, cw as Mw } from "./registry-QvKnuacs.js";
|
|
3
3
|
import { jsx as c, jsxs as E, Fragment as yt } from "react/jsx-runtime";
|
|
4
4
|
import * as xt from "react";
|
|
5
5
|
import Q, { forwardRef as st, useRef as W, useImperativeHandle as $d, Children as Dr, useCallback as P, useMemo as B, useState as ee, useEffect as le, createElement as dr, isValidElement as Jo, Fragment as el, useLayoutEffect as zd, createContext as Ft, memo as tl, useReducer as qd, useContext as nt, cloneElement as Zd, PureComponent as Wd, useId as ki } from "react";
|
|
6
6
|
import { unstable_batchedUpdates as fr, createPortal as Ud, flushSync as Qd } from "react-dom";
|
|
7
7
|
import { C as Gd, S as ua, a as Hd, f as xs, L as Rn, b as Kd, A as Xd, i as hr, c as nl, E as Yd, g as br, d as Jd, e as ef, h as tf, j as pn, k as rl, u as nf, G as rf, l as sf, m as da, r as af, n as of, o as sl, p as lf, B as il, X as al, Y as Zs, q as cf, s as ol, t as uf, v as df, w as ff, x as hf, y as mf, z as pf, D as gf, F as vf, H as fa, I as bf, J as yf, K as xf, M as wf, N as Sf, O as _f, P as Cf, Q as kf, V as Nf, R as Ws, T as ll, U as Df, W as Af, Z as Ff, _ as cl, $ as Ni, a0 as Tf, a1 as Of, a2 as Ef, a3 as If, a4 as Rf, a5 as Pf, a6 as Lf } from "./index-uBFHZ597.js";
|
|
8
|
-
import { a7 as
|
|
9
|
-
import { A as
|
|
10
|
-
import { defaultTranslations as
|
|
8
|
+
import { a7 as Bw, aa as Vw, a8 as $w, a9 as zw, ab as qw } from "./index-uBFHZ597.js";
|
|
9
|
+
import { A as Ww, F as Uw, c as Qw, d as Gw, b as Hw, a as Kw, o as Xw, u as Yw } from "./F0HILActionConfirmation-e3fz8fma.js";
|
|
10
|
+
import { defaultTranslations as e1 } from "./i18n-provider-defaults.js";
|
|
11
11
|
const Mf = {
|
|
12
12
|
xs: 1,
|
|
13
13
|
sm: 2,
|
|
@@ -494,7 +494,7 @@ const Pn = Lt({
|
|
|
494
494
|
Di.displayName = "Text";
|
|
495
495
|
const hl = st((e, t) => /* @__PURE__ */ c(Di, { ref: t, markdown: e.markdown ?? !0, ...e }));
|
|
496
496
|
hl.displayName = "F0Text";
|
|
497
|
-
const Kf = ye(hl),
|
|
497
|
+
const Kf = ye(hl), jx = [
|
|
498
498
|
"person",
|
|
499
499
|
"team",
|
|
500
500
|
"company",
|
|
@@ -675,7 +675,7 @@ const Yf = Eo(ml, Xf), Jf = ({
|
|
|
675
675
|
}
|
|
676
676
|
);
|
|
677
677
|
pl.displayName = "Dashboard";
|
|
678
|
-
const eh = Uf("Dashboard", pl),
|
|
678
|
+
const eh = Uf("Dashboard", pl), Bx = ye(
|
|
679
679
|
ft("Dashboard", eh)
|
|
680
680
|
), th = Lt({
|
|
681
681
|
base: "flex w-full flex-col p-4",
|
|
@@ -4120,7 +4120,7 @@ const np = st(function({ children: t, aside: n, header: r, variant: s = "main-as
|
|
|
4120
4120
|
]
|
|
4121
4121
|
}
|
|
4122
4122
|
) });
|
|
4123
|
-
}),
|
|
4123
|
+
}), Vx = {
|
|
4124
4124
|
Page: ye(ft("Page", np)),
|
|
4125
4125
|
Block: ye(ft("Block", es)),
|
|
4126
4126
|
BlockContent: ye(
|
|
@@ -4133,7 +4133,7 @@ const np = st(function({ children: t, aside: n, header: r, variant: s = "main-as
|
|
|
4133
4133
|
GroupMasonry: ye(
|
|
4134
4134
|
ft("GroupMasonry", Mi)
|
|
4135
4135
|
)
|
|
4136
|
-
},
|
|
4136
|
+
}, $x = Vf, zx = zf, qx = ye(
|
|
4137
4137
|
mt(
|
|
4138
4138
|
{
|
|
4139
4139
|
name: "HomeLayout",
|
|
@@ -4914,27 +4914,27 @@ const Cp = (e) => {
|
|
|
4914
4914
|
) }),
|
|
4915
4915
|
n && /* @__PURE__ */ c("div", { className: "flex-shrink-0 text-sm font-medium", children: n })
|
|
4916
4916
|
] });
|
|
4917
|
-
}, Ap = ol(Dp),
|
|
4917
|
+
}, Ap = ol(Dp), Zx = ye(
|
|
4918
4918
|
mt({ name: "AreaChart", type: "info" }, wf)
|
|
4919
|
-
), Zx = ye(
|
|
4920
|
-
mt({ name: "BarChart", type: "info" }, Sf)
|
|
4921
4919
|
), Wx = ye(
|
|
4920
|
+
mt({ name: "BarChart", type: "info" }, Sf)
|
|
4921
|
+
), Ux = ye(
|
|
4922
4922
|
mt(
|
|
4923
4923
|
{ name: "CategoryBarChart", type: "info" },
|
|
4924
4924
|
_f
|
|
4925
4925
|
)
|
|
4926
|
-
), Ux = ye(
|
|
4927
|
-
mt({ name: "LineChart", type: "info" }, Cf)
|
|
4928
4926
|
), Qx = ye(
|
|
4929
|
-
mt({ name: "
|
|
4927
|
+
mt({ name: "LineChart", type: "info" }, Cf)
|
|
4930
4928
|
), Gx = ye(
|
|
4929
|
+
mt({ name: "PieChart", type: "info" }, kf)
|
|
4930
|
+
), Hx = ye(
|
|
4931
4931
|
mt(
|
|
4932
4932
|
{ name: "VerticalBarChart", type: "info" },
|
|
4933
4933
|
Nf
|
|
4934
4934
|
)
|
|
4935
|
-
), Hx = ye(
|
|
4936
|
-
mt({ name: "ProgressBarChart", type: "info" }, Ap)
|
|
4937
4935
|
), Kx = ye(
|
|
4936
|
+
mt({ name: "ProgressBarChart", type: "info" }, Ap)
|
|
4937
|
+
), Xx = ye(
|
|
4938
4938
|
mt({ name: "ComboChart", type: "info" }, Np)
|
|
4939
4939
|
), Fp = (e) => typeof e == "boolean" || !e ? {
|
|
4940
4940
|
show: !!e,
|
|
@@ -4977,7 +4977,7 @@ const Cp = (e) => {
|
|
|
4977
4977
|
] })
|
|
4978
4978
|
] });
|
|
4979
4979
|
Ql.displayName = "F0BigNumber";
|
|
4980
|
-
const Op = Eo(Ql, Tp),
|
|
4980
|
+
const Op = Eo(Ql, Tp), Yx = ye(
|
|
4981
4981
|
ft("F0BigNumber", Op)
|
|
4982
4982
|
), Gl = {
|
|
4983
4983
|
background: {
|
|
@@ -5994,9 +5994,9 @@ const Hp = mt(
|
|
|
5994
5994
|
type: "layout"
|
|
5995
5995
|
},
|
|
5996
5996
|
sc
|
|
5997
|
-
),
|
|
5997
|
+
), Jx = ju.filter(
|
|
5998
5998
|
(e) => e !== "ai"
|
|
5999
|
-
),
|
|
5999
|
+
), e0 = Io, t0 = ["default", "outline", "neutral"], n0 = Io, r0 = ["split", "dropdown"], s0 = ["sm", "md", "lg"], i0 = ["compact", "expanded"], a0 = Bu, o0 = [
|
|
6000
6000
|
"viridian",
|
|
6001
6001
|
"malibu",
|
|
6002
6002
|
"yellow",
|
|
@@ -6077,9 +6077,9 @@ const ic = ({
|
|
|
6077
6077
|
] });
|
|
6078
6078
|
};
|
|
6079
6079
|
ic.displayName = "F0ChipList";
|
|
6080
|
-
const
|
|
6080
|
+
const l0 = ye(
|
|
6081
6081
|
ft("F0ChipList", ic)
|
|
6082
|
-
),
|
|
6082
|
+
), c0 = $u, Kp = Lt({
|
|
6083
6083
|
base: "w-full rounded-md p-2 pr-3 text-f1-foreground",
|
|
6084
6084
|
variants: {
|
|
6085
6085
|
variant: {
|
|
@@ -6163,13 +6163,13 @@ const o0 = ye(
|
|
|
6163
6163
|
]
|
|
6164
6164
|
}
|
|
6165
6165
|
) }) });
|
|
6166
|
-
},
|
|
6166
|
+
}, u0 = ye(Yp), Jp = ["days", "hours", "minutes", "seconds"], d0 = ["sm", "md"], Lr = [...Jp], Oa = ["hours", "minutes"], $t = {
|
|
6167
6167
|
days: 86400,
|
|
6168
6168
|
hours: 3600,
|
|
6169
6169
|
minutes: 60,
|
|
6170
6170
|
seconds: 1
|
|
6171
6171
|
};
|
|
6172
|
-
function
|
|
6172
|
+
function f0(e) {
|
|
6173
6173
|
const t = Number.isFinite(e) ? e : 0;
|
|
6174
6174
|
let n = Math.max(0, Math.floor(t));
|
|
6175
6175
|
const r = Math.floor(n / $t.days);
|
|
@@ -6530,7 +6530,7 @@ function oc({
|
|
|
6530
6530
|
) });
|
|
6531
6531
|
}
|
|
6532
6532
|
oc.displayName = "F0FilterPickerContent";
|
|
6533
|
-
const
|
|
6533
|
+
const h0 = oc;
|
|
6534
6534
|
var cr = (e) => e.type === "checkbox", ln = (e) => e instanceof Date, tt = (e) => e == null;
|
|
6535
6535
|
const lc = (e) => typeof e == "object";
|
|
6536
6536
|
var je = (e) => !tt(e) && !Array.isArray(e) && lc(e) && !ln(e), cc = (e) => je(e) && e.target ? cr(e.target) ? e.target.checked : e.target.value : e, og = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, uc = (e, t) => e.has(og(t)), lg = (e) => {
|
|
@@ -10473,7 +10473,7 @@ function an(e) {
|
|
|
10473
10473
|
const t = e;
|
|
10474
10474
|
return t._f0Config ? t._f0Config : Lc.get(e);
|
|
10475
10475
|
}
|
|
10476
|
-
function
|
|
10476
|
+
function m0(e) {
|
|
10477
10477
|
return an(e) !== void 0;
|
|
10478
10478
|
}
|
|
10479
10479
|
function rt(e) {
|
|
@@ -11707,27 +11707,35 @@ function io(e) {
|
|
|
11707
11707
|
const t = rt(e);
|
|
11708
11708
|
return Oe(t, "ZodString") ? (t._def.checks || []).some((r) => r.kind === "min" ? (r.value ?? 0) >= 1 : Vv.has(r.kind)) : !1;
|
|
11709
11709
|
}
|
|
11710
|
-
|
|
11710
|
+
const $v = /* @__PURE__ */ new Set([
|
|
11711
|
+
"select",
|
|
11712
|
+
"date",
|
|
11713
|
+
"time",
|
|
11714
|
+
"datetime",
|
|
11715
|
+
"daterange",
|
|
11716
|
+
"file"
|
|
11717
|
+
]);
|
|
11718
|
+
function hs(e, t) {
|
|
11711
11719
|
if (ui(e))
|
|
11712
11720
|
return !1;
|
|
11713
|
-
const
|
|
11714
|
-
if (Oe(
|
|
11715
|
-
return io(e);
|
|
11716
|
-
if (Oe(
|
|
11717
|
-
const
|
|
11718
|
-
if (
|
|
11719
|
-
if (ui(
|
|
11721
|
+
const n = rt(e);
|
|
11722
|
+
if (Oe(n, "ZodString"))
|
|
11723
|
+
return t && $v.has(t) ? !0 : io(e);
|
|
11724
|
+
if (Oe(n, "ZodObject")) {
|
|
11725
|
+
const r = n._def.shape();
|
|
11726
|
+
if (r && "value" in r) {
|
|
11727
|
+
if (ui(r.value))
|
|
11720
11728
|
return !1;
|
|
11721
|
-
if (Oe(rt(
|
|
11722
|
-
return io(
|
|
11729
|
+
if (Oe(rt(r.value), "ZodString"))
|
|
11730
|
+
return io(r.value);
|
|
11723
11731
|
}
|
|
11724
11732
|
}
|
|
11725
11733
|
return !0;
|
|
11726
11734
|
}
|
|
11727
|
-
function
|
|
11735
|
+
function zv(e) {
|
|
11728
11736
|
return e != null && typeof e == "object" && "_type" in e && e._type === "select-config";
|
|
11729
11737
|
}
|
|
11730
|
-
function
|
|
11738
|
+
function qv({
|
|
11731
11739
|
field: e,
|
|
11732
11740
|
formField: t,
|
|
11733
11741
|
fieldState: n,
|
|
@@ -11757,7 +11765,7 @@ function zv({
|
|
|
11757
11765
|
config: void 0,
|
|
11758
11766
|
fieldType: e.type
|
|
11759
11767
|
});
|
|
11760
|
-
if (
|
|
11768
|
+
if (zv(l)) {
|
|
11761
11769
|
const u = { ...e, ...l, type: "select" };
|
|
11762
11770
|
return ci({
|
|
11763
11771
|
field: u,
|
|
@@ -11796,7 +11804,7 @@ function ms({ field: e, sectionId: t }) {
|
|
|
11796
11804
|
n.setValue(e.id, p, { shouldValidate: !1 });
|
|
11797
11805
|
}
|
|
11798
11806
|
}, [u, e.resetOnDisable, e.id, n]);
|
|
11799
|
-
const f = !e.renderIf || ds(e.renderIf, r), m = e.type !== "checkbox" && e.type !== "custom", h = e.type !== "custom", y = e.validation && hs(e.validation), S = un(i, t, e.id);
|
|
11807
|
+
const f = !e.renderIf || ds(e.renderIf, r), m = e.type !== "checkbox" && e.type !== "custom", h = e.type !== "custom", y = e.validation && hs(e.validation, e.type), S = un(i, t, e.id);
|
|
11800
11808
|
return f ? /* @__PURE__ */ c(
|
|
11801
11809
|
Js,
|
|
11802
11810
|
{
|
|
@@ -11814,7 +11822,7 @@ function ms({ field: e, sectionId: t }) {
|
|
|
11814
11822
|
]
|
|
11815
11823
|
}
|
|
11816
11824
|
),
|
|
11817
|
-
/* @__PURE__ */ c(Tc, { children:
|
|
11825
|
+
/* @__PURE__ */ c(Tc, { children: qv({
|
|
11818
11826
|
field: e,
|
|
11819
11827
|
formField: g,
|
|
11820
11828
|
fieldState: p,
|
|
@@ -11853,7 +11861,7 @@ function Es(e) {
|
|
|
11853
11861
|
i.kind === "min" ? r = new Date(i.value) : i.kind === "max" && (s = new Date(i.value));
|
|
11854
11862
|
return { minDate: r, maxDate: s };
|
|
11855
11863
|
}
|
|
11856
|
-
function
|
|
11864
|
+
function Zv(e) {
|
|
11857
11865
|
const t = rt(e);
|
|
11858
11866
|
if (!Oe(t, "ZodNumber"))
|
|
11859
11867
|
return {};
|
|
@@ -11863,18 +11871,18 @@ function qv(e) {
|
|
|
11863
11871
|
i.kind === "min" ? r = i.value : i.kind === "max" && (s = i.value);
|
|
11864
11872
|
return { min: r, max: s };
|
|
11865
11873
|
}
|
|
11866
|
-
function
|
|
11874
|
+
function Wv(e) {
|
|
11867
11875
|
const t = rt(e);
|
|
11868
11876
|
return Oe(t, "ZodString") ? (t._def.checks || []).some((r) => r.kind === "email") : !1;
|
|
11869
11877
|
}
|
|
11870
|
-
function
|
|
11878
|
+
function Uv(e) {
|
|
11871
11879
|
const t = rt(e);
|
|
11872
11880
|
return Oe(t, "ZodString") ? (t._def.checks || []).some((r) => r.kind === "url") : !1;
|
|
11873
11881
|
}
|
|
11874
11882
|
function ao(e) {
|
|
11875
|
-
return
|
|
11883
|
+
return Wv(e) ? "email" : Uv(e) ? "url" : "text";
|
|
11876
11884
|
}
|
|
11877
|
-
function
|
|
11885
|
+
function Qv(e) {
|
|
11878
11886
|
const t = rt(e);
|
|
11879
11887
|
if (!Oe(t, "ZodString"))
|
|
11880
11888
|
return {};
|
|
@@ -11895,7 +11903,7 @@ function oo(e, t, n, r) {
|
|
|
11895
11903
|
resetOnDisable: n.resetOnDisable,
|
|
11896
11904
|
customFieldName: "customFieldName" in n ? n.customFieldName : void 0,
|
|
11897
11905
|
validation: t
|
|
11898
|
-
}, i = !hs(t);
|
|
11906
|
+
}, i = !hs(t, r);
|
|
11899
11907
|
switch (r) {
|
|
11900
11908
|
case "text": {
|
|
11901
11909
|
const a = "inputType" in n && n.inputType ? n.inputType : ao(t);
|
|
@@ -11908,7 +11916,7 @@ function oo(e, t, n, r) {
|
|
|
11908
11916
|
};
|
|
11909
11917
|
}
|
|
11910
11918
|
case "number": {
|
|
11911
|
-
const { min: a, max: o } =
|
|
11919
|
+
const { min: a, max: o } = Zv(t);
|
|
11912
11920
|
return {
|
|
11913
11921
|
...s,
|
|
11914
11922
|
type: "number",
|
|
@@ -11931,7 +11939,7 @@ function oo(e, t, n, r) {
|
|
|
11931
11939
|
renderIf: n.renderIf
|
|
11932
11940
|
};
|
|
11933
11941
|
case "textarea": {
|
|
11934
|
-
const { maxLength: a } =
|
|
11942
|
+
const { maxLength: a } = Qv(t);
|
|
11935
11943
|
return {
|
|
11936
11944
|
...s,
|
|
11937
11945
|
type: "textarea",
|
|
@@ -12134,7 +12142,7 @@ function Wc(e, t) {
|
|
|
12134
12142
|
return a;
|
|
12135
12143
|
}, [e, t]);
|
|
12136
12144
|
}
|
|
12137
|
-
function
|
|
12145
|
+
function p0(e, t) {
|
|
12138
12146
|
const n = sn(e), r = Zc(n), s = [], i = {};
|
|
12139
12147
|
for (const l of r) {
|
|
12140
12148
|
const u = l.config.section;
|
|
@@ -12354,12 +12362,12 @@ function Xi({
|
|
|
12354
12362
|
)) })
|
|
12355
12363
|
] });
|
|
12356
12364
|
}
|
|
12357
|
-
const
|
|
12365
|
+
const Gv = {
|
|
12358
12366
|
"on-blur": "onBlur",
|
|
12359
12367
|
"on-change": "onChange",
|
|
12360
12368
|
"on-submit": "onSubmit"
|
|
12361
12369
|
};
|
|
12362
|
-
function
|
|
12370
|
+
function Hv(e) {
|
|
12363
12371
|
const t = {};
|
|
12364
12372
|
function n(r, s) {
|
|
12365
12373
|
for (const [i, a] of Object.entries(r)) {
|
|
@@ -12373,7 +12381,7 @@ function Gv(e) {
|
|
|
12373
12381
|
}
|
|
12374
12382
|
return n(e, ""), t;
|
|
12375
12383
|
}
|
|
12376
|
-
function
|
|
12384
|
+
function Kv(e) {
|
|
12377
12385
|
const t = [];
|
|
12378
12386
|
let n = [];
|
|
12379
12387
|
const r = () => {
|
|
@@ -12398,7 +12406,7 @@ function Qc({
|
|
|
12398
12406
|
renderCustomField: f,
|
|
12399
12407
|
isLoading: m
|
|
12400
12408
|
}) {
|
|
12401
|
-
const h = Ee(), y = Wc(n), S = a?.label ?? "Submit", g = a?.icon === null ? void 0 : a?.icon ?? Bo, p = a?.showSubmitWhenDirty ?? !1, v = a?.hideSubmitButton ?? !1, b = B(() => Uc(h), [h]), k =
|
|
12409
|
+
const h = Ee(), y = Wc(n), S = a?.label ?? "Submit", g = a?.icon === null ? void 0 : a?.icon ?? Bo, p = a?.showSubmitWhenDirty ?? !1, v = a?.hideSubmitButton ?? !1, b = B(() => Uc(h), [h]), k = Gv[o], _ = B(
|
|
12402
12410
|
() => jc(n, { errorMap: b }),
|
|
12403
12411
|
[n, b]
|
|
12404
12412
|
), w = Cc({
|
|
@@ -12460,7 +12468,7 @@ function Qc({
|
|
|
12460
12468
|
me?.shouldValidate !== !1 && w.trigger();
|
|
12461
12469
|
},
|
|
12462
12470
|
trigger: async (te) => te ? w.trigger(te) : w.trigger(),
|
|
12463
|
-
getErrors: () =>
|
|
12471
|
+
getErrors: () => Hv(w.formState.errors),
|
|
12464
12472
|
getFieldNames: () => Object.keys(w.getValues()),
|
|
12465
12473
|
_setStateCallback: (te) => {
|
|
12466
12474
|
T.current = te;
|
|
@@ -12474,7 +12482,7 @@ function Qc({
|
|
|
12474
12482
|
}, [d, w, R]), le(() => {
|
|
12475
12483
|
T.current && T.current({ isSubmitting: D, hasErrors: N });
|
|
12476
12484
|
}, [D, N]);
|
|
12477
|
-
const L =
|
|
12485
|
+
const L = Kv(y), X = B(
|
|
12478
12486
|
() => ({
|
|
12479
12487
|
formName: e,
|
|
12480
12488
|
initialFiles: u,
|
|
@@ -12560,7 +12568,7 @@ function Qc({
|
|
|
12560
12568
|
}
|
|
12561
12569
|
) }) });
|
|
12562
12570
|
}
|
|
12563
|
-
function
|
|
12571
|
+
function Xv(e) {
|
|
12564
12572
|
const t = [];
|
|
12565
12573
|
let n = [];
|
|
12566
12574
|
const r = () => {
|
|
@@ -12570,11 +12578,11 @@ function Kv(e) {
|
|
|
12570
12578
|
s.type === "field" && s.field.type === "switch" ? n.push(s.field) : (r(), s.type === "field" ? t.push({ type: "field", item: s }) : s.type === "row" && t.push({ type: "row", item: s, index: i }));
|
|
12571
12579
|
}), r(), t;
|
|
12572
12580
|
}
|
|
12573
|
-
function
|
|
12581
|
+
function Yv({ section: e }) {
|
|
12574
12582
|
const n = rn().watch(), { formName: r } = Hi(), { title: s, description: i, withInset: a, renderIf: o, action: l, fields: u } = e.section, d = e.id;
|
|
12575
12583
|
if (o && !ds(o, n))
|
|
12576
12584
|
return null;
|
|
12577
|
-
const f =
|
|
12585
|
+
const f = Xv(u), m = un(r, d);
|
|
12578
12586
|
return /* @__PURE__ */ E("section", { id: m, className: "flex scroll-mt-4 flex-col", children: [
|
|
12579
12587
|
/* @__PURE__ */ E(
|
|
12580
12588
|
"div",
|
|
@@ -12624,7 +12632,7 @@ function Xv({ section: e }) {
|
|
|
12624
12632
|
) : null) })
|
|
12625
12633
|
] });
|
|
12626
12634
|
}
|
|
12627
|
-
const
|
|
12635
|
+
const Jv = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use"), eb = {
|
|
12628
12636
|
name: void 0,
|
|
12629
12637
|
$refStrategy: "root",
|
|
12630
12638
|
basePath: ["#"],
|
|
@@ -12647,11 +12655,11 @@ const Yv = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to
|
|
|
12647
12655
|
base64Strategy: "contentEncoding:base64",
|
|
12648
12656
|
nameStrategy: "ref",
|
|
12649
12657
|
openAiAnyTypeName: "OpenAiAnyType"
|
|
12650
|
-
},
|
|
12651
|
-
...
|
|
12658
|
+
}, tb = (e) => ({
|
|
12659
|
+
...eb,
|
|
12652
12660
|
...e
|
|
12653
|
-
}),
|
|
12654
|
-
const t =
|
|
12661
|
+
}), nb = (e) => {
|
|
12662
|
+
const t = tb(e), n = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
|
|
12655
12663
|
return {
|
|
12656
12664
|
...t,
|
|
12657
12665
|
flags: { hasReferencedOpenAiAnyType: !1 },
|
|
@@ -12695,7 +12703,7 @@ function lt(e) {
|
|
|
12695
12703
|
$ref: e.$refStrategy === "relative" ? Hc(t, e.currentPath) : t.join("/")
|
|
12696
12704
|
};
|
|
12697
12705
|
}
|
|
12698
|
-
function
|
|
12706
|
+
function rb(e, t) {
|
|
12699
12707
|
const n = {
|
|
12700
12708
|
type: "array"
|
|
12701
12709
|
};
|
|
@@ -12704,7 +12712,7 @@ function nb(e, t) {
|
|
|
12704
12712
|
currentPath: [...t.currentPath, "items"]
|
|
12705
12713
|
})), e.minLength && Ae(n, "minItems", e.minLength.value, e.minLength.message, t), e.maxLength && Ae(n, "maxItems", e.maxLength.value, e.maxLength.message, t), e.exactLength && (Ae(n, "minItems", e.exactLength.value, e.exactLength.message, t), Ae(n, "maxItems", e.exactLength.value, e.exactLength.message, t)), n;
|
|
12706
12714
|
}
|
|
12707
|
-
function
|
|
12715
|
+
function sb(e, t) {
|
|
12708
12716
|
const n = {
|
|
12709
12717
|
type: "integer",
|
|
12710
12718
|
format: "int64"
|
|
@@ -12725,7 +12733,7 @@ function rb(e, t) {
|
|
|
12725
12733
|
}
|
|
12726
12734
|
return n;
|
|
12727
12735
|
}
|
|
12728
|
-
function
|
|
12736
|
+
function ib() {
|
|
12729
12737
|
return {
|
|
12730
12738
|
type: "boolean"
|
|
12731
12739
|
};
|
|
@@ -12733,7 +12741,7 @@ function sb() {
|
|
|
12733
12741
|
function Kc(e, t) {
|
|
12734
12742
|
return Ce(e.type._def, t);
|
|
12735
12743
|
}
|
|
12736
|
-
const
|
|
12744
|
+
const ab = (e, t) => Ce(e.innerType._def, t);
|
|
12737
12745
|
function Xc(e, t, n) {
|
|
12738
12746
|
const r = n ?? t.dateStrategy;
|
|
12739
12747
|
if (Array.isArray(r))
|
|
@@ -12753,10 +12761,10 @@ function Xc(e, t, n) {
|
|
|
12753
12761
|
format: "date"
|
|
12754
12762
|
};
|
|
12755
12763
|
case "integer":
|
|
12756
|
-
return
|
|
12764
|
+
return ob(e, t);
|
|
12757
12765
|
}
|
|
12758
12766
|
}
|
|
12759
|
-
const
|
|
12767
|
+
const ob = (e, t) => {
|
|
12760
12768
|
const n = {
|
|
12761
12769
|
type: "integer",
|
|
12762
12770
|
format: "unix-time"
|
|
@@ -12788,23 +12796,23 @@ const ab = (e, t) => {
|
|
|
12788
12796
|
}
|
|
12789
12797
|
return n;
|
|
12790
12798
|
};
|
|
12791
|
-
function
|
|
12799
|
+
function lb(e, t) {
|
|
12792
12800
|
return {
|
|
12793
12801
|
...Ce(e.innerType._def, t),
|
|
12794
12802
|
default: e.defaultValue()
|
|
12795
12803
|
};
|
|
12796
12804
|
}
|
|
12797
|
-
function
|
|
12805
|
+
function cb(e, t) {
|
|
12798
12806
|
return t.effectStrategy === "input" ? Ce(e.schema._def, t) : lt(t);
|
|
12799
12807
|
}
|
|
12800
|
-
function
|
|
12808
|
+
function ub(e) {
|
|
12801
12809
|
return {
|
|
12802
12810
|
type: "string",
|
|
12803
12811
|
enum: Array.from(e.values)
|
|
12804
12812
|
};
|
|
12805
12813
|
}
|
|
12806
|
-
const
|
|
12807
|
-
function
|
|
12814
|
+
const db = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
|
|
12815
|
+
function fb(e, t) {
|
|
12808
12816
|
const n = [
|
|
12809
12817
|
Ce(e.left._def, {
|
|
12810
12818
|
...t,
|
|
@@ -12818,7 +12826,7 @@ function db(e, t) {
|
|
|
12818
12826
|
let r = t.target === "jsonSchema2019-09" ? { unevaluatedProperties: !1 } : void 0;
|
|
12819
12827
|
const s = [];
|
|
12820
12828
|
return n.forEach((i) => {
|
|
12821
|
-
if (
|
|
12829
|
+
if (db(i))
|
|
12822
12830
|
s.push(...i.allOf), i.unevaluatedProperties === void 0 && (r = void 0);
|
|
12823
12831
|
else {
|
|
12824
12832
|
let a = i;
|
|
@@ -12834,7 +12842,7 @@ function db(e, t) {
|
|
|
12834
12842
|
...r
|
|
12835
12843
|
} : void 0;
|
|
12836
12844
|
}
|
|
12837
|
-
function
|
|
12845
|
+
function hb(e, t) {
|
|
12838
12846
|
const n = typeof e.value;
|
|
12839
12847
|
return n !== "bigint" && n !== "number" && n !== "boolean" && n !== "string" ? {
|
|
12840
12848
|
type: Array.isArray(e.value) ? "array" : "object"
|
|
@@ -12999,13 +13007,13 @@ function Yc(e, t) {
|
|
|
12999
13007
|
return n;
|
|
13000
13008
|
}
|
|
13001
13009
|
function Rs(e, t) {
|
|
13002
|
-
return t.patternStrategy === "escape" ?
|
|
13010
|
+
return t.patternStrategy === "escape" ? pb(e) : e;
|
|
13003
13011
|
}
|
|
13004
|
-
const
|
|
13005
|
-
function
|
|
13012
|
+
const mb = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
|
|
13013
|
+
function pb(e) {
|
|
13006
13014
|
let t = "";
|
|
13007
13015
|
for (let n = 0; n < e.length; n++)
|
|
13008
|
-
|
|
13016
|
+
mb.has(e[n]) || (t += "\\"), t += e[n];
|
|
13009
13017
|
return t;
|
|
13010
13018
|
}
|
|
13011
13019
|
function _t(e, t, n, r) {
|
|
@@ -13129,7 +13137,7 @@ function Jc(e, t) {
|
|
|
13129
13137
|
}
|
|
13130
13138
|
return n;
|
|
13131
13139
|
}
|
|
13132
|
-
function
|
|
13140
|
+
function gb(e, t) {
|
|
13133
13141
|
if (t.mapStrategy === "record")
|
|
13134
13142
|
return Jc(e, t);
|
|
13135
13143
|
const n = Ce(e.keyType._def, {
|
|
@@ -13150,14 +13158,14 @@ function pb(e, t) {
|
|
|
13150
13158
|
}
|
|
13151
13159
|
};
|
|
13152
13160
|
}
|
|
13153
|
-
function
|
|
13161
|
+
function vb(e) {
|
|
13154
13162
|
const t = e.values, r = Object.keys(e.values).filter((i) => typeof t[t[i]] != "number").map((i) => t[i]), s = Array.from(new Set(r.map((i) => typeof i)));
|
|
13155
13163
|
return {
|
|
13156
13164
|
type: s.length === 1 ? s[0] === "string" ? "string" : "number" : ["string", "number"],
|
|
13157
13165
|
enum: r
|
|
13158
13166
|
};
|
|
13159
13167
|
}
|
|
13160
|
-
function
|
|
13168
|
+
function bb(e) {
|
|
13161
13169
|
return e.target === "openAi" ? void 0 : {
|
|
13162
13170
|
not: lt({
|
|
13163
13171
|
...e,
|
|
@@ -13165,7 +13173,7 @@ function vb(e) {
|
|
|
13165
13173
|
})
|
|
13166
13174
|
};
|
|
13167
13175
|
}
|
|
13168
|
-
function
|
|
13176
|
+
function yb(e) {
|
|
13169
13177
|
return e.target === "openApi3" ? {
|
|
13170
13178
|
enum: ["null"],
|
|
13171
13179
|
nullable: !0
|
|
@@ -13180,7 +13188,7 @@ const Qr = {
|
|
|
13180
13188
|
ZodBoolean: "boolean",
|
|
13181
13189
|
ZodNull: "null"
|
|
13182
13190
|
};
|
|
13183
|
-
function
|
|
13191
|
+
function xb(e, t) {
|
|
13184
13192
|
if (t.target === "openApi3")
|
|
13185
13193
|
return uo(e, t);
|
|
13186
13194
|
const n = e.options instanceof Map ? Array.from(e.options.values()) : e.options;
|
|
@@ -13233,7 +13241,7 @@ const uo = (e, t) => {
|
|
|
13233
13241
|
})).filter((r) => !!r && (!t.strictUnions || typeof r == "object" && Object.keys(r).length > 0));
|
|
13234
13242
|
return n.length ? { anyOf: n } : void 0;
|
|
13235
13243
|
};
|
|
13236
|
-
function
|
|
13244
|
+
function wb(e, t) {
|
|
13237
13245
|
if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(e.innerType._def.typeName) && (!e.innerType._def.checks || !e.innerType._def.checks.length))
|
|
13238
13246
|
return t.target === "openApi3" ? {
|
|
13239
13247
|
type: Qr[e.innerType._def.typeName],
|
|
@@ -13257,7 +13265,7 @@ function xb(e, t) {
|
|
|
13257
13265
|
});
|
|
13258
13266
|
return n && { anyOf: [n, { type: "null" }] };
|
|
13259
13267
|
}
|
|
13260
|
-
function
|
|
13268
|
+
function Sb(e, t) {
|
|
13261
13269
|
const n = {
|
|
13262
13270
|
type: "number"
|
|
13263
13271
|
};
|
|
@@ -13280,7 +13288,7 @@ function wb(e, t) {
|
|
|
13280
13288
|
}
|
|
13281
13289
|
return n;
|
|
13282
13290
|
}
|
|
13283
|
-
function
|
|
13291
|
+
function _b(e, t) {
|
|
13284
13292
|
const n = t.target === "openAi", r = {
|
|
13285
13293
|
type: "object",
|
|
13286
13294
|
properties: {}
|
|
@@ -13289,7 +13297,7 @@ function Sb(e, t) {
|
|
|
13289
13297
|
let l = i[o];
|
|
13290
13298
|
if (l === void 0 || l._def === void 0)
|
|
13291
13299
|
continue;
|
|
13292
|
-
let u =
|
|
13300
|
+
let u = kb(l);
|
|
13293
13301
|
u && n && (l._def.typeName === "ZodOptional" && (l = l._def.innerType), l.isNullable() || (l = l.nullable()), u = !1);
|
|
13294
13302
|
const d = Ce(l._def, {
|
|
13295
13303
|
...t,
|
|
@@ -13299,10 +13307,10 @@ function Sb(e, t) {
|
|
|
13299
13307
|
d !== void 0 && (r.properties[o] = d, u || s.push(o));
|
|
13300
13308
|
}
|
|
13301
13309
|
s.length && (r.required = s);
|
|
13302
|
-
const a =
|
|
13310
|
+
const a = Cb(e, t);
|
|
13303
13311
|
return a !== void 0 && (r.additionalProperties = a), r;
|
|
13304
13312
|
}
|
|
13305
|
-
function
|
|
13313
|
+
function Cb(e, t) {
|
|
13306
13314
|
if (e.catchall._def.typeName !== "ZodNever")
|
|
13307
13315
|
return Ce(e.catchall._def, {
|
|
13308
13316
|
...t,
|
|
@@ -13317,14 +13325,14 @@ function _b(e, t) {
|
|
|
13317
13325
|
return t.removeAdditionalStrategy === "strict" ? t.allowedAdditionalProperties : t.rejectedAdditionalProperties;
|
|
13318
13326
|
}
|
|
13319
13327
|
}
|
|
13320
|
-
function
|
|
13328
|
+
function kb(e) {
|
|
13321
13329
|
try {
|
|
13322
13330
|
return e.isOptional();
|
|
13323
13331
|
} catch {
|
|
13324
13332
|
return !0;
|
|
13325
13333
|
}
|
|
13326
13334
|
}
|
|
13327
|
-
const
|
|
13335
|
+
const Nb = (e, t) => {
|
|
13328
13336
|
if (t.currentPath.toString() === t.propertyPath?.toString())
|
|
13329
13337
|
return Ce(e.innerType._def, t);
|
|
13330
13338
|
const n = Ce(e.innerType._def, {
|
|
@@ -13339,7 +13347,7 @@ const kb = (e, t) => {
|
|
|
13339
13347
|
n
|
|
13340
13348
|
]
|
|
13341
13349
|
} : lt(t);
|
|
13342
|
-
},
|
|
13350
|
+
}, Db = (e, t) => {
|
|
13343
13351
|
if (t.pipeStrategy === "input")
|
|
13344
13352
|
return Ce(e.in._def, t);
|
|
13345
13353
|
if (t.pipeStrategy === "output")
|
|
@@ -13355,10 +13363,10 @@ const kb = (e, t) => {
|
|
|
13355
13363
|
allOf: [n, r].filter((s) => s !== void 0)
|
|
13356
13364
|
};
|
|
13357
13365
|
};
|
|
13358
|
-
function
|
|
13366
|
+
function Ab(e, t) {
|
|
13359
13367
|
return Ce(e.type._def, t);
|
|
13360
13368
|
}
|
|
13361
|
-
function
|
|
13369
|
+
function Fb(e, t) {
|
|
13362
13370
|
const r = {
|
|
13363
13371
|
type: "array",
|
|
13364
13372
|
uniqueItems: !0,
|
|
@@ -13369,7 +13377,7 @@ function Ab(e, t) {
|
|
|
13369
13377
|
};
|
|
13370
13378
|
return e.minSize && Ae(r, "minItems", e.minSize.value, e.minSize.message, t), e.maxSize && Ae(r, "maxItems", e.maxSize.value, e.maxSize.message, t), r;
|
|
13371
13379
|
}
|
|
13372
|
-
function
|
|
13380
|
+
function Tb(e, t) {
|
|
13373
13381
|
return e.rest ? {
|
|
13374
13382
|
type: "array",
|
|
13375
13383
|
minItems: e.items.length,
|
|
@@ -13391,80 +13399,80 @@ function Fb(e, t) {
|
|
|
13391
13399
|
})).reduce((n, r) => r === void 0 ? n : [...n, r], [])
|
|
13392
13400
|
};
|
|
13393
13401
|
}
|
|
13394
|
-
function
|
|
13402
|
+
function Ob(e) {
|
|
13395
13403
|
return {
|
|
13396
13404
|
not: lt(e)
|
|
13397
13405
|
};
|
|
13398
13406
|
}
|
|
13399
|
-
function
|
|
13407
|
+
function Eb(e) {
|
|
13400
13408
|
return lt(e);
|
|
13401
13409
|
}
|
|
13402
|
-
const
|
|
13410
|
+
const Ib = (e, t) => Ce(e.innerType._def, t), Rb = (e, t, n) => {
|
|
13403
13411
|
switch (t) {
|
|
13404
13412
|
case q.ZodString:
|
|
13405
13413
|
return Yc(e, n);
|
|
13406
13414
|
case q.ZodNumber:
|
|
13407
|
-
return wb(e, n);
|
|
13408
|
-
case q.ZodObject:
|
|
13409
13415
|
return Sb(e, n);
|
|
13416
|
+
case q.ZodObject:
|
|
13417
|
+
return _b(e, n);
|
|
13410
13418
|
case q.ZodBigInt:
|
|
13411
|
-
return
|
|
13419
|
+
return sb(e, n);
|
|
13412
13420
|
case q.ZodBoolean:
|
|
13413
|
-
return
|
|
13421
|
+
return ib();
|
|
13414
13422
|
case q.ZodDate:
|
|
13415
13423
|
return Xc(e, n);
|
|
13416
13424
|
case q.ZodUndefined:
|
|
13417
|
-
return
|
|
13425
|
+
return Ob(n);
|
|
13418
13426
|
case q.ZodNull:
|
|
13419
|
-
return
|
|
13427
|
+
return yb(n);
|
|
13420
13428
|
case q.ZodArray:
|
|
13421
|
-
return
|
|
13429
|
+
return rb(e, n);
|
|
13422
13430
|
case q.ZodUnion:
|
|
13423
13431
|
case q.ZodDiscriminatedUnion:
|
|
13424
|
-
return
|
|
13432
|
+
return xb(e, n);
|
|
13425
13433
|
case q.ZodIntersection:
|
|
13426
|
-
return
|
|
13434
|
+
return fb(e, n);
|
|
13427
13435
|
case q.ZodTuple:
|
|
13428
|
-
return
|
|
13436
|
+
return Tb(e, n);
|
|
13429
13437
|
case q.ZodRecord:
|
|
13430
13438
|
return Jc(e, n);
|
|
13431
13439
|
case q.ZodLiteral:
|
|
13432
|
-
return
|
|
13440
|
+
return hb(e, n);
|
|
13433
13441
|
case q.ZodEnum:
|
|
13434
|
-
return
|
|
13442
|
+
return ub(e);
|
|
13435
13443
|
case q.ZodNativeEnum:
|
|
13436
|
-
return
|
|
13444
|
+
return vb(e);
|
|
13437
13445
|
case q.ZodNullable:
|
|
13438
|
-
return
|
|
13446
|
+
return wb(e, n);
|
|
13439
13447
|
case q.ZodOptional:
|
|
13440
|
-
return
|
|
13448
|
+
return Nb(e, n);
|
|
13441
13449
|
case q.ZodMap:
|
|
13442
|
-
return
|
|
13450
|
+
return gb(e, n);
|
|
13443
13451
|
case q.ZodSet:
|
|
13444
|
-
return
|
|
13452
|
+
return Fb(e, n);
|
|
13445
13453
|
case q.ZodLazy:
|
|
13446
13454
|
return () => e.getter()._def;
|
|
13447
13455
|
case q.ZodPromise:
|
|
13448
|
-
return
|
|
13456
|
+
return Ab(e, n);
|
|
13449
13457
|
case q.ZodNaN:
|
|
13450
13458
|
case q.ZodNever:
|
|
13451
|
-
return
|
|
13459
|
+
return bb(n);
|
|
13452
13460
|
case q.ZodEffects:
|
|
13453
|
-
return
|
|
13461
|
+
return cb(e, n);
|
|
13454
13462
|
case q.ZodAny:
|
|
13455
13463
|
return lt(n);
|
|
13456
13464
|
case q.ZodUnknown:
|
|
13457
|
-
return
|
|
13465
|
+
return Eb(n);
|
|
13458
13466
|
case q.ZodDefault:
|
|
13459
|
-
return
|
|
13467
|
+
return lb(e, n);
|
|
13460
13468
|
case q.ZodBranded:
|
|
13461
13469
|
return Kc(e, n);
|
|
13462
13470
|
case q.ZodReadonly:
|
|
13463
|
-
return
|
|
13471
|
+
return Ib(e, n);
|
|
13464
13472
|
case q.ZodCatch:
|
|
13465
|
-
return
|
|
13473
|
+
return ab(e, n);
|
|
13466
13474
|
case q.ZodPipeline:
|
|
13467
|
-
return
|
|
13475
|
+
return Db(e, n);
|
|
13468
13476
|
case q.ZodFunction:
|
|
13469
13477
|
case q.ZodVoid:
|
|
13470
13478
|
case q.ZodSymbol:
|
|
@@ -13478,24 +13486,24 @@ function Ce(e, t, n = !1) {
|
|
|
13478
13486
|
const r = t.seen.get(e);
|
|
13479
13487
|
if (t.override) {
|
|
13480
13488
|
const o = t.override?.(e, t, r, n);
|
|
13481
|
-
if (o !==
|
|
13489
|
+
if (o !== Jv)
|
|
13482
13490
|
return o;
|
|
13483
13491
|
}
|
|
13484
13492
|
if (r && !n) {
|
|
13485
|
-
const o =
|
|
13493
|
+
const o = Pb(r, t);
|
|
13486
13494
|
if (o !== void 0)
|
|
13487
13495
|
return o;
|
|
13488
13496
|
}
|
|
13489
13497
|
const s = { def: e, path: t.currentPath, jsonSchema: void 0 };
|
|
13490
13498
|
t.seen.set(e, s);
|
|
13491
|
-
const i =
|
|
13492
|
-
if (a &&
|
|
13499
|
+
const i = Rb(e, e.typeName, t), a = typeof i == "function" ? Ce(i(), t) : i;
|
|
13500
|
+
if (a && Lb(e, t, a), t.postProcess) {
|
|
13493
13501
|
const o = t.postProcess(a, e, t);
|
|
13494
13502
|
return s.jsonSchema = a, o;
|
|
13495
13503
|
}
|
|
13496
13504
|
return s.jsonSchema = a, a;
|
|
13497
13505
|
}
|
|
13498
|
-
const
|
|
13506
|
+
const Pb = (e, t) => {
|
|
13499
13507
|
switch (t.$refStrategy) {
|
|
13500
13508
|
case "root":
|
|
13501
13509
|
return { $ref: e.path.join("/") };
|
|
@@ -13505,8 +13513,8 @@ const Rb = (e, t) => {
|
|
|
13505
13513
|
case "seen":
|
|
13506
13514
|
return e.path.length < t.currentPath.length && e.path.every((n, r) => t.currentPath[r] === n) ? (console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`), lt(t)) : t.$refStrategy === "seen" ? lt(t) : void 0;
|
|
13507
13515
|
}
|
|
13508
|
-
},
|
|
13509
|
-
const n =
|
|
13516
|
+
}, Lb = (e, t, n) => (e.description && (n.description = e.description, t.markdownDescription && (n.markdownDescription = e.description)), n), fo = (e, t) => {
|
|
13517
|
+
const n = nb(t);
|
|
13510
13518
|
let r = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce((o, [l, u]) => ({
|
|
13511
13519
|
...o,
|
|
13512
13520
|
[l]: Ce(u._def, {
|
|
@@ -13607,16 +13615,16 @@ function ps() {
|
|
|
13607
13615
|
};
|
|
13608
13616
|
}
|
|
13609
13617
|
const eu = Ft(null);
|
|
13610
|
-
function
|
|
13618
|
+
function Mb() {
|
|
13611
13619
|
const e = nt(eu);
|
|
13612
13620
|
if (!e)
|
|
13613
13621
|
throw new Error("useF0Wizard must be used within a F0Wizard");
|
|
13614
13622
|
return e;
|
|
13615
13623
|
}
|
|
13616
|
-
function
|
|
13624
|
+
function jb({ children: e, ...t }) {
|
|
13617
13625
|
return /* @__PURE__ */ c(eu.Provider, { value: t, children: e });
|
|
13618
13626
|
}
|
|
13619
|
-
const
|
|
13627
|
+
const Bb = Lt({
|
|
13620
13628
|
base: "flex-1 text-base font-medium leading-5 tracking-[-0.005em]",
|
|
13621
13629
|
variants: {
|
|
13622
13630
|
state: {
|
|
@@ -13626,10 +13634,10 @@ const jb = Lt({
|
|
|
13626
13634
|
}
|
|
13627
13635
|
}
|
|
13628
13636
|
});
|
|
13629
|
-
function
|
|
13637
|
+
function Vb(e, t, n) {
|
|
13630
13638
|
return e === t ? "active" : n ? "completed" : "upcoming";
|
|
13631
13639
|
}
|
|
13632
|
-
function
|
|
13640
|
+
function $b({ state: e, index: t }) {
|
|
13633
13641
|
return e === "completed" ? /* @__PURE__ */ c("span", { 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", children: /* @__PURE__ */ c(Hn, { className: "h-3 w-3" }) }) : /* @__PURE__ */ c(
|
|
13634
13642
|
rd,
|
|
13635
13643
|
{
|
|
@@ -13639,10 +13647,10 @@ function Vb({ state: e, index: t }) {
|
|
|
13639
13647
|
}
|
|
13640
13648
|
);
|
|
13641
13649
|
}
|
|
13642
|
-
function
|
|
13643
|
-
const { steps: e, currentStep: t, goToStep: n, allowStepSkipping: r } =
|
|
13650
|
+
function zb() {
|
|
13651
|
+
const { steps: e, currentStep: t, goToStep: n, allowStepSkipping: r } = Mb();
|
|
13644
13652
|
return /* @__PURE__ */ c("nav", { "aria-label": "Wizard steps", className: "flex flex-col gap-1.5 p-1", children: e.map((s, i) => {
|
|
13645
|
-
const a = i < t || s.isCompleted?.() === !0, o =
|
|
13653
|
+
const a = i < t || s.isCompleted?.() === !0, o = Vb(i, t, a), l = e[t]?.hasErrors?.() === !0, u = i > t && e.slice(t, i).some((h) => h.hasErrors?.() === !0);
|
|
13646
13654
|
let d = i !== t && !l && !u && e.slice(0, i).every((h) => h.isCompleted?.() !== !1);
|
|
13647
13655
|
return d && !r && i > t + 1 && (d = !1), /* @__PURE__ */ E(
|
|
13648
13656
|
"button",
|
|
@@ -13664,15 +13672,15 @@ function $b() {
|
|
|
13664
13672
|
!d && i !== t && "cursor-default opacity-70"
|
|
13665
13673
|
),
|
|
13666
13674
|
children: [
|
|
13667
|
-
/* @__PURE__ */ c(
|
|
13668
|
-
/* @__PURE__ */ c("span", { className:
|
|
13675
|
+
/* @__PURE__ */ c($b, { state: o, index: i }),
|
|
13676
|
+
/* @__PURE__ */ c("span", { className: Bb({ state: o }), children: s.title })
|
|
13669
13677
|
]
|
|
13670
13678
|
},
|
|
13671
13679
|
i
|
|
13672
13680
|
);
|
|
13673
13681
|
}) });
|
|
13674
13682
|
}
|
|
13675
|
-
function
|
|
13683
|
+
function qb({
|
|
13676
13684
|
steps: e,
|
|
13677
13685
|
defaultStepIndex: t = 0,
|
|
13678
13686
|
onSubmit: n,
|
|
@@ -13731,12 +13739,12 @@ function zb({
|
|
|
13731
13739
|
goPrevious: S
|
|
13732
13740
|
};
|
|
13733
13741
|
}
|
|
13734
|
-
const
|
|
13742
|
+
const Zb = () => {
|
|
13735
13743
|
}, Yi = ({
|
|
13736
13744
|
steps: e,
|
|
13737
13745
|
children: t,
|
|
13738
13746
|
isOpen: n,
|
|
13739
|
-
onClose: r =
|
|
13747
|
+
onClose: r = Zb,
|
|
13740
13748
|
title: s,
|
|
13741
13749
|
width: i = "xl",
|
|
13742
13750
|
defaultStepIndex: a,
|
|
@@ -13756,7 +13764,7 @@ const qb = () => {
|
|
|
13756
13764
|
(I) => I.isCompleted?.() !== !0
|
|
13757
13765
|
);
|
|
13758
13766
|
return D === -1 ? e.length - 1 : D;
|
|
13759
|
-
}, [a, y, e]), g =
|
|
13767
|
+
}, [a, y, e]), g = qb({
|
|
13760
13768
|
steps: e,
|
|
13761
13769
|
defaultStepIndex: S,
|
|
13762
13770
|
onSubmit: d,
|
|
@@ -13795,7 +13803,7 @@ const qb = () => {
|
|
|
13795
13803
|
secondaryAction: F,
|
|
13796
13804
|
disableContentPadding: !0,
|
|
13797
13805
|
children: /* @__PURE__ */ c(
|
|
13798
|
-
|
|
13806
|
+
jb,
|
|
13799
13807
|
{
|
|
13800
13808
|
currentStep: g.currentStep,
|
|
13801
13809
|
totalSteps: e.length,
|
|
@@ -13806,7 +13814,7 @@ const qb = () => {
|
|
|
13806
13814
|
steps: e,
|
|
13807
13815
|
allowStepSkipping: m,
|
|
13808
13816
|
children: /* @__PURE__ */ E("div", { className: "flex h-[58vh] flex-1 flex-row", children: [
|
|
13809
|
-
/* @__PURE__ */ c("div", { className: "w-1/3 shrink-0 overflow-y-auto border-x-0 border-b-0 border-r border-t-0 border-dashed border-f1-border-secondary p-2", children: /* @__PURE__ */ c(
|
|
13817
|
+
/* @__PURE__ */ c("div", { className: "w-1/3 shrink-0 overflow-y-auto border-x-0 border-b-0 border-r border-t-0 border-dashed border-f1-border-secondary p-2", children: /* @__PURE__ */ c(zb, {}) }),
|
|
13810
13818
|
/* @__PURE__ */ c("div", { className: "flex-1 overflow-y-auto px-8", children: t({
|
|
13811
13819
|
currentStep: g.currentStep,
|
|
13812
13820
|
goToStep: g.goToStep
|
|
@@ -13822,7 +13830,7 @@ function tu(e) {
|
|
|
13822
13830
|
const n = sn(e).shape, r = Object.entries(n);
|
|
13823
13831
|
return r.length === 0 ? !1 : r.every(([, s]) => an(s)?.disabled === !0);
|
|
13824
13832
|
}
|
|
13825
|
-
function
|
|
13833
|
+
function Wb(e, t) {
|
|
13826
13834
|
if (t) return Object.keys(t);
|
|
13827
13835
|
const r = sn(e).shape, s = /* @__PURE__ */ new Set();
|
|
13828
13836
|
for (const i of Object.values(r)) {
|
|
@@ -13849,7 +13857,7 @@ function nu(e, t, n) {
|
|
|
13849
13857
|
return l != null && l !== "";
|
|
13850
13858
|
});
|
|
13851
13859
|
}
|
|
13852
|
-
const
|
|
13860
|
+
const Ub = 3e3;
|
|
13853
13861
|
function ru() {
|
|
13854
13862
|
const { forms: e } = Ee(), [t, n] = ee("idle"), [r, s] = ee(), i = W(null);
|
|
13855
13863
|
le(() => () => {
|
|
@@ -13858,7 +13866,7 @@ function ru() {
|
|
|
13858
13866
|
const a = P((u) => {
|
|
13859
13867
|
i.current && (clearTimeout(i.current), i.current = null), s(u), n("success"), i.current = setTimeout(() => {
|
|
13860
13868
|
n("idle"), s(void 0), i.current = null;
|
|
13861
|
-
},
|
|
13869
|
+
}, Ub);
|
|
13862
13870
|
}, []), o = t === "success" ? r ?? e.actionBar.saved : void 0, l = B(
|
|
13863
13871
|
() => /* @__PURE__ */ c(
|
|
13864
13872
|
Ws,
|
|
@@ -13895,7 +13903,7 @@ function Bn(e, t, n) {
|
|
|
13895
13903
|
const r = t[e];
|
|
13896
13904
|
return r ? [r] : [];
|
|
13897
13905
|
}
|
|
13898
|
-
function
|
|
13906
|
+
function Qb({
|
|
13899
13907
|
formDefinition: e,
|
|
13900
13908
|
steps: t,
|
|
13901
13909
|
isOpen: n,
|
|
@@ -14066,7 +14074,7 @@ function Ub({
|
|
|
14066
14074
|
if (!Te) return null;
|
|
14067
14075
|
const Le = p?.[oe], De = D.current[oe], Be = v?.[oe];
|
|
14068
14076
|
return /* @__PURE__ */ c(
|
|
14069
|
-
|
|
14077
|
+
Gb,
|
|
14070
14078
|
{
|
|
14071
14079
|
sectionId: oe,
|
|
14072
14080
|
formName: S,
|
|
@@ -14092,7 +14100,7 @@ function Ub({
|
|
|
14092
14100
|
}
|
|
14093
14101
|
);
|
|
14094
14102
|
}
|
|
14095
|
-
function
|
|
14103
|
+
function Gb({
|
|
14096
14104
|
sectionId: e,
|
|
14097
14105
|
formName: t,
|
|
14098
14106
|
schema: n,
|
|
@@ -14133,7 +14141,7 @@ function Qb({
|
|
|
14133
14141
|
}
|
|
14134
14142
|
);
|
|
14135
14143
|
}
|
|
14136
|
-
function
|
|
14144
|
+
function Hb({
|
|
14137
14145
|
formDefinition: e,
|
|
14138
14146
|
steps: t,
|
|
14139
14147
|
isOpen: n,
|
|
@@ -14159,7 +14167,7 @@ function Gb({
|
|
|
14159
14167
|
submitConfig: k,
|
|
14160
14168
|
errorTriggerMode: _ = "on-blur"
|
|
14161
14169
|
} = e, w = k?.label, C = B(() => sn(g), [g]), F = B(
|
|
14162
|
-
() =>
|
|
14170
|
+
() => Wb(g, p),
|
|
14163
14171
|
[g, p]
|
|
14164
14172
|
), D = P(
|
|
14165
14173
|
(ae) => {
|
|
@@ -14299,24 +14307,24 @@ function Gb({
|
|
|
14299
14307
|
}
|
|
14300
14308
|
function iu(e) {
|
|
14301
14309
|
return e.formDefinition._brand === "per-section" ? /* @__PURE__ */ c(
|
|
14302
|
-
|
|
14310
|
+
Qb,
|
|
14303
14311
|
{
|
|
14304
14312
|
...e
|
|
14305
14313
|
}
|
|
14306
14314
|
) : /* @__PURE__ */ c(
|
|
14307
|
-
|
|
14315
|
+
Hb,
|
|
14308
14316
|
{
|
|
14309
14317
|
...e
|
|
14310
14318
|
}
|
|
14311
14319
|
);
|
|
14312
14320
|
}
|
|
14313
14321
|
iu.displayName = "F0WizardForm";
|
|
14314
|
-
function
|
|
14322
|
+
function Kb(e) {
|
|
14315
14323
|
if (typeof e != "object" || e === null) return !1;
|
|
14316
14324
|
const n = e._def;
|
|
14317
14325
|
return n?.typeName === "ZodObject" || n?.typeName === "ZodEffects";
|
|
14318
14326
|
}
|
|
14319
|
-
function
|
|
14327
|
+
function Xb(e, t) {
|
|
14320
14328
|
const n = typeof e == "function", [r, s] = ee(
|
|
14321
14329
|
n ? void 0 : e
|
|
14322
14330
|
), [i, a] = ee(n), o = W(e);
|
|
@@ -14347,12 +14355,12 @@ function au(e) {
|
|
|
14347
14355
|
submitConfig: a,
|
|
14348
14356
|
errorTriggerMode: o,
|
|
14349
14357
|
defaultValuesParamsSchema: l
|
|
14350
|
-
} = e, u = typeof s == "function" && l ? s : void 0, d = !!l, { resolved: f, isLoading: m } =
|
|
14358
|
+
} = e, u = typeof s == "function" && l ? s : void 0, d = !!l, { resolved: f, isLoading: m } = Xb(
|
|
14351
14359
|
s,
|
|
14352
14360
|
d
|
|
14353
14361
|
);
|
|
14354
14362
|
return B(() => {
|
|
14355
|
-
const h =
|
|
14363
|
+
const h = Kb(n) ? "single" : "per-section";
|
|
14356
14364
|
return {
|
|
14357
14365
|
name: t,
|
|
14358
14366
|
schema: n,
|
|
@@ -14379,8 +14387,8 @@ function au(e) {
|
|
|
14379
14387
|
u
|
|
14380
14388
|
]);
|
|
14381
14389
|
}
|
|
14382
|
-
const
|
|
14383
|
-
function
|
|
14390
|
+
const Yb = ye(iu), Jb = gs;
|
|
14391
|
+
function ey({
|
|
14384
14392
|
definition: e,
|
|
14385
14393
|
initialValues: t,
|
|
14386
14394
|
onClose: n
|
|
@@ -14407,11 +14415,11 @@ function Jb({
|
|
|
14407
14415
|
disabled: a
|
|
14408
14416
|
},
|
|
14409
14417
|
secondaryAction: { label: "Cancel", onClick: n },
|
|
14410
|
-
children: /* @__PURE__ */ c(
|
|
14418
|
+
children: /* @__PURE__ */ c(Jb, { formDefinition: o, formRef: r })
|
|
14411
14419
|
}
|
|
14412
14420
|
);
|
|
14413
14421
|
}
|
|
14414
|
-
function
|
|
14422
|
+
function ty({
|
|
14415
14423
|
definition: e,
|
|
14416
14424
|
initialValues: t,
|
|
14417
14425
|
onClose: n
|
|
@@ -14424,7 +14432,7 @@ function ey({
|
|
|
14424
14432
|
onSubmit: async ({ data: s }) => (await e.onSubmit?.(s), { success: !0 })
|
|
14425
14433
|
});
|
|
14426
14434
|
return /* @__PURE__ */ c(
|
|
14427
|
-
|
|
14435
|
+
Yb,
|
|
14428
14436
|
{
|
|
14429
14437
|
isOpen: !0,
|
|
14430
14438
|
onClose: n,
|
|
@@ -14435,7 +14443,7 @@ function ey({
|
|
|
14435
14443
|
}
|
|
14436
14444
|
);
|
|
14437
14445
|
}
|
|
14438
|
-
function
|
|
14446
|
+
function ny({
|
|
14439
14447
|
presentedForm: e,
|
|
14440
14448
|
onClose: t
|
|
14441
14449
|
}) {
|
|
@@ -14444,7 +14452,7 @@ function ty({
|
|
|
14444
14452
|
[e.name, s]
|
|
14445
14453
|
);
|
|
14446
14454
|
return n === "wizard" ? /* @__PURE__ */ c(
|
|
14447
|
-
|
|
14455
|
+
ty,
|
|
14448
14456
|
{
|
|
14449
14457
|
definition: r,
|
|
14450
14458
|
initialValues: s,
|
|
@@ -14452,7 +14460,7 @@ function ty({
|
|
|
14452
14460
|
},
|
|
14453
14461
|
i
|
|
14454
14462
|
) : /* @__PURE__ */ c(
|
|
14455
|
-
|
|
14463
|
+
ey,
|
|
14456
14464
|
{
|
|
14457
14465
|
definition: r,
|
|
14458
14466
|
initialValues: s,
|
|
@@ -14461,7 +14469,7 @@ function ty({
|
|
|
14461
14469
|
i
|
|
14462
14470
|
);
|
|
14463
14471
|
}
|
|
14464
|
-
function
|
|
14472
|
+
function g0(e) {
|
|
14465
14473
|
return e;
|
|
14466
14474
|
}
|
|
14467
14475
|
function Ls(e, t = {}) {
|
|
@@ -14517,7 +14525,7 @@ function ho(e, t = {}, n) {
|
|
|
14517
14525
|
}
|
|
14518
14526
|
}, dirtyFields: i };
|
|
14519
14527
|
}
|
|
14520
|
-
function
|
|
14528
|
+
function ry(e) {
|
|
14521
14529
|
const n = rt(e).shape;
|
|
14522
14530
|
if (!n) return {};
|
|
14523
14531
|
const r = {};
|
|
@@ -14536,7 +14544,7 @@ function ny(e) {
|
|
|
14536
14544
|
}
|
|
14537
14545
|
return r;
|
|
14538
14546
|
}
|
|
14539
|
-
function
|
|
14547
|
+
function sy(e) {
|
|
14540
14548
|
if (!e) return {};
|
|
14541
14549
|
const t = {};
|
|
14542
14550
|
for (const [n, r] of Object.entries(e))
|
|
@@ -14547,7 +14555,7 @@ function ry(e) {
|
|
|
14547
14555
|
return t;
|
|
14548
14556
|
}
|
|
14549
14557
|
const ou = Ft(null);
|
|
14550
|
-
function
|
|
14558
|
+
function v0({
|
|
14551
14559
|
children: e,
|
|
14552
14560
|
availableFormDefinitions: t
|
|
14553
14561
|
}) {
|
|
@@ -14565,8 +14573,8 @@ function g0({
|
|
|
14565
14573
|
return w ? {
|
|
14566
14574
|
formName: k,
|
|
14567
14575
|
formSchema: fo(_.schema),
|
|
14568
|
-
fieldDescriptions:
|
|
14569
|
-
sectionDescriptions:
|
|
14576
|
+
fieldDescriptions: ry(_.schema),
|
|
14577
|
+
sectionDescriptions: sy(_.sections),
|
|
14570
14578
|
formValues: w.getValues(),
|
|
14571
14579
|
formErrors: w.getErrors(),
|
|
14572
14580
|
isDirty: w.isDirty(),
|
|
@@ -14694,7 +14702,7 @@ function g0({
|
|
|
14694
14702
|
return /* @__PURE__ */ E(ou.Provider, { value: g, children: [
|
|
14695
14703
|
e,
|
|
14696
14704
|
s && /* @__PURE__ */ c(
|
|
14697
|
-
|
|
14705
|
+
ny,
|
|
14698
14706
|
{
|
|
14699
14707
|
presentedForm: s,
|
|
14700
14708
|
onClose: y
|
|
@@ -14702,7 +14710,7 @@ function g0({
|
|
|
14702
14710
|
)
|
|
14703
14711
|
] });
|
|
14704
14712
|
}
|
|
14705
|
-
function
|
|
14713
|
+
function iy() {
|
|
14706
14714
|
return nt(ou);
|
|
14707
14715
|
}
|
|
14708
14716
|
const Ms = "f0-form-error-navigate", js = /* @__PURE__ */ new WeakMap();
|
|
@@ -14715,7 +14723,7 @@ function di(e, t) {
|
|
|
14715
14723
|
`[id^="${s}"][id$="${i}"]`
|
|
14716
14724
|
);
|
|
14717
14725
|
}
|
|
14718
|
-
const
|
|
14726
|
+
const ay = (e) => {
|
|
14719
14727
|
const t = js.get(e);
|
|
14720
14728
|
t && clearTimeout(t), e.classList.remove(Ms), e.offsetWidth, e.classList.add(Ms);
|
|
14721
14729
|
const n = setTimeout(() => {
|
|
@@ -14723,7 +14731,7 @@ const iy = (e) => {
|
|
|
14723
14731
|
}, 600);
|
|
14724
14732
|
js.set(e, n);
|
|
14725
14733
|
};
|
|
14726
|
-
function
|
|
14734
|
+
function oy(e) {
|
|
14727
14735
|
let t = e;
|
|
14728
14736
|
for (; t && t.offsetParent === null && t.parentElement; )
|
|
14729
14737
|
t = t.parentElement;
|
|
@@ -14731,15 +14739,15 @@ function ay(e) {
|
|
|
14731
14739
|
}
|
|
14732
14740
|
function mo(e, t, { highlight: n = !1 } = {}) {
|
|
14733
14741
|
const r = di(e, t);
|
|
14734
|
-
r &&
|
|
14742
|
+
r && ly(r, { highlight: n });
|
|
14735
14743
|
}
|
|
14736
|
-
function
|
|
14737
|
-
const n =
|
|
14744
|
+
function ly(e, { highlight: t = !1 } = {}) {
|
|
14745
|
+
const n = oy(e);
|
|
14738
14746
|
n.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
14739
14747
|
const r = n.querySelector("input, textarea, select, button");
|
|
14740
|
-
r instanceof HTMLElement && r.focus(), t &&
|
|
14748
|
+
r instanceof HTMLElement && r.focus(), t && ay(n);
|
|
14741
14749
|
}
|
|
14742
|
-
function
|
|
14750
|
+
function cy({
|
|
14743
14751
|
formName: e,
|
|
14744
14752
|
errors: t
|
|
14745
14753
|
}) {
|
|
@@ -14789,7 +14797,7 @@ function ly({
|
|
|
14789
14797
|
resetErrorNavigation: g
|
|
14790
14798
|
};
|
|
14791
14799
|
}
|
|
14792
|
-
function
|
|
14800
|
+
function uy(e) {
|
|
14793
14801
|
const t = {};
|
|
14794
14802
|
function n(r, s) {
|
|
14795
14803
|
for (const [i, a] of Object.entries(r)) {
|
|
@@ -14803,7 +14811,7 @@ function cy(e) {
|
|
|
14803
14811
|
}
|
|
14804
14812
|
return n(e, ""), t;
|
|
14805
14813
|
}
|
|
14806
|
-
function
|
|
14814
|
+
function dy(e) {
|
|
14807
14815
|
const t = [];
|
|
14808
14816
|
let n = [];
|
|
14809
14817
|
const r = () => {
|
|
@@ -14813,12 +14821,12 @@ function uy(e) {
|
|
|
14813
14821
|
s.type === "field" && s.field.type === "switch" ? n.push(s.field) : (r(), s.type === "field" ? t.push({ type: "field", item: s }) : s.type === "row" ? t.push({ type: "row", item: s, index: i }) : s.type === "section" && t.push({ type: "section", item: s }));
|
|
14814
14822
|
}), r(), t;
|
|
14815
14823
|
}
|
|
14816
|
-
function
|
|
14824
|
+
function fy(e) {
|
|
14817
14825
|
if (typeof e != "object" || e === null) return !1;
|
|
14818
14826
|
const n = e._def;
|
|
14819
14827
|
return n?.typeName === "ZodObject" || n?.typeName === "ZodEffects";
|
|
14820
14828
|
}
|
|
14821
|
-
const
|
|
14829
|
+
const hy = {
|
|
14822
14830
|
"on-blur": "onBlur",
|
|
14823
14831
|
"on-change": "onChange",
|
|
14824
14832
|
"on-submit": "onSubmit"
|
|
@@ -14891,15 +14899,15 @@ function lu(e) {
|
|
|
14891
14899
|
/* @__PURE__ */ c("div", { className: "flex flex-1 justify-center", children: b })
|
|
14892
14900
|
] }) : b;
|
|
14893
14901
|
}
|
|
14894
|
-
function
|
|
14902
|
+
function my(e) {
|
|
14895
14903
|
return "formDefinition" in e && e.formDefinition != null;
|
|
14896
14904
|
}
|
|
14897
14905
|
function gs(e) {
|
|
14898
14906
|
const t = e;
|
|
14899
|
-
if (
|
|
14900
|
-
return /* @__PURE__ */ c(
|
|
14907
|
+
if (my(t))
|
|
14908
|
+
return /* @__PURE__ */ c(py, { ...t });
|
|
14901
14909
|
const n = t;
|
|
14902
|
-
return
|
|
14910
|
+
return fy(n.schema) ? /* @__PURE__ */ c(
|
|
14903
14911
|
cu,
|
|
14904
14912
|
{
|
|
14905
14913
|
...n
|
|
@@ -14911,7 +14919,7 @@ function gs(e) {
|
|
|
14911
14919
|
}
|
|
14912
14920
|
);
|
|
14913
14921
|
}
|
|
14914
|
-
function
|
|
14922
|
+
function py(e) {
|
|
14915
14923
|
const {
|
|
14916
14924
|
formDefinition: t,
|
|
14917
14925
|
className: n,
|
|
@@ -15064,7 +15072,7 @@ function cu(e) {
|
|
|
15064
15072
|
id: _e,
|
|
15065
15073
|
label: i[_e]?.title ?? _e,
|
|
15066
15074
|
onClick: () => te(_e)
|
|
15067
|
-
})), [i, ue, g, te]), G = B(() => Uc(t), [t]), j =
|
|
15075
|
+
})), [i, ue, g, te]), G = B(() => Uc(t), [t]), j = hy[d], J = B(
|
|
15068
15076
|
() => jc(s, { errorMap: G }),
|
|
15069
15077
|
[s, G]
|
|
15070
15078
|
), H = Cc({
|
|
@@ -15081,7 +15089,7 @@ function cu(e) {
|
|
|
15081
15089
|
goToPreviousError: Ve,
|
|
15082
15090
|
goToNextError: x,
|
|
15083
15091
|
resetErrorNavigation: A
|
|
15084
|
-
} =
|
|
15092
|
+
} = cy({
|
|
15085
15093
|
formName: r,
|
|
15086
15094
|
errors: ce
|
|
15087
15095
|
}), O = (() => {
|
|
@@ -15142,7 +15150,7 @@ function cu(e) {
|
|
|
15142
15150
|
Re?.shouldValidate !== !1 && H.trigger();
|
|
15143
15151
|
},
|
|
15144
15152
|
trigger: async (Ie) => Ie ? H.trigger(Ie) : H.trigger(),
|
|
15145
|
-
getErrors: () =>
|
|
15153
|
+
getErrors: () => uy(H.formState.errors),
|
|
15146
15154
|
getFieldNames: () => Object.keys(H.getValues()),
|
|
15147
15155
|
_setStateCallback: _e?.stateCallback ? (Ie) => {
|
|
15148
15156
|
V.current = Ie;
|
|
@@ -15159,7 +15167,7 @@ function cu(e) {
|
|
|
15159
15167
|
hasErrors: Be
|
|
15160
15168
|
});
|
|
15161
15169
|
}, [ge, Be]);
|
|
15162
|
-
const Fe =
|
|
15170
|
+
const Fe = iy(), Se = W(null), We = m ?? Se;
|
|
15163
15171
|
le(() => {
|
|
15164
15172
|
if (Fe)
|
|
15165
15173
|
return m || (Se.current = fe()), Fe.register(
|
|
@@ -15182,7 +15190,7 @@ function cu(e) {
|
|
|
15182
15190
|
fe,
|
|
15183
15191
|
y
|
|
15184
15192
|
]);
|
|
15185
|
-
const jt =
|
|
15193
|
+
const jt = dy(X), qt = B(
|
|
15186
15194
|
() => ({
|
|
15187
15195
|
formName: r,
|
|
15188
15196
|
initialFiles: e.initialFiles,
|
|
@@ -15217,7 +15225,7 @@ function cu(e) {
|
|
|
15217
15225
|
"div",
|
|
15218
15226
|
{
|
|
15219
15227
|
className: Ie !== 0 ? Bc : "",
|
|
15220
|
-
children: /* @__PURE__ */ c(
|
|
15228
|
+
children: /* @__PURE__ */ c(Yv, { section: _e.item })
|
|
15221
15229
|
},
|
|
15222
15230
|
_e.item.id
|
|
15223
15231
|
);
|
|
@@ -15277,12 +15285,12 @@ function cu(e) {
|
|
|
15277
15285
|
)
|
|
15278
15286
|
] }) });
|
|
15279
15287
|
}
|
|
15280
|
-
function
|
|
15288
|
+
function b0(e) {
|
|
15281
15289
|
const n = sn(e).shape, r = [];
|
|
15282
15290
|
for (const [s, i] of Object.entries(n)) {
|
|
15283
15291
|
const a = i, o = an(a);
|
|
15284
15292
|
if (!o) continue;
|
|
15285
|
-
const l = Mc(a, o), u = hs(a), d = {
|
|
15293
|
+
const l = Mc(a, o), u = hs(a, l), d = {
|
|
15286
15294
|
name: s,
|
|
15287
15295
|
type: l,
|
|
15288
15296
|
label: o.label,
|
|
@@ -15302,7 +15310,7 @@ function v0(e) {
|
|
|
15302
15310
|
}
|
|
15303
15311
|
return r;
|
|
15304
15312
|
}
|
|
15305
|
-
const
|
|
15313
|
+
const y0 = ft("F0Form", gs);
|
|
15306
15314
|
function kt({
|
|
15307
15315
|
field: e,
|
|
15308
15316
|
value: t,
|
|
@@ -15361,12 +15369,12 @@ function kt({
|
|
|
15361
15369
|
kt.displayName = "F0FormField";
|
|
15362
15370
|
const uu = st((e, t) => /* @__PURE__ */ c(Di, { ref: t, variant: "heading", ...e }));
|
|
15363
15371
|
uu.displayName = "F0Heading";
|
|
15364
|
-
const
|
|
15372
|
+
const x0 = ye(uu), w0 = ye(id), S0 = ye(
|
|
15365
15373
|
ft(
|
|
15366
15374
|
"F0GridStack",
|
|
15367
15375
|
Oo
|
|
15368
15376
|
)
|
|
15369
|
-
), Bs = 16,
|
|
15377
|
+
), Bs = 16, gy = Lt({
|
|
15370
15378
|
base: "h-0.5 rounded-full bg-f1-foreground cursor-pointer",
|
|
15371
15379
|
variants: {
|
|
15372
15380
|
depth: {
|
|
@@ -15408,7 +15416,7 @@ function du(e, t = 0) {
|
|
|
15408
15416
|
...n.children ? du(n.children, t + 1) : []
|
|
15409
15417
|
]);
|
|
15410
15418
|
}
|
|
15411
|
-
function
|
|
15419
|
+
function vy(e, t) {
|
|
15412
15420
|
const n = e.length;
|
|
15413
15421
|
if (n <= Bs) return e;
|
|
15414
15422
|
const r = n / (Bs - 1), s = new Set(
|
|
@@ -15428,7 +15436,7 @@ function gy(e, t) {
|
|
|
15428
15436
|
}
|
|
15429
15437
|
return [...s].sort((i, a) => i - a).map((i) => e[i]);
|
|
15430
15438
|
}
|
|
15431
|
-
function
|
|
15439
|
+
function by({
|
|
15432
15440
|
items: e,
|
|
15433
15441
|
activeItem: t,
|
|
15434
15442
|
className: n,
|
|
@@ -15436,7 +15444,7 @@ function vy({
|
|
|
15436
15444
|
variant: s = "dark"
|
|
15437
15445
|
}) {
|
|
15438
15446
|
const i = B(
|
|
15439
|
-
() =>
|
|
15447
|
+
() => vy(du(e), t),
|
|
15440
15448
|
[e, t]
|
|
15441
15449
|
);
|
|
15442
15450
|
return /* @__PURE__ */ c(
|
|
@@ -15450,7 +15458,7 @@ function vy({
|
|
|
15450
15458
|
children: i.map((a) => /* @__PURE__ */ c(
|
|
15451
15459
|
"div",
|
|
15452
15460
|
{
|
|
15453
|
-
className:
|
|
15461
|
+
className: gy({
|
|
15454
15462
|
depth: a.depth,
|
|
15455
15463
|
variant: s,
|
|
15456
15464
|
active: a.id === t
|
|
@@ -15462,7 +15470,7 @@ function vy({
|
|
|
15462
15470
|
);
|
|
15463
15471
|
}
|
|
15464
15472
|
const Vs = "[role='menu']";
|
|
15465
|
-
function
|
|
15473
|
+
function yy(e, t) {
|
|
15466
15474
|
const n = W(null), r = P(() => {
|
|
15467
15475
|
n.current?.(), n.current = null;
|
|
15468
15476
|
}, []);
|
|
@@ -15484,7 +15492,7 @@ function by(e, t) {
|
|
|
15484
15492
|
return document.addEventListener("pointermove", l), n.current = i, !0;
|
|
15485
15493
|
}, [e, t, r]) };
|
|
15486
15494
|
}
|
|
15487
|
-
const
|
|
15495
|
+
const xy = 300, wy = 0, Sy = Lt({
|
|
15488
15496
|
base: "w-auto overflow-y-auto rounded-lg border border-solid border-f1-border-secondary bg-f1-background p-0 shadow-lg",
|
|
15489
15497
|
variants: {
|
|
15490
15498
|
size: {
|
|
@@ -15511,7 +15519,7 @@ function fu({
|
|
|
15511
15519
|
variant: d = "light",
|
|
15512
15520
|
portalContainer: f
|
|
15513
15521
|
}) {
|
|
15514
|
-
const [m, h] = ee(!1), y = W(!1), S = W(null), { deferClose: g } =
|
|
15522
|
+
const [m, h] = ee(!1), y = W(!1), S = W(null), { deferClose: g } = yy(S, () => h(!1)), p = (b) => {
|
|
15515
15523
|
!b && g() || (b && !m && (y.current = !0), h(b));
|
|
15516
15524
|
}, v = P((b) => {
|
|
15517
15525
|
S.current = b, !(!b || !y.current) && (y.current = !1, requestAnimationFrame(() => {
|
|
@@ -15523,8 +15531,8 @@ function fu({
|
|
|
15523
15531
|
{
|
|
15524
15532
|
open: m,
|
|
15525
15533
|
onOpenChange: p,
|
|
15526
|
-
openDelay:
|
|
15527
|
-
closeDelay:
|
|
15534
|
+
openDelay: wy,
|
|
15535
|
+
closeDelay: xy,
|
|
15528
15536
|
children: [
|
|
15529
15537
|
/* @__PURE__ */ c(od, { asChild: !0, children: /* @__PURE__ */ c(
|
|
15530
15538
|
"button",
|
|
@@ -15536,7 +15544,7 @@ function fu({
|
|
|
15536
15544
|
),
|
|
15537
15545
|
"aria-label": e ?? "Menu",
|
|
15538
15546
|
children: /* @__PURE__ */ c(
|
|
15539
|
-
|
|
15547
|
+
by,
|
|
15540
15548
|
{
|
|
15541
15549
|
items: t,
|
|
15542
15550
|
activeItem: r,
|
|
@@ -15555,7 +15563,7 @@ function fu({
|
|
|
15555
15563
|
sideOffset: -28,
|
|
15556
15564
|
container: f,
|
|
15557
15565
|
className: Z(
|
|
15558
|
-
|
|
15566
|
+
Sy({ size: u }),
|
|
15559
15567
|
!e && "pt-2",
|
|
15560
15568
|
"scrollbar-macos"
|
|
15561
15569
|
),
|
|
@@ -15578,16 +15586,16 @@ function fu({
|
|
|
15578
15586
|
}
|
|
15579
15587
|
);
|
|
15580
15588
|
}
|
|
15581
|
-
const
|
|
15589
|
+
const _0 = ye(
|
|
15582
15590
|
ft(
|
|
15583
15591
|
"F0TableOfContentPopover",
|
|
15584
15592
|
fu
|
|
15585
15593
|
)
|
|
15586
|
-
),
|
|
15594
|
+
), _y = Gn.create(cd), Cy = () => {
|
|
15587
15595
|
const e = Ee();
|
|
15588
15596
|
return /* @__PURE__ */ E("div", { 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", children: [
|
|
15589
15597
|
/* @__PURE__ */ c(
|
|
15590
|
-
|
|
15598
|
+
_y,
|
|
15591
15599
|
{
|
|
15592
15600
|
size: "xs",
|
|
15593
15601
|
animate: {
|
|
@@ -15622,9 +15630,9 @@ const S0 = ye(
|
|
|
15622
15630
|
),
|
|
15623
15631
|
/* @__PURE__ */ c("span", { className: "font-medium", children: e.t("surveyFormBuilder.labels.applyingChanges") })
|
|
15624
15632
|
] });
|
|
15625
|
-
},
|
|
15626
|
-
var
|
|
15627
|
-
const vo = /* @__PURE__ */ ud(
|
|
15633
|
+
}, ky = tl(Cy);
|
|
15634
|
+
var Ny = Sp();
|
|
15635
|
+
const vo = /* @__PURE__ */ ud(Ny), hu = (e) => {
|
|
15628
15636
|
switch (e) {
|
|
15629
15637
|
case "1-5":
|
|
15630
15638
|
return new Array(5).fill(0).map((t, n) => ({
|
|
@@ -15699,7 +15707,7 @@ const vo = /* @__PURE__ */ ud(ky), hu = (e) => {
|
|
|
15699
15707
|
"numeric",
|
|
15700
15708
|
"link",
|
|
15701
15709
|
"date"
|
|
15702
|
-
],
|
|
15710
|
+
], Dy = (e) => {
|
|
15703
15711
|
if (!e)
|
|
15704
15712
|
return bo[0];
|
|
15705
15713
|
const t = bo.find(
|
|
@@ -15801,7 +15809,7 @@ function gu({
|
|
|
15801
15809
|
({ type: D, afterId: I }) => {
|
|
15802
15810
|
const N = pr(
|
|
15803
15811
|
D === "section" ? "section" : "question"
|
|
15804
|
-
), T =
|
|
15812
|
+
), T = Dy(a), R = D === "section" ? {
|
|
15805
15813
|
type: "section",
|
|
15806
15814
|
section: {
|
|
15807
15815
|
id: N,
|
|
@@ -16011,7 +16019,7 @@ const ea = () => {
|
|
|
16011
16019
|
].filter(
|
|
16012
16020
|
(s) => e(s.questionType)
|
|
16013
16021
|
);
|
|
16014
|
-
},
|
|
16022
|
+
}, Ay = {
|
|
16015
16023
|
rating: zo,
|
|
16016
16024
|
"multi-select": qo,
|
|
16017
16025
|
select: Hn,
|
|
@@ -16021,7 +16029,7 @@ const ea = () => {
|
|
|
16021
16029
|
link: xi,
|
|
16022
16030
|
date: Uo,
|
|
16023
16031
|
"dropdown-single": bi
|
|
16024
|
-
},
|
|
16032
|
+
}, Fy = () => {
|
|
16025
16033
|
const { disabled: e, answering: t, onAddNewElement: n } = He(), r = ea(), { t: s } = Ee(), i = (l) => {
|
|
16026
16034
|
n?.({
|
|
16027
16035
|
type: l
|
|
@@ -16053,7 +16061,7 @@ const ea = () => {
|
|
|
16053
16061
|
align: "center"
|
|
16054
16062
|
}
|
|
16055
16063
|
) });
|
|
16056
|
-
},
|
|
16064
|
+
}, Ty = ({
|
|
16057
16065
|
open: e,
|
|
16058
16066
|
onConfirm: t,
|
|
16059
16067
|
onCancel: n
|
|
@@ -16088,13 +16096,13 @@ const ea = () => {
|
|
|
16088
16096
|
{ label: "1 - 10", value: "1-10" },
|
|
16089
16097
|
{ label: "Emojis", value: "emojis" }
|
|
16090
16098
|
];
|
|
16091
|
-
function
|
|
16099
|
+
function Oy(e, t) {
|
|
16092
16100
|
if (e !== "rating" || !t || t.type !== "rating")
|
|
16093
16101
|
return null;
|
|
16094
16102
|
const n = t.options;
|
|
16095
16103
|
return !Array.isArray(n) || n.length === 0 || typeof n[0]?.value != "number" ? null : mu(n);
|
|
16096
16104
|
}
|
|
16097
|
-
function
|
|
16105
|
+
function Ey(e, t, n) {
|
|
16098
16106
|
return !(e === t || (e === "select" || e === "multi-select") && n && "options" in n && Array.isArray(n.options) && n.options.length > 0);
|
|
16099
16107
|
}
|
|
16100
16108
|
function bu() {
|
|
@@ -16107,7 +16115,7 @@ function bu() {
|
|
|
16107
16115
|
} = He(), i = ea();
|
|
16108
16116
|
return { getActionsForQuestion: P(
|
|
16109
16117
|
(o, l, u) => {
|
|
16110
|
-
const d = t(o), f =
|
|
16118
|
+
const d = t(o), f = Oy(l, d);
|
|
16111
16119
|
return {
|
|
16112
16120
|
question: d,
|
|
16113
16121
|
questionTypes: i,
|
|
@@ -16122,7 +16130,7 @@ function bu() {
|
|
|
16122
16130
|
});
|
|
16123
16131
|
},
|
|
16124
16132
|
handleSelectQuestionType: (p) => {
|
|
16125
|
-
const v =
|
|
16133
|
+
const v = Ey(
|
|
16126
16134
|
p,
|
|
16127
16135
|
l,
|
|
16128
16136
|
d
|
|
@@ -16161,7 +16169,7 @@ function bu() {
|
|
|
16161
16169
|
]
|
|
16162
16170
|
), questionTypes: i };
|
|
16163
16171
|
}
|
|
16164
|
-
function
|
|
16172
|
+
function Iy({
|
|
16165
16173
|
questionId: e,
|
|
16166
16174
|
questionType: t,
|
|
16167
16175
|
canDelete: n = !0
|
|
@@ -16172,7 +16180,7 @@ function Ey({
|
|
|
16172
16180
|
[r, e, t, n]
|
|
16173
16181
|
);
|
|
16174
16182
|
}
|
|
16175
|
-
const
|
|
16183
|
+
const Ry = ({
|
|
16176
16184
|
label: e,
|
|
16177
16185
|
icon: t,
|
|
16178
16186
|
checked: n,
|
|
@@ -16198,7 +16206,7 @@ const Iy = ({
|
|
|
16198
16206
|
)
|
|
16199
16207
|
] })
|
|
16200
16208
|
}
|
|
16201
|
-
),
|
|
16209
|
+
), Py = ({
|
|
16202
16210
|
label: e,
|
|
16203
16211
|
value: t,
|
|
16204
16212
|
questionTypes: n,
|
|
@@ -16266,7 +16274,7 @@ const Iy = ({
|
|
|
16266
16274
|
] })
|
|
16267
16275
|
}
|
|
16268
16276
|
);
|
|
16269
|
-
function
|
|
16277
|
+
function Ly({
|
|
16270
16278
|
open: e,
|
|
16271
16279
|
setOpen: t,
|
|
16272
16280
|
questionId: n,
|
|
@@ -16283,7 +16291,7 @@ function Py({
|
|
|
16283
16291
|
handleSelectRatingType: m,
|
|
16284
16292
|
handleDuplicate: h,
|
|
16285
16293
|
handleDelete: y
|
|
16286
|
-
} =
|
|
16294
|
+
} = Iy({
|
|
16287
16295
|
questionId: n,
|
|
16288
16296
|
questionType: r,
|
|
16289
16297
|
canDelete: s
|
|
@@ -16303,7 +16311,7 @@ function Py({
|
|
|
16303
16311
|
/* @__PURE__ */ E(hd, { className: "w-80", align: "start", children: [
|
|
16304
16312
|
/* @__PURE__ */ c(md, { className: "p-4 pb-2 font-medium text-f1-foreground-secondary", children: i("surveyFormBuilder.labels.questionOptions") }),
|
|
16305
16313
|
!u && /* @__PURE__ */ c(ys, { children: /* @__PURE__ */ c(
|
|
16306
|
-
|
|
16314
|
+
Ry,
|
|
16307
16315
|
{
|
|
16308
16316
|
label: i("surveyFormBuilder.labels.required"),
|
|
16309
16317
|
icon: Qo,
|
|
@@ -16312,7 +16320,7 @@ function Py({
|
|
|
16312
16320
|
}
|
|
16313
16321
|
) }),
|
|
16314
16322
|
/* @__PURE__ */ c(ys, { children: /* @__PURE__ */ c(
|
|
16315
|
-
|
|
16323
|
+
Py,
|
|
16316
16324
|
{
|
|
16317
16325
|
label: i("surveyFormBuilder.labels.questionType"),
|
|
16318
16326
|
value: r,
|
|
@@ -16462,7 +16470,7 @@ const xo = {
|
|
|
16462
16470
|
v && "opacity-100"
|
|
16463
16471
|
),
|
|
16464
16472
|
children: /* @__PURE__ */ c(
|
|
16465
|
-
|
|
16473
|
+
Ly,
|
|
16466
16474
|
{
|
|
16467
16475
|
open: v,
|
|
16468
16476
|
setOpen: b,
|
|
@@ -16523,7 +16531,7 @@ const xo = {
|
|
|
16523
16531
|
]
|
|
16524
16532
|
}
|
|
16525
16533
|
);
|
|
16526
|
-
},
|
|
16534
|
+
}, My = ({
|
|
16527
16535
|
value: e,
|
|
16528
16536
|
...t
|
|
16529
16537
|
}) => {
|
|
@@ -16549,7 +16557,7 @@ const xo = {
|
|
|
16549
16557
|
hideLabel: !0
|
|
16550
16558
|
}
|
|
16551
16559
|
) }) });
|
|
16552
|
-
},
|
|
16560
|
+
}, jy = ({
|
|
16553
16561
|
options: e,
|
|
16554
16562
|
...t
|
|
16555
16563
|
}) => {
|
|
@@ -16596,7 +16604,7 @@ const xo = {
|
|
|
16596
16604
|
hideLabel: !0
|
|
16597
16605
|
}
|
|
16598
16606
|
) }) });
|
|
16599
|
-
},
|
|
16607
|
+
}, By = ({
|
|
16600
16608
|
value: e,
|
|
16601
16609
|
...t
|
|
16602
16610
|
}) => {
|
|
@@ -16624,7 +16632,7 @@ const xo = {
|
|
|
16624
16632
|
hideLabel: !0
|
|
16625
16633
|
}
|
|
16626
16634
|
) }) });
|
|
16627
|
-
},
|
|
16635
|
+
}, Vy = ({
|
|
16628
16636
|
value: e,
|
|
16629
16637
|
...t
|
|
16630
16638
|
}) => {
|
|
@@ -16664,7 +16672,7 @@ const xo = {
|
|
|
16664
16672
|
icon: Cr
|
|
16665
16673
|
}
|
|
16666
16674
|
) }) });
|
|
16667
|
-
},
|
|
16675
|
+
}, $y = ({
|
|
16668
16676
|
option: e,
|
|
16669
16677
|
selected: t,
|
|
16670
16678
|
onClick: n,
|
|
@@ -16730,7 +16738,7 @@ const xo = {
|
|
|
16730
16738
|
] }) : /* @__PURE__ */ c("span", { className: "text-base font-medium", children: o })
|
|
16731
16739
|
}
|
|
16732
16740
|
);
|
|
16733
|
-
},
|
|
16741
|
+
}, zy = ({
|
|
16734
16742
|
options: e,
|
|
16735
16743
|
value: t,
|
|
16736
16744
|
...n
|
|
@@ -16753,7 +16761,7 @@ const xo = {
|
|
|
16753
16761
|
});
|
|
16754
16762
|
};
|
|
16755
16763
|
return /* @__PURE__ */ c(Xe, { ...n, children: /* @__PURE__ */ c("div", { className: "grid grid-cols-3 gap-3 @md:grid-cols-5", children: e.map((d) => /* @__PURE__ */ c(
|
|
16756
|
-
|
|
16764
|
+
$y,
|
|
16757
16765
|
{
|
|
16758
16766
|
option: d,
|
|
16759
16767
|
selected: t === d.value,
|
|
@@ -16764,8 +16772,8 @@ const xo = {
|
|
|
16764
16772
|
},
|
|
16765
16773
|
d.value
|
|
16766
16774
|
)) }) });
|
|
16767
|
-
},
|
|
16768
|
-
function
|
|
16775
|
+
}, qy = (e) => /* @__PURE__ */ c(zy, { ...e, type: "rating" });
|
|
16776
|
+
function Zy({
|
|
16769
16777
|
checked: e,
|
|
16770
16778
|
disabled: t
|
|
16771
16779
|
}) {
|
|
@@ -16782,9 +16790,9 @@ function qy({
|
|
|
16782
16790
|
}
|
|
16783
16791
|
);
|
|
16784
16792
|
}
|
|
16785
|
-
const
|
|
16793
|
+
const Wy = {
|
|
16786
16794
|
fieldSizing: "content"
|
|
16787
|
-
},
|
|
16795
|
+
}, Uy = ({
|
|
16788
16796
|
index: e,
|
|
16789
16797
|
option: t,
|
|
16790
16798
|
onClick: n,
|
|
@@ -16851,7 +16859,7 @@ const Zy = {
|
|
|
16851
16859
|
hideLabel: !0
|
|
16852
16860
|
}
|
|
16853
16861
|
) : /* @__PURE__ */ c(
|
|
16854
|
-
|
|
16862
|
+
Zy,
|
|
16855
16863
|
{
|
|
16856
16864
|
checked: a ? !!o : !1,
|
|
16857
16865
|
disabled: !a
|
|
@@ -16881,7 +16889,7 @@ const Zy = {
|
|
|
16881
16889
|
value: m,
|
|
16882
16890
|
onChange: C,
|
|
16883
16891
|
className: "flex-1 resize-none font-medium",
|
|
16884
|
-
style:
|
|
16892
|
+
style: Wy
|
|
16885
16893
|
}
|
|
16886
16894
|
) : /* @__PURE__ */ c("p", { className: "flex-1 font-medium", children: m }),
|
|
16887
16895
|
!i && !a && l && /* @__PURE__ */ c("span", { className: "text-sm font-medium text-f1-foreground-positive", children: p("surveyFormBuilder.selectQuestion.correct") }),
|
|
@@ -16912,7 +16920,7 @@ const Zy = {
|
|
|
16912
16920
|
)
|
|
16913
16921
|
}
|
|
16914
16922
|
);
|
|
16915
|
-
},
|
|
16923
|
+
}, Qy = ({ options: e, ...t }) => {
|
|
16916
16924
|
const {
|
|
16917
16925
|
onQuestionChange: n,
|
|
16918
16926
|
disabled: r,
|
|
@@ -17016,7 +17024,7 @@ const Zy = {
|
|
|
17016
17024
|
children: e.map((g, p) => {
|
|
17017
17025
|
const v = t.type === "select" ? t.value === g.value : Array.isArray(t.value) && t.value.includes(g.value);
|
|
17018
17026
|
return /* @__PURE__ */ c("div", { className: "w-full [&>div]:w-full", children: /* @__PURE__ */ c(
|
|
17019
|
-
|
|
17027
|
+
Uy,
|
|
17020
17028
|
{
|
|
17021
17029
|
index: p,
|
|
17022
17030
|
option: g,
|
|
@@ -17044,7 +17052,7 @@ const Zy = {
|
|
|
17044
17052
|
}
|
|
17045
17053
|
) })
|
|
17046
17054
|
] }) });
|
|
17047
|
-
},
|
|
17055
|
+
}, Gy = ({
|
|
17048
17056
|
value: e,
|
|
17049
17057
|
...t
|
|
17050
17058
|
}) => {
|
|
@@ -17089,20 +17097,20 @@ const Zy = {
|
|
|
17089
17097
|
switch (e.type) {
|
|
17090
17098
|
case "text":
|
|
17091
17099
|
case "longText":
|
|
17092
|
-
return /* @__PURE__ */ c(
|
|
17100
|
+
return /* @__PURE__ */ c(Gy, { ...e });
|
|
17093
17101
|
case "rating":
|
|
17094
|
-
return /* @__PURE__ */ c(
|
|
17102
|
+
return /* @__PURE__ */ c(qy, { ...e });
|
|
17095
17103
|
case "select":
|
|
17096
17104
|
case "multi-select":
|
|
17097
|
-
return /* @__PURE__ */ c(
|
|
17105
|
+
return /* @__PURE__ */ c(Qy, { ...e });
|
|
17098
17106
|
case "dropdown-single":
|
|
17099
|
-
return /* @__PURE__ */ c(
|
|
17107
|
+
return /* @__PURE__ */ c(jy, { ...e });
|
|
17100
17108
|
case "numeric":
|
|
17101
|
-
return /* @__PURE__ */ c(
|
|
17109
|
+
return /* @__PURE__ */ c(Vy, { ...e });
|
|
17102
17110
|
case "link":
|
|
17103
|
-
return /* @__PURE__ */ c(
|
|
17111
|
+
return /* @__PURE__ */ c(By, { ...e });
|
|
17104
17112
|
case "date":
|
|
17105
|
-
return /* @__PURE__ */ c(
|
|
17113
|
+
return /* @__PURE__ */ c(My, { ...e });
|
|
17106
17114
|
default:
|
|
17107
17115
|
throw new Error("Invalid question type provided");
|
|
17108
17116
|
}
|
|
@@ -17113,7 +17121,7 @@ const Zy = {
|
|
|
17113
17121
|
/* @__PURE__ */ c("span", { className: "text-base font-medium text-f1-foreground-secondary", children: e("surveyFormBuilder.labels.endOfSection") }),
|
|
17114
17122
|
/* @__PURE__ */ c("div", { className: "h-px flex-1 bg-f1-border-secondary" })
|
|
17115
17123
|
] });
|
|
17116
|
-
},
|
|
17124
|
+
}, Hy = ({
|
|
17117
17125
|
item: e,
|
|
17118
17126
|
showEndOfSection: t,
|
|
17119
17127
|
className: n
|
|
@@ -17173,7 +17181,7 @@ const Zy = {
|
|
|
17173
17181
|
]
|
|
17174
17182
|
}
|
|
17175
17183
|
);
|
|
17176
|
-
},
|
|
17184
|
+
}, Ky = ({ question: e }) => {
|
|
17177
17185
|
const { isDragging: t, setIsDragging: n, setDraggedItemId: r } = Tn(), s = Ci(), { disabled: i, answering: a, getSectionContainingQuestion: o } = He(), l = o(e.id), u = () => {
|
|
17178
17186
|
n(!0), r(e.id);
|
|
17179
17187
|
}, d = () => {
|
|
@@ -17223,9 +17231,9 @@ const Zy = {
|
|
|
17223
17231
|
)
|
|
17224
17232
|
}
|
|
17225
17233
|
);
|
|
17226
|
-
},
|
|
17234
|
+
}, Xy = {
|
|
17227
17235
|
fieldSizing: "content"
|
|
17228
|
-
},
|
|
17236
|
+
}, Yy = ({
|
|
17229
17237
|
id: e,
|
|
17230
17238
|
title: t,
|
|
17231
17239
|
description: n,
|
|
@@ -17337,7 +17345,7 @@ const Zy = {
|
|
|
17337
17345
|
),
|
|
17338
17346
|
onChange: g,
|
|
17339
17347
|
disabled: _,
|
|
17340
|
-
style:
|
|
17348
|
+
style: Xy,
|
|
17341
17349
|
className: Z(
|
|
17342
17350
|
"w-full resize-none text-f1-foreground-secondary placeholder:text-f1-foreground-tertiary disabled:text-f1-foreground-secondary [&::-webkit-search-cancel-button]:hidden",
|
|
17343
17351
|
_ && "cursor-not-allowed"
|
|
@@ -17353,7 +17361,7 @@ const Zy = {
|
|
|
17353
17361
|
values: r,
|
|
17354
17362
|
onReorder: p,
|
|
17355
17363
|
as: "div",
|
|
17356
|
-
children: /* @__PURE__ */ c("div", { className: "group/section-list flex flex-col gap-4", children: r.map((w) => /* @__PURE__ */ c(
|
|
17364
|
+
children: /* @__PURE__ */ c("div", { className: "group/section-list flex flex-col gap-4", children: r.map((w) => /* @__PURE__ */ c(Ky, { question: w }, w.id)) })
|
|
17357
17365
|
}
|
|
17358
17366
|
) }),
|
|
17359
17367
|
!l && /* @__PURE__ */ E("div", { className: "mt-8 flex flex-row items-center gap-4", children: [
|
|
@@ -17365,7 +17373,7 @@ const Zy = {
|
|
|
17365
17373
|
]
|
|
17366
17374
|
}
|
|
17367
17375
|
);
|
|
17368
|
-
},
|
|
17376
|
+
}, Jy = ({
|
|
17369
17377
|
item: e,
|
|
17370
17378
|
className: t
|
|
17371
17379
|
}) => {
|
|
@@ -17408,7 +17416,7 @@ const Zy = {
|
|
|
17408
17416
|
children: /* @__PURE__ */ c(Mt, { icon: nr, size: "sm" })
|
|
17409
17417
|
}
|
|
17410
17418
|
),
|
|
17411
|
-
/* @__PURE__ */ c(
|
|
17419
|
+
/* @__PURE__ */ c(Yy, { ...e.section, hideQuestions: !0 })
|
|
17412
17420
|
]
|
|
17413
17421
|
}
|
|
17414
17422
|
),
|
|
@@ -17419,9 +17427,9 @@ const Zy = {
|
|
|
17419
17427
|
] }) })
|
|
17420
17428
|
}
|
|
17421
17429
|
);
|
|
17422
|
-
}, wo = (e) =>
|
|
17430
|
+
}, wo = (e) => Ay[e], ex = (e) => {
|
|
17423
17431
|
document.getElementById(e)?.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
17424
|
-
},
|
|
17432
|
+
}, tx = (e, t) => {
|
|
17425
17433
|
const {
|
|
17426
17434
|
untitledSectionLabel: n,
|
|
17427
17435
|
untitledQuestionLabel: r,
|
|
@@ -17433,7 +17441,7 @@ const Zy = {
|
|
|
17433
17441
|
requiredLabel: u,
|
|
17434
17442
|
questionTypeLabel: d
|
|
17435
17443
|
} = t, { deleteElement: f, onDuplicateElement: m, disabled: h, answering: y } = He(), { getActionsForQuestion: S, questionTypes: g } = bu(), p = P((b) => {
|
|
17436
|
-
|
|
17444
|
+
ex(b);
|
|
17437
17445
|
}, []), v = P(
|
|
17438
17446
|
(b, k, _) => {
|
|
17439
17447
|
const {
|
|
@@ -17579,7 +17587,7 @@ const Zy = {
|
|
|
17579
17587
|
]
|
|
17580
17588
|
);
|
|
17581
17589
|
}, $s = "co-creation-section-", gr = "co-creation-question-";
|
|
17582
|
-
function
|
|
17590
|
+
function nx(e, t) {
|
|
17583
17591
|
const n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
17584
17592
|
for (const a of t)
|
|
17585
17593
|
if (a.type === "section") {
|
|
@@ -17615,7 +17623,7 @@ const xu = ({
|
|
|
17615
17623
|
onChange: t,
|
|
17616
17624
|
answering: n
|
|
17617
17625
|
}) => {
|
|
17618
|
-
const { t: r } = Ee(), { portalContainer: s } = nt(gd), i =
|
|
17626
|
+
const { t: r } = Ee(), { portalContainer: s } = nt(gd), i = tx(e, {
|
|
17619
17627
|
untitledSectionLabel: r("surveyFormBuilder.labels.sectionTitlePlaceholder"),
|
|
17620
17628
|
untitledQuestionLabel: r("surveyFormBuilder.labels.titlePlaceholder"),
|
|
17621
17629
|
duplicateQuestionLabel: r("surveyFormBuilder.actions.duplicateQuestion"),
|
|
@@ -17627,7 +17635,7 @@ const xu = ({
|
|
|
17627
17635
|
questionTypeLabel: r("surveyFormBuilder.labels.questionType")
|
|
17628
17636
|
}), a = P(
|
|
17629
17637
|
(o) => {
|
|
17630
|
-
t(
|
|
17638
|
+
t(nx(o, e));
|
|
17631
17639
|
},
|
|
17632
17640
|
[e, t]
|
|
17633
17641
|
);
|
|
@@ -17645,7 +17653,7 @@ const xu = ({
|
|
|
17645
17653
|
}
|
|
17646
17654
|
) });
|
|
17647
17655
|
};
|
|
17648
|
-
function
|
|
17656
|
+
function rx(e) {
|
|
17649
17657
|
return e.flatMap((t) => t.type === "section" ? [
|
|
17650
17658
|
{
|
|
17651
17659
|
type: "section-header",
|
|
@@ -17688,7 +17696,7 @@ function So(e) {
|
|
|
17688
17696
|
section: { ...n, questions: r }
|
|
17689
17697
|
}), t;
|
|
17690
17698
|
}
|
|
17691
|
-
function
|
|
17699
|
+
function sx(e, t) {
|
|
17692
17700
|
const n = [];
|
|
17693
17701
|
let r = null, s = [];
|
|
17694
17702
|
function i() {
|
|
@@ -17722,7 +17730,7 @@ function rx(e, t) {
|
|
|
17722
17730
|
a.type === "section-header" ? (i(), r = a.section.id, n.push(a)) : r ? s.push(a) : n.push(a);
|
|
17723
17731
|
return i(), n;
|
|
17724
17732
|
}
|
|
17725
|
-
function
|
|
17733
|
+
function ix(e) {
|
|
17726
17734
|
const t = /* @__PURE__ */ new Set();
|
|
17727
17735
|
for (const n of e)
|
|
17728
17736
|
if (n.type === "section") {
|
|
@@ -17731,7 +17739,7 @@ function sx(e) {
|
|
|
17731
17739
|
}
|
|
17732
17740
|
return t;
|
|
17733
17741
|
}
|
|
17734
|
-
function
|
|
17742
|
+
function ax({
|
|
17735
17743
|
flatItems: e,
|
|
17736
17744
|
onChange: t
|
|
17737
17745
|
}) {
|
|
@@ -17777,7 +17785,7 @@ function ix({
|
|
|
17777
17785
|
for (const w of d.values())
|
|
17778
17786
|
for (const C of w)
|
|
17779
17787
|
b.add(C);
|
|
17780
|
-
const k =
|
|
17788
|
+
const k = sx(
|
|
17781
17789
|
v,
|
|
17782
17790
|
b
|
|
17783
17791
|
);
|
|
@@ -17820,11 +17828,11 @@ function ix({
|
|
|
17820
17828
|
lastQuestionDialogOpen: s
|
|
17821
17829
|
};
|
|
17822
17830
|
}
|
|
17823
|
-
function
|
|
17831
|
+
function ox({ children: e }) {
|
|
17824
17832
|
const { isDragging: t } = Tn();
|
|
17825
17833
|
return /* @__PURE__ */ c("div", { className: Z("relative @container", t && "select-none"), children: e });
|
|
17826
17834
|
}
|
|
17827
|
-
const
|
|
17835
|
+
const lx = ({
|
|
17828
17836
|
elements: e,
|
|
17829
17837
|
disabled: t,
|
|
17830
17838
|
onChange: n,
|
|
@@ -17850,11 +17858,11 @@ const ox = ({
|
|
|
17850
17858
|
}
|
|
17851
17859
|
} : p),
|
|
17852
17860
|
[e, r]
|
|
17853
|
-
), l = B(() =>
|
|
17861
|
+
), l = B(() => rx(o), [o]), u = B(
|
|
17854
17862
|
() => l.filter((p) => p.type !== "section-end"),
|
|
17855
17863
|
[l]
|
|
17856
17864
|
), d = B(
|
|
17857
|
-
() =>
|
|
17865
|
+
() => ix(o),
|
|
17858
17866
|
[o]
|
|
17859
17867
|
), f = B(() => {
|
|
17860
17868
|
const p = /* @__PURE__ */ new Set();
|
|
@@ -17868,7 +17876,7 @@ const ox = ({
|
|
|
17868
17876
|
handleConfirmLastQuestionMove: h,
|
|
17869
17877
|
handleCancelLastQuestionMove: y,
|
|
17870
17878
|
lastQuestionDialogOpen: S
|
|
17871
|
-
} =
|
|
17879
|
+
} = ax({ flatItems: l, onChange: n });
|
|
17872
17880
|
le(() => {
|
|
17873
17881
|
if (i) {
|
|
17874
17882
|
const p = document.activeElement;
|
|
@@ -17885,7 +17893,7 @@ const ox = ({
|
|
|
17885
17893
|
disallowOptionalQuestions: r,
|
|
17886
17894
|
allowedQuestionTypes: s,
|
|
17887
17895
|
children: [
|
|
17888
|
-
/* @__PURE__ */ c(Ji, { children: /* @__PURE__ */ E(
|
|
17896
|
+
/* @__PURE__ */ c(Ji, { children: /* @__PURE__ */ E(ox, { children: [
|
|
17889
17897
|
g && /* @__PURE__ */ c(xu, { elements: o, onChange: n }),
|
|
17890
17898
|
/* @__PURE__ */ E("div", { className: "relative flex flex-1 flex-col", children: [
|
|
17891
17899
|
/* @__PURE__ */ E(
|
|
@@ -17909,14 +17917,14 @@ const ox = ({
|
|
|
17909
17917
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col", children: u.map((p, v) => {
|
|
17910
17918
|
const b = v === 0 ? "" : f.has(p.id) ? "mt-4" : "mt-8";
|
|
17911
17919
|
return p.type === "section-header" ? /* @__PURE__ */ c(
|
|
17912
|
-
|
|
17920
|
+
Jy,
|
|
17913
17921
|
{
|
|
17914
17922
|
item: p,
|
|
17915
17923
|
className: b
|
|
17916
17924
|
},
|
|
17917
17925
|
p.id
|
|
17918
17926
|
) : /* @__PURE__ */ c(
|
|
17919
|
-
|
|
17927
|
+
Hy,
|
|
17920
17928
|
{
|
|
17921
17929
|
item: p,
|
|
17922
17930
|
showEndOfSection: d.has(p.id),
|
|
@@ -17927,7 +17935,7 @@ const ox = ({
|
|
|
17927
17935
|
}) })
|
|
17928
17936
|
}
|
|
17929
17937
|
),
|
|
17930
|
-
a && /* @__PURE__ */ c(
|
|
17938
|
+
a && /* @__PURE__ */ c(Fy, {})
|
|
17931
17939
|
]
|
|
17932
17940
|
}
|
|
17933
17941
|
),
|
|
@@ -17938,13 +17946,13 @@ const ox = ({
|
|
|
17938
17946
|
initial: { opacity: 0, scale: 0.95 },
|
|
17939
17947
|
animate: { opacity: 1, scale: 1 },
|
|
17940
17948
|
exit: { opacity: 0, scale: 0.95 },
|
|
17941
|
-
children: /* @__PURE__ */ c(
|
|
17949
|
+
children: /* @__PURE__ */ c(ky, {})
|
|
17942
17950
|
}
|
|
17943
17951
|
)
|
|
17944
17952
|
] })
|
|
17945
17953
|
] }) }),
|
|
17946
17954
|
/* @__PURE__ */ c(
|
|
17947
|
-
|
|
17955
|
+
Ty,
|
|
17948
17956
|
{
|
|
17949
17957
|
open: S,
|
|
17950
17958
|
onConfirm: h,
|
|
@@ -17954,7 +17962,7 @@ const ox = ({
|
|
|
17954
17962
|
]
|
|
17955
17963
|
}
|
|
17956
17964
|
);
|
|
17957
|
-
},
|
|
17965
|
+
}, C0 = ye(lx);
|
|
17958
17966
|
function Ct({
|
|
17959
17967
|
titleWidth: e,
|
|
17960
17968
|
descriptionWidth: t,
|
|
@@ -17974,8 +17982,8 @@ function Ct({
|
|
|
17974
17982
|
n
|
|
17975
17983
|
] });
|
|
17976
17984
|
}
|
|
17977
|
-
const wr = /* @__PURE__ */ c(Pe, { className: "h-10 w-full rounded-sm" }), _o = /* @__PURE__ */ c(Pe, { className: "h-24 w-full rounded-sm" }),
|
|
17978
|
-
function
|
|
17985
|
+
const wr = /* @__PURE__ */ c(Pe, { className: "h-10 w-full rounded-sm" }), _o = /* @__PURE__ */ c(Pe, { className: "h-24 w-full rounded-sm" }), cx = /* @__PURE__ */ c(Pe, { className: "h-10 w-56 max-w-full rounded-sm" });
|
|
17986
|
+
function ux() {
|
|
17979
17987
|
return /* @__PURE__ */ c("div", { className: "grid grid-cols-5 gap-2 sm:max-w-80", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ c(Pe, { className: "h-9 rounded-sm" }, t)) });
|
|
17980
17988
|
}
|
|
17981
17989
|
function Co({ count: e }) {
|
|
@@ -17988,7 +17996,7 @@ function Co({ count: e }) {
|
|
|
17988
17996
|
n
|
|
17989
17997
|
)) });
|
|
17990
17998
|
}
|
|
17991
|
-
function
|
|
17999
|
+
function dx() {
|
|
17992
18000
|
return /* @__PURE__ */ c("div", { className: "flex flex-wrap gap-2", children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ c(
|
|
17993
18001
|
Pe,
|
|
17994
18002
|
{
|
|
@@ -17998,7 +18006,7 @@ function ux() {
|
|
|
17998
18006
|
t
|
|
17999
18007
|
)) });
|
|
18000
18008
|
}
|
|
18001
|
-
function
|
|
18009
|
+
function fx() {
|
|
18002
18010
|
return /* @__PURE__ */ c(
|
|
18003
18011
|
"div",
|
|
18004
18012
|
{
|
|
@@ -18033,7 +18041,7 @@ function dx() {
|
|
|
18033
18041
|
{
|
|
18034
18042
|
titleWidth: "58%",
|
|
18035
18043
|
descriptionWidth: "38%",
|
|
18036
|
-
answer: /* @__PURE__ */ c(
|
|
18044
|
+
answer: /* @__PURE__ */ c(ux, {})
|
|
18037
18045
|
}
|
|
18038
18046
|
),
|
|
18039
18047
|
/* @__PURE__ */ c(
|
|
@@ -18058,7 +18066,7 @@ function dx() {
|
|
|
18058
18066
|
{
|
|
18059
18067
|
titleWidth: "60%",
|
|
18060
18068
|
descriptionWidth: "50%",
|
|
18061
|
-
answer:
|
|
18069
|
+
answer: cx
|
|
18062
18070
|
}
|
|
18063
18071
|
),
|
|
18064
18072
|
/* @__PURE__ */ c(
|
|
@@ -18074,7 +18082,7 @@ function dx() {
|
|
|
18074
18082
|
{
|
|
18075
18083
|
titleWidth: "57%",
|
|
18076
18084
|
descriptionWidth: "48%",
|
|
18077
|
-
answer: /* @__PURE__ */ c(
|
|
18085
|
+
answer: /* @__PURE__ */ c(dx, {})
|
|
18078
18086
|
}
|
|
18079
18087
|
),
|
|
18080
18088
|
/* @__PURE__ */ c(
|
|
@@ -18098,7 +18106,7 @@ function dx() {
|
|
|
18098
18106
|
}
|
|
18099
18107
|
);
|
|
18100
18108
|
}
|
|
18101
|
-
function
|
|
18109
|
+
function hx() {
|
|
18102
18110
|
return /* @__PURE__ */ E(
|
|
18103
18111
|
"div",
|
|
18104
18112
|
{
|
|
@@ -18123,7 +18131,7 @@ function fx() {
|
|
|
18123
18131
|
}
|
|
18124
18132
|
);
|
|
18125
18133
|
}
|
|
18126
|
-
function
|
|
18134
|
+
function mx(e) {
|
|
18127
18135
|
const [t, n] = ee(0), [r, s] = ee(null), i = e.length, a = i > 0 ? t / i * 100 : 0, o = r ?? a, l = e[t], u = t === 0, d = t === i - 1, f = P(() => {
|
|
18128
18136
|
s(null), n((S) => Math.min(S + 1, i - 1));
|
|
18129
18137
|
}, [i]), m = P(() => {
|
|
@@ -18146,7 +18154,7 @@ function hx(e) {
|
|
|
18146
18154
|
setProgress: y
|
|
18147
18155
|
};
|
|
18148
18156
|
}
|
|
18149
|
-
function
|
|
18157
|
+
function px({
|
|
18150
18158
|
value: e,
|
|
18151
18159
|
onChange: t,
|
|
18152
18160
|
onBlur: n,
|
|
@@ -18169,7 +18177,7 @@ function mx({
|
|
|
18169
18177
|
o.value
|
|
18170
18178
|
)) });
|
|
18171
18179
|
}
|
|
18172
|
-
function
|
|
18180
|
+
function gx({ checked: e }) {
|
|
18173
18181
|
return /* @__PURE__ */ c(
|
|
18174
18182
|
"div",
|
|
18175
18183
|
{
|
|
@@ -18219,7 +18227,7 @@ function ko({
|
|
|
18219
18227
|
onCheckedChange: () => m(y.value),
|
|
18220
18228
|
hideLabel: !0
|
|
18221
18229
|
}
|
|
18222
|
-
) : /* @__PURE__ */ c(
|
|
18230
|
+
) : /* @__PURE__ */ c(gx, { checked: !!S }),
|
|
18223
18231
|
/* @__PURE__ */ c("p", { className: "flex-1 font-medium", children: y.label }),
|
|
18224
18232
|
d ? /* @__PURE__ */ c("div", { className: "min-h-8 p-1", children: /* @__PURE__ */ c(
|
|
18225
18233
|
Mt,
|
|
@@ -18235,7 +18243,7 @@ function ko({
|
|
|
18235
18243
|
);
|
|
18236
18244
|
}) });
|
|
18237
18245
|
}
|
|
18238
|
-
const
|
|
18246
|
+
const vx = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}(:\d+)?(\/[^\s]*)?$/i;
|
|
18239
18247
|
function vr(e, t) {
|
|
18240
18248
|
return Wi().optional().superRefine((n, r) => {
|
|
18241
18249
|
e && (!n || n.trim() === "") && r.addIssue({
|
|
@@ -18244,7 +18252,7 @@ function vr(e, t) {
|
|
|
18244
18252
|
});
|
|
18245
18253
|
});
|
|
18246
18254
|
}
|
|
18247
|
-
function
|
|
18255
|
+
function bx(e, t) {
|
|
18248
18256
|
return Wi().optional().superRefine((n, r) => {
|
|
18249
18257
|
if (e && (!n || n.trim() === "")) {
|
|
18250
18258
|
r.addIssue({
|
|
@@ -18253,7 +18261,7 @@ function vx(e, t) {
|
|
|
18253
18261
|
});
|
|
18254
18262
|
return;
|
|
18255
18263
|
}
|
|
18256
|
-
n && !
|
|
18264
|
+
n && !vx.test(n) && r.addIssue({
|
|
18257
18265
|
code: "custom",
|
|
18258
18266
|
message: t("surveyFormBuilder.answer.invalidUrl")
|
|
18259
18267
|
});
|
|
@@ -18267,7 +18275,7 @@ function No(e, t) {
|
|
|
18267
18275
|
});
|
|
18268
18276
|
});
|
|
18269
18277
|
}
|
|
18270
|
-
function
|
|
18278
|
+
function yx(e, t) {
|
|
18271
18279
|
return lv(Wi()).optional().superRefine((n, r) => {
|
|
18272
18280
|
e && (!n || n.length === 0) && r.addIssue({
|
|
18273
18281
|
code: "custom",
|
|
@@ -18275,7 +18283,7 @@ function bx(e, t) {
|
|
|
18275
18283
|
});
|
|
18276
18284
|
});
|
|
18277
18285
|
}
|
|
18278
|
-
function
|
|
18286
|
+
function xx(e, t) {
|
|
18279
18287
|
return iv().optional().superRefine((n, r) => {
|
|
18280
18288
|
e && !n && r.addIssue({
|
|
18281
18289
|
code: "custom",
|
|
@@ -18405,7 +18413,7 @@ function Ao(e, t, n, r = !1, s = r) {
|
|
|
18405
18413
|
placeholder: t("surveyFormBuilder.answer.linkPlaceholder"),
|
|
18406
18414
|
disabled: s
|
|
18407
18415
|
};
|
|
18408
|
-
return Et(
|
|
18416
|
+
return Et(bx(!!e.required, t), {
|
|
18409
18417
|
...a,
|
|
18410
18418
|
fieldType: "custom",
|
|
18411
18419
|
render: ({ value: u, onChange: d, onBlur: f, error: m }) => /* @__PURE__ */ c(Xe, { ...o, children: /* @__PURE__ */ c("div", { className: "px-0.5", children: /* @__PURE__ */ c(
|
|
@@ -18429,7 +18437,7 @@ function Ao(e, t, n, r = !1, s = r) {
|
|
|
18429
18437
|
clearable: !e.required,
|
|
18430
18438
|
disabled: s
|
|
18431
18439
|
};
|
|
18432
|
-
return Et(
|
|
18440
|
+
return Et(xx(!!e.required, t), {
|
|
18433
18441
|
...a,
|
|
18434
18442
|
fieldType: "custom",
|
|
18435
18443
|
render: ({ value: u, onChange: d, onBlur: f, error: m }) => /* @__PURE__ */ c(Xe, { ...o, children: /* @__PURE__ */ c("div", { className: "px-0.5", children: /* @__PURE__ */ c(
|
|
@@ -18503,7 +18511,7 @@ function Ao(e, t, n, r = !1, s = r) {
|
|
|
18503
18511
|
disabled: s,
|
|
18504
18512
|
showAnswerValidation: r
|
|
18505
18513
|
};
|
|
18506
|
-
return Et(
|
|
18514
|
+
return Et(yx(!!e.required, t), {
|
|
18507
18515
|
...a,
|
|
18508
18516
|
fieldType: "custom",
|
|
18509
18517
|
fieldConfig: u,
|
|
@@ -18528,7 +18536,7 @@ function Ao(e, t, n, r = !1, s = r) {
|
|
|
18528
18536
|
fieldType: "custom",
|
|
18529
18537
|
fieldConfig: u,
|
|
18530
18538
|
render: ({ value: d, onChange: f, onBlur: m, config: h }) => /* @__PURE__ */ c(Xe, { ...o, children: /* @__PURE__ */ c(
|
|
18531
|
-
|
|
18539
|
+
px,
|
|
18532
18540
|
{
|
|
18533
18541
|
value: d,
|
|
18534
18542
|
onChange: f,
|
|
@@ -18546,7 +18554,7 @@ function Ao(e, t, n, r = !1, s = r) {
|
|
|
18546
18554
|
});
|
|
18547
18555
|
}
|
|
18548
18556
|
}
|
|
18549
|
-
function
|
|
18557
|
+
function wx(e, t, n, r, s, i, a = !1, o = a) {
|
|
18550
18558
|
return B(() => {
|
|
18551
18559
|
const l = {}, u = {}, d = {}, f = wu(e), m = t === "stepped";
|
|
18552
18560
|
for (const h of e)
|
|
@@ -18595,7 +18603,7 @@ function xx(e, t, n, r, s, i, a = !1, o = a) {
|
|
|
18595
18603
|
}
|
|
18596
18604
|
const zs = () => {
|
|
18597
18605
|
};
|
|
18598
|
-
function
|
|
18606
|
+
function k0({
|
|
18599
18607
|
elements: e,
|
|
18600
18608
|
onSubmit: t,
|
|
18601
18609
|
mode: n,
|
|
@@ -18616,7 +18624,7 @@ function C0({
|
|
|
18616
18624
|
const { t: g } = Ee(), p = l === "fullscreen", v = l === "fullscreen" ? "center" : l, [b, k] = ee(p), { formRef: _, submit: w, isSubmitting: C, hasErrors: F } = ps(), D = W({}), I = B(
|
|
18617
18625
|
() => wu(e),
|
|
18618
18626
|
[e]
|
|
18619
|
-
), N =
|
|
18627
|
+
), N = mx(I), T = I.length > 0, R = {
|
|
18620
18628
|
title: y?.empty?.title ?? g("surveyAnsweringForm.labels.empty.title"),
|
|
18621
18629
|
description: y?.empty?.description ?? g("surveyAnsweringForm.labels.empty.description"),
|
|
18622
18630
|
emoji: y?.empty?.emoji ?? g("surveyAnsweringForm.labels.empty.emoji")
|
|
@@ -18624,7 +18632,7 @@ function C0({
|
|
|
18624
18632
|
schema: te,
|
|
18625
18633
|
defaultValues: me,
|
|
18626
18634
|
sections: G
|
|
18627
|
-
} =
|
|
18635
|
+
} = wx(
|
|
18628
18636
|
e,
|
|
18629
18637
|
n,
|
|
18630
18638
|
g,
|
|
@@ -18761,7 +18769,7 @@ function C0({
|
|
|
18761
18769
|
...i
|
|
18762
18770
|
}
|
|
18763
18771
|
) }),
|
|
18764
|
-
h ? n === "stepped" ? /* @__PURE__ */ c(
|
|
18772
|
+
h ? n === "stepped" ? /* @__PURE__ */ c(hx, {}) : /* @__PURE__ */ c(fx, {}) : T ? null : /* @__PURE__ */ c(
|
|
18765
18773
|
Hp,
|
|
18766
18774
|
{
|
|
18767
18775
|
display: "flex",
|
|
@@ -18809,7 +18817,7 @@ function C0({
|
|
|
18809
18817
|
}
|
|
18810
18818
|
);
|
|
18811
18819
|
}
|
|
18812
|
-
const
|
|
18820
|
+
const Sx = ({ benefits: e }) => /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: e.map((t, n) => /* @__PURE__ */ c(_x, { text: t }, n)) }), _x = ({ text: e }) => /* @__PURE__ */ E("div", { className: "flex flex-row items-start gap-2", children: [
|
|
18813
18821
|
/* @__PURE__ */ c(Mt, { icon: _d, size: "md", className: "text-f1-icon-positive" }),
|
|
18814
18822
|
/* @__PURE__ */ c("span", { children: e })
|
|
18815
18823
|
] }), Su = st(
|
|
@@ -18859,7 +18867,7 @@ const wx = ({ benefits: e }) => /* @__PURE__ */ c("div", { className: "flex flex
|
|
|
18859
18867
|
] }),
|
|
18860
18868
|
/* @__PURE__ */ c("h2", { className: "font-bold text-xl text-f1-foreground", children: e })
|
|
18861
18869
|
] }),
|
|
18862
|
-
/* @__PURE__ */ c(
|
|
18870
|
+
/* @__PURE__ */ c(Sx, { benefits: n })
|
|
18863
18871
|
] }),
|
|
18864
18872
|
r && /* @__PURE__ */ c("div", { className: "flex gap-3", children: r })
|
|
18865
18873
|
] })
|
|
@@ -18868,8 +18876,8 @@ const wx = ({ benefits: e }) => /* @__PURE__ */ c("div", { className: "flex flex
|
|
|
18868
18876
|
)
|
|
18869
18877
|
);
|
|
18870
18878
|
Su.displayName = "ProductBlankslate";
|
|
18871
|
-
const
|
|
18872
|
-
function
|
|
18879
|
+
const Cx = ye(Su);
|
|
18880
|
+
function kx({
|
|
18873
18881
|
isOpen: e,
|
|
18874
18882
|
onClose: t,
|
|
18875
18883
|
title: n,
|
|
@@ -18918,7 +18926,7 @@ function Cx({
|
|
|
18918
18926
|
}
|
|
18919
18927
|
) });
|
|
18920
18928
|
}
|
|
18921
|
-
function
|
|
18929
|
+
function Nx({
|
|
18922
18930
|
isOpen: e,
|
|
18923
18931
|
onClose: t,
|
|
18924
18932
|
title: n,
|
|
@@ -18954,7 +18962,7 @@ function kx({
|
|
|
18954
18962
|
}, I = w;
|
|
18955
18963
|
return /* @__PURE__ */ E(yt, { children: [
|
|
18956
18964
|
/* @__PURE__ */ c(
|
|
18957
|
-
|
|
18965
|
+
kx,
|
|
18958
18966
|
{
|
|
18959
18967
|
isOpen: v,
|
|
18960
18968
|
onClose: D,
|
|
@@ -18962,7 +18970,7 @@ function kx({
|
|
|
18962
18970
|
module: m,
|
|
18963
18971
|
portalContainer: y,
|
|
18964
18972
|
children: /* @__PURE__ */ c("div", { className: "pb-4 pl-4", children: /* @__PURE__ */ c(
|
|
18965
|
-
|
|
18973
|
+
Cx,
|
|
18966
18974
|
{
|
|
18967
18975
|
title: n,
|
|
18968
18976
|
image: r,
|
|
@@ -19014,8 +19022,8 @@ function kx({
|
|
|
19014
19022
|
)
|
|
19015
19023
|
] });
|
|
19016
19024
|
}
|
|
19017
|
-
const
|
|
19018
|
-
function
|
|
19025
|
+
const N0 = ye(Nx);
|
|
19026
|
+
function Dx({
|
|
19019
19027
|
mediaUrl: e,
|
|
19020
19028
|
title: t,
|
|
19021
19029
|
description: n,
|
|
@@ -19098,7 +19106,7 @@ function Nx({
|
|
|
19098
19106
|
) })
|
|
19099
19107
|
] }) });
|
|
19100
19108
|
}
|
|
19101
|
-
const
|
|
19109
|
+
const Ax = ye(Dx), _u = st(
|
|
19102
19110
|
function({ primaryAction: t, secondaryAction: n, ...r }, s) {
|
|
19103
19111
|
const i = (l) => l.variant === "promote" ? /* @__PURE__ */ c(
|
|
19104
19112
|
Yo,
|
|
@@ -19142,8 +19150,8 @@ const Dx = ye(Nx), _u = st(
|
|
|
19142
19150
|
}
|
|
19143
19151
|
);
|
|
19144
19152
|
_u.displayName = "UpsellingBanner";
|
|
19145
|
-
const
|
|
19146
|
-
function
|
|
19153
|
+
const D0 = ye(_u);
|
|
19154
|
+
function Fx({
|
|
19147
19155
|
isOpen: e,
|
|
19148
19156
|
setIsOpen: t,
|
|
19149
19157
|
label: n,
|
|
@@ -19199,7 +19207,7 @@ function Ax({
|
|
|
19199
19207
|
align: o,
|
|
19200
19208
|
className: "w-fit border-none bg-transparent p-2 shadow-none",
|
|
19201
19209
|
children: /* @__PURE__ */ c(
|
|
19202
|
-
|
|
19210
|
+
Ax,
|
|
19203
19211
|
{
|
|
19204
19212
|
mediaUrl: u,
|
|
19205
19213
|
title: d,
|
|
@@ -19230,16 +19238,16 @@ function Ax({
|
|
|
19230
19238
|
)
|
|
19231
19239
|
] });
|
|
19232
19240
|
}
|
|
19233
|
-
const
|
|
19241
|
+
const A0 = ye(Fx), F0 = ft(
|
|
19234
19242
|
"F0AnalyticsDashboard",
|
|
19235
19243
|
Od
|
|
19236
|
-
),
|
|
19244
|
+
), Tx = Ft(
|
|
19237
19245
|
null
|
|
19238
|
-
),
|
|
19246
|
+
), Ox = ({ children: e, fullScreen: t = !0 }) => {
|
|
19239
19247
|
const n = W(null), [r, s] = ee(n.current);
|
|
19240
19248
|
return Vd(() => {
|
|
19241
19249
|
s(n.current);
|
|
19242
|
-
}, []), /* @__PURE__ */ c(
|
|
19250
|
+
}, []), /* @__PURE__ */ c(Tx.Provider, { value: { element: r }, children: /* @__PURE__ */ c(
|
|
19243
19251
|
"div",
|
|
19244
19252
|
{
|
|
19245
19253
|
ref: n,
|
|
@@ -19250,9 +19258,9 @@ const D0 = ye(Ax), A0 = ft(
|
|
|
19250
19258
|
children: e
|
|
19251
19259
|
}
|
|
19252
19260
|
) });
|
|
19253
|
-
},
|
|
19261
|
+
}, Ex = ({
|
|
19254
19262
|
children: e
|
|
19255
|
-
}) => /* @__PURE__ */ c(Bd, { reducedMotion: "user", children: e }),
|
|
19263
|
+
}) => /* @__PURE__ */ c(Bd, { reducedMotion: "user", children: e }), T0 = ({
|
|
19256
19264
|
children: e,
|
|
19257
19265
|
layout: t,
|
|
19258
19266
|
link: n,
|
|
@@ -19264,13 +19272,13 @@ const D0 = ye(Ax), A0 = ft(
|
|
|
19264
19272
|
dataCollectionStorageHandler: l,
|
|
19265
19273
|
showExperimentalWarnings: u = !1,
|
|
19266
19274
|
renderDataTestIdAttribute: d = !1
|
|
19267
|
-
}) => /* @__PURE__ */ c(
|
|
19275
|
+
}) => /* @__PURE__ */ c(Ex, { children: /* @__PURE__ */ c(
|
|
19268
19276
|
Ed,
|
|
19269
19277
|
{
|
|
19270
19278
|
isDev: o,
|
|
19271
19279
|
showExperimentalWarnings: u,
|
|
19272
19280
|
renderDataTestIdAttribute: d,
|
|
19273
|
-
children: /* @__PURE__ */ c(Id, { ...a, children: /* @__PURE__ */ c(Rd, { ...i, children: /* @__PURE__ */ c(Pd, { ...n, children: /* @__PURE__ */ c(
|
|
19281
|
+
children: /* @__PURE__ */ c(Id, { ...a, children: /* @__PURE__ */ c(Rd, { ...i, children: /* @__PURE__ */ c(Pd, { ...n, children: /* @__PURE__ */ c(Ox, { ...t, children: /* @__PURE__ */ c(Ld, { children: /* @__PURE__ */ c(
|
|
19274
19282
|
Lf,
|
|
19275
19283
|
{
|
|
19276
19284
|
initiallyEnabled: r,
|
|
@@ -19284,7 +19292,7 @@ const D0 = ye(Ax), A0 = ft(
|
|
|
19284
19292
|
}
|
|
19285
19293
|
) }) }) }) }) })
|
|
19286
19294
|
}
|
|
19287
|
-
) }), Fo = (e) => `datacollection-${e}`,
|
|
19295
|
+
) }), Fo = (e) => `datacollection-${e}`, O0 = {
|
|
19288
19296
|
get: async (e) => JSON.parse(
|
|
19289
19297
|
localStorage.getItem(Fo(e)) ?? "{}"
|
|
19290
19298
|
),
|
|
@@ -19293,173 +19301,173 @@ const D0 = ye(Ax), A0 = ft(
|
|
|
19293
19301
|
}
|
|
19294
19302
|
};
|
|
19295
19303
|
export {
|
|
19296
|
-
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19302
|
-
|
|
19303
|
-
|
|
19304
|
+
Ww as AiChatTranslationsProvider,
|
|
19305
|
+
Zx as AreaChart,
|
|
19306
|
+
R0 as Await,
|
|
19307
|
+
Wx as BarChart,
|
|
19308
|
+
Ux as CategoryBarChart,
|
|
19309
|
+
P0 as ChatSpinner,
|
|
19310
|
+
Xx as ComboChart,
|
|
19311
|
+
Bx as Dashboard,
|
|
19304
19312
|
Gu as DataTestIdWrapper,
|
|
19305
|
-
|
|
19306
|
-
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
|
|
19311
|
-
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19313
|
+
L0 as DndProvider,
|
|
19314
|
+
M0 as EmojiImage,
|
|
19315
|
+
j0 as F0ActionItem,
|
|
19316
|
+
B0 as F0AiChat,
|
|
19317
|
+
V0 as F0AiChatProvider,
|
|
19318
|
+
$0 as F0AiChatTextArea,
|
|
19319
|
+
v0 as F0AiFormRegistryProvider,
|
|
19320
|
+
z0 as F0AiFullscreenChat,
|
|
19321
|
+
Uw as F0AiMask,
|
|
19322
|
+
u0 as F0Alert,
|
|
19323
|
+
F0 as F0AnalyticsDashboard,
|
|
19324
|
+
Qw as F0AuraVoiceAnimation,
|
|
19325
|
+
q0 as F0Avatar,
|
|
19318
19326
|
Zu as F0AvatarAlert,
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19327
|
+
Z0 as F0AvatarCompany,
|
|
19328
|
+
Bw as F0AvatarDate,
|
|
19329
|
+
W0 as F0AvatarEmoji,
|
|
19322
19330
|
ed as F0AvatarFile,
|
|
19323
19331
|
zu as F0AvatarIcon,
|
|
19324
|
-
|
|
19332
|
+
U0 as F0AvatarList,
|
|
19325
19333
|
Ko as F0AvatarModule,
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19334
|
+
Q0 as F0AvatarPerson,
|
|
19335
|
+
G0 as F0AvatarTeam,
|
|
19336
|
+
Yx as F0BigNumber,
|
|
19329
19337
|
Hp as F0Box,
|
|
19330
19338
|
ze as F0Button,
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19339
|
+
H0 as F0ButtonDropdown,
|
|
19340
|
+
K0 as F0ButtonToggle,
|
|
19341
|
+
X0 as F0Card,
|
|
19334
19342
|
yi as F0Checkbox,
|
|
19335
|
-
|
|
19343
|
+
l0 as F0ChipList,
|
|
19336
19344
|
Mo as F0DatePicker,
|
|
19337
19345
|
$o as F0Dialog,
|
|
19338
19346
|
gd as F0DialogContext,
|
|
19339
|
-
|
|
19347
|
+
Y0 as F0DialogProvider,
|
|
19340
19348
|
ig as F0DurationInput,
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19349
|
+
J0 as F0EventCatcherProvider,
|
|
19350
|
+
h0 as F0FilterPickerContent,
|
|
19351
|
+
y0 as F0Form,
|
|
19344
19352
|
kt as F0FormField,
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19353
|
+
S0 as F0GridStack,
|
|
19354
|
+
Gw as F0HILActionConfirmation,
|
|
19355
|
+
x0 as F0Heading,
|
|
19348
19356
|
Mt as F0Icon,
|
|
19349
19357
|
Wu as F0Link,
|
|
19350
19358
|
cd as F0OneIcon,
|
|
19351
|
-
|
|
19352
|
-
|
|
19359
|
+
ew as F0OneSwitch,
|
|
19360
|
+
T0 as F0Provider,
|
|
19353
19361
|
vn as F0Select,
|
|
19354
|
-
|
|
19355
|
-
|
|
19362
|
+
_0 as F0TableOfContentPopover,
|
|
19363
|
+
tw as F0TagAlert,
|
|
19356
19364
|
Mu as F0TagBalance,
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19365
|
+
nw as F0TagCompany,
|
|
19366
|
+
rw as F0TagDot,
|
|
19367
|
+
sw as F0TagList,
|
|
19368
|
+
iw as F0TagPerson,
|
|
19361
19369
|
wd as F0TagRaw,
|
|
19362
19370
|
Sd as F0TagStatus,
|
|
19363
|
-
|
|
19371
|
+
aw as F0TagTeam,
|
|
19364
19372
|
Kf as F0Text,
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19373
|
+
Yb as F0WizardForm,
|
|
19374
|
+
ow as GROUP_ID_SYMBOL,
|
|
19375
|
+
qx as HomeLayout,
|
|
19376
|
+
Vx as Layout,
|
|
19377
|
+
Qx as LineChart,
|
|
19378
|
+
lw as OneFilterPicker,
|
|
19379
|
+
Gx as PieChart,
|
|
19372
19380
|
Lf as PrivacyModeProvider,
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19381
|
+
Cx as ProductBlankslate,
|
|
19382
|
+
Vw as ProductCard,
|
|
19383
|
+
N0 as ProductModal,
|
|
19384
|
+
Ax as ProductWidget,
|
|
19385
|
+
Kx as ProgressBarChart,
|
|
19386
|
+
$x as StandardLayout,
|
|
19387
|
+
k0 as SurveyAnsweringForm,
|
|
19388
|
+
C0 as SurveyFormBuilder,
|
|
19389
|
+
w0 as Tag,
|
|
19390
|
+
cw as TagCounter,
|
|
19391
|
+
zx as TwoColumnLayout,
|
|
19384
19392
|
Xo as UpsellRequestResponseDialog,
|
|
19385
|
-
|
|
19393
|
+
D0 as UpsellingBanner,
|
|
19386
19394
|
Yo as UpsellingButton,
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19395
|
+
A0 as UpsellingPopover,
|
|
19396
|
+
Hx as VerticalBarChart,
|
|
19397
|
+
Hw as actionItemStatuses,
|
|
19398
|
+
Kw as aiTranslations,
|
|
19399
|
+
jx as avatarVariants,
|
|
19400
|
+
uw as buildTranslations,
|
|
19401
|
+
r0 as buttonDropdownModes,
|
|
19402
|
+
n0 as buttonDropdownSizes,
|
|
19403
|
+
t0 as buttonDropdownVariants,
|
|
19404
|
+
e0 as buttonSizes,
|
|
19405
|
+
s0 as buttonToggleSizes,
|
|
19406
|
+
i0 as buttonToggleVariants,
|
|
19407
|
+
Jx as buttonVariants,
|
|
19408
|
+
dw as cardImageAspectRatios,
|
|
19409
|
+
fw as cardImageFits,
|
|
19410
|
+
hw as cardImageSizes,
|
|
19411
|
+
ix as computeSectionEndIds,
|
|
19412
|
+
mw as createAtlaskitDriver,
|
|
19413
|
+
pw as createDataSourceDefinition,
|
|
19406
19414
|
Wf as createPageLayoutBlock,
|
|
19407
19415
|
Uf as createPageLayoutBlockGroup,
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19416
|
+
O0 as dataCollectionLocalStorageHandler,
|
|
19417
|
+
c0 as datepickerSizes,
|
|
19418
|
+
e1 as defaultTranslations,
|
|
19419
|
+
g0 as defineAvailableForm,
|
|
19420
|
+
b0 as describeFormSchema,
|
|
19421
|
+
d0 as durationInputSizes,
|
|
19414
19422
|
Jp as durationUnits,
|
|
19415
19423
|
ds as evaluateRenderIf,
|
|
19416
19424
|
ft as experimental,
|
|
19417
19425
|
Et as f0FormField,
|
|
19418
19426
|
Ea as fieldsToSeconds,
|
|
19419
|
-
|
|
19427
|
+
rx as flattenElements,
|
|
19420
19428
|
un as generateAnchorId,
|
|
19421
|
-
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19429
|
+
gw as getAnimationVariants,
|
|
19430
|
+
vw as getCanvasEntity,
|
|
19431
|
+
bw as getDataSourcePaginationType,
|
|
19432
|
+
yw as getEmojiLabel,
|
|
19425
19433
|
an as getF0Config,
|
|
19426
|
-
|
|
19427
|
-
|
|
19434
|
+
p0 as getSchemaDefinition,
|
|
19435
|
+
m0 as hasF0Config,
|
|
19428
19436
|
Mc as inferFieldType,
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19437
|
+
sx as injectSectionEnds,
|
|
19438
|
+
xw as isInfiniteScrollPagination,
|
|
19439
|
+
ww as isPageBasedPagination,
|
|
19432
19440
|
Oe as isZodType,
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19441
|
+
a0 as linkVariants,
|
|
19442
|
+
Sw as modules,
|
|
19443
|
+
Xw as oneIconSizes,
|
|
19444
|
+
$w as predefinedPresets,
|
|
19437
19445
|
So as reconstructElements,
|
|
19438
|
-
|
|
19446
|
+
f0 as secondsToFields,
|
|
19439
19447
|
Ns as secondsToVisibleFields,
|
|
19440
|
-
|
|
19441
|
-
|
|
19448
|
+
zw as selectSizes,
|
|
19449
|
+
o0 as tagDotColors,
|
|
19442
19450
|
rt as unwrapZodSchema,
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19451
|
+
_w as useAiChat,
|
|
19452
|
+
Yw as useAiChatTranslations,
|
|
19453
|
+
Cw as useData,
|
|
19454
|
+
kw as useDataSource,
|
|
19455
|
+
Nw as useDefaultCopilotActions,
|
|
19456
|
+
Dw as useDndEvents,
|
|
19457
|
+
Aw as useDraggable,
|
|
19458
|
+
Fw as useDroppableList,
|
|
19459
|
+
Tw as useEmojiConfetti,
|
|
19460
|
+
iy as useF0AiFormRegistry,
|
|
19461
|
+
Ow as useF0Dialog,
|
|
19454
19462
|
ps as useF0Form,
|
|
19455
19463
|
au as useF0FormDefinition,
|
|
19456
|
-
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19464
|
+
Ew as useGroups,
|
|
19465
|
+
Iw as useMessageSourcesAction,
|
|
19466
|
+
Rw as useOrchestratorThinkingAction,
|
|
19467
|
+
qw as usePrivacyMode,
|
|
19468
|
+
Pw as useReducedMotion,
|
|
19461
19469
|
Wc as useSchemaDefinition,
|
|
19462
|
-
|
|
19463
|
-
|
|
19470
|
+
Lw as useSelectable,
|
|
19471
|
+
Mw as useXRay,
|
|
19464
19472
|
ye as withDataTestId
|
|
19465
19473
|
};
|