@oliasoft-open-source/react-ui-library 9.2.0-beta-5 → 9.2.0-beta-7

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
@@ -4170,8 +4170,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4170
4170
  }));
4171
4171
  }
4172
4172
  };
4173
- }, Jl = ({ 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, measureRef: p }) => {
4174
- let m = _l(a, n, t), { onRowClick: h, onRowFocus: g, onRowMouseEnter: _, onRowMouseLeave: v, expandedContent: y, error: w, warning: T, active: E } = e, D = e.cells.map((e, r) => {
4173
+ }, Jl = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: u, dropDisabled: d = !1, height: f, testId: p, measureRef: m }) => {
4174
+ let h = _l(a, n, t), { onRowClick: g, onRowFocus: _, onRowMouseEnter: v, onRowMouseLeave: y, expandedContent: w, error: T, warning: E, active: D } = e, O = e.cells.map((e, r) => {
4175
4175
  let i = `${+!n}_${t}_${r}`, a = n ? e : ql({
4176
4176
  cell: e,
4177
4177
  rowIndex: t,
@@ -4181,74 +4181,78 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4181
4181
  cell: a,
4182
4182
  isHeader: n,
4183
4183
  columnAlignment: o[r],
4184
- columnHeaderAlignment: m[r],
4185
- width: l ? l[r] : void 0,
4184
+ columnHeaderAlignment: h[r],
4185
+ width: u ? u[r] : void 0,
4186
4186
  testId: e.testId
4187
4187
  }, i);
4188
- }), O = s && /* @__PURE__ */ S(Wl, {
4188
+ }), k = s && /* @__PURE__ */ S(Wl, {
4189
4189
  cell: {
4190
4190
  type: Ul.ACTIONS,
4191
4191
  actions: e.actions
4192
4192
  },
4193
4193
  isHeader: n
4194
- }, r), { attributes: k, listeners: A, setNodeRef: j, transform: M, transition: N, isDragging: P } = Nr({
4194
+ }, r), { attributes: A, listeners: j, setNodeRef: M, transform: N, transition: P, isDragging: F } = Nr({
4195
4195
  id: t.toString(),
4196
4196
  animateLayoutChanges: () => !1
4197
- }), F = (t) => {
4198
- e.noDrag || j(t), p == null || p(t);
4199
- }, I = {
4200
- transform: u ? void 0 : Fr.Translate.toString(M),
4201
- height: d,
4202
- transition: N,
4203
- opacity: P ? 0 : void 0
4197
+ }), I = l((t) => {
4198
+ e.noDrag || M(t), m == null || m(t);
4199
+ }, [
4200
+ e.noDrag,
4201
+ M,
4202
+ m
4203
+ ]), L = m ? I : e.noDrag ? null : M, R = {
4204
+ transform: d ? void 0 : Fr.Translate.toString(N),
4205
+ height: f,
4206
+ transition: P,
4207
+ opacity: F ? 0 : void 0
4204
4208
  };
4205
4209
  return n ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
4206
- onClick: h,
4207
- onMouseEnter: _,
4208
- onMouseLeave: v,
4209
- onFocus: g,
4210
- "data-testid": f,
4211
- className: b(h ? ml.clickableRow : null, _ ? ml.hoverableRow : null),
4210
+ onClick: g,
4211
+ onMouseEnter: v,
4212
+ onMouseLeave: y,
4213
+ onFocus: _,
4214
+ "data-testid": p,
4215
+ className: b(g ? ml.clickableRow : null, v ? ml.hoverableRow : null),
4212
4216
  children: [
4213
4217
  c ? /* @__PURE__ */ S("th", {}) : null,
4214
- D,
4215
- O
4218
+ O,
4219
+ k
4216
4220
  ]
4217
- }, t), y && y.content ? /* @__PURE__ */ S(hl, {
4221
+ }, t), w && w.content ? /* @__PURE__ */ S(hl, {
4218
4222
  colSpan: i,
4219
- flush: y.flush === !0,
4220
- children: y.content
4223
+ flush: w.flush === !0,
4224
+ children: w.content
4221
4225
  }, `${t}_expanded_content`) : null] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
4222
- ref: F,
4223
- onClick: h,
4224
- onMouseEnter: _,
4225
- onMouseLeave: v,
4226
- onFocus: g,
4227
- className: b(h && !h.noStyle ? ml.clickableRow : null, _ && !_.noStyle ? ml.hoverableRow : null, E ? ml.rowActive : null),
4228
- "data-active": E || null,
4229
- "data-error": w || null,
4230
- "data-warning": T || null,
4226
+ ref: L,
4227
+ onClick: g,
4228
+ onMouseEnter: v,
4229
+ onMouseLeave: y,
4230
+ onFocus: _,
4231
+ className: b(g && !g.noStyle ? ml.clickableRow : null, v && !v.noStyle ? ml.hoverableRow : null, D ? ml.rowActive : null),
4232
+ "data-active": D || null,
4233
+ "data-error": T || null,
4234
+ "data-warning": E || null,
4231
4235
  "data-index": t,
4232
4236
  "data-even": t % 2 == 0,
4233
- "data-testid": f,
4234
- style: I,
4237
+ "data-testid": p,
4238
+ style: R,
4235
4239
  children: [
4236
4240
  c ? e.noDrag ? /* @__PURE__ */ S("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ S("td", {
4237
4241
  className: ml.dragIconCell,
4238
4242
  children: /* @__PURE__ */ S("div", {
4239
- className: b(ml.dragIcon, u ? ml.dragIconDisabled : ""),
4240
- ...k,
4243
+ className: b(ml.dragIcon, d ? ml.dragIconDisabled : ""),
4241
4244
  ...A,
4245
+ ...j,
4242
4246
  children: /* @__PURE__ */ S(G, { icon: U.DRAG })
4243
4247
  })
4244
4248
  }) : null,
4245
- D,
4246
- O
4249
+ O,
4250
+ k
4247
4251
  ]
4248
- }, t), y && y.content ? /* @__PURE__ */ S(hl, {
4252
+ }, t), w && w.content ? /* @__PURE__ */ S(hl, {
4249
4253
  colSpan: i,
4250
- flush: y.flush === !0,
4251
- children: y.content
4254
+ flush: w.flush === !0,
4255
+ children: w.content
4252
4256
  }, `${t}_expanded_content`) : null] });
4253
4257
  }, Yl = (e) => {
4254
4258
  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] = v(null), [p, m] = v(!1), g = h(() => l.map((e, t) => t.toString()), [l]);
@@ -4305,22 +4309,29 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4305
4309
  })
4306
4310
  }), document.body)]
4307
4311
  }) : t({});
4308
- }, Xl = 31, Zl = ({ table: e, children: t }) => {
4309
- var n, r, i;
4310
- let a = _(null), o = Jr({
4311
- count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
4312
- getScrollElement: () => a.current,
4313
- estimateSize: () => Xl,
4312
+ }, Xl = 31, Zl = 2, Ql = ({ table: e, children: t }) => {
4313
+ var n;
4314
+ let r = _(null), i = _(/* @__PURE__ */ new Map()), { estimateRowHeight: a, rowCount: o, rows: s } = e, c = (n = o == null ? s == null ? void 0 : s.length : o) == null ? 0 : n, l = !!a, u = (e) => {
4315
+ var t, n;
4316
+ return (t = (n = i.current.get(e)) == null ? a == null ? void 0 : a(e) : n) == null ? Xl : t;
4317
+ }, d = Jr({
4318
+ count: c,
4319
+ getScrollElement: () => r.current,
4320
+ estimateSize: l ? u : () => Xl,
4321
+ ...l ? { measureElement: (e) => {
4322
+ let t = e.getAttribute("data-index"), n = t == null ? -1 : Number(t), r = Math.ceil(e.getBoundingClientRect().height), a = n >= 0 ? u(n) : Xl, o = Math.abs(r - a) <= Zl ? a : r;
4323
+ return n >= 0 && i.current.set(n, o), o;
4324
+ } } : {},
4314
4325
  overscan: 10
4315
4326
  });
4316
- return /* @__PURE__ */ S("div", {
4327
+ return l && (d.shouldAdjustScrollPositionOnItemSizeChange = () => !1), /* @__PURE__ */ S("div", {
4317
4328
  id: "scrollWrapper",
4318
4329
  className: b(Ks.scroll, Ks.virtualScroll),
4319
- ref: a,
4330
+ ref: r,
4320
4331
  children: t({
4321
- virtualizer: o,
4332
+ virtualizer: d,
4322
4333
  tableStyle: (() => {
4323
- let e = o.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? o.getTotalSize() - e[e.length - 1].end : 0;
4334
+ let e = d.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? d.getTotalSize() - e[e.length - 1].end : 0;
4324
4335
  return {
4325
4336
  "--virtualPaddingTop": t + "px",
4326
4337
  "--virtualPaddingBottom": n + "px"
@@ -4328,7 +4339,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4328
4339
  })()
4329
4340
  })
4330
4341
  });
4331
- }, Ql = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
4342
+ }, $l = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (d(() => {
4332
4343
  if (t && !(e == null || e < 0)) {
4333
4344
  if (n && r) r.scrollToIndex(e, {
4334
4345
  behavior: "auto",
@@ -4347,11 +4358,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4347
4358
  t,
4348
4359
  n,
4349
4360
  r
4350
- ]), null), $l = ({ table: e, children: t }) => {
4361
+ ]), null), eu = ({ table: e, children: t }) => {
4351
4362
  let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = h(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
4352
- return n ? /* @__PURE__ */ S(Zl, {
4363
+ return n ? /* @__PURE__ */ S(Ql, {
4353
4364
  table: e,
4354
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Ql, {
4365
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S($l, {
4355
4366
  isVirtualized: !0,
4356
4367
  virtualizer: e,
4357
4368
  activeIndex: a,
@@ -4363,13 +4374,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4363
4374
  }) : /* @__PURE__ */ C("div", {
4364
4375
  id: "scrollWrapper",
4365
4376
  className: Ks.scroll,
4366
- children: [/* @__PURE__ */ S(Ql, {
4377
+ children: [/* @__PURE__ */ S($l, {
4367
4378
  isVirtualized: !1,
4368
4379
  activeIndex: a,
4369
4380
  triggerScrollToActiveRow: r
4370
4381
  }), t({})]
4371
4382
  });
4372
- }, eu = (e) => {
4383
+ }, tu = (e) => {
4373
4384
  var t, n, r, i, a;
4374
4385
  let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: m, actionsRight: h, columnHeaderAlignments: g, columnAlignment: v, striped: y = !0, testId: x, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = _(null), j = sn(e, "table.headers", []), M = dl(p, j), N = pl(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 = {
4375
4386
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -4418,7 +4429,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4418
4429
  rows: R,
4419
4430
  tbodyRef: A,
4420
4431
  canListReorder: s,
4421
- children: ({ dropDisabled: e }) => /* @__PURE__ */ S($l, {
4432
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ S(eu, {
4422
4433
  table: z,
4423
4434
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ C("table", {
4424
4435
  className: b(Ks.table, y ? Ks.striped : ""),
@@ -4451,8 +4462,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4451
4462
  hasRowActions: N,
4452
4463
  columnAlignment: v,
4453
4464
  draggableTable: w,
4465
+ height: n.size,
4454
4466
  dropDisabled: e,
4455
- measureRef: t.measureElement
4467
+ measureRef: l.estimateRowHeight ? t.measureElement : void 0
4456
4468
  }, `1_${r}`);
4457
4469
  }) : R.map((t, n) => {
4458
4470
  let r = c ? c({
@@ -4482,14 +4494,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4482
4494
  })
4483
4495
  ]
4484
4496
  });
4485
- }, tu = "blank", nu = 1e4, ru = (e, t, n, r) => {
4497
+ }, nu = "blank", ru = 1e4, iu = (e, t, n, r) => {
4486
4498
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4487
4499
  return {
4488
4500
  updatedErrors: o,
4489
4501
  isValid: o.length === 0
4490
4502
  };
4491
- }, iu = 20, au = 1, ou = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4492
- let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(iu), [s, c] = v(au), u = _([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [m, g] = v([]), y = h(() => {
4503
+ }, au = 20, ou = 1, su = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4504
+ let i = h(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, o] = v(au), [s, c] = v(ou), u = _([]), f = (s - 1) * a, p = a === 0 ? t.rows.length : f + a, [m, g] = v([]), y = h(() => {
4493
4505
  let n = e.filter((e) => !e.optionalColumn);
4494
4506
  return t.fields.length === n.length ? n : e;
4495
4507
  }, [e, t.fields.length]), b = l((e, r) => (!u.current.length && t.rows.length && (u.current = t.rows[0].map((e) => Kc(e) ? "NumberInput" : "Input")), {
@@ -4503,7 +4515,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4503
4515
  disableValidationOnFocus: !0,
4504
4516
  error: x,
4505
4517
  validationCallback: (e, i) => {
4506
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = ru(t.errors, a, e, i);
4518
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = iu(t.errors, a, e, i);
4507
4519
  n({ parsedResult: {
4508
4520
  ...t,
4509
4521
  errors: o,
@@ -4512,7 +4524,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4512
4524
  },
4513
4525
  onChange: (e) => {
4514
4526
  var i;
4515
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = ru(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4527
+ let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = iu(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4516
4528
  n({ parsedResult: {
4517
4529
  ...t,
4518
4530
  rows: d,
@@ -4554,7 +4566,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4554
4566
  ]);
4555
4567
  let x = h(() => t.fields.map((e, r) => {
4556
4568
  var a, o, s;
4557
- 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) => Sn(e) === tu);
4569
+ 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) => Sn(e) === nu);
4558
4570
  if (!l.length || u) return {};
4559
4571
  let d = t == null || (a = t.units) == null ? void 0 : a[r], f = Sn(d), p = l != null && l.some((e) => Sn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
4560
4572
  return {
@@ -4602,7 +4614,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4602
4614
  b,
4603
4615
  f
4604
4616
  ]);
4605
- return /* @__PURE__ */ S(eu, {
4617
+ return /* @__PURE__ */ S(tu, {
4606
4618
  beforeRenderRow: E,
4607
4619
  onListReorder: ({ from: e, to: r }) => {
4608
4620
  let i = [...t.rows], [a] = i.splice(e, 1);
@@ -4665,7 +4677,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4665
4677
  } }
4666
4678
  }
4667
4679
  });
4668
- }, su = { listStyle: "_listStyle_yjfjw_1" }, cu = ({ errors: e, t }) => {
4680
+ }, cu = { listStyle: "_listStyle_yjfjw_1" }, lu = ({ errors: e, t }) => {
4669
4681
  var n;
4670
4682
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4671
4683
  let n = (e) => {
@@ -4681,18 +4693,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4681
4693
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4682
4694
  type: "Error",
4683
4695
  details: /* @__PURE__ */ S("ul", {
4684
- className: su.listStyle,
4696
+ className: cu.listStyle,
4685
4697
  children: r.map((e, t) => /* @__PURE__ */ S("li", { children: e }, t))
4686
4698
  })
4687
4699
  };
4688
- }, lu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S(Gs, { message: cu({
4700
+ }, uu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S(Gs, { message: lu({
4689
4701
  errors: e,
4690
4702
  t
4691
- }) }) : null, uu = {
4703
+ }) }) : null, du = {
4692
4704
  empty: "_empty_fe425_1",
4693
4705
  text: "_text_fe425_11"
4694
- }, du = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ C("div", {
4695
- className: uu.empty,
4706
+ }, fu = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ C("div", {
4707
+ className: du.empty,
4696
4708
  style: {
4697
4709
  width: e,
4698
4710
  height: t
@@ -4728,7 +4740,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4728
4740
  })
4729
4741
  }),
4730
4742
  n !== "" && /* @__PURE__ */ S("div", {
4731
- className: uu.text,
4743
+ className: du.text,
4732
4744
  children: /* @__PURE__ */ S(Yo, {
4733
4745
  faint: !0,
4734
4746
  children: n
@@ -4736,52 +4748,52 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4736
4748
  }),
4737
4749
  r
4738
4750
  ]
4739
- }), fu = (e) => {
4751
+ }), pu = (e) => {
4740
4752
  var t;
4741
4753
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4742
4754
  let t = e == null ? void 0 : e.match(/[.,]/g);
4743
4755
  return t && t.length > 1;
4744
4756
  });
4745
- }, pu = (e) => {
4757
+ }, mu = (e) => {
4746
4758
  var t;
4747
4759
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4748
4760
  var t;
4749
4761
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4750
4762
  });
4751
- }, mu = (e, t, n) => e >= t - n, hu = (e) => !!e && e !== "blank" && e.trim() !== "", gu = (e, t, n, r, i, a, o) => {
4763
+ }, hu = (e, t, n) => e >= t - n, gu = (e) => !!e && e !== "blank" && e.trim() !== "", _u = (e, t, n, r, i, a, o) => {
4752
4764
  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;
4753
- if (i && !mu(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4765
+ if (i && !hu(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4754
4766
  var f, p;
4755
4767
  let e = r.filter((e) => {
4756
4768
  var t;
4757
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(hu));
4769
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(gu));
4758
4770
  }).length;
4759
- mu(t == null || (f = t.filter(hu)) == 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
+ hu(t == null || (f = t.filter(gu)) == 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 }));
4760
4772
  }
4761
4773
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4762
4774
  expectedLengthMessage: u,
4763
4775
  dataRowStartIndex: d
4764
4776
  })) : n.forEach((e, t) => {
4765
- mu(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4777
+ hu(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4766
4778
  expectedLengthMessage: u,
4767
4779
  dataRowStartIndex: d + t
4768
4780
  }));
4769
4781
  }), s;
4770
- }, _u = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), vu = ({ value: e, defaultAllowedValues: t }) => {
4782
+ }, vu = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), yu = ({ value: e, defaultAllowedValues: t }) => {
4771
4783
  var n;
4772
- let r = _u(e);
4773
- return (n = t == null ? void 0 : t.some((e) => _u(e).includes(r) || r.includes(_u(e)))) != null && n;
4774
- }, yu = ({ value: e, defaultAllowedValues: t }) => {
4784
+ let r = vu(e);
4785
+ return (n = t == null ? void 0 : t.some((e) => vu(e).includes(r) || r.includes(vu(e)))) != null && n;
4786
+ }, bu = ({ value: e, defaultAllowedValues: t }) => {
4775
4787
  var n;
4776
4788
  return (n = t == null ? void 0 : t.includes(e)) != null && n;
4777
- }, bu = (e, t, n, r, i, a) => {
4789
+ }, xu = (e, t, n, r, i, a) => {
4778
4790
  let o = [];
4779
4791
  if (r) {
4780
4792
  let r = n.map((e) => e.fieldName).filter(Boolean);
4781
4793
  e.forEach((i, s) => {
4782
4794
  var c, l;
4783
4795
  let u = n[s];
4784
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? vu : c)({
4796
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? yu : c)({
4785
4797
  value: i,
4786
4798
  defaultAllowedValues: r,
4787
4799
  columnIndex: s,
@@ -4803,7 +4815,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4803
4815
  var l, u;
4804
4816
  let d = n[c];
4805
4817
  if (!d || d != null && d.optionalColumn) return;
4806
- let f = (l = d.unitsValidator) == null ? yu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4818
+ let f = (l = d.unitsValidator) == null ? bu : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4807
4819
  f({
4808
4820
  value: r,
4809
4821
  defaultAllowedValues: p,
@@ -4819,7 +4831,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4819
4831
  });
4820
4832
  }
4821
4833
  return o;
4822
- }, xu = (e, t, n) => {
4834
+ }, Su = (e, t, n) => {
4823
4835
  let r = [];
4824
4836
  return e.forEach((e, i) => {
4825
4837
  e.forEach((e, a) => {
@@ -4832,91 +4844,91 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4832
4844
  })}`);
4833
4845
  });
4834
4846
  }), r;
4835
- }, Su = (e, t, n, r, i, a, o) => {
4836
- let s = gu(e, t, n, r, i, a, o);
4837
- return s.length === 0 && (s = s.concat(bu(e, t, r, i, a, o), xu(n, r, o))), {
4847
+ }, Cu = (e, t, n, r, i, a, o) => {
4848
+ let s = _u(e, t, n, r, i, a, o);
4849
+ return s.length === 0 && (s = s.concat(xu(e, t, r, i, a, o), Su(n, r, o))), {
4838
4850
  isValid: s.length === 0,
4839
4851
  errors: s
4840
4852
  };
4841
- }, Cu = (e, t, n) => {
4853
+ }, wu = (e, t, n) => {
4842
4854
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4843
4855
  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;
4844
4856
  return {
4845
4857
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4846
4858
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4847
4859
  };
4848
- }, wu = (e, { validationRules: t }) => {
4860
+ }, Tu = (e, { validationRules: t }) => {
4849
4861
  var n, r, i;
4850
4862
  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) => {
4851
4863
  var t;
4852
4864
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4853
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = Cu(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
+ }), { hasFieldNameHeader: l, hasUnitHeader: u } = wu(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());
4854
4866
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4855
4867
  hasFieldNameHeader: l,
4856
4868
  hasUnitHeader: u
4857
4869
  };
4858
- }, Tu = (e) => Math.round(e * 100) / 100, Eu = (e) => e.join(", ").replace(/,\s*$/, ""), Du = {
4870
+ }, Eu = (e) => Math.round(e * 100) / 100, Du = (e) => e.join(", ").replace(/,\s*$/, ""), Ou = {
4859
4871
  skipEmptyLines: !0,
4860
4872
  delimiter: (e) => {
4861
4873
  var t, n;
4862
4874
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4863
4875
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4864
4876
  }
4865
- }, Ou = [
4877
+ }, ku = [
4866
4878
  "text/csv",
4867
4879
  "text/plain",
4868
4880
  "application/json",
4869
4881
  "application/vnd.ms-excel"
4870
- ], ku = (e) => Ou.includes(e.type), Au = (e) => e instanceof File, ju = (e) => e.trim().startsWith("["), Mu = (e) => {
4882
+ ], Au = (e) => ku.includes(e.type), ju = (e) => e instanceof File, Mu = (e) => e.trim().startsWith("["), Nu = (e) => {
4871
4883
  try {
4872
4884
  var t;
4873
4885
  return !!((t = JSON.parse(e)) != null && t.path);
4874
4886
  } catch {
4875
4887
  return !1;
4876
4888
  }
4877
- }, Nu = (e) => new Promise((t, n) => {
4889
+ }, Pu = (e) => new Promise((t, n) => {
4878
4890
  let r = new FileReader();
4879
4891
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4880
- }), Pu = async (e, t, n) => {
4892
+ }), Fu = async (e, t, n) => {
4881
4893
  try {
4882
- return Vu({
4894
+ return Hu({
4883
4895
  data: JSON.parse(e),
4884
4896
  errors: []
4885
4897
  }, t, n);
4886
4898
  } catch (e) {
4887
4899
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4888
4900
  }
4889
- }, Fu = async (e, t, n) => {
4901
+ }, Iu = async (e, t, n) => {
4890
4902
  try {
4891
4903
  let r = JSON.parse(e).path.map((e) => [
4892
- Tu(e.md),
4893
- Tu(e.inclination),
4894
- Tu(e.gridAzimuth)
4904
+ Eu(e.md),
4905
+ Eu(e.inclination),
4906
+ Eu(e.gridAzimuth)
4895
4907
  ]);
4896
4908
  return r.unshift([
4897
4909
  "m",
4898
4910
  "deg",
4899
4911
  "deg"
4900
- ]), Vu({
4912
+ ]), Hu({
4901
4913
  data: r,
4902
4914
  errors: []
4903
4915
  }, t, n);
4904
4916
  } catch (e) {
4905
4917
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4906
4918
  }
4907
- }, Iu = (e) => e.replace(",", "."), Lu = (e) => e.map((e) => e.map((e) => Iu(e))), Ru = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4919
+ }, Lu = (e) => e.replace(",", "."), Ru = (e) => e.map((e) => e.map((e) => Lu(e))), zu = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4908
4920
  Yr.parse(e, {
4909
- ...Du,
4921
+ ...Ou,
4910
4922
  preview: t,
4911
4923
  complete: (e) => {
4912
- let a = Vu(e, {
4924
+ let a = Hu(e, {
4913
4925
  importLimit: t,
4914
4926
  ...n
4915
4927
  }, r);
4916
- a.rows = Lu(a.rows), i(a);
4928
+ a.rows = Ru(a.rows), i(a);
4917
4929
  }
4918
4930
  });
4919
- }), zu = async (e, t, n) => {
4931
+ }), Bu = async (e, t, n) => {
4920
4932
  let r = {
4921
4933
  isValid: !1,
4922
4934
  fields: [],
@@ -4925,13 +4937,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4925
4937
  errors: []
4926
4938
  };
4927
4939
  try {
4928
- if (Au(e) && !ku(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Eu(Array.from(Ou))}`), r;
4929
- let i = Au(e) ? await Nu(e) : e;
4930
- return ju(i) ? await Pu(i, t, n) : Mu(i) ? await Fu(i, t, n) : await Ru(e, t, n);
4940
+ if (ju(e) && !Au(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Du(Array.from(ku))}`), r;
4941
+ let i = ju(e) ? await Pu(e) : e;
4942
+ return Mu(i) ? await Fu(i, t, n) : Nu(i) ? await Iu(i, t, n) : await zu(e, t, n);
4931
4943
  } catch (e) {
4932
4944
  return r.errors.push(e.message), r;
4933
4945
  }
4934
- }, Bu = (e, t, n, r) => {
4946
+ }, Vu = (e, t, n, r) => {
4935
4947
  var i;
4936
4948
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4937
4949
  e,
@@ -4943,7 +4955,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4943
4955
  header: !0,
4944
4956
  delimiter: a
4945
4957
  });
4946
- }, Vu = (e, t, n) => {
4958
+ }, Hu = (e, t, n) => {
4947
4959
  let { data: r, errors: i } = e, a = {
4948
4960
  isValid: !1,
4949
4961
  fields: [],
@@ -4952,22 +4964,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4952
4964
  errors: i.map((e) => e.message)
4953
4965
  };
4954
4966
  if (i.length > 0) return a;
4955
- let { hasFieldNameHeader: o, hasUnitHeader: s } = wu(r, t);
4967
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = Tu(r, t);
4956
4968
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4957
4969
  let { validationRules: c } = t;
4958
4970
  if (c.length) {
4959
- let { isValid: e, errors: t } = Su(a.fields, a.units, a.rows, c, o, s, n);
4971
+ let { isValid: e, errors: t } = Cu(a.fields, a.units, a.rows, c, o, s, n);
4960
4972
  a.errors.push(...t), a.isValid = e && t.length === 0;
4961
4973
  } else a.isValid = a.errors.length === 0;
4962
4974
  return a;
4963
- }, Hu = .001, Uu = 0, Wu = (e, t) => e.every((e) => {
4975
+ }, Uu = .001, Wu = 0, Gu = (e, t) => e.every((e) => {
4964
4976
  let n = e[t];
4965
4977
  return n !== void 0 && n.trim() !== "" && fn(Tr(n));
4966
- }), Gu = (e, t = {}) => {
4978
+ }), Ku = (e, t = {}) => {
4967
4979
  var n, r;
4968
- let { independentColumnIndex: i = Uu, dependentColumnIndexes: a, tolerance: o = Hu } = t;
4969
- if (e.length <= 2 || !Wu(e, i)) return e.slice();
4970
- let s = (n = (r = Qr(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ei(a == null ? $r(s) : a).filter((t) => t !== i && Wu(e, t));
4980
+ let { independentColumnIndex: i = Wu, dependentColumnIndexes: a, tolerance: o = Uu } = t;
4981
+ if (e.length <= 2 || !Gu(e, i)) return e.slice();
4982
+ let s = (n = (r = Qr(e, (e) => e.length)) == null ? void 0 : r.length) == null ? 0 : n, c = ei(a == null ? $r(s) : a).filter((t) => t !== i && Gu(e, t));
4971
4983
  if (c.length === 0) return e.slice();
4972
4984
  let l = /* @__PURE__ */ new Set();
4973
4985
  for (let t of c) {
@@ -4981,7 +4993,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
4981
4993
  }
4982
4994
  }
4983
4995
  return e.filter((e, t) => l.has(t));
4984
- }, Ku = ({ id: e, message: t = {
4996
+ }, qu = ({ id: e, message: t = {
4985
4997
  type: zs.INFO,
4986
4998
  content: ""
4987
4999
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -5022,13 +5034,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5022
5034
  transition: ti,
5023
5035
  type: s
5024
5036
  });
5025
- }, qu = (e) => {
5037
+ }, Ju = (e) => {
5026
5038
  ri.dismiss(e);
5027
- }, Ju = (e, t) => {
5039
+ }, Yu = (e, t) => {
5028
5040
  t(() => {
5029
- Ku({ ...e });
5041
+ qu({ ...e });
5030
5042
  });
5031
- }, Yu = {
5043
+ }, Xu = {
5032
5044
  inputInTable: "_inputInTable_h6wco_1",
5033
5045
  inputHover: "_inputHover_h6wco_13",
5034
5046
  inputFocus: "_inputFocus_h6wco_18",
@@ -5044,7 +5056,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5044
5056
  control: "_control_h6wco_25",
5045
5057
  labelText: "_labelText_h6wco_137",
5046
5058
  noMargin: "_noMargin_h6wco_201"
5047
- }, Xu = ({ 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 = Oi.CAPITALIZE }) => {
5059
+ }, Zu = ({ 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 = Oi.CAPITALIZE }) => {
5048
5060
  let p = u(W), m = l || d;
5049
5061
  return /* @__PURE__ */ C(ai, {
5050
5062
  name: e,
@@ -5057,14 +5069,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5057
5069
  value: t
5058
5070
  } });
5059
5071
  },
5060
- className: b(Yu.toggleContainer, s && Yu.noMargin),
5072
+ className: b(Xu.toggleContainer, s && Xu.noMargin),
5061
5073
  style: { display: i },
5062
5074
  "data-testid": c ? `${c}-field` : void 0,
5063
5075
  children: [/* @__PURE__ */ C(ii, {
5064
- className: b(Yu.toggle, a && Yu.small, !t && Yu.noLabel),
5076
+ className: b(Xu.toggle, a && Xu.small, !t && Xu.noLabel),
5065
5077
  "data-testid": c,
5066
- children: [/* @__PURE__ */ S("span", { className: Yu.control }), t && /* @__PURE__ */ S("span", {
5067
- className: Yu.labelText,
5078
+ children: [/* @__PURE__ */ S("span", { className: Xu.control }), t && /* @__PURE__ */ S("span", {
5079
+ className: Xu.labelText,
5068
5080
  style: { textTransform: f },
5069
5081
  children: t
5070
5082
  })]
@@ -5073,7 +5085,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5073
5085
  onClick: d
5074
5086
  })]
5075
5087
  });
5076
- }, Zu = ({ 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
+ }, Qu = ({ 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 }) => {
5077
5089
  let { modalVisibility: { reviewPasteModal: m, pasteModalHelpVisible: h, helpModal: g } } = t, { warningMessage: y, actionButtonLabel: b, changeRulesAction: w, checkPrevalidationNeed: T } = c == null ? {} : c, E = _(null), [D, O] = v(!1), [k, A] = v({
5078
5090
  pastedText: "",
5079
5091
  parsedResult: {
@@ -5094,10 +5106,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5094
5106
  let { pastedText: j, parsedResult: M } = k, N = l((t) => {
5095
5107
  if (t) {
5096
5108
  var n, r;
5097
- let t = Gu(M.rows, e.downsampleConfig), i = {
5109
+ let t = Ku(M.rows, e.downsampleConfig), i = {
5098
5110
  validationRules: o,
5099
- importLimit: (n = e.importLimit) == null ? nu : n
5100
- }, a = Bu(M.fields, (r = M.units) == null ? [] : r, t, i);
5111
+ importLimit: (n = e.importLimit) == null ? ru : n
5112
+ }, a = Vu(M.fields, (r = M.units) == null ? [] : r, t, i);
5101
5113
  f(() => A({
5102
5114
  parsedResult: {
5103
5115
  ...M,
@@ -5130,17 +5142,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5130
5142
  }, F = () => {
5131
5143
  r("helpModal", !g);
5132
5144
  }, I = () => {
5133
- n(k), s(k.parsedResult), i(), Ju({ message: {
5145
+ n(k), s(k.parsedResult), i(), Yu({ message: {
5134
5146
  type: "Success",
5135
5147
  content: u("pasteSuccessful")
5136
5148
  } }, f);
5137
- }, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = pu(j), ne = fu(j), V = /* @__PURE__ */ C(x, { children: [
5149
+ }, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = mu(j), ne = pu(j), V = /* @__PURE__ */ C(x, { children: [
5138
5150
  /* @__PURE__ */ C("div", {
5139
5151
  className: Ls.headerContainer,
5140
5152
  children: [
5141
5153
  /* @__PURE__ */ S(K, {
5142
5154
  text: u("downsampleTooltip"),
5143
- children: /* @__PURE__ */ S(Xu, {
5155
+ children: /* @__PURE__ */ S(Zu, {
5144
5156
  label: u("downsampled"),
5145
5157
  checked: D,
5146
5158
  onChange: () => N(!D),
@@ -5173,7 +5185,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5173
5185
  }),
5174
5186
  ee ? /* @__PURE__ */ S("div", {
5175
5187
  className: Ls.resultContainer,
5176
- children: /* @__PURE__ */ S(du, {
5188
+ children: /* @__PURE__ */ S(fu, {
5177
5189
  text: null,
5178
5190
  children: /* @__PURE__ */ C("div", {
5179
5191
  className: Ls.emptyState,
@@ -5209,7 +5221,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5209
5221
  }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
5210
5222
  className: Ls.messagesContainer,
5211
5223
  children: [
5212
- B ? /* @__PURE__ */ S(lu, {
5224
+ B ? /* @__PURE__ */ S(uu, {
5213
5225
  errors: z,
5214
5226
  t: u
5215
5227
  }) : null,
@@ -5232,7 +5244,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5232
5244
  type: "Warning"
5233
5245
  } })
5234
5246
  ]
5235
- }), /* @__PURE__ */ S(ou, {
5247
+ }), /* @__PURE__ */ S(su, {
5236
5248
  validationRules: o,
5237
5249
  parsedResult: M,
5238
5250
  updateState: (e) => A((t) => ({
@@ -5275,7 +5287,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5275
5287
  onClose: i
5276
5288
  } })
5277
5289
  });
5278
- }, Qu = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ S(x, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5290
+ }, $u = ({ modals: e = [], modalVisibility: t, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ S(x, { children: e.map(({ name: e, component: a, props: o = {} }) => {
5279
5291
  var s;
5280
5292
  return /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S(a, {
5281
5293
  testId: `${i}-modal-render-${e}`,
@@ -5283,7 +5295,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5283
5295
  onClose: () => r({ name: e }),
5284
5296
  ...o
5285
5297
  }) }, e);
5286
- }) }) : null, $u = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(lo, {
5298
+ }) }) : null, ed = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(lo, {
5287
5299
  loading: !0,
5288
5300
  menu: {
5289
5301
  component: /* @__PURE__ */ S(q, {
@@ -5299,18 +5311,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5299
5311
  sections: e
5300
5312
  },
5301
5313
  testId: n
5302
- }), ed = (e, t, n) => l(async () => {
5314
+ }), td = (e, t, n) => l(async () => {
5303
5315
  if (n) try {
5304
5316
  return await n();
5305
5317
  } catch (t) {
5306
- console.error("beforeExportData failed", t), Ku({ message: {
5318
+ console.error("beforeExportData failed", t), qu({ message: {
5307
5319
  type: "Error",
5308
5320
  content: e("unableToPrepareExportData")
5309
5321
  } });
5310
5322
  return;
5311
5323
  }
5312
5324
  return t;
5313
- }, [t, n]), td = {
5325
+ }, [t, n]), nd = {
5314
5326
  cancel: "Cancel",
5315
5327
  chooseFile: "Choose file",
5316
5328
  copyDecimalComma: "Copy (decimal comma)",
@@ -5369,26 +5381,26 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5369
5381
  smartUpload_description: "Upload image and extract table content using a LLM",
5370
5382
  smartUpload_smartUpload: "Smart Upload",
5371
5383
  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"
5372
- }, nd = (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])), rd = (e) => h(() => {
5373
- let t = Object.keys(td).reduce((t, n) => {
5374
- let r = td == null ? void 0 : td[n], i = e == null ? void 0 : e[n];
5384
+ }, rd = (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])), id = (e) => h(() => {
5385
+ let t = Object.keys(nd).reduce((t, n) => {
5386
+ let r = nd == null ? void 0 : nd[n], i = e == null ? void 0 : e[n];
5375
5387
  return t[n] = i == null ? r : i, t;
5376
5388
  }, {});
5377
5389
  return (e, n) => {
5378
5390
  let r = t[e];
5379
- return n ? nd(r, n) : r;
5391
+ return n ? rd(r, n) : r;
5380
5392
  };
5381
- }, [e]), id = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, ad = (e) => {
5393
+ }, [e]), ad = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, od = (e) => {
5382
5394
  var t;
5383
5395
  return {
5384
5396
  ...e,
5385
5397
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
5386
5398
  let t = String(e == null ? "" : e);
5387
- return id.test(t) ? sr(t) : t;
5399
+ return ad.test(t) ? sr(t) : t;
5388
5400
  }))
5389
5401
  };
5390
- }, od = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5391
- let { exportData: a, beforeExportData: o, importLimit: s = nu, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = rd(u), v = ed(_, a, o), y = l((e) => {
5402
+ }, sd = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5403
+ let { exportData: a, beforeExportData: o, importLimit: s = ru, validationRules: c = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = id(u), v = td(_, a, o), y = l((e) => {
5392
5404
  n((t) => ({
5393
5405
  ...t,
5394
5406
  ...e
@@ -5432,9 +5444,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5432
5444
  let t = {
5433
5445
  validationRules: c,
5434
5446
  importLimit: s
5435
- }, n = ad(await zu(e, t, _));
5447
+ }, n = od(await Bu(e, t, _));
5436
5448
  if (g && g(h)) {
5437
- let { fields: e, units: r, rows: a } = n, o = Bu(e, r == null ? [] : r, a, t);
5449
+ let { fields: e, units: r, rows: a } = n, o = Vu(e, r == null ? [] : r, a, t);
5438
5450
  return i(() => y({
5439
5451
  pastedText: o,
5440
5452
  parsedResult: h
@@ -5460,20 +5472,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5460
5472
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5461
5473
  try {
5462
5474
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5463
- Ju({ message: {
5475
+ Yu({ message: {
5464
5476
  type: "Error",
5465
5477
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5466
5478
  } }, i);
5467
5479
  return;
5468
5480
  }
5469
- let e = ad(await zu(r, {
5481
+ let e = od(await Bu(r, {
5470
5482
  validationRules: c,
5471
5483
  importLimit: s
5472
5484
  }, _));
5473
- return e != null && e.isValid || Ju({ message: {
5485
+ return e != null && e.isValid || Yu({ message: {
5474
5486
  type: "Error",
5475
5487
  content: _("clipboardReadFailed")
5476
- } }, i), n && Ju({ message: {
5488
+ } }, i), n && Yu({ message: {
5477
5489
  type: "Success",
5478
5490
  content: _("pasteSuccessful")
5479
5491
  } }, i), {
@@ -5481,7 +5493,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5481
5493
  parsedResult: e
5482
5494
  };
5483
5495
  } catch (e) {
5484
- Ju({ message: {
5496
+ Yu({ message: {
5485
5497
  type: "Error",
5486
5498
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5487
5499
  details: e.message
@@ -5494,10 +5506,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5494
5506
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5495
5507
  if (!n) return;
5496
5508
  let r = await n.text(), a = await C(r);
5497
- a.isValid ? (f || Ju({ message: {
5509
+ a.isValid ? (f || Yu({ message: {
5498
5510
  type: "Success",
5499
5511
  content: _("pasteSuccessful")
5500
- } }, i), i(() => d(a))) : Ju({ message: {
5512
+ } }, i), i(() => d(a))) : Yu({ message: {
5501
5513
  type: "Error",
5502
5514
  content: _("fileParsingFailed")
5503
5515
  } }, i);
@@ -5511,7 +5523,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5511
5523
  try {
5512
5524
  let t = await navigator.clipboard.readText();
5513
5525
  if (!t) {
5514
- Ju({ message: {
5526
+ Yu({ message: {
5515
5527
  type: "Error",
5516
5528
  content: _("clipboardIsEmpty")
5517
5529
  } }, i);
@@ -5519,18 +5531,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5519
5531
  }
5520
5532
  let n = await C(t);
5521
5533
  if (!n.isValid) {
5522
- Ju({ message: {
5534
+ Yu({ message: {
5523
5535
  type: "Error",
5524
5536
  content: _("clipboardReadFailed")
5525
5537
  } }, i);
5526
5538
  return;
5527
5539
  }
5528
- f || Ju({ message: {
5540
+ f || Yu({ message: {
5529
5541
  type: "Success",
5530
5542
  content: _("pasteSuccessful")
5531
5543
  } }, i), e && i(() => d(n));
5532
5544
  } catch {
5533
- Ju({ message: {
5545
+ Yu({ message: {
5534
5546
  type: "Error",
5535
5547
  content: _("clipboardReadNotAllowed")
5536
5548
  } }, i);
@@ -5545,14 +5557,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5545
5557
  onClickCopyClipboard: l(async (e) => {
5546
5558
  let t = await v();
5547
5559
  if (!t) return;
5548
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : tu).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Bu(n, o, a.map((t) => t.map((t) => Zr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5560
+ let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : nu).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = Vu(n, o, a.map((t) => t.map((t) => Zr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5549
5561
  try {
5550
- await navigator.clipboard.writeText(c), Ju({ message: {
5562
+ await navigator.clipboard.writeText(c), Yu({ message: {
5551
5563
  type: "Success",
5552
5564
  content: _("copiedToClipboard")
5553
5565
  } }, i);
5554
5566
  } catch (e) {
5555
- Ju({ message: {
5567
+ Yu({ message: {
5556
5568
  type: "Error",
5557
5569
  content: _("unableToCopyToClipboard"),
5558
5570
  details: e.message
@@ -5562,14 +5574,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5562
5574
  onSmartUploadResult: l((e) => {
5563
5575
  let t = _n(e) && vn(e.errorMessage) ? e.errorMessage : void 0;
5564
5576
  if (t) {
5565
- Ju({ message: {
5577
+ Yu({ message: {
5566
5578
  type: "Error",
5567
5579
  content: t || "Smart upload failed."
5568
5580
  } }, i);
5569
5581
  return;
5570
5582
  }
5571
5583
  if (!cn(e) || e.length < 2 || !on(e, (e) => _n(e) && on(Tn(e), vn))) {
5572
- Ju({ message: {
5584
+ Yu({ message: {
5573
5585
  type: "Error",
5574
5586
  content: "Smart upload returned unexpected format.",
5575
5587
  details: JSON.stringify(e)
@@ -5601,14 +5613,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5601
5613
  ]),
5602
5614
  deleteAllRows: x
5603
5615
  };
5604
- }, sd = (e, t) => {
5616
+ }, cd = (e, t) => {
5605
5617
  var n, r;
5606
- let { fields: i, rows: a } = e, o = Bu(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");
5618
+ let { fields: i, rows: a } = e, o = Vu(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");
5607
5619
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5608
- }, cd = (e) => gn(e) && "modalKey" in e, ld = (e, t, n) => rn(e, (e) => {
5620
+ }, ld = (e) => gn(e) && "modalKey" in e, ud = (e, t, n) => rn(e, (e) => {
5609
5621
  if (cn(e) || !_n(e)) return;
5610
5622
  let { modalKey: r } = e == null ? {} : e;
5611
- if (cd(e) && typeof e.onClick != "function") {
5623
+ if (ld(e) && typeof e.onClick != "function") {
5612
5624
  let i = () => {
5613
5625
  var e;
5614
5626
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5618,7 +5630,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5618
5630
  onClick: i
5619
5631
  };
5620
5632
  }
5621
- }), ud = (e, t, n) => ld(e, t, n), dd = {
5633
+ }), dd = (e, t, n) => ud(e, t, n), fd = {
5622
5634
  pastedText: "",
5623
5635
  parsedResult: {
5624
5636
  isValid: !1,
@@ -5633,9 +5645,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5633
5645
  reviewPasteModal: !1,
5634
5646
  helpModal: !1
5635
5647
  }
5636
- }, fd = ({ config: e, smartUploadConfig: t, testId: n }) => {
5648
+ }, pd = ({ config: e, smartUploadConfig: t, testId: n }) => {
5637
5649
  var r, i, a, o;
5638
- 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: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(dd), { 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 = rd(f), L = ed(I, s, c), [R, z] = y(), B = od({
5650
+ 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: _ = !0, showUploadFileOption: b = !0, modals: x = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = v(fd), { 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 = id(f), L = td(I, s, c), [R, z] = y(), B = sd({
5639
5651
  config: e,
5640
5652
  state: E,
5641
5653
  setState: D,
@@ -5668,14 +5680,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5668
5680
  onClick: () => V("smartUploadModal", !O),
5669
5681
  testId: `${n}-smart-upload`
5670
5682
  }] : [],
5671
- ...ud((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
5683
+ ...dd((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, V)
5672
5684
  ] : [], le = [
5673
5685
  {
5674
5686
  type: "Option",
5675
5687
  label: I("downloadFile"),
5676
5688
  onClick: async () => {
5677
5689
  let e = await L();
5678
- e && e && sd(e, d);
5690
+ e && e && cd(e, d);
5679
5691
  }
5680
5692
  },
5681
5693
  ...p ? [{
@@ -5700,20 +5712,20 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5700
5712
  }]
5701
5713
  }
5702
5714
  }],
5703
- ...ud((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
5715
+ ...dd((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, V)
5704
5716
  ], ue = g ? [{
5705
5717
  type: "Option",
5706
5718
  label: I("deleteAllRows"),
5707
5719
  onClick: () => se(),
5708
5720
  testId: `${n}-delete-all-rows`
5709
- }, ...ud((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
5721
+ }, ...dd((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, V)] : [], de = _ ? [
5710
5722
  { type: "Divider" },
5711
5723
  {
5712
5724
  type: "Option",
5713
5725
  label: I("help"),
5714
5726
  onClick: () => V("helpModal", !A)
5715
5727
  },
5716
- ...ud((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
5728
+ ...dd((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, V)
5717
5729
  ] : [], fe = [
5718
5730
  ...ce.length ? [{
5719
5731
  section: [...ce, ...de],
@@ -5739,13 +5751,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5739
5751
  small: !0,
5740
5752
  dark: !0
5741
5753
  }),
5742
- fe.map((e, t) => /* @__PURE__ */ S($u, {
5754
+ fe.map((e, t) => /* @__PURE__ */ S(ed, {
5743
5755
  sections: e.section,
5744
5756
  iconName: e.iconName,
5745
5757
  tooltip: e.tooltip,
5746
5758
  testId: `data-${e == null ? void 0 : e.name}-menu`
5747
5759
  }, t)),
5748
- k && /* @__PURE__ */ S(Zu, {
5760
+ k && /* @__PURE__ */ S(Qu, {
5749
5761
  config: e,
5750
5762
  state: E,
5751
5763
  updateState: te,
@@ -5781,14 +5793,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5781
5793
  cancelText: I("cancel"),
5782
5794
  testId: n
5783
5795
  }),
5784
- /* @__PURE__ */ S(Qu, {
5796
+ /* @__PURE__ */ S($u, {
5785
5797
  modals: x,
5786
5798
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5787
5799
  onCloseModal: ne,
5788
5800
  testId: n
5789
5801
  })
5790
5802
  ] });
5791
- }, pd = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = bn, ...o }) => {
5803
+ }, md = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = bn, ...o }) => {
5792
5804
  let s = u(W), c = _(null), l = () => {
5793
5805
  var e;
5794
5806
  i || s || (e = c.current) == null || e.click();
@@ -5816,12 +5828,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5816
5828
  multiple: n,
5817
5829
  onChange: d
5818
5830
  })] });
5819
- }, md = {
5831
+ }, hd = {
5820
5832
  label: "_label_uxk69_1",
5821
5833
  labelLeft: "_labelLeft_uxk69_5",
5822
5834
  icons: "_icons_uxk69_13",
5823
5835
  small: "_small_uxk69_27"
5824
- }, hd = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5836
+ }, gd = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5825
5837
  visible: !1,
5826
5838
  active: !1,
5827
5839
  onClick: () => {},
@@ -5830,14 +5842,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5830
5842
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Oi.CAPITALIZE }) => {
5831
5843
  var d;
5832
5844
  return /* @__PURE__ */ S("div", {
5833
- className: b(md.label, c ? md.labelLeft : "", l ? md.small : ""),
5845
+ className: b(hd.label, c ? hd.labelLeft : "", l ? hd.small : ""),
5834
5846
  children: /* @__PURE__ */ C("label", {
5835
5847
  style: {
5836
5848
  textTransform: u,
5837
5849
  width: t || ""
5838
5850
  },
5839
5851
  children: [e, /* @__PURE__ */ C("div", {
5840
- className: md.icons,
5852
+ className: hd.icons,
5841
5853
  children: [
5842
5854
  (n || i) && /* @__PURE__ */ S(da, {
5843
5855
  text: n,
@@ -5863,23 +5875,23 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5863
5875
  })]
5864
5876
  })
5865
5877
  });
5866
- }, gd = {
5878
+ }, _d = {
5867
5879
  field: "_field_1xoss_1",
5868
5880
  labelLeft: "_labelLeft_1xoss_5",
5869
5881
  fieldInput: "_fieldInput_1xoss_9",
5870
5882
  formRow: "_formRow_1xoss_12",
5871
5883
  "form-row": "_form-row_1xoss_13",
5872
5884
  button: "_button_1xoss_22"
5873
- }, _d = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5885
+ }, vd = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5874
5886
  visible: !1,
5875
5887
  active: !1,
5876
5888
  onClick: () => {},
5877
5889
  tooltip: "",
5878
5890
  testId: void 0
5879
5891
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Oi.CAPITALIZE }) => /* @__PURE__ */ C("div", {
5880
- className: b(gd.field, t ? gd.labelLeft : ""),
5892
+ className: b(_d.field, t ? _d.labelLeft : ""),
5881
5893
  "data-testid": d,
5882
- children: [(e || t) && /* @__PURE__ */ S(hd, {
5894
+ children: [(e || t) && /* @__PURE__ */ S(gd, {
5883
5895
  label: e,
5884
5896
  width: n,
5885
5897
  helpText: i,
@@ -5892,10 +5904,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5892
5904
  small: u,
5893
5905
  textTransform: f
5894
5906
  }), /* @__PURE__ */ S("div", {
5895
- className: gd.fieldInput,
5907
+ className: _d.fieldInput,
5896
5908
  children: r
5897
5909
  })]
5898
- }), vd = ({ 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__ */ S("div", {
5910
+ }), yd = ({ 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__ */ S("div", {
5899
5911
  style: {
5900
5912
  display: "flex",
5901
5913
  flexDirection: n,
@@ -5907,8 +5919,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5907
5919
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5908
5920
  },
5909
5921
  children: a
5910
- }), yd = { formRow: "_formRow_odewu_1" }, bd = ({ children: e }) => /* @__PURE__ */ S("div", {
5911
- className: yd.formRow,
5922
+ }), bd = { formRow: "_formRow_odewu_1" }, xd = ({ children: e }) => /* @__PURE__ */ S("div", {
5923
+ className: bd.formRow,
5912
5924
  children: e
5913
5925
  }), Z = {
5914
5926
  inputInTable: "_inputInTable_15rr3_1",
@@ -5954,15 +5966,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5954
5966
  hideScrollbar: "_hideScrollbar_15rr3_71",
5955
5967
  noPointerEvents: "_noPointerEvents_15rr3_313",
5956
5968
  virtualRows: "_virtualRows_15rr3_316"
5957
- }, xd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
5969
+ }, Sd = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ S("a", {
5958
5970
  className: Z.toggleNarrow,
5959
5971
  onClick: t,
5960
5972
  children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_LEFT })
5961
- }) : null, Sd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
5973
+ }) : null, Cd = o(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ C("div", {
5962
5974
  ref: a,
5963
5975
  className: b(Z.header, i ? Z.stickyHeader : ""),
5964
5976
  children: [
5965
- /* @__PURE__ */ S(xd, {
5977
+ /* @__PURE__ */ S(Sd, {
5966
5978
  toggleNarrow: n,
5967
5979
  onClickToggleNarrow: r
5968
5980
  }),
@@ -5982,14 +5994,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
5982
5994
  })
5983
5995
  })
5984
5996
  ]
5985
- })), Cd = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
5997
+ })), wd = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
5986
5998
  className: Z.label,
5987
5999
  children: /* @__PURE__ */ S(no, {
5988
6000
  color: e.color,
5989
6001
  title: e.value,
5990
6002
  small: e.small
5991
6003
  })
5992
- }) : null, wd = ({ name: e, icon: t, testId: n }) => {
6004
+ }) : null, Td = ({ name: e, icon: t, testId: n }) => {
5993
6005
  let r = t && /* @__PURE__ */ S(G, {
5994
6006
  icon: t.icon,
5995
6007
  color: t.color || "#db2828"
@@ -6009,8 +6021,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6009
6021
  children: r
6010
6022
  })]
6011
6023
  });
6012
- }, Td = ({ item: e }) => {
6013
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(wd, {
6024
+ }, Ed = ({ item: e }) => {
6025
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ S(Td, {
6014
6026
  name: t,
6015
6027
  icon: n,
6016
6028
  testId: o && `${o}-name`
@@ -6036,10 +6048,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6036
6048
  })
6037
6049
  ]
6038
6050
  });
6039
- }, Ed = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(no, {
6051
+ }, Dd = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(no, {
6040
6052
  color: "rgba(0,0,0,0.25)",
6041
6053
  title: e.metaCount
6042
- }), Dd = ({ item: e, expanding: t }) => {
6054
+ }), Od = ({ item: e, expanding: t }) => {
6043
6055
  let n = (e) => {
6044
6056
  e.preventDefault(), e.stopPropagation();
6045
6057
  }, r = !!t && !!e.active && !!e.content;
@@ -6051,7 +6063,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6051
6063
  children: e.content
6052
6064
  })
6053
6065
  });
6054
- }, Od = o(({ item: e, index: t }, n) => {
6066
+ }, kd = o(({ item: e, index: t }, n) => {
6055
6067
  var r;
6056
6068
  let i = u(W), { actions: a, disabled: o, expanded: s, onClick: c, title: l, name: d, icon: f, testId: p } = e;
6057
6069
  return /* @__PURE__ */ S("div", {
@@ -6071,13 +6083,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6071
6083
  className: b(Z.expandIcon, s && Z.expanded),
6072
6084
  children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
6073
6085
  }),
6074
- /* @__PURE__ */ S(wd, {
6086
+ /* @__PURE__ */ S(Td, {
6075
6087
  name: d,
6076
6088
  icon: f
6077
6089
  }),
6078
6090
  /* @__PURE__ */ C("div", {
6079
6091
  className: Z.right,
6080
- children: [/* @__PURE__ */ S(Ed, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
6092
+ children: [/* @__PURE__ */ S(Dd, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
6081
6093
  className: Z.actions,
6082
6094
  children: /* @__PURE__ */ S(fo, { actions: (r = e.actions) == null ? [] : r })
6083
6095
  })]
@@ -6085,7 +6097,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6085
6097
  ]
6086
6098
  }) })
6087
6099
  });
6088
- }), kd = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
6100
+ }), Ad = o(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
6089
6101
  let o = u(W), s = (e, t, s, c, l, u) => {
6090
6102
  let d = t.actions && t.actions.find((e) => {
6091
6103
  var t;
@@ -6121,24 +6133,24 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6121
6133
  className: Z.indentIcon,
6122
6134
  children: /* @__PURE__ */ S(G, { icon: U.INDENT })
6123
6135
  }) : null,
6124
- /* @__PURE__ */ S(Cd, { label: t.label }),
6125
- /* @__PURE__ */ S(Td, { item: t }),
6136
+ /* @__PURE__ */ S(wd, { label: t.label }),
6137
+ /* @__PURE__ */ S(Ed, { item: t }),
6126
6138
  /* @__PURE__ */ C("div", {
6127
6139
  className: Z.right,
6128
- children: [/* @__PURE__ */ S(Ed, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
6140
+ children: [/* @__PURE__ */ S(Dd, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
6129
6141
  className: Z.actions,
6130
6142
  children: /* @__PURE__ */ S(fo, { actions: t.actions })
6131
6143
  })]
6132
6144
  })
6133
6145
  ]
6134
- }), /* @__PURE__ */ S(Dd, {
6146
+ }), /* @__PURE__ */ S(Od, {
6135
6147
  item: t,
6136
6148
  expanding: n
6137
6149
  })]
6138
6150
  })
6139
6151
  }, e);
6140
6152
  };
6141
- return e.type === "Heading" ? /* @__PURE__ */ S(Od, {
6153
+ return e.type === "Heading" ? /* @__PURE__ */ S(kd, {
6142
6154
  ref: a,
6143
6155
  item: e,
6144
6156
  index: t
@@ -6153,7 +6165,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6153
6165
  };
6154
6166
  return s(e, t, l, n, r, i);
6155
6167
  })(t, e) : s(t, e);
6156
- }), Ad = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
6168
+ }), jd = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
6157
6169
  let [i, a] = v(null), o = (e) => {
6158
6170
  a(e.active.id);
6159
6171
  }, s = (e) => {
@@ -6176,7 +6188,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6176
6188
  dropAnimation: null,
6177
6189
  children: /* @__PURE__ */ S("div", {
6178
6190
  className: Z.dragOverlay,
6179
- children: /* @__PURE__ */ S(kd, {
6191
+ children: /* @__PURE__ */ S(Ad, {
6180
6192
  draggable: t,
6181
6193
  item: n.items[Number(i)],
6182
6194
  index: Number(i)
@@ -6184,7 +6196,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6184
6196
  })
6185
6197
  }), document.body)]
6186
6198
  }) : e;
6187
- }, jd = ({ items: e, scrollDetails: t, children: n }) => {
6199
+ }, Md = ({ items: e, scrollDetails: t, children: n }) => {
6188
6200
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: o } = t, s = _(null), c = Jr({
6189
6201
  count: e.length,
6190
6202
  getScrollElement: () => s.current,
@@ -6217,9 +6229,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6217
6229
  children: n({ virtualizer: c })
6218
6230
  })
6219
6231
  });
6220
- }, Md = ({ items: e, scrollDetails: t, children: n }) => {
6232
+ }, Nd = ({ items: e, scrollDetails: t, children: n }) => {
6221
6233
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
6222
- return a ? /* @__PURE__ */ S(jd, {
6234
+ return a ? /* @__PURE__ */ S(Md, {
6223
6235
  items: e,
6224
6236
  scrollDetails: t,
6225
6237
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -6230,7 +6242,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6230
6242
  children: n({})
6231
6243
  })
6232
6244
  });
6233
- }, Nd = ({ 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 = {
6245
+ }, Pd = ({ 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 = {
6234
6246
  scrollable: !1,
6235
6247
  hideScrollbar: !1,
6236
6248
  triggerScrollToActiveItem: !1,
@@ -6243,17 +6255,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6243
6255
  marginBottom: d
6244
6256
  },
6245
6257
  id: "scrollableDiv",
6246
- children: [!s && /* @__PURE__ */ S(Sd, {
6258
+ children: [!s && /* @__PURE__ */ S(Cd, {
6247
6259
  name: e.name,
6248
6260
  actions: e.actions,
6249
6261
  toggleNarrow: i,
6250
6262
  onToggleNarrow: a,
6251
6263
  stickyHeader: c
6252
- }), /* @__PURE__ */ S(Ad, {
6264
+ }), /* @__PURE__ */ S(jd, {
6253
6265
  draggable: l,
6254
6266
  list: e,
6255
6267
  onListReorder: u,
6256
- children: /* @__PURE__ */ S(Md, {
6268
+ children: /* @__PURE__ */ S(Nd, {
6257
6269
  items: e.items,
6258
6270
  scrollDetails: m,
6259
6271
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ S("div", {
@@ -6261,14 +6273,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6261
6273
  className: Z.virtualRow,
6262
6274
  style: { transform: `translateY(${r.start}px)` },
6263
6275
  ref: t.measureElement,
6264
- children: /* @__PURE__ */ S(kd, {
6276
+ children: /* @__PURE__ */ S(Ad, {
6265
6277
  index: r.index,
6266
6278
  draggable: l,
6267
6279
  item: e.items[r.index],
6268
6280
  expanding: n,
6269
6281
  invokeEditOnRowClick: o
6270
6282
  })
6271
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(kd, {
6283
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(Ad, {
6272
6284
  index: t,
6273
6285
  draggable: l,
6274
6286
  item: e,
@@ -6277,7 +6289,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6277
6289
  }) }, t))
6278
6290
  })
6279
6291
  })]
6280
- }), Pd = {
6292
+ }), Fd = {
6281
6293
  loader: "_loader_477i5_1",
6282
6294
  fullViewPortSize: "_fullViewPortSize_477i5_7",
6283
6295
  cover: "_cover_477i5_14",
@@ -6285,33 +6297,33 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6285
6297
  content: "_content_477i5_44",
6286
6298
  text: "_text_477i5_49",
6287
6299
  details: "_details_477i5_53"
6288
- }, Fd = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = ki.DARK, testId: c = null }) => {
6300
+ }, Id = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = ki.DARK, testId: c = null }) => {
6289
6301
  let l = s === ki.DARK ? ki.WHITE : ki.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
6290
6302
  return /* @__PURE__ */ S("div", {
6291
- className: b(Pd.loader, a ? Pd.cover : "", { [Pd.fullViewPortSize]: i }),
6303
+ className: b(Fd.loader, a ? Fd.cover : "", { [Fd.fullViewPortSize]: i }),
6292
6304
  style: {
6293
6305
  width: e,
6294
6306
  height: t
6295
6307
  },
6296
6308
  "data-testid": c,
6297
6309
  children: /* @__PURE__ */ S("div", {
6298
- className: Pd.dimmer,
6310
+ className: Fd.dimmer,
6299
6311
  style: {
6300
6312
  background: u,
6301
6313
  color: l
6302
6314
  },
6303
6315
  children: /* @__PURE__ */ C("div", {
6304
- className: Pd.content,
6316
+ className: Fd.content,
6305
6317
  "data-testid": c && `${c}-content`,
6306
6318
  children: [
6307
6319
  o,
6308
6320
  n && /* @__PURE__ */ S("div", {
6309
- className: Pd.text,
6321
+ className: Fd.text,
6310
6322
  "data-testid": c && `${c}-text`,
6311
6323
  children: n
6312
6324
  }),
6313
6325
  r && /* @__PURE__ */ S("div", {
6314
- className: Pd.details,
6326
+ className: Fd.details,
6315
6327
  "data-testid": c && `${c}-details`,
6316
6328
  children: r
6317
6329
  })
@@ -6319,15 +6331,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6319
6331
  })
6320
6332
  })
6321
6333
  });
6322
- }, Id = {
6334
+ }, Ld = {
6323
6335
  menu: "_menu_12x4u_1",
6324
6336
  header: "_header_12x4u_11",
6325
6337
  item: "_item_12x4u_27",
6326
6338
  heading: "_heading_12x4u_32"
6327
- }, Ld = ({ option: e, onChange: t }) => {
6339
+ }, Rd = ({ option: e, onChange: t }) => {
6328
6340
  let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
6329
6341
  return /* @__PURE__ */ S("div", {
6330
- className: Id.item,
6342
+ className: Ld.item,
6331
6343
  children: /* @__PURE__ */ S(fa, {
6332
6344
  label: i,
6333
6345
  noMargin: !0,
@@ -6340,21 +6352,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6340
6352
  textTransform: l
6341
6353
  })
6342
6354
  }, n);
6343
- }, Rd = ({ label: e }) => /* @__PURE__ */ S("div", {
6344
- className: Id.heading,
6355
+ }, zd = ({ label: e }) => /* @__PURE__ */ S("div", {
6356
+ className: Ld.heading,
6345
6357
  children: e
6346
- }), zd = /* @__PURE__ */ function(e) {
6358
+ }), Bd = /* @__PURE__ */ function(e) {
6347
6359
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
6348
- }({}), Bd = (e) => e.type !== zd.HEADING && e.type !== zd.DIVIDER && !e.disabled, Vd = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ C("div", {
6349
- className: b("menu", Id.menu),
6360
+ }({}), Vd = (e) => e.type !== Bd.HEADING && e.type !== Bd.DIVIDER && !e.disabled, Hd = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ C("div", {
6361
+ className: b("menu", Ld.menu),
6350
6362
  style: { maxHeight: r },
6351
6363
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
6352
6364
  children: [n && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
6353
- className: Id.header,
6365
+ className: Ld.header,
6354
6366
  children: [
6355
6367
  /* @__PURE__ */ S("a", {
6356
6368
  onClick: (n) => {
6357
- t(n, e.map((e) => Bd(e) ? {
6369
+ t(n, e.map((e) => Vd(e) ? {
6358
6370
  ...e,
6359
6371
  selected: !0
6360
6372
  } : e));
@@ -6363,7 +6375,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6363
6375
  }),
6364
6376
  /* @__PURE__ */ S("a", {
6365
6377
  onClick: (n) => {
6366
- t(n, e.map((e) => Bd(e) ? {
6378
+ t(n, e.map((e) => Vd(e) ? {
6367
6379
  ...e,
6368
6380
  selected: !1
6369
6381
  } : e));
@@ -6372,7 +6384,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6372
6384
  }),
6373
6385
  /* @__PURE__ */ S("a", {
6374
6386
  onClick: (n) => {
6375
- t(n, e.map((e) => Bd(e) ? {
6387
+ t(n, e.map((e) => Vd(e) ? {
6376
6388
  ...e,
6377
6389
  selected: !e.selected
6378
6390
  } : e));
@@ -6382,19 +6394,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6382
6394
  ]
6383
6395
  }), /* @__PURE__ */ S(Zo, { margin: 0 })] }), e.map((n, r) => {
6384
6396
  switch (n.type) {
6385
- case zd.HEADING:
6397
+ case Bd.HEADING:
6386
6398
  var i;
6387
- return /* @__PURE__ */ S(Rd, { label: n.label }, (i = n.key) == null ? r : i);
6388
- case zd.DIVIDER:
6399
+ return /* @__PURE__ */ S(zd, { label: n.label }, (i = n.key) == null ? r : i);
6400
+ case Bd.DIVIDER:
6389
6401
  var a;
6390
6402
  return /* @__PURE__ */ S(Zo, { margin: 0 }, (a = n.key) == null ? r : a);
6391
6403
  default:
6392
6404
  var o;
6393
- return /* @__PURE__ */ S(Ld, {
6405
+ return /* @__PURE__ */ S(Rd, {
6394
6406
  option: n,
6395
6407
  onChange: (r) => {
6396
6408
  let { value: i } = n;
6397
- t(r, e.map((e) => e.type === zd.HEADING || e.type === zd.DIVIDER || e.value !== i ? e : {
6409
+ t(r, e.map((e) => e.type === Bd.HEADING || e.type === Bd.DIVIDER || e.value !== i ? e : {
6398
6410
  ...e,
6399
6411
  selected: !e.selected
6400
6412
  }));
@@ -6402,7 +6414,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6402
6414
  }, (o = n.key) == null ? r : o);
6403
6415
  }
6404
6416
  })]
6405
- }), Hd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(lo, {
6417
+ }), Ud = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(lo, {
6406
6418
  testId: c,
6407
6419
  disabled: t,
6408
6420
  menu: {
@@ -6410,7 +6422,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6410
6422
  small: a,
6411
6423
  label: n,
6412
6424
  trigger: wi.DROP_DOWN_BUTTON,
6413
- sections: /* @__PURE__ */ S(Vd, {
6425
+ sections: /* @__PURE__ */ S(Hd, {
6414
6426
  testId: c,
6415
6427
  options: r,
6416
6428
  onChangeOptions: (t, n) => {
@@ -6420,13 +6432,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6420
6432
  maxHeight: s
6421
6433
  })
6422
6434
  }
6423
- }), Ud = {
6435
+ }), Wd = {
6424
6436
  page: "_page_beskc_1",
6425
6437
  scroll: "_scroll_beskc_23"
6426
- }, Wd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6438
+ }, Gd = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6427
6439
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
6428
6440
  return /* @__PURE__ */ S("div", {
6429
- className: b(Ud.page, r ? Ud.scroll : ""),
6441
+ className: b(Wd.page, r ? Wd.scroll : ""),
6430
6442
  style: {
6431
6443
  left: t,
6432
6444
  padding: a,
@@ -6434,17 +6446,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6434
6446
  },
6435
6447
  children: e
6436
6448
  });
6437
- }, Gd = ({ id: e, children: t }) => {
6449
+ }, Kd = ({ id: e, children: t }) => {
6438
6450
  let n = document.querySelector(`#${e}`), [r, i] = v(!1);
6439
6451
  return m(() => {
6440
6452
  r || i(!0);
6441
6453
  }, [e]), n ? Wr(t, n) : null;
6442
- }, Kd = { printHeader: "_printHeader_o7xxx_1" }, qd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
6454
+ }, qd = { printHeader: "_printHeader_o7xxx_1" }, Jd = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ S("img", {
6443
6455
  src: e,
6444
6456
  alt: t,
6445
- className: Kd.printHeader,
6457
+ className: qd.printHeader,
6446
6458
  style: { width: n }
6447
- }), Jd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
6459
+ }), Yd = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: s = !1, inline: c = !1, testId: l }) => {
6448
6460
  var d;
6449
6461
  let f = u(W), { simpleInputs: p, options: m, selectedOptions: h } = el(n, r), g = h == null ? void 0 : p ? h : h.value, _ = a || f;
6450
6462
  return /* @__PURE__ */ C(Hr, {
@@ -6485,36 +6497,36 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6485
6497
  }, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
6486
6498
  })]
6487
6499
  });
6488
- }, Yd = {
6500
+ }, Xd = {
6489
6501
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6490
6502
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6491
- }, Xd = /* @__PURE__ */ function(e) {
6503
+ }, Zd = /* @__PURE__ */ function(e) {
6492
6504
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e.MENTION = "at", e;
6493
- }({}), Zd = ({ editor: e, disabled: t = !1, showMentionButton: n = !1, toolbarComponent: r = null }) => {
6505
+ }({}), Qd = ({ editor: e, disabled: t = !1, showMentionButton: n = !1, toolbarComponent: r = null }) => {
6494
6506
  var i, a, o, s, c;
6495
6507
  let l = [
6496
6508
  {
6497
- icon: Xd.BOLD,
6509
+ icon: Zd.BOLD,
6498
6510
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6499
6511
  active: (i = e == null ? void 0 : e.isActive("bold")) != null && i
6500
6512
  },
6501
6513
  {
6502
- icon: Xd.ITALIC,
6514
+ icon: Zd.ITALIC,
6503
6515
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6504
6516
  active: (a = e == null ? void 0 : e.isActive("italic")) != null && a
6505
6517
  },
6506
6518
  {
6507
- icon: Xd.CODE,
6519
+ icon: Zd.CODE,
6508
6520
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6509
6521
  active: (o = e == null ? void 0 : e.isActive("code")) != null && o
6510
6522
  },
6511
6523
  {
6512
- icon: Xd.UL,
6524
+ icon: Zd.UL,
6513
6525
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6514
6526
  active: (s = e == null ? void 0 : e.isActive("bulletList")) != null && s
6515
6527
  },
6516
6528
  {
6517
- icon: Xd.OL,
6529
+ icon: Zd.OL,
6518
6530
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6519
6531
  active: (c = e == null ? void 0 : e.isActive("orderedList")) != null && c
6520
6532
  }
@@ -6522,15 +6534,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6522
6534
  if (n) {
6523
6535
  var u;
6524
6536
  l.push({
6525
- icon: Xd.MENTION,
6537
+ icon: Zd.MENTION,
6526
6538
  onClick: () => e == null ? void 0 : e.chain().focus().insertContent("@").run(),
6527
6539
  active: (u = e == null ? void 0 : e.isActive("mention")) != null && u
6528
6540
  });
6529
6541
  }
6530
6542
  return /* @__PURE__ */ C("div", {
6531
- className: Yd.richTextToolbarContainer,
6543
+ className: Xd.richTextToolbarContainer,
6532
6544
  children: [/* @__PURE__ */ S("div", {
6533
- className: Yd.richTextToolbar,
6545
+ className: Xd.richTextToolbar,
6534
6546
  children: l.map((e, n) => /* @__PURE__ */ S(q, {
6535
6547
  small: !0,
6536
6548
  round: !0,
@@ -6543,36 +6555,36 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6543
6555
  }, n))
6544
6556
  }), r]
6545
6557
  });
6546
- }, Qd = 8, $d = /^\[@((?:\\.|[^\\\]])*)\]\(mention:((?:\\.|[^\\)])+)\)/, ef = (e) => e.replace(/[\\\][()]/g, "\\$&"), tf = (e) => e.replace(/\\(.)/g, "$1"), nf = (e) => typeof e == "string" ? e : "", rf = (e) => {
6547
- let t = $d.exec(e);
6558
+ }, $d = 8, ef = /^\[@((?:\\.|[^\\\]])*)\]\(mention:((?:\\.|[^\\)])+)\)/, tf = (e) => e.replace(/[\\\][()]/g, "\\$&"), nf = (e) => e.replace(/\\(.)/g, "$1"), rf = (e) => typeof e == "string" ? e : "", af = (e) => {
6559
+ let t = ef.exec(e);
6548
6560
  if (!t) return;
6549
6561
  let [n, r, i] = t;
6550
6562
  return {
6551
6563
  raw: n,
6552
- id: tf(i),
6553
- label: tf(r)
6564
+ id: nf(i),
6565
+ label: nf(r)
6554
6566
  };
6555
- }, af = (e) => {
6567
+ }, of = (e) => {
6556
6568
  if (!e) return [];
6557
6569
  let t = /* @__PURE__ */ new Set();
6558
6570
  return e.state.doc.descendants((e) => {
6559
6571
  e.type.name === di.name && typeof e.attrs.id == "string" && t.add(e.attrs.id);
6560
6572
  }), [...t];
6561
- }, of = (e, t) => `[@${ef(e)}](mention:${ef(t)})`, sf = (e, t) => di.extend({
6573
+ }, sf = (e, t) => `[@${tf(e)}](mention:${tf(t)})`, cf = (e, t) => di.extend({
6562
6574
  renderMarkdown: (e) => {
6563
6575
  var t, n;
6564
- return of(nf((t = e.attrs) == null ? void 0 : t.label), nf((n = e.attrs) == null ? void 0 : n.id));
6576
+ return sf(rf((t = e.attrs) == null ? void 0 : t.label), rf((n = e.attrs) == null ? void 0 : n.id));
6565
6577
  },
6566
6578
  parseMarkdown: (e, t) => t.createNode(di.name, {
6567
- id: nf(e.id),
6568
- label: nf(e.label)
6579
+ id: rf(e.id),
6580
+ label: rf(e.label)
6569
6581
  }),
6570
6582
  markdownTokenizer: {
6571
6583
  name: di.name,
6572
6584
  level: "inline",
6573
6585
  start: (e) => e.indexOf("[@"),
6574
6586
  tokenize: (e) => {
6575
- let t = rf(e);
6587
+ let t = af(e);
6576
6588
  return t && {
6577
6589
  type: di.name,
6578
6590
  ...t
@@ -6588,11 +6600,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6588
6600
  var r;
6589
6601
  let i = e();
6590
6602
  if (!i) return [];
6591
- let a = new Set(af(n));
6592
- return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ? Qd : r);
6603
+ let a = new Set(of(n));
6604
+ return (await i.getItems(t)).filter(({ id: e }) => !a.has(e)).slice(0, (r = i.maxItems) == null ? $d : r);
6593
6605
  },
6594
6606
  render: t
6595
- } }), cf = {
6607
+ } }), lf = {
6596
6608
  inputInTable: "_inputInTable_1xhvx_1",
6597
6609
  inputHover: "_inputHover_1xhvx_13",
6598
6610
  inputFocus: "_inputFocus_1xhvx_18",
@@ -6607,7 +6619,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6607
6619
  mentionLayer: "_mentionLayer_1xhvx_133",
6608
6620
  mentionOption: "_mentionOption_1xhvx_144",
6609
6621
  focused: "_focused_1xhvx_150"
6610
- }, lf = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
6622
+ }, uf = o(({ editable: e, getRect: t, items: n, onDismiss: r, onSelect: i }, a) => {
6611
6623
  let [o, s] = v(0), c = n.length > 0, u = f(), m = l((e) => `${u}-option-${e}`, [u]), { renderLayer: g, layerProps: y, triggerProps: x } = aa({
6612
6624
  isOpen: c,
6613
6625
  placement: "bottom-start",
@@ -6669,14 +6681,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6669
6681
  i
6670
6682
  ]), c ? g(/* @__PURE__ */ S("div", {
6671
6683
  ...y,
6672
- className: cf.mentionLayer,
6684
+ className: lf.mentionLayer,
6673
6685
  id: u,
6674
6686
  role: "listbox",
6675
6687
  children: n.map((e, t) => /* @__PURE__ */ S("div", {
6676
6688
  id: m(t),
6677
6689
  role: "option",
6678
6690
  "aria-selected": t === o,
6679
- className: b(cf.mentionOption, { [cf.focused]: t === o }),
6691
+ className: b(lf.mentionOption, { [lf.focused]: t === o }),
6680
6692
  onMouseEnter: () => s(t),
6681
6693
  onMouseDown: (t) => {
6682
6694
  t.preventDefault(), i(e);
@@ -6684,12 +6696,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6684
6696
  children: e.label
6685
6697
  }, e.id))
6686
6698
  })) : null;
6687
- }), uf = ({ clientRect: e, command: t, editor: n, items: r }) => ({
6699
+ }), df = ({ clientRect: e, command: t, editor: n, items: r }) => ({
6688
6700
  clientRect: e,
6689
6701
  command: t,
6690
6702
  items: r,
6691
6703
  editable: n.view.dom
6692
- }), df = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a }, o) => {
6704
+ }), ff = c(o(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i, mentions: a }, o) => {
6693
6705
  var s, c, l, f;
6694
6706
  let m = u(W), g = r || m, y = !!a, b = _(a), x = _(null), w = _(n == null ? "" : n), [T, E] = v(null);
6695
6707
  d(() => {
@@ -6699,9 +6711,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6699
6711
  ci,
6700
6712
  li.configure({ placeholder: e }),
6701
6713
  ui,
6702
- sf(() => b.current, () => ({
6703
- onStart: (e) => E(uf(e)),
6704
- onUpdate: (e) => E(uf(e)),
6714
+ cf(() => b.current, () => ({
6715
+ onStart: (e) => E(df(e)),
6716
+ onUpdate: (e) => E(df(e)),
6705
6717
  onExit: () => E(null),
6706
6718
  onKeyDown: ({ event: e }) => {
6707
6719
  var t, n;
@@ -6713,9 +6725,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6713
6725
  content: w.current,
6714
6726
  contentType: "markdown",
6715
6727
  editable: !g,
6716
- editorProps: { attributes: { class: cf.editable } },
6728
+ editorProps: { attributes: { class: lf.editable } },
6717
6729
  onUpdate: ({ editor: e }) => {
6718
- t == null || t(e.getMarkdown(), { mentionedIds: af(e) });
6730
+ t == null || t(e.getMarkdown(), { mentionedIds: of(e) });
6719
6731
  }
6720
6732
  });
6721
6733
  return d(() => {
@@ -6728,18 +6740,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6728
6740
  }, [g, O]), p(o, () => ({
6729
6741
  clearContent: () => O == null ? void 0 : O.commands.clearContent(!1),
6730
6742
  editor: O,
6731
- getMentionedIds: () => af(O)
6743
+ getMentionedIds: () => of(O)
6732
6744
  }), [O]), /* @__PURE__ */ C("div", {
6733
- className: cf.richTextInput,
6745
+ className: lf.richTextInput,
6734
6746
  children: [
6735
- /* @__PURE__ */ S(Zd, {
6747
+ /* @__PURE__ */ S(Qd, {
6736
6748
  editor: O,
6737
6749
  disabled: g,
6738
6750
  showMentionButton: y && ((s = a == null ? void 0 : a.showMentionButton) == null || s),
6739
6751
  toolbarComponent: i
6740
6752
  }),
6741
6753
  /* @__PURE__ */ S(oi, { editor: O }),
6742
- y && /* @__PURE__ */ S(Xi, { children: /* @__PURE__ */ S(lf, {
6754
+ y && /* @__PURE__ */ S(Xi, { children: /* @__PURE__ */ S(uf, {
6743
6755
  ref: x,
6744
6756
  editable: (c = T == null ? void 0 : T.editable) == null ? null : c,
6745
6757
  getRect: (l = T == null ? void 0 : T.clientRect) == null ? null : l,
@@ -6749,13 +6761,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6749
6761
  }) })
6750
6762
  ]
6751
6763
  });
6752
- })), ff = ({ children: e }) => /* @__PURE__ */ S("span", {
6753
- className: cf.mention,
6764
+ })), pf = ({ children: e }) => /* @__PURE__ */ S("span", {
6765
+ className: lf.mention,
6754
6766
  children: e
6755
- }), pf = { row: "_row_n16je_1" }, mf = ({ 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 }) => {
6767
+ }), mf = { row: "_row_n16je_1" }, hf = ({ 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 }) => {
6756
6768
  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__ */ S(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
6757
6769
  return /* @__PURE__ */ S("div", {
6758
- className: b(pf.row),
6770
+ className: b(mf.row),
6759
6771
  style: {
6760
6772
  alignItems: t,
6761
6773
  justifyContent: n,
@@ -6771,7 +6783,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6771
6783
  "data-testid": d,
6772
6784
  children: p
6773
6785
  });
6774
- }, hf = {
6786
+ }, gf = {
6775
6787
  inputInTable: "_inputInTable_t1w93_1",
6776
6788
  inputHover: "_inputHover_t1w93_13",
6777
6789
  inputFocus: "_inputFocus_t1w93_18",
@@ -6791,7 +6803,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6791
6803
  experimental: "_experimental_t1w93_159",
6792
6804
  active: "_active_t1w93_163",
6793
6805
  icon: "_icon_t1w93_167"
6794
- }, gf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
6806
+ }, _f = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
6795
6807
  text: t,
6796
6808
  enabled: !e,
6797
6809
  placement: "right-center",
@@ -6800,7 +6812,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6800
6812
  padding: "var(--padding-sm)",
6801
6813
  display: "block",
6802
6814
  children: /* @__PURE__ */ S("span", {
6803
- className: hf.icon,
6815
+ className: gf.icon,
6804
6816
  children: /* @__PURE__ */ S(no, {
6805
6817
  small: !0,
6806
6818
  title: r ? "!" : void 0,
@@ -6809,18 +6821,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6809
6821
  })
6810
6822
  })
6811
6823
  }), /* @__PURE__ */ S("span", {
6812
- className: hf.label,
6824
+ className: gf.label,
6813
6825
  children: t
6814
- })] }), (e, t) => Rr(e, t)), _f = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
6815
- className: hf.list,
6826
+ })] }), (e, t) => Rr(e, t)), vf = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ S("div", {
6827
+ className: gf.list,
6816
6828
  children: t.map((t, a) => {
6817
6829
  let o = `${n}_${a}`;
6818
6830
  return /* @__PURE__ */ S("a", {
6819
6831
  href: t.value,
6820
- className: b(hf.item, t.isActive ? hf.active : "", t.isExperimental ? hf.experimental : ""),
6832
+ className: b(gf.item, t.isActive ? gf.active : "", t.isExperimental ? gf.experimental : ""),
6821
6833
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6822
6834
  "data-testid": i,
6823
- children: /* @__PURE__ */ S(gf, {
6835
+ children: /* @__PURE__ */ S(_f, {
6824
6836
  label: t.label,
6825
6837
  icon: t.icon,
6826
6838
  invalid: t.invalid,
@@ -6828,16 +6840,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6828
6840
  }, o)
6829
6841
  }, o);
6830
6842
  })
6831
- }), vf = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ S(x, { children: n.map((n, i) => /* @__PURE__ */ C(e.Fragment, { children: [/* @__PURE__ */ S("h5", {
6832
- className: hf.subtitle,
6843
+ }), yf = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ S(x, { children: n.map((n, i) => /* @__PURE__ */ C(e.Fragment, { children: [/* @__PURE__ */ S("h5", {
6844
+ className: gf.subtitle,
6833
6845
  children: n.heading.toUpperCase()
6834
- }), /* @__PURE__ */ S(_f, {
6846
+ }), /* @__PURE__ */ S(vf, {
6835
6847
  isOpen: t,
6836
6848
  items: n.items,
6837
6849
  sectionIndex: i,
6838
6850
  onClick: r,
6839
6851
  testId: n.testId
6840
- })] }, i)) }), yf = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6852
+ })] }, i)) }), bf = c(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6841
6853
  let [i, a] = v(t), o = (e, t, n, r) => {
6842
6854
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6843
6855
  }, s = e.sections.length > 0;
@@ -6858,13 +6870,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6858
6870
  icon: U.LEFT
6859
6871
  }),
6860
6872
  children: /* @__PURE__ */ S("div", {
6861
- className: b(hf.sidebar, i ? "" : hf.collapsed),
6873
+ className: b(gf.sidebar, i ? "" : gf.collapsed),
6862
6874
  children: s && /* @__PURE__ */ C("div", {
6863
- className: hf.inner,
6875
+ className: gf.inner,
6864
6876
  children: [/* @__PURE__ */ S("h4", {
6865
- className: hf.title,
6877
+ className: gf.title,
6866
6878
  children: e.title
6867
- }), /* @__PURE__ */ S(vf, {
6879
+ }), /* @__PURE__ */ S(yf, {
6868
6880
  isOpen: i,
6869
6881
  sections: e.sections,
6870
6882
  onClick: o
@@ -6872,18 +6884,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6872
6884
  })
6873
6885
  })
6874
6886
  });
6875
- }, (e, t) => Rr(e, t)), bf = {
6887
+ }, (e, t) => Rr(e, t)), xf = {
6876
6888
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6877
6889
  skeleton: "_skeleton_mcfxp_9"
6878
- }, xf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(fi, {
6890
+ }, Sf = ({ count: e, width: t, height: n }) => /* @__PURE__ */ S(fi, {
6879
6891
  baseColor: "var(--color-skeleton-base)",
6880
6892
  highlightColor: "var(--color-skeleton-highlight)",
6881
- containerClassName: bf.skeletonContainer,
6882
- className: bf.skeleton,
6893
+ containerClassName: xf.skeletonContainer,
6894
+ className: xf.skeleton,
6883
6895
  count: e,
6884
6896
  width: t,
6885
6897
  height: n
6886
- }), Sf = {
6898
+ }), Cf = {
6887
6899
  wrapper: "_wrapper_j8x9r_1",
6888
6900
  label: "_label_j8x9r_5",
6889
6901
  input: "_input_j8x9r_9",
@@ -6891,38 +6903,38 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6891
6903
  editable: "_editable_j8x9r_22",
6892
6904
  inputControl: "_inputControl_j8x9r_25",
6893
6905
  actions: "_actions_j8x9r_28"
6894
- }, Cf = () => {
6906
+ }, wf = () => {
6895
6907
  let e = _(null);
6896
6908
  return m(() => {
6897
6909
  e.current && (e.current(), e.current = null);
6898
6910
  }), (t) => {
6899
6911
  e.current = t;
6900
6912
  };
6901
- }, wf = (e) => {
6913
+ }, Tf = (e) => {
6902
6914
  let t = _(void 0);
6903
6915
  return d(() => {
6904
6916
  t.current = e;
6905
6917
  }, [e]), t.current;
6906
- }, Tf = (e, t) => {
6918
+ }, Ef = (e, t) => {
6907
6919
  let n = t == null ? void 0 : t[e];
6908
6920
  if (!n) {
6909
6921
  var r;
6910
6922
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Dr(e)) == null ? "" : r;
6911
6923
  }
6912
6924
  return n;
6913
- }, Ef = /* @__PURE__ */ function(e) {
6925
+ }, Df = /* @__PURE__ */ function(e) {
6914
6926
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
6915
- }({}), Df = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Of = (e) => {
6927
+ }({}), Of = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), kf = (e) => {
6916
6928
  if (!e) return !1;
6917
6929
  let t = dr(e);
6918
6930
  return !ar.includes(t);
6919
- }, kf = ({ value: e, unitkey: t, toUnit: n }) => {
6931
+ }, Af = ({ value: e, unitkey: t, toUnit: n }) => {
6920
6932
  var r;
6921
6933
  let i = ir[t];
6922
6934
  if (!i || i.length === 0 || !((r = Or(e)) != null && r.valid) || !i.includes(n)) return !1;
6923
6935
  let a = dr(String(e));
6924
6936
  return !(a && !i.includes(a));
6925
- }, Af = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6937
+ }, jf = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
6926
6938
  var o;
6927
6939
  let s = _r(e) ? pr(e) : e, c = [Infinity, -Infinity].includes(Number(s));
6928
6940
  if (i || c) return {
@@ -6942,13 +6954,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6942
6954
  value: void 0,
6943
6955
  error: "Source unit is missing"
6944
6956
  };
6945
- if (Df(s)) return {
6957
+ if (Of(s)) return {
6946
6958
  value: void 0,
6947
6959
  error: "Value is invalid for conversion"
6948
6960
  };
6949
6961
  try {
6950
6962
  let e = Ar(s, l);
6951
- if (kf({
6963
+ if (Af({
6952
6964
  value: e,
6953
6965
  toUnit: n,
6954
6966
  unitkey: t
@@ -6969,13 +6981,13 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6969
6981
  error: "Conversion not possible"
6970
6982
  };
6971
6983
  }
6972
- }, jf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6973
- let a = pr(e), o = Df(a);
6974
- return !kf({
6984
+ }, Mf = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
6985
+ let a = pr(e), o = Of(a);
6986
+ return !Af({
6975
6987
  value: e,
6976
6988
  unitkey: n,
6977
6989
  toUnit: t
6978
- }) || Of(e) || o ? { value: a } : _r(e) ? Af({
6990
+ }) || kf(e) || o ? { value: a } : _r(e) ? jf({
6979
6991
  value: e,
6980
6992
  unitkey: n,
6981
6993
  toUnit: t,
@@ -6983,25 +6995,25 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
6983
6995
  doNotConvertValue: i,
6984
6996
  exactPrecision: !0
6985
6997
  }) : { value: e };
6986
- }, Mf = (e) => gn(e) && !cn(e) && !pn(e) ? sn(e, "fieldName", "") : typeof e == "string" ? e : "", Nf = (e = "") => ar == null ? void 0 : ar.includes(e), Pf = (e, t) => {
6998
+ }, Nf = (e) => gn(e) && !cn(e) && !pn(e) ? sn(e, "fieldName", "") : typeof e == "string" ? e : "", Pf = (e = "") => ar == null ? void 0 : ar.includes(e), Ff = (e, t) => {
6987
6999
  let n = dr(e || "");
6988
- return Nf(t) && Nf(n);
6989
- }, Ff = i(null), If = () => u(Ff), Lf = !1, Rf = (e) => {
6990
- Lf || (Lf = !0, Ff = e);
6991
- }, zf = (e) => hr(e) ? e : yr(e), Bf = {
7000
+ return Pf(t) && Pf(n);
7001
+ }, If = i(null), Lf = () => u(If), Rf = !1, zf = (e) => {
7002
+ Rf || (Rf = !0, If = e);
7003
+ }, Bf = (e) => hr(e) ? e : yr(e), Vf = {
6992
7004
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
6993
7005
  inputWrapper: "_inputWrapper_ye9w9_4"
6994
- }, Vf = ({ 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 = bn, onClick: m = bn, onFocus: g = bn, onSwitchUnit: _ = bn, unitTemplate: y, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
7006
+ }, Hf = ({ 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 = bn, onClick: m = bn, onFocus: g = bn, onSwitchUnit: _ = bn, unitTemplate: y, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6995
7007
  name: "",
6996
7008
  error: null
6997
7009
  }), 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 }) => {
6998
- let B = If(), ee = Cf();
7010
+ let B = Lf(), ee = wf();
6999
7011
  typeof c == "number" && (c = `${c}`);
7000
- let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() => Tf(l, y || (B == null ? void 0 : B.unitTemplate)), [
7012
+ let [te = "", ne = ""] = c === void 0 ? [] : Cr(c), V = h(() => Ef(l, y || (B == null ? void 0 : B.unitTemplate)), [
7001
7013
  l,
7002
7014
  y,
7003
7015
  B == null ? void 0 : B.unitTemplate
7004
- ]), re = Pf(c, V), ie = u || V || ne, ae = wf(ie), { value: oe } = jf({
7016
+ ]), re = Ff(c, V), ie = u || V || ne, ae = Tf(ie), { value: oe } = Mf({
7005
7017
  value: c,
7006
7018
  toUnit: ie,
7007
7019
  unitkey: l,
@@ -7013,10 +7025,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7013
7025
  } : {
7014
7026
  value: oe,
7015
7027
  unit: ie
7016
- }), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ? Ef.PREDEFINED : Ef.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
7028
+ }), le = M || (se == null ? void 0 : se.value) === void 0, [ue, de] = v(D ? Df.PREDEFINED : Df.CUSTOM), fe = !!(j || n), pe = E && E.find((e) => {
7017
7029
  if (!(e != null && e.value)) return;
7018
7030
  if (k) return k === e.valueKey;
7019
- let t = _r(e.value) ? dr(e.value) : "", { value: n = c } = Af({
7031
+ let t = _r(e.value) ? dr(e.value) : "", { value: n = c } = jf({
7020
7032
  value: String(c),
7021
7033
  unitkey: l,
7022
7034
  toUnit: t
@@ -7025,7 +7037,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7025
7037
  }), me = () => {
7026
7038
  var e;
7027
7039
  let t = (e = c) == null ? "" : e, n = se.unit;
7028
- if (!kf({
7040
+ if (!Af({
7029
7041
  value: t,
7030
7042
  unitkey: l,
7031
7043
  toUnit: n
@@ -7040,7 +7052,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7040
7052
  return null;
7041
7053
  }
7042
7054
  }, he = (t) => {
7043
- let n = Mf(e), r = t.target, { value: i, selectionStart: a } = r, o = Ar(i, (se == null ? void 0 : se.unit) || "");
7055
+ let n = Nf(e), r = t.target, { value: i, selectionStart: a } = r, o = Ar(i, (se == null ? void 0 : se.unit) || "");
7044
7056
  p({ target: {
7045
7057
  value: N ? Ar(cr(o, ne), ne) : o,
7046
7058
  name: n
@@ -7062,7 +7074,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7062
7074
  if (ie) {
7063
7075
  let e, t = "";
7064
7076
  if (ae !== ie) {
7065
- let { value: n } = jf({
7077
+ let { value: n } = Mf({
7066
7078
  value: c,
7067
7079
  toUnit: ie,
7068
7080
  unitkey: l,
@@ -7071,7 +7083,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7071
7083
  });
7072
7084
  e = n, t = ie;
7073
7085
  } else if (Ar(se.value, se.unit) !== c) {
7074
- let { value: n } = jf({
7086
+ let { value: n } = Mf({
7075
7087
  value: c,
7076
7088
  toUnit: se.unit,
7077
7089
  unitkey: l,
@@ -7083,7 +7095,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7083
7095
  e !== void 0 && ce({
7084
7096
  value: e,
7085
7097
  unit: t
7086
- }), de(E && pe && O ? Ef.PREDEFINED : Ef.CUSTOM);
7098
+ }), de(E && pe && O ? Df.PREDEFINED : Df.CUSTOM);
7087
7099
  }
7088
7100
  }, [
7089
7101
  ie,
@@ -7091,14 +7103,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7091
7103
  i,
7092
7104
  O
7093
7105
  ]);
7094
- let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = Mf(e), xe, Se = (t) => {
7106
+ let _e = me(), ve = vr(se.unit) || se.unit || "", ye = f || !_e || _e && _e.length === 1, be = Nf(e), xe, Se = (t) => {
7095
7107
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = _r(r) ? Cr(r) : [r], o = kr(r);
7096
- if (kf({
7108
+ if (Af({
7097
7109
  value: r,
7098
7110
  unitkey: l,
7099
7111
  toUnit: a
7100
7112
  })) {
7101
- let { value: e = "" } = jf({
7113
+ let { value: e = "" } = Mf({
7102
7114
  value: r,
7103
7115
  toUnit: V,
7104
7116
  unitkey: l,
@@ -7111,7 +7123,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7111
7123
  type: Ga.OPTION,
7112
7124
  inline: !0,
7113
7125
  onClick: () => {
7114
- Or(i).valid && !n && (de(Ef.PREDEFINED), p({ target: {
7126
+ Or(i).valid && !n && (de(Df.PREDEFINED), p({ target: {
7115
7127
  value: r,
7116
7128
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
7117
7129
  predefinedSelected: !0,
@@ -7123,27 +7135,27 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7123
7135
  height: "0"
7124
7136
  })] }),
7125
7137
  description: o,
7126
- selected: pe === t && ue === Ef.PREDEFINED
7138
+ selected: pe === t && ue === Df.PREDEFINED
7127
7139
  };
7128
7140
  };
7129
7141
  if (xe = [{
7130
7142
  type: Ga.OPTION,
7131
7143
  inline: !0,
7132
7144
  onClick: () => {
7133
- ue !== Ef.CUSTOM && !n && p({ target: {
7145
+ ue !== Df.CUSTOM && !n && p({ target: {
7134
7146
  value: Ar(se.value, se.unit),
7135
7147
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
7136
7148
  } });
7137
7149
  },
7138
7150
  label: "Custom",
7139
- selected: ue === Ef.CUSTOM
7151
+ selected: ue === Df.CUSTOM
7140
7152
  }], E != null && E.length) {
7141
7153
  let e = E.map(Se);
7142
7154
  xe = [...xe, ...e];
7143
7155
  }
7144
7156
  let Ce = (e) => {
7145
7157
  if (_r(e)) {
7146
- let t = dr(e), { value: n } = jf({
7158
+ let t = dr(e), { value: n } = Mf({
7147
7159
  value: e,
7148
7160
  toUnit: se.unit,
7149
7161
  unitkey: l,
@@ -7155,7 +7167,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7155
7167
  return e;
7156
7168
  }, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
7157
7169
  return /* @__PURE__ */ S("div", {
7158
- className: ue === Ef.PREDEFINED ? b(Bf.predefinedMenuActive) : "",
7170
+ className: ue === Df.PREDEFINED ? b(Vf.predefinedMenuActive) : "",
7159
7171
  children: /* @__PURE__ */ C(ps, {
7160
7172
  small: o,
7161
7173
  width: s,
@@ -7170,17 +7182,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7170
7182
  trigger: "Component",
7171
7183
  component: /* @__PURE__ */ S(q, {
7172
7184
  groupOrder: "first",
7173
- active: ue === Ef.PREDEFINED,
7174
- icon: ue === Ef.PREDEFINED ? "link" : "unlink",
7185
+ active: ue === Df.PREDEFINED,
7186
+ icon: ue === Df.PREDEFINED ? "link" : "unlink",
7175
7187
  small: o
7176
7188
  }),
7177
7189
  small: o,
7178
7190
  sections: xe
7179
7191
  },
7180
- tooltip: ue === Ef.PREDEFINED ? pe == null ? void 0 : pe.label : ""
7192
+ tooltip: ue === Df.PREDEFINED ? pe == null ? void 0 : pe.label : ""
7181
7193
  }),
7182
7194
  /* @__PURE__ */ S("div", {
7183
- className: Bf.inputWrapper,
7195
+ className: Vf.inputWrapper,
7184
7196
  children: /* @__PURE__ */ S(bl, {
7185
7197
  name: be,
7186
7198
  testId: w,
@@ -7222,7 +7234,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7222
7234
  let r = n || t || "", i = gr(e) ? e : "";
7223
7235
  return {
7224
7236
  type: "Option",
7225
- label: P ? zf(i) : i,
7237
+ label: P ? Bf(i) : i,
7226
7238
  inline: !0,
7227
7239
  onClick: (n) => {
7228
7240
  n.stopPropagation(), ge(e, t);
@@ -7237,10 +7249,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7237
7249
  ]
7238
7250
  })
7239
7251
  });
7240
- }, Hf = (e, t) => ({ target: {
7252
+ }, Uf = (e, t) => ({ target: {
7241
7253
  name: e,
7242
7254
  value: t
7243
- } }), Uf = (e) => `Value cannot be less than ${e}`, Wf = (e) => `Value cannot be greater than ${e}`, Gf = ({ 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: _ = !1, small: y = !1, marks: x, minErrorMessage: w = Uf, maxErrorMessage: T = Wf }) => {
7255
+ } }), Wf = (e) => `Value cannot be less than ${e}`, Gf = (e) => `Value cannot be greater than ${e}`, Kf = ({ 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: _ = !1, small: y = !1, marks: x, minErrorMessage: w = Wf, maxErrorMessage: T = Gf }) => {
7244
7256
  let E = Ar(t, c), [D, O] = v(E), [k, A] = v(!1), [j, M] = v(c);
7245
7257
  d(() => {
7246
7258
  k || O(E);
@@ -7258,7 +7270,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7258
7270
  }, z = () => {
7259
7271
  O(E), A(!1);
7260
7272
  }, B = () => {
7261
- L || I === null || (o(Hf(e, I)), s == null || s(Hf(e, I)), A(!1));
7273
+ L || I === null || (o(Uf(e, I)), s == null || s(Uf(e, I)), A(!1));
7262
7274
  }, ee = (e) => {
7263
7275
  M(e), l == null || l(e);
7264
7276
  }, te = (e) => {
@@ -7273,7 +7285,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7273
7285
  }, ne = (e) => {
7274
7286
  e.key === "Enter" && B(), e.key === "Escape" && z();
7275
7287
  }, V = f || k, re = /* @__PURE__ */ C("div", {
7276
- className: Sf.actions,
7288
+ className: Cf.actions,
7277
7289
  children: [/* @__PURE__ */ S(q, {
7278
7290
  icon: "close",
7279
7291
  small: !0,
@@ -7288,18 +7300,18 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7288
7300
  })]
7289
7301
  });
7290
7302
  return /* @__PURE__ */ C("div", {
7291
- className: Sf.wrapper,
7303
+ className: Cf.wrapper,
7292
7304
  "data-testid": g && `${g}-wrapper`,
7293
7305
  children: [
7294
7306
  i && /* @__PURE__ */ S("span", {
7295
- className: Sf.label,
7307
+ className: Cf.label,
7296
7308
  children: /* @__PURE__ */ S(Yo, {
7297
7309
  small: y,
7298
7310
  children: i
7299
7311
  })
7300
7312
  }),
7301
7313
  p && /* @__PURE__ */ S("div", {
7302
- className: b(Sf.input, y && Sf.inputSmall, u && !f && Sf.editable),
7314
+ className: b(Cf.input, y && Cf.inputSmall, u && !f && Cf.editable),
7303
7315
  children: /* @__PURE__ */ S(So, {
7304
7316
  content: re,
7305
7317
  isOpen: k,
@@ -7313,11 +7325,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7313
7325
  testId: g && `${g}-edit-popover`,
7314
7326
  toggleOnTriggerClick: !1,
7315
7327
  children: /* @__PURE__ */ S("div", {
7316
- className: Sf.inputControl,
7328
+ className: Cf.inputControl,
7317
7329
  "data-testid": g && `${g}-edit-trigger`,
7318
7330
  onClick: R,
7319
7331
  onKeyDown: ne,
7320
- children: /* @__PURE__ */ S(Vf, {
7332
+ children: /* @__PURE__ */ S(Hf, {
7321
7333
  name: e,
7322
7334
  value: k ? D : E,
7323
7335
  unitkey: h,
@@ -7352,7 +7364,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7352
7364
  })
7353
7365
  ]
7354
7366
  });
7355
- }, Kf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(no, {
7367
+ }, qf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(no, {
7356
7368
  small: !0,
7357
7369
  margin: "-4px",
7358
7370
  color: "var(--color-text-error)",
@@ -7363,7 +7375,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7363
7375
  margin: "-4px",
7364
7376
  title: n == null ? void 0 : n.toString(),
7365
7377
  children: e
7366
- }) : /* @__PURE__ */ S(x, { children: e }), qf = {
7378
+ }) : /* @__PURE__ */ S(x, { children: e }), Jf = {
7367
7379
  tabs: "_tabs_1rtn8_1",
7368
7380
  padding: "_padding_1rtn8_7",
7369
7381
  margin: "_margin_1rtn8_11",
@@ -7372,7 +7384,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7372
7384
  left: "_left_1rtn8_64",
7373
7385
  right: "_right_1rtn8_64",
7374
7386
  selectionIndicator: "_selectionIndicator_1rtn8_67"
7375
- }, Jf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = bn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7387
+ }, Yf = ({ name: e = void 0, options: t = null, value: n = void 0, onChange: r = bn, padding: i = !1, margin: a = !0, testId: o, linkComponent: s }) => {
7376
7388
  let c = u(W), { simpleInputs: l, options: d, selectedOptions: f } = el(t, n), p = mn(f) ? void 0 : l ? f : f.value, m = (e) => {
7377
7389
  var t;
7378
7390
  return (t = e.component) == null ? s : t;
@@ -7393,7 +7405,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7393
7405
  "data-testid": o,
7394
7406
  children: /* @__PURE__ */ S(hi, {
7395
7407
  "aria-label": e == null ? "Tabs" : e,
7396
- className: b(qf.tabs, i ? qf.padding : "", a ? qf.margin : ""),
7408
+ className: b(Jf.tabs, i ? Jf.padding : "", a ? Jf.margin : ""),
7397
7409
  children: _.map((e) => {
7398
7410
  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);
7399
7411
  return /* @__PURE__ */ C(mi, {
@@ -7401,23 +7413,23 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7401
7413
  ...!d && n ? { href: n } : {},
7402
7414
  shouldSelectOnPressUp: !0,
7403
7415
  isDisabled: i || c,
7404
- className: b(qf.item, o ? qf.right : qf.left),
7416
+ className: b(Jf.item, o ? Jf.right : Jf.left),
7405
7417
  "data-testid": u,
7406
7418
  render: d && f ? (e) => /* @__PURE__ */ S(f, {
7407
7419
  ...e,
7408
7420
  href: r,
7409
7421
  to: r
7410
7422
  }) : void 0,
7411
- children: [/* @__PURE__ */ S(Kf, {
7423
+ children: [/* @__PURE__ */ S(qf, {
7412
7424
  label: t,
7413
7425
  invalid: s,
7414
7426
  badge: l
7415
- }), /* @__PURE__ */ S(pi, { className: qf.selectionIndicator })]
7427
+ }), /* @__PURE__ */ S(pi, { className: Jf.selectionIndicator })]
7416
7428
  }, a);
7417
7429
  })
7418
7430
  })
7419
7431
  }) : null;
7420
- }, Yf = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ S(a, {
7432
+ }, Xf = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ S(a, {
7421
7433
  href: t,
7422
7434
  to: t,
7423
7435
  target: n,
@@ -7427,7 +7439,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7427
7439
  link: !0,
7428
7440
  children: e
7429
7441
  })
7430
- }), Xf = {
7442
+ }), Zf = {
7431
7443
  inputInTable: "_inputInTable_qbe2o_1",
7432
7444
  inputHover: "_inputHover_qbe2o_13",
7433
7445
  inputFocus: "_inputFocus_qbe2o_18",
@@ -7439,9 +7451,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7439
7451
  textarea: "_textarea_qbe2o_81",
7440
7452
  small: "_small_qbe2o_120",
7441
7453
  monospace: "_monospace_qbe2o_159"
7442
- }, Zf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = bn, onKeyPress: s = bn, onFocus: c = bn, onBlur: l = bn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: y }) => {
7454
+ }, Qf = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = bn, onKeyPress: s = bn, onFocus: c = bn, onBlur: l = bn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: _ = !1, small: v = !1, testId: y }) => {
7443
7455
  let x = u(W), C = /* @__PURE__ */ S("textarea", {
7444
- className: b(Xf.textarea, f ? Xf.error : "", p ? Xf.warning : "", _ ? Xf.monospace : "", v ? Xf.small : ""),
7456
+ className: b(Zf.textarea, f ? Zf.error : "", p ? Zf.warning : "", _ ? Zf.monospace : "", v ? Zf.small : ""),
7445
7457
  name: e,
7446
7458
  value: t,
7447
7459
  placeholder: n,
@@ -7483,10 +7495,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7483
7495
  menu: "_menu_oyr59_139",
7484
7496
  active: "_active_oyr59_168",
7485
7497
  alert: "_alert_oyr59_193"
7486
- }, Qf = ({ warning: e }) => /* @__PURE__ */ S("div", {
7498
+ }, $f = ({ warning: e }) => /* @__PURE__ */ S("div", {
7487
7499
  className: Q.alert,
7488
7500
  children: e
7489
- }), $f = ({ icon: e, url: t, onClick: n }) => {
7501
+ }), ep = ({ icon: e, url: t, onClick: n }) => {
7490
7502
  let r = /* @__PURE__ */ S(G, { icon: e });
7491
7503
  return t ? /* @__PURE__ */ S("a", {
7492
7504
  href: t,
@@ -7498,7 +7510,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7498
7510
  className: Q.appSwitcher,
7499
7511
  children: r
7500
7512
  });
7501
- }, ep = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7513
+ }, tp = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
7502
7514
  let a = /* @__PURE__ */ C("div", {
7503
7515
  className: Q.title,
7504
7516
  children: [
@@ -7527,9 +7539,9 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7527
7539
  children: a
7528
7540
  })
7529
7541
  });
7530
- }, tp = /* @__PURE__ */ function(e) {
7542
+ }, np = /* @__PURE__ */ function(e) {
7531
7543
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
7532
- }({}), np = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7544
+ }({}), rp = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
7533
7545
  let c = u(W);
7534
7546
  return /* @__PURE__ */ C(s, {
7535
7547
  className: b(Q.link, i ? Q.active : ""),
@@ -7546,11 +7558,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7546
7558
  children: e
7547
7559
  })]
7548
7560
  });
7549
- }, rp = ({ element: e }) => {
7561
+ }, ip = ({ element: e }) => {
7550
7562
  switch (e.type) {
7551
- case tp.LINK: return /* @__PURE__ */ S("div", {
7563
+ case np.LINK: return /* @__PURE__ */ S("div", {
7552
7564
  className: Q.item,
7553
- children: /* @__PURE__ */ S(np, {
7565
+ children: /* @__PURE__ */ S(rp, {
7554
7566
  label: e.label,
7555
7567
  url: e.url,
7556
7568
  icon: e.icon,
@@ -7561,7 +7573,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7561
7573
  component: e.component
7562
7574
  })
7563
7575
  });
7564
- case tp.BUTTON: return /* @__PURE__ */ S("div", {
7576
+ case np.BUTTON: return /* @__PURE__ */ S("div", {
7565
7577
  className: b(Q.item, Q.button),
7566
7578
  children: /* @__PURE__ */ S(q, {
7567
7579
  label: e.label,
@@ -7573,14 +7585,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7573
7585
  testId: e.testId
7574
7586
  })
7575
7587
  });
7576
- case tp.MENU: return /* @__PURE__ */ S("div", {
7588
+ case np.MENU: return /* @__PURE__ */ S("div", {
7577
7589
  className: b(Q.item, Q.menu),
7578
7590
  children: /* @__PURE__ */ S(lo, {
7579
7591
  maxHeight: "100%",
7580
7592
  menu: {
7581
7593
  trigger: wi.COMPONENT,
7582
7594
  placement: "bottom-start",
7583
- component: /* @__PURE__ */ S(np, {
7595
+ component: /* @__PURE__ */ S(rp, {
7584
7596
  label: e.label,
7585
7597
  icon: e.icon,
7586
7598
  onClick: e.onClick
@@ -7589,50 +7601,50 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7589
7601
  }
7590
7602
  })
7591
7603
  });
7592
- case tp.COMPONENT: return /* @__PURE__ */ S("div", {
7604
+ case np.COMPONENT: return /* @__PURE__ */ S("div", {
7593
7605
  className: Q.item,
7594
7606
  children: e.component
7595
7607
  });
7596
7608
  default: return null;
7597
7609
  }
7598
- }, ip = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ C("div", { children: [i && /* @__PURE__ */ S(Qf, { warning: i }), /* @__PURE__ */ C("div", {
7610
+ }, ap = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ C("div", { children: [i && /* @__PURE__ */ S($f, { warning: i }), /* @__PURE__ */ C("div", {
7599
7611
  className: b(Q.topbar, o ? Q.fixed : ""),
7600
7612
  style: { height: a },
7601
7613
  children: [
7602
- !!t && /* @__PURE__ */ S($f, {
7614
+ !!t && /* @__PURE__ */ S(ep, {
7603
7615
  icon: t.icon,
7604
7616
  url: t.url,
7605
7617
  onClick: t.onClick
7606
7618
  }),
7607
7619
  /* @__PURE__ */ C("div", {
7608
7620
  className: Q.left,
7609
- children: [e && /* @__PURE__ */ S(ep, {
7621
+ children: [e && /* @__PURE__ */ S(tp, {
7610
7622
  label: e.label,
7611
7623
  logo: e.logo,
7612
7624
  url: e.url,
7613
7625
  version: e.version,
7614
7626
  onClick: e.onClick
7615
- }), n.map((e, t) => e ? /* @__PURE__ */ S(rp, { element: e }, t) : null)]
7627
+ }), n.map((e, t) => e ? /* @__PURE__ */ S(ip, { element: e }, t) : null)]
7616
7628
  }),
7617
7629
  /* @__PURE__ */ S("div", {
7618
7630
  className: Q.right,
7619
- children: r.map((e, t) => e ? /* @__PURE__ */ S(rp, { element: e }, t) : null)
7631
+ children: r.map((e, t) => e ? /* @__PURE__ */ S(ip, { element: e }, t) : null)
7620
7632
  })
7621
7633
  ]
7622
- })] }), ap = {
7634
+ })] }), op = {
7623
7635
  popConfirm: "_popConfirm_1x6ye_1",
7624
7636
  content: "_content_1x6ye_7",
7625
7637
  buttons: "_buttons_1x6ye_13"
7626
- }, op = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ C("div", {
7627
- className: ap.popConfirm,
7638
+ }, sp = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ C("div", {
7639
+ className: op.popConfirm,
7628
7640
  children: [e && /* @__PURE__ */ S("div", {
7629
- className: ap.content,
7641
+ className: op.content,
7630
7642
  children: /* @__PURE__ */ S(Yo, {
7631
7643
  small: !0,
7632
7644
  children: e
7633
7645
  })
7634
7646
  }), /* @__PURE__ */ C("div", {
7635
- className: ap.buttons,
7647
+ className: op.buttons,
7636
7648
  children: [/* @__PURE__ */ S(q, {
7637
7649
  small: !0,
7638
7650
  colored: !0,
@@ -7647,8 +7659,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7647
7659
  testId: `${s}-cancel-button`
7648
7660
  })]
7649
7661
  })]
7650
- }), sp = ({ 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__ */ S(So, {
7651
- content: /* @__PURE__ */ S(op, {
7662
+ }), cp = ({ 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__ */ S(So, {
7663
+ content: /* @__PURE__ */ S(sp, {
7652
7664
  title: i,
7653
7665
  okText: s,
7654
7666
  onClickOk: c,
@@ -7662,14 +7674,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7662
7674
  fullWidth: r,
7663
7675
  testId: u,
7664
7676
  children: e
7665
- }), cp = {
7677
+ }), lp = {
7666
7678
  tree: "_tree_coxxe_1",
7667
7679
  toggle: "_toggle_coxxe_8",
7668
7680
  dropTarget: "_dropTarget_coxxe_15",
7669
7681
  placeholder: "_placeholder_coxxe_30",
7670
7682
  draggingSource: "_draggingSource_coxxe_36",
7671
7683
  placeholderContainer: "_placeholderContainer_coxxe_39"
7672
- }, lp = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7684
+ }, up = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
7673
7685
  let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, _] = e.useState(!1), [v, y] = e.useState(0), x = (e) => {
7674
7686
  e.stopPropagation(), i(l);
7675
7687
  }, w = (e) => {
@@ -7696,7 +7708,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7696
7708
  className: b(Z.itemHeader, g ? Z.noPointerEvents : ""),
7697
7709
  children: [
7698
7710
  a && /* @__PURE__ */ S("div", {
7699
- className: cp.toggle,
7711
+ className: lp.toggle,
7700
7712
  children: /* @__PURE__ */ S(q, {
7701
7713
  basic: !0,
7702
7714
  colored: r ? !0 : Ti.MUTED,
@@ -7710,10 +7722,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7710
7722
  className: Z.drag,
7711
7723
  children: /* @__PURE__ */ S(G, { icon: U.DRAG })
7712
7724
  }),
7713
- /* @__PURE__ */ S(Td, { item: u }),
7725
+ /* @__PURE__ */ S(Ed, { item: u }),
7714
7726
  /* @__PURE__ */ C("div", {
7715
7727
  className: Z.right,
7716
- children: [/* @__PURE__ */ S(Ed, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
7728
+ children: [/* @__PURE__ */ S(Dd, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
7717
7729
  className: Z.actions,
7718
7730
  children: /* @__PURE__ */ S(fo, { actions: h })
7719
7731
  })]
@@ -7721,10 +7733,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7721
7733
  ]
7722
7734
  })
7723
7735
  });
7724
- }, up = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
7725
- className: cp.placeholder,
7736
+ }, dp = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
7737
+ className: lp.placeholder,
7726
7738
  style: { left: `calc(${t} * ${e})` }
7727
- }), dp = ({ 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: g, placeholderIndent: v }) => {
7739
+ }), fp = ({ 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: g, placeholderIndent: v }) => {
7728
7740
  var y;
7729
7741
  let b = c == null ? _(null) : c, x = (e) => {
7730
7742
  i && i(e);
@@ -7782,7 +7794,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7782
7794
  "data-testid": a,
7783
7795
  className: Z.list,
7784
7796
  style: { height: h },
7785
- children: [e.name && !e.noHeader && /* @__PURE__ */ S(Sd, {
7797
+ children: [e.name && !e.noHeader && /* @__PURE__ */ S(Cd, {
7786
7798
  name: e.name,
7787
7799
  actions: e.actions,
7788
7800
  stickyHeader: m
@@ -7809,7 +7821,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7809
7821
  hasChild: r,
7810
7822
  isOpen: a,
7811
7823
  onToggle: o
7812
- }) : /* @__PURE__ */ S(lp, {
7824
+ }) : /* @__PURE__ */ S(up, {
7813
7825
  hasChild: l ? l(e) : r,
7814
7826
  node: e,
7815
7827
  depth: t,
@@ -7825,7 +7837,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7825
7837
  onDrop: A,
7826
7838
  onChangeOpen: x,
7827
7839
  dropTargetOffset: 10,
7828
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(up, {
7840
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ S(dp, {
7829
7841
  depth: t,
7830
7842
  indent: v
7831
7843
  }),
@@ -7833,17 +7845,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7833
7845
  listComponent: "div",
7834
7846
  listItemComponent: "div",
7835
7847
  classes: {
7836
- root: cp.tree,
7837
- draggingSource: cp.draggingSource,
7838
- dropTarget: cp.dropTarget,
7839
- placeholder: cp.placeholderContainer
7848
+ root: lp.tree,
7849
+ draggingSource: lp.draggingSource,
7850
+ dropTarget: lp.dropTarget,
7851
+ placeholder: lp.placeholderContainer
7840
7852
  },
7841
7853
  initialOpen: o,
7842
7854
  enableAnimateExpand: !0
7843
7855
  })
7844
7856
  })]
7845
7857
  });
7846
- }, fp = {
7858
+ }, pp = {
7847
7859
  treeTable: "_treeTable_1ywvy_1",
7848
7860
  treeTableHeader: "_treeTableHeader_1ywvy_22",
7849
7861
  folderCell: "_folderCell_1ywvy_30",
@@ -7851,48 +7863,48 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7851
7863
  drag: "_drag_1ywvy_31",
7852
7864
  folder: "_folder_1ywvy_30",
7853
7865
  active: "_active_1ywvy_61"
7854
- }, pp = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...pp(e, t.id)]), mp = (e, t) => {
7866
+ }, mp = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...mp(e, t.id)]), hp = (e, t) => {
7855
7867
  let n = new Set(t);
7856
7868
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
7857
- }, hp = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), gp = (e, t, n, r = []) => {
7869
+ }, gp = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), _p = (e, t, n, r = []) => {
7858
7870
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
7859
7871
  if (o.length === 0) return {
7860
7872
  checked: i.has(t),
7861
7873
  indeterminate: !1
7862
7874
  };
7863
- let s = o.map((t) => gp(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7875
+ let s = o.map((t) => _p(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
7864
7876
  return {
7865
7877
  checked: u,
7866
7878
  indeterminate: c + l > 0 && !u
7867
7879
  };
7868
- }, _p = (e, t, n = []) => {
7869
- let r = mp(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7880
+ }, vp = (e, t, n = []) => {
7881
+ let r = hp(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
7870
7882
  return {
7871
7883
  checked: r.length > 0 && a === r.length,
7872
7884
  indeterminate: a > 0 && a < r.length
7873
7885
  };
7874
- }, vp = i(null), yp = () => u(vp), bp = ({ children: e, rowCheckboxes: t, rows: n }) => {
7886
+ }, yp = i(null), bp = () => u(yp), xp = ({ children: e, rowCheckboxes: t, rows: n }) => {
7875
7887
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = h(() => new Set(a), [a]), u = h(() => {
7876
7888
  if (!r) return null;
7877
7889
  let e = /* @__PURE__ */ new Map();
7878
- for (let t of n) e.set(t.id, gp(n, t.id, i, a));
7890
+ for (let t of n) e.set(t.id, _p(n, t.id, i, a));
7879
7891
  return e;
7880
7892
  }, [
7881
7893
  i,
7882
7894
  a,
7883
7895
  r,
7884
7896
  n
7885
- ]), d = h(() => r ? _p(n, i, a) : void 0, [
7897
+ ]), d = h(() => r ? vp(n, i, a) : void 0, [
7886
7898
  i,
7887
7899
  a,
7888
7900
  r,
7889
7901
  n
7890
7902
  ]), f = l((e) => u == null ? void 0 : u.get(e), [u]), p = l((e) => c.has(e), [c]), m = l((e) => o == null ? void 0 : o(e), [o]), g = l((e) => {
7891
7903
  if (!r || c.has(e)) return;
7892
- let t = pp(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = gp(n, e, i, a);
7904
+ let t = mp(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = _p(n, e, i, a);
7893
7905
  if (u) {
7894
7906
  let e = new Set(l);
7895
- s == null || s(hp(i, e, c));
7907
+ s == null || s(gp(i, e, c));
7896
7908
  } else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
7897
7909
  }, [
7898
7910
  i,
@@ -7903,7 +7915,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7903
7915
  n
7904
7916
  ]), _ = l(() => {
7905
7917
  if (!r) return;
7906
- let e = mp(n, a), { checked: t } = _p(n, i, a);
7918
+ let e = hp(n, a), { checked: t } = vp(n, i, a);
7907
7919
  t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
7908
7920
  }, [
7909
7921
  i,
@@ -7929,12 +7941,12 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7929
7941
  _,
7930
7942
  g
7931
7943
  ]);
7932
- return /* @__PURE__ */ S(vp.Provider, {
7944
+ return /* @__PURE__ */ S(yp.Provider, {
7933
7945
  value: v,
7934
7946
  children: e
7935
7947
  });
7936
- }, xp = ({ 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 }) => {
7937
- let h = yp(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, _ = g == null ? void 0 : g.checked, v = g == null ? void 0 : g.indeterminate, y = h == null ? void 0 : h.isRowCheckDisabled(l.id), x = 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) => {
7948
+ }, Sp = ({ 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 }) => {
7949
+ let h = bp(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, _ = g == null ? void 0 : g.checked, v = g == null ? void 0 : g.indeterminate, y = h == null ? void 0 : h.isRowCheckDisabled(l.id), x = 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) => {
7938
7950
  let r = t ? t[e] : void 0;
7939
7951
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
7940
7952
  };
@@ -7947,7 +7959,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7947
7959
  onDragLeave: f,
7948
7960
  children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ C("tr", {
7949
7961
  onClick: j,
7950
- className: b(fp.treeTableRow, A ? fp.active : void 0),
7962
+ className: b(pp.treeTableRow, A ? pp.active : void 0),
7951
7963
  children: [
7952
7964
  x && /* @__PURE__ */ S(Wl, {
7953
7965
  isHeader: !1,
@@ -7961,19 +7973,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
7961
7973
  }
7962
7974
  }),
7963
7975
  r && /* @__PURE__ */ S("td", {
7964
- className: fp.dragCell,
7976
+ className: pp.dragCell,
7965
7977
  children: /* @__PURE__ */ S("div", {
7966
- className: fp.drag,
7978
+ className: pp.drag,
7967
7979
  onClick: (e) => e.stopPropagation(),
7968
7980
  ref: i,
7969
7981
  children: /* @__PURE__ */ S(G, { icon: U.DRAG })
7970
7982
  })
7971
7983
  }),
7972
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: fp.folderCell }, t)),
7984
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: pp.folderCell }, t)),
7973
7985
  M && /* @__PURE__ */ S("td", {
7974
- className: fp.folderCell,
7986
+ className: pp.folderCell,
7975
7987
  children: /* @__PURE__ */ S("div", {
7976
- className: fp.folder,
7988
+ className: pp.folder,
7977
7989
  onClick: () => m(E),
7978
7990
  onMouseDown: (e) => e.stopPropagation(),
7979
7991
  children: /* @__PURE__ */ S(q, {
@@ -8005,10 +8017,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8005
8017
  ]
8006
8018
  }) })
8007
8019
  });
8008
- }, Sp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
8009
- let a = yp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
8020
+ }, Cp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
8021
+ let a = bp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
8010
8022
  return /* @__PURE__ */ S("table", {
8011
- className: b(Ks.table, fp.treeTableHeader),
8023
+ className: b(Ks.table, pp.treeTableHeader),
8012
8024
  children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
8013
8025
  s && c === 0 ? /* @__PURE__ */ S(Wl, {
8014
8026
  isHeader: !0,
@@ -8019,7 +8031,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8019
8031
  onChange: a.toggleHeaderCheck
8020
8032
  }
8021
8033
  }) : s ? /* @__PURE__ */ S("td", {}) : null,
8022
- n && /* @__PURE__ */ S("th", { className: fp.dragCell }),
8034
+ n && /* @__PURE__ */ S("th", { className: pp.dragCell }),
8023
8035
  i.cells.map((n, r) => {
8024
8036
  let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
8025
8037
  return /* @__PURE__ */ S(Wl, {
@@ -8039,22 +8051,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8039
8051
  })
8040
8052
  ] }, c)) })
8041
8053
  });
8042
- }, Cp = ({ 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 }) => {
8054
+ }, wp = ({ 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 }) => {
8043
8055
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = pl(v, _ == null ? [] : _);
8044
- return /* @__PURE__ */ S(bp, {
8056
+ return /* @__PURE__ */ S(xp, {
8045
8057
  rowCheckboxes: u,
8046
8058
  rows: v,
8047
8059
  children: /* @__PURE__ */ C("div", {
8048
- className: fp.treeTable,
8060
+ className: pp.treeTable,
8049
8061
  "data-testid": f,
8050
8062
  style: { width: g },
8051
- children: [!!_ && /* @__PURE__ */ S(Sp, {
8063
+ children: [!!_ && /* @__PURE__ */ S(Cp, {
8052
8064
  columnAlignment: m,
8053
8065
  columnWidths: h,
8054
8066
  draggable: r,
8055
8067
  hasRowActions: y,
8056
8068
  headers: _
8057
- }), /* @__PURE__ */ S(dp, {
8069
+ }), /* @__PURE__ */ S(fp, {
8058
8070
  allowParentReassignment: e,
8059
8071
  autoOpenActiveItems: t,
8060
8072
  canDrop: n,
@@ -8070,7 +8082,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8070
8082
  onItemToggle: s,
8071
8083
  onListReorder: c,
8072
8084
  placeholderIndent: "var(--size)",
8073
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(xp, {
8085
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ S(Sp, {
8074
8086
  node: e,
8075
8087
  columnAlignment: m,
8076
8088
  columnWidths: h,
@@ -8087,10 +8099,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8087
8099
  })]
8088
8100
  })
8089
8101
  });
8090
- }, wp = Object.freeze({
8102
+ }, Tp = Object.freeze({
8091
8103
  Translations: "translations",
8092
8104
  LanguageKey: "languageKey"
8093
- }), Tp = {
8105
+ }), Ep = {
8094
8106
  unified: "Unified",
8095
8107
  split: "Split",
8096
8108
  changesTooLarge: "Changes are too large to be shown",
@@ -8113,29 +8125,29 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8113
8125
  showAll: "Show all",
8114
8126
  unknown: "Unknown",
8115
8127
  unexpectedError: "Unexpected error"
8116
- }, Ep = (e) => Object.keys(Tp).reduce((t, n) => ({
8128
+ }, Dp = (e) => Object.keys(Ep).reduce((t, n) => ({
8117
8129
  ...t,
8118
- [n]: (e == null ? void 0 : e[n]) || (Tp == null ? void 0 : Tp[n])
8119
- }), {}), Dp = {
8120
- [wp.Translations]: Ep(),
8121
- [wp.LanguageKey]: "en"
8122
- }, Op = (e) => e ? Dp[e] : Dp, kp = (e, t) => {
8123
- Dp[e] = t;
8124
- }, Ap = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
8130
+ [n]: (e == null ? void 0 : e[n]) || (Ep == null ? void 0 : Ep[n])
8131
+ }), {}), Op = {
8132
+ [Tp.Translations]: Dp(),
8133
+ [Tp.LanguageKey]: "en"
8134
+ }, kp = (e) => e ? Op[e] : Op, Ap = (e, t) => {
8135
+ Op[e] = t;
8136
+ }, jp = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
8125
8137
  var a;
8126
- let { unitTemplate: o = null } = (a = If()) == null ? {} : a;
8127
- return e[n] = r == null ? Tf(n, o) : r, t[n] = i, {
8138
+ let { unitTemplate: o = null } = (a = Lf()) == null ? {} : a;
8139
+ return e[n] = r == null ? Ef(n, o) : r, t[n] = i, {
8128
8140
  preferredUnits: e,
8129
8141
  storageUnits: t
8130
8142
  };
8131
8143
  }, {
8132
8144
  preferredUnits: {},
8133
8145
  storageUnits: {}
8134
- }), jp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
8146
+ }), Mp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
8135
8147
  ...e,
8136
8148
  cells: e.cells.map((e) => {
8137
8149
  if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
8138
- 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 } = Af({
8150
+ 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 } = jf({
8139
8151
  value: Er(s),
8140
8152
  unitkey: o,
8141
8153
  toUnit: u,
@@ -8149,7 +8161,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8149
8161
  roundDisplayValue: l,
8150
8162
  selectOnFocus: !0,
8151
8163
  onChange: (t) => {
8152
- let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = Af({
8164
+ let n = t, { value: i } = n.target, a = r ? d : u, { value: s = i } = jf({
8153
8165
  value: String(i),
8154
8166
  unitkey: o,
8155
8167
  toUnit: a,
@@ -8168,8 +8180,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8168
8180
  }
8169
8181
  return e;
8170
8182
  })
8171
- }), Mp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
8172
- let { translations: i } = Op();
8183
+ }), Np = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
8184
+ let { translations: i } = kp();
8173
8185
  return e ? e.map((e) => ({
8174
8186
  ...e,
8175
8187
  cells: e.cells.map((e) => {
@@ -8198,8 +8210,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8198
8210
  return e;
8199
8211
  })
8200
8212
  })) : [];
8201
- }, Np = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8202
- let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Ap(t), m = wf(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
8213
+ }, Pp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
8214
+ let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = jp(t), m = Tf(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
8203
8215
  g((t) => ({
8204
8216
  ...t,
8205
8217
  [e]: n
@@ -8210,7 +8222,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8210
8222
  newUnit: n,
8211
8223
  unitKey: e
8212
8224
  });
8213
- }, y = l(({ row: e, rowIndex: t }) => jp({
8225
+ }, y = l(({ row: e, rowIndex: t }) => Mp({
8214
8226
  row: s ? s({
8215
8227
  row: e,
8216
8228
  rowIndex: t
@@ -8235,10 +8247,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8235
8247
  value: n
8236
8248
  });
8237
8249
  });
8238
- }, [t]), /* @__PURE__ */ S(eu, {
8250
+ }, [t]), /* @__PURE__ */ S(tu, {
8239
8251
  table: {
8240
8252
  ...u,
8241
- headers: Mp({
8253
+ headers: Np({
8242
8254
  headers: e.headers,
8243
8255
  selectedUnits: h,
8244
8256
  storageUnits: f,
@@ -8249,8 +8261,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8249
8261
  canListReorder: o,
8250
8262
  beforeRenderRow: y
8251
8263
  });
8252
- }, Pp = { settingField: "_settingField_1x02n_1" }, Fp = ({ 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 }) => {
8253
- let { translations: d } = Op(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
8264
+ }, Fp = { settingField: "_settingField_1x02n_1" }, Ip = ({ 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 }) => {
8265
+ let { translations: d } = kp(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
8254
8266
  ...r ? [] : [{
8255
8267
  label: d == null ? void 0 : d.allUsers,
8256
8268
  value: !1
@@ -8265,14 +8277,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8265
8277
  }] : []
8266
8278
  ], m = a !== void 0 && o !== void 0 && !dn(a, o);
8267
8279
  return /* @__PURE__ */ C("div", {
8268
- className: Pp.settingField,
8280
+ className: Fp.settingField,
8269
8281
  "data-testid": u,
8270
- children: [/* @__PURE__ */ C(vd, {
8282
+ children: [/* @__PURE__ */ C(yd, {
8271
8283
  justifyContent: "space-between",
8272
8284
  wrap: !1,
8273
8285
  children: [i, !s && /* @__PURE__ */ S("div", {
8274
8286
  style: { flexShrink: 0 },
8275
- children: /* @__PURE__ */ C(vd, {
8287
+ children: /* @__PURE__ */ C(yd, {
8276
8288
  gap: "8px",
8277
8289
  alignItems: "center",
8278
8290
  children: [m && /* @__PURE__ */ S(da, {
@@ -8297,19 +8309,19 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8297
8309
  children: f(t)
8298
8310
  })]
8299
8311
  });
8300
- }, Ip = (e, t) => {
8312
+ }, Lp = (e, t) => {
8301
8313
  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;
8302
8314
  return {
8303
8315
  added: Math.max(0, i),
8304
8316
  removed: Math.max(0, a)
8305
8317
  };
8306
- }, Lp = "split", Rp = "unified", zp = ({ oldJson: e, newJson: t, viewType: n = Lp }) => {
8318
+ }, Rp = "split", zp = "unified", Bp = ({ oldJson: e, newJson: t, viewType: n = Rp }) => {
8307
8319
  var r, i;
8308
- let { translations: a } = Op(), [o, s] = v(n), c = [{
8309
- value: Lp,
8320
+ let { translations: a } = kp(), [o, s] = v(n), c = [{
8321
+ value: Rp,
8310
8322
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
8311
8323
  }, {
8312
- value: Rp,
8324
+ value: zp,
8313
8325
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
8314
8326
  }];
8315
8327
  d(() => {
@@ -8317,10 +8329,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8317
8329
  }, [n]);
8318
8330
  let l = ({ target: { value: e } }) => {
8319
8331
  s(e);
8320
- }, { added: u, removed: f } = Ip(e, t), p = u + f > 3500;
8332
+ }, { added: u, removed: f } = Lp(e, t), p = u + f > 3500;
8321
8333
  return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
8322
8334
  bordered: !0,
8323
- heading: /* @__PURE__ */ C(vd, {
8335
+ heading: /* @__PURE__ */ C(yd, {
8324
8336
  gap: !0,
8325
8337
  children: [/* @__PURE__ */ S(es, { children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C(Yo, {
8326
8338
  success: !0,
@@ -8332,7 +8344,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8332
8344
  }), /* @__PURE__ */ C(Yo, {
8333
8345
  error: !0,
8334
8346
  children: ["-", f]
8335
- })] }) }), !p && /* @__PURE__ */ S(Jd, {
8347
+ })] }) }), !p && /* @__PURE__ */ S(Yd, {
8336
8348
  name: "viewType",
8337
8349
  options: c,
8338
8350
  value: o,
@@ -8350,14 +8362,14 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
8350
8362
  }) : /* @__PURE__ */ S(xi, {
8351
8363
  oldValue: e,
8352
8364
  newValue: t,
8353
- splitView: o === Lp,
8365
+ splitView: o === Rp,
8354
8366
  compareMethod: Si.WORDS
8355
8367
  })
8356
8368
  }) });
8357
8369
  };
8358
8370
  //#endregion
8359
8371
  //#region src/helpers/date.ts
8360
- function Bp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8372
+ function Vp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
8361
8373
  return e ? new Date(e).toLocaleString(a, {
8362
8374
  year: "numeric",
8363
8375
  month: "short",
@@ -8371,28 +8383,28 @@ function Bp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
8371
8383
  }
8372
8384
  //#endregion
8373
8385
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
8374
- function Vp(e) {
8386
+ function Hp(e) {
8375
8387
  var t;
8376
8388
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
8377
8389
  if (!n) throw Error("Invalid RegExp");
8378
8390
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
8379
8391
  }
8380
- function Hp(e) {
8392
+ function Up(e) {
8381
8393
  if (typeof e != "object") return e;
8382
8394
  if (e === null) return null;
8383
- if (Array.isArray(e)) return e.map(Hp);
8395
+ if (Array.isArray(e)) return e.map(Up);
8384
8396
  if (e instanceof Date) return new Date(e.getTime());
8385
- if (e instanceof RegExp) return Vp(e);
8397
+ if (e instanceof RegExp) return Hp(e);
8386
8398
  let t = {};
8387
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Hp(e[n]));
8399
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Up(e[n]));
8388
8400
  return t;
8389
8401
  }
8390
8402
  //#endregion
8391
8403
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
8392
- function Up(e, t) {
8404
+ function Wp(e, t) {
8393
8405
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
8394
8406
  }
8395
- var Wp = (e) => e[e.length - 1], Gp = class {
8407
+ var Gp = (e) => e[e.length - 1], Kp = class {
8396
8408
  setResult(e) {
8397
8409
  return this.result = e, this.hasResult = !0, this;
8398
8410
  }
@@ -8400,16 +8412,16 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8400
8412
  return this.exiting = !0, this;
8401
8413
  }
8402
8414
  push(e, t) {
8403
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Up(this.children), Wp(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8415
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Wp(this.children), Gp(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
8404
8416
  }
8405
- }, Kp = class extends Gp {
8417
+ }, qp = class extends Kp {
8406
8418
  constructor(e, t) {
8407
8419
  super(), this.left = e, this.right = t, this.pipe = "diff";
8408
8420
  }
8409
8421
  prepareDeltaResult(e) {
8410
8422
  var t, n, r, i;
8411
8423
  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)) {
8412
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Hp;
8424
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Up;
8413
8425
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
8414
8426
  }
8415
8427
  return e;
@@ -8417,15 +8429,15 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8417
8429
  setResult(e) {
8418
8430
  return this.prepareDeltaResult(e), super.setResult(e);
8419
8431
  }
8420
- }, qp = class extends Gp {
8432
+ }, Jp = class extends Kp {
8421
8433
  constructor(e, t) {
8422
8434
  super(), this.left = e, this.delta = t, this.pipe = "patch";
8423
8435
  }
8424
- }, Jp = class extends Gp {
8436
+ }, Yp = class extends Kp {
8425
8437
  constructor(e) {
8426
8438
  super(), this.delta = e, this.pipe = "reverse";
8427
8439
  }
8428
- }, Yp = class {
8440
+ }, Xp = class {
8429
8441
  constructor(e) {
8430
8442
  this.name = e, this.filters = [];
8431
8443
  }
@@ -8489,7 +8501,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8489
8501
  }
8490
8502
  }), this);
8491
8503
  }
8492
- }, Xp = class {
8504
+ }, Zp = class {
8493
8505
  constructor(e) {
8494
8506
  this.selfOptions = e || {}, this.pipes = {};
8495
8507
  }
@@ -8516,7 +8528,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8516
8528
  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);
8517
8529
  return n.hasResult ? n.result : void 0;
8518
8530
  }
8519
- }, Zp = (e, t, n, r) => e[n] === t[r], Qp = (e, t, n, r) => {
8531
+ }, Qp = (e, t, n, r) => e[n] === t[r], $p = (e, t, n, r) => {
8520
8532
  var i, a, o;
8521
8533
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
8522
8534
  for (l = 0; l < s + 1; l++) {
@@ -8532,7 +8544,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8532
8544
  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);
8533
8545
  }
8534
8546
  return d;
8535
- }, $p = (e, t, n, r) => {
8547
+ }, em = (e, t, n, r) => {
8536
8548
  let i = t.length, a = n.length, o = {
8537
8549
  sequence: [],
8538
8550
  indices1: [],
@@ -8554,11 +8566,11 @@ var Wp = (e) => e[e.length - 1], Gp = class {
8554
8566
  }
8555
8567
  }
8556
8568
  return o;
8557
- }, em = { get: (e, t, n, r) => {
8569
+ }, tm = { get: (e, t, n, r) => {
8558
8570
  let i = r || {};
8559
- return $p(Qp(e, t, n || Zp, i), e, t, i);
8560
- } }, tm = 3;
8561
- function nm(e, t, n, r) {
8571
+ return em($p(e, t, n || Qp, i), e, t, i);
8572
+ } }, nm = 3;
8573
+ function rm(e, t, n, r) {
8562
8574
  for (let i = 0; i < n; i++) {
8563
8575
  let n = e[i];
8564
8576
  for (let e = 0; e < r; e++) {
@@ -8568,7 +8580,7 @@ function nm(e, t, n, r) {
8568
8580
  }
8569
8581
  return !1;
8570
8582
  }
8571
- function rm(e, t, n, r, i) {
8583
+ function im(e, t, n, r, i) {
8572
8584
  let a = e[n], o = t[r];
8573
8585
  if (a === o) return !0;
8574
8586
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -8581,15 +8593,15 @@ function rm(e, t, n, r, i) {
8581
8593
  let l = i.hashCache2[r];
8582
8594
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
8583
8595
  }
8584
- var im = function(e) {
8596
+ var am = function(e) {
8585
8597
  var t, n, r, i, a;
8586
8598
  if (!e.leftIsArray) return;
8587
8599
  let o = {
8588
8600
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
8589
8601
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
8590
8602
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
8591
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !nm(f, p, m, h)); s < m && s < h && rm(f, p, s, s, o);) l = s, g = new Kp(f[l], p[l]), e.push(g, l), s++;
8592
- for (; c + s < m && c + s < h && rm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Kp(f[u], p[d]), e.push(g, d), c++;
8603
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !rm(f, p, m, h)); s < m && s < h && im(f, p, s, s, o);) l = s, g = new qp(f[l], p[l]), e.push(g, l), s++;
8604
+ for (; c + s < m && c + s < h && im(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new qp(f[u], p[d]), e.push(g, d), c++;
8593
8605
  let _;
8594
8606
  if (s + c === m) {
8595
8607
  if (m === h) {
@@ -8613,7 +8625,7 @@ var im = function(e) {
8613
8625
  return;
8614
8626
  }
8615
8627
  o.hashCache1 = void 0, o.hashCache2 = void 0;
8616
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = em.get(v, y, rm, o), x = [];
8628
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = tm.get(v, y, im, o), x = [];
8617
8629
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
8618
8630
  let t = `_${l}`;
8619
8631
  _[t] = [
@@ -8634,8 +8646,8 @@ var im = function(e) {
8634
8646
  if (S && w > 0) for (let n = 0; n < w; n++) {
8635
8647
  u = x[n];
8636
8648
  let r = u === void 0 ? void 0 : _[`_${u}`];
8637
- if (u !== void 0 && r && rm(v, y, u - s, l - s, o)) {
8638
- r.splice(1, 2, l, tm), r.splice(1, 2, l, tm), C || (r[0] = ""), d = l, g = new Kp(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8649
+ if (u !== void 0 && r && im(v, y, u - s, l - s, o)) {
8650
+ r.splice(1, 2, l, nm), r.splice(1, 2, l, nm), C || (r[0] = ""), d = l, g = new qp(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8639
8651
  break;
8640
8652
  }
8641
8653
  }
@@ -8643,20 +8655,20 @@ var im = function(e) {
8643
8655
  } else {
8644
8656
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
8645
8657
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
8646
- d = b.indices2[t] + s, g = new Kp(f[u], p[d]), e.push(g, d);
8658
+ d = b.indices2[t] + s, g = new qp(f[u], p[d]), e.push(g, d);
8647
8659
  }
8648
8660
  }
8649
8661
  e.setResult(_).exit();
8650
8662
  };
8651
- im.filterName = "arrays";
8652
- var am = {
8663
+ am.filterName = "arrays";
8664
+ var om = {
8653
8665
  numerically(e, t) {
8654
8666
  return e - t;
8655
8667
  },
8656
8668
  numericallyBy(e) {
8657
8669
  return (t, n) => t[e] - n[e];
8658
8670
  }
8659
- }, om = function(e) {
8671
+ }, sm = function(e) {
8660
8672
  var t;
8661
8673
  if (!e.nested) return;
8662
8674
  let n = e.delta;
@@ -8665,7 +8677,7 @@ var am = {
8665
8677
  for (r in a) if (r !== "_t") {
8666
8678
  if (r[0] === "_") {
8667
8679
  let e = r;
8668
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === tm)) s.push(Number.parseInt(r.slice(1), 10));
8680
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === nm)) s.push(Number.parseInt(r.slice(1), 10));
8669
8681
  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]}`);
8670
8682
  } else {
8671
8683
  let e = r;
@@ -8678,15 +8690,15 @@ var am = {
8678
8690
  });
8679
8691
  }
8680
8692
  }
8681
- for (s = s.sort(am.numerically), r = s.length - 1; r >= 0; r--) {
8693
+ for (s = s.sort(om.numerically), r = s.length - 1; r >= 0; r--) {
8682
8694
  if (i = s[r], i === void 0) continue;
8683
8695
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8684
- (e == null ? void 0 : e[2]) === tm && c.push({
8696
+ (e == null ? void 0 : e[2]) === nm && c.push({
8685
8697
  index: e[1],
8686
8698
  value: t
8687
8699
  });
8688
8700
  }
8689
- c = c.sort(am.numericallyBy("index"));
8701
+ c = c.sort(om.numericallyBy("index"));
8690
8702
  let u = c.length;
8691
8703
  for (r = 0; r < u; r++) {
8692
8704
  let e = c[r];
@@ -8696,7 +8708,7 @@ var am = {
8696
8708
  if (d > 0) for (r = 0; r < d; r++) {
8697
8709
  let t = l[r];
8698
8710
  if (t === void 0) continue;
8699
- let n = new qp(o[t.index], t.delta);
8711
+ let n = new Jp(o[t.index], t.delta);
8700
8712
  e.push(n, t.index);
8701
8713
  }
8702
8714
  if (!e.children) {
@@ -8705,8 +8717,8 @@ var am = {
8705
8717
  }
8706
8718
  e.exit();
8707
8719
  };
8708
- om.filterName = "arrays";
8709
- var sm = function(e) {
8720
+ sm.filterName = "arrays";
8721
+ var cm = function(e) {
8710
8722
  if (!e || !e.children || e.delta._t !== "a") return;
8711
8723
  let t = e.left, n = e.children.length;
8712
8724
  for (let r = 0; r < n; r++) {
@@ -8717,16 +8729,16 @@ var sm = function(e) {
8717
8729
  }
8718
8730
  e.setResult(t).exit();
8719
8731
  };
8720
- sm.filterName = "arraysCollectChildren";
8721
- var cm = function(e) {
8732
+ cm.filterName = "arraysCollectChildren";
8733
+ var lm = function(e) {
8722
8734
  if (!e.nested) {
8723
8735
  let t = e.delta;
8724
- if (t[2] === tm) {
8736
+ if (t[2] === nm) {
8725
8737
  let n = t;
8726
8738
  e.newName = `_${n[1]}`, e.setResult([
8727
8739
  n[0],
8728
8740
  Number.parseInt(e.childName.substring(1), 10),
8729
- tm
8741
+ nm
8730
8742
  ]).exit();
8731
8743
  }
8732
8744
  return;
@@ -8736,20 +8748,20 @@ var cm = function(e) {
8736
8748
  let n = t;
8737
8749
  for (let t in n) {
8738
8750
  if (t === "_t") continue;
8739
- let r = new Jp(n[t]);
8751
+ let r = new Yp(n[t]);
8740
8752
  e.push(r, t);
8741
8753
  }
8742
8754
  e.exit();
8743
8755
  };
8744
- cm.filterName = "arrays";
8745
- var lm = (e, t, n) => {
8756
+ lm.filterName = "arrays";
8757
+ var um = (e, t, n) => {
8746
8758
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8747
8759
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8748
8760
  let r = +t;
8749
8761
  for (let n in e) {
8750
8762
  let i = e[n];
8751
8763
  if (Array.isArray(i)) {
8752
- if (i[2] === tm) {
8764
+ if (i[2] === nm) {
8753
8765
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8754
8766
  if (a === +t) return e;
8755
8767
  e <= r && a > r ? r++ : e >= r && a < r && r--;
@@ -8757,7 +8769,7 @@ var lm = (e, t, n) => {
8757
8769
  }
8758
8770
  }
8759
8771
  return r;
8760
- }, um = (e) => {
8772
+ }, dm = (e) => {
8761
8773
  if (!e || !e.children) return;
8762
8774
  let t = e.delta;
8763
8775
  if (t._t !== "a") return;
@@ -8768,22 +8780,22 @@ var lm = (e, t, n) => {
8768
8780
  let a = r.newName;
8769
8781
  if (a === void 0) {
8770
8782
  if (r.childName === void 0) throw Error("child.childName is undefined");
8771
- a = lm(n, r.childName, r.result);
8783
+ a = um(n, r.childName, r.result);
8772
8784
  }
8773
8785
  i[a] !== r.result && (i[a] = r.result);
8774
8786
  }
8775
8787
  e.setResult(i).exit();
8776
8788
  };
8777
- um.filterName = "arraysCollectChildren";
8789
+ dm.filterName = "arraysCollectChildren";
8778
8790
  //#endregion
8779
8791
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8780
- var dm = function(e) {
8792
+ var fm = function(e) {
8781
8793
  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();
8782
8794
  };
8783
- dm.filterName = "dates";
8795
+ fm.filterName = "dates";
8784
8796
  //#endregion
8785
8797
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8786
- var fm = /* @__PURE__ */ new Set(["__proto__"]), pm = (e) => {
8798
+ var pm = /* @__PURE__ */ new Set(["__proto__"]), mm = (e) => {
8787
8799
  if (!e || !e.children) return;
8788
8800
  let t = e.children.length, n = e.result;
8789
8801
  for (let r = 0; r < t; r++) {
@@ -8795,18 +8807,18 @@ var fm = /* @__PURE__ */ new Set(["__proto__"]), pm = (e) => {
8795
8807
  }
8796
8808
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8797
8809
  };
8798
- pm.filterName = "collectChildren";
8799
- var mm = (e) => {
8810
+ mm.filterName = "collectChildren";
8811
+ var hm = (e) => {
8800
8812
  var t;
8801
8813
  if (e.leftIsArray || e.leftType !== "object") return;
8802
8814
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8803
8815
  for (let t in n) {
8804
8816
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8805
- let a = new Kp(n[t], r[t]);
8817
+ let a = new qp(n[t], r[t]);
8806
8818
  e.push(a, t);
8807
8819
  }
8808
8820
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8809
- let n = new Kp(void 0, r[t]);
8821
+ let n = new qp(void 0, r[t]);
8810
8822
  e.push(n, t);
8811
8823
  }
8812
8824
  if (!e.children || e.children.length === 0) {
@@ -8815,15 +8827,15 @@ var mm = (e) => {
8815
8827
  }
8816
8828
  e.exit();
8817
8829
  };
8818
- mm.filterName = "objects";
8819
- var hm = function(e) {
8830
+ hm.filterName = "objects";
8831
+ var gm = function(e) {
8820
8832
  if (!e.nested) return;
8821
8833
  let t = e.delta;
8822
8834
  if (t._t) return;
8823
8835
  let n = t, r = !1;
8824
8836
  for (let t in n) {
8825
- if (fm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8826
- let i = e.left, a = new qp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8837
+ if (pm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8838
+ let i = e.left, a = new Jp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8827
8839
  e.push(a, t), r = !0;
8828
8840
  }
8829
8841
  if (!r) {
@@ -8832,8 +8844,8 @@ var hm = function(e) {
8832
8844
  }
8833
8845
  e.exit();
8834
8846
  };
8835
- hm.filterName = "objects";
8836
- var gm = function(e) {
8847
+ gm.filterName = "objects";
8848
+ var _m = function(e) {
8837
8849
  if (!e || !e.children || e.delta._t) return;
8838
8850
  if (e.left === null || typeof e.left != "object") {
8839
8851
  e.setResult(e.left).exit();
@@ -8844,17 +8856,17 @@ var gm = function(e) {
8844
8856
  let n = e.children[r];
8845
8857
  if (n === void 0) continue;
8846
8858
  let i = n.childName;
8847
- fm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8859
+ pm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8848
8860
  }
8849
8861
  e.setResult(t).exit();
8850
8862
  };
8851
- gm.filterName = "collectChildren";
8852
- var _m = function(e) {
8863
+ _m.filterName = "collectChildren";
8864
+ var vm = function(e) {
8853
8865
  if (!e.nested || e.delta._t) return;
8854
8866
  let t = e.delta, n = !1;
8855
8867
  for (let r in t) {
8856
- if (fm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8857
- let i = new Jp(t[r]);
8868
+ if (pm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8869
+ let i = new Yp(t[r]);
8858
8870
  e.push(i, r), n = !0;
8859
8871
  }
8860
8872
  if (!n) {
@@ -8863,25 +8875,25 @@ var _m = function(e) {
8863
8875
  }
8864
8876
  e.exit();
8865
8877
  };
8866
- _m.filterName = "objects";
8867
- var vm = (e) => {
8878
+ vm.filterName = "objects";
8879
+ var ym = (e) => {
8868
8880
  if (!e || !e.children || e.delta._t) return;
8869
8881
  let t = e.children.length, n = {};
8870
8882
  for (let r = 0; r < t; r++) {
8871
8883
  let t = e.children[r];
8872
8884
  if (t === void 0) continue;
8873
8885
  let i = t.childName;
8874
- fm.has(i) || n[i] !== t.result && (n[i] = t.result);
8886
+ pm.has(i) || n[i] !== t.result && (n[i] = t.result);
8875
8887
  }
8876
8888
  e.setResult(n).exit();
8877
8889
  };
8878
- vm.filterName = "collectChildren";
8890
+ ym.filterName = "collectChildren";
8879
8891
  //#endregion
8880
8892
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8881
- var ym = 2, bm = 60, xm = null;
8882
- function Sm(e, t) {
8893
+ var bm = 2, xm = 60, Sm = null;
8894
+ function Cm(e, t) {
8883
8895
  var n;
8884
- if (!xm) {
8896
+ if (!Sm) {
8885
8897
  let r;
8886
8898
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8887
8899
  else {
@@ -8889,7 +8901,7 @@ function Sm(e, t) {
8889
8901
  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.");
8890
8902
  throw e.diff_match_patch_not_found = !0, e;
8891
8903
  }
8892
- xm = {
8904
+ Sm = {
8893
8905
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8894
8906
  patch: (e, t) => {
8895
8907
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8901,17 +8913,17 @@ function Sm(e, t) {
8901
8913
  }
8902
8914
  };
8903
8915
  }
8904
- return xm;
8916
+ return Sm;
8905
8917
  }
8906
- var Cm = function(e) {
8918
+ var wm = function(e) {
8907
8919
  var t, n;
8908
8920
  if (e.leftType !== "string") return;
8909
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || bm;
8921
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || xm;
8910
8922
  if (r.length < a || i.length < a) {
8911
8923
  e.setResult([r, i]).exit();
8912
8924
  return;
8913
8925
  }
8914
- let o = Sm(e.options);
8926
+ let o = Cm(e.options);
8915
8927
  if (!o) {
8916
8928
  e.setResult([r, i]).exit();
8917
8929
  return;
@@ -8920,19 +8932,19 @@ var Cm = function(e) {
8920
8932
  e.setResult([
8921
8933
  s(r, i),
8922
8934
  0,
8923
- ym
8935
+ bm
8924
8936
  ]).exit();
8925
8937
  };
8926
- Cm.filterName = "texts";
8927
- var wm = function(e) {
8938
+ wm.filterName = "texts";
8939
+ var Tm = function(e) {
8928
8940
  if (e.nested) return;
8929
8941
  let t = e.delta;
8930
- if (t[2] !== ym) return;
8931
- let n = t, r = Sm(e.options, !0).patch;
8942
+ if (t[2] !== bm) return;
8943
+ let n = t, r = Cm(e.options, !0).patch;
8932
8944
  e.setResult(r(e.left, n[0])).exit();
8933
8945
  };
8934
- wm.filterName = "texts";
8935
- var Tm = (e) => {
8946
+ Tm.filterName = "texts";
8947
+ var Em = (e) => {
8936
8948
  var t, n, r;
8937
8949
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8938
8950
  for (let e = 0; e < a.length; e++) {
@@ -8953,21 +8965,21 @@ var Tm = (e) => {
8953
8965
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8954
8966
  }
8955
8967
  return a.join("\n");
8956
- }, Em = function(e) {
8968
+ }, Dm = function(e) {
8957
8969
  if (e.nested) return;
8958
8970
  let t = e.delta;
8959
- if (t[2] !== ym) return;
8971
+ if (t[2] !== bm) return;
8960
8972
  let n = t;
8961
8973
  e.setResult([
8962
- Tm(n[0]),
8974
+ Em(n[0]),
8963
8975
  0,
8964
- ym
8976
+ bm
8965
8977
  ]).exit();
8966
8978
  };
8967
- Em.filterName = "texts";
8979
+ Dm.filterName = "texts";
8968
8980
  //#endregion
8969
8981
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8970
- var Dm = function(e) {
8982
+ var Om = function(e) {
8971
8983
  if (e.left === e.right) {
8972
8984
  e.setResult(void 0).exit();
8973
8985
  return;
@@ -9000,8 +9012,8 @@ var Dm = function(e) {
9000
9012
  }
9001
9013
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
9002
9014
  };
9003
- Dm.filterName = "trivial";
9004
- var Om = function(e) {
9015
+ Om.filterName = "trivial";
9016
+ var km = function(e) {
9005
9017
  if (e.delta === void 0) {
9006
9018
  e.setResult(e.left).exit();
9007
9019
  return;
@@ -9025,8 +9037,8 @@ var Om = function(e) {
9025
9037
  }
9026
9038
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
9027
9039
  };
9028
- Om.filterName = "trivial";
9029
- var km = function(e) {
9040
+ km.filterName = "trivial";
9041
+ var Am = function(e) {
9030
9042
  if (e.delta === void 0) {
9031
9043
  e.setResult(e.delta).exit();
9032
9044
  return;
@@ -9047,36 +9059,36 @@ var km = function(e) {
9047
9059
  }
9048
9060
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
9049
9061
  };
9050
- km.filterName = "trivial";
9062
+ Am.filterName = "trivial";
9051
9063
  //#endregion
9052
9064
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
9053
- var Am = class {
9065
+ var jm = class {
9054
9066
  constructor(e) {
9055
- this.processor = new Xp(e), this.processor.pipe(new Yp("diff").append(pm, Dm, dm, Cm, mm, im).shouldHaveResult()), this.processor.pipe(new Yp("patch").append(gm, sm, Om, wm, hm, om).shouldHaveResult()), this.processor.pipe(new Yp("reverse").append(vm, um, km, Em, _m, cm).shouldHaveResult());
9067
+ this.processor = new Zp(e), this.processor.pipe(new Xp("diff").append(mm, Om, fm, wm, hm, am).shouldHaveResult()), this.processor.pipe(new Xp("patch").append(_m, cm, km, Tm, gm, sm).shouldHaveResult()), this.processor.pipe(new Xp("reverse").append(ym, dm, Am, Dm, vm, lm).shouldHaveResult());
9056
9068
  }
9057
9069
  options(e) {
9058
9070
  return this.processor.options(e);
9059
9071
  }
9060
9072
  diff(e, t) {
9061
- return this.processor.process(new Kp(e, t));
9073
+ return this.processor.process(new qp(e, t));
9062
9074
  }
9063
9075
  patch(e, t) {
9064
- return this.processor.process(new qp(e, t));
9076
+ return this.processor.process(new Jp(e, t));
9065
9077
  }
9066
9078
  reverse(e) {
9067
- return this.processor.process(new Jp(e));
9079
+ return this.processor.process(new Yp(e));
9068
9080
  }
9069
9081
  unpatch(e, t) {
9070
9082
  return this.patch(e, this.reverse(t));
9071
9083
  }
9072
9084
  clone(e) {
9073
- return Hp(e);
9085
+ return Up(e);
9074
9086
  }
9075
9087
  };
9076
9088
  //#endregion
9077
9089
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
9078
- function jm(e) {
9079
- return new Am(e);
9090
+ function Mm(e) {
9091
+ return new jm(e);
9080
9092
  }
9081
9093
  //#endregion
9082
9094
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -9638,46 +9650,46 @@ $.Diff = function(e, t) {
9638
9650
  };
9639
9651
  //#endregion
9640
9652
  //#region src/components/audit-log/create-diff-patcher.tsx
9641
- var Mm = (e = {}) => jm({
9653
+ var Nm = (e = {}) => Mm({
9642
9654
  ...e,
9643
9655
  textDiff: {
9644
9656
  diffMatchPatch: $,
9645
9657
  minLength: 120
9646
9658
  },
9647
9659
  cloneDiffValues: !0
9648
- }), Nm = ["user", "unittemplate"], Pm = Mm(), Fm = (e, t, n) => {
9660
+ }), Pm = ["user", "unittemplate"], Fm = Nm(), Im = (e, t, n) => {
9649
9661
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
9650
9662
  for (let e = t.length - 1; e >= 0; e--) {
9651
9663
  let n = r[t[e]];
9652
9664
  if (n) return n;
9653
9665
  }
9654
9666
  return n || "";
9655
- }, Im = (e) => {
9667
+ }, Lm = (e) => {
9656
9668
  let t = (e) => _r(e) ? kr(e) : String(e);
9657
9669
  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);
9658
- }, Lm = (e) => {
9670
+ }, Rm = (e) => {
9659
9671
  switch (e.length) {
9660
9672
  case 1: {
9661
9673
  let [t] = e;
9662
9674
  return {
9663
9675
  type: "created",
9664
9676
  before: "",
9665
- after: Im(t)
9677
+ after: Lm(t)
9666
9678
  };
9667
9679
  }
9668
9680
  case 2: {
9669
9681
  let [t, n] = e;
9670
9682
  return {
9671
9683
  type: "modified",
9672
- before: Im(t),
9673
- after: Im(n)
9684
+ before: Lm(t),
9685
+ after: Lm(n)
9674
9686
  };
9675
9687
  }
9676
9688
  case 3: {
9677
9689
  let [t] = e;
9678
9690
  return {
9679
9691
  type: "deleted",
9680
- before: Im(t),
9692
+ before: Lm(t),
9681
9693
  after: ""
9682
9694
  };
9683
9695
  }
@@ -9687,15 +9699,15 @@ var Mm = (e = {}) => jm({
9687
9699
  after: ""
9688
9700
  };
9689
9701
  }
9690
- }, Rm = (e) => Array.isArray(e), zm = (e, t) => t ? Rm(t) ? t.length === 0 ? e : t.reduce((e, t) => Pm.unpatch(nn(e), nn(t)), nn(e)) : Pm.unpatch(nn(e), nn(t)) : e, Bm = (e) => e.createdAt || e.date, Vm = (e, t, n) => {
9691
- let r = Bm(e);
9702
+ }, zm = (e) => Array.isArray(e), Bm = (e, t) => t ? zm(t) ? t.length === 0 ? e : t.reduce((e, t) => Fm.unpatch(nn(e), nn(t)), nn(e)) : Fm.unpatch(nn(e), nn(t)) : e, Vm = (e) => e.createdAt || e.date, Hm = (e, t, n) => {
9703
+ let r = Vm(e);
9692
9704
  if (!r) return {
9693
9705
  oldJson: "",
9694
9706
  newJson: "",
9695
9707
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9696
9708
  };
9697
9709
  let i = t.filter((e) => {
9698
- let t = Bm(e);
9710
+ let t = Vm(e);
9699
9711
  return !!(e.diffs && t && t >= r);
9700
9712
  }), a = Array.from({ length: i.length + 1 });
9701
9713
  a[0] = nn(n);
@@ -9708,7 +9720,7 @@ var Mm = (e = {}) => jm({
9708
9720
  a[e + 1] = a[e];
9709
9721
  continue;
9710
9722
  }
9711
- a[e + 1] = zm(a[e], t);
9723
+ a[e + 1] = Bm(a[e], t);
9712
9724
  }
9713
9725
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9714
9726
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9723,10 +9735,10 @@ var Mm = (e = {}) => jm({
9723
9735
  oldJson: o,
9724
9736
  newJson: s
9725
9737
  };
9726
- }, Hm = (e, t, n = {}, r = []) => {
9738
+ }, Um = (e, t, n = {}, r = []) => {
9727
9739
  var i;
9728
9740
  if (!e) return;
9729
- let a = [...Nm, ...(i = n.hiddenKeys) == null ? [] : i];
9741
+ let a = [...Pm, ...(i = n.hiddenKeys) == null ? [] : i];
9730
9742
  Object.keys(e).forEach((i) => {
9731
9743
  var o;
9732
9744
  let s = e[i];
@@ -9739,12 +9751,12 @@ var Mm = (e = {}) => jm({
9739
9751
  cn(s) ? t.push({
9740
9752
  deltaFormat: [...s],
9741
9753
  path: c
9742
- }) : gn(s) && Hm(s, t, n, c);
9754
+ }) : gn(s) && Um(s, t, n, c);
9743
9755
  });
9744
- }, Um = (e, t = {}) => {
9756
+ }, Wm = (e, t = {}) => {
9745
9757
  let n = [];
9746
- return e ? (Hm(e, n, t), n) : [];
9747
- }, Wm = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Gm = (e) => {
9758
+ return e ? (Um(e, n, t), n) : [];
9759
+ }, Gm = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Km = (e) => {
9748
9760
  if (e == null || e === "") return "empty";
9749
9761
  if (typeof e == "boolean") return e ? "true" : "false";
9750
9762
  if (typeof e == "string") return e;
@@ -9755,35 +9767,35 @@ var Mm = (e = {}) => jm({
9755
9767
  } catch {
9756
9768
  return String(e);
9757
9769
  }
9758
- }, Km = (e, t = e.length - 1) => {
9770
+ }, qm = (e, t = e.length - 1) => {
9759
9771
  if (t >= e.length) return "Value";
9760
9772
  let n = e[t];
9761
- return !n || mr(n) ? Km(e, t - 1) : Wm(n);
9762
- }, qm = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9763
- let o = Gm(r), s = Gm(i), c = a ? ` in ${a}` : "";
9773
+ return !n || mr(n) ? qm(e, t - 1) : Gm(n);
9774
+ }, Jm = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9775
+ let o = Km(r), s = Km(i), c = a ? ` in ${a}` : "";
9764
9776
  switch (t) {
9765
9777
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9766
9778
  case "created": return `${e} created ${s}${c}.`;
9767
9779
  case "deleted": return `${e} deleted ${o}${c}.`;
9768
9780
  default: return `${e} changed ${n}${c}.`;
9769
9781
  }
9770
- }, Jm = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9782
+ }, Ym = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
9771
9783
  let i = {
9772
9784
  headers: [{ cells: [{ value: "Changes" }] }],
9773
9785
  rows: n.map((n) => {
9774
- let { deltaFormat: i, path: a } = n, o = Fm(e, a, r), { type: s, before: c, after: l } = Lm(i);
9775
- return { cells: [{ value: qm({
9786
+ let { deltaFormat: i, path: a } = n, o = Im(e, a, r), { type: s, before: c, after: l } = Rm(i);
9787
+ return { cells: [{ value: Jm({
9776
9788
  userName: t,
9777
9789
  type: s,
9778
- property: Km(a),
9790
+ property: qm(a),
9779
9791
  before: c,
9780
9792
  after: l,
9781
9793
  sectionName: o
9782
9794
  }) }] };
9783
9795
  })
9784
9796
  };
9785
- return /* @__PURE__ */ S(eu, { table: i });
9786
- }, Ym = Object.freeze({
9797
+ return /* @__PURE__ */ S(tu, { table: i });
9798
+ }, Xm = Object.freeze({
9787
9799
  summary: {
9788
9800
  label: "Summary",
9789
9801
  value: "summary"
@@ -9792,13 +9804,13 @@ var Mm = (e = {}) => jm({
9792
9804
  label: "Compare",
9793
9805
  value: "compare"
9794
9806
  }
9795
- }), Xm = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9796
- let c = [Ym.summary, Ym.compare].map(({ label: e, value: t }) => ({
9807
+ }), Zm = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9808
+ let c = [Xm.summary, Xm.compare].map(({ label: e, value: t }) => ({
9797
9809
  label: e,
9798
9810
  value: t
9799
9811
  })), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
9800
9812
  if (!d) return null;
9801
- let { oldJson: f, newJson: p, error: m } = Vm(e, t, n);
9813
+ let { oldJson: f, newJson: p, error: m } = Hm(e, t, n);
9802
9814
  return /* @__PURE__ */ S(Ts, {
9803
9815
  visible: r,
9804
9816
  centered: !0,
@@ -9806,20 +9818,20 @@ var Mm = (e = {}) => jm({
9806
9818
  children: /* @__PURE__ */ S(rs, { dialog: {
9807
9819
  scroll: !0,
9808
9820
  heading: "Comparison view",
9809
- content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Jf, {
9821
+ content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Yf, {
9810
9822
  name: "ViewTab",
9811
9823
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9812
9824
  options: c,
9813
9825
  value: l
9814
- }), l.value === "summary" ? /* @__PURE__ */ S(Jm, {
9826
+ }), l.value === "summary" ? /* @__PURE__ */ S(Ym, {
9815
9827
  userName: e.userName,
9816
9828
  sectionNames: a,
9817
- diffs: Um(d, i),
9829
+ diffs: Wm(d, i),
9818
9830
  defaultSectionName: o
9819
9831
  }) : m ? /* @__PURE__ */ S("div", {
9820
9832
  style: { padding: 16 },
9821
9833
  children: m
9822
- }) : /* @__PURE__ */ S(zp, {
9834
+ }) : /* @__PURE__ */ S(Bp, {
9823
9835
  oldJson: f,
9824
9836
  newJson: p
9825
9837
  })] }),
@@ -9832,7 +9844,7 @@ var Mm = (e = {}) => jm({
9832
9844
  height: "90vh"
9833
9845
  } })
9834
9846
  });
9835
- }, Zm = [
9847
+ }, Qm = [
9836
9848
  {
9837
9849
  label: "10 / page",
9838
9850
  value: 10
@@ -9845,8 +9857,8 @@ var Mm = (e = {}) => jm({
9845
9857
  label: "50 / page",
9846
9858
  value: 50
9847
9859
  }
9848
- ], Qm = (e, t = {}) => {
9849
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Um(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9860
+ ], $m = (e, t = {}) => {
9861
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Wm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9850
9862
  if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
9851
9863
  switch (a) {
9852
9864
  case "Created": return `Created by ${r}`;
@@ -9856,7 +9868,7 @@ var Mm = (e = {}) => jm({
9856
9868
  case "Updated": return `Updated by ${r} (${c})`;
9857
9869
  default: return `Change by ${r}`;
9858
9870
  }
9859
- }, $m = ({ 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 }) => {
9871
+ }, eh = ({ 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 }) => {
9860
9872
  let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
9861
9873
  if (e.snapshot) {
9862
9874
  f == null || f(e.snapshot, e);
@@ -9875,7 +9887,7 @@ var Mm = (e = {}) => jm({
9875
9887
  return {
9876
9888
  cells: [
9877
9889
  {
9878
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : Qm(e, l),
9890
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : $m(e, l),
9879
9891
  type: "Link",
9880
9892
  disabled: n,
9881
9893
  onClick: n ? void 0 : () => w(e),
@@ -9894,8 +9906,8 @@ var Mm = (e = {}) => jm({
9894
9906
  type: "Static"
9895
9907
  },
9896
9908
  {
9897
- value: Bp({
9898
- date: Bm(e),
9909
+ value: Vp({
9910
+ date: Vm(e),
9899
9911
  showTime: !0
9900
9912
  }),
9901
9913
  type: "Static"
@@ -9905,12 +9917,12 @@ var Mm = (e = {}) => jm({
9905
9917
  };
9906
9918
  });
9907
9919
  return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(bo, {
9908
- heading: /* @__PURE__ */ C(vd, {
9920
+ heading: /* @__PURE__ */ C(yd, {
9909
9921
  gap: !0,
9910
9922
  wrap: !0,
9911
9923
  children: [/* @__PURE__ */ S(es, { children: "Changes" }), c.map((e) => {
9912
9924
  var t;
9913
- return /* @__PURE__ */ S(Xu, {
9925
+ return /* @__PURE__ */ S(Zu, {
9914
9926
  small: (t = e.small) == null || t,
9915
9927
  checked: e.checked,
9916
9928
  onChange: e.onChange,
@@ -9920,11 +9932,11 @@ var Mm = (e = {}) => jm({
9920
9932
  })]
9921
9933
  }),
9922
9934
  padding: !1,
9923
- children: r ? /* @__PURE__ */ S(Fd, {
9935
+ children: r ? /* @__PURE__ */ S(Id, {
9924
9936
  height: "100px",
9925
9937
  theme: ki.WHITE,
9926
9938
  children: /* @__PURE__ */ S(ya, { dark: !0 })
9927
- }) : /* @__PURE__ */ S(eu, { table: {
9939
+ }) : /* @__PURE__ */ S(tu, { table: {
9928
9940
  headers: T,
9929
9941
  testId: "auditlog-table",
9930
9942
  rows: E,
@@ -9938,14 +9950,14 @@ var Mm = (e = {}) => jm({
9938
9950
  onChange: (e) => {
9939
9951
  u(Number(e.target.value));
9940
9952
  },
9941
- options: Zm,
9953
+ options: Qm,
9942
9954
  value: a
9943
9955
  },
9944
9956
  onSelectPage: (e) => d(e),
9945
9957
  small: !0
9946
9958
  } }
9947
9959
  } })
9948
- }), g && y && y.diffs && /* @__PURE__ */ S(Xm, {
9960
+ }), g && y && y.diffs && /* @__PURE__ */ S(Zm, {
9949
9961
  sectionNames: o,
9950
9962
  isOpen: g,
9951
9963
  onClose: () => _(!1),
@@ -9955,7 +9967,7 @@ var Mm = (e = {}) => jm({
9955
9967
  data: t,
9956
9968
  transformDiffsConfig: l
9957
9969
  })] });
9958
- }, eh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9970
+ }, th = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9959
9971
  let i = window.location.href, a = _(i);
9960
9972
  return d(() => {
9961
9973
  a.current = i;
@@ -9978,20 +9990,20 @@ var Mm = (e = {}) => jm({
9978
9990
  });
9979
9991
  };
9980
9992
  }, [e, t]), null;
9981
- }, th = {
9993
+ }, nh = {
9982
9994
  errorBoundary: "_errorBoundary_hmco0_1",
9983
9995
  sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
9984
9996
  rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
9985
- }, nh = ({ options: e }) => {
9986
- let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Op();
9997
+ }, rh = ({ options: e }) => {
9998
+ let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = kp();
9987
9999
  if (t) return /* @__PURE__ */ S(t, {});
9988
10000
  if (n || r) return /* @__PURE__ */ S("div", {
9989
- className: b(n ? th.sidebarErrorBoundary : "", r ? th.rightSidebarErrorBoundary : ""),
10001
+ className: b(n ? nh.sidebarErrorBoundary : "", r ? nh.rightSidebarErrorBoundary : ""),
9990
10002
  style: a,
9991
10003
  children: o == null ? void 0 : o.unexpectedError
9992
10004
  });
9993
10005
  let s = /* @__PURE__ */ S("div", {
9994
- className: th.errorBoundary,
10006
+ className: nh.errorBoundary,
9995
10007
  style: a,
9996
10008
  children: /* @__PURE__ */ S(Gs, { message: {
9997
10009
  icon: !0,
@@ -10001,24 +10013,24 @@ var Mm = (e = {}) => jm({
10001
10013
  width: "100%"
10002
10014
  } })
10003
10015
  });
10004
- return i ? /* @__PURE__ */ S(Wd, {
10016
+ return i ? /* @__PURE__ */ S(Gd, {
10005
10017
  scroll: !1,
10006
10018
  padding: 0,
10007
10019
  children: s
10008
10020
  }) : s;
10009
- }, rh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ci.ErrorBoundary, {
10010
- fallback: /* @__PURE__ */ S(nh, { options: t }),
10021
+ }, ih = ({ children: e, options: t }) => /* @__PURE__ */ S(Ci.ErrorBoundary, {
10022
+ fallback: /* @__PURE__ */ S(rh, { options: t }),
10011
10023
  onError: (e, t) => {
10012
10024
  console.error("Error caught by boundary:", e, t);
10013
10025
  },
10014
10026
  children: e
10015
- }), ih = (e, t = {}) => (n) => /* @__PURE__ */ S(rh, {
10027
+ }), ah = (e, t = {}) => (n) => /* @__PURE__ */ S(ih, {
10016
10028
  options: t,
10017
10029
  children: /* @__PURE__ */ S(e, { ...n })
10018
- }), ah = (e = {}) => (t) => ih(t, e), oh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, sh = (e) => {
10019
- kp(wp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10020
- e === wp.Translations ? kp(e, Ep(t)) : kp(e, oh(t) ? t : { ...t });
10030
+ }), oh = (e = {}) => (t) => ah(t, e), sh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, ch = (e) => {
10031
+ Ap(Tp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
10032
+ e === Tp.Translations ? Ap(e, Dp(t)) : Ap(e, sh(t) ? t : { ...t });
10021
10033
  });
10022
10034
  };
10023
10035
  //#endregion
10024
- export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align, $m as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Di as ButtonPosition, ba as ButtonType, bo as Card, fa as CheckBox, Hi as Chevron, Gi as Collapse, Ti as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, zp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, tp as ElementType, du as Empty, rh as ErrorBoundary, _d as Field, pd as FileButton, bs as FileInput, vd as Flex, bd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, da as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, sl as InputGroupAddon, _s as InputReaderMethods, Ai as InputType, hd as Label, Nd as List, Sd as ListHeading, Od as ListSubheading, Fd as Loader, ff as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, bl as NumberInput, Hd as OptionDropdown, Wd as Page, cl as Pagination, sp as PopConfirm, So as Popover, Gd as Portal, qd as PrintHeader, Os as ProgressBar, Jd as RadioButton, df as RichTextInput, mf as Row, tl as Select, Fp as SettingField, yf as SideBar, xf as Skeleton, Al as Slider, Ns as SmartUploadModal, xs as Spacer, ya as Spinner, eu as Table, fd as TableImportExport, Jf as Tabs, Yo as Text, Zf as TextArea, Yf as TextLink, Oi as TextTransform, ki as Theme, ni as Toaster, Xu as Toggle, K as Tooltip, ip as TopBar, dp as Tree, Cp as TreeTable, wi as TriggerType, Vf as UnitInput, Gf as UnitSlider, Np as UnitTable, eh as UsageTracker, qu as dismissToast, Rf as initializeContext, sh as initializeGuiLibrary, vs as readFile, Ku as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, ah as withChainableErrorBoundary, ih as withErrorBoundary };
10036
+ export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align, eh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Di as ButtonPosition, ba as ButtonType, bo as Card, fa as CheckBox, Hi as Chevron, Gi as Collapse, Ti as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Bp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, np as ElementType, fu as Empty, ih as ErrorBoundary, vd as Field, md as FileButton, bs as FileInput, yd as Flex, xd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, da as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, sl as InputGroupAddon, _s as InputReaderMethods, Ai as InputType, gd as Label, Pd as List, Cd as ListHeading, kd as ListSubheading, Id as Loader, pf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, bl as NumberInput, Ud as OptionDropdown, Gd as Page, cl as Pagination, cp as PopConfirm, So as Popover, Kd as Portal, Jd as PrintHeader, Os as ProgressBar, Yd as RadioButton, ff as RichTextInput, hf as Row, tl as Select, Ip as SettingField, bf as SideBar, Sf as Skeleton, Al as Slider, Ns as SmartUploadModal, xs as Spacer, ya as Spinner, tu as Table, pd as TableImportExport, Yf as Tabs, Yo as Text, Qf as TextArea, Xf as TextLink, Oi as TextTransform, ki as Theme, ni as Toaster, Zu as Toggle, K as Tooltip, ap as TopBar, fp as Tree, wp as TreeTable, wi as TriggerType, Hf as UnitInput, Kf as UnitSlider, Pp as UnitTable, th as UsageTracker, Ju as dismissToast, zf as initializeContext, ch as initializeGuiLibrary, vs as readFile, qu as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, oh as withChainableErrorBoundary, ah as withErrorBoundary };