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