@notmrabhi/flowforge 0.1.102 → 0.1.103

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.
Files changed (29) hide show
  1. package/dist/{SchemaBuilderDrawer-CF4cJeXJ.js → SchemaBuilderDrawer-BTTVCnm_.js} +2 -2
  2. package/dist/{SchemaBuilderDrawer-CF4cJeXJ.js.map → SchemaBuilderDrawer-BTTVCnm_.js.map} +1 -1
  3. package/dist/{SchemaBuilderDrawer-CtT0j0WY.js → SchemaBuilderDrawer-BlZudF-G.js} +2 -2
  4. package/dist/{SchemaBuilderDrawer-CtT0j0WY.js.map → SchemaBuilderDrawer-BlZudF-G.js.map} +1 -1
  5. package/dist/{WorkflowExecutionHistory-6X5WPDN6.js → WorkflowExecutionHistory-BQ7W4WXX.js} +2 -2
  6. package/dist/{WorkflowExecutionHistory-6X5WPDN6.js.map → WorkflowExecutionHistory-BQ7W4WXX.js.map} +1 -1
  7. package/dist/{WorkflowExecutionHistory-jMlntXkG.js → WorkflowExecutionHistory-CmZHRJdi.js} +2 -2
  8. package/dist/{WorkflowExecutionHistory-jMlntXkG.js.map → WorkflowExecutionHistory-CmZHRJdi.js.map} +1 -1
  9. package/dist/canvas.cjs +1 -1
  10. package/dist/canvas.js +1 -1
  11. package/dist/form.cjs +1 -1
  12. package/dist/form.js +2 -2
  13. package/dist/{index-Dj-p10sr.js → index-1pRdFITB.js} +2 -2
  14. package/dist/{index-Dj-p10sr.js.map → index-1pRdFITB.js.map} +1 -1
  15. package/dist/{index-BW1ACtO5.js → index-BH3lAQXx.js} +6 -6
  16. package/dist/index-BH3lAQXx.js.map +1 -0
  17. package/dist/{index-DrduWLV7.js → index-D4LWy_bT.js} +2 -2
  18. package/dist/{index-DrduWLV7.js.map → index-D4LWy_bT.js.map} +1 -1
  19. package/dist/{index-DiT-JDHC.js → index-DfM3lQ0R.js} +2 -2
  20. package/dist/{index-DiT-JDHC.js.map → index-DfM3lQ0R.js.map} +1 -1
  21. package/dist/{index-DfJ_w7XO.js → index-DxnhBosZ.js} +241 -235
  22. package/dist/index-DxnhBosZ.js.map +1 -0
  23. package/dist/{index-CyHfUy0G.js → index-vtWDtEUr.js} +2 -2
  24. package/dist/{index-CyHfUy0G.js.map → index-vtWDtEUr.js.map} +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +3 -3
  27. package/package.json +1 -1
  28. package/dist/index-BW1ACtO5.js.map +0 -1
  29. package/dist/index-DfJ_w7XO.js.map +0 -1
@@ -126,7 +126,7 @@ function ha(t) {
126
126
  function ma(t) {
127
127
  return t.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
128
128
  }
129
- function Cf(t, ...e) {
129
+ function Af(t, ...e) {
130
130
  return e.length === 0 ? t : `${t}.${e.map((n) => `["${ma(n)}"]`).join(".")}`;
131
131
  }
132
132
  function Ve(t, e = !1) {
@@ -210,7 +210,7 @@ function ni(t) {
210
210
  ...t.connector && { connector: t.connector }
211
211
  } : Ia(t);
212
212
  }
213
- function Af({
213
+ function Sf({
214
214
  values: t,
215
215
  conditionConfig: e
216
216
  }) {
@@ -251,7 +251,7 @@ function ri(t) {
251
251
  return n === 0 ? i : (e.connector === "or" ? " || " : " && ") + i;
252
252
  }).join("");
253
253
  }
254
- function Sf(t) {
254
+ function Rf(t) {
255
255
  return Object.fromEntries(
256
256
  Object.entries(t).filter(([, e]) => e.length > 0).map(([e, n]) => [e, ri(n)])
257
257
  );
@@ -311,7 +311,7 @@ function Ea(t) {
311
311
  const e = Dn(t), n = e.map(ai);
312
312
  return { expression: n.length === 1 ? n[0].expression : oi(n, ii(e)), conditions: n };
313
313
  }
314
- function Rf(t) {
314
+ function Ef(t) {
315
315
  return Object.fromEntries(
316
316
  Object.entries(t).map(([e, n]) => [e, Dn(n)]).filter(([, e]) => e.length > 0).map(([e, n]) => [e, Ea(n)])
317
317
  );
@@ -339,15 +339,15 @@ function si(t, e = "and") {
339
339
  return { field: $t(i.left), operator: i.operator, value: i.right ?? "", connector: e };
340
340
  });
341
341
  }
342
- function Ef(t) {
342
+ function Of(t) {
343
343
  return Object.fromEntries(
344
344
  Object.entries(t ?? {}).map(([e, n]) => [e, si((n == null ? void 0 : n.conditions) ?? [])])
345
345
  );
346
346
  }
347
- function Of(t) {
347
+ function wf(t) {
348
348
  return typeof t == "string" && /_DE_\{_P\('[^']*'\)\}|_P\('[^']*'\)/.test(t);
349
349
  }
350
- function wf(t) {
350
+ function Ff(t) {
351
351
  return t.some((e) => e.type !== "text");
352
352
  }
353
353
  function li(t, e = !1) {
@@ -373,16 +373,16 @@ function Oa(t, e = !1) {
373
373
  return li(Ve(t, e), e);
374
374
  }
375
375
  const Pn = "_DE_{_P(", Nn = ")}";
376
- function Ff(t) {
376
+ function Tf(t) {
377
377
  return typeof t == "string" && t.startsWith(Pn) && t.endsWith(Nn);
378
378
  }
379
- function Tf(t) {
379
+ function Gf(t) {
380
380
  return `${Pn}'${t}'${Nn}`;
381
381
  }
382
- function Gf(t) {
382
+ function Bf(t) {
383
383
  return t.slice(Pn.length, -Nn.length).replace(/^['"]|['"]$/g, "");
384
384
  }
385
- function Bf(t) {
385
+ function Vf(t) {
386
386
  return t.replace(/_DE_\{_P\('[^']*'\)\}/g, "");
387
387
  }
388
388
  function ue({ label: t, required: e, showOptional: n, info: i, htmlFor: r, dataTestId: a }) {
@@ -700,7 +700,7 @@ function pi({
700
700
  ) }) })
701
701
  ] });
702
702
  }
703
- function Vf({
703
+ function Df({
704
704
  width: t = 300,
705
705
  title: e = "Values",
706
706
  mode: n = "drawer",
@@ -4868,7 +4868,7 @@ function Ki({ source: t, values: e }) {
4868
4868
  refresh: m
4869
4869
  };
4870
4870
  }
4871
- function Df() {
4871
+ function Pf() {
4872
4872
  return je(jn);
4873
4873
  }
4874
4874
  function zu({ field: t, value: e, values: n, onChange: i, onBlur: r, error: a, touched: o, formulaConfig: u, onFormulaConfigChange: s }) {
@@ -5956,7 +5956,10 @@ function ac({
5956
5956
  ] });
5957
5957
  }
5958
5958
  const gt = (t) => String(t).padStart(2, "0");
5959
- function sc(t) {
5959
+ function sc(t, e) {
5960
+ return e && (t === "datetime-local" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e) ? `${e}:00` : t === "time" && /^\d{2}:\d{2}$/.test(e) ? `${e}:00` : e);
5961
+ }
5962
+ function lc(t) {
5960
5963
  const e = /* @__PURE__ */ new Date(), n = `${e.getFullYear()}-${gt(e.getMonth() + 1)}-${gt(e.getDate())}`, i = `${gt(e.getHours())}:${gt(e.getMinutes())}`;
5961
5964
  return t === "datetime-local" ? `${n}T${i}` : t === "time" ? i : n;
5962
5965
  }
@@ -5968,7 +5971,7 @@ function Jn({
5968
5971
  error: r,
5969
5972
  touched: a
5970
5973
  }) {
5971
- const o = t, u = o.id ?? o.name ?? "", s = !!(a && r), l = o.disabled === !0, d = o.inputType ?? o.type, f = d === "datetime" ? "datetime-local" : d === "time" ? "time" : "date", m = o.min ?? (o.disablePast ? sc(f) : void 0), [g, h] = k(() => String(e ?? "")), b = X(e);
5974
+ const o = t, u = o.id ?? o.name ?? "", s = !!(a && r), l = o.disabled === !0, d = o.inputType ?? o.type, f = d === "datetime" ? "datetime-local" : d === "time" ? "time" : "date", m = o.min ?? (o.disablePast ? lc(f) : void 0), [g, h] = k(() => String(e ?? "")), b = X(e);
5972
5975
  Q(() => {
5973
5976
  e !== b.current && (b.current = e, h(String(e ?? "")));
5974
5977
  }, [e]);
@@ -6012,7 +6015,10 @@ function Jn({
6012
6015
  readOnly: o.readOnly,
6013
6016
  "data-testid": o.dataTestId ?? `${u}-input`,
6014
6017
  onChange: (v) => {
6015
- h(v.target.value), b.current = v.target.value, n(v.target.value);
6018
+ const x = v.target.value;
6019
+ h(x);
6020
+ const C = sc(f, x);
6021
+ b.current = C, n(C);
6016
6022
  },
6017
6023
  onBlur: i,
6018
6024
  onFocus: (v) => {
@@ -6026,7 +6032,7 @@ function Jn({
6026
6032
  s && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6027
6033
  ] });
6028
6034
  }
6029
- function lc({
6035
+ function uc({
6030
6036
  field: t,
6031
6037
  value: e,
6032
6038
  onChange: n,
@@ -6145,7 +6151,7 @@ function lc({
6145
6151
  s && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6146
6152
  ] });
6147
6153
  }
6148
- function uc({
6154
+ function cc({
6149
6155
  field: t,
6150
6156
  value: e,
6151
6157
  onChange: n,
@@ -6205,7 +6211,7 @@ function uc({
6205
6211
  s && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6206
6212
  ] });
6207
6213
  }
6208
- function cc({
6214
+ function dc({
6209
6215
  field: t,
6210
6216
  value: e,
6211
6217
  onChange: n,
@@ -6308,10 +6314,10 @@ function cc({
6308
6314
  s && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6309
6315
  ] });
6310
6316
  }
6311
- function dc(t) {
6317
+ function fc(t) {
6312
6318
  return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
6313
6319
  }
6314
- function fc({
6320
+ function pc({
6315
6321
  field: t,
6316
6322
  value: e,
6317
6323
  onChange: n,
@@ -6400,7 +6406,7 @@ function fc({
6400
6406
  b.length > 0 && /* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 4, marginTop: 8 }, children: b.map((C, I) => /* @__PURE__ */ R("div", { style: { display: "flex", alignItems: "center", gap: 8, padding: "6px 10px", border: "1px solid #e5e7eb", borderRadius: 4, backgroundColor: "#f9fafb" }, children: [
6401
6407
  /* @__PURE__ */ c(sa, { size: 16, color: "#6366f1" }),
6402
6408
  /* @__PURE__ */ c("span", { style: { fontSize: 13, color: "#374151", flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: C.name }),
6403
- /* @__PURE__ */ c("span", { style: { fontSize: 11, color: "#6b7280", flexShrink: 0 }, children: dc(C.size) }),
6409
+ /* @__PURE__ */ c("span", { style: { fontSize: 11, color: "#6b7280", flexShrink: 0 }, children: fc(C.size) }),
6404
6410
  !l && /* @__PURE__ */ c("button", { type: "button", onClick: (y) => {
6405
6411
  y.stopPropagation(), v(I);
6406
6412
  }, style: { background: "none", border: "none", cursor: "pointer", color: "#9ca3af", display: "flex", padding: 0 }, children: /* @__PURE__ */ c(Ge, { size: 14 }) })
@@ -6408,8 +6414,8 @@ function fc({
6408
6414
  (s || g) && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: g ?? r })
6409
6415
  ] });
6410
6416
  }
6411
- const pc = nt.lazy(async () => ({ default: (await import("./index-CyHfUy0G.js")).default }));
6412
- async function gc(t) {
6417
+ const gc = nt.lazy(async () => ({ default: (await import("./index-vtWDtEUr.js")).default }));
6418
+ async function bc(t) {
6413
6419
  switch (t) {
6414
6420
  case "python":
6415
6421
  return [(await import("./index-lcviy90e.js")).python()];
@@ -6436,7 +6442,7 @@ function io({
6436
6442
  const [d, f] = nt.useState(null);
6437
6443
  nt.useEffect(() => {
6438
6444
  let g = !0;
6439
- return gc(t).then((h) => {
6445
+ return bc(t).then((h) => {
6440
6446
  g && f(h);
6441
6447
  }), () => {
6442
6448
  g = !1;
@@ -6444,7 +6450,7 @@ function io({
6444
6450
  }, [t]);
6445
6451
  const m = oe(() => /* @__PURE__ */ c("div", { style: { minHeight: l ?? i, padding: 8, color: "#9ca3af", fontSize: 12 }, children: "Loading editor…" }), [l, i]);
6446
6452
  return d ? /* @__PURE__ */ c(jr, { fallback: m, children: /* @__PURE__ */ c(
6447
- pc,
6453
+ gc,
6448
6454
  {
6449
6455
  value: e,
6450
6456
  extensions: d,
@@ -6459,7 +6465,7 @@ function io({
6459
6465
  }
6460
6466
  ) }) : m;
6461
6467
  }
6462
- function bc({
6468
+ function hc({
6463
6469
  field: t,
6464
6470
  value: e,
6465
6471
  onChange: n,
@@ -6540,13 +6546,13 @@ function bc({
6540
6546
  (s || d) && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: d ?? r })
6541
6547
  ] });
6542
6548
  }
6543
- const hc = {
6549
+ const mc = {
6544
6550
  javascript: "JS",
6545
6551
  typescript: "TS",
6546
6552
  python: "PY",
6547
6553
  json: "JSON"
6548
6554
  };
6549
- function mc({
6555
+ function vc({
6550
6556
  field: t,
6551
6557
  value: e,
6552
6558
  onChange: n,
@@ -6560,7 +6566,7 @@ function mc({
6560
6566
  }, [e]);
6561
6567
  const g = (x) => {
6562
6568
  f(x), m.current = x, n(x);
6563
- }, h = o.rows ?? 8, b = `${h * 22}px`, p = `${h * 22}px`, v = hc[o.language ?? "javascript"] ?? "CODE";
6569
+ }, h = o.rows ?? 8, b = `${h * 22}px`, p = `${h * 22}px`, v = mc[o.language ?? "javascript"] ?? "CODE";
6564
6570
  return /* @__PURE__ */ R("div", { children: [
6565
6571
  /* @__PURE__ */ R("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
6566
6572
  /* @__PURE__ */ c(
@@ -6616,16 +6622,16 @@ function mc({
6616
6622
  s && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6617
6623
  ] });
6618
6624
  }
6619
- const vc = nt.lazy(
6620
- () => import("./index-DiT-JDHC.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6621
- ), yc = [
6625
+ const yc = nt.lazy(
6626
+ () => import("./index-DfM3lQ0R.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6627
+ ), Ic = [
6622
6628
  [{ header: [1, 2, 3, !1] }],
6623
6629
  ["bold", "italic", "underline", "strike"],
6624
6630
  [{ list: "ordered" }, { list: "bullet" }],
6625
6631
  ["link"],
6626
6632
  ["clean"]
6627
6633
  ];
6628
- function Ic({
6634
+ function xc({
6629
6635
  field: t,
6630
6636
  value: e,
6631
6637
  onChange: n,
@@ -6665,13 +6671,13 @@ function Ic({
6665
6671
  fontSize: 14
6666
6672
  },
6667
6673
  children: /* @__PURE__ */ c(jr, { fallback: /* @__PURE__ */ c("div", { style: { minHeight: h, display: "flex", alignItems: "center", padding: "8px 12px", color: "rgba(0,0,0,0.38)", fontSize: 13 }, children: "Loading editor…" }), children: /* @__PURE__ */ c(
6668
- vc,
6674
+ yc,
6669
6675
  {
6670
6676
  value: d,
6671
6677
  onChange: g,
6672
6678
  onBlur: i,
6673
6679
  readOnly: l || o.readOnly,
6674
- modules: { toolbar: b ? yc : !1 },
6680
+ modules: { toolbar: b ? Ic : !1 },
6675
6681
  style: { minHeight: h },
6676
6682
  theme: "snow"
6677
6683
  }
@@ -6682,14 +6688,14 @@ function Ic({
6682
6688
  ] });
6683
6689
  }
6684
6690
  const vn = "ff-infinite-open";
6685
- function xc(t) {
6691
+ function Cc(t) {
6686
6692
  typeof window < "u" && window.dispatchEvent(new CustomEvent(vn, { detail: t }));
6687
6693
  }
6688
6694
  if (typeof document < "u" && !document.getElementById("ff-spin-style")) {
6689
6695
  const t = document.createElement("style");
6690
6696
  t.id = "ff-spin-style", t.textContent = "@keyframes ff-spin { to { transform: rotate(360deg); } }", document.head.appendChild(t);
6691
6697
  }
6692
- function Cc(t) {
6698
+ function Ac(t) {
6693
6699
  const { onScrollBottom: e, isLoading: n, hasMore: i, innerRef: r, children: a, ...o } = t, u = nt.Children.count(a) > 0, s = X(null), l = W((d) => {
6694
6700
  s.current = d, typeof r == "function" ? r(d) : r && "current" in r && (r.current = d);
6695
6701
  }, [r]);
@@ -6718,12 +6724,12 @@ function Cc(t) {
6718
6724
  // keep keyboard nav off this row
6719
6725
  userSelect: "none"
6720
6726
  }, children: n ? /* @__PURE__ */ R(ve, { children: [
6721
- /* @__PURE__ */ c(Ac, {}),
6727
+ /* @__PURE__ */ c(Sc, {}),
6722
6728
  "Loading…"
6723
6729
  ] }) : /* @__PURE__ */ c("span", { style: { color: "#adb5bd" }, children: "Scroll for more" }) })
6724
6730
  ] });
6725
6731
  }
6726
- function Ac() {
6732
+ function Sc() {
6727
6733
  return /* @__PURE__ */ c("div", { style: {
6728
6734
  width: 13,
6729
6735
  height: 13,
@@ -6734,7 +6740,7 @@ function Ac() {
6734
6740
  animation: "ff-spin 0.7s linear infinite"
6735
6741
  } });
6736
6742
  }
6737
- function Sc({ loadPage: t, loadSelected: e, currentValues: n, isOpen: i }) {
6743
+ function Rc({ loadPage: t, loadSelected: e, currentValues: n, isOpen: i }) {
6738
6744
  const [r, a] = k([]), [o, u] = k(0), [s, l] = k(!0), [d, f] = k(!1), m = X(/* @__PURE__ */ new Map()), [g, h] = k(0), [b, p] = k(""), [v, x] = k(""), C = X(null), I = X(null), y = X(null), A = W((V) => {
6739
6745
  p(V), C.current && clearTimeout(C.current), C.current = setTimeout(() => x(V), 300);
6740
6746
  }, []);
@@ -6808,7 +6814,7 @@ function wr(t) {
6808
6814
  function Fr(t) {
6809
6815
  return t == null ? [] : Array.isArray(t) ? t.map(String) : [String(t)];
6810
6816
  }
6811
- function Rc({
6817
+ function Ec({
6812
6818
  field: t,
6813
6819
  value: e,
6814
6820
  onChange: n,
@@ -6823,7 +6829,7 @@ function Rc({
6823
6829
  };
6824
6830
  return window.addEventListener(vn, U), () => window.removeEventListener(vn, U);
6825
6831
  }, [f]), Q(() => {
6826
- m && xc(f);
6832
+ m && Cc(f);
6827
6833
  }, [m, f]);
6828
6834
  const h = W(() => g(!0), []), b = oe(() => Fr(e), [e]), {
6829
6835
  options: p,
@@ -6835,7 +6841,7 @@ function Rc({
6835
6841
  loadMore: A,
6836
6842
  handleMenuClose: S,
6837
6843
  updateSelectedCache: O
6838
- } = Sc({
6844
+ } = Rc({
6839
6845
  loadPage: o.loadPage,
6840
6846
  loadSelected: o.loadSelected,
6841
6847
  currentValues: b,
@@ -6862,7 +6868,7 @@ function Rc({
6862
6868
  const F = X(
6863
6869
  function(Y) {
6864
6870
  return /* @__PURE__ */ c(
6865
- Cc,
6871
+ Ac,
6866
6872
  {
6867
6873
  ...Y,
6868
6874
  onScrollBottom: () => w.current.loadMore(),
@@ -6919,8 +6925,8 @@ function Rc({
6919
6925
  l && /* @__PURE__ */ c("small", { "data-testid": `${s}-error`, style: le, children: r })
6920
6926
  ] });
6921
6927
  }
6922
- const sn = "#0d6efd", Ec = Array.from({ length: 31 }, (t, e) => e + 1);
6923
- function Oc({
6928
+ const sn = "#0d6efd", Oc = Array.from({ length: 31 }, (t, e) => e + 1);
6929
+ function wc({
6924
6930
  field: t,
6925
6931
  value: e,
6926
6932
  onChange: n,
@@ -6961,7 +6967,7 @@ function Oc({
6961
6967
  padding: 16,
6962
6968
  marginTop: 4
6963
6969
  },
6964
- children: Ec.map((g) => {
6970
+ children: Oc.map((g) => {
6965
6971
  const h = f.includes(g);
6966
6972
  return /* @__PURE__ */ c(
6967
6973
  "button",
@@ -6995,8 +7001,8 @@ function Oc({
6995
7001
  l && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
6996
7002
  ] });
6997
7003
  }
6998
- const ln = "#0d6efd", wc = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
6999
- function Fc({
7004
+ const ln = "#0d6efd", Fc = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
7005
+ function Tc({
7000
7006
  field: t,
7001
7007
  value: e,
7002
7008
  onChange: n,
@@ -7004,7 +7010,7 @@ function Fc({
7004
7010
  error: r,
7005
7011
  touched: a
7006
7012
  }) {
7007
- const o = t, u = o.id ?? o.name ?? "", s = o.dataTestId ?? u, l = !!(a && r), d = o.disabled === !0, f = o.dayLabels && o.dayLabels.length === 7 ? o.dayLabels : wc, m = Array.isArray(e) ? e : [], g = (h) => {
7013
+ const o = t, u = o.id ?? o.name ?? "", s = o.dataTestId ?? u, l = !!(a && r), d = o.disabled === !0, f = o.dayLabels && o.dayLabels.length === 7 ? o.dayLabels : Fc, m = Array.isArray(e) ? e : [], g = (h) => {
7008
7014
  if (d) return;
7009
7015
  const b = m.includes(h) ? m.filter((p) => p !== h) : [...m, h].sort((p, v) => p - v);
7010
7016
  n(b);
@@ -7065,13 +7071,13 @@ function Fc({
7065
7071
  l && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
7066
7072
  ] });
7067
7073
  }
7068
- function Tc(t) {
7074
+ function Gc(t) {
7069
7075
  return (t ?? "").slice(0, 5);
7070
7076
  }
7071
- function Gc(t) {
7077
+ function Bc(t) {
7072
7078
  return t ? t.length === 5 ? `${t}:00` : t : "";
7073
7079
  }
7074
- function Bc({
7080
+ function Vc({
7075
7081
  field: t,
7076
7082
  value: e,
7077
7083
  onChange: n,
@@ -7085,7 +7091,7 @@ function Bc({
7085
7091
  }, []);
7086
7092
  const v = (y, A) => {
7087
7093
  const S = h.slice();
7088
- S[y] = Gc(A), b(S);
7094
+ S[y] = Bc(A), b(S);
7089
7095
  }, x = () => {
7090
7096
  h.length >= f || b([...h, g]);
7091
7097
  }, C = (y) => {
@@ -7116,7 +7122,7 @@ function Bc({
7116
7122
  {
7117
7123
  type: "time",
7118
7124
  disabled: d,
7119
- value: Tc(y),
7125
+ value: Gc(y),
7120
7126
  onChange: (S) => v(A, S.target.value),
7121
7127
  "data-testid": `${s}-time-${A}`,
7122
7128
  style: pa({ hasError: l, isDisabled: d, extraStyle: { flex: 1 } })
@@ -7165,7 +7171,7 @@ function Bc({
7165
7171
  l && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: r })
7166
7172
  ] });
7167
7173
  }
7168
- function Vc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7174
+ function Dc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7169
7175
  const o = t, u = o.id ?? o.name ?? "", s = o.dataTestId ?? u, l = !!(a && r), d = o.disabled === !0, f = Array.isArray(e) ? e : [], m = o.options ?? [], g = (h) => {
7170
7176
  if (d) return;
7171
7177
  const b = f.some((p) => p === h);
@@ -7223,7 +7229,7 @@ function Vc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }
7223
7229
  l && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: typeof r == "string" ? r : "Required" })
7224
7230
  ] });
7225
7231
  }
7226
- function Dc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7232
+ function Pc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7227
7233
  const o = t, u = o.id ?? o.name ?? "", s = o.dataTestId ?? u, l = !!(a && r), d = o.disabled === !0, f = o.helperText ?? o.desc;
7228
7234
  return /* @__PURE__ */ R("div", { children: [
7229
7235
  /* @__PURE__ */ R(
@@ -7266,14 +7272,14 @@ function Dc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }
7266
7272
  l && /* @__PURE__ */ c("small", { "data-testid": `${u}-error`, style: le, children: typeof r == "string" ? r : "Required" })
7267
7273
  ] });
7268
7274
  }
7269
- const Pc = {
7275
+ const Nc = {
7270
7276
  info: { bg: "#eff6ff", border: "#bfdbfe", fg: "#1e40af", icon: "ℹ" },
7271
7277
  warning: { bg: "#fffbeb", border: "#fde68a", fg: "#92400e", icon: "⚠" },
7272
7278
  error: { bg: "#fef2f2", border: "#fecaca", fg: "#991b1b", icon: "⨯" },
7273
7279
  success: { bg: "#f0fdf4", border: "#bbf7d0", fg: "#166534", icon: "✓" }
7274
7280
  };
7275
- function Nc({ field: t }) {
7276
- const e = t, n = e.severity ?? "info", i = Pc[n], r = e.text ?? e.message ?? (typeof e.label == "string" ? e.label : "");
7281
+ function Lc({ field: t }) {
7282
+ const e = t, n = e.severity ?? "info", i = Nc[n], r = e.text ?? e.message ?? (typeof e.label == "string" ? e.label : "");
7277
7283
  return !r && !e.title ? null : /* @__PURE__ */ R(
7278
7284
  "div",
7279
7285
  {
@@ -7304,23 +7310,23 @@ function Nc({ field: t }) {
7304
7310
  function yn(t) {
7305
7311
  return `_DE_{_P('${t}')}`;
7306
7312
  }
7307
- function Lc(t) {
7313
+ function kc(t) {
7308
7314
  return t.key ?? t.label;
7309
7315
  }
7310
7316
  function oo(t) {
7311
7317
  if (t.children && t.children.length > 0) {
7312
7318
  const e = {};
7313
7319
  for (const n of t.children)
7314
- e[Lc(n)] = oo(n);
7320
+ e[kc(n)] = oo(n);
7315
7321
  return t.isList ? [e] : e;
7316
7322
  }
7317
7323
  return t.isList ? [yn(t.path)] : yn(t.path);
7318
7324
  }
7319
- const kc = /_DE_\{_P\(|(^|[^A-Za-z0-9_])_P\(/;
7320
- function Mc(t) {
7321
- return typeof t == "string" && kc.test(t);
7322
- }
7325
+ const Mc = /_DE_\{_P\(|(^|[^A-Za-z0-9_])_P\(/;
7323
7326
  function Wc(t) {
7327
+ return typeof t == "string" && Mc.test(t);
7328
+ }
7329
+ function Xc(t) {
7324
7330
  const e = t.match(/_P\('([^']*)'\)/);
7325
7331
  return e ? e[1] : t;
7326
7332
  }
@@ -7333,13 +7339,13 @@ function ao({ value: t, depth: e }) {
7333
7339
  /* @__PURE__ */ c("div", { style: { minWidth: 0, flex: 1 }, children: /* @__PURE__ */ c(ao, { value: r, depth: e + 1 }) })
7334
7340
  ] }, i)) });
7335
7341
  }
7336
- return Mc(t) ? /* @__PURE__ */ R("span", { style: { display: "inline-flex", alignItems: "center", gap: 4, background: "#ede9fe", color: "#5b21b6", border: "1px solid #ddd6fe", borderRadius: 4, padding: "1px 7px", fontSize: 12, fontFamily: "ui-monospace, monospace" }, children: [
7342
+ return Wc(t) ? /* @__PURE__ */ R("span", { style: { display: "inline-flex", alignItems: "center", gap: 4, background: "#ede9fe", color: "#5b21b6", border: "1px solid #ddd6fe", borderRadius: 4, padding: "1px 7px", fontSize: 12, fontFamily: "ui-monospace, monospace" }, children: [
7337
7343
  "{ }",
7338
7344
  " ",
7339
- Wc(t)
7345
+ Xc(t)
7340
7346
  ] }) : /* @__PURE__ */ c("span", { style: { fontSize: 12.5, color: "#0f172a" }, children: String(t ?? "") });
7341
7347
  }
7342
- function Xc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7348
+ function zc({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
7343
7349
  const o = t, u = o.id ?? o.name ?? "", [s, l] = k(!1), d = !!(a && r), f = e != null && (typeof e != "object" ? !0 : Array.isArray(e) ? e.length > 0 : Object.keys(e).length > 0), m = W((g) => {
7344
7350
  g.preventDefault(), l(!1);
7345
7351
  const h = g.dataTransfer.getData(it);
@@ -7405,23 +7411,23 @@ ee.register("radio-group", ac);
7405
7411
  ee.register("date", Jn);
7406
7412
  ee.register("datetime", Jn);
7407
7413
  ee.register("time", Jn);
7408
- ee.register("tags", lc);
7409
- ee.register("slider", uc);
7410
- ee.register("color", cc);
7411
- ee.register("file", fc);
7412
- ee.register("json-editor", bc);
7413
- ee.register("code", mc);
7414
- ee.register("rich-text", Ic);
7415
- ee.register("infinite-select", Rc);
7416
- ee.register("day-of-month", Oc);
7417
- ee.register("day-of-week", Fc);
7418
- ee.register("time-list", Bc);
7419
- ee.register("checkbox-group", Vc);
7420
- ee.register("checkbox", Dc);
7421
- ee.register("callout", Nc);
7422
- ee.register("tree-map", Xc);
7423
- var Pf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7424
- function zc(t) {
7414
+ ee.register("tags", uc);
7415
+ ee.register("slider", cc);
7416
+ ee.register("color", dc);
7417
+ ee.register("file", pc);
7418
+ ee.register("json-editor", hc);
7419
+ ee.register("code", vc);
7420
+ ee.register("rich-text", xc);
7421
+ ee.register("infinite-select", Ec);
7422
+ ee.register("day-of-month", wc);
7423
+ ee.register("day-of-week", Tc);
7424
+ ee.register("time-list", Vc);
7425
+ ee.register("checkbox-group", Dc);
7426
+ ee.register("checkbox", Pc);
7427
+ ee.register("callout", Lc);
7428
+ ee.register("tree-map", zc);
7429
+ var Nf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7430
+ function Hc(t) {
7425
7431
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7426
7432
  }
7427
7433
  function Je(t) {
@@ -7436,7 +7442,7 @@ Je.prototype.get = function(t) {
7436
7442
  Je.prototype.set = function(t, e) {
7437
7443
  return this._size >= this._maxSize && this.clear(), t in this._values || this._size++, this._values[t] = e;
7438
7444
  };
7439
- var Hc = /[^.^\]^[]+|(?=\[\]|\.\.)/g, so = /^\d+$/, Zc = /^\d/, _c = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, jc = /^\s*(['"]?)(.*?)(\1)\s*$/, $n = 512, Tr = new Je($n);
7445
+ var Zc = /[^.^\]^[]+|(?=\[\]|\.\.)/g, so = /^\d+$/, _c = /^\d/, jc = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, Jc = /^\s*(['"]?)(.*?)(\1)\s*$/, $n = 512, Tr = new Je($n);
7440
7446
  new Je($n);
7441
7447
  var Gr = new Je($n), Pe = {
7442
7448
  split: In,
@@ -7456,51 +7462,51 @@ var Gr = new Je($n), Pe = {
7456
7462
  }, "");
7457
7463
  },
7458
7464
  forEach: function(t, e, n) {
7459
- Jc(Array.isArray(t) ? t : In(t), e, n);
7465
+ $c(Array.isArray(t) ? t : In(t), e, n);
7460
7466
  }
7461
7467
  };
7462
7468
  function Br(t) {
7463
7469
  return Tr.get(t) || Tr.set(
7464
7470
  t,
7465
7471
  In(t).map(function(e) {
7466
- return e.replace(jc, "$2");
7472
+ return e.replace(Jc, "$2");
7467
7473
  })
7468
7474
  );
7469
7475
  }
7470
7476
  function In(t) {
7471
- return t.match(Hc) || [""];
7477
+ return t.match(Zc) || [""];
7472
7478
  }
7473
- function Jc(t, e, n) {
7479
+ function $c(t, e, n) {
7474
7480
  var i = t.length, r, a, o, u;
7475
7481
  for (a = 0; a < i; a++)
7476
- r = t[a], r && (Uc(r) && (r = '"' + r + '"'), u = Yn(r), o = !u && /^\d+$/.test(r), e.call(n, r, u, o, a, t));
7482
+ r = t[a], r && (Qc(r) && (r = '"' + r + '"'), u = Yn(r), o = !u && /^\d+$/.test(r), e.call(n, r, u, o, a, t));
7477
7483
  }
7478
7484
  function Yn(t) {
7479
7485
  return typeof t == "string" && t && ["'", '"'].indexOf(t.charAt(0)) !== -1;
7480
7486
  }
7481
- function $c(t) {
7482
- return t.match(Zc) && !t.match(so);
7483
- }
7484
7487
  function Yc(t) {
7485
- return _c.test(t);
7488
+ return t.match(_c) && !t.match(so);
7486
7489
  }
7487
7490
  function Uc(t) {
7488
- return !Yn(t) && ($c(t) || Yc(t));
7491
+ return jc.test(t);
7489
7492
  }
7490
- const Qc = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, lo = (t) => t.match(Qc) || [], qc = (t, e) => lo(t).join(e).toLowerCase(), Kc = (t) => lo(t).reduce(
7493
+ function Qc(t) {
7494
+ return !Yn(t) && (Yc(t) || Uc(t));
7495
+ }
7496
+ const qc = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, lo = (t) => t.match(qc) || [], Kc = (t, e) => lo(t).join(e).toLowerCase(), ed = (t) => lo(t).reduce(
7491
7497
  (e, n) => `${e}${e ? n[0].toUpperCase() + n.slice(1).toLowerCase() : n.toLowerCase()}`,
7492
7498
  ""
7493
- ), ed = (t) => qc(t, "_");
7499
+ ), td = (t) => Kc(t, "_");
7494
7500
  var un = {
7495
- camelCase: Kc,
7496
- snakeCase: ed
7501
+ camelCase: ed,
7502
+ snakeCase: td
7497
7503
  }, Un = { exports: {} };
7498
7504
  Un.exports = function(t) {
7499
- return uo(td(t), t);
7505
+ return uo(nd(t), t);
7500
7506
  };
7501
7507
  Un.exports.array = uo;
7502
7508
  function uo(t, e) {
7503
- var n = t.length, i = new Array(n), r = {}, a = n, o = nd(e), u = rd(t);
7509
+ var n = t.length, i = new Array(n), r = {}, a = n, o = rd(e), u = id(t);
7504
7510
  for (e.forEach(function(l) {
7505
7511
  if (!u.has(l[0]) || !u.has(l[1]))
7506
7512
  throw new Error("Unknown node. There is an unknown node in the supplied edges.");
@@ -7534,39 +7540,39 @@ function uo(t, e) {
7534
7540
  }
7535
7541
  }
7536
7542
  }
7537
- function td(t) {
7543
+ function nd(t) {
7538
7544
  for (var e = /* @__PURE__ */ new Set(), n = 0, i = t.length; n < i; n++) {
7539
7545
  var r = t[n];
7540
7546
  e.add(r[0]), e.add(r[1]);
7541
7547
  }
7542
7548
  return Array.from(e);
7543
7549
  }
7544
- function nd(t) {
7550
+ function rd(t) {
7545
7551
  for (var e = /* @__PURE__ */ new Map(), n = 0, i = t.length; n < i; n++) {
7546
7552
  var r = t[n];
7547
7553
  e.has(r[0]) || e.set(r[0], /* @__PURE__ */ new Set()), e.has(r[1]) || e.set(r[1], /* @__PURE__ */ new Set()), e.get(r[0]).add(r[1]);
7548
7554
  }
7549
7555
  return e;
7550
7556
  }
7551
- function rd(t) {
7557
+ function id(t) {
7552
7558
  for (var e = /* @__PURE__ */ new Map(), n = 0, i = t.length; n < i; n++)
7553
7559
  e.set(t[n], n);
7554
7560
  return e;
7555
7561
  }
7556
- var id = Un.exports;
7557
- const od = /* @__PURE__ */ zc(id), ad = Object.prototype.toString, sd = Error.prototype.toString, ld = RegExp.prototype.toString, ud = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", cd = /^Symbol\((.*)\)(.*)$/;
7558
- function dd(t) {
7562
+ var od = Un.exports;
7563
+ const ad = /* @__PURE__ */ Hc(od), sd = Object.prototype.toString, ld = Error.prototype.toString, ud = RegExp.prototype.toString, cd = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", dd = /^Symbol\((.*)\)(.*)$/;
7564
+ function fd(t) {
7559
7565
  return t != +t ? "NaN" : t === 0 && 1 / t < 0 ? "-0" : "" + t;
7560
7566
  }
7561
7567
  function Vr(t, e = !1) {
7562
7568
  if (t == null || t === !0 || t === !1) return "" + t;
7563
7569
  const n = typeof t;
7564
- if (n === "number") return dd(t);
7570
+ if (n === "number") return fd(t);
7565
7571
  if (n === "string") return e ? `"${t}"` : t;
7566
7572
  if (n === "function") return "[Function " + (t.name || "anonymous") + "]";
7567
- if (n === "symbol") return ud.call(t).replace(cd, "Symbol($1)");
7568
- const i = ad.call(t).slice(8, -1);
7569
- return i === "Date" ? isNaN(t.getTime()) ? "" + t : t.toISOString(t) : i === "Error" || t instanceof Error ? "[" + sd.call(t) + "]" : i === "RegExp" ? ld.call(t) : null;
7573
+ if (n === "symbol") return cd.call(t).replace(dd, "Symbol($1)");
7574
+ const i = sd.call(t).slice(8, -1);
7575
+ return i === "Date" ? isNaN(t.getTime()) ? "" + t : t.toISOString(t) : i === "Error" || t instanceof Error ? "[" + ld.call(t) + "]" : i === "RegExp" ? ud.call(t) : null;
7570
7576
  }
7571
7577
  function Ee(t, e) {
7572
7578
  let n = Vr(t, e);
@@ -7578,7 +7584,7 @@ function Ee(t, e) {
7578
7584
  function co(t) {
7579
7585
  return t == null ? [] : [].concat(t);
7580
7586
  }
7581
- let fo, po, go, fd = /\$\{\s*(\w+)\s*\}/g;
7587
+ let fo, po, go, pd = /\$\{\s*(\w+)\s*\}/g;
7582
7588
  fo = Symbol.toStringTag;
7583
7589
  class Dr {
7584
7590
  constructor(e, n, i, r) {
@@ -7600,7 +7606,7 @@ class pe extends Error {
7600
7606
  return n = Object.assign({}, n, {
7601
7607
  path: i,
7602
7608
  originalPath: n.path
7603
- }), typeof e == "string" ? e.replace(fd, (r, a) => Ee(n[a])) : typeof e == "function" ? e(n) : e;
7609
+ }), typeof e == "string" ? e.replace(pd, (r, a) => Ee(n[a])) : typeof e == "function" ? e(n) : e;
7604
7610
  }
7605
7611
  static isError(e) {
7606
7612
  return e && e.name === "ValidationError";
@@ -7665,7 +7671,7 @@ let Ce = {
7665
7671
  min: "${path} field must have at least ${min} items",
7666
7672
  max: "${path} field must have less than or equal to ${max} items",
7667
7673
  length: "${path} must have ${length} items"
7668
- }, pd = {
7674
+ }, gd = {
7669
7675
  notType: (t) => {
7670
7676
  const {
7671
7677
  path: e,
@@ -7687,7 +7693,7 @@ Object.assign(/* @__PURE__ */ Object.create(null), {
7687
7693
  object: mt,
7688
7694
  array: vt,
7689
7695
  boolean: Cn,
7690
- tuple: pd
7696
+ tuple: gd
7691
7697
  });
7692
7698
  const _t = (t) => t && t.__isYupSchema__;
7693
7699
  class Vt {
@@ -7846,7 +7852,7 @@ function bo(t, e) {
7846
7852
  function ho(t, e) {
7847
7853
  return ke.isRef(t) ? t.getValue(e.value, e.parent, e.context) : t;
7848
7854
  }
7849
- function gd(t, e, n, i = n) {
7855
+ function bd(t, e, n, i = n) {
7850
7856
  let r, a, o;
7851
7857
  return e ? (Pe.forEach(e, (u, s, l) => {
7852
7858
  let d = s ? u.slice(1, u.length - 1) : u;
@@ -7922,7 +7928,7 @@ function Ze(t, e = /* @__PURE__ */ new Map()) {
7922
7928
  throw Error(`Unable to clone ${t}`);
7923
7929
  return n;
7924
7930
  }
7925
- function bd(t) {
7931
+ function hd(t) {
7926
7932
  if (!(t != null && t.length))
7927
7933
  return;
7928
7934
  const e = [];
@@ -7949,17 +7955,17 @@ function bd(t) {
7949
7955
  }
7950
7956
  return n && e.push(...n.split(".").filter(Boolean)), e;
7951
7957
  }
7952
- function hd(t, e) {
7958
+ function md(t, e) {
7953
7959
  const n = e ? `${e}.${t.path}` : t.path;
7954
7960
  return t.errors.map((i) => ({
7955
7961
  message: i,
7956
- path: bd(n)
7962
+ path: hd(n)
7957
7963
  }));
7958
7964
  }
7959
7965
  function mo(t, e) {
7960
7966
  var n;
7961
7967
  if (!((n = t.inner) != null && n.length) && t.errors.length)
7962
- return hd(t, e);
7968
+ return md(t, e);
7963
7969
  const i = e ? `${e}.${t.path}` : t.path;
7964
7970
  return t.inner.flatMap((r) => mo(r, i));
7965
7971
  }
@@ -8406,7 +8412,7 @@ for (const t of ["validate", "validateSync"]) be.prototype[`${t}At`] = function(
8406
8412
  parent: r,
8407
8413
  parentPath: a,
8408
8414
  schema: o
8409
- } = gd(this, e, n, i.context);
8415
+ } = bd(this, e, n, i.context);
8410
8416
  return o[t](r && r[a], Object.assign({}, i, {
8411
8417
  parent: r,
8412
8418
  path: e
@@ -8414,7 +8420,7 @@ for (const t of ["validate", "validateSync"]) be.prototype[`${t}At`] = function(
8414
8420
  };
8415
8421
  for (const t of ["equals", "is"]) be.prototype[t] = be.prototype.oneOf;
8416
8422
  for (const t of ["not", "nope"]) be.prototype[t] = be.prototype.notOneOf;
8417
- const md = () => !0;
8423
+ const vd = () => !0;
8418
8424
  function vo(t) {
8419
8425
  return new yo(t);
8420
8426
  }
@@ -8425,7 +8431,7 @@ class yo extends be {
8425
8431
  check: e
8426
8432
  } : Object.assign({
8427
8433
  type: "mixed",
8428
- check: md
8434
+ check: vd
8429
8435
  }, e));
8430
8436
  }
8431
8437
  }
@@ -8502,8 +8508,8 @@ class xo extends be {
8502
8508
  }
8503
8509
  }
8504
8510
  Io.prototype = xo.prototype;
8505
- const vd = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
8506
- function yd(t) {
8511
+ const yd = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
8512
+ function Id(t) {
8507
8513
  const e = An(t);
8508
8514
  if (!e) return Date.parse ? Date.parse(t) : Number.NaN;
8509
8515
  if (e.z === void 0 && e.plusMinus === void 0)
@@ -8513,7 +8519,7 @@ function yd(t) {
8513
8519
  }
8514
8520
  function An(t) {
8515
8521
  var e, n;
8516
- const i = vd.exec(t);
8522
+ const i = yd.exec(t);
8517
8523
  return i ? {
8518
8524
  year: Se(i[1]),
8519
8525
  month: Se(i[2], 1) - 1,
@@ -8535,13 +8541,13 @@ function An(t) {
8535
8541
  function Se(t, e = 0) {
8536
8542
  return Number(t) || e;
8537
8543
  }
8538
- let Id = (
8544
+ let xd = (
8539
8545
  // eslint-disable-next-line
8540
8546
  /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
8541
- ), xd = (
8547
+ ), Cd = (
8542
8548
  // eslint-disable-next-line
8543
8549
  /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
8544
- ), Cd = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Ad = "^\\d{4}-\\d{2}-\\d{2}", Sd = "\\d{2}:\\d{2}:\\d{2}", Rd = "(([+-]\\d{2}(:?\\d{2})?)|Z)", Ed = new RegExp(`${Ad}T${Sd}(\\.\\d+)?${Rd}$`), Od = (t) => ye(t) || t === t.trim(), wd = {}.toString();
8550
+ ), Ad = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Sd = "^\\d{4}-\\d{2}-\\d{2}", Rd = "\\d{2}:\\d{2}:\\d{2}", Ed = "(([+-]\\d{2}(:?\\d{2})?)|Z)", Od = new RegExp(`${Sd}T${Rd}(\\.\\d+)?${Ed}$`), wd = (t) => ye(t) || t === t.trim(), Fd = {}.toString();
8545
8551
  function yt() {
8546
8552
  return new Co();
8547
8553
  }
@@ -8556,7 +8562,7 @@ class Co extends be {
8556
8562
  this.transform((e, n) => {
8557
8563
  if (!this.spec.coerce || this.isType(e) || Array.isArray(e)) return e;
8558
8564
  const i = e != null && e.toString ? e.toString() : e;
8559
- return i === wd ? e : i;
8565
+ return i === Fd ? e : i;
8560
8566
  });
8561
8567
  });
8562
8568
  }
@@ -8630,21 +8636,21 @@ class Co extends be {
8630
8636
  });
8631
8637
  }
8632
8638
  email(e = ge.email) {
8633
- return this.matches(Id, {
8639
+ return this.matches(xd, {
8634
8640
  name: "email",
8635
8641
  message: e,
8636
8642
  excludeEmptyString: !0
8637
8643
  });
8638
8644
  }
8639
8645
  url(e = ge.url) {
8640
- return this.matches(xd, {
8646
+ return this.matches(Cd, {
8641
8647
  name: "url",
8642
8648
  message: e,
8643
8649
  excludeEmptyString: !0
8644
8650
  });
8645
8651
  }
8646
8652
  uuid(e = ge.uuid) {
8647
- return this.matches(Cd, {
8653
+ return this.matches(Ad, {
8648
8654
  name: "uuid",
8649
8655
  message: e,
8650
8656
  excludeEmptyString: !1
@@ -8656,7 +8662,7 @@ class Co extends be {
8656
8662
  message: n = "",
8657
8663
  allowOffset: i = !1,
8658
8664
  precision: r = void 0
8659
- } = e : n = e), this.matches(Ed, {
8665
+ } = e : n = e), this.matches(Od, {
8660
8666
  name: "datetime",
8661
8667
  message: n || ge.datetime,
8662
8668
  excludeEmptyString: !0
@@ -8694,7 +8700,7 @@ class Co extends be {
8694
8700
  return this.transform((n) => n != null ? n.trim() : n).test({
8695
8701
  message: e,
8696
8702
  name: "trim",
8697
- test: Od
8703
+ test: wd
8698
8704
  });
8699
8705
  }
8700
8706
  lowercase(e = ge.lowercase) {
@@ -8717,7 +8723,7 @@ class Co extends be {
8717
8723
  }
8718
8724
  }
8719
8725
  yt.prototype = Co.prototype;
8720
- let Fd = (t) => t != +t;
8726
+ let Td = (t) => t != +t;
8721
8727
  function Ao() {
8722
8728
  return new So();
8723
8729
  }
@@ -8726,7 +8732,7 @@ class So extends be {
8726
8732
  super({
8727
8733
  type: "number",
8728
8734
  check(e) {
8729
- return e instanceof Number && (e = e.valueOf()), typeof e == "number" && !Fd(e);
8735
+ return e instanceof Number && (e = e.valueOf()), typeof e == "number" && !Td(e);
8730
8736
  }
8731
8737
  }), this.withMutation(() => {
8732
8738
  this.transform((e, n) => {
@@ -8822,16 +8828,16 @@ class So extends be {
8822
8828
  }
8823
8829
  }
8824
8830
  Ao.prototype = So.prototype;
8825
- let Td = /* @__PURE__ */ new Date(""), Gd = (t) => Object.prototype.toString.call(t) === "[object Date]";
8831
+ let Gd = /* @__PURE__ */ new Date(""), Bd = (t) => Object.prototype.toString.call(t) === "[object Date]";
8826
8832
  class Qn extends be {
8827
8833
  constructor() {
8828
8834
  super({
8829
8835
  type: "date",
8830
8836
  check(e) {
8831
- return Gd(e) && !isNaN(e.getTime());
8837
+ return Bd(e) && !isNaN(e.getTime());
8832
8838
  }
8833
8839
  }), this.withMutation(() => {
8834
- this.transform((e, n) => !this.spec.coerce || this.isType(e) || e === null ? e : (e = yd(e), isNaN(e) ? Qn.INVALID_DATE : new Date(e)));
8840
+ this.transform((e, n) => !this.spec.coerce || this.isType(e) || e === null ? e : (e = Id(e), isNaN(e) ? Qn.INVALID_DATE : new Date(e)));
8835
8841
  });
8836
8842
  }
8837
8843
  prepareParam(e, n) {
@@ -8876,8 +8882,8 @@ class Qn extends be {
8876
8882
  });
8877
8883
  }
8878
8884
  }
8879
- Qn.INVALID_DATE = Td;
8880
- function Bd(t, e = []) {
8885
+ Qn.INVALID_DATE = Gd;
8886
+ function Vd(t, e = []) {
8881
8887
  let n = [], i = /* @__PURE__ */ new Set(), r = new Set(e.map(([o, u]) => `${o}-${u}`));
8882
8888
  function a(o, u) {
8883
8889
  let s = Pe.split(o)[0];
@@ -8887,7 +8893,7 @@ function Bd(t, e = []) {
8887
8893
  let u = t[o];
8888
8894
  i.add(o), ke.isRef(u) && u.isSibling ? a(u.path, o) : _t(u) && "deps" in u && u.deps.forEach((s) => a(s, o));
8889
8895
  }
8890
- return od.array(Array.from(i), n).reverse();
8896
+ return ad.array(Array.from(i), n).reverse();
8891
8897
  }
8892
8898
  function Pr(t, e) {
8893
8899
  let n = 1 / 0;
@@ -8925,7 +8931,7 @@ function It(t) {
8925
8931
  types: t.spec.types.map(It)
8926
8932
  }) : "optional" in t ? t.optional() : t;
8927
8933
  }
8928
- const Vd = (t, e) => {
8934
+ const Dd = (t, e) => {
8929
8935
  const n = [...Pe.normalizePath(e)];
8930
8936
  if (n.length === 1) return n[0] in t;
8931
8937
  let i = n.pop(), r = Pe.getter(Pe.join(n), !0)(t);
@@ -8936,7 +8942,7 @@ function Lr(t, e) {
8936
8942
  let n = Object.keys(t.fields);
8937
8943
  return Object.keys(e).filter((i) => n.indexOf(i) === -1);
8938
8944
  }
8939
- const Dd = Ro([]);
8945
+ const Pd = Ro([]);
8940
8946
  function Pt(t) {
8941
8947
  return new Oo(t);
8942
8948
  }
@@ -8947,7 +8953,7 @@ class Oo extends be {
8947
8953
  check(n) {
8948
8954
  return Nr(n) || typeof n == "function";
8949
8955
  }
8950
- }), this.fields = /* @__PURE__ */ Object.create(null), this._sortErrors = Dd, this._nodes = [], this._excludedEdges = [], this.withMutation(() => {
8956
+ }), this.fields = /* @__PURE__ */ Object.create(null), this._sortErrors = Pd, this._nodes = [], this._excludedEdges = [], this.withMutation(() => {
8951
8957
  e && this.shape(e);
8952
8958
  });
8953
8959
  }
@@ -9049,7 +9055,7 @@ class Oo extends be {
9049
9055
  }
9050
9056
  setFields(e, n) {
9051
9057
  let i = this.clone();
9052
- return i.fields = e, i._nodes = Bd(e, n), i._sortErrors = Ro(Object.keys(e)), n && (i._excludedEdges = n), i;
9058
+ return i.fields = e, i._nodes = Vd(e, n), i._sortErrors = Ro(Object.keys(e)), n && (i._excludedEdges = n), i;
9053
9059
  }
9054
9060
  shape(e, n = []) {
9055
9061
  return this.clone().withMutation((i) => {
@@ -9083,7 +9089,7 @@ class Oo extends be {
9083
9089
  return this.transform((a) => {
9084
9090
  if (!a) return a;
9085
9091
  let o = a;
9086
- return Vd(a, e) && (o = Object.assign({}, a), i || delete o[e], o[n] = r(a)), o;
9092
+ return Dd(a, e) && (o = Object.assign({}, a), i || delete o[e], o[n] = r(a)), o;
9087
9093
  });
9088
9094
  }
9089
9095
  /** Parse an input JSON string to an object */
@@ -9318,7 +9324,7 @@ function Nt(t) {
9318
9324
  if (!e) throw new Error("[FlowForge] Field descriptor is missing both 'id' and 'name'");
9319
9325
  return e;
9320
9326
  }
9321
- class Pd {
9327
+ class Nd {
9322
9328
  constructor() {
9323
9329
  this.sources = /* @__PURE__ */ new Map();
9324
9330
  }
@@ -9332,7 +9338,7 @@ class Pd {
9332
9338
  return this.sources.has(e);
9333
9339
  }
9334
9340
  }
9335
- const Nd = new Pd(), Ld = 8, te = {
9341
+ const Ld = new Nd(), kd = 8, te = {
9336
9342
  wrapper: (t) => ({
9337
9343
  border: `1px solid ${t ? E.BORDER_COLOR_ERROR : E.BORDER_COLOR}`,
9338
9344
  borderRadius: E.BORDER_RADIUS,
@@ -9566,7 +9572,7 @@ function kr({ checked: t, onChange: e, indeterminate: n, disabled: i }) {
9566
9572
  }
9567
9573
  );
9568
9574
  }
9569
- function kd({ selected: t, onRemove: e, onClose: n }) {
9575
+ function Md({ selected: t, onRemove: e, onClose: n }) {
9570
9576
  const [i, r] = k(""), a = t.filter(
9571
9577
  (o) => o.label.toLowerCase().includes(i.toLowerCase())
9572
9578
  );
@@ -9608,8 +9614,8 @@ function kd({ selected: t, onRemove: e, onClose: n }) {
9608
9614
  /* @__PURE__ */ c("div", { style: te.modalFooter, children: /* @__PURE__ */ c("button", { type: "button", style: te.closeBtn, onClick: n, children: "Close" }) })
9609
9615
  ] }) });
9610
9616
  }
9611
- function Md({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
9612
- const o = t, u = !!(a && r), s = o.isMulti ?? !1, l = o.pageSize ?? Ld, d = o.id ?? o.name ?? "", [f, m] = k(""), [g, h] = k(1), [b, p] = k([]), [v, x] = k(!1), [C, I] = k(!1), [y, A] = k(null), [S, O] = k(!1), B = X(null), P = X(0), N = X(!0);
9617
+ function Wd({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }) {
9618
+ const o = t, u = !!(a && r), s = o.isMulti ?? !1, l = o.pageSize ?? kd, d = o.id ?? o.name ?? "", [f, m] = k(""), [g, h] = k(1), [b, p] = k([]), [v, x] = k(!1), [C, I] = k(!1), [y, A] = k(null), [S, O] = k(!1), B = X(null), P = X(0), N = X(!0);
9613
9619
  Q(() => () => {
9614
9620
  N.current = !1, B.current && clearTimeout(B.current);
9615
9621
  }, []);
@@ -9617,7 +9623,7 @@ function Md({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }
9617
9623
  (G, L) => {
9618
9624
  if (o.fetchOptions) return o.fetchOptions(G, L);
9619
9625
  if (o.dataSource) {
9620
- const $ = Nd.get(o.dataSource);
9626
+ const $ = Ld.get(o.dataSource);
9621
9627
  return $ ? $.fetch(G, L) : Promise.reject(new Error(`[FlowForge] DataSource "${o.dataSource}" is not registered.`));
9622
9628
  }
9623
9629
  return Promise.reject(new Error(`[FlowForge] table-picker "${o.id}" requires fetchOptions or dataSource.`));
@@ -9803,7 +9809,7 @@ function Md({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }
9803
9809
  o.helperText && !u && /* @__PURE__ */ c("small", { style: re, children: o.helperText }),
9804
9810
  u && /* @__PURE__ */ c("small", { "data-testid": `${d}-error`, style: le, children: r }),
9805
9811
  S && /* @__PURE__ */ c(
9806
- kd,
9812
+ Md,
9807
9813
  {
9808
9814
  selected: M,
9809
9815
  onRemove: ne,
@@ -9812,7 +9818,7 @@ function Md({ field: t, value: e, onChange: n, onBlur: i, error: r, touched: a }
9812
9818
  )
9813
9819
  ] });
9814
9820
  }
9815
- class Wd {
9821
+ class Xd {
9816
9822
  constructor() {
9817
9823
  this.fields = /* @__PURE__ */ new Map(), this.register({ type: "text", label: "Text" }), this.register({ type: "textarea", label: "Textarea" }), this.register({
9818
9824
  type: "number",
@@ -9890,7 +9896,7 @@ class Wd {
9890
9896
  }), this.register({
9891
9897
  type: "table-picker",
9892
9898
  label: "Table Picker",
9893
- component: Md,
9899
+ component: Wd,
9894
9900
  configSchema: {
9895
9901
  fields: [
9896
9902
  { id: "label", type: "text", label: "Label" },
@@ -9918,7 +9924,7 @@ class Wd {
9918
9924
  }));
9919
9925
  }
9920
9926
  }
9921
- const Xd = new Wd();
9927
+ const zd = new Xd();
9922
9928
  function qn(t) {
9923
9929
  const e = {};
9924
9930
  for (const n of t) {
@@ -9934,7 +9940,7 @@ function qn(t) {
9934
9940
  continue;
9935
9941
  }
9936
9942
  let r;
9937
- const a = Xd.get(n.type);
9943
+ const a = zd.get(n.type);
9938
9944
  if (a != null && a.buildValidation)
9939
9945
  r = a.buildValidation(n);
9940
9946
  else
@@ -10026,7 +10032,7 @@ function Fo(t) {
10026
10032
  return e;
10027
10033
  }
10028
10034
  const qe = "__ff_field__";
10029
- function zd(t) {
10035
+ function Hd(t) {
10030
10036
  const { shouldHide: e, shouldRequire: n, ...i } = t, r = { ...i, id: qe, name: qe }, a = qn([r]), o = t.label ?? t.id ?? t.name ?? "This field";
10031
10037
  return async (u) => {
10032
10038
  try {
@@ -10040,10 +10046,10 @@ function zd(t) {
10040
10046
  function To(t) {
10041
10047
  return t.reduce((e, n) => n.type === "object" ? e + To(n.children ?? []) : e + 1, 0);
10042
10048
  }
10043
- function Hd(t, e) {
10049
+ function Zd(t, e) {
10044
10050
  return t.label ? t.label : (e.split(".").pop() ?? "Group").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[-_]/g, " ").replace(/\b\w/g, (i) => i.toUpperCase());
10045
10051
  }
10046
- function Zd(t, e) {
10052
+ function _d(t, e) {
10047
10053
  const n = t === 0, i = t === 1, r = t >= 2;
10048
10054
  return {
10049
10055
  marginBottom: e ? 8 : r ? 10 : 12,
@@ -10056,7 +10062,7 @@ function Zd(t, e) {
10056
10062
  marginLeft: n ? 0 : i ? "10px" : "16px"
10057
10063
  };
10058
10064
  }
10059
- function _d(t, e) {
10065
+ function jd(t, e) {
10060
10066
  const n = t === 0, i = t === 1, r = t >= 2;
10061
10067
  return {
10062
10068
  display: "flex",
@@ -10074,7 +10080,7 @@ function _d(t, e) {
10074
10080
  }
10075
10081
  };
10076
10082
  }
10077
- function jd({
10083
+ function Jd({
10078
10084
  field: t,
10079
10085
  pathPrefix: e,
10080
10086
  depth: n,
@@ -10087,9 +10093,9 @@ function jd({
10087
10093
  renderFieldRouter: l,
10088
10094
  item: d
10089
10095
  }) {
10090
- const [f, m] = k(!0), g = t.children ?? [], h = To(g), b = Hd(t, e), p = typeof t.helperText == "string" ? t.helperText : void 0, v = `${h} field${h === 1 ? "" : "s"}`;
10091
- return /* @__PURE__ */ R(D, { sx: Zd(n, s), children: [
10092
- /* @__PURE__ */ R(D, { onClick: () => m((x) => !x), sx: _d(n, f), children: [
10096
+ const [f, m] = k(!0), g = t.children ?? [], h = To(g), b = Zd(t, e), p = typeof t.helperText == "string" ? t.helperText : void 0, v = `${h} field${h === 1 ? "" : "s"}`;
10097
+ return /* @__PURE__ */ R(D, { sx: _d(n, s), children: [
10098
+ /* @__PURE__ */ R(D, { onClick: () => m((x) => !x), sx: jd(n, f), children: [
10093
10099
  /* @__PURE__ */ c(
10094
10100
  D,
10095
10101
  {
@@ -10191,11 +10197,11 @@ function jd({
10191
10197
  )
10192
10198
  ] });
10193
10199
  }
10194
- const Jd = ot(null);
10195
- function $d() {
10196
- return je(Jd);
10200
+ const $d = ot(null);
10201
+ function Yd() {
10202
+ return je($d);
10197
10203
  }
10198
- function Yd({
10204
+ function Ud({
10199
10205
  field: t,
10200
10206
  pathPrefix: e,
10201
10207
  depth: n,
@@ -10212,7 +10218,7 @@ function Yd({
10212
10218
  Q(() => {
10213
10219
  d.length !== 0 && (d.some((B) => B.id === f) || m(d[0].id));
10214
10220
  }, [d, f]);
10215
- const g = $d(), h = t.id ?? t.name ?? "", b = t.variant ?? "line", p = t.alignment ?? "left", v = t.height ?? "auto", x = t.margin ?? "normal", C = t.activeColor ?? "#6366f1", I = t.activeTextColor ?? (b === "pill" ? "#ffffff" : C), y = t.inactiveTextColor ?? "#64748b", A = {
10221
+ const g = Yd(), h = t.id ?? t.name ?? "", b = t.variant ?? "line", p = t.alignment ?? "left", v = t.height ?? "auto", x = t.margin ?? "normal", C = t.activeColor ?? "#6366f1", I = t.activeTextColor ?? (b === "pill" ? "#ffffff" : C), y = t.inactiveTextColor ?? "#64748b", A = {
10216
10222
  left: "flex-start",
10217
10223
  "center-left": "flex-start",
10218
10224
  center: "center",
@@ -10358,7 +10364,7 @@ function Yd({
10358
10364
  ] })
10359
10365
  ] });
10360
10366
  }
10361
- const Ud = [
10367
+ const Qd = [
10362
10368
  { value: "equals", label: "equals" },
10363
10369
  { value: "notEquals", label: "not equals" },
10364
10370
  { value: "contains", label: "contains" },
@@ -10371,7 +10377,7 @@ const Ud = [
10371
10377
  { value: "lessThan", label: "less than" },
10372
10378
  { value: "greaterOrEquals", label: "greater or equal" },
10373
10379
  { value: "lessOrEquals", label: "less or equal" }
10374
- ], Qd = /* @__PURE__ */ new Set(["isPresent", "isNotPresent", "isEmpty", "isNotEmpty"]), xt = {
10380
+ ], qd = /* @__PURE__ */ new Set(["isPresent", "isNotPresent", "isEmpty", "isNotEmpty"]), xt = {
10375
10381
  width: "100%",
10376
10382
  height: 34,
10377
10383
  boxSizing: "border-box",
@@ -10416,15 +10422,15 @@ function Wr() {
10416
10422
  return { field: "", fieldLabel: "", operator: "equals", value: "", connector: "and" };
10417
10423
  }
10418
10424
  function En(t) {
10419
- return !Qd.has(t);
10425
+ return !qd.has(t);
10420
10426
  }
10421
- function qd(t, e) {
10427
+ function Kd(t, e) {
10422
10428
  return e.type === "operator" || !(String(t.field ?? "").trim() !== "" || String(t.value ?? "").trim() !== "") ? !1 : e.id === "value" ? En(t.operator) && String(t.value ?? "").trim() === "" : String(t.field ?? "").trim() === "";
10423
10429
  }
10424
10430
  function Bo(t) {
10425
10431
  return t.reduce((e, n) => e + (Go(n) ? Bo(n.entries) : 1), 0);
10426
10432
  }
10427
- function Kd({ connector: t, onChange: e }) {
10433
+ function ef({ connector: t, onChange: e }) {
10428
10434
  return /* @__PURE__ */ c(D, { sx: { display: "flex", gap: "2px" }, children: ["and", "or"].map((n) => /* @__PURE__ */ c(
10429
10435
  D,
10430
10436
  {
@@ -10451,7 +10457,7 @@ function Kd({ connector: t, onChange: e }) {
10451
10457
  n
10452
10458
  )) });
10453
10459
  }
10454
- function ef({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, disabled: a, invalid: o = !1 }) {
10460
+ function tf({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, disabled: a, invalid: o = !1 }) {
10455
10461
  const { enabled: u, loadOptions: s, depsKey: l } = Ki({ source: t.optionsSource, values: r }), [d, f] = k([]), [m, g] = k(!1);
10456
10462
  Q(() => {
10457
10463
  let p = !1;
@@ -10490,10 +10496,10 @@ function ef({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, disabl
10490
10496
  }
10491
10497
  );
10492
10498
  }
10493
- function tf({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, invalid: a = !1 }) {
10499
+ function nf({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, invalid: a = !1 }) {
10494
10500
  const [o, u] = k({}), s = t.id === "value" && !En(e.operator), l = a ? { borderColor: "#dc2626" } : null, d = a ? /* @__PURE__ */ c("div", { style: { color: "#dc2626", fontSize: 11, marginTop: 2 }, children: "required" }) : null;
10495
10501
  if (t.type === "operator") {
10496
- const g = Array.isArray(t.options) && t.options.length > 0 ? t.options : Ud;
10502
+ const g = Array.isArray(t.options) && t.options.length > 0 ? t.options : Qd;
10497
10503
  return /* @__PURE__ */ c(
10498
10504
  "select",
10499
10505
  {
@@ -10544,7 +10550,7 @@ function tf({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, invali
10544
10550
  if (t.type === "select" && t.optionsSource && !t.formula)
10545
10551
  return /* @__PURE__ */ R(ve, { children: [
10546
10552
  /* @__PURE__ */ c(
10547
- ef,
10553
+ tf,
10548
10554
  {
10549
10555
  colDef: t,
10550
10556
  entry: e,
@@ -10600,7 +10606,7 @@ function tf({ colDef: t, entry: e, onChange: n, cellId: i, formValues: r, invali
10600
10606
  }
10601
10607
  ) : null;
10602
10608
  }
10603
- function nf({ node: t, conditionDef: e, depth: n, fieldPath: i, onUpdate: r, onRemove: a, formValues: o }) {
10609
+ function rf({ node: t, conditionDef: e, depth: n, fieldPath: i, onUpdate: r, onRemove: a, formValues: o }) {
10604
10610
  const [u, s] = k(!1), l = Bo(t.entries);
10605
10611
  return /* @__PURE__ */ R(D, { sx: {
10606
10612
  border: "1px solid #e9e9e9",
@@ -10673,14 +10679,14 @@ function Vo({ conditionDef: t, entries: e, onUpdate: n, depth: i = 0, fieldPath:
10673
10679
  return /* @__PURE__ */ R(D, { sx: { mt: i === 0 ? 1.25 : 0.25 }, children: [
10674
10680
  e.map((b, p) => /* @__PURE__ */ R(D, { children: [
10675
10681
  p > 0 && /* @__PURE__ */ c(D, { sx: { display: "flex", alignItems: "center", my: "10px" }, children: p === 1 ? /* @__PURE__ */ c(
10676
- Kd,
10682
+ ef,
10677
10683
  {
10678
10684
  connector: d,
10679
10685
  onChange: f
10680
10686
  }
10681
10687
  ) : /* @__PURE__ */ c(de, { sx: { fontSize: 12, fontWeight: 700, color: "#94a3b8", textTransform: "uppercase", letterSpacing: 0.6, px: "6px" }, children: d }) }),
10682
10688
  Go(b) ? /* @__PURE__ */ c(
10683
- nf,
10689
+ rf,
10684
10690
  {
10685
10691
  node: b,
10686
10692
  conditionDef: t,
@@ -10694,14 +10700,14 @@ function Vo({ conditionDef: t, entries: e, onUpdate: n, depth: i = 0, fieldPath:
10694
10700
  p === 0 && /* @__PURE__ */ c(de, { sx: { fontSize: 12, fontWeight: 600, color: "#475569", mb: 0.75 }, children: "When" }),
10695
10701
  /* @__PURE__ */ R(D, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
10696
10702
  /* @__PURE__ */ c(D, { sx: { display: "grid", gridTemplateColumns: "repeat(12, 1fr)", gap: 0.75, flex: 1 }, children: t.fields.map((v) => /* @__PURE__ */ c(D, { sx: { gridColumn: `span ${v.colSpan ?? 4}` }, children: /* @__PURE__ */ c(
10697
- tf,
10703
+ nf,
10698
10704
  {
10699
10705
  colDef: v,
10700
10706
  entry: b,
10701
10707
  onChange: (x) => m(p, x),
10702
10708
  cellId: `${r}__${p}__${v.id}`,
10703
10709
  formValues: a,
10704
- invalid: qd(b, v)
10710
+ invalid: Kd(b, v)
10705
10711
  }
10706
10712
  ) }, v.id)) }),
10707
10713
  /* @__PURE__ */ c(Te, { title: "Remove condition", children: /* @__PURE__ */ c(
@@ -10763,7 +10769,7 @@ function Po({
10763
10769
  }) {
10764
10770
  return /* @__PURE__ */ c(Do.Provider, { value: { formulaConfig: t, onFormulaConfigChange: e, conditionConfig: n, onConditionConfigChange: i }, children: r });
10765
10771
  }
10766
- function rf() {
10772
+ function of() {
10767
10773
  return je(Do);
10768
10774
  }
10769
10775
  const cn = /* @__PURE__ */ new Map();
@@ -10823,7 +10829,7 @@ function On(t) {
10823
10829
  }
10824
10830
  return !0;
10825
10831
  }
10826
- function of(t) {
10832
+ function af(t) {
10827
10833
  const e = Array.isArray(t) ? t : t == null ? void 0 : t.fields, n = [], i = (r) => {
10828
10834
  (r ?? []).forEach((a) => {
10829
10835
  if (!a) return;
@@ -10835,7 +10841,7 @@ function of(t) {
10835
10841
  };
10836
10842
  return i(e), n;
10837
10843
  }
10838
- const zr = "_conditionConfig", af = "_formulaConfig";
10844
+ const zr = "_conditionConfig", sf = "_formulaConfig";
10839
10845
  function Hr({
10840
10846
  handleRef: t,
10841
10847
  onSave: e,
@@ -10859,7 +10865,7 @@ function Hr({
10859
10865
  setValues: (o) => r.current.setValues(o)
10860
10866
  }), []), null;
10861
10867
  }
10862
- function sf({
10868
+ function lf({
10863
10869
  conditionConfigKey: t,
10864
10870
  formulaConfigKey: e,
10865
10871
  explicitConditionConfig: n,
@@ -10892,19 +10898,19 @@ function sf({
10892
10898
  }
10893
10899
  );
10894
10900
  }
10895
- function lf({ onValuesChange: t }) {
10901
+ function uf({ onValuesChange: t }) {
10896
10902
  const { values: e } = at();
10897
10903
  return Q(() => {
10898
10904
  t(e);
10899
10905
  }, [e, t]), null;
10900
10906
  }
10901
- function uf({ onValidityChange: t }) {
10907
+ function cf({ onValidityChange: t }) {
10902
10908
  const { isValid: e } = at();
10903
10909
  return Q(() => {
10904
10910
  t(e);
10905
10911
  }, [e, t]), null;
10906
10912
  }
10907
- const cf = Lt(function(e, n) {
10913
+ const df = Lt(function(e, n) {
10908
10914
  var s;
10909
10915
  if ("form" in e && e.form) {
10910
10916
  const { form: l } = e;
@@ -10928,7 +10934,7 @@ const cf = Lt(function(e, n) {
10928
10934
  }
10929
10935
  ) });
10930
10936
  }
10931
- const i = e.conditionConfigKey ?? zr, r = e.formulaConfigKey ?? af, a = (l) => /* @__PURE__ */ R(ve, { children: [
10937
+ const i = e.conditionConfigKey ?? zr, r = e.formulaConfigKey ?? sf, a = (l) => /* @__PURE__ */ R(ve, { children: [
10932
10938
  /* @__PURE__ */ c(
10933
10939
  Hr,
10934
10940
  {
@@ -10938,7 +10944,7 @@ const cf = Lt(function(e, n) {
10938
10944
  }
10939
10945
  ),
10940
10946
  /* @__PURE__ */ c(
10941
- sf,
10947
+ lf,
10942
10948
  {
10943
10949
  conditionConfigKey: i,
10944
10950
  formulaConfigKey: r,
@@ -10971,11 +10977,11 @@ const cf = Lt(function(e, n) {
10971
10977
  id: e.formId,
10972
10978
  noValidate: !0,
10973
10979
  onSubmit: (v) => {
10974
- v.preventDefault(), of(e.schema).forEach((x) => h(x, !0, !1)), b();
10980
+ v.preventDefault(), af(e.schema).forEach((x) => h(x, !0, !1)), b();
10975
10981
  },
10976
10982
  children: [
10977
- e.onValuesChange && /* @__PURE__ */ c(lf, { onValuesChange: e.onValuesChange }),
10978
- e.onValidityChange && /* @__PURE__ */ c(uf, { onValidityChange: e.onValidityChange }),
10983
+ e.onValuesChange && /* @__PURE__ */ c(uf, { onValuesChange: e.onValuesChange }),
10984
+ e.onValidityChange && /* @__PURE__ */ c(cf, { onValidityChange: e.onValidityChange }),
10979
10985
  a(
10980
10986
  /* @__PURE__ */ c(
10981
10987
  ko,
@@ -11039,7 +11045,7 @@ function ko({
11039
11045
  const o = t.layout ?? "flat", u = t.compact ?? !1;
11040
11046
  if (o === "stepper" && Array.isArray(t.steps) && t.steps.length > 0)
11041
11047
  return /* @__PURE__ */ c(
11042
- ff,
11048
+ pf,
11043
11049
  {
11044
11050
  steps: t.steps,
11045
11051
  compact: u,
@@ -11069,7 +11075,7 @@ function ko({
11069
11075
  ) }, d);
11070
11076
  }) });
11071
11077
  }
11072
- function df({ disabled: t }) {
11078
+ function ff({ disabled: t }) {
11073
11079
  const { submitForm: e, isSubmitting: n } = at(), i = t || n;
11074
11080
  return /* @__PURE__ */ c(
11075
11081
  "button",
@@ -11093,7 +11099,7 @@ function df({ disabled: t }) {
11093
11099
  }
11094
11100
  );
11095
11101
  }
11096
- function ff({
11102
+ function pf({
11097
11103
  steps: t,
11098
11104
  compact: e,
11099
11105
  values: n,
@@ -11197,7 +11203,7 @@ function ff({
11197
11203
  },
11198
11204
  children: "Next →"
11199
11205
  }
11200
- ) : /* @__PURE__ */ c(df, { disabled: d })
11206
+ ) : /* @__PURE__ */ c(ff, { disabled: d })
11201
11207
  ] })
11202
11208
  ] });
11203
11209
  }
@@ -11214,12 +11220,12 @@ function tt({
11214
11220
  inlineLabel: l,
11215
11221
  item: d
11216
11222
  }) {
11217
- const { formulaConfig: f, onFormulaConfigChange: m, conditionConfig: g, onConditionConfigChange: h } = rf(), b = { values: i, item: d }, p = X(i);
11223
+ const { formulaConfig: f, onFormulaConfigChange: m, conditionConfig: g, onConditionConfigChange: h } = of(), b = { values: i, item: d }, p = X(i);
11218
11224
  p.current = i;
11219
11225
  const v = X(d);
11220
11226
  v.current = d;
11221
11227
  const x = oe(() => {
11222
- const y = zd(t);
11228
+ const y = Hd(t);
11223
11229
  return async (A) => {
11224
11230
  const S = { values: p.current, item: v.current };
11225
11231
  if (Ct(t.shouldHide, S) || t.hidden) return;
@@ -11240,7 +11246,7 @@ function tt({
11240
11246
  const A = Ne(p.current, e);
11241
11247
  A == null || A === "" || Array.isArray(A) && A.length === 0 || o(e, t.defaultValue);
11242
11248
  }, [C, e, t.clearOnHide, t.defaultValue, o]), C ? null : t.type === "object" ? /* @__PURE__ */ c(et, { field: t, compact: s, children: /* @__PURE__ */ c(
11243
- jd,
11249
+ Jd,
11244
11250
  {
11245
11251
  field: t,
11246
11252
  pathPrefix: e,
@@ -11304,7 +11310,7 @@ function tt({
11304
11310
  )
11305
11311
  }
11306
11312
  ) }) : t.type === "tabs" ? /* @__PURE__ */ c(et, { field: t, compact: s, children: /* @__PURE__ */ c(
11307
- Yd,
11313
+ Ud,
11308
11314
  {
11309
11315
  field: t,
11310
11316
  pathPrefix: e,
@@ -11334,7 +11340,7 @@ function tt({
11334
11340
  )
11335
11341
  }
11336
11342
  ) }) : /* @__PURE__ */ c(
11337
- pf,
11343
+ gf,
11338
11344
  {
11339
11345
  field: t,
11340
11346
  pathPrefix: e,
@@ -11353,7 +11359,7 @@ function tt({
11353
11359
  }
11354
11360
  );
11355
11361
  }
11356
- function pf({
11362
+ function gf({
11357
11363
  field: t,
11358
11364
  pathPrefix: e,
11359
11365
  values: n,
@@ -11417,56 +11423,56 @@ function pf({
11417
11423
  )
11418
11424
  ] });
11419
11425
  }
11420
- const Nf = cf;
11426
+ const Lf = df;
11421
11427
  export {
11422
11428
  St as A,
11423
- Sf as B,
11424
- Bf as C,
11429
+ Rf as B,
11430
+ Vf as C,
11425
11431
  it as D,
11426
11432
  Oa as E,
11427
11433
  E as F,
11428
- Gf as G,
11434
+ Bf as G,
11429
11435
  Ki as H,
11430
- Rc as I,
11431
- Df as J,
11436
+ Ec as I,
11437
+ Pf as J,
11432
11438
  st as K,
11433
11439
  oo as L,
11434
- Tf as M,
11435
- Nd as N,
11440
+ Gf as M,
11441
+ Ld as N,
11436
11442
  Wu as O,
11437
11443
  Nt as P,
11438
- Jd as Q,
11444
+ $d as Q,
11439
11445
  J as R,
11440
- Pf as S,
11441
- Md as T,
11442
- zc as U,
11443
- Vf as V,
11446
+ Nf as S,
11447
+ Wd as T,
11448
+ Hc as U,
11449
+ Df as V,
11444
11450
  Qa as _,
11445
- Nf as a,
11446
- Xd as b,
11447
- cf as c,
11451
+ Lf as a,
11452
+ zd as b,
11453
+ df as c,
11448
11454
  bi as d,
11449
11455
  Ta as e,
11450
- wf as f,
11456
+ Ff as f,
11451
11457
  li as g,
11452
- Af as h,
11458
+ Sf as h,
11453
11459
  ei as i,
11454
- Cf as j,
11460
+ Af as j,
11455
11461
  Kr as k,
11456
11462
  qn as l,
11457
- Rf as m,
11463
+ Ef as m,
11458
11464
  Ea as n,
11459
11465
  le as o,
11460
11466
  ha as p,
11461
11467
  ee as q,
11462
- Of as r,
11468
+ wf as r,
11463
11469
  re as s,
11464
11470
  pa as t,
11465
- Ff as u,
11471
+ Tf as u,
11466
11472
  yn as v,
11467
11473
  Ve as w,
11468
11474
  si as x,
11469
- Ef as y,
11475
+ Of as y,
11470
11476
  De as z
11471
11477
  };
11472
- //# sourceMappingURL=index-DfJ_w7XO.js.map
11478
+ //# sourceMappingURL=index-DxnhBosZ.js.map