@oliasoft-open-source/react-ui-library 9.2.0-beta-1 → 9.2.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/table/row/row.d.ts +2 -1
- package/dist/components/table/row/row.d.ts.map +1 -1
- package/dist/components/table/table-virtual-scroll-wrapper.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.stories-data.d.ts +55 -0
- package/dist/components/table/table.stories-data.d.ts.map +1 -1
- package/dist/components/table/table.stories.d.ts +1 -0
- package/dist/components/table/table.stories.d.ts.map +1 -1
- package/dist/components/table/table.viewdata.d.ts +1 -2
- package/dist/components/table/table.viewdata.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +225 -305
- package/package.json +1 -1
- package/dist/components/diff-table/build-diff-rows.d.ts +0 -26
- package/dist/components/diff-table/build-diff-rows.d.ts.map +0 -1
- package/dist/components/diff-table/diff-table.d.ts +0 -12
- package/dist/components/diff-table/diff-table.d.ts.map +0 -1
- package/dist/components/diff-table/diff-table.stories.d.ts +0 -21
- package/dist/components/diff-table/diff-table.stories.d.ts.map +0 -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
|
-
table: "
|
|
2581
|
-
dragOverlay: "
|
|
2582
|
-
virtualScroll: "
|
|
2583
|
-
striped: "
|
|
2569
|
+
inputInTable: "_inputInTable_mlaya_1",
|
|
2570
|
+
inputHover: "_inputHover_mlaya_13",
|
|
2571
|
+
inputFocus: "_inputFocus_mlaya_18",
|
|
2572
|
+
controlFocusVisible: "_controlFocusVisible_mlaya_25",
|
|
2573
|
+
inputError: "_inputError_mlaya_29",
|
|
2574
|
+
inputWarning: "_inputWarning_mlaya_30",
|
|
2575
|
+
inputDisabled: "_inputDisabled_mlaya_65",
|
|
2576
|
+
hideScrollbars: "_hideScrollbars_mlaya_71",
|
|
2577
|
+
wrapper: "_wrapper_mlaya_89",
|
|
2578
|
+
bordered: "_bordered_mlaya_97",
|
|
2579
|
+
scroll: "_scroll_mlaya_102",
|
|
2580
|
+
table: "_table_mlaya_114",
|
|
2581
|
+
dragOverlay: "_dragOverlay_mlaya_150",
|
|
2582
|
+
virtualScroll: "_virtualScroll_mlaya_185",
|
|
2583
|
+
striped: "_striped_mlaya_205"
|
|
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", {
|
|
@@ -4170,8 +4170,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4170
4170
|
}));
|
|
4171
4171
|
}
|
|
4172
4172
|
};
|
|
4173
|
-
}, Jl = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
|
|
4174
|
-
let
|
|
4173
|
+
}, Jl = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f, measureRef: p }) => {
|
|
4174
|
+
let m = _l(a, n, t), { onRowClick: h, onRowFocus: g, onRowMouseEnter: _, onRowMouseLeave: v, expandedContent: y, error: w, warning: T, active: E } = e, D = e.cells.map((e, r) => {
|
|
4175
4175
|
let i = `${+!n}_${t}_${r}`, a = n ? e : ql({
|
|
4176
4176
|
cell: e,
|
|
4177
4177
|
rowIndex: t,
|
|
@@ -4181,72 +4181,74 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4181
4181
|
cell: a,
|
|
4182
4182
|
isHeader: n,
|
|
4183
4183
|
columnAlignment: o[r],
|
|
4184
|
-
columnHeaderAlignment:
|
|
4184
|
+
columnHeaderAlignment: m[r],
|
|
4185
4185
|
width: l ? l[r] : void 0,
|
|
4186
4186
|
testId: e.testId
|
|
4187
4187
|
}, i);
|
|
4188
|
-
}),
|
|
4188
|
+
}), O = s && /* @__PURE__ */ S(Wl, {
|
|
4189
4189
|
cell: {
|
|
4190
4190
|
type: Ul.ACTIONS,
|
|
4191
4191
|
actions: e.actions
|
|
4192
4192
|
},
|
|
4193
4193
|
isHeader: n
|
|
4194
|
-
}, r), { attributes:
|
|
4194
|
+
}, r), { attributes: k, listeners: A, setNodeRef: j, transform: M, transition: N, isDragging: P } = Nr({
|
|
4195
4195
|
id: t.toString(),
|
|
4196
4196
|
animateLayoutChanges: () => !1
|
|
4197
|
-
}),
|
|
4198
|
-
|
|
4197
|
+
}), F = (t) => {
|
|
4198
|
+
e.noDrag || j(t), p == null || p(t);
|
|
4199
|
+
}, I = {
|
|
4200
|
+
transform: u ? void 0 : Fr.Translate.toString(M),
|
|
4199
4201
|
height: d,
|
|
4200
|
-
transition:
|
|
4201
|
-
opacity:
|
|
4202
|
+
transition: N,
|
|
4203
|
+
opacity: P ? 0 : void 0
|
|
4202
4204
|
};
|
|
4203
4205
|
return n ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
|
|
4204
|
-
onClick:
|
|
4205
|
-
onMouseEnter:
|
|
4206
|
-
onMouseLeave:
|
|
4207
|
-
onFocus:
|
|
4206
|
+
onClick: h,
|
|
4207
|
+
onMouseEnter: _,
|
|
4208
|
+
onMouseLeave: v,
|
|
4209
|
+
onFocus: g,
|
|
4208
4210
|
"data-testid": f,
|
|
4209
|
-
className: b(
|
|
4211
|
+
className: b(h ? ml.clickableRow : null, _ ? ml.hoverableRow : null),
|
|
4210
4212
|
children: [
|
|
4211
4213
|
c ? /* @__PURE__ */ S("th", {}) : null,
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
+
D,
|
|
4215
|
+
O
|
|
4214
4216
|
]
|
|
4215
|
-
}, t),
|
|
4217
|
+
}, t), y && y.content ? /* @__PURE__ */ S(hl, {
|
|
4216
4218
|
colSpan: i,
|
|
4217
|
-
flush:
|
|
4218
|
-
children:
|
|
4219
|
+
flush: y.flush === !0,
|
|
4220
|
+
children: y.content
|
|
4219
4221
|
}, `${t}_expanded_content`) : null] }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("tr", {
|
|
4220
|
-
ref:
|
|
4221
|
-
onClick:
|
|
4222
|
-
onMouseEnter:
|
|
4223
|
-
onMouseLeave:
|
|
4224
|
-
onFocus:
|
|
4225
|
-
className: b(
|
|
4226
|
-
"data-active":
|
|
4227
|
-
"data-error":
|
|
4228
|
-
"data-warning":
|
|
4222
|
+
ref: F,
|
|
4223
|
+
onClick: h,
|
|
4224
|
+
onMouseEnter: _,
|
|
4225
|
+
onMouseLeave: v,
|
|
4226
|
+
onFocus: g,
|
|
4227
|
+
className: b(h && !h.noStyle ? ml.clickableRow : null, _ && !_.noStyle ? ml.hoverableRow : null, E ? ml.rowActive : null),
|
|
4228
|
+
"data-active": E || null,
|
|
4229
|
+
"data-error": w || null,
|
|
4230
|
+
"data-warning": T || null,
|
|
4229
4231
|
"data-index": t,
|
|
4230
4232
|
"data-even": t % 2 == 0,
|
|
4231
4233
|
"data-testid": f,
|
|
4232
|
-
style:
|
|
4234
|
+
style: I,
|
|
4233
4235
|
children: [
|
|
4234
4236
|
c ? e.noDrag ? /* @__PURE__ */ S("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ S("td", {
|
|
4235
4237
|
className: ml.dragIconCell,
|
|
4236
4238
|
children: /* @__PURE__ */ S("div", {
|
|
4237
4239
|
className: b(ml.dragIcon, u ? ml.dragIconDisabled : ""),
|
|
4238
|
-
...O,
|
|
4239
4240
|
...k,
|
|
4241
|
+
...A,
|
|
4240
4242
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
4241
4243
|
})
|
|
4242
4244
|
}) : null,
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
+
D,
|
|
4246
|
+
O
|
|
4245
4247
|
]
|
|
4246
|
-
}, t),
|
|
4248
|
+
}, t), y && y.content ? /* @__PURE__ */ S(hl, {
|
|
4247
4249
|
colSpan: i,
|
|
4248
|
-
flush:
|
|
4249
|
-
children:
|
|
4250
|
+
flush: y.flush === !0,
|
|
4251
|
+
children: y.content
|
|
4250
4252
|
}, `${t}_expanded_content`) : null] });
|
|
4251
4253
|
}, Yl = (e) => {
|
|
4252
4254
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [d, f] = v(null), [p, m] = v(!1), g = h(() => l.map((e, t) => t.toString()), [l]);
|
|
@@ -4308,7 +4310,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4308
4310
|
let a = _(null), o = Jr({
|
|
4309
4311
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
4310
4312
|
getScrollElement: () => a.current,
|
|
4311
|
-
estimateSize: () =>
|
|
4313
|
+
estimateSize: (t) => {
|
|
4314
|
+
var n, r;
|
|
4315
|
+
return (n = (r = e.estimateRowHeight) == null ? void 0 : r.call(e, t)) == null ? 31 : n;
|
|
4316
|
+
},
|
|
4312
4317
|
overscan: 10
|
|
4313
4318
|
});
|
|
4314
4319
|
return /* @__PURE__ */ S("div", {
|
|
@@ -4435,23 +4440,24 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
4435
4440
|
draggableTable: w
|
|
4436
4441
|
}, `0_${t}`)) }), /* @__PURE__ */ S("tbody", {
|
|
4437
4442
|
ref: A,
|
|
4438
|
-
children: t ? t.getVirtualItems().map((
|
|
4439
|
-
let
|
|
4440
|
-
row: r,
|
|
4441
|
-
rowIndex: n
|
|
4442
|
-
}) : r;
|
|
4443
|
-
return /* @__PURE__ */ S(Jl, {
|
|
4444
|
-
rowIndex: n,
|
|
4443
|
+
children: t ? t.getVirtualItems().map((n) => {
|
|
4444
|
+
let r = n.index, i = R[r], a = c ? c({
|
|
4445
4445
|
row: i,
|
|
4446
|
+
rowIndex: r
|
|
4447
|
+
}) : i;
|
|
4448
|
+
return /* @__PURE__ */ S(Jl, {
|
|
4449
|
+
rowIndex: r,
|
|
4450
|
+
row: a,
|
|
4446
4451
|
columnCount: M,
|
|
4447
4452
|
columnWidths: u,
|
|
4448
4453
|
colSpan: P,
|
|
4449
4454
|
hasRowActions: N,
|
|
4450
4455
|
columnAlignment: v,
|
|
4451
4456
|
draggableTable: w,
|
|
4452
|
-
height:
|
|
4453
|
-
dropDisabled: e
|
|
4454
|
-
|
|
4457
|
+
height: n.size,
|
|
4458
|
+
dropDisabled: e,
|
|
4459
|
+
measureRef: t.measureElement
|
|
4460
|
+
}, `1_${r}`);
|
|
4455
4461
|
}) : R.map((t, n) => {
|
|
4456
4462
|
let r = c ? c({
|
|
4457
4463
|
row: t,
|
|
@@ -8352,96 +8358,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8352
8358
|
compareMethod: Si.WORDS
|
|
8353
8359
|
})
|
|
8354
8360
|
}) });
|
|
8355
|
-
}, zp = { backgroundColor: "var(--color-background-error-muted)" }, Bp = { backgroundColor: "var(--color-background-success-muted)" }, Vp = { backgroundColor: "var(--color-background-warning-muted)" }, Hp = (e) => {
|
|
8356
|
-
var t;
|
|
8357
|
-
if (e.id != null) return String(e.id);
|
|
8358
|
-
let n = (t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value;
|
|
8359
|
-
return n == null ? "" : String(n);
|
|
8360
|
-
}, Up = (e, t) => ({
|
|
8361
|
-
...e,
|
|
8362
|
-
cells: e.cells.map((e) => ({
|
|
8363
|
-
...e,
|
|
8364
|
-
style: {
|
|
8365
|
-
...e.style,
|
|
8366
|
-
...t
|
|
8367
|
-
}
|
|
8368
|
-
}))
|
|
8369
|
-
}), Wp = (e, t) => ({
|
|
8370
|
-
...e,
|
|
8371
|
-
cells: e.cells.map((e, n) => {
|
|
8372
|
-
var r;
|
|
8373
|
-
let i = (r = t.cells) == null ? void 0 : r[n], a = i == null ? void 0 : i.value;
|
|
8374
|
-
return !i || dn(e.value, a) ? e : {
|
|
8375
|
-
...e,
|
|
8376
|
-
style: {
|
|
8377
|
-
...e.style,
|
|
8378
|
-
...Vp
|
|
8379
|
-
},
|
|
8380
|
-
tooltip: a
|
|
8381
|
-
};
|
|
8382
|
-
})
|
|
8383
|
-
}), Gp = (e = [], t = []) => {
|
|
8384
|
-
let n = /* @__PURE__ */ new Map();
|
|
8385
|
-
for (let e of t) n.set(Hp(e), e);
|
|
8386
|
-
let r = new Set(e.map(Hp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8387
|
-
for (let e = t.length - 1; e >= 0; e--) {
|
|
8388
|
-
let n = t[e], c = Hp(n);
|
|
8389
|
-
if (r.has(c)) {
|
|
8390
|
-
o = c;
|
|
8391
|
-
continue;
|
|
8392
|
-
}
|
|
8393
|
-
if (o === null) a.push(n);
|
|
8394
|
-
else {
|
|
8395
|
-
var s;
|
|
8396
|
-
let e = (s = i.get(o)) == null ? [] : s;
|
|
8397
|
-
e.unshift(n), i.set(o, e);
|
|
8398
|
-
}
|
|
8399
|
-
}
|
|
8400
|
-
a.reverse();
|
|
8401
|
-
let c = [];
|
|
8402
|
-
for (let t of e) {
|
|
8403
|
-
let e = Hp(t), r = i.get(e);
|
|
8404
|
-
if (r) for (let e of r) c.push({
|
|
8405
|
-
status: "deleted",
|
|
8406
|
-
row: e
|
|
8407
|
-
});
|
|
8408
|
-
let a = n.get(e);
|
|
8409
|
-
a ? c.push({
|
|
8410
|
-
status: "matched",
|
|
8411
|
-
row: t,
|
|
8412
|
-
compareRow: a
|
|
8413
|
-
}) : c.push({
|
|
8414
|
-
status: "added",
|
|
8415
|
-
row: t
|
|
8416
|
-
});
|
|
8417
|
-
}
|
|
8418
|
-
for (let e of a) c.push({
|
|
8419
|
-
status: "deleted",
|
|
8420
|
-
row: e
|
|
8421
|
-
});
|
|
8422
|
-
return c;
|
|
8423
|
-
}, Kp = (e) => e.status === "deleted" ? Up(e.row, zp) : e.status === "added" ? Up(e.row, Bp) : Wp(e.row, e.compareRow), qp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8424
|
-
let i = h(() => Gp(e.rows, t), [e.rows, t]), a = h(() => i.map((e) => e.row), [i]), o = l(({ row: e, rowIndex: t }) => {
|
|
8425
|
-
let r = i[t], a = r ? Kp(r) : e;
|
|
8426
|
-
return n ? n({
|
|
8427
|
-
row: a,
|
|
8428
|
-
rowIndex: t
|
|
8429
|
-
}) : a;
|
|
8430
|
-
}, [i, n]);
|
|
8431
|
-
return /* @__PURE__ */ S($l, {
|
|
8432
|
-
...r,
|
|
8433
|
-
beforeRenderRow: o,
|
|
8434
|
-
table: {
|
|
8435
|
-
...e,
|
|
8436
|
-
rows: a,
|
|
8437
|
-
rowCount: i.length,
|
|
8438
|
-
striped: !1
|
|
8439
|
-
}
|
|
8440
|
-
});
|
|
8441
8361
|
};
|
|
8442
8362
|
//#endregion
|
|
8443
8363
|
//#region src/helpers/date.ts
|
|
8444
|
-
function
|
|
8364
|
+
function zp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8445
8365
|
return e ? new Date(e).toLocaleString(a, {
|
|
8446
8366
|
year: "numeric",
|
|
8447
8367
|
month: "short",
|
|
@@ -8455,28 +8375,28 @@ function Jp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8455
8375
|
}
|
|
8456
8376
|
//#endregion
|
|
8457
8377
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8458
|
-
function
|
|
8378
|
+
function Bp(e) {
|
|
8459
8379
|
var t;
|
|
8460
8380
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8461
8381
|
if (!n) throw Error("Invalid RegExp");
|
|
8462
8382
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8463
8383
|
}
|
|
8464
|
-
function
|
|
8384
|
+
function Vp(e) {
|
|
8465
8385
|
if (typeof e != "object") return e;
|
|
8466
8386
|
if (e === null) return null;
|
|
8467
|
-
if (Array.isArray(e)) return e.map(
|
|
8387
|
+
if (Array.isArray(e)) return e.map(Vp);
|
|
8468
8388
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8469
|
-
if (e instanceof RegExp) return
|
|
8389
|
+
if (e instanceof RegExp) return Bp(e);
|
|
8470
8390
|
let t = {};
|
|
8471
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8391
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Vp(e[n]));
|
|
8472
8392
|
return t;
|
|
8473
8393
|
}
|
|
8474
8394
|
//#endregion
|
|
8475
8395
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8476
|
-
function
|
|
8396
|
+
function Hp(e, t) {
|
|
8477
8397
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8478
8398
|
}
|
|
8479
|
-
var
|
|
8399
|
+
var Up = (e) => e[e.length - 1], Wp = class {
|
|
8480
8400
|
setResult(e) {
|
|
8481
8401
|
return this.result = e, this.hasResult = !0, this;
|
|
8482
8402
|
}
|
|
@@ -8484,16 +8404,16 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8484
8404
|
return this.exiting = !0, this;
|
|
8485
8405
|
}
|
|
8486
8406
|
push(e, t) {
|
|
8487
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8407
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Hp(this.children), Up(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8488
8408
|
}
|
|
8489
|
-
},
|
|
8409
|
+
}, Gp = class extends Wp {
|
|
8490
8410
|
constructor(e, t) {
|
|
8491
8411
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8492
8412
|
}
|
|
8493
8413
|
prepareDeltaResult(e) {
|
|
8494
8414
|
var t, n, r, i;
|
|
8495
8415
|
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)) {
|
|
8496
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8416
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Vp;
|
|
8497
8417
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8498
8418
|
}
|
|
8499
8419
|
return e;
|
|
@@ -8501,15 +8421,15 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8501
8421
|
setResult(e) {
|
|
8502
8422
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8503
8423
|
}
|
|
8504
|
-
},
|
|
8424
|
+
}, Kp = class extends Wp {
|
|
8505
8425
|
constructor(e, t) {
|
|
8506
8426
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8507
8427
|
}
|
|
8508
|
-
},
|
|
8428
|
+
}, qp = class extends Wp {
|
|
8509
8429
|
constructor(e) {
|
|
8510
8430
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8511
8431
|
}
|
|
8512
|
-
},
|
|
8432
|
+
}, Jp = class {
|
|
8513
8433
|
constructor(e) {
|
|
8514
8434
|
this.name = e, this.filters = [];
|
|
8515
8435
|
}
|
|
@@ -8573,7 +8493,7 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8573
8493
|
}
|
|
8574
8494
|
}), this);
|
|
8575
8495
|
}
|
|
8576
|
-
},
|
|
8496
|
+
}, Yp = class {
|
|
8577
8497
|
constructor(e) {
|
|
8578
8498
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8579
8499
|
}
|
|
@@ -8600,7 +8520,7 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8600
8520
|
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);
|
|
8601
8521
|
return n.hasResult ? n.result : void 0;
|
|
8602
8522
|
}
|
|
8603
|
-
},
|
|
8523
|
+
}, Xp = (e, t, n, r) => e[n] === t[r], Zp = (e, t, n, r) => {
|
|
8604
8524
|
var i, a, o;
|
|
8605
8525
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8606
8526
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8616,7 +8536,7 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8616
8536
|
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);
|
|
8617
8537
|
}
|
|
8618
8538
|
return d;
|
|
8619
|
-
},
|
|
8539
|
+
}, Qp = (e, t, n, r) => {
|
|
8620
8540
|
let i = t.length, a = n.length, o = {
|
|
8621
8541
|
sequence: [],
|
|
8622
8542
|
indices1: [],
|
|
@@ -8638,11 +8558,11 @@ var Qp = (e) => e[e.length - 1], $p = class {
|
|
|
8638
8558
|
}
|
|
8639
8559
|
}
|
|
8640
8560
|
return o;
|
|
8641
|
-
},
|
|
8561
|
+
}, $p = { get: (e, t, n, r) => {
|
|
8642
8562
|
let i = r || {};
|
|
8643
|
-
return
|
|
8644
|
-
} },
|
|
8645
|
-
function
|
|
8563
|
+
return Qp(Zp(e, t, n || Xp, i), e, t, i);
|
|
8564
|
+
} }, em = 3;
|
|
8565
|
+
function tm(e, t, n, r) {
|
|
8646
8566
|
for (let i = 0; i < n; i++) {
|
|
8647
8567
|
let n = e[i];
|
|
8648
8568
|
for (let e = 0; e < r; e++) {
|
|
@@ -8652,7 +8572,7 @@ function um(e, t, n, r) {
|
|
|
8652
8572
|
}
|
|
8653
8573
|
return !1;
|
|
8654
8574
|
}
|
|
8655
|
-
function
|
|
8575
|
+
function nm(e, t, n, r, i) {
|
|
8656
8576
|
let a = e[n], o = t[r];
|
|
8657
8577
|
if (a === o) return !0;
|
|
8658
8578
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8665,15 +8585,15 @@ function dm(e, t, n, r, i) {
|
|
|
8665
8585
|
let l = i.hashCache2[r];
|
|
8666
8586
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8667
8587
|
}
|
|
8668
|
-
var
|
|
8588
|
+
var rm = function(e) {
|
|
8669
8589
|
var t, n, r, i, a;
|
|
8670
8590
|
if (!e.leftIsArray) return;
|
|
8671
8591
|
let o = {
|
|
8672
8592
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8673
8593
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8674
8594
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8675
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8676
|
-
for (; c + s < m && c + s < h &&
|
|
8595
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !tm(f, p, m, h)); s < m && s < h && nm(f, p, s, s, o);) l = s, g = new Gp(f[l], p[l]), e.push(g, l), s++;
|
|
8596
|
+
for (; c + s < m && c + s < h && nm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Gp(f[u], p[d]), e.push(g, d), c++;
|
|
8677
8597
|
let _;
|
|
8678
8598
|
if (s + c === m) {
|
|
8679
8599
|
if (m === h) {
|
|
@@ -8697,7 +8617,7 @@ var fm = function(e) {
|
|
|
8697
8617
|
return;
|
|
8698
8618
|
}
|
|
8699
8619
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8700
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8620
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = $p.get(v, y, nm, o), x = [];
|
|
8701
8621
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8702
8622
|
let t = `_${l}`;
|
|
8703
8623
|
_[t] = [
|
|
@@ -8718,8 +8638,8 @@ var fm = function(e) {
|
|
|
8718
8638
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8719
8639
|
u = x[n];
|
|
8720
8640
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8721
|
-
if (u !== void 0 && r &&
|
|
8722
|
-
r.splice(1, 2, l,
|
|
8641
|
+
if (u !== void 0 && r && nm(v, y, u - s, l - s, o)) {
|
|
8642
|
+
r.splice(1, 2, l, em), r.splice(1, 2, l, em), C || (r[0] = ""), d = l, g = new Gp(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8723
8643
|
break;
|
|
8724
8644
|
}
|
|
8725
8645
|
}
|
|
@@ -8727,20 +8647,20 @@ var fm = function(e) {
|
|
|
8727
8647
|
} else {
|
|
8728
8648
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8729
8649
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8730
|
-
d = b.indices2[t] + s, g = new
|
|
8650
|
+
d = b.indices2[t] + s, g = new Gp(f[u], p[d]), e.push(g, d);
|
|
8731
8651
|
}
|
|
8732
8652
|
}
|
|
8733
8653
|
e.setResult(_).exit();
|
|
8734
8654
|
};
|
|
8735
|
-
|
|
8736
|
-
var
|
|
8655
|
+
rm.filterName = "arrays";
|
|
8656
|
+
var im = {
|
|
8737
8657
|
numerically(e, t) {
|
|
8738
8658
|
return e - t;
|
|
8739
8659
|
},
|
|
8740
8660
|
numericallyBy(e) {
|
|
8741
8661
|
return (t, n) => t[e] - n[e];
|
|
8742
8662
|
}
|
|
8743
|
-
},
|
|
8663
|
+
}, am = function(e) {
|
|
8744
8664
|
var t;
|
|
8745
8665
|
if (!e.nested) return;
|
|
8746
8666
|
let n = e.delta;
|
|
@@ -8749,7 +8669,7 @@ var pm = {
|
|
|
8749
8669
|
for (r in a) if (r !== "_t") {
|
|
8750
8670
|
if (r[0] === "_") {
|
|
8751
8671
|
let e = r;
|
|
8752
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8672
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === em)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8753
8673
|
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]}`);
|
|
8754
8674
|
} else {
|
|
8755
8675
|
let e = r;
|
|
@@ -8762,15 +8682,15 @@ var pm = {
|
|
|
8762
8682
|
});
|
|
8763
8683
|
}
|
|
8764
8684
|
}
|
|
8765
|
-
for (s = s.sort(
|
|
8685
|
+
for (s = s.sort(im.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8766
8686
|
if (i = s[r], i === void 0) continue;
|
|
8767
8687
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8768
|
-
(e == null ? void 0 : e[2]) ===
|
|
8688
|
+
(e == null ? void 0 : e[2]) === em && c.push({
|
|
8769
8689
|
index: e[1],
|
|
8770
8690
|
value: t
|
|
8771
8691
|
});
|
|
8772
8692
|
}
|
|
8773
|
-
c = c.sort(
|
|
8693
|
+
c = c.sort(im.numericallyBy("index"));
|
|
8774
8694
|
let u = c.length;
|
|
8775
8695
|
for (r = 0; r < u; r++) {
|
|
8776
8696
|
let e = c[r];
|
|
@@ -8780,7 +8700,7 @@ var pm = {
|
|
|
8780
8700
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8781
8701
|
let t = l[r];
|
|
8782
8702
|
if (t === void 0) continue;
|
|
8783
|
-
let n = new
|
|
8703
|
+
let n = new Kp(o[t.index], t.delta);
|
|
8784
8704
|
e.push(n, t.index);
|
|
8785
8705
|
}
|
|
8786
8706
|
if (!e.children) {
|
|
@@ -8789,8 +8709,8 @@ var pm = {
|
|
|
8789
8709
|
}
|
|
8790
8710
|
e.exit();
|
|
8791
8711
|
};
|
|
8792
|
-
|
|
8793
|
-
var
|
|
8712
|
+
am.filterName = "arrays";
|
|
8713
|
+
var om = function(e) {
|
|
8794
8714
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8795
8715
|
let t = e.left, n = e.children.length;
|
|
8796
8716
|
for (let r = 0; r < n; r++) {
|
|
@@ -8801,16 +8721,16 @@ var hm = function(e) {
|
|
|
8801
8721
|
}
|
|
8802
8722
|
e.setResult(t).exit();
|
|
8803
8723
|
};
|
|
8804
|
-
|
|
8805
|
-
var
|
|
8724
|
+
om.filterName = "arraysCollectChildren";
|
|
8725
|
+
var sm = function(e) {
|
|
8806
8726
|
if (!e.nested) {
|
|
8807
8727
|
let t = e.delta;
|
|
8808
|
-
if (t[2] ===
|
|
8728
|
+
if (t[2] === em) {
|
|
8809
8729
|
let n = t;
|
|
8810
8730
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8811
8731
|
n[0],
|
|
8812
8732
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8813
|
-
|
|
8733
|
+
em
|
|
8814
8734
|
]).exit();
|
|
8815
8735
|
}
|
|
8816
8736
|
return;
|
|
@@ -8820,20 +8740,20 @@ var gm = function(e) {
|
|
|
8820
8740
|
let n = t;
|
|
8821
8741
|
for (let t in n) {
|
|
8822
8742
|
if (t === "_t") continue;
|
|
8823
|
-
let r = new
|
|
8743
|
+
let r = new qp(n[t]);
|
|
8824
8744
|
e.push(r, t);
|
|
8825
8745
|
}
|
|
8826
8746
|
e.exit();
|
|
8827
8747
|
};
|
|
8828
|
-
|
|
8829
|
-
var
|
|
8748
|
+
sm.filterName = "arrays";
|
|
8749
|
+
var cm = (e, t, n) => {
|
|
8830
8750
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8831
8751
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8832
8752
|
let r = +t;
|
|
8833
8753
|
for (let n in e) {
|
|
8834
8754
|
let i = e[n];
|
|
8835
8755
|
if (Array.isArray(i)) {
|
|
8836
|
-
if (i[2] ===
|
|
8756
|
+
if (i[2] === em) {
|
|
8837
8757
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8838
8758
|
if (a === +t) return e;
|
|
8839
8759
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8841,7 +8761,7 @@ var _m = (e, t, n) => {
|
|
|
8841
8761
|
}
|
|
8842
8762
|
}
|
|
8843
8763
|
return r;
|
|
8844
|
-
},
|
|
8764
|
+
}, lm = (e) => {
|
|
8845
8765
|
if (!e || !e.children) return;
|
|
8846
8766
|
let t = e.delta;
|
|
8847
8767
|
if (t._t !== "a") return;
|
|
@@ -8852,22 +8772,22 @@ var _m = (e, t, n) => {
|
|
|
8852
8772
|
let a = r.newName;
|
|
8853
8773
|
if (a === void 0) {
|
|
8854
8774
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8855
|
-
a =
|
|
8775
|
+
a = cm(n, r.childName, r.result);
|
|
8856
8776
|
}
|
|
8857
8777
|
i[a] !== r.result && (i[a] = r.result);
|
|
8858
8778
|
}
|
|
8859
8779
|
e.setResult(i).exit();
|
|
8860
8780
|
};
|
|
8861
|
-
|
|
8781
|
+
lm.filterName = "arraysCollectChildren";
|
|
8862
8782
|
//#endregion
|
|
8863
8783
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8864
|
-
var
|
|
8784
|
+
var um = function(e) {
|
|
8865
8785
|
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();
|
|
8866
8786
|
};
|
|
8867
|
-
|
|
8787
|
+
um.filterName = "dates";
|
|
8868
8788
|
//#endregion
|
|
8869
8789
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8870
|
-
var
|
|
8790
|
+
var dm = /* @__PURE__ */ new Set(["__proto__"]), fm = (e) => {
|
|
8871
8791
|
if (!e || !e.children) return;
|
|
8872
8792
|
let t = e.children.length, n = e.result;
|
|
8873
8793
|
for (let r = 0; r < t; r++) {
|
|
@@ -8879,18 +8799,18 @@ var bm = /* @__PURE__ */ new Set(["__proto__"]), xm = (e) => {
|
|
|
8879
8799
|
}
|
|
8880
8800
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8881
8801
|
};
|
|
8882
|
-
|
|
8883
|
-
var
|
|
8802
|
+
fm.filterName = "collectChildren";
|
|
8803
|
+
var pm = (e) => {
|
|
8884
8804
|
var t;
|
|
8885
8805
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8886
8806
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8887
8807
|
for (let t in n) {
|
|
8888
8808
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8889
|
-
let a = new
|
|
8809
|
+
let a = new Gp(n[t], r[t]);
|
|
8890
8810
|
e.push(a, t);
|
|
8891
8811
|
}
|
|
8892
8812
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8893
|
-
let n = new
|
|
8813
|
+
let n = new Gp(void 0, r[t]);
|
|
8894
8814
|
e.push(n, t);
|
|
8895
8815
|
}
|
|
8896
8816
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8899,15 +8819,15 @@ var Sm = (e) => {
|
|
|
8899
8819
|
}
|
|
8900
8820
|
e.exit();
|
|
8901
8821
|
};
|
|
8902
|
-
|
|
8903
|
-
var
|
|
8822
|
+
pm.filterName = "objects";
|
|
8823
|
+
var mm = function(e) {
|
|
8904
8824
|
if (!e.nested) return;
|
|
8905
8825
|
let t = e.delta;
|
|
8906
8826
|
if (t._t) return;
|
|
8907
8827
|
let n = t, r = !1;
|
|
8908
8828
|
for (let t in n) {
|
|
8909
|
-
if (
|
|
8910
|
-
let i = e.left, a = new
|
|
8829
|
+
if (dm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8830
|
+
let i = e.left, a = new Kp(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8911
8831
|
e.push(a, t), r = !0;
|
|
8912
8832
|
}
|
|
8913
8833
|
if (!r) {
|
|
@@ -8916,8 +8836,8 @@ var Cm = function(e) {
|
|
|
8916
8836
|
}
|
|
8917
8837
|
e.exit();
|
|
8918
8838
|
};
|
|
8919
|
-
|
|
8920
|
-
var
|
|
8839
|
+
mm.filterName = "objects";
|
|
8840
|
+
var hm = function(e) {
|
|
8921
8841
|
if (!e || !e.children || e.delta._t) return;
|
|
8922
8842
|
if (e.left === null || typeof e.left != "object") {
|
|
8923
8843
|
e.setResult(e.left).exit();
|
|
@@ -8928,17 +8848,17 @@ var wm = function(e) {
|
|
|
8928
8848
|
let n = e.children[r];
|
|
8929
8849
|
if (n === void 0) continue;
|
|
8930
8850
|
let i = n.childName;
|
|
8931
|
-
|
|
8851
|
+
dm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8932
8852
|
}
|
|
8933
8853
|
e.setResult(t).exit();
|
|
8934
8854
|
};
|
|
8935
|
-
|
|
8936
|
-
var
|
|
8855
|
+
hm.filterName = "collectChildren";
|
|
8856
|
+
var gm = function(e) {
|
|
8937
8857
|
if (!e.nested || e.delta._t) return;
|
|
8938
8858
|
let t = e.delta, n = !1;
|
|
8939
8859
|
for (let r in t) {
|
|
8940
|
-
if (
|
|
8941
|
-
let i = new
|
|
8860
|
+
if (dm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8861
|
+
let i = new qp(t[r]);
|
|
8942
8862
|
e.push(i, r), n = !0;
|
|
8943
8863
|
}
|
|
8944
8864
|
if (!n) {
|
|
@@ -8947,25 +8867,25 @@ var Tm = function(e) {
|
|
|
8947
8867
|
}
|
|
8948
8868
|
e.exit();
|
|
8949
8869
|
};
|
|
8950
|
-
|
|
8951
|
-
var
|
|
8870
|
+
gm.filterName = "objects";
|
|
8871
|
+
var _m = (e) => {
|
|
8952
8872
|
if (!e || !e.children || e.delta._t) return;
|
|
8953
8873
|
let t = e.children.length, n = {};
|
|
8954
8874
|
for (let r = 0; r < t; r++) {
|
|
8955
8875
|
let t = e.children[r];
|
|
8956
8876
|
if (t === void 0) continue;
|
|
8957
8877
|
let i = t.childName;
|
|
8958
|
-
|
|
8878
|
+
dm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8959
8879
|
}
|
|
8960
8880
|
e.setResult(n).exit();
|
|
8961
8881
|
};
|
|
8962
|
-
|
|
8882
|
+
_m.filterName = "collectChildren";
|
|
8963
8883
|
//#endregion
|
|
8964
8884
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8965
|
-
var
|
|
8966
|
-
function
|
|
8885
|
+
var vm = 2, ym = 60, bm = null;
|
|
8886
|
+
function xm(e, t) {
|
|
8967
8887
|
var n;
|
|
8968
|
-
if (!
|
|
8888
|
+
if (!bm) {
|
|
8969
8889
|
let r;
|
|
8970
8890
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8971
8891
|
else {
|
|
@@ -8973,7 +8893,7 @@ function Am(e, t) {
|
|
|
8973
8893
|
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.");
|
|
8974
8894
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8975
8895
|
}
|
|
8976
|
-
|
|
8896
|
+
bm = {
|
|
8977
8897
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8978
8898
|
patch: (e, t) => {
|
|
8979
8899
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8985,17 +8905,17 @@ function Am(e, t) {
|
|
|
8985
8905
|
}
|
|
8986
8906
|
};
|
|
8987
8907
|
}
|
|
8988
|
-
return
|
|
8908
|
+
return bm;
|
|
8989
8909
|
}
|
|
8990
|
-
var
|
|
8910
|
+
var Sm = function(e) {
|
|
8991
8911
|
var t, n;
|
|
8992
8912
|
if (e.leftType !== "string") return;
|
|
8993
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8913
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || ym;
|
|
8994
8914
|
if (r.length < a || i.length < a) {
|
|
8995
8915
|
e.setResult([r, i]).exit();
|
|
8996
8916
|
return;
|
|
8997
8917
|
}
|
|
8998
|
-
let o =
|
|
8918
|
+
let o = xm(e.options);
|
|
8999
8919
|
if (!o) {
|
|
9000
8920
|
e.setResult([r, i]).exit();
|
|
9001
8921
|
return;
|
|
@@ -9004,19 +8924,19 @@ var jm = function(e) {
|
|
|
9004
8924
|
e.setResult([
|
|
9005
8925
|
s(r, i),
|
|
9006
8926
|
0,
|
|
9007
|
-
|
|
8927
|
+
vm
|
|
9008
8928
|
]).exit();
|
|
9009
8929
|
};
|
|
9010
|
-
|
|
9011
|
-
var
|
|
8930
|
+
Sm.filterName = "texts";
|
|
8931
|
+
var Cm = function(e) {
|
|
9012
8932
|
if (e.nested) return;
|
|
9013
8933
|
let t = e.delta;
|
|
9014
|
-
if (t[2] !==
|
|
9015
|
-
let n = t, r =
|
|
8934
|
+
if (t[2] !== vm) return;
|
|
8935
|
+
let n = t, r = xm(e.options, !0).patch;
|
|
9016
8936
|
e.setResult(r(e.left, n[0])).exit();
|
|
9017
8937
|
};
|
|
9018
|
-
|
|
9019
|
-
var
|
|
8938
|
+
Cm.filterName = "texts";
|
|
8939
|
+
var wm = (e) => {
|
|
9020
8940
|
var t, n, r;
|
|
9021
8941
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9022
8942
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9037,21 +8957,21 @@ var Nm = (e) => {
|
|
|
9037
8957
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9038
8958
|
}
|
|
9039
8959
|
return a.join("\n");
|
|
9040
|
-
},
|
|
8960
|
+
}, Tm = function(e) {
|
|
9041
8961
|
if (e.nested) return;
|
|
9042
8962
|
let t = e.delta;
|
|
9043
|
-
if (t[2] !==
|
|
8963
|
+
if (t[2] !== vm) return;
|
|
9044
8964
|
let n = t;
|
|
9045
8965
|
e.setResult([
|
|
9046
|
-
|
|
8966
|
+
wm(n[0]),
|
|
9047
8967
|
0,
|
|
9048
|
-
|
|
8968
|
+
vm
|
|
9049
8969
|
]).exit();
|
|
9050
8970
|
};
|
|
9051
|
-
|
|
8971
|
+
Tm.filterName = "texts";
|
|
9052
8972
|
//#endregion
|
|
9053
8973
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9054
|
-
var
|
|
8974
|
+
var Em = function(e) {
|
|
9055
8975
|
if (e.left === e.right) {
|
|
9056
8976
|
e.setResult(void 0).exit();
|
|
9057
8977
|
return;
|
|
@@ -9084,8 +9004,8 @@ var Fm = function(e) {
|
|
|
9084
9004
|
}
|
|
9085
9005
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9086
9006
|
};
|
|
9087
|
-
|
|
9088
|
-
var
|
|
9007
|
+
Em.filterName = "trivial";
|
|
9008
|
+
var Dm = function(e) {
|
|
9089
9009
|
if (e.delta === void 0) {
|
|
9090
9010
|
e.setResult(e.left).exit();
|
|
9091
9011
|
return;
|
|
@@ -9109,8 +9029,8 @@ var Im = function(e) {
|
|
|
9109
9029
|
}
|
|
9110
9030
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9111
9031
|
};
|
|
9112
|
-
|
|
9113
|
-
var
|
|
9032
|
+
Dm.filterName = "trivial";
|
|
9033
|
+
var Om = function(e) {
|
|
9114
9034
|
if (e.delta === void 0) {
|
|
9115
9035
|
e.setResult(e.delta).exit();
|
|
9116
9036
|
return;
|
|
@@ -9131,36 +9051,36 @@ var Lm = function(e) {
|
|
|
9131
9051
|
}
|
|
9132
9052
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9133
9053
|
};
|
|
9134
|
-
|
|
9054
|
+
Om.filterName = "trivial";
|
|
9135
9055
|
//#endregion
|
|
9136
9056
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9137
|
-
var
|
|
9057
|
+
var km = class {
|
|
9138
9058
|
constructor(e) {
|
|
9139
|
-
this.processor = new
|
|
9059
|
+
this.processor = new Yp(e), this.processor.pipe(new Jp("diff").append(fm, Em, um, Sm, pm, rm).shouldHaveResult()), this.processor.pipe(new Jp("patch").append(hm, om, Dm, Cm, mm, am).shouldHaveResult()), this.processor.pipe(new Jp("reverse").append(_m, lm, Om, Tm, gm, sm).shouldHaveResult());
|
|
9140
9060
|
}
|
|
9141
9061
|
options(e) {
|
|
9142
9062
|
return this.processor.options(e);
|
|
9143
9063
|
}
|
|
9144
9064
|
diff(e, t) {
|
|
9145
|
-
return this.processor.process(new
|
|
9065
|
+
return this.processor.process(new Gp(e, t));
|
|
9146
9066
|
}
|
|
9147
9067
|
patch(e, t) {
|
|
9148
|
-
return this.processor.process(new
|
|
9068
|
+
return this.processor.process(new Kp(e, t));
|
|
9149
9069
|
}
|
|
9150
9070
|
reverse(e) {
|
|
9151
|
-
return this.processor.process(new
|
|
9071
|
+
return this.processor.process(new qp(e));
|
|
9152
9072
|
}
|
|
9153
9073
|
unpatch(e, t) {
|
|
9154
9074
|
return this.patch(e, this.reverse(t));
|
|
9155
9075
|
}
|
|
9156
9076
|
clone(e) {
|
|
9157
|
-
return
|
|
9077
|
+
return Vp(e);
|
|
9158
9078
|
}
|
|
9159
9079
|
};
|
|
9160
9080
|
//#endregion
|
|
9161
9081
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9162
|
-
function
|
|
9163
|
-
return new
|
|
9082
|
+
function Am(e) {
|
|
9083
|
+
return new km(e);
|
|
9164
9084
|
}
|
|
9165
9085
|
//#endregion
|
|
9166
9086
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9722,46 +9642,46 @@ $.Diff = function(e, t) {
|
|
|
9722
9642
|
};
|
|
9723
9643
|
//#endregion
|
|
9724
9644
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9725
|
-
var
|
|
9645
|
+
var jm = (e = {}) => Am({
|
|
9726
9646
|
...e,
|
|
9727
9647
|
textDiff: {
|
|
9728
9648
|
diffMatchPatch: $,
|
|
9729
9649
|
minLength: 120
|
|
9730
9650
|
},
|
|
9731
9651
|
cloneDiffValues: !0
|
|
9732
|
-
}),
|
|
9652
|
+
}), Mm = ["user", "unittemplate"], Nm = jm(), Pm = (e, t, n) => {
|
|
9733
9653
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9734
9654
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9735
9655
|
let n = r[t[e]];
|
|
9736
9656
|
if (n) return n;
|
|
9737
9657
|
}
|
|
9738
9658
|
return n || "";
|
|
9739
|
-
},
|
|
9659
|
+
}, Fm = (e) => {
|
|
9740
9660
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9741
9661
|
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);
|
|
9742
|
-
},
|
|
9662
|
+
}, Im = (e) => {
|
|
9743
9663
|
switch (e.length) {
|
|
9744
9664
|
case 1: {
|
|
9745
9665
|
let [t] = e;
|
|
9746
9666
|
return {
|
|
9747
9667
|
type: "created",
|
|
9748
9668
|
before: "",
|
|
9749
|
-
after:
|
|
9669
|
+
after: Fm(t)
|
|
9750
9670
|
};
|
|
9751
9671
|
}
|
|
9752
9672
|
case 2: {
|
|
9753
9673
|
let [t, n] = e;
|
|
9754
9674
|
return {
|
|
9755
9675
|
type: "modified",
|
|
9756
|
-
before:
|
|
9757
|
-
after:
|
|
9676
|
+
before: Fm(t),
|
|
9677
|
+
after: Fm(n)
|
|
9758
9678
|
};
|
|
9759
9679
|
}
|
|
9760
9680
|
case 3: {
|
|
9761
9681
|
let [t] = e;
|
|
9762
9682
|
return {
|
|
9763
9683
|
type: "deleted",
|
|
9764
|
-
before:
|
|
9684
|
+
before: Fm(t),
|
|
9765
9685
|
after: ""
|
|
9766
9686
|
};
|
|
9767
9687
|
}
|
|
@@ -9771,15 +9691,15 @@ var Bm = (e = {}) => zm({
|
|
|
9771
9691
|
after: ""
|
|
9772
9692
|
};
|
|
9773
9693
|
}
|
|
9774
|
-
},
|
|
9775
|
-
let r =
|
|
9694
|
+
}, Lm = (e) => Array.isArray(e), Rm = (e, t) => t ? Lm(t) ? t.length === 0 ? e : t.reduce((e, t) => Nm.unpatch(nn(e), nn(t)), nn(e)) : Nm.unpatch(nn(e), nn(t)) : e, zm = (e) => e.createdAt || e.date, Bm = (e, t, n) => {
|
|
9695
|
+
let r = zm(e);
|
|
9776
9696
|
if (!r) return {
|
|
9777
9697
|
oldJson: "",
|
|
9778
9698
|
newJson: "",
|
|
9779
9699
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9780
9700
|
};
|
|
9781
9701
|
let i = t.filter((e) => {
|
|
9782
|
-
let t =
|
|
9702
|
+
let t = zm(e);
|
|
9783
9703
|
return !!(e.diffs && t && t >= r);
|
|
9784
9704
|
}), a = Array.from({ length: i.length + 1 });
|
|
9785
9705
|
a[0] = nn(n);
|
|
@@ -9792,7 +9712,7 @@ var Bm = (e = {}) => zm({
|
|
|
9792
9712
|
a[e + 1] = a[e];
|
|
9793
9713
|
continue;
|
|
9794
9714
|
}
|
|
9795
|
-
a[e + 1] =
|
|
9715
|
+
a[e + 1] = Rm(a[e], t);
|
|
9796
9716
|
}
|
|
9797
9717
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9798
9718
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9807,10 +9727,10 @@ var Bm = (e = {}) => zm({
|
|
|
9807
9727
|
oldJson: o,
|
|
9808
9728
|
newJson: s
|
|
9809
9729
|
};
|
|
9810
|
-
},
|
|
9730
|
+
}, Vm = (e, t, n = {}, r = []) => {
|
|
9811
9731
|
var i;
|
|
9812
9732
|
if (!e) return;
|
|
9813
|
-
let a = [...
|
|
9733
|
+
let a = [...Mm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9814
9734
|
Object.keys(e).forEach((i) => {
|
|
9815
9735
|
var o;
|
|
9816
9736
|
let s = e[i];
|
|
@@ -9823,12 +9743,12 @@ var Bm = (e = {}) => zm({
|
|
|
9823
9743
|
cn(s) ? t.push({
|
|
9824
9744
|
deltaFormat: [...s],
|
|
9825
9745
|
path: c
|
|
9826
|
-
}) : gn(s) &&
|
|
9746
|
+
}) : gn(s) && Vm(s, t, n, c);
|
|
9827
9747
|
});
|
|
9828
|
-
},
|
|
9748
|
+
}, Hm = (e, t = {}) => {
|
|
9829
9749
|
let n = [];
|
|
9830
|
-
return e ? (
|
|
9831
|
-
},
|
|
9750
|
+
return e ? (Vm(e, n, t), n) : [];
|
|
9751
|
+
}, Um = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Wm = (e) => {
|
|
9832
9752
|
if (e == null || e === "") return "empty";
|
|
9833
9753
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9834
9754
|
if (typeof e == "string") return e;
|
|
@@ -9839,27 +9759,27 @@ var Bm = (e = {}) => zm({
|
|
|
9839
9759
|
} catch {
|
|
9840
9760
|
return String(e);
|
|
9841
9761
|
}
|
|
9842
|
-
},
|
|
9762
|
+
}, Gm = (e, t = e.length - 1) => {
|
|
9843
9763
|
if (t >= e.length) return "Value";
|
|
9844
9764
|
let n = e[t];
|
|
9845
|
-
return !n || mr(n) ?
|
|
9846
|
-
},
|
|
9847
|
-
let o =
|
|
9765
|
+
return !n || mr(n) ? Gm(e, t - 1) : Um(n);
|
|
9766
|
+
}, Km = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9767
|
+
let o = Wm(r), s = Wm(i), c = a ? ` in ${a}` : "";
|
|
9848
9768
|
switch (t) {
|
|
9849
9769
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9850
9770
|
case "created": return `${e} created ${s}${c}.`;
|
|
9851
9771
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9852
9772
|
default: return `${e} changed ${n}${c}.`;
|
|
9853
9773
|
}
|
|
9854
|
-
},
|
|
9774
|
+
}, qm = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9855
9775
|
let i = {
|
|
9856
9776
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9857
9777
|
rows: n.map((n) => {
|
|
9858
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9859
|
-
return { cells: [{ value:
|
|
9778
|
+
let { deltaFormat: i, path: a } = n, o = Pm(e, a, r), { type: s, before: c, after: l } = Im(i);
|
|
9779
|
+
return { cells: [{ value: Km({
|
|
9860
9780
|
userName: t,
|
|
9861
9781
|
type: s,
|
|
9862
|
-
property:
|
|
9782
|
+
property: Gm(a),
|
|
9863
9783
|
before: c,
|
|
9864
9784
|
after: l,
|
|
9865
9785
|
sectionName: o
|
|
@@ -9867,7 +9787,7 @@ var Bm = (e = {}) => zm({
|
|
|
9867
9787
|
})
|
|
9868
9788
|
};
|
|
9869
9789
|
return /* @__PURE__ */ S($l, { table: i });
|
|
9870
|
-
},
|
|
9790
|
+
}, Jm = Object.freeze({
|
|
9871
9791
|
summary: {
|
|
9872
9792
|
label: "Summary",
|
|
9873
9793
|
value: "summary"
|
|
@@ -9876,13 +9796,13 @@ var Bm = (e = {}) => zm({
|
|
|
9876
9796
|
label: "Compare",
|
|
9877
9797
|
value: "compare"
|
|
9878
9798
|
}
|
|
9879
|
-
}),
|
|
9880
|
-
let c = [
|
|
9799
|
+
}), Ym = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9800
|
+
let c = [Jm.summary, Jm.compare].map(({ label: e, value: t }) => ({
|
|
9881
9801
|
label: e,
|
|
9882
9802
|
value: t
|
|
9883
9803
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
9884
9804
|
if (!d) return null;
|
|
9885
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9805
|
+
let { oldJson: f, newJson: p, error: m } = Bm(e, t, n);
|
|
9886
9806
|
return /* @__PURE__ */ S(Ts, {
|
|
9887
9807
|
visible: r,
|
|
9888
9808
|
centered: !0,
|
|
@@ -9895,10 +9815,10 @@ var Bm = (e = {}) => zm({
|
|
|
9895
9815
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9896
9816
|
options: c,
|
|
9897
9817
|
value: l
|
|
9898
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
9818
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(qm, {
|
|
9899
9819
|
userName: e.userName,
|
|
9900
9820
|
sectionNames: a,
|
|
9901
|
-
diffs:
|
|
9821
|
+
diffs: Hm(d, i),
|
|
9902
9822
|
defaultSectionName: o
|
|
9903
9823
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
9904
9824
|
style: { padding: 16 },
|
|
@@ -9916,7 +9836,7 @@ var Bm = (e = {}) => zm({
|
|
|
9916
9836
|
height: "90vh"
|
|
9917
9837
|
} })
|
|
9918
9838
|
});
|
|
9919
|
-
},
|
|
9839
|
+
}, Xm = [
|
|
9920
9840
|
{
|
|
9921
9841
|
label: "10 / page",
|
|
9922
9842
|
value: 10
|
|
@@ -9929,8 +9849,8 @@ var Bm = (e = {}) => zm({
|
|
|
9929
9849
|
label: "50 / page",
|
|
9930
9850
|
value: 50
|
|
9931
9851
|
}
|
|
9932
|
-
],
|
|
9933
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9852
|
+
], Zm = (e, t = {}) => {
|
|
9853
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Hm(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9934
9854
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9935
9855
|
switch (a) {
|
|
9936
9856
|
case "Created": return `Created by ${r}`;
|
|
@@ -9940,7 +9860,7 @@ var Bm = (e = {}) => zm({
|
|
|
9940
9860
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9941
9861
|
default: return `Change by ${r}`;
|
|
9942
9862
|
}
|
|
9943
|
-
},
|
|
9863
|
+
}, Qm = ({ 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 }) => {
|
|
9944
9864
|
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
9945
9865
|
if (e.snapshot) {
|
|
9946
9866
|
f == null || f(e.snapshot, e);
|
|
@@ -9959,7 +9879,7 @@ var Bm = (e = {}) => zm({
|
|
|
9959
9879
|
return {
|
|
9960
9880
|
cells: [
|
|
9961
9881
|
{
|
|
9962
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9882
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : Zm(e, l),
|
|
9963
9883
|
type: "Link",
|
|
9964
9884
|
disabled: n,
|
|
9965
9885
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9978,8 +9898,8 @@ var Bm = (e = {}) => zm({
|
|
|
9978
9898
|
type: "Static"
|
|
9979
9899
|
},
|
|
9980
9900
|
{
|
|
9981
|
-
value:
|
|
9982
|
-
date:
|
|
9901
|
+
value: zp({
|
|
9902
|
+
date: zm(e),
|
|
9983
9903
|
showTime: !0
|
|
9984
9904
|
}),
|
|
9985
9905
|
type: "Static"
|
|
@@ -10022,14 +9942,14 @@ var Bm = (e = {}) => zm({
|
|
|
10022
9942
|
onChange: (e) => {
|
|
10023
9943
|
u(Number(e.target.value));
|
|
10024
9944
|
},
|
|
10025
|
-
options:
|
|
9945
|
+
options: Xm,
|
|
10026
9946
|
value: a
|
|
10027
9947
|
},
|
|
10028
9948
|
onSelectPage: (e) => d(e),
|
|
10029
9949
|
small: !0
|
|
10030
9950
|
} }
|
|
10031
9951
|
} })
|
|
10032
|
-
}), g && y && y.diffs && /* @__PURE__ */ S(
|
|
9952
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(Ym, {
|
|
10033
9953
|
sectionNames: o,
|
|
10034
9954
|
isOpen: g,
|
|
10035
9955
|
onClose: () => _(!1),
|
|
@@ -10039,7 +9959,7 @@ var Bm = (e = {}) => zm({
|
|
|
10039
9959
|
data: t,
|
|
10040
9960
|
transformDiffsConfig: l
|
|
10041
9961
|
})] });
|
|
10042
|
-
},
|
|
9962
|
+
}, $m = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10043
9963
|
let i = window.location.href, a = _(i);
|
|
10044
9964
|
return d(() => {
|
|
10045
9965
|
a.current = i;
|
|
@@ -10062,20 +9982,20 @@ var Bm = (e = {}) => zm({
|
|
|
10062
9982
|
});
|
|
10063
9983
|
};
|
|
10064
9984
|
}, [e, t]), null;
|
|
10065
|
-
},
|
|
9985
|
+
}, eh = {
|
|
10066
9986
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10067
9987
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10068
9988
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10069
|
-
},
|
|
9989
|
+
}, th = ({ options: e }) => {
|
|
10070
9990
|
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Dp();
|
|
10071
9991
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10072
9992
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10073
|
-
className: b(n ?
|
|
9993
|
+
className: b(n ? eh.sidebarErrorBoundary : "", r ? eh.rightSidebarErrorBoundary : ""),
|
|
10074
9994
|
style: a,
|
|
10075
9995
|
children: o == null ? void 0 : o.unexpectedError
|
|
10076
9996
|
});
|
|
10077
9997
|
let s = /* @__PURE__ */ S("div", {
|
|
10078
|
-
className:
|
|
9998
|
+
className: eh.errorBoundary,
|
|
10079
9999
|
style: a,
|
|
10080
10000
|
children: /* @__PURE__ */ S(Gs, { message: {
|
|
10081
10001
|
icon: !0,
|
|
@@ -10090,19 +10010,19 @@ var Bm = (e = {}) => zm({
|
|
|
10090
10010
|
padding: 0,
|
|
10091
10011
|
children: s
|
|
10092
10012
|
}) : s;
|
|
10093
|
-
},
|
|
10094
|
-
fallback: /* @__PURE__ */ S(
|
|
10013
|
+
}, nh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ci.ErrorBoundary, {
|
|
10014
|
+
fallback: /* @__PURE__ */ S(th, { options: t }),
|
|
10095
10015
|
onError: (e, t) => {
|
|
10096
10016
|
console.error("Error caught by boundary:", e, t);
|
|
10097
10017
|
},
|
|
10098
10018
|
children: e
|
|
10099
|
-
}),
|
|
10019
|
+
}), rh = (e, t = {}) => (n) => /* @__PURE__ */ S(nh, {
|
|
10100
10020
|
options: t,
|
|
10101
10021
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10102
|
-
}),
|
|
10022
|
+
}), ih = (e = {}) => (t) => rh(t, e), ah = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, oh = (e) => {
|
|
10103
10023
|
Op(Cp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10104
|
-
e === Cp.Translations ? Op(e, Tp(t)) : Op(e,
|
|
10024
|
+
e === Cp.Translations ? Op(e, Tp(t)) : Op(e, ah(t) ? t : { ...t });
|
|
10105
10025
|
});
|
|
10106
10026
|
};
|
|
10107
10027
|
//#endregion
|
|
10108
|
-
export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align,
|
|
10028
|
+
export { Ji as Accordion, ga as AccordionWithDefaultToggle, fo as Actions, Ei as Align, Qm 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, Rp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, ep as ElementType, uu as Empty, nh as ErrorBoundary, gd as Field, fd as FileButton, bs as FileInput, _d as Flex, yd 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, md as Label, Md as List, xd as ListHeading, Dd as ListSubheading, Pd as Loader, df 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, Vd as OptionDropdown, Ud as Page, cl as Pagination, op as PopConfirm, So as Popover, Wd as Portal, Kd as PrintHeader, Os as ProgressBar, qd as RadioButton, uf as RichTextInput, pf as Row, tl as Select, Pp as SettingField, vf as SideBar, bf as Skeleton, Al as Slider, Ns as SmartUploadModal, xs as Spacer, ya as Spinner, $l as Table, dd as TableImportExport, qf as Tabs, Yo as Text, Xf as TextArea, Jf as TextLink, Oi as TextTransform, ki as Theme, ni as Toaster, Yu as Toggle, K as Tooltip, rp as TopBar, up as Tree, Sp as TreeTable, wi as TriggerType, Bf as UnitInput, Wf as UnitSlider, Mp as UnitTable, $m as UsageTracker, Ku as dismissToast, Lf as initializeContext, oh as initializeGuiLibrary, vs as readFile, Gu as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, ih as withChainableErrorBoundary, rh as withErrorBoundary };
|