@oliasoft-open-source/react-ui-library 7.5.2-beta-3 → 7.6.0-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4163,35 +4163,11 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4163
4163
  testId: a
4164
4164
  })
4165
4165
  });
4166
- }, Bl = (e) => e.type === Rl.INPUT || e.type === Rl.NUMBER_INPUT, Vl = ({ event: e, rowIndex: t, cellIndex: n }) => ({
4167
- ...e,
4168
- target: {
4169
- ...e.target,
4170
- rowIndex: t,
4171
- cellIndex: n
4172
- }
4173
- }), Hl = ({ cell: e, rowIndex: t, cellIndex: n }) => {
4174
- if (!Bl(e) || typeof e.onChange != "function") return e;
4175
- let r = e.onChange;
4176
- return {
4177
- ...e,
4178
- onChange: (e) => {
4179
- r(Vl({
4180
- event: e,
4181
- rowIndex: t,
4182
- cellIndex: n
4183
- }));
4184
- }
4185
- };
4186
- }, Ul = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
4166
+ }, Bl = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
4187
4167
  let p = fl(a, n, t), { onRowClick: m, onRowFocus: h, onRowMouseEnter: g, onRowMouseLeave: _, expandedContent: v, error: C, warning: w, active: T } = e, E = e.cells.map((e, r) => {
4188
- let i = `${+!n}_${t}_${r}`, a = n ? e : Hl({
4189
- cell: e,
4190
- rowIndex: t,
4191
- cellIndex: r
4192
- });
4168
+ let i = `${+!n}_${t}_${r}`;
4193
4169
  return /* @__PURE__ */ x(zl, {
4194
- cell: a,
4170
+ cell: e,
4195
4171
  isHeader: n,
4196
4172
  columnAlignment: o[r],
4197
4173
  columnHeaderAlignment: p[r],
@@ -4261,7 +4237,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4261
4237
  flush: v.flush === !0,
4262
4238
  children: v.content
4263
4239
  }, `${t}_expanded_content`) : null] });
4264
- }, Wl = (e) => {
4240
+ }, Vl = (e) => {
4265
4241
  let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, f] = _(null), [p, h] = _(!1), g = m(() => l.map((e, t) => t.toString()), [l]);
4266
4242
  return a ? /* @__PURE__ */ S(Fr, {
4267
4243
  collisionDetection: Lr,
@@ -4296,7 +4272,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4296
4272
  dropAnimation: null,
4297
4273
  children: /* @__PURE__ */ x("table", {
4298
4274
  className: y(Vs.table, Vs.dragOverlay),
4299
- children: /* @__PURE__ */ x("tbody", { children: /* @__PURE__ */ x(Ul, {
4275
+ children: /* @__PURE__ */ x("tbody", { children: /* @__PURE__ */ x(Bl, {
4300
4276
  rowIndex: Number(d),
4301
4277
  row: l[Number(d)],
4302
4278
  columnCount: i,
@@ -4316,7 +4292,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4316
4292
  })
4317
4293
  }), document.body)]
4318
4294
  }) : t({});
4319
- }, Gl = ({ table: e, children: t }) => {
4295
+ }, Hl = ({ table: e, children: t }) => {
4320
4296
  var n, r, i;
4321
4297
  let a = g(null), o = Rr({
4322
4298
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
@@ -4339,7 +4315,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4339
4315
  })()
4340
4316
  })
4341
4317
  });
4342
- }, Kl = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
4318
+ }, Ul = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
4343
4319
  if (t && !(e == null || e < 0)) {
4344
4320
  if (n && r) r.scrollToIndex(e, {
4345
4321
  behavior: "auto",
@@ -4358,11 +4334,11 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4358
4334
  t,
4359
4335
  n,
4360
4336
  r
4361
- ]), null), ql = ({ table: e, children: t }) => {
4337
+ ]), null), Wl = ({ table: e, children: t }) => {
4362
4338
  let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = m(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
4363
- return n ? /* @__PURE__ */ x(Gl, {
4339
+ return n ? /* @__PURE__ */ x(Hl, {
4364
4340
  table: e,
4365
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Kl, {
4341
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Ul, {
4366
4342
  isVirtualized: !0,
4367
4343
  virtualizer: e,
4368
4344
  activeIndex: a,
@@ -4374,13 +4350,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4374
4350
  }) : /* @__PURE__ */ S("div", {
4375
4351
  id: "scrollWrapper",
4376
4352
  className: Vs.scroll,
4377
- children: [/* @__PURE__ */ x(Kl, {
4353
+ children: [/* @__PURE__ */ x(Ul, {
4378
4354
  isVirtualized: !1,
4379
4355
  activeIndex: a,
4380
4356
  triggerScrollToActiveRow: r
4381
4357
  }), t({})]
4382
4358
  });
4383
- }, Jl = (e) => {
4359
+ }, Gl = (e) => {
4384
4360
  var t, n, r, i, a;
4385
4361
  let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: m, actionsRight: h, columnHeaderAlignments: _, columnAlignment: v, striped: b = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = g(null), j = an(e, "table.headers", []), M = ol(p, j), N = cl(p, j), P = M + +!!N, F = !d || (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value), I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
4386
4362
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -4419,7 +4395,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4419
4395
  name: f,
4420
4396
  testId: C && `${C}-title`
4421
4397
  }),
4422
- /* @__PURE__ */ x(Wl, {
4398
+ /* @__PURE__ */ x(Vl, {
4423
4399
  colSpan: P,
4424
4400
  columnAlignment: v,
4425
4401
  columnCount: M,
@@ -4429,13 +4405,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4429
4405
  rows: R,
4430
4406
  tbodyRef: A,
4431
4407
  canListReorder: s,
4432
- children: ({ dropDisabled: e }) => /* @__PURE__ */ x(ql, {
4408
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ x(Wl, {
4433
4409
  table: z,
4434
4410
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ S("table", {
4435
4411
  className: y(Vs.table, b ? Vs.striped : ""),
4436
4412
  "data-testid": C,
4437
4413
  style: n,
4438
- children: [/* @__PURE__ */ x("thead", { children: j.map((e, t) => /* @__PURE__ */ x(Ul, {
4414
+ children: [/* @__PURE__ */ x("thead", { children: j.map((e, t) => /* @__PURE__ */ x(Bl, {
4439
4415
  rowIndex: t,
4440
4416
  isHeader: !0,
4441
4417
  row: e,
@@ -4453,7 +4429,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4453
4429
  row: r,
4454
4430
  rowIndex: n
4455
4431
  }) : r;
4456
- return /* @__PURE__ */ x(Ul, {
4432
+ return /* @__PURE__ */ x(Bl, {
4457
4433
  rowIndex: n,
4458
4434
  row: i,
4459
4435
  columnCount: M,
@@ -4470,7 +4446,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4470
4446
  row: t,
4471
4447
  rowIndex: n
4472
4448
  }) : t;
4473
- return /* @__PURE__ */ x(Ul, {
4449
+ return /* @__PURE__ */ x(Bl, {
4474
4450
  rowIndex: n,
4475
4451
  row: r,
4476
4452
  columnCount: M,
@@ -4493,14 +4469,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4493
4469
  })
4494
4470
  ]
4495
4471
  });
4496
- }, Yl = "blank", Xl = 1e4, Zl = (e, t, n, r) => {
4472
+ }, Kl = "blank", ql = 1e4, Jl = (e, t, n, r) => {
4497
4473
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4498
4474
  return {
4499
4475
  updatedErrors: o,
4500
4476
  isValid: o.length === 0
4501
4477
  };
4502
- }, Ql = 20, $l = 1, eu = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4503
- let i = m(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = _(Ql), [s, c] = _($l), u = g([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [h, v] = _([]), y = m(() => {
4478
+ }, Yl = 20, Xl = 1, Zl = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4479
+ let i = m(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = _(Yl), [s, c] = _(Xl), u = g([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [h, v] = _([]), y = m(() => {
4504
4480
  let n = e.filter((e) => !e.optionalColumn);
4505
4481
  return t.fields.length === n.length ? n : e;
4506
4482
  }, [e, t.fields.length]), b = l((e, r) => (!u.current.length && t.rows.length && (u.current = t.rows[0].map((e) => Vc(e) ? "NumberInput" : "Input")), {
@@ -4514,7 +4490,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4514
4490
  disableValidationOnFocus: !0,
4515
4491
  error: x,
4516
4492
  validationCallback: (e, i) => {
4517
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Zl(t.errors, a, e, i);
4493
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Jl(t.errors, a, e, i);
4518
4494
  n({ parsedResult: {
4519
4495
  ...t,
4520
4496
  errors: o,
@@ -4523,7 +4499,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4523
4499
  },
4524
4500
  onChange: (e) => {
4525
4501
  var i;
4526
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Zl(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4502
+ let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Jl(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4527
4503
  n({ parsedResult: {
4528
4504
  ...t,
4529
4505
  rows: d,
@@ -4565,7 +4541,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4565
4541
  ]);
4566
4542
  let S = m(() => t.fields.map((e, r) => {
4567
4543
  var a, o, s;
4568
- let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => xn(e) === Yl);
4544
+ let c = y == null ? void 0 : y[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => xn(e) === Kl);
4569
4545
  if (!l.length || u) return {};
4570
4546
  let d = t == null || (a = t.units) == null ? void 0 : a[r], f = xn(d), p = l != null && l.some((e) => xn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
4571
4547
  return {
@@ -4613,7 +4589,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4613
4589
  b,
4614
4590
  f
4615
4591
  ]);
4616
- return /* @__PURE__ */ x(Jl, {
4592
+ return /* @__PURE__ */ x(Gl, {
4617
4593
  beforeRenderRow: E,
4618
4594
  onListReorder: ({ from: e, to: r }) => {
4619
4595
  let i = [...t.rows], [a] = i.splice(e, 1);
@@ -4676,7 +4652,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4676
4652
  } }
4677
4653
  }
4678
4654
  });
4679
- }, tu = { listStyle: "_listStyle_yjfjw_1" }, nu = ({ errors: e, t }) => {
4655
+ }, Ql = { listStyle: "_listStyle_yjfjw_1" }, $l = ({ errors: e, t }) => {
4680
4656
  var n;
4681
4657
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4682
4658
  let n = (e) => {
@@ -4692,18 +4668,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4692
4668
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4693
4669
  type: "Error",
4694
4670
  details: /* @__PURE__ */ x("ul", {
4695
- className: tu.listStyle,
4671
+ className: Ql.listStyle,
4696
4672
  children: r.map((e, t) => /* @__PURE__ */ x("li", { children: e }, t))
4697
4673
  })
4698
4674
  };
4699
- }, ru = ({ errors: e, t }) => e.length ? /* @__PURE__ */ x(Bs, { message: nu({
4675
+ }, eu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ x(Bs, { message: $l({
4700
4676
  errors: e,
4701
4677
  t
4702
- }) }) : null, iu = {
4678
+ }) }) : null, tu = {
4703
4679
  empty: "_empty_fe425_1",
4704
4680
  text: "_text_fe425_11"
4705
- }, au = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ S("div", {
4706
- className: iu.empty,
4681
+ }, nu = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ S("div", {
4682
+ className: tu.empty,
4707
4683
  style: {
4708
4684
  width: e,
4709
4685
  height: t
@@ -4739,7 +4715,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4739
4715
  })
4740
4716
  }),
4741
4717
  n !== "" && /* @__PURE__ */ x("div", {
4742
- className: iu.text,
4718
+ className: tu.text,
4743
4719
  children: /* @__PURE__ */ x(Uo, {
4744
4720
  faint: !0,
4745
4721
  children: n
@@ -4747,52 +4723,52 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4747
4723
  }),
4748
4724
  r
4749
4725
  ]
4750
- }), ou = (e) => {
4726
+ }), ru = (e) => {
4751
4727
  var t;
4752
4728
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4753
4729
  let t = e == null ? void 0 : e.match(/[.,]/g);
4754
4730
  return t && t.length > 1;
4755
4731
  });
4756
- }, su = (e) => {
4732
+ }, iu = (e) => {
4757
4733
  var t;
4758
4734
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4759
4735
  var t;
4760
4736
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4761
4737
  });
4762
- }, cu = (e, t, n) => e >= t - n, lu = (e) => !!e && e !== "blank" && e.trim() !== "", uu = (e, t, n, r, i, a, o) => {
4738
+ }, au = (e, t, n) => e >= t - n, ou = (e) => !!e && e !== "blank" && e.trim() !== "", su = (e, t, n, r, i, a, o) => {
4763
4739
  let s = [], c = r.filter((e) => e.optionalColumn).length, l = r.length, u = c ? `${l - c} or ${l}` : `${l}`, d = i && a ? 2 : i || a ? 1 : 0;
4764
- if (i && !cu(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4740
+ if (i && !au(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4765
4741
  var f, p;
4766
4742
  let e = r.filter((e) => {
4767
4743
  var t;
4768
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(lu));
4744
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(ou));
4769
4745
  }).length;
4770
- cu(t == null || (f = t.filter(lu)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4746
+ au(t == null || (f = t.filter(ou)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4771
4747
  }
4772
4748
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4773
4749
  expectedLengthMessage: u,
4774
4750
  dataRowStartIndex: d
4775
4751
  })) : n.forEach((e, t) => {
4776
- cu(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4752
+ au(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4777
4753
  expectedLengthMessage: u,
4778
4754
  dataRowStartIndex: d + t
4779
4755
  }));
4780
4756
  }), s;
4781
- }, du = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), fu = ({ value: e, defaultAllowedValues: t }) => {
4757
+ }, cu = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), lu = ({ value: e, defaultAllowedValues: t }) => {
4782
4758
  var n;
4783
- let r = du(e);
4784
- return (n = t == null ? void 0 : t.some((e) => du(e).includes(r) || r.includes(du(e)))) != null && n;
4785
- }, pu = ({ value: e, defaultAllowedValues: t }) => {
4759
+ let r = cu(e);
4760
+ return (n = t == null ? void 0 : t.some((e) => cu(e).includes(r) || r.includes(cu(e)))) != null && n;
4761
+ }, uu = ({ value: e, defaultAllowedValues: t }) => {
4786
4762
  var n;
4787
4763
  return (n = t == null ? void 0 : t.includes(e)) != null && n;
4788
- }, mu = (e, t, n, r, i, a) => {
4764
+ }, du = (e, t, n, r, i, a) => {
4789
4765
  let o = [];
4790
4766
  if (r) {
4791
4767
  let r = n.map((e) => e.fieldName).filter(Boolean);
4792
4768
  e.forEach((i, s) => {
4793
4769
  var c, l;
4794
4770
  let u = n[s];
4795
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? fu : c)({
4771
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? lu : c)({
4796
4772
  value: i,
4797
4773
  defaultAllowedValues: r,
4798
4774
  columnIndex: s,
@@ -4814,7 +4790,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4814
4790
  var l, u;
4815
4791
  let d = n[c];
4816
4792
  if (!d || d != null && d.optionalColumn) return;
4817
- let f = (l = d.unitsValidator) == null ? pu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4793
+ let f = (l = d.unitsValidator) == null ? uu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4818
4794
  f({
4819
4795
  value: r,
4820
4796
  defaultAllowedValues: p,
@@ -4830,7 +4806,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4830
4806
  });
4831
4807
  }
4832
4808
  return o;
4833
- }, hu = (e, t, n) => {
4809
+ }, fu = (e, t, n) => {
4834
4810
  let r = [];
4835
4811
  return e.forEach((e, i) => {
4836
4812
  e.forEach((e, a) => {
@@ -4843,91 +4819,91 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4843
4819
  })}`);
4844
4820
  });
4845
4821
  }), r;
4846
- }, gu = (e, t, n, r, i, a, o) => {
4847
- let s = uu(e, t, n, r, i, a, o);
4848
- return s.length === 0 && (s = s.concat(mu(e, t, r, i, a, o), hu(n, r, o))), {
4822
+ }, pu = (e, t, n, r, i, a, o) => {
4823
+ let s = su(e, t, n, r, i, a, o);
4824
+ return s.length === 0 && (s = s.concat(du(e, t, r, i, a, o), fu(n, r, o))), {
4849
4825
  isValid: s.length === 0,
4850
4826
  errors: s
4851
4827
  };
4852
- }, _u = (e, t, n) => {
4828
+ }, mu = (e, t, n) => {
4853
4829
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4854
4830
  let _ = (e) => e.replace(/,/g, "."), v = (r = (i = e[0]) == null ? void 0 : i.some((e) => isNaN(Number(_(e))))) != null && r, y = (a = (o = e[1]) == null ? void 0 : o.some((e) => isNaN(Number(_(e))))) != null && a, b = (s = (c = e[0]) == null ? void 0 : c.some((e) => t.includes(e))) != null && s, x = (l = (u = e[0]) == null ? void 0 : u.some((e) => n.includes(e))) != null && l, S = (d = (f = e[1]) == null ? void 0 : f.some((e) => n.includes(e))) != null && d, C = (p = (m = e[0]) == null ? void 0 : m.some((e) => !isNaN(Number(_(e))))) != null && p, w = (h = (g = e[1]) == null ? void 0 : g.some((e) => !isNaN(Number(_(e))))) != null && h;
4855
4831
  return {
4856
4832
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4857
4833
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4858
4834
  };
4859
- }, vu = (e, { validationRules: t }) => {
4835
+ }, hu = (e, { validationRules: t }) => {
4860
4836
  var n, r, i;
4861
4837
  let a = (t == null ? void 0 : t.length) === ((n = e == null || (r = e[0]) == null ? void 0 : r.length) == null ? 0 : n) ? t : t == null ? void 0 : t.filter((e) => !(e != null && e.optionalColumn)), o = a == null ? void 0 : a.map((e) => e == null ? void 0 : e.fieldName), s = (e) => Array.isArray(e) && e.length ? e[0] : "", c = a == null ? void 0 : a.map((e) => {
4862
4838
  var t;
4863
4839
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4864
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = _u(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4840
+ }), { hasFieldNameHeader: l, hasUnitHeader: u } = mu(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4865
4841
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4866
4842
  hasFieldNameHeader: l,
4867
4843
  hasUnitHeader: u
4868
4844
  };
4869
- }, yu = (e) => Math.round(e * 100) / 100, bu = (e) => e.join(", ").replace(/,\s*$/, ""), xu = {
4845
+ }, gu = (e) => Math.round(e * 100) / 100, _u = (e) => e.join(", ").replace(/,\s*$/, ""), vu = {
4870
4846
  skipEmptyLines: !0,
4871
4847
  delimiter: (e) => {
4872
4848
  var t, n;
4873
4849
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4874
4850
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4875
4851
  }
4876
- }, Su = [
4852
+ }, yu = [
4877
4853
  "text/csv",
4878
4854
  "text/plain",
4879
4855
  "application/json",
4880
4856
  "application/vnd.ms-excel"
4881
- ], Cu = (e) => Su.includes(e.type), wu = (e) => e instanceof File, Tu = (e) => e.trim().startsWith("["), Eu = (e) => {
4857
+ ], bu = (e) => yu.includes(e.type), xu = (e) => e instanceof File, Su = (e) => e.trim().startsWith("["), Cu = (e) => {
4882
4858
  try {
4883
4859
  var t;
4884
4860
  return !!((t = JSON.parse(e)) != null && t.path);
4885
4861
  } catch {
4886
4862
  return !1;
4887
4863
  }
4888
- }, Du = (e) => new Promise((t, n) => {
4864
+ }, wu = (e) => new Promise((t, n) => {
4889
4865
  let r = new FileReader();
4890
4866
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4891
- }), Ou = async (e, t, n) => {
4867
+ }), Tu = async (e, t, n) => {
4892
4868
  try {
4893
- return Fu({
4869
+ return Mu({
4894
4870
  data: JSON.parse(e),
4895
4871
  errors: []
4896
4872
  }, t, n);
4897
4873
  } catch (e) {
4898
4874
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4899
4875
  }
4900
- }, ku = async (e, t, n) => {
4876
+ }, Eu = async (e, t, n) => {
4901
4877
  try {
4902
4878
  let r = JSON.parse(e).path.map((e) => [
4903
- yu(e.md),
4904
- yu(e.inclination),
4905
- yu(e.gridAzimuth)
4879
+ gu(e.md),
4880
+ gu(e.inclination),
4881
+ gu(e.gridAzimuth)
4906
4882
  ]);
4907
4883
  return r.unshift([
4908
4884
  "m",
4909
4885
  "deg",
4910
4886
  "deg"
4911
- ]), Fu({
4887
+ ]), Mu({
4912
4888
  data: r,
4913
4889
  errors: []
4914
4890
  }, t, n);
4915
4891
  } catch (e) {
4916
4892
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4917
4893
  }
4918
- }, Au = (e) => e.replace(",", "."), ju = (e) => e.map((e) => e.map((e) => Au(e))), Mu = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4894
+ }, Du = (e) => e.replace(",", "."), Ou = (e) => e.map((e) => e.map((e) => Du(e))), ku = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4919
4895
  zr.parse(e, {
4920
- ...xu,
4896
+ ...vu,
4921
4897
  preview: t,
4922
4898
  complete: (e) => {
4923
- let a = Fu(e, {
4899
+ let a = Mu(e, {
4924
4900
  importLimit: t,
4925
4901
  ...n
4926
4902
  }, r);
4927
- a.rows = ju(a.rows), i(a);
4903
+ a.rows = Ou(a.rows), i(a);
4928
4904
  }
4929
4905
  });
4930
- }), Nu = async (e, t, n) => {
4906
+ }), Au = async (e, t, n) => {
4931
4907
  let r = {
4932
4908
  isValid: !1,
4933
4909
  fields: [],
@@ -4936,13 +4912,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4936
4912
  errors: []
4937
4913
  };
4938
4914
  try {
4939
- if (wu(e) && !Cu(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${bu(Array.from(Su))}`), r;
4940
- let i = wu(e) ? await Du(e) : e;
4941
- return Tu(i) ? await Ou(i, t, n) : Eu(i) ? await ku(i, t, n) : await Mu(e, t, n);
4915
+ if (xu(e) && !bu(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${_u(Array.from(yu))}`), r;
4916
+ let i = xu(e) ? await wu(e) : e;
4917
+ return Su(i) ? await Tu(i, t, n) : Cu(i) ? await Eu(i, t, n) : await ku(e, t, n);
4942
4918
  } catch (e) {
4943
4919
  return r.errors.push(e.message), r;
4944
4920
  }
4945
- }, Pu = (e, t, n, r) => {
4921
+ }, ju = (e, t, n, r) => {
4946
4922
  var i;
4947
4923
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4948
4924
  e,
@@ -4954,7 +4930,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4954
4930
  header: !0,
4955
4931
  delimiter: a
4956
4932
  });
4957
- }, Fu = (e, t, n) => {
4933
+ }, Mu = (e, t, n) => {
4958
4934
  let { data: r, errors: i } = e, a = {
4959
4935
  isValid: !1,
4960
4936
  fields: [],
@@ -4963,22 +4939,22 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4963
4939
  errors: i.map((e) => e.message)
4964
4940
  };
4965
4941
  if (i.length > 0) return a;
4966
- let { hasFieldNameHeader: o, hasUnitHeader: s } = vu(r, t);
4942
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = hu(r, t);
4967
4943
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4968
4944
  let { validationRules: c } = t;
4969
4945
  if (c.length) {
4970
- let { isValid: e, errors: t } = gu(a.fields, a.units, a.rows, c, o, s, n);
4946
+ let { isValid: e, errors: t } = pu(a.fields, a.units, a.rows, c, o, s, n);
4971
4947
  a.errors.push(...t), a.isValid = e && t.length === 0;
4972
4948
  } else a.isValid = a.errors.length === 0;
4973
4949
  return a;
4974
- }, Iu = .001, Lu = 0, Ru = (e, t) => e.every((e) => {
4950
+ }, Nu = .001, Pu = 0, Fu = (e, t) => e.every((e) => {
4975
4951
  let n = e[t];
4976
4952
  return n !== void 0 && n.trim() !== "" && un(hr(n));
4977
- }), zu = (e, t = {}) => {
4953
+ }), Iu = (e, t = {}) => {
4978
4954
  var n, r;
4979
- let { independentColumnIndex: i = Lu, dependentColumnIndexes: a, tolerance: o = Iu } = t;
4980
- if (e.length <= 2 || !Ru(e, i)) return e.slice();
4981
- let s = (n = (r = Hr(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = Wr(a == null ? Ur(s) : a).filter((t) => t !== i && Ru(e, t));
4955
+ let { independentColumnIndex: i = Pu, dependentColumnIndexes: a, tolerance: o = Nu } = t;
4956
+ if (e.length <= 2 || !Fu(e, i)) return e.slice();
4957
+ let s = (n = (r = Hr(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = Wr(a == null ? Ur(s) : a).filter((t) => t !== i && Fu(e, t));
4982
4958
  if (c.length === 0) return e.slice();
4983
4959
  let l = /* @__PURE__ */ new Set();
4984
4960
  for (let t of c) {
@@ -4992,7 +4968,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
4992
4968
  }
4993
4969
  }
4994
4970
  return e.filter((e, t) => l.has(t));
4995
- }, Bu = ({ id: e, message: t = {
4971
+ }, Lu = ({ id: e, message: t = {
4996
4972
  type: Ps.INFO,
4997
4973
  content: ""
4998
4974
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -5033,13 +5009,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5033
5009
  transition: Gr,
5034
5010
  type: s
5035
5011
  });
5036
- }, Vu = (e) => {
5012
+ }, Ru = (e) => {
5037
5013
  qr.dismiss(e);
5038
- }, Hu = (e, t) => {
5014
+ }, zu = (e, t) => {
5039
5015
  t(() => {
5040
- Bu({ ...e });
5016
+ Lu({ ...e });
5041
5017
  });
5042
- }, Uu = {
5018
+ }, Bu = {
5043
5019
  inputInTable: "_inputInTable_h6wco_1",
5044
5020
  inputHover: "_inputHover_h6wco_13",
5045
5021
  inputFocus: "_inputFocus_h6wco_18",
@@ -5055,7 +5031,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5055
5031
  control: "_control_h6wco_25",
5056
5032
  labelText: "_labelText_h6wco_137",
5057
5033
  noMargin: "_noMargin_h6wco_201"
5058
- }, Wu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = _i.CAPITALIZE }) => {
5034
+ }, Vu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = _i.CAPITALIZE }) => {
5059
5035
  let p = u(W), m = l || d;
5060
5036
  return /* @__PURE__ */ S(Yr, {
5061
5037
  name: e,
@@ -5068,14 +5044,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5068
5044
  value: t
5069
5045
  } });
5070
5046
  },
5071
- className: y(Uu.toggleContainer, s && Uu.noMargin),
5047
+ className: y(Bu.toggleContainer, s && Bu.noMargin),
5072
5048
  style: { display: i },
5073
5049
  "data-testid": c ? `${c}-field` : void 0,
5074
5050
  children: [/* @__PURE__ */ S(Jr, {
5075
- className: y(Uu.toggle, a && Uu.small, !t && Uu.noLabel),
5051
+ className: y(Bu.toggle, a && Bu.small, !t && Bu.noLabel),
5076
5052
  "data-testid": c,
5077
- children: [/* @__PURE__ */ x("span", { className: Uu.control }), t && /* @__PURE__ */ x("span", {
5078
- className: Uu.labelText,
5053
+ children: [/* @__PURE__ */ x("span", { className: Bu.control }), t && /* @__PURE__ */ x("span", {
5054
+ className: Bu.labelText,
5079
5055
  style: { textTransform: f },
5080
5056
  children: t
5081
5057
  })]
@@ -5084,7 +5060,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5084
5060
  onClick: d
5085
5061
  })]
5086
5062
  });
5087
- }, Gu = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: s = () => {}, prevalidationConfig: c, t: u, loading: d, startTransition: f, testId: p }) => {
5063
+ }, Hu = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: o = [], onCompleteImport: s = () => {}, prevalidationConfig: c, t: u, loading: d, startTransition: f, testId: p }) => {
5088
5064
  let { modalVisibility: { reviewPasteModal: m, pasteModalHelpVisible: h, helpModal: v } } = t, { warningMessage: y, actionButtonLabel: C, changeRulesAction: w, checkPrevalidationNeed: T } = c == null ? {} : c, E = g(null), [D, O] = _(!1), [k, A] = _({
5089
5065
  pastedText: "",
5090
5066
  parsedResult: {
@@ -5105,10 +5081,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5105
5081
  let { pastedText: j, parsedResult: M } = k, N = l((t) => {
5106
5082
  if (t) {
5107
5083
  var n, r;
5108
- let t = zu(M.rows, e.downsampleConfig), i = {
5084
+ let t = Iu(M.rows, e.downsampleConfig), i = {
5109
5085
  validationRules: o,
5110
- importLimit: (n = e.importLimit) == null ? Xl : n
5111
- }, a = Pu(M.fields, (r = M.units) == null ? [] : r, t, i);
5086
+ importLimit: (n = e.importLimit) == null ? ql : n
5087
+ }, a = ju(M.fields, (r = M.units) == null ? [] : r, t, i);
5112
5088
  f(() => A({
5113
5089
  parsedResult: {
5114
5090
  ...M,
@@ -5141,17 +5117,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5141
5117
  }, F = () => {
5142
5118
  r("helpModal", !v);
5143
5119
  }, I = () => {
5144
- n(k), s(k.parsedResult), i(), Hu({ message: {
5120
+ n(k), s(k.parsedResult), i(), zu({ message: {
5145
5121
  type: "Success",
5146
5122
  content: u("pasteSuccessful")
5147
5123
  } }, f);
5148
- }, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = su(j), ne = ou(j), V = /* @__PURE__ */ S(b, { children: [
5124
+ }, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = iu(j), ne = ru(j), V = /* @__PURE__ */ S(b, { children: [
5149
5125
  /* @__PURE__ */ S("div", {
5150
5126
  className: Ms.headerContainer,
5151
5127
  children: [
5152
5128
  /* @__PURE__ */ x(K, {
5153
5129
  text: u("downsampleTooltip"),
5154
- children: /* @__PURE__ */ x(Wu, {
5130
+ children: /* @__PURE__ */ x(Vu, {
5155
5131
  label: u("downsampled"),
5156
5132
  checked: D,
5157
5133
  onChange: () => N(!D),
@@ -5184,7 +5160,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5184
5160
  }),
5185
5161
  ee ? /* @__PURE__ */ x("div", {
5186
5162
  className: Ms.resultContainer,
5187
- children: /* @__PURE__ */ x(au, {
5163
+ children: /* @__PURE__ */ x(nu, {
5188
5164
  text: null,
5189
5165
  children: /* @__PURE__ */ S("div", {
5190
5166
  className: Ms.emptyState,
@@ -5220,7 +5196,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5220
5196
  }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", {
5221
5197
  className: Ms.messagesContainer,
5222
5198
  children: [
5223
- B ? /* @__PURE__ */ x(ru, {
5199
+ B ? /* @__PURE__ */ x(eu, {
5224
5200
  errors: z,
5225
5201
  t: u
5226
5202
  }) : null,
@@ -5243,7 +5219,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5243
5219
  type: "Warning"
5244
5220
  } })
5245
5221
  ]
5246
- }), /* @__PURE__ */ x(eu, {
5222
+ }), /* @__PURE__ */ x(Zl, {
5247
5223
  validationRules: o,
5248
5224
  parsedResult: M,
5249
5225
  updateState: (e) => A((t) => ({
@@ -5285,7 +5261,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5285
5261
  onClose: i
5286
5262
  } })
5287
5263
  });
5288
- }, Ku = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ x(b, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5264
+ }, Uu = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ x(b, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5289
5265
  var s;
5290
5266
  return /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(a, {
5291
5267
  testId: `${i}-modal-render-${e}`,
@@ -5293,7 +5269,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5293
5269
  onClose: () => r({ name: e }),
5294
5270
  ...o
5295
5271
  }) }, e);
5296
- }) }) : null, qu = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ x(Va, {
5272
+ }) }) : null, Wu = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ x(Va, {
5297
5273
  loading: !0,
5298
5274
  menu: {
5299
5275
  component: /* @__PURE__ */ x(q, {
@@ -5309,18 +5285,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5309
5285
  sections: e
5310
5286
  },
5311
5287
  testId: n
5312
- }), Ju = (e, t, n) => l(async () => {
5288
+ }), Gu = (e, t, n) => l(async () => {
5313
5289
  if (n) try {
5314
5290
  return await n();
5315
5291
  } catch (t) {
5316
- console.error("beforeExportData failed", t), Bu({ message: {
5292
+ console.error("beforeExportData failed", t), Lu({ message: {
5317
5293
  type: "Error",
5318
5294
  content: e("unableToPrepareExportData")
5319
5295
  } });
5320
5296
  return;
5321
5297
  }
5322
5298
  return t;
5323
- }, [t, n]), Yu = {
5299
+ }, [t, n]), Ku = {
5324
5300
  cancel: "Cancel",
5325
5301
  chooseFile: "Choose file",
5326
5302
  copyDecimalComma: "Copy (decimal comma)",
@@ -5379,26 +5355,26 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5379
5355
  smartUpload_description: "Upload image and extract table content using a LLM",
5380
5356
  smartUpload_smartUpload: "Smart Upload",
5381
5357
  toUploadOrImportFromClipboardMessage: "To upload or import from clipboard please select your preferred unit in the table header and upload or paste numbers only for Depth, Inc, Azi. Follow example below"
5382
- }, Xu = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), Zu = (e) => m(() => {
5383
- let t = Object.keys(Yu).reduce((t, n) => {
5384
- let r = Yu == null ? void 0 : Yu[n], i = e == null ? void 0 : e[n];
5358
+ }, qu = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), Ju = (e) => m(() => {
5359
+ let t = Object.keys(Ku).reduce((t, n) => {
5360
+ let r = Ku == null ? void 0 : Ku[n], i = e == null ? void 0 : e[n];
5385
5361
  return t[n] = i == null ? r : i, t;
5386
5362
  }, {});
5387
5363
  return (e, n) => {
5388
5364
  let r = t[e];
5389
- return n ? Xu(r, n) : r;
5365
+ return n ? qu(r, n) : r;
5390
5366
  };
5391
- }, [e]), Qu = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, $u = (e) => {
5367
+ }, [e]), Yu = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Xu = (e) => {
5392
5368
  var t;
5393
5369
  return {
5394
5370
  ...e,
5395
5371
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
5396
5372
  let t = String(e == null ? "" : e);
5397
- return Qu.test(t) ? Zn(t) : t;
5373
+ return Yu.test(t) ? Zn(t) : t;
5398
5374
  }))
5399
5375
  };
5400
- }, ed = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5401
- let { exportData: a, beforeExportData: o, importLimit: s = Xl, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = Zu(u), v = Ju(_, a, o), y = l((e) => {
5376
+ }, Zu = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5377
+ let { exportData: a, beforeExportData: o, importLimit: s = ql, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = Ju(u), v = Gu(_, a, o), y = l((e) => {
5402
5378
  n((t) => ({
5403
5379
  ...t,
5404
5380
  ...e
@@ -5442,9 +5418,9 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5442
5418
  let t = {
5443
5419
  validationRules: c,
5444
5420
  importLimit: s
5445
- }, n = $u(await Nu(e, t, _));
5421
+ }, n = Xu(await Au(e, t, _));
5446
5422
  if (g && g(h)) {
5447
- let { fields: e, units: r, rows: a } = n, o = Pu(e, r == null ? [] : r, a, t);
5423
+ let { fields: e, units: r, rows: a } = n, o = ju(e, r == null ? [] : r, a, t);
5448
5424
  return i(() => y({
5449
5425
  pastedText: o,
5450
5426
  parsedResult: h
@@ -5470,20 +5446,20 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5470
5446
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5471
5447
  try {
5472
5448
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5473
- Hu({ message: {
5449
+ zu({ message: {
5474
5450
  type: "Error",
5475
5451
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5476
5452
  } }, i);
5477
5453
  return;
5478
5454
  }
5479
- let e = $u(await Nu(r, {
5455
+ let e = Xu(await Au(r, {
5480
5456
  validationRules: c,
5481
5457
  importLimit: s
5482
5458
  }, _));
5483
- return e != null && e.isValid || Hu({ message: {
5459
+ return e != null && e.isValid || zu({ message: {
5484
5460
  type: "Error",
5485
5461
  content: _("clipboardReadFailed")
5486
- } }, i), n && Hu({ message: {
5462
+ } }, i), n && zu({ message: {
5487
5463
  type: "Success",
5488
5464
  content: _("pasteSuccessful")
5489
5465
  } }, i), {
@@ -5491,7 +5467,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5491
5467
  parsedResult: e
5492
5468
  };
5493
5469
  } catch (e) {
5494
- Hu({ message: {
5470
+ zu({ message: {
5495
5471
  type: "Error",
5496
5472
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5497
5473
  details: e.message
@@ -5504,10 +5480,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5504
5480
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5505
5481
  if (!n) return;
5506
5482
  let r = await n.text(), a = await C(r);
5507
- a.isValid ? (f || Hu({ message: {
5483
+ a.isValid ? (f || zu({ message: {
5508
5484
  type: "Success",
5509
5485
  content: _("pasteSuccessful")
5510
- } }, i), i(() => d(a))) : Hu({ message: {
5486
+ } }, i), i(() => d(a))) : zu({ message: {
5511
5487
  type: "Error",
5512
5488
  content: _("fileParsingFailed")
5513
5489
  } }, i);
@@ -5521,7 +5497,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5521
5497
  try {
5522
5498
  let t = await navigator.clipboard.readText();
5523
5499
  if (!t) {
5524
- Hu({ message: {
5500
+ zu({ message: {
5525
5501
  type: "Error",
5526
5502
  content: _("clipboardIsEmpty")
5527
5503
  } }, i);
@@ -5529,18 +5505,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5529
5505
  }
5530
5506
  let n = await C(t);
5531
5507
  if (!n.isValid) {
5532
- Hu({ message: {
5508
+ zu({ message: {
5533
5509
  type: "Error",
5534
5510
  content: _("clipboardReadFailed")
5535
5511
  } }, i);
5536
5512
  return;
5537
5513
  }
5538
- f || Hu({ message: {
5514
+ f || zu({ message: {
5539
5515
  type: "Success",
5540
5516
  content: _("pasteSuccessful")
5541
5517
  } }, i), e && i(() => d(n));
5542
5518
  } catch {
5543
- Hu({ message: {
5519
+ zu({ message: {
5544
5520
  type: "Error",
5545
5521
  content: _("clipboardReadNotAllowed")
5546
5522
  } }, i);
@@ -5555,14 +5531,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5555
5531
  onClickCopyClipboard: l(async (e) => {
5556
5532
  let t = await v();
5557
5533
  if (!t) return;
5558
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Yl).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Pu(n, o, a.map((t) => t.map((t) => Vr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5534
+ let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Kl).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = ju(n, o, a.map((t) => t.map((t) => Vr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5559
5535
  try {
5560
- await navigator.clipboard.writeText(c), Hu({ message: {
5536
+ await navigator.clipboard.writeText(c), zu({ message: {
5561
5537
  type: "Success",
5562
5538
  content: _("copiedToClipboard")
5563
5539
  } }, i);
5564
5540
  } catch (e) {
5565
- Hu({ message: {
5541
+ zu({ message: {
5566
5542
  type: "Error",
5567
5543
  content: _("unableToCopyToClipboard"),
5568
5544
  details: e.message
@@ -5572,14 +5548,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5572
5548
  onSmartUploadResult: l((e) => {
5573
5549
  let t = hn(e) && gn(e.errorMessage) ? e.errorMessage : void 0;
5574
5550
  if (t) {
5575
- Hu({ message: {
5551
+ zu({ message: {
5576
5552
  type: "Error",
5577
5553
  content: t || "Smart upload failed."
5578
5554
  } }, i);
5579
5555
  return;
5580
5556
  }
5581
5557
  if (!on(e) || e.length < 2 || !rn(e, (e) => hn(e) && rn(wn(e), gn))) {
5582
- Hu({ message: {
5558
+ zu({ message: {
5583
5559
  type: "Error",
5584
5560
  content: "Smart upload returned unexpected format.",
5585
5561
  details: JSON.stringify(e)
@@ -5611,14 +5587,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5611
5587
  ]),
5612
5588
  deleteAllRows: x
5613
5589
  };
5614
- }, td = (e, t) => {
5590
+ }, Qu = (e, t) => {
5615
5591
  var n, r;
5616
- let { fields: i, rows: a } = e, o = Pu(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5592
+ let { fields: i, rows: a } = e, o = ju(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5617
5593
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5618
- }, nd = (e) => mn(e) && "modalKey" in e, rd = (e, t, n) => tn(e, (e) => {
5594
+ }, $u = (e) => mn(e) && "modalKey" in e, ed = (e, t, n) => tn(e, (e) => {
5619
5595
  if (on(e) || !hn(e)) return;
5620
5596
  let { modalKey: r } = e == null ? {} : e;
5621
- if (nd(e) && typeof e.onClick != "function") {
5597
+ if ($u(e) && typeof e.onClick != "function") {
5622
5598
  let i = () => {
5623
5599
  var e;
5624
5600
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5628,7 +5604,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5628
5604
  onClick: i
5629
5605
  };
5630
5606
  }
5631
- }), id = (e, t, n) => rd(e, t, n), ad = {
5607
+ }), td = (e, t, n) => ed(e, t, n), nd = {
5632
5608
  pastedText: "",
5633
5609
  parsedResult: {
5634
5610
  isValid: !1,
@@ -5643,9 +5619,9 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5643
5619
  reviewPasteModal: !1,
5644
5620
  helpModal: !1
5645
5621
  }
5646
- }, od = ({ config: e, smartUploadConfig: t, testId: n }) => {
5622
+ }, rd = ({ config: e, smartUploadConfig: t, testId: n }) => {
5647
5623
  var r, i, a, o;
5648
- let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: y = !0, showUploadFileOption: b = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = _(ad), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = Zu(f), L = Ju(I, s, c), [R, z] = v(), B = ed({
5624
+ let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: h = !0, showDeleteOptions: g = !0, showHelpOption: y = !0, showUploadFileOption: b = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = _(nd), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = Ju(f), L = Gu(I, s, c), [R, z] = v(), B = Zu({
5649
5625
  config: e,
5650
5626
  state: E,
5651
5627
  setState: D,
@@ -5680,14 +5656,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5680
5656
  onClick: () => V("smartUploadModal", !O),
5681
5657
  testId: `${n}-smart-upload`
5682
5658
  }] : [],
5683
- ...id((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
5659
+ ...td((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
5684
5660
  ] : [], le = [
5685
5661
  {
5686
5662
  type: "Option",
5687
5663
  label: I("downloadFile"),
5688
5664
  onClick: async () => {
5689
5665
  let e = await L();
5690
- e && e && td(e, d);
5666
+ e && e && Qu(e, d);
5691
5667
  }
5692
5668
  },
5693
5669
  ...p ? [{
@@ -5712,20 +5688,20 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5712
5688
  }]
5713
5689
  }
5714
5690
  }],
5715
- ...id((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
5691
+ ...td((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
5716
5692
  ], ue = g ? [{
5717
5693
  type: "Option",
5718
5694
  label: I("deleteAllRows"),
5719
5695
  onClick: () => se(),
5720
5696
  testId: `${n}-delete-all-rows`
5721
- }, ...id((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = y ? [
5697
+ }, ...td((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = y ? [
5722
5698
  { type: "Divider" },
5723
5699
  {
5724
5700
  type: "Option",
5725
5701
  label: I("help"),
5726
5702
  onClick: () => V("helpModal", !A)
5727
5703
  },
5728
- ...id((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
5704
+ ...td((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
5729
5705
  ] : [], fe = [
5730
5706
  ...ce.length ? [{
5731
5707
  section: [...ce, ...de],
@@ -5751,13 +5727,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5751
5727
  small: !0,
5752
5728
  dark: !0
5753
5729
  }),
5754
- fe.map((e, t) => /* @__PURE__ */ x(qu, {
5730
+ fe.map((e, t) => /* @__PURE__ */ x(Wu, {
5755
5731
  sections: e.section,
5756
5732
  iconName: e.iconName,
5757
5733
  tooltip: e.tooltip,
5758
5734
  testId: `data-${e == null ? void 0 : e.name}-menu`
5759
5735
  }, t)),
5760
- k && /* @__PURE__ */ x(Gu, {
5736
+ k && /* @__PURE__ */ x(Hu, {
5761
5737
  config: e,
5762
5738
  state: E,
5763
5739
  updateState: te,
@@ -5793,14 +5769,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5793
5769
  cancelText: I("cancel"),
5794
5770
  testId: n
5795
5771
  }),
5796
- /* @__PURE__ */ x(Ku, {
5772
+ /* @__PURE__ */ x(Uu, {
5797
5773
  modals: C,
5798
5774
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5799
5775
  onCloseModal: ne,
5800
5776
  testId: n
5801
5777
  })
5802
5778
  ] });
5803
- }, sd = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = vn, ...o }) => {
5779
+ }, id = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = vn, ...o }) => {
5804
5780
  let s = u(W), c = g(null), l = () => {
5805
5781
  var e;
5806
5782
  i || s || (e = c.current) == null || e.click();
@@ -5828,12 +5804,12 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5828
5804
  multiple: n,
5829
5805
  onChange: d
5830
5806
  })] });
5831
- }, cd = {
5807
+ }, ad = {
5832
5808
  label: "_label_uxk69_1",
5833
5809
  labelLeft: "_labelLeft_uxk69_5",
5834
5810
  icons: "_icons_uxk69_13",
5835
5811
  small: "_small_uxk69_27"
5836
- }, ld = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5812
+ }, od = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5837
5813
  visible: !1,
5838
5814
  active: !1,
5839
5815
  onClick: () => {},
@@ -5842,14 +5818,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5842
5818
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = _i.CAPITALIZE }) => {
5843
5819
  var d;
5844
5820
  return /* @__PURE__ */ x("div", {
5845
- className: y(cd.label, c ? cd.labelLeft : "", l ? cd.small : ""),
5821
+ className: y(ad.label, c ? ad.labelLeft : "", l ? ad.small : ""),
5846
5822
  children: /* @__PURE__ */ S("label", {
5847
5823
  style: {
5848
5824
  textTransform: u,
5849
5825
  width: t || ""
5850
5826
  },
5851
5827
  children: [e, /* @__PURE__ */ S("div", {
5852
- className: cd.icons,
5828
+ className: ad.icons,
5853
5829
  children: [
5854
5830
  (n || i) && /* @__PURE__ */ x(ta, {
5855
5831
  text: n,
@@ -5875,23 +5851,23 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5875
5851
  })]
5876
5852
  })
5877
5853
  });
5878
- }, ud = {
5854
+ }, sd = {
5879
5855
  field: "_field_1xoss_1",
5880
5856
  labelLeft: "_labelLeft_1xoss_5",
5881
5857
  fieldInput: "_fieldInput_1xoss_9",
5882
5858
  formRow: "_formRow_1xoss_12",
5883
5859
  "form-row": "_form-row_1xoss_13",
5884
5860
  button: "_button_1xoss_22"
5885
- }, dd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5861
+ }, cd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5886
5862
  visible: !1,
5887
5863
  active: !1,
5888
5864
  onClick: () => {},
5889
5865
  tooltip: "",
5890
5866
  testId: void 0
5891
5867
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = _i.CAPITALIZE }) => /* @__PURE__ */ S("div", {
5892
- className: y(ud.field, t ? ud.labelLeft : ""),
5868
+ className: y(sd.field, t ? sd.labelLeft : ""),
5893
5869
  "data-testid": d,
5894
- children: [(e || t) && /* @__PURE__ */ x(ld, {
5870
+ children: [(e || t) && /* @__PURE__ */ x(od, {
5895
5871
  label: e,
5896
5872
  width: n,
5897
5873
  helpText: i,
@@ -5904,10 +5880,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5904
5880
  small: u,
5905
5881
  textTransform: f
5906
5882
  }), /* @__PURE__ */ x("div", {
5907
- className: ud.fieldInput,
5883
+ className: sd.fieldInput,
5908
5884
  children: r
5909
5885
  })]
5910
- }), fd = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ x("div", {
5886
+ }), ld = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ x("div", {
5911
5887
  style: {
5912
5888
  display: "flex",
5913
5889
  flexDirection: n,
@@ -5919,8 +5895,8 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5919
5895
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5920
5896
  },
5921
5897
  children: a
5922
- }), pd = { formRow: "_formRow_odewu_1" }, md = ({ children: e }) => /* @__PURE__ */ x("div", {
5923
- className: pd.formRow,
5898
+ }), ud = { formRow: "_formRow_odewu_1" }, dd = ({ children: e }) => /* @__PURE__ */ x("div", {
5899
+ className: ud.formRow,
5924
5900
  children: e
5925
5901
  }), Z = {
5926
5902
  inputInTable: "_inputInTable_15rr3_1",
@@ -5966,15 +5942,15 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5966
5942
  hideScrollbar: "_hideScrollbar_15rr3_71",
5967
5943
  noPointerEvents: "_noPointerEvents_15rr3_313",
5968
5944
  virtualRows: "_virtualRows_15rr3_316"
5969
- }, hd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ x("a", {
5945
+ }, fd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ x("a", {
5970
5946
  className: Z.toggleNarrow,
5971
5947
  onClick: t,
5972
5948
  children: /* @__PURE__ */ x(G, { icon: U.CHEVRON_LEFT })
5973
- }) : null, gd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ S("div", {
5949
+ }) : null, pd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ S("div", {
5974
5950
  ref: a,
5975
5951
  className: y(Z.header, i ? Z.stickyHeader : ""),
5976
5952
  children: [
5977
- /* @__PURE__ */ x(hd, {
5953
+ /* @__PURE__ */ x(fd, {
5978
5954
  toggleNarrow: n,
5979
5955
  onClickToggleNarrow: r
5980
5956
  }),
@@ -5994,14 +5970,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
5994
5970
  })
5995
5971
  })
5996
5972
  ]
5997
- })), _d = ({ label: e }) => e ? /* @__PURE__ */ x("span", {
5973
+ })), md = ({ label: e }) => e ? /* @__PURE__ */ x("span", {
5998
5974
  className: Z.label,
5999
5975
  children: /* @__PURE__ */ x(ka, {
6000
5976
  color: e.color,
6001
5977
  title: e.value,
6002
5978
  small: e.small
6003
5979
  })
6004
- }) : null, vd = ({ name: e, icon: t, testId: n }) => {
5980
+ }) : null, hd = ({ name: e, icon: t, testId: n }) => {
6005
5981
  let r = t && /* @__PURE__ */ x(G, {
6006
5982
  icon: t.icon,
6007
5983
  color: t.color || "#db2828"
@@ -6021,8 +5997,8 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6021
5997
  children: r
6022
5998
  })]
6023
5999
  });
6024
- }, yd = ({ item: e }) => {
6025
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ x(vd, {
6000
+ }, gd = ({ item: e }) => {
6001
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ x(hd, {
6026
6002
  name: t,
6027
6003
  icon: n,
6028
6004
  testId: o && `${o}-name`
@@ -6048,10 +6024,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6048
6024
  })
6049
6025
  ]
6050
6026
  });
6051
- }, bd = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ x(ka, {
6027
+ }, _d = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ x(ka, {
6052
6028
  color: "rgba(0,0,0,0.25)",
6053
6029
  title: e.metaCount
6054
- }), xd = ({ item: e, expanding: t }) => {
6030
+ }), vd = ({ item: e, expanding: t }) => {
6055
6031
  let n = (e) => {
6056
6032
  e.preventDefault(), e.stopPropagation();
6057
6033
  }, r = !!t && !!e.active && !!e.content;
@@ -6063,7 +6039,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6063
6039
  children: e.content
6064
6040
  })
6065
6041
  });
6066
- }, Sd = o(({ item: e, index: t }, n) => {
6042
+ }, yd = o(({ item: e, index: t }, n) => {
6067
6043
  var r;
6068
6044
  let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
6069
6045
  return /* @__PURE__ */ x("div", {
@@ -6083,13 +6059,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6083
6059
  className: y(Z.expandIcon, s && Z.expanded),
6084
6060
  children: /* @__PURE__ */ x(G, { icon: U.CHEVRON_RIGHT })
6085
6061
  }),
6086
- /* @__PURE__ */ x(vd, {
6062
+ /* @__PURE__ */ x(hd, {
6087
6063
  name: d,
6088
6064
  icon: f
6089
6065
  }),
6090
6066
  /* @__PURE__ */ S("div", {
6091
6067
  className: Z.right,
6092
- children: [/* @__PURE__ */ x(bd, { item: e }), !(o || i) && a && /* @__PURE__ */ x("div", {
6068
+ children: [/* @__PURE__ */ x(_d, { item: e }), !(o || i) && a && /* @__PURE__ */ x("div", {
6093
6069
  className: Z.actions,
6094
6070
  children: /* @__PURE__ */ x(Ua, { actions: (r = e.actions) == null ? [] : r })
6095
6071
  })]
@@ -6097,7 +6073,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6097
6073
  ]
6098
6074
  }) })
6099
6075
  });
6100
- }), Cd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
6076
+ }), bd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
6101
6077
  let o = u(W), s = (e, t, s, c, l, u) => {
6102
6078
  let d = t.actions && t.actions.find((e) => {
6103
6079
  var t;
@@ -6133,24 +6109,24 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6133
6109
  className: Z.indentIcon,
6134
6110
  children: /* @__PURE__ */ x(G, { icon: U.INDENT })
6135
6111
  }) : null,
6136
- /* @__PURE__ */ x(_d, { label: t.label }),
6137
- /* @__PURE__ */ x(yd, { item: t }),
6112
+ /* @__PURE__ */ x(md, { label: t.label }),
6113
+ /* @__PURE__ */ x(gd, { item: t }),
6138
6114
  /* @__PURE__ */ S("div", {
6139
6115
  className: Z.right,
6140
- children: [/* @__PURE__ */ x(bd, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ x("div", {
6116
+ children: [/* @__PURE__ */ x(_d, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ x("div", {
6141
6117
  className: Z.actions,
6142
6118
  children: /* @__PURE__ */ x(Ua, { actions: t.actions })
6143
6119
  })]
6144
6120
  })
6145
6121
  ]
6146
- }), /* @__PURE__ */ x(xd, {
6122
+ }), /* @__PURE__ */ x(vd, {
6147
6123
  item: t,
6148
6124
  expanding: n
6149
6125
  })]
6150
6126
  })
6151
6127
  }, e);
6152
6128
  };
6153
- return e.type === "Heading" ? /* @__PURE__ */ x(Sd, {
6129
+ return e.type === "Heading" ? /* @__PURE__ */ x(yd, {
6154
6130
  ref: a,
6155
6131
  item: e,
6156
6132
  index: t
@@ -6165,7 +6141,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6165
6141
  };
6166
6142
  return s(e, t, l, n, r, i);
6167
6143
  })(t, e) : s(t, e);
6168
- }), wd = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
6144
+ }), xd = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
6169
6145
  let [i, a] = _(null), o = (e) => {
6170
6146
  a(e.active.id);
6171
6147
  }, s = (e) => {
@@ -6188,7 +6164,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6188
6164
  dropAnimation: null,
6189
6165
  children: /* @__PURE__ */ x("div", {
6190
6166
  className: Z.dragOverlay,
6191
- children: /* @__PURE__ */ x(Cd, {
6167
+ children: /* @__PURE__ */ x(bd, {
6192
6168
  draggable: t,
6193
6169
  item: n.items[Number(i)],
6194
6170
  index: Number(i)
@@ -6196,7 +6172,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6196
6172
  })
6197
6173
  }), document.body)]
6198
6174
  }) : e;
6199
- }, Td = ({ items: e, scrollDetails: t, children: n }) => {
6175
+ }, Sd = ({ items: e, scrollDetails: t, children: n }) => {
6200
6176
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = g(null), c = Rr({
6201
6177
  count: e.length,
6202
6178
  getScrollElement: () => s.current,
@@ -6229,9 +6205,9 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6229
6205
  children: n({ virtualizer: c })
6230
6206
  })
6231
6207
  });
6232
- }, Ed = ({ items: e, scrollDetails: t, children: n }) => {
6208
+ }, Cd = ({ items: e, scrollDetails: t, children: n }) => {
6233
6209
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
6234
- return a ? /* @__PURE__ */ x(Td, {
6210
+ return a ? /* @__PURE__ */ x(Sd, {
6235
6211
  items: e,
6236
6212
  scrollDetails: t,
6237
6213
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -6242,7 +6218,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6242
6218
  children: n({})
6243
6219
  })
6244
6220
  });
6245
- }, Dd = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
6221
+ }, wd = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
6246
6222
  scrollable: !1,
6247
6223
  hideScrollbar: !1,
6248
6224
  triggerScrollToActiveItem: !1,
@@ -6255,17 +6231,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6255
6231
  marginBottom: d
6256
6232
  },
6257
6233
  id: "scrollableDiv",
6258
- children: [!s && /* @__PURE__ */ x(gd, {
6234
+ children: [!s && /* @__PURE__ */ x(pd, {
6259
6235
  name: e.name,
6260
6236
  actions: e.actions,
6261
6237
  toggleNarrow: i,
6262
6238
  onToggleNarrow: a,
6263
6239
  stickyHeader: c
6264
- }), /* @__PURE__ */ x(wd, {
6240
+ }), /* @__PURE__ */ x(xd, {
6265
6241
  draggable: l,
6266
6242
  list: e,
6267
6243
  onListReorder: u,
6268
- children: /* @__PURE__ */ x(Ed, {
6244
+ children: /* @__PURE__ */ x(Cd, {
6269
6245
  items: e.items,
6270
6246
  scrollDetails: m,
6271
6247
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ x("div", {
@@ -6273,14 +6249,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6273
6249
  className: Z.virtualRow,
6274
6250
  style: { transform: `translateY(${r.start}px)` },
6275
6251
  ref: t.measureElement,
6276
- children: /* @__PURE__ */ x(Cd, {
6252
+ children: /* @__PURE__ */ x(bd, {
6277
6253
  index: r.index,
6278
6254
  draggable: l,
6279
6255
  item: e.items[r.index],
6280
6256
  expanding: n,
6281
6257
  invokeEditOnRowClick: o
6282
6258
  })
6283
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(Cd, {
6259
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(bd, {
6284
6260
  index: t,
6285
6261
  draggable: l,
6286
6262
  item: e,
@@ -6289,7 +6265,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6289
6265
  }) }, t))
6290
6266
  })
6291
6267
  })]
6292
- }), Od = {
6268
+ }), Td = {
6293
6269
  loader: "_loader_477i5_1",
6294
6270
  fullViewPortSize: "_fullViewPortSize_477i5_7",
6295
6271
  cover: "_cover_477i5_14",
@@ -6297,33 +6273,33 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6297
6273
  content: "_content_477i5_44",
6298
6274
  text: "_text_477i5_49",
6299
6275
  details: "_details_477i5_53"
6300
- }, kd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = vi.DARK, testId: c = null }) => {
6276
+ }, Ed = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = vi.DARK, testId: c = null }) => {
6301
6277
  let l = s === vi.DARK ? vi.WHITE : vi.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
6302
6278
  return /* @__PURE__ */ x("div", {
6303
- className: y(Od.loader, a ? Od.cover : "", { [Od.fullViewPortSize]: i }),
6279
+ className: y(Td.loader, a ? Td.cover : "", { [Td.fullViewPortSize]: i }),
6304
6280
  style: {
6305
6281
  width: e,
6306
6282
  height: t
6307
6283
  },
6308
6284
  "data-testid": c,
6309
6285
  children: /* @__PURE__ */ x("div", {
6310
- className: Od.dimmer,
6286
+ className: Td.dimmer,
6311
6287
  style: {
6312
6288
  background: u,
6313
6289
  color: l
6314
6290
  },
6315
6291
  children: /* @__PURE__ */ S("div", {
6316
- className: Od.content,
6292
+ className: Td.content,
6317
6293
  "data-testid": c && `${c}-content`,
6318
6294
  children: [
6319
6295
  o,
6320
6296
  n && /* @__PURE__ */ x("div", {
6321
- className: Od.text,
6297
+ className: Td.text,
6322
6298
  "data-testid": c && `${c}-text`,
6323
6299
  children: n
6324
6300
  }),
6325
6301
  r && /* @__PURE__ */ x("div", {
6326
- className: Od.details,
6302
+ className: Td.details,
6327
6303
  "data-testid": c && `${c}-details`,
6328
6304
  children: r
6329
6305
  })
@@ -6331,15 +6307,15 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6331
6307
  })
6332
6308
  })
6333
6309
  });
6334
- }, Ad = {
6310
+ }, Dd = {
6335
6311
  menu: "_menu_12x4u_1",
6336
6312
  header: "_header_12x4u_11",
6337
6313
  item: "_item_12x4u_27",
6338
6314
  heading: "_heading_12x4u_32"
6339
- }, jd = ({ option: e, onChange: t }) => {
6315
+ }, Od = ({ option: e, onChange: t }) => {
6340
6316
  let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
6341
6317
  return /* @__PURE__ */ x("div", {
6342
- className: Ad.item,
6318
+ className: Dd.item,
6343
6319
  children: /* @__PURE__ */ x(na, {
6344
6320
  label: i,
6345
6321
  noMargin: !0,
@@ -6352,21 +6328,21 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6352
6328
  textTransform: l
6353
6329
  })
6354
6330
  }, n);
6355
- }, Md = ({ label: e }) => /* @__PURE__ */ x("div", {
6356
- className: Ad.heading,
6331
+ }, kd = ({ label: e }) => /* @__PURE__ */ x("div", {
6332
+ className: Dd.heading,
6357
6333
  children: e
6358
- }), Nd = /* @__PURE__ */ function(e) {
6334
+ }), Ad = /* @__PURE__ */ function(e) {
6359
6335
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
6360
- }({}), Pd = (e) => e.type !== Nd.HEADING && e.type !== Nd.DIVIDER && !e.disabled, Fd = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ S("div", {
6361
- className: y("menu", Ad.menu),
6336
+ }({}), jd = (e) => e.type !== Ad.HEADING && e.type !== Ad.DIVIDER && !e.disabled, Md = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ S("div", {
6337
+ className: y("menu", Dd.menu),
6362
6338
  style: { maxHeight: r },
6363
6339
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
6364
6340
  children: [n && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", {
6365
- className: Ad.header,
6341
+ className: Dd.header,
6366
6342
  children: [
6367
6343
  /* @__PURE__ */ x("a", {
6368
6344
  onClick: (n) => {
6369
- t(n, e.map((e) => Pd(e) ? {
6345
+ t(n, e.map((e) => jd(e) ? {
6370
6346
  ...e,
6371
6347
  selected: !0
6372
6348
  } : e));
@@ -6375,7 +6351,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6375
6351
  }),
6376
6352
  /* @__PURE__ */ x("a", {
6377
6353
  onClick: (n) => {
6378
- t(n, e.map((e) => Pd(e) ? {
6354
+ t(n, e.map((e) => jd(e) ? {
6379
6355
  ...e,
6380
6356
  selected: !1
6381
6357
  } : e));
@@ -6384,7 +6360,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6384
6360
  }),
6385
6361
  /* @__PURE__ */ x("a", {
6386
6362
  onClick: (n) => {
6387
- t(n, e.map((e) => Pd(e) ? {
6363
+ t(n, e.map((e) => jd(e) ? {
6388
6364
  ...e,
6389
6365
  selected: !e.selected
6390
6366
  } : e));
@@ -6394,19 +6370,19 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6394
6370
  ]
6395
6371
  }), /* @__PURE__ */ x(Go, { margin: 0 })] }), e.map((n, r) => {
6396
6372
  switch (n.type) {
6397
- case Nd.HEADING:
6373
+ case Ad.HEADING:
6398
6374
  var i;
6399
- return /* @__PURE__ */ x(Md, { label: n.label }, (i = n.key) == null ? r : i);
6400
- case Nd.DIVIDER:
6375
+ return /* @__PURE__ */ x(kd, { label: n.label }, (i = n.key) == null ? r : i);
6376
+ case Ad.DIVIDER:
6401
6377
  var a;
6402
6378
  return /* @__PURE__ */ x(Go, { margin: 0 }, (a = n.key) == null ? r : a);
6403
6379
  default:
6404
6380
  var o;
6405
- return /* @__PURE__ */ x(jd, {
6381
+ return /* @__PURE__ */ x(Od, {
6406
6382
  option: n,
6407
6383
  onChange: (r) => {
6408
6384
  let { value: i } = n;
6409
- t(r, e.map((e) => e.type === Nd.HEADING || e.type === Nd.DIVIDER || e.value !== i ? e : {
6385
+ t(r, e.map((e) => e.type === Ad.HEADING || e.type === Ad.DIVIDER || e.value !== i ? e : {
6410
6386
  ...e,
6411
6387
  selected: !e.selected
6412
6388
  }));
@@ -6414,7 +6390,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6414
6390
  }, (o = n.key) == null ? r : o);
6415
6391
  }
6416
6392
  })]
6417
- }), Id = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ x(Va, {
6393
+ }), Nd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ x(Va, {
6418
6394
  testId: c,
6419
6395
  disabled: t,
6420
6396
  menu: {
@@ -6423,7 +6399,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6423
6399
  label: n,
6424
6400
  trigger: pi.DROP_DOWN_BUTTON,
6425
6401
  possiblePlacements: ["top-start", "bottom-start"],
6426
- sections: /* @__PURE__ */ x(Fd, {
6402
+ sections: /* @__PURE__ */ x(Md, {
6427
6403
  testId: c,
6428
6404
  options: r,
6429
6405
  onChangeOptions: (t, n) => {
@@ -6433,13 +6409,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6433
6409
  maxHeight: s
6434
6410
  })
6435
6411
  }
6436
- }), Ld = {
6412
+ }), Pd = {
6437
6413
  page: "_page_beskc_1",
6438
6414
  scroll: "_scroll_beskc_23"
6439
- }, Rd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6415
+ }, Fd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6440
6416
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
6441
6417
  return /* @__PURE__ */ x("div", {
6442
- className: y(Ld.page, r ? Ld.scroll : ""),
6418
+ className: y(Pd.page, r ? Pd.scroll : ""),
6443
6419
  style: {
6444
6420
  left: t,
6445
6421
  padding: a,
@@ -6447,17 +6423,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6447
6423
  },
6448
6424
  children: e
6449
6425
  });
6450
- }, zd = ({ id: e, children: t }) => {
6426
+ }, Id = ({ id: e, children: t }) => {
6451
6427
  let n = document.querySelector(`#${e}`), [r, i] = _(!1);
6452
6428
  return p(() => {
6453
6429
  r || i(!0);
6454
6430
  }, [e]), n ? Pr(t, n) : null;
6455
- }, Bd = { printHeader: "_printHeader_o7xxx_1" }, Vd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ x("img", {
6431
+ }, Ld = { printHeader: "_printHeader_o7xxx_1" }, Rd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ x("img", {
6456
6432
  src: e,
6457
6433
  alt: t,
6458
- className: Bd.printHeader,
6434
+ className: Ld.printHeader,
6459
6435
  style: { width: n }
6460
- }), Hd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
6436
+ }), zd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
6461
6437
  var d;
6462
6438
  let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = Yc(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
6463
6439
  return /* @__PURE__ */ S(Mr, {
@@ -6498,44 +6474,44 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6498
6474
  }, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
6499
6475
  })]
6500
6476
  });
6501
- }, Ud = {
6477
+ }, Bd = {
6502
6478
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6503
6479
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6504
- }, Wd = /* @__PURE__ */ function(e) {
6480
+ }, Vd = /* @__PURE__ */ function(e) {
6505
6481
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6506
- }({}), Gd = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6482
+ }({}), Hd = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6507
6483
  var r, i, a, o, s;
6508
6484
  let c = [
6509
6485
  {
6510
- icon: Wd.BOLD,
6486
+ icon: Vd.BOLD,
6511
6487
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6512
6488
  active: (r = e == null ? void 0 : e.isActive("bold")) != null && r
6513
6489
  },
6514
6490
  {
6515
- icon: Wd.ITALIC,
6491
+ icon: Vd.ITALIC,
6516
6492
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6517
6493
  active: (i = e == null ? void 0 : e.isActive("italic")) != null && i
6518
6494
  },
6519
6495
  {
6520
- icon: Wd.CODE,
6496
+ icon: Vd.CODE,
6521
6497
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6522
6498
  active: (a = e == null ? void 0 : e.isActive("code")) != null && a
6523
6499
  },
6524
6500
  {
6525
- icon: Wd.UL,
6501
+ icon: Vd.UL,
6526
6502
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6527
6503
  active: (o = e == null ? void 0 : e.isActive("bulletList")) != null && o
6528
6504
  },
6529
6505
  {
6530
- icon: Wd.OL,
6506
+ icon: Vd.OL,
6531
6507
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6532
6508
  active: (s = e == null ? void 0 : e.isActive("orderedList")) != null && s
6533
6509
  }
6534
6510
  ];
6535
6511
  return /* @__PURE__ */ S("div", {
6536
- className: Ud.richTextToolbarContainer,
6512
+ className: Bd.richTextToolbarContainer,
6537
6513
  children: [/* @__PURE__ */ x("div", {
6538
- className: Ud.richTextToolbar,
6514
+ className: Bd.richTextToolbar,
6539
6515
  children: c.map((e, n) => /* @__PURE__ */ x(q, {
6540
6516
  small: !0,
6541
6517
  round: !0,
@@ -6548,7 +6524,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6548
6524
  }, n))
6549
6525
  }), n]
6550
6526
  });
6551
- }, Kd = {
6527
+ }, Ud = {
6552
6528
  inputInTable: "_inputInTable_1kfcu_1",
6553
6529
  inputHover: "_inputHover_1kfcu_13",
6554
6530
  inputFocus: "_inputFocus_1kfcu_18",
@@ -6558,7 +6534,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6558
6534
  inputDisabled: "_inputDisabled_1kfcu_65",
6559
6535
  hideScrollbars: "_hideScrollbars_1kfcu_71",
6560
6536
  richTextInput: "_richTextInput_1kfcu_81"
6561
- }, qd = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6537
+ }, Wd = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6562
6538
  let o = u(W), s = r || o, c = Zr({
6563
6539
  extensions: [
6564
6540
  Qr,
@@ -6585,17 +6561,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6585
6561
  clearContent: () => c == null ? void 0 : c.commands.clearContent(!1),
6586
6562
  editor: c
6587
6563
  }), [c]), /* @__PURE__ */ S("div", {
6588
- className: Kd.richTextInput,
6589
- children: [/* @__PURE__ */ x(Gd, {
6564
+ className: Ud.richTextInput,
6565
+ children: [/* @__PURE__ */ x(Hd, {
6590
6566
  editor: c,
6591
6567
  disabled: s,
6592
6568
  toolbarComponent: i
6593
6569
  }), /* @__PURE__ */ x(Xr, { editor: c })]
6594
6570
  });
6595
- })), Jd = { row: "_row_n16je_1" }, Yd = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: a = "auto", marginBottom: o = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6571
+ })), Gd = { row: "_row_n16je_1" }, Kd = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: i = !1, height: a = "auto", marginBottom: o = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6596
6572
  let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => s(e)) : [r]).map((t, n) => /* @__PURE__ */ x(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
6597
6573
  return /* @__PURE__ */ x("div", {
6598
- className: y(Jd.row),
6574
+ className: y(Gd.row),
6599
6575
  style: {
6600
6576
  alignItems: t,
6601
6577
  justifyContent: n,
@@ -6611,7 +6587,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6611
6587
  "data-testid": d,
6612
6588
  children: p
6613
6589
  });
6614
- }, Xd = {
6590
+ }, qd = {
6615
6591
  inputInTable: "_inputInTable_t1w93_1",
6616
6592
  inputHover: "_inputHover_t1w93_13",
6617
6593
  inputFocus: "_inputFocus_t1w93_18",
@@ -6631,7 +6607,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6631
6607
  experimental: "_experimental_t1w93_159",
6632
6608
  active: "_active_t1w93_163",
6633
6609
  icon: "_icon_t1w93_167"
6634
- }, Zd = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(K, {
6610
+ }, Jd = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(K, {
6635
6611
  text: t,
6636
6612
  enabled: !e,
6637
6613
  placement: "right-center",
@@ -6640,7 +6616,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6640
6616
  padding: "var(--padding-sm)",
6641
6617
  display: "block",
6642
6618
  children: /* @__PURE__ */ x("span", {
6643
- className: Xd.icon,
6619
+ className: qd.icon,
6644
6620
  children: /* @__PURE__ */ x(ka, {
6645
6621
  small: !0,
6646
6622
  title: r ? "!" : void 0,
@@ -6649,18 +6625,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6649
6625
  })
6650
6626
  })
6651
6627
  }), /* @__PURE__ */ x("span", {
6652
- className: Xd.label,
6628
+ className: qd.label,
6653
6629
  children: t
6654
- })] }), (e, t) => Or(e, t)), Qd = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ x("div", {
6655
- className: Xd.list,
6630
+ })] }), (e, t) => Or(e, t)), Yd = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ x("div", {
6631
+ className: qd.list,
6656
6632
  children: t.map((t, a) => {
6657
6633
  let o = `${n}_${a}`;
6658
6634
  return /* @__PURE__ */ x("a", {
6659
6635
  href: t.value,
6660
- className: y(Xd.item, t.isActive ? Xd.active : "", t.isExperimental ? Xd.experimental : ""),
6636
+ className: y(qd.item, t.isActive ? qd.active : "", t.isExperimental ? qd.experimental : ""),
6661
6637
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6662
6638
  "data-testid": i,
6663
- children: /* @__PURE__ */ x(Zd, {
6639
+ children: /* @__PURE__ */ x(Jd, {
6664
6640
  label: t.label,
6665
6641
  icon: t.icon,
6666
6642
  invalid: t.invalid,
@@ -6668,16 +6644,16 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6668
6644
  }, o)
6669
6645
  }, o);
6670
6646
  })
6671
- }), $d = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ x(b, { children: n.map((n, i) => /* @__PURE__ */ S(e.Fragment, { children: [/* @__PURE__ */ x("h5", {
6672
- className: Xd.subtitle,
6647
+ }), Xd = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ x(b, { children: n.map((n, i) => /* @__PURE__ */ S(e.Fragment, { children: [/* @__PURE__ */ x("h5", {
6648
+ className: qd.subtitle,
6673
6649
  children: n.heading.toUpperCase()
6674
- }), /* @__PURE__ */ x(Qd, {
6650
+ }), /* @__PURE__ */ x(Yd, {
6675
6651
  isOpen: t,
6676
6652
  items: n.items,
6677
6653
  sectionIndex: i,
6678
6654
  onClick: r,
6679
6655
  testId: n.testId
6680
- })] }, i)) }), ef = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6656
+ })] }, i)) }), Zd = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6681
6657
  let [i, a] = _(t), o = (e, t, n, r) => {
6682
6658
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6683
6659
  }, s = e.sections.length > 0;
@@ -6698,13 +6674,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6698
6674
  icon: U.LEFT
6699
6675
  }),
6700
6676
  children: /* @__PURE__ */ x("div", {
6701
- className: y(Xd.sidebar, i ? "" : Xd.collapsed),
6677
+ className: y(qd.sidebar, i ? "" : qd.collapsed),
6702
6678
  children: s && /* @__PURE__ */ S("div", {
6703
- className: Xd.inner,
6679
+ className: qd.inner,
6704
6680
  children: [/* @__PURE__ */ x("h4", {
6705
- className: Xd.title,
6681
+ className: qd.title,
6706
6682
  children: e.title
6707
- }), /* @__PURE__ */ x($d, {
6683
+ }), /* @__PURE__ */ x(Xd, {
6708
6684
  isOpen: i,
6709
6685
  sections: e.sections,
6710
6686
  onClick: o
@@ -6712,18 +6688,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6712
6688
  })
6713
6689
  })
6714
6690
  });
6715
- }, (e, t) => Or(e, t)), tf = {
6691
+ }, (e, t) => Or(e, t)), Qd = {
6716
6692
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6717
6693
  skeleton: "_skeleton_mcfxp_9"
6718
- }, nf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ x(ti, {
6694
+ }, $d = ({ count: e, width: t, height: n }) => /* @__PURE__ */ x(ti, {
6719
6695
  baseColor: "var(--color-skeleton-base)",
6720
6696
  highlightColor: "var(--color-skeleton-highlight)",
6721
- containerClassName: tf.skeletonContainer,
6722
- className: tf.skeleton,
6697
+ containerClassName: Qd.skeletonContainer,
6698
+ className: Qd.skeleton,
6723
6699
  count: e,
6724
6700
  width: t,
6725
6701
  height: n
6726
- }), rf = {
6702
+ }), ef = {
6727
6703
  wrapper: "_wrapper_j8x9r_1",
6728
6704
  label: "_label_j8x9r_5",
6729
6705
  input: "_input_j8x9r_9",
@@ -6731,38 +6707,38 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6731
6707
  editable: "_editable_j8x9r_22",
6732
6708
  inputControl: "_inputControl_j8x9r_25",
6733
6709
  actions: "_actions_j8x9r_28"
6734
- }, af = () => {
6710
+ }, tf = () => {
6735
6711
  let e = g(null);
6736
6712
  return p(() => {
6737
6713
  e.current && (e.current(), e.current = null);
6738
6714
  }), (t) => {
6739
6715
  e.current = t;
6740
6716
  };
6741
- }, of = (e) => {
6717
+ }, nf = (e) => {
6742
6718
  let t = g(void 0);
6743
6719
  return d(() => {
6744
6720
  t.current = e;
6745
6721
  }, [e]), t.current;
6746
- }, sf = (e, t) => {
6722
+ }, rf = (e, t) => {
6747
6723
  let n = t == null ? void 0 : t[e];
6748
6724
  if (!n) {
6749
6725
  var r;
6750
6726
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = _r(e)) == null ? "" : r;
6751
6727
  }
6752
6728
  return n;
6753
- }, cf = /* @__PURE__ */ function(e) {
6729
+ }, af = /* @__PURE__ */ function(e) {
6754
6730
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
6755
- }({}), lf = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), uf = (e) => {
6731
+ }({}), of = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), sf = (e) => {
6756
6732
  if (!e) return !1;
6757
6733
  let t = tr(e);
6758
6734
  return !Yn.includes(t);
6759
- }, df = ({ value: e, unitkey: t, toUnit: n }) => {
6735
+ }, cf = ({ value: e, unitkey: t, toUnit: n }) => {
6760
6736
  var r;
6761
6737
  let i = Jn[t];
6762
6738
  if (!i || i.length === 0 || !((r = vr(e)) != null && r.valid) || !i.includes(n)) return !1;
6763
6739
  let a = tr(String(e));
6764
6740
  return !(a && !i.includes(a));
6765
- }, ff = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6741
+ }, lf = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6766
6742
  var o;
6767
6743
  let s = sr(e) ? rr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
6768
6744
  if (i || c) return {
@@ -6782,13 +6758,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6782
6758
  value: void 0,
6783
6759
  error: "Source unit is missing"
6784
6760
  };
6785
- if (lf(s)) return {
6761
+ if (of(s)) return {
6786
6762
  value: void 0,
6787
6763
  error: "Value is invalid for conversion"
6788
6764
  };
6789
6765
  try {
6790
6766
  let e = br(s, l);
6791
- if (df({
6767
+ if (cf({
6792
6768
  value: e,
6793
6769
  toUnit: n,
6794
6770
  unitkey: t
@@ -6809,13 +6785,13 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6809
6785
  error: "Conversion not possible"
6810
6786
  };
6811
6787
  }
6812
- }, pf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6813
- let a = rr(e), o = lf(a);
6814
- return !df({
6788
+ }, uf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6789
+ let a = rr(e), o = of(a);
6790
+ return !cf({
6815
6791
  value: e,
6816
6792
  unitkey: n,
6817
6793
  toUnit: t
6818
- }) || uf(e) || o ? { value: a } : sr(e) ? ff({
6794
+ }) || sf(e) || o ? { value: a } : sr(e) ? lf({
6819
6795
  value: e,
6820
6796
  unitkey: n,
6821
6797
  toUnit: t,
@@ -6823,25 +6799,25 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6823
6799
  doNotConvertValue: i,
6824
6800
  exactPrecision: !0
6825
6801
  }) : { value: e };
6826
- }, mf = (e) => mn(e) && !on(e) && !dn(e) ? an(e, "fieldName", "") : typeof e == "string" ? e : "", hf = (e = "") => Yn == null ? void 0 : Yn.includes(e), gf = (e, t) => {
6802
+ }, df = (e) => mn(e) && !on(e) && !dn(e) ? an(e, "fieldName", "") : typeof e == "string" ? e : "", ff = (e = "") => Yn == null ? void 0 : Yn.includes(e), pf = (e, t) => {
6827
6803
  let n = tr(e || "");
6828
- return hf(t) && hf(n);
6829
- }, _f = i(null), vf = () => u(_f), yf = !1, bf = (e) => {
6830
- yf || (yf = !0, _f = e);
6831
- }, xf = (e) => ar(e) ? e : lr(e), Sf = {
6804
+ return ff(t) && ff(n);
6805
+ }, mf = i(null), hf = () => u(mf), gf = !1, _f = (e) => {
6806
+ gf || (gf = !0, mf = e);
6807
+ }, vf = (e) => ar(e) ? e : lr(e), yf = {
6832
6808
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
6833
6809
  inputWrapper: "_inputWrapper_ye9w9_4"
6834
- }, Cf = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: l = "", initUnit: u, noConversion: f = !1, onChange: p = vn, onClick: h = vn, onFocus: g = vn, onSwitchUnit: v = vn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6810
+ }, bf = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: l = "", initUnit: u, noConversion: f = !1, onChange: p = vn, onClick: h = vn, onFocus: g = vn, onSwitchUnit: v = vn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6835
6811
  name: "",
6836
6812
  error: null
6837
6813
  }), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
6838
- let B = vf(), ee = af();
6814
+ let B = hf(), ee = tf();
6839
6815
  typeof c == "number" && (c = `${c}`);
6840
- let [te = "", ne = ""] = c === void 0 ? [] : pr(c), V = m(() => sf(l, C || (B == null ? void 0 : B.unitTemplate)), [
6816
+ let [te = "", ne = ""] = c === void 0 ? [] : pr(c), V = m(() => rf(l, C || (B == null ? void 0 : B.unitTemplate)), [
6841
6817
  l,
6842
6818
  C,
6843
6819
  B == null ? void 0 : B.unitTemplate
6844
- ]), re = gf(c, V), ie = u || V || ne, ae = of(ie), { value: oe } = pf({
6820
+ ]), re = pf(c, V), ie = u || V || ne, ae = nf(ie), { value: oe } = uf({
6845
6821
  value: c,
6846
6822
  toUnit: ie,
6847
6823
  unitkey: l,
@@ -6853,10 +6829,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6853
6829
  } : {
6854
6830
  value: oe,
6855
6831
  unit: ie
6856
- }), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = _(D ? cf.PREDEFINED : cf.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
6832
+ }), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = _(D ? af.PREDEFINED : af.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
6857
6833
  if (!(e != null && e.value)) return;
6858
6834
  if (k) return k === e.valueKey;
6859
- let t = sr(e.value) ? tr(e.value) : "", { value: n = c } = ff({
6835
+ let t = sr(e.value) ? tr(e.value) : "", { value: n = c } = lf({
6860
6836
  value: String(c),
6861
6837
  unitkey: l,
6862
6838
  toUnit: t
@@ -6865,7 +6841,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6865
6841
  }), me = () => {
6866
6842
  var e;
6867
6843
  let t = (e = c) == null ? "" : e, n = se.unit;
6868
- if (!df({
6844
+ if (!cf({
6869
6845
  value: t,
6870
6846
  unitkey: l,
6871
6847
  toUnit: n
@@ -6880,7 +6856,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6880
6856
  return null;
6881
6857
  }
6882
6858
  }, he = (t) => {
6883
- let n = mf(e), r = t.target, { value: i, selectionStart: a } = r, o = br(i, (se == null ? void 0 : se.unit) || "");
6859
+ let n = df(e), r = t.target, { value: i, selectionStart: a } = r, o = br(i, (se == null ? void 0 : se.unit) || "");
6884
6860
  p({ target: {
6885
6861
  value: N ? br(Qn(o, ne), ne) : o,
6886
6862
  name: n
@@ -6902,7 +6878,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6902
6878
  if (ie) {
6903
6879
  let e, t = "";
6904
6880
  if (ae !== ie) {
6905
- let { value: n } = pf({
6881
+ let { value: n } = uf({
6906
6882
  value: c,
6907
6883
  toUnit: ie,
6908
6884
  unitkey: l,
@@ -6911,7 +6887,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6911
6887
  });
6912
6888
  e = n, t = ie;
6913
6889
  } else if (br(se.value, se.unit) !== c) {
6914
- let { value: n } = pf({
6890
+ let { value: n } = uf({
6915
6891
  value: c,
6916
6892
  toUnit: se.unit,
6917
6893
  unitkey: l,
@@ -6923,7 +6899,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6923
6899
  e !== void 0 && ce({
6924
6900
  value: e,
6925
6901
  unit: t
6926
- }), de(E && pe && O ? cf.PREDEFINED : cf.CUSTOM);
6902
+ }), de(E && pe && O ? af.PREDEFINED : af.CUSTOM);
6927
6903
  }
6928
6904
  }, [
6929
6905
  ie,
@@ -6931,14 +6907,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6931
6907
  i,
6932
6908
  O
6933
6909
  ]);
6934
- let _e = me(), ve = cr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = mf(e), xe, Se = (t) => {
6910
+ let _e = me(), ve = cr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = df(e), xe, Se = (t) => {
6935
6911
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = sr(r) ? pr(r) : [r], o = yr(r);
6936
- if (df({
6912
+ if (cf({
6937
6913
  value: r,
6938
6914
  unitkey: l,
6939
6915
  toUnit: a
6940
6916
  })) {
6941
- let { value: e = "" } = pf({
6917
+ let { value: e = "" } = uf({
6942
6918
  value: r,
6943
6919
  toUnit: V,
6944
6920
  unitkey: l,
@@ -6951,7 +6927,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6951
6927
  type: ga.OPTION,
6952
6928
  inline: !0,
6953
6929
  onClick: () => {
6954
- vr(i).valid && !n && (de(cf.PREDEFINED), p({ target: {
6930
+ vr(i).valid && !n && (de(af.PREDEFINED), p({ target: {
6955
6931
  value: r,
6956
6932
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
6957
6933
  predefinedSelected: !0,
@@ -6963,27 +6939,27 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6963
6939
  height: "0"
6964
6940
  })] }),
6965
6941
  description: o,
6966
- selected: pe === t && ue === cf.PREDEFINED
6942
+ selected: pe === t && ue === af.PREDEFINED
6967
6943
  };
6968
6944
  };
6969
6945
  if (xe = [{
6970
6946
  type: ga.OPTION,
6971
6947
  inline: !0,
6972
6948
  onClick: () => {
6973
- ue !== cf.CUSTOM && !n && p({ target: {
6949
+ ue !== af.CUSTOM && !n && p({ target: {
6974
6950
  value: br(se.value, se.unit),
6975
6951
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
6976
6952
  } });
6977
6953
  },
6978
6954
  label: "Custom",
6979
- selected: ue === cf.CUSTOM
6955
+ selected: ue === af.CUSTOM
6980
6956
  }], E != null && E.length) {
6981
6957
  let e = E.map(Se);
6982
6958
  xe = [...xe, ...e];
6983
6959
  }
6984
6960
  let Ce = (e) => {
6985
6961
  if (sr(e)) {
6986
- let t = tr(e), { value: n } = pf({
6962
+ let t = tr(e), { value: n } = uf({
6987
6963
  value: e,
6988
6964
  toUnit: se.unit,
6989
6965
  unitkey: l,
@@ -6995,7 +6971,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
6995
6971
  return e;
6996
6972
  }, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
6997
6973
  return /* @__PURE__ */ x("div", {
6998
- className: ue === cf.PREDEFINED ? y(Sf.predefinedMenuActive) : "",
6974
+ className: ue === af.PREDEFINED ? y(yf.predefinedMenuActive) : "",
6999
6975
  children: /* @__PURE__ */ S(cs, {
7000
6976
  small: o,
7001
6977
  width: s,
@@ -7010,17 +6986,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7010
6986
  trigger: "Component",
7011
6987
  component: /* @__PURE__ */ x(q, {
7012
6988
  groupOrder: "first",
7013
- active: ue === cf.PREDEFINED,
7014
- icon: ue === cf.PREDEFINED ? "link" : "unlink",
6989
+ active: ue === af.PREDEFINED,
6990
+ icon: ue === af.PREDEFINED ? "link" : "unlink",
7015
6991
  small: o
7016
6992
  }),
7017
6993
  small: o,
7018
6994
  sections: xe
7019
6995
  },
7020
- tooltip: ue === cf.PREDEFINED ? pe == null ? void 0 : pe.label : ""
6996
+ tooltip: ue === af.PREDEFINED ? pe == null ? void 0 : pe.label : ""
7021
6997
  }),
7022
6998
  /* @__PURE__ */ x("div", {
7023
- className: Sf.inputWrapper,
6999
+ className: yf.inputWrapper,
7024
7000
  children: /* @__PURE__ */ x(hl, {
7025
7001
  name: be,
7026
7002
  testId: w,
@@ -7062,7 +7038,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7062
7038
  let r = n || t || "", i = or(e) ? e : "";
7063
7039
  return {
7064
7040
  type: "Option",
7065
- label: P ? xf(i) : i,
7041
+ label: P ? vf(i) : i,
7066
7042
  inline: !0,
7067
7043
  onClick: (n) => {
7068
7044
  n.stopPropagation(), ge(e, t);
@@ -7077,10 +7053,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7077
7053
  ]
7078
7054
  })
7079
7055
  });
7080
- }, wf = (e, t) => ({ target: {
7056
+ }, xf = (e, t) => ({ target: {
7081
7057
  name: e,
7082
7058
  value: t
7083
- } }), Tf = (e) => `Value cannot be less than ${e}`, Ef = (e) => `Value cannot be greater than ${e}`, Df = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", onSwitchUnit: l, enableEditUnitInput: u = !1, disabled: f = !1, showUnitInput: p = !0, showArrows: m = !0, unitkey: h = "length", testId: g, noConversion: v = !1, small: b = !1, marks: C, minErrorMessage: w = Tf, maxErrorMessage: T = Ef }) => {
7059
+ } }), Sf = (e) => `Value cannot be less than ${e}`, Cf = (e) => `Value cannot be greater than ${e}`, wf = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", onSwitchUnit: l, enableEditUnitInput: u = !1, disabled: f = !1, showUnitInput: p = !0, showArrows: m = !0, unitkey: h = "length", testId: g, noConversion: v = !1, small: b = !1, marks: C, minErrorMessage: w = Sf, maxErrorMessage: T = Cf }) => {
7084
7060
  let E = br(t, c), [D, O] = _(E), [k, A] = _(!1), [j, M] = _(c);
7085
7061
  d(() => {
7086
7062
  k || O(E);
@@ -7098,7 +7074,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7098
7074
  }, z = () => {
7099
7075
  O(E), A(!1);
7100
7076
  }, B = () => {
7101
- L || I === null || (o(wf(e, I)), s == null || s(wf(e, I)), A(!1));
7077
+ L || I === null || (o(xf(e, I)), s == null || s(xf(e, I)), A(!1));
7102
7078
  }, ee = (e) => {
7103
7079
  M(e), l == null || l(e);
7104
7080
  }, te = (e) => {
@@ -7113,7 +7089,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7113
7089
  }, ne = (e) => {
7114
7090
  e.key === "Enter" && B(), e.key === "Escape" && z();
7115
7091
  }, V = f || k, re = /* @__PURE__ */ S("div", {
7116
- className: rf.actions,
7092
+ className: ef.actions,
7117
7093
  children: [/* @__PURE__ */ x(q, {
7118
7094
  icon: "close",
7119
7095
  small: !0,
@@ -7128,18 +7104,18 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7128
7104
  })]
7129
7105
  });
7130
7106
  return /* @__PURE__ */ S("div", {
7131
- className: rf.wrapper,
7107
+ className: ef.wrapper,
7132
7108
  "data-testid": g && `${g}-wrapper`,
7133
7109
  children: [
7134
7110
  i && /* @__PURE__ */ x("span", {
7135
- className: rf.label,
7111
+ className: ef.label,
7136
7112
  children: /* @__PURE__ */ x(Uo, {
7137
7113
  small: b,
7138
7114
  children: i
7139
7115
  })
7140
7116
  }),
7141
7117
  p && /* @__PURE__ */ x("div", {
7142
- className: y(rf.input, b && rf.inputSmall, u && !f && rf.editable),
7118
+ className: y(ef.input, b && ef.inputSmall, u && !f && ef.editable),
7143
7119
  children: /* @__PURE__ */ x(go, {
7144
7120
  content: re,
7145
7121
  isOpen: k,
@@ -7153,11 +7129,11 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7153
7129
  testId: g && `${g}-edit-popover`,
7154
7130
  toggleOnTriggerClick: !1,
7155
7131
  children: /* @__PURE__ */ x("div", {
7156
- className: rf.inputControl,
7132
+ className: ef.inputControl,
7157
7133
  "data-testid": g && `${g}-edit-trigger`,
7158
7134
  onClick: R,
7159
7135
  onKeyDown: ne,
7160
- children: /* @__PURE__ */ x(Cf, {
7136
+ children: /* @__PURE__ */ x(bf, {
7161
7137
  name: e,
7162
7138
  value: k ? D : E,
7163
7139
  unitkey: h,
@@ -7192,7 +7168,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7192
7168
  })
7193
7169
  ]
7194
7170
  });
7195
- }, Of = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ x(ka, {
7171
+ }, Tf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ x(ka, {
7196
7172
  small: !0,
7197
7173
  margin: "-4px",
7198
7174
  color: "var(--color-text-error)",
@@ -7203,7 +7179,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7203
7179
  margin: "-4px",
7204
7180
  title: n == null ? void 0 : n.toString(),
7205
7181
  children: e
7206
- }) : /* @__PURE__ */ x(b, { children: e }), kf = {
7182
+ }) : /* @__PURE__ */ x(b, { children: e }), Ef = {
7207
7183
  tabs: "_tabs_1rtn8_1",
7208
7184
  padding: "_padding_1rtn8_7",
7209
7185
  margin: "_margin_1rtn8_11",
@@ -7212,7 +7188,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7212
7188
  left: "_left_1rtn8_64",
7213
7189
  right: "_right_1rtn8_64",
7214
7190
  selectionIndicator: "_selectionIndicator_1rtn8_67"
7215
- }, Af = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = vn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7191
+ }, Df = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = vn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7216
7192
  let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = Yc(t, n), p = fn(f) ? void 0 : l ? f : f.value, m = (e) => {
7217
7193
  var t;
7218
7194
  return (t = e.component) == null ? s : t;
@@ -7233,7 +7209,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7233
7209
  "data-testid": o,
7234
7210
  children: /* @__PURE__ */ x(ii, {
7235
7211
  "aria-label": e == null ? "Tabs" : e,
7236
- className: y(kf.tabs, i ? kf.padding : "", a ? kf.margin : ""),
7212
+ className: y(Ef.tabs, i ? Ef.padding : "", a ? Ef.margin : ""),
7237
7213
  children: _.map((e) => {
7238
7214
  let { label: t, url: n, to: r, disabled: i, value: a, right: o, invalid: s, badge: l, testId: u } = e, d = h(e), f = m(e);
7239
7215
  return /* @__PURE__ */ S(ri, {
@@ -7241,23 +7217,23 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7241
7217
  ...!d && n ? { href: n } : {},
7242
7218
  shouldSelectOnPressUp: !0,
7243
7219
  isDisabled: i || c,
7244
- className: y(kf.item, o ? kf.right : kf.left),
7220
+ className: y(Ef.item, o ? Ef.right : Ef.left),
7245
7221
  "data-testid": u,
7246
7222
  render: d && f ? (e) => /* @__PURE__ */ x(f, {
7247
7223
  ...e,
7248
7224
  href: r,
7249
7225
  to: r
7250
7226
  }) : void 0,
7251
- children: [/* @__PURE__ */ x(Of, {
7227
+ children: [/* @__PURE__ */ x(Tf, {
7252
7228
  label: t,
7253
7229
  invalid: s,
7254
7230
  badge: l
7255
- }), /* @__PURE__ */ x(ni, { className: kf.selectionIndicator })]
7231
+ }), /* @__PURE__ */ x(ni, { className: Ef.selectionIndicator })]
7256
7232
  }, a);
7257
7233
  })
7258
7234
  })
7259
7235
  }) : null;
7260
- }, jf = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ x(a, {
7236
+ }, Of = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ x(a, {
7261
7237
  href: t,
7262
7238
  to: t,
7263
7239
  target: n,
@@ -7267,7 +7243,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7267
7243
  link: !0,
7268
7244
  children: e
7269
7245
  })
7270
- }), Mf = {
7246
+ }), kf = {
7271
7247
  inputInTable: "_inputInTable_qbe2o_1",
7272
7248
  inputHover: "_inputHover_qbe2o_13",
7273
7249
  inputFocus: "_inputFocus_qbe2o_18",
@@ -7279,9 +7255,9 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7279
7255
  textarea: "_textarea_qbe2o_81",
7280
7256
  small: "_small_qbe2o_120",
7281
7257
  monospace: "_monospace_qbe2o_159"
7282
- }, Nf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = vn, onKeyPress: s = vn, onFocus: c = vn, onBlur: l = vn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: b }) => {
7258
+ }, Af = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = vn, onKeyPress: s = vn, onFocus: c = vn, onBlur: l = vn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: b }) => {
7283
7259
  let S = u(W), C = /* @__PURE__ */ x("textarea", {
7284
- className: y(Mf.textarea, f ? Mf.error : "", p ? Mf.warning : "", _ ? Mf.monospace : "", v ? Mf.small : ""),
7260
+ className: y(kf.textarea, f ? kf.error : "", p ? kf.warning : "", _ ? kf.monospace : "", v ? kf.small : ""),
7285
7261
  name: e,
7286
7262
  value: t,
7287
7263
  placeholder: n,
@@ -7323,10 +7299,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7323
7299
  menu: "_menu_oyr59_139",
7324
7300
  active: "_active_oyr59_168",
7325
7301
  alert: "_alert_oyr59_193"
7326
- }, Pf = ({ warning: e }) => /* @__PURE__ */ x("div", {
7302
+ }, jf = ({ warning: e }) => /* @__PURE__ */ x("div", {
7327
7303
  className: Q.alert,
7328
7304
  children: e
7329
- }), Ff = ({ icon: e, url: t, onClick: n }) => {
7305
+ }), Mf = ({ icon: e, url: t, onClick: n }) => {
7330
7306
  let r = /* @__PURE__ */ x(G, { icon: e });
7331
7307
  return t ? /* @__PURE__ */ x("a", {
7332
7308
  href: t,
@@ -7338,7 +7314,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7338
7314
  className: Q.appSwitcher,
7339
7315
  children: r
7340
7316
  });
7341
- }, If = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7317
+ }, Nf = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7342
7318
  let a = /* @__PURE__ */ S("div", {
7343
7319
  className: Q.title,
7344
7320
  children: [
@@ -7367,9 +7343,9 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7367
7343
  children: a
7368
7344
  })
7369
7345
  });
7370
- }, Lf = /* @__PURE__ */ function(e) {
7346
+ }, Pf = /* @__PURE__ */ function(e) {
7371
7347
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
7372
- }({}), Rf = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7348
+ }({}), Ff = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7373
7349
  let c = u(W);
7374
7350
  return /* @__PURE__ */ S(s, {
7375
7351
  className: y(Q.link, i ? Q.active : ""),
@@ -7386,11 +7362,11 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7386
7362
  children: e
7387
7363
  })]
7388
7364
  });
7389
- }, zf = ({ element: e }) => {
7365
+ }, If = ({ element: e }) => {
7390
7366
  switch (e.type) {
7391
- case Lf.LINK: return /* @__PURE__ */ x("div", {
7367
+ case Pf.LINK: return /* @__PURE__ */ x("div", {
7392
7368
  className: Q.item,
7393
- children: /* @__PURE__ */ x(Rf, {
7369
+ children: /* @__PURE__ */ x(Ff, {
7394
7370
  label: e.label,
7395
7371
  url: e.url,
7396
7372
  icon: e.icon,
@@ -7401,7 +7377,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7401
7377
  component: e.component
7402
7378
  })
7403
7379
  });
7404
- case Lf.BUTTON: return /* @__PURE__ */ x("div", {
7380
+ case Pf.BUTTON: return /* @__PURE__ */ x("div", {
7405
7381
  className: y(Q.item, Q.button),
7406
7382
  children: /* @__PURE__ */ x(q, {
7407
7383
  label: e.label,
@@ -7413,7 +7389,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7413
7389
  testId: e.testId
7414
7390
  })
7415
7391
  });
7416
- case Lf.MENU: return /* @__PURE__ */ x("div", {
7392
+ case Pf.MENU: return /* @__PURE__ */ x("div", {
7417
7393
  className: y(Q.item, Q.menu),
7418
7394
  children: /* @__PURE__ */ x(Va, {
7419
7395
  maxHeight: "100%",
@@ -7421,7 +7397,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7421
7397
  trigger: pi.COMPONENT,
7422
7398
  fullHeightTrigger: !0,
7423
7399
  placement: "bottom-start",
7424
- component: /* @__PURE__ */ x(Rf, {
7400
+ component: /* @__PURE__ */ x(Ff, {
7425
7401
  label: e.label,
7426
7402
  icon: e.icon,
7427
7403
  onClick: e.onClick
@@ -7430,50 +7406,50 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7430
7406
  }
7431
7407
  })
7432
7408
  });
7433
- case Lf.COMPONENT: return /* @__PURE__ */ x("div", {
7409
+ case Pf.COMPONENT: return /* @__PURE__ */ x("div", {
7434
7410
  className: Q.item,
7435
7411
  children: e.component
7436
7412
  });
7437
7413
  default: return null;
7438
7414
  }
7439
- }, Bf = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ S("div", { children: [i && /* @__PURE__ */ x(Pf, { warning: i }), /* @__PURE__ */ S("div", {
7415
+ }, Lf = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ S("div", { children: [i && /* @__PURE__ */ x(jf, { warning: i }), /* @__PURE__ */ S("div", {
7440
7416
  className: y(Q.topbar, o ? Q.fixed : ""),
7441
7417
  style: { height: a },
7442
7418
  children: [
7443
- !!t && /* @__PURE__ */ x(Ff, {
7419
+ !!t && /* @__PURE__ */ x(Mf, {
7444
7420
  icon: t.icon,
7445
7421
  url: t.url,
7446
7422
  onClick: t.onClick
7447
7423
  }),
7448
7424
  /* @__PURE__ */ S("div", {
7449
7425
  className: Q.left,
7450
- children: [e && /* @__PURE__ */ x(If, {
7426
+ children: [e && /* @__PURE__ */ x(Nf, {
7451
7427
  label: e.label,
7452
7428
  logo: e.logo,
7453
7429
  url: e.url,
7454
7430
  version: e.version,
7455
7431
  onClick: e.onClick
7456
- }), n.map((e, t) => e ? /* @__PURE__ */ x(zf, { element: e }, t) : null)]
7432
+ }), n.map((e, t) => e ? /* @__PURE__ */ x(If, { element: e }, t) : null)]
7457
7433
  }),
7458
7434
  /* @__PURE__ */ x("div", {
7459
7435
  className: Q.right,
7460
- children: r.map((e, t) => e ? /* @__PURE__ */ x(zf, { element: e }, t) : null)
7436
+ children: r.map((e, t) => e ? /* @__PURE__ */ x(If, { element: e }, t) : null)
7461
7437
  })
7462
7438
  ]
7463
- })] }), Vf = {
7439
+ })] }), Rf = {
7464
7440
  popConfirm: "_popConfirm_1x6ye_1",
7465
7441
  content: "_content_1x6ye_7",
7466
7442
  buttons: "_buttons_1x6ye_13"
7467
- }, Hf = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ S("div", {
7468
- className: Vf.popConfirm,
7443
+ }, zf = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ S("div", {
7444
+ className: Rf.popConfirm,
7469
7445
  children: [e && /* @__PURE__ */ x("div", {
7470
- className: Vf.content,
7446
+ className: Rf.content,
7471
7447
  children: /* @__PURE__ */ x(Uo, {
7472
7448
  small: !0,
7473
7449
  children: e
7474
7450
  })
7475
7451
  }), /* @__PURE__ */ S("div", {
7476
- className: Vf.buttons,
7452
+ className: Rf.buttons,
7477
7453
  children: [/* @__PURE__ */ x(q, {
7478
7454
  small: !0,
7479
7455
  colored: !0,
@@ -7488,8 +7464,8 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7488
7464
  testId: `${s}-cancel-button`
7489
7465
  })]
7490
7466
  })]
7491
- }), Uf = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, testId: u = void 0 }) => /* @__PURE__ */ x(go, {
7492
- content: /* @__PURE__ */ x(Hf, {
7467
+ }), Bf = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, testId: u = void 0 }) => /* @__PURE__ */ x(go, {
7468
+ content: /* @__PURE__ */ x(zf, {
7493
7469
  title: i,
7494
7470
  okText: s,
7495
7471
  onClickOk: c,
@@ -7503,14 +7479,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7503
7479
  fullWidth: r,
7504
7480
  testId: u,
7505
7481
  children: e
7506
- }), Wf = {
7482
+ }), Vf = {
7507
7483
  tree: "_tree_coxxe_1",
7508
7484
  toggle: "_toggle_coxxe_8",
7509
7485
  dropTarget: "_dropTarget_coxxe_15",
7510
7486
  placeholder: "_placeholder_coxxe_30",
7511
7487
  draggingSource: "_draggingSource_coxxe_36",
7512
7488
  placeholderContainer: "_placeholderContainer_coxxe_39"
7513
- }, Gf = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7489
+ }, Hf = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7514
7490
  let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, _] = e.useState(!1), [v, b] = e.useState(0), C = (e) => {
7515
7491
  e.stopPropagation(), i(l);
7516
7492
  }, w = (e) => {
@@ -7537,7 +7513,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7537
7513
  className: y(Z.itemHeader, g ? Z.noPointerEvents : ""),
7538
7514
  children: [
7539
7515
  a && /* @__PURE__ */ x("div", {
7540
- className: Wf.toggle,
7516
+ className: Vf.toggle,
7541
7517
  children: /* @__PURE__ */ x(q, {
7542
7518
  basic: !0,
7543
7519
  colored: r ? !0 : mi.MUTED,
@@ -7551,10 +7527,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7551
7527
  className: Z.drag,
7552
7528
  children: /* @__PURE__ */ x(G, { icon: U.DRAG })
7553
7529
  }),
7554
- /* @__PURE__ */ x(yd, { item: u }),
7530
+ /* @__PURE__ */ x(gd, { item: u }),
7555
7531
  /* @__PURE__ */ S("div", {
7556
7532
  className: Z.right,
7557
- children: [/* @__PURE__ */ x(bd, { item: u }), !f && h.length > 0 && /* @__PURE__ */ x("div", {
7533
+ children: [/* @__PURE__ */ x(_d, { item: u }), !f && h.length > 0 && /* @__PURE__ */ x("div", {
7558
7534
  className: Z.actions,
7559
7535
  children: /* @__PURE__ */ x(Ua, { actions: h })
7560
7536
  })]
@@ -7562,10 +7538,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7562
7538
  ]
7563
7539
  })
7564
7540
  });
7565
- }, Kf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ x("div", {
7566
- className: Wf.placeholder,
7541
+ }, Uf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ x("div", {
7542
+ className: Vf.placeholder,
7567
7543
  style: { left: `calc(${t} * ${e})` }
7568
- }), qf = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: l, onItemToggle: u, icons: f, allowParentReassignment: p, stickyHeader: m, height: h, render: _, placeholderIndent: v }) => {
7544
+ }), Wf = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: l, onItemToggle: u, icons: f, allowParentReassignment: p, stickyHeader: m, height: h, render: _, placeholderIndent: v }) => {
7569
7545
  var y;
7570
7546
  let b = c == null ? g(null) : c, C = (e) => {
7571
7547
  i && i(e);
@@ -7623,7 +7599,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7623
7599
  "data-testid": a,
7624
7600
  className: Z.list,
7625
7601
  style: { height: h },
7626
- children: [e.name && !e.noHeader && /* @__PURE__ */ x(gd, {
7602
+ children: [e.name && !e.noHeader && /* @__PURE__ */ x(pd, {
7627
7603
  name: e.name,
7628
7604
  actions: e.actions,
7629
7605
  stickyHeader: m
@@ -7650,7 +7626,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7650
7626
  hasChild: r,
7651
7627
  isOpen: a,
7652
7628
  onToggle: o
7653
- }) : /* @__PURE__ */ x(Gf, {
7629
+ }) : /* @__PURE__ */ x(Hf, {
7654
7630
  hasChild: l ? l(e) : r,
7655
7631
  node: e,
7656
7632
  depth: t,
@@ -7666,7 +7642,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7666
7642
  onDrop: A,
7667
7643
  onChangeOpen: C,
7668
7644
  dropTargetOffset: 10,
7669
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ x(Kf, {
7645
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ x(Uf, {
7670
7646
  depth: t,
7671
7647
  indent: v
7672
7648
  }),
@@ -7674,17 +7650,17 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7674
7650
  listComponent: "div",
7675
7651
  listItemComponent: "div",
7676
7652
  classes: {
7677
- root: Wf.tree,
7678
- draggingSource: Wf.draggingSource,
7679
- dropTarget: Wf.dropTarget,
7680
- placeholder: Wf.placeholderContainer
7653
+ root: Vf.tree,
7654
+ draggingSource: Vf.draggingSource,
7655
+ dropTarget: Vf.dropTarget,
7656
+ placeholder: Vf.placeholderContainer
7681
7657
  },
7682
7658
  initialOpen: o,
7683
7659
  enableAnimateExpand: !0
7684
7660
  })
7685
7661
  })]
7686
7662
  });
7687
- }, Jf = {
7663
+ }, Gf = {
7688
7664
  treeTable: "_treeTable_1ywvy_1",
7689
7665
  treeTableHeader: "_treeTableHeader_1ywvy_22",
7690
7666
  folderCell: "_folderCell_1ywvy_30",
@@ -7692,48 +7668,48 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7692
7668
  drag: "_drag_1ywvy_31",
7693
7669
  folder: "_folder_1ywvy_30",
7694
7670
  active: "_active_1ywvy_61"
7695
- }, Yf = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Yf(e, t.id)]), Xf = (e, t) => {
7671
+ }, Kf = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Kf(e, t.id)]), qf = (e, t) => {
7696
7672
  let n = new Set(t);
7697
7673
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
7698
- }, Zf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Qf = (e, t, n, r = []) => {
7674
+ }, Jf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Yf = (e, t, n, r = []) => {
7699
7675
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
7700
7676
  if (o.length === 0) return {
7701
7677
  checked: i.has(t),
7702
7678
  indeterminate: !1
7703
7679
  };
7704
- let s = o.map((t) => Qf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7680
+ let s = o.map((t) => Yf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7705
7681
  return {
7706
7682
  checked: u,
7707
7683
  indeterminate: c + l > 0 && !u
7708
7684
  };
7709
- }, $f = (e, t, n = []) => {
7710
- let r = Xf(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7685
+ }, Xf = (e, t, n = []) => {
7686
+ let r = qf(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7711
7687
  return {
7712
7688
  checked: r.length > 0 && a === r.length,
7713
7689
  indeterminate: a > 0 && a < r.length
7714
7690
  };
7715
- }, ep = i(null), tp = () => u(ep), np = ({ children: e, rowCheckboxes: t, rows: n }) => {
7691
+ }, Zf = i(null), Qf = () => u(Zf), $f = ({ children: e, rowCheckboxes: t, rows: n }) => {
7716
7692
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = m(() => new Set(a), [a]), u = m(() => {
7717
7693
  if (!r) return null;
7718
7694
  let e = /* @__PURE__ */ new Map();
7719
- for (let t of n) e.set(t.id, Qf(n, t.id, i, a));
7695
+ for (let t of n) e.set(t.id, Yf(n, t.id, i, a));
7720
7696
  return e;
7721
7697
  }, [
7722
7698
  i,
7723
7699
  a,
7724
7700
  r,
7725
7701
  n
7726
- ]), d = m(() => r ? $f(n, i, a) : void 0, [
7702
+ ]), d = m(() => r ? Xf(n, i, a) : void 0, [
7727
7703
  i,
7728
7704
  a,
7729
7705
  r,
7730
7706
  n
7731
7707
  ]), f = l((e) => u == null ? void 0 : u.get(e), [u]), p = l((e) => c.has(e), [c]), h = l((e) => o == null ? void 0 : o(e), [o]), g = l((e) => {
7732
7708
  if (!r || c.has(e)) return;
7733
- let t = Yf(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = Qf(n, e, i, a);
7709
+ let t = Kf(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = Yf(n, e, i, a);
7734
7710
  if (u) {
7735
7711
  let e = new Set(l);
7736
- s == null || s(Zf(i, e, c));
7712
+ s == null || s(Jf(i, e, c));
7737
7713
  } else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
7738
7714
  }, [
7739
7715
  i,
@@ -7744,7 +7720,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7744
7720
  n
7745
7721
  ]), _ = l(() => {
7746
7722
  if (!r) return;
7747
- let e = Xf(n, a), { checked: t } = $f(n, i, a);
7723
+ let e = qf(n, a), { checked: t } = Xf(n, i, a);
7748
7724
  t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
7749
7725
  }, [
7750
7726
  i,
@@ -7770,12 +7746,12 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7770
7746
  _,
7771
7747
  g
7772
7748
  ]);
7773
- return /* @__PURE__ */ x(ep.Provider, {
7749
+ return /* @__PURE__ */ x(Zf.Provider, {
7774
7750
  value: v,
7775
7751
  children: e
7776
7752
  });
7777
- }, rp = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
7778
- let h = tp(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, _ = g == null ? void 0 : g.checked, v = g == null ? void 0 : g.indeterminate, b = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
7753
+ }, ep = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
7754
+ let h = Qf(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, _ = g == null ? void 0 : g.checked, v = g == null ? void 0 : g.indeterminate, b = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
7779
7755
  let r = t ? t[e] : void 0;
7780
7756
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
7781
7757
  };
@@ -7788,7 +7764,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7788
7764
  onDragLeave: f,
7789
7765
  children: /* @__PURE__ */ x("tbody", { children: /* @__PURE__ */ S("tr", {
7790
7766
  onClick: j,
7791
- className: y(Jf.treeTableRow, A ? Jf.active : void 0),
7767
+ className: y(Gf.treeTableRow, A ? Gf.active : void 0),
7792
7768
  children: [
7793
7769
  C && /* @__PURE__ */ x(zl, {
7794
7770
  isHeader: !1,
@@ -7802,19 +7778,19 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7802
7778
  }
7803
7779
  }),
7804
7780
  r && /* @__PURE__ */ x("td", {
7805
- className: Jf.dragCell,
7781
+ className: Gf.dragCell,
7806
7782
  children: /* @__PURE__ */ x("div", {
7807
- className: Jf.drag,
7783
+ className: Gf.drag,
7808
7784
  onClick: (e) => e.stopPropagation(),
7809
7785
  ref: i,
7810
7786
  children: /* @__PURE__ */ x(G, { icon: U.DRAG })
7811
7787
  })
7812
7788
  }),
7813
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ x("td", { className: Jf.folderCell }, t)),
7789
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ x("td", { className: Gf.folderCell }, t)),
7814
7790
  M && /* @__PURE__ */ x("td", {
7815
- className: Jf.folderCell,
7791
+ className: Gf.folderCell,
7816
7792
  children: /* @__PURE__ */ x("div", {
7817
- className: Jf.folder,
7793
+ className: Gf.folder,
7818
7794
  onClick: () => m(E),
7819
7795
  onMouseDown: (e) => e.stopPropagation(),
7820
7796
  children: /* @__PURE__ */ x(q, {
@@ -7846,10 +7822,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7846
7822
  ]
7847
7823
  }) })
7848
7824
  });
7849
- }, ip = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
7850
- let a = tp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
7825
+ }, tp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
7826
+ let a = Qf(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
7851
7827
  return /* @__PURE__ */ x("table", {
7852
- className: y(Vs.table, Jf.treeTableHeader),
7828
+ className: y(Vs.table, Gf.treeTableHeader),
7853
7829
  children: /* @__PURE__ */ x("thead", { children: i.map((i, c) => /* @__PURE__ */ S("tr", { children: [
7854
7830
  s && c === 0 ? /* @__PURE__ */ x(zl, {
7855
7831
  isHeader: !0,
@@ -7860,7 +7836,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7860
7836
  onChange: a.toggleHeaderCheck
7861
7837
  }
7862
7838
  }) : s ? /* @__PURE__ */ x("td", {}) : null,
7863
- n && /* @__PURE__ */ x("th", { className: Jf.dragCell }),
7839
+ n && /* @__PURE__ */ x("th", { className: Gf.dragCell }),
7864
7840
  i.cells.map((n, r) => {
7865
7841
  let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
7866
7842
  return /* @__PURE__ */ x(zl, {
@@ -7880,22 +7856,22 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7880
7856
  })
7881
7857
  ] }, c)) })
7882
7858
  });
7883
- }, ap = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
7859
+ }, np = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
7884
7860
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = cl(v, _ == null ? [] : _);
7885
- return /* @__PURE__ */ x(np, {
7861
+ return /* @__PURE__ */ x($f, {
7886
7862
  rowCheckboxes: u,
7887
7863
  rows: v,
7888
7864
  children: /* @__PURE__ */ S("div", {
7889
- className: Jf.treeTable,
7865
+ className: Gf.treeTable,
7890
7866
  "data-testid": f,
7891
7867
  style: { width: g },
7892
- children: [!!_ && /* @__PURE__ */ x(ip, {
7868
+ children: [!!_ && /* @__PURE__ */ x(tp, {
7893
7869
  columnAlignment: m,
7894
7870
  columnWidths: h,
7895
7871
  draggable: r,
7896
7872
  hasRowActions: y,
7897
7873
  headers: _
7898
- }), /* @__PURE__ */ x(qf, {
7874
+ }), /* @__PURE__ */ x(Wf, {
7899
7875
  allowParentReassignment: e,
7900
7876
  autoOpenActiveItems: t,
7901
7877
  canDrop: n,
@@ -7911,7 +7887,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7911
7887
  onItemToggle: s,
7912
7888
  onListReorder: c,
7913
7889
  placeholderIndent: "var(--size)",
7914
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ x(rp, {
7890
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ x(ep, {
7915
7891
  node: e,
7916
7892
  columnAlignment: m,
7917
7893
  columnWidths: h,
@@ -7928,10 +7904,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7928
7904
  })]
7929
7905
  })
7930
7906
  });
7931
- }, op = Object.freeze({
7907
+ }, rp = Object.freeze({
7932
7908
  Translations: "translations",
7933
7909
  LanguageKey: "languageKey"
7934
- }), sp = {
7910
+ }), ip = {
7935
7911
  unified: "Unified",
7936
7912
  split: "Split",
7937
7913
  changesTooLarge: "Changes are too large to be shown",
@@ -7954,63 +7930,68 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
7954
7930
  showAll: "Show all",
7955
7931
  unknown: "Unknown",
7956
7932
  unexpectedError: "Unexpected error"
7957
- }, cp = (e) => Object.keys(sp).reduce((t, n) => ({
7933
+ }, ap = (e) => Object.keys(ip).reduce((t, n) => ({
7958
7934
  ...t,
7959
- [n]: (e == null ? void 0 : e[n]) || (sp == null ? void 0 : sp[n])
7960
- }), {}), lp = {
7961
- [op.Translations]: cp(),
7962
- [op.LanguageKey]: "en"
7963
- }, up = (e) => e ? lp[e] : lp, dp = (e, t) => {
7964
- lp[e] = t;
7965
- }, fp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7935
+ [n]: (e == null ? void 0 : e[n]) || (ip == null ? void 0 : ip[n])
7936
+ }), {}), op = {
7937
+ [rp.Translations]: ap(),
7938
+ [rp.LanguageKey]: "en"
7939
+ }, sp = (e) => e ? op[e] : op, cp = (e, t) => {
7940
+ op[e] = t;
7941
+ }, lp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7966
7942
  var a;
7967
- let { unitTemplate: o = null } = (a = vf()) == null ? {} : a;
7968
- return e[n] = r == null ? sf(n, o) : r, t[n] = i, {
7943
+ let { unitTemplate: o = null } = (a = hf()) == null ? {} : a;
7944
+ return e[n] = r == null ? rf(n, o) : r, t[n] = i, {
7969
7945
  preferredUnits: e,
7970
7946
  storageUnits: t
7971
7947
  };
7972
7948
  }, {
7973
7949
  preferredUnits: {},
7974
7950
  storageUnits: {}
7975
- }), pp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
7951
+ }), up = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7976
7952
  ...e,
7977
- cells: e.cells.map((e) => {
7978
- if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
7979
- let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, { value: p = s } = ff({
7980
- value: gr(s),
7981
- unitkey: o,
7982
- toUnit: u,
7983
- fromUnit: d
7984
- }), m = f ? p : e.value, h = c ? c(m, u) : m;
7953
+ cells: e.cells.map((e, s) => {
7954
+ if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
7955
+ let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = lf({
7956
+ value: gr(l),
7957
+ unitkey: c,
7958
+ toUnit: f,
7959
+ fromUnit: p
7960
+ }), g = m ? h : e.value, _ = u ? u(g, f) : g;
7985
7961
  return {
7986
7962
  ...e,
7987
- value: h,
7988
- enableCosmeticRounding: i,
7989
- enableDisplayRounding: a,
7990
- roundDisplayValue: l,
7963
+ value: _,
7964
+ enableCosmeticRounding: a,
7965
+ enableDisplayRounding: o,
7966
+ roundDisplayValue: d,
7991
7967
  selectOnFocus: !0,
7992
- onChange: (t) => {
7993
- let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = ff({
7994
- value: String(i),
7995
- unitkey: o,
7968
+ onChange: (n) => {
7969
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = lf({
7970
+ value: String(r),
7971
+ unitkey: c,
7996
7972
  toUnit: a,
7997
- fromUnit: u
7998
- }), c = f ? s : i;
7999
- "onChange" in e && typeof e.onChange == "function" && e.onChange({
8000
- ...n,
8001
- target: {
8002
- ...n.target,
8003
- value: String(c),
8004
- unit: a
8005
- }
8006
- });
7973
+ fromUnit: f
7974
+ }), l = m ? o : r;
7975
+ if ("onChange" in e) {
7976
+ let { onChange: r } = e;
7977
+ r({
7978
+ ...n,
7979
+ target: {
7980
+ ...n.target,
7981
+ value: String(l),
7982
+ rowIndex: t,
7983
+ cellIndex: s,
7984
+ unit: a
7985
+ }
7986
+ });
7987
+ }
8007
7988
  }
8008
7989
  };
8009
7990
  }
8010
7991
  return e;
8011
7992
  })
8012
- }), mp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
8013
- let { translations: i } = up();
7993
+ }), dp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7994
+ let { translations: i } = sp();
8014
7995
  return e ? e.map((e) => ({
8015
7996
  ...e,
8016
7997
  cells: e.cells.map((e) => {
@@ -8039,8 +8020,8 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8039
8020
  return e;
8040
8021
  })
8041
8022
  })) : [];
8042
- }, hp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8043
- let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = fp(t), m = of(p), [h, g] = _(p), v = ({ unitKey: e, value: n }) => {
8023
+ }, fp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8024
+ let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = lp(t), m = nf(p), [h, g] = _(p), v = ({ unitKey: e, value: n }) => {
8044
8025
  g((t) => ({
8045
8026
  ...t,
8046
8027
  [e]: n
@@ -8051,11 +8032,12 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8051
8032
  newUnit: n,
8052
8033
  unitKey: e
8053
8034
  });
8054
- }, y = l(({ row: e, rowIndex: t }) => pp({
8035
+ }, y = l(({ row: e, rowIndex: t }) => up({
8055
8036
  row: s ? s({
8056
8037
  row: e,
8057
8038
  rowIndex: t
8058
8039
  }) : e,
8040
+ rowIndex: t,
8059
8041
  selectedUnits: h,
8060
8042
  storageUnits: f,
8061
8043
  convertBackToStorageUnit: n,
@@ -8076,10 +8058,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8076
8058
  value: n
8077
8059
  });
8078
8060
  });
8079
- }, [t]), /* @__PURE__ */ x(Jl, {
8061
+ }, [t]), /* @__PURE__ */ x(Gl, {
8080
8062
  table: {
8081
8063
  ...u,
8082
- headers: mp({
8064
+ headers: dp({
8083
8065
  headers: e.headers,
8084
8066
  selectedUnits: h,
8085
8067
  storageUnits: f,
@@ -8090,8 +8072,8 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8090
8072
  canListReorder: o,
8091
8073
  beforeRenderRow: y
8092
8074
  });
8093
- }, gp = { settingField: "_settingField_1x02n_1" }, _p = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
8094
- let { translations: d } = up(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ S(e.Fragment, { children: [t, /* @__PURE__ */ x("br", {})] }, n)), p = [
8075
+ }, pp = { settingField: "_settingField_1x02n_1" }, mp = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
8076
+ let { translations: d } = sp(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ S(e.Fragment, { children: [t, /* @__PURE__ */ x("br", {})] }, n)), p = [
8095
8077
  ...r ? [] : [{
8096
8078
  label: d == null ? void 0 : d.allUsers,
8097
8079
  value: !1
@@ -8106,14 +8088,14 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8106
8088
  }] : []
8107
8089
  ], m = a !== void 0 && o !== void 0 && !ln(a, o);
8108
8090
  return /* @__PURE__ */ S("div", {
8109
- className: gp.settingField,
8091
+ className: pp.settingField,
8110
8092
  "data-testid": u,
8111
- children: [/* @__PURE__ */ S(fd, {
8093
+ children: [/* @__PURE__ */ S(ld, {
8112
8094
  justifyContent: "space-between",
8113
8095
  wrap: !1,
8114
8096
  children: [i, !s && /* @__PURE__ */ x("div", {
8115
8097
  style: { flexShrink: 0 },
8116
- children: /* @__PURE__ */ S(fd, {
8098
+ children: /* @__PURE__ */ S(ld, {
8117
8099
  gap: "8px",
8118
8100
  alignItems: "center",
8119
8101
  children: [m && /* @__PURE__ */ x(ta, {
@@ -8138,19 +8120,19 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8138
8120
  children: f(t)
8139
8121
  })]
8140
8122
  });
8141
- }, vp = (e, t) => {
8123
+ }, hp = (e, t) => {
8142
8124
  let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
8143
8125
  return {
8144
8126
  added: Math.max(0, i),
8145
8127
  removed: Math.max(0, a)
8146
8128
  };
8147
- }, yp = "split", bp = "unified", xp = ({ oldJson: e, newJson: t, viewType: n = yp }) => {
8129
+ }, gp = "split", _p = "unified", vp = ({ oldJson: e, newJson: t, viewType: n = gp }) => {
8148
8130
  var r, i;
8149
- let { translations: a } = up(), [o, s] = _(n), c = [{
8150
- value: yp,
8131
+ let { translations: a } = sp(), [o, s] = _(n), c = [{
8132
+ value: gp,
8151
8133
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
8152
8134
  }, {
8153
- value: bp,
8135
+ value: _p,
8154
8136
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
8155
8137
  }];
8156
8138
  d(() => {
@@ -8158,10 +8140,10 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8158
8140
  }, [n]);
8159
8141
  let l = ({ target: { value: e } }) => {
8160
8142
  s(e);
8161
- }, { added: u, removed: f } = vp(e, t), p = u + f > 3500;
8143
+ }, { added: u, removed: f } = hp(e, t), p = u + f > 3500;
8162
8144
  return /* @__PURE__ */ x(b, { children: /* @__PURE__ */ x(Za, {
8163
8145
  bordered: !0,
8164
- heading: /* @__PURE__ */ S(fd, {
8146
+ heading: /* @__PURE__ */ S(ld, {
8165
8147
  gap: !0,
8166
8148
  children: [/* @__PURE__ */ x(Yo, { children: /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ S(Uo, {
8167
8149
  success: !0,
@@ -8173,7 +8155,7 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8173
8155
  }), /* @__PURE__ */ S(Uo, {
8174
8156
  error: !0,
8175
8157
  children: ["-", f]
8176
- })] }) }), !p && /* @__PURE__ */ x(Hd, {
8158
+ })] }) }), !p && /* @__PURE__ */ x(zd, {
8177
8159
  name: "viewType",
8178
8160
  options: c,
8179
8161
  value: o,
@@ -8191,14 +8173,84 @@ var Co = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), wo =
8191
8173
  }) : /* @__PURE__ */ x(ui, {
8192
8174
  oldValue: e,
8193
8175
  newValue: t,
8194
- splitView: o === yp,
8176
+ splitView: o === gp,
8195
8177
  compareMethod: di.WORDS
8196
8178
  })
8197
8179
  }) });
8180
+ }, yp = { backgroundColor: "var(--color-background-error-muted)" }, bp = { backgroundColor: "var(--color-background-success-muted)" }, xp = { backgroundColor: "var(--color-background-warning-muted)" }, Sp = (e) => {
8181
+ if ("value" in e) return e.value;
8182
+ }, Cp = (e) => {
8183
+ var t;
8184
+ let n = (t = e.cells) != null && t[0] ? Sp(e.cells[0]) : void 0;
8185
+ return n == null ? "" : String(n);
8186
+ }, wp = (e, t) => ({
8187
+ ...e,
8188
+ cells: e.cells.map((e) => ({
8189
+ ...e,
8190
+ style: {
8191
+ ...e.style,
8192
+ ...t
8193
+ }
8194
+ }))
8195
+ }), Tp = (e, t) => ({
8196
+ ...e,
8197
+ cells: e.cells.map((e, n) => {
8198
+ var r;
8199
+ let i = (r = t.cells) == null ? void 0 : r[n];
8200
+ return !i || ln(Sp(e), Sp(i)) ? e : {
8201
+ ...e,
8202
+ style: {
8203
+ ...e.style,
8204
+ ...xp
8205
+ },
8206
+ tooltip: Sp(i)
8207
+ };
8208
+ })
8209
+ }), Ep = (e = [], t = []) => {
8210
+ let n = /* @__PURE__ */ new Map();
8211
+ for (let e of t) n.set(Cp(e), e);
8212
+ let r = new Set(e.map(Cp)), i = /* @__PURE__ */ new Map(), a = [];
8213
+ for (let e = 0; e < t.length; e++) {
8214
+ let n = t[e], s = Cp(n);
8215
+ if (r.has(s)) continue;
8216
+ let c = null;
8217
+ for (let n = e + 1; n < t.length; n++) {
8218
+ let e = Cp(t[n]);
8219
+ if (r.has(e)) {
8220
+ c = e;
8221
+ break;
8222
+ }
8223
+ }
8224
+ if (c === null) a.push(n);
8225
+ else {
8226
+ var o;
8227
+ let e = (o = i.get(c)) == null ? [] : o;
8228
+ e.push(n), i.set(c, e);
8229
+ }
8230
+ }
8231
+ let s = [];
8232
+ for (let t of e) {
8233
+ let e = Cp(t), r = i.get(e);
8234
+ if (r) for (let e of r) s.push(wp(e, yp));
8235
+ let a = n.get(e);
8236
+ a ? s.push(Tp(t, a)) : s.push(wp(t, bp));
8237
+ }
8238
+ for (let e of a) s.push(wp(e, yp));
8239
+ return s;
8240
+ }, Dp = ({ table: e, compareRows: t, ...n }) => {
8241
+ let r = Ep(e.rows, t);
8242
+ return /* @__PURE__ */ x(Gl, {
8243
+ ...n,
8244
+ table: {
8245
+ ...e,
8246
+ rows: r,
8247
+ striped: !1
8248
+ }
8249
+ });
8198
8250
  };
8199
8251
  //#endregion
8200
8252
  //#region src/helpers/date.ts
8201
- function Sp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8253
+ function Op({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8202
8254
  return e ? new Date(e).toLocaleString(a, {
8203
8255
  year: "numeric",
8204
8256
  month: "short",
@@ -8212,28 +8264,28 @@ function Sp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
8212
8264
  }
8213
8265
  //#endregion
8214
8266
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
8215
- function Cp(e) {
8267
+ function kp(e) {
8216
8268
  var t;
8217
8269
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
8218
8270
  if (!n) throw Error("Invalid RegExp");
8219
8271
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
8220
8272
  }
8221
- function wp(e) {
8273
+ function Ap(e) {
8222
8274
  if (typeof e != "object") return e;
8223
8275
  if (e === null) return null;
8224
- if (Array.isArray(e)) return e.map(wp);
8276
+ if (Array.isArray(e)) return e.map(Ap);
8225
8277
  if (e instanceof Date) return new Date(e.getTime());
8226
- if (e instanceof RegExp) return Cp(e);
8278
+ if (e instanceof RegExp) return kp(e);
8227
8279
  let t = {};
8228
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = wp(e[n]));
8280
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Ap(e[n]));
8229
8281
  return t;
8230
8282
  }
8231
8283
  //#endregion
8232
8284
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
8233
- function Tp(e, t) {
8285
+ function jp(e, t) {
8234
8286
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
8235
8287
  }
8236
- var Ep = (e) => e[e.length - 1], Dp = class {
8288
+ var Mp = (e) => e[e.length - 1], Np = class {
8237
8289
  setResult(e) {
8238
8290
  return this.result = e, this.hasResult = !0, this;
8239
8291
  }
@@ -8241,16 +8293,16 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8241
8293
  return this.exiting = !0, this;
8242
8294
  }
8243
8295
  push(e, t) {
8244
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Tp(this.children), Ep(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8296
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (jp(this.children), Mp(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8245
8297
  }
8246
- }, Op = class extends Dp {
8298
+ }, Pp = class extends Np {
8247
8299
  constructor(e, t) {
8248
8300
  super(), this.left = e, this.right = t, this.pipe = "diff";
8249
8301
  }
8250
8302
  prepareDeltaResult(e) {
8251
8303
  var t, n, r, i;
8252
8304
  if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
8253
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : wp;
8305
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Ap;
8254
8306
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
8255
8307
  }
8256
8308
  return e;
@@ -8258,15 +8310,15 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8258
8310
  setResult(e) {
8259
8311
  return this.prepareDeltaResult(e), super.setResult(e);
8260
8312
  }
8261
- }, kp = class extends Dp {
8313
+ }, Fp = class extends Np {
8262
8314
  constructor(e, t) {
8263
8315
  super(), this.left = e, this.delta = t, this.pipe = "patch";
8264
8316
  }
8265
- }, Ap = class extends Dp {
8317
+ }, Ip = class extends Np {
8266
8318
  constructor(e) {
8267
8319
  super(), this.delta = e, this.pipe = "reverse";
8268
8320
  }
8269
- }, jp = class {
8321
+ }, Lp = class {
8270
8322
  constructor(e) {
8271
8323
  this.name = e, this.filters = [];
8272
8324
  }
@@ -8330,7 +8382,7 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8330
8382
  }
8331
8383
  }), this);
8332
8384
  }
8333
- }, Mp = class {
8385
+ }, Rp = class {
8334
8386
  constructor(e) {
8335
8387
  this.selfOptions = e || {}, this.pipes = {};
8336
8388
  }
@@ -8357,7 +8409,7 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8357
8409
  for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
8358
8410
  return n.hasResult ? n.result : void 0;
8359
8411
  }
8360
- }, Np = (e, t, n, r) => e[n] === t[r], Pp = (e, t, n, r) => {
8412
+ }, zp = (e, t, n, r) => e[n] === t[r], Bp = (e, t, n, r) => {
8361
8413
  var i, a, o;
8362
8414
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
8363
8415
  for (l = 0; l < s + 1; l++) {
@@ -8373,7 +8425,7 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8373
8425
  for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
8374
8426
  }
8375
8427
  return d;
8376
- }, Fp = (e, t, n, r) => {
8428
+ }, Vp = (e, t, n, r) => {
8377
8429
  let i = t.length, a = n.length, o = {
8378
8430
  sequence: [],
8379
8431
  indices1: [],
@@ -8395,11 +8447,11 @@ var Ep = (e) => e[e.length - 1], Dp = class {
8395
8447
  }
8396
8448
  }
8397
8449
  return o;
8398
- }, Ip = { get: (e, t, n, r) => {
8450
+ }, Hp = { get: (e, t, n, r) => {
8399
8451
  let i = r || {};
8400
- return Fp(Pp(e, t, n || Np, i), e, t, i);
8401
- } }, Lp = 3;
8402
- function Rp(e, t, n, r) {
8452
+ return Vp(Bp(e, t, n || zp, i), e, t, i);
8453
+ } }, Up = 3;
8454
+ function Wp(e, t, n, r) {
8403
8455
  for (let i = 0; i < n; i++) {
8404
8456
  let n = e[i];
8405
8457
  for (let e = 0; e < r; e++) {
@@ -8409,7 +8461,7 @@ function Rp(e, t, n, r) {
8409
8461
  }
8410
8462
  return !1;
8411
8463
  }
8412
- function zp(e, t, n, r, i) {
8464
+ function Gp(e, t, n, r, i) {
8413
8465
  let a = e[n], o = t[r];
8414
8466
  if (a === o) return !0;
8415
8467
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -8422,15 +8474,15 @@ function zp(e, t, n, r, i) {
8422
8474
  let l = i.hashCache2[r];
8423
8475
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
8424
8476
  }
8425
- var Bp = function(e) {
8477
+ var Kp = function(e) {
8426
8478
  var t, n, r, i, a;
8427
8479
  if (!e.leftIsArray) return;
8428
8480
  let o = {
8429
8481
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
8430
8482
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
8431
8483
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
8432
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Rp(f, p, m, h)); s < m && s < h && zp(f, p, s, s, o);) l = s, g = new Op(f[l], p[l]), e.push(g, l), s++;
8433
- for (; c + s < m && c + s < h && zp(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Op(f[u], p[d]), e.push(g, d), c++;
8484
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Wp(f, p, m, h)); s < m && s < h && Gp(f, p, s, s, o);) l = s, g = new Pp(f[l], p[l]), e.push(g, l), s++;
8485
+ for (; c + s < m && c + s < h && Gp(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Pp(f[u], p[d]), e.push(g, d), c++;
8434
8486
  let _;
8435
8487
  if (s + c === m) {
8436
8488
  if (m === h) {
@@ -8454,7 +8506,7 @@ var Bp = function(e) {
8454
8506
  return;
8455
8507
  }
8456
8508
  o.hashCache1 = void 0, o.hashCache2 = void 0;
8457
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = Ip.get(v, y, zp, o), x = [];
8509
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = Hp.get(v, y, Gp, o), x = [];
8458
8510
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
8459
8511
  let t = `_${l}`;
8460
8512
  _[t] = [
@@ -8475,8 +8527,8 @@ var Bp = function(e) {
8475
8527
  if (S && w > 0) for (let n = 0; n < w; n++) {
8476
8528
  u = x[n];
8477
8529
  let r = u === void 0 ? void 0 : _[`_${u}`];
8478
- if (u !== void 0 && r && zp(v, y, u - s, l - s, o)) {
8479
- r.splice(1, 2, l, Lp), r.splice(1, 2, l, Lp), C || (r[0] = ""), d = l, g = new Op(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8530
+ if (u !== void 0 && r && Gp(v, y, u - s, l - s, o)) {
8531
+ r.splice(1, 2, l, Up), r.splice(1, 2, l, Up), C || (r[0] = ""), d = l, g = new Pp(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8480
8532
  break;
8481
8533
  }
8482
8534
  }
@@ -8484,20 +8536,20 @@ var Bp = function(e) {
8484
8536
  } else {
8485
8537
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
8486
8538
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
8487
- d = b.indices2[t] + s, g = new Op(f[u], p[d]), e.push(g, d);
8539
+ d = b.indices2[t] + s, g = new Pp(f[u], p[d]), e.push(g, d);
8488
8540
  }
8489
8541
  }
8490
8542
  e.setResult(_).exit();
8491
8543
  };
8492
- Bp.filterName = "arrays";
8493
- var Vp = {
8544
+ Kp.filterName = "arrays";
8545
+ var qp = {
8494
8546
  numerically(e, t) {
8495
8547
  return e - t;
8496
8548
  },
8497
8549
  numericallyBy(e) {
8498
8550
  return (t, n) => t[e] - n[e];
8499
8551
  }
8500
- }, Hp = function(e) {
8552
+ }, Jp = function(e) {
8501
8553
  var t;
8502
8554
  if (!e.nested) return;
8503
8555
  let n = e.delta;
@@ -8506,7 +8558,7 @@ var Vp = {
8506
8558
  for (r in a) if (r !== "_t") {
8507
8559
  if (r[0] === "_") {
8508
8560
  let e = r;
8509
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === Lp)) s.push(Number.parseInt(r.slice(1), 10));
8561
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === Up)) s.push(Number.parseInt(r.slice(1), 10));
8510
8562
  else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
8511
8563
  } else {
8512
8564
  let e = r;
@@ -8519,15 +8571,15 @@ var Vp = {
8519
8571
  });
8520
8572
  }
8521
8573
  }
8522
- for (s = s.sort(Vp.numerically), r = s.length - 1; r >= 0; r--) {
8574
+ for (s = s.sort(qp.numerically), r = s.length - 1; r >= 0; r--) {
8523
8575
  if (i = s[r], i === void 0) continue;
8524
8576
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8525
- (e == null ? void 0 : e[2]) === Lp && c.push({
8577
+ (e == null ? void 0 : e[2]) === Up && c.push({
8526
8578
  index: e[1],
8527
8579
  value: t
8528
8580
  });
8529
8581
  }
8530
- c = c.sort(Vp.numericallyBy("index"));
8582
+ c = c.sort(qp.numericallyBy("index"));
8531
8583
  let u = c.length;
8532
8584
  for (r = 0; r < u; r++) {
8533
8585
  let e = c[r];
@@ -8537,7 +8589,7 @@ var Vp = {
8537
8589
  if (d > 0) for (r = 0; r < d; r++) {
8538
8590
  let t = l[r];
8539
8591
  if (t === void 0) continue;
8540
- let n = new kp(o[t.index], t.delta);
8592
+ let n = new Fp(o[t.index], t.delta);
8541
8593
  e.push(n, t.index);
8542
8594
  }
8543
8595
  if (!e.children) {
@@ -8546,8 +8598,8 @@ var Vp = {
8546
8598
  }
8547
8599
  e.exit();
8548
8600
  };
8549
- Hp.filterName = "arrays";
8550
- var Up = function(e) {
8601
+ Jp.filterName = "arrays";
8602
+ var Yp = function(e) {
8551
8603
  if (!e || !e.children || e.delta._t !== "a") return;
8552
8604
  let t = e.left, n = e.children.length;
8553
8605
  for (let r = 0; r < n; r++) {
@@ -8558,16 +8610,16 @@ var Up = function(e) {
8558
8610
  }
8559
8611
  e.setResult(t).exit();
8560
8612
  };
8561
- Up.filterName = "arraysCollectChildren";
8562
- var Wp = function(e) {
8613
+ Yp.filterName = "arraysCollectChildren";
8614
+ var Xp = function(e) {
8563
8615
  if (!e.nested) {
8564
8616
  let t = e.delta;
8565
- if (t[2] === Lp) {
8617
+ if (t[2] === Up) {
8566
8618
  let n = t;
8567
8619
  e.newName = `_${n[1]}`, e.setResult([
8568
8620
  n[0],
8569
8621
  Number.parseInt(e.childName.substring(1), 10),
8570
- Lp
8622
+ Up
8571
8623
  ]).exit();
8572
8624
  }
8573
8625
  return;
@@ -8577,20 +8629,20 @@ var Wp = function(e) {
8577
8629
  let n = t;
8578
8630
  for (let t in n) {
8579
8631
  if (t === "_t") continue;
8580
- let r = new Ap(n[t]);
8632
+ let r = new Ip(n[t]);
8581
8633
  e.push(r, t);
8582
8634
  }
8583
8635
  e.exit();
8584
8636
  };
8585
- Wp.filterName = "arrays";
8586
- var Gp = (e, t, n) => {
8637
+ Xp.filterName = "arrays";
8638
+ var Zp = (e, t, n) => {
8587
8639
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8588
8640
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8589
8641
  let r = +t;
8590
8642
  for (let n in e) {
8591
8643
  let i = e[n];
8592
8644
  if (Array.isArray(i)) {
8593
- if (i[2] === Lp) {
8645
+ if (i[2] === Up) {
8594
8646
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8595
8647
  if (a === +t) return e;
8596
8648
  e <= r && a > r ? r++ : e >= r && a < r && r--;
@@ -8598,7 +8650,7 @@ var Gp = (e, t, n) => {
8598
8650
  }
8599
8651
  }
8600
8652
  return r;
8601
- }, Kp = (e) => {
8653
+ }, Qp = (e) => {
8602
8654
  if (!e || !e.children) return;
8603
8655
  let t = e.delta;
8604
8656
  if (t._t !== "a") return;
@@ -8609,22 +8661,22 @@ var Gp = (e, t, n) => {
8609
8661
  let a = r.newName;
8610
8662
  if (a === void 0) {
8611
8663
  if (r.childName === void 0) throw Error("child.childName is undefined");
8612
- a = Gp(n, r.childName, r.result);
8664
+ a = Zp(n, r.childName, r.result);
8613
8665
  }
8614
8666
  i[a] !== r.result && (i[a] = r.result);
8615
8667
  }
8616
8668
  e.setResult(i).exit();
8617
8669
  };
8618
- Kp.filterName = "arraysCollectChildren";
8670
+ Qp.filterName = "arraysCollectChildren";
8619
8671
  //#endregion
8620
8672
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8621
- var qp = function(e) {
8673
+ var $p = function(e) {
8622
8674
  e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
8623
8675
  };
8624
- qp.filterName = "dates";
8676
+ $p.filterName = "dates";
8625
8677
  //#endregion
8626
8678
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8627
- var Jp = /* @__PURE__ */ new Set(["__proto__"]), Yp = (e) => {
8679
+ var em = /* @__PURE__ */ new Set(["__proto__"]), tm = (e) => {
8628
8680
  if (!e || !e.children) return;
8629
8681
  let t = e.children.length, n = e.result;
8630
8682
  for (let r = 0; r < t; r++) {
@@ -8636,18 +8688,18 @@ var Jp = /* @__PURE__ */ new Set(["__proto__"]), Yp = (e) => {
8636
8688
  }
8637
8689
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8638
8690
  };
8639
- Yp.filterName = "collectChildren";
8640
- var Xp = (e) => {
8691
+ tm.filterName = "collectChildren";
8692
+ var nm = (e) => {
8641
8693
  var t;
8642
8694
  if (e.leftIsArray || e.leftType !== "object") return;
8643
8695
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8644
8696
  for (let t in n) {
8645
8697
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8646
- let a = new Op(n[t], r[t]);
8698
+ let a = new Pp(n[t], r[t]);
8647
8699
  e.push(a, t);
8648
8700
  }
8649
8701
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8650
- let n = new Op(void 0, r[t]);
8702
+ let n = new Pp(void 0, r[t]);
8651
8703
  e.push(n, t);
8652
8704
  }
8653
8705
  if (!e.children || e.children.length === 0) {
@@ -8656,15 +8708,15 @@ var Xp = (e) => {
8656
8708
  }
8657
8709
  e.exit();
8658
8710
  };
8659
- Xp.filterName = "objects";
8660
- var Zp = function(e) {
8711
+ nm.filterName = "objects";
8712
+ var rm = function(e) {
8661
8713
  if (!e.nested) return;
8662
8714
  let t = e.delta;
8663
8715
  if (t._t) return;
8664
8716
  let n = t, r = !1;
8665
8717
  for (let t in n) {
8666
- if (Jp.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8667
- let i = e.left, a = new kp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8718
+ if (em.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8719
+ let i = e.left, a = new Fp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8668
8720
  e.push(a, t), r = !0;
8669
8721
  }
8670
8722
  if (!r) {
@@ -8673,8 +8725,8 @@ var Zp = function(e) {
8673
8725
  }
8674
8726
  e.exit();
8675
8727
  };
8676
- Zp.filterName = "objects";
8677
- var Qp = function(e) {
8728
+ rm.filterName = "objects";
8729
+ var im = function(e) {
8678
8730
  if (!e || !e.children || e.delta._t) return;
8679
8731
  if (e.left === null || typeof e.left != "object") {
8680
8732
  e.setResult(e.left).exit();
@@ -8685,17 +8737,17 @@ var Qp = function(e) {
8685
8737
  let n = e.children[r];
8686
8738
  if (n === void 0) continue;
8687
8739
  let i = n.childName;
8688
- Jp.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8740
+ em.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8689
8741
  }
8690
8742
  e.setResult(t).exit();
8691
8743
  };
8692
- Qp.filterName = "collectChildren";
8693
- var $p = function(e) {
8744
+ im.filterName = "collectChildren";
8745
+ var am = function(e) {
8694
8746
  if (!e.nested || e.delta._t) return;
8695
8747
  let t = e.delta, n = !1;
8696
8748
  for (let r in t) {
8697
- if (Jp.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8698
- let i = new Ap(t[r]);
8749
+ if (em.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8750
+ let i = new Ip(t[r]);
8699
8751
  e.push(i, r), n = !0;
8700
8752
  }
8701
8753
  if (!n) {
@@ -8704,25 +8756,25 @@ var $p = function(e) {
8704
8756
  }
8705
8757
  e.exit();
8706
8758
  };
8707
- $p.filterName = "objects";
8708
- var em = (e) => {
8759
+ am.filterName = "objects";
8760
+ var om = (e) => {
8709
8761
  if (!e || !e.children || e.delta._t) return;
8710
8762
  let t = e.children.length, n = {};
8711
8763
  for (let r = 0; r < t; r++) {
8712
8764
  let t = e.children[r];
8713
8765
  if (t === void 0) continue;
8714
8766
  let i = t.childName;
8715
- Jp.has(i) || n[i] !== t.result && (n[i] = t.result);
8767
+ em.has(i) || n[i] !== t.result && (n[i] = t.result);
8716
8768
  }
8717
8769
  e.setResult(n).exit();
8718
8770
  };
8719
- em.filterName = "collectChildren";
8771
+ om.filterName = "collectChildren";
8720
8772
  //#endregion
8721
8773
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8722
- var tm = 2, nm = 60, rm = null;
8723
- function im(e, t) {
8774
+ var sm = 2, cm = 60, lm = null;
8775
+ function um(e, t) {
8724
8776
  var n;
8725
- if (!rm) {
8777
+ if (!lm) {
8726
8778
  let r;
8727
8779
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8728
8780
  else {
@@ -8730,7 +8782,7 @@ function im(e, t) {
8730
8782
  let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
8731
8783
  throw e.diff_match_patch_not_found = !0, e;
8732
8784
  }
8733
- rm = {
8785
+ lm = {
8734
8786
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8735
8787
  patch: (e, t) => {
8736
8788
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8742,17 +8794,17 @@ function im(e, t) {
8742
8794
  }
8743
8795
  };
8744
8796
  }
8745
- return rm;
8797
+ return lm;
8746
8798
  }
8747
- var am = function(e) {
8799
+ var dm = function(e) {
8748
8800
  var t, n;
8749
8801
  if (e.leftType !== "string") return;
8750
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || nm;
8802
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || cm;
8751
8803
  if (r.length < a || i.length < a) {
8752
8804
  e.setResult([r, i]).exit();
8753
8805
  return;
8754
8806
  }
8755
- let o = im(e.options);
8807
+ let o = um(e.options);
8756
8808
  if (!o) {
8757
8809
  e.setResult([r, i]).exit();
8758
8810
  return;
@@ -8761,19 +8813,19 @@ var am = function(e) {
8761
8813
  e.setResult([
8762
8814
  s(r, i),
8763
8815
  0,
8764
- tm
8816
+ sm
8765
8817
  ]).exit();
8766
8818
  };
8767
- am.filterName = "texts";
8768
- var om = function(e) {
8819
+ dm.filterName = "texts";
8820
+ var fm = function(e) {
8769
8821
  if (e.nested) return;
8770
8822
  let t = e.delta;
8771
- if (t[2] !== tm) return;
8772
- let n = t, r = im(e.options, !0).patch;
8823
+ if (t[2] !== sm) return;
8824
+ let n = t, r = um(e.options, !0).patch;
8773
8825
  e.setResult(r(e.left, n[0])).exit();
8774
8826
  };
8775
- om.filterName = "texts";
8776
- var sm = (e) => {
8827
+ fm.filterName = "texts";
8828
+ var pm = (e) => {
8777
8829
  var t, n, r;
8778
8830
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8779
8831
  for (let e = 0; e < a.length; e++) {
@@ -8794,21 +8846,21 @@ var sm = (e) => {
8794
8846
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8795
8847
  }
8796
8848
  return a.join("\n");
8797
- }, cm = function(e) {
8849
+ }, mm = function(e) {
8798
8850
  if (e.nested) return;
8799
8851
  let t = e.delta;
8800
- if (t[2] !== tm) return;
8852
+ if (t[2] !== sm) return;
8801
8853
  let n = t;
8802
8854
  e.setResult([
8803
- sm(n[0]),
8855
+ pm(n[0]),
8804
8856
  0,
8805
- tm
8857
+ sm
8806
8858
  ]).exit();
8807
8859
  };
8808
- cm.filterName = "texts";
8860
+ mm.filterName = "texts";
8809
8861
  //#endregion
8810
8862
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8811
- var lm = function(e) {
8863
+ var hm = function(e) {
8812
8864
  if (e.left === e.right) {
8813
8865
  e.setResult(void 0).exit();
8814
8866
  return;
@@ -8841,8 +8893,8 @@ var lm = function(e) {
8841
8893
  }
8842
8894
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
8843
8895
  };
8844
- lm.filterName = "trivial";
8845
- var um = function(e) {
8896
+ hm.filterName = "trivial";
8897
+ var gm = function(e) {
8846
8898
  if (e.delta === void 0) {
8847
8899
  e.setResult(e.left).exit();
8848
8900
  return;
@@ -8866,8 +8918,8 @@ var um = function(e) {
8866
8918
  }
8867
8919
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8868
8920
  };
8869
- um.filterName = "trivial";
8870
- var dm = function(e) {
8921
+ gm.filterName = "trivial";
8922
+ var _m = function(e) {
8871
8923
  if (e.delta === void 0) {
8872
8924
  e.setResult(e.delta).exit();
8873
8925
  return;
@@ -8888,36 +8940,36 @@ var dm = function(e) {
8888
8940
  }
8889
8941
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8890
8942
  };
8891
- dm.filterName = "trivial";
8943
+ _m.filterName = "trivial";
8892
8944
  //#endregion
8893
8945
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8894
- var fm = class {
8946
+ var vm = class {
8895
8947
  constructor(e) {
8896
- this.processor = new Mp(e), this.processor.pipe(new jp("diff").append(Yp, lm, qp, am, Xp, Bp).shouldHaveResult()), this.processor.pipe(new jp("patch").append(Qp, Up, um, om, Zp, Hp).shouldHaveResult()), this.processor.pipe(new jp("reverse").append(em, Kp, dm, cm, $p, Wp).shouldHaveResult());
8948
+ this.processor = new Rp(e), this.processor.pipe(new Lp("diff").append(tm, hm, $p, dm, nm, Kp).shouldHaveResult()), this.processor.pipe(new Lp("patch").append(im, Yp, gm, fm, rm, Jp).shouldHaveResult()), this.processor.pipe(new Lp("reverse").append(om, Qp, _m, mm, am, Xp).shouldHaveResult());
8897
8949
  }
8898
8950
  options(e) {
8899
8951
  return this.processor.options(e);
8900
8952
  }
8901
8953
  diff(e, t) {
8902
- return this.processor.process(new Op(e, t));
8954
+ return this.processor.process(new Pp(e, t));
8903
8955
  }
8904
8956
  patch(e, t) {
8905
- return this.processor.process(new kp(e, t));
8957
+ return this.processor.process(new Fp(e, t));
8906
8958
  }
8907
8959
  reverse(e) {
8908
- return this.processor.process(new Ap(e));
8960
+ return this.processor.process(new Ip(e));
8909
8961
  }
8910
8962
  unpatch(e, t) {
8911
8963
  return this.patch(e, this.reverse(t));
8912
8964
  }
8913
8965
  clone(e) {
8914
- return wp(e);
8966
+ return Ap(e);
8915
8967
  }
8916
8968
  };
8917
8969
  //#endregion
8918
8970
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8919
- function pm(e) {
8920
- return new fm(e);
8971
+ function ym(e) {
8972
+ return new vm(e);
8921
8973
  }
8922
8974
  //#endregion
8923
8975
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -9479,46 +9531,46 @@ $.Diff = function(e, t) {
9479
9531
  };
9480
9532
  //#endregion
9481
9533
  //#region src/components/audit-log/create-diff-patcher.tsx
9482
- var mm = (e = {}) => pm({
9534
+ var bm = (e = {}) => ym({
9483
9535
  ...e,
9484
9536
  textDiff: {
9485
9537
  diffMatchPatch: $,
9486
9538
  minLength: 120
9487
9539
  },
9488
9540
  cloneDiffValues: !0
9489
- }), hm = ["user", "unittemplate"], gm = mm(), _m = (e, t, n) => {
9541
+ }), xm = ["user", "unittemplate"], Sm = bm(), Cm = (e, t, n) => {
9490
9542
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
9491
9543
  for (let e = t.length - 1; e >= 0; e--) {
9492
9544
  let n = r[t[e]];
9493
9545
  if (n) return n;
9494
9546
  }
9495
9547
  return n || "";
9496
- }, vm = (e) => {
9548
+ }, wm = (e) => {
9497
9549
  let t = (e) => sr(e) ? yr(e) : String(e);
9498
9550
  return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
9499
- }, ym = (e) => {
9551
+ }, Tm = (e) => {
9500
9552
  switch (e.length) {
9501
9553
  case 1: {
9502
9554
  let [t] = e;
9503
9555
  return {
9504
9556
  type: "created",
9505
9557
  before: "",
9506
- after: vm(t)
9558
+ after: wm(t)
9507
9559
  };
9508
9560
  }
9509
9561
  case 2: {
9510
9562
  let [t, n] = e;
9511
9563
  return {
9512
9564
  type: "modified",
9513
- before: vm(t),
9514
- after: vm(n)
9565
+ before: wm(t),
9566
+ after: wm(n)
9515
9567
  };
9516
9568
  }
9517
9569
  case 3: {
9518
9570
  let [t] = e;
9519
9571
  return {
9520
9572
  type: "deleted",
9521
- before: vm(t),
9573
+ before: wm(t),
9522
9574
  after: ""
9523
9575
  };
9524
9576
  }
@@ -9528,15 +9580,15 @@ var mm = (e = {}) => pm({
9528
9580
  after: ""
9529
9581
  };
9530
9582
  }
9531
- }, bm = (e) => Array.isArray(e), xm = (e, t) => t ? bm(t) ? t.length === 0 ? e : t.reduce((e, t) => gm.unpatch(en(e), en(t)), en(e)) : gm.unpatch(en(e), en(t)) : e, Sm = (e) => e.createdAt || e.date, Cm = (e, t, n) => {
9532
- let r = Sm(e);
9583
+ }, Em = (e) => Array.isArray(e), Dm = (e, t) => t ? Em(t) ? t.length === 0 ? e : t.reduce((e, t) => Sm.unpatch(en(e), en(t)), en(e)) : Sm.unpatch(en(e), en(t)) : e, Om = (e) => e.createdAt || e.date, km = (e, t, n) => {
9584
+ let r = Om(e);
9533
9585
  if (!r) return {
9534
9586
  oldJson: "",
9535
9587
  newJson: "",
9536
9588
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9537
9589
  };
9538
9590
  let i = t.filter((e) => {
9539
- let t = Sm(e);
9591
+ let t = Om(e);
9540
9592
  return !!(e.diffs && t && t >= r);
9541
9593
  }), a = Array.from({ length: i.length + 1 });
9542
9594
  a[0] = en(n);
@@ -9549,7 +9601,7 @@ var mm = (e = {}) => pm({
9549
9601
  a[e + 1] = a[e];
9550
9602
  continue;
9551
9603
  }
9552
- a[e + 1] = xm(a[e], t);
9604
+ a[e + 1] = Dm(a[e], t);
9553
9605
  }
9554
9606
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9555
9607
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9564,10 +9616,10 @@ var mm = (e = {}) => pm({
9564
9616
  oldJson: o,
9565
9617
  newJson: s
9566
9618
  };
9567
- }, wm = (e, t, n = {}, r = []) => {
9619
+ }, Am = (e, t, n = {}, r = []) => {
9568
9620
  var i;
9569
9621
  if (!e) return;
9570
- let a = [...hm, ...(i = n.hiddenKeys) == null ? [] : i];
9622
+ let a = [...xm, ...(i = n.hiddenKeys) == null ? [] : i];
9571
9623
  Object.keys(e).forEach((i) => {
9572
9624
  var o;
9573
9625
  let s = e[i];
@@ -9580,12 +9632,12 @@ var mm = (e = {}) => pm({
9580
9632
  on(s) ? t.push({
9581
9633
  deltaFormat: [...s],
9582
9634
  path: c
9583
- }) : mn(s) && wm(s, t, n, c);
9635
+ }) : mn(s) && Am(s, t, n, c);
9584
9636
  });
9585
- }, Tm = (e, t = {}) => {
9637
+ }, jm = (e, t = {}) => {
9586
9638
  let n = [];
9587
- return e ? (wm(e, n, t), n) : [];
9588
- }, Em = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Dm = (e) => {
9639
+ return e ? (Am(e, n, t), n) : [];
9640
+ }, Mm = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Nm = (e) => {
9589
9641
  if (e == null || e === "") return "empty";
9590
9642
  if (typeof e == "boolean") return e ? "true" : "false";
9591
9643
  if (typeof e == "string") return e;
@@ -9596,35 +9648,35 @@ var mm = (e = {}) => pm({
9596
9648
  } catch {
9597
9649
  return String(e);
9598
9650
  }
9599
- }, Om = (e, t = e.length - 1) => {
9651
+ }, Pm = (e, t = e.length - 1) => {
9600
9652
  if (t >= e.length) return "Value";
9601
9653
  let n = e[t];
9602
- return !n || ir(n) ? Om(e, t - 1) : Em(n);
9603
- }, km = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9604
- let o = Dm(r), s = Dm(i), c = a ? ` in ${a}` : "";
9654
+ return !n || ir(n) ? Pm(e, t - 1) : Mm(n);
9655
+ }, Fm = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9656
+ let o = Nm(r), s = Nm(i), c = a ? ` in ${a}` : "";
9605
9657
  switch (t) {
9606
9658
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9607
9659
  case "created": return `${e} created ${s}${c}.`;
9608
9660
  case "deleted": return `${e} deleted ${o}${c}.`;
9609
9661
  default: return `${e} changed ${n}${c}.`;
9610
9662
  }
9611
- }, Am = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9663
+ }, Im = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9612
9664
  let i = {
9613
9665
  headers: [{ cells: [{ value: "Changes" }] }],
9614
9666
  rows: n.map((n) => {
9615
- let { deltaFormat: i, path: a } = n, o = _m(e, a, r), { type: s, before: c, after: l } = ym(i);
9616
- return { cells: [{ value: km({
9667
+ let { deltaFormat: i, path: a } = n, o = Cm(e, a, r), { type: s, before: c, after: l } = Tm(i);
9668
+ return { cells: [{ value: Fm({
9617
9669
  userName: t,
9618
9670
  type: s,
9619
- property: Om(a),
9671
+ property: Pm(a),
9620
9672
  before: c,
9621
9673
  after: l,
9622
9674
  sectionName: o
9623
9675
  }) }] };
9624
9676
  })
9625
9677
  };
9626
- return /* @__PURE__ */ x(Jl, { table: i });
9627
- }, jm = Object.freeze({
9678
+ return /* @__PURE__ */ x(Gl, { table: i });
9679
+ }, Lm = Object.freeze({
9628
9680
  summary: {
9629
9681
  label: "Summary",
9630
9682
  value: "summary"
@@ -9633,33 +9685,33 @@ var mm = (e = {}) => pm({
9633
9685
  label: "Compare",
9634
9686
  value: "compare"
9635
9687
  }
9636
- }), Mm = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9637
- let c = [jm.summary, jm.compare].map(({ label: e, value: t }) => ({
9688
+ }), Rm = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9689
+ let c = [Lm.summary, Lm.compare].map(({ label: e, value: t }) => ({
9638
9690
  label: e,
9639
9691
  value: t
9640
9692
  })), [l, u] = _(c[0]), { diffs: d = void 0 } = e || {};
9641
9693
  if (!d) return null;
9642
- let { oldJson: f, newJson: p, error: m } = Cm(e, t, n);
9694
+ let { oldJson: f, newJson: p, error: m } = km(e, t, n);
9643
9695
  return /* @__PURE__ */ x(bs, {
9644
9696
  visible: r,
9645
9697
  centered: !0,
9646
9698
  children: /* @__PURE__ */ x(Qo, { dialog: {
9647
9699
  scroll: !0,
9648
9700
  heading: "Comparison view",
9649
- content: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Af, {
9701
+ content: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Df, {
9650
9702
  name: "ViewTab",
9651
9703
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9652
9704
  options: c,
9653
9705
  value: l
9654
- }), l.value === "summary" ? /* @__PURE__ */ x(Am, {
9706
+ }), l.value === "summary" ? /* @__PURE__ */ x(Im, {
9655
9707
  userName: e.userName,
9656
9708
  sectionNames: a,
9657
- diffs: Tm(d, i),
9709
+ diffs: jm(d, i),
9658
9710
  defaultSectionName: o
9659
9711
  }) : m ? /* @__PURE__ */ x("div", {
9660
9712
  style: { padding: 16 },
9661
9713
  children: m
9662
- }) : /* @__PURE__ */ x(xp, {
9714
+ }) : /* @__PURE__ */ x(vp, {
9663
9715
  oldJson: f,
9664
9716
  newJson: p
9665
9717
  })] }),
@@ -9672,7 +9724,7 @@ var mm = (e = {}) => pm({
9672
9724
  height: "90vh"
9673
9725
  } })
9674
9726
  });
9675
- }, Nm = [
9727
+ }, zm = [
9676
9728
  {
9677
9729
  label: "10 / page",
9678
9730
  value: 10
@@ -9685,8 +9737,8 @@ var mm = (e = {}) => pm({
9685
9737
  label: "50 / page",
9686
9738
  value: 50
9687
9739
  }
9688
- ], Pm = (e, t = {}) => {
9689
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Tm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9740
+ ], Bm = (e, t = {}) => {
9741
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = jm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9690
9742
  if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
9691
9743
  switch (a) {
9692
9744
  case "Created": return `Created by ${r}`;
@@ -9696,7 +9748,7 @@ var mm = (e = {}) => pm({
9696
9748
  case "Updated": return `Updated by ${r} (${c})`;
9697
9749
  default: return `Change by ${r}`;
9698
9750
  }
9699
- }, Fm = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: h }) => {
9751
+ }, Vm = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: h }) => {
9700
9752
  let [g, v] = _(!1), [y, C] = _(null), w = (e) => {
9701
9753
  if (e.snapshot) {
9702
9754
  f == null || f(e.snapshot, e);
@@ -9715,7 +9767,7 @@ var mm = (e = {}) => pm({
9715
9767
  return {
9716
9768
  cells: [
9717
9769
  {
9718
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : Pm(e, l),
9770
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : Bm(e, l),
9719
9771
  type: "Link",
9720
9772
  disabled: n,
9721
9773
  onClick: n ? void 0 : () => w(e),
@@ -9734,8 +9786,8 @@ var mm = (e = {}) => pm({
9734
9786
  type: "Static"
9735
9787
  },
9736
9788
  {
9737
- value: Sp({
9738
- date: Sm(e),
9789
+ value: Op({
9790
+ date: Om(e),
9739
9791
  showTime: !0
9740
9792
  }),
9741
9793
  type: "Static"
@@ -9745,12 +9797,12 @@ var mm = (e = {}) => pm({
9745
9797
  };
9746
9798
  });
9747
9799
  return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(Za, {
9748
- heading: /* @__PURE__ */ S(fd, {
9800
+ heading: /* @__PURE__ */ S(ld, {
9749
9801
  gap: !0,
9750
9802
  wrap: !0,
9751
9803
  children: [/* @__PURE__ */ x(Yo, { children: "Changes" }), c.map((e) => {
9752
9804
  var t;
9753
- return /* @__PURE__ */ x(Wu, {
9805
+ return /* @__PURE__ */ x(Vu, {
9754
9806
  small: (t = e.small) == null || t,
9755
9807
  checked: e.checked,
9756
9808
  onChange: e.onChange,
@@ -9760,11 +9812,11 @@ var mm = (e = {}) => pm({
9760
9812
  })]
9761
9813
  }),
9762
9814
  padding: !1,
9763
- children: r ? /* @__PURE__ */ x(kd, {
9815
+ children: r ? /* @__PURE__ */ x(Ed, {
9764
9816
  height: "100px",
9765
9817
  theme: vi.WHITE,
9766
9818
  children: /* @__PURE__ */ x(la, { dark: !0 })
9767
- }) : /* @__PURE__ */ x(Jl, { table: {
9819
+ }) : /* @__PURE__ */ x(Gl, { table: {
9768
9820
  headers: T,
9769
9821
  testId: "auditlog-table",
9770
9822
  rows: E,
@@ -9778,14 +9830,14 @@ var mm = (e = {}) => pm({
9778
9830
  onChange: (e) => {
9779
9831
  u(Number(e.target.value));
9780
9832
  },
9781
- options: Nm,
9833
+ options: zm,
9782
9834
  value: a
9783
9835
  },
9784
9836
  onSelectPage: (e) => d(e),
9785
9837
  small: !0
9786
9838
  } }
9787
9839
  } })
9788
- }), g && y && y.diffs && /* @__PURE__ */ x(Mm, {
9840
+ }), g && y && y.diffs && /* @__PURE__ */ x(Rm, {
9789
9841
  sectionNames: o,
9790
9842
  isOpen: g,
9791
9843
  onClose: () => v(!1),
@@ -9795,7 +9847,7 @@ var mm = (e = {}) => pm({
9795
9847
  data: t,
9796
9848
  transformDiffsConfig: l
9797
9849
  })] });
9798
- }, Im = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9850
+ }, Hm = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9799
9851
  let i = window.location.href, a = g(i);
9800
9852
  return d(() => {
9801
9853
  a.current = i;
@@ -9818,20 +9870,20 @@ var mm = (e = {}) => pm({
9818
9870
  });
9819
9871
  };
9820
9872
  }, [e, t]), null;
9821
- }, Lm = {
9873
+ }, Um = {
9822
9874
  errorBoundary: "_errorBoundary_hmco0_1",
9823
9875
  sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
9824
9876
  rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
9825
- }, Rm = ({ options: e }) => {
9826
- let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = up();
9877
+ }, Wm = ({ options: e }) => {
9878
+ let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = sp();
9827
9879
  if (t) return /* @__PURE__ */ x(t, {});
9828
9880
  if (n || r) return /* @__PURE__ */ x("div", {
9829
- className: y(n ? Lm.sidebarErrorBoundary : "", r ? Lm.rightSidebarErrorBoundary : ""),
9881
+ className: y(n ? Um.sidebarErrorBoundary : "", r ? Um.rightSidebarErrorBoundary : ""),
9830
9882
  style: a,
9831
9883
  children: o == null ? void 0 : o.unexpectedError
9832
9884
  });
9833
9885
  let s = /* @__PURE__ */ x("div", {
9834
- className: Lm.errorBoundary,
9886
+ className: Um.errorBoundary,
9835
9887
  style: a,
9836
9888
  children: /* @__PURE__ */ x(Bs, { message: {
9837
9889
  icon: !0,
@@ -9841,24 +9893,24 @@ var mm = (e = {}) => pm({
9841
9893
  width: "100%"
9842
9894
  } })
9843
9895
  });
9844
- return i ? /* @__PURE__ */ x(Rd, {
9896
+ return i ? /* @__PURE__ */ x(Fd, {
9845
9897
  scroll: !1,
9846
9898
  padding: 0,
9847
9899
  children: s
9848
9900
  }) : s;
9849
- }, zm = ({ children: e, options: t }) => /* @__PURE__ */ x(fi.ErrorBoundary, {
9850
- fallback: /* @__PURE__ */ x(Rm, { options: t }),
9901
+ }, Gm = ({ children: e, options: t }) => /* @__PURE__ */ x(fi.ErrorBoundary, {
9902
+ fallback: /* @__PURE__ */ x(Wm, { options: t }),
9851
9903
  onError: (e, t) => {
9852
9904
  console.error("Error caught by boundary:", e, t);
9853
9905
  },
9854
9906
  children: e
9855
- }), Bm = (e, t = {}) => (n) => /* @__PURE__ */ x(zm, {
9907
+ }), Km = (e, t = {}) => (n) => /* @__PURE__ */ x(Gm, {
9856
9908
  options: t,
9857
9909
  children: /* @__PURE__ */ x(e, { ...n })
9858
- }), Vm = (e = {}) => (t) => Bm(t, e), Hm = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Um = (e) => {
9859
- dp(op.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9860
- e === op.Translations ? dp(e, cp(t)) : dp(e, Hm(t) ? t : { ...t });
9910
+ }), qm = (e = {}) => (t) => Km(t, e), Jm = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Ym = (e) => {
9911
+ cp(rp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9912
+ e === rp.Translations ? cp(e, ap(t)) : cp(e, Jm(t) ? t : { ...t });
9861
9913
  });
9862
9914
  };
9863
9915
  //#endregion
9864
- export { Li as Accordion, oa as AccordionWithDefaultToggle, Ua as Actions, hi as Align, Fm as AuditLog, ka as Badge, qa as Breadcrumb, Ga as BreadcrumbLinkType, q as Button, Ya as ButtonGroup, gi as ButtonPosition, ua as ButtonType, Za as Card, na as CheckBox, ji as Chevron, Pi as Collapse, mi as Color, Fo as ColorInput, Po as ColorInputPopover, Bo as Column, Qo as Dialog, xp as DiffViewer, W as DisabledContext, Go as Divider, as as Drawer, Lf as ElementType, au as Empty, zm as ErrorBoundary, dd as Field, sd as FileButton, hs as FileInput, fd as Flex, md as FormRow, bo as Grid, H as GroupOrder, Yo as Heading, ta as HelpIcon, G as Icon, U as IconType, us as Input, cs as InputGroup, nl as InputGroupAddon, fs as InputReaderMethods, yi as InputType, ld as Label, Dd as List, gd as ListHeading, Sd as ListSubheading, kd as Loader, Va as Menu, _a as MenuCarat, ga as MenuType, Bs as Message, Ps as MessageType, bs as Modal, Ks as NativeSelect, hl as NumberInput, Id as OptionDropdown, Rd as Page, rl as Pagination, Uf as PopConfirm, go as Popover, zd as Portal, Vd as PrintHeader, Cs as ProgressBar, Hd as RadioButton, qd as RichTextInput, Yd as Row, Xc as Select, _p as SettingField, ef as SideBar, nf as Skeleton, Tl as Slider, Os as SmartUploadModal, gs as Spacer, la as Spinner, Jl as Table, od as TableImportExport, Af as Tabs, Uo as Text, Nf as TextArea, jf as TextLink, _i as TextTransform, vi as Theme, Kr as Toaster, Wu as Toggle, K as Tooltip, Bf as TopBar, qf as Tree, ap as TreeTable, pi as TriggerType, Cf as UnitInput, Df as UnitSlider, hp as UnitTable, Im as UsageTracker, Vu as dismissToast, bf as initializeContext, Um as initializeGuiLibrary, ps as readFile, Bu as toast, qs as useFocus, _s as useKeyboardEvent, Xs as useWindowWidth, Vm as withChainableErrorBoundary, Bm as withErrorBoundary };
9916
+ export { Li as Accordion, oa as AccordionWithDefaultToggle, Ua as Actions, hi as Align, Vm as AuditLog, ka as Badge, qa as Breadcrumb, Ga as BreadcrumbLinkType, q as Button, Ya as ButtonGroup, gi as ButtonPosition, ua as ButtonType, Za as Card, na as CheckBox, ji as Chevron, Pi as Collapse, mi as Color, Fo as ColorInput, Po as ColorInputPopover, Bo as Column, Qo as Dialog, Dp as DiffTable, vp as DiffViewer, W as DisabledContext, Go as Divider, as as Drawer, Pf as ElementType, nu as Empty, Gm as ErrorBoundary, cd as Field, id as FileButton, hs as FileInput, ld as Flex, dd as FormRow, bo as Grid, H as GroupOrder, Yo as Heading, ta as HelpIcon, G as Icon, U as IconType, us as Input, cs as InputGroup, nl as InputGroupAddon, fs as InputReaderMethods, yi as InputType, od as Label, wd as List, pd as ListHeading, yd as ListSubheading, Ed as Loader, Va as Menu, _a as MenuCarat, ga as MenuType, Bs as Message, Ps as MessageType, bs as Modal, Ks as NativeSelect, hl as NumberInput, Nd as OptionDropdown, Fd as Page, rl as Pagination, Bf as PopConfirm, go as Popover, Id as Portal, Rd as PrintHeader, Cs as ProgressBar, zd as RadioButton, Wd as RichTextInput, Kd as Row, Xc as Select, mp as SettingField, Zd as SideBar, $d as Skeleton, Tl as Slider, Os as SmartUploadModal, gs as Spacer, la as Spinner, Gl as Table, rd as TableImportExport, Df as Tabs, Uo as Text, Af as TextArea, Of as TextLink, _i as TextTransform, vi as Theme, Kr as Toaster, Vu as Toggle, K as Tooltip, Lf as TopBar, Wf as Tree, np as TreeTable, pi as TriggerType, bf as UnitInput, wf as UnitSlider, fp as UnitTable, Hm as UsageTracker, Ru as dismissToast, _f as initializeContext, Ym as initializeGuiLibrary, ps as readFile, Lu as toast, qs as useFocus, _s as useKeyboardEvent, Xs as useWindowWidth, qm as withChainableErrorBoundary, Km as withErrorBoundary };