@entrypulse/builder 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ var Im = Symbol.for("immer-nothing"), Tp = Symbol.for("immer-draftable"), qt = S
63
63
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
64
64
  // See Patches.ts for additional errors
65
65
  ] : [];
66
- function Ft(e, ...t) {
66
+ function Gt(e, ...t) {
67
67
  if (process.env.NODE_ENV !== "production") {
68
68
  const r = av[e], n = typeof r == "function" ? r.apply(null, t) : r;
69
69
  throw new Error(`[Immer] ${n}`);
@@ -163,7 +163,7 @@ function cc(e, t = !1) {
163
163
  }), Object.freeze(e), t && Object.values(e).forEach((r) => cc(r, !0))), e;
164
164
  }
165
165
  function iv() {
166
- Ft(2);
166
+ Gt(2);
167
167
  }
168
168
  var va = {
169
169
  value: iv
@@ -174,7 +174,7 @@ function $s(e) {
174
174
  var cv = {};
175
175
  function Nn(e) {
176
176
  const t = cv[e];
177
- return t || Ft(0, e), t;
177
+ return t || Gt(0, e), t;
178
178
  }
179
179
  var Po;
180
180
  function Mm() {
@@ -210,7 +210,7 @@ function uv(e) {
210
210
  function Mp(e, t) {
211
211
  t.unfinalizedDrafts_ = t.drafts_.length;
212
212
  const r = t.drafts_[0];
213
- return e !== void 0 && e !== r ? (r[qt].modified_ && (ci(t), Ft(4)), Cn(e) && (e = as(t, e), t.parent_ || ss(t, e)), t.patches_ && Nn("Patches").generateReplacementPatches_(
213
+ return e !== void 0 && e !== r ? (r[qt].modified_ && (ci(t), Gt(4)), Cn(e) && (e = as(t, e), t.parent_ || ss(t, e)), t.patches_ && Nn("Patches").generateReplacementPatches_(
214
214
  r[qt].base_,
215
215
  e,
216
216
  t.patches_,
@@ -261,7 +261,7 @@ function Lp(e, t, r, n, o, a, s) {
261
261
  return;
262
262
  const l = $s(o);
263
263
  if (!(l && !s)) {
264
- if (process.env.NODE_ENV !== "production" && o === r && Ft(5), Jn(o)) {
264
+ if (process.env.NODE_ENV !== "production" && o === r && Gt(5), Jn(o)) {
265
265
  const i = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
266
266
  !li(t.assigned_, n) ? a.concat(n) : void 0, d = as(e, o, i);
267
267
  if (Om(r, n, d), Jn(d))
@@ -355,13 +355,13 @@ var dc = {
355
355
  };
356
356
  },
357
357
  defineProperty() {
358
- Ft(11);
358
+ Gt(11);
359
359
  },
360
360
  getPrototypeOf(e) {
361
361
  return Io(e.base_);
362
362
  },
363
363
  setPrototypeOf() {
364
- Ft(12);
364
+ Gt(12);
365
365
  }
366
366
  }, Oo = {};
367
367
  os(dc, (e, t) => {
@@ -370,10 +370,10 @@ os(dc, (e, t) => {
370
370
  };
371
371
  });
372
372
  Oo.deleteProperty = function(e, t) {
373
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Ft(13), Oo.set.call(this, e, t, void 0);
373
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Gt(13), Oo.set.call(this, e, t, void 0);
374
374
  };
375
375
  Oo.set = function(e, t, r) {
376
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Ft(14), dc.set.call(this, e[0], t, r, e[0]);
376
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Gt(14), dc.set.call(this, e[0], t, r, e[0]);
377
377
  };
378
378
  function El(e, t) {
379
379
  const r = e[qt];
@@ -419,7 +419,7 @@ var mv = class {
419
419
  return l.produce(d, (u) => n.call(this, u, ...f));
420
420
  };
421
421
  }
422
- typeof n != "function" && Ft(6), o !== void 0 && typeof o != "function" && Ft(7);
422
+ typeof n != "function" && Gt(6), o !== void 0 && typeof o != "function" && Gt(7);
423
423
  let a;
424
424
  if (Cn(r)) {
425
425
  const s = Op(this), l = pi(r, void 0);
@@ -437,7 +437,7 @@ var mv = class {
437
437
  }
438
438
  return a;
439
439
  } else
440
- Ft(1, r);
440
+ Gt(1, r);
441
441
  }, this.produceWithPatches = (r, n) => {
442
442
  if (typeof r == "function")
443
443
  return (l, ...i) => this.produceWithPatches(l, (d) => r(d, ...i));
@@ -448,13 +448,13 @@ var mv = class {
448
448
  }, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy), typeof (t == null ? void 0 : t.useStrictIteration) == "boolean" && this.setUseStrictIteration(t.useStrictIteration);
449
449
  }
450
450
  createDraft(t) {
451
- Cn(t) || Ft(8), Jn(t) && (t = hv(t));
451
+ Cn(t) || Gt(8), Jn(t) && (t = hv(t));
452
452
  const r = Op(this), n = pi(t, void 0);
453
453
  return n[qt].isManual_ = !0, di(r), n;
454
454
  }
455
455
  finishDraft(t, r) {
456
456
  const n = t && t[qt];
457
- (!n || !n.isManual_) && Ft(9);
457
+ (!n || !n.isManual_) && Gt(9);
458
458
  const { scope_: o } = n;
459
459
  return Pp(o, r), Mp(void 0, o);
460
460
  }
@@ -508,7 +508,7 @@ function pi(e, t) {
508
508
  return (t ? t.scope_ : Mm()).drafts_.push(r), r;
509
509
  }
510
510
  function hv(e) {
511
- return Jn(e) || Ft(10, e), $m(e);
511
+ return Jn(e) || Gt(10, e), $m(e);
512
512
  }
513
513
  function $m(e) {
514
514
  if (!Cn(e) || $s(e))
@@ -534,7 +534,7 @@ const yv = (e) => (t, r, n) => (n.setState = (o, a, ...s) => {
534
534
  const l = typeof o == "function" ? bv(o) : o;
535
535
  return t(l, a, ...s);
536
536
  }, e(n.setState, r, n)), vv = yv;
537
- function Fs() {
537
+ function Gs() {
538
538
  const e = Date.now().toString(36), t = Math.random().toString(36).substring(2, 8);
539
539
  return `${e}-${t}`;
540
540
  }
@@ -546,7 +546,7 @@ function fi(e) {
546
546
  return n === 0 ? o : o.charAt(0).toUpperCase() + o.slice(1);
547
547
  }).join("");
548
548
  }
549
- function Fm(e, t) {
549
+ function Gm(e, t) {
550
550
  const r = t instanceof Set ? t : new Set(t), n = fi(
551
551
  e.replace(/([A-Z])/g, " $1").trim()
552
552
  ) || "field";
@@ -854,7 +854,7 @@ const xv = {
854
854
  imageUpload: {},
855
855
  multiFileUpload: { maxFiles: 10 },
856
856
  multiImageUpload: { maxFiles: 10 }
857
- }, Fp = {
857
+ }, Gp = {
858
858
  // Text Input Elements
859
859
  longText: {
860
860
  rows: 3,
@@ -1211,9 +1211,9 @@ const xv = {
1211
1211
  pages: "object",
1212
1212
  submit: "string"
1213
1213
  };
1214
- function Gp(e, t, r) {
1215
- const n = Fm(e, t), o = {
1216
- id: Fs(),
1214
+ function Fp(e, t, r) {
1215
+ const n = Gm(e, t), o = {
1216
+ id: Gs(),
1217
1217
  type: e,
1218
1218
  order: r,
1219
1219
  properties: { ...xv[e] },
@@ -1223,11 +1223,11 @@ function Gp(e, t, r) {
1223
1223
  dataType: Sv[e]
1224
1224
  }
1225
1225
  };
1226
- return $p[e] && (o.validation = { ...$p[e] }), Fp[e] && (o.config = JSON.parse(JSON.stringify(Fp[e]))), o;
1226
+ return $p[e] && (o.validation = { ...$p[e] }), Gp[e] && (o.config = JSON.parse(JSON.stringify(Gp[e]))), o;
1227
1227
  }
1228
- function Gm() {
1228
+ function Fm() {
1229
1229
  return {
1230
- id: `form-${Fs()}`,
1230
+ id: `form-${Gs()}`,
1231
1231
  version: "1.0.0",
1232
1232
  title: "Untitled Form",
1233
1233
  description: "",
@@ -1247,7 +1247,7 @@ function Gm() {
1247
1247
  }
1248
1248
  function Cv(e, t) {
1249
1249
  const r = JSON.parse(JSON.stringify(e));
1250
- return r.id = Fs(), r.attributes.name = Fm(
1250
+ return r.id = Gs(), r.attributes.name = Gm(
1251
1251
  e.type,
1252
1252
  t
1253
1253
  ), r;
@@ -1319,7 +1319,7 @@ function Xt(e, t) {
1319
1319
  const r = e.history.slice(0, e.historyIndex + 1);
1320
1320
  r.push(JSON.parse(JSON.stringify(t))), r.length > Ev && r.shift(), e.history = r, e.historyIndex = r.length - 1, e.schema = t;
1321
1321
  }
1322
- const Vp = Gm(), Rv = {
1322
+ const Vp = Fm(), Rv = {
1323
1323
  schema: Vp,
1324
1324
  selectedElementId: null,
1325
1325
  mode: "design",
@@ -1351,7 +1351,7 @@ const Vp = Gm(), Rv = {
1351
1351
  }
1352
1352
  const s = kl(
1353
1353
  o.schema.elements
1354
- ), l = n ?? o.schema.elements.length, i = Gp(
1354
+ ), l = n ?? o.schema.elements.length, i = Fp(
1355
1355
  r,
1356
1356
  s,
1357
1357
  l
@@ -1387,7 +1387,7 @@ const Vp = Gm(), Rv = {
1387
1387
  a.schema.elements
1388
1388
  ), d = a.schema.elements.filter(
1389
1389
  (h) => o ? h.parentId === `${n}:${o}` : h.parentId === n
1390
- ).length, f = Gp(
1390
+ ).length, f = Fp(
1391
1391
  r,
1392
1392
  l,
1393
1393
  d
@@ -1572,7 +1572,7 @@ const Vp = Gm(), Rv = {
1572
1572
  // Reset form
1573
1573
  resetForm: () => {
1574
1574
  e((r) => {
1575
- const n = Gm();
1575
+ const n = Fm();
1576
1576
  r.schema = n, r.history = [JSON.parse(JSON.stringify(n))], r.historyIndex = 0, r.selectedElementId = null;
1577
1577
  });
1578
1578
  },
@@ -2080,18 +2080,18 @@ const Av = (e, t) => {
2080
2080
  }
2081
2081
  }, $v = (e, t, r, n) => {
2082
2082
  if (typeof e == "string") {
2083
- Fv(e, t, r);
2083
+ Gv(e, t, r);
2084
2084
  return;
2085
2085
  }
2086
2086
  if (typeof e == "function") {
2087
- Gv(e, t, r, n);
2087
+ Fv(e, t, r, n);
2088
2088
  return;
2089
2089
  }
2090
2090
  Vv(e, t, r, n);
2091
- }, Fv = (e, t, r) => {
2091
+ }, Gv = (e, t, r) => {
2092
2092
  const n = e === "" ? t : Wm(t, e);
2093
2093
  n.classGroupId = r;
2094
- }, Gv = (e, t, r, n) => {
2094
+ }, Fv = (e, t, r, n) => {
2095
2095
  if (zv(e)) {
2096
2096
  uc(e(n), t, r, n);
2097
2097
  return;
@@ -2326,7 +2326,7 @@ const Av = (e, t) => {
2326
2326
  "left-bottom"
2327
2327
  ], E = () => [...N(), se, ae], R = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", "contain", "none"], k = () => [se, ae, i], A = () => [Yr, "full", "auto", ...k()], _ = () => [yr, "none", "subgrid", se, ae], M = () => ["auto", {
2328
2328
  span: ["full", yr, se, ae]
2329
- }, yr, se, ae], O = () => [yr, "auto", se, ae], L = () => ["auto", "min", "max", "fr", se, ae], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], re = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...k()], W = () => [Yr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], ee = () => [Yr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], F = () => [Yr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], V = () => [e, se, ae], Se = () => [...N(), Yp, jp, {
2329
+ }, yr, se, ae], O = () => [yr, "auto", se, ae], L = () => ["auto", "min", "max", "fr", se, ae], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], re = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], K = () => ["auto", ...k()], W = () => [Yr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], ee = () => [Yr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...k()], G = () => [Yr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...k()], V = () => [e, se, ae], Se = () => [...N(), Yp, jp, {
2330
2330
  position: [se, ae]
2331
2331
  }], $ = () => ["no-repeat", {
2332
2332
  repeat: ["", "x", "y", "space", "round"]
@@ -2788,7 +2788,7 @@ const Av = (e, t) => {
2788
2788
  * @see https://tailwindcss.com/docs/justify-content
2789
2789
  */
2790
2790
  "justify-content": [{
2791
- justify: [...G(), "normal"]
2791
+ justify: [...F(), "normal"]
2792
2792
  }],
2793
2793
  /**
2794
2794
  * Justify Items
@@ -2809,7 +2809,7 @@ const Av = (e, t) => {
2809
2809
  * @see https://tailwindcss.com/docs/align-content
2810
2810
  */
2811
2811
  "align-content": [{
2812
- content: ["normal", ...G()]
2812
+ content: ["normal", ...F()]
2813
2813
  }],
2814
2814
  /**
2815
2815
  * Align Items
@@ -2834,7 +2834,7 @@ const Av = (e, t) => {
2834
2834
  * @see https://tailwindcss.com/docs/place-content
2835
2835
  */
2836
2836
  "place-content": [{
2837
- "place-content": G()
2837
+ "place-content": F()
2838
2838
  }],
2839
2839
  /**
2840
2840
  * Place Items
@@ -3065,21 +3065,21 @@ const Av = (e, t) => {
3065
3065
  * @see https://tailwindcss.com/docs/height
3066
3066
  */
3067
3067
  "block-size": [{
3068
- block: ["auto", ...F()]
3068
+ block: ["auto", ...G()]
3069
3069
  }],
3070
3070
  /**
3071
3071
  * Min-Block Size
3072
3072
  * @see https://tailwindcss.com/docs/min-height
3073
3073
  */
3074
3074
  "min-block-size": [{
3075
- "min-block": ["auto", ...F()]
3075
+ "min-block": ["auto", ...G()]
3076
3076
  }],
3077
3077
  /**
3078
3078
  * Max-Block Size
3079
3079
  * @see https://tailwindcss.com/docs/max-height
3080
3080
  */
3081
3081
  "max-block-size": [{
3082
- "max-block": ["none", ...F()]
3082
+ "max-block": ["none", ...G()]
3083
3083
  }],
3084
3084
  /**
3085
3085
  * Width
@@ -7404,12 +7404,12 @@ const wx = {
7404
7404
  Ox,
7405
7405
  Mx
7406
7406
  ];
7407
- var $x = Object.defineProperty, Fx = (e, t) => $x(e, "name", { value: t, configurable: !0 });
7407
+ var $x = Object.defineProperty, Gx = (e, t) => $x(e, "name", { value: t, configurable: !0 });
7408
7408
  function yi(e, [t, r]) {
7409
7409
  return Math.min(r, Math.max(t, e));
7410
7410
  }
7411
- Fx(yi, "clamp");
7412
- var Gx = Object.defineProperty, ao = (e, t) => Gx(e, "name", { value: t, configurable: !0 }), rh = !!(typeof window < "u" && window.document && window.document.createElement);
7411
+ Gx(yi, "clamp");
7412
+ var Fx = Object.defineProperty, ao = (e, t) => Fx(e, "name", { value: t, configurable: !0 }), rh = !!(typeof window < "u" && window.document && window.document.createElement);
7413
7413
  function Ne(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
7414
7414
  return /* @__PURE__ */ ao(function(o) {
7415
7415
  if (e == null || e(o), r === !1 || !o || !o.defaultPrevented)
@@ -7639,7 +7639,7 @@ function ph(e) {
7639
7639
  hr(ph, "isPromiseLike");
7640
7640
  var qx = /* @__PURE__ */ hr((e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, "createSlotError"), Qx = /* @__PURE__ */ hr((e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, "createSlottableError"), Na = v[" use ".trim().toString()], Kx = Object.defineProperty, wt = (e, t) => Kx(e, "name", { value: t, configurable: !0 });
7641
7641
  // @__NO_SIDE_EFFECTS__
7642
- function Gs(e) {
7642
+ function Fs(e) {
7643
7643
  const t = e + "CollectionProvider", [r, n] = /* @__PURE__ */ mr(t), [o, a] = r(
7644
7644
  t,
7645
7645
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -7679,7 +7679,7 @@ function Gs(e) {
7679
7679
  n
7680
7680
  ];
7681
7681
  }
7682
- wt(Gs, "createCollection");
7682
+ wt(Fs, "createCollection");
7683
7683
  var Kp = /* @__PURE__ */ new WeakMap(), pt, Bt, Al = (Bt = class extends Map {
7684
7684
  constructor(r) {
7685
7685
  super(r);
@@ -7951,9 +7951,9 @@ function Xx(e) {
7951
7951
  u.displayName = d;
7952
7952
  const m = e + "CollectionItemSlot", h = "data-radix-collection-item", g = /* @__PURE__ */ Jr(m), y = v.forwardRef(
7953
7953
  (x, N) => {
7954
- const { scope: E, children: R, ...P } = x, k = v.useRef(null), [A, _] = v.useState(null), M = Ue(N, k, _), O = a(m, E), { setItemMap: L } = O, G = v.useRef(P);
7955
- mh(G.current, P) || (G.current = P);
7956
- const re = G.current;
7954
+ const { scope: E, children: R, ...P } = x, k = v.useRef(null), [A, _] = v.useState(null), M = Ue(N, k, _), O = a(m, E), { setItemMap: L } = O, F = v.useRef(P);
7955
+ mh(F.current, P) || (F.current = P);
7956
+ const re = F.current;
7957
7957
  return v.useEffect(() => {
7958
7958
  const K = re;
7959
7959
  return L((W) => A ? W.has(A) ? W.set(A, { ...K, element: A }).toSorted(Si) : (W.set(A, { ...K, element: A }), W.toSorted(Si)) : W), () => {
@@ -8093,7 +8093,7 @@ var s0 = Object.defineProperty, xt = (e, t) => s0(e, "name", { value: t, configu
8093
8093
  if (!(O instanceof Node))
8094
8094
  return !1;
8095
8095
  const L = [...u.branches].some(
8096
- (G) => G.contains(O)
8096
+ (F) => F.contains(O)
8097
8097
  );
8098
8098
  return R && !L;
8099
8099
  },
@@ -8431,7 +8431,7 @@ function an(e) {
8431
8431
  }, [e]), e || (t ? `radix-${t}` : "");
8432
8432
  }
8433
8433
  g0(an, "useId");
8434
- const v0 = ["top", "right", "bottom", "left"], Zr = Math.min, $r = Math.max, is = Math.round, Ra = Math.floor, Fr = (e) => ({
8434
+ const v0 = ["top", "right", "bottom", "left"], Zr = Math.min, $r = Math.max, is = Math.round, Ra = Math.floor, Gr = (e) => ({
8435
8435
  x: e,
8436
8436
  y: e
8437
8437
  }), x0 = {
@@ -8706,12 +8706,12 @@ const _0 = 50, A0 = async (e, t, r) => {
8706
8706
  }, h = wc(o), g = xc(h), y = await s.getDimensions(d), b = h === "y", C = b ? "top" : "left", S = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", N = a.reference[g] + a.reference[h] - m[h] - a.floating[g], E = m[h] - a.reference[h], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
8707
8707
  let P = R ? R[x] : 0;
8708
8708
  (!P || !await (s.isElement == null ? void 0 : s.isElement(R))) && (P = l.floating[x] || a.floating[g]);
8709
- const k = N / 2 - E / 2, A = P / 2 - y[g] / 2 - 1, _ = Zr(u[C], A), M = Zr(u[S], A), O = P - y[g] - M, L = P / 2 - y[g] / 2 + k, G = Dh(_, L, O), re = !i.arrow && so(o) != null && L !== G && a.reference[g] / 2 - (L < _ ? _ : M) - y[g] / 2 < 0, K = re ? L < _ ? L - _ : L - O : 0;
8709
+ const k = N / 2 - E / 2, A = P / 2 - y[g] / 2 - 1, _ = Zr(u[C], A), M = Zr(u[S], A), O = P - y[g] - M, L = P / 2 - y[g] / 2 + k, F = Dh(_, L, O), re = !i.arrow && so(o) != null && L !== F && a.reference[g] / 2 - (L < _ ? _ : M) - y[g] / 2 < 0, K = re ? L < _ ? L - _ : L - O : 0;
8710
8710
  return {
8711
8711
  [h]: m[h] + K,
8712
8712
  data: {
8713
- [h]: G,
8714
- centerOffset: L - G - K,
8713
+ [h]: F,
8714
+ centerOffset: L - F - K,
8715
8715
  ...re && {
8716
8716
  alignmentOffset: K
8717
8717
  }
@@ -8748,21 +8748,21 @@ const _0 = 50, A0 = async (e, t, r) => {
8748
8748
  const P = [l, ...E], k = await i.detectOverflow(t, b), A = [];
8749
8749
  let _ = ((n = a.flip) == null ? void 0 : n.overflows) || [];
8750
8750
  if (f && A.push(k[C]), u) {
8751
- const G = w0(o, s, N);
8752
- A.push(k[G[0]], k[G[1]]);
8751
+ const F = w0(o, s, N);
8752
+ A.push(k[F[0]], k[F[1]]);
8753
8753
  }
8754
8754
  if (_ = [..._, {
8755
8755
  placement: o,
8756
8756
  overflows: A
8757
- }], !A.every((G) => G <= 0)) {
8757
+ }], !A.every((F) => F <= 0)) {
8758
8758
  var M, O;
8759
- const G = (((M = a.flip) == null ? void 0 : M.index) || 0) + 1, re = P[G];
8759
+ const F = (((M = a.flip) == null ? void 0 : M.index) || 0) + 1, re = P[F];
8760
8760
  if (re && (!(u === "alignment" ? S !== Er(re) : !1) || // We leave the current main axis only if every placement on that axis
8761
8761
  // overflows the main axis.
8762
8762
  _.every((ee) => Er(ee.placement) === S ? ee.overflows[0] > 0 : !0)))
8763
8763
  return {
8764
8764
  data: {
8765
- index: G,
8765
+ index: F,
8766
8766
  overflows: _
8767
8767
  },
8768
8768
  reset: {
@@ -8776,13 +8776,13 @@ const _0 = 50, A0 = async (e, t, r) => {
8776
8776
  var L;
8777
8777
  const W = (L = _.filter((ee) => {
8778
8778
  if (R) {
8779
- const F = Er(ee.placement);
8780
- return F === S || // Create a bias to the `y` side axis due to horizontal
8779
+ const G = Er(ee.placement);
8780
+ return G === S || // Create a bias to the `y` side axis due to horizontal
8781
8781
  // reading directions favoring greater width.
8782
- F === "y";
8782
+ G === "y";
8783
8783
  }
8784
8784
  return !0;
8785
- }).map((ee) => [ee.placement, ee.overflows.filter((F) => F > 0).reduce((F, V) => F + V, 0)]).sort((ee, F) => ee[1] - F[1])[0]) == null ? void 0 : L[0];
8785
+ }).map((ee) => [ee.placement, ee.overflows.filter((G) => G > 0).reduce((G, V) => G + V, 0)]).sort((ee, G) => ee[1] - G[1])[0]) == null ? void 0 : L[0];
8786
8786
  W && (K = W);
8787
8787
  break;
8788
8788
  }
@@ -8997,7 +8997,7 @@ const M0 = function(e) {
8997
8997
  };
8998
8998
  }
8999
8999
  };
9000
- }, F0 = function(e) {
9000
+ }, G0 = function(e) {
9001
9001
  return e === void 0 && (e = {}), {
9002
9002
  name: "size",
9003
9003
  options: e,
@@ -9039,7 +9039,7 @@ function Vs() {
9039
9039
  function lo(e) {
9040
9040
  return Th(e) ? (e.nodeName || "").toLowerCase() : "#document";
9041
9041
  }
9042
- function Gt(e) {
9042
+ function Ft(e) {
9043
9043
  var t;
9044
9044
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
9045
9045
  }
@@ -9048,16 +9048,16 @@ function Wr(e) {
9048
9048
  return (t = (Th(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
9049
9049
  }
9050
9050
  function Th(e) {
9051
- return Vs() ? e instanceof Node || e instanceof Gt(e).Node : !1;
9051
+ return Vs() ? e instanceof Node || e instanceof Ft(e).Node : !1;
9052
9052
  }
9053
9053
  function Rr(e) {
9054
- return Vs() ? e instanceof Element || e instanceof Gt(e).Element : !1;
9054
+ return Vs() ? e instanceof Element || e instanceof Ft(e).Element : !1;
9055
9055
  }
9056
9056
  function sn(e) {
9057
- return Vs() ? e instanceof HTMLElement || e instanceof Gt(e).HTMLElement : !1;
9057
+ return Vs() ? e instanceof HTMLElement || e instanceof Ft(e).HTMLElement : !1;
9058
9058
  }
9059
9059
  function af(e) {
9060
- return !Vs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Gt(e).ShadowRoot;
9060
+ return !Vs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ft(e).ShadowRoot;
9061
9061
  }
9062
9062
  function zs(e) {
9063
9063
  const {
@@ -9068,7 +9068,7 @@ function zs(e) {
9068
9068
  } = kr(e);
9069
9069
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
9070
9070
  }
9071
- function G0(e) {
9071
+ function F0(e) {
9072
9072
  return /^(table|td|th)$/.test(lo(e));
9073
9073
  }
9074
9074
  function Bs(e) {
@@ -9107,7 +9107,7 @@ function Mo(e) {
9107
9107
  return /^(html|body|#document)$/.test(lo(e));
9108
9108
  }
9109
9109
  function kr(e) {
9110
- return Gt(e).getComputedStyle(e);
9110
+ return Ft(e).getComputedStyle(e);
9111
9111
  }
9112
9112
  function Us(e) {
9113
9113
  return Rr(e) ? {
@@ -9137,7 +9137,7 @@ function Ih(e) {
9137
9137
  function Lo(e, t, r) {
9138
9138
  var n;
9139
9139
  t === void 0 && (t = []), r === void 0 && (r = !0);
9140
- const o = Ih(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = Gt(o);
9140
+ const o = Ih(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = Ft(o);
9141
9141
  if (a) {
9142
9142
  const l = _i(s);
9143
9143
  return t.concat(s, s.visualViewport || [], zs(o) ? o : [], l && r ? Lo(l) : []);
@@ -9163,7 +9163,7 @@ function Nc(e) {
9163
9163
  function Kn(e) {
9164
9164
  const t = Nc(e);
9165
9165
  if (!sn(t))
9166
- return Fr(1);
9166
+ return Gr(1);
9167
9167
  const r = t.getBoundingClientRect(), {
9168
9168
  width: n,
9169
9169
  height: o,
@@ -9175,30 +9175,30 @@ function Kn(e) {
9175
9175
  y: l
9176
9176
  };
9177
9177
  }
9178
- const U0 = /* @__PURE__ */ Fr(0);
9178
+ const U0 = /* @__PURE__ */ Gr(0);
9179
9179
  function Oh(e) {
9180
- const t = Gt(e);
9180
+ const t = Ft(e);
9181
9181
  return !Cc() || !t.visualViewport ? U0 : {
9182
9182
  x: t.visualViewport.offsetLeft,
9183
9183
  y: t.visualViewport.offsetTop
9184
9184
  };
9185
9185
  }
9186
9186
  function W0(e, t, r) {
9187
- return t === void 0 && (t = !1), !!r && t && r === Gt(e);
9187
+ return t === void 0 && (t = !1), !!r && t && r === Ft(e);
9188
9188
  }
9189
9189
  function Rn(e, t, r, n) {
9190
9190
  t === void 0 && (t = !1), r === void 0 && (r = !1);
9191
9191
  const o = e.getBoundingClientRect(), a = Nc(e);
9192
- let s = Fr(1);
9192
+ let s = Gr(1);
9193
9193
  t && (n ? Rr(n) && (s = Kn(n)) : s = Kn(e));
9194
- const l = W0(a, r, n) ? Oh(a) : Fr(0);
9194
+ const l = W0(a, r, n) ? Oh(a) : Gr(0);
9195
9195
  let i = (o.left + l.x) / s.x, d = (o.top + l.y) / s.y, f = o.width / s.x, u = o.height / s.y;
9196
9196
  if (a && n) {
9197
- const m = Gt(a), h = Rr(n) ? Gt(n) : n;
9197
+ const m = Ft(a), h = Rr(n) ? Ft(n) : n;
9198
9198
  let g = m, y = _i(g);
9199
9199
  for (; y && h !== g; ) {
9200
9200
  const b = Kn(y), C = y.getBoundingClientRect(), S = kr(y), x = C.left + (y.clientLeft + parseFloat(S.paddingLeft)) * b.x, N = C.top + (y.clientTop + parseFloat(S.paddingTop)) * b.y;
9201
- i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += x, d += N, g = Gt(y), y = _i(g);
9201
+ i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += x, d += N, g = Ft(y), y = _i(g);
9202
9202
  }
9203
9203
  }
9204
9204
  return ds({
@@ -9232,13 +9232,13 @@ function H0(e) {
9232
9232
  let i = {
9233
9233
  scrollLeft: 0,
9234
9234
  scrollTop: 0
9235
- }, d = Fr(1);
9236
- const f = Fr(0), u = sn(n);
9235
+ }, d = Gr(1);
9236
+ const f = Gr(0), u = sn(n);
9237
9237
  if ((u || !a) && ((lo(n) !== "body" || zs(s)) && (i = Us(n)), u)) {
9238
9238
  const h = Rn(n);
9239
9239
  d = Kn(n), f.x = h.x + n.clientLeft, f.y = h.y + n.clientTop;
9240
9240
  }
9241
- const m = s && !u && !a ? Mh(s, i) : Fr(0);
9241
+ const m = s && !u && !a ? Mh(s, i) : Gr(0);
9242
9242
  return {
9243
9243
  width: r.width * d.x,
9244
9244
  height: r.height * d.y,
@@ -9263,7 +9263,7 @@ function Y0(e) {
9263
9263
  const q0 = 25;
9264
9264
  function Q0(e, t, r) {
9265
9265
  r === void 0 && (r = "viewport");
9266
- const n = r === "layoutViewport", o = Gt(e), a = Wr(e), s = o.visualViewport;
9266
+ const n = r === "layoutViewport", o = Ft(e), a = Wr(e), s = o.visualViewport;
9267
9267
  let l = a.clientWidth, i = a.clientHeight, d = 0, f = 0;
9268
9268
  if (s) {
9269
9269
  const m = !Cc() || t === "fixed";
@@ -9357,13 +9357,13 @@ function ew(e, t, r) {
9357
9357
  scrollLeft: 0,
9358
9358
  scrollTop: 0
9359
9359
  };
9360
- const i = Fr(0);
9360
+ const i = Gr(0);
9361
9361
  if ((n || !a) && ((lo(t) !== "body" || zs(o)) && (l = Us(t)), n)) {
9362
9362
  const m = Rn(t, !0, a, t);
9363
9363
  i.x = m.x + t.clientLeft, i.y = m.y + t.clientTop;
9364
9364
  }
9365
9365
  !n && o && (i.x = Ws(o));
9366
- const d = o && !n && !a ? Mh(o, l) : Fr(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
9366
+ const d = o && !n && !a ? Mh(o, l) : Gr(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
9367
9367
  return {
9368
9368
  x: f,
9369
9369
  y: u,
@@ -9383,7 +9383,7 @@ function lf(e, t) {
9383
9383
  return Wr(e) === r && (r = r.ownerDocument.body), r;
9384
9384
  }
9385
9385
  function Lh(e, t) {
9386
- const r = Gt(e);
9386
+ const r = Ft(e);
9387
9387
  if (Bs(e))
9388
9388
  return r;
9389
9389
  if (!sn(e)) {
@@ -9396,7 +9396,7 @@ function Lh(e, t) {
9396
9396
  return r;
9397
9397
  }
9398
9398
  let n = lf(e, t);
9399
- for (; n && G0(n) && Ol(n); )
9399
+ for (; n && F0(n) && Ol(n); )
9400
9400
  n = lf(n, t);
9401
9401
  return n && Mo(n) && Ol(n) && !Sc(n) ? r : n || B0(e) || r;
9402
9402
  }
@@ -9476,7 +9476,7 @@ function ow(e, t, r) {
9476
9476
  }
9477
9477
  n.observe(e);
9478
9478
  }
9479
- const i = Gt(e), d = () => l(r);
9479
+ const i = Ft(e), d = () => l(r);
9480
9480
  return i.addEventListener("resize", d), l(!0), () => {
9481
9481
  i.removeEventListener("resize", d), s();
9482
9482
  };
@@ -9515,7 +9515,7 @@ function aw(e, t, r, n) {
9515
9515
  }), u == null || u(), (C = h) == null || C.disconnect(), h = null, i && cancelAnimationFrame(g);
9516
9516
  };
9517
9517
  }
9518
- const sw = M0, lw = L0, iw = I0, cw = F0, dw = P0, cf = T0, uw = $0, pw = (e, t, r) => {
9518
+ const sw = M0, lw = L0, iw = I0, cw = G0, dw = P0, cf = T0, uw = $0, pw = (e, t, r) => {
9519
9519
  const n = /* @__PURE__ */ new Map(), o = r ?? {}, a = {
9520
9520
  ...nw,
9521
9521
  ...o.platform,
@@ -9558,11 +9558,11 @@ function us(e, t) {
9558
9558
  }
9559
9559
  return e !== e && t !== t;
9560
9560
  }
9561
- function Fh(e) {
9561
+ function Gh(e) {
9562
9562
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
9563
9563
  }
9564
9564
  function df(e, t) {
9565
- const r = Fh(e);
9565
+ const r = Gh(e);
9566
9566
  return Math.round(t * r) / r;
9567
9567
  }
9568
9568
  function Ml(e) {
@@ -9606,16 +9606,16 @@ function hw(e) {
9606
9606
  strategy: r,
9607
9607
  middleware: m
9608
9608
  };
9609
- M.current && (ee.platform = M.current), pw(R.current, P.current, ee).then((F) => {
9609
+ M.current && (ee.platform = M.current), pw(R.current, P.current, ee).then((G) => {
9610
9610
  const V = {
9611
- ...F,
9611
+ ...G,
9612
9612
  // The floating element's position may be recomputed while it's closed
9613
9613
  // but still mounted (such as when transitioning out). To ensure
9614
9614
  // `isPositioned` will be `false` initially on the next open, avoid
9615
9615
  // setting it to `true` when `open === false` (must be specified).
9616
9616
  isPositioned: O.current !== !1
9617
9617
  };
9618
- G.current && !us(k.current, V) && (k.current = V, Yo.flushSync(() => {
9618
+ F.current && !us(k.current, V) && (k.current = V, Yo.flushSync(() => {
9619
9619
  u(V);
9620
9620
  }));
9621
9621
  });
@@ -9626,9 +9626,9 @@ function hw(e) {
9626
9626
  isPositioned: !1
9627
9627
  })));
9628
9628
  }, [d]);
9629
- const G = v.useRef(!1);
9630
- Ya(() => (G.current = !0, () => {
9631
- G.current = !1;
9629
+ const F = v.useRef(!1);
9630
+ Ya(() => (F.current = !0, () => {
9631
+ F.current = !1;
9632
9632
  }), []), Ya(() => {
9633
9633
  if (N && (R.current = N), E && (P.current = E), N && E) {
9634
9634
  if (_.current)
@@ -9652,16 +9652,16 @@ function hw(e) {
9652
9652
  };
9653
9653
  if (!K.floating)
9654
9654
  return ee;
9655
- const F = df(K.floating, f.x), V = df(K.floating, f.y);
9655
+ const G = df(K.floating, f.x), V = df(K.floating, f.y);
9656
9656
  return l ? {
9657
9657
  ...ee,
9658
- transform: "translate(" + F + "px, " + V + "px)",
9659
- ...Fh(K.floating) >= 1.5 && {
9658
+ transform: "translate(" + G + "px, " + V + "px)",
9659
+ ...Gh(K.floating) >= 1.5 && {
9660
9660
  willChange: "transform"
9661
9661
  }
9662
9662
  } : {
9663
9663
  position: r,
9664
- left: F,
9664
+ left: G,
9665
9665
  top: V
9666
9666
  };
9667
9667
  }, [r, l, K.floating, f.x, f.y]);
@@ -9764,7 +9764,7 @@ function Ec(e) {
9764
9764
  }, [e]), t;
9765
9765
  }
9766
9766
  Ew(Ec, "useSize");
9767
- var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configurable: !0 }), Gh = "Popper", [Vh, Hs] = /* @__PURE__ */ mr(Gh), [kw, zh] = Vh(Gh), Dw = /* @__PURE__ */ Xr((e) => {
9767
+ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configurable: !0 }), Fh = "Popper", [Vh, Hs] = /* @__PURE__ */ mr(Fh), [kw, zh] = Vh(Fh), Dw = /* @__PURE__ */ Xr((e) => {
9768
9768
  const { __scopePopper: t, children: r } = e, [n, o] = v.useState(null), [a, s] = v.useState(void 0);
9769
9769
  return /* @__PURE__ */ c(
9770
9770
  kw,
@@ -9820,12 +9820,12 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9820
9820
  updatePositionStrategy: g = "optimized",
9821
9821
  onPlaced: y,
9822
9822
  ...b
9823
- } = t, C = zh(Bh, n), [S, x] = v.useState(null), N = Ue(r, x), [E, R] = v.useState(null), P = Ec(E), k = (P == null ? void 0 : P.width) ?? 0, A = (P == null ? void 0 : P.height) ?? 0, _ = o + (s !== "center" ? "-" + s : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, O = Array.isArray(f) ? f : [f], L = O.length > 0, G = {
9823
+ } = t, C = zh(Bh, n), [S, x] = v.useState(null), N = Ue(r, x), [E, R] = v.useState(null), P = Ec(E), k = (P == null ? void 0 : P.width) ?? 0, A = (P == null ? void 0 : P.height) ?? 0, _ = o + (s !== "center" ? "-" + s : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, O = Array.isArray(f) ? f : [f], L = O.length > 0, F = {
9824
9824
  padding: M,
9825
9825
  boundary: O.filter(Uh),
9826
9826
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
9827
9827
  altBoundary: L
9828
- }, { refs: re, floatingStyles: K, placement: W, isPositioned: ee, middlewareData: F } = hw({
9828
+ }, { refs: re, floatingStyles: K, placement: W, isPositioned: ee, middlewareData: G } = hw({
9829
9829
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
9830
9830
  strategy: "fixed",
9831
9831
  placement: _,
@@ -9841,11 +9841,11 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9841
9841
  mainAxis: !0,
9842
9842
  crossAxis: !1,
9843
9843
  limiter: m === "partial" ? vw() : void 0,
9844
- ...G
9844
+ ...F
9845
9845
  }),
9846
- d && xw({ ...G }),
9846
+ d && xw({ ...F }),
9847
9847
  ww({
9848
- ...G,
9848
+ ...F,
9849
9849
  apply: /* @__PURE__ */ Xr(({ elements: Ce, rects: He, availableWidth: Je, availableHeight: et }) => {
9850
9850
  const { width: je, height: ve } = He.reference, nt = Ce.floating.style;
9851
9851
  nt.setProperty("--radix-popper-available-width", `${Je}px`), nt.setProperty("--radix-popper-available-height", `${et}px`), nt.setProperty("--radix-popper-anchor-width", `${je}px`), nt.setProperty("--radix-popper-anchor-height", `${ve}px`);
@@ -9855,7 +9855,7 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9855
9855
  Pw({ arrowWidth: k, arrowHeight: A }),
9856
9856
  h && Sw({
9857
9857
  strategy: "referenceHidden",
9858
- ...G,
9858
+ ...F,
9859
9859
  // `hide` detects whether the anchor (reference) is clipped, so when
9860
9860
  // no explicit `collisionBoundary` is set we fall back to Floating
9861
9861
  // UI's default clipping ancestors (e.g. a scrollable menu). This
@@ -9863,7 +9863,7 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9863
9863
  // (#3237). The collision/size middlewares deliberately keep the
9864
9864
  // viewport-based default to avoid clamping content rendered inside
9865
9865
  // transformed or overflow-clipping portal containers.
9866
- boundary: L ? G.boundary : void 0
9866
+ boundary: L ? F.boundary : void 0
9867
9867
  })
9868
9868
  ]
9869
9869
  }), V = C.setPlacementState;
@@ -9874,7 +9874,7 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9874
9874
  ut(() => {
9875
9875
  ee && (q == null || q());
9876
9876
  }, [ee, q]);
9877
- const we = (te = F.arrow) == null ? void 0 : te.x, ne = (Ee = F.arrow) == null ? void 0 : Ee.y, he = ((ye = F.arrow) == null ? void 0 : ye.centerOffset) !== 0, [j, ce] = v.useState();
9877
+ const we = (te = G.arrow) == null ? void 0 : te.x, ne = (Ee = G.arrow) == null ? void 0 : Ee.y, he = ((ye = G.arrow) == null ? void 0 : ye.centerOffset) !== 0, [j, ce] = v.useState();
9878
9878
  return ut(() => {
9879
9879
  S && ce(window.getComputedStyle(S).zIndex);
9880
9880
  }, [S]), /* @__PURE__ */ c(
@@ -9889,13 +9889,13 @@ var Rw = Object.defineProperty, Xr = (e, t) => Rw(e, "name", { value: t, configu
9889
9889
  minWidth: "max-content",
9890
9890
  zIndex: j,
9891
9891
  "--radix-popper-transform-origin": [
9892
- (ue = F.transformOrigin) == null ? void 0 : ue.x,
9893
- (X = F.transformOrigin) == null ? void 0 : X.y
9892
+ (ue = G.transformOrigin) == null ? void 0 : ue.x,
9893
+ (X = G.transformOrigin) == null ? void 0 : X.y
9894
9894
  ].join(" "),
9895
9895
  // hide the content if using the hide middleware and should be hidden
9896
9896
  // set visibility to hidden and disable pointer events so the UI behaves
9897
9897
  // as if the PopperContent isn't there at all
9898
- ...((oe = F.hide) == null ? void 0 : oe.referenceHidden) && {
9898
+ ...((oe = G.hide) == null ? void 0 : oe.referenceHidden) && {
9899
9899
  visibility: "hidden",
9900
9900
  pointerEvents: "none"
9901
9901
  }
@@ -10058,7 +10058,7 @@ function Xh(e) {
10058
10058
  return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
10059
10059
  }
10060
10060
  zr(Xh, "getElementRef");
10061
- var $w = Object.defineProperty, Fw = (e, t) => $w(e, "name", { value: t, configurable: !0 }), uf = v[" useEffectEvent ".trim().toString()], pf = v[" useInsertionEffect ".trim().toString()];
10061
+ var $w = Object.defineProperty, Gw = (e, t) => $w(e, "name", { value: t, configurable: !0 }), uf = v[" useEffectEvent ".trim().toString()], pf = v[" useInsertionEffect ".trim().toString()];
10062
10062
  function Jh(e) {
10063
10063
  if (typeof uf == "function")
10064
10064
  return uf(e);
@@ -10074,8 +10074,8 @@ function Jh(e) {
10074
10074
  return (n = t.current) == null ? void 0 : n.call(t, ...r);
10075
10075
  }), []);
10076
10076
  }
10077
- Fw(Jh, "useEffectEvent");
10078
- var Gw = Object.defineProperty, Ko = (e, t) => Gw(e, "name", { value: t, configurable: !0 }), Vw = v[" useInsertionEffect ".trim().toString()] || ut;
10077
+ Gw(Jh, "useEffectEvent");
10078
+ var Fw = Object.defineProperty, Ko = (e, t) => Fw(e, "name", { value: t, configurable: !0 }), Vw = v[" useInsertionEffect ".trim().toString()] || ut;
10079
10079
  function Dr({
10080
10080
  prop: e,
10081
10081
  defaultProp: t,
@@ -10359,12 +10359,12 @@ ag.isSideCarExport = !0;
10359
10359
  function lS(e, t) {
10360
10360
  return e.useMedium(t), ag;
10361
10361
  }
10362
- var sg = sS(), Fl = function() {
10362
+ var sg = sS(), Gl = function() {
10363
10363
  }, Ys = v.forwardRef(function(e, t) {
10364
10364
  var r = v.useRef(null), n = v.useState({
10365
- onScrollCapture: Fl,
10366
- onWheelCapture: Fl,
10367
- onTouchMoveCapture: Fl
10365
+ onScrollCapture: Gl,
10366
+ onWheelCapture: Gl,
10367
+ onTouchMoveCapture: Gl
10368
10368
  }), o = n[0], a = n[1], s = e.forwardProps, l = e.children, i = e.className, d = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, h = e.noRelative, g = e.noIsolation, y = e.inert, b = e.allowPinchZoom, C = e.as, S = C === void 0 ? "div" : C, x = e.gapMode, N = og(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = m, R = nS([r, t]), P = Nr(Nr({}, N), o);
10369
10369
  return v.createElement(
10370
10370
  v.Fragment,
@@ -10431,11 +10431,11 @@ var pS = function() {
10431
10431
  top: 0,
10432
10432
  right: 0,
10433
10433
  gap: 0
10434
- }, Gl = function(e) {
10434
+ }, Fl = function(e) {
10435
10435
  return parseInt(e || "", 10) || 0;
10436
10436
  }, hS = function(e) {
10437
10437
  var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
10438
- return [Gl(r), Gl(n), Gl(o)];
10438
+ return [Fl(r), Fl(n), Fl(o)];
10439
10439
  }, gS = function(e) {
10440
10440
  if (e === void 0 && (e = "margin"), typeof window > "u")
10441
10441
  return mS;
@@ -10691,10 +10691,10 @@ var ug = v.forwardRef(function(e, t) {
10691
10691
  return v.createElement(Ys, Nr({}, e, { ref: t, sideCar: PS }));
10692
10692
  });
10693
10693
  ug.classNames = Ys.classNames;
10694
- var OS = Object.defineProperty, Ie = (e, t) => OS(e, "name", { value: t, configurable: !0 }), MS = [" ", "Enter", "ArrowUp", "ArrowDown"], LS = [" ", "Enter"], eo = "Select", [qs, Qs, $S] = /* @__PURE__ */ Gs(eo), [On, fT] = /* @__PURE__ */ mr(eo, [
10694
+ var OS = Object.defineProperty, Ie = (e, t) => OS(e, "name", { value: t, configurable: !0 }), MS = [" ", "Enter", "ArrowUp", "ArrowDown"], LS = [" ", "Enter"], eo = "Select", [qs, Qs, $S] = /* @__PURE__ */ Fs(eo), [On, fT] = /* @__PURE__ */ mr(eo, [
10695
10695
  $S,
10696
10696
  Hs
10697
- ]), Rc = Hs(), [FS, ln] = On(eo), [GS, VS] = On(eo);
10697
+ ]), Rc = Hs(), [GS, ln] = On(eo), [FS, VS] = On(eo);
10698
10698
  function pg(e) {
10699
10699
  const {
10700
10700
  __scopeSelect: t,
@@ -10731,7 +10731,7 @@ function pg(e) {
10731
10731
  return $.addEventListener("reset", q), () => $.removeEventListener("reset", q);
10732
10732
  }
10733
10733
  }, [g, C, M]);
10734
- const G = C ? !!g || !!C.closest("form") : !0, [re, K] = v.useState(/* @__PURE__ */ new Set()), W = an(), ee = Array.from(re).map(($) => $.props.value).join(";"), F = v.useCallback(($) => {
10734
+ const F = C ? !!g || !!C.closest("form") : !0, [re, K] = v.useState(/* @__PURE__ */ new Set()), W = an(), ee = Array.from(re).map(($) => $.props.value).join(";"), G = v.useCallback(($) => {
10735
10735
  K((q) => new Set(q).add($));
10736
10736
  }, []), V = v.useCallback(($) => {
10737
10737
  K((q) => {
@@ -10759,13 +10759,13 @@ function pg(e) {
10759
10759
  form: g,
10760
10760
  nativeOptions: re,
10761
10761
  nativeSelectKey: ee,
10762
- isFormControl: G
10762
+ isFormControl: F
10763
10763
  };
10764
- return /* @__PURE__ */ c(Wh, { ...b, children: /* @__PURE__ */ c(FS, { scope: t, ...Se, children: /* @__PURE__ */ c(qs.Provider, { scope: t, children: /* @__PURE__ */ c(
10765
- GS,
10764
+ return /* @__PURE__ */ c(Wh, { ...b, children: /* @__PURE__ */ c(GS, { scope: t, ...Se, children: /* @__PURE__ */ c(qs.Provider, { scope: t, children: /* @__PURE__ */ c(
10765
+ FS,
10766
10766
  {
10767
10767
  scope: t,
10768
- onNativeOptionAdd: F,
10768
+ onNativeOptionAdd: G,
10769
10769
  onNativeOptionRemove: V,
10770
10770
  children: Cg(y) ? y(Se) : r
10771
10771
  }
@@ -10897,7 +10897,7 @@ var zS = /* @__PURE__ */ Ie((e) => {
10897
10897
  ...S
10898
10898
  } = t, x = ln(kn, n), [N, E] = v.useState(null), [R, P] = v.useState(null), k = Ue(r, E), [A, _] = v.useState(null), [M, O] = v.useState(
10899
10899
  null
10900
- ), L = Qs(n), [G, re] = v.useState(!1), K = v.useRef(!1);
10900
+ ), L = Qs(n), [F, re] = v.useState(!1), K = v.useRef(!1);
10901
10901
  v.useEffect(() => {
10902
10902
  if (N) return Xw(N);
10903
10903
  }, [N]), bc();
@@ -10913,9 +10913,9 @@ var zS = /* @__PURE__ */ Ie((e) => {
10913
10913
  [W, A, N]
10914
10914
  );
10915
10915
  v.useEffect(() => {
10916
- G && ee();
10917
- }, [G, ee]);
10918
- const { onOpenChange: F, triggerPointerDownPosRef: V } = x;
10916
+ F && ee();
10917
+ }, [F, ee]);
10918
+ const { onOpenChange: G, triggerPointerDownPosRef: V } = x;
10919
10919
  v.useEffect(() => {
10920
10920
  if (N) {
10921
10921
  let ce = { x: 0, y: 0 };
@@ -10926,18 +10926,18 @@ var zS = /* @__PURE__ */ Ie((e) => {
10926
10926
  y: Math.abs(Math.round(ye.pageY) - (((X = V.current) == null ? void 0 : X.y) ?? 0))
10927
10927
  };
10928
10928
  }, "handlePointerMove"), Ee = /* @__PURE__ */ Ie((ye) => {
10929
- ce.x <= 10 && ce.y <= 10 ? ye.preventDefault() : ye.composedPath().includes(N) || F(!1), document.removeEventListener("pointermove", te), V.current = null;
10929
+ ce.x <= 10 && ce.y <= 10 ? ye.preventDefault() : ye.composedPath().includes(N) || G(!1), document.removeEventListener("pointermove", te), V.current = null;
10930
10930
  }, "handlePointerUp");
10931
10931
  return V.current !== null && (document.addEventListener("pointermove", te), document.addEventListener("pointerup", Ee, { capture: !0, once: !0 })), () => {
10932
10932
  document.removeEventListener("pointermove", te), document.removeEventListener("pointerup", Ee, { capture: !0 });
10933
10933
  };
10934
10934
  }
10935
- }, [N, F, V]), v.useEffect(() => {
10936
- const ce = /* @__PURE__ */ Ie(() => F(!1), "close");
10935
+ }, [N, G, V]), v.useEffect(() => {
10936
+ const ce = /* @__PURE__ */ Ie(() => G(!1), "close");
10937
10937
  return window.addEventListener("blur", ce), window.addEventListener("resize", ce), () => {
10938
10938
  window.removeEventListener("blur", ce), window.removeEventListener("resize", ce);
10939
10939
  };
10940
- }, [F]);
10940
+ }, [G]);
10941
10941
  const [Se, $] = Dc((ce) => {
10942
10942
  const te = L().filter((ue) => !ue.disabled), Ee = te.find((ue) => ue.ref.current === document.activeElement), ye = _c(te, ce, Ee);
10943
10943
  ye && setTimeout(() => {
@@ -10982,7 +10982,7 @@ var zS = /* @__PURE__ */ Ie((e) => {
10982
10982
  focusSelectedItem: ee,
10983
10983
  selectedItemText: M,
10984
10984
  position: o,
10985
- isPositioned: G,
10985
+ isPositioned: F,
10986
10986
  searchRef: Se,
10987
10987
  children: /* @__PURE__ */ c(ug, { as: XS, allowPinchZoom: !0, children: /* @__PURE__ */ c(
10988
10988
  m0,
@@ -11067,7 +11067,7 @@ var zS = /* @__PURE__ */ Ie((e) => {
11067
11067
  ]);
11068
11068
  i.style.minWidth = fe + "px", i.style.right = Je + "px";
11069
11069
  }
11070
- const O = h(), L = window.innerHeight - cr * 2, G = b.scrollHeight, re = window.getComputedStyle(f), K = parseInt(re.borderTopWidth, 10), W = parseInt(re.paddingTop, 10), ee = parseInt(re.borderBottomWidth, 10), F = parseInt(re.paddingBottom, 10), V = K + W + G + F + ee, Se = Math.min(C.offsetHeight * 5, V), $ = window.getComputedStyle(b), q = parseInt($.paddingTop, 10), we = parseInt($.paddingBottom, 10), ne = k.top + k.height / 2 - cr, he = L - ne, j = C.offsetHeight / 2, ce = C.offsetTop + j, te = K + W + ce, Ee = V - te;
11070
+ const O = h(), L = window.innerHeight - cr * 2, F = b.scrollHeight, re = window.getComputedStyle(f), K = parseInt(re.borderTopWidth, 10), W = parseInt(re.paddingTop, 10), ee = parseInt(re.borderBottomWidth, 10), G = parseInt(re.paddingBottom, 10), V = K + W + F + G + ee, Se = Math.min(C.offsetHeight * 5, V), $ = window.getComputedStyle(b), q = parseInt($.paddingTop, 10), we = parseInt($.paddingBottom, 10), ne = k.top + k.height / 2 - cr, he = L - ne, j = C.offsetHeight / 2, ce = C.offsetTop + j, te = K + W + ce, Ee = V - te;
11071
11071
  if (te <= ne) {
11072
11072
  const ue = O.length > 0 && C === O[O.length - 1].ref.current;
11073
11073
  i.style.bottom = "0px";
@@ -11773,23 +11773,23 @@ const LC = [
11773
11773
  * This source code is licensed under the ISC license.
11774
11774
  * See the LICENSE file in the root directory of this source tree.
11775
11775
  */
11776
- const FC = [
11776
+ const GC = [
11777
11777
  ["path", { d: "M10 11v6", key: "nco0om" }],
11778
11778
  ["path", { d: "M14 11v6", key: "outv1u" }],
11779
11779
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
11780
11780
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
11781
11781
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
11782
- ], Ac = Nt("trash-2", FC);
11782
+ ], Ac = Nt("trash-2", GC);
11783
11783
  /**
11784
11784
  * @license lucide-react v0.563.0 - ISC
11785
11785
  *
11786
11786
  * This source code is licensed under the ISC license.
11787
11787
  * See the LICENSE file in the root directory of this source tree.
11788
11788
  */
11789
- const GC = [
11789
+ const FC = [
11790
11790
  ["path", { d: "M9 14 4 9l5-5", key: "102s5s" }],
11791
11791
  ["path", { d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11", key: "f3b9sd" }]
11792
- ], VC = Nt("undo-2", GC);
11792
+ ], VC = Nt("undo-2", FC);
11793
11793
  /**
11794
11794
  * @license lucide-react v0.563.0 - ISC
11795
11795
  *
@@ -16901,10 +16901,10 @@ const Dn = [
16901
16901
  }
16902
16902
  );
16903
16903
  }
16904
- }, FN = [
16904
+ }, GN = [
16905
16905
  LN,
16906
16906
  $N
16907
- ], GN = [
16907
+ ], FN = [
16908
16908
  ...Ex,
16909
16909
  ..._x,
16910
16910
  ...Lx,
@@ -16916,10 +16916,10 @@ const Dn = [
16916
16916
  ...RN,
16917
16917
  ...AN,
16918
16918
  ...MN,
16919
- ...FN
16919
+ ...GN
16920
16920
  ];
16921
16921
  function hT() {
16922
- for (const e of GN)
16922
+ for (const e of FN)
16923
16923
  yt.register(e);
16924
16924
  }
16925
16925
  const VN = [
@@ -17344,7 +17344,7 @@ function Mg() {
17344
17344
  );
17345
17345
  }
17346
17346
  Mc(Mg, "useIsHydratedModern");
17347
- var lE = typeof Pg == "function" ? Mg : Ig, iE = Object.defineProperty, Ln = (e, t) => iE(e, "name", { value: t, configurable: !0 }), zl = "rovingFocusGroup.onEntryFocus", cE = { bubbles: !1, cancelable: !0 }, Zs = "RovingFocusGroup", [Oi, Lg, dE] = /* @__PURE__ */ Gs(Zs), [uE, $g] = /* @__PURE__ */ mr(
17347
+ var lE = typeof Pg == "function" ? Mg : Ig, iE = Object.defineProperty, Ln = (e, t) => iE(e, "name", { value: t, configurable: !0 }), zl = "rovingFocusGroup.onEntryFocus", cE = { bubbles: !1, cancelable: !0 }, Zs = "RovingFocusGroup", [Oi, Lg, dE] = /* @__PURE__ */ Fs(Zs), [uE, $g] = /* @__PURE__ */ mr(
17348
17348
  Zs,
17349
17349
  [dE]
17350
17350
  ), [pE, fE] = uE(Zs), mE = /* @__PURE__ */ v.forwardRef(
@@ -17411,7 +17411,7 @@ var lE = typeof Pg == "function" ? Mg : Ig, iE = Object.defineProperty, Ln = (e,
17411
17411
  if (A.target === A.currentTarget && _ && !S) {
17412
17412
  const M = new CustomEvent(zl, cE);
17413
17413
  if (A.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
17414
- const O = E().filter((W) => W.focusable), L = O.find((W) => W.active), G = O.find((W) => W.id === b), K = [L, G, ...O].filter(
17414
+ const O = E().filter((W) => W.focusable), L = O.find((W) => W.active), F = O.find((W) => W.id === b), K = [L, F, ...O].filter(
17415
17415
  Boolean
17416
17416
  ).map((W) => W.ref.current);
17417
17417
  Lc(K, u);
@@ -17465,7 +17465,7 @@ var lE = typeof Pg == "function" ? Mg : Ig, iE = Object.defineProperty, Ln = (e,
17465
17465
  return;
17466
17466
  }
17467
17467
  if (S.target !== S.currentTarget) return;
17468
- const x = Gg(S, u.orientation, u.dir);
17468
+ const x = Fg(S, u.orientation, u.dir);
17469
17469
  if (x !== void 0) {
17470
17470
  if (S.metaKey || S.ctrlKey || S.altKey || S.shiftKey) return;
17471
17471
  S.preventDefault();
@@ -17495,16 +17495,16 @@ var lE = typeof Pg == "function" ? Mg : Ig, iE = Object.defineProperty, Ln = (e,
17495
17495
  PageDown: "last",
17496
17496
  End: "last"
17497
17497
  };
17498
- function Fg(e, t) {
17498
+ function Gg(e, t) {
17499
17499
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
17500
17500
  }
17501
- Ln(Fg, "getDirectionAwareKey");
17502
- function Gg(e, t, r) {
17503
- const n = Fg(e.key, r);
17501
+ Ln(Gg, "getDirectionAwareKey");
17502
+ function Fg(e, t, r) {
17503
+ const n = Gg(e.key, r);
17504
17504
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
17505
17505
  return yE[n];
17506
17506
  }
17507
- Ln(Gg, "getFocusIntent");
17507
+ Ln(Fg, "getFocusIntent");
17508
17508
  function Lc(e, t = !1) {
17509
17509
  const r = document.activeElement;
17510
17510
  for (const n of e)
@@ -17517,7 +17517,7 @@ function Vg(e, t) {
17517
17517
  Ln(Vg, "wrapArray");
17518
17518
  var vE = mE, xE = bE, wE = Object.defineProperty, uo = (e, t) => wE(e, "name", { value: t, configurable: !0 }), $c = "Tabs", [SE, vT] = /* @__PURE__ */ mr($c, [
17519
17519
  $g
17520
- ]), zg = $g(), [CE, Fc] = SE($c), NE = /* @__PURE__ */ v.forwardRef(
17520
+ ]), zg = $g(), [CE, Gc] = SE($c), NE = /* @__PURE__ */ v.forwardRef(
17521
17521
  // blank line to reduce diff noise
17522
17522
  /* @__PURE__ */ uo(function(t, r) {
17523
17523
  const {
@@ -17560,7 +17560,7 @@ var vE = mE, xE = bE, wE = Object.defineProperty, uo = (e, t) => wE(e, "name", {
17560
17560
  ), EE = "TabsList", RE = /* @__PURE__ */ v.forwardRef(
17561
17561
  // blank line to reduce diff noise
17562
17562
  /* @__PURE__ */ uo(function(t, r) {
17563
- const { __scopeTabs: n, loop: o = !0, ...a } = t, s = Fc(EE, n), l = zg(n);
17563
+ const { __scopeTabs: n, loop: o = !0, ...a } = t, s = Gc(EE, n), l = zg(n);
17564
17564
  return /* @__PURE__ */ c(
17565
17565
  vE,
17566
17566
  {
@@ -17583,7 +17583,7 @@ var vE = mE, xE = bE, wE = Object.defineProperty, uo = (e, t) => wE(e, "name", {
17583
17583
  }, "TabsList")
17584
17584
  ), kE = "TabsTrigger", DE = /* @__PURE__ */ v.forwardRef(
17585
17585
  /* @__PURE__ */ uo(function(t, r) {
17586
- const { __scopeTabs: n, value: o, disabled: a = !1, ...s } = t, l = Fc(kE, n), i = zg(n), d = Gc(l.baseId, o), f = Vc(l.baseId, o), u = o === l.value;
17586
+ const { __scopeTabs: n, value: o, disabled: a = !1, ...s } = t, l = Gc(kE, n), i = zg(n), d = Fc(l.baseId, o), f = Vc(l.baseId, o), u = o === l.value;
17587
17587
  return /* @__PURE__ */ c(
17588
17588
  xE,
17589
17589
  {
@@ -17621,7 +17621,7 @@ var vE = mE, xE = bE, wE = Object.defineProperty, uo = (e, t) => wE(e, "name", {
17621
17621
  }, "TabsTrigger")
17622
17622
  ), _E = "TabsContent", AE = /* @__PURE__ */ v.forwardRef(
17623
17623
  /* @__PURE__ */ uo(function(t, r) {
17624
- const { __scopeTabs: n, value: o, forceMount: a, children: s, ...l } = t, i = Fc(_E, n), d = Gc(i.baseId, o), f = Vc(i.baseId, o), u = o === i.value, m = v.useRef(u);
17624
+ const { __scopeTabs: n, value: o, forceMount: a, children: s, ...l } = t, i = Gc(_E, n), d = Fc(i.baseId, o), f = Vc(i.baseId, o), u = o === i.value, m = v.useRef(u);
17625
17625
  return v.useEffect(() => {
17626
17626
  const h = requestAnimationFrame(() => m.current = !1);
17627
17627
  return () => cancelAnimationFrame(h);
@@ -17646,10 +17646,10 @@ var vE = mE, xE = bE, wE = Object.defineProperty, uo = (e, t) => wE(e, "name", {
17646
17646
  ) });
17647
17647
  }, "TabsContent")
17648
17648
  );
17649
- function Gc(e, t) {
17649
+ function Fc(e, t) {
17650
17650
  return `${e}-trigger-${t}`;
17651
17651
  }
17652
- uo(Gc, "makeTriggerId");
17652
+ uo(Fc, "makeTriggerId");
17653
17653
  function Vc(e, t) {
17654
17654
  return `${e}-content-${t}`;
17655
17655
  }
@@ -17749,9 +17749,9 @@ var PE = Object.defineProperty, ea = (e, t) => PE(e, "name", { value: t, configu
17749
17749
  // blank line to reduce diff noise
17750
17750
  /* @__PURE__ */ ea(function(t, r) {
17751
17751
  const { forceMount: n, ...o } = t, a = Bc(qg, t.__scopeCollapsible);
17752
- return /* @__PURE__ */ c(io, { present: n || a.open, children: ({ present: s }) => /* @__PURE__ */ c(FE, { ...o, ref: r, present: s }) });
17752
+ return /* @__PURE__ */ c(io, { present: n || a.open, children: ({ present: s }) => /* @__PURE__ */ c(GE, { ...o, ref: r, present: s }) });
17753
17753
  }, "CollapsibleContent")
17754
- ), FE = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ ea(function(t, r) {
17754
+ ), GE = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ ea(function(t, r) {
17755
17755
  const { __scopeCollapsible: n, present: o, children: a, ...s } = t, l = Bc(qg, n), [i, d] = v.useState(o), f = v.useRef(null), u = Ue(r, f), m = v.useRef(0), h = m.current, g = v.useRef(0), y = g.current, b = l.open || i, C = v.useRef(b), S = v.useRef(void 0);
17756
17756
  return v.useEffect(() => {
17757
17757
  const x = requestAnimationFrame(() => C.current = !1);
@@ -17788,7 +17788,7 @@ function el(e) {
17788
17788
  return e ? "open" : "closed";
17789
17789
  }
17790
17790
  ea(el, "getState");
17791
- var Kg = LE, GE = Yg, VE = Qg;
17791
+ var Kg = LE, FE = Yg, VE = Qg;
17792
17792
  const Xg = Kg, Jg = Yg, Zg = Qg, zE = Js(
17793
17793
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
17794
17794
  {
@@ -18359,9 +18359,9 @@ const d1 = ({
18359
18359
  x && _ !== "pages" || a(_);
18360
18360
  }, x = s(), N = Y(() => {
18361
18361
  const _ = yt.getGroups(), M = _.filter(
18362
- (L) => L.elements.some((G) => G.category === "field")
18362
+ (L) => L.elements.some((F) => F.category === "field")
18363
18363
  ), O = _.filter(
18364
- (L) => L.elements.some((G) => G.category === "page")
18364
+ (L) => L.elements.some((F) => F.category === "page")
18365
18365
  );
18366
18366
  return { fieldGroups: M, pageGroups: O };
18367
18367
  }, []), E = Y(
@@ -19091,9 +19091,9 @@ const fn = ({ action: e, context: t }) => {
19091
19091
  A.onload = (_) => {
19092
19092
  var M;
19093
19093
  try {
19094
- const O = (M = _.target) == null ? void 0 : M.result, { schema: L, validation: G } = b1(O);
19095
- if (!G.valid) {
19096
- const K = v1(G), W = G.errors.filter((F) => F.type === "error").slice(0, 5).map((F) => `• ${F.message}`).join(`
19094
+ const O = (M = _.target) == null ? void 0 : M.result, { schema: L, validation: F } = b1(O);
19095
+ if (!F.valid) {
19096
+ const K = v1(F), W = F.errors.filter((G) => G.type === "error").slice(0, 5).map((G) => `• ${G.message}`).join(`
19097
19097
  `);
19098
19098
  if (window.confirm(
19099
19099
  `Schema validation failed (${K}):
@@ -19102,12 +19102,12 @@ ${W}
19102
19102
 
19103
19103
  Would you like to attempt to import anyway? The schema will be sanitized.`
19104
19104
  )) {
19105
- const F = JSON.parse(O), V = y1(F);
19105
+ const G = JSON.parse(O), V = y1(G);
19106
19106
  l(V);
19107
19107
  }
19108
19108
  return;
19109
19109
  }
19110
- const re = G.errors.filter(
19110
+ const re = F.errors.filter(
19111
19111
  (K) => K.type === "warning"
19112
19112
  );
19113
19113
  re.length > 0 && console.warn("Schema import warnings:", re), l(L);
@@ -19338,7 +19338,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19338
19338
  ]
19339
19339
  }
19340
19340
  ) });
19341
- }, Fo = ({
19341
+ }, Go = ({
19342
19342
  containerId: e,
19343
19343
  stepId: t,
19344
19344
  label: r = "Drop elements here",
@@ -19586,7 +19586,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19586
19586
  r && /* @__PURE__ */ c("p", { className: p("text-sm text-gray-500"), children: r })
19587
19587
  ] }),
19588
19588
  /* @__PURE__ */ c(
19589
- Fo,
19589
+ Go,
19590
19590
  {
19591
19591
  containerId: e.id,
19592
19592
  label: "Drop elements into this group",
@@ -19628,7 +19628,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19628
19628
  children: d.length === 0 ? (
19629
19629
  // Empty state - show drop zones for each column
19630
19630
  Array.from({ length: r }).map((m, h) => /* @__PURE__ */ c(
19631
- Fo,
19631
+ Go,
19632
19632
  {
19633
19633
  containerId: e.id,
19634
19634
  label: `Column ${h + 1}`
@@ -19653,7 +19653,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19653
19653
  }
19654
19654
  ),
19655
19655
  d.length > 0 && d.length < r * 3 && /* @__PURE__ */ c("div", { className: p("mt-3"), children: /* @__PURE__ */ c(
19656
- Fo,
19656
+ Go,
19657
19657
  {
19658
19658
  containerId: e.id,
19659
19659
  label: "Add more elements"
@@ -19684,7 +19684,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19684
19684
  children: [
19685
19685
  /* @__PURE__ */ c("div", { className: p("text-xs text-gray-500 mb-2 font-medium"), children: "📋 Item Template (will repeat)" }),
19686
19686
  /* @__PURE__ */ c(
19687
- Fo,
19687
+ Go,
19688
19688
  {
19689
19689
  containerId: e.id,
19690
19690
  label: "Drop elements to create the repeatable template",
@@ -19751,7 +19751,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19751
19751
  return k.parentId ? k.parentId === `${e.id}:${m}` || k.parentId === e.id && ((A = k.config) == null ? void 0 : A.wizardStepId) === m : !1;
19752
19752
  }).sort((k, A) => k.order - A.order), C = () => {
19753
19753
  const k = {
19754
- id: Fs(),
19754
+ id: Gs(),
19755
19755
  label: `Step ${u.length + 1}`,
19756
19756
  description: ""
19757
19757
  };
@@ -19859,7 +19859,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19859
19859
  )
19860
19860
  ] }),
19861
19861
  /* @__PURE__ */ c(
19862
- Fo,
19862
+ Go,
19863
19863
  {
19864
19864
  containerId: e.id,
19865
19865
  stepId: m,
@@ -19975,7 +19975,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19975
19975
  "elementType"
19976
19976
  );
19977
19977
  q && o(q);
19978
- }, G = () => {
19978
+ }, F = () => {
19979
19979
  const $ = g(), q = new Blob([JSON.stringify($, null, 2)], {
19980
19980
  type: "application/json"
19981
19981
  }), we = URL.createObjectURL(q), ne = document.createElement("a");
@@ -19988,7 +19988,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
19988
19988
  )) && b();
19989
19989
  }, W = ($) => {
19990
19990
  $.target === $.currentTarget && a(null);
19991
- }, ee = [...t.elements].filter(($) => !$.parentId).sort(($, q) => $.order - q.order), F = ($) => {
19991
+ }, ee = [...t.elements].filter(($) => !$.parentId).sort(($, q) => $.order - q.order), G = ($) => {
19992
19992
  P($);
19993
19993
  }, V = ($) => {
19994
19994
  R !== null && R !== $ && A($);
@@ -20004,7 +20004,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
20004
20004
  canRedo: h(),
20005
20005
  onUndo: f,
20006
20006
  onRedo: u,
20007
- onExport: G,
20007
+ onExport: F,
20008
20008
  exportSchema: g,
20009
20009
  onImport: re,
20010
20010
  onReset: K,
@@ -20046,7 +20046,7 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
20046
20046
  ),
20047
20047
  onDelete: () => s($.id),
20048
20048
  onDuplicate: () => l($.id),
20049
- onDragStart: F,
20049
+ onDragStart: G,
20050
20050
  onDragOver: V,
20051
20051
  onDragEnd: Se,
20052
20052
  isDragTarget: k === q
@@ -20280,12 +20280,12 @@ Would you like to attempt to import anyway? The schema will be sanitized.`
20280
20280
  allowCurrency: !1,
20281
20281
  percentage: !1,
20282
20282
  verbose: !1
20283
- }, F1 = (e) => {
20283
+ }, G1 = (e) => {
20284
20284
  const t = `${e}`.replace(L1, (l, i) => M1[i]).toUpperCase(), r = $1.exec(t);
20285
20285
  if (!r) return NaN;
20286
20286
  const [, n, o, a, s] = r;
20287
20287
  return (Ia[n] ?? 0) + (Ia[o] ?? 0) + (Ia[a] ?? 0) + (Ia[s] ?? 0);
20288
- }, G1 = /^\s*\//, V1 = new RegExp("^([-+]?)\\s*(\\p{Sc}+)\\s*", "u"), z1 = new RegExp("\\s*(\\p{Sc}+)$", "u"), B1 = /%$/;
20288
+ }, F1 = /^\s*\//, V1 = new RegExp("^([-+]?)\\s*(\\p{Sc}+)\\s*", "u"), z1 = new RegExp("\\s*(\\p{Sc}+)$", "u"), B1 = /%$/;
20289
20289
  function U1(e, t = Tf) {
20290
20290
  const r = {
20291
20291
  ...Tf,
@@ -20318,12 +20318,12 @@ function U1(e, t = Tf) {
20318
20318
  if (_ === 1) C = b.replaceAll(".", "_").replace(",", ".");
20319
20319
  else if (_ > 1) {
20320
20320
  if (!r.allowTrailingInvalid) return h(NaN);
20321
- const M = b.indexOf(","), O = b.indexOf(",", M + 1), L = b.substring(0, O).replaceAll(".", "_").replace(",", "."), G = b.substring(O + 1);
20322
- C = r.allowTrailingInvalid ? L + "&" + G : L;
20321
+ const M = b.indexOf(","), O = b.indexOf(",", M + 1), L = b.substring(0, O).replaceAll(".", "_").replace(",", "."), F = b.substring(O + 1);
20322
+ C = r.allowTrailingInvalid ? L + "&" + F : L;
20323
20323
  } else C = b.replaceAll(".", "_");
20324
20324
  }
20325
20325
  const S = P1.exec(C);
20326
- if (!S) return h(r.romanNumerals ? F1(b) : NaN);
20326
+ if (!S) return h(r.romanNumerals ? G1(b) : NaN);
20327
20327
  const x = (S[7] || C.slice(S[0].length)).trim();
20328
20328
  if (x && (l = x, !r.allowTrailingInvalid))
20329
20329
  return h(NaN);
@@ -20344,7 +20344,7 @@ function U1(e, t = Tf) {
20344
20344
  if (k.startsWith(".") || k.startsWith("e") || k.startsWith("E")) {
20345
20345
  const _ = parseFloat(`${g}${k}`);
20346
20346
  g = isNaN(A) ? _ : Math.round(_ * A) / A;
20347
- } else if (G1.test(k)) {
20347
+ } else if (F1.test(k)) {
20348
20348
  const _ = parseInt(P), M = parseInt(k.replace("/", ""));
20349
20349
  f = _, u = M, g = isNaN(A) ? _ / M : Math.round(_ * A / M) / A;
20350
20350
  } else {
@@ -20393,7 +20393,7 @@ function Ut(e, ...t) {
20393
20393
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
20394
20394
  );
20395
20395
  }
20396
- var Ht = Object, to = Ht.getPrototypeOf, hs = "constructor", rl = "prototype", $i = "configurable", gs = "enumerable", Ja = "writable", Go = "value", _r = (e) => !!e && !!e[Mt];
20396
+ var Ht = Object, to = Ht.getPrototypeOf, hs = "constructor", rl = "prototype", $i = "configurable", gs = "enumerable", Ja = "writable", Fo = "value", _r = (e) => !!e && !!e[Mt];
20397
20397
  function Ar(e) {
20398
20398
  var t;
20399
20399
  return e ? mb(e) || ol(e) || !!e[If] || !!((t = e[hs]) != null && t[If]) || al(e) || sl(e) : !1;
@@ -20422,7 +20422,7 @@ function ra(e) {
20422
20422
  const t = e[Mt];
20423
20423
  return t ? t.type_ : ol(e) ? 1 : al(e) ? 2 : sl(e) ? 3 : 0;
20424
20424
  }
20425
- var Ul = (e, t, r = ra(e)) => r === 2 ? e.has(t) : Ht[rl].hasOwnProperty.call(e, t), Fi = (e, t, r = ra(e)) => (
20425
+ var Ul = (e, t, r = ra(e)) => r === 2 ? e.has(t) : Ht[rl].hasOwnProperty.call(e, t), Gi = (e, t, r = ra(e)) => (
20426
20426
  // @ts-ignore
20427
20427
  r === 2 ? e.get(t) : e[t]
20428
20428
  ), bs = (e, t, r, n = ra(e)) => {
@@ -20437,7 +20437,7 @@ function Y1(e) {
20437
20437
  return Number.isInteger(t) && String(t) === e;
20438
20438
  }
20439
20439
  var Mr = (e) => e.copy_ || e.base_, qc = (e) => e.modified_ ? e.copy_ : e.base_;
20440
- function Gi(e, t) {
20440
+ function Fi(e, t) {
20441
20441
  if (al(e))
20442
20442
  return new Map(e);
20443
20443
  if (sl(e))
@@ -20456,7 +20456,7 @@ function Gi(e, t) {
20456
20456
  [Ja]: !0,
20457
20457
  // could live with !!desc.set as well here...
20458
20458
  [gs]: l[gs],
20459
- [Go]: e[s]
20459
+ [Fo]: e[s]
20460
20460
  });
20461
20461
  }
20462
20462
  return Ht.create(to(e), n);
@@ -20486,7 +20486,7 @@ function q1() {
20486
20486
  Ut(2);
20487
20487
  }
20488
20488
  var Pa = {
20489
- [Go]: q1
20489
+ [Fo]: q1
20490
20490
  };
20491
20491
  function ll(e) {
20492
20492
  return e === null || !Yc(e) ? !0 : Ht.isFrozen(e);
@@ -20523,11 +20523,11 @@ function K1(e) {
20523
20523
  const t = e[Mt];
20524
20524
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
20525
20525
  }
20526
- function Ff(e, t) {
20526
+ function Gf(e, t) {
20527
20527
  t.unfinalizedDrafts_ = t.drafts_.length;
20528
20528
  const r = t.drafts_[0];
20529
20529
  if (e !== void 0 && e !== r) {
20530
- r[Mt].modified_ && (zi(t), Ut(4)), Ar(e) && (e = Gf(t, e));
20530
+ r[Mt].modified_ && (zi(t), Ut(4)), Ar(e) && (e = Ff(t, e));
20531
20531
  const { patchPlugin_: o } = t;
20532
20532
  o && o.generateReplacementPatches_(
20533
20533
  r[Mt].base_,
@@ -20535,10 +20535,10 @@ function Ff(e, t) {
20535
20535
  t
20536
20536
  );
20537
20537
  } else
20538
- e = Gf(t, r);
20538
+ e = Ff(t, r);
20539
20539
  return X1(t, e, !0), zi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== fb ? e : void 0;
20540
20540
  }
20541
- function Gf(e, t) {
20541
+ function Ff(e, t) {
20542
20542
  if (ll(t))
20543
20543
  return t;
20544
20544
  const r = t[Mt];
@@ -20566,7 +20566,7 @@ function bb(e) {
20566
20566
  var il = (e, t) => e.scope_ === t, J1 = [];
20567
20567
  function yb(e, t, r, n) {
20568
20568
  const o = Mr(e), a = e.type_;
20569
- if (n !== void 0 && Fi(o, n, a) === t) {
20569
+ if (n !== void 0 && Gi(o, n, a) === t) {
20570
20570
  bs(o, n, r, a);
20571
20571
  return;
20572
20572
  }
@@ -20616,8 +20616,8 @@ function eR(e, t, r) {
20616
20616
  });
20617
20617
  } else Ar(r) && e.callbacks_.push(function() {
20618
20618
  const a = Mr(e);
20619
- e.type_ === 3 ? a.has(r) && vs(r, n.handledSet_, n) : Fi(a, t, e.type_) === r && n.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && vs(
20620
- Fi(e.copy_, t, e.type_),
20619
+ e.type_ === 3 ? a.has(r) && vs(r, n.handledSet_, n) : Gi(a, t, e.type_) === r && n.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && vs(
20620
+ Gi(e.copy_, t, e.type_),
20621
20621
  n.handledSet_,
20622
20622
  n
20623
20623
  );
@@ -20722,7 +20722,7 @@ var xs = {
20722
20722
  [Ja]: !0,
20723
20723
  [$i]: e.type_ !== 1 || t !== "length",
20724
20724
  [gs]: n[gs],
20725
- [Go]: r[t]
20725
+ [Fo]: r[t]
20726
20726
  };
20727
20727
  },
20728
20728
  defineProperty() {
@@ -20759,7 +20759,7 @@ function rR(e, t, r) {
20759
20759
  function nR(e, t, r) {
20760
20760
  var o;
20761
20761
  const n = xb(t, r);
20762
- return n ? Go in n ? n[Go] : (
20762
+ return n ? Fo in n ? n[Fo] : (
20763
20763
  // This is a very special case, if the prop is a getter defined by the
20764
20764
  // prototype, we should invoke it with the draft as context!
20765
20765
  (o = n.get) == null ? void 0 : o.call(e.draft_)
@@ -20780,7 +20780,7 @@ function Ui(e) {
20780
20780
  e.modified_ || (e.modified_ = !0, e.parent_ && Ui(e.parent_));
20781
20781
  }
20782
20782
  function Za(e) {
20783
- e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Gi(
20783
+ e.copy_ || (e.assigned_ = /* @__PURE__ */ new Map(), e.copy_ = Fi(
20784
20784
  e.base_,
20785
20785
  e.scope_.immer_.useStrictShallowCopy_
20786
20786
  ));
@@ -20806,7 +20806,7 @@ var oR = class {
20806
20806
  } finally {
20807
20807
  i ? zi(s) : Bi(s);
20808
20808
  }
20809
- return Lf(s, o), Ff(a, s);
20809
+ return Lf(s, o), Gf(a, s);
20810
20810
  } else if (!r || !Yc(r)) {
20811
20811
  if (a = n(r), a === void 0 && (a = r), a === fb && (a = void 0), this.autoFreeze_ && Qc(a, !0), o) {
20812
20812
  const s = [], l = [];
@@ -20836,7 +20836,7 @@ var oR = class {
20836
20836
  const n = t && t[Mt];
20837
20837
  (!n || !n.isManual_) && Ut(9);
20838
20838
  const { scope_: o } = n;
20839
- return Lf(o, r), Ff(void 0, o);
20839
+ return Lf(o, r), Gf(void 0, o);
20840
20840
  }
20841
20841
  /**
20842
20842
  * Pass true to automatically freeze all copies created by Immer.
@@ -20903,9 +20903,9 @@ function wb(e) {
20903
20903
  if (t) {
20904
20904
  if (!t.modified_)
20905
20905
  return t.base_;
20906
- t.finalized_ = !0, r = Gi(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
20906
+ t.finalized_ = !0, r = Fi(e, t.scope_.immer_.useStrictShallowCopy_), n = t.scope_.immer_.shouldUseStrictIteration();
20907
20907
  } else
20908
- r = Gi(e, !0);
20908
+ r = Fi(e, !0);
20909
20909
  return nl(
20910
20910
  r,
20911
20911
  (o, a) => {
@@ -21740,7 +21740,7 @@ const SR = {
21740
21740
  }
21741
21741
  }
21742
21742
  return t;
21743
- }, FR = (e, t, r, n = {}) => na(e, (o) => GR(o, t, r, n)), GR = (e, t, r, n = {}) => {
21743
+ }, GR = (e, t, r, n = {}) => na(e, (o) => FR(o, t, r, n)), FR = (e, t, r, n = {}) => {
21744
21744
  const { clone: o = !1, combinators: a = oa, idGenerator: s = or } = n, l = Array.isArray(t) ? t : no(t, e);
21745
21745
  if (!l) return e;
21746
21746
  const i = Pb(e, l, r);
@@ -22072,10 +22072,10 @@ function Wt(e, ...t) {
22072
22072
  var jt = Object, oo = jt.getPrototypeOf, Es = "constructor", pl = "prototype", Yi = "configurable", Rs = "enumerable", es = "writable", Uo = "value", Br = (e) => !!e && !!e[Lt];
22073
22073
  function ar(e) {
22074
22074
  var t;
22075
- return e ? Fb(e) || ml(e) || !!e[em] || !!((t = e[Es]) != null && t[em]) || hl(e) || gl(e) : !1;
22075
+ return e ? Gb(e) || ml(e) || !!e[em] || !!((t = e[Es]) != null && t[em]) || hl(e) || gl(e) : !1;
22076
22076
  }
22077
22077
  var JR = jt[pl][Es].toString(), tm = /* @__PURE__ */ new WeakMap();
22078
- function Fb(e) {
22078
+ function Gb(e) {
22079
22079
  if (!e || !Jc(e))
22080
22080
  return !1;
22081
22081
  const t = oo(e);
@@ -22120,7 +22120,7 @@ function Qi(e, t) {
22120
22120
  return new Set(e);
22121
22121
  if (ml(e))
22122
22122
  return Array[pl].slice.call(e);
22123
- const r = Fb(e);
22123
+ const r = Gb(e);
22124
22124
  if (t === !0 || t === "class_only" && !r) {
22125
22125
  const n = jt.getOwnPropertyDescriptors(e);
22126
22126
  delete n[Lt];
@@ -22167,12 +22167,12 @@ var Oa = {
22167
22167
  function bl(e) {
22168
22168
  return e === null || !Jc(e) ? !0 : jt.isFrozen(e);
22169
22169
  }
22170
- var Ds = "MapSet", Ki = "Patches", rm = "ArrayMethods", Gb = {};
22170
+ var Ds = "MapSet", Ki = "Patches", rm = "ArrayMethods", Fb = {};
22171
22171
  function In(e) {
22172
- const t = Gb[e];
22172
+ const t = Fb[e];
22173
22173
  return t || Wt(0, e), t;
22174
22174
  }
22175
- var nm = (e) => !!Gb[e], Wo, Vb = () => Wo, rk = (e, t) => ({
22175
+ var nm = (e) => !!Fb[e], Wo, Vb = () => Wo, rk = (e, t) => ({
22176
22176
  drafts_: [],
22177
22177
  parent_: e,
22178
22178
  immer_: t,
@@ -23084,7 +23084,7 @@ function $k({
23084
23084
  if (!a)
23085
23085
  throw new Error(process.env.NODE_ENV === "production" ? ze(11) : "`name` is a required option for createSlice");
23086
23086
  typeof process < "u" && process.env.NODE_ENV === "development" && o.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
23087
- const l = (typeof o.reducers == "function" ? o.reducers(Gk()) : o.reducers) || {}, i = Object.keys(l), d = {
23087
+ const l = (typeof o.reducers == "function" ? o.reducers(Fk()) : o.reducers) || {}, i = Object.keys(l), d = {
23088
23088
  sliceCaseReducersByName: {},
23089
23089
  sliceCaseReducersByType: {},
23090
23090
  actionCreators: {},
@@ -23160,7 +23160,7 @@ function $k({
23160
23160
  return _o(A, k, () => {
23161
23161
  const _ = {};
23162
23162
  for (const [M, O] of Object.entries(o.selectors ?? {}))
23163
- _[M] = Fk(O, k, () => _o(g, k, C), E);
23163
+ _[M] = Gk(O, k, () => _o(g, k, C), E);
23164
23164
  return _;
23165
23165
  });
23166
23166
  }
@@ -23197,7 +23197,7 @@ function $k({
23197
23197
  return x;
23198
23198
  };
23199
23199
  }
23200
- function Fk(e, t, r, n) {
23200
+ function Gk(e, t, r, n) {
23201
23201
  function o(a, ...s) {
23202
23202
  let l = t(a);
23203
23203
  if (typeof l > "u") {
@@ -23211,7 +23211,7 @@ function Fk(e, t, r, n) {
23211
23211
  return o.unwrapped = e, o;
23212
23212
  }
23213
23213
  var ty = /* @__PURE__ */ $k();
23214
- function Gk() {
23214
+ function Fk() {
23215
23215
  function e(t, r) {
23216
23216
  return {
23217
23217
  _reducerDefinitionType: "asyncThunk",
@@ -23909,42 +23909,42 @@ function ly(e) {
23909
23909
  const mn = (e) => (t) => jo.selectors.getQuerySelectorById({ queries: t.queries }, e), MD = (e, t) => {
23910
23910
  const r = v.useContext(id);
23911
23911
  return _D(e, t) ?? (r == null ? void 0 : r.initialQuery);
23912
- }, LD = {}, $D = {}, FD = [], GD = {}, VD = () => null, bm = () => "", hn = () => !0, zD = (...e) => {
23912
+ }, LD = {}, $D = {}, GD = [], FD = {}, VD = () => null, bm = () => "", hn = () => !0, zD = (...e) => {
23913
23913
  console.log(...e);
23914
23914
  };
23915
23915
  function BD(e, t) {
23916
- const { query: r, defaultQuery: n, getValueEditorSeparator: o = VD, getRuleClassname: a = bm, getRuleGroupClassname: s = bm, onAddRule: l = hn, onAddGroup: i = hn, onMoveRule: d = hn, onMoveGroup: f = hn, onGroupRule: u = hn, onGroupGroup: m = hn, onRemove: h = hn, onQueryChange: g, showCombinatorsBetweenRules: y = !1, showNotToggle: b = !1, showShiftActions: C = !1, showCloneButtons: S = !1, showLockButtons: x = !1, showMuteButtons: N = !1, suppressStandardClassnames: E = !1, resetOnFieldChange: R = !0, resetOnOperatorChange: P = !1, autoSelectField: k = !0, autoSelectOperator: A = !0, autoSelectValue: _ = !0, addRuleToNewGroups: M = !1, listsAsArrays: O = !1, parseNumbers: L = !1, disabled: G = !1, validator: re, onLog: K = zD, idGenerator: W, accessibleDescriptionGenerator: ee = wR } = e, { qbId: F, rqbContext: V, fields: Se, fieldMap: $, combinators: q, getParameters: we, getOperatorsMain: ne, getMatchModesMain: he, getRuleDefaultOperator: j, getSubQueryBuilderPropsMain: ce, getValueEditorTypeMain: te, getValueSourcesMain: Ee, getValuesMain: ye, getRuleDefaultValue: ue, getInputTypeMain: X, createRule: oe, createRuleGroup: fe } = t, { controlClassnames: Ce, controlElements: He, debugMode: Je, enableDragAndDrop: et, enableMountQueryChange: je, translations: ve } = V, nt = !!y, Le = !!b, Ge = !!C, We = !!S, Re = !!x, st = !!N, tt = !!R, gr = !!P, zt = !!k, D = !!A, T = !!_, I = !!M, U = !!O, B = !!E, J = (e.maxLevels ?? 0) > 0 ? Number(e.maxLevels) : 1 / 0, z = pe((...me) => {
23916
+ const { query: r, defaultQuery: n, getValueEditorSeparator: o = VD, getRuleClassname: a = bm, getRuleGroupClassname: s = bm, onAddRule: l = hn, onAddGroup: i = hn, onMoveRule: d = hn, onMoveGroup: f = hn, onGroupRule: u = hn, onGroupGroup: m = hn, onRemove: h = hn, onQueryChange: g, showCombinatorsBetweenRules: y = !1, showNotToggle: b = !1, showShiftActions: C = !1, showCloneButtons: S = !1, showLockButtons: x = !1, showMuteButtons: N = !1, suppressStandardClassnames: E = !1, resetOnFieldChange: R = !0, resetOnOperatorChange: P = !1, autoSelectField: k = !0, autoSelectOperator: A = !0, autoSelectValue: _ = !0, addRuleToNewGroups: M = !1, listsAsArrays: O = !1, parseNumbers: L = !1, disabled: F = !1, validator: re, onLog: K = zD, idGenerator: W, accessibleDescriptionGenerator: ee = wR } = e, { qbId: G, rqbContext: V, fields: Se, fieldMap: $, combinators: q, getParameters: we, getOperatorsMain: ne, getMatchModesMain: he, getRuleDefaultOperator: j, getSubQueryBuilderPropsMain: ce, getValueEditorTypeMain: te, getValueSourcesMain: Ee, getValuesMain: ye, getRuleDefaultValue: ue, getInputTypeMain: X, createRule: oe, createRuleGroup: fe } = t, { controlClassnames: Ce, controlElements: He, debugMode: Je, enableDragAndDrop: et, enableMountQueryChange: je, translations: ve } = V, nt = !!y, Le = !!b, Fe = !!C, We = !!S, Re = !!x, st = !!N, tt = !!R, gr = !!P, zt = !!k, D = !!A, T = !!_, I = !!M, U = !!O, B = !!E, J = (e.maxLevels ?? 0) > 0 ? Number(e.maxLevels) : 1 / 0, z = pe((...me) => {
23917
23917
  Je && K(...me);
23918
23918
  }, [Je, K]);
23919
23919
  PD({
23920
23920
  defaultQuery: n,
23921
23921
  queryProp: r
23922
23922
  });
23923
- const Q = DD(), ie = sd(), _e = Y(() => mn(F), [F]), Ve = MD(_e), Et = pe(() => _e(Q.getState()), [Q, _e]), ke = Y(() => fe(), [fe]), Qe = r ?? Ve ?? n ?? ke, ot = Qe.id ? Qe : ul(Qe, { idGenerator: W }), [sr] = mt(ot), $n = Y(() => ({
23923
+ const Q = DD(), ie = sd(), _e = Y(() => mn(G), [G]), Ve = MD(_e), Et = pe(() => _e(Q.getState()), [Q, _e]), ke = Y(() => fe(), [fe]), Qe = r ?? Ve ?? n ?? ke, ot = Qe.id ? Qe : ul(Qe, { idGenerator: W }), [sr] = mt(ot), $n = Y(() => ({
23924
23924
  ...V,
23925
23925
  initialQuery: sr
23926
23926
  }), [V, sr]);
23927
23927
  Kr(() => {
23928
23928
  r && !Object.is(r, Ve) && ie(ei({
23929
23929
  payload: {
23930
- qbId: F,
23930
+ qbId: G,
23931
23931
  query: r
23932
23932
  },
23933
23933
  onQueryChange: void 0
23934
23934
  }));
23935
23935
  }, [
23936
23936
  r,
23937
- F,
23937
+ G,
23938
23938
  Ve,
23939
23939
  ie
23940
23940
  ]);
23941
- const Qt = Y(() => aa(ot), [ot]), Fn = !!e.independentCombinators && !Qt;
23942
- ld("independentCombinators", Fn || !Fn && (e.independentCombinators ?? "not present") !== "not present", Fn ? "invalid" : "unnecessary");
23941
+ const Qt = Y(() => aa(ot), [ot]), Gn = !!e.independentCombinators && !Qt;
23942
+ ld("independentCombinators", Gn || !Gn && (e.independentCombinators ?? "not present") !== "not present", Gn ? "invalid" : "unnecessary");
23943
23943
  const po = ic(!1);
23944
23944
  Kr(() => {
23945
23945
  po.current || (po.current = !0, ie(ei({
23946
23946
  payload: {
23947
- qbId: F,
23947
+ qbId: G,
23948
23948
  query: ot
23949
23949
  },
23950
23950
  onQueryChange: je && typeof g == "function" ? g : void 0
@@ -23952,28 +23952,28 @@ function BD(e, t) {
23952
23952
  }, [
23953
23953
  je,
23954
23954
  g,
23955
- F,
23955
+ G,
23956
23956
  ie,
23957
23957
  ot
23958
23958
  ]);
23959
23959
  const Rt = pe((me) => {
23960
23960
  ie(ei({
23961
23961
  payload: {
23962
- qbId: F,
23962
+ qbId: G,
23963
23963
  query: me
23964
23964
  },
23965
23965
  onQueryChange: g
23966
23966
  }));
23967
23967
  }, [
23968
23968
  g,
23969
- F,
23969
+ G,
23970
23970
  ie
23971
- ]), Gn = Array.isArray(G) && G || FD, ht = G === !0, da = ot.disabled || Gn.some((me) => me.length === 0), fo = pe((me, Te, Fe) => {
23972
- const Me = mn(F)(Q.getState());
23971
+ ]), Fn = Array.isArray(F) && F || GD, ht = F === !0, da = ot.disabled || Fn.some((me) => me.length === 0), fo = pe((me, Te, Ge) => {
23972
+ const Me = mn(G)(Q.getState());
23973
23973
  if (!Me) return;
23974
23974
  if (Wn(Te, Me) || ht) {
23975
23975
  z({
23976
- qbId: F,
23976
+ qbId: G,
23977
23977
  type: bt.parentPathDisabled,
23978
23978
  rule: me,
23979
23979
  parentPath: Te,
@@ -23981,10 +23981,10 @@ function BD(e, t) {
23981
23981
  });
23982
23982
  return;
23983
23983
  }
23984
- const Pe = l(me, Te, Me, Fe);
23984
+ const Pe = l(me, Te, Me, Ge);
23985
23985
  if (!Pe) {
23986
23986
  z({
23987
- qbId: F,
23987
+ qbId: G,
23988
23988
  type: bt.onAddRuleFalse,
23989
23989
  rule: me,
23990
23990
  parentPath: Te,
@@ -23998,7 +23998,7 @@ function BD(e, t) {
23998
23998
  idGenerator: W
23999
23999
  });
24000
24000
  z({
24001
- qbId: F,
24001
+ qbId: G,
24002
24002
  type: bt.add,
24003
24003
  query: Me,
24004
24004
  newQuery: It,
@@ -24011,16 +24011,16 @@ function BD(e, t) {
24011
24011
  W,
24012
24012
  z,
24013
24013
  l,
24014
- F,
24014
+ G,
24015
24015
  Q,
24016
24016
  ht
24017
- ]), mo = pe((me, Te, Fe) => {
24017
+ ]), mo = pe((me, Te, Ge) => {
24018
24018
  if (Te.length >= J) return;
24019
- const Me = mn(F)(Q.getState());
24019
+ const Me = mn(G)(Q.getState());
24020
24020
  if (!Me) return;
24021
24021
  if (Wn(Te, Me) || ht) {
24022
24022
  z({
24023
- qbId: F,
24023
+ qbId: G,
24024
24024
  type: bt.parentPathDisabled,
24025
24025
  ruleGroup: me,
24026
24026
  parentPath: Te,
@@ -24028,10 +24028,10 @@ function BD(e, t) {
24028
24028
  });
24029
24029
  return;
24030
24030
  }
24031
- const Pe = i(me, Te, Me, Fe);
24031
+ const Pe = i(me, Te, Me, Ge);
24032
24032
  if (!Pe) {
24033
24033
  z({
24034
- qbId: F,
24034
+ qbId: G,
24035
24035
  type: bt.onAddGroupFalse,
24036
24036
  ruleGroup: me,
24037
24037
  parentPath: Te,
@@ -24045,7 +24045,7 @@ function BD(e, t) {
24045
24045
  idGenerator: W
24046
24046
  });
24047
24047
  z({
24048
- qbId: F,
24048
+ qbId: G,
24049
24049
  type: bt.add,
24050
24050
  query: Me,
24051
24051
  newQuery: It,
@@ -24059,24 +24059,24 @@ function BD(e, t) {
24059
24059
  z,
24060
24060
  J,
24061
24061
  i,
24062
- F,
24062
+ G,
24063
24063
  Q,
24064
24064
  ht
24065
- ]), ho = pe((me, Te, Fe) => {
24066
- const Me = mn(F)(Q.getState());
24065
+ ]), ho = pe((me, Te, Ge) => {
24066
+ const Me = mn(G)(Q.getState());
24067
24067
  if (!Me) return;
24068
- if (Wn(Fe, Me) && me !== "disabled" || ht) {
24068
+ if (Wn(Ge, Me) && me !== "disabled" || ht) {
24069
24069
  z({
24070
- qbId: F,
24070
+ qbId: G,
24071
24071
  type: bt.pathDisabled,
24072
- path: Fe,
24072
+ path: Ge,
24073
24073
  prop: me,
24074
24074
  value: Te,
24075
24075
  query: Me
24076
24076
  });
24077
24077
  return;
24078
24078
  }
24079
- const Pe = OR(Me, me, Te, Fe, {
24079
+ const Pe = OR(Me, me, Te, Ge, {
24080
24080
  resetOnFieldChange: tt,
24081
24081
  resetOnOperatorChange: gr,
24082
24082
  getRuleDefaultOperator: j,
@@ -24085,13 +24085,13 @@ function BD(e, t) {
24085
24085
  getMatchModes: he
24086
24086
  });
24087
24087
  z({
24088
- qbId: F,
24088
+ qbId: G,
24089
24089
  type: bt.update,
24090
24090
  query: Me,
24091
24091
  newQuery: Pe,
24092
24092
  prop: me,
24093
24093
  value: Te,
24094
- path: Fe
24094
+ path: Ge
24095
24095
  }), Rt(Pe);
24096
24096
  }, [
24097
24097
  Rt,
@@ -24100,54 +24100,54 @@ function BD(e, t) {
24100
24100
  ue,
24101
24101
  Ee,
24102
24102
  z,
24103
- F,
24103
+ G,
24104
24104
  Q,
24105
24105
  ht,
24106
24106
  tt,
24107
24107
  gr
24108
24108
  ]), Vn = pe((me, Te) => {
24109
- const Fe = mn(F)(Q.getState());
24110
- if (!Fe) return;
24111
- if (Wn(me, Fe) || ht) {
24109
+ const Ge = mn(G)(Q.getState());
24110
+ if (!Ge) return;
24111
+ if (Wn(me, Ge) || ht) {
24112
24112
  z({
24113
- qbId: F,
24113
+ qbId: G,
24114
24114
  type: bt.pathDisabled,
24115
24115
  path: me,
24116
- query: Fe
24116
+ query: Ge
24117
24117
  });
24118
24118
  return;
24119
24119
  }
24120
- const Me = ft(me, Fe);
24121
- if (Me) if (h(Me, me, Fe, Te)) {
24122
- const Pe = LR(Fe, me);
24120
+ const Me = ft(me, Ge);
24121
+ if (Me) if (h(Me, me, Ge, Te)) {
24122
+ const Pe = LR(Ge, me);
24123
24123
  z({
24124
- qbId: F,
24124
+ qbId: G,
24125
24125
  type: bt.remove,
24126
- query: Fe,
24126
+ query: Ge,
24127
24127
  newQuery: Pe,
24128
24128
  path: me,
24129
24129
  ruleOrGroup: Me
24130
24130
  }), Rt(Pe);
24131
24131
  } else z({
24132
- qbId: F,
24132
+ qbId: G,
24133
24133
  type: bt.onRemoveFalse,
24134
24134
  ruleOrGroup: Me,
24135
24135
  path: me,
24136
- query: Fe
24136
+ query: Ge
24137
24137
  });
24138
24138
  }, [
24139
24139
  Rt,
24140
24140
  z,
24141
24141
  h,
24142
- F,
24142
+ G,
24143
24143
  Q,
24144
24144
  ht
24145
- ]), go = pe((me, Te, Fe, Me) => {
24146
- const Pe = mn(F)(Q.getState());
24145
+ ]), go = pe((me, Te, Ge, Me) => {
24146
+ const Pe = mn(G)(Q.getState());
24147
24147
  if (!Pe) return;
24148
24148
  if (Wn(me, Pe) || ht) {
24149
24149
  z({
24150
- qbId: F,
24150
+ qbId: G,
24151
24151
  type: bt.pathDisabled,
24152
24152
  oldPath: me,
24153
24153
  newPath: Te,
@@ -24155,22 +24155,22 @@ function BD(e, t) {
24155
24155
  });
24156
24156
  return;
24157
24157
  }
24158
- const vt = FR(Pe, me, Te, {
24159
- clone: Fe,
24158
+ const vt = GR(Pe, me, Te, {
24159
+ clone: Ge,
24160
24160
  combinators: q,
24161
24161
  idGenerator: W
24162
24162
  }), It = ft(me, Pe), Hr = Ze(It), br = (Hr ? f : d)(It, me, Te, Pe, vt, {
24163
- clone: Fe,
24163
+ clone: Ge,
24164
24164
  combinators: q
24165
24165
  }, Me);
24166
24166
  if (!br) {
24167
24167
  z({
24168
- qbId: F,
24168
+ qbId: G,
24169
24169
  type: Hr ? bt.onMoveGroupFalse : bt.onMoveRuleFalse,
24170
24170
  ruleOrGroup: It,
24171
24171
  oldPath: me,
24172
24172
  newPath: Te,
24173
- clone: Fe,
24173
+ clone: Ge,
24174
24174
  query: Pe,
24175
24175
  nextQuery: vt
24176
24176
  });
@@ -24178,13 +24178,13 @@ function BD(e, t) {
24178
24178
  }
24179
24179
  const jr = Ze(br) ? br : vt;
24180
24180
  z({
24181
- qbId: F,
24181
+ qbId: G,
24182
24182
  type: bt.move,
24183
24183
  query: Pe,
24184
24184
  newQuery: jr,
24185
24185
  oldPath: me,
24186
24186
  newPath: Te,
24187
- clone: Fe
24187
+ clone: Ge
24188
24188
  }), Rt(jr);
24189
24189
  }, [
24190
24190
  q,
@@ -24193,15 +24193,15 @@ function BD(e, t) {
24193
24193
  z,
24194
24194
  f,
24195
24195
  d,
24196
- F,
24196
+ G,
24197
24197
  Q,
24198
24198
  ht
24199
- ]), bo = pe((me, Te, Fe, Me) => {
24200
- const Pe = mn(F)(Q.getState());
24199
+ ]), bo = pe((me, Te, Ge, Me) => {
24200
+ const Pe = mn(G)(Q.getState());
24201
24201
  if (!Pe) return;
24202
24202
  if (Wn(me, Pe) || ht) {
24203
24203
  z({
24204
- qbId: F,
24204
+ qbId: G,
24205
24205
  type: bt.pathDisabled,
24206
24206
  sourcePath: me,
24207
24207
  targetPath: Te,
@@ -24210,21 +24210,21 @@ function BD(e, t) {
24210
24210
  return;
24211
24211
  }
24212
24212
  const vt = VR(Pe, me, Te, {
24213
- clone: Fe,
24213
+ clone: Ge,
24214
24214
  combinators: q,
24215
24215
  idGenerator: W
24216
24216
  }), It = ft(me, Pe), Hr = Ze(It), br = (Hr ? m : u)(It, me, Te, Pe, vt, {
24217
- clone: Fe,
24217
+ clone: Ge,
24218
24218
  combinators: q
24219
24219
  }, Me);
24220
24220
  if (!br) {
24221
24221
  z({
24222
- qbId: F,
24222
+ qbId: G,
24223
24223
  type: Hr ? bt.onGroupGroupFalse : bt.onGroupRuleFalse,
24224
24224
  ruleOrGroup: It,
24225
24225
  sourcePath: me,
24226
24226
  targetPath: Te,
24227
- clone: Fe,
24227
+ clone: Ge,
24228
24228
  query: Pe,
24229
24229
  nextQuery: vt
24230
24230
  });
@@ -24232,13 +24232,13 @@ function BD(e, t) {
24232
24232
  }
24233
24233
  const jr = Ze(br) ? br : vt;
24234
24234
  z({
24235
- qbId: F,
24235
+ qbId: G,
24236
24236
  type: bt.group,
24237
24237
  query: Pe,
24238
24238
  newQuery: jr,
24239
24239
  sourcePath: me,
24240
24240
  targetPath: Te,
24241
- clone: Fe
24241
+ clone: Ge
24242
24242
  }), Rt(jr);
24243
24243
  }, [
24244
24244
  q,
@@ -24247,7 +24247,7 @@ function BD(e, t) {
24247
24247
  z,
24248
24248
  m,
24249
24249
  u,
24250
- F,
24250
+ G,
24251
24251
  Q,
24252
24252
  ht
24253
24253
  ]), { validationResult: Kt, validationMap: yo } = Y(() => {
@@ -24256,7 +24256,7 @@ function BD(e, t) {
24256
24256
  validationResult: me,
24257
24257
  validationMap: typeof me == "boolean" ? $D : me
24258
24258
  };
24259
- }, [ot, re]), ua = et ? "enabled" : "disabled", pa = Qt || nt ? "enabled" : "disabled", fa = Y(() => typeof ot.combinator == "string" ? { combinator: ot.combinator } : GD, [ot.combinator]), ma = Y(() => $e(B || ge.queryBuilder, $e(Ce.queryBuilder), ht && Ce.disabled, typeof Kt == "boolean" && Kt && Ce.valid, typeof Kt == "boolean" && !Kt && Ce.invalid, B || {
24259
+ }, [ot, re]), ua = et ? "enabled" : "disabled", pa = Qt || nt ? "enabled" : "disabled", fa = Y(() => typeof ot.combinator == "string" ? { combinator: ot.combinator } : FD, [ot.combinator]), ma = Y(() => $e(B || ge.queryBuilder, $e(Ce.queryBuilder), ht && Ce.disabled, typeof Kt == "boolean" && Kt && Ce.valid, typeof Kt == "boolean" && !Kt && Ce.invalid, B || {
24260
24260
  [ge.disabled]: ht,
24261
24261
  [ge.valid]: typeof Kt == "boolean" && Kt,
24262
24262
  [ge.invalid]: typeof Kt == "boolean" && !Kt
@@ -24280,7 +24280,7 @@ function BD(e, t) {
24280
24280
  controls: He,
24281
24281
  createRule: oe,
24282
24282
  createRuleGroup: vo,
24283
- disabledPaths: Gn,
24283
+ disabledPaths: Fn,
24284
24284
  enableDragAndDrop: et,
24285
24285
  fieldMap: $,
24286
24286
  fields: Se,
@@ -24302,7 +24302,7 @@ function BD(e, t) {
24302
24302
  listsAsArrays: U,
24303
24303
  maxLevels: J,
24304
24304
  parseNumbers: L,
24305
- qbId: F,
24305
+ qbId: G,
24306
24306
  resetOnFieldChange: tt,
24307
24307
  resetOnOperatorChange: gr,
24308
24308
  showCloneButtons: We,
@@ -24310,7 +24310,7 @@ function BD(e, t) {
24310
24310
  showLockButtons: Re,
24311
24311
  showMuteButtons: st,
24312
24312
  showNotToggle: Le,
24313
- showShiftActions: Ge,
24313
+ showShiftActions: Fe,
24314
24314
  suppressStandardClassnames: B,
24315
24315
  validationMap: yo
24316
24316
  }), [
@@ -24324,7 +24324,7 @@ function BD(e, t) {
24324
24324
  He,
24325
24325
  oe,
24326
24326
  vo,
24327
- Gn,
24327
+ Fn,
24328
24328
  Rt,
24329
24329
  et,
24330
24330
  $,
@@ -24347,7 +24347,7 @@ function BD(e, t) {
24347
24347
  U,
24348
24348
  J,
24349
24349
  L,
24350
- F,
24350
+ G,
24351
24351
  tt,
24352
24352
  gr,
24353
24353
  We,
@@ -24355,7 +24355,7 @@ function BD(e, t) {
24355
24355
  Re,
24356
24356
  st,
24357
24357
  Le,
24358
- Ge,
24358
+ Fe,
24359
24359
  B,
24360
24360
  yo
24361
24361
  ]);
@@ -24389,7 +24389,7 @@ function BD(e, t) {
24389
24389
  };
24390
24390
  }
24391
24391
  const UD = (e) => {
24392
- const [t] = mt(or), { fields: r, baseField: n, operators: o, baseOperator: a, combinators: s, baseCombinator: l, getParameters: i, translations: d, enableMountQueryChange: f = !0, controlClassnames: u, controlElements: m, getDefaultField: h, getDefaultOperator: g, getDefaultValue: y, getMatchModes: b, getOperators: C, getSubQueryBuilderProps: S, getValueEditorType: x, getValueSources: N, getInputType: E, getValues: R, autoSelectField: P = !0, autoSelectOperator: k = !0, autoSelectValue: A = !0, addRuleToNewGroups: _ = !1, enableDragAndDrop: M, listsAsArrays: O = !1, debugMode: L = !1, idGenerator: G = or } = e, [re] = mt(e.query ?? e.defaultQuery), K = r_({
24392
+ const [t] = mt(or), { fields: r, baseField: n, operators: o, baseOperator: a, combinators: s, baseCombinator: l, getParameters: i, translations: d, enableMountQueryChange: f = !0, controlClassnames: u, controlElements: m, getDefaultField: h, getDefaultOperator: g, getDefaultValue: y, getMatchModes: b, getOperators: C, getSubQueryBuilderProps: S, getValueEditorType: x, getValueSources: N, getInputType: E, getValues: R, autoSelectField: P = !0, autoSelectOperator: k = !0, autoSelectValue: A = !0, addRuleToNewGroups: _ = !1, enableDragAndDrop: M, listsAsArrays: O = !1, debugMode: L = !1, idGenerator: F = or } = e, [re] = mt(e.query ?? e.defaultQuery), K = r_({
24393
24393
  controlClassnames: u,
24394
24394
  controlElements: m,
24395
24395
  debugMode: L,
@@ -24399,7 +24399,7 @@ const UD = (e) => {
24399
24399
  initialQuery: re,
24400
24400
  qbId: t,
24401
24401
  finalize: !0
24402
- }), { translations: W } = K, { fields: ee, fieldMap: F } = sy({
24402
+ }), { translations: W } = K, { fields: ee, fieldMap: G } = sy({
24403
24403
  fields: r,
24404
24404
  baseField: n,
24405
24405
  autoSelectField: P,
@@ -24436,13 +24436,13 @@ const UD = (e) => {
24436
24436
  $,
24437
24437
  W.operators
24438
24438
  ]), we = pe((X) => {
24439
- const oe = F[X];
24439
+ const oe = G[X];
24440
24440
  return oe != null && oe.defaultOperator ? oe.defaultOperator : g ? typeof g == "function" ? g(X, { fieldData: oe }) : g : St(q(X, { fieldData: oe }) ?? []) ?? "";
24441
24441
  }, [
24442
- F,
24442
+ G,
24443
24443
  g,
24444
24444
  q
24445
- ]), ne = pe((X, oe, { fieldData: fe }) => fe.valueEditorType ? typeof fe.valueEditorType == "function" ? fe.valueEditorType(oe) : fe.valueEditorType : (x == null ? void 0 : x(X, oe, { fieldData: fe })) ?? "text", [x]), he = pe((X, oe, fe) => _b(F[X], oe, N), [F, N]), j = pe((X, oe) => CR(F[X], b), [F, b]), ce = pe((X, oe) => (S == null ? void 0 : S(X, oe)) ?? {}, [S]), te = pe((X, oe, { fieldData: fe }) => Qn({
24445
+ ]), ne = pe((X, oe, { fieldData: fe }) => fe.valueEditorType ? typeof fe.valueEditorType == "function" ? fe.valueEditorType(oe) : fe.valueEditorType : (x == null ? void 0 : x(X, oe, { fieldData: fe })) ?? "text", [x]), he = pe((X, oe, fe) => _b(G[X], oe, N), [G, N]), j = pe((X, oe) => CR(G[X], b), [G, b]), ce = pe((X, oe) => (S == null ? void 0 : S(X, oe)) ?? {}, [S]), te = pe((X, oe, { fieldData: fe }) => Qn({
24446
24446
  optionList: (fe == null ? void 0 : fe.values) ?? (R == null ? void 0 : R(X, oe, { fieldData: fe })) ?? [],
24447
24447
  placeholder: W.values,
24448
24448
  autoSelectOption: A
@@ -24451,7 +24451,7 @@ const UD = (e) => {
24451
24451
  R,
24452
24452
  W.values
24453
24453
  ]), Ee = pe((X) => NR(X, {
24454
- fieldData: F[X.field] ?? {},
24454
+ fieldData: G[X.field] ?? {},
24455
24455
  fields: ee,
24456
24456
  getParameters: (oe, fe, Ce) => Se(oe, fe, Ce),
24457
24457
  listsAsArrays: O,
@@ -24459,7 +24459,7 @@ const UD = (e) => {
24459
24459
  getValues: (oe, fe, Ce) => te(oe, fe, Ce),
24460
24460
  getDefaultValue: y && ((oe, fe) => y(oe, fe))
24461
24461
  }), [
24462
- F,
24462
+ G,
24463
24463
  ee,
24464
24464
  y,
24465
24465
  ne,
@@ -24487,7 +24487,7 @@ const UD = (e) => {
24487
24487
  je && (X = je);
24488
24488
  } else X = h;
24489
24489
  const fe = we(X), Ce = St(he(X, fe, { fieldData: ro(oe, X) })) ?? "value", He = St(j(X, { fieldData: ro(oe, X) })), Je = {
24490
- id: G(),
24490
+ id: F(),
24491
24491
  field: X,
24492
24492
  operator: fe,
24493
24493
  valueSource: Ce,
@@ -24508,13 +24508,13 @@ const UD = (e) => {
24508
24508
  we,
24509
24509
  Ee,
24510
24510
  he,
24511
- G
24511
+ F
24512
24512
  ]);
24513
24513
  return {
24514
24514
  qbId: t,
24515
24515
  rqbContext: K,
24516
24516
  fields: ee,
24517
- fieldMap: F,
24517
+ fieldMap: G,
24518
24518
  combinators: V,
24519
24519
  getParameters: Se,
24520
24520
  getMatchModesMain: j,
@@ -24528,11 +24528,11 @@ const UD = (e) => {
24528
24528
  getInputTypeMain: ye,
24529
24529
  createRule: ue,
24530
24530
  createRuleGroup: pe((X) => X ? {
24531
- id: G(),
24531
+ id: F(),
24532
24532
  rules: _ ? [ue()] : [],
24533
24533
  not: !1
24534
24534
  } : {
24535
- id: G(),
24535
+ id: F(),
24536
24536
  rules: _ ? [ue()] : [],
24537
24537
  combinator: St(V) ?? "",
24538
24538
  not: !1
@@ -24540,7 +24540,7 @@ const UD = (e) => {
24540
24540
  _,
24541
24541
  V,
24542
24542
  ue,
24543
- G
24543
+ F
24544
24544
  ])
24545
24545
  };
24546
24546
  }, iy = (e) => BD(e, UD(e)), id = Zy({}), WD = v.memo(function(t) {
@@ -24784,8 +24784,8 @@ const UD = (e) => {
24784
24784
  }));
24785
24785
  }));
24786
24786
  }), cy = (e) => {
24787
- const { id: t, path: r, ruleGroup: n, schema: { qbId: o, accessibleDescriptionGenerator: a, classNames: s, combinators: l, createRule: i, createRuleGroup: d, disabledPaths: f, independentCombinators: u, validationMap: m, enableDragAndDrop: h, getRuleGroupClassname: g, suppressStandardClassnames: y }, actions: { onGroupAdd: b, onGroupRemove: C, onPropChange: S, onRuleAdd: x, moveRule: N }, disabled: E, parentDisabled: R, parentMuted: P, shiftUpDisabled: k, shiftDownDisabled: A, combinator: _, rules: M, not: O, dropEffect: L = "move", groupItems: G = !1, dragMonitorId: re = "", dropMonitorId: K = "", previewRef: W = null, dragRef: ee = null, dropRef: F = null, isDragging: V = !1, isOver: Se = !1, dropNotAllowed: $ = !1 } = e;
24788
- ld("ruleGroup", !n), dy(h, !!(re || K || W || ee || F));
24787
+ const { id: t, path: r, ruleGroup: n, schema: { qbId: o, accessibleDescriptionGenerator: a, classNames: s, combinators: l, createRule: i, createRuleGroup: d, disabledPaths: f, independentCombinators: u, validationMap: m, enableDragAndDrop: h, getRuleGroupClassname: g, suppressStandardClassnames: y }, actions: { onGroupAdd: b, onGroupRemove: C, onPropChange: S, onRuleAdd: x, moveRule: N }, disabled: E, parentDisabled: R, parentMuted: P, shiftUpDisabled: k, shiftDownDisabled: A, combinator: _, rules: M, not: O, dropEffect: L = "move", groupItems: F = !1, dragMonitorId: re = "", dropMonitorId: K = "", previewRef: W = null, dragRef: ee = null, dropRef: G = null, isDragging: V = !1, isOver: Se = !1, dropNotAllowed: $ = !1 } = e;
24788
+ ld("ruleGroup", !n), dy(h, !!(re || K || W || ee || G));
24789
24789
  const q = !!R || !!E, we = !!P || !!(n != null && n.muted), ne = Y(() => n && Bo(n) ? n.combinator : n ? St(l) : _ ?? St(l), [
24790
24790
  _,
24791
24791
  l,
@@ -24930,11 +24930,11 @@ const UD = (e) => {
24930
24930
  ne,
24931
24931
  l,
24932
24932
  u
24933
- ]), nt = Y(() => g(he), [g, he]), Le = Y(() => $e(nt, ve, y || ge.ruleGroup, s.ruleGroup, q && s.disabled, we && s.muted, V && s.dndDragging, Se && G && s.dndGroup, y || {
24933
+ ]), nt = Y(() => g(he), [g, he]), Le = Y(() => $e(nt, ve, y || ge.ruleGroup, s.ruleGroup, q && s.disabled, we && s.muted, V && s.dndDragging, Se && F && s.dndGroup, y || {
24934
24934
  [ge.disabled]: q,
24935
24935
  [ge.muted]: we,
24936
24936
  [ge.dndDragging]: V,
24937
- [ge.dndGroup]: Se && G
24937
+ [ge.dndGroup]: Se && F
24938
24938
  }, je), [
24939
24939
  s.disabled,
24940
24940
  s.muted,
@@ -24944,13 +24944,13 @@ const UD = (e) => {
24944
24944
  ve,
24945
24945
  q,
24946
24946
  we,
24947
- G,
24947
+ F,
24948
24948
  V,
24949
24949
  Se,
24950
24950
  nt,
24951
24951
  y,
24952
24952
  je
24953
- ]), Ge = n_({
24953
+ ]), Fe = n_({
24954
24954
  disabled: q,
24955
24955
  disabledPaths: f,
24956
24956
  path: r,
@@ -24975,7 +24975,7 @@ const UD = (e) => {
24975
24975
  dragMonitorId: re,
24976
24976
  dragRef: ee,
24977
24977
  dropMonitorId: K,
24978
- dropRef: F,
24978
+ dropRef: G,
24979
24979
  isDragging: V,
24980
24980
  isOver: Se,
24981
24981
  muted: we,
@@ -24985,7 +24985,7 @@ const UD = (e) => {
24985
24985
  onNotToggleChange: Ee,
24986
24986
  outerClassName: Le,
24987
24987
  parentDisabled: R,
24988
- pathsMemo: Ge,
24988
+ pathsMemo: Fe,
24989
24989
  previewRef: W,
24990
24990
  removeGroup: Je,
24991
24991
  ruleGroup: he,
@@ -25248,8 +25248,8 @@ const UD = (e) => {
25248
25248
  parentDisabled: t.queryDisabled,
25249
25249
  context: e.context
25250
25250
  })));
25251
- }, rs = () => null, t_ = Os(rs), Fa = {}, r_ = ({ finalize: e, ...t }) => {
25252
- var g, y, b, C, S, x, N, E, R, P, k, A, _, M, O, L, G, re, K, W, ee, F, V, Se, $, q, we, ne, he, j, ce, te, Ee, ye, ue, X, oe, fe, Ce, He, Je, et, je, ve, nt, Le, Ge, We, Re, st, tt, gr, zt, D, T, I, U, B, J, z, Q, ie, _e, Ve, Et, ke, Qe, ot, sr, $n, Qt, Fn, po, Rt, Gn, ht, da, fo, mo, ho, Vn, go, bo, Kt, yo, ua, pa, fa, ma, vo, ha, me, Te, Fe, Me, Pe, vt, It, Hr, br, jr, Rd, kd, Dd, _d, Ad, Td, Id;
25251
+ }, rs = () => null, t_ = Os(rs), Ga = {}, r_ = ({ finalize: e, ...t }) => {
25252
+ var g, y, b, C, S, x, N, E, R, P, k, A, _, M, O, L, F, re, K, W, ee, G, V, Se, $, q, we, ne, he, j, ce, te, Ee, ye, ue, X, oe, fe, Ce, He, Je, et, je, ve, nt, Le, Fe, We, Re, st, tt, gr, zt, D, T, I, U, B, J, z, Q, ie, _e, Ve, Et, ke, Qe, ot, sr, $n, Qt, Gn, po, Rt, Fn, ht, da, fo, mo, ho, Vn, go, bo, Kt, yo, ua, pa, fa, ma, vo, ha, me, Te, Ge, Me, Pe, vt, It, Hr, br, jr, Rd, kd, Dd, _d, Ad, Td, Id;
25253
25253
  const r = ev(id), n = Y(() => _R(t, r), [
25254
25254
  t,
25255
25255
  r,
@@ -25344,16 +25344,16 @@ const UD = (e) => {
25344
25344
  a.valueListItem,
25345
25345
  a.valueSelector,
25346
25346
  a.valueSource
25347
- ]), l = r.controlElements ?? Fa, i = t.controlElements ?? Fa, d = pe((lr, xo, wo) => {
25347
+ ]), l = r.controlElements ?? Ga, i = t.controlElements ?? Ga, d = pe((lr, xo, wo) => {
25348
25348
  const So = lr === "dragHandle" ? t_ : rs, ga = (lr.endsWith("Action") && i.actionElement ? i.actionElement : void 0) ?? (lr.endsWith("Selector") && i.valueSelector ? i.valueSelector : void 0), ba = (lr.endsWith("Action") && l.actionElement ? l.actionElement : void 0) ?? (lr.endsWith("Selector") && l.valueSelector ? l.valueSelector : void 0), Co = xo === null ? So : xo ?? ga ?? (wo === null ? So : wo ?? ba);
25349
- return Co ? { [lr]: Co } : { [lr]: Ga[lr] };
25349
+ return Co ? { [lr]: Co } : { [lr]: Fa[lr] };
25350
25350
  }, [
25351
25351
  l.actionElement,
25352
25352
  l.valueSelector,
25353
25353
  e,
25354
25354
  i.actionElement,
25355
25355
  i.valueSelector
25356
- ]), f = Y(() => Object.assign({}, d("addGroupAction", i.addGroupAction, l.addGroupAction), d("addRuleAction", i.addRuleAction, l.addRuleAction), d("cloneGroupAction", i.cloneGroupAction, l.cloneGroupAction), d("cloneRuleAction", i.cloneRuleAction, l.cloneRuleAction), d("combinatorSelector", i.combinatorSelector, l.combinatorSelector), d("dragHandle", i.dragHandle, l.dragHandle), d("fieldSelector", i.fieldSelector, l.fieldSelector), d("inlineCombinator", i.inlineCombinator, l.inlineCombinator), d("lockGroupAction", i.lockGroupAction, l.lockGroupAction), d("lockRuleAction", i.lockRuleAction, l.lockRuleAction), d("muteGroupAction", i.muteGroupAction, l.muteGroupAction), d("muteRuleAction", i.muteRuleAction, l.muteRuleAction), d("notToggle", i.notToggle, l.notToggle), d("operatorSelector", i.operatorSelector, l.operatorSelector), d("removeGroupAction", i.removeGroupAction, l.removeGroupAction), d("removeRuleAction", i.removeRuleAction, l.removeRuleAction), d("shiftActions", i.shiftActions, l.shiftActions), { valueEditor: i.valueEditor === null ? rs : i.valueEditor ?? (l.valueEditor === null ? rs : l.valueEditor) ?? Ga.valueEditor }, d("valueSourceSelector", i.valueSourceSelector, l.valueSourceSelector), d("matchModeEditor", i.matchModeEditor, l.matchModeEditor), d("rule", i.rule, l.rule), d("ruleGroup", i.ruleGroup, l.ruleGroup), d("ruleGroupBodyElements", i.ruleGroupBodyElements, l.ruleGroupBodyElements), d("ruleGroupHeaderElements", i.ruleGroupHeaderElements, l.ruleGroupHeaderElements), { actionElement: i.actionElement ?? l.actionElement ?? Ga.actionElement }, { valueSelector: i.valueSelector ?? l.valueSelector ?? Ga.valueSelector }), [
25356
+ ]), f = Y(() => Object.assign({}, d("addGroupAction", i.addGroupAction, l.addGroupAction), d("addRuleAction", i.addRuleAction, l.addRuleAction), d("cloneGroupAction", i.cloneGroupAction, l.cloneGroupAction), d("cloneRuleAction", i.cloneRuleAction, l.cloneRuleAction), d("combinatorSelector", i.combinatorSelector, l.combinatorSelector), d("dragHandle", i.dragHandle, l.dragHandle), d("fieldSelector", i.fieldSelector, l.fieldSelector), d("inlineCombinator", i.inlineCombinator, l.inlineCombinator), d("lockGroupAction", i.lockGroupAction, l.lockGroupAction), d("lockRuleAction", i.lockRuleAction, l.lockRuleAction), d("muteGroupAction", i.muteGroupAction, l.muteGroupAction), d("muteRuleAction", i.muteRuleAction, l.muteRuleAction), d("notToggle", i.notToggle, l.notToggle), d("operatorSelector", i.operatorSelector, l.operatorSelector), d("removeGroupAction", i.removeGroupAction, l.removeGroupAction), d("removeRuleAction", i.removeRuleAction, l.removeRuleAction), d("shiftActions", i.shiftActions, l.shiftActions), { valueEditor: i.valueEditor === null ? rs : i.valueEditor ?? (l.valueEditor === null ? rs : l.valueEditor) ?? Fa.valueEditor }, d("valueSourceSelector", i.valueSourceSelector, l.valueSourceSelector), d("matchModeEditor", i.matchModeEditor, l.matchModeEditor), d("rule", i.rule, l.rule), d("ruleGroup", i.ruleGroup, l.ruleGroup), d("ruleGroupBodyElements", i.ruleGroupBodyElements, l.ruleGroupBodyElements), d("ruleGroupHeaderElements", i.ruleGroupHeaderElements, l.ruleGroupHeaderElements), { actionElement: i.actionElement ?? l.actionElement ?? Fa.actionElement }, { valueSelector: i.valueSelector ?? l.valueSelector ?? Fa.valueSelector }), [
25357
25357
  l.actionElement,
25358
25358
  l.addGroupAction,
25359
25359
  l.addRuleAction,
@@ -25408,8 +25408,8 @@ const UD = (e) => {
25408
25408
  i.valueEditor,
25409
25409
  i.valueSelector,
25410
25410
  i.valueSourceSelector
25411
- ]), u = t.translations ?? Fa, m = r.translations ?? Fa, h = Y(() => {
25412
- var lr, xo, wo, So, ga, ba, Co, Pd, Od, Md, Ld, $d, Fd, Gd, Vd, zd, Bd, Ud, Wd, Hd, jd, Yd, qd, Qd, Kd, Xd, Jd, Zd, eu, tu, ru, nu, ou, au, su, lu, iu, cu, du, uu, pu, fu, mu, hu, gu, bu, yu, vu, xu, wu, Su, Cu, Nu, Eu, Ru, ku, Du, _u, Au, Tu, Iu, Pu, Ou, Mu, Lu, $u, Fu, Gu, Vu, zu, Bu, Uu, Wu, Hu, ju, Yu, qu, Qu, Ku, Xu, Ju, Zu, ep, tp, rp, np, op, ap, sp, lp, ip, cp, dp, up, pp, fp, mp, hp, gp, bp, yp, vp, xp, wp, Sp, Cp, Np, Ep;
25411
+ ]), u = t.translations ?? Ga, m = r.translations ?? Ga, h = Y(() => {
25412
+ var lr, xo, wo, So, ga, ba, Co, Pd, Od, Md, Ld, $d, Gd, Fd, Vd, zd, Bd, Ud, Wd, Hd, jd, Yd, qd, Qd, Kd, Xd, Jd, Zd, eu, tu, ru, nu, ou, au, su, lu, iu, cu, du, uu, pu, fu, mu, hu, gu, bu, yu, vu, xu, wu, Su, Cu, Nu, Eu, Ru, ku, Du, _u, Au, Tu, Iu, Pu, Ou, Mu, Lu, $u, Gu, Fu, Vu, zu, Bu, Uu, Wu, Hu, ju, Yu, qu, Qu, Ku, Xu, Ju, Zu, ep, tp, rp, np, op, ap, sp, lp, ip, cp, dp, up, pp, fp, mp, hp, gp, bp, yp, vp, xp, wp, Sp, Cp, Np, Ep;
25413
25413
  return Object.assign({}, qe("addGroup", {
25414
25414
  label: [(lr = u.addGroup) == null ? void 0 : lr.label, (xo = m.addGroup) == null ? void 0 : xo.label],
25415
25415
  title: [(wo = u.addGroup) == null ? void 0 : wo.title, (So = m.addGroup) == null ? void 0 : So.title]
@@ -25420,7 +25420,7 @@ const UD = (e) => {
25420
25420
  label: [(Od = u.cloneRule) == null ? void 0 : Od.label, (Md = m.cloneRule) == null ? void 0 : Md.label],
25421
25421
  title: [(Ld = u.cloneRule) == null ? void 0 : Ld.title, ($d = m.cloneRule) == null ? void 0 : $d.title]
25422
25422
  }, Ye), qe("cloneRuleGroup", {
25423
- label: [(Fd = u.cloneRuleGroup) == null ? void 0 : Fd.label, (Gd = m.cloneRuleGroup) == null ? void 0 : Gd.label],
25423
+ label: [(Gd = u.cloneRuleGroup) == null ? void 0 : Gd.label, (Fd = m.cloneRuleGroup) == null ? void 0 : Fd.label],
25424
25424
  title: [(Vd = u.cloneRuleGroup) == null ? void 0 : Vd.title, (zd = m.cloneRuleGroup) == null ? void 0 : zd.title]
25425
25425
  }, Ye), qe("combinators", { title: [(Bd = u.combinators) == null ? void 0 : Bd.title, (Ud = m.combinators) == null ? void 0 : Ud.title] }, Ye), qe("dragHandle", {
25426
25426
  label: [(Wd = u.dragHandle) == null ? void 0 : Wd.label, (Hd = m.dragHandle) == null ? void 0 : Hd.label],
@@ -25458,7 +25458,7 @@ const UD = (e) => {
25458
25458
  label: [(Ou = u.notToggle) == null ? void 0 : Ou.label, (Mu = m.notToggle) == null ? void 0 : Mu.label],
25459
25459
  title: [(Lu = u.notToggle) == null ? void 0 : Lu.title, ($u = m.notToggle) == null ? void 0 : $u.title]
25460
25460
  }, Ye), qe("operators", {
25461
- placeholderGroupLabel: [(Fu = u.operators) == null ? void 0 : Fu.placeholderGroupLabel, (Gu = m.operators) == null ? void 0 : Gu.placeholderGroupLabel],
25461
+ placeholderGroupLabel: [(Gu = u.operators) == null ? void 0 : Gu.placeholderGroupLabel, (Fu = m.operators) == null ? void 0 : Fu.placeholderGroupLabel],
25462
25462
  placeholderLabel: [(Vu = u.operators) == null ? void 0 : Vu.placeholderLabel, (zu = m.operators) == null ? void 0 : zu.placeholderLabel],
25463
25463
  placeholderName: [(Bu = u.operators) == null ? void 0 : Bu.placeholderName, (Uu = m.operators) == null ? void 0 : Uu.placeholderName],
25464
25464
  title: [(Wu = u.operators) == null ? void 0 : Wu.title, (Hu = m.operators) == null ? void 0 : Hu.title]
@@ -25500,12 +25500,12 @@ const UD = (e) => {
25500
25500
  (M = m.fields) == null ? void 0 : M.placeholderName,
25501
25501
  (O = m.fields) == null ? void 0 : O.title,
25502
25502
  (L = m.lockGroup) == null ? void 0 : L.label,
25503
- (G = m.lockGroup) == null ? void 0 : G.title,
25503
+ (F = m.lockGroup) == null ? void 0 : F.title,
25504
25504
  (re = m.lockGroupDisabled) == null ? void 0 : re.label,
25505
25505
  (K = m.lockGroupDisabled) == null ? void 0 : K.title,
25506
25506
  (W = m.lockRule) == null ? void 0 : W.label,
25507
25507
  (ee = m.lockRule) == null ? void 0 : ee.title,
25508
- (F = m.lockRuleDisabled) == null ? void 0 : F.label,
25508
+ (G = m.lockRuleDisabled) == null ? void 0 : G.label,
25509
25509
  (V = m.lockRuleDisabled) == null ? void 0 : V.title,
25510
25510
  (Se = m.muteGroup) == null ? void 0 : Se.label,
25511
25511
  ($ = m.muteGroup) == null ? void 0 : $.title,
@@ -25530,7 +25530,7 @@ const UD = (e) => {
25530
25530
  (ve = m.removeRule) == null ? void 0 : ve.title,
25531
25531
  (nt = m.shiftActionDown) == null ? void 0 : nt.label,
25532
25532
  (Le = m.shiftActionDown) == null ? void 0 : Le.title,
25533
- (Ge = m.shiftActionUp) == null ? void 0 : Ge.label,
25533
+ (Fe = m.shiftActionUp) == null ? void 0 : Fe.label,
25534
25534
  (We = m.shiftActionUp) == null ? void 0 : We.title,
25535
25535
  (Re = m.value) == null ? void 0 : Re.title,
25536
25536
  (st = m.values) == null ? void 0 : st.placeholderGroupLabel,
@@ -25556,10 +25556,10 @@ const UD = (e) => {
25556
25556
  (sr = u.fields) == null ? void 0 : sr.title,
25557
25557
  ($n = u.lockGroup) == null ? void 0 : $n.label,
25558
25558
  (Qt = u.lockGroup) == null ? void 0 : Qt.title,
25559
- (Fn = u.lockGroupDisabled) == null ? void 0 : Fn.label,
25559
+ (Gn = u.lockGroupDisabled) == null ? void 0 : Gn.label,
25560
25560
  (po = u.lockGroupDisabled) == null ? void 0 : po.title,
25561
25561
  (Rt = u.lockRule) == null ? void 0 : Rt.label,
25562
- (Gn = u.lockRule) == null ? void 0 : Gn.title,
25562
+ (Fn = u.lockRule) == null ? void 0 : Fn.title,
25563
25563
  (ht = u.lockRuleDisabled) == null ? void 0 : ht.label,
25564
25564
  (da = u.lockRuleDisabled) == null ? void 0 : da.title,
25565
25565
  (fo = u.muteGroup) == null ? void 0 : fo.label,
@@ -25578,7 +25578,7 @@ const UD = (e) => {
25578
25578
  (ha = u.operators) == null ? void 0 : ha.placeholderGroupLabel,
25579
25579
  (me = u.operators) == null ? void 0 : me.placeholderLabel,
25580
25580
  (Te = u.operators) == null ? void 0 : Te.placeholderName,
25581
- (Fe = u.operators) == null ? void 0 : Fe.title,
25581
+ (Ge = u.operators) == null ? void 0 : Ge.title,
25582
25582
  (Me = u.removeGroup) == null ? void 0 : Me.label,
25583
25583
  (Pe = u.removeGroup) == null ? void 0 : Pe.title,
25584
25584
  (vt = u.removeRule) == null ? void 0 : vt.label,
@@ -25852,20 +25852,20 @@ const dy = (e, t) => {
25852
25852
  subQuery: m
25853
25853
  });
25854
25854
  }), c_ = (e) => {
25855
- const { id: t, path: r, rule: n, schema: { classNames: o, fields: a, fieldMap: s, getParameters: l, getInputType: i, getMatchModes: d, getOperators: f, getSubQueryBuilderProps: u, getValueEditorType: m, getValueEditorSeparator: h, getValueSources: g, getValues: y, validationMap: b, enableDragAndDrop: C, getRuleClassname: S, suppressStandardClassnames: x }, actions: { moveRule: N, onPropChange: E, onRuleRemove: R }, disabled: P, parentDisabled: k, parentMuted: A, shiftUpDisabled: _, shiftDownDisabled: M, field: O, operator: L, value: G, valueSource: re, dropEffect: K = "move", groupItems: W = !1, dragMonitorId: ee = "", dropMonitorId: F = "", dndRef: V = null, dragRef: Se = null, isDragging: $ = !1, isOver: q = !1, dropNotAllowed: we = !1 } = e;
25856
- ld("rule", !n), dy(C, !!(ee || F || V || Se));
25855
+ const { id: t, path: r, rule: n, schema: { classNames: o, fields: a, fieldMap: s, getParameters: l, getInputType: i, getMatchModes: d, getOperators: f, getSubQueryBuilderProps: u, getValueEditorType: m, getValueEditorSeparator: h, getValueSources: g, getValues: y, validationMap: b, enableDragAndDrop: C, getRuleClassname: S, suppressStandardClassnames: x }, actions: { moveRule: N, onPropChange: E, onRuleRemove: R }, disabled: P, parentDisabled: k, parentMuted: A, shiftUpDisabled: _, shiftDownDisabled: M, field: O, operator: L, value: F, valueSource: re, dropEffect: K = "move", groupItems: W = !1, dragMonitorId: ee = "", dropMonitorId: G = "", dndRef: V = null, dragRef: Se = null, isDragging: $ = !1, isOver: q = !1, dropNotAllowed: we = !1 } = e;
25856
+ ld("rule", !n), dy(C, !!(ee || G || V || Se));
25857
25857
  const ne = !!k || !!P, he = !!A || !!(n != null && n.muted), j = Y(() => n ?? {
25858
25858
  id: t,
25859
25859
  field: O ?? "",
25860
25860
  operator: L ?? "",
25861
- value: G,
25861
+ value: F,
25862
25862
  valueSource: re
25863
25863
  }, [
25864
25864
  O,
25865
25865
  t,
25866
25866
  L,
25867
25867
  n,
25868
- G,
25868
+ F,
25869
25869
  re
25870
25870
  ]), ce = Y(() => ({
25871
25871
  shiftActions: $e(x || ge.shiftActions, o.shiftActions),
@@ -25954,11 +25954,11 @@ const dy = (e, t) => {
25954
25954
  ve,
25955
25955
  d,
25956
25956
  j.field
25957
- ]), Ge = Y(() => f(j.field, { fieldData: ve }), [
25957
+ ]), Fe = Y(() => f(j.field, { fieldData: ve }), [
25958
25958
  ve,
25959
25959
  f,
25960
25960
  j.field
25961
- ]), We = Y(() => ro(Ge, j.operator), [Ge, j.operator]), Re = We == null ? void 0 : We.arity, st = typeof Re == "string" && Re === "unary" || typeof Re == "number" && Re < 2, tt = Y(() => {
25961
+ ]), We = Y(() => ro(Fe, j.operator), [Fe, j.operator]), Re = We == null ? void 0 : We.arity, st = typeof Re == "string" && Re === "unary" || typeof Re == "number" && Re < 2, tt = Y(() => {
25962
25962
  const ke = g(j.field, j.operator, { fieldData: ve });
25963
25963
  return j.valueSource && !ro(ke, j.valueSource) ? [...ke, {
25964
25964
  name: j.valueSource,
@@ -26055,7 +26055,7 @@ const dy = (e, t) => {
26055
26055
  dndRef: V,
26056
26056
  dragMonitorId: ee,
26057
26057
  dragRef: Se,
26058
- dropMonitorId: F,
26058
+ dropMonitorId: G,
26059
26059
  fieldData: ve,
26060
26060
  generateOnChangeHandler: te,
26061
26061
  onChangeField: Ee,
@@ -26067,7 +26067,7 @@ const dy = (e, t) => {
26067
26067
  inputType: nt,
26068
26068
  matchModes: Le,
26069
26069
  muted: he,
26070
- operators: Ge,
26070
+ operators: Fe,
26071
26071
  outerClassName: Et,
26072
26072
  removeRule: Je,
26073
26073
  rule: j,
@@ -26084,7 +26084,7 @@ const dy = (e, t) => {
26084
26084
  valueSourceOptions: tt,
26085
26085
  valueSources: gr
26086
26086
  };
26087
- }, Ga = {
26087
+ }, Fa = {
26088
26088
  actionElement: ir,
26089
26089
  addGroupAction: ir,
26090
26090
  addRuleAction: ir,
@@ -26444,7 +26444,7 @@ const Ua = ({ title: e, children: t, defaultOpen: r = !1, badge: n }) => {
26444
26444
  elements: t,
26445
26445
  onUpdate: r
26446
26446
  }) => {
26447
- var u, m, h, g, y, b, C, S, x, N, E, R, P, k, A, _, M, O, L, G, re, K, W, ee, F, V, Se, $, q, we, ne, he, j, ce, te, Ee, ye, ue, X, oe, fe, Ce, He, Je, et, je, ve, nt;
26447
+ var u, m, h, g, y, b, C, S, x, N, E, R, P, k, A, _, M, O, L, F, re, K, W, ee, G, V, Se, $, q, we, ne, he, j, ce, te, Ee, ye, ue, X, oe, fe, Ce, He, Je, et, je, ve, nt;
26448
26448
  const n = Y(() => t.filter((Le) => Le.id !== e.id).filter(
26449
26449
  (Le) => ![
26450
26450
  "divider",
@@ -26459,59 +26459,59 @@ const Ua = ({ title: e, children: t, defaultOpen: r = !1, badge: n }) => {
26459
26459
  ].includes(Le.type)
26460
26460
  ).map((Le) => {
26461
26461
  var st;
26462
- const Ge = f_(Le.type), We = m_(Le.type), Re = h_(Le);
26462
+ const Fe = f_(Le.type), We = m_(Le.type), Re = h_(Le);
26463
26463
  return {
26464
26464
  name: Le.id,
26465
26465
  label: Le.properties.label || Le.attributes.name || `Field ${Le.order + 1}`,
26466
26466
  inputType: We,
26467
- operators: Ge.map(
26467
+ operators: Fe.map(
26468
26468
  (tt) => ({ name: tt.name, label: tt.label })
26469
26469
  ),
26470
26470
  values: Re == null ? void 0 : Re.map((tt) => ({
26471
26471
  name: tt.name,
26472
26472
  label: tt.label
26473
26473
  })),
26474
- defaultOperator: ((st = Ge[0]) == null ? void 0 : st.name) || "equals"
26474
+ defaultOperator: ((st = Fe[0]) == null ? void 0 : st.name) || "equals"
26475
26475
  };
26476
26476
  }), [t, e.id]), o = pe(
26477
26477
  (Le) => {
26478
- const Ge = Ba(Le), We = {
26478
+ const Fe = Ba(Le), We = {
26479
26479
  ...e.logic,
26480
- showWhen: Ge.rules.length > 0 ? Ge : void 0
26480
+ showWhen: Fe.rules.length > 0 ? Fe : void 0
26481
26481
  };
26482
26482
  r({ logic: We });
26483
26483
  },
26484
26484
  [e.logic, r]
26485
26485
  ), a = pe(
26486
26486
  (Le) => {
26487
- const Ge = Ba(Le), We = {
26487
+ const Fe = Ba(Le), We = {
26488
26488
  ...e.logic,
26489
- hideWhen: Ge.rules.length > 0 ? Ge : void 0
26489
+ hideWhen: Fe.rules.length > 0 ? Fe : void 0
26490
26490
  };
26491
26491
  r({ logic: We });
26492
26492
  },
26493
26493
  [e.logic, r]
26494
26494
  ), s = pe(
26495
26495
  (Le) => {
26496
- const Ge = Ba(Le), We = {
26496
+ const Fe = Ba(Le), We = {
26497
26497
  ...e.logic,
26498
- requireWhen: Ge.rules.length > 0 ? Ge : void 0
26498
+ requireWhen: Fe.rules.length > 0 ? Fe : void 0
26499
26499
  };
26500
26500
  r({ logic: We });
26501
26501
  },
26502
26502
  [e.logic, r]
26503
26503
  ), l = pe(
26504
26504
  (Le) => {
26505
- const Ge = Ba(Le), We = {
26505
+ const Fe = Ba(Le), We = {
26506
26506
  ...e.logic,
26507
- disableWhen: Ge.rules.length > 0 ? Ge : void 0
26507
+ disableWhen: Fe.rules.length > 0 ? Fe : void 0
26508
26508
  };
26509
26509
  r({ logic: We });
26510
26510
  },
26511
26511
  [e.logic, r]
26512
26512
  ), i = pe(() => {
26513
26513
  r({ logic: void 0 });
26514
- }, [r]), d = e.logic && ((((m = (u = e.logic.showWhen) == null ? void 0 : u.rules) == null ? void 0 : m.length) ?? 0) > 0 || (((g = (h = e.logic.hideWhen) == null ? void 0 : h.rules) == null ? void 0 : g.length) ?? 0) > 0 || (((b = (y = e.logic.requireWhen) == null ? void 0 : y.rules) == null ? void 0 : b.length) ?? 0) > 0 || (((S = (C = e.logic.disableWhen) == null ? void 0 : C.rules) == null ? void 0 : S.length) ?? 0) > 0), f = (((E = (N = (x = e.logic) == null ? void 0 : x.showWhen) == null ? void 0 : N.rules) == null ? void 0 : E.length) ?? 0) + (((k = (P = (R = e.logic) == null ? void 0 : R.hideWhen) == null ? void 0 : P.rules) == null ? void 0 : k.length) ?? 0) + (((M = (_ = (A = e.logic) == null ? void 0 : A.requireWhen) == null ? void 0 : _.rules) == null ? void 0 : M.length) ?? 0) + (((G = (L = (O = e.logic) == null ? void 0 : O.disableWhen) == null ? void 0 : L.rules) == null ? void 0 : G.length) ?? 0);
26514
+ }, [r]), d = e.logic && ((((m = (u = e.logic.showWhen) == null ? void 0 : u.rules) == null ? void 0 : m.length) ?? 0) > 0 || (((g = (h = e.logic.hideWhen) == null ? void 0 : h.rules) == null ? void 0 : g.length) ?? 0) > 0 || (((b = (y = e.logic.requireWhen) == null ? void 0 : y.rules) == null ? void 0 : b.length) ?? 0) > 0 || (((S = (C = e.logic.disableWhen) == null ? void 0 : C.rules) == null ? void 0 : S.length) ?? 0) > 0), f = (((E = (N = (x = e.logic) == null ? void 0 : x.showWhen) == null ? void 0 : N.rules) == null ? void 0 : E.length) ?? 0) + (((k = (P = (R = e.logic) == null ? void 0 : R.hideWhen) == null ? void 0 : P.rules) == null ? void 0 : k.length) ?? 0) + (((M = (_ = (A = e.logic) == null ? void 0 : A.requireWhen) == null ? void 0 : _.rules) == null ? void 0 : M.length) ?? 0) + (((F = (L = (O = e.logic) == null ? void 0 : O.disableWhen) == null ? void 0 : L.rules) == null ? void 0 : F.length) ?? 0);
26515
26515
  return n.length === 0 ? /* @__PURE__ */ w(
26516
26516
  "div",
26517
26517
  {
@@ -26569,7 +26569,7 @@ const Ua = ({ title: e, children: t, defaultOpen: r = !1, badge: n }) => {
26569
26569
  {
26570
26570
  title: "Show When",
26571
26571
  defaultOpen: !!((W = (K = (re = e.logic) == null ? void 0 : re.showWhen) == null ? void 0 : K.rules) != null && W.length),
26572
- badge: (V = (F = (ee = e.logic) == null ? void 0 : ee.showWhen) == null ? void 0 : F.rules) != null && V.length ? String(e.logic.showWhen.rules.length) : void 0,
26572
+ badge: (V = (G = (ee = e.logic) == null ? void 0 : ee.showWhen) == null ? void 0 : G.rules) != null && V.length ? String(e.logic.showWhen.rules.length) : void 0,
26573
26573
  children: [
26574
26574
  /* @__PURE__ */ c("p", { className: p("text-xs text-muted-foreground mb-2"), children: "This element will only be visible when these conditions are met." }),
26575
26575
  /* @__PURE__ */ c("div", { className: p("query-builder-wrapper"), children: /* @__PURE__ */ c(
@@ -26767,7 +26767,7 @@ function my(e) {
26767
26767
  userInteractionCount: x,
26768
26768
  onUserInteraction: N,
26769
26769
  required: d,
26770
- defaultChecked: Gr(o) ? !1 : o,
26770
+ defaultChecked: Fr(o) ? !1 : o,
26771
26771
  isFormControl: E,
26772
26772
  bubbleInput: b,
26773
26773
  setBubbleInput: C
@@ -26808,7 +26808,7 @@ var N_ = "CheckboxTrigger", E_ = /* @__PURE__ */ v.forwardRef(
26808
26808
  {
26809
26809
  type: "button",
26810
26810
  role: "checkbox",
26811
- "aria-checked": Gr(d) ? "mixed" : d,
26811
+ "aria-checked": Fr(d) ? "mixed" : d,
26812
26812
  "aria-required": f,
26813
26813
  "data-state": pd(d),
26814
26814
  "data-disabled": i ? "" : void 0,
@@ -26820,7 +26820,7 @@ var N_ = "CheckboxTrigger", E_ = /* @__PURE__ */ v.forwardRef(
26820
26820
  x.key === "Enter" && x.preventDefault();
26821
26821
  }),
26822
26822
  onClick: Ne(n, (x) => {
26823
- g(), m((N) => Gr(N) ? !0 : !N), b && y && (h.current = x.isPropagationStopped(), h.current || x.stopPropagation());
26823
+ g(), m((N) => Fr(N) ? !0 : !N), b && y && (h.current = x.isPropagationStopped(), h.current || x.stopPropagation());
26824
26824
  })
26825
26825
  }
26826
26826
  );
@@ -26878,7 +26878,7 @@ var N_ = "CheckboxTrigger", E_ = /* @__PURE__ */ v.forwardRef(
26878
26878
  return /* @__PURE__ */ c(
26879
26879
  io,
26880
26880
  {
26881
- present: o || Gr(s.checked) || s.checked === !0,
26881
+ present: o || Fr(s.checked) || s.checked === !0,
26882
26882
  children: /* @__PURE__ */ c(
26883
26883
  Oe.span,
26884
26884
  {
@@ -26922,11 +26922,11 @@ var N_ = "CheckboxTrigger", E_ = /* @__PURE__ */ v.forwardRef(
26922
26922
  const L = !(M && s.current);
26923
26923
  if (O && _) {
26924
26924
  x.current = !M;
26925
- const G = new Event("click", { bubbles: L });
26926
- P.indeterminate = Gr(i), _.call(P, Gr(i) ? !1 : i), P.dispatchEvent(G), x.current = !1;
26925
+ const F = new Event("click", { bubbles: L });
26926
+ P.indeterminate = Fr(i), _.call(P, Fr(i) ? !1 : i), P.dispatchEvent(F), x.current = !1;
26927
26927
  }
26928
26928
  }, [y, i, s, l]);
26929
- const R = v.useRef(Gr(i) ? !1 : i);
26929
+ const R = v.useRef(Fr(i) ? !1 : i);
26930
26930
  return /* @__PURE__ */ c(
26931
26931
  Oe.input,
26932
26932
  {
@@ -26964,12 +26964,12 @@ function gy(e) {
26964
26964
  return typeof e == "function";
26965
26965
  }
26966
26966
  Ur(gy, "isFunction");
26967
- function Gr(e) {
26967
+ function Fr(e) {
26968
26968
  return e === "indeterminate";
26969
26969
  }
26970
- Ur(Gr, "isIndeterminate");
26970
+ Ur(Fr, "isIndeterminate");
26971
26971
  function pd(e) {
26972
- return Gr(e) ? "indeterminate" : e ? "checked" : "unchecked";
26972
+ return Fr(e) ? "indeterminate" : e ? "checked" : "unchecked";
26973
26973
  }
26974
26974
  Ur(pd, "getState");
26975
26975
  const fd = v.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
@@ -26991,14 +26991,14 @@ const fd = v.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ c(
26991
26991
  }
26992
26992
  ));
26993
26993
  fd.displayName = hy.displayName;
26994
- var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configurable: !0 }), Ir = "Accordion", T_ = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [md, I_, P_] = /* @__PURE__ */ Gs(Ir), [vl, AT] = /* @__PURE__ */ mr(Ir, [
26994
+ var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configurable: !0 }), Ir = "Accordion", T_ = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [md, I_, P_] = /* @__PURE__ */ Fs(Ir), [vl, AT] = /* @__PURE__ */ mr(Ir, [
26995
26995
  P_,
26996
26996
  jg
26997
26997
  ]), hd = jg(), O_ = /* @__PURE__ */ v.forwardRef(
26998
26998
  // blank line to reduce diff noise
26999
26999
  /* @__PURE__ */ Yt(function(t, r) {
27000
27000
  const { type: n, ...o } = t, a = o, s = o;
27001
- return /* @__PURE__ */ c(md.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ c(F_, { ...s, ref: r }) : /* @__PURE__ */ c($_, { ...a, ref: r }) });
27001
+ return /* @__PURE__ */ c(md.Provider, { scope: t.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ c(G_, { ...s, ref: r }) : /* @__PURE__ */ c($_, { ...a, ref: r }) });
27002
27002
  }, "Accordion")
27003
27003
  ), [by, M_] = vl(Ir), [yy, L_] = vl(
27004
27004
  Ir,
@@ -27030,7 +27030,7 @@ var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configu
27030
27030
  }
27031
27031
  );
27032
27032
  }, "AccordionImplSingle")
27033
- ), F_ = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ Yt(function(t, r) {
27033
+ ), G_ = /* @__PURE__ */ v.forwardRef(/* @__PURE__ */ Yt(function(t, r) {
27034
27034
  const {
27035
27035
  value: n,
27036
27036
  defaultValue: o,
@@ -27059,7 +27059,7 @@ var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configu
27059
27059
  children: /* @__PURE__ */ c(yy, { scope: t.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c(vy, { ...s, ref: r }) })
27060
27060
  }
27061
27061
  );
27062
- }, "AccordionImplMultiple")), [G_, xl] = vl(Ir), vy = /* @__PURE__ */ v.forwardRef(
27062
+ }, "AccordionImplMultiple")), [F_, xl] = vl(Ir), vy = /* @__PURE__ */ v.forwardRef(
27063
27063
  /* @__PURE__ */ Yt(function(t, r) {
27064
27064
  const { __scopeAccordion: n, disabled: o, dir: a, orientation: s = "vertical", ...l } = t, i = v.useRef(null), d = Ue(i, r), f = I_(n), m = Qo(a) === "ltr", h = Ne(t.onKeyDown, (g) => {
27065
27065
  var A;
@@ -27100,7 +27100,7 @@ var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configu
27100
27100
  (A = b[k].ref.current) == null || A.focus();
27101
27101
  });
27102
27102
  return /* @__PURE__ */ c(
27103
- G_,
27103
+ F_,
27104
27104
  {
27105
27105
  scope: n,
27106
27106
  disabled: o,
@@ -27166,7 +27166,7 @@ var A_ = Object.defineProperty, Yt = (e, t) => A_(e, "name", { value: t, configu
27166
27166
  /* @__PURE__ */ Yt(function(t, r) {
27167
27167
  const { __scopeAccordion: n, ...o } = t, a = xl(Ir, n), s = gd(vm, n), l = L_(vm, n), i = hd(n);
27168
27168
  return /* @__PURE__ */ c(md.ItemSlot, { scope: n, children: /* @__PURE__ */ c(
27169
- GE,
27169
+ FE,
27170
27170
  {
27171
27171
  "aria-disabled": s.open && !l.collapsible || void 0,
27172
27172
  "data-orientation": a.orientation,
@@ -28890,10 +28890,10 @@ var jn = (e) => at(e) && !Ps(e) ? e : {
28890
28890
  const x = l ? l[0] : s, N = (O) => {
28891
28891
  if (o && x.reportValidity) {
28892
28892
  const L = xr(O) ? "" : O || "";
28893
- l ? l.forEach((G) => G.setCustomValidity(L)) : x.setCustomValidity(L), x.reportValidity();
28893
+ l ? l.forEach((F) => F.setCustomValidity(L)) : x.setCustomValidity(L), x.reportValidity();
28894
28894
  }
28895
- }, E = {}, R = Cd(s), P = ia(s), k = R || P, A = (b || wl(s)) && Xe(s.value) && Xe(S) || Is(s) && s.value === "" || S === "" || Array.isArray(S) && !S.length, _ = yA.bind(null, y, n, E), M = (O, L, G, re = dr.maxLength, K = dr.minLength) => {
28896
- const W = O ? L : G;
28895
+ }, E = {}, R = Cd(s), P = ia(s), k = R || P, A = (b || wl(s)) && Xe(s.value) && Xe(S) || Is(s) && s.value === "" || S === "" || Array.isArray(S) && !S.length, _ = yA.bind(null, y, n, E), M = (O, L, F, re = dr.maxLength, K = dr.minLength) => {
28896
+ const W = O ? L : F;
28897
28897
  E[y] = {
28898
28898
  type: O ? re : K,
28899
28899
  message: W,
@@ -28913,20 +28913,20 @@ var jn = (e) => at(e) && !Ps(e) ? e : {
28913
28913
  }
28914
28914
  if (!A && (!At(u) || !At(m))) {
28915
28915
  let O, L;
28916
- const G = jn(m), re = jn(u);
28916
+ const F = jn(m), re = jn(u);
28917
28917
  if (!At(S) && !isNaN(S)) {
28918
28918
  const K = s.valueAsNumber || S && +S;
28919
- At(G.value) || (O = K > G.value), At(re.value) || (L = K < re.value);
28919
+ At(F.value) || (O = K > F.value), At(re.value) || (L = K < re.value);
28920
28920
  } else {
28921
- const K = s.valueAsDate || new Date(S), W = (V) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + V), ee = s.type == "time", F = s.type == "week";
28922
- Tt(G.value) && S && (O = ee ? W(S) > W(G.value) : F ? S > G.value : K > new Date(G.value)), Tt(re.value) && S && (L = ee ? W(S) < W(re.value) : F ? S < re.value : K < new Date(re.value));
28921
+ const K = s.valueAsDate || new Date(S), W = (V) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + V), ee = s.type == "time", G = s.type == "week";
28922
+ Tt(F.value) && S && (O = ee ? W(S) > W(F.value) : G ? S > F.value : K > new Date(F.value)), Tt(re.value) && S && (L = ee ? W(S) < W(re.value) : G ? S < re.value : K < new Date(re.value));
28923
28923
  }
28924
- if ((O || L) && (M(!!O, G.message, re.message, dr.max, dr.min), !n))
28924
+ if ((O || L) && (M(!!O, F.message, re.message, dr.max, dr.min), !n))
28925
28925
  return N(E[y].message), E;
28926
28926
  }
28927
28927
  if ((d || f) && !A && (Tt(S) || a && Array.isArray(S))) {
28928
- const O = jn(d), L = jn(f), G = !At(O.value) && S.length > +O.value, re = !At(L.value) && S.length < +L.value;
28929
- if ((G || re) && (M(G, O.message, L.message), !n))
28928
+ const O = jn(d), L = jn(f), F = !At(O.value) && S.length > +O.value, re = !At(L.value) && S.length < +L.value;
28929
+ if ((F || re) && (M(F, O.message, L.message), !n))
28930
28930
  return N(E[y].message), E;
28931
28931
  }
28932
28932
  if (h && !A && Tt(S)) {
@@ -28952,11 +28952,11 @@ var jn = (e) => at(e) && !Ps(e) ? e : {
28952
28952
  for (const L in g) {
28953
28953
  if (!kt(O) && !n)
28954
28954
  break;
28955
- const G = Rm(await g[L](S, r), x, L);
28956
- G && (O = {
28957
- ...G,
28958
- ..._(L, G.message)
28959
- }, N(G.message), n && (E[y] = O));
28955
+ const F = Rm(await g[L](S, r), x, L);
28956
+ F && (O = {
28957
+ ...F,
28958
+ ..._(L, F.message)
28959
+ }, N(F.message), n && (E[y] = O));
28960
28960
  }
28961
28961
  if (!kt(O) && (E[y] = {
28962
28962
  ref: x,
@@ -29189,7 +29189,7 @@ const AA = {
29189
29189
  for (const r in e)
29190
29190
  r in t || delete e[r];
29191
29191
  Object.assign(e, t);
29192
- }, Fy = {
29192
+ }, Gy = {
29193
29193
  submitCount: 0,
29194
29194
  isDirty: !1,
29195
29195
  isReady: !1,
@@ -29207,7 +29207,7 @@ function IA(e = {}) {
29207
29207
  ...AA,
29208
29208
  ...e
29209
29209
  }, r = {
29210
- ...lt(Fy),
29210
+ ...lt(Gy),
29211
29211
  isLoading: Jt(t.defaultValues),
29212
29212
  errors: t.errors || {},
29213
29213
  disabled: t.disabled || !1
@@ -29251,7 +29251,7 @@ function IA(e = {}) {
29251
29251
  if (!s.keepIsValid && !t.disabled && (g.isValid || y.isValid || D)) {
29252
29252
  const T = ++C;
29253
29253
  let I;
29254
- t.resolver ? (I = kt((await G()).errors), T === C && E()) : I = await W({
29254
+ t.resolver ? (I = kt((await F()).errors), T === C && E()) : I = await W({
29255
29255
  fields: n,
29256
29256
  onlyCheckValid: !0,
29257
29257
  eventType: Hn.VALID
@@ -29284,7 +29284,7 @@ function IA(e = {}) {
29284
29284
  }
29285
29285
  (g.dirtyFields || y.dirtyFields) && R(), b.state.next({
29286
29286
  name: D,
29287
- isDirty: F(D, T),
29287
+ isDirty: G(D, T),
29288
29288
  dirtyFields: r.dirtyFields,
29289
29289
  errors: r.errors,
29290
29290
  isValid: r.isValid
@@ -29315,7 +29315,7 @@ function IA(e = {}) {
29315
29315
  if (_(D))
29316
29316
  return;
29317
29317
  const J = Xe(le(a, D)), z = le(a, D, Xe(I) ? le(o, D) : I);
29318
- Xe(z) || U && U.defaultChecked || T ? Ke(a, D, T ? z : _m(B._f)) : $(D, z), s.mount && !s.action && (N(), J && r.isDirty && (g.isDirty || y.isDirty) && (F() || (r.isDirty = !1, b.state.next({ ...r }))), e.shouldUnregister && J && !Xe(le(a, D)) && ri(D, l) && (s.watch = !0));
29318
+ Xe(z) || U && U.defaultChecked || T ? Ke(a, D, T ? z : _m(B._f)) : $(D, z), s.mount && !s.action && (N(), J && r.isDirty && (g.isDirty || y.isDirty) && (G() || (r.isDirty = !1, b.state.next({ ...r }))), e.shouldUnregister && J && !Xe(le(a, D)) && ri(D, l) && (s.watch = !0));
29319
29319
  }
29320
29320
  }, O = (D, T, I, U, B) => {
29321
29321
  let J = !1, z = !1;
@@ -29325,7 +29325,7 @@ function IA(e = {}) {
29325
29325
  if (!t.disabled || U === !0) {
29326
29326
  if (!I || U) {
29327
29327
  const ie = wr(le(o, D), T);
29328
- (g.isDirty || y.isDirty) && (z = r.isDirty, r.isDirty = Q.isDirty = !ie || F(), J = z !== Q.isDirty), z = !!le(r.dirtyFields, D), ie !== r.isDirty ? TA(r.dirtyFields, bn(o, a, void 0, n)) : ie ? it(r.dirtyFields, D) : Ke(r.dirtyFields, D, !0), Q.dirtyFields = r.dirtyFields, J = J || (g.dirtyFields || y.dirtyFields) && z !== !ie;
29328
+ (g.isDirty || y.isDirty) && (z = r.isDirty, r.isDirty = Q.isDirty = !ie || G(), J = z !== Q.isDirty), z = !!le(r.dirtyFields, D), ie !== r.isDirty ? TA(r.dirtyFields, bn(o, a, void 0, n)) : ie ? it(r.dirtyFields, D) : Ke(r.dirtyFields, D, !0), Q.dirtyFields = r.dirtyFields, J = J || (g.dirtyFields || y.dirtyFields) && z !== !ie;
29329
29329
  }
29330
29330
  if (I) {
29331
29331
  const ie = le(r.touchedFields, D);
@@ -29348,8 +29348,8 @@ function IA(e = {}) {
29348
29348
  ...z
29349
29349
  }, b.state.next(z);
29350
29350
  }
29351
- }, G = async (D) => (E(D, !0), await t.resolver(a, t.context, CA(D || l.mount, n, t.criteriaMode, t.shouldUseNativeValidation))), re = async (D) => {
29352
- const { errors: T } = await G(D);
29351
+ }, F = async (D) => (E(D, !0), await t.resolver(a, t.context, CA(D || l.mount, n, t.criteriaMode, t.shouldUseNativeValidation))), re = async (D) => {
29352
+ const { errors: T } = await F(D);
29353
29353
  if (E(D), D) {
29354
29354
  for (const I of D) {
29355
29355
  const U = le(T, I);
@@ -29418,7 +29418,7 @@ function IA(e = {}) {
29418
29418
  T && (T._f.refs ? T._f.refs.every((I) => !ni(I)) : !ni(T._f.ref)) && He(D);
29419
29419
  }
29420
29420
  l.unMount = /* @__PURE__ */ new Set();
29421
- }, F = (D, T) => (D && T && Ke(a, D, T), !wr(s.mount ? a : o, o)), V = (D, T, I) => bA(D, l, {
29421
+ }, G = (D, T) => (D && T && Ke(a, D, T), !wr(s.mount ? a : o, o)), V = (D, T, I) => bA(D, l, {
29422
29422
  ...s.mount ? a : Xe(T) ? o : Tt(D) ? { [D]: T } : T
29423
29423
  }, I, T), Se = (D) => _y(le(s.mount ? a : o, D, t.shouldUnregister ? le(o, D, []) : [])), $ = (D, T, I = {}, U = !1, B = !1) => {
29424
29424
  const J = le(n, D);
@@ -29451,7 +29451,7 @@ function IA(e = {}) {
29451
29451
  }), (g.isDirty || g.dirtyFields || y.isDirty || y.dirtyFields) && I.shouldDirty && (R(), B || b.state.next({
29452
29452
  name: D,
29453
29453
  dirtyFields: r.dirtyFields,
29454
- isDirty: F(D, Q)
29454
+ isDirty: G(D, Q)
29455
29455
  }));
29456
29456
  else {
29457
29457
  const Ve = Array.isArray(Q) && !Q.length || kt(Q);
@@ -29510,7 +29510,7 @@ function IA(e = {}) {
29510
29510
  name: I,
29511
29511
  eventType: D.type
29512
29512
  }), !_e && ke && b.state.next({ ...r }), t.resolver) {
29513
- const { errors: sr } = await G([I]);
29513
+ const { errors: sr } = await F([I]);
29514
29514
  if (E([I]), J(ie), !U) {
29515
29515
  !kt(Qe) && b.state.next(Qe);
29516
29516
  return;
@@ -29640,7 +29640,7 @@ function IA(e = {}) {
29640
29640
  values: lt(a)
29641
29641
  }), b.state.next({
29642
29642
  ...r,
29643
- ...T.keepDirty ? { isDirty: F() } : {}
29643
+ ...T.keepDirty ? { isDirty: G() } : {}
29644
29644
  }), !T.keepIsValid && N();
29645
29645
  }, Je = ({ disabled: D, name: T }) => {
29646
29646
  if (xr(D) && s.mount || D || l.disabled.has(T)) {
@@ -29708,7 +29708,7 @@ function IA(e = {}) {
29708
29708
  if (b.state.next({
29709
29709
  isSubmitting: !0
29710
29710
  }), t.resolver) {
29711
- const { errors: J, values: z } = await G();
29711
+ const { errors: J, values: z } = await F();
29712
29712
  E(), r.errors = J, B = lt(z);
29713
29713
  } else
29714
29714
  await W({
@@ -29738,8 +29738,8 @@ function IA(e = {}) {
29738
29738
  }), U)
29739
29739
  throw U;
29740
29740
  }, Le = (D, T = {}) => {
29741
- le(n, D) && (Xe(T.defaultValue) ? ne(D, lt(le(o, D))) : (ne(D, T.defaultValue), Ke(o, D, lt(T.defaultValue))), T.keepTouched || it(r.touchedFields, D), T.keepDirty || (it(r.dirtyFields, D), r.isDirty = T.defaultValue ? F(D, lt(le(o, D))) : F()), T.keepError || (it(r.errors, D), g.isValid && N()), b.state.next({ ...r }));
29742
- }, Ge = (D, T = {}) => {
29741
+ le(n, D) && (Xe(T.defaultValue) ? ne(D, lt(le(o, D))) : (ne(D, T.defaultValue), Ke(o, D, lt(T.defaultValue))), T.keepTouched || it(r.touchedFields, D), T.keepDirty || (it(r.dirtyFields, D), r.isDirty = T.defaultValue ? G(D, lt(le(o, D))) : G()), T.keepError || (it(r.errors, D), g.isValid && N()), b.state.next({ ...r }));
29742
+ }, Fe = (D, T = {}) => {
29743
29743
  const I = D ? lt(D) : o, U = lt(I), B = kt(D), J = U, z = n;
29744
29744
  if (T.keepDefaultValues || (o = I), !T.keepValues) {
29745
29745
  if (T.keepDirtyValues) {
@@ -29797,7 +29797,7 @@ function IA(e = {}) {
29797
29797
  focus: ""
29798
29798
  }, s.mount = !g.isValid || !!T.keepIsValid || !!T.keepDirtyValues || !t.shouldUnregister && !kt(J), s.watch = !!t.shouldUnregister, s.keepIsValid = !!T.keepIsValid, s.action = !1, T.keepErrors || (r.errors = {}), b.state.next({
29799
29799
  submitCount: T.keepSubmitCount ? r.submitCount : 0,
29800
- isDirty: B ? !1 : T.keepDirty ? r.isDirty : T.keepValues ? F() : !!(T.keepDefaultValues && !wr(D, o)),
29800
+ isDirty: B ? !1 : T.keepDirty ? r.isDirty : T.keepValues ? G() : !!(T.keepDefaultValues && !wr(D, o)),
29801
29801
  isSubmitted: T.keepIsSubmitted ? r.isSubmitted : !1,
29802
29802
  dirtyFields: B ? {} : T.keepDirtyValues ? T.keepDefaultValues && a ? bn(o, a, void 0, z) : r.dirtyFields : T.keepDefaultValues && D ? bn(o, D, void 0, z) : T.keepDirty ? r.dirtyFields : {},
29803
29803
  touchedFields: T.keepTouched ? r.touchedFields : {},
@@ -29806,7 +29806,7 @@ function IA(e = {}) {
29806
29806
  isSubmitting: !1,
29807
29807
  defaultValues: o
29808
29808
  });
29809
- }, We = (D, T) => Ge(Jt(D) ? D(a) : D, { ...t.resetOptions, ...T }), Re = (D, T = {}) => {
29809
+ }, We = (D, T) => Fe(Jt(D) ? D(a) : D, { ...t.resetOptions, ...T }), Re = (D, T = {}) => {
29810
29810
  const I = le(n, D), U = I && I._f;
29811
29811
  if (U) {
29812
29812
  const B = U.refs ? U.refs[0] : U.ref;
@@ -29828,17 +29828,17 @@ function IA(e = {}) {
29828
29828
  handleSubmit: nt,
29829
29829
  setError: X,
29830
29830
  _subscribe: fe,
29831
- _runSchema: G,
29831
+ _runSchema: F,
29832
29832
  _updateIsValidating: E,
29833
29833
  _focusError: je,
29834
29834
  _getWatch: V,
29835
- _getDirty: F,
29835
+ _getDirty: G,
29836
29836
  _setValid: N,
29837
29837
  _setFieldArray: P,
29838
29838
  _setDisabledField: Je,
29839
29839
  _setErrors: A,
29840
29840
  _getFieldArray: Se,
29841
- _reset: Ge,
29841
+ _reset: Fe,
29842
29842
  _resetDefaultValues: () => Jt(t.defaultValues) && t.defaultValues().then((D) => {
29843
29843
  We(D, t.resetOptions), b.state.next({
29844
29844
  isLoading: !1
@@ -29913,9 +29913,9 @@ function IA(e = {}) {
29913
29913
  formControl: zt
29914
29914
  };
29915
29915
  }
29916
- function Gy(e = {}) {
29916
+ function Fy(e = {}) {
29917
29917
  const t = Ae.useRef(void 0), r = Ae.useRef(void 0), n = Ae.useRef(e.formControl), [o, a] = Ae.useState(() => ({
29918
- ...lt(Fy),
29918
+ ...lt(Gy),
29919
29919
  isLoading: Jt(e.defaultValues),
29920
29920
  errors: e.errors || {},
29921
29921
  disabled: e.disabled || !1,
@@ -29979,28 +29979,33 @@ function Vy(e) {
29979
29979
  ) ? "layout" : ["submit", "button"].includes(e.type) ? "action" : ["pages", "group", "repeatGroup"].includes(e.type) ? "container" : "field";
29980
29980
  }
29981
29981
  function PA(e, t) {
29982
- var o;
29983
- const r = [], n = /* @__PURE__ */ new Map();
29984
- for (const a of t) {
29985
- const s = ((o = a.attributes) == null ? void 0 : o.name) || a.id;
29986
- n.set(s, a);
29987
- }
29988
- for (const [a, s] of Object.entries(e)) {
29989
- const l = n.get(a);
29990
- if (l) {
29991
- const i = Vy(l);
29992
- if (i === "layout" || i === "action")
29982
+ var a, s;
29983
+ const r = [], n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
29984
+ for (const l of t) {
29985
+ const i = ((a = l.attributes) == null ? void 0 : a.name) || l.id;
29986
+ n.set(i, l), o.set(l.id, l);
29987
+ }
29988
+ for (const [l, i] of Object.entries(e)) {
29989
+ const d = n.get(l);
29990
+ if (d) {
29991
+ if (d.parentId) {
29992
+ const u = o.get(d.parentId);
29993
+ if (u && (u.type === "repeatGroup" || u.type === "repeatElement") && e[((s = u.attributes) == null ? void 0 : s.name) || u.id] !== void 0)
29994
+ continue;
29995
+ }
29996
+ const f = Vy(d);
29997
+ if (f === "layout" || f === "action")
29993
29998
  continue;
29994
29999
  r.push({
29995
- id: a,
29996
- value: s,
29997
- type: l.type,
29998
- category: i
30000
+ id: l,
30001
+ value: i,
30002
+ type: d.type,
30003
+ category: f
29999
30004
  });
30000
30005
  } else
30001
30006
  r.push({
30002
- id: a,
30003
- value: s,
30007
+ id: l,
30008
+ value: i,
30004
30009
  type: "unknown",
30005
30010
  category: "field"
30006
30011
  });
@@ -30011,19 +30016,24 @@ function zy(e, t, r = "keyValue") {
30011
30016
  return r === "array" ? PA(e, t) : e;
30012
30017
  }
30013
30018
  function TT(e, t) {
30014
- var o;
30015
- const r = {}, n = /* @__PURE__ */ new Map();
30016
- for (const a of t) {
30017
- const s = ((o = a.attributes) == null ? void 0 : o.name) || a.id;
30018
- n.set(s, a);
30019
- }
30020
- for (const [a, s] of Object.entries(e)) {
30021
- const l = n.get(a);
30022
- if (l) {
30023
- const i = Vy(l);
30024
- (i === "field" || i === "container") && (r[a] = s);
30019
+ var a, s;
30020
+ const r = {}, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
30021
+ for (const l of t) {
30022
+ const i = ((a = l.attributes) == null ? void 0 : a.name) || l.id;
30023
+ n.set(i, l), o.set(l.id, l);
30024
+ }
30025
+ for (const [l, i] of Object.entries(e)) {
30026
+ const d = n.get(l);
30027
+ if (d) {
30028
+ if (d.parentId) {
30029
+ const u = o.get(d.parentId);
30030
+ if (u && (u.type === "repeatGroup" || u.type === "repeatElement") && e[((s = u.attributes) == null ? void 0 : s.name) || u.id] !== void 0)
30031
+ continue;
30032
+ }
30033
+ const f = Vy(d);
30034
+ (f === "field" || f === "container") && (r[l] = i);
30025
30035
  } else
30026
- r[a] = s;
30036
+ r[l] = i;
30027
30037
  }
30028
30038
  return r;
30029
30039
  }
@@ -30193,7 +30203,7 @@ const OA = ({
30193
30203
  maxLength: (P = e.validation) == null ? void 0 : P.maxLength,
30194
30204
  min: (k = e.validation) == null ? void 0 : k.min,
30195
30205
  max: (A = e.validation) == null ? void 0 : A.max,
30196
- pattern: FA((_ = e.validation) == null ? void 0 : _.pattern),
30206
+ pattern: GA((_ = e.validation) == null ? void 0 : _.pattern),
30197
30207
  disabled: d || e.properties.disabled || void 0
30198
30208
  }), () => a(f, { keepValue: !0 });
30199
30209
  }
@@ -30300,7 +30310,7 @@ function $A(e) {
30300
30310
  return "";
30301
30311
  }
30302
30312
  }
30303
- function FA(e) {
30313
+ function GA(e) {
30304
30314
  if (e)
30305
30315
  try {
30306
30316
  return new RegExp(e);
@@ -30308,7 +30318,7 @@ function FA(e) {
30308
30318
  return;
30309
30319
  }
30310
30320
  }
30311
- function GA(e) {
30321
+ function FA(e) {
30312
30322
  const t = {};
30313
30323
  return e.forEach((r) => {
30314
30324
  var n;
@@ -30335,13 +30345,13 @@ const Uy = ({
30335
30345
  [e.elements]
30336
30346
  ), m = Y(
30337
30347
  () => {
30338
- var _, M, O, L, G;
30348
+ var _, M, O, L, F;
30339
30349
  return {
30340
30350
  showProgressBar: ((_ = u == null ? void 0 : u.config) == null ? void 0 : _.showProgressBar) ?? !0,
30341
30351
  showStepNumbers: ((M = u == null ? void 0 : u.config) == null ? void 0 : M.showStepNumbers) ?? !0,
30342
30352
  allowSkip: ((O = u == null ? void 0 : u.config) == null ? void 0 : O.allowSkip) ?? !1,
30343
30353
  validateOnNext: ((L = u == null ? void 0 : u.config) == null ? void 0 : L.validateOnNext) ?? !0,
30344
- steps: ((G = u == null ? void 0 : u.config) == null ? void 0 : G.steps) || [
30354
+ steps: ((F = u == null ? void 0 : u.config) == null ? void 0 : F.steps) || [
30345
30355
  { id: "step1", label: "Step 1" }
30346
30356
  ]
30347
30357
  };
@@ -30350,23 +30360,23 @@ const Uy = ({
30350
30360
  ), h = Y(() => u ? m.steps.map((M) => {
30351
30361
  const O = e.elements.filter(
30352
30362
  (L) => {
30353
- var G;
30354
- return L.parentId === `${u.id}:${M.id}` || L.parentId === u.id && ((G = L.config) == null ? void 0 : G.wizardStepId) === M.id;
30363
+ var F;
30364
+ return L.parentId === `${u.id}:${M.id}` || L.parentId === u.id && ((F = L.config) == null ? void 0 : F.wizardStepId) === M.id;
30355
30365
  }
30356
30366
  );
30357
30367
  return {
30358
30368
  id: M.id,
30359
30369
  title: M.label,
30360
30370
  description: M.description,
30361
- elements: O.sort((L, G) => L.order - G.order)
30371
+ elements: O.sort((L, F) => L.order - F.order)
30362
30372
  };
30363
30373
  }) : [], [u, m.steps, e.elements]), g = Y(
30364
30374
  () => e.elements.filter((_) => _.type !== "pages"),
30365
30375
  [e.elements]
30366
30376
  ), y = Y(
30367
- () => r || GA(g),
30377
+ () => r || FA(g),
30368
30378
  [r, g]
30369
- ), b = Gy({
30379
+ ), b = Fy({
30370
30380
  defaultValues: y,
30371
30381
  mode: "onChange"
30372
30382
  }), { handleSubmit: C, trigger: S } = b, x = pe(
@@ -30640,7 +30650,7 @@ const Wy = ({
30640
30650
  ), i = Y(
30641
30651
  () => r || BA(l),
30642
30652
  [r, l]
30643
- ), d = Gy({
30653
+ ), d = Fy({
30644
30654
  defaultValues: i,
30645
30655
  mode: "onChange"
30646
30656
  }), f = pe(
@@ -31001,7 +31011,7 @@ export {
31001
31011
  Zn as IconInput,
31002
31012
  de as InputWrapper,
31003
31013
  Uy as WizardForm,
31004
- GN as builtInElements,
31014
+ FN as builtInElements,
31005
31015
  l1 as createSidebarTab,
31006
31016
  wT as createSidebarTabs,
31007
31017
  x1 as createToolbarAction,