iq-line-form-builder-renderer 1.2.4 → 1.2.6

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.
@@ -3070,7 +3070,7 @@ function kf(e) {
3070
3070
  maxWidth: "100%"
3071
3071
  };
3072
3072
  }
3073
- function $F(e) {
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 jF = us;
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 zF(e, t) {
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 UF() {
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: GF,
11060
+ Axios: YF,
11061
11061
  AxiosError: gC,
11062
- CanceledError: KF,
11063
- isCancel: qF,
11064
- CancelToken: YF,
11065
- VERSION: XF,
11066
- all: JF,
11067
- Cancel: QF,
11068
- isAxiosError: ZF,
11069
- spread: eP,
11070
- toFormData: tP,
11071
- AxiosHeaders: nP,
11072
- HttpStatusCode: rP,
11073
- formToJSON: oP,
11074
- getAdapter: iP,
11075
- mergeConfig: sP
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 aP(e) {
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 lP(e) {
11964
+ function dP(e) {
11965
11965
  Do.getState()._setViewerContext(e);
11966
11966
  }
11967
- function cP(e) {
11967
+ function fP(e) {
11968
11968
  Do.getState()._setAuthHeaders(e);
11969
11969
  }
11970
- function uP() {
11970
+ function pP() {
11971
11971
  Do.getState()._reset();
11972
11972
  }
11973
- function dP() {
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 fP(e) {
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", [pP, ig] = cw(og, {
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 P_(e) {
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 O_(e) {
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 I_(e, t) {
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 (I_(t, n)) {
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 M_(e, t, n) {
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 L_ = /* @__PURE__ */ new Set(["all_items_summary", "invoice_discount", "grand_total"]);
17785
- function D_(e, t) {
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" && !L_.has(n.slotId)
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 B_(e, t, n) {
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 $_(e, t, n) {
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") => D_(t, l).reduce(
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 = B_(e, r, o.key);
17840
+ const i = z_(e, r, o.key);
17841
17841
  if (i?.kind === "formula") {
17842
- const s = $_(i.expression, n, r), a = e.columns.find((c) => c.key === o.key);
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 j_(e, t, n, r, o, i) {
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: M_(
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 z_(e, t, n, r) {
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 U_(e, t, n) {
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 V_(e) {
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: V_(e)
17991
+ style: G_(e)
17992
17992
  };
17993
17993
  }
17994
- function H_(e) {
17994
+ function K_(e) {
17995
17995
  return e ? !!(e.fontSize || e.bold || e.italic || e.underline || e.color?.trim()) : !1;
17996
17996
  }
17997
- function W_(e, t) {
17997
+ function q_(e, t) {
17998
17998
  if (!e && !t) return;
17999
17999
  const n = { ...e, ...t };
18000
- return H_(n) ? n : void 0;
18000
+ return K_(n) ? n : void 0;
18001
18001
  }
18002
- function G_(e, t) {
18003
- const n = e?.kind === "label" ? W_(t, e.cellStyle) : e?.cellStyle;
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 K_(e, t, n) {
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 q_ = ({
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" ? P_(P) : P === "" ? null : P, J = j_(
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 = K_(u, E, N), I = M?.kind === "static" ? M.row.labelStyle : M?.kind === "dynamic" ? M.block.labelStyle : void 0, z = G_(F, I);
18057
+ const J = l.find((D) => D.key === T), F = _d(u, E, N, T), B = Ga(Nd(F, J)), O = Ol(H, F, J), M = X_(u, E, N), I = M?.kind === "static" ? M.row.labelStyle : M?.kind === "dynamic" ? M.block.labelStyle : void 0, z = Y_(F, I);
18058
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 = O_(O);
18095
+ const ae = L_(O);
18100
18096
  return /* @__PURE__ */ $(
18101
18097
  "div",
18102
18098
  {
18103
18099
  className: L(
18104
- "flex w-full items-center gap-0.5",
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: "h-8 min-w-[2ch] max-w-full flex-1 border-0 bg-transparent tabular-nums shadow-none focus-visible:ring-1",
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 U_(e, t, n);
18225
+ return W_(e, t, n);
18230
18226
  }
18231
- const Y_ = ({
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 X_(e, t, n, r) {
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 J_ = ({
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: X_(T, d, m, g)
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 Q_ = [
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
- ], Z_ = Q_.reduce((e, t) => {
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
- }, {}), eT = "Separator", Rd = "horizontal", tT = ["horizontal", "vertical"], Pg = b.forwardRef((e, t) => {
18612
- const { decorative: n, orientation: r = Rd, ...o } = e, i = nT(r) ? r : Rd, a = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" };
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
- Z_.div,
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 = eT;
18624
- function nT(e) {
18625
- return tT.includes(e);
18619
+ Pg.displayName = rT;
18620
+ function iT(e) {
18621
+ return oT.includes(e);
18626
18622
  }
18627
- var rT = Pg;
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
- rT,
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 oT = ({
18644
+ const aT = ({
18649
18645
  field: e,
18650
18646
  className: t
18651
- }) => /* @__PURE__ */ f("div", { className: L("py-2", t), children: /* @__PURE__ */ f($c, {}) }), iT = {
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
- }, sT = ({
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 = iT[r], s = r;
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
- }, aT = {
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
- }, lT = {
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
- }, cT = ({ field: e, className: t }) => {
18686
- const n = e.properties, r = n?.position ?? "top-left", o = n?.headingLevel ?? "h3", i = n?.showHorizontalLine ?? !0, s = aT[r], a = lT[o], c = o;
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
- }, uT = ({
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 dT(e) {
18709
+ function mT(e) {
18714
18710
  if (Array.isArray(e)) return e;
18715
18711
  }
18716
- function fT(e, t) {
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 pT() {
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 mT(e, t) {
18739
- return dT(e) || fT(e, t) || hT(e, t) || pT();
18734
+ function yT(e, t) {
18735
+ return mT(e) || hT(e, t) || bT(e, t) || gT();
18740
18736
  }
18741
- function hT(e, t) {
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, gT = Object.isFrozen, yT = Object.getPrototypeOf, bT = Object.getOwnPropertyDescriptor;
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), vT = qt(Array.prototype.lastIndexOf), Pd = qt(Array.prototype.pop), go = qt(Array.prototype.push), wT = qt(Array.prototype.splice), gn = Array.isArray, Yo = qt(String.prototype.toLowerCase), qa = qt(String.prototype.toString), Od = qt(String.prototype.match), yo = qt(String.prototype.replace), Id = qt(String.prototype.indexOf), ST = qt(String.prototype.trim), xT = qt(Number.prototype.toString), AT = qt(Boolean.prototype.toString), Md = typeof BigInt > "u" ? null : qt(BigInt.prototype.toString), Ld = typeof Symbol > "u" ? null : qt(Symbol.prototype.toString), Dt = qt(Object.prototype.hasOwnProperty), Go = qt(Object.prototype.toString), sn = qt(RegExp.prototype.test), Qi = CT(TypeError);
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 CT(e) {
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 && (gT(t) || (t[r] = i), o = i);
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 ET(e) {
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 = mT(r, 2);
18801
+ var n = yT(r, 2);
18806
18802
  const o = n[0], i = n[1];
18807
- Dt(e, o) && (gn(i) ? t[o] = ET(i) : i && typeof i == "object" && i.constructor === Object ? t[o] = xn(i) : t[o] = i);
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 NT(e) {
18807
+ function RT(e) {
18812
18808
  switch (typeof e) {
18813
18809
  case "string":
18814
18810
  return e;
18815
18811
  case "number":
18816
- return xT(e);
18812
+ return ET(e);
18817
18813
  case "boolean":
18818
- return AT(e);
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 = bT(e, t);
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 = yT(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 _T(e) {
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"]), TT = vn(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ja = vn(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), RT = vn(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Bd = vn(["#text"]), $d = vn(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Qa = vn(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), jd = vn(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zi = vn(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), kT = Hn(/{{[\w\W]*|^[\w\W]*}}/g), FT = Hn(/<%[\w\W]*|^[\w\W]*%>/g), PT = Hn(/\${[\w\W]*/g), OT = Hn(/^data-[\-\w.\u00B7-\uFFFF]+$/), IT = Hn(/^aria-[\-\w]+$/), zd = Hn(
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
- ), MT = Hn(/^(?:\w+script|data):/i), LT = Hn(
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
- ), DT = Hn(/^html$/i), BT = Hn(/^[a-z][.\w]*(-[.\w]+)+$/i), bo = {
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
- }, $T = function() {
18872
+ }, UT = function() {
18877
18873
  return typeof window > "u" ? null : window;
18878
- }, jT = function(t, n) {
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] : $T();
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 = kT, O = FT, M = PT, I = OT, z = IT, D = MT, ae = LT, U = BT;
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 = _T(R.ALLOWED_URI_REGEXP) ? R.ALLOWED_URI_REGEXP : zd, ze = typeof R.NAMESPACE == "string" ? R.NAMESPACE : Nt, Vt = Dt(R, "MATHML_TEXT_INTEGRATION_POINTS") && R.MATHML_TEXT_INTEGRATION_POINTS && typeof R.MATHML_TEXT_INTEGRATION_POINTS == "object" ? xn(R.MATHML_TEXT_INTEGRATION_POINTS) : it({}, ["mi", "mo", "mn", "ms", "mtext"]), mn = Dt(R, "HTML_INTEGRATION_POINTS") && R.HTML_INTEGRATION_POINTS && typeof R.HTML_INTEGRATION_POINTS == "object" ? xn(R.HTML_INTEGRATION_POINTS) : it({}, ["annotation-xml"]);
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 = jT(g, o)), A !== null && typeof E == "string" && (E = A.createHTML(""));
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, ...TT]), un = it({}, [...Ja, ...RT]), ur = function(R) {
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 : ST(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 = NT(_e), typeof _e != "string"))
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(DT, Y.ownerDocument.doctype.name) && ($t = "<!DOCTYPE " + Y.ownerDocument.doctype.name + `>
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 = vT(F[_e], R);
19299
- return Y === -1 ? void 0 : wT(F[_e], Y, 1)[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 zT = Mg();
19309
- const UT = [
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
- ], VT = [
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 HT(e) {
19349
- return e ? zT.sanitize(e, {
19350
- ALLOWED_TAGS: [...UT],
19351
- ALLOWED_ATTR: [...VT],
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 WT(e, t, n = !1) {
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 GT(e) {
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 KT(e) {
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 qT(e) {
19390
+ function JT(e) {
19395
19391
  return to(e).textContent === void 0 || e.appearance?.hideLabel ? !1 : !!e.label?.trim();
19396
19392
  }
19397
- function YT(e) {
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 = WT(c, a, !0);
19416
- return GT(u);
19411
+ ), u = qT(c, a, !0);
19412
+ return YT(u);
19417
19413
  }
19418
- const XT = /\{api:[^}]+\}/, JT = /\{labelapi:[^}]+\}/;
19414
+ const ZT = /\{api:[^}]+\}/, eR = /\{labelapi:[^}]+\}/;
19419
19415
  function el(e) {
19420
- return XT.test(e);
19416
+ return ZT.test(e);
19421
19417
  }
19422
19418
  function tl(e) {
19423
- return JT.test(e);
19419
+ return eR.test(e);
19424
19420
  }
19425
- function QT(e) {
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 ZT(e, t) {
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 eR(e) {
19469
+ function rR(e) {
19474
19470
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
19475
19471
  }
19476
19472
  function Lg(e) {
19477
19473
  return e.map((t) => {
19478
- if (t.type === "text") return eR(t.value);
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 tR(e) {
19479
+ function oR(e) {
19484
19480
  return e ? Lg(jc(e)) : "";
19485
19481
  }
19486
- function nR(e, t) {
19487
- return e ? t === "markdown-lite" ? tR(e) : e : "";
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 rR = "text-label-html prose prose-sm max-w-none [&_p]:m-0 [&_p+p]:mt-2 [&_ul]:my-1 [&_ol]:my-1";
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 ?? YT(o), s = o.inlineFormat ?? "none";
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 = HT(nR(e, s));
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), rR);
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 = ZT(n, o);
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 oR(e) {
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 iR(e, t = {}) {
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 sR = ({
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
- () => oR(to(e)),
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 iR(u, {
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 = KT(e), C = qT(e), k = C && e.label ? e.label : "", A = e.description ?? "", E = QT({
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(oT, { field: e, className: c });
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(uT, { field: e, className: c });
19757
+ return /* @__PURE__ */ f(pT, { field: e, className: c });
19762
19758
  case "textLabel":
19763
19759
  return /* @__PURE__ */ f(
19764
- sR,
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
- Y_,
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
- J_,
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
- q_,
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
- }, aR = ({
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 lR(e) {
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 cR {
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 = lR(c);
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 uR = new cR();
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 dR = {
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
- }, fR = 300;
20390
- function pR() {
20391
- return { ...dR };
20385
+ }, hR = 300;
20386
+ function gR() {
20387
+ return { ...mR };
20392
20388
  }
20393
- function mR(e) {
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 hR(e) {
20401
- const t = pR();
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 = mR(M);
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 = hR(l) : 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 gR = 3;
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, gR);
20692
+ return zc(e).slice(0, vR);
20697
20693
  }
20698
- function yR(e, t) {
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 bR(e, t, n, r) {
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 vR(e, t, n) {
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 wR(e) {
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 SR(e, t, n) {
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 xR(e) {
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 AR(e, t) {
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 CR(e, t) {
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 ER(e, t) {
20836
- const n = e, r = ma(n.metadata), o = no(n.apidata), i = no(n.properties), s = $g({}, r, o, i), a = (n.name != null && String(n.name).trim() !== "" ? n.name : void 0) ?? (typeof n.fieldKey == "string" ? n.fieldKey : void 0) ?? (typeof n.key == "string" ? n.key : void 0), c = (n.type != null && String(n.type).trim() !== "" ? n.type : void 0) ?? (typeof n.fieldType == "string" ? n.fieldType : void 0), u = AR(n, r), l = CR(n, t), d = { ...n };
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 NR(e, t) {
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 (xR(n) || !o || !i) return !1;
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)) || _R(n));
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 _R(e) {
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 (NR(o))
20854
+ if (RR(o))
20859
20855
  return o;
20860
- const s = ER(o, i);
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 mP(e) {
20861
+ function yP(e) {
20866
20862
  return Uc(e);
20867
20863
  }
20868
- const TR = new Set(
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" && TR.has(n.trim().toUpperCase()));
20887
+ return !!(typeof n == "string" && FR.has(n.trim().toUpperCase()));
20892
20888
  }
20893
- function RR(e) {
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 kR(e, t) {
20903
- const n = RR(e);
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 FR(e) {
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 PR(e) {
20916
- return FR(e).some((t) => t.toLowerCase().includes("payment"));
20911
+ function MR(e) {
20912
+ return IR(e).some((t) => t.toLowerCase().includes("payment"));
20917
20913
  }
20918
- function OR(e) {
20914
+ function LR(e) {
20919
20915
  const t = e.properties, n = e.metadata;
20920
20916
  return !!(t?.mergeSuccessDataIdAsPaymentId || n?.mergeSuccessDataIdAsPaymentId);
20921
20917
  }
20922
- function IR(e, t) {
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 (OR(t) || r != null && typeof r == "object" && !Array.isArray(r) && Bl(r) || PR(t))
20925
+ if (LR(t) || r != null && typeof r == "object" && !Array.isArray(r) && Bl(r) || MR(t))
20930
20926
  return n;
20931
20927
  }
20932
- const MR = /* @__PURE__ */ new Set([
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 LR(e, t) {
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 DR(e, t) {
20956
- const n = e.properties, r = Array.isArray(n?.linkedFieldNames) ? n.linkedFieldNames : [], o = LR(
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 BR(e, t) {
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 = DR(e, n);
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 || MR.has(s.type) ? !1 : i.has(a);
20979
+ return !a || s.id === e.id || BR.has(s.type) ? !1 : i.has(a);
20984
20980
  });
20985
20981
  }
20986
- function $R(e, t, n) {
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 jR(e, t, n) {
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 zR(e, t) {
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 } = zR(s, t);
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 UR(e, t, n, r) {
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 VR(e, t) {
21063
+ function GR(e, t) {
21068
21064
  return e.maxRow + 1 + t * e.blockHeight;
21069
21065
  }
21070
- function HR(e, t, n, r) {
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 WR(e, t, n, r, o, i, s) {
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 GR(e, t, n, r) {
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 KR(e, t, n) {
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 qR(e, t, n, r) {
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 YR(e, t, n) {
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 XR(e, t, n) {
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 JR(e, t) {
21169
+ function ek(e, t) {
21174
21170
  return new Map([...e, ...t]);
21175
21171
  }
21176
- function QR(e, t, n) {
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 ZR = 2 * 6e4, Zd = 50;
21214
- class ek {
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 tk(e) {
21237
+ function ok(e) {
21242
21238
  return (e ?? "").trim() || "default";
21243
21239
  }
21244
21240
  function Gg(e) {
21245
- const t = tk(e.scope), n = String(e.formId ?? "").trim(), r = e.version === void 0 || e.version === null ? "latest" : String(e.version).trim();
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 ek(ZR);
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 uR.getForRendering(t), ee = ss(
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] = z_(vt, Ke, ge, Pt) : ge != null && (be[gt] = Ka(vt, ge, Pt));
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 = kR(He, {
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 = IR(V, j);
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 = $R(V, zt, tt);
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 = UR(
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 ? VR(Te, He) : j.baseOrder + 1 + He * Ne, me = ie[`${ee}__${De}`];
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
- () => yR(Vo.filter((_) => !_.parentId), Pn),
22219
+ () => wR(Vo.filter((_) => !_.parentId), Pn),
22224
22220
  [Vo, Pn]
22225
22221
  ), ba = Z(
22226
22222
  (_, V) => lo.some(
22227
- (j) => bR(_, V, j, Y)
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
- () => jR(
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
- () => HR(
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
- () => WR(
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
- () => JR(qc, Xc),
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
- () => YR(
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 vR(lo, Y, _);
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 _ = wR(nu);
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) => SR(_, V, Bi),
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
- () => XR(ru, Zc, ou),
22337
+ () => ZR(ru, Zc, ou),
22342
22338
  [ru, Zc, ou]
22343
22339
  ), Ry = pe(
22344
- () => QR(
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 = BR(_, zt), ce = ee.map((Be) => tt(Be)).filter(Boolean), Ne = Wg(ce, zt), Te = (Be, lt, Wt, De, He, Se, Ce) => {
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
- aR,
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 (GR(
22520
+ if (YR(
22525
22521
  _,
22526
22522
  j,
22527
22523
  Qc,
22528
22524
  pr
22529
22525
  )) {
22530
- const Se = KR(
22526
+ const Se = XR(
22531
22527
  _,
22532
22528
  j,
22533
22529
  pr
22534
22530
  );
22535
- return Se && qR(
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 nk(e, t) {
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", [rk] = Mn(ha, [
23322
+ var ha = "Tabs", [sk] = Mn(ha, [
23327
23323
  ca
23328
- ]), Jg = ca(), [ok, Wc] = rk(ha), Qg = b.forwardRef(
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
- ok,
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 ik = Qg, sk = ey, ak = ny, lk = oy;
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
- ik,
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
- sk,
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
- ak,
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
- lk,
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 ck({ className: e = "" }) {
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 uk() {
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 dk = 3e4, fk = 10 * 6e4, pk = 9e4, mk = 15 * 6e4;
23583
- function hk(e) {
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 gk(e, t) {
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 yk = ({
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: dk,
23639
- gcTime: fk
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: pk,
23669
- gcTime: mk,
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 : nk(N, r);
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 (hk(le)) {
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 = gk(qe.redirect_url.trim(), r);
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(ck, { className: d });
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(uk, {}) : P ? /* @__PURE__ */ f("div", { className: "rounded-lg border border-destructive/50 bg-destructive/10 px-4 py-3 text-sm text-destructive", children: P }) : Ae && !N?.form ? /* @__PURE__ */ f(
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 hP(e) {
23916
+ function bP(e) {
23921
23917
  return typeof e == "object" && e !== null && "apiEndpoint" in e;
23922
23918
  }
23923
- function gP({ formSchema: e }) {
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 yP({
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 = fR
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 bk() {
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 bP = {
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: bk()
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 vk(e) {
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 wk(e, t) {
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 Sk(e) {
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 xk(e) {
24888
+ function Ek(e) {
24893
24889
  const t = fy(e.container, e.layout);
24894
24890
  return L(
24895
- Sk(e.layout),
24896
- wk(t.maxWidth, e.layout),
24897
- vk(t.padding),
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 Ak() {
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 Ck(e) {
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 Ek(e) {
24930
+ function Tk(e) {
24935
24931
  const t = e;
24936
- return !t || typeof t != "object" ? Ak() : (t.version !== Rs && (t.version = Rs), Ck(t));
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 vP(e) {
24936
+ function xP(e) {
24941
24937
  my = e;
24942
24938
  }
24943
- function Nk() {
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: Nk()
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 _k(e) {
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 Tk(e, t) {
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 Rk({
25026
+ function Pk({
25031
25027
  schema: e,
25032
25028
  context: t = {},
25033
25029
  clientId: n,
@@ -25052,6 +25048,10 @@ function Rk({
25052
25048
  const E = JSON.stringify({
25053
25049
  path: A.api.path,
25054
25050
  method: A.api.method,
25051
+ queryParams: A.api.queryParams,
25052
+ headers: A.api.headers,
25053
+ bodyFields: A.api.bodyFields,
25054
+ auth: A.api.auth,
25055
25055
  mapping: A.contextMapping,
25056
25056
  bindings: e.dataBindings,
25057
25057
  context: h
@@ -25066,7 +25066,7 @@ function Rk({
25066
25066
  context: P
25067
25067
  });
25068
25068
  if (N) return;
25069
- const H = Tk(T, A.contextMapping);
25069
+ const H = Fk(T, A.contextMapping);
25070
25070
  p({
25071
25071
  ...H,
25072
25072
  prepopulateResponse: T
@@ -25143,51 +25143,51 @@ function Gn() {
25143
25143
  throw new Error("usePageContext must be used within PageContextProvider");
25144
25144
  return e;
25145
25145
  }
25146
- const kk = 5, sf = 1;
25146
+ const Ok = 5, sf = 1;
25147
25147
  function $o(e) {
25148
- return Number.isFinite(e) ? Math.min(kk, Math.max(sf, Math.round(e))) : sf;
25148
+ return Number.isFinite(e) ? Math.min(Ok, Math.max(sf, Math.round(e))) : sf;
25149
25149
  }
25150
- function Fk(e, t) {
25150
+ function Ik(e, t) {
25151
25151
  const n = $o(t), r = Array.from({ length: n }, () => []);
25152
25152
  return e.forEach((o, i) => {
25153
25153
  const s = o.config, a = s.columnIndex !== void 0 ? Math.min(Math.max(0, s.columnIndex), n - 1) : i % n;
25154
25154
  r[a].push(o);
25155
25155
  }), r;
25156
25156
  }
25157
- function Pk(e) {
25157
+ function Mk(e) {
25158
25158
  return Number.isFinite(e) ? Math.min(100, Math.max(0, Math.round(e))) : 0;
25159
25159
  }
25160
- function Ok(e, t) {
25160
+ function Lk(e, t) {
25161
25161
  const n = Math.max(1, t), r = Math.min(100, Math.max(0, Math.round(e))), o = Math.floor(r / n), i = r - o * n;
25162
25162
  return Array.from({ length: n }, (s, a) => o + (a < i ? 1 : 0));
25163
25163
  }
25164
25164
  function af(e) {
25165
- return Ok(100, $o(e));
25165
+ return Lk(100, $o(e));
25166
25166
  }
25167
- function Ik(e) {
25167
+ function Dk(e) {
25168
25168
  const t = e.trim(), n = /^(\d+(?:\.\d+)?)\s*%?$/.exec(t);
25169
- return n ? Pk(Number(n[1])) : null;
25169
+ return n ? Mk(Number(n[1])) : null;
25170
25170
  }
25171
25171
  function by(e, t) {
25172
25172
  const n = $o(t), r = [];
25173
25173
  for (let i = 0; i < n; i++) {
25174
- const s = Ik(e?.[i] ?? "");
25174
+ const s = Dk(e?.[i] ?? "");
25175
25175
  if (s === null) return af(n);
25176
25176
  r.push(s);
25177
25177
  }
25178
25178
  return r.reduce((i, s) => i + s, 0) !== 100 ? af(n) : r;
25179
25179
  }
25180
- function Mk(e) {
25180
+ function Bk(e) {
25181
25181
  return e === "sm" ? "gap-2" : e === "lg" ? "gap-6" : "gap-4";
25182
25182
  }
25183
25183
  function lf(e, t) {
25184
25184
  return by(t, $o(e)).map((r) => `minmax(0, ${r}fr)`).join(" ");
25185
25185
  }
25186
- function Lk(e) {
25186
+ function $k(e) {
25187
25187
  return e.length ? e.map((t) => `minmax(0, ${t}fr)`).join(" ") : "minmax(0, 1fr)";
25188
25188
  }
25189
- function Dk(e, t, n, r) {
25190
- const o = $o(t), i = Fk(e, o), s = by(n, o);
25189
+ function jk(e, t, n, r) {
25190
+ const o = $o(t), i = Ik(e, o), s = by(n, o);
25191
25191
  if (!(r?.collapseEmpty !== !1))
25192
25192
  return {
25193
25193
  columns: i,
@@ -25206,45 +25206,45 @@ function Dk(e, t, n, r) {
25206
25206
  ), d = 100 - l.reduce((p, m) => p + m, 0);
25207
25207
  return d !== 0 && l.length > 0 && (l[0] += d), {
25208
25208
  columns: c.map((p) => p.colChildren),
25209
- gridTemplate: Lk(l),
25209
+ gridTemplate: $k(l),
25210
25210
  sourceIndices: c.map((p) => p.index)
25211
25211
  };
25212
25212
  }
25213
25213
  function Gc(e, t = "solid") {
25214
25214
  return e ? t === "dashed" ? "rounded-md border border-dashed border-border" : "rounded-md border border-border" : "";
25215
25215
  }
25216
- function Bk(e) {
25216
+ function zk(e) {
25217
25217
  return L(
25218
25218
  Gc(e.showBorder, e.borderStyle ?? "solid"),
25219
25219
  e.showBorder && "p-3"
25220
25220
  );
25221
25221
  }
25222
- function $k(e) {
25222
+ function Uk(e) {
25223
25223
  return L(
25224
25224
  Gc(e.showBorder, e.borderStyle ?? "solid"),
25225
25225
  e.showBorder && "p-2"
25226
25226
  );
25227
25227
  }
25228
- function jk(e, t) {
25228
+ function Vk(e, t) {
25229
25229
  return e.columnBorders?.[t] !== void 0 ? !!e.columnBorders[t] : !!e.showColumnBorders;
25230
25230
  }
25231
- function zk(e, t) {
25232
- const n = jk(e, t);
25231
+ function Hk(e, t) {
25232
+ const n = Vk(e, t);
25233
25233
  return L(
25234
25234
  Gc(n, e.borderStyle ?? "dashed"),
25235
25235
  n && "p-2"
25236
25236
  );
25237
25237
  }
25238
- function Uk(e) {
25238
+ function Wk(e) {
25239
25239
  if (e)
25240
25240
  return { minHeight: `${e}vh` };
25241
25241
  }
25242
- function Vk({ widget: e, renderChildren: t }) {
25242
+ function Gk({ widget: e, renderChildren: t }) {
25243
25243
  const n = e.config, [r, o] = Lt.useState(n.defaultCollapsed ?? !1);
25244
25244
  return /* @__PURE__ */ $(
25245
25245
  "section",
25246
25246
  {
25247
- className: L("space-y-4", Bk(n)),
25247
+ className: L("space-y-4", zk(n)),
25248
25248
  "data-widget-id": e.id,
25249
25249
  children: [
25250
25250
  n.heading && /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: n.collapsible ? /* @__PURE__ */ f(
@@ -25262,8 +25262,8 @@ function Vk({ widget: e, renderChildren: t }) {
25262
25262
  }
25263
25263
  );
25264
25264
  }
25265
- function Hk({ widget: e, renderChildren: t }) {
25266
- const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i = Dk(e.children ?? [], r, n.columnWidths, {
25265
+ function Kk({ widget: e, renderChildren: t }) {
25266
+ const n = e.config, r = $o(n.columns ?? 2), o = n.collapseEmptyColumns !== !1, i = jk(e.children ?? [], r, n.columnWidths, {
25267
25267
  collapseEmpty: o
25268
25268
  });
25269
25269
  return /* @__PURE__ */ f(
@@ -25271,12 +25271,12 @@ function Hk({ widget: e, renderChildren: t }) {
25271
25271
  {
25272
25272
  className: L(
25273
25273
  "grid w-full min-w-0 items-stretch",
25274
- Mk(n.gap),
25275
- $k(n)
25274
+ Bk(n.gap),
25275
+ Uk(n)
25276
25276
  ),
25277
25277
  style: {
25278
25278
  gridTemplateColumns: i.gridTemplate,
25279
- ...Uk(n.minHeightPercent)
25279
+ ...Wk(n.minHeightPercent)
25280
25280
  },
25281
25281
  "data-widget-id": e.id,
25282
25282
  children: i.columns.map((s, a) => {
@@ -25286,7 +25286,7 @@ function Hk({ widget: e, renderChildren: t }) {
25286
25286
  {
25287
25287
  className: L(
25288
25288
  "flex min-h-[inherit] min-w-0 flex-col space-y-4 overflow-hidden",
25289
- zk(n, c)
25289
+ Hk(n, c)
25290
25290
  ),
25291
25291
  children: t?.(s)
25292
25292
  },
@@ -25296,7 +25296,7 @@ function Hk({ widget: e, renderChildren: t }) {
25296
25296
  }
25297
25297
  );
25298
25298
  }
25299
- function Wk({ widget: e, renderChildren: t }) {
25299
+ function qk({ widget: e, renderChildren: t }) {
25300
25300
  const n = e.config, r = n.variant === "outline" ? "border bg-background" : n.variant === "elevated" ? "border bg-background shadow-md" : "border bg-card";
25301
25301
  return /* @__PURE__ */ $("div", { className: L("rounded-lg p-4", r), "data-widget-id": e.id, children: [
25302
25302
  (n.title || n.subtitle) && /* @__PURE__ */ $("div", { className: "mb-4", children: [
@@ -25313,7 +25313,7 @@ function vy(e, t) {
25313
25313
  }
25314
25314
  return e.text ?? "";
25315
25315
  }
25316
- function Gk({ widget: e }) {
25316
+ function Yk({ widget: e }) {
25317
25317
  const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.level ?? 2, i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
25318
25318
  return /* @__PURE__ */ f(
25319
25319
  "div",
@@ -25326,11 +25326,11 @@ function Gk({ widget: e }) {
25326
25326
  }
25327
25327
  );
25328
25328
  }
25329
- function Kk({ widget: e }) {
25329
+ function Xk({ widget: e }) {
25330
25330
  const t = e.config, { context: n } = Gn(), r = vy(t, n), o = t.preset === "caption" ? "text-sm text-muted-foreground" : t.preset === "small" ? "text-xs text-muted-foreground" : "text-base", i = t.align === "center" ? "text-center" : t.align === "right" ? "text-right" : "text-left";
25331
25331
  return /* @__PURE__ */ f("p", { className: L(o, i), "data-widget-id": e.id, children: r });
25332
25332
  }
25333
- function qk(e, t) {
25333
+ function Jk(e, t) {
25334
25334
  return !e || typeof e != "string" ? e : e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
25335
25335
  const o = r.trim(), i = t[o];
25336
25336
  return i == null ? "" : String(i);
@@ -25339,10 +25339,10 @@ function qk(e, t) {
25339
25339
  function wy(e, t) {
25340
25340
  const n = { ...e };
25341
25341
  for (const [r, o] of Object.entries(n))
25342
- typeof o == "string" && (n[r] = qk(o, t));
25342
+ typeof o == "string" && (n[r] = Jk(o, t));
25343
25343
  return n;
25344
25344
  }
25345
- function Yk(e, t) {
25345
+ function Qk(e, t) {
25346
25346
  return e.replace(/\{\{([^}]+)\}\}/g, (n, r) => {
25347
25347
  const o = t[r.trim()];
25348
25348
  return o != null ? String(o) : "";
@@ -25350,7 +25350,7 @@ function Yk(e, t) {
25350
25350
  }
25351
25351
  function Sy(e, t, n, r) {
25352
25352
  if (e.type === "navigate") {
25353
- const o = Yk(e.href, t);
25353
+ const o = Qk(e.href, t);
25354
25354
  if (!o.trim()) return;
25355
25355
  e.openIn === "new" ? window.open(o, "_blank", "noopener,noreferrer") : window.location.assign(o);
25356
25356
  return;
@@ -25372,7 +25372,7 @@ function Sy(e, t, n, r) {
25372
25372
  }
25373
25373
  n(e, r, "click");
25374
25374
  }
25375
- function Xk({ widget: e }) {
25375
+ function Zk({ widget: e }) {
25376
25376
  const t = e.config, { context: n, dispatchAction: r } = Gn();
25377
25377
  return /* @__PURE__ */ f(
25378
25378
  tn,
@@ -25385,25 +25385,25 @@ function Xk({ widget: e }) {
25385
25385
  }
25386
25386
  );
25387
25387
  }
25388
- const Jk = {
25388
+ const eF = {
25389
25389
  start: "justify-start",
25390
25390
  center: "justify-center",
25391
25391
  end: "justify-end",
25392
25392
  "space-between": "justify-between"
25393
- }, Qk = {
25393
+ }, tF = {
25394
25394
  sm: "gap-2",
25395
25395
  md: "gap-3",
25396
25396
  lg: "gap-4"
25397
25397
  };
25398
- function Zk({ widget: e }) {
25398
+ function nF({ widget: e }) {
25399
25399
  const t = e.config, { context: n, dispatchAction: r } = Gn(), o = t.buttons ?? [];
25400
25400
  return /* @__PURE__ */ f(
25401
25401
  "div",
25402
25402
  {
25403
25403
  className: L(
25404
25404
  "flex flex-wrap items-center",
25405
- Jk[t.align ?? "start"],
25406
- Qk[t.gap ?? "sm"],
25405
+ eF[t.align ?? "start"],
25406
+ tF[t.gap ?? "sm"],
25407
25407
  t.wrap === !1 && "flex-nowrap"
25408
25408
  ),
25409
25409
  "data-widget-id": e.id,
@@ -25509,23 +25509,23 @@ function Xo(e, t) {
25509
25509
  const n = et(e, t.path);
25510
25510
  return n == null ? t.fallback ?? n : t.formatter ? $l(n, t.formatter) : n;
25511
25511
  }
25512
- function eF(e, t) {
25512
+ function rF(e, t) {
25513
25513
  if (!t) return {};
25514
25514
  const n = {};
25515
25515
  for (const [r, o] of Object.entries(t))
25516
25516
  o in e && (n[r] = e[o]);
25517
25517
  return n;
25518
25518
  }
25519
- const tF = {
25519
+ const oF = {
25520
25520
  default: "border bg-card",
25521
25521
  success: "border border-green-200 bg-green-50 text-green-900",
25522
25522
  warning: "border border-amber-200 bg-amber-50 text-amber-900",
25523
25523
  danger: "border border-red-200 bg-red-50 text-red-900"
25524
- }, nF = {
25524
+ }, iF = {
25525
25525
  rectangle: "rounded-lg",
25526
25526
  square: "aspect-square rounded-lg",
25527
25527
  circle: "aspect-square rounded-full"
25528
- }, rF = {
25528
+ }, sF = {
25529
25529
  sm: "p-2 text-xs",
25530
25530
  md: "p-4 text-sm",
25531
25531
  lg: "p-6 text-base"
@@ -25533,12 +25533,12 @@ const tF = {
25533
25533
  sm: "text-lg",
25534
25534
  md: "text-2xl",
25535
25535
  lg: "text-3xl"
25536
- }, oF = {
25536
+ }, aF = {
25537
25537
  sm: "gap-2",
25538
25538
  md: "gap-3",
25539
25539
  lg: "gap-4"
25540
25540
  };
25541
- function iF({
25541
+ function lF({
25542
25542
  title: e,
25543
25543
  value: t,
25544
25544
  trend: n,
@@ -25554,9 +25554,9 @@ function iF({
25554
25554
  "div",
25555
25555
  {
25556
25556
  className: L(
25557
- tF[r ?? "default"],
25558
- nF[o ?? "rectangle"],
25559
- rF[i ?? "md"],
25557
+ oF[r ?? "default"],
25558
+ iF[o ?? "rectangle"],
25559
+ sF[i ?? "md"],
25560
25560
  u && "flex items-center justify-between gap-3"
25561
25561
  ),
25562
25562
  children: [
@@ -25597,7 +25597,7 @@ function Ay({
25597
25597
  return Xo(n, e.valueMapping);
25598
25598
  })(), a = e.trendMapping && n !== void 0 && e.dataSource.mode !== "context" ? Xo(n, e.trendMapping) : e.trendMapping && e.dataSource.mode === "context" && e.trendMapping.path ? Xo({ value: n }, e.trendMapping) : null;
25599
25599
  return /* @__PURE__ */ f(
25600
- iF,
25600
+ lF,
25601
25601
  {
25602
25602
  title: e.title,
25603
25603
  value: s,
@@ -25611,14 +25611,14 @@ function Ay({
25611
25611
  }
25612
25612
  );
25613
25613
  }
25614
- function sF({ widget: e }) {
25614
+ function cF({ widget: e }) {
25615
25615
  const t = e.config;
25616
25616
  return /* @__PURE__ */ f("div", { "data-widget-id": e.id, children: /* @__PURE__ */ f(Ay, { stat: t, widgetId: e.id }) });
25617
25617
  }
25618
- function aF({ stat: e, widgetId: t }) {
25618
+ function uF({ stat: e, widgetId: t }) {
25619
25619
  return /* @__PURE__ */ f(Ay, { stat: e, widgetId: `${t}-${e.id}` });
25620
25620
  }
25621
- function lF({ widget: e }) {
25621
+ function dF({ widget: e }) {
25622
25622
  const t = e.config, n = t.stats ?? [], r = t.columns ?? 1, o = t.direction === "horizontal";
25623
25623
  return /* @__PURE__ */ f(
25624
25624
  "div",
@@ -25630,13 +25630,13 @@ function lF({ widget: e }) {
25630
25630
  !o && r === 2 && "grid-cols-2",
25631
25631
  !o && r === 3 && "grid-cols-3",
25632
25632
  !o && r === 4 && "grid-cols-4",
25633
- oF[t.gap ?? "md"]
25633
+ aF[t.gap ?? "md"]
25634
25634
  ),
25635
- children: n.map((i) => /* @__PURE__ */ f(aF, { stat: i, widgetId: e.id }, i.id))
25635
+ children: n.map((i) => /* @__PURE__ */ f(uF, { stat: i, widgetId: e.id }, i.id))
25636
25636
  }
25637
25637
  );
25638
25638
  }
25639
- function cF({ widget: e }) {
25639
+ function fF({ widget: e }) {
25640
25640
  const t = e.config, { setFilterValue: n } = Gn(), [r, o] = Ee("");
25641
25641
  return wt(() => {
25642
25642
  const i = t.debounceMs ?? 300, s = setTimeout(() => {
@@ -25655,7 +25655,7 @@ function cF({ widget: e }) {
25655
25655
  }
25656
25656
  );
25657
25657
  }
25658
- function uF(e, t) {
25658
+ function pF(e, t) {
25659
25659
  if (!e) return [];
25660
25660
  const n = t ? et(e, t) : e;
25661
25661
  if (Array.isArray(n))
@@ -25667,14 +25667,14 @@ function uF(e, t) {
25667
25667
  }
25668
25668
  return [];
25669
25669
  }
25670
- function dF({ widget: e }) {
25670
+ function mF({ widget: e }) {
25671
25671
  const t = e.config, { dispatchAction: n } = Gn(), [r, o] = Ee(1), [i, s] = Ee(""), a = t.pagination?.pageSize ?? 10, { data: c, isLoading: u, isError: l } = xy({
25672
25672
  widgetId: e.id,
25673
25673
  dataSource: t.dataSource,
25674
25674
  page: r,
25675
25675
  pageSize: a,
25676
25676
  search: t.search?.enabled ? i : void 0
25677
- }), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p = uF(c, d ?? "data.items"), m = (g, h) => {
25677
+ }), d = t.dataSource.mode === "pageApi" ? void 0 : t.dataSource.api?.itemsPath, p = pF(c, d ?? "data.items"), m = (g, h) => {
25678
25678
  const y = t.dataSource.responseMapping.find((v) => v.target === h);
25679
25679
  return y ? Xo(g, y) : et(g, h) ?? "";
25680
25680
  };
@@ -25762,9 +25762,9 @@ function dF({ widget: e }) {
25762
25762
  ] })
25763
25763
  ] });
25764
25764
  }
25765
- const fF = 75;
25766
- function pF(e) {
25767
- return e ?? fF;
25765
+ const hF = 75;
25766
+ function gF(e) {
25767
+ return e ?? hF;
25768
25768
  }
25769
25769
  function sl({
25770
25770
  scrollBehavior: e = "page",
@@ -25774,7 +25774,7 @@ function sl({
25774
25774
  }) {
25775
25775
  if (e !== "contained")
25776
25776
  return /* @__PURE__ */ f(an, { children: n });
25777
- const o = pF(t);
25777
+ const o = gF(t);
25778
25778
  return /* @__PURE__ */ f(
25779
25779
  "div",
25780
25780
  {
@@ -25785,10 +25785,10 @@ function sl({
25785
25785
  }
25786
25786
  );
25787
25787
  }
25788
- function mF(e, t, n) {
25788
+ function yF(e, t, n) {
25789
25789
  return ["embedded-form", e, t, n ?? "latest"];
25790
25790
  }
25791
- async function hF(e, t) {
25791
+ async function bF(e, t) {
25792
25792
  try {
25793
25793
  const n = await Fr.get(
25794
25794
  `/api/form-builder/form-layouts/form/${e}`,
@@ -25802,12 +25802,12 @@ async function hF(e, t) {
25802
25802
  return null;
25803
25803
  }
25804
25804
  }
25805
- async function gF(e, t, n) {
25805
+ async function vF(e, t, n) {
25806
25806
  const r = n !== void 0 ? `/api/form-builder/forms/${e}/render?version=${n}` : `/api/form-builder/forms/${e}/render`, o = await Fr.get(r, {
25807
25807
  params: { clientId: t }
25808
25808
  }), s = o.data?.data ?? o.data, a = s.form ?? s, c = s.fields ?? a.fields ?? [];
25809
25809
  let u = s.layout ?? a.layout ?? null;
25810
- (!u || typeof u.columns != "number") && (u = await hF(e, t));
25810
+ (!u || typeof u.columns != "number") && (u = await bF(e, t));
25811
25811
  const l = s.rules ?? a.rules ?? [], d = ss(
25812
25812
  a,
25813
25813
  c,
@@ -25819,7 +25819,7 @@ async function gF(e, t, n) {
25819
25819
  ) ?? ll(u);
25820
25820
  return { schema: d, gridLayout: p };
25821
25821
  }
25822
- const yF = 300 * 1e3;
25822
+ const wF = 300 * 1e3;
25823
25823
  function Cy({
25824
25824
  formId: e,
25825
25825
  mode: t = "fill",
@@ -25831,11 +25831,11 @@ function Cy({
25831
25831
  maxHeightPercent: a
25832
25832
  }) {
25833
25833
  const { data: c, isLoading: u, isError: l, error: d } = qr({
25834
- queryKey: mF(e, o, i),
25835
- queryFn: () => gF(e, o, i),
25836
- staleTime: yF
25834
+ queryKey: yF(e, o, i),
25835
+ queryFn: () => vF(e, o, i),
25836
+ staleTime: wF
25837
25837
  }), p = pe(
25838
- () => eF(r, n),
25838
+ () => rF(r, n),
25839
25839
  [r, n]
25840
25840
  );
25841
25841
  return u ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(Pr, {}) }) : l ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: d instanceof Error ? d.message : "Failed to load form" }) }) : c?.schema ? /* @__PURE__ */ f(sl, { scrollBehavior: s, maxHeightPercent: a, children: /* @__PURE__ */ f(
@@ -25849,7 +25849,7 @@ function Cy({
25849
25849
  }
25850
25850
  ) }) : null;
25851
25851
  }
25852
- function bF({ widget: e }) {
25852
+ function SF({ widget: e }) {
25853
25853
  const t = e.config, { context: n, clientId: r } = Gn();
25854
25854
  return t.formId ? /* @__PURE__ */ f(
25855
25855
  Cy,
@@ -25864,7 +25864,7 @@ function bF({ widget: e }) {
25864
25864
  }
25865
25865
  ) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured" });
25866
25866
  }
25867
- function vF({ widget: e }) {
25867
+ function xF({ widget: e }) {
25868
25868
  const t = e.config, { context: n, getWorkflowState: r, clientId: o } = Gn(), i = String(n.moduleId ?? "");
25869
25869
  if (!r)
25870
25870
  return /* @__PURE__ */ $(
@@ -25889,7 +25889,7 @@ function vF({ widget: e }) {
25889
25889
  u != null && (s[a] = String(u));
25890
25890
  }
25891
25891
  return /* @__PURE__ */ f(
25892
- yk,
25892
+ wk,
25893
25893
  {
25894
25894
  getWorkflowState: r,
25895
25895
  moduleId: i,
@@ -25899,7 +25899,7 @@ function vF({ widget: e }) {
25899
25899
  }
25900
25900
  );
25901
25901
  }
25902
- function wF({ widget: e }) {
25902
+ function AF({ widget: e }) {
25903
25903
  const t = e.config, { schema: n, dispatchAction: r } = Gn(), o = t.previousPage ?? n.navigation?.previousPage, i = t.nextPage ?? n.navigation?.nextPage, s = t.showPrevious !== !1 && !!o, a = t.showNext !== !1 && !!i, c = t.showBreadcrumbs && n.navigation?.breadcrumbs?.length, u = t.align === "center" ? "justify-center" : t.align === "right" ? "justify-end" : t.align === "space-between" ? "justify-between" : "justify-start", l = (d) => {
25904
25904
  r(
25905
25905
  {
@@ -25921,11 +25921,11 @@ function wF({ widget: e }) {
25921
25921
  ] })
25922
25922
  ] });
25923
25923
  }
25924
- function SF(e, t) {
25924
+ function CF(e, t) {
25925
25925
  return e?.length ? e.filter((n) => n.config.tabId === t) : [];
25926
25926
  }
25927
- const xF = 1;
25928
- function AF(e) {
25927
+ const EF = 1;
25928
+ function NF(e) {
25929
25929
  switch (e) {
25930
25930
  case "pills":
25931
25931
  return "bg-transparent gap-1 p-0 h-auto";
@@ -25935,7 +25935,7 @@ function AF(e) {
25935
25935
  return "";
25936
25936
  }
25937
25937
  }
25938
- function CF(e) {
25938
+ function _F(e) {
25939
25939
  switch (e) {
25940
25940
  case "pills":
25941
25941
  return "rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground";
@@ -25945,10 +25945,10 @@ function CF(e) {
25945
25945
  return "";
25946
25946
  }
25947
25947
  }
25948
- function EF(e, t, n) {
25948
+ function TF(e, t, n) {
25949
25949
  return e ? new Set(n ? [n] : []) : new Set(t.map((r) => r.id));
25950
25950
  }
25951
- function NF({
25951
+ function RF({
25952
25952
  tab: e,
25953
25953
  shouldRender: t,
25954
25954
  pageContext: n,
@@ -25967,7 +25967,7 @@ function NF({
25967
25967
  }
25968
25968
  ) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured for this tab" }) : null;
25969
25969
  }
25970
- function _F({
25970
+ function kF({
25971
25971
  tab: e,
25972
25972
  shouldLoad: t,
25973
25973
  shouldRender: n,
@@ -25982,7 +25982,7 @@ function _F({
25982
25982
  enabled: t && !!e.pageId,
25983
25983
  queryFn: async () => hy(e.pageId, i, e.pageVersion)
25984
25984
  });
25985
- return n ? r >= xF ? /* @__PURE__ */ f("div", { className: "rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive", children: "Nested page tabs not supported" }) : e.pageId ? l ? /* @__PURE__ */ f(Pr, {}) : d ? /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: p instanceof Error ? p.message : "Failed to load page" }) : u ? /* @__PURE__ */ f(
25985
+ 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
25986
  Ey,
25987
25987
  {
25988
25988
  page: u,
@@ -25995,17 +25995,17 @@ function _F({
25995
25995
  }
25996
25996
  ) : null : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No page configured for this tab" }) : null;
25997
25997
  }
25998
- function TF({
25998
+ function FF({
25999
25999
  tab: e,
26000
26000
  widgetChildren: t,
26001
26001
  renderChildren: n
26002
26002
  }) {
26003
- const r = SF(t, e.id);
26003
+ const r = CF(t, e.id);
26004
26004
  return r.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground py-4", children: "No widgets in this tab" }) : /* @__PURE__ */ f(an, { children: n?.(r) });
26005
26005
  }
26006
- function RF({ widget: e, renderChildren: t }) {
26006
+ function PF({ widget: e, renderChildren: t }) {
26007
26007
  const n = e.config, { context: r, clientId: o, nestingDepth: i, onAction: s, getWorkflowState: a } = Gn(), c = n.tabs ?? [], u = n.defaultTabId ?? c[0]?.id ?? "", l = n.lazyLoad !== !1, [d, p] = Ee(u), [m, g] = Ee(
26008
- () => EF(l, c, u)
26008
+ () => TF(l, c, u)
26009
26009
  ), h = (v) => {
26010
26010
  g((w) => new Set(w).add(v)), p(v);
26011
26011
  }, y = pe(() => !l, [l]);
@@ -26017,12 +26017,12 @@ function RF({ widget: e, renderChildren: t }) {
26017
26017
  className: "w-full",
26018
26018
  "data-widget-id": e.id,
26019
26019
  children: [
26020
- /* @__PURE__ */ f(ly, { className: L("mb-4", AF(n.variant)), children: c.map((v) => /* @__PURE__ */ f(
26020
+ /* @__PURE__ */ f(ly, { className: L("mb-4", NF(n.variant)), children: c.map((v) => /* @__PURE__ */ f(
26021
26021
  cy,
26022
26022
  {
26023
26023
  value: v.id,
26024
26024
  disabled: v.disabled,
26025
- className: CF(n.variant),
26025
+ className: _F(n.variant),
26026
26026
  children: v.label
26027
26027
  },
26028
26028
  v.id
@@ -26037,7 +26037,7 @@ function RF({ widget: e, renderChildren: t }) {
26037
26037
  className: L("mt-0", y && "data-[state=inactive]:hidden"),
26038
26038
  children: [
26039
26039
  v.contentType === "widgets" && C && /* @__PURE__ */ f(
26040
- TF,
26040
+ FF,
26041
26041
  {
26042
26042
  tab: v,
26043
26043
  widgetChildren: e.children ?? [],
@@ -26045,7 +26045,7 @@ function RF({ widget: e, renderChildren: t }) {
26045
26045
  }
26046
26046
  ),
26047
26047
  v.contentType === "form" && /* @__PURE__ */ f(
26048
- NF,
26048
+ RF,
26049
26049
  {
26050
26050
  tab: v,
26051
26051
  shouldRender: S,
@@ -26054,7 +26054,7 @@ function RF({ widget: e, renderChildren: t }) {
26054
26054
  }
26055
26055
  ),
26056
26056
  v.contentType === "page" && /* @__PURE__ */ f(
26057
- _F,
26057
+ kF,
26058
26058
  {
26059
26059
  tab: v,
26060
26060
  shouldLoad: S,
@@ -26075,24 +26075,24 @@ function RF({ widget: e, renderChildren: t }) {
26075
26075
  }
26076
26076
  );
26077
26077
  }
26078
- const kF = {
26079
- section: Vk,
26080
- columns: Hk,
26081
- card: Wk,
26082
- tab_group: RF,
26083
- heading: Gk,
26084
- text: Kk,
26085
- button: Xk,
26086
- button_group: Zk,
26087
- stat_card: sF,
26088
- stat_grid: lF,
26089
- data_table: dF,
26090
- search_filter: cF,
26091
- form_embed: bF,
26092
- workflow_embed: vF,
26093
- page_nav: wF
26078
+ const OF = {
26079
+ section: Gk,
26080
+ columns: Kk,
26081
+ card: qk,
26082
+ tab_group: PF,
26083
+ heading: Yk,
26084
+ text: Xk,
26085
+ button: Zk,
26086
+ button_group: nF,
26087
+ stat_card: cF,
26088
+ stat_grid: dF,
26089
+ data_table: mF,
26090
+ search_filter: fF,
26091
+ form_embed: SF,
26092
+ workflow_embed: xF,
26093
+ page_nav: AF
26094
26094
  };
26095
- function FF({ widget: e }) {
26095
+ function IF({ widget: e }) {
26096
26096
  return /* @__PURE__ */ $(
26097
26097
  "div",
26098
26098
  {
@@ -26111,16 +26111,16 @@ function FF({ widget: e }) {
26111
26111
  }
26112
26112
  );
26113
26113
  }
26114
- function PF({
26114
+ function MF({
26115
26115
  widget: e,
26116
26116
  renderChildren: t
26117
26117
  }) {
26118
- const n = kF[e.type] ?? FF;
26118
+ const n = OF[e.type] ?? IF;
26119
26119
  return /* @__PURE__ */ f(n, { widget: e, renderChildren: t });
26120
26120
  }
26121
26121
  function uf(e, t) {
26122
26122
  return e.map((n) => /* @__PURE__ */ f(
26123
- PF,
26123
+ MF,
26124
26124
  {
26125
26125
  widget: n,
26126
26126
  renderChildren: t
@@ -26139,10 +26139,10 @@ function Ey({
26139
26139
  inheritContext: a = !1,
26140
26140
  parentContext: c
26141
26141
  }) {
26142
- const u = pe(() => Ek(e.schema), [e.schema]), l = (p) => uf(p, l), d = /* @__PURE__ */ $(
26142
+ const u = pe(() => Tk(e.schema), [e.schema]), l = (p) => uf(p, l), d = /* @__PURE__ */ $(
26143
26143
  "div",
26144
26144
  {
26145
- className: L("studio-page-content min-h-0 min-w-0", xk(u), o),
26145
+ className: L("studio-page-content min-h-0 min-w-0", Ek(u), o),
26146
26146
  "data-page-id": e.id,
26147
26147
  "data-nesting-depth": i,
26148
26148
  children: [
@@ -26155,7 +26155,7 @@ function Ey({
26155
26155
  }
26156
26156
  );
26157
26157
  return a && c ? d : /* @__PURE__ */ f(
26158
- Rk,
26158
+ Pk,
26159
26159
  {
26160
26160
  schema: u,
26161
26161
  context: t,
@@ -26168,7 +26168,7 @@ function Ey({
26168
26168
  }
26169
26169
  );
26170
26170
  }
26171
- function wP({
26171
+ function AP({
26172
26172
  clientId: e,
26173
26173
  tenantId: t,
26174
26174
  moduleId: n,
@@ -26200,7 +26200,7 @@ function wP({
26200
26200
  error: v
26201
26201
  } = qr({
26202
26202
  queryKey: ["page-resolve", e, t, n, r, o, i, a, u],
26203
- queryFn: () => _k({
26203
+ queryFn: () => kk({
26204
26204
  clientId: e,
26205
26205
  tenantId: t,
26206
26206
  moduleId: n,
@@ -26233,25 +26233,25 @@ function wP({
26233
26233
  ) : /* @__PURE__ */ f("div", { className: "rounded-md border p-4 text-sm text-muted-foreground", children: "No page found for the given scope or route." });
26234
26234
  }
26235
26235
  export {
26236
- bP as FIELD_TYPE_REGISTRY,
26236
+ SP as FIELD_TYPE_REGISTRY,
26237
26237
  So as FORM_RENDERER_GRID_ROW_HEIGHT_DEFAULT,
26238
26238
  ff as FORM_RENDERER_ROOT_CLASS,
26239
26239
  Ar as FieldRenderer,
26240
26240
  Xg as FormRenderer,
26241
26241
  Ey as PageRenderer,
26242
26242
  Of as RendererFieldLayoutContext,
26243
- wP as StudioPageHost,
26244
- yk as WorkflowStepsView,
26243
+ AP as StudioPageHost,
26244
+ wk as WorkflowStepsView,
26245
26245
  Fs as appearanceControlClasses,
26246
26246
  Bb as appearanceHasExplicitVerticalIntent,
26247
26247
  Nb as appearanceTextareaClasses,
26248
26248
  ss as backendToFormSchema,
26249
- zF as cellAlignmentClasses,
26250
- jF as cellVerticalJustifyClassesForField,
26249
+ HF as cellAlignmentClasses,
26250
+ VF as cellVerticalJustifyClassesForField,
26251
26251
  Gl as effectiveWidthPercent,
26252
26252
  gy as executeDataSource,
26253
26253
  hy as fetchPageRender,
26254
- $F as fieldBlockBoxStyle,
26254
+ UF as fieldBlockBoxStyle,
26255
26255
  Lb as fieldBlockBoxStyleForField,
26256
26256
  Pb as fieldBlockHorizontalPlacementClass,
26257
26257
  Ob as fieldBlockHorizontalSelfClass,
@@ -26264,35 +26264,35 @@ export {
26264
26264
  CC as getBusinessApiOrigin,
26265
26265
  Zr as getClientId,
26266
26266
  Wm as getRendererHostAuthHeaders,
26267
- dP as getRendererHostViewerContext,
26268
- UF as getRendererStore,
26267
+ mP as getRendererHostViewerContext,
26268
+ WF as getRendererStore,
26269
26269
  Fb as gridCellFlexClasses,
26270
26270
  du as gridCellFlexClassesForField,
26271
26271
  kb as gridCellOuterFlexClasses,
26272
26272
  Ib as hasExplicitFieldBlockWidth,
26273
- hP as isAsyncSearchFieldProperties,
26273
+ bP as isAsyncSearchFieldProperties,
26274
26274
  li as isIntrinsicWidthButtonField,
26275
- mP as normalizeWorkflowFormSchema,
26275
+ yP as normalizeWorkflowFormSchema,
26276
26276
  Uc as normalizeWorkflowFormToRendererSchema,
26277
26277
  ga as pageBuilderHttp,
26278
26278
  Ff as parseContentVerticalAlign,
26279
26279
  ma as parseMetadataJson,
26280
- uP as resetRendererHostAuth,
26280
+ pP as resetRendererHostAuth,
26281
26281
  Er as resolveBusinessApiUrl,
26282
26282
  Vl as resolveFormGridLayout,
26283
- _k as resolvePage,
26283
+ kk as resolvePage,
26284
26284
  us as resolvedGridCellVerticalJustifyClasses,
26285
26285
  Zn as resolvedHorizontalAlign,
26286
26286
  cs as resolvedVerticalAlign,
26287
26287
  Pf as resolvedVerticalAlignForField,
26288
- aP as setBusinessApiOrigin,
26289
- fP as setFormBuilderAuthProvider,
26290
- vP as setPageBuilderAuthProvider,
26291
- cP as setRendererHostAuthHeaders,
26292
- lP as setRendererHostViewerContext,
26293
- yP as useFieldValidation,
26288
+ uP as setBusinessApiOrigin,
26289
+ hP as setFormBuilderAuthProvider,
26290
+ xP as setPageBuilderAuthProvider,
26291
+ fP as setRendererHostAuthHeaders,
26292
+ dP as setRendererHostViewerContext,
26293
+ wP as useFieldValidation,
26294
26294
  fv as useFormRenderer,
26295
- gP as useFormValidation,
26295
+ vP as useFormValidation,
26296
26296
  Os as useRendererFieldLayout,
26297
26297
  Do as useRendererHostAuthStore
26298
26298
  };