@overmap-ai/forms 1.0.40-file-component-improvements.0 → 1.0.40-file-component-improvements.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/forms.js CHANGED
@@ -2,7 +2,7 @@ var zs = Object.defineProperty;
2
2
  var Us = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var R = (r, e, t) => Us(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsxs as _, Fragment as Le, jsx as p } from "react/jsx-runtime";
5
- import { Card as pt, LuIcon as T, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Ft, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
5
+ import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Ft, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
6
6
  import { cx as Ct, cva as ri } from "class-variance-authority";
7
7
  import { forwardRef as ni, createElement as kn, memo as L, createContext as jr, useState as Xe, useEffect as dt, useContext as Xs, useCallback as b, Fragment as ii, use as ce, useMemo as se, useRef as Yr, useLayoutEffect as Ws } from "react";
8
8
  import "@xyflow/react/dist/style.css";
@@ -653,10 +653,10 @@ const Fc = [
653
653
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
654
654
  ], It = q("x", Fc), so = L((r) => {
655
655
  const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Le, { children: [
656
- /* @__PURE__ */ p(T, { icon: bl, color: "var(--base-a11)" }),
656
+ /* @__PURE__ */ p(N, { icon: bl, color: "var(--base-a11)" }),
657
657
  /* @__PURE__ */ p(pe, { accentColor: "base", className: "truncate", size: o, children: i })
658
658
  ] }) : t ? /* @__PURE__ */ _(Le, { children: [
659
- /* @__PURE__ */ p(T, { icon: Yl, color: "var(--base-a11)" }),
659
+ /* @__PURE__ */ p(N, { icon: Yl, color: "var(--base-a11)" }),
660
660
  /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: t.name })
661
661
  ] }) : /* @__PURE__ */ p(Le, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
662
662
  return /* @__PURE__ */ _(pt, { className: Ct(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
@@ -796,11 +796,11 @@ const uo = jr(() => {
796
796
  variant: "ghost",
797
797
  children: [
798
798
  /* @__PURE__ */ _(Xt.Root, { children: [
799
- /* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(T, { icon: Ja }) }) }),
799
+ /* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(N, { icon: Ja }) }) }),
800
800
  /* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Download" })
801
801
  ] }),
802
802
  /* @__PURE__ */ p(Ft, { orientation: "vertical", size: "sm" }),
803
- /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(T, { icon: It }) }) })
803
+ /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon: It }) }) })
804
804
  ]
805
805
  }
806
806
  ),
@@ -902,8 +902,8 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
902
902
  ), C = b(
903
903
  (w) => {
904
904
  if (!w.destination) return;
905
- const S = w.source.index, O = w.destination.index, N = Array.from(n), [F] = N.splice(S, 1);
906
- N.splice(O, 0, F), h(N);
905
+ const S = w.source.index, O = w.destination.index, T = Array.from(n), [F] = T.splice(S, 1);
906
+ T.splice(O, 0, F), h(T);
907
907
  },
908
908
  [h, n]
909
909
  ), A = b(() => {
@@ -944,7 +944,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
944
944
  "aria-label": "Add option",
945
945
  disabled: !!d || l,
946
946
  onClick: g,
947
- children: /* @__PURE__ */ p(T, { icon: ft })
947
+ children: /* @__PURE__ */ p(N, { icon: ft })
948
948
  }
949
949
  )
950
950
  ] }),
@@ -961,11 +961,11 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
961
961
  draggableId: `${S}-draggable`,
962
962
  index: O,
963
963
  isDragDisabled: l,
964
- children: ({ draggableProps: N, dragHandleProps: F, innerRef: z }) => /* @__PURE__ */ _(
964
+ children: ({ draggableProps: T, dragHandleProps: F, innerRef: z }) => /* @__PURE__ */ _(
965
965
  ye,
966
966
  {
967
967
  ...F,
968
- ...N,
968
+ ...T,
969
969
  ref: z,
970
970
  className: "flex items-center justify-between gap-2",
971
971
  accentColor: "base",
@@ -991,7 +991,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
991
991
  onClick: () => {
992
992
  m(O);
993
993
  },
994
- children: /* @__PURE__ */ p(T, { icon: It })
994
+ children: /* @__PURE__ */ p(N, { icon: It })
995
995
  }
996
996
  )
997
997
  ]
@@ -1158,7 +1158,7 @@ const po = L((r) => {
1158
1158
  accentColor: "base",
1159
1159
  variant: "surface",
1160
1160
  disabled: l,
1161
- children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(T, { icon: et }) })
1161
+ children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(N, { icon: et }) })
1162
1162
  }
1163
1163
  )
1164
1164
  }
@@ -1514,7 +1514,7 @@ const xo = L((r) => {
1514
1514
  {
1515
1515
  className: "flex min-w-0 items-center gap-2",
1516
1516
  children: [
1517
- /* @__PURE__ */ p(En.Item, { value: d.value, onBlur: u, children: /* @__PURE__ */ p(En.ItemIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }) }),
1517
+ /* @__PURE__ */ p(En.Item, { value: d.value, onBlur: u, children: /* @__PURE__ */ p(En.ItemIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }) }),
1518
1518
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: d.label })
1519
1519
  ]
1520
1520
  },
@@ -1618,7 +1618,7 @@ const yo = L((r) => {
1618
1618
  month: "2-digit",
1619
1619
  day: "2-digit"
1620
1620
  }) : "yyyy-mm-dd" }),
1621
- /* @__PURE__ */ p(T, { icon: Zr })
1621
+ /* @__PURE__ */ p(N, { icon: Zr })
1622
1622
  ]
1623
1623
  }
1624
1624
  ) }),
@@ -1726,13 +1726,13 @@ const mo = L((r) => {
1726
1726
  disabled: l,
1727
1727
  children: [
1728
1728
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: n && n.length > 0, children: n && n.length > 0 ? n.join(", ") : e.placeholder ?? "Select one or more..." }),
1729
- /* @__PURE__ */ p(T, { icon: Zr })
1729
+ /* @__PURE__ */ p(N, { icon: Zr })
1730
1730
  ]
1731
1731
  }
1732
1732
  ) }),
1733
1733
  /* @__PURE__ */ p(D.Content, { size: t, children: /* @__PURE__ */ p(D.Scroll, { children: /* @__PURE__ */ _(D.MultiSelectGroup, { values: n, onValuesChange: c, children: [
1734
1734
  /* @__PURE__ */ _(D.SelectAllItem, { children: [
1735
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { children: (d) => d ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) }),
1735
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { children: (d) => d ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) }),
1736
1736
  "Select all"
1737
1737
  ] }),
1738
1738
  e.options.map((d, f) => /* @__PURE__ */ _(
@@ -1740,7 +1740,7 @@ const mo = L((r) => {
1740
1740
  {
1741
1741
  value: d.value,
1742
1742
  children: [
1743
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
1743
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
1744
1744
  d.label
1745
1745
  ]
1746
1746
  },
@@ -1850,7 +1850,7 @@ const Co = L((r) => {
1850
1850
  disabled: l,
1851
1851
  children: [
1852
1852
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: !!d, children: d ? d.label : e.placeholder ?? "Select one..." }),
1853
- /* @__PURE__ */ p(T, { icon: Zr })
1853
+ /* @__PURE__ */ p(N, { icon: Zr })
1854
1854
  ]
1855
1855
  }
1856
1856
  ) }),
@@ -1859,7 +1859,7 @@ const Co = L((r) => {
1859
1859
  {
1860
1860
  value: f.value,
1861
1861
  children: [
1862
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
1862
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
1863
1863
  f.label
1864
1864
  ]
1865
1865
  },
@@ -2176,7 +2176,7 @@ const _o = L((r) => {
2176
2176
  "bg-transparent": !t
2177
2177
  }),
2178
2178
  children: [
2179
- n ? /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: ro }),
2179
+ n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
2180
2180
  /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
2181
2181
  i
2182
2182
  ]
@@ -2212,7 +2212,7 @@ const Eo = L((r) => {
2212
2212
  "bg-transparent": !t
2213
2213
  }),
2214
2214
  children: [
2215
- i ? /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: Vc }),
2215
+ i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
2216
2216
  /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
2217
2217
  a
2218
2218
  ]
@@ -2270,18 +2270,18 @@ const ci = L((r) => {
2270
2270
  variant: "ghost",
2271
2271
  accentColor: "base",
2272
2272
  size: i,
2273
- children: /* @__PURE__ */ p(T, { icon: eo })
2273
+ children: /* @__PURE__ */ p(N, { icon: eo })
2274
2274
  }
2275
2275
  ) }),
2276
2276
  /* @__PURE__ */ _(D.Content, { size: i, children: [
2277
2277
  /* @__PURE__ */ _(D.Item, { onSelect: u, disabled: !a, children: [
2278
- /* @__PURE__ */ p(T, { icon: Ja }),
2278
+ /* @__PURE__ */ p(N, { icon: Ja }),
2279
2279
  " Download"
2280
2280
  ] }),
2281
2281
  n ? null : /* @__PURE__ */ _(Le, { children: [
2282
2282
  /* @__PURE__ */ p(D.Separator, {}),
2283
2283
  /* @__PURE__ */ _(D.Item, { onSelect: d, children: [
2284
- /* @__PURE__ */ p(T, { icon: Lt }),
2284
+ /* @__PURE__ */ p(N, { icon: Lt }),
2285
2285
  " Delete"
2286
2286
  ] })
2287
2287
  ] })
@@ -2357,7 +2357,7 @@ const So = L((r) => {
2357
2357
  (w = c.current) == null || w.click();
2358
2358
  }, []), g = b(
2359
2359
  (w) => {
2360
- const S = Array.from(w.target.files ?? []).map((N) => Bt.from(G(), N)), O = {
2360
+ const S = Array.from(w.target.files ?? []).map((T) => Bt.from(G(), T)), O = {
2361
2361
  ...n,
2362
2362
  files: [...n.files, ...S]
2363
2363
  };
@@ -2407,7 +2407,7 @@ const So = L((r) => {
2407
2407
  children: wr.map((w) => {
2408
2408
  const { label: S } = $t[w];
2409
2409
  return /* @__PURE__ */ _("label", { className: "flex min-w-0 items-center gap-2", children: [
2410
- /* @__PURE__ */ p(Wt.Item, { value: w, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(T, { icon: Za, className: "fill-current" }) }) }),
2410
+ /* @__PURE__ */ p(Wt.Item, { value: w, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(N, { icon: Za, className: "fill-current" }) }) }),
2411
2411
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: S })
2412
2412
  ] }, `${e.identifier}-${w}`);
2413
2413
  })
@@ -2443,7 +2443,7 @@ const So = L((r) => {
2443
2443
  type: "button",
2444
2444
  disabled: l,
2445
2445
  children: [
2446
- /* @__PURE__ */ p(T, { icon: oi }),
2446
+ /* @__PURE__ */ p(N, { icon: oi }),
2447
2447
  "Select files"
2448
2448
  ]
2449
2449
  }
@@ -2639,7 +2639,7 @@ const Io = L((r) => {
2639
2639
  {
2640
2640
  className: "flex min-w-0 items-center gap-2",
2641
2641
  children: [
2642
- /* @__PURE__ */ p(Wt.Item, { value: f.value, onBlur: u, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(T, { icon: Za, className: "fill-current" }) }) }),
2642
+ /* @__PURE__ */ p(Wt.Item, { value: f.value, onBlur: u, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(N, { icon: Za, className: "fill-current" }) }) }),
2643
2643
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: f.label })
2644
2644
  ]
2645
2645
  },
@@ -2655,7 +2655,7 @@ const Io = L((r) => {
2655
2655
  accentColor: "base",
2656
2656
  size: t,
2657
2657
  children: [
2658
- /* @__PURE__ */ p(T, { icon: It }),
2658
+ /* @__PURE__ */ p(N, { icon: It }),
2659
2659
  "Clear"
2660
2660
  ]
2661
2661
  }
@@ -2767,13 +2767,13 @@ const Xc = ri(
2767
2767
  {
2768
2768
  value: f,
2769
2769
  className: Xc({ size: t }),
2770
- children: /* @__PURE__ */ p(T, { icon: oo, className: "size-full group-data-[active=true]:fill-current" })
2770
+ children: /* @__PURE__ */ p(N, { icon: oo, className: "size-full group-data-[active=true]:fill-current" })
2771
2771
  },
2772
2772
  `${e.identifier}-${f}`
2773
2773
  ))
2774
2774
  }
2775
2775
  ),
2776
- !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(T, { icon: It }) })
2776
+ !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon: It }) })
2777
2777
  ] })
2778
2778
  }
2779
2779
  );
@@ -5596,11 +5596,11 @@ var zi = (
5596
5596
  O = this.getBlackPointOnSegment(t, n + w, t - w, n);
5597
5597
  if (O == null)
5598
5598
  throw new I();
5599
- for (var N = null, w = 1; N === null && w < C; w++)
5600
- N = this.getBlackPointOnSegment(t, i - w, t - w, i);
5601
- if (N == null)
5599
+ for (var T = null, w = 1; T === null && w < C; w++)
5600
+ T = this.getBlackPointOnSegment(t, i - w, t - w, i);
5601
+ if (T == null)
5602
5602
  throw new I();
5603
- return this.centerEdges(N, A, O, S);
5603
+ return this.centerEdges(T, A, O, S);
5604
5604
  } else
5605
5605
  throw new I();
5606
5606
  }, r.prototype.getBlackPointOnSegment = function(e, t, n, i) {
@@ -6020,8 +6020,8 @@ var be = (
6020
6020
  for (var v = function(C) {
6021
6021
  if (C === 1 && (a.reverse(), t && t.get(ve.NEED_RESULT_POINT_CALLBACK) === !0)) {
6022
6022
  var A = /* @__PURE__ */ new Map();
6023
- t.forEach(function(O, N) {
6024
- return A.set(N, O);
6023
+ t.forEach(function(O, T) {
6024
+ return A.set(T, O);
6025
6025
  }), A.delete(ve.NEED_RESULT_POINT_CALLBACK), t = A;
6026
6026
  }
6027
6027
  try {
@@ -6147,7 +6147,7 @@ var be = (
6147
6147
  default:
6148
6148
  throw new M();
6149
6149
  }
6150
- for (var d = !1, f = !1, h = "", v = o[0], g = o[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), m = 0, C = 0, A = s, w = 0, S = !0, O = !1, N = !1; !d; ) {
6150
+ for (var d = !1, f = !1, h = "", v = o[0], g = o[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), m = 0, C = 0, A = s, w = 0, S = !0, O = !1, T = !1; !d; ) {
6151
6151
  var F = f;
6152
6152
  switch (f = !1, m = C, C = e.decodeCode(n, y, g), c[l++] = C, C !== e.CODE_STOP && (S = !0), C !== e.CODE_STOP && (w++, A += w * C), v = g, g += y.reduce(function(_n, An) {
6153
6153
  return _n + An;
@@ -6160,9 +6160,9 @@ var be = (
6160
6160
  switch (u) {
6161
6161
  case e.CODE_CODE_A:
6162
6162
  if (C < 64)
6163
- N === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), N = !1;
6163
+ T === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), T = !1;
6164
6164
  else if (C < 96)
6165
- N === O ? h += String.fromCharCode(C - 64) : h += String.fromCharCode(C + 64), N = !1;
6165
+ T === O ? h += String.fromCharCode(C - 64) : h += String.fromCharCode(C + 64), T = !1;
6166
6166
  else
6167
6167
  switch (C !== e.CODE_STOP && (S = !1), C) {
6168
6168
  case e.CODE_FNC_1:
@@ -6172,7 +6172,7 @@ var be = (
6172
6172
  case e.CODE_FNC_3:
6173
6173
  break;
6174
6174
  case e.CODE_FNC_4_A:
6175
- !O && N ? (O = !0, N = !1) : O && N ? (O = !1, N = !1) : N = !0;
6175
+ !O && T ? (O = !0, T = !1) : O && T ? (O = !1, T = !1) : T = !0;
6176
6176
  break;
6177
6177
  case e.CODE_SHIFT:
6178
6178
  f = !0, u = e.CODE_CODE_B;
@@ -6190,7 +6190,7 @@ var be = (
6190
6190
  break;
6191
6191
  case e.CODE_CODE_B:
6192
6192
  if (C < 96)
6193
- N === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), N = !1;
6193
+ T === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), T = !1;
6194
6194
  else
6195
6195
  switch (C !== e.CODE_STOP && (S = !1), C) {
6196
6196
  case e.CODE_FNC_1:
@@ -6200,7 +6200,7 @@ var be = (
6200
6200
  case e.CODE_FNC_3:
6201
6201
  break;
6202
6202
  case e.CODE_FNC_4_B:
6203
- !O && N ? (O = !0, N = !1) : O && N ? (O = !1, N = !1) : N = !0;
6203
+ !O && T ? (O = !0, T = !1) : O && T ? (O = !1, T = !1) : T = !0;
6204
6204
  break;
6205
6205
  case e.CODE_SHIFT:
6206
6206
  f = !0, u = e.CODE_CODE_A;
@@ -6247,9 +6247,9 @@ var be = (
6247
6247
  if (U === 0)
6248
6248
  throw new I();
6249
6249
  U > 0 && S && (u === e.CODE_CODE_C ? h = h.substring(0, U - 2) : h = h.substring(0, U - 1));
6250
- for (var Q = (o[1] + o[0]) / 2, X = v + z / 2, Z = c.length, Fe = new Uint8Array(Z), Ze = 0; Ze < Z; Ze++)
6250
+ for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length, Fe = new Uint8Array(K), Ze = 0; Ze < K; Ze++)
6251
6251
  Fe[Ze] = c[Ze];
6252
- var ur = [new k(Q, t), new k(X, t)];
6252
+ var ur = [new k(Z, t), new k(X, t)];
6253
6253
  return new We(h, Fe, 0, ur, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6254
6254
  }, e.CODE_PATTERNS = [
6255
6255
  Int32Array.from([2, 1, 2, 2, 2, 2]),
@@ -6409,8 +6409,8 @@ var be = (
6409
6409
  var C = m.value;
6410
6410
  d += C;
6411
6411
  }
6412
- } catch (Z) {
6413
- a = { error: Z };
6412
+ } catch (K) {
6413
+ a = { error: K };
6414
6414
  } finally {
6415
6415
  try {
6416
6416
  m && !m.done && (o = y.return) && o.call(y);
@@ -6427,8 +6427,8 @@ var be = (
6427
6427
  var C = S.value;
6428
6428
  A += C;
6429
6429
  }
6430
- } catch (Z) {
6431
- s = { error: Z };
6430
+ } catch (K) {
6431
+ s = { error: K };
6432
6432
  } finally {
6433
6433
  try {
6434
6434
  S && !S.done && (l = w.return) && l.call(w);
@@ -6440,18 +6440,18 @@ var be = (
6440
6440
  if (d !== f && O * 2 < A)
6441
6441
  throw new I();
6442
6442
  if (this.usingCheckDigit) {
6443
- for (var N = this.decodeRowResult.length - 1, F = 0, z = 0; z < N; z++)
6443
+ for (var T = this.decodeRowResult.length - 1, F = 0, z = 0; z < T; z++)
6444
6444
  F += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(z));
6445
- if (this.decodeRowResult.charAt(N) !== e.ALPHABET_STRING.charAt(F % 43))
6445
+ if (this.decodeRowResult.charAt(T) !== e.ALPHABET_STRING.charAt(F % 43))
6446
6446
  throw new Te();
6447
- this.decodeRowResult = this.decodeRowResult.substring(0, N);
6447
+ this.decodeRowResult = this.decodeRowResult.substring(0, T);
6448
6448
  }
6449
6449
  if (this.decodeRowResult.length === 0)
6450
6450
  throw new I();
6451
6451
  var U;
6452
6452
  this.extendedMode ? U = e.decodeExtended(this.decodeRowResult) : U = this.decodeRowResult;
6453
- var Q = (u[1] + u[0]) / 2, X = v + A / 2;
6454
- return new We(U, null, 0, [new k(Q, t), new k(X, t)], P.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6453
+ var Z = (u[1] + u[0]) / 2, X = v + A / 2;
6454
+ return new We(U, null, 0, [new k(Z, t), new k(X, t)], P.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6455
6455
  }, e.findAsteriskPattern = function(t, n) {
6456
6456
  for (var i = t.getSize(), a = t.getNextSet(0), o = 0, s = a, l = !1, c = n.length, u = a; u < i; u++)
6457
6457
  if (t.get(u) !== l)
@@ -6684,8 +6684,8 @@ var be = (
6684
6684
  if (this.decodeRowResult.length < 2)
6685
6685
  throw new I();
6686
6686
  this.checkChecksums(this.decodeRowResult), this.decodeRowResult = this.decodeRowResult.substring(0, this.decodeRowResult.length - 2);
6687
- var O = this.decodeExtended(this.decodeRowResult), N = (c[1] + c[0]) / 2, F = v + A / 2;
6688
- return new We(O, null, 0, [new k(N, t), new k(F, t)], P.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6687
+ var O = this.decodeExtended(this.decodeRowResult), T = (c[1] + c[0]) / 2, F = v + A / 2;
6688
+ return new We(O, null, 0, [new k(T, t), new k(F, t)], P.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6689
6689
  }, e.prototype.findAsteriskPattern = function(t) {
6690
6690
  var n = t.getSize(), i = t.getNextSet(0);
6691
6691
  this.counters.fill(0);
@@ -7329,8 +7329,8 @@ var be = (
7329
7329
  throw new Te();
7330
7330
  var m = (a[1] + a[0]) / 2, C = (f[1] + f[0]) / 2, A = this.getBarcodeFormat(), w = [new k(m, t), new k(C, t)], S = new We(y, null, 0, w, A, (/* @__PURE__ */ new Date()).getTime()), O = 0;
7331
7331
  try {
7332
- var N = ku.decodeRow(t, n, f[1]);
7333
- S.putMetadata(ke.UPC_EAN_EXTENSION, N.getText()), S.putAllMetadata(N.getResultMetadata()), S.addResultPoints(N.getResultPoints()), O = N.getText().length;
7332
+ var T = ku.decodeRow(t, n, f[1]);
7333
+ S.putMetadata(ke.UPC_EAN_EXTENSION, T.getText()), S.putAllMetadata(T.getResultMetadata()), S.addResultPoints(T.getResultPoints()), O = T.getText().length;
7334
7334
  } catch {
7335
7335
  }
7336
7336
  var F = i == null ? null : i.get(ve.ALLOWED_EAN_EXTENSIONS);
@@ -7437,8 +7437,8 @@ var be = (
7437
7437
  var m = w.value;
7438
7438
  d += m;
7439
7439
  }
7440
- } catch (N) {
7441
- s = { error: N };
7440
+ } catch (T) {
7441
+ s = { error: T };
7442
7442
  } finally {
7443
7443
  try {
7444
7444
  w && !w.done && (l = A.return) && l.call(A);
@@ -9435,10 +9435,10 @@ var Qi = (
9435
9435
  (l & 1) === 0 ? (v[w] = A, y[w] = C - A) : (g[w] = A, m[w] = C - A);
9436
9436
  }
9437
9437
  this.adjustOddEvenCounts(d);
9438
- for (var S = 4 * n.getValue() + (i ? 0 : 2) + (a ? 0 : 1) - 1, O = 0, N = 0, l = v.length - 1; l >= 0; l--) {
9438
+ for (var S = 4 * n.getValue() + (i ? 0 : 2) + (a ? 0 : 1) - 1, O = 0, T = 0, l = v.length - 1; l >= 0; l--) {
9439
9439
  if (e.isNotA1left(n, i, a)) {
9440
9440
  var F = e.WEIGHTS[S][2 * l];
9441
- N += v[l] * F;
9441
+ T += v[l] * F;
9442
9442
  }
9443
9443
  O += v[l];
9444
9444
  }
@@ -9447,10 +9447,10 @@ var Qi = (
9447
9447
  var F = e.WEIGHTS[S][2 * l + 1];
9448
9448
  z += g[l] * F;
9449
9449
  }
9450
- var U = N + z;
9450
+ var U = T + z;
9451
9451
  if ((O & 1) !== 0 || O > 13 || O < 4)
9452
9452
  throw new I();
9453
- var Q = (13 - O) / 2, X = e.SYMBOL_WIDEST[Q], Z = 9 - X, Fe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, Z, !1), ur = e.EVEN_TOTAL_SUBSET[Q], _n = e.GSUM[Q], An = Fe * ur + Ze + _n;
9453
+ var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X, Fe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, K, !1), ur = e.EVEN_TOTAL_SUBSET[Z], _n = e.GSUM[Z], An = Fe * ur + Ze + _n;
9454
9454
  return new Wr(An, U);
9455
9455
  }, e.isNotA1left = function(t, n, i) {
9456
9456
  return !(t.getValue() === 0 && n && i);
@@ -9788,17 +9788,17 @@ var Qi = (
9788
9788
  w *= 9, w += f[s], A += f[s];
9789
9789
  for (var S = 0, O = 0, s = h.length - 1; s >= 0; s--)
9790
9790
  S *= 9, S += h[s], O += h[s];
9791
- var N = w + 3 * S;
9791
+ var T = w + 3 * S;
9792
9792
  if (i) {
9793
9793
  if ((A & 1) !== 0 || A > 12 || A < 4)
9794
9794
  throw new I();
9795
- var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Q = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), Z = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Fe = e.OUTSIDE_GSUM[F];
9796
- return new Wr(Q * Z + X + Fe, N);
9795
+ var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Fe = e.OUTSIDE_GSUM[F];
9796
+ return new Wr(Z * K + X + Fe, T);
9797
9797
  } else {
9798
9798
  if ((O & 1) !== 0 || O > 10 || O < 4)
9799
9799
  throw new I();
9800
- var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Q = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Fe = e.INSIDE_GSUM[F];
9801
- return new Wr(X * Ze + Q + Fe, N);
9800
+ var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Fe = e.INSIDE_GSUM[F];
9801
+ return new Wr(X * Ze + Z + Fe, T);
9802
9802
  }
9803
9803
  }, e.prototype.findFinderPattern = function(t, n) {
9804
9804
  var i = this.getDecodeFinderCounters();
@@ -10190,17 +10190,17 @@ var ea = function(r) {
10190
10190
  if (a) throw a.error;
10191
10191
  }
10192
10192
  }
10193
- for (var w = h[0].codewords.length, S = w - s.getECCodewords(), O = S - 1, N = 0, m = 0; m < O; m++)
10193
+ for (var w = h[0].codewords.length, S = w - s.getECCodewords(), O = S - 1, T = 0, m = 0; m < O; m++)
10194
10194
  for (var F = 0; F < v; F++)
10195
- h[F].codewords[m] = e[N++];
10195
+ h[F].codewords[m] = e[T++];
10196
10196
  for (var z = t.getVersionNumber() === 24, U = z ? 8 : v, F = 0; F < U; F++)
10197
- h[F].codewords[S - 1] = e[N++];
10198
- for (var Q = h[0].codewords.length, m = S; m < Q; m++)
10197
+ h[F].codewords[S - 1] = e[T++];
10198
+ for (var Z = h[0].codewords.length, m = S; m < Z; m++)
10199
10199
  for (var F = 0; F < v; F++) {
10200
- var X = z ? (F + 8) % v : F, Z = z && X > 7 ? m - 1 : m;
10201
- h[X].codewords[Z] = e[N++];
10200
+ var X = z ? (F + 8) % v : F, K = z && X > 7 ? m - 1 : m;
10201
+ h[X].codewords[K] = e[T++];
10202
10202
  }
10203
- if (N !== e.length)
10203
+ if (T !== e.length)
10204
10204
  throw new H();
10205
10205
  return h;
10206
10206
  }, r.prototype.getNumDataCodewords = function() {
@@ -11326,8 +11326,8 @@ var ra = (
11326
11326
  var h = f.value;
11327
11327
  c += h.getCount();
11328
11328
  }
11329
- } catch (Z) {
11330
- i = { error: Z };
11329
+ } catch (K) {
11330
+ i = { error: K };
11331
11331
  } finally {
11332
11332
  try {
11333
11333
  f && !f.done && (a = d.return) && a.call(d);
@@ -11342,8 +11342,8 @@ var ra = (
11342
11342
  var A = h.getDataCodewords(), w = l.getECCodewordsPerBlock() + A;
11343
11343
  v[g++] = new r(A, new Uint8Array(w));
11344
11344
  }
11345
- } catch (Z) {
11346
- o = { error: Z };
11345
+ } catch (K) {
11346
+ o = { error: K };
11347
11347
  } finally {
11348
11348
  try {
11349
11349
  m && !m.done && (s = y.return) && s.call(y);
@@ -11352,8 +11352,8 @@ var ra = (
11352
11352
  }
11353
11353
  }
11354
11354
  for (var S = v[0].codewords.length, O = v.length - 1; O >= 0; ) {
11355
- var N = v[O].codewords.length;
11356
- if (N === S)
11355
+ var T = v[O].codewords.length;
11356
+ if (T === S)
11357
11357
  break;
11358
11358
  O--;
11359
11359
  }
@@ -11363,7 +11363,7 @@ var ra = (
11363
11363
  v[U].codewords[C] = e[z++];
11364
11364
  for (var U = O; U < g; U++)
11365
11365
  v[U].codewords[F] = e[z++];
11366
- for (var Q = v[0].codewords.length, C = F; C < Q; C++)
11366
+ for (var Z = v[0].codewords.length, C = F; C < Z; C++)
11367
11367
  for (var U = 0; U < g; U++) {
11368
11368
  var X = U < O ? C : C + 1;
11369
11369
  v[U].codewords[X] = e[z++];
@@ -12131,8 +12131,8 @@ var he = (
12131
12131
  */
12132
12132
  // FurthestFromAverageComparator implements Comparator<FinderPattern>
12133
12133
  function(S, O) {
12134
- var N = Math.abs(O.getEstimatedModuleSize() - s), F = Math.abs(S.getEstimatedModuleSize() - s);
12135
- return N < F ? -1 : N > F ? 1 : 0;
12134
+ var T = Math.abs(O.getEstimatedModuleSize() - s), F = Math.abs(S.getEstimatedModuleSize() - s);
12135
+ return T < F ? -1 : T > F ? 1 : 0;
12136
12136
  }
12137
12137
  );
12138
12138
  for (var g = Math.max(0.2 * s, v), y = 0; y < o.length && o.length > 3; y++) {
@@ -12161,12 +12161,12 @@ var he = (
12161
12161
  * <p>Orders by {@link FinderPattern#getCount()}, descending.</p>
12162
12162
  */
12163
12163
  // CenterComparator implements Comparator<FinderPattern>
12164
- function(O, N) {
12165
- if (N.getCount() === O.getCount()) {
12166
- var F = Math.abs(N.getEstimatedModuleSize() - s), z = Math.abs(O.getEstimatedModuleSize() - s);
12164
+ function(O, T) {
12165
+ if (T.getCount() === O.getCount()) {
12166
+ var F = Math.abs(T.getEstimatedModuleSize() - s), z = Math.abs(O.getEstimatedModuleSize() - s);
12167
12167
  return F < z ? 1 : F > z ? -1 : 0;
12168
12168
  } else
12169
- return N.getCount() - O.getCount();
12169
+ return T.getCount() - O.getCount();
12170
12170
  }
12171
12171
  ), o.splice(3);
12172
12172
  }
@@ -12392,7 +12392,7 @@ var he = (
12392
12392
  }
12393
12393
  };
12394
12394
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
12395
- }, K = (
12395
+ }, Q = (
12396
12396
  /** @class */
12397
12397
  function() {
12398
12398
  function r() {
@@ -18365,7 +18365,7 @@ var he = (
18365
18365
  return this.zero;
18366
18366
  var i = new Int32Array(t + 1);
18367
18367
  return i[0] = n, new Dt(this, i);
18368
- }, e.PDF417_GF = new e(K.NUMBER_OF_CODEWORDS, 3), e;
18368
+ }, e.PDF417_GF = new e(Q.NUMBER_OF_CODEWORDS, 3), e;
18369
18369
  }(nf)
18370
18370
  ), sf = function(r) {
18371
18371
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
@@ -18406,10 +18406,10 @@ var he = (
18406
18406
  }
18407
18407
  }
18408
18408
  for (var m = new Dt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
18409
- var N = e.length - 1 - this.field.log(S[c]);
18410
- if (N < 0)
18409
+ var T = e.length - 1 - this.field.log(S[c]);
18410
+ if (T < 0)
18411
18411
  throw Te.getChecksumInstance();
18412
- e[N] = this.field.subtract(e[N], O[c]);
18412
+ e[T] = this.field.subtract(e[T], O[c]);
18413
18413
  }
18414
18414
  return S.length;
18415
18415
  }, r.prototype.runEuclideanAlgorithm = function(e, t, n) {
@@ -18687,7 +18687,7 @@ var he = (
18687
18687
  if (e) throw e.error;
18688
18688
  }
18689
18689
  }
18690
- return K.toIntArray(i);
18690
+ return Q.toIntArray(i);
18691
18691
  }, r.prototype.getConfidence = function(e) {
18692
18692
  return this.values.get(e);
18693
18693
  }, r;
@@ -18824,7 +18824,7 @@ var he = (
18824
18824
  if (t) throw t.error;
18825
18825
  }
18826
18826
  }
18827
- if (a.getValue().length === 0 || o.getValue().length === 0 || s.getValue().length === 0 || l.getValue().length === 0 || a.getValue()[0] < 1 || o.getValue()[0] + s.getValue()[0] < K.MIN_ROWS_IN_BARCODE || o.getValue()[0] + s.getValue()[0] > K.MAX_ROWS_IN_BARCODE)
18827
+ if (a.getValue().length === 0 || o.getValue().length === 0 || s.getValue().length === 0 || l.getValue().length === 0 || a.getValue()[0] < 1 || o.getValue()[0] + s.getValue()[0] < Q.MIN_ROWS_IN_BARCODE || o.getValue()[0] + s.getValue()[0] > Q.MAX_ROWS_IN_BARCODE)
18828
18828
  return null;
18829
18829
  var v = new cf(a.getValue()[0], o.getValue()[0], s.getValue()[0], l.getValue()[0]);
18830
18830
  return this.removeIncorrectCodewords(i, v), v;
@@ -18874,7 +18874,7 @@ var he = (
18874
18874
  }
18875
18875
  return r.prototype.getDetectionResultColumns = function() {
18876
18876
  this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]), this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount + 1]);
18877
- var e = K.MAX_CODEWORDS_IN_BARCODE, t;
18877
+ var e = Q.MAX_CODEWORDS_IN_BARCODE, t;
18878
18878
  do
18879
18879
  t = e, e = this.adjustRowNumbersAndGetCount();
18880
18880
  while (e > 0 && e < t);
@@ -19021,25 +19021,25 @@ var he = (
19021
19021
  function r() {
19022
19022
  }
19023
19023
  return r.initialize = function() {
19024
- for (var e = 0; e < K.SYMBOL_TABLE.length; e++)
19025
- for (var t = K.SYMBOL_TABLE[e], n = t & 1, i = 0; i < K.BARS_IN_MODULE; i++) {
19024
+ for (var e = 0; e < Q.SYMBOL_TABLE.length; e++)
19025
+ for (var t = Q.SYMBOL_TABLE[e], n = t & 1, i = 0; i < Q.BARS_IN_MODULE; i++) {
19026
19026
  for (var a = 0; (t & 1) === n; )
19027
19027
  a += 1, t >>= 1;
19028
- n = t & 1, r.RATIOS_TABLE[e] || (r.RATIOS_TABLE[e] = new Array(K.BARS_IN_MODULE)), r.RATIOS_TABLE[e][K.BARS_IN_MODULE - i - 1] = Math.fround(a / K.MODULES_IN_CODEWORD);
19028
+ n = t & 1, r.RATIOS_TABLE[e] || (r.RATIOS_TABLE[e] = new Array(Q.BARS_IN_MODULE)), r.RATIOS_TABLE[e][Q.BARS_IN_MODULE - i - 1] = Math.fround(a / Q.MODULES_IN_CODEWORD);
19029
19029
  }
19030
19030
  this.bSymbolTableReady = !0;
19031
19031
  }, r.getDecodedValue = function(e) {
19032
19032
  var t = r.getDecodedCodewordValue(r.sampleBitCounts(e));
19033
19033
  return t !== -1 ? t : r.getClosestDecodedValue(e);
19034
19034
  }, r.sampleBitCounts = function(e) {
19035
- for (var t = ee.sum(e), n = new Int32Array(K.BARS_IN_MODULE), i = 0, a = 0, o = 0; o < K.MODULES_IN_CODEWORD; o++) {
19036
- var s = t / (2 * K.MODULES_IN_CODEWORD) + o * t / K.MODULES_IN_CODEWORD;
19035
+ for (var t = ee.sum(e), n = new Int32Array(Q.BARS_IN_MODULE), i = 0, a = 0, o = 0; o < Q.MODULES_IN_CODEWORD; o++) {
19036
+ var s = t / (2 * Q.MODULES_IN_CODEWORD) + o * t / Q.MODULES_IN_CODEWORD;
19037
19037
  a + e[i] <= s && (a += e[i], i++), n[i]++;
19038
19038
  }
19039
19039
  return n;
19040
19040
  }, r.getDecodedCodewordValue = function(e) {
19041
19041
  var t = r.getBitValue(e);
19042
- return K.getCodeword(t) === -1 ? -1 : t;
19042
+ return Q.getCodeword(t) === -1 ? -1 : t;
19043
19043
  }, r.getBitValue = function(e) {
19044
19044
  for (var t = (
19045
19045
  /*long*/
@@ -19049,23 +19049,23 @@ var he = (
19049
19049
  t = t << 1 | (n % 2 === 0 ? 1 : 0);
19050
19050
  return Math.trunc(t);
19051
19051
  }, r.getClosestDecodedValue = function(e) {
19052
- var t = ee.sum(e), n = new Array(K.BARS_IN_MODULE);
19052
+ var t = ee.sum(e), n = new Array(Q.BARS_IN_MODULE);
19053
19053
  if (t > 1)
19054
19054
  for (var i = 0; i < n.length; i++)
19055
19055
  n[i] = Math.fround(e[i] / t);
19056
19056
  var a = Gn.MAX_VALUE, o = -1;
19057
19057
  this.bSymbolTableReady || r.initialize();
19058
19058
  for (var s = 0; s < r.RATIOS_TABLE.length; s++) {
19059
- for (var l = 0, c = r.RATIOS_TABLE[s], u = 0; u < K.BARS_IN_MODULE; u++) {
19059
+ for (var l = 0, c = r.RATIOS_TABLE[s], u = 0; u < Q.BARS_IN_MODULE; u++) {
19060
19060
  var d = Math.fround(c[u] - n[u]);
19061
19061
  if (l += Math.fround(d * d), l >= a)
19062
19062
  break;
19063
19063
  }
19064
- l < a && (a = l, o = K.SYMBOL_TABLE[s]);
19064
+ l < a && (a = l, o = Q.SYMBOL_TABLE[s]);
19065
19065
  }
19066
19066
  return o;
19067
- }, r.bSymbolTableReady = !1, r.RATIOS_TABLE = new Array(K.SYMBOL_TABLE.length).map(function(e) {
19068
- return new Array(K.BARS_IN_MODULE);
19067
+ }, r.bSymbolTableReady = !1, r.RATIOS_TABLE = new Array(Q.SYMBOL_TABLE.length).map(function(e) {
19068
+ return new Array(Q.BARS_IN_MODULE);
19069
19069
  }), r;
19070
19070
  }()
19071
19071
  ), yf = (
@@ -19791,7 +19791,7 @@ var If = (
19791
19791
  }, r.adjustCodewordCount = function(e, t) {
19792
19792
  var n = t[0][1], i = n.getValue(), a = e.getBarcodeColumnCount() * e.getBarcodeRowCount() - r.getNumberOfECCodeWords(e.getBarcodeECLevel());
19793
19793
  if (i.length === 0) {
19794
- if (a < 1 || a > K.MAX_CODEWORDS_IN_BARCODE)
19794
+ if (a < 1 || a > Q.MAX_CODEWORDS_IN_BARCODE)
19795
19795
  throw I.getNotFoundInstance();
19796
19796
  n.setValue(a);
19797
19797
  } else i[0] !== a && n.setValue(a);
@@ -19811,7 +19811,7 @@ var If = (
19811
19811
  }
19812
19812
  for (var d = new Array(a.length), f = 0; f < d.length; f++)
19813
19813
  d[f] = a[f];
19814
- return r.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(), i, K.toIntArray(n), K.toIntArray(o), d);
19814
+ return r.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(), i, Q.toIntArray(n), Q.toIntArray(o), d);
19815
19815
  }, r.createDecoderResultFromAmbiguousValues = function(e, t, n, i, a) {
19816
19816
  for (var o = new Int32Array(i.length), s = 100; s-- > 0; ) {
19817
19817
  for (var l = 0; l < o.length; l++)
@@ -19924,7 +19924,7 @@ var If = (
19924
19924
  }
19925
19925
  if (!r.checkCodewordSkew(d, s, l))
19926
19926
  return null;
19927
- var v = xf.getDecodedValue(c), g = K.getCodeword(v);
19927
+ var v = xf.getDecodedValue(c), g = Q.getCodeword(v);
19928
19928
  return g === -1 ? null : new gf(a, u, r.getCodewordBucketNumber(v), g);
19929
19929
  }, r.getModuleBitCount = function(e, t, n, i, a, o) {
19930
19930
  for (var s = a, l = new Int32Array(8), c = 0, u = i ? 1 : -1, d = i; (i ? s < n : s >= t) && c < l.length; )
@@ -20041,9 +20041,9 @@ var If = (
20041
20041
  }, r.getMinWidth = function(e, t) {
20042
20042
  return e == null || t == null ? j.MAX_VALUE : Math.trunc(Math.abs(e.getX() - t.getX()));
20043
20043
  }, r.getMaxCodewordWidth = function(e) {
20044
- return Math.floor(Math.max(Math.max(r.getMaxWidth(e[0], e[4]), r.getMaxWidth(e[6], e[2]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN), Math.max(r.getMaxWidth(e[1], e[5]), r.getMaxWidth(e[7], e[3]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN)));
20044
+ return Math.floor(Math.max(Math.max(r.getMaxWidth(e[0], e[4]), r.getMaxWidth(e[6], e[2]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN), Math.max(r.getMaxWidth(e[1], e[5]), r.getMaxWidth(e[7], e[3]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN)));
20045
20045
  }, r.getMinCodewordWidth = function(e) {
20046
- return Math.floor(Math.min(Math.min(r.getMinWidth(e[0], e[4]), r.getMinWidth(e[6], e[2]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN), Math.min(r.getMinWidth(e[1], e[5]), r.getMinWidth(e[7], e[3]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN)));
20046
+ return Math.floor(Math.min(Math.min(r.getMinWidth(e[0], e[4]), r.getMinWidth(e[6], e[2]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN), Math.min(r.getMinWidth(e[1], e[5]), r.getMinWidth(e[7], e[3]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN)));
20047
20047
  }, r.prototype.reset = function() {
20048
20048
  }, r;
20049
20049
  }()
@@ -20840,7 +20840,7 @@ var zo = (
20840
20840
  }
20841
20841
  for (var h = 0; h < d; ++h)
20842
20842
  try {
20843
- for (var N = (s = void 0, ua(f)), F = N.next(); !F.done; F = N.next()) {
20843
+ for (var T = (s = void 0, ua(f)), F = T.next(); !F.done; F = T.next()) {
20844
20844
  var O = F.value, C = O.getErrorCorrectionBytes();
20845
20845
  h < C.length && A.appendBits(C[h], 8);
20846
20846
  }
@@ -20848,7 +20848,7 @@ var zo = (
20848
20848
  s = { error: U };
20849
20849
  } finally {
20850
20850
  try {
20851
- F && !F.done && (l = N.return) && l.call(N);
20851
+ F && !F.done && (l = T.return) && l.call(T);
20852
20852
  } finally {
20853
20853
  if (s) throw s.error;
20854
20854
  }
@@ -22004,15 +22004,15 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
22004
22004
  this.encoders = [];
22005
22005
  var S = 0;
22006
22006
  try {
22007
- for (var O = Vn(u), N = O.next(); !N.done; N = O.next()) {
22008
- var y = N.value;
22007
+ for (var O = Vn(u), T = O.next(); !T.done; T = O.next()) {
22008
+ var y = T.value;
22009
22009
  this.encoders[S++] = y;
22010
22010
  }
22011
22011
  } catch (z) {
22012
22012
  l = { error: z };
22013
22013
  } finally {
22014
22014
  try {
22015
- N && !N.done && (c = O.return) && c.call(O);
22015
+ T && !T.done && (c = O.return) && c.call(O);
22016
22016
  } finally {
22017
22017
  if (l) throw l.error;
22018
22018
  }
@@ -22732,22 +22732,22 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22732
22732
  C[w - h - 1] = S - O - 1, C[w + h] = S + O + 1;
22733
22733
  }
22734
22734
  }
22735
- for (var N = new vt(A), h = 0, F = 0; h < l; h++) {
22735
+ for (var T = new vt(A), h = 0, F = 0; h < l; h++) {
22736
22736
  for (var z = (l - h) * 4 + (s ? 9 : 12), U = 0; U < z; U++)
22737
- for (var Q = U * 2, X = 0; X < 2; X++)
22738
- v.get(F + Q + X) && N.set(C[h * 2 + X], C[h * 2 + U]), v.get(F + z * 2 + Q + X) && N.set(C[h * 2 + U], C[m - 1 - h * 2 - X]), v.get(F + z * 4 + Q + X) && N.set(C[m - 1 - h * 2 - X], C[m - 1 - h * 2 - U]), v.get(F + z * 6 + Q + X) && N.set(C[m - 1 - h * 2 - U], C[h * 2 + X]);
22737
+ for (var Z = U * 2, X = 0; X < 2; X++)
22738
+ v.get(F + Z + X) && T.set(C[h * 2 + X], C[h * 2 + U]), v.get(F + z * 2 + Z + X) && T.set(C[h * 2 + U], C[m - 1 - h * 2 - X]), v.get(F + z * 4 + Z + X) && T.set(C[m - 1 - h * 2 - X], C[m - 1 - h * 2 - U]), v.get(F + z * 6 + Z + X) && T.set(C[m - 1 - h * 2 - U], C[h * 2 + X]);
22739
22739
  F += z * 8;
22740
22740
  }
22741
- if (r.drawModeMessage(N, s, A, y), s)
22742
- r.drawBullsEye(N, j.truncDivision(A, 2), 5);
22741
+ if (r.drawModeMessage(T, s, A, y), s)
22742
+ r.drawBullsEye(T, j.truncDivision(A, 2), 5);
22743
22743
  else {
22744
- r.drawBullsEye(N, j.truncDivision(A, 2), 7);
22744
+ r.drawBullsEye(T, j.truncDivision(A, 2), 7);
22745
22745
  for (var h = 0, U = 0; h < j.truncDivision(m, 2) - 1; h += 15, U += 16)
22746
22746
  for (var X = j.truncDivision(A, 2) & 1; X < A; X += 2)
22747
- N.set(j.truncDivision(A, 2) - U, X), N.set(j.truncDivision(A, 2) + U, X), N.set(X, j.truncDivision(A, 2) - U), N.set(X, j.truncDivision(A, 2) + U);
22747
+ T.set(j.truncDivision(A, 2) - U, X), T.set(j.truncDivision(A, 2) + U, X), T.set(X, j.truncDivision(A, 2) - U), T.set(X, j.truncDivision(A, 2) + U);
22748
22748
  }
22749
- var Z = new g1();
22750
- return Z.setCompact(s), Z.setSize(A), Z.setLayers(l), Z.setCodeWords(g), Z.setMatrix(N), Z;
22749
+ var K = new g1();
22750
+ return K.setCompact(s), K.setSize(A), K.setLayers(l), K.setCodeWords(g), K.setMatrix(T), K;
22751
22751
  }, r.drawBullsEye = function(e, t, n) {
22752
22752
  for (var i = 0; i < n; i += 2)
22753
22753
  for (var a = t - i; a <= t + i; a++)
@@ -22909,7 +22909,7 @@ const qo = L((r) => {
22909
22909
  hints: D1
22910
22910
  });
22911
22911
  return /* @__PURE__ */ _("div", { className: "bg-(--color-background) flex size-full flex-col justify-center overflow-hidden", children: [
22912
- /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(T, { icon: It }) }) }) }),
22912
+ /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: It }) }) }) }),
22913
22913
  /* @__PURE__ */ p("div", { className: "max-h-full w-full grow overflow-hidden p-4", children: /* @__PURE__ */ p("video", { className: "size-full", ref: o }) })
22914
22914
  ] });
22915
22915
  });
@@ -22988,7 +22988,7 @@ const Xo = L((r) => {
22988
22988
  accentColor: "base",
22989
22989
  disabled: l,
22990
22990
  children: [
22991
- /* @__PURE__ */ p(T, { icon: dc }),
22991
+ /* @__PURE__ */ p(N, { icon: dc }),
22992
22992
  "Scan"
22993
22993
  ]
22994
22994
  }
@@ -23311,7 +23311,7 @@ const rn = (r) => {
23311
23311
  disabled: i || !c,
23312
23312
  children: [
23313
23313
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: !!c, children: c ? ei(c.utcOffset) : "UTC offset" }),
23314
- /* @__PURE__ */ p(T, { icon: Zr })
23314
+ /* @__PURE__ */ p(N, { icon: Zr })
23315
23315
  ]
23316
23316
  }
23317
23317
  ) }),
@@ -23322,7 +23322,7 @@ const rn = (r) => {
23322
23322
  value: c == null ? void 0 : c.utcOffset,
23323
23323
  onValueChange: f,
23324
23324
  children: jo.map((v) => /* @__PURE__ */ _(D.SelectItem, { value: v, children: [
23325
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
23325
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
23326
23326
  ei(v)
23327
23327
  ] }, v))
23328
23328
  }
@@ -23466,7 +23466,7 @@ const Ko = L((r) => {
23466
23466
  type: "button",
23467
23467
  disabled: l,
23468
23468
  children: [
23469
- /* @__PURE__ */ p(T, { icon: oi }),
23469
+ /* @__PURE__ */ p(N, { icon: oi }),
23470
23470
  g
23471
23471
  ]
23472
23472
  }
@@ -23687,7 +23687,7 @@ const Qo = L((r) => {
23687
23687
  type: "button",
23688
23688
  disabled: n === null,
23689
23689
  onClick: f,
23690
- children: /* @__PURE__ */ p(T, { icon: Wl })
23690
+ children: /* @__PURE__ */ p(N, { icon: Wl })
23691
23691
  }
23692
23692
  )
23693
23693
  ] })
@@ -24242,10 +24242,10 @@ const ds = L, kt = ds(function(r) {
24242
24242
  const { ref: e, children: t, ...n } = r, i = b(
24243
24243
  (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24244
24244
  t(a),
24245
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(T, { icon: et }) })
24245
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24246
24246
  ] }) : /* @__PURE__ */ _(Le, { children: [
24247
24247
  t,
24248
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(T, { icon: et }) })
24248
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24249
24249
  ] }),
24250
24250
  [t]
24251
24251
  );
@@ -24254,10 +24254,10 @@ const ds = L, kt = ds(function(r) {
24254
24254
  const { ref: e, children: t, ...n } = r, i = b(
24255
24255
  (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24256
24256
  t(a),
24257
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(T, { icon: et }) })
24257
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24258
24258
  ] }) : /* @__PURE__ */ _(Le, { children: [
24259
24259
  t,
24260
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(T, { icon: et }) })
24260
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24261
24261
  ] }),
24262
24262
  [t]
24263
24263
  );
@@ -24266,10 +24266,10 @@ const ds = L, kt = ds(function(r) {
24266
24266
  const { ref: e, children: t, ...n } = r, i = b(
24267
24267
  (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24268
24268
  t(a),
24269
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) })
24269
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24270
24270
  ] }) : /* @__PURE__ */ _(Le, { children: [
24271
24271
  t,
24272
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) })
24272
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24273
24273
  ] }),
24274
24274
  [t]
24275
24275
  );
@@ -24346,7 +24346,7 @@ const hs = L((r) => {
24346
24346
  variant: "soft",
24347
24347
  type: "button",
24348
24348
  onClick: y,
24349
- children: /* @__PURE__ */ p(T, { icon: ft })
24349
+ children: /* @__PURE__ */ p(N, { icon: ft })
24350
24350
  }
24351
24351
  )
24352
24352
  ] }),
@@ -24369,7 +24369,7 @@ const hs = L((r) => {
24369
24369
  onClick: () => {
24370
24370
  m(A);
24371
24371
  },
24372
- children: /* @__PURE__ */ p(T, { icon: It })
24372
+ children: /* @__PURE__ */ p(N, { icon: It })
24373
24373
  }
24374
24374
  )
24375
24375
  ]
@@ -24426,7 +24426,7 @@ const Ve = (r) => {
24426
24426
  const { condition: e, onClick: t, ...n } = r, i = b(() => {
24427
24427
  t(e);
24428
24428
  }, [e, t]);
24429
- return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(T, { icon: It }) });
24429
+ return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon: It }) });
24430
24430
  };
24431
24431
  Ve.displayName = "RemoveConditionButton";
24432
24432
  const Tr = L((r) => {
@@ -24525,7 +24525,7 @@ const c0 = (r) => {
24525
24525
  };
24526
24526
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24527
24527
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24528
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
24528
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24529
24529
  /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24530
24530
  ] }),
24531
24531
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
@@ -24592,7 +24592,7 @@ const cr = [], u0 = (r) => {
24592
24592
  };
24593
24593
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "soft", accentColor: "base", children: [
24594
24594
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "soft", accentColor: "base", children: [
24595
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24595
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24596
24596
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24597
24597
  ] }),
24598
24598
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -24743,7 +24743,7 @@ const dh = (r, e) => se(() => {
24743
24743
  };
24744
24744
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24745
24745
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24746
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
24746
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24747
24747
  /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24748
24748
  ] }),
24749
24749
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
@@ -24822,7 +24822,7 @@ const f0 = (r) => {
24822
24822
  };
24823
24823
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24824
24824
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24825
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24825
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24826
24826
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24827
24827
  ] }),
24828
24828
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -24904,7 +24904,7 @@ const h0 = (r) => {
24904
24904
  };
24905
24905
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24906
24906
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24907
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24907
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24908
24908
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24909
24909
  ] }),
24910
24910
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25018,7 +25018,7 @@ const p0 = (r) => {
25018
25018
  };
25019
25019
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25020
25020
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25021
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25021
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25022
25022
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25023
25023
  ] }),
25024
25024
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25111,7 +25111,7 @@ const v0 = (r) => {
25111
25111
  };
25112
25112
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25113
25113
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25114
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25114
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25115
25115
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25116
25116
  ] }),
25117
25117
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25194,7 +25194,7 @@ const g0 = (r) => {
25194
25194
  wr.map((c) => {
25195
25195
  const { label: u, icon: d } = $t[c];
25196
25196
  return /* @__PURE__ */ _(fs, { value: c, children: [
25197
- /* @__PURE__ */ p(T, { icon: d }),
25197
+ /* @__PURE__ */ p(N, { icon: d }),
25198
25198
  /* @__PURE__ */ p("span", { className: "truncate", children: u })
25199
25199
  ] }, c);
25200
25200
  })
@@ -25207,7 +25207,7 @@ const g0 = (r) => {
25207
25207
  };
25208
25208
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25209
25209
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25210
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25210
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25211
25211
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25212
25212
  ] }),
25213
25213
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25307,7 +25307,7 @@ const x0 = (r) => {
25307
25307
  };
25308
25308
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25309
25309
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25310
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25310
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25311
25311
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25312
25312
  ] }),
25313
25313
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25414,7 +25414,7 @@ const y0 = (r) => {
25414
25414
  };
25415
25415
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25416
25416
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25417
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25417
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25418
25418
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25419
25419
  ] }),
25420
25420
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25507,7 +25507,7 @@ const m0 = (r) => {
25507
25507
  };
25508
25508
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25509
25509
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25510
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25510
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25511
25511
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25512
25512
  ] }),
25513
25513
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25606,7 +25606,7 @@ const C0 = (r) => {
25606
25606
  };
25607
25607
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25608
25608
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25609
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25609
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25610
25610
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25611
25611
  ] }),
25612
25612
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25675,7 +25675,7 @@ const w0 = (r) => {
25675
25675
  };
25676
25676
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25677
25677
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25678
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25678
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25679
25679
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25680
25680
  ] }),
25681
25681
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25741,7 +25741,7 @@ const _0 = (r) => {
25741
25741
  };
25742
25742
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25743
25743
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25744
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25744
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25745
25745
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25746
25746
  ] }),
25747
25747
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25835,7 +25835,7 @@ const A0 = (r) => {
25835
25835
  };
25836
25836
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25837
25837
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25838
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
25838
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
25839
25839
  /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
25840
25840
  ] }),
25841
25841
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
@@ -25911,7 +25911,7 @@ const E0 = (r) => {
25911
25911
  };
25912
25912
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25913
25913
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25914
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25914
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25915
25915
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25916
25916
  ] }),
25917
25917
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -25979,7 +25979,7 @@ const S0 = (r) => {
25979
25979
  };
25980
25980
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25981
25981
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25982
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25982
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25983
25983
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25984
25984
  ] }),
25985
25985
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
@@ -26416,7 +26416,7 @@ const ws = L((r) => {
26416
26416
  t(e);
26417
26417
  }, [e, t]), { icon: i, name: a } = me[e];
26418
26418
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26419
- /* @__PURE__ */ p(T, { icon: i }),
26419
+ /* @__PURE__ */ p(N, { icon: i }),
26420
26420
  /* @__PURE__ */ p(pe, { className: "truncate", children: a })
26421
26421
  ] });
26422
26422
  });
@@ -26681,7 +26681,7 @@ const Ri = (r) => {
26681
26681
  const { popoverInputs: e, ...t } = r;
26682
26682
  return /* @__PURE__ */ _(xe.Root, { children: [
26683
26683
  /* @__PURE__ */ p(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ _(B, { variant: "soft", type: "button", size: "sm", accentColor: "base", children: [
26684
- /* @__PURE__ */ p(T, { icon: wc }),
26684
+ /* @__PURE__ */ p(N, { icon: wc }),
26685
26685
  "Settings"
26686
26686
  ] }) }),
26687
26687
  /* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: Ct("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
@@ -26697,8 +26697,8 @@ const Ss = L((r) => {
26697
26697
  n.setOptions({ image: void 0 });
26698
26698
  }, [n]), [c, u] = se(() => {
26699
26699
  const w = [], S = [], O = As(n.type, `${e}.${t}`) ?? [];
26700
- for (const N of O)
26701
- N.showDirectly ? w.push(N.field) : S.push(N.field);
26700
+ for (const T of O)
26701
+ T.showDirectly ? w.push(T.field) : S.push(T.field);
26702
26702
  return [w, S];
26703
26703
  }, [n, e, t]), d = Ln(c), f = Ln(u), h = u.length > 0, v = b(() => {
26704
26704
  o && i(() => ({
@@ -26724,7 +26724,7 @@ const Ss = L((r) => {
26724
26724
  /* @__PURE__ */ _("div", { className: "flex w-full justify-between gap-2", children: [
26725
26725
  /* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
26726
26726
  /* @__PURE__ */ _(ye, { accentColor: "base", variant: "soft", size: "sm", children: [
26727
- /* @__PURE__ */ p(T, { icon: C }),
26727
+ /* @__PURE__ */ p(N, { icon: C }),
26728
26728
  A
26729
26729
  ] }),
26730
26730
  !a && /* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
@@ -26734,7 +26734,7 @@ const Ss = L((r) => {
26734
26734
  checked: n.required,
26735
26735
  onCheckedChange: g,
26736
26736
  size: "sm",
26737
- children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(T, { icon: et }) })
26737
+ children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(N, { icon: et }) })
26738
26738
  }
26739
26739
  ),
26740
26740
  /* @__PURE__ */ p(pe, { size: "sm", accentColor: "base", children: "Required" })
@@ -26761,7 +26761,7 @@ const Ss = L((r) => {
26761
26761
  "aria-label": "delete",
26762
26762
  onClick: l,
26763
26763
  size: "sm",
26764
- children: /* @__PURE__ */ p(T, { icon: Lt })
26764
+ children: /* @__PURE__ */ p(N, { icon: Lt })
26765
26765
  }
26766
26766
  )
26767
26767
  ] }),
@@ -26838,12 +26838,12 @@ const Mi = L((r) => {
26838
26838
  return /* @__PURE__ */ _(pt, { className: "flex w-full items-center justify-between gap-4", size: "sm", children: [
26839
26839
  /* @__PURE__ */ p(Ss, { fieldIndex: n, field: e, parentPath: o }),
26840
26840
  /* @__PURE__ */ _(ue, { className: "flex flex-col gap-0.5", variant: "ghost", accentColor: "base", size: "sm", children: [
26841
- /* @__PURE__ */ p(wn, { onSelectFieldType: s, size: "sm", children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(T, { icon: ft }) }) }),
26842
- /* @__PURE__ */ p(ne, { type: "button", onClick: d, children: /* @__PURE__ */ p(T, { icon: ao }) }),
26843
- /* @__PURE__ */ p(ne, { type: "button", onClick: f, children: /* @__PURE__ */ p(T, { icon: io }) }),
26844
- /* @__PURE__ */ p(ne, { type: "button", onClick: l, children: /* @__PURE__ */ p(T, { icon: ai }) }),
26845
- /* @__PURE__ */ p(ne, { type: "button", onClick: h, children: /* @__PURE__ */ p(T, { icon: ro }) }),
26846
- /* @__PURE__ */ p(ne, { type: "button", onClick: v, children: /* @__PURE__ */ p(T, { icon: Lt }) })
26841
+ /* @__PURE__ */ p(wn, { onSelectFieldType: s, size: "sm", children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }) }),
26842
+ /* @__PURE__ */ p(ne, { type: "button", onClick: d, children: /* @__PURE__ */ p(N, { icon: ao }) }),
26843
+ /* @__PURE__ */ p(ne, { type: "button", onClick: f, children: /* @__PURE__ */ p(N, { icon: io }) }),
26844
+ /* @__PURE__ */ p(ne, { type: "button", onClick: l, children: /* @__PURE__ */ p(N, { icon: ai }) }),
26845
+ /* @__PURE__ */ p(ne, { type: "button", onClick: h, children: /* @__PURE__ */ p(N, { icon: ro }) }),
26846
+ /* @__PURE__ */ p(ne, { type: "button", onClick: v, children: /* @__PURE__ */ p(N, { icon: Lt }) })
26847
26847
  ] }),
26848
26848
  /* @__PURE__ */ p("input", { className: "hidden", ref: a, type: "file", accept: "image/*", onChange: u })
26849
26849
  ] });
@@ -26862,7 +26862,7 @@ const bs = L((r) => {
26862
26862
  t(e);
26863
26863
  }, [e, t]);
26864
26864
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26865
- /* @__PURE__ */ p(T, { icon: me[e.type].icon }),
26865
+ /* @__PURE__ */ p(N, { icon: me[e.type].icon }),
26866
26866
  e.label || Me
26867
26867
  ] });
26868
26868
  });
@@ -26887,7 +26887,7 @@ const Os = L((r) => {
26887
26887
  t(e);
26888
26888
  }, [e, t]);
26889
26889
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26890
- /* @__PURE__ */ p(T, { icon: no }),
26890
+ /* @__PURE__ */ p(N, { icon: no }),
26891
26891
  e.label || es
26892
26892
  ] });
26893
26893
  });
@@ -26937,7 +26937,7 @@ const Ns = L((r) => {
26937
26937
  variant: "surface",
26938
26938
  size: "xs",
26939
26939
  accentColor: "base",
26940
- children: /* @__PURE__ */ p(T, { icon: ft })
26940
+ children: /* @__PURE__ */ p(N, { icon: ft })
26941
26941
  }
26942
26942
  ) }),
26943
26943
  /* @__PURE__ */ _(Xt.Root, { children: [
@@ -26951,7 +26951,7 @@ const Ns = L((r) => {
26951
26951
  accentColor: "base",
26952
26952
  color: "danger",
26953
26953
  onClick: h,
26954
- children: /* @__PURE__ */ p(T, { icon: Lt })
26954
+ children: /* @__PURE__ */ p(N, { icon: Lt })
26955
26955
  }
26956
26956
  ) }),
26957
26957
  /* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Remove conditional logic" })
@@ -27026,7 +27026,7 @@ const Ts = L((r) => {
27026
27026
  /* @__PURE__ */ _("div", { className: "flex items-center justify-between", children: [
27027
27027
  /* @__PURE__ */ p(pe, { weight: "bold", children: "Fields" }),
27028
27028
  /* @__PURE__ */ p(wn, { onSelectFieldType: l, size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", accentColor: "base", children: [
27029
- /* @__PURE__ */ p(T, { icon: ft }),
27029
+ /* @__PURE__ */ p(N, { icon: ft }),
27030
27030
  " Add field"
27031
27031
  ] }) })
27032
27032
  ] }),
@@ -27049,9 +27049,9 @@ const Ts = L((r) => {
27049
27049
  size: "xs",
27050
27050
  onClick: mt,
27051
27051
  children: /* @__PURE__ */ _(ue, { className: "flex flex-col gap-2", variant: "surface", size: "xs", accentColor: "base", children: [
27052
- /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(T, { icon: Kl }) }),
27053
- /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(T, { icon: ai }) }),
27054
- /* @__PURE__ */ p(ne, { type: "button", onClick: s, children: /* @__PURE__ */ p(T, { icon: Lt }) })
27052
+ /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(N, { icon: Kl }) }),
27053
+ /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(N, { icon: ai }) }),
27054
+ /* @__PURE__ */ p(ne, { type: "button", onClick: s, children: /* @__PURE__ */ p(N, { icon: Lt }) })
27055
27055
  ] })
27056
27056
  }
27057
27057
  ) }),
@@ -27115,12 +27115,12 @@ const L0 = {
27115
27115
  a.current && a.current.classList.remove("light");
27116
27116
  }, []);
27117
27117
  const u = se(
27118
- () => i.fieldSections.map((Q, X) => ({
27119
- id: Q.identifier,
27118
+ () => i.fieldSections.map((Z, X) => ({
27119
+ id: Z.identifier,
27120
27120
  position: { x: 0, y: 0 },
27121
27121
  data: {
27122
27122
  index: X,
27123
- fieldSection: Q,
27123
+ fieldSection: Z,
27124
27124
  layoutDirection: l
27125
27125
  },
27126
27126
  draggable: !0,
@@ -27128,19 +27128,19 @@ const L0 = {
27128
27128
  })),
27129
27129
  [i.fieldSections, l]
27130
27130
  ), d = se(() => {
27131
- const Q = [], X = {};
27132
- for (const Z of i.fieldSections)
27133
- X[Z.identifier] = Z;
27134
- for (const Z of i.fieldSections) {
27135
- const Fe = Z.conditions;
27131
+ const Z = [], X = {};
27132
+ for (const K of i.fieldSections)
27133
+ X[K.identifier] = K;
27134
+ for (const K of i.fieldSections) {
27135
+ const Fe = K.conditions;
27136
27136
  for (const [Ze, ur] of Object.entries(Fe))
27137
- Q.push({
27138
- id: `${Z.identifier}-${Ze}`,
27139
- source: Z.identifier,
27137
+ Z.push({
27138
+ id: `${K.identifier}-${Ze}`,
27139
+ source: K.identifier,
27140
27140
  target: Ze,
27141
27141
  data: {
27142
27142
  targetSection: X[Ze],
27143
- sourceSection: Z,
27143
+ sourceSection: K,
27144
27144
  layoutDirection: l
27145
27145
  },
27146
27146
  animated: ur.length > 0,
@@ -27149,7 +27149,7 @@ const L0 = {
27149
27149
  type: "fieldSectionCondition"
27150
27150
  });
27151
27151
  }
27152
- return Q;
27152
+ return Z;
27153
27153
  }, [i.fieldSections, l]), [f, h, v] = Qs(u), [g, y, m] = Js(d);
27154
27154
  dt(() => {
27155
27155
  h(u);
@@ -27159,23 +27159,23 @@ const L0 = {
27159
27159
  const [C, A] = se(() => U0(f, g, l), [g, l, f]), w = b(() => {
27160
27160
  i.addFieldSection(new ot({ identifier: G(), fields: [] }));
27161
27161
  }, [i]), S = b(
27162
- (Q) => {
27163
- const { source: X, target: Z } = Q, Fe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27162
+ (Z) => {
27163
+ const { source: X, target: K } = Z, Fe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27164
27164
  Fe.setOptions({
27165
27165
  conditions: {
27166
27166
  ...Fe.conditions,
27167
- [Z]: []
27167
+ [K]: []
27168
27168
  }
27169
27169
  });
27170
27170
  },
27171
27171
  [i.fieldSections]
27172
27172
  ), O = b(
27173
- (Q) => {
27173
+ (Z) => {
27174
27174
  const X = i.getSectionDependencyGraph();
27175
- return !Ua(X, Q.source, Q.target);
27175
+ return !Ua(X, Z.source, Z.target);
27176
27176
  },
27177
27177
  [i]
27178
- ), N = b(() => {
27178
+ ), T = b(() => {
27179
27179
  o == null || o.zoomOut();
27180
27180
  }, [o]), F = b(() => {
27181
27181
  o == null || o.zoomIn();
@@ -27204,7 +27204,7 @@ const L0 = {
27204
27204
  }
27205
27205
  ),
27206
27206
  /* @__PURE__ */ p(In, { position: "top-left", children: /* @__PURE__ */ p(ue, { className: "flex items-center justify-end gap-2", size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "surface", onClick: w, children: [
27207
- /* @__PURE__ */ p(T, { icon: ft }),
27207
+ /* @__PURE__ */ p(N, { icon: ft }),
27208
27208
  " Add section"
27209
27209
  ] }) }) }),
27210
27210
  /* @__PURE__ */ _(In, { position: "top-right", className: "flex flex-col items-center gap-2", children: [
@@ -27218,16 +27218,16 @@ const L0 = {
27218
27218
  value: l,
27219
27219
  onValueChange: c,
27220
27220
  children: [
27221
- /* @__PURE__ */ p(bn.IconItem, { className: "rounded-b-none", value: "LR", type: "button", children: /* @__PURE__ */ p(T, { icon: Cl }) }),
27222
- /* @__PURE__ */ p(bn.IconItem, { className: "rounded-t-none", value: "TB", type: "button", children: /* @__PURE__ */ p(T, { icon: yl }) })
27221
+ /* @__PURE__ */ p(bn.IconItem, { className: "rounded-b-none", value: "LR", type: "button", children: /* @__PURE__ */ p(N, { icon: Cl }) }),
27222
+ /* @__PURE__ */ p(bn.IconItem, { className: "rounded-t-none", value: "TB", type: "button", children: /* @__PURE__ */ p(N, { icon: yl }) })
27223
27223
  ]
27224
27224
  }
27225
27225
  ),
27226
27226
  /* @__PURE__ */ p(Ft, { size: "sm" }),
27227
27227
  /* @__PURE__ */ _(ue, { className: "flex flex-col", size: "sm", accentColor: "base", variant: "soft", children: [
27228
- /* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(T, { icon: ft }) }),
27229
- /* @__PURE__ */ p(ne, { onClick: N, radius: "none", type: "button", children: /* @__PURE__ */ p(T, { icon: Gr }) }),
27230
- /* @__PURE__ */ p(ne, { className: "rounded-t-none", onClick: z, type: "button", children: /* @__PURE__ */ p(T, { icon: Sc }) })
27228
+ /* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }),
27229
+ /* @__PURE__ */ p(ne, { onClick: T, radius: "none", type: "button", children: /* @__PURE__ */ p(N, { icon: Gr }) }),
27230
+ /* @__PURE__ */ p(ne, { className: "rounded-t-none", onClick: z, type: "button", children: /* @__PURE__ */ p(N, { icon: Sc }) })
27231
27231
  ] })
27232
27232
  ] }),
27233
27233
  /* @__PURE__ */ p(In, { position: "bottom-right", children: /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: "sm", children: [
@@ -27460,16 +27460,16 @@ const Ms = L((r) => {
27460
27460
  return /* @__PURE__ */ _(pt, { className: "flex flex-col gap-2", size: "sm", children: [
27461
27461
  /* @__PURE__ */ _(ue, { className: "flex justify-between gap-2", size: "sm", accentColor: "base", variant: "soft", children: [
27462
27462
  /* @__PURE__ */ _(ye, { accentColor: "base", variant: "soft", size: "sm", children: [
27463
- /* @__PURE__ */ p(T, { icon: no }),
27463
+ /* @__PURE__ */ p(N, { icon: no }),
27464
27464
  e.label ?? es
27465
27465
  ] }),
27466
- /* @__PURE__ */ p(ne, { type: "button", onClick: i, variant: "ghost", children: /* @__PURE__ */ p(T, { icon: Lt }) })
27466
+ /* @__PURE__ */ p(ne, { type: "button", onClick: i, variant: "ghost", children: /* @__PURE__ */ p(N, { icon: Lt }) })
27467
27467
  ] }),
27468
27468
  /* @__PURE__ */ _("div", { className: "flex h-max w-full flex-wrap gap-2", children: [
27469
27469
  n.map((s) => s.render({
27470
27470
  onRemove: o
27471
27471
  })),
27472
- /* @__PURE__ */ p(Vi, { fields: e.fields, onSelectField: a, align: "start", children: /* @__PURE__ */ p(ne, { type: "button", size: "sm", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(T, { icon: ft }) }) })
27472
+ /* @__PURE__ */ p(Vi, { fields: e.fields, onSelectField: a, align: "start", children: /* @__PURE__ */ p(ne, { type: "button", size: "sm", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: ft }) }) })
27473
27473
  ] })
27474
27474
  ] });
27475
27475
  });
@@ -27530,7 +27530,7 @@ const Vs = L((r) => {
27530
27530
  fieldSections: s,
27531
27531
  onSelectFieldSection: i,
27532
27532
  children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", className: "w-max", children: [
27533
- /* @__PURE__ */ p(T, { icon: ft }),
27533
+ /* @__PURE__ */ p(N, { icon: ft }),
27534
27534
  "Add condition"
27535
27535
  ] })
27536
27536
  }
@@ -27642,7 +27642,7 @@ const Fs = L((r) => {
27642
27642
  /* @__PURE__ */ _("div", { className: "flex justify-between gap-2", children: [
27643
27643
  /* @__PURE__ */ p(pe, { accentColor: "base", size: "md", children: "Fields" }),
27644
27644
  /* @__PURE__ */ p(wn, { onSelectFieldType: l, size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", children: [
27645
- /* @__PURE__ */ p(T, { icon: ft }),
27645
+ /* @__PURE__ */ p(N, { icon: ft }),
27646
27646
  " Add field"
27647
27647
  ] }) })
27648
27648
  ] }),
@@ -27659,25 +27659,25 @@ const Fs = L((r) => {
27659
27659
  ] })
27660
27660
  ] }),
27661
27661
  /* @__PURE__ */ _(ue, { className: "flex flex-col gap-0.5", variant: "ghost", accentColor: "base", size: "sm", children: [
27662
- /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(T, { icon: ao }) }),
27663
- /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(T, { icon: io }) }),
27662
+ /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(N, { icon: ao }) }),
27663
+ /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(N, { icon: io }) }),
27664
27664
  /* @__PURE__ */ _(D.Root, { align: "end", children: [
27665
- /* @__PURE__ */ p(D.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(T, { icon: eo }) }) }),
27665
+ /* @__PURE__ */ p(D.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(N, { icon: eo }) }) }),
27666
27666
  /* @__PURE__ */ _(D.Content, { size: "sm", children: [
27667
27667
  /* @__PURE__ */ _(D.Item, { onSelect: s, children: [
27668
- /* @__PURE__ */ p(T, { icon: ai }),
27668
+ /* @__PURE__ */ p(N, { icon: ai }),
27669
27669
  "Duplicate section"
27670
27670
  ] }),
27671
27671
  /* @__PURE__ */ _(D.Item, { onSelect: h, children: [
27672
- /* @__PURE__ */ p(T, { icon: Ka }),
27672
+ /* @__PURE__ */ p(N, { icon: Ka }),
27673
27673
  "Copy JSON"
27674
27674
  ] }),
27675
27675
  /* @__PURE__ */ _(D.Item, { onSelect: v, children: [
27676
- /* @__PURE__ */ p(T, { icon: Qa }),
27676
+ /* @__PURE__ */ p(N, { icon: Qa }),
27677
27677
  "Paste JSON"
27678
27678
  ] }),
27679
27679
  /* @__PURE__ */ _(D.Item, { onSelect: a, children: [
27680
- /* @__PURE__ */ p(T, { icon: Lt }),
27680
+ /* @__PURE__ */ p(N, { icon: Lt }),
27681
27681
  "Delete section"
27682
27682
  ] })
27683
27683
  ] })
@@ -27748,11 +27748,11 @@ const Ps = L(() => {
27748
27748
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-4", children: [
27749
27749
  /* @__PURE__ */ _("div", { className: "flex items-center justify-end gap-2", children: [
27750
27750
  /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", onClick: o, children: [
27751
- /* @__PURE__ */ p(T, { icon: Ka }),
27751
+ /* @__PURE__ */ p(N, { icon: Ka }),
27752
27752
  " Copy JSON"
27753
27753
  ] }),
27754
27754
  /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", onClick: s, children: [
27755
- /* @__PURE__ */ p(T, { icon: Qa }),
27755
+ /* @__PURE__ */ p(N, { icon: Qa }),
27756
27756
  " Paste JSON"
27757
27757
  ] })
27758
27758
  ] }),
@@ -27774,7 +27774,7 @@ const Ps = L(() => {
27774
27774
  size: "sm",
27775
27775
  onClick: a,
27776
27776
  children: [
27777
- /* @__PURE__ */ p(T, { icon: ft }),
27777
+ /* @__PURE__ */ p(N, { icon: ft }),
27778
27778
  " Add section"
27779
27779
  ]
27780
27780
  }
@@ -27814,76 +27814,86 @@ const X0 = L(
27814
27814
  onCancel: u,
27815
27815
  hideCancel: d = !1,
27816
27816
  className: f,
27817
- buttonProps: h,
27818
- size: v = "md"
27819
- } = r, g = se(() => n.initializeValues(i), [n, i]), y = b(
27820
- (N) => {
27821
- o == null || o(N);
27817
+ submitButtonProps: h,
27818
+ cancelButtonProps: v,
27819
+ size: g = "md"
27820
+ } = r, y = se(() => n.initializeValues(i), [n, i]), m = b(
27821
+ (F) => {
27822
+ o == null || o(F);
27822
27823
  },
27823
27824
  [o]
27824
- ), m = Xa({
27825
- values: g,
27825
+ ), C = Xa({
27826
+ values: y,
27826
27827
  mode: "onBlur",
27827
27828
  criteriaMode: "all",
27828
27829
  disabled: t,
27829
- resolver: (N) => {
27830
- const F = n.validateValues(N), z = Bs(F);
27831
- return Object.keys(F).length > 0 ? {
27830
+ resolver: (F) => {
27831
+ const z = n.validateValues(F), U = Bs(z);
27832
+ return Object.keys(z).length > 0 ? {
27832
27833
  values: {},
27833
- errors: z
27834
+ errors: U
27834
27835
  } : {
27835
- values: N,
27836
+ values: F,
27836
27837
  errors: {}
27837
27838
  };
27838
27839
  }
27839
- }), C = b(
27840
- (N) => {
27841
- a == null || a(N);
27840
+ }), A = b(
27841
+ (F) => {
27842
+ a == null || a(F);
27842
27843
  },
27843
27844
  [a]
27844
27845
  );
27845
27846
  dt(() => {
27846
- const { unsubscribe: N } = m.watch((F, { type: z }) => {
27847
- z === "change" && C(F);
27847
+ const { unsubscribe: F } = C.watch((z, { type: U }) => {
27848
+ U === "change" && A(z);
27848
27849
  });
27849
27850
  return () => {
27850
- N();
27851
+ F();
27851
27852
  };
27852
- }, [m, C]);
27853
- const A = Bc(n.getFieldSections()), w = se(
27853
+ }, [C, A]);
27854
+ const w = Bc(n.getFieldSections()), S = se(
27854
27855
  () => ({
27855
27856
  fieldSchema: n,
27856
- size: v
27857
+ size: g
27857
27858
  }),
27858
- [n, v]
27859
- ), S = !d && !!u, O = !l;
27860
- return /* @__PURE__ */ p(Wa, { ...m, children: /* @__PURE__ */ p(Ce, { value: w, children: /* @__PURE__ */ _(
27859
+ [n, g]
27860
+ ), O = !d && !!u, T = !l;
27861
+ return /* @__PURE__ */ p(Wa, { ...C, children: /* @__PURE__ */ p(Ce, { value: S, children: /* @__PURE__ */ _(
27861
27862
  "form",
27862
27863
  {
27863
27864
  ref: e,
27864
27865
  className: Ct(f, "flex flex-col gap-4"),
27865
- onSubmit: m.handleSubmit(y),
27866
+ onSubmit: C.handleSubmit(m),
27866
27867
  children: [
27867
- /* @__PURE__ */ p("div", { className: k0({ size: v }), children: A }),
27868
- !t && (S || O) ? /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: v, children: [
27869
- S ? /* @__PURE__ */ _(
27868
+ /* @__PURE__ */ p("div", { className: k0({ size: g }), children: w }),
27869
+ !t && (O || T) ? /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: g, children: [
27870
+ O ? /* @__PURE__ */ _(
27870
27871
  B,
27871
27872
  {
27872
- ...h,
27873
27873
  accentColor: "base",
27874
27874
  type: "button",
27875
27875
  variant: "soft",
27876
27876
  onClick: u,
27877
+ ...v,
27877
27878
  children: [
27878
- /* @__PURE__ */ p(T, { icon: It }),
27879
+ /* @__PURE__ */ p(N, { icon: It }),
27879
27880
  c
27880
27881
  ]
27881
27882
  }
27882
27883
  ) : null,
27883
- O ? /* @__PURE__ */ _(B, { ...h, type: "submit", accentColor: "primary", variant: "surface", children: [
27884
- /* @__PURE__ */ p(T, { icon: et }),
27885
- s
27886
- ] }) : null
27884
+ T ? /* @__PURE__ */ _(
27885
+ B,
27886
+ {
27887
+ type: "submit",
27888
+ accentColor: "primary",
27889
+ variant: "surface",
27890
+ ...h,
27891
+ children: [
27892
+ /* @__PURE__ */ p(N, { icon: et }),
27893
+ s
27894
+ ]
27895
+ }
27896
+ ) : null
27887
27897
  ] }) : null
27888
27898
  ]
27889
27899
  }
@@ -27901,8 +27911,8 @@ const Ls = L((r) => {
27901
27911
  (!v.fields || v.fields.length === 0) && (g.fields = "At least one field is required.");
27902
27912
  const y = [];
27903
27913
  for (const [w, S] of v.fields.entries())
27904
- for (const [O, N] of S.fields.entries()) {
27905
- const F = ((A = As(N.type, `fields.${w}.fields.${O}`)) == null ? void 0 : A.map(
27914
+ for (const [O, T] of S.fields.entries()) {
27915
+ const F = ((A = As(T.type, `fields.${w}.fields.${O}`)) == null ? void 0 : A.map(
27906
27916
  ({ field: z }) => z
27907
27917
  )) ?? [];
27908
27918
  y.push(...F);