@oliasoft-open-source/react-ui-library 9.5.1-beta-3 → 9.6.0-beta-1
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/global.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +260 -245
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -870,32 +870,40 @@ var Ca = {
|
|
|
870
870
|
let { sections: t } = e;
|
|
871
871
|
return !s(t) && (!Array.isArray(t) || t.every((e) => un(e)));
|
|
872
872
|
}, J = {
|
|
873
|
-
layer: "
|
|
874
|
-
nested: "
|
|
875
|
-
fileInput: "
|
|
876
|
-
trigger: "
|
|
877
|
-
heading: "
|
|
878
|
-
headingIcon: "
|
|
879
|
-
clickable: "
|
|
880
|
-
option: "
|
|
881
|
-
active: "
|
|
882
|
-
disabled: "
|
|
883
|
-
selected: "
|
|
884
|
-
optionContent: "
|
|
885
|
-
inline: "
|
|
886
|
-
icon: "
|
|
887
|
-
check: "
|
|
888
|
-
label: "
|
|
889
|
-
description: "
|
|
890
|
-
arrow: "
|
|
891
|
-
divider: "
|
|
892
|
-
buttonLabel: "
|
|
893
|
-
component: "
|
|
894
|
-
right: "
|
|
895
|
-
actions: "
|
|
896
|
-
menuPopover: "
|
|
897
|
-
|
|
898
|
-
|
|
873
|
+
layer: "_layer_1wspp_72",
|
|
874
|
+
nested: "_nested_1wspp_85",
|
|
875
|
+
fileInput: "_fileInput_1wspp_88",
|
|
876
|
+
trigger: "_trigger_1wspp_94",
|
|
877
|
+
heading: "_heading_1wspp_103",
|
|
878
|
+
headingIcon: "_headingIcon_1wspp_109",
|
|
879
|
+
clickable: "_clickable_1wspp_116",
|
|
880
|
+
option: "_option_1wspp_120",
|
|
881
|
+
active: "_active_1wspp_139",
|
|
882
|
+
disabled: "_disabled_1wspp_144",
|
|
883
|
+
selected: "_selected_1wspp_147",
|
|
884
|
+
optionContent: "_optionContent_1wspp_154",
|
|
885
|
+
inline: "_inline_1wspp_158",
|
|
886
|
+
icon: "_icon_1wspp_163",
|
|
887
|
+
check: "_check_1wspp_164",
|
|
888
|
+
label: "_label_1wspp_190",
|
|
889
|
+
description: "_description_1wspp_202",
|
|
890
|
+
arrow: "_arrow_1wspp_206",
|
|
891
|
+
divider: "_divider_1wspp_210",
|
|
892
|
+
buttonLabel: "_buttonLabel_1wspp_218",
|
|
893
|
+
component: "_component_1wspp_225",
|
|
894
|
+
right: "_right_1wspp_231",
|
|
895
|
+
actions: "_actions_1wspp_236",
|
|
896
|
+
menuPopover: "_menuPopover_1wspp_243",
|
|
897
|
+
overlayEnterTop: "_overlayEnterTop_1wspp_1",
|
|
898
|
+
overlayEnterBottom: "_overlayEnterBottom_1wspp_1",
|
|
899
|
+
overlayEnterRight: "_overlayEnterRight_1wspp_1",
|
|
900
|
+
overlayEnterLeft: "_overlayEnterLeft_1wspp_1",
|
|
901
|
+
overlayExitTop: "_overlayExitTop_1wspp_1",
|
|
902
|
+
overlayExitBottom: "_overlayExitBottom_1wspp_1",
|
|
903
|
+
overlayExitRight: "_overlayExitRight_1wspp_1",
|
|
904
|
+
overlayExitLeft: "_overlayExitLeft_1wspp_1",
|
|
905
|
+
menuPopoverNested: "_menuPopoverNested_1wspp_271",
|
|
906
|
+
menuItem: "_menuItem_1wspp_274"
|
|
899
907
|
}, Ha = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ C("div", {
|
|
900
908
|
"data-testid": r,
|
|
901
909
|
children: [e, !!n && /* @__PURE__ */ S("span", {
|
|
@@ -1490,63 +1498,71 @@ var Ca = {
|
|
|
1490
1498
|
children: n
|
|
1491
1499
|
})]
|
|
1492
1500
|
}), So = {
|
|
1493
|
-
toggleBox: "
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1501
|
+
toggleBox: "_toggleBox_1i03y_72",
|
|
1502
|
+
overlayEnterTop: "_overlayEnterTop_1i03y_1",
|
|
1503
|
+
overlayEnterBottom: "_overlayEnterBottom_1i03y_1",
|
|
1504
|
+
overlayEnterRight: "_overlayEnterRight_1i03y_1",
|
|
1505
|
+
overlayEnterLeft: "_overlayEnterLeft_1i03y_1",
|
|
1506
|
+
overlayExitTop: "_overlayExitTop_1i03y_1",
|
|
1507
|
+
overlayExitBottom: "_overlayExitBottom_1i03y_1",
|
|
1508
|
+
overlayExitRight: "_overlayExitRight_1i03y_1",
|
|
1509
|
+
overlayExitLeft: "_overlayExitLeft_1i03y_1",
|
|
1510
|
+
arrowIcon: "_arrowIcon_1i03y_105",
|
|
1511
|
+
fullWidthStyleFix: "_fullWidthStyleFix_1i03y_133",
|
|
1512
|
+
dismiss: "_dismiss_1i03y_138"
|
|
1513
|
+
}, Co = ({ children: e, content: t, placement: i = "top-center", closeOnOutsideClick: a = !0, fullWidth: o = !1, showCloseButton: c = !1, showArrow: f = !0, testId: p, disabled: m = !1, isOpen: h, onToggle: g, toggleOnTriggerClick: y = !0, isNonModal: w = !1, restoreTriggerFocusOnClose: T = !0 }) => {
|
|
1514
|
+
let E = u(W), D = _(null), [O, k] = v(!1), A = m || E, j = h !== void 0, M = j ? h : O, N = l((e) => {
|
|
1515
|
+
A || (j ? g == null || g(e) : k(e));
|
|
1500
1516
|
}, [
|
|
1517
|
+
j,
|
|
1501
1518
|
A,
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
}, [M]);
|
|
1519
|
+
g
|
|
1520
|
+
]), P = l((e) => {
|
|
1521
|
+
!y && e || N(e);
|
|
1522
|
+
}, [N, y]), F = l(() => {
|
|
1523
|
+
N(!1);
|
|
1524
|
+
}, [N]);
|
|
1509
1525
|
if (d(() => {
|
|
1510
|
-
|
|
1526
|
+
A && M && F();
|
|
1511
1527
|
}, [
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1528
|
+
A,
|
|
1529
|
+
M,
|
|
1530
|
+
F
|
|
1515
1531
|
]), Ba({
|
|
1516
|
-
isOpen:
|
|
1517
|
-
enabled: a && !
|
|
1518
|
-
triggerRef:
|
|
1519
|
-
close:
|
|
1532
|
+
isOpen: M,
|
|
1533
|
+
enabled: a && !w,
|
|
1534
|
+
triggerRef: D,
|
|
1535
|
+
close: F
|
|
1520
1536
|
}), !Pa(e)) return null;
|
|
1521
|
-
let
|
|
1537
|
+
let I = s(t) && typeof t.type != "string" && t.type !== n ? r(t, { close: F }) : t, L = /* @__PURE__ */ S(Ia, {
|
|
1522
1538
|
behavior: Fa.PRESS,
|
|
1523
|
-
testId:
|
|
1524
|
-
isDisabled:
|
|
1525
|
-
triggerRef:
|
|
1539
|
+
testId: p,
|
|
1540
|
+
isDisabled: A,
|
|
1541
|
+
triggerRef: D,
|
|
1526
1542
|
safeComponents: [q],
|
|
1527
1543
|
children: e
|
|
1528
|
-
}),
|
|
1544
|
+
}), R = /* @__PURE__ */ C(Ra, {
|
|
1529
1545
|
className: b(So.toggleBox, o && So.fullWidthStyleFix),
|
|
1530
1546
|
placement: i,
|
|
1531
|
-
portalTriggerRef:
|
|
1532
|
-
offset: 6,
|
|
1533
|
-
isNonModal:
|
|
1534
|
-
disableFocusManagement: !
|
|
1535
|
-
isOpen:
|
|
1536
|
-
onOpenChange:
|
|
1537
|
-
triggerRef:
|
|
1547
|
+
portalTriggerRef: D,
|
|
1548
|
+
offset: f ? 6 : 0,
|
|
1549
|
+
isNonModal: w,
|
|
1550
|
+
disableFocusManagement: !T || void 0,
|
|
1551
|
+
isOpen: y ? void 0 : M,
|
|
1552
|
+
onOpenChange: y ? void 0 : N,
|
|
1553
|
+
triggerRef: y ? void 0 : D,
|
|
1538
1554
|
shouldCloseOnInteractOutside: a ? void 0 : () => !1,
|
|
1539
1555
|
isKeyboardDismissDisabled: !a,
|
|
1540
|
-
"data-testid":
|
|
1541
|
-
children: [/* @__PURE__ */ C("div", { children: [
|
|
1556
|
+
"data-testid": p ? `${p}-layer` : void 0,
|
|
1557
|
+
children: [/* @__PURE__ */ C("div", { children: [I, c && /* @__PURE__ */ S("div", {
|
|
1542
1558
|
className: So.dismiss,
|
|
1543
1559
|
children: /* @__PURE__ */ S(q, {
|
|
1544
1560
|
small: !0,
|
|
1545
1561
|
round: !0,
|
|
1546
|
-
onClick:
|
|
1562
|
+
onClick: F,
|
|
1547
1563
|
icon: U.CLOSE
|
|
1548
1564
|
})
|
|
1549
|
-
})] }), /* @__PURE__ */ S(Vn, { children: /* @__PURE__ */ S("svg", {
|
|
1565
|
+
})] }), f && /* @__PURE__ */ S(Vn, { children: /* @__PURE__ */ S("svg", {
|
|
1550
1566
|
width: "12",
|
|
1551
1567
|
height: "12",
|
|
1552
1568
|
viewBox: "0 0 12 12",
|
|
@@ -1555,11 +1571,11 @@ var Ca = {
|
|
|
1555
1571
|
children: /* @__PURE__ */ S("path", { d: "M0 0 L6 6 L12 0" })
|
|
1556
1572
|
}) })]
|
|
1557
1573
|
});
|
|
1558
|
-
return
|
|
1559
|
-
isOpen:
|
|
1560
|
-
onOpenChange:
|
|
1561
|
-
children: [
|
|
1562
|
-
}) : /* @__PURE__ */ C(x, { children: [
|
|
1574
|
+
return y ? /* @__PURE__ */ C(zn, {
|
|
1575
|
+
isOpen: M,
|
|
1576
|
+
onOpenChange: P,
|
|
1577
|
+
children: [L, R]
|
|
1578
|
+
}) : /* @__PURE__ */ C(x, { children: [L, R] });
|
|
1563
1579
|
}, wo = { grid: "_grid_obkz4_1" }, To = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Eo = (e) => typeof e == "number" ? `${e}px` : e || "initial", Do = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
|
|
1564
1580
|
let s = {
|
|
1565
1581
|
"--grid-gap": To(i),
|
|
@@ -8407,12 +8423,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8407
8423
|
compareMethod: Ci.WORDS
|
|
8408
8424
|
})
|
|
8409
8425
|
}) });
|
|
8410
|
-
}, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = (e) =>
|
|
8426
|
+
}, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = (e) => {
|
|
8411
8427
|
var t;
|
|
8412
8428
|
if (e.id != null) return String(e.id);
|
|
8413
|
-
let n =
|
|
8429
|
+
let n = (t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value;
|
|
8414
8430
|
return n == null ? "" : String(n);
|
|
8415
|
-
},
|
|
8431
|
+
}, Kp = (e, t) => ({
|
|
8416
8432
|
...e,
|
|
8417
8433
|
cells: e.cells.map((e) => ({
|
|
8418
8434
|
...e,
|
|
@@ -8421,7 +8437,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8421
8437
|
...t
|
|
8422
8438
|
}
|
|
8423
8439
|
}))
|
|
8424
|
-
}),
|
|
8440
|
+
}), qp = (e, t) => ({
|
|
8425
8441
|
...e,
|
|
8426
8442
|
cells: e.cells.map((e, n) => {
|
|
8427
8443
|
var r;
|
|
@@ -8435,12 +8451,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8435
8451
|
tooltip: a
|
|
8436
8452
|
};
|
|
8437
8453
|
})
|
|
8438
|
-
}),
|
|
8454
|
+
}), Jp = (e = [], t = []) => {
|
|
8439
8455
|
let n = /* @__PURE__ */ new Map();
|
|
8440
|
-
for (let e of t) n.set(
|
|
8441
|
-
let r = new Set(e.map(
|
|
8456
|
+
for (let e of t) n.set(Gp(e), e);
|
|
8457
|
+
let r = new Set(e.map(Gp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8442
8458
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8443
|
-
let n = t[e], c =
|
|
8459
|
+
let n = t[e], c = Gp(n);
|
|
8444
8460
|
if (r.has(c)) {
|
|
8445
8461
|
o = c;
|
|
8446
8462
|
continue;
|
|
@@ -8455,7 +8471,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8455
8471
|
a.reverse();
|
|
8456
8472
|
let c = [];
|
|
8457
8473
|
for (let t of e) {
|
|
8458
|
-
let e =
|
|
8474
|
+
let e = Gp(t), r = i.get(e);
|
|
8459
8475
|
if (r) for (let e of r) c.push({
|
|
8460
8476
|
status: "deleted",
|
|
8461
8477
|
row: e
|
|
@@ -8475,11 +8491,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8475
8491
|
row: e
|
|
8476
8492
|
});
|
|
8477
8493
|
return c;
|
|
8478
|
-
},
|
|
8479
|
-
let i = h(() =>
|
|
8480
|
-
|
|
8481
|
-
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8482
|
-
let r = i[t], a = r ? Xp(r) : e;
|
|
8494
|
+
}, Yp = (e) => e.status === "deleted" ? Kp(e.row, Hp) : e.status === "added" ? Kp(e.row, Up) : qp(e.row, e.compareRow), Xp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8495
|
+
let i = h(() => Jp(e.rows, t), [e.rows, t]), a = l(({ row: e, rowIndex: t }) => {
|
|
8496
|
+
let r = i[t], a = r ? Yp(r) : e;
|
|
8483
8497
|
return n ? n({
|
|
8484
8498
|
row: a,
|
|
8485
8499
|
rowIndex: t
|
|
@@ -8487,18 +8501,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8487
8501
|
}, [i, n]);
|
|
8488
8502
|
return /* @__PURE__ */ S(nu, {
|
|
8489
8503
|
...r,
|
|
8490
|
-
beforeRenderRow:
|
|
8504
|
+
beforeRenderRow: a,
|
|
8491
8505
|
table: {
|
|
8492
8506
|
...e,
|
|
8493
|
-
rows:
|
|
8494
|
-
rowCount:
|
|
8495
|
-
striped: !1
|
|
8507
|
+
rows: void 0,
|
|
8508
|
+
rowCount: i.length,
|
|
8509
|
+
striped: !1,
|
|
8510
|
+
infiniteScroll: !0
|
|
8496
8511
|
}
|
|
8497
8512
|
});
|
|
8498
8513
|
};
|
|
8499
8514
|
//#endregion
|
|
8500
8515
|
//#region src/helpers/date.ts
|
|
8501
|
-
function
|
|
8516
|
+
function Zp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8502
8517
|
return e ? new Date(e).toLocaleString(a, {
|
|
8503
8518
|
year: "numeric",
|
|
8504
8519
|
month: "short",
|
|
@@ -8512,28 +8527,28 @@ function Qp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8512
8527
|
}
|
|
8513
8528
|
//#endregion
|
|
8514
8529
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8515
|
-
function
|
|
8530
|
+
function Qp(e) {
|
|
8516
8531
|
var t;
|
|
8517
8532
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8518
8533
|
if (!n) throw Error("Invalid RegExp");
|
|
8519
8534
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8520
8535
|
}
|
|
8521
|
-
function
|
|
8536
|
+
function $p(e) {
|
|
8522
8537
|
if (typeof e != "object") return e;
|
|
8523
8538
|
if (e === null) return null;
|
|
8524
|
-
if (Array.isArray(e)) return e.map(
|
|
8539
|
+
if (Array.isArray(e)) return e.map($p);
|
|
8525
8540
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8526
|
-
if (e instanceof RegExp) return
|
|
8541
|
+
if (e instanceof RegExp) return Qp(e);
|
|
8527
8542
|
let t = {};
|
|
8528
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8543
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = $p(e[n]));
|
|
8529
8544
|
return t;
|
|
8530
8545
|
}
|
|
8531
8546
|
//#endregion
|
|
8532
8547
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8533
|
-
function
|
|
8548
|
+
function em(e, t) {
|
|
8534
8549
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8535
8550
|
}
|
|
8536
|
-
var
|
|
8551
|
+
var tm = (e) => e[e.length - 1], nm = class {
|
|
8537
8552
|
setResult(e) {
|
|
8538
8553
|
return this.result = e, this.hasResult = !0, this;
|
|
8539
8554
|
}
|
|
@@ -8541,16 +8556,16 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8541
8556
|
return this.exiting = !0, this;
|
|
8542
8557
|
}
|
|
8543
8558
|
push(e, t) {
|
|
8544
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8559
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (em(this.children), tm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8545
8560
|
}
|
|
8546
|
-
},
|
|
8561
|
+
}, rm = class extends nm {
|
|
8547
8562
|
constructor(e, t) {
|
|
8548
8563
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8549
8564
|
}
|
|
8550
8565
|
prepareDeltaResult(e) {
|
|
8551
8566
|
var t, n, r, i;
|
|
8552
8567
|
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)) {
|
|
8553
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8568
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : $p;
|
|
8554
8569
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8555
8570
|
}
|
|
8556
8571
|
return e;
|
|
@@ -8558,15 +8573,15 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8558
8573
|
setResult(e) {
|
|
8559
8574
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8560
8575
|
}
|
|
8561
|
-
},
|
|
8576
|
+
}, im = class extends nm {
|
|
8562
8577
|
constructor(e, t) {
|
|
8563
8578
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8564
8579
|
}
|
|
8565
|
-
},
|
|
8580
|
+
}, am = class extends nm {
|
|
8566
8581
|
constructor(e) {
|
|
8567
8582
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8568
8583
|
}
|
|
8569
|
-
},
|
|
8584
|
+
}, om = class {
|
|
8570
8585
|
constructor(e) {
|
|
8571
8586
|
this.name = e, this.filters = [];
|
|
8572
8587
|
}
|
|
@@ -8630,7 +8645,7 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8630
8645
|
}
|
|
8631
8646
|
}), this);
|
|
8632
8647
|
}
|
|
8633
|
-
},
|
|
8648
|
+
}, sm = class {
|
|
8634
8649
|
constructor(e) {
|
|
8635
8650
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8636
8651
|
}
|
|
@@ -8657,7 +8672,7 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8657
8672
|
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);
|
|
8658
8673
|
return n.hasResult ? n.result : void 0;
|
|
8659
8674
|
}
|
|
8660
|
-
},
|
|
8675
|
+
}, cm = (e, t, n, r) => e[n] === t[r], lm = (e, t, n, r) => {
|
|
8661
8676
|
var i, a, o;
|
|
8662
8677
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8663
8678
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8673,7 +8688,7 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8673
8688
|
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);
|
|
8674
8689
|
}
|
|
8675
8690
|
return d;
|
|
8676
|
-
},
|
|
8691
|
+
}, um = (e, t, n, r) => {
|
|
8677
8692
|
let i = t.length, a = n.length, o = {
|
|
8678
8693
|
sequence: [],
|
|
8679
8694
|
indices1: [],
|
|
@@ -8695,11 +8710,11 @@ var nm = (e) => e[e.length - 1], rm = class {
|
|
|
8695
8710
|
}
|
|
8696
8711
|
}
|
|
8697
8712
|
return o;
|
|
8698
|
-
},
|
|
8713
|
+
}, dm = { get: (e, t, n, r) => {
|
|
8699
8714
|
let i = r || {};
|
|
8700
|
-
return
|
|
8701
|
-
} },
|
|
8702
|
-
function
|
|
8715
|
+
return um(lm(e, t, n || cm, i), e, t, i);
|
|
8716
|
+
} }, fm = 3;
|
|
8717
|
+
function pm(e, t, n, r) {
|
|
8703
8718
|
for (let i = 0; i < n; i++) {
|
|
8704
8719
|
let n = e[i];
|
|
8705
8720
|
for (let e = 0; e < r; e++) {
|
|
@@ -8709,7 +8724,7 @@ function mm(e, t, n, r) {
|
|
|
8709
8724
|
}
|
|
8710
8725
|
return !1;
|
|
8711
8726
|
}
|
|
8712
|
-
function
|
|
8727
|
+
function mm(e, t, n, r, i) {
|
|
8713
8728
|
let a = e[n], o = t[r];
|
|
8714
8729
|
if (a === o) return !0;
|
|
8715
8730
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8722,15 +8737,15 @@ function hm(e, t, n, r, i) {
|
|
|
8722
8737
|
let l = i.hashCache2[r];
|
|
8723
8738
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8724
8739
|
}
|
|
8725
|
-
var
|
|
8740
|
+
var hm = function(e) {
|
|
8726
8741
|
var t, n, r, i, a;
|
|
8727
8742
|
if (!e.leftIsArray) return;
|
|
8728
8743
|
let o = {
|
|
8729
8744
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8730
8745
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8731
8746
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8732
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8733
|
-
for (; c + s < m && c + s < h &&
|
|
8747
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !pm(f, p, m, h)); s < m && s < h && mm(f, p, s, s, o);) l = s, g = new rm(f[l], p[l]), e.push(g, l), s++;
|
|
8748
|
+
for (; c + s < m && c + s < h && mm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new rm(f[u], p[d]), e.push(g, d), c++;
|
|
8734
8749
|
let _;
|
|
8735
8750
|
if (s + c === m) {
|
|
8736
8751
|
if (m === h) {
|
|
@@ -8754,7 +8769,7 @@ var gm = function(e) {
|
|
|
8754
8769
|
return;
|
|
8755
8770
|
}
|
|
8756
8771
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8757
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8772
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = dm.get(v, y, mm, o), x = [];
|
|
8758
8773
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8759
8774
|
let t = `_${l}`;
|
|
8760
8775
|
_[t] = [
|
|
@@ -8775,8 +8790,8 @@ var gm = function(e) {
|
|
|
8775
8790
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8776
8791
|
u = x[n];
|
|
8777
8792
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8778
|
-
if (u !== void 0 && r &&
|
|
8779
|
-
r.splice(1, 2, l,
|
|
8793
|
+
if (u !== void 0 && r && mm(v, y, u - s, l - s, o)) {
|
|
8794
|
+
r.splice(1, 2, l, fm), r.splice(1, 2, l, fm), C || (r[0] = ""), d = l, g = new rm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8780
8795
|
break;
|
|
8781
8796
|
}
|
|
8782
8797
|
}
|
|
@@ -8784,20 +8799,20 @@ var gm = function(e) {
|
|
|
8784
8799
|
} else {
|
|
8785
8800
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8786
8801
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8787
|
-
d = b.indices2[t] + s, g = new
|
|
8802
|
+
d = b.indices2[t] + s, g = new rm(f[u], p[d]), e.push(g, d);
|
|
8788
8803
|
}
|
|
8789
8804
|
}
|
|
8790
8805
|
e.setResult(_).exit();
|
|
8791
8806
|
};
|
|
8792
|
-
|
|
8793
|
-
var
|
|
8807
|
+
hm.filterName = "arrays";
|
|
8808
|
+
var gm = {
|
|
8794
8809
|
numerically(e, t) {
|
|
8795
8810
|
return e - t;
|
|
8796
8811
|
},
|
|
8797
8812
|
numericallyBy(e) {
|
|
8798
8813
|
return (t, n) => t[e] - n[e];
|
|
8799
8814
|
}
|
|
8800
|
-
},
|
|
8815
|
+
}, _m = function(e) {
|
|
8801
8816
|
var t;
|
|
8802
8817
|
if (!e.nested) return;
|
|
8803
8818
|
let n = e.delta;
|
|
@@ -8806,7 +8821,7 @@ var _m = {
|
|
|
8806
8821
|
for (r in a) if (r !== "_t") {
|
|
8807
8822
|
if (r[0] === "_") {
|
|
8808
8823
|
let e = r;
|
|
8809
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8824
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === fm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8810
8825
|
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]}`);
|
|
8811
8826
|
} else {
|
|
8812
8827
|
let e = r;
|
|
@@ -8819,15 +8834,15 @@ var _m = {
|
|
|
8819
8834
|
});
|
|
8820
8835
|
}
|
|
8821
8836
|
}
|
|
8822
|
-
for (s = s.sort(
|
|
8837
|
+
for (s = s.sort(gm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8823
8838
|
if (i = s[r], i === void 0) continue;
|
|
8824
8839
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8825
|
-
(e == null ? void 0 : e[2]) ===
|
|
8840
|
+
(e == null ? void 0 : e[2]) === fm && c.push({
|
|
8826
8841
|
index: e[1],
|
|
8827
8842
|
value: t
|
|
8828
8843
|
});
|
|
8829
8844
|
}
|
|
8830
|
-
c = c.sort(
|
|
8845
|
+
c = c.sort(gm.numericallyBy("index"));
|
|
8831
8846
|
let u = c.length;
|
|
8832
8847
|
for (r = 0; r < u; r++) {
|
|
8833
8848
|
let e = c[r];
|
|
@@ -8837,7 +8852,7 @@ var _m = {
|
|
|
8837
8852
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8838
8853
|
let t = l[r];
|
|
8839
8854
|
if (t === void 0) continue;
|
|
8840
|
-
let n = new
|
|
8855
|
+
let n = new im(o[t.index], t.delta);
|
|
8841
8856
|
e.push(n, t.index);
|
|
8842
8857
|
}
|
|
8843
8858
|
if (!e.children) {
|
|
@@ -8846,8 +8861,8 @@ var _m = {
|
|
|
8846
8861
|
}
|
|
8847
8862
|
e.exit();
|
|
8848
8863
|
};
|
|
8849
|
-
|
|
8850
|
-
var
|
|
8864
|
+
_m.filterName = "arrays";
|
|
8865
|
+
var vm = function(e) {
|
|
8851
8866
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8852
8867
|
let t = e.left, n = e.children.length;
|
|
8853
8868
|
for (let r = 0; r < n; r++) {
|
|
@@ -8858,16 +8873,16 @@ var ym = function(e) {
|
|
|
8858
8873
|
}
|
|
8859
8874
|
e.setResult(t).exit();
|
|
8860
8875
|
};
|
|
8861
|
-
|
|
8862
|
-
var
|
|
8876
|
+
vm.filterName = "arraysCollectChildren";
|
|
8877
|
+
var ym = function(e) {
|
|
8863
8878
|
if (!e.nested) {
|
|
8864
8879
|
let t = e.delta;
|
|
8865
|
-
if (t[2] ===
|
|
8880
|
+
if (t[2] === fm) {
|
|
8866
8881
|
let n = t;
|
|
8867
8882
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8868
8883
|
n[0],
|
|
8869
8884
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8870
|
-
|
|
8885
|
+
fm
|
|
8871
8886
|
]).exit();
|
|
8872
8887
|
}
|
|
8873
8888
|
return;
|
|
@@ -8877,20 +8892,20 @@ var bm = function(e) {
|
|
|
8877
8892
|
let n = t;
|
|
8878
8893
|
for (let t in n) {
|
|
8879
8894
|
if (t === "_t") continue;
|
|
8880
|
-
let r = new
|
|
8895
|
+
let r = new am(n[t]);
|
|
8881
8896
|
e.push(r, t);
|
|
8882
8897
|
}
|
|
8883
8898
|
e.exit();
|
|
8884
8899
|
};
|
|
8885
|
-
|
|
8886
|
-
var
|
|
8900
|
+
ym.filterName = "arrays";
|
|
8901
|
+
var bm = (e, t, n) => {
|
|
8887
8902
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8888
8903
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8889
8904
|
let r = +t;
|
|
8890
8905
|
for (let n in e) {
|
|
8891
8906
|
let i = e[n];
|
|
8892
8907
|
if (Array.isArray(i)) {
|
|
8893
|
-
if (i[2] ===
|
|
8908
|
+
if (i[2] === fm) {
|
|
8894
8909
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8895
8910
|
if (a === +t) return e;
|
|
8896
8911
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8898,7 +8913,7 @@ var xm = (e, t, n) => {
|
|
|
8898
8913
|
}
|
|
8899
8914
|
}
|
|
8900
8915
|
return r;
|
|
8901
|
-
},
|
|
8916
|
+
}, xm = (e) => {
|
|
8902
8917
|
if (!e || !e.children) return;
|
|
8903
8918
|
let t = e.delta;
|
|
8904
8919
|
if (t._t !== "a") return;
|
|
@@ -8909,22 +8924,22 @@ var xm = (e, t, n) => {
|
|
|
8909
8924
|
let a = r.newName;
|
|
8910
8925
|
if (a === void 0) {
|
|
8911
8926
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8912
|
-
a =
|
|
8927
|
+
a = bm(n, r.childName, r.result);
|
|
8913
8928
|
}
|
|
8914
8929
|
i[a] !== r.result && (i[a] = r.result);
|
|
8915
8930
|
}
|
|
8916
8931
|
e.setResult(i).exit();
|
|
8917
8932
|
};
|
|
8918
|
-
|
|
8933
|
+
xm.filterName = "arraysCollectChildren";
|
|
8919
8934
|
//#endregion
|
|
8920
8935
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8921
|
-
var
|
|
8936
|
+
var Sm = function(e) {
|
|
8922
8937
|
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();
|
|
8923
8938
|
};
|
|
8924
|
-
|
|
8939
|
+
Sm.filterName = "dates";
|
|
8925
8940
|
//#endregion
|
|
8926
8941
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8927
|
-
var
|
|
8942
|
+
var Cm = /* @__PURE__ */ new Set(["__proto__"]), wm = (e) => {
|
|
8928
8943
|
if (!e || !e.children) return;
|
|
8929
8944
|
let t = e.children.length, n = e.result;
|
|
8930
8945
|
for (let r = 0; r < t; r++) {
|
|
@@ -8936,18 +8951,18 @@ var wm = /* @__PURE__ */ new Set(["__proto__"]), Tm = (e) => {
|
|
|
8936
8951
|
}
|
|
8937
8952
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8938
8953
|
};
|
|
8939
|
-
|
|
8940
|
-
var
|
|
8954
|
+
wm.filterName = "collectChildren";
|
|
8955
|
+
var Tm = (e) => {
|
|
8941
8956
|
var t;
|
|
8942
8957
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8943
8958
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8944
8959
|
for (let t in n) {
|
|
8945
8960
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8946
|
-
let a = new
|
|
8961
|
+
let a = new rm(n[t], r[t]);
|
|
8947
8962
|
e.push(a, t);
|
|
8948
8963
|
}
|
|
8949
8964
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8950
|
-
let n = new
|
|
8965
|
+
let n = new rm(void 0, r[t]);
|
|
8951
8966
|
e.push(n, t);
|
|
8952
8967
|
}
|
|
8953
8968
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8956,15 +8971,15 @@ var Em = (e) => {
|
|
|
8956
8971
|
}
|
|
8957
8972
|
e.exit();
|
|
8958
8973
|
};
|
|
8959
|
-
|
|
8960
|
-
var
|
|
8974
|
+
Tm.filterName = "objects";
|
|
8975
|
+
var Em = function(e) {
|
|
8961
8976
|
if (!e.nested) return;
|
|
8962
8977
|
let t = e.delta;
|
|
8963
8978
|
if (t._t) return;
|
|
8964
8979
|
let n = t, r = !1;
|
|
8965
8980
|
for (let t in n) {
|
|
8966
|
-
if (
|
|
8967
|
-
let i = e.left, a = new
|
|
8981
|
+
if (Cm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8982
|
+
let i = e.left, a = new im(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8968
8983
|
e.push(a, t), r = !0;
|
|
8969
8984
|
}
|
|
8970
8985
|
if (!r) {
|
|
@@ -8973,8 +8988,8 @@ var Dm = function(e) {
|
|
|
8973
8988
|
}
|
|
8974
8989
|
e.exit();
|
|
8975
8990
|
};
|
|
8976
|
-
|
|
8977
|
-
var
|
|
8991
|
+
Em.filterName = "objects";
|
|
8992
|
+
var Dm = function(e) {
|
|
8978
8993
|
if (!e || !e.children || e.delta._t) return;
|
|
8979
8994
|
if (e.left === null || typeof e.left != "object") {
|
|
8980
8995
|
e.setResult(e.left).exit();
|
|
@@ -8985,17 +9000,17 @@ var Om = function(e) {
|
|
|
8985
9000
|
let n = e.children[r];
|
|
8986
9001
|
if (n === void 0) continue;
|
|
8987
9002
|
let i = n.childName;
|
|
8988
|
-
|
|
9003
|
+
Cm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8989
9004
|
}
|
|
8990
9005
|
e.setResult(t).exit();
|
|
8991
9006
|
};
|
|
8992
|
-
|
|
8993
|
-
var
|
|
9007
|
+
Dm.filterName = "collectChildren";
|
|
9008
|
+
var Om = function(e) {
|
|
8994
9009
|
if (!e.nested || e.delta._t) return;
|
|
8995
9010
|
let t = e.delta, n = !1;
|
|
8996
9011
|
for (let r in t) {
|
|
8997
|
-
if (
|
|
8998
|
-
let i = new
|
|
9012
|
+
if (Cm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
9013
|
+
let i = new am(t[r]);
|
|
8999
9014
|
e.push(i, r), n = !0;
|
|
9000
9015
|
}
|
|
9001
9016
|
if (!n) {
|
|
@@ -9004,25 +9019,25 @@ var km = function(e) {
|
|
|
9004
9019
|
}
|
|
9005
9020
|
e.exit();
|
|
9006
9021
|
};
|
|
9007
|
-
|
|
9008
|
-
var
|
|
9022
|
+
Om.filterName = "objects";
|
|
9023
|
+
var km = (e) => {
|
|
9009
9024
|
if (!e || !e.children || e.delta._t) return;
|
|
9010
9025
|
let t = e.children.length, n = {};
|
|
9011
9026
|
for (let r = 0; r < t; r++) {
|
|
9012
9027
|
let t = e.children[r];
|
|
9013
9028
|
if (t === void 0) continue;
|
|
9014
9029
|
let i = t.childName;
|
|
9015
|
-
|
|
9030
|
+
Cm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
9016
9031
|
}
|
|
9017
9032
|
e.setResult(n).exit();
|
|
9018
9033
|
};
|
|
9019
|
-
|
|
9034
|
+
km.filterName = "collectChildren";
|
|
9020
9035
|
//#endregion
|
|
9021
9036
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
9022
|
-
var
|
|
9023
|
-
function
|
|
9037
|
+
var Am = 2, jm = 60, Mm = null;
|
|
9038
|
+
function Nm(e, t) {
|
|
9024
9039
|
var n;
|
|
9025
|
-
if (!
|
|
9040
|
+
if (!Mm) {
|
|
9026
9041
|
let r;
|
|
9027
9042
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
9028
9043
|
else {
|
|
@@ -9030,7 +9045,7 @@ function Pm(e, t) {
|
|
|
9030
9045
|
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.");
|
|
9031
9046
|
throw e.diff_match_patch_not_found = !0, e;
|
|
9032
9047
|
}
|
|
9033
|
-
|
|
9048
|
+
Mm = {
|
|
9034
9049
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
9035
9050
|
patch: (e, t) => {
|
|
9036
9051
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -9042,17 +9057,17 @@ function Pm(e, t) {
|
|
|
9042
9057
|
}
|
|
9043
9058
|
};
|
|
9044
9059
|
}
|
|
9045
|
-
return
|
|
9060
|
+
return Mm;
|
|
9046
9061
|
}
|
|
9047
|
-
var
|
|
9062
|
+
var Pm = function(e) {
|
|
9048
9063
|
var t, n;
|
|
9049
9064
|
if (e.leftType !== "string") return;
|
|
9050
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
9065
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || jm;
|
|
9051
9066
|
if (r.length < a || i.length < a) {
|
|
9052
9067
|
e.setResult([r, i]).exit();
|
|
9053
9068
|
return;
|
|
9054
9069
|
}
|
|
9055
|
-
let o =
|
|
9070
|
+
let o = Nm(e.options);
|
|
9056
9071
|
if (!o) {
|
|
9057
9072
|
e.setResult([r, i]).exit();
|
|
9058
9073
|
return;
|
|
@@ -9061,19 +9076,19 @@ var Fm = function(e) {
|
|
|
9061
9076
|
e.setResult([
|
|
9062
9077
|
s(r, i),
|
|
9063
9078
|
0,
|
|
9064
|
-
|
|
9079
|
+
Am
|
|
9065
9080
|
]).exit();
|
|
9066
9081
|
};
|
|
9067
|
-
|
|
9068
|
-
var
|
|
9082
|
+
Pm.filterName = "texts";
|
|
9083
|
+
var Fm = function(e) {
|
|
9069
9084
|
if (e.nested) return;
|
|
9070
9085
|
let t = e.delta;
|
|
9071
|
-
if (t[2] !==
|
|
9072
|
-
let n = t, r =
|
|
9086
|
+
if (t[2] !== Am) return;
|
|
9087
|
+
let n = t, r = Nm(e.options, !0).patch;
|
|
9073
9088
|
e.setResult(r(e.left, n[0])).exit();
|
|
9074
9089
|
};
|
|
9075
|
-
|
|
9076
|
-
var
|
|
9090
|
+
Fm.filterName = "texts";
|
|
9091
|
+
var Im = (e) => {
|
|
9077
9092
|
var t, n, r;
|
|
9078
9093
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9079
9094
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9094,21 +9109,21 @@ var Lm = (e) => {
|
|
|
9094
9109
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9095
9110
|
}
|
|
9096
9111
|
return a.join("\n");
|
|
9097
|
-
},
|
|
9112
|
+
}, Lm = function(e) {
|
|
9098
9113
|
if (e.nested) return;
|
|
9099
9114
|
let t = e.delta;
|
|
9100
|
-
if (t[2] !==
|
|
9115
|
+
if (t[2] !== Am) return;
|
|
9101
9116
|
let n = t;
|
|
9102
9117
|
e.setResult([
|
|
9103
|
-
|
|
9118
|
+
Im(n[0]),
|
|
9104
9119
|
0,
|
|
9105
|
-
|
|
9120
|
+
Am
|
|
9106
9121
|
]).exit();
|
|
9107
9122
|
};
|
|
9108
|
-
|
|
9123
|
+
Lm.filterName = "texts";
|
|
9109
9124
|
//#endregion
|
|
9110
9125
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9111
|
-
var
|
|
9126
|
+
var Rm = function(e) {
|
|
9112
9127
|
if (e.left === e.right) {
|
|
9113
9128
|
e.setResult(void 0).exit();
|
|
9114
9129
|
return;
|
|
@@ -9141,8 +9156,8 @@ var zm = function(e) {
|
|
|
9141
9156
|
}
|
|
9142
9157
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9143
9158
|
};
|
|
9144
|
-
|
|
9145
|
-
var
|
|
9159
|
+
Rm.filterName = "trivial";
|
|
9160
|
+
var zm = function(e) {
|
|
9146
9161
|
if (e.delta === void 0) {
|
|
9147
9162
|
e.setResult(e.left).exit();
|
|
9148
9163
|
return;
|
|
@@ -9166,8 +9181,8 @@ var Bm = function(e) {
|
|
|
9166
9181
|
}
|
|
9167
9182
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9168
9183
|
};
|
|
9169
|
-
|
|
9170
|
-
var
|
|
9184
|
+
zm.filterName = "trivial";
|
|
9185
|
+
var Bm = function(e) {
|
|
9171
9186
|
if (e.delta === void 0) {
|
|
9172
9187
|
e.setResult(e.delta).exit();
|
|
9173
9188
|
return;
|
|
@@ -9188,36 +9203,36 @@ var Vm = function(e) {
|
|
|
9188
9203
|
}
|
|
9189
9204
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9190
9205
|
};
|
|
9191
|
-
|
|
9206
|
+
Bm.filterName = "trivial";
|
|
9192
9207
|
//#endregion
|
|
9193
9208
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9194
|
-
var
|
|
9209
|
+
var Vm = class {
|
|
9195
9210
|
constructor(e) {
|
|
9196
|
-
this.processor = new
|
|
9211
|
+
this.processor = new sm(e), this.processor.pipe(new om("diff").append(wm, Rm, Sm, Pm, Tm, hm).shouldHaveResult()), this.processor.pipe(new om("patch").append(Dm, vm, zm, Fm, Em, _m).shouldHaveResult()), this.processor.pipe(new om("reverse").append(km, xm, Bm, Lm, Om, ym).shouldHaveResult());
|
|
9197
9212
|
}
|
|
9198
9213
|
options(e) {
|
|
9199
9214
|
return this.processor.options(e);
|
|
9200
9215
|
}
|
|
9201
9216
|
diff(e, t) {
|
|
9202
|
-
return this.processor.process(new
|
|
9217
|
+
return this.processor.process(new rm(e, t));
|
|
9203
9218
|
}
|
|
9204
9219
|
patch(e, t) {
|
|
9205
|
-
return this.processor.process(new
|
|
9220
|
+
return this.processor.process(new im(e, t));
|
|
9206
9221
|
}
|
|
9207
9222
|
reverse(e) {
|
|
9208
|
-
return this.processor.process(new
|
|
9223
|
+
return this.processor.process(new am(e));
|
|
9209
9224
|
}
|
|
9210
9225
|
unpatch(e, t) {
|
|
9211
9226
|
return this.patch(e, this.reverse(t));
|
|
9212
9227
|
}
|
|
9213
9228
|
clone(e) {
|
|
9214
|
-
return
|
|
9229
|
+
return $p(e);
|
|
9215
9230
|
}
|
|
9216
9231
|
};
|
|
9217
9232
|
//#endregion
|
|
9218
9233
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9219
|
-
function
|
|
9220
|
-
return new
|
|
9234
|
+
function Hm(e) {
|
|
9235
|
+
return new Vm(e);
|
|
9221
9236
|
}
|
|
9222
9237
|
//#endregion
|
|
9223
9238
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9779,46 +9794,46 @@ $.Diff = function(e, t) {
|
|
|
9779
9794
|
};
|
|
9780
9795
|
//#endregion
|
|
9781
9796
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9782
|
-
var
|
|
9797
|
+
var Um = (e = {}) => Hm({
|
|
9783
9798
|
...e,
|
|
9784
9799
|
textDiff: {
|
|
9785
9800
|
diffMatchPatch: $,
|
|
9786
9801
|
minLength: 120
|
|
9787
9802
|
},
|
|
9788
9803
|
cloneDiffValues: !0
|
|
9789
|
-
}),
|
|
9804
|
+
}), Wm = ["user", "unittemplate"], Gm = Um(), Km = (e, t, n) => {
|
|
9790
9805
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9791
9806
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9792
9807
|
let n = r[t[e]];
|
|
9793
9808
|
if (n) return n;
|
|
9794
9809
|
}
|
|
9795
9810
|
return n || "";
|
|
9796
|
-
},
|
|
9811
|
+
}, qm = (e) => {
|
|
9797
9812
|
let t = (e) => vr(e) ? Ar(e) : String(e);
|
|
9798
9813
|
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);
|
|
9799
|
-
},
|
|
9814
|
+
}, Jm = (e) => {
|
|
9800
9815
|
switch (e.length) {
|
|
9801
9816
|
case 1: {
|
|
9802
9817
|
let [t] = e;
|
|
9803
9818
|
return {
|
|
9804
9819
|
type: "created",
|
|
9805
9820
|
before: "",
|
|
9806
|
-
after:
|
|
9821
|
+
after: qm(t)
|
|
9807
9822
|
};
|
|
9808
9823
|
}
|
|
9809
9824
|
case 2: {
|
|
9810
9825
|
let [t, n] = e;
|
|
9811
9826
|
return {
|
|
9812
9827
|
type: "modified",
|
|
9813
|
-
before:
|
|
9814
|
-
after:
|
|
9828
|
+
before: qm(t),
|
|
9829
|
+
after: qm(n)
|
|
9815
9830
|
};
|
|
9816
9831
|
}
|
|
9817
9832
|
case 3: {
|
|
9818
9833
|
let [t] = e;
|
|
9819
9834
|
return {
|
|
9820
9835
|
type: "deleted",
|
|
9821
|
-
before:
|
|
9836
|
+
before: qm(t),
|
|
9822
9837
|
after: ""
|
|
9823
9838
|
};
|
|
9824
9839
|
}
|
|
@@ -9828,15 +9843,15 @@ var Wm = (e = {}) => Um({
|
|
|
9828
9843
|
after: ""
|
|
9829
9844
|
};
|
|
9830
9845
|
}
|
|
9831
|
-
},
|
|
9832
|
-
let r =
|
|
9846
|
+
}, Ym = (e) => Array.isArray(e), Xm = (e, t) => t ? Ym(t) ? t.length === 0 ? e : t.reduce((e, t) => Gm.unpatch(nn(e), nn(t)), nn(e)) : Gm.unpatch(nn(e), nn(t)) : e, Zm = (e) => e.createdAt || e.date, Qm = (e, t, n) => {
|
|
9847
|
+
let r = Zm(e);
|
|
9833
9848
|
if (!r) return {
|
|
9834
9849
|
oldJson: "",
|
|
9835
9850
|
newJson: "",
|
|
9836
9851
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9837
9852
|
};
|
|
9838
9853
|
let i = t.filter((e) => {
|
|
9839
|
-
let t =
|
|
9854
|
+
let t = Zm(e);
|
|
9840
9855
|
return !!(e.diffs && t && t >= r);
|
|
9841
9856
|
}), a = Array.from({ length: i.length + 1 });
|
|
9842
9857
|
a[0] = nn(n);
|
|
@@ -9849,7 +9864,7 @@ var Wm = (e = {}) => Um({
|
|
|
9849
9864
|
a[e + 1] = a[e];
|
|
9850
9865
|
continue;
|
|
9851
9866
|
}
|
|
9852
|
-
a[e + 1] =
|
|
9867
|
+
a[e + 1] = Xm(a[e], t);
|
|
9853
9868
|
}
|
|
9854
9869
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9855
9870
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9864,10 +9879,10 @@ var Wm = (e = {}) => Um({
|
|
|
9864
9879
|
oldJson: o,
|
|
9865
9880
|
newJson: s
|
|
9866
9881
|
};
|
|
9867
|
-
},
|
|
9882
|
+
}, $m = (e, t, n = {}, r = []) => {
|
|
9868
9883
|
var i;
|
|
9869
9884
|
if (!e) return;
|
|
9870
|
-
let a = [...
|
|
9885
|
+
let a = [...Wm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9871
9886
|
Object.keys(e).forEach((i) => {
|
|
9872
9887
|
var o;
|
|
9873
9888
|
let s = e[i];
|
|
@@ -9880,12 +9895,12 @@ var Wm = (e = {}) => Um({
|
|
|
9880
9895
|
cn(s) ? t.push({
|
|
9881
9896
|
deltaFormat: [...s],
|
|
9882
9897
|
path: c
|
|
9883
|
-
}) : gn(s) &&
|
|
9898
|
+
}) : gn(s) && $m(s, t, n, c);
|
|
9884
9899
|
});
|
|
9885
|
-
},
|
|
9900
|
+
}, eh = (e, t = {}) => {
|
|
9886
9901
|
let n = [];
|
|
9887
|
-
return e ? (
|
|
9888
|
-
},
|
|
9902
|
+
return e ? ($m(e, n, t), n) : [];
|
|
9903
|
+
}, th = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), nh = (e) => {
|
|
9889
9904
|
if (e == null || e === "") return "empty";
|
|
9890
9905
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9891
9906
|
if (typeof e == "string") return e;
|
|
@@ -9896,27 +9911,27 @@ var Wm = (e = {}) => Um({
|
|
|
9896
9911
|
} catch {
|
|
9897
9912
|
return String(e);
|
|
9898
9913
|
}
|
|
9899
|
-
},
|
|
9914
|
+
}, rh = (e, t = e.length - 1) => {
|
|
9900
9915
|
if (t >= e.length) return "Value";
|
|
9901
9916
|
let n = e[t];
|
|
9902
|
-
return !n || hr(n) ?
|
|
9903
|
-
},
|
|
9904
|
-
let o =
|
|
9917
|
+
return !n || hr(n) ? rh(e, t - 1) : th(n);
|
|
9918
|
+
}, ih = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9919
|
+
let o = nh(r), s = nh(i), c = a ? ` in ${a}` : "";
|
|
9905
9920
|
switch (t) {
|
|
9906
9921
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9907
9922
|
case "created": return `${e} created ${s}${c}.`;
|
|
9908
9923
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9909
9924
|
default: return `${e} changed ${n}${c}.`;
|
|
9910
9925
|
}
|
|
9911
|
-
},
|
|
9926
|
+
}, ah = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9912
9927
|
let i = {
|
|
9913
9928
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9914
9929
|
rows: n.map((n) => {
|
|
9915
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9916
|
-
return { cells: [{ value:
|
|
9930
|
+
let { deltaFormat: i, path: a } = n, o = Km(e, a, r), { type: s, before: c, after: l } = Jm(i);
|
|
9931
|
+
return { cells: [{ value: ih({
|
|
9917
9932
|
userName: t,
|
|
9918
9933
|
type: s,
|
|
9919
|
-
property:
|
|
9934
|
+
property: rh(a),
|
|
9920
9935
|
before: c,
|
|
9921
9936
|
after: l,
|
|
9922
9937
|
sectionName: o
|
|
@@ -9924,7 +9939,7 @@ var Wm = (e = {}) => Um({
|
|
|
9924
9939
|
})
|
|
9925
9940
|
};
|
|
9926
9941
|
return /* @__PURE__ */ S(nu, { table: i });
|
|
9927
|
-
},
|
|
9942
|
+
}, oh = Object.freeze({
|
|
9928
9943
|
summary: {
|
|
9929
9944
|
label: "Summary",
|
|
9930
9945
|
value: "summary"
|
|
@@ -9933,13 +9948,13 @@ var Wm = (e = {}) => Um({
|
|
|
9933
9948
|
label: "Compare",
|
|
9934
9949
|
value: "compare"
|
|
9935
9950
|
}
|
|
9936
|
-
}),
|
|
9937
|
-
let c = [
|
|
9951
|
+
}), sh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9952
|
+
let c = [oh.summary, oh.compare].map(({ label: e, value: t }) => ({
|
|
9938
9953
|
label: e,
|
|
9939
9954
|
value: t
|
|
9940
9955
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
9941
9956
|
if (!d) return null;
|
|
9942
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9957
|
+
let { oldJson: f, newJson: p, error: m } = Qm(e, t, n);
|
|
9943
9958
|
return /* @__PURE__ */ S(Es, {
|
|
9944
9959
|
visible: r,
|
|
9945
9960
|
centered: !0,
|
|
@@ -9952,10 +9967,10 @@ var Wm = (e = {}) => Um({
|
|
|
9952
9967
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9953
9968
|
options: c,
|
|
9954
9969
|
value: l
|
|
9955
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
9970
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(ah, {
|
|
9956
9971
|
userName: e.userName,
|
|
9957
9972
|
sectionNames: a,
|
|
9958
|
-
diffs:
|
|
9973
|
+
diffs: eh(d, i),
|
|
9959
9974
|
defaultSectionName: o
|
|
9960
9975
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
9961
9976
|
style: { padding: 16 },
|
|
@@ -9973,7 +9988,7 @@ var Wm = (e = {}) => Um({
|
|
|
9973
9988
|
height: "90vh"
|
|
9974
9989
|
} })
|
|
9975
9990
|
});
|
|
9976
|
-
},
|
|
9991
|
+
}, ch = [
|
|
9977
9992
|
{
|
|
9978
9993
|
label: "10 / page",
|
|
9979
9994
|
value: 10
|
|
@@ -9986,8 +10001,8 @@ var Wm = (e = {}) => Um({
|
|
|
9986
10001
|
label: "50 / page",
|
|
9987
10002
|
value: 50
|
|
9988
10003
|
}
|
|
9989
|
-
],
|
|
9990
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
10004
|
+
], lh = (e, t = {}) => {
|
|
10005
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = eh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9991
10006
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9992
10007
|
switch (a) {
|
|
9993
10008
|
case "Created": return `Created by ${r}`;
|
|
@@ -9997,7 +10012,7 @@ var Wm = (e = {}) => Um({
|
|
|
9997
10012
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9998
10013
|
default: return `Change by ${r}`;
|
|
9999
10014
|
}
|
|
10000
|
-
},
|
|
10015
|
+
}, uh = ({ 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 }) => {
|
|
10001
10016
|
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
10002
10017
|
if (e.snapshot) {
|
|
10003
10018
|
f == null || f(e.snapshot, e);
|
|
@@ -10016,7 +10031,7 @@ var Wm = (e = {}) => Um({
|
|
|
10016
10031
|
return {
|
|
10017
10032
|
cells: [
|
|
10018
10033
|
{
|
|
10019
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
10034
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : lh(e, l),
|
|
10020
10035
|
type: "Link",
|
|
10021
10036
|
disabled: n,
|
|
10022
10037
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -10035,8 +10050,8 @@ var Wm = (e = {}) => Um({
|
|
|
10035
10050
|
type: "Static"
|
|
10036
10051
|
},
|
|
10037
10052
|
{
|
|
10038
|
-
value:
|
|
10039
|
-
date:
|
|
10053
|
+
value: Zp({
|
|
10054
|
+
date: Zm(e),
|
|
10040
10055
|
showTime: !0
|
|
10041
10056
|
}),
|
|
10042
10057
|
type: "Static"
|
|
@@ -10079,14 +10094,14 @@ var Wm = (e = {}) => Um({
|
|
|
10079
10094
|
onChange: (e) => {
|
|
10080
10095
|
u(Number(e.target.value));
|
|
10081
10096
|
},
|
|
10082
|
-
options:
|
|
10097
|
+
options: ch,
|
|
10083
10098
|
value: a
|
|
10084
10099
|
},
|
|
10085
10100
|
onSelectPage: (e) => d(e),
|
|
10086
10101
|
small: !0
|
|
10087
10102
|
} }
|
|
10088
10103
|
} })
|
|
10089
|
-
}), g && y && y.diffs && /* @__PURE__ */ S(
|
|
10104
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(sh, {
|
|
10090
10105
|
sectionNames: o,
|
|
10091
10106
|
isOpen: g,
|
|
10092
10107
|
onClose: () => _(!1),
|
|
@@ -10096,7 +10111,7 @@ var Wm = (e = {}) => Um({
|
|
|
10096
10111
|
data: t,
|
|
10097
10112
|
transformDiffsConfig: l
|
|
10098
10113
|
})] });
|
|
10099
|
-
},
|
|
10114
|
+
}, dh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10100
10115
|
let i = window.location.href, a = _(i);
|
|
10101
10116
|
return d(() => {
|
|
10102
10117
|
a.current = i;
|
|
@@ -10119,20 +10134,20 @@ var Wm = (e = {}) => Um({
|
|
|
10119
10134
|
});
|
|
10120
10135
|
};
|
|
10121
10136
|
}, [e, t]), null;
|
|
10122
|
-
},
|
|
10137
|
+
}, fh = {
|
|
10123
10138
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10124
10139
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10125
10140
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10126
|
-
},
|
|
10141
|
+
}, ph = ({ options: e }) => {
|
|
10127
10142
|
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Ap();
|
|
10128
10143
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10129
10144
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10130
|
-
className: b(n ?
|
|
10145
|
+
className: b(n ? fh.sidebarErrorBoundary : "", r ? fh.rightSidebarErrorBoundary : ""),
|
|
10131
10146
|
style: a,
|
|
10132
10147
|
children: o == null ? void 0 : o.unexpectedError
|
|
10133
10148
|
});
|
|
10134
10149
|
let s = /* @__PURE__ */ S("div", {
|
|
10135
|
-
className:
|
|
10150
|
+
className: fh.errorBoundary,
|
|
10136
10151
|
style: a,
|
|
10137
10152
|
children: /* @__PURE__ */ S(Ks, { message: {
|
|
10138
10153
|
icon: !0,
|
|
@@ -10147,19 +10162,19 @@ var Wm = (e = {}) => Um({
|
|
|
10147
10162
|
padding: 0,
|
|
10148
10163
|
children: s
|
|
10149
10164
|
}) : s;
|
|
10150
|
-
},
|
|
10151
|
-
fallback: /* @__PURE__ */ S(
|
|
10165
|
+
}, mh = ({ children: e, options: t }) => /* @__PURE__ */ S(wi.ErrorBoundary, {
|
|
10166
|
+
fallback: /* @__PURE__ */ S(ph, { options: t }),
|
|
10152
10167
|
onError: (e, t) => {
|
|
10153
10168
|
console.error("Error caught by boundary:", e, t);
|
|
10154
10169
|
},
|
|
10155
10170
|
children: e
|
|
10156
|
-
}),
|
|
10171
|
+
}), hh = (e, t = {}) => (n) => /* @__PURE__ */ S(mh, {
|
|
10157
10172
|
options: t,
|
|
10158
10173
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10159
|
-
}),
|
|
10174
|
+
}), gh = (e = {}) => (t) => hh(t, e), _h = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, vh = (e) => {
|
|
10160
10175
|
jp(Ep.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10161
|
-
e === Ep.Translations ? jp(e, Op(t)) : jp(e,
|
|
10176
|
+
e === Ep.Translations ? jp(e, Op(t)) : jp(e, _h(t) ? t : { ...t });
|
|
10162
10177
|
});
|
|
10163
10178
|
};
|
|
10164
10179
|
//#endregion
|
|
10165
|
-
export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align,
|
|
10180
|
+
export { Yi as Accordion, _a as AccordionWithDefaultToggle, po as Actions, Di as Align, uh as AuditLog, ro as Badge, _o as Breadcrumb, ho as BreadcrumbLinkType, q as Button, yo as ButtonGroup, Oi as ButtonPosition, xa as ButtonType, xo as Card, pa as CheckBox, Ui as Chevron, Ki as Collapse, Ei as Color, Ho as ColorInput, Vo as ColorInputPopover, qo as Column, is as Dialog, Xp as DiffTable, Vp as DiffViewer, W as DisabledContext, Qo as Divider, ds as Drawer, rp as ElementType, pu as Empty, mh as ErrorBoundary, yd as Field, hd as FileButton, xs as FileInput, bd as Flex, Sd as FormRow, Do as Grid, H as GroupOrder, ts as Heading, fa as HelpIcon, G as Icon, U as IconType, gs as Input, ms as InputGroup, cl as InputGroupAddon, vs as InputReaderMethods, ji as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, uo as Menu, qa as MenuCarat, Ka as MenuType, Ks as Message, Bs as MessageType, Es as Modal, Qs as NativeSelect, xl as NumberInput, Wd as OptionDropdown, Kd as Page, ll as Pagination, lp as PopConfirm, Co as Popover, qd as Portal, Yd as PrintHeader, ks as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, nl as Select, Lp as SettingField, xf as SideBar, Cf as Skeleton, jl as Slider, Ps as SmartUploadModal, Ss as Spacer, ba as Spinner, nu as Table, md as TableImportExport, Xf as Tabs, Xo as Text, $f as TextArea, Zf as TextLink, ki as TextTransform, Ai as Theme, ri as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, pp as Tree, Tp as TreeTable, Ti as TriggerType, Uf as UnitInput, qf as UnitSlider, Fp as UnitTable, dh as UsageTracker, Yu as dismissToast, Bf as initializeContext, vh as initializeGuiLibrary, ys as readFile, Ju as toast, $s as useFocus, Cs as useKeyboardEvent, nc as useWindowWidth, gh as withChainableErrorBoundary, hh as withErrorBoundary };
|