iq-line-form-builder-renderer 1.2.3 → 1.2.4
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 +587 -555
- 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/billingGridTextStyle.d.ts +4 -1
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridTextStyle.d.ts.map +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 $F(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 jF = 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 zF(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 UF() {
|
|
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: GF,
|
|
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: KF,
|
|
11063
|
+
isCancel: qF,
|
|
11064
|
+
CancelToken: YF,
|
|
11065
|
+
VERSION: XF,
|
|
11066
|
+
all: JF,
|
|
11067
|
+
Cancel: QF,
|
|
11068
|
+
isAxiosError: ZF,
|
|
11069
|
+
spread: eP,
|
|
11070
|
+
toFormData: tP,
|
|
11071
|
+
AxiosHeaders: nP,
|
|
11072
|
+
HttpStatusCode: rP,
|
|
11073
|
+
formToJSON: oP,
|
|
11074
|
+
getAdapter: iP,
|
|
11075
|
+
mergeConfig: sP
|
|
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 aP(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 lP(e) {
|
|
11965
11965
|
Do.getState()._setViewerContext(e);
|
|
11966
11966
|
}
|
|
11967
|
-
function
|
|
11967
|
+
function cP(e) {
|
|
11968
11968
|
Do.getState()._setAuthHeaders(e);
|
|
11969
11969
|
}
|
|
11970
|
-
function
|
|
11970
|
+
function uP() {
|
|
11971
11971
|
Do.getState()._reset();
|
|
11972
11972
|
}
|
|
11973
|
-
function
|
|
11973
|
+
function dP() {
|
|
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 fP(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", [pP, 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),
|
|
@@ -17759,7 +17759,7 @@ 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);
|
|
@@ -17771,7 +17771,7 @@ function M_(e, t, n) {
|
|
|
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;
|
|
@@ -17985,19 +17985,31 @@ function V_(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
17991
|
style: V_(e)
|
|
17992
17992
|
};
|
|
17993
17993
|
}
|
|
17994
|
-
function
|
|
17994
|
+
function H_(e) {
|
|
17995
|
+
return e ? !!(e.fontSize || e.bold || e.italic || e.underline || e.color?.trim()) : !1;
|
|
17996
|
+
}
|
|
17997
|
+
function W_(e, t) {
|
|
17998
|
+
if (!e && !t) return;
|
|
17999
|
+
const n = { ...e, ...t };
|
|
18000
|
+
return H_(n) ? n : void 0;
|
|
18001
|
+
}
|
|
18002
|
+
function G_(e, t) {
|
|
18003
|
+
const n = e?.kind === "label" ? W_(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 K_(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 q_ = ({
|
|
18013
18025
|
field: e,
|
|
18014
18026
|
value: t,
|
|
18015
18027
|
onChange: n,
|
|
@@ -18042,42 +18054,49 @@ 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 = K_(u, E, N), I = M?.kind === "static" ? M.row.labelStyle : M?.kind === "dynamic" ? M.block.labelStyle : void 0, z = G_(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(
|
|
18082
|
+
"h-8 border-0 bg-transparent text-sm shadow-none focus-visible:ring-1",
|
|
18083
|
+
B,
|
|
18084
|
+
z.className
|
|
18085
|
+
),
|
|
18086
|
+
style: z.style,
|
|
18068
18087
|
disabled: m
|
|
18069
18088
|
}
|
|
18070
18089
|
);
|
|
18071
18090
|
}
|
|
18072
18091
|
if (F?.kind === "currency") {
|
|
18073
|
-
const
|
|
18074
|
-
if (
|
|
18075
|
-
const
|
|
18076
|
-
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B), children: Ed(
|
|
18092
|
+
const D = Tg(F);
|
|
18093
|
+
if (D === "static") {
|
|
18094
|
+
const U = F.value !== void 0 && F.value !== "" ? Ol(null, { ...F, mode: "static" }, J) : O;
|
|
18095
|
+
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B, z.className), style: z.style, children: Ed(U, { currencySymbol: d, emptyDisplay: p }) });
|
|
18077
18096
|
}
|
|
18078
|
-
if (
|
|
18079
|
-
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B), children: Ed(O, { currencySymbol: d, emptyDisplay: p }) });
|
|
18080
|
-
const
|
|
18097
|
+
if (D === "api" || m)
|
|
18098
|
+
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B, z.className), style: z.style, children: Ed(O, { currencySymbol: d, emptyDisplay: p }) });
|
|
18099
|
+
const ae = O_(O);
|
|
18081
18100
|
return /* @__PURE__ */ $(
|
|
18082
18101
|
"div",
|
|
18083
18102
|
{
|
|
@@ -18085,19 +18104,21 @@ const W_ = ({
|
|
|
18085
18104
|
"flex w-full items-center gap-0.5",
|
|
18086
18105
|
B === "text-center" && "justify-center",
|
|
18087
18106
|
B === "text-right" && "justify-end",
|
|
18088
|
-
B === "text-left" && "justify-start"
|
|
18107
|
+
B === "text-left" && "justify-start",
|
|
18108
|
+
z.className
|
|
18089
18109
|
),
|
|
18110
|
+
style: z.style,
|
|
18090
18111
|
children: [
|
|
18091
|
-
/* @__PURE__ */ f("span", { className: "shrink-0
|
|
18112
|
+
/* @__PURE__ */ f("span", { className: "shrink-0 tabular-nums", children: d }),
|
|
18092
18113
|
/* @__PURE__ */ f(
|
|
18093
18114
|
_r,
|
|
18094
18115
|
{
|
|
18095
18116
|
type: "text",
|
|
18096
18117
|
inputMode: "decimal",
|
|
18097
|
-
value:
|
|
18098
|
-
onChange: (
|
|
18118
|
+
value: ae,
|
|
18119
|
+
onChange: (U) => h(x, E, T, U.target.value, "number"),
|
|
18099
18120
|
onBlur: r,
|
|
18100
|
-
className: "h-8 min-w-[2ch] max-w-full flex-1 border-0 bg-transparent
|
|
18121
|
+
className: "h-8 min-w-[2ch] max-w-full flex-1 border-0 bg-transparent tabular-nums shadow-none focus-visible:ring-1",
|
|
18101
18122
|
disabled: m
|
|
18102
18123
|
}
|
|
18103
18124
|
)
|
|
@@ -18105,7 +18126,18 @@ const W_ = ({
|
|
|
18105
18126
|
}
|
|
18106
18127
|
);
|
|
18107
18128
|
}
|
|
18108
|
-
return F?.kind === "static" ? /* @__PURE__ */ f(
|
|
18129
|
+
return F?.kind === "static" ? /* @__PURE__ */ f(
|
|
18130
|
+
"span",
|
|
18131
|
+
{
|
|
18132
|
+
className: L(
|
|
18133
|
+
B,
|
|
18134
|
+
z.className,
|
|
18135
|
+
!z.style.color && "text-muted-foreground"
|
|
18136
|
+
),
|
|
18137
|
+
style: z.style,
|
|
18138
|
+
children: F.value
|
|
18139
|
+
}
|
|
18140
|
+
) : /* @__PURE__ */ f("span", { className: L(B, z.className), style: z.style, children: _g(O, J, { currencySymbol: d, emptyDisplay: p }) });
|
|
18109
18141
|
}, 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
18142
|
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
18143
|
"div",
|
|
@@ -18127,7 +18159,7 @@ const W_ = ({
|
|
|
18127
18159
|
"shrink-0 px-4 py-2 border-b bg-muted/40",
|
|
18128
18160
|
Fg(u.gridTitleStyle) || "text-muted-foreground"
|
|
18129
18161
|
),
|
|
18130
|
-
style:
|
|
18162
|
+
style: Il(u.gridTitleStyle).style,
|
|
18131
18163
|
children: v
|
|
18132
18164
|
}
|
|
18133
18165
|
) : null,
|
|
@@ -18138,7 +18170,7 @@ const W_ = ({
|
|
|
18138
18170
|
style: u.minWidth ? { minWidth: u.minWidth } : void 0,
|
|
18139
18171
|
children: [
|
|
18140
18172
|
/* @__PURE__ */ f("thead", { children: /* @__PURE__ */ f("tr", { className: "border-b border-border bg-muted/60", children: l.map((E) => {
|
|
18141
|
-
const N =
|
|
18173
|
+
const N = Il(E.headerStyle);
|
|
18142
18174
|
return /* @__PURE__ */ f(
|
|
18143
18175
|
"th",
|
|
18144
18176
|
{
|
|
@@ -18146,7 +18178,7 @@ const W_ = ({
|
|
|
18146
18178
|
A,
|
|
18147
18179
|
k,
|
|
18148
18180
|
"text-xs uppercase tracking-wider whitespace-nowrap",
|
|
18149
|
-
|
|
18181
|
+
Ga(E.align),
|
|
18150
18182
|
N.className || "font-semibold text-muted-foreground"
|
|
18151
18183
|
),
|
|
18152
18184
|
style: N.style,
|
|
@@ -18169,7 +18201,7 @@ const W_ = ({
|
|
|
18169
18201
|
A,
|
|
18170
18202
|
k,
|
|
18171
18203
|
"align-middle whitespace-nowrap",
|
|
18172
|
-
|
|
18204
|
+
Ga(P)
|
|
18173
18205
|
),
|
|
18174
18206
|
children: y(
|
|
18175
18207
|
E.slotId,
|
|
@@ -18193,10 +18225,10 @@ const W_ = ({
|
|
|
18193
18225
|
}
|
|
18194
18226
|
) });
|
|
18195
18227
|
};
|
|
18196
|
-
function
|
|
18228
|
+
function Ka(e, t, n) {
|
|
18197
18229
|
return U_(e, t, n);
|
|
18198
18230
|
}
|
|
18199
|
-
const
|
|
18231
|
+
const Y_ = ({
|
|
18200
18232
|
field: e,
|
|
18201
18233
|
value: t,
|
|
18202
18234
|
error: n,
|
|
@@ -18319,7 +18351,7 @@ function mo(e, t) {
|
|
|
18319
18351
|
}
|
|
18320
18352
|
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
18353
|
}
|
|
18322
|
-
function
|
|
18354
|
+
function X_(e, t, n, r) {
|
|
18323
18355
|
if (n?.length) {
|
|
18324
18356
|
const i = r ?? " | ", s = n.map((a) => Ml(e, a)).filter((a) => a != null).map((a) => String(a));
|
|
18325
18357
|
if (s.length) return s.join(i);
|
|
@@ -18334,7 +18366,7 @@ function K_(e, t, n, r) {
|
|
|
18334
18366
|
const o = e.personal_email;
|
|
18335
18367
|
return o != null ? String(o) : JSON.stringify(e);
|
|
18336
18368
|
}
|
|
18337
|
-
const
|
|
18369
|
+
const J_ = ({
|
|
18338
18370
|
field: e,
|
|
18339
18371
|
value: t,
|
|
18340
18372
|
onChange: n,
|
|
@@ -18495,7 +18527,7 @@ const q_ = ({
|
|
|
18495
18527
|
{
|
|
18496
18528
|
htmlFor: B,
|
|
18497
18529
|
className: "text-sm cursor-pointer flex-1 truncate",
|
|
18498
|
-
children:
|
|
18530
|
+
children: X_(T, d, m, g)
|
|
18499
18531
|
}
|
|
18500
18532
|
)
|
|
18501
18533
|
]
|
|
@@ -18552,7 +18584,7 @@ const q_ = ({
|
|
|
18552
18584
|
)
|
|
18553
18585
|
] });
|
|
18554
18586
|
};
|
|
18555
|
-
var
|
|
18587
|
+
var Q_ = [
|
|
18556
18588
|
"a",
|
|
18557
18589
|
"button",
|
|
18558
18590
|
"div",
|
|
@@ -18570,16 +18602,16 @@ var Y_ = [
|
|
|
18570
18602
|
"span",
|
|
18571
18603
|
"svg",
|
|
18572
18604
|
"ul"
|
|
18573
|
-
],
|
|
18605
|
+
], Z_ = Q_.reduce((e, t) => {
|
|
18574
18606
|
const n = /* @__PURE__ */ Ql(`Primitive.${t}`), r = b.forwardRef((o, i) => {
|
|
18575
18607
|
const { asChild: s, ...a } = o, c = s ? n : t;
|
|
18576
18608
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: i });
|
|
18577
18609
|
});
|
|
18578
18610
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
18579
|
-
}, {}),
|
|
18580
|
-
const { decorative: n, orientation: r = Rd, ...o } = e, i =
|
|
18611
|
+
}, {}), eT = "Separator", Rd = "horizontal", tT = ["horizontal", "vertical"], Pg = b.forwardRef((e, t) => {
|
|
18612
|
+
const { decorative: n, orientation: r = Rd, ...o } = e, i = nT(r) ? r : Rd, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
18581
18613
|
return /* @__PURE__ */ f(
|
|
18582
|
-
|
|
18614
|
+
Z_.div,
|
|
18583
18615
|
{
|
|
18584
18616
|
"data-orientation": i,
|
|
18585
18617
|
...a,
|
|
@@ -18588,11 +18620,11 @@ var Y_ = [
|
|
|
18588
18620
|
}
|
|
18589
18621
|
);
|
|
18590
18622
|
});
|
|
18591
|
-
Pg.displayName =
|
|
18592
|
-
function
|
|
18593
|
-
return
|
|
18623
|
+
Pg.displayName = eT;
|
|
18624
|
+
function nT(e) {
|
|
18625
|
+
return tT.includes(e);
|
|
18594
18626
|
}
|
|
18595
|
-
var
|
|
18627
|
+
var rT = Pg;
|
|
18596
18628
|
function $c({
|
|
18597
18629
|
className: e,
|
|
18598
18630
|
orientation: t = "horizontal",
|
|
@@ -18600,7 +18632,7 @@ function $c({
|
|
|
18600
18632
|
...r
|
|
18601
18633
|
}) {
|
|
18602
18634
|
return /* @__PURE__ */ f(
|
|
18603
|
-
|
|
18635
|
+
rT,
|
|
18604
18636
|
{
|
|
18605
18637
|
"data-slot": "separator",
|
|
18606
18638
|
decorative: n,
|
|
@@ -18613,27 +18645,27 @@ function $c({
|
|
|
18613
18645
|
}
|
|
18614
18646
|
);
|
|
18615
18647
|
}
|
|
18616
|
-
const
|
|
18648
|
+
const oT = ({
|
|
18617
18649
|
field: e,
|
|
18618
18650
|
className: t
|
|
18619
|
-
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }),
|
|
18651
|
+
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }), iT = {
|
|
18620
18652
|
h1: "text-3xl font-bold",
|
|
18621
18653
|
h2: "text-2xl font-bold",
|
|
18622
18654
|
h3: "text-xl font-semibold",
|
|
18623
18655
|
h4: "text-lg font-semibold",
|
|
18624
18656
|
h5: "text-base font-medium",
|
|
18625
18657
|
h6: "text-sm font-medium"
|
|
18626
|
-
},
|
|
18658
|
+
}, sT = ({
|
|
18627
18659
|
field: e,
|
|
18628
18660
|
className: t
|
|
18629
18661
|
}) => {
|
|
18630
|
-
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i =
|
|
18662
|
+
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i = iT[r], s = r;
|
|
18631
18663
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-1", t), children: [
|
|
18632
18664
|
/* @__PURE__ */ f(s, { className: L("m-0 text-foreground", i), children: e.label || "Header" }),
|
|
18633
18665
|
e.description && /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: e.description }),
|
|
18634
18666
|
o && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18635
18667
|
] });
|
|
18636
|
-
},
|
|
18668
|
+
}, aT = {
|
|
18637
18669
|
"top-left": "justify-start",
|
|
18638
18670
|
"top-center": "justify-center",
|
|
18639
18671
|
"top-right": "justify-end",
|
|
@@ -18643,20 +18675,20 @@ const tT = ({
|
|
|
18643
18675
|
"bottom-left": "justify-start",
|
|
18644
18676
|
"bottom-center": "justify-center",
|
|
18645
18677
|
"bottom-right": "justify-end"
|
|
18646
|
-
},
|
|
18678
|
+
}, lT = {
|
|
18647
18679
|
h1: "text-3xl font-bold",
|
|
18648
18680
|
h2: "text-2xl font-bold",
|
|
18649
18681
|
h3: "text-xl font-semibold",
|
|
18650
18682
|
h4: "text-lg font-semibold",
|
|
18651
18683
|
h5: "text-base font-medium",
|
|
18652
18684
|
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 =
|
|
18685
|
+
}, cT = ({ field: e, className: t }) => {
|
|
18686
|
+
const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s = aT[r], a = lT[o], c = o;
|
|
18655
18687
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-2", t), children: [
|
|
18656
18688
|
/* @__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
18689
|
i && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18658
18690
|
] });
|
|
18659
|
-
},
|
|
18691
|
+
}, uT = ({
|
|
18660
18692
|
field: e,
|
|
18661
18693
|
className: t
|
|
18662
18694
|
}) => {
|
|
@@ -18678,10 +18710,10 @@ function kd(e, t) {
|
|
|
18678
18710
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
18679
18711
|
return r;
|
|
18680
18712
|
}
|
|
18681
|
-
function
|
|
18713
|
+
function dT(e) {
|
|
18682
18714
|
if (Array.isArray(e)) return e;
|
|
18683
18715
|
}
|
|
18684
|
-
function
|
|
18716
|
+
function fT(e, t) {
|
|
18685
18717
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
18686
18718
|
if (n != null) {
|
|
18687
18719
|
var r, o, i, s, a = [], c = !0, u = !1;
|
|
@@ -18699,21 +18731,21 @@ function cT(e, t) {
|
|
|
18699
18731
|
return a;
|
|
18700
18732
|
}
|
|
18701
18733
|
}
|
|
18702
|
-
function
|
|
18734
|
+
function pT() {
|
|
18703
18735
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18704
18736
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
18705
18737
|
}
|
|
18706
|
-
function
|
|
18707
|
-
return
|
|
18738
|
+
function mT(e, t) {
|
|
18739
|
+
return dT(e) || fT(e, t) || hT(e, t) || pT();
|
|
18708
18740
|
}
|
|
18709
|
-
function
|
|
18741
|
+
function hT(e, t) {
|
|
18710
18742
|
if (e) {
|
|
18711
18743
|
if (typeof e == "string") return kd(e, t);
|
|
18712
18744
|
var n = {}.toString.call(e).slice(8, -1);
|
|
18713
18745
|
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
18746
|
}
|
|
18715
18747
|
}
|
|
18716
|
-
const Og = Object.entries, Fd = Object.setPrototypeOf,
|
|
18748
|
+
const Og = Object.entries, Fd = Object.setPrototypeOf, gT = Object.isFrozen, yT = Object.getPrototypeOf, bT = Object.getOwnPropertyDescriptor;
|
|
18717
18749
|
let vn = Object.freeze, Hn = Object.seal, wo = Object.create, Ig = typeof Reflect < "u" && Reflect, Ll = Ig.apply, Dl = Ig.construct;
|
|
18718
18750
|
vn || (vn = function(t) {
|
|
18719
18751
|
return t;
|
|
@@ -18731,7 +18763,7 @@ Dl || (Dl = function(t) {
|
|
|
18731
18763
|
r[o - 1] = arguments[o];
|
|
18732
18764
|
return new t(...r);
|
|
18733
18765
|
});
|
|
18734
|
-
const ho = qt(Array.prototype.forEach),
|
|
18766
|
+
const ho = qt(Array.prototype.forEach), vT = qt(Array.prototype.lastIndexOf), Pd = qt(Array.prototype.pop), go = qt(Array.prototype.push), wT = 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), ST = qt(String.prototype.trim), xT = qt(Number.prototype.toString), AT = 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 = CT(TypeError);
|
|
18735
18767
|
function qt(e) {
|
|
18736
18768
|
return function(t) {
|
|
18737
18769
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -18740,7 +18772,7 @@ function qt(e) {
|
|
|
18740
18772
|
return Ll(e, t, r);
|
|
18741
18773
|
};
|
|
18742
18774
|
}
|
|
18743
|
-
function
|
|
18775
|
+
function CT(e) {
|
|
18744
18776
|
return function() {
|
|
18745
18777
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
18746
18778
|
n[r] = arguments[r];
|
|
@@ -18756,13 +18788,13 @@ function it(e, t) {
|
|
|
18756
18788
|
let o = t[r];
|
|
18757
18789
|
if (typeof o == "string") {
|
|
18758
18790
|
const i = n(o);
|
|
18759
|
-
i !== o && (
|
|
18791
|
+
i !== o && (gT(t) || (t[r] = i), o = i);
|
|
18760
18792
|
}
|
|
18761
18793
|
e[o] = !0;
|
|
18762
18794
|
}
|
|
18763
18795
|
return e;
|
|
18764
18796
|
}
|
|
18765
|
-
function
|
|
18797
|
+
function ET(e) {
|
|
18766
18798
|
for (let t = 0; t < e.length; t++)
|
|
18767
18799
|
Dt(e, t) || (e[t] = null);
|
|
18768
18800
|
return e;
|
|
@@ -18770,20 +18802,20 @@ function xT(e) {
|
|
|
18770
18802
|
function xn(e) {
|
|
18771
18803
|
const t = wo(null);
|
|
18772
18804
|
for (const r of Og(e)) {
|
|
18773
|
-
var n =
|
|
18805
|
+
var n = mT(r, 2);
|
|
18774
18806
|
const o = n[0], i = n[1];
|
|
18775
|
-
Dt(e, o) && (gn(i) ? t[o] =
|
|
18807
|
+
Dt(e, o) && (gn(i) ? t[o] = ET(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = xn(i) : t[o] = i);
|
|
18776
18808
|
}
|
|
18777
18809
|
return t;
|
|
18778
18810
|
}
|
|
18779
|
-
function
|
|
18811
|
+
function NT(e) {
|
|
18780
18812
|
switch (typeof e) {
|
|
18781
18813
|
case "string":
|
|
18782
18814
|
return e;
|
|
18783
18815
|
case "number":
|
|
18784
|
-
return
|
|
18816
|
+
return xT(e);
|
|
18785
18817
|
case "boolean":
|
|
18786
|
-
return
|
|
18818
|
+
return AT(e);
|
|
18787
18819
|
case "bigint":
|
|
18788
18820
|
return Md ? Md(e) : "0";
|
|
18789
18821
|
case "symbol":
|
|
@@ -18807,43 +18839,43 @@ function AT(e) {
|
|
|
18807
18839
|
}
|
|
18808
18840
|
function Wr(e, t) {
|
|
18809
18841
|
for (; e !== null; ) {
|
|
18810
|
-
const r =
|
|
18842
|
+
const r = bT(e, t);
|
|
18811
18843
|
if (r) {
|
|
18812
18844
|
if (r.get)
|
|
18813
18845
|
return qt(r.get);
|
|
18814
18846
|
if (typeof r.value == "function")
|
|
18815
18847
|
return qt(r.value);
|
|
18816
18848
|
}
|
|
18817
|
-
e =
|
|
18849
|
+
e = yT(e);
|
|
18818
18850
|
}
|
|
18819
18851
|
function n() {
|
|
18820
18852
|
return null;
|
|
18821
18853
|
}
|
|
18822
18854
|
return n;
|
|
18823
18855
|
}
|
|
18824
|
-
function
|
|
18856
|
+
function _T(e) {
|
|
18825
18857
|
try {
|
|
18826
18858
|
return sn(e, ""), !0;
|
|
18827
18859
|
} catch {
|
|
18828
18860
|
return !1;
|
|
18829
18861
|
}
|
|
18830
18862
|
}
|
|
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"]),
|
|
18863
|
+
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"]), TT = 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"]), RT = 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"]), kT = Hn(/{{[\w\W]*|^[\w\W]*}}/g), FT = Hn(/<%[\w\W]*|^[\w\W]*%>/g), PT = Hn(/\${[\w\W]*/g), OT = Hn(/^data-[\-\w.\u00B7-\uFFFF]+$/), IT = Hn(/^aria-[\-\w]+$/), zd = Hn(
|
|
18832
18864
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
18833
18865
|
// eslint-disable-line no-useless-escape
|
|
18834
|
-
),
|
|
18866
|
+
), MT = Hn(/^(?:\w+script|data):/i), LT = Hn(
|
|
18835
18867
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
18836
18868
|
// eslint-disable-line no-control-regex
|
|
18837
|
-
),
|
|
18869
|
+
), DT = Hn(/^html$/i), BT = Hn(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = {
|
|
18838
18870
|
element: 1,
|
|
18839
18871
|
text: 3,
|
|
18840
18872
|
// Deprecated
|
|
18841
18873
|
progressingInstruction: 7,
|
|
18842
18874
|
comment: 8,
|
|
18843
18875
|
document: 9
|
|
18844
|
-
},
|
|
18876
|
+
}, $T = function() {
|
|
18845
18877
|
return typeof window > "u" ? null : window;
|
|
18846
|
-
},
|
|
18878
|
+
}, jT = function(t, n) {
|
|
18847
18879
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
18848
18880
|
return null;
|
|
18849
18881
|
let r = null;
|
|
@@ -18876,7 +18908,7 @@ const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
18876
18908
|
};
|
|
18877
18909
|
};
|
|
18878
18910
|
function Mg() {
|
|
18879
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
18911
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $T();
|
|
18880
18912
|
const t = (_e) => Mg(_e);
|
|
18881
18913
|
if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== bo.document || !e.Element)
|
|
18882
18914
|
return t.isSupported = !1, t;
|
|
@@ -18890,11 +18922,11 @@ function Mg() {
|
|
|
18890
18922
|
const N = n, x = N.implementation, P = N.createNodeIterator, T = N.createDocumentFragment, H = N.getElementsByTagName, J = r.importNode;
|
|
18891
18923
|
let F = Ud();
|
|
18892
18924
|
t.isSupported = typeof Og == "function" && typeof C == "function" && x && x.createHTMLDocument !== void 0;
|
|
18893
|
-
const B =
|
|
18925
|
+
const B = kT, O = FT, M = PT, I = OT, z = IT, D = MT, ae = LT, U = BT;
|
|
18894
18926
|
let K = zd, X = null;
|
|
18895
|
-
const ue = it({}, [...Dd, ...
|
|
18927
|
+
const ue = it({}, [...Dd, ...Ya, ...Xa, ...Ja, ...Bd]);
|
|
18896
18928
|
let ie = null;
|
|
18897
|
-
const G = it({}, [...$d, ...
|
|
18929
|
+
const G = it({}, [...$d, ...Qa, ...jd, ...Zi]);
|
|
18898
18930
|
let te = Object.seal(wo(null, {
|
|
18899
18931
|
tagNameCheck: {
|
|
18900
18932
|
writable: !0,
|
|
@@ -18938,7 +18970,7 @@ function Mg() {
|
|
|
18938
18970
|
let Qe = null;
|
|
18939
18971
|
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
18972
|
let ze = Nt, bt = !1, ht = null;
|
|
18941
|
-
const _t = it({}, [mt, Et, Nt],
|
|
18973
|
+
const _t = it({}, [mt, Et, Nt], qa);
|
|
18942
18974
|
let Vt = it({}, ["mi", "mo", "mn", "ms", "mtext"]), mn = it({}, ["annotation-xml"]);
|
|
18943
18975
|
const Nn = it({}, ["title", "style", "font", "a", "script"]);
|
|
18944
18976
|
let Ht = null;
|
|
@@ -18951,18 +18983,18 @@ function Mg() {
|
|
|
18951
18983
|
if (_n && _n === R)
|
|
18952
18984
|
return;
|
|
18953
18985
|
(!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" ?
|
|
18986
|
+
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 = _T(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
18987
|
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,
|
|
18988
|
+
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
18989
|
if (typeof R.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
18958
18990
|
throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
18959
18991
|
if (typeof R.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
18960
18992
|
throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
18961
18993
|
A = R.TRUSTED_TYPES_POLICY, E = A.createHTML("");
|
|
18962
18994
|
} else
|
|
18963
|
-
A === void 0 && (A =
|
|
18995
|
+
A === void 0 && (A = jT(g, o)), A !== null && typeof E == "string" && (E = A.createHTML(""));
|
|
18964
18996
|
vn && vn(R), _n = R;
|
|
18965
|
-
}, nn = it({}, [...
|
|
18997
|
+
}, nn = it({}, [...Ya, ...Xa, ...TT]), un = it({}, [...Ja, ...RT]), ur = function(R) {
|
|
18966
18998
|
let Y = C(R);
|
|
18967
18999
|
(!Y || !Y.tagName) && (Y = {
|
|
18968
19000
|
namespaceURI: ze,
|
|
@@ -19141,7 +19173,7 @@ function Mg() {
|
|
|
19141
19173
|
let at = Y.length;
|
|
19142
19174
|
for (; at--; ) {
|
|
19143
19175
|
const Ft = Y[at], Ct = Ft.name, $t = Ft.namespaceURI, $n = Ft.value, dn = Tt(Ct), so = $n;
|
|
19144
|
-
let jt = Ct === "value" ? so :
|
|
19176
|
+
let jt = Ct === "value" ? so : ST(so);
|
|
19145
19177
|
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
19178
|
kt(Ct, R);
|
|
19147
19179
|
continue;
|
|
@@ -19210,7 +19242,7 @@ function Mg() {
|
|
|
19210
19242
|
};
|
|
19211
19243
|
return t.sanitize = function(_e) {
|
|
19212
19244
|
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 =
|
|
19245
|
+
if (bt = !_e, bt && (_e = "<!-->"), typeof _e != "string" && !Sn(_e) && (_e = NT(_e), typeof _e != "string"))
|
|
19214
19246
|
throw Qi("dirty is not a string, aborting");
|
|
19215
19247
|
if (!t.isSupported)
|
|
19216
19248
|
return _e;
|
|
@@ -19246,7 +19278,7 @@ function Mg() {
|
|
|
19246
19278
|
return (ie.shadowroot || ie.shadowrootmode) && (Ft = J.call(r, Ft, !0)), Ft;
|
|
19247
19279
|
}
|
|
19248
19280
|
let $t = we ? Y.outerHTML : Y.innerHTML;
|
|
19249
|
-
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(
|
|
19281
|
+
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(DT, Y.ownerDocument.doctype.name) && ($t = "<!DOCTYPE " + Y.ownerDocument.doctype.name + `>
|
|
19250
19282
|
` + $t), Ae && ho([B, O, M], ($n) => {
|
|
19251
19283
|
$t = yo($t, $n, " ");
|
|
19252
19284
|
}), A && Ze ? A.createHTML($t) : $t;
|
|
@@ -19263,8 +19295,8 @@ function Mg() {
|
|
|
19263
19295
|
typeof R == "function" && go(F[_e], R);
|
|
19264
19296
|
}, t.removeHook = function(_e, R) {
|
|
19265
19297
|
if (R !== void 0) {
|
|
19266
|
-
const Y =
|
|
19267
|
-
return Y === -1 ? void 0 :
|
|
19298
|
+
const Y = vT(F[_e], R);
|
|
19299
|
+
return Y === -1 ? void 0 : wT(F[_e], Y, 1)[0];
|
|
19268
19300
|
}
|
|
19269
19301
|
return Pd(F[_e]);
|
|
19270
19302
|
}, t.removeHooks = function(_e) {
|
|
@@ -19273,8 +19305,8 @@ function Mg() {
|
|
|
19273
19305
|
F = Ud();
|
|
19274
19306
|
}, t;
|
|
19275
19307
|
}
|
|
19276
|
-
var
|
|
19277
|
-
const
|
|
19308
|
+
var zT = Mg();
|
|
19309
|
+
const UT = [
|
|
19278
19310
|
"a",
|
|
19279
19311
|
"b",
|
|
19280
19312
|
"br",
|
|
@@ -19301,7 +19333,7 @@ const $T = [
|
|
|
19301
19333
|
"tr",
|
|
19302
19334
|
"u",
|
|
19303
19335
|
"ul"
|
|
19304
|
-
],
|
|
19336
|
+
], VT = [
|
|
19305
19337
|
"href",
|
|
19306
19338
|
"target",
|
|
19307
19339
|
"rel",
|
|
@@ -19313,14 +19345,14 @@ const $T = [
|
|
|
19313
19345
|
"colspan",
|
|
19314
19346
|
"rowspan"
|
|
19315
19347
|
];
|
|
19316
|
-
function
|
|
19317
|
-
return e ?
|
|
19318
|
-
ALLOWED_TAGS: [
|
|
19319
|
-
ALLOWED_ATTR: [...
|
|
19348
|
+
function HT(e) {
|
|
19349
|
+
return e ? zT.sanitize(e, {
|
|
19350
|
+
ALLOWED_TAGS: [...UT],
|
|
19351
|
+
ALLOWED_ATTR: [...VT],
|
|
19320
19352
|
ALLOW_DATA_ATTR: !1
|
|
19321
19353
|
}) : "";
|
|
19322
19354
|
}
|
|
19323
|
-
function
|
|
19355
|
+
function WT(e, t, n = !1) {
|
|
19324
19356
|
return e.includes("{labelapi:") ? e.replace(/\{labelapi:([^}]+)\}/g, (r, o) => {
|
|
19325
19357
|
const i = o.trim();
|
|
19326
19358
|
if (i === "" || t == null) return n ? "" : r;
|
|
@@ -19328,7 +19360,7 @@ function UT(e, t, n = !1) {
|
|
|
19328
19360
|
return s == null ? n ? "" : r : String(s);
|
|
19329
19361
|
}) : e;
|
|
19330
19362
|
}
|
|
19331
|
-
function
|
|
19363
|
+
function GT(e) {
|
|
19332
19364
|
return e && e.replace(/\{api:[^}]*\}/gi, "").replace(/\{labelapi:[^}]*\}/gi, "").replace(/\{resp:[^}]*\}/gi, "").replace(/\{(?:ctx:|@)\w+\}/gi, "").replace(/\{documentId\}/gi, "").replace(/\{(\w+)\}/g, "");
|
|
19333
19365
|
}
|
|
19334
19366
|
const Vd = {
|
|
@@ -19355,17 +19387,17 @@ const Vd = {
|
|
|
19355
19387
|
function to(e) {
|
|
19356
19388
|
return e.properties ?? {};
|
|
19357
19389
|
}
|
|
19358
|
-
function
|
|
19390
|
+
function KT(e) {
|
|
19359
19391
|
const t = to(e);
|
|
19360
19392
|
return t.textContent !== void 0 ? t.textContent : e.label ?? "";
|
|
19361
19393
|
}
|
|
19362
|
-
function
|
|
19394
|
+
function qT(e) {
|
|
19363
19395
|
return to(e).textContent === void 0 || e.appearance?.hideLabel ? !1 : !!e.label?.trim();
|
|
19364
19396
|
}
|
|
19365
|
-
function
|
|
19397
|
+
function YT(e) {
|
|
19366
19398
|
return e?.contentLayout === "paragraph" ? "paragraph" : "single";
|
|
19367
19399
|
}
|
|
19368
|
-
function
|
|
19400
|
+
function Za(e, t = {}) {
|
|
19369
19401
|
const {
|
|
19370
19402
|
formValues: n = {},
|
|
19371
19403
|
urlParams: r = {},
|
|
@@ -19380,18 +19412,18 @@ function el(e, t = {}) {
|
|
|
19380
19412
|
o,
|
|
19381
19413
|
i,
|
|
19382
19414
|
s
|
|
19383
|
-
), u =
|
|
19384
|
-
return
|
|
19415
|
+
), u = WT(c, a, !0);
|
|
19416
|
+
return GT(u);
|
|
19385
19417
|
}
|
|
19386
|
-
const
|
|
19387
|
-
function
|
|
19388
|
-
return
|
|
19418
|
+
const XT = /\{api:[^}]+\}/, JT = /\{labelapi:[^}]+\}/;
|
|
19419
|
+
function el(e) {
|
|
19420
|
+
return XT.test(e);
|
|
19389
19421
|
}
|
|
19390
|
-
function
|
|
19391
|
-
return
|
|
19422
|
+
function tl(e) {
|
|
19423
|
+
return JT.test(e);
|
|
19392
19424
|
}
|
|
19393
|
-
function
|
|
19394
|
-
const t = e.captionTemplate ?? "", n = e.descriptionTemplate ?? "", r =
|
|
19425
|
+
function QT(e) {
|
|
19426
|
+
const t = e.captionTemplate ?? "", n = e.descriptionTemplate ?? "", r = el(e.bodyTemplate) || el(t) || el(n), o = tl(e.bodyTemplate) || tl(t) || tl(n);
|
|
19395
19427
|
return !!(r && e.prepopulateLoading || o && e.labelApiConfigPresent && (e.labelApiLoading || e.labelApiResponse === void 0 && e.labelApiError == null));
|
|
19396
19428
|
}
|
|
19397
19429
|
function Gd(e, t) {
|
|
@@ -19412,7 +19444,7 @@ function Gd(e, t) {
|
|
|
19412
19444
|
n.textAlign && _s[n.textAlign]
|
|
19413
19445
|
);
|
|
19414
19446
|
}
|
|
19415
|
-
function
|
|
19447
|
+
function ZT(e, t) {
|
|
19416
19448
|
const n = (t ?? to(e)).variant ?? "body";
|
|
19417
19449
|
return n === "body" ? "p" : n;
|
|
19418
19450
|
}
|
|
@@ -19438,21 +19470,21 @@ function jc(e) {
|
|
|
19438
19470
|
}
|
|
19439
19471
|
return o(), t;
|
|
19440
19472
|
}
|
|
19441
|
-
function
|
|
19473
|
+
function eR(e) {
|
|
19442
19474
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
19443
19475
|
}
|
|
19444
19476
|
function Lg(e) {
|
|
19445
19477
|
return e.map((t) => {
|
|
19446
|
-
if (t.type === "text") return
|
|
19478
|
+
if (t.type === "text") return eR(t.value);
|
|
19447
19479
|
const n = Lg(t.children);
|
|
19448
19480
|
return t.type === "bold" ? `<strong class="font-bold">${n}</strong>` : t.type === "italic" ? `<em class="italic">${n}</em>` : `<u class="underline">${n}</u>`;
|
|
19449
19481
|
}).join("");
|
|
19450
19482
|
}
|
|
19451
|
-
function
|
|
19483
|
+
function tR(e) {
|
|
19452
19484
|
return e ? Lg(jc(e)) : "";
|
|
19453
19485
|
}
|
|
19454
|
-
function
|
|
19455
|
-
return e ? t === "markdown-lite" ?
|
|
19486
|
+
function nR(e, t) {
|
|
19487
|
+
return e ? t === "markdown-lite" ? tR(e) : e : "";
|
|
19456
19488
|
}
|
|
19457
19489
|
function Dg(e, t) {
|
|
19458
19490
|
return e.map((n, r) => {
|
|
@@ -19470,18 +19502,18 @@ function Kd(e, t) {
|
|
|
19470
19502
|
const n = jc(e);
|
|
19471
19503
|
return n.length === 1 && n[0]?.type === "text" ? n[0].value : Dg(n, "tl");
|
|
19472
19504
|
}
|
|
19473
|
-
const
|
|
19505
|
+
const rR = "text-label-html prose prose-sm max-w-none [&_p]:m-0 [&_p+p]:mt-2 [&_ul]:my-1 [&_ol]:my-1";
|
|
19474
19506
|
function qd(e, t) {
|
|
19475
19507
|
if (!e) return null;
|
|
19476
|
-
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ??
|
|
19508
|
+
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ?? YT(o), s = o.inlineFormat ?? "none";
|
|
19477
19509
|
if (i === "paragraph") {
|
|
19478
|
-
const c =
|
|
19510
|
+
const c = HT(nR(e, s));
|
|
19479
19511
|
if (!c) return null;
|
|
19480
19512
|
const u = r ? L(
|
|
19481
19513
|
"m-0 text-sm",
|
|
19482
19514
|
o.descriptionMuted !== !1 ? "text-muted-foreground" : "text-foreground",
|
|
19483
19515
|
o.textAlign && _s[o.textAlign]
|
|
19484
|
-
) : L(Gd(n, o),
|
|
19516
|
+
) : L(Gd(n, o), rR);
|
|
19485
19517
|
return Lt.createElement("div", {
|
|
19486
19518
|
className: u,
|
|
19487
19519
|
dangerouslySetInnerHTML: { __html: c }
|
|
@@ -19499,14 +19531,14 @@ function qd(e, t) {
|
|
|
19499
19531
|
},
|
|
19500
19532
|
Kd(e, s)
|
|
19501
19533
|
);
|
|
19502
|
-
const a =
|
|
19534
|
+
const a = ZT(n, o);
|
|
19503
19535
|
return Lt.createElement(
|
|
19504
19536
|
a,
|
|
19505
19537
|
{ className: Gd(n, o) },
|
|
19506
19538
|
Kd(e, s)
|
|
19507
19539
|
);
|
|
19508
19540
|
}
|
|
19509
|
-
function
|
|
19541
|
+
function oR(e) {
|
|
19510
19542
|
const t = e.labelApiEndpoint?.trim();
|
|
19511
19543
|
return !e.labelApiEnabled || !t ? null : {
|
|
19512
19544
|
labelApiEndpoint: t,
|
|
@@ -19516,7 +19548,7 @@ function tR(e) {
|
|
|
19516
19548
|
labelApiBodyFields: e.labelApiBodyFields
|
|
19517
19549
|
};
|
|
19518
19550
|
}
|
|
19519
|
-
async function
|
|
19551
|
+
async function iR(e, t = {}) {
|
|
19520
19552
|
const {
|
|
19521
19553
|
formValues: n = {},
|
|
19522
19554
|
urlParams: r = {},
|
|
@@ -19551,7 +19583,7 @@ async function nR(e, t = {}) {
|
|
|
19551
19583
|
throw new Error(m ? `HTTP ${m}: ${g}` : String(g));
|
|
19552
19584
|
}
|
|
19553
19585
|
}
|
|
19554
|
-
const
|
|
19586
|
+
const sR = ({
|
|
19555
19587
|
field: e,
|
|
19556
19588
|
className: t,
|
|
19557
19589
|
formValues: n,
|
|
@@ -19562,7 +19594,7 @@ const rR = ({
|
|
|
19562
19594
|
prepopulateLoading: a = !1
|
|
19563
19595
|
}) => {
|
|
19564
19596
|
const c = to(e), u = pe(
|
|
19565
|
-
() =>
|
|
19597
|
+
() => oR(to(e)),
|
|
19566
19598
|
[e.properties]
|
|
19567
19599
|
), [l, d] = Ee(void 0), [p, m] = Ee(!1), [g, h] = Ee(null), y = pe(
|
|
19568
19600
|
() => u ? JSON.stringify({
|
|
@@ -19580,7 +19612,7 @@ const rR = ({
|
|
|
19580
19612
|
}
|
|
19581
19613
|
m(!0), h(null);
|
|
19582
19614
|
try {
|
|
19583
|
-
const H = await
|
|
19615
|
+
const H = await iR(u, {
|
|
19584
19616
|
formValues: n ?? {},
|
|
19585
19617
|
urlParams: r ?? {},
|
|
19586
19618
|
submissionContext: o
|
|
@@ -19595,7 +19627,7 @@ const rR = ({
|
|
|
19595
19627
|
wt(() => {
|
|
19596
19628
|
y && v();
|
|
19597
19629
|
}, [y, v]);
|
|
19598
|
-
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S =
|
|
19630
|
+
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S = KT(e), C = qT(e), k = C && e.label ? e.label : "", A = e.description ?? "", E = QT({
|
|
19599
19631
|
bodyTemplate: S,
|
|
19600
19632
|
captionTemplate: k,
|
|
19601
19633
|
descriptionTemplate: A,
|
|
@@ -19611,7 +19643,7 @@ const rR = ({
|
|
|
19611
19643
|
buttonResponses: i,
|
|
19612
19644
|
prepopulateResponse: s,
|
|
19613
19645
|
labelApiResponse: l
|
|
19614
|
-
}, x = S ?
|
|
19646
|
+
}, x = S ? Za(S, N) : "", P = C && e.label ? Za(e.label, N) : "", T = A ? Za(A, N) : "";
|
|
19615
19647
|
return /* @__PURE__ */ f(
|
|
19616
19648
|
"div",
|
|
19617
19649
|
{
|
|
@@ -19632,7 +19664,7 @@ const rR = ({
|
|
|
19632
19664
|
] })
|
|
19633
19665
|
}
|
|
19634
19666
|
);
|
|
19635
|
-
},
|
|
19667
|
+
}, nl = ({
|
|
19636
19668
|
legend: e,
|
|
19637
19669
|
children: t,
|
|
19638
19670
|
className: n,
|
|
@@ -19720,16 +19752,16 @@ const rR = ({
|
|
|
19720
19752
|
}) => {
|
|
19721
19753
|
switch (e.type) {
|
|
19722
19754
|
case "divider":
|
|
19723
|
-
return /* @__PURE__ */ f(
|
|
19755
|
+
return /* @__PURE__ */ f(oT, { field: e, className: c });
|
|
19724
19756
|
case "header":
|
|
19725
|
-
return /* @__PURE__ */ f(rT, { field: e, className: c });
|
|
19726
|
-
case "sectionHeading":
|
|
19727
19757
|
return /* @__PURE__ */ f(sT, { field: e, className: c });
|
|
19758
|
+
case "sectionHeading":
|
|
19759
|
+
return /* @__PURE__ */ f(cT, { field: e, className: c });
|
|
19728
19760
|
case "spacer":
|
|
19729
|
-
return /* @__PURE__ */ f(
|
|
19761
|
+
return /* @__PURE__ */ f(uT, { field: e, className: c });
|
|
19730
19762
|
case "textLabel":
|
|
19731
19763
|
return /* @__PURE__ */ f(
|
|
19732
|
-
|
|
19764
|
+
sR,
|
|
19733
19765
|
{
|
|
19734
19766
|
field: e,
|
|
19735
19767
|
className: c,
|
|
@@ -19743,7 +19775,7 @@ const rR = ({
|
|
|
19743
19775
|
);
|
|
19744
19776
|
case "status":
|
|
19745
19777
|
return /* @__PURE__ */ f(
|
|
19746
|
-
|
|
19778
|
+
Y_,
|
|
19747
19779
|
{
|
|
19748
19780
|
field: e,
|
|
19749
19781
|
value: t ?? null,
|
|
@@ -19763,7 +19795,7 @@ const rR = ({
|
|
|
19763
19795
|
case "password":
|
|
19764
19796
|
case "url":
|
|
19765
19797
|
return /* @__PURE__ */ f(
|
|
19766
|
-
|
|
19798
|
+
dl,
|
|
19767
19799
|
{
|
|
19768
19800
|
field: e,
|
|
19769
19801
|
value: t || "",
|
|
@@ -19947,7 +19979,7 @@ const rR = ({
|
|
|
19947
19979
|
valueLength: D.length,
|
|
19948
19980
|
submissionContextKeys: l ? Object.keys(l) : []
|
|
19949
19981
|
}), /* @__PURE__ */ f(
|
|
19950
|
-
|
|
19982
|
+
J_,
|
|
19951
19983
|
{
|
|
19952
19984
|
field: e,
|
|
19953
19985
|
value: D,
|
|
@@ -20088,7 +20120,7 @@ const rR = ({
|
|
|
20088
20120
|
);
|
|
20089
20121
|
case "billingGrid":
|
|
20090
20122
|
return /* @__PURE__ */ f(
|
|
20091
|
-
|
|
20123
|
+
q_,
|
|
20092
20124
|
{
|
|
20093
20125
|
field: e,
|
|
20094
20126
|
value: t || { rows: [] },
|
|
@@ -20180,7 +20212,7 @@ const rR = ({
|
|
|
20180
20212
|
e.type
|
|
20181
20213
|
] }) });
|
|
20182
20214
|
}
|
|
20183
|
-
},
|
|
20215
|
+
}, aR = ({
|
|
20184
20216
|
steps: e,
|
|
20185
20217
|
currentStep: t,
|
|
20186
20218
|
completedSteps: n,
|
|
@@ -20252,7 +20284,7 @@ function Qo(e) {
|
|
|
20252
20284
|
function Yd(e) {
|
|
20253
20285
|
return Array.isArray(e) ? e.map(Qo) : [];
|
|
20254
20286
|
}
|
|
20255
|
-
function
|
|
20287
|
+
function lR(e) {
|
|
20256
20288
|
if (!e.moduleId)
|
|
20257
20289
|
throw new Error(
|
|
20258
20290
|
`Form response missing required field: moduleId. Form ID: ${e._id || e.id}. Please ensure the backend returns moduleId when fetching forms.`
|
|
@@ -20284,7 +20316,7 @@ function iR(e) {
|
|
|
20284
20316
|
config: e.config ?? void 0
|
|
20285
20317
|
};
|
|
20286
20318
|
}
|
|
20287
|
-
class
|
|
20319
|
+
class cR {
|
|
20288
20320
|
basePath = "/api/form-builder/forms";
|
|
20289
20321
|
/**
|
|
20290
20322
|
* Get form for rendering (fields, layout, rules, client overrides, optional BFF_submit_api).
|
|
@@ -20303,7 +20335,7 @@ class sR {
|
|
|
20303
20335
|
`Form response missing required field: tenantId. Form ID: ${t}. Please ensure the backend returns tenantId for non-default forms.`
|
|
20304
20336
|
);
|
|
20305
20337
|
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 =
|
|
20338
|
+
const l = lR(c);
|
|
20307
20339
|
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
20340
|
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
20341
|
return {
|
|
@@ -20318,7 +20350,7 @@ class sR {
|
|
|
20318
20350
|
};
|
|
20319
20351
|
}
|
|
20320
20352
|
}
|
|
20321
|
-
const
|
|
20353
|
+
const uR = new cR();
|
|
20322
20354
|
function Pr({
|
|
20323
20355
|
className: e,
|
|
20324
20356
|
size: t = "md",
|
|
@@ -20339,7 +20371,7 @@ function Pr({
|
|
|
20339
20371
|
] });
|
|
20340
20372
|
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
20373
|
}
|
|
20342
|
-
const
|
|
20374
|
+
const dR = {
|
|
20343
20375
|
submitAction: "database",
|
|
20344
20376
|
autoSave: !0,
|
|
20345
20377
|
autoSaveInterval: 30,
|
|
@@ -20354,19 +20386,19 @@ const lR = {
|
|
|
20354
20386
|
showReset: !1,
|
|
20355
20387
|
successMessage: "Form submitted successfully!",
|
|
20356
20388
|
errorMessage: "An error occurred. Please try again."
|
|
20357
|
-
},
|
|
20358
|
-
function
|
|
20359
|
-
return { ...
|
|
20389
|
+
}, fR = 300;
|
|
20390
|
+
function pR() {
|
|
20391
|
+
return { ...dR };
|
|
20360
20392
|
}
|
|
20361
|
-
function
|
|
20393
|
+
function mR(e) {
|
|
20362
20394
|
if (!e || typeof e != "object") return;
|
|
20363
20395
|
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
20396
|
if (!(n != null && n !== "" || r != null && r !== "" || o.length > 0)) return;
|
|
20365
20397
|
const s = {};
|
|
20366
20398
|
return n != null && n !== "" && (s.visibleToUserType = n), r != null && r !== "" && (s.visibleToUserRole = r), o.length > 0 && (s.visibleToUserIds = o), s;
|
|
20367
20399
|
}
|
|
20368
|
-
function
|
|
20369
|
-
const t =
|
|
20400
|
+
function hR(e) {
|
|
20401
|
+
const t = pR();
|
|
20370
20402
|
if (!e || typeof e != "object")
|
|
20371
20403
|
return t;
|
|
20372
20404
|
const n = e;
|
|
@@ -20495,7 +20527,7 @@ function ss(e, t, n, r) {
|
|
|
20495
20527
|
const { disabled: k, readOnly: A, hidden: E, ...N } = p, x = {};
|
|
20496
20528
|
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
20529
|
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 =
|
|
20530
|
+
let I = mR(M);
|
|
20499
20531
|
if (M && !I) {
|
|
20500
20532
|
const U = M;
|
|
20501
20533
|
(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 +20609,7 @@ function ss(e, t, n, r) {
|
|
|
20577
20609
|
}), c != null)
|
|
20578
20610
|
try {
|
|
20579
20611
|
const l = typeof c == "string" ? JSON.parse(c) : c;
|
|
20580
|
-
l && typeof l == "object" ? a =
|
|
20612
|
+
l && typeof l == "object" ? a = hR(l) : a = {
|
|
20581
20613
|
submitAction: "database",
|
|
20582
20614
|
layout: "default",
|
|
20583
20615
|
autoSave: !0,
|
|
@@ -20601,7 +20633,7 @@ function ss(e, t, n, r) {
|
|
|
20601
20633
|
validateOnChange: !0,
|
|
20602
20634
|
showFieldErrors: "inline"
|
|
20603
20635
|
};
|
|
20604
|
-
const u =
|
|
20636
|
+
const u = ll(n);
|
|
20605
20637
|
return u && (a = { ...a, grid: u }), {
|
|
20606
20638
|
id: e.id,
|
|
20607
20639
|
name: e.name,
|
|
@@ -20620,7 +20652,7 @@ function ss(e, t, n, r) {
|
|
|
20620
20652
|
isDefault: e.isDefault
|
|
20621
20653
|
};
|
|
20622
20654
|
}
|
|
20623
|
-
const
|
|
20655
|
+
const gR = 3;
|
|
20624
20656
|
function vo(e) {
|
|
20625
20657
|
if (typeof e == "number" && !Number.isNaN(e)) return e;
|
|
20626
20658
|
}
|
|
@@ -20661,9 +20693,9 @@ function Xd(e) {
|
|
|
20661
20693
|
return t.length >= 2 ? "row" : "stack";
|
|
20662
20694
|
}
|
|
20663
20695
|
function Bg(e) {
|
|
20664
|
-
return zc(e).slice(0,
|
|
20696
|
+
return zc(e).slice(0, gR);
|
|
20665
20697
|
}
|
|
20666
|
-
function
|
|
20698
|
+
function yR(e, t) {
|
|
20667
20699
|
const n = /* @__PURE__ */ new Map();
|
|
20668
20700
|
for (const r of e) {
|
|
20669
20701
|
if (!t(r) || typeof r.position?.order != "number") continue;
|
|
@@ -20685,13 +20717,13 @@ function Jd(e, t, n, r) {
|
|
|
20685
20717
|
const s = [...i.values()][0] ?? [];
|
|
20686
20718
|
return Bg(s);
|
|
20687
20719
|
}
|
|
20688
|
-
function
|
|
20720
|
+
function bR(e, t, n, r) {
|
|
20689
20721
|
const o = n[0], i = o.position?.order, s = o.position?.column ?? 1;
|
|
20690
20722
|
if (typeof i != "number") return !1;
|
|
20691
20723
|
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
20724
|
return l && d && !u;
|
|
20693
20725
|
}
|
|
20694
|
-
function
|
|
20726
|
+
function vR(e, t, n) {
|
|
20695
20727
|
const r = new Set(n ?? []);
|
|
20696
20728
|
for (const o of e) {
|
|
20697
20729
|
const i = o[0]?.position?.order ?? 0, { rowSpan: s } = Zo(o, t);
|
|
@@ -20699,7 +20731,7 @@ function gR(e, t, n) {
|
|
|
20699
20731
|
}
|
|
20700
20732
|
return r;
|
|
20701
20733
|
}
|
|
20702
|
-
function
|
|
20734
|
+
function wR(e) {
|
|
20703
20735
|
const t = [...e].sort((r, o) => r - o), n = /* @__PURE__ */ new Map();
|
|
20704
20736
|
return t.forEach((r, o) => n.set(r, o)), {
|
|
20705
20737
|
originalToDisplay: n,
|
|
@@ -20707,7 +20739,7 @@ function yR(e) {
|
|
|
20707
20739
|
sortedOriginalRows: t
|
|
20708
20740
|
};
|
|
20709
20741
|
}
|
|
20710
|
-
function
|
|
20742
|
+
function SR(e, t, n) {
|
|
20711
20743
|
const r = n.get(e);
|
|
20712
20744
|
if (r === void 0) return;
|
|
20713
20745
|
let o = 0;
|
|
@@ -20758,7 +20790,7 @@ function jg(e) {
|
|
|
20758
20790
|
const t = e.apidata;
|
|
20759
20791
|
return En(t) && Object.keys(t).length > 0;
|
|
20760
20792
|
}
|
|
20761
|
-
function
|
|
20793
|
+
function xR(e) {
|
|
20762
20794
|
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
20795
|
const t = e.fieldKey, n = e.fieldType, r = e.name, o = e.type;
|
|
20764
20796
|
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 +20812,7 @@ const zg = [
|
|
|
20780
20812
|
"minWidth",
|
|
20781
20813
|
"minHeight"
|
|
20782
20814
|
];
|
|
20783
|
-
function
|
|
20815
|
+
function AR(e, t) {
|
|
20784
20816
|
const n = e.appearance, r = En(n) && Object.keys(n).length > 0 ? Fo(n) : {}, o = no(t.appearance), i = { ...r };
|
|
20785
20817
|
for (const [s, a] of Object.entries(o))
|
|
20786
20818
|
s !== "heightPercent" && i[s] === void 0 && (i[s] = Fo(a));
|
|
@@ -20788,7 +20820,7 @@ function wR(e, t) {
|
|
|
20788
20820
|
i[s] === void 0 && t[s] !== void 0 && (i[s] = t[s]);
|
|
20789
20821
|
return delete i.heightPercent, Object.keys(i).length > 0 ? i : void 0;
|
|
20790
20822
|
}
|
|
20791
|
-
function
|
|
20823
|
+
function CR(e, t) {
|
|
20792
20824
|
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
20825
|
order: i,
|
|
20794
20826
|
column: s,
|
|
@@ -20800,18 +20832,18 @@ function SR(e, t) {
|
|
|
20800
20832
|
}), p = si(n) ?? si(o) ?? (r.stackDirection === "horizontal" || o.stackDirection === "horizontal" ? "row" : r.stackDirection === "vertical" || o.stackDirection === "vertical" ? "stack" : void 0);
|
|
20801
20833
|
return typeof l == "string" && (u.cellGroupId = l), typeof d == "number" && (u.cellSlot = d), (p === "row" || p === "stack") && (u.sharedCellLayout = p), u;
|
|
20802
20834
|
}
|
|
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 =
|
|
20835
|
+
function ER(e, t) {
|
|
20836
|
+
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 = AR(n, r), l = CR(n, t), d = { ...n };
|
|
20805
20837
|
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
20838
|
}
|
|
20807
|
-
function
|
|
20839
|
+
function NR(e, t) {
|
|
20808
20840
|
if (!e || typeof e != "object") return !0;
|
|
20809
20841
|
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 (
|
|
20842
|
+
if (xR(n) || !o || !i) return !1;
|
|
20811
20843
|
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)) ||
|
|
20844
|
+
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)) || _R(n));
|
|
20813
20845
|
}
|
|
20814
|
-
function
|
|
20846
|
+
function _R(e) {
|
|
20815
20847
|
const t = no(e.position), n = no(e.layout), r = ma(e.metadata);
|
|
20816
20848
|
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
20849
|
}
|
|
@@ -20823,17 +20855,17 @@ function Uc(e) {
|
|
|
20823
20855
|
return e;
|
|
20824
20856
|
let n = !1;
|
|
20825
20857
|
const r = t.map((o, i) => {
|
|
20826
|
-
if (
|
|
20858
|
+
if (NR(o))
|
|
20827
20859
|
return o;
|
|
20828
|
-
const s =
|
|
20860
|
+
const s = ER(o, i);
|
|
20829
20861
|
return s !== o && (n = !0), s;
|
|
20830
20862
|
});
|
|
20831
20863
|
return n ? { ...e, fields: r } : e;
|
|
20832
20864
|
}
|
|
20833
|
-
function
|
|
20865
|
+
function mP(e) {
|
|
20834
20866
|
return Uc(e);
|
|
20835
20867
|
}
|
|
20836
|
-
const
|
|
20868
|
+
const TR = new Set(
|
|
20837
20869
|
[
|
|
20838
20870
|
"PENDING_PAYMENT",
|
|
20839
20871
|
"PAYMENT_PENDING",
|
|
@@ -20847,18 +20879,18 @@ const ER = new Set(
|
|
|
20847
20879
|
"PARTIALLY_PAID"
|
|
20848
20880
|
].map((e) => e.toUpperCase())
|
|
20849
20881
|
);
|
|
20850
|
-
function
|
|
20882
|
+
function rl(e) {
|
|
20851
20883
|
return typeof e == "string" && e.trim() !== "";
|
|
20852
20884
|
}
|
|
20853
20885
|
function Bl(e) {
|
|
20854
20886
|
if (e == null || typeof e != "object" || Array.isArray(e))
|
|
20855
20887
|
return !1;
|
|
20856
20888
|
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" ||
|
|
20889
|
+
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
20890
|
const n = t.status;
|
|
20859
|
-
return !!(typeof n == "string" &&
|
|
20891
|
+
return !!(typeof n == "string" && TR.has(n.trim().toUpperCase()));
|
|
20860
20892
|
}
|
|
20861
|
-
function
|
|
20893
|
+
function RR(e) {
|
|
20862
20894
|
const t = et(e, "data.items");
|
|
20863
20895
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
20864
20896
|
const n = t[0];
|
|
@@ -20867,37 +20899,37 @@ function NR(e) {
|
|
|
20867
20899
|
if (!(r.id === void 0 || r.id === null || r.id === ""))
|
|
20868
20900
|
return { item: r, id: r.id };
|
|
20869
20901
|
}
|
|
20870
|
-
function
|
|
20871
|
-
const n =
|
|
20902
|
+
function kR(e, t) {
|
|
20903
|
+
const n = RR(e);
|
|
20872
20904
|
if (!n) return;
|
|
20873
20905
|
const r = et(e, "data"), o = r != null && typeof r == "object" && !Array.isArray(r) ? r : void 0;
|
|
20874
20906
|
if (t?.treatFirstItemIdAsPaymentId === !0 || Bl(n.item) || o != null && Bl(o))
|
|
20875
20907
|
return n.id;
|
|
20876
20908
|
}
|
|
20877
|
-
function
|
|
20909
|
+
function FR(e) {
|
|
20878
20910
|
const t = e.properties, n = e.metadata;
|
|
20879
20911
|
return [t?.uploadApiEndpoint, t?.apiEndpoint, n?.uploadApiEndpoint, n?.apiEndpoint].filter(
|
|
20880
20912
|
(o) => typeof o == "string" && o.length > 0
|
|
20881
20913
|
);
|
|
20882
20914
|
}
|
|
20883
|
-
function
|
|
20884
|
-
return
|
|
20915
|
+
function PR(e) {
|
|
20916
|
+
return FR(e).some((t) => t.toLowerCase().includes("payment"));
|
|
20885
20917
|
}
|
|
20886
|
-
function
|
|
20918
|
+
function OR(e) {
|
|
20887
20919
|
const t = e.properties, n = e.metadata;
|
|
20888
20920
|
return !!(t?.mergeSuccessDataIdAsPaymentId || n?.mergeSuccessDataIdAsPaymentId);
|
|
20889
20921
|
}
|
|
20890
|
-
function
|
|
20922
|
+
function IR(e, t) {
|
|
20891
20923
|
if (t?.type !== "button" || !ti(e))
|
|
20892
20924
|
return;
|
|
20893
20925
|
const n = et(e, "data.id");
|
|
20894
20926
|
if (n == null || String(n).trim() === "")
|
|
20895
20927
|
return;
|
|
20896
20928
|
const r = et(e, "data");
|
|
20897
|
-
if (
|
|
20929
|
+
if (OR(t) || r != null && typeof r == "object" && !Array.isArray(r) && Bl(r) || PR(t))
|
|
20898
20930
|
return n;
|
|
20899
20931
|
}
|
|
20900
|
-
const
|
|
20932
|
+
const MR = /* @__PURE__ */ new Set([
|
|
20901
20933
|
"section",
|
|
20902
20934
|
"group",
|
|
20903
20935
|
"columns",
|
|
@@ -20909,7 +20941,7 @@ const PR = /* @__PURE__ */ new Set([
|
|
|
20909
20941
|
"textLabel",
|
|
20910
20942
|
"customizeSections"
|
|
20911
20943
|
]);
|
|
20912
|
-
function
|
|
20944
|
+
function LR(e, t) {
|
|
20913
20945
|
if (!e.length || !t?.length) return [];
|
|
20914
20946
|
const n = new Map(t.map((o) => [o.id, o])), r = [];
|
|
20915
20947
|
for (const o of e) {
|
|
@@ -20920,8 +20952,8 @@ function OR(e, t) {
|
|
|
20920
20952
|
}
|
|
20921
20953
|
return r;
|
|
20922
20954
|
}
|
|
20923
|
-
function
|
|
20924
|
-
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o =
|
|
20955
|
+
function DR(e, t) {
|
|
20956
|
+
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o = LR(
|
|
20925
20957
|
Array.isArray(n?.linkedSectionIds) ? n.linkedSectionIds : [],
|
|
20926
20958
|
t
|
|
20927
20959
|
), i = /* @__PURE__ */ new Set(), s = [];
|
|
@@ -20935,7 +20967,7 @@ function Ug(e, t) {
|
|
|
20935
20967
|
const o = new Map(t.map((i) => [i.id, i]));
|
|
20936
20968
|
return r.map((i) => o.get(i)).filter((i) => !!i);
|
|
20937
20969
|
}
|
|
20938
|
-
function
|
|
20970
|
+
function BR(e, t) {
|
|
20939
20971
|
return Ug(e, t).find((n) => n.heading?.enabled);
|
|
20940
20972
|
}
|
|
20941
20973
|
function Vg(e, t) {
|
|
@@ -20943,15 +20975,15 @@ function Vg(e, t) {
|
|
|
20943
20975
|
return (e.mode ?? "increment") === "fixed" ? n : n.replace(/\{n\}/g, String(t + 1));
|
|
20944
20976
|
}
|
|
20945
20977
|
function Qd(e, t, n, r) {
|
|
20946
|
-
const o =
|
|
20978
|
+
const o = DR(e, n);
|
|
20947
20979
|
if (o.length === 0) return [];
|
|
20948
20980
|
const i = new Set(o);
|
|
20949
20981
|
return t.filter((s) => {
|
|
20950
20982
|
const a = r(s);
|
|
20951
|
-
return !a || s.id === e.id ||
|
|
20983
|
+
return !a || s.id === e.id || MR.has(s.type) ? !1 : i.has(a);
|
|
20952
20984
|
});
|
|
20953
20985
|
}
|
|
20954
|
-
function
|
|
20986
|
+
function $R(e, t, n) {
|
|
20955
20987
|
if (e.type !== "sectionHeading" || !t?.length) return;
|
|
20956
20988
|
const r = n(e);
|
|
20957
20989
|
if (r)
|
|
@@ -20968,7 +21000,7 @@ function Vc(e) {
|
|
|
20968
21000
|
return i - s;
|
|
20969
21001
|
});
|
|
20970
21002
|
}
|
|
20971
|
-
function
|
|
21003
|
+
function jR(e, t, n) {
|
|
20972
21004
|
if (!e?.length) return [];
|
|
20973
21005
|
const r = e.filter((s) => s.showBorder === !0);
|
|
20974
21006
|
if (r.length === 0) return [];
|
|
@@ -20994,14 +21026,14 @@ function Hg(e, t, n) {
|
|
|
20994
21026
|
const r = t.heading;
|
|
20995
21027
|
return !r?.enabled || !r.headingFieldName ? !1 : n(e) === r.headingFieldName;
|
|
20996
21028
|
}
|
|
20997
|
-
function
|
|
21029
|
+
function zR(e, t) {
|
|
20998
21030
|
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
21031
|
return { row: n, col: r, rowEnd: n + o - 1, colEnd: r + i - 1 };
|
|
21000
21032
|
}
|
|
21001
21033
|
function Hc(e, t) {
|
|
21002
21034
|
let n = 1 / 0, r = -1 / 0, o = 1 / 0, i = -1 / 0;
|
|
21003
21035
|
for (const s of e) {
|
|
21004
|
-
const { row: a, col: c, rowEnd: u, colEnd: l } =
|
|
21036
|
+
const { row: a, col: c, rowEnd: u, colEnd: l } = zR(s, t);
|
|
21005
21037
|
n = Math.min(n, a), r = Math.max(r, u), o = Math.min(o, c), i = Math.max(i, l);
|
|
21006
21038
|
}
|
|
21007
21039
|
return Number.isFinite(n) ? {
|
|
@@ -21013,7 +21045,7 @@ function Hc(e, t) {
|
|
|
21013
21045
|
colSpan: i - o + 1
|
|
21014
21046
|
} : null;
|
|
21015
21047
|
}
|
|
21016
|
-
function
|
|
21048
|
+
function UR(e, t, n, r) {
|
|
21017
21049
|
const o = e.map((l) => t.find((d) => r(d) === l)).filter((l) => !!l && typeof l.position?.order == "number");
|
|
21018
21050
|
if (o.length === 0) return null;
|
|
21019
21051
|
const i = Hc(o, n);
|
|
@@ -21032,10 +21064,10 @@ function $R(e, t, n, r) {
|
|
|
21032
21064
|
blockHeight: u
|
|
21033
21065
|
};
|
|
21034
21066
|
}
|
|
21035
|
-
function
|
|
21067
|
+
function VR(e, t) {
|
|
21036
21068
|
return e.maxRow + 1 + t * e.blockHeight;
|
|
21037
21069
|
}
|
|
21038
|
-
function
|
|
21070
|
+
function HR(e, t, n, r) {
|
|
21039
21071
|
const o = /* @__PURE__ */ new Map();
|
|
21040
21072
|
for (const a of t) {
|
|
21041
21073
|
const c = n(a);
|
|
@@ -21079,7 +21111,7 @@ function zR(e, t, n, r) {
|
|
|
21079
21111
|
}
|
|
21080
21112
|
return { anchorsByOrigin: i, coveredCells: s };
|
|
21081
21113
|
}
|
|
21082
|
-
function
|
|
21114
|
+
function WR(e, t, n, r, o, i, s) {
|
|
21083
21115
|
const a = new Set(s), c = /* @__PURE__ */ new Map();
|
|
21084
21116
|
for (const u of e) {
|
|
21085
21117
|
const l = Wg(
|
|
@@ -21114,19 +21146,19 @@ function UR(e, t, n, r, o, i, s) {
|
|
|
21114
21146
|
}
|
|
21115
21147
|
return { anchorsByOrigin: c, coveredCells: a };
|
|
21116
21148
|
}
|
|
21117
|
-
function
|
|
21149
|
+
function GR(e, t, n, r) {
|
|
21118
21150
|
const o = `${e}-${t}`;
|
|
21119
21151
|
return n.has(o) ? !r.get(o) : !1;
|
|
21120
21152
|
}
|
|
21121
|
-
function
|
|
21153
|
+
function KR(e, t, n) {
|
|
21122
21154
|
for (const r of n.values())
|
|
21123
21155
|
if (e >= r.anchorRow && e < r.anchorRow + r.rowSpan && t >= r.anchorCol && t < r.anchorCol + r.colSpan)
|
|
21124
21156
|
return r;
|
|
21125
21157
|
}
|
|
21126
|
-
function
|
|
21158
|
+
function qR(e, t, n, r) {
|
|
21127
21159
|
return !(!r || n.run.section.collapsible !== !0 || e === n.anchorRow && t === n.anchorCol);
|
|
21128
21160
|
}
|
|
21129
|
-
function
|
|
21161
|
+
function YR(e, t, n) {
|
|
21130
21162
|
const r = /* @__PURE__ */ new Set();
|
|
21131
21163
|
for (const o of e.values())
|
|
21132
21164
|
if (t(o))
|
|
@@ -21134,14 +21166,14 @@ function GR(e, t, n) {
|
|
|
21134
21166
|
n(i, o) || r.add(i);
|
|
21135
21167
|
return r;
|
|
21136
21168
|
}
|
|
21137
|
-
function
|
|
21169
|
+
function XR(e, t, n) {
|
|
21138
21170
|
const r = (o) => n.has(o) ? "minmax(0, auto)" : `minmax(${t}, auto)`;
|
|
21139
21171
|
return Array.from({ length: e }, (o, i) => r(i)).join(" ");
|
|
21140
21172
|
}
|
|
21141
|
-
function
|
|
21173
|
+
function JR(e, t) {
|
|
21142
21174
|
return new Map([...e, ...t]);
|
|
21143
21175
|
}
|
|
21144
|
-
function
|
|
21176
|
+
function QR(e, t, n) {
|
|
21145
21177
|
if (t.length === 0)
|
|
21146
21178
|
return e.map((s) => ({ kind: "field", field: s }));
|
|
21147
21179
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -21178,8 +21210,8 @@ function Wg(e, t) {
|
|
|
21178
21210
|
return { section: r, fieldNames: o };
|
|
21179
21211
|
}
|
|
21180
21212
|
}
|
|
21181
|
-
const
|
|
21182
|
-
class
|
|
21213
|
+
const ZR = 2 * 6e4, Zd = 50;
|
|
21214
|
+
class ek {
|
|
21183
21215
|
map = /* @__PURE__ */ new Map();
|
|
21184
21216
|
ttlMs;
|
|
21185
21217
|
constructor(t) {
|
|
@@ -21206,14 +21238,14 @@ class JR {
|
|
|
21206
21238
|
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
21239
|
}
|
|
21208
21240
|
}
|
|
21209
|
-
function
|
|
21241
|
+
function tk(e) {
|
|
21210
21242
|
return (e ?? "").trim() || "default";
|
|
21211
21243
|
}
|
|
21212
21244
|
function Gg(e) {
|
|
21213
|
-
const t =
|
|
21245
|
+
const t = tk(e.scope), n = String(e.formId ?? "").trim(), r = e.version === void 0 || e.version === null ? "latest" : String(e.version).trim();
|
|
21214
21246
|
return `form-render:${t}:${n}:${r}`;
|
|
21215
21247
|
}
|
|
21216
|
-
const Kg = new
|
|
21248
|
+
const Kg = new ek(ZR);
|
|
21217
21249
|
function qg(e) {
|
|
21218
21250
|
const t = Gg(e), n = Kg.get(t);
|
|
21219
21251
|
return n ? { value: n.value, isStale: n.isStale } : null;
|
|
@@ -21446,7 +21478,7 @@ const Xg = ({
|
|
|
21446
21478
|
const V = t;
|
|
21447
21479
|
_ || H(!0);
|
|
21448
21480
|
try {
|
|
21449
|
-
const j = await
|
|
21481
|
+
const j = await uR.getForRendering(t), ee = ss(
|
|
21450
21482
|
j.form,
|
|
21451
21483
|
j.fields,
|
|
21452
21484
|
j.layout,
|
|
@@ -21473,7 +21505,7 @@ const Xg = ({
|
|
|
21473
21505
|
[q.config?.prepopulateApi?.fieldMapping]
|
|
21474
21506
|
), yt = Z(
|
|
21475
21507
|
async (_) => {
|
|
21476
|
-
const V = q?.fields?.length ?
|
|
21508
|
+
const V = q?.fields?.length ? Rl(_, q.fields) : _, j = ug(
|
|
21477
21509
|
V,
|
|
21478
21510
|
q.config?.sections,
|
|
21479
21511
|
q.config?.submitPayload
|
|
@@ -21621,7 +21653,7 @@ const Xg = ({
|
|
|
21621
21653
|
const gt = se.slice(0, Ye), nt = se.slice(Ye + 1), vt = q.fields.find((Ke) => (Ke.name || Ke.key) === gt)?.properties;
|
|
21622
21654
|
if (vt?.rowSlots?.length) {
|
|
21623
21655
|
const Ke = nt.startsWith("__block__") ? nt.slice(9) : nt, Pt = be[gt] ?? Ot.getState().values[gt];
|
|
21624
|
-
Array.isArray(ge) ? be[gt] = z_(vt, Ke, ge, Pt) : ge != null && (be[gt] =
|
|
21656
|
+
Array.isArray(ge) ? be[gt] = z_(vt, Ke, ge, Pt) : ge != null && (be[gt] = Ka(vt, ge, Pt));
|
|
21625
21657
|
}
|
|
21626
21658
|
continue;
|
|
21627
21659
|
}
|
|
@@ -21637,10 +21669,10 @@ const Xg = ({
|
|
|
21637
21669
|
const fe = nt.rowSlots.find((vt) => vt.kind === "dynamic");
|
|
21638
21670
|
if (fe && fe.kind === "dynamic") {
|
|
21639
21671
|
const vt = fe.block.apiArrayPath ?? "items";
|
|
21640
|
-
be[se] =
|
|
21672
|
+
be[se] = Ka(nt, { [vt]: ge });
|
|
21641
21673
|
}
|
|
21642
21674
|
} else
|
|
21643
|
-
be[se] =
|
|
21675
|
+
be[se] = Ka(nt, ge);
|
|
21644
21676
|
continue;
|
|
21645
21677
|
}
|
|
21646
21678
|
}
|
|
@@ -21765,7 +21797,7 @@ const Xg = ({
|
|
|
21765
21797
|
const Me = et(He, "data.user_id"), ge = et(He, "data.items"), Ye = et(He, "data");
|
|
21766
21798
|
let pt = Array.isArray(ge) && ge.length > 0 && ge[0] != null && typeof ge[0] == "object" && ge[0].id ? ge[0].id : void 0;
|
|
21767
21799
|
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 =
|
|
21800
|
+
const gt = kR(He, {
|
|
21769
21801
|
treatFirstItemIdAsPaymentId: _?.treatFirstItemIdAsPaymentId === !0
|
|
21770
21802
|
}), nt = et(He, "data.id"), fe = et(He, "data.batch_id"), vt = et(He, "data.program_id"), Ke = {};
|
|
21771
21803
|
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 +21806,7 @@ const Xg = ({
|
|
|
21774
21806
|
}), Oe(He);
|
|
21775
21807
|
}
|
|
21776
21808
|
} catch (ce) {
|
|
21777
|
-
Q ||
|
|
21809
|
+
Q || _l(ce, "Prepopulate request failed.", qo);
|
|
21778
21810
|
} finally {
|
|
21779
21811
|
M(!1);
|
|
21780
21812
|
}
|
|
@@ -21819,7 +21851,7 @@ const Xg = ({
|
|
|
21819
21851
|
try {
|
|
21820
21852
|
const ee = Ot.getState().errors;
|
|
21821
21853
|
Kt.error(
|
|
21822
|
-
|
|
21854
|
+
Tl(ee, q.fields) || "Please fix the errors before continuing."
|
|
21823
21855
|
), jo(kt.map((Q) => Q.name || Q.key || Q.id).filter(Boolean));
|
|
21824
21856
|
} catch {
|
|
21825
21857
|
Kt.error("Please fix the errors before continuing.");
|
|
@@ -21831,7 +21863,7 @@ const Xg = ({
|
|
|
21831
21863
|
try {
|
|
21832
21864
|
const j = Ot.getState().errors;
|
|
21833
21865
|
Kt.error(
|
|
21834
|
-
|
|
21866
|
+
Tl(j, q.fields) || "Submission failed. Please check the form."
|
|
21835
21867
|
), jo(kt.map((ee) => ee.name || ee.key || ee.id).filter(Boolean));
|
|
21836
21868
|
} catch {
|
|
21837
21869
|
Kt.error("Submission failed. Please check the form.");
|
|
@@ -21843,7 +21875,7 @@ const Xg = ({
|
|
|
21843
21875
|
(_, V) => {
|
|
21844
21876
|
const j = q.fields.find(
|
|
21845
21877
|
(Q) => Q.type === "button" && (Q.name === _ || Q.key === _)
|
|
21846
|
-
), ee =
|
|
21878
|
+
), ee = IR(V, j);
|
|
21847
21879
|
ee != null && String(ee).trim() !== "" && (p?.payment_id === void 0 || p?.payment_id === null) && z((Q) => {
|
|
21848
21880
|
const ce = { ...Q, payment_id: ee };
|
|
21849
21881
|
return h?.(ce), ce;
|
|
@@ -21984,7 +22016,7 @@ const Xg = ({
|
|
|
21984
22016
|
V = { ..._, properties: { ..._.properties, columns: Q } };
|
|
21985
22017
|
}
|
|
21986
22018
|
}
|
|
21987
|
-
const j =
|
|
22019
|
+
const j = $R(V, zt, tt);
|
|
21988
22020
|
return j ? { ...V, label: Vg(j, 0) } : V;
|
|
21989
22021
|
},
|
|
21990
22022
|
[Ct, zt, tt]
|
|
@@ -22105,7 +22137,7 @@ const Xg = ({
|
|
|
22105
22137
|
return ot !== me ? ot - me : (Ce.position?.column ?? 1) - (We.position?.column ?? 1);
|
|
22106
22138
|
});
|
|
22107
22139
|
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 =
|
|
22140
|
+
const Te = Ug(j, zt), Be = Te[0]?.fieldNames?.length ? Te[0].fieldNames : Ne.map((Ce) => tt(Ce)).filter(Boolean), lt = UR(
|
|
22109
22141
|
Be,
|
|
22110
22142
|
Ii,
|
|
22111
22143
|
Y,
|
|
@@ -22148,7 +22180,7 @@ const Xg = ({
|
|
|
22148
22180
|
return vr.forEach((j) => {
|
|
22149
22181
|
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
22182
|
Q.forEach((De, He) => {
|
|
22151
|
-
const Se = {}, Ce = {}, We = {}, ot = Te ?
|
|
22183
|
+
const Se = {}, Ce = {}, We = {}, ot = Te ? VR(Te, He) : j.baseOrder + 1 + He * Ne, me = ie[`${ee}__${De}`];
|
|
22152
22184
|
ce.forEach((be) => {
|
|
22153
22185
|
const ft = tt(be), Gt = Kn(ft, ee, De), Ut = (be.position?.order ?? Be) - Be;
|
|
22154
22186
|
if (Se[Gt] = ft, Ce[Gt] = Ie[Gt], !(Wt?.linkedFieldAllowDuplicate?.[ft] ?? !0) && (be.type === "select" || be.type === "radio" || be.type === "multiselect")) {
|
|
@@ -22188,11 +22220,11 @@ const Xg = ({
|
|
|
22188
22220
|
const Ne = ko(_.position) ?? 0, Te = ko(V.position) ?? 0;
|
|
22189
22221
|
return Ne !== Te ? Ne - Te : String(_.id).localeCompare(String(V.id));
|
|
22190
22222
|
}), [Mi, ao.clonedFields]), lo = pe(
|
|
22191
|
-
() =>
|
|
22223
|
+
() => yR(Vo.filter((_) => !_.parentId), Pn),
|
|
22192
22224
|
[Vo, Pn]
|
|
22193
22225
|
), ba = Z(
|
|
22194
22226
|
(_, V) => lo.some(
|
|
22195
|
-
(j) =>
|
|
22227
|
+
(j) => bR(_, V, j, Y)
|
|
22196
22228
|
),
|
|
22197
22229
|
[lo, Y]
|
|
22198
22230
|
);
|
|
@@ -22200,14 +22232,14 @@ const Xg = ({
|
|
|
22200
22232
|
...lo.map((_) => (_[0]?.position?.order ?? 0) + Zo(_, Y).rowSpan)
|
|
22201
22233
|
);
|
|
22202
22234
|
const Di = pe(
|
|
22203
|
-
() =>
|
|
22235
|
+
() => jR(
|
|
22204
22236
|
zt,
|
|
22205
22237
|
Vc(kt.filter((_) => !_.parentId)),
|
|
22206
22238
|
tt
|
|
22207
22239
|
),
|
|
22208
22240
|
[zt, kt, tt]
|
|
22209
22241
|
), { anchorsByOrigin: qc, coveredCells: Yc } = pe(
|
|
22210
|
-
() =>
|
|
22242
|
+
() => HR(
|
|
22211
22243
|
Di,
|
|
22212
22244
|
Mi,
|
|
22213
22245
|
tt,
|
|
@@ -22215,7 +22247,7 @@ const Xg = ({
|
|
|
22215
22247
|
),
|
|
22216
22248
|
[Di, Mi, tt, Y]
|
|
22217
22249
|
), { anchorsByOrigin: Xc, coveredCells: Jc } = pe(
|
|
22218
|
-
() =>
|
|
22250
|
+
() => WR(
|
|
22219
22251
|
vr.map((_) => ({
|
|
22220
22252
|
addMoreFieldName: _.addMoreFieldName,
|
|
22221
22253
|
blockIds: _.blockIds,
|
|
@@ -22239,7 +22271,7 @@ const Xg = ({
|
|
|
22239
22271
|
Yc
|
|
22240
22272
|
]
|
|
22241
22273
|
), pr = pe(
|
|
22242
|
-
() =>
|
|
22274
|
+
() => JR(qc, Xc),
|
|
22243
22275
|
[qc, Xc]
|
|
22244
22276
|
), Qc = pe(
|
|
22245
22277
|
() => Jc,
|
|
@@ -22262,7 +22294,7 @@ const Xg = ({
|
|
|
22262
22294
|
ba
|
|
22263
22295
|
]
|
|
22264
22296
|
), tu = pe(
|
|
22265
|
-
() =>
|
|
22297
|
+
() => YR(
|
|
22266
22298
|
pr,
|
|
22267
22299
|
(_) => {
|
|
22268
22300
|
const V = _.run.section;
|
|
@@ -22281,7 +22313,7 @@ const Xg = ({
|
|
|
22281
22313
|
if (V.renderFields.some((j) => Pn(j)))
|
|
22282
22314
|
for (let j = V.anchorRow; j < V.anchorRow + V.rowSpan; j++)
|
|
22283
22315
|
_.push(j);
|
|
22284
|
-
return
|
|
22316
|
+
return vR(lo, Y, _);
|
|
22285
22317
|
}, [
|
|
22286
22318
|
lo,
|
|
22287
22319
|
Y,
|
|
@@ -22289,14 +22321,14 @@ const Xg = ({
|
|
|
22289
22321
|
pr,
|
|
22290
22322
|
Pn
|
|
22291
22323
|
]), { originalToDisplayRow: Bi, displayRowCount: Ny, sortedOccupiedRows: _y } = pe(() => {
|
|
22292
|
-
const _ =
|
|
22324
|
+
const _ = wR(nu);
|
|
22293
22325
|
return {
|
|
22294
22326
|
originalToDisplayRow: _.originalToDisplay,
|
|
22295
22327
|
displayRowCount: _.displayRowCount,
|
|
22296
22328
|
sortedOccupiedRows: _.sortedOriginalRows
|
|
22297
22329
|
};
|
|
22298
22330
|
}, [nu]), ru = Math.max(Ny, 1), va = Z(
|
|
22299
|
-
(_, V = 1) =>
|
|
22331
|
+
(_, V = 1) => SR(_, V, Bi),
|
|
22300
22332
|
[Bi]
|
|
22301
22333
|
), ou = pe(() => {
|
|
22302
22334
|
const _ = /* @__PURE__ */ new Set();
|
|
@@ -22306,10 +22338,10 @@ const Xg = ({
|
|
|
22306
22338
|
}
|
|
22307
22339
|
return _;
|
|
22308
22340
|
}, [tu, Bi]), Ty = pe(
|
|
22309
|
-
() =>
|
|
22341
|
+
() => XR(ru, Zc, ou),
|
|
22310
22342
|
[ru, Zc, ou]
|
|
22311
22343
|
), Ry = pe(
|
|
22312
|
-
() =>
|
|
22344
|
+
() => QR(
|
|
22313
22345
|
kt.filter((_) => !_.parentId && Pn(_)),
|
|
22314
22346
|
Di,
|
|
22315
22347
|
tt
|
|
@@ -22321,7 +22353,7 @@ const Xg = ({
|
|
|
22321
22353
|
if (j.length === 0) return null;
|
|
22322
22354
|
const ee = fr(_);
|
|
22323
22355
|
if (ee.length === 0) return null;
|
|
22324
|
-
const Q =
|
|
22356
|
+
const Q = BR(_, zt), ce = ee.map((Be) => tt(Be)).filter(Boolean), Ne = Wg(ce, zt), Te = (Be, lt, Wt, De, He, Se, Ce) => {
|
|
22325
22357
|
const We = tt(Be), ot = Kn(We, V, lt), me = Be.hidden === !0;
|
|
22326
22358
|
if (!(Ct(Be) && (Nn(We) || !me && We))) return null;
|
|
22327
22359
|
const be = {
|
|
@@ -22417,7 +22449,7 @@ const Xg = ({
|
|
|
22417
22449
|
me
|
|
22418
22450
|
] });
|
|
22419
22451
|
return /* @__PURE__ */ f("div", { className: "rounded-md border p-3 space-y-3", children: Ne ? /* @__PURE__ */ f(
|
|
22420
|
-
|
|
22452
|
+
nl,
|
|
22421
22453
|
{
|
|
22422
22454
|
legend: Ne.section.heading?.enabled ? ei(Ne.section, lt + 1) : Ne.section.name,
|
|
22423
22455
|
collapsible: Ne.section.collapsible,
|
|
@@ -22449,7 +22481,7 @@ const Xg = ({
|
|
|
22449
22481
|
"data-form-renderer-layout": R ? "grid" : "stack",
|
|
22450
22482
|
children: /* @__PURE__ */ $(t_, { value: _i, children: [
|
|
22451
22483
|
Tn && q.steps && /* @__PURE__ */ f(
|
|
22452
|
-
|
|
22484
|
+
aR,
|
|
22453
22485
|
{
|
|
22454
22486
|
steps: q.steps,
|
|
22455
22487
|
currentStep: ke,
|
|
@@ -22489,18 +22521,18 @@ const Xg = ({
|
|
|
22489
22521
|
},
|
|
22490
22522
|
`empty-${_}-${j}`
|
|
22491
22523
|
);
|
|
22492
|
-
if (
|
|
22524
|
+
if (GR(
|
|
22493
22525
|
_,
|
|
22494
22526
|
j,
|
|
22495
22527
|
Qc,
|
|
22496
22528
|
pr
|
|
22497
22529
|
)) {
|
|
22498
|
-
const Se =
|
|
22530
|
+
const Se = KR(
|
|
22499
22531
|
_,
|
|
22500
22532
|
j,
|
|
22501
22533
|
pr
|
|
22502
22534
|
);
|
|
22503
|
-
return Se &&
|
|
22535
|
+
return Se && qR(
|
|
22504
22536
|
_,
|
|
22505
22537
|
j,
|
|
22506
22538
|
Se,
|
|
@@ -22561,7 +22593,7 @@ const Xg = ({
|
|
|
22561
22593
|
"data-form-renderer": "grid-cell",
|
|
22562
22594
|
"data-form-renderer-config-section-border-cell": !0,
|
|
22563
22595
|
children: /* @__PURE__ */ f(
|
|
22564
|
-
|
|
22596
|
+
nl,
|
|
22565
22597
|
{
|
|
22566
22598
|
legend: Q.legend,
|
|
22567
22599
|
className: me.collapsible && be ? void 0 : "h-full",
|
|
@@ -22861,7 +22893,7 @@ const Xg = ({
|
|
|
22861
22893
|
);
|
|
22862
22894
|
if (V)
|
|
22863
22895
|
return V.fields[0]?.id !== _.id ? null : /* @__PURE__ */ f(
|
|
22864
|
-
|
|
22896
|
+
nl,
|
|
22865
22897
|
{
|
|
22866
22898
|
legend: ei(V.run.section, 0),
|
|
22867
22899
|
collapsible: V.run.section.collapsible,
|
|
@@ -23115,13 +23147,13 @@ const Xg = ({
|
|
|
23115
23147
|
}
|
|
23116
23148
|
);
|
|
23117
23149
|
};
|
|
23118
|
-
function
|
|
23150
|
+
function ol(e) {
|
|
23119
23151
|
return typeof structuredClone == "function" ? structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
23120
23152
|
}
|
|
23121
23153
|
function tf(e) {
|
|
23122
23154
|
return e !== null && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
23123
23155
|
}
|
|
23124
|
-
function
|
|
23156
|
+
function nk(e, t) {
|
|
23125
23157
|
const n = e.form;
|
|
23126
23158
|
if (!n)
|
|
23127
23159
|
throw new Error("workflowStateToFormSchema requires workflowState.form to be set");
|
|
@@ -23205,7 +23237,7 @@ function ZR(e, t) {
|
|
|
23205
23237
|
key: l.key || l.fieldKey || l.name,
|
|
23206
23238
|
name: l.name || l.fieldKey || l.key
|
|
23207
23239
|
};
|
|
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 =
|
|
23240
|
+
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
23241
|
const x = l.validationRules, P = { ...m };
|
|
23210
23242
|
if (x.fileSize !== void 0 && (P.maxSize = x.fileSize), x.fileType && Array.isArray(x.fileType)) {
|
|
23211
23243
|
const T = [];
|
|
@@ -23291,9 +23323,9 @@ function ZR(e, t) {
|
|
|
23291
23323
|
u
|
|
23292
23324
|
);
|
|
23293
23325
|
}
|
|
23294
|
-
var ha = "Tabs", [
|
|
23326
|
+
var ha = "Tabs", [rk] = Mn(ha, [
|
|
23295
23327
|
ca
|
|
23296
|
-
]), Jg = ca(), [
|
|
23328
|
+
]), Jg = ca(), [ok, Wc] = rk(ha), Qg = b.forwardRef(
|
|
23297
23329
|
(e, t) => {
|
|
23298
23330
|
const {
|
|
23299
23331
|
__scopeTabs: n,
|
|
@@ -23311,7 +23343,7 @@ var ha = "Tabs", [ek] = Mn(ha, [
|
|
|
23311
23343
|
caller: ha
|
|
23312
23344
|
});
|
|
23313
23345
|
return /* @__PURE__ */ f(
|
|
23314
|
-
|
|
23346
|
+
ok,
|
|
23315
23347
|
{
|
|
23316
23348
|
scope: n,
|
|
23317
23349
|
baseId: hr(),
|
|
@@ -23433,13 +23465,13 @@ function iy(e, t) {
|
|
|
23433
23465
|
function sy(e, t) {
|
|
23434
23466
|
return `${e}-content-${t}`;
|
|
23435
23467
|
}
|
|
23436
|
-
var
|
|
23468
|
+
var ik = Qg, sk = ey, ak = ny, lk = oy;
|
|
23437
23469
|
function ay({
|
|
23438
23470
|
className: e,
|
|
23439
23471
|
...t
|
|
23440
23472
|
}) {
|
|
23441
23473
|
return /* @__PURE__ */ f(
|
|
23442
|
-
|
|
23474
|
+
ik,
|
|
23443
23475
|
{
|
|
23444
23476
|
"data-slot": "tabs",
|
|
23445
23477
|
className: L("flex flex-col gap-2", e),
|
|
@@ -23452,7 +23484,7 @@ function ly({
|
|
|
23452
23484
|
...t
|
|
23453
23485
|
}) {
|
|
23454
23486
|
return /* @__PURE__ */ f(
|
|
23455
|
-
|
|
23487
|
+
sk,
|
|
23456
23488
|
{
|
|
23457
23489
|
"data-slot": "tabs-list",
|
|
23458
23490
|
className: L(
|
|
@@ -23468,7 +23500,7 @@ function cy({
|
|
|
23468
23500
|
...t
|
|
23469
23501
|
}) {
|
|
23470
23502
|
return /* @__PURE__ */ f(
|
|
23471
|
-
|
|
23503
|
+
ak,
|
|
23472
23504
|
{
|
|
23473
23505
|
"data-slot": "tabs-trigger",
|
|
23474
23506
|
className: L(
|
|
@@ -23484,7 +23516,7 @@ function uy({
|
|
|
23484
23516
|
...t
|
|
23485
23517
|
}) {
|
|
23486
23518
|
return /* @__PURE__ */ f(
|
|
23487
|
-
|
|
23519
|
+
lk,
|
|
23488
23520
|
{
|
|
23489
23521
|
"data-slot": "tabs-content",
|
|
23490
23522
|
className: L("flex-1 outline-none", e),
|
|
@@ -23506,7 +23538,7 @@ function yn({
|
|
|
23506
23538
|
}
|
|
23507
23539
|
);
|
|
23508
23540
|
}
|
|
23509
|
-
function
|
|
23541
|
+
function ck({ className: e = "" }) {
|
|
23510
23542
|
return /* @__PURE__ */ $(
|
|
23511
23543
|
"div",
|
|
23512
23544
|
{
|
|
@@ -23530,7 +23562,7 @@ function sk({ className: e = "" }) {
|
|
|
23530
23562
|
}
|
|
23531
23563
|
);
|
|
23532
23564
|
}
|
|
23533
|
-
function
|
|
23565
|
+
function uk() {
|
|
23534
23566
|
return /* @__PURE__ */ $(
|
|
23535
23567
|
"div",
|
|
23536
23568
|
{
|
|
@@ -23547,18 +23579,18 @@ function ak() {
|
|
|
23547
23579
|
}
|
|
23548
23580
|
);
|
|
23549
23581
|
}
|
|
23550
|
-
const
|
|
23551
|
-
function
|
|
23582
|
+
const dk = 3e4, fk = 10 * 6e4, pk = 9e4, mk = 15 * 6e4;
|
|
23583
|
+
function hk(e) {
|
|
23552
23584
|
return e != null && "on_success" in e && e.on_success != null;
|
|
23553
23585
|
}
|
|
23554
|
-
function
|
|
23586
|
+
function gk(e, t) {
|
|
23555
23587
|
if (!t || typeof t != "object") return e;
|
|
23556
23588
|
let n = e;
|
|
23557
23589
|
return Object.entries(t).forEach(([r, o]) => {
|
|
23558
23590
|
o != null && o !== "" && (n = n.replace(new RegExp(`\\{${r}\\}`, "g"), String(o)));
|
|
23559
23591
|
}), n;
|
|
23560
23592
|
}
|
|
23561
|
-
const
|
|
23593
|
+
const yk = ({
|
|
23562
23594
|
getWorkflowState: e,
|
|
23563
23595
|
moduleId: t,
|
|
23564
23596
|
tenantId: n,
|
|
@@ -23603,8 +23635,8 @@ const mk = ({
|
|
|
23603
23635
|
w[2]
|
|
23604
23636
|
],
|
|
23605
23637
|
queryFn: () => e({ ...S, featureId: a }),
|
|
23606
|
-
staleTime:
|
|
23607
|
-
gcTime:
|
|
23638
|
+
staleTime: dk,
|
|
23639
|
+
gcTime: fk
|
|
23608
23640
|
}), D = z.isPending, ae = z.error ? z.error instanceof Error ? z.error.message : "Failed to load workflow steps" : null;
|
|
23609
23641
|
wt(() => {
|
|
23610
23642
|
const le = z.data;
|
|
@@ -23633,8 +23665,8 @@ const mk = ({
|
|
|
23633
23665
|
],
|
|
23634
23666
|
queryFn: () => e({ ...S, featureId: U }),
|
|
23635
23667
|
enabled: !!U,
|
|
23636
|
-
staleTime:
|
|
23637
|
-
gcTime:
|
|
23668
|
+
staleTime: pk,
|
|
23669
|
+
gcTime: mk,
|
|
23638
23670
|
refetchOnWindowFocus: !0,
|
|
23639
23671
|
refetchOnReconnect: !0
|
|
23640
23672
|
}), X = K.isPending, ue = K.error ? K.error instanceof Error ? K.error.message : "Failed to load form" : null;
|
|
@@ -23653,7 +23685,7 @@ const mk = ({
|
|
|
23653
23685
|
formId: le._id,
|
|
23654
23686
|
version: le.version
|
|
23655
23687
|
});
|
|
23656
|
-
return Xe?.value ? Xe.value :
|
|
23688
|
+
return Xe?.value ? Xe.value : nk(N, r);
|
|
23657
23689
|
}, [N, r, n]), G = pe(() => {
|
|
23658
23690
|
const le = N?.BFF_submit_api;
|
|
23659
23691
|
if (!le?.url) return;
|
|
@@ -23716,10 +23748,10 @@ const mk = ({
|
|
|
23716
23748
|
v.invalidateQueries({ queryKey: ["workflow-steps", t] }), v.invalidateQueries({ queryKey: ["workflow-step", t] });
|
|
23717
23749
|
}, [v, t]), ve = Z(
|
|
23718
23750
|
(le) => {
|
|
23719
|
-
if (
|
|
23751
|
+
if (hk(le)) {
|
|
23720
23752
|
const qe = le.on_success, Xt = qe?.action;
|
|
23721
23753
|
if (Xt === "redirect" && qe?.redirect_url) {
|
|
23722
|
-
const Ze =
|
|
23754
|
+
const Ze = gk(qe.redirect_url.trim(), r);
|
|
23723
23755
|
window.location.href = Ze;
|
|
23724
23756
|
return;
|
|
23725
23757
|
}
|
|
@@ -23780,7 +23812,7 @@ const mk = ({
|
|
|
23780
23812
|
}, []), xe = Z((le) => {
|
|
23781
23813
|
}, []);
|
|
23782
23814
|
if (D)
|
|
23783
|
-
return /* @__PURE__ */ f(
|
|
23815
|
+
return /* @__PURE__ */ f(ck, { className: d });
|
|
23784
23816
|
if (ae)
|
|
23785
23817
|
return /* @__PURE__ */ f(
|
|
23786
23818
|
"div",
|
|
@@ -23817,7 +23849,7 @@ const mk = ({
|
|
|
23817
23849
|
},
|
|
23818
23850
|
le.step_id
|
|
23819
23851
|
)) }),
|
|
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(
|
|
23852
|
+
I.map((le) => /* @__PURE__ */ f(uy, { value: le.step_id, className: "mt-4 outline-none", children: le.step_id !== A ? null : X ? /* @__PURE__ */ f(uk, {}) : 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
23853
|
"div",
|
|
23822
23854
|
{
|
|
23823
23855
|
className: L(
|
|
@@ -23885,10 +23917,10 @@ const mk = ({
|
|
|
23885
23917
|
}
|
|
23886
23918
|
);
|
|
23887
23919
|
};
|
|
23888
|
-
function
|
|
23920
|
+
function hP(e) {
|
|
23889
23921
|
return typeof e == "object" && e !== null && "apiEndpoint" in e;
|
|
23890
23922
|
}
|
|
23891
|
-
function
|
|
23923
|
+
function gP({ formSchema: e }) {
|
|
23892
23924
|
const t = pe(() => {
|
|
23893
23925
|
if (!e)
|
|
23894
23926
|
return [];
|
|
@@ -23980,13 +24012,13 @@ function pP({ formSchema: e }) {
|
|
|
23980
24012
|
isValid: o
|
|
23981
24013
|
};
|
|
23982
24014
|
}
|
|
23983
|
-
function
|
|
24015
|
+
function yP({
|
|
23984
24016
|
field: e,
|
|
23985
24017
|
value: t,
|
|
23986
24018
|
allValues: n,
|
|
23987
24019
|
validateOnChange: r = !1,
|
|
23988
24020
|
validateOnBlur: o = !0,
|
|
23989
|
-
debounceMs: i =
|
|
24021
|
+
debounceMs: i = fR
|
|
23990
24022
|
}) {
|
|
23991
24023
|
const [s, a] = Ee(), [c, u] = Ee(!1), l = At(void 0), d = At(t), p = Z(async () => {
|
|
23992
24024
|
if (!e.validation || e.validation.length === 0) {
|
|
@@ -24031,7 +24063,7 @@ const dy = "—";
|
|
|
24031
24063
|
function en() {
|
|
24032
24064
|
return { kind: "static", value: dy };
|
|
24033
24065
|
}
|
|
24034
|
-
function
|
|
24066
|
+
function bk() {
|
|
24035
24067
|
return {
|
|
24036
24068
|
currencySymbol: "₹",
|
|
24037
24069
|
emptyDisplay: dy,
|
|
@@ -24138,7 +24170,7 @@ function hk() {
|
|
|
24138
24170
|
]
|
|
24139
24171
|
};
|
|
24140
24172
|
}
|
|
24141
|
-
const
|
|
24173
|
+
const bP = {
|
|
24142
24174
|
// Input Fields
|
|
24143
24175
|
text: {
|
|
24144
24176
|
type: "text",
|
|
@@ -24573,7 +24605,7 @@ const hP = {
|
|
|
24573
24605
|
defaultProps: {
|
|
24574
24606
|
label: "Billing",
|
|
24575
24607
|
name: "billing",
|
|
24576
|
-
properties:
|
|
24608
|
+
properties: bk()
|
|
24577
24609
|
}
|
|
24578
24610
|
},
|
|
24579
24611
|
aadhaar: {
|
|
@@ -24808,7 +24840,7 @@ function fy(e, t) {
|
|
|
24808
24840
|
showBorder: !1
|
|
24809
24841
|
};
|
|
24810
24842
|
}
|
|
24811
|
-
function
|
|
24843
|
+
function vk(e) {
|
|
24812
24844
|
switch (e ?? "md") {
|
|
24813
24845
|
case "none":
|
|
24814
24846
|
return "";
|
|
@@ -24820,7 +24852,7 @@ function gk(e) {
|
|
|
24820
24852
|
return "p-4 md:p-6";
|
|
24821
24853
|
}
|
|
24822
24854
|
}
|
|
24823
|
-
function
|
|
24855
|
+
function wk(e, t) {
|
|
24824
24856
|
if (t === "full-bleed") return "w-full max-w-none";
|
|
24825
24857
|
switch (e ?? "full") {
|
|
24826
24858
|
case "full":
|
|
@@ -24847,7 +24879,7 @@ function yk(e, t) {
|
|
|
24847
24879
|
return "w-full max-w-none";
|
|
24848
24880
|
}
|
|
24849
24881
|
}
|
|
24850
|
-
function
|
|
24882
|
+
function Sk(e) {
|
|
24851
24883
|
switch (e) {
|
|
24852
24884
|
case "sidebar-main":
|
|
24853
24885
|
return "grid grid-cols-1 gap-6 lg:grid-cols-[240px_1fr]";
|
|
@@ -24857,17 +24889,17 @@ function bk(e) {
|
|
|
24857
24889
|
return "w-full";
|
|
24858
24890
|
}
|
|
24859
24891
|
}
|
|
24860
|
-
function
|
|
24892
|
+
function xk(e) {
|
|
24861
24893
|
const t = fy(e.container, e.layout);
|
|
24862
24894
|
return L(
|
|
24863
|
-
|
|
24864
|
-
|
|
24865
|
-
|
|
24895
|
+
Sk(e.layout),
|
|
24896
|
+
wk(t.maxWidth, e.layout),
|
|
24897
|
+
vk(t.padding),
|
|
24866
24898
|
t.showBorder && "rounded-lg border border-border"
|
|
24867
24899
|
);
|
|
24868
24900
|
}
|
|
24869
24901
|
const Rs = 1;
|
|
24870
|
-
function
|
|
24902
|
+
function Ak() {
|
|
24871
24903
|
return {
|
|
24872
24904
|
version: Rs,
|
|
24873
24905
|
layout: "stack",
|
|
@@ -24884,7 +24916,7 @@ function py(e) {
|
|
|
24884
24916
|
children: Array.isArray(e.children) ? e.children.map(py) : void 0
|
|
24885
24917
|
};
|
|
24886
24918
|
}
|
|
24887
|
-
function
|
|
24919
|
+
function Ck(e) {
|
|
24888
24920
|
return {
|
|
24889
24921
|
version: Rs,
|
|
24890
24922
|
layout: e.layout ?? "stack",
|
|
@@ -24899,20 +24931,20 @@ function Sk(e) {
|
|
|
24899
24931
|
navigation: e.navigation
|
|
24900
24932
|
};
|
|
24901
24933
|
}
|
|
24902
|
-
function
|
|
24934
|
+
function Ek(e) {
|
|
24903
24935
|
const t = e;
|
|
24904
|
-
return !t || typeof t != "object" ?
|
|
24936
|
+
return !t || typeof t != "object" ? Ak() : (t.version !== Rs && (t.version = Rs), Ck(t));
|
|
24905
24937
|
}
|
|
24906
24938
|
const rf = {};
|
|
24907
24939
|
let my = null;
|
|
24908
|
-
function
|
|
24940
|
+
function vP(e) {
|
|
24909
24941
|
my = e;
|
|
24910
24942
|
}
|
|
24911
|
-
function
|
|
24943
|
+
function Nk() {
|
|
24912
24944
|
return (rf?.VITE_API_BASE_URL?.trim() || rf?.VITE_API_URL?.trim() || "").replace(/\/$/, "");
|
|
24913
24945
|
}
|
|
24914
24946
|
const ga = It.create({
|
|
24915
|
-
baseURL:
|
|
24947
|
+
baseURL: Nk()
|
|
24916
24948
|
});
|
|
24917
24949
|
ga.interceptors.request.use((e) => {
|
|
24918
24950
|
const t = Zr();
|
|
@@ -24926,7 +24958,7 @@ ga.interceptors.request.use((e) => {
|
|
|
24926
24958
|
}
|
|
24927
24959
|
return e;
|
|
24928
24960
|
});
|
|
24929
|
-
async function
|
|
24961
|
+
async function _k(e) {
|
|
24930
24962
|
const t = await ga.get(
|
|
24931
24963
|
"/api/page-builder/pages/resolve",
|
|
24932
24964
|
{ params: e }
|
|
@@ -24951,7 +24983,7 @@ async function gy(e) {
|
|
|
24951
24983
|
);
|
|
24952
24984
|
return i.data?.data ?? i.data;
|
|
24953
24985
|
}
|
|
24954
|
-
function
|
|
24986
|
+
function Tk(e, t) {
|
|
24955
24987
|
if (!t) return {};
|
|
24956
24988
|
const n = {};
|
|
24957
24989
|
for (const [r, o] of Object.entries(t)) {
|
|
@@ -24995,7 +25027,7 @@ function of(e, t) {
|
|
|
24995
25027
|
}
|
|
24996
25028
|
return n;
|
|
24997
25029
|
}
|
|
24998
|
-
function
|
|
25030
|
+
function Rk({
|
|
24999
25031
|
schema: e,
|
|
25000
25032
|
context: t = {},
|
|
25001
25033
|
clientId: n,
|
|
@@ -25034,7 +25066,7 @@ function Nk({
|
|
|
25034
25066
|
context: P
|
|
25035
25067
|
});
|
|
25036
25068
|
if (N) return;
|
|
25037
|
-
const H =
|
|
25069
|
+
const H = Tk(T, A.contextMapping);
|
|
25038
25070
|
p({
|
|
25039
25071
|
...H,
|
|
25040
25072
|
prepopulateResponse: T
|
|
@@ -25111,51 +25143,51 @@ function Gn() {
|
|
|
25111
25143
|
throw new Error("usePageContext must be used within PageContextProvider");
|
|
25112
25144
|
return e;
|
|
25113
25145
|
}
|
|
25114
|
-
const
|
|
25146
|
+
const kk = 5, sf = 1;
|
|
25115
25147
|
function $o(e) {
|
|
25116
|
-
return Number.isFinite(e) ? Math.min(
|
|
25148
|
+
return Number.isFinite(e) ? Math.min(kk, Math.max(sf, Math.round(e))) : sf;
|
|
25117
25149
|
}
|
|
25118
|
-
function
|
|
25150
|
+
function Fk(e, t) {
|
|
25119
25151
|
const n = $o(t), r = Array.from({ length: n }, () => []);
|
|
25120
25152
|
return e.forEach((o, i) => {
|
|
25121
25153
|
const s = o.config, a = s.columnIndex !== void 0 ? Math.min(Math.max(0, s.columnIndex), n - 1) : i % n;
|
|
25122
25154
|
r[a].push(o);
|
|
25123
25155
|
}), r;
|
|
25124
25156
|
}
|
|
25125
|
-
function
|
|
25157
|
+
function Pk(e) {
|
|
25126
25158
|
return Number.isFinite(e) ? Math.min(100, Math.max(0, Math.round(e))) : 0;
|
|
25127
25159
|
}
|
|
25128
|
-
function
|
|
25160
|
+
function Ok(e, t) {
|
|
25129
25161
|
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
25162
|
return Array.from({ length: n }, (s, a) => o + (a < i ? 1 : 0));
|
|
25131
25163
|
}
|
|
25132
25164
|
function af(e) {
|
|
25133
|
-
return
|
|
25165
|
+
return Ok(100, $o(e));
|
|
25134
25166
|
}
|
|
25135
|
-
function
|
|
25167
|
+
function Ik(e) {
|
|
25136
25168
|
const t = e.trim(), n = /^(\d+(?:\.\d+)?)\s*%?$/.exec(t);
|
|
25137
|
-
return n ?
|
|
25169
|
+
return n ? Pk(Number(n[1])) : null;
|
|
25138
25170
|
}
|
|
25139
25171
|
function by(e, t) {
|
|
25140
25172
|
const n = $o(t), r = [];
|
|
25141
25173
|
for (let i = 0; i < n; i++) {
|
|
25142
|
-
const s =
|
|
25174
|
+
const s = Ik(e?.[i] ?? "");
|
|
25143
25175
|
if (s === null) return af(n);
|
|
25144
25176
|
r.push(s);
|
|
25145
25177
|
}
|
|
25146
25178
|
return r.reduce((i, s) => i + s, 0) !== 100 ? af(n) : r;
|
|
25147
25179
|
}
|
|
25148
|
-
function
|
|
25180
|
+
function Mk(e) {
|
|
25149
25181
|
return e === "sm" ? "gap-2" : e === "lg" ? "gap-6" : "gap-4";
|
|
25150
25182
|
}
|
|
25151
25183
|
function lf(e, t) {
|
|
25152
25184
|
return by(t, $o(e)).map((r) => `minmax(0, ${r}fr)`).join(" ");
|
|
25153
25185
|
}
|
|
25154
|
-
function
|
|
25186
|
+
function Lk(e) {
|
|
25155
25187
|
return e.length ? e.map((t) => `minmax(0, ${t}fr)`).join(" ") : "minmax(0, 1fr)";
|
|
25156
25188
|
}
|
|
25157
|
-
function
|
|
25158
|
-
const o = $o(t), i =
|
|
25189
|
+
function Dk(e, t, n, r) {
|
|
25190
|
+
const o = $o(t), i = Fk(e, o), s = by(n, o);
|
|
25159
25191
|
if (!(r?.collapseEmpty !== !1))
|
|
25160
25192
|
return {
|
|
25161
25193
|
columns: i,
|
|
@@ -25174,45 +25206,45 @@ function Ik(e, t, n, r) {
|
|
|
25174
25206
|
), d = 100 - l.reduce((p, m) => p + m, 0);
|
|
25175
25207
|
return d !== 0 && l.length > 0 && (l[0] += d), {
|
|
25176
25208
|
columns: c.map((p) => p.colChildren),
|
|
25177
|
-
gridTemplate:
|
|
25209
|
+
gridTemplate: Lk(l),
|
|
25178
25210
|
sourceIndices: c.map((p) => p.index)
|
|
25179
25211
|
};
|
|
25180
25212
|
}
|
|
25181
25213
|
function Gc(e, t = "solid") {
|
|
25182
25214
|
return e ? t === "dashed" ? "rounded-md border border-dashed border-border" : "rounded-md border border-border" : "";
|
|
25183
25215
|
}
|
|
25184
|
-
function
|
|
25216
|
+
function Bk(e) {
|
|
25185
25217
|
return L(
|
|
25186
25218
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25187
25219
|
e.showBorder && "p-3"
|
|
25188
25220
|
);
|
|
25189
25221
|
}
|
|
25190
|
-
function
|
|
25222
|
+
function $k(e) {
|
|
25191
25223
|
return L(
|
|
25192
25224
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25193
25225
|
e.showBorder && "p-2"
|
|
25194
25226
|
);
|
|
25195
25227
|
}
|
|
25196
|
-
function
|
|
25228
|
+
function jk(e, t) {
|
|
25197
25229
|
return e.columnBorders?.[t] !== void 0 ? !!e.columnBorders[t] : !!e.showColumnBorders;
|
|
25198
25230
|
}
|
|
25199
|
-
function
|
|
25200
|
-
const n =
|
|
25231
|
+
function zk(e, t) {
|
|
25232
|
+
const n = jk(e, t);
|
|
25201
25233
|
return L(
|
|
25202
25234
|
Gc(n, e.borderStyle ?? "dashed"),
|
|
25203
25235
|
n && "p-2"
|
|
25204
25236
|
);
|
|
25205
25237
|
}
|
|
25206
|
-
function
|
|
25238
|
+
function Uk(e) {
|
|
25207
25239
|
if (e)
|
|
25208
25240
|
return { minHeight: `${e}vh` };
|
|
25209
25241
|
}
|
|
25210
|
-
function
|
|
25242
|
+
function Vk({ widget: e, renderChildren: t }) {
|
|
25211
25243
|
const n = e.config, [r, o] = Lt.useState(n.defaultCollapsed ?? !1);
|
|
25212
25244
|
return /* @__PURE__ */ $(
|
|
25213
25245
|
"section",
|
|
25214
25246
|
{
|
|
25215
|
-
className: L("space-y-4",
|
|
25247
|
+
className: L("space-y-4", Bk(n)),
|
|
25216
25248
|
"data-widget-id": e.id,
|
|
25217
25249
|
children: [
|
|
25218
25250
|
n.heading && /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: n.collapsible ? /* @__PURE__ */ f(
|
|
@@ -25230,8 +25262,8 @@ function jk({ widget: e, renderChildren: t }) {
|
|
|
25230
25262
|
}
|
|
25231
25263
|
);
|
|
25232
25264
|
}
|
|
25233
|
-
function
|
|
25234
|
-
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i =
|
|
25265
|
+
function Hk({ widget: e, renderChildren: t }) {
|
|
25266
|
+
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i = Dk(e.children ?? [], r, n.columnWidths, {
|
|
25235
25267
|
collapseEmpty: o
|
|
25236
25268
|
});
|
|
25237
25269
|
return /* @__PURE__ */ f(
|
|
@@ -25239,12 +25271,12 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25239
25271
|
{
|
|
25240
25272
|
className: L(
|
|
25241
25273
|
"grid w-full min-w-0 items-stretch",
|
|
25242
|
-
|
|
25243
|
-
|
|
25274
|
+
Mk(n.gap),
|
|
25275
|
+
$k(n)
|
|
25244
25276
|
),
|
|
25245
25277
|
style: {
|
|
25246
25278
|
gridTemplateColumns: i.gridTemplate,
|
|
25247
|
-
|
|
25279
|
+
...Uk(n.minHeightPercent)
|
|
25248
25280
|
},
|
|
25249
25281
|
"data-widget-id": e.id,
|
|
25250
25282
|
children: i.columns.map((s, a) => {
|
|
@@ -25254,7 +25286,7 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25254
25286
|
{
|
|
25255
25287
|
className: L(
|
|
25256
25288
|
"flex min-h-[inherit] min-w-0 flex-col space-y-4 overflow-hidden",
|
|
25257
|
-
|
|
25289
|
+
zk(n, c)
|
|
25258
25290
|
),
|
|
25259
25291
|
children: t?.(s)
|
|
25260
25292
|
},
|
|
@@ -25264,7 +25296,7 @@ function zk({ widget: e, renderChildren: t }) {
|
|
|
25264
25296
|
}
|
|
25265
25297
|
);
|
|
25266
25298
|
}
|
|
25267
|
-
function
|
|
25299
|
+
function Wk({ widget: e, renderChildren: t }) {
|
|
25268
25300
|
const n = e.config, r = n.variant === "outline" ? "border bg-background" : n.variant === "elevated" ? "border bg-background shadow-md" : "border bg-card";
|
|
25269
25301
|
return /* @__PURE__ */ $("div", { className: L("rounded-lg p-4", r), "data-widget-id": e.id, children: [
|
|
25270
25302
|
(n.title || n.subtitle) && /* @__PURE__ */ $("div", { className: "mb-4", children: [
|
|
@@ -25281,7 +25313,7 @@ function vy(e, t) {
|
|
|
25281
25313
|
}
|
|
25282
25314
|
return e.text ?? "";
|
|
25283
25315
|
}
|
|
25284
|
-
function
|
|
25316
|
+
function Gk({ widget: e }) {
|
|
25285
25317
|
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
25318
|
return /* @__PURE__ */ f(
|
|
25287
25319
|
"div",
|
|
@@ -25294,11 +25326,11 @@ function Vk({ widget: e }) {
|
|
|
25294
25326
|
}
|
|
25295
25327
|
);
|
|
25296
25328
|
}
|
|
25297
|
-
function
|
|
25329
|
+
function Kk({ widget: e }) {
|
|
25298
25330
|
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
25331
|
return /* @__PURE__ */ f("p", { className: L(o, i), "data-widget-id": e.id, children: r });
|
|
25300
25332
|
}
|
|
25301
|
-
function
|
|
25333
|
+
function qk(e, t) {
|
|
25302
25334
|
return !e || typeof e != "string" ? e : e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25303
25335
|
const o = r.trim(), i = t[o];
|
|
25304
25336
|
return i == null ? "" : String(i);
|
|
@@ -25307,10 +25339,10 @@ function Wk(e, t) {
|
|
|
25307
25339
|
function wy(e, t) {
|
|
25308
25340
|
const n = { ...e };
|
|
25309
25341
|
for (const [r, o] of Object.entries(n))
|
|
25310
|
-
typeof o == "string" && (n[r] =
|
|
25342
|
+
typeof o == "string" && (n[r] = qk(o, t));
|
|
25311
25343
|
return n;
|
|
25312
25344
|
}
|
|
25313
|
-
function
|
|
25345
|
+
function Yk(e, t) {
|
|
25314
25346
|
return e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25315
25347
|
const o = t[r.trim()];
|
|
25316
25348
|
return o != null ? String(o) : "";
|
|
@@ -25318,7 +25350,7 @@ function Gk(e, t) {
|
|
|
25318
25350
|
}
|
|
25319
25351
|
function Sy(e, t, n, r) {
|
|
25320
25352
|
if (e.type === "navigate") {
|
|
25321
|
-
const o =
|
|
25353
|
+
const o = Yk(e.href, t);
|
|
25322
25354
|
if (!o.trim()) return;
|
|
25323
25355
|
e.openIn === "new" ? window.open(o, "_blank", "noopener,noreferrer") : window.location.assign(o);
|
|
25324
25356
|
return;
|
|
@@ -25340,7 +25372,7 @@ function Sy(e, t, n, r) {
|
|
|
25340
25372
|
}
|
|
25341
25373
|
n(e, r, "click");
|
|
25342
25374
|
}
|
|
25343
|
-
function
|
|
25375
|
+
function Xk({ widget: e }) {
|
|
25344
25376
|
const t = e.config, { context: n, dispatchAction: r } = Gn();
|
|
25345
25377
|
return /* @__PURE__ */ f(
|
|
25346
25378
|
tn,
|
|
@@ -25353,25 +25385,25 @@ function Kk({ widget: e }) {
|
|
|
25353
25385
|
}
|
|
25354
25386
|
);
|
|
25355
25387
|
}
|
|
25356
|
-
const
|
|
25388
|
+
const Jk = {
|
|
25357
25389
|
start: "justify-start",
|
|
25358
25390
|
center: "justify-center",
|
|
25359
25391
|
end: "justify-end",
|
|
25360
25392
|
"space-between": "justify-between"
|
|
25361
|
-
},
|
|
25393
|
+
}, Qk = {
|
|
25362
25394
|
sm: "gap-2",
|
|
25363
25395
|
md: "gap-3",
|
|
25364
25396
|
lg: "gap-4"
|
|
25365
25397
|
};
|
|
25366
|
-
function
|
|
25398
|
+
function Zk({ widget: e }) {
|
|
25367
25399
|
const t = e.config, { context: n, dispatchAction: r } = Gn(), o = t.buttons ?? [];
|
|
25368
25400
|
return /* @__PURE__ */ f(
|
|
25369
25401
|
"div",
|
|
25370
25402
|
{
|
|
25371
25403
|
className: L(
|
|
25372
25404
|
"flex flex-wrap items-center",
|
|
25373
|
-
|
|
25374
|
-
|
|
25405
|
+
Jk[t.align ?? "start"],
|
|
25406
|
+
Qk[t.gap ?? "sm"],
|
|
25375
25407
|
t.wrap === !1 && "flex-nowrap"
|
|
25376
25408
|
),
|
|
25377
25409
|
"data-widget-id": e.id,
|
|
@@ -25477,36 +25509,36 @@ function Xo(e, t) {
|
|
|
25477
25509
|
const n = et(e, t.path);
|
|
25478
25510
|
return n == null ? t.fallback ?? n : t.formatter ? $l(n, t.formatter) : n;
|
|
25479
25511
|
}
|
|
25480
|
-
function
|
|
25512
|
+
function eF(e, t) {
|
|
25481
25513
|
if (!t) return {};
|
|
25482
25514
|
const n = {};
|
|
25483
25515
|
for (const [r, o] of Object.entries(t))
|
|
25484
25516
|
o in e && (n[r] = e[o]);
|
|
25485
25517
|
return n;
|
|
25486
25518
|
}
|
|
25487
|
-
const
|
|
25519
|
+
const tF = {
|
|
25488
25520
|
default: "border bg-card",
|
|
25489
25521
|
success: "border border-green-200 bg-green-50 text-green-900",
|
|
25490
25522
|
warning: "border border-amber-200 bg-amber-50 text-amber-900",
|
|
25491
25523
|
danger: "border border-red-200 bg-red-50 text-red-900"
|
|
25492
|
-
},
|
|
25524
|
+
}, nF = {
|
|
25493
25525
|
rectangle: "rounded-lg",
|
|
25494
25526
|
square: "aspect-square rounded-lg",
|
|
25495
25527
|
circle: "aspect-square rounded-full"
|
|
25496
|
-
},
|
|
25528
|
+
}, rF = {
|
|
25497
25529
|
sm: "p-2 text-xs",
|
|
25498
25530
|
md: "p-4 text-sm",
|
|
25499
25531
|
lg: "p-6 text-base"
|
|
25500
|
-
},
|
|
25532
|
+
}, il = {
|
|
25501
25533
|
sm: "text-lg",
|
|
25502
25534
|
md: "text-2xl",
|
|
25503
25535
|
lg: "text-3xl"
|
|
25504
|
-
},
|
|
25536
|
+
}, oF = {
|
|
25505
25537
|
sm: "gap-2",
|
|
25506
25538
|
md: "gap-3",
|
|
25507
25539
|
lg: "gap-4"
|
|
25508
25540
|
};
|
|
25509
|
-
function
|
|
25541
|
+
function iF({
|
|
25510
25542
|
title: e,
|
|
25511
25543
|
value: t,
|
|
25512
25544
|
trend: n,
|
|
@@ -25522,9 +25554,9 @@ function nF({
|
|
|
25522
25554
|
"div",
|
|
25523
25555
|
{
|
|
25524
25556
|
className: L(
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
25557
|
+
tF[r ?? "default"],
|
|
25558
|
+
nF[o ?? "rectangle"],
|
|
25559
|
+
rF[i ?? "md"],
|
|
25528
25560
|
u && "flex items-center justify-between gap-3"
|
|
25529
25561
|
),
|
|
25530
25562
|
children: [
|
|
@@ -25532,7 +25564,7 @@ function nF({
|
|
|
25532
25564
|
e && /* @__PURE__ */ f("p", { className: L("font-medium text-muted-foreground", u ? "text-sm" : ""), children: e }),
|
|
25533
25565
|
n != null && n !== "" && !u && /* @__PURE__ */ f("p", { className: "mt-1 text-xs text-muted-foreground", children: String(n) })
|
|
25534
25566
|
] }),
|
|
25535
|
-
a ? /* @__PURE__ */ f(Pr, { className: "my-2" }) : c ? /* @__PURE__ */ f("p", { className: L("font-bold text-destructive",
|
|
25567
|
+
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
25568
|
u && n !== null && n !== void 0 && n !== "" && /* @__PURE__ */ f("p", { className: "text-xs text-muted-foreground", children: String(n) })
|
|
25537
25569
|
]
|
|
25538
25570
|
}
|
|
@@ -25565,7 +25597,7 @@ function Ay({
|
|
|
25565
25597
|
return Xo(n, e.valueMapping);
|
|
25566
25598
|
})(), 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
25599
|
return /* @__PURE__ */ f(
|
|
25568
|
-
|
|
25600
|
+
iF,
|
|
25569
25601
|
{
|
|
25570
25602
|
title: e.title,
|
|
25571
25603
|
value: s,
|
|
@@ -25579,14 +25611,14 @@ function Ay({
|
|
|
25579
25611
|
}
|
|
25580
25612
|
);
|
|
25581
25613
|
}
|
|
25582
|
-
function
|
|
25614
|
+
function sF({ widget: e }) {
|
|
25583
25615
|
const t = e.config;
|
|
25584
25616
|
return /* @__PURE__ */ f("div", { "data-widget-id": e.id, children: /* @__PURE__ */ f(Ay, { stat: t, widgetId: e.id }) });
|
|
25585
25617
|
}
|
|
25586
|
-
function
|
|
25618
|
+
function aF({ stat: e, widgetId: t }) {
|
|
25587
25619
|
return /* @__PURE__ */ f(Ay, { stat: e, widgetId: `${t}-${e.id}` });
|
|
25588
25620
|
}
|
|
25589
|
-
function
|
|
25621
|
+
function lF({ widget: e }) {
|
|
25590
25622
|
const t = e.config, n = t.stats ?? [], r = t.columns ?? 1, o = t.direction === "horizontal";
|
|
25591
25623
|
return /* @__PURE__ */ f(
|
|
25592
25624
|
"div",
|
|
@@ -25598,13 +25630,13 @@ function iF({ widget: e }) {
|
|
|
25598
25630
|
!o && r === 2 && "grid-cols-2",
|
|
25599
25631
|
!o && r === 3 && "grid-cols-3",
|
|
25600
25632
|
!o && r === 4 && "grid-cols-4",
|
|
25601
|
-
|
|
25633
|
+
oF[t.gap ?? "md"]
|
|
25602
25634
|
),
|
|
25603
|
-
children: n.map((i) => /* @__PURE__ */ f(
|
|
25635
|
+
children: n.map((i) => /* @__PURE__ */ f(aF, { stat: i, widgetId: e.id }, i.id))
|
|
25604
25636
|
}
|
|
25605
25637
|
);
|
|
25606
25638
|
}
|
|
25607
|
-
function
|
|
25639
|
+
function cF({ widget: e }) {
|
|
25608
25640
|
const t = e.config, { setFilterValue: n } = Gn(), [r, o] = Ee("");
|
|
25609
25641
|
return wt(() => {
|
|
25610
25642
|
const i = t.debounceMs ?? 300, s = setTimeout(() => {
|
|
@@ -25623,7 +25655,7 @@ function sF({ widget: e }) {
|
|
|
25623
25655
|
}
|
|
25624
25656
|
);
|
|
25625
25657
|
}
|
|
25626
|
-
function
|
|
25658
|
+
function uF(e, t) {
|
|
25627
25659
|
if (!e) return [];
|
|
25628
25660
|
const n = t ? et(e, t) : e;
|
|
25629
25661
|
if (Array.isArray(n))
|
|
@@ -25635,14 +25667,14 @@ function aF(e, t) {
|
|
|
25635
25667
|
}
|
|
25636
25668
|
return [];
|
|
25637
25669
|
}
|
|
25638
|
-
function
|
|
25670
|
+
function dF({ widget: e }) {
|
|
25639
25671
|
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
25672
|
widgetId: e.id,
|
|
25641
25673
|
dataSource: t.dataSource,
|
|
25642
25674
|
page: r,
|
|
25643
25675
|
pageSize: a,
|
|
25644
25676
|
search: t.search?.enabled ? i : void 0
|
|
25645
|
-
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p =
|
|
25677
|
+
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p = uF(c, d ?? "data.items"), m = (g, h) => {
|
|
25646
25678
|
const y = t.dataSource.responseMapping.find((v) => v.target === h);
|
|
25647
25679
|
return y ? Xo(g, y) : et(g, h) ?? "";
|
|
25648
25680
|
};
|
|
@@ -25730,11 +25762,11 @@ function lF({ widget: e }) {
|
|
|
25730
25762
|
] })
|
|
25731
25763
|
] });
|
|
25732
25764
|
}
|
|
25733
|
-
const
|
|
25734
|
-
function
|
|
25735
|
-
return e ??
|
|
25765
|
+
const fF = 75;
|
|
25766
|
+
function pF(e) {
|
|
25767
|
+
return e ?? fF;
|
|
25736
25768
|
}
|
|
25737
|
-
function
|
|
25769
|
+
function sl({
|
|
25738
25770
|
scrollBehavior: e = "page",
|
|
25739
25771
|
maxHeightPercent: t,
|
|
25740
25772
|
children: n,
|
|
@@ -25742,7 +25774,7 @@ function al({
|
|
|
25742
25774
|
}) {
|
|
25743
25775
|
if (e !== "contained")
|
|
25744
25776
|
return /* @__PURE__ */ f(an, { children: n });
|
|
25745
|
-
const o =
|
|
25777
|
+
const o = pF(t);
|
|
25746
25778
|
return /* @__PURE__ */ f(
|
|
25747
25779
|
"div",
|
|
25748
25780
|
{
|
|
@@ -25753,10 +25785,10 @@ function al({
|
|
|
25753
25785
|
}
|
|
25754
25786
|
);
|
|
25755
25787
|
}
|
|
25756
|
-
function
|
|
25788
|
+
function mF(e, t, n) {
|
|
25757
25789
|
return ["embedded-form", e, t, n ?? "latest"];
|
|
25758
25790
|
}
|
|
25759
|
-
async function
|
|
25791
|
+
async function hF(e, t) {
|
|
25760
25792
|
try {
|
|
25761
25793
|
const n = await Fr.get(
|
|
25762
25794
|
`/api/form-builder/form-layouts/form/${e}`,
|
|
@@ -25770,12 +25802,12 @@ async function fF(e, t) {
|
|
|
25770
25802
|
return null;
|
|
25771
25803
|
}
|
|
25772
25804
|
}
|
|
25773
|
-
async function
|
|
25805
|
+
async function gF(e, t, n) {
|
|
25774
25806
|
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
25807
|
params: { clientId: t }
|
|
25776
25808
|
}), s = o.data?.data ?? o.data, a = s.form ?? s, c = s.fields ?? a.fields ?? [];
|
|
25777
25809
|
let u = s.layout ?? a.layout ?? null;
|
|
25778
|
-
(!u || typeof u.columns != "number") && (u = await
|
|
25810
|
+
(!u || typeof u.columns != "number") && (u = await hF(e, t));
|
|
25779
25811
|
const l = s.rules ?? a.rules ?? [], d = ss(
|
|
25780
25812
|
a,
|
|
25781
25813
|
c,
|
|
@@ -25783,11 +25815,11 @@ async function pF(e, t, n) {
|
|
|
25783
25815
|
l
|
|
25784
25816
|
), p = Vl(
|
|
25785
25817
|
{ config: d.config, layout: d.layout },
|
|
25786
|
-
|
|
25787
|
-
) ??
|
|
25818
|
+
ll(u)
|
|
25819
|
+
) ?? ll(u);
|
|
25788
25820
|
return { schema: d, gridLayout: p };
|
|
25789
25821
|
}
|
|
25790
|
-
const
|
|
25822
|
+
const yF = 300 * 1e3;
|
|
25791
25823
|
function Cy({
|
|
25792
25824
|
formId: e,
|
|
25793
25825
|
mode: t = "fill",
|
|
@@ -25799,14 +25831,14 @@ function Cy({
|
|
|
25799
25831
|
maxHeightPercent: a
|
|
25800
25832
|
}) {
|
|
25801
25833
|
const { data: c, isLoading: u, isError: l, error: d } = qr({
|
|
25802
|
-
queryKey:
|
|
25803
|
-
queryFn: () =>
|
|
25804
|
-
staleTime:
|
|
25834
|
+
queryKey: mF(e, o, i),
|
|
25835
|
+
queryFn: () => gF(e, o, i),
|
|
25836
|
+
staleTime: yF
|
|
25805
25837
|
}), p = pe(
|
|
25806
|
-
() =>
|
|
25838
|
+
() => eF(r, n),
|
|
25807
25839
|
[r, n]
|
|
25808
25840
|
);
|
|
25809
|
-
return u ? /* @__PURE__ */ f(
|
|
25841
|
+
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
25842
|
Xg,
|
|
25811
25843
|
{
|
|
25812
25844
|
schema: c.schema,
|
|
@@ -25817,7 +25849,7 @@ function Cy({
|
|
|
25817
25849
|
}
|
|
25818
25850
|
) }) : null;
|
|
25819
25851
|
}
|
|
25820
|
-
function
|
|
25852
|
+
function bF({ widget: e }) {
|
|
25821
25853
|
const t = e.config, { context: n, clientId: r } = Gn();
|
|
25822
25854
|
return t.formId ? /* @__PURE__ */ f(
|
|
25823
25855
|
Cy,
|
|
@@ -25832,7 +25864,7 @@ function hF({ widget: e }) {
|
|
|
25832
25864
|
}
|
|
25833
25865
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured" });
|
|
25834
25866
|
}
|
|
25835
|
-
function
|
|
25867
|
+
function vF({ widget: e }) {
|
|
25836
25868
|
const t = e.config, { context: n, getWorkflowState: r, clientId: o } = Gn(), i = String(n.moduleId ?? "");
|
|
25837
25869
|
if (!r)
|
|
25838
25870
|
return /* @__PURE__ */ $(
|
|
@@ -25857,7 +25889,7 @@ function gF({ widget: e }) {
|
|
|
25857
25889
|
u != null && (s[a] = String(u));
|
|
25858
25890
|
}
|
|
25859
25891
|
return /* @__PURE__ */ f(
|
|
25860
|
-
|
|
25892
|
+
yk,
|
|
25861
25893
|
{
|
|
25862
25894
|
getWorkflowState: r,
|
|
25863
25895
|
moduleId: i,
|
|
@@ -25867,7 +25899,7 @@ function gF({ widget: e }) {
|
|
|
25867
25899
|
}
|
|
25868
25900
|
);
|
|
25869
25901
|
}
|
|
25870
|
-
function
|
|
25902
|
+
function wF({ widget: e }) {
|
|
25871
25903
|
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
25904
|
r(
|
|
25873
25905
|
{
|
|
@@ -25889,11 +25921,11 @@ function yF({ widget: e }) {
|
|
|
25889
25921
|
] })
|
|
25890
25922
|
] });
|
|
25891
25923
|
}
|
|
25892
|
-
function
|
|
25924
|
+
function SF(e, t) {
|
|
25893
25925
|
return e?.length ? e.filter((n) => n.config.tabId === t) : [];
|
|
25894
25926
|
}
|
|
25895
|
-
const
|
|
25896
|
-
function
|
|
25927
|
+
const xF = 1;
|
|
25928
|
+
function AF(e) {
|
|
25897
25929
|
switch (e) {
|
|
25898
25930
|
case "pills":
|
|
25899
25931
|
return "bg-transparent gap-1 p-0 h-auto";
|
|
@@ -25903,7 +25935,7 @@ function wF(e) {
|
|
|
25903
25935
|
return "";
|
|
25904
25936
|
}
|
|
25905
25937
|
}
|
|
25906
|
-
function
|
|
25938
|
+
function CF(e) {
|
|
25907
25939
|
switch (e) {
|
|
25908
25940
|
case "pills":
|
|
25909
25941
|
return "rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground";
|
|
@@ -25913,10 +25945,10 @@ function SF(e) {
|
|
|
25913
25945
|
return "";
|
|
25914
25946
|
}
|
|
25915
25947
|
}
|
|
25916
|
-
function
|
|
25948
|
+
function EF(e, t, n) {
|
|
25917
25949
|
return e ? new Set(n ? [n] : []) : new Set(t.map((r) => r.id));
|
|
25918
25950
|
}
|
|
25919
|
-
function
|
|
25951
|
+
function NF({
|
|
25920
25952
|
tab: e,
|
|
25921
25953
|
shouldRender: t,
|
|
25922
25954
|
pageContext: n,
|
|
@@ -25935,7 +25967,7 @@ function AF({
|
|
|
25935
25967
|
}
|
|
25936
25968
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured for this tab" }) : null;
|
|
25937
25969
|
}
|
|
25938
|
-
function
|
|
25970
|
+
function _F({
|
|
25939
25971
|
tab: e,
|
|
25940
25972
|
shouldLoad: t,
|
|
25941
25973
|
shouldRender: n,
|
|
@@ -25950,7 +25982,7 @@ function CF({
|
|
|
25950
25982
|
enabled: t && !!e.pageId,
|
|
25951
25983
|
queryFn: async () => hy(e.pageId, i, e.pageVersion)
|
|
25952
25984
|
});
|
|
25953
|
-
return n ? r >=
|
|
25985
|
+
return n ? r >= xF ? /* @__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
25986
|
Ey,
|
|
25955
25987
|
{
|
|
25956
25988
|
page: u,
|
|
@@ -25963,17 +25995,17 @@ function CF({
|
|
|
25963
25995
|
}
|
|
25964
25996
|
) : null : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No page configured for this tab" }) : null;
|
|
25965
25997
|
}
|
|
25966
|
-
function
|
|
25998
|
+
function TF({
|
|
25967
25999
|
tab: e,
|
|
25968
26000
|
widgetChildren: t,
|
|
25969
26001
|
renderChildren: n
|
|
25970
26002
|
}) {
|
|
25971
|
-
const r =
|
|
26003
|
+
const r = SF(t, e.id);
|
|
25972
26004
|
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
26005
|
}
|
|
25974
|
-
function
|
|
26006
|
+
function RF({ widget: e, renderChildren: t }) {
|
|
25975
26007
|
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
|
-
() =>
|
|
26008
|
+
() => EF(l, c, u)
|
|
25977
26009
|
), h = (v) => {
|
|
25978
26010
|
g((w) => new Set(w).add(v)), p(v);
|
|
25979
26011
|
}, y = pe(() => !l, [l]);
|
|
@@ -25985,12 +26017,12 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
25985
26017
|
className: "w-full",
|
|
25986
26018
|
"data-widget-id": e.id,
|
|
25987
26019
|
children: [
|
|
25988
|
-
/* @__PURE__ */ f(ly, { className: L("mb-4",
|
|
26020
|
+
/* @__PURE__ */ f(ly, { className: L("mb-4", AF(n.variant)), children: c.map((v) => /* @__PURE__ */ f(
|
|
25989
26021
|
cy,
|
|
25990
26022
|
{
|
|
25991
26023
|
value: v.id,
|
|
25992
26024
|
disabled: v.disabled,
|
|
25993
|
-
className:
|
|
26025
|
+
className: CF(n.variant),
|
|
25994
26026
|
children: v.label
|
|
25995
26027
|
},
|
|
25996
26028
|
v.id
|
|
@@ -26005,7 +26037,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26005
26037
|
className: L("mt-0", y && "data-[state=inactive]:hidden"),
|
|
26006
26038
|
children: [
|
|
26007
26039
|
v.contentType === "widgets" && C && /* @__PURE__ */ f(
|
|
26008
|
-
|
|
26040
|
+
TF,
|
|
26009
26041
|
{
|
|
26010
26042
|
tab: v,
|
|
26011
26043
|
widgetChildren: e.children ?? [],
|
|
@@ -26013,7 +26045,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26013
26045
|
}
|
|
26014
26046
|
),
|
|
26015
26047
|
v.contentType === "form" && /* @__PURE__ */ f(
|
|
26016
|
-
|
|
26048
|
+
NF,
|
|
26017
26049
|
{
|
|
26018
26050
|
tab: v,
|
|
26019
26051
|
shouldRender: S,
|
|
@@ -26022,7 +26054,7 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26022
26054
|
}
|
|
26023
26055
|
),
|
|
26024
26056
|
v.contentType === "page" && /* @__PURE__ */ f(
|
|
26025
|
-
|
|
26057
|
+
_F,
|
|
26026
26058
|
{
|
|
26027
26059
|
tab: v,
|
|
26028
26060
|
shouldLoad: S,
|
|
@@ -26043,24 +26075,24 @@ function NF({ widget: e, renderChildren: t }) {
|
|
|
26043
26075
|
}
|
|
26044
26076
|
);
|
|
26045
26077
|
}
|
|
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:
|
|
26078
|
+
const kF = {
|
|
26079
|
+
section: Vk,
|
|
26080
|
+
columns: Hk,
|
|
26081
|
+
card: Wk,
|
|
26082
|
+
tab_group: RF,
|
|
26083
|
+
heading: Gk,
|
|
26084
|
+
text: Kk,
|
|
26085
|
+
button: Xk,
|
|
26086
|
+
button_group: Zk,
|
|
26087
|
+
stat_card: sF,
|
|
26088
|
+
stat_grid: lF,
|
|
26089
|
+
data_table: dF,
|
|
26090
|
+
search_filter: cF,
|
|
26091
|
+
form_embed: bF,
|
|
26092
|
+
workflow_embed: vF,
|
|
26093
|
+
page_nav: wF
|
|
26062
26094
|
};
|
|
26063
|
-
function
|
|
26095
|
+
function FF({ widget: e }) {
|
|
26064
26096
|
return /* @__PURE__ */ $(
|
|
26065
26097
|
"div",
|
|
26066
26098
|
{
|
|
@@ -26079,16 +26111,16 @@ function TF({ widget: e }) {
|
|
|
26079
26111
|
}
|
|
26080
26112
|
);
|
|
26081
26113
|
}
|
|
26082
|
-
function
|
|
26114
|
+
function PF({
|
|
26083
26115
|
widget: e,
|
|
26084
26116
|
renderChildren: t
|
|
26085
26117
|
}) {
|
|
26086
|
-
const n =
|
|
26118
|
+
const n = kF[e.type] ?? FF;
|
|
26087
26119
|
return /* @__PURE__ */ f(n, { widget: e, renderChildren: t });
|
|
26088
26120
|
}
|
|
26089
26121
|
function uf(e, t) {
|
|
26090
26122
|
return e.map((n) => /* @__PURE__ */ f(
|
|
26091
|
-
|
|
26123
|
+
PF,
|
|
26092
26124
|
{
|
|
26093
26125
|
widget: n,
|
|
26094
26126
|
renderChildren: t
|
|
@@ -26107,10 +26139,10 @@ function Ey({
|
|
|
26107
26139
|
inheritContext: a = !1,
|
|
26108
26140
|
parentContext: c
|
|
26109
26141
|
}) {
|
|
26110
|
-
const u = pe(() =>
|
|
26142
|
+
const u = pe(() => Ek(e.schema), [e.schema]), l = (p) => uf(p, l), d = /* @__PURE__ */ $(
|
|
26111
26143
|
"div",
|
|
26112
26144
|
{
|
|
26113
|
-
className: L("studio-page-content min-h-0 min-w-0",
|
|
26145
|
+
className: L("studio-page-content min-h-0 min-w-0", xk(u), o),
|
|
26114
26146
|
"data-page-id": e.id,
|
|
26115
26147
|
"data-nesting-depth": i,
|
|
26116
26148
|
children: [
|
|
@@ -26123,7 +26155,7 @@ function Ey({
|
|
|
26123
26155
|
}
|
|
26124
26156
|
);
|
|
26125
26157
|
return a && c ? d : /* @__PURE__ */ f(
|
|
26126
|
-
|
|
26158
|
+
Rk,
|
|
26127
26159
|
{
|
|
26128
26160
|
schema: u,
|
|
26129
26161
|
context: t,
|
|
@@ -26136,7 +26168,7 @@ function Ey({
|
|
|
26136
26168
|
}
|
|
26137
26169
|
);
|
|
26138
26170
|
}
|
|
26139
|
-
function
|
|
26171
|
+
function wP({
|
|
26140
26172
|
clientId: e,
|
|
26141
26173
|
tenantId: t,
|
|
26142
26174
|
moduleId: n,
|
|
@@ -26168,7 +26200,7 @@ function yP({
|
|
|
26168
26200
|
error: v
|
|
26169
26201
|
} = qr({
|
|
26170
26202
|
queryKey: ["page-resolve", e, t, n, r, o, i, a, u],
|
|
26171
|
-
queryFn: () =>
|
|
26203
|
+
queryFn: () => _k({
|
|
26172
26204
|
clientId: e,
|
|
26173
26205
|
tenantId: t,
|
|
26174
26206
|
moduleId: n,
|
|
@@ -26201,25 +26233,25 @@ function yP({
|
|
|
26201
26233
|
) : /* @__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
26234
|
}
|
|
26203
26235
|
export {
|
|
26204
|
-
|
|
26236
|
+
bP as FIELD_TYPE_REGISTRY,
|
|
26205
26237
|
So as FORM_RENDERER_GRID_ROW_HEIGHT_DEFAULT,
|
|
26206
26238
|
ff as FORM_RENDERER_ROOT_CLASS,
|
|
26207
26239
|
Ar as FieldRenderer,
|
|
26208
26240
|
Xg as FormRenderer,
|
|
26209
26241
|
Ey as PageRenderer,
|
|
26210
26242
|
Of as RendererFieldLayoutContext,
|
|
26211
|
-
|
|
26212
|
-
|
|
26243
|
+
wP as StudioPageHost,
|
|
26244
|
+
yk as WorkflowStepsView,
|
|
26213
26245
|
Fs as appearanceControlClasses,
|
|
26214
26246
|
Bb as appearanceHasExplicitVerticalIntent,
|
|
26215
26247
|
Nb as appearanceTextareaClasses,
|
|
26216
26248
|
ss as backendToFormSchema,
|
|
26217
|
-
|
|
26218
|
-
|
|
26249
|
+
zF as cellAlignmentClasses,
|
|
26250
|
+
jF as cellVerticalJustifyClassesForField,
|
|
26219
26251
|
Gl as effectiveWidthPercent,
|
|
26220
26252
|
gy as executeDataSource,
|
|
26221
26253
|
hy as fetchPageRender,
|
|
26222
|
-
|
|
26254
|
+
$F as fieldBlockBoxStyle,
|
|
26223
26255
|
Lb as fieldBlockBoxStyleForField,
|
|
26224
26256
|
Pb as fieldBlockHorizontalPlacementClass,
|
|
26225
26257
|
Ob as fieldBlockHorizontalSelfClass,
|
|
@@ -26228,39 +26260,39 @@ export {
|
|
|
26228
26260
|
Mb as fieldBlockWidthStyleForField,
|
|
26229
26261
|
ql as fieldGridShellFillsCellVertically,
|
|
26230
26262
|
Fr as formBuilderHttp,
|
|
26231
|
-
|
|
26263
|
+
ll as formLayoutRecordToGridConfig,
|
|
26232
26264
|
CC as getBusinessApiOrigin,
|
|
26233
26265
|
Zr as getClientId,
|
|
26234
26266
|
Wm as getRendererHostAuthHeaders,
|
|
26235
|
-
|
|
26236
|
-
|
|
26267
|
+
dP as getRendererHostViewerContext,
|
|
26268
|
+
UF as getRendererStore,
|
|
26237
26269
|
Fb as gridCellFlexClasses,
|
|
26238
26270
|
du as gridCellFlexClassesForField,
|
|
26239
26271
|
kb as gridCellOuterFlexClasses,
|
|
26240
26272
|
Ib as hasExplicitFieldBlockWidth,
|
|
26241
|
-
|
|
26273
|
+
hP as isAsyncSearchFieldProperties,
|
|
26242
26274
|
li as isIntrinsicWidthButtonField,
|
|
26243
|
-
|
|
26275
|
+
mP as normalizeWorkflowFormSchema,
|
|
26244
26276
|
Uc as normalizeWorkflowFormToRendererSchema,
|
|
26245
26277
|
ga as pageBuilderHttp,
|
|
26246
26278
|
Ff as parseContentVerticalAlign,
|
|
26247
26279
|
ma as parseMetadataJson,
|
|
26248
|
-
|
|
26280
|
+
uP as resetRendererHostAuth,
|
|
26249
26281
|
Er as resolveBusinessApiUrl,
|
|
26250
26282
|
Vl as resolveFormGridLayout,
|
|
26251
|
-
|
|
26283
|
+
_k as resolvePage,
|
|
26252
26284
|
us as resolvedGridCellVerticalJustifyClasses,
|
|
26253
26285
|
Zn as resolvedHorizontalAlign,
|
|
26254
26286
|
cs as resolvedVerticalAlign,
|
|
26255
26287
|
Pf as resolvedVerticalAlignForField,
|
|
26256
|
-
|
|
26257
|
-
|
|
26258
|
-
|
|
26259
|
-
|
|
26260
|
-
|
|
26261
|
-
|
|
26288
|
+
aP as setBusinessApiOrigin,
|
|
26289
|
+
fP as setFormBuilderAuthProvider,
|
|
26290
|
+
vP as setPageBuilderAuthProvider,
|
|
26291
|
+
cP as setRendererHostAuthHeaders,
|
|
26292
|
+
lP as setRendererHostViewerContext,
|
|
26293
|
+
yP as useFieldValidation,
|
|
26262
26294
|
fv as useFormRenderer,
|
|
26263
|
-
|
|
26295
|
+
gP as useFormValidation,
|
|
26264
26296
|
Os as useRendererFieldLayout,
|
|
26265
26297
|
Do as useRendererHostAuthStore
|
|
26266
26298
|
};
|