@oliasoft-open-source/react-ui-library 7.0.2-beta-2 → 7.0.2-beta-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/number-input/number-input.test-case.stories.d.ts +3 -0
- package/dist/components/number-input/number-input.test-case.stories.d.ts.map +1 -1
- package/dist/components/unit-input/unit-input.d.ts.map +1 -1
- package/dist/components/unit-input/unit-input.test-case.stories.d.ts +1 -0
- package/dist/components/unit-input/unit-input.test-case.stories.d.ts.map +1 -1
- package/dist/index.js +415 -417
- package/package.json +1 -1
- package/dist/components/unit-input/hooks/use-synchronized-display-layer.d.ts +0 -14
- package/dist/components/unit-input/hooks/use-synchronized-display-layer.d.ts.map +0 -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
|
|
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 ee, TbChartLine as L, TbChartPie2 as R, TbCheck as z, 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 { CheckboxButton as Mt, CheckboxField as Nt } from "react-aria-components/Checkbox";
|
|
7
7
|
import { FloatingArrow as Pt, FloatingNode as Ft, FloatingPortal as It, FloatingTree as Lt, arrow as Rt, autoUpdate as zt, flip as Bt, offset as Vt, shift as Ht, size as Ut, useClientPoint as Wt, useDismiss as Gt, useFloating as Kt, useFloatingNodeId as qt, useFloatingParentNodeId as Jt, useHover as Yt, useInteractions as Xt, useMergeRefs as Zt } from "@floating-ui/react";
|
|
@@ -98,12 +98,12 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
98
98
|
case "clear":
|
|
99
99
|
case "times": return /* @__PURE__ */ y(At, {});
|
|
100
100
|
case "chart":
|
|
101
|
-
case "chart line": return /* @__PURE__ */ y(
|
|
102
|
-
case "chart bar": return /* @__PURE__ */ y(
|
|
103
|
-
case "chart pie": return /* @__PURE__ */ y(
|
|
101
|
+
case "chart line": return /* @__PURE__ */ y(L, {});
|
|
102
|
+
case "chart bar": return /* @__PURE__ */ y(ee, {});
|
|
103
|
+
case "chart pie": return /* @__PURE__ */ y(R, {});
|
|
104
104
|
case "chat": return /* @__PURE__ */ y(Je, {});
|
|
105
105
|
case "check":
|
|
106
|
-
case "checkmark": return /* @__PURE__ */ y(
|
|
106
|
+
case "checkmark": return /* @__PURE__ */ y(z, {});
|
|
107
107
|
case "chevron up": return /* @__PURE__ */ y(B, {});
|
|
108
108
|
case "chevron down": return /* @__PURE__ */ y(te, {});
|
|
109
109
|
case "chevron left": return /* @__PURE__ */ y(ne, {});
|
|
@@ -395,7 +395,7 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
395
395
|
l
|
|
396
396
|
]), M = s((e, t, n) => (Pi(e.getBoundingClientRect(), D), zt(e, t, () => {
|
|
397
397
|
Pi(e.getBoundingClientRect(), D), n();
|
|
398
|
-
}, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x:
|
|
398
|
+
}, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x: ee, y: L } = Kt({
|
|
399
399
|
open: e,
|
|
400
400
|
onOpenChange: (e, t, n) => {
|
|
401
401
|
!e && (n === "outside-press" || n === "escape-key") && (g == null || g()), p == null || p(e);
|
|
@@ -406,16 +406,16 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
406
406
|
transform: !1,
|
|
407
407
|
whileElementsMounted: M,
|
|
408
408
|
middleware: j
|
|
409
|
-
}),
|
|
409
|
+
}), R = s((e) => {
|
|
410
410
|
if (P.setReference(e), e) {
|
|
411
411
|
Pi(e.getBoundingClientRect(), D);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
D(null);
|
|
415
|
-
}, [P.setReference]),
|
|
415
|
+
}, [P.setReference]), z = (_ = i == null ? void 0 : i.hideOnScroll) == null ? !1 : _, { getReferenceProps: te, getFloatingProps: ne } = Xt([
|
|
416
416
|
Gt(N, {
|
|
417
|
-
enabled: e && (!!g ||
|
|
418
|
-
ancestorScroll:
|
|
417
|
+
enabled: e && (!!g || z),
|
|
418
|
+
ancestorScroll: z,
|
|
419
419
|
escapeKey: !!g,
|
|
420
420
|
outsidePress: !!g,
|
|
421
421
|
outsidePressEvent: "mousedown"
|
|
@@ -435,11 +435,11 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
435
435
|
x: (C = n == null ? void 0 : n.x) == null ? null : C,
|
|
436
436
|
y: (w = n == null ? void 0 : n.y) == null ? null : w
|
|
437
437
|
})
|
|
438
|
-
]), re = f(() => te({ ref:
|
|
438
|
+
]), re = f(() => te({ ref: R }), [te, R]), B = f(() => ne({
|
|
439
439
|
ref: P.setFloating,
|
|
440
440
|
style: {
|
|
441
441
|
...F,
|
|
442
|
-
visibility: e && (!I ||
|
|
442
|
+
visibility: e && (!I || ee === null || L === null) ? "hidden" : void 0
|
|
443
443
|
}
|
|
444
444
|
}), [
|
|
445
445
|
F,
|
|
@@ -447,8 +447,8 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
447
447
|
e,
|
|
448
448
|
I,
|
|
449
449
|
P.setFloating,
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
ee,
|
|
451
|
+
L
|
|
452
452
|
]);
|
|
453
453
|
return {
|
|
454
454
|
arrowProps: f(() => ({
|
|
@@ -1146,9 +1146,9 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
1146
1146
|
}), x]
|
|
1147
1147
|
});
|
|
1148
1148
|
}, Da = ({ 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 }) => {
|
|
1149
|
-
let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections:
|
|
1149
|
+
let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: ee, component: L, placement: R, showAllButton: z, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = on(x) && ln(S) ? [x, S] : h(!1), B = () => re(!1), ie = () => re(!0), { triggerProps: ae, layerProps: oe, renderLayer: se } = Li({
|
|
1150
1150
|
isOpen: ne,
|
|
1151
|
-
...ma(
|
|
1151
|
+
...ma(R, o),
|
|
1152
1152
|
possiblePlacements: te,
|
|
1153
1153
|
onOutsideClick: B,
|
|
1154
1154
|
overflowContainer: p
|
|
@@ -1178,7 +1178,7 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
1178
1178
|
colored: F,
|
|
1179
1179
|
small: I,
|
|
1180
1180
|
isNested: o,
|
|
1181
|
-
component:
|
|
1181
|
+
component: L,
|
|
1182
1182
|
groupOrder: f,
|
|
1183
1183
|
isOpen: ne,
|
|
1184
1184
|
active: O,
|
|
@@ -1204,7 +1204,7 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
1204
1204
|
"data-testid": e.testId,
|
|
1205
1205
|
onClick: (e) => e.stopPropagation(),
|
|
1206
1206
|
children: /* @__PURE__ */ y(pa, {
|
|
1207
|
-
sections:
|
|
1207
|
+
sections: ee,
|
|
1208
1208
|
isNested: o,
|
|
1209
1209
|
width: t,
|
|
1210
1210
|
closeOnOptionClick: s,
|
|
@@ -1212,7 +1212,7 @@ var ni = /* @__PURE__ */ function(e) {
|
|
|
1212
1212
|
tree: u,
|
|
1213
1213
|
path: d,
|
|
1214
1214
|
maxHeight: g,
|
|
1215
|
-
showAllButton:
|
|
1215
|
+
showAllButton: z,
|
|
1216
1216
|
testId: _ && `${_}-layer`
|
|
1217
1217
|
})
|
|
1218
1218
|
})) })
|
|
@@ -1945,9 +1945,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
1945
1945
|
children: e
|
|
1946
1946
|
}) : /* @__PURE__ */ y(v, { children: e });
|
|
1947
1947
|
}, No = ({ 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 = ai.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 }) => {
|
|
1948
|
-
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,
|
|
1948
|
+
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, ee = S === void 0 ? N : x, L = S || P, R = Array.isArray(o) ? o[ee || 0] : o, z = F ? R : g ? 35 : s;
|
|
1949
1949
|
return /* @__PURE__ */ y(Mo, {
|
|
1950
|
-
width:
|
|
1950
|
+
width: z,
|
|
1951
1951
|
onResize: w,
|
|
1952
1952
|
setOpen: I,
|
|
1953
1953
|
right: i,
|
|
@@ -1960,30 +1960,30 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
1960
1960
|
style: {
|
|
1961
1961
|
background: e,
|
|
1962
1962
|
borderColor: typeof p == "string" ? p : void 0,
|
|
1963
|
-
width:
|
|
1963
|
+
width: z
|
|
1964
1964
|
},
|
|
1965
1965
|
children: g ? /* @__PURE__ */ y(ko, {
|
|
1966
|
-
width:
|
|
1966
|
+
width: R,
|
|
1967
1967
|
testId: C,
|
|
1968
1968
|
tabs: g,
|
|
1969
1969
|
open: F,
|
|
1970
|
-
activeTab:
|
|
1970
|
+
activeTab: ee || 0,
|
|
1971
1971
|
background: e,
|
|
1972
1972
|
handleTabClick: (e) => {
|
|
1973
1973
|
let t = (t) => {
|
|
1974
1974
|
g && t && t(g[e]);
|
|
1975
1975
|
};
|
|
1976
|
-
|
|
1976
|
+
ee === e && F && I ? (t(E), I(!1)) : !F && I && (t(D), I(!0), w && ((e) => {
|
|
1977
1977
|
let t;
|
|
1978
|
-
if (t = Array.isArray(e) ? e[
|
|
1978
|
+
if (t = Array.isArray(e) ? e[ee || 0] : e, typeof t == "number" && t < 240) w(240);
|
|
1979
1979
|
else if (typeof t == "string") {
|
|
1980
1980
|
let e = parseInt(t, 10);
|
|
1981
1981
|
!isNaN(e) && e < 240 && w(240);
|
|
1982
1982
|
}
|
|
1983
|
-
})(o)),
|
|
1983
|
+
})(o)), L(e), t(T);
|
|
1984
1984
|
}
|
|
1985
1985
|
}) : /* @__PURE__ */ y("div", {
|
|
1986
|
-
style: { width:
|
|
1986
|
+
style: { width: R },
|
|
1987
1987
|
children: m
|
|
1988
1988
|
})
|
|
1989
1989
|
}), u && /* @__PURE__ */ y("span", {
|
|
@@ -3030,21 +3030,21 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3030
3030
|
createAble: _
|
|
3031
3031
|
}), I = () => {
|
|
3032
3032
|
S(), t({ type: lc.BLUR_TRIGGER_INPUTS });
|
|
3033
|
-
},
|
|
3033
|
+
}, ee = (e) => {
|
|
3034
3034
|
v.current && Number.isInteger(e) && v.current.scrollToRow({ index: e });
|
|
3035
|
-
},
|
|
3035
|
+
}, L = (n) => {
|
|
3036
3036
|
let r = rc(n, e.layerFocus);
|
|
3037
3037
|
t({
|
|
3038
3038
|
type: lc.FOCUS_LAYER_OPTIONS,
|
|
3039
3039
|
nextLayerFocus: r
|
|
3040
|
-
}),
|
|
3041
|
-
},
|
|
3040
|
+
}), ee(r.current);
|
|
3041
|
+
}, R = (e) => {
|
|
3042
3042
|
t({
|
|
3043
3043
|
type: lc.FOCUS_TRIGGER_INPUTS,
|
|
3044
3044
|
ICustomSelectDirection: e,
|
|
3045
3045
|
selectedOptions: u
|
|
3046
3046
|
});
|
|
3047
|
-
},
|
|
3047
|
+
}, z = (e) => P(e), te = u && u[e.triggerFocus.currentOption], ne = (t) => {
|
|
3048
3048
|
N(t, u[e.triggerFocus.currentOption]);
|
|
3049
3049
|
}, re = (t) => {
|
|
3050
3050
|
var n;
|
|
@@ -3055,19 +3055,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3055
3055
|
onKeyEvent: (n, r) => {
|
|
3056
3056
|
switch (n) {
|
|
3057
3057
|
case uc.UP:
|
|
3058
|
-
|
|
3058
|
+
L("up");
|
|
3059
3059
|
break;
|
|
3060
3060
|
case uc.DOWN:
|
|
3061
|
-
e.isLayerOpen ?
|
|
3061
|
+
e.isLayerOpen ? L("down") : I();
|
|
3062
3062
|
break;
|
|
3063
3063
|
case uc.LEFT:
|
|
3064
|
-
|
|
3064
|
+
R("left");
|
|
3065
3065
|
break;
|
|
3066
3066
|
case uc.RIGHT:
|
|
3067
|
-
|
|
3067
|
+
R("right");
|
|
3068
3068
|
break;
|
|
3069
3069
|
case uc.ENTER:
|
|
3070
|
-
B ?
|
|
3070
|
+
B ? z(r) : te ? ne(r) : re(r);
|
|
3071
3071
|
break;
|
|
3072
3072
|
case uc.ESC:
|
|
3073
3073
|
x();
|
|
@@ -3092,7 +3092,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3092
3092
|
triggerBounds: A
|
|
3093
3093
|
};
|
|
3094
3094
|
}, fc = (e) => {
|
|
3095
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: f = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = c(U), A = l !== null, j = m(null), M = m(null), [N, P] = xs(), F = Ss(), [I,
|
|
3095
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: f = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = c(U), A = l !== null, j = m(null), M = m(null), [N, P] = xs(), F = Ss(), [I, ee] = p(sc, {
|
|
3096
3096
|
options: o,
|
|
3097
3097
|
firstSelectedOptionIndex: E
|
|
3098
3098
|
}, ({ options: e }) => ({
|
|
@@ -3101,10 +3101,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3101
3101
|
layerFocus: nc(e, E == null ? 0 : E),
|
|
3102
3102
|
triggerFocus: ec,
|
|
3103
3103
|
isLayerOpen: !1
|
|
3104
|
-
})), { getTriggerWidth:
|
|
3104
|
+
})), { getTriggerWidth: L, onKeyEvent: R, clearAllIsFocused: z, triggerProps: te, onClickTrigger: ne, onChangeSearch: re, onClickDeselectOption: B, onClickClearAll: ie, renderLayer: ae, layerProps: oe, closeLayer: se, onSelectOption: ce, getLayerWidth: le, triggerBounds: ue } = dc({
|
|
3105
3105
|
...e,
|
|
3106
3106
|
state: I,
|
|
3107
|
-
dispatch:
|
|
3107
|
+
dispatch: ee,
|
|
3108
3108
|
setTriggerFocus: P,
|
|
3109
3109
|
disabledContext: k,
|
|
3110
3110
|
isFontLoaded: F,
|
|
@@ -3112,16 +3112,16 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3112
3112
|
listRef: j
|
|
3113
3113
|
}), de = Zt([N, te.ref]), fe = Zt([M, oe.ref]);
|
|
3114
3114
|
return /* @__PURE__ */ b("div", {
|
|
3115
|
-
style: { width:
|
|
3115
|
+
style: { width: L() },
|
|
3116
3116
|
onKeyDown: (e) => {
|
|
3117
|
-
Object.values(uc).includes(e.key) &&
|
|
3117
|
+
Object.values(uc).includes(e.key) && R(e.key, e);
|
|
3118
3118
|
},
|
|
3119
3119
|
children: [/* @__PURE__ */ y(Qs, {
|
|
3120
3120
|
selectedOptions: s,
|
|
3121
3121
|
searchValue: I.searchValue,
|
|
3122
3122
|
isOpen: I.isLayerOpen,
|
|
3123
3123
|
focusedSelectedOptionIndex: typeof I.triggerFocus.currentOption == "number" ? I.triggerFocus.currentOption : void 0,
|
|
3124
|
-
clearAllIsFocused:
|
|
3124
|
+
clearAllIsFocused: z,
|
|
3125
3125
|
searchable: _,
|
|
3126
3126
|
triggerRef: de,
|
|
3127
3127
|
error: r,
|
|
@@ -3465,8 +3465,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3465
3465
|
tabIndex: e.disabled ? -1 : 0,
|
|
3466
3466
|
tooltip: e.tooltip,
|
|
3467
3467
|
type: r
|
|
3468
|
-
}), Hc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Uc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3469
|
-
let
|
|
3468
|
+
}), Hc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Uc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1, useControlledValueWhenBlurred: k = !1 }) => {
|
|
3469
|
+
let A = (e) => {
|
|
3470
3470
|
let n = dr(e), r = t && mc(e);
|
|
3471
3471
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3472
3472
|
valid: !0,
|
|
@@ -3476,63 +3476,63 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3476
3476
|
valid: !0,
|
|
3477
3477
|
errors: void 0
|
|
3478
3478
|
} : n;
|
|
3479
|
-
},
|
|
3479
|
+
}, j = (e) => {
|
|
3480
3480
|
var t;
|
|
3481
3481
|
let n = !!(e != null && e.endsWith("0"));
|
|
3482
|
-
return lr(w && e && !n && (t =
|
|
3483
|
-
},
|
|
3482
|
+
return lr(w && e && !n && (t = A(e)) != null && t.valid ? ir(e) : e);
|
|
3483
|
+
}, M = m(null), N = j(lr(s)), [P, F] = h(N), [I, ee] = h(!1), L = A(P).valid, R = k && !I && L ? N : P, z = Hc(e), { valid: te, errors: ne } = A(R), re = ne && ne.length && !D ? ne[0] : null;
|
|
3484
3484
|
l(() => {
|
|
3485
|
-
|
|
3486
|
-
cr(M) !== cr(e) && N(e);
|
|
3485
|
+
k || cr(P) !== cr(N) && F(N);
|
|
3487
3486
|
}, [
|
|
3488
3487
|
s,
|
|
3489
3488
|
w,
|
|
3490
|
-
T
|
|
3489
|
+
T,
|
|
3490
|
+
k
|
|
3491
3491
|
]), l(() => {
|
|
3492
|
-
(O || !
|
|
3492
|
+
(O || !I) && !te ? b(z, re) : b(z, null);
|
|
3493
3493
|
}, [
|
|
3494
|
-
|
|
3495
|
-
|
|
3494
|
+
I,
|
|
3495
|
+
te,
|
|
3496
3496
|
r
|
|
3497
3497
|
]);
|
|
3498
|
-
let
|
|
3498
|
+
let B = (e) => {
|
|
3499
3499
|
var n, r;
|
|
3500
|
-
let i = "key" in e ?
|
|
3501
|
-
|
|
3500
|
+
let i = "key" in e ? R : e == null || (n = e.target) == null ? void 0 : n.value, a = Wn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3501
|
+
F(a), ((r = A(a)) != null && r.valid || t && mc(i)) && c({
|
|
3502
3502
|
...e,
|
|
3503
3503
|
target: {
|
|
3504
3504
|
...e.target,
|
|
3505
3505
|
value: sr(lr(a)),
|
|
3506
|
-
name:
|
|
3506
|
+
name: z
|
|
3507
3507
|
}
|
|
3508
3508
|
});
|
|
3509
3509
|
};
|
|
3510
3510
|
return l(() => {
|
|
3511
|
-
if (
|
|
3512
|
-
let e =
|
|
3511
|
+
if (M && M != null && M.current && T && I) {
|
|
3512
|
+
let e = M.current;
|
|
3513
3513
|
e && !f && setTimeout(() => {
|
|
3514
|
-
let { length: t } = lr(
|
|
3514
|
+
let { length: t } = lr(R);
|
|
3515
3515
|
e.setSelectionRange(t, t);
|
|
3516
3516
|
}, 0);
|
|
3517
3517
|
}
|
|
3518
|
-
}, [
|
|
3518
|
+
}, [I]), /* @__PURE__ */ y(Ro, {
|
|
3519
3519
|
type: "text",
|
|
3520
|
-
name:
|
|
3520
|
+
name: z,
|
|
3521
3521
|
testId: g,
|
|
3522
3522
|
disabled: n,
|
|
3523
3523
|
placeholder: t,
|
|
3524
|
-
value: T && !
|
|
3525
|
-
onChange:
|
|
3524
|
+
value: T && !I && te ? E ? lr(E(R)) : ((e) => S ? ar(e, 2) : nr(e, 4))(s) : R,
|
|
3525
|
+
onChange: B,
|
|
3526
3526
|
onFocus: (e) => {
|
|
3527
|
-
F(!0), u(e);
|
|
3527
|
+
k && F(N), ee(!0), u(e);
|
|
3528
3528
|
},
|
|
3529
3529
|
onBlur: (e) => {
|
|
3530
|
-
|
|
3530
|
+
ee(!1), d(e);
|
|
3531
3531
|
},
|
|
3532
3532
|
onKeyDown: (e) => {
|
|
3533
|
-
e.key === uc.ENTER &&
|
|
3533
|
+
e.key === uc.ENTER && B(e);
|
|
3534
3534
|
},
|
|
3535
|
-
error:
|
|
3535
|
+
error: re || r,
|
|
3536
3536
|
warning: v,
|
|
3537
3537
|
right: !i,
|
|
3538
3538
|
small: a,
|
|
@@ -3542,8 +3542,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3542
3542
|
selectOnFocus: f,
|
|
3543
3543
|
tabIndex: p,
|
|
3544
3544
|
tooltip: _,
|
|
3545
|
-
ref:
|
|
3546
|
-
},
|
|
3545
|
+
ref: M
|
|
3546
|
+
}, z);
|
|
3547
3547
|
}, Wc = ({ cell: e, columnAlignment: t, testId: n }) => {
|
|
3548
3548
|
var r;
|
|
3549
3549
|
return /* @__PURE__ */ y(Uc, {
|
|
@@ -3709,7 +3709,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3709
3709
|
disabled: D || j[0] === o,
|
|
3710
3710
|
icon: H.FAST_BACKWARD
|
|
3711
3711
|
})
|
|
3712
|
-
}),
|
|
3712
|
+
}), ee = () => /* @__PURE__ */ y("div", {
|
|
3713
3713
|
className: Yc.button,
|
|
3714
3714
|
children: /* @__PURE__ */ y(K, {
|
|
3715
3715
|
basic: !0,
|
|
@@ -3721,10 +3721,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3721
3721
|
disabled: D || j[j.length - 1] === s,
|
|
3722
3722
|
icon: H.FAST_FORWARD
|
|
3723
3723
|
})
|
|
3724
|
-
}),
|
|
3725
|
-
let t =
|
|
3724
|
+
}), L = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`, R = (e) => {
|
|
3725
|
+
let t = L(e);
|
|
3726
3726
|
return C.enabled ? { bottom: t } : { left: t };
|
|
3727
|
-
},
|
|
3727
|
+
}, z = (e) => {
|
|
3728
3728
|
if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
|
|
3729
3729
|
}, 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]) ? [Qt(e, o, j[1]), j[1]] : [j[0], Qt(e, j[0], s)] : [Qt(e, o, s)];
|
|
3730
3730
|
return /* @__PURE__ */ b("div", {
|
|
@@ -3734,7 +3734,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3734
3734
|
height: C.height
|
|
3735
3735
|
} : { width: n },
|
|
3736
3736
|
children: [
|
|
3737
|
-
d && (C.enabled ? /* @__PURE__ */ y(
|
|
3737
|
+
d && (C.enabled ? /* @__PURE__ */ y(ee, {}) : /* @__PURE__ */ y(I, {})),
|
|
3738
3738
|
/* @__PURE__ */ b(yr.Root, {
|
|
3739
3739
|
className: _(Yc.slider, D && Yc.sliderDisabled, d && Yc.hasArrows),
|
|
3740
3740
|
"data-testid": i,
|
|
@@ -3755,7 +3755,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3755
3755
|
children: [/* @__PURE__ */ y(yr.Range, { className: Yc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
|
|
3756
3756
|
className: Yc.marks,
|
|
3757
3757
|
children: A.map(({ label: e, tooltip: t, value: n }) => {
|
|
3758
|
-
let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]:
|
|
3758
|
+
let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: L(r) };
|
|
3759
3759
|
return /* @__PURE__ */ y("button", {
|
|
3760
3760
|
"aria-label": String(e == null ? n : e),
|
|
3761
3761
|
className: _(Yc.mark, i && Yc.markActive),
|
|
@@ -3779,12 +3779,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3779
3779
|
return /* @__PURE__ */ y(yr.Thumb, {
|
|
3780
3780
|
"aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
|
|
3781
3781
|
className: Yc.thumb,
|
|
3782
|
-
"data-testid":
|
|
3782
|
+
"data-testid": z(r),
|
|
3783
3783
|
onKeyDown: () => k(r),
|
|
3784
3784
|
onKeyUp: () => k(null),
|
|
3785
3785
|
onPointerDown: () => k(r),
|
|
3786
3786
|
onPointerUp: () => k(null),
|
|
3787
|
-
style:
|
|
3787
|
+
style: R(n),
|
|
3788
3788
|
children: p && O === r && /* @__PURE__ */ y(G, {
|
|
3789
3789
|
display: "block",
|
|
3790
3790
|
text: m(Zc(j, x)),
|
|
@@ -3798,7 +3798,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3798
3798
|
}, r);
|
|
3799
3799
|
})]
|
|
3800
3800
|
}),
|
|
3801
|
-
d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(
|
|
3801
|
+
d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(ee, {})),
|
|
3802
3802
|
t && /* @__PURE__ */ y("label", {
|
|
3803
3803
|
className: Yc.label,
|
|
3804
3804
|
style: { width: r },
|
|
@@ -4229,7 +4229,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4229
4229
|
});
|
|
4230
4230
|
}, yl = (e) => {
|
|
4231
4231
|
var t, n, r, i, a;
|
|
4232
|
-
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = rn(e, "table.headers", []), M = Pc(p, j), N = Ic(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F,
|
|
4232
|
+
let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = rn(e, "table.headers", []), M = Pc(p, j), N = Ic(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, ee = {
|
|
4233
4233
|
cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
|
|
4234
4234
|
...e,
|
|
4235
4235
|
onChange: (e) => {
|
|
@@ -4248,9 +4248,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4248
4248
|
disabled: !0
|
|
4249
4249
|
}) : null,
|
|
4250
4250
|
testId: C ? `${C}-last-empty-row` : void 0
|
|
4251
|
-
},
|
|
4251
|
+
}, L = I ? p.concat(ee) : p, R = {
|
|
4252
4252
|
...l,
|
|
4253
|
-
rows:
|
|
4253
|
+
rows: L
|
|
4254
4254
|
};
|
|
4255
4255
|
return /* @__PURE__ */ b("div", {
|
|
4256
4256
|
className: _(hs.wrapper, D ? hs.bordered : ""),
|
|
@@ -4273,11 +4273,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4273
4273
|
draggable: w,
|
|
4274
4274
|
onListReorder: o,
|
|
4275
4275
|
rowActions: N,
|
|
4276
|
-
rows:
|
|
4276
|
+
rows: L,
|
|
4277
4277
|
tbodyRef: A,
|
|
4278
4278
|
canListReorder: s,
|
|
4279
4279
|
children: ({ dropDisabled: e }) => /* @__PURE__ */ y(vl, {
|
|
4280
|
-
table:
|
|
4280
|
+
table: R,
|
|
4281
4281
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ b("table", {
|
|
4282
4282
|
className: _(hs.table, S ? hs.striped : ""),
|
|
4283
4283
|
"data-testid": C,
|
|
@@ -4296,7 +4296,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4296
4296
|
}, `0_${t}`)) }), /* @__PURE__ */ y("tbody", {
|
|
4297
4297
|
ref: A,
|
|
4298
4298
|
children: t ? t.getVirtualItems().map((t) => {
|
|
4299
|
-
let n = t.index, r =
|
|
4299
|
+
let n = t.index, r = L[n];
|
|
4300
4300
|
return /* @__PURE__ */ y(ml, {
|
|
4301
4301
|
rowIndex: n,
|
|
4302
4302
|
row: c ? c({
|
|
@@ -4312,7 +4312,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4312
4312
|
height: t.size,
|
|
4313
4313
|
dropDisabled: e
|
|
4314
4314
|
}, `1_${n}`);
|
|
4315
|
-
}) :
|
|
4315
|
+
}) : L.map((t, n) => /* @__PURE__ */ y(ml, {
|
|
4316
4316
|
rowIndex: n,
|
|
4317
4317
|
row: c ? c({
|
|
4318
4318
|
row: t,
|
|
@@ -4965,7 +4965,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4965
4965
|
type: "Success",
|
|
4966
4966
|
content: u("pasteSuccessful")
|
|
4967
4967
|
} }, f);
|
|
4968
|
-
}, { pastedText: F, parsedResult: I } = k,
|
|
4968
|
+
}, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: R } = I, z = R.length, te = F === "", ne = Ml(F), re = jl(F), B = /* @__PURE__ */ b(v, { children: [
|
|
4969
4969
|
/* @__PURE__ */ b("div", {
|
|
4970
4970
|
className: os.headerContainer,
|
|
4971
4971
|
children: [
|
|
@@ -4975,7 +4975,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
4975
4975
|
label: u("downsampled"),
|
|
4976
4976
|
checked: D,
|
|
4977
4977
|
onChange: () => j(!D),
|
|
4978
|
-
disabled: te || !
|
|
4978
|
+
disabled: te || !L
|
|
4979
4979
|
})
|
|
4980
4980
|
}),
|
|
4981
4981
|
/* @__PURE__ */ y(G, {
|
|
@@ -5040,8 +5040,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5040
5040
|
}) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
|
|
5041
5041
|
className: os.messagesContainer,
|
|
5042
5042
|
children: [
|
|
5043
|
-
|
|
5044
|
-
errors:
|
|
5043
|
+
z ? /* @__PURE__ */ y(Ol, {
|
|
5044
|
+
errors: R,
|
|
5045
5045
|
t: u
|
|
5046
5046
|
}) : null,
|
|
5047
5047
|
ne && /* @__PURE__ */ y(_o, {
|
|
@@ -5055,7 +5055,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5055
5055
|
content: u("extraSeparators"),
|
|
5056
5056
|
type: "Warning"
|
|
5057
5057
|
} }),
|
|
5058
|
-
|
|
5058
|
+
ee && /* @__PURE__ */ y(ms, { message: {
|
|
5059
5059
|
visible: !0,
|
|
5060
5060
|
icon: !0,
|
|
5061
5061
|
width: "100%",
|
|
@@ -5089,7 +5089,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5089
5089
|
label: u("okay"),
|
|
5090
5090
|
colored: !0,
|
|
5091
5091
|
onClick: () => f(() => P()),
|
|
5092
|
-
disabled: te || !
|
|
5092
|
+
disabled: te || !L,
|
|
5093
5093
|
loading: d,
|
|
5094
5094
|
testId: `${p}-paste-with-review-modal-button-okay`
|
|
5095
5095
|
}),
|
|
@@ -5097,7 +5097,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5097
5097
|
label: u("cancel"),
|
|
5098
5098
|
onClick: () => i()
|
|
5099
5099
|
}),
|
|
5100
|
-
|
|
5100
|
+
ee && /* @__PURE__ */ y(K, {
|
|
5101
5101
|
label: C,
|
|
5102
5102
|
onClick: w
|
|
5103
5103
|
})
|
|
@@ -5465,13 +5465,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5465
5465
|
}
|
|
5466
5466
|
}, Du = ({ config: e, smartUploadConfig: t, testId: n }) => {
|
|
5467
5467
|
var r, i, a, o;
|
|
5468
|
-
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(Eu), { 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 = vu(f),
|
|
5468
|
+
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(Eu), { 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 = vu(f), ee = hu(I, s, c), [L, R] = g(), z = xu({
|
|
5469
5469
|
config: e,
|
|
5470
5470
|
state: E,
|
|
5471
5471
|
setState: D,
|
|
5472
5472
|
smartUploadConfig: t,
|
|
5473
|
-
startTransition:
|
|
5474
|
-
}), { readAndParseInput: te, updateState: ne, closeModals: re, setModalVisibility: B, onFileChange: ie, onClickQuickPasteFromClipBoard: ae, onClickCopyClipboard: oe, onSmartUploadResult: se, deleteAllRows: ce } =
|
|
5473
|
+
startTransition: R
|
|
5474
|
+
}), { readAndParseInput: te, updateState: ne, closeModals: re, setModalVisibility: B, onFileChange: ie, onClickQuickPasteFromClipBoard: ae, onClickCopyClipboard: oe, onSmartUploadResult: se, deleteAllRows: ce } = z == null ? {} : z;
|
|
5475
5475
|
Go("Escape", () => re());
|
|
5476
5476
|
let le = m ? [
|
|
5477
5477
|
...S ? [{
|
|
@@ -5506,7 +5506,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5506
5506
|
type: "Option",
|
|
5507
5507
|
label: I("downloadFile"),
|
|
5508
5508
|
onClick: async () => {
|
|
5509
|
-
let e = await
|
|
5509
|
+
let e = await ee();
|
|
5510
5510
|
e && e && Su(e, d);
|
|
5511
5511
|
}
|
|
5512
5512
|
},
|
|
@@ -5567,7 +5567,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5567
5567
|
}] : []
|
|
5568
5568
|
];
|
|
5569
5569
|
return /* @__PURE__ */ b("span", { children: [
|
|
5570
|
-
|
|
5570
|
+
L && /* @__PURE__ */ y(Qi, {
|
|
5571
5571
|
small: !0,
|
|
5572
5572
|
dark: !0
|
|
5573
5573
|
}),
|
|
@@ -5588,8 +5588,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
5588
5588
|
onCompleteImport: T,
|
|
5589
5589
|
prevalidationConfig: l,
|
|
5590
5590
|
t: I,
|
|
5591
|
-
loading:
|
|
5592
|
-
startTransition:
|
|
5591
|
+
loading: L,
|
|
5592
|
+
startTransition: R,
|
|
5593
5593
|
testId: n
|
|
5594
5594
|
}),
|
|
5595
5595
|
A && /* @__PURE__ */ y(as, {
|
|
@@ -6548,17 +6548,31 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6548
6548
|
}), (t) => {
|
|
6549
6549
|
e.current = t;
|
|
6550
6550
|
};
|
|
6551
|
-
}, Ed = (e) =>
|
|
6551
|
+
}, Ed = (e) => {
|
|
6552
|
+
let t = m(void 0);
|
|
6553
|
+
return l(() => {
|
|
6554
|
+
t.current = e;
|
|
6555
|
+
}, [e]), t.current;
|
|
6556
|
+
}, Dd = (e, t) => {
|
|
6557
|
+
let n = t == null ? void 0 : t[e];
|
|
6558
|
+
if (!n) {
|
|
6559
|
+
var r;
|
|
6560
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = ur(e)) == null ? "" : r;
|
|
6561
|
+
}
|
|
6562
|
+
return n;
|
|
6563
|
+
}, Od = /* @__PURE__ */ function(e) {
|
|
6564
|
+
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6565
|
+
}({}), kd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), Ad = (e) => {
|
|
6552
6566
|
if (!e) return !1;
|
|
6553
6567
|
let t = Jn(e);
|
|
6554
6568
|
return !Hn.includes(t);
|
|
6555
|
-
},
|
|
6569
|
+
}, jd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6556
6570
|
var r;
|
|
6557
6571
|
let i = Vn[t];
|
|
6558
6572
|
if (!i || i.length === 0 || !((r = dr(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6559
6573
|
let a = Jn(String(e));
|
|
6560
6574
|
return !(a && !i.includes(a));
|
|
6561
|
-
},
|
|
6575
|
+
}, Md = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6562
6576
|
var o;
|
|
6563
6577
|
let s = er(e) ? Xn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6564
6578
|
if (i || c) return {
|
|
@@ -6578,13 +6592,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6578
6592
|
value: void 0,
|
|
6579
6593
|
error: "Source unit is missing"
|
|
6580
6594
|
};
|
|
6581
|
-
if (
|
|
6595
|
+
if (kd(s)) return {
|
|
6582
6596
|
value: void 0,
|
|
6583
6597
|
error: "Value is invalid for conversion"
|
|
6584
6598
|
};
|
|
6585
6599
|
try {
|
|
6586
6600
|
let e = pr(s, l);
|
|
6587
|
-
return
|
|
6601
|
+
return jd({
|
|
6588
6602
|
value: e,
|
|
6589
6603
|
toUnit: n,
|
|
6590
6604
|
unitkey: t
|
|
@@ -6601,13 +6615,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6601
6615
|
error: "Conversion not possible"
|
|
6602
6616
|
};
|
|
6603
6617
|
}
|
|
6604
|
-
},
|
|
6605
|
-
let a = Xn(e), o =
|
|
6606
|
-
return !
|
|
6618
|
+
}, Nd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6619
|
+
let a = Xn(e), o = kd(a);
|
|
6620
|
+
return !jd({
|
|
6607
6621
|
value: e,
|
|
6608
6622
|
unitkey: n,
|
|
6609
6623
|
toUnit: t
|
|
6610
|
-
}) ||
|
|
6624
|
+
}) || Ad(e) || o ? { value: a } : er(e) ? Md({
|
|
6611
6625
|
value: e,
|
|
6612
6626
|
unitkey: n,
|
|
6613
6627
|
toUnit: t,
|
|
@@ -6615,50 +6629,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6615
6629
|
doNotConvertValue: i,
|
|
6616
6630
|
exactPrecision: !0
|
|
6617
6631
|
}) : { value: e };
|
|
6618
|
-
},
|
|
6619
|
-
let [a = "", o = ""] = i === void 0 ? [] : or(i), c = f(() => ({
|
|
6620
|
-
error: e,
|
|
6621
|
-
initDisplayUnit: t,
|
|
6622
|
-
value: i
|
|
6623
|
-
}), [
|
|
6624
|
-
e,
|
|
6625
|
-
t,
|
|
6626
|
-
i
|
|
6627
|
-
]), l = (e) => {
|
|
6628
|
-
let { value: t } = Ad({
|
|
6629
|
-
value: i,
|
|
6630
|
-
toUnit: e,
|
|
6631
|
-
unitkey: r,
|
|
6632
|
-
defaultFromUnit: o,
|
|
6633
|
-
doNotConvertValue: n
|
|
6634
|
-
});
|
|
6635
|
-
return t === "" ? {
|
|
6636
|
-
value: a,
|
|
6637
|
-
unit: o
|
|
6638
|
-
} : {
|
|
6639
|
-
value: t,
|
|
6640
|
-
unit: e
|
|
6641
|
-
};
|
|
6642
|
-
}, [u, d] = h(() => ({
|
|
6643
|
-
displayLayer: l(t),
|
|
6644
|
-
externalState: c
|
|
6645
|
-
})), p = u.externalState.error !== e || u.externalState.initDisplayUnit !== t || u.externalState.value !== i, m = u.externalState.initDisplayUnit === t ? u.displayLayer.unit : t;
|
|
6646
|
-
return [p ? l(m) : u.displayLayer, s((e) => {
|
|
6647
|
-
d({
|
|
6648
|
-
displayLayer: e,
|
|
6649
|
-
externalState: c
|
|
6650
|
-
});
|
|
6651
|
-
}, [c])];
|
|
6652
|
-
}, Md = (e, t) => {
|
|
6653
|
-
let n = t == null ? void 0 : t[e];
|
|
6654
|
-
if (!n) {
|
|
6655
|
-
var r;
|
|
6656
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = ur(e)) == null ? "" : r;
|
|
6657
|
-
}
|
|
6658
|
-
return n;
|
|
6659
|
-
}, Nd = /* @__PURE__ */ function(e) {
|
|
6660
|
-
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6661
|
-
}({}), Pd = (e) => fn(e) && !an(e) && !ln(e) ? rn(e, "fieldName", "") : typeof e == "string" ? e : "", Fd = (e = "") => Hn == null ? void 0 : Hn.includes(e), Id = (e, t) => {
|
|
6632
|
+
}, Pd = (e) => fn(e) && !an(e) && !ln(e) ? rn(e, "fieldName", "") : typeof e == "string" ? e : "", Fd = (e = "") => Hn == null ? void 0 : Hn.includes(e), Id = (e, t) => {
|
|
6662
6633
|
let n = Jn(e || "");
|
|
6663
6634
|
return Fd(t) && Fd(n);
|
|
6664
6635
|
}, Ld = n(null), Rd = () => c(Ld), zd = !1, Bd = (e) => {
|
|
@@ -6669,32 +6640,38 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6669
6640
|
}, Ud = ({ 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 = gn, onClick: g = gn, onFocus: x = gn, onSwitchUnit: S = gn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
6670
6641
|
name: "",
|
|
6671
6642
|
error: null
|
|
6672
|
-
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus:
|
|
6673
|
-
let
|
|
6643
|
+
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: R = null }) => {
|
|
6644
|
+
let z = Rd(), te = Td();
|
|
6674
6645
|
typeof c == "number" && (c = `${c}`);
|
|
6675
|
-
let [,
|
|
6646
|
+
let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Dd(u, C || (z == null ? void 0 : z.unitTemplate)), [
|
|
6676
6647
|
u,
|
|
6677
6648
|
C,
|
|
6678
|
-
|
|
6679
|
-
]),
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
noConversion: p,
|
|
6649
|
+
z == null ? void 0 : z.unitTemplate
|
|
6650
|
+
]), ie = Id(c, B), ae = d || B || re, oe = Ed(ae), { value: se } = Nd({
|
|
6651
|
+
value: c,
|
|
6652
|
+
toUnit: ae,
|
|
6683
6653
|
unitkey: u,
|
|
6684
|
-
|
|
6685
|
-
|
|
6654
|
+
defaultFromUnit: re,
|
|
6655
|
+
doNotConvertValue: p
|
|
6656
|
+
}), [ce, le] = h(se === "" ? {
|
|
6657
|
+
value: ne,
|
|
6658
|
+
unit: re
|
|
6659
|
+
} : {
|
|
6660
|
+
value: se,
|
|
6661
|
+
unit: ae
|
|
6662
|
+
}), ue = M || (ce == null ? void 0 : ce.value) === void 0, [de, fe] = h(D ? Od.PREDEFINED : Od.CUSTOM), pe = !!(j || n), me = E && E.find((e) => {
|
|
6686
6663
|
if (!(e != null && e.value)) return;
|
|
6687
6664
|
if (k) return k === e.valueKey;
|
|
6688
|
-
let t = er(e.value) ? Jn(e.value) : "", { value: n = c } =
|
|
6665
|
+
let t = er(e.value) ? Jn(e.value) : "", { value: n = c } = Md({
|
|
6689
6666
|
value: String(c),
|
|
6690
6667
|
unitkey: u,
|
|
6691
6668
|
toUnit: t
|
|
6692
6669
|
});
|
|
6693
6670
|
return pr(n, t) === e.value;
|
|
6694
|
-
}),
|
|
6671
|
+
}), he = () => {
|
|
6695
6672
|
var e;
|
|
6696
|
-
let t = (e = c) == null ? "" : e, n =
|
|
6697
|
-
if (!
|
|
6673
|
+
let t = (e = c) == null ? "" : e, n = ce.unit;
|
|
6674
|
+
if (!jd({
|
|
6698
6675
|
value: t,
|
|
6699
6676
|
unitkey: u,
|
|
6700
6677
|
toUnit: n
|
|
@@ -6707,54 +6684,79 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6707
6684
|
} catch {
|
|
6708
6685
|
return null;
|
|
6709
6686
|
}
|
|
6710
|
-
},
|
|
6711
|
-
let n = Pd(e), r = t.target, { value: i, selectionStart: a } = r, o = pr(i, (
|
|
6687
|
+
}, ge = (t) => {
|
|
6688
|
+
let n = Pd(e), r = t.target, { value: i, selectionStart: a } = r, o = pr(i, (ce == null ? void 0 : ce.unit) || "");
|
|
6712
6689
|
m({ target: {
|
|
6713
|
-
value: N ? pr(Gn(o,
|
|
6690
|
+
value: N ? pr(Gn(o, re), re) : o,
|
|
6714
6691
|
name: n
|
|
6715
6692
|
} });
|
|
6716
6693
|
let [s, c] = or(o);
|
|
6717
|
-
|
|
6694
|
+
le({
|
|
6718
6695
|
value: s,
|
|
6719
6696
|
unit: c
|
|
6720
6697
|
}), te(() => {
|
|
6721
6698
|
r.selectionStart = a, r.selectionEnd = a;
|
|
6722
6699
|
});
|
|
6723
|
-
},
|
|
6724
|
-
t ===
|
|
6700
|
+
}, _e = (e, t) => {
|
|
6701
|
+
t === ce.unit || isNaN(Number(e)) || (le({
|
|
6725
6702
|
value: e,
|
|
6726
6703
|
unit: t
|
|
6727
6704
|
}), S && S(t));
|
|
6728
6705
|
};
|
|
6729
6706
|
l(() => {
|
|
6730
|
-
|
|
6707
|
+
if (ae) {
|
|
6708
|
+
let e, t = "";
|
|
6709
|
+
if (oe !== ae) {
|
|
6710
|
+
let { value: n } = Nd({
|
|
6711
|
+
value: c,
|
|
6712
|
+
toUnit: ae,
|
|
6713
|
+
unitkey: u,
|
|
6714
|
+
defaultFromUnit: re,
|
|
6715
|
+
doNotConvertValue: p
|
|
6716
|
+
});
|
|
6717
|
+
e = n, t = ae;
|
|
6718
|
+
} else if (pr(ce.value, ce.unit) !== c) {
|
|
6719
|
+
let { value: n } = Nd({
|
|
6720
|
+
value: c,
|
|
6721
|
+
toUnit: ce.unit,
|
|
6722
|
+
unitkey: u,
|
|
6723
|
+
defaultFromUnit: re,
|
|
6724
|
+
doNotConvertValue: p
|
|
6725
|
+
});
|
|
6726
|
+
e = n, t = ce.unit;
|
|
6727
|
+
}
|
|
6728
|
+
e !== void 0 && le({
|
|
6729
|
+
value: e,
|
|
6730
|
+
unit: t
|
|
6731
|
+
}), fe(E && me && O ? Od.PREDEFINED : Od.CUSTOM);
|
|
6732
|
+
}
|
|
6731
6733
|
}, [
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6734
|
+
ae,
|
|
6735
|
+
c,
|
|
6736
|
+
i,
|
|
6735
6737
|
O
|
|
6736
6738
|
]);
|
|
6737
|
-
let
|
|
6739
|
+
let ve = he(), ye = tr(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Pd(e), Se, Ce = (t) => {
|
|
6738
6740
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = er(r) ? or(r) : [r], o = fr(r);
|
|
6739
|
-
if (
|
|
6741
|
+
if (jd({
|
|
6740
6742
|
value: r,
|
|
6741
6743
|
unitkey: u,
|
|
6742
6744
|
toUnit: a
|
|
6743
6745
|
})) {
|
|
6744
|
-
let { value: e = "" } =
|
|
6746
|
+
let { value: e = "" } = Nd({
|
|
6745
6747
|
value: r,
|
|
6746
|
-
toUnit:
|
|
6748
|
+
toUnit: B,
|
|
6747
6749
|
unitkey: u,
|
|
6748
6750
|
defaultFromUnit: a,
|
|
6749
6751
|
doNotConvertValue: p
|
|
6750
6752
|
});
|
|
6751
|
-
o = fr(pr(e,
|
|
6753
|
+
o = fr(pr(e, B));
|
|
6752
6754
|
}
|
|
6753
6755
|
return {
|
|
6754
6756
|
type: aa.OPTION,
|
|
6755
6757
|
inline: !0,
|
|
6756
6758
|
onClick: () => {
|
|
6757
|
-
dr(i).valid && !n && (
|
|
6759
|
+
dr(i).valid && !n && (fe(Od.PREDEFINED), m({ target: {
|
|
6758
6760
|
value: r,
|
|
6759
6761
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
6760
6762
|
predefinedSelected: !0,
|
|
@@ -6766,29 +6768,29 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6766
6768
|
height: "0"
|
|
6767
6769
|
})] }),
|
|
6768
6770
|
description: o,
|
|
6769
|
-
selected:
|
|
6771
|
+
selected: me === t && de === Od.PREDEFINED
|
|
6770
6772
|
};
|
|
6771
6773
|
};
|
|
6772
|
-
if (
|
|
6774
|
+
if (Se = [{
|
|
6773
6775
|
type: aa.OPTION,
|
|
6774
6776
|
inline: !0,
|
|
6775
6777
|
onClick: () => {
|
|
6776
|
-
|
|
6777
|
-
value: pr(
|
|
6778
|
+
de !== Od.CUSTOM && !n && m({ target: {
|
|
6779
|
+
value: pr(ce.value, ce.unit),
|
|
6778
6780
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
6779
6781
|
} });
|
|
6780
6782
|
},
|
|
6781
6783
|
label: "Custom",
|
|
6782
|
-
selected:
|
|
6784
|
+
selected: de === Od.CUSTOM
|
|
6783
6785
|
}], E != null && E.length) {
|
|
6784
|
-
let e = E.map(
|
|
6785
|
-
|
|
6786
|
+
let e = E.map(Ce);
|
|
6787
|
+
Se = [...Se, ...e];
|
|
6786
6788
|
}
|
|
6787
|
-
let
|
|
6789
|
+
let we = (e) => {
|
|
6788
6790
|
if (er(e)) {
|
|
6789
|
-
let t = Jn(e), { value: n } =
|
|
6791
|
+
let t = Jn(e), { value: n } = Nd({
|
|
6790
6792
|
value: e,
|
|
6791
|
-
toUnit:
|
|
6793
|
+
toUnit: ce.unit,
|
|
6792
6794
|
unitkey: u,
|
|
6793
6795
|
defaultFromUnit: t,
|
|
6794
6796
|
doNotConvertValue: p
|
|
@@ -6796,9 +6798,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6796
6798
|
return n;
|
|
6797
6799
|
}
|
|
6798
6800
|
return e;
|
|
6799
|
-
},
|
|
6801
|
+
}, Te = !E && (!L || L === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !L || L === V.LAST ? V.LAST : V.MIDDLE;
|
|
6800
6802
|
return /* @__PURE__ */ y("div", {
|
|
6801
|
-
className:
|
|
6803
|
+
className: de === Od.PREDEFINED ? _(Hd.predefinedMenuActive) : "",
|
|
6802
6804
|
children: /* @__PURE__ */ b(Io, {
|
|
6803
6805
|
small: o,
|
|
6804
6806
|
width: s,
|
|
@@ -6813,65 +6815,66 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6813
6815
|
trigger: "Component",
|
|
6814
6816
|
component: /* @__PURE__ */ y(K, {
|
|
6815
6817
|
groupOrder: "first",
|
|
6816
|
-
active:
|
|
6817
|
-
icon:
|
|
6818
|
+
active: de === Od.PREDEFINED,
|
|
6819
|
+
icon: de === Od.PREDEFINED ? "link" : "unlink",
|
|
6818
6820
|
small: o
|
|
6819
6821
|
}),
|
|
6820
6822
|
small: o,
|
|
6821
|
-
sections:
|
|
6823
|
+
sections: Se
|
|
6822
6824
|
},
|
|
6823
|
-
tooltip:
|
|
6825
|
+
tooltip: de === Od.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
6824
6826
|
}),
|
|
6825
6827
|
/* @__PURE__ */ y("div", {
|
|
6826
6828
|
className: Hd.inputWrapper,
|
|
6827
6829
|
children: /* @__PURE__ */ y(Uc, {
|
|
6828
|
-
name:
|
|
6830
|
+
name: xe,
|
|
6829
6831
|
testId: w,
|
|
6830
6832
|
disabled: n,
|
|
6831
|
-
placeholder:
|
|
6832
|
-
value:
|
|
6833
|
-
onChange:
|
|
6833
|
+
placeholder: we(t),
|
|
6834
|
+
value: ce.value,
|
|
6835
|
+
onChange: ge,
|
|
6834
6836
|
onFocus: x,
|
|
6835
6837
|
error: i === null ? void 0 : i,
|
|
6836
6838
|
warning: T === null ? void 0 : T,
|
|
6837
6839
|
left: a,
|
|
6838
|
-
allowEmpty:
|
|
6839
|
-
validationCallback: (e, t) => A(
|
|
6840
|
+
allowEmpty: ue,
|
|
6841
|
+
validationCallback: (e, t) => A(xe, t),
|
|
6840
6842
|
enableCosmeticRounding: P,
|
|
6841
6843
|
enableDisplayRounding: F,
|
|
6842
6844
|
roundDisplayValue: I,
|
|
6843
|
-
groupOrder:
|
|
6844
|
-
disableInternalErrorValidationMessages:
|
|
6845
|
+
groupOrder: Te,
|
|
6846
|
+
disableInternalErrorValidationMessages: pe,
|
|
6847
|
+
useControlledValueWhenBlurred: !0,
|
|
6845
6848
|
small: o,
|
|
6846
|
-
selectOnFocus:
|
|
6847
|
-
tooltip:
|
|
6848
|
-
},
|
|
6849
|
+
selectOnFocus: ee,
|
|
6850
|
+
tooltip: R
|
|
6851
|
+
}, xe)
|
|
6849
6852
|
}),
|
|
6850
|
-
|
|
6851
|
-
groupOrder:
|
|
6853
|
+
ye && (be || !ie ? /* @__PURE__ */ y(Ac, {
|
|
6854
|
+
groupOrder: Ee,
|
|
6852
6855
|
small: o,
|
|
6853
|
-
children:
|
|
6856
|
+
children: ye
|
|
6854
6857
|
}) : /* @__PURE__ */ y(Aa, {
|
|
6855
|
-
groupOrder:
|
|
6858
|
+
groupOrder: Ee,
|
|
6856
6859
|
maxHeight: 380,
|
|
6857
6860
|
disabled: r,
|
|
6858
6861
|
testId: w && `${w}-menu`,
|
|
6859
6862
|
tabIndex: -1,
|
|
6860
6863
|
menu: {
|
|
6861
|
-
label:
|
|
6864
|
+
label: ye,
|
|
6862
6865
|
trigger: "DropDownButton",
|
|
6863
6866
|
small: o,
|
|
6864
|
-
sections:
|
|
6867
|
+
sections: ve.map(([e = "", t = "", n]) => {
|
|
6865
6868
|
let r = n || t || "", i = $n(e) ? e : "";
|
|
6866
6869
|
return {
|
|
6867
6870
|
type: "Option",
|
|
6868
6871
|
label: P ? Vd(i) : i,
|
|
6869
6872
|
inline: !0,
|
|
6870
6873
|
onClick: (n) => {
|
|
6871
|
-
n.stopPropagation(),
|
|
6874
|
+
n.stopPropagation(), _e(e, t);
|
|
6872
6875
|
},
|
|
6873
6876
|
description: r,
|
|
6874
|
-
selected: r ===
|
|
6877
|
+
selected: r === ye,
|
|
6875
6878
|
testId: `${w}-unit-${r}`
|
|
6876
6879
|
};
|
|
6877
6880
|
})
|
|
@@ -6898,11 +6901,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6898
6901
|
!u || d || (D(T), k(!0));
|
|
6899
6902
|
}, I = () => {
|
|
6900
6903
|
D(T), k(!1);
|
|
6901
|
-
},
|
|
6904
|
+
}, ee = () => {
|
|
6902
6905
|
P || N === null || (o(Wd(e, N)), s == null || s(Wd(e, N)), k(!1));
|
|
6903
|
-
},
|
|
6904
|
-
e.key === "Enter" &&
|
|
6905
|
-
},
|
|
6906
|
+
}, L = (e) => {
|
|
6907
|
+
e.key === "Enter" && ee(), e.key === "Escape" && I();
|
|
6908
|
+
}, R = d || O, z = /* @__PURE__ */ b("div", {
|
|
6906
6909
|
className: wd.actions,
|
|
6907
6910
|
children: [/* @__PURE__ */ y(K, {
|
|
6908
6911
|
icon: "close",
|
|
@@ -6913,7 +6916,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6913
6916
|
icon: "checkmark",
|
|
6914
6917
|
small: !0,
|
|
6915
6918
|
disabled: !!P,
|
|
6916
|
-
onClick:
|
|
6919
|
+
onClick: ee,
|
|
6917
6920
|
testId: g && `${g}-confirm`
|
|
6918
6921
|
})]
|
|
6919
6922
|
});
|
|
@@ -6931,7 +6934,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6931
6934
|
f && /* @__PURE__ */ y("div", {
|
|
6932
6935
|
className: _(wd.input, x && wd.inputSmall, u && !d && wd.editable),
|
|
6933
6936
|
children: /* @__PURE__ */ y(Ua, {
|
|
6934
|
-
content:
|
|
6937
|
+
content: z,
|
|
6935
6938
|
isOpen: O,
|
|
6936
6939
|
onToggle: (e) => {
|
|
6937
6940
|
e || I();
|
|
@@ -6944,7 +6947,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6944
6947
|
className: wd.inputControl,
|
|
6945
6948
|
"data-testid": g && `${g}-edit-trigger`,
|
|
6946
6949
|
onClick: F,
|
|
6947
|
-
onKeyDown:
|
|
6950
|
+
onKeyDown: L,
|
|
6948
6951
|
children: /* @__PURE__ */ y(Ud, {
|
|
6949
6952
|
name: e,
|
|
6950
6953
|
value: O ? E : T,
|
|
@@ -6970,9 +6973,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6970
6973
|
onChange: o,
|
|
6971
6974
|
onChangeComplete: s,
|
|
6972
6975
|
showArrows: p,
|
|
6973
|
-
showTooltip: !
|
|
6976
|
+
showTooltip: !R,
|
|
6974
6977
|
tooltipFormatter: () => fr(T),
|
|
6975
|
-
disabled:
|
|
6978
|
+
disabled: R,
|
|
6976
6979
|
small: x,
|
|
6977
6980
|
marks: S,
|
|
6978
6981
|
testId: g && `${g}-slider`
|
|
@@ -7710,15 +7713,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7710
7713
|
})]
|
|
7711
7714
|
})
|
|
7712
7715
|
});
|
|
7713
|
-
}, Df = (
|
|
7714
|
-
let t = m(void 0);
|
|
7715
|
-
return l(() => {
|
|
7716
|
-
t.current = e;
|
|
7717
|
-
}, [e]), t.current;
|
|
7718
|
-
}, Of = Object.freeze({
|
|
7716
|
+
}, Df = Object.freeze({
|
|
7719
7717
|
Translations: "translations",
|
|
7720
7718
|
LanguageKey: "languageKey"
|
|
7721
|
-
}),
|
|
7719
|
+
}), Of = {
|
|
7722
7720
|
unified: "Unified",
|
|
7723
7721
|
split: "Split",
|
|
7724
7722
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7740,29 +7738,29 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7740
7738
|
pluralChanges: "changes",
|
|
7741
7739
|
showAll: "Show all",
|
|
7742
7740
|
unknown: "Unknown"
|
|
7743
|
-
},
|
|
7741
|
+
}, kf = (e) => Object.keys(Of).reduce((t, n) => ({
|
|
7744
7742
|
...t,
|
|
7745
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7746
|
-
}), {}),
|
|
7747
|
-
[
|
|
7748
|
-
[
|
|
7749
|
-
},
|
|
7750
|
-
|
|
7751
|
-
},
|
|
7743
|
+
[n]: (e == null ? void 0 : e[n]) || (Of == null ? void 0 : Of[n])
|
|
7744
|
+
}), {}), Af = {
|
|
7745
|
+
[Df.Translations]: kf(),
|
|
7746
|
+
[Df.LanguageKey]: "en"
|
|
7747
|
+
}, jf = (e) => e ? Af[e] : Af, Mf = (e, t) => {
|
|
7748
|
+
Af[e] = t;
|
|
7749
|
+
}, Nf = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
7752
7750
|
var a;
|
|
7753
7751
|
let { unitTemplate: o = null } = (a = Rd()) == null ? {} : a;
|
|
7754
|
-
return e[n] = r == null ?
|
|
7752
|
+
return e[n] = r == null ? Dd(n, o) : r, t[n] = i, {
|
|
7755
7753
|
preferredUnits: e,
|
|
7756
7754
|
storageUnits: t
|
|
7757
7755
|
};
|
|
7758
7756
|
}, {
|
|
7759
7757
|
preferredUnits: {},
|
|
7760
7758
|
storageUnits: {}
|
|
7761
|
-
}),
|
|
7759
|
+
}), Pf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7762
7760
|
...e,
|
|
7763
7761
|
cells: e.cells.map((e, s) => {
|
|
7764
7762
|
if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
|
|
7765
|
-
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 } =
|
|
7763
|
+
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 } = Md({
|
|
7766
7764
|
value: lr(l),
|
|
7767
7765
|
unitkey: c,
|
|
7768
7766
|
toUnit: f,
|
|
@@ -7776,7 +7774,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7776
7774
|
roundDisplayValue: d,
|
|
7777
7775
|
selectOnFocus: !0,
|
|
7778
7776
|
onChange: (n) => {
|
|
7779
|
-
let { value: r } = n.target, a = i ? p : f, { value: o = r } =
|
|
7777
|
+
let { value: r } = n.target, a = i ? p : f, { value: o = r } = Md({
|
|
7780
7778
|
value: String(r),
|
|
7781
7779
|
unitkey: c,
|
|
7782
7780
|
toUnit: a,
|
|
@@ -7800,8 +7798,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7800
7798
|
}
|
|
7801
7799
|
return e;
|
|
7802
7800
|
})
|
|
7803
|
-
}),
|
|
7804
|
-
let { translations: i } =
|
|
7801
|
+
}), Ff = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7802
|
+
let { translations: i } = jf();
|
|
7805
7803
|
return e ? e.map((e) => ({
|
|
7806
7804
|
...e,
|
|
7807
7805
|
cells: e.cells.map((e) => {
|
|
@@ -7830,8 +7828,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7830
7828
|
return e;
|
|
7831
7829
|
})
|
|
7832
7830
|
})) : [];
|
|
7833
|
-
},
|
|
7834
|
-
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } =
|
|
7831
|
+
}, If = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
|
|
7832
|
+
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nf(t), m = Ed(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
|
|
7835
7833
|
_({
|
|
7836
7834
|
...g,
|
|
7837
7835
|
[e]: n
|
|
@@ -7842,7 +7840,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7842
7840
|
newUnit: n,
|
|
7843
7841
|
unitKey: e
|
|
7844
7842
|
});
|
|
7845
|
-
}, b = s(({ row: e, rowIndex: t }) =>
|
|
7843
|
+
}, b = s(({ row: e, rowIndex: t }) => Pf({
|
|
7846
7844
|
row: c ? c({
|
|
7847
7845
|
row: e,
|
|
7848
7846
|
rowIndex: t
|
|
@@ -7871,7 +7869,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7871
7869
|
}, [t]), /* @__PURE__ */ y(yl, {
|
|
7872
7870
|
table: {
|
|
7873
7871
|
...d,
|
|
7874
|
-
headers:
|
|
7872
|
+
headers: Ff({
|
|
7875
7873
|
headers: e.headers,
|
|
7876
7874
|
selectedUnits: g,
|
|
7877
7875
|
storageUnits: f,
|
|
@@ -7882,8 +7880,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7882
7880
|
canListReorder: o,
|
|
7883
7881
|
beforeRenderRow: b
|
|
7884
7882
|
});
|
|
7885
|
-
},
|
|
7886
|
-
let { translations: d } =
|
|
7883
|
+
}, Lf = { settingField: "_settingField_1x02n_1" }, Rf = ({ 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 }) => {
|
|
7884
|
+
let { translations: d } = jf(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ b(e.Fragment, { children: [t, /* @__PURE__ */ y("br", {})] }, n)), p = [
|
|
7887
7885
|
...r ? [] : [{
|
|
7888
7886
|
label: d == null ? void 0 : d.allUsers,
|
|
7889
7887
|
value: !1
|
|
@@ -7898,7 +7896,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7898
7896
|
}] : []
|
|
7899
7897
|
], m = a !== void 0 && o !== void 0 && !cn(a, o);
|
|
7900
7898
|
return /* @__PURE__ */ b("div", {
|
|
7901
|
-
className:
|
|
7899
|
+
className: Lf.settingField,
|
|
7902
7900
|
"data-testid": u,
|
|
7903
7901
|
children: [/* @__PURE__ */ b(Nu, {
|
|
7904
7902
|
justifyContent: "space-between",
|
|
@@ -7930,19 +7928,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7930
7928
|
children: f(t)
|
|
7931
7929
|
})]
|
|
7932
7930
|
});
|
|
7933
|
-
},
|
|
7931
|
+
}, zf = (e, t) => {
|
|
7934
7932
|
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;
|
|
7935
7933
|
return {
|
|
7936
7934
|
added: Math.max(0, i),
|
|
7937
7935
|
removed: Math.max(0, a)
|
|
7938
7936
|
};
|
|
7939
|
-
},
|
|
7937
|
+
}, Bf = "split", Vf = "unified", Hf = ({ oldJson: e, newJson: t, viewType: n = Bf }) => {
|
|
7940
7938
|
var r, i;
|
|
7941
|
-
let { translations: a } =
|
|
7942
|
-
value:
|
|
7939
|
+
let { translations: a } = jf(), [o, s] = h(n), c = [{
|
|
7940
|
+
value: Bf,
|
|
7943
7941
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7944
7942
|
}, {
|
|
7945
|
-
value:
|
|
7943
|
+
value: Vf,
|
|
7946
7944
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7947
7945
|
}];
|
|
7948
7946
|
l(() => {
|
|
@@ -7950,7 +7948,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7950
7948
|
}, [n]);
|
|
7951
7949
|
let u = ({ target: { value: e } }) => {
|
|
7952
7950
|
s(e);
|
|
7953
|
-
}, { added: d, removed: f } =
|
|
7951
|
+
}, { added: d, removed: f } = zf(e, t), p = d + f > 3500;
|
|
7954
7952
|
return /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(Ba, {
|
|
7955
7953
|
bordered: !0,
|
|
7956
7954
|
heading: /* @__PURE__ */ b(Nu, {
|
|
@@ -7983,14 +7981,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7983
7981
|
}) : /* @__PURE__ */ y(ei, {
|
|
7984
7982
|
oldValue: e,
|
|
7985
7983
|
newValue: t,
|
|
7986
|
-
splitView: o ===
|
|
7984
|
+
splitView: o === Bf,
|
|
7987
7985
|
compareMethod: ti.WORDS
|
|
7988
7986
|
})
|
|
7989
7987
|
}) });
|
|
7990
7988
|
};
|
|
7991
7989
|
//#endregion
|
|
7992
7990
|
//#region src/helpers/date.ts
|
|
7993
|
-
function
|
|
7991
|
+
function Uf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7994
7992
|
return e ? new Date(e).toLocaleString(a, {
|
|
7995
7993
|
year: "numeric",
|
|
7996
7994
|
month: "short",
|
|
@@ -8004,28 +8002,28 @@ function Wf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8004
8002
|
}
|
|
8005
8003
|
//#endregion
|
|
8006
8004
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8007
|
-
function
|
|
8005
|
+
function Wf(e) {
|
|
8008
8006
|
var t;
|
|
8009
8007
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8010
8008
|
if (!n) throw Error("Invalid RegExp");
|
|
8011
8009
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8012
8010
|
}
|
|
8013
|
-
function
|
|
8011
|
+
function Gf(e) {
|
|
8014
8012
|
if (typeof e != "object") return e;
|
|
8015
8013
|
if (e === null) return null;
|
|
8016
|
-
if (Array.isArray(e)) return e.map(
|
|
8014
|
+
if (Array.isArray(e)) return e.map(Gf);
|
|
8017
8015
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8018
|
-
if (e instanceof RegExp) return
|
|
8016
|
+
if (e instanceof RegExp) return Wf(e);
|
|
8019
8017
|
let t = {};
|
|
8020
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8018
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Gf(e[n]));
|
|
8021
8019
|
return t;
|
|
8022
8020
|
}
|
|
8023
8021
|
//#endregion
|
|
8024
8022
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8025
|
-
function
|
|
8023
|
+
function Kf(e, t) {
|
|
8026
8024
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8027
8025
|
}
|
|
8028
|
-
var
|
|
8026
|
+
var qf = (e) => e[e.length - 1], Jf = class {
|
|
8029
8027
|
setResult(e) {
|
|
8030
8028
|
return this.result = e, this.hasResult = !0, this;
|
|
8031
8029
|
}
|
|
@@ -8033,16 +8031,16 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8033
8031
|
return this.exiting = !0, this;
|
|
8034
8032
|
}
|
|
8035
8033
|
push(e, t) {
|
|
8036
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8034
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Kf(this.children), qf(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8037
8035
|
}
|
|
8038
|
-
},
|
|
8036
|
+
}, Yf = class extends Jf {
|
|
8039
8037
|
constructor(e, t) {
|
|
8040
8038
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8041
8039
|
}
|
|
8042
8040
|
prepareDeltaResult(e) {
|
|
8043
8041
|
var t, n, r, i;
|
|
8044
8042
|
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)) {
|
|
8045
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8043
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Gf;
|
|
8046
8044
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8047
8045
|
}
|
|
8048
8046
|
return e;
|
|
@@ -8050,15 +8048,15 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8050
8048
|
setResult(e) {
|
|
8051
8049
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8052
8050
|
}
|
|
8053
|
-
},
|
|
8051
|
+
}, Xf = class extends Jf {
|
|
8054
8052
|
constructor(e, t) {
|
|
8055
8053
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8056
8054
|
}
|
|
8057
|
-
},
|
|
8055
|
+
}, Zf = class extends Jf {
|
|
8058
8056
|
constructor(e) {
|
|
8059
8057
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8060
8058
|
}
|
|
8061
|
-
},
|
|
8059
|
+
}, Qf = class {
|
|
8062
8060
|
constructor(e) {
|
|
8063
8061
|
this.name = e, this.filters = [];
|
|
8064
8062
|
}
|
|
@@ -8122,7 +8120,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8122
8120
|
}
|
|
8123
8121
|
}), this);
|
|
8124
8122
|
}
|
|
8125
|
-
},
|
|
8123
|
+
}, $f = class {
|
|
8126
8124
|
constructor(e) {
|
|
8127
8125
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8128
8126
|
}
|
|
@@ -8149,7 +8147,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8149
8147
|
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);
|
|
8150
8148
|
return n.hasResult ? n.result : void 0;
|
|
8151
8149
|
}
|
|
8152
|
-
},
|
|
8150
|
+
}, ep = (e, t, n, r) => e[n] === t[r], tp = (e, t, n, r) => {
|
|
8153
8151
|
var i, a, o;
|
|
8154
8152
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8155
8153
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8165,7 +8163,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8165
8163
|
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);
|
|
8166
8164
|
}
|
|
8167
8165
|
return d;
|
|
8168
|
-
},
|
|
8166
|
+
}, np = (e, t, n, r) => {
|
|
8169
8167
|
let i = t.length, a = n.length, o = {
|
|
8170
8168
|
sequence: [],
|
|
8171
8169
|
indices1: [],
|
|
@@ -8187,11 +8185,11 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8187
8185
|
}
|
|
8188
8186
|
}
|
|
8189
8187
|
return o;
|
|
8190
|
-
},
|
|
8188
|
+
}, rp = { get: (e, t, n, r) => {
|
|
8191
8189
|
let i = r || {};
|
|
8192
|
-
return
|
|
8193
|
-
} },
|
|
8194
|
-
function
|
|
8190
|
+
return np(tp(e, t, n || ep, i), e, t, i);
|
|
8191
|
+
} }, ip = 3;
|
|
8192
|
+
function ap(e, t, n, r) {
|
|
8195
8193
|
for (let i = 0; i < n; i++) {
|
|
8196
8194
|
let n = e[i];
|
|
8197
8195
|
for (let e = 0; e < r; e++) {
|
|
@@ -8201,7 +8199,7 @@ function op(e, t, n, r) {
|
|
|
8201
8199
|
}
|
|
8202
8200
|
return !1;
|
|
8203
8201
|
}
|
|
8204
|
-
function
|
|
8202
|
+
function op(e, t, n, r, i) {
|
|
8205
8203
|
let a = e[n], o = t[r];
|
|
8206
8204
|
if (a === o) return !0;
|
|
8207
8205
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8214,15 +8212,15 @@ function sp(e, t, n, r, i) {
|
|
|
8214
8212
|
let l = i.hashCache2[r];
|
|
8215
8213
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
8216
8214
|
}
|
|
8217
|
-
var
|
|
8215
|
+
var sp = function(e) {
|
|
8218
8216
|
var t, n, r, i, a;
|
|
8219
8217
|
if (!e.leftIsArray) return;
|
|
8220
8218
|
let o = {
|
|
8221
8219
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8222
8220
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8223
8221
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8224
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8225
|
-
for (; c + s < m && c + s < h &&
|
|
8222
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !ap(f, p, m, h)); s < m && s < h && op(f, p, s, s, o);) l = s, g = new Yf(f[l], p[l]), e.push(g, l), s++;
|
|
8223
|
+
for (; c + s < m && c + s < h && op(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Yf(f[u], p[d]), e.push(g, d), c++;
|
|
8226
8224
|
let _;
|
|
8227
8225
|
if (s + c === m) {
|
|
8228
8226
|
if (m === h) {
|
|
@@ -8246,7 +8244,7 @@ var cp = function(e) {
|
|
|
8246
8244
|
return;
|
|
8247
8245
|
}
|
|
8248
8246
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8249
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8247
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = rp.get(v, y, op, o), x = [];
|
|
8250
8248
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8251
8249
|
let t = `_${l}`;
|
|
8252
8250
|
_[t] = [
|
|
@@ -8267,8 +8265,8 @@ var cp = function(e) {
|
|
|
8267
8265
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8268
8266
|
u = x[n];
|
|
8269
8267
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8270
|
-
if (u !== void 0 && r &&
|
|
8271
|
-
r.splice(1, 2, l,
|
|
8268
|
+
if (u !== void 0 && r && op(v, y, u - s, l - s, o)) {
|
|
8269
|
+
r.splice(1, 2, l, ip), r.splice(1, 2, l, ip), C || (r[0] = ""), d = l, g = new Yf(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8272
8270
|
break;
|
|
8273
8271
|
}
|
|
8274
8272
|
}
|
|
@@ -8276,20 +8274,20 @@ var cp = function(e) {
|
|
|
8276
8274
|
} else {
|
|
8277
8275
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8278
8276
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8279
|
-
d = b.indices2[t] + s, g = new
|
|
8277
|
+
d = b.indices2[t] + s, g = new Yf(f[u], p[d]), e.push(g, d);
|
|
8280
8278
|
}
|
|
8281
8279
|
}
|
|
8282
8280
|
e.setResult(_).exit();
|
|
8283
8281
|
};
|
|
8284
|
-
|
|
8285
|
-
var
|
|
8282
|
+
sp.filterName = "arrays";
|
|
8283
|
+
var cp = {
|
|
8286
8284
|
numerically(e, t) {
|
|
8287
8285
|
return e - t;
|
|
8288
8286
|
},
|
|
8289
8287
|
numericallyBy(e) {
|
|
8290
8288
|
return (t, n) => t[e] - n[e];
|
|
8291
8289
|
}
|
|
8292
|
-
},
|
|
8290
|
+
}, lp = function(e) {
|
|
8293
8291
|
var t;
|
|
8294
8292
|
if (!e.nested) return;
|
|
8295
8293
|
let n = e.delta;
|
|
@@ -8297,7 +8295,7 @@ var lp = {
|
|
|
8297
8295
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
8298
8296
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
8299
8297
|
let e = r;
|
|
8300
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8298
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === ip)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8301
8299
|
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]}`);
|
|
8302
8300
|
} else {
|
|
8303
8301
|
let e = r;
|
|
@@ -8309,15 +8307,15 @@ var lp = {
|
|
|
8309
8307
|
delta: a[e]
|
|
8310
8308
|
});
|
|
8311
8309
|
}
|
|
8312
|
-
for (s = s.sort(
|
|
8310
|
+
for (s = s.sort(cp.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8313
8311
|
if (i = s[r], i === void 0) continue;
|
|
8314
8312
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8315
|
-
(e == null ? void 0 : e[2]) ===
|
|
8313
|
+
(e == null ? void 0 : e[2]) === ip && c.push({
|
|
8316
8314
|
index: e[1],
|
|
8317
8315
|
value: t
|
|
8318
8316
|
});
|
|
8319
8317
|
}
|
|
8320
|
-
c = c.sort(
|
|
8318
|
+
c = c.sort(cp.numericallyBy("index"));
|
|
8321
8319
|
let u = c.length;
|
|
8322
8320
|
for (r = 0; r < u; r++) {
|
|
8323
8321
|
let e = c[r];
|
|
@@ -8327,7 +8325,7 @@ var lp = {
|
|
|
8327
8325
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8328
8326
|
let t = l[r];
|
|
8329
8327
|
if (t === void 0) continue;
|
|
8330
|
-
let n = new
|
|
8328
|
+
let n = new Xf(o[t.index], t.delta);
|
|
8331
8329
|
e.push(n, t.index);
|
|
8332
8330
|
}
|
|
8333
8331
|
if (!e.children) {
|
|
@@ -8336,8 +8334,8 @@ var lp = {
|
|
|
8336
8334
|
}
|
|
8337
8335
|
e.exit();
|
|
8338
8336
|
};
|
|
8339
|
-
|
|
8340
|
-
var
|
|
8337
|
+
lp.filterName = "arrays";
|
|
8338
|
+
var up = function(e) {
|
|
8341
8339
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8342
8340
|
let t = e.left, n = e.children.length;
|
|
8343
8341
|
for (let r = 0; r < n; r++) {
|
|
@@ -8348,16 +8346,16 @@ var dp = function(e) {
|
|
|
8348
8346
|
}
|
|
8349
8347
|
e.setResult(t).exit();
|
|
8350
8348
|
};
|
|
8351
|
-
|
|
8352
|
-
var
|
|
8349
|
+
up.filterName = "arraysCollectChildren";
|
|
8350
|
+
var dp = function(e) {
|
|
8353
8351
|
if (!e.nested) {
|
|
8354
8352
|
let t = e.delta;
|
|
8355
|
-
if (t[2] ===
|
|
8353
|
+
if (t[2] === ip) {
|
|
8356
8354
|
let n = t;
|
|
8357
8355
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8358
8356
|
n[0],
|
|
8359
8357
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8360
|
-
|
|
8358
|
+
ip
|
|
8361
8359
|
]).exit();
|
|
8362
8360
|
}
|
|
8363
8361
|
return;
|
|
@@ -8367,26 +8365,26 @@ var fp = function(e) {
|
|
|
8367
8365
|
let n = t;
|
|
8368
8366
|
for (let t in n) {
|
|
8369
8367
|
if (t === "_t") continue;
|
|
8370
|
-
let r = new
|
|
8368
|
+
let r = new Zf(n[t]);
|
|
8371
8369
|
e.push(r, t);
|
|
8372
8370
|
}
|
|
8373
8371
|
e.exit();
|
|
8374
8372
|
};
|
|
8375
|
-
|
|
8376
|
-
var
|
|
8373
|
+
dp.filterName = "arrays";
|
|
8374
|
+
var fp = (e, t, n) => {
|
|
8377
8375
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8378
8376
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8379
8377
|
let r = +t;
|
|
8380
8378
|
for (let n in e) {
|
|
8381
8379
|
let i = e[n];
|
|
8382
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
8380
|
+
if (Array.isArray(i)) if (i[2] === ip) {
|
|
8383
8381
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8384
8382
|
if (a === +t) return e;
|
|
8385
8383
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
8386
8384
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
8387
8385
|
}
|
|
8388
8386
|
return r;
|
|
8389
|
-
},
|
|
8387
|
+
}, pp = (e) => {
|
|
8390
8388
|
if (!e || !e.children) return;
|
|
8391
8389
|
let t = e.delta;
|
|
8392
8390
|
if (t._t !== "a") return;
|
|
@@ -8397,22 +8395,22 @@ var pp = (e, t, n) => {
|
|
|
8397
8395
|
let a = r.newName;
|
|
8398
8396
|
if (a === void 0) {
|
|
8399
8397
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8400
|
-
a =
|
|
8398
|
+
a = fp(n, r.childName, r.result);
|
|
8401
8399
|
}
|
|
8402
8400
|
i[a] !== r.result && (i[a] = r.result);
|
|
8403
8401
|
}
|
|
8404
8402
|
e.setResult(i).exit();
|
|
8405
8403
|
};
|
|
8406
|
-
|
|
8404
|
+
pp.filterName = "arraysCollectChildren";
|
|
8407
8405
|
//#endregion
|
|
8408
8406
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8409
|
-
var
|
|
8407
|
+
var mp = function(e) {
|
|
8410
8408
|
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();
|
|
8411
8409
|
};
|
|
8412
|
-
|
|
8410
|
+
mp.filterName = "dates";
|
|
8413
8411
|
//#endregion
|
|
8414
8412
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8415
|
-
var
|
|
8413
|
+
var hp = new Set(["__proto__"]), gp = (e) => {
|
|
8416
8414
|
if (!e || !e.children) return;
|
|
8417
8415
|
let t = e.children.length, n = e.result;
|
|
8418
8416
|
for (let r = 0; r < t; r++) {
|
|
@@ -8424,18 +8422,18 @@ var gp = new Set(["__proto__"]), _p = (e) => {
|
|
|
8424
8422
|
}
|
|
8425
8423
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8426
8424
|
};
|
|
8427
|
-
|
|
8428
|
-
var
|
|
8425
|
+
gp.filterName = "collectChildren";
|
|
8426
|
+
var _p = (e) => {
|
|
8429
8427
|
var t;
|
|
8430
8428
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8431
8429
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8432
8430
|
for (let t in n) {
|
|
8433
8431
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8434
|
-
let a = new
|
|
8432
|
+
let a = new Yf(n[t], r[t]);
|
|
8435
8433
|
e.push(a, t);
|
|
8436
8434
|
}
|
|
8437
8435
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8438
|
-
let n = new
|
|
8436
|
+
let n = new Yf(void 0, r[t]);
|
|
8439
8437
|
e.push(n, t);
|
|
8440
8438
|
}
|
|
8441
8439
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8444,15 +8442,15 @@ var vp = (e) => {
|
|
|
8444
8442
|
}
|
|
8445
8443
|
e.exit();
|
|
8446
8444
|
};
|
|
8447
|
-
|
|
8448
|
-
var
|
|
8445
|
+
_p.filterName = "objects";
|
|
8446
|
+
var vp = function(e) {
|
|
8449
8447
|
if (!e.nested) return;
|
|
8450
8448
|
let t = e.delta;
|
|
8451
8449
|
if (t._t) return;
|
|
8452
8450
|
let n = t, r = !1;
|
|
8453
8451
|
for (let t in n) {
|
|
8454
|
-
if (
|
|
8455
|
-
let i = e.left, a = new
|
|
8452
|
+
if (hp.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8453
|
+
let i = e.left, a = new Xf(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8456
8454
|
e.push(a, t), r = !0;
|
|
8457
8455
|
}
|
|
8458
8456
|
if (!r) {
|
|
@@ -8461,8 +8459,8 @@ var yp = function(e) {
|
|
|
8461
8459
|
}
|
|
8462
8460
|
e.exit();
|
|
8463
8461
|
};
|
|
8464
|
-
|
|
8465
|
-
var
|
|
8462
|
+
vp.filterName = "objects";
|
|
8463
|
+
var yp = function(e) {
|
|
8466
8464
|
if (!e || !e.children || e.delta._t) return;
|
|
8467
8465
|
if (e.left === null || typeof e.left != "object") {
|
|
8468
8466
|
e.setResult(e.left).exit();
|
|
@@ -8473,17 +8471,17 @@ var bp = function(e) {
|
|
|
8473
8471
|
let n = e.children[r];
|
|
8474
8472
|
if (n === void 0) continue;
|
|
8475
8473
|
let i = n.childName;
|
|
8476
|
-
|
|
8474
|
+
hp.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8477
8475
|
}
|
|
8478
8476
|
e.setResult(t).exit();
|
|
8479
8477
|
};
|
|
8480
|
-
|
|
8481
|
-
var
|
|
8478
|
+
yp.filterName = "collectChildren";
|
|
8479
|
+
var bp = function(e) {
|
|
8482
8480
|
if (!e.nested || e.delta._t) return;
|
|
8483
8481
|
let t = e.delta, n = !1;
|
|
8484
8482
|
for (let r in t) {
|
|
8485
|
-
if (
|
|
8486
|
-
let i = new
|
|
8483
|
+
if (hp.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8484
|
+
let i = new Zf(t[r]);
|
|
8487
8485
|
e.push(i, r), n = !0;
|
|
8488
8486
|
}
|
|
8489
8487
|
if (!n) {
|
|
@@ -8492,25 +8490,25 @@ var xp = function(e) {
|
|
|
8492
8490
|
}
|
|
8493
8491
|
e.exit();
|
|
8494
8492
|
};
|
|
8495
|
-
|
|
8496
|
-
var
|
|
8493
|
+
bp.filterName = "objects";
|
|
8494
|
+
var xp = (e) => {
|
|
8497
8495
|
if (!e || !e.children || e.delta._t) return;
|
|
8498
8496
|
let t = e.children.length, n = {};
|
|
8499
8497
|
for (let r = 0; r < t; r++) {
|
|
8500
8498
|
let t = e.children[r];
|
|
8501
8499
|
if (t === void 0) continue;
|
|
8502
8500
|
let i = t.childName;
|
|
8503
|
-
|
|
8501
|
+
hp.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8504
8502
|
}
|
|
8505
8503
|
e.setResult(n).exit();
|
|
8506
8504
|
};
|
|
8507
|
-
|
|
8505
|
+
xp.filterName = "collectChildren";
|
|
8508
8506
|
//#endregion
|
|
8509
8507
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8510
|
-
var
|
|
8511
|
-
function
|
|
8508
|
+
var Sp = 2, Cp = 60, wp = null;
|
|
8509
|
+
function Tp(e, t) {
|
|
8512
8510
|
var n;
|
|
8513
|
-
if (!
|
|
8511
|
+
if (!wp) {
|
|
8514
8512
|
let r;
|
|
8515
8513
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8516
8514
|
else {
|
|
@@ -8518,7 +8516,7 @@ function Ep(e, t) {
|
|
|
8518
8516
|
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.");
|
|
8519
8517
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8520
8518
|
}
|
|
8521
|
-
|
|
8519
|
+
wp = {
|
|
8522
8520
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8523
8521
|
patch: (e, t) => {
|
|
8524
8522
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8530,17 +8528,17 @@ function Ep(e, t) {
|
|
|
8530
8528
|
}
|
|
8531
8529
|
};
|
|
8532
8530
|
}
|
|
8533
|
-
return
|
|
8531
|
+
return wp;
|
|
8534
8532
|
}
|
|
8535
|
-
var
|
|
8533
|
+
var Ep = function(e) {
|
|
8536
8534
|
var t, n;
|
|
8537
8535
|
if (e.leftType !== "string") return;
|
|
8538
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8536
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Cp;
|
|
8539
8537
|
if (r.length < a || i.length < a) {
|
|
8540
8538
|
e.setResult([r, i]).exit();
|
|
8541
8539
|
return;
|
|
8542
8540
|
}
|
|
8543
|
-
let o =
|
|
8541
|
+
let o = Tp(e.options);
|
|
8544
8542
|
if (!o) {
|
|
8545
8543
|
e.setResult([r, i]).exit();
|
|
8546
8544
|
return;
|
|
@@ -8549,19 +8547,19 @@ var Dp = function(e) {
|
|
|
8549
8547
|
e.setResult([
|
|
8550
8548
|
s(r, i),
|
|
8551
8549
|
0,
|
|
8552
|
-
|
|
8550
|
+
Sp
|
|
8553
8551
|
]).exit();
|
|
8554
8552
|
};
|
|
8555
|
-
|
|
8556
|
-
var
|
|
8553
|
+
Ep.filterName = "texts";
|
|
8554
|
+
var Dp = function(e) {
|
|
8557
8555
|
if (e.nested) return;
|
|
8558
8556
|
let t = e.delta;
|
|
8559
|
-
if (t[2] !==
|
|
8560
|
-
let n = t, r =
|
|
8557
|
+
if (t[2] !== Sp) return;
|
|
8558
|
+
let n = t, r = Tp(e.options, !0).patch;
|
|
8561
8559
|
e.setResult(r(e.left, n[0])).exit();
|
|
8562
8560
|
};
|
|
8563
|
-
|
|
8564
|
-
var
|
|
8561
|
+
Dp.filterName = "texts";
|
|
8562
|
+
var Op = (e) => {
|
|
8565
8563
|
var t, n, r;
|
|
8566
8564
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8567
8565
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8582,21 +8580,21 @@ var kp = (e) => {
|
|
|
8582
8580
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8583
8581
|
}
|
|
8584
8582
|
return a.join("\n");
|
|
8585
|
-
},
|
|
8583
|
+
}, kp = function(e) {
|
|
8586
8584
|
if (e.nested) return;
|
|
8587
8585
|
let t = e.delta;
|
|
8588
|
-
if (t[2] !==
|
|
8586
|
+
if (t[2] !== Sp) return;
|
|
8589
8587
|
let n = t;
|
|
8590
8588
|
e.setResult([
|
|
8591
|
-
|
|
8589
|
+
Op(n[0]),
|
|
8592
8590
|
0,
|
|
8593
|
-
|
|
8591
|
+
Sp
|
|
8594
8592
|
]).exit();
|
|
8595
8593
|
};
|
|
8596
|
-
|
|
8594
|
+
kp.filterName = "texts";
|
|
8597
8595
|
//#endregion
|
|
8598
8596
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8599
|
-
var
|
|
8597
|
+
var Ap = function(e) {
|
|
8600
8598
|
if (e.left === e.right) {
|
|
8601
8599
|
e.setResult(void 0).exit();
|
|
8602
8600
|
return;
|
|
@@ -8629,8 +8627,8 @@ var jp = function(e) {
|
|
|
8629
8627
|
}
|
|
8630
8628
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8631
8629
|
};
|
|
8632
|
-
|
|
8633
|
-
var
|
|
8630
|
+
Ap.filterName = "trivial";
|
|
8631
|
+
var jp = function(e) {
|
|
8634
8632
|
if (e.delta === void 0) {
|
|
8635
8633
|
e.setResult(e.left).exit();
|
|
8636
8634
|
return;
|
|
@@ -8654,8 +8652,8 @@ var Mp = function(e) {
|
|
|
8654
8652
|
}
|
|
8655
8653
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8656
8654
|
};
|
|
8657
|
-
|
|
8658
|
-
var
|
|
8655
|
+
jp.filterName = "trivial";
|
|
8656
|
+
var Mp = function(e) {
|
|
8659
8657
|
if (e.delta === void 0) {
|
|
8660
8658
|
e.setResult(e.delta).exit();
|
|
8661
8659
|
return;
|
|
@@ -8676,36 +8674,36 @@ var Np = function(e) {
|
|
|
8676
8674
|
}
|
|
8677
8675
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8678
8676
|
};
|
|
8679
|
-
|
|
8677
|
+
Mp.filterName = "trivial";
|
|
8680
8678
|
//#endregion
|
|
8681
8679
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8682
|
-
var
|
|
8680
|
+
var Np = class {
|
|
8683
8681
|
constructor(e) {
|
|
8684
|
-
this.processor = new
|
|
8682
|
+
this.processor = new $f(e), this.processor.pipe(new Qf("diff").append(gp, Ap, mp, Ep, _p, sp).shouldHaveResult()), this.processor.pipe(new Qf("patch").append(yp, up, jp, Dp, vp, lp).shouldHaveResult()), this.processor.pipe(new Qf("reverse").append(xp, pp, Mp, kp, bp, dp).shouldHaveResult());
|
|
8685
8683
|
}
|
|
8686
8684
|
options(e) {
|
|
8687
8685
|
return this.processor.options(e);
|
|
8688
8686
|
}
|
|
8689
8687
|
diff(e, t) {
|
|
8690
|
-
return this.processor.process(new
|
|
8688
|
+
return this.processor.process(new Yf(e, t));
|
|
8691
8689
|
}
|
|
8692
8690
|
patch(e, t) {
|
|
8693
|
-
return this.processor.process(new
|
|
8691
|
+
return this.processor.process(new Xf(e, t));
|
|
8694
8692
|
}
|
|
8695
8693
|
reverse(e) {
|
|
8696
|
-
return this.processor.process(new
|
|
8694
|
+
return this.processor.process(new Zf(e));
|
|
8697
8695
|
}
|
|
8698
8696
|
unpatch(e, t) {
|
|
8699
8697
|
return this.patch(e, this.reverse(t));
|
|
8700
8698
|
}
|
|
8701
8699
|
clone(e) {
|
|
8702
|
-
return
|
|
8700
|
+
return Gf(e);
|
|
8703
8701
|
}
|
|
8704
8702
|
};
|
|
8705
8703
|
//#endregion
|
|
8706
8704
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8707
|
-
function
|
|
8708
|
-
return new
|
|
8705
|
+
function Pp(e) {
|
|
8706
|
+
return new Np(e);
|
|
8709
8707
|
}
|
|
8710
8708
|
//#endregion
|
|
8711
8709
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9278,46 +9276,46 @@ $.Diff = function(e, t) {
|
|
|
9278
9276
|
};
|
|
9279
9277
|
//#endregion
|
|
9280
9278
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9281
|
-
var
|
|
9279
|
+
var Fp = (e = {}) => Pp({
|
|
9282
9280
|
...e,
|
|
9283
9281
|
textDiff: {
|
|
9284
9282
|
diffMatchPatch: $,
|
|
9285
9283
|
minLength: 120
|
|
9286
9284
|
},
|
|
9287
9285
|
cloneDiffValues: !0
|
|
9288
|
-
}),
|
|
9286
|
+
}), Ip = ["user", "unittemplate"], Lp = Fp(), Rp = (e, t, n) => {
|
|
9289
9287
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9290
9288
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9291
9289
|
let n = r[t[e]];
|
|
9292
9290
|
if (n) return n;
|
|
9293
9291
|
}
|
|
9294
9292
|
return n || "";
|
|
9295
|
-
},
|
|
9293
|
+
}, zp = (e) => {
|
|
9296
9294
|
let t = (e) => er(e) ? fr(e) : String(e);
|
|
9297
9295
|
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);
|
|
9298
|
-
},
|
|
9296
|
+
}, Bp = (e) => {
|
|
9299
9297
|
switch (e.length) {
|
|
9300
9298
|
case 1: {
|
|
9301
9299
|
let [t] = e;
|
|
9302
9300
|
return {
|
|
9303
9301
|
type: "created",
|
|
9304
9302
|
before: "",
|
|
9305
|
-
after:
|
|
9303
|
+
after: zp(t)
|
|
9306
9304
|
};
|
|
9307
9305
|
}
|
|
9308
9306
|
case 2: {
|
|
9309
9307
|
let [t, n] = e;
|
|
9310
9308
|
return {
|
|
9311
9309
|
type: "modified",
|
|
9312
|
-
before:
|
|
9313
|
-
after:
|
|
9310
|
+
before: zp(t),
|
|
9311
|
+
after: zp(n)
|
|
9314
9312
|
};
|
|
9315
9313
|
}
|
|
9316
9314
|
case 3: {
|
|
9317
9315
|
let [t] = e;
|
|
9318
9316
|
return {
|
|
9319
9317
|
type: "deleted",
|
|
9320
|
-
before:
|
|
9318
|
+
before: zp(t),
|
|
9321
9319
|
after: ""
|
|
9322
9320
|
};
|
|
9323
9321
|
}
|
|
@@ -9327,15 +9325,15 @@ var Ip = (e = {}) => Fp({
|
|
|
9327
9325
|
after: ""
|
|
9328
9326
|
};
|
|
9329
9327
|
}
|
|
9330
|
-
},
|
|
9331
|
-
let r =
|
|
9328
|
+
}, Vp = (e) => Array.isArray(e), Hp = (e, t) => t ? Vp(t) ? t.length === 0 ? e : t.reduce((e, t) => Lp.unpatch($t(e), $t(t)), $t(e)) : Lp.unpatch($t(e), $t(t)) : e, Up = (e) => e.createdAt || e.date, Wp = (e, t, n) => {
|
|
9329
|
+
let r = Up(e);
|
|
9332
9330
|
if (!r) return {
|
|
9333
9331
|
oldJson: "",
|
|
9334
9332
|
newJson: "",
|
|
9335
9333
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9336
9334
|
};
|
|
9337
9335
|
let i = t.filter((e) => {
|
|
9338
|
-
let t =
|
|
9336
|
+
let t = Up(e);
|
|
9339
9337
|
return !!(e.diffs && t && t >= r);
|
|
9340
9338
|
}), a = Array.from({ length: i.length + 1 });
|
|
9341
9339
|
a[0] = $t(n);
|
|
@@ -9348,7 +9346,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9348
9346
|
a[e + 1] = a[e];
|
|
9349
9347
|
continue;
|
|
9350
9348
|
}
|
|
9351
|
-
a[e + 1] =
|
|
9349
|
+
a[e + 1] = Hp(a[e], t);
|
|
9352
9350
|
}
|
|
9353
9351
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9354
9352
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9363,10 +9361,10 @@ var Ip = (e = {}) => Fp({
|
|
|
9363
9361
|
oldJson: o,
|
|
9364
9362
|
newJson: s
|
|
9365
9363
|
};
|
|
9366
|
-
},
|
|
9364
|
+
}, Gp = (e, t, n = {}, r = []) => {
|
|
9367
9365
|
var i;
|
|
9368
9366
|
if (!e) return;
|
|
9369
|
-
let a = [...
|
|
9367
|
+
let a = [...Ip, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9370
9368
|
Object.keys(e).forEach((i) => {
|
|
9371
9369
|
var o;
|
|
9372
9370
|
let s = e[i];
|
|
@@ -9379,12 +9377,12 @@ var Ip = (e = {}) => Fp({
|
|
|
9379
9377
|
an(s) ? t.push({
|
|
9380
9378
|
deltaFormat: [...s],
|
|
9381
9379
|
path: c
|
|
9382
|
-
}) : fn(s) &&
|
|
9380
|
+
}) : fn(s) && Gp(s, t, n, c);
|
|
9383
9381
|
});
|
|
9384
|
-
},
|
|
9382
|
+
}, Kp = (e, t = {}) => {
|
|
9385
9383
|
let n = [];
|
|
9386
|
-
return e ? (
|
|
9387
|
-
},
|
|
9384
|
+
return e ? (Gp(e, n, t), n) : [];
|
|
9385
|
+
}, qp = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Jp = (e) => {
|
|
9388
9386
|
if (e == null || e === "") return "empty";
|
|
9389
9387
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9390
9388
|
if (typeof e == "string") return e;
|
|
@@ -9395,32 +9393,32 @@ var Ip = (e = {}) => Fp({
|
|
|
9395
9393
|
} catch {
|
|
9396
9394
|
return String(e);
|
|
9397
9395
|
}
|
|
9398
|
-
},
|
|
9396
|
+
}, Yp = (e, t = e.length - 1) => {
|
|
9399
9397
|
if (t >= e.length) return "Value";
|
|
9400
9398
|
let n = e[t];
|
|
9401
|
-
return !n || Zn(n) ?
|
|
9402
|
-
},
|
|
9403
|
-
let o =
|
|
9399
|
+
return !n || Zn(n) ? Yp(e, t - 1) : qp(n);
|
|
9400
|
+
}, Xp = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9401
|
+
let o = Jp(r), s = Jp(i), c = a ? ` in ${a}` : "";
|
|
9404
9402
|
switch (t) {
|
|
9405
9403
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9406
9404
|
case "created": return `${e} created ${s}${c}.`;
|
|
9407
9405
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9408
9406
|
default: return `${e} changed ${n}${c}.`;
|
|
9409
9407
|
}
|
|
9410
|
-
},
|
|
9408
|
+
}, Zp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(yl, { table: {
|
|
9411
9409
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9412
9410
|
rows: n.map((n) => {
|
|
9413
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9414
|
-
return { cells: [{ value:
|
|
9411
|
+
let { deltaFormat: i, path: a } = n, o = Rp(e, a, r), { type: s, before: c, after: l } = Bp(i);
|
|
9412
|
+
return { cells: [{ value: Xp({
|
|
9415
9413
|
userName: t,
|
|
9416
9414
|
type: s,
|
|
9417
|
-
property:
|
|
9415
|
+
property: Yp(a),
|
|
9418
9416
|
before: c,
|
|
9419
9417
|
after: l,
|
|
9420
9418
|
sectionName: o
|
|
9421
9419
|
}) }] };
|
|
9422
9420
|
})
|
|
9423
|
-
} }),
|
|
9421
|
+
} }), Qp = Object.freeze({
|
|
9424
9422
|
summary: {
|
|
9425
9423
|
label: "Summary",
|
|
9426
9424
|
value: "summary"
|
|
@@ -9429,13 +9427,13 @@ var Ip = (e = {}) => Fp({
|
|
|
9429
9427
|
label: "Compare",
|
|
9430
9428
|
value: "compare"
|
|
9431
9429
|
}
|
|
9432
|
-
}),
|
|
9433
|
-
let c = [
|
|
9430
|
+
}), $p = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9431
|
+
let c = [Qp.summary, Qp.compare].map(({ label: e, value: t }) => ({
|
|
9434
9432
|
label: e,
|
|
9435
9433
|
value: t
|
|
9436
9434
|
})), [l, u] = h(c[0]), { diffs: d = void 0 } = e || {};
|
|
9437
9435
|
if (!d) return null;
|
|
9438
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9436
|
+
let { oldJson: f, newJson: p, error: m } = Wp(e, t, n);
|
|
9439
9437
|
return /* @__PURE__ */ y(Jo, {
|
|
9440
9438
|
visible: r,
|
|
9441
9439
|
centered: !0,
|
|
@@ -9447,15 +9445,15 @@ var Ip = (e = {}) => Fp({
|
|
|
9447
9445
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9448
9446
|
options: c,
|
|
9449
9447
|
value: l
|
|
9450
|
-
}), l.value === "summary" ? /* @__PURE__ */ y(
|
|
9448
|
+
}), l.value === "summary" ? /* @__PURE__ */ y(Zp, {
|
|
9451
9449
|
userName: e.userName,
|
|
9452
9450
|
sectionNames: a,
|
|
9453
|
-
diffs:
|
|
9451
|
+
diffs: Kp(d, i),
|
|
9454
9452
|
defaultSectionName: o
|
|
9455
9453
|
}) : m ? /* @__PURE__ */ y("div", {
|
|
9456
9454
|
style: { padding: 16 },
|
|
9457
9455
|
children: m
|
|
9458
|
-
}) : /* @__PURE__ */ y(
|
|
9456
|
+
}) : /* @__PURE__ */ y(Hf, {
|
|
9459
9457
|
oldJson: f,
|
|
9460
9458
|
newJson: p
|
|
9461
9459
|
})] }),
|
|
@@ -9468,7 +9466,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9468
9466
|
height: "90vh"
|
|
9469
9467
|
} })
|
|
9470
9468
|
});
|
|
9471
|
-
},
|
|
9469
|
+
}, em = [
|
|
9472
9470
|
{
|
|
9473
9471
|
label: "10 / page",
|
|
9474
9472
|
value: 10
|
|
@@ -9481,8 +9479,8 @@ var Ip = (e = {}) => Fp({
|
|
|
9481
9479
|
label: "50 / page",
|
|
9482
9480
|
value: 50
|
|
9483
9481
|
}
|
|
9484
|
-
],
|
|
9485
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9482
|
+
], tm = (e, t = {}) => {
|
|
9483
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Kp(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9486
9484
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9487
9485
|
switch (a) {
|
|
9488
9486
|
case "Created": return `Created by ${r}`;
|
|
@@ -9492,7 +9490,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9492
9490
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9493
9491
|
default: return `Change by ${r}`;
|
|
9494
9492
|
}
|
|
9495
|
-
},
|
|
9493
|
+
}, nm = ({ 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 }) => {
|
|
9496
9494
|
let [_, x] = h(!1), [S, C] = h(null), w = (e) => {
|
|
9497
9495
|
if (e.snapshot) {
|
|
9498
9496
|
f == null || f(e.snapshot, e);
|
|
@@ -9511,7 +9509,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9511
9509
|
return {
|
|
9512
9510
|
cells: [
|
|
9513
9511
|
{
|
|
9514
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9512
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : tm(e, l),
|
|
9515
9513
|
type: "Link",
|
|
9516
9514
|
disabled: n,
|
|
9517
9515
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9530,8 +9528,8 @@ var Ip = (e = {}) => Fp({
|
|
|
9530
9528
|
type: "Static"
|
|
9531
9529
|
},
|
|
9532
9530
|
{
|
|
9533
|
-
value:
|
|
9534
|
-
date:
|
|
9531
|
+
value: Uf({
|
|
9532
|
+
date: Up(e),
|
|
9535
9533
|
showTime: !0
|
|
9536
9534
|
}),
|
|
9537
9535
|
type: "Static"
|
|
@@ -9574,14 +9572,14 @@ var Ip = (e = {}) => Fp({
|
|
|
9574
9572
|
onChange: (e) => {
|
|
9575
9573
|
u(Number(e.target.value));
|
|
9576
9574
|
},
|
|
9577
|
-
options:
|
|
9575
|
+
options: em,
|
|
9578
9576
|
value: a
|
|
9579
9577
|
},
|
|
9580
9578
|
onSelectPage: (e) => d(e),
|
|
9581
9579
|
small: !0
|
|
9582
9580
|
} }
|
|
9583
9581
|
} })
|
|
9584
|
-
}), _ && S && S.diffs && /* @__PURE__ */ y(
|
|
9582
|
+
}), _ && S && S.diffs && /* @__PURE__ */ y($p, {
|
|
9585
9583
|
sectionNames: o,
|
|
9586
9584
|
isOpen: _,
|
|
9587
9585
|
onClose: () => x(!1),
|
|
@@ -9591,7 +9589,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9591
9589
|
data: t,
|
|
9592
9590
|
transformDiffsConfig: l
|
|
9593
9591
|
})] });
|
|
9594
|
-
},
|
|
9592
|
+
}, rm = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9595
9593
|
let i = window.location.href, a = m(i);
|
|
9596
9594
|
return l(() => {
|
|
9597
9595
|
a.current = i;
|
|
@@ -9614,10 +9612,10 @@ var Ip = (e = {}) => Fp({
|
|
|
9614
9612
|
});
|
|
9615
9613
|
};
|
|
9616
9614
|
}, [e, t]), null;
|
|
9617
|
-
},
|
|
9618
|
-
|
|
9619
|
-
e ===
|
|
9615
|
+
}, im = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, am = (e) => {
|
|
9616
|
+
Mf(Df.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9617
|
+
e === Df.Translations ? Mf(e, kf(t)) : Mf(e, im(t) ? t : { ...t });
|
|
9620
9618
|
});
|
|
9621
9619
|
};
|
|
9622
9620
|
//#endregion
|
|
9623
|
-
export { Ei as Accordion, Yi as AccordionWithDefaultToggle, Ma as Actions, ii as Align,
|
|
9621
|
+
export { Ei as Accordion, Yi as AccordionWithDefaultToggle, Ma as Actions, ii as Align, nm as AuditLog, va as Badge, Ia as Breadcrumb, Pa as BreadcrumbLinkType, K as Button, Ra as ButtonGroup, ai as ButtonPosition, $i as ButtonType, Ba as Card, Gi as CheckBox, bi as Chevron, Ci as Collapse, ri as Color, co as ColorInput, so as ColorInputPopover, mo as Column, Eo as Dialog, Hf as DiffViewer, U as DisabledContext, yo as Divider, No as Drawer, rf as ElementType, Al as Empty, Mu as Field, Ou as FileButton, Uo as FileInput, Nu as Flex, Fu as FormRow, qa as Grid, V as GroupOrder, Co as Heading, Wi as HelpIcon, W as Icon, H as IconType, Ro as Input, Io as InputGroup, Ac as InputGroupAddon, Bo as InputReaderMethods, ci as InputType, Au as Label, Ju as List, Lu as ListHeading, Uu as ListSubheading, Xu as Loader, Aa as Menu, oa as MenuCarat, aa as MenuType, ms as Message, cs as MessageType, Jo as Modal, bs as NativeSelect, Uc as NumberInput, rd as OptionDropdown, ad as Page, jc as Pagination, uf as PopConfirm, Ua as Popover, od as Portal, cd as PrintHeader, Zo as ProgressBar, ld as RadioButton, md as RichTextInput, gd as Row, wc as Select, Rf as SettingField, xd as SideBar, Cd as Skeleton, $c as Slider, ns as SmartUploadModal, Wo as Spacer, Qi as Spinner, yl as Table, Du as TableImportExport, Xd as Tabs, _o as Text, $d as TextArea, Zd as TextLink, oi as TextTransform, si as Theme, Fr as Toaster, du as Toggle, G as Tooltip, sf as TopBar, mf as Tree, Ef as TreeTable, ni as TriggerType, Ud as UnitInput, qd as UnitSlider, If as UnitTable, rm as UsageTracker, cu as dismissToast, Bd as initializeContext, am as initializeGuiLibrary, Vo as readFile, su as toast, xs as useFocus, Go as useKeyboardEvent, ws as useWindowWidth };
|