@oliasoft-open-source/react-ui-library 6.11.0 → 6.12.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/components/unit-slider/unit-slider.d.ts +27 -0
- package/dist/components/unit-slider/unit-slider.d.ts.map +1 -0
- package/dist/components/unit-slider/unit-slider.stories.d.ts +8 -0
- package/dist/components/unit-slider/unit-slider.stories.d.ts.map +1 -0
- package/dist/components/unit-slider/unit-slider.test-case.stories.d.ts +15 -0
- package/dist/components/unit-slider/unit-slider.test-case.stories.d.ts.map +1 -0
- package/dist/global.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1185 -1086
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { Fragment as t, createContext as n, createElement as r, forwardRef as i, isValidElement as a, memo as o, useCallback as s, useContext as c, useEffect as l, useImperativeHandle as u, useLayoutEffect as d, useMemo as f, useReducer as p, useRef as m, useState as h, useTransition as g } from "react";
|
|
2
2
|
import _ from "classnames";
|
|
3
3
|
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
4
|
-
import { TbAlertTriangle as x, TbArrowDown as S, TbArrowLeft as C, TbArrowRight as w, TbArrowUp as T, TbArrowsDiagonal as E, TbArrowsMaximize as D, TbArrowsMinimize as O, TbArrowsMove as k, TbArrowsSplit as A, TbBell as j, TbBold as M, TbBolt as N, TbBook2 as P, TbBuildingSkyscraper as F, TbCamera as I, TbChartBar as L, TbChartLine as R, TbChartPie2 as
|
|
4
|
+
import { TbAlertTriangle as x, TbArrowDown as S, TbArrowLeft as C, TbArrowRight as w, TbArrowUp as T, TbArrowsDiagonal as E, TbArrowsMaximize as D, TbArrowsMinimize as O, TbArrowsMove as k, TbArrowsSplit as A, TbBell as j, TbBold as M, TbBolt as N, TbBook2 as P, TbBuildingSkyscraper as F, TbCamera as I, TbChartBar as L, TbChartLine as R, TbChartPie2 as z, TbCheck as ee, TbChevronDown as te, TbChevronLeft as ne, TbChevronRight as re, TbChevronUp as B, TbChevronsLeft as ie, TbChevronsRight as ae, TbCircle as oe, TbCircleCheck as se, TbCircleX as ce, TbClipboard as le, TbClock as ue, TbCode as de, TbCopy as fe, TbCornerDownRight as pe, TbDeviceFloppy as me, TbDeviceLaptop as he, TbDotsVertical as ge, TbDownload as _e, TbDroplet as ve, TbExclamationMark as ye, TbExternalLink as be, TbEye as xe, TbEyeOff as Se, TbFile as Ce, TbFilter as we, TbFilterOff as Te, TbFocusCentered as Ee, TbFolder as De, TbFolderSearch as Oe, TbGauge as ke, TbGitFork as Ae, TbGripVertical as je, TbHelp as Me, TbInfoCircle as Ne, TbItalic as Pe, TbKey as Fe, TbLayoutColumns as Ie, TbLayoutRows as Le, TbLibraryMinus as Re, TbLibraryPlus as ze, TbLink as Be, TbLinkOff as Ve, TbList as He, TbListNumbers as Ue, TbLoader2 as We, TbLock as Ge, TbLockOpen as Ke, TbMapPin as qe, TbMessageCircle as Je, TbMinus as Ye, TbMoon as Xe, TbMovie as Ze, TbNote as Qe, TbPencil as $e, TbPlayerPause as et, TbPlayerPlay as tt, TbPlayerSkipBack as nt, TbPlayerSkipForward as rt, TbPlayerStop as it, TbPlayerTrackNext as at, TbPlayerTrackPrev as ot, TbPlus as st, TbQuestionMark as ct, TbRefresh as lt, TbReload as ut, TbRotate as dt, TbRowInsertBottom as ft, TbRowInsertTop as pt, TbRuler3 as mt, TbScale as ht, TbSearch as gt, TbServer as _t, TbSettings as vt, TbSortAscending as yt, TbSortDescending as bt, TbSquarePlus as xt, TbStar as St, TbSun as Ct, TbTable as wt, TbTarget as Tt, TbTrash as Et, TbUpload as Dt, TbUser as Ot, TbUsers as kt, TbX as At } from "react-icons/tb";
|
|
5
5
|
import { CSSTransition as jt } from "react-transition-group";
|
|
6
6
|
import { FloatingArrow as Mt, FloatingNode as Nt, FloatingPortal as Pt, FloatingTree as Ft, arrow as It, autoUpdate as Lt, flip as Rt, offset as zt, shift as Bt, size as Vt, useClientPoint as Ht, useDismiss as Ut, useFloating as Wt, useFloatingNodeId as Gt, useFloatingParentNodeId as Kt, useHover as qt, useInteractions as Jt, useMergeRefs as Yt } from "@floating-ui/react";
|
|
7
7
|
import { clamp as Xt, cloneDeep as Zt, cloneDeepWith as Qt, debounce as $t, every as en, get as tn, isArray as nn, isBoolean as rn, isEmpty as an, isEqual as on, isFunction as sn, isNil as cn, isNumber as ln, isObject as un, isPlainObject as dn, isString as fn, keys as pn, noop as mn, set as hn, sortBy as gn, toLower as _n, toNumber as vn, upperFirst as yn, values as bn } from "es-toolkit/compat";
|
|
@@ -96,16 +96,16 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
96
96
|
case "chart":
|
|
97
97
|
case "chart line": return /* @__PURE__ */ y(R, {});
|
|
98
98
|
case "chart bar": return /* @__PURE__ */ y(L, {});
|
|
99
|
-
case "chart pie": return /* @__PURE__ */ y(
|
|
99
|
+
case "chart pie": return /* @__PURE__ */ y(z, {});
|
|
100
100
|
case "chat": return /* @__PURE__ */ y(Je, {});
|
|
101
101
|
case "check":
|
|
102
|
-
case "checkmark": return /* @__PURE__ */ y(
|
|
103
|
-
case "chevron up": return /* @__PURE__ */ y(
|
|
104
|
-
case "chevron down": return /* @__PURE__ */ y(
|
|
105
|
-
case "chevron left": return /* @__PURE__ */ y(
|
|
106
|
-
case "chevron right": return /* @__PURE__ */ y(
|
|
107
|
-
case "chevron double left": return /* @__PURE__ */ y(
|
|
108
|
-
case "chevron double right": return /* @__PURE__ */ y(
|
|
102
|
+
case "checkmark": return /* @__PURE__ */ y(ee, {});
|
|
103
|
+
case "chevron up": return /* @__PURE__ */ y(B, {});
|
|
104
|
+
case "chevron down": return /* @__PURE__ */ y(te, {});
|
|
105
|
+
case "chevron left": return /* @__PURE__ */ y(ne, {});
|
|
106
|
+
case "chevron right": return /* @__PURE__ */ y(re, {});
|
|
107
|
+
case "chevron double left": return /* @__PURE__ */ y(ie, {});
|
|
108
|
+
case "chevron double right": return /* @__PURE__ */ y(ae, {});
|
|
109
109
|
case "clock": return /* @__PURE__ */ y(ue, {});
|
|
110
110
|
case "clone":
|
|
111
111
|
case "copy":
|
|
@@ -125,7 +125,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
125
125
|
case "pencil":
|
|
126
126
|
case "rename": return /* @__PURE__ */ y($e, {});
|
|
127
127
|
case "electricity": return /* @__PURE__ */ y(N, {});
|
|
128
|
-
case "error": return /* @__PURE__ */ y(
|
|
128
|
+
case "error": return /* @__PURE__ */ y(ce, {});
|
|
129
129
|
case "exclamation": return /* @__PURE__ */ y(ye, {});
|
|
130
130
|
case "expand": return /* @__PURE__ */ y(xt, {});
|
|
131
131
|
case "expand all": return /* @__PURE__ */ y(ze, {});
|
|
@@ -204,7 +204,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
204
204
|
case "step backward": return /* @__PURE__ */ y(nt, {});
|
|
205
205
|
case "step forward": return /* @__PURE__ */ y(rt, {});
|
|
206
206
|
case "stop": return /* @__PURE__ */ y(it, {});
|
|
207
|
-
case "success": return /* @__PURE__ */ y(
|
|
207
|
+
case "success": return /* @__PURE__ */ y(se, {});
|
|
208
208
|
case "sun": return /* @__PURE__ */ y(Ct, {});
|
|
209
209
|
case "table": return /* @__PURE__ */ y(wt, {});
|
|
210
210
|
case "target": return /* @__PURE__ */ y(Tt, {});
|
|
@@ -224,7 +224,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
224
224
|
case "water":
|
|
225
225
|
case "droplet": return /* @__PURE__ */ y(ve, {});
|
|
226
226
|
case "": return null;
|
|
227
|
-
default: return /* @__PURE__ */ y(
|
|
227
|
+
default: return /* @__PURE__ */ y(oe, {});
|
|
228
228
|
}
|
|
229
229
|
}, W = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: i, testId: o }) => {
|
|
230
230
|
let s = c(U), l = {
|
|
@@ -399,10 +399,10 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
E(null);
|
|
402
|
-
}, [N.setReference]),
|
|
402
|
+
}, [N.setReference]), z = (g = i == null ? void 0 : i.hideOnScroll) == null ? !1 : g, { getReferenceProps: ee, getFloatingProps: te } = Jt([
|
|
403
403
|
Ut(M, {
|
|
404
|
-
enabled: e && (!!p ||
|
|
405
|
-
ancestorScroll:
|
|
404
|
+
enabled: e && (!!p || z),
|
|
405
|
+
ancestorScroll: z,
|
|
406
406
|
escapeKey: !!p,
|
|
407
407
|
outsidePress: !!p,
|
|
408
408
|
outsidePressEvent: "mousedown"
|
|
@@ -422,7 +422,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
422
422
|
x: (S = n == null ? void 0 : n.x) == null ? null : S,
|
|
423
423
|
y: (C = n == null ? void 0 : n.y) == null ? null : C
|
|
424
424
|
})
|
|
425
|
-
]),
|
|
425
|
+
]), ne = f(() => ee({ ref: R }), [ee, R]), re = f(() => te({
|
|
426
426
|
ref: N.setFloating,
|
|
427
427
|
style: {
|
|
428
428
|
...P,
|
|
@@ -430,7 +430,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
430
430
|
}
|
|
431
431
|
}), [
|
|
432
432
|
P,
|
|
433
|
-
|
|
433
|
+
te,
|
|
434
434
|
e,
|
|
435
435
|
F,
|
|
436
436
|
N.setFloating,
|
|
@@ -442,7 +442,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
442
442
|
context: M,
|
|
443
443
|
ref: w
|
|
444
444
|
}), [M]),
|
|
445
|
-
layerProps:
|
|
445
|
+
layerProps: re,
|
|
446
446
|
renderLayer: (e) => {
|
|
447
447
|
if (typeof document > "u") return null;
|
|
448
448
|
let t = yi(N.reference.current instanceof Element ? N.reference.current : null);
|
|
@@ -458,7 +458,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
458
458
|
});
|
|
459
459
|
},
|
|
460
460
|
triggerBounds: T,
|
|
461
|
-
triggerProps:
|
|
461
|
+
triggerProps: ne
|
|
462
462
|
};
|
|
463
463
|
}, Ti = () => {
|
|
464
464
|
let [e, t] = h(null);
|
|
@@ -1140,15 +1140,15 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
1140
1140
|
}), x]
|
|
1141
1141
|
});
|
|
1142
1142
|
}, ma = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: s = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: p = !0, maxHeight: g, testId: _, open: x, setOpen: S, tooltip: C, error: w, warning: T, selected: E, tabIndex: D, active: O }) => {
|
|
1143
|
-
let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: L, component: R, placement:
|
|
1144
|
-
isOpen:
|
|
1145
|
-
...ta(
|
|
1146
|
-
possiblePlacements:
|
|
1147
|
-
onOutsideClick:
|
|
1143
|
+
let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: L, component: R, placement: z, showAllButton: ee, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = rn(x) && sn(S) ? [x, S] : h(!1), B = () => re(!1), ie = () => re(!0), { triggerProps: ae, layerProps: oe, renderLayer: se } = wi({
|
|
1144
|
+
isOpen: ne,
|
|
1145
|
+
...ta(z, o),
|
|
1146
|
+
possiblePlacements: te,
|
|
1147
|
+
onOutsideClick: B,
|
|
1148
1148
|
overflowContainer: p
|
|
1149
|
-
}),
|
|
1150
|
-
return $i(u, d,
|
|
1151
|
-
ref:
|
|
1149
|
+
}), ce = Yt([A, oe.ref]), le = n || da(e) || k;
|
|
1150
|
+
return $i(u, d, B), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ua, {
|
|
1151
|
+
ref: ae.ref,
|
|
1152
1152
|
isDisabled: le,
|
|
1153
1153
|
badgeTitle: r,
|
|
1154
1154
|
badgeDot: i,
|
|
@@ -1160,13 +1160,13 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
1160
1160
|
title: M,
|
|
1161
1161
|
onClickTrigger: () => {
|
|
1162
1162
|
if (!le) {
|
|
1163
|
-
if (
|
|
1164
|
-
|
|
1163
|
+
if (ne) {
|
|
1164
|
+
B();
|
|
1165
1165
|
return;
|
|
1166
1166
|
}
|
|
1167
1167
|
Qi(u, d).forEach((e) => {
|
|
1168
1168
|
e.close && e.close();
|
|
1169
|
-
}),
|
|
1169
|
+
}), ie();
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
1172
|
colored: F,
|
|
@@ -1174,7 +1174,7 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
1174
1174
|
isNested: o,
|
|
1175
1175
|
component: R,
|
|
1176
1176
|
groupOrder: f,
|
|
1177
|
-
isOpen:
|
|
1177
|
+
isOpen: ne,
|
|
1178
1178
|
active: O,
|
|
1179
1179
|
tooltip: C,
|
|
1180
1180
|
error: w,
|
|
@@ -1184,16 +1184,16 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
1184
1184
|
tabIndex: D
|
|
1185
1185
|
}), /* @__PURE__ */ y(jt, {
|
|
1186
1186
|
nodeRef: A,
|
|
1187
|
-
in:
|
|
1187
|
+
in: ne,
|
|
1188
1188
|
timeout: 100,
|
|
1189
1189
|
classNames: {
|
|
1190
1190
|
enter: q.enter,
|
|
1191
1191
|
enterActive: q.enterActive
|
|
1192
1192
|
},
|
|
1193
1193
|
unmountOnExit: !0,
|
|
1194
|
-
children: /* @__PURE__ */ y(v, { children:
|
|
1195
|
-
...
|
|
1196
|
-
ref:
|
|
1194
|
+
children: /* @__PURE__ */ y(v, { children: ne && se(/* @__PURE__ */ y("div", {
|
|
1195
|
+
...oe,
|
|
1196
|
+
ref: ce,
|
|
1197
1197
|
className: q.layerContainer,
|
|
1198
1198
|
"data-testid": e.testId,
|
|
1199
1199
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -1202,11 +1202,11 @@ var Ur = /* @__PURE__ */ function(e) {
|
|
|
1202
1202
|
isNested: o,
|
|
1203
1203
|
width: t,
|
|
1204
1204
|
closeOnOptionClick: s,
|
|
1205
|
-
close: l ||
|
|
1205
|
+
close: l || B,
|
|
1206
1206
|
tree: u,
|
|
1207
1207
|
path: d,
|
|
1208
1208
|
maxHeight: g,
|
|
1209
|
-
showAllButton:
|
|
1209
|
+
showAllButton: ee,
|
|
1210
1210
|
testId: _ && `${_}-layer`
|
|
1211
1211
|
})
|
|
1212
1212
|
})) })
|
|
@@ -1937,9 +1937,9 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
1937
1937
|
children: e
|
|
1938
1938
|
}) : /* @__PURE__ */ y(v, { children: e });
|
|
1939
1939
|
}, bo = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: i = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = Kr.BOTTOM, border: p = !1, children: m = null, tabs: g, defaultTabIndex: v = 0, activeTab: x, setActiveTab: S, testId: C, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
1940
|
-
let k = u === !0, A = !k && a(u), [j, M] = r ? [n, r] : k || g ? h(n) : [n, () => {}], [N, P] = h(v), F = r ? n : j, I = r || M, L = S === void 0 ? N : x, R = S || P,
|
|
1940
|
+
let k = u === !0, A = !k && a(u), [j, M] = r ? [n, r] : k || g ? h(n) : [n, () => {}], [N, P] = h(v), F = r ? n : j, I = r || M, L = S === void 0 ? N : x, R = S || P, z = Array.isArray(o) ? o[L || 0] : o, ee = F ? z : g ? 35 : s;
|
|
1941
1941
|
return /* @__PURE__ */ y(yo, {
|
|
1942
|
-
width:
|
|
1942
|
+
width: ee,
|
|
1943
1943
|
onResize: w,
|
|
1944
1944
|
setOpen: I,
|
|
1945
1945
|
right: i,
|
|
@@ -1952,10 +1952,10 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
1952
1952
|
style: {
|
|
1953
1953
|
background: e,
|
|
1954
1954
|
borderColor: typeof p == "string" ? p : void 0,
|
|
1955
|
-
width:
|
|
1955
|
+
width: ee
|
|
1956
1956
|
},
|
|
1957
1957
|
children: g ? /* @__PURE__ */ y(go, {
|
|
1958
|
-
width:
|
|
1958
|
+
width: z,
|
|
1959
1959
|
testId: C,
|
|
1960
1960
|
tabs: g,
|
|
1961
1961
|
open: F,
|
|
@@ -1975,7 +1975,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
1975
1975
|
})(o)), R(e), t(T);
|
|
1976
1976
|
}
|
|
1977
1977
|
}) : /* @__PURE__ */ y("div", {
|
|
1978
|
-
style: { width:
|
|
1978
|
+
style: { width: z },
|
|
1979
1979
|
children: m
|
|
1980
1980
|
})
|
|
1981
1981
|
}), u && /* @__PURE__ */ y("span", {
|
|
@@ -3025,18 +3025,18 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3025
3025
|
type: Xs.FOCUS_LAYER_OPTIONS,
|
|
3026
3026
|
nextLayerFocus: r
|
|
3027
3027
|
}), L(r.current);
|
|
3028
|
-
},
|
|
3028
|
+
}, z = (e) => {
|
|
3029
3029
|
t({
|
|
3030
3030
|
type: Xs.FOCUS_TRIGGER_INPUTS,
|
|
3031
3031
|
ICustomSelectDirection: e,
|
|
3032
3032
|
selectedOptions: u
|
|
3033
3033
|
});
|
|
3034
|
-
},
|
|
3034
|
+
}, ee = (e) => P(e), te = u && u[e.triggerFocus.currentOption], ne = (t) => {
|
|
3035
3035
|
N(t, u[e.triggerFocus.currentOption]);
|
|
3036
|
-
},
|
|
3036
|
+
}, re = (t) => {
|
|
3037
3037
|
var n;
|
|
3038
3038
|
w(t, e == null || (n = e.visibleOptions) == null ? void 0 : n[e.layerFocus.current], x);
|
|
3039
|
-
},
|
|
3039
|
+
}, B = e.triggerFocus.clearAll;
|
|
3040
3040
|
return {
|
|
3041
3041
|
getTriggerWidth: T,
|
|
3042
3042
|
onKeyEvent: (n, r) => {
|
|
@@ -3048,13 +3048,13 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3048
3048
|
e.isLayerOpen ? R("down") : I();
|
|
3049
3049
|
break;
|
|
3050
3050
|
case Zs.LEFT:
|
|
3051
|
-
|
|
3051
|
+
z("left");
|
|
3052
3052
|
break;
|
|
3053
3053
|
case Zs.RIGHT:
|
|
3054
|
-
|
|
3054
|
+
z("right");
|
|
3055
3055
|
break;
|
|
3056
3056
|
case Zs.ENTER:
|
|
3057
|
-
|
|
3057
|
+
B ? ee(r) : te ? ne(r) : re(r);
|
|
3058
3058
|
break;
|
|
3059
3059
|
case Zs.ESC:
|
|
3060
3060
|
x();
|
|
@@ -3065,7 +3065,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3065
3065
|
default:
|
|
3066
3066
|
}
|
|
3067
3067
|
},
|
|
3068
|
-
clearAllIsFocused:
|
|
3068
|
+
clearAllIsFocused: B,
|
|
3069
3069
|
triggerProps: k,
|
|
3070
3070
|
onClickTrigger: j,
|
|
3071
3071
|
onChangeSearch: F,
|
|
@@ -3088,7 +3088,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3088
3088
|
layerFocus: Us(e, E == null ? 0 : E),
|
|
3089
3089
|
triggerFocus: Vs,
|
|
3090
3090
|
isLayerOpen: !1
|
|
3091
|
-
})), { getTriggerWidth: R, onKeyEvent:
|
|
3091
|
+
})), { getTriggerWidth: R, onKeyEvent: z, clearAllIsFocused: ee, triggerProps: te, onClickTrigger: ne, onChangeSearch: re, onClickDeselectOption: B, onClickClearAll: ie, renderLayer: ae, layerProps: oe, closeLayer: se, onSelectOption: ce, getLayerWidth: le, triggerBounds: ue } = Qs({
|
|
3092
3092
|
...e,
|
|
3093
3093
|
state: I,
|
|
3094
3094
|
dispatch: L,
|
|
@@ -3097,18 +3097,18 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3097
3097
|
isFontLoaded: F,
|
|
3098
3098
|
createAble: A,
|
|
3099
3099
|
listRef: j
|
|
3100
|
-
}), de = Yt([N,
|
|
3100
|
+
}), de = Yt([N, te.ref]), fe = Yt([M, oe.ref]);
|
|
3101
3101
|
return /* @__PURE__ */ b("div", {
|
|
3102
3102
|
style: { width: R() },
|
|
3103
3103
|
onKeyDown: (e) => {
|
|
3104
|
-
Object.values(Zs).includes(e.key) &&
|
|
3104
|
+
Object.values(Zs).includes(e.key) && z(e.key, e);
|
|
3105
3105
|
},
|
|
3106
3106
|
children: [/* @__PURE__ */ y(zs, {
|
|
3107
3107
|
selectedOptions: s,
|
|
3108
3108
|
searchValue: I.searchValue,
|
|
3109
3109
|
isOpen: I.isLayerOpen,
|
|
3110
3110
|
focusedSelectedOptionIndex: typeof I.triggerFocus.currentOption == "number" ? I.triggerFocus.currentOption : void 0,
|
|
3111
|
-
clearAllIsFocused:
|
|
3111
|
+
clearAllIsFocused: ee,
|
|
3112
3112
|
searchable: _,
|
|
3113
3113
|
triggerRef: de,
|
|
3114
3114
|
error: r,
|
|
@@ -3119,10 +3119,10 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3119
3119
|
disabled: n || k,
|
|
3120
3120
|
clearable: x,
|
|
3121
3121
|
tabIndex: f,
|
|
3122
|
-
onClickTrigger:
|
|
3123
|
-
onChangeSearch:
|
|
3124
|
-
onClickDeselect:
|
|
3125
|
-
onClickClear:
|
|
3122
|
+
onClickTrigger: ne,
|
|
3123
|
+
onChangeSearch: re,
|
|
3124
|
+
onClickDeselect: B,
|
|
3125
|
+
onClickClear: ie,
|
|
3126
3126
|
onFocus: h,
|
|
3127
3127
|
onBlur: g,
|
|
3128
3128
|
groupOrder: T,
|
|
@@ -3139,8 +3139,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3139
3139
|
enterActive: fs.enterActive
|
|
3140
3140
|
},
|
|
3141
3141
|
unmountOnExit: !0,
|
|
3142
|
-
children: /* @__PURE__ */ y(v, { children: I.isLayerOpen &&
|
|
3143
|
-
...
|
|
3142
|
+
children: /* @__PURE__ */ y(v, { children: I.isLayerOpen && ae(/* @__PURE__ */ y("div", {
|
|
3143
|
+
...oe,
|
|
3144
3144
|
ref: fe,
|
|
3145
3145
|
className: fs.layerContainer,
|
|
3146
3146
|
children: /* @__PURE__ */ y(Is, {
|
|
@@ -3149,10 +3149,10 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3149
3149
|
sections: I.visibleOptions,
|
|
3150
3150
|
selectedOptions: s,
|
|
3151
3151
|
onSelectOption: (e, n) => {
|
|
3152
|
-
|
|
3152
|
+
ce(e, n, t ? void 0 : se);
|
|
3153
3153
|
},
|
|
3154
3154
|
closeLayer: () => {
|
|
3155
|
-
C &&
|
|
3155
|
+
C && se();
|
|
3156
3156
|
},
|
|
3157
3157
|
width: le(ue),
|
|
3158
3158
|
small: d,
|
|
@@ -3466,7 +3466,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3466
3466
|
var t;
|
|
3467
3467
|
let n = !!(e != null && e.endsWith("0"));
|
|
3468
3468
|
return Ac(w && e && !n && (t = k(e)) != null && t.valid ? jc(e) : e);
|
|
3469
|
-
}, j = m(null), [M, N] = h(A(Ac(s))), [P, F] = h(!1), I = Mc(e), { valid: L, errors: R } = k(M),
|
|
3469
|
+
}, j = m(null), [M, N] = h(A(Ac(s))), [P, F] = h(!1), I = Mc(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
|
|
3470
3470
|
l(() => {
|
|
3471
3471
|
let e = A(Ac(s));
|
|
3472
3472
|
or(M) !== or(e) && N(e);
|
|
@@ -3475,13 +3475,13 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3475
3475
|
w,
|
|
3476
3476
|
T
|
|
3477
3477
|
]), l(() => {
|
|
3478
|
-
(O || !P) && !L ? b(I,
|
|
3478
|
+
(O || !P) && !L ? b(I, z) : b(I, null);
|
|
3479
3479
|
}, [
|
|
3480
3480
|
P,
|
|
3481
3481
|
L,
|
|
3482
3482
|
r
|
|
3483
3483
|
]);
|
|
3484
|
-
let
|
|
3484
|
+
let ee = (e) => {
|
|
3485
3485
|
var n, r;
|
|
3486
3486
|
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = Hn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3487
3487
|
N(a), ((r = k(a)) != null && r.valid || t && tc(i)) && c({
|
|
@@ -3508,7 +3508,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3508
3508
|
disabled: n,
|
|
3509
3509
|
placeholder: t,
|
|
3510
3510
|
value: T && !P && L ? E ? Ac(E(M)) : ((e) => S ? nr(e, 2) : er(e, 4))(s) : M,
|
|
3511
|
-
onChange:
|
|
3511
|
+
onChange: ee,
|
|
3512
3512
|
onFocus: (e) => {
|
|
3513
3513
|
F(!0), u(e);
|
|
3514
3514
|
},
|
|
@@ -3516,9 +3516,9 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3516
3516
|
F(!1), d(e);
|
|
3517
3517
|
},
|
|
3518
3518
|
onKeyDown: (e) => {
|
|
3519
|
-
e.key === Zs.ENTER &&
|
|
3519
|
+
e.key === Zs.ENTER && ee(e);
|
|
3520
3520
|
},
|
|
3521
|
-
error:
|
|
3521
|
+
error: z || r,
|
|
3522
3522
|
warning: v,
|
|
3523
3523
|
right: !i,
|
|
3524
3524
|
small: a,
|
|
@@ -3707,12 +3707,12 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3707
3707
|
disabled: D || j[j.length - 1] === s,
|
|
3708
3708
|
icon: H.FAST_FORWARD
|
|
3709
3709
|
})
|
|
3710
|
-
}), R = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`,
|
|
3710
|
+
}), R = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`, z = (e) => {
|
|
3711
3711
|
let t = R(e);
|
|
3712
3712
|
return C.enabled ? { bottom: t } : { left: t };
|
|
3713
|
-
},
|
|
3713
|
+
}, ee = (e) => {
|
|
3714
3714
|
if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3715
|
-
},
|
|
3715
|
+
}, te = (e) => x ? j[0] <= e && e <= j[1] : j[0] >= e, ne = (e) => x ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [Xt(e, o, j[1]), j[1]] : [j[0], Xt(e, j[0], s)] : [Xt(e, o, s)];
|
|
3716
3716
|
return /* @__PURE__ */ b("div", {
|
|
3717
3717
|
className: _(zc.container, S ? zc.small : "", C.enabled ? zc.vertical : ""),
|
|
3718
3718
|
style: C.enabled ? {
|
|
@@ -3741,12 +3741,12 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3741
3741
|
children: [/* @__PURE__ */ y(_r.Range, { className: zc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
|
|
3742
3742
|
className: zc.marks,
|
|
3743
3743
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3744
|
-
let r = Number(n), i =
|
|
3744
|
+
let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: R(r) };
|
|
3745
3745
|
return /* @__PURE__ */ y("button", {
|
|
3746
3746
|
"aria-label": String(e == null ? n : e),
|
|
3747
3747
|
className: _(zc.mark, i && zc.markActive),
|
|
3748
3748
|
disabled: D,
|
|
3749
|
-
onClick: () => F(
|
|
3749
|
+
onClick: () => F(ne(r)),
|
|
3750
3750
|
style: a,
|
|
3751
3751
|
type: "button",
|
|
3752
3752
|
children: /* @__PURE__ */ y(G, {
|
|
@@ -3765,12 +3765,12 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
3765
3765
|
return /* @__PURE__ */ y(_r.Thumb, {
|
|
3766
3766
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3767
3767
|
className: zc.thumb,
|
|
3768
|
-
"data-testid":
|
|
3768
|
+
"data-testid": ee(r),
|
|
3769
3769
|
onKeyDown: () => k(r),
|
|
3770
3770
|
onKeyUp: () => k(null),
|
|
3771
3771
|
onPointerDown: () => k(r),
|
|
3772
3772
|
onPointerUp: () => k(null),
|
|
3773
|
-
style:
|
|
3773
|
+
style: z(n),
|
|
3774
3774
|
children: p && O === r && /* @__PURE__ */ y(G, {
|
|
3775
3775
|
display: "block",
|
|
3776
3776
|
text: m(Vc(j, x)),
|
|
@@ -4215,7 +4215,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4215
4215
|
disabled: !0
|
|
4216
4216
|
}) : null,
|
|
4217
4217
|
testId: C ? `${C}-last-empty-row` : void 0
|
|
4218
|
-
}, R = I ? p.concat(L) : p,
|
|
4218
|
+
}, R = I ? p.concat(L) : p, z = {
|
|
4219
4219
|
...l,
|
|
4220
4220
|
rows: R
|
|
4221
4221
|
};
|
|
@@ -4244,7 +4244,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4244
4244
|
tbodyRef: A,
|
|
4245
4245
|
canListReorder: s,
|
|
4246
4246
|
children: ({ dropDisabled: e }) => /* @__PURE__ */ y(cl, {
|
|
4247
|
-
table:
|
|
4247
|
+
table: z,
|
|
4248
4248
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ b("table", {
|
|
4249
4249
|
className: _(ns.table, S ? ns.striped : ""),
|
|
4250
4250
|
"data-testid": C,
|
|
@@ -4922,7 +4922,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4922
4922
|
type: "Success",
|
|
4923
4923
|
content: u("pasteSuccessful")
|
|
4924
4924
|
} }, f);
|
|
4925
|
-
}, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors:
|
|
4925
|
+
}, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne = Sl(F), re = xl(F), B = /* @__PURE__ */ b(v, { children: [
|
|
4926
4926
|
/* @__PURE__ */ b("div", {
|
|
4927
4927
|
className: qo.headerContainer,
|
|
4928
4928
|
children: [
|
|
@@ -4932,7 +4932,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4932
4932
|
label: u("downsampled"),
|
|
4933
4933
|
checked: D,
|
|
4934
4934
|
onChange: () => j(!D),
|
|
4935
|
-
disabled:
|
|
4935
|
+
disabled: te || !R
|
|
4936
4936
|
})
|
|
4937
4937
|
}),
|
|
4938
4938
|
/* @__PURE__ */ y(G, {
|
|
@@ -4959,7 +4959,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4959
4959
|
validationRules: o,
|
|
4960
4960
|
t: u
|
|
4961
4961
|
}),
|
|
4962
|
-
|
|
4962
|
+
te ? /* @__PURE__ */ y("div", {
|
|
4963
4963
|
className: qo.resultContainer,
|
|
4964
4964
|
children: /* @__PURE__ */ y(bl, {
|
|
4965
4965
|
text: null,
|
|
@@ -4997,15 +4997,15 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
4997
4997
|
}) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
|
|
4998
4998
|
className: qo.messagesContainer,
|
|
4999
4999
|
children: [
|
|
5000
|
-
|
|
5001
|
-
errors:
|
|
5000
|
+
ee ? /* @__PURE__ */ y(vl, {
|
|
5001
|
+
errors: z,
|
|
5002
5002
|
t: u
|
|
5003
5003
|
}) : null,
|
|
5004
|
-
|
|
5004
|
+
ne && /* @__PURE__ */ y(ro, {
|
|
5005
5005
|
muted: !0,
|
|
5006
5006
|
children: u("commasAsDecimals")
|
|
5007
5007
|
}),
|
|
5008
|
-
|
|
5008
|
+
re && /* @__PURE__ */ y(ts, { message: {
|
|
5009
5009
|
visible: !0,
|
|
5010
5010
|
icon: !0,
|
|
5011
5011
|
width: "100%",
|
|
@@ -5039,14 +5039,14 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5039
5039
|
heading: u("pasteWithReviewRoundBrackets"),
|
|
5040
5040
|
content: /* @__PURE__ */ y("div", {
|
|
5041
5041
|
className: qo.modalContent,
|
|
5042
|
-
children:
|
|
5042
|
+
children: B
|
|
5043
5043
|
}),
|
|
5044
5044
|
footer: /* @__PURE__ */ b(v, { children: [
|
|
5045
5045
|
/* @__PURE__ */ y(K, {
|
|
5046
5046
|
label: u("okay"),
|
|
5047
5047
|
colored: !0,
|
|
5048
5048
|
onClick: () => f(() => P()),
|
|
5049
|
-
disabled:
|
|
5049
|
+
disabled: te || !R,
|
|
5050
5050
|
loading: d,
|
|
5051
5051
|
testId: `${p}-paste-with-review-modal-button-okay`
|
|
5052
5052
|
}),
|
|
@@ -5422,42 +5422,42 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5422
5422
|
}
|
|
5423
5423
|
}, _u = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5424
5424
|
var r, i, a, o;
|
|
5425
|
-
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(gu), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = cu(f), L = au(I, s, c), [R,
|
|
5425
|
+
let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(gu), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = cu(f), L = au(I, s, c), [R, z] = g(), ee = du({
|
|
5426
5426
|
config: e,
|
|
5427
5427
|
state: E,
|
|
5428
5428
|
setState: D,
|
|
5429
5429
|
smartUploadConfig: t,
|
|
5430
|
-
startTransition:
|
|
5431
|
-
}), { readAndParseInput:
|
|
5432
|
-
Mo("Escape", () =>
|
|
5430
|
+
startTransition: z
|
|
5431
|
+
}), { readAndParseInput: te, updateState: ne, closeModals: re, setModalVisibility: B, onFileChange: ie, onClickQuickPasteFromClipBoard: ae, onClickCopyClipboard: oe, onSmartUploadResult: se, deleteAllRows: ce } = ee == null ? {} : ee;
|
|
5432
|
+
Mo("Escape", () => re());
|
|
5433
5433
|
let le = m ? [
|
|
5434
5434
|
...S ? [{
|
|
5435
5435
|
type: "Option",
|
|
5436
5436
|
label: I("uploadFile"),
|
|
5437
5437
|
upload: !0,
|
|
5438
5438
|
uploadType: ".csv,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
5439
|
-
onChange:
|
|
5439
|
+
onChange: ie,
|
|
5440
5440
|
testId: `${n}-option-upload-file`
|
|
5441
5441
|
}] : [],
|
|
5442
5442
|
..._ ? [{
|
|
5443
5443
|
type: "Option",
|
|
5444
5444
|
label: I("quickPasteFromClipboard"),
|
|
5445
|
-
onClick:
|
|
5445
|
+
onClick: ae,
|
|
5446
5446
|
testId: `${n}-option-quick-paste-from-clipboard`
|
|
5447
5447
|
}] : [],
|
|
5448
5448
|
..._ ? [{
|
|
5449
5449
|
type: "Option",
|
|
5450
5450
|
label: I("pasteWithReview"),
|
|
5451
|
-
onClick: () =>
|
|
5451
|
+
onClick: () => B("reviewPasteModal", !k),
|
|
5452
5452
|
testId: `${n}-paste-with-review`
|
|
5453
5453
|
}] : [],
|
|
5454
5454
|
...M && j && t ? [{
|
|
5455
5455
|
type: "Option",
|
|
5456
5456
|
label: I("smartUpload_smartUpload"),
|
|
5457
|
-
onClick: () =>
|
|
5457
|
+
onClick: () => B("smartUploadModal", !O),
|
|
5458
5458
|
testId: `${n}-smart-upload`
|
|
5459
5459
|
}] : [],
|
|
5460
|
-
...hu((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E,
|
|
5460
|
+
...hu((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, B)
|
|
5461
5461
|
] : [], ue = [
|
|
5462
5462
|
{
|
|
5463
5463
|
type: "Option",
|
|
@@ -5470,7 +5470,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5470
5470
|
...p ? [{
|
|
5471
5471
|
type: "Option",
|
|
5472
5472
|
label: I("copyToClipboard"),
|
|
5473
|
-
onClick: () =>
|
|
5473
|
+
onClick: () => oe("dot")
|
|
5474
5474
|
}] : [{
|
|
5475
5475
|
type: "Menu",
|
|
5476
5476
|
testId: `${n}-menu-copy-to-clipboard`,
|
|
@@ -5480,29 +5480,29 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5480
5480
|
sections: [{
|
|
5481
5481
|
type: "Option",
|
|
5482
5482
|
label: I("copyDecimalDot"),
|
|
5483
|
-
onClick: () =>
|
|
5483
|
+
onClick: () => oe("dot"),
|
|
5484
5484
|
testId: `${n}-option-copy-decimal-dot`
|
|
5485
5485
|
}, {
|
|
5486
5486
|
type: "Option",
|
|
5487
5487
|
label: I("copyDecimalComma"),
|
|
5488
|
-
onClick: () =>
|
|
5488
|
+
onClick: () => oe("comma")
|
|
5489
5489
|
}]
|
|
5490
5490
|
}
|
|
5491
5491
|
}],
|
|
5492
|
-
...hu((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E,
|
|
5492
|
+
...hu((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, B)
|
|
5493
5493
|
], de = v ? [{
|
|
5494
5494
|
type: "Option",
|
|
5495
5495
|
label: I("deleteAllRows"),
|
|
5496
|
-
onClick: () =>
|
|
5496
|
+
onClick: () => ce(),
|
|
5497
5497
|
testId: `${n}-delete-all-rows`
|
|
5498
|
-
}, ...hu((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E,
|
|
5498
|
+
}, ...hu((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, B)] : [], fe = x ? [
|
|
5499
5499
|
{ type: "Divider" },
|
|
5500
5500
|
{
|
|
5501
5501
|
type: "Option",
|
|
5502
5502
|
label: I("help"),
|
|
5503
|
-
onClick: () =>
|
|
5503
|
+
onClick: () => B("helpModal", !A)
|
|
5504
5504
|
},
|
|
5505
|
-
...hu((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E,
|
|
5505
|
+
...hu((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, B)
|
|
5506
5506
|
] : [], pe = [
|
|
5507
5507
|
...le.length ? [{
|
|
5508
5508
|
section: [...le, ...fe],
|
|
@@ -5537,21 +5537,21 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5537
5537
|
k && /* @__PURE__ */ y(nu, {
|
|
5538
5538
|
config: e,
|
|
5539
5539
|
state: E,
|
|
5540
|
-
updateState:
|
|
5541
|
-
setModalVisibility:
|
|
5542
|
-
readAndParseInput:
|
|
5543
|
-
onCloseModal:
|
|
5540
|
+
updateState: ne,
|
|
5541
|
+
setModalVisibility: B,
|
|
5542
|
+
readAndParseInput: te,
|
|
5543
|
+
onCloseModal: re,
|
|
5544
5544
|
validationRules: u,
|
|
5545
5545
|
onCompleteImport: T,
|
|
5546
5546
|
prevalidationConfig: l,
|
|
5547
5547
|
t: I,
|
|
5548
5548
|
loading: R,
|
|
5549
|
-
startTransition:
|
|
5549
|
+
startTransition: z,
|
|
5550
5550
|
testId: n
|
|
5551
5551
|
}),
|
|
5552
5552
|
A && /* @__PURE__ */ y(Ko, {
|
|
5553
5553
|
visible: A,
|
|
5554
|
-
setModalVisibility:
|
|
5554
|
+
setModalVisibility: B,
|
|
5555
5555
|
validationRules: u,
|
|
5556
5556
|
t: I
|
|
5557
5557
|
}),
|
|
@@ -5559,8 +5559,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5559
5559
|
visible: O,
|
|
5560
5560
|
prompt: M,
|
|
5561
5561
|
onUpload: F,
|
|
5562
|
-
onCloseModal: () =>
|
|
5563
|
-
onComplete:
|
|
5562
|
+
onCloseModal: () => re({ callback: N }),
|
|
5563
|
+
onComplete: se,
|
|
5564
5564
|
onError: P,
|
|
5565
5565
|
heading: I("smartUpload_smartUpload"),
|
|
5566
5566
|
dialogText: I("smartUpload_description"),
|
|
@@ -5573,7 +5573,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
5573
5573
|
/* @__PURE__ */ y(ru, {
|
|
5574
5574
|
modals: C,
|
|
5575
5575
|
modalVisibility: E == null ? void 0 : E.modalVisibility,
|
|
5576
|
-
onCloseModal:
|
|
5576
|
+
onCloseModal: re,
|
|
5577
5577
|
testId: n
|
|
5578
5578
|
})
|
|
5579
5579
|
] });
|
|
@@ -6472,159 +6472,599 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6472
6472
|
width: t,
|
|
6473
6473
|
height: n
|
|
6474
6474
|
}), pd = {
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
let
|
|
6511
|
-
|
|
6475
|
+
wrapper: "_wrapper_4rfwh_1",
|
|
6476
|
+
label: "_label_4rfwh_5",
|
|
6477
|
+
input: "_input_4rfwh_9",
|
|
6478
|
+
inputSmall: "_inputSmall_4rfwh_18",
|
|
6479
|
+
editable: "_editable_4rfwh_22",
|
|
6480
|
+
inputControl: "_inputControl_4rfwh_25",
|
|
6481
|
+
actionsWrapper: "_actionsWrapper_4rfwh_28",
|
|
6482
|
+
actions: "_actions_4rfwh_28"
|
|
6483
|
+
}, md = () => {
|
|
6484
|
+
let e = m(null);
|
|
6485
|
+
return d(() => {
|
|
6486
|
+
e.current && (e.current(), e.current = null);
|
|
6487
|
+
}), (t) => {
|
|
6488
|
+
e.current = t;
|
|
6489
|
+
};
|
|
6490
|
+
}, hd = (e) => {
|
|
6491
|
+
let t = m(void 0);
|
|
6492
|
+
return l(() => {
|
|
6493
|
+
t.current = e;
|
|
6494
|
+
}, [e]), t.current;
|
|
6495
|
+
}, gd = (e, t) => {
|
|
6496
|
+
let n = t == null ? void 0 : t[e];
|
|
6497
|
+
if (!n) {
|
|
6498
|
+
var r;
|
|
6499
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = cr(e)) == null ? "" : r;
|
|
6500
|
+
}
|
|
6501
|
+
return n;
|
|
6502
|
+
}, _d = /* @__PURE__ */ function(e) {
|
|
6503
|
+
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6504
|
+
}({}), vd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), yd = (e) => {
|
|
6505
|
+
if (!e) return !1;
|
|
6506
|
+
let t = Kn(e);
|
|
6507
|
+
return !Bn.includes(t);
|
|
6508
|
+
}, bd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6509
|
+
var r;
|
|
6510
|
+
let i = zn[t];
|
|
6511
|
+
if (!i || i.length === 0 || !((r = lr(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6512
|
+
let a = Kn(String(e));
|
|
6513
|
+
return !(a && !i.includes(a));
|
|
6514
|
+
}, xd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6515
|
+
var o;
|
|
6516
|
+
let s = Qn(e) ? Jn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6517
|
+
if (i || c) return {
|
|
6518
|
+
value: s,
|
|
6519
|
+
error: null
|
|
6520
|
+
};
|
|
6521
|
+
let l = r || (Qn(e) ? Kn(e) : cr(t));
|
|
6522
|
+
if (!((o = lr(s)) != null && o.valid)) return {
|
|
6523
|
+
value: void 0,
|
|
6524
|
+
error: "Invalid number format"
|
|
6525
|
+
};
|
|
6526
|
+
if (!n) return {
|
|
6527
|
+
value: void 0,
|
|
6528
|
+
error: "Target unit is missing"
|
|
6529
|
+
};
|
|
6530
|
+
if (!l) return {
|
|
6531
|
+
value: void 0,
|
|
6532
|
+
error: "Source unit is missing"
|
|
6533
|
+
};
|
|
6534
|
+
if (vd(s)) return {
|
|
6535
|
+
value: void 0,
|
|
6536
|
+
error: "Value is invalid for conversion"
|
|
6537
|
+
};
|
|
6538
|
+
try {
|
|
6539
|
+
let e = dr(s, l);
|
|
6540
|
+
return bd({
|
|
6541
|
+
value: e,
|
|
6542
|
+
toUnit: n,
|
|
6543
|
+
unitkey: t
|
|
6544
|
+
}) ? {
|
|
6545
|
+
value: Jn(Ac(a ? Wn(e, n) : Un(e, n))),
|
|
6546
|
+
error: null
|
|
6547
|
+
} : {
|
|
6548
|
+
value: Jn(e),
|
|
6549
|
+
error: null
|
|
6550
|
+
};
|
|
6551
|
+
} catch {
|
|
6512
6552
|
return {
|
|
6513
|
-
value:
|
|
6514
|
-
|
|
6515
|
-
label: e.props.label,
|
|
6516
|
-
hidden: e.props.hidden,
|
|
6517
|
-
disabled: e.props.disabled || p,
|
|
6518
|
-
badge: e.props.badge,
|
|
6519
|
-
testId: ((n = e.props) == null ? void 0 : n.testId) && `${e.props.testId}-${t}`
|
|
6553
|
+
value: void 0,
|
|
6554
|
+
error: "Conversion not possible"
|
|
6520
6555
|
};
|
|
6521
|
-
}
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6556
|
+
}
|
|
6557
|
+
}, Sd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6558
|
+
let a = Jn(e), o = vd(a);
|
|
6559
|
+
return !bd({
|
|
6560
|
+
value: e,
|
|
6561
|
+
unitkey: n,
|
|
6562
|
+
toUnit: t
|
|
6563
|
+
}) || yd(e) || o ? { value: a } : Qn(e) ? xd({
|
|
6564
|
+
value: e,
|
|
6565
|
+
unitkey: n,
|
|
6566
|
+
toUnit: t,
|
|
6567
|
+
fromUnit: r,
|
|
6568
|
+
doNotConvertValue: i,
|
|
6569
|
+
exactPrecision: !0
|
|
6570
|
+
}) : { value: e };
|
|
6571
|
+
}, Cd = (e) => un(e) && !nn(e) && !sn(e) ? tn(e, "fieldName", "") : typeof e == "string" ? e : "", wd = (e = "") => Bn == null ? void 0 : Bn.includes(e), Td = (e, t) => {
|
|
6572
|
+
let n = Kn(e || "");
|
|
6573
|
+
return wd(t) && wd(n);
|
|
6574
|
+
}, Ed = n(null), Dd = () => c(Ed), Od = !1, kd = (e) => {
|
|
6575
|
+
Od || (Od = !0, Ed = e);
|
|
6576
|
+
}, Ad = (e) => Xn(e) ? e : er(e), jd = {
|
|
6577
|
+
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
6578
|
+
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
6579
|
+
}, Md = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = mn, onClick: g = mn, onFocus: x = mn, onSwitchUnit: S = mn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
6580
|
+
name: "",
|
|
6581
|
+
error: null
|
|
6582
|
+
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
|
|
6583
|
+
let ee = Dd(), te = md();
|
|
6584
|
+
typeof c == "number" && (c = `${c}`);
|
|
6585
|
+
let [ne = "", re = ""] = c === void 0 ? [] : ir(c), B = f(() => gd(u, C || (ee == null ? void 0 : ee.unitTemplate)), [
|
|
6586
|
+
u,
|
|
6587
|
+
C,
|
|
6588
|
+
ee == null ? void 0 : ee.unitTemplate
|
|
6589
|
+
]), ie = Td(c, B), ae = d || B || re, oe = hd(ae), { value: se } = Sd({
|
|
6590
|
+
value: c,
|
|
6591
|
+
toUnit: ae,
|
|
6592
|
+
unitkey: u,
|
|
6593
|
+
defaultFromUnit: re,
|
|
6594
|
+
doNotConvertValue: p
|
|
6595
|
+
}), [ce, le] = h(se === "" ? {
|
|
6596
|
+
value: ne,
|
|
6597
|
+
unit: re
|
|
6598
|
+
} : {
|
|
6599
|
+
value: se,
|
|
6600
|
+
unit: ae
|
|
6601
|
+
}), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ? _d.PREDEFINED : _d.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
|
|
6602
|
+
if (!(e != null && e.value)) return;
|
|
6603
|
+
if (k) return k === e.valueKey;
|
|
6604
|
+
let t = Qn(e.value) ? Kn(e.value) : "", { value: n = c } = xd({
|
|
6605
|
+
value: String(c),
|
|
6606
|
+
unitkey: u,
|
|
6607
|
+
toUnit: t
|
|
6608
|
+
});
|
|
6609
|
+
return dr(n, t) === e.value;
|
|
6610
|
+
}), he = () => {
|
|
6611
|
+
var e;
|
|
6612
|
+
let t = (e = c) == null ? "" : e, n = ce.unit;
|
|
6613
|
+
if (!bd({
|
|
6614
|
+
value: t,
|
|
6615
|
+
unitkey: u,
|
|
6616
|
+
toUnit: n
|
|
6617
|
+
})) {
|
|
6618
|
+
let e = Gn(u);
|
|
6619
|
+
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
6620
|
+
} else if (u) try {
|
|
6621
|
+
let e = Vn(t, u);
|
|
6622
|
+
return Jn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
6623
|
+
} catch {
|
|
6624
|
+
return null;
|
|
6530
6625
|
}
|
|
6626
|
+
}, ge = (t) => {
|
|
6627
|
+
let n = Cd(e), r = t.target, { value: i, selectionStart: a } = r, o = dr(i, (ce == null ? void 0 : ce.unit) || "");
|
|
6628
|
+
m({ target: {
|
|
6629
|
+
value: N ? dr(Un(o, re), re) : o,
|
|
6630
|
+
name: n
|
|
6631
|
+
} });
|
|
6632
|
+
let [s, c] = ir(o);
|
|
6633
|
+
le({
|
|
6634
|
+
value: s,
|
|
6635
|
+
unit: c
|
|
6636
|
+
}), te(() => {
|
|
6637
|
+
r.selectionStart = a, r.selectionEnd = a;
|
|
6638
|
+
});
|
|
6639
|
+
}, _e = (e, t) => {
|
|
6640
|
+
t === ce.unit || isNaN(Number(e)) || (le({
|
|
6641
|
+
value: e,
|
|
6642
|
+
unit: t
|
|
6643
|
+
}), S && S(t));
|
|
6531
6644
|
};
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
})
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6645
|
+
l(() => {
|
|
6646
|
+
if (ae) {
|
|
6647
|
+
let e, t = "";
|
|
6648
|
+
if (oe !== ae) {
|
|
6649
|
+
let { value: n } = Sd({
|
|
6650
|
+
value: c,
|
|
6651
|
+
toUnit: ae,
|
|
6652
|
+
unitkey: u,
|
|
6653
|
+
defaultFromUnit: re,
|
|
6654
|
+
doNotConvertValue: p
|
|
6655
|
+
});
|
|
6656
|
+
e = n, t = ae;
|
|
6657
|
+
} else if (dr(ce.value, ce.unit) !== c) {
|
|
6658
|
+
let { value: n } = Sd({
|
|
6659
|
+
value: c,
|
|
6660
|
+
toUnit: ce.unit,
|
|
6661
|
+
unitkey: u,
|
|
6662
|
+
defaultFromUnit: re,
|
|
6663
|
+
doNotConvertValue: p
|
|
6664
|
+
});
|
|
6665
|
+
e = n, t = ce.unit;
|
|
6666
|
+
}
|
|
6667
|
+
e !== void 0 && le({
|
|
6668
|
+
value: e,
|
|
6669
|
+
unit: t
|
|
6670
|
+
}), fe(E && me && O ? _d.PREDEFINED : _d.CUSTOM);
|
|
6671
|
+
}
|
|
6672
|
+
}, [
|
|
6673
|
+
ae,
|
|
6674
|
+
c,
|
|
6675
|
+
i,
|
|
6676
|
+
O
|
|
6677
|
+
]);
|
|
6678
|
+
let ve = he(), ye = $n(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Cd(e), Se, Ce = (t) => {
|
|
6679
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Qn(r) ? ir(r) : [r], o = ur(r);
|
|
6680
|
+
if (bd({
|
|
6681
|
+
value: r,
|
|
6682
|
+
unitkey: u,
|
|
6683
|
+
toUnit: a
|
|
6684
|
+
})) {
|
|
6685
|
+
let { value: e = "" } = Sd({
|
|
6686
|
+
value: r,
|
|
6687
|
+
toUnit: B,
|
|
6688
|
+
unitkey: u,
|
|
6689
|
+
defaultFromUnit: a,
|
|
6690
|
+
doNotConvertValue: p
|
|
6691
|
+
});
|
|
6692
|
+
o = ur(dr(e, B));
|
|
6693
|
+
}
|
|
6694
|
+
return {
|
|
6695
|
+
type: Ki.OPTION,
|
|
6696
|
+
inline: !0,
|
|
6697
|
+
onClick: () => {
|
|
6698
|
+
lr(i).valid && !n && (fe(_d.PREDEFINED), m({ target: {
|
|
6699
|
+
value: r,
|
|
6700
|
+
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
6701
|
+
predefinedSelected: !0,
|
|
6702
|
+
predefinedOption: t
|
|
6703
|
+
} }));
|
|
6704
|
+
},
|
|
6705
|
+
label: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ro, { children: t.label }), /* @__PURE__ */ y(jo, {
|
|
6706
|
+
width: "20px",
|
|
6707
|
+
height: "0"
|
|
6708
|
+
})] }),
|
|
6709
|
+
description: o,
|
|
6710
|
+
selected: me === t && de === _d.PREDEFINED
|
|
6711
|
+
};
|
|
6712
|
+
};
|
|
6713
|
+
if (Se = [{
|
|
6714
|
+
type: Ki.OPTION,
|
|
6715
|
+
inline: !0,
|
|
6716
|
+
onClick: () => {
|
|
6717
|
+
de !== _d.CUSTOM && !n && m({ target: {
|
|
6718
|
+
value: dr(ce.value, ce.unit),
|
|
6719
|
+
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
6720
|
+
} });
|
|
6721
|
+
},
|
|
6722
|
+
label: "Custom",
|
|
6723
|
+
selected: de === _d.CUSTOM
|
|
6724
|
+
}], E != null && E.length) {
|
|
6725
|
+
let e = E.map(Ce);
|
|
6726
|
+
Se = [...Se, ...e];
|
|
6727
|
+
}
|
|
6728
|
+
let we = (e) => {
|
|
6729
|
+
if (Qn(e)) {
|
|
6730
|
+
let t = Kn(e), { value: n } = Sd({
|
|
6731
|
+
value: e,
|
|
6732
|
+
toUnit: ce.unit,
|
|
6733
|
+
unitkey: u,
|
|
6734
|
+
defaultFromUnit: t,
|
|
6735
|
+
doNotConvertValue: p
|
|
6736
|
+
});
|
|
6737
|
+
return n;
|
|
6738
|
+
}
|
|
6739
|
+
return e;
|
|
6740
|
+
}, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
|
|
6741
|
+
return /* @__PURE__ */ y("div", {
|
|
6742
|
+
className: de === _d.PREDEFINED ? _(jd.predefinedMenuActive) : "",
|
|
6743
|
+
children: /* @__PURE__ */ b(Co, {
|
|
6744
|
+
small: o,
|
|
6745
|
+
width: s,
|
|
6746
|
+
children: [
|
|
6747
|
+
E && /* @__PURE__ */ y(_a, {
|
|
6748
|
+
maxHeight: 380,
|
|
6749
|
+
groupOrder: "first",
|
|
6750
|
+
testId: w && `${w}-predefined-menu`,
|
|
6751
|
+
disabled: n,
|
|
6752
|
+
menu: {
|
|
6753
|
+
colored: !0,
|
|
6754
|
+
trigger: "Component",
|
|
6755
|
+
component: /* @__PURE__ */ y(K, {
|
|
6756
|
+
groupOrder: "first",
|
|
6757
|
+
active: de === _d.PREDEFINED,
|
|
6758
|
+
icon: de === _d.PREDEFINED ? "link" : "unlink",
|
|
6759
|
+
small: o
|
|
6760
|
+
}),
|
|
6761
|
+
small: o,
|
|
6762
|
+
sections: Se
|
|
6763
|
+
},
|
|
6764
|
+
tooltip: de === _d.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
6765
|
+
}),
|
|
6766
|
+
/* @__PURE__ */ y("div", {
|
|
6767
|
+
className: jd.inputWrapper,
|
|
6768
|
+
children: /* @__PURE__ */ y(Nc, {
|
|
6769
|
+
name: xe,
|
|
6770
|
+
testId: w,
|
|
6771
|
+
disabled: n,
|
|
6772
|
+
placeholder: we(t),
|
|
6773
|
+
value: ce.value,
|
|
6774
|
+
onChange: ge,
|
|
6775
|
+
onFocus: x,
|
|
6776
|
+
error: i === null ? void 0 : i,
|
|
6777
|
+
warning: T === null ? void 0 : T,
|
|
6778
|
+
left: a,
|
|
6779
|
+
allowEmpty: ue,
|
|
6780
|
+
validationCallback: (e, t) => A(xe, t),
|
|
6781
|
+
enableCosmeticRounding: P,
|
|
6782
|
+
enableDisplayRounding: F,
|
|
6783
|
+
roundDisplayValue: I,
|
|
6784
|
+
groupOrder: Te,
|
|
6785
|
+
disableInternalErrorValidationMessages: pe,
|
|
6786
|
+
small: o,
|
|
6787
|
+
selectOnFocus: L,
|
|
6788
|
+
tooltip: z
|
|
6789
|
+
}, xe)
|
|
6790
|
+
}),
|
|
6791
|
+
ye && (be || !ie ? /* @__PURE__ */ y(_c, {
|
|
6792
|
+
groupOrder: Ee,
|
|
6793
|
+
small: o,
|
|
6794
|
+
children: ye
|
|
6795
|
+
}) : /* @__PURE__ */ y(_a, {
|
|
6796
|
+
groupOrder: Ee,
|
|
6797
|
+
maxHeight: 380,
|
|
6798
|
+
disabled: r,
|
|
6799
|
+
testId: w && `${w}-menu`,
|
|
6800
|
+
tabIndex: -1,
|
|
6801
|
+
menu: {
|
|
6802
|
+
label: ye,
|
|
6803
|
+
trigger: "DropDownButton",
|
|
6804
|
+
small: o,
|
|
6805
|
+
sections: ve.map(([e = "", t = "", n]) => {
|
|
6806
|
+
let r = n || t || "", i = Zn(e) ? e : "";
|
|
6807
|
+
return {
|
|
6808
|
+
type: "Option",
|
|
6809
|
+
label: P ? Ad(i) : i,
|
|
6810
|
+
inline: !0,
|
|
6811
|
+
onClick: (n) => {
|
|
6812
|
+
n.stopPropagation(), _e(e, t);
|
|
6813
|
+
},
|
|
6814
|
+
description: r,
|
|
6815
|
+
selected: r === ye,
|
|
6816
|
+
testId: `${w}-unit-${r}`
|
|
6817
|
+
};
|
|
6818
|
+
})
|
|
6819
|
+
}
|
|
6820
|
+
}))
|
|
6821
|
+
]
|
|
6822
|
+
})
|
|
6823
|
+
});
|
|
6824
|
+
}, Nd = (e, t) => ({ target: {
|
|
6825
|
+
name: e,
|
|
6826
|
+
value: t
|
|
6827
|
+
} }), Pd = (e) => `Value cannot be less than ${e}`, Fd = (e) => `Value cannot be greater than ${e}`, Id = ({ name: e = "", value: t, min: n, max: r, label: i, step: a = .01, onChange: o, onChangeComplete: s, preferredUnit: c = "m", enableEditUnitInput: u = !1, disabled: d = !1, showUnitInput: f = !0, showArrows: p = !0, unitkey: m = "length", testId: g, noConversion: v = !1, small: x = !1, marks: S, minErrorMessage: C = Pd, maxErrorMessage: w = Fd }) => {
|
|
6828
|
+
let T = dr(t, c), [E, D] = h(T), [O, k] = h(!1);
|
|
6829
|
+
l(() => {
|
|
6830
|
+
O || D(T);
|
|
6831
|
+
}, [O, T]);
|
|
6832
|
+
let [A = "", j = c] = ir(E), M = Number(A), N = NaN;
|
|
6833
|
+
if (A.trim() !== "" && Number.isFinite(M)) try {
|
|
6834
|
+
N = v ? M : Un(M, c, j);
|
|
6835
|
+
} catch {
|
|
6836
|
+
N = NaN;
|
|
6837
|
+
}
|
|
6838
|
+
let P = Number.isFinite(N) ? N < n ? C(n) : N > r ? w(r) : "" : "Must be a numerical value", F = () => {
|
|
6839
|
+
!u || d || (D(T), k(!0));
|
|
6840
|
+
}, I = () => {
|
|
6841
|
+
D(T), k(!1);
|
|
6842
|
+
}, L = () => {
|
|
6843
|
+
P || (o(Nd(e, N)), s == null || s(Nd(e, N)), k(!1));
|
|
6844
|
+
}, R = (e) => {
|
|
6845
|
+
e.key === "Enter" && L(), e.key === "Escape" && I();
|
|
6846
|
+
}, z = d || O;
|
|
6847
|
+
return /* @__PURE__ */ b("div", {
|
|
6848
|
+
className: pd.wrapper,
|
|
6849
|
+
"data-testid": g && `${g}-wrapper`,
|
|
6850
|
+
children: [
|
|
6851
|
+
i && /* @__PURE__ */ y("span", {
|
|
6852
|
+
className: pd.label,
|
|
6853
|
+
children: /* @__PURE__ */ y(ro, {
|
|
6854
|
+
small: x,
|
|
6855
|
+
children: i
|
|
6856
|
+
})
|
|
6857
|
+
}),
|
|
6858
|
+
f && /* @__PURE__ */ b("div", {
|
|
6859
|
+
className: _(pd.input, x && pd.inputSmall, u && pd.editable),
|
|
6860
|
+
children: [/* @__PURE__ */ y("div", {
|
|
6861
|
+
className: pd.inputControl,
|
|
6862
|
+
"data-testid": g && `${g}-edit-trigger`,
|
|
6863
|
+
onClick: F,
|
|
6864
|
+
onKeyDown: R,
|
|
6865
|
+
children: /* @__PURE__ */ y(Md, {
|
|
6866
|
+
name: e,
|
|
6867
|
+
value: O ? E : T,
|
|
6868
|
+
unitkey: m,
|
|
6869
|
+
initUnit: c,
|
|
6870
|
+
noConversion: v,
|
|
6871
|
+
onChange: (e) => D(e.target.value),
|
|
6872
|
+
disabled: !O || d,
|
|
6873
|
+
error: O ? P : null,
|
|
6874
|
+
small: x,
|
|
6875
|
+
testId: g && `${g}-unit-input`
|
|
6876
|
+
})
|
|
6877
|
+
}), O && /* @__PURE__ */ y("div", {
|
|
6878
|
+
className: pd.actionsWrapper,
|
|
6879
|
+
children: /* @__PURE__ */ b("div", {
|
|
6880
|
+
className: pd.actions,
|
|
6881
|
+
children: [/* @__PURE__ */ y(K, {
|
|
6882
|
+
icon: "close",
|
|
6883
|
+
small: !0,
|
|
6884
|
+
onClick: I,
|
|
6885
|
+
testId: g && `${g}-cancel`
|
|
6886
|
+
}), /* @__PURE__ */ y(K, {
|
|
6887
|
+
icon: "checkmark",
|
|
6888
|
+
small: !0,
|
|
6889
|
+
disabled: !!P,
|
|
6890
|
+
onClick: L,
|
|
6891
|
+
testId: g && `${g}-confirm`
|
|
6892
|
+
})]
|
|
6893
|
+
})
|
|
6894
|
+
})]
|
|
6895
|
+
}),
|
|
6896
|
+
/* @__PURE__ */ y(Uc, {
|
|
6897
|
+
name: e,
|
|
6898
|
+
value: t,
|
|
6899
|
+
min: n,
|
|
6900
|
+
max: r,
|
|
6901
|
+
step: a,
|
|
6902
|
+
onChange: o,
|
|
6903
|
+
onChangeComplete: s,
|
|
6904
|
+
showArrows: p,
|
|
6905
|
+
showTooltip: !0,
|
|
6906
|
+
tooltipFormatter: () => ur(T),
|
|
6907
|
+
disabled: z,
|
|
6908
|
+
small: x,
|
|
6909
|
+
marks: S,
|
|
6910
|
+
testId: g && `${g}-slider`
|
|
6911
|
+
})
|
|
6912
|
+
]
|
|
6913
|
+
});
|
|
6914
|
+
}, Ld = {
|
|
6915
|
+
tabs: "_tabs_1y79t_1",
|
|
6916
|
+
padding: "_padding_1y79t_7",
|
|
6917
|
+
margin: "_margin_1y79t_11",
|
|
6918
|
+
contentPadding: "_contentPadding_1y79t_14",
|
|
6919
|
+
item: "_item_1y79t_17",
|
|
6920
|
+
active: "_active_1y79t_39",
|
|
6921
|
+
hidden: "_hidden_1y79t_58",
|
|
6922
|
+
disabled: "_disabled_1y79t_61",
|
|
6923
|
+
left: "_left_1y79t_65",
|
|
6924
|
+
right: "_right_1y79t_65"
|
|
6925
|
+
}, Rd = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
|
|
6926
|
+
let u = getComputedStyle(document.body).getPropertyValue("--color-text-error");
|
|
6927
|
+
return /* @__PURE__ */ y("a", {
|
|
6928
|
+
id: e == null ? void 0 : e.toString(),
|
|
6929
|
+
href: t,
|
|
6930
|
+
className: _(Ld.item, i ? Ld.active : "", r ? Ld.disabled : "", n && !i ? Ld.hidden : "", o ? Ld.right : Ld.left),
|
|
6931
|
+
onClick: a,
|
|
6932
|
+
"data-testid": l,
|
|
6933
|
+
children: s ? /* @__PURE__ */ y(aa, {
|
|
6934
|
+
small: !0,
|
|
6935
|
+
margin: "-4px",
|
|
6936
|
+
color: u,
|
|
6937
|
+
title: "!",
|
|
6938
|
+
children: e
|
|
6939
|
+
}) : c ? /* @__PURE__ */ y(aa, {
|
|
6940
|
+
small: !0,
|
|
6941
|
+
margin: "-4px",
|
|
6942
|
+
title: c == null ? void 0 : c.toString(),
|
|
6943
|
+
children: e
|
|
6944
|
+
}) : e
|
|
6945
|
+
});
|
|
6946
|
+
}, zd = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ y("div", {
|
|
6947
|
+
className: _(n ? Ld.contentPadding : ""),
|
|
6948
|
+
children: e.map((e, n) => t === n && e)
|
|
6949
|
+
}) : null, Bd = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = mn, padding: a = !1, margin: o = !0, contentPadding: s = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
|
|
6950
|
+
let p = c(U), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6951
|
+
var n;
|
|
6952
|
+
return {
|
|
6953
|
+
value: t,
|
|
6954
|
+
url: e.props.url,
|
|
6955
|
+
label: e.props.label,
|
|
6956
|
+
hidden: e.props.hidden,
|
|
6957
|
+
disabled: e.props.disabled || p,
|
|
6958
|
+
badge: e.props.badge,
|
|
6959
|
+
testId: ((n = e.props) == null ? void 0 : n.testId) && `${e.props.testId}-${t}`
|
|
6960
|
+
};
|
|
6961
|
+
}) : t || d, { simpleInputs: g, options: v, selectedOptions: x } = m ? {
|
|
6962
|
+
simpleInputs: !1,
|
|
6963
|
+
options: h,
|
|
6964
|
+
selectedOptions: void 0
|
|
6965
|
+
} : uc(h, r), S = m || x == null ? void 0 : g ? x : x.value, C = u === void 0 ? v == null ? void 0 : v.findIndex((e) => e.value === S) : u, w = C === -1 ? 0 : C, T = (t, n, r) => {
|
|
6966
|
+
if (m) l(t, n.key || n.label || null);
|
|
6967
|
+
else {
|
|
6968
|
+
let t = r.target;
|
|
6969
|
+
t.name = e, t.value = n.value, t.label = n.label, i(r);
|
|
6970
|
+
}
|
|
6971
|
+
};
|
|
6972
|
+
return v ? /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("div", {
|
|
6973
|
+
className: _(Ld.tabs, a ? Ld.padding : "", o ? Ld.margin : ""),
|
|
6974
|
+
"data-testid": f,
|
|
6975
|
+
children: v.map((e, t) => {
|
|
6976
|
+
let { label: n, url: r, hidden: i, disabled: a, value: o, right: s, invalid: c, badge: l, testId: u } = e;
|
|
6977
|
+
return /* @__PURE__ */ y(Rd, {
|
|
6978
|
+
label: n,
|
|
6979
|
+
url: r,
|
|
6980
|
+
hidden: i,
|
|
6981
|
+
disabled: a || p,
|
|
6982
|
+
invalid: c,
|
|
6983
|
+
badge: l,
|
|
6984
|
+
right: s,
|
|
6985
|
+
active: m ? t === w : o === S,
|
|
6986
|
+
onClick: (n) => T(t, e, n),
|
|
6987
|
+
testId: u
|
|
6988
|
+
}, t);
|
|
6989
|
+
})
|
|
6990
|
+
}), /* @__PURE__ */ y(zd, {
|
|
6991
|
+
activeTabIndex: w == null ? 0 : w,
|
|
6992
|
+
contentPadding: s,
|
|
6993
|
+
children: n
|
|
6994
|
+
})] }) : null;
|
|
6995
|
+
}, Vd = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ y(a, {
|
|
6996
|
+
href: t,
|
|
6997
|
+
to: t,
|
|
6998
|
+
target: n,
|
|
6999
|
+
onClick: i,
|
|
7000
|
+
"data-testid": r,
|
|
7001
|
+
children: /* @__PURE__ */ y(ro, {
|
|
7002
|
+
link: !0,
|
|
7003
|
+
children: e
|
|
7004
|
+
})
|
|
7005
|
+
}), Hd = {
|
|
7006
|
+
inputInTable: "_inputInTable_q0tl0_1",
|
|
7007
|
+
inputHover: "_inputHover_q0tl0_13",
|
|
7008
|
+
inputFocus: "_inputFocus_q0tl0_18",
|
|
7009
|
+
inputError: "_inputError_q0tl0_25",
|
|
7010
|
+
inputWarning: "_inputWarning_q0tl0_26",
|
|
7011
|
+
inputDisabled: "_inputDisabled_q0tl0_61",
|
|
7012
|
+
hideScrollbars: "_hideScrollbars_q0tl0_67",
|
|
7013
|
+
textarea: "_textarea_q0tl0_77",
|
|
7014
|
+
small: "_small_q0tl0_116",
|
|
7015
|
+
monospace: "_monospace_q0tl0_155"
|
|
7016
|
+
}, Ud = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = mn, onKeyPress: s = mn, onFocus: l = mn, onBlur: u = mn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: g, monospace: v = !1, small: b = !1, testId: x }) => {
|
|
7017
|
+
let S = c(U), C = /* @__PURE__ */ y("textarea", {
|
|
7018
|
+
className: _(Hd.textarea, f ? Hd.error : "", p ? Hd.warning : "", v ? Hd.monospace : "", b ? Hd.small : ""),
|
|
7019
|
+
name: e,
|
|
7020
|
+
value: t,
|
|
7021
|
+
placeholder: n,
|
|
7022
|
+
cols: r,
|
|
7023
|
+
rows: i,
|
|
7024
|
+
onChange: o,
|
|
7025
|
+
disabled: a || S,
|
|
7026
|
+
onKeyPress: s,
|
|
7027
|
+
onFocus: l,
|
|
7028
|
+
onBlur: u,
|
|
7029
|
+
tabIndex: d,
|
|
7030
|
+
style: { resize: g },
|
|
7031
|
+
"data-error": f || null,
|
|
7032
|
+
"data-warning": p || null,
|
|
7033
|
+
"data-testid": x
|
|
7034
|
+
});
|
|
7035
|
+
return /* @__PURE__ */ y(G, {
|
|
7036
|
+
error: !!f,
|
|
7037
|
+
warning: !!p,
|
|
7038
|
+
text: m || f || p,
|
|
7039
|
+
enabled: m && J(m) || f && J(f) || p && J(p) || !1,
|
|
7040
|
+
maxWidth: h,
|
|
7041
|
+
children: C
|
|
7042
|
+
});
|
|
7043
|
+
}, Q = {
|
|
7044
|
+
topbar: "_topbar_oyr59_11",
|
|
7045
|
+
fixed: "_fixed_oyr59_21",
|
|
7046
|
+
appSwitcher: "_appSwitcher_oyr59_29",
|
|
7047
|
+
title: "_title_oyr59_75",
|
|
7048
|
+
logo: "_logo_oyr59_91",
|
|
7049
|
+
label: "_label_oyr59_94",
|
|
7050
|
+
brand: "_brand_oyr59_99",
|
|
7051
|
+
version: "_version_oyr59_104",
|
|
7052
|
+
left: "_left_oyr59_111",
|
|
7053
|
+
right: "_right_oyr59_112",
|
|
7054
|
+
item: "_item_oyr59_126",
|
|
7055
|
+
link: "_link_oyr59_127",
|
|
7056
|
+
button: "_button_oyr59_138",
|
|
7057
|
+
menu: "_menu_oyr59_139",
|
|
7058
|
+
active: "_active_oyr59_168",
|
|
7059
|
+
alert: "_alert_oyr59_193"
|
|
7060
|
+
}, Wd = ({ warning: e }) => /* @__PURE__ */ y("div", {
|
|
7061
|
+
className: Q.alert,
|
|
7062
|
+
children: e
|
|
7063
|
+
}), Gd = ({ icon: e, url: t, onClick: n }) => {
|
|
7064
|
+
let r = /* @__PURE__ */ y(W, { icon: e });
|
|
7065
|
+
return t ? /* @__PURE__ */ y("a", {
|
|
7066
|
+
href: t,
|
|
7067
|
+
onClick: n,
|
|
6628
7068
|
className: Q.appSwitcher,
|
|
6629
7069
|
children: r
|
|
6630
7070
|
}) : /* @__PURE__ */ y("div", {
|
|
@@ -6632,7 +7072,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6632
7072
|
className: Q.appSwitcher,
|
|
6633
7073
|
children: r
|
|
6634
7074
|
});
|
|
6635
|
-
},
|
|
7075
|
+
}, Kd = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
|
|
6636
7076
|
let a = /* @__PURE__ */ b("div", {
|
|
6637
7077
|
className: Q.title,
|
|
6638
7078
|
children: [
|
|
@@ -6661,9 +7101,9 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6661
7101
|
children: a
|
|
6662
7102
|
})
|
|
6663
7103
|
});
|
|
6664
|
-
},
|
|
7104
|
+
}, qd = /* @__PURE__ */ function(e) {
|
|
6665
7105
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6666
|
-
}({}),
|
|
7106
|
+
}({}), Jd = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: s = "a" }) => {
|
|
6667
7107
|
let l = c(U);
|
|
6668
7108
|
return /* @__PURE__ */ b(s, {
|
|
6669
7109
|
className: _(Q.link, i ? Q.active : ""),
|
|
@@ -6680,11 +7120,11 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6680
7120
|
children: e
|
|
6681
7121
|
})]
|
|
6682
7122
|
});
|
|
6683
|
-
},
|
|
7123
|
+
}, Yd = ({ element: e }) => {
|
|
6684
7124
|
switch (e.type) {
|
|
6685
|
-
case
|
|
7125
|
+
case qd.LINK: return /* @__PURE__ */ y("div", {
|
|
6686
7126
|
className: Q.item,
|
|
6687
|
-
children: /* @__PURE__ */ y(
|
|
7127
|
+
children: /* @__PURE__ */ y(Jd, {
|
|
6688
7128
|
label: e.label,
|
|
6689
7129
|
url: e.url,
|
|
6690
7130
|
icon: e.icon,
|
|
@@ -6695,7 +7135,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6695
7135
|
component: e.component
|
|
6696
7136
|
})
|
|
6697
7137
|
});
|
|
6698
|
-
case
|
|
7138
|
+
case qd.BUTTON: return /* @__PURE__ */ y("div", {
|
|
6699
7139
|
className: _(Q.item, Q.button),
|
|
6700
7140
|
children: /* @__PURE__ */ y(K, {
|
|
6701
7141
|
label: e.label,
|
|
@@ -6707,7 +7147,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6707
7147
|
testId: e.testId
|
|
6708
7148
|
})
|
|
6709
7149
|
});
|
|
6710
|
-
case
|
|
7150
|
+
case qd.MENU: return /* @__PURE__ */ y("div", {
|
|
6711
7151
|
className: _(Q.item, Q.menu),
|
|
6712
7152
|
children: /* @__PURE__ */ y(_a, {
|
|
6713
7153
|
maxHeight: "100%",
|
|
@@ -6715,7 +7155,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6715
7155
|
trigger: Ur.COMPONENT,
|
|
6716
7156
|
fullHeightTrigger: !0,
|
|
6717
7157
|
placement: "bottom-start",
|
|
6718
|
-
component: /* @__PURE__ */ y(
|
|
7158
|
+
component: /* @__PURE__ */ y(Jd, {
|
|
6719
7159
|
label: e.label,
|
|
6720
7160
|
icon: e.icon,
|
|
6721
7161
|
onClick: e.onClick
|
|
@@ -6724,50 +7164,50 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6724
7164
|
}
|
|
6725
7165
|
})
|
|
6726
7166
|
});
|
|
6727
|
-
case
|
|
7167
|
+
case qd.COMPONENT: return /* @__PURE__ */ y("div", {
|
|
6728
7168
|
className: Q.item,
|
|
6729
7169
|
children: e.component
|
|
6730
7170
|
});
|
|
6731
7171
|
default: return null;
|
|
6732
7172
|
}
|
|
6733
|
-
},
|
|
7173
|
+
}, Xd = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ b("div", { children: [i && /* @__PURE__ */ y(Wd, { warning: i }), /* @__PURE__ */ b("div", {
|
|
6734
7174
|
className: _(Q.topbar, o ? Q.fixed : ""),
|
|
6735
7175
|
style: { height: a },
|
|
6736
7176
|
children: [
|
|
6737
|
-
!!t && /* @__PURE__ */ y(
|
|
7177
|
+
!!t && /* @__PURE__ */ y(Gd, {
|
|
6738
7178
|
icon: t.icon,
|
|
6739
7179
|
url: t.url,
|
|
6740
7180
|
onClick: t.onClick
|
|
6741
7181
|
}),
|
|
6742
7182
|
/* @__PURE__ */ b("div", {
|
|
6743
7183
|
className: Q.left,
|
|
6744
|
-
children: [e && /* @__PURE__ */ y(
|
|
7184
|
+
children: [e && /* @__PURE__ */ y(Kd, {
|
|
6745
7185
|
label: e.label,
|
|
6746
7186
|
logo: e.logo,
|
|
6747
7187
|
url: e.url,
|
|
6748
7188
|
version: e.version,
|
|
6749
7189
|
onClick: e.onClick
|
|
6750
|
-
}), n.map((e, t) => e ? /* @__PURE__ */ y(
|
|
7190
|
+
}), n.map((e, t) => e ? /* @__PURE__ */ y(Yd, { element: e }, t) : null)]
|
|
6751
7191
|
}),
|
|
6752
7192
|
/* @__PURE__ */ y("div", {
|
|
6753
7193
|
className: Q.right,
|
|
6754
|
-
children: r.map((e, t) => e ? /* @__PURE__ */ y(
|
|
7194
|
+
children: r.map((e, t) => e ? /* @__PURE__ */ y(Yd, { element: e }, t) : null)
|
|
6755
7195
|
})
|
|
6756
7196
|
]
|
|
6757
|
-
})] }),
|
|
7197
|
+
})] }), Zd = {
|
|
6758
7198
|
popConfirm: "_popConfirm_1x6ye_1",
|
|
6759
7199
|
content: "_content_1x6ye_7",
|
|
6760
7200
|
buttons: "_buttons_1x6ye_13"
|
|
6761
|
-
},
|
|
6762
|
-
className:
|
|
7201
|
+
}, Qd = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ b("div", {
|
|
7202
|
+
className: Zd.popConfirm,
|
|
6763
7203
|
children: [e && /* @__PURE__ */ y("div", {
|
|
6764
|
-
className:
|
|
7204
|
+
className: Zd.content,
|
|
6765
7205
|
children: /* @__PURE__ */ y(ro, {
|
|
6766
7206
|
small: !0,
|
|
6767
7207
|
children: e
|
|
6768
7208
|
})
|
|
6769
7209
|
}), /* @__PURE__ */ b("div", {
|
|
6770
|
-
className:
|
|
7210
|
+
className: Zd.buttons,
|
|
6771
7211
|
children: [/* @__PURE__ */ y(K, {
|
|
6772
7212
|
small: !0,
|
|
6773
7213
|
colored: !0,
|
|
@@ -6782,8 +7222,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6782
7222
|
testId: `${s}-cancel-button`
|
|
6783
7223
|
})]
|
|
6784
7224
|
})]
|
|
6785
|
-
}),
|
|
6786
|
-
content: /* @__PURE__ */ y(
|
|
7225
|
+
}), $d = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ y(Aa, {
|
|
7226
|
+
content: /* @__PURE__ */ y(Qd, {
|
|
6787
7227
|
title: i,
|
|
6788
7228
|
okText: s,
|
|
6789
7229
|
onClickOk: c,
|
|
@@ -6798,14 +7238,14 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6798
7238
|
overflowContainer: u,
|
|
6799
7239
|
testId: d,
|
|
6800
7240
|
children: e
|
|
6801
|
-
}),
|
|
7241
|
+
}), ef = {
|
|
6802
7242
|
tree: "_tree_coxxe_1",
|
|
6803
7243
|
toggle: "_toggle_coxxe_8",
|
|
6804
7244
|
dropTarget: "_dropTarget_coxxe_15",
|
|
6805
7245
|
placeholder: "_placeholder_coxxe_30",
|
|
6806
7246
|
draggingSource: "_draggingSource_coxxe_36",
|
|
6807
7247
|
placeholderContainer: "_placeholderContainer_coxxe_39"
|
|
6808
|
-
},
|
|
7248
|
+
}, tf = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
|
|
6809
7249
|
let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [g, v] = e.useState(!1), [x, S] = e.useState(0), C = (e) => {
|
|
6810
7250
|
e.stopPropagation(), i(l);
|
|
6811
7251
|
}, w = (e) => {
|
|
@@ -6832,7 +7272,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6832
7272
|
className: _(Z.itemHeader, g ? Z.noPointerEvents : ""),
|
|
6833
7273
|
children: [
|
|
6834
7274
|
a && /* @__PURE__ */ y("div", {
|
|
6835
|
-
className:
|
|
7275
|
+
className: ef.toggle,
|
|
6836
7276
|
children: /* @__PURE__ */ y(K, {
|
|
6837
7277
|
basic: !0,
|
|
6838
7278
|
colored: r ? !0 : Wr.MUTED,
|
|
@@ -6857,10 +7297,10 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6857
7297
|
]
|
|
6858
7298
|
})
|
|
6859
7299
|
});
|
|
6860
|
-
},
|
|
6861
|
-
className:
|
|
7300
|
+
}, nf = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ y("div", {
|
|
7301
|
+
className: ef.placeholder,
|
|
6862
7302
|
style: { left: `calc(${t} * ${e})` }
|
|
6863
|
-
}),
|
|
7303
|
+
}), rf = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: c, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: p, stickyHeader: h, height: g, render: _, placeholderIndent: v }) => {
|
|
6864
7304
|
var x;
|
|
6865
7305
|
let S = c == null ? m(null) : c, C = (e) => {
|
|
6866
7306
|
i && i(e);
|
|
@@ -6927,641 +7367,300 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
6927
7367
|
options: Br(),
|
|
6928
7368
|
context: window,
|
|
6929
7369
|
children: /* @__PURE__ */ y(zr, {
|
|
6930
|
-
ref: S,
|
|
6931
|
-
tree: j,
|
|
6932
|
-
sort: !1,
|
|
6933
|
-
insertDroppableFirst: !1,
|
|
6934
|
-
canDrag: () => n,
|
|
6935
|
-
canDrop: t || ((e, { dragSource: t, dropTargetId: n }) => {
|
|
6936
|
-
if ((t == null ? void 0 : t.parent) === n) return !0;
|
|
6937
|
-
}),
|
|
6938
|
-
rootId: 0,
|
|
6939
|
-
render: (e, { depth: t, hasChild: r, handleRef: i, isOpen: a, onToggle: o }) => {
|
|
6940
|
-
var s;
|
|
6941
|
-
return _ ? _(e, {
|
|
6942
|
-
depth: t,
|
|
6943
|
-
draggable: n,
|
|
6944
|
-
handleRef: i,
|
|
6945
|
-
hasChild: r,
|
|
6946
|
-
isOpen: a,
|
|
6947
|
-
onToggle: o
|
|
6948
|
-
}) : /* @__PURE__ */ y(
|
|
6949
|
-
hasChild: u ? u(e) : r,
|
|
6950
|
-
node: e,
|
|
6951
|
-
depth: t,
|
|
6952
|
-
isOpen: a,
|
|
6953
|
-
onToggle: () => {
|
|
6954
|
-
d == null || d(e, !a), o();
|
|
6955
|
-
},
|
|
6956
|
-
draggable: n,
|
|
6957
|
-
icons: f,
|
|
6958
|
-
onDrop: (s = e.data) == null ? void 0 : s.onDrop
|
|
6959
|
-
});
|
|
6960
|
-
},
|
|
6961
|
-
onDrop: A,
|
|
6962
|
-
onChangeOpen: C,
|
|
6963
|
-
dropTargetOffset: 10,
|
|
6964
|
-
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(Md, {
|
|
6965
|
-
depth: t,
|
|
6966
|
-
indent: v
|
|
6967
|
-
}),
|
|
6968
|
-
placeholderComponent: "div",
|
|
6969
|
-
listComponent: "div",
|
|
6970
|
-
listItemComponent: "div",
|
|
6971
|
-
classes: {
|
|
6972
|
-
root: Ad.tree,
|
|
6973
|
-
draggingSource: Ad.draggingSource,
|
|
6974
|
-
dropTarget: Ad.dropTarget,
|
|
6975
|
-
placeholder: Ad.placeholderContainer
|
|
6976
|
-
},
|
|
6977
|
-
initialOpen: o,
|
|
6978
|
-
enableAnimateExpand: !0
|
|
6979
|
-
})
|
|
6980
|
-
})]
|
|
6981
|
-
});
|
|
6982
|
-
}, Pd = {
|
|
6983
|
-
treeTable: "_treeTable_1ywvy_1",
|
|
6984
|
-
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
6985
|
-
folderCell: "_folderCell_1ywvy_30",
|
|
6986
|
-
dragCell: "_dragCell_1ywvy_31",
|
|
6987
|
-
drag: "_drag_1ywvy_31",
|
|
6988
|
-
folder: "_folder_1ywvy_30",
|
|
6989
|
-
active: "_active_1ywvy_61"
|
|
6990
|
-
}, Fd = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Fd(e, t.id)]), Id = (e, t) => {
|
|
6991
|
-
let n = new Set(t);
|
|
6992
|
-
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
6993
|
-
}, Ld = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Rd = (e, t, n, r = []) => {
|
|
6994
|
-
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
6995
|
-
if (o.length === 0) return {
|
|
6996
|
-
checked: i.has(t),
|
|
6997
|
-
indeterminate: !1
|
|
6998
|
-
};
|
|
6999
|
-
let s = o.map((t) => Rd(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7000
|
-
return {
|
|
7001
|
-
checked: u,
|
|
7002
|
-
indeterminate: c + l > 0 && !u
|
|
7003
|
-
};
|
|
7004
|
-
}, zd = (e, t, n = []) => {
|
|
7005
|
-
let r = Id(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7006
|
-
return {
|
|
7007
|
-
checked: r.length > 0 && a === r.length,
|
|
7008
|
-
indeterminate: a > 0 && a < r.length
|
|
7009
|
-
};
|
|
7010
|
-
}, Bd = n(null), Vd = () => c(Bd), Hd = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7011
|
-
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: c } = t == null ? {} : t, l = f(() => new Set(a), [a]), u = f(() => {
|
|
7012
|
-
if (!r) return null;
|
|
7013
|
-
let e = /* @__PURE__ */ new Map();
|
|
7014
|
-
for (let t of n) e.set(t.id, Rd(n, t.id, i, a));
|
|
7015
|
-
return e;
|
|
7016
|
-
}, [
|
|
7017
|
-
i,
|
|
7018
|
-
a,
|
|
7019
|
-
r,
|
|
7020
|
-
n
|
|
7021
|
-
]), d = f(() => r ? zd(n, i, a) : void 0, [
|
|
7022
|
-
i,
|
|
7023
|
-
a,
|
|
7024
|
-
r,
|
|
7025
|
-
n
|
|
7026
|
-
]), p = s((e) => u == null ? void 0 : u.get(e), [u]), m = s((e) => l.has(e), [l]), h = s((e) => o == null ? void 0 : o(e), [o]), g = s((e) => {
|
|
7027
|
-
if (!r || l.has(e)) return;
|
|
7028
|
-
let t = Fd(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = Rd(n, e, i, a);
|
|
7029
|
-
if (u) {
|
|
7030
|
-
let e = new Set(s);
|
|
7031
|
-
c == null || c(Ld(i, e, l));
|
|
7032
|
-
} else c == null || c([...new Set([...i, ...o])]);
|
|
7033
|
-
}, [
|
|
7034
|
-
i,
|
|
7035
|
-
a,
|
|
7036
|
-
l,
|
|
7037
|
-
r,
|
|
7038
|
-
c,
|
|
7039
|
-
n
|
|
7040
|
-
]), _ = s(() => {
|
|
7041
|
-
if (!r) return;
|
|
7042
|
-
let e = Id(n, a), { checked: t } = zd(n, i, a);
|
|
7043
|
-
t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
|
|
7044
|
-
}, [
|
|
7045
|
-
i,
|
|
7046
|
-
a,
|
|
7047
|
-
l,
|
|
7048
|
-
r,
|
|
7049
|
-
c,
|
|
7050
|
-
n
|
|
7051
|
-
]), v = f(() => ({
|
|
7052
|
-
enabled: r,
|
|
7053
|
-
headerCheckState: d,
|
|
7054
|
-
getRowCheckState: p,
|
|
7055
|
-
getRowCheckTooltip: h,
|
|
7056
|
-
isRowCheckDisabled: m,
|
|
7057
|
-
toggleRowCheck: g,
|
|
7058
|
-
toggleHeaderCheck: _
|
|
7059
|
-
}), [
|
|
7060
|
-
r,
|
|
7061
|
-
p,
|
|
7062
|
-
h,
|
|
7063
|
-
d,
|
|
7064
|
-
m,
|
|
7065
|
-
_,
|
|
7066
|
-
g
|
|
7067
|
-
]);
|
|
7068
|
-
return /* @__PURE__ */ y(Bd.Provider, {
|
|
7069
|
-
value: v,
|
|
7070
|
-
children: e
|
|
7071
|
-
});
|
|
7072
|
-
}, Ud = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
7073
|
-
let h = Vd(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, v = g == null ? void 0 : g.checked, x = g == null ? void 0 : g.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
|
|
7074
|
-
let r = t ? t[e] : void 0;
|
|
7075
|
-
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
7076
|
-
};
|
|
7077
|
-
return /* @__PURE__ */ y("table", {
|
|
7078
|
-
className: ns.table,
|
|
7079
|
-
"data-testid": O,
|
|
7080
|
-
onDrop: p,
|
|
7081
|
-
onDragEnter: u,
|
|
7082
|
-
onDragOver: d,
|
|
7083
|
-
onDragLeave: f,
|
|
7084
|
-
children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ b("tr", {
|
|
7085
|
-
onClick: j,
|
|
7086
|
-
className: _(Pd.treeTableRow, A ? Pd.active : void 0),
|
|
7087
|
-
children: [
|
|
7088
|
-
C && /* @__PURE__ */ y(rl, {
|
|
7089
|
-
isHeader: !1,
|
|
7090
|
-
cell: {
|
|
7091
|
-
type: nl.CHECKBOX,
|
|
7092
|
-
checked: v,
|
|
7093
|
-
disabled: S,
|
|
7094
|
-
indeterminate: x,
|
|
7095
|
-
tooltip: h == null ? void 0 : h.getRowCheckTooltip(l.id),
|
|
7096
|
-
onChange: () => h == null ? void 0 : h.toggleRowCheck(l.id)
|
|
7097
|
-
}
|
|
7098
|
-
}),
|
|
7099
|
-
r && /* @__PURE__ */ y("td", {
|
|
7100
|
-
className: Pd.dragCell,
|
|
7101
|
-
children: /* @__PURE__ */ y("div", {
|
|
7102
|
-
className: Pd.drag,
|
|
7103
|
-
onClick: (e) => e.stopPropagation(),
|
|
7104
|
-
ref: i,
|
|
7105
|
-
children: /* @__PURE__ */ y(W, { icon: H.DRAG })
|
|
7106
|
-
})
|
|
7107
|
-
}),
|
|
7108
|
-
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className: Pd.folderCell }, t)),
|
|
7109
|
-
M && /* @__PURE__ */ y("td", {
|
|
7110
|
-
className: Pd.folderCell,
|
|
7111
|
-
children: /* @__PURE__ */ y("div", {
|
|
7112
|
-
className: Pd.folder,
|
|
7113
|
-
onClick: () => m(E),
|
|
7114
|
-
onMouseDown: (e) => e.stopPropagation(),
|
|
7115
|
-
children: /* @__PURE__ */ y(K, {
|
|
7116
|
-
basic: !0,
|
|
7117
|
-
colored: c ? !0 : Wr.MUTED,
|
|
7118
|
-
disabled: !a,
|
|
7119
|
-
small: !0,
|
|
7120
|
-
round: !0,
|
|
7121
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND
|
|
7122
|
-
})
|
|
7123
|
-
})
|
|
7124
|
-
}),
|
|
7125
|
-
D.map((t, n) => /* @__PURE__ */ y(rl, {
|
|
7126
|
-
isHeader: !1,
|
|
7127
|
-
cell: t,
|
|
7128
|
-
width: N(n),
|
|
7129
|
-
columnAlignment: e ? e[n] : null
|
|
7130
|
-
}, n)),
|
|
7131
|
-
o && /* @__PURE__ */ y(rl, {
|
|
7132
|
-
isHeader: !1,
|
|
7133
|
-
cell: {
|
|
7134
|
-
type: nl.ACTIONS,
|
|
7135
|
-
actions: k
|
|
7136
|
-
}
|
|
7137
|
-
})
|
|
7138
|
-
]
|
|
7139
|
-
}) })
|
|
7140
|
-
});
|
|
7141
|
-
}, Wd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
7142
|
-
let a = Vd(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
7143
|
-
return /* @__PURE__ */ y("table", {
|
|
7144
|
-
className: _(ns.table, Pd.treeTableHeader),
|
|
7145
|
-
children: /* @__PURE__ */ y("thead", { children: i.map((i, c) => /* @__PURE__ */ b("tr", { children: [
|
|
7146
|
-
s && c === 0 ? /* @__PURE__ */ y(rl, {
|
|
7147
|
-
isHeader: !0,
|
|
7148
|
-
cell: {
|
|
7149
|
-
type: nl.CHECKBOX,
|
|
7150
|
-
checked: o.checked,
|
|
7151
|
-
indeterminate: o.indeterminate,
|
|
7152
|
-
onChange: a.toggleHeaderCheck
|
|
7153
|
-
}
|
|
7154
|
-
}) : s ? /* @__PURE__ */ y("td", {}) : null,
|
|
7155
|
-
n && /* @__PURE__ */ y("th", { className: Pd.dragCell }),
|
|
7156
|
-
i.cells.map((n, r) => /* @__PURE__ */ y(rl, {
|
|
7157
|
-
isHeader: !0,
|
|
7158
|
-
cell: n,
|
|
7159
|
-
width: t ? t[r] : void 0,
|
|
7160
|
-
columnAlignment: e ? e[r] : void 0
|
|
7161
|
-
}, r)),
|
|
7162
|
-
r && /* @__PURE__ */ y(rl, {
|
|
7163
|
-
isHeader: !0,
|
|
7164
|
-
cell: {
|
|
7165
|
-
type: nl.ACTIONS,
|
|
7166
|
-
actions: i.actions,
|
|
7167
|
-
width: 31
|
|
7168
|
-
}
|
|
7169
|
-
})
|
|
7170
|
-
] }, c)) })
|
|
7171
|
-
});
|
|
7172
|
-
}, Gd = ({ 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 }) => {
|
|
7173
|
-
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, x = Cc(v, _ == null ? [] : _);
|
|
7174
|
-
return /* @__PURE__ */ y(Hd, {
|
|
7175
|
-
rowCheckboxes: u,
|
|
7176
|
-
rows: v,
|
|
7177
|
-
children: /* @__PURE__ */ b("div", {
|
|
7178
|
-
className: Pd.treeTable,
|
|
7179
|
-
"data-testid": f,
|
|
7180
|
-
style: { width: g },
|
|
7181
|
-
children: [!!_ && /* @__PURE__ */ y(Wd, {
|
|
7182
|
-
columnAlignment: m,
|
|
7183
|
-
columnWidths: h,
|
|
7184
|
-
draggable: r,
|
|
7185
|
-
hasRowActions: x,
|
|
7186
|
-
headers: _
|
|
7187
|
-
}), /* @__PURE__ */ y(Nd, {
|
|
7188
|
-
allowParentReassignment: e,
|
|
7189
|
-
autoOpenActiveItems: t,
|
|
7190
|
-
canDrop: n,
|
|
7191
|
-
draggable: r,
|
|
7192
|
-
icons: i,
|
|
7193
|
-
isInitialOpen: a,
|
|
7194
|
-
itemHasChild: o,
|
|
7195
|
-
list: {
|
|
7196
|
-
noHeader: !0,
|
|
7197
|
-
items: v
|
|
7370
|
+
ref: S,
|
|
7371
|
+
tree: j,
|
|
7372
|
+
sort: !1,
|
|
7373
|
+
insertDroppableFirst: !1,
|
|
7374
|
+
canDrag: () => n,
|
|
7375
|
+
canDrop: t || ((e, { dragSource: t, dropTargetId: n }) => {
|
|
7376
|
+
if ((t == null ? void 0 : t.parent) === n) return !0;
|
|
7377
|
+
}),
|
|
7378
|
+
rootId: 0,
|
|
7379
|
+
render: (e, { depth: t, hasChild: r, handleRef: i, isOpen: a, onToggle: o }) => {
|
|
7380
|
+
var s;
|
|
7381
|
+
return _ ? _(e, {
|
|
7382
|
+
depth: t,
|
|
7383
|
+
draggable: n,
|
|
7384
|
+
handleRef: i,
|
|
7385
|
+
hasChild: r,
|
|
7386
|
+
isOpen: a,
|
|
7387
|
+
onToggle: o
|
|
7388
|
+
}) : /* @__PURE__ */ y(tf, {
|
|
7389
|
+
hasChild: u ? u(e) : r,
|
|
7390
|
+
node: e,
|
|
7391
|
+
depth: t,
|
|
7392
|
+
isOpen: a,
|
|
7393
|
+
onToggle: () => {
|
|
7394
|
+
d == null || d(e, !a), o();
|
|
7395
|
+
},
|
|
7396
|
+
draggable: n,
|
|
7397
|
+
icons: f,
|
|
7398
|
+
onDrop: (s = e.data) == null ? void 0 : s.onDrop
|
|
7399
|
+
});
|
|
7198
7400
|
},
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(Ud, {
|
|
7204
|
-
node: e,
|
|
7205
|
-
columnAlignment: m,
|
|
7206
|
-
columnWidths: h,
|
|
7401
|
+
onDrop: A,
|
|
7402
|
+
onChangeOpen: C,
|
|
7403
|
+
dropTargetOffset: 10,
|
|
7404
|
+
placeholderRender: (e, { depth: t }) => /* @__PURE__ */ y(nf, {
|
|
7207
7405
|
depth: t,
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7406
|
+
indent: v
|
|
7407
|
+
}),
|
|
7408
|
+
placeholderComponent: "div",
|
|
7409
|
+
listComponent: "div",
|
|
7410
|
+
listItemComponent: "div",
|
|
7411
|
+
classes: {
|
|
7412
|
+
root: ef.tree,
|
|
7413
|
+
draggingSource: ef.draggingSource,
|
|
7414
|
+
dropTarget: ef.dropTarget,
|
|
7415
|
+
placeholder: ef.placeholderContainer
|
|
7416
|
+
},
|
|
7417
|
+
initialOpen: o,
|
|
7418
|
+
enableAnimateExpand: !0
|
|
7419
|
+
})
|
|
7420
|
+
})]
|
|
7219
7421
|
});
|
|
7220
|
-
},
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = cr(e)) == null ? "" : r;
|
|
7237
|
-
}
|
|
7238
|
-
return n;
|
|
7239
|
-
}, Yd = /* @__PURE__ */ function(e) {
|
|
7240
|
-
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
7241
|
-
}({}), Xd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Zd = (e) => {
|
|
7242
|
-
if (!e) return !1;
|
|
7243
|
-
let t = Kn(e);
|
|
7244
|
-
return !Bn.includes(t);
|
|
7245
|
-
}, Qd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
7246
|
-
var r;
|
|
7247
|
-
let i = zn[t];
|
|
7248
|
-
if (!i || i.length === 0 || !((r = lr(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
7249
|
-
let a = Kn(String(e));
|
|
7250
|
-
return !(a && !i.includes(a));
|
|
7251
|
-
}, $d = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7252
|
-
var o;
|
|
7253
|
-
let s = Qn(e) ? Jn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7254
|
-
if (i || c) return {
|
|
7255
|
-
value: s,
|
|
7256
|
-
error: null
|
|
7257
|
-
};
|
|
7258
|
-
let l = r || (Qn(e) ? Kn(e) : cr(t));
|
|
7259
|
-
if (!((o = lr(s)) != null && o.valid)) return {
|
|
7260
|
-
value: void 0,
|
|
7261
|
-
error: "Invalid number format"
|
|
7262
|
-
};
|
|
7263
|
-
if (!n) return {
|
|
7264
|
-
value: void 0,
|
|
7265
|
-
error: "Target unit is missing"
|
|
7266
|
-
};
|
|
7267
|
-
if (!l) return {
|
|
7268
|
-
value: void 0,
|
|
7269
|
-
error: "Source unit is missing"
|
|
7422
|
+
}, af = {
|
|
7423
|
+
treeTable: "_treeTable_1ywvy_1",
|
|
7424
|
+
treeTableHeader: "_treeTableHeader_1ywvy_22",
|
|
7425
|
+
folderCell: "_folderCell_1ywvy_30",
|
|
7426
|
+
dragCell: "_dragCell_1ywvy_31",
|
|
7427
|
+
drag: "_drag_1ywvy_31",
|
|
7428
|
+
folder: "_folder_1ywvy_30",
|
|
7429
|
+
active: "_active_1ywvy_61"
|
|
7430
|
+
}, of = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...of(e, t.id)]), sf = (e, t) => {
|
|
7431
|
+
let n = new Set(t);
|
|
7432
|
+
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
7433
|
+
}, cf = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), lf = (e, t, n, r = []) => {
|
|
7434
|
+
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
7435
|
+
if (o.length === 0) return {
|
|
7436
|
+
checked: i.has(t),
|
|
7437
|
+
indeterminate: !1
|
|
7270
7438
|
};
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7439
|
+
let s = o.map((t) => lf(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
7440
|
+
return {
|
|
7441
|
+
checked: u,
|
|
7442
|
+
indeterminate: c + l > 0 && !u
|
|
7274
7443
|
};
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
unitkey: t
|
|
7281
|
-
}) ? {
|
|
7282
|
-
value: Jn(Ac(a ? Wn(e, n) : Un(e, n))),
|
|
7283
|
-
error: null
|
|
7284
|
-
} : {
|
|
7285
|
-
value: Jn(e),
|
|
7286
|
-
error: null
|
|
7287
|
-
};
|
|
7288
|
-
} catch {
|
|
7289
|
-
return {
|
|
7290
|
-
value: void 0,
|
|
7291
|
-
error: "Conversion not possible"
|
|
7292
|
-
};
|
|
7293
|
-
}
|
|
7294
|
-
}, ef = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7295
|
-
let a = Jn(e), o = Xd(a);
|
|
7296
|
-
return !Qd({
|
|
7297
|
-
value: e,
|
|
7298
|
-
unitkey: n,
|
|
7299
|
-
toUnit: t
|
|
7300
|
-
}) || Zd(e) || o ? { value: a } : Qn(e) ? $d({
|
|
7301
|
-
value: e,
|
|
7302
|
-
unitkey: n,
|
|
7303
|
-
toUnit: t,
|
|
7304
|
-
fromUnit: r,
|
|
7305
|
-
doNotConvertValue: i,
|
|
7306
|
-
exactPrecision: !0
|
|
7307
|
-
}) : { value: e };
|
|
7308
|
-
}, tf = (e) => un(e) && !nn(e) && !sn(e) ? tn(e, "fieldName", "") : typeof e == "string" ? e : "", nf = (e = "") => Bn == null ? void 0 : Bn.includes(e), rf = (e, t) => {
|
|
7309
|
-
let n = Kn(e || "");
|
|
7310
|
-
return nf(t) && nf(n);
|
|
7311
|
-
}, af = n(null), of = () => c(af), sf = !1, cf = (e) => {
|
|
7312
|
-
sf || (sf = !0, af = e);
|
|
7313
|
-
}, lf = (e) => Xn(e) ? e : er(e), uf = {
|
|
7314
|
-
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7315
|
-
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7316
|
-
}, df = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = mn, onClick: g = mn, onFocus: x = mn, onSwitchUnit: S = mn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7317
|
-
name: "",
|
|
7318
|
-
error: null
|
|
7319
|
-
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: ee = null }) => {
|
|
7320
|
-
let te = of(), ne = Kd();
|
|
7321
|
-
typeof c == "number" && (c = `${c}`);
|
|
7322
|
-
let [re = "", ie = ""] = c === void 0 ? [] : ir(c), z = f(() => Jd(u, C || (te == null ? void 0 : te.unitTemplate)), [
|
|
7323
|
-
u,
|
|
7324
|
-
C,
|
|
7325
|
-
te == null ? void 0 : te.unitTemplate
|
|
7326
|
-
]), ae = rf(c, z), oe = d || z || ie, se = qd(oe), { value: ce } = ef({
|
|
7327
|
-
value: c,
|
|
7328
|
-
toUnit: oe,
|
|
7329
|
-
unitkey: u,
|
|
7330
|
-
defaultFromUnit: ie,
|
|
7331
|
-
doNotConvertValue: p
|
|
7332
|
-
}), [B, le] = h(ce === "" ? {
|
|
7333
|
-
value: re,
|
|
7334
|
-
unit: ie
|
|
7335
|
-
} : {
|
|
7336
|
-
value: ce,
|
|
7337
|
-
unit: oe
|
|
7338
|
-
}), ue = M || (B == null ? void 0 : B.value) === void 0, [de, fe] = h(D ? Yd.PREDEFINED : Yd.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
|
|
7339
|
-
if (!(e != null && e.value)) return;
|
|
7340
|
-
if (k) return k === e.valueKey;
|
|
7341
|
-
let t = Qn(e.value) ? Kn(e.value) : "", { value: n = c } = $d({
|
|
7342
|
-
value: String(c),
|
|
7343
|
-
unitkey: u,
|
|
7344
|
-
toUnit: t
|
|
7345
|
-
});
|
|
7346
|
-
return dr(n, t) === e.value;
|
|
7347
|
-
}), he = () => {
|
|
7348
|
-
var e;
|
|
7349
|
-
let t = (e = c) == null ? "" : e, n = B.unit;
|
|
7350
|
-
if (!Qd({
|
|
7351
|
-
value: t,
|
|
7352
|
-
unitkey: u,
|
|
7353
|
-
toUnit: n
|
|
7354
|
-
})) {
|
|
7355
|
-
let e = Gn(u);
|
|
7356
|
-
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7357
|
-
} else if (u) try {
|
|
7358
|
-
let e = Vn(t, u);
|
|
7359
|
-
return Jn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7360
|
-
} catch {
|
|
7361
|
-
return null;
|
|
7362
|
-
}
|
|
7363
|
-
}, ge = (t) => {
|
|
7364
|
-
let n = tf(e), r = t.target, { value: i, selectionStart: a } = r, o = dr(i, (B == null ? void 0 : B.unit) || "");
|
|
7365
|
-
m({ target: {
|
|
7366
|
-
value: N ? dr(Un(o, ie), ie) : o,
|
|
7367
|
-
name: n
|
|
7368
|
-
} });
|
|
7369
|
-
let [s, c] = ir(o);
|
|
7370
|
-
le({
|
|
7371
|
-
value: s,
|
|
7372
|
-
unit: c
|
|
7373
|
-
}), ne(() => {
|
|
7374
|
-
r.selectionStart = a, r.selectionEnd = a;
|
|
7375
|
-
});
|
|
7376
|
-
}, _e = (e, t) => {
|
|
7377
|
-
t === B.unit || isNaN(Number(e)) || (le({
|
|
7378
|
-
value: e,
|
|
7379
|
-
unit: t
|
|
7380
|
-
}), S && S(t));
|
|
7444
|
+
}, uf = (e, t, n = []) => {
|
|
7445
|
+
let r = sf(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
7446
|
+
return {
|
|
7447
|
+
checked: r.length > 0 && a === r.length,
|
|
7448
|
+
indeterminate: a > 0 && a < r.length
|
|
7381
7449
|
};
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
value: e,
|
|
7406
|
-
unit: t
|
|
7407
|
-
}), fe(E && me && O ? Yd.PREDEFINED : Yd.CUSTOM);
|
|
7408
|
-
}
|
|
7450
|
+
}, df = n(null), ff = () => c(df), pf = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
7451
|
+
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: o, onChange: c } = t == null ? {} : t, l = f(() => new Set(a), [a]), u = f(() => {
|
|
7452
|
+
if (!r) return null;
|
|
7453
|
+
let e = /* @__PURE__ */ new Map();
|
|
7454
|
+
for (let t of n) e.set(t.id, lf(n, t.id, i, a));
|
|
7455
|
+
return e;
|
|
7456
|
+
}, [
|
|
7457
|
+
i,
|
|
7458
|
+
a,
|
|
7459
|
+
r,
|
|
7460
|
+
n
|
|
7461
|
+
]), d = f(() => r ? uf(n, i, a) : void 0, [
|
|
7462
|
+
i,
|
|
7463
|
+
a,
|
|
7464
|
+
r,
|
|
7465
|
+
n
|
|
7466
|
+
]), p = s((e) => u == null ? void 0 : u.get(e), [u]), m = s((e) => l.has(e), [l]), h = s((e) => o == null ? void 0 : o(e), [o]), g = s((e) => {
|
|
7467
|
+
if (!r || l.has(e)) return;
|
|
7468
|
+
let t = of(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = lf(n, e, i, a);
|
|
7469
|
+
if (u) {
|
|
7470
|
+
let e = new Set(s);
|
|
7471
|
+
c == null || c(cf(i, e, l));
|
|
7472
|
+
} else c == null || c([...new Set([...i, ...o])]);
|
|
7409
7473
|
}, [
|
|
7410
|
-
|
|
7474
|
+
i,
|
|
7475
|
+
a,
|
|
7476
|
+
l,
|
|
7477
|
+
r,
|
|
7411
7478
|
c,
|
|
7479
|
+
n
|
|
7480
|
+
]), _ = s(() => {
|
|
7481
|
+
if (!r) return;
|
|
7482
|
+
let e = sf(n, a), { checked: t } = uf(n, i, a);
|
|
7483
|
+
t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
|
|
7484
|
+
}, [
|
|
7412
7485
|
i,
|
|
7413
|
-
|
|
7486
|
+
a,
|
|
7487
|
+
l,
|
|
7488
|
+
r,
|
|
7489
|
+
c,
|
|
7490
|
+
n
|
|
7491
|
+
]), v = f(() => ({
|
|
7492
|
+
enabled: r,
|
|
7493
|
+
headerCheckState: d,
|
|
7494
|
+
getRowCheckState: p,
|
|
7495
|
+
getRowCheckTooltip: h,
|
|
7496
|
+
isRowCheckDisabled: m,
|
|
7497
|
+
toggleRowCheck: g,
|
|
7498
|
+
toggleHeaderCheck: _
|
|
7499
|
+
}), [
|
|
7500
|
+
r,
|
|
7501
|
+
p,
|
|
7502
|
+
h,
|
|
7503
|
+
d,
|
|
7504
|
+
m,
|
|
7505
|
+
_,
|
|
7506
|
+
g
|
|
7414
7507
|
]);
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
value: r,
|
|
7424
|
-
toUnit: z,
|
|
7425
|
-
unitkey: u,
|
|
7426
|
-
defaultFromUnit: a,
|
|
7427
|
-
doNotConvertValue: p
|
|
7428
|
-
});
|
|
7429
|
-
o = ur(dr(e, z));
|
|
7430
|
-
}
|
|
7431
|
-
return {
|
|
7432
|
-
type: Ki.OPTION,
|
|
7433
|
-
inline: !0,
|
|
7434
|
-
onClick: () => {
|
|
7435
|
-
lr(i).valid && !n && (fe(Yd.PREDEFINED), m({ target: {
|
|
7436
|
-
value: r,
|
|
7437
|
-
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7438
|
-
predefinedSelected: !0,
|
|
7439
|
-
predefinedOption: t
|
|
7440
|
-
} }));
|
|
7441
|
-
},
|
|
7442
|
-
label: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ro, { children: t.label }), /* @__PURE__ */ y(jo, {
|
|
7443
|
-
width: "20px",
|
|
7444
|
-
height: "0"
|
|
7445
|
-
})] }),
|
|
7446
|
-
description: o,
|
|
7447
|
-
selected: me === t && de === Yd.PREDEFINED
|
|
7448
|
-
};
|
|
7508
|
+
return /* @__PURE__ */ y(df.Provider, {
|
|
7509
|
+
value: v,
|
|
7510
|
+
children: e
|
|
7511
|
+
});
|
|
7512
|
+
}, mf = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
7513
|
+
let h = ff(), g = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, v = g == null ? void 0 : g.checked, x = g == null ? void 0 : g.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
|
|
7514
|
+
let r = t ? t[e] : void 0;
|
|
7515
|
+
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
7449
7516
|
};
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
selected: de === Yd.CUSTOM
|
|
7461
|
-
}], E != null && E.length) {
|
|
7462
|
-
let e = E.map(Ce);
|
|
7463
|
-
Se = [...Se, ...e];
|
|
7464
|
-
}
|
|
7465
|
-
let we = (e) => {
|
|
7466
|
-
if (Qn(e)) {
|
|
7467
|
-
let t = Kn(e), { value: n } = ef({
|
|
7468
|
-
value: e,
|
|
7469
|
-
toUnit: B.unit,
|
|
7470
|
-
unitkey: u,
|
|
7471
|
-
defaultFromUnit: t,
|
|
7472
|
-
doNotConvertValue: p
|
|
7473
|
-
});
|
|
7474
|
-
return n;
|
|
7475
|
-
}
|
|
7476
|
-
return e;
|
|
7477
|
-
}, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
|
|
7478
|
-
return /* @__PURE__ */ y("div", {
|
|
7479
|
-
className: de === Yd.PREDEFINED ? _(uf.predefinedMenuActive) : "",
|
|
7480
|
-
children: /* @__PURE__ */ b(Co, {
|
|
7481
|
-
small: o,
|
|
7482
|
-
width: s,
|
|
7517
|
+
return /* @__PURE__ */ y("table", {
|
|
7518
|
+
className: ns.table,
|
|
7519
|
+
"data-testid": O,
|
|
7520
|
+
onDrop: p,
|
|
7521
|
+
onDragEnter: u,
|
|
7522
|
+
onDragOver: d,
|
|
7523
|
+
onDragLeave: f,
|
|
7524
|
+
children: /* @__PURE__ */ y("tbody", { children: /* @__PURE__ */ b("tr", {
|
|
7525
|
+
onClick: j,
|
|
7526
|
+
className: _(af.treeTableRow, A ? af.active : void 0),
|
|
7483
7527
|
children: [
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
active: de === Yd.PREDEFINED,
|
|
7495
|
-
icon: de === Yd.PREDEFINED ? "link" : "unlink",
|
|
7496
|
-
small: o
|
|
7497
|
-
}),
|
|
7498
|
-
small: o,
|
|
7499
|
-
sections: Se
|
|
7500
|
-
},
|
|
7501
|
-
tooltip: de === Yd.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
7528
|
+
C && /* @__PURE__ */ y(rl, {
|
|
7529
|
+
isHeader: !1,
|
|
7530
|
+
cell: {
|
|
7531
|
+
type: nl.CHECKBOX,
|
|
7532
|
+
checked: v,
|
|
7533
|
+
disabled: S,
|
|
7534
|
+
indeterminate: x,
|
|
7535
|
+
tooltip: h == null ? void 0 : h.getRowCheckTooltip(l.id),
|
|
7536
|
+
onChange: () => h == null ? void 0 : h.toggleRowCheck(l.id)
|
|
7537
|
+
}
|
|
7502
7538
|
}),
|
|
7503
|
-
/* @__PURE__ */ y("
|
|
7504
|
-
className:
|
|
7505
|
-
children: /* @__PURE__ */ y(
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
onChange: ge,
|
|
7512
|
-
onFocus: x,
|
|
7513
|
-
error: i === null ? void 0 : i,
|
|
7514
|
-
warning: T === null ? void 0 : T,
|
|
7515
|
-
left: a,
|
|
7516
|
-
allowEmpty: ue,
|
|
7517
|
-
validationCallback: (e, t) => A(xe, t),
|
|
7518
|
-
enableCosmeticRounding: P,
|
|
7519
|
-
enableDisplayRounding: F,
|
|
7520
|
-
roundDisplayValue: I,
|
|
7521
|
-
groupOrder: Te,
|
|
7522
|
-
disableInternalErrorValidationMessages: pe,
|
|
7523
|
-
small: o,
|
|
7524
|
-
selectOnFocus: L,
|
|
7525
|
-
tooltip: ee
|
|
7526
|
-
}, xe)
|
|
7539
|
+
r && /* @__PURE__ */ y("td", {
|
|
7540
|
+
className: af.dragCell,
|
|
7541
|
+
children: /* @__PURE__ */ y("div", {
|
|
7542
|
+
className: af.drag,
|
|
7543
|
+
onClick: (e) => e.stopPropagation(),
|
|
7544
|
+
ref: i,
|
|
7545
|
+
children: /* @__PURE__ */ y(W, { icon: H.DRAG })
|
|
7546
|
+
})
|
|
7527
7547
|
}),
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
children:
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
sections: ve.map(([e = "", t = "", n]) => {
|
|
7543
|
-
let r = n || t || "", i = Zn(e) ? e : "";
|
|
7544
|
-
return {
|
|
7545
|
-
type: "Option",
|
|
7546
|
-
label: P ? lf(i) : i,
|
|
7547
|
-
inline: !0,
|
|
7548
|
-
onClick: (n) => {
|
|
7549
|
-
n.stopPropagation(), _e(e, t);
|
|
7550
|
-
},
|
|
7551
|
-
description: r,
|
|
7552
|
-
selected: r === ye,
|
|
7553
|
-
testId: `${w}-unit-${r}`
|
|
7554
|
-
};
|
|
7548
|
+
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ y("td", { className: af.folderCell }, t)),
|
|
7549
|
+
M && /* @__PURE__ */ y("td", {
|
|
7550
|
+
className: af.folderCell,
|
|
7551
|
+
children: /* @__PURE__ */ y("div", {
|
|
7552
|
+
className: af.folder,
|
|
7553
|
+
onClick: () => m(E),
|
|
7554
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
7555
|
+
children: /* @__PURE__ */ y(K, {
|
|
7556
|
+
basic: !0,
|
|
7557
|
+
colored: c ? !0 : Wr.MUTED,
|
|
7558
|
+
disabled: !a,
|
|
7559
|
+
small: !0,
|
|
7560
|
+
round: !0,
|
|
7561
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND
|
|
7555
7562
|
})
|
|
7563
|
+
})
|
|
7564
|
+
}),
|
|
7565
|
+
D.map((t, n) => /* @__PURE__ */ y(rl, {
|
|
7566
|
+
isHeader: !1,
|
|
7567
|
+
cell: t,
|
|
7568
|
+
width: N(n),
|
|
7569
|
+
columnAlignment: e ? e[n] : null
|
|
7570
|
+
}, n)),
|
|
7571
|
+
o && /* @__PURE__ */ y(rl, {
|
|
7572
|
+
isHeader: !1,
|
|
7573
|
+
cell: {
|
|
7574
|
+
type: nl.ACTIONS,
|
|
7575
|
+
actions: k
|
|
7556
7576
|
}
|
|
7557
|
-
})
|
|
7577
|
+
})
|
|
7558
7578
|
]
|
|
7579
|
+
}) })
|
|
7580
|
+
});
|
|
7581
|
+
}, hf = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
7582
|
+
let a = ff(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
7583
|
+
return /* @__PURE__ */ y("table", {
|
|
7584
|
+
className: _(ns.table, af.treeTableHeader),
|
|
7585
|
+
children: /* @__PURE__ */ y("thead", { children: i.map((i, c) => /* @__PURE__ */ b("tr", { children: [
|
|
7586
|
+
s && c === 0 ? /* @__PURE__ */ y(rl, {
|
|
7587
|
+
isHeader: !0,
|
|
7588
|
+
cell: {
|
|
7589
|
+
type: nl.CHECKBOX,
|
|
7590
|
+
checked: o.checked,
|
|
7591
|
+
indeterminate: o.indeterminate,
|
|
7592
|
+
onChange: a.toggleHeaderCheck
|
|
7593
|
+
}
|
|
7594
|
+
}) : s ? /* @__PURE__ */ y("td", {}) : null,
|
|
7595
|
+
n && /* @__PURE__ */ y("th", { className: af.dragCell }),
|
|
7596
|
+
i.cells.map((n, r) => /* @__PURE__ */ y(rl, {
|
|
7597
|
+
isHeader: !0,
|
|
7598
|
+
cell: n,
|
|
7599
|
+
width: t ? t[r] : void 0,
|
|
7600
|
+
columnAlignment: e ? e[r] : void 0
|
|
7601
|
+
}, r)),
|
|
7602
|
+
r && /* @__PURE__ */ y(rl, {
|
|
7603
|
+
isHeader: !0,
|
|
7604
|
+
cell: {
|
|
7605
|
+
type: nl.ACTIONS,
|
|
7606
|
+
actions: i.actions,
|
|
7607
|
+
width: 31
|
|
7608
|
+
}
|
|
7609
|
+
})
|
|
7610
|
+
] }, c)) })
|
|
7611
|
+
});
|
|
7612
|
+
}, gf = ({ 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 }) => {
|
|
7613
|
+
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: v = [] } = d, x = Cc(v, _ == null ? [] : _);
|
|
7614
|
+
return /* @__PURE__ */ y(pf, {
|
|
7615
|
+
rowCheckboxes: u,
|
|
7616
|
+
rows: v,
|
|
7617
|
+
children: /* @__PURE__ */ b("div", {
|
|
7618
|
+
className: af.treeTable,
|
|
7619
|
+
"data-testid": f,
|
|
7620
|
+
style: { width: g },
|
|
7621
|
+
children: [!!_ && /* @__PURE__ */ y(hf, {
|
|
7622
|
+
columnAlignment: m,
|
|
7623
|
+
columnWidths: h,
|
|
7624
|
+
draggable: r,
|
|
7625
|
+
hasRowActions: x,
|
|
7626
|
+
headers: _
|
|
7627
|
+
}), /* @__PURE__ */ y(rf, {
|
|
7628
|
+
allowParentReassignment: e,
|
|
7629
|
+
autoOpenActiveItems: t,
|
|
7630
|
+
canDrop: n,
|
|
7631
|
+
draggable: r,
|
|
7632
|
+
icons: i,
|
|
7633
|
+
isInitialOpen: a,
|
|
7634
|
+
itemHasChild: o,
|
|
7635
|
+
list: {
|
|
7636
|
+
noHeader: !0,
|
|
7637
|
+
items: v
|
|
7638
|
+
},
|
|
7639
|
+
onChangeOpen: l,
|
|
7640
|
+
onItemToggle: s,
|
|
7641
|
+
onListReorder: c,
|
|
7642
|
+
placeholderIndent: "var(--size)",
|
|
7643
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ y(mf, {
|
|
7644
|
+
node: e,
|
|
7645
|
+
columnAlignment: m,
|
|
7646
|
+
columnWidths: h,
|
|
7647
|
+
depth: t,
|
|
7648
|
+
draggable: n,
|
|
7649
|
+
handleRef: r,
|
|
7650
|
+
hasChild: a,
|
|
7651
|
+
hasRowActions: x,
|
|
7652
|
+
icons: i,
|
|
7653
|
+
isOpen: o,
|
|
7654
|
+
onToggle: s
|
|
7655
|
+
}, e.id),
|
|
7656
|
+
treeRef: p
|
|
7657
|
+
})]
|
|
7559
7658
|
})
|
|
7560
7659
|
});
|
|
7561
|
-
},
|
|
7660
|
+
}, _f = Object.freeze({
|
|
7562
7661
|
Translations: "translations",
|
|
7563
7662
|
LanguageKey: "languageKey"
|
|
7564
|
-
}),
|
|
7663
|
+
}), vf = {
|
|
7565
7664
|
unified: "Unified",
|
|
7566
7665
|
split: "Split",
|
|
7567
7666
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7583,29 +7682,29 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7583
7682
|
pluralChanges: "changes",
|
|
7584
7683
|
showAll: "Show all",
|
|
7585
7684
|
unknown: "Unknown"
|
|
7586
|
-
},
|
|
7685
|
+
}, yf = (e) => Object.keys(vf).reduce((t, n) => ({
|
|
7587
7686
|
...t,
|
|
7588
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7589
|
-
}), {}),
|
|
7590
|
-
[
|
|
7591
|
-
[
|
|
7592
|
-
},
|
|
7593
|
-
|
|
7594
|
-
},
|
|
7687
|
+
[n]: (e == null ? void 0 : e[n]) || (vf == null ? void 0 : vf[n])
|
|
7688
|
+
}), {}), bf = {
|
|
7689
|
+
[_f.Translations]: yf(),
|
|
7690
|
+
[_f.LanguageKey]: "en"
|
|
7691
|
+
}, xf = (e) => e ? bf[e] : bf, Sf = (e, t) => {
|
|
7692
|
+
bf[e] = t;
|
|
7693
|
+
}, Cf = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
7595
7694
|
var a;
|
|
7596
|
-
let { unitTemplate: o = null } = (a =
|
|
7597
|
-
return e[n] = r == null ?
|
|
7695
|
+
let { unitTemplate: o = null } = (a = Dd()) == null ? {} : a;
|
|
7696
|
+
return e[n] = r == null ? gd(n, o) : r, t[n] = i, {
|
|
7598
7697
|
preferredUnits: e,
|
|
7599
7698
|
storageUnits: t
|
|
7600
7699
|
};
|
|
7601
7700
|
}, {
|
|
7602
7701
|
preferredUnits: {},
|
|
7603
7702
|
storageUnits: {}
|
|
7604
|
-
}),
|
|
7703
|
+
}), wf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7605
7704
|
...e,
|
|
7606
7705
|
cells: e.cells.map((e, s) => {
|
|
7607
7706
|
if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
|
|
7608
|
-
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } =
|
|
7707
|
+
let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = xd({
|
|
7609
7708
|
value: Ac(l),
|
|
7610
7709
|
unitkey: c,
|
|
7611
7710
|
toUnit: f,
|
|
@@ -7619,7 +7718,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7619
7718
|
roundDisplayValue: d,
|
|
7620
7719
|
selectOnFocus: !0,
|
|
7621
7720
|
onChange: (n) => {
|
|
7622
|
-
let { value: r } = n.target, a = i ? p : f, { value: o = r } =
|
|
7721
|
+
let { value: r } = n.target, a = i ? p : f, { value: o = r } = xd({
|
|
7623
7722
|
value: String(r),
|
|
7624
7723
|
unitkey: c,
|
|
7625
7724
|
toUnit: a,
|
|
@@ -7643,8 +7742,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7643
7742
|
}
|
|
7644
7743
|
return e;
|
|
7645
7744
|
})
|
|
7646
|
-
}),
|
|
7647
|
-
let { translations: i } =
|
|
7745
|
+
}), Tf = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7746
|
+
let { translations: i } = xf();
|
|
7648
7747
|
return e ? e.map((e) => ({
|
|
7649
7748
|
...e,
|
|
7650
7749
|
cells: e.cells.map((e) => {
|
|
@@ -7673,8 +7772,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7673
7772
|
return e;
|
|
7674
7773
|
})
|
|
7675
7774
|
})) : [];
|
|
7676
|
-
},
|
|
7677
|
-
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } =
|
|
7775
|
+
}, Ef = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
|
|
7776
|
+
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Cf(t), m = hd(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
|
|
7678
7777
|
_({
|
|
7679
7778
|
...g,
|
|
7680
7779
|
[e]: n
|
|
@@ -7685,7 +7784,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7685
7784
|
newUnit: n,
|
|
7686
7785
|
unitKey: e
|
|
7687
7786
|
});
|
|
7688
|
-
}, b = s(({ row: e, rowIndex: t }) =>
|
|
7787
|
+
}, b = s(({ row: e, rowIndex: t }) => wf({
|
|
7689
7788
|
row: c ? c({
|
|
7690
7789
|
row: e,
|
|
7691
7790
|
rowIndex: t
|
|
@@ -7714,7 +7813,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7714
7813
|
}, [t]), /* @__PURE__ */ y(ll, {
|
|
7715
7814
|
table: {
|
|
7716
7815
|
...d,
|
|
7717
|
-
headers:
|
|
7816
|
+
headers: Tf({
|
|
7718
7817
|
headers: e.headers,
|
|
7719
7818
|
selectedUnits: g,
|
|
7720
7819
|
storageUnits: f,
|
|
@@ -7725,8 +7824,8 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7725
7824
|
canListReorder: o,
|
|
7726
7825
|
beforeRenderRow: b
|
|
7727
7826
|
});
|
|
7728
|
-
},
|
|
7729
|
-
let { translations: d } =
|
|
7827
|
+
}, Df = { settingField: "_settingField_1x02n_1" }, Of = ({ 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 }) => {
|
|
7828
|
+
let { translations: d } = xf(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ b(e.Fragment, { children: [t, /* @__PURE__ */ y("br", {})] }, n)), p = [
|
|
7730
7829
|
...r ? [] : [{
|
|
7731
7830
|
label: d == null ? void 0 : d.allUsers,
|
|
7732
7831
|
value: !1
|
|
@@ -7741,7 +7840,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7741
7840
|
}] : []
|
|
7742
7841
|
], m = a !== void 0 && o !== void 0 && !on(a, o);
|
|
7743
7842
|
return /* @__PURE__ */ b("div", {
|
|
7744
|
-
className:
|
|
7843
|
+
className: Df.settingField,
|
|
7745
7844
|
"data-testid": u,
|
|
7746
7845
|
children: [/* @__PURE__ */ b(Cu, {
|
|
7747
7846
|
justifyContent: "space-between",
|
|
@@ -7773,19 +7872,19 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7773
7872
|
children: f(t)
|
|
7774
7873
|
})]
|
|
7775
7874
|
});
|
|
7776
|
-
},
|
|
7875
|
+
}, kf = (e, t) => {
|
|
7777
7876
|
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;
|
|
7778
7877
|
return {
|
|
7779
7878
|
added: Math.max(0, i),
|
|
7780
7879
|
removed: Math.max(0, a)
|
|
7781
7880
|
};
|
|
7782
|
-
},
|
|
7881
|
+
}, Af = "split", jf = "unified", Mf = ({ oldJson: e, newJson: t, viewType: n = Af }) => {
|
|
7783
7882
|
var r, i;
|
|
7784
|
-
let { translations: a } =
|
|
7785
|
-
value:
|
|
7883
|
+
let { translations: a } = xf(), [o, s] = h(n), c = [{
|
|
7884
|
+
value: Af,
|
|
7786
7885
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7787
7886
|
}, {
|
|
7788
|
-
value:
|
|
7887
|
+
value: jf,
|
|
7789
7888
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7790
7889
|
}];
|
|
7791
7890
|
l(() => {
|
|
@@ -7793,7 +7892,7 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7793
7892
|
}, [n]);
|
|
7794
7893
|
let u = ({ target: { value: e } }) => {
|
|
7795
7894
|
s(e);
|
|
7796
|
-
}, { added: d, removed: f } =
|
|
7895
|
+
}, { added: d, removed: f } = kf(e, t), p = d + f > 3500;
|
|
7797
7896
|
return /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(Da, {
|
|
7798
7897
|
bordered: !0,
|
|
7799
7898
|
heading: /* @__PURE__ */ b(Cu, {
|
|
@@ -7826,14 +7925,14 @@ var La = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ra =
|
|
|
7826
7925
|
}) : /* @__PURE__ */ y(Vr, {
|
|
7827
7926
|
oldValue: e,
|
|
7828
7927
|
newValue: t,
|
|
7829
|
-
splitView: o ===
|
|
7928
|
+
splitView: o === Af,
|
|
7830
7929
|
compareMethod: Hr.WORDS
|
|
7831
7930
|
})
|
|
7832
7931
|
}) });
|
|
7833
7932
|
};
|
|
7834
7933
|
//#endregion
|
|
7835
7934
|
//#region src/helpers/date.ts
|
|
7836
|
-
function
|
|
7935
|
+
function Nf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7837
7936
|
return e ? new Date(e).toLocaleString(a, {
|
|
7838
7937
|
year: "numeric",
|
|
7839
7938
|
month: "short",
|
|
@@ -7847,28 +7946,28 @@ function Of({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
7847
7946
|
}
|
|
7848
7947
|
//#endregion
|
|
7849
7948
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
7850
|
-
function
|
|
7949
|
+
function Pf(e) {
|
|
7851
7950
|
var t;
|
|
7852
7951
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
7853
7952
|
if (!n) throw Error("Invalid RegExp");
|
|
7854
7953
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
7855
7954
|
}
|
|
7856
|
-
function
|
|
7955
|
+
function Ff(e) {
|
|
7857
7956
|
if (typeof e != "object") return e;
|
|
7858
7957
|
if (e === null) return null;
|
|
7859
|
-
if (Array.isArray(e)) return e.map(
|
|
7958
|
+
if (Array.isArray(e)) return e.map(Ff);
|
|
7860
7959
|
if (e instanceof Date) return new Date(e.getTime());
|
|
7861
|
-
if (e instanceof RegExp) return
|
|
7960
|
+
if (e instanceof RegExp) return Pf(e);
|
|
7862
7961
|
let t = {};
|
|
7863
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
7962
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Ff(e[n]));
|
|
7864
7963
|
return t;
|
|
7865
7964
|
}
|
|
7866
7965
|
//#endregion
|
|
7867
7966
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
7868
|
-
function
|
|
7967
|
+
function If(e, t) {
|
|
7869
7968
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
7870
7969
|
}
|
|
7871
|
-
var
|
|
7970
|
+
var Lf = (e) => e[e.length - 1], Rf = class {
|
|
7872
7971
|
setResult(e) {
|
|
7873
7972
|
return this.result = e, this.hasResult = !0, this;
|
|
7874
7973
|
}
|
|
@@ -7876,16 +7975,16 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
7876
7975
|
return this.exiting = !0, this;
|
|
7877
7976
|
}
|
|
7878
7977
|
push(e, t) {
|
|
7879
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
7978
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (If(this.children), Lf(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
7880
7979
|
}
|
|
7881
|
-
},
|
|
7980
|
+
}, zf = class extends Rf {
|
|
7882
7981
|
constructor(e, t) {
|
|
7883
7982
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
7884
7983
|
}
|
|
7885
7984
|
prepareDeltaResult(e) {
|
|
7886
7985
|
var t, n, r, i;
|
|
7887
7986
|
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)) {
|
|
7888
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
7987
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Ff;
|
|
7889
7988
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
7890
7989
|
}
|
|
7891
7990
|
return e;
|
|
@@ -7893,15 +7992,15 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
7893
7992
|
setResult(e) {
|
|
7894
7993
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
7895
7994
|
}
|
|
7896
|
-
},
|
|
7995
|
+
}, Bf = class extends Rf {
|
|
7897
7996
|
constructor(e, t) {
|
|
7898
7997
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
7899
7998
|
}
|
|
7900
|
-
},
|
|
7999
|
+
}, Vf = class extends Rf {
|
|
7901
8000
|
constructor(e) {
|
|
7902
8001
|
super(), this.delta = e, this.pipe = "reverse";
|
|
7903
8002
|
}
|
|
7904
|
-
},
|
|
8003
|
+
}, Hf = class {
|
|
7905
8004
|
constructor(e) {
|
|
7906
8005
|
this.name = e, this.filters = [];
|
|
7907
8006
|
}
|
|
@@ -7965,7 +8064,7 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
7965
8064
|
}
|
|
7966
8065
|
}), this);
|
|
7967
8066
|
}
|
|
7968
|
-
},
|
|
8067
|
+
}, Uf = class {
|
|
7969
8068
|
constructor(e) {
|
|
7970
8069
|
this.selfOptions = e || {}, this.pipes = {};
|
|
7971
8070
|
}
|
|
@@ -7992,7 +8091,7 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
7992
8091
|
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);
|
|
7993
8092
|
return n.hasResult ? n.result : void 0;
|
|
7994
8093
|
}
|
|
7995
|
-
},
|
|
8094
|
+
}, Wf = (e, t, n, r) => e[n] === t[r], Gf = (e, t, n, r) => {
|
|
7996
8095
|
var i, a, o;
|
|
7997
8096
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
7998
8097
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8008,7 +8107,7 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
8008
8107
|
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);
|
|
8009
8108
|
}
|
|
8010
8109
|
return d;
|
|
8011
|
-
},
|
|
8110
|
+
}, Kf = (e, t, n, r) => {
|
|
8012
8111
|
let i = t.length, a = n.length, o = {
|
|
8013
8112
|
sequence: [],
|
|
8014
8113
|
indices1: [],
|
|
@@ -8030,11 +8129,11 @@ var Mf = (e) => e[e.length - 1], Nf = class {
|
|
|
8030
8129
|
}
|
|
8031
8130
|
}
|
|
8032
8131
|
return o;
|
|
8033
|
-
},
|
|
8132
|
+
}, qf = { get: (e, t, n, r) => {
|
|
8034
8133
|
let i = r || {};
|
|
8035
|
-
return
|
|
8036
|
-
} },
|
|
8037
|
-
function
|
|
8134
|
+
return Kf(Gf(e, t, n || Wf, i), e, t, i);
|
|
8135
|
+
} }, Jf = 3;
|
|
8136
|
+
function Yf(e, t, n, r) {
|
|
8038
8137
|
for (let i = 0; i < n; i++) {
|
|
8039
8138
|
let n = e[i];
|
|
8040
8139
|
for (let e = 0; e < r; e++) {
|
|
@@ -8044,7 +8143,7 @@ function Wf(e, t, n, r) {
|
|
|
8044
8143
|
}
|
|
8045
8144
|
return !1;
|
|
8046
8145
|
}
|
|
8047
|
-
function
|
|
8146
|
+
function Xf(e, t, n, r, i) {
|
|
8048
8147
|
let a = e[n], o = t[r];
|
|
8049
8148
|
if (a === o) return !0;
|
|
8050
8149
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8057,15 +8156,15 @@ function Gf(e, t, n, r, i) {
|
|
|
8057
8156
|
let l = i.hashCache2[r];
|
|
8058
8157
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
8059
8158
|
}
|
|
8060
|
-
var
|
|
8159
|
+
var Zf = function(e) {
|
|
8061
8160
|
var t, n, r, i, a;
|
|
8062
8161
|
if (!e.leftIsArray) return;
|
|
8063
8162
|
let o = {
|
|
8064
8163
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8065
8164
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8066
8165
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8067
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8068
|
-
for (; c + s < m && c + s < h &&
|
|
8166
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Yf(f, p, m, h)); s < m && s < h && Xf(f, p, s, s, o);) l = s, g = new zf(f[l], p[l]), e.push(g, l), s++;
|
|
8167
|
+
for (; c + s < m && c + s < h && Xf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new zf(f[u], p[d]), e.push(g, d), c++;
|
|
8069
8168
|
let _;
|
|
8070
8169
|
if (s + c === m) {
|
|
8071
8170
|
if (m === h) {
|
|
@@ -8089,7 +8188,7 @@ var Kf = function(e) {
|
|
|
8089
8188
|
return;
|
|
8090
8189
|
}
|
|
8091
8190
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8092
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8191
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = qf.get(v, y, Xf, o), x = [];
|
|
8093
8192
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8094
8193
|
let t = `_${l}`;
|
|
8095
8194
|
_[t] = [
|
|
@@ -8110,8 +8209,8 @@ var Kf = function(e) {
|
|
|
8110
8209
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8111
8210
|
u = x[n];
|
|
8112
8211
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8113
|
-
if (u !== void 0 && r &&
|
|
8114
|
-
r.splice(1, 2, l,
|
|
8212
|
+
if (u !== void 0 && r && Xf(v, y, u - s, l - s, o)) {
|
|
8213
|
+
r.splice(1, 2, l, Jf), r.splice(1, 2, l, Jf), C || (r[0] = ""), d = l, g = new zf(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8115
8214
|
break;
|
|
8116
8215
|
}
|
|
8117
8216
|
}
|
|
@@ -8119,20 +8218,20 @@ var Kf = function(e) {
|
|
|
8119
8218
|
} else {
|
|
8120
8219
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8121
8220
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8122
|
-
d = b.indices2[t] + s, g = new
|
|
8221
|
+
d = b.indices2[t] + s, g = new zf(f[u], p[d]), e.push(g, d);
|
|
8123
8222
|
}
|
|
8124
8223
|
}
|
|
8125
8224
|
e.setResult(_).exit();
|
|
8126
8225
|
};
|
|
8127
|
-
|
|
8128
|
-
var
|
|
8226
|
+
Zf.filterName = "arrays";
|
|
8227
|
+
var Qf = {
|
|
8129
8228
|
numerically(e, t) {
|
|
8130
8229
|
return e - t;
|
|
8131
8230
|
},
|
|
8132
8231
|
numericallyBy(e) {
|
|
8133
8232
|
return (t, n) => t[e] - n[e];
|
|
8134
8233
|
}
|
|
8135
|
-
},
|
|
8234
|
+
}, $f = function(e) {
|
|
8136
8235
|
var t;
|
|
8137
8236
|
if (!e.nested) return;
|
|
8138
8237
|
let n = e.delta;
|
|
@@ -8140,7 +8239,7 @@ var qf = {
|
|
|
8140
8239
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
8141
8240
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
8142
8241
|
let e = r;
|
|
8143
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8242
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === Jf)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8144
8243
|
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]}`);
|
|
8145
8244
|
} else {
|
|
8146
8245
|
let e = r;
|
|
@@ -8152,15 +8251,15 @@ var qf = {
|
|
|
8152
8251
|
delta: a[e]
|
|
8153
8252
|
});
|
|
8154
8253
|
}
|
|
8155
|
-
for (s = s.sort(
|
|
8254
|
+
for (s = s.sort(Qf.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8156
8255
|
if (i = s[r], i === void 0) continue;
|
|
8157
8256
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8158
|
-
(e == null ? void 0 : e[2]) ===
|
|
8257
|
+
(e == null ? void 0 : e[2]) === Jf && c.push({
|
|
8159
8258
|
index: e[1],
|
|
8160
8259
|
value: t
|
|
8161
8260
|
});
|
|
8162
8261
|
}
|
|
8163
|
-
c = c.sort(
|
|
8262
|
+
c = c.sort(Qf.numericallyBy("index"));
|
|
8164
8263
|
let u = c.length;
|
|
8165
8264
|
for (r = 0; r < u; r++) {
|
|
8166
8265
|
let e = c[r];
|
|
@@ -8170,7 +8269,7 @@ var qf = {
|
|
|
8170
8269
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8171
8270
|
let t = l[r];
|
|
8172
8271
|
if (t === void 0) continue;
|
|
8173
|
-
let n = new
|
|
8272
|
+
let n = new Bf(o[t.index], t.delta);
|
|
8174
8273
|
e.push(n, t.index);
|
|
8175
8274
|
}
|
|
8176
8275
|
if (!e.children) {
|
|
@@ -8179,8 +8278,8 @@ var qf = {
|
|
|
8179
8278
|
}
|
|
8180
8279
|
e.exit();
|
|
8181
8280
|
};
|
|
8182
|
-
|
|
8183
|
-
var
|
|
8281
|
+
$f.filterName = "arrays";
|
|
8282
|
+
var ep = function(e) {
|
|
8184
8283
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8185
8284
|
let t = e.left, n = e.children.length;
|
|
8186
8285
|
for (let r = 0; r < n; r++) {
|
|
@@ -8191,16 +8290,16 @@ var Yf = function(e) {
|
|
|
8191
8290
|
}
|
|
8192
8291
|
e.setResult(t).exit();
|
|
8193
8292
|
};
|
|
8194
|
-
|
|
8195
|
-
var
|
|
8293
|
+
ep.filterName = "arraysCollectChildren";
|
|
8294
|
+
var tp = function(e) {
|
|
8196
8295
|
if (!e.nested) {
|
|
8197
8296
|
let t = e.delta;
|
|
8198
|
-
if (t[2] ===
|
|
8297
|
+
if (t[2] === Jf) {
|
|
8199
8298
|
let n = t;
|
|
8200
8299
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8201
8300
|
n[0],
|
|
8202
8301
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8203
|
-
|
|
8302
|
+
Jf
|
|
8204
8303
|
]).exit();
|
|
8205
8304
|
}
|
|
8206
8305
|
return;
|
|
@@ -8210,26 +8309,26 @@ var Xf = function(e) {
|
|
|
8210
8309
|
let n = t;
|
|
8211
8310
|
for (let t in n) {
|
|
8212
8311
|
if (t === "_t") continue;
|
|
8213
|
-
let r = new
|
|
8312
|
+
let r = new Vf(n[t]);
|
|
8214
8313
|
e.push(r, t);
|
|
8215
8314
|
}
|
|
8216
8315
|
e.exit();
|
|
8217
8316
|
};
|
|
8218
|
-
|
|
8219
|
-
var
|
|
8317
|
+
tp.filterName = "arrays";
|
|
8318
|
+
var np = (e, t, n) => {
|
|
8220
8319
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8221
8320
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8222
8321
|
let r = +t;
|
|
8223
8322
|
for (let n in e) {
|
|
8224
8323
|
let i = e[n];
|
|
8225
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
8324
|
+
if (Array.isArray(i)) if (i[2] === Jf) {
|
|
8226
8325
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8227
8326
|
if (a === +t) return e;
|
|
8228
8327
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
8229
8328
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
8230
8329
|
}
|
|
8231
8330
|
return r;
|
|
8232
|
-
},
|
|
8331
|
+
}, rp = (e) => {
|
|
8233
8332
|
if (!e || !e.children) return;
|
|
8234
8333
|
let t = e.delta;
|
|
8235
8334
|
if (t._t !== "a") return;
|
|
@@ -8240,22 +8339,22 @@ var Zf = (e, t, n) => {
|
|
|
8240
8339
|
let a = r.newName;
|
|
8241
8340
|
if (a === void 0) {
|
|
8242
8341
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8243
|
-
a =
|
|
8342
|
+
a = np(n, r.childName, r.result);
|
|
8244
8343
|
}
|
|
8245
8344
|
i[a] !== r.result && (i[a] = r.result);
|
|
8246
8345
|
}
|
|
8247
8346
|
e.setResult(i).exit();
|
|
8248
8347
|
};
|
|
8249
|
-
|
|
8348
|
+
rp.filterName = "arraysCollectChildren";
|
|
8250
8349
|
//#endregion
|
|
8251
8350
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8252
|
-
var
|
|
8351
|
+
var ip = function(e) {
|
|
8253
8352
|
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();
|
|
8254
8353
|
};
|
|
8255
|
-
|
|
8354
|
+
ip.filterName = "dates";
|
|
8256
8355
|
//#endregion
|
|
8257
8356
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8258
|
-
var
|
|
8357
|
+
var ap = new Set(["__proto__"]), op = (e) => {
|
|
8259
8358
|
if (!e || !e.children) return;
|
|
8260
8359
|
let t = e.children.length, n = e.result;
|
|
8261
8360
|
for (let r = 0; r < t; r++) {
|
|
@@ -8267,18 +8366,18 @@ var ep = new Set(["__proto__"]), tp = (e) => {
|
|
|
8267
8366
|
}
|
|
8268
8367
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8269
8368
|
};
|
|
8270
|
-
|
|
8271
|
-
var
|
|
8369
|
+
op.filterName = "collectChildren";
|
|
8370
|
+
var sp = (e) => {
|
|
8272
8371
|
var t;
|
|
8273
8372
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8274
8373
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8275
8374
|
for (let t in n) {
|
|
8276
8375
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8277
|
-
let a = new
|
|
8376
|
+
let a = new zf(n[t], r[t]);
|
|
8278
8377
|
e.push(a, t);
|
|
8279
8378
|
}
|
|
8280
8379
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8281
|
-
let n = new
|
|
8380
|
+
let n = new zf(void 0, r[t]);
|
|
8282
8381
|
e.push(n, t);
|
|
8283
8382
|
}
|
|
8284
8383
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8287,15 +8386,15 @@ var np = (e) => {
|
|
|
8287
8386
|
}
|
|
8288
8387
|
e.exit();
|
|
8289
8388
|
};
|
|
8290
|
-
|
|
8291
|
-
var
|
|
8389
|
+
sp.filterName = "objects";
|
|
8390
|
+
var cp = function(e) {
|
|
8292
8391
|
if (!e.nested) return;
|
|
8293
8392
|
let t = e.delta;
|
|
8294
8393
|
if (t._t) return;
|
|
8295
8394
|
let n = t, r = !1;
|
|
8296
8395
|
for (let t in n) {
|
|
8297
|
-
if (
|
|
8298
|
-
let i = e.left, a = new
|
|
8396
|
+
if (ap.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8397
|
+
let i = e.left, a = new Bf(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8299
8398
|
e.push(a, t), r = !0;
|
|
8300
8399
|
}
|
|
8301
8400
|
if (!r) {
|
|
@@ -8304,8 +8403,8 @@ var rp = function(e) {
|
|
|
8304
8403
|
}
|
|
8305
8404
|
e.exit();
|
|
8306
8405
|
};
|
|
8307
|
-
|
|
8308
|
-
var
|
|
8406
|
+
cp.filterName = "objects";
|
|
8407
|
+
var lp = function(e) {
|
|
8309
8408
|
if (!e || !e.children || e.delta._t) return;
|
|
8310
8409
|
if (e.left === null || typeof e.left != "object") {
|
|
8311
8410
|
e.setResult(e.left).exit();
|
|
@@ -8316,17 +8415,17 @@ var ip = function(e) {
|
|
|
8316
8415
|
let n = e.children[r];
|
|
8317
8416
|
if (n === void 0) continue;
|
|
8318
8417
|
let i = n.childName;
|
|
8319
|
-
|
|
8418
|
+
ap.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8320
8419
|
}
|
|
8321
8420
|
e.setResult(t).exit();
|
|
8322
8421
|
};
|
|
8323
|
-
|
|
8324
|
-
var
|
|
8422
|
+
lp.filterName = "collectChildren";
|
|
8423
|
+
var up = function(e) {
|
|
8325
8424
|
if (!e.nested || e.delta._t) return;
|
|
8326
8425
|
let t = e.delta, n = !1;
|
|
8327
8426
|
for (let r in t) {
|
|
8328
|
-
if (
|
|
8329
|
-
let i = new
|
|
8427
|
+
if (ap.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8428
|
+
let i = new Vf(t[r]);
|
|
8330
8429
|
e.push(i, r), n = !0;
|
|
8331
8430
|
}
|
|
8332
8431
|
if (!n) {
|
|
@@ -8335,25 +8434,25 @@ var ap = function(e) {
|
|
|
8335
8434
|
}
|
|
8336
8435
|
e.exit();
|
|
8337
8436
|
};
|
|
8338
|
-
|
|
8339
|
-
var
|
|
8437
|
+
up.filterName = "objects";
|
|
8438
|
+
var dp = (e) => {
|
|
8340
8439
|
if (!e || !e.children || e.delta._t) return;
|
|
8341
8440
|
let t = e.children.length, n = {};
|
|
8342
8441
|
for (let r = 0; r < t; r++) {
|
|
8343
8442
|
let t = e.children[r];
|
|
8344
8443
|
if (t === void 0) continue;
|
|
8345
8444
|
let i = t.childName;
|
|
8346
|
-
|
|
8445
|
+
ap.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8347
8446
|
}
|
|
8348
8447
|
e.setResult(n).exit();
|
|
8349
8448
|
};
|
|
8350
|
-
|
|
8449
|
+
dp.filterName = "collectChildren";
|
|
8351
8450
|
//#endregion
|
|
8352
8451
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8353
|
-
var
|
|
8354
|
-
function
|
|
8452
|
+
var fp = 2, pp = 60, mp = null;
|
|
8453
|
+
function hp(e, t) {
|
|
8355
8454
|
var n;
|
|
8356
|
-
if (!
|
|
8455
|
+
if (!mp) {
|
|
8357
8456
|
let r;
|
|
8358
8457
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8359
8458
|
else {
|
|
@@ -8361,7 +8460,7 @@ function up(e, t) {
|
|
|
8361
8460
|
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.");
|
|
8362
8461
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8363
8462
|
}
|
|
8364
|
-
|
|
8463
|
+
mp = {
|
|
8365
8464
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8366
8465
|
patch: (e, t) => {
|
|
8367
8466
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8373,17 +8472,17 @@ function up(e, t) {
|
|
|
8373
8472
|
}
|
|
8374
8473
|
};
|
|
8375
8474
|
}
|
|
8376
|
-
return
|
|
8475
|
+
return mp;
|
|
8377
8476
|
}
|
|
8378
|
-
var
|
|
8477
|
+
var gp = function(e) {
|
|
8379
8478
|
var t, n;
|
|
8380
8479
|
if (e.leftType !== "string") return;
|
|
8381
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8480
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || pp;
|
|
8382
8481
|
if (r.length < a || i.length < a) {
|
|
8383
8482
|
e.setResult([r, i]).exit();
|
|
8384
8483
|
return;
|
|
8385
8484
|
}
|
|
8386
|
-
let o =
|
|
8485
|
+
let o = hp(e.options);
|
|
8387
8486
|
if (!o) {
|
|
8388
8487
|
e.setResult([r, i]).exit();
|
|
8389
8488
|
return;
|
|
@@ -8392,19 +8491,19 @@ var dp = function(e) {
|
|
|
8392
8491
|
e.setResult([
|
|
8393
8492
|
s(r, i),
|
|
8394
8493
|
0,
|
|
8395
|
-
|
|
8494
|
+
fp
|
|
8396
8495
|
]).exit();
|
|
8397
8496
|
};
|
|
8398
|
-
|
|
8399
|
-
var
|
|
8497
|
+
gp.filterName = "texts";
|
|
8498
|
+
var _p = function(e) {
|
|
8400
8499
|
if (e.nested) return;
|
|
8401
8500
|
let t = e.delta;
|
|
8402
|
-
if (t[2] !==
|
|
8403
|
-
let n = t, r =
|
|
8501
|
+
if (t[2] !== fp) return;
|
|
8502
|
+
let n = t, r = hp(e.options, !0).patch;
|
|
8404
8503
|
e.setResult(r(e.left, n[0])).exit();
|
|
8405
8504
|
};
|
|
8406
|
-
|
|
8407
|
-
var
|
|
8505
|
+
_p.filterName = "texts";
|
|
8506
|
+
var vp = (e) => {
|
|
8408
8507
|
var t, n, r;
|
|
8409
8508
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8410
8509
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8425,21 +8524,21 @@ var pp = (e) => {
|
|
|
8425
8524
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8426
8525
|
}
|
|
8427
8526
|
return a.join("\n");
|
|
8428
|
-
},
|
|
8527
|
+
}, yp = function(e) {
|
|
8429
8528
|
if (e.nested) return;
|
|
8430
8529
|
let t = e.delta;
|
|
8431
|
-
if (t[2] !==
|
|
8530
|
+
if (t[2] !== fp) return;
|
|
8432
8531
|
let n = t;
|
|
8433
8532
|
e.setResult([
|
|
8434
|
-
|
|
8533
|
+
vp(n[0]),
|
|
8435
8534
|
0,
|
|
8436
|
-
|
|
8535
|
+
fp
|
|
8437
8536
|
]).exit();
|
|
8438
8537
|
};
|
|
8439
|
-
|
|
8538
|
+
yp.filterName = "texts";
|
|
8440
8539
|
//#endregion
|
|
8441
8540
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8442
|
-
var
|
|
8541
|
+
var bp = function(e) {
|
|
8443
8542
|
if (e.left === e.right) {
|
|
8444
8543
|
e.setResult(void 0).exit();
|
|
8445
8544
|
return;
|
|
@@ -8472,8 +8571,8 @@ var hp = function(e) {
|
|
|
8472
8571
|
}
|
|
8473
8572
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8474
8573
|
};
|
|
8475
|
-
|
|
8476
|
-
var
|
|
8574
|
+
bp.filterName = "trivial";
|
|
8575
|
+
var xp = function(e) {
|
|
8477
8576
|
if (e.delta === void 0) {
|
|
8478
8577
|
e.setResult(e.left).exit();
|
|
8479
8578
|
return;
|
|
@@ -8497,8 +8596,8 @@ var gp = function(e) {
|
|
|
8497
8596
|
}
|
|
8498
8597
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8499
8598
|
};
|
|
8500
|
-
|
|
8501
|
-
var
|
|
8599
|
+
xp.filterName = "trivial";
|
|
8600
|
+
var Sp = function(e) {
|
|
8502
8601
|
if (e.delta === void 0) {
|
|
8503
8602
|
e.setResult(e.delta).exit();
|
|
8504
8603
|
return;
|
|
@@ -8519,36 +8618,36 @@ var _p = function(e) {
|
|
|
8519
8618
|
}
|
|
8520
8619
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8521
8620
|
};
|
|
8522
|
-
|
|
8621
|
+
Sp.filterName = "trivial";
|
|
8523
8622
|
//#endregion
|
|
8524
8623
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8525
|
-
var
|
|
8624
|
+
var Cp = class {
|
|
8526
8625
|
constructor(e) {
|
|
8527
|
-
this.processor = new
|
|
8626
|
+
this.processor = new Uf(e), this.processor.pipe(new Hf("diff").append(op, bp, ip, gp, sp, Zf).shouldHaveResult()), this.processor.pipe(new Hf("patch").append(lp, ep, xp, _p, cp, $f).shouldHaveResult()), this.processor.pipe(new Hf("reverse").append(dp, rp, Sp, yp, up, tp).shouldHaveResult());
|
|
8528
8627
|
}
|
|
8529
8628
|
options(e) {
|
|
8530
8629
|
return this.processor.options(e);
|
|
8531
8630
|
}
|
|
8532
8631
|
diff(e, t) {
|
|
8533
|
-
return this.processor.process(new
|
|
8632
|
+
return this.processor.process(new zf(e, t));
|
|
8534
8633
|
}
|
|
8535
8634
|
patch(e, t) {
|
|
8536
|
-
return this.processor.process(new
|
|
8635
|
+
return this.processor.process(new Bf(e, t));
|
|
8537
8636
|
}
|
|
8538
8637
|
reverse(e) {
|
|
8539
|
-
return this.processor.process(new
|
|
8638
|
+
return this.processor.process(new Vf(e));
|
|
8540
8639
|
}
|
|
8541
8640
|
unpatch(e, t) {
|
|
8542
8641
|
return this.patch(e, this.reverse(t));
|
|
8543
8642
|
}
|
|
8544
8643
|
clone(e) {
|
|
8545
|
-
return
|
|
8644
|
+
return Ff(e);
|
|
8546
8645
|
}
|
|
8547
8646
|
};
|
|
8548
8647
|
//#endregion
|
|
8549
8648
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8550
|
-
function
|
|
8551
|
-
return new
|
|
8649
|
+
function wp(e) {
|
|
8650
|
+
return new Cp(e);
|
|
8552
8651
|
}
|
|
8553
8652
|
//#endregion
|
|
8554
8653
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9121,46 +9220,46 @@ $.Diff = function(e, t) {
|
|
|
9121
9220
|
};
|
|
9122
9221
|
//#endregion
|
|
9123
9222
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9124
|
-
var
|
|
9223
|
+
var Tp = (e = {}) => wp({
|
|
9125
9224
|
...e,
|
|
9126
9225
|
textDiff: {
|
|
9127
9226
|
diffMatchPatch: $,
|
|
9128
9227
|
minLength: 120
|
|
9129
9228
|
},
|
|
9130
9229
|
cloneDiffValues: !0
|
|
9131
|
-
}),
|
|
9230
|
+
}), Ep = ["user", "unittemplate"], Dp = Tp(), Op = (e, t, n) => {
|
|
9132
9231
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9133
9232
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9134
9233
|
let n = r[t[e]];
|
|
9135
9234
|
if (n) return n;
|
|
9136
9235
|
}
|
|
9137
9236
|
return n || "";
|
|
9138
|
-
},
|
|
9237
|
+
}, kp = (e) => {
|
|
9139
9238
|
let t = (e) => Qn(e) ? ur(e) : String(e);
|
|
9140
9239
|
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);
|
|
9141
|
-
},
|
|
9240
|
+
}, Ap = (e) => {
|
|
9142
9241
|
switch (e.length) {
|
|
9143
9242
|
case 1: {
|
|
9144
9243
|
let [t] = e;
|
|
9145
9244
|
return {
|
|
9146
9245
|
type: "created",
|
|
9147
9246
|
before: "",
|
|
9148
|
-
after:
|
|
9247
|
+
after: kp(t)
|
|
9149
9248
|
};
|
|
9150
9249
|
}
|
|
9151
9250
|
case 2: {
|
|
9152
9251
|
let [t, n] = e;
|
|
9153
9252
|
return {
|
|
9154
9253
|
type: "modified",
|
|
9155
|
-
before:
|
|
9156
|
-
after:
|
|
9254
|
+
before: kp(t),
|
|
9255
|
+
after: kp(n)
|
|
9157
9256
|
};
|
|
9158
9257
|
}
|
|
9159
9258
|
case 3: {
|
|
9160
9259
|
let [t] = e;
|
|
9161
9260
|
return {
|
|
9162
9261
|
type: "deleted",
|
|
9163
|
-
before:
|
|
9262
|
+
before: kp(t),
|
|
9164
9263
|
after: ""
|
|
9165
9264
|
};
|
|
9166
9265
|
}
|
|
@@ -9170,15 +9269,15 @@ var bp = (e = {}) => yp({
|
|
|
9170
9269
|
after: ""
|
|
9171
9270
|
};
|
|
9172
9271
|
}
|
|
9173
|
-
},
|
|
9174
|
-
let r =
|
|
9272
|
+
}, jp = (e) => Array.isArray(e), Mp = (e, t) => t ? jp(t) ? t.length === 0 ? e : t.reduce((e, t) => Dp.unpatch(Zt(e), Zt(t)), Zt(e)) : Dp.unpatch(Zt(e), Zt(t)) : e, Np = (e) => e.createdAt || e.date, Pp = (e, t, n) => {
|
|
9273
|
+
let r = Np(e);
|
|
9175
9274
|
if (!r) return {
|
|
9176
9275
|
oldJson: "",
|
|
9177
9276
|
newJson: "",
|
|
9178
9277
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9179
9278
|
};
|
|
9180
9279
|
let i = t.filter((e) => {
|
|
9181
|
-
let t =
|
|
9280
|
+
let t = Np(e);
|
|
9182
9281
|
return !!(e.diffs && t && t >= r);
|
|
9183
9282
|
}), a = Array.from({ length: i.length + 1 });
|
|
9184
9283
|
a[0] = Zt(n);
|
|
@@ -9191,7 +9290,7 @@ var bp = (e = {}) => yp({
|
|
|
9191
9290
|
a[e + 1] = a[e];
|
|
9192
9291
|
continue;
|
|
9193
9292
|
}
|
|
9194
|
-
a[e + 1] =
|
|
9293
|
+
a[e + 1] = Mp(a[e], t);
|
|
9195
9294
|
}
|
|
9196
9295
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9197
9296
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9206,10 +9305,10 @@ var bp = (e = {}) => yp({
|
|
|
9206
9305
|
oldJson: o,
|
|
9207
9306
|
newJson: s
|
|
9208
9307
|
};
|
|
9209
|
-
},
|
|
9308
|
+
}, Fp = (e, t, n = {}, r = []) => {
|
|
9210
9309
|
var i;
|
|
9211
9310
|
if (!e) return;
|
|
9212
|
-
let a = [...
|
|
9311
|
+
let a = [...Ep, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9213
9312
|
Object.keys(e).forEach((i) => {
|
|
9214
9313
|
var o;
|
|
9215
9314
|
let s = e[i];
|
|
@@ -9222,12 +9321,12 @@ var bp = (e = {}) => yp({
|
|
|
9222
9321
|
nn(s) ? t.push({
|
|
9223
9322
|
deltaFormat: [...s],
|
|
9224
9323
|
path: c
|
|
9225
|
-
}) : un(s) &&
|
|
9324
|
+
}) : un(s) && Fp(s, t, n, c);
|
|
9226
9325
|
});
|
|
9227
|
-
},
|
|
9326
|
+
}, Ip = (e, t = {}) => {
|
|
9228
9327
|
let n = [];
|
|
9229
|
-
return e ? (
|
|
9230
|
-
},
|
|
9328
|
+
return e ? (Fp(e, n, t), n) : [];
|
|
9329
|
+
}, Lp = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Rp = (e) => {
|
|
9231
9330
|
if (e == null || e === "") return "empty";
|
|
9232
9331
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9233
9332
|
if (typeof e == "string") return e;
|
|
@@ -9238,32 +9337,32 @@ var bp = (e = {}) => yp({
|
|
|
9238
9337
|
} catch {
|
|
9239
9338
|
return String(e);
|
|
9240
9339
|
}
|
|
9241
|
-
},
|
|
9340
|
+
}, zp = (e, t = e.length - 1) => {
|
|
9242
9341
|
if (t >= e.length) return "Value";
|
|
9243
9342
|
let n = e[t];
|
|
9244
|
-
return !n || Yn(n) ?
|
|
9245
|
-
},
|
|
9246
|
-
let o =
|
|
9343
|
+
return !n || Yn(n) ? zp(e, t - 1) : Lp(n);
|
|
9344
|
+
}, Bp = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9345
|
+
let o = Rp(r), s = Rp(i), c = a ? ` in ${a}` : "";
|
|
9247
9346
|
switch (t) {
|
|
9248
9347
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9249
9348
|
case "created": return `${e} created ${s}${c}.`;
|
|
9250
9349
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9251
9350
|
default: return `${e} changed ${n}${c}.`;
|
|
9252
9351
|
}
|
|
9253
|
-
},
|
|
9352
|
+
}, Vp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(ll, { table: {
|
|
9254
9353
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9255
9354
|
rows: n.map((n) => {
|
|
9256
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9257
|
-
return { cells: [{ value:
|
|
9355
|
+
let { deltaFormat: i, path: a } = n, o = Op(e, a, r), { type: s, before: c, after: l } = Ap(i);
|
|
9356
|
+
return { cells: [{ value: Bp({
|
|
9258
9357
|
userName: t,
|
|
9259
9358
|
type: s,
|
|
9260
|
-
property:
|
|
9359
|
+
property: zp(a),
|
|
9261
9360
|
before: c,
|
|
9262
9361
|
after: l,
|
|
9263
9362
|
sectionName: o
|
|
9264
9363
|
}) }] };
|
|
9265
9364
|
})
|
|
9266
|
-
} }),
|
|
9365
|
+
} }), Hp = Object.freeze({
|
|
9267
9366
|
summary: {
|
|
9268
9367
|
label: "Summary",
|
|
9269
9368
|
value: "summary"
|
|
@@ -9272,33 +9371,33 @@ var bp = (e = {}) => yp({
|
|
|
9272
9371
|
label: "Compare",
|
|
9273
9372
|
value: "compare"
|
|
9274
9373
|
}
|
|
9275
|
-
}),
|
|
9276
|
-
let c = [
|
|
9374
|
+
}), Up = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9375
|
+
let c = [Hp.summary, Hp.compare].map(({ label: e, value: t }) => ({
|
|
9277
9376
|
label: e,
|
|
9278
9377
|
value: t
|
|
9279
9378
|
})), [l, u] = h(c[0]), { diffs: d = void 0 } = e || {};
|
|
9280
9379
|
if (!d) return null;
|
|
9281
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9380
|
+
let { oldJson: f, newJson: p, error: m } = Pp(e, t, n);
|
|
9282
9381
|
return /* @__PURE__ */ y(Fo, {
|
|
9283
9382
|
visible: r,
|
|
9284
9383
|
centered: !0,
|
|
9285
9384
|
children: /* @__PURE__ */ y(po, { dialog: {
|
|
9286
9385
|
scroll: !0,
|
|
9287
9386
|
heading: "Comparison view",
|
|
9288
|
-
content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
9387
|
+
content: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Bd, {
|
|
9289
9388
|
name: "ViewTab",
|
|
9290
9389
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9291
9390
|
options: c,
|
|
9292
9391
|
value: l
|
|
9293
|
-
}), l.value === "summary" ? /* @__PURE__ */ y(
|
|
9392
|
+
}), l.value === "summary" ? /* @__PURE__ */ y(Vp, {
|
|
9294
9393
|
userName: e.userName,
|
|
9295
9394
|
sectionNames: a,
|
|
9296
|
-
diffs:
|
|
9395
|
+
diffs: Ip(d, i),
|
|
9297
9396
|
defaultSectionName: o
|
|
9298
9397
|
}) : m ? /* @__PURE__ */ y("div", {
|
|
9299
9398
|
style: { padding: 16 },
|
|
9300
9399
|
children: m
|
|
9301
|
-
}) : /* @__PURE__ */ y(
|
|
9400
|
+
}) : /* @__PURE__ */ y(Mf, {
|
|
9302
9401
|
oldJson: f,
|
|
9303
9402
|
newJson: p
|
|
9304
9403
|
})] }),
|
|
@@ -9311,7 +9410,7 @@ var bp = (e = {}) => yp({
|
|
|
9311
9410
|
height: "90vh"
|
|
9312
9411
|
} })
|
|
9313
9412
|
});
|
|
9314
|
-
},
|
|
9413
|
+
}, Wp = [
|
|
9315
9414
|
{
|
|
9316
9415
|
label: "10 / page",
|
|
9317
9416
|
value: 10
|
|
@@ -9324,8 +9423,8 @@ var bp = (e = {}) => yp({
|
|
|
9324
9423
|
label: "50 / page",
|
|
9325
9424
|
value: 50
|
|
9326
9425
|
}
|
|
9327
|
-
],
|
|
9328
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9426
|
+
], Gp = (e, t = {}) => {
|
|
9427
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Ip(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9329
9428
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9330
9429
|
switch (a) {
|
|
9331
9430
|
case "Created": return `Created by ${r}`;
|
|
@@ -9335,7 +9434,7 @@ var bp = (e = {}) => yp({
|
|
|
9335
9434
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9336
9435
|
default: return `Change by ${r}`;
|
|
9337
9436
|
}
|
|
9338
|
-
},
|
|
9437
|
+
}, Kp = ({ 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: g }) => {
|
|
9339
9438
|
let [_, x] = h(!1), [S, C] = h(null), w = (e) => {
|
|
9340
9439
|
if (e.snapshot) {
|
|
9341
9440
|
f == null || f(e.snapshot, e);
|
|
@@ -9354,7 +9453,7 @@ var bp = (e = {}) => yp({
|
|
|
9354
9453
|
return {
|
|
9355
9454
|
cells: [
|
|
9356
9455
|
{
|
|
9357
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9456
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : Gp(e, l),
|
|
9358
9457
|
type: "Link",
|
|
9359
9458
|
disabled: n,
|
|
9360
9459
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9373,8 +9472,8 @@ var bp = (e = {}) => yp({
|
|
|
9373
9472
|
type: "Static"
|
|
9374
9473
|
},
|
|
9375
9474
|
{
|
|
9376
|
-
value:
|
|
9377
|
-
date:
|
|
9475
|
+
value: Nf({
|
|
9476
|
+
date: Np(e),
|
|
9378
9477
|
showTime: !0
|
|
9379
9478
|
}),
|
|
9380
9479
|
type: "Static"
|
|
@@ -9417,14 +9516,14 @@ var bp = (e = {}) => yp({
|
|
|
9417
9516
|
onChange: (e) => {
|
|
9418
9517
|
u(Number(e.target.value));
|
|
9419
9518
|
},
|
|
9420
|
-
options:
|
|
9519
|
+
options: Wp,
|
|
9421
9520
|
value: a
|
|
9422
9521
|
},
|
|
9423
9522
|
onSelectPage: (e) => d(e),
|
|
9424
9523
|
small: !0
|
|
9425
9524
|
} }
|
|
9426
9525
|
} })
|
|
9427
|
-
}), _ && S && S.diffs && /* @__PURE__ */ y(
|
|
9526
|
+
}), _ && S && S.diffs && /* @__PURE__ */ y(Up, {
|
|
9428
9527
|
sectionNames: o,
|
|
9429
9528
|
isOpen: _,
|
|
9430
9529
|
onClose: () => x(!1),
|
|
@@ -9434,7 +9533,7 @@ var bp = (e = {}) => yp({
|
|
|
9434
9533
|
data: t,
|
|
9435
9534
|
transformDiffsConfig: l
|
|
9436
9535
|
})] });
|
|
9437
|
-
},
|
|
9536
|
+
}, qp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9438
9537
|
let i = window.location.href, a = m(i);
|
|
9439
9538
|
return l(() => {
|
|
9440
9539
|
a.current = i;
|
|
@@ -9457,10 +9556,10 @@ var bp = (e = {}) => yp({
|
|
|
9457
9556
|
});
|
|
9458
9557
|
};
|
|
9459
9558
|
}, [e, t]), null;
|
|
9460
|
-
},
|
|
9461
|
-
_f
|
|
9462
|
-
e ===
|
|
9559
|
+
}, Jp = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Yp = (e) => {
|
|
9560
|
+
Sf(_f.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9561
|
+
e === _f.Translations ? Sf(e, yf(t)) : Sf(e, Jp(t) ? t : { ...t });
|
|
9463
9562
|
});
|
|
9464
9563
|
};
|
|
9465
9564
|
//#endregion
|
|
9466
|
-
export { pi as Accordion, Ii as AccordionWithDefaultToggle, ya as Actions, Gr as Align,
|
|
9565
|
+
export { pi as Accordion, Ii as AccordionWithDefaultToggle, ya as Actions, Gr as Align, Kp as AuditLog, aa as Badge, Ca as Breadcrumb, xa as BreadcrumbLinkType, K as Button, Ta as ButtonGroup, Kr as ButtonPosition, Bi as ButtonType, Da as Card, Mi as CheckBox, si as Chevron, ui as Collapse, Wr as Color, Ya as ColorInput, Ja as ColorInputPopover, eo as Column, po as Dialog, Mf as DiffViewer, U as DisabledContext, ao as Divider, bo as Drawer, qd as ElementType, bl as Empty, Su as Field, vu as FileButton, Ao as FileInput, Cu as Flex, Tu as FormRow, Pa as Grid, V as GroupOrder, lo as Heading, ji as HelpIcon, W as Icon, H as IconType, To as Input, Co as InputGroup, _c as InputGroupAddon, Do as InputReaderMethods, Yr as InputType, bu as Label, Ru as List, Du as ListHeading, Nu as ListSubheading, Bu as Loader, _a as Menu, qi as MenuCarat, Ki as MenuType, ts as Message, Yo as MessageType, Fo as Modal, ss as NativeSelect, Nc as NumberInput, Ku as OptionDropdown, Ju as Page, vc as Pagination, $d as PopConfirm, Aa as Popover, Yu as Portal, Zu as PrintHeader, Ro as ProgressBar, Qu as RadioButton, rd as RichTextInput, ad as Row, dc as Select, Of as SettingField, ud as SideBar, fd as Skeleton, Uc as Slider, Uo as SmartUploadModal, jo as Spacer, zi as Spinner, ll as Table, _u as TableImportExport, Bd as Tabs, ro as Text, Ud as TextArea, Vd as TextLink, qr as TextTransform, Jr as Theme, Or as Toaster, tu as Toggle, G as Tooltip, Xd as TopBar, rf as Tree, gf as TreeTable, Ur as TriggerType, Md as UnitInput, Id as UnitSlider, Ef as UnitTable, qp as UsageTracker, Ql as dismissToast, kd as initializeContext, Yp as initializeGuiLibrary, Oo as readFile, Zl as toast, cs as useFocus, Mo as useKeyboardEvent, ds as useWindowWidth };
|