@oliasoft-open-source/react-ui-library 6.5.0 → 6.6.0-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/slider/slider.d.ts +1 -2
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.stories.d.ts +0 -1
- package/dist/components/slider/slider.stories.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table-check-context.d.ts +10 -5
- package/dist/components/tree-table/tree-table-check-context.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table-row.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.d.ts +4 -4
- package/dist/components/tree-table/tree-table.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.stories-data.d.ts.map +1 -1
- package/dist/components/tree-table/tree-table.stories.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +736 -734
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,69 +4,69 @@ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
|
4
4
|
import { TbAlertTriangle as b, TbArrowDown as x, TbArrowLeft as S, TbArrowRight as C, TbArrowUp as w, TbArrowsDiagonal as T, TbArrowsMaximize as E, TbArrowsMinimize as D, TbArrowsMove as O, TbArrowsSplit as k, TbBell as A, TbBold as j, TbBolt as M, TbBook2 as N, TbBuildingSkyscraper as P, TbCamera as F, TbChartBar as I, TbChartLine as ee, TbChartPie2 as L, TbCheck as te, TbChevronDown as ne, TbChevronLeft as re, TbChevronRight as ie, TbChevronUp as ae, TbChevronsLeft as R, TbChevronsRight as oe, TbCircle as se, TbCircleCheck as ce, TbCircleX as le, TbClipboard as z, TbClock as ue, TbCode as de, TbCopy as fe, TbCornerDownRight as pe, TbDeviceFloppy as me, TbDeviceLaptop as he, TbDotsVertical as ge, TbDownload as _e, TbDroplet as ve, TbExclamationMark as ye, TbExternalLink as be, TbEye as xe, TbEyeOff as Se, TbFile as Ce, TbFilter as we, TbFilterOff as Te, TbFocusCentered as Ee, TbFolder as De, TbFolderSearch as Oe, TbGauge as ke, TbGitFork as Ae, TbGripVertical as je, TbHelp as Me, TbInfoCircle as Ne, TbItalic as Pe, TbKey as Fe, TbLayoutColumns as Ie, TbLayoutRows as Le, TbLibraryMinus as Re, TbLibraryPlus as ze, TbLink as Be, TbLinkOff as Ve, TbList as He, TbListNumbers as Ue, TbLoader2 as We, TbLock as Ge, TbLockOpen as Ke, TbMapPin as qe, TbMessageCircle as Je, TbMinus as Ye, TbMoon as Xe, TbMovie as Ze, TbNote as Qe, TbPencil as $e, TbPlayerPause as et, TbPlayerPlay as tt, TbPlayerSkipBack as nt, TbPlayerSkipForward as rt, TbPlayerStop as it, TbPlayerTrackNext as at, TbPlayerTrackPrev as ot, TbPlus as st, TbQuestionMark as ct, TbRefresh as lt, TbReload as ut, TbRotate as dt, TbRowInsertBottom as ft, TbRowInsertTop as pt, TbRuler3 as mt, TbScale as ht, TbSearch as gt, TbServer as _t, TbSettings as vt, TbSortAscending as yt, TbSortDescending as bt, TbSquarePlus as xt, TbStar as St, TbSun as Ct, TbTable as wt, TbTarget as Tt, TbTrash as Et, TbUpload as Dt, TbUser as Ot, TbUsers as kt, TbX as At } from "react-icons/tb";
|
|
5
5
|
import { CSSTransition as jt } from "react-transition-group";
|
|
6
6
|
import { FloatingArrow as Mt, FloatingNode as Nt, FloatingPortal as Pt, FloatingTree as Ft, arrow as It, autoUpdate as Lt, flip as Rt, offset as zt, shift as Bt, size as Vt, useClientPoint as Ht, useDismiss as Ut, useFloating as Wt, useFloatingNodeId as Gt, useFloatingParentNodeId as Kt, useHover as qt, useInteractions as Jt, useMergeRefs as Yt } from "@floating-ui/react";
|
|
7
|
-
import { cloneDeep as Xt, cloneDeepWith as Zt, debounce as Qt, every as $t, get as en, isArray as tn, isBoolean as nn, isEmpty as rn, isEqual as an, isFunction as on, isNil as sn, isNumber as cn, isObject as ln, isPlainObject as un, isString as dn, keys as fn, noop as
|
|
8
|
-
import { Resizable as
|
|
9
|
-
import { createPortal as
|
|
10
|
-
import { ALT_UNITS as
|
|
11
|
-
import { List as
|
|
12
|
-
import { SortableContext as
|
|
13
|
-
import { CSS as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { DndContext as
|
|
18
|
-
import { useVirtualizer as
|
|
19
|
-
import { SimplifyAP as
|
|
20
|
-
import
|
|
21
|
-
import { Slide as
|
|
22
|
-
import { isNil as
|
|
23
|
-
import { EditorContent as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { Markdown as
|
|
27
|
-
import
|
|
7
|
+
import { cloneDeep as Xt, cloneDeepWith as Zt, debounce as Qt, every as $t, get as en, isArray as tn, isBoolean as nn, isEmpty as rn, isEqual as an, isFunction as on, isNil as sn, isNumber as cn, isObject as ln, isPlainObject as un, isString as dn, keys as fn, noop as B, set as pn, toLower as mn, toNumber as hn, values as gn } from "es-toolkit/compat";
|
|
8
|
+
import { Resizable as _n } from "react-resizable";
|
|
9
|
+
import { createPortal as vn } from "react-dom";
|
|
10
|
+
import { ALT_UNITS as yn, KNOWN_UNITS as bn, altUnitsList as xn, cleanNumStr as Sn, convertAndGetValue as Cn, convertSamePrecision as wn, getAltUnitsListByQuantity as Tn, getUnit as En, getUnitsForQuantity as Dn, getValue as On, isNumeric as kn, isScientificStringNum as An, isValidNum as jn, isValueWithUnit as Mn, label as Nn, roundByMagnitude as Pn, roundByMagnitudeToFixed as Fn, roundToFixed as In, roundToPrecision as Ln, split as Rn, stripLeadingZeros as zn, toNum as Bn, toString as Vn, unitFromQuantity as Hn, validateNumber as Un, withPrettyUnitLabel as Wn, withUnit as Gn } from "@oliasoft-open-source/units";
|
|
11
|
+
import { List as Kn } from "react-window";
|
|
12
|
+
import { SortableContext as qn, useSortable as Jn, verticalListSortingStrategy as Yn } from "@dnd-kit/sortable";
|
|
13
|
+
import { CSS as Xn } from "@dnd-kit/utilities";
|
|
14
|
+
import Zn from "rc-slider";
|
|
15
|
+
import Qn from "memoize-one";
|
|
16
|
+
import $n from "react-fast-compare";
|
|
17
|
+
import { DndContext as er, DragOverlay as tr, closestCenter as nr } from "@dnd-kit/core";
|
|
18
|
+
import { useVirtualizer as rr } from "@tanstack/react-virtual";
|
|
19
|
+
import { SimplifyAP as ir } from "simplify-ts";
|
|
20
|
+
import ar from "papaparse";
|
|
21
|
+
import { Slide as or, ToastContainer as sr, toast as cr } from "react-toastify";
|
|
22
|
+
import { isNil as lr } from "es-toolkit";
|
|
23
|
+
import { EditorContent as ur, useEditor as dr } from "@tiptap/react";
|
|
24
|
+
import fr from "@tiptap/starter-kit";
|
|
25
|
+
import pr from "@tiptap/extension-placeholder";
|
|
26
|
+
import { Markdown as mr } from "@tiptap/markdown";
|
|
27
|
+
import hr from "react-loading-skeleton";
|
|
28
28
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
29
|
-
import { DndProvider as
|
|
30
|
-
import { MultiBackend as
|
|
31
|
-
import
|
|
29
|
+
import { DndProvider as gr } from "react-dnd";
|
|
30
|
+
import { MultiBackend as _r, Tree as vr, getBackendOptions as yr } from "@minoru/react-dnd-treeview";
|
|
31
|
+
import br, { DiffMethod as xr } from "react-diff-viewer-continued";
|
|
32
32
|
//#region src/typings/common-types.ts
|
|
33
|
-
var
|
|
33
|
+
var Sr = /* @__PURE__ */ function(e) {
|
|
34
34
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
35
|
-
}({}),
|
|
35
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
36
36
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
37
|
-
}({}),
|
|
37
|
+
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
38
38
|
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
39
|
-
}({}),
|
|
39
|
+
}({}), wr = /* @__PURE__ */ function(e) {
|
|
40
40
|
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
41
|
-
}({}),
|
|
41
|
+
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
42
42
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
43
|
-
}({}),
|
|
43
|
+
}({}), H = /* @__PURE__ */ function(e) {
|
|
44
44
|
return e.LIBRARY = "library", e.ADD = "add", e.DRAG = "drag", e.HELP = "help", e.NOTIFICATION = "notification", e.MENU = "menu", e.EDIT = "edit", e.FAST_FORWARD = "fast forward", e.INDENT = "indent", e.STAR = "star", e.LIST = "list", e.SETTINGS = "settings", e.CHECK = "check", e.LOCK = "lock", e.UNLOCK = "unlock", e.CLOSE = "close", e.SUCCESS = "success", e.WARNING = "warning", e.ERROR = "error", e.INFO = "info", e.LEFT = "left", e.COLLAPSE = "collapse", e.EXPAND = "expand", e.SORT_ASCENDING = "sort ascending", e.SORT_DESCENDING = "sort descending", e.FAST_BACKWARD = "fast backward", e.CHEVRON_DOWN = "chevron down", e.CHEVRON_RIGHT = "chevron right", e.CHEVRON_LEFT = "chevron left", e.CHEVRON_DOUBLE_LEFT = "chevron double left", e.CHEVRON_DOUBLE_RIGHT = "chevron double right", e;
|
|
45
|
-
}({}),
|
|
45
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
46
46
|
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
47
|
-
}({}),
|
|
47
|
+
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
48
48
|
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
49
|
-
}({}),
|
|
49
|
+
}({}), Or = /* @__PURE__ */ function(e) {
|
|
50
50
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
51
|
-
}({}),
|
|
51
|
+
}({}), kr = {
|
|
52
52
|
chevron: "_chevron_dd6mn_1",
|
|
53
53
|
expanded: "_expanded_dd6mn_9"
|
|
54
|
-
},
|
|
54
|
+
}, U = e.createContext(!1), Ar = {
|
|
55
55
|
wrapper: "_wrapper_18w09_1",
|
|
56
56
|
customSvg: "_customSvg_18w09_8",
|
|
57
57
|
customPng: "_customPng_18w09_14",
|
|
58
58
|
clickable: "_clickable_18w09_19"
|
|
59
|
-
},
|
|
59
|
+
}, jr = ({ src: e, size: t }) => {
|
|
60
60
|
let n = t == null ? "1em" : t, r = {
|
|
61
61
|
width: n,
|
|
62
62
|
height: n,
|
|
63
63
|
mask: `url("${e}") no-repeat center / contain`
|
|
64
64
|
};
|
|
65
65
|
return /* @__PURE__ */ v("span", {
|
|
66
|
-
className:
|
|
66
|
+
className: Ar.customSvg,
|
|
67
67
|
style: r
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, Mr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-square-minus'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2012h6'%20/%3e%3cpath%20d='M3%205a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v14a2%202%200%200%201%20-2%202h-14a2%202%200%200%201%20-2%20-2v-14'%20/%3e%3c/svg%3e", Nr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Pr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%204V12M18%2020H6C4.89543%2020%204%2019.1046%204%2018V6C4%204.8954%204.89543%204%206%204H18C19.1046%204%2020%204.8954%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Fr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%2020V12M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3csvg%20fill='none'%20height='1em'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12%2020v-16m-8%208h8m8-6v12c0%201.1046-.8954%202-2%202h-12c-1.1046%200-2-.8954-2-2v-12c0-1.1046.8954-2%202-2h12c1.1046%200%202%20.8954%202%202z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e", Lr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%204L12%2020M20%2012H12M4%2018L4%206C4%204.89543%204.89543%204%206%204L18%204C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Rr = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204M6%204H18M6%204H12M18%204H12M4%2012H20M12%204V20'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", zr = ({ icon: e }) => {
|
|
70
70
|
switch (e) {
|
|
71
71
|
case "add":
|
|
72
72
|
case "plus": return /* @__PURE__ */ v(st, {});
|
|
@@ -105,7 +105,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
105
105
|
case "copy":
|
|
106
106
|
case "duplicate": return /* @__PURE__ */ v(fe, {});
|
|
107
107
|
case "code": return /* @__PURE__ */ v(de, {});
|
|
108
|
-
case "collapse": return /* @__PURE__ */ v(
|
|
108
|
+
case "collapse": return /* @__PURE__ */ v(jr, { src: Mr });
|
|
109
109
|
case "collapse all": return /* @__PURE__ */ v(Re, {});
|
|
110
110
|
case "company": return /* @__PURE__ */ v(P, {});
|
|
111
111
|
case "compare": return /* @__PURE__ */ v(ht, {});
|
|
@@ -143,15 +143,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
143
143
|
case "layout columns":
|
|
144
144
|
case "columns": return /* @__PURE__ */ v(Ie, {});
|
|
145
145
|
case "layout grid":
|
|
146
|
-
case "grid": return /* @__PURE__ */ v(
|
|
146
|
+
case "grid": return /* @__PURE__ */ v(jr, { src: Rr });
|
|
147
147
|
case "layout rows":
|
|
148
148
|
case "rows": return /* @__PURE__ */ v(Le, {});
|
|
149
149
|
case "layout single":
|
|
150
|
-
case "square": return /* @__PURE__ */ v(
|
|
151
|
-
case "layout 3 split top": return /* @__PURE__ */ v(
|
|
152
|
-
case "layout 3 split bottom": return /* @__PURE__ */ v(
|
|
153
|
-
case "layout 3 split left": return /* @__PURE__ */ v(
|
|
154
|
-
case "layout 3 split right": return /* @__PURE__ */ v(
|
|
150
|
+
case "square": return /* @__PURE__ */ v(jr, { src: Nr });
|
|
151
|
+
case "layout 3 split top": return /* @__PURE__ */ v(jr, { src: Pr });
|
|
152
|
+
case "layout 3 split bottom": return /* @__PURE__ */ v(jr, { src: Fr });
|
|
153
|
+
case "layout 3 split left": return /* @__PURE__ */ v(jr, { src: Ir });
|
|
154
|
+
case "layout 3 split right": return /* @__PURE__ */ v(jr, { src: Lr });
|
|
155
155
|
case "link": return /* @__PURE__ */ v(Be, {});
|
|
156
156
|
case "list":
|
|
157
157
|
case "legend":
|
|
@@ -220,8 +220,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
220
220
|
case "": return null;
|
|
221
221
|
default: return /* @__PURE__ */ v(se, {});
|
|
222
222
|
}
|
|
223
|
-
},
|
|
224
|
-
let c = s(
|
|
223
|
+
}, W = ({ icon: e, onClick: t, clickable: n = !1, color: r, size: a, testId: o }) => {
|
|
224
|
+
let c = s(U), l = {
|
|
225
225
|
color: r,
|
|
226
226
|
fill: r,
|
|
227
227
|
fontSize: a || "inherit",
|
|
@@ -229,23 +229,23 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
229
229
|
height: a || "auto"
|
|
230
230
|
};
|
|
231
231
|
return /* @__PURE__ */ v("div", {
|
|
232
|
-
className: g(
|
|
232
|
+
className: g(Ar.wrapper, (n || t) && !c ? Ar.clickable : ""),
|
|
233
233
|
style: l,
|
|
234
234
|
onClick: (e) => t && !c ? t(e) : void 0,
|
|
235
235
|
"data-testid": o,
|
|
236
|
-
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ v(
|
|
236
|
+
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ v(jr, {
|
|
237
237
|
src: e,
|
|
238
238
|
size: a
|
|
239
239
|
}) : typeof e == "string" && (e.includes(".png") || e.includes("image/png")) ? /* @__PURE__ */ v("img", {
|
|
240
240
|
alt: "icon",
|
|
241
|
-
className:
|
|
241
|
+
className: Ar.customPng,
|
|
242
242
|
src: e
|
|
243
|
-
}) : typeof e == "string" ? /* @__PURE__ */ v(
|
|
243
|
+
}) : typeof e == "string" ? /* @__PURE__ */ v(zr, { icon: e }) : null
|
|
244
244
|
});
|
|
245
|
-
},
|
|
246
|
-
className: g(
|
|
247
|
-
children: /* @__PURE__ */ v(
|
|
248
|
-
}),
|
|
245
|
+
}, Br = ({ expanded: e }) => /* @__PURE__ */ v("span", {
|
|
246
|
+
className: g(kr.chevron, e ? kr.expanded : ""),
|
|
247
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
248
|
+
}), Vr = {
|
|
249
249
|
accordion: "_accordion_15p8j_1",
|
|
250
250
|
accordionHeader: "_accordionHeader_15p8j_5",
|
|
251
251
|
heading: "_heading_15p8j_9",
|
|
@@ -255,58 +255,58 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
255
255
|
expanded: "_expanded_15p8j_36",
|
|
256
256
|
padding: "_padding_15p8j_44",
|
|
257
257
|
squareBottom: "_squareBottom_15p8j_47"
|
|
258
|
-
},
|
|
258
|
+
}, Hr = {
|
|
259
259
|
collapse: "_collapse_1m1n2_5",
|
|
260
260
|
enter: "_enter_1m1n2_9",
|
|
261
261
|
enterActive: "_enterActive_1m1n2_12",
|
|
262
262
|
exit: "_exit_1m1n2_15",
|
|
263
263
|
exitActive: "_exitActive_1m1n2_18",
|
|
264
264
|
collapseInner: "_collapseInner_1m1n2_21"
|
|
265
|
-
},
|
|
265
|
+
}, Ur = ({ children: e, expanded: t }) => {
|
|
266
266
|
let n = p(null);
|
|
267
267
|
return /* @__PURE__ */ v(jt, {
|
|
268
268
|
nodeRef: n,
|
|
269
269
|
in: t,
|
|
270
270
|
timeout: 100,
|
|
271
271
|
classNames: {
|
|
272
|
-
enter:
|
|
273
|
-
enterActive:
|
|
274
|
-
exit:
|
|
275
|
-
exitActive:
|
|
272
|
+
enter: Hr.enter,
|
|
273
|
+
enterActive: Hr.enterActive,
|
|
274
|
+
exit: Hr.exit,
|
|
275
|
+
exitActive: Hr.exitActive
|
|
276
276
|
},
|
|
277
277
|
unmountOnExit: !0,
|
|
278
278
|
children: /* @__PURE__ */ v("div", {
|
|
279
279
|
ref: n,
|
|
280
|
-
className:
|
|
280
|
+
className: Hr.collapse,
|
|
281
281
|
children: /* @__PURE__ */ v("div", {
|
|
282
|
-
className:
|
|
282
|
+
className: Hr.collapseInner,
|
|
283
283
|
children: /* @__PURE__ */ v("div", { children: t && e })
|
|
284
284
|
})
|
|
285
285
|
})
|
|
286
286
|
});
|
|
287
|
-
},
|
|
287
|
+
}, Wr = ({ heading: e, expanded: t = !1, bordered: n = !1, padding: r = !0, children: i, squareBottom: a = !1, onClick: o, testId: s }) => {
|
|
288
288
|
let c = t && !!i;
|
|
289
289
|
return /* @__PURE__ */ y("div", {
|
|
290
|
-
className: g(
|
|
290
|
+
className: g(Vr.accordion, n ? Vr.bordered : "", t ? Vr.expanded : "", a ? Vr.squareBottom : ""),
|
|
291
291
|
children: [/* @__PURE__ */ y("div", {
|
|
292
|
-
className: g(
|
|
292
|
+
className: g(Vr.accordionHeader, o ? Vr.clickable : ""),
|
|
293
293
|
onClick: o,
|
|
294
294
|
"data-testid": s,
|
|
295
|
-
children: [/* @__PURE__ */ v(
|
|
296
|
-
className:
|
|
295
|
+
children: [/* @__PURE__ */ v(Br, { expanded: t }), /* @__PURE__ */ v("div", {
|
|
296
|
+
className: Vr.heading,
|
|
297
297
|
children: e
|
|
298
298
|
})]
|
|
299
|
-
}), /* @__PURE__ */ v(
|
|
299
|
+
}), /* @__PURE__ */ v(Ur, {
|
|
300
300
|
expanded: c,
|
|
301
301
|
children: /* @__PURE__ */ v("div", {
|
|
302
|
-
className: g(
|
|
302
|
+
className: g(Vr.accordionContent, n && r ? Vr.padding : ""),
|
|
303
303
|
children: i
|
|
304
304
|
})
|
|
305
305
|
})]
|
|
306
306
|
});
|
|
307
|
-
},
|
|
307
|
+
}, Gr = ({ heading: t, bordered: n, padding: r, expanded: i = !1, children: a, testId: o }) => {
|
|
308
308
|
let [s, c] = e.useState(i);
|
|
309
|
-
return /* @__PURE__ */ v(
|
|
309
|
+
return /* @__PURE__ */ v(Wr, {
|
|
310
310
|
heading: t,
|
|
311
311
|
bordered: n,
|
|
312
312
|
padding: r,
|
|
@@ -317,7 +317,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
317
317
|
testId: o,
|
|
318
318
|
children: a
|
|
319
319
|
});
|
|
320
|
-
},
|
|
320
|
+
}, Kr = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, padding: i = !0, children: a, onClick: o, squareBottom: s = !1, testId: c }) => v(n ? Gr : Wr, {
|
|
321
321
|
heading: e,
|
|
322
322
|
expanded: t,
|
|
323
323
|
bordered: r,
|
|
@@ -326,7 +326,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
326
326
|
onClick: o,
|
|
327
327
|
testId: c,
|
|
328
328
|
children: a
|
|
329
|
-
}),
|
|
329
|
+
}), qr = {
|
|
330
330
|
checkbox: "_checkbox_1ezew_1",
|
|
331
331
|
noLabel: "_noLabel_1ezew_17",
|
|
332
332
|
small: "_small_1ezew_20",
|
|
@@ -335,9 +335,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
335
335
|
noMargin: "_noMargin_1ezew_98",
|
|
336
336
|
isInTable: "_isInTable_1ezew_101",
|
|
337
337
|
helpIconEnabled: "_helpIconEnabled_1ezew_104"
|
|
338
|
-
},
|
|
338
|
+
}, Jr = ({ children: e }) => Kt() === null ? /* @__PURE__ */ v(Ft, { children: e }) : /* @__PURE__ */ v(_, { children: e }), Yr = "bottom-start", Xr = (e, t) => {
|
|
339
339
|
t((t) => t && t.width === e.width && t.height === e.height && t.x === e.x && t.y === e.y ? t : e);
|
|
340
|
-
},
|
|
340
|
+
}, Zr = (e = Yr) => e === "center" ? "bottom" : e.replace("-center", ""), Qr = ({ arrowOffset: e, arrowRef: t, containerOffset: n, fallbackPlacements: r, matchReferenceWidth: i, triggerOffset: a }) => [
|
|
341
341
|
zt(a),
|
|
342
342
|
Rt({
|
|
343
343
|
fallbackPlacements: r,
|
|
@@ -354,9 +354,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
354
354
|
element: t,
|
|
355
355
|
padding: e
|
|
356
356
|
})
|
|
357
|
-
],
|
|
357
|
+
], $r = ({ isOpen: e, arrowOffset: t = 0, clientPoint: n, containerOffset: r = 10, hover: i, matchReferenceWidth: a = !1, placement: s = Yr, possiblePlacements: c, triggerOffset: l = 0, overflowContainer: u = !0, onOpenChange: f, onOutsideClick: h }) => {
|
|
358
358
|
var g, _, y, b, x, S, C;
|
|
359
|
-
let w = p(null), [T, E] = m(null), D = Gt(), O =
|
|
359
|
+
let w = p(null), [T, E] = m(null), D = Gt(), O = Zr(s), k = d(() => c == null ? void 0 : c.map(Zr), [c]), A = d(() => Qr({
|
|
360
360
|
arrowOffset: t,
|
|
361
361
|
arrowRef: w,
|
|
362
362
|
containerOffset: r,
|
|
@@ -369,8 +369,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
369
369
|
k,
|
|
370
370
|
a,
|
|
371
371
|
l
|
|
372
|
-
]), j = o((e, t, n) => (
|
|
373
|
-
|
|
372
|
+
]), j = o((e, t, n) => (Xr(e.getBoundingClientRect(), E), Lt(e, t, () => {
|
|
373
|
+
Xr(e.getBoundingClientRect(), E), n();
|
|
374
374
|
})), []), { context: M, refs: N, floatingStyles: P, isPositioned: F, x: I, y: ee } = Wt({
|
|
375
375
|
open: e,
|
|
376
376
|
onOpenChange: (e, t, n) => {
|
|
@@ -384,7 +384,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
384
384
|
middleware: A
|
|
385
385
|
}), L = o((e) => {
|
|
386
386
|
if (N.setReference(e), e) {
|
|
387
|
-
|
|
387
|
+
Xr(e.getBoundingClientRect(), E);
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
E(null);
|
|
@@ -442,7 +442,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
442
442
|
triggerBounds: T,
|
|
443
443
|
triggerProps: ie
|
|
444
444
|
};
|
|
445
|
-
},
|
|
445
|
+
}, ei = () => {
|
|
446
446
|
let [e, t] = m(null);
|
|
447
447
|
return {
|
|
448
448
|
clientPoint: e,
|
|
@@ -455,12 +455,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
455
455
|
hasClientPoint: !!e,
|
|
456
456
|
resetClientPoint: () => t(null)
|
|
457
457
|
};
|
|
458
|
-
},
|
|
458
|
+
}, ti = {
|
|
459
459
|
tooltip: "_tooltip_o1fhy_1",
|
|
460
460
|
error: "_error_o1fhy_14",
|
|
461
461
|
warning: "_warning_o1fhy_18"
|
|
462
|
-
},
|
|
463
|
-
className: g(
|
|
462
|
+
}, ni = ({ text: e = "", error: t = !1, warning: n = !1, maxWidth: r = "none", fontSize: i = "inherit", padding: a = "var(--padding-xxs) var(--padding-xs)", layerProps: o = { style: { position: "fixed" } }, arrowProps: s }) => /* @__PURE__ */ y("div", {
|
|
463
|
+
className: g(ti.tooltip, t ? ti.error : n ? ti.warning : ""),
|
|
464
464
|
...o,
|
|
465
465
|
children: [/* @__PURE__ */ v("div", {
|
|
466
466
|
style: {
|
|
@@ -477,13 +477,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
477
477
|
tipRadius: 1,
|
|
478
478
|
fill: "inherit"
|
|
479
479
|
})]
|
|
480
|
-
}),
|
|
480
|
+
}), ri = ({ children: e, text: t = "", error: n = !1, placement: r = "top-center", possiblePlacements: a = [
|
|
481
481
|
"top-center",
|
|
482
482
|
"left-center",
|
|
483
483
|
"bottom-center",
|
|
484
484
|
"right-center"
|
|
485
485
|
], enabled: o = !0, warning: s = !1, maxWidth: c = "40em", triggerOffset: l = 12, fontSize: u = "inherit", padding: d = "var(--padding-xxs) var(--padding-xs)", display: f = "inline", flex: p = "none", forceOpen: h = !1 }) => {
|
|
486
|
-
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [b, x] = m(!1), S = g ? h ? !0 : b : !1, { renderLayer: C, triggerProps: w, layerProps: T, arrowProps: E } =
|
|
486
|
+
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [b, x] = m(!1), S = g ? h ? !0 : b : !1, { renderLayer: C, triggerProps: w, layerProps: T, arrowProps: E } = $r({
|
|
487
487
|
isOpen: S,
|
|
488
488
|
hover: {
|
|
489
489
|
enabled: g && !h,
|
|
@@ -503,7 +503,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
503
503
|
var t;
|
|
504
504
|
(t = w.onMouseOver) == null || t.call(w, e), g && !h && !e.nativeEvent.isTrusted && x(!0);
|
|
505
505
|
};
|
|
506
|
-
return /* @__PURE__ */ y(_, { children: [S && C(/* @__PURE__ */ v(
|
|
506
|
+
return /* @__PURE__ */ y(_, { children: [S && C(/* @__PURE__ */ v(ni, {
|
|
507
507
|
text: t,
|
|
508
508
|
error: n,
|
|
509
509
|
warning: s,
|
|
@@ -522,32 +522,32 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
522
522
|
onMouseOver: O,
|
|
523
523
|
children: e
|
|
524
524
|
})] });
|
|
525
|
-
},
|
|
525
|
+
}, G = (e) => /* @__PURE__ */ v(Jr, { children: /* @__PURE__ */ v(ri, { ...e }) }), ii = {
|
|
526
526
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
527
527
|
active: "_active_hd0z2_9",
|
|
528
528
|
clickable: "_clickable_hd0z2_12"
|
|
529
|
-
},
|
|
529
|
+
}, ai = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ v(G, {
|
|
530
530
|
text: t,
|
|
531
531
|
display: "inline-flex",
|
|
532
532
|
maxWidth: n,
|
|
533
533
|
children: e
|
|
534
|
-
}) : /* @__PURE__ */ v(_, { children: e }),
|
|
535
|
-
className: g(
|
|
534
|
+
}) : /* @__PURE__ */ v(_, { children: e }), oi = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ v("div", {
|
|
535
|
+
className: g(ii.helpIcon, t ? ii.clickable : "", r ? ii.active : ""),
|
|
536
536
|
onClick: (e) => {
|
|
537
537
|
t && (e.stopPropagation(), t());
|
|
538
538
|
},
|
|
539
539
|
"data-testid": a,
|
|
540
|
-
children: /* @__PURE__ */ v(
|
|
540
|
+
children: /* @__PURE__ */ v(ai, {
|
|
541
541
|
text: e,
|
|
542
542
|
maxWidth: i,
|
|
543
|
-
children: /* @__PURE__ */ v(
|
|
543
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
544
544
|
})
|
|
545
|
-
}),
|
|
546
|
-
let x = s(
|
|
545
|
+
}), si = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: c = "", disabled: l = !1, small: d = !1, onChange: f, testId: m, helpText: h, onClickHelp: _, textTransform: b = Er.CAPITALIZE }) => {
|
|
546
|
+
let x = s(U), S = h || _, C = l || x, w = p(null);
|
|
547
547
|
return u(() => {
|
|
548
548
|
w.current && (w.current.indeterminate = a);
|
|
549
549
|
}, [a, i]), /* @__PURE__ */ y("div", {
|
|
550
|
-
className: g(
|
|
550
|
+
className: g(qr.checkbox, e && qr.noMargin, n && qr.isInTable, C && qr.disabled, d && qr.small, !c && qr.noLabel),
|
|
551
551
|
"data-ix": t,
|
|
552
552
|
onClick: (e) => {
|
|
553
553
|
if (!C) {
|
|
@@ -577,65 +577,65 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
577
577
|
htmlFor: o,
|
|
578
578
|
style: { textTransform: b },
|
|
579
579
|
children: [/* @__PURE__ */ v("span", {
|
|
580
|
-
className:
|
|
581
|
-
children: /* @__PURE__ */ v(
|
|
580
|
+
className: qr.checkmark,
|
|
581
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHECK })
|
|
582
582
|
}), c]
|
|
583
583
|
}),
|
|
584
584
|
S && /* @__PURE__ */ v("div", {
|
|
585
|
-
className:
|
|
585
|
+
className: qr.helpIconEnabled,
|
|
586
586
|
onClick: _,
|
|
587
|
-
children: /* @__PURE__ */ v(
|
|
587
|
+
children: /* @__PURE__ */ v(oi, { text: h })
|
|
588
588
|
})
|
|
589
589
|
]
|
|
590
590
|
});
|
|
591
|
-
},
|
|
591
|
+
}, ci = {
|
|
592
592
|
bordered: "_bordered_1cgsf_1",
|
|
593
593
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
594
594
|
padding: "_padding_1cgsf_13",
|
|
595
595
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
596
|
-
},
|
|
596
|
+
}, li = /* @__PURE__ */ function(e) {
|
|
597
597
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
598
|
-
}({}),
|
|
598
|
+
}({}), ui = (e, t) => {
|
|
599
599
|
switch (t.type) {
|
|
600
|
-
case
|
|
600
|
+
case li.TOGGLE_ACCORDION: return {
|
|
601
601
|
...e,
|
|
602
602
|
accordionExpanded: !e.accordionExpanded
|
|
603
603
|
};
|
|
604
|
-
case
|
|
604
|
+
case li.TOGGLE_ENABLE: return {
|
|
605
605
|
...e,
|
|
606
606
|
defaultEnabled: !e.defaultEnabled,
|
|
607
607
|
accordionExpanded: e.defaultEnabled
|
|
608
608
|
};
|
|
609
609
|
default: return e;
|
|
610
610
|
}
|
|
611
|
-
},
|
|
612
|
-
let [s, c] = f(
|
|
611
|
+
}, di = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
612
|
+
let [s, c] = f(ui, {
|
|
613
613
|
accordionExpanded: r,
|
|
614
614
|
defaultEnabled: i
|
|
615
615
|
}), l = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
616
|
-
className:
|
|
617
|
-
children: /* @__PURE__ */ v(
|
|
616
|
+
className: ci.checkboxWrapper,
|
|
617
|
+
children: /* @__PURE__ */ v(si, {
|
|
618
618
|
label: t,
|
|
619
619
|
onChange: (e) => {
|
|
620
|
-
c({ type:
|
|
620
|
+
c({ type: li.TOGGLE_ENABLE }), n == null || n(e);
|
|
621
621
|
},
|
|
622
622
|
checked: s.defaultEnabled
|
|
623
623
|
})
|
|
624
624
|
}), s.accordionExpanded && /* @__PURE__ */ v("div", {
|
|
625
|
-
className:
|
|
625
|
+
className: ci.contentWrapper,
|
|
626
626
|
children: o
|
|
627
627
|
})] });
|
|
628
|
-
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
628
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Kr, {
|
|
629
629
|
heading: e,
|
|
630
630
|
bordered: !0,
|
|
631
631
|
expanded: s.accordionExpanded,
|
|
632
632
|
squareBottom: !0,
|
|
633
|
-
onClick: () => c({ type:
|
|
633
|
+
onClick: () => c({ type: li.TOGGLE_ACCORDION })
|
|
634
634
|
}), /* @__PURE__ */ v("div", {
|
|
635
|
-
className: g(
|
|
635
|
+
className: g(ci.bordered, a ? ci.padding : ""),
|
|
636
636
|
children: l
|
|
637
637
|
})] });
|
|
638
|
-
},
|
|
638
|
+
}, fi = {
|
|
639
639
|
inputInTable: "_inputInTable_1isig_1",
|
|
640
640
|
inputHover: "_inputHover_1isig_13",
|
|
641
641
|
inputFocus: "_inputFocus_1isig_18",
|
|
@@ -672,26 +672,26 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
672
672
|
});
|
|
673
673
|
}, hi = /* @__PURE__ */ function(e) {
|
|
674
674
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
675
|
-
}({}), gi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(
|
|
675
|
+
}({}), gi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ v(G, {
|
|
676
676
|
text: t,
|
|
677
677
|
display: "inline-flex",
|
|
678
678
|
children: e
|
|
679
679
|
}) : /* @__PURE__ */ v(_, { children: e }), K = ({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: c = null, label: l = "", loading: u = !1, name: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: _ = "", title: b = "", type: x = hi.BUTTON, onClick: S = () => {}, error: C, warning: w, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A }) => {
|
|
680
|
-
let j = s(
|
|
680
|
+
let j = s(U), M = (() => {
|
|
681
681
|
if (n) switch (n) {
|
|
682
|
-
case
|
|
683
|
-
case
|
|
684
|
-
case
|
|
685
|
-
case
|
|
686
|
-
case
|
|
687
|
-
default: return
|
|
682
|
+
case Cr.DANGER:
|
|
683
|
+
case Cr.RED: return fi.red;
|
|
684
|
+
case Cr.SUCCESS:
|
|
685
|
+
case Cr.GREEN: return fi.green;
|
|
686
|
+
case Cr.MUTED: return fi.muted;
|
|
687
|
+
default: return fi.orange;
|
|
688
688
|
}
|
|
689
689
|
return "";
|
|
690
690
|
})(), N = (() => {
|
|
691
691
|
if (a) switch (a) {
|
|
692
|
-
case
|
|
693
|
-
case
|
|
694
|
-
default: return
|
|
692
|
+
case V.FIRST: return fi.groupOrderFirst;
|
|
693
|
+
case V.LAST: return fi.groupOrderLast;
|
|
694
|
+
default: return fi.groupOrderMiddle;
|
|
695
695
|
}
|
|
696
696
|
return "";
|
|
697
697
|
})(), P = r || j && !i;
|
|
@@ -699,7 +699,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
699
699
|
tooltip: E,
|
|
700
700
|
children: /* @__PURE__ */ y(O, {
|
|
701
701
|
type: x === hi.SUBMIT ? hi.SUBMIT : hi.BUTTON,
|
|
702
|
-
className: g(
|
|
702
|
+
className: g(fi.button, e ? fi.active : "", t ? fi.basic : "", M, P ? fi.disabled : "", (o || u) && !l ? fi.iconOnly : "", D ? fi.inverted : "", N, f ? fi.pill : "", p ? fi.round : "", m ? fi.small : "", h),
|
|
703
703
|
disabled: P,
|
|
704
704
|
name: d == null ? "" : d,
|
|
705
705
|
onClick: S,
|
|
@@ -712,11 +712,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
712
712
|
tabIndex: A,
|
|
713
713
|
children: [
|
|
714
714
|
o && /* @__PURE__ */ v("span", {
|
|
715
|
-
className:
|
|
716
|
-
children: /* @__PURE__ */ v(
|
|
715
|
+
className: fi.icon,
|
|
716
|
+
children: /* @__PURE__ */ v(W, { icon: o })
|
|
717
717
|
}),
|
|
718
718
|
u && /* @__PURE__ */ v("span", {
|
|
719
|
-
className:
|
|
719
|
+
className: fi.icon,
|
|
720
720
|
children: /* @__PURE__ */ v(mi, {
|
|
721
721
|
small: !m,
|
|
722
722
|
tiny: m,
|
|
@@ -726,8 +726,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
726
726
|
}),
|
|
727
727
|
l,
|
|
728
728
|
c && /* @__PURE__ */ v("span", {
|
|
729
|
-
className:
|
|
730
|
-
children: /* @__PURE__ */ v(
|
|
729
|
+
className: fi.rightIcon,
|
|
730
|
+
children: /* @__PURE__ */ v(W, { icon: c })
|
|
731
731
|
})
|
|
732
732
|
]
|
|
733
733
|
})
|
|
@@ -774,9 +774,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
774
774
|
children: [e, !!n && /* @__PURE__ */ v("span", {
|
|
775
775
|
className: g(q.headingIcon, t ? q.clickable : ""),
|
|
776
776
|
onClick: t,
|
|
777
|
-
children: /* @__PURE__ */ v(
|
|
777
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
778
778
|
})]
|
|
779
|
-
}), yi = () => /* @__PURE__ */ v("hr", { className: q.divider }), bi = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m =
|
|
779
|
+
}), yi = () => /* @__PURE__ */ v("hr", { className: q.divider }), bi = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m = B, testId: h, component: _ = "a" }) => /* @__PURE__ */ y(_, {
|
|
780
780
|
href: n,
|
|
781
781
|
to: n,
|
|
782
782
|
className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
|
|
@@ -791,7 +791,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
791
791
|
children: [
|
|
792
792
|
a ? /* @__PURE__ */ v("span", {
|
|
793
793
|
className: q.icon,
|
|
794
|
-
children: /* @__PURE__ */ v(
|
|
794
|
+
children: /* @__PURE__ */ v(W, { icon: a })
|
|
795
795
|
}) : null,
|
|
796
796
|
/* @__PURE__ */ y("div", {
|
|
797
797
|
className: q.optionContent,
|
|
@@ -832,7 +832,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
832
832
|
className: q.right,
|
|
833
833
|
children: [o && /* @__PURE__ */ v("span", {
|
|
834
834
|
className: q.check,
|
|
835
|
-
children: /* @__PURE__ */ v(
|
|
835
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHECK })
|
|
836
836
|
}), !!(e != null && e.length) && /* @__PURE__ */ v("div", {
|
|
837
837
|
className: q.actions,
|
|
838
838
|
children: /* @__PURE__ */ v(Ji, { actions: e })
|
|
@@ -844,7 +844,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
844
844
|
}({}), Si = /* @__PURE__ */ function(e) {
|
|
845
845
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
846
846
|
}({}), Ci = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
|
|
847
|
-
let o = s(
|
|
847
|
+
let o = s(U);
|
|
848
848
|
switch (e.type) {
|
|
849
849
|
case xi.HEADING:
|
|
850
850
|
var c;
|
|
@@ -893,7 +893,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
893
893
|
});
|
|
894
894
|
default: return null;
|
|
895
895
|
}
|
|
896
|
-
}, wi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Ti = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Ei = (e) => `${e}.close`.replace(/^\./, ""), Di = (e, t) => en(e, wi(t), []), Oi = (e, t, n) =>
|
|
896
|
+
}, wi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Ti = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Ei = (e) => `${e}.close`.replace(/^\./, ""), Di = (e, t) => en(e, wi(t), []), Oi = (e, t, n) => pn(e, Ei(t), n), ki = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
|
|
897
897
|
var d, f;
|
|
898
898
|
if (i(e)) return /* @__PURE__ */ v(_, { children: e });
|
|
899
899
|
let [p, h] = m(!(l != null && l.visible)), y = e, b = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
|
|
@@ -955,7 +955,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
955
955
|
}), e]
|
|
956
956
|
});
|
|
957
957
|
}, Fi = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
|
|
958
|
-
let p = s(
|
|
958
|
+
let p = s(U), m = e === Sr.DROP_DOWN_BUTTON;
|
|
959
959
|
return /* @__PURE__ */ v("div", {
|
|
960
960
|
className: g(q.trigger, a || p ? q.disabled : null),
|
|
961
961
|
style: { width: i },
|
|
@@ -969,7 +969,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
969
969
|
width: i,
|
|
970
970
|
groupOrder: o,
|
|
971
971
|
onClick: () => {},
|
|
972
|
-
rightIcon: m ?
|
|
972
|
+
rightIcon: m ? H.CHEVRON_DOWN : null,
|
|
973
973
|
loading: c,
|
|
974
974
|
disabled: a,
|
|
975
975
|
error: l,
|
|
@@ -988,24 +988,24 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
988
988
|
children: e
|
|
989
989
|
}), n && n === Si.RIGHT ? /* @__PURE__ */ v("span", {
|
|
990
990
|
className: q.arrow,
|
|
991
|
-
children: /* @__PURE__ */ v(
|
|
991
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
992
992
|
}) : n && n === Si.DOWN ? /* @__PURE__ */ v("span", {
|
|
993
993
|
className: q.arrow,
|
|
994
|
-
children: /* @__PURE__ */ v(
|
|
994
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_DOWN })
|
|
995
995
|
}) : null]
|
|
996
996
|
});
|
|
997
997
|
}, Li = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
998
998
|
className: g(q.component, t ? q.disabled : null),
|
|
999
999
|
"data-testid": n,
|
|
1000
1000
|
children: e
|
|
1001
|
-
}), Ri = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(
|
|
1001
|
+
}), Ri = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ v(_, { children: r }) : /* @__PURE__ */ v(G, {
|
|
1002
1002
|
error: !!t,
|
|
1003
1003
|
warning: !!n,
|
|
1004
1004
|
text: e || t || n,
|
|
1005
1005
|
display: "inline-flex",
|
|
1006
1006
|
children: r
|
|
1007
1007
|
}), zi = e.forwardRef(({ active: e, isDisabled: t, badgeTitle: n, badgeDot: r, loading: i, width: a, trigger: o, label: s, title: c, onClickTrigger: l, colored: u, small: d, isNested: f, contextMenu: p, component: m, groupOrder: h, fullHeight: g, isOpen: _, error: y, warning: b, tooltip: x, testId: S, selected: C, tabIndex: w }, T) => {
|
|
1008
|
-
let E = o ===
|
|
1008
|
+
let E = o === Sr.BUTTON || o === Sr.DROP_DOWN_BUTTON ? /* @__PURE__ */ v(Fi, {
|
|
1009
1009
|
trigger: o,
|
|
1010
1010
|
label: s == null ? "" : s,
|
|
1011
1011
|
colored: u,
|
|
@@ -1018,14 +1018,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1018
1018
|
warning: b,
|
|
1019
1019
|
active: _ || e,
|
|
1020
1020
|
tabIndex: w
|
|
1021
|
-
}) : o ===
|
|
1021
|
+
}) : o === Sr.TEXT ? /* @__PURE__ */ v(Ii, {
|
|
1022
1022
|
label: s == null ? "" : s,
|
|
1023
1023
|
title: c,
|
|
1024
1024
|
disabled: t,
|
|
1025
1025
|
carat: p ? void 0 : f ? Si.RIGHT : Si.DOWN,
|
|
1026
1026
|
isOpen: _,
|
|
1027
1027
|
selected: C
|
|
1028
|
-
}) : o ===
|
|
1028
|
+
}) : o === Sr.COMPONENT ? /* @__PURE__ */ v(Li, {
|
|
1029
1029
|
component: m,
|
|
1030
1030
|
disabled: t
|
|
1031
1031
|
}) : null, D = !f && (n || r) ? /* @__PURE__ */ v(Pi, {
|
|
@@ -1058,7 +1058,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1058
1058
|
let { sections: t } = e;
|
|
1059
1059
|
return !i(t) && (!Array.isArray(t) || t.every((e) => rn(e)));
|
|
1060
1060
|
}, Vi = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
|
|
1061
|
-
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } =
|
|
1061
|
+
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } = ei(), h = p, g = f, { layerProps: _, renderLayer: y, triggerProps: b } = $r({
|
|
1062
1062
|
isOpen: g,
|
|
1063
1063
|
clientPoint: {
|
|
1064
1064
|
enabled: f,
|
|
@@ -1088,7 +1088,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1088
1088
|
onContextMenu: m
|
|
1089
1089
|
}];
|
|
1090
1090
|
}, Hi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
|
|
1091
|
-
let u = s(
|
|
1091
|
+
let u = s(U), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: b = ["bottom-start", "top-start"] } = e, [x, S] = Vi({
|
|
1092
1092
|
sections: e.sections,
|
|
1093
1093
|
width: t,
|
|
1094
1094
|
placement: _,
|
|
@@ -1121,7 +1121,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1121
1121
|
}), x]
|
|
1122
1122
|
});
|
|
1123
1123
|
}, Ui = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: c = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: h = !0, maxHeight: g, testId: b, open: x, setOpen: S, tooltip: C, error: w, warning: T, selected: E, tabIndex: D, active: O }) => {
|
|
1124
|
-
let k = s(
|
|
1124
|
+
let k = s(U), A = p(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: ee, component: L, placement: te, showAllButton: ne, possiblePlacements: re = ["bottom-start", "top-start"] } = e, [ie, ae] = nn(x) && on(S) ? [x, S] : m(!1), R = () => ae(!1), oe = () => ae(!0), { triggerProps: se, layerProps: ce, renderLayer: le } = $r({
|
|
1125
1125
|
isOpen: ie,
|
|
1126
1126
|
...Ai(te, o),
|
|
1127
1127
|
possiblePlacements: re,
|
|
@@ -1192,7 +1192,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1192
1192
|
})
|
|
1193
1193
|
})) })
|
|
1194
1194
|
})] });
|
|
1195
|
-
}, Wi = (e) => /* @__PURE__ */ v(
|
|
1195
|
+
}, Wi = (e) => /* @__PURE__ */ v(Jr, { children: /* @__PURE__ */ v(Ui, { ...e }) }), Gi = (e) => e.contextMenu ? /* @__PURE__ */ v(Hi, {
|
|
1196
1196
|
...e,
|
|
1197
1197
|
tree: {},
|
|
1198
1198
|
path: "",
|
|
@@ -1202,18 +1202,18 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1202
1202
|
tree: {},
|
|
1203
1203
|
path: "",
|
|
1204
1204
|
testId: e.testId
|
|
1205
|
-
}), Ki = (e) => /* @__PURE__ */ v(
|
|
1205
|
+
}), Ki = (e) => /* @__PURE__ */ v(Jr, { children: /* @__PURE__ */ v(Gi, { ...e }) }), qi = (e) => {
|
|
1206
1206
|
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ v(K, {
|
|
1207
|
-
colored: r ? !0 :
|
|
1207
|
+
colored: r ? !0 : Cr.MUTED,
|
|
1208
1208
|
basic: !r,
|
|
1209
1209
|
round: !0,
|
|
1210
1210
|
small: !0,
|
|
1211
|
-
icon: n ||
|
|
1211
|
+
icon: n || H.MENU,
|
|
1212
1212
|
testId: i,
|
|
1213
1213
|
tooltip: a
|
|
1214
1214
|
});
|
|
1215
1215
|
return t.length ? /* @__PURE__ */ v(Ki, { menu: {
|
|
1216
|
-
trigger:
|
|
1216
|
+
trigger: Sr.COMPONENT,
|
|
1217
1217
|
component: o,
|
|
1218
1218
|
sections: t.map((e) => {
|
|
1219
1219
|
var t;
|
|
@@ -1231,7 +1231,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
} }) : null;
|
|
1233
1233
|
}, Ji = (t) => {
|
|
1234
|
-
let n = s(
|
|
1234
|
+
let n = s(U), { actions: r = [], closeLayer: i } = t;
|
|
1235
1235
|
return /* @__PURE__ */ v("div", {
|
|
1236
1236
|
className: g(_i.actions),
|
|
1237
1237
|
children: r.map((t, r) => {
|
|
@@ -1271,7 +1271,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1271
1271
|
}, Xi = /* @__PURE__ */ function(e) {
|
|
1272
1272
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1273
1273
|
}({}), Zi = ({ type: e = Xi.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
|
|
1274
|
-
let l = s(
|
|
1274
|
+
let l = s(U), u = e === Xi.LINK && n !== void 0, d = e === Xi.CUSTOM && i(c);
|
|
1275
1275
|
return /* @__PURE__ */ v("span", {
|
|
1276
1276
|
onClick: r,
|
|
1277
1277
|
className: g(Yi.labelContainer, a && Yi.active, (o || l) && Yi.disabled),
|
|
@@ -1301,7 +1301,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1301
1301
|
label: "_label_iu2wi_1",
|
|
1302
1302
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1303
1303
|
}, ea = (e) => {
|
|
1304
|
-
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(
|
|
1304
|
+
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(U), d = (e, t, n, r, a) => {
|
|
1305
1305
|
e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
|
|
1306
1306
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
1307
1307
|
var n, r;
|
|
@@ -1316,8 +1316,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1316
1316
|
className: $i.buttonGroup,
|
|
1317
1317
|
"data-testid": c,
|
|
1318
1318
|
children: n.map((e, r) => {
|
|
1319
|
-
let i = ji(e), o = r === 0 ?
|
|
1320
|
-
return y ? null : /* @__PURE__ */ v(
|
|
1319
|
+
let i = ji(e), o = r === 0 ? V.FIRST : r === n.length - 1 ? V.LAST : V.MIDDLE, s = f(e, i), c = p(e, i), u = m(e, i, c), y = h(e, i), b = g(e, i), x = _(i, u, c), { error: S, maxTooltipWidth: C, testId: w, tooltip: T, warning: E } = e;
|
|
1320
|
+
return y ? null : /* @__PURE__ */ v(G, {
|
|
1321
1321
|
error: !!S,
|
|
1322
1322
|
warning: !!E,
|
|
1323
1323
|
text: T || S || E,
|
|
@@ -1365,7 +1365,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1365
1365
|
fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
|
|
1366
1366
|
dismiss: "_dismiss_rwod1_22"
|
|
1367
1367
|
}, ia = ({ children: t, content: n, placement: r = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: l, disabled: u = !1, overflowContainer: d = !1, isOpen: f, onToggle: h }) => {
|
|
1368
|
-
let b = s(
|
|
1368
|
+
let b = s(U), x = p(null), [S, C] = f === void 0 ? m(!1) : [f, h], w = () => {
|
|
1369
1369
|
!u && !b && C && C(!1);
|
|
1370
1370
|
}, T = () => {
|
|
1371
1371
|
u || b || C && C(!S);
|
|
@@ -1373,7 +1373,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1373
1373
|
c(() => {
|
|
1374
1374
|
(u || b) && w();
|
|
1375
1375
|
}, [u, b]);
|
|
1376
|
-
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } =
|
|
1376
|
+
let { renderLayer: E, arrowProps: D, layerProps: O, triggerProps: k } = $r({
|
|
1377
1377
|
isOpen: S,
|
|
1378
1378
|
placement: r,
|
|
1379
1379
|
triggerOffset: 6,
|
|
@@ -1404,7 +1404,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1404
1404
|
small: !0,
|
|
1405
1405
|
round: !0,
|
|
1406
1406
|
onClick: w,
|
|
1407
|
-
icon:
|
|
1407
|
+
icon: H.CLOSE
|
|
1408
1408
|
})
|
|
1409
1409
|
})] }), D.context && /* @__PURE__ */ v(Mt, {
|
|
1410
1410
|
context: D.context,
|
|
@@ -1418,7 +1418,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1418
1418
|
})]
|
|
1419
1419
|
})) })
|
|
1420
1420
|
})] });
|
|
1421
|
-
}, aa = (e) => /* @__PURE__ */ v(
|
|
1421
|
+
}, aa = (e) => /* @__PURE__ */ v(Jr, { children: /* @__PURE__ */ v(ia, { ...e }) }), oa = {
|
|
1422
1422
|
colorInput: "_colorInput_1j7vk_1",
|
|
1423
1423
|
trigger: "_trigger_1j7vk_8",
|
|
1424
1424
|
buttonColor: "_buttonColor_1j7vk_12",
|
|
@@ -1528,11 +1528,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1528
1528
|
children: e
|
|
1529
1529
|
}), ga = (e) => {
|
|
1530
1530
|
switch (e) {
|
|
1531
|
-
case
|
|
1532
|
-
case
|
|
1531
|
+
case wr.LEFT: return pa.alignLeft;
|
|
1532
|
+
case wr.RIGHT: return pa.alignRight;
|
|
1533
1533
|
default: return "";
|
|
1534
1534
|
}
|
|
1535
|
-
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r =
|
|
1535
|
+
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = wr.CENTER }) => /* @__PURE__ */ v("div", {
|
|
1536
1536
|
className: `${pa.divider} ${ga(r)}`,
|
|
1537
1537
|
style: {
|
|
1538
1538
|
marginTop: t,
|
|
@@ -1558,18 +1558,18 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1558
1558
|
children: [e, /* @__PURE__ */ y("div", {
|
|
1559
1559
|
className: va.icons,
|
|
1560
1560
|
children: [
|
|
1561
|
-
a && /* @__PURE__ */ v(
|
|
1561
|
+
a && /* @__PURE__ */ v(oi, {
|
|
1562
1562
|
onClick: i,
|
|
1563
1563
|
icon: a
|
|
1564
1564
|
}),
|
|
1565
|
-
d && /* @__PURE__ */ v(
|
|
1565
|
+
d && /* @__PURE__ */ v(oi, {
|
|
1566
1566
|
text: t,
|
|
1567
1567
|
onClick: r
|
|
1568
1568
|
}),
|
|
1569
|
-
o && /* @__PURE__ */ v(
|
|
1569
|
+
o && /* @__PURE__ */ v(oi, {
|
|
1570
1570
|
text: (u = o == null ? void 0 : o.tooltip) == null ? "" : u,
|
|
1571
1571
|
onClick: o.onClick,
|
|
1572
|
-
icon:
|
|
1572
|
+
icon: H.LIBRARY
|
|
1573
1573
|
})
|
|
1574
1574
|
]
|
|
1575
1575
|
})]
|
|
@@ -1610,7 +1610,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1610
1610
|
})] }), l ? /* @__PURE__ */ v("div", {
|
|
1611
1611
|
className: ba.dismiss,
|
|
1612
1612
|
children: /* @__PURE__ */ v(K, {
|
|
1613
|
-
icon:
|
|
1613
|
+
icon: H.CLOSE,
|
|
1614
1614
|
round: !0,
|
|
1615
1615
|
basic: !0,
|
|
1616
1616
|
small: !0,
|
|
@@ -1695,12 +1695,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1695
1695
|
ref: t,
|
|
1696
1696
|
className: Ca.resizeHandle,
|
|
1697
1697
|
...r,
|
|
1698
|
-
children: /* @__PURE__ */ v(
|
|
1698
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
1699
1699
|
});
|
|
1700
|
-
}), Da =
|
|
1700
|
+
}), Da = _n, Oa = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1701
1701
|
let [o, s] = m(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1702
1702
|
return r ? /* @__PURE__ */ v(Da, {
|
|
1703
|
-
width:
|
|
1703
|
+
width: hn(t),
|
|
1704
1704
|
height: 100,
|
|
1705
1705
|
minConstraints: [35, Infinity],
|
|
1706
1706
|
maxConstraints: [c, Infinity],
|
|
@@ -1719,7 +1719,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1719
1719
|
},
|
|
1720
1720
|
children: e
|
|
1721
1721
|
}) : /* @__PURE__ */ v(_, { children: e });
|
|
1722
|
-
}, ka = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: a = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f =
|
|
1722
|
+
}, ka = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: a = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = Tr.BOTTOM, border: p = !1, children: h = null, tabs: _, defaultTabIndex: b = 0, activeTab: x, setActiveTab: S, testId: C, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
1723
1723
|
let k = u === !0, A = !k && i(u), [j, M] = r ? [n, r] : k || _ ? m(n) : [n, () => {}], [N, P] = m(b), F = r ? n : j, I = r || M, ee = S === void 0 ? N : x, L = S || P, te = Array.isArray(o) ? o[ee || 0] : o, ne = F ? te : _ ? 35 : s;
|
|
1724
1724
|
return /* @__PURE__ */ v(Oa, {
|
|
1725
1725
|
width: ne,
|
|
@@ -1766,14 +1766,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1766
1766
|
children: A ? u : /* @__PURE__ */ v(K, {
|
|
1767
1767
|
onClick: I ? () => I(!F) : void 0,
|
|
1768
1768
|
round: !0,
|
|
1769
|
-
icon: a ?
|
|
1769
|
+
icon: a ? H.CHEVRON_RIGHT : H.CHEVRON_LEFT
|
|
1770
1770
|
})
|
|
1771
1771
|
})]
|
|
1772
1772
|
})
|
|
1773
1773
|
});
|
|
1774
1774
|
}, Aa = { inputGroup: "_inputGroup_biuoa_1" }, ja = (e) => i(e) && typeof e.type == "string", Ma = ({ children: n, small: r = !1, width: a = "100%" }) => {
|
|
1775
1775
|
let o = Array.isArray(n) ? n.filter((e) => i(e)) : [n], s = o.map((n, i) => {
|
|
1776
|
-
let a = ja(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ?
|
|
1776
|
+
let a = ja(n), { groupOrder: s } = a ? { groupOrder: null } : n.props, c = o.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ? V.FIRST : u ? V.LAST : V.MIDDLE);
|
|
1777
1777
|
return a ? n : /* @__PURE__ */ v(t, { children: e.cloneElement(n, {
|
|
1778
1778
|
groupOrder: d,
|
|
1779
1779
|
small: r
|
|
@@ -1799,11 +1799,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1799
1799
|
groupOrderFirst: "_groupOrderFirst_b8kpk_173",
|
|
1800
1800
|
groupOrderMiddle: "_groupOrderMiddle_b8kpk_174",
|
|
1801
1801
|
groupOrderLast: "_groupOrderLast_b8kpk_178"
|
|
1802
|
-
}, Pa = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a =
|
|
1803
|
-
let O = s(
|
|
1802
|
+
}, Pa = r(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = B, placeholder: o = "", value: c = "", onKeyPress: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, onPaste: f = () => {}, onKeyDown: p = () => {}, selectOnFocus: m = !0, name: h = void 0, type: _ = "text", tabIndex: y = 0, disabled: b = !1, right: x = !1, warning: S = null, groupOrder: C = null, maxTooltipWidth: w = void 0, testId: T = void 0, size: E = null }, D) => {
|
|
1803
|
+
let O = s(U), k = (() => {
|
|
1804
1804
|
if (C) switch (C) {
|
|
1805
|
-
case
|
|
1806
|
-
case
|
|
1805
|
+
case V.FIRST: return Na.groupOrderFirst;
|
|
1806
|
+
case V.LAST: return Na.groupOrderLast;
|
|
1807
1807
|
default: return Na.groupOrderMiddle;
|
|
1808
1808
|
}
|
|
1809
1809
|
return "";
|
|
@@ -1811,7 +1811,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1811
1811
|
return /* @__PURE__ */ v("div", {
|
|
1812
1812
|
style: { width: A },
|
|
1813
1813
|
className: k,
|
|
1814
|
-
children: /* @__PURE__ */ v(
|
|
1814
|
+
children: /* @__PURE__ */ v(G, {
|
|
1815
1815
|
error: !!e,
|
|
1816
1816
|
warning: !!S,
|
|
1817
1817
|
text: t || e || S,
|
|
@@ -1868,8 +1868,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1868
1868
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
1869
1869
|
} else n = e == null ? void 0 : e.name;
|
|
1870
1870
|
return n || null;
|
|
1871
|
-
}, za = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u =
|
|
1872
|
-
let f = s(
|
|
1871
|
+
}, za = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: c, width: l, onChange: u = B, testId: d }) => {
|
|
1872
|
+
let f = s(U), m = p(null), h = Ra(i, o);
|
|
1873
1873
|
return /* @__PURE__ */ y("div", {
|
|
1874
1874
|
onClick: () => {
|
|
1875
1875
|
var e;
|
|
@@ -1927,7 +1927,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1927
1927
|
let n = document.querySelector(`#${e}`), [r, i] = m(!1);
|
|
1928
1928
|
return u(() => {
|
|
1929
1929
|
r || i(!0);
|
|
1930
|
-
}, [e]), n ?
|
|
1930
|
+
}, [e]), n ? vn(t, n) : null;
|
|
1931
1931
|
}, Ua = {
|
|
1932
1932
|
wrapper: "_wrapper_1sv3a_1",
|
|
1933
1933
|
enter: "_enter_1sv3a_15",
|
|
@@ -2065,7 +2065,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2065
2065
|
testId: `${g}-file-input`,
|
|
2066
2066
|
accept: "image/*"
|
|
2067
2067
|
}),
|
|
2068
|
-
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ba, {}), /* @__PURE__ */ v(Ya, { percentage:
|
|
2068
|
+
S && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Ba, {}), /* @__PURE__ */ v(Ya, { percentage: Fn(100 * w / Za, 3) })] })
|
|
2069
2069
|
] }), P = /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(K, {
|
|
2070
2070
|
label: p || "Upload",
|
|
2071
2071
|
colored: !0,
|
|
@@ -2176,8 +2176,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2176
2176
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2177
2177
|
}({}), co = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ v("div", {
|
|
2178
2178
|
className: g(ao.dismiss, n ? ao.absolute : "", e === oo.INFO ? ao.info : e === oo.SUCCESS ? ao.success : e === oo.WARNING ? ao.warning : e === oo.ERROR ? ao.error : null),
|
|
2179
|
-
children: /* @__PURE__ */ v(
|
|
2180
|
-
icon:
|
|
2179
|
+
children: /* @__PURE__ */ v(W, {
|
|
2180
|
+
icon: H.CLOSE,
|
|
2181
2181
|
onClick: t,
|
|
2182
2182
|
testId: r
|
|
2183
2183
|
})
|
|
@@ -2193,7 +2193,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2193
2193
|
className: g(ao.legendToggle),
|
|
2194
2194
|
onClick: n,
|
|
2195
2195
|
children: t ? "Hide details" : "Show details"
|
|
2196
|
-
}), /* @__PURE__ */ v(
|
|
2196
|
+
}), /* @__PURE__ */ v(Ur, {
|
|
2197
2197
|
expanded: t,
|
|
2198
2198
|
children: /* @__PURE__ */ v("div", {
|
|
2199
2199
|
className: ao.detailsText,
|
|
@@ -2201,20 +2201,20 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2201
2201
|
})
|
|
2202
2202
|
})] }), fo = ({ type: e }) => {
|
|
2203
2203
|
switch (e) {
|
|
2204
|
-
case oo.SUCCESS: return /* @__PURE__ */ v(
|
|
2205
|
-
icon:
|
|
2204
|
+
case oo.SUCCESS: return /* @__PURE__ */ v(W, {
|
|
2205
|
+
icon: H.SUCCESS,
|
|
2206
2206
|
size: 16
|
|
2207
2207
|
});
|
|
2208
|
-
case oo.WARNING: return /* @__PURE__ */ v(
|
|
2209
|
-
icon:
|
|
2208
|
+
case oo.WARNING: return /* @__PURE__ */ v(W, {
|
|
2209
|
+
icon: H.WARNING,
|
|
2210
2210
|
size: 16
|
|
2211
2211
|
});
|
|
2212
|
-
case oo.ERROR: return /* @__PURE__ */ v(
|
|
2213
|
-
icon:
|
|
2212
|
+
case oo.ERROR: return /* @__PURE__ */ v(W, {
|
|
2213
|
+
icon: H.ERROR,
|
|
2214
2214
|
size: 16
|
|
2215
2215
|
});
|
|
2216
|
-
default: return /* @__PURE__ */ v(
|
|
2217
|
-
icon:
|
|
2216
|
+
default: return /* @__PURE__ */ v(W, {
|
|
2217
|
+
icon: H.INFO,
|
|
2218
2218
|
size: 16
|
|
2219
2219
|
});
|
|
2220
2220
|
}
|
|
@@ -2303,8 +2303,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2303
2303
|
groupOrderFirst: "_groupOrderFirst_sl2b5_193",
|
|
2304
2304
|
groupOrderMiddle: "_groupOrderMiddle_sl2b5_194",
|
|
2305
2305
|
groupOrderLast: "_groupOrderLast_sl2b5_198"
|
|
2306
|
-
}, yo = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a =
|
|
2307
|
-
let w = s(
|
|
2306
|
+
}, yo = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = B, onFocus: o = B, onBlur: c = B, right: l = !1, small: u = !1, tabIndex: d = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: _ = !1, clearable: y, placeholder: b, hasNonExistentValue: x, maxTooltipWidth: S, borderRadius: C }) => {
|
|
2307
|
+
let w = s(U), T = f === null || (f == null ? void 0 : f.value) === null ? "unselected" : f == null ? void 0 : f.value, E = T === "unselected", D = (T === "unselected" || y ? [/* @__PURE__ */ v("option", {
|
|
2308
2308
|
value: "unselected",
|
|
2309
2309
|
disabled: !y,
|
|
2310
2310
|
hidden: !y,
|
|
@@ -2319,13 +2319,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2319
2319
|
children: e.label
|
|
2320
2320
|
}, t))), O = (() => {
|
|
2321
2321
|
if (m) switch (m) {
|
|
2322
|
-
case
|
|
2323
|
-
case
|
|
2322
|
+
case V.FIRST: return vo.groupOrderFirst;
|
|
2323
|
+
case V.LAST: return vo.groupOrderLast;
|
|
2324
2324
|
default: return vo.groupOrderMiddle;
|
|
2325
2325
|
}
|
|
2326
2326
|
return "";
|
|
2327
2327
|
})();
|
|
2328
|
-
return /* @__PURE__ */ v(
|
|
2328
|
+
return /* @__PURE__ */ v(G, {
|
|
2329
2329
|
error: !!t,
|
|
2330
2330
|
warning: !!n,
|
|
2331
2331
|
text: r || t || n,
|
|
@@ -2439,11 +2439,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2439
2439
|
}),
|
|
2440
2440
|
/* @__PURE__ */ v("span", {
|
|
2441
2441
|
className: wo.check,
|
|
2442
|
-
children: i ? /* @__PURE__ */ v(
|
|
2442
|
+
children: i ? /* @__PURE__ */ v(W, { icon: H.CHECK }) : null
|
|
2443
2443
|
})
|
|
2444
2444
|
]
|
|
2445
2445
|
}), Wo = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2446
|
-
let a = s(
|
|
2446
|
+
let a = s(U);
|
|
2447
2447
|
switch (e.type) {
|
|
2448
2448
|
case xi.HEADING: return /* @__PURE__ */ v(Ho, { label: e.label });
|
|
2449
2449
|
case xi.OPTION:
|
|
@@ -2488,7 +2488,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2488
2488
|
return /* @__PURE__ */ v("div", {
|
|
2489
2489
|
"data-testid": u,
|
|
2490
2490
|
className: g(wo.layer, c && wo.small),
|
|
2491
|
-
children: n.length ? /* @__PURE__ */ v(
|
|
2491
|
+
children: n.length ? /* @__PURE__ */ v(Kn, {
|
|
2492
2492
|
listRef: d,
|
|
2493
2493
|
rowComponent: qo,
|
|
2494
2494
|
rowCount: n.length,
|
|
@@ -2561,7 +2561,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2561
2561
|
e.stopPropagation();
|
|
2562
2562
|
},
|
|
2563
2563
|
children: e.label
|
|
2564
|
-
}, t)), s.length > 0 && /* @__PURE__ */ v(
|
|
2564
|
+
}, t)), s.length > 0 && /* @__PURE__ */ v(G, {
|
|
2565
2565
|
text: s.map((e, t) => /* @__PURE__ */ v("div", { children: e.label }, t)),
|
|
2566
2566
|
display: "inline-flex",
|
|
2567
2567
|
children: /* @__PURE__ */ v("span", {
|
|
@@ -2570,7 +2570,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2570
2570
|
})
|
|
2571
2571
|
})]
|
|
2572
2572
|
});
|
|
2573
|
-
}, Xo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r =
|
|
2573
|
+
}, Xo = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = B, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2574
2574
|
let l = p(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2575
2575
|
return /* @__PURE__ */ y("div", {
|
|
2576
2576
|
className: Y.triggerInputContainer,
|
|
@@ -2605,8 +2605,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2605
2605
|
var k;
|
|
2606
2606
|
let [A, j] = bo(), M = Array.isArray(e) ? e.length > 0 && ((k = e[0]) == null ? void 0 : k.value) : e == null ? void 0 : e.value, N = r && M, P = (() => {
|
|
2607
2607
|
if (w) switch (w) {
|
|
2608
|
-
case
|
|
2609
|
-
case
|
|
2608
|
+
case V.FIRST: return Y.groupOrderFirst;
|
|
2609
|
+
case V.LAST: return Y.groupOrderLast;
|
|
2610
2610
|
default: return Y.groupOrderMiddle;
|
|
2611
2611
|
}
|
|
2612
2612
|
return "";
|
|
@@ -2651,14 +2651,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2651
2651
|
e.stopPropagation(), p && p(e);
|
|
2652
2652
|
},
|
|
2653
2653
|
"data-testid": O && `${O}-clear`,
|
|
2654
|
-
children: /* @__PURE__ */ v(
|
|
2654
|
+
children: /* @__PURE__ */ v(W, { icon: H.CLOSE })
|
|
2655
2655
|
}) : /* @__PURE__ */ v("span", {
|
|
2656
2656
|
className: g(Y.iconOpen),
|
|
2657
|
-
children: /* @__PURE__ */ v(
|
|
2657
|
+
children: /* @__PURE__ */ v(W, { icon: "chevron down" })
|
|
2658
2658
|
})
|
|
2659
2659
|
})]
|
|
2660
2660
|
})] });
|
|
2661
|
-
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(
|
|
2661
|
+
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(G, {
|
|
2662
2662
|
error: !!o,
|
|
2663
2663
|
warning: !!s,
|
|
2664
2664
|
text: c || o || s,
|
|
@@ -2787,7 +2787,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2787
2787
|
options: n
|
|
2788
2788
|
}), r();
|
|
2789
2789
|
}
|
|
2790
|
-
}, T = o(() => d ? d === "auto" ? Bo(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Bo(n, f, m, h), e == null ? void 0 : e.width) : e == null ? void 0 : e.width, [n, m]), { renderLayer: D, layerProps: O, triggerProps: k, triggerBounds: A } =
|
|
2790
|
+
}, T = o(() => d ? d === "auto" ? Bo(n, f, m, h) : d : "100%", [n, m]), E = o((e) => y ? Math.max(Bo(n, f, m, h), e == null ? void 0 : e.width) : e == null ? void 0 : e.width, [n, m]), { renderLayer: D, layerProps: O, triggerProps: k, triggerBounds: A } = $r({
|
|
2791
2791
|
isOpen: (b = e == null ? void 0 : e.isLayerOpen) == null ? !1 : b,
|
|
2792
2792
|
matchReferenceWidth: !0,
|
|
2793
2793
|
overflowContainer: !0,
|
|
@@ -2887,7 +2887,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2887
2887
|
triggerBounds: A
|
|
2888
2888
|
};
|
|
2889
2889
|
}, ds = (e) => {
|
|
2890
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: b = !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 = s(
|
|
2890
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: c, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: m = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: b = !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 = s(U), A = l !== null, j = p(null), M = p(null), [N, P] = bo(), F = xo(), [I, ee] = f(os, {
|
|
2891
2891
|
options: o,
|
|
2892
2892
|
firstSelectedOptionIndex: E
|
|
2893
2893
|
}, ({ options: e }) => ({
|
|
@@ -2971,7 +2971,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2971
2971
|
})) })
|
|
2972
2972
|
})]
|
|
2973
2973
|
});
|
|
2974
|
-
}, fs = (e) => /* @__PURE__ */ v(
|
|
2974
|
+
}, fs = (e) => /* @__PURE__ */ v(Jr, { children: /* @__PURE__ */ v(ds, { ...e }) }), ps = (e) => e == null || e === "", ms = (e) => /^-?\d+(\.\d+)?$/.test(e.trim()), hs = (e) => e instanceof Array, gs = (e, t) => t && Array.isArray(e) ? e.map((e) => typeof e == "string" || typeof e == "number" ? {
|
|
2975
2975
|
label: e,
|
|
2976
2976
|
value: e
|
|
2977
2977
|
} : e) : e, _s = (e, t) => {
|
|
@@ -3000,7 +3000,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3000
3000
|
hasNonExistentValue: r && l !== void 0 ? xs(s, l) : !1
|
|
3001
3001
|
};
|
|
3002
3002
|
}, Cs = (e) => {
|
|
3003
|
-
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a =
|
|
3003
|
+
let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = B, deprecatedEventHandler: o = !1, autoScroll: s = !0, warning: c, error: l, checkNonExistentValues: u = !0, closeOnOptionActionClick: d = !0, testId: f, disabled: p } = e, { multi: m, simpleInputs: h, options: g, selectedOptions: _, firstSelectedOptionIndex: b, hasNonExistentValue: x } = Ss(n, r, !i && s === !0, u), S = !m, C = i && S;
|
|
3004
3004
|
i && !S && console.warn("Native select does not support provided props (see stories)");
|
|
3005
3005
|
let w = "Value no longer available for re-selection", T = x && !p ? c ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", { children: w }), /* @__PURE__ */ v("div", { children: c })] }) : w : c, E = x && l && !p ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", { children: w }), /* @__PURE__ */ v("div", { children: l })] }) : l, D = (e, n) => {
|
|
3006
3006
|
if (o) {
|
|
@@ -3062,8 +3062,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3062
3062
|
}, ks = ({ children: e, groupOrder: t, small: n = !1 }) => {
|
|
3063
3063
|
let r = (() => {
|
|
3064
3064
|
if (t) switch (t) {
|
|
3065
|
-
case
|
|
3066
|
-
case
|
|
3065
|
+
case V.FIRST: return Os.groupOrderFirst;
|
|
3066
|
+
case V.LAST: return Os.groupOrderLast;
|
|
3067
3067
|
default: return Os.groupOrderMiddle;
|
|
3068
3068
|
}
|
|
3069
3069
|
return "";
|
|
@@ -3101,7 +3101,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3101
3101
|
small: r,
|
|
3102
3102
|
round: !0,
|
|
3103
3103
|
basic: !0,
|
|
3104
|
-
icon:
|
|
3104
|
+
icon: H.CHEVRON_DOUBLE_LEFT,
|
|
3105
3105
|
onClick: () => h("1"),
|
|
3106
3106
|
disabled: l || n === 1
|
|
3107
3107
|
}),
|
|
@@ -3109,7 +3109,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3109
3109
|
small: r,
|
|
3110
3110
|
round: !0,
|
|
3111
3111
|
basic: !0,
|
|
3112
|
-
icon:
|
|
3112
|
+
icon: H.CHEVRON_LEFT,
|
|
3113
3113
|
onClick: () => h(String(Number(n) - 1)),
|
|
3114
3114
|
disabled: l || n === 1
|
|
3115
3115
|
}),
|
|
@@ -3130,7 +3130,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3130
3130
|
small: r,
|
|
3131
3131
|
round: !0,
|
|
3132
3132
|
basic: !0,
|
|
3133
|
-
icon:
|
|
3133
|
+
icon: H.CHEVRON_RIGHT,
|
|
3134
3134
|
onClick: () => h(String(Number(n) + 1)),
|
|
3135
3135
|
disabled: l || n === u
|
|
3136
3136
|
}),
|
|
@@ -3138,7 +3138,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3138
3138
|
small: r,
|
|
3139
3139
|
round: !0,
|
|
3140
3140
|
basic: !0,
|
|
3141
|
-
icon:
|
|
3141
|
+
icon: H.CHEVRON_DOUBLE_RIGHT,
|
|
3142
3142
|
onClick: () => h(String(u)),
|
|
3143
3143
|
disabled: l || n === u,
|
|
3144
3144
|
testId: s == null ? void 0 : s.doubleRightBtn
|
|
@@ -3195,10 +3195,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3195
3195
|
if (!e) return null;
|
|
3196
3196
|
let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
|
|
3197
3197
|
switch (a || (o && i ? i : r)) {
|
|
3198
|
-
case
|
|
3199
|
-
case
|
|
3200
|
-
case
|
|
3201
|
-
default: return n ?
|
|
3198
|
+
case wr.LEFT: return n ? wr.LEFT : t.leftAligned;
|
|
3199
|
+
case wr.RIGHT: return n ? wr.RIGHT : t.rightAligned;
|
|
3200
|
+
case wr.CENTER: return n ? wr.CENTER : t.centerAligned;
|
|
3201
|
+
default: return n ? wr.LEFT : t.leftAligned;
|
|
3202
3202
|
}
|
|
3203
3203
|
}, zs = (e, t = !1, n = 0) => {
|
|
3204
3204
|
if (!e || e.length === 0) return [];
|
|
@@ -3253,15 +3253,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3253
3253
|
disabled: e.disabled,
|
|
3254
3254
|
isInTable: !0,
|
|
3255
3255
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3256
|
-
right: t ===
|
|
3256
|
+
right: t === wr.RIGHT,
|
|
3257
3257
|
selectOnFocus: e.selectOnFocus,
|
|
3258
3258
|
testId: n,
|
|
3259
3259
|
tabIndex: e.disabled ? -1 : 0,
|
|
3260
3260
|
tooltip: e.tooltip,
|
|
3261
3261
|
type: r
|
|
3262
|
-
}), Vs = 14, Hs = (e) => String(
|
|
3262
|
+
}), Vs = 14, Hs = (e) => String(Vn(e)), Us = (e) => An(e) ? e : Hs(Ln(Bn(e), Vs)), Ws = (e) => e ? typeof e == "string" ? e : tn(e) ? e[0] : e.fieldName : "", Gs = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: l = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: h = 0, testId: g, tooltip: _ = null, warning: y = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
|
|
3263
3263
|
let k = (e) => {
|
|
3264
|
-
let n =
|
|
3264
|
+
let n = Un(e), r = t && ps(e);
|
|
3265
3265
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3266
3266
|
valid: !0,
|
|
3267
3267
|
errors: []
|
|
@@ -3277,7 +3277,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3277
3277
|
}, j = p(null), [M, N] = m(A(Hs(s))), [P, F] = m(!1), I = Ws(e), { valid: ee, errors: L } = k(M), te = L && L.length && !D ? L[0] : null;
|
|
3278
3278
|
c(() => {
|
|
3279
3279
|
let e = A(Hs(s));
|
|
3280
|
-
|
|
3280
|
+
Bn(M) !== Bn(e) && N(e);
|
|
3281
3281
|
}, [
|
|
3282
3282
|
s,
|
|
3283
3283
|
w,
|
|
@@ -3291,12 +3291,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3291
3291
|
]);
|
|
3292
3292
|
let ne = (e) => {
|
|
3293
3293
|
var n, r;
|
|
3294
|
-
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3294
|
+
let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = Sn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3295
3295
|
N(a), ((r = k(a)) != null && r.valid || t && ps(i)) && l({
|
|
3296
3296
|
...e,
|
|
3297
3297
|
target: {
|
|
3298
3298
|
...e.target,
|
|
3299
|
-
value:
|
|
3299
|
+
value: zn(Hs(a)),
|
|
3300
3300
|
name: I
|
|
3301
3301
|
}
|
|
3302
3302
|
});
|
|
@@ -3315,7 +3315,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3315
3315
|
testId: g,
|
|
3316
3316
|
disabled: n,
|
|
3317
3317
|
placeholder: t,
|
|
3318
|
-
value: T && !P && ee ? E ? Hs(E(M)) : ((e) => S ?
|
|
3318
|
+
value: T && !P && ee ? E ? Hs(E(M)) : ((e) => S ? In(e, 2) : Pn(e, 4))(s) : M,
|
|
3319
3319
|
onChange: ne,
|
|
3320
3320
|
onFocus: (e) => {
|
|
3321
3321
|
F(!0), u(e);
|
|
@@ -3354,7 +3354,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3354
3354
|
warning: e.warning,
|
|
3355
3355
|
disabled: e.disabled,
|
|
3356
3356
|
isInTable: !0,
|
|
3357
|
-
left: (r = e.left) == null ? t ===
|
|
3357
|
+
left: (r = e.left) == null ? t === wr.LEFT : r,
|
|
3358
3358
|
selectOnFocus: e.selectOnFocus,
|
|
3359
3359
|
tabIndex: e.disabled ? -1 : 0,
|
|
3360
3360
|
testId: n,
|
|
@@ -3389,7 +3389,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3389
3389
|
width: "100%",
|
|
3390
3390
|
autoLayerWidth: e.autoLayerWidth,
|
|
3391
3391
|
multi: e.multi,
|
|
3392
|
-
right: t ===
|
|
3392
|
+
right: t === wr.RIGHT,
|
|
3393
3393
|
testId: n,
|
|
3394
3394
|
tabIndex: e.disabled ? -1 : 0
|
|
3395
3395
|
}), Js = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ v("div", {
|
|
@@ -3412,10 +3412,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3412
3412
|
testId: n
|
|
3413
3413
|
}) : null
|
|
3414
3414
|
}), Ys = ({ cell: e, testId: t }) => {
|
|
3415
|
-
let n = s(
|
|
3415
|
+
let n = s(U), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => J(e);
|
|
3416
3416
|
return /* @__PURE__ */ v("div", {
|
|
3417
3417
|
className: X.inputWrapper,
|
|
3418
|
-
children: /* @__PURE__ */ v(
|
|
3418
|
+
children: /* @__PURE__ */ v(G, {
|
|
3419
3419
|
error: !!r,
|
|
3420
3420
|
warning: !!i,
|
|
3421
3421
|
text: a || r || i,
|
|
@@ -3439,7 +3439,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3439
3439
|
});
|
|
3440
3440
|
}, Xs = ({ cell: e, testId: t }) => /* @__PURE__ */ v("div", {
|
|
3441
3441
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3442
|
-
children: /* @__PURE__ */ v(
|
|
3442
|
+
children: /* @__PURE__ */ v(si, {
|
|
3443
3443
|
label: e.label,
|
|
3444
3444
|
checked: e.checked,
|
|
3445
3445
|
isInTable: !0,
|
|
@@ -3457,51 +3457,43 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3457
3457
|
button: "_button_1vgw8_18",
|
|
3458
3458
|
label: "_label_1vgw8_21",
|
|
3459
3459
|
dot: "_dot_1vgw8_32"
|
|
3460
|
-
}, Qs =
|
|
3460
|
+
}, Qs = Qn((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(G, {
|
|
3461
3461
|
text: /* @__PURE__ */ y(_, { children: [
|
|
3462
3462
|
n,
|
|
3463
3463
|
n ? ": " : "",
|
|
3464
3464
|
t == null ? r : t
|
|
3465
3465
|
] }),
|
|
3466
3466
|
children: /* @__PURE__ */ v("div", { className: Zs.dot })
|
|
3467
|
-
}), e), {}),
|
|
3467
|
+
}), e), {}), $n), $s = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", value: i, min: a, max: o, step: c = 1, marks: l = [], showArrows: u = !1, showTooltip: d = !1, tooltipFormatter: f = (e) => e, disabled: p = !1, range: m = !1, small: h = !1, vertical: _ = {
|
|
3468
3468
|
enabled: !1,
|
|
3469
3469
|
width: "100px",
|
|
3470
3470
|
height: "400px"
|
|
3471
|
-
}, onChange: b
|
|
3472
|
-
let
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
},
|
|
3479
|
-
x == null || x(w(e));
|
|
3480
|
-
}, D = () => /* @__PURE__ */ v("div", {
|
|
3471
|
+
}, onChange: b = B }) => {
|
|
3472
|
+
let x = s(U), S = Qs(l), C = (n) => {
|
|
3473
|
+
b({ target: {
|
|
3474
|
+
name: e == null ? "" : e,
|
|
3475
|
+
value: n,
|
|
3476
|
+
label: typeof t == "string" ? t : String(t)
|
|
3477
|
+
} });
|
|
3478
|
+
}, w = () => /* @__PURE__ */ v("div", {
|
|
3481
3479
|
className: Zs.button,
|
|
3482
3480
|
children: /* @__PURE__ */ v(K, {
|
|
3483
3481
|
basic: !0,
|
|
3484
3482
|
small: !0,
|
|
3485
3483
|
round: !0,
|
|
3486
|
-
onClick: () =>
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
},
|
|
3490
|
-
disabled: p || i === a || S,
|
|
3491
|
-
icon: V.FAST_BACKWARD
|
|
3484
|
+
onClick: () => C(m ? [a, i == null ? void 0 : i[1]] : a),
|
|
3485
|
+
disabled: p || i === a || x,
|
|
3486
|
+
icon: H.FAST_BACKWARD
|
|
3492
3487
|
})
|
|
3493
|
-
}),
|
|
3488
|
+
}), T = () => /* @__PURE__ */ v("div", {
|
|
3494
3489
|
className: Zs.button,
|
|
3495
3490
|
children: /* @__PURE__ */ v(K, {
|
|
3496
3491
|
basic: !0,
|
|
3497
3492
|
small: !0,
|
|
3498
3493
|
round: !0,
|
|
3499
|
-
onClick: () =>
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
},
|
|
3503
|
-
disabled: p || i === o || S,
|
|
3504
|
-
icon: V.FAST_FORWARD
|
|
3494
|
+
onClick: () => C(m ? [i == null ? void 0 : i[0], o] : o),
|
|
3495
|
+
disabled: p || i === o || x,
|
|
3496
|
+
icon: H.FAST_FORWARD
|
|
3505
3497
|
})
|
|
3506
3498
|
});
|
|
3507
3499
|
return /* @__PURE__ */ y("div", {
|
|
@@ -3511,23 +3503,22 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3511
3503
|
height: _.height
|
|
3512
3504
|
} : { width: n },
|
|
3513
3505
|
children: [
|
|
3514
|
-
u && (_.enabled ? /* @__PURE__ */ v(
|
|
3515
|
-
/* @__PURE__ */ v(
|
|
3506
|
+
u && (_.enabled ? /* @__PURE__ */ v(T, {}) : /* @__PURE__ */ v(w, {})),
|
|
3507
|
+
/* @__PURE__ */ v(Zn, {
|
|
3516
3508
|
range: m,
|
|
3517
3509
|
allowCross: !1,
|
|
3518
|
-
className: g((p ||
|
|
3510
|
+
className: g((p || x) && Zs.rcSliderDisabled, u && Zs.hasArrows),
|
|
3519
3511
|
value: i,
|
|
3520
3512
|
max: o,
|
|
3521
3513
|
min: a,
|
|
3522
3514
|
step: c,
|
|
3523
|
-
marks:
|
|
3524
|
-
onChange: (e) =>
|
|
3525
|
-
|
|
3526
|
-
disabled: p || S,
|
|
3515
|
+
marks: S,
|
|
3516
|
+
onChange: (e) => C(e),
|
|
3517
|
+
disabled: p || x,
|
|
3527
3518
|
vertical: _.enabled,
|
|
3528
3519
|
handleRender: (e, t) => /* @__PURE__ */ y("div", {
|
|
3529
3520
|
style: { position: "relative" },
|
|
3530
|
-
children: [e, d && t.dragging && /* @__PURE__ */ v(
|
|
3521
|
+
children: [e, d && t.dragging && /* @__PURE__ */ v(G, {
|
|
3531
3522
|
display: "block",
|
|
3532
3523
|
text: f(i),
|
|
3533
3524
|
forceOpen: !0,
|
|
@@ -3538,7 +3529,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3538
3529
|
})]
|
|
3539
3530
|
})
|
|
3540
3531
|
}),
|
|
3541
|
-
u && (_.enabled ? /* @__PURE__ */ v(
|
|
3532
|
+
u && (_.enabled ? /* @__PURE__ */ v(w, {}) : /* @__PURE__ */ v(T, {})),
|
|
3542
3533
|
t && /* @__PURE__ */ v("label", {
|
|
3543
3534
|
className: Zs.label,
|
|
3544
3535
|
style: { width: r },
|
|
@@ -3565,19 +3556,19 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3565
3556
|
let { tooltip: t, icon: n } = e;
|
|
3566
3557
|
return /* @__PURE__ */ v("div", {
|
|
3567
3558
|
className: X.iconCellWrapper,
|
|
3568
|
-
children: /* @__PURE__ */ v(
|
|
3559
|
+
children: /* @__PURE__ */ v(G, {
|
|
3569
3560
|
text: t,
|
|
3570
3561
|
enabled: !!t && J(t),
|
|
3571
3562
|
display: "flex",
|
|
3572
3563
|
placement: "top-center",
|
|
3573
|
-
children: /* @__PURE__ */ v(
|
|
3564
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
3574
3565
|
})
|
|
3575
3566
|
});
|
|
3576
3567
|
}, nc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), rc = ({ cell: e }) => {
|
|
3577
3568
|
let { helpIcon: t } = e;
|
|
3578
3569
|
return t ? /* @__PURE__ */ v("div", {
|
|
3579
3570
|
className: X.icon,
|
|
3580
|
-
children: /* @__PURE__ */ v(
|
|
3571
|
+
children: /* @__PURE__ */ v(oi, {
|
|
3581
3572
|
onClick: t.onClick,
|
|
3582
3573
|
text: t.tooltip
|
|
3583
3574
|
})
|
|
@@ -3586,10 +3577,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3586
3577
|
let { libraryIcon: t } = e;
|
|
3587
3578
|
return t ? /* @__PURE__ */ v("div", {
|
|
3588
3579
|
className: X.icon,
|
|
3589
|
-
children: /* @__PURE__ */ v(
|
|
3580
|
+
children: /* @__PURE__ */ v(oi, {
|
|
3590
3581
|
onClick: t.onClick,
|
|
3591
3582
|
text: t.tooltip,
|
|
3592
|
-
icon:
|
|
3583
|
+
icon: H.LIBRARY
|
|
3593
3584
|
})
|
|
3594
3585
|
}) : null;
|
|
3595
3586
|
}, ac = ({ cell: e }) => {
|
|
@@ -3598,13 +3589,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3598
3589
|
className: X.sortingCellIcon,
|
|
3599
3590
|
children: [n === "down" ? /* @__PURE__ */ v(ha, {
|
|
3600
3591
|
link: !0,
|
|
3601
|
-
children: /* @__PURE__ */ v(
|
|
3592
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_ASCENDING })
|
|
3602
3593
|
}) : n === "up" ? /* @__PURE__ */ v(ha, {
|
|
3603
3594
|
link: !0,
|
|
3604
|
-
children: /* @__PURE__ */ v(
|
|
3595
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_DESCENDING })
|
|
3605
3596
|
}) : /* @__PURE__ */ v(ha, {
|
|
3606
3597
|
faint: !0,
|
|
3607
|
-
children: /* @__PURE__ */ v(
|
|
3598
|
+
children: /* @__PURE__ */ v(W, { icon: H.SORT_DESCENDING })
|
|
3608
3599
|
}), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
|
|
3609
3600
|
}) : null;
|
|
3610
3601
|
}, oc = ({ cell: e, isHeader: t, testId: n }) => {
|
|
@@ -3622,7 +3613,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3622
3613
|
});
|
|
3623
3614
|
return /* @__PURE__ */ v("div", {
|
|
3624
3615
|
className: X.inputWrapper,
|
|
3625
|
-
children: /* @__PURE__ */ v(
|
|
3616
|
+
children: /* @__PURE__ */ v(G, {
|
|
3626
3617
|
error: !!r,
|
|
3627
3618
|
warning: !!i,
|
|
3628
3619
|
text: a || r || i,
|
|
@@ -3658,7 +3649,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3658
3649
|
disabled: "_disabled_1u1qo_98",
|
|
3659
3650
|
isInTable: "_isInTable_1u1qo_114",
|
|
3660
3651
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3661
|
-
}, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d =
|
|
3652
|
+
}, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Er.CAPITALIZE }) => {
|
|
3662
3653
|
let f = l || u;
|
|
3663
3654
|
return /* @__PURE__ */ y("div", {
|
|
3664
3655
|
className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
|
|
@@ -3666,7 +3657,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3666
3657
|
"data-testid": c,
|
|
3667
3658
|
children: [
|
|
3668
3659
|
/* @__PURE__ */ v("input", {
|
|
3669
|
-
type:
|
|
3660
|
+
type: Or.RADIO,
|
|
3670
3661
|
value: n,
|
|
3671
3662
|
checked: r,
|
|
3672
3663
|
onChange: () => {},
|
|
@@ -3681,7 +3672,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3681
3672
|
f && /* @__PURE__ */ v("div", {
|
|
3682
3673
|
className: cc.helpIconEnabled,
|
|
3683
3674
|
onClick: u,
|
|
3684
|
-
children: /* @__PURE__ */ v(
|
|
3675
|
+
children: /* @__PURE__ */ v(oi, { text: l })
|
|
3685
3676
|
})
|
|
3686
3677
|
]
|
|
3687
3678
|
});
|
|
@@ -3728,7 +3719,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3728
3719
|
}
|
|
3729
3720
|
}, fc = /* @__PURE__ */ function(e) {
|
|
3730
3721
|
return e.INPUT = "Input", e.NUMBER_INPUT = "NumberInput", e.SELECT = "Select", e.POPOVER = "Popover", e.SLIDER = "Slider", e.CHECKBOX = "CheckBox", e.RADIO = "Radio", e.ACTIONS = "Actions", e.AUTO_UNIT = "AutoUnit", e.UNIT = "Unit", e.STATIC = "Static", e;
|
|
3731
|
-
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3722
|
+
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = wr.LEFT, width: i, testId: a }) => {
|
|
3732
3723
|
var o;
|
|
3733
3724
|
if (!e) return null;
|
|
3734
3725
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
|
|
@@ -3739,7 +3730,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3739
3730
|
}, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === fc.INPUT || e.type === fc.NUMBER_INPUT || e.type === fc.SELECT || e.type === fc.POPOVER ? X.inputCell : e.type === fc.SLIDER ? X.sliderCell : e.type === fc.CHECKBOX || e.type === fc.RADIO ? X.checkBoxCell : e.type === fc.ACTIONS ? X.actionsCell : X.staticCell, b = g(X.cell, y, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === fc.STATIC || !e.type, C = {
|
|
3740
3731
|
width: x,
|
|
3741
3732
|
minWidth: x,
|
|
3742
|
-
textTransform: t && S ?
|
|
3733
|
+
textTransform: t && S ? Er.CAPITALIZE : void 0,
|
|
3743
3734
|
...s
|
|
3744
3735
|
};
|
|
3745
3736
|
return /* @__PURE__ */ v(t ? "th" : "td", {
|
|
@@ -3750,7 +3741,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3750
3741
|
rowSpan: l,
|
|
3751
3742
|
children: /* @__PURE__ */ v(dc, {
|
|
3752
3743
|
cell: e,
|
|
3753
|
-
columnAlignment: _ == null ?
|
|
3744
|
+
columnAlignment: _ == null ? wr.RIGHT : _,
|
|
3754
3745
|
isHeader: t,
|
|
3755
3746
|
testId: a
|
|
3756
3747
|
})
|
|
@@ -3772,11 +3763,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3772
3763
|
actions: e.actions
|
|
3773
3764
|
},
|
|
3774
3765
|
isHeader: n
|
|
3775
|
-
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } =
|
|
3766
|
+
}, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Jn({
|
|
3776
3767
|
id: t.toString(),
|
|
3777
3768
|
animateLayoutChanges: () => !1
|
|
3778
3769
|
}), P = {
|
|
3779
|
-
transform: u ? void 0 :
|
|
3770
|
+
transform: u ? void 0 : Xn.Translate.toString(j),
|
|
3780
3771
|
height: d,
|
|
3781
3772
|
transition: M,
|
|
3782
3773
|
opacity: N ? 0 : void 0
|
|
@@ -3818,7 +3809,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3818
3809
|
className: g(Is.dragIcon, u ? Is.dragIconDisabled : ""),
|
|
3819
3810
|
...O,
|
|
3820
3811
|
...k,
|
|
3821
|
-
children: /* @__PURE__ */ v(
|
|
3812
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
3822
3813
|
})
|
|
3823
3814
|
}) : null,
|
|
3824
3815
|
E,
|
|
@@ -3831,8 +3822,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3831
3822
|
}, `${t}_expanded_content`) : null] });
|
|
3832
3823
|
}, hc = (e) => {
|
|
3833
3824
|
let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [f, p] = m(null), [h, _] = m(!1), b = d(() => l.map((e, t) => t.toString()), [l]);
|
|
3834
|
-
return a ? /* @__PURE__ */ y(
|
|
3835
|
-
collisionDetection:
|
|
3825
|
+
return a ? /* @__PURE__ */ y(er, {
|
|
3826
|
+
collisionDetection: nr,
|
|
3836
3827
|
onDragStart: (e) => {
|
|
3837
3828
|
p(e.active.id);
|
|
3838
3829
|
},
|
|
@@ -3856,11 +3847,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3856
3847
|
to: i
|
|
3857
3848
|
}));
|
|
3858
3849
|
},
|
|
3859
|
-
children: [/* @__PURE__ */ v(
|
|
3850
|
+
children: [/* @__PURE__ */ v(qn, {
|
|
3860
3851
|
items: b,
|
|
3861
|
-
strategy:
|
|
3852
|
+
strategy: Yn,
|
|
3862
3853
|
children: t({ dropDisabled: h })
|
|
3863
|
-
}), !!f &&
|
|
3854
|
+
}), !!f && vn(/* @__PURE__ */ v(tr, {
|
|
3864
3855
|
dropAnimation: null,
|
|
3865
3856
|
children: /* @__PURE__ */ v("table", {
|
|
3866
3857
|
className: g(mo.table, mo.dragOverlay),
|
|
@@ -3886,7 +3877,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3886
3877
|
}) : t({});
|
|
3887
3878
|
}, gc = ({ table: e, children: t }) => {
|
|
3888
3879
|
var n, r, i;
|
|
3889
|
-
let a = p(null), o =
|
|
3880
|
+
let a = p(null), o = rr({
|
|
3890
3881
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3891
3882
|
getScrollElement: () => a.current,
|
|
3892
3883
|
estimateSize: () => 31,
|
|
@@ -4130,9 +4121,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4130
4121
|
]);
|
|
4131
4122
|
let S = d(() => t.fields.map((e, r) => {
|
|
4132
4123
|
var a, o, s;
|
|
4133
|
-
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) =>
|
|
4124
|
+
let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => mn(e) === bc);
|
|
4134
4125
|
if (!l.length || u) return {};
|
|
4135
|
-
let d = t == null || (a = t.units) == null ? void 0 : a[r], f =
|
|
4126
|
+
let d = t == null || (a = t.units) == null ? void 0 : a[r], f = mn(d), p = l != null && l.some((e) => mn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
|
|
4136
4127
|
return {
|
|
4137
4128
|
key: i == null || (s = i[r]) == null ? void 0 : s.value,
|
|
4138
4129
|
value: p,
|
|
@@ -4481,7 +4472,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4481
4472
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4482
4473
|
}
|
|
4483
4474
|
}, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4484
|
-
|
|
4475
|
+
ar.parse(e, {
|
|
4485
4476
|
...Kc,
|
|
4486
4477
|
preview: t,
|
|
4487
4478
|
complete: (e) => {
|
|
@@ -4514,7 +4505,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4514
4505
|
t,
|
|
4515
4506
|
...n
|
|
4516
4507
|
].filter(Boolean);
|
|
4517
|
-
return
|
|
4508
|
+
return ar.unparse(o, {
|
|
4518
4509
|
quotes: !1,
|
|
4519
4510
|
header: !0,
|
|
4520
4511
|
delimiter: a
|
|
@@ -4559,12 +4550,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4559
4550
|
default: return "info";
|
|
4560
4551
|
}
|
|
4561
4552
|
})();
|
|
4562
|
-
return e !== void 0 &&
|
|
4553
|
+
return e !== void 0 && cr.isActive(e) ? cr.update(e, {
|
|
4563
4554
|
render: o,
|
|
4564
4555
|
autoClose: n,
|
|
4565
4556
|
onClose: r,
|
|
4566
4557
|
type: s
|
|
4567
|
-
}) :
|
|
4558
|
+
}) : cr(o, {
|
|
4568
4559
|
toastId: e,
|
|
4569
4560
|
autoClose: n,
|
|
4570
4561
|
onClose: r,
|
|
@@ -4574,11 +4565,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4574
4565
|
pauseOnHover: !0,
|
|
4575
4566
|
draggable: !1,
|
|
4576
4567
|
closeButton: a,
|
|
4577
|
-
transition:
|
|
4568
|
+
transition: or,
|
|
4578
4569
|
type: s
|
|
4579
4570
|
});
|
|
4580
4571
|
}, cl = (e) => {
|
|
4581
|
-
|
|
4572
|
+
cr.dismiss(e);
|
|
4582
4573
|
}, ll = (e, t) => {
|
|
4583
4574
|
t(() => {
|
|
4584
4575
|
sl({ ...e });
|
|
@@ -4589,8 +4580,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4589
4580
|
disabled: "_disabled_18fme_105",
|
|
4590
4581
|
noMargin: "_noMargin_18fme_113",
|
|
4591
4582
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4592
|
-
}, dl = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f =
|
|
4593
|
-
let p = s(
|
|
4583
|
+
}, dl = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Er.CAPITALIZE }) => {
|
|
4584
|
+
let p = s(U), m = u || d, h = r || p;
|
|
4594
4585
|
return /* @__PURE__ */ y("div", {
|
|
4595
4586
|
className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
|
|
4596
4587
|
style: { display: i },
|
|
@@ -4600,7 +4591,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4600
4591
|
"data-testid": l,
|
|
4601
4592
|
children: [
|
|
4602
4593
|
/* @__PURE__ */ v("input", {
|
|
4603
|
-
type:
|
|
4594
|
+
type: Or.CHECKBOX,
|
|
4604
4595
|
name: e,
|
|
4605
4596
|
value: n == null ? void 0 : n.toString(),
|
|
4606
4597
|
disabled: h,
|
|
@@ -4614,7 +4605,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4614
4605
|
m && /* @__PURE__ */ v("div", {
|
|
4615
4606
|
className: ul.helpIconEnabled,
|
|
4616
4607
|
onClick: d,
|
|
4617
|
-
children: /* @__PURE__ */ v(
|
|
4608
|
+
children: /* @__PURE__ */ v(oi, { text: u })
|
|
4618
4609
|
})
|
|
4619
4610
|
]
|
|
4620
4611
|
});
|
|
@@ -4639,7 +4630,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4639
4630
|
let j = o((t) => {
|
|
4640
4631
|
if (t) {
|
|
4641
4632
|
var n, r, i;
|
|
4642
|
-
let t =
|
|
4633
|
+
let t = ir(I == null || (n = I.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
|
|
4643
4634
|
validationRules: s,
|
|
4644
4635
|
importLimit: (r = e.importLimit) == null ? xc : r
|
|
4645
4636
|
}, o = al(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4680,7 +4671,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4680
4671
|
/* @__PURE__ */ y("div", {
|
|
4681
4672
|
className: io.headerContainer,
|
|
4682
4673
|
children: [
|
|
4683
|
-
/* @__PURE__ */ v(
|
|
4674
|
+
/* @__PURE__ */ v(G, {
|
|
4684
4675
|
text: u("downsampleTooltip"),
|
|
4685
4676
|
children: /* @__PURE__ */ v(dl, {
|
|
4686
4677
|
label: u("downsampled"),
|
|
@@ -4689,7 +4680,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4689
4680
|
disabled: re || !L
|
|
4690
4681
|
})
|
|
4691
4682
|
}),
|
|
4692
|
-
/* @__PURE__ */ v(
|
|
4683
|
+
/* @__PURE__ */ v(G, {
|
|
4693
4684
|
text: u("deletePastedContent"),
|
|
4694
4685
|
children: /* @__PURE__ */ v(K, {
|
|
4695
4686
|
name: "clearReview",
|
|
@@ -4698,7 +4689,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4698
4689
|
onClick: M
|
|
4699
4690
|
})
|
|
4700
4691
|
}),
|
|
4701
|
-
/* @__PURE__ */ v(
|
|
4692
|
+
/* @__PURE__ */ v(G, {
|
|
4702
4693
|
text: u("openHelp"),
|
|
4703
4694
|
children: /* @__PURE__ */ v(K, {
|
|
4704
4695
|
name: "help",
|
|
@@ -4925,7 +4916,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4925
4916
|
...e,
|
|
4926
4917
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
4927
4918
|
let t = String(e == null ? "" : e);
|
|
4928
|
-
return yl.test(t) ?
|
|
4919
|
+
return yl.test(t) ? Sn(t) : t;
|
|
4929
4920
|
}))
|
|
4930
4921
|
};
|
|
4931
4922
|
}, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5086,7 +5077,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5086
5077
|
onClickCopyClipboard: o(async (e) => {
|
|
5087
5078
|
let t = await v();
|
|
5088
5079
|
if (!t) return;
|
|
5089
|
-
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = al(n, o, a.map((t) => t.map((t) =>
|
|
5080
|
+
let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = al(n, o, a.map((t) => t.map((t) => lr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5090
5081
|
try {
|
|
5091
5082
|
await navigator.clipboard.writeText(c), ll({ message: {
|
|
5092
5083
|
type: "Success",
|
|
@@ -5109,7 +5100,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5109
5100
|
} }, i);
|
|
5110
5101
|
return;
|
|
5111
5102
|
}
|
|
5112
|
-
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(
|
|
5103
|
+
if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(gn(e), dn))) {
|
|
5113
5104
|
ll({ message: {
|
|
5114
5105
|
type: "Error",
|
|
5115
5106
|
content: "Smart upload returned unexpected format.",
|
|
@@ -5331,8 +5322,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5331
5322
|
testId: n
|
|
5332
5323
|
})
|
|
5333
5324
|
] });
|
|
5334
|
-
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a =
|
|
5335
|
-
let c = s(
|
|
5325
|
+
}, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = B, ...o }) => {
|
|
5326
|
+
let c = s(U), l = p(null), u = () => {
|
|
5336
5327
|
var e;
|
|
5337
5328
|
i || c || (e = l.current) == null || e.click();
|
|
5338
5329
|
}, d = (e) => {
|
|
@@ -5370,7 +5361,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5370
5361
|
onClick: () => {},
|
|
5371
5362
|
tooltip: "",
|
|
5372
5363
|
testId: void 0
|
|
5373
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5364
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Er.CAPITALIZE }) => {
|
|
5374
5365
|
var d;
|
|
5375
5366
|
return /* @__PURE__ */ v("div", {
|
|
5376
5367
|
className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
|
|
@@ -5382,25 +5373,25 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5382
5373
|
children: [e, /* @__PURE__ */ y("div", {
|
|
5383
5374
|
className: kl.icons,
|
|
5384
5375
|
children: [
|
|
5385
|
-
(n || i) && /* @__PURE__ */ v(
|
|
5376
|
+
(n || i) && /* @__PURE__ */ v(oi, {
|
|
5386
5377
|
text: n,
|
|
5387
5378
|
onClick: i,
|
|
5388
5379
|
maxWidth: r
|
|
5389
5380
|
}),
|
|
5390
|
-
o && /* @__PURE__ */ v(
|
|
5381
|
+
o && /* @__PURE__ */ v(oi, {
|
|
5391
5382
|
text: o,
|
|
5392
|
-
icon:
|
|
5383
|
+
icon: H.INFO
|
|
5393
5384
|
}),
|
|
5394
|
-
a && a.visible && a.onClick && /* @__PURE__ */ v(
|
|
5385
|
+
a && a.visible && a.onClick && /* @__PURE__ */ v(oi, {
|
|
5395
5386
|
onClick: a.onClick,
|
|
5396
|
-
icon: a.active ?
|
|
5387
|
+
icon: a.active ? H.LOCK : H.UNLOCK,
|
|
5397
5388
|
active: a.active,
|
|
5398
5389
|
testId: a.testId
|
|
5399
5390
|
}),
|
|
5400
|
-
s && /* @__PURE__ */ v(
|
|
5391
|
+
s && /* @__PURE__ */ v(oi, {
|
|
5401
5392
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5402
5393
|
onClick: s.onClick,
|
|
5403
|
-
icon:
|
|
5394
|
+
icon: H.LIBRARY
|
|
5404
5395
|
})
|
|
5405
5396
|
]
|
|
5406
5397
|
})]
|
|
@@ -5419,7 +5410,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5419
5410
|
onClick: () => {},
|
|
5420
5411
|
tooltip: "",
|
|
5421
5412
|
testId: void 0
|
|
5422
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5413
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Er.CAPITALIZE }) => /* @__PURE__ */ y("div", {
|
|
5423
5414
|
className: g(jl.field, t ? jl.labelLeft : ""),
|
|
5424
5415
|
"data-testid": d,
|
|
5425
5416
|
children: [(e || t) && /* @__PURE__ */ v(Al, {
|
|
@@ -5513,7 +5504,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5513
5504
|
}, Bl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
|
|
5514
5505
|
className: Z.toggleNarrow,
|
|
5515
5506
|
onClick: t,
|
|
5516
|
-
children: /* @__PURE__ */ v(
|
|
5507
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_LEFT })
|
|
5517
5508
|
}) : null, Vl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
|
|
5518
5509
|
ref: a,
|
|
5519
5510
|
className: g(Z.header, i ? Z.stickyHeader : ""),
|
|
@@ -5546,7 +5537,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5546
5537
|
small: e.small
|
|
5547
5538
|
})
|
|
5548
5539
|
}) : null, Ul = ({ name: e, icon: t, testId: n }) => {
|
|
5549
|
-
let r = t && /* @__PURE__ */ v(
|
|
5540
|
+
let r = t && /* @__PURE__ */ v(W, {
|
|
5550
5541
|
icon: t.icon,
|
|
5551
5542
|
color: t.color || "#db2828"
|
|
5552
5543
|
});
|
|
@@ -5555,7 +5546,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5555
5546
|
"data-testid": n,
|
|
5556
5547
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ v("span", {
|
|
5557
5548
|
className: Z.iconTooltipMargin,
|
|
5558
|
-
children: /* @__PURE__ */ v(
|
|
5549
|
+
children: /* @__PURE__ */ v(G, {
|
|
5559
5550
|
text: t.tooltip.text,
|
|
5560
5551
|
maxWidth: "350px",
|
|
5561
5552
|
children: r
|
|
@@ -5595,7 +5586,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5595
5586
|
}, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
|
|
5596
5587
|
color: "rgba(0,0,0,0.25)",
|
|
5597
5588
|
title: e.metaCount
|
|
5598
|
-
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(
|
|
5589
|
+
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Ur, {
|
|
5599
5590
|
expanded: !!t && !!e.active && !!e.content,
|
|
5600
5591
|
children: /* @__PURE__ */ v("div", {
|
|
5601
5592
|
className: Z.itemContent,
|
|
@@ -5606,7 +5597,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5606
5597
|
})
|
|
5607
5598
|
}), ql = r(({ item: e, index: t }, n) => {
|
|
5608
5599
|
var r;
|
|
5609
|
-
let i = s(
|
|
5600
|
+
let i = s(U), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
|
|
5610
5601
|
return /* @__PURE__ */ v("div", {
|
|
5611
5602
|
ref: (e) => {
|
|
5612
5603
|
n && "current" in n && Array.isArray(n.current) && t !== void 0 && (n.current[t] = e);
|
|
@@ -5622,7 +5613,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5622
5613
|
children: [
|
|
5623
5614
|
typeof c == "boolean" && /* @__PURE__ */ v("div", {
|
|
5624
5615
|
className: g(Z.expandIcon, c && Z.expanded),
|
|
5625
|
-
children: /* @__PURE__ */ v(
|
|
5616
|
+
children: /* @__PURE__ */ v(W, { icon: H.CHEVRON_RIGHT })
|
|
5626
5617
|
}),
|
|
5627
5618
|
/* @__PURE__ */ v(Ul, {
|
|
5628
5619
|
name: d,
|
|
@@ -5639,7 +5630,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5639
5630
|
}) })
|
|
5640
5631
|
});
|
|
5641
5632
|
}), Jl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
|
|
5642
|
-
let o = s(
|
|
5633
|
+
let o = s(U), c = (e, t, s, c, l, u) => {
|
|
5643
5634
|
let d = t.actions && t.actions.find((e) => {
|
|
5644
5635
|
var t;
|
|
5645
5636
|
return e.label && ((t = String(e.label)) == null ? void 0 : t.toLowerCase()) === "edit";
|
|
@@ -5668,11 +5659,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5668
5659
|
className: Z.drag,
|
|
5669
5660
|
...c,
|
|
5670
5661
|
...l,
|
|
5671
|
-
children: /* @__PURE__ */ v(
|
|
5662
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
5672
5663
|
}),
|
|
5673
5664
|
t.level && t.level > 0 ? /* @__PURE__ */ v("div", {
|
|
5674
5665
|
className: Z.indentIcon,
|
|
5675
|
-
children: /* @__PURE__ */ v(
|
|
5666
|
+
children: /* @__PURE__ */ v(W, { icon: H.INDENT })
|
|
5676
5667
|
}) : null,
|
|
5677
5668
|
/* @__PURE__ */ v(Hl, { label: t.label }),
|
|
5678
5669
|
/* @__PURE__ */ v(Wl, { item: t }),
|
|
@@ -5696,12 +5687,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5696
5687
|
item: e,
|
|
5697
5688
|
index: t
|
|
5698
5689
|
}, t) : i ? ((e, t) => {
|
|
5699
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5690
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Jn({
|
|
5700
5691
|
id: e.toString(),
|
|
5701
5692
|
animateLayoutChanges: () => !1
|
|
5702
5693
|
});
|
|
5703
5694
|
return c(e, t, {
|
|
5704
|
-
transform:
|
|
5695
|
+
transform: Xn.Translate.toString(a),
|
|
5705
5696
|
transition: o,
|
|
5706
5697
|
opacity: +!s
|
|
5707
5698
|
}, n, r, i);
|
|
@@ -5717,15 +5708,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5717
5708
|
to: Number(o)
|
|
5718
5709
|
});
|
|
5719
5710
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5720
|
-
return t ? /* @__PURE__ */ y(
|
|
5721
|
-
collisionDetection:
|
|
5711
|
+
return t ? /* @__PURE__ */ y(er, {
|
|
5712
|
+
collisionDetection: nr,
|
|
5722
5713
|
onDragStart: o,
|
|
5723
5714
|
onDragEnd: s,
|
|
5724
|
-
children: [/* @__PURE__ */ v(
|
|
5715
|
+
children: [/* @__PURE__ */ v(qn, {
|
|
5725
5716
|
items: c,
|
|
5726
|
-
strategy:
|
|
5717
|
+
strategy: Yn,
|
|
5727
5718
|
children: e
|
|
5728
|
-
}), !!i &&
|
|
5719
|
+
}), !!i && vn(/* @__PURE__ */ v(tr, {
|
|
5729
5720
|
dropAnimation: null,
|
|
5730
5721
|
children: /* @__PURE__ */ v("div", {
|
|
5731
5722
|
className: Z.dragOverlay,
|
|
@@ -5738,7 +5729,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5738
5729
|
}), document.body)]
|
|
5739
5730
|
}) : e;
|
|
5740
5731
|
}, Xl = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5741
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5732
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = rr({
|
|
5742
5733
|
count: e.length,
|
|
5743
5734
|
getScrollElement: () => l.current,
|
|
5744
5735
|
estimateSize: o(() => {
|
|
@@ -5835,8 +5826,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5835
5826
|
content: "_content_477i5_44",
|
|
5836
5827
|
text: "_text_477i5_49",
|
|
5837
5828
|
details: "_details_477i5_53"
|
|
5838
|
-
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5839
|
-
let l = s ===
|
|
5829
|
+
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Dr.DARK, testId: c = null }) => {
|
|
5830
|
+
let l = s === Dr.DARK ? Dr.WHITE : Dr.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5840
5831
|
return /* @__PURE__ */ v("div", {
|
|
5841
5832
|
className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
|
|
5842
5833
|
style: {
|
|
@@ -5878,7 +5869,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5878
5869
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5879
5870
|
return /* @__PURE__ */ v("div", {
|
|
5880
5871
|
className: tu.item,
|
|
5881
|
-
children: /* @__PURE__ */ v(
|
|
5872
|
+
children: /* @__PURE__ */ v(si, {
|
|
5882
5873
|
label: r,
|
|
5883
5874
|
noMargin: !0,
|
|
5884
5875
|
checked: i,
|
|
@@ -5949,7 +5940,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5949
5940
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5950
5941
|
small: a,
|
|
5951
5942
|
label: n,
|
|
5952
|
-
trigger:
|
|
5943
|
+
trigger: Sr.DROP_DOWN_BUTTON,
|
|
5953
5944
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
5954
5945
|
sections: /* @__PURE__ */ v(au, {
|
|
5955
5946
|
testId: c,
|
|
@@ -5981,7 +5972,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5981
5972
|
className: lu.printHeader,
|
|
5982
5973
|
style: { width: n }
|
|
5983
5974
|
}), du = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
|
|
5984
|
-
let m = s(
|
|
5975
|
+
let m = s(U), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
|
|
5985
5976
|
simpleInputs: !1,
|
|
5986
5977
|
options: f,
|
|
5987
5978
|
selectedOptions: void 0
|
|
@@ -6054,7 +6045,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6054
6045
|
round: !0,
|
|
6055
6046
|
basic: !0,
|
|
6056
6047
|
icon: e.icon,
|
|
6057
|
-
colored:
|
|
6048
|
+
colored: Cr.MUTED,
|
|
6058
6049
|
onClick: e.onClick,
|
|
6059
6050
|
active: e.active,
|
|
6060
6051
|
disabled: t
|
|
@@ -6071,11 +6062,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6071
6062
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6072
6063
|
richTextInput: "_richTextInput_gb097_77"
|
|
6073
6064
|
}, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6074
|
-
let o = s(
|
|
6065
|
+
let o = s(U), u = r || o, d = dr({
|
|
6075
6066
|
extensions: [
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6067
|
+
fr,
|
|
6068
|
+
pr.configure({ placeholder: e }),
|
|
6069
|
+
mr
|
|
6079
6070
|
],
|
|
6080
6071
|
content: n == null ? "" : n,
|
|
6081
6072
|
contentType: "markdown",
|
|
@@ -6102,7 +6093,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6102
6093
|
editor: d,
|
|
6103
6094
|
disabled: u,
|
|
6104
6095
|
toolbarComponent: i
|
|
6105
|
-
}), /* @__PURE__ */ v(
|
|
6096
|
+
}), /* @__PURE__ */ v(ur, { editor: d })]
|
|
6106
6097
|
});
|
|
6107
6098
|
})), _u = { row: "_row_n16je_1" }, vu = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
|
|
6108
6099
|
let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => i(e)) : [r]).map((t, n) => /* @__PURE__ */ v(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
@@ -6142,7 +6133,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6142
6133
|
experimental: "_experimental_1oy1z_155",
|
|
6143
6134
|
active: "_active_1oy1z_159",
|
|
6144
6135
|
icon: "_icon_1oy1z_163"
|
|
6145
|
-
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
6136
|
+
}, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(G, {
|
|
6146
6137
|
text: t,
|
|
6147
6138
|
enabled: !e,
|
|
6148
6139
|
placement: "right-center",
|
|
@@ -6156,13 +6147,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6156
6147
|
small: !0,
|
|
6157
6148
|
title: r ? "!" : void 0,
|
|
6158
6149
|
margin: 4,
|
|
6159
|
-
children: /* @__PURE__ */ v(
|
|
6150
|
+
children: /* @__PURE__ */ v(W, { icon: n })
|
|
6160
6151
|
})
|
|
6161
6152
|
})
|
|
6162
6153
|
}), /* @__PURE__ */ v("span", {
|
|
6163
6154
|
className: yu.label,
|
|
6164
6155
|
children: t
|
|
6165
|
-
})] }), (e, t) =>
|
|
6156
|
+
})] }), (e, t) => $n(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
|
|
6166
6157
|
className: yu.list,
|
|
6167
6158
|
children: t.map((t, a) => {
|
|
6168
6159
|
let o = `${n}_${a}`;
|
|
@@ -6198,7 +6189,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6198
6189
|
top: r,
|
|
6199
6190
|
background: "var(--color-background-sidebar)",
|
|
6200
6191
|
closedWidth: "var(--size-sidebar)",
|
|
6201
|
-
buttonPosition:
|
|
6192
|
+
buttonPosition: Tr.BOTTOM,
|
|
6202
6193
|
buttonAnimate: !0,
|
|
6203
6194
|
button: s && /* @__PURE__ */ v(K, {
|
|
6204
6195
|
onClick: (e) => {
|
|
@@ -6206,7 +6197,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6206
6197
|
},
|
|
6207
6198
|
colored: !0,
|
|
6208
6199
|
round: !0,
|
|
6209
|
-
icon:
|
|
6200
|
+
icon: H.LEFT
|
|
6210
6201
|
}),
|
|
6211
6202
|
children: /* @__PURE__ */ v("div", {
|
|
6212
6203
|
className: g(yu.sidebar, i ? "" : yu.collapsed),
|
|
@@ -6223,10 +6214,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6223
6214
|
})
|
|
6224
6215
|
})
|
|
6225
6216
|
});
|
|
6226
|
-
}, (e, t) =>
|
|
6217
|
+
}, (e, t) => $n(e, t)), wu = {
|
|
6227
6218
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6228
6219
|
skeleton: "_skeleton_mcfxp_9"
|
|
6229
|
-
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(
|
|
6220
|
+
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(hr, {
|
|
6230
6221
|
baseColor: "var(--color-skeleton-base)",
|
|
6231
6222
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6232
6223
|
containerClassName: wu.skeletonContainer,
|
|
@@ -6269,8 +6260,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6269
6260
|
}, Ou = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
|
|
6270
6261
|
className: g(n ? Eu.contentPadding : ""),
|
|
6271
6262
|
children: e.map((e, n) => t === n && e)
|
|
6272
|
-
}) : null, ku = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i =
|
|
6273
|
-
let p = s(
|
|
6263
|
+
}) : null, ku = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = B, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
|
|
6264
|
+
let p = s(U), m = l !== void 0, h = n ? n.map((e, t) => {
|
|
6274
6265
|
var n;
|
|
6275
6266
|
return {
|
|
6276
6267
|
value: t,
|
|
@@ -6336,8 +6327,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6336
6327
|
textarea: "_textarea_q0tl0_77",
|
|
6337
6328
|
small: "_small_q0tl0_116",
|
|
6338
6329
|
monospace: "_monospace_q0tl0_155"
|
|
6339
|
-
}, Mu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o =
|
|
6340
|
-
let S = s(
|
|
6330
|
+
}, Mu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = B, onKeyPress: c = B, onFocus: l = B, onBlur: u = B, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: y = !1, small: b = !1, testId: x }) => {
|
|
6331
|
+
let S = s(U), C = /* @__PURE__ */ v("textarea", {
|
|
6341
6332
|
className: g(ju.textarea, f ? ju.error : "", p ? ju.warning : "", y ? ju.monospace : "", b ? ju.small : ""),
|
|
6342
6333
|
name: e,
|
|
6343
6334
|
value: t,
|
|
@@ -6355,7 +6346,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6355
6346
|
"data-warning": p || null,
|
|
6356
6347
|
"data-testid": x
|
|
6357
6348
|
});
|
|
6358
|
-
return /* @__PURE__ */ v(
|
|
6349
|
+
return /* @__PURE__ */ v(G, {
|
|
6359
6350
|
error: !!f,
|
|
6360
6351
|
warning: !!p,
|
|
6361
6352
|
text: m || f || p,
|
|
@@ -6384,7 +6375,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6384
6375
|
className: Q.alert,
|
|
6385
6376
|
children: e
|
|
6386
6377
|
}), Pu = ({ icon: e, url: t, onClick: n }) => {
|
|
6387
|
-
let r = /* @__PURE__ */ v(
|
|
6378
|
+
let r = /* @__PURE__ */ v(W, { icon: e });
|
|
6388
6379
|
return t ? /* @__PURE__ */ v("a", {
|
|
6389
6380
|
href: t,
|
|
6390
6381
|
onClick: n,
|
|
@@ -6427,7 +6418,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6427
6418
|
}, Iu = /* @__PURE__ */ function(e) {
|
|
6428
6419
|
return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
|
|
6429
6420
|
}({}), Lu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
|
|
6430
|
-
let l = s(
|
|
6421
|
+
let l = s(U);
|
|
6431
6422
|
return /* @__PURE__ */ y(c, {
|
|
6432
6423
|
className: g(Q.link, i ? Q.active : ""),
|
|
6433
6424
|
href: t || "#",
|
|
@@ -6475,7 +6466,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6475
6466
|
children: /* @__PURE__ */ v(Ki, {
|
|
6476
6467
|
maxHeight: "100%",
|
|
6477
6468
|
menu: {
|
|
6478
|
-
trigger:
|
|
6469
|
+
trigger: Sr.COMPONENT,
|
|
6479
6470
|
fullHeightTrigger: !0,
|
|
6480
6471
|
placement: "bottom-start",
|
|
6481
6472
|
component: /* @__PURE__ */ v(Lu, {
|
|
@@ -6598,16 +6589,16 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6598
6589
|
className: Uu.toggle,
|
|
6599
6590
|
children: /* @__PURE__ */ v(K, {
|
|
6600
6591
|
basic: !0,
|
|
6601
|
-
colored: r ? !0 :
|
|
6592
|
+
colored: r ? !0 : Cr.MUTED,
|
|
6602
6593
|
small: !0,
|
|
6603
6594
|
round: !0,
|
|
6604
|
-
icon: r ? (s == null ? void 0 : s.collapse) ||
|
|
6595
|
+
icon: r ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND,
|
|
6605
6596
|
onClick: C
|
|
6606
6597
|
})
|
|
6607
6598
|
}),
|
|
6608
6599
|
o && /* @__PURE__ */ v("div", {
|
|
6609
6600
|
className: Z.drag,
|
|
6610
|
-
children: /* @__PURE__ */ v(
|
|
6601
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
6611
6602
|
}),
|
|
6612
6603
|
/* @__PURE__ */ v(Wl, { item: u }),
|
|
6613
6604
|
/* @__PURE__ */ y("div", {
|
|
@@ -6685,11 +6676,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6685
6676
|
name: e.name,
|
|
6686
6677
|
actions: e.actions,
|
|
6687
6678
|
stickyHeader: h
|
|
6688
|
-
}), /* @__PURE__ */ v(
|
|
6689
|
-
backend:
|
|
6690
|
-
options:
|
|
6679
|
+
}), /* @__PURE__ */ v(gr, {
|
|
6680
|
+
backend: _r,
|
|
6681
|
+
options: yr(),
|
|
6691
6682
|
context: window,
|
|
6692
|
-
children: /* @__PURE__ */ v(
|
|
6683
|
+
children: /* @__PURE__ */ v(vr, {
|
|
6693
6684
|
ref: S,
|
|
6694
6685
|
tree: j,
|
|
6695
6686
|
sort: !1,
|
|
@@ -6750,96 +6741,108 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6750
6741
|
drag: "_drag_1ywvy_31",
|
|
6751
6742
|
folder: "_folder_1ywvy_30",
|
|
6752
6743
|
active: "_active_1ywvy_61"
|
|
6753
|
-
}, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t
|
|
6754
|
-
let
|
|
6755
|
-
|
|
6756
|
-
|
|
6744
|
+
}, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t) => {
|
|
6745
|
+
let n = new Set(t);
|
|
6746
|
+
return e.filter((e) => !n.has(e.id)).map((e) => e.id);
|
|
6747
|
+
}, Xu = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Zu = (e, t, n, r = []) => {
|
|
6748
|
+
let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
|
|
6749
|
+
if (o.length === 0) return {
|
|
6750
|
+
checked: i.has(t),
|
|
6757
6751
|
indeterminate: !1
|
|
6758
6752
|
};
|
|
6759
|
-
let
|
|
6753
|
+
let s = o.map((t) => Zu(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
|
|
6760
6754
|
return {
|
|
6761
|
-
checked:
|
|
6762
|
-
indeterminate:
|
|
6755
|
+
checked: u,
|
|
6756
|
+
indeterminate: c + l > 0 && !u
|
|
6763
6757
|
};
|
|
6764
|
-
},
|
|
6765
|
-
let n = t.length;
|
|
6758
|
+
}, Qu = (e, t, n = []) => {
|
|
6759
|
+
let r = Yu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
|
|
6766
6760
|
return {
|
|
6767
|
-
checked:
|
|
6768
|
-
indeterminate:
|
|
6761
|
+
checked: r.length > 0 && a === r.length,
|
|
6762
|
+
indeterminate: a > 0 && a < r.length
|
|
6769
6763
|
};
|
|
6770
|
-
},
|
|
6771
|
-
let
|
|
6772
|
-
if (!
|
|
6773
|
-
let
|
|
6774
|
-
for (let
|
|
6775
|
-
return
|
|
6764
|
+
}, $u = n(null), ed = () => s($u), td = ({ children: e, rowCheckboxes: t, rows: n }) => {
|
|
6765
|
+
let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], onChange: s } = t == null ? {} : t, c = d(() => new Set(a), [a]), l = d(() => {
|
|
6766
|
+
if (!r) return null;
|
|
6767
|
+
let e = /* @__PURE__ */ new Map();
|
|
6768
|
+
for (let t of n) e.set(t.id, Zu(n, t.id, i, a));
|
|
6769
|
+
return e;
|
|
6776
6770
|
}, [
|
|
6777
6771
|
i,
|
|
6772
|
+
a,
|
|
6778
6773
|
r,
|
|
6779
|
-
|
|
6780
|
-
]),
|
|
6774
|
+
n
|
|
6775
|
+
]), u = d(() => r ? Qu(n, i, a) : void 0, [
|
|
6781
6776
|
i,
|
|
6777
|
+
a,
|
|
6782
6778
|
r,
|
|
6783
|
-
|
|
6784
|
-
]),
|
|
6785
|
-
if (!
|
|
6786
|
-
let
|
|
6787
|
-
if (
|
|
6788
|
-
let
|
|
6789
|
-
|
|
6790
|
-
} else
|
|
6779
|
+
n
|
|
6780
|
+
]), f = o((e) => l == null ? void 0 : l.get(e), [l]), p = o((e) => c.has(e), [c]), m = o((e) => {
|
|
6781
|
+
if (!r || c.has(e)) return;
|
|
6782
|
+
let t = Ju(n, e), o = [e, ...t.filter((e) => !c.has(e))], l = [e, ...t], { checked: u } = Zu(n, e, i, a);
|
|
6783
|
+
if (u) {
|
|
6784
|
+
let e = new Set(l);
|
|
6785
|
+
s == null || s(Xu(i, e, c));
|
|
6786
|
+
} else s == null || s([...new Set([...i, ...o])]);
|
|
6791
6787
|
}, [
|
|
6792
|
-
e,
|
|
6793
6788
|
i,
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6789
|
+
a,
|
|
6790
|
+
c,
|
|
6791
|
+
r,
|
|
6792
|
+
s,
|
|
6793
|
+
n
|
|
6794
|
+
]), h = o(() => {
|
|
6795
|
+
if (!r) return;
|
|
6796
|
+
let e = Yu(n, a), { checked: t } = Qu(n, i, a);
|
|
6797
|
+
t ? s == null || s(i.filter((e) => c.has(e))) : s == null || s([...new Set([...i, ...e])]);
|
|
6800
6798
|
}, [
|
|
6801
|
-
e,
|
|
6802
|
-
i,
|
|
6803
|
-
n,
|
|
6804
|
-
r
|
|
6805
|
-
]), f = d(() => ({
|
|
6806
|
-
enabled: i,
|
|
6807
|
-
headerCheckState: s,
|
|
6808
|
-
getRowCheckState: c,
|
|
6809
|
-
toggleRowCheck: l,
|
|
6810
|
-
toggleHeaderCheck: u
|
|
6811
|
-
}), [
|
|
6812
6799
|
i,
|
|
6800
|
+
a,
|
|
6813
6801
|
c,
|
|
6802
|
+
r,
|
|
6814
6803
|
s,
|
|
6804
|
+
n
|
|
6805
|
+
]), g = d(() => ({
|
|
6806
|
+
enabled: r,
|
|
6807
|
+
headerCheckState: u,
|
|
6808
|
+
getRowCheckState: f,
|
|
6809
|
+
isRowCheckDisabled: p,
|
|
6810
|
+
toggleRowCheck: m,
|
|
6811
|
+
toggleHeaderCheck: h
|
|
6812
|
+
}), [
|
|
6813
|
+
r,
|
|
6814
|
+
f,
|
|
6815
6815
|
u,
|
|
6816
|
-
|
|
6816
|
+
p,
|
|
6817
|
+
h,
|
|
6818
|
+
m
|
|
6817
6819
|
]);
|
|
6818
|
-
return /* @__PURE__ */ v(
|
|
6819
|
-
value:
|
|
6820
|
-
children:
|
|
6820
|
+
return /* @__PURE__ */ v($u.Provider, {
|
|
6821
|
+
value: g,
|
|
6822
|
+
children: e
|
|
6821
6823
|
});
|
|
6822
|
-
},
|
|
6823
|
-
let h =
|
|
6824
|
+
}, nd = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
|
|
6825
|
+
let h = ed(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), { data: C, droppable: w } = l, { id: T, cells: E, testId: D, actions: O = [], active: k, onRowClick: A } = C, j = w || a, M = h == null ? void 0 : h.enabled, N = (e) => {
|
|
6824
6826
|
let r = t ? t[e] : void 0;
|
|
6825
|
-
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${
|
|
6827
|
+
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${j ? n + 1 : n})`})` : r;
|
|
6826
6828
|
};
|
|
6827
6829
|
return /* @__PURE__ */ v("table", {
|
|
6828
6830
|
className: mo.table,
|
|
6829
|
-
"data-testid":
|
|
6831
|
+
"data-testid": D,
|
|
6830
6832
|
onDrop: p,
|
|
6831
6833
|
onDragEnter: u,
|
|
6832
6834
|
onDragOver: d,
|
|
6833
6835
|
onDragLeave: f,
|
|
6834
6836
|
children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
|
|
6835
|
-
onClick:
|
|
6836
|
-
className: g(qu.treeTableRow,
|
|
6837
|
+
onClick: A,
|
|
6838
|
+
className: g(qu.treeTableRow, k ? qu.active : void 0),
|
|
6837
6839
|
children: [
|
|
6838
|
-
|
|
6840
|
+
M && /* @__PURE__ */ v(pc, {
|
|
6839
6841
|
isHeader: !1,
|
|
6840
6842
|
cell: {
|
|
6841
6843
|
type: fc.CHECKBOX,
|
|
6842
6844
|
checked: b,
|
|
6845
|
+
disabled: S,
|
|
6843
6846
|
indeterminate: x,
|
|
6844
6847
|
onChange: () => h == null ? void 0 : h.toggleRowCheck(l.id)
|
|
6845
6848
|
}
|
|
@@ -6850,44 +6853,44 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6850
6853
|
className: qu.drag,
|
|
6851
6854
|
onClick: (e) => e.stopPropagation(),
|
|
6852
6855
|
ref: i,
|
|
6853
|
-
children: /* @__PURE__ */ v(
|
|
6856
|
+
children: /* @__PURE__ */ v(W, { icon: H.DRAG })
|
|
6854
6857
|
})
|
|
6855
6858
|
}),
|
|
6856
6859
|
Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
|
|
6857
|
-
|
|
6860
|
+
j && /* @__PURE__ */ v("td", {
|
|
6858
6861
|
className: qu.folderCell,
|
|
6859
6862
|
children: /* @__PURE__ */ v("div", {
|
|
6860
6863
|
className: qu.folder,
|
|
6861
|
-
onClick: () => m(
|
|
6864
|
+
onClick: () => m(T),
|
|
6862
6865
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6863
6866
|
children: /* @__PURE__ */ v(K, {
|
|
6864
6867
|
basic: !0,
|
|
6865
|
-
colored: c ? !0 :
|
|
6868
|
+
colored: c ? !0 : Cr.MUTED,
|
|
6866
6869
|
disabled: !a,
|
|
6867
6870
|
small: !0,
|
|
6868
6871
|
round: !0,
|
|
6869
|
-
icon: a && c ? (s == null ? void 0 : s.collapse) ||
|
|
6872
|
+
icon: a && c ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND
|
|
6870
6873
|
})
|
|
6871
6874
|
})
|
|
6872
6875
|
}),
|
|
6873
|
-
|
|
6876
|
+
E.map((t, n) => /* @__PURE__ */ v(pc, {
|
|
6874
6877
|
isHeader: !1,
|
|
6875
6878
|
cell: t,
|
|
6876
|
-
width:
|
|
6879
|
+
width: N(n),
|
|
6877
6880
|
columnAlignment: e ? e[n] : null
|
|
6878
6881
|
}, n)),
|
|
6879
6882
|
o && /* @__PURE__ */ v(pc, {
|
|
6880
6883
|
isHeader: !1,
|
|
6881
6884
|
cell: {
|
|
6882
6885
|
type: fc.ACTIONS,
|
|
6883
|
-
actions:
|
|
6886
|
+
actions: O
|
|
6884
6887
|
}
|
|
6885
6888
|
})
|
|
6886
6889
|
]
|
|
6887
6890
|
}) })
|
|
6888
6891
|
});
|
|
6889
|
-
},
|
|
6890
|
-
let a =
|
|
6892
|
+
}, rd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
6893
|
+
let a = ed(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
6891
6894
|
return /* @__PURE__ */ v("table", {
|
|
6892
6895
|
className: g(mo.table, qu.treeTableHeader),
|
|
6893
6896
|
children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
|
|
@@ -6917,95 +6920,94 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6917
6920
|
})
|
|
6918
6921
|
] }, c)) })
|
|
6919
6922
|
});
|
|
6920
|
-
},
|
|
6921
|
-
let { columnAlignment:
|
|
6922
|
-
return /* @__PURE__ */ v(
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
rows: x,
|
|
6923
|
+
}, id = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
|
|
6924
|
+
let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
|
|
6925
|
+
return /* @__PURE__ */ v(td, {
|
|
6926
|
+
rowCheckboxes: u,
|
|
6927
|
+
rows: b,
|
|
6926
6928
|
children: /* @__PURE__ */ y("div", {
|
|
6927
6929
|
className: qu.treeTable,
|
|
6928
|
-
"data-testid":
|
|
6929
|
-
style: { width:
|
|
6930
|
-
children: [!!
|
|
6931
|
-
columnAlignment:
|
|
6932
|
-
columnWidths:
|
|
6933
|
-
draggable:
|
|
6934
|
-
hasRowActions:
|
|
6935
|
-
headers:
|
|
6930
|
+
"data-testid": f,
|
|
6931
|
+
style: { width: g },
|
|
6932
|
+
children: [!!_ && /* @__PURE__ */ v(rd, {
|
|
6933
|
+
columnAlignment: m,
|
|
6934
|
+
columnWidths: h,
|
|
6935
|
+
draggable: r,
|
|
6936
|
+
hasRowActions: x,
|
|
6937
|
+
headers: _
|
|
6936
6938
|
}), /* @__PURE__ */ v(Ku, {
|
|
6937
6939
|
allowParentReassignment: e,
|
|
6938
6940
|
autoOpenActiveItems: t,
|
|
6939
6941
|
canDrop: n,
|
|
6940
|
-
draggable:
|
|
6941
|
-
icons:
|
|
6942
|
-
isInitialOpen:
|
|
6943
|
-
itemHasChild:
|
|
6942
|
+
draggable: r,
|
|
6943
|
+
icons: i,
|
|
6944
|
+
isInitialOpen: a,
|
|
6945
|
+
itemHasChild: o,
|
|
6944
6946
|
list: {
|
|
6945
6947
|
noHeader: !0,
|
|
6946
|
-
items:
|
|
6948
|
+
items: b
|
|
6947
6949
|
},
|
|
6948
|
-
onChangeOpen:
|
|
6949
|
-
onItemToggle:
|
|
6950
|
-
onListReorder:
|
|
6950
|
+
onChangeOpen: l,
|
|
6951
|
+
onItemToggle: s,
|
|
6952
|
+
onListReorder: c,
|
|
6951
6953
|
placeholderIndent: "var(--size)",
|
|
6952
|
-
render: (e, { depth: t, draggable: n, handleRef: r, hasChild:
|
|
6954
|
+
render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(nd, {
|
|
6953
6955
|
node: e,
|
|
6954
|
-
columnAlignment:
|
|
6955
|
-
columnWidths:
|
|
6956
|
+
columnAlignment: m,
|
|
6957
|
+
columnWidths: h,
|
|
6956
6958
|
depth: t,
|
|
6957
6959
|
draggable: n,
|
|
6958
6960
|
handleRef: r,
|
|
6959
|
-
hasChild:
|
|
6960
|
-
hasRowActions:
|
|
6961
|
-
icons:
|
|
6961
|
+
hasChild: a,
|
|
6962
|
+
hasRowActions: x,
|
|
6963
|
+
icons: i,
|
|
6962
6964
|
isOpen: o,
|
|
6963
6965
|
onToggle: s
|
|
6964
6966
|
}, e.id),
|
|
6965
|
-
treeRef:
|
|
6967
|
+
treeRef: p
|
|
6966
6968
|
})]
|
|
6967
6969
|
})
|
|
6968
6970
|
});
|
|
6969
|
-
},
|
|
6971
|
+
}, ad = () => {
|
|
6970
6972
|
let e = p(null);
|
|
6971
6973
|
return u(() => {
|
|
6972
6974
|
e.current && (e.current(), e.current = null);
|
|
6973
6975
|
}), (t) => {
|
|
6974
6976
|
e.current = t;
|
|
6975
6977
|
};
|
|
6976
|
-
},
|
|
6978
|
+
}, od = (e) => {
|
|
6977
6979
|
let t = p(void 0);
|
|
6978
6980
|
return c(() => {
|
|
6979
6981
|
t.current = e;
|
|
6980
6982
|
}, [e]), t.current;
|
|
6981
|
-
},
|
|
6983
|
+
}, sd = (e, t) => {
|
|
6982
6984
|
let n = t == null ? void 0 : t[e];
|
|
6983
6985
|
if (!n) {
|
|
6984
6986
|
var r;
|
|
6985
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
6987
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Hn(e)) == null ? "" : r;
|
|
6986
6988
|
}
|
|
6987
6989
|
return n;
|
|
6988
|
-
},
|
|
6990
|
+
}, cd = /* @__PURE__ */ function(e) {
|
|
6989
6991
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6990
|
-
}({}),
|
|
6992
|
+
}({}), ld = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), ud = (e) => {
|
|
6991
6993
|
if (!e) return !1;
|
|
6992
|
-
let t =
|
|
6993
|
-
return !
|
|
6994
|
-
},
|
|
6994
|
+
let t = En(e);
|
|
6995
|
+
return !bn.includes(t);
|
|
6996
|
+
}, dd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6995
6997
|
var r;
|
|
6996
|
-
let i =
|
|
6997
|
-
if (!i || i.length === 0 || !((r =
|
|
6998
|
-
let a =
|
|
6998
|
+
let i = yn[t];
|
|
6999
|
+
if (!i || i.length === 0 || !((r = Un(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
7000
|
+
let a = En(String(e));
|
|
6999
7001
|
return !(a && !i.includes(a));
|
|
7000
|
-
},
|
|
7002
|
+
}, fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
7001
7003
|
var o;
|
|
7002
|
-
let s =
|
|
7004
|
+
let s = Mn(e) ? On(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
7003
7005
|
if (i || c) return {
|
|
7004
7006
|
value: s,
|
|
7005
7007
|
error: null
|
|
7006
7008
|
};
|
|
7007
|
-
let l = r || (
|
|
7008
|
-
if (!((o =
|
|
7009
|
+
let l = r || (Mn(e) ? En(e) : Hn(t));
|
|
7010
|
+
if (!((o = Un(s)) != null && o.valid)) return {
|
|
7009
7011
|
value: void 0,
|
|
7010
7012
|
error: "Invalid number format"
|
|
7011
7013
|
};
|
|
@@ -7017,21 +7019,21 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7017
7019
|
value: void 0,
|
|
7018
7020
|
error: "Source unit is missing"
|
|
7019
7021
|
};
|
|
7020
|
-
if (
|
|
7022
|
+
if (ld(s)) return {
|
|
7021
7023
|
value: void 0,
|
|
7022
7024
|
error: "Value is invalid for conversion"
|
|
7023
7025
|
};
|
|
7024
7026
|
try {
|
|
7025
|
-
let e =
|
|
7026
|
-
return
|
|
7027
|
+
let e = Gn(s, l);
|
|
7028
|
+
return dd({
|
|
7027
7029
|
value: e,
|
|
7028
7030
|
toUnit: n,
|
|
7029
7031
|
unitkey: t
|
|
7030
7032
|
}) ? {
|
|
7031
|
-
value:
|
|
7033
|
+
value: On(Hs(a ? wn(e, n) : Cn(e, n))),
|
|
7032
7034
|
error: null
|
|
7033
7035
|
} : {
|
|
7034
|
-
value:
|
|
7036
|
+
value: On(e),
|
|
7035
7037
|
error: null
|
|
7036
7038
|
};
|
|
7037
7039
|
} catch {
|
|
@@ -7040,13 +7042,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7040
7042
|
error: "Conversion not possible"
|
|
7041
7043
|
};
|
|
7042
7044
|
}
|
|
7043
|
-
},
|
|
7044
|
-
let a =
|
|
7045
|
-
return !
|
|
7045
|
+
}, pd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
7046
|
+
let a = On(e), o = ld(a);
|
|
7047
|
+
return !dd({
|
|
7046
7048
|
value: e,
|
|
7047
7049
|
unitkey: n,
|
|
7048
7050
|
toUnit: t
|
|
7049
|
-
}) ||
|
|
7051
|
+
}) || ud(e) || o ? { value: a } : Mn(e) ? fd({
|
|
7050
7052
|
value: e,
|
|
7051
7053
|
unitkey: n,
|
|
7052
7054
|
toUnit: t,
|
|
@@ -7054,25 +7056,25 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7054
7056
|
doNotConvertValue: i,
|
|
7055
7057
|
exactPrecision: !0
|
|
7056
7058
|
}) : { value: e };
|
|
7057
|
-
},
|
|
7058
|
-
let n =
|
|
7059
|
-
return
|
|
7060
|
-
},
|
|
7061
|
-
|
|
7062
|
-
},
|
|
7059
|
+
}, md = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", hd = (e = "") => bn == null ? void 0 : bn.includes(e), gd = (e, t) => {
|
|
7060
|
+
let n = En(e || "");
|
|
7061
|
+
return hd(t) && hd(n);
|
|
7062
|
+
}, _d = n(null), vd = () => s(_d), yd = !1, bd = (e) => {
|
|
7063
|
+
yd || (yd = !0, _d = e);
|
|
7064
|
+
}, xd = (e) => An(e) ? e : Pn(e), Sd = {
|
|
7063
7065
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
7064
7066
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
7065
|
-
},
|
|
7067
|
+
}, Cd = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = B, onClick: b = B, onFocus: x = B, onSwitchUnit: S = B, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
|
|
7066
7068
|
name: "",
|
|
7067
7069
|
error: null
|
|
7068
7070
|
}), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: te = null }) => {
|
|
7069
|
-
let ne =
|
|
7071
|
+
let ne = vd(), re = ad();
|
|
7070
7072
|
typeof l == "number" && (l = `${l}`);
|
|
7071
|
-
let [ie = "", ae = ""] = l === void 0 ? [] :
|
|
7073
|
+
let [ie = "", ae = ""] = l === void 0 ? [] : Rn(l), R = d(() => sd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
|
|
7072
7074
|
u,
|
|
7073
7075
|
C,
|
|
7074
7076
|
ne == null ? void 0 : ne.unitTemplate
|
|
7075
|
-
]), oe =
|
|
7077
|
+
]), oe = gd(l, R), se = f || R || ae, ce = od(se), { value: le } = pd({
|
|
7076
7078
|
value: l,
|
|
7077
7079
|
toUnit: se,
|
|
7078
7080
|
unitkey: u,
|
|
@@ -7084,38 +7086,38 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7084
7086
|
} : {
|
|
7085
7087
|
value: le,
|
|
7086
7088
|
unit: se
|
|
7087
|
-
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ?
|
|
7089
|
+
}), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? cd.PREDEFINED : cd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
|
|
7088
7090
|
if (!(e != null && e.value)) return;
|
|
7089
7091
|
if (k) return k === e.valueKey;
|
|
7090
|
-
let t =
|
|
7092
|
+
let t = Mn(e.value) ? En(e.value) : "", { value: n = l } = fd({
|
|
7091
7093
|
value: String(l),
|
|
7092
7094
|
unitkey: u,
|
|
7093
7095
|
toUnit: t
|
|
7094
7096
|
});
|
|
7095
|
-
return
|
|
7097
|
+
return Gn(n, t) === e.value;
|
|
7096
7098
|
}), ge = () => {
|
|
7097
7099
|
var e;
|
|
7098
7100
|
let t = (e = l) == null ? "" : e, n = z.unit;
|
|
7099
|
-
if (!
|
|
7101
|
+
if (!dd({
|
|
7100
7102
|
value: t,
|
|
7101
7103
|
unitkey: u,
|
|
7102
7104
|
toUnit: n
|
|
7103
7105
|
})) {
|
|
7104
|
-
let e =
|
|
7106
|
+
let e = Tn(u);
|
|
7105
7107
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
7106
7108
|
} else if (u) try {
|
|
7107
|
-
let e =
|
|
7108
|
-
return
|
|
7109
|
+
let e = xn(t, u);
|
|
7110
|
+
return On(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
7109
7111
|
} catch {
|
|
7110
7112
|
return null;
|
|
7111
7113
|
}
|
|
7112
7114
|
}, _e = (t) => {
|
|
7113
|
-
let n =
|
|
7115
|
+
let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o = Gn(i, (z == null ? void 0 : z.unit) || "");
|
|
7114
7116
|
h({ target: {
|
|
7115
|
-
value: N ?
|
|
7117
|
+
value: N ? Gn(Cn(o, ae), ae) : o,
|
|
7116
7118
|
name: n
|
|
7117
7119
|
} });
|
|
7118
|
-
let [s, c] =
|
|
7120
|
+
let [s, c] = Rn(o);
|
|
7119
7121
|
ue({
|
|
7120
7122
|
value: s,
|
|
7121
7123
|
unit: c
|
|
@@ -7132,7 +7134,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7132
7134
|
if (se) {
|
|
7133
7135
|
let e, t = "";
|
|
7134
7136
|
if (ce !== se) {
|
|
7135
|
-
let { value: n } =
|
|
7137
|
+
let { value: n } = pd({
|
|
7136
7138
|
value: l,
|
|
7137
7139
|
toUnit: se,
|
|
7138
7140
|
unitkey: u,
|
|
@@ -7140,8 +7142,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7140
7142
|
doNotConvertValue: p
|
|
7141
7143
|
});
|
|
7142
7144
|
e = n, t = se;
|
|
7143
|
-
} else if (
|
|
7144
|
-
let { value: n } =
|
|
7145
|
+
} else if (Gn(z.value, z.unit) !== l) {
|
|
7146
|
+
let { value: n } = pd({
|
|
7145
7147
|
value: l,
|
|
7146
7148
|
toUnit: z.unit,
|
|
7147
7149
|
unitkey: u,
|
|
@@ -7153,7 +7155,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7153
7155
|
e !== void 0 && ue({
|
|
7154
7156
|
value: e,
|
|
7155
7157
|
unit: t
|
|
7156
|
-
}), pe(E && he && O ?
|
|
7158
|
+
}), pe(E && he && O ? cd.PREDEFINED : cd.CUSTOM);
|
|
7157
7159
|
}
|
|
7158
7160
|
}, [
|
|
7159
7161
|
se,
|
|
@@ -7161,27 +7163,27 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7161
7163
|
i,
|
|
7162
7164
|
O
|
|
7163
7165
|
]);
|
|
7164
|
-
let ye = ge(), be =
|
|
7165
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7166
|
-
if (
|
|
7166
|
+
let ye = ge(), be = Nn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = md(e), Ce, we = (t) => {
|
|
7167
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Mn(r) ? Rn(r) : [r], o = Wn(r);
|
|
7168
|
+
if (dd({
|
|
7167
7169
|
value: r,
|
|
7168
7170
|
unitkey: u,
|
|
7169
7171
|
toUnit: a
|
|
7170
7172
|
})) {
|
|
7171
|
-
let { value: e = "" } =
|
|
7173
|
+
let { value: e = "" } = pd({
|
|
7172
7174
|
value: r,
|
|
7173
7175
|
toUnit: R,
|
|
7174
7176
|
unitkey: u,
|
|
7175
7177
|
defaultFromUnit: a,
|
|
7176
7178
|
doNotConvertValue: p
|
|
7177
7179
|
});
|
|
7178
|
-
o = Gn(
|
|
7180
|
+
o = Wn(Gn(e, R));
|
|
7179
7181
|
}
|
|
7180
7182
|
return {
|
|
7181
7183
|
type: xi.OPTION,
|
|
7182
7184
|
inline: !0,
|
|
7183
7185
|
onClick: () => {
|
|
7184
|
-
|
|
7186
|
+
Un(i).valid && !n && (pe(cd.PREDEFINED), h({ target: {
|
|
7185
7187
|
value: r,
|
|
7186
7188
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7187
7189
|
predefinedSelected: !0,
|
|
@@ -7193,27 +7195,27 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7193
7195
|
height: "0"
|
|
7194
7196
|
})] }),
|
|
7195
7197
|
description: o,
|
|
7196
|
-
selected: he === t && fe ===
|
|
7198
|
+
selected: he === t && fe === cd.PREDEFINED
|
|
7197
7199
|
};
|
|
7198
7200
|
};
|
|
7199
7201
|
if (Ce = [{
|
|
7200
7202
|
type: xi.OPTION,
|
|
7201
7203
|
inline: !0,
|
|
7202
7204
|
onClick: () => {
|
|
7203
|
-
fe !==
|
|
7204
|
-
value:
|
|
7205
|
+
fe !== cd.CUSTOM && !n && h({ target: {
|
|
7206
|
+
value: Gn(z.value, z.unit),
|
|
7205
7207
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7206
7208
|
} });
|
|
7207
7209
|
},
|
|
7208
7210
|
label: "Custom",
|
|
7209
|
-
selected: fe ===
|
|
7211
|
+
selected: fe === cd.CUSTOM
|
|
7210
7212
|
}], E != null && E.length) {
|
|
7211
7213
|
let e = E.map(we);
|
|
7212
7214
|
Ce = [...Ce, ...e];
|
|
7213
7215
|
}
|
|
7214
7216
|
let Te = (e) => {
|
|
7215
|
-
if (
|
|
7216
|
-
let t =
|
|
7217
|
+
if (Mn(e)) {
|
|
7218
|
+
let t = En(e), { value: n } = pd({
|
|
7217
7219
|
value: e,
|
|
7218
7220
|
toUnit: z.unit,
|
|
7219
7221
|
unitkey: u,
|
|
@@ -7223,9 +7225,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7223
7225
|
return n;
|
|
7224
7226
|
}
|
|
7225
7227
|
return e;
|
|
7226
|
-
}, Ee = !E && (!L || L ===
|
|
7228
|
+
}, Ee = !E && (!L || L === V.FIRST) ? V.FIRST : V.MIDDLE, De = !L || L === V.LAST ? V.LAST : V.MIDDLE;
|
|
7227
7229
|
return /* @__PURE__ */ v("div", {
|
|
7228
|
-
className: fe ===
|
|
7230
|
+
className: fe === cd.PREDEFINED ? g(Sd.predefinedMenuActive) : "",
|
|
7229
7231
|
children: /* @__PURE__ */ y(Ma, {
|
|
7230
7232
|
small: o,
|
|
7231
7233
|
width: s,
|
|
@@ -7240,17 +7242,17 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7240
7242
|
trigger: "Component",
|
|
7241
7243
|
component: /* @__PURE__ */ v(K, {
|
|
7242
7244
|
groupOrder: "first",
|
|
7243
|
-
active: fe ===
|
|
7244
|
-
icon: fe ===
|
|
7245
|
+
active: fe === cd.PREDEFINED,
|
|
7246
|
+
icon: fe === cd.PREDEFINED ? "link" : "unlink",
|
|
7245
7247
|
small: o
|
|
7246
7248
|
}),
|
|
7247
7249
|
small: o,
|
|
7248
7250
|
sections: Ce
|
|
7249
7251
|
},
|
|
7250
|
-
tooltip: fe ===
|
|
7252
|
+
tooltip: fe === cd.PREDEFINED ? he == null ? void 0 : he.label : ""
|
|
7251
7253
|
}),
|
|
7252
7254
|
/* @__PURE__ */ v("div", {
|
|
7253
|
-
className:
|
|
7255
|
+
className: Sd.inputWrapper,
|
|
7254
7256
|
children: /* @__PURE__ */ v(Gs, {
|
|
7255
7257
|
name: Se,
|
|
7256
7258
|
testId: w,
|
|
@@ -7289,10 +7291,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7289
7291
|
trigger: "DropDownButton",
|
|
7290
7292
|
small: o,
|
|
7291
7293
|
sections: ye.map(([e = "", t = "", n]) => {
|
|
7292
|
-
let r = n || t || "", i =
|
|
7294
|
+
let r = n || t || "", i = jn(e) ? e : "";
|
|
7293
7295
|
return {
|
|
7294
7296
|
type: "Option",
|
|
7295
|
-
label: P ?
|
|
7297
|
+
label: P ? xd(i) : i,
|
|
7296
7298
|
inline: !0,
|
|
7297
7299
|
onClick: (n) => {
|
|
7298
7300
|
n.stopPropagation(), ve(e, t);
|
|
@@ -7307,10 +7309,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7307
7309
|
]
|
|
7308
7310
|
})
|
|
7309
7311
|
});
|
|
7310
|
-
},
|
|
7312
|
+
}, wd = Object.freeze({
|
|
7311
7313
|
Translations: "translations",
|
|
7312
7314
|
LanguageKey: "languageKey"
|
|
7313
|
-
}),
|
|
7315
|
+
}), Td = {
|
|
7314
7316
|
unified: "Unified",
|
|
7315
7317
|
split: "Split",
|
|
7316
7318
|
changesTooLarge: "Changes are too large to be shown",
|
|
@@ -7332,29 +7334,29 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7332
7334
|
pluralChanges: "changes",
|
|
7333
7335
|
showAll: "Show all",
|
|
7334
7336
|
unknown: "Unknown"
|
|
7335
|
-
},
|
|
7337
|
+
}, Ed = (e) => Object.keys(Td).reduce((t, n) => ({
|
|
7336
7338
|
...t,
|
|
7337
|
-
[n]: (e == null ? void 0 : e[n]) || (
|
|
7338
|
-
}), {}),
|
|
7339
|
-
[
|
|
7340
|
-
[
|
|
7341
|
-
},
|
|
7342
|
-
|
|
7343
|
-
},
|
|
7339
|
+
[n]: (e == null ? void 0 : e[n]) || (Td == null ? void 0 : Td[n])
|
|
7340
|
+
}), {}), Dd = {
|
|
7341
|
+
[wd.Translations]: Ed(),
|
|
7342
|
+
[wd.LanguageKey]: "en"
|
|
7343
|
+
}, Od = (e) => e ? Dd[e] : Dd, kd = (e, t) => {
|
|
7344
|
+
Dd[e] = t;
|
|
7345
|
+
}, Ad = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
|
|
7344
7346
|
var a;
|
|
7345
|
-
let { unitTemplate: o = null } = (a =
|
|
7346
|
-
return e[n] = r == null ?
|
|
7347
|
+
let { unitTemplate: o = null } = (a = vd()) == null ? {} : a;
|
|
7348
|
+
return e[n] = r == null ? sd(n, o) : r, t[n] = i, {
|
|
7347
7349
|
preferredUnits: e,
|
|
7348
7350
|
storageUnits: t
|
|
7349
7351
|
};
|
|
7350
7352
|
}, {
|
|
7351
7353
|
preferredUnits: {},
|
|
7352
7354
|
storageUnits: {}
|
|
7353
|
-
}),
|
|
7355
|
+
}), jd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
|
|
7354
7356
|
...e,
|
|
7355
7357
|
cells: e.cells.map((e, s) => {
|
|
7356
7358
|
if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
|
|
7357
|
-
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 } =
|
|
7359
|
+
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 } = fd({
|
|
7358
7360
|
value: Hs(l),
|
|
7359
7361
|
unitkey: c,
|
|
7360
7362
|
toUnit: f,
|
|
@@ -7368,7 +7370,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7368
7370
|
roundDisplayValue: d,
|
|
7369
7371
|
selectOnFocus: !0,
|
|
7370
7372
|
onChange: (n) => {
|
|
7371
|
-
let { value: r } = n.target, a = i ? p : f, { value: o = r } =
|
|
7373
|
+
let { value: r } = n.target, a = i ? p : f, { value: o = r } = fd({
|
|
7372
7374
|
value: String(r),
|
|
7373
7375
|
unitkey: c,
|
|
7374
7376
|
toUnit: a,
|
|
@@ -7392,8 +7394,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7392
7394
|
}
|
|
7393
7395
|
return e;
|
|
7394
7396
|
})
|
|
7395
|
-
}),
|
|
7396
|
-
let { translations: i } =
|
|
7397
|
+
}), Md = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
7398
|
+
let { translations: i } = Od();
|
|
7397
7399
|
return e ? e.map((e) => ({
|
|
7398
7400
|
...e,
|
|
7399
7401
|
cells: e.cells.map((e) => {
|
|
@@ -7406,8 +7408,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7406
7408
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7407
7409
|
disabled: c || !u,
|
|
7408
7410
|
searchable: !1,
|
|
7409
|
-
options: (a =
|
|
7410
|
-
label:
|
|
7411
|
+
options: (a = Dn(s)) == null ? void 0 : a.map((e) => ({
|
|
7412
|
+
label: Nn(e),
|
|
7411
7413
|
value: e
|
|
7412
7414
|
})),
|
|
7413
7415
|
native: e.native,
|
|
@@ -7422,8 +7424,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7422
7424
|
return e;
|
|
7423
7425
|
})
|
|
7424
7426
|
})) : [];
|
|
7425
|
-
},
|
|
7426
|
-
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } =
|
|
7427
|
+
}, Nd = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
|
|
7428
|
+
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Ad(t), h = od(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
|
|
7427
7429
|
_({
|
|
7428
7430
|
...g,
|
|
7429
7431
|
[e]: n
|
|
@@ -7434,7 +7436,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7434
7436
|
newUnit: n,
|
|
7435
7437
|
unitKey: e
|
|
7436
7438
|
});
|
|
7437
|
-
}, b = o(({ row: e, rowIndex: t }) =>
|
|
7439
|
+
}, b = o(({ row: e, rowIndex: t }) => jd({
|
|
7438
7440
|
row: l ? l({
|
|
7439
7441
|
row: e,
|
|
7440
7442
|
rowIndex: t
|
|
@@ -7463,7 +7465,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7463
7465
|
}, [t]), /* @__PURE__ */ v(yc, {
|
|
7464
7466
|
table: {
|
|
7465
7467
|
...d,
|
|
7466
|
-
headers:
|
|
7468
|
+
headers: Md({
|
|
7467
7469
|
headers: e.headers,
|
|
7468
7470
|
selectedUnits: g,
|
|
7469
7471
|
storageUnits: f,
|
|
@@ -7474,8 +7476,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7474
7476
|
canListReorder: s,
|
|
7475
7477
|
beforeRenderRow: b
|
|
7476
7478
|
});
|
|
7477
|
-
},
|
|
7478
|
-
let { translations: d } =
|
|
7479
|
+
}, Pd = { settingField: "_settingField_1x02n_1" }, Fd = ({ 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 }) => {
|
|
7480
|
+
let { translations: d } = Od(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
|
|
7479
7481
|
...r ? [] : [{
|
|
7480
7482
|
label: d == null ? void 0 : d.allUsers,
|
|
7481
7483
|
value: !1
|
|
@@ -7490,7 +7492,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7490
7492
|
}] : []
|
|
7491
7493
|
], m = a !== void 0 && o !== void 0 && !an(a, o);
|
|
7492
7494
|
return /* @__PURE__ */ y("div", {
|
|
7493
|
-
className:
|
|
7495
|
+
className: Pd.settingField,
|
|
7494
7496
|
"data-testid": u,
|
|
7495
7497
|
children: [/* @__PURE__ */ y(Nl, {
|
|
7496
7498
|
justifyContent: "space-between",
|
|
@@ -7500,9 +7502,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7500
7502
|
children: /* @__PURE__ */ y(Nl, {
|
|
7501
7503
|
gap: "8px",
|
|
7502
7504
|
alignItems: "center",
|
|
7503
|
-
children: [m && /* @__PURE__ */ v(
|
|
7504
|
-
text:
|
|
7505
|
-
icon:
|
|
7505
|
+
children: [m && /* @__PURE__ */ v(oi, {
|
|
7506
|
+
text: Un(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Mn(o) ? Wn(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
7507
|
+
icon: H.INFO
|
|
7506
7508
|
}), /* @__PURE__ */ v(Cs, {
|
|
7507
7509
|
small: !0,
|
|
7508
7510
|
searchable: !1,
|
|
@@ -7522,19 +7524,19 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7522
7524
|
children: f(t)
|
|
7523
7525
|
})]
|
|
7524
7526
|
});
|
|
7525
|
-
},
|
|
7527
|
+
}, Id = (e, t) => {
|
|
7526
7528
|
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;
|
|
7527
7529
|
return {
|
|
7528
7530
|
added: Math.max(0, i),
|
|
7529
7531
|
removed: Math.max(0, a)
|
|
7530
7532
|
};
|
|
7531
|
-
},
|
|
7533
|
+
}, Ld = "split", Rd = "unified", zd = ({ oldJson: e, newJson: t, viewType: n = Ld }) => {
|
|
7532
7534
|
var r, i;
|
|
7533
|
-
let { translations: a } =
|
|
7534
|
-
value:
|
|
7535
|
+
let { translations: a } = Od(), [o, s] = m(n), l = [{
|
|
7536
|
+
value: Ld,
|
|
7535
7537
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
7536
7538
|
}, {
|
|
7537
|
-
value:
|
|
7539
|
+
value: Rd,
|
|
7538
7540
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
7539
7541
|
}];
|
|
7540
7542
|
c(() => {
|
|
@@ -7542,7 +7544,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7542
7544
|
}, [n]);
|
|
7543
7545
|
let u = ({ target: { value: e } }) => {
|
|
7544
7546
|
s(e);
|
|
7545
|
-
}, { added: d, removed: f } =
|
|
7547
|
+
}, { added: d, removed: f } = Id(e, t), p = d + f > 3500;
|
|
7546
7548
|
return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
|
|
7547
7549
|
bordered: !0,
|
|
7548
7550
|
heading: /* @__PURE__ */ y(Nl, {
|
|
@@ -7572,17 +7574,17 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7572
7574
|
muted: !0,
|
|
7573
7575
|
children: a == null ? void 0 : a.changesTooLarge
|
|
7574
7576
|
})
|
|
7575
|
-
}) : /* @__PURE__ */ v(
|
|
7577
|
+
}) : /* @__PURE__ */ v(br, {
|
|
7576
7578
|
oldValue: e,
|
|
7577
7579
|
newValue: t,
|
|
7578
|
-
splitView: o ===
|
|
7579
|
-
compareMethod:
|
|
7580
|
+
splitView: o === Ld,
|
|
7581
|
+
compareMethod: xr.WORDS
|
|
7580
7582
|
})
|
|
7581
7583
|
}) });
|
|
7582
7584
|
};
|
|
7583
7585
|
//#endregion
|
|
7584
7586
|
//#region src/helpers/date.ts
|
|
7585
|
-
function
|
|
7587
|
+
function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
7586
7588
|
return e ? new Date(e).toLocaleString(a, {
|
|
7587
7589
|
year: "numeric",
|
|
7588
7590
|
month: "short",
|
|
@@ -7596,28 +7598,28 @@ function Rd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
7596
7598
|
}
|
|
7597
7599
|
//#endregion
|
|
7598
7600
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
7599
|
-
function
|
|
7601
|
+
function Vd(e) {
|
|
7600
7602
|
var t;
|
|
7601
7603
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
7602
7604
|
if (!n) throw Error("Invalid RegExp");
|
|
7603
7605
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
7604
7606
|
}
|
|
7605
|
-
function
|
|
7607
|
+
function Hd(e) {
|
|
7606
7608
|
if (typeof e != "object") return e;
|
|
7607
7609
|
if (e === null) return null;
|
|
7608
|
-
if (Array.isArray(e)) return e.map(
|
|
7610
|
+
if (Array.isArray(e)) return e.map(Hd);
|
|
7609
7611
|
if (e instanceof Date) return new Date(e.getTime());
|
|
7610
|
-
if (e instanceof RegExp) return
|
|
7612
|
+
if (e instanceof RegExp) return Vd(e);
|
|
7611
7613
|
let t = {};
|
|
7612
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
7614
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Hd(e[n]));
|
|
7613
7615
|
return t;
|
|
7614
7616
|
}
|
|
7615
7617
|
//#endregion
|
|
7616
7618
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
7617
|
-
function
|
|
7619
|
+
function Ud(e, t) {
|
|
7618
7620
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
7619
7621
|
}
|
|
7620
|
-
var
|
|
7622
|
+
var Wd = (e) => e[e.length - 1], Gd = class {
|
|
7621
7623
|
setResult(e) {
|
|
7622
7624
|
return this.result = e, this.hasResult = !0, this;
|
|
7623
7625
|
}
|
|
@@ -7625,16 +7627,16 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7625
7627
|
return this.exiting = !0, this;
|
|
7626
7628
|
}
|
|
7627
7629
|
push(e, t) {
|
|
7628
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
7630
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Ud(this.children), Wd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
7629
7631
|
}
|
|
7630
|
-
},
|
|
7632
|
+
}, Kd = class extends Gd {
|
|
7631
7633
|
constructor(e, t) {
|
|
7632
7634
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
7633
7635
|
}
|
|
7634
7636
|
prepareDeltaResult(e) {
|
|
7635
7637
|
var t, n, r, i;
|
|
7636
7638
|
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)) {
|
|
7637
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
7639
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Hd;
|
|
7638
7640
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
7639
7641
|
}
|
|
7640
7642
|
return e;
|
|
@@ -7642,15 +7644,15 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7642
7644
|
setResult(e) {
|
|
7643
7645
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
7644
7646
|
}
|
|
7645
|
-
},
|
|
7647
|
+
}, qd = class extends Gd {
|
|
7646
7648
|
constructor(e, t) {
|
|
7647
7649
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
7648
7650
|
}
|
|
7649
|
-
},
|
|
7651
|
+
}, Jd = class extends Gd {
|
|
7650
7652
|
constructor(e) {
|
|
7651
7653
|
super(), this.delta = e, this.pipe = "reverse";
|
|
7652
7654
|
}
|
|
7653
|
-
},
|
|
7655
|
+
}, Yd = class {
|
|
7654
7656
|
constructor(e) {
|
|
7655
7657
|
this.name = e, this.filters = [];
|
|
7656
7658
|
}
|
|
@@ -7714,7 +7716,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7714
7716
|
}
|
|
7715
7717
|
}), this);
|
|
7716
7718
|
}
|
|
7717
|
-
},
|
|
7719
|
+
}, Xd = class {
|
|
7718
7720
|
constructor(e) {
|
|
7719
7721
|
this.selfOptions = e || {}, this.pipes = {};
|
|
7720
7722
|
}
|
|
@@ -7741,7 +7743,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7741
7743
|
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);
|
|
7742
7744
|
return n.hasResult ? n.result : void 0;
|
|
7743
7745
|
}
|
|
7744
|
-
},
|
|
7746
|
+
}, Zd = (e, t, n, r) => e[n] === t[r], Qd = (e, t, n, r) => {
|
|
7745
7747
|
var i, a, o;
|
|
7746
7748
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
7747
7749
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -7757,7 +7759,7 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7757
7759
|
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);
|
|
7758
7760
|
}
|
|
7759
7761
|
return d;
|
|
7760
|
-
},
|
|
7762
|
+
}, $d = (e, t, n, r) => {
|
|
7761
7763
|
let i = t.length, a = n.length, o = {
|
|
7762
7764
|
sequence: [],
|
|
7763
7765
|
indices1: [],
|
|
@@ -7779,11 +7781,11 @@ var Hd = (e) => e[e.length - 1], Ud = class {
|
|
|
7779
7781
|
}
|
|
7780
7782
|
}
|
|
7781
7783
|
return o;
|
|
7782
|
-
},
|
|
7784
|
+
}, ef = { get: (e, t, n, r) => {
|
|
7783
7785
|
let i = r || {};
|
|
7784
|
-
return
|
|
7785
|
-
} },
|
|
7786
|
-
function
|
|
7786
|
+
return $d(Qd(e, t, n || Zd, i), e, t, i);
|
|
7787
|
+
} }, tf = 3;
|
|
7788
|
+
function nf(e, t, n, r) {
|
|
7787
7789
|
for (let i = 0; i < n; i++) {
|
|
7788
7790
|
let n = e[i];
|
|
7789
7791
|
for (let e = 0; e < r; e++) {
|
|
@@ -7793,7 +7795,7 @@ function ef(e, t, n, r) {
|
|
|
7793
7795
|
}
|
|
7794
7796
|
return !1;
|
|
7795
7797
|
}
|
|
7796
|
-
function
|
|
7798
|
+
function rf(e, t, n, r, i) {
|
|
7797
7799
|
let a = e[n], o = t[r];
|
|
7798
7800
|
if (a === o) return !0;
|
|
7799
7801
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -7806,15 +7808,15 @@ function tf(e, t, n, r, i) {
|
|
|
7806
7808
|
let l = i.hashCache2[r];
|
|
7807
7809
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
|
|
7808
7810
|
}
|
|
7809
|
-
var
|
|
7811
|
+
var af = function(e) {
|
|
7810
7812
|
var t, n, r, i, a;
|
|
7811
7813
|
if (!e.leftIsArray) return;
|
|
7812
7814
|
let o = {
|
|
7813
7815
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
7814
7816
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
7815
7817
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
7816
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
7817
|
-
for (; c + s < m && c + s < h &&
|
|
7818
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !nf(f, p, m, h)); s < m && s < h && rf(f, p, s, s, o);) l = s, g = new Kd(f[l], p[l]), e.push(g, l), s++;
|
|
7819
|
+
for (; c + s < m && c + s < h && rf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Kd(f[u], p[d]), e.push(g, d), c++;
|
|
7818
7820
|
let _;
|
|
7819
7821
|
if (s + c === m) {
|
|
7820
7822
|
if (m === h) {
|
|
@@ -7838,7 +7840,7 @@ var nf = function(e) {
|
|
|
7838
7840
|
return;
|
|
7839
7841
|
}
|
|
7840
7842
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
7841
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
7843
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = ef.get(v, y, rf, o), x = [];
|
|
7842
7844
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
7843
7845
|
let t = `_${l}`;
|
|
7844
7846
|
_[t] = [
|
|
@@ -7859,8 +7861,8 @@ var nf = function(e) {
|
|
|
7859
7861
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
7860
7862
|
u = x[n];
|
|
7861
7863
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
7862
|
-
if (u !== void 0 && r &&
|
|
7863
|
-
r.splice(1, 2, l,
|
|
7864
|
+
if (u !== void 0 && r && rf(v, y, u - s, l - s, o)) {
|
|
7865
|
+
r.splice(1, 2, l, tf), r.splice(1, 2, l, tf), C || (r[0] = ""), d = l, g = new Kd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
7864
7866
|
break;
|
|
7865
7867
|
}
|
|
7866
7868
|
}
|
|
@@ -7868,20 +7870,20 @@ var nf = function(e) {
|
|
|
7868
7870
|
} else {
|
|
7869
7871
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
7870
7872
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
7871
|
-
d = b.indices2[t] + s, g = new
|
|
7873
|
+
d = b.indices2[t] + s, g = new Kd(f[u], p[d]), e.push(g, d);
|
|
7872
7874
|
}
|
|
7873
7875
|
}
|
|
7874
7876
|
e.setResult(_).exit();
|
|
7875
7877
|
};
|
|
7876
|
-
|
|
7877
|
-
var
|
|
7878
|
+
af.filterName = "arrays";
|
|
7879
|
+
var of = {
|
|
7878
7880
|
numerically(e, t) {
|
|
7879
7881
|
return e - t;
|
|
7880
7882
|
},
|
|
7881
7883
|
numericallyBy(e) {
|
|
7882
7884
|
return (t, n) => t[e] - n[e];
|
|
7883
7885
|
}
|
|
7884
|
-
},
|
|
7886
|
+
}, sf = function(e) {
|
|
7885
7887
|
var t;
|
|
7886
7888
|
if (!e.nested) return;
|
|
7887
7889
|
let n = e.delta;
|
|
@@ -7889,7 +7891,7 @@ var rf = {
|
|
|
7889
7891
|
let r, i, a = n, o = e.left, s = [], c = [], l = [];
|
|
7890
7892
|
for (r in a) if (r !== "_t") if (r[0] === "_") {
|
|
7891
7893
|
let e = r;
|
|
7892
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
7894
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === tf)) s.push(Number.parseInt(r.slice(1), 10));
|
|
7893
7895
|
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]}`);
|
|
7894
7896
|
} else {
|
|
7895
7897
|
let e = r;
|
|
@@ -7901,15 +7903,15 @@ var rf = {
|
|
|
7901
7903
|
delta: a[e]
|
|
7902
7904
|
});
|
|
7903
7905
|
}
|
|
7904
|
-
for (s = s.sort(
|
|
7906
|
+
for (s = s.sort(of.numerically), r = s.length - 1; r >= 0; r--) {
|
|
7905
7907
|
if (i = s[r], i === void 0) continue;
|
|
7906
7908
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
7907
|
-
(e == null ? void 0 : e[2]) ===
|
|
7909
|
+
(e == null ? void 0 : e[2]) === tf && c.push({
|
|
7908
7910
|
index: e[1],
|
|
7909
7911
|
value: t
|
|
7910
7912
|
});
|
|
7911
7913
|
}
|
|
7912
|
-
c = c.sort(
|
|
7914
|
+
c = c.sort(of.numericallyBy("index"));
|
|
7913
7915
|
let u = c.length;
|
|
7914
7916
|
for (r = 0; r < u; r++) {
|
|
7915
7917
|
let e = c[r];
|
|
@@ -7919,7 +7921,7 @@ var rf = {
|
|
|
7919
7921
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
7920
7922
|
let t = l[r];
|
|
7921
7923
|
if (t === void 0) continue;
|
|
7922
|
-
let n = new
|
|
7924
|
+
let n = new qd(o[t.index], t.delta);
|
|
7923
7925
|
e.push(n, t.index);
|
|
7924
7926
|
}
|
|
7925
7927
|
if (!e.children) {
|
|
@@ -7928,8 +7930,8 @@ var rf = {
|
|
|
7928
7930
|
}
|
|
7929
7931
|
e.exit();
|
|
7930
7932
|
};
|
|
7931
|
-
|
|
7932
|
-
var
|
|
7933
|
+
sf.filterName = "arrays";
|
|
7934
|
+
var cf = function(e) {
|
|
7933
7935
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
7934
7936
|
let t = e.left, n = e.children.length;
|
|
7935
7937
|
for (let r = 0; r < n; r++) {
|
|
@@ -7940,16 +7942,16 @@ var of = function(e) {
|
|
|
7940
7942
|
}
|
|
7941
7943
|
e.setResult(t).exit();
|
|
7942
7944
|
};
|
|
7943
|
-
|
|
7944
|
-
var
|
|
7945
|
+
cf.filterName = "arraysCollectChildren";
|
|
7946
|
+
var lf = function(e) {
|
|
7945
7947
|
if (!e.nested) {
|
|
7946
7948
|
let t = e.delta;
|
|
7947
|
-
if (t[2] ===
|
|
7949
|
+
if (t[2] === tf) {
|
|
7948
7950
|
let n = t;
|
|
7949
7951
|
e.newName = `_${n[1]}`, e.setResult([
|
|
7950
7952
|
n[0],
|
|
7951
7953
|
Number.parseInt(e.childName.substring(1), 10),
|
|
7952
|
-
|
|
7954
|
+
tf
|
|
7953
7955
|
]).exit();
|
|
7954
7956
|
}
|
|
7955
7957
|
return;
|
|
@@ -7959,26 +7961,26 @@ var sf = function(e) {
|
|
|
7959
7961
|
let n = t;
|
|
7960
7962
|
for (let t in n) {
|
|
7961
7963
|
if (t === "_t") continue;
|
|
7962
|
-
let r = new
|
|
7964
|
+
let r = new Jd(n[t]);
|
|
7963
7965
|
e.push(r, t);
|
|
7964
7966
|
}
|
|
7965
7967
|
e.exit();
|
|
7966
7968
|
};
|
|
7967
|
-
|
|
7968
|
-
var
|
|
7969
|
+
lf.filterName = "arrays";
|
|
7970
|
+
var uf = (e, t, n) => {
|
|
7969
7971
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
7970
7972
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
7971
7973
|
let r = +t;
|
|
7972
7974
|
for (let n in e) {
|
|
7973
7975
|
let i = e[n];
|
|
7974
|
-
if (Array.isArray(i)) if (i[2] ===
|
|
7976
|
+
if (Array.isArray(i)) if (i[2] === tf) {
|
|
7975
7977
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
7976
7978
|
if (a === +t) return e;
|
|
7977
7979
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
7978
7980
|
} else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
|
|
7979
7981
|
}
|
|
7980
7982
|
return r;
|
|
7981
|
-
},
|
|
7983
|
+
}, df = (e) => {
|
|
7982
7984
|
if (!e || !e.children) return;
|
|
7983
7985
|
let t = e.delta;
|
|
7984
7986
|
if (t._t !== "a") return;
|
|
@@ -7989,22 +7991,22 @@ var cf = (e, t, n) => {
|
|
|
7989
7991
|
let a = r.newName;
|
|
7990
7992
|
if (a === void 0) {
|
|
7991
7993
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
7992
|
-
a =
|
|
7994
|
+
a = uf(n, r.childName, r.result);
|
|
7993
7995
|
}
|
|
7994
7996
|
i[a] !== r.result && (i[a] = r.result);
|
|
7995
7997
|
}
|
|
7996
7998
|
e.setResult(i).exit();
|
|
7997
7999
|
};
|
|
7998
|
-
|
|
8000
|
+
df.filterName = "arraysCollectChildren";
|
|
7999
8001
|
//#endregion
|
|
8000
8002
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8001
|
-
var
|
|
8003
|
+
var ff = function(e) {
|
|
8002
8004
|
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();
|
|
8003
8005
|
};
|
|
8004
|
-
|
|
8006
|
+
ff.filterName = "dates";
|
|
8005
8007
|
//#endregion
|
|
8006
8008
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8007
|
-
var
|
|
8009
|
+
var pf = new Set(["__proto__"]), mf = (e) => {
|
|
8008
8010
|
if (!e || !e.children) return;
|
|
8009
8011
|
let t = e.children.length, n = e.result;
|
|
8010
8012
|
for (let r = 0; r < t; r++) {
|
|
@@ -8016,18 +8018,18 @@ var df = new Set(["__proto__"]), ff = (e) => {
|
|
|
8016
8018
|
}
|
|
8017
8019
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8018
8020
|
};
|
|
8019
|
-
|
|
8020
|
-
var
|
|
8021
|
+
mf.filterName = "collectChildren";
|
|
8022
|
+
var hf = (e) => {
|
|
8021
8023
|
var t;
|
|
8022
8024
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8023
8025
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8024
8026
|
for (let t in n) {
|
|
8025
8027
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8026
|
-
let a = new
|
|
8028
|
+
let a = new Kd(n[t], r[t]);
|
|
8027
8029
|
e.push(a, t);
|
|
8028
8030
|
}
|
|
8029
8031
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8030
|
-
let n = new
|
|
8032
|
+
let n = new Kd(void 0, r[t]);
|
|
8031
8033
|
e.push(n, t);
|
|
8032
8034
|
}
|
|
8033
8035
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8036,15 +8038,15 @@ var pf = (e) => {
|
|
|
8036
8038
|
}
|
|
8037
8039
|
e.exit();
|
|
8038
8040
|
};
|
|
8039
|
-
|
|
8040
|
-
var
|
|
8041
|
+
hf.filterName = "objects";
|
|
8042
|
+
var gf = function(e) {
|
|
8041
8043
|
if (!e.nested) return;
|
|
8042
8044
|
let t = e.delta;
|
|
8043
8045
|
if (t._t) return;
|
|
8044
8046
|
let n = t, r = !1;
|
|
8045
8047
|
for (let t in n) {
|
|
8046
|
-
if (
|
|
8047
|
-
let i = e.left, a = new
|
|
8048
|
+
if (pf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8049
|
+
let i = e.left, a = new qd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8048
8050
|
e.push(a, t), r = !0;
|
|
8049
8051
|
}
|
|
8050
8052
|
if (!r) {
|
|
@@ -8053,8 +8055,8 @@ var mf = function(e) {
|
|
|
8053
8055
|
}
|
|
8054
8056
|
e.exit();
|
|
8055
8057
|
};
|
|
8056
|
-
|
|
8057
|
-
var
|
|
8058
|
+
gf.filterName = "objects";
|
|
8059
|
+
var _f = function(e) {
|
|
8058
8060
|
if (!e || !e.children || e.delta._t) return;
|
|
8059
8061
|
if (e.left === null || typeof e.left != "object") {
|
|
8060
8062
|
e.setResult(e.left).exit();
|
|
@@ -8065,17 +8067,17 @@ var hf = function(e) {
|
|
|
8065
8067
|
let n = e.children[r];
|
|
8066
8068
|
if (n === void 0) continue;
|
|
8067
8069
|
let i = n.childName;
|
|
8068
|
-
|
|
8070
|
+
pf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8069
8071
|
}
|
|
8070
8072
|
e.setResult(t).exit();
|
|
8071
8073
|
};
|
|
8072
|
-
|
|
8073
|
-
var
|
|
8074
|
+
_f.filterName = "collectChildren";
|
|
8075
|
+
var vf = function(e) {
|
|
8074
8076
|
if (!e.nested || e.delta._t) return;
|
|
8075
8077
|
let t = e.delta, n = !1;
|
|
8076
8078
|
for (let r in t) {
|
|
8077
|
-
if (
|
|
8078
|
-
let i = new
|
|
8079
|
+
if (pf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8080
|
+
let i = new Jd(t[r]);
|
|
8079
8081
|
e.push(i, r), n = !0;
|
|
8080
8082
|
}
|
|
8081
8083
|
if (!n) {
|
|
@@ -8084,25 +8086,25 @@ var gf = function(e) {
|
|
|
8084
8086
|
}
|
|
8085
8087
|
e.exit();
|
|
8086
8088
|
};
|
|
8087
|
-
|
|
8088
|
-
var
|
|
8089
|
+
vf.filterName = "objects";
|
|
8090
|
+
var yf = (e) => {
|
|
8089
8091
|
if (!e || !e.children || e.delta._t) return;
|
|
8090
8092
|
let t = e.children.length, n = {};
|
|
8091
8093
|
for (let r = 0; r < t; r++) {
|
|
8092
8094
|
let t = e.children[r];
|
|
8093
8095
|
if (t === void 0) continue;
|
|
8094
8096
|
let i = t.childName;
|
|
8095
|
-
|
|
8097
|
+
pf.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8096
8098
|
}
|
|
8097
8099
|
e.setResult(n).exit();
|
|
8098
8100
|
};
|
|
8099
|
-
|
|
8101
|
+
yf.filterName = "collectChildren";
|
|
8100
8102
|
//#endregion
|
|
8101
8103
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8102
|
-
var
|
|
8103
|
-
function
|
|
8104
|
+
var bf = 2, xf = 60, Sf = null;
|
|
8105
|
+
function Cf(e, t) {
|
|
8104
8106
|
var n;
|
|
8105
|
-
if (!
|
|
8107
|
+
if (!Sf) {
|
|
8106
8108
|
let r;
|
|
8107
8109
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8108
8110
|
else {
|
|
@@ -8110,7 +8112,7 @@ function xf(e, t) {
|
|
|
8110
8112
|
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.");
|
|
8111
8113
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8112
8114
|
}
|
|
8113
|
-
|
|
8115
|
+
Sf = {
|
|
8114
8116
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8115
8117
|
patch: (e, t) => {
|
|
8116
8118
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8122,17 +8124,17 @@ function xf(e, t) {
|
|
|
8122
8124
|
}
|
|
8123
8125
|
};
|
|
8124
8126
|
}
|
|
8125
|
-
return
|
|
8127
|
+
return Sf;
|
|
8126
8128
|
}
|
|
8127
|
-
var
|
|
8129
|
+
var wf = function(e) {
|
|
8128
8130
|
var t, n;
|
|
8129
8131
|
if (e.leftType !== "string") return;
|
|
8130
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8132
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || xf;
|
|
8131
8133
|
if (r.length < a || i.length < a) {
|
|
8132
8134
|
e.setResult([r, i]).exit();
|
|
8133
8135
|
return;
|
|
8134
8136
|
}
|
|
8135
|
-
let o =
|
|
8137
|
+
let o = Cf(e.options);
|
|
8136
8138
|
if (!o) {
|
|
8137
8139
|
e.setResult([r, i]).exit();
|
|
8138
8140
|
return;
|
|
@@ -8141,19 +8143,19 @@ var Sf = function(e) {
|
|
|
8141
8143
|
e.setResult([
|
|
8142
8144
|
s(r, i),
|
|
8143
8145
|
0,
|
|
8144
|
-
|
|
8146
|
+
bf
|
|
8145
8147
|
]).exit();
|
|
8146
8148
|
};
|
|
8147
|
-
|
|
8148
|
-
var
|
|
8149
|
+
wf.filterName = "texts";
|
|
8150
|
+
var Tf = function(e) {
|
|
8149
8151
|
if (e.nested) return;
|
|
8150
8152
|
let t = e.delta;
|
|
8151
|
-
if (t[2] !==
|
|
8152
|
-
let n = t, r =
|
|
8153
|
+
if (t[2] !== bf) return;
|
|
8154
|
+
let n = t, r = Cf(e.options, !0).patch;
|
|
8153
8155
|
e.setResult(r(e.left, n[0])).exit();
|
|
8154
8156
|
};
|
|
8155
|
-
|
|
8156
|
-
var
|
|
8157
|
+
Tf.filterName = "texts";
|
|
8158
|
+
var Ef = (e) => {
|
|
8157
8159
|
var t, n, r;
|
|
8158
8160
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8159
8161
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8174,21 +8176,21 @@ var wf = (e) => {
|
|
|
8174
8176
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8175
8177
|
}
|
|
8176
8178
|
return a.join("\n");
|
|
8177
|
-
},
|
|
8179
|
+
}, Df = function(e) {
|
|
8178
8180
|
if (e.nested) return;
|
|
8179
8181
|
let t = e.delta;
|
|
8180
|
-
if (t[2] !==
|
|
8182
|
+
if (t[2] !== bf) return;
|
|
8181
8183
|
let n = t;
|
|
8182
8184
|
e.setResult([
|
|
8183
|
-
|
|
8185
|
+
Ef(n[0]),
|
|
8184
8186
|
0,
|
|
8185
|
-
|
|
8187
|
+
bf
|
|
8186
8188
|
]).exit();
|
|
8187
8189
|
};
|
|
8188
|
-
|
|
8190
|
+
Df.filterName = "texts";
|
|
8189
8191
|
//#endregion
|
|
8190
8192
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8191
|
-
var
|
|
8193
|
+
var Of = function(e) {
|
|
8192
8194
|
if (e.left === e.right) {
|
|
8193
8195
|
e.setResult(void 0).exit();
|
|
8194
8196
|
return;
|
|
@@ -8221,8 +8223,8 @@ var Ef = function(e) {
|
|
|
8221
8223
|
}
|
|
8222
8224
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8223
8225
|
};
|
|
8224
|
-
|
|
8225
|
-
var
|
|
8226
|
+
Of.filterName = "trivial";
|
|
8227
|
+
var kf = function(e) {
|
|
8226
8228
|
if (e.delta === void 0) {
|
|
8227
8229
|
e.setResult(e.left).exit();
|
|
8228
8230
|
return;
|
|
@@ -8246,8 +8248,8 @@ var Df = function(e) {
|
|
|
8246
8248
|
}
|
|
8247
8249
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8248
8250
|
};
|
|
8249
|
-
|
|
8250
|
-
var
|
|
8251
|
+
kf.filterName = "trivial";
|
|
8252
|
+
var Af = function(e) {
|
|
8251
8253
|
if (e.delta === void 0) {
|
|
8252
8254
|
e.setResult(e.delta).exit();
|
|
8253
8255
|
return;
|
|
@@ -8268,36 +8270,36 @@ var Of = function(e) {
|
|
|
8268
8270
|
}
|
|
8269
8271
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
8270
8272
|
};
|
|
8271
|
-
|
|
8273
|
+
Af.filterName = "trivial";
|
|
8272
8274
|
//#endregion
|
|
8273
8275
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
8274
|
-
var
|
|
8276
|
+
var jf = class {
|
|
8275
8277
|
constructor(e) {
|
|
8276
|
-
this.processor = new
|
|
8278
|
+
this.processor = new Xd(e), this.processor.pipe(new Yd("diff").append(mf, Of, ff, wf, hf, af).shouldHaveResult()), this.processor.pipe(new Yd("patch").append(_f, cf, kf, Tf, gf, sf).shouldHaveResult()), this.processor.pipe(new Yd("reverse").append(yf, df, Af, Df, vf, lf).shouldHaveResult());
|
|
8277
8279
|
}
|
|
8278
8280
|
options(e) {
|
|
8279
8281
|
return this.processor.options(e);
|
|
8280
8282
|
}
|
|
8281
8283
|
diff(e, t) {
|
|
8282
|
-
return this.processor.process(new
|
|
8284
|
+
return this.processor.process(new Kd(e, t));
|
|
8283
8285
|
}
|
|
8284
8286
|
patch(e, t) {
|
|
8285
|
-
return this.processor.process(new
|
|
8287
|
+
return this.processor.process(new qd(e, t));
|
|
8286
8288
|
}
|
|
8287
8289
|
reverse(e) {
|
|
8288
|
-
return this.processor.process(new
|
|
8290
|
+
return this.processor.process(new Jd(e));
|
|
8289
8291
|
}
|
|
8290
8292
|
unpatch(e, t) {
|
|
8291
8293
|
return this.patch(e, this.reverse(t));
|
|
8292
8294
|
}
|
|
8293
8295
|
clone(e) {
|
|
8294
|
-
return
|
|
8296
|
+
return Hd(e);
|
|
8295
8297
|
}
|
|
8296
8298
|
};
|
|
8297
8299
|
//#endregion
|
|
8298
8300
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
8299
|
-
function
|
|
8300
|
-
return new
|
|
8301
|
+
function Mf(e) {
|
|
8302
|
+
return new jf(e);
|
|
8301
8303
|
}
|
|
8302
8304
|
//#endregion
|
|
8303
8305
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -8870,46 +8872,46 @@ $.Diff = function(e, t) {
|
|
|
8870
8872
|
};
|
|
8871
8873
|
//#endregion
|
|
8872
8874
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
8873
|
-
var
|
|
8875
|
+
var Nf = (e = {}) => Mf({
|
|
8874
8876
|
...e,
|
|
8875
8877
|
textDiff: {
|
|
8876
8878
|
diffMatchPatch: $,
|
|
8877
8879
|
minLength: 120
|
|
8878
8880
|
},
|
|
8879
8881
|
cloneDiffValues: !0
|
|
8880
|
-
}),
|
|
8882
|
+
}), Pf = ["user", "unittemplate"], Ff = Nf(), If = (e, t, n) => {
|
|
8881
8883
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
8882
8884
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8883
8885
|
let n = r[t[e]];
|
|
8884
8886
|
if (n) return n;
|
|
8885
8887
|
}
|
|
8886
8888
|
return n || "";
|
|
8887
|
-
},
|
|
8888
|
-
let t = (e) =>
|
|
8889
|
+
}, Lf = (e) => {
|
|
8890
|
+
let t = (e) => Mn(e) ? Wn(e) : String(e);
|
|
8889
8891
|
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);
|
|
8890
|
-
},
|
|
8892
|
+
}, Rf = (e) => {
|
|
8891
8893
|
switch (e.length) {
|
|
8892
8894
|
case 1: {
|
|
8893
8895
|
let [t] = e;
|
|
8894
8896
|
return {
|
|
8895
8897
|
type: "created",
|
|
8896
8898
|
before: "",
|
|
8897
|
-
after:
|
|
8899
|
+
after: Lf(t)
|
|
8898
8900
|
};
|
|
8899
8901
|
}
|
|
8900
8902
|
case 2: {
|
|
8901
8903
|
let [t, n] = e;
|
|
8902
8904
|
return {
|
|
8903
8905
|
type: "modified",
|
|
8904
|
-
before:
|
|
8905
|
-
after:
|
|
8906
|
+
before: Lf(t),
|
|
8907
|
+
after: Lf(n)
|
|
8906
8908
|
};
|
|
8907
8909
|
}
|
|
8908
8910
|
case 3: {
|
|
8909
8911
|
let [t] = e;
|
|
8910
8912
|
return {
|
|
8911
8913
|
type: "deleted",
|
|
8912
|
-
before:
|
|
8914
|
+
before: Lf(t),
|
|
8913
8915
|
after: ""
|
|
8914
8916
|
};
|
|
8915
8917
|
}
|
|
@@ -8919,15 +8921,15 @@ var jf = (e = {}) => Af({
|
|
|
8919
8921
|
after: ""
|
|
8920
8922
|
};
|
|
8921
8923
|
}
|
|
8922
|
-
},
|
|
8923
|
-
let r =
|
|
8924
|
+
}, zf = (e) => Array.isArray(e), Bf = (e, t) => t ? zf(t) ? t.length === 0 ? e : t.reduce((e, t) => Ff.unpatch(Xt(e), Xt(t)), Xt(e)) : Ff.unpatch(Xt(e), Xt(t)) : e, Vf = (e) => e.createdAt || e.date, Hf = (e, t, n) => {
|
|
8925
|
+
let r = Vf(e);
|
|
8924
8926
|
if (!r) return {
|
|
8925
8927
|
oldJson: "",
|
|
8926
8928
|
newJson: "",
|
|
8927
8929
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
8928
8930
|
};
|
|
8929
8931
|
let i = t.filter((e) => {
|
|
8930
|
-
let t =
|
|
8932
|
+
let t = Vf(e);
|
|
8931
8933
|
return !!(e.diffs && t && t >= r);
|
|
8932
8934
|
}), a = Array.from({ length: i.length + 1 });
|
|
8933
8935
|
a[0] = Xt(n);
|
|
@@ -8940,7 +8942,7 @@ var jf = (e = {}) => Af({
|
|
|
8940
8942
|
a[e + 1] = a[e];
|
|
8941
8943
|
continue;
|
|
8942
8944
|
}
|
|
8943
|
-
a[e + 1] =
|
|
8945
|
+
a[e + 1] = Bf(a[e], t);
|
|
8944
8946
|
}
|
|
8945
8947
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
8946
8948
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -8955,10 +8957,10 @@ var jf = (e = {}) => Af({
|
|
|
8955
8957
|
oldJson: o,
|
|
8956
8958
|
newJson: s
|
|
8957
8959
|
};
|
|
8958
|
-
},
|
|
8960
|
+
}, Uf = (e, t, n = {}, r = []) => {
|
|
8959
8961
|
var i;
|
|
8960
8962
|
if (!e) return;
|
|
8961
|
-
let a = [...
|
|
8963
|
+
let a = [...Pf, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
8962
8964
|
Object.keys(e).forEach((i) => {
|
|
8963
8965
|
var o;
|
|
8964
8966
|
let s = e[i];
|
|
@@ -8971,12 +8973,12 @@ var jf = (e = {}) => Af({
|
|
|
8971
8973
|
tn(s) ? t.push({
|
|
8972
8974
|
deltaFormat: [...s],
|
|
8973
8975
|
path: c
|
|
8974
|
-
}) : ln(s) &&
|
|
8976
|
+
}) : ln(s) && Uf(s, t, n, c);
|
|
8975
8977
|
});
|
|
8976
|
-
},
|
|
8978
|
+
}, Wf = (e, t = {}) => {
|
|
8977
8979
|
let n = [];
|
|
8978
|
-
return e ? (
|
|
8979
|
-
},
|
|
8980
|
+
return e ? (Uf(e, n, t), n) : [];
|
|
8981
|
+
}, Gf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Kf = (e) => {
|
|
8980
8982
|
if (e == null || e === "") return "empty";
|
|
8981
8983
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
8982
8984
|
if (typeof e == "string") return e;
|
|
@@ -8987,32 +8989,32 @@ var jf = (e = {}) => Af({
|
|
|
8987
8989
|
} catch {
|
|
8988
8990
|
return String(e);
|
|
8989
8991
|
}
|
|
8990
|
-
},
|
|
8992
|
+
}, qf = (e, t = e.length - 1) => {
|
|
8991
8993
|
if (t >= e.length) return "Value";
|
|
8992
8994
|
let n = e[t];
|
|
8993
|
-
return !n ||
|
|
8994
|
-
},
|
|
8995
|
-
let o =
|
|
8995
|
+
return !n || kn(n) ? qf(e, t - 1) : Gf(n);
|
|
8996
|
+
}, Jf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
8997
|
+
let o = Kf(r), s = Kf(i), c = a ? ` in ${a}` : "";
|
|
8996
8998
|
switch (t) {
|
|
8997
8999
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
8998
9000
|
case "created": return `${e} created ${s}${c}.`;
|
|
8999
9001
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9000
9002
|
default: return `${e} changed ${n}${c}.`;
|
|
9001
9003
|
}
|
|
9002
|
-
},
|
|
9004
|
+
}, Yf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(yc, { table: {
|
|
9003
9005
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9004
9006
|
rows: n.map((n) => {
|
|
9005
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9006
|
-
return { cells: [{ value:
|
|
9007
|
+
let { deltaFormat: i, path: a } = n, o = If(e, a, r), { type: s, before: c, after: l } = Rf(i);
|
|
9008
|
+
return { cells: [{ value: Jf({
|
|
9007
9009
|
userName: t,
|
|
9008
9010
|
type: s,
|
|
9009
|
-
property:
|
|
9011
|
+
property: qf(a),
|
|
9010
9012
|
before: c,
|
|
9011
9013
|
after: l,
|
|
9012
9014
|
sectionName: o
|
|
9013
9015
|
}) }] };
|
|
9014
9016
|
})
|
|
9015
|
-
} }),
|
|
9017
|
+
} }), Xf = Object.freeze({
|
|
9016
9018
|
summary: {
|
|
9017
9019
|
label: "Summary",
|
|
9018
9020
|
value: "summary"
|
|
@@ -9021,13 +9023,13 @@ var jf = (e = {}) => Af({
|
|
|
9021
9023
|
label: "Compare",
|
|
9022
9024
|
value: "compare"
|
|
9023
9025
|
}
|
|
9024
|
-
}),
|
|
9025
|
-
let c = [
|
|
9026
|
+
}), Zf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9027
|
+
let c = [Xf.summary, Xf.compare].map(({ label: e, value: t }) => ({
|
|
9026
9028
|
label: e,
|
|
9027
9029
|
value: t
|
|
9028
9030
|
})), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
|
|
9029
9031
|
if (!d) return null;
|
|
9030
|
-
let { oldJson: f, newJson: p, error: h } =
|
|
9032
|
+
let { oldJson: f, newJson: p, error: h } = Hf(e, t, n);
|
|
9031
9033
|
return /* @__PURE__ */ v(Ka, {
|
|
9032
9034
|
visible: r,
|
|
9033
9035
|
centered: !0,
|
|
@@ -9039,15 +9041,15 @@ var jf = (e = {}) => Af({
|
|
|
9039
9041
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9040
9042
|
options: c,
|
|
9041
9043
|
value: l
|
|
9042
|
-
}), l.value === "summary" ? /* @__PURE__ */ v(
|
|
9044
|
+
}), l.value === "summary" ? /* @__PURE__ */ v(Yf, {
|
|
9043
9045
|
userName: e.userName,
|
|
9044
9046
|
sectionNames: a,
|
|
9045
|
-
diffs:
|
|
9047
|
+
diffs: Wf(d, i),
|
|
9046
9048
|
defaultSectionName: o
|
|
9047
9049
|
}) : h ? /* @__PURE__ */ v("div", {
|
|
9048
9050
|
style: { padding: 16 },
|
|
9049
9051
|
children: h
|
|
9050
|
-
}) : /* @__PURE__ */ v(
|
|
9052
|
+
}) : /* @__PURE__ */ v(zd, {
|
|
9051
9053
|
oldJson: f,
|
|
9052
9054
|
newJson: p
|
|
9053
9055
|
})] }),
|
|
@@ -9060,7 +9062,7 @@ var jf = (e = {}) => Af({
|
|
|
9060
9062
|
height: "90vh"
|
|
9061
9063
|
} })
|
|
9062
9064
|
});
|
|
9063
|
-
},
|
|
9065
|
+
}, Qf = [
|
|
9064
9066
|
{
|
|
9065
9067
|
label: "10 / page",
|
|
9066
9068
|
value: 10
|
|
@@ -9073,8 +9075,8 @@ var jf = (e = {}) => Af({
|
|
|
9073
9075
|
label: "50 / page",
|
|
9074
9076
|
value: 50
|
|
9075
9077
|
}
|
|
9076
|
-
],
|
|
9077
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9078
|
+
], $f = (e, t = {}) => {
|
|
9079
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Wf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9078
9080
|
if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
|
|
9079
9081
|
switch (a) {
|
|
9080
9082
|
case "Created": return `Created by ${r}`;
|
|
@@ -9084,7 +9086,7 @@ var jf = (e = {}) => Af({
|
|
|
9084
9086
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9085
9087
|
default: return `Change by ${r}`;
|
|
9086
9088
|
}
|
|
9087
|
-
},
|
|
9089
|
+
}, ep = ({ 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: h, isLogDisabled: g }) => {
|
|
9088
9090
|
let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
|
|
9089
9091
|
if (e.snapshot) {
|
|
9090
9092
|
f == null || f(e.snapshot, e);
|
|
@@ -9103,7 +9105,7 @@ var jf = (e = {}) => Af({
|
|
|
9103
9105
|
return {
|
|
9104
9106
|
cells: [
|
|
9105
9107
|
{
|
|
9106
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9108
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : $f(e, l),
|
|
9107
9109
|
type: "Link",
|
|
9108
9110
|
disabled: n,
|
|
9109
9111
|
onClick: n ? void 0 : () => w(e),
|
|
@@ -9122,8 +9124,8 @@ var jf = (e = {}) => Af({
|
|
|
9122
9124
|
type: "Static"
|
|
9123
9125
|
},
|
|
9124
9126
|
{
|
|
9125
|
-
value:
|
|
9126
|
-
date:
|
|
9127
|
+
value: Bd({
|
|
9128
|
+
date: Vf(e),
|
|
9127
9129
|
showTime: !0
|
|
9128
9130
|
}),
|
|
9129
9131
|
type: "Static"
|
|
@@ -9150,7 +9152,7 @@ var jf = (e = {}) => Af({
|
|
|
9150
9152
|
padding: !1,
|
|
9151
9153
|
children: r ? /* @__PURE__ */ v(eu, {
|
|
9152
9154
|
height: "100px",
|
|
9153
|
-
theme:
|
|
9155
|
+
theme: Dr.WHITE,
|
|
9154
9156
|
children: /* @__PURE__ */ v(mi, { dark: !0 })
|
|
9155
9157
|
}) : /* @__PURE__ */ v(yc, { table: {
|
|
9156
9158
|
headers: T,
|
|
@@ -9166,14 +9168,14 @@ var jf = (e = {}) => Af({
|
|
|
9166
9168
|
onChange: (e) => {
|
|
9167
9169
|
u(Number(e.target.value));
|
|
9168
9170
|
},
|
|
9169
|
-
options:
|
|
9171
|
+
options: Qf,
|
|
9170
9172
|
value: a
|
|
9171
9173
|
},
|
|
9172
9174
|
onSelectPage: (e) => d(e),
|
|
9173
9175
|
small: !0
|
|
9174
9176
|
} }
|
|
9175
9177
|
} })
|
|
9176
|
-
}), b && S && S.diffs && /* @__PURE__ */ v(
|
|
9178
|
+
}), b && S && S.diffs && /* @__PURE__ */ v(Zf, {
|
|
9177
9179
|
sectionNames: o,
|
|
9178
9180
|
isOpen: b,
|
|
9179
9181
|
onClose: () => x(!1),
|
|
@@ -9183,7 +9185,7 @@ var jf = (e = {}) => Af({
|
|
|
9183
9185
|
data: t,
|
|
9184
9186
|
transformDiffsConfig: l
|
|
9185
9187
|
})] });
|
|
9186
|
-
},
|
|
9188
|
+
}, tp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9187
9189
|
let i = window.location.href, a = p(i);
|
|
9188
9190
|
return c(() => {
|
|
9189
9191
|
a.current = i;
|
|
@@ -9206,10 +9208,10 @@ var jf = (e = {}) => Af({
|
|
|
9206
9208
|
});
|
|
9207
9209
|
};
|
|
9208
9210
|
}, [e, t]), null;
|
|
9209
|
-
},
|
|
9210
|
-
|
|
9211
|
-
e ===
|
|
9211
|
+
}, np = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, rp = (e) => {
|
|
9212
|
+
kd(wd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9213
|
+
e === wd.Translations ? kd(e, Ed(t)) : kd(e, np(t) ? t : { ...t });
|
|
9212
9214
|
});
|
|
9213
9215
|
};
|
|
9214
9216
|
//#endregion
|
|
9215
|
-
export {
|
|
9217
|
+
export { Kr as Accordion, di as AccordionWithDefaultToggle, Ji as Actions, wr as Align, ep as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Tr as ButtonPosition, hi as ButtonType, na as Card, si as CheckBox, Br as Chevron, Ur as Collapse, Cr as Color, sa as ColorInput, fa as Column, Sa as Dialog, zd as DiffViewer, U as DisabledContext, _a as Divider, ka as Drawer, Iu as ElementType, Ac as Empty, Ml as Field, Ol as FileButton, za as FileInput, Nl as Flex, Fl as FormRow, zl as Grid, V as GroupOrder, ya as Heading, oi as HelpIcon, W as Icon, H as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, Or as InputType, Al as Label, Ql as List, Vl as ListHeading, ql as ListSubheading, eu as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, ou as OptionDropdown, cu as Page, As as Pagination, Hu as PopConfirm, aa as Popover, Ha as Portal, uu as PrintHeader, Ya as ProgressBar, du as RadioButton, gu as RichTextInput, vu as Row, Cs as Select, Fd as SettingField, Cu as SideBar, Tu as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, yc as Table, Dl as TableImportExport, ku as Tabs, ha as Text, Mu as TextArea, Au as TextLink, Er as TextTransform, Dr as Theme, sr as Toaster, dl as Toggle, G as Tooltip, zu as TopBar, Ku as Tree, id as TreeTable, Sr as TriggerType, Cd as UnitInput, Nd as UnitTable, tp as UsageTracker, cl as dismissToast, bd as initializeContext, rp as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|