@overmap-ai/forms 1.0.36-add-utils.10 → 1.0.36-add-utils.11

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 Es = Object.defineProperty;
2
2
  var Ss = (r, e, t) => e in r ? Es(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var I = (r, e, t) => Ss(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsxs as _, jsx as p, Fragment as ft } from "react/jsx-runtime";
5
- import { Card as at, LuIcon as D, Text as Pe, Spinner as Ua, Overlay as yt, ButtonGroup as he, Tooltip as xt, IconButton as ne, Separator as Cr, Input as xe, Badge as be, Checkbox as Jr, CheckboxGroup as Vn, Popover as De, Button as z, DayPicker as Ha, Menu as M, OneTimePasswordField as Pn, RadioGroup as ir, TextArea as bt, Rating as Ui, stopPropagation as ci, Heading as Ga, toast as Le, ToggleGroup as Fn, useAlertDialog as bs } from "@overmap-ai/blocks";
5
+ import { Card as at, LuIcon as D, Text as Pe, Spinner as Ua, Overlay as yt, ButtonGroup as he, Tooltip as xt, IconButton as ne, Separator as Cr, Input as xe, Badge as be, Checkbox as Jr, CheckboxGroup as Vn, Popover as De, Button as z, DayPicker as Ha, Menu as V, OneTimePasswordField as Pn, RadioGroup as ir, TextArea as bt, Rating as Ui, stopPropagation as ci, Heading as Ga, toast as Le, ToggleGroup as Fn, useAlertDialog as bs } from "@overmap-ai/blocks";
6
6
  import { cx as Ar } from "class-variance-authority";
7
7
  import { forwardRef as Pr, createElement as jn, memo as X, createContext as Fr, useContext as Is, useRef as Br, useCallback as T, useState as ye, useEffect as ke, useMemo as oe, Fragment as Xa, use as dt, useLayoutEffect as Wa, useId as Os } from "react";
8
8
  import "@xyflow/react/dist/style.css";
@@ -863,7 +863,7 @@ const qe = X((r) => {
863
863
  d && d.findIndex((ee) => ee === H.target.value.trim()) >= 0 ? E("All options must be unique") : H.target.value ? E("") : E("Option cannot be empty"), C(H.target.value);
864
864
  },
865
865
  [C, d]
866
- ), V = T(() => {
866
+ ), M = T(() => {
867
867
  if (A) return;
868
868
  if (!w.trim()) {
869
869
  E("Option cannot be empty");
@@ -871,11 +871,11 @@ const qe = X((r) => {
871
871
  }
872
872
  const H = w.trim();
873
873
  N([...d, H]), C("");
874
- }, [w, A, N, d]), B = T(
874
+ }, [w, A, N, d]), F = T(
875
875
  (H) => {
876
- H.key === "Enter" && (H.preventDefault(), V());
876
+ H.key === "Enter" && (H.preventDefault(), M());
877
877
  },
878
- [V]
878
+ [M]
879
879
  ), Z = T(
880
880
  (H) => {
881
881
  const ee = Array.from(d);
@@ -908,7 +908,7 @@ const qe = X((r) => {
908
908
  {
909
909
  value: w,
910
910
  onChange: R,
911
- onKeyDown: B,
911
+ onKeyDown: F,
912
912
  id: e,
913
913
  placeholder: o.placeholder,
914
914
  onBlur: K,
@@ -925,7 +925,7 @@ const qe = X((r) => {
925
925
  type: "button",
926
926
  "aria-label": "Add option",
927
927
  disabled: !!A || u,
928
- onClick: V,
928
+ onClick: M,
929
929
  children: /* @__PURE__ */ p(D, { icon: ht })
930
930
  }
931
931
  )
@@ -1139,7 +1139,7 @@ const uo = X((r) => {
1139
1139
  onCheckedChange: m,
1140
1140
  onBlur: w,
1141
1141
  size: "sm",
1142
- accentColor: "primary",
1142
+ accentColor: "base",
1143
1143
  variant: "surface",
1144
1144
  disabled: u,
1145
1145
  children: /* @__PURE__ */ p(Jr.Indicator, { children: /* @__PURE__ */ p(D, { icon: tt }) })
@@ -1212,12 +1212,14 @@ const fo = X((r) => {
1212
1212
  A(x);
1213
1213
  }, [x]);
1214
1214
  const E = T(
1215
- (N) => {
1216
- const R = N.target.valueAsNumber, V = isNaN(R) ? null : R;
1217
- A(V), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(V));
1215
+ (R) => {
1216
+ const M = R.target.valueAsNumber, F = isNaN(M) ? null : M;
1217
+ A(F), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(F));
1218
1218
  },
1219
1219
  [o, f, u]
1220
- ), b = T(() => {
1220
+ ), b = T((R) => {
1221
+ R.key === "Enter" && R.preventDefault();
1222
+ }, []), N = T(() => {
1221
1223
  g(C), v(C);
1222
1224
  }, [C, v, g]);
1223
1225
  return /* @__PURE__ */ p($e, { helpText: m, severity: i, children: /* @__PURE__ */ p(
@@ -1235,14 +1237,15 @@ const fo = X((r) => {
1235
1237
  id: e,
1236
1238
  name: d,
1237
1239
  onChange: E,
1238
- onBlur: b,
1240
+ onBlur: N,
1239
1241
  value: C ?? "",
1240
1242
  type: "number",
1241
1243
  min: o.minimum,
1242
1244
  max: o.maximum,
1243
1245
  step: o.integers ? 1 : 0.1,
1244
1246
  placeholder: o.placeholder ?? "Enter a number",
1245
- disabled: h
1247
+ disabled: h,
1248
+ onKeyDown: b
1246
1249
  }
1247
1250
  ) })
1248
1251
  }
@@ -1606,9 +1609,10 @@ const vo = X((r) => {
1606
1609
  ]
1607
1610
  }
1608
1611
  ) }),
1609
- /* @__PURE__ */ p(De.Content, { align: "start", children: /* @__PURE__ */ p(
1612
+ /* @__PURE__ */ p(De.Content, { align: "start", size: "sm", children: /* @__PURE__ */ p(
1610
1613
  Ha,
1611
1614
  {
1615
+ size: "sm",
1612
1616
  required: !1,
1613
1617
  mode: "single",
1614
1618
  variant: "solid",
@@ -1696,8 +1700,8 @@ const go = X((r) => {
1696
1700
  labelId: t,
1697
1701
  label: x,
1698
1702
  image: a ? void 0 : o.image,
1699
- children: /* @__PURE__ */ _(M.Root, { onOpenChange: w, align: "start", children: [
1700
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ _(
1703
+ children: /* @__PURE__ */ _(V.Root, { onOpenChange: w, align: "start", children: [
1704
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ _(
1701
1705
  z,
1702
1706
  {
1703
1707
  id: e,
@@ -1714,17 +1718,17 @@ const go = X((r) => {
1714
1718
  ]
1715
1719
  }
1716
1720
  ) }),
1717
- /* @__PURE__ */ p(M.Content, { children: /* @__PURE__ */ p(M.Scroll, { children: /* @__PURE__ */ _(M.MultiSelectGroup, { values: f, onValuesChange: m, children: [
1718
- /* @__PURE__ */ _(M.SelectAllItem, { children: [
1719
- /* @__PURE__ */ p(M.CheckboxItemIndicator, { children: (C) => C ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) }),
1721
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(V.Scroll, { children: /* @__PURE__ */ _(V.MultiSelectGroup, { values: f, onValuesChange: m, children: [
1722
+ /* @__PURE__ */ _(V.SelectAllItem, { children: [
1723
+ /* @__PURE__ */ p(V.CheckboxItemIndicator, { children: (C) => C ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) }),
1720
1724
  "Select all"
1721
1725
  ] }),
1722
1726
  o.options.map((C, A) => /* @__PURE__ */ _(
1723
- M.MultiSelectItem,
1727
+ V.MultiSelectItem,
1724
1728
  {
1725
1729
  value: C.value,
1726
1730
  children: [
1727
- /* @__PURE__ */ p(M.SelectedIndicator, { children: /* @__PURE__ */ p(D, { icon: tt }) }),
1731
+ /* @__PURE__ */ p(V.SelectedIndicator, { children: /* @__PURE__ */ p(D, { icon: tt }) }),
1728
1732
  C.label
1729
1733
  ]
1730
1734
  },
@@ -1816,8 +1820,8 @@ const xo = X((r) => {
1816
1820
  labelId: t,
1817
1821
  label: x,
1818
1822
  image: a ? void 0 : o.image,
1819
- children: /* @__PURE__ */ _(M.Root, { align: "start", children: [
1820
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ _(
1823
+ children: /* @__PURE__ */ _(V.Root, { align: "start", children: [
1824
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ _(
1821
1825
  z,
1822
1826
  {
1823
1827
  id: e,
@@ -1834,8 +1838,8 @@ const xo = X((r) => {
1834
1838
  ]
1835
1839
  }
1836
1840
  ) }),
1837
- /* @__PURE__ */ p(M.Content, { children: /* @__PURE__ */ p(M.Scroll, { children: /* @__PURE__ */ p(M.SelectGroup, { required: !1, value: v ?? void 0, onValueChange: m, children: o.options.map((C, A) => /* @__PURE__ */ _(M.SelectItem, { value: C.value, children: [
1838
- /* @__PURE__ */ p(M.SelectedIndicator, { children: /* @__PURE__ */ p(D, { icon: tt }) }),
1841
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(V.Scroll, { children: /* @__PURE__ */ p(V.SelectGroup, { required: !1, value: v ?? void 0, onValueChange: m, children: o.options.map((C, A) => /* @__PURE__ */ _(V.SelectItem, { value: C.value, children: [
1842
+ /* @__PURE__ */ p(V.SelectedIndicator, { children: /* @__PURE__ */ p(D, { icon: tt }) }),
1839
1843
  C.label
1840
1844
  ] }, `${e}-${C.value}-${A}`)) }) }) })
1841
1845
  ] })
@@ -1912,8 +1916,8 @@ const yo = X((r) => {
1912
1916
  E(m);
1913
1917
  }, [m]);
1914
1918
  const N = T(
1915
- (V) => {
1916
- E(V), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(V));
1919
+ (M) => {
1920
+ E(M), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(M));
1917
1921
  },
1918
1922
  [o, f, u]
1919
1923
  ), R = T(() => {
@@ -1950,7 +1954,7 @@ const yo = X((r) => {
1950
1954
  size: "sm",
1951
1955
  onBlur: R,
1952
1956
  children: [
1953
- b.map((V) => /* @__PURE__ */ p(Pn.Input, { id: V }, V)),
1957
+ b.map((M) => /* @__PURE__ */ p(Pn.Input, { id: M }, M)),
1954
1958
  /* @__PURE__ */ p(Pn.HiddenInput, {})
1955
1959
  ]
1956
1960
  }
@@ -2275,13 +2279,13 @@ const mo = X((r) => {
2275
2279
  );
2276
2280
  },
2277
2281
  [o, f, m, u, d]
2278
- ), V = T(() => {
2282
+ ), M = T(() => {
2279
2283
  const $ = {
2280
2284
  ...d,
2281
2285
  notes: m
2282
2286
  };
2283
2287
  v($), g($);
2284
- }, [m, g, v, d]), B = T(
2288
+ }, [m, g, v, d]), F = T(
2285
2289
  ($) => {
2286
2290
  const le = [...d.files];
2287
2291
  le.splice($, 1), v({
@@ -2358,7 +2362,7 @@ const mo = X((r) => {
2358
2362
  value: m,
2359
2363
  name: x,
2360
2364
  onChange: R,
2361
- onBlur: V,
2365
+ onBlur: M,
2362
2366
  className: "field-sizing-content w-full min-h-12",
2363
2367
  placeholder: "Notes",
2364
2368
  resize: "vertical",
@@ -2403,7 +2407,7 @@ const mo = X((r) => {
2403
2407
  {
2404
2408
  file: $,
2405
2409
  onRemove: () => {
2406
- B(le);
2410
+ F(le);
2407
2411
  },
2408
2412
  disabled: h
2409
2413
  },
@@ -2583,7 +2587,7 @@ const Co = X((r) => {
2583
2587
  type: "button",
2584
2588
  variant: "ghost",
2585
2589
  accentColor: "base",
2586
- size: "sm",
2590
+ size: "xs",
2587
2591
  children: [
2588
2592
  /* @__PURE__ */ p(D, { icon: It }),
2589
2593
  "Clear"
@@ -2683,14 +2687,14 @@ const Ao = X((r) => {
2683
2687
  Ui.Item,
2684
2688
  {
2685
2689
  value: A,
2686
- className: "group size-7 flex cursor-pointer disabled:opacity-50 disabled:pointer-events-none items-center justify-center text-yellow-500 transition-colors",
2690
+ className: "group size-5 flex cursor-pointer disabled:opacity-50 disabled:pointer-events-none items-center justify-center text-yellow-500 transition-colors",
2687
2691
  children: /* @__PURE__ */ p(D, { icon: io, className: "group-data-[active=true]:fill-current size-full" })
2688
2692
  },
2689
2693
  `${e}-${A}`
2690
2694
  ))
2691
2695
  }
2692
2696
  ),
2693
- !u && v !== null && /* @__PURE__ */ p(ne, { onClick: w, type: "button", variant: "ghost", accentColor: "base", size: "sm", children: /* @__PURE__ */ p(D, { icon: It }) })
2697
+ !u && v !== null && /* @__PURE__ */ p(ne, { onClick: w, type: "button", variant: "ghost", accentColor: "base", size: "xs", children: /* @__PURE__ */ p(D, { icon: It }) })
2694
2698
  ] })
2695
2699
  }
2696
2700
  ) });
@@ -4710,7 +4714,7 @@ var _e = (
4710
4714
  (function(r) {
4711
4715
  r[r.AZTEC = 0] = "AZTEC", r[r.CODABAR = 1] = "CODABAR", r[r.CODE_39 = 2] = "CODE_39", r[r.CODE_93 = 3] = "CODE_93", r[r.CODE_128 = 4] = "CODE_128", r[r.DATA_MATRIX = 5] = "DATA_MATRIX", r[r.EAN_8 = 6] = "EAN_8", r[r.EAN_13 = 7] = "EAN_13", r[r.ITF = 8] = "ITF", r[r.MAXICODE = 9] = "MAXICODE", r[r.PDF_417 = 10] = "PDF_417", r[r.QR_CODE = 11] = "QR_CODE", r[r.RSS_14 = 12] = "RSS_14", r[r.RSS_EXPANDED = 13] = "RSS_EXPANDED", r[r.UPC_A = 14] = "UPC_A", r[r.UPC_E = 15] = "UPC_E", r[r.UPC_EAN_EXTENSION = 16] = "UPC_EAN_EXTENSION";
4712
4716
  })(Zn || (Zn = {}));
4713
- const F = Zn;
4717
+ const B = Zn;
4714
4718
  var Kn;
4715
4719
  (function(r) {
4716
4720
  r[r.OTHER = 0] = "OTHER", r[r.ORIENTATION = 1] = "ORIENTATION", r[r.BYTE_SEGMENTS = 2] = "BYTE_SEGMENTS", r[r.ERROR_CORRECTION_LEVEL = 3] = "ERROR_CORRECTION_LEVEL", r[r.ISSUE_NUMBER = 4] = "ISSUE_NUMBER", r[r.SUGGESTED_PRICE = 5] = "SUGGESTED_PRICE", r[r.POSSIBLE_COUNTRY = 6] = "POSSIBLE_COUNTRY", r[r.UPC_EAN_EXTENSION = 7] = "UPC_EAN_EXTENSION", r[r.PDF417_EXTRA_METADATA = 8] = "PDF417_EXTRA_METADATA", r[r.STRUCTURED_APPEND_SEQUENCE = 9] = "STRUCTURED_APPEND_SEQUENCE", r[r.STRUCTURED_APPEND_PARITY = 10] = "STRUCTURED_APPEND_PARITY";
@@ -5865,7 +5869,7 @@ var qi = (
5865
5869
  } catch (f) {
5866
5870
  throw n ?? f;
5867
5871
  }
5868
- var l = new ze(o.getText(), o.getRawBytes(), o.getNumBits(), a, F.AZTEC, de.currentTimeMillis()), c = o.getByteSegments();
5872
+ var l = new ze(o.getText(), o.getRawBytes(), o.getNumBits(), a, B.AZTEC, de.currentTimeMillis()), c = o.getByteSegments();
5869
5873
  c != null && l.putMetadata(Ve.BYTE_SEGMENTS, c);
5870
5874
  var u = o.getECLevel();
5871
5875
  return u != null && l.putMetadata(Ve.ERROR_CORRECTION_LEVEL, u), l;
@@ -6157,19 +6161,19 @@ var Se = (
6157
6161
  }
6158
6162
  R && (u = u === e.CODE_CODE_A ? e.CODE_CODE_B : e.CODE_CODE_A);
6159
6163
  }
6160
- var V = g - v;
6164
+ var M = g - v;
6161
6165
  if (g = n.getNextUnset(g), !n.isRange(g, Math.min(n.getSize(), g + (g - v) / 2), !1))
6162
6166
  throw new O();
6163
6167
  if (C -= A * m, C % 103 !== m)
6164
6168
  throw new Ne();
6165
- var B = d.length;
6166
- if (B === 0)
6169
+ var F = d.length;
6170
+ if (F === 0)
6167
6171
  throw new O();
6168
- B > 0 && E && (u === e.CODE_CODE_C ? d = d.substring(0, B - 2) : d = d.substring(0, B - 1));
6169
- for (var Z = (o[1] + o[0]) / 2, U = v + V / 2, K = c.length, H = new Uint8Array(K), ee = 0; ee < K; ee++)
6172
+ F > 0 && E && (u === e.CODE_CODE_C ? d = d.substring(0, F - 2) : d = d.substring(0, F - 1));
6173
+ for (var Z = (o[1] + o[0]) / 2, U = v + M / 2, K = c.length, H = new Uint8Array(K), ee = 0; ee < K; ee++)
6170
6174
  H[ee] = c[ee];
6171
6175
  var $ = [new k(Z, t), new k(U, t)];
6172
- return new ze(d, H, 0, $, F.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6176
+ return new ze(d, H, 0, $, B.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6173
6177
  }, e.CODE_PATTERNS = [
6174
6178
  Int32Array.from([2, 1, 2, 2, 2, 2]),
6175
6179
  Int32Array.from([2, 2, 2, 1, 2, 2]),
@@ -6359,18 +6363,18 @@ var Se = (
6359
6363
  if (f !== h && b * 2 < C)
6360
6364
  throw new O();
6361
6365
  if (this.usingCheckDigit) {
6362
- for (var N = this.decodeRowResult.length - 1, R = 0, V = 0; V < N; V++)
6363
- R += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(V));
6366
+ for (var N = this.decodeRowResult.length - 1, R = 0, M = 0; M < N; M++)
6367
+ R += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(M));
6364
6368
  if (this.decodeRowResult.charAt(N) !== e.ALPHABET_STRING.charAt(R % 43))
6365
6369
  throw new Ne();
6366
6370
  this.decodeRowResult = this.decodeRowResult.substring(0, N);
6367
6371
  }
6368
6372
  if (this.decodeRowResult.length === 0)
6369
6373
  throw new O();
6370
- var B;
6371
- this.extendedMode ? B = e.decodeExtended(this.decodeRowResult) : B = this.decodeRowResult;
6374
+ var F;
6375
+ this.extendedMode ? F = e.decodeExtended(this.decodeRowResult) : F = this.decodeRowResult;
6372
6376
  var Z = (u[1] + u[0]) / 2, U = v + C / 2;
6373
- return new ze(B, null, 0, [new k(Z, t), new k(U, t)], F.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6377
+ return new ze(F, null, 0, [new k(Z, t), new k(U, t)], B.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6374
6378
  }, e.findAsteriskPattern = function(t, n) {
6375
6379
  for (var i = t.getSize(), a = t.getNextSet(0), o = 0, s = a, l = !1, c = n.length, u = a; u < i; u++)
6376
6380
  if (t.get(u) !== l)
@@ -6571,8 +6575,8 @@ var Se = (
6571
6575
  var w = m.value;
6572
6576
  u += w;
6573
6577
  }
6574
- } catch (V) {
6575
- a = { error: V };
6578
+ } catch (M) {
6579
+ a = { error: M };
6576
6580
  } finally {
6577
6581
  try {
6578
6582
  m && !m.done && (o = x.return) && o.call(x);
@@ -6589,8 +6593,8 @@ var Se = (
6589
6593
  var w = E.value;
6590
6594
  C += w;
6591
6595
  }
6592
- } catch (V) {
6593
- s = { error: V };
6596
+ } catch (M) {
6597
+ s = { error: M };
6594
6598
  } finally {
6595
6599
  try {
6596
6600
  E && !E.done && (l = A.return) && l.call(A);
@@ -6604,7 +6608,7 @@ var Se = (
6604
6608
  throw new O();
6605
6609
  this.checkChecksums(this.decodeRowResult), this.decodeRowResult = this.decodeRowResult.substring(0, this.decodeRowResult.length - 2);
6606
6610
  var b = this.decodeExtended(this.decodeRowResult), N = (c[1] + c[0]) / 2, R = v + C / 2;
6607
- return new ze(b, null, 0, [new k(N, t), new k(R, t)], F.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6611
+ return new ze(b, null, 0, [new k(N, t), new k(R, t)], B.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6608
6612
  }, e.prototype.findAsteriskPattern = function(t) {
6609
6613
  var n = t.getSize(), i = t.getNextSet(0);
6610
6614
  this.counters.fill(0);
@@ -6830,7 +6834,7 @@ var Se = (
6830
6834
  // no natural byte representation for these barcodes
6831
6835
  0,
6832
6836
  w,
6833
- F.ITF,
6837
+ B.ITF,
6834
6838
  (/* @__PURE__ */ new Date()).getTime()
6835
6839
  );
6836
6840
  return C;
@@ -7048,7 +7052,7 @@ var Se = (
7048
7052
  var i = this.decodeRowStringBuffer, a = this.decodeMiddle(t, n, i), o = i.toString(), s = r.parseExtensionString(o), l = [
7049
7053
  new k((n[0] + n[1]) / 2, e),
7050
7054
  new k(a, e)
7051
- ], c = new ze(o, null, 0, l, F.UPC_EAN_EXTENSION, (/* @__PURE__ */ new Date()).getTime());
7055
+ ], c = new ze(o, null, 0, l, B.UPC_EAN_EXTENSION, (/* @__PURE__ */ new Date()).getTime());
7052
7056
  return s != null && c.putAllMetadata(s), c;
7053
7057
  }, r.prototype.decodeMiddle = function(e, t, n) {
7054
7058
  var i, a, o = this.decodeMiddleCounters;
@@ -7142,7 +7146,7 @@ var Se = (
7142
7146
  var i = this.decodeRowStringBuffer, a = this.decodeMiddle(t, n, i), o = i.toString(), s = r.parseExtensionString(o), l = [
7143
7147
  new k((n[0] + n[1]) / 2, e),
7144
7148
  new k(a, e)
7145
- ], c = new ze(o, null, 0, l, F.UPC_EAN_EXTENSION, (/* @__PURE__ */ new Date()).getTime());
7149
+ ], c = new ze(o, null, 0, l, B.UPC_EAN_EXTENSION, (/* @__PURE__ */ new Date()).getTime());
7146
7150
  return s != null && c.putAllMetadata(s), c;
7147
7151
  }, r.prototype.decodeMiddle = function(e, t, n) {
7148
7152
  var i, a, o = this.decodeMiddleCounters;
@@ -7254,16 +7258,16 @@ var Se = (
7254
7258
  }
7255
7259
  var R = i == null ? null : i.get(ge.ALLOWED_EAN_EXTENSIONS);
7256
7260
  if (R != null) {
7257
- var V = !1;
7258
- for (var B in R)
7259
- if (b.toString() === B) {
7260
- V = !0;
7261
+ var M = !1;
7262
+ for (var F in R)
7263
+ if (b.toString() === F) {
7264
+ M = !0;
7261
7265
  break;
7262
7266
  }
7263
- if (!V)
7267
+ if (!M)
7264
7268
  throw new O();
7265
7269
  }
7266
- return C === F.EAN_13 || F.UPC_A, E;
7270
+ return C === B.EAN_13 || B.UPC_A, E;
7267
7271
  }, e.checkChecksum = function(t) {
7268
7272
  return e.checkStandardUPCEANChecksum(t);
7269
7273
  }, e.checkStandardUPCEANChecksum = function(t) {
@@ -7368,7 +7372,7 @@ var Se = (
7368
7372
  }
7369
7373
  return { rowOffset: f, resultString: i };
7370
7374
  }, e.prototype.getBarcodeFormat = function() {
7371
- return F.EAN_13;
7375
+ return B.EAN_13;
7372
7376
  }, e.determineFirstDigit = function(t, n) {
7373
7377
  for (var i = 0; i < 10; i++)
7374
7378
  if (n === this.FIRST_DIGIT_ENCODINGS[i])
@@ -7451,7 +7455,7 @@ var Se = (
7451
7455
  }
7452
7456
  return { rowOffset: f, resultString: i };
7453
7457
  }, e.prototype.getBarcodeFormat = function() {
7454
- return F.EAN_8;
7458
+ return B.EAN_8;
7455
7459
  }, e;
7456
7460
  }(Ae)
7457
7461
  ), yu = /* @__PURE__ */ function() {
@@ -7478,7 +7482,7 @@ var Se = (
7478
7482
  return t.ean13Reader = new ti(), t;
7479
7483
  }
7480
7484
  return e.prototype.getBarcodeFormat = function() {
7481
- return F.UPC_A;
7485
+ return B.UPC_A;
7482
7486
  }, e.prototype.decode = function(t, n) {
7483
7487
  return this.maybeReturnResult(this.ean13Reader.decode(t));
7484
7488
  }, e.prototype.decodeRow = function(t, n, i) {
@@ -7488,7 +7492,7 @@ var Se = (
7488
7492
  }, e.prototype.maybeReturnResult = function(t) {
7489
7493
  var n = t.getText();
7490
7494
  if (n.charAt(0) === "0") {
7491
- var i = new ze(n.substring(1), null, null, t.getResultPoints(), F.UPC_A);
7495
+ var i = new ze(n.substring(1), null, null, t.getResultPoints(), B.UPC_A);
7492
7496
  return t.getResultMetadata() != null && i.putAllMetadata(t.getResultMetadata()), i;
7493
7497
  } else
7494
7498
  throw new O();
@@ -7573,7 +7577,7 @@ var Se = (
7573
7577
  }
7574
7578
  throw O.getNotFoundInstance();
7575
7579
  }, e.prototype.getBarcodeFormat = function() {
7576
- return F.UPC_E;
7580
+ return B.UPC_E;
7577
7581
  }, e.convertUPCEtoUPCA = function(t) {
7578
7582
  var n = t.slice(1, 7).split("").map(function(o) {
7579
7583
  return o.charCodeAt(0);
@@ -7634,7 +7638,7 @@ var Se = (
7634
7638
  Cu(e, r);
7635
7639
  function e(t) {
7636
7640
  var n = r.call(this) || this, i = t == null ? null : t.get(ge.POSSIBLE_FORMATS), a = [];
7637
- return i != null && (i.indexOf(F.EAN_13) > -1 && a.push(new ti()), i.indexOf(F.UPC_A) > -1 && a.push(new ta()), i.indexOf(F.EAN_8) > -1 && a.push(new ea()), i.indexOf(F.UPC_E) > -1 && a.push(new ra())), a.length === 0 && (a.push(new ti()), a.push(new ta()), a.push(new ea()), a.push(new ra())), n.readers = a, n;
7641
+ return i != null && (i.indexOf(B.EAN_13) > -1 && a.push(new ti()), i.indexOf(B.UPC_A) > -1 && a.push(new ta()), i.indexOf(B.EAN_8) > -1 && a.push(new ea()), i.indexOf(B.UPC_E) > -1 && a.push(new ra())), a.length === 0 && (a.push(new ti()), a.push(new ta()), a.push(new ea()), a.push(new ra())), n.readers = a, n;
7638
7642
  }
7639
7643
  return e.prototype.decodeRow = function(t, n, i) {
7640
7644
  var a, o;
@@ -7642,9 +7646,9 @@ var Se = (
7642
7646
  for (var s = na(this.readers), l = s.next(); !l.done; l = s.next()) {
7643
7647
  var c = l.value;
7644
7648
  try {
7645
- var u = c.decodeRow(t, n, i), f = u.getBarcodeFormat() === F.EAN_13 && u.getText().charAt(0) === "0", h = i == null ? null : i.get(ge.POSSIBLE_FORMATS), d = h == null || h.includes(F.UPC_A);
7649
+ var u = c.decodeRow(t, n, i), f = u.getBarcodeFormat() === B.EAN_13 && u.getText().charAt(0) === "0", h = i == null ? null : i.get(ge.POSSIBLE_FORMATS), d = h == null || h.includes(B.UPC_A);
7646
7650
  if (f && d) {
7647
- var v = u.getRawBytes(), g = new ze(u.getText().substring(1), v, v ? v.length : null, u.getResultPoints(), F.UPC_A);
7651
+ var v = u.getRawBytes(), g = new ze(u.getText().substring(1), v, v ? v.length : null, u.getResultPoints(), B.UPC_A);
7648
7652
  return g.putAllMetadata(u.getResultMetadata()), g;
7649
7653
  }
7650
7654
  return u;
@@ -7730,7 +7734,7 @@ var Se = (
7730
7734
  var o = this.codaBarDecodeRow(a.row);
7731
7735
  if (!o)
7732
7736
  throw new O();
7733
- return new ze(o, null, 0, [new k(a.left, t), new k(a.right, t)], F.CODABAR, (/* @__PURE__ */ new Date()).getTime());
7737
+ return new ze(o, null, 0, [new k(a.left, t), new k(a.right, t)], B.CODABAR, (/* @__PURE__ */ new Date()).getTime());
7734
7738
  }, e.prototype.getValidRowData = function(t) {
7735
7739
  var n = t.toArray(), i = n.indexOf(!0);
7736
7740
  if (i === -1)
@@ -9235,7 +9239,7 @@ var ia = (
9235
9239
  return this.rows;
9236
9240
  }, e.constructResult = function(t) {
9237
9241
  var n = Iu.buildBitArray(t), i = ju(n), a = i.parseInformation(), o = t[0].getFinderPattern().getResultPoints(), s = t[t.length - 1].getFinderPattern().getResultPoints(), l = [o[0], o[1], s[0], s[1]];
9238
- return new ze(a, null, null, l, F.RSS_EXPANDED, null);
9242
+ return new ze(a, null, null, l, B.RSS_EXPANDED, null);
9239
9243
  }, e.prototype.checkChecksum = function() {
9240
9244
  var t = this.pairs.get(0), n = t.getLeftChar(), i = t.getRightChar();
9241
9245
  if (i === null)
@@ -9361,16 +9365,16 @@ var ia = (
9361
9365
  }
9362
9366
  b += v[l];
9363
9367
  }
9364
- for (var V = 0, l = g.length - 1; l >= 0; l--)
9368
+ for (var M = 0, l = g.length - 1; l >= 0; l--)
9365
9369
  if (e.isNotA1left(n, i, a)) {
9366
9370
  var R = e.WEIGHTS[E][2 * l + 1];
9367
- V += g[l] * R;
9371
+ M += g[l] * R;
9368
9372
  }
9369
- var B = N + V;
9373
+ var F = N + M;
9370
9374
  if ((b & 1) !== 0 || b > 13 || b < 4)
9371
9375
  throw new O();
9372
9376
  var Z = (13 - b) / 2, U = e.SYMBOL_WIDEST[Z], K = 9 - U, H = Ht.getRSSvalue(v, U, !0), ee = Ht.getRSSvalue(g, K, !1), $ = e.EVEN_TOTAL_SUBSET[Z], le = e.GSUM[Z], Fe = H * $ + ee + le;
9373
- return new an(Fe, B);
9377
+ return new an(Fe, F);
9374
9378
  }, e.isNotA1left = function(t, n, i) {
9375
9379
  return !(t.getValue() === 0 && n && i);
9376
9380
  }, e.prototype.adjustOddEvenCounts = function(t) {
@@ -9668,7 +9672,7 @@ var ia = (
9668
9672
  }
9669
9673
  l = 10 - l % 10, l === 10 && (l = 0), o.append(l.toString());
9670
9674
  var u = t.getFinderPattern().getResultPoints(), f = n.getFinderPattern().getResultPoints();
9671
- return new ze(o.toString(), null, 0, [u[0], u[1], f[0], f[1]], F.RSS_14, (/* @__PURE__ */ new Date()).getTime());
9675
+ return new ze(o.toString(), null, 0, [u[0], u[1], f[0], f[1]], B.RSS_14, (/* @__PURE__ */ new Date()).getTime());
9672
9676
  }, e.checkChecksum = function(t, n) {
9673
9677
  var i = (t.getChecksumPortion() + 16 * n.getChecksumPortion()) % 79, a = 9 * t.getFinderPattern().getValue() + n.getFinderPattern().getValue();
9674
9678
  return a > 72 && a--, a > 8 && a--, i === a;
@@ -9711,12 +9715,12 @@ var ia = (
9711
9715
  if (i) {
9712
9716
  if ((C & 1) !== 0 || C > 12 || C < 4)
9713
9717
  throw new O();
9714
- var R = (12 - C) / 2, V = e.OUTSIDE_ODD_WIDEST[R], B = 9 - V, Z = Ht.getRSSvalue(h, V, !1), U = Ht.getRSSvalue(d, B, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[R], H = e.OUTSIDE_GSUM[R];
9718
+ var R = (12 - C) / 2, M = e.OUTSIDE_ODD_WIDEST[R], F = 9 - M, Z = Ht.getRSSvalue(h, M, !1), U = Ht.getRSSvalue(d, F, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[R], H = e.OUTSIDE_GSUM[R];
9715
9719
  return new an(Z * K + U + H, N);
9716
9720
  } else {
9717
9721
  if ((b & 1) !== 0 || b > 10 || b < 4)
9718
9722
  throw new O();
9719
- var R = (10 - b) / 2, V = e.INSIDE_ODD_WIDEST[R], B = 9 - V, Z = Ht.getRSSvalue(h, V, !0), U = Ht.getRSSvalue(d, B, !1), ee = e.INSIDE_ODD_TOTAL_SUBSET[R], H = e.INSIDE_GSUM[R];
9723
+ var R = (10 - b) / 2, M = e.INSIDE_ODD_WIDEST[R], F = 9 - M, Z = Ht.getRSSvalue(h, M, !0), U = Ht.getRSSvalue(d, F, !1), ee = e.INSIDE_ODD_TOTAL_SUBSET[R], H = e.INSIDE_GSUM[R];
9720
9724
  return new an(U * ee + Z + H, N);
9721
9725
  }
9722
9726
  }, e.prototype.findFinderPattern = function(t, n) {
@@ -9824,7 +9828,7 @@ var ia = (
9824
9828
  var n = r.call(this) || this;
9825
9829
  n.readers = [];
9826
9830
  var i = t ? t.get(ge.POSSIBLE_FORMATS) : null, a = t && t.get(ge.ASSUME_CODE_39_CHECK_DIGIT) !== void 0;
9827
- return i && ((i.includes(F.EAN_13) || i.includes(F.UPC_A) || i.includes(F.EAN_8) || i.includes(F.UPC_E)) && n.readers.push(new zn(t)), i.includes(F.CODE_39) && n.readers.push(new Yi(a)), i.includes(F.CODE_93) && n.readers.push(new Zi()), i.includes(F.CODE_128) && n.readers.push(new ji()), i.includes(F.ITF) && n.readers.push(new Ki()), i.includes(F.CODABAR) && n.readers.push(new _u()), i.includes(F.RSS_14) && n.readers.push(new aa()), i.includes(F.RSS_EXPANDED) && (console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."), n.readers.push(new Ku()))), n.readers.length === 0 && (n.readers.push(new zn(t)), n.readers.push(new Yi()), n.readers.push(new Zi()), n.readers.push(new zn(t)), n.readers.push(new ji()), n.readers.push(new Ki()), n.readers.push(new aa())), n;
9831
+ return i && ((i.includes(B.EAN_13) || i.includes(B.UPC_A) || i.includes(B.EAN_8) || i.includes(B.UPC_E)) && n.readers.push(new zn(t)), i.includes(B.CODE_39) && n.readers.push(new Yi(a)), i.includes(B.CODE_93) && n.readers.push(new Zi()), i.includes(B.CODE_128) && n.readers.push(new ji()), i.includes(B.ITF) && n.readers.push(new Ki()), i.includes(B.CODABAR) && n.readers.push(new _u()), i.includes(B.RSS_14) && n.readers.push(new aa()), i.includes(B.RSS_EXPANDED) && (console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."), n.readers.push(new Ku()))), n.readers.length === 0 && (n.readers.push(new zn(t)), n.readers.push(new Yi()), n.readers.push(new Zi()), n.readers.push(new zn(t)), n.readers.push(new ji()), n.readers.push(new Ki()), n.readers.push(new aa())), n;
9828
9832
  }
9829
9833
  return e.prototype.decodeRow = function(t, n, i) {
9830
9834
  for (var a = 0; a < this.readers.length; a++)
@@ -10112,11 +10116,11 @@ var oa = function(r) {
10112
10116
  for (var A = d[0].codewords.length, E = A - s.getECCodewords(), b = E - 1, N = 0, m = 0; m < b; m++)
10113
10117
  for (var R = 0; R < v; R++)
10114
10118
  d[R].codewords[m] = e[N++];
10115
- for (var V = t.getVersionNumber() === 24, B = V ? 8 : v, R = 0; R < B; R++)
10119
+ for (var M = t.getVersionNumber() === 24, F = M ? 8 : v, R = 0; R < F; R++)
10116
10120
  d[R].codewords[E - 1] = e[N++];
10117
10121
  for (var Z = d[0].codewords.length, m = E; m < Z; m++)
10118
10122
  for (var R = 0; R < v; R++) {
10119
- var U = V ? (R + 8) % v : R, K = V && U > 7 ? m - 1 : m;
10123
+ var U = M ? (R + 8) % v : R, K = M && U > 7 ? m - 1 : m;
10120
10124
  d[U].codewords[K] = e[N++];
10121
10125
  }
10122
10126
  if (N !== e.length)
@@ -10695,7 +10699,7 @@ var sf = (
10695
10699
  var o = new uf(e.getBlackMatrix()).detect();
10696
10700
  n = this.decoder.decode(o.getBits()), i = o.getPoints();
10697
10701
  }
10698
- var s = n.getRawBytes(), l = new ze(n.getText(), s, 8 * s.length, i, F.DATA_MATRIX, de.currentTimeMillis()), c = n.getByteSegments();
10702
+ var s = n.getRawBytes(), l = new ze(n.getText(), s, 8 * s.length, i, B.DATA_MATRIX, de.currentTimeMillis()), c = n.getByteSegments();
10699
10703
  c != null && l.putMetadata(Ve.BYTE_SEGMENTS, c);
10700
10704
  var u = n.getECLevel();
10701
10705
  return u != null && l.putMetadata(Ve.ERROR_CORRECTION_LEVEL, u), l;
@@ -11277,15 +11281,15 @@ var la = (
11277
11281
  b--;
11278
11282
  }
11279
11283
  b++;
11280
- for (var R = E - l.getECCodewordsPerBlock(), V = 0, w = 0; w < R; w++)
11281
- for (var B = 0; B < g; B++)
11282
- v[B].codewords[w] = e[V++];
11283
- for (var B = b; B < g; B++)
11284
- v[B].codewords[R] = e[V++];
11284
+ for (var R = E - l.getECCodewordsPerBlock(), M = 0, w = 0; w < R; w++)
11285
+ for (var F = 0; F < g; F++)
11286
+ v[F].codewords[w] = e[M++];
11287
+ for (var F = b; F < g; F++)
11288
+ v[F].codewords[R] = e[M++];
11285
11289
  for (var Z = v[0].codewords.length, w = R; w < Z; w++)
11286
- for (var B = 0; B < g; B++) {
11287
- var U = B < b ? w : w + 1;
11288
- v[B].codewords[U] = e[V++];
11290
+ for (var F = 0; F < g; F++) {
11291
+ var U = F < b ? w : w + 1;
11292
+ v[F].codewords[U] = e[M++];
11289
11293
  }
11290
11294
  return v;
11291
11295
  }, r.prototype.getNumDataCodewords = function() {
@@ -12082,8 +12086,8 @@ var ve = (
12082
12086
  // CenterComparator implements Comparator<FinderPattern>
12083
12087
  function(b, N) {
12084
12088
  if (N.getCount() === b.getCount()) {
12085
- var R = Math.abs(N.getEstimatedModuleSize() - s), V = Math.abs(b.getEstimatedModuleSize() - s);
12086
- return R < V ? 1 : R > V ? -1 : 0;
12089
+ var R = Math.abs(N.getEstimatedModuleSize() - s), M = Math.abs(b.getEstimatedModuleSize() - s);
12090
+ return R < M ? 1 : R > M ? -1 : 0;
12087
12091
  } else
12088
12092
  return N.getCount() - b.getCount();
12089
12093
  }
@@ -12244,7 +12248,7 @@ var ve = (
12244
12248
  n = this.decoder.decodeBitMatrix(o.getBits(), t), i = o.getPoints();
12245
12249
  }
12246
12250
  n.getOther() instanceof Do && n.getOther().applyMirroredCorrection(i);
12247
- var s = new ze(n.getText(), n.getRawBytes(), void 0, i, F.QR_CODE, void 0), l = n.getByteSegments();
12251
+ var s = new ze(n.getText(), n.getRawBytes(), void 0, i, B.QR_CODE, void 0), l = n.getByteSegments();
12248
12252
  l !== null && s.putMetadata(Ve.BYTE_SEGMENTS, l);
12249
12253
  var c = n.getECLevel();
12250
12254
  return c !== null && s.putMetadata(Ve.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(Ve.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(Ve.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
@@ -19938,7 +19942,7 @@ var nd = (
19938
19942
  var i, a, o = new Array(), s = Rf.detectMultiple(e, t, n);
19939
19943
  try {
19940
19944
  for (var l = ad(s.getPoints()), c = l.next(); !c.done; c = l.next()) {
19941
- var u = c.value, f = id.decode(s.getBits(), u[4], u[5], u[6], u[7], r.getMinCodewordWidth(u), r.getMaxCodewordWidth(u)), h = new ze(f.getText(), f.getRawBytes(), void 0, u, F.PDF_417);
19945
+ var u = c.value, f = id.decode(s.getBits(), u[4], u[5], u[6], u[7], r.getMinCodewordWidth(u), r.getMaxCodewordWidth(u)), h = new ze(f.getText(), f.getRawBytes(), void 0, u, B.PDF_417);
19942
19946
  h.putMetadata(Ve.ERROR_CORRECTION_LEVEL, f.getECLevel());
19943
19947
  var d = f.getOther();
19944
19948
  d != null && h.putMetadata(Ve.PDF417_EXTRA_METADATA, d), o.push(h);
@@ -20013,9 +20017,9 @@ var nd = (
20013
20017
  var t = e != null && e.get(ge.TRY_HARDER) !== void 0, n = e == null ? null : e.get(ge.POSSIBLE_FORMATS), i = new Array();
20014
20018
  if (n != null) {
20015
20019
  var a = n.some(function(o) {
20016
- return o === F.UPC_A || o === F.UPC_E || o === F.EAN_13 || o === F.EAN_8 || o === F.CODABAR || o === F.CODE_39 || o === F.CODE_93 || o === F.CODE_128 || o === F.ITF || o === F.RSS_14 || o === F.RSS_EXPANDED;
20020
+ return o === B.UPC_A || o === B.UPC_E || o === B.EAN_13 || o === B.EAN_8 || o === B.CODABAR || o === B.CODE_39 || o === B.CODE_93 || o === B.CODE_128 || o === B.ITF || o === B.RSS_14 || o === B.RSS_EXPANDED;
20017
20021
  });
20018
- a && !t && i.push(new gr(e)), n.includes(F.QR_CODE) && i.push(new ni()), n.includes(F.DATA_MATRIX) && i.push(new ri()), n.includes(F.AZTEC) && i.push(new ei()), n.includes(F.PDF_417) && i.push(new ai()), a && t && i.push(new gr(e));
20022
+ a && !t && i.push(new gr(e)), n.includes(B.QR_CODE) && i.push(new ni()), n.includes(B.DATA_MATRIX) && i.push(new ri()), n.includes(B.AZTEC) && i.push(new ei()), n.includes(B.PDF_417) && i.push(new ai()), a && t && i.push(new gr(e));
20019
20023
  }
20020
20024
  i.length === 0 && (t || i.push(new gr(e)), i.push(new ni()), i.push(new ri()), i.push(new ei()), i.push(new ai()), t && i.push(new gr(e))), this.readers = i;
20021
20025
  }, r.prototype.reset = function() {
@@ -20748,8 +20752,8 @@ var Vo = (
20748
20752
  var b = E.value, m = b.getDataBytes();
20749
20753
  d < m.length && C.appendBits(m[d], 8);
20750
20754
  }
20751
- } catch (B) {
20752
- a = { error: B };
20755
+ } catch (F) {
20756
+ a = { error: F };
20753
20757
  } finally {
20754
20758
  try {
20755
20759
  E && !E.done && (o = A.return) && o.call(A);
@@ -20763,8 +20767,8 @@ var Vo = (
20763
20767
  var b = R.value, w = b.getErrorCorrectionBytes();
20764
20768
  d < w.length && C.appendBits(w[d], 8);
20765
20769
  }
20766
- } catch (B) {
20767
- s = { error: B };
20770
+ } catch (F) {
20771
+ s = { error: F };
20768
20772
  } finally {
20769
20773
  try {
20770
20774
  R && !R.done && (l = N.return) && l.call(N);
@@ -21873,8 +21877,8 @@ var ya = 129, Po = 230, Ad = 231, _d = 235, Ed = 236, Sd = 237, bd = 238, Id = 2
21873
21877
  "windows-1252",
21874
21878
  "windows-1256",
21875
21879
  "Shift_JIS"
21876
- ].map(function(V) {
21877
- return new Aa(yd.forName(V));
21880
+ ].map(function(M) {
21881
+ return new Aa(yd.forName(M));
21878
21882
  }), this.encoders = [];
21879
21883
  var u = [];
21880
21884
  u.push(new Aa(md.ISO_8859_1));
@@ -21888,8 +21892,8 @@ var ya = 129, Po = 230, Ad = 231, _d = 235, Ed = 236, Sd = 237, bd = 238, Id = 2
21888
21892
  break;
21889
21893
  }
21890
21894
  }
21891
- } catch (V) {
21892
- i = { error: V };
21895
+ } catch (M) {
21896
+ i = { error: M };
21893
21897
  } finally {
21894
21898
  try {
21895
21899
  g && !g.done && (a = v.return) && a.call(v);
@@ -21906,8 +21910,8 @@ var ya = 129, Po = 230, Ad = 231, _d = 235, Ed = 236, Sd = 237, bd = 238, Id = 2
21906
21910
  break;
21907
21911
  }
21908
21912
  }
21909
- } catch (V) {
21910
- o = { error: V };
21913
+ } catch (M) {
21914
+ o = { error: M };
21911
21915
  } finally {
21912
21916
  try {
21913
21917
  A && !A.done && (s = C.return) && s.call(C);
@@ -21927,8 +21931,8 @@ var ya = 129, Po = 230, Ad = 231, _d = 235, Ed = 236, Sd = 237, bd = 238, Id = 2
21927
21931
  var x = N.value;
21928
21932
  this.encoders[E++] = x;
21929
21933
  }
21930
- } catch (V) {
21931
- l = { error: V };
21934
+ } catch (M) {
21935
+ l = { error: M };
21932
21936
  } finally {
21933
21937
  try {
21934
21938
  N && !N.done && (c = b.return) && c.call(b);
@@ -22652,18 +22656,18 @@ var qn = i1(Ee.createInt32Array(5, 256)), jr = function(r) {
22652
22656
  }
22653
22657
  }
22654
22658
  for (var N = new gt(C), d = 0, R = 0; d < l; d++) {
22655
- for (var V = (l - d) * 4 + (s ? 9 : 12), B = 0; B < V; B++)
22656
- for (var Z = B * 2, U = 0; U < 2; U++)
22657
- v.get(R + Z + U) && N.set(w[d * 2 + U], w[d * 2 + B]), v.get(R + V * 2 + Z + U) && N.set(w[d * 2 + B], w[m - 1 - d * 2 - U]), v.get(R + V * 4 + Z + U) && N.set(w[m - 1 - d * 2 - U], w[m - 1 - d * 2 - B]), v.get(R + V * 6 + Z + U) && N.set(w[m - 1 - d * 2 - B], w[d * 2 + U]);
22658
- R += V * 8;
22659
+ for (var M = (l - d) * 4 + (s ? 9 : 12), F = 0; F < M; F++)
22660
+ for (var Z = F * 2, U = 0; U < 2; U++)
22661
+ v.get(R + Z + U) && N.set(w[d * 2 + U], w[d * 2 + F]), v.get(R + M * 2 + Z + U) && N.set(w[d * 2 + F], w[m - 1 - d * 2 - U]), v.get(R + M * 4 + Z + U) && N.set(w[m - 1 - d * 2 - U], w[m - 1 - d * 2 - F]), v.get(R + M * 6 + Z + U) && N.set(w[m - 1 - d * 2 - F], w[d * 2 + U]);
22662
+ R += M * 8;
22659
22663
  }
22660
22664
  if (r.drawModeMessage(N, s, C, x), s)
22661
22665
  r.drawBullsEye(N, Y.truncDivision(C, 2), 5);
22662
22666
  else {
22663
22667
  r.drawBullsEye(N, Y.truncDivision(C, 2), 7);
22664
- for (var d = 0, B = 0; d < Y.truncDivision(m, 2) - 1; d += 15, B += 16)
22668
+ for (var d = 0, F = 0; d < Y.truncDivision(m, 2) - 1; d += 15, F += 16)
22665
22669
  for (var U = Y.truncDivision(C, 2) & 1; U < C; U += 2)
22666
- N.set(Y.truncDivision(C, 2) - B, U), N.set(Y.truncDivision(C, 2) + B, U), N.set(U, Y.truncDivision(C, 2) - B), N.set(U, Y.truncDivision(C, 2) + B);
22670
+ N.set(Y.truncDivision(C, 2) - F, U), N.set(Y.truncDivision(C, 2) + F, U), N.set(U, Y.truncDivision(C, 2) - F), N.set(U, Y.truncDivision(C, 2) + F);
22667
22671
  }
22668
22672
  var K = new qd();
22669
22673
  return K.setCompact(s), K.setSize(C), K.setLayers(l), K.setCodeWords(g), K.setMatrix(N), K;
@@ -22779,23 +22783,23 @@ const s1 = /* @__PURE__ */ new Map([
22779
22783
  [
22780
22784
  zs.POSSIBLE_FORMATS,
22781
22785
  [
22782
- F.AZTEC,
22783
- F.CODABAR,
22784
- F.CODE_39,
22785
- F.CODE_93,
22786
- F.CODE_128,
22787
- F.DATA_MATRIX,
22788
- F.EAN_8,
22789
- F.EAN_13,
22790
- F.ITF,
22791
- F.MAXICODE,
22792
- F.PDF_417,
22793
- F.QR_CODE,
22794
- F.RSS_14,
22795
- F.RSS_EXPANDED,
22796
- F.UPC_A,
22797
- F.UPC_E,
22798
- F.UPC_EAN_EXTENSION
22786
+ B.AZTEC,
22787
+ B.CODABAR,
22788
+ B.CODE_39,
22789
+ B.CODE_93,
22790
+ B.CODE_128,
22791
+ B.DATA_MATRIX,
22792
+ B.EAN_8,
22793
+ B.EAN_13,
22794
+ B.ITF,
22795
+ B.MAXICODE,
22796
+ B.PDF_417,
22797
+ B.QR_CODE,
22798
+ B.RSS_14,
22799
+ B.RSS_EXPANDED,
22800
+ B.UPC_A,
22801
+ B.UPC_E,
22802
+ B.UPC_EAN_EXTENSION
22799
22803
  ]
22800
22804
  ]
22801
22805
  ]), Si = X((r) => {
@@ -22866,12 +22870,12 @@ const ko = X((r) => {
22866
22870
  [l, u, f]
22867
22871
  ), R = T(() => {
22868
22872
  g(E), v(E);
22869
- }, [E, v, g]), V = T(
22873
+ }, [E, v, g]), M = T(
22870
22874
  (U) => {
22871
22875
  g(U.getText()), w(!1);
22872
22876
  },
22873
22877
  [g]
22874
- ), B = T(() => {
22878
+ ), F = T(() => {
22875
22879
  w(!0);
22876
22880
  }, []), Z = T(() => {
22877
22881
  w(!1), v(x);
@@ -22906,7 +22910,7 @@ const ko = X((r) => {
22906
22910
  /* @__PURE__ */ _(
22907
22911
  z,
22908
22912
  {
22909
- onClick: B,
22913
+ onClick: F,
22910
22914
  className: "w-max",
22911
22915
  type: "button",
22912
22916
  variant: "soft",
@@ -22919,7 +22923,7 @@ const ko = X((r) => {
22919
22923
  ]
22920
22924
  }
22921
22925
  ),
22922
- /* @__PURE__ */ p(Si, { open: m, onDecodeResult: V, onOpenChange: Z })
22926
+ /* @__PURE__ */ p(Si, { open: m, onDecodeResult: M, onOpenChange: Z })
22923
22927
  ]
22924
22928
  }
22925
22929
  ) });
@@ -22988,12 +22992,14 @@ const $n = 500, zo = X((r) => {
22988
22992
  A(x);
22989
22993
  }, [x]);
22990
22994
  const E = T(
22991
- (N) => {
22992
- const R = N.target.value;
22993
- A(R), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(R));
22995
+ (R) => {
22996
+ const M = R.target.value;
22997
+ A(M), (u || !o.onlyValidateAfterTouched) && f.setError(o.getError(M));
22994
22998
  },
22995
22999
  [o, f, u]
22996
- ), b = T(() => {
23000
+ ), b = T((R) => {
23001
+ R.key === "Enter" && R.preventDefault();
23002
+ }, []), N = T(() => {
22997
23003
  g(C), v(C);
22998
23004
  }, [C, v, g]);
22999
23005
  return /* @__PURE__ */ p($e, { helpText: m, severity: i, children: /* @__PURE__ */ p(
@@ -23015,8 +23021,9 @@ const $n = 500, zo = X((r) => {
23015
23021
  type: "text",
23016
23022
  placeholder: o.placeholder,
23017
23023
  onChange: E,
23018
- onBlur: b,
23019
- disabled: h
23024
+ onBlur: N,
23025
+ disabled: h,
23026
+ onKeyDown: b
23020
23027
  }
23021
23028
  ) })
23022
23029
  }
@@ -23145,37 +23152,37 @@ let Mr = rr;
23145
23152
  const Ho = X((r) => {
23146
23153
  var R;
23147
23154
  const [{ inputId: e, labelId: t, label: n, size: i, severity: a, helpText: o, showInputOnly: s, field: l, fieldProps: c }, { disabled: u }] = je(r), { value: f, name: h, onChange: d, onBlur: v } = c, g = Br(null), x = oe(() => s ? null : o || (l.maxFileSize ? `Maximum file size: ${l.maxFileSize}MB` : null), [l.maxFileSize, o, s]), m = T(() => {
23148
- var V;
23149
- (V = g.current) == null || V.click();
23155
+ var M;
23156
+ (M = g.current) == null || M.click();
23150
23157
  }, []), w = T(() => {
23151
23158
  if (!g.current) return;
23152
- const V = g.current.files;
23153
- if (!V) {
23159
+ const M = g.current.files;
23160
+ if (!M) {
23154
23161
  v([]);
23155
23162
  return;
23156
23163
  }
23157
- const B = Array.from(V).map((U) => Ft.from(W(), U)), Z = [...f, ...B];
23164
+ const F = Array.from(M).map((U) => Ft.from(W(), U)), Z = [...f, ...F];
23158
23165
  d(Z), v(Z);
23159
23166
  }, [v, d, f]), C = T(
23160
- (V) => {
23161
- const B = [...f];
23162
- B.splice(V, 1), d(B);
23167
+ (M) => {
23168
+ const F = [...f];
23169
+ F.splice(M, 1), d(F);
23163
23170
  },
23164
23171
  [f, d]
23165
23172
  );
23166
23173
  ke(() => {
23167
23174
  if (!g.current) return;
23168
- const V = new AbortController();
23175
+ const M = new AbortController();
23169
23176
  return g.current.addEventListener(
23170
23177
  "cancel",
23171
23178
  () => {
23172
23179
  v([...f]);
23173
23180
  },
23174
23181
  {
23175
- signal: V.signal
23182
+ signal: M.signal
23176
23183
  }
23177
23184
  ), () => {
23178
- V.abort();
23185
+ M.abort();
23179
23186
  };
23180
23187
  }, [v, f]);
23181
23188
  const A = s ? "" : n, N = l.maxFiles > 1 ? "Select files" : "Select a file";
@@ -23223,16 +23230,16 @@ const Ho = X((r) => {
23223
23230
  ]
23224
23231
  }
23225
23232
  ) }),
23226
- Array.isArray(f) && f.length > 0 && /* @__PURE__ */ p("div", { className: "flex h-max flex-col gap-2", children: f.map((V, B) => /* @__PURE__ */ p(
23233
+ Array.isArray(f) && f.length > 0 && /* @__PURE__ */ p("div", { className: "flex h-max flex-col gap-2", children: f.map((M, F) => /* @__PURE__ */ p(
23227
23234
  gi,
23228
23235
  {
23229
- file: V,
23236
+ file: M,
23230
23237
  onRemove: () => {
23231
- C(B);
23238
+ C(F);
23232
23239
  },
23233
23240
  disabled: u
23234
23241
  },
23235
- B
23242
+ F
23236
23243
  )) })
23237
23244
  ] });
23238
23245
  });
@@ -23731,38 +23738,38 @@ const es = X, Bt = es(function(r) {
23731
23738
  const { ref: e, children: t, ...n } = r, i = T(
23732
23739
  (a) => typeof t == "function" ? /* @__PURE__ */ _(ft, { children: [
23733
23740
  t(a),
23734
- /* @__PURE__ */ p(M.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(D, { icon: tt }) })
23741
+ /* @__PURE__ */ p(V.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(D, { icon: tt }) })
23735
23742
  ] }) : /* @__PURE__ */ _(ft, { children: [
23736
23743
  t,
23737
- /* @__PURE__ */ p(M.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(D, { icon: tt }) })
23744
+ /* @__PURE__ */ p(V.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(D, { icon: tt }) })
23738
23745
  ] }),
23739
23746
  [t]
23740
23747
  );
23741
- return /* @__PURE__ */ p(M.SelectItem, { ref: e, ...n, children: i });
23748
+ return /* @__PURE__ */ p(V.SelectItem, { ref: e, ...n, children: i });
23742
23749
  }), ts = es(function(r) {
23743
23750
  const { ref: e, children: t, ...n } = r, i = T(
23744
23751
  (a) => typeof t == "function" ? /* @__PURE__ */ _(ft, { children: [
23745
23752
  t(a),
23746
- /* @__PURE__ */ p(M.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(D, { icon: tt }) })
23753
+ /* @__PURE__ */ p(V.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(D, { icon: tt }) })
23747
23754
  ] }) : /* @__PURE__ */ _(ft, { children: [
23748
23755
  t,
23749
- /* @__PURE__ */ p(M.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(D, { icon: tt }) })
23756
+ /* @__PURE__ */ p(V.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(D, { icon: tt }) })
23750
23757
  ] }),
23751
23758
  [t]
23752
23759
  );
23753
- return /* @__PURE__ */ p(M.MultiSelectItem, { ref: e, ...n, children: i });
23760
+ return /* @__PURE__ */ p(V.MultiSelectItem, { ref: e, ...n, children: i });
23754
23761
  }), Ri = X((r) => {
23755
23762
  const { ref: e, children: t, ...n } = r, i = T(
23756
23763
  (a) => typeof t == "function" ? /* @__PURE__ */ _(ft, { children: [
23757
23764
  t(a),
23758
- /* @__PURE__ */ p(M.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) })
23765
+ /* @__PURE__ */ p(V.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) })
23759
23766
  ] }) : /* @__PURE__ */ _(ft, { children: [
23760
23767
  t,
23761
- /* @__PURE__ */ p(M.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) })
23768
+ /* @__PURE__ */ p(V.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(D, { icon: en }) : /* @__PURE__ */ p(D, { icon: tt }) })
23762
23769
  ] }),
23763
23770
  [t]
23764
23771
  );
23765
- return /* @__PURE__ */ p(M.SelectAllItem, { ref: e, ...n, children: i });
23772
+ return /* @__PURE__ */ p(V.SelectAllItem, { ref: e, ...n, children: i });
23766
23773
  });
23767
23774
  Ri.displayName = "SelectAllItemTemplate";
23768
23775
  const Ze = (r) => {
@@ -23772,9 +23779,9 @@ const Ze = (r) => {
23772
23779
  },
23773
23780
  [t]
23774
23781
  );
23775
- return /* @__PURE__ */ _(M.Root, { align: "start", children: [
23776
- /* @__PURE__ */ p(M.ClickTrigger, { children: e }),
23777
- /* @__PURE__ */ p(M.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(M.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(Bt, { value: l, children: c.modifier.label }, l)) }) })
23782
+ return /* @__PURE__ */ _(V.Root, { align: "start", children: [
23783
+ /* @__PURE__ */ p(V.ClickTrigger, { children: e }),
23784
+ /* @__PURE__ */ p(V.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(V.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(Bt, { value: l, children: c.modifier.label }, l)) }) })
23778
23785
  ] });
23779
23786
  }, Qr = X((r) => {
23780
23787
  const { children: e, open: t, onOpenChange: n, defaultOpen: i, modal: a, size: o, align: s, accentColor: l = "base", ...c } = r;
@@ -23925,7 +23932,7 @@ const Hr = X((r) => {
23925
23932
  label: a
23926
23933
  } : a
23927
23934
  ), [t]);
23928
- return /* @__PURE__ */ _(M.MultiSelectGroup, { ref: e, ...n, children: [
23935
+ return /* @__PURE__ */ _(V.MultiSelectGroup, { ref: e, ...n, children: [
23929
23936
  /* @__PURE__ */ p(Ri, { children: "Select all" }),
23930
23937
  i.map((a) => /* @__PURE__ */ p(ts, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value))
23931
23938
  ] });
@@ -23938,7 +23945,7 @@ const Mi = X((r) => {
23938
23945
  label: a
23939
23946
  } : a
23940
23947
  ), [t]);
23941
- return /* @__PURE__ */ p(M.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(Bt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
23948
+ return /* @__PURE__ */ p(V.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(Bt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
23942
23949
  });
23943
23950
  Mi.displayName = "SelectFieldOptionSelectGroup";
23944
23951
  const Gr = X((r) => {
@@ -23999,10 +24006,10 @@ const S1 = (r) => {
23999
24006
  /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ue })
24000
24007
  ] }),
24001
24008
  /* @__PURE__ */ p(Ze, { condition: e, children: /* @__PURE__ */ p(z, { type: "button", children: e.modifiers[i].modifier.label }) }),
24002
- /* @__PURE__ */ _(M.Root, { children: [
24003
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: a() }) }),
24004
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ _(
24005
- M.SelectGroup,
24009
+ /* @__PURE__ */ _(V.Root, { children: [
24010
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: a() }) }),
24011
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ _(
24012
+ V.SelectGroup,
24006
24013
  {
24007
24014
  required: !0,
24008
24015
  value: n,
@@ -24066,9 +24073,9 @@ const b1 = (r) => {
24066
24073
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ue })
24067
24074
  ] }),
24068
24075
  /* @__PURE__ */ p(Ze, { condition: e, children: /* @__PURE__ */ p(z, { type: "button", children: e.modifiers[a].modifier.label }) }),
24069
- /* @__PURE__ */ _(M.Root, { children: [
24070
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "truncate", children: s() }) }),
24071
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
24076
+ /* @__PURE__ */ _(V.Root, { children: [
24077
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "truncate", children: s() }) }),
24078
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
24072
24079
  Hr,
24073
24080
  {
24074
24081
  values: i ?? [],
@@ -24296,9 +24303,9 @@ const O1 = (r) => {
24296
24303
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ue })
24297
24304
  ] }),
24298
24305
  /* @__PURE__ */ p(Ze, { condition: e, children: /* @__PURE__ */ p(z, { type: "button", children: e.modifiers[a].modifier.label }) }),
24299
- /* @__PURE__ */ _(M.Root, { children: [
24300
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "truncate", children: s() }) }),
24301
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
24306
+ /* @__PURE__ */ _(V.Root, { children: [
24307
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "truncate", children: s() }) }),
24308
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
24302
24309
  Hr,
24303
24310
  {
24304
24311
  values: i ?? [],
@@ -24628,10 +24635,10 @@ const R1 = (r) => {
24628
24635
  case "equals":
24629
24636
  case "notEquals": {
24630
24637
  const s = e.modifiers.equals, l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
24631
- return /* @__PURE__ */ _(M.Root, { children: [
24632
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: l !== void 0 ? l ? ar[l].label : "empty" : "..." }) }) }),
24633
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
24634
- M.SelectGroup,
24638
+ return /* @__PURE__ */ _(V.Root, { children: [
24639
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: l !== void 0 ? l ? ar[l].label : "empty" : "..." }) }) }),
24640
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
24641
+ V.SelectGroup,
24635
24642
  {
24636
24643
  required: !1,
24637
24644
  value: l,
@@ -24647,10 +24654,10 @@ const R1 = (r) => {
24647
24654
  case "includes":
24648
24655
  case "excludes": {
24649
24656
  const s = e.modifiers.includes, l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
24650
- return /* @__PURE__ */ _(M.Root, { children: [
24651
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: l ? `${l.length} statuses` : "..." }) }),
24652
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ _(
24653
- M.MultiSelectGroup,
24657
+ return /* @__PURE__ */ _(V.Root, { children: [
24658
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: l ? `${l.length} statuses` : "..." }) }),
24659
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ _(
24660
+ V.MultiSelectGroup,
24654
24661
  {
24655
24662
  values: l ?? Pi,
24656
24663
  onValuesChange: e.setConditionValue,
@@ -24740,9 +24747,9 @@ const M1 = (r) => {
24740
24747
  case "equals":
24741
24748
  case "notEquals": {
24742
24749
  const c = e.modifiers.equals, u = i !== void 0 && c.isConditionValueValid(i) ? i : void 0;
24743
- return /* @__PURE__ */ _(M.Root, { children: [
24744
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: u !== void 0 ? u ? s[u] : "empty" : "..." }) }) }),
24745
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
24750
+ return /* @__PURE__ */ _(V.Root, { children: [
24751
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: u !== void 0 ? u ? s[u] : "empty" : "..." }) }) }),
24752
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
24746
24753
  Mi,
24747
24754
  {
24748
24755
  required: !0,
@@ -24756,9 +24763,9 @@ const M1 = (r) => {
24756
24763
  case "includes":
24757
24764
  case "excludes": {
24758
24765
  const c = e.modifiers.includes, u = i !== void 0 && c.isConditionValueValid(i) ? i : void 0;
24759
- return /* @__PURE__ */ _(M.Root, { children: [
24760
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: u ? `${u.length} options` : "..." }) }),
24761
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
24766
+ return /* @__PURE__ */ _(V.Root, { children: [
24767
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: u ? `${u.length} options` : "..." }) }),
24768
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
24762
24769
  Hr,
24763
24770
  {
24764
24771
  selectFieldOptions: n.options,
@@ -25039,9 +25046,9 @@ const F1 = (r) => {
25039
25046
  case "equals":
25040
25047
  case "notEquals": {
25041
25048
  const u = e.modifiers.equals, f = i !== void 0 && u.isConditionValueValid(i) ? i : void 0;
25042
- return /* @__PURE__ */ _(M.Root, { children: [
25043
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: f !== void 0 ? f ? s[f] : "empty" : "..." }) }) }),
25044
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
25049
+ return /* @__PURE__ */ _(V.Root, { children: [
25050
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: /* @__PURE__ */ p("span", { className: "truncate", children: f !== void 0 ? f ? s[f] : "empty" : "..." }) }) }),
25051
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
25045
25052
  Mi,
25046
25053
  {
25047
25054
  required: !1,
@@ -25055,9 +25062,9 @@ const F1 = (r) => {
25055
25062
  case "includes":
25056
25063
  case "excludes": {
25057
25064
  const u = e.modifiers.includes, f = i !== void 0 && u.isConditionValueValid(i) ? i : void 0;
25058
- return /* @__PURE__ */ _(M.Root, { children: [
25059
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: f ? `${f.length} options` : "..." }) }),
25060
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ p(
25065
+ return /* @__PURE__ */ _(V.Root, { children: [
25066
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", children: f ? `${f.length} options` : "..." }) }),
25067
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ p(
25061
25068
  Hr,
25062
25069
  {
25063
25070
  selectFieldOptions: n.options,
@@ -25271,10 +25278,10 @@ const k1 = (r) => {
25271
25278
  /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ue })
25272
25279
  ] }),
25273
25280
  /* @__PURE__ */ p(Ze, { condition: e, children: /* @__PURE__ */ p(z, { type: "button", children: e.modifiers[a].modifier.label }) }),
25274
- /* @__PURE__ */ _(M.Root, { children: [
25275
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: o() }) }),
25276
- /* @__PURE__ */ p(M.Content, { size: "sm", children: /* @__PURE__ */ _(
25277
- M.SelectGroup,
25281
+ /* @__PURE__ */ _(V.Root, { children: [
25282
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(z, { type: "button", className: "min-w-0 shrink-1 grow", children: o() }) }),
25283
+ /* @__PURE__ */ p(V.Content, { size: "sm", children: /* @__PURE__ */ _(
25284
+ V.SelectGroup,
25278
25285
  {
25279
25286
  required: !0,
25280
25287
  value: i,
@@ -25830,9 +25837,9 @@ const zt = Fr(new Lt([])), ln = "form-builder", Rn = Fr({}), J1 = (r = () => nul
25830
25837
  }
25831
25838
  })), [r]), Mn = X((r) => {
25832
25839
  const { children: e, variant: t, size: n, accentColor: i, onSelectFieldType: a, ...o } = r, s = J1(a);
25833
- return /* @__PURE__ */ _(M.Root, { ...o, children: [
25834
- /* @__PURE__ */ p(M.ClickTrigger, { children: e }),
25835
- /* @__PURE__ */ p(M.Content, { variant: t, size: n, accentColor: i, children: /* @__PURE__ */ p(M.Scroll, { children: s.flat().map((l) => /* @__PURE__ */ _(M.Item, { onSelect: l.onSelect, children: [
25840
+ return /* @__PURE__ */ _(V.Root, { ...o, children: [
25841
+ /* @__PURE__ */ p(V.ClickTrigger, { children: e }),
25842
+ /* @__PURE__ */ p(V.Content, { variant: t, size: n, accentColor: i, children: /* @__PURE__ */ p(V.Scroll, { children: s.flat().map((l) => /* @__PURE__ */ _(V.Item, { onSelect: l.onSelect, children: [
25836
25843
  l.icon,
25837
25844
  l.children
25838
25845
  ] }, l.value)) }) })
@@ -26250,9 +26257,9 @@ const ki = X((r) => {
26250
26257
  ki.displayName = "FieldBuilderWithActions";
26251
26258
  const zi = X((r) => {
26252
26259
  const { children: e, variant: t, size: n, accentColor: i, fields: a, onSelectField: o, ...s } = r;
26253
- return /* @__PURE__ */ _(M.Root, { ...s, children: [
26254
- /* @__PURE__ */ p(M.ClickTrigger, { children: e }),
26255
- /* @__PURE__ */ p(M.Content, { variant: t, size: n, accentColor: i, children: /* @__PURE__ */ p(M.Scroll, { children: a.map((l) => /* @__PURE__ */ _(M.Item, { onSelect: () => o(l), children: [
26260
+ return /* @__PURE__ */ _(V.Root, { ...s, children: [
26261
+ /* @__PURE__ */ p(V.ClickTrigger, { children: e }),
26262
+ /* @__PURE__ */ p(V.Content, { variant: t, size: n, accentColor: i, children: /* @__PURE__ */ p(V.Scroll, { children: a.map((l) => /* @__PURE__ */ _(V.Item, { onSelect: () => o(l), children: [
26256
26263
  /* @__PURE__ */ p(D, { icon: me[l.type] }),
26257
26264
  l.label || Ue
26258
26265
  ] }, l.identifier)) }) })
@@ -26261,9 +26268,9 @@ const zi = X((r) => {
26261
26268
  zi.displayName = "IssueDataFilterMenu";
26262
26269
  const ps = X((r) => {
26263
26270
  const { children: e, variant: t, size: n, accentColor: i, fieldSections: a, onSelectFieldCondition: o, ...s } = r;
26264
- return /* @__PURE__ */ _(M.Root, { ...s, children: [
26265
- /* @__PURE__ */ p(M.ClickTrigger, { children: e }),
26266
- /* @__PURE__ */ p(M.Content, { variant: t, size: n, accentColor: i, children: a.map((l) => /* @__PURE__ */ _(M.Item, { onSelect: () => o(l), children: [
26271
+ return /* @__PURE__ */ _(V.Root, { ...s, children: [
26272
+ /* @__PURE__ */ p(V.ClickTrigger, { children: e }),
26273
+ /* @__PURE__ */ p(V.Content, { variant: t, size: n, accentColor: i, children: a.map((l) => /* @__PURE__ */ _(V.Item, { onSelect: () => o(l), children: [
26267
26274
  /* @__PURE__ */ p(D, { icon: me[l.type] }),
26268
26275
  l.label || Go
26269
26276
  ] }, l.identifier)) })
@@ -26551,21 +26558,21 @@ const e0 = {
26551
26558
  return !ja(ee, H.source, H.target);
26552
26559
  },
26553
26560
  [a]
26554
- ), [R, V, B] = _r("title"), [Z, U, K] = _r("description");
26561
+ ), [R, M, F] = _r("title"), [Z, U, K] = _r("description");
26555
26562
  return /* @__PURE__ */ _("form", { className: "size-full flex flex-col gap-4", id: ln, onSubmit: r, children: [
26556
- !t && /* @__PURE__ */ p(hi, { severity: "danger", helpText: V.error ?? null, children: /* @__PURE__ */ p(
26563
+ !t && /* @__PURE__ */ p(hi, { severity: "danger", helpText: M.error ?? null, children: /* @__PURE__ */ p(
26557
26564
  xe.Root,
26558
26565
  {
26559
26566
  variant: "outline",
26560
26567
  size: "md",
26561
- accentColor: V.error ? kr.danger : "primary",
26568
+ accentColor: M.error ? kr.danger : "primary",
26562
26569
  children: /* @__PURE__ */ p(
26563
26570
  xe.Field,
26564
26571
  {
26565
26572
  placeholder: "Enter a title",
26566
26573
  value: R.value ?? "",
26567
26574
  onChange: (H) => {
26568
- B.setValue(H.target.value);
26575
+ F.setValue(H.target.value);
26569
26576
  },
26570
26577
  maxLength: 100
26571
26578
  }
@@ -26850,22 +26857,22 @@ const ws = X((r) => {
26850
26857
  /* @__PURE__ */ _(he, { className: "flex-col gap-0.5 flex", variant: "ghost", accentColor: "base", size: "sm", children: [
26851
26858
  /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(D, { icon: no }) }),
26852
26859
  /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(D, { icon: ro }) }),
26853
- /* @__PURE__ */ _(M.Root, { align: "end", children: [
26854
- /* @__PURE__ */ p(M.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(D, { icon: El }) }) }),
26855
- /* @__PURE__ */ _(M.Content, { size: "sm", children: [
26856
- /* @__PURE__ */ _(M.Item, { onSelect: s, children: [
26860
+ /* @__PURE__ */ _(V.Root, { align: "end", children: [
26861
+ /* @__PURE__ */ p(V.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(D, { icon: El }) }) }),
26862
+ /* @__PURE__ */ _(V.Content, { size: "sm", children: [
26863
+ /* @__PURE__ */ _(V.Item, { onSelect: s, children: [
26857
26864
  /* @__PURE__ */ p(D, { icon: cn }),
26858
26865
  "Duplicate section"
26859
26866
  ] }),
26860
- /* @__PURE__ */ _(M.Item, { onSelect: d, children: [
26867
+ /* @__PURE__ */ _(V.Item, { onSelect: d, children: [
26861
26868
  /* @__PURE__ */ p(D, { icon: Qa }),
26862
26869
  "Copy JSON"
26863
26870
  ] }),
26864
- /* @__PURE__ */ _(M.Item, { onSelect: v, children: [
26871
+ /* @__PURE__ */ _(V.Item, { onSelect: v, children: [
26865
26872
  /* @__PURE__ */ p(D, { icon: Ja }),
26866
26873
  "Paste JSON"
26867
26874
  ] }),
26868
- /* @__PURE__ */ _(M.Item, { onSelect: a, children: [
26875
+ /* @__PURE__ */ _(V.Item, { onSelect: a, children: [
26869
26876
  /* @__PURE__ */ p(D, { icon: kt }),
26870
26877
  "Delete section"
26871
26878
  ] })
@@ -27049,19 +27056,19 @@ const i0 = X(
27049
27056
  values: E
27050
27057
  });
27051
27058
  }, [w, E]);
27052
- const { dirty: R } = N, V = T(
27059
+ const { dirty: R } = N, M = T(
27053
27060
  (U, K) => {
27054
27061
  X1(G1(a.getFieldSections()))[U].areValuesEqual(E[U], K) || s == null || s({ ...N.values, [U]: K }, { [U]: K });
27055
27062
  },
27056
27063
  [N.values, E, s, a]
27057
- ), B = oe(
27064
+ ), F = oe(
27058
27065
  () => ({
27059
27066
  formId: A,
27060
27067
  disabled: i,
27061
- onValuesChange: V
27068
+ onValuesChange: M
27062
27069
  }),
27063
- [A, V, i]
27064
- ), Z = rn(a.getFieldSections(), B);
27070
+ [A, M, i]
27071
+ ), Z = rn(a.getFieldSections(), F);
27065
27072
  return ke(() => {
27066
27073
  R && h && h(), d && d(R);
27067
27074
  }, [R, h, d]), /* @__PURE__ */ p($a, { value: N, children: /* @__PURE__ */ p(ls, { value: a, children: /* @__PURE__ */ _(
@@ -27133,8 +27140,8 @@ const _s = X((r) => {
27133
27140
  m.title || (w.title = "Title is required."), (!m.fields || m.fields.length === 0) && (w.fields = "At least one field is required.");
27134
27141
  const C = [];
27135
27142
  for (const [N, R] of m.fields.entries())
27136
- for (const [V, B] of R.fields.entries()) {
27137
- const Z = ((b = fs(B.type, `fields.${N}.fields.${V}`)) == null ? void 0 : b.map(
27143
+ for (const [M, F] of R.fields.entries()) {
27144
+ const Z = ((b = fs(F.type, `fields.${N}.fields.${M}`)) == null ? void 0 : b.map(
27138
27145
  ({ field: U }) => U
27139
27146
  )) ?? [];
27140
27147
  C.push(...Z);