@oliasoft-open-source/react-ui-library 10.1.1-beta-1 → 10.2.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/index.d.ts +3 -2
- package/dist/index.js +295 -292
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7814,7 +7814,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7814
7814
|
}, fp = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ S("div", {
|
|
7815
7815
|
className: up.placeholder,
|
|
7816
7816
|
style: { left: `calc(${t} * ${e})` }
|
|
7817
|
-
}), pp = (
|
|
7817
|
+
}), pp = (e, t) => {
|
|
7818
|
+
var n;
|
|
7819
|
+
return e && (t == null || (n = t.data) == null ? void 0 : n.draggable) !== !1;
|
|
7820
|
+
}, mp = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: l, onItemToggle: u, icons: f, allowParentReassignment: p, stickyHeader: m, height: h, render: g, placeholderIndent: v }) => {
|
|
7818
7821
|
var y;
|
|
7819
7822
|
let b = c == null ? _(null) : c, x = (e) => {
|
|
7820
7823
|
i && i(e);
|
|
@@ -7885,29 +7888,29 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7885
7888
|
tree: j,
|
|
7886
7889
|
sort: !1,
|
|
7887
7890
|
insertDroppableFirst: !1,
|
|
7888
|
-
canDrag: () => n,
|
|
7891
|
+
canDrag: (e) => pp(n, e),
|
|
7889
7892
|
canDrop: t || ((e, { dragSource: t, dropTargetId: n }) => {
|
|
7890
7893
|
if ((t == null ? void 0 : t.parent) === n) return !0;
|
|
7891
7894
|
}),
|
|
7892
7895
|
rootId: 0,
|
|
7893
|
-
render: (e, { depth: t, hasChild:
|
|
7896
|
+
render: (e, { depth: t, hasChild: n, handleRef: r, isOpen: i, onToggle: a, draggable: o }) => {
|
|
7894
7897
|
var s;
|
|
7895
7898
|
return g ? g(e, {
|
|
7896
7899
|
depth: t,
|
|
7897
|
-
draggable:
|
|
7898
|
-
handleRef:
|
|
7899
|
-
hasChild:
|
|
7900
|
-
isOpen:
|
|
7901
|
-
onToggle:
|
|
7900
|
+
draggable: o,
|
|
7901
|
+
handleRef: r,
|
|
7902
|
+
hasChild: n,
|
|
7903
|
+
isOpen: i,
|
|
7904
|
+
onToggle: a
|
|
7902
7905
|
}) : /* @__PURE__ */ S(dp, {
|
|
7903
|
-
hasChild: l ? l(e) :
|
|
7906
|
+
hasChild: l ? l(e) : n,
|
|
7904
7907
|
node: e,
|
|
7905
7908
|
depth: t,
|
|
7906
|
-
isOpen:
|
|
7909
|
+
isOpen: i,
|
|
7907
7910
|
onToggle: () => {
|
|
7908
|
-
u == null || u(e, !
|
|
7911
|
+
u == null || u(e, !i), a();
|
|
7909
7912
|
},
|
|
7910
|
-
draggable:
|
|
7913
|
+
draggable: o,
|
|
7911
7914
|
icons: f,
|
|
7912
7915
|
onDrop: (s = e.data) == null ? void 0 : s.onDrop
|
|
7913
7916
|
});
|
|
@@ -7933,7 +7936,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7933
7936
|
})
|
|
7934
7937
|
})]
|
|
7935
7938
|
});
|
|
7936
|
-
},
|
|
7939
|
+
}, hp = {
|
|
7937
7940
|
treeTable: "_treeTable_1ywvy_1",
|
|
7938
7941
|
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7939
7942
|
folderCell: "_folderCell_1ywvy_30",
|
|
@@ -7941,48 +7944,48 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7941
7944
|
drag: "_drag_1ywvy_31",
|
|
7942
7945
|
folder: "_folder_1ywvy_30",
|
|
7943
7946
|
active: "_active_1ywvy_61"
|
|
7944
|
-
},
|
|
7947
|
+
}, gp = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...gp(e, t.id)]), _p = (e, t) => {
|
|
7945
7948
|
let n = new Set(t);
|
|
7946
7949
|
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7947
|
-
},
|
|
7950
|
+
}, vp = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), yp = (e, t, n, r = []) => {
|
|
7948
7951
|
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7949
7952
|
if (o.length === 0) return {
|
|
7950
7953
|
checked: i.has(t),
|
|
7951
7954
|
indeterminate: !1
|
|
7952
7955
|
};
|
|
7953
|
-
let s = o.map((t) =>
|
|
7956
|
+
let s = o.map((t) => yp(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7954
7957
|
return {
|
|
7955
7958
|
checked: u,
|
|
7956
7959
|
indeterminate: c + l > 0 && !u
|
|
7957
7960
|
};
|
|
7958
|
-
},
|
|
7959
|
-
let r =
|
|
7961
|
+
}, bp = (e, t, n = []) => {
|
|
7962
|
+
let r = _p(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7960
7963
|
return {
|
|
7961
7964
|
checked: r.length > 0 && a === r.length,
|
|
7962
7965
|
indeterminate: a > 0 && a < r.length
|
|
7963
7966
|
};
|
|
7964
|
-
},
|
|
7967
|
+
}, xp = i(null), Sp = () => u(xp), Cp = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7965
7968
|
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: s } = t == null ? {} : t, c = h(() => new Set(a), [a]), u = h(() => {
|
|
7966
7969
|
if (!r) return null;
|
|
7967
7970
|
let e = /* @__PURE__ */ new Map();
|
|
7968
|
-
for (let t of n) e.set(t.id,
|
|
7971
|
+
for (let t of n) e.set(t.id, yp(n, t.id, i, a));
|
|
7969
7972
|
return e;
|
|
7970
7973
|
}, [
|
|
7971
7974
|
i,
|
|
7972
7975
|
a,
|
|
7973
7976
|
r,
|
|
7974
7977
|
n
|
|
7975
|
-
]), d = h(() => r ?
|
|
7978
|
+
]), d = h(() => r ? bp(n, i, a) : void 0, [
|
|
7976
7979
|
i,
|
|
7977
7980
|
a,
|
|
7978
7981
|
r,
|
|
7979
7982
|
n
|
|
7980
7983
|
]), f = l((e) => u == null ? void 0 : u.get(e), [u]), p = l((e) => c.has(e), [c]), m = l((e) => o == null ? void 0 : o(e), [o]), g = l((e) => {
|
|
7981
7984
|
if (!r || c.has(e)) return;
|
|
7982
|
-
let t =
|
|
7985
|
+
let t = gp(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = yp(n, e, i, a);
|
|
7983
7986
|
if (u) {
|
|
7984
7987
|
let e = new Set(l);
|
|
7985
|
-
s == null || s(
|
|
7988
|
+
s == null || s(vp(i, e, c));
|
|
7986
7989
|
} else s == null || s([.../* @__PURE__ */ new Set([...i, ...o])]);
|
|
7987
7990
|
}, [
|
|
7988
7991
|
i,
|
|
@@ -7993,7 +7996,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
7993
7996
|
n
|
|
7994
7997
|
]), _ = l(() => {
|
|
7995
7998
|
if (!r) return;
|
|
7996
|
-
let e =
|
|
7999
|
+
let e = _p(n, a), { checked: t } = bp(n, i, a);
|
|
7997
8000
|
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([.../* @__PURE__ */ new Set([...i, ...e])]);
|
|
7998
8001
|
}, [
|
|
7999
8002
|
i,
|
|
@@ -8019,65 +8022,65 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8019
8022
|
_,
|
|
8020
8023
|
g
|
|
8021
8024
|
]);
|
|
8022
|
-
return /* @__PURE__ */ S(
|
|
8025
|
+
return /* @__PURE__ */ S(xp.Provider, {
|
|
8023
8026
|
value: v,
|
|
8024
8027
|
children: e
|
|
8025
8028
|
});
|
|
8026
|
-
},
|
|
8027
|
-
let
|
|
8029
|
+
}, wp = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isItemDraggable: c = !0, isOpen: l, node: u, onDragEnter: d, onDragOver: f, onDragLeave: p, onDrop: m, onToggle: h }) => {
|
|
8030
|
+
let g = Sp(), _ = g != null && g.enabled ? g.getRowCheckState(u.id) : void 0, v = _ == null ? void 0 : _.checked, y = _ == null ? void 0 : _.indeterminate, x = g == null ? void 0 : g.isRowCheckDisabled(u.id), w = g == null ? void 0 : g.enabled, { data: T, droppable: E } = u, { id: D, cells: O, testId: k, actions: A = [], active: j, onRowClick: M } = T, N = E || a, P = (e) => {
|
|
8028
8031
|
let r = t ? t[e] : void 0;
|
|
8029
|
-
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${
|
|
8032
|
+
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${N ? n + 1 : n})`})` : r;
|
|
8030
8033
|
};
|
|
8031
8034
|
return /* @__PURE__ */ S("table", {
|
|
8032
8035
|
className: Ks.table,
|
|
8033
|
-
"data-testid":
|
|
8034
|
-
onDrop:
|
|
8035
|
-
onDragEnter:
|
|
8036
|
-
onDragOver:
|
|
8037
|
-
onDragLeave:
|
|
8036
|
+
"data-testid": k,
|
|
8037
|
+
onDrop: m,
|
|
8038
|
+
onDragEnter: d,
|
|
8039
|
+
onDragOver: f,
|
|
8040
|
+
onDragLeave: p,
|
|
8038
8041
|
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ C("tr", {
|
|
8039
|
-
onClick:
|
|
8040
|
-
className: b(
|
|
8042
|
+
onClick: M,
|
|
8043
|
+
className: b(hp.treeTableRow, j ? hp.active : void 0),
|
|
8041
8044
|
children: [
|
|
8042
|
-
|
|
8045
|
+
w && /* @__PURE__ */ S(Ul, {
|
|
8043
8046
|
isHeader: !1,
|
|
8044
8047
|
cell: {
|
|
8045
8048
|
type: Hl.CHECKBOX,
|
|
8046
|
-
checked:
|
|
8047
|
-
disabled:
|
|
8048
|
-
indeterminate:
|
|
8049
|
-
tooltip:
|
|
8050
|
-
onChange: () =>
|
|
8049
|
+
checked: v,
|
|
8050
|
+
disabled: x,
|
|
8051
|
+
indeterminate: y,
|
|
8052
|
+
tooltip: g == null ? void 0 : g.getRowCheckTooltip(u.id),
|
|
8053
|
+
onChange: () => g == null ? void 0 : g.toggleRowCheck(u.id)
|
|
8051
8054
|
}
|
|
8052
8055
|
}),
|
|
8053
8056
|
r && /* @__PURE__ */ S("td", {
|
|
8054
|
-
className:
|
|
8055
|
-
children: /* @__PURE__ */ S("div", {
|
|
8056
|
-
className:
|
|
8057
|
+
className: hp.dragCell,
|
|
8058
|
+
children: c && /* @__PURE__ */ S("div", {
|
|
8059
|
+
className: hp.drag,
|
|
8057
8060
|
onClick: (e) => e.stopPropagation(),
|
|
8058
8061
|
ref: i,
|
|
8059
8062
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
8060
8063
|
})
|
|
8061
8064
|
}),
|
|
8062
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className:
|
|
8063
|
-
|
|
8064
|
-
className:
|
|
8065
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ S("td", { className: hp.folderCell }, t)),
|
|
8066
|
+
N && /* @__PURE__ */ S("td", {
|
|
8067
|
+
className: hp.folderCell,
|
|
8065
8068
|
children: /* @__PURE__ */ S("div", {
|
|
8066
|
-
className:
|
|
8067
|
-
onClick: () =>
|
|
8069
|
+
className: hp.folder,
|
|
8070
|
+
onClick: () => h(D),
|
|
8068
8071
|
onMouseDown: (e) => e.stopPropagation(),
|
|
8069
8072
|
children: /* @__PURE__ */ S(q, {
|
|
8070
8073
|
basic: !0,
|
|
8071
|
-
colored:
|
|
8074
|
+
colored: l ? !0 : Oi.MUTED,
|
|
8072
8075
|
disabled: !a,
|
|
8073
8076
|
small: !0,
|
|
8074
8077
|
round: !0,
|
|
8075
|
-
icon: a &&
|
|
8078
|
+
icon: a && l ? (s == null ? void 0 : s.collapse) || U.COLLAPSE : (s == null ? void 0 : s.expand) || U.EXPAND
|
|
8076
8079
|
})
|
|
8077
8080
|
})
|
|
8078
8081
|
}),
|
|
8079
|
-
|
|
8080
|
-
let r =
|
|
8082
|
+
O.map((t, n) => {
|
|
8083
|
+
let r = P(n), i = e ? e[n] : null;
|
|
8081
8084
|
return /* @__PURE__ */ S(Ul, {
|
|
8082
8085
|
isHeader: !1,
|
|
8083
8086
|
cell: t,
|
|
@@ -8089,16 +8092,16 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8089
8092
|
isHeader: !1,
|
|
8090
8093
|
cell: {
|
|
8091
8094
|
type: Hl.ACTIONS,
|
|
8092
|
-
actions:
|
|
8095
|
+
actions: A
|
|
8093
8096
|
}
|
|
8094
8097
|
})
|
|
8095
8098
|
]
|
|
8096
8099
|
}) })
|
|
8097
8100
|
});
|
|
8098
|
-
},
|
|
8099
|
-
let a =
|
|
8101
|
+
}, Tp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
8102
|
+
let a = Sp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
8100
8103
|
return /* @__PURE__ */ S("table", {
|
|
8101
|
-
className: b(Ks.table,
|
|
8104
|
+
className: b(Ks.table, hp.treeTableHeader),
|
|
8102
8105
|
children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
|
|
8103
8106
|
s && c === 0 ? /* @__PURE__ */ S(Ul, {
|
|
8104
8107
|
isHeader: !0,
|
|
@@ -8109,7 +8112,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8109
8112
|
onChange: a.toggleHeaderCheck
|
|
8110
8113
|
}
|
|
8111
8114
|
}) : s ? /* @__PURE__ */ S("td", {}) : null,
|
|
8112
|
-
n && /* @__PURE__ */ S("th", { className:
|
|
8115
|
+
n && /* @__PURE__ */ S("th", { className: hp.dragCell }),
|
|
8113
8116
|
i.cells.map((n, r) => {
|
|
8114
8117
|
let i = t ? t[r] : void 0, a = e ? e[r] : void 0;
|
|
8115
8118
|
return /* @__PURE__ */ S(Ul, {
|
|
@@ -8129,22 +8132,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8129
8132
|
})
|
|
8130
8133
|
] }, c)) })
|
|
8131
8134
|
});
|
|
8132
|
-
},
|
|
8135
|
+
}, Ep = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
|
|
8133
8136
|
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, y = fl(v, _ == null ? [] : _);
|
|
8134
|
-
return /* @__PURE__ */ S(
|
|
8137
|
+
return /* @__PURE__ */ S(Cp, {
|
|
8135
8138
|
rowCheckboxes: u,
|
|
8136
8139
|
rows: v,
|
|
8137
8140
|
children: /* @__PURE__ */ C("div", {
|
|
8138
|
-
className:
|
|
8141
|
+
className: hp.treeTable,
|
|
8139
8142
|
"data-testid": f,
|
|
8140
8143
|
style: { width: g },
|
|
8141
|
-
children: [!!_ && /* @__PURE__ */ S(
|
|
8144
|
+
children: [!!_ && /* @__PURE__ */ S(Tp, {
|
|
8142
8145
|
columnAlignment: m,
|
|
8143
8146
|
columnWidths: h,
|
|
8144
8147
|
draggable: r,
|
|
8145
8148
|
hasRowActions: y,
|
|
8146
8149
|
headers: _
|
|
8147
|
-
}), /* @__PURE__ */ S(
|
|
8150
|
+
}), /* @__PURE__ */ S(mp, {
|
|
8148
8151
|
allowParentReassignment: e,
|
|
8149
8152
|
autoOpenActiveItems: t,
|
|
8150
8153
|
canDrop: n,
|
|
@@ -8160,27 +8163,28 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8160
8163
|
onItemToggle: s,
|
|
8161
8164
|
onListReorder: c,
|
|
8162
8165
|
placeholderIndent: "var(--size)",
|
|
8163
|
-
render: (e, { depth: t, draggable: n, handleRef:
|
|
8166
|
+
render: (e, { depth: t, draggable: n, handleRef: a, hasChild: o, isOpen: s, onToggle: c }) => /* @__PURE__ */ S(wp, {
|
|
8164
8167
|
node: e,
|
|
8165
8168
|
columnAlignment: m,
|
|
8166
8169
|
columnWidths: h,
|
|
8167
8170
|
depth: t,
|
|
8168
|
-
draggable:
|
|
8169
|
-
handleRef:
|
|
8170
|
-
hasChild:
|
|
8171
|
+
draggable: r,
|
|
8172
|
+
handleRef: a,
|
|
8173
|
+
hasChild: o,
|
|
8171
8174
|
hasRowActions: y,
|
|
8172
8175
|
icons: i,
|
|
8173
|
-
|
|
8174
|
-
|
|
8176
|
+
isItemDraggable: n,
|
|
8177
|
+
isOpen: s,
|
|
8178
|
+
onToggle: c
|
|
8175
8179
|
}, e.id),
|
|
8176
8180
|
treeRef: p
|
|
8177
8181
|
})]
|
|
8178
8182
|
})
|
|
8179
8183
|
});
|
|
8180
|
-
},
|
|
8184
|
+
}, Dp = Object.freeze({
|
|
8181
8185
|
Translations: "translations",
|
|
8182
8186
|
LanguageKey: "languageKey"
|
|
8183
|
-
}),
|
|
8187
|
+
}), Op = {
|
|
8184
8188
|
unified: "Unified",
|
|
8185
8189
|
split: "Split",
|
|
8186
8190
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -8203,15 +8207,15 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8203
8207
|
showAll: "Show all",
|
|
8204
8208
|
unknown: "Unknown",
|
|
8205
8209
|
unexpectedError: "Unexpected error"
|
|
8206
|
-
},
|
|
8210
|
+
}, kp = (e) => Object.keys(Op).reduce((t, n) => ({
|
|
8207
8211
|
...t,
|
|
8208
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
8209
|
-
}), {}),
|
|
8210
|
-
[
|
|
8211
|
-
[
|
|
8212
|
-
},
|
|
8213
|
-
|
|
8214
|
-
},
|
|
8212
|
+
[n]: (e == null ? void 0 : e[n]) || (Op == null ? void 0 : Op[n])
|
|
8213
|
+
}), {}), Ap = {
|
|
8214
|
+
[Dp.Translations]: kp(),
|
|
8215
|
+
[Dp.LanguageKey]: "en"
|
|
8216
|
+
}, jp = (e) => e ? Ap[e] : Ap, Mp = (e, t) => {
|
|
8217
|
+
Ap[e] = t;
|
|
8218
|
+
}, Np = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
8215
8219
|
var a;
|
|
8216
8220
|
let { unitTemplate: o = null } = (a = Rf()) == null ? {} : a;
|
|
8217
8221
|
return e[n] = r == null ? Df(n, o) : r, t[n] = i, {
|
|
@@ -8221,7 +8225,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8221
8225
|
}, {
|
|
8222
8226
|
preferredUnits: {},
|
|
8223
8227
|
storageUnits: {}
|
|
8224
|
-
}),
|
|
8228
|
+
}), Pp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
|
|
8225
8229
|
...e,
|
|
8226
8230
|
cells: e.cells.map((e) => {
|
|
8227
8231
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
@@ -8258,8 +8262,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8258
8262
|
}
|
|
8259
8263
|
return e;
|
|
8260
8264
|
})
|
|
8261
|
-
}),
|
|
8262
|
-
let { translations: i } =
|
|
8265
|
+
}), Fp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
8266
|
+
let { translations: i } = jp();
|
|
8263
8267
|
return e ? e.map((e) => ({
|
|
8264
8268
|
...e,
|
|
8265
8269
|
cells: e.cells.map((e) => {
|
|
@@ -8288,8 +8292,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8288
8292
|
return e;
|
|
8289
8293
|
})
|
|
8290
8294
|
})) : [];
|
|
8291
|
-
},
|
|
8292
|
-
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } =
|
|
8295
|
+
}, Ip = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
|
|
8296
|
+
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Np(t), m = Ef(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
|
|
8293
8297
|
g((t) => ({
|
|
8294
8298
|
...t,
|
|
8295
8299
|
[e]: n
|
|
@@ -8300,7 +8304,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8300
8304
|
newUnit: n,
|
|
8301
8305
|
unitKey: e
|
|
8302
8306
|
});
|
|
8303
|
-
}, y = l(({ row: e, rowIndex: t }) =>
|
|
8307
|
+
}, y = l(({ row: e, rowIndex: t }) => Pp({
|
|
8304
8308
|
row: s ? s({
|
|
8305
8309
|
row: e,
|
|
8306
8310
|
rowIndex: t
|
|
@@ -8328,7 +8332,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8328
8332
|
}, [t]), /* @__PURE__ */ S(eu, {
|
|
8329
8333
|
table: {
|
|
8330
8334
|
...u,
|
|
8331
|
-
headers:
|
|
8335
|
+
headers: Fp({
|
|
8332
8336
|
headers: e.headers,
|
|
8333
8337
|
selectedUnits: h,
|
|
8334
8338
|
storageUnits: f,
|
|
@@ -8339,8 +8343,8 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8339
8343
|
canListReorder: o,
|
|
8340
8344
|
beforeRenderRow: y
|
|
8341
8345
|
});
|
|
8342
|
-
},
|
|
8343
|
-
let { translations: d } =
|
|
8346
|
+
}, Lp = { settingField: "_settingField_1x02n_1" }, Rp = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
|
|
8347
|
+
let { translations: d } = jp(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
|
|
8344
8348
|
...r ? [] : [{
|
|
8345
8349
|
label: d == null ? void 0 : d.allUsers,
|
|
8346
8350
|
value: !1
|
|
@@ -8355,7 +8359,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8355
8359
|
}] : []
|
|
8356
8360
|
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8357
8361
|
return /* @__PURE__ */ C("div", {
|
|
8358
|
-
className:
|
|
8362
|
+
className: Lp.settingField,
|
|
8359
8363
|
"data-testid": u,
|
|
8360
8364
|
children: [/* @__PURE__ */ C(bd, {
|
|
8361
8365
|
justifyContent: "space-between",
|
|
@@ -8387,7 +8391,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8387
8391
|
children: f(t)
|
|
8388
8392
|
})]
|
|
8389
8393
|
});
|
|
8390
|
-
},
|
|
8394
|
+
}, zp = { backgroundColor: "var(--color-background-error-muted)" }, Bp = { backgroundColor: "var(--color-background-success-muted)" }, Vp = { backgroundColor: "var(--color-background-warning-muted)" }, Hp = {
|
|
8391
8395
|
addedBackground: "var(--color-diff-added-background)",
|
|
8392
8396
|
addedGutterBackground: "var(--color-diff-added-gutter-background)",
|
|
8393
8397
|
codeFoldBackground: "var(--color-diff-code-fold-background)",
|
|
@@ -8406,10 +8410,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8406
8410
|
removedGutterBackground: "var(--color-diff-removed-gutter-background)",
|
|
8407
8411
|
wordAddedBackground: "var(--color-diff-word-added-background)",
|
|
8408
8412
|
wordRemovedBackground: "var(--color-diff-word-removed-background)"
|
|
8409
|
-
},
|
|
8413
|
+
}, Up = {
|
|
8410
8414
|
variables: {
|
|
8411
|
-
light:
|
|
8412
|
-
dark:
|
|
8415
|
+
light: Hp,
|
|
8416
|
+
dark: Hp
|
|
8413
8417
|
},
|
|
8414
8418
|
diffContainer: { minWidth: "unset" },
|
|
8415
8419
|
codeFoldGutter: {
|
|
@@ -8424,10 +8428,10 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8424
8428
|
pre: { opacity: .5 }
|
|
8425
8429
|
} },
|
|
8426
8430
|
marker: { pre: { opacity: .4 } }
|
|
8427
|
-
},
|
|
8431
|
+
}, Wp = { codeOnly: "_codeOnly_1lph2_42" }, Gp = ({ value: e, compareValue: t, splitView: n = !1, showDiffOnly: r = !1, compareMethod: i = Ti.LINES, extraLinesSurroundingDiff: a, hideSummary: o = !0, className: s }) => {
|
|
8428
8432
|
let c = t !== void 0, l = c ? t : e, u = i !== Ti.WORDS;
|
|
8429
8433
|
return /* @__PURE__ */ S("div", {
|
|
8430
|
-
className: b(s, { [
|
|
8434
|
+
className: b(s, { [Wp.codeOnly]: !c && !n }),
|
|
8431
8435
|
children: /* @__PURE__ */ S(wi, {
|
|
8432
8436
|
oldValue: l,
|
|
8433
8437
|
newValue: e,
|
|
@@ -8439,22 +8443,22 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8439
8443
|
hideLineNumbers: !1,
|
|
8440
8444
|
hideSummary: o,
|
|
8441
8445
|
disableWorker: !0,
|
|
8442
|
-
styles:
|
|
8446
|
+
styles: Up
|
|
8443
8447
|
})
|
|
8444
8448
|
});
|
|
8445
|
-
},
|
|
8449
|
+
}, Kp = (e, t) => {
|
|
8446
8450
|
let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
|
|
8447
8451
|
return {
|
|
8448
8452
|
added: Math.max(0, i),
|
|
8449
8453
|
removed: Math.max(0, a)
|
|
8450
8454
|
};
|
|
8451
|
-
},
|
|
8455
|
+
}, qp = "split", Jp = "unified", Yp = ({ oldJson: e, newJson: t, viewType: n = qp }) => {
|
|
8452
8456
|
var r, i;
|
|
8453
|
-
let { translations: a } =
|
|
8454
|
-
value:
|
|
8457
|
+
let { translations: a } = jp(), [o, s] = v(n), c = [{
|
|
8458
|
+
value: qp,
|
|
8455
8459
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
8456
8460
|
}, {
|
|
8457
|
-
value:
|
|
8461
|
+
value: Jp,
|
|
8458
8462
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
8459
8463
|
}];
|
|
8460
8464
|
d(() => {
|
|
@@ -8462,7 +8466,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8462
8466
|
}, [n]);
|
|
8463
8467
|
let l = ({ target: { value: e } }) => {
|
|
8464
8468
|
s(e);
|
|
8465
|
-
}, { added: u, removed: f } =
|
|
8469
|
+
}, { added: u, removed: f } = Kp(e, t), p = u + f > 3500;
|
|
8466
8470
|
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
|
|
8467
8471
|
bordered: !0,
|
|
8468
8472
|
heading: /* @__PURE__ */ C(bd, {
|
|
@@ -8492,21 +8496,21 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8492
8496
|
muted: !0,
|
|
8493
8497
|
children: a == null ? void 0 : a.changesTooLarge
|
|
8494
8498
|
})
|
|
8495
|
-
}) : /* @__PURE__ */ S(
|
|
8499
|
+
}) : /* @__PURE__ */ S(Gp, {
|
|
8496
8500
|
value: t,
|
|
8497
8501
|
compareValue: e,
|
|
8498
|
-
splitView: o ===
|
|
8502
|
+
splitView: o === qp,
|
|
8499
8503
|
compareMethod: Ti.WORDS,
|
|
8500
8504
|
showDiffOnly: !0,
|
|
8501
8505
|
hideSummary: !1
|
|
8502
8506
|
})
|
|
8503
8507
|
}) });
|
|
8504
|
-
},
|
|
8508
|
+
}, Xp = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Zp = (e) => {
|
|
8505
8509
|
var t;
|
|
8506
8510
|
if (e.id != null) return String(e.id);
|
|
8507
|
-
let n =
|
|
8511
|
+
let n = Xp((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
8508
8512
|
return n == null ? "" : String(n);
|
|
8509
|
-
},
|
|
8513
|
+
}, Qp = (e, t) => ({
|
|
8510
8514
|
...e,
|
|
8511
8515
|
cells: e.cells.map((e) => ({
|
|
8512
8516
|
...e,
|
|
@@ -8515,7 +8519,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8515
8519
|
...t
|
|
8516
8520
|
}
|
|
8517
8521
|
}))
|
|
8518
|
-
}),
|
|
8522
|
+
}), $p = (e, t) => ({
|
|
8519
8523
|
...e,
|
|
8520
8524
|
cells: e.cells.map((e, n) => {
|
|
8521
8525
|
var r;
|
|
@@ -8524,17 +8528,17 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8524
8528
|
...e,
|
|
8525
8529
|
style: {
|
|
8526
8530
|
...e.style,
|
|
8527
|
-
...
|
|
8531
|
+
...Vp
|
|
8528
8532
|
},
|
|
8529
8533
|
tooltip: typeof a == "number" ? String(a) : a
|
|
8530
8534
|
};
|
|
8531
8535
|
})
|
|
8532
|
-
}),
|
|
8536
|
+
}), em = (e = [], t = []) => {
|
|
8533
8537
|
let n = /* @__PURE__ */ new Map();
|
|
8534
|
-
for (let e of t) n.set(
|
|
8535
|
-
let r = new Set(e.map(
|
|
8538
|
+
for (let e of t) n.set(Zp(e), e);
|
|
8539
|
+
let r = new Set(e.map(Zp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8536
8540
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8537
|
-
let n = t[e], c =
|
|
8541
|
+
let n = t[e], c = Zp(n);
|
|
8538
8542
|
if (r.has(c)) {
|
|
8539
8543
|
o = c;
|
|
8540
8544
|
continue;
|
|
@@ -8549,7 +8553,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8549
8553
|
a.reverse();
|
|
8550
8554
|
let c = [];
|
|
8551
8555
|
for (let t of e) {
|
|
8552
|
-
let e =
|
|
8556
|
+
let e = Zp(t), r = i.get(e);
|
|
8553
8557
|
if (r) for (let e of r) c.push({
|
|
8554
8558
|
status: "deleted",
|
|
8555
8559
|
row: e
|
|
@@ -8569,11 +8573,11 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8569
8573
|
row: e
|
|
8570
8574
|
});
|
|
8571
8575
|
return c;
|
|
8572
|
-
},
|
|
8573
|
-
let i = h(() =>
|
|
8576
|
+
}, tm = (e) => e.status === "deleted" ? Qp(e.row, zp) : e.status === "added" ? Qp(e.row, Bp) : $p(e.row, e.compareRow), nm = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8577
|
+
let i = h(() => em(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
|
|
8574
8578
|
if (!a) return i.map((e) => e.row);
|
|
8575
8579
|
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8576
|
-
let r = i[t], a = r ?
|
|
8580
|
+
let r = i[t], a = r ? tm(r) : e;
|
|
8577
8581
|
return n ? n({
|
|
8578
8582
|
row: a,
|
|
8579
8583
|
rowIndex: t
|
|
@@ -8592,7 +8596,7 @@ var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao =
|
|
|
8592
8596
|
};
|
|
8593
8597
|
//#endregion
|
|
8594
8598
|
//#region src/helpers/date.ts
|
|
8595
|
-
function
|
|
8599
|
+
function rm({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8596
8600
|
return e ? new Date(e).toLocaleString(a, {
|
|
8597
8601
|
year: "numeric",
|
|
8598
8602
|
month: "short",
|
|
@@ -8606,28 +8610,28 @@ function nm({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8606
8610
|
}
|
|
8607
8611
|
//#endregion
|
|
8608
8612
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8609
|
-
function
|
|
8613
|
+
function im(e) {
|
|
8610
8614
|
var t;
|
|
8611
8615
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8612
8616
|
if (!n) throw Error("Invalid RegExp");
|
|
8613
8617
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8614
8618
|
}
|
|
8615
|
-
function
|
|
8619
|
+
function am(e) {
|
|
8616
8620
|
if (typeof e != "object") return e;
|
|
8617
8621
|
if (e === null) return null;
|
|
8618
|
-
if (Array.isArray(e)) return e.map(
|
|
8622
|
+
if (Array.isArray(e)) return e.map(am);
|
|
8619
8623
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8620
|
-
if (e instanceof RegExp) return
|
|
8624
|
+
if (e instanceof RegExp) return im(e);
|
|
8621
8625
|
let t = {};
|
|
8622
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8626
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = am(e[n]));
|
|
8623
8627
|
return t;
|
|
8624
8628
|
}
|
|
8625
8629
|
//#endregion
|
|
8626
8630
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8627
|
-
function
|
|
8631
|
+
function om(e, t) {
|
|
8628
8632
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8629
8633
|
}
|
|
8630
|
-
var
|
|
8634
|
+
var sm = (e) => e[e.length - 1], cm = class {
|
|
8631
8635
|
setResult(e) {
|
|
8632
8636
|
return this.result = e, this.hasResult = !0, this;
|
|
8633
8637
|
}
|
|
@@ -8635,16 +8639,16 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8635
8639
|
return this.exiting = !0, this;
|
|
8636
8640
|
}
|
|
8637
8641
|
push(e, t) {
|
|
8638
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8642
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (om(this.children), sm(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8639
8643
|
}
|
|
8640
|
-
},
|
|
8644
|
+
}, lm = class extends cm {
|
|
8641
8645
|
constructor(e, t) {
|
|
8642
8646
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8643
8647
|
}
|
|
8644
8648
|
prepareDeltaResult(e) {
|
|
8645
8649
|
var t, n, r, i;
|
|
8646
8650
|
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)) {
|
|
8647
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8651
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : am;
|
|
8648
8652
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8649
8653
|
}
|
|
8650
8654
|
return e;
|
|
@@ -8652,15 +8656,15 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8652
8656
|
setResult(e) {
|
|
8653
8657
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8654
8658
|
}
|
|
8655
|
-
},
|
|
8659
|
+
}, um = class extends cm {
|
|
8656
8660
|
constructor(e, t) {
|
|
8657
8661
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8658
8662
|
}
|
|
8659
|
-
},
|
|
8663
|
+
}, dm = class extends cm {
|
|
8660
8664
|
constructor(e) {
|
|
8661
8665
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8662
8666
|
}
|
|
8663
|
-
},
|
|
8667
|
+
}, fm = class {
|
|
8664
8668
|
constructor(e) {
|
|
8665
8669
|
this.name = e, this.filters = [];
|
|
8666
8670
|
}
|
|
@@ -8724,7 +8728,7 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8724
8728
|
}
|
|
8725
8729
|
}), this);
|
|
8726
8730
|
}
|
|
8727
|
-
},
|
|
8731
|
+
}, pm = class {
|
|
8728
8732
|
constructor(e) {
|
|
8729
8733
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8730
8734
|
}
|
|
@@ -8751,7 +8755,7 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8751
8755
|
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);
|
|
8752
8756
|
return n.hasResult ? n.result : void 0;
|
|
8753
8757
|
}
|
|
8754
|
-
},
|
|
8758
|
+
}, mm = (e, t, n, r) => e[n] === t[r], hm = (e, t, n, r) => {
|
|
8755
8759
|
var i, a, o;
|
|
8756
8760
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8757
8761
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8767,7 +8771,7 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8767
8771
|
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);
|
|
8768
8772
|
}
|
|
8769
8773
|
return d;
|
|
8770
|
-
},
|
|
8774
|
+
}, gm = (e, t, n, r) => {
|
|
8771
8775
|
let i = t.length, a = n.length, o = {
|
|
8772
8776
|
sequence: [],
|
|
8773
8777
|
indices1: [],
|
|
@@ -8789,11 +8793,11 @@ var om = (e) => e[e.length - 1], sm = class {
|
|
|
8789
8793
|
}
|
|
8790
8794
|
}
|
|
8791
8795
|
return o;
|
|
8792
|
-
},
|
|
8796
|
+
}, _m = { get: (e, t, n, r) => {
|
|
8793
8797
|
let i = r || {};
|
|
8794
|
-
return hm(
|
|
8795
|
-
} },
|
|
8796
|
-
function
|
|
8798
|
+
return gm(hm(e, t, n || mm, i), e, t, i);
|
|
8799
|
+
} }, vm = 3;
|
|
8800
|
+
function ym(e, t, n, r) {
|
|
8797
8801
|
for (let i = 0; i < n; i++) {
|
|
8798
8802
|
let n = e[i];
|
|
8799
8803
|
for (let e = 0; e < r; e++) {
|
|
@@ -8803,7 +8807,7 @@ function vm(e, t, n, r) {
|
|
|
8803
8807
|
}
|
|
8804
8808
|
return !1;
|
|
8805
8809
|
}
|
|
8806
|
-
function
|
|
8810
|
+
function bm(e, t, n, r, i) {
|
|
8807
8811
|
let a = e[n], o = t[r];
|
|
8808
8812
|
if (a === o) return !0;
|
|
8809
8813
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8816,15 +8820,15 @@ function ym(e, t, n, r, i) {
|
|
|
8816
8820
|
let l = i.hashCache2[r];
|
|
8817
8821
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8818
8822
|
}
|
|
8819
|
-
var
|
|
8823
|
+
var xm = function(e) {
|
|
8820
8824
|
var t, n, r, i, a;
|
|
8821
8825
|
if (!e.leftIsArray) return;
|
|
8822
8826
|
let o = {
|
|
8823
8827
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8824
8828
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8825
8829
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8826
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8827
|
-
for (; c + s < m && c + s < h &&
|
|
8830
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !ym(f, p, m, h)); s < m && s < h && bm(f, p, s, s, o);) l = s, g = new lm(f[l], p[l]), e.push(g, l), s++;
|
|
8831
|
+
for (; c + s < m && c + s < h && bm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new lm(f[u], p[d]), e.push(g, d), c++;
|
|
8828
8832
|
let _;
|
|
8829
8833
|
if (s + c === m) {
|
|
8830
8834
|
if (m === h) {
|
|
@@ -8848,7 +8852,7 @@ var bm = function(e) {
|
|
|
8848
8852
|
return;
|
|
8849
8853
|
}
|
|
8850
8854
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8851
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8855
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = _m.get(v, y, bm, o), x = [];
|
|
8852
8856
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8853
8857
|
let t = `_${l}`;
|
|
8854
8858
|
_[t] = [
|
|
@@ -8869,8 +8873,8 @@ var bm = function(e) {
|
|
|
8869
8873
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8870
8874
|
u = x[n];
|
|
8871
8875
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8872
|
-
if (u !== void 0 && r &&
|
|
8873
|
-
r.splice(1, 2, l,
|
|
8876
|
+
if (u !== void 0 && r && bm(v, y, u - s, l - s, o)) {
|
|
8877
|
+
r.splice(1, 2, l, vm), r.splice(1, 2, l, vm), C || (r[0] = ""), d = l, g = new lm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8874
8878
|
break;
|
|
8875
8879
|
}
|
|
8876
8880
|
}
|
|
@@ -8878,20 +8882,20 @@ var bm = function(e) {
|
|
|
8878
8882
|
} else {
|
|
8879
8883
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8880
8884
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8881
|
-
d = b.indices2[t] + s, g = new
|
|
8885
|
+
d = b.indices2[t] + s, g = new lm(f[u], p[d]), e.push(g, d);
|
|
8882
8886
|
}
|
|
8883
8887
|
}
|
|
8884
8888
|
e.setResult(_).exit();
|
|
8885
8889
|
};
|
|
8886
|
-
|
|
8887
|
-
var
|
|
8890
|
+
xm.filterName = "arrays";
|
|
8891
|
+
var Sm = {
|
|
8888
8892
|
numerically(e, t) {
|
|
8889
8893
|
return e - t;
|
|
8890
8894
|
},
|
|
8891
8895
|
numericallyBy(e) {
|
|
8892
8896
|
return (t, n) => t[e] - n[e];
|
|
8893
8897
|
}
|
|
8894
|
-
},
|
|
8898
|
+
}, Cm = function(e) {
|
|
8895
8899
|
var t;
|
|
8896
8900
|
if (!e.nested) return;
|
|
8897
8901
|
let n = e.delta;
|
|
@@ -8900,7 +8904,7 @@ var xm = {
|
|
|
8900
8904
|
for (r in a) if (r !== "_t") {
|
|
8901
8905
|
if (r[0] === "_") {
|
|
8902
8906
|
let e = r;
|
|
8903
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8907
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === vm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8904
8908
|
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]}`);
|
|
8905
8909
|
} else {
|
|
8906
8910
|
let e = r;
|
|
@@ -8913,15 +8917,15 @@ var xm = {
|
|
|
8913
8917
|
});
|
|
8914
8918
|
}
|
|
8915
8919
|
}
|
|
8916
|
-
for (s = s.sort(
|
|
8920
|
+
for (s = s.sort(Sm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8917
8921
|
if (i = s[r], i === void 0) continue;
|
|
8918
8922
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8919
|
-
(e == null ? void 0 : e[2]) ===
|
|
8923
|
+
(e == null ? void 0 : e[2]) === vm && c.push({
|
|
8920
8924
|
index: e[1],
|
|
8921
8925
|
value: t
|
|
8922
8926
|
});
|
|
8923
8927
|
}
|
|
8924
|
-
c = c.sort(
|
|
8928
|
+
c = c.sort(Sm.numericallyBy("index"));
|
|
8925
8929
|
let u = c.length;
|
|
8926
8930
|
for (r = 0; r < u; r++) {
|
|
8927
8931
|
let e = c[r];
|
|
@@ -8931,7 +8935,7 @@ var xm = {
|
|
|
8931
8935
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8932
8936
|
let t = l[r];
|
|
8933
8937
|
if (t === void 0) continue;
|
|
8934
|
-
let n = new
|
|
8938
|
+
let n = new um(o[t.index], t.delta);
|
|
8935
8939
|
e.push(n, t.index);
|
|
8936
8940
|
}
|
|
8937
8941
|
if (!e.children) {
|
|
@@ -8940,8 +8944,8 @@ var xm = {
|
|
|
8940
8944
|
}
|
|
8941
8945
|
e.exit();
|
|
8942
8946
|
};
|
|
8943
|
-
|
|
8944
|
-
var
|
|
8947
|
+
Cm.filterName = "arrays";
|
|
8948
|
+
var wm = function(e) {
|
|
8945
8949
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8946
8950
|
let t = e.left, n = e.children.length;
|
|
8947
8951
|
for (let r = 0; r < n; r++) {
|
|
@@ -8952,16 +8956,16 @@ var Cm = function(e) {
|
|
|
8952
8956
|
}
|
|
8953
8957
|
e.setResult(t).exit();
|
|
8954
8958
|
};
|
|
8955
|
-
|
|
8956
|
-
var
|
|
8959
|
+
wm.filterName = "arraysCollectChildren";
|
|
8960
|
+
var Tm = function(e) {
|
|
8957
8961
|
if (!e.nested) {
|
|
8958
8962
|
let t = e.delta;
|
|
8959
|
-
if (t[2] ===
|
|
8963
|
+
if (t[2] === vm) {
|
|
8960
8964
|
let n = t;
|
|
8961
8965
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8962
8966
|
n[0],
|
|
8963
8967
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8964
|
-
|
|
8968
|
+
vm
|
|
8965
8969
|
]).exit();
|
|
8966
8970
|
}
|
|
8967
8971
|
return;
|
|
@@ -8971,20 +8975,20 @@ var wm = function(e) {
|
|
|
8971
8975
|
let n = t;
|
|
8972
8976
|
for (let t in n) {
|
|
8973
8977
|
if (t === "_t") continue;
|
|
8974
|
-
let r = new
|
|
8978
|
+
let r = new dm(n[t]);
|
|
8975
8979
|
e.push(r, t);
|
|
8976
8980
|
}
|
|
8977
8981
|
e.exit();
|
|
8978
8982
|
};
|
|
8979
|
-
|
|
8980
|
-
var
|
|
8983
|
+
Tm.filterName = "arrays";
|
|
8984
|
+
var Em = (e, t, n) => {
|
|
8981
8985
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8982
8986
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8983
8987
|
let r = +t;
|
|
8984
8988
|
for (let n in e) {
|
|
8985
8989
|
let i = e[n];
|
|
8986
8990
|
if (Array.isArray(i)) {
|
|
8987
|
-
if (i[2] ===
|
|
8991
|
+
if (i[2] === vm) {
|
|
8988
8992
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8989
8993
|
if (a === +t) return e;
|
|
8990
8994
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8992,7 +8996,7 @@ var Tm = (e, t, n) => {
|
|
|
8992
8996
|
}
|
|
8993
8997
|
}
|
|
8994
8998
|
return r;
|
|
8995
|
-
},
|
|
8999
|
+
}, Dm = (e) => {
|
|
8996
9000
|
if (!e || !e.children) return;
|
|
8997
9001
|
let t = e.delta;
|
|
8998
9002
|
if (t._t !== "a") return;
|
|
@@ -9003,22 +9007,22 @@ var Tm = (e, t, n) => {
|
|
|
9003
9007
|
let a = r.newName;
|
|
9004
9008
|
if (a === void 0) {
|
|
9005
9009
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
9006
|
-
a =
|
|
9010
|
+
a = Em(n, r.childName, r.result);
|
|
9007
9011
|
}
|
|
9008
9012
|
i[a] !== r.result && (i[a] = r.result);
|
|
9009
9013
|
}
|
|
9010
9014
|
e.setResult(i).exit();
|
|
9011
9015
|
};
|
|
9012
|
-
|
|
9016
|
+
Dm.filterName = "arraysCollectChildren";
|
|
9013
9017
|
//#endregion
|
|
9014
9018
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
9015
|
-
var
|
|
9019
|
+
var Om = function(e) {
|
|
9016
9020
|
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();
|
|
9017
9021
|
};
|
|
9018
|
-
|
|
9022
|
+
Om.filterName = "dates";
|
|
9019
9023
|
//#endregion
|
|
9020
9024
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
9021
|
-
var
|
|
9025
|
+
var km = /* @__PURE__ */ new Set(["__proto__"]), Am = (e) => {
|
|
9022
9026
|
if (!e || !e.children) return;
|
|
9023
9027
|
let t = e.children.length, n = e.result;
|
|
9024
9028
|
for (let r = 0; r < t; r++) {
|
|
@@ -9030,18 +9034,18 @@ var Om = /* @__PURE__ */ new Set(["__proto__"]), km = (e) => {
|
|
|
9030
9034
|
}
|
|
9031
9035
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
9032
9036
|
};
|
|
9033
|
-
|
|
9034
|
-
var
|
|
9037
|
+
Am.filterName = "collectChildren";
|
|
9038
|
+
var jm = (e) => {
|
|
9035
9039
|
var t;
|
|
9036
9040
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
9037
9041
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
9038
9042
|
for (let t in n) {
|
|
9039
9043
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
9040
|
-
let a = new
|
|
9044
|
+
let a = new lm(n[t], r[t]);
|
|
9041
9045
|
e.push(a, t);
|
|
9042
9046
|
}
|
|
9043
9047
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
9044
|
-
let n = new
|
|
9048
|
+
let n = new lm(void 0, r[t]);
|
|
9045
9049
|
e.push(n, t);
|
|
9046
9050
|
}
|
|
9047
9051
|
if (!e.children || e.children.length === 0) {
|
|
@@ -9050,15 +9054,15 @@ var Am = (e) => {
|
|
|
9050
9054
|
}
|
|
9051
9055
|
e.exit();
|
|
9052
9056
|
};
|
|
9053
|
-
|
|
9054
|
-
var
|
|
9057
|
+
jm.filterName = "objects";
|
|
9058
|
+
var Mm = function(e) {
|
|
9055
9059
|
if (!e.nested) return;
|
|
9056
9060
|
let t = e.delta;
|
|
9057
9061
|
if (t._t) return;
|
|
9058
9062
|
let n = t, r = !1;
|
|
9059
9063
|
for (let t in n) {
|
|
9060
|
-
if (
|
|
9061
|
-
let i = e.left, a = new
|
|
9064
|
+
if (km.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
9065
|
+
let i = e.left, a = new um(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
9062
9066
|
e.push(a, t), r = !0;
|
|
9063
9067
|
}
|
|
9064
9068
|
if (!r) {
|
|
@@ -9067,8 +9071,8 @@ var jm = function(e) {
|
|
|
9067
9071
|
}
|
|
9068
9072
|
e.exit();
|
|
9069
9073
|
};
|
|
9070
|
-
|
|
9071
|
-
var
|
|
9074
|
+
Mm.filterName = "objects";
|
|
9075
|
+
var Nm = function(e) {
|
|
9072
9076
|
if (!e || !e.children || e.delta._t) return;
|
|
9073
9077
|
if (e.left === null || typeof e.left != "object") {
|
|
9074
9078
|
e.setResult(e.left).exit();
|
|
@@ -9079,17 +9083,17 @@ var Mm = function(e) {
|
|
|
9079
9083
|
let n = e.children[r];
|
|
9080
9084
|
if (n === void 0) continue;
|
|
9081
9085
|
let i = n.childName;
|
|
9082
|
-
|
|
9086
|
+
km.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
9083
9087
|
}
|
|
9084
9088
|
e.setResult(t).exit();
|
|
9085
9089
|
};
|
|
9086
|
-
|
|
9087
|
-
var
|
|
9090
|
+
Nm.filterName = "collectChildren";
|
|
9091
|
+
var Pm = function(e) {
|
|
9088
9092
|
if (!e.nested || e.delta._t) return;
|
|
9089
9093
|
let t = e.delta, n = !1;
|
|
9090
9094
|
for (let r in t) {
|
|
9091
|
-
if (
|
|
9092
|
-
let i = new
|
|
9095
|
+
if (km.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
9096
|
+
let i = new dm(t[r]);
|
|
9093
9097
|
e.push(i, r), n = !0;
|
|
9094
9098
|
}
|
|
9095
9099
|
if (!n) {
|
|
@@ -9098,25 +9102,25 @@ var Nm = function(e) {
|
|
|
9098
9102
|
}
|
|
9099
9103
|
e.exit();
|
|
9100
9104
|
};
|
|
9101
|
-
|
|
9102
|
-
var
|
|
9105
|
+
Pm.filterName = "objects";
|
|
9106
|
+
var Fm = (e) => {
|
|
9103
9107
|
if (!e || !e.children || e.delta._t) return;
|
|
9104
9108
|
let t = e.children.length, n = {};
|
|
9105
9109
|
for (let r = 0; r < t; r++) {
|
|
9106
9110
|
let t = e.children[r];
|
|
9107
9111
|
if (t === void 0) continue;
|
|
9108
9112
|
let i = t.childName;
|
|
9109
|
-
|
|
9113
|
+
km.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
9110
9114
|
}
|
|
9111
9115
|
e.setResult(n).exit();
|
|
9112
9116
|
};
|
|
9113
|
-
|
|
9117
|
+
Fm.filterName = "collectChildren";
|
|
9114
9118
|
//#endregion
|
|
9115
9119
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
9116
|
-
var
|
|
9117
|
-
function
|
|
9120
|
+
var Im = 2, Lm = 60, Rm = null;
|
|
9121
|
+
function zm(e, t) {
|
|
9118
9122
|
var n;
|
|
9119
|
-
if (!
|
|
9123
|
+
if (!Rm) {
|
|
9120
9124
|
let r;
|
|
9121
9125
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
9122
9126
|
else {
|
|
@@ -9124,7 +9128,7 @@ function Rm(e, t) {
|
|
|
9124
9128
|
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.");
|
|
9125
9129
|
throw e.diff_match_patch_not_found = !0, e;
|
|
9126
9130
|
}
|
|
9127
|
-
|
|
9131
|
+
Rm = {
|
|
9128
9132
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
9129
9133
|
patch: (e, t) => {
|
|
9130
9134
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -9136,17 +9140,17 @@ function Rm(e, t) {
|
|
|
9136
9140
|
}
|
|
9137
9141
|
};
|
|
9138
9142
|
}
|
|
9139
|
-
return
|
|
9143
|
+
return Rm;
|
|
9140
9144
|
}
|
|
9141
|
-
var
|
|
9145
|
+
var Bm = function(e) {
|
|
9142
9146
|
var t, n;
|
|
9143
9147
|
if (e.leftType !== "string") return;
|
|
9144
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
9148
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Lm;
|
|
9145
9149
|
if (r.length < a || i.length < a) {
|
|
9146
9150
|
e.setResult([r, i]).exit();
|
|
9147
9151
|
return;
|
|
9148
9152
|
}
|
|
9149
|
-
let o =
|
|
9153
|
+
let o = zm(e.options);
|
|
9150
9154
|
if (!o) {
|
|
9151
9155
|
e.setResult([r, i]).exit();
|
|
9152
9156
|
return;
|
|
@@ -9155,19 +9159,19 @@ var zm = function(e) {
|
|
|
9155
9159
|
e.setResult([
|
|
9156
9160
|
s(r, i),
|
|
9157
9161
|
0,
|
|
9158
|
-
|
|
9162
|
+
Im
|
|
9159
9163
|
]).exit();
|
|
9160
9164
|
};
|
|
9161
|
-
|
|
9162
|
-
var
|
|
9165
|
+
Bm.filterName = "texts";
|
|
9166
|
+
var Vm = function(e) {
|
|
9163
9167
|
if (e.nested) return;
|
|
9164
9168
|
let t = e.delta;
|
|
9165
|
-
if (t[2] !==
|
|
9166
|
-
let n = t, r =
|
|
9169
|
+
if (t[2] !== Im) return;
|
|
9170
|
+
let n = t, r = zm(e.options, !0).patch;
|
|
9167
9171
|
e.setResult(r(e.left, n[0])).exit();
|
|
9168
9172
|
};
|
|
9169
|
-
|
|
9170
|
-
var
|
|
9173
|
+
Vm.filterName = "texts";
|
|
9174
|
+
var Hm = (e) => {
|
|
9171
9175
|
var t, n, r;
|
|
9172
9176
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9173
9177
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9188,21 +9192,21 @@ var Vm = (e) => {
|
|
|
9188
9192
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9189
9193
|
}
|
|
9190
9194
|
return a.join("\n");
|
|
9191
|
-
},
|
|
9195
|
+
}, Um = function(e) {
|
|
9192
9196
|
if (e.nested) return;
|
|
9193
9197
|
let t = e.delta;
|
|
9194
|
-
if (t[2] !==
|
|
9198
|
+
if (t[2] !== Im) return;
|
|
9195
9199
|
let n = t;
|
|
9196
9200
|
e.setResult([
|
|
9197
|
-
|
|
9201
|
+
Hm(n[0]),
|
|
9198
9202
|
0,
|
|
9199
|
-
|
|
9203
|
+
Im
|
|
9200
9204
|
]).exit();
|
|
9201
9205
|
};
|
|
9202
|
-
|
|
9206
|
+
Um.filterName = "texts";
|
|
9203
9207
|
//#endregion
|
|
9204
9208
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9205
|
-
var
|
|
9209
|
+
var Wm = function(e) {
|
|
9206
9210
|
if (e.left === e.right) {
|
|
9207
9211
|
e.setResult(void 0).exit();
|
|
9208
9212
|
return;
|
|
@@ -9235,8 +9239,8 @@ var Um = function(e) {
|
|
|
9235
9239
|
}
|
|
9236
9240
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9237
9241
|
};
|
|
9238
|
-
|
|
9239
|
-
var
|
|
9242
|
+
Wm.filterName = "trivial";
|
|
9243
|
+
var Gm = function(e) {
|
|
9240
9244
|
if (e.delta === void 0) {
|
|
9241
9245
|
e.setResult(e.left).exit();
|
|
9242
9246
|
return;
|
|
@@ -9260,8 +9264,8 @@ var Wm = function(e) {
|
|
|
9260
9264
|
}
|
|
9261
9265
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9262
9266
|
};
|
|
9263
|
-
|
|
9264
|
-
var
|
|
9267
|
+
Gm.filterName = "trivial";
|
|
9268
|
+
var Km = function(e) {
|
|
9265
9269
|
if (e.delta === void 0) {
|
|
9266
9270
|
e.setResult(e.delta).exit();
|
|
9267
9271
|
return;
|
|
@@ -9282,36 +9286,36 @@ var Gm = function(e) {
|
|
|
9282
9286
|
}
|
|
9283
9287
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9284
9288
|
};
|
|
9285
|
-
|
|
9289
|
+
Km.filterName = "trivial";
|
|
9286
9290
|
//#endregion
|
|
9287
9291
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9288
|
-
var
|
|
9292
|
+
var qm = class {
|
|
9289
9293
|
constructor(e) {
|
|
9290
|
-
this.processor = new
|
|
9294
|
+
this.processor = new pm(e), this.processor.pipe(new fm("diff").append(Am, Wm, Om, Bm, jm, xm).shouldHaveResult()), this.processor.pipe(new fm("patch").append(Nm, wm, Gm, Vm, Mm, Cm).shouldHaveResult()), this.processor.pipe(new fm("reverse").append(Fm, Dm, Km, Um, Pm, Tm).shouldHaveResult());
|
|
9291
9295
|
}
|
|
9292
9296
|
options(e) {
|
|
9293
9297
|
return this.processor.options(e);
|
|
9294
9298
|
}
|
|
9295
9299
|
diff(e, t) {
|
|
9296
|
-
return this.processor.process(new
|
|
9300
|
+
return this.processor.process(new lm(e, t));
|
|
9297
9301
|
}
|
|
9298
9302
|
patch(e, t) {
|
|
9299
|
-
return this.processor.process(new
|
|
9303
|
+
return this.processor.process(new um(e, t));
|
|
9300
9304
|
}
|
|
9301
9305
|
reverse(e) {
|
|
9302
|
-
return this.processor.process(new
|
|
9306
|
+
return this.processor.process(new dm(e));
|
|
9303
9307
|
}
|
|
9304
9308
|
unpatch(e, t) {
|
|
9305
9309
|
return this.patch(e, this.reverse(t));
|
|
9306
9310
|
}
|
|
9307
9311
|
clone(e) {
|
|
9308
|
-
return
|
|
9312
|
+
return am(e);
|
|
9309
9313
|
}
|
|
9310
9314
|
};
|
|
9311
9315
|
//#endregion
|
|
9312
9316
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9313
|
-
function
|
|
9314
|
-
return new
|
|
9317
|
+
function Jm(e) {
|
|
9318
|
+
return new qm(e);
|
|
9315
9319
|
}
|
|
9316
9320
|
//#endregion
|
|
9317
9321
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9873,46 +9877,46 @@ $.Diff = function(e, t) {
|
|
|
9873
9877
|
};
|
|
9874
9878
|
//#endregion
|
|
9875
9879
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9876
|
-
var
|
|
9880
|
+
var Ym = (e = {}) => Jm({
|
|
9877
9881
|
...e,
|
|
9878
9882
|
textDiff: {
|
|
9879
9883
|
diffMatchPatch: $,
|
|
9880
9884
|
minLength: 120
|
|
9881
9885
|
},
|
|
9882
9886
|
cloneDiffValues: !0
|
|
9883
|
-
}),
|
|
9887
|
+
}), Xm = ["user", "unittemplate"], Zm = Ym(), Qm = (e, t, n) => {
|
|
9884
9888
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9885
9889
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9886
9890
|
let n = r[t[e]];
|
|
9887
9891
|
if (n) return n;
|
|
9888
9892
|
}
|
|
9889
9893
|
return n || "";
|
|
9890
|
-
},
|
|
9894
|
+
}, $m = (e) => {
|
|
9891
9895
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9892
9896
|
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);
|
|
9893
|
-
},
|
|
9897
|
+
}, eh = (e) => {
|
|
9894
9898
|
switch (e.length) {
|
|
9895
9899
|
case 1: {
|
|
9896
9900
|
let [t] = e;
|
|
9897
9901
|
return {
|
|
9898
9902
|
type: "created",
|
|
9899
9903
|
before: "",
|
|
9900
|
-
after:
|
|
9904
|
+
after: $m(t)
|
|
9901
9905
|
};
|
|
9902
9906
|
}
|
|
9903
9907
|
case 2: {
|
|
9904
9908
|
let [t, n] = e;
|
|
9905
9909
|
return {
|
|
9906
9910
|
type: "modified",
|
|
9907
|
-
before:
|
|
9908
|
-
after:
|
|
9911
|
+
before: $m(t),
|
|
9912
|
+
after: $m(n)
|
|
9909
9913
|
};
|
|
9910
9914
|
}
|
|
9911
9915
|
case 3: {
|
|
9912
9916
|
let [t] = e;
|
|
9913
9917
|
return {
|
|
9914
9918
|
type: "deleted",
|
|
9915
|
-
before:
|
|
9919
|
+
before: $m(t),
|
|
9916
9920
|
after: ""
|
|
9917
9921
|
};
|
|
9918
9922
|
}
|
|
@@ -9922,15 +9926,15 @@ var Jm = (e = {}) => qm({
|
|
|
9922
9926
|
after: ""
|
|
9923
9927
|
};
|
|
9924
9928
|
}
|
|
9925
|
-
},
|
|
9926
|
-
let r =
|
|
9929
|
+
}, th = (e) => Array.isArray(e), nh = (e, t) => t ? th(t) ? t.length === 0 ? e : t.reduce((e, t) => Zm.unpatch(tn(e), tn(t)), tn(e)) : Zm.unpatch(tn(e), tn(t)) : e, rh = (e) => e.createdAt || e.date, ih = (e, t, n) => {
|
|
9930
|
+
let r = rh(e);
|
|
9927
9931
|
if (!r) return {
|
|
9928
9932
|
oldJson: "",
|
|
9929
9933
|
newJson: "",
|
|
9930
9934
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9931
9935
|
};
|
|
9932
9936
|
let i = t.filter((e) => {
|
|
9933
|
-
let t =
|
|
9937
|
+
let t = rh(e);
|
|
9934
9938
|
return !!(e.diffs && t && t >= r);
|
|
9935
9939
|
}), a = Array.from({ length: i.length + 1 });
|
|
9936
9940
|
a[0] = tn(n);
|
|
@@ -9943,7 +9947,7 @@ var Jm = (e = {}) => qm({
|
|
|
9943
9947
|
a[e + 1] = a[e];
|
|
9944
9948
|
continue;
|
|
9945
9949
|
}
|
|
9946
|
-
a[e + 1] =
|
|
9950
|
+
a[e + 1] = nh(a[e], t);
|
|
9947
9951
|
}
|
|
9948
9952
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9949
9953
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9958,10 +9962,10 @@ var Jm = (e = {}) => qm({
|
|
|
9958
9962
|
oldJson: o,
|
|
9959
9963
|
newJson: s
|
|
9960
9964
|
};
|
|
9961
|
-
},
|
|
9965
|
+
}, ah = (e, t, n = {}, r = []) => {
|
|
9962
9966
|
var i;
|
|
9963
9967
|
if (!e) return;
|
|
9964
|
-
let a = [...
|
|
9968
|
+
let a = [...Xm, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9965
9969
|
Object.keys(e).forEach((i) => {
|
|
9966
9970
|
var o;
|
|
9967
9971
|
let s = e[i];
|
|
@@ -9974,12 +9978,12 @@ var Jm = (e = {}) => qm({
|
|
|
9974
9978
|
sn(s) ? t.push({
|
|
9975
9979
|
deltaFormat: [...s],
|
|
9976
9980
|
path: c
|
|
9977
|
-
}) : hn(s) &&
|
|
9981
|
+
}) : hn(s) && ah(s, t, n, c);
|
|
9978
9982
|
});
|
|
9979
|
-
},
|
|
9983
|
+
}, oh = (e, t = {}) => {
|
|
9980
9984
|
let n = [];
|
|
9981
|
-
return e ? (
|
|
9982
|
-
},
|
|
9985
|
+
return e ? (ah(e, n, t), n) : [];
|
|
9986
|
+
}, sh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), ch = (e) => {
|
|
9983
9987
|
if (e == null || e === "") return "empty";
|
|
9984
9988
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9985
9989
|
if (typeof e == "string") return e;
|
|
@@ -9990,27 +9994,27 @@ var Jm = (e = {}) => qm({
|
|
|
9990
9994
|
} catch {
|
|
9991
9995
|
return String(e);
|
|
9992
9996
|
}
|
|
9993
|
-
},
|
|
9997
|
+
}, lh = (e, t = e.length - 1) => {
|
|
9994
9998
|
if (t >= e.length) return "Value";
|
|
9995
9999
|
let n = e[t];
|
|
9996
|
-
return !n || mr(n) ?
|
|
9997
|
-
},
|
|
9998
|
-
let o =
|
|
10000
|
+
return !n || mr(n) ? lh(e, t - 1) : sh(n);
|
|
10001
|
+
}, uh = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
10002
|
+
let o = ch(r), s = ch(i), c = a ? ` in ${a}` : "";
|
|
9999
10003
|
switch (t) {
|
|
10000
10004
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
10001
10005
|
case "created": return `${e} created ${s}${c}.`;
|
|
10002
10006
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
10003
10007
|
default: return `${e} changed ${n}${c}.`;
|
|
10004
10008
|
}
|
|
10005
|
-
},
|
|
10009
|
+
}, dh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
10006
10010
|
let i = {
|
|
10007
10011
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
10008
10012
|
rows: n.map((n) => {
|
|
10009
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
10010
|
-
return { cells: [{ value:
|
|
10013
|
+
let { deltaFormat: i, path: a } = n, o = Qm(e, a, r), { type: s, before: c, after: l } = eh(i);
|
|
10014
|
+
return { cells: [{ value: uh({
|
|
10011
10015
|
userName: t,
|
|
10012
10016
|
type: s,
|
|
10013
|
-
property:
|
|
10017
|
+
property: lh(a),
|
|
10014
10018
|
before: c,
|
|
10015
10019
|
after: l,
|
|
10016
10020
|
sectionName: o
|
|
@@ -10018,7 +10022,7 @@ var Jm = (e = {}) => qm({
|
|
|
10018
10022
|
})
|
|
10019
10023
|
};
|
|
10020
10024
|
return /* @__PURE__ */ S(eu, { table: i });
|
|
10021
|
-
},
|
|
10025
|
+
}, fh = Object.freeze({
|
|
10022
10026
|
summary: {
|
|
10023
10027
|
label: "Summary",
|
|
10024
10028
|
value: "summary"
|
|
@@ -10027,13 +10031,13 @@ var Jm = (e = {}) => qm({
|
|
|
10027
10031
|
label: "Compare",
|
|
10028
10032
|
value: "compare"
|
|
10029
10033
|
}
|
|
10030
|
-
}),
|
|
10031
|
-
let c = [
|
|
10034
|
+
}), ph = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
10035
|
+
let c = [fh.summary, fh.compare].map(({ label: e, value: t }) => ({
|
|
10032
10036
|
label: e,
|
|
10033
10037
|
value: t
|
|
10034
10038
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
10035
10039
|
if (!d) return null;
|
|
10036
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
10040
|
+
let { oldJson: f, newJson: p, error: m } = ih(e, t, n);
|
|
10037
10041
|
return /* @__PURE__ */ S(Ts, {
|
|
10038
10042
|
visible: r,
|
|
10039
10043
|
centered: !0,
|
|
@@ -10046,15 +10050,15 @@ var Jm = (e = {}) => qm({
|
|
|
10046
10050
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
10047
10051
|
options: c,
|
|
10048
10052
|
value: l
|
|
10049
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
10053
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(dh, {
|
|
10050
10054
|
userName: e.userName,
|
|
10051
10055
|
sectionNames: a,
|
|
10052
|
-
diffs:
|
|
10056
|
+
diffs: oh(d, i),
|
|
10053
10057
|
defaultSectionName: o
|
|
10054
10058
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
10055
10059
|
style: { padding: 16 },
|
|
10056
10060
|
children: m
|
|
10057
|
-
}) : /* @__PURE__ */ S(
|
|
10061
|
+
}) : /* @__PURE__ */ S(Yp, {
|
|
10058
10062
|
oldJson: f,
|
|
10059
10063
|
newJson: p
|
|
10060
10064
|
})] }),
|
|
@@ -10067,7 +10071,7 @@ var Jm = (e = {}) => qm({
|
|
|
10067
10071
|
height: "90vh"
|
|
10068
10072
|
} })
|
|
10069
10073
|
});
|
|
10070
|
-
},
|
|
10074
|
+
}, mh = [
|
|
10071
10075
|
{
|
|
10072
10076
|
label: "10 / page",
|
|
10073
10077
|
value: 10
|
|
@@ -10080,41 +10084,40 @@ var Jm = (e = {}) => qm({
|
|
|
10080
10084
|
label: "50 / page",
|
|
10081
10085
|
value: 50
|
|
10082
10086
|
}
|
|
10083
|
-
],
|
|
10084
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
10087
|
+
], hh = (e, t = {}) => {
|
|
10088
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = oh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
10085
10089
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
10086
10090
|
switch (a) {
|
|
10087
10091
|
case "Created": return `Created by ${r}`;
|
|
10088
|
-
case "Cloned": return `Cloned from ${o}`;
|
|
10089
|
-
case "Reverted": return `
|
|
10090
|
-
case "Restored": return `Restored from ${o}`;
|
|
10092
|
+
case "Cloned": return `Cloned by ${r} (from ${o || "unknown"})`;
|
|
10093
|
+
case "Reverted": return `Restored by ${r} ${o ? `(from ${o})` : ""}`;
|
|
10091
10094
|
case "Imported": return `Imported by ${r}`;
|
|
10092
10095
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
10093
10096
|
default: return `Change by ${r}`;
|
|
10094
10097
|
}
|
|
10095
|
-
},
|
|
10096
|
-
let [
|
|
10098
|
+
}, gh = ({ 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 }) => {
|
|
10099
|
+
let [g, _] = v(!1), [y, b] = v(null), w = (e) => {
|
|
10097
10100
|
if (e.snapshot) {
|
|
10098
10101
|
f == null || f(e.snapshot, e);
|
|
10099
10102
|
return;
|
|
10100
10103
|
}
|
|
10101
|
-
|
|
10102
|
-
},
|
|
10104
|
+
b(e), _(!0);
|
|
10105
|
+
}, T = [{ cells: [
|
|
10103
10106
|
{ value: "Change" },
|
|
10104
10107
|
{ value: "Modified by" },
|
|
10105
10108
|
{ value: "Using" },
|
|
10106
10109
|
{ value: "Operation" },
|
|
10107
10110
|
{ value: "Date" }
|
|
10108
|
-
] }],
|
|
10111
|
+
] }], E = e.map((e) => {
|
|
10109
10112
|
var t;
|
|
10110
|
-
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t
|
|
10113
|
+
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t;
|
|
10111
10114
|
return {
|
|
10112
10115
|
cells: [
|
|
10113
10116
|
{
|
|
10114
|
-
value:
|
|
10117
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : hh(e, l),
|
|
10115
10118
|
type: "Link",
|
|
10116
10119
|
disabled: n,
|
|
10117
|
-
onClick: n ? void 0 :
|
|
10120
|
+
onClick: n ? void 0 : () => w(e),
|
|
10118
10121
|
breakWord: !0
|
|
10119
10122
|
},
|
|
10120
10123
|
{
|
|
@@ -10130,8 +10133,8 @@ var Jm = (e = {}) => qm({
|
|
|
10130
10133
|
type: "Static"
|
|
10131
10134
|
},
|
|
10132
10135
|
{
|
|
10133
|
-
value:
|
|
10134
|
-
date:
|
|
10136
|
+
value: rm({
|
|
10137
|
+
date: rh(e),
|
|
10135
10138
|
showTime: !0
|
|
10136
10139
|
}),
|
|
10137
10140
|
type: "Static"
|
|
@@ -10161,9 +10164,9 @@ var Jm = (e = {}) => qm({
|
|
|
10161
10164
|
theme: Mi.WHITE,
|
|
10162
10165
|
children: /* @__PURE__ */ S(Sa, { dark: !0 })
|
|
10163
10166
|
}) : /* @__PURE__ */ S(eu, { table: {
|
|
10164
|
-
headers:
|
|
10167
|
+
headers: T,
|
|
10165
10168
|
testId: "auditlog-table",
|
|
10166
|
-
rows:
|
|
10169
|
+
rows: E,
|
|
10167
10170
|
fixedWidth: "100%",
|
|
10168
10171
|
bordered: !1,
|
|
10169
10172
|
actionsRight: !0,
|
|
@@ -10174,24 +10177,24 @@ var Jm = (e = {}) => qm({
|
|
|
10174
10177
|
onChange: (e) => {
|
|
10175
10178
|
u(Number(e.target.value));
|
|
10176
10179
|
},
|
|
10177
|
-
options:
|
|
10180
|
+
options: mh,
|
|
10178
10181
|
value: a
|
|
10179
10182
|
},
|
|
10180
10183
|
onSelectPage: (e) => d(e),
|
|
10181
10184
|
small: !0
|
|
10182
10185
|
} }
|
|
10183
10186
|
} })
|
|
10184
|
-
}),
|
|
10187
|
+
}), g && y && y.diffs && /* @__PURE__ */ S(ph, {
|
|
10185
10188
|
sectionNames: o,
|
|
10186
|
-
isOpen:
|
|
10187
|
-
onClose: () =>
|
|
10189
|
+
isOpen: g,
|
|
10190
|
+
onClose: () => _(!1),
|
|
10188
10191
|
auditLogs: e,
|
|
10189
|
-
auditLog:
|
|
10192
|
+
auditLog: y,
|
|
10190
10193
|
defaultSectionName: s,
|
|
10191
10194
|
data: t,
|
|
10192
10195
|
transformDiffsConfig: l
|
|
10193
10196
|
})] });
|
|
10194
|
-
},
|
|
10197
|
+
}, _h = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10195
10198
|
let i = window.location.href, a = _(i);
|
|
10196
10199
|
return d(() => {
|
|
10197
10200
|
a.current = i;
|
|
@@ -10214,20 +10217,20 @@ var Jm = (e = {}) => qm({
|
|
|
10214
10217
|
});
|
|
10215
10218
|
};
|
|
10216
10219
|
}, [e, t]), null;
|
|
10217
|
-
},
|
|
10220
|
+
}, vh = {
|
|
10218
10221
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10219
10222
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10220
10223
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10221
|
-
},
|
|
10222
|
-
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } =
|
|
10224
|
+
}, yh = ({ options: e }) => {
|
|
10225
|
+
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = jp();
|
|
10223
10226
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10224
10227
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10225
|
-
className: b(n ?
|
|
10228
|
+
className: b(n ? vh.sidebarErrorBoundary : "", r ? vh.rightSidebarErrorBoundary : ""),
|
|
10226
10229
|
style: a,
|
|
10227
10230
|
children: o == null ? void 0 : o.unexpectedError
|
|
10228
10231
|
});
|
|
10229
10232
|
let s = /* @__PURE__ */ S("div", {
|
|
10230
|
-
className:
|
|
10233
|
+
className: vh.errorBoundary,
|
|
10231
10234
|
style: a,
|
|
10232
10235
|
children: /* @__PURE__ */ S(Gs, { message: {
|
|
10233
10236
|
icon: !0,
|
|
@@ -10242,19 +10245,19 @@ var Jm = (e = {}) => qm({
|
|
|
10242
10245
|
padding: 0,
|
|
10243
10246
|
children: s
|
|
10244
10247
|
}) : s;
|
|
10245
|
-
},
|
|
10246
|
-
fallback: /* @__PURE__ */ S(
|
|
10248
|
+
}, bh = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
|
|
10249
|
+
fallback: /* @__PURE__ */ S(yh, { options: t }),
|
|
10247
10250
|
onError: (e, t) => {
|
|
10248
10251
|
console.error("Error caught by boundary:", e, t);
|
|
10249
10252
|
},
|
|
10250
10253
|
children: e
|
|
10251
|
-
}),
|
|
10254
|
+
}), xh = (e, t = {}) => (n) => /* @__PURE__ */ S(bh, {
|
|
10252
10255
|
options: t,
|
|
10253
10256
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10254
|
-
}),
|
|
10255
|
-
|
|
10256
|
-
e ===
|
|
10257
|
+
}), Sh = (e = {}) => (t) => xh(t, e), Ch = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, wh = (e) => {
|
|
10258
|
+
Mp(Dp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10259
|
+
e === Dp.Translations ? Mp(e, kp(t)) : Mp(e, Ch(t) ? t : { ...t });
|
|
10257
10260
|
});
|
|
10258
10261
|
};
|
|
10259
10262
|
//#endregion
|
|
10260
|
-
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align,
|
|
10263
|
+
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, gh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Gp as DiffCode, nm as DiffTable, Yp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, rp as ElementType, du as Empty, bh as ErrorBoundary, yd as Field, hd as FileButton, bs as FileInput, bd as Flex, Sd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, _d as Label, Fd as List, wd as ListHeading, Ad as ListSubheading, Ld as Loader, mf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, yl as NumberInput, Wd as OptionDropdown, Kd as Page, sl as Pagination, lp as PopConfirm, So as Popover, qd as Portal, Yd as PrintHeader, Os as ProgressBar, Xd as RadioButton, pf as RichTextInput, gf as Row, el as Select, Rp as SettingField, xf as SideBar, Cf as Skeleton, kl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, eu as Table, md as TableImportExport, Xf as Tabs, Yo as Text, $f as TextArea, Zf as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, Qu as Toggle, K as Tooltip, op as TopBar, mp as Tree, Ep as TreeTable, Di as TriggerType, Uf as UnitInput, qf as UnitSlider, Ip as UnitTable, _h as UsageTracker, Yu as dismissToast, Bf as initializeContext, wh as initializeGuiLibrary, vs as readFile, Ju as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, Sh as withChainableErrorBoundary, xh as withErrorBoundary };
|