@arudovwen/form-builder-react 1.4.40 → 1.4.41
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/form-builder.es.js +303 -302
- package/dist/form-builder.umd.js +11 -11
- package/package.json +1 -1
package/dist/form-builder.es.js
CHANGED
|
@@ -27,11 +27,11 @@ function jo() {
|
|
|
27
27
|
ie = 1;
|
|
28
28
|
var i = ri, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
29
29
|
function d(t, u, r) {
|
|
30
|
-
var c,
|
|
31
|
-
r !== void 0 && (
|
|
32
|
-
for (c in u) s.call(u, c) && !l.hasOwnProperty(c) && (
|
|
33
|
-
if (t && t.defaultProps) for (c in u = t.defaultProps, u)
|
|
34
|
-
return { $$typeof: e, type: t, key:
|
|
30
|
+
var c, h = {}, v = null, g = null;
|
|
31
|
+
r !== void 0 && (v = "" + r), u.key !== void 0 && (v = "" + u.key), u.ref !== void 0 && (g = u.ref);
|
|
32
|
+
for (c in u) s.call(u, c) && !l.hasOwnProperty(c) && (h[c] = u[c]);
|
|
33
|
+
if (t && t.defaultProps) for (c in u = t.defaultProps, u) h[c] === void 0 && (h[c] = u[c]);
|
|
34
|
+
return { $$typeof: e, type: t, key: v, ref: g, props: h, _owner: a.current };
|
|
35
35
|
}
|
|
36
36
|
return Gi.Fragment = o, Gi.jsx = d, Gi.jsxs = d, Gi;
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ var Hi = {};
|
|
|
48
48
|
var ne;
|
|
49
49
|
function ko() {
|
|
50
50
|
return ne || (ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
-
var i = ri, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), t = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), r = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"),
|
|
51
|
+
var i = ri, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), t = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), r = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, f = "@@iterator";
|
|
52
52
|
function m(b) {
|
|
53
53
|
if (b === null || typeof b != "object")
|
|
54
54
|
return null;
|
|
@@ -76,7 +76,7 @@ function ko() {
|
|
|
76
76
|
var N = !1, S = !1, A = !1, C = !1, K = !1, Q;
|
|
77
77
|
Q = Symbol.for("react.module.reference");
|
|
78
78
|
function W(b) {
|
|
79
|
-
return !!(typeof b == "string" || typeof b == "function" || b === s || b === l || K || b === a || b === r || b === c || C || b === g || N || S || A || typeof b == "object" && b !== null && (b.$$typeof ===
|
|
79
|
+
return !!(typeof b == "string" || typeof b == "function" || b === s || b === l || K || b === a || b === r || b === c || C || b === g || N || S || A || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === h || b.$$typeof === d || b.$$typeof === t || b.$$typeof === u || // This needs to include all possible module reference object
|
|
80
80
|
// types supported by any Flight configuration anywhere since
|
|
81
81
|
// we don't know which Flight build this will end up being used
|
|
82
82
|
// with.
|
|
@@ -123,10 +123,10 @@ function ko() {
|
|
|
123
123
|
return M(T._context) + ".Provider";
|
|
124
124
|
case u:
|
|
125
125
|
return Z(b, b.render, "ForwardRef");
|
|
126
|
-
case
|
|
126
|
+
case h:
|
|
127
127
|
var V = b.displayName || null;
|
|
128
128
|
return V !== null ? V : E(b.type) || "Memo";
|
|
129
|
-
case
|
|
129
|
+
case v: {
|
|
130
130
|
var X = b, ei = X._payload, $ = X._init;
|
|
131
131
|
try {
|
|
132
132
|
return E($(ei));
|
|
@@ -313,9 +313,9 @@ function ko() {
|
|
|
313
313
|
switch (b.$$typeof) {
|
|
314
314
|
case u:
|
|
315
315
|
return ji(b.render);
|
|
316
|
-
case
|
|
316
|
+
case h:
|
|
317
317
|
return zi(b.type, k, T);
|
|
318
|
-
case
|
|
318
|
+
case v: {
|
|
319
319
|
var V = b, X = V._payload, ei = V._init;
|
|
320
320
|
try {
|
|
321
321
|
return zi(ei(X), k, T);
|
|
@@ -553,7 +553,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
553
553
|
T = k.propTypes;
|
|
554
554
|
else if (typeof k == "object" && (k.$$typeof === u || // Note: Memo only checks outer props here.
|
|
555
555
|
// Inner props are checked in the reconciler.
|
|
556
|
-
k.$$typeof ===
|
|
556
|
+
k.$$typeof === h))
|
|
557
557
|
T = k.propTypes;
|
|
558
558
|
else
|
|
559
559
|
return;
|
|
@@ -647,12 +647,12 @@ const pi = ro(void 0), oe = {
|
|
|
647
647
|
questionData: [],
|
|
648
648
|
disabled: !1
|
|
649
649
|
}, Se = ({ children: i }) => {
|
|
650
|
-
const [e, o] = R({}), [s, a] = R({}), [l, d] = R([oe]), [t, u] = R(!1), [r, c] = R(null), [
|
|
650
|
+
const [e, o] = R({}), [s, a] = R({}), [l, d] = R([oe]), [t, u] = R(!1), [r, c] = R(null), [h, v] = R([
|
|
651
651
|
0
|
|
652
652
|
]), [g, y] = R(""), f = ri.useCallback(() => {
|
|
653
653
|
}, []), m = ri.useCallback(() => {
|
|
654
654
|
const M = xi();
|
|
655
|
-
d((E) => [...E, { ...oe, id: M }]), c(M),
|
|
655
|
+
d((E) => [...E, { ...oe, id: M }]), c(M), v([l.length]);
|
|
656
656
|
}, [l]), p = ri.useCallback((M) => {
|
|
657
657
|
d(
|
|
658
658
|
(E) => E.filter((P) => P.id !== M)
|
|
@@ -882,8 +882,8 @@ const pi = ro(void 0), oe = {
|
|
|
882
882
|
setIsDragging: u,
|
|
883
883
|
selectedSection: r,
|
|
884
884
|
setSelectedSection: c,
|
|
885
|
-
activeSections:
|
|
886
|
-
setActiveSections:
|
|
885
|
+
activeSections: h,
|
|
886
|
+
setActiveSections: v,
|
|
887
887
|
updateGridElement: C,
|
|
888
888
|
answerData: e,
|
|
889
889
|
setAnswerData: o,
|
|
@@ -906,7 +906,7 @@ const pi = ro(void 0), oe = {
|
|
|
906
906
|
W,
|
|
907
907
|
t,
|
|
908
908
|
r,
|
|
909
|
-
|
|
909
|
+
h,
|
|
910
910
|
C,
|
|
911
911
|
e,
|
|
912
912
|
g,
|
|
@@ -1113,15 +1113,15 @@ const Nn = ({
|
|
|
1113
1113
|
maxDate: t,
|
|
1114
1114
|
showYearDropdown: u
|
|
1115
1115
|
}) => {
|
|
1116
|
-
const r = i ? new Date(i) : null, [c,
|
|
1116
|
+
const r = i ? new Date(i) : null, [c, h] = R(r);
|
|
1117
1117
|
O(() => {
|
|
1118
1118
|
const g = i ? new Date(i) : null;
|
|
1119
|
-
(g && c && g.getTime() !== c.getTime() || !g && c || g && !c) &&
|
|
1119
|
+
(g && c && g.getTime() !== c.getTime() || !g && c || g && !c) && h(g);
|
|
1120
1120
|
}, [i]), O(() => {
|
|
1121
1121
|
e && e(a, c);
|
|
1122
1122
|
}, [c, e, a]);
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1123
|
+
const v = (g) => {
|
|
1124
|
+
h(g);
|
|
1125
1125
|
};
|
|
1126
1126
|
return /* @__PURE__ */ n.jsx("div", { className: "builder_date__picker", children: /* @__PURE__ */ n.jsx(
|
|
1127
1127
|
mo,
|
|
@@ -1132,7 +1132,7 @@ const Nn = ({
|
|
|
1132
1132
|
dateFormat: s,
|
|
1133
1133
|
disabled: o,
|
|
1134
1134
|
selected: c,
|
|
1135
|
-
onChange:
|
|
1135
|
+
onChange: v,
|
|
1136
1136
|
className: "field-control",
|
|
1137
1137
|
portalId: "root-portal",
|
|
1138
1138
|
placeholderText: l,
|
|
@@ -1451,20 +1451,20 @@ function Wo(i, e) {
|
|
|
1451
1451
|
j % 2 === 1 && (a.left !== a.top && (N = a.left, a.left = a.top, a.top = N), a.width !== a.height && (N = a.width, a.width = a.height, a.height = N)), m.length && (l = Vo(l, '<g transform="' + m.join(" ") + '">', "</g>"));
|
|
1452
1452
|
});
|
|
1453
1453
|
const d = s.width, t = s.height, u = a.width, r = a.height;
|
|
1454
|
-
let c,
|
|
1455
|
-
d === null ? (
|
|
1456
|
-
const
|
|
1457
|
-
Fo(m) || (
|
|
1454
|
+
let c, h;
|
|
1455
|
+
d === null ? (h = t === null ? "1em" : t === "auto" ? r : t, c = de(h, u / r)) : (c = d === "auto" ? u : d, h = t === null ? de(c, r / u) : t === "auto" ? r : t);
|
|
1456
|
+
const v = {}, g = (f, m) => {
|
|
1457
|
+
Fo(m) || (v[f] = m.toString());
|
|
1458
1458
|
};
|
|
1459
|
-
g("width", c), g("height",
|
|
1459
|
+
g("width", c), g("height", h);
|
|
1460
1460
|
const y = [
|
|
1461
1461
|
a.left,
|
|
1462
1462
|
a.top,
|
|
1463
1463
|
u,
|
|
1464
1464
|
r
|
|
1465
1465
|
];
|
|
1466
|
-
return
|
|
1467
|
-
attributes:
|
|
1466
|
+
return v.viewBox = y.join(" "), {
|
|
1467
|
+
attributes: v,
|
|
1468
1468
|
viewBox: y,
|
|
1469
1469
|
body: l
|
|
1470
1470
|
};
|
|
@@ -1679,12 +1679,12 @@ function la(i) {
|
|
|
1679
1679
|
const l = a.provider, d = a.prefix, t = a.name, u = o[l] || (o[l] = /* @__PURE__ */ Object.create(null)), r = u[d] || (u[d] = Oi(l, d));
|
|
1680
1680
|
let c;
|
|
1681
1681
|
t in r.icons ? c = e.loaded : d === "" || r.missing.has(t) ? c = e.missing : c = e.pending;
|
|
1682
|
-
const
|
|
1682
|
+
const h = {
|
|
1683
1683
|
provider: l,
|
|
1684
1684
|
prefix: d,
|
|
1685
1685
|
name: t
|
|
1686
1686
|
};
|
|
1687
|
-
c.push(
|
|
1687
|
+
c.push(h);
|
|
1688
1688
|
}), e;
|
|
1689
1689
|
}
|
|
1690
1690
|
function da(i, e = !0, o = !1) {
|
|
@@ -1714,15 +1714,15 @@ function ta(i, e, o, s) {
|
|
|
1714
1714
|
d = d.concat(A);
|
|
1715
1715
|
} else d = i.resources.slice(l).concat(i.resources.slice(0, l));
|
|
1716
1716
|
const t = Date.now();
|
|
1717
|
-
let u = "pending", r = 0, c,
|
|
1717
|
+
let u = "pending", r = 0, c, h = null, v = [], g = [];
|
|
1718
1718
|
typeof s == "function" && g.push(s);
|
|
1719
1719
|
function y() {
|
|
1720
|
-
|
|
1720
|
+
h && (clearTimeout(h), h = null);
|
|
1721
1721
|
}
|
|
1722
1722
|
function f() {
|
|
1723
|
-
u === "pending" && (u = "aborted"), y(),
|
|
1723
|
+
u === "pending" && (u = "aborted"), y(), v.forEach((A) => {
|
|
1724
1724
|
A.status === "pending" && (A.status = "aborted");
|
|
1725
|
-
}),
|
|
1725
|
+
}), v = [];
|
|
1726
1726
|
}
|
|
1727
1727
|
function m(A, C) {
|
|
1728
1728
|
C && (g = []), typeof A == "function" && g.push(A);
|
|
@@ -1733,7 +1733,7 @@ function ta(i, e, o, s) {
|
|
|
1733
1733
|
payload: e,
|
|
1734
1734
|
status: u,
|
|
1735
1735
|
queriesSent: r,
|
|
1736
|
-
queriesPending:
|
|
1736
|
+
queriesPending: v.length,
|
|
1737
1737
|
subscribe: m,
|
|
1738
1738
|
abort: f
|
|
1739
1739
|
};
|
|
@@ -1744,13 +1744,13 @@ function ta(i, e, o, s) {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
1746
|
function j() {
|
|
1747
|
-
|
|
1747
|
+
v.forEach((A) => {
|
|
1748
1748
|
A.status === "pending" && (A.status = "aborted");
|
|
1749
|
-
}),
|
|
1749
|
+
}), v = [];
|
|
1750
1750
|
}
|
|
1751
1751
|
function N(A, C, K) {
|
|
1752
1752
|
const Q = C !== "success";
|
|
1753
|
-
switch (
|
|
1753
|
+
switch (v = v.filter((W) => W !== A), u) {
|
|
1754
1754
|
case "pending":
|
|
1755
1755
|
break;
|
|
1756
1756
|
case "failed":
|
|
@@ -1764,7 +1764,7 @@ function ta(i, e, o, s) {
|
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (Q) {
|
|
1767
|
-
c = K,
|
|
1767
|
+
c = K, v.length || (d.length ? S() : x());
|
|
1768
1768
|
return;
|
|
1769
1769
|
}
|
|
1770
1770
|
if (y(), j(), !i.random) {
|
|
@@ -1780,8 +1780,8 @@ function ta(i, e, o, s) {
|
|
|
1780
1780
|
y();
|
|
1781
1781
|
const A = d.shift();
|
|
1782
1782
|
if (A === void 0) {
|
|
1783
|
-
if (
|
|
1784
|
-
|
|
1783
|
+
if (v.length) {
|
|
1784
|
+
h = setTimeout(() => {
|
|
1785
1785
|
y(), u === "pending" && (j(), x());
|
|
1786
1786
|
}, i.timeout);
|
|
1787
1787
|
return;
|
|
@@ -1796,7 +1796,7 @@ function ta(i, e, o, s) {
|
|
|
1796
1796
|
N(C, K, Q);
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
|
-
|
|
1799
|
+
v.push(C), r++, h = setTimeout(S, i.rotate), o(A, e, C.callback);
|
|
1800
1800
|
}
|
|
1801
1801
|
return setTimeout(S), p;
|
|
1802
1802
|
}
|
|
@@ -1810,8 +1810,8 @@ function we(i) {
|
|
|
1810
1810
|
o = o.filter((t) => t().status === "pending");
|
|
1811
1811
|
}
|
|
1812
1812
|
function a(t, u, r) {
|
|
1813
|
-
const c = ta(e, t, u, (
|
|
1814
|
-
s(), r && r(
|
|
1813
|
+
const c = ta(e, t, u, (h, v) => {
|
|
1814
|
+
s(), r && r(h, v);
|
|
1815
1815
|
});
|
|
1816
1816
|
return o.push(c), c;
|
|
1817
1817
|
}
|
|
@@ -1916,11 +1916,11 @@ function va(i, e) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
if (l) {
|
|
1918
1918
|
a.forEach((c) => {
|
|
1919
|
-
const
|
|
1920
|
-
re(
|
|
1921
|
-
const g =
|
|
1919
|
+
const h = l(c, s, o);
|
|
1920
|
+
re(h, (v) => {
|
|
1921
|
+
const g = v ? {
|
|
1922
1922
|
prefix: s,
|
|
1923
|
-
icons: { [c]:
|
|
1923
|
+
icons: { [c]: v }
|
|
1924
1924
|
} : null;
|
|
1925
1925
|
Fi(i, [c], g);
|
|
1926
1926
|
});
|
|
@@ -1935,8 +1935,8 @@ function va(i, e) {
|
|
|
1935
1935
|
return;
|
|
1936
1936
|
}
|
|
1937
1937
|
u.prepare(o, s, d).forEach((c) => {
|
|
1938
|
-
ra(o, c, (
|
|
1939
|
-
Fi(i, c.icons,
|
|
1938
|
+
ra(o, c, (h) => {
|
|
1939
|
+
Fi(i, c.icons, h);
|
|
1940
1940
|
});
|
|
1941
1941
|
});
|
|
1942
1942
|
}));
|
|
@@ -1957,11 +1957,11 @@ const ha = (i, e) => {
|
|
|
1957
1957
|
const { provider: r, prefix: c } = u;
|
|
1958
1958
|
if (c === t && r === d) return;
|
|
1959
1959
|
d = r, t = c, l.push(Oi(r, c));
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1960
|
+
const h = a[r] || (a[r] = /* @__PURE__ */ Object.create(null));
|
|
1961
|
+
h[c] || (h[c] = []);
|
|
1962
1962
|
}), s.pending.forEach((u) => {
|
|
1963
|
-
const { provider: r, prefix: c, name:
|
|
1964
|
-
g.has(
|
|
1963
|
+
const { provider: r, prefix: c, name: h } = u, v = Oi(r, c), g = v.pendingIcons || (v.pendingIcons = /* @__PURE__ */ new Set());
|
|
1964
|
+
g.has(h) || (g.add(h), a[r][c].push(h));
|
|
1965
1965
|
}), l.forEach((u) => {
|
|
1966
1966
|
const r = a[u.provider][u.prefix];
|
|
1967
1967
|
r.length && va(u, r);
|
|
@@ -2149,9 +2149,9 @@ const Ea = (i, e, o) => {
|
|
|
2149
2149
|
__html: ka(Jo(r.body, p ? () => p + "ID" + m++ : "iconifyReact"))
|
|
2150
2150
|
}, Sn("svg", u);
|
|
2151
2151
|
}
|
|
2152
|
-
const { body:
|
|
2152
|
+
const { body: h, width: v, height: g } = i, y = l === "mask" || (l === "bg" ? !1 : h.indexOf("currentColor") !== -1), f = ya(h, {
|
|
2153
2153
|
...c,
|
|
2154
|
-
width:
|
|
2154
|
+
width: v + "",
|
|
2155
2155
|
height: g + ""
|
|
2156
2156
|
});
|
|
2157
2157
|
return u.style = {
|
|
@@ -2252,11 +2252,11 @@ function De(i) {
|
|
|
2252
2252
|
O(() => (o(!0), u), []), O(() => {
|
|
2253
2253
|
e && c();
|
|
2254
2254
|
}, [i.icon, e]);
|
|
2255
|
-
const { name:
|
|
2256
|
-
return
|
|
2255
|
+
const { name: h, data: v } = d;
|
|
2256
|
+
return v ? Ea({
|
|
2257
2257
|
...Bn,
|
|
2258
|
-
...
|
|
2259
|
-
}, i,
|
|
2258
|
+
...v
|
|
2259
|
+
}, i, h) : i.children ? i.children : i.fallback ? i.fallback : Sn("span", {});
|
|
2260
2260
|
}
|
|
2261
2261
|
const Oe = ye((i, e) => De({
|
|
2262
2262
|
...i,
|
|
@@ -2285,27 +2285,27 @@ function Rn({
|
|
|
2285
2285
|
isReadOnly: t,
|
|
2286
2286
|
watch: u
|
|
2287
2287
|
} = e || {}, r = ii(
|
|
2288
|
-
() => s == null ? void 0 : s.map((
|
|
2288
|
+
() => s == null ? void 0 : s.map((h) => h.label).join(", "),
|
|
2289
2289
|
[s]
|
|
2290
2290
|
);
|
|
2291
2291
|
return O(() => {
|
|
2292
2292
|
l(i.id);
|
|
2293
2293
|
}, [i.id, l]), O(() => {
|
|
2294
2294
|
if (u) {
|
|
2295
|
-
const
|
|
2296
|
-
a(
|
|
2295
|
+
const h = u((v) => {
|
|
2296
|
+
a(v[i.id]);
|
|
2297
2297
|
});
|
|
2298
2298
|
return () => {
|
|
2299
|
-
var
|
|
2300
|
-
return (
|
|
2299
|
+
var v;
|
|
2300
|
+
return (v = h.unsubscribe) == null ? void 0 : v.call(h);
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
2303
|
}, [u, i.id]), /* @__PURE__ */ n.jsx("div", { className: "custom-select", children: /* @__PURE__ */ n.jsx(
|
|
2304
2304
|
oi,
|
|
2305
2305
|
{
|
|
2306
2306
|
value: s || [],
|
|
2307
|
-
onChange: (
|
|
2308
|
-
a(
|
|
2307
|
+
onChange: (h) => {
|
|
2308
|
+
a(h), d == null || d(i.id, h);
|
|
2309
2309
|
},
|
|
2310
2310
|
multiple: !0,
|
|
2311
2311
|
disabled: t,
|
|
@@ -2328,23 +2328,23 @@ function Rn({
|
|
|
2328
2328
|
anchor: "bottom start",
|
|
2329
2329
|
className: "custom-select__options",
|
|
2330
2330
|
children: (c = i == null ? void 0 : i.options) == null ? void 0 : c.map(
|
|
2331
|
-
(
|
|
2331
|
+
(h, v) => /* @__PURE__ */ n.jsx(
|
|
2332
2332
|
oi.Option,
|
|
2333
2333
|
{
|
|
2334
|
-
value:
|
|
2334
|
+
value: h,
|
|
2335
2335
|
className: ({ active: g }) => `custom-select__option ${g ? "custom-select__option--active" : ""}`,
|
|
2336
2336
|
children: ({ selected: g }) => /* @__PURE__ */ n.jsxs("div", { className: "custom-select__option-row", children: [
|
|
2337
2337
|
/* @__PURE__ */ n.jsx(
|
|
2338
2338
|
"span",
|
|
2339
2339
|
{
|
|
2340
2340
|
className: `custom-select__option-label ${g ? "custom-select__option--selected" : ""}`,
|
|
2341
|
-
children:
|
|
2341
|
+
children: h.label
|
|
2342
2342
|
}
|
|
2343
2343
|
),
|
|
2344
2344
|
g && /* @__PURE__ */ n.jsx("span", { className: "custom-select__check", children: "✓" })
|
|
2345
2345
|
] })
|
|
2346
2346
|
},
|
|
2347
|
-
|
|
2347
|
+
v
|
|
2348
2348
|
)
|
|
2349
2349
|
)
|
|
2350
2350
|
}
|
|
@@ -2396,8 +2396,8 @@ function Ke({
|
|
|
2396
2396
|
}, [i, l]);
|
|
2397
2397
|
const r = () => {
|
|
2398
2398
|
l === "image" || l === "pdf" ? a(!0) : window.open(t || i, "_blank");
|
|
2399
|
-
}, c = () => a(!1),
|
|
2400
|
-
function
|
|
2399
|
+
}, c = () => a(!1), h = e || (i == null ? void 0 : i.split("/").pop()) || "Unknown file";
|
|
2400
|
+
function v(g, y = "download") {
|
|
2401
2401
|
if (!g) return;
|
|
2402
2402
|
if (g.startsWith("data:")) {
|
|
2403
2403
|
const m = document.createElement("a");
|
|
@@ -2413,11 +2413,11 @@ function Ke({
|
|
|
2413
2413
|
{
|
|
2414
2414
|
onClick: r,
|
|
2415
2415
|
className: "!flex items-center rounded cursor-pointer gap-x-3",
|
|
2416
|
-
title: `Click to preview ${
|
|
2416
|
+
title: `Click to preview ${h}`,
|
|
2417
2417
|
children: [
|
|
2418
2418
|
l === "image" && /* @__PURE__ */ n.jsx("div", { className: "flex items-center justify-center ", children: /* @__PURE__ */ n.jsx(z, { iconClass: "text-4xl", icon: "fluent-color:image-48" }) }),
|
|
2419
2419
|
l !== "image" && /* @__PURE__ */ n.jsx(z, { icon: Pa[l], iconClass: "text-4xl" }),
|
|
2420
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-sm font-semibold text-center text-gray-700 truncate max-w-[300px]", children:
|
|
2420
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-sm font-semibold text-center text-gray-700 truncate max-w-[300px]", children: h })
|
|
2421
2421
|
]
|
|
2422
2422
|
}
|
|
2423
2423
|
),
|
|
@@ -2427,8 +2427,8 @@ function Ke({
|
|
|
2427
2427
|
{
|
|
2428
2428
|
type: "button",
|
|
2429
2429
|
className: "p-2",
|
|
2430
|
-
onClick: () =>
|
|
2431
|
-
title: `Download ${
|
|
2430
|
+
onClick: () => v(t || i, e),
|
|
2431
|
+
title: `Download ${h}`,
|
|
2432
2432
|
children: /* @__PURE__ */ n.jsx(z, { icon: "streamline-flex:download-tray-solid" })
|
|
2433
2433
|
}
|
|
2434
2434
|
),
|
|
@@ -2466,7 +2466,7 @@ function Ke({
|
|
|
2466
2466
|
"img",
|
|
2467
2467
|
{
|
|
2468
2468
|
src: i,
|
|
2469
|
-
alt:
|
|
2469
|
+
alt: h,
|
|
2470
2470
|
className: "max-w-full max-h-[80vh] mx-auto object-contain",
|
|
2471
2471
|
crossOrigin: "anonymous"
|
|
2472
2472
|
}
|
|
@@ -2474,7 +2474,7 @@ function Ke({
|
|
|
2474
2474
|
"iframe",
|
|
2475
2475
|
{
|
|
2476
2476
|
src: t || i,
|
|
2477
|
-
title:
|
|
2477
|
+
title: h,
|
|
2478
2478
|
className: "w-full h-[80vh] rounded border"
|
|
2479
2479
|
}
|
|
2480
2480
|
) : null
|
|
@@ -2504,11 +2504,11 @@ function Ra({
|
|
|
2504
2504
|
list: a = null,
|
|
2505
2505
|
accept: l = []
|
|
2506
2506
|
}) {
|
|
2507
|
-
const { uploadUrl: d } = Ni(pi), t = Ii(null), [u, r] = R(a), [c,
|
|
2507
|
+
const { uploadUrl: d } = Ni(pi), t = Ii(null), [u, r] = R(a), [c, h] = R(!1);
|
|
2508
2508
|
O(() => {
|
|
2509
2509
|
r(a);
|
|
2510
2510
|
}, [a]);
|
|
2511
|
-
const
|
|
2511
|
+
const v = ii(
|
|
2512
2512
|
() => l == null ? void 0 : l.map((N) => N.value).join(", "),
|
|
2513
2513
|
[l]
|
|
2514
2514
|
), g = ii(
|
|
@@ -2557,7 +2557,7 @@ function Ra({
|
|
|
2557
2557
|
), m = Y(
|
|
2558
2558
|
(N) => {
|
|
2559
2559
|
var A;
|
|
2560
|
-
const S =
|
|
2560
|
+
const S = v ? (A = v.split(",")) == null ? void 0 : A.map((C) => C.trim()) : [];
|
|
2561
2561
|
for (const C of N) {
|
|
2562
2562
|
if (C.size > wa)
|
|
2563
2563
|
return Si.error(
|
|
@@ -2572,7 +2572,7 @@ function Ra({
|
|
|
2572
2572
|
}
|
|
2573
2573
|
return !0;
|
|
2574
2574
|
},
|
|
2575
|
-
[
|
|
2575
|
+
[v, g]
|
|
2576
2576
|
), p = Y(
|
|
2577
2577
|
async (N) => {
|
|
2578
2578
|
const S = Array.from(N.target.files || []);
|
|
@@ -2582,13 +2582,13 @@ function Ra({
|
|
|
2582
2582
|
return;
|
|
2583
2583
|
}
|
|
2584
2584
|
try {
|
|
2585
|
-
|
|
2585
|
+
h(!0);
|
|
2586
2586
|
const A = await Promise.all(S == null ? void 0 : S.map(f)), C = s && u ? [...u, ...A] : A;
|
|
2587
2587
|
r(C), i(C), Si.success(`Successfully uploaded ${S.length} file(s)`);
|
|
2588
2588
|
} catch (A) {
|
|
2589
2589
|
console.error("Upload error:", A), Si.error("Failed to upload file(s). Please try again.");
|
|
2590
2590
|
} finally {
|
|
2591
|
-
|
|
2591
|
+
h(!1), t.current && (t.current.value = "");
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
},
|
|
@@ -2612,7 +2612,7 @@ function Ra({
|
|
|
2612
2612
|
onChange: p,
|
|
2613
2613
|
disabled: e || c,
|
|
2614
2614
|
multiple: s,
|
|
2615
|
-
accept:
|
|
2615
|
+
accept: v || "",
|
|
2616
2616
|
className: `w-full text-sm text-gray-500 file:mr-4 flex-1 file:px-4 !py-1 !pl-1\r
|
|
2617
2617
|
file:rounded-[6px] file:py-[6px] file:border-0\r
|
|
2618
2618
|
file:text-sm file:font-semibold\r
|
|
@@ -2661,18 +2661,18 @@ function Ia({ element: i, validationData: e }) {
|
|
|
2661
2661
|
a(i.id);
|
|
2662
2662
|
}, [i.id, a]), O(() => {
|
|
2663
2663
|
if (t) {
|
|
2664
|
-
const
|
|
2665
|
-
s(
|
|
2664
|
+
const h = t((v) => {
|
|
2665
|
+
s(v[i.id]);
|
|
2666
2666
|
});
|
|
2667
2667
|
return () => {
|
|
2668
|
-
var
|
|
2669
|
-
return (
|
|
2668
|
+
var v;
|
|
2669
|
+
return (v = h.unsubscribe) == null ? void 0 : v.call(h);
|
|
2670
2670
|
};
|
|
2671
2671
|
}
|
|
2672
2672
|
}, [t, i.id]);
|
|
2673
2673
|
const u = Y(
|
|
2674
|
-
(
|
|
2675
|
-
l == null || l(i.id,
|
|
2674
|
+
(h) => {
|
|
2675
|
+
l == null || l(i.id, h), s(h);
|
|
2676
2676
|
},
|
|
2677
2677
|
[i.id, l]
|
|
2678
2678
|
), r = () => {
|
|
@@ -2690,7 +2690,7 @@ function Ia({ element: i, validationData: e }) {
|
|
|
2690
2690
|
accept: i == null ? void 0 : i.acceptedFiles
|
|
2691
2691
|
}
|
|
2692
2692
|
),
|
|
2693
|
-
o && d && /* @__PURE__ */ n.jsx("div", { className: "relative grid gap-y-1 flex-1 w-full", children: typeof o == "object" && (o == null ? void 0 : o.map((
|
|
2693
|
+
o && d && /* @__PURE__ */ n.jsx("div", { className: "relative grid gap-y-1 flex-1 w-full", children: typeof o == "object" && (o == null ? void 0 : o.map((h, v) => /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(Ke, { fileUrl: h.base64, fileName: h.name }) }, v))) })
|
|
2694
2694
|
] });
|
|
2695
2695
|
}
|
|
2696
2696
|
function Da({
|
|
@@ -2721,8 +2721,8 @@ const F = ({
|
|
|
2721
2721
|
setValue: u,
|
|
2722
2722
|
value: r,
|
|
2723
2723
|
trigger: c,
|
|
2724
|
-
prefix:
|
|
2725
|
-
disabled:
|
|
2724
|
+
prefix: h,
|
|
2725
|
+
disabled: v,
|
|
2726
2726
|
watch: g,
|
|
2727
2727
|
min: y,
|
|
2728
2728
|
max: f
|
|
@@ -2748,8 +2748,8 @@ const F = ({
|
|
|
2748
2748
|
className: `field-control ${s != null && s[e] ? "border-red-300" : "border-[#D0D5DD]"}`,
|
|
2749
2749
|
decimalsLimit: 2,
|
|
2750
2750
|
value: r,
|
|
2751
|
-
prefix:
|
|
2752
|
-
disabled:
|
|
2751
|
+
prefix: h,
|
|
2752
|
+
disabled: v
|
|
2753
2753
|
}
|
|
2754
2754
|
),
|
|
2755
2755
|
(s == null ? void 0 : s[e]) && /* @__PURE__ */ n.jsx("p", { className: "mt-1 text-sm text-red-600", children: (p = s[e]) == null ? void 0 : p.message })
|
|
@@ -2765,7 +2765,7 @@ const F = ({
|
|
|
2765
2765
|
...m,
|
|
2766
2766
|
type: l,
|
|
2767
2767
|
value: r || "",
|
|
2768
|
-
disabled:
|
|
2768
|
+
disabled: v,
|
|
2769
2769
|
className: "peer sr-only"
|
|
2770
2770
|
}
|
|
2771
2771
|
),
|
|
@@ -2809,7 +2809,7 @@ const F = ({
|
|
|
2809
2809
|
...m,
|
|
2810
2810
|
className: `field-control ${s != null && s[e] ? "border-red-300" : "border-[#D0D5DD]"} ${a}`,
|
|
2811
2811
|
placeholder: d,
|
|
2812
|
-
disabled:
|
|
2812
|
+
disabled: v
|
|
2813
2813
|
}
|
|
2814
2814
|
),
|
|
2815
2815
|
(s == null ? void 0 : s[e]) && /* @__PURE__ */ n.jsx("p", { className: "mt-1 text-sm text-red-600", children: (j = s[e]) == null ? void 0 : j.message })
|
|
@@ -2828,7 +2828,7 @@ const F = ({
|
|
|
2828
2828
|
type: l,
|
|
2829
2829
|
className: `field-control ${s != null && s[e] ? "border-red-300" : "border-[#D0D5DD]"} ${a}`,
|
|
2830
2830
|
placeholder: t ? "" : d,
|
|
2831
|
-
disabled:
|
|
2831
|
+
disabled: v,
|
|
2832
2832
|
min: y,
|
|
2833
2833
|
max: f
|
|
2834
2834
|
}
|
|
@@ -2898,8 +2898,8 @@ const wi = ({
|
|
|
2898
2898
|
trigger: u,
|
|
2899
2899
|
isMultiple: r,
|
|
2900
2900
|
isFloatingLabel: c,
|
|
2901
|
-
subText:
|
|
2902
|
-
labelClass:
|
|
2901
|
+
subText: h,
|
|
2902
|
+
labelClass: v = "text-[10px]",
|
|
2903
2903
|
loading: g,
|
|
2904
2904
|
disabled: y
|
|
2905
2905
|
}) => {
|
|
@@ -2937,7 +2937,7 @@ const wi = ({
|
|
|
2937
2937
|
{
|
|
2938
2938
|
className: J(
|
|
2939
2939
|
"z-[40] absolute bg-white py-[2px] px-1 -top-[10px] left-3",
|
|
2940
|
-
|
|
2940
|
+
v
|
|
2941
2941
|
),
|
|
2942
2942
|
children: d
|
|
2943
2943
|
}
|
|
@@ -2985,7 +2985,7 @@ const wi = ({
|
|
|
2985
2985
|
] })
|
|
2986
2986
|
}
|
|
2987
2987
|
),
|
|
2988
|
-
!o &&
|
|
2988
|
+
!o && h && /* @__PURE__ */ n.jsx("p", { className: "text-[10px] text-[#98A2B3] mt-[6px]", children: h }),
|
|
2989
2989
|
(o == null ? void 0 : o.message) && /* @__PURE__ */ n.jsx("span", { className: "text-sm text-red-500", children: o.message })
|
|
2990
2990
|
] });
|
|
2991
2991
|
};
|
|
@@ -3007,20 +3007,20 @@ function Tn({
|
|
|
3007
3007
|
c(g);
|
|
3008
3008
|
}
|
|
3009
3009
|
}, [e, i]);
|
|
3010
|
-
const
|
|
3010
|
+
const h = ii(() => {
|
|
3011
3011
|
if (d === "") return i;
|
|
3012
3012
|
const g = d.toLowerCase();
|
|
3013
3013
|
return i.filter(
|
|
3014
3014
|
(y) => y.label.toLowerCase().includes(g)
|
|
3015
3015
|
);
|
|
3016
|
-
}, [d, i]),
|
|
3016
|
+
}, [d, i]), v = Y((g) => {
|
|
3017
3017
|
c(g), s(l, g);
|
|
3018
3018
|
}, [l, s]);
|
|
3019
3019
|
return /* @__PURE__ */ n.jsx("div", { className: "relative w-full", children: /* @__PURE__ */ n.jsxs(
|
|
3020
3020
|
Pi,
|
|
3021
3021
|
{
|
|
3022
3022
|
value: r,
|
|
3023
|
-
onChange:
|
|
3023
|
+
onChange: v,
|
|
3024
3024
|
disabled: a,
|
|
3025
3025
|
children: [
|
|
3026
3026
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
@@ -3035,7 +3035,7 @@ function Tn({
|
|
|
3035
3035
|
),
|
|
3036
3036
|
/* @__PURE__ */ n.jsx(vo, { className: "absolute inset-y-0 right-0 flex items-center px-2 text-gray-400 hover:text-gray-600", children: /* @__PURE__ */ n.jsx(z, { icon: "octicon:chevron-down-12" }) })
|
|
3037
3037
|
] }),
|
|
3038
|
-
/* @__PURE__ */ n.jsx(ho, { anchor: "bottom start", className: "select-options__combo", children:
|
|
3038
|
+
/* @__PURE__ */ n.jsx(ho, { anchor: "bottom start", className: "select-options__combo", children: h.length === 0 ? /* @__PURE__ */ n.jsx("div", { className: "px-3 py-2 text-sm text-gray-500", children: "No results found." }) : h == null ? void 0 : h.map((g) => /* @__PURE__ */ n.jsx(
|
|
3039
3039
|
po,
|
|
3040
3040
|
{
|
|
3041
3041
|
value: g,
|
|
@@ -3117,8 +3117,8 @@ function In(i, e, o) {
|
|
|
3117
3117
|
if (!d.inner) throw d;
|
|
3118
3118
|
return { values: {}, errors: Ao((t = d, u = !l.shouldUseNativeValidation && l.criteriaMode === "all", (t.inner || []).reduce(function(r, c) {
|
|
3119
3119
|
if (r[c.path] || (r[c.path] = { message: c.message, type: c.type }), u) {
|
|
3120
|
-
var
|
|
3121
|
-
r[c.path] = go(c.path, u, r, c.type,
|
|
3120
|
+
var h = r[c.path].types, v = h && h[c.type];
|
|
3121
|
+
r[c.path] = go(c.path, u, r, c.type, v ? [].concat(v, c.message) : c.message);
|
|
3122
3122
|
}
|
|
3123
3123
|
return r;
|
|
3124
3124
|
}, {})), l) };
|
|
@@ -3146,21 +3146,21 @@ const Fa = ({
|
|
|
3146
3146
|
"capitalize text-sm whitespace-nowrap no-scrollbar font-semibold pb-[14px] border-b-2 border-[#EAECF0] px-6 flex items-center gap-x-1 flex-1 text-center",
|
|
3147
3147
|
`${i.length === 1 ? "justify-start" : "justify-center"}`,
|
|
3148
3148
|
l
|
|
3149
|
-
),
|
|
3149
|
+
), h = J({
|
|
3150
3150
|
"border-gray-500 border-primary border-primary-500 text-primary text-primary-500": u,
|
|
3151
3151
|
"border-transparent text-gray-400 ": !u
|
|
3152
|
-
}),
|
|
3152
|
+
}), v = r > 0 && /* @__PURE__ */ n.jsx("span", { className: "text-xs h-6 min-w-[24px] rounded-full flex justify-center items-center border border-[#EAECF0] darks:border-gray-500 bg-[#F9FAFB] darks:bg-gray-800 text-[#454745] darks:text-white/80", children: r });
|
|
3153
3153
|
return /* @__PURE__ */ n.jsxs(
|
|
3154
3154
|
"button",
|
|
3155
3155
|
{
|
|
3156
3156
|
onClick: () => s(t.key),
|
|
3157
|
-
className: J(c,
|
|
3157
|
+
className: J(c, h),
|
|
3158
3158
|
"aria-selected": u,
|
|
3159
3159
|
role: "tab",
|
|
3160
3160
|
type: "button",
|
|
3161
3161
|
children: [
|
|
3162
3162
|
t.title,
|
|
3163
|
-
|
|
3163
|
+
v
|
|
3164
3164
|
]
|
|
3165
3165
|
},
|
|
3166
3166
|
t.key
|
|
@@ -3554,7 +3554,7 @@ function os({
|
|
|
3554
3554
|
a(u), e && e(u);
|
|
3555
3555
|
}
|
|
3556
3556
|
function t(u) {
|
|
3557
|
-
const r = s.filter((c,
|
|
3557
|
+
const r = s.filter((c, h) => h !== u);
|
|
3558
3558
|
a(r), e && e(r);
|
|
3559
3559
|
}
|
|
3560
3560
|
return O(() => {
|
|
@@ -3652,10 +3652,10 @@ const as = () => /* @__PURE__ */ n.jsx("blockquote", { className: "bg-gray-100 p
|
|
|
3652
3652
|
l(u.name);
|
|
3653
3653
|
const r = new FileReader();
|
|
3654
3654
|
u.name.endsWith(".csv") ? (r.onload = (c) => {
|
|
3655
|
-
const
|
|
3656
|
-
i(e,
|
|
3655
|
+
const h = c.target.result, v = So.parse(h, { header: !0 });
|
|
3656
|
+
i(e, v.data);
|
|
3657
3657
|
}, r.readAsText(u)) : u.name.endsWith(".xlsx") || u.name.endsWith(".xls") ? (r.onload = (c) => {
|
|
3658
|
-
const
|
|
3658
|
+
const h = new Uint8Array(c.target.result), v = Xn.read(h, { type: "array" }), g = v.SheetNames[0], y = v.Sheets[g], f = Xn.utils.sheet_to_json(y);
|
|
3659
3659
|
i(e, f);
|
|
3660
3660
|
}, r.readAsArrayBuffer(u)) : Si.error("Unsupported file type. Please upload a CSV or Excel file.");
|
|
3661
3661
|
};
|
|
@@ -3748,24 +3748,24 @@ function rs({
|
|
|
3748
3748
|
const { formData: l } = Ni(pi), d = s("visibilityDependentFields") || [], t = ii(() => {
|
|
3749
3749
|
var r;
|
|
3750
3750
|
return (r = ts(l).filter((c) => c.id !== a)) == null ? void 0 : r.map((c) => {
|
|
3751
|
-
const
|
|
3752
|
-
(
|
|
3751
|
+
const h = d.find(
|
|
3752
|
+
(v) => v.id === c.id
|
|
3753
3753
|
);
|
|
3754
3754
|
return {
|
|
3755
3755
|
id: c.id,
|
|
3756
3756
|
value: c.id,
|
|
3757
3757
|
label: c.inputLabel,
|
|
3758
3758
|
sectionId: c.sectionId,
|
|
3759
|
-
fieldType: (
|
|
3760
|
-
operator: (
|
|
3761
|
-
fieldValue: (
|
|
3759
|
+
fieldType: (h == null ? void 0 : h.fieldType) || "text",
|
|
3760
|
+
operator: (h == null ? void 0 : h.operator) || "equals",
|
|
3761
|
+
fieldValue: (h == null ? void 0 : h.fieldValue) !== void 0 ? h.fieldValue : ""
|
|
3762
3762
|
};
|
|
3763
3763
|
});
|
|
3764
|
-
}, [l, d, a]), u = (r, c,
|
|
3765
|
-
const
|
|
3766
|
-
(g, y) => y === r ? { ...g, [c]:
|
|
3764
|
+
}, [l, d, a]), u = (r, c, h) => {
|
|
3765
|
+
const v = d == null ? void 0 : d.map(
|
|
3766
|
+
(g, y) => y === r ? { ...g, [c]: h } : g
|
|
3767
3767
|
);
|
|
3768
|
-
e("visibilityDependentFields",
|
|
3768
|
+
e("visibilityDependentFields", v);
|
|
3769
3769
|
};
|
|
3770
3770
|
return /* @__PURE__ */ n.jsxs("div", { className: "visibility-editor", children: [
|
|
3771
3771
|
/* @__PURE__ */ n.jsx("label", { className: "label", children: "Select Dependent Fields" }),
|
|
@@ -3781,7 +3781,7 @@ function rs({
|
|
|
3781
3781
|
}
|
|
3782
3782
|
),
|
|
3783
3783
|
d.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "py-1 bg-gray-100 rounded dependent-fields", children: d == null ? void 0 : d.map((r, c) => {
|
|
3784
|
-
var
|
|
3784
|
+
var h, v;
|
|
3785
3785
|
return /* @__PURE__ */ n.jsxs("div", { className: "dependent-field", children: [
|
|
3786
3786
|
/* @__PURE__ */ n.jsx(
|
|
3787
3787
|
"input",
|
|
@@ -3847,7 +3847,7 @@ function rs({
|
|
|
3847
3847
|
{
|
|
3848
3848
|
className: "listbox-options ",
|
|
3849
3849
|
anchor: "bottom",
|
|
3850
|
-
children: (
|
|
3850
|
+
children: (h = r.fieldType === "number" ? [...pe, ...cs] : pe) == null ? void 0 : h.map((g) => /* @__PURE__ */ n.jsx(
|
|
3851
3851
|
oi.Option,
|
|
3852
3852
|
{
|
|
3853
3853
|
value: g,
|
|
@@ -3875,7 +3875,7 @@ function rs({
|
|
|
3875
3875
|
) : /* @__PURE__ */ n.jsx("div", { className: "field-listbox", children: /* @__PURE__ */ n.jsx(
|
|
3876
3876
|
oi,
|
|
3877
3877
|
{
|
|
3878
|
-
value: (
|
|
3878
|
+
value: (v = r.fieldValue) != null ? v : "",
|
|
3879
3879
|
onChange: (g) => u(c, "fieldValue", g),
|
|
3880
3880
|
children: /* @__PURE__ */ n.jsxs("div", { className: "listbox-wrapper", children: [
|
|
3881
3881
|
/* @__PURE__ */ n.jsx(oi.Button, { className: "listbox-button", children: r.fieldValue === !0 ? "True" : r.fieldValue === !1 ? "False" : "Select value" }),
|
|
@@ -3999,8 +3999,8 @@ const ms = B.object().shape({
|
|
|
3999
3999
|
}) => {
|
|
4000
4000
|
const s = bs.filter(
|
|
4001
4001
|
(H) => !Zi.includes(o.inputType) || H.key !== "validation"
|
|
4002
|
-
), { updateElement: a } = ri.useContext(pi), [l, d] = R("basic"), [t, u] = R(!1), [r, c] = R("manual"),
|
|
4003
|
-
register:
|
|
4002
|
+
), { updateElement: a } = ri.useContext(pi), [l, d] = R("basic"), [t, u] = R(!1), [r, c] = R("manual"), h = fi("config"), {
|
|
4003
|
+
register: v,
|
|
4004
4004
|
handleSubmit: g,
|
|
4005
4005
|
control: y,
|
|
4006
4006
|
setValue: f,
|
|
@@ -4097,7 +4097,7 @@ const ms = B.object().shape({
|
|
|
4097
4097
|
label: "Load Options from Api",
|
|
4098
4098
|
name: "apiUrl",
|
|
4099
4099
|
errors: x,
|
|
4100
|
-
register:
|
|
4100
|
+
register: v,
|
|
4101
4101
|
className: "!w-full",
|
|
4102
4102
|
placeholder: "https://example.com/options",
|
|
4103
4103
|
isFloating: !0
|
|
@@ -4139,7 +4139,7 @@ const ms = B.object().shape({
|
|
|
4139
4139
|
watch: m,
|
|
4140
4140
|
label: D === 0 ? "Label" : "",
|
|
4141
4141
|
name: `options.${D}.label`,
|
|
4142
|
-
register:
|
|
4142
|
+
register: v,
|
|
4143
4143
|
errors: x,
|
|
4144
4144
|
element: o,
|
|
4145
4145
|
placeholder: "Label"
|
|
@@ -4151,7 +4151,7 @@ const ms = B.object().shape({
|
|
|
4151
4151
|
watch: m,
|
|
4152
4152
|
label: D === 0 ? "Value" : "",
|
|
4153
4153
|
name: `options.${D}.value`,
|
|
4154
|
-
register:
|
|
4154
|
+
register: v,
|
|
4155
4155
|
errors: x,
|
|
4156
4156
|
element: o,
|
|
4157
4157
|
placeholder: "Value"
|
|
@@ -4204,7 +4204,7 @@ const ms = B.object().shape({
|
|
|
4204
4204
|
watch: m,
|
|
4205
4205
|
label: "Label",
|
|
4206
4206
|
name: `options1.${D}.label`,
|
|
4207
|
-
register:
|
|
4207
|
+
register: v,
|
|
4208
4208
|
errors: x,
|
|
4209
4209
|
element: o,
|
|
4210
4210
|
placeholder: "Label",
|
|
@@ -4217,7 +4217,7 @@ const ms = B.object().shape({
|
|
|
4217
4217
|
watch: m,
|
|
4218
4218
|
label: "Value",
|
|
4219
4219
|
name: `options1.${D}.value`,
|
|
4220
|
-
register:
|
|
4220
|
+
register: v,
|
|
4221
4221
|
errors: x,
|
|
4222
4222
|
element: o,
|
|
4223
4223
|
placeholder: "Value",
|
|
@@ -4230,7 +4230,7 @@ const ms = B.object().shape({
|
|
|
4230
4230
|
watch: m,
|
|
4231
4231
|
label: "Key",
|
|
4232
4232
|
name: `options1.${D}.key`,
|
|
4233
|
-
register:
|
|
4233
|
+
register: v,
|
|
4234
4234
|
errors: x,
|
|
4235
4235
|
element: o,
|
|
4236
4236
|
placeholder: "Key",
|
|
@@ -4296,7 +4296,7 @@ const ms = B.object().shape({
|
|
|
4296
4296
|
label: "Load Columns from Api",
|
|
4297
4297
|
name: "apiUrl",
|
|
4298
4298
|
errors: x,
|
|
4299
|
-
register:
|
|
4299
|
+
register: v,
|
|
4300
4300
|
className: "!w-full",
|
|
4301
4301
|
placeholder: "https://example.com/columns",
|
|
4302
4302
|
isFloating: !0
|
|
@@ -4345,7 +4345,7 @@ const ms = B.object().shape({
|
|
|
4345
4345
|
value: "checkbox"
|
|
4346
4346
|
}
|
|
4347
4347
|
],
|
|
4348
|
-
register:
|
|
4348
|
+
register: v,
|
|
4349
4349
|
name: `dataColumns.${D}.type`,
|
|
4350
4350
|
setValue: f,
|
|
4351
4351
|
trigger: p,
|
|
@@ -4358,7 +4358,7 @@ const ms = B.object().shape({
|
|
|
4358
4358
|
watch: m,
|
|
4359
4359
|
label: D === 0 ? "Field key" : "",
|
|
4360
4360
|
name: `dataColumns.${D}.field`,
|
|
4361
|
-
register:
|
|
4361
|
+
register: v,
|
|
4362
4362
|
errors: x,
|
|
4363
4363
|
element: o,
|
|
4364
4364
|
placeholder: "fieldKey"
|
|
@@ -4370,7 +4370,7 @@ const ms = B.object().shape({
|
|
|
4370
4370
|
watch: m,
|
|
4371
4371
|
label: D === 0 ? "Display header" : "",
|
|
4372
4372
|
name: `dataColumns.${D}.headerName`,
|
|
4373
|
-
register:
|
|
4373
|
+
register: v,
|
|
4374
4374
|
errors: x,
|
|
4375
4375
|
element: o,
|
|
4376
4376
|
placeholder: "header"
|
|
@@ -4466,7 +4466,7 @@ const ms = B.object().shape({
|
|
|
4466
4466
|
watch: m,
|
|
4467
4467
|
label: "Value",
|
|
4468
4468
|
name: "value",
|
|
4469
|
-
register:
|
|
4469
|
+
register: v,
|
|
4470
4470
|
errors: x,
|
|
4471
4471
|
element: o
|
|
4472
4472
|
}
|
|
@@ -4478,7 +4478,7 @@ const ms = B.object().shape({
|
|
|
4478
4478
|
watch: m,
|
|
4479
4479
|
label: "Label",
|
|
4480
4480
|
name: "inputLabel",
|
|
4481
|
-
register:
|
|
4481
|
+
register: v,
|
|
4482
4482
|
errors: x,
|
|
4483
4483
|
element: o
|
|
4484
4484
|
}
|
|
@@ -4490,7 +4490,7 @@ const ms = B.object().shape({
|
|
|
4490
4490
|
watch: m,
|
|
4491
4491
|
label: "Child Label",
|
|
4492
4492
|
name: "childLabel",
|
|
4493
|
-
register:
|
|
4493
|
+
register: v,
|
|
4494
4494
|
errors: x,
|
|
4495
4495
|
element: o
|
|
4496
4496
|
}
|
|
@@ -4502,7 +4502,7 @@ const ms = B.object().shape({
|
|
|
4502
4502
|
watch: m,
|
|
4503
4503
|
label: "Placeholder",
|
|
4504
4504
|
name: "placeholder",
|
|
4505
|
-
register:
|
|
4505
|
+
register: v,
|
|
4506
4506
|
errors: x,
|
|
4507
4507
|
element: o
|
|
4508
4508
|
}
|
|
@@ -4513,7 +4513,7 @@ const ms = B.object().shape({
|
|
|
4513
4513
|
watch: m,
|
|
4514
4514
|
label: "Prefix",
|
|
4515
4515
|
name: "prefix",
|
|
4516
|
-
register:
|
|
4516
|
+
register: v,
|
|
4517
4517
|
errors: x,
|
|
4518
4518
|
element: o
|
|
4519
4519
|
}
|
|
@@ -4526,7 +4526,7 @@ const ms = B.object().shape({
|
|
|
4526
4526
|
watch: m,
|
|
4527
4527
|
label: "Api Url",
|
|
4528
4528
|
name: "url",
|
|
4529
|
-
register:
|
|
4529
|
+
register: v,
|
|
4530
4530
|
errors: x,
|
|
4531
4531
|
element: o
|
|
4532
4532
|
}
|
|
@@ -4545,7 +4545,7 @@ const ms = B.object().shape({
|
|
|
4545
4545
|
value: "POST"
|
|
4546
4546
|
}
|
|
4547
4547
|
],
|
|
4548
|
-
register:
|
|
4548
|
+
register: v,
|
|
4549
4549
|
name: "method",
|
|
4550
4550
|
setValue: f,
|
|
4551
4551
|
trigger: p,
|
|
@@ -4566,7 +4566,7 @@ const ms = B.object().shape({
|
|
|
4566
4566
|
value: "object"
|
|
4567
4567
|
}
|
|
4568
4568
|
],
|
|
4569
|
-
register:
|
|
4569
|
+
register: v,
|
|
4570
4570
|
name: "responseType",
|
|
4571
4571
|
setValue: f,
|
|
4572
4572
|
trigger: p,
|
|
@@ -4589,7 +4589,7 @@ const ms = B.object().shape({
|
|
|
4589
4589
|
watch: m,
|
|
4590
4590
|
label: "Short Description",
|
|
4591
4591
|
name: "description",
|
|
4592
|
-
register:
|
|
4592
|
+
register: v,
|
|
4593
4593
|
errors: x,
|
|
4594
4594
|
element: o
|
|
4595
4595
|
}
|
|
@@ -4600,7 +4600,7 @@ const ms = B.object().shape({
|
|
|
4600
4600
|
{
|
|
4601
4601
|
label: "Date Format",
|
|
4602
4602
|
options: Ya,
|
|
4603
|
-
register:
|
|
4603
|
+
register: v,
|
|
4604
4604
|
name: "dateFormat",
|
|
4605
4605
|
setValue: f,
|
|
4606
4606
|
trigger: p,
|
|
@@ -4613,7 +4613,7 @@ const ms = B.object().shape({
|
|
|
4613
4613
|
watch: m,
|
|
4614
4614
|
label: "Allow Range",
|
|
4615
4615
|
name: "canHaveDateRange",
|
|
4616
|
-
register:
|
|
4616
|
+
register: v,
|
|
4617
4617
|
errors: x,
|
|
4618
4618
|
element: o,
|
|
4619
4619
|
type: "checkbox"
|
|
@@ -4646,7 +4646,7 @@ const ms = B.object().shape({
|
|
|
4646
4646
|
watch: m,
|
|
4647
4647
|
label: "Allow Year Picker",
|
|
4648
4648
|
name: "allowYearPicker",
|
|
4649
|
-
register:
|
|
4649
|
+
register: v,
|
|
4650
4650
|
errors: x,
|
|
4651
4651
|
element: o,
|
|
4652
4652
|
type: "checkbox"
|
|
@@ -4659,7 +4659,7 @@ const ms = B.object().shape({
|
|
|
4659
4659
|
watch: m,
|
|
4660
4660
|
label: "Allow States",
|
|
4661
4661
|
name: "showState",
|
|
4662
|
-
register:
|
|
4662
|
+
register: v,
|
|
4663
4663
|
errors: x,
|
|
4664
4664
|
element: o,
|
|
4665
4665
|
type: "checkbox"
|
|
@@ -4679,7 +4679,7 @@ const ms = B.object().shape({
|
|
|
4679
4679
|
value: "Combobox"
|
|
4680
4680
|
}
|
|
4681
4681
|
],
|
|
4682
|
-
register:
|
|
4682
|
+
register: v,
|
|
4683
4683
|
name: "selectType",
|
|
4684
4684
|
setValue: f,
|
|
4685
4685
|
trigger: p,
|
|
@@ -4692,7 +4692,7 @@ const ms = B.object().shape({
|
|
|
4692
4692
|
watch: m,
|
|
4693
4693
|
label: "Number of columns (max: 4)",
|
|
4694
4694
|
name: "columns",
|
|
4695
|
-
register:
|
|
4695
|
+
register: v,
|
|
4696
4696
|
errors: x,
|
|
4697
4697
|
element: o,
|
|
4698
4698
|
max: 4,
|
|
@@ -4707,7 +4707,7 @@ const ms = B.object().shape({
|
|
|
4707
4707
|
watch: m,
|
|
4708
4708
|
label: "Document Options Url",
|
|
4709
4709
|
name: "url",
|
|
4710
|
-
register:
|
|
4710
|
+
register: v,
|
|
4711
4711
|
errors: x,
|
|
4712
4712
|
element: o
|
|
4713
4713
|
}
|
|
@@ -4722,7 +4722,7 @@ const ms = B.object().shape({
|
|
|
4722
4722
|
watch: m,
|
|
4723
4723
|
label: "Document Validation Url",
|
|
4724
4724
|
name: "validationUrl",
|
|
4725
|
-
register:
|
|
4725
|
+
register: v,
|
|
4726
4726
|
errors: x,
|
|
4727
4727
|
element: o
|
|
4728
4728
|
}
|
|
@@ -4735,7 +4735,7 @@ const ms = B.object().shape({
|
|
|
4735
4735
|
watch: m,
|
|
4736
4736
|
label: "Signature Page Url",
|
|
4737
4737
|
name: "signatureLink",
|
|
4738
|
-
register:
|
|
4738
|
+
register: v,
|
|
4739
4739
|
errors: x,
|
|
4740
4740
|
element: o
|
|
4741
4741
|
}
|
|
@@ -4749,7 +4749,7 @@ const ms = B.object().shape({
|
|
|
4749
4749
|
watch: m,
|
|
4750
4750
|
label: "Allow Multiple Uploads",
|
|
4751
4751
|
name: "isMultiple",
|
|
4752
|
-
register:
|
|
4752
|
+
register: v,
|
|
4753
4753
|
errors: x,
|
|
4754
4754
|
element: o,
|
|
4755
4755
|
type: "checkbox"
|
|
@@ -4763,7 +4763,7 @@ const ms = B.object().shape({
|
|
|
4763
4763
|
id: "acceptedFiles",
|
|
4764
4764
|
value: A == null ? void 0 : A.acceptedFiles
|
|
4765
4765
|
},
|
|
4766
|
-
validationData: { register:
|
|
4766
|
+
validationData: { register: v, setValue: f, trigger: p, watch: m },
|
|
4767
4767
|
placeholder: "Choose file types"
|
|
4768
4768
|
}
|
|
4769
4769
|
)
|
|
@@ -4776,7 +4776,7 @@ const ms = B.object().shape({
|
|
|
4776
4776
|
watch: m,
|
|
4777
4777
|
label: "Toggle Visibility",
|
|
4778
4778
|
name: "isHidden",
|
|
4779
|
-
register:
|
|
4779
|
+
register: v,
|
|
4780
4780
|
errors: x,
|
|
4781
4781
|
element: o,
|
|
4782
4782
|
type: "checkbox"
|
|
@@ -4786,7 +4786,7 @@ const ms = B.object().shape({
|
|
|
4786
4786
|
A.isHidden && /* @__PURE__ */ n.jsx(
|
|
4787
4787
|
rs,
|
|
4788
4788
|
{
|
|
4789
|
-
register:
|
|
4789
|
+
register: v,
|
|
4790
4790
|
setValue: f,
|
|
4791
4791
|
trigger: p,
|
|
4792
4792
|
watch: m,
|
|
@@ -4803,7 +4803,7 @@ const ms = B.object().shape({
|
|
|
4803
4803
|
watch: m,
|
|
4804
4804
|
label: "Required",
|
|
4805
4805
|
name: "isRequired",
|
|
4806
|
-
register:
|
|
4806
|
+
register: v,
|
|
4807
4807
|
errors: x,
|
|
4808
4808
|
element: o,
|
|
4809
4809
|
type: "checkbox"
|
|
@@ -4816,7 +4816,7 @@ const ms = B.object().shape({
|
|
|
4816
4816
|
watch: m,
|
|
4817
4817
|
label: "Error message text",
|
|
4818
4818
|
name: "requiredMessage",
|
|
4819
|
-
register:
|
|
4819
|
+
register: v,
|
|
4820
4820
|
errors: x,
|
|
4821
4821
|
element: o
|
|
4822
4822
|
}
|
|
@@ -4830,7 +4830,7 @@ const ms = B.object().shape({
|
|
|
4830
4830
|
watch: m,
|
|
4831
4831
|
label: "Min Length",
|
|
4832
4832
|
name: "minLength",
|
|
4833
|
-
register:
|
|
4833
|
+
register: v,
|
|
4834
4834
|
errors: x,
|
|
4835
4835
|
element: o,
|
|
4836
4836
|
type: "number"
|
|
@@ -4843,7 +4843,7 @@ const ms = B.object().shape({
|
|
|
4843
4843
|
watch: m,
|
|
4844
4844
|
label: "Error message text",
|
|
4845
4845
|
name: "minLengthMessage",
|
|
4846
|
-
register:
|
|
4846
|
+
register: v,
|
|
4847
4847
|
errors: x,
|
|
4848
4848
|
element: o
|
|
4849
4849
|
}
|
|
@@ -4856,7 +4856,7 @@ const ms = B.object().shape({
|
|
|
4856
4856
|
watch: m,
|
|
4857
4857
|
label: "Max Length",
|
|
4858
4858
|
name: "maxLength",
|
|
4859
|
-
register:
|
|
4859
|
+
register: v,
|
|
4860
4860
|
errors: x,
|
|
4861
4861
|
element: o,
|
|
4862
4862
|
type: "number"
|
|
@@ -4869,7 +4869,7 @@ const ms = B.object().shape({
|
|
|
4869
4869
|
watch: m,
|
|
4870
4870
|
label: "Error message text",
|
|
4871
4871
|
name: "maxLengthMessage",
|
|
4872
|
-
register:
|
|
4872
|
+
register: v,
|
|
4873
4873
|
errors: x,
|
|
4874
4874
|
element: o
|
|
4875
4875
|
}
|
|
@@ -4884,7 +4884,7 @@ const ms = B.object().shape({
|
|
|
4884
4884
|
watch: m,
|
|
4885
4885
|
label: "Min Amount",
|
|
4886
4886
|
name: "minAmount",
|
|
4887
|
-
register:
|
|
4887
|
+
register: v,
|
|
4888
4888
|
errors: x,
|
|
4889
4889
|
element: o,
|
|
4890
4890
|
type: "amount"
|
|
@@ -4897,7 +4897,7 @@ const ms = B.object().shape({
|
|
|
4897
4897
|
watch: m,
|
|
4898
4898
|
label: "Error message text",
|
|
4899
4899
|
name: "minAmountMessage",
|
|
4900
|
-
register:
|
|
4900
|
+
register: v,
|
|
4901
4901
|
errors: x,
|
|
4902
4902
|
element: o
|
|
4903
4903
|
}
|
|
@@ -4910,7 +4910,7 @@ const ms = B.object().shape({
|
|
|
4910
4910
|
watch: m,
|
|
4911
4911
|
label: "Max Amount",
|
|
4912
4912
|
name: "maxAmount",
|
|
4913
|
-
register:
|
|
4913
|
+
register: v,
|
|
4914
4914
|
errors: x,
|
|
4915
4915
|
element: o,
|
|
4916
4916
|
type: "amount"
|
|
@@ -4923,7 +4923,7 @@ const ms = B.object().shape({
|
|
|
4923
4923
|
watch: m,
|
|
4924
4924
|
label: "Error message text",
|
|
4925
4925
|
name: "maxAmountMessage",
|
|
4926
|
-
register:
|
|
4926
|
+
register: v,
|
|
4927
4927
|
errors: x,
|
|
4928
4928
|
element: o
|
|
4929
4929
|
}
|
|
@@ -4948,7 +4948,7 @@ const ms = B.object().shape({
|
|
|
4948
4948
|
{
|
|
4949
4949
|
type: "submit",
|
|
4950
4950
|
disabled: !N || j,
|
|
4951
|
-
style: { background: (
|
|
4951
|
+
style: { background: (h == null ? void 0 : h.buttonColor) || "#333" },
|
|
4952
4952
|
className: `flex-1 px-4 py-2.5 ${!N || j ? "bg-[#F2F4F7]" : "bg-[#2563EB]"} ${!N || j ? "text-[#98A2B3]" : "text-white"} rounded-lg shadow-xs font-semibold font-onest disabled:opacity-50 editor_option__save`,
|
|
4953
4953
|
children: j ? "Saving..." : "Save"
|
|
4954
4954
|
}
|
|
@@ -5159,7 +5159,7 @@ function fs({
|
|
|
5159
5159
|
validationData: e
|
|
5160
5160
|
}) {
|
|
5161
5161
|
var A;
|
|
5162
|
-
const { register: o = () => ({}), setValue: s, watch: a } = e || {}, [l, d] = R(), [t, u] = R(!1), [r, c] = R(!1), [
|
|
5162
|
+
const { register: o = () => ({}), setValue: s, watch: a } = e || {}, [l, d] = R(), [t, u] = R(!1), [r, c] = R(!1), [h, v] = R(""), g = a && a(i == null ? void 0 : i.id);
|
|
5163
5163
|
O(() => {
|
|
5164
5164
|
d(g);
|
|
5165
5165
|
}, [g]);
|
|
@@ -5185,13 +5185,13 @@ function fs({
|
|
|
5185
5185
|
I = await Di.post(m, { value: C }, N);
|
|
5186
5186
|
else
|
|
5187
5187
|
throw new Error("Unsupported HTTP method");
|
|
5188
|
-
I.status === 200 && ((((Q = (K = I == null ? void 0 : I.data) == null ? void 0 : K.data) == null ? void 0 : Q.status) || ((W = I == null ? void 0 : I.data) == null ? void 0 : W.status)) === !0 ? (c(!0), x === "string" ?
|
|
5188
|
+
I.status === 200 && ((((Q = (K = I == null ? void 0 : I.data) == null ? void 0 : K.data) == null ? void 0 : Q.status) || ((W = I == null ? void 0 : I.data) == null ? void 0 : W.status)) === !0 ? (c(!0), x === "string" ? v(
|
|
5189
5189
|
((M = (Z = I == null ? void 0 : I.data) == null ? void 0 : Z.data) == null ? void 0 : M.description) || ((E = I == null ? void 0 : I.data) == null ? void 0 : E.description) || "Validation successful"
|
|
5190
5190
|
) : f(
|
|
5191
5191
|
((L = (P = I == null ? void 0 : I.data) == null ? void 0 : P.data) == null ? void 0 : L.description) || ((G = I == null ? void 0 : I.data) == null ? void 0 : G.description) || {}
|
|
5192
|
-
)) : (console.error("Invalid input:", C),
|
|
5192
|
+
)) : (console.error("Invalid input:", C), v("Unable to validate input"), c(!1)));
|
|
5193
5193
|
} catch (I) {
|
|
5194
|
-
console.error("Error validating input:", I),
|
|
5194
|
+
console.error("Error validating input:", I), v(
|
|
5195
5195
|
((w = (q = I == null ? void 0 : I.response) == null ? void 0 : q.data) == null ? void 0 : w.message) || "Unable to validate input"
|
|
5196
5196
|
), c(!1);
|
|
5197
5197
|
} finally {
|
|
@@ -5260,11 +5260,11 @@ function fs({
|
|
|
5260
5260
|
r && !t && /* @__PURE__ */ n.jsx("span", { className: "block pr-3 text-lg text-green-600", children: /* @__PURE__ */ n.jsx(z, { icon: "gg:check-o" }) })
|
|
5261
5261
|
] })
|
|
5262
5262
|
] }),
|
|
5263
|
-
|
|
5263
|
+
h && x === "string" && /* @__PURE__ */ n.jsx(
|
|
5264
5264
|
"span",
|
|
5265
5265
|
{
|
|
5266
5266
|
className: `${r ? "text-green-600" : "text-red-600"} text-sm`,
|
|
5267
|
-
children:
|
|
5267
|
+
children: h
|
|
5268
5268
|
}
|
|
5269
5269
|
),
|
|
5270
5270
|
x === "object" && /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-6 mt-2 text-sm text-gray-600", children: (A = Object.entries(y)) == null ? void 0 : A.map(([C, K]) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
@@ -5284,12 +5284,12 @@ function xs({
|
|
|
5284
5284
|
}) {
|
|
5285
5285
|
const [a, l] = R([...o]);
|
|
5286
5286
|
function d(r, c) {
|
|
5287
|
-
l((
|
|
5288
|
-
const
|
|
5289
|
-
return
|
|
5290
|
-
...
|
|
5287
|
+
l((h) => {
|
|
5288
|
+
const v = [...h];
|
|
5289
|
+
return v[c] = {
|
|
5290
|
+
...v[c],
|
|
5291
5291
|
value: r
|
|
5292
|
-
},
|
|
5292
|
+
}, v;
|
|
5293
5293
|
});
|
|
5294
5294
|
}
|
|
5295
5295
|
function t(r, c) {
|
|
@@ -5297,8 +5297,8 @@ function xs({
|
|
|
5297
5297
|
}
|
|
5298
5298
|
const u = ii(
|
|
5299
5299
|
() => a.reduce((r, c) => {
|
|
5300
|
-
const
|
|
5301
|
-
return r +
|
|
5300
|
+
const h = t(c.key, c.value);
|
|
5301
|
+
return r + h;
|
|
5302
5302
|
}, 0),
|
|
5303
5303
|
[a]
|
|
5304
5304
|
);
|
|
@@ -5306,9 +5306,9 @@ function xs({
|
|
|
5306
5306
|
i && i(a);
|
|
5307
5307
|
}, [a]), O(() => {
|
|
5308
5308
|
if (s != null && s.length) {
|
|
5309
|
-
const r = s == null ? void 0 : s.map((c,
|
|
5309
|
+
const r = s == null ? void 0 : s.map((c, h) => ({
|
|
5310
5310
|
key: c.value,
|
|
5311
|
-
value: Array.isArray(o) && o[
|
|
5311
|
+
value: Array.isArray(o) && o[h] ? o[h].value : ""
|
|
5312
5312
|
}));
|
|
5313
5313
|
l(r);
|
|
5314
5314
|
}
|
|
@@ -5319,13 +5319,13 @@ function xs({
|
|
|
5319
5319
|
/* @__PURE__ */ n.jsx("div", { className: "px-4 py-2", children: /* @__PURE__ */ n.jsx("span", { children: "Sub total" }) })
|
|
5320
5320
|
] }),
|
|
5321
5321
|
a == null ? void 0 : a.map((r, c) => {
|
|
5322
|
-
var
|
|
5322
|
+
var h, v;
|
|
5323
5323
|
return /* @__PURE__ */ n.jsxs(
|
|
5324
5324
|
"div",
|
|
5325
5325
|
{
|
|
5326
5326
|
className: "grid grid-cols-3 text-sm border-b border-gray-100",
|
|
5327
5327
|
children: [
|
|
5328
|
-
/* @__PURE__ */ n.jsx("div", { className: "border-r px-4 py-2 flex items-center", children: /* @__PURE__ */ n.jsx("span", { className: "", children: (
|
|
5328
|
+
/* @__PURE__ */ n.jsx("div", { className: "border-r px-4 py-2 flex items-center", children: /* @__PURE__ */ n.jsx("span", { className: "", children: (h = parseFloat(r.key)) == null ? void 0 : h.toLocaleString() }) }),
|
|
5329
5329
|
/* @__PURE__ */ n.jsx("div", { className: "border-r px-4 py-1", children: /* @__PURE__ */ n.jsx("span", { children: /* @__PURE__ */ n.jsx(
|
|
5330
5330
|
sn,
|
|
5331
5331
|
{
|
|
@@ -5338,7 +5338,7 @@ function xs({
|
|
|
5338
5338
|
allowNegativeValue: !1
|
|
5339
5339
|
}
|
|
5340
5340
|
) }) }),
|
|
5341
|
-
/* @__PURE__ */ n.jsx("div", { className: "px-4 py-2 flex justify-between items-center", children: /* @__PURE__ */ n.jsx("span", { children: (
|
|
5341
|
+
/* @__PURE__ */ n.jsx("div", { className: "px-4 py-2 flex justify-between items-center", children: /* @__PURE__ */ n.jsx("span", { children: (v = t(r.key, r.value)) == null ? void 0 : v.toLocaleString() }) })
|
|
5342
5342
|
]
|
|
5343
5343
|
},
|
|
5344
5344
|
c + "index"
|
|
@@ -5411,7 +5411,7 @@ function ks({
|
|
|
5411
5411
|
return /* @__PURE__ */ n.jsxs("tr", { children: [
|
|
5412
5412
|
e.map((c) => {
|
|
5413
5413
|
var x;
|
|
5414
|
-
const
|
|
5414
|
+
const h = i[c.field], v = c.editable && !o, g = r(c.field), { isValidating: y, result: f } = t(i.id, c.field);
|
|
5415
5415
|
let m = "border-gray-300";
|
|
5416
5416
|
c.validate && ((f == null ? void 0 : f.isValid) === !1 ? m = "border-red-500 bg-red-50" : (f == null ? void 0 : f.isValid) === !0 && (m = "border-green-500 bg-green-50"));
|
|
5417
5417
|
const p = `w-full px-2 py-1 border rounded outline-none ${m}`;
|
|
@@ -5420,21 +5420,21 @@ function ks({
|
|
|
5420
5420
|
{
|
|
5421
5421
|
title: o ? "" : "Double click to edit",
|
|
5422
5422
|
className: "px-3 py-1 border",
|
|
5423
|
-
onDoubleClick: () =>
|
|
5423
|
+
onDoubleClick: () => v && a({
|
|
5424
5424
|
rowId: i.id,
|
|
5425
5425
|
field: c.field
|
|
5426
5426
|
}),
|
|
5427
|
-
children:
|
|
5427
|
+
children: v && g ? /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
5428
5428
|
c.type === "number" ? /* @__PURE__ */ n.jsx(
|
|
5429
5429
|
sn,
|
|
5430
5430
|
{
|
|
5431
|
-
value:
|
|
5431
|
+
value: h,
|
|
5432
5432
|
decimalsLimit: 6,
|
|
5433
5433
|
allowNegativeValue: !1,
|
|
5434
5434
|
className: p,
|
|
5435
5435
|
onValueChange: (j) => l(j, i.id, c.field),
|
|
5436
5436
|
onBlur: () => {
|
|
5437
|
-
a(null), d(
|
|
5437
|
+
a(null), d(h, i.id, c.field, c);
|
|
5438
5438
|
},
|
|
5439
5439
|
autoFocus: !0
|
|
5440
5440
|
}
|
|
@@ -5454,7 +5454,7 @@ function ks({
|
|
|
5454
5454
|
id: S,
|
|
5455
5455
|
type: "radio",
|
|
5456
5456
|
name: `boolean-${i.id}-${String(c.field)}`,
|
|
5457
|
-
checked:
|
|
5457
|
+
checked: h === N,
|
|
5458
5458
|
onChange: () => l(N, i.id, c.field)
|
|
5459
5459
|
}
|
|
5460
5460
|
),
|
|
@@ -5467,10 +5467,10 @@ function ks({
|
|
|
5467
5467
|
"input",
|
|
5468
5468
|
{
|
|
5469
5469
|
type: "text",
|
|
5470
|
-
value: String(
|
|
5470
|
+
value: String(h != null ? h : ""),
|
|
5471
5471
|
onChange: (j) => l(j.target.value, i.id, c.field),
|
|
5472
5472
|
onBlur: () => {
|
|
5473
|
-
a(null), d(
|
|
5473
|
+
a(null), d(h, i.id, c.field, c);
|
|
5474
5474
|
},
|
|
5475
5475
|
className: p,
|
|
5476
5476
|
autoFocus: !0
|
|
@@ -5479,7 +5479,7 @@ function ks({
|
|
|
5479
5479
|
y && /* @__PURE__ */ n.jsx("div", { className: "absolute right-1 top-1", children: /* @__PURE__ */ n.jsx("div", { className: "w-4 h-4 border-2 border-blue-500 rounded-full border-t-transparent animate-spin" }) })
|
|
5480
5480
|
] }) : c.validate && f ? /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5481
5481
|
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
5482
|
-
String(
|
|
5482
|
+
String(h != null ? h : ""),
|
|
5483
5483
|
" ",
|
|
5484
5484
|
f.data && `[${f.data}]`
|
|
5485
5485
|
] }),
|
|
@@ -5491,7 +5491,7 @@ function ks({
|
|
|
5491
5491
|
children: "✗"
|
|
5492
5492
|
}
|
|
5493
5493
|
)
|
|
5494
|
-
] }) : c.type === "checkbox" ? /* @__PURE__ */ n.jsx("span", { className: "block py-1 text-gray-700", children:
|
|
5494
|
+
] }) : c.type === "checkbox" ? /* @__PURE__ */ n.jsx("span", { className: "block py-1 text-gray-700", children: h === !0 ? "Yes" : h === !1 ? "No" : "" }) : /* @__PURE__ */ n.jsx("span", { className: "block py-1 text-gray-700 cursor-pointer", children: String(h != null ? h : "") })
|
|
5495
5495
|
},
|
|
5496
5496
|
String(c.id)
|
|
5497
5497
|
);
|
|
@@ -5539,7 +5539,7 @@ function Ms({
|
|
|
5539
5539
|
};
|
|
5540
5540
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
5541
5541
|
}, []);
|
|
5542
|
-
const
|
|
5542
|
+
const h = Y(
|
|
5543
5543
|
(f, m, p) => {
|
|
5544
5544
|
l(
|
|
5545
5545
|
(x) => x.map(
|
|
@@ -5548,7 +5548,7 @@ function Ms({
|
|
|
5548
5548
|
);
|
|
5549
5549
|
},
|
|
5550
5550
|
[]
|
|
5551
|
-
),
|
|
5551
|
+
), v = Y(() => {
|
|
5552
5552
|
const f = xi(), m = s.reduce((p, x) => (p[x.field] = x.field === "id" ? f : "", p), {});
|
|
5553
5553
|
l((p) => [...p, { id: f, ...m }]);
|
|
5554
5554
|
}, [s]), g = Y((f) => {
|
|
@@ -5564,7 +5564,7 @@ function Ms({
|
|
|
5564
5564
|
/* @__PURE__ */ n.jsx("div", { className: "flex justify-end", children: !o && /* @__PURE__ */ n.jsx(
|
|
5565
5565
|
"button",
|
|
5566
5566
|
{
|
|
5567
|
-
onClick:
|
|
5567
|
+
onClick: v,
|
|
5568
5568
|
type: "button",
|
|
5569
5569
|
className: "px-2 py-1 mb-3 text-xs text-white bg-gray-600 rounded hover:bg-gray-700",
|
|
5570
5570
|
children: "Add Row"
|
|
@@ -5601,7 +5601,7 @@ function Ms({
|
|
|
5601
5601
|
isReadOnly: o,
|
|
5602
5602
|
editingCell: d,
|
|
5603
5603
|
setEditingCell: t,
|
|
5604
|
-
handleCellChange:
|
|
5604
|
+
handleCellChange: h,
|
|
5605
5605
|
debouncedValidate: () => {
|
|
5606
5606
|
},
|
|
5607
5607
|
getValidationStatus: y,
|
|
@@ -5662,8 +5662,8 @@ const ge = ({
|
|
|
5662
5662
|
value: u,
|
|
5663
5663
|
trigger: r,
|
|
5664
5664
|
isMultiple: c = !1,
|
|
5665
|
-
isFloatingLabel:
|
|
5666
|
-
subText:
|
|
5665
|
+
isFloatingLabel: h = !1,
|
|
5666
|
+
subText: v,
|
|
5667
5667
|
labelClass: g = "",
|
|
5668
5668
|
loading: y,
|
|
5669
5669
|
disabled: f
|
|
@@ -5678,8 +5678,8 @@ const ge = ({
|
|
|
5678
5678
|
}, [u, e]), O(() => {
|
|
5679
5679
|
m && l && a && (l(d, m == null ? void 0 : m.value), a(d), r == null || r(d));
|
|
5680
5680
|
}, [d, m]), /* @__PURE__ */ n.jsxs("div", { className: "custom-select", children: [
|
|
5681
|
-
t && !
|
|
5682
|
-
|
|
5681
|
+
t && !h && /* @__PURE__ */ n.jsx("label", { className: "custom-select__label", children: t }),
|
|
5682
|
+
h && t && /* @__PURE__ */ n.jsx("label", { className: J("custom-select__floating-label", g), children: t }),
|
|
5683
5683
|
/* @__PURE__ */ n.jsx(
|
|
5684
5684
|
oi,
|
|
5685
5685
|
{
|
|
@@ -5723,7 +5723,7 @@ const ge = ({
|
|
|
5723
5723
|
] })
|
|
5724
5724
|
}
|
|
5725
5725
|
),
|
|
5726
|
-
|
|
5726
|
+
v && !s && /* @__PURE__ */ n.jsx("p", { className: "custom-select__subtext", children: v }),
|
|
5727
5727
|
s && /* @__PURE__ */ n.jsx("span", { className: "custom-select__error", children: s.message })
|
|
5728
5728
|
] });
|
|
5729
5729
|
}, Es = ({
|
|
@@ -5737,18 +5737,18 @@ const ge = ({
|
|
|
5737
5737
|
setValue: a,
|
|
5738
5738
|
watch: l,
|
|
5739
5739
|
isReadOnly: d
|
|
5740
|
-
} = e || {}, t = (f = i == null ? void 0 : i.id) != null ? f : "cascadeValue", [u, r] = R(""), [c,
|
|
5740
|
+
} = e || {}, t = (f = i == null ? void 0 : i.id) != null ? f : "cascadeValue", [u, r] = R(""), [c, h] = R(""), v = (m, p) => {
|
|
5741
5741
|
const x = m && p ? `${m}_${p}` : "";
|
|
5742
5742
|
a == null || a(t, x), s == null || s(t);
|
|
5743
5743
|
}, g = (m, p) => {
|
|
5744
|
-
m === "first" ? (r(p),
|
|
5744
|
+
m === "first" ? (r(p), h(""), v(p, "")) : (h(p), v(u, p));
|
|
5745
5745
|
};
|
|
5746
5746
|
O(() => {
|
|
5747
5747
|
if (l) {
|
|
5748
5748
|
const m = l(t);
|
|
5749
5749
|
if (m != null && m.includes("_")) {
|
|
5750
5750
|
const [p, x] = m.split("_");
|
|
5751
|
-
r(p),
|
|
5751
|
+
r(p), h(x);
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
5754
|
}, [l, t]);
|
|
@@ -5800,14 +5800,14 @@ const ge = ({
|
|
|
5800
5800
|
register: u = () => ({}),
|
|
5801
5801
|
trigger: r,
|
|
5802
5802
|
setValue: c,
|
|
5803
|
-
watch:
|
|
5804
|
-
isReadOnly:
|
|
5805
|
-
} = t || {}, g = (p =
|
|
5803
|
+
watch: h,
|
|
5804
|
+
isReadOnly: v
|
|
5805
|
+
} = t || {}, g = (p = h == null ? void 0 : h(d.id)) != null ? p : 0, [y, f] = R(null);
|
|
5806
5806
|
O(() => {
|
|
5807
5807
|
g == null && (c == null || c(d.id, i));
|
|
5808
5808
|
}, []);
|
|
5809
5809
|
const m = (x) => {
|
|
5810
|
-
if (!o && !
|
|
5810
|
+
if (!o && !v) {
|
|
5811
5811
|
const j = x + 1;
|
|
5812
5812
|
c == null || c(d.id, j), r == null || r(d.id), s == null || s(j);
|
|
5813
5813
|
}
|
|
@@ -5823,8 +5823,8 @@ const ge = ({
|
|
|
5823
5823
|
className: `cursor-pointer transition-colors ${N ? "text-yellow-400" : "text-gray-300"}`,
|
|
5824
5824
|
width: a,
|
|
5825
5825
|
height: a,
|
|
5826
|
-
onMouseEnter: () => !(o ||
|
|
5827
|
-
onMouseLeave: () => !(o ||
|
|
5826
|
+
onMouseEnter: () => !(o || v) && f(j),
|
|
5827
|
+
onMouseLeave: () => !(o || v) && f(null),
|
|
5828
5828
|
onClick: () => m(j)
|
|
5829
5829
|
},
|
|
5830
5830
|
j
|
|
@@ -5849,13 +5849,13 @@ function fe({
|
|
|
5849
5849
|
return { country: m, state: f };
|
|
5850
5850
|
}
|
|
5851
5851
|
return { country: t, state: "" };
|
|
5852
|
-
}, [t]), c = Ii(t),
|
|
5852
|
+
}, [t]), c = Ii(t), h = ii(() => {
|
|
5853
5853
|
var y, f;
|
|
5854
5854
|
return u ? ((f = (y = Xi.find((m) => m.name === u)) == null ? void 0 : y.states) == null ? void 0 : f.map((m) => ({
|
|
5855
5855
|
label: m.name,
|
|
5856
5856
|
value: m.name
|
|
5857
5857
|
}))) || [] : [];
|
|
5858
|
-
}, [u]),
|
|
5858
|
+
}, [u]), v = (y, f) => {
|
|
5859
5859
|
const p = (f == null ? void 0 : f.value) || "";
|
|
5860
5860
|
s && p !== c.current && (s(i.id, p), a == null || a(i.id), c.current = p);
|
|
5861
5861
|
}, g = (y, f) => {
|
|
@@ -5870,19 +5870,19 @@ function fe({
|
|
|
5870
5870
|
Tn,
|
|
5871
5871
|
{
|
|
5872
5872
|
options: i.options,
|
|
5873
|
-
onGetValue:
|
|
5873
|
+
onGetValue: v,
|
|
5874
5874
|
name: `${i.id}-country`,
|
|
5875
5875
|
readOnly: l,
|
|
5876
5876
|
defaultValue: u
|
|
5877
5877
|
},
|
|
5878
5878
|
`country-${u}`
|
|
5879
5879
|
),
|
|
5880
|
-
|
|
5880
|
+
h.length > 0 && i.showState && /* @__PURE__ */ n.jsxs("div", { children: [
|
|
5881
5881
|
/* @__PURE__ */ n.jsx("label", { className: "block text-sm font-medium mb-1.5 input_label", children: "State" }),
|
|
5882
5882
|
/* @__PURE__ */ n.jsx(
|
|
5883
5883
|
Tn,
|
|
5884
5884
|
{
|
|
5885
|
-
options:
|
|
5885
|
+
options: h,
|
|
5886
5886
|
onGetValue: g,
|
|
5887
5887
|
name: `${i.id}-state`,
|
|
5888
5888
|
readOnly: l,
|
|
@@ -5897,11 +5897,11 @@ function Ls({
|
|
|
5897
5897
|
element: i,
|
|
5898
5898
|
validationData: e
|
|
5899
5899
|
}) {
|
|
5900
|
-
const { register: o = () => ({}), isReadOnly: s } = e || {}, { validationUrl: a, documentObj: l, signatureLink: d } = i, t = ii(() => fi("config"), []), [u, r] = R(!1), [c,
|
|
5900
|
+
const { register: o = () => ({}), isReadOnly: s } = e || {}, { validationUrl: a, documentObj: l, signatureLink: d } = i, t = ii(() => fi("config"), []), [u, r] = R(!1), [c, h] = R(!1), v = Y(async () => {
|
|
5901
5901
|
var g, y;
|
|
5902
5902
|
if (!(!a || !l))
|
|
5903
5903
|
try {
|
|
5904
|
-
|
|
5904
|
+
h(!0);
|
|
5905
5905
|
const m = {
|
|
5906
5906
|
headers: {
|
|
5907
5907
|
Authorization: `Bearer ${fi("token")}`
|
|
@@ -5914,19 +5914,19 @@ function Ls({
|
|
|
5914
5914
|
} catch (f) {
|
|
5915
5915
|
console.error("Failed to check sign status", f);
|
|
5916
5916
|
} finally {
|
|
5917
|
-
|
|
5917
|
+
h(!1);
|
|
5918
5918
|
}
|
|
5919
5919
|
}, [a, l]);
|
|
5920
5920
|
return O(() => {
|
|
5921
5921
|
let g = null;
|
|
5922
5922
|
return !u && l && a && (async () => {
|
|
5923
|
-
await
|
|
5924
|
-
await
|
|
5923
|
+
await v() || (g = setInterval(async () => {
|
|
5924
|
+
await v() && g && clearInterval(g);
|
|
5925
5925
|
}, 2e3));
|
|
5926
5926
|
})(), () => {
|
|
5927
5927
|
g && clearInterval(g);
|
|
5928
5928
|
};
|
|
5929
|
-
}, [
|
|
5929
|
+
}, [v, u, l, a]), /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
5930
5930
|
/* @__PURE__ */ n.jsx(
|
|
5931
5931
|
"input",
|
|
5932
5932
|
{
|
|
@@ -5941,7 +5941,7 @@ function Ls({
|
|
|
5941
5941
|
"button",
|
|
5942
5942
|
{
|
|
5943
5943
|
type: "button",
|
|
5944
|
-
onClick:
|
|
5944
|
+
onClick: v,
|
|
5945
5945
|
disabled: c || u,
|
|
5946
5946
|
style: { background: (t == null ? void 0 : t.buttonColor) || "#333" },
|
|
5947
5947
|
className: J(
|
|
@@ -6220,8 +6220,8 @@ function Ps({
|
|
|
6220
6220
|
disabled: u,
|
|
6221
6221
|
readOnly: r,
|
|
6222
6222
|
horizontal: c,
|
|
6223
|
-
description:
|
|
6224
|
-
validate:
|
|
6223
|
+
description: h,
|
|
6224
|
+
validate: v,
|
|
6225
6225
|
onChange: g,
|
|
6226
6226
|
onError: y
|
|
6227
6227
|
}) {
|
|
@@ -6320,7 +6320,7 @@ function Ps({
|
|
|
6320
6320
|
/* @__PURE__ */ n.jsx("div", { className: "absolute flex text-xl -translate-y-1/2 top-1/2 right-4", children: !Z && j.length > 0 && !r && /* @__PURE__ */ n.jsx("span", { className: "text-green-500", children: /* @__PURE__ */ n.jsx(z, { icon: "bi:check-lg" }) }) })
|
|
6321
6321
|
] })
|
|
6322
6322
|
] }),
|
|
6323
|
-
|
|
6323
|
+
h && /* @__PURE__ */ n.jsx("span", { className: "block text-[#475467] font-light leading-4 text-xs mt-2", children: h })
|
|
6324
6324
|
]
|
|
6325
6325
|
}
|
|
6326
6326
|
);
|
|
@@ -6470,8 +6470,8 @@ const He = {
|
|
|
6470
6470
|
setIsDragging: u,
|
|
6471
6471
|
moveElement: r,
|
|
6472
6472
|
isDragging: c,
|
|
6473
|
-
removeElement:
|
|
6474
|
-
} = Ni(pi),
|
|
6473
|
+
removeElement: h
|
|
6474
|
+
} = Ni(pi), v = ii(
|
|
6475
6475
|
() => Array.from({ length: i.columns }),
|
|
6476
6476
|
[i.columns]
|
|
6477
6477
|
), [g, y] = R(null);
|
|
@@ -6522,7 +6522,7 @@ const He = {
|
|
|
6522
6522
|
return P.gridId === i.id && ((L = P.gridPosition) == null ? void 0 : L.col) === A;
|
|
6523
6523
|
}
|
|
6524
6524
|
);
|
|
6525
|
-
M &&
|
|
6525
|
+
M && h(M.id, e);
|
|
6526
6526
|
const E = {
|
|
6527
6527
|
...W,
|
|
6528
6528
|
id: xi(),
|
|
@@ -6605,7 +6605,7 @@ const He = {
|
|
|
6605
6605
|
style: {
|
|
6606
6606
|
gridTemplateColumns: `repeat(${i.columns}, 1fr)`
|
|
6607
6607
|
},
|
|
6608
|
-
children:
|
|
6608
|
+
children: v == null ? void 0 : v.map(
|
|
6609
6609
|
(N, S) => j(S, s, a)
|
|
6610
6610
|
)
|
|
6611
6611
|
}
|
|
@@ -6665,18 +6665,18 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6665
6665
|
p.dataTransfer.setData("elementId", x), p.dataTransfer.setData("properties", x), p.dataTransfer.effectAllowed = "move", u(x), a(!0);
|
|
6666
6666
|
},
|
|
6667
6667
|
[a]
|
|
6668
|
-
),
|
|
6668
|
+
), h = Y(() => {
|
|
6669
6669
|
u(null), a(!1);
|
|
6670
6670
|
}, [a]);
|
|
6671
6671
|
O(() => {
|
|
6672
6672
|
!s && t && u(null);
|
|
6673
6673
|
}, [s, t]);
|
|
6674
|
-
const
|
|
6674
|
+
const v = Y(
|
|
6675
6675
|
(p) => {
|
|
6676
6676
|
p.preventDefault(), p.stopPropagation();
|
|
6677
6677
|
const x = p.dataTransfer.getData("elementId"), j = p.currentTarget.id;
|
|
6678
6678
|
if (!x || !j || x === j) {
|
|
6679
|
-
|
|
6679
|
+
h();
|
|
6680
6680
|
return;
|
|
6681
6681
|
}
|
|
6682
6682
|
const N = r.find((A) => A.id === x), S = r.findIndex(
|
|
@@ -6684,7 +6684,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6684
6684
|
);
|
|
6685
6685
|
N != null && N.gridId && S !== -1 ? d({ draggedId: x, sectionId: e, targetIndex: S }) : d({ draggedId: x, sectionId: e, targetId: j }), u(null), a(!1);
|
|
6686
6686
|
},
|
|
6687
|
-
[e, d, a,
|
|
6687
|
+
[e, d, a, h, r]
|
|
6688
6688
|
), g = Y(
|
|
6689
6689
|
(p, x) => {
|
|
6690
6690
|
p.preventDefault(), p.stopPropagation(), a(!1);
|
|
@@ -6713,8 +6713,8 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6713
6713
|
onDragOver: x ? void 0 : (j) => {
|
|
6714
6714
|
j.preventDefault(), j.stopPropagation();
|
|
6715
6715
|
},
|
|
6716
|
-
onDrop: x ? void 0 :
|
|
6717
|
-
onDragEnd:
|
|
6716
|
+
onDrop: x ? void 0 : v,
|
|
6717
|
+
onDragEnd: h,
|
|
6718
6718
|
className: J(
|
|
6719
6719
|
"cursor-grab active:cursor-grabbing border p-4 w-full rounded-lg",
|
|
6720
6720
|
"transition-all duration-200 ease-in-out",
|
|
@@ -6724,7 +6724,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6724
6724
|
},
|
|
6725
6725
|
p.id
|
|
6726
6726
|
),
|
|
6727
|
-
[t,
|
|
6727
|
+
[t, v, e, c, h]
|
|
6728
6728
|
), f = ii(() => (i == null ? void 0 : i.reduce((p, x) => (x.gridId && (p[x.gridId] = p[x.gridId] || [], p[x.gridId].push(x)), p), {})) || {}, [i]);
|
|
6729
6729
|
if (!(i != null && i.length))
|
|
6730
6730
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -6732,7 +6732,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6732
6732
|
{
|
|
6733
6733
|
onDragOver: (p) => p.preventDefault(),
|
|
6734
6734
|
onDrop: (p) => g(p, 0),
|
|
6735
|
-
onDragEnd:
|
|
6735
|
+
onDragEnd: h,
|
|
6736
6736
|
className: "w-full h-full flex items-center justify-center text-gray-400 min-h-[200px] p-10 col-span-2 border border-dashed border-gray-300 rounded-lg",
|
|
6737
6737
|
children: "Drag or click an element to display"
|
|
6738
6738
|
}
|
|
@@ -6745,7 +6745,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6745
6745
|
index: 0,
|
|
6746
6746
|
isDragging: s,
|
|
6747
6747
|
onDrop: g,
|
|
6748
|
-
onDragEnd:
|
|
6748
|
+
onDragEnd: h
|
|
6749
6749
|
}
|
|
6750
6750
|
),
|
|
6751
6751
|
m.map((p) => {
|
|
@@ -6762,8 +6762,8 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6762
6762
|
onDragOver: (A) => {
|
|
6763
6763
|
A.preventDefault(), A.stopPropagation();
|
|
6764
6764
|
},
|
|
6765
|
-
onDrop:
|
|
6766
|
-
onDragEnd:
|
|
6765
|
+
onDrop: v,
|
|
6766
|
+
onDragEnd: h,
|
|
6767
6767
|
className: J(
|
|
6768
6768
|
"w-full p-4 border rounded-lg cursor-grab active:cursor-grabbing",
|
|
6769
6769
|
"transition-all duration-200 ease-in-out",
|
|
@@ -6792,7 +6792,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6792
6792
|
index: x + 1,
|
|
6793
6793
|
isDragging: s,
|
|
6794
6794
|
onDrop: g,
|
|
6795
|
-
onDragEnd:
|
|
6795
|
+
onDragEnd: h
|
|
6796
6796
|
}
|
|
6797
6797
|
)
|
|
6798
6798
|
] }, p.id);
|
|
@@ -6805,7 +6805,7 @@ function Ks({ elementData: i, sectionId: e }) {
|
|
|
6805
6805
|
index: x + 1,
|
|
6806
6806
|
isDragging: s,
|
|
6807
6807
|
onDrop: g,
|
|
6808
|
-
onDragEnd:
|
|
6808
|
+
onDragEnd: h
|
|
6809
6809
|
}
|
|
6810
6810
|
)
|
|
6811
6811
|
] }, p.id);
|
|
@@ -6829,8 +6829,8 @@ const Gs = an(Ks), Hs = B.object({
|
|
|
6829
6829
|
if (ri.useEffect(() => {
|
|
6830
6830
|
i || c();
|
|
6831
6831
|
}, [i, c]), !i) return null;
|
|
6832
|
-
const
|
|
6833
|
-
s(
|
|
6832
|
+
const h = (v) => {
|
|
6833
|
+
s(v, o.id), e();
|
|
6834
6834
|
};
|
|
6835
6835
|
return /* @__PURE__ */ n.jsx("div", { className: "fixed inset-0 bg-black/30 flex items-center justify-center z-[999] cursor-default no-drag select-none", children: /* @__PURE__ */ n.jsxs("div", { className: "min-w-[600px] bg-white rounded-xl shadow-xl relative flex flex-col items-center", children: [
|
|
6836
6836
|
/* @__PURE__ */ n.jsxs("div", { className: "w-full px-6 pt-6 pb-5 flex flex-col items-start gap-4 z-10 mb-6", children: [
|
|
@@ -6844,7 +6844,7 @@ const Gs = an(Ks), Hs = B.object({
|
|
|
6844
6844
|
}
|
|
6845
6845
|
)
|
|
6846
6846
|
] }),
|
|
6847
|
-
/* @__PURE__ */ n.jsxs("form", { onSubmit: l(
|
|
6847
|
+
/* @__PURE__ */ n.jsxs("form", { onSubmit: l(h), className: "w-full", children: [
|
|
6848
6848
|
/* @__PURE__ */ n.jsxs("div", { className: "w-full px-6 flex flex-col gap-5 z-10", children: [
|
|
6849
6849
|
/* @__PURE__ */ n.jsx(
|
|
6850
6850
|
F,
|
|
@@ -6900,19 +6900,19 @@ const Gs = an(Ks), Hs = B.object({
|
|
|
6900
6900
|
setSelectedSection: u,
|
|
6901
6901
|
selectedSection: r,
|
|
6902
6902
|
activeSections: c,
|
|
6903
|
-
setActiveSections:
|
|
6903
|
+
setActiveSections: h
|
|
6904
6904
|
} = Ni(pi);
|
|
6905
6905
|
O(() => {
|
|
6906
6906
|
var m;
|
|
6907
6907
|
u(((m = d[0]) == null ? void 0 : m.id) || null);
|
|
6908
6908
|
}, []);
|
|
6909
|
-
const
|
|
6909
|
+
const v = Y((m) => {
|
|
6910
6910
|
m.preventDefault(), m.dataTransfer.dropEffect = "move", s.current && (s.current.scrollTop = s.current.scrollHeight);
|
|
6911
6911
|
}, []);
|
|
6912
6912
|
function g(m) {
|
|
6913
|
-
c.includes(m) ?
|
|
6913
|
+
c.includes(m) ? h(
|
|
6914
6914
|
(p) => p.filter((x) => x !== m)
|
|
6915
|
-
) :
|
|
6915
|
+
) : h((p) => [...p, m]);
|
|
6916
6916
|
}
|
|
6917
6917
|
function y(m) {
|
|
6918
6918
|
o.current = m, e(!0);
|
|
@@ -6995,7 +6995,7 @@ const Gs = an(Ks), Hs = B.object({
|
|
|
6995
6995
|
{
|
|
6996
6996
|
className: "h-full mt-4 transition-all duration-200",
|
|
6997
6997
|
id: m.id,
|
|
6998
|
-
onDragOver:
|
|
6998
|
+
onDragOver: v,
|
|
6999
6999
|
onDragEnd: () => t(!1),
|
|
7000
7000
|
onClick: () => u(m.id),
|
|
7001
7001
|
children: [
|
|
@@ -7097,11 +7097,11 @@ const An = [
|
|
|
7097
7097
|
};
|
|
7098
7098
|
s(y, a);
|
|
7099
7099
|
}
|
|
7100
|
-
const t = fi("config") || {}, u = t.elementColor, r = t.elementBgColor, c = t.elementBorderColor,
|
|
7100
|
+
const t = fi("config") || {}, u = t.elementColor, r = t.elementBgColor, c = t.elementBorderColor, h = _a.filter(
|
|
7101
7101
|
(g) => g.label.toLowerCase().includes(i.toLowerCase())
|
|
7102
|
-
),
|
|
7102
|
+
), v = An == null ? void 0 : An.map((g) => ({
|
|
7103
7103
|
title: g.title,
|
|
7104
|
-
elements:
|
|
7104
|
+
elements: h.filter(
|
|
7105
7105
|
(y) => {
|
|
7106
7106
|
var f;
|
|
7107
7107
|
return (f = Ja[g.key]) == null ? void 0 : f.includes(y.type);
|
|
@@ -7121,7 +7121,7 @@ const An = [
|
|
|
7121
7121
|
}
|
|
7122
7122
|
) }),
|
|
7123
7123
|
/* @__PURE__ */ n.jsx("hr", {}),
|
|
7124
|
-
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("ul", { className: "grid gap-y-5 mt-3 px-5 max-h-[80vh] overflow-y-auto no-scrollbar", children:
|
|
7124
|
+
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx("ul", { className: "grid gap-y-5 mt-3 px-5 max-h-[80vh] overflow-y-auto no-scrollbar", children: v == null ? void 0 : v.map((g, y) => {
|
|
7125
7125
|
var f;
|
|
7126
7126
|
return /* @__PURE__ */ n.jsxs("li", { children: [
|
|
7127
7127
|
/* @__PURE__ */ n.jsx("h4", { className: "mb-2 text-[11px] font-bold text-gray-500 uppercase", children: g.title }),
|
|
@@ -7169,8 +7169,8 @@ const An = [
|
|
|
7169
7169
|
link: u = "",
|
|
7170
7170
|
div: r = !1,
|
|
7171
7171
|
type: c = "button",
|
|
7172
|
-
style:
|
|
7173
|
-
onClick:
|
|
7172
|
+
style: h,
|
|
7173
|
+
onClick: v
|
|
7174
7174
|
}) => {
|
|
7175
7175
|
const g = J(
|
|
7176
7176
|
"btn inline-flex justify-center",
|
|
@@ -7223,8 +7223,8 @@ const An = [
|
|
|
7223
7223
|
type: c,
|
|
7224
7224
|
className: g,
|
|
7225
7225
|
"data-testid": "btn",
|
|
7226
|
-
onClick:
|
|
7227
|
-
style:
|
|
7226
|
+
onClick: v,
|
|
7227
|
+
style: h,
|
|
7228
7228
|
children: y()
|
|
7229
7229
|
}
|
|
7230
7230
|
);
|
|
@@ -7332,7 +7332,7 @@ function Zs({
|
|
|
7332
7332
|
publishLoading: d,
|
|
7333
7333
|
onTitleChange: t
|
|
7334
7334
|
}) {
|
|
7335
|
-
const { formData: u } = Ni(pi), [r, c] = R(!1), [
|
|
7335
|
+
const { formData: u } = Ni(pi), [r, c] = R(!1), [h, v] = R(!1), [g, y] = R(i || ""), f = fi("config");
|
|
7336
7336
|
function m() {
|
|
7337
7337
|
localStorage.setItem("formData", JSON.stringify(u)), o == null || o(u);
|
|
7338
7338
|
}
|
|
@@ -7340,7 +7340,7 @@ function Zs({
|
|
|
7340
7340
|
localStorage.setItem("formData", JSON.stringify(u)), s == null || s(u);
|
|
7341
7341
|
}
|
|
7342
7342
|
function x() {
|
|
7343
|
-
|
|
7343
|
+
v(!1), t && g !== i && t(g.trim());
|
|
7344
7344
|
}
|
|
7345
7345
|
return /* @__PURE__ */ n.jsxs("div", { className: "px-[30px] py-3 flex justify-between items-center bg-[#F9F9FB] top_bar", children: [
|
|
7346
7346
|
/* @__PURE__ */ n.jsxs("span", { className: "flex items-center gap-x-2", children: [
|
|
@@ -7355,7 +7355,7 @@ function Zs({
|
|
|
7355
7355
|
}
|
|
7356
7356
|
),
|
|
7357
7357
|
" ",
|
|
7358
|
-
|
|
7358
|
+
h ? /* @__PURE__ */ n.jsx(
|
|
7359
7359
|
"input",
|
|
7360
7360
|
{
|
|
7361
7361
|
type: "text",
|
|
@@ -7370,7 +7370,7 @@ function Zs({
|
|
|
7370
7370
|
{
|
|
7371
7371
|
title: "Click to edit",
|
|
7372
7372
|
className: "text-base font-semibold cursor-pointer form_title",
|
|
7373
|
-
onClick: () =>
|
|
7373
|
+
onClick: () => v(!0),
|
|
7374
7374
|
children: g || "Untitled"
|
|
7375
7375
|
}
|
|
7376
7376
|
)
|
|
@@ -7484,8 +7484,8 @@ const xl = ({
|
|
|
7484
7484
|
previewLoading: u,
|
|
7485
7485
|
saveLoading: r,
|
|
7486
7486
|
publishLoading: c,
|
|
7487
|
-
onTitleChange:
|
|
7488
|
-
uploadUrl:
|
|
7487
|
+
onTitleChange: h,
|
|
7488
|
+
uploadUrl: v
|
|
7489
7489
|
}) => (O(() => {
|
|
7490
7490
|
s && Ge("config", s);
|
|
7491
7491
|
}, [s]), /* @__PURE__ */ n.jsx(
|
|
@@ -7501,8 +7501,8 @@ const xl = ({
|
|
|
7501
7501
|
previewLoading: u,
|
|
7502
7502
|
saveLoading: r,
|
|
7503
7503
|
publishLoading: c,
|
|
7504
|
-
onTitleChange:
|
|
7505
|
-
uploadUrl:
|
|
7504
|
+
onTitleChange: h,
|
|
7505
|
+
uploadUrl: v
|
|
7506
7506
|
}
|
|
7507
7507
|
)), Mi = {
|
|
7508
7508
|
required: "This field is required",
|
|
@@ -7698,7 +7698,7 @@ function ol({ form_data: i, options: e, current: o }) {
|
|
|
7698
7698
|
element: a,
|
|
7699
7699
|
customClass: "p-0 min-h-[60px] border-none",
|
|
7700
7700
|
children: t == null ? void 0 : t.map((u) => {
|
|
7701
|
-
var r, c,
|
|
7701
|
+
var r, c, h;
|
|
7702
7702
|
return /* @__PURE__ */ n.jsxs(
|
|
7703
7703
|
On,
|
|
7704
7704
|
{
|
|
@@ -7706,7 +7706,7 @@ function ol({ form_data: i, options: e, current: o }) {
|
|
|
7706
7706
|
customClass: "p-0",
|
|
7707
7707
|
children: [
|
|
7708
7708
|
en(u, on(u, e)),
|
|
7709
|
-
/* @__PURE__ */ n.jsx("div", { className: "mt-1 text-xs text-red-600", children: (
|
|
7709
|
+
/* @__PURE__ */ n.jsx("div", { className: "mt-1 text-xs text-red-600", children: (h = (c = e == null ? void 0 : e.errors) == null ? void 0 : c[u.id]) == null ? void 0 : h.message })
|
|
7710
7710
|
]
|
|
7711
7711
|
},
|
|
7712
7712
|
u.id
|
|
@@ -7748,7 +7748,7 @@ const sl = ({
|
|
|
7748
7748
|
uploadUrl: r
|
|
7749
7749
|
}) => {
|
|
7750
7750
|
var vi, bi, ai, H, D, li, ui, si;
|
|
7751
|
-
const { setAnswerData: c, setUploadUrl:
|
|
7751
|
+
const { setAnswerData: c, setUploadUrl: h } = Ni(pi), [v, g] = R(0), y = ii(
|
|
7752
7752
|
() => i.filter((di) => !di.disabled),
|
|
7753
7753
|
[i]
|
|
7754
7754
|
), f = (vi = y == null ? void 0 : y.length) != null ? vi : 0, m = fi("config"), p = ii(
|
|
@@ -7780,8 +7780,8 @@ const sl = ({
|
|
|
7780
7780
|
[a]
|
|
7781
7781
|
);
|
|
7782
7782
|
O(() => {
|
|
7783
|
-
|
|
7784
|
-
}, [
|
|
7783
|
+
h(r);
|
|
7784
|
+
}, [h, r]), O(() => {
|
|
7785
7785
|
if (!(y != null && y.length) || !a) return;
|
|
7786
7786
|
const di = y.flatMap(
|
|
7787
7787
|
(ki) => {
|
|
@@ -7829,13 +7829,13 @@ const sl = ({
|
|
|
7829
7829
|
), I = Y(async () => {
|
|
7830
7830
|
var di, ki;
|
|
7831
7831
|
if (!o) {
|
|
7832
|
-
const yi = (ki = (di = y == null ? void 0 : y[
|
|
7832
|
+
const yi = (ki = (di = y == null ? void 0 : y[v]) == null ? void 0 : di.questionData) == null ? void 0 : ki.map(
|
|
7833
7833
|
(Ci) => Ci.id
|
|
7834
7834
|
);
|
|
7835
7835
|
if (!await M(yi)) return;
|
|
7836
7836
|
}
|
|
7837
7837
|
g((yi) => yi + 1);
|
|
7838
|
-
}, [
|
|
7838
|
+
}, [v, y, o, M]), U = Y(() => {
|
|
7839
7839
|
g((di) => di - 1);
|
|
7840
7840
|
}, []), ni = ii(
|
|
7841
7841
|
() => ({
|
|
@@ -7876,16 +7876,16 @@ const sl = ({
|
|
|
7876
7876
|
{
|
|
7877
7877
|
className: "multi_section__box",
|
|
7878
7878
|
children: [
|
|
7879
|
-
d === "multi" && (((bi = y == null ? void 0 : y[
|
|
7880
|
-
((H = y[
|
|
7881
|
-
((li = y[
|
|
7879
|
+
d === "multi" && (((bi = y == null ? void 0 : y[v]) == null ? void 0 : bi.title) || ((ai = y == null ? void 0 : y[v]) == null ? void 0 : ai.description)) && /* @__PURE__ */ n.jsxs("div", { className: "py-4 mb-4 border-b border-gray-100 multi_section__title", children: [
|
|
7880
|
+
((H = y[v]) == null ? void 0 : H.title) && /* @__PURE__ */ n.jsx("h2", { className: "text-lg font-semibold mb-[6px]", children: (D = y[v]) == null ? void 0 : D.title }),
|
|
7881
|
+
((li = y[v]) == null ? void 0 : li.description) && /* @__PURE__ */ n.jsx("p", { className: "text-sm", children: (ui = y[v]) == null ? void 0 : ui.description })
|
|
7882
7882
|
] }),
|
|
7883
7883
|
d === "multi" ? /* @__PURE__ */ n.jsx(
|
|
7884
7884
|
ol,
|
|
7885
7885
|
{
|
|
7886
7886
|
form_data: y,
|
|
7887
7887
|
options: ni,
|
|
7888
|
-
current:
|
|
7888
|
+
current: v
|
|
7889
7889
|
}
|
|
7890
7890
|
) : /* @__PURE__ */ n.jsx(
|
|
7891
7891
|
el,
|
|
@@ -7896,28 +7896,29 @@ const sl = ({
|
|
|
7896
7896
|
)
|
|
7897
7897
|
]
|
|
7898
7898
|
},
|
|
7899
|
-
(si = y == null ? void 0 : y[
|
|
7899
|
+
(si = y == null ? void 0 : y[v]) == null ? void 0 : si.id
|
|
7900
7900
|
) }),
|
|
7901
7901
|
!u && /* @__PURE__ */ n.jsx("footer", { className: "flex items-center justify-end gap-4 footer flex-wrap", children: d === "multi" ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
7902
|
-
|
|
7902
|
+
v > 0 && /* @__PURE__ */ n.jsx(
|
|
7903
7903
|
Ei,
|
|
7904
7904
|
{
|
|
7905
7905
|
type: "button",
|
|
7906
7906
|
text: "Back",
|
|
7907
7907
|
onClick: U,
|
|
7908
|
-
btnClass: "text-gray-700 text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-gray-200 rounded-lg"
|
|
7908
|
+
btnClass: "text-gray-700 back_btn text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-gray-200 rounded-lg"
|
|
7909
7909
|
}
|
|
7910
7910
|
),
|
|
7911
|
-
|
|
7911
|
+
v < f - 1 && /* @__PURE__ */ n.jsx(
|
|
7912
7912
|
Ei,
|
|
7913
7913
|
{
|
|
7914
7914
|
type: "button",
|
|
7915
|
-
text: "
|
|
7915
|
+
text: "Next",
|
|
7916
7916
|
onClick: I,
|
|
7917
7917
|
style: { background: (m == null ? void 0 : m.buttonColor) || "#333" },
|
|
7918
|
-
btnClass: "text-gray-700 text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg continue_btn"
|
|
7918
|
+
btnClass: "text-gray-700 next_btn text-sm border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg continue_btn"
|
|
7919
7919
|
}
|
|
7920
|
-
)
|
|
7920
|
+
),
|
|
7921
|
+
(v === f - 1 || l) && !o && (t != null ? t : /* @__PURE__ */ n.jsx(
|
|
7921
7922
|
Ei,
|
|
7922
7923
|
{
|
|
7923
7924
|
isDisabled: Z || Object.keys(W).length > 0,
|
|
@@ -7925,7 +7926,7 @@ const sl = ({
|
|
|
7925
7926
|
type: "submit",
|
|
7926
7927
|
text: "Submit",
|
|
7927
7928
|
style: { background: (m == null ? void 0 : m.buttonColor) || "#333" },
|
|
7928
|
-
btnClass: "text-gray-700 border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg submit_btn"
|
|
7929
|
+
btnClass: "text-gray-700 border-[#98A2B3] submit_btn !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg submit_btn"
|
|
7929
7930
|
}
|
|
7930
7931
|
))
|
|
7931
7932
|
] }) : !o && (t != null ? t : /* @__PURE__ */ n.jsx(
|
|
@@ -7936,7 +7937,7 @@ const sl = ({
|
|
|
7936
7937
|
type: "submit",
|
|
7937
7938
|
text: "Submit",
|
|
7938
7939
|
style: { background: (m == null ? void 0 : m.buttonColor) || "#333" },
|
|
7939
|
-
btnClass: "text-gray-700 border-[#98A2B3] !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg submit_btn"
|
|
7940
|
+
btnClass: "text-gray-700 border-[#98A2B3] submit_btn !font-medium !py-[10px] px-10 bg-blue-600 text-white rounded-lg submit_btn"
|
|
7940
7941
|
}
|
|
7941
7942
|
)) })
|
|
7942
7943
|
]
|
|
@@ -7956,12 +7957,12 @@ function dl({
|
|
|
7956
7957
|
children: u,
|
|
7957
7958
|
hideFooter: r,
|
|
7958
7959
|
onGetValues: c,
|
|
7959
|
-
uploadUrl:
|
|
7960
|
+
uploadUrl: h
|
|
7960
7961
|
}) {
|
|
7961
7962
|
O(() => {
|
|
7962
7963
|
d && Ge("config", d);
|
|
7963
7964
|
}, [d]);
|
|
7964
|
-
const
|
|
7965
|
+
const v = Y(
|
|
7965
7966
|
(g) => {
|
|
7966
7967
|
c && c(g);
|
|
7967
7968
|
},
|
|
@@ -7979,8 +7980,8 @@ function dl({
|
|
|
7979
7980
|
isReadOnly: a,
|
|
7980
7981
|
renderType: t,
|
|
7981
7982
|
hideFooter: r,
|
|
7982
|
-
onGetValues:
|
|
7983
|
-
uploadUrl:
|
|
7983
|
+
onGetValues: v,
|
|
7984
|
+
uploadUrl: h,
|
|
7984
7985
|
children: u
|
|
7985
7986
|
}
|
|
7986
7987
|
) })
|