@oliasoft-open-source/react-ui-library 7.0.2-beta-3 → 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/index.js +415 -422
- package/package.json +1 -1
- package/dist/components/unit-input/hooks/use-synchronized-display-layer.d.ts +0 -13
- 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,56 +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 [i = "", a = ""] = r === void 0 ? [] : or(r), o = f(() => ({
|
|
6620
|
-
initDisplayUnit: e,
|
|
6621
|
-
value: r
|
|
6622
|
-
}), [e, r]), c = s((e) => {
|
|
6623
|
-
let { value: o } = Ad({
|
|
6624
|
-
value: r,
|
|
6625
|
-
toUnit: e,
|
|
6626
|
-
unitkey: n,
|
|
6627
|
-
defaultFromUnit: a,
|
|
6628
|
-
doNotConvertValue: t
|
|
6629
|
-
});
|
|
6630
|
-
return o === "" ? {
|
|
6631
|
-
value: i,
|
|
6632
|
-
unit: a
|
|
6633
|
-
} : {
|
|
6634
|
-
value: o,
|
|
6635
|
-
unit: e
|
|
6636
|
-
};
|
|
6637
|
-
}, [
|
|
6638
|
-
t,
|
|
6639
|
-
a,
|
|
6640
|
-
i,
|
|
6641
|
-
n,
|
|
6642
|
-
r
|
|
6643
|
-
]), [l, u] = h(() => ({
|
|
6644
|
-
displayLayer: c(e),
|
|
6645
|
-
externalState: o
|
|
6646
|
-
})), d = f(() => c(l.externalState.initDisplayUnit === e ? l.displayLayer.unit : e), [
|
|
6647
|
-
c,
|
|
6648
|
-
e,
|
|
6649
|
-
l.displayLayer.unit,
|
|
6650
|
-
l.externalState
|
|
6651
|
-
]);
|
|
6652
|
-
return [l.externalState.initDisplayUnit !== e || l.externalState.value !== r ? d : l.displayLayer, s((e) => {
|
|
6653
|
-
u({
|
|
6654
|
-
displayLayer: e,
|
|
6655
|
-
externalState: o
|
|
6656
|
-
});
|
|
6657
|
-
}, [o])];
|
|
6658
|
-
}, Md = (e, t) => {
|
|
6659
|
-
let n = t == null ? void 0 : t[e];
|
|
6660
|
-
if (!n) {
|
|
6661
|
-
var r;
|
|
6662
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = ur(e)) == null ? "" : r;
|
|
6663
|
-
}
|
|
6664
|
-
return n;
|
|
6665
|
-
}, Nd = /* @__PURE__ */ function(e) {
|
|
6666
|
-
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6667
|
-
}({}), 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) => {
|
|
6668
6633
|
let n = Jn(e || "");
|
|
6669
6634
|
return Fd(t) && Fd(n);
|
|
6670
6635
|
}, Ld = n(null), Rd = () => c(Ld), zd = !1, Bd = (e) => {
|
|
@@ -6675,31 +6640,38 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6675
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 = () => ({
|
|
6676
6641
|
name: "",
|
|
6677
6642
|
error: null
|
|
6678
|
-
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus:
|
|
6679
|
-
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();
|
|
6680
6645
|
typeof c == "number" && (c = `${c}`);
|
|
6681
|
-
let [,
|
|
6646
|
+
let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Dd(u, C || (z == null ? void 0 : z.unitTemplate)), [
|
|
6682
6647
|
u,
|
|
6683
6648
|
C,
|
|
6684
|
-
|
|
6685
|
-
]),
|
|
6686
|
-
|
|
6687
|
-
|
|
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,
|
|
6688
6653
|
unitkey: u,
|
|
6689
|
-
|
|
6690
|
-
|
|
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) => {
|
|
6691
6663
|
if (!(e != null && e.value)) return;
|
|
6692
6664
|
if (k) return k === e.valueKey;
|
|
6693
|
-
let t = er(e.value) ? Jn(e.value) : "", { value: n = c } =
|
|
6665
|
+
let t = er(e.value) ? Jn(e.value) : "", { value: n = c } = Md({
|
|
6694
6666
|
value: String(c),
|
|
6695
6667
|
unitkey: u,
|
|
6696
6668
|
toUnit: t
|
|
6697
6669
|
});
|
|
6698
6670
|
return pr(n, t) === e.value;
|
|
6699
|
-
}),
|
|
6671
|
+
}), he = () => {
|
|
6700
6672
|
var e;
|
|
6701
|
-
let t = (e = c) == null ? "" : e, n =
|
|
6702
|
-
if (!
|
|
6673
|
+
let t = (e = c) == null ? "" : e, n = ce.unit;
|
|
6674
|
+
if (!jd({
|
|
6703
6675
|
value: t,
|
|
6704
6676
|
unitkey: u,
|
|
6705
6677
|
toUnit: n
|
|
@@ -6712,54 +6684,79 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6712
6684
|
} catch {
|
|
6713
6685
|
return null;
|
|
6714
6686
|
}
|
|
6715
|
-
},
|
|
6716
|
-
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) || "");
|
|
6717
6689
|
m({ target: {
|
|
6718
|
-
value: N ? pr(Gn(o,
|
|
6690
|
+
value: N ? pr(Gn(o, re), re) : o,
|
|
6719
6691
|
name: n
|
|
6720
6692
|
} });
|
|
6721
6693
|
let [s, c] = or(o);
|
|
6722
|
-
|
|
6694
|
+
le({
|
|
6723
6695
|
value: s,
|
|
6724
6696
|
unit: c
|
|
6725
6697
|
}), te(() => {
|
|
6726
6698
|
r.selectionStart = a, r.selectionEnd = a;
|
|
6727
6699
|
});
|
|
6728
|
-
},
|
|
6729
|
-
t ===
|
|
6700
|
+
}, _e = (e, t) => {
|
|
6701
|
+
t === ce.unit || isNaN(Number(e)) || (le({
|
|
6730
6702
|
value: e,
|
|
6731
6703
|
unit: t
|
|
6732
6704
|
}), S && S(t));
|
|
6733
6705
|
};
|
|
6734
6706
|
l(() => {
|
|
6735
|
-
|
|
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
|
+
}
|
|
6736
6733
|
}, [
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6734
|
+
ae,
|
|
6735
|
+
c,
|
|
6736
|
+
i,
|
|
6740
6737
|
O
|
|
6741
6738
|
]);
|
|
6742
|
-
let
|
|
6739
|
+
let ve = he(), ye = tr(ce.unit) || ce.unit || "", be = p || !ve || ve && ve.length === 1, xe = Pd(e), Se, Ce = (t) => {
|
|
6743
6740
|
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = er(r) ? or(r) : [r], o = fr(r);
|
|
6744
|
-
if (
|
|
6741
|
+
if (jd({
|
|
6745
6742
|
value: r,
|
|
6746
6743
|
unitkey: u,
|
|
6747
6744
|
toUnit: a
|
|
6748
6745
|
})) {
|
|
6749
|
-
let { value: e = "" } =
|
|
6746
|
+
let { value: e = "" } = Nd({
|
|
6750
6747
|
value: r,
|
|
6751
|
-
toUnit:
|
|
6748
|
+
toUnit: B,
|
|
6752
6749
|
unitkey: u,
|
|
6753
6750
|
defaultFromUnit: a,
|
|
6754
6751
|
doNotConvertValue: p
|
|
6755
6752
|
});
|
|
6756
|
-
o = fr(pr(e,
|
|
6753
|
+
o = fr(pr(e, B));
|
|
6757
6754
|
}
|
|
6758
6755
|
return {
|
|
6759
6756
|
type: aa.OPTION,
|
|
6760
6757
|
inline: !0,
|
|
6761
6758
|
onClick: () => {
|
|
6762
|
-
dr(i).valid && !n && (
|
|
6759
|
+
dr(i).valid && !n && (fe(Od.PREDEFINED), m({ target: {
|
|
6763
6760
|
value: r,
|
|
6764
6761
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
6765
6762
|
predefinedSelected: !0,
|
|
@@ -6771,29 +6768,29 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6771
6768
|
height: "0"
|
|
6772
6769
|
})] }),
|
|
6773
6770
|
description: o,
|
|
6774
|
-
selected:
|
|
6771
|
+
selected: me === t && de === Od.PREDEFINED
|
|
6775
6772
|
};
|
|
6776
6773
|
};
|
|
6777
|
-
if (
|
|
6774
|
+
if (Se = [{
|
|
6778
6775
|
type: aa.OPTION,
|
|
6779
6776
|
inline: !0,
|
|
6780
6777
|
onClick: () => {
|
|
6781
|
-
|
|
6782
|
-
value: pr(
|
|
6778
|
+
de !== Od.CUSTOM && !n && m({ target: {
|
|
6779
|
+
value: pr(ce.value, ce.unit),
|
|
6783
6780
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
6784
6781
|
} });
|
|
6785
6782
|
},
|
|
6786
6783
|
label: "Custom",
|
|
6787
|
-
selected:
|
|
6784
|
+
selected: de === Od.CUSTOM
|
|
6788
6785
|
}], E != null && E.length) {
|
|
6789
|
-
let e = E.map(
|
|
6790
|
-
|
|
6786
|
+
let e = E.map(Ce);
|
|
6787
|
+
Se = [...Se, ...e];
|
|
6791
6788
|
}
|
|
6792
|
-
let
|
|
6789
|
+
let we = (e) => {
|
|
6793
6790
|
if (er(e)) {
|
|
6794
|
-
let t = Jn(e), { value: n } =
|
|
6791
|
+
let t = Jn(e), { value: n } = Nd({
|
|
6795
6792
|
value: e,
|
|
6796
|
-
toUnit:
|
|
6793
|
+
toUnit: ce.unit,
|
|
6797
6794
|
unitkey: u,
|
|
6798
6795
|
defaultFromUnit: t,
|
|
6799
6796
|
doNotConvertValue: p
|
|
@@ -6801,9 +6798,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6801
6798
|
return n;
|
|
6802
6799
|
}
|
|
6803
6800
|
return e;
|
|
6804
|
-
},
|
|
6801
|
+
}, Te = !E && (!L || L === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !L || L === V.LAST ? V.LAST : V.MIDDLE;
|
|
6805
6802
|
return /* @__PURE__ */ y("div", {
|
|
6806
|
-
className:
|
|
6803
|
+
className: de === Od.PREDEFINED ? _(Hd.predefinedMenuActive) : "",
|
|
6807
6804
|
children: /* @__PURE__ */ b(Io, {
|
|
6808
6805
|
small: o,
|
|
6809
6806
|
width: s,
|
|
@@ -6818,65 +6815,66 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6818
6815
|
trigger: "Component",
|
|
6819
6816
|
component: /* @__PURE__ */ y(K, {
|
|
6820
6817
|
groupOrder: "first",
|
|
6821
|
-
active:
|
|
6822
|
-
icon:
|
|
6818
|
+
active: de === Od.PREDEFINED,
|
|
6819
|
+
icon: de === Od.PREDEFINED ? "link" : "unlink",
|
|
6823
6820
|
small: o
|
|
6824
6821
|
}),
|
|
6825
6822
|
small: o,
|
|
6826
|
-
sections:
|
|
6823
|
+
sections: Se
|
|
6827
6824
|
},
|
|
6828
|
-
tooltip:
|
|
6825
|
+
tooltip: de === Od.PREDEFINED ? me == null ? void 0 : me.label : ""
|
|
6829
6826
|
}),
|
|
6830
6827
|
/* @__PURE__ */ y("div", {
|
|
6831
6828
|
className: Hd.inputWrapper,
|
|
6832
6829
|
children: /* @__PURE__ */ y(Uc, {
|
|
6833
|
-
name:
|
|
6830
|
+
name: xe,
|
|
6834
6831
|
testId: w,
|
|
6835
6832
|
disabled: n,
|
|
6836
|
-
placeholder:
|
|
6837
|
-
value:
|
|
6838
|
-
onChange:
|
|
6833
|
+
placeholder: we(t),
|
|
6834
|
+
value: ce.value,
|
|
6835
|
+
onChange: ge,
|
|
6839
6836
|
onFocus: x,
|
|
6840
6837
|
error: i === null ? void 0 : i,
|
|
6841
6838
|
warning: T === null ? void 0 : T,
|
|
6842
6839
|
left: a,
|
|
6843
|
-
allowEmpty:
|
|
6844
|
-
validationCallback: (e, t) => A(
|
|
6840
|
+
allowEmpty: ue,
|
|
6841
|
+
validationCallback: (e, t) => A(xe, t),
|
|
6845
6842
|
enableCosmeticRounding: P,
|
|
6846
6843
|
enableDisplayRounding: F,
|
|
6847
6844
|
roundDisplayValue: I,
|
|
6848
|
-
groupOrder:
|
|
6849
|
-
disableInternalErrorValidationMessages:
|
|
6845
|
+
groupOrder: Te,
|
|
6846
|
+
disableInternalErrorValidationMessages: pe,
|
|
6847
|
+
useControlledValueWhenBlurred: !0,
|
|
6850
6848
|
small: o,
|
|
6851
|
-
selectOnFocus:
|
|
6852
|
-
tooltip:
|
|
6853
|
-
},
|
|
6849
|
+
selectOnFocus: ee,
|
|
6850
|
+
tooltip: R
|
|
6851
|
+
}, xe)
|
|
6854
6852
|
}),
|
|
6855
|
-
|
|
6856
|
-
groupOrder:
|
|
6853
|
+
ye && (be || !ie ? /* @__PURE__ */ y(Ac, {
|
|
6854
|
+
groupOrder: Ee,
|
|
6857
6855
|
small: o,
|
|
6858
|
-
children:
|
|
6856
|
+
children: ye
|
|
6859
6857
|
}) : /* @__PURE__ */ y(Aa, {
|
|
6860
|
-
groupOrder:
|
|
6858
|
+
groupOrder: Ee,
|
|
6861
6859
|
maxHeight: 380,
|
|
6862
6860
|
disabled: r,
|
|
6863
6861
|
testId: w && `${w}-menu`,
|
|
6864
6862
|
tabIndex: -1,
|
|
6865
6863
|
menu: {
|
|
6866
|
-
label:
|
|
6864
|
+
label: ye,
|
|
6867
6865
|
trigger: "DropDownButton",
|
|
6868
6866
|
small: o,
|
|
6869
|
-
sections:
|
|
6867
|
+
sections: ve.map(([e = "", t = "", n]) => {
|
|
6870
6868
|
let r = n || t || "", i = $n(e) ? e : "";
|
|
6871
6869
|
return {
|
|
6872
6870
|
type: "Option",
|
|
6873
6871
|
label: P ? Vd(i) : i,
|
|
6874
6872
|
inline: !0,
|
|
6875
6873
|
onClick: (n) => {
|
|
6876
|
-
n.stopPropagation(),
|
|
6874
|
+
n.stopPropagation(), _e(e, t);
|
|
6877
6875
|
},
|
|
6878
6876
|
description: r,
|
|
6879
|
-
selected: r ===
|
|
6877
|
+
selected: r === ye,
|
|
6880
6878
|
testId: `${w}-unit-${r}`
|
|
6881
6879
|
};
|
|
6882
6880
|
})
|
|
@@ -6903,11 +6901,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6903
6901
|
!u || d || (D(T), k(!0));
|
|
6904
6902
|
}, I = () => {
|
|
6905
6903
|
D(T), k(!1);
|
|
6906
|
-
},
|
|
6904
|
+
}, ee = () => {
|
|
6907
6905
|
P || N === null || (o(Wd(e, N)), s == null || s(Wd(e, N)), k(!1));
|
|
6908
|
-
},
|
|
6909
|
-
e.key === "Enter" &&
|
|
6910
|
-
},
|
|
6906
|
+
}, L = (e) => {
|
|
6907
|
+
e.key === "Enter" && ee(), e.key === "Escape" && I();
|
|
6908
|
+
}, R = d || O, z = /* @__PURE__ */ b("div", {
|
|
6911
6909
|
className: wd.actions,
|
|
6912
6910
|
children: [/* @__PURE__ */ y(K, {
|
|
6913
6911
|
icon: "close",
|
|
@@ -6918,7 +6916,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6918
6916
|
icon: "checkmark",
|
|
6919
6917
|
small: !0,
|
|
6920
6918
|
disabled: !!P,
|
|
6921
|
-
onClick:
|
|
6919
|
+
onClick: ee,
|
|
6922
6920
|
testId: g && `${g}-confirm`
|
|
6923
6921
|
})]
|
|
6924
6922
|
});
|
|
@@ -6936,7 +6934,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6936
6934
|
f && /* @__PURE__ */ y("div", {
|
|
6937
6935
|
className: _(wd.input, x && wd.inputSmall, u && !d && wd.editable),
|
|
6938
6936
|
children: /* @__PURE__ */ y(Ua, {
|
|
6939
|
-
content:
|
|
6937
|
+
content: z,
|
|
6940
6938
|
isOpen: O,
|
|
6941
6939
|
onToggle: (e) => {
|
|
6942
6940
|
e || I();
|
|
@@ -6949,7 +6947,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6949
6947
|
className: wd.inputControl,
|
|
6950
6948
|
"data-testid": g && `${g}-edit-trigger`,
|
|
6951
6949
|
onClick: F,
|
|
6952
|
-
onKeyDown:
|
|
6950
|
+
onKeyDown: L,
|
|
6953
6951
|
children: /* @__PURE__ */ y(Ud, {
|
|
6954
6952
|
name: e,
|
|
6955
6953
|
value: O ? E : T,
|
|
@@ -6975,9 +6973,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6975
6973
|
onChange: o,
|
|
6976
6974
|
onChangeComplete: s,
|
|
6977
6975
|
showArrows: p,
|
|
6978
|
-
showTooltip: !
|
|
6976
|
+
showTooltip: !R,
|
|
6979
6977
|
tooltipFormatter: () => fr(T),
|
|
6980
|
-
disabled:
|
|
6978
|
+
disabled: R,
|
|
6981
6979
|
small: x,
|
|
6982
6980
|
marks: S,
|
|
6983
6981
|
testId: g && `${g}-slider`
|
|
@@ -7715,15 +7713,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7715
7713
|
})]
|
|
7716
7714
|
})
|
|
7717
7715
|
});
|
|
7718
|
-
}, Df = (
|
|
7719
|
-
let t = m(void 0);
|
|
7720
|
-
return l(() => {
|
|
7721
|
-
t.current = e;
|
|
7722
|
-
}, [e]), t.current;
|
|
7723
|
-
}, Of = Object.freeze({
|
|
7716
|
+
}, Df = Object.freeze({
|
|
7724
7717
|
Translations: "translations",
|
|
7725
7718
|
LanguageKey: "languageKey"
|
|
7726
|
-
}),
|
|
7719
|
+
}), Of = {
|
|
7727
7720
|
unified: "Unified",
|
|
7728
7721
|
split: "Split",
|
|
7729
7722
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7745,29 +7738,29 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7745
7738
|
pluralChanges: "changes",
|
|
7746
7739
|
showAll: "Show all",
|
|
7747
7740
|
unknown: "Unknown"
|
|
7748
|
-
},
|
|
7741
|
+
}, kf = (e) => Object.keys(Of).reduce((t, n) => ({
|
|
7749
7742
|
...t,
|
|
7750
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7751
|
-
}), {}),
|
|
7752
|
-
[
|
|
7753
|
-
[
|
|
7754
|
-
},
|
|
7755
|
-
|
|
7756
|
-
},
|
|
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 }) => {
|
|
7757
7750
|
var a;
|
|
7758
7751
|
let { unitTemplate: o = null } = (a = Rd()) == null ? {} : a;
|
|
7759
|
-
return e[n] = r == null ?
|
|
7752
|
+
return e[n] = r == null ? Dd(n, o) : r, t[n] = i, {
|
|
7760
7753
|
preferredUnits: e,
|
|
7761
7754
|
storageUnits: t
|
|
7762
7755
|
};
|
|
7763
7756
|
}, {
|
|
7764
7757
|
preferredUnits: {},
|
|
7765
7758
|
storageUnits: {}
|
|
7766
|
-
}),
|
|
7759
|
+
}), Pf = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7767
7760
|
...e,
|
|
7768
7761
|
cells: e.cells.map((e, s) => {
|
|
7769
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")) {
|
|
7770
|
-
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({
|
|
7771
7764
|
value: lr(l),
|
|
7772
7765
|
unitkey: c,
|
|
7773
7766
|
toUnit: f,
|
|
@@ -7781,7 +7774,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7781
7774
|
roundDisplayValue: d,
|
|
7782
7775
|
selectOnFocus: !0,
|
|
7783
7776
|
onChange: (n) => {
|
|
7784
|
-
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({
|
|
7785
7778
|
value: String(r),
|
|
7786
7779
|
unitkey: c,
|
|
7787
7780
|
toUnit: a,
|
|
@@ -7805,8 +7798,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7805
7798
|
}
|
|
7806
7799
|
return e;
|
|
7807
7800
|
})
|
|
7808
|
-
}),
|
|
7809
|
-
let { translations: i } =
|
|
7801
|
+
}), Ff = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7802
|
+
let { translations: i } = jf();
|
|
7810
7803
|
return e ? e.map((e) => ({
|
|
7811
7804
|
...e,
|
|
7812
7805
|
cells: e.cells.map((e) => {
|
|
@@ -7835,8 +7828,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7835
7828
|
return e;
|
|
7836
7829
|
})
|
|
7837
7830
|
})) : [];
|
|
7838
|
-
},
|
|
7839
|
-
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 }) => {
|
|
7840
7833
|
_({
|
|
7841
7834
|
...g,
|
|
7842
7835
|
[e]: n
|
|
@@ -7847,7 +7840,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7847
7840
|
newUnit: n,
|
|
7848
7841
|
unitKey: e
|
|
7849
7842
|
});
|
|
7850
|
-
}, b = s(({ row: e, rowIndex: t }) =>
|
|
7843
|
+
}, b = s(({ row: e, rowIndex: t }) => Pf({
|
|
7851
7844
|
row: c ? c({
|
|
7852
7845
|
row: e,
|
|
7853
7846
|
rowIndex: t
|
|
@@ -7876,7 +7869,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7876
7869
|
}, [t]), /* @__PURE__ */ y(yl, {
|
|
7877
7870
|
table: {
|
|
7878
7871
|
...d,
|
|
7879
|
-
headers:
|
|
7872
|
+
headers: Ff({
|
|
7880
7873
|
headers: e.headers,
|
|
7881
7874
|
selectedUnits: g,
|
|
7882
7875
|
storageUnits: f,
|
|
@@ -7887,8 +7880,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7887
7880
|
canListReorder: o,
|
|
7888
7881
|
beforeRenderRow: b
|
|
7889
7882
|
});
|
|
7890
|
-
},
|
|
7891
|
-
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 = [
|
|
7892
7885
|
...r ? [] : [{
|
|
7893
7886
|
label: d == null ? void 0 : d.allUsers,
|
|
7894
7887
|
value: !1
|
|
@@ -7903,7 +7896,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7903
7896
|
}] : []
|
|
7904
7897
|
], m = a !== void 0 && o !== void 0 && !cn(a, o);
|
|
7905
7898
|
return /* @__PURE__ */ b("div", {
|
|
7906
|
-
className:
|
|
7899
|
+
className: Lf.settingField,
|
|
7907
7900
|
"data-testid": u,
|
|
7908
7901
|
children: [/* @__PURE__ */ b(Nu, {
|
|
7909
7902
|
justifyContent: "space-between",
|
|
@@ -7935,19 +7928,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7935
7928
|
children: f(t)
|
|
7936
7929
|
})]
|
|
7937
7930
|
});
|
|
7938
|
-
},
|
|
7931
|
+
}, zf = (e, t) => {
|
|
7939
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;
|
|
7940
7933
|
return {
|
|
7941
7934
|
added: Math.max(0, i),
|
|
7942
7935
|
removed: Math.max(0, a)
|
|
7943
7936
|
};
|
|
7944
|
-
},
|
|
7937
|
+
}, Bf = "split", Vf = "unified", Hf = ({ oldJson: e, newJson: t, viewType: n = Bf }) => {
|
|
7945
7938
|
var r, i;
|
|
7946
|
-
let { translations: a } =
|
|
7947
|
-
value:
|
|
7939
|
+
let { translations: a } = jf(), [o, s] = h(n), c = [{
|
|
7940
|
+
value: Bf,
|
|
7948
7941
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7949
7942
|
}, {
|
|
7950
|
-
value:
|
|
7943
|
+
value: Vf,
|
|
7951
7944
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7952
7945
|
}];
|
|
7953
7946
|
l(() => {
|
|
@@ -7955,7 +7948,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7955
7948
|
}, [n]);
|
|
7956
7949
|
let u = ({ target: { value: e } }) => {
|
|
7957
7950
|
s(e);
|
|
7958
|
-
}, { added: d, removed: f } =
|
|
7951
|
+
}, { added: d, removed: f } = zf(e, t), p = d + f > 3500;
|
|
7959
7952
|
return /* @__PURE__ */ y(v, { children: /* @__PURE__ */ y(Ba, {
|
|
7960
7953
|
bordered: !0,
|
|
7961
7954
|
heading: /* @__PURE__ */ b(Nu, {
|
|
@@ -7988,14 +7981,14 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7988
7981
|
}) : /* @__PURE__ */ y(ei, {
|
|
7989
7982
|
oldValue: e,
|
|
7990
7983
|
newValue: t,
|
|
7991
|
-
splitView: o ===
|
|
7984
|
+
splitView: o === Bf,
|
|
7992
7985
|
compareMethod: ti.WORDS
|
|
7993
7986
|
})
|
|
7994
7987
|
}) });
|
|
7995
7988
|
};
|
|
7996
7989
|
//#endregion
|
|
7997
7990
|
//#region src/helpers/date.ts
|
|
7998
|
-
function
|
|
7991
|
+
function Uf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7999
7992
|
return e ? new Date(e).toLocaleString(a, {
|
|
8000
7993
|
year: "numeric",
|
|
8001
7994
|
month: "short",
|
|
@@ -8009,28 +8002,28 @@ function Wf({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8009
8002
|
}
|
|
8010
8003
|
//#endregion
|
|
8011
8004
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8012
|
-
function
|
|
8005
|
+
function Wf(e) {
|
|
8013
8006
|
var t;
|
|
8014
8007
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8015
8008
|
if (!n) throw Error("Invalid RegExp");
|
|
8016
8009
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8017
8010
|
}
|
|
8018
|
-
function
|
|
8011
|
+
function Gf(e) {
|
|
8019
8012
|
if (typeof e != "object") return e;
|
|
8020
8013
|
if (e === null) return null;
|
|
8021
|
-
if (Array.isArray(e)) return e.map(
|
|
8014
|
+
if (Array.isArray(e)) return e.map(Gf);
|
|
8022
8015
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8023
|
-
if (e instanceof RegExp) return
|
|
8016
|
+
if (e instanceof RegExp) return Wf(e);
|
|
8024
8017
|
let t = {};
|
|
8025
|
-
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]));
|
|
8026
8019
|
return t;
|
|
8027
8020
|
}
|
|
8028
8021
|
//#endregion
|
|
8029
8022
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8030
|
-
function
|
|
8023
|
+
function Kf(e, t) {
|
|
8031
8024
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8032
8025
|
}
|
|
8033
|
-
var
|
|
8026
|
+
var qf = (e) => e[e.length - 1], Jf = class {
|
|
8034
8027
|
setResult(e) {
|
|
8035
8028
|
return this.result = e, this.hasResult = !0, this;
|
|
8036
8029
|
}
|
|
@@ -8038,16 +8031,16 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8038
8031
|
return this.exiting = !0, this;
|
|
8039
8032
|
}
|
|
8040
8033
|
push(e, t) {
|
|
8041
|
-
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;
|
|
8042
8035
|
}
|
|
8043
|
-
},
|
|
8036
|
+
}, Yf = class extends Jf {
|
|
8044
8037
|
constructor(e, t) {
|
|
8045
8038
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8046
8039
|
}
|
|
8047
8040
|
prepareDeltaResult(e) {
|
|
8048
8041
|
var t, n, r, i;
|
|
8049
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)) {
|
|
8050
|
-
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;
|
|
8051
8044
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8052
8045
|
}
|
|
8053
8046
|
return e;
|
|
@@ -8055,15 +8048,15 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8055
8048
|
setResult(e) {
|
|
8056
8049
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8057
8050
|
}
|
|
8058
|
-
},
|
|
8051
|
+
}, Xf = class extends Jf {
|
|
8059
8052
|
constructor(e, t) {
|
|
8060
8053
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8061
8054
|
}
|
|
8062
|
-
},
|
|
8055
|
+
}, Zf = class extends Jf {
|
|
8063
8056
|
constructor(e) {
|
|
8064
8057
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8065
8058
|
}
|
|
8066
|
-
},
|
|
8059
|
+
}, Qf = class {
|
|
8067
8060
|
constructor(e) {
|
|
8068
8061
|
this.name = e, this.filters = [];
|
|
8069
8062
|
}
|
|
@@ -8127,7 +8120,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8127
8120
|
}
|
|
8128
8121
|
}), this);
|
|
8129
8122
|
}
|
|
8130
|
-
},
|
|
8123
|
+
}, $f = class {
|
|
8131
8124
|
constructor(e) {
|
|
8132
8125
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8133
8126
|
}
|
|
@@ -8154,7 +8147,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8154
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);
|
|
8155
8148
|
return n.hasResult ? n.result : void 0;
|
|
8156
8149
|
}
|
|
8157
|
-
},
|
|
8150
|
+
}, ep = (e, t, n, r) => e[n] === t[r], tp = (e, t, n, r) => {
|
|
8158
8151
|
var i, a, o;
|
|
8159
8152
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8160
8153
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8170,7 +8163,7 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8170
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);
|
|
8171
8164
|
}
|
|
8172
8165
|
return d;
|
|
8173
|
-
},
|
|
8166
|
+
}, np = (e, t, n, r) => {
|
|
8174
8167
|
let i = t.length, a = n.length, o = {
|
|
8175
8168
|
sequence: [],
|
|
8176
8169
|
indices1: [],
|
|
@@ -8192,11 +8185,11 @@ var Jf = (e) => e[e.length - 1], Yf = class {
|
|
|
8192
8185
|
}
|
|
8193
8186
|
}
|
|
8194
8187
|
return o;
|
|
8195
|
-
},
|
|
8188
|
+
}, rp = { get: (e, t, n, r) => {
|
|
8196
8189
|
let i = r || {};
|
|
8197
|
-
return
|
|
8198
|
-
} },
|
|
8199
|
-
function
|
|
8190
|
+
return np(tp(e, t, n || ep, i), e, t, i);
|
|
8191
|
+
} }, ip = 3;
|
|
8192
|
+
function ap(e, t, n, r) {
|
|
8200
8193
|
for (let i = 0; i < n; i++) {
|
|
8201
8194
|
let n = e[i];
|
|
8202
8195
|
for (let e = 0; e < r; e++) {
|
|
@@ -8206,7 +8199,7 @@ function op(e, t, n, r) {
|
|
|
8206
8199
|
}
|
|
8207
8200
|
return !1;
|
|
8208
8201
|
}
|
|
8209
|
-
function
|
|
8202
|
+
function op(e, t, n, r, i) {
|
|
8210
8203
|
let a = e[n], o = t[r];
|
|
8211
8204
|
if (a === o) return !0;
|
|
8212
8205
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8219,15 +8212,15 @@ function sp(e, t, n, r, i) {
|
|
|
8219
8212
|
let l = i.hashCache2[r];
|
|
8220
8213
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
8221
8214
|
}
|
|
8222
|
-
var
|
|
8215
|
+
var sp = function(e) {
|
|
8223
8216
|
var t, n, r, i, a;
|
|
8224
8217
|
if (!e.leftIsArray) return;
|
|
8225
8218
|
let o = {
|
|
8226
8219
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8227
8220
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8228
8221
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8229
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8230
|
-
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++;
|
|
8231
8224
|
let _;
|
|
8232
8225
|
if (s + c === m) {
|
|
8233
8226
|
if (m === h) {
|
|
@@ -8251,7 +8244,7 @@ var cp = function(e) {
|
|
|
8251
8244
|
return;
|
|
8252
8245
|
}
|
|
8253
8246
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8254
|
-
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 = [];
|
|
8255
8248
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8256
8249
|
let t = `_${l}`;
|
|
8257
8250
|
_[t] = [
|
|
@@ -8272,8 +8265,8 @@ var cp = function(e) {
|
|
|
8272
8265
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8273
8266
|
u = x[n];
|
|
8274
8267
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8275
|
-
if (u !== void 0 && r &&
|
|
8276
|
-
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;
|
|
8277
8270
|
break;
|
|
8278
8271
|
}
|
|
8279
8272
|
}
|
|
@@ -8281,20 +8274,20 @@ var cp = function(e) {
|
|
|
8281
8274
|
} else {
|
|
8282
8275
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8283
8276
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8284
|
-
d = b.indices2[t] + s, g = new
|
|
8277
|
+
d = b.indices2[t] + s, g = new Yf(f[u], p[d]), e.push(g, d);
|
|
8285
8278
|
}
|
|
8286
8279
|
}
|
|
8287
8280
|
e.setResult(_).exit();
|
|
8288
8281
|
};
|
|
8289
|
-
|
|
8290
|
-
var
|
|
8282
|
+
sp.filterName = "arrays";
|
|
8283
|
+
var cp = {
|
|
8291
8284
|
numerically(e, t) {
|
|
8292
8285
|
return e - t;
|
|
8293
8286
|
},
|
|
8294
8287
|
numericallyBy(e) {
|
|
8295
8288
|
return (t, n) => t[e] - n[e];
|
|
8296
8289
|
}
|
|
8297
|
-
},
|
|
8290
|
+
}, lp = function(e) {
|
|
8298
8291
|
var t;
|
|
8299
8292
|
if (!e.nested) return;
|
|
8300
8293
|
let n = e.delta;
|
|
@@ -8302,7 +8295,7 @@ var lp = {
|
|
|
8302
8295
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
8303
8296
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
8304
8297
|
let e = r;
|
|
8305
|
-
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));
|
|
8306
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]}`);
|
|
8307
8300
|
} else {
|
|
8308
8301
|
let e = r;
|
|
@@ -8314,15 +8307,15 @@ var lp = {
|
|
|
8314
8307
|
delta: a[e]
|
|
8315
8308
|
});
|
|
8316
8309
|
}
|
|
8317
|
-
for (s = s.sort(
|
|
8310
|
+
for (s = s.sort(cp.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8318
8311
|
if (i = s[r], i === void 0) continue;
|
|
8319
8312
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8320
|
-
(e == null ? void 0 : e[2]) ===
|
|
8313
|
+
(e == null ? void 0 : e[2]) === ip && c.push({
|
|
8321
8314
|
index: e[1],
|
|
8322
8315
|
value: t
|
|
8323
8316
|
});
|
|
8324
8317
|
}
|
|
8325
|
-
c = c.sort(
|
|
8318
|
+
c = c.sort(cp.numericallyBy("index"));
|
|
8326
8319
|
let u = c.length;
|
|
8327
8320
|
for (r = 0; r < u; r++) {
|
|
8328
8321
|
let e = c[r];
|
|
@@ -8332,7 +8325,7 @@ var lp = {
|
|
|
8332
8325
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8333
8326
|
let t = l[r];
|
|
8334
8327
|
if (t === void 0) continue;
|
|
8335
|
-
let n = new
|
|
8328
|
+
let n = new Xf(o[t.index], t.delta);
|
|
8336
8329
|
e.push(n, t.index);
|
|
8337
8330
|
}
|
|
8338
8331
|
if (!e.children) {
|
|
@@ -8341,8 +8334,8 @@ var lp = {
|
|
|
8341
8334
|
}
|
|
8342
8335
|
e.exit();
|
|
8343
8336
|
};
|
|
8344
|
-
|
|
8345
|
-
var
|
|
8337
|
+
lp.filterName = "arrays";
|
|
8338
|
+
var up = function(e) {
|
|
8346
8339
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8347
8340
|
let t = e.left, n = e.children.length;
|
|
8348
8341
|
for (let r = 0; r < n; r++) {
|
|
@@ -8353,16 +8346,16 @@ var dp = function(e) {
|
|
|
8353
8346
|
}
|
|
8354
8347
|
e.setResult(t).exit();
|
|
8355
8348
|
};
|
|
8356
|
-
|
|
8357
|
-
var
|
|
8349
|
+
up.filterName = "arraysCollectChildren";
|
|
8350
|
+
var dp = function(e) {
|
|
8358
8351
|
if (!e.nested) {
|
|
8359
8352
|
let t = e.delta;
|
|
8360
|
-
if (t[2] ===
|
|
8353
|
+
if (t[2] === ip) {
|
|
8361
8354
|
let n = t;
|
|
8362
8355
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8363
8356
|
n[0],
|
|
8364
8357
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8365
|
-
|
|
8358
|
+
ip
|
|
8366
8359
|
]).exit();
|
|
8367
8360
|
}
|
|
8368
8361
|
return;
|
|
@@ -8372,26 +8365,26 @@ var fp = function(e) {
|
|
|
8372
8365
|
let n = t;
|
|
8373
8366
|
for (let t in n) {
|
|
8374
8367
|
if (t === "_t") continue;
|
|
8375
|
-
let r = new
|
|
8368
|
+
let r = new Zf(n[t]);
|
|
8376
8369
|
e.push(r, t);
|
|
8377
8370
|
}
|
|
8378
8371
|
e.exit();
|
|
8379
8372
|
};
|
|
8380
|
-
|
|
8381
|
-
var
|
|
8373
|
+
dp.filterName = "arrays";
|
|
8374
|
+
var fp = (e, t, n) => {
|
|
8382
8375
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8383
8376
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8384
8377
|
let r = +t;
|
|
8385
8378
|
for (let n in e) {
|
|
8386
8379
|
let i = e[n];
|
|
8387
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
8380
|
+
if (Array.isArray(i)) if (i[2] === ip) {
|
|
8388
8381
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8389
8382
|
if (a === +t) return e;
|
|
8390
8383
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
8391
8384
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
8392
8385
|
}
|
|
8393
8386
|
return r;
|
|
8394
|
-
},
|
|
8387
|
+
}, pp = (e) => {
|
|
8395
8388
|
if (!e || !e.children) return;
|
|
8396
8389
|
let t = e.delta;
|
|
8397
8390
|
if (t._t !== "a") return;
|
|
@@ -8402,22 +8395,22 @@ var pp = (e, t, n) => {
|
|
|
8402
8395
|
let a = r.newName;
|
|
8403
8396
|
if (a === void 0) {
|
|
8404
8397
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8405
|
-
a =
|
|
8398
|
+
a = fp(n, r.childName, r.result);
|
|
8406
8399
|
}
|
|
8407
8400
|
i[a] !== r.result && (i[a] = r.result);
|
|
8408
8401
|
}
|
|
8409
8402
|
e.setResult(i).exit();
|
|
8410
8403
|
};
|
|
8411
|
-
|
|
8404
|
+
pp.filterName = "arraysCollectChildren";
|
|
8412
8405
|
//#endregion
|
|
8413
8406
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8414
|
-
var
|
|
8407
|
+
var mp = function(e) {
|
|
8415
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();
|
|
8416
8409
|
};
|
|
8417
|
-
|
|
8410
|
+
mp.filterName = "dates";
|
|
8418
8411
|
//#endregion
|
|
8419
8412
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8420
|
-
var
|
|
8413
|
+
var hp = new Set(["__proto__"]), gp = (e) => {
|
|
8421
8414
|
if (!e || !e.children) return;
|
|
8422
8415
|
let t = e.children.length, n = e.result;
|
|
8423
8416
|
for (let r = 0; r < t; r++) {
|
|
@@ -8429,18 +8422,18 @@ var gp = new Set(["__proto__"]), _p = (e) => {
|
|
|
8429
8422
|
}
|
|
8430
8423
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8431
8424
|
};
|
|
8432
|
-
|
|
8433
|
-
var
|
|
8425
|
+
gp.filterName = "collectChildren";
|
|
8426
|
+
var _p = (e) => {
|
|
8434
8427
|
var t;
|
|
8435
8428
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8436
8429
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8437
8430
|
for (let t in n) {
|
|
8438
8431
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8439
|
-
let a = new
|
|
8432
|
+
let a = new Yf(n[t], r[t]);
|
|
8440
8433
|
e.push(a, t);
|
|
8441
8434
|
}
|
|
8442
8435
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8443
|
-
let n = new
|
|
8436
|
+
let n = new Yf(void 0, r[t]);
|
|
8444
8437
|
e.push(n, t);
|
|
8445
8438
|
}
|
|
8446
8439
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8449,15 +8442,15 @@ var vp = (e) => {
|
|
|
8449
8442
|
}
|
|
8450
8443
|
e.exit();
|
|
8451
8444
|
};
|
|
8452
|
-
|
|
8453
|
-
var
|
|
8445
|
+
_p.filterName = "objects";
|
|
8446
|
+
var vp = function(e) {
|
|
8454
8447
|
if (!e.nested) return;
|
|
8455
8448
|
let t = e.delta;
|
|
8456
8449
|
if (t._t) return;
|
|
8457
8450
|
let n = t, r = !1;
|
|
8458
8451
|
for (let t in n) {
|
|
8459
|
-
if (
|
|
8460
|
-
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]);
|
|
8461
8454
|
e.push(a, t), r = !0;
|
|
8462
8455
|
}
|
|
8463
8456
|
if (!r) {
|
|
@@ -8466,8 +8459,8 @@ var yp = function(e) {
|
|
|
8466
8459
|
}
|
|
8467
8460
|
e.exit();
|
|
8468
8461
|
};
|
|
8469
|
-
|
|
8470
|
-
var
|
|
8462
|
+
vp.filterName = "objects";
|
|
8463
|
+
var yp = function(e) {
|
|
8471
8464
|
if (!e || !e.children || e.delta._t) return;
|
|
8472
8465
|
if (e.left === null || typeof e.left != "object") {
|
|
8473
8466
|
e.setResult(e.left).exit();
|
|
@@ -8478,17 +8471,17 @@ var bp = function(e) {
|
|
|
8478
8471
|
let n = e.children[r];
|
|
8479
8472
|
if (n === void 0) continue;
|
|
8480
8473
|
let i = n.childName;
|
|
8481
|
-
|
|
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));
|
|
8482
8475
|
}
|
|
8483
8476
|
e.setResult(t).exit();
|
|
8484
8477
|
};
|
|
8485
|
-
|
|
8486
|
-
var
|
|
8478
|
+
yp.filterName = "collectChildren";
|
|
8479
|
+
var bp = function(e) {
|
|
8487
8480
|
if (!e.nested || e.delta._t) return;
|
|
8488
8481
|
let t = e.delta, n = !1;
|
|
8489
8482
|
for (let r in t) {
|
|
8490
|
-
if (
|
|
8491
|
-
let i = new
|
|
8483
|
+
if (hp.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8484
|
+
let i = new Zf(t[r]);
|
|
8492
8485
|
e.push(i, r), n = !0;
|
|
8493
8486
|
}
|
|
8494
8487
|
if (!n) {
|
|
@@ -8497,25 +8490,25 @@ var xp = function(e) {
|
|
|
8497
8490
|
}
|
|
8498
8491
|
e.exit();
|
|
8499
8492
|
};
|
|
8500
|
-
|
|
8501
|
-
var
|
|
8493
|
+
bp.filterName = "objects";
|
|
8494
|
+
var xp = (e) => {
|
|
8502
8495
|
if (!e || !e.children || e.delta._t) return;
|
|
8503
8496
|
let t = e.children.length, n = {};
|
|
8504
8497
|
for (let r = 0; r < t; r++) {
|
|
8505
8498
|
let t = e.children[r];
|
|
8506
8499
|
if (t === void 0) continue;
|
|
8507
8500
|
let i = t.childName;
|
|
8508
|
-
|
|
8501
|
+
hp.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8509
8502
|
}
|
|
8510
8503
|
e.setResult(n).exit();
|
|
8511
8504
|
};
|
|
8512
|
-
|
|
8505
|
+
xp.filterName = "collectChildren";
|
|
8513
8506
|
//#endregion
|
|
8514
8507
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8515
|
-
var
|
|
8516
|
-
function
|
|
8508
|
+
var Sp = 2, Cp = 60, wp = null;
|
|
8509
|
+
function Tp(e, t) {
|
|
8517
8510
|
var n;
|
|
8518
|
-
if (!
|
|
8511
|
+
if (!wp) {
|
|
8519
8512
|
let r;
|
|
8520
8513
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8521
8514
|
else {
|
|
@@ -8523,7 +8516,7 @@ function Ep(e, t) {
|
|
|
8523
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.");
|
|
8524
8517
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8525
8518
|
}
|
|
8526
|
-
|
|
8519
|
+
wp = {
|
|
8527
8520
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8528
8521
|
patch: (e, t) => {
|
|
8529
8522
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8535,17 +8528,17 @@ function Ep(e, t) {
|
|
|
8535
8528
|
}
|
|
8536
8529
|
};
|
|
8537
8530
|
}
|
|
8538
|
-
return
|
|
8531
|
+
return wp;
|
|
8539
8532
|
}
|
|
8540
|
-
var
|
|
8533
|
+
var Ep = function(e) {
|
|
8541
8534
|
var t, n;
|
|
8542
8535
|
if (e.leftType !== "string") return;
|
|
8543
|
-
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;
|
|
8544
8537
|
if (r.length < a || i.length < a) {
|
|
8545
8538
|
e.setResult([r, i]).exit();
|
|
8546
8539
|
return;
|
|
8547
8540
|
}
|
|
8548
|
-
let o =
|
|
8541
|
+
let o = Tp(e.options);
|
|
8549
8542
|
if (!o) {
|
|
8550
8543
|
e.setResult([r, i]).exit();
|
|
8551
8544
|
return;
|
|
@@ -8554,19 +8547,19 @@ var Dp = function(e) {
|
|
|
8554
8547
|
e.setResult([
|
|
8555
8548
|
s(r, i),
|
|
8556
8549
|
0,
|
|
8557
|
-
|
|
8550
|
+
Sp
|
|
8558
8551
|
]).exit();
|
|
8559
8552
|
};
|
|
8560
|
-
|
|
8561
|
-
var
|
|
8553
|
+
Ep.filterName = "texts";
|
|
8554
|
+
var Dp = function(e) {
|
|
8562
8555
|
if (e.nested) return;
|
|
8563
8556
|
let t = e.delta;
|
|
8564
|
-
if (t[2] !==
|
|
8565
|
-
let n = t, r =
|
|
8557
|
+
if (t[2] !== Sp) return;
|
|
8558
|
+
let n = t, r = Tp(e.options, !0).patch;
|
|
8566
8559
|
e.setResult(r(e.left, n[0])).exit();
|
|
8567
8560
|
};
|
|
8568
|
-
|
|
8569
|
-
var
|
|
8561
|
+
Dp.filterName = "texts";
|
|
8562
|
+
var Op = (e) => {
|
|
8570
8563
|
var t, n, r;
|
|
8571
8564
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8572
8565
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8587,21 +8580,21 @@ var kp = (e) => {
|
|
|
8587
8580
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8588
8581
|
}
|
|
8589
8582
|
return a.join("\n");
|
|
8590
|
-
},
|
|
8583
|
+
}, kp = function(e) {
|
|
8591
8584
|
if (e.nested) return;
|
|
8592
8585
|
let t = e.delta;
|
|
8593
|
-
if (t[2] !==
|
|
8586
|
+
if (t[2] !== Sp) return;
|
|
8594
8587
|
let n = t;
|
|
8595
8588
|
e.setResult([
|
|
8596
|
-
|
|
8589
|
+
Op(n[0]),
|
|
8597
8590
|
0,
|
|
8598
|
-
|
|
8591
|
+
Sp
|
|
8599
8592
|
]).exit();
|
|
8600
8593
|
};
|
|
8601
|
-
|
|
8594
|
+
kp.filterName = "texts";
|
|
8602
8595
|
//#endregion
|
|
8603
8596
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8604
|
-
var
|
|
8597
|
+
var Ap = function(e) {
|
|
8605
8598
|
if (e.left === e.right) {
|
|
8606
8599
|
e.setResult(void 0).exit();
|
|
8607
8600
|
return;
|
|
@@ -8634,8 +8627,8 @@ var jp = function(e) {
|
|
|
8634
8627
|
}
|
|
8635
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());
|
|
8636
8629
|
};
|
|
8637
|
-
|
|
8638
|
-
var
|
|
8630
|
+
Ap.filterName = "trivial";
|
|
8631
|
+
var jp = function(e) {
|
|
8639
8632
|
if (e.delta === void 0) {
|
|
8640
8633
|
e.setResult(e.left).exit();
|
|
8641
8634
|
return;
|
|
@@ -8659,8 +8652,8 @@ var Mp = function(e) {
|
|
|
8659
8652
|
}
|
|
8660
8653
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8661
8654
|
};
|
|
8662
|
-
|
|
8663
|
-
var
|
|
8655
|
+
jp.filterName = "trivial";
|
|
8656
|
+
var Mp = function(e) {
|
|
8664
8657
|
if (e.delta === void 0) {
|
|
8665
8658
|
e.setResult(e.delta).exit();
|
|
8666
8659
|
return;
|
|
@@ -8681,36 +8674,36 @@ var Np = function(e) {
|
|
|
8681
8674
|
}
|
|
8682
8675
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8683
8676
|
};
|
|
8684
|
-
|
|
8677
|
+
Mp.filterName = "trivial";
|
|
8685
8678
|
//#endregion
|
|
8686
8679
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8687
|
-
var
|
|
8680
|
+
var Np = class {
|
|
8688
8681
|
constructor(e) {
|
|
8689
|
-
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());
|
|
8690
8683
|
}
|
|
8691
8684
|
options(e) {
|
|
8692
8685
|
return this.processor.options(e);
|
|
8693
8686
|
}
|
|
8694
8687
|
diff(e, t) {
|
|
8695
|
-
return this.processor.process(new
|
|
8688
|
+
return this.processor.process(new Yf(e, t));
|
|
8696
8689
|
}
|
|
8697
8690
|
patch(e, t) {
|
|
8698
|
-
return this.processor.process(new
|
|
8691
|
+
return this.processor.process(new Xf(e, t));
|
|
8699
8692
|
}
|
|
8700
8693
|
reverse(e) {
|
|
8701
|
-
return this.processor.process(new
|
|
8694
|
+
return this.processor.process(new Zf(e));
|
|
8702
8695
|
}
|
|
8703
8696
|
unpatch(e, t) {
|
|
8704
8697
|
return this.patch(e, this.reverse(t));
|
|
8705
8698
|
}
|
|
8706
8699
|
clone(e) {
|
|
8707
|
-
return
|
|
8700
|
+
return Gf(e);
|
|
8708
8701
|
}
|
|
8709
8702
|
};
|
|
8710
8703
|
//#endregion
|
|
8711
8704
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8712
|
-
function
|
|
8713
|
-
return new
|
|
8705
|
+
function Pp(e) {
|
|
8706
|
+
return new Np(e);
|
|
8714
8707
|
}
|
|
8715
8708
|
//#endregion
|
|
8716
8709
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9283,46 +9276,46 @@ $.Diff = function(e, t) {
|
|
|
9283
9276
|
};
|
|
9284
9277
|
//#endregion
|
|
9285
9278
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9286
|
-
var
|
|
9279
|
+
var Fp = (e = {}) => Pp({
|
|
9287
9280
|
...e,
|
|
9288
9281
|
textDiff: {
|
|
9289
9282
|
diffMatchPatch: $,
|
|
9290
9283
|
minLength: 120
|
|
9291
9284
|
},
|
|
9292
9285
|
cloneDiffValues: !0
|
|
9293
|
-
}),
|
|
9286
|
+
}), Ip = ["user", "unittemplate"], Lp = Fp(), Rp = (e, t, n) => {
|
|
9294
9287
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9295
9288
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9296
9289
|
let n = r[t[e]];
|
|
9297
9290
|
if (n) return n;
|
|
9298
9291
|
}
|
|
9299
9292
|
return n || "";
|
|
9300
|
-
},
|
|
9293
|
+
}, zp = (e) => {
|
|
9301
9294
|
let t = (e) => er(e) ? fr(e) : String(e);
|
|
9302
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);
|
|
9303
|
-
},
|
|
9296
|
+
}, Bp = (e) => {
|
|
9304
9297
|
switch (e.length) {
|
|
9305
9298
|
case 1: {
|
|
9306
9299
|
let [t] = e;
|
|
9307
9300
|
return {
|
|
9308
9301
|
type: "created",
|
|
9309
9302
|
before: "",
|
|
9310
|
-
after:
|
|
9303
|
+
after: zp(t)
|
|
9311
9304
|
};
|
|
9312
9305
|
}
|
|
9313
9306
|
case 2: {
|
|
9314
9307
|
let [t, n] = e;
|
|
9315
9308
|
return {
|
|
9316
9309
|
type: "modified",
|
|
9317
|
-
before:
|
|
9318
|
-
after:
|
|
9310
|
+
before: zp(t),
|
|
9311
|
+
after: zp(n)
|
|
9319
9312
|
};
|
|
9320
9313
|
}
|
|
9321
9314
|
case 3: {
|
|
9322
9315
|
let [t] = e;
|
|
9323
9316
|
return {
|
|
9324
9317
|
type: "deleted",
|
|
9325
|
-
before:
|
|
9318
|
+
before: zp(t),
|
|
9326
9319
|
after: ""
|
|
9327
9320
|
};
|
|
9328
9321
|
}
|
|
@@ -9332,15 +9325,15 @@ var Ip = (e = {}) => Fp({
|
|
|
9332
9325
|
after: ""
|
|
9333
9326
|
};
|
|
9334
9327
|
}
|
|
9335
|
-
},
|
|
9336
|
-
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);
|
|
9337
9330
|
if (!r) return {
|
|
9338
9331
|
oldJson: "",
|
|
9339
9332
|
newJson: "",
|
|
9340
9333
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9341
9334
|
};
|
|
9342
9335
|
let i = t.filter((e) => {
|
|
9343
|
-
let t =
|
|
9336
|
+
let t = Up(e);
|
|
9344
9337
|
return !!(e.diffs && t && t >= r);
|
|
9345
9338
|
}), a = Array.from({ length: i.length + 1 });
|
|
9346
9339
|
a[0] = $t(n);
|
|
@@ -9353,7 +9346,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9353
9346
|
a[e + 1] = a[e];
|
|
9354
9347
|
continue;
|
|
9355
9348
|
}
|
|
9356
|
-
a[e + 1] =
|
|
9349
|
+
a[e + 1] = Hp(a[e], t);
|
|
9357
9350
|
}
|
|
9358
9351
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9359
9352
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9368,10 +9361,10 @@ var Ip = (e = {}) => Fp({
|
|
|
9368
9361
|
oldJson: o,
|
|
9369
9362
|
newJson: s
|
|
9370
9363
|
};
|
|
9371
|
-
},
|
|
9364
|
+
}, Gp = (e, t, n = {}, r = []) => {
|
|
9372
9365
|
var i;
|
|
9373
9366
|
if (!e) return;
|
|
9374
|
-
let a = [...
|
|
9367
|
+
let a = [...Ip, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9375
9368
|
Object.keys(e).forEach((i) => {
|
|
9376
9369
|
var o;
|
|
9377
9370
|
let s = e[i];
|
|
@@ -9384,12 +9377,12 @@ var Ip = (e = {}) => Fp({
|
|
|
9384
9377
|
an(s) ? t.push({
|
|
9385
9378
|
deltaFormat: [...s],
|
|
9386
9379
|
path: c
|
|
9387
|
-
}) : fn(s) &&
|
|
9380
|
+
}) : fn(s) && Gp(s, t, n, c);
|
|
9388
9381
|
});
|
|
9389
|
-
},
|
|
9382
|
+
}, Kp = (e, t = {}) => {
|
|
9390
9383
|
let n = [];
|
|
9391
|
-
return e ? (
|
|
9392
|
-
},
|
|
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) => {
|
|
9393
9386
|
if (e == null || e === "") return "empty";
|
|
9394
9387
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9395
9388
|
if (typeof e == "string") return e;
|
|
@@ -9400,32 +9393,32 @@ var Ip = (e = {}) => Fp({
|
|
|
9400
9393
|
} catch {
|
|
9401
9394
|
return String(e);
|
|
9402
9395
|
}
|
|
9403
|
-
},
|
|
9396
|
+
}, Yp = (e, t = e.length - 1) => {
|
|
9404
9397
|
if (t >= e.length) return "Value";
|
|
9405
9398
|
let n = e[t];
|
|
9406
|
-
return !n || Zn(n) ?
|
|
9407
|
-
},
|
|
9408
|
-
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}` : "";
|
|
9409
9402
|
switch (t) {
|
|
9410
9403
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9411
9404
|
case "created": return `${e} created ${s}${c}.`;
|
|
9412
9405
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9413
9406
|
default: return `${e} changed ${n}${c}.`;
|
|
9414
9407
|
}
|
|
9415
|
-
},
|
|
9408
|
+
}, Zp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(yl, { table: {
|
|
9416
9409
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9417
9410
|
rows: n.map((n) => {
|
|
9418
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9419
|
-
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({
|
|
9420
9413
|
userName: t,
|
|
9421
9414
|
type: s,
|
|
9422
|
-
property:
|
|
9415
|
+
property: Yp(a),
|
|
9423
9416
|
before: c,
|
|
9424
9417
|
after: l,
|
|
9425
9418
|
sectionName: o
|
|
9426
9419
|
}) }] };
|
|
9427
9420
|
})
|
|
9428
|
-
} }),
|
|
9421
|
+
} }), Qp = Object.freeze({
|
|
9429
9422
|
summary: {
|
|
9430
9423
|
label: "Summary",
|
|
9431
9424
|
value: "summary"
|
|
@@ -9434,13 +9427,13 @@ var Ip = (e = {}) => Fp({
|
|
|
9434
9427
|
label: "Compare",
|
|
9435
9428
|
value: "compare"
|
|
9436
9429
|
}
|
|
9437
|
-
}),
|
|
9438
|
-
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 }) => ({
|
|
9439
9432
|
label: e,
|
|
9440
9433
|
value: t
|
|
9441
9434
|
})), [l, u] = h(c[0]), { diffs: d = void 0 } = e || {};
|
|
9442
9435
|
if (!d) return null;
|
|
9443
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9436
|
+
let { oldJson: f, newJson: p, error: m } = Wp(e, t, n);
|
|
9444
9437
|
return /* @__PURE__ */ y(Jo, {
|
|
9445
9438
|
visible: r,
|
|
9446
9439
|
centered: !0,
|
|
@@ -9452,15 +9445,15 @@ var Ip = (e = {}) => Fp({
|
|
|
9452
9445
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9453
9446
|
options: c,
|
|
9454
9447
|
value: l
|
|
9455
|
-
}), l.value === "summary" ? /* @__PURE__ */ y(
|
|
9448
|
+
}), l.value === "summary" ? /* @__PURE__ */ y(Zp, {
|
|
9456
9449
|
userName: e.userName,
|
|
9457
9450
|
sectionNames: a,
|
|
9458
|
-
diffs:
|
|
9451
|
+
diffs: Kp(d, i),
|
|
9459
9452
|
defaultSectionName: o
|
|
9460
9453
|
}) : m ? /* @__PURE__ */ y("div", {
|
|
9461
9454
|
style: { padding: 16 },
|
|
9462
9455
|
children: m
|
|
9463
|
-
}) : /* @__PURE__ */ y(
|
|
9456
|
+
}) : /* @__PURE__ */ y(Hf, {
|
|
9464
9457
|
oldJson: f,
|
|
9465
9458
|
newJson: p
|
|
9466
9459
|
})] }),
|
|
@@ -9473,7 +9466,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9473
9466
|
height: "90vh"
|
|
9474
9467
|
} })
|
|
9475
9468
|
});
|
|
9476
|
-
},
|
|
9469
|
+
}, em = [
|
|
9477
9470
|
{
|
|
9478
9471
|
label: "10 / page",
|
|
9479
9472
|
value: 10
|
|
@@ -9486,8 +9479,8 @@ var Ip = (e = {}) => Fp({
|
|
|
9486
9479
|
label: "50 / page",
|
|
9487
9480
|
value: 50
|
|
9488
9481
|
}
|
|
9489
|
-
],
|
|
9490
|
-
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";
|
|
9491
9484
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9492
9485
|
switch (a) {
|
|
9493
9486
|
case "Created": return `Created by ${r}`;
|
|
@@ -9497,7 +9490,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9497
9490
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9498
9491
|
default: return `Change by ${r}`;
|
|
9499
9492
|
}
|
|
9500
|
-
},
|
|
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 }) => {
|
|
9501
9494
|
let [_, x] = h(!1), [S, C] = h(null), w = (e) => {
|
|
9502
9495
|
if (e.snapshot) {
|
|
9503
9496
|
f == null || f(e.snapshot, e);
|
|
@@ -9516,7 +9509,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9516
9509
|
return {
|
|
9517
9510
|
cells: [
|
|
9518
9511
|
{
|
|
9519
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9512
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : tm(e, l),
|
|
9520
9513
|
type: "Link",
|
|
9521
9514
|
disabled: n,
|
|
9522
9515
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9535,8 +9528,8 @@ var Ip = (e = {}) => Fp({
|
|
|
9535
9528
|
type: "Static"
|
|
9536
9529
|
},
|
|
9537
9530
|
{
|
|
9538
|
-
value:
|
|
9539
|
-
date:
|
|
9531
|
+
value: Uf({
|
|
9532
|
+
date: Up(e),
|
|
9540
9533
|
showTime: !0
|
|
9541
9534
|
}),
|
|
9542
9535
|
type: "Static"
|
|
@@ -9579,14 +9572,14 @@ var Ip = (e = {}) => Fp({
|
|
|
9579
9572
|
onChange: (e) => {
|
|
9580
9573
|
u(Number(e.target.value));
|
|
9581
9574
|
},
|
|
9582
|
-
options:
|
|
9575
|
+
options: em,
|
|
9583
9576
|
value: a
|
|
9584
9577
|
},
|
|
9585
9578
|
onSelectPage: (e) => d(e),
|
|
9586
9579
|
small: !0
|
|
9587
9580
|
} }
|
|
9588
9581
|
} })
|
|
9589
|
-
}), _ && S && S.diffs && /* @__PURE__ */ y(
|
|
9582
|
+
}), _ && S && S.diffs && /* @__PURE__ */ y($p, {
|
|
9590
9583
|
sectionNames: o,
|
|
9591
9584
|
isOpen: _,
|
|
9592
9585
|
onClose: () => x(!1),
|
|
@@ -9596,7 +9589,7 @@ var Ip = (e = {}) => Fp({
|
|
|
9596
9589
|
data: t,
|
|
9597
9590
|
transformDiffsConfig: l
|
|
9598
9591
|
})] });
|
|
9599
|
-
},
|
|
9592
|
+
}, rm = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9600
9593
|
let i = window.location.href, a = m(i);
|
|
9601
9594
|
return l(() => {
|
|
9602
9595
|
a.current = i;
|
|
@@ -9619,10 +9612,10 @@ var Ip = (e = {}) => Fp({
|
|
|
9619
9612
|
});
|
|
9620
9613
|
};
|
|
9621
9614
|
}, [e, t]), null;
|
|
9622
|
-
},
|
|
9623
|
-
|
|
9624
|
-
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 });
|
|
9625
9618
|
});
|
|
9626
9619
|
};
|
|
9627
9620
|
//#endregion
|
|
9628
|
-
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 };
|