iq-line-form-builder-renderer 1.2.3 → 1.2.5
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-renderer.es.js +606 -578
- package/dist/form-renderer.umd.js +4 -4
- package/dist/pages/systemAdmin/modules/formbuilder/components/fields/BillingGridField.d.ts.map +1 -1
- package/dist/pages/systemAdmin/modules/formbuilder/types/field.d.ts +19 -20
- package/dist/pages/systemAdmin/modules/formbuilder/types/field.d.ts.map +1 -1
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridFieldUi.d.ts +5 -0
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridFieldUi.d.ts.map +1 -0
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridTextStyle.d.ts +4 -1
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridTextStyle.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/form-renderer.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import Lt, { createContext as jl, useContext as zl, useRef as At, useLayoutEffect as as, useCallback as Z, useMemo as pe, useEffect as wt, forwardRef as df, createElement as
|
|
2
|
+
import Lt, { createContext as jl, useContext as zl, useRef as At, useLayoutEffect as as, useCallback as Z, useMemo as pe, useEffect as wt, forwardRef as df, createElement as al, useState as Ee, useId as Py } from "react";
|
|
3
3
|
import { jsx as f, jsxs as $, Fragment as an } from "react/jsx-runtime";
|
|
4
4
|
import { useParams as Ul } from "react-router-dom";
|
|
5
5
|
import * as ks from "react-dom";
|
|
@@ -7,7 +7,7 @@ import Oy from "react-dom";
|
|
|
7
7
|
import { toast as Kt } from "sonner";
|
|
8
8
|
import { useQueryClient as Iy, useQuery as qr } from "@tanstack/react-query";
|
|
9
9
|
const ff = "iq-fbr", So = "95px";
|
|
10
|
-
function
|
|
10
|
+
function ll(e) {
|
|
11
11
|
return !e || typeof e.columns != "number" ? null : {
|
|
12
12
|
rows: e.rows ?? 8,
|
|
13
13
|
columns: e.columns,
|
|
@@ -197,7 +197,7 @@ const My = (e, t) => {
|
|
|
197
197
|
i in n ? n[i] = s : o(i, s);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
},
|
|
200
|
+
}, cl = "!", su = ":", qy = [], au = (e, t, n, r, o) => ({
|
|
201
201
|
modifiers: e,
|
|
202
202
|
hasImportantModifier: t,
|
|
203
203
|
baseClassName: n,
|
|
@@ -228,12 +228,12 @@ const My = (e, t) => {
|
|
|
228
228
|
}
|
|
229
229
|
const d = i.length === 0 ? o : o.slice(c);
|
|
230
230
|
let p = d, m = !1;
|
|
231
|
-
d.endsWith(
|
|
231
|
+
d.endsWith(cl) ? (p = d.slice(0, -1), m = !0) : (
|
|
232
232
|
/**
|
|
233
233
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
234
234
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
235
235
|
*/
|
|
236
|
-
d.startsWith(
|
|
236
|
+
d.startsWith(cl) && (p = d.slice(1), m = !0)
|
|
237
237
|
);
|
|
238
238
|
const g = u && u > c ? u - c : void 0;
|
|
239
239
|
return au(i, m, p, g);
|
|
@@ -300,7 +300,7 @@ const My = (e, t) => {
|
|
|
300
300
|
}
|
|
301
301
|
y = !1;
|
|
302
302
|
}
|
|
303
|
-
const w = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), S = m ? w +
|
|
303
|
+
const w = p.length === 0 ? "" : p.length === 1 ? p[0] : i(p).join(":"), S = m ? w + cl : w, C = S + v;
|
|
304
304
|
if (s.indexOf(C) > -1)
|
|
305
305
|
continue;
|
|
306
306
|
s.push(C);
|
|
@@ -3070,7 +3070,7 @@ function kf(e) {
|
|
|
3070
3070
|
maxWidth: "100%"
|
|
3071
3071
|
};
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function UF(e) {
|
|
3074
3074
|
return kf(e);
|
|
3075
3075
|
}
|
|
3076
3076
|
function xa(e) {
|
|
@@ -3135,7 +3135,7 @@ function us(e) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return Kl(Pf(e));
|
|
3137
3137
|
}
|
|
3138
|
-
const
|
|
3138
|
+
const VF = us;
|
|
3139
3139
|
function ql(e) {
|
|
3140
3140
|
if (e.type === "billingGrid" || e.type === "table" || ai(e) > 1) return !0;
|
|
3141
3141
|
const t = Ff(e.appearance?.contentVerticalAlign);
|
|
@@ -3218,7 +3218,7 @@ function du(e) {
|
|
|
3218
3218
|
us(e)
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function HF(e, t) {
|
|
3222
3222
|
const n = {};
|
|
3223
3223
|
e !== void 0 && (n.cellAlign = e), t !== void 0 && (n.cellJustify = t);
|
|
3224
3224
|
const o = e === void 0 && t === void 0 ? void 0 : n;
|
|
@@ -3733,10 +3733,10 @@ function Df(e) {
|
|
|
3733
3733
|
return null;
|
|
3734
3734
|
}
|
|
3735
3735
|
function nv(e, t, n, r) {
|
|
3736
|
-
let o =
|
|
3736
|
+
let o = ul(e, n);
|
|
3737
3737
|
return r && (o = Hr(o, t, n)), o;
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function ul(e, t) {
|
|
3740
3740
|
return e.replace(/\{(?:ctx:|\@)(\w+)\}/g, (n, r) => t?.[r] !== void 0 && t[r] !== null ? String(t[r]) : n);
|
|
3741
3741
|
}
|
|
3742
3742
|
function Hr(e, t, n) {
|
|
@@ -3798,7 +3798,7 @@ function Bf(e) {
|
|
|
3798
3798
|
return { blocked: !0, url: t, postBodyBase: null };
|
|
3799
3799
|
let h = t;
|
|
3800
3800
|
const y = t.match(/\{(\w+)\}/g) || [];
|
|
3801
|
-
if (h =
|
|
3801
|
+
if (h = ul(h, i), s && (h = Hr(h, o, i)), r && Object.keys(r).length > 0) {
|
|
3802
3802
|
const w = r, S = [];
|
|
3803
3803
|
if (w.limit) {
|
|
3804
3804
|
let C = w.limit;
|
|
@@ -3818,7 +3818,7 @@ function Bf(e) {
|
|
|
3818
3818
|
}
|
|
3819
3819
|
if (w.custom?.length && w.custom.forEach(({ key: C, value: k }) => {
|
|
3820
3820
|
if (!C || !k) return;
|
|
3821
|
-
let A =
|
|
3821
|
+
let A = ul(k, i);
|
|
3822
3822
|
s && (A = Hr(A, o, i)), A.match(/\{[^}]+\}/) ? A.match(/\{(?!ctx:|\@)(\w+)\}/g) || S.push(`${encodeURIComponent(C)}=`) : S.push(`${encodeURIComponent(C)}=${encodeURIComponent(A)}`);
|
|
3823
3823
|
}), S.length > 0) {
|
|
3824
3824
|
const C = h.includes("?") ? "&" : "?";
|
|
@@ -4266,7 +4266,7 @@ const Ot = If((e, t) => ({
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
}));
|
|
4269
|
-
function
|
|
4269
|
+
function WF() {
|
|
4270
4270
|
return Ot.getState();
|
|
4271
4271
|
}
|
|
4272
4272
|
function fv({
|
|
@@ -5099,7 +5099,7 @@ const Rt = ({
|
|
|
5099
5099
|
)
|
|
5100
5100
|
}
|
|
5101
5101
|
);
|
|
5102
|
-
},
|
|
5102
|
+
}, dl = ({
|
|
5103
5103
|
field: e,
|
|
5104
5104
|
value: t,
|
|
5105
5105
|
onChange: n,
|
|
@@ -5230,7 +5230,7 @@ const Lv = df(
|
|
|
5230
5230
|
children: i,
|
|
5231
5231
|
iconNode: s,
|
|
5232
5232
|
...a
|
|
5233
|
-
}, c) =>
|
|
5233
|
+
}, c) => al(
|
|
5234
5234
|
"svg",
|
|
5235
5235
|
{
|
|
5236
5236
|
ref: c,
|
|
@@ -5244,14 +5244,14 @@ const Lv = df(
|
|
|
5244
5244
|
...a
|
|
5245
5245
|
},
|
|
5246
5246
|
[
|
|
5247
|
-
...s.map(([u, l]) =>
|
|
5247
|
+
...s.map(([u, l]) => al(u, l)),
|
|
5248
5248
|
...Array.isArray(i) ? i : [i]
|
|
5249
5249
|
]
|
|
5250
5250
|
)
|
|
5251
5251
|
);
|
|
5252
5252
|
const Zt = (e, t) => {
|
|
5253
5253
|
const n = df(
|
|
5254
|
-
({ className: r, ...o }, i) =>
|
|
5254
|
+
({ className: r, ...o }, i) => al(Lv, {
|
|
5255
5255
|
ref: i,
|
|
5256
5256
|
iconNode: t,
|
|
5257
5257
|
className: Hf(
|
|
@@ -5786,7 +5786,7 @@ function Ew(e, t = globalThis?.document) {
|
|
|
5786
5786
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
5787
5787
|
}, [n, t]);
|
|
5788
5788
|
}
|
|
5789
|
-
var Nw = "DismissableLayer",
|
|
5789
|
+
var Nw = "DismissableLayer", fl = "dismissableLayer.update", _w = "dismissableLayer.pointerDownOutside", Tw = "dismissableLayer.focusOutside", Nu, Zf = b.createContext({
|
|
5790
5790
|
layers: /* @__PURE__ */ new Set(),
|
|
5791
5791
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5792
5792
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5818,7 +5818,7 @@ var Nw = "DismissableLayer", pl = "dismissableLayer.update", _w = "dismissableLa
|
|
|
5818
5818
|
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), _u());
|
|
5819
5819
|
}, [l, u]), b.useEffect(() => {
|
|
5820
5820
|
const E = () => m({});
|
|
5821
|
-
return document.addEventListener(
|
|
5821
|
+
return document.addEventListener(fl, E), () => document.removeEventListener(fl, E);
|
|
5822
5822
|
}, []), /* @__PURE__ */ f(
|
|
5823
5823
|
Ue.div,
|
|
5824
5824
|
{
|
|
@@ -5895,7 +5895,7 @@ function Pw(e, t = globalThis?.document) {
|
|
|
5895
5895
|
};
|
|
5896
5896
|
}
|
|
5897
5897
|
function _u() {
|
|
5898
|
-
const e = new CustomEvent(
|
|
5898
|
+
const e = new CustomEvent(fl);
|
|
5899
5899
|
document.dispatchEvent(e);
|
|
5900
5900
|
}
|
|
5901
5901
|
function ep(e, t, n, { discrete: r }) {
|
|
@@ -6061,7 +6061,7 @@ const Uw = ["top", "right", "bottom", "left"], Rr = Math.min, On = Math.max, hs
|
|
|
6061
6061
|
bottom: "top",
|
|
6062
6062
|
top: "bottom"
|
|
6063
6063
|
};
|
|
6064
|
-
function
|
|
6064
|
+
function pl(e, t, n) {
|
|
6065
6065
|
return On(e, Rr(t, n));
|
|
6066
6066
|
}
|
|
6067
6067
|
function gr(e, t) {
|
|
@@ -6094,9 +6094,9 @@ function Hw(e, t, n) {
|
|
|
6094
6094
|
}
|
|
6095
6095
|
function Ww(e) {
|
|
6096
6096
|
const t = gs(e);
|
|
6097
|
-
return [
|
|
6097
|
+
return [ml(e), t, ml(t)];
|
|
6098
6098
|
}
|
|
6099
|
-
function
|
|
6099
|
+
function ml(e) {
|
|
6100
6100
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
6101
6101
|
}
|
|
6102
6102
|
const Ou = ["left", "right"], Iu = ["right", "left"], Gw = ["top", "bottom"], Kw = ["bottom", "top"];
|
|
@@ -6115,7 +6115,7 @@ function qw(e, t, n) {
|
|
|
6115
6115
|
function Yw(e, t, n, r) {
|
|
6116
6116
|
const o = Oo(e);
|
|
6117
6117
|
let i = qw(yr(e), n === "start", r);
|
|
6118
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
6118
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(ml)))), i;
|
|
6119
6119
|
}
|
|
6120
6120
|
function gs(e) {
|
|
6121
6121
|
const t = yr(e);
|
|
@@ -6337,7 +6337,7 @@ const Qw = 50, Zw = async (e, t, n) => {
|
|
|
6337
6337
|
}, m = rc(o), g = nc(m), h = await s.getDimensions(u), y = m === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[m] - p[m] - i.floating[g], k = p[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
6338
6338
|
let E = A ? A[S] : 0;
|
|
6339
6339
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(A))) && (E = a.floating[S] || i.floating[g]);
|
|
6340
|
-
const N = C / 2 - k / 2, x = E / 2 - h[g] / 2 - 1, P = Rr(d[v], x), T = Rr(d[w], x), H = P, J = E - h[g] - T, F = E / 2 - h[g] / 2 + N, B =
|
|
6340
|
+
const N = C / 2 - k / 2, x = E / 2 - h[g] / 2 - 1, P = Rr(d[v], x), T = Rr(d[w], x), H = P, J = E - h[g] - T, F = E / 2 - h[g] / 2 + N, B = pl(H, F, J), O = !c.arrow && Oo(o) != null && F !== B && i.reference[g] / 2 - (F < H ? P : T) - h[g] / 2 < 0, M = O ? F < H ? F - H : F - J : 0;
|
|
6341
6341
|
return {
|
|
6342
6342
|
[m]: p[m] + M,
|
|
6343
6343
|
data: {
|
|
@@ -6568,11 +6568,11 @@ const oS = function(e) {
|
|
|
6568
6568
|
let g = l[m], h = l[p];
|
|
6569
6569
|
if (s) {
|
|
6570
6570
|
const v = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", S = g + d[v], C = g - d[w];
|
|
6571
|
-
g =
|
|
6571
|
+
g = pl(S, g, C);
|
|
6572
6572
|
}
|
|
6573
6573
|
if (a) {
|
|
6574
6574
|
const v = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", S = h + d[v], C = h - d[w];
|
|
6575
|
-
h =
|
|
6575
|
+
h = pl(S, h, C);
|
|
6576
6576
|
}
|
|
6577
6577
|
const y = c.fn({
|
|
6578
6578
|
...t,
|
|
@@ -6781,12 +6781,12 @@ function oi(e, t, n) {
|
|
|
6781
6781
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6782
6782
|
const o = ip(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = In(o);
|
|
6783
6783
|
if (i) {
|
|
6784
|
-
const a =
|
|
6784
|
+
const a = hl(s);
|
|
6785
6785
|
return t.concat(s, s.visualViewport || [], pi(o) ? o : [], a && n ? oi(a) : []);
|
|
6786
6786
|
} else
|
|
6787
6787
|
return t.concat(o, oi(o, [], n));
|
|
6788
6788
|
}
|
|
6789
|
-
function
|
|
6789
|
+
function hl(e) {
|
|
6790
6790
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6791
6791
|
}
|
|
6792
6792
|
function sp(e) {
|
|
@@ -6837,10 +6837,10 @@ function Yr(e, t, n, r) {
|
|
|
6837
6837
|
let c = (o.left + a.x) / s.x, u = (o.top + a.y) / s.y, l = o.width / s.x, d = o.height / s.y;
|
|
6838
6838
|
if (i) {
|
|
6839
6839
|
const p = In(i), m = r && Jn(r) ? In(r) : r;
|
|
6840
|
-
let g = p, h =
|
|
6840
|
+
let g = p, h = hl(g);
|
|
6841
6841
|
for (; h && r && m !== g; ) {
|
|
6842
6842
|
const y = xo(h), v = h.getBoundingClientRect(), w = Qn(h), S = v.left + (h.clientLeft + parseFloat(w.paddingLeft)) * y.x, C = v.top + (h.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
6843
|
-
c *= y.x, u *= y.y, l *= y.x, d *= y.y, c += S, u += C, g = In(h), h =
|
|
6843
|
+
c *= y.x, u *= y.y, l *= y.x, d *= y.y, c += S, u += C, g = In(h), h = hl(g);
|
|
6844
6844
|
}
|
|
6845
6845
|
}
|
|
6846
6846
|
return ys({
|
|
@@ -8088,19 +8088,19 @@ var Rx = function() {
|
|
|
8088
8088
|
return Ox(o);
|
|
8089
8089
|
}, [o]);
|
|
8090
8090
|
return b.createElement(Ix, { styles: Mx(i, !t, o, n ? "" : "!important") });
|
|
8091
|
-
},
|
|
8091
|
+
}, gl = !1;
|
|
8092
8092
|
if (typeof window < "u")
|
|
8093
8093
|
try {
|
|
8094
8094
|
var Gi = Object.defineProperty({}, "passive", {
|
|
8095
8095
|
get: function() {
|
|
8096
|
-
return
|
|
8096
|
+
return gl = !0, !0;
|
|
8097
8097
|
}
|
|
8098
8098
|
});
|
|
8099
8099
|
window.addEventListener("test", Gi, Gi), window.removeEventListener("test", Gi, Gi);
|
|
8100
8100
|
} catch {
|
|
8101
|
-
|
|
8101
|
+
gl = !1;
|
|
8102
8102
|
}
|
|
8103
|
-
var uo =
|
|
8103
|
+
var uo = gl ? { passive: !1 } : !1, Bx = function(e) {
|
|
8104
8104
|
return e.tagName === "TEXTAREA";
|
|
8105
8105
|
}, Pp = function(e, t) {
|
|
8106
8106
|
if (!(e instanceof Element))
|
|
@@ -8527,7 +8527,7 @@ var Xn = 10, [Vp, Mr] = Mo(Jr), i0 = "SelectContentImpl", s0 = /* @__PURE__ */ t
|
|
|
8527
8527
|
(w.value !== void 0 && w.value === te || oe) && T(G);
|
|
8528
8528
|
},
|
|
8529
8529
|
[w.value]
|
|
8530
|
-
), ue = r === "popper" ?
|
|
8530
|
+
), ue = r === "popper" ? yl : Wp, ie = ue === yl ? {
|
|
8531
8531
|
side: a,
|
|
8532
8532
|
sideOffset: c,
|
|
8533
8533
|
align: u,
|
|
@@ -8722,7 +8722,7 @@ var a0 = "SelectItemAlignedPosition", Wp = b.forwardRef((e, t) => {
|
|
|
8722
8722
|
);
|
|
8723
8723
|
});
|
|
8724
8724
|
Wp.displayName = a0;
|
|
8725
|
-
var l0 = "SelectPopperPosition",
|
|
8725
|
+
var l0 = "SelectPopperPosition", yl = b.forwardRef((e, t) => {
|
|
8726
8726
|
const {
|
|
8727
8727
|
__scopeSelect: n,
|
|
8728
8728
|
align: r = "start",
|
|
@@ -8750,10 +8750,10 @@ var l0 = "SelectPopperPosition", bl = b.forwardRef((e, t) => {
|
|
|
8750
8750
|
}
|
|
8751
8751
|
);
|
|
8752
8752
|
});
|
|
8753
|
-
|
|
8754
|
-
var [c0, dc] = Mo(Jr, {}),
|
|
8753
|
+
yl.displayName = l0;
|
|
8754
|
+
var [c0, dc] = Mo(Jr, {}), bl = "SelectViewport", Gp = b.forwardRef(
|
|
8755
8755
|
(e, t) => {
|
|
8756
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, i = Mr(
|
|
8756
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, i = Mr(bl, n), s = dc(bl, n), a = rt(t, i.onViewportChange), c = b.useRef(0);
|
|
8757
8757
|
return /* @__PURE__ */ $(an, { children: [
|
|
8758
8758
|
/* @__PURE__ */ f(
|
|
8759
8759
|
"style",
|
|
@@ -8803,7 +8803,7 @@ var [c0, dc] = Mo(Jr, {}), vl = "SelectViewport", Gp = b.forwardRef(
|
|
|
8803
8803
|
] });
|
|
8804
8804
|
}
|
|
8805
8805
|
);
|
|
8806
|
-
Gp.displayName =
|
|
8806
|
+
Gp.displayName = bl;
|
|
8807
8807
|
var Kp = "SelectGroup", [u0, d0] = Mo(Kp), f0 = b.forwardRef(
|
|
8808
8808
|
(e, t) => {
|
|
8809
8809
|
const { __scopeSelect: n, ...r } = e, o = hr();
|
|
@@ -8921,8 +8921,8 @@ var Qp = "SelectItemIndicator", Zp = b.forwardRef(
|
|
|
8921
8921
|
}
|
|
8922
8922
|
);
|
|
8923
8923
|
Zp.displayName = Qp;
|
|
8924
|
-
var
|
|
8925
|
-
const n = Mr(
|
|
8924
|
+
var vl = "SelectScrollUpButton", em = b.forwardRef((e, t) => {
|
|
8925
|
+
const n = Mr(vl, e.__scopeSelect), r = dc(vl, e.__scopeSelect), [o, i] = b.useState(!1), s = rt(t, r.onScrollButtonChange);
|
|
8926
8926
|
return ln(() => {
|
|
8927
8927
|
if (n.viewport && n.isPositioned) {
|
|
8928
8928
|
let a = function() {
|
|
@@ -8944,9 +8944,9 @@ var wl = "SelectScrollUpButton", em = b.forwardRef((e, t) => {
|
|
|
8944
8944
|
}
|
|
8945
8945
|
) : null;
|
|
8946
8946
|
});
|
|
8947
|
-
em.displayName =
|
|
8948
|
-
var
|
|
8949
|
-
const n = Mr(
|
|
8947
|
+
em.displayName = vl;
|
|
8948
|
+
var wl = "SelectScrollDownButton", tm = b.forwardRef((e, t) => {
|
|
8949
|
+
const n = Mr(wl, e.__scopeSelect), r = dc(wl, e.__scopeSelect), [o, i] = b.useState(!1), s = rt(t, r.onScrollButtonChange);
|
|
8950
8950
|
return ln(() => {
|
|
8951
8951
|
if (n.viewport && n.isPositioned) {
|
|
8952
8952
|
let a = function() {
|
|
@@ -8968,7 +8968,7 @@ var Sl = "SelectScrollDownButton", tm = b.forwardRef((e, t) => {
|
|
|
8968
8968
|
}
|
|
8969
8969
|
) : null;
|
|
8970
8970
|
});
|
|
8971
|
-
tm.displayName =
|
|
8971
|
+
tm.displayName = wl;
|
|
8972
8972
|
var nm = b.forwardRef((e, t) => {
|
|
8973
8973
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, i = Mr("SelectScrollButton", n), s = b.useRef(null), a = Js(n), c = b.useCallback(() => {
|
|
8974
8974
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
@@ -9000,13 +9000,13 @@ var nm = b.forwardRef((e, t) => {
|
|
|
9000
9000
|
}
|
|
9001
9001
|
);
|
|
9002
9002
|
g0.displayName = h0;
|
|
9003
|
-
var
|
|
9003
|
+
var Sl = "SelectArrow", y0 = b.forwardRef(
|
|
9004
9004
|
(e, t) => {
|
|
9005
|
-
const { __scopeSelect: n, ...r } = e, o = Qs(n), i = Ir(
|
|
9005
|
+
const { __scopeSelect: n, ...r } = e, o = Qs(n), i = Ir(Sl, n), s = Mr(Sl, n);
|
|
9006
9006
|
return i.open && s.position === "popper" ? /* @__PURE__ */ f(Ep, { ...o, ...r, ref: t }) : null;
|
|
9007
9007
|
}
|
|
9008
9008
|
);
|
|
9009
|
-
y0.displayName =
|
|
9009
|
+
y0.displayName = Sl;
|
|
9010
9010
|
var b0 = "SelectBubbleInput", rm = b.forwardRef(
|
|
9011
9011
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
9012
9012
|
const o = b.useRef(null), i = rt(r, o), s = hi(t);
|
|
@@ -9267,12 +9267,12 @@ function dm(e, t) {
|
|
|
9267
9267
|
return null;
|
|
9268
9268
|
}
|
|
9269
9269
|
const Gr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, fm = (e) => !Eo(e) && e !== Gr;
|
|
9270
|
-
function
|
|
9270
|
+
function xl() {
|
|
9271
9271
|
const { caseless: e, skipUndefined: t } = fm(this) && this || {}, n = {}, r = (o, i) => {
|
|
9272
9272
|
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
9273
9273
|
return;
|
|
9274
9274
|
const s = e && dm(n, i) || i;
|
|
9275
|
-
rs(n[s]) && rs(o) ? n[s] =
|
|
9275
|
+
rs(n[s]) && rs(o) ? n[s] = xl(n[s], o) : rs(o) ? n[s] = xl({}, o) : Lo(o) ? n[s] = o.slice() : (!t || !Eo(o)) && (n[s] = o);
|
|
9276
9276
|
};
|
|
9277
9277
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
9278
9278
|
arguments[o] && bi(arguments[o], r);
|
|
@@ -9430,7 +9430,7 @@ const SA = (e) => {
|
|
|
9430
9430
|
isTypedArray: uA,
|
|
9431
9431
|
isFileList: q0,
|
|
9432
9432
|
forEach: bi,
|
|
9433
|
-
merge:
|
|
9433
|
+
merge: xl,
|
|
9434
9434
|
extend: oA,
|
|
9435
9435
|
trim: rA,
|
|
9436
9436
|
stripBOM: iA,
|
|
@@ -9520,7 +9520,7 @@ Je.ERR_CANCELED = "ERR_CANCELED";
|
|
|
9520
9520
|
Je.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
9521
9521
|
Je.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
9522
9522
|
const NA = null;
|
|
9523
|
-
function
|
|
9523
|
+
function Al(e) {
|
|
9524
9524
|
return W.isPlainObject(e) || W.isArray(e);
|
|
9525
9525
|
}
|
|
9526
9526
|
function gm(e) {
|
|
@@ -9532,7 +9532,7 @@ function Da(e, t, n) {
|
|
|
9532
9532
|
}).join(n ? "." : "") : t;
|
|
9533
9533
|
}
|
|
9534
9534
|
function _A(e) {
|
|
9535
|
-
return W.isArray(e) && !e.some(
|
|
9535
|
+
return W.isArray(e) && !e.some(Al);
|
|
9536
9536
|
}
|
|
9537
9537
|
const TA = W.toFlatObject(W, {}, null, function(t) {
|
|
9538
9538
|
return /^is[A-Z]/.test(t);
|
|
@@ -9581,12 +9581,12 @@ function na(e, t, n) {
|
|
|
9581
9581
|
);
|
|
9582
9582
|
}), !1;
|
|
9583
9583
|
}
|
|
9584
|
-
return
|
|
9584
|
+
return Al(g) ? !0 : (t.append(Da(y, h, i), u(g)), !1);
|
|
9585
9585
|
}
|
|
9586
9586
|
const d = [], p = Object.assign(TA, {
|
|
9587
9587
|
defaultVisitor: l,
|
|
9588
9588
|
convertValue: u,
|
|
9589
|
-
isVisitable:
|
|
9589
|
+
isVisitable: Al
|
|
9590
9590
|
});
|
|
9591
9591
|
function m(g, h) {
|
|
9592
9592
|
if (!W.isUndefined(g)) {
|
|
@@ -9714,13 +9714,13 @@ const mc = {
|
|
|
9714
9714
|
Blob: PA
|
|
9715
9715
|
},
|
|
9716
9716
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
9717
|
-
}, hc = typeof window < "u" && typeof document < "u",
|
|
9717
|
+
}, hc = typeof window < "u" && typeof document < "u", Cl = typeof navigator == "object" && navigator || void 0, IA = hc && (!Cl || ["ReactNative", "NativeScript", "NS"].indexOf(Cl.product) < 0), MA = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
9718
9718
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", LA = hc && window.location.href || "http://localhost", DA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9719
9719
|
__proto__: null,
|
|
9720
9720
|
hasBrowserEnv: hc,
|
|
9721
9721
|
hasStandardBrowserEnv: IA,
|
|
9722
9722
|
hasStandardBrowserWebWorkerEnv: MA,
|
|
9723
|
-
navigator:
|
|
9723
|
+
navigator: Cl,
|
|
9724
9724
|
origin: LA
|
|
9725
9725
|
}, Symbol.toStringTag, { value: "Module" })), fn = {
|
|
9726
9726
|
...DA,
|
|
@@ -10956,7 +10956,7 @@ function mC(e) {
|
|
|
10956
10956
|
function hC(e) {
|
|
10957
10957
|
return W.isObject(e) && e.isAxiosError === !0;
|
|
10958
10958
|
}
|
|
10959
|
-
const
|
|
10959
|
+
const El = {
|
|
10960
10960
|
Continue: 100,
|
|
10961
10961
|
SwitchingProtocols: 101,
|
|
10962
10962
|
Processing: 102,
|
|
@@ -11027,8 +11027,8 @@ const Nl = {
|
|
|
11027
11027
|
SslHandshakeFailed: 525,
|
|
11028
11028
|
InvalidSslCertificate: 526
|
|
11029
11029
|
};
|
|
11030
|
-
Object.entries(
|
|
11031
|
-
|
|
11030
|
+
Object.entries(El).forEach(([e, t]) => {
|
|
11031
|
+
El[t] = e;
|
|
11032
11032
|
});
|
|
11033
11033
|
function Tm(e) {
|
|
11034
11034
|
const t = new Kr(e), n = am(Kr.prototype.request, t);
|
|
@@ -11054,25 +11054,25 @@ It.mergeConfig = Qr;
|
|
|
11054
11054
|
It.AxiosHeaders = Cn;
|
|
11055
11055
|
It.formToJSON = (e) => vm(W.isHTMLForm(e) ? new FormData(e) : e);
|
|
11056
11056
|
It.getAdapter = Em.getAdapter;
|
|
11057
|
-
It.HttpStatusCode =
|
|
11057
|
+
It.HttpStatusCode = El;
|
|
11058
11058
|
It.default = It;
|
|
11059
11059
|
const {
|
|
11060
|
-
Axios:
|
|
11060
|
+
Axios: YF,
|
|
11061
11061
|
AxiosError: gC,
|
|
11062
|
-
CanceledError:
|
|
11063
|
-
isCancel:
|
|
11064
|
-
CancelToken:
|
|
11065
|
-
VERSION:
|
|
11066
|
-
all:
|
|
11067
|
-
Cancel:
|
|
11068
|
-
isAxiosError:
|
|
11069
|
-
spread:
|
|
11070
|
-
toFormData:
|
|
11071
|
-
AxiosHeaders:
|
|
11072
|
-
HttpStatusCode:
|
|
11073
|
-
formToJSON:
|
|
11074
|
-
getAdapter:
|
|
11075
|
-
mergeConfig:
|
|
11062
|
+
CanceledError: XF,
|
|
11063
|
+
isCancel: JF,
|
|
11064
|
+
CancelToken: QF,
|
|
11065
|
+
VERSION: ZF,
|
|
11066
|
+
all: eP,
|
|
11067
|
+
Cancel: tP,
|
|
11068
|
+
isAxiosError: nP,
|
|
11069
|
+
spread: rP,
|
|
11070
|
+
toFormData: oP,
|
|
11071
|
+
AxiosHeaders: iP,
|
|
11072
|
+
HttpStatusCode: sP,
|
|
11073
|
+
formToJSON: aP,
|
|
11074
|
+
getAdapter: lP,
|
|
11075
|
+
mergeConfig: cP
|
|
11076
11076
|
} = It;
|
|
11077
11077
|
function pn(e, t) {
|
|
11078
11078
|
if (!t || t.trim() === "" || e == null) return;
|
|
@@ -11255,7 +11255,7 @@ function AC(e) {
|
|
|
11255
11255
|
});
|
|
11256
11256
|
}
|
|
11257
11257
|
let Rm = null;
|
|
11258
|
-
function
|
|
11258
|
+
function uP(e) {
|
|
11259
11259
|
Rm = e;
|
|
11260
11260
|
}
|
|
11261
11261
|
function CC() {
|
|
@@ -11961,16 +11961,16 @@ const Do = If((e) => ({
|
|
|
11961
11961
|
_setAuthHeaders: (t) => e({ authHeaders: JC(t) }),
|
|
11962
11962
|
_reset: () => e({ viewerContext: void 0, authHeaders: void 0 })
|
|
11963
11963
|
}));
|
|
11964
|
-
function
|
|
11964
|
+
function dP(e) {
|
|
11965
11965
|
Do.getState()._setViewerContext(e);
|
|
11966
11966
|
}
|
|
11967
|
-
function
|
|
11967
|
+
function fP(e) {
|
|
11968
11968
|
Do.getState()._setAuthHeaders(e);
|
|
11969
11969
|
}
|
|
11970
|
-
function
|
|
11970
|
+
function pP() {
|
|
11971
11971
|
Do.getState()._reset();
|
|
11972
11972
|
}
|
|
11973
|
-
function
|
|
11973
|
+
function mP() {
|
|
11974
11974
|
return Do.getState().viewerContext;
|
|
11975
11975
|
}
|
|
11976
11976
|
function Wm() {
|
|
@@ -11978,7 +11978,7 @@ function Wm() {
|
|
|
11978
11978
|
}
|
|
11979
11979
|
const gd = {};
|
|
11980
11980
|
let Gm = null;
|
|
11981
|
-
function
|
|
11981
|
+
function hP(e) {
|
|
11982
11982
|
Gm = e;
|
|
11983
11983
|
}
|
|
11984
11984
|
function QC() {
|
|
@@ -13755,11 +13755,11 @@ const OE = ({
|
|
|
13755
13755
|
)
|
|
13756
13756
|
] });
|
|
13757
13757
|
};
|
|
13758
|
-
var Ha = "rovingFocusGroup.onEntryFocus", IE = { bubbles: !1, cancelable: !0 }, xi = "RovingFocusGroup", [
|
|
13758
|
+
var Ha = "rovingFocusGroup.onEntryFocus", IE = { bubbles: !1, cancelable: !0 }, xi = "RovingFocusGroup", [Nl, Ch, ME] = Zl(xi), [LE, ca] = Mn(
|
|
13759
13759
|
xi,
|
|
13760
13760
|
[ME]
|
|
13761
13761
|
), [DE, BE] = LE(xi), Eh = b.forwardRef(
|
|
13762
|
-
(e, t) => /* @__PURE__ */ f(
|
|
13762
|
+
(e, t) => /* @__PURE__ */ f(Nl.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f(Nl.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ f($E, { ...e, ref: t }) }) })
|
|
13763
13763
|
);
|
|
13764
13764
|
Eh.displayName = xi;
|
|
13765
13765
|
var $E = b.forwardRef((e, t) => {
|
|
@@ -13848,7 +13848,7 @@ var $E = b.forwardRef((e, t) => {
|
|
|
13848
13848
|
if (r)
|
|
13849
13849
|
return m(), () => g();
|
|
13850
13850
|
}, [r, m, g]), /* @__PURE__ */ f(
|
|
13851
|
-
|
|
13851
|
+
Nl.ItemSlot,
|
|
13852
13852
|
{
|
|
13853
13853
|
scope: n,
|
|
13854
13854
|
id: u,
|
|
@@ -14971,7 +14971,7 @@ rg.displayName = ng;
|
|
|
14971
14971
|
function Oc(e) {
|
|
14972
14972
|
return e ? "open" : "closed";
|
|
14973
14973
|
}
|
|
14974
|
-
var og = "DialogTitleWarning", [
|
|
14974
|
+
var og = "DialogTitleWarning", [gP, ig] = cw(og, {
|
|
14975
14975
|
contentName: eo,
|
|
14976
14976
|
titleName: Pc,
|
|
14977
14977
|
docsSlug: "dialog"
|
|
@@ -15768,7 +15768,7 @@ function $N(e, t) {
|
|
|
15768
15768
|
Kt.success(t);
|
|
15769
15769
|
}
|
|
15770
15770
|
}
|
|
15771
|
-
function
|
|
15771
|
+
function _l(e, t, n) {
|
|
15772
15772
|
try {
|
|
15773
15773
|
const r = n(e);
|
|
15774
15774
|
Kt.error(r && r.trim() ? r : t);
|
|
@@ -15789,7 +15789,7 @@ function Sd(e, t) {
|
|
|
15789
15789
|
const n = t.find((r) => r.name === e);
|
|
15790
15790
|
return n?.label && n.label.trim() || e;
|
|
15791
15791
|
}
|
|
15792
|
-
function
|
|
15792
|
+
function Tl(e, t) {
|
|
15793
15793
|
if (!e) return "Please complete the required fields.";
|
|
15794
15794
|
if (Array.isArray(e)) {
|
|
15795
15795
|
const i = e.map((s) => {
|
|
@@ -15879,7 +15879,7 @@ function rr(e, t, n, r, o, i) {
|
|
|
15879
15879
|
return l != null && l !== "" ? xd(String(l)) : a;
|
|
15880
15880
|
}), s;
|
|
15881
15881
|
}
|
|
15882
|
-
function
|
|
15882
|
+
function Rl(e, t) {
|
|
15883
15883
|
if (!t?.length) return e;
|
|
15884
15884
|
const n = /* @__PURE__ */ new Map();
|
|
15885
15885
|
for (const o of t) {
|
|
@@ -16142,7 +16142,7 @@ const QN = ({
|
|
|
16142
16142
|
try {
|
|
16143
16143
|
const q = A();
|
|
16144
16144
|
Kt.error(
|
|
16145
|
-
|
|
16145
|
+
Tl(q, E ?? void 0) || "Please fix the errors before submitting."
|
|
16146
16146
|
);
|
|
16147
16147
|
} catch {
|
|
16148
16148
|
Kt.error("Please fix the errors before submitting.");
|
|
@@ -16222,7 +16222,7 @@ const QN = ({
|
|
|
16222
16222
|
Kt.success("Download started.");
|
|
16223
16223
|
}
|
|
16224
16224
|
} catch (Ie) {
|
|
16225
|
-
|
|
16225
|
+
_l(Ie, "Failed to download file. Please check the API endpoint and try again.", qo);
|
|
16226
16226
|
} finally {
|
|
16227
16227
|
O(!1);
|
|
16228
16228
|
}
|
|
@@ -16255,7 +16255,7 @@ const QN = ({
|
|
|
16255
16255
|
status: "error",
|
|
16256
16256
|
code: ne?.response?.code ?? ne?.response?.status ?? null,
|
|
16257
16257
|
message: qo(ne)
|
|
16258
|
-
}),
|
|
16258
|
+
}), _l(
|
|
16259
16259
|
ne,
|
|
16260
16260
|
$e ? "Failed to call custom API. Please check the API endpoint and try again." : "Failed to upload. Please check the API endpoint and try again.",
|
|
16261
16261
|
qo
|
|
@@ -16286,7 +16286,7 @@ const QN = ({
|
|
|
16286
16286
|
ke[Et] = mt;
|
|
16287
16287
|
}), ke.user_id !== void 0 && ke.user_id !== null && (ke.context_user_id = ke.context_user_id ?? ke.user_id, delete ke.user_id), ke;
|
|
16288
16288
|
}
|
|
16289
|
-
const $e = E?.length ?
|
|
16289
|
+
const $e = E?.length ? Rl(D, E) : D, yt = M?.apiFieldMapping ?? U?.apiFieldMapping, Ie = M?.apiFieldTypes ?? U?.apiFieldTypes, ne = M?.apiBodyStructure ?? U?.apiBodyStructure, he = { ...Ie };
|
|
16290
16290
|
E?.length && E.forEach((ke) => {
|
|
16291
16291
|
const Qe = ke.name || ke.key;
|
|
16292
16292
|
Qe && (ke.type === "terms" || ke.type === "checkbox") && (he[Qe] = "boolean");
|
|
@@ -16318,7 +16318,7 @@ const QN = ({
|
|
|
16318
16318
|
}, st = async () => {
|
|
16319
16319
|
if (!y || !y.url)
|
|
16320
16320
|
throw new Error("BFF submit API configuration is missing");
|
|
16321
|
-
const Ze = E?.length ?
|
|
16321
|
+
const Ze = E?.length ? Rl(g, E) : g, q = {};
|
|
16322
16322
|
Object.keys(Ze).forEach((ze) => {
|
|
16323
16323
|
const bt = e.name === ze && e.type === "button", ht = ze.toLowerCase().includes("button");
|
|
16324
16324
|
!bt && !ht && (q[ze] = Ze[ze]);
|
|
@@ -16787,7 +16787,7 @@ var pg = ["PageUp", "PageDown"], mg = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
16787
16787
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
16788
16788
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
16789
16789
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
16790
|
-
}, Bo = "Slider", [
|
|
16790
|
+
}, Bo = "Slider", [kl, c_, u_] = Zl(Bo), [gg] = Mn(Bo, [
|
|
16791
16791
|
u_
|
|
16792
16792
|
]), [d_, pa] = gg(Bo), yg = b.forwardRef(
|
|
16793
16793
|
(e, t) => {
|
|
@@ -16851,7 +16851,7 @@ var pg = ["PageUp", "PageDown"], mg = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
16851
16851
|
values: C,
|
|
16852
16852
|
orientation: s,
|
|
16853
16853
|
form: g,
|
|
16854
|
-
children: /* @__PURE__ */ f(
|
|
16854
|
+
children: /* @__PURE__ */ f(kl.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ f(kl.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ f(
|
|
16855
16855
|
S,
|
|
16856
16856
|
{
|
|
16857
16857
|
"aria-disabled": a,
|
|
@@ -17046,9 +17046,9 @@ var [bg, vg] = gg(Bo, {
|
|
|
17046
17046
|
}
|
|
17047
17047
|
);
|
|
17048
17048
|
xg.displayName = Sg;
|
|
17049
|
-
var
|
|
17049
|
+
var Fl = "SliderRange", Ag = b.forwardRef(
|
|
17050
17050
|
(e, t) => {
|
|
17051
|
-
const { __scopeSlider: n, ...r } = e, o = pa(
|
|
17051
|
+
const { __scopeSlider: n, ...r } = e, o = pa(Fl, n), i = vg(Fl, n), s = b.useRef(null), a = rt(t, s), c = o.values.length, u = o.values.map(
|
|
17052
17052
|
(p) => Ng(p, o.min, o.max)
|
|
17053
17053
|
), l = c > 1 ? Math.min(...u) : 0, d = 100 - Math.max(...u);
|
|
17054
17054
|
return /* @__PURE__ */ f(
|
|
@@ -17067,8 +17067,8 @@ var Pl = "SliderRange", Ag = b.forwardRef(
|
|
|
17067
17067
|
);
|
|
17068
17068
|
}
|
|
17069
17069
|
);
|
|
17070
|
-
Ag.displayName =
|
|
17071
|
-
var
|
|
17070
|
+
Ag.displayName = Fl;
|
|
17071
|
+
var Pl = "SliderThumb", Cg = b.forwardRef(
|
|
17072
17072
|
(e, t) => {
|
|
17073
17073
|
const n = c_(e.__scopeSlider), [r, o] = b.useState(null), i = rt(t, (a) => o(a)), s = b.useMemo(
|
|
17074
17074
|
() => r ? n().findIndex((a) => a.ref.current === r) : -1,
|
|
@@ -17078,7 +17078,7 @@ var Ol = "SliderThumb", Cg = b.forwardRef(
|
|
|
17078
17078
|
}
|
|
17079
17079
|
), m_ = b.forwardRef(
|
|
17080
17080
|
(e, t) => {
|
|
17081
|
-
const { __scopeSlider: n, index: r, name: o, ...i } = e, s = pa(
|
|
17081
|
+
const { __scopeSlider: n, index: r, name: o, ...i } = e, s = pa(Pl, n), a = vg(Pl, n), [c, u] = b.useState(null), l = rt(t, (w) => u(w)), d = c ? s.form || !!c.closest("form") : !0, p = mi(c), m = s.values[r], g = m === void 0 ? 0 : Ng(m, s.min, s.max), h = y_(r, s.values.length), y = p?.[a.size], v = y ? v_(y, g, a.direction) : 0;
|
|
17082
17082
|
return b.useEffect(() => {
|
|
17083
17083
|
if (c)
|
|
17084
17084
|
return s.thumbs.add(c), () => {
|
|
@@ -17093,7 +17093,7 @@ var Ol = "SliderThumb", Cg = b.forwardRef(
|
|
|
17093
17093
|
[a.startEdge]: `calc(${g}% + ${v}px)`
|
|
17094
17094
|
},
|
|
17095
17095
|
children: [
|
|
17096
|
-
/* @__PURE__ */ f(
|
|
17096
|
+
/* @__PURE__ */ f(kl.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ f(
|
|
17097
17097
|
Ue.span,
|
|
17098
17098
|
{
|
|
17099
17099
|
role: "slider",
|
|
@@ -17127,7 +17127,7 @@ var Ol = "SliderThumb", Cg = b.forwardRef(
|
|
|
17127
17127
|
);
|
|
17128
17128
|
}
|
|
17129
17129
|
);
|
|
17130
|
-
Cg.displayName =
|
|
17130
|
+
Cg.displayName = Pl;
|
|
17131
17131
|
var h_ = "RadioBubbleInput", Eg = b.forwardRef(
|
|
17132
17132
|
({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
17133
17133
|
const o = b.useRef(null), i = rt(o, r), s = hi(t);
|
|
@@ -17513,7 +17513,7 @@ const R_ = ({
|
|
|
17513
17513
|
case "password":
|
|
17514
17514
|
case "url":
|
|
17515
17515
|
return /* @__PURE__ */ f(
|
|
17516
|
-
|
|
17516
|
+
dl,
|
|
17517
17517
|
{
|
|
17518
17518
|
field: z,
|
|
17519
17519
|
value: X(ae),
|
|
@@ -17654,7 +17654,7 @@ const R_ = ({
|
|
|
17654
17654
|
);
|
|
17655
17655
|
default:
|
|
17656
17656
|
return /* @__PURE__ */ f(
|
|
17657
|
-
|
|
17657
|
+
dl,
|
|
17658
17658
|
{
|
|
17659
17659
|
field: z,
|
|
17660
17660
|
value: X(ae),
|
|
@@ -17705,7 +17705,7 @@ const R_ = ({
|
|
|
17705
17705
|
]
|
|
17706
17706
|
}
|
|
17707
17707
|
) });
|
|
17708
|
-
};
|
|
17708
|
+
}, P_ = "h-8 min-h-8 rounded-md border border-input bg-background px-2 text-sm shadow-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30", O_ = "flex min-h-8 w-full items-center gap-0.5 rounded-md border border-input bg-background px-2 focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30", I_ = "h-8 min-w-[2ch] max-w-full flex-1 border-0 bg-transparent px-0 shadow-none focus-visible:ring-0";
|
|
17709
17709
|
function _g(e, t, n) {
|
|
17710
17710
|
const r = n?.emptyDisplay ?? "—";
|
|
17711
17711
|
if (e == null || e === "")
|
|
@@ -17722,13 +17722,13 @@ function _g(e, t, n) {
|
|
|
17722
17722
|
return String(e);
|
|
17723
17723
|
}
|
|
17724
17724
|
}
|
|
17725
|
-
function
|
|
17725
|
+
function M_(e) {
|
|
17726
17726
|
const t = e.replace(/[^\d.-]/g, "");
|
|
17727
17727
|
if (t === "" || t === "-" || t === ".") return null;
|
|
17728
17728
|
const n = parseFloat(t);
|
|
17729
17729
|
return Number.isNaN(n) ? null : n;
|
|
17730
17730
|
}
|
|
17731
|
-
function
|
|
17731
|
+
function L_(e) {
|
|
17732
17732
|
if (e == null || e === "") return "";
|
|
17733
17733
|
const t = typeof e == "number" ? e : Number(e);
|
|
17734
17734
|
return Number.isNaN(t) ? "" : String(t);
|
|
@@ -17742,13 +17742,13 @@ function ii(e) {
|
|
|
17742
17742
|
function Tg(e) {
|
|
17743
17743
|
return e.mode ?? "editable";
|
|
17744
17744
|
}
|
|
17745
|
-
function
|
|
17745
|
+
function D_(e, t) {
|
|
17746
17746
|
return e.kind === "currency" || e.kind === "input" && e.inputType === "number" ? !0 : t?.format === "currency" || t?.format === "number" || t?.format === "percent";
|
|
17747
17747
|
}
|
|
17748
17748
|
function Rg(e, t, n) {
|
|
17749
17749
|
if (e !== void 0) {
|
|
17750
17750
|
if (e === "") return "";
|
|
17751
|
-
if (
|
|
17751
|
+
if (D_(t, n)) {
|
|
17752
17752
|
const r = Number(e);
|
|
17753
17753
|
return Number.isNaN(r) ? e : r;
|
|
17754
17754
|
}
|
|
@@ -17759,19 +17759,19 @@ function Lc(e, t) {
|
|
|
17759
17759
|
if (!(!e || !("defaultValue" in e) || e.defaultValue === void 0))
|
|
17760
17760
|
return Rg(e.defaultValue, e, t);
|
|
17761
17761
|
}
|
|
17762
|
-
function
|
|
17762
|
+
function Ol(e, t, n) {
|
|
17763
17763
|
if (!t || !ii(e)) return e;
|
|
17764
17764
|
if (t.kind === "currency" && Tg(t) === "static" && t.value !== void 0)
|
|
17765
17765
|
return Rg(t.value, t, n);
|
|
17766
17766
|
const r = Lc(t, n);
|
|
17767
17767
|
return r !== void 0 ? r : e;
|
|
17768
17768
|
}
|
|
17769
|
-
function
|
|
17769
|
+
function B_(e, t, n) {
|
|
17770
17770
|
const r = { ...t };
|
|
17771
17771
|
for (const [o, i] of Object.entries(e)) {
|
|
17772
17772
|
const s = n.find((c) => c.key === o);
|
|
17773
17773
|
if (!ii(r[o])) continue;
|
|
17774
|
-
const a =
|
|
17774
|
+
const a = Ol(r[o], i, s);
|
|
17775
17775
|
(!ii(a) || i && "defaultValue" in i && i.defaultValue === "") && (r[o] = a);
|
|
17776
17776
|
}
|
|
17777
17777
|
return r;
|
|
@@ -17781,8 +17781,8 @@ function Ns(e, t, n) {
|
|
|
17781
17781
|
const r = Lc(t, n);
|
|
17782
17782
|
return r !== void 0 ? r : e;
|
|
17783
17783
|
}
|
|
17784
|
-
const
|
|
17785
|
-
function
|
|
17784
|
+
const $_ = /* @__PURE__ */ new Set(["all_items_summary", "invoice_discount", "grand_total"]);
|
|
17785
|
+
function j_(e, t) {
|
|
17786
17786
|
switch (t) {
|
|
17787
17787
|
case "dynamic":
|
|
17788
17788
|
return e.filter((n) => n.rowKind === "dynamic");
|
|
@@ -17792,7 +17792,7 @@ function D_(e, t) {
|
|
|
17792
17792
|
return e;
|
|
17793
17793
|
case "data":
|
|
17794
17794
|
return e.filter(
|
|
17795
|
-
(n) => n.rowKind === "dynamic" || n.rowKind === "static" &&
|
|
17795
|
+
(n) => n.rowKind === "dynamic" || n.rowKind === "static" && !$_.has(n.slotId)
|
|
17796
17796
|
);
|
|
17797
17797
|
default:
|
|
17798
17798
|
return e;
|
|
@@ -17803,18 +17803,18 @@ function Wa(e) {
|
|
|
17803
17803
|
const t = Number(e);
|
|
17804
17804
|
return Number.isNaN(t) ? 0 : t;
|
|
17805
17805
|
}
|
|
17806
|
-
function
|
|
17806
|
+
function z_(e, t, n) {
|
|
17807
17807
|
const r = e.rowSlots.find(
|
|
17808
17808
|
(o) => o.kind === "static" ? o.row.id === t.slotId : o.kind === "dynamic" && o.block.id === t.slotId
|
|
17809
17809
|
);
|
|
17810
17810
|
if (r)
|
|
17811
17811
|
return r.kind === "static" ? r.row.cells[n] : r.block.cells[n];
|
|
17812
17812
|
}
|
|
17813
|
-
function
|
|
17813
|
+
function U_(e, t, n) {
|
|
17814
17814
|
const r = (u) => Wa(n.values[u]), o = (u, l) => {
|
|
17815
17815
|
const d = t.find((p) => p.slotId === u && p.rowKind === "static");
|
|
17816
17816
|
return d ? Wa(d.values[l]) : 0;
|
|
17817
|
-
}, i = (u, l = "all") =>
|
|
17817
|
+
}, i = (u, l = "all") => j_(t, l).reduce(
|
|
17818
17818
|
(d, p) => d + Wa(p.values[u]),
|
|
17819
17819
|
0
|
|
17820
17820
|
), s = {
|
|
@@ -17837,15 +17837,15 @@ function Ro(e, t) {
|
|
|
17837
17837
|
}));
|
|
17838
17838
|
for (const r of n)
|
|
17839
17839
|
for (const o of e.columns) {
|
|
17840
|
-
const i =
|
|
17840
|
+
const i = z_(e, r, o.key);
|
|
17841
17841
|
if (i?.kind === "formula") {
|
|
17842
|
-
const s =
|
|
17842
|
+
const s = U_(i.expression, n, r), a = e.columns.find((c) => c.key === o.key);
|
|
17843
17843
|
r.values[o.key] = ii(s) ? Lc(i, a) ?? s : s;
|
|
17844
17844
|
}
|
|
17845
17845
|
}
|
|
17846
17846
|
return { rows: n };
|
|
17847
17847
|
}
|
|
17848
|
-
function
|
|
17848
|
+
function V_(e, t, n, r, o, i) {
|
|
17849
17849
|
const s = t.rows.map((a) => a.rowInstanceId !== n || a.slotId !== r ? a : {
|
|
17850
17850
|
...a,
|
|
17851
17851
|
values: { ...a.values, [o]: i }
|
|
@@ -17891,7 +17891,7 @@ function Bc(e, t) {
|
|
|
17891
17891
|
rowKind: "static",
|
|
17892
17892
|
rowInstanceId: o.row.id,
|
|
17893
17893
|
label: o.row.label,
|
|
17894
|
-
values:
|
|
17894
|
+
values: B_(
|
|
17895
17895
|
o.row.cells,
|
|
17896
17896
|
i?.values ? { ...i.values } : {},
|
|
17897
17897
|
e.columns
|
|
@@ -17906,7 +17906,7 @@ function Bc(e, t) {
|
|
|
17906
17906
|
}
|
|
17907
17907
|
return { rows: Dc(e, n, r) };
|
|
17908
17908
|
}
|
|
17909
|
-
function
|
|
17909
|
+
function H_(e, t, n, r) {
|
|
17910
17910
|
const o = Bc(e, r), i = e.rowSlots.find(
|
|
17911
17911
|
(c) => c.kind === "dynamic" && c.block.id === t
|
|
17912
17912
|
);
|
|
@@ -17925,7 +17925,7 @@ function z_(e, t, n, r) {
|
|
|
17925
17925
|
rows: Dc(e, s, a)
|
|
17926
17926
|
});
|
|
17927
17927
|
}
|
|
17928
|
-
function
|
|
17928
|
+
function W_(e, t, n) {
|
|
17929
17929
|
const r = Bc(e, n);
|
|
17930
17930
|
if (t == null || typeof t != "object" || Array.isArray(t))
|
|
17931
17931
|
return Ro(e, r);
|
|
@@ -17981,23 +17981,35 @@ function Fg(e) {
|
|
|
17981
17981
|
}
|
|
17982
17982
|
return e.bold ? t.push("font-bold") : e.fontSize && t.push("font-medium"), e.italic && t.push("italic"), e.underline && t.push("underline"), t.join(" ");
|
|
17983
17983
|
}
|
|
17984
|
-
function
|
|
17984
|
+
function G_(e) {
|
|
17985
17985
|
const t = e?.color?.trim();
|
|
17986
17986
|
return t ? { color: t } : {};
|
|
17987
17987
|
}
|
|
17988
|
-
function
|
|
17988
|
+
function Il(e) {
|
|
17989
17989
|
return {
|
|
17990
17990
|
className: Fg(e),
|
|
17991
|
-
style:
|
|
17991
|
+
style: G_(e)
|
|
17992
17992
|
};
|
|
17993
17993
|
}
|
|
17994
|
-
function
|
|
17994
|
+
function K_(e) {
|
|
17995
|
+
return e ? !!(e.fontSize || e.bold || e.italic || e.underline || e.color?.trim()) : !1;
|
|
17996
|
+
}
|
|
17997
|
+
function q_(e, t) {
|
|
17998
|
+
if (!e && !t) return;
|
|
17999
|
+
const n = { ...e, ...t };
|
|
18000
|
+
return K_(n) ? n : void 0;
|
|
18001
|
+
}
|
|
18002
|
+
function Y_(e, t) {
|
|
18003
|
+
const n = e?.kind === "label" ? q_(t, e.cellStyle) : e?.cellStyle;
|
|
18004
|
+
return Il(n);
|
|
18005
|
+
}
|
|
18006
|
+
function Ga(e) {
|
|
17995
18007
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
17996
18008
|
}
|
|
17997
18009
|
function Nd(e, t) {
|
|
17998
18010
|
return e?.align ? e.align : t?.align ?? "left";
|
|
17999
18011
|
}
|
|
18000
|
-
function
|
|
18012
|
+
function X_(e, t, n) {
|
|
18001
18013
|
return e.rowSlots.find(
|
|
18002
18014
|
(r) => n === "static" ? r.kind === "static" && r.row.id === t : r.kind === "dynamic" && r.block.id === t
|
|
18003
18015
|
);
|
|
@@ -18009,7 +18021,7 @@ function _d(e, t, n, r) {
|
|
|
18009
18021
|
if (o)
|
|
18010
18022
|
return o.kind === "static" ? o.row.cells[r] : o.block.cells[r];
|
|
18011
18023
|
}
|
|
18012
|
-
const
|
|
18024
|
+
const J_ = ({
|
|
18013
18025
|
field: e,
|
|
18014
18026
|
value: t,
|
|
18015
18027
|
onChange: n,
|
|
@@ -18030,7 +18042,7 @@ const W_ = ({
|
|
|
18030
18042
|
const h = Z(
|
|
18031
18043
|
(E, N, x, P, T) => {
|
|
18032
18044
|
if (m) return;
|
|
18033
|
-
const H = T === "number" ?
|
|
18045
|
+
const H = T === "number" ? M_(P) : P === "" ? null : P, J = V_(
|
|
18034
18046
|
u,
|
|
18035
18047
|
g,
|
|
18036
18048
|
E,
|
|
@@ -18042,62 +18054,67 @@ const W_ = ({
|
|
|
18042
18054
|
},
|
|
18043
18055
|
[m, g, n, u]
|
|
18044
18056
|
), y = (E, N, x, P, T, H) => {
|
|
18045
|
-
const J = l.find((
|
|
18046
|
-
if (F?.kind === "label")
|
|
18047
|
-
const z = Ga(I);
|
|
18057
|
+
const J = l.find((D) => D.key === T), F = _d(u, E, N, T), B = Ga(Nd(F, J)), O = Ol(H, F, J), M = X_(u, E, N), I = M?.kind === "static" ? M.row.labelStyle : M?.kind === "dynamic" ? M.block.labelStyle : void 0, z = Y_(F, I);
|
|
18058
|
+
if (F?.kind === "label")
|
|
18048
18059
|
return /* @__PURE__ */ f(
|
|
18049
18060
|
"span",
|
|
18050
18061
|
{
|
|
18051
|
-
className: L(
|
|
18062
|
+
className: L(
|
|
18063
|
+
z.className || "font-medium",
|
|
18064
|
+
B,
|
|
18065
|
+
!z.style.color && "text-foreground"
|
|
18066
|
+
),
|
|
18052
18067
|
style: z.style,
|
|
18053
18068
|
children: P ?? p
|
|
18054
18069
|
}
|
|
18055
18070
|
);
|
|
18056
|
-
}
|
|
18057
18071
|
if (F?.kind === "input" && !m) {
|
|
18058
|
-
const
|
|
18072
|
+
const D = O == null || O === "" ? "" : String(O);
|
|
18059
18073
|
return /* @__PURE__ */ f(
|
|
18060
18074
|
_r,
|
|
18061
18075
|
{
|
|
18062
18076
|
type: "text",
|
|
18063
18077
|
inputMode: F.inputType === "number" ? "decimal" : "text",
|
|
18064
|
-
value:
|
|
18065
|
-
onChange: (
|
|
18078
|
+
value: D,
|
|
18079
|
+
onChange: (ae) => h(x, E, T, ae.target.value, F.inputType),
|
|
18066
18080
|
onBlur: r,
|
|
18067
|
-
className: L(
|
|
18081
|
+
className: L(P_, B, z.className),
|
|
18082
|
+
style: z.style,
|
|
18068
18083
|
disabled: m
|
|
18069
18084
|
}
|
|
18070
18085
|
);
|
|
18071
18086
|
}
|
|
18072
18087
|
if (F?.kind === "currency") {
|
|
18073
|
-
const
|
|
18074
|
-
if (
|
|
18075
|
-
const
|
|
18076
|
-
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B), children: Ed(
|
|
18088
|
+
const D = Tg(F);
|
|
18089
|
+
if (D === "static") {
|
|
18090
|
+
const U = F.value !== void 0 && F.value !== "" ? Ol(null, { ...F, mode: "static" }, J) : O;
|
|
18091
|
+
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B, z.className), style: z.style, children: Ed(U, { currencySymbol: d, emptyDisplay: p }) });
|
|
18077
18092
|
}
|
|
18078
|
-
if (
|
|
18079
|
-
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B), children: Ed(O, { currencySymbol: d, emptyDisplay: p }) });
|
|
18080
|
-
const
|
|
18093
|
+
if (D === "api" || m)
|
|
18094
|
+
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B, z.className), style: z.style, children: Ed(O, { currencySymbol: d, emptyDisplay: p }) });
|
|
18095
|
+
const ae = L_(O);
|
|
18081
18096
|
return /* @__PURE__ */ $(
|
|
18082
18097
|
"div",
|
|
18083
18098
|
{
|
|
18084
18099
|
className: L(
|
|
18085
|
-
|
|
18100
|
+
O_,
|
|
18086
18101
|
B === "text-center" && "justify-center",
|
|
18087
18102
|
B === "text-right" && "justify-end",
|
|
18088
|
-
B === "text-left" && "justify-start"
|
|
18103
|
+
B === "text-left" && "justify-start",
|
|
18104
|
+
z.className
|
|
18089
18105
|
),
|
|
18106
|
+
style: z.style,
|
|
18090
18107
|
children: [
|
|
18091
|
-
/* @__PURE__ */ f("span", { className: "shrink-0
|
|
18108
|
+
/* @__PURE__ */ f("span", { className: "shrink-0 tabular-nums", children: d }),
|
|
18092
18109
|
/* @__PURE__ */ f(
|
|
18093
18110
|
_r,
|
|
18094
18111
|
{
|
|
18095
18112
|
type: "text",
|
|
18096
18113
|
inputMode: "decimal",
|
|
18097
|
-
value:
|
|
18098
|
-
onChange: (
|
|
18114
|
+
value: ae,
|
|
18115
|
+
onChange: (U) => h(x, E, T, U.target.value, "number"),
|
|
18099
18116
|
onBlur: r,
|
|
18100
|
-
className:
|
|
18117
|
+
className: I_,
|
|
18101
18118
|
disabled: m
|
|
18102
18119
|
}
|
|
18103
18120
|
)
|
|
@@ -18105,7 +18122,18 @@ const W_ = ({
|
|
|
18105
18122
|
}
|
|
18106
18123
|
);
|
|
18107
18124
|
}
|
|
18108
|
-
return F?.kind === "static" ? /* @__PURE__ */ f(
|
|
18125
|
+
return F?.kind === "static" ? /* @__PURE__ */ f(
|
|
18126
|
+
"span",
|
|
18127
|
+
{
|
|
18128
|
+
className: L(
|
|
18129
|
+
B,
|
|
18130
|
+
z.className,
|
|
18131
|
+
!z.style.color && "text-muted-foreground"
|
|
18132
|
+
),
|
|
18133
|
+
style: z.style,
|
|
18134
|
+
children: F.value
|
|
18135
|
+
}
|
|
18136
|
+
) : /* @__PURE__ */ f("span", { className: L(B, z.className), style: z.style, children: _g(O, J, { currencySymbol: d, emptyDisplay: p }) });
|
|
18109
18137
|
}, v = u.gridTitle?.trim() ?? "", w = Math.max(1, e.position?.rowSpan ?? 1), S = Math.max(1, e.position?.columnSpan ?? 1), C = Math.max(g.rows.length, 1), k = w >= 3 ? "py-4" : w >= 2 ? "py-3" : "py-2", A = S >= 3 ? "px-4" : S >= 2 ? "px-3" : "px-2";
|
|
18110
18138
|
return l.length === 0 ? /* @__PURE__ */ f(Rt, { field: e, error: o, isRequired: a, className: c, children: /* @__PURE__ */ f("div", { className: "p-4 border rounded-md bg-muted/50 text-sm text-muted-foreground", children: "No columns defined for this billing grid" }) }) : /* @__PURE__ */ f(Rt, { field: e, error: o, isRequired: a, className: c, children: /* @__PURE__ */ $(
|
|
18111
18139
|
"div",
|
|
@@ -18127,7 +18155,7 @@ const W_ = ({
|
|
|
18127
18155
|
"shrink-0 px-4 py-2 border-b bg-muted/40",
|
|
18128
18156
|
Fg(u.gridTitleStyle) || "text-muted-foreground"
|
|
18129
18157
|
),
|
|
18130
|
-
style:
|
|
18158
|
+
style: Il(u.gridTitleStyle).style,
|
|
18131
18159
|
children: v
|
|
18132
18160
|
}
|
|
18133
18161
|
) : null,
|
|
@@ -18138,7 +18166,7 @@ const W_ = ({
|
|
|
18138
18166
|
style: u.minWidth ? { minWidth: u.minWidth } : void 0,
|
|
18139
18167
|
children: [
|
|
18140
18168
|
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ f("tr", { className: "border-b border-border bg-muted/60", children: l.map((E) => {
|
|
18141
|
-
const N =
|
|
18169
|
+
const N = Il(E.headerStyle);
|
|
18142
18170
|
return /* @__PURE__ */ f(
|
|
18143
18171
|
"th",
|
|
18144
18172
|
{
|
|
@@ -18146,7 +18174,7 @@ const W_ = ({
|
|
|
18146
18174
|
A,
|
|
18147
18175
|
k,
|
|
18148
18176
|
"text-xs uppercase tracking-wider whitespace-nowrap",
|
|
18149
|
-
|
|
18177
|
+
Ga(E.align),
|
|
18150
18178
|
N.className || "font-semibold text-muted-foreground"
|
|
18151
18179
|
),
|
|
18152
18180
|
style: N.style,
|
|
@@ -18169,7 +18197,7 @@ const W_ = ({
|
|
|
18169
18197
|
A,
|
|
18170
18198
|
k,
|
|
18171
18199
|
"align-middle whitespace-nowrap",
|
|
18172
|
-
|
|
18200
|
+
Ga(P)
|
|
18173
18201
|
),
|
|
18174
18202
|
children: y(
|
|
18175
18203
|
E.slotId,
|
|
@@ -18193,10 +18221,10 @@ const W_ = ({
|
|
|
18193
18221
|
}
|
|
18194
18222
|
) });
|
|
18195
18223
|
};
|
|
18196
|
-
function
|
|
18197
|
-
return
|
|
18224
|
+
function Ka(e, t, n) {
|
|
18225
|
+
return W_(e, t, n);
|
|
18198
18226
|
}
|
|
18199
|
-
const
|
|
18227
|
+
const Q_ = ({
|
|
18200
18228
|
field: e,
|
|
18201
18229
|
value: t,
|
|
18202
18230
|
error: n,
|
|
@@ -18319,7 +18347,7 @@ function mo(e, t) {
|
|
|
18319
18347
|
}
|
|
18320
18348
|
return e.email != null ? String(e.email) : e.personal_email != null ? String(e.personal_email) : e.id != null ? String(e.id) : JSON.stringify(e);
|
|
18321
18349
|
}
|
|
18322
|
-
function
|
|
18350
|
+
function Z_(e, t, n, r) {
|
|
18323
18351
|
if (n?.length) {
|
|
18324
18352
|
const i = r ?? " | ", s = n.map((a) => Ml(e, a)).filter((a) => a != null).map((a) => String(a));
|
|
18325
18353
|
if (s.length) return s.join(i);
|
|
@@ -18334,7 +18362,7 @@ function K_(e, t, n, r) {
|
|
|
18334
18362
|
const o = e.personal_email;
|
|
18335
18363
|
return o != null ? String(o) : JSON.stringify(e);
|
|
18336
18364
|
}
|
|
18337
|
-
const
|
|
18365
|
+
const eT = ({
|
|
18338
18366
|
field: e,
|
|
18339
18367
|
value: t,
|
|
18340
18368
|
onChange: n,
|
|
@@ -18495,7 +18523,7 @@ const q_ = ({
|
|
|
18495
18523
|
{
|
|
18496
18524
|
htmlFor: B,
|
|
18497
18525
|
className: "text-sm cursor-pointer flex-1 truncate",
|
|
18498
|
-
children:
|
|
18526
|
+
children: Z_(T, d, m, g)
|
|
18499
18527
|
}
|
|
18500
18528
|
)
|
|
18501
18529
|
]
|
|
@@ -18552,7 +18580,7 @@ const q_ = ({
|
|
|
18552
18580
|
)
|
|
18553
18581
|
] });
|
|
18554
18582
|
};
|
|
18555
|
-
var
|
|
18583
|
+
var tT = [
|
|
18556
18584
|
"a",
|
|
18557
18585
|
"button",
|
|
18558
18586
|
"div",
|
|
@@ -18570,16 +18598,16 @@ var Y_ = [
|
|
|
18570
18598
|
"span",
|
|
18571
18599
|
"svg",
|
|
18572
18600
|
"ul"
|
|
18573
|
-
],
|
|
18601
|
+
], nT = tT.reduce((e, t) => {
|
|
18574
18602
|
const n = /* @__PURE__ */ Ql(`Primitive.${t}`), r = b.forwardRef((o, i) => {
|
|
18575
18603
|
const { asChild: s, ...a } = o, c = s ? n : t;
|
|
18576
18604
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: i });
|
|
18577
18605
|
});
|
|
18578
18606
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
18579
|
-
}, {}),
|
|
18580
|
-
const { decorative: n, orientation: r = Rd, ...o } = e, i =
|
|
18607
|
+
}, {}), rT = "Separator", Rd = "horizontal", oT = ["horizontal", "vertical"], Pg = b.forwardRef((e, t) => {
|
|
18608
|
+
const { decorative: n, orientation: r = Rd, ...o } = e, i = iT(r) ? r : Rd, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
18581
18609
|
return /* @__PURE__ */ f(
|
|
18582
|
-
|
|
18610
|
+
nT.div,
|
|
18583
18611
|
{
|
|
18584
18612
|
"data-orientation": i,
|
|
18585
18613
|
...a,
|
|
@@ -18588,11 +18616,11 @@ var Y_ = [
|
|
|
18588
18616
|
}
|
|
18589
18617
|
);
|
|
18590
18618
|
});
|
|
18591
|
-
Pg.displayName =
|
|
18592
|
-
function
|
|
18593
|
-
return
|
|
18619
|
+
Pg.displayName = rT;
|
|
18620
|
+
function iT(e) {
|
|
18621
|
+
return oT.includes(e);
|
|
18594
18622
|
}
|
|
18595
|
-
var
|
|
18623
|
+
var sT = Pg;
|
|
18596
18624
|
function $c({
|
|
18597
18625
|
className: e,
|
|
18598
18626
|
orientation: t = "horizontal",
|
|
@@ -18600,7 +18628,7 @@ function $c({
|
|
|
18600
18628
|
...r
|
|
18601
18629
|
}) {
|
|
18602
18630
|
return /* @__PURE__ */ f(
|
|
18603
|
-
|
|
18631
|
+
sT,
|
|
18604
18632
|
{
|
|
18605
18633
|
"data-slot": "separator",
|
|
18606
18634
|
decorative: n,
|
|
@@ -18613,27 +18641,27 @@ function $c({
|
|
|
18613
18641
|
}
|
|
18614
18642
|
);
|
|
18615
18643
|
}
|
|
18616
|
-
const
|
|
18644
|
+
const aT = ({
|
|
18617
18645
|
field: e,
|
|
18618
18646
|
className: t
|
|
18619
|
-
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }),
|
|
18647
|
+
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }), lT = {
|
|
18620
18648
|
h1: "text-3xl font-bold",
|
|
18621
18649
|
h2: "text-2xl font-bold",
|
|
18622
18650
|
h3: "text-xl font-semibold",
|
|
18623
18651
|
h4: "text-lg font-semibold",
|
|
18624
18652
|
h5: "text-base font-medium",
|
|
18625
18653
|
h6: "text-sm font-medium"
|
|
18626
|
-
},
|
|
18654
|
+
}, cT = ({
|
|
18627
18655
|
field: e,
|
|
18628
18656
|
className: t
|
|
18629
18657
|
}) => {
|
|
18630
|
-
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i =
|
|
18658
|
+
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i = lT[r], s = r;
|
|
18631
18659
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-1", t), children: [
|
|
18632
18660
|
/* @__PURE__ */ f(s, { className: L("m-0 text-foreground", i), children: e.label || "Header" }),
|
|
18633
18661
|
e.description && /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: e.description }),
|
|
18634
18662
|
o && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18635
18663
|
] });
|
|
18636
|
-
},
|
|
18664
|
+
}, uT = {
|
|
18637
18665
|
"top-left": "justify-start",
|
|
18638
18666
|
"top-center": "justify-center",
|
|
18639
18667
|
"top-right": "justify-end",
|
|
@@ -18643,20 +18671,20 @@ const tT = ({
|
|
|
18643
18671
|
"bottom-left": "justify-start",
|
|
18644
18672
|
"bottom-center": "justify-center",
|
|
18645
18673
|
"bottom-right": "justify-end"
|
|
18646
|
-
},
|
|
18674
|
+
}, dT = {
|
|
18647
18675
|
h1: "text-3xl font-bold",
|
|
18648
18676
|
h2: "text-2xl font-bold",
|
|
18649
18677
|
h3: "text-xl font-semibold",
|
|
18650
18678
|
h4: "text-lg font-semibold",
|
|
18651
18679
|
h5: "text-base font-medium",
|
|
18652
18680
|
h6: "text-sm font-medium"
|
|
18653
|
-
},
|
|
18654
|
-
const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s =
|
|
18681
|
+
}, fT = ({ field: e, className: t }) => {
|
|
18682
|
+
const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s = uT[r], a = dT[o], c = o;
|
|
18655
18683
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-2", t), children: [
|
|
18656
18684
|
/* @__PURE__ */ f("div", { className: L("flex w-full", s), children: /* @__PURE__ */ f(c, { className: L("m-0 text-foreground", a), children: e.label || "Section Heading" }) }),
|
|
18657
18685
|
i && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18658
18686
|
] });
|
|
18659
|
-
},
|
|
18687
|
+
}, pT = ({
|
|
18660
18688
|
field: e,
|
|
18661
18689
|
className: t
|
|
18662
18690
|
}) => {
|
|
@@ -18678,10 +18706,10 @@ function kd(e, t) {
|
|
|
18678
18706
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
18679
18707
|
return r;
|
|
18680
18708
|
}
|
|
18681
|
-
function
|
|
18709
|
+
function mT(e) {
|
|
18682
18710
|
if (Array.isArray(e)) return e;
|
|
18683
18711
|
}
|
|
18684
|
-
function
|
|
18712
|
+
function hT(e, t) {
|
|
18685
18713
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
18686
18714
|
if (n != null) {
|
|
18687
18715
|
var r, o, i, s, a = [], c = !0, u = !1;
|
|
@@ -18699,21 +18727,21 @@ function cT(e, t) {
|
|
|
18699
18727
|
return a;
|
|
18700
18728
|
}
|
|
18701
18729
|
}
|
|
18702
|
-
function
|
|
18730
|
+
function gT() {
|
|
18703
18731
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18704
18732
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
18705
18733
|
}
|
|
18706
|
-
function
|
|
18707
|
-
return
|
|
18734
|
+
function yT(e, t) {
|
|
18735
|
+
return mT(e) || hT(e, t) || bT(e, t) || gT();
|
|
18708
18736
|
}
|
|
18709
|
-
function
|
|
18737
|
+
function bT(e, t) {
|
|
18710
18738
|
if (e) {
|
|
18711
18739
|
if (typeof e == "string") return kd(e, t);
|
|
18712
18740
|
var n = {}.toString.call(e).slice(8, -1);
|
|
18713
18741
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kd(e, t) : void 0;
|
|
18714
18742
|
}
|
|
18715
18743
|
}
|
|
18716
|
-
const Og = Object.entries, Fd = Object.setPrototypeOf,
|
|
18744
|
+
const Og = Object.entries, Fd = Object.setPrototypeOf, vT = Object.isFrozen, wT = Object.getPrototypeOf, ST = Object.getOwnPropertyDescriptor;
|
|
18717
18745
|
let vn = Object.freeze, Hn = Object.seal, wo = Object.create, Ig = typeof Reflect < "u" && Reflect, Ll = Ig.apply, Dl = Ig.construct;
|
|
18718
18746
|
vn || (vn = function(t) {
|
|
18719
18747
|
return t;
|
|
@@ -18731,7 +18759,7 @@ Dl || (Dl = function(t) {
|
|
|
18731
18759
|
r[o - 1] = arguments[o];
|
|
18732
18760
|
return new t(...r);
|
|
18733
18761
|
});
|
|
18734
|
-
const ho = qt(Array.prototype.forEach),
|
|
18762
|
+
const ho = qt(Array.prototype.forEach), xT = qt(Array.prototype.lastIndexOf), Pd = qt(Array.prototype.pop), go = qt(Array.prototype.push), AT = qt(Array.prototype.splice), gn = Array.isArray, Yo = qt(String.prototype.toLowerCase), qa = qt(String.prototype.toString), Od = qt(String.prototype.match), yo = qt(String.prototype.replace), Id = qt(String.prototype.indexOf), CT = qt(String.prototype.trim), ET = qt(Number.prototype.toString), NT = qt(Boolean.prototype.toString), Md = typeof BigInt > "u" ? null : qt(BigInt.prototype.toString), Ld = typeof Symbol > "u" ? null : qt(Symbol.prototype.toString), Dt = qt(Object.prototype.hasOwnProperty), Go = qt(Object.prototype.toString), sn = qt(RegExp.prototype.test), Qi = _T(TypeError);
|
|
18735
18763
|
function qt(e) {
|
|
18736
18764
|
return function(t) {
|
|
18737
18765
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -18740,7 +18768,7 @@ function qt(e) {
|
|
|
18740
18768
|
return Ll(e, t, r);
|
|
18741
18769
|
};
|
|
18742
18770
|
}
|
|
18743
|
-
function
|
|
18771
|
+
function _T(e) {
|
|
18744
18772
|
return function() {
|
|
18745
18773
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
18746
18774
|
n[r] = arguments[r];
|
|
@@ -18756,13 +18784,13 @@ function it(e, t) {
|
|
|
18756
18784
|
let o = t[r];
|
|
18757
18785
|
if (typeof o == "string") {
|
|
18758
18786
|
const i = n(o);
|
|
18759
|
-
i !== o && (
|
|
18787
|
+
i !== o && (vT(t) || (t[r] = i), o = i);
|
|
18760
18788
|
}
|
|
18761
18789
|
e[o] = !0;
|
|
18762
18790
|
}
|
|
18763
18791
|
return e;
|
|
18764
18792
|
}
|
|
18765
|
-
function
|
|
18793
|
+
function TT(e) {
|
|
18766
18794
|
for (let t = 0; t < e.length; t++)
|
|
18767
18795
|
Dt(e, t) || (e[t] = null);
|
|
18768
18796
|
return e;
|
|
@@ -18770,20 +18798,20 @@ function xT(e) {
|
|
|
18770
18798
|
function xn(e) {
|
|
18771
18799
|
const t = wo(null);
|
|
18772
18800
|
for (const r of Og(e)) {
|
|
18773
|
-
var n =
|
|
18801
|
+
var n = yT(r, 2);
|
|
18774
18802
|
const o = n[0], i = n[1];
|
|
18775
|
-
Dt(e, o) && (gn(i) ? t[o] =
|
|
18803
|
+
Dt(e, o) && (gn(i) ? t[o] = TT(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = xn(i) : t[o] = i);
|
|
18776
18804
|
}
|
|
18777
18805
|
return t;
|
|
18778
18806
|
}
|
|
18779
|
-
function
|
|
18807
|
+
function RT(e) {
|
|
18780
18808
|
switch (typeof e) {
|
|
18781
18809
|
case "string":
|
|
18782
18810
|
return e;
|
|
18783
18811
|
case "number":
|
|
18784
|
-
return
|
|
18812
|
+
return ET(e);
|
|
18785
18813
|
case "boolean":
|
|
18786
|
-
return
|
|
18814
|
+
return NT(e);
|
|
18787
18815
|
case "bigint":
|
|
18788
18816
|
return Md ? Md(e) : "0";
|
|
18789
18817
|
case "symbol":
|
|
@@ -18807,43 +18835,43 @@ function AT(e) {
|
|
|
18807
18835
|
}
|
|
18808
18836
|
function Wr(e, t) {
|
|
18809
18837
|
for (; e !== null; ) {
|
|
18810
|
-
const r =
|
|
18838
|
+
const r = ST(e, t);
|
|
18811
18839
|
if (r) {
|
|
18812
18840
|
if (r.get)
|
|
18813
18841
|
return qt(r.get);
|
|
18814
18842
|
if (typeof r.value == "function")
|
|
18815
18843
|
return qt(r.value);
|
|
18816
18844
|
}
|
|
18817
|
-
e =
|
|
18845
|
+
e = wT(e);
|
|
18818
18846
|
}
|
|
18819
18847
|
function n() {
|
|
18820
18848
|
return null;
|
|
18821
18849
|
}
|
|
18822
18850
|
return n;
|
|
18823
18851
|
}
|
|
18824
|
-
function
|
|
18852
|
+
function kT(e) {
|
|
18825
18853
|
try {
|
|
18826
18854
|
return sn(e, ""), !0;
|
|
18827
18855
|
} catch {
|
|
18828
18856
|
return !1;
|
|
18829
18857
|
}
|
|
18830
18858
|
}
|
|
18831
|
-
const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]),
|
|
18859
|
+
const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ya = vn(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xa = vn(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), FT = vn(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ja = vn(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), PT = vn(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Bd = vn(["#text"]), $d = vn(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Qa = vn(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), jd = vn(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zi = vn(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), OT = Hn(/{{[\w\W]*|^[\w\W]*}}/g), IT = Hn(/<%[\w\W]*|^[\w\W]*%>/g), MT = Hn(/\${[\w\W]*/g), LT = Hn(/^data-[\-\w.\u00B7-\uFFFF]+$/), DT = Hn(/^aria-[\-\w]+$/), zd = Hn(
|
|
18832
18860
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
18833
18861
|
// eslint-disable-line no-useless-escape
|
|
18834
|
-
),
|
|
18862
|
+
), BT = Hn(/^(?:\w+script|data):/i), $T = Hn(
|
|
18835
18863
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
18836
18864
|
// eslint-disable-line no-control-regex
|
|
18837
|
-
),
|
|
18865
|
+
), jT = Hn(/^html$/i), zT = Hn(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = {
|
|
18838
18866
|
element: 1,
|
|
18839
18867
|
text: 3,
|
|
18840
18868
|
// Deprecated
|
|
18841
18869
|
progressingInstruction: 7,
|
|
18842
18870
|
comment: 8,
|
|
18843
18871
|
document: 9
|
|
18844
|
-
},
|
|
18872
|
+
}, UT = function() {
|
|
18845
18873
|
return typeof window > "u" ? null : window;
|
|
18846
|
-
},
|
|
18874
|
+
}, VT = function(t, n) {
|
|
18847
18875
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
18848
18876
|
return null;
|
|
18849
18877
|
let r = null;
|
|
@@ -18876,7 +18904,7 @@ const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
18876
18904
|
};
|
|
18877
18905
|
};
|
|
18878
18906
|
function Mg() {
|
|
18879
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
18907
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : UT();
|
|
18880
18908
|
const t = (_e) => Mg(_e);
|
|
18881
18909
|
if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== bo.document || !e.Element)
|
|
18882
18910
|
return t.isSupported = !1, t;
|
|
@@ -18890,11 +18918,11 @@ function Mg() {
|
|
|
18890
18918
|
const N = n, x = N.implementation, P = N.createNodeIterator, T = N.createDocumentFragment, H = N.getElementsByTagName, J = r.importNode;
|
|
18891
18919
|
let F = Ud();
|
|
18892
18920
|
t.isSupported = typeof Og == "function" && typeof C == "function" && x && x.createHTMLDocument !== void 0;
|
|
18893
|
-
const B =
|
|
18921
|
+
const B = OT, O = IT, M = MT, I = LT, z = DT, D = BT, ae = $T, U = zT;
|
|
18894
18922
|
let K = zd, X = null;
|
|
18895
|
-
const ue = it({}, [...Dd, ...
|
|
18923
|
+
const ue = it({}, [...Dd, ...Ya, ...Xa, ...Ja, ...Bd]);
|
|
18896
18924
|
let ie = null;
|
|
18897
|
-
const G = it({}, [...$d, ...
|
|
18925
|
+
const G = it({}, [...$d, ...Qa, ...jd, ...Zi]);
|
|
18898
18926
|
let te = Object.seal(wo(null, {
|
|
18899
18927
|
tagNameCheck: {
|
|
18900
18928
|
writable: !0,
|
|
@@ -18938,7 +18966,7 @@ function Mg() {
|
|
|
18938
18966
|
let Qe = null;
|
|
18939
18967
|
const Ve = it({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mt = "http://www.w3.org/1998/Math/MathML", Et = "http://www.w3.org/2000/svg", Nt = "http://www.w3.org/1999/xhtml";
|
|
18940
18968
|
let ze = Nt, bt = !1, ht = null;
|
|
18941
|
-
const _t = it({}, [mt, Et, Nt],
|
|
18969
|
+
const _t = it({}, [mt, Et, Nt], qa);
|
|
18942
18970
|
let Vt = it({}, ["mi", "mo", "mn", "ms", "mtext"]), mn = it({}, ["annotation-xml"]);
|
|
18943
18971
|
const Nn = it({}, ["title", "style", "font", "a", "script"]);
|
|
18944
18972
|
let Ht = null;
|
|
@@ -18951,18 +18979,18 @@ function Mg() {
|
|
|
18951
18979
|
if (_n && _n === R)
|
|
18952
18980
|
return;
|
|
18953
18981
|
(!R || typeof R != "object") && (R = {}), R = xn(R), Ht = // eslint-disable-next-line unicorn/prefer-includes
|
|
18954
|
-
io.indexOf(R.PARSER_MEDIA_TYPE) === -1 ? Dr : R.PARSER_MEDIA_TYPE, Tt = Ht === "application/xhtml+xml" ?
|
|
18982
|
+
io.indexOf(R.PARSER_MEDIA_TYPE) === -1 ? Dr : R.PARSER_MEDIA_TYPE, Tt = Ht === "application/xhtml+xml" ? qa : Yo, X = Dt(R, "ALLOWED_TAGS") && gn(R.ALLOWED_TAGS) ? it({}, R.ALLOWED_TAGS, Tt) : ue, ie = Dt(R, "ALLOWED_ATTR") && gn(R.ALLOWED_ATTR) ? it({}, R.ALLOWED_ATTR, Tt) : G, ht = Dt(R, "ALLOWED_NAMESPACES") && gn(R.ALLOWED_NAMESPACES) ? it({}, R.ALLOWED_NAMESPACES, qa) : _t, Qe = Dt(R, "ADD_URI_SAFE_ATTR") && gn(R.ADD_URI_SAFE_ATTR) ? it(xn(Ve), R.ADD_URI_SAFE_ATTR, Tt) : Ve, je = Dt(R, "ADD_DATA_URI_TAGS") && gn(R.ADD_DATA_URI_TAGS) ? it(xn(ke), R.ADD_DATA_URI_TAGS, Tt) : ke, Ge = Dt(R, "FORBID_CONTENTS") && gn(R.FORBID_CONTENTS) ? it({}, R.FORBID_CONTENTS, Tt) : Mt, Oe = Dt(R, "FORBID_TAGS") && gn(R.FORBID_TAGS) ? it({}, R.FORBID_TAGS, Tt) : xn({}), oe = Dt(R, "FORBID_ATTR") && gn(R.FORBID_ATTR) ? it({}, R.FORBID_ATTR, Tt) : xn({}), he = Dt(R, "USE_PROFILES") ? R.USE_PROFILES && typeof R.USE_PROFILES == "object" ? xn(R.USE_PROFILES) : R.USE_PROFILES : !1, ve = R.ALLOW_ARIA_ATTR !== !1, de = R.ALLOW_DATA_ATTR !== !1, st = R.ALLOW_UNKNOWN_PROTOCOLS || !1, xe = R.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = R.SAFE_FOR_TEMPLATES || !1, le = R.SAFE_FOR_XML !== !1, we = R.WHOLE_DOCUMENT || !1, qe = R.RETURN_DOM || !1, Xt = R.RETURN_DOM_FRAGMENT || !1, Ze = R.RETURN_TRUSTED_TYPE || !1, dt = R.FORCE_BODY || !1, q = R.SANITIZE_DOM !== !1, $e = R.SANITIZE_NAMED_PROPS || !1, Ie = R.KEEP_CONTENT !== !1, ne = R.IN_PLACE || !1, K = kT(R.ALLOWED_URI_REGEXP) ? R.ALLOWED_URI_REGEXP : zd, ze = typeof R.NAMESPACE == "string" ? R.NAMESPACE : Nt, Vt = Dt(R, "MATHML_TEXT_INTEGRATION_POINTS") && R.MATHML_TEXT_INTEGRATION_POINTS && typeof R.MATHML_TEXT_INTEGRATION_POINTS == "object" ? xn(R.MATHML_TEXT_INTEGRATION_POINTS) : it({}, ["mi", "mo", "mn", "ms", "mtext"]), mn = Dt(R, "HTML_INTEGRATION_POINTS") && R.HTML_INTEGRATION_POINTS && typeof R.HTML_INTEGRATION_POINTS == "object" ? xn(R.HTML_INTEGRATION_POINTS) : it({}, ["annotation-xml"]);
|
|
18955
18983
|
const Y = Dt(R, "CUSTOM_ELEMENT_HANDLING") && R.CUSTOM_ELEMENT_HANDLING && typeof R.CUSTOM_ELEMENT_HANDLING == "object" ? xn(R.CUSTOM_ELEMENT_HANDLING) : wo(null);
|
|
18956
|
-
if (te = wo(null), Dt(Y, "tagNameCheck") && Bt(Y.tagNameCheck) && (te.tagNameCheck = Y.tagNameCheck), Dt(Y, "attributeNameCheck") && Bt(Y.attributeNameCheck) && (te.attributeNameCheck = Y.attributeNameCheck), Dt(Y, "allowCustomizedBuiltInElements") && typeof Y.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = Y.allowCustomizedBuiltInElements), Ae && (de = !1), Xt && (qe = !0), he && (X = it({}, Bd), ie = wo(null), he.html === !0 && (it(X, Dd), it(ie, $d)), he.svg === !0 && (it(X,
|
|
18984
|
+
if (te = wo(null), Dt(Y, "tagNameCheck") && Bt(Y.tagNameCheck) && (te.tagNameCheck = Y.tagNameCheck), Dt(Y, "attributeNameCheck") && Bt(Y.attributeNameCheck) && (te.attributeNameCheck = Y.attributeNameCheck), Dt(Y, "allowCustomizedBuiltInElements") && typeof Y.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = Y.allowCustomizedBuiltInElements), Ae && (de = !1), Xt && (qe = !0), he && (X = it({}, Bd), ie = wo(null), he.html === !0 && (it(X, Dd), it(ie, $d)), he.svg === !0 && (it(X, Ya), it(ie, Qa), it(ie, Zi)), he.svgFilters === !0 && (it(X, Xa), it(ie, Qa), it(ie, Zi)), he.mathMl === !0 && (it(X, Ja), it(ie, jd), it(ie, Zi))), re.tagCheck = null, re.attributeCheck = null, Dt(R, "ADD_TAGS") && (typeof R.ADD_TAGS == "function" ? re.tagCheck = R.ADD_TAGS : gn(R.ADD_TAGS) && (X === ue && (X = xn(X)), it(X, R.ADD_TAGS, Tt))), Dt(R, "ADD_ATTR") && (typeof R.ADD_ATTR == "function" ? re.attributeCheck = R.ADD_ATTR : gn(R.ADD_ATTR) && (ie === G && (ie = xn(ie)), it(ie, R.ADD_ATTR, Tt))), Dt(R, "ADD_URI_SAFE_ATTR") && gn(R.ADD_URI_SAFE_ATTR) && it(Qe, R.ADD_URI_SAFE_ATTR, Tt), Dt(R, "FORBID_CONTENTS") && gn(R.FORBID_CONTENTS) && (Ge === Mt && (Ge = xn(Ge)), it(Ge, R.FORBID_CONTENTS, Tt)), Dt(R, "ADD_FORBID_CONTENTS") && gn(R.ADD_FORBID_CONTENTS) && (Ge === Mt && (Ge = xn(Ge)), it(Ge, R.ADD_FORBID_CONTENTS, Tt)), Ie && (X["#text"] = !0), we && it(X, ["html", "head", "body"]), X.table && (it(X, ["tbody"]), delete Oe.tbody), R.TRUSTED_TYPES_POLICY) {
|
|
18957
18985
|
if (typeof R.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
18958
18986
|
throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
18959
18987
|
if (typeof R.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
18960
18988
|
throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
18961
18989
|
A = R.TRUSTED_TYPES_POLICY, E = A.createHTML("");
|
|
18962
18990
|
} else
|
|
18963
|
-
A === void 0 && (A =
|
|
18991
|
+
A === void 0 && (A = VT(g, o)), A !== null && typeof E == "string" && (E = A.createHTML(""));
|
|
18964
18992
|
vn && vn(R), _n = R;
|
|
18965
|
-
}, nn = it({}, [...
|
|
18993
|
+
}, nn = it({}, [...Ya, ...Xa, ...FT]), un = it({}, [...Ja, ...PT]), ur = function(R) {
|
|
18966
18994
|
let Y = C(R);
|
|
18967
18995
|
(!Y || !Y.tagName) && (Y = {
|
|
18968
18996
|
namespaceURI: ze,
|
|
@@ -19141,7 +19169,7 @@ function Mg() {
|
|
|
19141
19169
|
let at = Y.length;
|
|
19142
19170
|
for (; at--; ) {
|
|
19143
19171
|
const Ft = Y[at], Ct = Ft.name, $t = Ft.namespaceURI, $n = Ft.value, dn = Tt(Ct), so = $n;
|
|
19144
|
-
let jt = Ct === "value" ? so :
|
|
19172
|
+
let jt = Ct === "value" ? so : CT(so);
|
|
19145
19173
|
if (ye.attrName = dn, ye.attrValue = jt, ye.keepAttr = !0, ye.forceKeepAttr = void 0, Jt(F.uponSanitizeAttribute, R, ye), jt = ye.attrValue, $e && (dn === "id" || dn === "name") && Id(jt, yt) !== 0 && (kt(Ct, R), jt = yt + jt), le && sn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, jt)) {
|
|
19146
19174
|
kt(Ct, R);
|
|
19147
19175
|
continue;
|
|
@@ -19210,7 +19238,7 @@ function Mg() {
|
|
|
19210
19238
|
};
|
|
19211
19239
|
return t.sanitize = function(_e) {
|
|
19212
19240
|
let R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Y = null, ye = null, at = null, Ft = null;
|
|
19213
|
-
if (bt = !_e, bt && (_e = "<!-->"), typeof _e != "string" && !Sn(_e) && (_e =
|
|
19241
|
+
if (bt = !_e, bt && (_e = "<!-->"), typeof _e != "string" && !Sn(_e) && (_e = RT(_e), typeof _e != "string"))
|
|
19214
19242
|
throw Qi("dirty is not a string, aborting");
|
|
19215
19243
|
if (!t.isSupported)
|
|
19216
19244
|
return _e;
|
|
@@ -19246,7 +19274,7 @@ function Mg() {
|
|
|
19246
19274
|
return (ie.shadowroot || ie.shadowrootmode) && (Ft = J.call(r, Ft, !0)), Ft;
|
|
19247
19275
|
}
|
|
19248
19276
|
let $t = we ? Y.outerHTML : Y.innerHTML;
|
|
19249
|
-
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(
|
|
19277
|
+
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(jT, Y.ownerDocument.doctype.name) && ($t = "<!DOCTYPE " + Y.ownerDocument.doctype.name + `>
|
|
19250
19278
|
` + $t), Ae && ho([B, O, M], ($n) => {
|
|
19251
19279
|
$t = yo($t, $n, " ");
|
|
19252
19280
|
}), A && Ze ? A.createHTML($t) : $t;
|
|
@@ -19263,8 +19291,8 @@ function Mg() {
|
|
|
19263
19291
|
typeof R == "function" && go(F[_e], R);
|
|
19264
19292
|
}, t.removeHook = function(_e, R) {
|
|
19265
19293
|
if (R !== void 0) {
|
|
19266
|
-
const Y =
|
|
19267
|
-
return Y === -1 ? void 0 :
|
|
19294
|
+
const Y = xT(F[_e], R);
|
|
19295
|
+
return Y === -1 ? void 0 : AT(F[_e], Y, 1)[0];
|
|
19268
19296
|
}
|
|
19269
19297
|
return Pd(F[_e]);
|
|
19270
19298
|
}, t.removeHooks = function(_e) {
|
|
@@ -19273,8 +19301,8 @@ function Mg() {
|
|
|
19273
19301
|
F = Ud();
|
|
19274
19302
|
}, t;
|
|
19275
19303
|
}
|
|
19276
|
-
var
|
|
19277
|
-
const
|
|
19304
|
+
var HT = Mg();
|
|
19305
|
+
const WT = [
|
|
19278
19306
|
"a",
|
|
19279
19307
|
"b",
|
|
19280
19308
|
"br",
|
|
@@ -19301,7 +19329,7 @@ const $T = [
|
|
|
19301
19329
|
"tr",
|
|
19302
19330
|
"u",
|
|
19303
19331
|
"ul"
|
|
19304
|
-
],
|
|
19332
|
+
], GT = [
|
|
19305
19333
|
"href",
|
|
19306
19334
|
"target",
|
|
19307
19335
|
"rel",
|
|
@@ -19313,14 +19341,14 @@ const $T = [
|
|
|
19313
19341
|
"colspan",
|
|
19314
19342
|
"rowspan"
|
|
19315
19343
|
];
|
|
19316
|
-
function
|
|
19317
|
-
return e ?
|
|
19318
|
-
ALLOWED_TAGS: [
|
|
19319
|
-
ALLOWED_ATTR: [...
|
|
19344
|
+
function KT(e) {
|
|
19345
|
+
return e ? HT.sanitize(e, {
|
|
19346
|
+
ALLOWED_TAGS: [...WT],
|
|
19347
|
+
ALLOWED_ATTR: [...GT],
|
|
19320
19348
|
ALLOW_DATA_ATTR: !1
|
|
19321
19349
|
}) : "";
|
|
19322
19350
|
}
|
|
19323
|
-
function
|
|
19351
|
+
function qT(e, t, n = !1) {
|
|
19324
19352
|
return e.includes("{labelapi:") ? e.replace(/\{labelapi:([^}]+)\}/g, (r, o) => {
|
|
19325
19353
|
const i = o.trim();
|
|
19326
19354
|
if (i === "" || t == null) return n ? "" : r;
|
|
@@ -19328,7 +19356,7 @@ function UT(e, t, n = !1) {
|
|
|
19328
19356
|
return s == null ? n ? "" : r : String(s);
|
|
19329
19357
|
}) : e;
|
|
19330
19358
|
}
|
|
19331
|
-
function
|
|
19359
|
+
function YT(e) {
|
|
19332
19360
|
return e && e.replace(/\{api:[^}]*\}/gi, "").replace(/\{labelapi:[^}]*\}/gi, "").replace(/\{resp:[^}]*\}/gi, "").replace(/\{(?:ctx:|@)\w+\}/gi, "").replace(/\{documentId\}/gi, "").replace(/\{(\w+)\}/g, "");
|
|
19333
19361
|
}
|
|
19334
19362
|
const Vd = {
|
|
@@ -19355,17 +19383,17 @@ const Vd = {
|
|
|
19355
19383
|
function to(e) {
|
|
19356
19384
|
return e.properties ?? {};
|
|
19357
19385
|
}
|
|
19358
|
-
function
|
|
19386
|
+
function XT(e) {
|
|
19359
19387
|
const t = to(e);
|
|
19360
19388
|
return t.textContent !== void 0 ? t.textContent : e.label ?? "";
|
|
19361
19389
|
}
|
|
19362
|
-
function
|
|
19390
|
+
function JT(e) {
|
|
19363
19391
|
return to(e).textContent === void 0 || e.appearance?.hideLabel ? !1 : !!e.label?.trim();
|
|
19364
19392
|
}
|
|
19365
|
-
function
|
|
19393
|
+
function QT(e) {
|
|
19366
19394
|
return e?.contentLayout === "paragraph" ? "paragraph" : "single";
|
|
19367
19395
|
}
|
|
19368
|
-
function
|
|
19396
|
+
function Za(e, t = {}) {
|
|
19369
19397
|
const {
|
|
19370
19398
|
formValues: n = {},
|
|
19371
19399
|
urlParams: r = {},
|
|
@@ -19380,18 +19408,18 @@ function el(e, t = {}) {
|
|
|
19380
19408
|
o,
|
|
19381
19409
|
i,
|
|
19382
19410
|
s
|
|
19383
|
-
), u =
|
|
19384
|
-
return
|
|
19411
|
+
), u = qT(c, a, !0);
|
|
19412
|
+
return YT(u);
|
|
19385
19413
|
}
|
|
19386
|
-
const
|
|
19387
|
-
function
|
|
19388
|
-
return
|
|
19414
|
+
const ZT = /\{api:[^}]+\}/, eR = /\{labelapi:[^}]+\}/;
|
|
19415
|
+
function el(e) {
|
|
19416
|
+
return ZT.test(e);
|
|
19389
19417
|
}
|
|
19390
|
-
function
|
|
19391
|
-
return
|
|
19418
|
+
function tl(e) {
|
|
19419
|
+
return eR.test(e);
|
|
19392
19420
|
}
|
|
19393
|
-
function
|
|
19394
|
-
const t = e.captionTemplate ?? "", n = e.descriptionTemplate ?? "", r =
|
|
19421
|
+
function tR(e) {
|
|
19422
|
+
const t = e.captionTemplate ?? "", n = e.descriptionTemplate ?? "", r = el(e.bodyTemplate) || el(t) || el(n), o = tl(e.bodyTemplate) || tl(t) || tl(n);
|
|
19395
19423
|
return !!(r && e.prepopulateLoading || o && e.labelApiConfigPresent && (e.labelApiLoading || e.labelApiResponse === void 0 && e.labelApiError == null));
|
|
19396
19424
|
}
|
|
19397
19425
|
function Gd(e, t) {
|
|
@@ -19412,7 +19440,7 @@ function Gd(e, t) {
|
|
|
19412
19440
|
n.textAlign && _s[n.textAlign]
|
|
19413
19441
|
);
|
|
19414
19442
|
}
|
|
19415
|
-
function
|
|
19443
|
+
function nR(e, t) {
|
|
19416
19444
|
const n = (t ?? to(e)).variant ?? "body";
|
|
19417
19445
|
return n === "body" ? "p" : n;
|
|
19418
19446
|
}
|
|
@@ -19438,21 +19466,21 @@ function jc(e) {
|
|
|
19438
19466
|
}
|
|
19439
19467
|
return o(), t;
|
|
19440
19468
|
}
|
|
19441
|
-
function
|
|
19469
|
+
function rR(e) {
|
|
19442
19470
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
19443
19471
|
}
|
|
19444
19472
|
function Lg(e) {
|
|
19445
19473
|
return e.map((t) => {
|
|
19446
|
-
if (t.type === "text") return
|
|
19474
|
+
if (t.type === "text") return rR(t.value);
|
|
19447
19475
|
const n = Lg(t.children);
|
|
19448
19476
|
return t.type === "bold" ? `<strong class="font-bold">${n}</strong>` : t.type === "italic" ? `<em class="italic">${n}</em>` : `<u class="underline">${n}</u>`;
|
|
19449
19477
|
}).join("");
|
|
19450
19478
|
}
|
|
19451
|
-
function
|
|
19479
|
+
function oR(e) {
|
|
19452
19480
|
return e ? Lg(jc(e)) : "";
|
|
19453
19481
|
}
|
|
19454
|
-
function
|
|
19455
|
-
return e ? t === "markdown-lite" ?
|
|
19482
|
+
function iR(e, t) {
|
|
19483
|
+
return e ? t === "markdown-lite" ? oR(e) : e : "";
|
|
19456
19484
|
}
|
|
19457
19485
|
function Dg(e, t) {
|
|
19458
19486
|
return e.map((n, r) => {
|
|
@@ -19470,18 +19498,18 @@ function Kd(e, t) {
|
|
|
19470
19498
|
const n = jc(e);
|
|
19471
19499
|
return n.length === 1 && n[0]?.type === "text" ? n[0].value : Dg(n, "tl");
|
|
19472
19500
|
}
|
|
19473
|
-
const
|
|
19501
|
+
const sR = "text-label-html prose prose-sm max-w-none [&_p]:m-0 [&_p+p]:mt-2 [&_ul]:my-1 [&_ol]:my-1";
|
|
19474
19502
|
function qd(e, t) {
|
|
19475
19503
|
if (!e) return null;
|
|
19476
|
-
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ??
|
|
19504
|
+
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ?? QT(o), s = o.inlineFormat ?? "none";
|
|
19477
19505
|
if (i === "paragraph") {
|
|
19478
|
-
const c =
|
|
19506
|
+
const c = KT(iR(e, s));
|
|
19479
19507
|
if (!c) return null;
|
|
19480
19508
|
const u = r ? L(
|
|
19481
19509
|
"m-0 text-sm",
|
|
19482
19510
|
o.descriptionMuted !== !1 ? "text-muted-foreground" : "text-foreground",
|
|
19483
19511
|
o.textAlign && _s[o.textAlign]
|
|
19484
|
-
) : L(Gd(n, o),
|
|
19512
|
+
) : L(Gd(n, o), sR);
|
|
19485
19513
|
return Lt.createElement("div", {
|
|
19486
19514
|
className: u,
|
|
19487
19515
|
dangerouslySetInnerHTML: { __html: c }
|
|
@@ -19499,14 +19527,14 @@ function qd(e, t) {
|
|
|
19499
19527
|
},
|
|
19500
19528
|
Kd(e, s)
|
|
19501
19529
|
);
|
|
19502
|
-
const a =
|
|
19530
|
+
const a = nR(n, o);
|
|
19503
19531
|
return Lt.createElement(
|
|
19504
19532
|
a,
|
|
19505
19533
|
{ className: Gd(n, o) },
|
|
19506
19534
|
Kd(e, s)
|
|
19507
19535
|
);
|
|
19508
19536
|
}
|
|
19509
|
-
function
|
|
19537
|
+
function aR(e) {
|
|
19510
19538
|
const t = e.labelApiEndpoint?.trim();
|
|
19511
19539
|
return !e.labelApiEnabled || !t ? null : {
|
|
19512
19540
|
labelApiEndpoint: t,
|
|
@@ -19516,7 +19544,7 @@ function tR(e) {
|
|
|
19516
19544
|
labelApiBodyFields: e.labelApiBodyFields
|
|
19517
19545
|
};
|
|
19518
19546
|
}
|
|
19519
|
-
async function
|
|
19547
|
+
async function lR(e, t = {}) {
|
|
19520
19548
|
const {
|
|
19521
19549
|
formValues: n = {},
|
|
19522
19550
|
urlParams: r = {},
|
|
@@ -19551,7 +19579,7 @@ async function nR(e, t = {}) {
|
|
|
19551
19579
|
throw new Error(m ? `HTTP ${m}: ${g}` : String(g));
|
|
19552
19580
|
}
|
|
19553
19581
|
}
|
|
19554
|
-
const
|
|
19582
|
+
const cR = ({
|
|
19555
19583
|
field: e,
|
|
19556
19584
|
className: t,
|
|
19557
19585
|
formValues: n,
|
|
@@ -19562,7 +19590,7 @@ const rR = ({
|
|
|
19562
19590
|
prepopulateLoading: a = !1
|
|
19563
19591
|
}) => {
|
|
19564
19592
|
const c = to(e), u = pe(
|
|
19565
|
-
() =>
|
|
19593
|
+
() => aR(to(e)),
|
|
19566
19594
|
[e.properties]
|
|
19567
19595
|
), [l, d] = Ee(void 0), [p, m] = Ee(!1), [g, h] = Ee(null), y = pe(
|
|
19568
19596
|
() => u ? JSON.stringify({
|
|
@@ -19580,7 +19608,7 @@ const rR = ({
|
|
|
19580
19608
|
}
|
|
19581
19609
|
m(!0), h(null);
|
|
19582
19610
|
try {
|
|
19583
|
-
const H = await
|
|
19611
|
+
const H = await lR(u, {
|
|
19584
19612
|
formValues: n ?? {},
|
|
19585
19613
|
urlParams: r ?? {},
|
|
19586
19614
|
submissionContext: o
|
|
@@ -19595,7 +19623,7 @@ const rR = ({
|
|
|
19595
19623
|
wt(() => {
|
|
19596
19624
|
y && v();
|
|
19597
19625
|
}, [y, v]);
|
|
19598
|
-
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S =
|
|
19626
|
+
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S = XT(e), C = JT(e), k = C && e.label ? e.label : "", A = e.description ?? "", E = tR({
|
|
19599
19627
|
bodyTemplate: S,
|
|
19600
19628
|
captionTemplate: k,
|
|
19601
19629
|
descriptionTemplate: A,
|
|
@@ -19611,7 +19639,7 @@ const rR = ({
|
|
|
19611
19639
|
buttonResponses: i,
|
|
19612
19640
|
prepopulateResponse: s,
|
|
19613
19641
|
labelApiResponse: l
|
|
19614
|
-
}, x = S ?
|
|
19642
|
+
}, x = S ? Za(S, N) : "", P = C && e.label ? Za(e.label, N) : "", T = A ? Za(A, N) : "";
|
|
19615
19643
|
return /* @__PURE__ */ f(
|
|
19616
19644
|
"div",
|
|
19617
19645
|
{
|
|
@@ -19632,7 +19660,7 @@ const rR = ({
|
|
|
19632
19660
|
] })
|
|
19633
19661
|
}
|
|
19634
19662
|
);
|
|
19635
|
-
},
|
|
19663
|
+
}, nl = ({
|
|
19636
19664
|
legend: e,
|
|
19637
19665
|
children: t,
|
|
19638
19666
|
className: n,
|
|
@@ -19720,16 +19748,16 @@ const rR = ({
|
|
|
19720
19748
|
}) => {
|
|
19721
19749
|
switch (e.type) {
|
|
19722
19750
|
case "divider":
|
|
19723
|
-
return /* @__PURE__ */ f(
|
|
19751
|
+
return /* @__PURE__ */ f(aT, { field: e, className: c });
|
|
19724
19752
|
case "header":
|
|
19725
|
-
return /* @__PURE__ */ f(
|
|
19753
|
+
return /* @__PURE__ */ f(cT, { field: e, className: c });
|
|
19726
19754
|
case "sectionHeading":
|
|
19727
|
-
return /* @__PURE__ */ f(
|
|
19755
|
+
return /* @__PURE__ */ f(fT, { field: e, className: c });
|
|
19728
19756
|
case "spacer":
|
|
19729
|
-
return /* @__PURE__ */ f(
|
|
19757
|
+
return /* @__PURE__ */ f(pT, { field: e, className: c });
|
|
19730
19758
|
case "textLabel":
|
|
19731
19759
|
return /* @__PURE__ */ f(
|
|
19732
|
-
|
|
19760
|
+
cR,
|
|
19733
19761
|
{
|
|
19734
19762
|
field: e,
|
|
19735
19763
|
className: c,
|
|
@@ -19743,7 +19771,7 @@ const rR = ({
|
|
|
19743
19771
|
);
|
|
19744
19772
|
case "status":
|
|
19745
19773
|
return /* @__PURE__ */ f(
|
|
19746
|
-
|
|
19774
|
+
Q_,
|
|
19747
19775
|
{
|
|
19748
19776
|
field: e,
|
|
19749
19777
|
value: t ?? null,
|
|
@@ -19763,7 +19791,7 @@ const rR = ({
|
|
|
19763
19791
|
case "password":
|
|
19764
19792
|
case "url":
|
|
19765
19793
|
return /* @__PURE__ */ f(
|
|
19766
|
-
|
|
19794
|
+
dl,
|
|
19767
19795
|
{
|
|
19768
19796
|
field: e,
|
|
19769
19797
|
value: t || "",
|
|
@@ -19947,7 +19975,7 @@ const rR = ({
|
|
|
19947
19975
|
valueLength: D.length,
|
|
19948
19976
|
submissionContextKeys: l ? Object.keys(l) : []
|
|
19949
19977
|
}), /* @__PURE__ */ f(
|
|
19950
|
-
|
|
19978
|
+
eT,
|
|
19951
19979
|
{
|
|
19952
19980
|
field: e,
|
|
19953
19981
|
value: D,
|
|
@@ -20088,7 +20116,7 @@ const rR = ({
|
|
|
20088
20116
|
);
|
|
20089
20117
|
case "billingGrid":
|
|
20090
20118
|
return /* @__PURE__ */ f(
|
|
20091
|
-
|
|
20119
|
+
J_,
|
|
20092
20120
|
{
|
|
20093
20121
|
field: e,
|
|
20094
20122
|
value: t || { rows: [] },
|
|
@@ -20180,7 +20208,7 @@ const rR = ({
|
|
|
20180
20208
|
e.type
|
|
20181
20209
|
] }) });
|
|
20182
20210
|
}
|
|
20183
|
-
},
|
|
20211
|
+
}, uR = ({
|
|
20184
20212
|
steps: e,
|
|
20185
20213
|
currentStep: t,
|
|
20186
20214
|
completedSteps: n,
|
|
@@ -20252,7 +20280,7 @@ function Qo(e) {
|
|
|
20252
20280
|
function Yd(e) {
|
|
20253
20281
|
return Array.isArray(e) ? e.map(Qo) : [];
|
|
20254
20282
|
}
|
|
20255
|
-
function
|
|
20283
|
+
function dR(e) {
|
|
20256
20284
|
if (!e.moduleId)
|
|
20257
20285
|
throw new Error(
|
|
20258
20286
|
`Form response missing required field: moduleId. Form ID: ${e._id || e.id}. Please ensure the backend returns moduleId when fetching forms.`
|
|
@@ -20284,7 +20312,7 @@ function iR(e) {
|
|
|
20284
20312
|
config: e.config ?? void 0
|
|
20285
20313
|
};
|
|
20286
20314
|
}
|
|
20287
|
-
class
|
|
20315
|
+
class fR {
|
|
20288
20316
|
basePath = "/api/form-builder/forms";
|
|
20289
20317
|
/**
|
|
20290
20318
|
* Get form for rendering (fields, layout, rules, client overrides, optional BFF_submit_api).
|
|
@@ -20303,7 +20331,7 @@ class sR {
|
|
|
20303
20331
|
`Form response missing required field: tenantId. Form ID: ${t}. Please ensure the backend returns tenantId for non-default forms.`
|
|
20304
20332
|
);
|
|
20305
20333
|
s.form?.moduleId && !c.moduleId && (c.moduleId = s.form.moduleId), s.form?.tenantId && !c.tenantId && (c.tenantId = s.form.tenantId), s.form?.isDefault !== void 0 && c.isDefault === void 0 && (c.isDefault = s.form.isDefault);
|
|
20306
|
-
const l =
|
|
20334
|
+
const l = dR(c);
|
|
20307
20335
|
s.form?.moduleId && (typeof s.form.moduleId == "object" && s.form.moduleId._id ? l.moduleId = Qo(s.form.moduleId) : typeof s.form.moduleId == "string" && (l.moduleId = s.form.moduleId));
|
|
20308
20336
|
const d = Yd(s.fields || []), p = s.layout ? Qo(s.layout) : null, m = Yd(s.rules || []), g = s.module ? Qo(s.module) : void 0, h = s.clientMapping || s.clientOverrides;
|
|
20309
20337
|
return {
|
|
@@ -20318,7 +20346,7 @@ class sR {
|
|
|
20318
20346
|
};
|
|
20319
20347
|
}
|
|
20320
20348
|
}
|
|
20321
|
-
const
|
|
20349
|
+
const pR = new fR();
|
|
20322
20350
|
function Pr({
|
|
20323
20351
|
className: e,
|
|
20324
20352
|
size: t = "md",
|
|
@@ -20339,7 +20367,7 @@ function Pr({
|
|
|
20339
20367
|
] });
|
|
20340
20368
|
return r ? /* @__PURE__ */ f("div", { className: "min-h-screen bg-gradient-to-br from-blue-50 via-white to-indigo-50 flex items-center justify-center", children: i }) : i;
|
|
20341
20369
|
}
|
|
20342
|
-
const
|
|
20370
|
+
const mR = {
|
|
20343
20371
|
submitAction: "database",
|
|
20344
20372
|
autoSave: !0,
|
|
20345
20373
|
autoSaveInterval: 30,
|
|
@@ -20354,19 +20382,19 @@ const lR = {
|
|
|
20354
20382
|
showReset: !1,
|
|
20355
20383
|
successMessage: "Form submitted successfully!",
|
|
20356
20384
|
errorMessage: "An error occurred. Please try again."
|
|
20357
|
-
},
|
|
20358
|
-
function
|
|
20359
|
-
return { ...
|
|
20385
|
+
}, hR = 300;
|
|
20386
|
+
function gR() {
|
|
20387
|
+
return { ...mR };
|
|
20360
20388
|
}
|
|
20361
|
-
function
|
|
20389
|
+
function yR(e) {
|
|
20362
20390
|
if (!e || typeof e != "object") return;
|
|
20363
20391
|
const t = e, n = t.user_type ?? t.visibleToUserType ?? "", r = t.user_role ?? t.visibleToUserRole ?? "", o = Array.isArray(t.users) ? t.users : Array.isArray(t.visibleToUserIds) ? t.visibleToUserIds : [];
|
|
20364
20392
|
if (!(n != null && n !== "" || r != null && r !== "" || o.length > 0)) return;
|
|
20365
20393
|
const s = {};
|
|
20366
20394
|
return n != null && n !== "" && (s.visibleToUserType = n), r != null && r !== "" && (s.visibleToUserRole = r), o.length > 0 && (s.visibleToUserIds = o), s;
|
|
20367
20395
|
}
|
|
20368
|
-
function
|
|
20369
|
-
const t =
|
|
20396
|
+
function bR(e) {
|
|
20397
|
+
const t = gR();
|
|
20370
20398
|
if (!e || typeof e != "object")
|
|
20371
20399
|
return t;
|
|
20372
20400
|
const n = e;
|
|
@@ -20495,7 +20523,7 @@ function ss(e, t, n, r) {
|
|
|
20495
20523
|
const { disabled: k, readOnly: A, hidden: E, ...N } = p, x = {};
|
|
20496
20524
|
N.hideLabel !== void 0 && (x.hideLabel = N.hideLabel), N.labelPosition !== void 0 && (x.labelPlacement = N.labelPosition), N.size !== void 0 && (x.size = N.size), N.customClass !== void 0 && (x.className = N.customClass);
|
|
20497
20525
|
const { labelPosition: P, size: T, customClass: H, visibility: J, ...F } = N, B = Object.keys(F).length > 0 ? F : void 0, O = Object.keys(x).length > 0 ? x : void 0, M = l.visibility ?? p?.visibility ?? J;
|
|
20498
|
-
let I =
|
|
20526
|
+
let I = yR(M);
|
|
20499
20527
|
if (M && !I) {
|
|
20500
20528
|
const U = M;
|
|
20501
20529
|
(U.visibleToUserType != null || U.visibleToUserRole != null || Array.isArray(U.visibleToUserTypes) && U.visibleToUserTypes.length > 0 || Array.isArray(U.visibleToUserRoles) && U.visibleToUserRoles.length > 0 || Array.isArray(U.visibleToUserIds) && U.visibleToUserIds.length > 0 || Array.isArray(U.hiddenFromUserIds) && U.hiddenFromUserIds.length > 0) && (I = {
|
|
@@ -20577,7 +20605,7 @@ function ss(e, t, n, r) {
|
|
|
20577
20605
|
}), c != null)
|
|
20578
20606
|
try {
|
|
20579
20607
|
const l = typeof c == "string" ? JSON.parse(c) : c;
|
|
20580
|
-
l && typeof l == "object" ? a =
|
|
20608
|
+
l && typeof l == "object" ? a = bR(l) : a = {
|
|
20581
20609
|
submitAction: "database",
|
|
20582
20610
|
layout: "default",
|
|
20583
20611
|
autoSave: !0,
|
|
@@ -20601,7 +20629,7 @@ function ss(e, t, n, r) {
|
|
|
20601
20629
|
validateOnChange: !0,
|
|
20602
20630
|
showFieldErrors: "inline"
|
|
20603
20631
|
};
|
|
20604
|
-
const u =
|
|
20632
|
+
const u = ll(n);
|
|
20605
20633
|
return u && (a = { ...a, grid: u }), {
|
|
20606
20634
|
id: e.id,
|
|
20607
20635
|
name: e.name,
|
|
@@ -20620,7 +20648,7 @@ function ss(e, t, n, r) {
|
|
|
20620
20648
|
isDefault: e.isDefault
|
|
20621
20649
|
};
|
|
20622
20650
|
}
|
|
20623
|
-
const
|
|
20651
|
+
const vR = 3;
|
|
20624
20652
|
function vo(e) {
|
|
20625
20653
|
if (typeof e == "number" && !Number.isNaN(e)) return e;
|
|
20626
20654
|
}
|
|
@@ -20661,9 +20689,9 @@ function Xd(e) {
|
|
|
20661
20689
|
return t.length >= 2 ? "row" : "stack";
|
|
20662
20690
|
}
|
|
20663
20691
|
function Bg(e) {
|
|
20664
|
-
return zc(e).slice(0,
|
|
20692
|
+
return zc(e).slice(0, vR);
|
|
20665
20693
|
}
|
|
20666
|
-
function
|
|
20694
|
+
function wR(e, t) {
|
|
20667
20695
|
const n = /* @__PURE__ */ new Map();
|
|
20668
20696
|
for (const r of e) {
|
|
20669
20697
|
if (!t(r) || typeof r.position?.order != "number") continue;
|
|
@@ -20685,13 +20713,13 @@ function Jd(e, t, n, r) {
|
|
|
20685
20713
|
const s = [...i.values()][0] ?? [];
|
|
20686
20714
|
return Bg(s);
|
|
20687
20715
|
}
|
|
20688
|
-
function
|
|
20716
|
+
function SR(e, t, n, r) {
|
|
20689
20717
|
const o = n[0], i = o.position?.order, s = o.position?.column ?? 1;
|
|
20690
20718
|
if (typeof i != "number") return !1;
|
|
20691
20719
|
const { rowSpan: a, columnSpan: c } = Zo(n, r), u = e === i && t === s - 1, l = e >= i && e < i + a, d = t >= s - 1 && t < s - 1 + c;
|
|
20692
20720
|
return l && d && !u;
|
|
20693
20721
|
}
|
|
20694
|
-
function
|
|
20722
|
+
function xR(e, t, n) {
|
|
20695
20723
|
const r = new Set(n ?? []);
|
|
20696
20724
|
for (const o of e) {
|
|
20697
20725
|
const i = o[0]?.position?.order ?? 0, { rowSpan: s } = Zo(o, t);
|
|
@@ -20699,7 +20727,7 @@ function gR(e, t, n) {
|
|
|
20699
20727
|
}
|
|
20700
20728
|
return r;
|
|
20701
20729
|
}
|
|
20702
|
-
function
|
|
20730
|
+
function AR(e) {
|
|
20703
20731
|
const t = [...e].sort((r, o) => r - o), n = /* @__PURE__ */ new Map();
|
|
20704
20732
|
return t.forEach((r, o) => n.set(r, o)), {
|
|
20705
20733
|
originalToDisplay: n,
|
|
@@ -20707,7 +20735,7 @@ function yR(e) {
|
|
|
20707
20735
|
sortedOriginalRows: t
|
|
20708
20736
|
};
|
|
20709
20737
|
}
|
|
20710
|
-
function
|
|
20738
|
+
function CR(e, t, n) {
|
|
20711
20739
|
const r = n.get(e);
|
|
20712
20740
|
if (r === void 0) return;
|
|
20713
20741
|
let o = 0;
|
|
@@ -20758,7 +20786,7 @@ function jg(e) {
|
|
|
20758
20786
|
const t = e.apidata;
|
|
20759
20787
|
return En(t) && Object.keys(t).length > 0;
|
|
20760
20788
|
}
|
|
20761
|
-
function
|
|
20789
|
+
function ER(e) {
|
|
20762
20790
|
if (typeof e.metadata == "string" && e.metadata.trim() !== "" || typeof e.metadata == "object" && e.metadata !== null && !Array.isArray(e.metadata) && Object.keys(e.metadata).length > 0 || jg(e)) return !0;
|
|
20763
20791
|
const t = e.fieldKey, n = e.fieldType, r = e.name, o = e.type;
|
|
20764
20792
|
return !!(t && (!r || String(r).trim() === "") || n && (!o || String(o).trim() === "") || t && r && t !== r || n && o && n !== o || !r && e.key && typeof e.key == "string");
|
|
@@ -20780,7 +20808,7 @@ const zg = [
|
|
|
20780
20808
|
"minWidth",
|
|
20781
20809
|
"minHeight"
|
|
20782
20810
|
];
|
|
20783
|
-
function
|
|
20811
|
+
function NR(e, t) {
|
|
20784
20812
|
const n = e.appearance, r = En(n) && Object.keys(n).length > 0 ? Fo(n) : {}, o = no(t.appearance), i = { ...r };
|
|
20785
20813
|
for (const [s, a] of Object.entries(o))
|
|
20786
20814
|
s !== "heightPercent" && i[s] === void 0 && (i[s] = Fo(a));
|
|
@@ -20788,7 +20816,7 @@ function wR(e, t) {
|
|
|
20788
20816
|
i[s] === void 0 && t[s] !== void 0 && (i[s] = t[s]);
|
|
20789
20817
|
return delete i.heightPercent, Object.keys(i).length > 0 ? i : void 0;
|
|
20790
20818
|
}
|
|
20791
|
-
function
|
|
20819
|
+
function _R(e, t) {
|
|
20792
20820
|
const n = no(e.position), r = ma(e.metadata), o = no(e.layout), i = typeof n.order == "number" && !Number.isNaN(n.order) ? n.order : typeof e.positionOrder == "number" ? e.positionOrder : typeof e.order == "number" ? e.order : typeof e.positionRow == "number" ? e.positionRow : t, s = typeof n.column == "number" && !Number.isNaN(n.column) ? n.column : typeof e.positionColumn == "number" ? e.positionColumn : 1, a = typeof n.columnSpan == "number" && !Number.isNaN(n.columnSpan) ? n.columnSpan : typeof e.positionWidth == "number" ? e.positionWidth : 1, c = typeof n.rowSpan == "number" && !Number.isNaN(n.rowSpan) ? n.rowSpan : typeof e.positionRowSpan == "number" ? e.positionRowSpan : 1, u = {
|
|
20793
20821
|
order: i,
|
|
20794
20822
|
column: s,
|
|
@@ -20800,18 +20828,18 @@ function SR(e, t) {
|
|
|
20800
20828
|
}), p = si(n) ?? si(o) ?? (r.stackDirection === "horizontal" || o.stackDirection === "horizontal" ? "row" : r.stackDirection === "vertical" || o.stackDirection === "vertical" ? "stack" : void 0);
|
|
20801
20829
|
return typeof l == "string" && (u.cellGroupId = l), typeof d == "number" && (u.cellSlot = d), (p === "row" || p === "stack") && (u.sharedCellLayout = p), u;
|
|
20802
20830
|
}
|
|
20803
|
-
function
|
|
20804
|
-
const n = e, r = ma(n.metadata), o = no(n.apidata), i = no(n.properties), s = $g({}, r, o, i), a = (n.name != null && String(n.name).trim() !== "" ? n.name : void 0) ?? (typeof n.fieldKey == "string" ? n.fieldKey : void 0) ?? (typeof n.key == "string" ? n.key : void 0), c = (n.type != null && String(n.type).trim() !== "" ? n.type : void 0) ?? (typeof n.fieldType == "string" ? n.fieldType : void 0), u =
|
|
20831
|
+
function TR(e, t) {
|
|
20832
|
+
const n = e, r = ma(n.metadata), o = no(n.apidata), i = no(n.properties), s = $g({}, r, o, i), a = (n.name != null && String(n.name).trim() !== "" ? n.name : void 0) ?? (typeof n.fieldKey == "string" ? n.fieldKey : void 0) ?? (typeof n.key == "string" ? n.key : void 0), c = (n.type != null && String(n.type).trim() !== "" ? n.type : void 0) ?? (typeof n.fieldType == "string" ? n.fieldType : void 0), u = NR(n, r), l = _R(n, t), d = { ...n };
|
|
20805
20833
|
return d.properties = s, a !== void 0 && (d.name = a), c !== void 0 && (d.type = c), u !== void 0 ? d.appearance = u : (!En(n.appearance) || Object.keys(n.appearance).length === 0) && delete d.appearance, d.position = l, En(d.appearance) && delete d.appearance.heightPercent, d;
|
|
20806
20834
|
}
|
|
20807
|
-
function
|
|
20835
|
+
function RR(e, t) {
|
|
20808
20836
|
if (!e || typeof e != "object") return !0;
|
|
20809
20837
|
const n = e, r = ma(n.metadata), o = Object.keys(r).length === 0 && !(typeof n.metadata == "string" && n.metadata.trim() !== ""), i = !jg(n);
|
|
20810
|
-
if (
|
|
20838
|
+
if (ER(n) || !o || !i) return !1;
|
|
20811
20839
|
const s = n.position;
|
|
20812
|
-
return !(!(En(s) && typeof s.order == "number" && !Number.isNaN(s.order)) && (typeof n.positionRow == "number" || typeof n.positionColumn == "number" || typeof n.positionWidth == "number" || typeof n.positionRowSpan == "number" || typeof n.positionOrder == "number") || En(r.appearance) || zg.some((u) => r[u] !== void 0 && (n.appearance == null || En(n.appearance) && n.appearance[u] === void 0)) ||
|
|
20840
|
+
return !(!(En(s) && typeof s.order == "number" && !Number.isNaN(s.order)) && (typeof n.positionRow == "number" || typeof n.positionColumn == "number" || typeof n.positionWidth == "number" || typeof n.positionRowSpan == "number" || typeof n.positionOrder == "number") || En(r.appearance) || zg.some((u) => r[u] !== void 0 && (n.appearance == null || En(n.appearance) && n.appearance[u] === void 0)) || kR(n));
|
|
20813
20841
|
}
|
|
20814
|
-
function
|
|
20842
|
+
function kR(e) {
|
|
20815
20843
|
const t = no(e.position), n = no(e.layout), r = ma(e.metadata);
|
|
20816
20844
|
return (typeof e.cellSlotIndex == "number" || typeof t.stackSlot == "number" || typeof t.cellSlot == "number" || typeof t.cellSlotIndex == "number" || typeof r.stackSlot == "number" || typeof n.stackSlot == "number") && typeof t.cellSlot != "number" || (t.stackDirection === "horizontal" || t.stackDirection === "vertical" || r.stackDirection === "horizontal" || r.stackDirection === "vertical" || n.stackDirection === "horizontal" || n.stackDirection === "vertical") && t.sharedCellLayout !== "row" && t.sharedCellLayout !== "stack";
|
|
20817
20845
|
}
|
|
@@ -20823,17 +20851,17 @@ function Uc(e) {
|
|
|
20823
20851
|
return e;
|
|
20824
20852
|
let n = !1;
|
|
20825
20853
|
const r = t.map((o, i) => {
|
|
20826
|
-
if (
|
|
20854
|
+
if (RR(o))
|
|
20827
20855
|
return o;
|
|
20828
|
-
const s =
|
|
20856
|
+
const s = TR(o, i);
|
|
20829
20857
|
return s !== o && (n = !0), s;
|
|
20830
20858
|
});
|
|
20831
20859
|
return n ? { ...e, fields: r } : e;
|
|
20832
20860
|
}
|
|
20833
|
-
function
|
|
20861
|
+
function yP(e) {
|
|
20834
20862
|
return Uc(e);
|
|
20835
20863
|
}
|
|
20836
|
-
const
|
|
20864
|
+
const FR = new Set(
|
|
20837
20865
|
[
|
|
20838
20866
|
"PENDING_PAYMENT",
|
|
20839
20867
|
"PAYMENT_PENDING",
|
|
@@ -20847,18 +20875,18 @@ const ER = new Set(
|
|
|
20847
20875
|
"PARTIALLY_PAID"
|
|
20848
20876
|
].map((e) => e.toUpperCase())
|
|
20849
20877
|
);
|
|
20850
|
-
function
|
|
20878
|
+
function rl(e) {
|
|
20851
20879
|
return typeof e == "string" && e.trim() !== "";
|
|
20852
20880
|
}
|
|
20853
20881
|
function Bl(e) {
|
|
20854
20882
|
if (e == null || typeof e != "object" || Array.isArray(e))
|
|
20855
20883
|
return !1;
|
|
20856
20884
|
const t = e;
|
|
20857
|
-
if (t.payment_type != null && t.payment_type !== "" || t.payment_mode != null && t.payment_mode !== "" || t.transaction_id != null && String(t.transaction_id).trim() !== "" || t.payment_status != null && String(t.payment_status).trim() !== "" || typeof t.amount == "number" ||
|
|
20885
|
+
if (t.payment_type != null && t.payment_type !== "" || t.payment_mode != null && t.payment_mode !== "" || t.transaction_id != null && String(t.transaction_id).trim() !== "" || t.payment_status != null && String(t.payment_status).trim() !== "" || typeof t.amount == "number" || rl(t.amount) || typeof t.total_amount == "number" || rl(t.total_amount) || rl(t.currency) || t.gateway != null && String(t.gateway).trim() !== "" || t.razorpay_order_id != null && String(t.razorpay_order_id).trim() !== "" || t.stripe_payment_intent != null && String(t.stripe_payment_intent).trim() !== "") return !0;
|
|
20858
20886
|
const n = t.status;
|
|
20859
|
-
return !!(typeof n == "string" &&
|
|
20887
|
+
return !!(typeof n == "string" && FR.has(n.trim().toUpperCase()));
|
|
20860
20888
|
}
|
|
20861
|
-
function
|
|
20889
|
+
function PR(e) {
|
|
20862
20890
|
const t = et(e, "data.items");
|
|
20863
20891
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
20864
20892
|
const n = t[0];
|
|
@@ -20867,37 +20895,37 @@ function NR(e) {
|
|
|
20867
20895
|
if (!(r.id === void 0 || r.id === null || r.id === ""))
|
|
20868
20896
|
return { item: r, id: r.id };
|
|
20869
20897
|
}
|
|
20870
|
-
function
|
|
20871
|
-
const n =
|
|
20898
|
+
function OR(e, t) {
|
|
20899
|
+
const n = PR(e);
|
|
20872
20900
|
if (!n) return;
|
|
20873
20901
|
const r = et(e, "data"), o = r != null && typeof r == "object" && !Array.isArray(r) ? r : void 0;
|
|
20874
20902
|
if (t?.treatFirstItemIdAsPaymentId === !0 || Bl(n.item) || o != null && Bl(o))
|
|
20875
20903
|
return n.id;
|
|
20876
20904
|
}
|
|
20877
|
-
function
|
|
20905
|
+
function IR(e) {
|
|
20878
20906
|
const t = e.properties, n = e.metadata;
|
|
20879
20907
|
return [t?.uploadApiEndpoint, t?.apiEndpoint, n?.uploadApiEndpoint, n?.apiEndpoint].filter(
|
|
20880
20908
|
(o) => typeof o == "string" && o.length > 0
|
|
20881
20909
|
);
|
|
20882
20910
|
}
|
|
20883
|
-
function
|
|
20884
|
-
return
|
|
20911
|
+
function MR(e) {
|
|
20912
|
+
return IR(e).some((t) => t.toLowerCase().includes("payment"));
|
|
20885
20913
|
}
|
|
20886
|
-
function
|
|
20914
|
+
function LR(e) {
|
|
20887
20915
|
const t = e.properties, n = e.metadata;
|
|
20888
20916
|
return !!(t?.mergeSuccessDataIdAsPaymentId || n?.mergeSuccessDataIdAsPaymentId);
|
|
20889
20917
|
}
|
|
20890
|
-
function
|
|
20918
|
+
function DR(e, t) {
|
|
20891
20919
|
if (t?.type !== "button" || !ti(e))
|
|
20892
20920
|
return;
|
|
20893
20921
|
const n = et(e, "data.id");
|
|
20894
20922
|
if (n == null || String(n).trim() === "")
|
|
20895
20923
|
return;
|
|
20896
20924
|
const r = et(e, "data");
|
|
20897
|
-
if (
|
|
20925
|
+
if (LR(t) || r != null && typeof r == "object" && !Array.isArray(r) && Bl(r) || MR(t))
|
|
20898
20926
|
return n;
|
|
20899
20927
|
}
|
|
20900
|
-
const
|
|
20928
|
+
const BR = /* @__PURE__ */ new Set([
|
|
20901
20929
|
"section",
|
|
20902
20930
|
"group",
|
|
20903
20931
|
"columns",
|
|
@@ -20909,7 +20937,7 @@ const PR = /* @__PURE__ */ new Set([
|
|
|
20909
20937
|
"textLabel",
|
|
20910
20938
|
"customizeSections"
|
|
20911
20939
|
]);
|
|
20912
|
-
function
|
|
20940
|
+
function $R(e, t) {
|
|
20913
20941
|
if (!e.length || !t?.length) return [];
|
|
20914
20942
|
const n = new Map(t.map((o) => [o.id, o])), r = [];
|
|
20915
20943
|
for (const o of e) {
|
|
@@ -20920,8 +20948,8 @@ function OR(e, t) {
|
|
|
20920
20948
|
}
|
|
20921
20949
|
return r;
|
|
20922
20950
|
}
|
|
20923
|
-
function
|
|
20924
|
-
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o =
|
|
20951
|
+
function jR(e, t) {
|
|
20952
|
+
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o = $R(
|
|
20925
20953
|
Array.isArray(n?.linkedSectionIds) ? n.linkedSectionIds : [],
|
|
20926
20954
|
t
|
|
20927
20955
|
), i = /* @__PURE__ */ new Set(), s = [];
|
|
@@ -20935,7 +20963,7 @@ function Ug(e, t) {
|
|
|
20935
20963
|
const o = new Map(t.map((i) => [i.id, i]));
|
|
20936
20964
|
return r.map((i) => o.get(i)).filter((i) => !!i);
|
|
20937
20965
|
}
|
|
20938
|
-
function
|
|
20966
|
+
function zR(e, t) {
|
|
20939
20967
|
return Ug(e, t).find((n) => n.heading?.enabled);
|
|
20940
20968
|
}
|
|
20941
20969
|
function Vg(e, t) {
|
|
@@ -20943,15 +20971,15 @@ function Vg(e, t) {
|
|
|
20943
20971
|
return (e.mode ?? "increment") === "fixed" ? n : n.replace(/\{n\}/g, String(t + 1));
|
|
20944
20972
|
}
|
|
20945
20973
|
function Qd(e, t, n, r) {
|
|
20946
|
-
const o =
|
|
20974
|
+
const o = jR(e, n);
|
|
20947
20975
|
if (o.length === 0) return [];
|
|
20948
20976
|
const i = new Set(o);
|
|
20949
20977
|
return t.filter((s) => {
|
|
20950
20978
|
const a = r(s);
|
|
20951
|
-
return !a || s.id === e.id ||
|
|
20979
|
+
return !a || s.id === e.id || BR.has(s.type) ? !1 : i.has(a);
|
|
20952
20980
|
});
|
|
20953
20981
|
}
|
|
20954
|
-
function
|
|
20982
|
+
function UR(e, t, n) {
|
|
20955
20983
|
if (e.type !== "sectionHeading" || !t?.length) return;
|
|
20956
20984
|
const r = n(e);
|
|
20957
20985
|
if (r)
|
|
@@ -20968,7 +20996,7 @@ function Vc(e) {
|
|
|
20968
20996
|
return i - s;
|
|
20969
20997
|
});
|
|
20970
20998
|
}
|
|
20971
|
-
function
|
|
20999
|
+
function VR(e, t, n) {
|
|
20972
21000
|
if (!e?.length) return [];
|
|
20973
21001
|
const r = e.filter((s) => s.showBorder === !0);
|
|
20974
21002
|
if (r.length === 0) return [];
|
|
@@ -20994,14 +21022,14 @@ function Hg(e, t, n) {
|
|
|
20994
21022
|
const r = t.heading;
|
|
20995
21023
|
return !r?.enabled || !r.headingFieldName ? !1 : n(e) === r.headingFieldName;
|
|
20996
21024
|
}
|
|
20997
|
-
function
|
|
21025
|
+
function HR(e, t) {
|
|
20998
21026
|
const n = typeof e.position?.order == "number" ? e.position.order : 0, r = (e.position?.column ?? 1) - 1, o = ai(e), i = Rf(e, t);
|
|
20999
21027
|
return { row: n, col: r, rowEnd: n + o - 1, colEnd: r + i - 1 };
|
|
21000
21028
|
}
|
|
21001
21029
|
function Hc(e, t) {
|
|
21002
21030
|
let n = 1 / 0, r = -1 / 0, o = 1 / 0, i = -1 / 0;
|
|
21003
21031
|
for (const s of e) {
|
|
21004
|
-
const { row: a, col: c, rowEnd: u, colEnd: l } =
|
|
21032
|
+
const { row: a, col: c, rowEnd: u, colEnd: l } = HR(s, t);
|
|
21005
21033
|
n = Math.min(n, a), r = Math.max(r, u), o = Math.min(o, c), i = Math.max(i, l);
|
|
21006
21034
|
}
|
|
21007
21035
|
return Number.isFinite(n) ? {
|
|
@@ -21013,7 +21041,7 @@ function Hc(e, t) {
|
|
|
21013
21041
|
colSpan: i - o + 1
|
|
21014
21042
|
} : null;
|
|
21015
21043
|
}
|
|
21016
|
-
function
|
|
21044
|
+
function WR(e, t, n, r) {
|
|
21017
21045
|
const o = e.map((l) => t.find((d) => r(d) === l)).filter((l) => !!l && typeof l.position?.order == "number");
|
|
21018
21046
|
if (o.length === 0) return null;
|
|
21019
21047
|
const i = Hc(o, n);
|
|
@@ -21032,10 +21060,10 @@ function $R(e, t, n, r) {
|
|
|
21032
21060
|
blockHeight: u
|
|
21033
21061
|
};
|
|
21034
21062
|
}
|
|
21035
|
-
function
|
|
21063
|
+
function GR(e, t) {
|
|
21036
21064
|
return e.maxRow + 1 + t * e.blockHeight;
|
|
21037
21065
|
}
|
|
21038
|
-
function
|
|
21066
|
+
function KR(e, t, n, r) {
|
|
21039
21067
|
const o = /* @__PURE__ */ new Map();
|
|
21040
21068
|
for (const a of t) {
|
|
21041
21069
|
const c = n(a);
|
|
@@ -21079,7 +21107,7 @@ function zR(e, t, n, r) {
|
|
|
21079
21107
|
}
|
|
21080
21108
|
return { anchorsByOrigin: i, coveredCells: s };
|
|
21081
21109
|
}
|
|
21082
|
-
function
|
|
21110
|
+
function qR(e, t, n, r, o, i, s) {
|
|
21083
21111
|
const a = new Set(s), c = /* @__PURE__ */ new Map();
|
|
21084
21112
|
for (const u of e) {
|
|
21085
21113
|
const l = Wg(
|
|
@@ -21114,19 +21142,19 @@ function UR(e, t, n, r, o, i, s) {
|
|
|
21114
21142
|
}
|
|
21115
21143
|
return { anchorsByOrigin: c, coveredCells: a };
|
|
21116
21144
|
}
|
|
21117
|
-
function
|
|
21145
|
+
function YR(e, t, n, r) {
|
|
21118
21146
|
const o = `${e}-${t}`;
|
|
21119
21147
|
return n.has(o) ? !r.get(o) : !1;
|
|
21120
21148
|
}
|
|
21121
|
-
function
|
|
21149
|
+
function XR(e, t, n) {
|
|
21122
21150
|
for (const r of n.values())
|
|
21123
21151
|
if (e >= r.anchorRow && e < r.anchorRow + r.rowSpan && t >= r.anchorCol && t < r.anchorCol + r.colSpan)
|
|
21124
21152
|
return r;
|
|
21125
21153
|
}
|
|
21126
|
-
function
|
|
21154
|
+
function JR(e, t, n, r) {
|
|
21127
21155
|
return !(!r || n.run.section.collapsible !== !0 || e === n.anchorRow && t === n.anchorCol);
|
|
21128
21156
|
}
|
|
21129
|
-
function
|
|
21157
|
+
function QR(e, t, n) {
|
|
21130
21158
|
const r = /* @__PURE__ */ new Set();
|
|
21131
21159
|
for (const o of e.values())
|
|
21132
21160
|
if (t(o))
|
|
@@ -21134,14 +21162,14 @@ function GR(e, t, n) {
|
|
|
21134
21162
|
n(i, o) || r.add(i);
|
|
21135
21163
|
return r;
|
|
21136
21164
|
}
|
|
21137
|
-
function
|
|
21165
|
+
function ZR(e, t, n) {
|
|
21138
21166
|
const r = (o) => n.has(o) ? "minmax(0, auto)" : `minmax(${t}, auto)`;
|
|
21139
21167
|
return Array.from({ length: e }, (o, i) => r(i)).join(" ");
|
|
21140
21168
|
}
|
|
21141
|
-
function
|
|
21169
|
+
function ek(e, t) {
|
|
21142
21170
|
return new Map([...e, ...t]);
|
|
21143
21171
|
}
|
|
21144
|
-
function
|
|
21172
|
+
function tk(e, t, n) {
|
|
21145
21173
|
if (t.length === 0)
|
|
21146
21174
|
return e.map((s) => ({ kind: "field", field: s }));
|
|
21147
21175
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -21178,8 +21206,8 @@ function Wg(e, t) {
|
|
|
21178
21206
|
return { section: r, fieldNames: o };
|
|
21179
21207
|
}
|
|
21180
21208
|
}
|
|
21181
|
-
const
|
|
21182
|
-
class
|
|
21209
|
+
const nk = 2 * 6e4, Zd = 50;
|
|
21210
|
+
class rk {
|
|
21183
21211
|
map = /* @__PURE__ */ new Map();
|
|
21184
21212
|
ttlMs;
|
|
21185
21213
|
constructor(t) {
|
|
@@ -21206,14 +21234,14 @@ class JR {
|
|
|
21206
21234
|
t.sort((r, o) => r[1].storedAtMs - o[1].storedAtMs), t.slice(0, Math.max(0, this.map.size - Zd)).forEach(([r]) => this.map.delete(r));
|
|
21207
21235
|
}
|
|
21208
21236
|
}
|
|
21209
|
-
function
|
|
21237
|
+
function ok(e) {
|
|
21210
21238
|
return (e ?? "").trim() || "default";
|
|
21211
21239
|
}
|
|
21212
21240
|
function Gg(e) {
|
|
21213
|
-
const t =
|
|
21241
|
+
const t = ok(e.scope), n = String(e.formId ?? "").trim(), r = e.version === void 0 || e.version === null ? "latest" : String(e.version).trim();
|
|
21214
21242
|
return `form-render:${t}:${n}:${r}`;
|
|
21215
21243
|
}
|
|
21216
|
-
const Kg = new
|
|
21244
|
+
const Kg = new rk(nk);
|
|
21217
21245
|
function qg(e) {
|
|
21218
21246
|
const t = Gg(e), n = Kg.get(t);
|
|
21219
21247
|
return n ? { value: n.value, isStale: n.isStale } : null;
|
|
@@ -21446,7 +21474,7 @@ const Xg = ({
|
|
|
21446
21474
|
const V = t;
|
|
21447
21475
|
_ || H(!0);
|
|
21448
21476
|
try {
|
|
21449
|
-
const j = await
|
|
21477
|
+
const j = await pR.getForRendering(t), ee = ss(
|
|
21450
21478
|
j.form,
|
|
21451
21479
|
j.fields,
|
|
21452
21480
|
j.layout,
|
|
@@ -21473,7 +21501,7 @@ const Xg = ({
|
|
|
21473
21501
|
[q.config?.prepopulateApi?.fieldMapping]
|
|
21474
21502
|
), yt = Z(
|
|
21475
21503
|
async (_) => {
|
|
21476
|
-
const V = q?.fields?.length ?
|
|
21504
|
+
const V = q?.fields?.length ? Rl(_, q.fields) : _, j = ug(
|
|
21477
21505
|
V,
|
|
21478
21506
|
q.config?.sections,
|
|
21479
21507
|
q.config?.submitPayload
|
|
@@ -21621,7 +21649,7 @@ const Xg = ({
|
|
|
21621
21649
|
const gt = se.slice(0, Ye), nt = se.slice(Ye + 1), vt = q.fields.find((Ke) => (Ke.name || Ke.key) === gt)?.properties;
|
|
21622
21650
|
if (vt?.rowSlots?.length) {
|
|
21623
21651
|
const Ke = nt.startsWith("__block__") ? nt.slice(9) : nt, Pt = be[gt] ?? Ot.getState().values[gt];
|
|
21624
|
-
Array.isArray(ge) ? be[gt] =
|
|
21652
|
+
Array.isArray(ge) ? be[gt] = H_(vt, Ke, ge, Pt) : ge != null && (be[gt] = Ka(vt, ge, Pt));
|
|
21625
21653
|
}
|
|
21626
21654
|
continue;
|
|
21627
21655
|
}
|
|
@@ -21637,10 +21665,10 @@ const Xg = ({
|
|
|
21637
21665
|
const fe = nt.rowSlots.find((vt) => vt.kind === "dynamic");
|
|
21638
21666
|
if (fe && fe.kind === "dynamic") {
|
|
21639
21667
|
const vt = fe.block.apiArrayPath ?? "items";
|
|
21640
|
-
be[se] =
|
|
21668
|
+
be[se] = Ka(nt, { [vt]: ge });
|
|
21641
21669
|
}
|
|
21642
21670
|
} else
|
|
21643
|
-
be[se] =
|
|
21671
|
+
be[se] = Ka(nt, ge);
|
|
21644
21672
|
continue;
|
|
21645
21673
|
}
|
|
21646
21674
|
}
|
|
@@ -21765,7 +21793,7 @@ const Xg = ({
|
|
|
21765
21793
|
const Me = et(He, "data.user_id"), ge = et(He, "data.items"), Ye = et(He, "data");
|
|
21766
21794
|
let pt = Array.isArray(ge) && ge.length > 0 && ge[0] != null && typeof ge[0] == "object" && ge[0].id ? ge[0].id : void 0;
|
|
21767
21795
|
pt === void 0 && Array.isArray(Ye) && Ye.length > 0 && Ye[0] != null && typeof Ye[0] == "object" && Ye[0].id && (pt = Ye[0].id), pt === void 0 && (pt = et(He, "data.0.id"));
|
|
21768
|
-
const gt =
|
|
21796
|
+
const gt = OR(He, {
|
|
21769
21797
|
treatFirstItemIdAsPaymentId: _?.treatFirstItemIdAsPaymentId === !0
|
|
21770
21798
|
}), nt = et(He, "data.id"), fe = et(He, "data.batch_id"), vt = et(He, "data.program_id"), Ke = {};
|
|
21771
21799
|
Me != null && (Ke.context_user_id = Me), pt != null && pt !== "" && (Ke.documentId = pt), nt != null && String(nt).trim() !== "" && (p?.id === void 0 || p?.id === null) && (Ke.id = nt), fe != null && String(fe).trim() !== "" && ((p?.admission_batch_id === void 0 || p?.admission_batch_id === null) && (Ke.admission_batch_id = fe), (p?.batch_id === void 0 || p?.batch_id === null) && (Ke.batch_id = fe)), vt != null && String(vt).trim() !== "" && (p?.program_id === void 0 || p?.program_id === null) && (Ke.program_id = vt), gt != null && String(gt).trim() !== "" && (p?.payment_id === void 0 || p?.payment_id === null) && (Ke.payment_id = gt), Object.keys(Ke).length > 0 && z((Pt) => {
|
|
@@ -21774,7 +21802,7 @@ const Xg = ({
|
|
|
21774
21802
|
}), Oe(He);
|
|
21775
21803
|
}
|
|
21776
21804
|
} catch (ce) {
|
|
21777
|
-
Q ||
|
|
21805
|
+
Q || _l(ce, "Prepopulate request failed.", qo);
|
|
21778
21806
|
} finally {
|
|
21779
21807
|
M(!1);
|
|
21780
21808
|
}
|
|
@@ -21819,7 +21847,7 @@ const Xg = ({
|
|
|
21819
21847
|
try {
|
|
21820
21848
|
const ee = Ot.getState().errors;
|
|
21821
21849
|
Kt.error(
|
|
21822
|
-
|
|
21850
|
+
Tl(ee, q.fields) || "Please fix the errors before continuing."
|
|
21823
21851
|
), jo(kt.map((Q) => Q.name || Q.key || Q.id).filter(Boolean));
|
|
21824
21852
|
} catch {
|
|
21825
21853
|
Kt.error("Please fix the errors before continuing.");
|
|
@@ -21831,7 +21859,7 @@ const Xg = ({
|
|
|
21831
21859
|
try {
|
|
21832
21860
|
const j = Ot.getState().errors;
|
|
21833
21861
|
Kt.error(
|
|
21834
|
-
|
|
21862
|
+
Tl(j, q.fields) || "Submission failed. Please check the form."
|
|
21835
21863
|
), jo(kt.map((ee) => ee.name || ee.key || ee.id).filter(Boolean));
|
|
21836
21864
|
} catch {
|
|
21837
21865
|
Kt.error("Submission failed. Please check the form.");
|
|
@@ -21843,7 +21871,7 @@ const Xg = ({
|
|
|
21843
21871
|
(_, V) => {
|
|
21844
21872
|
const j = q.fields.find(
|
|
21845
21873
|
(Q) => Q.type === "button" && (Q.name === _ || Q.key === _)
|
|
21846
|
-
), ee =
|
|
21874
|
+
), ee = DR(V, j);
|
|
21847
21875
|
ee != null && String(ee).trim() !== "" && (p?.payment_id === void 0 || p?.payment_id === null) && z((Q) => {
|
|
21848
21876
|
const ce = { ...Q, payment_id: ee };
|
|
21849
21877
|
return h?.(ce), ce;
|
|
@@ -21984,7 +22012,7 @@ const Xg = ({
|
|
|
21984
22012
|
V = { ..._, properties: { ..._.properties, columns: Q } };
|
|
21985
22013
|
}
|
|
21986
22014
|
}
|
|
21987
|
-
const j =
|
|
22015
|
+
const j = UR(V, zt, tt);
|
|
21988
22016
|
return j ? { ...V, label: Vg(j, 0) } : V;
|
|
21989
22017
|
},
|
|
21990
22018
|
[Ct, zt, tt]
|
|
@@ -22105,7 +22133,7 @@ const Xg = ({
|
|
|
22105
22133
|
return ot !== me ? ot - me : (Ce.position?.column ?? 1) - (We.position?.column ?? 1);
|
|
22106
22134
|
});
|
|
22107
22135
|
if (Ne.length === 0) return;
|
|
22108
|
-
const Te = Ug(j, zt), Be = Te[0]?.fieldNames?.length ? Te[0].fieldNames : Ne.map((Ce) => tt(Ce)).filter(Boolean), lt =
|
|
22136
|
+
const Te = Ug(j, zt), Be = Te[0]?.fieldNames?.length ? Te[0].fieldNames : Ne.map((Ce) => tt(Ce)).filter(Boolean), lt = WR(
|
|
22109
22137
|
Be,
|
|
22110
22138
|
Ii,
|
|
22111
22139
|
Y,
|
|
@@ -22148,7 +22176,7 @@ const Xg = ({
|
|
|
22148
22176
|
return vr.forEach((j) => {
|
|
22149
22177
|
const { addMoreFieldName: ee, blockIds: Q, linkedFields: ce, blockHeight: Ne, templateBounds: Te } = j, Be = Math.min(...ce.map((De) => De.position?.order ?? 0)), Wt = q.fields.find((De) => tt(De) === ee && De.type === "addmore")?.properties;
|
|
22150
22178
|
Q.forEach((De, He) => {
|
|
22151
|
-
const Se = {}, Ce = {}, We = {}, ot = Te ?
|
|
22179
|
+
const Se = {}, Ce = {}, We = {}, ot = Te ? GR(Te, He) : j.baseOrder + 1 + He * Ne, me = ie[`${ee}__${De}`];
|
|
22152
22180
|
ce.forEach((be) => {
|
|
22153
22181
|
const ft = tt(be), Gt = Kn(ft, ee, De), Ut = (be.position?.order ?? Be) - Be;
|
|
22154
22182
|
if (Se[Gt] = ft, Ce[Gt] = Ie[Gt], !(Wt?.linkedFieldAllowDuplicate?.[ft] ?? !0) && (be.type === "select" || be.type === "radio" || be.type === "multiselect")) {
|
|
@@ -22188,11 +22216,11 @@ const Xg = ({
|
|
|
22188
22216
|
const Ne = ko(_.position) ?? 0, Te = ko(V.position) ?? 0;
|
|
22189
22217
|
return Ne !== Te ? Ne - Te : String(_.id).localeCompare(String(V.id));
|
|
22190
22218
|
}), [Mi, ao.clonedFields]), lo = pe(
|
|
22191
|
-
() =>
|
|
22219
|
+
() => wR(Vo.filter((_) => !_.parentId), Pn),
|
|
22192
22220
|
[Vo, Pn]
|
|
22193
22221
|
), ba = Z(
|
|
22194
22222
|
(_, V) => lo.some(
|
|
22195
|
-
(j) =>
|
|
22223
|
+
(j) => SR(_, V, j, Y)
|
|
22196
22224
|
),
|
|
22197
22225
|
[lo, Y]
|
|
22198
22226
|
);
|
|
@@ -22200,14 +22228,14 @@ const Xg = ({
|
|
|
22200
22228
|
...lo.map((_) => (_[0]?.position?.order ?? 0) + Zo(_, Y).rowSpan)
|
|
22201
22229
|
);
|
|
22202
22230
|
const Di = pe(
|
|
22203
|
-
() =>
|
|
22231
|
+
() => VR(
|
|
22204
22232
|
zt,
|
|
22205
22233
|
Vc(kt.filter((_) => !_.parentId)),
|
|
22206
22234
|
tt
|
|
22207
22235
|
),
|
|
22208
22236
|
[zt, kt, tt]
|
|
22209
22237
|
), { anchorsByOrigin: qc, coveredCells: Yc } = pe(
|
|
22210
|
-
() =>
|
|
22238
|
+
() => KR(
|
|
22211
22239
|
Di,
|
|
22212
22240
|
Mi,
|
|
22213
22241
|
tt,
|
|
@@ -22215,7 +22243,7 @@ const Xg = ({
|
|
|
22215
22243
|
),
|
|
22216
22244
|
[Di, Mi, tt, Y]
|
|
22217
22245
|
), { anchorsByOrigin: Xc, coveredCells: Jc } = pe(
|
|
22218
|
-
() =>
|
|
22246
|
+
() => qR(
|
|
22219
22247
|
vr.map((_) => ({
|
|
22220
22248
|
addMoreFieldName: _.addMoreFieldName,
|
|
22221
22249
|
blockIds: _.blockIds,
|
|
@@ -22239,7 +22267,7 @@ const Xg = ({
|
|
|
22239
22267
|
Yc
|
|
22240
22268
|
]
|
|
22241
22269
|
), pr = pe(
|
|
22242
|
-
() =>
|
|
22270
|
+
() => ek(qc, Xc),
|
|
22243
22271
|
[qc, Xc]
|
|
22244
22272
|
), Qc = pe(
|
|
22245
22273
|
() => Jc,
|
|
@@ -22262,7 +22290,7 @@ const Xg = ({
|
|
|
22262
22290
|
ba
|
|
22263
22291
|
]
|
|
22264
22292
|
), tu = pe(
|
|
22265
|
-
() =>
|
|
22293
|
+
() => QR(
|
|
22266
22294
|
pr,
|
|
22267
22295
|
(_) => {
|
|
22268
22296
|
const V = _.run.section;
|
|
@@ -22281,7 +22309,7 @@ const Xg = ({
|
|
|
22281
22309
|
if (V.renderFields.some((j) => Pn(j)))
|
|
22282
22310
|
for (let j = V.anchorRow; j < V.anchorRow + V.rowSpan; j++)
|
|
22283
22311
|
_.push(j);
|
|
22284
|
-
return
|
|
22312
|
+
return xR(lo, Y, _);
|
|
22285
22313
|
}, [
|
|
22286
22314
|
lo,
|
|
22287
22315
|
Y,
|
|
@@ -22289,14 +22317,14 @@ const Xg = ({
|
|
|
22289
22317
|
pr,
|
|
22290
22318
|
Pn
|
|
22291
22319
|
]), { originalToDisplayRow: Bi, displayRowCount: Ny, sortedOccupiedRows: _y } = pe(() => {
|
|
22292
|
-
const _ =
|
|
22320
|
+
const _ = AR(nu);
|
|
22293
22321
|
return {
|
|
22294
22322
|
originalToDisplayRow: _.originalToDisplay,
|
|
22295
22323
|
displayRowCount: _.displayRowCount,
|
|
22296
22324
|
sortedOccupiedRows: _.sortedOriginalRows
|
|
22297
22325
|
};
|
|
22298
22326
|
}, [nu]), ru = Math.max(Ny, 1), va = Z(
|
|
22299
|
-
(_, V = 1) =>
|
|
22327
|
+
(_, V = 1) => CR(_, V, Bi),
|
|
22300
22328
|
[Bi]
|
|
22301
22329
|
), ou = pe(() => {
|
|
22302
22330
|
const _ = /* @__PURE__ */ new Set();
|
|
@@ -22306,10 +22334,10 @@ const Xg = ({
|
|
|
22306
22334
|
}
|
|
22307
22335
|
return _;
|
|
22308
22336
|
}, [tu, Bi]), Ty = pe(
|
|
22309
|
-
() =>
|
|
22337
|
+
() => ZR(ru, Zc, ou),
|
|
22310
22338
|
[ru, Zc, ou]
|
|
22311
22339
|
), Ry = pe(
|
|
22312
|
-
() =>
|
|
22340
|
+
() => tk(
|
|
22313
22341
|
kt.filter((_) => !_.parentId && Pn(_)),
|
|
22314
22342
|
Di,
|
|
22315
22343
|
tt
|
|
@@ -22321,7 +22349,7 @@ const Xg = ({
|
|
|
22321
22349
|
if (j.length === 0) return null;
|
|
22322
22350
|
const ee = fr(_);
|
|
22323
22351
|
if (ee.length === 0) return null;
|
|
22324
|
-
const Q =
|
|
22352
|
+
const Q = zR(_, zt), ce = ee.map((Be) => tt(Be)).filter(Boolean), Ne = Wg(ce, zt), Te = (Be, lt, Wt, De, He, Se, Ce) => {
|
|
22325
22353
|
const We = tt(Be), ot = Kn(We, V, lt), me = Be.hidden === !0;
|
|
22326
22354
|
if (!(Ct(Be) && (Nn(We) || !me && We))) return null;
|
|
22327
22355
|
const be = {
|
|
@@ -22417,7 +22445,7 @@ const Xg = ({
|
|
|
22417
22445
|
me
|
|
22418
22446
|
] });
|
|
22419
22447
|
return /* @__PURE__ */ f("div", { className: "rounded-md border p-3 space-y-3", children: Ne ? /* @__PURE__ */ f(
|
|
22420
|
-
|
|
22448
|
+
nl,
|
|
22421
22449
|
{
|
|
22422
22450
|
legend: Ne.section.heading?.enabled ? ei(Ne.section, lt + 1) : Ne.section.name,
|
|
22423
22451
|
collapsible: Ne.section.collapsible,
|
|
@@ -22449,7 +22477,7 @@ const Xg = ({
|
|
|
22449
22477
|
"data-form-renderer-layout": R ? "grid" : "stack",
|
|
22450
22478
|
children: /* @__PURE__ */ $(t_, { value: _i, children: [
|
|
22451
22479
|
Tn && q.steps && /* @__PURE__ */ f(
|
|
22452
|
-
|
|
22480
|
+
uR,
|
|
22453
22481
|
{
|
|
22454
22482
|
steps: q.steps,
|
|
22455
22483
|
currentStep: ke,
|
|
@@ -22489,18 +22517,18 @@ const Xg = ({
|
|
|
22489
22517
|
},
|
|
22490
22518
|
`empty-${_}-${j}`
|
|
22491
22519
|
);
|
|
22492
|
-
if (
|
|
22520
|
+
if (YR(
|
|
22493
22521
|
_,
|
|
22494
22522
|
j,
|
|
22495
22523
|
Qc,
|
|
22496
22524
|
pr
|
|
22497
22525
|
)) {
|
|
22498
|
-
const Se =
|
|
22526
|
+
const Se = XR(
|
|
22499
22527
|
_,
|
|
22500
22528
|
j,
|
|
22501
22529
|
pr
|
|
22502
22530
|
);
|
|
22503
|
-
return Se &&
|
|
22531
|
+
return Se && JR(
|
|
22504
22532
|
_,
|
|
22505
22533
|
j,
|
|
22506
22534
|
Se,
|
|
@@ -22561,7 +22589,7 @@ const Xg = ({
|
|
|
22561
22589
|
"data-form-renderer": "grid-cell",
|
|
22562
22590
|
"data-form-renderer-config-section-border-cell": !0,
|
|
22563
22591
|
children: /* @__PURE__ */ f(
|
|
22564
|
-
|
|
22592
|
+
nl,
|
|
22565
22593
|
{
|
|
22566
22594
|
legend: Q.legend,
|
|
22567
22595
|
className: me.collapsible && be ? void 0 : "h-full",
|
|
@@ -22861,7 +22889,7 @@ const Xg = ({
|
|
|
22861
22889
|
);
|
|
22862
22890
|
if (V)
|
|
22863
22891
|
return V.fields[0]?.id !== _.id ? null : /* @__PURE__ */ f(
|
|
22864
|
-
|
|
22892
|
+
nl,
|
|
22865
22893
|
{
|
|
22866
22894
|
legend: ei(V.run.section, 0),
|
|
22867
22895
|
collapsible: V.run.section.collapsible,
|
|
@@ -23115,13 +23143,13 @@ const Xg = ({
|
|
|
23115
23143
|
}
|
|
23116
23144
|
);
|
|
23117
23145
|
};
|
|
23118
|
-
function
|
|
23146
|
+
function ol(e) {
|
|
23119
23147
|
return typeof structuredClone == "function" ? structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
23120
23148
|
}
|
|
23121
23149
|
function tf(e) {
|
|
23122
23150
|
return e !== null && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
23123
23151
|
}
|
|
23124
|
-
function
|
|
23152
|
+
function ik(e, t) {
|
|
23125
23153
|
const n = e.form;
|
|
23126
23154
|
if (!n)
|
|
23127
23155
|
throw new Error("workflowStateToFormSchema requires workflowState.form to be set");
|
|
@@ -23205,7 +23233,7 @@ function ZR(e, t) {
|
|
|
23205
23233
|
key: l.key || l.fieldKey || l.name,
|
|
23206
23234
|
name: l.name || l.fieldKey || l.key
|
|
23207
23235
|
};
|
|
23208
|
-
if (g && (h.hidden = !0), h.id || (h.id = h.key || h.name), h.key || (h.key = h.id || h.name), h.name || (h.name = h.key || h.id), l.isRequired !== void 0 && (h.required = l.isRequired), l.placeholder && (h.placeholder = l.placeholder), l.options && Array.isArray(l.options) && (h.options = l.options), l.apidata && (h.apidata = l.apidata), p.appearance && typeof p.appearance == "object" && !Array.isArray(p.appearance) && Object.keys(p.appearance).length > 0 && (h.appearance =
|
|
23236
|
+
if (g && (h.hidden = !0), h.id || (h.id = h.key || h.name), h.key || (h.key = h.id || h.name), h.name || (h.name = h.key || h.id), l.isRequired !== void 0 && (h.required = l.isRequired), l.placeholder && (h.placeholder = l.placeholder), l.options && Array.isArray(l.options) && (h.options = l.options), l.apidata && (h.apidata = l.apidata), p.appearance && typeof p.appearance == "object" && !Array.isArray(p.appearance) && Object.keys(p.appearance).length > 0 && (h.appearance = ol(p.appearance)), p.ui !== void 0 && (h.ui = ol(p.ui)), p.visibility !== void 0 && (h.visibility = ol(p.visibility)), m.disabled !== void 0 && (h.disabled = m.disabled), m.readOnly !== void 0 && (h.readOnly = m.readOnly), m.hideLabel !== void 0 && (h.hideLabel = m.hideLabel, h.properties || (h.properties = {}), h.properties.hideLabel = m.hideLabel, h.appearance || (h.appearance = {}), h.appearance.hideLabel = m.hideLabel), (l.type === "file" || l.fieldType === "file" || l.type === "camera" || l.fieldType === "camera" || l.type === "photoChoice" || l.fieldType === "photoChoice") && l.validationRules) {
|
|
23209
23237
|
const x = l.validationRules, P = { ...m };
|
|
23210
23238
|
if (x.fileSize !== void 0 && (P.maxSize = x.fileSize), x.fileType && Array.isArray(x.fileType)) {
|
|
23211
23239
|
const T = [];
|
|
@@ -23291,9 +23319,9 @@ function ZR(e, t) {
|
|
|
23291
23319
|
u
|
|
23292
23320
|
);
|
|
23293
23321
|
}
|
|
23294
|
-
var ha = "Tabs", [
|
|
23322
|
+
var ha = "Tabs", [sk] = Mn(ha, [
|
|
23295
23323
|
ca
|
|
23296
|
-
]), Jg = ca(), [
|
|
23324
|
+
]), Jg = ca(), [ak, Wc] = sk(ha), Qg = b.forwardRef(
|
|
23297
23325
|
(e, t) => {
|
|
23298
23326
|
const {
|
|
23299
23327
|
__scopeTabs: n,
|
|
@@ -23311,7 +23339,7 @@ var ha = "Tabs", [ek] = Mn(ha, [
|
|
|
23311
23339
|
caller: ha
|
|
23312
23340
|
});
|
|
23313
23341
|
return /* @__PURE__ */ f(
|
|
23314
|
-
|
|
23342
|
+
ak,
|
|
23315
23343
|
{
|
|
23316
23344
|
scope: n,
|
|
23317
23345
|
baseId: hr(),
|
|
@@ -23433,13 +23461,13 @@ function iy(e, t) {
|
|
|
23433
23461
|
function sy(e, t) {
|
|
23434
23462
|
return `${e}-content-${t}`;
|
|
23435
23463
|
}
|
|
23436
|
-
var
|
|
23464
|
+
var lk = Qg, ck = ey, uk = ny, dk = oy;
|
|
23437
23465
|
function ay({
|
|
23438
23466
|
className: e,
|
|
23439
23467
|
...t
|
|
23440
23468
|
}) {
|
|
23441
23469
|
return /* @__PURE__ */ f(
|
|
23442
|
-
|
|
23470
|
+
lk,
|
|
23443
23471
|
{
|
|
23444
23472
|
"data-slot": "tabs",
|
|
23445
23473
|
className: L("flex flex-col gap-2", e),
|
|
@@ -23452,7 +23480,7 @@ function ly({
|
|
|
23452
23480
|
...t
|
|
23453
23481
|
}) {
|
|
23454
23482
|
return /* @__PURE__ */ f(
|
|
23455
|
-
|
|
23483
|
+
ck,
|
|
23456
23484
|
{
|
|
23457
23485
|
"data-slot": "tabs-list",
|
|
23458
23486
|
className: L(
|
|
@@ -23468,7 +23496,7 @@ function cy({
|
|
|
23468
23496
|
...t
|
|
23469
23497
|
}) {
|
|
23470
23498
|
return /* @__PURE__ */ f(
|
|
23471
|
-
|
|
23499
|
+
uk,
|
|
23472
23500
|
{
|
|
23473
23501
|
"data-slot": "tabs-trigger",
|
|
23474
23502
|
className: L(
|
|
@@ -23484,7 +23512,7 @@ function uy({
|
|
|
23484
23512
|
...t
|
|
23485
23513
|
}) {
|
|
23486
23514
|
return /* @__PURE__ */ f(
|
|
23487
|
-
|
|
23515
|
+
dk,
|
|
23488
23516
|
{
|
|
23489
23517
|
"data-slot": "tabs-content",
|
|
23490
23518
|
className: L("flex-1 outline-none", e),
|
|
@@ -23506,7 +23534,7 @@ function yn({
|
|
|
23506
23534
|
}
|
|
23507
23535
|
);
|
|
23508
23536
|
}
|
|
23509
|
-
function
|
|
23537
|
+
function fk({ className: e = "" }) {
|
|
23510
23538
|
return /* @__PURE__ */ $(
|
|
23511
23539
|
"div",
|
|
23512
23540
|
{
|
|
@@ -23530,7 +23558,7 @@ function sk({ className: e = "" }) {
|
|
|
23530
23558
|
}
|
|
23531
23559
|
);
|
|
23532
23560
|
}
|
|
23533
|
-
function
|
|
23561
|
+
function pk() {
|
|
23534
23562
|
return /* @__PURE__ */ $(
|
|
23535
23563
|
"div",
|
|
23536
23564
|
{
|
|
@@ -23547,18 +23575,18 @@ function ak() {
|
|
|
23547
23575
|
}
|
|
23548
23576
|
);
|
|
23549
23577
|
}
|
|
23550
|
-
const
|
|
23551
|
-
function
|
|
23578
|
+
const mk = 3e4, hk = 10 * 6e4, gk = 9e4, yk = 15 * 6e4;
|
|
23579
|
+
function bk(e) {
|
|
23552
23580
|
return e != null && "on_success" in e && e.on_success != null;
|
|
23553
23581
|
}
|
|
23554
|
-
function
|
|
23582
|
+
function vk(e, t) {
|
|
23555
23583
|
if (!t || typeof t != "object") return e;
|
|
23556
23584
|
let n = e;
|
|
23557
23585
|
return Object.entries(t).forEach(([r, o]) => {
|
|
23558
23586
|
o != null && o !== "" && (n = n.replace(new RegExp(`\\{${r}\\}`, "g"), String(o)));
|
|
23559
23587
|
}), n;
|
|
23560
23588
|
}
|
|
23561
|
-
const
|
|
23589
|
+
const wk = ({
|
|
23562
23590
|
getWorkflowState: e,
|
|
23563
23591
|
moduleId: t,
|
|
23564
23592
|
tenantId: n,
|
|
@@ -23603,8 +23631,8 @@ const mk = ({
|
|
|
23603
23631
|
w[2]
|
|
23604
23632
|
],
|
|
23605
23633
|
queryFn: () => e({ ...S, featureId: a }),
|
|
23606
|
-
staleTime:
|
|
23607
|
-
gcTime:
|
|
23634
|
+
staleTime: mk,
|
|
23635
|
+
gcTime: hk
|
|
23608
23636
|
}), D = z.isPending, ae = z.error ? z.error instanceof Error ? z.error.message : "Failed to load workflow steps" : null;
|
|
23609
23637
|
wt(() => {
|
|
23610
23638
|
const le = z.data;
|
|
@@ -23633,8 +23661,8 @@ const mk = ({
|
|
|
23633
23661
|
],
|
|
23634
23662
|
queryFn: () => e({ ...S, featureId: U }),
|
|
23635
23663
|
enabled: !!U,
|
|
23636
|
-
staleTime:
|
|
23637
|
-
gcTime:
|
|
23664
|
+
staleTime: gk,
|
|
23665
|
+
gcTime: yk,
|
|
23638
23666
|
refetchOnWindowFocus: !0,
|
|
23639
23667
|
refetchOnReconnect: !0
|
|
23640
23668
|
}), X = K.isPending, ue = K.error ? K.error instanceof Error ? K.error.message : "Failed to load form" : null;
|
|
@@ -23653,7 +23681,7 @@ const mk = ({
|
|
|
23653
23681
|
formId: le._id,
|
|
23654
23682
|
version: le.version
|
|
23655
23683
|
});
|
|
23656
|
-
return Xe?.value ? Xe.value :
|
|
23684
|
+
return Xe?.value ? Xe.value : ik(N, r);
|
|
23657
23685
|
}, [N, r, n]), G = pe(() => {
|
|
23658
23686
|
const le = N?.BFF_submit_api;
|
|
23659
23687
|
if (!le?.url) return;
|
|
@@ -23716,10 +23744,10 @@ const mk = ({
|
|
|
23716
23744
|
v.invalidateQueries({ queryKey: ["workflow-steps", t] }), v.invalidateQueries({ queryKey: ["workflow-step", t] });
|
|
23717
23745
|
}, [v, t]), ve = Z(
|
|
23718
23746
|
(le) => {
|
|
23719
|
-
if (
|
|
23747
|
+
if (bk(le)) {
|
|
23720
23748
|
const qe = le.on_success, Xt = qe?.action;
|
|
23721
23749
|
if (Xt === "redirect" && qe?.redirect_url) {
|
|
23722
|
-
const Ze =
|
|
23750
|
+
const Ze = vk(qe.redirect_url.trim(), r);
|
|
23723
23751
|
window.location.href = Ze;
|
|
23724
23752
|
return;
|
|
23725
23753
|
}
|
|
@@ -23780,7 +23808,7 @@ const mk = ({
|
|
|
23780
23808
|
}, []), xe = Z((le) => {
|
|
23781
23809
|
}, []);
|
|
23782
23810
|
if (D)
|
|
23783
|
-
return /* @__PURE__ */ f(
|
|
23811
|
+
return /* @__PURE__ */ f(fk, { className: d });
|
|
23784
23812
|
if (ae)
|
|
23785
23813
|
return /* @__PURE__ */ f(
|
|
23786
23814
|
"div",
|
|
@@ -23817,7 +23845,7 @@ const mk = ({
|
|
|
23817
23845
|
},
|
|
23818
23846
|
le.step_id
|
|
23819
23847
|
)) }),
|
|
23820
|
-
I.map((le) => /* @__PURE__ */ f(uy, { value: le.step_id, className: "mt-4 outline-none", children: le.step_id !== A ? null : X ? /* @__PURE__ */ f(
|
|
23848
|
+
I.map((le) => /* @__PURE__ */ f(uy, { value: le.step_id, className: "mt-4 outline-none", children: le.step_id !== A ? null : X ? /* @__PURE__ */ f(pk, {}) : P ? /* @__PURE__ */ f("div", { className: "rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive", children: P }) : Ae && !N?.form ? /* @__PURE__ */ f(
|
|
23821
23849
|
"div",
|
|
23822
23850
|
{
|
|
23823
23851
|
className: L(
|
|
@@ -23885,10 +23913,10 @@ const mk = ({
|
|
|
23885
23913
|
}
|
|
23886
23914
|
);
|
|
23887
23915
|
};
|
|
23888
|
-
function
|
|
23916
|
+
function bP(e) {
|
|
23889
23917
|
return typeof e == "object" && e !== null && "apiEndpoint" in e;
|
|
23890
23918
|
}
|
|
23891
|
-
function
|
|
23919
|
+
function vP({ formSchema: e }) {
|
|
23892
23920
|
const t = pe(() => {
|
|
23893
23921
|
if (!e)
|
|
23894
23922
|
return [];
|
|
@@ -23980,13 +24008,13 @@ function pP({ formSchema: e }) {
|
|
|
23980
24008
|
isValid: o
|
|
23981
24009
|
};
|
|
23982
24010
|
}
|
|
23983
|
-
function
|
|
24011
|
+
function wP({
|
|
23984
24012
|
field: e,
|
|
23985
24013
|
value: t,
|
|
23986
24014
|
allValues: n,
|
|
23987
24015
|
validateOnChange: r = !1,
|
|
23988
24016
|
validateOnBlur: o = !0,
|
|
23989
|
-
debounceMs: i =
|
|
24017
|
+
debounceMs: i = hR
|
|
23990
24018
|
}) {
|
|
23991
24019
|
const [s, a] = Ee(), [c, u] = Ee(!1), l = At(void 0), d = At(t), p = Z(async () => {
|
|
23992
24020
|
if (!e.validation || e.validation.length === 0) {
|
|
@@ -24031,7 +24059,7 @@ const dy = "—";
|
|
|
24031
24059
|
function en() {
|
|
24032
24060
|
return { kind: "static", value: dy };
|
|
24033
24061
|
}
|
|
24034
|
-
function
|
|
24062
|
+
function Sk() {
|
|
24035
24063
|
return {
|
|
24036
24064
|
currencySymbol: "₹",
|
|
24037
24065
|
emptyDisplay: dy,
|
|
@@ -24138,7 +24166,7 @@ function hk() {
|
|
|
24138
24166
|
]
|
|
24139
24167
|
};
|
|
24140
24168
|
}
|
|
24141
|
-
const
|
|
24169
|
+
const SP = {
|
|
24142
24170
|
// Input Fields
|
|
24143
24171
|
text: {
|
|
24144
24172
|
type: "text",
|
|
@@ -24573,7 +24601,7 @@ const hP = {
|
|
|
24573
24601
|
defaultProps: {
|
|
24574
24602
|
label: "Billing",
|
|
24575
24603
|
name: "billing",
|
|
24576
|
-
properties:
|
|
24604
|
+
properties: Sk()
|
|
24577
24605
|
}
|
|
24578
24606
|
},
|
|
24579
24607
|
aadhaar: {
|
|
@@ -24808,7 +24836,7 @@ function fy(e, t) {
|
|
|
24808
24836
|
showBorder: !1
|
|
24809
24837
|
};
|
|
24810
24838
|
}
|
|
24811
|
-
function
|
|
24839
|
+
function xk(e) {
|
|
24812
24840
|
switch (e ?? "md") {
|
|
24813
24841
|
case "none":
|
|
24814
24842
|
return "";
|
|
@@ -24820,7 +24848,7 @@ function gk(e) {
|
|
|
24820
24848
|
return "p-4 md:p-6";
|
|
24821
24849
|
}
|
|
24822
24850
|
}
|
|
24823
|
-
function
|
|
24851
|
+
function Ak(e, t) {
|
|
24824
24852
|
if (t === "full-bleed") return "w-full max-w-none";
|
|
24825
24853
|
switch (e ?? "full") {
|
|
24826
24854
|
case "full":
|
|
@@ -24847,7 +24875,7 @@ function yk(e, t) {
|
|
|
24847
24875
|
return "w-full max-w-none";
|
|
24848
24876
|
}
|
|
24849
24877
|
}
|
|
24850
|
-
function
|
|
24878
|
+
function Ck(e) {
|
|
24851
24879
|
switch (e) {
|
|
24852
24880
|
case "sidebar-main":
|
|
24853
24881
|
return "grid grid-cols-1 gap-6 lg:grid-cols-[240px_1fr]";
|
|
@@ -24857,17 +24885,17 @@ function bk(e) {
|
|
|
24857
24885
|
return "w-full";
|
|
24858
24886
|
}
|
|
24859
24887
|
}
|
|
24860
|
-
function
|
|
24888
|
+
function Ek(e) {
|
|
24861
24889
|
const t = fy(e.container, e.layout);
|
|
24862
24890
|
return L(
|
|
24863
|
-
|
|
24864
|
-
|
|
24865
|
-
|
|
24891
|
+
Ck(e.layout),
|
|
24892
|
+
Ak(t.maxWidth, e.layout),
|
|
24893
|
+
xk(t.padding),
|
|
24866
24894
|
t.showBorder && "rounded-lg border border-border"
|
|
24867
24895
|
);
|
|
24868
24896
|
}
|
|
24869
24897
|
const Rs = 1;
|
|
24870
|
-
function
|
|
24898
|
+
function Nk() {
|
|
24871
24899
|
return {
|
|
24872
24900
|
version: Rs,
|
|
24873
24901
|
layout: "stack",
|
|
@@ -24884,7 +24912,7 @@ function py(e) {
|
|
|
24884
24912
|
children: Array.isArray(e.children) ? e.children.map(py) : void 0
|
|
24885
24913
|
};
|
|
24886
24914
|
}
|
|
24887
|
-
function
|
|
24915
|
+
function _k(e) {
|
|
24888
24916
|
return {
|
|
24889
24917
|
version: Rs,
|
|
24890
24918
|
layout: e.layout ?? "stack",
|
|
@@ -24899,20 +24927,20 @@ function Sk(e) {
|
|
|
24899
24927
|
navigation: e.navigation
|
|
24900
24928
|
};
|
|
24901
24929
|
}
|
|
24902
|
-
function
|
|
24930
|
+
function Tk(e) {
|
|
24903
24931
|
const t = e;
|
|
24904
|
-
return !t || typeof t != "object" ?
|
|
24932
|
+
return !t || typeof t != "object" ? Nk() : (t.version !== Rs && (t.version = Rs), _k(t));
|
|
24905
24933
|
}
|
|
24906
24934
|
const rf = {};
|
|
24907
24935
|
let my = null;
|
|
24908
|
-
function
|
|
24936
|
+
function xP(e) {
|
|
24909
24937
|
my = e;
|
|
24910
24938
|
}
|
|
24911
|
-
function
|
|
24939
|
+
function Rk() {
|
|
24912
24940
|
return (rf?.VITE_API_BASE_URL?.trim() || rf?.VITE_API_URL?.trim() || "").replace(/\/$/, "");
|
|
24913
24941
|
}
|
|
24914
24942
|
const ga = It.create({
|
|
24915
|
-
baseURL:
|
|
24943
|
+
baseURL: Rk()
|
|
24916
24944
|
});
|
|
24917
24945
|
ga.interceptors.request.use((e) => {
|
|
24918
24946
|
const t = Zr();
|
|
@@ -24926,7 +24954,7 @@ ga.interceptors.request.use((e) => {
|
|
|
24926
24954
|
}
|
|
24927
24955
|
return e;
|
|
24928
24956
|
});
|
|
24929
|
-
async function
|
|
24957
|
+
async function kk(e) {
|
|
24930
24958
|
const t = await ga.get(
|
|
24931
24959
|
"/api/page-builder/pages/resolve",
|
|
24932
24960
|
{ params: e }
|
|
@@ -24951,7 +24979,7 @@ async function gy(e) {
|
|
|
24951
24979
|
);
|
|
24952
24980
|
return i.data?.data ?? i.data;
|
|
24953
24981
|
}
|
|
24954
|
-
function
|
|
24982
|
+
function Fk(e, t) {
|
|
24955
24983
|
if (!t) return {};
|
|
24956
24984
|
const n = {};
|
|
24957
24985
|
for (const [r, o] of Object.entries(t)) {
|
|
@@ -24995,7 +25023,7 @@ function of(e, t) {
|
|
|
24995
25023
|
}
|
|
24996
25024
|
return n;
|
|
24997
25025
|
}
|
|
24998
|
-
function
|
|
25026
|
+
function Pk({
|
|
24999
25027
|
schema: e,
|
|
25000
25028
|
context: t = {},
|
|
25001
25029
|
clientId: n,
|
|
@@ -25034,7 +25062,7 @@ function Nk({
|
|
|
25034
25062
|
context: P
|
|
25035
25063
|
});
|
|
25036
25064
|
if (N) return;
|
|
25037
|
-
const H =
|
|
25065
|
+
const H = Fk(T, A.contextMapping);
|
|
25038
25066
|
p({
|
|
25039
25067
|
...H,
|
|
25040
25068
|
prepopulateResponse: T
|
|
@@ -25111,51 +25139,51 @@ function Gn() {
|
|
|
25111
25139
|
throw new Error("usePageContext must be used within PageContextProvider");
|
|
25112
25140
|
return e;
|
|
25113
25141
|
}
|
|
25114
|
-
const
|
|
25142
|
+
const Ok = 5, sf = 1;
|
|
25115
25143
|
function $o(e) {
|
|
25116
|
-
return Number.isFinite(e) ? Math.min(
|
|
25144
|
+
return Number.isFinite(e) ? Math.min(Ok, Math.max(sf, Math.round(e))) : sf;
|
|
25117
25145
|
}
|
|
25118
|
-
function
|
|
25146
|
+
function Ik(e, t) {
|
|
25119
25147
|
const n = $o(t), r = Array.from({ length: n }, () => []);
|
|
25120
25148
|
return e.forEach((o, i) => {
|
|
25121
25149
|
const s = o.config, a = s.columnIndex !== void 0 ? Math.min(Math.max(0, s.columnIndex), n - 1) : i % n;
|
|
25122
25150
|
r[a].push(o);
|
|
25123
25151
|
}), r;
|
|
25124
25152
|
}
|
|
25125
|
-
function
|
|
25153
|
+
function Mk(e) {
|
|
25126
25154
|
return Number.isFinite(e) ? Math.min(100, Math.max(0, Math.round(e))) : 0;
|
|
25127
25155
|
}
|
|
25128
|
-
function
|
|
25156
|
+
function Lk(e, t) {
|
|
25129
25157
|
const n = Math.max(1, t), r = Math.min(100, Math.max(0, Math.round(e))), o = Math.floor(r / n), i = r - o * n;
|
|
25130
25158
|
return Array.from({ length: n }, (s, a) => o + (a < i ? 1 : 0));
|
|
25131
25159
|
}
|
|
25132
25160
|
function af(e) {
|
|
25133
|
-
return
|
|
25161
|
+
return Lk(100, $o(e));
|
|
25134
25162
|
}
|
|
25135
|
-
function
|
|
25163
|
+
function Dk(e) {
|
|
25136
25164
|
const t = e.trim(), n = /^(\d+(?:\.\d+)?)\s*%?$/.exec(t);
|
|
25137
|
-
return n ?
|
|
25165
|
+
return n ? Mk(Number(n[1])) : null;
|
|
25138
25166
|
}
|
|
25139
25167
|
function by(e, t) {
|
|
25140
25168
|
const n = $o(t), r = [];
|
|
25141
25169
|
for (let i = 0; i < n; i++) {
|
|
25142
|
-
const s =
|
|
25170
|
+
const s = Dk(e?.[i] ?? "");
|
|
25143
25171
|
if (s === null) return af(n);
|
|
25144
25172
|
r.push(s);
|
|
25145
25173
|
}
|
|
25146
25174
|
return r.reduce((i, s) => i + s, 0) !== 100 ? af(n) : r;
|
|
25147
25175
|
}
|
|
25148
|
-
function
|
|
25176
|
+
function Bk(e) {
|
|
25149
25177
|
return e === "sm" ? "gap-2" : e === "lg" ? "gap-6" : "gap-4";
|
|
25150
25178
|
}
|
|
25151
25179
|
function lf(e, t) {
|
|
25152
25180
|
return by(t, $o(e)).map((r) => `minmax(0, ${r}fr)`).join(" ");
|
|
25153
25181
|
}
|
|
25154
|
-
function
|
|
25182
|
+
function $k(e) {
|
|
25155
25183
|
return e.length ? e.map((t) => `minmax(0, ${t}fr)`).join(" ") : "minmax(0, 1fr)";
|
|
25156
25184
|
}
|
|
25157
|
-
function
|
|
25158
|
-
const o = $o(t), i =
|
|
25185
|
+
function jk(e, t, n, r) {
|
|
25186
|
+
const o = $o(t), i = Ik(e, o), s = by(n, o);
|
|
25159
25187
|
if (!(r?.collapseEmpty !== !1))
|
|
25160
25188
|
return {
|
|
25161
25189
|
columns: i,
|
|
@@ -25174,45 +25202,45 @@ function Ik(e, t, n, r) {
|
|
|
25174
25202
|
), d = 100 - l.reduce((p, m) => p + m, 0);
|
|
25175
25203
|
return d !== 0 && l.length > 0 && (l[0] += d), {
|
|
25176
25204
|
columns: c.map((p) => p.colChildren),
|
|
25177
|
-
gridTemplate:
|
|
25205
|
+
gridTemplate: $k(l),
|
|
25178
25206
|
sourceIndices: c.map((p) => p.index)
|
|
25179
25207
|
};
|
|
25180
25208
|
}
|
|
25181
25209
|
function Gc(e, t = "solid") {
|
|
25182
25210
|
return e ? t === "dashed" ? "rounded-md border border-dashed border-border" : "rounded-md border border-border" : "";
|
|
25183
25211
|
}
|
|
25184
|
-
function
|
|
25212
|
+
function zk(e) {
|
|
25185
25213
|
return L(
|
|
25186
25214
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25187
25215
|
e.showBorder && "p-3"
|
|
25188
25216
|
);
|
|
25189
25217
|
}
|
|
25190
|
-
function
|
|
25218
|
+
function Uk(e) {
|
|
25191
25219
|
return L(
|
|
25192
25220
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25193
25221
|
e.showBorder && "p-2"
|
|
25194
25222
|
);
|
|
25195
25223
|
}
|
|
25196
|
-
function
|
|
25224
|
+
function Vk(e, t) {
|
|
25197
25225
|
return e.columnBorders?.[t] !== void 0 ? !!e.columnBorders[t] : !!e.showColumnBorders;
|
|
25198
25226
|
}
|
|
25199
|
-
function
|
|
25200
|
-
const n =
|
|
25227
|
+
function Hk(e, t) {
|
|
25228
|
+
const n = Vk(e, t);
|
|
25201
25229
|
return L(
|
|
25202
25230
|
Gc(n, e.borderStyle ?? "dashed"),
|
|
25203
25231
|
n && "p-2"
|
|
25204
25232
|
);
|
|
25205
25233
|
}
|
|
25206
|
-
function
|
|
25234
|
+
function Wk(e) {
|
|
25207
25235
|
if (e)
|
|
25208
25236
|
return { minHeight: `${e}vh` };
|
|
25209
25237
|
}
|
|
25210
|
-
function
|
|
25238
|
+
function Gk({ widget: e, renderChildren: t }) {
|
|
25211
25239
|
const n = e.config, [r, o] = Lt.useState(n.defaultCollapsed ?? !1);
|
|
25212
25240
|
return /* @__PURE__ */ $(
|
|
25213
25241
|
"section",
|
|
25214
25242
|
{
|
|
25215
|
-
className: L("space-y-4",
|
|
25243
|
+
className: L("space-y-4", zk(n)),
|
|
25216
25244
|
"data-widget-id": e.id,
|
|
25217
25245
|
children: [
|
|
25218
25246
|
n.heading && /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: n.collapsible ? /* @__PURE__ */ f(
|
|
@@ -25230,8 +25258,8 @@ function jk({ widget: e, renderChildren: t }) {
|
|
|
25230
25258
|
}
|
|
25231
25259
|
);
|
|
25232
25260
|
}
|
|
25233
|
-
function
|
|
25234
|
-
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i =
|
|
25261
|
+
function Kk({ widget: e, renderChildren: t }) {
|
|
25262
|
+
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i = jk(e.children ?? [], r, n.columnWidths, {
|
|
25235
25263
|
collapseEmpty: o
|
|
25236
25264
|
});
|
|
25237
25265
|
return /* @__PURE__ */ f(
|
|
@@ -25239,12 +25267,12 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25239
25267
|
{
|
|
25240
25268
|
className: L(
|
|
25241
25269
|
"grid w-full min-w-0 items-stretch",
|
|
25242
|
-
|
|
25243
|
-
|
|
25270
|
+
Bk(n.gap),
|
|
25271
|
+
Uk(n)
|
|
25244
25272
|
),
|
|
25245
25273
|
style: {
|
|
25246
25274
|
gridTemplateColumns: i.gridTemplate,
|
|
25247
|
-
|
|
25275
|
+
...Wk(n.minHeightPercent)
|
|
25248
25276
|
},
|
|
25249
25277
|
"data-widget-id": e.id,
|
|
25250
25278
|
children: i.columns.map((s, a) => {
|
|
@@ -25254,7 +25282,7 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25254
25282
|
{
|
|
25255
25283
|
className: L(
|
|
25256
25284
|
"flex min-h-[inherit] min-w-0 flex-col space-y-4 overflow-hidden",
|
|
25257
|
-
|
|
25285
|
+
Hk(n, c)
|
|
25258
25286
|
),
|
|
25259
25287
|
children: t?.(s)
|
|
25260
25288
|
},
|
|
@@ -25264,7 +25292,7 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25264
25292
|
}
|
|
25265
25293
|
);
|
|
25266
25294
|
}
|
|
25267
|
-
function
|
|
25295
|
+
function qk({ widget: e, renderChildren: t }) {
|
|
25268
25296
|
const n = e.config, r = n.variant === "outline" ? "border bg-background" : n.variant === "elevated" ? "border bg-background shadow-md" : "border bg-card";
|
|
25269
25297
|
return /* @__PURE__ */ $("div", { className: L("rounded-lg p-4", r), "data-widget-id": e.id, children: [
|
|
25270
25298
|
(n.title || n.subtitle) && /* @__PURE__ */ $("div", { className: "mb-4", children: [
|
|
@@ -25281,7 +25309,7 @@ function vy(e, t) {
|
|
|
25281
25309
|
}
|
|
25282
25310
|
return e.text ?? "";
|
|
25283
25311
|
}
|
|
25284
|
-
function
|
|
25312
|
+
function Yk({ widget: e }) {
|
|
25285
25313
|
const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.level ?? 2, i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
|
|
25286
25314
|
return /* @__PURE__ */ f(
|
|
25287
25315
|
"div",
|
|
@@ -25294,11 +25322,11 @@ function Vk({ widget: e }) {
|
|
|
25294
25322
|
}
|
|
25295
25323
|
);
|
|
25296
25324
|
}
|
|
25297
|
-
function
|
|
25325
|
+
function Xk({ widget: e }) {
|
|
25298
25326
|
const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.preset === "caption" ? "text-sm text-muted-foreground" : t.preset === "small" ? "text-xs text-muted-foreground" : "text-base", i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
|
|
25299
25327
|
return /* @__PURE__ */ f("p", { className: L(o, i), "data-widget-id": e.id, children: r });
|
|
25300
25328
|
}
|
|
25301
|
-
function
|
|
25329
|
+
function Jk(e, t) {
|
|
25302
25330
|
return !e || typeof e != "string" ? e : e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25303
25331
|
const o = r.trim(), i = t[o];
|
|
25304
25332
|
return i == null ? "" : String(i);
|
|
@@ -25307,10 +25335,10 @@ function Wk(e, t) {
|
|
|
25307
25335
|
function wy(e, t) {
|
|
25308
25336
|
const n = { ...e };
|
|
25309
25337
|
for (const [r, o] of Object.entries(n))
|
|
25310
|
-
typeof o == "string" && (n[r] =
|
|
25338
|
+
typeof o == "string" && (n[r] = Jk(o, t));
|
|
25311
25339
|
return n;
|
|
25312
25340
|
}
|
|
25313
|
-
function
|
|
25341
|
+
function Qk(e, t) {
|
|
25314
25342
|
return e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25315
25343
|
const o = t[r.trim()];
|
|
25316
25344
|
return o != null ? String(o) : "";
|
|
@@ -25318,7 +25346,7 @@ function Gk(e, t) {
|
|
|
25318
25346
|
}
|
|
25319
25347
|
function Sy(e, t, n, r) {
|
|
25320
25348
|
if (e.type === "navigate") {
|
|
25321
|
-
const o =
|
|
25349
|
+
const o = Qk(e.href, t);
|
|
25322
25350
|
if (!o.trim()) return;
|
|
25323
25351
|
e.openIn === "new" ? window.open(o, "_blank", "noopener,noreferrer") : window.location.assign(o);
|
|
25324
25352
|
return;
|
|
@@ -25340,7 +25368,7 @@ function Sy(e, t, n, r) {
|
|
|
25340
25368
|
}
|
|
25341
25369
|
n(e, r, "click");
|
|
25342
25370
|
}
|
|
25343
|
-
function
|
|
25371
|
+
function Zk({ widget: e }) {
|
|
25344
25372
|
const t = e.config, { context: n, dispatchAction: r } = Gn();
|
|
25345
25373
|
return /* @__PURE__ */ f(
|
|
25346
25374
|
tn,
|
|
@@ -25353,25 +25381,25 @@ function Kk({ widget: e }) {
|
|
|
25353
25381
|
}
|
|
25354
25382
|
);
|
|
25355
25383
|
}
|
|
25356
|
-
const
|
|
25384
|
+
const eF = {
|
|
25357
25385
|
start: "justify-start",
|
|
25358
25386
|
center: "justify-center",
|
|
25359
25387
|
end: "justify-end",
|
|
25360
25388
|
"space-between": "justify-between"
|
|
25361
|
-
},
|
|
25389
|
+
}, tF = {
|
|
25362
25390
|
sm: "gap-2",
|
|
25363
25391
|
md: "gap-3",
|
|
25364
25392
|
lg: "gap-4"
|
|
25365
25393
|
};
|
|
25366
|
-
function
|
|
25394
|
+
function nF({ widget: e }) {
|
|
25367
25395
|
const t = e.config, { context: n, dispatchAction: r } = Gn(), o = t.buttons ?? [];
|
|
25368
25396
|
return /* @__PURE__ */ f(
|
|
25369
25397
|
"div",
|
|
25370
25398
|
{
|
|
25371
25399
|
className: L(
|
|
25372
25400
|
"flex flex-wrap items-center",
|
|
25373
|
-
|
|
25374
|
-
|
|
25401
|
+
eF[t.align ?? "start"],
|
|
25402
|
+
tF[t.gap ?? "sm"],
|
|
25375
25403
|
t.wrap === !1 && "flex-nowrap"
|
|
25376
25404
|
),
|
|
25377
25405
|
"data-widget-id": e.id,
|
|
@@ -25477,36 +25505,36 @@ function Xo(e, t) {
|
|
|
25477
25505
|
const n = et(e, t.path);
|
|
25478
25506
|
return n == null ? t.fallback ?? n : t.formatter ? $l(n, t.formatter) : n;
|
|
25479
25507
|
}
|
|
25480
|
-
function
|
|
25508
|
+
function rF(e, t) {
|
|
25481
25509
|
if (!t) return {};
|
|
25482
25510
|
const n = {};
|
|
25483
25511
|
for (const [r, o] of Object.entries(t))
|
|
25484
25512
|
o in e && (n[r] = e[o]);
|
|
25485
25513
|
return n;
|
|
25486
25514
|
}
|
|
25487
|
-
const
|
|
25515
|
+
const oF = {
|
|
25488
25516
|
default: "border bg-card",
|
|
25489
25517
|
success: "border border-green-200 bg-green-50 text-green-900",
|
|
25490
25518
|
warning: "border border-amber-200 bg-amber-50 text-amber-900",
|
|
25491
25519
|
danger: "border border-red-200 bg-red-50 text-red-900"
|
|
25492
|
-
},
|
|
25520
|
+
}, iF = {
|
|
25493
25521
|
rectangle: "rounded-lg",
|
|
25494
25522
|
square: "aspect-square rounded-lg",
|
|
25495
25523
|
circle: "aspect-square rounded-full"
|
|
25496
|
-
},
|
|
25524
|
+
}, sF = {
|
|
25497
25525
|
sm: "p-2 text-xs",
|
|
25498
25526
|
md: "p-4 text-sm",
|
|
25499
25527
|
lg: "p-6 text-base"
|
|
25500
|
-
},
|
|
25528
|
+
}, il = {
|
|
25501
25529
|
sm: "text-lg",
|
|
25502
25530
|
md: "text-2xl",
|
|
25503
25531
|
lg: "text-3xl"
|
|
25504
|
-
},
|
|
25532
|
+
}, aF = {
|
|
25505
25533
|
sm: "gap-2",
|
|
25506
25534
|
md: "gap-3",
|
|
25507
25535
|
lg: "gap-4"
|
|
25508
25536
|
};
|
|
25509
|
-
function
|
|
25537
|
+
function lF({
|
|
25510
25538
|
title: e,
|
|
25511
25539
|
value: t,
|
|
25512
25540
|
trend: n,
|
|
@@ -25522,9 +25550,9 @@ function nF({
|
|
|
25522
25550
|
"div",
|
|
25523
25551
|
{
|
|
25524
25552
|
className: L(
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
25553
|
+
oF[r ?? "default"],
|
|
25554
|
+
iF[o ?? "rectangle"],
|
|
25555
|
+
sF[i ?? "md"],
|
|
25528
25556
|
u && "flex items-center justify-between gap-3"
|
|
25529
25557
|
),
|
|
25530
25558
|
children: [
|
|
@@ -25532,7 +25560,7 @@ function nF({
|
|
|
25532
25560
|
e && /* @__PURE__ */ f("p", { className: L("font-medium text-muted-foreground", u ? "text-sm" : ""), children: e }),
|
|
25533
25561
|
n != null && n !== "" && !u && /* @__PURE__ */ f("p", { className: "mt-1 text-xs text-muted-foreground", children: String(n) })
|
|
25534
25562
|
] }),
|
|
25535
|
-
a ? /* @__PURE__ */ f(Pr, { className: "my-2" }) : c ? /* @__PURE__ */ f("p", { className: L("font-bold text-destructive",
|
|
25563
|
+
a ? /* @__PURE__ */ f(Pr, { className: "my-2" }) : c ? /* @__PURE__ */ f("p", { className: L("font-bold text-destructive", il[i ?? "md"]), children: "Error" }) : /* @__PURE__ */ f("p", { className: L("font-bold", u ? il[i ?? "md"] : `mt-1 ${il[i ?? "md"]}`), children: String(t) }),
|
|
25536
25564
|
u && n !== null && n !== void 0 && n !== "" && /* @__PURE__ */ f("p", { className: "text-xs text-muted-foreground", children: String(n) })
|
|
25537
25565
|
]
|
|
25538
25566
|
}
|
|
@@ -25565,7 +25593,7 @@ function Ay({
|
|
|
25565
25593
|
return Xo(n, e.valueMapping);
|
|
25566
25594
|
})(), a = e.trendMapping && n !== void 0 && e.dataSource.mode !== "context" ? Xo(n, e.trendMapping) : e.trendMapping && e.dataSource.mode === "context" && e.trendMapping.path ? Xo({ value: n }, e.trendMapping) : null;
|
|
25567
25595
|
return /* @__PURE__ */ f(
|
|
25568
|
-
|
|
25596
|
+
lF,
|
|
25569
25597
|
{
|
|
25570
25598
|
title: e.title,
|
|
25571
25599
|
value: s,
|
|
@@ -25579,14 +25607,14 @@ function Ay({
|
|
|
25579
25607
|
}
|
|
25580
25608
|
);
|
|
25581
25609
|
}
|
|
25582
|
-
function
|
|
25610
|
+
function cF({ widget: e }) {
|
|
25583
25611
|
const t = e.config;
|
|
25584
25612
|
return /* @__PURE__ */ f("div", { "data-widget-id": e.id, children: /* @__PURE__ */ f(Ay, { stat: t, widgetId: e.id }) });
|
|
25585
25613
|
}
|
|
25586
|
-
function
|
|
25614
|
+
function uF({ stat: e, widgetId: t }) {
|
|
25587
25615
|
return /* @__PURE__ */ f(Ay, { stat: e, widgetId: `${t}-${e.id}` });
|
|
25588
25616
|
}
|
|
25589
|
-
function
|
|
25617
|
+
function dF({ widget: e }) {
|
|
25590
25618
|
const t = e.config, n = t.stats ?? [], r = t.columns ?? 1, o = t.direction === "horizontal";
|
|
25591
25619
|
return /* @__PURE__ */ f(
|
|
25592
25620
|
"div",
|
|
@@ -25598,13 +25626,13 @@ function iF({ widget: e }) {
|
|
|
25598
25626
|
!o && r === 2 && "grid-cols-2",
|
|
25599
25627
|
!o && r === 3 && "grid-cols-3",
|
|
25600
25628
|
!o && r === 4 && "grid-cols-4",
|
|
25601
|
-
|
|
25629
|
+
aF[t.gap ?? "md"]
|
|
25602
25630
|
),
|
|
25603
|
-
children: n.map((i) => /* @__PURE__ */ f(
|
|
25631
|
+
children: n.map((i) => /* @__PURE__ */ f(uF, { stat: i, widgetId: e.id }, i.id))
|
|
25604
25632
|
}
|
|
25605
25633
|
);
|
|
25606
25634
|
}
|
|
25607
|
-
function
|
|
25635
|
+
function fF({ widget: e }) {
|
|
25608
25636
|
const t = e.config, { setFilterValue: n } = Gn(), [r, o] = Ee("");
|
|
25609
25637
|
return wt(() => {
|
|
25610
25638
|
const i = t.debounceMs ?? 300, s = setTimeout(() => {
|
|
@@ -25623,7 +25651,7 @@ function sF({ widget: e }) {
|
|
|
25623
25651
|
}
|
|
25624
25652
|
);
|
|
25625
25653
|
}
|
|
25626
|
-
function
|
|
25654
|
+
function pF(e, t) {
|
|
25627
25655
|
if (!e) return [];
|
|
25628
25656
|
const n = t ? et(e, t) : e;
|
|
25629
25657
|
if (Array.isArray(n))
|
|
@@ -25635,14 +25663,14 @@ function aF(e, t) {
|
|
|
25635
25663
|
}
|
|
25636
25664
|
return [];
|
|
25637
25665
|
}
|
|
25638
|
-
function
|
|
25666
|
+
function mF({ widget: e }) {
|
|
25639
25667
|
const t = e.config, { dispatchAction: n } = Gn(), [r, o] = Ee(1), [i, s] = Ee(""), a = t.pagination?.pageSize ?? 10, { data: c, isLoading: u, isError: l } = xy({
|
|
25640
25668
|
widgetId: e.id,
|
|
25641
25669
|
dataSource: t.dataSource,
|
|
25642
25670
|
page: r,
|
|
25643
25671
|
pageSize: a,
|
|
25644
25672
|
search: t.search?.enabled ? i : void 0
|
|
25645
|
-
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p =
|
|
25673
|
+
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p = pF(c, d ?? "data.items"), m = (g, h) => {
|
|
25646
25674
|
const y = t.dataSource.responseMapping.find((v) => v.target === h);
|
|
25647
25675
|
return y ? Xo(g, y) : et(g, h) ?? "";
|
|
25648
25676
|
};
|
|
@@ -25730,11 +25758,11 @@ function lF({ widget: e }) {
|
|
|
25730
25758
|
] })
|
|
25731
25759
|
] });
|
|
25732
25760
|
}
|
|
25733
|
-
const
|
|
25734
|
-
function
|
|
25735
|
-
return e ??
|
|
25761
|
+
const hF = 75;
|
|
25762
|
+
function gF(e) {
|
|
25763
|
+
return e ?? hF;
|
|
25736
25764
|
}
|
|
25737
|
-
function
|
|
25765
|
+
function sl({
|
|
25738
25766
|
scrollBehavior: e = "page",
|
|
25739
25767
|
maxHeightPercent: t,
|
|
25740
25768
|
children: n,
|
|
@@ -25742,7 +25770,7 @@ function al({
|
|
|
25742
25770
|
}) {
|
|
25743
25771
|
if (e !== "contained")
|
|
25744
25772
|
return /* @__PURE__ */ f(an, { children: n });
|
|
25745
|
-
const o =
|
|
25773
|
+
const o = gF(t);
|
|
25746
25774
|
return /* @__PURE__ */ f(
|
|
25747
25775
|
"div",
|
|
25748
25776
|
{
|
|
@@ -25753,10 +25781,10 @@ function al({
|
|
|
25753
25781
|
}
|
|
25754
25782
|
);
|
|
25755
25783
|
}
|
|
25756
|
-
function
|
|
25784
|
+
function yF(e, t, n) {
|
|
25757
25785
|
return ["embedded-form", e, t, n ?? "latest"];
|
|
25758
25786
|
}
|
|
25759
|
-
async function
|
|
25787
|
+
async function bF(e, t) {
|
|
25760
25788
|
try {
|
|
25761
25789
|
const n = await Fr.get(
|
|
25762
25790
|
`/api/form-builder/form-layouts/form/${e}`,
|
|
@@ -25770,12 +25798,12 @@ async function fF(e, t) {
|
|
|
25770
25798
|
return null;
|
|
25771
25799
|
}
|
|
25772
25800
|
}
|
|
25773
|
-
async function
|
|
25801
|
+
async function vF(e, t, n) {
|
|
25774
25802
|
const r = n !== void 0 ? `/api/form-builder/forms/${e}/render?version=${n}` : `/api/form-builder/forms/${e}/render`, o = await Fr.get(r, {
|
|
25775
25803
|
params: { clientId: t }
|
|
25776
25804
|
}), s = o.data?.data ?? o.data, a = s.form ?? s, c = s.fields ?? a.fields ?? [];
|
|
25777
25805
|
let u = s.layout ?? a.layout ?? null;
|
|
25778
|
-
(!u || typeof u.columns != "number") && (u = await
|
|
25806
|
+
(!u || typeof u.columns != "number") && (u = await bF(e, t));
|
|
25779
25807
|
const l = s.rules ?? a.rules ?? [], d = ss(
|
|
25780
25808
|
a,
|
|
25781
25809
|
c,
|
|
@@ -25783,11 +25811,11 @@ async function pF(e, t, n) {
|
|
|
25783
25811
|
l
|
|
25784
25812
|
), p = Vl(
|
|
25785
25813
|
{ config: d.config, layout: d.layout },
|
|
25786
|
-
|
|
25787
|
-
) ??
|
|
25814
|
+
ll(u)
|
|
25815
|
+
) ?? ll(u);
|
|
25788
25816
|
return { schema: d, gridLayout: p };
|
|
25789
25817
|
}
|
|
25790
|
-
const
|
|
25818
|
+
const wF = 300 * 1e3;
|
|
25791
25819
|
function Cy({
|
|
25792
25820
|
formId: e,
|
|
25793
25821
|
mode: t = "fill",
|
|
@@ -25799,14 +25827,14 @@ function Cy({
|
|
|
25799
25827
|
maxHeightPercent: a
|
|
25800
25828
|
}) {
|
|
25801
25829
|
const { data: c, isLoading: u, isError: l, error: d } = qr({
|
|
25802
|
-
queryKey:
|
|
25803
|
-
queryFn: () =>
|
|
25804
|
-
staleTime:
|
|
25830
|
+
queryKey: yF(e, o, i),
|
|
25831
|
+
queryFn: () => vF(e, o, i),
|
|
25832
|
+
staleTime: wF
|
|
25805
25833
|
}), p = pe(
|
|
25806
|
-
() =>
|
|
25834
|
+
() => rF(r, n),
|
|
25807
25835
|
[r, n]
|
|
25808
25836
|
);
|
|
25809
|
-
return u ? /* @__PURE__ */ f(
|
|
25837
|
+
return u ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(Pr, {}) }) : l ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: d instanceof Error ? d.message : "Failed to load form" }) }) : c?.schema ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(
|
|
25810
25838
|
Xg,
|
|
25811
25839
|
{
|
|
25812
25840
|
schema: c.schema,
|
|
@@ -25817,7 +25845,7 @@ function Cy({
|
|
|
25817
25845
|
}
|
|
25818
25846
|
) }) : null;
|
|
25819
25847
|
}
|
|
25820
|
-
function
|
|
25848
|
+
function SF({ widget: e }) {
|
|
25821
25849
|
const t = e.config, { context: n, clientId: r } = Gn();
|
|
25822
25850
|
return t.formId ? /* @__PURE__ */ f(
|
|
25823
25851
|
Cy,
|
|
@@ -25832,7 +25860,7 @@ function hF({ widget: e }) {
|
|
|
25832
25860
|
}
|
|
25833
25861
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured" });
|
|
25834
25862
|
}
|
|
25835
|
-
function
|
|
25863
|
+
function xF({ widget: e }) {
|
|
25836
25864
|
const t = e.config, { context: n, getWorkflowState: r, clientId: o } = Gn(), i = String(n.moduleId ?? "");
|
|
25837
25865
|
if (!r)
|
|
25838
25866
|
return /* @__PURE__ */ $(
|
|
@@ -25857,7 +25885,7 @@ function gF({ widget: e }) {
|
|
|
25857
25885
|
u != null && (s[a] = String(u));
|
|
25858
25886
|
}
|
|
25859
25887
|
return /* @__PURE__ */ f(
|
|
25860
|
-
|
|
25888
|
+
wk,
|
|
25861
25889
|
{
|
|
25862
25890
|
getWorkflowState: r,
|
|
25863
25891
|
moduleId: i,
|
|
@@ -25867,7 +25895,7 @@ function gF({ widget: e }) {
|
|
|
25867
25895
|
}
|
|
25868
25896
|
);
|
|
25869
25897
|
}
|
|
25870
|
-
function
|
|
25898
|
+
function AF({ widget: e }) {
|
|
25871
25899
|
const t = e.config, { schema: n, dispatchAction: r } = Gn(), o = t.previousPage ?? n.navigation?.previousPage, i = t.nextPage ?? n.navigation?.nextPage, s = t.showPrevious !== !1 && !!o, a = t.showNext !== !1 && !!i, c = t.showBreadcrumbs && n.navigation?.breadcrumbs?.length, u = t.align === "center" ? "justify-center" : t.align === "right" ? "justify-end" : t.align === "space-between" ? "justify-between" : "justify-start", l = (d) => {
|
|
25872
25900
|
r(
|
|
25873
25901
|
{
|
|
@@ -25889,11 +25917,11 @@ function yF({ widget: e }) {
|
|
|
25889
25917
|
] })
|
|
25890
25918
|
] });
|
|
25891
25919
|
}
|
|
25892
|
-
function
|
|
25920
|
+
function CF(e, t) {
|
|
25893
25921
|
return e?.length ? e.filter((n) => n.config.tabId === t) : [];
|
|
25894
25922
|
}
|
|
25895
|
-
const
|
|
25896
|
-
function
|
|
25923
|
+
const EF = 1;
|
|
25924
|
+
function NF(e) {
|
|
25897
25925
|
switch (e) {
|
|
25898
25926
|
case "pills":
|
|
25899
25927
|
return "bg-transparent gap-1 p-0 h-auto";
|
|
@@ -25903,7 +25931,7 @@ function wF(e) {
|
|
|
25903
25931
|
return "";
|
|
25904
25932
|
}
|
|
25905
25933
|
}
|
|
25906
|
-
function
|
|
25934
|
+
function _F(e) {
|
|
25907
25935
|
switch (e) {
|
|
25908
25936
|
case "pills":
|
|
25909
25937
|
return "rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground";
|
|
@@ -25913,10 +25941,10 @@ function SF(e) {
|
|
|
25913
25941
|
return "";
|
|
25914
25942
|
}
|
|
25915
25943
|
}
|
|
25916
|
-
function
|
|
25944
|
+
function TF(e, t, n) {
|
|
25917
25945
|
return e ? new Set(n ? [n] : []) : new Set(t.map((r) => r.id));
|
|
25918
25946
|
}
|
|
25919
|
-
function
|
|
25947
|
+
function RF({
|
|
25920
25948
|
tab: e,
|
|
25921
25949
|
shouldRender: t,
|
|
25922
25950
|
pageContext: n,
|
|
@@ -25935,7 +25963,7 @@ function AF({
|
|
|
25935
25963
|
}
|
|
25936
25964
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured for this tab" }) : null;
|
|
25937
25965
|
}
|
|
25938
|
-
function
|
|
25966
|
+
function kF({
|
|
25939
25967
|
tab: e,
|
|
25940
25968
|
shouldLoad: t,
|
|
25941
25969
|
shouldRender: n,
|
|
@@ -25950,7 +25978,7 @@ function CF({
|
|
|
25950
25978
|
enabled: t && !!e.pageId,
|
|
25951
25979
|
queryFn: async () => hy(e.pageId, i, e.pageVersion)
|
|
25952
25980
|
});
|
|
25953
|
-
return n ? r >=
|
|
25981
|
+
return n ? r >= EF ? /* @__PURE__ */ f("div", { className: "rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive", children: "Nested page tabs not supported" }) : e.pageId ? l ? /* @__PURE__ */ f(Pr, {}) : d ? /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: p instanceof Error ? p.message : "Failed to load page" }) : u ? /* @__PURE__ */ f(
|
|
25954
25982
|
Ey,
|
|
25955
25983
|
{
|
|
25956
25984
|
page: u,
|
|
@@ -25963,17 +25991,17 @@ function CF({
|
|
|
25963
25991
|
}
|
|
25964
25992
|
) : null : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No page configured for this tab" }) : null;
|
|
25965
25993
|
}
|
|
25966
|
-
function
|
|
25994
|
+
function FF({
|
|
25967
25995
|
tab: e,
|
|
25968
25996
|
widgetChildren: t,
|
|
25969
25997
|
renderChildren: n
|
|
25970
25998
|
}) {
|
|
25971
|
-
const r =
|
|
25999
|
+
const r = CF(t, e.id);
|
|
25972
26000
|
return r.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground py-4", children: "No widgets in this tab" }) : /* @__PURE__ */ f(an, { children: n?.(r) });
|
|
25973
26001
|
}
|
|
25974
|
-
function
|
|
26002
|
+
function PF({ widget: e, renderChildren: t }) {
|
|
25975
26003
|
const n = e.config, { context: r, clientId: o, nestingDepth: i, onAction: s, getWorkflowState: a } = Gn(), c = n.tabs ?? [], u = n.defaultTabId ?? c[0]?.id ?? "", l = n.lazyLoad !== !1, [d, p] = Ee(u), [m, g] = Ee(
|
|
25976
|
-
() =>
|
|
26004
|
+
() => TF(l, c, u)
|
|
25977
26005
|
), h = (v) => {
|
|
25978
26006
|
g((w) => new Set(w).add(v)), p(v);
|
|
25979
26007
|
}, y = pe(() => !l, [l]);
|
|
@@ -25985,12 +26013,12 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
25985
26013
|
className: "w-full",
|
|
25986
26014
|
"data-widget-id": e.id,
|
|
25987
26015
|
children: [
|
|
25988
|
-
/* @__PURE__ */ f(ly, { className: L("mb-4",
|
|
26016
|
+
/* @__PURE__ */ f(ly, { className: L("mb-4", NF(n.variant)), children: c.map((v) => /* @__PURE__ */ f(
|
|
25989
26017
|
cy,
|
|
25990
26018
|
{
|
|
25991
26019
|
value: v.id,
|
|
25992
26020
|
disabled: v.disabled,
|
|
25993
|
-
className:
|
|
26021
|
+
className: _F(n.variant),
|
|
25994
26022
|
children: v.label
|
|
25995
26023
|
},
|
|
25996
26024
|
v.id
|
|
@@ -26005,7 +26033,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26005
26033
|
className: L("mt-0", y && "data-[state=inactive]:hidden"),
|
|
26006
26034
|
children: [
|
|
26007
26035
|
v.contentType === "widgets" && C && /* @__PURE__ */ f(
|
|
26008
|
-
|
|
26036
|
+
FF,
|
|
26009
26037
|
{
|
|
26010
26038
|
tab: v,
|
|
26011
26039
|
widgetChildren: e.children ?? [],
|
|
@@ -26013,7 +26041,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26013
26041
|
}
|
|
26014
26042
|
),
|
|
26015
26043
|
v.contentType === "form" && /* @__PURE__ */ f(
|
|
26016
|
-
|
|
26044
|
+
RF,
|
|
26017
26045
|
{
|
|
26018
26046
|
tab: v,
|
|
26019
26047
|
shouldRender: S,
|
|
@@ -26022,7 +26050,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26022
26050
|
}
|
|
26023
26051
|
),
|
|
26024
26052
|
v.contentType === "page" && /* @__PURE__ */ f(
|
|
26025
|
-
|
|
26053
|
+
kF,
|
|
26026
26054
|
{
|
|
26027
26055
|
tab: v,
|
|
26028
26056
|
shouldLoad: S,
|
|
@@ -26043,24 +26071,24 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26043
26071
|
}
|
|
26044
26072
|
);
|
|
26045
26073
|
}
|
|
26046
|
-
const
|
|
26047
|
-
section:
|
|
26048
|
-
columns:
|
|
26049
|
-
card:
|
|
26050
|
-
tab_group:
|
|
26051
|
-
heading:
|
|
26052
|
-
text:
|
|
26053
|
-
button:
|
|
26054
|
-
button_group:
|
|
26055
|
-
stat_card:
|
|
26056
|
-
stat_grid:
|
|
26057
|
-
data_table:
|
|
26058
|
-
search_filter:
|
|
26059
|
-
form_embed:
|
|
26060
|
-
workflow_embed:
|
|
26061
|
-
page_nav:
|
|
26074
|
+
const OF = {
|
|
26075
|
+
section: Gk,
|
|
26076
|
+
columns: Kk,
|
|
26077
|
+
card: qk,
|
|
26078
|
+
tab_group: PF,
|
|
26079
|
+
heading: Yk,
|
|
26080
|
+
text: Xk,
|
|
26081
|
+
button: Zk,
|
|
26082
|
+
button_group: nF,
|
|
26083
|
+
stat_card: cF,
|
|
26084
|
+
stat_grid: dF,
|
|
26085
|
+
data_table: mF,
|
|
26086
|
+
search_filter: fF,
|
|
26087
|
+
form_embed: SF,
|
|
26088
|
+
workflow_embed: xF,
|
|
26089
|
+
page_nav: AF
|
|
26062
26090
|
};
|
|
26063
|
-
function
|
|
26091
|
+
function IF({ widget: e }) {
|
|
26064
26092
|
return /* @__PURE__ */ $(
|
|
26065
26093
|
"div",
|
|
26066
26094
|
{
|
|
@@ -26079,16 +26107,16 @@ function TF({ widget: e }) {
|
|
|
26079
26107
|
}
|
|
26080
26108
|
);
|
|
26081
26109
|
}
|
|
26082
|
-
function
|
|
26110
|
+
function MF({
|
|
26083
26111
|
widget: e,
|
|
26084
26112
|
renderChildren: t
|
|
26085
26113
|
}) {
|
|
26086
|
-
const n =
|
|
26114
|
+
const n = OF[e.type] ?? IF;
|
|
26087
26115
|
return /* @__PURE__ */ f(n, { widget: e, renderChildren: t });
|
|
26088
26116
|
}
|
|
26089
26117
|
function uf(e, t) {
|
|
26090
26118
|
return e.map((n) => /* @__PURE__ */ f(
|
|
26091
|
-
|
|
26119
|
+
MF,
|
|
26092
26120
|
{
|
|
26093
26121
|
widget: n,
|
|
26094
26122
|
renderChildren: t
|
|
@@ -26107,10 +26135,10 @@ function Ey({
|
|
|
26107
26135
|
inheritContext: a = !1,
|
|
26108
26136
|
parentContext: c
|
|
26109
26137
|
}) {
|
|
26110
|
-
const u = pe(() =>
|
|
26138
|
+
const u = pe(() => Tk(e.schema), [e.schema]), l = (p) => uf(p, l), d = /* @__PURE__ */ $(
|
|
26111
26139
|
"div",
|
|
26112
26140
|
{
|
|
26113
|
-
className: L("studio-page-content min-h-0 min-w-0",
|
|
26141
|
+
className: L("studio-page-content min-h-0 min-w-0", Ek(u), o),
|
|
26114
26142
|
"data-page-id": e.id,
|
|
26115
26143
|
"data-nesting-depth": i,
|
|
26116
26144
|
children: [
|
|
@@ -26123,7 +26151,7 @@ function Ey({
|
|
|
26123
26151
|
}
|
|
26124
26152
|
);
|
|
26125
26153
|
return a && c ? d : /* @__PURE__ */ f(
|
|
26126
|
-
|
|
26154
|
+
Pk,
|
|
26127
26155
|
{
|
|
26128
26156
|
schema: u,
|
|
26129
26157
|
context: t,
|
|
@@ -26136,7 +26164,7 @@ function Ey({
|
|
|
26136
26164
|
}
|
|
26137
26165
|
);
|
|
26138
26166
|
}
|
|
26139
|
-
function
|
|
26167
|
+
function AP({
|
|
26140
26168
|
clientId: e,
|
|
26141
26169
|
tenantId: t,
|
|
26142
26170
|
moduleId: n,
|
|
@@ -26168,7 +26196,7 @@ function yP({
|
|
|
26168
26196
|
error: v
|
|
26169
26197
|
} = qr({
|
|
26170
26198
|
queryKey: ["page-resolve", e, t, n, r, o, i, a, u],
|
|
26171
|
-
queryFn: () =>
|
|
26199
|
+
queryFn: () => kk({
|
|
26172
26200
|
clientId: e,
|
|
26173
26201
|
tenantId: t,
|
|
26174
26202
|
moduleId: n,
|
|
@@ -26201,25 +26229,25 @@ function yP({
|
|
|
26201
26229
|
) : /* @__PURE__ */ f("div", { className: "rounded-md border p-4 text-sm text-muted-foreground", children: "No page found for the given scope or route." });
|
|
26202
26230
|
}
|
|
26203
26231
|
export {
|
|
26204
|
-
|
|
26232
|
+
SP as FIELD_TYPE_REGISTRY,
|
|
26205
26233
|
So as FORM_RENDERER_GRID_ROW_HEIGHT_DEFAULT,
|
|
26206
26234
|
ff as FORM_RENDERER_ROOT_CLASS,
|
|
26207
26235
|
Ar as FieldRenderer,
|
|
26208
26236
|
Xg as FormRenderer,
|
|
26209
26237
|
Ey as PageRenderer,
|
|
26210
26238
|
Of as RendererFieldLayoutContext,
|
|
26211
|
-
|
|
26212
|
-
|
|
26239
|
+
AP as StudioPageHost,
|
|
26240
|
+
wk as WorkflowStepsView,
|
|
26213
26241
|
Fs as appearanceControlClasses,
|
|
26214
26242
|
Bb as appearanceHasExplicitVerticalIntent,
|
|
26215
26243
|
Nb as appearanceTextareaClasses,
|
|
26216
26244
|
ss as backendToFormSchema,
|
|
26217
|
-
|
|
26218
|
-
|
|
26245
|
+
HF as cellAlignmentClasses,
|
|
26246
|
+
VF as cellVerticalJustifyClassesForField,
|
|
26219
26247
|
Gl as effectiveWidthPercent,
|
|
26220
26248
|
gy as executeDataSource,
|
|
26221
26249
|
hy as fetchPageRender,
|
|
26222
|
-
|
|
26250
|
+
UF as fieldBlockBoxStyle,
|
|
26223
26251
|
Lb as fieldBlockBoxStyleForField,
|
|
26224
26252
|
Pb as fieldBlockHorizontalPlacementClass,
|
|
26225
26253
|
Ob as fieldBlockHorizontalSelfClass,
|
|
@@ -26228,39 +26256,39 @@ export {
|
|
|
26228
26256
|
Mb as fieldBlockWidthStyleForField,
|
|
26229
26257
|
ql as fieldGridShellFillsCellVertically,
|
|
26230
26258
|
Fr as formBuilderHttp,
|
|
26231
|
-
|
|
26259
|
+
ll as formLayoutRecordToGridConfig,
|
|
26232
26260
|
CC as getBusinessApiOrigin,
|
|
26233
26261
|
Zr as getClientId,
|
|
26234
26262
|
Wm as getRendererHostAuthHeaders,
|
|
26235
|
-
|
|
26236
|
-
|
|
26263
|
+
mP as getRendererHostViewerContext,
|
|
26264
|
+
WF as getRendererStore,
|
|
26237
26265
|
Fb as gridCellFlexClasses,
|
|
26238
26266
|
du as gridCellFlexClassesForField,
|
|
26239
26267
|
kb as gridCellOuterFlexClasses,
|
|
26240
26268
|
Ib as hasExplicitFieldBlockWidth,
|
|
26241
|
-
|
|
26269
|
+
bP as isAsyncSearchFieldProperties,
|
|
26242
26270
|
li as isIntrinsicWidthButtonField,
|
|
26243
|
-
|
|
26271
|
+
yP as normalizeWorkflowFormSchema,
|
|
26244
26272
|
Uc as normalizeWorkflowFormToRendererSchema,
|
|
26245
26273
|
ga as pageBuilderHttp,
|
|
26246
26274
|
Ff as parseContentVerticalAlign,
|
|
26247
26275
|
ma as parseMetadataJson,
|
|
26248
|
-
|
|
26276
|
+
pP as resetRendererHostAuth,
|
|
26249
26277
|
Er as resolveBusinessApiUrl,
|
|
26250
26278
|
Vl as resolveFormGridLayout,
|
|
26251
|
-
|
|
26279
|
+
kk as resolvePage,
|
|
26252
26280
|
us as resolvedGridCellVerticalJustifyClasses,
|
|
26253
26281
|
Zn as resolvedHorizontalAlign,
|
|
26254
26282
|
cs as resolvedVerticalAlign,
|
|
26255
26283
|
Pf as resolvedVerticalAlignForField,
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26284
|
+
uP as setBusinessApiOrigin,
|
|
26285
|
+
hP as setFormBuilderAuthProvider,
|
|
26286
|
+
xP as setPageBuilderAuthProvider,
|
|
26287
|
+
fP as setRendererHostAuthHeaders,
|
|
26288
|
+
dP as setRendererHostViewerContext,
|
|
26289
|
+
wP as useFieldValidation,
|
|
26262
26290
|
fv as useFormRenderer,
|
|
26263
|
-
|
|
26291
|
+
vP as useFormValidation,
|
|
26264
26292
|
Os as useRendererFieldLayout,
|
|
26265
26293
|
Do as useRendererHostAuthStore
|
|
26266
26294
|
};
|