@oliasoft-open-source/react-ui-library 6.2.2-beta-1 → 6.2.2-beta-2
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/layout/column/column.d.ts.map +1 -1
- package/dist/components/layout/column/styles.d.ts +16 -0
- package/dist/components/layout/column/styles.d.ts.map +1 -0
- package/dist/components/layout/grid/grid.d.ts +9 -0
- package/dist/components/layout/grid/grid.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +478 -451
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -6,58 +6,59 @@ import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
|
6
6
|
import { CSSTransition as jt } from "react-transition-group";
|
|
7
7
|
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";
|
|
8
8
|
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 pn, set as mn, toLower as hn, toNumber as gn, values as _n } from "es-toolkit/compat";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import pr from "@tiptap/
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
9
|
+
import vn, { css as yn } from "styled-components";
|
|
10
|
+
import { Resizable as bn } from "react-resizable";
|
|
11
|
+
import { createPortal as xn } from "react-dom";
|
|
12
|
+
import { ALT_UNITS as Sn, KNOWN_UNITS as Cn, altUnitsList as wn, cleanNumStr as Tn, convertAndGetValue as En, convertSamePrecision as Dn, getAltUnitsListByQuantity as On, getUnit as kn, getUnitsForQuantity as An, getValue as jn, isNumeric as Mn, isScientificStringNum as Nn, isValidNum as Pn, isValueWithUnit as Fn, label as In, roundByMagnitude as Ln, roundByMagnitudeToFixed as Rn, roundToFixed as zn, roundToPrecision as Bn, split as Vn, stripLeadingZeros as Hn, toNum as Un, toString as Wn, unitFromQuantity as Gn, validateNumber as Kn, withPrettyUnitLabel as qn, withUnit as Jn } from "@oliasoft-open-source/units";
|
|
13
|
+
import { List as Yn } from "react-window";
|
|
14
|
+
import { SortableContext as Xn, useSortable as Zn, verticalListSortingStrategy as Qn } from "@dnd-kit/sortable";
|
|
15
|
+
import { CSS as $n } from "@dnd-kit/utilities";
|
|
16
|
+
import er from "rc-slider";
|
|
17
|
+
import tr from "memoize-one";
|
|
18
|
+
import nr from "react-fast-compare";
|
|
19
|
+
import { DndContext as rr, DragOverlay as ir, closestCenter as ar } from "@dnd-kit/core";
|
|
20
|
+
import { useVirtualizer as or } from "@tanstack/react-virtual";
|
|
21
|
+
import { SimplifyAP as sr } from "simplify-ts";
|
|
22
|
+
import cr from "papaparse";
|
|
23
|
+
import { Slide as lr, ToastContainer as ur, toast as dr } from "react-toastify";
|
|
24
|
+
import { isNil as fr } from "es-toolkit";
|
|
25
|
+
import { EditorContent as pr, useEditor as mr } from "@tiptap/react";
|
|
26
|
+
import hr from "@tiptap/starter-kit";
|
|
27
|
+
import gr from "@tiptap/extension-placeholder";
|
|
28
|
+
import { Markdown as _r } from "@tiptap/markdown";
|
|
29
|
+
import vr from "react-loading-skeleton";
|
|
29
30
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
30
|
-
import { DndProvider as
|
|
31
|
-
import { MultiBackend as
|
|
32
|
-
import
|
|
31
|
+
import { DndProvider as yr } from "react-dnd";
|
|
32
|
+
import { MultiBackend as br, Tree as xr, getBackendOptions as Sr } from "@minoru/react-dnd-treeview";
|
|
33
|
+
import Cr, { DiffMethod as wr } from "react-diff-viewer-continued";
|
|
33
34
|
//#region src/typings/common-types.ts
|
|
34
|
-
var
|
|
35
|
+
var Tr = /* @__PURE__ */ function(e) {
|
|
35
36
|
return e.TEXT = "Text", e.BUTTON = "Button", e.DROP_DOWN_BUTTON = "DropDownButton", e.COMPONENT = "Component", e;
|
|
36
37
|
}({}), V = /* @__PURE__ */ function(e) {
|
|
37
38
|
return e.FIRST = "first", e.MIDDLE = "middle", e.LAST = "last", e;
|
|
38
|
-
}({}),
|
|
39
|
+
}({}), Er = /* @__PURE__ */ function(e) {
|
|
39
40
|
return e.DANGER = "danger", e.RED = "red", e.WHITE = "white", e.SUCCESS = "success", e.GREEN = "green", e.MUTED = "muted", e;
|
|
40
|
-
}({}),
|
|
41
|
+
}({}), Dr = /* @__PURE__ */ function(e) {
|
|
41
42
|
return e.LEFT = "left", e.RIGHT = "right", e.CENTER = "center", e;
|
|
42
|
-
}({}),
|
|
43
|
+
}({}), Or = /* @__PURE__ */ function(e) {
|
|
43
44
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
44
45
|
}({}), H = /* @__PURE__ */ function(e) {
|
|
45
46
|
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;
|
|
46
|
-
}({}),
|
|
47
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
47
48
|
return e.UPPERCASE = "uppercase", e.LOWERCASE = "lowercase", e.CAPITALIZE = "capitalize", e.NONE = "none", e;
|
|
48
|
-
}({}),
|
|
49
|
+
}({}), Ar = /* @__PURE__ */ function(e) {
|
|
49
50
|
return e.DARK = "dark", e.WHITE = "white", e.LIGHT = "light", e.INHERIT = "inherit", e;
|
|
50
|
-
}({}),
|
|
51
|
+
}({}), jr = /* @__PURE__ */ function(e) {
|
|
51
52
|
return e.TEXT = "text", e.RADIO = "radio", e.CHECKBOX = "checkbox", e;
|
|
52
|
-
}({}),
|
|
53
|
+
}({}), Mr = {
|
|
53
54
|
chevron: "_chevron_dd6mn_1",
|
|
54
55
|
expanded: "_expanded_dd6mn_9"
|
|
55
|
-
}, U = e.createContext(!1),
|
|
56
|
+
}, U = e.createContext(!1), Nr = {
|
|
56
57
|
wrapper: "_wrapper_18jt2_1",
|
|
57
58
|
customSvg: "_customSvg_18jt2_8",
|
|
58
59
|
customPng: "_customPng_18jt2_11",
|
|
59
60
|
clickable: "_clickable_18jt2_16"
|
|
60
|
-
},
|
|
61
|
+
}, Pr = "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", 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='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", Ir = "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", 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='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", Rr = "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", zr = "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", Br = "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", Vr = ({ icon: e }) => {
|
|
61
62
|
switch (e) {
|
|
62
63
|
case "add":
|
|
63
64
|
case "plus": return /* @__PURE__ */ z(st, {});
|
|
@@ -96,7 +97,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
96
97
|
case "copy":
|
|
97
98
|
case "duplicate": return /* @__PURE__ */ z(fe, {});
|
|
98
99
|
case "code": return /* @__PURE__ */ z(de, {});
|
|
99
|
-
case "collapse": return /* @__PURE__ */ z(_, { src:
|
|
100
|
+
case "collapse": return /* @__PURE__ */ z(_, { src: Pr });
|
|
100
101
|
case "collapse all": return /* @__PURE__ */ z(Re, {});
|
|
101
102
|
case "company": return /* @__PURE__ */ z(M, {});
|
|
102
103
|
case "compare": return /* @__PURE__ */ z(ht, {});
|
|
@@ -134,15 +135,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
134
135
|
case "layout columns":
|
|
135
136
|
case "columns": return /* @__PURE__ */ z(Ie, {});
|
|
136
137
|
case "layout grid":
|
|
137
|
-
case "grid": return /* @__PURE__ */ z(_, { src:
|
|
138
|
+
case "grid": return /* @__PURE__ */ z(_, { src: Br });
|
|
138
139
|
case "layout rows":
|
|
139
140
|
case "rows": return /* @__PURE__ */ z(Le, {});
|
|
140
141
|
case "layout single":
|
|
141
|
-
case "square": return /* @__PURE__ */ z(_, { src:
|
|
142
|
-
case "layout 3 split top": return /* @__PURE__ */ z(_, { src:
|
|
143
|
-
case "layout 3 split bottom": return /* @__PURE__ */ z(_, { src:
|
|
144
|
-
case "layout 3 split left": return /* @__PURE__ */ z(_, { src:
|
|
145
|
-
case "layout 3 split right": return /* @__PURE__ */ z(_, { src:
|
|
142
|
+
case "square": return /* @__PURE__ */ z(_, { src: Fr });
|
|
143
|
+
case "layout 3 split top": return /* @__PURE__ */ z(_, { src: Ir });
|
|
144
|
+
case "layout 3 split bottom": return /* @__PURE__ */ z(_, { src: Lr });
|
|
145
|
+
case "layout 3 split left": return /* @__PURE__ */ z(_, { src: Rr });
|
|
146
|
+
case "layout 3 split right": return /* @__PURE__ */ z(_, { src: zr });
|
|
146
147
|
case "link": return /* @__PURE__ */ z(Be, {});
|
|
147
148
|
case "list":
|
|
148
149
|
case "legend":
|
|
@@ -220,26 +221,26 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
220
221
|
height: a || "auto"
|
|
221
222
|
};
|
|
222
223
|
return /* @__PURE__ */ z("div", {
|
|
223
|
-
className: g(
|
|
224
|
+
className: g(Nr.wrapper, (n || t) && !c ? Nr.clickable : ""),
|
|
224
225
|
style: l,
|
|
225
226
|
onClick: (e) => t && !c ? t(e) : void 0,
|
|
226
227
|
"data-testid": o,
|
|
227
228
|
children: i(e) ? e : typeof e == "string" && (e.includes(".svg") || e.includes("image/svg")) ? /* @__PURE__ */ z(_, {
|
|
228
|
-
className:
|
|
229
|
+
className: Nr.customSvg,
|
|
229
230
|
beforeInjection: (e) => {
|
|
230
231
|
a && (e.setAttribute("width", String(a)), e.setAttribute("height", String(a)));
|
|
231
232
|
},
|
|
232
233
|
src: e
|
|
233
234
|
}) : typeof e == "string" && (e.includes(".png") || e.includes("image/png")) ? /* @__PURE__ */ z("img", {
|
|
234
235
|
alt: "icon",
|
|
235
|
-
className:
|
|
236
|
+
className: Nr.customPng,
|
|
236
237
|
src: e
|
|
237
|
-
}) : typeof e == "string" ? /* @__PURE__ */ z(
|
|
238
|
+
}) : typeof e == "string" ? /* @__PURE__ */ z(Vr, { icon: e }) : null
|
|
238
239
|
});
|
|
239
|
-
},
|
|
240
|
-
className: g(
|
|
240
|
+
}, Hr = ({ expanded: e }) => /* @__PURE__ */ z("span", {
|
|
241
|
+
className: g(Mr.chevron, e ? Mr.expanded : ""),
|
|
241
242
|
children: /* @__PURE__ */ z(W, { icon: H.CHEVRON_RIGHT })
|
|
242
|
-
}),
|
|
243
|
+
}), Ur = {
|
|
243
244
|
accordion: "_accordion_15p8j_1",
|
|
244
245
|
accordionHeader: "_accordionHeader_15p8j_5",
|
|
245
246
|
heading: "_heading_15p8j_9",
|
|
@@ -249,58 +250,58 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
249
250
|
expanded: "_expanded_15p8j_36",
|
|
250
251
|
padding: "_padding_15p8j_44",
|
|
251
252
|
squareBottom: "_squareBottom_15p8j_47"
|
|
252
|
-
},
|
|
253
|
+
}, Wr = {
|
|
253
254
|
collapse: "_collapse_1m1n2_5",
|
|
254
255
|
enter: "_enter_1m1n2_9",
|
|
255
256
|
enterActive: "_enterActive_1m1n2_12",
|
|
256
257
|
exit: "_exit_1m1n2_15",
|
|
257
258
|
exitActive: "_exitActive_1m1n2_18",
|
|
258
259
|
collapseInner: "_collapseInner_1m1n2_21"
|
|
259
|
-
},
|
|
260
|
+
}, Gr = ({ children: e, expanded: t }) => {
|
|
260
261
|
let n = p(null);
|
|
261
262
|
return /* @__PURE__ */ z(jt, {
|
|
262
263
|
nodeRef: n,
|
|
263
264
|
in: t,
|
|
264
265
|
timeout: 100,
|
|
265
266
|
classNames: {
|
|
266
|
-
enter:
|
|
267
|
-
enterActive:
|
|
268
|
-
exit:
|
|
269
|
-
exitActive:
|
|
267
|
+
enter: Wr.enter,
|
|
268
|
+
enterActive: Wr.enterActive,
|
|
269
|
+
exit: Wr.exit,
|
|
270
|
+
exitActive: Wr.exitActive
|
|
270
271
|
},
|
|
271
272
|
unmountOnExit: !0,
|
|
272
273
|
children: /* @__PURE__ */ z("div", {
|
|
273
274
|
ref: n,
|
|
274
|
-
className:
|
|
275
|
+
className: Wr.collapse,
|
|
275
276
|
children: /* @__PURE__ */ z("div", {
|
|
276
|
-
className:
|
|
277
|
+
className: Wr.collapseInner,
|
|
277
278
|
children: /* @__PURE__ */ z("div", { children: t && e })
|
|
278
279
|
})
|
|
279
280
|
})
|
|
280
281
|
});
|
|
281
|
-
},
|
|
282
|
+
}, Kr = ({ heading: e, expanded: t = !1, bordered: n = !1, padding: r = !0, children: i, squareBottom: a = !1, onClick: o, testId: s }) => {
|
|
282
283
|
let c = t && !!i;
|
|
283
284
|
return /* @__PURE__ */ B("div", {
|
|
284
|
-
className: g(
|
|
285
|
+
className: g(Ur.accordion, n ? Ur.bordered : "", t ? Ur.expanded : "", a ? Ur.squareBottom : ""),
|
|
285
286
|
children: [/* @__PURE__ */ B("div", {
|
|
286
|
-
className: g(
|
|
287
|
+
className: g(Ur.accordionHeader, o ? Ur.clickable : ""),
|
|
287
288
|
onClick: o,
|
|
288
289
|
"data-testid": s,
|
|
289
|
-
children: [/* @__PURE__ */ z(
|
|
290
|
-
className:
|
|
290
|
+
children: [/* @__PURE__ */ z(Hr, { expanded: t }), /* @__PURE__ */ z("div", {
|
|
291
|
+
className: Ur.heading,
|
|
291
292
|
children: e
|
|
292
293
|
})]
|
|
293
|
-
}), /* @__PURE__ */ z(
|
|
294
|
+
}), /* @__PURE__ */ z(Gr, {
|
|
294
295
|
expanded: c,
|
|
295
296
|
children: /* @__PURE__ */ z("div", {
|
|
296
|
-
className: g(
|
|
297
|
+
className: g(Ur.accordionContent, n && r ? Ur.padding : ""),
|
|
297
298
|
children: i
|
|
298
299
|
})
|
|
299
300
|
})]
|
|
300
301
|
});
|
|
301
|
-
},
|
|
302
|
+
}, qr = ({ heading: t, bordered: n, padding: r, expanded: i = !1, children: a, testId: o }) => {
|
|
302
303
|
let [s, c] = e.useState(i);
|
|
303
|
-
return /* @__PURE__ */ z(
|
|
304
|
+
return /* @__PURE__ */ z(Kr, {
|
|
304
305
|
heading: t,
|
|
305
306
|
bordered: n,
|
|
306
307
|
padding: r,
|
|
@@ -311,7 +312,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
311
312
|
testId: o,
|
|
312
313
|
children: a
|
|
313
314
|
});
|
|
314
|
-
},
|
|
315
|
+
}, Jr = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, padding: i = !0, children: a, onClick: o, squareBottom: s = !1, testId: c }) => z(n ? qr : Kr, {
|
|
315
316
|
heading: e,
|
|
316
317
|
expanded: t,
|
|
317
318
|
bordered: r,
|
|
@@ -320,7 +321,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
320
321
|
onClick: o,
|
|
321
322
|
testId: c,
|
|
322
323
|
children: a
|
|
323
|
-
}),
|
|
324
|
+
}), Yr = {
|
|
324
325
|
checkbox: "_checkbox_1ezew_1",
|
|
325
326
|
noLabel: "_noLabel_1ezew_17",
|
|
326
327
|
small: "_small_1ezew_20",
|
|
@@ -329,9 +330,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
329
330
|
noMargin: "_noMargin_1ezew_98",
|
|
330
331
|
isInTable: "_isInTable_1ezew_101",
|
|
331
332
|
helpIconEnabled: "_helpIconEnabled_1ezew_104"
|
|
332
|
-
},
|
|
333
|
+
}, Xr = ({ children: e }) => Kt() === null ? /* @__PURE__ */ z(Ft, { children: e }) : /* @__PURE__ */ z(R, { children: e }), Zr = "bottom-start", Qr = (e, t) => {
|
|
333
334
|
t((t) => t && t.width === e.width && t.height === e.height && t.x === e.x && t.y === e.y ? t : e);
|
|
334
|
-
},
|
|
335
|
+
}, $r = (e = Zr) => e === "center" ? "bottom" : e.replace("-center", ""), ei = ({ arrowOffset: e, arrowRef: t, containerOffset: n, fallbackPlacements: r, matchReferenceWidth: i, triggerOffset: a }) => [
|
|
335
336
|
zt(a),
|
|
336
337
|
Rt({
|
|
337
338
|
fallbackPlacements: r,
|
|
@@ -348,9 +349,9 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
348
349
|
element: t,
|
|
349
350
|
padding: e
|
|
350
351
|
})
|
|
351
|
-
],
|
|
352
|
+
], ti = ({ isOpen: e, arrowOffset: t = 0, clientPoint: n, containerOffset: r = 10, hover: i, matchReferenceWidth: a = !1, placement: s = Zr, possiblePlacements: c, triggerOffset: l = 0, overflowContainer: u = !0, onOpenChange: f, onOutsideClick: h }) => {
|
|
352
353
|
var g, _, v, y, b, x, S;
|
|
353
|
-
let C = p(null), [w, T] = m(null), E = Gt(), D =
|
|
354
|
+
let C = p(null), [w, T] = m(null), E = Gt(), D = $r(s), O = d(() => c == null ? void 0 : c.map($r), [c]), k = d(() => ei({
|
|
354
355
|
arrowOffset: t,
|
|
355
356
|
arrowRef: C,
|
|
356
357
|
containerOffset: r,
|
|
@@ -363,8 +364,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
363
364
|
O,
|
|
364
365
|
a,
|
|
365
366
|
l
|
|
366
|
-
]), A = o((e, t, n) => (
|
|
367
|
-
|
|
367
|
+
]), A = o((e, t, n) => (Qr(e.getBoundingClientRect(), T), Lt(e, t, () => {
|
|
368
|
+
Qr(e.getBoundingClientRect(), T), n();
|
|
368
369
|
})), []), { context: j, refs: M, floatingStyles: N, isPositioned: P, x: F, y: ee } = Wt({
|
|
369
370
|
open: e,
|
|
370
371
|
onOpenChange: (e, t, n) => {
|
|
@@ -378,7 +379,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
378
379
|
middleware: k
|
|
379
380
|
}), I = o((e) => {
|
|
380
381
|
if (M.setReference(e), e) {
|
|
381
|
-
|
|
382
|
+
Qr(e.getBoundingClientRect(), T);
|
|
382
383
|
return;
|
|
383
384
|
}
|
|
384
385
|
T(null);
|
|
@@ -436,7 +437,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
436
437
|
triggerBounds: w,
|
|
437
438
|
triggerProps: ie
|
|
438
439
|
};
|
|
439
|
-
},
|
|
440
|
+
}, ni = () => {
|
|
440
441
|
let [e, t] = m(null);
|
|
441
442
|
return {
|
|
442
443
|
clientPoint: e,
|
|
@@ -449,12 +450,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
449
450
|
hasClientPoint: !!e,
|
|
450
451
|
resetClientPoint: () => t(null)
|
|
451
452
|
};
|
|
452
|
-
},
|
|
453
|
+
}, ri = {
|
|
453
454
|
tooltip: "_tooltip_o1fhy_1",
|
|
454
455
|
error: "_error_o1fhy_14",
|
|
455
456
|
warning: "_warning_o1fhy_18"
|
|
456
|
-
},
|
|
457
|
-
className: g(
|
|
457
|
+
}, ii = ({ 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__ */ B("div", {
|
|
458
|
+
className: g(ri.tooltip, t ? ri.error : n ? ri.warning : ""),
|
|
458
459
|
...o,
|
|
459
460
|
children: [/* @__PURE__ */ z("div", {
|
|
460
461
|
style: {
|
|
@@ -471,13 +472,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
471
472
|
tipRadius: 1,
|
|
472
473
|
fill: "inherit"
|
|
473
474
|
})]
|
|
474
|
-
}),
|
|
475
|
+
}), ai = ({ children: e, text: t = "", error: n = !1, placement: r = "top-center", possiblePlacements: a = [
|
|
475
476
|
"top-center",
|
|
476
477
|
"left-center",
|
|
477
478
|
"bottom-center",
|
|
478
479
|
"right-center"
|
|
479
480
|
], 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 }) => {
|
|
480
|
-
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [_, v] = m(!1), y = g ? h ? !0 : _ : !1, { renderLayer: b, triggerProps: x, layerProps: S, arrowProps: C } =
|
|
481
|
+
let g = o && (i(t) || typeof t == "string" && t.length > 0 || typeof t == "number"), [_, v] = m(!1), y = g ? h ? !0 : _ : !1, { renderLayer: b, triggerProps: x, layerProps: S, arrowProps: C } = ti({
|
|
481
482
|
isOpen: y,
|
|
482
483
|
hover: {
|
|
483
484
|
enabled: g && !h,
|
|
@@ -497,7 +498,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
497
498
|
var t;
|
|
498
499
|
(t = x.onMouseOver) == null || t.call(x, e), g && !h && !e.nativeEvent.isTrusted && v(!0);
|
|
499
500
|
};
|
|
500
|
-
return /* @__PURE__ */ B(R, { children: [y && b(/* @__PURE__ */ z(
|
|
501
|
+
return /* @__PURE__ */ B(R, { children: [y && b(/* @__PURE__ */ z(ii, {
|
|
501
502
|
text: t,
|
|
502
503
|
error: n,
|
|
503
504
|
warning: s,
|
|
@@ -516,32 +517,32 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
516
517
|
onMouseOver: T,
|
|
517
518
|
children: e
|
|
518
519
|
})] });
|
|
519
|
-
}, G = (e) => /* @__PURE__ */ z(
|
|
520
|
+
}, G = (e) => /* @__PURE__ */ z(Xr, { children: /* @__PURE__ */ z(ai, { ...e }) }), oi = {
|
|
520
521
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
521
522
|
active: "_active_hd0z2_9",
|
|
522
523
|
clickable: "_clickable_hd0z2_12"
|
|
523
|
-
},
|
|
524
|
+
}, si = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ z(G, {
|
|
524
525
|
text: t,
|
|
525
526
|
display: "inline-flex",
|
|
526
527
|
maxWidth: n,
|
|
527
528
|
children: e
|
|
528
|
-
}) : /* @__PURE__ */ z(R, { children: e }),
|
|
529
|
-
className: g(
|
|
529
|
+
}) : /* @__PURE__ */ z(R, { children: e }), ci = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ z("div", {
|
|
530
|
+
className: g(oi.helpIcon, t ? oi.clickable : "", r ? oi.active : ""),
|
|
530
531
|
onClick: (e) => {
|
|
531
532
|
t && (e.stopPropagation(), t());
|
|
532
533
|
},
|
|
533
534
|
"data-testid": a,
|
|
534
|
-
children: /* @__PURE__ */ z(
|
|
535
|
+
children: /* @__PURE__ */ z(si, {
|
|
535
536
|
text: e,
|
|
536
537
|
maxWidth: i,
|
|
537
538
|
children: /* @__PURE__ */ z(W, { icon: n })
|
|
538
539
|
})
|
|
539
|
-
}),
|
|
540
|
+
}), li = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: l = "", disabled: u = !1, small: d = !1, onChange: f, testId: m, helpText: h, onClickHelp: _, textTransform: v = kr.CAPITALIZE }) => {
|
|
540
541
|
let y = s(U), b = h || _, x = u || y, S = p(null);
|
|
541
542
|
return c(() => {
|
|
542
543
|
S.current && (S.current.indeterminate = a);
|
|
543
544
|
}, [a]), /* @__PURE__ */ B("div", {
|
|
544
|
-
className: g(
|
|
545
|
+
className: g(Yr.checkbox, e && Yr.noMargin, n && Yr.isInTable, x && Yr.disabled, d && Yr.small, !l && Yr.noLabel),
|
|
545
546
|
"data-ix": t,
|
|
546
547
|
onClick: (e) => {
|
|
547
548
|
if (!x) {
|
|
@@ -571,65 +572,65 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
571
572
|
htmlFor: o,
|
|
572
573
|
style: { textTransform: v },
|
|
573
574
|
children: [/* @__PURE__ */ z("span", {
|
|
574
|
-
className:
|
|
575
|
+
className: Yr.checkmark,
|
|
575
576
|
children: /* @__PURE__ */ z(W, { icon: H.CHECK })
|
|
576
577
|
}), l]
|
|
577
578
|
}),
|
|
578
579
|
b && /* @__PURE__ */ z("div", {
|
|
579
|
-
className:
|
|
580
|
+
className: Yr.helpIconEnabled,
|
|
580
581
|
onClick: _,
|
|
581
|
-
children: /* @__PURE__ */ z(
|
|
582
|
+
children: /* @__PURE__ */ z(ci, { text: h })
|
|
582
583
|
})
|
|
583
584
|
]
|
|
584
585
|
});
|
|
585
|
-
},
|
|
586
|
+
}, ui = {
|
|
586
587
|
bordered: "_bordered_1cgsf_1",
|
|
587
588
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
588
589
|
padding: "_padding_1cgsf_13",
|
|
589
590
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
590
|
-
},
|
|
591
|
+
}, di = /* @__PURE__ */ function(e) {
|
|
591
592
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
592
|
-
}({}),
|
|
593
|
+
}({}), fi = (e, t) => {
|
|
593
594
|
switch (t.type) {
|
|
594
|
-
case
|
|
595
|
+
case di.TOGGLE_ACCORDION: return {
|
|
595
596
|
...e,
|
|
596
597
|
accordionExpanded: !e.accordionExpanded
|
|
597
598
|
};
|
|
598
|
-
case
|
|
599
|
+
case di.TOGGLE_ENABLE: return {
|
|
599
600
|
...e,
|
|
600
601
|
defaultEnabled: !e.defaultEnabled,
|
|
601
602
|
accordionExpanded: e.defaultEnabled
|
|
602
603
|
};
|
|
603
604
|
default: return e;
|
|
604
605
|
}
|
|
605
|
-
},
|
|
606
|
-
let [s, c] = f(
|
|
606
|
+
}, pi = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
607
|
+
let [s, c] = f(fi, {
|
|
607
608
|
accordionExpanded: r,
|
|
608
609
|
defaultEnabled: i
|
|
609
610
|
}), l = /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z("div", {
|
|
610
|
-
className:
|
|
611
|
-
children: /* @__PURE__ */ z(
|
|
611
|
+
className: ui.checkboxWrapper,
|
|
612
|
+
children: /* @__PURE__ */ z(li, {
|
|
612
613
|
label: t,
|
|
613
614
|
onChange: (e) => {
|
|
614
|
-
c({ type:
|
|
615
|
+
c({ type: di.TOGGLE_ENABLE }), n == null || n(e);
|
|
615
616
|
},
|
|
616
617
|
checked: s.defaultEnabled
|
|
617
618
|
})
|
|
618
619
|
}), s.accordionExpanded && /* @__PURE__ */ z("div", {
|
|
619
|
-
className:
|
|
620
|
+
className: ui.contentWrapper,
|
|
620
621
|
children: o
|
|
621
622
|
})] });
|
|
622
|
-
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(
|
|
623
|
+
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Jr, {
|
|
623
624
|
heading: e,
|
|
624
625
|
bordered: !0,
|
|
625
626
|
expanded: s.accordionExpanded,
|
|
626
627
|
squareBottom: !0,
|
|
627
|
-
onClick: () => c({ type:
|
|
628
|
+
onClick: () => c({ type: di.TOGGLE_ACCORDION })
|
|
628
629
|
}), /* @__PURE__ */ z("div", {
|
|
629
|
-
className: g(
|
|
630
|
+
className: g(ui.bordered, a ? ui.padding : ""),
|
|
630
631
|
children: l
|
|
631
632
|
})] });
|
|
632
|
-
},
|
|
633
|
+
}, mi = {
|
|
633
634
|
inputInTable: "_inputInTable_1isig_1",
|
|
634
635
|
inputHover: "_inputHover_1isig_13",
|
|
635
636
|
inputFocus: "_inputFocus_1isig_18",
|
|
@@ -655,45 +656,45 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
655
656
|
groupOrderFirst: "_groupOrderFirst_1isig_344",
|
|
656
657
|
groupOrderMiddle: "_groupOrderMiddle_1isig_345",
|
|
657
658
|
groupOrderLast: "_groupOrderLast_1isig_346"
|
|
658
|
-
},
|
|
659
|
+
}, hi = { spinner: "_spinner_156m4_1" }, gi = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
|
|
659
660
|
let i = t ? "var(--color-text-primary)" : n ? "var(--color-text-muted)" : "white", a = e ? "var(--font-size)" : r ? "var(--font-size-xs)" : "var(--size)";
|
|
660
661
|
return /* @__PURE__ */ z("div", {
|
|
661
|
-
className:
|
|
662
|
+
className: hi.spinner,
|
|
662
663
|
style: {
|
|
663
664
|
color: i,
|
|
664
665
|
fontSize: a
|
|
665
666
|
}
|
|
666
667
|
});
|
|
667
|
-
},
|
|
668
|
+
}, _i = /* @__PURE__ */ function(e) {
|
|
668
669
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
669
|
-
}({}),
|
|
670
|
+
}({}), vi = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ z(G, {
|
|
670
671
|
text: t,
|
|
671
672
|
display: "inline-flex",
|
|
672
673
|
children: e
|
|
673
|
-
}) : /* @__PURE__ */ z(R, { 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: v = "", type: y =
|
|
674
|
+
}) : /* @__PURE__ */ z(R, { 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: v = "", type: y = _i.BUTTON, onClick: b = () => {}, error: x, warning: S, testId: C, tooltip: w, inverted: T = !1, component: E = "button", url: D, tabIndex: O }) => {
|
|
674
675
|
let k = s(U), A = (() => {
|
|
675
676
|
if (n) switch (n) {
|
|
676
|
-
case
|
|
677
|
-
case
|
|
678
|
-
case
|
|
679
|
-
case
|
|
680
|
-
case
|
|
681
|
-
default: return
|
|
677
|
+
case Er.DANGER:
|
|
678
|
+
case Er.RED: return mi.red;
|
|
679
|
+
case Er.SUCCESS:
|
|
680
|
+
case Er.GREEN: return mi.green;
|
|
681
|
+
case Er.MUTED: return mi.muted;
|
|
682
|
+
default: return mi.orange;
|
|
682
683
|
}
|
|
683
684
|
return "";
|
|
684
685
|
})(), j = (() => {
|
|
685
686
|
if (a) switch (a) {
|
|
686
|
-
case V.FIRST: return
|
|
687
|
-
case V.LAST: return
|
|
688
|
-
default: return
|
|
687
|
+
case V.FIRST: return mi.groupOrderFirst;
|
|
688
|
+
case V.LAST: return mi.groupOrderLast;
|
|
689
|
+
default: return mi.groupOrderMiddle;
|
|
689
690
|
}
|
|
690
691
|
return "";
|
|
691
692
|
})(), M = r || k && !i;
|
|
692
|
-
return /* @__PURE__ */ z(
|
|
693
|
+
return /* @__PURE__ */ z(vi, {
|
|
693
694
|
tooltip: w,
|
|
694
695
|
children: /* @__PURE__ */ B(E, {
|
|
695
|
-
type: y ===
|
|
696
|
-
className: g(
|
|
696
|
+
type: y === _i.SUBMIT ? _i.SUBMIT : _i.BUTTON,
|
|
697
|
+
className: g(mi.button, e ? mi.active : "", t ? mi.basic : "", A, M ? mi.disabled : "", (o || u) && !l ? mi.iconOnly : "", T ? mi.inverted : "", j, f ? mi.pill : "", p ? mi.round : "", m ? mi.small : "", h),
|
|
697
698
|
disabled: M,
|
|
698
699
|
name: d == null ? "" : d,
|
|
699
700
|
onClick: b,
|
|
@@ -706,12 +707,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
706
707
|
tabIndex: O,
|
|
707
708
|
children: [
|
|
708
709
|
o && /* @__PURE__ */ z("span", {
|
|
709
|
-
className:
|
|
710
|
+
className: mi.icon,
|
|
710
711
|
children: /* @__PURE__ */ z(W, { icon: o })
|
|
711
712
|
}),
|
|
712
713
|
u && /* @__PURE__ */ z("span", {
|
|
713
|
-
className:
|
|
714
|
-
children: /* @__PURE__ */ z(
|
|
714
|
+
className: mi.icon,
|
|
715
|
+
children: /* @__PURE__ */ z(gi, {
|
|
715
716
|
small: !m,
|
|
716
717
|
tiny: m,
|
|
717
718
|
dark: !n && !t,
|
|
@@ -720,13 +721,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
720
721
|
}),
|
|
721
722
|
l,
|
|
722
723
|
c && /* @__PURE__ */ z("span", {
|
|
723
|
-
className:
|
|
724
|
+
className: mi.rightIcon,
|
|
724
725
|
children: /* @__PURE__ */ z(W, { icon: c })
|
|
725
726
|
})
|
|
726
727
|
]
|
|
727
728
|
})
|
|
728
729
|
});
|
|
729
|
-
},
|
|
730
|
+
}, yi = {
|
|
730
731
|
actions: "_actions_1t7vd_1",
|
|
731
732
|
childComponent: "_childComponent_1t7vd_11",
|
|
732
733
|
actionComponentContainer: "_actionComponentContainer_1t7vd_14",
|
|
@@ -761,7 +762,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
761
762
|
component: "_component_17ntv_199",
|
|
762
763
|
right: "_right_17ntv_205",
|
|
763
764
|
actions: "_actions_17ntv_210"
|
|
764
|
-
},
|
|
765
|
+
}, bi = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ B("div", {
|
|
765
766
|
onClick: (e) => e.stopPropagation(),
|
|
766
767
|
className: q.heading,
|
|
767
768
|
"data-testid": r,
|
|
@@ -770,7 +771,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
770
771
|
onClick: t,
|
|
771
772
|
children: /* @__PURE__ */ z(W, { icon: n })
|
|
772
773
|
})]
|
|
773
|
-
}),
|
|
774
|
+
}), xi = () => /* @__PURE__ */ z("hr", { className: q.divider }), Si = ({ 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 = pn, testId: h, component: _ = "a" }) => /* @__PURE__ */ B(_, {
|
|
774
775
|
href: n,
|
|
775
776
|
to: n,
|
|
776
777
|
className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
|
|
@@ -829,29 +830,29 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
829
830
|
children: /* @__PURE__ */ z(W, { icon: H.CHECK })
|
|
830
831
|
}), !!(e != null && e.length) && /* @__PURE__ */ z("div", {
|
|
831
832
|
className: q.actions,
|
|
832
|
-
children: /* @__PURE__ */ z(
|
|
833
|
+
children: /* @__PURE__ */ z(Xi, { actions: e })
|
|
833
834
|
})]
|
|
834
835
|
})
|
|
835
836
|
]
|
|
836
|
-
}),
|
|
837
|
+
}), Ci = /* @__PURE__ */ function(e) {
|
|
837
838
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
|
|
838
|
-
}({}),
|
|
839
|
+
}({}), wi = /* @__PURE__ */ function(e) {
|
|
839
840
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
840
|
-
}({}),
|
|
841
|
+
}({}), Ti = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
|
|
841
842
|
let o = s(U);
|
|
842
843
|
switch (e.type) {
|
|
843
|
-
case
|
|
844
|
+
case Ci.HEADING:
|
|
844
845
|
var c;
|
|
845
|
-
return /* @__PURE__ */ z(
|
|
846
|
+
return /* @__PURE__ */ z(bi, {
|
|
846
847
|
label: (c = e == null ? void 0 : e.label) == null ? "" : c,
|
|
847
848
|
onClick: e.onClick,
|
|
848
849
|
icon: e.icon,
|
|
849
850
|
testId: e.testId
|
|
850
851
|
});
|
|
851
|
-
case
|
|
852
|
-
case
|
|
852
|
+
case Ci.DIVIDER: return /* @__PURE__ */ z(xi, {});
|
|
853
|
+
case Ci.OPTION:
|
|
853
854
|
var l;
|
|
854
|
-
return /* @__PURE__ */ z(
|
|
855
|
+
return /* @__PURE__ */ z(Si, {
|
|
855
856
|
actions: e == null ? void 0 : e.actions,
|
|
856
857
|
label: (l = e == null ? void 0 : e.label) == null ? "" : l,
|
|
857
858
|
url: e == null ? void 0 : e.url,
|
|
@@ -870,10 +871,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
870
871
|
testId: e == null ? void 0 : e.testId,
|
|
871
872
|
component: e == null ? void 0 : e.component
|
|
872
873
|
});
|
|
873
|
-
case
|
|
874
|
+
case Ci.MENU:
|
|
874
875
|
var u;
|
|
875
876
|
let s = !!(!(e == null || (u = e.menu) == null || (u = u.sections) == null) && u.find((e) => e == null ? void 0 : e.selected));
|
|
876
|
-
return /* @__PURE__ */ z(
|
|
877
|
+
return /* @__PURE__ */ z(Ki, {
|
|
877
878
|
menu: e.menu,
|
|
878
879
|
selected: s,
|
|
879
880
|
title: e.title,
|
|
@@ -887,7 +888,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
887
888
|
});
|
|
888
889
|
default: return null;
|
|
889
890
|
}
|
|
890
|
-
},
|
|
891
|
+
}, Ei = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, Di = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), Oi = (e) => `${e}.close`.replace(/^\./, ""), ki = (e, t) => en(e, Ei(t), []), Ai = (e, t, n) => mn(e, Oi(t), n), ji = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
|
|
891
892
|
var d, f;
|
|
892
893
|
if (i(e)) return /* @__PURE__ */ z(R, { children: e });
|
|
893
894
|
let [p, h] = m(!(l != null && l.visible)), _ = e, v = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
|
|
@@ -895,7 +896,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
895
896
|
closeOnOptionClick: r,
|
|
896
897
|
visible: !0
|
|
897
898
|
}))) == null ? [] : d, y = _.length > 4 ? [{
|
|
898
|
-
type:
|
|
899
|
+
type: Ci.OPTION,
|
|
899
900
|
label: p ? (l == null ? void 0 : l.showLessTitle) || "Show less" : (l == null ? void 0 : l.showAllTitle) || "Show all",
|
|
900
901
|
onClick: () => h(!p),
|
|
901
902
|
visible: !0,
|
|
@@ -915,31 +916,31 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
915
916
|
maxHeight: c
|
|
916
917
|
},
|
|
917
918
|
"data-testid": u,
|
|
918
|
-
children: /* @__PURE__ */ z("ul", { children: b.map((e, t) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z(
|
|
919
|
+
children: /* @__PURE__ */ z("ul", { children: b.map((e, t) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z(Ti, {
|
|
919
920
|
section: e,
|
|
920
921
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
921
922
|
close: a,
|
|
922
923
|
tree: o,
|
|
923
|
-
path:
|
|
924
|
+
path: Di(s, t),
|
|
924
925
|
maxHeight: c
|
|
925
926
|
}) }, t)) })
|
|
926
927
|
});
|
|
927
|
-
},
|
|
928
|
+
}, Mi = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), J = (e) => dn(e) || cn(e) || i(e), Ni = (e) => Array.isArray(e) ? "array" : typeof e, Pi = {
|
|
928
929
|
wrapper: "_wrapper_14vly_1",
|
|
929
930
|
badge: "_badge_14vly_5",
|
|
930
931
|
label: "_label_14vly_11",
|
|
931
932
|
small: "_small_14vly_23",
|
|
932
933
|
dot: "_dot_14vly_27",
|
|
933
934
|
hasChildren: "_hasChildren_14vly_33"
|
|
934
|
-
},
|
|
935
|
+
}, Fi = (e) => {
|
|
935
936
|
let t = e.substring(1), n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n >> 0 & 255;
|
|
936
937
|
return .2126 * r + .7152 * i + .0722 * a < 128;
|
|
937
|
-
},
|
|
938
|
-
let s = !(r === null && i === !1), c = n || (
|
|
938
|
+
}, Ii = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
|
|
939
|
+
let s = !(r === null && i === !1), c = n || (Fi(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
|
|
939
940
|
return /* @__PURE__ */ B("div", {
|
|
940
|
-
className:
|
|
941
|
+
className: Pi.wrapper,
|
|
941
942
|
children: [s && /* @__PURE__ */ z("sup", {
|
|
942
|
-
className: g(
|
|
943
|
+
className: g(Pi.badge, r === null ? Pi.dot : Pi.label, o ? Pi.small : "", e ? Pi.hasChildren : ""),
|
|
943
944
|
style: {
|
|
944
945
|
background: t || void 0,
|
|
945
946
|
margin: a || void 0,
|
|
@@ -948,8 +949,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
948
949
|
children: r
|
|
949
950
|
}), e]
|
|
950
951
|
});
|
|
951
|
-
},
|
|
952
|
-
let p = s(U), m = e ===
|
|
952
|
+
}, Li = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
|
|
953
|
+
let p = s(U), m = e === Tr.DROP_DOWN_BUTTON;
|
|
953
954
|
return /* @__PURE__ */ z("div", {
|
|
954
955
|
className: g(q.trigger, a || p ? q.disabled : null),
|
|
955
956
|
style: { width: i },
|
|
@@ -972,7 +973,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
972
973
|
tabIndex: f
|
|
973
974
|
})
|
|
974
975
|
});
|
|
975
|
-
},
|
|
976
|
+
}, Ri = ({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a }) => {
|
|
976
977
|
let o;
|
|
977
978
|
return t ? o = t : (typeof e == "string" || typeof e == "number") && (o = String(e)), /* @__PURE__ */ B("div", {
|
|
978
979
|
className: g(q.trigger, r ? q.disabled : null, i ? q.active : null, a ? q == null ? void 0 : q.selected : null),
|
|
@@ -980,26 +981,26 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
980
981
|
className: q.label,
|
|
981
982
|
title: o,
|
|
982
983
|
children: e
|
|
983
|
-
}), n && n ===
|
|
984
|
+
}), n && n === wi.RIGHT ? /* @__PURE__ */ z("span", {
|
|
984
985
|
className: q.arrow,
|
|
985
986
|
children: /* @__PURE__ */ z(W, { icon: H.CHEVRON_RIGHT })
|
|
986
|
-
}) : n && n ===
|
|
987
|
+
}) : n && n === wi.DOWN ? /* @__PURE__ */ z("span", {
|
|
987
988
|
className: q.arrow,
|
|
988
989
|
children: /* @__PURE__ */ z(W, { icon: H.CHEVRON_DOWN })
|
|
989
990
|
}) : null]
|
|
990
991
|
});
|
|
991
|
-
},
|
|
992
|
+
}, zi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ z("div", {
|
|
992
993
|
className: g(q.component, t ? q.disabled : null),
|
|
993
994
|
"data-testid": n,
|
|
994
995
|
children: e
|
|
995
|
-
}),
|
|
996
|
+
}), Bi = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ z(R, { children: r }) : /* @__PURE__ */ z(G, {
|
|
996
997
|
error: !!t,
|
|
997
998
|
warning: !!n,
|
|
998
999
|
text: e || t || n,
|
|
999
1000
|
display: "inline-flex",
|
|
1000
1001
|
children: r
|
|
1001
|
-
}),
|
|
1002
|
-
let T = o ===
|
|
1002
|
+
}), Vi = 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: v, warning: y, tooltip: b, testId: x, selected: S, tabIndex: C }, w) => {
|
|
1003
|
+
let T = o === Tr.BUTTON || o === Tr.DROP_DOWN_BUTTON ? /* @__PURE__ */ z(Li, {
|
|
1003
1004
|
trigger: o,
|
|
1004
1005
|
label: s == null ? "" : s,
|
|
1005
1006
|
colored: u,
|
|
@@ -1012,17 +1013,17 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1012
1013
|
warning: y,
|
|
1013
1014
|
active: _ || e,
|
|
1014
1015
|
tabIndex: C
|
|
1015
|
-
}) : o ===
|
|
1016
|
+
}) : o === Tr.TEXT ? /* @__PURE__ */ z(Ri, {
|
|
1016
1017
|
label: s == null ? "" : s,
|
|
1017
1018
|
title: c,
|
|
1018
1019
|
disabled: t,
|
|
1019
|
-
carat: p ? void 0 : f ?
|
|
1020
|
+
carat: p ? void 0 : f ? wi.RIGHT : wi.DOWN,
|
|
1020
1021
|
isOpen: _,
|
|
1021
1022
|
selected: S
|
|
1022
|
-
}) : o ===
|
|
1023
|
+
}) : o === Tr.COMPONENT ? /* @__PURE__ */ z(zi, {
|
|
1023
1024
|
component: m,
|
|
1024
1025
|
disabled: t
|
|
1025
|
-
}) : null, E = !f && (n || r) ? /* @__PURE__ */ z(
|
|
1026
|
+
}) : null, E = !f && (n || r) ? /* @__PURE__ */ z(Ii, {
|
|
1026
1027
|
title: n,
|
|
1027
1028
|
dot: r,
|
|
1028
1029
|
small: !r,
|
|
@@ -1041,32 +1042,32 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1041
1042
|
"data-error": v || null,
|
|
1042
1043
|
"data-warning": y || null,
|
|
1043
1044
|
"data-testid": x,
|
|
1044
|
-
children: /* @__PURE__ */ z(
|
|
1045
|
+
children: /* @__PURE__ */ z(Bi, {
|
|
1045
1046
|
tooltip: b,
|
|
1046
1047
|
error: v,
|
|
1047
1048
|
warning: y,
|
|
1048
1049
|
children: E
|
|
1049
1050
|
})
|
|
1050
1051
|
});
|
|
1051
|
-
}),
|
|
1052
|
+
}), Hi = (e) => {
|
|
1052
1053
|
let { sections: t } = e;
|
|
1053
1054
|
return !i(t) && (!Array.isArray(t) || t.every((e) => rn(e)));
|
|
1054
|
-
},
|
|
1055
|
-
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } =
|
|
1055
|
+
}, Ui = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
|
|
1056
|
+
let { clientPoint: d, hasClientPoint: f, resetClientPoint: p, handleMouseEvent: m } = ni(), h = p, g = f, { layerProps: _, renderLayer: v, triggerProps: y } = ti({
|
|
1056
1057
|
isOpen: g,
|
|
1057
1058
|
clientPoint: {
|
|
1058
1059
|
enabled: f,
|
|
1059
1060
|
x: d == null ? void 0 : d.x,
|
|
1060
1061
|
y: d == null ? void 0 : d.y
|
|
1061
1062
|
},
|
|
1062
|
-
...
|
|
1063
|
+
...Mi(n),
|
|
1063
1064
|
possiblePlacements: r,
|
|
1064
1065
|
onOutsideClick: h,
|
|
1065
1066
|
overflowContainer: c
|
|
1066
1067
|
});
|
|
1067
1068
|
return [g && v(/* @__PURE__ */ z("div", {
|
|
1068
1069
|
..._,
|
|
1069
|
-
children: /* @__PURE__ */ z(
|
|
1070
|
+
children: /* @__PURE__ */ z(ji, {
|
|
1070
1071
|
isNested: !1,
|
|
1071
1072
|
width: t,
|
|
1072
1073
|
sections: e,
|
|
@@ -1081,8 +1082,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1081
1082
|
...y,
|
|
1082
1083
|
onContextMenu: m
|
|
1083
1084
|
}];
|
|
1084
|
-
},
|
|
1085
|
-
let u = s(U), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: v = ["bottom-start", "top-start"] } = e, [y, b] =
|
|
1085
|
+
}, Wi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
|
|
1086
|
+
let u = s(U), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: v = ["bottom-start", "top-start"] } = e, [y, b] = Ui({
|
|
1086
1087
|
sections: e.sections,
|
|
1087
1088
|
width: t,
|
|
1088
1089
|
placement: _,
|
|
@@ -1095,11 +1096,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1095
1096
|
overflowContainer: !0,
|
|
1096
1097
|
maxHeight: void 0,
|
|
1097
1098
|
testId: l
|
|
1098
|
-
}), x = n ||
|
|
1099
|
+
}), x = n || Hi(e) || u;
|
|
1099
1100
|
return /* @__PURE__ */ B("div", {
|
|
1100
1101
|
...b,
|
|
1101
1102
|
"data-testid": l,
|
|
1102
|
-
children: [/* @__PURE__ */ z(
|
|
1103
|
+
children: [/* @__PURE__ */ z(Vi, {
|
|
1103
1104
|
width: t,
|
|
1104
1105
|
fullHeight: p,
|
|
1105
1106
|
isDisabled: x,
|
|
@@ -1114,15 +1115,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1114
1115
|
groupOrder: c
|
|
1115
1116
|
}), y]
|
|
1116
1117
|
});
|
|
1117
|
-
},
|
|
1118
|
-
let E = s(U), D = p(null), { label: O, title: k, trigger: A, fullHeightTrigger: j, colored: M, small: N, sections: P, component: F, placement: ee, showAllButton: I, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = nn(v) && on(y) ? [v, y] : m(!1), ie = () => re(!1), ae = () => re(!0), { triggerProps: oe, layerProps: se, renderLayer: ce } =
|
|
1118
|
+
}, Gi = ({ 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: _, open: v, setOpen: y, tooltip: b, error: x, warning: S, selected: C, tabIndex: w, active: T }) => {
|
|
1119
|
+
let E = s(U), D = p(null), { label: O, title: k, trigger: A, fullHeightTrigger: j, colored: M, small: N, sections: P, component: F, placement: ee, showAllButton: I, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = nn(v) && on(y) ? [v, y] : m(!1), ie = () => re(!1), ae = () => re(!0), { triggerProps: oe, layerProps: se, renderLayer: ce } = ti({
|
|
1119
1120
|
isOpen: ne,
|
|
1120
|
-
...
|
|
1121
|
+
...Mi(ee, o),
|
|
1121
1122
|
possiblePlacements: te,
|
|
1122
1123
|
onOutsideClick: ie,
|
|
1123
1124
|
overflowContainer: h
|
|
1124
|
-
}), L = Yt([D, se.ref]), le = n ||
|
|
1125
|
-
return
|
|
1125
|
+
}), L = Yt([D, se.ref]), le = n || Hi(e) || E;
|
|
1126
|
+
return Ai(u, d, ie), /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Vi, {
|
|
1126
1127
|
ref: oe.ref,
|
|
1127
1128
|
isDisabled: le,
|
|
1128
1129
|
badgeTitle: r,
|
|
@@ -1139,7 +1140,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1139
1140
|
ie();
|
|
1140
1141
|
return;
|
|
1141
1142
|
}
|
|
1142
|
-
|
|
1143
|
+
ki(u, d).forEach((e) => {
|
|
1143
1144
|
e.close && e.close();
|
|
1144
1145
|
}), ae();
|
|
1145
1146
|
}
|
|
@@ -1172,7 +1173,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1172
1173
|
className: q.layerContainer,
|
|
1173
1174
|
"data-testid": e.testId,
|
|
1174
1175
|
onClick: (e) => e.stopPropagation(),
|
|
1175
|
-
children: /* @__PURE__ */ z(
|
|
1176
|
+
children: /* @__PURE__ */ z(ji, {
|
|
1176
1177
|
sections: P,
|
|
1177
1178
|
isNested: o,
|
|
1178
1179
|
width: t,
|
|
@@ -1186,19 +1187,19 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1186
1187
|
})
|
|
1187
1188
|
})) })
|
|
1188
1189
|
})] });
|
|
1189
|
-
},
|
|
1190
|
+
}, Ki = (e) => /* @__PURE__ */ z(Xr, { children: /* @__PURE__ */ z(Gi, { ...e }) }), qi = (e) => e.contextMenu ? /* @__PURE__ */ z(Wi, {
|
|
1190
1191
|
...e,
|
|
1191
1192
|
tree: {},
|
|
1192
1193
|
path: "",
|
|
1193
1194
|
testId: e.testId
|
|
1194
|
-
}) : /* @__PURE__ */ z(
|
|
1195
|
+
}) : /* @__PURE__ */ z(Ki, {
|
|
1195
1196
|
...e,
|
|
1196
1197
|
tree: {},
|
|
1197
1198
|
path: "",
|
|
1198
1199
|
testId: e.testId
|
|
1199
|
-
}),
|
|
1200
|
+
}), Ji = (e) => /* @__PURE__ */ z(Xr, { children: /* @__PURE__ */ z(qi, { ...e }) }), Yi = (e) => {
|
|
1200
1201
|
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ z(K, {
|
|
1201
|
-
colored: r ? !0 :
|
|
1202
|
+
colored: r ? !0 : Er.MUTED,
|
|
1202
1203
|
basic: !r,
|
|
1203
1204
|
round: !0,
|
|
1204
1205
|
small: !0,
|
|
@@ -1206,8 +1207,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1206
1207
|
testId: i,
|
|
1207
1208
|
tooltip: a
|
|
1208
1209
|
});
|
|
1209
|
-
return t.length ? /* @__PURE__ */ z(
|
|
1210
|
-
trigger:
|
|
1210
|
+
return t.length ? /* @__PURE__ */ z(Ji, { menu: {
|
|
1211
|
+
trigger: Tr.COMPONENT,
|
|
1211
1212
|
component: o,
|
|
1212
1213
|
sections: t.map((e) => {
|
|
1213
1214
|
var t;
|
|
@@ -1224,16 +1225,16 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1224
1225
|
};
|
|
1225
1226
|
})
|
|
1226
1227
|
} }) : null;
|
|
1227
|
-
},
|
|
1228
|
+
}, Xi = (t) => {
|
|
1228
1229
|
let n = s(U), { actions: r = [], closeLayer: i } = t;
|
|
1229
1230
|
return /* @__PURE__ */ z("div", {
|
|
1230
|
-
className: g(
|
|
1231
|
+
className: g(yi.actions),
|
|
1231
1232
|
children: r.map((t, r) => {
|
|
1232
1233
|
if (!(t != null && t.hidden || !t || !Object.keys(t).length)) return t.childComponent && e.isValidElement(t.childComponent) ? /* @__PURE__ */ z("div", {
|
|
1233
1234
|
"data-testid": t.testId,
|
|
1234
|
-
className:
|
|
1235
|
+
className: yi.childComponent,
|
|
1235
1236
|
children: t.childComponent
|
|
1236
|
-
}, r) : t.subActions ? /* @__PURE__ */ z(
|
|
1237
|
+
}, r) : t.subActions ? /* @__PURE__ */ z(Yi, {
|
|
1237
1238
|
subActions: t.subActions,
|
|
1238
1239
|
primary: t.primary,
|
|
1239
1240
|
subMenuIcon: t.icon,
|
|
@@ -1255,30 +1256,30 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1255
1256
|
}, r);
|
|
1256
1257
|
})
|
|
1257
1258
|
});
|
|
1258
|
-
},
|
|
1259
|
+
}, Zi = {
|
|
1259
1260
|
breadcrumb: "_breadcrumb_2k0cd_1",
|
|
1260
1261
|
small: "_small_2k0cd_4",
|
|
1261
1262
|
labelContainer: "_labelContainer_2k0cd_7",
|
|
1262
1263
|
active: "_active_2k0cd_17",
|
|
1263
1264
|
disabled: "_disabled_2k0cd_22",
|
|
1264
1265
|
separator: "_separator_2k0cd_27"
|
|
1265
|
-
},
|
|
1266
|
+
}, Qi = /* @__PURE__ */ function(e) {
|
|
1266
1267
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1267
|
-
}({}),
|
|
1268
|
-
let l = s(U), u = e ===
|
|
1268
|
+
}({}), $i = ({ type: e = Qi.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
|
|
1269
|
+
let l = s(U), u = e === Qi.LINK && n !== void 0, d = e === Qi.CUSTOM && i(c);
|
|
1269
1270
|
return /* @__PURE__ */ z("span", {
|
|
1270
1271
|
onClick: r,
|
|
1271
|
-
className: g(
|
|
1272
|
+
className: g(Zi.labelContainer, a && Zi.active, (o || l) && Zi.disabled),
|
|
1272
1273
|
children: u ? /* @__PURE__ */ z("a", {
|
|
1273
1274
|
href: n,
|
|
1274
1275
|
children: t
|
|
1275
1276
|
}) : d ? c : t
|
|
1276
1277
|
});
|
|
1277
|
-
},
|
|
1278
|
-
className: g(
|
|
1278
|
+
}, ea = ({ links: e, small: t = !1 }) => /* @__PURE__ */ z("div", {
|
|
1279
|
+
className: g(Zi.breadcrumb, t && Zi.small),
|
|
1279
1280
|
children: e.map((t, n) => {
|
|
1280
1281
|
let r = e.length === n + 1, { type: i, label: a, url: o, onClick: s, active: c, disabled: l, element: u } = t;
|
|
1281
|
-
return /* @__PURE__ */ B("span", { children: [/* @__PURE__ */ z(
|
|
1282
|
+
return /* @__PURE__ */ B("span", { children: [/* @__PURE__ */ z($i, {
|
|
1282
1283
|
type: i,
|
|
1283
1284
|
label: a,
|
|
1284
1285
|
url: o,
|
|
@@ -1287,14 +1288,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1287
1288
|
disabled: l,
|
|
1288
1289
|
element: u
|
|
1289
1290
|
}), !r && /* @__PURE__ */ z("span", {
|
|
1290
|
-
className:
|
|
1291
|
+
className: Zi.separator,
|
|
1291
1292
|
children: "/"
|
|
1292
1293
|
})] }, n);
|
|
1293
1294
|
})
|
|
1294
|
-
}),
|
|
1295
|
+
}), ta = {
|
|
1295
1296
|
label: "_label_iu2wi_1",
|
|
1296
1297
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1297
|
-
},
|
|
1298
|
+
}, na = (e) => {
|
|
1298
1299
|
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) => {
|
|
1299
1300
|
e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
|
|
1300
1301
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
@@ -1303,14 +1304,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1303
1304
|
}, m = (e, t, n) => t === "object" && "key" in e ? e.key : n, h = (e, t) => t === "object" ? e.hidden : !1, g = (e, t) => t === "object" ? e.icon : void 0, _ = (e, t, n) => e === "object" ? String(t) === String(o) : n === o;
|
|
1304
1305
|
return /* @__PURE__ */ z("div", { children: /* @__PURE__ */ B("div", { children: [(() => {
|
|
1305
1306
|
if (r) return /* @__PURE__ */ z("label", {
|
|
1306
|
-
className:
|
|
1307
|
+
className: ta.label,
|
|
1307
1308
|
children: r
|
|
1308
1309
|
});
|
|
1309
1310
|
})(), /* @__PURE__ */ z("div", {
|
|
1310
|
-
className:
|
|
1311
|
+
className: ta.buttonGroup,
|
|
1311
1312
|
"data-testid": c,
|
|
1312
1313
|
children: n.map((e, r) => {
|
|
1313
|
-
let i =
|
|
1314
|
+
let i = Ni(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), v = h(e, i), y = g(e, i), b = _(i, u, c), { error: x, maxTooltipWidth: S, testId: C, tooltip: w, warning: T } = e;
|
|
1314
1315
|
return v ? null : /* @__PURE__ */ z(G, {
|
|
1315
1316
|
error: !!x,
|
|
1316
1317
|
warning: !!T,
|
|
@@ -1334,7 +1335,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1334
1335
|
}, r);
|
|
1335
1336
|
})
|
|
1336
1337
|
})] }) });
|
|
1337
|
-
},
|
|
1338
|
+
}, ra = {
|
|
1338
1339
|
card: "_card_ucdeu_1",
|
|
1339
1340
|
bordered: "_bordered_ucdeu_4",
|
|
1340
1341
|
raised: "_raised_ucdeu_10",
|
|
@@ -1342,23 +1343,23 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1342
1343
|
cardContentBorderTop: "_cardContentBorderTop_ucdeu_19",
|
|
1343
1344
|
padding: "_padding_ucdeu_22",
|
|
1344
1345
|
cardContent: "_cardContent_ucdeu_19"
|
|
1345
|
-
},
|
|
1346
|
-
className: g(
|
|
1346
|
+
}, ia = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ B("div", {
|
|
1347
|
+
className: g(ra.card, e ? ra.bordered : "", a ? ra.raised : ""),
|
|
1347
1348
|
style: { margin: r },
|
|
1348
1349
|
children: [t ? /* @__PURE__ */ z("div", {
|
|
1349
|
-
className: g(
|
|
1350
|
+
className: g(ra.cardHeader),
|
|
1350
1351
|
children: t
|
|
1351
1352
|
}) : null, /* @__PURE__ */ z("div", {
|
|
1352
|
-
className: g(
|
|
1353
|
+
className: g(ra.cardContent, t ? ra.cardContentBorderTop : "", i ? ra.padding : ""),
|
|
1353
1354
|
children: n
|
|
1354
1355
|
})]
|
|
1355
|
-
}),
|
|
1356
|
+
}), aa = {
|
|
1356
1357
|
toggleBox: "_toggleBox_rwod1_1",
|
|
1357
1358
|
enter: "_enter_rwod1_8",
|
|
1358
1359
|
enterActive: "_enterActive_rwod1_12",
|
|
1359
1360
|
fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
|
|
1360
1361
|
dismiss: "_dismiss_rwod1_22"
|
|
1361
|
-
},
|
|
1362
|
+
}, oa = ({ 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 }) => {
|
|
1362
1363
|
let _ = s(U), v = p(null), [y, b] = f === void 0 ? m(!1) : [f, h], x = () => {
|
|
1363
1364
|
!u && !_ && b && b(!1);
|
|
1364
1365
|
}, S = () => {
|
|
@@ -1367,7 +1368,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1367
1368
|
c(() => {
|
|
1368
1369
|
(u || _) && x();
|
|
1369
1370
|
}, [u, _]);
|
|
1370
|
-
let { renderLayer: C, arrowProps: w, layerProps: T, triggerProps: E } =
|
|
1371
|
+
let { renderLayer: C, arrowProps: w, layerProps: T, triggerProps: E } = ti({
|
|
1371
1372
|
isOpen: y,
|
|
1372
1373
|
placement: r,
|
|
1373
1374
|
triggerOffset: 6,
|
|
@@ -1384,16 +1385,16 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1384
1385
|
in: y,
|
|
1385
1386
|
timeout: 100,
|
|
1386
1387
|
classNames: {
|
|
1387
|
-
enter:
|
|
1388
|
-
enterActive:
|
|
1388
|
+
enter: aa.enter,
|
|
1389
|
+
enterActive: aa.enterActive
|
|
1389
1390
|
},
|
|
1390
1391
|
unmountOnExit: !0,
|
|
1391
1392
|
children: /* @__PURE__ */ z(R, { children: y && C(/* @__PURE__ */ B("div", {
|
|
1392
|
-
className: a ? g(
|
|
1393
|
+
className: a ? g(aa.toggleBox, aa.fullWidthStyleFix) : g(aa.toggleBox),
|
|
1393
1394
|
...T,
|
|
1394
1395
|
ref: D,
|
|
1395
1396
|
children: [/* @__PURE__ */ B("div", { children: [e.isValidElement(n) ? e.cloneElement(n, { close: x }) : n, o && /* @__PURE__ */ z("div", {
|
|
1396
|
-
className:
|
|
1397
|
+
className: aa.dismiss,
|
|
1397
1398
|
children: /* @__PURE__ */ z(K, {
|
|
1398
1399
|
small: !0,
|
|
1399
1400
|
round: !0,
|
|
@@ -1412,34 +1413,34 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1412
1413
|
})]
|
|
1413
1414
|
})) })
|
|
1414
1415
|
})] });
|
|
1415
|
-
},
|
|
1416
|
+
}, sa = (e) => /* @__PURE__ */ z(Xr, { children: /* @__PURE__ */ z(oa, { ...e }) }), ca = {
|
|
1416
1417
|
colorInput: "_colorInput_1j7vk_1",
|
|
1417
1418
|
trigger: "_trigger_1j7vk_8",
|
|
1418
1419
|
buttonColor: "_buttonColor_1j7vk_12",
|
|
1419
1420
|
options: "_options_1j7vk_17",
|
|
1420
1421
|
option: "_option_1j7vk_17",
|
|
1421
1422
|
adjustColorsInDarkMode: "_adjustColorsInDarkMode_1j7vk_26"
|
|
1422
|
-
},
|
|
1423
|
+
}, la = ({ columns: e = 9, disabled: t, options: n = [], small: r, value: i, onChange: a, adjustColorsInDarkMode: o = !1 }) => {
|
|
1423
1424
|
var s;
|
|
1424
1425
|
let [c, l] = m(!1), u = (s = n.find((e) => e.value === i)) == null ? void 0 : s.label;
|
|
1425
1426
|
return /* @__PURE__ */ z("div", {
|
|
1426
|
-
className: g(
|
|
1427
|
-
children: /* @__PURE__ */ z(
|
|
1427
|
+
className: g(ca.colorInput, o ? ca.adjustColorsInDarkMode : void 0),
|
|
1428
|
+
children: /* @__PURE__ */ z(sa, {
|
|
1428
1429
|
placement: "bottom-start",
|
|
1429
1430
|
isOpen: c,
|
|
1430
1431
|
onToggle: l,
|
|
1431
1432
|
content: /* @__PURE__ */ z("div", {
|
|
1432
|
-
className: g(
|
|
1433
|
+
className: g(ca.options, o ? ca.adjustColorsInDarkMode : void 0),
|
|
1433
1434
|
style: { gridTemplateColumns: `repeat(${e}, auto)` },
|
|
1434
1435
|
children: n.map((e) => /* @__PURE__ */ z("div", {
|
|
1435
|
-
className:
|
|
1436
|
+
className: ca.option,
|
|
1436
1437
|
children: /* @__PURE__ */ z(K, {
|
|
1437
1438
|
basic: !0,
|
|
1438
1439
|
disabled: t,
|
|
1439
1440
|
width: "var(--size)",
|
|
1440
1441
|
tooltip: e.label,
|
|
1441
1442
|
label: /* @__PURE__ */ z("div", {
|
|
1442
|
-
className:
|
|
1443
|
+
className: ca.buttonColor,
|
|
1443
1444
|
style: { backgroundColor: e.value }
|
|
1444
1445
|
}),
|
|
1445
1446
|
onClick: () => {
|
|
@@ -1455,49 +1456,67 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1455
1456
|
width: r ? "var(--size-sm)" : "var(--size)",
|
|
1456
1457
|
tooltip: u,
|
|
1457
1458
|
label: /* @__PURE__ */ z("div", {
|
|
1458
|
-
className:
|
|
1459
|
+
className: ca.buttonColor,
|
|
1459
1460
|
style: { backgroundColor: i }
|
|
1460
1461
|
})
|
|
1461
1462
|
})
|
|
1462
1463
|
})
|
|
1463
1464
|
});
|
|
1464
|
-
},
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1465
|
+
}, ua = yn`
|
|
1466
|
+
scrollbar-width: none;
|
|
1467
|
+
-ms-overflow-style: none;
|
|
1468
|
+
&::-webkit-scrollbar {
|
|
1469
|
+
display: none;
|
|
1470
|
+
}
|
|
1471
|
+
`, da = vn.div`
|
|
1472
|
+
position: relative; // for floating layers
|
|
1473
|
+
display: flex;
|
|
1474
|
+
flex-direction: column;
|
|
1475
|
+
min-width: 0;
|
|
1476
|
+
flex-basis: ${(e) => e.$width || "auto"};
|
|
1477
|
+
flex-grow: ${(e) => !e.$width && e.$flex ? "1" : "0"};
|
|
1478
|
+
flex-shrink: ${(e) => e.$width || !e.$flex ? "0" : "1"};
|
|
1479
|
+
overflow: ${(e) => e.$scroll ? "auto" : "initial"};
|
|
1480
|
+
background: ${(e) => e.$background};
|
|
1481
|
+
border-left: ${(e) => e.$borderLeft === !0 ? "1px solid var(--color-border)" : e.$borderLeft};
|
|
1482
|
+
border-right: ${(e) => e.$borderRight === !0 ? "1px solid var(--color-border)" : e.$borderRight};
|
|
1483
|
+
padding: ${(e) => e.$spacing ? `0 calc(${e.$spacing} / 2)` : "0"};
|
|
1484
|
+
${(e) => !e.$showScrollbar && ua}
|
|
1485
|
+
|
|
1486
|
+
@media (max-width: 992px) {
|
|
1487
|
+
${(e) => e.$widthTablet && `flex-basis: ${e.$widthTablet};`}
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
@media (max-width: 575px) {
|
|
1491
|
+
${(e) => e.$widthMobile && `flex-basis: ${e.$widthMobile};`}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
> .inner {
|
|
1495
|
+
flex-basis: 100%;
|
|
1496
|
+
position: relative;
|
|
1497
|
+
z-index: 0;
|
|
1498
|
+
min-height: 0;
|
|
1499
|
+
display: ${(e) => e.$flexbox && !e.$scroll ? "flex" : "block"};
|
|
1500
|
+
${(e) => e.$flexbox && "flex-direction: column;"}
|
|
1501
|
+
padding: ${(e) => e.$padding === !0 ? "var(--padding)" : e.$padding};
|
|
1502
|
+
}
|
|
1503
|
+
`, fa = ({ background: e = "transparent", borderLeft: t, borderRight: n, children: r = null, flex: i = !0, flexbox: a = !1, padding: o = !1, scroll: s = !1, showScrollbar: c = !0, spacing: l = "var(--padding)", width: u, widthMobile: d, widthTablet: f, testId: p }) => {
|
|
1504
|
+
let m = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : void 0;
|
|
1505
|
+
return /* @__PURE__ */ z(da, {
|
|
1506
|
+
$background: e,
|
|
1507
|
+
$borderLeft: t,
|
|
1508
|
+
$borderRight: n,
|
|
1509
|
+
$flex: i,
|
|
1510
|
+
$flexbox: a,
|
|
1511
|
+
$padding: o,
|
|
1512
|
+
$scroll: s,
|
|
1513
|
+
$showScrollbar: c,
|
|
1514
|
+
$spacing: l,
|
|
1515
|
+
$width: m(u),
|
|
1516
|
+
$widthTablet: m(f),
|
|
1517
|
+
$widthMobile: m(d),
|
|
1499
1518
|
children: /* @__PURE__ */ z("div", {
|
|
1500
|
-
className:
|
|
1519
|
+
className: "inner",
|
|
1501
1520
|
"data-testid": p,
|
|
1502
1521
|
children: r
|
|
1503
1522
|
})
|
|
@@ -1522,11 +1541,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1522
1541
|
children: e
|
|
1523
1542
|
}), ga = (e) => {
|
|
1524
1543
|
switch (e) {
|
|
1525
|
-
case
|
|
1526
|
-
case
|
|
1544
|
+
case Dr.LEFT: return pa.alignLeft;
|
|
1545
|
+
case Dr.RIGHT: return pa.alignRight;
|
|
1527
1546
|
default: return "";
|
|
1528
1547
|
}
|
|
1529
|
-
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r =
|
|
1548
|
+
}, _a = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = Dr.CENTER }) => /* @__PURE__ */ z("div", {
|
|
1530
1549
|
className: `${pa.divider} ${ga(r)}`,
|
|
1531
1550
|
style: {
|
|
1532
1551
|
marginTop: t,
|
|
@@ -1552,15 +1571,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1552
1571
|
children: [e, /* @__PURE__ */ B("div", {
|
|
1553
1572
|
className: va.icons,
|
|
1554
1573
|
children: [
|
|
1555
|
-
a && /* @__PURE__ */ z(
|
|
1574
|
+
a && /* @__PURE__ */ z(ci, {
|
|
1556
1575
|
onClick: i,
|
|
1557
1576
|
icon: a
|
|
1558
1577
|
}),
|
|
1559
|
-
d && /* @__PURE__ */ z(
|
|
1578
|
+
d && /* @__PURE__ */ z(ci, {
|
|
1560
1579
|
text: t,
|
|
1561
1580
|
onClick: r
|
|
1562
1581
|
}),
|
|
1563
|
-
o && /* @__PURE__ */ z(
|
|
1582
|
+
o && /* @__PURE__ */ z(ci, {
|
|
1564
1583
|
text: (u = o == null ? void 0 : o.tooltip) == null ? "" : u,
|
|
1565
1584
|
onClick: o.onClick,
|
|
1566
1585
|
icon: H.LIBRARY
|
|
@@ -1654,7 +1673,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1654
1673
|
disabled: "_disabled_c4h57_224",
|
|
1655
1674
|
tabsContent: "_tabsContent_c4h57_231",
|
|
1656
1675
|
resizeHandle: "_resizeHandle_c4h57_237"
|
|
1657
|
-
}, wa = ({ badge: e, children: t }) => e ? /* @__PURE__ */ z(
|
|
1676
|
+
}, wa = ({ badge: e, children: t }) => e ? /* @__PURE__ */ z(Ii, {
|
|
1658
1677
|
small: !0,
|
|
1659
1678
|
margin: 4,
|
|
1660
1679
|
title: e.toString(),
|
|
@@ -1691,7 +1710,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1691
1710
|
...r,
|
|
1692
1711
|
children: /* @__PURE__ */ z(W, { icon: H.DRAG })
|
|
1693
1712
|
});
|
|
1694
|
-
}), Da =
|
|
1713
|
+
}), Da = bn, Oa = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1695
1714
|
let [o, s] = m(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1696
1715
|
return r ? /* @__PURE__ */ z(Da, {
|
|
1697
1716
|
width: gn(t),
|
|
@@ -1713,7 +1732,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1713
1732
|
},
|
|
1714
1733
|
children: e
|
|
1715
1734
|
}) : /* @__PURE__ */ z(R, { children: e });
|
|
1716
|
-
}, 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 =
|
|
1735
|
+
}, 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 = Or.BOTTOM, border: p = !1, children: h = null, tabs: _, defaultTabIndex: v = 0, activeTab: y, setActiveTab: b, testId: x, onResize: S, getActiveTab: C, onClose: w, onOpen: T, maxOpenWidth: E }) => {
|
|
1717
1736
|
let D = u === !0, O = !D && i(u), [k, A] = r ? [n, r] : D || _ ? m(n) : [n, () => {}], [j, M] = m(v), N = r ? n : k, P = r || A, F = b === void 0 ? j : y, ee = b || M, I = Array.isArray(o) ? o[F || 0] : o, te = N ? I : _ ? 35 : s;
|
|
1718
1737
|
return /* @__PURE__ */ z(Oa, {
|
|
1719
1738
|
width: te,
|
|
@@ -1921,7 +1940,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
1921
1940
|
let n = document.querySelector(`#${e}`), [r, i] = m(!1);
|
|
1922
1941
|
return u(() => {
|
|
1923
1942
|
r || i(!0);
|
|
1924
|
-
}, [e]), n ?
|
|
1943
|
+
}, [e]), n ? xn(t, n) : null;
|
|
1925
1944
|
}, Ua = {
|
|
1926
1945
|
wrapper: "_wrapper_1sv3a_1",
|
|
1927
1946
|
enter: "_enter_1sv3a_15",
|
|
@@ -2059,7 +2078,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2059
2078
|
testId: `${g}-file-input`,
|
|
2060
2079
|
accept: "image/*"
|
|
2061
2080
|
}),
|
|
2062
|
-
y && /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Ba, {}), /* @__PURE__ */ z(Ya, { percentage:
|
|
2081
|
+
y && /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(Ba, {}), /* @__PURE__ */ z(Ya, { percentage: Rn(100 * x / Za, 3) })] })
|
|
2063
2082
|
] }), j = /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(K, {
|
|
2064
2083
|
label: p || "Upload",
|
|
2065
2084
|
colored: !0,
|
|
@@ -2187,7 +2206,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2187
2206
|
className: g(ao.legendToggle),
|
|
2188
2207
|
onClick: n,
|
|
2189
2208
|
children: t ? "Hide details" : "Show details"
|
|
2190
|
-
}), /* @__PURE__ */ z(
|
|
2209
|
+
}), /* @__PURE__ */ z(Gr, {
|
|
2191
2210
|
expanded: t,
|
|
2192
2211
|
children: /* @__PURE__ */ z("div", {
|
|
2193
2212
|
className: ao.detailsText,
|
|
@@ -2274,7 +2293,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2274
2293
|
children: e
|
|
2275
2294
|
}) }) : null, (() => {
|
|
2276
2295
|
if (!a) return null;
|
|
2277
|
-
let e = /* @__PURE__ */ z(
|
|
2296
|
+
let e = /* @__PURE__ */ z(Xi, { actions: t });
|
|
2278
2297
|
return n ? e : /* @__PURE__ */ z("div", { children: e });
|
|
2279
2298
|
})()]
|
|
2280
2299
|
});
|
|
@@ -2426,7 +2445,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2426
2445
|
}),
|
|
2427
2446
|
!!(s != null && s.length) && /* @__PURE__ */ z("div", {
|
|
2428
2447
|
className: g(wo.actions),
|
|
2429
|
-
children: /* @__PURE__ */ z(
|
|
2448
|
+
children: /* @__PURE__ */ z(Xi, {
|
|
2430
2449
|
actions: s,
|
|
2431
2450
|
closeLayer: c
|
|
2432
2451
|
})
|
|
@@ -2439,8 +2458,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2439
2458
|
}), Wo = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2440
2459
|
let a = s(U);
|
|
2441
2460
|
switch (e.type) {
|
|
2442
|
-
case
|
|
2443
|
-
case
|
|
2461
|
+
case Ci.HEADING: return /* @__PURE__ */ z(Ho, { label: e.label });
|
|
2462
|
+
case Ci.OPTION:
|
|
2444
2463
|
default: return /* @__PURE__ */ z(Uo, {
|
|
2445
2464
|
closeLayer: i,
|
|
2446
2465
|
actions: e.actions,
|
|
@@ -2454,7 +2473,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2454
2473
|
testId: e.testId
|
|
2455
2474
|
});
|
|
2456
2475
|
}
|
|
2457
|
-
}, Go = (e, t) => !e || e.type ===
|
|
2476
|
+
}, Go = (e, t) => !e || e.type === Ci.HEADING ? !1 : Array.isArray(t) ? t.some((t) => t && t.value == e.value) : e.value == (t == null ? void 0 : t.value), Ko = (e, t) => {
|
|
2458
2477
|
let n = e.findIndex((e) => Go(e, t));
|
|
2459
2478
|
return n === -1 ? null : n;
|
|
2460
2479
|
}, qo = ({ index: e, style: t, closeLayer: n, focusedOptionIndex: r, onSelectOption: i, sections: a, selectedOptions: o }) => /* @__PURE__ */ z("div", {
|
|
@@ -2482,7 +2501,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2482
2501
|
return /* @__PURE__ */ z("div", {
|
|
2483
2502
|
"data-testid": u,
|
|
2484
2503
|
className: g(wo.layer, c && wo.small),
|
|
2485
|
-
children: n.length ? /* @__PURE__ */ z(
|
|
2504
|
+
children: n.length ? /* @__PURE__ */ z(Yn, {
|
|
2486
2505
|
listRef: d,
|
|
2487
2506
|
rowComponent: qo,
|
|
2488
2507
|
rowCount: n.length,
|
|
@@ -2618,8 +2637,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2618
2637
|
tabIndex: m,
|
|
2619
2638
|
className: g(Y.trigger, h ? Y.isOpen : "", d ? Y.disabled : "", l ? Y.small : "", u ? Y.isInTable : "", w ? Y.right : "", j),
|
|
2620
2639
|
onClick: (e) => {
|
|
2621
|
-
e.stopPropagation(), requestAnimationFrame(() => {
|
|
2622
|
-
|
|
2640
|
+
e.stopPropagation(), i(e), requestAnimationFrame(() => {
|
|
2641
|
+
typeof O == "function" && O();
|
|
2623
2642
|
});
|
|
2624
2643
|
},
|
|
2625
2644
|
onFocus: y,
|
|
@@ -2668,7 +2687,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2668
2687
|
currentOption: !1,
|
|
2669
2688
|
clearAll: !1
|
|
2670
2689
|
}, es = (e) => e === null ? 0 : e + 1, ts = (e, t) => {
|
|
2671
|
-
let n = ["none", ...e.map((e, t) => e.type ===
|
|
2690
|
+
let n = ["none", ...e.map((e, t) => e.type === Ci.HEADING ? null : t).filter((e) => e !== null)], r = es(t);
|
|
2672
2691
|
return {
|
|
2673
2692
|
options: n,
|
|
2674
2693
|
currentIndex: r,
|
|
@@ -2781,7 +2800,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2781
2800
|
options: n
|
|
2782
2801
|
}), r();
|
|
2783
2802
|
}
|
|
2784
|
-
}, 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 } =
|
|
2803
|
+
}, 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 } = ti({
|
|
2785
2804
|
isOpen: (b = e == null ? void 0 : e.isLayerOpen) == null ? !1 : b,
|
|
2786
2805
|
matchReferenceWidth: !0,
|
|
2787
2806
|
overflowContainer: !0,
|
|
@@ -2965,20 +2984,20 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
2965
2984
|
})) })
|
|
2966
2985
|
})]
|
|
2967
2986
|
});
|
|
2968
|
-
}, fs = (e) => /* @__PURE__ */ z(
|
|
2987
|
+
}, fs = (e) => /* @__PURE__ */ z(Xr, { children: /* @__PURE__ */ z(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" ? {
|
|
2969
2988
|
label: e,
|
|
2970
2989
|
value: e
|
|
2971
2990
|
} : e) : e, _s = (e, t) => {
|
|
2972
2991
|
if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
|
|
2973
2992
|
{
|
|
2974
2993
|
let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
|
|
2975
|
-
return (Array.isArray(e) ? e.filter((e) => e.type !==
|
|
2994
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== Ci.HEADING).find((e) => e.value == n) : void 0) || (ps(n) ? void 0 : {
|
|
2976
2995
|
value: n,
|
|
2977
2996
|
label: n
|
|
2978
2997
|
});
|
|
2979
2998
|
}
|
|
2980
2999
|
}, vs = (e, t) => hs(t) ? t.map((t) => _s(e, t)).filter((e) => e !== void 0) : t === null ? void 0 : _s(e, t), ys = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" || typeof e == "number"), bs = (e, t) => {
|
|
2981
|
-
let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !==
|
|
3000
|
+
let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !== Ci.HEADING).findIndex((e) => typeof e == "string" || typeof e == "number" ? e == r : e.value == r);
|
|
2982
3001
|
return i === -1 ? null : i;
|
|
2983
3002
|
}, xs = (e, t) => {
|
|
2984
3003
|
let n = hs(t) ? t : ps(t) ? [] : [t];
|
|
@@ -3156,7 +3175,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3156
3175
|
children: /* @__PURE__ */ z("div", { children: n })
|
|
3157
3176
|
}) : null, i || o() ? /* @__PURE__ */ B("div", {
|
|
3158
3177
|
className: _o.section,
|
|
3159
|
-
children: [e && o() ? /* @__PURE__ */ z(As, { pagination: e }) : /* @__PURE__ */ z("div", {}), i && /* @__PURE__ */ z("div", { children: /* @__PURE__ */ z(
|
|
3178
|
+
children: [e && o() ? /* @__PURE__ */ z(As, { pagination: e }) : /* @__PURE__ */ z("div", {}), i && /* @__PURE__ */ z("div", { children: /* @__PURE__ */ z(Xi, { actions: t }) })]
|
|
3160
3179
|
}) : null]
|
|
3161
3180
|
}) : null;
|
|
3162
3181
|
}, Ms = (e) => {
|
|
@@ -3189,10 +3208,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3189
3208
|
if (!e) return null;
|
|
3190
3209
|
let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
|
|
3191
3210
|
switch (a || (o && i ? i : r)) {
|
|
3192
|
-
case
|
|
3193
|
-
case
|
|
3194
|
-
case
|
|
3195
|
-
default: return n ?
|
|
3211
|
+
case Dr.LEFT: return n ? Dr.LEFT : t.leftAligned;
|
|
3212
|
+
case Dr.RIGHT: return n ? Dr.RIGHT : t.rightAligned;
|
|
3213
|
+
case Dr.CENTER: return n ? Dr.CENTER : t.centerAligned;
|
|
3214
|
+
default: return n ? Dr.LEFT : t.leftAligned;
|
|
3196
3215
|
}
|
|
3197
3216
|
}, zs = (e, t = !1, n = 0) => {
|
|
3198
3217
|
if (!e || e.length === 0) return [];
|
|
@@ -3247,15 +3266,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3247
3266
|
disabled: e.disabled,
|
|
3248
3267
|
isInTable: !0,
|
|
3249
3268
|
maxTooltipWidth: e.maxTooltipWidth,
|
|
3250
|
-
right: t ===
|
|
3269
|
+
right: t === Dr.RIGHT,
|
|
3251
3270
|
selectOnFocus: e.selectOnFocus,
|
|
3252
3271
|
testId: n,
|
|
3253
3272
|
tabIndex: e.disabled ? -1 : 0,
|
|
3254
3273
|
tooltip: e.tooltip,
|
|
3255
3274
|
type: r
|
|
3256
|
-
}), Vs = 14, Hs = (e) => String(
|
|
3275
|
+
}), Vs = 14, Hs = (e) => String(Wn(e)), Us = (e) => Nn(e) ? e : Hs(Bn(Un(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: v = !1, validationCallback: y = () => {}, allowEmpty: b = !1, isInTable: x, groupOrder: S, enableCosmeticRounding: C = !0, enableDisplayRounding: w = !1, roundDisplayValue: T, disableInternalErrorValidationMessages: E = !1, disableValidationOnFocus: D = !1 }) => {
|
|
3257
3276
|
let O = (e) => {
|
|
3258
|
-
let n =
|
|
3277
|
+
let n = Kn(e), r = t && ps(e);
|
|
3259
3278
|
return [Infinity, -Infinity].includes(Number(e)) || r ? {
|
|
3260
3279
|
valid: !0,
|
|
3261
3280
|
errors: []
|
|
@@ -3271,7 +3290,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3271
3290
|
}, A = p(null), [j, M] = m(k(Hs(s))), [N, P] = m(!1), F = Ws(e), { valid: ee, errors: I } = O(j), te = I && I.length && !E ? I[0] : null;
|
|
3272
3291
|
c(() => {
|
|
3273
3292
|
let e = k(Hs(s));
|
|
3274
|
-
|
|
3293
|
+
Un(j) !== Un(e) && M(e);
|
|
3275
3294
|
}, [
|
|
3276
3295
|
s,
|
|
3277
3296
|
C,
|
|
@@ -3285,12 +3304,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3285
3304
|
]);
|
|
3286
3305
|
let ne = (e) => {
|
|
3287
3306
|
var n, r;
|
|
3288
|
-
let i = "key" in e ? j : e == null || (n = e.target) == null ? void 0 : n.value, a =
|
|
3307
|
+
let i = "key" in e ? j : e == null || (n = e.target) == null ? void 0 : n.value, a = Tn(i.replaceAll(" ", "").replaceAll("|", ""));
|
|
3289
3308
|
M(a), ((r = O(a)) != null && r.valid || t && ps(i)) && l({
|
|
3290
3309
|
...e,
|
|
3291
3310
|
target: {
|
|
3292
3311
|
...e.target,
|
|
3293
|
-
value:
|
|
3312
|
+
value: Hn(Hs(a)),
|
|
3294
3313
|
name: F
|
|
3295
3314
|
}
|
|
3296
3315
|
});
|
|
@@ -3309,7 +3328,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3309
3328
|
testId: g,
|
|
3310
3329
|
disabled: n,
|
|
3311
3330
|
placeholder: t,
|
|
3312
|
-
value: w && !N && ee ? T ? Hs(T(j)) : ((e) => x ?
|
|
3331
|
+
value: w && !N && ee ? T ? Hs(T(j)) : ((e) => x ? zn(e, 2) : Ln(e, 4))(s) : j,
|
|
3313
3332
|
onChange: ne,
|
|
3314
3333
|
onFocus: (e) => {
|
|
3315
3334
|
P(!0), u(e);
|
|
@@ -3348,7 +3367,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3348
3367
|
warning: e.warning,
|
|
3349
3368
|
disabled: e.disabled,
|
|
3350
3369
|
isInTable: !0,
|
|
3351
|
-
left: (r = e.left) == null ? t ===
|
|
3370
|
+
left: (r = e.left) == null ? t === Dr.LEFT : r,
|
|
3352
3371
|
selectOnFocus: e.selectOnFocus,
|
|
3353
3372
|
tabIndex: e.disabled ? -1 : 0,
|
|
3354
3373
|
testId: n,
|
|
@@ -3383,7 +3402,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3383
3402
|
width: "100%",
|
|
3384
3403
|
autoLayerWidth: e.autoLayerWidth,
|
|
3385
3404
|
multi: e.multi,
|
|
3386
|
-
right: t ===
|
|
3405
|
+
right: t === Dr.RIGHT,
|
|
3387
3406
|
testId: n,
|
|
3388
3407
|
tabIndex: e.disabled ? -1 : 0
|
|
3389
3408
|
}), Js = ({ cell: e, columnAlignment: t, testId: n }) => /* @__PURE__ */ z("div", {
|
|
@@ -3433,7 +3452,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3433
3452
|
});
|
|
3434
3453
|
}, Xs = ({ cell: e, testId: t }) => /* @__PURE__ */ z("div", {
|
|
3435
3454
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3436
|
-
children: /* @__PURE__ */ z(
|
|
3455
|
+
children: /* @__PURE__ */ z(li, {
|
|
3437
3456
|
label: e.label,
|
|
3438
3457
|
checked: e.checked,
|
|
3439
3458
|
isInTable: !0,
|
|
@@ -3451,14 +3470,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3451
3470
|
button: "_button_1vgw8_18",
|
|
3452
3471
|
label: "_label_1vgw8_21",
|
|
3453
3472
|
dot: "_dot_1vgw8_32"
|
|
3454
|
-
}, Qs =
|
|
3473
|
+
}, Qs = tr((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ z(G, {
|
|
3455
3474
|
text: /* @__PURE__ */ B(R, { children: [
|
|
3456
3475
|
n,
|
|
3457
3476
|
n ? ": " : "",
|
|
3458
3477
|
t == null ? r : t
|
|
3459
3478
|
] }),
|
|
3460
3479
|
children: /* @__PURE__ */ z("div", { className: Zs.dot })
|
|
3461
|
-
}), e), {}),
|
|
3480
|
+
}), e), {}), nr), $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: _ = {
|
|
3462
3481
|
enabled: !1,
|
|
3463
3482
|
width: "100px",
|
|
3464
3483
|
height: "400px"
|
|
@@ -3498,7 +3517,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3498
3517
|
} : { width: n },
|
|
3499
3518
|
children: [
|
|
3500
3519
|
u && (_.enabled ? /* @__PURE__ */ z(C, {}) : /* @__PURE__ */ z(S, {})),
|
|
3501
|
-
/* @__PURE__ */ z(
|
|
3520
|
+
/* @__PURE__ */ z(er, {
|
|
3502
3521
|
range: m,
|
|
3503
3522
|
allowCross: !1,
|
|
3504
3523
|
className: g((p || y) && Zs.rcSliderDisabled, u && Zs.hasArrows),
|
|
@@ -3558,11 +3577,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3558
3577
|
children: /* @__PURE__ */ z(W, { icon: n })
|
|
3559
3578
|
})
|
|
3560
3579
|
});
|
|
3561
|
-
}, nc = ({ cell: e }) => /* @__PURE__ */ z(
|
|
3580
|
+
}, nc = ({ cell: e }) => /* @__PURE__ */ z(Xi, { actions: e.actions }), rc = ({ cell: e }) => {
|
|
3562
3581
|
let { helpIcon: t } = e;
|
|
3563
3582
|
return t ? /* @__PURE__ */ z("div", {
|
|
3564
3583
|
className: X.icon,
|
|
3565
|
-
children: /* @__PURE__ */ z(
|
|
3584
|
+
children: /* @__PURE__ */ z(ci, {
|
|
3566
3585
|
onClick: t.onClick,
|
|
3567
3586
|
text: t.tooltip
|
|
3568
3587
|
})
|
|
@@ -3571,7 +3590,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3571
3590
|
let { libraryIcon: t } = e;
|
|
3572
3591
|
return t ? /* @__PURE__ */ z("div", {
|
|
3573
3592
|
className: X.icon,
|
|
3574
|
-
children: /* @__PURE__ */ z(
|
|
3593
|
+
children: /* @__PURE__ */ z(ci, {
|
|
3575
3594
|
onClick: t.onClick,
|
|
3576
3595
|
text: t.tooltip,
|
|
3577
3596
|
icon: H.LIBRARY
|
|
@@ -3619,7 +3638,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3619
3638
|
});
|
|
3620
3639
|
}, sc = ({ cell: e, testId: t }) => {
|
|
3621
3640
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
3622
|
-
return /* @__PURE__ */ z(
|
|
3641
|
+
return /* @__PURE__ */ z(sa, {
|
|
3623
3642
|
content: n,
|
|
3624
3643
|
fullWidth: r,
|
|
3625
3644
|
closeOnOutsideClick: i,
|
|
@@ -3643,7 +3662,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3643
3662
|
disabled: "_disabled_1u1qo_98",
|
|
3644
3663
|
isInTable: "_isInTable_1u1qo_114",
|
|
3645
3664
|
helpIconEnabled: "_helpIconEnabled_1u1qo_119"
|
|
3646
|
-
}, 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 =
|
|
3665
|
+
}, 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 = kr.CAPITALIZE }) => {
|
|
3647
3666
|
let f = l || u;
|
|
3648
3667
|
return /* @__PURE__ */ B("div", {
|
|
3649
3668
|
className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
|
|
@@ -3651,7 +3670,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3651
3670
|
"data-testid": c,
|
|
3652
3671
|
children: [
|
|
3653
3672
|
/* @__PURE__ */ z("input", {
|
|
3654
|
-
type:
|
|
3673
|
+
type: jr.RADIO,
|
|
3655
3674
|
value: n,
|
|
3656
3675
|
checked: r,
|
|
3657
3676
|
onChange: () => {},
|
|
@@ -3666,7 +3685,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3666
3685
|
f && /* @__PURE__ */ z("div", {
|
|
3667
3686
|
className: cc.helpIconEnabled,
|
|
3668
3687
|
onClick: u,
|
|
3669
|
-
children: /* @__PURE__ */ z(
|
|
3688
|
+
children: /* @__PURE__ */ z(ci, { text: l })
|
|
3670
3689
|
})
|
|
3671
3690
|
]
|
|
3672
3691
|
});
|
|
@@ -3713,7 +3732,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3713
3732
|
}
|
|
3714
3733
|
}, fc = /* @__PURE__ */ function(e) {
|
|
3715
3734
|
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;
|
|
3716
|
-
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r =
|
|
3735
|
+
}({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Dr.LEFT, width: i, testId: a }) => {
|
|
3717
3736
|
var o;
|
|
3718
3737
|
if (!e) return null;
|
|
3719
3738
|
let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
|
|
@@ -3724,7 +3743,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3724
3743
|
}, h = Rs(m, X), _ = Rs(m, X, !0), v = 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, y = g(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), b = (o = u == null ? i : u) == null ? void 0 : o, x = e.type === fc.STATIC || !e.type, S = {
|
|
3725
3744
|
width: b,
|
|
3726
3745
|
minWidth: b,
|
|
3727
|
-
textTransform: t && x ?
|
|
3746
|
+
textTransform: t && x ? kr.CAPITALIZE : void 0,
|
|
3728
3747
|
...s
|
|
3729
3748
|
};
|
|
3730
3749
|
return /* @__PURE__ */ z(t ? "th" : "td", {
|
|
@@ -3735,7 +3754,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3735
3754
|
rowSpan: l,
|
|
3736
3755
|
children: /* @__PURE__ */ z(dc, {
|
|
3737
3756
|
cell: e,
|
|
3738
|
-
columnAlignment: _ == null ?
|
|
3757
|
+
columnAlignment: _ == null ? Dr.RIGHT : _,
|
|
3739
3758
|
isHeader: t,
|
|
3740
3759
|
testId: a
|
|
3741
3760
|
})
|
|
@@ -3757,11 +3776,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3757
3776
|
actions: e.actions
|
|
3758
3777
|
},
|
|
3759
3778
|
isHeader: n
|
|
3760
|
-
}, r), { attributes: T, listeners: E, setNodeRef: D, transform: O, transition: k, isDragging: A } =
|
|
3779
|
+
}, r), { attributes: T, listeners: E, setNodeRef: D, transform: O, transition: k, isDragging: A } = Zn({
|
|
3761
3780
|
id: t.toString(),
|
|
3762
3781
|
animateLayoutChanges: () => !1
|
|
3763
3782
|
}), j = {
|
|
3764
|
-
transform: u ? void 0 :
|
|
3783
|
+
transform: u ? void 0 : $n.Translate.toString(O),
|
|
3765
3784
|
height: d,
|
|
3766
3785
|
transition: k,
|
|
3767
3786
|
opacity: A ? 0 : void 0
|
|
@@ -3816,8 +3835,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3816
3835
|
}, `${t}_expanded_content`) : null] });
|
|
3817
3836
|
}, hc = (e) => {
|
|
3818
3837
|
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), v = d(() => l.map((e, t) => t.toString()), [l]);
|
|
3819
|
-
return a ? /* @__PURE__ */ B(
|
|
3820
|
-
collisionDetection:
|
|
3838
|
+
return a ? /* @__PURE__ */ B(rr, {
|
|
3839
|
+
collisionDetection: ar,
|
|
3821
3840
|
onDragStart: (e) => {
|
|
3822
3841
|
p(e.active.id);
|
|
3823
3842
|
},
|
|
@@ -3841,11 +3860,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3841
3860
|
to: i
|
|
3842
3861
|
}));
|
|
3843
3862
|
},
|
|
3844
|
-
children: [/* @__PURE__ */ z(
|
|
3863
|
+
children: [/* @__PURE__ */ z(Xn, {
|
|
3845
3864
|
items: v,
|
|
3846
|
-
strategy:
|
|
3865
|
+
strategy: Qn,
|
|
3847
3866
|
children: t({ dropDisabled: h })
|
|
3848
|
-
}), !!f &&
|
|
3867
|
+
}), !!f && xn(/* @__PURE__ */ z(ir, {
|
|
3849
3868
|
dropAnimation: null,
|
|
3850
3869
|
children: /* @__PURE__ */ z("table", {
|
|
3851
3870
|
className: g(mo.table, mo.dragOverlay),
|
|
@@ -3871,7 +3890,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
3871
3890
|
}) : t({});
|
|
3872
3891
|
}, gc = ({ table: e, children: t }) => {
|
|
3873
3892
|
var n, r, i;
|
|
3874
|
-
let a = p(null), o =
|
|
3893
|
+
let a = p(null), o = or({
|
|
3875
3894
|
count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
|
|
3876
3895
|
getScrollElement: () => a.current,
|
|
3877
3896
|
estimateSize: () => 31,
|
|
@@ -4466,7 +4485,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4466
4485
|
throw Error(`${n("jsonParseFailed")} ${e.message}`);
|
|
4467
4486
|
}
|
|
4468
4487
|
}, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
|
|
4469
|
-
|
|
4488
|
+
cr.parse(e, {
|
|
4470
4489
|
...Kc,
|
|
4471
4490
|
preview: t,
|
|
4472
4491
|
complete: (e) => {
|
|
@@ -4499,7 +4518,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4499
4518
|
t,
|
|
4500
4519
|
...n
|
|
4501
4520
|
].filter(Boolean);
|
|
4502
|
-
return
|
|
4521
|
+
return cr.unparse(o, {
|
|
4503
4522
|
quotes: !1,
|
|
4504
4523
|
header: !0,
|
|
4505
4524
|
delimiter: a
|
|
@@ -4544,12 +4563,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4544
4563
|
default: return "info";
|
|
4545
4564
|
}
|
|
4546
4565
|
})();
|
|
4547
|
-
return e !== void 0 &&
|
|
4566
|
+
return e !== void 0 && dr.isActive(e) ? dr.update(e, {
|
|
4548
4567
|
render: o,
|
|
4549
4568
|
autoClose: n,
|
|
4550
4569
|
onClose: r,
|
|
4551
4570
|
type: s
|
|
4552
|
-
}) :
|
|
4571
|
+
}) : dr(o, {
|
|
4553
4572
|
toastId: e,
|
|
4554
4573
|
autoClose: n,
|
|
4555
4574
|
onClose: r,
|
|
@@ -4559,11 +4578,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4559
4578
|
pauseOnHover: !0,
|
|
4560
4579
|
draggable: !1,
|
|
4561
4580
|
closeButton: a,
|
|
4562
|
-
transition:
|
|
4581
|
+
transition: lr,
|
|
4563
4582
|
type: s
|
|
4564
4583
|
});
|
|
4565
4584
|
}, cl = (e) => {
|
|
4566
|
-
|
|
4585
|
+
dr.dismiss(e);
|
|
4567
4586
|
}, ll = (e, t) => {
|
|
4568
4587
|
t(() => {
|
|
4569
4588
|
sl({ ...e });
|
|
@@ -4574,7 +4593,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4574
4593
|
disabled: "_disabled_18fme_105",
|
|
4575
4594
|
noMargin: "_noMargin_18fme_113",
|
|
4576
4595
|
helpIconEnabled: "_helpIconEnabled_18fme_116"
|
|
4577
|
-
}, 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 =
|
|
4596
|
+
}, 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 = kr.CAPITALIZE }) => {
|
|
4578
4597
|
let p = s(U), m = u || d, h = r || p;
|
|
4579
4598
|
return /* @__PURE__ */ B("div", {
|
|
4580
4599
|
className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
|
|
@@ -4585,7 +4604,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4585
4604
|
"data-testid": l,
|
|
4586
4605
|
children: [
|
|
4587
4606
|
/* @__PURE__ */ z("input", {
|
|
4588
|
-
type:
|
|
4607
|
+
type: jr.CHECKBOX,
|
|
4589
4608
|
name: e,
|
|
4590
4609
|
value: n == null ? void 0 : n.toString(),
|
|
4591
4610
|
disabled: h,
|
|
@@ -4599,7 +4618,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4599
4618
|
m && /* @__PURE__ */ z("div", {
|
|
4600
4619
|
className: ul.helpIconEnabled,
|
|
4601
4620
|
onClick: d,
|
|
4602
|
-
children: /* @__PURE__ */ z(
|
|
4621
|
+
children: /* @__PURE__ */ z(ci, { text: u })
|
|
4603
4622
|
})
|
|
4604
4623
|
]
|
|
4605
4624
|
});
|
|
@@ -4624,7 +4643,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4624
4643
|
let O = o((t) => {
|
|
4625
4644
|
if (t) {
|
|
4626
4645
|
var n, r, i;
|
|
4627
|
-
let t =
|
|
4646
|
+
let t = sr(N == null || (n = N.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
|
|
4628
4647
|
validationRules: s,
|
|
4629
4648
|
importLimit: (r = e.importLimit) == null ? xc : r
|
|
4630
4649
|
}, o = al(N.fields.slice(0, 2), ((i = N.units) == null ? [] : i).slice(0, 2), t, a);
|
|
@@ -4809,7 +4828,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4809
4828
|
onClose: () => r({ name: e }),
|
|
4810
4829
|
...o
|
|
4811
4830
|
}) }, e);
|
|
4812
|
-
}) }) : null, ml = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ z(
|
|
4831
|
+
}) }) : null, ml = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ z(Ji, {
|
|
4813
4832
|
loading: !0,
|
|
4814
4833
|
menu: {
|
|
4815
4834
|
component: /* @__PURE__ */ z(K, {
|
|
@@ -4910,7 +4929,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
4910
4929
|
...e,
|
|
4911
4930
|
rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
|
|
4912
4931
|
let t = String(e == null ? "" : e);
|
|
4913
|
-
return yl.test(t) ?
|
|
4932
|
+
return yl.test(t) ? Tn(t) : t;
|
|
4914
4933
|
}))
|
|
4915
4934
|
};
|
|
4916
4935
|
}, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
|
|
@@ -5071,7 +5090,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5071
5090
|
onClickCopyClipboard: o(async (e) => {
|
|
5072
5091
|
let t = await v();
|
|
5073
5092
|
if (!t) return;
|
|
5074
|
-
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) =>
|
|
5093
|
+
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) => fr(t) ? "" : s(t.toString(), e))), { delimiter: " " });
|
|
5075
5094
|
try {
|
|
5076
5095
|
await navigator.clipboard.writeText(c), ll({ message: {
|
|
5077
5096
|
type: "Success",
|
|
@@ -5263,7 +5282,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5263
5282
|
}] : []
|
|
5264
5283
|
];
|
|
5265
5284
|
return /* @__PURE__ */ B("span", { children: [
|
|
5266
|
-
ee && /* @__PURE__ */ z(
|
|
5285
|
+
ee && /* @__PURE__ */ z(gi, {
|
|
5267
5286
|
small: !0,
|
|
5268
5287
|
dark: !0
|
|
5269
5288
|
}),
|
|
@@ -5355,7 +5374,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5355
5374
|
onClick: () => {},
|
|
5356
5375
|
tooltip: "",
|
|
5357
5376
|
testId: void 0
|
|
5358
|
-
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u =
|
|
5377
|
+
}, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = kr.CAPITALIZE }) => {
|
|
5359
5378
|
var d;
|
|
5360
5379
|
return /* @__PURE__ */ z("div", {
|
|
5361
5380
|
className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
|
|
@@ -5367,22 +5386,22 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5367
5386
|
children: [e, /* @__PURE__ */ B("div", {
|
|
5368
5387
|
className: kl.icons,
|
|
5369
5388
|
children: [
|
|
5370
|
-
(n || i) && /* @__PURE__ */ z(
|
|
5389
|
+
(n || i) && /* @__PURE__ */ z(ci, {
|
|
5371
5390
|
text: n,
|
|
5372
5391
|
onClick: i,
|
|
5373
5392
|
maxWidth: r
|
|
5374
5393
|
}),
|
|
5375
|
-
o && /* @__PURE__ */ z(
|
|
5394
|
+
o && /* @__PURE__ */ z(ci, {
|
|
5376
5395
|
text: o,
|
|
5377
5396
|
icon: H.INFO
|
|
5378
5397
|
}),
|
|
5379
|
-
a && a.visible && a.onClick && /* @__PURE__ */ z(
|
|
5398
|
+
a && a.visible && a.onClick && /* @__PURE__ */ z(ci, {
|
|
5380
5399
|
onClick: a.onClick,
|
|
5381
5400
|
icon: a.active ? H.LOCK : H.UNLOCK,
|
|
5382
5401
|
active: a.active,
|
|
5383
5402
|
testId: a.testId
|
|
5384
5403
|
}),
|
|
5385
|
-
s && /* @__PURE__ */ z(
|
|
5404
|
+
s && /* @__PURE__ */ z(ci, {
|
|
5386
5405
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5387
5406
|
onClick: s.onClick,
|
|
5388
5407
|
icon: H.LIBRARY
|
|
@@ -5404,7 +5423,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5404
5423
|
onClick: () => {},
|
|
5405
5424
|
tooltip: "",
|
|
5406
5425
|
testId: void 0
|
|
5407
|
-
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f =
|
|
5426
|
+
}, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = kr.CAPITALIZE }) => /* @__PURE__ */ B("div", {
|
|
5408
5427
|
className: g(jl.field, t ? jl.labelLeft : ""),
|
|
5409
5428
|
"data-testid": d,
|
|
5410
5429
|
children: [(e || t) && /* @__PURE__ */ z(Al, {
|
|
@@ -5438,21 +5457,29 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5438
5457
|
}), Pl = { formRow: "_formRow_odewu_1" }, Fl = ({ children: e }) => /* @__PURE__ */ z("div", {
|
|
5439
5458
|
className: Pl.formRow,
|
|
5440
5459
|
children: e
|
|
5441
|
-
}), Il =
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5460
|
+
}), Il = (e) => typeof e == "boolean" ? e ? "20px" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Ll = (e) => typeof e == "number" ? `${e}px` : e || "initial", Rl = vn.div`
|
|
5461
|
+
display: grid;
|
|
5462
|
+
gap: ${(e) => Il(e.$gap)};
|
|
5463
|
+
grid-template-rows: ${(e) => Ll(e.$rows)};
|
|
5464
|
+
grid-template-columns: ${(e) => Ll(e.$columns)};
|
|
5465
|
+
height: ${(e) => Ll(e.$height)};
|
|
5466
|
+
|
|
5467
|
+
@media (max-width: 992px) {
|
|
5468
|
+
${(e) => e.$columnsTablet && `grid-template-columns: ${Ll(e.$columnsTablet)};`}
|
|
5469
|
+
}
|
|
5470
|
+
|
|
5471
|
+
@media (max-width: 575px) {
|
|
5472
|
+
${(e) => e.$columnsMobile && `grid-template-columns: ${Ll(e.$columnsMobile)};`}
|
|
5473
|
+
}
|
|
5474
|
+
`, zl = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => /* @__PURE__ */ z(Rl, {
|
|
5475
|
+
$rows: e,
|
|
5476
|
+
$columns: t,
|
|
5477
|
+
$columnsTablet: n,
|
|
5478
|
+
$columnsMobile: r,
|
|
5479
|
+
$gap: i === !1 ? "0px" : i === !0 ? "var(--padding)" : i,
|
|
5480
|
+
$height: typeof a == "number" ? `${a}px` : a,
|
|
5481
|
+
children: o
|
|
5482
|
+
}), Z = {
|
|
5456
5483
|
inputInTable: "_inputInTable_1dcn1_1",
|
|
5457
5484
|
inputHover: "_inputHover_1dcn1_13",
|
|
5458
5485
|
inputFocus: "_inputFocus_1dcn1_18",
|
|
@@ -5519,13 +5546,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5519
5546
|
className: Z.right,
|
|
5520
5547
|
children: /* @__PURE__ */ z("div", {
|
|
5521
5548
|
className: Z.actions,
|
|
5522
|
-
children: /* @__PURE__ */ z(
|
|
5549
|
+
children: /* @__PURE__ */ z(Xi, { actions: t })
|
|
5523
5550
|
})
|
|
5524
5551
|
})
|
|
5525
5552
|
]
|
|
5526
5553
|
})), Hl = ({ label: e }) => e ? /* @__PURE__ */ z("span", {
|
|
5527
5554
|
className: Z.label,
|
|
5528
|
-
children: /* @__PURE__ */ z(
|
|
5555
|
+
children: /* @__PURE__ */ z(Ii, {
|
|
5529
5556
|
color: e.color,
|
|
5530
5557
|
title: e.value,
|
|
5531
5558
|
small: e.small
|
|
@@ -5556,7 +5583,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5556
5583
|
icon: n,
|
|
5557
5584
|
testId: o && `${o}-name`
|
|
5558
5585
|
});
|
|
5559
|
-
return a && (s = /* @__PURE__ */ z(
|
|
5586
|
+
return a && (s = /* @__PURE__ */ z(Ii, {
|
|
5560
5587
|
small: !0,
|
|
5561
5588
|
margin: "-2px",
|
|
5562
5589
|
title: "!",
|
|
@@ -5577,10 +5604,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5577
5604
|
})
|
|
5578
5605
|
]
|
|
5579
5606
|
});
|
|
5580
|
-
}, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ z(
|
|
5607
|
+
}, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ z(Ii, {
|
|
5581
5608
|
color: "rgba(0,0,0,0.25)",
|
|
5582
5609
|
title: e.metaCount
|
|
5583
|
-
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ z(
|
|
5610
|
+
}), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ z(Gr, {
|
|
5584
5611
|
expanded: !!t && !!e.active && !!e.content,
|
|
5585
5612
|
children: /* @__PURE__ */ z("div", {
|
|
5586
5613
|
className: Z.itemContent,
|
|
@@ -5617,7 +5644,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5617
5644
|
className: Z.right,
|
|
5618
5645
|
children: [/* @__PURE__ */ z(Gl, { item: e }), !(o || i) && a && /* @__PURE__ */ z("div", {
|
|
5619
5646
|
className: Z.actions,
|
|
5620
|
-
children: /* @__PURE__ */ z(
|
|
5647
|
+
children: /* @__PURE__ */ z(Xi, { actions: (r = e.actions) == null ? [] : r })
|
|
5621
5648
|
})]
|
|
5622
5649
|
})
|
|
5623
5650
|
]
|
|
@@ -5665,7 +5692,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5665
5692
|
className: Z.right,
|
|
5666
5693
|
children: [/* @__PURE__ */ z(Gl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ z("div", {
|
|
5667
5694
|
className: Z.actions,
|
|
5668
|
-
children: /* @__PURE__ */ z(
|
|
5695
|
+
children: /* @__PURE__ */ z(Xi, { actions: t.actions })
|
|
5669
5696
|
})]
|
|
5670
5697
|
})
|
|
5671
5698
|
]
|
|
@@ -5681,12 +5708,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5681
5708
|
item: e,
|
|
5682
5709
|
index: t
|
|
5683
5710
|
}, t) : i ? ((e, t) => {
|
|
5684
|
-
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } =
|
|
5711
|
+
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = Zn({
|
|
5685
5712
|
id: e.toString(),
|
|
5686
5713
|
animateLayoutChanges: () => !1
|
|
5687
5714
|
});
|
|
5688
5715
|
return c(e, t, {
|
|
5689
|
-
transform:
|
|
5716
|
+
transform: $n.Translate.toString(a),
|
|
5690
5717
|
transition: o,
|
|
5691
5718
|
opacity: +!s
|
|
5692
5719
|
}, n, r, i);
|
|
@@ -5702,15 +5729,15 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5702
5729
|
to: Number(o)
|
|
5703
5730
|
});
|
|
5704
5731
|
}, c = d(() => n.items.map((e, t) => t.toString()), [n.items]);
|
|
5705
|
-
return t ? /* @__PURE__ */ B(
|
|
5706
|
-
collisionDetection:
|
|
5732
|
+
return t ? /* @__PURE__ */ B(rr, {
|
|
5733
|
+
collisionDetection: ar,
|
|
5707
5734
|
onDragStart: o,
|
|
5708
5735
|
onDragEnd: s,
|
|
5709
|
-
children: [/* @__PURE__ */ z(
|
|
5736
|
+
children: [/* @__PURE__ */ z(Xn, {
|
|
5710
5737
|
items: c,
|
|
5711
|
-
strategy:
|
|
5738
|
+
strategy: Qn,
|
|
5712
5739
|
children: e
|
|
5713
|
-
}), !!i &&
|
|
5740
|
+
}), !!i && xn(/* @__PURE__ */ z(ir, {
|
|
5714
5741
|
dropAnimation: null,
|
|
5715
5742
|
children: /* @__PURE__ */ z("div", {
|
|
5716
5743
|
className: Z.dragOverlay,
|
|
@@ -5723,7 +5750,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5723
5750
|
}), document.body)]
|
|
5724
5751
|
}) : e;
|
|
5725
5752
|
}, Xl = ({ items: e, scrollDetails: t, children: n }) => {
|
|
5726
|
-
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u =
|
|
5753
|
+
let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = or({
|
|
5727
5754
|
count: e.length,
|
|
5728
5755
|
getScrollElement: () => l.current,
|
|
5729
5756
|
estimateSize: o(() => {
|
|
@@ -5820,8 +5847,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5820
5847
|
content: "_content_477i5_44",
|
|
5821
5848
|
text: "_text_477i5_49",
|
|
5822
5849
|
details: "_details_477i5_53"
|
|
5823
|
-
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s =
|
|
5824
|
-
let l = s ===
|
|
5850
|
+
}, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Ar.DARK, testId: c = null }) => {
|
|
5851
|
+
let l = s === Ar.DARK ? Ar.WHITE : Ar.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
|
|
5825
5852
|
return /* @__PURE__ */ z("div", {
|
|
5826
5853
|
className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
|
|
5827
5854
|
style: {
|
|
@@ -5863,7 +5890,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5863
5890
|
let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
|
|
5864
5891
|
return /* @__PURE__ */ z("div", {
|
|
5865
5892
|
className: tu.item,
|
|
5866
|
-
children: /* @__PURE__ */ z(
|
|
5893
|
+
children: /* @__PURE__ */ z(li, {
|
|
5867
5894
|
label: r,
|
|
5868
5895
|
noMargin: !0,
|
|
5869
5896
|
checked: i,
|
|
@@ -5927,14 +5954,14 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
5927
5954
|
}, r);
|
|
5928
5955
|
}
|
|
5929
5956
|
})]
|
|
5930
|
-
}), ou = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ z(
|
|
5957
|
+
}), ou = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ z(Ji, {
|
|
5931
5958
|
testId: c,
|
|
5932
5959
|
disabled: t,
|
|
5933
5960
|
menu: {
|
|
5934
5961
|
testId: c ? `${c}-menu-layer` : void 0,
|
|
5935
5962
|
small: a,
|
|
5936
5963
|
label: n,
|
|
5937
|
-
trigger:
|
|
5964
|
+
trigger: Tr.DROP_DOWN_BUTTON,
|
|
5938
5965
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
5939
5966
|
sections: /* @__PURE__ */ z(au, {
|
|
5940
5967
|
testId: c,
|
|
@@ -6039,7 +6066,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6039
6066
|
round: !0,
|
|
6040
6067
|
basic: !0,
|
|
6041
6068
|
icon: e.icon,
|
|
6042
|
-
colored:
|
|
6069
|
+
colored: Er.MUTED,
|
|
6043
6070
|
onClick: e.onClick,
|
|
6044
6071
|
active: e.active,
|
|
6045
6072
|
disabled: t
|
|
@@ -6056,11 +6083,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6056
6083
|
hideScrollbars: "_hideScrollbars_gb097_67",
|
|
6057
6084
|
richTextInput: "_richTextInput_gb097_77"
|
|
6058
6085
|
}, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
|
|
6059
|
-
let o = s(U), u = r || o, d =
|
|
6086
|
+
let o = s(U), u = r || o, d = mr({
|
|
6060
6087
|
extensions: [
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6088
|
+
hr,
|
|
6089
|
+
gr.configure({ placeholder: e }),
|
|
6090
|
+
_r
|
|
6064
6091
|
],
|
|
6065
6092
|
content: n == null ? "" : n,
|
|
6066
6093
|
contentType: "markdown",
|
|
@@ -6087,7 +6114,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6087
6114
|
editor: d,
|
|
6088
6115
|
disabled: u,
|
|
6089
6116
|
toolbarComponent: i
|
|
6090
|
-
}), /* @__PURE__ */ z(
|
|
6117
|
+
}), /* @__PURE__ */ z(pr, { editor: d })]
|
|
6091
6118
|
});
|
|
6092
6119
|
})), _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 }) => {
|
|
6093
6120
|
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__ */ z(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
|
|
@@ -6137,7 +6164,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6137
6164
|
display: "block",
|
|
6138
6165
|
children: /* @__PURE__ */ z("span", {
|
|
6139
6166
|
className: yu.icon,
|
|
6140
|
-
children: /* @__PURE__ */ z(
|
|
6167
|
+
children: /* @__PURE__ */ z(Ii, {
|
|
6141
6168
|
small: !0,
|
|
6142
6169
|
title: r ? "!" : void 0,
|
|
6143
6170
|
margin: 4,
|
|
@@ -6147,7 +6174,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6147
6174
|
}), /* @__PURE__ */ z("span", {
|
|
6148
6175
|
className: yu.label,
|
|
6149
6176
|
children: t
|
|
6150
|
-
})] }), (e, t) =>
|
|
6177
|
+
})] }), (e, t) => nr(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ z("div", {
|
|
6151
6178
|
className: yu.list,
|
|
6152
6179
|
children: t.map((t, a) => {
|
|
6153
6180
|
let o = `${n}_${a}`;
|
|
@@ -6183,7 +6210,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6183
6210
|
top: r,
|
|
6184
6211
|
background: "var(--color-background-sidebar)",
|
|
6185
6212
|
closedWidth: "var(--size-sidebar)",
|
|
6186
|
-
buttonPosition:
|
|
6213
|
+
buttonPosition: Or.BOTTOM,
|
|
6187
6214
|
buttonAnimate: !0,
|
|
6188
6215
|
button: s && /* @__PURE__ */ z(K, {
|
|
6189
6216
|
onClick: (e) => {
|
|
@@ -6208,10 +6235,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6208
6235
|
})
|
|
6209
6236
|
})
|
|
6210
6237
|
});
|
|
6211
|
-
}, (e, t) =>
|
|
6238
|
+
}, (e, t) => nr(e, t)), wu = {
|
|
6212
6239
|
skeletonContainer: "_skeletonContainer_mcfxp_9",
|
|
6213
6240
|
skeleton: "_skeleton_mcfxp_9"
|
|
6214
|
-
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ z(
|
|
6241
|
+
}, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ z(vr, {
|
|
6215
6242
|
baseColor: "var(--color-skeleton-base)",
|
|
6216
6243
|
highlightColor: "var(--color-skeleton-highlight)",
|
|
6217
6244
|
containerClassName: wu.skeletonContainer,
|
|
@@ -6238,13 +6265,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6238
6265
|
className: g(Eu.item, i ? Eu.active : "", r ? Eu.disabled : "", n && !i ? Eu.hidden : "", o ? Eu.right : Eu.left),
|
|
6239
6266
|
onClick: a,
|
|
6240
6267
|
"data-testid": l,
|
|
6241
|
-
children: s ? /* @__PURE__ */ z(
|
|
6268
|
+
children: s ? /* @__PURE__ */ z(Ii, {
|
|
6242
6269
|
small: !0,
|
|
6243
6270
|
margin: "-4px",
|
|
6244
6271
|
color: u,
|
|
6245
6272
|
title: "!",
|
|
6246
6273
|
children: e
|
|
6247
|
-
}) : c ? /* @__PURE__ */ z(
|
|
6274
|
+
}) : c ? /* @__PURE__ */ z(Ii, {
|
|
6248
6275
|
small: !0,
|
|
6249
6276
|
margin: "-4px",
|
|
6250
6277
|
title: c == null ? void 0 : c.toString(),
|
|
@@ -6457,10 +6484,10 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6457
6484
|
});
|
|
6458
6485
|
case Iu.MENU: return /* @__PURE__ */ z("div", {
|
|
6459
6486
|
className: g(Q.item, Q.menu),
|
|
6460
|
-
children: /* @__PURE__ */ z(
|
|
6487
|
+
children: /* @__PURE__ */ z(Ji, {
|
|
6461
6488
|
maxHeight: "100%",
|
|
6462
6489
|
menu: {
|
|
6463
|
-
trigger:
|
|
6490
|
+
trigger: Tr.COMPONENT,
|
|
6464
6491
|
fullHeightTrigger: !0,
|
|
6465
6492
|
placement: "bottom-start",
|
|
6466
6493
|
component: /* @__PURE__ */ z(Lu, {
|
|
@@ -6530,7 +6557,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6530
6557
|
testId: `${s}-cancel-button`
|
|
6531
6558
|
})]
|
|
6532
6559
|
})]
|
|
6533
|
-
}), Hu = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ z(
|
|
6560
|
+
}), Hu = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ z(sa, {
|
|
6534
6561
|
content: /* @__PURE__ */ z(Vu, {
|
|
6535
6562
|
title: i,
|
|
6536
6563
|
okText: s,
|
|
@@ -6583,7 +6610,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6583
6610
|
className: Uu.toggle,
|
|
6584
6611
|
children: /* @__PURE__ */ z(K, {
|
|
6585
6612
|
basic: !0,
|
|
6586
|
-
colored: r ? !0 :
|
|
6613
|
+
colored: r ? !0 : Er.MUTED,
|
|
6587
6614
|
small: !0,
|
|
6588
6615
|
round: !0,
|
|
6589
6616
|
icon: r ? (s == null ? void 0 : s.collapse) || H.COLLAPSE : (s == null ? void 0 : s.expand) || H.EXPAND,
|
|
@@ -6599,7 +6626,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6599
6626
|
className: Z.right,
|
|
6600
6627
|
children: [/* @__PURE__ */ z(Gl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ z("div", {
|
|
6601
6628
|
className: Z.actions,
|
|
6602
|
-
children: /* @__PURE__ */ z(
|
|
6629
|
+
children: /* @__PURE__ */ z(Xi, { actions: h })
|
|
6603
6630
|
})]
|
|
6604
6631
|
})
|
|
6605
6632
|
]
|
|
@@ -6670,11 +6697,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6670
6697
|
name: e.name,
|
|
6671
6698
|
actions: e.actions,
|
|
6672
6699
|
stickyHeader: h
|
|
6673
|
-
}), /* @__PURE__ */ z(
|
|
6674
|
-
backend:
|
|
6675
|
-
options:
|
|
6700
|
+
}), /* @__PURE__ */ z(yr, {
|
|
6701
|
+
backend: br,
|
|
6702
|
+
options: Sr(),
|
|
6676
6703
|
context: window,
|
|
6677
|
-
children: /* @__PURE__ */ z(
|
|
6704
|
+
children: /* @__PURE__ */ z(xr, {
|
|
6678
6705
|
ref: b,
|
|
6679
6706
|
tree: k,
|
|
6680
6707
|
sort: !1,
|
|
@@ -6769,7 +6796,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6769
6796
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6770
6797
|
children: /* @__PURE__ */ z(K, {
|
|
6771
6798
|
basic: !0,
|
|
6772
|
-
colored: c ? !0 :
|
|
6799
|
+
colored: c ? !0 : Er.MUTED,
|
|
6773
6800
|
disabled: !a,
|
|
6774
6801
|
small: !0,
|
|
6775
6802
|
round: !0,
|
|
@@ -6872,30 +6899,30 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6872
6899
|
let n = t == null ? void 0 : t[e];
|
|
6873
6900
|
if (!n) {
|
|
6874
6901
|
var r;
|
|
6875
|
-
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r =
|
|
6902
|
+
return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Gn(e)) == null ? "" : r;
|
|
6876
6903
|
}
|
|
6877
6904
|
return n;
|
|
6878
6905
|
}, ed = /* @__PURE__ */ function(e) {
|
|
6879
6906
|
return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
|
|
6880
6907
|
}({}), td = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), nd = (e) => {
|
|
6881
6908
|
if (!e) return !1;
|
|
6882
|
-
let t =
|
|
6883
|
-
return !
|
|
6909
|
+
let t = kn(e);
|
|
6910
|
+
return !Cn.includes(t);
|
|
6884
6911
|
}, rd = ({ value: e, unitkey: t, toUnit: n }) => {
|
|
6885
6912
|
var r;
|
|
6886
|
-
let i =
|
|
6887
|
-
if (!i || i.length === 0 || !((r =
|
|
6888
|
-
let a =
|
|
6913
|
+
let i = Sn[t];
|
|
6914
|
+
if (!i || i.length === 0 || !((r = Kn(e)) != null && r.valid) || !i.includes(n)) return !1;
|
|
6915
|
+
let a = kn(String(e));
|
|
6889
6916
|
return !(a && !i.includes(a));
|
|
6890
6917
|
}, id = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
|
|
6891
6918
|
var o;
|
|
6892
|
-
let s =
|
|
6919
|
+
let s = Fn(e) ? jn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
|
|
6893
6920
|
if (i || c) return {
|
|
6894
6921
|
value: s,
|
|
6895
6922
|
error: null
|
|
6896
6923
|
};
|
|
6897
|
-
let l = r || (
|
|
6898
|
-
if (!((o =
|
|
6924
|
+
let l = r || (Fn(e) ? kn(e) : Gn(t));
|
|
6925
|
+
if (!((o = Kn(s)) != null && o.valid)) return {
|
|
6899
6926
|
value: void 0,
|
|
6900
6927
|
error: "Invalid number format"
|
|
6901
6928
|
};
|
|
@@ -6912,16 +6939,16 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6912
6939
|
error: "Value is invalid for conversion"
|
|
6913
6940
|
};
|
|
6914
6941
|
try {
|
|
6915
|
-
let e =
|
|
6942
|
+
let e = Jn(s, l);
|
|
6916
6943
|
return rd({
|
|
6917
6944
|
value: e,
|
|
6918
6945
|
toUnit: n,
|
|
6919
6946
|
unitkey: t
|
|
6920
6947
|
}) ? {
|
|
6921
|
-
value:
|
|
6948
|
+
value: jn(Hs(a ? Dn(e, n) : En(e, n))),
|
|
6922
6949
|
error: null
|
|
6923
6950
|
} : {
|
|
6924
|
-
value:
|
|
6951
|
+
value: jn(e),
|
|
6925
6952
|
error: null
|
|
6926
6953
|
};
|
|
6927
6954
|
} catch {
|
|
@@ -6931,12 +6958,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6931
6958
|
};
|
|
6932
6959
|
}
|
|
6933
6960
|
}, ad = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
|
|
6934
|
-
let a =
|
|
6961
|
+
let a = jn(e), o = td(a);
|
|
6935
6962
|
return !rd({
|
|
6936
6963
|
value: e,
|
|
6937
6964
|
unitkey: n,
|
|
6938
6965
|
toUnit: t
|
|
6939
|
-
}) || nd(e) || o ? { value: a } :
|
|
6966
|
+
}) || nd(e) || o ? { value: a } : Fn(e) ? id({
|
|
6940
6967
|
value: e,
|
|
6941
6968
|
unitkey: n,
|
|
6942
6969
|
toUnit: t,
|
|
@@ -6944,12 +6971,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6944
6971
|
doNotConvertValue: i,
|
|
6945
6972
|
exactPrecision: !0
|
|
6946
6973
|
}) : { value: e };
|
|
6947
|
-
}, od = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", sd = (e = "") =>
|
|
6948
|
-
let n =
|
|
6974
|
+
}, od = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", sd = (e = "") => Cn == null ? void 0 : Cn.includes(e), cd = (e, t) => {
|
|
6975
|
+
let n = kn(e || "");
|
|
6949
6976
|
return sd(t) && sd(n);
|
|
6950
6977
|
}, ld = n(null), ud = () => s(ld), dd = !1, fd = (e) => {
|
|
6951
6978
|
dd || (dd = !0, ld = e);
|
|
6952
|
-
}, pd = (e) =>
|
|
6979
|
+
}, pd = (e) => Nn(e) ? e : Ln(e), md = {
|
|
6953
6980
|
predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
|
|
6954
6981
|
inputWrapper: "_inputWrapper_ye9w9_4"
|
|
6955
6982
|
}, hd = ({ 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 = pn, onClick: _ = pn, onFocus: v = pn, onSwitchUnit: y = pn, unitTemplate: b, testId: x, warning: S = null, predefinedOptions: C, initialPredefinedOption: w = !1, shouldLinkAutomaticly: T = !0, selectedPredefinedOptionKey: E, validationCallback: D = () => ({
|
|
@@ -6958,7 +6985,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6958
6985
|
}), disabledValidation: O = !1, allowEmpty: k = !1, convertBackToStorageUnit: A = !1, enableCosmeticRounding: j = !0, enableDisplayRounding: M = !1, roundDisplayValue: N, selectOnFocus: P = !0, groupOrder: F, tooltip: ee = null }) => {
|
|
6959
6986
|
let I = ud(), te = Zu();
|
|
6960
6987
|
typeof l == "number" && (l = `${l}`);
|
|
6961
|
-
let [ne = "", re = ""] = l === void 0 ? [] :
|
|
6988
|
+
let [ne = "", re = ""] = l === void 0 ? [] : Vn(l), ie = d(() => $u(u, b || (I == null ? void 0 : I.unitTemplate)), [
|
|
6962
6989
|
u,
|
|
6963
6990
|
b,
|
|
6964
6991
|
I == null ? void 0 : I.unitTemplate
|
|
@@ -6977,12 +7004,12 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6977
7004
|
}), ue = k || (L == null ? void 0 : L.value) === void 0, [de, fe] = m(w ? ed.PREDEFINED : ed.CUSTOM), pe = !!(O || n), me = C && C.find((e) => {
|
|
6978
7005
|
if (!(e != null && e.value)) return;
|
|
6979
7006
|
if (E) return E === e.valueKey;
|
|
6980
|
-
let t =
|
|
7007
|
+
let t = Fn(e.value) ? kn(e.value) : "", { value: n = l } = id({
|
|
6981
7008
|
value: String(l),
|
|
6982
7009
|
unitkey: u,
|
|
6983
7010
|
toUnit: t
|
|
6984
7011
|
});
|
|
6985
|
-
return
|
|
7012
|
+
return Jn(n, t) === e.value;
|
|
6986
7013
|
}), he = () => {
|
|
6987
7014
|
var e;
|
|
6988
7015
|
let t = (e = l) == null ? "" : e, n = L.unit;
|
|
@@ -6991,21 +7018,21 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
6991
7018
|
unitkey: u,
|
|
6992
7019
|
toUnit: n
|
|
6993
7020
|
})) {
|
|
6994
|
-
let e =
|
|
7021
|
+
let e = On(u);
|
|
6995
7022
|
return e == null ? void 0 : e.map((e) => ["", e == null ? void 0 : e.unit]);
|
|
6996
7023
|
} else if (u) try {
|
|
6997
|
-
let e =
|
|
6998
|
-
return
|
|
7024
|
+
let e = wn(t, u);
|
|
7025
|
+
return jn(t) === "" ? e.map((e) => ["", e[1]]) : e;
|
|
6999
7026
|
} catch {
|
|
7000
7027
|
return null;
|
|
7001
7028
|
}
|
|
7002
7029
|
}, ge = (t) => {
|
|
7003
|
-
let n = od(e), r = t.target, { value: i, selectionStart: a } = r, o =
|
|
7030
|
+
let n = od(e), r = t.target, { value: i, selectionStart: a } = r, o = Jn(i, (L == null ? void 0 : L.unit) || "");
|
|
7004
7031
|
h({ target: {
|
|
7005
|
-
value: A ?
|
|
7032
|
+
value: A ? Jn(En(o, re), re) : o,
|
|
7006
7033
|
name: n
|
|
7007
7034
|
} });
|
|
7008
|
-
let [s, c] =
|
|
7035
|
+
let [s, c] = Vn(o);
|
|
7009
7036
|
le({
|
|
7010
7037
|
value: s,
|
|
7011
7038
|
unit: c
|
|
@@ -7030,7 +7057,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7030
7057
|
doNotConvertValue: p
|
|
7031
7058
|
});
|
|
7032
7059
|
e = n, t = oe;
|
|
7033
|
-
} else if (
|
|
7060
|
+
} else if (Jn(L.value, L.unit) !== l) {
|
|
7034
7061
|
let { value: n } = ad({
|
|
7035
7062
|
value: l,
|
|
7036
7063
|
toUnit: L.unit,
|
|
@@ -7051,8 +7078,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7051
7078
|
i,
|
|
7052
7079
|
T
|
|
7053
7080
|
]);
|
|
7054
|
-
let ve = he(), ye =
|
|
7055
|
-
let r = t != null && t.value ? t.value : "", [i = "", a = ""] =
|
|
7081
|
+
let ve = he(), ye = In(L.unit) || L.unit || "", be = p || !ve || ve && ve.length === 1, xe = od(e), Se, Ce = (t) => {
|
|
7082
|
+
let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Fn(r) ? Vn(r) : [r], o = qn(r);
|
|
7056
7083
|
if (rd({
|
|
7057
7084
|
value: r,
|
|
7058
7085
|
unitkey: u,
|
|
@@ -7065,13 +7092,13 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7065
7092
|
defaultFromUnit: a,
|
|
7066
7093
|
doNotConvertValue: p
|
|
7067
7094
|
});
|
|
7068
|
-
o =
|
|
7095
|
+
o = qn(Jn(e, ie));
|
|
7069
7096
|
}
|
|
7070
7097
|
return {
|
|
7071
|
-
type:
|
|
7098
|
+
type: Ci.OPTION,
|
|
7072
7099
|
inline: !0,
|
|
7073
7100
|
onClick: () => {
|
|
7074
|
-
|
|
7101
|
+
Kn(i).valid && !n && (fe(ed.PREDEFINED), h({ target: {
|
|
7075
7102
|
value: r,
|
|
7076
7103
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
|
|
7077
7104
|
predefinedSelected: !0,
|
|
@@ -7087,11 +7114,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7087
7114
|
};
|
|
7088
7115
|
};
|
|
7089
7116
|
if (Se = [{
|
|
7090
|
-
type:
|
|
7117
|
+
type: Ci.OPTION,
|
|
7091
7118
|
inline: !0,
|
|
7092
7119
|
onClick: () => {
|
|
7093
7120
|
de !== ed.CUSTOM && !n && h({ target: {
|
|
7094
|
-
value:
|
|
7121
|
+
value: Jn(L.value, L.unit),
|
|
7095
7122
|
name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
|
|
7096
7123
|
} });
|
|
7097
7124
|
},
|
|
@@ -7102,8 +7129,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7102
7129
|
Se = [...Se, ...e];
|
|
7103
7130
|
}
|
|
7104
7131
|
let we = (e) => {
|
|
7105
|
-
if (
|
|
7106
|
-
let t =
|
|
7132
|
+
if (Fn(e)) {
|
|
7133
|
+
let t = kn(e), { value: n } = ad({
|
|
7107
7134
|
value: e,
|
|
7108
7135
|
toUnit: L.unit,
|
|
7109
7136
|
unitkey: u,
|
|
@@ -7120,7 +7147,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7120
7147
|
small: o,
|
|
7121
7148
|
width: s,
|
|
7122
7149
|
children: [
|
|
7123
|
-
C && /* @__PURE__ */ z(
|
|
7150
|
+
C && /* @__PURE__ */ z(Ji, {
|
|
7124
7151
|
maxHeight: 380,
|
|
7125
7152
|
groupOrder: "first",
|
|
7126
7153
|
testId: x && `${x}-predefined-menu`,
|
|
@@ -7168,7 +7195,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7168
7195
|
groupOrder: Ee,
|
|
7169
7196
|
small: o,
|
|
7170
7197
|
children: ye
|
|
7171
|
-
}) : /* @__PURE__ */ z(
|
|
7198
|
+
}) : /* @__PURE__ */ z(Ji, {
|
|
7172
7199
|
groupOrder: Ee,
|
|
7173
7200
|
maxHeight: 380,
|
|
7174
7201
|
disabled: r,
|
|
@@ -7179,7 +7206,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7179
7206
|
trigger: "DropDownButton",
|
|
7180
7207
|
small: o,
|
|
7181
7208
|
sections: ve.map(([e = "", t = "", n]) => {
|
|
7182
|
-
let r = n || t || "", i =
|
|
7209
|
+
let r = n || t || "", i = Pn(e) ? e : "";
|
|
7183
7210
|
return {
|
|
7184
7211
|
type: "Option",
|
|
7185
7212
|
label: j ? pd(i) : i,
|
|
@@ -7296,8 +7323,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7296
7323
|
error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
|
|
7297
7324
|
disabled: c || !u,
|
|
7298
7325
|
searchable: !1,
|
|
7299
|
-
options: (a =
|
|
7300
|
-
label:
|
|
7326
|
+
options: (a = An(s)) == null ? void 0 : a.map((e) => ({
|
|
7327
|
+
label: In(e),
|
|
7301
7328
|
value: e
|
|
7302
7329
|
})),
|
|
7303
7330
|
native: e.native,
|
|
@@ -7390,8 +7417,8 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7390
7417
|
children: /* @__PURE__ */ B(Nl, {
|
|
7391
7418
|
gap: "8px",
|
|
7392
7419
|
alignItems: "center",
|
|
7393
|
-
children: [m && /* @__PURE__ */ z(
|
|
7394
|
-
text:
|
|
7420
|
+
children: [m && /* @__PURE__ */ z(ci, {
|
|
7421
|
+
text: Kn(o).valid ? `${d == null ? void 0 : d.companySetting}: ${Fn(o) ? qn(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
7395
7422
|
icon: H.INFO
|
|
7396
7423
|
}), /* @__PURE__ */ z(Cs, {
|
|
7397
7424
|
small: !0,
|
|
@@ -7433,7 +7460,7 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7433
7460
|
let u = ({ target: { value: e } }) => {
|
|
7434
7461
|
s(e);
|
|
7435
7462
|
}, { added: d, removed: f } = Od(e, t), p = d + f > 3500;
|
|
7436
|
-
return /* @__PURE__ */ z(R, { children: /* @__PURE__ */ z(
|
|
7463
|
+
return /* @__PURE__ */ z(R, { children: /* @__PURE__ */ z(ia, {
|
|
7437
7464
|
bordered: !0,
|
|
7438
7465
|
heading: /* @__PURE__ */ B(Nl, {
|
|
7439
7466
|
gap: !0,
|
|
@@ -7462,11 +7489,11 @@ var Cr = /* @__PURE__ */ function(e) {
|
|
|
7462
7489
|
muted: !0,
|
|
7463
7490
|
children: a == null ? void 0 : a.changesTooLarge
|
|
7464
7491
|
})
|
|
7465
|
-
}) : /* @__PURE__ */ z(
|
|
7492
|
+
}) : /* @__PURE__ */ z(Cr, {
|
|
7466
7493
|
oldValue: e,
|
|
7467
7494
|
newValue: t,
|
|
7468
7495
|
splitView: o === kd,
|
|
7469
|
-
compareMethod:
|
|
7496
|
+
compareMethod: wr.WORDS
|
|
7470
7497
|
})
|
|
7471
7498
|
}) });
|
|
7472
7499
|
};
|
|
@@ -8775,7 +8802,7 @@ var Tf = (e = {}) => wf({
|
|
|
8775
8802
|
}
|
|
8776
8803
|
return n || "";
|
|
8777
8804
|
}, kf = (e) => {
|
|
8778
|
-
let t = (e) =>
|
|
8805
|
+
let t = (e) => Fn(e) ? qn(e) : String(e);
|
|
8779
8806
|
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);
|
|
8780
8807
|
}, Af = (e) => {
|
|
8781
8808
|
switch (e.length) {
|
|
@@ -8880,7 +8907,7 @@ var Tf = (e = {}) => wf({
|
|
|
8880
8907
|
}, zf = (e, t = e.length - 1) => {
|
|
8881
8908
|
if (t >= e.length) return "Value";
|
|
8882
8909
|
let n = e[t];
|
|
8883
|
-
return !n ||
|
|
8910
|
+
return !n || Mn(n) ? zf(e, t - 1) : Lf(n);
|
|
8884
8911
|
}, Bf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
8885
8912
|
let o = Rf(r), s = Rf(i), c = a ? ` in ${a}` : "";
|
|
8886
8913
|
switch (t) {
|
|
@@ -9022,7 +9049,7 @@ var Tf = (e = {}) => wf({
|
|
|
9022
9049
|
actions: h == null ? void 0 : h(e)
|
|
9023
9050
|
};
|
|
9024
9051
|
});
|
|
9025
|
-
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(
|
|
9052
|
+
return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(ia, {
|
|
9026
9053
|
heading: /* @__PURE__ */ B(Nl, {
|
|
9027
9054
|
gap: !0,
|
|
9028
9055
|
wrap: !0,
|
|
@@ -9040,8 +9067,8 @@ var Tf = (e = {}) => wf({
|
|
|
9040
9067
|
padding: !1,
|
|
9041
9068
|
children: r ? /* @__PURE__ */ z(eu, {
|
|
9042
9069
|
height: "100px",
|
|
9043
|
-
theme:
|
|
9044
|
-
children: /* @__PURE__ */ z(
|
|
9070
|
+
theme: Ar.WHITE,
|
|
9071
|
+
children: /* @__PURE__ */ z(gi, { dark: !0 })
|
|
9045
9072
|
}) : /* @__PURE__ */ z(yc, { table: {
|
|
9046
9073
|
headers: S,
|
|
9047
9074
|
testId: "auditlog-table",
|
|
@@ -9102,4 +9129,4 @@ var Tf = (e = {}) => wf({
|
|
|
9102
9129
|
});
|
|
9103
9130
|
};
|
|
9104
9131
|
//#endregion
|
|
9105
|
-
export {
|
|
9132
|
+
export { Jr as Accordion, pi as AccordionWithDefaultToggle, Xi as Actions, Dr as Align, Kf as AuditLog, Ii as Badge, ea as Breadcrumb, Qi as BreadcrumbLinkType, K as Button, na as ButtonGroup, Or as ButtonPosition, _i as ButtonType, ia as Card, li as CheckBox, Hr as Chevron, Gr as Collapse, Er as Color, la as ColorInput, fa as Column, Sa as Dialog, jd 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, ci as HelpIcon, W as Icon, H as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, jr as InputType, Al as Label, Ql as List, Vl as ListHeading, ql as ListSubheading, eu as Loader, Ji as Menu, wi as MenuCarat, Ci 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, sa as Popover, Ha as Portal, uu as PrintHeader, Ya as ProgressBar, du as RadioButton, gu as RichTextInput, vu as Row, Cs as Select, Dd as SettingField, Cu as SideBar, Tu as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, gi as Spinner, yc as Table, Dl as TableImportExport, ku as Tabs, ha as Text, Mu as TextArea, Au as TextLink, kr as TextTransform, Ar as Theme, ur as Toaster, dl as Toggle, G as Tooltip, zu as TopBar, Ku as Tree, Xu as TreeTable, Tr as TriggerType, hd as UnitInput, Td as UnitTable, qf as UsageTracker, cl as dismissToast, fd as initializeContext, Yf as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
|