iq-line-form-builder-renderer 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form-renderer.es.js +442 -446
- 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/utils/billingGridFieldUi.d.ts +5 -0
- package/dist/pages/systemAdmin/modules/formbuilder/utils/billingGridFieldUi.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/form-renderer.es.js
CHANGED
|
@@ -3070,7 +3070,7 @@ function kf(e) {
|
|
|
3070
3070
|
maxWidth: "100%"
|
|
3071
3071
|
};
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function UF(e) {
|
|
3074
3074
|
return kf(e);
|
|
3075
3075
|
}
|
|
3076
3076
|
function xa(e) {
|
|
@@ -3135,7 +3135,7 @@ function us(e) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return Kl(Pf(e));
|
|
3137
3137
|
}
|
|
3138
|
-
const
|
|
3138
|
+
const VF = us;
|
|
3139
3139
|
function ql(e) {
|
|
3140
3140
|
if (e.type === "billingGrid" || e.type === "table" || ai(e) > 1) return !0;
|
|
3141
3141
|
const t = Ff(e.appearance?.contentVerticalAlign);
|
|
@@ -3218,7 +3218,7 @@ function du(e) {
|
|
|
3218
3218
|
us(e)
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function HF(e, t) {
|
|
3222
3222
|
const n = {};
|
|
3223
3223
|
e !== void 0 && (n.cellAlign = e), t !== void 0 && (n.cellJustify = t);
|
|
3224
3224
|
const o = e === void 0 && t === void 0 ? void 0 : n;
|
|
@@ -4266,7 +4266,7 @@ const Ot = If((e, t) => ({
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
}));
|
|
4269
|
-
function
|
|
4269
|
+
function WF() {
|
|
4270
4270
|
return Ot.getState();
|
|
4271
4271
|
}
|
|
4272
4272
|
function fv({
|
|
@@ -11057,22 +11057,22 @@ It.getAdapter = Em.getAdapter;
|
|
|
11057
11057
|
It.HttpStatusCode = El;
|
|
11058
11058
|
It.default = It;
|
|
11059
11059
|
const {
|
|
11060
|
-
Axios:
|
|
11060
|
+
Axios: YF,
|
|
11061
11061
|
AxiosError: gC,
|
|
11062
|
-
CanceledError:
|
|
11063
|
-
isCancel:
|
|
11064
|
-
CancelToken:
|
|
11065
|
-
VERSION:
|
|
11066
|
-
all:
|
|
11067
|
-
Cancel:
|
|
11068
|
-
isAxiosError:
|
|
11069
|
-
spread:
|
|
11070
|
-
toFormData:
|
|
11071
|
-
AxiosHeaders:
|
|
11072
|
-
HttpStatusCode:
|
|
11073
|
-
formToJSON:
|
|
11074
|
-
getAdapter:
|
|
11075
|
-
mergeConfig:
|
|
11062
|
+
CanceledError: XF,
|
|
11063
|
+
isCancel: JF,
|
|
11064
|
+
CancelToken: QF,
|
|
11065
|
+
VERSION: ZF,
|
|
11066
|
+
all: eP,
|
|
11067
|
+
Cancel: tP,
|
|
11068
|
+
isAxiosError: nP,
|
|
11069
|
+
spread: rP,
|
|
11070
|
+
toFormData: oP,
|
|
11071
|
+
AxiosHeaders: iP,
|
|
11072
|
+
HttpStatusCode: sP,
|
|
11073
|
+
formToJSON: aP,
|
|
11074
|
+
getAdapter: lP,
|
|
11075
|
+
mergeConfig: cP
|
|
11076
11076
|
} = It;
|
|
11077
11077
|
function pn(e, t) {
|
|
11078
11078
|
if (!t || t.trim() === "" || e == null) return;
|
|
@@ -11255,7 +11255,7 @@ function AC(e) {
|
|
|
11255
11255
|
});
|
|
11256
11256
|
}
|
|
11257
11257
|
let Rm = null;
|
|
11258
|
-
function
|
|
11258
|
+
function uP(e) {
|
|
11259
11259
|
Rm = e;
|
|
11260
11260
|
}
|
|
11261
11261
|
function CC() {
|
|
@@ -11961,16 +11961,16 @@ const Do = If((e) => ({
|
|
|
11961
11961
|
_setAuthHeaders: (t) => e({ authHeaders: JC(t) }),
|
|
11962
11962
|
_reset: () => e({ viewerContext: void 0, authHeaders: void 0 })
|
|
11963
11963
|
}));
|
|
11964
|
-
function
|
|
11964
|
+
function dP(e) {
|
|
11965
11965
|
Do.getState()._setViewerContext(e);
|
|
11966
11966
|
}
|
|
11967
|
-
function
|
|
11967
|
+
function fP(e) {
|
|
11968
11968
|
Do.getState()._setAuthHeaders(e);
|
|
11969
11969
|
}
|
|
11970
|
-
function
|
|
11970
|
+
function pP() {
|
|
11971
11971
|
Do.getState()._reset();
|
|
11972
11972
|
}
|
|
11973
|
-
function
|
|
11973
|
+
function mP() {
|
|
11974
11974
|
return Do.getState().viewerContext;
|
|
11975
11975
|
}
|
|
11976
11976
|
function Wm() {
|
|
@@ -11978,7 +11978,7 @@ function Wm() {
|
|
|
11978
11978
|
}
|
|
11979
11979
|
const gd = {};
|
|
11980
11980
|
let Gm = null;
|
|
11981
|
-
function
|
|
11981
|
+
function hP(e) {
|
|
11982
11982
|
Gm = e;
|
|
11983
11983
|
}
|
|
11984
11984
|
function QC() {
|
|
@@ -14971,7 +14971,7 @@ rg.displayName = ng;
|
|
|
14971
14971
|
function Oc(e) {
|
|
14972
14972
|
return e ? "open" : "closed";
|
|
14973
14973
|
}
|
|
14974
|
-
var og = "DialogTitleWarning", [
|
|
14974
|
+
var og = "DialogTitleWarning", [gP, ig] = cw(og, {
|
|
14975
14975
|
contentName: eo,
|
|
14976
14976
|
titleName: Pc,
|
|
14977
14977
|
docsSlug: "dialog"
|
|
@@ -17705,7 +17705,7 @@ const R_ = ({
|
|
|
17705
17705
|
]
|
|
17706
17706
|
}
|
|
17707
17707
|
) });
|
|
17708
|
-
};
|
|
17708
|
+
}, P_ = "h-8 min-h-8 rounded-md border border-input bg-background px-2 text-sm shadow-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30", O_ = "flex min-h-8 w-full items-center gap-0.5 rounded-md border border-input bg-background px-2 focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30", I_ = "h-8 min-w-[2ch] max-w-full flex-1 border-0 bg-transparent px-0 shadow-none focus-visible:ring-0";
|
|
17709
17709
|
function _g(e, t, n) {
|
|
17710
17710
|
const r = n?.emptyDisplay ?? "—";
|
|
17711
17711
|
if (e == null || e === "")
|
|
@@ -17722,13 +17722,13 @@ function _g(e, t, n) {
|
|
|
17722
17722
|
return String(e);
|
|
17723
17723
|
}
|
|
17724
17724
|
}
|
|
17725
|
-
function
|
|
17725
|
+
function M_(e) {
|
|
17726
17726
|
const t = e.replace(/[^\d.-]/g, "");
|
|
17727
17727
|
if (t === "" || t === "-" || t === ".") return null;
|
|
17728
17728
|
const n = parseFloat(t);
|
|
17729
17729
|
return Number.isNaN(n) ? null : n;
|
|
17730
17730
|
}
|
|
17731
|
-
function
|
|
17731
|
+
function L_(e) {
|
|
17732
17732
|
if (e == null || e === "") return "";
|
|
17733
17733
|
const t = typeof e == "number" ? e : Number(e);
|
|
17734
17734
|
return Number.isNaN(t) ? "" : String(t);
|
|
@@ -17742,13 +17742,13 @@ function ii(e) {
|
|
|
17742
17742
|
function Tg(e) {
|
|
17743
17743
|
return e.mode ?? "editable";
|
|
17744
17744
|
}
|
|
17745
|
-
function
|
|
17745
|
+
function D_(e, t) {
|
|
17746
17746
|
return e.kind === "currency" || e.kind === "input" && e.inputType === "number" ? !0 : t?.format === "currency" || t?.format === "number" || t?.format === "percent";
|
|
17747
17747
|
}
|
|
17748
17748
|
function Rg(e, t, n) {
|
|
17749
17749
|
if (e !== void 0) {
|
|
17750
17750
|
if (e === "") return "";
|
|
17751
|
-
if (
|
|
17751
|
+
if (D_(t, n)) {
|
|
17752
17752
|
const r = Number(e);
|
|
17753
17753
|
return Number.isNaN(r) ? e : r;
|
|
17754
17754
|
}
|
|
@@ -17766,7 +17766,7 @@ function Ol(e, t, n) {
|
|
|
17766
17766
|
const r = Lc(t, n);
|
|
17767
17767
|
return r !== void 0 ? r : e;
|
|
17768
17768
|
}
|
|
17769
|
-
function
|
|
17769
|
+
function B_(e, t, n) {
|
|
17770
17770
|
const r = { ...t };
|
|
17771
17771
|
for (const [o, i] of Object.entries(e)) {
|
|
17772
17772
|
const s = n.find((c) => c.key === o);
|
|
@@ -17781,8 +17781,8 @@ function Ns(e, t, n) {
|
|
|
17781
17781
|
const r = Lc(t, n);
|
|
17782
17782
|
return r !== void 0 ? r : e;
|
|
17783
17783
|
}
|
|
17784
|
-
const
|
|
17785
|
-
function
|
|
17784
|
+
const $_ = /* @__PURE__ */ new Set(["all_items_summary", "invoice_discount", "grand_total"]);
|
|
17785
|
+
function j_(e, t) {
|
|
17786
17786
|
switch (t) {
|
|
17787
17787
|
case "dynamic":
|
|
17788
17788
|
return e.filter((n) => n.rowKind === "dynamic");
|
|
@@ -17792,7 +17792,7 @@ function D_(e, t) {
|
|
|
17792
17792
|
return e;
|
|
17793
17793
|
case "data":
|
|
17794
17794
|
return e.filter(
|
|
17795
|
-
(n) => n.rowKind === "dynamic" || n.rowKind === "static" &&
|
|
17795
|
+
(n) => n.rowKind === "dynamic" || n.rowKind === "static" && !$_.has(n.slotId)
|
|
17796
17796
|
);
|
|
17797
17797
|
default:
|
|
17798
17798
|
return e;
|
|
@@ -17803,18 +17803,18 @@ function Wa(e) {
|
|
|
17803
17803
|
const t = Number(e);
|
|
17804
17804
|
return Number.isNaN(t) ? 0 : t;
|
|
17805
17805
|
}
|
|
17806
|
-
function
|
|
17806
|
+
function z_(e, t, n) {
|
|
17807
17807
|
const r = e.rowSlots.find(
|
|
17808
17808
|
(o) => o.kind === "static" ? o.row.id === t.slotId : o.kind === "dynamic" && o.block.id === t.slotId
|
|
17809
17809
|
);
|
|
17810
17810
|
if (r)
|
|
17811
17811
|
return r.kind === "static" ? r.row.cells[n] : r.block.cells[n];
|
|
17812
17812
|
}
|
|
17813
|
-
function
|
|
17813
|
+
function U_(e, t, n) {
|
|
17814
17814
|
const r = (u) => Wa(n.values[u]), o = (u, l) => {
|
|
17815
17815
|
const d = t.find((p) => p.slotId === u && p.rowKind === "static");
|
|
17816
17816
|
return d ? Wa(d.values[l]) : 0;
|
|
17817
|
-
}, i = (u, l = "all") =>
|
|
17817
|
+
}, i = (u, l = "all") => j_(t, l).reduce(
|
|
17818
17818
|
(d, p) => d + Wa(p.values[u]),
|
|
17819
17819
|
0
|
|
17820
17820
|
), s = {
|
|
@@ -17837,15 +17837,15 @@ function Ro(e, t) {
|
|
|
17837
17837
|
}));
|
|
17838
17838
|
for (const r of n)
|
|
17839
17839
|
for (const o of e.columns) {
|
|
17840
|
-
const i =
|
|
17840
|
+
const i = z_(e, r, o.key);
|
|
17841
17841
|
if (i?.kind === "formula") {
|
|
17842
|
-
const s =
|
|
17842
|
+
const s = U_(i.expression, n, r), a = e.columns.find((c) => c.key === o.key);
|
|
17843
17843
|
r.values[o.key] = ii(s) ? Lc(i, a) ?? s : s;
|
|
17844
17844
|
}
|
|
17845
17845
|
}
|
|
17846
17846
|
return { rows: n };
|
|
17847
17847
|
}
|
|
17848
|
-
function
|
|
17848
|
+
function V_(e, t, n, r, o, i) {
|
|
17849
17849
|
const s = t.rows.map((a) => a.rowInstanceId !== n || a.slotId !== r ? a : {
|
|
17850
17850
|
...a,
|
|
17851
17851
|
values: { ...a.values, [o]: i }
|
|
@@ -17891,7 +17891,7 @@ function Bc(e, t) {
|
|
|
17891
17891
|
rowKind: "static",
|
|
17892
17892
|
rowInstanceId: o.row.id,
|
|
17893
17893
|
label: o.row.label,
|
|
17894
|
-
values:
|
|
17894
|
+
values: B_(
|
|
17895
17895
|
o.row.cells,
|
|
17896
17896
|
i?.values ? { ...i.values } : {},
|
|
17897
17897
|
e.columns
|
|
@@ -17906,7 +17906,7 @@ function Bc(e, t) {
|
|
|
17906
17906
|
}
|
|
17907
17907
|
return { rows: Dc(e, n, r) };
|
|
17908
17908
|
}
|
|
17909
|
-
function
|
|
17909
|
+
function H_(e, t, n, r) {
|
|
17910
17910
|
const o = Bc(e, r), i = e.rowSlots.find(
|
|
17911
17911
|
(c) => c.kind === "dynamic" && c.block.id === t
|
|
17912
17912
|
);
|
|
@@ -17925,7 +17925,7 @@ function z_(e, t, n, r) {
|
|
|
17925
17925
|
rows: Dc(e, s, a)
|
|
17926
17926
|
});
|
|
17927
17927
|
}
|
|
17928
|
-
function
|
|
17928
|
+
function W_(e, t, n) {
|
|
17929
17929
|
const r = Bc(e, n);
|
|
17930
17930
|
if (t == null || typeof t != "object" || Array.isArray(t))
|
|
17931
17931
|
return Ro(e, r);
|
|
@@ -17981,26 +17981,26 @@ function Fg(e) {
|
|
|
17981
17981
|
}
|
|
17982
17982
|
return e.bold ? t.push("font-bold") : e.fontSize && t.push("font-medium"), e.italic && t.push("italic"), e.underline && t.push("underline"), t.join(" ");
|
|
17983
17983
|
}
|
|
17984
|
-
function
|
|
17984
|
+
function G_(e) {
|
|
17985
17985
|
const t = e?.color?.trim();
|
|
17986
17986
|
return t ? { color: t } : {};
|
|
17987
17987
|
}
|
|
17988
17988
|
function Il(e) {
|
|
17989
17989
|
return {
|
|
17990
17990
|
className: Fg(e),
|
|
17991
|
-
style:
|
|
17991
|
+
style: G_(e)
|
|
17992
17992
|
};
|
|
17993
17993
|
}
|
|
17994
|
-
function
|
|
17994
|
+
function K_(e) {
|
|
17995
17995
|
return e ? !!(e.fontSize || e.bold || e.italic || e.underline || e.color?.trim()) : !1;
|
|
17996
17996
|
}
|
|
17997
|
-
function
|
|
17997
|
+
function q_(e, t) {
|
|
17998
17998
|
if (!e && !t) return;
|
|
17999
17999
|
const n = { ...e, ...t };
|
|
18000
|
-
return
|
|
18000
|
+
return K_(n) ? n : void 0;
|
|
18001
18001
|
}
|
|
18002
|
-
function
|
|
18003
|
-
const n = e?.kind === "label" ?
|
|
18002
|
+
function Y_(e, t) {
|
|
18003
|
+
const n = e?.kind === "label" ? q_(t, e.cellStyle) : e?.cellStyle;
|
|
18004
18004
|
return Il(n);
|
|
18005
18005
|
}
|
|
18006
18006
|
function Ga(e) {
|
|
@@ -18009,7 +18009,7 @@ function Ga(e) {
|
|
|
18009
18009
|
function Nd(e, t) {
|
|
18010
18010
|
return e?.align ? e.align : t?.align ?? "left";
|
|
18011
18011
|
}
|
|
18012
|
-
function
|
|
18012
|
+
function X_(e, t, n) {
|
|
18013
18013
|
return e.rowSlots.find(
|
|
18014
18014
|
(r) => n === "static" ? r.kind === "static" && r.row.id === t : r.kind === "dynamic" && r.block.id === t
|
|
18015
18015
|
);
|
|
@@ -18021,7 +18021,7 @@ function _d(e, t, n, r) {
|
|
|
18021
18021
|
if (o)
|
|
18022
18022
|
return o.kind === "static" ? o.row.cells[r] : o.block.cells[r];
|
|
18023
18023
|
}
|
|
18024
|
-
const
|
|
18024
|
+
const J_ = ({
|
|
18025
18025
|
field: e,
|
|
18026
18026
|
value: t,
|
|
18027
18027
|
onChange: n,
|
|
@@ -18042,7 +18042,7 @@ const q_ = ({
|
|
|
18042
18042
|
const h = Z(
|
|
18043
18043
|
(E, N, x, P, T) => {
|
|
18044
18044
|
if (m) return;
|
|
18045
|
-
const H = T === "number" ?
|
|
18045
|
+
const H = T === "number" ? M_(P) : P === "" ? null : P, J = V_(
|
|
18046
18046
|
u,
|
|
18047
18047
|
g,
|
|
18048
18048
|
E,
|
|
@@ -18054,7 +18054,7 @@ const q_ = ({
|
|
|
18054
18054
|
},
|
|
18055
18055
|
[m, g, n, u]
|
|
18056
18056
|
), y = (E, N, x, P, T, H) => {
|
|
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 =
|
|
18057
|
+
const J = l.find((D) => D.key === T), F = _d(u, E, N, T), B = Ga(Nd(F, J)), O = Ol(H, F, J), M = X_(u, E, N), I = M?.kind === "static" ? M.row.labelStyle : M?.kind === "dynamic" ? M.block.labelStyle : void 0, z = Y_(F, I);
|
|
18058
18058
|
if (F?.kind === "label")
|
|
18059
18059
|
return /* @__PURE__ */ f(
|
|
18060
18060
|
"span",
|
|
@@ -18078,11 +18078,7 @@ const q_ = ({
|
|
|
18078
18078
|
value: D,
|
|
18079
18079
|
onChange: (ae) => h(x, E, T, ae.target.value, F.inputType),
|
|
18080
18080
|
onBlur: r,
|
|
18081
|
-
className: L(
|
|
18082
|
-
"h-8 border-0 bg-transparent text-sm shadow-none focus-visible:ring-1",
|
|
18083
|
-
B,
|
|
18084
|
-
z.className
|
|
18085
|
-
),
|
|
18081
|
+
className: L(P_, B, z.className),
|
|
18086
18082
|
style: z.style,
|
|
18087
18083
|
disabled: m
|
|
18088
18084
|
}
|
|
@@ -18096,12 +18092,12 @@ const q_ = ({
|
|
|
18096
18092
|
}
|
|
18097
18093
|
if (D === "api" || m)
|
|
18098
18094
|
return /* @__PURE__ */ f("span", { className: L("tabular-nums", B, z.className), style: z.style, children: Ed(O, { currencySymbol: d, emptyDisplay: p }) });
|
|
18099
|
-
const ae =
|
|
18095
|
+
const ae = L_(O);
|
|
18100
18096
|
return /* @__PURE__ */ $(
|
|
18101
18097
|
"div",
|
|
18102
18098
|
{
|
|
18103
18099
|
className: L(
|
|
18104
|
-
|
|
18100
|
+
O_,
|
|
18105
18101
|
B === "text-center" && "justify-center",
|
|
18106
18102
|
B === "text-right" && "justify-end",
|
|
18107
18103
|
B === "text-left" && "justify-start",
|
|
@@ -18118,7 +18114,7 @@ const q_ = ({
|
|
|
18118
18114
|
value: ae,
|
|
18119
18115
|
onChange: (U) => h(x, E, T, U.target.value, "number"),
|
|
18120
18116
|
onBlur: r,
|
|
18121
|
-
className:
|
|
18117
|
+
className: I_,
|
|
18122
18118
|
disabled: m
|
|
18123
18119
|
}
|
|
18124
18120
|
)
|
|
@@ -18226,9 +18222,9 @@ const q_ = ({
|
|
|
18226
18222
|
) });
|
|
18227
18223
|
};
|
|
18228
18224
|
function Ka(e, t, n) {
|
|
18229
|
-
return
|
|
18225
|
+
return W_(e, t, n);
|
|
18230
18226
|
}
|
|
18231
|
-
const
|
|
18227
|
+
const Q_ = ({
|
|
18232
18228
|
field: e,
|
|
18233
18229
|
value: t,
|
|
18234
18230
|
error: n,
|
|
@@ -18351,7 +18347,7 @@ function mo(e, t) {
|
|
|
18351
18347
|
}
|
|
18352
18348
|
return e.email != null ? String(e.email) : e.personal_email != null ? String(e.personal_email) : e.id != null ? String(e.id) : JSON.stringify(e);
|
|
18353
18349
|
}
|
|
18354
|
-
function
|
|
18350
|
+
function Z_(e, t, n, r) {
|
|
18355
18351
|
if (n?.length) {
|
|
18356
18352
|
const i = r ?? " | ", s = n.map((a) => Ml(e, a)).filter((a) => a != null).map((a) => String(a));
|
|
18357
18353
|
if (s.length) return s.join(i);
|
|
@@ -18366,7 +18362,7 @@ function X_(e, t, n, r) {
|
|
|
18366
18362
|
const o = e.personal_email;
|
|
18367
18363
|
return o != null ? String(o) : JSON.stringify(e);
|
|
18368
18364
|
}
|
|
18369
|
-
const
|
|
18365
|
+
const eT = ({
|
|
18370
18366
|
field: e,
|
|
18371
18367
|
value: t,
|
|
18372
18368
|
onChange: n,
|
|
@@ -18527,7 +18523,7 @@ const J_ = ({
|
|
|
18527
18523
|
{
|
|
18528
18524
|
htmlFor: B,
|
|
18529
18525
|
className: "text-sm cursor-pointer flex-1 truncate",
|
|
18530
|
-
children:
|
|
18526
|
+
children: Z_(T, d, m, g)
|
|
18531
18527
|
}
|
|
18532
18528
|
)
|
|
18533
18529
|
]
|
|
@@ -18584,7 +18580,7 @@ const J_ = ({
|
|
|
18584
18580
|
)
|
|
18585
18581
|
] });
|
|
18586
18582
|
};
|
|
18587
|
-
var
|
|
18583
|
+
var tT = [
|
|
18588
18584
|
"a",
|
|
18589
18585
|
"button",
|
|
18590
18586
|
"div",
|
|
@@ -18602,16 +18598,16 @@ var Q_ = [
|
|
|
18602
18598
|
"span",
|
|
18603
18599
|
"svg",
|
|
18604
18600
|
"ul"
|
|
18605
|
-
],
|
|
18601
|
+
], nT = tT.reduce((e, t) => {
|
|
18606
18602
|
const n = /* @__PURE__ */ Ql(`Primitive.${t}`), r = b.forwardRef((o, i) => {
|
|
18607
18603
|
const { asChild: s, ...a } = o, c = s ? n : t;
|
|
18608
18604
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...a, ref: i });
|
|
18609
18605
|
});
|
|
18610
18606
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
18611
|
-
}, {}),
|
|
18612
|
-
const { decorative: n, orientation: r = Rd, ...o } = e, i =
|
|
18607
|
+
}, {}), rT = "Separator", Rd = "horizontal", oT = ["horizontal", "vertical"], Pg = b.forwardRef((e, t) => {
|
|
18608
|
+
const { decorative: n, orientation: r = Rd, ...o } = e, i = iT(r) ? r : Rd, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
|
|
18613
18609
|
return /* @__PURE__ */ f(
|
|
18614
|
-
|
|
18610
|
+
nT.div,
|
|
18615
18611
|
{
|
|
18616
18612
|
"data-orientation": i,
|
|
18617
18613
|
...a,
|
|
@@ -18620,11 +18616,11 @@ var Q_ = [
|
|
|
18620
18616
|
}
|
|
18621
18617
|
);
|
|
18622
18618
|
});
|
|
18623
|
-
Pg.displayName =
|
|
18624
|
-
function
|
|
18625
|
-
return
|
|
18619
|
+
Pg.displayName = rT;
|
|
18620
|
+
function iT(e) {
|
|
18621
|
+
return oT.includes(e);
|
|
18626
18622
|
}
|
|
18627
|
-
var
|
|
18623
|
+
var sT = Pg;
|
|
18628
18624
|
function $c({
|
|
18629
18625
|
className: e,
|
|
18630
18626
|
orientation: t = "horizontal",
|
|
@@ -18632,7 +18628,7 @@ function $c({
|
|
|
18632
18628
|
...r
|
|
18633
18629
|
}) {
|
|
18634
18630
|
return /* @__PURE__ */ f(
|
|
18635
|
-
|
|
18631
|
+
sT,
|
|
18636
18632
|
{
|
|
18637
18633
|
"data-slot": "separator",
|
|
18638
18634
|
decorative: n,
|
|
@@ -18645,27 +18641,27 @@ function $c({
|
|
|
18645
18641
|
}
|
|
18646
18642
|
);
|
|
18647
18643
|
}
|
|
18648
|
-
const
|
|
18644
|
+
const aT = ({
|
|
18649
18645
|
field: e,
|
|
18650
18646
|
className: t
|
|
18651
|
-
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }),
|
|
18647
|
+
}) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }), lT = {
|
|
18652
18648
|
h1: "text-3xl font-bold",
|
|
18653
18649
|
h2: "text-2xl font-bold",
|
|
18654
18650
|
h3: "text-xl font-semibold",
|
|
18655
18651
|
h4: "text-lg font-semibold",
|
|
18656
18652
|
h5: "text-base font-medium",
|
|
18657
18653
|
h6: "text-sm font-medium"
|
|
18658
|
-
},
|
|
18654
|
+
}, cT = ({
|
|
18659
18655
|
field: e,
|
|
18660
18656
|
className: t
|
|
18661
18657
|
}) => {
|
|
18662
|
-
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i =
|
|
18658
|
+
const n = e.properties, r = n?.headingLevel ?? "h3", o = n?.showHorizontalLine ?? !0, i = lT[r], s = r;
|
|
18663
18659
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-1", t), children: [
|
|
18664
18660
|
/* @__PURE__ */ f(s, { className: L("m-0 text-foreground", i), children: e.label || "Header" }),
|
|
18665
18661
|
e.description && /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: e.description }),
|
|
18666
18662
|
o && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18667
18663
|
] });
|
|
18668
|
-
},
|
|
18664
|
+
}, uT = {
|
|
18669
18665
|
"top-left": "justify-start",
|
|
18670
18666
|
"top-center": "justify-center",
|
|
18671
18667
|
"top-right": "justify-end",
|
|
@@ -18675,20 +18671,20 @@ const oT = ({
|
|
|
18675
18671
|
"bottom-left": "justify-start",
|
|
18676
18672
|
"bottom-center": "justify-center",
|
|
18677
18673
|
"bottom-right": "justify-end"
|
|
18678
|
-
},
|
|
18674
|
+
}, dT = {
|
|
18679
18675
|
h1: "text-3xl font-bold",
|
|
18680
18676
|
h2: "text-2xl font-bold",
|
|
18681
18677
|
h3: "text-xl font-semibold",
|
|
18682
18678
|
h4: "text-lg font-semibold",
|
|
18683
18679
|
h5: "text-base font-medium",
|
|
18684
18680
|
h6: "text-sm font-medium"
|
|
18685
|
-
},
|
|
18686
|
-
const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s =
|
|
18681
|
+
}, fT = ({ field: e, className: t }) => {
|
|
18682
|
+
const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s = uT[r], a = dT[o], c = o;
|
|
18687
18683
|
return /* @__PURE__ */ $("div", { className: L("w-full min-w-0 space-y-2", t), children: [
|
|
18688
18684
|
/* @__PURE__ */ f("div", { className: L("flex w-full", s), children: /* @__PURE__ */ f(c, { className: L("m-0 text-foreground", a), children: e.label || "Section Heading" }) }),
|
|
18689
18685
|
i && /* @__PURE__ */ f($c, { className: "w-full" })
|
|
18690
18686
|
] });
|
|
18691
|
-
},
|
|
18687
|
+
}, pT = ({
|
|
18692
18688
|
field: e,
|
|
18693
18689
|
className: t
|
|
18694
18690
|
}) => {
|
|
@@ -18710,10 +18706,10 @@ function kd(e, t) {
|
|
|
18710
18706
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
18711
18707
|
return r;
|
|
18712
18708
|
}
|
|
18713
|
-
function
|
|
18709
|
+
function mT(e) {
|
|
18714
18710
|
if (Array.isArray(e)) return e;
|
|
18715
18711
|
}
|
|
18716
|
-
function
|
|
18712
|
+
function hT(e, t) {
|
|
18717
18713
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
18718
18714
|
if (n != null) {
|
|
18719
18715
|
var r, o, i, s, a = [], c = !0, u = !1;
|
|
@@ -18731,21 +18727,21 @@ function fT(e, t) {
|
|
|
18731
18727
|
return a;
|
|
18732
18728
|
}
|
|
18733
18729
|
}
|
|
18734
|
-
function
|
|
18730
|
+
function gT() {
|
|
18735
18731
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18736
18732
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
18737
18733
|
}
|
|
18738
|
-
function
|
|
18739
|
-
return
|
|
18734
|
+
function yT(e, t) {
|
|
18735
|
+
return mT(e) || hT(e, t) || bT(e, t) || gT();
|
|
18740
18736
|
}
|
|
18741
|
-
function
|
|
18737
|
+
function bT(e, t) {
|
|
18742
18738
|
if (e) {
|
|
18743
18739
|
if (typeof e == "string") return kd(e, t);
|
|
18744
18740
|
var n = {}.toString.call(e).slice(8, -1);
|
|
18745
18741
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kd(e, t) : void 0;
|
|
18746
18742
|
}
|
|
18747
18743
|
}
|
|
18748
|
-
const Og = Object.entries, Fd = Object.setPrototypeOf,
|
|
18744
|
+
const Og = Object.entries, Fd = Object.setPrototypeOf, vT = Object.isFrozen, wT = Object.getPrototypeOf, ST = Object.getOwnPropertyDescriptor;
|
|
18749
18745
|
let vn = Object.freeze, Hn = Object.seal, wo = Object.create, Ig = typeof Reflect < "u" && Reflect, Ll = Ig.apply, Dl = Ig.construct;
|
|
18750
18746
|
vn || (vn = function(t) {
|
|
18751
18747
|
return t;
|
|
@@ -18763,7 +18759,7 @@ Dl || (Dl = function(t) {
|
|
|
18763
18759
|
r[o - 1] = arguments[o];
|
|
18764
18760
|
return new t(...r);
|
|
18765
18761
|
});
|
|
18766
|
-
const ho = qt(Array.prototype.forEach),
|
|
18762
|
+
const ho = qt(Array.prototype.forEach), xT = qt(Array.prototype.lastIndexOf), Pd = qt(Array.prototype.pop), go = qt(Array.prototype.push), AT = qt(Array.prototype.splice), gn = Array.isArray, Yo = qt(String.prototype.toLowerCase), qa = qt(String.prototype.toString), Od = qt(String.prototype.match), yo = qt(String.prototype.replace), Id = qt(String.prototype.indexOf), CT = qt(String.prototype.trim), ET = qt(Number.prototype.toString), NT = qt(Boolean.prototype.toString), Md = typeof BigInt > "u" ? null : qt(BigInt.prototype.toString), Ld = typeof Symbol > "u" ? null : qt(Symbol.prototype.toString), Dt = qt(Object.prototype.hasOwnProperty), Go = qt(Object.prototype.toString), sn = qt(RegExp.prototype.test), Qi = _T(TypeError);
|
|
18767
18763
|
function qt(e) {
|
|
18768
18764
|
return function(t) {
|
|
18769
18765
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -18772,7 +18768,7 @@ function qt(e) {
|
|
|
18772
18768
|
return Ll(e, t, r);
|
|
18773
18769
|
};
|
|
18774
18770
|
}
|
|
18775
|
-
function
|
|
18771
|
+
function _T(e) {
|
|
18776
18772
|
return function() {
|
|
18777
18773
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
18778
18774
|
n[r] = arguments[r];
|
|
@@ -18788,13 +18784,13 @@ function it(e, t) {
|
|
|
18788
18784
|
let o = t[r];
|
|
18789
18785
|
if (typeof o == "string") {
|
|
18790
18786
|
const i = n(o);
|
|
18791
|
-
i !== o && (
|
|
18787
|
+
i !== o && (vT(t) || (t[r] = i), o = i);
|
|
18792
18788
|
}
|
|
18793
18789
|
e[o] = !0;
|
|
18794
18790
|
}
|
|
18795
18791
|
return e;
|
|
18796
18792
|
}
|
|
18797
|
-
function
|
|
18793
|
+
function TT(e) {
|
|
18798
18794
|
for (let t = 0; t < e.length; t++)
|
|
18799
18795
|
Dt(e, t) || (e[t] = null);
|
|
18800
18796
|
return e;
|
|
@@ -18802,20 +18798,20 @@ function ET(e) {
|
|
|
18802
18798
|
function xn(e) {
|
|
18803
18799
|
const t = wo(null);
|
|
18804
18800
|
for (const r of Og(e)) {
|
|
18805
|
-
var n =
|
|
18801
|
+
var n = yT(r, 2);
|
|
18806
18802
|
const o = n[0], i = n[1];
|
|
18807
|
-
Dt(e, o) && (gn(i) ? t[o] =
|
|
18803
|
+
Dt(e, o) && (gn(i) ? t[o] = TT(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = xn(i) : t[o] = i);
|
|
18808
18804
|
}
|
|
18809
18805
|
return t;
|
|
18810
18806
|
}
|
|
18811
|
-
function
|
|
18807
|
+
function RT(e) {
|
|
18812
18808
|
switch (typeof e) {
|
|
18813
18809
|
case "string":
|
|
18814
18810
|
return e;
|
|
18815
18811
|
case "number":
|
|
18816
|
-
return
|
|
18812
|
+
return ET(e);
|
|
18817
18813
|
case "boolean":
|
|
18818
|
-
return
|
|
18814
|
+
return NT(e);
|
|
18819
18815
|
case "bigint":
|
|
18820
18816
|
return Md ? Md(e) : "0";
|
|
18821
18817
|
case "symbol":
|
|
@@ -18839,43 +18835,43 @@ function NT(e) {
|
|
|
18839
18835
|
}
|
|
18840
18836
|
function Wr(e, t) {
|
|
18841
18837
|
for (; e !== null; ) {
|
|
18842
|
-
const r =
|
|
18838
|
+
const r = ST(e, t);
|
|
18843
18839
|
if (r) {
|
|
18844
18840
|
if (r.get)
|
|
18845
18841
|
return qt(r.get);
|
|
18846
18842
|
if (typeof r.value == "function")
|
|
18847
18843
|
return qt(r.value);
|
|
18848
18844
|
}
|
|
18849
|
-
e =
|
|
18845
|
+
e = wT(e);
|
|
18850
18846
|
}
|
|
18851
18847
|
function n() {
|
|
18852
18848
|
return null;
|
|
18853
18849
|
}
|
|
18854
18850
|
return n;
|
|
18855
18851
|
}
|
|
18856
|
-
function
|
|
18852
|
+
function kT(e) {
|
|
18857
18853
|
try {
|
|
18858
18854
|
return sn(e, ""), !0;
|
|
18859
18855
|
} catch {
|
|
18860
18856
|
return !1;
|
|
18861
18857
|
}
|
|
18862
18858
|
}
|
|
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"]),
|
|
18859
|
+
const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ya = vn(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xa = vn(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), FT = vn(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ja = vn(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), PT = vn(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Bd = vn(["#text"]), $d = vn(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Qa = vn(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), jd = vn(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zi = vn(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), OT = Hn(/{{[\w\W]*|^[\w\W]*}}/g), IT = Hn(/<%[\w\W]*|^[\w\W]*%>/g), MT = Hn(/\${[\w\W]*/g), LT = Hn(/^data-[\-\w.\u00B7-\uFFFF]+$/), DT = Hn(/^aria-[\-\w]+$/), zd = Hn(
|
|
18864
18860
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
18865
18861
|
// eslint-disable-line no-useless-escape
|
|
18866
|
-
),
|
|
18862
|
+
), BT = Hn(/^(?:\w+script|data):/i), $T = Hn(
|
|
18867
18863
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
18868
18864
|
// eslint-disable-line no-control-regex
|
|
18869
|
-
),
|
|
18865
|
+
), jT = Hn(/^html$/i), zT = Hn(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = {
|
|
18870
18866
|
element: 1,
|
|
18871
18867
|
text: 3,
|
|
18872
18868
|
// Deprecated
|
|
18873
18869
|
progressingInstruction: 7,
|
|
18874
18870
|
comment: 8,
|
|
18875
18871
|
document: 9
|
|
18876
|
-
},
|
|
18872
|
+
}, UT = function() {
|
|
18877
18873
|
return typeof window > "u" ? null : window;
|
|
18878
|
-
},
|
|
18874
|
+
}, VT = function(t, n) {
|
|
18879
18875
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
18880
18876
|
return null;
|
|
18881
18877
|
let r = null;
|
|
@@ -18908,7 +18904,7 @@ const Dd = vn(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
18908
18904
|
};
|
|
18909
18905
|
};
|
|
18910
18906
|
function Mg() {
|
|
18911
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
18907
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : UT();
|
|
18912
18908
|
const t = (_e) => Mg(_e);
|
|
18913
18909
|
if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== bo.document || !e.Element)
|
|
18914
18910
|
return t.isSupported = !1, t;
|
|
@@ -18922,7 +18918,7 @@ function Mg() {
|
|
|
18922
18918
|
const N = n, x = N.implementation, P = N.createNodeIterator, T = N.createDocumentFragment, H = N.getElementsByTagName, J = r.importNode;
|
|
18923
18919
|
let F = Ud();
|
|
18924
18920
|
t.isSupported = typeof Og == "function" && typeof C == "function" && x && x.createHTMLDocument !== void 0;
|
|
18925
|
-
const B =
|
|
18921
|
+
const B = OT, O = IT, M = MT, I = LT, z = DT, D = BT, ae = $T, U = zT;
|
|
18926
18922
|
let K = zd, X = null;
|
|
18927
18923
|
const ue = it({}, [...Dd, ...Ya, ...Xa, ...Ja, ...Bd]);
|
|
18928
18924
|
let ie = null;
|
|
@@ -18983,7 +18979,7 @@ function Mg() {
|
|
|
18983
18979
|
if (_n && _n === R)
|
|
18984
18980
|
return;
|
|
18985
18981
|
(!R || typeof R != "object") && (R = {}), R = xn(R), Ht = // eslint-disable-next-line unicorn/prefer-includes
|
|
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 =
|
|
18982
|
+
io.indexOf(R.PARSER_MEDIA_TYPE) === -1 ? Dr : R.PARSER_MEDIA_TYPE, Tt = Ht === "application/xhtml+xml" ? qa : Yo, X = Dt(R, "ALLOWED_TAGS") && gn(R.ALLOWED_TAGS) ? it({}, R.ALLOWED_TAGS, Tt) : ue, ie = Dt(R, "ALLOWED_ATTR") && gn(R.ALLOWED_ATTR) ? it({}, R.ALLOWED_ATTR, Tt) : G, ht = Dt(R, "ALLOWED_NAMESPACES") && gn(R.ALLOWED_NAMESPACES) ? it({}, R.ALLOWED_NAMESPACES, qa) : _t, Qe = Dt(R, "ADD_URI_SAFE_ATTR") && gn(R.ADD_URI_SAFE_ATTR) ? it(xn(Ve), R.ADD_URI_SAFE_ATTR, Tt) : Ve, je = Dt(R, "ADD_DATA_URI_TAGS") && gn(R.ADD_DATA_URI_TAGS) ? it(xn(ke), R.ADD_DATA_URI_TAGS, Tt) : ke, Ge = Dt(R, "FORBID_CONTENTS") && gn(R.FORBID_CONTENTS) ? it({}, R.FORBID_CONTENTS, Tt) : Mt, Oe = Dt(R, "FORBID_TAGS") && gn(R.FORBID_TAGS) ? it({}, R.FORBID_TAGS, Tt) : xn({}), oe = Dt(R, "FORBID_ATTR") && gn(R.FORBID_ATTR) ? it({}, R.FORBID_ATTR, Tt) : xn({}), he = Dt(R, "USE_PROFILES") ? R.USE_PROFILES && typeof R.USE_PROFILES == "object" ? xn(R.USE_PROFILES) : R.USE_PROFILES : !1, ve = R.ALLOW_ARIA_ATTR !== !1, de = R.ALLOW_DATA_ATTR !== !1, st = R.ALLOW_UNKNOWN_PROTOCOLS || !1, xe = R.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = R.SAFE_FOR_TEMPLATES || !1, le = R.SAFE_FOR_XML !== !1, we = R.WHOLE_DOCUMENT || !1, qe = R.RETURN_DOM || !1, Xt = R.RETURN_DOM_FRAGMENT || !1, Ze = R.RETURN_TRUSTED_TYPE || !1, dt = R.FORCE_BODY || !1, q = R.SANITIZE_DOM !== !1, $e = R.SANITIZE_NAMED_PROPS || !1, Ie = R.KEEP_CONTENT !== !1, ne = R.IN_PLACE || !1, K = kT(R.ALLOWED_URI_REGEXP) ? R.ALLOWED_URI_REGEXP : zd, ze = typeof R.NAMESPACE == "string" ? R.NAMESPACE : Nt, Vt = Dt(R, "MATHML_TEXT_INTEGRATION_POINTS") && R.MATHML_TEXT_INTEGRATION_POINTS && typeof R.MATHML_TEXT_INTEGRATION_POINTS == "object" ? xn(R.MATHML_TEXT_INTEGRATION_POINTS) : it({}, ["mi", "mo", "mn", "ms", "mtext"]), mn = Dt(R, "HTML_INTEGRATION_POINTS") && R.HTML_INTEGRATION_POINTS && typeof R.HTML_INTEGRATION_POINTS == "object" ? xn(R.HTML_INTEGRATION_POINTS) : it({}, ["annotation-xml"]);
|
|
18987
18983
|
const Y = Dt(R, "CUSTOM_ELEMENT_HANDLING") && R.CUSTOM_ELEMENT_HANDLING && typeof R.CUSTOM_ELEMENT_HANDLING == "object" ? xn(R.CUSTOM_ELEMENT_HANDLING) : wo(null);
|
|
18988
18984
|
if (te = wo(null), Dt(Y, "tagNameCheck") && Bt(Y.tagNameCheck) && (te.tagNameCheck = Y.tagNameCheck), Dt(Y, "attributeNameCheck") && Bt(Y.attributeNameCheck) && (te.attributeNameCheck = Y.attributeNameCheck), Dt(Y, "allowCustomizedBuiltInElements") && typeof Y.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = Y.allowCustomizedBuiltInElements), Ae && (de = !1), Xt && (qe = !0), he && (X = it({}, Bd), ie = wo(null), he.html === !0 && (it(X, Dd), it(ie, $d)), he.svg === !0 && (it(X, Ya), it(ie, Qa), it(ie, Zi)), he.svgFilters === !0 && (it(X, Xa), it(ie, Qa), it(ie, Zi)), he.mathMl === !0 && (it(X, Ja), it(ie, jd), it(ie, Zi))), re.tagCheck = null, re.attributeCheck = null, Dt(R, "ADD_TAGS") && (typeof R.ADD_TAGS == "function" ? re.tagCheck = R.ADD_TAGS : gn(R.ADD_TAGS) && (X === ue && (X = xn(X)), it(X, R.ADD_TAGS, Tt))), Dt(R, "ADD_ATTR") && (typeof R.ADD_ATTR == "function" ? re.attributeCheck = R.ADD_ATTR : gn(R.ADD_ATTR) && (ie === G && (ie = xn(ie)), it(ie, R.ADD_ATTR, Tt))), Dt(R, "ADD_URI_SAFE_ATTR") && gn(R.ADD_URI_SAFE_ATTR) && it(Qe, R.ADD_URI_SAFE_ATTR, Tt), Dt(R, "FORBID_CONTENTS") && gn(R.FORBID_CONTENTS) && (Ge === Mt && (Ge = xn(Ge)), it(Ge, R.FORBID_CONTENTS, Tt)), Dt(R, "ADD_FORBID_CONTENTS") && gn(R.ADD_FORBID_CONTENTS) && (Ge === Mt && (Ge = xn(Ge)), it(Ge, R.ADD_FORBID_CONTENTS, Tt)), Ie && (X["#text"] = !0), we && it(X, ["html", "head", "body"]), X.table && (it(X, ["tbody"]), delete Oe.tbody), R.TRUSTED_TYPES_POLICY) {
|
|
18989
18985
|
if (typeof R.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
@@ -18992,9 +18988,9 @@ function Mg() {
|
|
|
18992
18988
|
throw Qi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
18993
18989
|
A = R.TRUSTED_TYPES_POLICY, E = A.createHTML("");
|
|
18994
18990
|
} else
|
|
18995
|
-
A === void 0 && (A =
|
|
18991
|
+
A === void 0 && (A = VT(g, o)), A !== null && typeof E == "string" && (E = A.createHTML(""));
|
|
18996
18992
|
vn && vn(R), _n = R;
|
|
18997
|
-
}, nn = it({}, [...Ya, ...Xa, ...
|
|
18993
|
+
}, nn = it({}, [...Ya, ...Xa, ...FT]), un = it({}, [...Ja, ...PT]), ur = function(R) {
|
|
18998
18994
|
let Y = C(R);
|
|
18999
18995
|
(!Y || !Y.tagName) && (Y = {
|
|
19000
18996
|
namespaceURI: ze,
|
|
@@ -19173,7 +19169,7 @@ function Mg() {
|
|
|
19173
19169
|
let at = Y.length;
|
|
19174
19170
|
for (; at--; ) {
|
|
19175
19171
|
const Ft = Y[at], Ct = Ft.name, $t = Ft.namespaceURI, $n = Ft.value, dn = Tt(Ct), so = $n;
|
|
19176
|
-
let jt = Ct === "value" ? so :
|
|
19172
|
+
let jt = Ct === "value" ? so : CT(so);
|
|
19177
19173
|
if (ye.attrName = dn, ye.attrValue = jt, ye.keepAttr = !0, ye.forceKeepAttr = void 0, Jt(F.uponSanitizeAttribute, R, ye), jt = ye.attrValue, $e && (dn === "id" || dn === "name") && Id(jt, yt) !== 0 && (kt(Ct, R), jt = yt + jt), le && sn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, jt)) {
|
|
19178
19174
|
kt(Ct, R);
|
|
19179
19175
|
continue;
|
|
@@ -19242,7 +19238,7 @@ function Mg() {
|
|
|
19242
19238
|
};
|
|
19243
19239
|
return t.sanitize = function(_e) {
|
|
19244
19240
|
let R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Y = null, ye = null, at = null, Ft = null;
|
|
19245
|
-
if (bt = !_e, bt && (_e = "<!-->"), typeof _e != "string" && !Sn(_e) && (_e =
|
|
19241
|
+
if (bt = !_e, bt && (_e = "<!-->"), typeof _e != "string" && !Sn(_e) && (_e = RT(_e), typeof _e != "string"))
|
|
19246
19242
|
throw Qi("dirty is not a string, aborting");
|
|
19247
19243
|
if (!t.isSupported)
|
|
19248
19244
|
return _e;
|
|
@@ -19278,7 +19274,7 @@ function Mg() {
|
|
|
19278
19274
|
return (ie.shadowroot || ie.shadowrootmode) && (Ft = J.call(r, Ft, !0)), Ft;
|
|
19279
19275
|
}
|
|
19280
19276
|
let $t = we ? Y.outerHTML : Y.innerHTML;
|
|
19281
|
-
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(
|
|
19277
|
+
return we && X["!doctype"] && Y.ownerDocument && Y.ownerDocument.doctype && Y.ownerDocument.doctype.name && sn(jT, Y.ownerDocument.doctype.name) && ($t = "<!DOCTYPE " + Y.ownerDocument.doctype.name + `>
|
|
19282
19278
|
` + $t), Ae && ho([B, O, M], ($n) => {
|
|
19283
19279
|
$t = yo($t, $n, " ");
|
|
19284
19280
|
}), A && Ze ? A.createHTML($t) : $t;
|
|
@@ -19295,8 +19291,8 @@ function Mg() {
|
|
|
19295
19291
|
typeof R == "function" && go(F[_e], R);
|
|
19296
19292
|
}, t.removeHook = function(_e, R) {
|
|
19297
19293
|
if (R !== void 0) {
|
|
19298
|
-
const Y =
|
|
19299
|
-
return Y === -1 ? void 0 :
|
|
19294
|
+
const Y = xT(F[_e], R);
|
|
19295
|
+
return Y === -1 ? void 0 : AT(F[_e], Y, 1)[0];
|
|
19300
19296
|
}
|
|
19301
19297
|
return Pd(F[_e]);
|
|
19302
19298
|
}, t.removeHooks = function(_e) {
|
|
@@ -19305,8 +19301,8 @@ function Mg() {
|
|
|
19305
19301
|
F = Ud();
|
|
19306
19302
|
}, t;
|
|
19307
19303
|
}
|
|
19308
|
-
var
|
|
19309
|
-
const
|
|
19304
|
+
var HT = Mg();
|
|
19305
|
+
const WT = [
|
|
19310
19306
|
"a",
|
|
19311
19307
|
"b",
|
|
19312
19308
|
"br",
|
|
@@ -19333,7 +19329,7 @@ const UT = [
|
|
|
19333
19329
|
"tr",
|
|
19334
19330
|
"u",
|
|
19335
19331
|
"ul"
|
|
19336
|
-
],
|
|
19332
|
+
], GT = [
|
|
19337
19333
|
"href",
|
|
19338
19334
|
"target",
|
|
19339
19335
|
"rel",
|
|
@@ -19345,14 +19341,14 @@ const UT = [
|
|
|
19345
19341
|
"colspan",
|
|
19346
19342
|
"rowspan"
|
|
19347
19343
|
];
|
|
19348
|
-
function
|
|
19349
|
-
return e ?
|
|
19350
|
-
ALLOWED_TAGS: [...
|
|
19351
|
-
ALLOWED_ATTR: [...
|
|
19344
|
+
function KT(e) {
|
|
19345
|
+
return e ? HT.sanitize(e, {
|
|
19346
|
+
ALLOWED_TAGS: [...WT],
|
|
19347
|
+
ALLOWED_ATTR: [...GT],
|
|
19352
19348
|
ALLOW_DATA_ATTR: !1
|
|
19353
19349
|
}) : "";
|
|
19354
19350
|
}
|
|
19355
|
-
function
|
|
19351
|
+
function qT(e, t, n = !1) {
|
|
19356
19352
|
return e.includes("{labelapi:") ? e.replace(/\{labelapi:([^}]+)\}/g, (r, o) => {
|
|
19357
19353
|
const i = o.trim();
|
|
19358
19354
|
if (i === "" || t == null) return n ? "" : r;
|
|
@@ -19360,7 +19356,7 @@ function WT(e, t, n = !1) {
|
|
|
19360
19356
|
return s == null ? n ? "" : r : String(s);
|
|
19361
19357
|
}) : e;
|
|
19362
19358
|
}
|
|
19363
|
-
function
|
|
19359
|
+
function YT(e) {
|
|
19364
19360
|
return e && e.replace(/\{api:[^}]*\}/gi, "").replace(/\{labelapi:[^}]*\}/gi, "").replace(/\{resp:[^}]*\}/gi, "").replace(/\{(?:ctx:|@)\w+\}/gi, "").replace(/\{documentId\}/gi, "").replace(/\{(\w+)\}/g, "");
|
|
19365
19361
|
}
|
|
19366
19362
|
const Vd = {
|
|
@@ -19387,14 +19383,14 @@ const Vd = {
|
|
|
19387
19383
|
function to(e) {
|
|
19388
19384
|
return e.properties ?? {};
|
|
19389
19385
|
}
|
|
19390
|
-
function
|
|
19386
|
+
function XT(e) {
|
|
19391
19387
|
const t = to(e);
|
|
19392
19388
|
return t.textContent !== void 0 ? t.textContent : e.label ?? "";
|
|
19393
19389
|
}
|
|
19394
|
-
function
|
|
19390
|
+
function JT(e) {
|
|
19395
19391
|
return to(e).textContent === void 0 || e.appearance?.hideLabel ? !1 : !!e.label?.trim();
|
|
19396
19392
|
}
|
|
19397
|
-
function
|
|
19393
|
+
function QT(e) {
|
|
19398
19394
|
return e?.contentLayout === "paragraph" ? "paragraph" : "single";
|
|
19399
19395
|
}
|
|
19400
19396
|
function Za(e, t = {}) {
|
|
@@ -19412,17 +19408,17 @@ function Za(e, t = {}) {
|
|
|
19412
19408
|
o,
|
|
19413
19409
|
i,
|
|
19414
19410
|
s
|
|
19415
|
-
), u =
|
|
19416
|
-
return
|
|
19411
|
+
), u = qT(c, a, !0);
|
|
19412
|
+
return YT(u);
|
|
19417
19413
|
}
|
|
19418
|
-
const
|
|
19414
|
+
const ZT = /\{api:[^}]+\}/, eR = /\{labelapi:[^}]+\}/;
|
|
19419
19415
|
function el(e) {
|
|
19420
|
-
return
|
|
19416
|
+
return ZT.test(e);
|
|
19421
19417
|
}
|
|
19422
19418
|
function tl(e) {
|
|
19423
|
-
return
|
|
19419
|
+
return eR.test(e);
|
|
19424
19420
|
}
|
|
19425
|
-
function
|
|
19421
|
+
function tR(e) {
|
|
19426
19422
|
const t = e.captionTemplate ?? "", n = e.descriptionTemplate ?? "", r = el(e.bodyTemplate) || el(t) || el(n), o = tl(e.bodyTemplate) || tl(t) || tl(n);
|
|
19427
19423
|
return !!(r && e.prepopulateLoading || o && e.labelApiConfigPresent && (e.labelApiLoading || e.labelApiResponse === void 0 && e.labelApiError == null));
|
|
19428
19424
|
}
|
|
@@ -19444,7 +19440,7 @@ function Gd(e, t) {
|
|
|
19444
19440
|
n.textAlign && _s[n.textAlign]
|
|
19445
19441
|
);
|
|
19446
19442
|
}
|
|
19447
|
-
function
|
|
19443
|
+
function nR(e, t) {
|
|
19448
19444
|
const n = (t ?? to(e)).variant ?? "body";
|
|
19449
19445
|
return n === "body" ? "p" : n;
|
|
19450
19446
|
}
|
|
@@ -19470,21 +19466,21 @@ function jc(e) {
|
|
|
19470
19466
|
}
|
|
19471
19467
|
return o(), t;
|
|
19472
19468
|
}
|
|
19473
|
-
function
|
|
19469
|
+
function rR(e) {
|
|
19474
19470
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
19475
19471
|
}
|
|
19476
19472
|
function Lg(e) {
|
|
19477
19473
|
return e.map((t) => {
|
|
19478
|
-
if (t.type === "text") return
|
|
19474
|
+
if (t.type === "text") return rR(t.value);
|
|
19479
19475
|
const n = Lg(t.children);
|
|
19480
19476
|
return t.type === "bold" ? `<strong class="font-bold">${n}</strong>` : t.type === "italic" ? `<em class="italic">${n}</em>` : `<u class="underline">${n}</u>`;
|
|
19481
19477
|
}).join("");
|
|
19482
19478
|
}
|
|
19483
|
-
function
|
|
19479
|
+
function oR(e) {
|
|
19484
19480
|
return e ? Lg(jc(e)) : "";
|
|
19485
19481
|
}
|
|
19486
|
-
function
|
|
19487
|
-
return e ? t === "markdown-lite" ?
|
|
19482
|
+
function iR(e, t) {
|
|
19483
|
+
return e ? t === "markdown-lite" ? oR(e) : e : "";
|
|
19488
19484
|
}
|
|
19489
19485
|
function Dg(e, t) {
|
|
19490
19486
|
return e.map((n, r) => {
|
|
@@ -19502,18 +19498,18 @@ function Kd(e, t) {
|
|
|
19502
19498
|
const n = jc(e);
|
|
19503
19499
|
return n.length === 1 && n[0]?.type === "text" ? n[0].value : Dg(n, "tl");
|
|
19504
19500
|
}
|
|
19505
|
-
const
|
|
19501
|
+
const sR = "text-label-html prose prose-sm max-w-none [&_p]:m-0 [&_p+p]:mt-2 [&_ul]:my-1 [&_ol]:my-1";
|
|
19506
19502
|
function qd(e, t) {
|
|
19507
19503
|
if (!e) return null;
|
|
19508
|
-
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ??
|
|
19504
|
+
const { field: n, asDescription: r = !1 } = t, o = t.textProps ?? to(n), i = t.contentLayout ?? QT(o), s = o.inlineFormat ?? "none";
|
|
19509
19505
|
if (i === "paragraph") {
|
|
19510
|
-
const c =
|
|
19506
|
+
const c = KT(iR(e, s));
|
|
19511
19507
|
if (!c) return null;
|
|
19512
19508
|
const u = r ? L(
|
|
19513
19509
|
"m-0 text-sm",
|
|
19514
19510
|
o.descriptionMuted !== !1 ? "text-muted-foreground" : "text-foreground",
|
|
19515
19511
|
o.textAlign && _s[o.textAlign]
|
|
19516
|
-
) : L(Gd(n, o),
|
|
19512
|
+
) : L(Gd(n, o), sR);
|
|
19517
19513
|
return Lt.createElement("div", {
|
|
19518
19514
|
className: u,
|
|
19519
19515
|
dangerouslySetInnerHTML: { __html: c }
|
|
@@ -19531,14 +19527,14 @@ function qd(e, t) {
|
|
|
19531
19527
|
},
|
|
19532
19528
|
Kd(e, s)
|
|
19533
19529
|
);
|
|
19534
|
-
const a =
|
|
19530
|
+
const a = nR(n, o);
|
|
19535
19531
|
return Lt.createElement(
|
|
19536
19532
|
a,
|
|
19537
19533
|
{ className: Gd(n, o) },
|
|
19538
19534
|
Kd(e, s)
|
|
19539
19535
|
);
|
|
19540
19536
|
}
|
|
19541
|
-
function
|
|
19537
|
+
function aR(e) {
|
|
19542
19538
|
const t = e.labelApiEndpoint?.trim();
|
|
19543
19539
|
return !e.labelApiEnabled || !t ? null : {
|
|
19544
19540
|
labelApiEndpoint: t,
|
|
@@ -19548,7 +19544,7 @@ function oR(e) {
|
|
|
19548
19544
|
labelApiBodyFields: e.labelApiBodyFields
|
|
19549
19545
|
};
|
|
19550
19546
|
}
|
|
19551
|
-
async function
|
|
19547
|
+
async function lR(e, t = {}) {
|
|
19552
19548
|
const {
|
|
19553
19549
|
formValues: n = {},
|
|
19554
19550
|
urlParams: r = {},
|
|
@@ -19583,7 +19579,7 @@ async function iR(e, t = {}) {
|
|
|
19583
19579
|
throw new Error(m ? `HTTP ${m}: ${g}` : String(g));
|
|
19584
19580
|
}
|
|
19585
19581
|
}
|
|
19586
|
-
const
|
|
19582
|
+
const cR = ({
|
|
19587
19583
|
field: e,
|
|
19588
19584
|
className: t,
|
|
19589
19585
|
formValues: n,
|
|
@@ -19594,7 +19590,7 @@ const sR = ({
|
|
|
19594
19590
|
prepopulateLoading: a = !1
|
|
19595
19591
|
}) => {
|
|
19596
19592
|
const c = to(e), u = pe(
|
|
19597
|
-
() =>
|
|
19593
|
+
() => aR(to(e)),
|
|
19598
19594
|
[e.properties]
|
|
19599
19595
|
), [l, d] = Ee(void 0), [p, m] = Ee(!1), [g, h] = Ee(null), y = pe(
|
|
19600
19596
|
() => u ? JSON.stringify({
|
|
@@ -19612,7 +19608,7 @@ const sR = ({
|
|
|
19612
19608
|
}
|
|
19613
19609
|
m(!0), h(null);
|
|
19614
19610
|
try {
|
|
19615
|
-
const H = await
|
|
19611
|
+
const H = await lR(u, {
|
|
19616
19612
|
formValues: n ?? {},
|
|
19617
19613
|
urlParams: r ?? {},
|
|
19618
19614
|
submissionContext: o
|
|
@@ -19627,7 +19623,7 @@ const sR = ({
|
|
|
19627
19623
|
wt(() => {
|
|
19628
19624
|
y && v();
|
|
19629
19625
|
}, [y, v]);
|
|
19630
|
-
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S =
|
|
19626
|
+
const w = c.textAlign === "center" ? "items-center" : c.textAlign === "right" ? "items-end" : c.textAlign === "justify" ? "items-stretch" : "items-start", S = XT(e), C = JT(e), k = C && e.label ? e.label : "", A = e.description ?? "", E = tR({
|
|
19631
19627
|
bodyTemplate: S,
|
|
19632
19628
|
captionTemplate: k,
|
|
19633
19629
|
descriptionTemplate: A,
|
|
@@ -19752,16 +19748,16 @@ const sR = ({
|
|
|
19752
19748
|
}) => {
|
|
19753
19749
|
switch (e.type) {
|
|
19754
19750
|
case "divider":
|
|
19755
|
-
return /* @__PURE__ */ f(
|
|
19751
|
+
return /* @__PURE__ */ f(aT, { field: e, className: c });
|
|
19756
19752
|
case "header":
|
|
19757
|
-
return /* @__PURE__ */ f(sT, { field: e, className: c });
|
|
19758
|
-
case "sectionHeading":
|
|
19759
19753
|
return /* @__PURE__ */ f(cT, { field: e, className: c });
|
|
19754
|
+
case "sectionHeading":
|
|
19755
|
+
return /* @__PURE__ */ f(fT, { field: e, className: c });
|
|
19760
19756
|
case "spacer":
|
|
19761
|
-
return /* @__PURE__ */ f(
|
|
19757
|
+
return /* @__PURE__ */ f(pT, { field: e, className: c });
|
|
19762
19758
|
case "textLabel":
|
|
19763
19759
|
return /* @__PURE__ */ f(
|
|
19764
|
-
|
|
19760
|
+
cR,
|
|
19765
19761
|
{
|
|
19766
19762
|
field: e,
|
|
19767
19763
|
className: c,
|
|
@@ -19775,7 +19771,7 @@ const sR = ({
|
|
|
19775
19771
|
);
|
|
19776
19772
|
case "status":
|
|
19777
19773
|
return /* @__PURE__ */ f(
|
|
19778
|
-
|
|
19774
|
+
Q_,
|
|
19779
19775
|
{
|
|
19780
19776
|
field: e,
|
|
19781
19777
|
value: t ?? null,
|
|
@@ -19979,7 +19975,7 @@ const sR = ({
|
|
|
19979
19975
|
valueLength: D.length,
|
|
19980
19976
|
submissionContextKeys: l ? Object.keys(l) : []
|
|
19981
19977
|
}), /* @__PURE__ */ f(
|
|
19982
|
-
|
|
19978
|
+
eT,
|
|
19983
19979
|
{
|
|
19984
19980
|
field: e,
|
|
19985
19981
|
value: D,
|
|
@@ -20120,7 +20116,7 @@ const sR = ({
|
|
|
20120
20116
|
);
|
|
20121
20117
|
case "billingGrid":
|
|
20122
20118
|
return /* @__PURE__ */ f(
|
|
20123
|
-
|
|
20119
|
+
J_,
|
|
20124
20120
|
{
|
|
20125
20121
|
field: e,
|
|
20126
20122
|
value: t || { rows: [] },
|
|
@@ -20212,7 +20208,7 @@ const sR = ({
|
|
|
20212
20208
|
e.type
|
|
20213
20209
|
] }) });
|
|
20214
20210
|
}
|
|
20215
|
-
},
|
|
20211
|
+
}, uR = ({
|
|
20216
20212
|
steps: e,
|
|
20217
20213
|
currentStep: t,
|
|
20218
20214
|
completedSteps: n,
|
|
@@ -20284,7 +20280,7 @@ function Qo(e) {
|
|
|
20284
20280
|
function Yd(e) {
|
|
20285
20281
|
return Array.isArray(e) ? e.map(Qo) : [];
|
|
20286
20282
|
}
|
|
20287
|
-
function
|
|
20283
|
+
function dR(e) {
|
|
20288
20284
|
if (!e.moduleId)
|
|
20289
20285
|
throw new Error(
|
|
20290
20286
|
`Form response missing required field: moduleId. Form ID: ${e._id || e.id}. Please ensure the backend returns moduleId when fetching forms.`
|
|
@@ -20316,7 +20312,7 @@ function lR(e) {
|
|
|
20316
20312
|
config: e.config ?? void 0
|
|
20317
20313
|
};
|
|
20318
20314
|
}
|
|
20319
|
-
class
|
|
20315
|
+
class fR {
|
|
20320
20316
|
basePath = "/api/form-builder/forms";
|
|
20321
20317
|
/**
|
|
20322
20318
|
* Get form for rendering (fields, layout, rules, client overrides, optional BFF_submit_api).
|
|
@@ -20335,7 +20331,7 @@ class cR {
|
|
|
20335
20331
|
`Form response missing required field: tenantId. Form ID: ${t}. Please ensure the backend returns tenantId for non-default forms.`
|
|
20336
20332
|
);
|
|
20337
20333
|
s.form?.moduleId && !c.moduleId && (c.moduleId = s.form.moduleId), s.form?.tenantId && !c.tenantId && (c.tenantId = s.form.tenantId), s.form?.isDefault !== void 0 && c.isDefault === void 0 && (c.isDefault = s.form.isDefault);
|
|
20338
|
-
const l =
|
|
20334
|
+
const l = dR(c);
|
|
20339
20335
|
s.form?.moduleId && (typeof s.form.moduleId == "object" && s.form.moduleId._id ? l.moduleId = Qo(s.form.moduleId) : typeof s.form.moduleId == "string" && (l.moduleId = s.form.moduleId));
|
|
20340
20336
|
const d = Yd(s.fields || []), p = s.layout ? Qo(s.layout) : null, m = Yd(s.rules || []), g = s.module ? Qo(s.module) : void 0, h = s.clientMapping || s.clientOverrides;
|
|
20341
20337
|
return {
|
|
@@ -20350,7 +20346,7 @@ class cR {
|
|
|
20350
20346
|
};
|
|
20351
20347
|
}
|
|
20352
20348
|
}
|
|
20353
|
-
const
|
|
20349
|
+
const pR = new fR();
|
|
20354
20350
|
function Pr({
|
|
20355
20351
|
className: e,
|
|
20356
20352
|
size: t = "md",
|
|
@@ -20371,7 +20367,7 @@ function Pr({
|
|
|
20371
20367
|
] });
|
|
20372
20368
|
return r ? /* @__PURE__ */ f("div", { className: "min-h-screen bg-gradient-to-br from-blue-50 via-white to-indigo-50 flex items-center justify-center", children: i }) : i;
|
|
20373
20369
|
}
|
|
20374
|
-
const
|
|
20370
|
+
const mR = {
|
|
20375
20371
|
submitAction: "database",
|
|
20376
20372
|
autoSave: !0,
|
|
20377
20373
|
autoSaveInterval: 30,
|
|
@@ -20386,19 +20382,19 @@ const dR = {
|
|
|
20386
20382
|
showReset: !1,
|
|
20387
20383
|
successMessage: "Form submitted successfully!",
|
|
20388
20384
|
errorMessage: "An error occurred. Please try again."
|
|
20389
|
-
},
|
|
20390
|
-
function
|
|
20391
|
-
return { ...
|
|
20385
|
+
}, hR = 300;
|
|
20386
|
+
function gR() {
|
|
20387
|
+
return { ...mR };
|
|
20392
20388
|
}
|
|
20393
|
-
function
|
|
20389
|
+
function yR(e) {
|
|
20394
20390
|
if (!e || typeof e != "object") return;
|
|
20395
20391
|
const t = e, n = t.user_type ?? t.visibleToUserType ?? "", r = t.user_role ?? t.visibleToUserRole ?? "", o = Array.isArray(t.users) ? t.users : Array.isArray(t.visibleToUserIds) ? t.visibleToUserIds : [];
|
|
20396
20392
|
if (!(n != null && n !== "" || r != null && r !== "" || o.length > 0)) return;
|
|
20397
20393
|
const s = {};
|
|
20398
20394
|
return n != null && n !== "" && (s.visibleToUserType = n), r != null && r !== "" && (s.visibleToUserRole = r), o.length > 0 && (s.visibleToUserIds = o), s;
|
|
20399
20395
|
}
|
|
20400
|
-
function
|
|
20401
|
-
const t =
|
|
20396
|
+
function bR(e) {
|
|
20397
|
+
const t = gR();
|
|
20402
20398
|
if (!e || typeof e != "object")
|
|
20403
20399
|
return t;
|
|
20404
20400
|
const n = e;
|
|
@@ -20527,7 +20523,7 @@ function ss(e, t, n, r) {
|
|
|
20527
20523
|
const { disabled: k, readOnly: A, hidden: E, ...N } = p, x = {};
|
|
20528
20524
|
N.hideLabel !== void 0 && (x.hideLabel = N.hideLabel), N.labelPosition !== void 0 && (x.labelPlacement = N.labelPosition), N.size !== void 0 && (x.size = N.size), N.customClass !== void 0 && (x.className = N.customClass);
|
|
20529
20525
|
const { labelPosition: P, size: T, customClass: H, visibility: J, ...F } = N, B = Object.keys(F).length > 0 ? F : void 0, O = Object.keys(x).length > 0 ? x : void 0, M = l.visibility ?? p?.visibility ?? J;
|
|
20530
|
-
let I =
|
|
20526
|
+
let I = yR(M);
|
|
20531
20527
|
if (M && !I) {
|
|
20532
20528
|
const U = M;
|
|
20533
20529
|
(U.visibleToUserType != null || U.visibleToUserRole != null || Array.isArray(U.visibleToUserTypes) && U.visibleToUserTypes.length > 0 || Array.isArray(U.visibleToUserRoles) && U.visibleToUserRoles.length > 0 || Array.isArray(U.visibleToUserIds) && U.visibleToUserIds.length > 0 || Array.isArray(U.hiddenFromUserIds) && U.hiddenFromUserIds.length > 0) && (I = {
|
|
@@ -20609,7 +20605,7 @@ function ss(e, t, n, r) {
|
|
|
20609
20605
|
}), c != null)
|
|
20610
20606
|
try {
|
|
20611
20607
|
const l = typeof c == "string" ? JSON.parse(c) : c;
|
|
20612
|
-
l && typeof l == "object" ? a =
|
|
20608
|
+
l && typeof l == "object" ? a = bR(l) : a = {
|
|
20613
20609
|
submitAction: "database",
|
|
20614
20610
|
layout: "default",
|
|
20615
20611
|
autoSave: !0,
|
|
@@ -20652,7 +20648,7 @@ function ss(e, t, n, r) {
|
|
|
20652
20648
|
isDefault: e.isDefault
|
|
20653
20649
|
};
|
|
20654
20650
|
}
|
|
20655
|
-
const
|
|
20651
|
+
const vR = 3;
|
|
20656
20652
|
function vo(e) {
|
|
20657
20653
|
if (typeof e == "number" && !Number.isNaN(e)) return e;
|
|
20658
20654
|
}
|
|
@@ -20693,9 +20689,9 @@ function Xd(e) {
|
|
|
20693
20689
|
return t.length >= 2 ? "row" : "stack";
|
|
20694
20690
|
}
|
|
20695
20691
|
function Bg(e) {
|
|
20696
|
-
return zc(e).slice(0,
|
|
20692
|
+
return zc(e).slice(0, vR);
|
|
20697
20693
|
}
|
|
20698
|
-
function
|
|
20694
|
+
function wR(e, t) {
|
|
20699
20695
|
const n = /* @__PURE__ */ new Map();
|
|
20700
20696
|
for (const r of e) {
|
|
20701
20697
|
if (!t(r) || typeof r.position?.order != "number") continue;
|
|
@@ -20717,13 +20713,13 @@ function Jd(e, t, n, r) {
|
|
|
20717
20713
|
const s = [...i.values()][0] ?? [];
|
|
20718
20714
|
return Bg(s);
|
|
20719
20715
|
}
|
|
20720
|
-
function
|
|
20716
|
+
function SR(e, t, n, r) {
|
|
20721
20717
|
const o = n[0], i = o.position?.order, s = o.position?.column ?? 1;
|
|
20722
20718
|
if (typeof i != "number") return !1;
|
|
20723
20719
|
const { rowSpan: a, columnSpan: c } = Zo(n, r), u = e === i && t === s - 1, l = e >= i && e < i + a, d = t >= s - 1 && t < s - 1 + c;
|
|
20724
20720
|
return l && d && !u;
|
|
20725
20721
|
}
|
|
20726
|
-
function
|
|
20722
|
+
function xR(e, t, n) {
|
|
20727
20723
|
const r = new Set(n ?? []);
|
|
20728
20724
|
for (const o of e) {
|
|
20729
20725
|
const i = o[0]?.position?.order ?? 0, { rowSpan: s } = Zo(o, t);
|
|
@@ -20731,7 +20727,7 @@ function vR(e, t, n) {
|
|
|
20731
20727
|
}
|
|
20732
20728
|
return r;
|
|
20733
20729
|
}
|
|
20734
|
-
function
|
|
20730
|
+
function AR(e) {
|
|
20735
20731
|
const t = [...e].sort((r, o) => r - o), n = /* @__PURE__ */ new Map();
|
|
20736
20732
|
return t.forEach((r, o) => n.set(r, o)), {
|
|
20737
20733
|
originalToDisplay: n,
|
|
@@ -20739,7 +20735,7 @@ function wR(e) {
|
|
|
20739
20735
|
sortedOriginalRows: t
|
|
20740
20736
|
};
|
|
20741
20737
|
}
|
|
20742
|
-
function
|
|
20738
|
+
function CR(e, t, n) {
|
|
20743
20739
|
const r = n.get(e);
|
|
20744
20740
|
if (r === void 0) return;
|
|
20745
20741
|
let o = 0;
|
|
@@ -20790,7 +20786,7 @@ function jg(e) {
|
|
|
20790
20786
|
const t = e.apidata;
|
|
20791
20787
|
return En(t) && Object.keys(t).length > 0;
|
|
20792
20788
|
}
|
|
20793
|
-
function
|
|
20789
|
+
function ER(e) {
|
|
20794
20790
|
if (typeof e.metadata == "string" && e.metadata.trim() !== "" || typeof e.metadata == "object" && e.metadata !== null && !Array.isArray(e.metadata) && Object.keys(e.metadata).length > 0 || jg(e)) return !0;
|
|
20795
20791
|
const t = e.fieldKey, n = e.fieldType, r = e.name, o = e.type;
|
|
20796
20792
|
return !!(t && (!r || String(r).trim() === "") || n && (!o || String(o).trim() === "") || t && r && t !== r || n && o && n !== o || !r && e.key && typeof e.key == "string");
|
|
@@ -20812,7 +20808,7 @@ const zg = [
|
|
|
20812
20808
|
"minWidth",
|
|
20813
20809
|
"minHeight"
|
|
20814
20810
|
];
|
|
20815
|
-
function
|
|
20811
|
+
function NR(e, t) {
|
|
20816
20812
|
const n = e.appearance, r = En(n) && Object.keys(n).length > 0 ? Fo(n) : {}, o = no(t.appearance), i = { ...r };
|
|
20817
20813
|
for (const [s, a] of Object.entries(o))
|
|
20818
20814
|
s !== "heightPercent" && i[s] === void 0 && (i[s] = Fo(a));
|
|
@@ -20820,7 +20816,7 @@ function AR(e, t) {
|
|
|
20820
20816
|
i[s] === void 0 && t[s] !== void 0 && (i[s] = t[s]);
|
|
20821
20817
|
return delete i.heightPercent, Object.keys(i).length > 0 ? i : void 0;
|
|
20822
20818
|
}
|
|
20823
|
-
function
|
|
20819
|
+
function _R(e, t) {
|
|
20824
20820
|
const n = no(e.position), r = ma(e.metadata), o = no(e.layout), i = typeof n.order == "number" && !Number.isNaN(n.order) ? n.order : typeof e.positionOrder == "number" ? e.positionOrder : typeof e.order == "number" ? e.order : typeof e.positionRow == "number" ? e.positionRow : t, s = typeof n.column == "number" && !Number.isNaN(n.column) ? n.column : typeof e.positionColumn == "number" ? e.positionColumn : 1, a = typeof n.columnSpan == "number" && !Number.isNaN(n.columnSpan) ? n.columnSpan : typeof e.positionWidth == "number" ? e.positionWidth : 1, c = typeof n.rowSpan == "number" && !Number.isNaN(n.rowSpan) ? n.rowSpan : typeof e.positionRowSpan == "number" ? e.positionRowSpan : 1, u = {
|
|
20825
20821
|
order: i,
|
|
20826
20822
|
column: s,
|
|
@@ -20832,18 +20828,18 @@ function CR(e, t) {
|
|
|
20832
20828
|
}), p = si(n) ?? si(o) ?? (r.stackDirection === "horizontal" || o.stackDirection === "horizontal" ? "row" : r.stackDirection === "vertical" || o.stackDirection === "vertical" ? "stack" : void 0);
|
|
20833
20829
|
return typeof l == "string" && (u.cellGroupId = l), typeof d == "number" && (u.cellSlot = d), (p === "row" || p === "stack") && (u.sharedCellLayout = p), u;
|
|
20834
20830
|
}
|
|
20835
|
-
function
|
|
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 =
|
|
20831
|
+
function TR(e, t) {
|
|
20832
|
+
const n = e, r = ma(n.metadata), o = no(n.apidata), i = no(n.properties), s = $g({}, r, o, i), a = (n.name != null && String(n.name).trim() !== "" ? n.name : void 0) ?? (typeof n.fieldKey == "string" ? n.fieldKey : void 0) ?? (typeof n.key == "string" ? n.key : void 0), c = (n.type != null && String(n.type).trim() !== "" ? n.type : void 0) ?? (typeof n.fieldType == "string" ? n.fieldType : void 0), u = NR(n, r), l = _R(n, t), d = { ...n };
|
|
20837
20833
|
return d.properties = s, a !== void 0 && (d.name = a), c !== void 0 && (d.type = c), u !== void 0 ? d.appearance = u : (!En(n.appearance) || Object.keys(n.appearance).length === 0) && delete d.appearance, d.position = l, En(d.appearance) && delete d.appearance.heightPercent, d;
|
|
20838
20834
|
}
|
|
20839
|
-
function
|
|
20835
|
+
function RR(e, t) {
|
|
20840
20836
|
if (!e || typeof e != "object") return !0;
|
|
20841
20837
|
const n = e, r = ma(n.metadata), o = Object.keys(r).length === 0 && !(typeof n.metadata == "string" && n.metadata.trim() !== ""), i = !jg(n);
|
|
20842
|
-
if (
|
|
20838
|
+
if (ER(n) || !o || !i) return !1;
|
|
20843
20839
|
const s = n.position;
|
|
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)) ||
|
|
20840
|
+
return !(!(En(s) && typeof s.order == "number" && !Number.isNaN(s.order)) && (typeof n.positionRow == "number" || typeof n.positionColumn == "number" || typeof n.positionWidth == "number" || typeof n.positionRowSpan == "number" || typeof n.positionOrder == "number") || En(r.appearance) || zg.some((u) => r[u] !== void 0 && (n.appearance == null || En(n.appearance) && n.appearance[u] === void 0)) || kR(n));
|
|
20845
20841
|
}
|
|
20846
|
-
function
|
|
20842
|
+
function kR(e) {
|
|
20847
20843
|
const t = no(e.position), n = no(e.layout), r = ma(e.metadata);
|
|
20848
20844
|
return (typeof e.cellSlotIndex == "number" || typeof t.stackSlot == "number" || typeof t.cellSlot == "number" || typeof t.cellSlotIndex == "number" || typeof r.stackSlot == "number" || typeof n.stackSlot == "number") && typeof t.cellSlot != "number" || (t.stackDirection === "horizontal" || t.stackDirection === "vertical" || r.stackDirection === "horizontal" || r.stackDirection === "vertical" || n.stackDirection === "horizontal" || n.stackDirection === "vertical") && t.sharedCellLayout !== "row" && t.sharedCellLayout !== "stack";
|
|
20849
20845
|
}
|
|
@@ -20855,17 +20851,17 @@ function Uc(e) {
|
|
|
20855
20851
|
return e;
|
|
20856
20852
|
let n = !1;
|
|
20857
20853
|
const r = t.map((o, i) => {
|
|
20858
|
-
if (
|
|
20854
|
+
if (RR(o))
|
|
20859
20855
|
return o;
|
|
20860
|
-
const s =
|
|
20856
|
+
const s = TR(o, i);
|
|
20861
20857
|
return s !== o && (n = !0), s;
|
|
20862
20858
|
});
|
|
20863
20859
|
return n ? { ...e, fields: r } : e;
|
|
20864
20860
|
}
|
|
20865
|
-
function
|
|
20861
|
+
function yP(e) {
|
|
20866
20862
|
return Uc(e);
|
|
20867
20863
|
}
|
|
20868
|
-
const
|
|
20864
|
+
const FR = new Set(
|
|
20869
20865
|
[
|
|
20870
20866
|
"PENDING_PAYMENT",
|
|
20871
20867
|
"PAYMENT_PENDING",
|
|
@@ -20888,9 +20884,9 @@ function Bl(e) {
|
|
|
20888
20884
|
const t = e;
|
|
20889
20885
|
if (t.payment_type != null && t.payment_type !== "" || t.payment_mode != null && t.payment_mode !== "" || t.transaction_id != null && String(t.transaction_id).trim() !== "" || t.payment_status != null && String(t.payment_status).trim() !== "" || typeof t.amount == "number" || rl(t.amount) || typeof t.total_amount == "number" || rl(t.total_amount) || rl(t.currency) || t.gateway != null && String(t.gateway).trim() !== "" || t.razorpay_order_id != null && String(t.razorpay_order_id).trim() !== "" || t.stripe_payment_intent != null && String(t.stripe_payment_intent).trim() !== "") return !0;
|
|
20890
20886
|
const n = t.status;
|
|
20891
|
-
return !!(typeof n == "string" &&
|
|
20887
|
+
return !!(typeof n == "string" && FR.has(n.trim().toUpperCase()));
|
|
20892
20888
|
}
|
|
20893
|
-
function
|
|
20889
|
+
function PR(e) {
|
|
20894
20890
|
const t = et(e, "data.items");
|
|
20895
20891
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
20896
20892
|
const n = t[0];
|
|
@@ -20899,37 +20895,37 @@ function RR(e) {
|
|
|
20899
20895
|
if (!(r.id === void 0 || r.id === null || r.id === ""))
|
|
20900
20896
|
return { item: r, id: r.id };
|
|
20901
20897
|
}
|
|
20902
|
-
function
|
|
20903
|
-
const n =
|
|
20898
|
+
function OR(e, t) {
|
|
20899
|
+
const n = PR(e);
|
|
20904
20900
|
if (!n) return;
|
|
20905
20901
|
const r = et(e, "data"), o = r != null && typeof r == "object" && !Array.isArray(r) ? r : void 0;
|
|
20906
20902
|
if (t?.treatFirstItemIdAsPaymentId === !0 || Bl(n.item) || o != null && Bl(o))
|
|
20907
20903
|
return n.id;
|
|
20908
20904
|
}
|
|
20909
|
-
function
|
|
20905
|
+
function IR(e) {
|
|
20910
20906
|
const t = e.properties, n = e.metadata;
|
|
20911
20907
|
return [t?.uploadApiEndpoint, t?.apiEndpoint, n?.uploadApiEndpoint, n?.apiEndpoint].filter(
|
|
20912
20908
|
(o) => typeof o == "string" && o.length > 0
|
|
20913
20909
|
);
|
|
20914
20910
|
}
|
|
20915
|
-
function
|
|
20916
|
-
return
|
|
20911
|
+
function MR(e) {
|
|
20912
|
+
return IR(e).some((t) => t.toLowerCase().includes("payment"));
|
|
20917
20913
|
}
|
|
20918
|
-
function
|
|
20914
|
+
function LR(e) {
|
|
20919
20915
|
const t = e.properties, n = e.metadata;
|
|
20920
20916
|
return !!(t?.mergeSuccessDataIdAsPaymentId || n?.mergeSuccessDataIdAsPaymentId);
|
|
20921
20917
|
}
|
|
20922
|
-
function
|
|
20918
|
+
function DR(e, t) {
|
|
20923
20919
|
if (t?.type !== "button" || !ti(e))
|
|
20924
20920
|
return;
|
|
20925
20921
|
const n = et(e, "data.id");
|
|
20926
20922
|
if (n == null || String(n).trim() === "")
|
|
20927
20923
|
return;
|
|
20928
20924
|
const r = et(e, "data");
|
|
20929
|
-
if (
|
|
20925
|
+
if (LR(t) || r != null && typeof r == "object" && !Array.isArray(r) && Bl(r) || MR(t))
|
|
20930
20926
|
return n;
|
|
20931
20927
|
}
|
|
20932
|
-
const
|
|
20928
|
+
const BR = /* @__PURE__ */ new Set([
|
|
20933
20929
|
"section",
|
|
20934
20930
|
"group",
|
|
20935
20931
|
"columns",
|
|
@@ -20941,7 +20937,7 @@ const MR = /* @__PURE__ */ new Set([
|
|
|
20941
20937
|
"textLabel",
|
|
20942
20938
|
"customizeSections"
|
|
20943
20939
|
]);
|
|
20944
|
-
function
|
|
20940
|
+
function $R(e, t) {
|
|
20945
20941
|
if (!e.length || !t?.length) return [];
|
|
20946
20942
|
const n = new Map(t.map((o) => [o.id, o])), r = [];
|
|
20947
20943
|
for (const o of e) {
|
|
@@ -20952,8 +20948,8 @@ function LR(e, t) {
|
|
|
20952
20948
|
}
|
|
20953
20949
|
return r;
|
|
20954
20950
|
}
|
|
20955
|
-
function
|
|
20956
|
-
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o =
|
|
20951
|
+
function jR(e, t) {
|
|
20952
|
+
const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o = $R(
|
|
20957
20953
|
Array.isArray(n?.linkedSectionIds) ? n.linkedSectionIds : [],
|
|
20958
20954
|
t
|
|
20959
20955
|
), i = /* @__PURE__ */ new Set(), s = [];
|
|
@@ -20967,7 +20963,7 @@ function Ug(e, t) {
|
|
|
20967
20963
|
const o = new Map(t.map((i) => [i.id, i]));
|
|
20968
20964
|
return r.map((i) => o.get(i)).filter((i) => !!i);
|
|
20969
20965
|
}
|
|
20970
|
-
function
|
|
20966
|
+
function zR(e, t) {
|
|
20971
20967
|
return Ug(e, t).find((n) => n.heading?.enabled);
|
|
20972
20968
|
}
|
|
20973
20969
|
function Vg(e, t) {
|
|
@@ -20975,15 +20971,15 @@ function Vg(e, t) {
|
|
|
20975
20971
|
return (e.mode ?? "increment") === "fixed" ? n : n.replace(/\{n\}/g, String(t + 1));
|
|
20976
20972
|
}
|
|
20977
20973
|
function Qd(e, t, n, r) {
|
|
20978
|
-
const o =
|
|
20974
|
+
const o = jR(e, n);
|
|
20979
20975
|
if (o.length === 0) return [];
|
|
20980
20976
|
const i = new Set(o);
|
|
20981
20977
|
return t.filter((s) => {
|
|
20982
20978
|
const a = r(s);
|
|
20983
|
-
return !a || s.id === e.id ||
|
|
20979
|
+
return !a || s.id === e.id || BR.has(s.type) ? !1 : i.has(a);
|
|
20984
20980
|
});
|
|
20985
20981
|
}
|
|
20986
|
-
function
|
|
20982
|
+
function UR(e, t, n) {
|
|
20987
20983
|
if (e.type !== "sectionHeading" || !t?.length) return;
|
|
20988
20984
|
const r = n(e);
|
|
20989
20985
|
if (r)
|
|
@@ -21000,7 +20996,7 @@ function Vc(e) {
|
|
|
21000
20996
|
return i - s;
|
|
21001
20997
|
});
|
|
21002
20998
|
}
|
|
21003
|
-
function
|
|
20999
|
+
function VR(e, t, n) {
|
|
21004
21000
|
if (!e?.length) return [];
|
|
21005
21001
|
const r = e.filter((s) => s.showBorder === !0);
|
|
21006
21002
|
if (r.length === 0) return [];
|
|
@@ -21026,14 +21022,14 @@ function Hg(e, t, n) {
|
|
|
21026
21022
|
const r = t.heading;
|
|
21027
21023
|
return !r?.enabled || !r.headingFieldName ? !1 : n(e) === r.headingFieldName;
|
|
21028
21024
|
}
|
|
21029
|
-
function
|
|
21025
|
+
function HR(e, t) {
|
|
21030
21026
|
const n = typeof e.position?.order == "number" ? e.position.order : 0, r = (e.position?.column ?? 1) - 1, o = ai(e), i = Rf(e, t);
|
|
21031
21027
|
return { row: n, col: r, rowEnd: n + o - 1, colEnd: r + i - 1 };
|
|
21032
21028
|
}
|
|
21033
21029
|
function Hc(e, t) {
|
|
21034
21030
|
let n = 1 / 0, r = -1 / 0, o = 1 / 0, i = -1 / 0;
|
|
21035
21031
|
for (const s of e) {
|
|
21036
|
-
const { row: a, col: c, rowEnd: u, colEnd: l } =
|
|
21032
|
+
const { row: a, col: c, rowEnd: u, colEnd: l } = HR(s, t);
|
|
21037
21033
|
n = Math.min(n, a), r = Math.max(r, u), o = Math.min(o, c), i = Math.max(i, l);
|
|
21038
21034
|
}
|
|
21039
21035
|
return Number.isFinite(n) ? {
|
|
@@ -21045,7 +21041,7 @@ function Hc(e, t) {
|
|
|
21045
21041
|
colSpan: i - o + 1
|
|
21046
21042
|
} : null;
|
|
21047
21043
|
}
|
|
21048
|
-
function
|
|
21044
|
+
function WR(e, t, n, r) {
|
|
21049
21045
|
const o = e.map((l) => t.find((d) => r(d) === l)).filter((l) => !!l && typeof l.position?.order == "number");
|
|
21050
21046
|
if (o.length === 0) return null;
|
|
21051
21047
|
const i = Hc(o, n);
|
|
@@ -21064,10 +21060,10 @@ function UR(e, t, n, r) {
|
|
|
21064
21060
|
blockHeight: u
|
|
21065
21061
|
};
|
|
21066
21062
|
}
|
|
21067
|
-
function
|
|
21063
|
+
function GR(e, t) {
|
|
21068
21064
|
return e.maxRow + 1 + t * e.blockHeight;
|
|
21069
21065
|
}
|
|
21070
|
-
function
|
|
21066
|
+
function KR(e, t, n, r) {
|
|
21071
21067
|
const o = /* @__PURE__ */ new Map();
|
|
21072
21068
|
for (const a of t) {
|
|
21073
21069
|
const c = n(a);
|
|
@@ -21111,7 +21107,7 @@ function HR(e, t, n, r) {
|
|
|
21111
21107
|
}
|
|
21112
21108
|
return { anchorsByOrigin: i, coveredCells: s };
|
|
21113
21109
|
}
|
|
21114
|
-
function
|
|
21110
|
+
function qR(e, t, n, r, o, i, s) {
|
|
21115
21111
|
const a = new Set(s), c = /* @__PURE__ */ new Map();
|
|
21116
21112
|
for (const u of e) {
|
|
21117
21113
|
const l = Wg(
|
|
@@ -21146,19 +21142,19 @@ function WR(e, t, n, r, o, i, s) {
|
|
|
21146
21142
|
}
|
|
21147
21143
|
return { anchorsByOrigin: c, coveredCells: a };
|
|
21148
21144
|
}
|
|
21149
|
-
function
|
|
21145
|
+
function YR(e, t, n, r) {
|
|
21150
21146
|
const o = `${e}-${t}`;
|
|
21151
21147
|
return n.has(o) ? !r.get(o) : !1;
|
|
21152
21148
|
}
|
|
21153
|
-
function
|
|
21149
|
+
function XR(e, t, n) {
|
|
21154
21150
|
for (const r of n.values())
|
|
21155
21151
|
if (e >= r.anchorRow && e < r.anchorRow + r.rowSpan && t >= r.anchorCol && t < r.anchorCol + r.colSpan)
|
|
21156
21152
|
return r;
|
|
21157
21153
|
}
|
|
21158
|
-
function
|
|
21154
|
+
function JR(e, t, n, r) {
|
|
21159
21155
|
return !(!r || n.run.section.collapsible !== !0 || e === n.anchorRow && t === n.anchorCol);
|
|
21160
21156
|
}
|
|
21161
|
-
function
|
|
21157
|
+
function QR(e, t, n) {
|
|
21162
21158
|
const r = /* @__PURE__ */ new Set();
|
|
21163
21159
|
for (const o of e.values())
|
|
21164
21160
|
if (t(o))
|
|
@@ -21166,14 +21162,14 @@ function YR(e, t, n) {
|
|
|
21166
21162
|
n(i, o) || r.add(i);
|
|
21167
21163
|
return r;
|
|
21168
21164
|
}
|
|
21169
|
-
function
|
|
21165
|
+
function ZR(e, t, n) {
|
|
21170
21166
|
const r = (o) => n.has(o) ? "minmax(0, auto)" : `minmax(${t}, auto)`;
|
|
21171
21167
|
return Array.from({ length: e }, (o, i) => r(i)).join(" ");
|
|
21172
21168
|
}
|
|
21173
|
-
function
|
|
21169
|
+
function ek(e, t) {
|
|
21174
21170
|
return new Map([...e, ...t]);
|
|
21175
21171
|
}
|
|
21176
|
-
function
|
|
21172
|
+
function tk(e, t, n) {
|
|
21177
21173
|
if (t.length === 0)
|
|
21178
21174
|
return e.map((s) => ({ kind: "field", field: s }));
|
|
21179
21175
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -21210,8 +21206,8 @@ function Wg(e, t) {
|
|
|
21210
21206
|
return { section: r, fieldNames: o };
|
|
21211
21207
|
}
|
|
21212
21208
|
}
|
|
21213
|
-
const
|
|
21214
|
-
class
|
|
21209
|
+
const nk = 2 * 6e4, Zd = 50;
|
|
21210
|
+
class rk {
|
|
21215
21211
|
map = /* @__PURE__ */ new Map();
|
|
21216
21212
|
ttlMs;
|
|
21217
21213
|
constructor(t) {
|
|
@@ -21238,14 +21234,14 @@ class ek {
|
|
|
21238
21234
|
t.sort((r, o) => r[1].storedAtMs - o[1].storedAtMs), t.slice(0, Math.max(0, this.map.size - Zd)).forEach(([r]) => this.map.delete(r));
|
|
21239
21235
|
}
|
|
21240
21236
|
}
|
|
21241
|
-
function
|
|
21237
|
+
function ok(e) {
|
|
21242
21238
|
return (e ?? "").trim() || "default";
|
|
21243
21239
|
}
|
|
21244
21240
|
function Gg(e) {
|
|
21245
|
-
const t =
|
|
21241
|
+
const t = ok(e.scope), n = String(e.formId ?? "").trim(), r = e.version === void 0 || e.version === null ? "latest" : String(e.version).trim();
|
|
21246
21242
|
return `form-render:${t}:${n}:${r}`;
|
|
21247
21243
|
}
|
|
21248
|
-
const Kg = new
|
|
21244
|
+
const Kg = new rk(nk);
|
|
21249
21245
|
function qg(e) {
|
|
21250
21246
|
const t = Gg(e), n = Kg.get(t);
|
|
21251
21247
|
return n ? { value: n.value, isStale: n.isStale } : null;
|
|
@@ -21478,7 +21474,7 @@ const Xg = ({
|
|
|
21478
21474
|
const V = t;
|
|
21479
21475
|
_ || H(!0);
|
|
21480
21476
|
try {
|
|
21481
|
-
const j = await
|
|
21477
|
+
const j = await pR.getForRendering(t), ee = ss(
|
|
21482
21478
|
j.form,
|
|
21483
21479
|
j.fields,
|
|
21484
21480
|
j.layout,
|
|
@@ -21653,7 +21649,7 @@ const Xg = ({
|
|
|
21653
21649
|
const gt = se.slice(0, Ye), nt = se.slice(Ye + 1), vt = q.fields.find((Ke) => (Ke.name || Ke.key) === gt)?.properties;
|
|
21654
21650
|
if (vt?.rowSlots?.length) {
|
|
21655
21651
|
const Ke = nt.startsWith("__block__") ? nt.slice(9) : nt, Pt = be[gt] ?? Ot.getState().values[gt];
|
|
21656
|
-
Array.isArray(ge) ? be[gt] =
|
|
21652
|
+
Array.isArray(ge) ? be[gt] = H_(vt, Ke, ge, Pt) : ge != null && (be[gt] = Ka(vt, ge, Pt));
|
|
21657
21653
|
}
|
|
21658
21654
|
continue;
|
|
21659
21655
|
}
|
|
@@ -21797,7 +21793,7 @@ const Xg = ({
|
|
|
21797
21793
|
const Me = et(He, "data.user_id"), ge = et(He, "data.items"), Ye = et(He, "data");
|
|
21798
21794
|
let pt = Array.isArray(ge) && ge.length > 0 && ge[0] != null && typeof ge[0] == "object" && ge[0].id ? ge[0].id : void 0;
|
|
21799
21795
|
pt === void 0 && Array.isArray(Ye) && Ye.length > 0 && Ye[0] != null && typeof Ye[0] == "object" && Ye[0].id && (pt = Ye[0].id), pt === void 0 && (pt = et(He, "data.0.id"));
|
|
21800
|
-
const gt =
|
|
21796
|
+
const gt = OR(He, {
|
|
21801
21797
|
treatFirstItemIdAsPaymentId: _?.treatFirstItemIdAsPaymentId === !0
|
|
21802
21798
|
}), nt = et(He, "data.id"), fe = et(He, "data.batch_id"), vt = et(He, "data.program_id"), Ke = {};
|
|
21803
21799
|
Me != null && (Ke.context_user_id = Me), pt != null && pt !== "" && (Ke.documentId = pt), nt != null && String(nt).trim() !== "" && (p?.id === void 0 || p?.id === null) && (Ke.id = nt), fe != null && String(fe).trim() !== "" && ((p?.admission_batch_id === void 0 || p?.admission_batch_id === null) && (Ke.admission_batch_id = fe), (p?.batch_id === void 0 || p?.batch_id === null) && (Ke.batch_id = fe)), vt != null && String(vt).trim() !== "" && (p?.program_id === void 0 || p?.program_id === null) && (Ke.program_id = vt), gt != null && String(gt).trim() !== "" && (p?.payment_id === void 0 || p?.payment_id === null) && (Ke.payment_id = gt), Object.keys(Ke).length > 0 && z((Pt) => {
|
|
@@ -21875,7 +21871,7 @@ const Xg = ({
|
|
|
21875
21871
|
(_, V) => {
|
|
21876
21872
|
const j = q.fields.find(
|
|
21877
21873
|
(Q) => Q.type === "button" && (Q.name === _ || Q.key === _)
|
|
21878
|
-
), ee =
|
|
21874
|
+
), ee = DR(V, j);
|
|
21879
21875
|
ee != null && String(ee).trim() !== "" && (p?.payment_id === void 0 || p?.payment_id === null) && z((Q) => {
|
|
21880
21876
|
const ce = { ...Q, payment_id: ee };
|
|
21881
21877
|
return h?.(ce), ce;
|
|
@@ -22016,7 +22012,7 @@ const Xg = ({
|
|
|
22016
22012
|
V = { ..._, properties: { ..._.properties, columns: Q } };
|
|
22017
22013
|
}
|
|
22018
22014
|
}
|
|
22019
|
-
const j =
|
|
22015
|
+
const j = UR(V, zt, tt);
|
|
22020
22016
|
return j ? { ...V, label: Vg(j, 0) } : V;
|
|
22021
22017
|
},
|
|
22022
22018
|
[Ct, zt, tt]
|
|
@@ -22137,7 +22133,7 @@ const Xg = ({
|
|
|
22137
22133
|
return ot !== me ? ot - me : (Ce.position?.column ?? 1) - (We.position?.column ?? 1);
|
|
22138
22134
|
});
|
|
22139
22135
|
if (Ne.length === 0) return;
|
|
22140
|
-
const Te = Ug(j, zt), Be = Te[0]?.fieldNames?.length ? Te[0].fieldNames : Ne.map((Ce) => tt(Ce)).filter(Boolean), lt =
|
|
22136
|
+
const Te = Ug(j, zt), Be = Te[0]?.fieldNames?.length ? Te[0].fieldNames : Ne.map((Ce) => tt(Ce)).filter(Boolean), lt = WR(
|
|
22141
22137
|
Be,
|
|
22142
22138
|
Ii,
|
|
22143
22139
|
Y,
|
|
@@ -22180,7 +22176,7 @@ const Xg = ({
|
|
|
22180
22176
|
return vr.forEach((j) => {
|
|
22181
22177
|
const { addMoreFieldName: ee, blockIds: Q, linkedFields: ce, blockHeight: Ne, templateBounds: Te } = j, Be = Math.min(...ce.map((De) => De.position?.order ?? 0)), Wt = q.fields.find((De) => tt(De) === ee && De.type === "addmore")?.properties;
|
|
22182
22178
|
Q.forEach((De, He) => {
|
|
22183
|
-
const Se = {}, Ce = {}, We = {}, ot = Te ?
|
|
22179
|
+
const Se = {}, Ce = {}, We = {}, ot = Te ? GR(Te, He) : j.baseOrder + 1 + He * Ne, me = ie[`${ee}__${De}`];
|
|
22184
22180
|
ce.forEach((be) => {
|
|
22185
22181
|
const ft = tt(be), Gt = Kn(ft, ee, De), Ut = (be.position?.order ?? Be) - Be;
|
|
22186
22182
|
if (Se[Gt] = ft, Ce[Gt] = Ie[Gt], !(Wt?.linkedFieldAllowDuplicate?.[ft] ?? !0) && (be.type === "select" || be.type === "radio" || be.type === "multiselect")) {
|
|
@@ -22220,11 +22216,11 @@ const Xg = ({
|
|
|
22220
22216
|
const Ne = ko(_.position) ?? 0, Te = ko(V.position) ?? 0;
|
|
22221
22217
|
return Ne !== Te ? Ne - Te : String(_.id).localeCompare(String(V.id));
|
|
22222
22218
|
}), [Mi, ao.clonedFields]), lo = pe(
|
|
22223
|
-
() =>
|
|
22219
|
+
() => wR(Vo.filter((_) => !_.parentId), Pn),
|
|
22224
22220
|
[Vo, Pn]
|
|
22225
22221
|
), ba = Z(
|
|
22226
22222
|
(_, V) => lo.some(
|
|
22227
|
-
(j) =>
|
|
22223
|
+
(j) => SR(_, V, j, Y)
|
|
22228
22224
|
),
|
|
22229
22225
|
[lo, Y]
|
|
22230
22226
|
);
|
|
@@ -22232,14 +22228,14 @@ const Xg = ({
|
|
|
22232
22228
|
...lo.map((_) => (_[0]?.position?.order ?? 0) + Zo(_, Y).rowSpan)
|
|
22233
22229
|
);
|
|
22234
22230
|
const Di = pe(
|
|
22235
|
-
() =>
|
|
22231
|
+
() => VR(
|
|
22236
22232
|
zt,
|
|
22237
22233
|
Vc(kt.filter((_) => !_.parentId)),
|
|
22238
22234
|
tt
|
|
22239
22235
|
),
|
|
22240
22236
|
[zt, kt, tt]
|
|
22241
22237
|
), { anchorsByOrigin: qc, coveredCells: Yc } = pe(
|
|
22242
|
-
() =>
|
|
22238
|
+
() => KR(
|
|
22243
22239
|
Di,
|
|
22244
22240
|
Mi,
|
|
22245
22241
|
tt,
|
|
@@ -22247,7 +22243,7 @@ const Xg = ({
|
|
|
22247
22243
|
),
|
|
22248
22244
|
[Di, Mi, tt, Y]
|
|
22249
22245
|
), { anchorsByOrigin: Xc, coveredCells: Jc } = pe(
|
|
22250
|
-
() =>
|
|
22246
|
+
() => qR(
|
|
22251
22247
|
vr.map((_) => ({
|
|
22252
22248
|
addMoreFieldName: _.addMoreFieldName,
|
|
22253
22249
|
blockIds: _.blockIds,
|
|
@@ -22271,7 +22267,7 @@ const Xg = ({
|
|
|
22271
22267
|
Yc
|
|
22272
22268
|
]
|
|
22273
22269
|
), pr = pe(
|
|
22274
|
-
() =>
|
|
22270
|
+
() => ek(qc, Xc),
|
|
22275
22271
|
[qc, Xc]
|
|
22276
22272
|
), Qc = pe(
|
|
22277
22273
|
() => Jc,
|
|
@@ -22294,7 +22290,7 @@ const Xg = ({
|
|
|
22294
22290
|
ba
|
|
22295
22291
|
]
|
|
22296
22292
|
), tu = pe(
|
|
22297
|
-
() =>
|
|
22293
|
+
() => QR(
|
|
22298
22294
|
pr,
|
|
22299
22295
|
(_) => {
|
|
22300
22296
|
const V = _.run.section;
|
|
@@ -22313,7 +22309,7 @@ const Xg = ({
|
|
|
22313
22309
|
if (V.renderFields.some((j) => Pn(j)))
|
|
22314
22310
|
for (let j = V.anchorRow; j < V.anchorRow + V.rowSpan; j++)
|
|
22315
22311
|
_.push(j);
|
|
22316
|
-
return
|
|
22312
|
+
return xR(lo, Y, _);
|
|
22317
22313
|
}, [
|
|
22318
22314
|
lo,
|
|
22319
22315
|
Y,
|
|
@@ -22321,14 +22317,14 @@ const Xg = ({
|
|
|
22321
22317
|
pr,
|
|
22322
22318
|
Pn
|
|
22323
22319
|
]), { originalToDisplayRow: Bi, displayRowCount: Ny, sortedOccupiedRows: _y } = pe(() => {
|
|
22324
|
-
const _ =
|
|
22320
|
+
const _ = AR(nu);
|
|
22325
22321
|
return {
|
|
22326
22322
|
originalToDisplayRow: _.originalToDisplay,
|
|
22327
22323
|
displayRowCount: _.displayRowCount,
|
|
22328
22324
|
sortedOccupiedRows: _.sortedOriginalRows
|
|
22329
22325
|
};
|
|
22330
22326
|
}, [nu]), ru = Math.max(Ny, 1), va = Z(
|
|
22331
|
-
(_, V = 1) =>
|
|
22327
|
+
(_, V = 1) => CR(_, V, Bi),
|
|
22332
22328
|
[Bi]
|
|
22333
22329
|
), ou = pe(() => {
|
|
22334
22330
|
const _ = /* @__PURE__ */ new Set();
|
|
@@ -22338,10 +22334,10 @@ const Xg = ({
|
|
|
22338
22334
|
}
|
|
22339
22335
|
return _;
|
|
22340
22336
|
}, [tu, Bi]), Ty = pe(
|
|
22341
|
-
() =>
|
|
22337
|
+
() => ZR(ru, Zc, ou),
|
|
22342
22338
|
[ru, Zc, ou]
|
|
22343
22339
|
), Ry = pe(
|
|
22344
|
-
() =>
|
|
22340
|
+
() => tk(
|
|
22345
22341
|
kt.filter((_) => !_.parentId && Pn(_)),
|
|
22346
22342
|
Di,
|
|
22347
22343
|
tt
|
|
@@ -22353,7 +22349,7 @@ const Xg = ({
|
|
|
22353
22349
|
if (j.length === 0) return null;
|
|
22354
22350
|
const ee = fr(_);
|
|
22355
22351
|
if (ee.length === 0) return null;
|
|
22356
|
-
const Q =
|
|
22352
|
+
const Q = zR(_, zt), ce = ee.map((Be) => tt(Be)).filter(Boolean), Ne = Wg(ce, zt), Te = (Be, lt, Wt, De, He, Se, Ce) => {
|
|
22357
22353
|
const We = tt(Be), ot = Kn(We, V, lt), me = Be.hidden === !0;
|
|
22358
22354
|
if (!(Ct(Be) && (Nn(We) || !me && We))) return null;
|
|
22359
22355
|
const be = {
|
|
@@ -22481,7 +22477,7 @@ const Xg = ({
|
|
|
22481
22477
|
"data-form-renderer-layout": R ? "grid" : "stack",
|
|
22482
22478
|
children: /* @__PURE__ */ $(t_, { value: _i, children: [
|
|
22483
22479
|
Tn && q.steps && /* @__PURE__ */ f(
|
|
22484
|
-
|
|
22480
|
+
uR,
|
|
22485
22481
|
{
|
|
22486
22482
|
steps: q.steps,
|
|
22487
22483
|
currentStep: ke,
|
|
@@ -22521,18 +22517,18 @@ const Xg = ({
|
|
|
22521
22517
|
},
|
|
22522
22518
|
`empty-${_}-${j}`
|
|
22523
22519
|
);
|
|
22524
|
-
if (
|
|
22520
|
+
if (YR(
|
|
22525
22521
|
_,
|
|
22526
22522
|
j,
|
|
22527
22523
|
Qc,
|
|
22528
22524
|
pr
|
|
22529
22525
|
)) {
|
|
22530
|
-
const Se =
|
|
22526
|
+
const Se = XR(
|
|
22531
22527
|
_,
|
|
22532
22528
|
j,
|
|
22533
22529
|
pr
|
|
22534
22530
|
);
|
|
22535
|
-
return Se &&
|
|
22531
|
+
return Se && JR(
|
|
22536
22532
|
_,
|
|
22537
22533
|
j,
|
|
22538
22534
|
Se,
|
|
@@ -23153,7 +23149,7 @@ function ol(e) {
|
|
|
23153
23149
|
function tf(e) {
|
|
23154
23150
|
return e !== null && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
23155
23151
|
}
|
|
23156
|
-
function
|
|
23152
|
+
function ik(e, t) {
|
|
23157
23153
|
const n = e.form;
|
|
23158
23154
|
if (!n)
|
|
23159
23155
|
throw new Error("workflowStateToFormSchema requires workflowState.form to be set");
|
|
@@ -23323,9 +23319,9 @@ function nk(e, t) {
|
|
|
23323
23319
|
u
|
|
23324
23320
|
);
|
|
23325
23321
|
}
|
|
23326
|
-
var ha = "Tabs", [
|
|
23322
|
+
var ha = "Tabs", [sk] = Mn(ha, [
|
|
23327
23323
|
ca
|
|
23328
|
-
]), Jg = ca(), [
|
|
23324
|
+
]), Jg = ca(), [ak, Wc] = sk(ha), Qg = b.forwardRef(
|
|
23329
23325
|
(e, t) => {
|
|
23330
23326
|
const {
|
|
23331
23327
|
__scopeTabs: n,
|
|
@@ -23343,7 +23339,7 @@ var ha = "Tabs", [rk] = Mn(ha, [
|
|
|
23343
23339
|
caller: ha
|
|
23344
23340
|
});
|
|
23345
23341
|
return /* @__PURE__ */ f(
|
|
23346
|
-
|
|
23342
|
+
ak,
|
|
23347
23343
|
{
|
|
23348
23344
|
scope: n,
|
|
23349
23345
|
baseId: hr(),
|
|
@@ -23465,13 +23461,13 @@ function iy(e, t) {
|
|
|
23465
23461
|
function sy(e, t) {
|
|
23466
23462
|
return `${e}-content-${t}`;
|
|
23467
23463
|
}
|
|
23468
|
-
var
|
|
23464
|
+
var lk = Qg, ck = ey, uk = ny, dk = oy;
|
|
23469
23465
|
function ay({
|
|
23470
23466
|
className: e,
|
|
23471
23467
|
...t
|
|
23472
23468
|
}) {
|
|
23473
23469
|
return /* @__PURE__ */ f(
|
|
23474
|
-
|
|
23470
|
+
lk,
|
|
23475
23471
|
{
|
|
23476
23472
|
"data-slot": "tabs",
|
|
23477
23473
|
className: L("flex flex-col gap-2", e),
|
|
@@ -23484,7 +23480,7 @@ function ly({
|
|
|
23484
23480
|
...t
|
|
23485
23481
|
}) {
|
|
23486
23482
|
return /* @__PURE__ */ f(
|
|
23487
|
-
|
|
23483
|
+
ck,
|
|
23488
23484
|
{
|
|
23489
23485
|
"data-slot": "tabs-list",
|
|
23490
23486
|
className: L(
|
|
@@ -23500,7 +23496,7 @@ function cy({
|
|
|
23500
23496
|
...t
|
|
23501
23497
|
}) {
|
|
23502
23498
|
return /* @__PURE__ */ f(
|
|
23503
|
-
|
|
23499
|
+
uk,
|
|
23504
23500
|
{
|
|
23505
23501
|
"data-slot": "tabs-trigger",
|
|
23506
23502
|
className: L(
|
|
@@ -23516,7 +23512,7 @@ function uy({
|
|
|
23516
23512
|
...t
|
|
23517
23513
|
}) {
|
|
23518
23514
|
return /* @__PURE__ */ f(
|
|
23519
|
-
|
|
23515
|
+
dk,
|
|
23520
23516
|
{
|
|
23521
23517
|
"data-slot": "tabs-content",
|
|
23522
23518
|
className: L("flex-1 outline-none", e),
|
|
@@ -23538,7 +23534,7 @@ function yn({
|
|
|
23538
23534
|
}
|
|
23539
23535
|
);
|
|
23540
23536
|
}
|
|
23541
|
-
function
|
|
23537
|
+
function fk({ className: e = "" }) {
|
|
23542
23538
|
return /* @__PURE__ */ $(
|
|
23543
23539
|
"div",
|
|
23544
23540
|
{
|
|
@@ -23562,7 +23558,7 @@ function ck({ className: e = "" }) {
|
|
|
23562
23558
|
}
|
|
23563
23559
|
);
|
|
23564
23560
|
}
|
|
23565
|
-
function
|
|
23561
|
+
function pk() {
|
|
23566
23562
|
return /* @__PURE__ */ $(
|
|
23567
23563
|
"div",
|
|
23568
23564
|
{
|
|
@@ -23579,18 +23575,18 @@ function uk() {
|
|
|
23579
23575
|
}
|
|
23580
23576
|
);
|
|
23581
23577
|
}
|
|
23582
|
-
const
|
|
23583
|
-
function
|
|
23578
|
+
const mk = 3e4, hk = 10 * 6e4, gk = 9e4, yk = 15 * 6e4;
|
|
23579
|
+
function bk(e) {
|
|
23584
23580
|
return e != null && "on_success" in e && e.on_success != null;
|
|
23585
23581
|
}
|
|
23586
|
-
function
|
|
23582
|
+
function vk(e, t) {
|
|
23587
23583
|
if (!t || typeof t != "object") return e;
|
|
23588
23584
|
let n = e;
|
|
23589
23585
|
return Object.entries(t).forEach(([r, o]) => {
|
|
23590
23586
|
o != null && o !== "" && (n = n.replace(new RegExp(`\\{${r}\\}`, "g"), String(o)));
|
|
23591
23587
|
}), n;
|
|
23592
23588
|
}
|
|
23593
|
-
const
|
|
23589
|
+
const wk = ({
|
|
23594
23590
|
getWorkflowState: e,
|
|
23595
23591
|
moduleId: t,
|
|
23596
23592
|
tenantId: n,
|
|
@@ -23635,8 +23631,8 @@ const yk = ({
|
|
|
23635
23631
|
w[2]
|
|
23636
23632
|
],
|
|
23637
23633
|
queryFn: () => e({ ...S, featureId: a }),
|
|
23638
|
-
staleTime:
|
|
23639
|
-
gcTime:
|
|
23634
|
+
staleTime: mk,
|
|
23635
|
+
gcTime: hk
|
|
23640
23636
|
}), D = z.isPending, ae = z.error ? z.error instanceof Error ? z.error.message : "Failed to load workflow steps" : null;
|
|
23641
23637
|
wt(() => {
|
|
23642
23638
|
const le = z.data;
|
|
@@ -23665,8 +23661,8 @@ const yk = ({
|
|
|
23665
23661
|
],
|
|
23666
23662
|
queryFn: () => e({ ...S, featureId: U }),
|
|
23667
23663
|
enabled: !!U,
|
|
23668
|
-
staleTime:
|
|
23669
|
-
gcTime:
|
|
23664
|
+
staleTime: gk,
|
|
23665
|
+
gcTime: yk,
|
|
23670
23666
|
refetchOnWindowFocus: !0,
|
|
23671
23667
|
refetchOnReconnect: !0
|
|
23672
23668
|
}), X = K.isPending, ue = K.error ? K.error instanceof Error ? K.error.message : "Failed to load form" : null;
|
|
@@ -23685,7 +23681,7 @@ const yk = ({
|
|
|
23685
23681
|
formId: le._id,
|
|
23686
23682
|
version: le.version
|
|
23687
23683
|
});
|
|
23688
|
-
return Xe?.value ? Xe.value :
|
|
23684
|
+
return Xe?.value ? Xe.value : ik(N, r);
|
|
23689
23685
|
}, [N, r, n]), G = pe(() => {
|
|
23690
23686
|
const le = N?.BFF_submit_api;
|
|
23691
23687
|
if (!le?.url) return;
|
|
@@ -23748,10 +23744,10 @@ const yk = ({
|
|
|
23748
23744
|
v.invalidateQueries({ queryKey: ["workflow-steps", t] }), v.invalidateQueries({ queryKey: ["workflow-step", t] });
|
|
23749
23745
|
}, [v, t]), ve = Z(
|
|
23750
23746
|
(le) => {
|
|
23751
|
-
if (
|
|
23747
|
+
if (bk(le)) {
|
|
23752
23748
|
const qe = le.on_success, Xt = qe?.action;
|
|
23753
23749
|
if (Xt === "redirect" && qe?.redirect_url) {
|
|
23754
|
-
const Ze =
|
|
23750
|
+
const Ze = vk(qe.redirect_url.trim(), r);
|
|
23755
23751
|
window.location.href = Ze;
|
|
23756
23752
|
return;
|
|
23757
23753
|
}
|
|
@@ -23812,7 +23808,7 @@ const yk = ({
|
|
|
23812
23808
|
}, []), xe = Z((le) => {
|
|
23813
23809
|
}, []);
|
|
23814
23810
|
if (D)
|
|
23815
|
-
return /* @__PURE__ */ f(
|
|
23811
|
+
return /* @__PURE__ */ f(fk, { className: d });
|
|
23816
23812
|
if (ae)
|
|
23817
23813
|
return /* @__PURE__ */ f(
|
|
23818
23814
|
"div",
|
|
@@ -23849,7 +23845,7 @@ const yk = ({
|
|
|
23849
23845
|
},
|
|
23850
23846
|
le.step_id
|
|
23851
23847
|
)) }),
|
|
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(
|
|
23848
|
+
I.map((le) => /* @__PURE__ */ f(uy, { value: le.step_id, className: "mt-4 outline-none", children: le.step_id !== A ? null : X ? /* @__PURE__ */ f(pk, {}) : P ? /* @__PURE__ */ f("div", { className: "rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive", children: P }) : Ae && !N?.form ? /* @__PURE__ */ f(
|
|
23853
23849
|
"div",
|
|
23854
23850
|
{
|
|
23855
23851
|
className: L(
|
|
@@ -23917,10 +23913,10 @@ const yk = ({
|
|
|
23917
23913
|
}
|
|
23918
23914
|
);
|
|
23919
23915
|
};
|
|
23920
|
-
function
|
|
23916
|
+
function bP(e) {
|
|
23921
23917
|
return typeof e == "object" && e !== null && "apiEndpoint" in e;
|
|
23922
23918
|
}
|
|
23923
|
-
function
|
|
23919
|
+
function vP({ formSchema: e }) {
|
|
23924
23920
|
const t = pe(() => {
|
|
23925
23921
|
if (!e)
|
|
23926
23922
|
return [];
|
|
@@ -24012,13 +24008,13 @@ function gP({ formSchema: e }) {
|
|
|
24012
24008
|
isValid: o
|
|
24013
24009
|
};
|
|
24014
24010
|
}
|
|
24015
|
-
function
|
|
24011
|
+
function wP({
|
|
24016
24012
|
field: e,
|
|
24017
24013
|
value: t,
|
|
24018
24014
|
allValues: n,
|
|
24019
24015
|
validateOnChange: r = !1,
|
|
24020
24016
|
validateOnBlur: o = !0,
|
|
24021
|
-
debounceMs: i =
|
|
24017
|
+
debounceMs: i = hR
|
|
24022
24018
|
}) {
|
|
24023
24019
|
const [s, a] = Ee(), [c, u] = Ee(!1), l = At(void 0), d = At(t), p = Z(async () => {
|
|
24024
24020
|
if (!e.validation || e.validation.length === 0) {
|
|
@@ -24063,7 +24059,7 @@ const dy = "—";
|
|
|
24063
24059
|
function en() {
|
|
24064
24060
|
return { kind: "static", value: dy };
|
|
24065
24061
|
}
|
|
24066
|
-
function
|
|
24062
|
+
function Sk() {
|
|
24067
24063
|
return {
|
|
24068
24064
|
currencySymbol: "₹",
|
|
24069
24065
|
emptyDisplay: dy,
|
|
@@ -24170,7 +24166,7 @@ function bk() {
|
|
|
24170
24166
|
]
|
|
24171
24167
|
};
|
|
24172
24168
|
}
|
|
24173
|
-
const
|
|
24169
|
+
const SP = {
|
|
24174
24170
|
// Input Fields
|
|
24175
24171
|
text: {
|
|
24176
24172
|
type: "text",
|
|
@@ -24605,7 +24601,7 @@ const bP = {
|
|
|
24605
24601
|
defaultProps: {
|
|
24606
24602
|
label: "Billing",
|
|
24607
24603
|
name: "billing",
|
|
24608
|
-
properties:
|
|
24604
|
+
properties: Sk()
|
|
24609
24605
|
}
|
|
24610
24606
|
},
|
|
24611
24607
|
aadhaar: {
|
|
@@ -24840,7 +24836,7 @@ function fy(e, t) {
|
|
|
24840
24836
|
showBorder: !1
|
|
24841
24837
|
};
|
|
24842
24838
|
}
|
|
24843
|
-
function
|
|
24839
|
+
function xk(e) {
|
|
24844
24840
|
switch (e ?? "md") {
|
|
24845
24841
|
case "none":
|
|
24846
24842
|
return "";
|
|
@@ -24852,7 +24848,7 @@ function vk(e) {
|
|
|
24852
24848
|
return "p-4 md:p-6";
|
|
24853
24849
|
}
|
|
24854
24850
|
}
|
|
24855
|
-
function
|
|
24851
|
+
function Ak(e, t) {
|
|
24856
24852
|
if (t === "full-bleed") return "w-full max-w-none";
|
|
24857
24853
|
switch (e ?? "full") {
|
|
24858
24854
|
case "full":
|
|
@@ -24879,7 +24875,7 @@ function wk(e, t) {
|
|
|
24879
24875
|
return "w-full max-w-none";
|
|
24880
24876
|
}
|
|
24881
24877
|
}
|
|
24882
|
-
function
|
|
24878
|
+
function Ck(e) {
|
|
24883
24879
|
switch (e) {
|
|
24884
24880
|
case "sidebar-main":
|
|
24885
24881
|
return "grid grid-cols-1 gap-6 lg:grid-cols-[240px_1fr]";
|
|
@@ -24889,17 +24885,17 @@ function Sk(e) {
|
|
|
24889
24885
|
return "w-full";
|
|
24890
24886
|
}
|
|
24891
24887
|
}
|
|
24892
|
-
function
|
|
24888
|
+
function Ek(e) {
|
|
24893
24889
|
const t = fy(e.container, e.layout);
|
|
24894
24890
|
return L(
|
|
24895
|
-
|
|
24896
|
-
|
|
24897
|
-
|
|
24891
|
+
Ck(e.layout),
|
|
24892
|
+
Ak(t.maxWidth, e.layout),
|
|
24893
|
+
xk(t.padding),
|
|
24898
24894
|
t.showBorder && "rounded-lg border border-border"
|
|
24899
24895
|
);
|
|
24900
24896
|
}
|
|
24901
24897
|
const Rs = 1;
|
|
24902
|
-
function
|
|
24898
|
+
function Nk() {
|
|
24903
24899
|
return {
|
|
24904
24900
|
version: Rs,
|
|
24905
24901
|
layout: "stack",
|
|
@@ -24916,7 +24912,7 @@ function py(e) {
|
|
|
24916
24912
|
children: Array.isArray(e.children) ? e.children.map(py) : void 0
|
|
24917
24913
|
};
|
|
24918
24914
|
}
|
|
24919
|
-
function
|
|
24915
|
+
function _k(e) {
|
|
24920
24916
|
return {
|
|
24921
24917
|
version: Rs,
|
|
24922
24918
|
layout: e.layout ?? "stack",
|
|
@@ -24931,20 +24927,20 @@ function Ck(e) {
|
|
|
24931
24927
|
navigation: e.navigation
|
|
24932
24928
|
};
|
|
24933
24929
|
}
|
|
24934
|
-
function
|
|
24930
|
+
function Tk(e) {
|
|
24935
24931
|
const t = e;
|
|
24936
|
-
return !t || typeof t != "object" ?
|
|
24932
|
+
return !t || typeof t != "object" ? Nk() : (t.version !== Rs && (t.version = Rs), _k(t));
|
|
24937
24933
|
}
|
|
24938
24934
|
const rf = {};
|
|
24939
24935
|
let my = null;
|
|
24940
|
-
function
|
|
24936
|
+
function xP(e) {
|
|
24941
24937
|
my = e;
|
|
24942
24938
|
}
|
|
24943
|
-
function
|
|
24939
|
+
function Rk() {
|
|
24944
24940
|
return (rf?.VITE_API_BASE_URL?.trim() || rf?.VITE_API_URL?.trim() || "").replace(/\/$/, "");
|
|
24945
24941
|
}
|
|
24946
24942
|
const ga = It.create({
|
|
24947
|
-
baseURL:
|
|
24943
|
+
baseURL: Rk()
|
|
24948
24944
|
});
|
|
24949
24945
|
ga.interceptors.request.use((e) => {
|
|
24950
24946
|
const t = Zr();
|
|
@@ -24958,7 +24954,7 @@ ga.interceptors.request.use((e) => {
|
|
|
24958
24954
|
}
|
|
24959
24955
|
return e;
|
|
24960
24956
|
});
|
|
24961
|
-
async function
|
|
24957
|
+
async function kk(e) {
|
|
24962
24958
|
const t = await ga.get(
|
|
24963
24959
|
"/api/page-builder/pages/resolve",
|
|
24964
24960
|
{ params: e }
|
|
@@ -24983,7 +24979,7 @@ async function gy(e) {
|
|
|
24983
24979
|
);
|
|
24984
24980
|
return i.data?.data ?? i.data;
|
|
24985
24981
|
}
|
|
24986
|
-
function
|
|
24982
|
+
function Fk(e, t) {
|
|
24987
24983
|
if (!t) return {};
|
|
24988
24984
|
const n = {};
|
|
24989
24985
|
for (const [r, o] of Object.entries(t)) {
|
|
@@ -25027,7 +25023,7 @@ function of(e, t) {
|
|
|
25027
25023
|
}
|
|
25028
25024
|
return n;
|
|
25029
25025
|
}
|
|
25030
|
-
function
|
|
25026
|
+
function Pk({
|
|
25031
25027
|
schema: e,
|
|
25032
25028
|
context: t = {},
|
|
25033
25029
|
clientId: n,
|
|
@@ -25066,7 +25062,7 @@ function Rk({
|
|
|
25066
25062
|
context: P
|
|
25067
25063
|
});
|
|
25068
25064
|
if (N) return;
|
|
25069
|
-
const H =
|
|
25065
|
+
const H = Fk(T, A.contextMapping);
|
|
25070
25066
|
p({
|
|
25071
25067
|
...H,
|
|
25072
25068
|
prepopulateResponse: T
|
|
@@ -25143,51 +25139,51 @@ function Gn() {
|
|
|
25143
25139
|
throw new Error("usePageContext must be used within PageContextProvider");
|
|
25144
25140
|
return e;
|
|
25145
25141
|
}
|
|
25146
|
-
const
|
|
25142
|
+
const Ok = 5, sf = 1;
|
|
25147
25143
|
function $o(e) {
|
|
25148
|
-
return Number.isFinite(e) ? Math.min(
|
|
25144
|
+
return Number.isFinite(e) ? Math.min(Ok, Math.max(sf, Math.round(e))) : sf;
|
|
25149
25145
|
}
|
|
25150
|
-
function
|
|
25146
|
+
function Ik(e, t) {
|
|
25151
25147
|
const n = $o(t), r = Array.from({ length: n }, () => []);
|
|
25152
25148
|
return e.forEach((o, i) => {
|
|
25153
25149
|
const s = o.config, a = s.columnIndex !== void 0 ? Math.min(Math.max(0, s.columnIndex), n - 1) : i % n;
|
|
25154
25150
|
r[a].push(o);
|
|
25155
25151
|
}), r;
|
|
25156
25152
|
}
|
|
25157
|
-
function
|
|
25153
|
+
function Mk(e) {
|
|
25158
25154
|
return Number.isFinite(e) ? Math.min(100, Math.max(0, Math.round(e))) : 0;
|
|
25159
25155
|
}
|
|
25160
|
-
function
|
|
25156
|
+
function Lk(e, t) {
|
|
25161
25157
|
const n = Math.max(1, t), r = Math.min(100, Math.max(0, Math.round(e))), o = Math.floor(r / n), i = r - o * n;
|
|
25162
25158
|
return Array.from({ length: n }, (s, a) => o + (a < i ? 1 : 0));
|
|
25163
25159
|
}
|
|
25164
25160
|
function af(e) {
|
|
25165
|
-
return
|
|
25161
|
+
return Lk(100, $o(e));
|
|
25166
25162
|
}
|
|
25167
|
-
function
|
|
25163
|
+
function Dk(e) {
|
|
25168
25164
|
const t = e.trim(), n = /^(\d+(?:\.\d+)?)\s*%?$/.exec(t);
|
|
25169
|
-
return n ?
|
|
25165
|
+
return n ? Mk(Number(n[1])) : null;
|
|
25170
25166
|
}
|
|
25171
25167
|
function by(e, t) {
|
|
25172
25168
|
const n = $o(t), r = [];
|
|
25173
25169
|
for (let i = 0; i < n; i++) {
|
|
25174
|
-
const s =
|
|
25170
|
+
const s = Dk(e?.[i] ?? "");
|
|
25175
25171
|
if (s === null) return af(n);
|
|
25176
25172
|
r.push(s);
|
|
25177
25173
|
}
|
|
25178
25174
|
return r.reduce((i, s) => i + s, 0) !== 100 ? af(n) : r;
|
|
25179
25175
|
}
|
|
25180
|
-
function
|
|
25176
|
+
function Bk(e) {
|
|
25181
25177
|
return e === "sm" ? "gap-2" : e === "lg" ? "gap-6" : "gap-4";
|
|
25182
25178
|
}
|
|
25183
25179
|
function lf(e, t) {
|
|
25184
25180
|
return by(t, $o(e)).map((r) => `minmax(0, ${r}fr)`).join(" ");
|
|
25185
25181
|
}
|
|
25186
|
-
function
|
|
25182
|
+
function $k(e) {
|
|
25187
25183
|
return e.length ? e.map((t) => `minmax(0, ${t}fr)`).join(" ") : "minmax(0, 1fr)";
|
|
25188
25184
|
}
|
|
25189
|
-
function
|
|
25190
|
-
const o = $o(t), i =
|
|
25185
|
+
function jk(e, t, n, r) {
|
|
25186
|
+
const o = $o(t), i = Ik(e, o), s = by(n, o);
|
|
25191
25187
|
if (!(r?.collapseEmpty !== !1))
|
|
25192
25188
|
return {
|
|
25193
25189
|
columns: i,
|
|
@@ -25206,45 +25202,45 @@ function Dk(e, t, n, r) {
|
|
|
25206
25202
|
), d = 100 - l.reduce((p, m) => p + m, 0);
|
|
25207
25203
|
return d !== 0 && l.length > 0 && (l[0] += d), {
|
|
25208
25204
|
columns: c.map((p) => p.colChildren),
|
|
25209
|
-
gridTemplate:
|
|
25205
|
+
gridTemplate: $k(l),
|
|
25210
25206
|
sourceIndices: c.map((p) => p.index)
|
|
25211
25207
|
};
|
|
25212
25208
|
}
|
|
25213
25209
|
function Gc(e, t = "solid") {
|
|
25214
25210
|
return e ? t === "dashed" ? "rounded-md border border-dashed border-border" : "rounded-md border border-border" : "";
|
|
25215
25211
|
}
|
|
25216
|
-
function
|
|
25212
|
+
function zk(e) {
|
|
25217
25213
|
return L(
|
|
25218
25214
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25219
25215
|
e.showBorder && "p-3"
|
|
25220
25216
|
);
|
|
25221
25217
|
}
|
|
25222
|
-
function
|
|
25218
|
+
function Uk(e) {
|
|
25223
25219
|
return L(
|
|
25224
25220
|
Gc(e.showBorder, e.borderStyle ?? "solid"),
|
|
25225
25221
|
e.showBorder && "p-2"
|
|
25226
25222
|
);
|
|
25227
25223
|
}
|
|
25228
|
-
function
|
|
25224
|
+
function Vk(e, t) {
|
|
25229
25225
|
return e.columnBorders?.[t] !== void 0 ? !!e.columnBorders[t] : !!e.showColumnBorders;
|
|
25230
25226
|
}
|
|
25231
|
-
function
|
|
25232
|
-
const n =
|
|
25227
|
+
function Hk(e, t) {
|
|
25228
|
+
const n = Vk(e, t);
|
|
25233
25229
|
return L(
|
|
25234
25230
|
Gc(n, e.borderStyle ?? "dashed"),
|
|
25235
25231
|
n && "p-2"
|
|
25236
25232
|
);
|
|
25237
25233
|
}
|
|
25238
|
-
function
|
|
25234
|
+
function Wk(e) {
|
|
25239
25235
|
if (e)
|
|
25240
25236
|
return { minHeight: `${e}vh` };
|
|
25241
25237
|
}
|
|
25242
|
-
function
|
|
25238
|
+
function Gk({ widget: e, renderChildren: t }) {
|
|
25243
25239
|
const n = e.config, [r, o] = Lt.useState(n.defaultCollapsed ?? !1);
|
|
25244
25240
|
return /* @__PURE__ */ $(
|
|
25245
25241
|
"section",
|
|
25246
25242
|
{
|
|
25247
|
-
className: L("space-y-4",
|
|
25243
|
+
className: L("space-y-4", zk(n)),
|
|
25248
25244
|
"data-widget-id": e.id,
|
|
25249
25245
|
children: [
|
|
25250
25246
|
n.heading && /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: n.collapsible ? /* @__PURE__ */ f(
|
|
@@ -25262,8 +25258,8 @@ function Vk({ widget: e, renderChildren: t }) {
|
|
|
25262
25258
|
}
|
|
25263
25259
|
);
|
|
25264
25260
|
}
|
|
25265
|
-
function
|
|
25266
|
-
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i =
|
|
25261
|
+
function Kk({ widget: e, renderChildren: t }) {
|
|
25262
|
+
const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i = jk(e.children ?? [], r, n.columnWidths, {
|
|
25267
25263
|
collapseEmpty: o
|
|
25268
25264
|
});
|
|
25269
25265
|
return /* @__PURE__ */ f(
|
|
@@ -25271,12 +25267,12 @@ function Hk({ widget: e, renderChildren: t }) {
|
|
|
25271
25267
|
{
|
|
25272
25268
|
className: L(
|
|
25273
25269
|
"grid w-full min-w-0 items-stretch",
|
|
25274
|
-
|
|
25275
|
-
|
|
25270
|
+
Bk(n.gap),
|
|
25271
|
+
Uk(n)
|
|
25276
25272
|
),
|
|
25277
25273
|
style: {
|
|
25278
25274
|
gridTemplateColumns: i.gridTemplate,
|
|
25279
|
-
...
|
|
25275
|
+
...Wk(n.minHeightPercent)
|
|
25280
25276
|
},
|
|
25281
25277
|
"data-widget-id": e.id,
|
|
25282
25278
|
children: i.columns.map((s, a) => {
|
|
@@ -25286,7 +25282,7 @@ function Hk({ widget: e, renderChildren: t }) {
|
|
|
25286
25282
|
{
|
|
25287
25283
|
className: L(
|
|
25288
25284
|
"flex min-h-[inherit] min-w-0 flex-col space-y-4 overflow-hidden",
|
|
25289
|
-
|
|
25285
|
+
Hk(n, c)
|
|
25290
25286
|
),
|
|
25291
25287
|
children: t?.(s)
|
|
25292
25288
|
},
|
|
@@ -25296,7 +25292,7 @@ function Hk({ widget: e, renderChildren: t }) {
|
|
|
25296
25292
|
}
|
|
25297
25293
|
);
|
|
25298
25294
|
}
|
|
25299
|
-
function
|
|
25295
|
+
function qk({ widget: e, renderChildren: t }) {
|
|
25300
25296
|
const n = e.config, r = n.variant === "outline" ? "border bg-background" : n.variant === "elevated" ? "border bg-background shadow-md" : "border bg-card";
|
|
25301
25297
|
return /* @__PURE__ */ $("div", { className: L("rounded-lg p-4", r), "data-widget-id": e.id, children: [
|
|
25302
25298
|
(n.title || n.subtitle) && /* @__PURE__ */ $("div", { className: "mb-4", children: [
|
|
@@ -25313,7 +25309,7 @@ function vy(e, t) {
|
|
|
25313
25309
|
}
|
|
25314
25310
|
return e.text ?? "";
|
|
25315
25311
|
}
|
|
25316
|
-
function
|
|
25312
|
+
function Yk({ widget: e }) {
|
|
25317
25313
|
const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.level ?? 2, i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
|
|
25318
25314
|
return /* @__PURE__ */ f(
|
|
25319
25315
|
"div",
|
|
@@ -25326,11 +25322,11 @@ function Gk({ widget: e }) {
|
|
|
25326
25322
|
}
|
|
25327
25323
|
);
|
|
25328
25324
|
}
|
|
25329
|
-
function
|
|
25325
|
+
function Xk({ widget: e }) {
|
|
25330
25326
|
const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.preset === "caption" ? "text-sm text-muted-foreground" : t.preset === "small" ? "text-xs text-muted-foreground" : "text-base", i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
|
|
25331
25327
|
return /* @__PURE__ */ f("p", { className: L(o, i), "data-widget-id": e.id, children: r });
|
|
25332
25328
|
}
|
|
25333
|
-
function
|
|
25329
|
+
function Jk(e, t) {
|
|
25334
25330
|
return !e || typeof e != "string" ? e : e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25335
25331
|
const o = r.trim(), i = t[o];
|
|
25336
25332
|
return i == null ? "" : String(i);
|
|
@@ -25339,10 +25335,10 @@ function qk(e, t) {
|
|
|
25339
25335
|
function wy(e, t) {
|
|
25340
25336
|
const n = { ...e };
|
|
25341
25337
|
for (const [r, o] of Object.entries(n))
|
|
25342
|
-
typeof o == "string" && (n[r] =
|
|
25338
|
+
typeof o == "string" && (n[r] = Jk(o, t));
|
|
25343
25339
|
return n;
|
|
25344
25340
|
}
|
|
25345
|
-
function
|
|
25341
|
+
function Qk(e, t) {
|
|
25346
25342
|
return e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
|
|
25347
25343
|
const o = t[r.trim()];
|
|
25348
25344
|
return o != null ? String(o) : "";
|
|
@@ -25350,7 +25346,7 @@ function Yk(e, t) {
|
|
|
25350
25346
|
}
|
|
25351
25347
|
function Sy(e, t, n, r) {
|
|
25352
25348
|
if (e.type === "navigate") {
|
|
25353
|
-
const o =
|
|
25349
|
+
const o = Qk(e.href, t);
|
|
25354
25350
|
if (!o.trim()) return;
|
|
25355
25351
|
e.openIn === "new" ? window.open(o, "_blank", "noopener,noreferrer") : window.location.assign(o);
|
|
25356
25352
|
return;
|
|
@@ -25372,7 +25368,7 @@ function Sy(e, t, n, r) {
|
|
|
25372
25368
|
}
|
|
25373
25369
|
n(e, r, "click");
|
|
25374
25370
|
}
|
|
25375
|
-
function
|
|
25371
|
+
function Zk({ widget: e }) {
|
|
25376
25372
|
const t = e.config, { context: n, dispatchAction: r } = Gn();
|
|
25377
25373
|
return /* @__PURE__ */ f(
|
|
25378
25374
|
tn,
|
|
@@ -25385,25 +25381,25 @@ function Xk({ widget: e }) {
|
|
|
25385
25381
|
}
|
|
25386
25382
|
);
|
|
25387
25383
|
}
|
|
25388
|
-
const
|
|
25384
|
+
const eF = {
|
|
25389
25385
|
start: "justify-start",
|
|
25390
25386
|
center: "justify-center",
|
|
25391
25387
|
end: "justify-end",
|
|
25392
25388
|
"space-between": "justify-between"
|
|
25393
|
-
},
|
|
25389
|
+
}, tF = {
|
|
25394
25390
|
sm: "gap-2",
|
|
25395
25391
|
md: "gap-3",
|
|
25396
25392
|
lg: "gap-4"
|
|
25397
25393
|
};
|
|
25398
|
-
function
|
|
25394
|
+
function nF({ widget: e }) {
|
|
25399
25395
|
const t = e.config, { context: n, dispatchAction: r } = Gn(), o = t.buttons ?? [];
|
|
25400
25396
|
return /* @__PURE__ */ f(
|
|
25401
25397
|
"div",
|
|
25402
25398
|
{
|
|
25403
25399
|
className: L(
|
|
25404
25400
|
"flex flex-wrap items-center",
|
|
25405
|
-
|
|
25406
|
-
|
|
25401
|
+
eF[t.align ?? "start"],
|
|
25402
|
+
tF[t.gap ?? "sm"],
|
|
25407
25403
|
t.wrap === !1 && "flex-nowrap"
|
|
25408
25404
|
),
|
|
25409
25405
|
"data-widget-id": e.id,
|
|
@@ -25509,23 +25505,23 @@ function Xo(e, t) {
|
|
|
25509
25505
|
const n = et(e, t.path);
|
|
25510
25506
|
return n == null ? t.fallback ?? n : t.formatter ? $l(n, t.formatter) : n;
|
|
25511
25507
|
}
|
|
25512
|
-
function
|
|
25508
|
+
function rF(e, t) {
|
|
25513
25509
|
if (!t) return {};
|
|
25514
25510
|
const n = {};
|
|
25515
25511
|
for (const [r, o] of Object.entries(t))
|
|
25516
25512
|
o in e && (n[r] = e[o]);
|
|
25517
25513
|
return n;
|
|
25518
25514
|
}
|
|
25519
|
-
const
|
|
25515
|
+
const oF = {
|
|
25520
25516
|
default: "border bg-card",
|
|
25521
25517
|
success: "border border-green-200 bg-green-50 text-green-900",
|
|
25522
25518
|
warning: "border border-amber-200 bg-amber-50 text-amber-900",
|
|
25523
25519
|
danger: "border border-red-200 bg-red-50 text-red-900"
|
|
25524
|
-
},
|
|
25520
|
+
}, iF = {
|
|
25525
25521
|
rectangle: "rounded-lg",
|
|
25526
25522
|
square: "aspect-square rounded-lg",
|
|
25527
25523
|
circle: "aspect-square rounded-full"
|
|
25528
|
-
},
|
|
25524
|
+
}, sF = {
|
|
25529
25525
|
sm: "p-2 text-xs",
|
|
25530
25526
|
md: "p-4 text-sm",
|
|
25531
25527
|
lg: "p-6 text-base"
|
|
@@ -25533,12 +25529,12 @@ const tF = {
|
|
|
25533
25529
|
sm: "text-lg",
|
|
25534
25530
|
md: "text-2xl",
|
|
25535
25531
|
lg: "text-3xl"
|
|
25536
|
-
},
|
|
25532
|
+
}, aF = {
|
|
25537
25533
|
sm: "gap-2",
|
|
25538
25534
|
md: "gap-3",
|
|
25539
25535
|
lg: "gap-4"
|
|
25540
25536
|
};
|
|
25541
|
-
function
|
|
25537
|
+
function lF({
|
|
25542
25538
|
title: e,
|
|
25543
25539
|
value: t,
|
|
25544
25540
|
trend: n,
|
|
@@ -25554,9 +25550,9 @@ function iF({
|
|
|
25554
25550
|
"div",
|
|
25555
25551
|
{
|
|
25556
25552
|
className: L(
|
|
25557
|
-
|
|
25558
|
-
|
|
25559
|
-
|
|
25553
|
+
oF[r ?? "default"],
|
|
25554
|
+
iF[o ?? "rectangle"],
|
|
25555
|
+
sF[i ?? "md"],
|
|
25560
25556
|
u && "flex items-center justify-between gap-3"
|
|
25561
25557
|
),
|
|
25562
25558
|
children: [
|
|
@@ -25597,7 +25593,7 @@ function Ay({
|
|
|
25597
25593
|
return Xo(n, e.valueMapping);
|
|
25598
25594
|
})(), a = e.trendMapping && n !== void 0 && e.dataSource.mode !== "context" ? Xo(n, e.trendMapping) : e.trendMapping && e.dataSource.mode === "context" && e.trendMapping.path ? Xo({ value: n }, e.trendMapping) : null;
|
|
25599
25595
|
return /* @__PURE__ */ f(
|
|
25600
|
-
|
|
25596
|
+
lF,
|
|
25601
25597
|
{
|
|
25602
25598
|
title: e.title,
|
|
25603
25599
|
value: s,
|
|
@@ -25611,14 +25607,14 @@ function Ay({
|
|
|
25611
25607
|
}
|
|
25612
25608
|
);
|
|
25613
25609
|
}
|
|
25614
|
-
function
|
|
25610
|
+
function cF({ widget: e }) {
|
|
25615
25611
|
const t = e.config;
|
|
25616
25612
|
return /* @__PURE__ */ f("div", { "data-widget-id": e.id, children: /* @__PURE__ */ f(Ay, { stat: t, widgetId: e.id }) });
|
|
25617
25613
|
}
|
|
25618
|
-
function
|
|
25614
|
+
function uF({ stat: e, widgetId: t }) {
|
|
25619
25615
|
return /* @__PURE__ */ f(Ay, { stat: e, widgetId: `${t}-${e.id}` });
|
|
25620
25616
|
}
|
|
25621
|
-
function
|
|
25617
|
+
function dF({ widget: e }) {
|
|
25622
25618
|
const t = e.config, n = t.stats ?? [], r = t.columns ?? 1, o = t.direction === "horizontal";
|
|
25623
25619
|
return /* @__PURE__ */ f(
|
|
25624
25620
|
"div",
|
|
@@ -25630,13 +25626,13 @@ function lF({ widget: e }) {
|
|
|
25630
25626
|
!o && r === 2 && "grid-cols-2",
|
|
25631
25627
|
!o && r === 3 && "grid-cols-3",
|
|
25632
25628
|
!o && r === 4 && "grid-cols-4",
|
|
25633
|
-
|
|
25629
|
+
aF[t.gap ?? "md"]
|
|
25634
25630
|
),
|
|
25635
|
-
children: n.map((i) => /* @__PURE__ */ f(
|
|
25631
|
+
children: n.map((i) => /* @__PURE__ */ f(uF, { stat: i, widgetId: e.id }, i.id))
|
|
25636
25632
|
}
|
|
25637
25633
|
);
|
|
25638
25634
|
}
|
|
25639
|
-
function
|
|
25635
|
+
function fF({ widget: e }) {
|
|
25640
25636
|
const t = e.config, { setFilterValue: n } = Gn(), [r, o] = Ee("");
|
|
25641
25637
|
return wt(() => {
|
|
25642
25638
|
const i = t.debounceMs ?? 300, s = setTimeout(() => {
|
|
@@ -25655,7 +25651,7 @@ function cF({ widget: e }) {
|
|
|
25655
25651
|
}
|
|
25656
25652
|
);
|
|
25657
25653
|
}
|
|
25658
|
-
function
|
|
25654
|
+
function pF(e, t) {
|
|
25659
25655
|
if (!e) return [];
|
|
25660
25656
|
const n = t ? et(e, t) : e;
|
|
25661
25657
|
if (Array.isArray(n))
|
|
@@ -25667,14 +25663,14 @@ function uF(e, t) {
|
|
|
25667
25663
|
}
|
|
25668
25664
|
return [];
|
|
25669
25665
|
}
|
|
25670
|
-
function
|
|
25666
|
+
function mF({ widget: e }) {
|
|
25671
25667
|
const t = e.config, { dispatchAction: n } = Gn(), [r, o] = Ee(1), [i, s] = Ee(""), a = t.pagination?.pageSize ?? 10, { data: c, isLoading: u, isError: l } = xy({
|
|
25672
25668
|
widgetId: e.id,
|
|
25673
25669
|
dataSource: t.dataSource,
|
|
25674
25670
|
page: r,
|
|
25675
25671
|
pageSize: a,
|
|
25676
25672
|
search: t.search?.enabled ? i : void 0
|
|
25677
|
-
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p =
|
|
25673
|
+
}), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p = pF(c, d ?? "data.items"), m = (g, h) => {
|
|
25678
25674
|
const y = t.dataSource.responseMapping.find((v) => v.target === h);
|
|
25679
25675
|
return y ? Xo(g, y) : et(g, h) ?? "";
|
|
25680
25676
|
};
|
|
@@ -25762,9 +25758,9 @@ function dF({ widget: e }) {
|
|
|
25762
25758
|
] })
|
|
25763
25759
|
] });
|
|
25764
25760
|
}
|
|
25765
|
-
const
|
|
25766
|
-
function
|
|
25767
|
-
return e ??
|
|
25761
|
+
const hF = 75;
|
|
25762
|
+
function gF(e) {
|
|
25763
|
+
return e ?? hF;
|
|
25768
25764
|
}
|
|
25769
25765
|
function sl({
|
|
25770
25766
|
scrollBehavior: e = "page",
|
|
@@ -25774,7 +25770,7 @@ function sl({
|
|
|
25774
25770
|
}) {
|
|
25775
25771
|
if (e !== "contained")
|
|
25776
25772
|
return /* @__PURE__ */ f(an, { children: n });
|
|
25777
|
-
const o =
|
|
25773
|
+
const o = gF(t);
|
|
25778
25774
|
return /* @__PURE__ */ f(
|
|
25779
25775
|
"div",
|
|
25780
25776
|
{
|
|
@@ -25785,10 +25781,10 @@ function sl({
|
|
|
25785
25781
|
}
|
|
25786
25782
|
);
|
|
25787
25783
|
}
|
|
25788
|
-
function
|
|
25784
|
+
function yF(e, t, n) {
|
|
25789
25785
|
return ["embedded-form", e, t, n ?? "latest"];
|
|
25790
25786
|
}
|
|
25791
|
-
async function
|
|
25787
|
+
async function bF(e, t) {
|
|
25792
25788
|
try {
|
|
25793
25789
|
const n = await Fr.get(
|
|
25794
25790
|
`/api/form-builder/form-layouts/form/${e}`,
|
|
@@ -25802,12 +25798,12 @@ async function hF(e, t) {
|
|
|
25802
25798
|
return null;
|
|
25803
25799
|
}
|
|
25804
25800
|
}
|
|
25805
|
-
async function
|
|
25801
|
+
async function vF(e, t, n) {
|
|
25806
25802
|
const r = n !== void 0 ? `/api/form-builder/forms/${e}/render?version=${n}` : `/api/form-builder/forms/${e}/render`, o = await Fr.get(r, {
|
|
25807
25803
|
params: { clientId: t }
|
|
25808
25804
|
}), s = o.data?.data ?? o.data, a = s.form ?? s, c = s.fields ?? a.fields ?? [];
|
|
25809
25805
|
let u = s.layout ?? a.layout ?? null;
|
|
25810
|
-
(!u || typeof u.columns != "number") && (u = await
|
|
25806
|
+
(!u || typeof u.columns != "number") && (u = await bF(e, t));
|
|
25811
25807
|
const l = s.rules ?? a.rules ?? [], d = ss(
|
|
25812
25808
|
a,
|
|
25813
25809
|
c,
|
|
@@ -25819,7 +25815,7 @@ async function gF(e, t, n) {
|
|
|
25819
25815
|
) ?? ll(u);
|
|
25820
25816
|
return { schema: d, gridLayout: p };
|
|
25821
25817
|
}
|
|
25822
|
-
const
|
|
25818
|
+
const wF = 300 * 1e3;
|
|
25823
25819
|
function Cy({
|
|
25824
25820
|
formId: e,
|
|
25825
25821
|
mode: t = "fill",
|
|
@@ -25831,11 +25827,11 @@ function Cy({
|
|
|
25831
25827
|
maxHeightPercent: a
|
|
25832
25828
|
}) {
|
|
25833
25829
|
const { data: c, isLoading: u, isError: l, error: d } = qr({
|
|
25834
|
-
queryKey:
|
|
25835
|
-
queryFn: () =>
|
|
25836
|
-
staleTime:
|
|
25830
|
+
queryKey: yF(e, o, i),
|
|
25831
|
+
queryFn: () => vF(e, o, i),
|
|
25832
|
+
staleTime: wF
|
|
25837
25833
|
}), p = pe(
|
|
25838
|
-
() =>
|
|
25834
|
+
() => rF(r, n),
|
|
25839
25835
|
[r, n]
|
|
25840
25836
|
);
|
|
25841
25837
|
return u ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(Pr, {}) }) : l ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: d instanceof Error ? d.message : "Failed to load form" }) }) : c?.schema ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(
|
|
@@ -25849,7 +25845,7 @@ function Cy({
|
|
|
25849
25845
|
}
|
|
25850
25846
|
) }) : null;
|
|
25851
25847
|
}
|
|
25852
|
-
function
|
|
25848
|
+
function SF({ widget: e }) {
|
|
25853
25849
|
const t = e.config, { context: n, clientId: r } = Gn();
|
|
25854
25850
|
return t.formId ? /* @__PURE__ */ f(
|
|
25855
25851
|
Cy,
|
|
@@ -25864,7 +25860,7 @@ function bF({ widget: e }) {
|
|
|
25864
25860
|
}
|
|
25865
25861
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured" });
|
|
25866
25862
|
}
|
|
25867
|
-
function
|
|
25863
|
+
function xF({ widget: e }) {
|
|
25868
25864
|
const t = e.config, { context: n, getWorkflowState: r, clientId: o } = Gn(), i = String(n.moduleId ?? "");
|
|
25869
25865
|
if (!r)
|
|
25870
25866
|
return /* @__PURE__ */ $(
|
|
@@ -25889,7 +25885,7 @@ function vF({ widget: e }) {
|
|
|
25889
25885
|
u != null && (s[a] = String(u));
|
|
25890
25886
|
}
|
|
25891
25887
|
return /* @__PURE__ */ f(
|
|
25892
|
-
|
|
25888
|
+
wk,
|
|
25893
25889
|
{
|
|
25894
25890
|
getWorkflowState: r,
|
|
25895
25891
|
moduleId: i,
|
|
@@ -25899,7 +25895,7 @@ function vF({ widget: e }) {
|
|
|
25899
25895
|
}
|
|
25900
25896
|
);
|
|
25901
25897
|
}
|
|
25902
|
-
function
|
|
25898
|
+
function AF({ widget: e }) {
|
|
25903
25899
|
const t = e.config, { schema: n, dispatchAction: r } = Gn(), o = t.previousPage ?? n.navigation?.previousPage, i = t.nextPage ?? n.navigation?.nextPage, s = t.showPrevious !== !1 && !!o, a = t.showNext !== !1 && !!i, c = t.showBreadcrumbs && n.navigation?.breadcrumbs?.length, u = t.align === "center" ? "justify-center" : t.align === "right" ? "justify-end" : t.align === "space-between" ? "justify-between" : "justify-start", l = (d) => {
|
|
25904
25900
|
r(
|
|
25905
25901
|
{
|
|
@@ -25921,11 +25917,11 @@ function wF({ widget: e }) {
|
|
|
25921
25917
|
] })
|
|
25922
25918
|
] });
|
|
25923
25919
|
}
|
|
25924
|
-
function
|
|
25920
|
+
function CF(e, t) {
|
|
25925
25921
|
return e?.length ? e.filter((n) => n.config.tabId === t) : [];
|
|
25926
25922
|
}
|
|
25927
|
-
const
|
|
25928
|
-
function
|
|
25923
|
+
const EF = 1;
|
|
25924
|
+
function NF(e) {
|
|
25929
25925
|
switch (e) {
|
|
25930
25926
|
case "pills":
|
|
25931
25927
|
return "bg-transparent gap-1 p-0 h-auto";
|
|
@@ -25935,7 +25931,7 @@ function AF(e) {
|
|
|
25935
25931
|
return "";
|
|
25936
25932
|
}
|
|
25937
25933
|
}
|
|
25938
|
-
function
|
|
25934
|
+
function _F(e) {
|
|
25939
25935
|
switch (e) {
|
|
25940
25936
|
case "pills":
|
|
25941
25937
|
return "rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground";
|
|
@@ -25945,10 +25941,10 @@ function CF(e) {
|
|
|
25945
25941
|
return "";
|
|
25946
25942
|
}
|
|
25947
25943
|
}
|
|
25948
|
-
function
|
|
25944
|
+
function TF(e, t, n) {
|
|
25949
25945
|
return e ? new Set(n ? [n] : []) : new Set(t.map((r) => r.id));
|
|
25950
25946
|
}
|
|
25951
|
-
function
|
|
25947
|
+
function RF({
|
|
25952
25948
|
tab: e,
|
|
25953
25949
|
shouldRender: t,
|
|
25954
25950
|
pageContext: n,
|
|
@@ -25967,7 +25963,7 @@ function NF({
|
|
|
25967
25963
|
}
|
|
25968
25964
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured for this tab" }) : null;
|
|
25969
25965
|
}
|
|
25970
|
-
function
|
|
25966
|
+
function kF({
|
|
25971
25967
|
tab: e,
|
|
25972
25968
|
shouldLoad: t,
|
|
25973
25969
|
shouldRender: n,
|
|
@@ -25982,7 +25978,7 @@ function _F({
|
|
|
25982
25978
|
enabled: t && !!e.pageId,
|
|
25983
25979
|
queryFn: async () => hy(e.pageId, i, e.pageVersion)
|
|
25984
25980
|
});
|
|
25985
|
-
return n ? r >=
|
|
25981
|
+
return n ? r >= EF ? /* @__PURE__ */ f("div", { className: "rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive", children: "Nested page tabs not supported" }) : e.pageId ? l ? /* @__PURE__ */ f(Pr, {}) : d ? /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: p instanceof Error ? p.message : "Failed to load page" }) : u ? /* @__PURE__ */ f(
|
|
25986
25982
|
Ey,
|
|
25987
25983
|
{
|
|
25988
25984
|
page: u,
|
|
@@ -25995,17 +25991,17 @@ function _F({
|
|
|
25995
25991
|
}
|
|
25996
25992
|
) : null : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No page configured for this tab" }) : null;
|
|
25997
25993
|
}
|
|
25998
|
-
function
|
|
25994
|
+
function FF({
|
|
25999
25995
|
tab: e,
|
|
26000
25996
|
widgetChildren: t,
|
|
26001
25997
|
renderChildren: n
|
|
26002
25998
|
}) {
|
|
26003
|
-
const r =
|
|
25999
|
+
const r = CF(t, e.id);
|
|
26004
26000
|
return r.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground py-4", children: "No widgets in this tab" }) : /* @__PURE__ */ f(an, { children: n?.(r) });
|
|
26005
26001
|
}
|
|
26006
|
-
function
|
|
26002
|
+
function PF({ widget: e, renderChildren: t }) {
|
|
26007
26003
|
const n = e.config, { context: r, clientId: o, nestingDepth: i, onAction: s, getWorkflowState: a } = Gn(), c = n.tabs ?? [], u = n.defaultTabId ?? c[0]?.id ?? "", l = n.lazyLoad !== !1, [d, p] = Ee(u), [m, g] = Ee(
|
|
26008
|
-
() =>
|
|
26004
|
+
() => TF(l, c, u)
|
|
26009
26005
|
), h = (v) => {
|
|
26010
26006
|
g((w) => new Set(w).add(v)), p(v);
|
|
26011
26007
|
}, y = pe(() => !l, [l]);
|
|
@@ -26017,12 +26013,12 @@ function RF({ widget: e, renderChildren: t }) {
|
|
|
26017
26013
|
className: "w-full",
|
|
26018
26014
|
"data-widget-id": e.id,
|
|
26019
26015
|
children: [
|
|
26020
|
-
/* @__PURE__ */ f(ly, { className: L("mb-4",
|
|
26016
|
+
/* @__PURE__ */ f(ly, { className: L("mb-4", NF(n.variant)), children: c.map((v) => /* @__PURE__ */ f(
|
|
26021
26017
|
cy,
|
|
26022
26018
|
{
|
|
26023
26019
|
value: v.id,
|
|
26024
26020
|
disabled: v.disabled,
|
|
26025
|
-
className:
|
|
26021
|
+
className: _F(n.variant),
|
|
26026
26022
|
children: v.label
|
|
26027
26023
|
},
|
|
26028
26024
|
v.id
|
|
@@ -26037,7 +26033,7 @@ function RF({ widget: e, renderChildren: t }) {
|
|
|
26037
26033
|
className: L("mt-0", y && "data-[state=inactive]:hidden"),
|
|
26038
26034
|
children: [
|
|
26039
26035
|
v.contentType === "widgets" && C && /* @__PURE__ */ f(
|
|
26040
|
-
|
|
26036
|
+
FF,
|
|
26041
26037
|
{
|
|
26042
26038
|
tab: v,
|
|
26043
26039
|
widgetChildren: e.children ?? [],
|
|
@@ -26045,7 +26041,7 @@ function RF({ widget: e, renderChildren: t }) {
|
|
|
26045
26041
|
}
|
|
26046
26042
|
),
|
|
26047
26043
|
v.contentType === "form" && /* @__PURE__ */ f(
|
|
26048
|
-
|
|
26044
|
+
RF,
|
|
26049
26045
|
{
|
|
26050
26046
|
tab: v,
|
|
26051
26047
|
shouldRender: S,
|
|
@@ -26054,7 +26050,7 @@ function RF({ widget: e, renderChildren: t }) {
|
|
|
26054
26050
|
}
|
|
26055
26051
|
),
|
|
26056
26052
|
v.contentType === "page" && /* @__PURE__ */ f(
|
|
26057
|
-
|
|
26053
|
+
kF,
|
|
26058
26054
|
{
|
|
26059
26055
|
tab: v,
|
|
26060
26056
|
shouldLoad: S,
|
|
@@ -26075,24 +26071,24 @@ function RF({ widget: e, renderChildren: t }) {
|
|
|
26075
26071
|
}
|
|
26076
26072
|
);
|
|
26077
26073
|
}
|
|
26078
|
-
const
|
|
26079
|
-
section:
|
|
26080
|
-
columns:
|
|
26081
|
-
card:
|
|
26082
|
-
tab_group:
|
|
26083
|
-
heading:
|
|
26084
|
-
text:
|
|
26085
|
-
button:
|
|
26086
|
-
button_group:
|
|
26087
|
-
stat_card:
|
|
26088
|
-
stat_grid:
|
|
26089
|
-
data_table:
|
|
26090
|
-
search_filter:
|
|
26091
|
-
form_embed:
|
|
26092
|
-
workflow_embed:
|
|
26093
|
-
page_nav:
|
|
26074
|
+
const OF = {
|
|
26075
|
+
section: Gk,
|
|
26076
|
+
columns: Kk,
|
|
26077
|
+
card: qk,
|
|
26078
|
+
tab_group: PF,
|
|
26079
|
+
heading: Yk,
|
|
26080
|
+
text: Xk,
|
|
26081
|
+
button: Zk,
|
|
26082
|
+
button_group: nF,
|
|
26083
|
+
stat_card: cF,
|
|
26084
|
+
stat_grid: dF,
|
|
26085
|
+
data_table: mF,
|
|
26086
|
+
search_filter: fF,
|
|
26087
|
+
form_embed: SF,
|
|
26088
|
+
workflow_embed: xF,
|
|
26089
|
+
page_nav: AF
|
|
26094
26090
|
};
|
|
26095
|
-
function
|
|
26091
|
+
function IF({ widget: e }) {
|
|
26096
26092
|
return /* @__PURE__ */ $(
|
|
26097
26093
|
"div",
|
|
26098
26094
|
{
|
|
@@ -26111,16 +26107,16 @@ function FF({ widget: e }) {
|
|
|
26111
26107
|
}
|
|
26112
26108
|
);
|
|
26113
26109
|
}
|
|
26114
|
-
function
|
|
26110
|
+
function MF({
|
|
26115
26111
|
widget: e,
|
|
26116
26112
|
renderChildren: t
|
|
26117
26113
|
}) {
|
|
26118
|
-
const n =
|
|
26114
|
+
const n = OF[e.type] ?? IF;
|
|
26119
26115
|
return /* @__PURE__ */ f(n, { widget: e, renderChildren: t });
|
|
26120
26116
|
}
|
|
26121
26117
|
function uf(e, t) {
|
|
26122
26118
|
return e.map((n) => /* @__PURE__ */ f(
|
|
26123
|
-
|
|
26119
|
+
MF,
|
|
26124
26120
|
{
|
|
26125
26121
|
widget: n,
|
|
26126
26122
|
renderChildren: t
|
|
@@ -26139,10 +26135,10 @@ function Ey({
|
|
|
26139
26135
|
inheritContext: a = !1,
|
|
26140
26136
|
parentContext: c
|
|
26141
26137
|
}) {
|
|
26142
|
-
const u = pe(() =>
|
|
26138
|
+
const u = pe(() => Tk(e.schema), [e.schema]), l = (p) => uf(p, l), d = /* @__PURE__ */ $(
|
|
26143
26139
|
"div",
|
|
26144
26140
|
{
|
|
26145
|
-
className: L("studio-page-content min-h-0 min-w-0",
|
|
26141
|
+
className: L("studio-page-content min-h-0 min-w-0", Ek(u), o),
|
|
26146
26142
|
"data-page-id": e.id,
|
|
26147
26143
|
"data-nesting-depth": i,
|
|
26148
26144
|
children: [
|
|
@@ -26155,7 +26151,7 @@ function Ey({
|
|
|
26155
26151
|
}
|
|
26156
26152
|
);
|
|
26157
26153
|
return a && c ? d : /* @__PURE__ */ f(
|
|
26158
|
-
|
|
26154
|
+
Pk,
|
|
26159
26155
|
{
|
|
26160
26156
|
schema: u,
|
|
26161
26157
|
context: t,
|
|
@@ -26168,7 +26164,7 @@ function Ey({
|
|
|
26168
26164
|
}
|
|
26169
26165
|
);
|
|
26170
26166
|
}
|
|
26171
|
-
function
|
|
26167
|
+
function AP({
|
|
26172
26168
|
clientId: e,
|
|
26173
26169
|
tenantId: t,
|
|
26174
26170
|
moduleId: n,
|
|
@@ -26200,7 +26196,7 @@ function wP({
|
|
|
26200
26196
|
error: v
|
|
26201
26197
|
} = qr({
|
|
26202
26198
|
queryKey: ["page-resolve", e, t, n, r, o, i, a, u],
|
|
26203
|
-
queryFn: () =>
|
|
26199
|
+
queryFn: () => kk({
|
|
26204
26200
|
clientId: e,
|
|
26205
26201
|
tenantId: t,
|
|
26206
26202
|
moduleId: n,
|
|
@@ -26233,25 +26229,25 @@ function wP({
|
|
|
26233
26229
|
) : /* @__PURE__ */ f("div", { className: "rounded-md border p-4 text-sm text-muted-foreground", children: "No page found for the given scope or route." });
|
|
26234
26230
|
}
|
|
26235
26231
|
export {
|
|
26236
|
-
|
|
26232
|
+
SP as FIELD_TYPE_REGISTRY,
|
|
26237
26233
|
So as FORM_RENDERER_GRID_ROW_HEIGHT_DEFAULT,
|
|
26238
26234
|
ff as FORM_RENDERER_ROOT_CLASS,
|
|
26239
26235
|
Ar as FieldRenderer,
|
|
26240
26236
|
Xg as FormRenderer,
|
|
26241
26237
|
Ey as PageRenderer,
|
|
26242
26238
|
Of as RendererFieldLayoutContext,
|
|
26243
|
-
|
|
26244
|
-
|
|
26239
|
+
AP as StudioPageHost,
|
|
26240
|
+
wk as WorkflowStepsView,
|
|
26245
26241
|
Fs as appearanceControlClasses,
|
|
26246
26242
|
Bb as appearanceHasExplicitVerticalIntent,
|
|
26247
26243
|
Nb as appearanceTextareaClasses,
|
|
26248
26244
|
ss as backendToFormSchema,
|
|
26249
|
-
|
|
26250
|
-
|
|
26245
|
+
HF as cellAlignmentClasses,
|
|
26246
|
+
VF as cellVerticalJustifyClassesForField,
|
|
26251
26247
|
Gl as effectiveWidthPercent,
|
|
26252
26248
|
gy as executeDataSource,
|
|
26253
26249
|
hy as fetchPageRender,
|
|
26254
|
-
|
|
26250
|
+
UF as fieldBlockBoxStyle,
|
|
26255
26251
|
Lb as fieldBlockBoxStyleForField,
|
|
26256
26252
|
Pb as fieldBlockHorizontalPlacementClass,
|
|
26257
26253
|
Ob as fieldBlockHorizontalSelfClass,
|
|
@@ -26264,35 +26260,35 @@ export {
|
|
|
26264
26260
|
CC as getBusinessApiOrigin,
|
|
26265
26261
|
Zr as getClientId,
|
|
26266
26262
|
Wm as getRendererHostAuthHeaders,
|
|
26267
|
-
|
|
26268
|
-
|
|
26263
|
+
mP as getRendererHostViewerContext,
|
|
26264
|
+
WF as getRendererStore,
|
|
26269
26265
|
Fb as gridCellFlexClasses,
|
|
26270
26266
|
du as gridCellFlexClassesForField,
|
|
26271
26267
|
kb as gridCellOuterFlexClasses,
|
|
26272
26268
|
Ib as hasExplicitFieldBlockWidth,
|
|
26273
|
-
|
|
26269
|
+
bP as isAsyncSearchFieldProperties,
|
|
26274
26270
|
li as isIntrinsicWidthButtonField,
|
|
26275
|
-
|
|
26271
|
+
yP as normalizeWorkflowFormSchema,
|
|
26276
26272
|
Uc as normalizeWorkflowFormToRendererSchema,
|
|
26277
26273
|
ga as pageBuilderHttp,
|
|
26278
26274
|
Ff as parseContentVerticalAlign,
|
|
26279
26275
|
ma as parseMetadataJson,
|
|
26280
|
-
|
|
26276
|
+
pP as resetRendererHostAuth,
|
|
26281
26277
|
Er as resolveBusinessApiUrl,
|
|
26282
26278
|
Vl as resolveFormGridLayout,
|
|
26283
|
-
|
|
26279
|
+
kk as resolvePage,
|
|
26284
26280
|
us as resolvedGridCellVerticalJustifyClasses,
|
|
26285
26281
|
Zn as resolvedHorizontalAlign,
|
|
26286
26282
|
cs as resolvedVerticalAlign,
|
|
26287
26283
|
Pf as resolvedVerticalAlignForField,
|
|
26288
|
-
|
|
26289
|
-
|
|
26290
|
-
|
|
26291
|
-
|
|
26292
|
-
|
|
26293
|
-
|
|
26284
|
+
uP as setBusinessApiOrigin,
|
|
26285
|
+
hP as setFormBuilderAuthProvider,
|
|
26286
|
+
xP as setPageBuilderAuthProvider,
|
|
26287
|
+
fP as setRendererHostAuthHeaders,
|
|
26288
|
+
dP as setRendererHostViewerContext,
|
|
26289
|
+
wP as useFieldValidation,
|
|
26294
26290
|
fv as useFormRenderer,
|
|
26295
|
-
|
|
26291
|
+
vP as useFormValidation,
|
|
26296
26292
|
Os as useRendererFieldLayout,
|
|
26297
26293
|
Do as useRendererHostAuthStore
|
|
26298
26294
|
};
|