@notmrabhi/flowforge 0.1.50 → 0.1.52

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 (31) hide show
  1. package/dist/{SchemaBuilderDrawer-BZ7-GVP_.js → SchemaBuilderDrawer-BP7aZgFe.js} +2 -2
  2. package/dist/{SchemaBuilderDrawer-BZ7-GVP_.js.map → SchemaBuilderDrawer-BP7aZgFe.js.map} +1 -1
  3. package/dist/{SchemaBuilderDrawer-CLZy4ZoT.js → SchemaBuilderDrawer-CIxQGffa.js} +2 -2
  4. package/dist/{SchemaBuilderDrawer-CLZy4ZoT.js.map → SchemaBuilderDrawer-CIxQGffa.js.map} +1 -1
  5. package/dist/canvas.cjs +1 -1
  6. package/dist/canvas.js +1 -1
  7. package/dist/form.cjs +1 -1
  8. package/dist/form.d.ts +7 -0
  9. package/dist/form.js +2 -2
  10. package/dist/{index-tyzgIY9U.js → index-B-D9UuLO.js} +152 -144
  11. package/dist/{index-tyzgIY9U.js.map → index-B-D9UuLO.js.map} +1 -1
  12. package/dist/{index-h1mUpS7l.js → index-B-vpguq_.js} +2 -2
  13. package/dist/{index-h1mUpS7l.js.map → index-B-vpguq_.js.map} +1 -1
  14. package/dist/{index-Cjql1zwT.js → index-BbYsmgpo.js} +2 -2
  15. package/dist/{index-Cjql1zwT.js.map → index-BbYsmgpo.js.map} +1 -1
  16. package/dist/{index-idr4zHMF.js → index-BsgdZXaY.js} +2 -2
  17. package/dist/{index-idr4zHMF.js.map → index-BsgdZXaY.js.map} +1 -1
  18. package/dist/{index-cwtx0Uej.js → index-DUbQPmIx.js} +6 -6
  19. package/dist/{index-cwtx0Uej.js.map → index-DUbQPmIx.js.map} +1 -1
  20. package/dist/{index-B-K6-s8t.js → index-hv7IJZ9j.js} +2 -2
  21. package/dist/{index-B-K6-s8t.js.map → index-hv7IJZ9j.js.map} +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.ts +170 -0
  25. package/dist/index.js +443 -125
  26. package/dist/index.js.map +1 -1
  27. package/dist/{templateSkeletons-Dj88q55j.js → templateSkeletons-f-XQQvyE.js} +2 -2
  28. package/dist/{templateSkeletons-Dj88q55j.js.map → templateSkeletons-f-XQQvyE.js.map} +1 -1
  29. package/dist/{templateSkeletons-DfkoJMrg.js → templateSkeletons-gOva2Xus.js} +2 -2
  30. package/dist/{templateSkeletons-DfkoJMrg.js.map → templateSkeletons-gOva2Xus.js.map} +1 -1
  31. package/package.json +1 -1
@@ -55,7 +55,7 @@ const ot = /* @__PURE__ */ new Map(), te = {
55
55
  HELPER_MT: 4,
56
56
  FIELD_MB: 20
57
57
  };
58
- function vd(t) {
58
+ function Id(t) {
59
59
  return {
60
60
  height: S.INPUT_HEIGHT,
61
61
  width: "100%",
@@ -126,7 +126,7 @@ function ko(t) {
126
126
  function zo(t) {
127
127
  return t.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
128
128
  }
129
- function Id(t, ...e) {
129
+ function yd(t, ...e) {
130
130
  return e.length === 0 ? t : `${t}.${e.map((n) => `["${zo(n)}"]`).join(".")}`;
131
131
  }
132
132
  function Ve(t, e = !1) {
@@ -160,20 +160,20 @@ function Be(t) {
160
160
  }
161
161
  }
162
162
  function It(t) {
163
- return t.map(ke).join("");
163
+ return t.map(ze).join("");
164
164
  }
165
- function ke(t) {
165
+ function ze(t) {
166
166
  switch (t.type) {
167
167
  case "text":
168
168
  return t.value;
169
169
  case "path-ref":
170
170
  return `_P('${t.path}')`;
171
171
  case "concat":
172
- return t.values.map(ke).join("");
172
+ return t.values.map(ze).join("");
173
173
  case "function":
174
- return `_DE_{_FN_('${t.name}', ${t.args.map(ke).join(", ")})}`;
174
+ return `_DE_{_FN_('${t.name}', ${t.args.map(ze).join(", ")})}`;
175
175
  case "condition":
176
- return `_DE_{_IF_(${ke(t.if)}, ${ke(t.then)}, ${ke(t.else)})}`;
176
+ return `_DE_{_IF_(${ze(t.if)}, ${ze(t.then)}, ${ze(t.else)})}`;
177
177
  }
178
178
  }
179
179
  function Xr() {
@@ -210,7 +210,7 @@ function Hr(t) {
210
210
  ...t.connector && { connector: t.connector }
211
211
  } : _o(t);
212
212
  }
213
- function yd({
213
+ function xd({
214
214
  values: t,
215
215
  conditionConfig: e
216
216
  }) {
@@ -251,15 +251,15 @@ function Zr(t) {
251
251
  return n === 0 ? i : (e.connector === "or" ? " || " : " && ") + i;
252
252
  }).join("");
253
253
  }
254
- function xd(t) {
254
+ function Cd(t) {
255
255
  return Object.fromEntries(
256
256
  Object.entries(t).filter(([, e]) => e.length > 0).map(([e, n]) => [e, Zr(n)])
257
257
  );
258
258
  }
259
- function Cd(t) {
259
+ function Ad(t) {
260
260
  return typeof t == "string" && /_DE_\{_P\('[^']*'\)\}|_P\('[^']*'\)/.test(t);
261
261
  }
262
- function Ad(t) {
262
+ function Rd(t) {
263
263
  return t.some((e) => e.type !== "text");
264
264
  }
265
265
  function _r(t, e = !1) {
@@ -285,16 +285,16 @@ function jo(t, e = !1) {
285
285
  return _r(Ve(t, e), e);
286
286
  }
287
287
  const In = "_DE_{_P(", yn = ")}";
288
- function Rd(t) {
288
+ function Sd(t) {
289
289
  return typeof t == "string" && t.startsWith(In) && t.endsWith(yn);
290
290
  }
291
- function Sd(t) {
291
+ function Ed(t) {
292
292
  return `${In}'${t}'${yn}`;
293
293
  }
294
- function Ed(t) {
294
+ function Od(t) {
295
295
  return t.slice(In.length, -yn.length).replace(/^['"]|['"]$/g, "");
296
296
  }
297
- function Od(t) {
297
+ function Fd(t) {
298
298
  return t.replace(/_DE_\{_P\('[^']*'\)\}/g, "");
299
299
  }
300
300
  function ue({ label: t, required: e, showOptional: n, info: i, htmlFor: r, dataTestId: a }) {
@@ -539,7 +539,7 @@ function $r({
539
539
  ) }) })
540
540
  ] });
541
541
  }
542
- function Fd({
542
+ function wd({
543
543
  width: t = 300,
544
544
  title: e = "Values",
545
545
  mode: n = "drawer",
@@ -1309,29 +1309,29 @@ function Y() {
1309
1309
  return t;
1310
1310
  }, Y.apply(null, arguments);
1311
1311
  }
1312
- function Pe(t) {
1312
+ function Le(t) {
1313
1313
  "@babel/helpers - typeof";
1314
- return Pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1314
+ return Le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1315
1315
  return typeof e;
1316
1316
  } : function(e) {
1317
1317
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1318
- }, Pe(t);
1318
+ }, Le(t);
1319
1319
  }
1320
1320
  function ia(t, e) {
1321
- if (Pe(t) != "object" || !t) return t;
1321
+ if (Le(t) != "object" || !t) return t;
1322
1322
  var n = t[Symbol.toPrimitive];
1323
1323
  if (n !== void 0) {
1324
1324
  var i = n.call(t, e);
1325
- if (Pe(i) != "object") return i;
1325
+ if (Le(i) != "object") return i;
1326
1326
  throw new TypeError("@@toPrimitive must return a primitive value.");
1327
1327
  }
1328
1328
  return (e === "string" ? String : Number)(t);
1329
1329
  }
1330
1330
  function Kr(t) {
1331
1331
  var e = ia(t, "string");
1332
- return Pe(e) == "symbol" ? e : e + "";
1332
+ return Le(e) == "symbol" ? e : e + "";
1333
1333
  }
1334
- function ze(t, e, n) {
1334
+ function He(t, e, n) {
1335
1335
  return (e = Kr(e)) in t ? Object.defineProperty(t, e, {
1336
1336
  value: n,
1337
1337
  enumerable: !0,
@@ -1353,7 +1353,7 @@ function H(t) {
1353
1353
  for (var e = 1; e < arguments.length; e++) {
1354
1354
  var n = arguments[e] != null ? arguments[e] : {};
1355
1355
  e % 2 ? kn(Object(n), !0).forEach(function(i) {
1356
- ze(t, i, n[i]);
1356
+ He(t, i, n[i]);
1357
1357
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : kn(Object(n)).forEach(function(i) {
1358
1358
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(n, i));
1359
1359
  });
@@ -1411,7 +1411,7 @@ function la(t) {
1411
1411
  return t;
1412
1412
  }
1413
1413
  function ua(t, e) {
1414
- if (e && (Pe(e) == "object" || typeof e == "function")) return e;
1414
+ if (e && (Le(e) == "object" || typeof e == "function")) return e;
1415
1415
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1416
1416
  return la(t);
1417
1417
  }
@@ -1448,7 +1448,7 @@ function pa() {
1448
1448
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1449
1449
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1450
1450
  }
1451
- function Ze(t) {
1451
+ function _e(t) {
1452
1452
  return da(t) || fa(t) || ti(t) || pa();
1453
1453
  }
1454
1454
  function ga(t) {
@@ -1768,7 +1768,7 @@ function Da(t, e) {
1768
1768
  }).join(" ");
1769
1769
  }
1770
1770
  var St = function(e) {
1771
- return Za(e) ? e.filter(Boolean) : Pe(e) === "object" && e !== null ? [e] : [];
1771
+ return Za(e) ? e.filter(Boolean) : Le(e) === "object" && e !== null ? [e] : [];
1772
1772
  }, li = function(e) {
1773
1773
  e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
1774
1774
  var n = ve(e, Ba);
@@ -1961,7 +1961,7 @@ var di = function(e) {
1961
1961
  var i, r = e.placement, a = e.theme, o = a.borderRadius, u = a.spacing, s = a.colors;
1962
1962
  return H((i = {
1963
1963
  label: "menu"
1964
- }, ze(i, $a(r), "100%"), ze(i, "position", "absolute"), ze(i, "width", "100%"), ze(i, "zIndex", 1), i), n ? {} : {
1964
+ }, He(i, $a(r), "100%"), He(i, "position", "absolute"), He(i, "width", "100%"), He(i, "zIndex", 1), i), n ? {} : {
1965
1965
  backgroundColor: s.neutral0,
1966
1966
  borderRadius: o,
1967
1967
  boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
@@ -3101,7 +3101,7 @@ function nr() {
3101
3101
  function rr() {
3102
3102
  return "ontouchstart" in window || navigator.maxTouchPoints;
3103
3103
  }
3104
- var ir = !!(typeof window < "u" && window.document && window.document.createElement), Qe = 0, We = {
3104
+ var ir = !!(typeof window < "u" && window.document && window.document.createElement), Qe = 0, Xe = {
3105
3105
  capture: !1,
3106
3106
  passive: !1
3107
3107
  };
@@ -3119,7 +3119,7 @@ function Rl(t) {
3119
3119
  c && (c[m] = b);
3120
3120
  }), c && (c.paddingRight = "".concat(p, "px"));
3121
3121
  }
3122
- l && rr() && (l.addEventListener("touchmove", er, We), s && (s.addEventListener("touchstart", nr, We), s.addEventListener("touchmove", tr, We))), Qe += 1;
3122
+ l && rr() && (l.addEventListener("touchmove", er, Xe), s && (s.addEventListener("touchstart", nr, Xe), s.addEventListener("touchmove", tr, Xe))), Qe += 1;
3123
3123
  }
3124
3124
  }, [i]), u = k(function(s) {
3125
3125
  if (ir) {
@@ -3127,7 +3127,7 @@ function Rl(t) {
3127
3127
  Qe = Math.max(Qe - 1, 0), i && Qe < 1 && qn.forEach(function(f) {
3128
3128
  var g = r.current[f];
3129
3129
  c && (c[f] = g);
3130
- }), l && rr() && (l.removeEventListener("touchmove", er, We), s && (s.removeEventListener("touchstart", nr, We), s.removeEventListener("touchmove", tr, We)));
3130
+ }), l && rr() && (l.removeEventListener("touchmove", er, Xe), s && (s.removeEventListener("touchstart", nr, Xe), s.removeEventListener("touchmove", tr, Xe)));
3131
3131
  }
3132
3132
  }, [i]);
3133
3133
  return q(function() {
@@ -3356,14 +3356,14 @@ function ft(t, e) {
3356
3356
  }
3357
3357
  function Si(t) {
3358
3358
  return t.reduce(function(e, n) {
3359
- return n.type === "group" ? e.push.apply(e, Ze(n.options.map(function(i) {
3359
+ return n.type === "group" ? e.push.apply(e, _e(n.options.map(function(i) {
3360
3360
  return i.data;
3361
3361
  }))) : e.push(n.data), e;
3362
3362
  }, []);
3363
3363
  }
3364
3364
  function ar(t, e) {
3365
3365
  return t.reduce(function(n, i) {
3366
- return i.type === "group" ? n.push.apply(n, Ze(i.options.map(function(r) {
3366
+ return i.type === "group" ? n.push.apply(n, _e(i.options.map(function(r) {
3367
3367
  return {
3368
3368
  data: r.data,
3369
3369
  id: "".concat(e, "-").concat(i.index, "-").concat(r.index)
@@ -3480,7 +3480,7 @@ var Ti = function(e) {
3480
3480
  return r.getOptionValue(v) !== h;
3481
3481
  }), "deselect-option", s);
3482
3482
  } else if (!b)
3483
- f ? r.setValue([].concat(Ze(p), [s]), "select-option", s) : r.setValue(s, "select-option");
3483
+ f ? r.setValue([].concat(_e(p), [s]), "select-option", s) : r.setValue(s, "select-option");
3484
3484
  else {
3485
3485
  r.ariaOnChange(s, {
3486
3486
  action: "select-option",
@@ -4371,11 +4371,11 @@ function Gi(t) {
4371
4371
  m.current = !1;
4372
4372
  };
4373
4373
  }, []);
4374
- var $e = k(function(Ue, Me) {
4375
- if (!a) return Me();
4376
- var be = a(Ue, Me);
4377
- be && typeof be.then == "function" && be.then(Me, function() {
4378
- return Me();
4374
+ var $e = k(function(Ue, We) {
4375
+ if (!a) return We();
4376
+ var be = a(Ue, We);
4377
+ be && typeof be.then == "function" && be.then(We, function() {
4378
+ return We();
4379
4379
  });
4380
4380
  }, [a]);
4381
4381
  q(function() {
@@ -4383,8 +4383,8 @@ function Gi(t) {
4383
4383
  m.current && (A(Ue || []), M(!!p.current));
4384
4384
  });
4385
4385
  }, []);
4386
- var go = k(function(Ue, Me) {
4387
- var be = Na(Ue, Me, s);
4386
+ var go = k(function(Ue, We) {
4387
+ var be = Na(Ue, We, s);
4388
4388
  if (!be) {
4389
4389
  p.current = void 0, y(""), F(""), $([]), M(!1), w(!1);
4390
4390
  return;
@@ -4394,7 +4394,7 @@ function Gi(t) {
4394
4394
  else {
4395
4395
  var ho = p.current = {};
4396
4396
  y(be), M(!0), w(!B), $e(be, function(Wt) {
4397
- m && ho === p.current && (p.current = void 0, M(!1), F(be), $(Wt || []), w(!1), j(Wt ? H(H({}, P), {}, ze({}, be, Wt)) : P));
4397
+ m && ho === p.current && (p.current = void 0, M(!1), F(be), $(Wt || []), w(!1), j(Wt ? H(H({}, P), {}, He({}, be, Wt)) : P));
4398
4398
  });
4399
4399
  }
4400
4400
  }, [r, $e, B, P, s]), bo = X ? [] : C && B ? U : v || [];
@@ -4439,7 +4439,7 @@ function Bi(t) {
4439
4439
  getOptionLabel: x
4440
4440
  }) ? c(I, o(I)) : void 0;
4441
4441
  }, [o, c, x, v, I, s, p, R]), M = oe(function() {
4442
- return (n || !C) && G ? r === "first" ? [G].concat(Ze(p)) : [].concat(Ze(p), [G]) : p;
4442
+ return (n || !C) && G ? r === "first" ? [G].concat(_e(p)) : [].concat(_e(p), [G]) : p;
4443
4443
  }, [n, r, C, G, p]), N = k(function(L, B) {
4444
4444
  if (B.action !== "select-option")
4445
4445
  return m(L, B);
@@ -4452,7 +4452,7 @@ function Bi(t) {
4452
4452
  name: O,
4453
4453
  option: V
4454
4454
  };
4455
- m(qe(y, [].concat(Ze(St(R)), [V]), V), Z);
4455
+ m(qe(y, [].concat(_e(St(R)), [V]), V), Z);
4456
4456
  }
4457
4457
  return;
4458
4458
  }
@@ -4704,7 +4704,7 @@ function su({ source: t, values: e }) {
4704
4704
  refresh: g
4705
4705
  };
4706
4706
  }
4707
- function wd() {
4707
+ function Td() {
4708
4708
  return Je(Tn);
4709
4709
  }
4710
4710
  function lu({ field: t, value: e, values: n, onChange: i, onBlur: r, error: a, touched: o, formulaConfig: u, onFormulaConfigChange: s }) {
@@ -6269,7 +6269,7 @@ function Gu({
6269
6269
  (s || p) && /* @__PURE__ */ d("small", { "data-testid": `${u}-error`, style: pe, children: p ?? r })
6270
6270
  ] });
6271
6271
  }
6272
- const Bu = et.lazy(async () => ({ default: (await import("./index-Cjql1zwT.js")).default }));
6272
+ const Bu = et.lazy(async () => ({ default: (await import("./index-BbYsmgpo.js")).default }));
6273
6273
  async function Vu(t) {
6274
6274
  switch (t) {
6275
6275
  case "python":
@@ -6478,7 +6478,7 @@ function Pu({
6478
6478
  ] });
6479
6479
  }
6480
6480
  const Lu = et.lazy(
6481
- () => import("./index-idr4zHMF.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6481
+ () => import("./index-BsgdZXaY.js").then((t) => t.i).then((t) => (Promise.resolve({ }), { default: t.default }))
6482
6482
  ), Mu = [
6483
6483
  [{ header: [1, 2, 3, !1] }],
6484
6484
  ["bold", "italic", "underline", "strike"],
@@ -6797,7 +6797,7 @@ te.register("json-editor", Du);
6797
6797
  te.register("code", Pu);
6798
6798
  te.register("rich-text", Wu);
6799
6799
  te.register("infinite-select", Zu);
6800
- var Td = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6800
+ var Gd = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6801
6801
  function _u(t) {
6802
6802
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6803
6803
  }
@@ -7100,7 +7100,7 @@ const ct = {
7100
7100
  context: "$",
7101
7101
  value: "."
7102
7102
  };
7103
- class Le {
7103
+ class Me {
7104
7104
  constructor(e, n = {}) {
7105
7105
  if (this.key = void 0, this.isContext = void 0, this.isValue = void 0, this.isSibling = void 0, this.path = void 0, this.getter = void 0, this.map = void 0, typeof e != "string") throw new TypeError("ref must be a string, got: " + e);
7106
7106
  if (this.key = e.trim(), e === "") throw new TypeError("ref must be a non-empty string");
@@ -7138,9 +7138,9 @@ class Le {
7138
7138
  return e && e.__isYupRef;
7139
7139
  }
7140
7140
  }
7141
- Le.prototype.__isYupRef = !0;
7141
+ Me.prototype.__isYupRef = !0;
7142
7142
  const me = (t) => t == null;
7143
- function Xe(t) {
7143
+ function ke(t) {
7144
7144
  function e({
7145
7145
  value: n,
7146
7146
  path: i = "",
@@ -7221,7 +7221,7 @@ function Yi(t, e) {
7221
7221
  return t;
7222
7222
  }
7223
7223
  function ji(t, e) {
7224
- return Le.isRef(t) ? t.getValue(e.value, e.parent, e.context) : t;
7224
+ return Me.isRef(t) ? t.getValue(e.value, e.parent, e.context) : t;
7225
7225
  }
7226
7226
  function mc(t, e, n, i = n) {
7227
7227
  let r, a, o;
@@ -7258,7 +7258,7 @@ class wt extends Set {
7258
7258
  describe() {
7259
7259
  const e = [];
7260
7260
  for (const n of this.values())
7261
- e.push(Le.isRef(n) ? n.describe() : n);
7261
+ e.push(Me.isRef(n) ? n.describe() : n);
7262
7262
  return e;
7263
7263
  }
7264
7264
  resolveAll(e) {
@@ -7275,7 +7275,7 @@ class wt extends Set {
7275
7275
  return e.forEach((r) => i.add(r)), n.forEach((r) => i.delete(r)), i;
7276
7276
  }
7277
7277
  }
7278
- function He(t, e = /* @__PURE__ */ new Map()) {
7278
+ function Ze(t, e = /* @__PURE__ */ new Map()) {
7279
7279
  if (Lt(t) || !t || typeof t != "object") return t;
7280
7280
  if (e.has(t)) return e.get(t);
7281
7281
  let n;
@@ -7285,16 +7285,16 @@ function He(t, e = /* @__PURE__ */ new Map()) {
7285
7285
  n = new RegExp(t), e.set(t, n);
7286
7286
  else if (Array.isArray(t)) {
7287
7287
  n = new Array(t.length), e.set(t, n);
7288
- for (let i = 0; i < t.length; i++) n[i] = He(t[i], e);
7288
+ for (let i = 0; i < t.length; i++) n[i] = Ze(t[i], e);
7289
7289
  } else if (t instanceof Map) {
7290
7290
  n = /* @__PURE__ */ new Map(), e.set(t, n);
7291
- for (const [i, r] of t.entries()) n.set(i, He(r, e));
7291
+ for (const [i, r] of t.entries()) n.set(i, Ze(r, e));
7292
7292
  } else if (t instanceof Set) {
7293
7293
  n = /* @__PURE__ */ new Set(), e.set(t, n);
7294
- for (const i of t) n.add(He(i, e));
7294
+ for (const i of t) n.add(Ze(i, e));
7295
7295
  } else if (t instanceof Object) {
7296
7296
  n = {}, e.set(t, n);
7297
- for (const [i, r] of Object.entries(t)) n[i] = He(r, e);
7297
+ for (const [i, r] of Object.entries(t)) n[i] = Ze(r, e);
7298
7298
  } else
7299
7299
  throw Error(`Unable to clone ${t}`);
7300
7300
  return n;
@@ -7365,7 +7365,7 @@ class he {
7365
7365
  if (this._mutate)
7366
7366
  return e && Object.assign(this.spec, e), this;
7367
7367
  const n = Object.create(Object.getPrototypeOf(this));
7368
- return n.type = this.type, n._typeCheck = this._typeCheck, n._whitelist = this._whitelist.clone(), n._blacklist = this._blacklist.clone(), n.internalTests = Object.assign({}, this.internalTests), n.exclusiveTests = Object.assign({}, this.exclusiveTests), n.deps = [...this.deps], n.conditions = [...this.conditions], n.tests = [...this.tests], n.transforms = [...this.transforms], n.spec = He(Object.assign({}, this.spec, e)), n;
7368
+ return n.type = this.type, n._typeCheck = this._typeCheck, n._whitelist = this._whitelist.clone(), n._blacklist = this._blacklist.clone(), n.internalTests = Object.assign({}, this.internalTests), n.exclusiveTests = Object.assign({}, this.exclusiveTests), n.deps = [...this.deps], n.conditions = [...this.conditions], n.tests = [...this.tests], n.transforms = [...this.transforms], n.spec = Ze(Object.assign({}, this.spec, e)), n;
7369
7369
  }
7370
7370
  label(e) {
7371
7371
  let n = this.clone();
@@ -7570,7 +7570,7 @@ attempted value: ${o}
7570
7570
  }
7571
7571
  _getDefault(e) {
7572
7572
  let n = this.spec.default;
7573
- return n == null ? n : typeof n == "function" ? n.call(this, e) : He(n);
7573
+ return n == null ? n : typeof n == "function" ? n.call(this, e) : Ze(n);
7574
7574
  }
7575
7575
  getDefault(e) {
7576
7576
  return this.resolve(e || {})._getDefault(e);
@@ -7589,7 +7589,7 @@ attempted value: ${o}
7589
7589
  const i = this.clone({
7590
7590
  nullable: e
7591
7591
  });
7592
- return i.internalTests.nullable = Xe({
7592
+ return i.internalTests.nullable = ke({
7593
7593
  message: n,
7594
7594
  name: "nullable",
7595
7595
  test(r) {
@@ -7601,7 +7601,7 @@ attempted value: ${o}
7601
7601
  const i = this.clone({
7602
7602
  optional: e
7603
7603
  });
7604
- return i.internalTests.optionality = Xe({
7604
+ return i.internalTests.optionality = ke({
7605
7605
  message: n,
7606
7606
  name: "optionality",
7607
7607
  test(r) {
@@ -7656,21 +7656,21 @@ attempted value: ${o}
7656
7656
  message: e[1],
7657
7657
  test: e[2]
7658
7658
  }, n.message === void 0 && (n.message = xe.default), typeof n.test != "function") throw new TypeError("`test` is a required parameters");
7659
- let i = this.clone(), r = Xe(n), a = n.exclusive || n.name && i.exclusiveTests[n.name] === !0;
7659
+ let i = this.clone(), r = ke(n), a = n.exclusive || n.name && i.exclusiveTests[n.name] === !0;
7660
7660
  if (n.exclusive && !n.name)
7661
7661
  throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");
7662
7662
  return n.name && (i.exclusiveTests[n.name] = !!n.exclusive), i.tests = i.tests.filter((o) => !(o.OPTIONS.name === n.name && (a || o.OPTIONS.test === r.OPTIONS.test))), i.tests.push(r), i;
7663
7663
  }
7664
7664
  when(e, n) {
7665
7665
  !Array.isArray(e) && typeof e != "string" && (n = e, e = ".");
7666
- let i = this.clone(), r = Hi(e).map((a) => new Le(a));
7666
+ let i = this.clone(), r = Hi(e).map((a) => new Me(a));
7667
7667
  return r.forEach((a) => {
7668
7668
  a.isSibling && i.deps.push(a.key);
7669
7669
  }), i.conditions.push(typeof n == "function" ? new Ft(r, n) : Ft.fromOptions(r, n)), i;
7670
7670
  }
7671
7671
  typeError(e) {
7672
7672
  let n = this.clone();
7673
- return n.internalTests.typeError = Xe({
7673
+ return n.internalTests.typeError = ke({
7674
7674
  message: e,
7675
7675
  name: "typeError",
7676
7676
  skipAbsent: !0,
@@ -7687,7 +7687,7 @@ attempted value: ${o}
7687
7687
  let i = this.clone();
7688
7688
  return e.forEach((r) => {
7689
7689
  i._whitelist.add(r), i._blacklist.delete(r);
7690
- }), i.internalTests.whiteList = Xe({
7690
+ }), i.internalTests.whiteList = ke({
7691
7691
  message: n,
7692
7692
  name: "oneOf",
7693
7693
  skipAbsent: !0,
@@ -7706,7 +7706,7 @@ attempted value: ${o}
7706
7706
  let i = this.clone();
7707
7707
  return e.forEach((r) => {
7708
7708
  i._blacklist.add(r), i._whitelist.delete(r);
7709
- }), i.internalTests.blacklist = Xe({
7709
+ }), i.internalTests.blacklist = ke({
7710
7710
  message: n,
7711
7711
  name: "notOneOf",
7712
7712
  test(r) {
@@ -8197,7 +8197,7 @@ class Nn extends he {
8197
8197
  }
8198
8198
  prepareParam(e, n) {
8199
8199
  let i;
8200
- if (Le.isRef(e))
8200
+ if (Me.isRef(e))
8201
8201
  i = e;
8202
8202
  else {
8203
8203
  let r = this.cast(e);
@@ -8246,7 +8246,7 @@ function Dc(t, e = []) {
8246
8246
  }
8247
8247
  for (const o of Object.keys(t)) {
8248
8248
  let u = t[o];
8249
- i.add(o), Le.isRef(u) && u.isSibling ? a(u.path, o) : Lt(u) && "deps" in u && u.deps.forEach((s) => a(s, o));
8249
+ i.add(o), Me.isRef(u) && u.isSibling ? a(u.path, o) : Lt(u) && "deps" in u && u.deps.forEach((s) => a(s, o));
8250
8250
  }
8251
8251
  return lc.array(Array.from(i), n).reverse();
8252
8252
  }
@@ -8359,7 +8359,7 @@ class ro extends he {
8359
8359
  let c = [];
8360
8360
  for (let f of this._nodes) {
8361
8361
  let g = this.fields[f];
8362
- !g || Le.isRef(g) || c.push(g.asNestedTest({
8362
+ !g || Me.isRef(g) || c.push(g.asNestedTest({
8363
8363
  options: n,
8364
8364
  key: f,
8365
8365
  parent: l,
@@ -9995,7 +9995,7 @@ function fo({
9995
9995
  function rd() {
9996
9996
  return Je(co);
9997
9997
  }
9998
- function _e(t, e) {
9998
+ function Pe(t, e) {
9999
9999
  return e.split(".").reduce((n, i) => {
10000
10000
  if (!(n == null || typeof n != "object"))
10001
10001
  return n[i];
@@ -10012,7 +10012,7 @@ function pn(t) {
10012
10012
  }
10013
10013
  return !0;
10014
10014
  }
10015
- const Or = "_conditionConfig";
10015
+ const Or = "_conditionConfig", id = "_formulaConfig";
10016
10016
  function Fr({
10017
10017
  handleRef: t,
10018
10018
  onSave: e,
@@ -10036,55 +10036,62 @@ function Fr({
10036
10036
  setValues: (o) => r.current.setValues(o)
10037
10037
  }), []), null;
10038
10038
  }
10039
- function id({
10039
+ function od({
10040
10040
  conditionConfigKey: t,
10041
- explicitConditionConfig: e,
10042
- explicitOnConditionConfigChange: n,
10043
- formulaConfig: i,
10044
- onFormulaConfigChange: r,
10045
- children: a
10041
+ formulaConfigKey: e,
10042
+ explicitConditionConfig: n,
10043
+ explicitOnConditionConfigChange: i,
10044
+ explicitFormulaConfig: r,
10045
+ explicitOnFormulaConfigChange: a,
10046
+ children: o
10046
10047
  }) {
10047
- const o = Gt(), u = e ?? _e(o.values, t) ?? {};
10048
+ const u = Gt(), s = n ?? Pe(u.values, t) ?? {}, l = (g) => {
10049
+ if (i) {
10050
+ i(g);
10051
+ return;
10052
+ }
10053
+ u.setFieldValue(t, g, !1);
10054
+ }, c = r ?? Pe(u.values, e) ?? {};
10048
10055
  return /* @__PURE__ */ d(
10049
10056
  fo,
10050
10057
  {
10051
- conditionConfig: u,
10052
- onConditionConfigChange: (l) => {
10053
- if (n) {
10054
- n(l);
10058
+ conditionConfig: s,
10059
+ onConditionConfigChange: l,
10060
+ formulaConfig: c,
10061
+ onFormulaConfigChange: (g) => {
10062
+ if (a) {
10063
+ a(g);
10055
10064
  return;
10056
10065
  }
10057
- o.setFieldValue(t, l, !1);
10066
+ u.setFieldValue(e, g, !1);
10058
10067
  },
10059
- formulaConfig: i,
10060
- onFormulaConfigChange: r,
10061
- children: a
10068
+ children: o
10062
10069
  }
10063
10070
  );
10064
10071
  }
10065
- function od({ onValuesChange: t }) {
10072
+ function ad({ onValuesChange: t }) {
10066
10073
  const { values: e } = Gt();
10067
10074
  return q(() => {
10068
10075
  t(e);
10069
10076
  }, [e, t]), null;
10070
10077
  }
10071
- function ad({ onValidityChange: t }) {
10078
+ function sd({ onValidityChange: t }) {
10072
10079
  const { isValid: e } = Gt();
10073
10080
  return q(() => {
10074
10081
  t(e);
10075
10082
  }, [e, t]), null;
10076
10083
  }
10077
- const sd = Tt(function(e, n) {
10078
- var f;
10084
+ const ld = Tt(function(e, n) {
10085
+ var s;
10079
10086
  if ("form" in e && e.form) {
10080
- const { form: g } = e;
10081
- return /* @__PURE__ */ d(Ln, { value: g._formik, children: /* @__PURE__ */ E(
10087
+ const { form: l } = e;
10088
+ return /* @__PURE__ */ d(Ln, { value: l._formik, children: /* @__PURE__ */ E(
10082
10089
  fo,
10083
10090
  {
10084
- formulaConfig: g._formulaConfig,
10085
- onFormulaConfigChange: g._onFormulaConfigChange,
10086
- conditionConfig: g._conditionConfig,
10087
- onConditionConfigChange: g._onConditionConfigChange,
10091
+ formulaConfig: l._formulaConfig,
10092
+ onFormulaConfigChange: l._onFormulaConfigChange,
10093
+ conditionConfig: l._conditionConfig,
10094
+ onConditionConfigChange: l._onConditionConfigChange,
10088
10095
  children: [
10089
10096
  /* @__PURE__ */ d(
10090
10097
  Fr,
@@ -10093,69 +10100,70 @@ const sd = Tt(function(e, n) {
10093
10100
  conditionConfigKey: Or
10094
10101
  }
10095
10102
  ),
10096
- /* @__PURE__ */ d(wr, { schema: g._schema, formik: g._formik })
10103
+ /* @__PURE__ */ d(wr, { schema: l._schema, formik: l._formik })
10097
10104
  ]
10098
10105
  }
10099
10106
  ) });
10100
10107
  }
10101
- const [i, r] = W({}), a = e.conditionConfigKey ?? Or, o = e.formulaConfig ?? i, u = e.onFormulaConfigChange ?? r, s = (g) => /* @__PURE__ */ E(Te, { children: [
10108
+ const i = e.conditionConfigKey ?? Or, r = e.formulaConfigKey ?? id, a = (l) => /* @__PURE__ */ E(Te, { children: [
10102
10109
  /* @__PURE__ */ d(
10103
10110
  Fr,
10104
10111
  {
10105
10112
  handleRef: n,
10106
10113
  onSave: e.onSave,
10107
- conditionConfigKey: a
10114
+ conditionConfigKey: i
10108
10115
  }
10109
10116
  ),
10110
10117
  /* @__PURE__ */ d(
10111
- id,
10118
+ od,
10112
10119
  {
10113
- conditionConfigKey: a,
10120
+ conditionConfigKey: i,
10121
+ formulaConfigKey: r,
10114
10122
  explicitConditionConfig: e.conditionConfig,
10115
10123
  explicitOnConditionConfigChange: e.onConditionConfigChange,
10116
- formulaConfig: o,
10117
- onFormulaConfigChange: u,
10118
- children: g
10124
+ explicitFormulaConfig: e.formulaConfig,
10125
+ explicitOnFormulaConfigChange: e.onFormulaConfigChange,
10126
+ children: l
10119
10127
  }
10120
10128
  )
10121
10129
  ] });
10122
- let c = e.formik ? /* @__PURE__ */ d(Ln, { value: e.formik, children: s(
10130
+ let u = e.formik ? /* @__PURE__ */ d(Ln, { value: e.formik, children: a(
10123
10131
  /* @__PURE__ */ d(wr, { schema: e.schema, formik: e.formik })
10124
10132
  ) }) : /* @__PURE__ */ d(
10125
10133
  Io,
10126
10134
  {
10127
10135
  initialValues: e.initialValues,
10128
10136
  onSubmit: e.onSubmit,
10129
- validationSchema: e.validationSchema ?? ((f = e.schema) != null && f.fields ? Pn(e.schema.fields) : void 0),
10137
+ validationSchema: e.validationSchema ?? ((s = e.schema) != null && s.fields ? Pn(e.schema.fields) : void 0),
10130
10138
  initialTouched: e.initialTouched,
10131
10139
  validateOnMount: !!e.initialTouched,
10132
10140
  enableReinitialize: !0,
10133
10141
  validateOnChange: !0,
10134
10142
  validateOnBlur: !0,
10135
- children: ({ values: g, errors: p, touched: m, isSubmitting: b, setFieldValue: h, setFieldTouched: v }) => {
10136
- var A;
10143
+ children: ({ values: l, errors: c, touched: f, isSubmitting: g, setFieldValue: p, setFieldTouched: m }) => {
10144
+ var b;
10137
10145
  return /* @__PURE__ */ E(yo, { id: e.formId, children: [
10138
- e.onValuesChange && /* @__PURE__ */ d(od, { onValuesChange: e.onValuesChange }),
10139
- e.onValidityChange && /* @__PURE__ */ d(ad, { onValidityChange: e.onValidityChange }),
10140
- s(
10146
+ e.onValuesChange && /* @__PURE__ */ d(ad, { onValuesChange: e.onValuesChange }),
10147
+ e.onValidityChange && /* @__PURE__ */ d(sd, { onValidityChange: e.onValidityChange }),
10148
+ a(
10141
10149
  /* @__PURE__ */ d(
10142
10150
  po,
10143
10151
  {
10144
10152
  schema: e.schema,
10145
- values: g,
10146
- errors: p,
10147
- touched: m,
10148
- setFieldValue: h,
10149
- setFieldTouched: v
10153
+ values: l,
10154
+ errors: c,
10155
+ touched: f,
10156
+ setFieldValue: p,
10157
+ setFieldTouched: m
10150
10158
  }
10151
10159
  )
10152
10160
  ),
10153
- (A = e.children) == null ? void 0 : A.call(e, { isSubmitting: b })
10161
+ (b = e.children) == null ? void 0 : b.call(e, { isSubmitting: g })
10154
10162
  ] });
10155
10163
  }
10156
10164
  }
10157
10165
  );
10158
- return e.variableGroups && (c = /* @__PURE__ */ d(Qo, { groups: e.variableGroups, children: c })), "optionsResolvers" in e && e.optionsResolvers && (c = /* @__PURE__ */ d(ou, { resolvers: e.optionsResolvers, children: c })), /* @__PURE__ */ d(Te, { children: c });
10166
+ return e.variableGroups && (u = /* @__PURE__ */ d(Qo, { groups: e.variableGroups, children: u })), "optionsResolvers" in e && e.optionsResolvers && (u = /* @__PURE__ */ d(ou, { resolvers: e.optionsResolvers, children: u })), /* @__PURE__ */ d(Te, { children: u });
10159
10167
  });
10160
10168
  function wr({
10161
10169
  schema: t,
@@ -10173,7 +10181,7 @@ function wr({
10173
10181
  }
10174
10182
  );
10175
10183
  }
10176
- class ld extends Tr {
10184
+ class ud extends Tr {
10177
10185
  constructor() {
10178
10186
  super(...arguments), this.state = { error: null };
10179
10187
  }
@@ -10195,7 +10203,7 @@ function po({
10195
10203
  const u = (t.layout ?? "flat") === "flat" ? t.fields ?? [] : [], s = t.compact ?? !1;
10196
10204
  return /* @__PURE__ */ d("div", { className: "ff-form-grid", children: u.map((l) => {
10197
10205
  const c = oo(l);
10198
- return /* @__PURE__ */ d(ld, { fieldId: c, children: /* @__PURE__ */ d(
10206
+ return /* @__PURE__ */ d(ud, { fieldId: c, children: /* @__PURE__ */ d(
10199
10207
  mt,
10200
10208
  {
10201
10209
  field: l,
@@ -10243,7 +10251,7 @@ function mt({
10243
10251
  return q(() => {
10244
10252
  const y = I.current;
10245
10253
  if (I.current = x, !x || y === !0 || !t.clearOnHide) return;
10246
- const R = _e(h.current, e);
10254
+ const R = Pe(h.current, e);
10247
10255
  R == null || R === "" || Array.isArray(R) && R.length === 0 || o(e, t.defaultValue);
10248
10256
  }, [x, e, t.clearOnHide, t.defaultValue, o]), x ? null : t.type === "object" ? /* @__PURE__ */ d(Ke, { field: t, compact: s, children: /* @__PURE__ */ d(
10249
10257
  jc,
@@ -10280,7 +10288,7 @@ function mt({
10280
10288
  Pt,
10281
10289
  {
10282
10290
  field: t,
10283
- value: _e(i, e),
10291
+ value: Pe(i, e),
10284
10292
  values: i,
10285
10293
  onChange: (y) => o(e, y),
10286
10294
  onBlur: () => u(e, !0),
@@ -10340,7 +10348,7 @@ function mt({
10340
10348
  )
10341
10349
  }
10342
10350
  ) }) : /* @__PURE__ */ d(
10343
- ud,
10351
+ cd,
10344
10352
  {
10345
10353
  field: t,
10346
10354
  pathPrefix: e,
@@ -10359,7 +10367,7 @@ function mt({
10359
10367
  }
10360
10368
  );
10361
10369
  }
10362
- function ud({
10370
+ function cd({
10363
10371
  field: t,
10364
10372
  pathPrefix: e,
10365
10373
  values: n,
@@ -10376,7 +10384,7 @@ function ud({
10376
10384
  onConditionConfigChange: p
10377
10385
  }) {
10378
10386
  var L, B, F;
10379
- const m = { values: n, item: l }, b = _e(n, e), h = z(t.compute);
10387
+ const m = { values: n, item: l }, b = Pe(n, e), h = z(t.compute);
10380
10388
  h.current = t.compute, q(() => {
10381
10389
  const V = h.current;
10382
10390
  if (!V) return;
@@ -10386,7 +10394,7 @@ function ud({
10386
10394
  const v = te.get(t.type);
10387
10395
  if (!v)
10388
10396
  return null;
10389
- const A = typeof t.disabled == "function" ? t.disabled(m) : ((L = t.shouldDisable) == null ? void 0 : L.call(t, m)) ?? t.disabled ?? !1, x = _e(i, e), I = !!_e(r, e), C = (B = t.compute) == null ? void 0 : B.call(t, m), y = C !== void 0 ? C : b, R = (F = t.transform) != null && F.in ? t.transform.in(y) : y, O = (V) => {
10397
+ const A = typeof t.disabled == "function" ? t.disabled(m) : ((L = t.shouldDisable) == null ? void 0 : L.call(t, m)) ?? t.disabled ?? !1, x = Pe(i, e), I = !!Pe(r, e), C = (B = t.compute) == null ? void 0 : B.call(t, m), y = C !== void 0 ? C : b, R = (F = t.transform) != null && F.in ? t.transform.in(y) : y, O = (V) => {
10390
10398
  var U, $;
10391
10399
  if (t.compute) return;
10392
10400
  const Z = (U = t.transform) != null && U.out ? t.transform.out(V) : V;
@@ -10423,49 +10431,49 @@ function ud({
10423
10431
  )
10424
10432
  ] });
10425
10433
  }
10426
- const Gd = sd;
10434
+ const Bd = ld;
10427
10435
  export {
10428
- wd as A,
10436
+ Td as A,
10429
10437
  rt as B,
10430
- Sd as C,
10431
- Gd as D,
10438
+ Ed as C,
10439
+ Bd as D,
10432
10440
  Mc as E,
10433
10441
  S as F,
10434
10442
  oo as G,
10435
10443
  $c as H,
10436
10444
  Zu as I,
10437
10445
  Y as J,
10438
- Td as K,
10446
+ Gd as K,
10439
10447
  _u as L,
10440
10448
  ou as O,
10441
10449
  kc as T,
10442
- Fd as V,
10450
+ wd as V,
10443
10451
  ma as _,
10444
10452
  Hc as a,
10445
- sd as b,
10453
+ ld as b,
10446
10454
  Qr as c,
10447
10455
  Qo as d,
10448
- Ad as e,
10456
+ Rd as e,
10449
10457
  _r as f,
10450
- yd as g,
10458
+ xd as g,
10451
10459
  Xr as h,
10452
- Id as i,
10460
+ yd as i,
10453
10461
  Wr as j,
10454
10462
  Pn as k,
10455
10463
  pe as l,
10456
10464
  ko as m,
10457
10465
  te as n,
10458
- Cd as o,
10466
+ Ad as o,
10459
10467
  ce as p,
10460
- vd as q,
10461
- Rd as r,
10468
+ Id as q,
10469
+ Sd as r,
10462
10470
  Ve as s,
10463
10471
  De as t,
10464
10472
  It as u,
10465
- xd as v,
10466
- Od as w,
10473
+ Cd as v,
10474
+ Fd as w,
10467
10475
  jo as x,
10468
- Ed as y,
10476
+ Od as y,
10469
10477
  su as z
10470
10478
  };
10471
- //# sourceMappingURL=index-tyzgIY9U.js.map
10479
+ //# sourceMappingURL=index-B-D9UuLO.js.map